Checks whether the given node is inside a scrollable element.
This function is useful when determining whether a swipe event should be allowed
to start on a given element.
diff --git a/docs-src/components/utils/functions/is-mobile.svelte b/docs-src/components/utils/functions/is-mobile.svelte
index 0a954f1c..0634d9b8 100644
--- a/docs-src/components/utils/functions/is-mobile.svelte
+++ b/docs-src/components/utils/functions/is-mobile.svelte
@@ -1,4 +1,4 @@
-
+
Checks if the current platform is mobile.
diff --git a/docs-src/components/utils/functions/isset.svelte b/docs-src/components/utils/functions/isset.svelte
new file mode 100644
index 00000000..27846783
--- /dev/null
+++ b/docs-src/components/utils/functions/isset.svelte
@@ -0,0 +1,20 @@
+
+ Checks if a variable is defined and not null .
+
+
+
+
+
diff --git a/docs-src/components/utils/functions/pluck.svelte b/docs-src/components/utils/functions/pluck.svelte
index 142d2e81..41b51dd3 100644
--- a/docs-src/components/utils/functions/pluck.svelte
+++ b/docs-src/components/utils/functions/pluck.svelte
@@ -1,4 +1,4 @@
-
+
Creates a new object with only the plucked properties from the original object..
object - object to pluck from.
diff --git a/docs-src/components/utils/functions/round-amount.svelte b/docs-src/components/utils/functions/round-amount.svelte
index 691eed5e..fddd636c 100644
--- a/docs-src/components/utils/functions/round-amount.svelte
+++ b/docs-src/components/utils/functions/round-amount.svelte
@@ -1,4 +1,4 @@
-
+
Rounds a number to 2 decimal places (by default).
diff --git a/docs-src/components/utils/functions/throttle.svelte b/docs-src/components/utils/functions/throttle.svelte
index ffa9462f..30300ac0 100644
--- a/docs-src/components/utils/functions/throttle.svelte
+++ b/docs-src/components/utils/functions/throttle.svelte
@@ -1,4 +1,4 @@
-
+
The "throttled" function will only be called once every timeout milliseconds.
fn - function to debounce.
diff --git a/docs-src/components/utils/functions/time-ago.svelte b/docs-src/components/utils/functions/time-ago.svelte
index aeeec3f1..b63d2ab8 100644
--- a/docs-src/components/utils/functions/time-ago.svelte
+++ b/docs-src/components/utils/functions/time-ago.svelte
@@ -1,4 +1,4 @@
-
+
Converts date to a string describing how long time ago was the given date.
diff --git a/docs-src/nav/Nav.svelte b/docs-src/nav/Nav.svelte
index 0cc5ec1c..edb1c4aa 100644
--- a/docs-src/nav/Nav.svelte
+++ b/docs-src/nav/Nav.svelte
@@ -45,6 +45,7 @@
Containers
+
diff --git a/docs/docs.css b/docs/docs.css
index b9656c0f..2b9570b3 100644
--- a/docs/docs.css
+++ b/docs/docs.css
@@ -1 +1,628 @@
-.api-table{height:unset;overflow:auto visible;overscroll-behavior-y:unset}.api-table table{min-width:900px}.api-table tr td{vertical-align:top;padding-block:0.5rem}.api-table tr td:first-child,.api-table tr th:first-child{width:200px}.api-table tr td:nth-child(2),.api-table tr th:nth-child(2){width:200px}.api-table tr td:last-child,.api-table tr th:last-child{min-width:400px}body,html{margin:0;background-color:var(--ui-color-background);color:var(--ui-color-text);--sidebar-width:220px}@font-face{font-family:'Prime Light';src:url('prime_light-webfont.woff2') format('woff2'),url('prime_light-webfont.woff') format('woff');font-weight:light;font-style:normal}a{color:inherit}a:hover{text-decoration-color:var(--ui-color-accent);text-decoration-thickness:2px;text-underline-offset:0.3rem}main{padding:0 2rem 8rem;margin-left:var(--sidebar-width)}h1,h2,h3{font-weight:500;margin:2rem 0 1.2rem;width:100%}h1:first-child,h2:first-child,h3:first-of-type{margin-top:0}p{line-height:1.7;margin-block:1.5rem;max-width:120ch}p b{font-weight:700;letter-spacing:.5px}ul{line-height:1.7;margin:0;padding-left:2rem}ul li{margin-block:0.5rem}p+ul{margin-top:-1rem}em{color:var(--ui-color-accent);font-style:normal}hr{width:100%;height:0;border:0;border-top:1px solid var(--ui-color-border-2);margin:3em 0 2em}.docs-overflow-box{border:2px dotted var(--ui-color-accent);background-color:var(--ui-color-background);padding:1em;overflow:hidden;z-index:1;position:relative}.docs-buttons-row{display:flex;flex-flow:wrap row;align-items:flex-start;justify-content:flex-start;gap:.5rem;flex-shrink:0}@media (1px <= width <= 700px){main{margin-left:0}}code,main pre[class]{background-color:#1a1a1a;color:#ccc;border-radius:var(--ui-border-radius);font-size:var(--ui-font-s)}code{display:block;width:100%;padding:1em;margin-block:1em;line-height:2;white-space:pre;overflow:auto}code[class*=language-]{padding:0;margin:0}.dark-mode-switch{min-width:7rem;position:fixed;top:.5rem;right:.6rem;z-index:55}aside{border-right:1px solid var(--ui-color-border-2);overflow-y:auto;background:var(--ui-color-background);position:fixed;width:var(--sidebar-width);left:0;top:0;height:100lvh;padding:0 1rem calc(100lvh - 100svh);overscroll-behavior:contain}menu{width:100%;display:flex;flex-flow:column;padding:1rem 0 0;margin:0 0 2rem}menu h3{margin:0 -1rem;padding:var(--ui-margin-m) var(--ui-margin-l);white-space:nowrap;font-family:'Prime Light','Helvetica Neue',Helvetica,Arial,sans-serif;font-size:var(--ui-font-xl)}menu h3:not(:first-child){margin-top:var(--ui-margin-l)}menu a{color:var(--ui-color-text);text-decoration:none;display:block;margin:var(--ui-margin-s) 0;padding:var(--ui-margin-m) 1.4rem;border-radius:var(--ui-border-radius);white-space:nowrap;touch-action:manipulation}menu a:hover{background-color:var(--ui-color-highlight-1)}menu a.active{background-color:var(--ui-color-highlight)}.nav-toggler{--ui-button-size:1.1em;position:fixed;left:0;top:.4rem;z-index:65;color:var(--ui-color-text-1);display:none;transform:translateX(10px)}.nav-toggler:hover{color:var(--ui-color-text);background:0 0}.btn-scroll-top{position:fixed;bottom:1rem;right:1rem;z-index:999}.btn-scroll-top.hidden{display:none}@media (1px <= width <= 700px){.nav-toggler{display:flex}.nav-toggler.expanded{transform:translateX(calc(var(--sidebar-width) - 40px))}aside{box-shadow:2px 1px 10px #0006;transform:translateX(calc(var(--sidebar-width) * -1));z-index:60;--sidebar-elastic-padding:80px;width:calc(var(--sidebar-width) + var(--sidebar-elastic-padding));left:calc(var(--sidebar-elastic-padding) * -1);padding-left:calc(var(--sidebar-elastic-padding) + 1rem)}aside.expanded{transform:translateX(0)}.nav-toggler:not(.swiping),aside:not(.swiping){transition:transform .3s cubic-bezier(.5, .2, .5, 1.2)}}.banner{height:clamp(100px,40vw,360px);padding-top:60px;display:flex;align-items:flex-start;justify-content:center}.banner a{display:inline-flex;align-items:center;justify-content:center;gap:2vw;margin:auto;padding:0;text-decoration:none}.logo{width:clamp(42px,10vw,160px);height:clamp(42px,10vw,160px);opacity:.9;filter:drop-shadow(0 1px 1px #000)}.logotype{font-family:'Prime Light','Helvetica Neue',Helvetica,Arial,sans-serif;font-size:clamp(28px, 6vw, 90px);font-weight:100;margin:0;padding:0 4px 0 0;display:flex;flex-flow:row;white-space:nowrap;line-height:1;width:auto}.logotype em{font-weight:500}.logotype sub{font-size:var(--ui-font-m);font-weight:300;color:var(--ui-color-text-semi);margin:-1rem 0 0 -63px;width:60px;text-align:right}.banner a:hover .logotype em,.banner a:hover .logotype span{text-decoration:underline;text-decoration-thickness:1px;text-decoration-skip-ink:none;text-underline-offset:8px}.banner a:hover .logotype span{text-decoration-color:var(--ui-color-accent)}.banner a:hover .logotype em{text-decoration-color:var(--ui-color-text)}.footer-links{display:flex;align-items:center;justify-content:center;gap:5vw;margin:6rem 0 0;height:2rem}.footer-links a,.footer-links a:hover{text-decoration:none;height:100%;display:flex;align-items:center;color:var(--ui-color-text-semi);transition:color .1s}.footer-links a:hover{color:var(--ui-color-text)}.footer-links a svg{height:2rem;width:2rem;margin:0}.footer-links a.npm svg{width:5rem}.sticky-block{background:var(--ui-color-background);margin:0;padding:0}.sticky-block>h1,.sticky-block>h2,main>h1,main>h2{font-family:'Prime Light','Helvetica Neue',Helvetica,Arial,sans-serif;margin:2rem -2rem 1rem;padding:.5rem 100px .5rem 2rem}.prime-light{font-family:'Prime Light','Helvetica Neue',Helvetica,Arial,sans-serif}.sticky-block>h2,main>h2{font-size:1.8rem;width:auto;border-bottom:1px solid var(--ui-color-border-2);position:sticky;top:0;z-index:50;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;-webkit-backdrop-filter:blur(15px);backdrop-filter:blur(15px)}main>h2 em{color:var(--ui-color-text-semi);font-size:1.2rem;line-height:1.8rem;margin-left:.5rem;vertical-align:text-top}main>p code,main>ul li code{display:inline;padding:0;margin:0;background:0 0;color:var(--ui-color-accent);font:inherit;white-space:break-spaces}@media (1px <= width <= 700px){.sticky-block>h1,.sticky-block>h2,main>h1,main>h2{padding-left:54px}}.button-demo-props{display:flex;flex-flow:column;align-items:flex-start;justify-content:flex-start;gap:.5rem;width:clamp(300px,600px,100%)}.button-demo-props .input{display:flex;flex-flow:row;width:100%}.button-demo-props .input .label{width:5rem;flex-shrink:0}.button-demo-props .input .input-text-inner{flex:1}.button-demo-props .toggle{display:flex;flex-flow:row;width:100%}.button-demo-props .toggle .label{width:5rem;flex-shrink:0}@media (1px <= width <= 700px){.button-demo-props{width:100%}}.group{background:var(--ui-color-background-2);padding:6px;display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));grid-gap:6px;border-radius:var(--ui-border-radius-m)}.palette-box{padding:10px 0;display:flex;align-items:center;justify-content:center;overflow:hidden;border-radius:calc(var(--ui-border-radius-m) - 3px);background-color:var(--ui-color-background-2)}.icons{margin-bottom:2em}.icon-block{float:left;width:128px;height:128px;margin:0 1em 1em 0;display:flex;flex-flow:column;align-items:stretch;justify-content:stretch;background-color:var(--ui-color-background-semi);padding:0 10px 10px;border-radius:5px;border:1px solid var(--ui-color-border)}.icon-block-icon{flex:1;display:flex;align-items:center;justify-content:center}.icon-block-icon svg{width:32px;height:32px}.icon-block-name{height:20px;text-align:center;overflow-wrap:break-word;font-size:var(--ui-font-s)}.div{border:1px dashed red;height:100px;width:200px;display:inline-grid;place-items:center;margin:1rem 1rem 1rem 0;-webkit-user-select:none;user-select:none}.docs-menu-align-right{padding:2rem 0;border:1px dashed var(--ui-color-accent);text-align:right}.notification-center-header{margin-bottom:1rem;display:flex;flex-flow:row;align-items:center;justify-content:flex-start;gap:2rem}.notification-center-header h2{display:inline-block;width:auto;padding:0;margin:0}.prop-row{padding:1rem 0;display:flex;align-items:center;justify-content:flex-start;gap:1rem}.panel p{margin:0}.tooltip-box{display:inline-block;margin:10px 0 0;line-height:2.4em;padding:1em;border:1px solid #ccc;min-width:6em;text-align:center}.tooltip-html h1,.tooltip-html p{margin:0}.tooltip-html b{color:var(--ui-color-accent)}.tooltip-html a:hover{text-decoration:none}.split-wrap{width:400px;height:200px;border:1px solid red;display:flex;flex-flow:row;position:relative}.split-wrap-v{flex-flow:column}.split-box{border:1px solid green;flex:1}.min-w{min-width:20px;max-width:220px}.min-h{min-height:50px;max-height:150px}.table-viewport{width:500px;max-width:100%;height:500px;border:2px dashed red;padding:5px}.tooltip-box{display:inline-block;margin:10px 0 0;line-height:2.4em;padding:1em;border:1px solid #ccc;min-width:6em;text-align:center}.tooltip-html h1,.tooltip-html p{margin:0}.tooltip-html b{color:var(--ui-color-accent)}.tooltip-html a:hover{text-decoration:none}.section-utils{--nav-sidebar-width:240px}.section-utils .dark-mode-switch{right:calc(var(--nav-sidebar-width) + 20px)}.section-utils .sticky-block{padding-bottom:3rem;margin-right:var(--nav-sidebar-width)}.section-utils .sticky-block .utility h3{scroll-margin-top:4.2rem;font-size:1.1rem;color:var(--ui-color-accent);font-family:Consolas,Monaco,'Andale Mono','Ubuntu Mono',monospace}.section-utils .utilities-nav{position:fixed;right:0;top:0;bottom:0;z-index:52;margin:0;padding:1rem 2rem;overflow-y:auto;width:var(--nav-sidebar-width);border-left:1px solid var(--ui-color-border-2);background-color:var(--ui-color-background-input)}.section-utils .utility{margin:0 -2rem;padding:1rem 2rem;border-bottom:1px solid var(--ui-color-border-2)}.section-utils .btn-scroll-top{right:calc(var(--nav-sidebar-width) + 20px)}@media (1px <= width <= 900px){.section-utils .dark-mode-switch{right:.6rem}.section-utils .btn-scroll-top{right:1rem}.section-utils .sticky-block{margin-right:0}.section-utils .utilities-nav{position:static;border-left:none;width:auto;z-index:initial;margin-top:2rem;background-color:unset}}.button-toggle-wrapper-wide{width:400px;max-width:100%}.button-toggle-wrapper-wide .button-toggle{width:100%}.toggle-box{margin:10px 0 0;line-height:2.4em;display:none}.toggle-box.visible{display:block}
\ No newline at end of file
+.api-table {
+ height: unset;
+ overflow: auto visible;
+ overscroll-behavior-y: unset;
+}
+.api-table table { min-width: 900px; }
+
+.api-table tr td { vertical-align: top; padding-block: 0.5rem;}
+
+.api-table tr th:first-child,
+.api-table tr td:first-child { width: 200px; }
+
+.api-table tr th:nth-child(2),
+.api-table tr td:nth-child(2) { width: 200px; }
+
+.api-table tr th:last-child,
+.api-table tr td:last-child { min-width: 400px; }
+
+html,
+body {
+ margin: 0;
+ background-color: var(--ui-color-background);
+ color: var(--ui-color-text);
+
+ --sidebar-width: 220px;
+}
+
+
+@font-face {
+ font-family: 'Prime Light';
+ src: url('prime_light-webfont.woff2') format('woff2'),
+ url('prime_light-webfont.woff') format('woff');
+ font-weight: light;
+ font-style: normal;
+}
+
+
+a { color: inherit; }
+a:hover {
+ text-decoration-color: var(--ui-color-accent);
+ text-decoration-thickness: 2px;
+ text-underline-offset: 0.3rem;
+}
+
+main {
+ padding: 0 2rem 8rem;
+ margin-left: var(--sidebar-width);
+}
+
+h1,
+h2,
+h3 { font-weight: 500; margin: 2rem 0 1.2rem; width: 100%; }
+
+h1:first-child,
+h2:first-child,
+h3:first-of-type { margin-top: 0; }
+
+p { line-height: 1.7; margin-block: 1.5rem; max-width: 120ch; }
+p b { font-weight: 700; letter-spacing: 0.5px; }
+
+ul { line-height: 1.7; margin: 0; padding-left: 2rem; }
+ul li { margin-block: 0.5rem; }
+
+p + ul { margin-top: -1rem }
+
+em { color: var(--ui-color-accent); font-style: normal; }
+
+
+hr {
+ width: 100%;
+ height: 0;
+ border: 0;
+ border-top: 1px solid var(--ui-color-border-2);
+ margin: 3em 0 2em;
+}
+
+
+.docs-overflow-box {
+ border: 2px dotted var(--ui-color-accent);
+ background-color: var(--ui-color-background);
+ padding: 1em;
+ overflow: hidden;
+ z-index: 1;
+ position: relative;
+}
+
+.docs-buttons-row {
+ display: flex;
+ flex-flow: wrap row;
+ align-items: flex-start;
+ justify-content: flex-start;
+ gap: 0.5rem;
+ flex-shrink: 0;
+}
+
+
+
+@media (1px <= width <= 700px) {
+ main { margin-left: 0; }
+}
+
+main pre[class],
+code {
+ background-color: #1a1a1a;
+ color: #ccc;
+ border-radius: var(--ui-border-radius);
+ font-size: var(--ui-font-s)
+}
+
+code {
+ display: block;
+ width: 100%;
+ padding: 1em;
+ margin-block: 1em;
+ line-height: 2;
+ white-space: pre;
+ overflow: auto;
+}
+
+code[class*=language-] { padding: 0; margin: 0; }
+
+.dark-mode-switch {
+ min-width: 7rem;
+ position: fixed;
+ top: 0.5rem;
+ right: 0.6rem;
+ z-index: 55;
+}
+
+aside {
+ border-right: 1px solid var(--ui-color-border-2);
+ overflow-y: auto;
+ background: var(--ui-color-background);
+ position: fixed;
+ width: var(--sidebar-width);
+
+ left: 0;
+ top: 0;
+ height: 100lvh;
+ padding: 0 1rem calc(100lvh - 100svh);
+
+ overscroll-behavior: contain;
+}
+
+menu {
+ width: 100%;
+ display: flex;
+ flex-flow: column;
+ padding: 1rem 0 0;
+ margin: 0 0 2rem;
+}
+
+menu h3 {
+ margin: 0 -1rem;
+ padding: var(--ui-margin-m) var(--ui-margin-l);
+ white-space: nowrap;
+ font-family: 'Prime Light', 'Helvetica Neue', Helvetica, Arial, sans-serif;
+ font-size: var(--ui-font-xl);
+}
+
+menu h3:not(:first-child) { margin-top: var(--ui-margin-l); }
+
+menu a {
+ color: var(--ui-color-text);
+ text-decoration: none;
+ display: block;
+ margin: var(--ui-margin-s) 0;
+ padding: var(--ui-margin-m) 1.4rem;
+ border-radius: var(--ui-border-radius);
+ white-space: nowrap;
+ touch-action: manipulation;
+}
+
+menu a:hover { background-color: var(--ui-color-highlight-1); }
+menu a.active { background-color: var(--ui-color-highlight); }
+
+
+.nav-toggler {
+ --ui-button-size: 1.1em;
+ position: fixed;
+ left: 0;
+ top: 0.4rem;
+ z-index: 65;
+ color: var(--ui-color-text-1);
+ display: none;
+ transform: translateX(10px);
+}
+.nav-toggler:hover { color: var(--ui-color-text); background: none; }
+
+.btn-scroll-top {
+ position: fixed;
+ bottom: 1rem;
+ right: 1rem;
+ z-index: 999;
+}
+.btn-scroll-top.hidden { display: none; }
+
+
+@media (1px <= width <= 700px) {
+ .nav-toggler { display: flex; }
+ .nav-toggler.expanded { transform: translateX(calc(var(--sidebar-width) - 40px)); }
+
+ aside {
+ box-shadow: 2px 1px 10px #0006;
+ transform: translateX(calc(var(--sidebar-width) * -1));
+ z-index: 60;
+
+ --sidebar-elastic-padding: 80px;
+ width: calc(var(--sidebar-width) + var(--sidebar-elastic-padding));
+ left: calc(var(--sidebar-elastic-padding) * -1);
+ padding-left: calc(var(--sidebar-elastic-padding) + 1rem);
+
+ }
+ aside.expanded { transform: translateX(0); }
+
+ .nav-toggler:not(.swiping),
+ aside:not(.swiping) { transition: transform .3s cubic-bezier(.5, .2, .5, 1.2); }
+}
+
+.banner {
+ height: clamp(100px, 40vw, 360px);
+ padding-top: 60px;
+ display: flex;
+ align-items: flex-start;
+ justify-content: center;
+}
+
+.banner a {
+ display: inline-flex;
+ align-items: center;
+ justify-content: center;
+ gap: 2vw;
+ margin: auto;
+ padding: 0;
+ text-decoration: none;
+}
+
+.logo {
+ width: clamp(42px, 10vw, 160px);
+ height: clamp(42px, 10vw, 160px);
+ opacity: 0.9;
+ filter: drop-shadow(0 1px 1px #000);
+}
+
+
+.logotype {
+ font-family: 'Prime Light', 'Helvetica Neue', Helvetica, Arial, sans-serif;
+ font-size: clamp(28px, 6vw, 90px);
+ font-weight: 100;
+ margin: 0;
+ padding: 0 4px 0 0;
+ display: flex;
+ flex-flow: row;
+ white-space: nowrap;
+ line-height: 1;
+ width: auto;
+}
+
+.logotype em { font-weight: 500; }
+.logotype sub {
+ font-size: var(--ui-font-m);
+ font-weight: 300;
+ color: var(--ui-color-text-semi);
+ margin: -1rem 0 0 -63px;
+ width: 60px;
+ text-align: right;
+}
+
+
+.banner a:hover .logotype span,
+.banner a:hover .logotype em {
+ text-decoration: underline;
+ text-decoration-thickness: 1px;
+ text-decoration-skip-ink: none;
+ text-underline-offset: 8px;
+}
+.banner a:hover .logotype span { text-decoration-color: var(--ui-color-accent); }
+.banner a:hover .logotype em { text-decoration-color: var(--ui-color-text); }
+
+
+
+
+
+.footer-links {
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ gap: 5vw;
+ margin: 6rem 0 0;
+ height: 2rem;
+}
+
+.footer-links a,
+.footer-links a:hover {
+ text-decoration: none;
+ height: 100%;
+ display: flex;
+ align-items: center;
+ color: var(--ui-color-text-semi);
+ transition: color 0.1s;
+}
+
+.footer-links a:hover { color: var(--ui-color-text); }
+
+.footer-links a svg { height: 2rem; width: 2rem; margin: 0; }
+.footer-links a.npm svg { width: 5rem; }
+
+
+
+
+.sticky-block {
+ background: var(--ui-color-background);
+ margin: 0;
+ padding: 0;
+}
+
+main>h1,
+main>h2,
+.sticky-block>h1,
+.sticky-block>h2 {
+ font-family: 'Prime Light', 'Helvetica Neue', Helvetica, Arial, sans-serif;
+ margin: 2rem -2rem 1rem;
+ padding: 0.5rem 100px 0.5rem 2rem;
+}
+
+.prime-light {
+ font-family: 'Prime Light', 'Helvetica Neue', Helvetica, Arial, sans-serif;
+}
+
+/* stylelint-disable-next-line no-descending-specificity */
+main>h2,
+.sticky-block>h2 {
+ font-size: 1.8rem;
+ width: auto;
+ border-bottom: 1px solid var(--ui-color-border-2);
+ position: sticky;
+ top: 0;
+ z-index: 50;
+ white-space: nowrap;
+ overflow: hidden;
+ text-overflow: ellipsis;
+
+ -webkit-backdrop-filter: blur(15px);
+ backdrop-filter: blur(15px);
+}
+
+
+
+/* stylelint-disable-next-line no-descending-specificity */
+main>h2 em {
+ color: var(--ui-color-text-semi);
+ font-size: 1.2rem;
+ line-height: 1.8rem;
+ margin-left: 0.5rem;
+ vertical-align: text-top;
+}
+
+main>p code,
+main>ul li code {
+ display: inline;
+ padding: 0;
+ margin: 0;
+ background: none;
+ color: var(--ui-color-accent);
+ font: inherit;
+ white-space: break-spaces;
+}
+
+
+@media (1px <= width <= 700px) {
+ main>h1,
+ main>h2,
+ .sticky-block>h1,
+ .sticky-block>h2 { padding-left: 54px; }
+}
+
+.button-demo-props {
+ display: flex;
+ flex-flow: column;
+ align-items: flex-start;
+ justify-content: flex-start;
+ gap: 0.5rem;
+ width: clamp(300px, 600px, 100%);
+}
+
+.button-demo-props .input { display: flex; flex-flow: row; width: 100%; }
+.button-demo-props .input .label { width: 5rem; flex-shrink: 0; }
+.button-demo-props .input .input-text-inner { flex: 1; }
+
+
+.button-demo-props .toggle { display: flex; flex-flow: row; width: 100%; }
+.button-demo-props .toggle .label { width: 5rem; flex-shrink: 0; }
+
+@media (1px <= width <= 700px) {
+ .button-demo-props {
+ width: 100%;
+ }
+}
+
+.group {
+ background: var(--ui-color-background-2);
+ padding: 6px;
+ display: grid;
+ grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
+ grid-gap: 6px;
+ border-radius: var(--ui-border-radius-m);
+}
+
+.palette-box {
+ padding: 10px 0;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ overflow: hidden;
+ border-radius: calc(var(--ui-border-radius-m) - 3px);
+ background-color: var(--ui-color-background-2);
+}
+
+.grid-viewport {
+ width: 500px;
+ max-width: 100%;
+ height: 400px;
+ border: 2px dashed red;
+ padding: 5px;
+}
+
+.icons { margin-bottom: 2em; }
+
+.icon-block {
+ float: left;
+ width: 128px;
+ height: 128px;
+ margin: 0 1em 1em 0;
+ display: flex;
+ flex-flow: column;
+ align-items: stretch;
+ justify-content: stretch;
+ background-color: var(--ui-color-background-semi);
+ padding: 0 10px 10px;
+ border-radius: 5px;
+ border: 1px solid var(--ui-color-border);
+}
+
+.icon-block-icon {
+ flex: 1;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+}
+
+.icon-block-icon svg {
+ width: 32px;
+ height: 32px;
+}
+
+.icon-block-name {
+ height: 20px;
+ text-align: center;
+ overflow-wrap: break-word;
+ font-size: var(--ui-font-s)
+}
+
+.div {
+ border: 1px dashed red;
+ height: 100px;
+ width: 200px;
+ display: inline-grid;
+ place-items: center;
+ margin: 1rem 1rem 1rem 0;
+ -webkit-user-select: none;
+ user-select: none;
+}
+
+
+.docs-menu-align-right {
+ padding: 2rem 0;
+ border: 1px dashed var(--ui-color-accent);
+ text-align: right;
+}
+
+.notification-center-header {
+ margin-bottom: 1rem;
+ display: flex;
+ flex-flow: row;
+ align-items: center;
+ justify-content: flex-start;
+ gap: 2rem;
+}
+
+.notification-center-header h2 {
+ display: inline-block;
+ width: auto;
+ padding: 0;
+ margin: 0;
+}
+
+
+.prop-row {
+ padding: 1rem 0;
+ display: flex;
+ align-items: center;
+ justify-content: flex-start;
+ gap: 1rem;
+}
+
+.panel p { margin: 0; }
+
+.tooltip-box {
+ display: inline-block;
+ margin: 10px 0 0;
+ line-height: 2.4em;
+ padding: 1em;
+ border: 1px solid #ccc;
+ min-width: 6em;
+ text-align: center;
+}
+
+.tooltip-html h1,
+.tooltip-html p { margin: 0; }
+.tooltip-html b { color: var(--ui-color-accent); }
+.tooltip-html a:hover { text-decoration: none; }
+
+.split-wrap {
+ width: 400px;
+ height: 200px;
+ border: 1px solid red;
+ display: flex;
+ flex-flow: row;
+ position: relative;
+}
+
+.split-wrap-v { flex-flow: column; }
+.split-box { border: 1px solid green; flex: 1; }
+
+.min-w { min-width: 20px; max-width: 220px; }
+.min-h { min-height: 50px; max-height: 150px; }
+
+.table-viewport {
+ width: 500px;
+ max-width: 100%;
+ height: 500px;
+ border: 2px dashed red;
+ padding: 5px;
+}
+
+.tooltip-box {
+ display: inline-block;
+ margin: 10px 0 0;
+ line-height: 2.4em;
+ padding: 1em;
+ border: 1px solid #ccc;
+ min-width: 6em;
+ text-align: center;
+}
+
+.tooltip-html h1,
+.tooltip-html p { margin: 0; }
+.tooltip-html b { color: var(--ui-color-accent); }
+.tooltip-html a:hover { text-decoration: none; }
+
+.section-utils {
+ --nav-sidebar-width: 240px;
+}
+.section-utils .dark-mode-switch { right: calc(var(--nav-sidebar-width) + 20px); }
+
+.section-utils .sticky-block { padding-bottom: 3rem; margin-right: var(--nav-sidebar-width); }
+
+
+.section-utils .sticky-block .utility h3 {
+ scroll-margin-top: 4.2rem;
+ font-size: 1.1rem;
+ color: var(--ui-color-accent);
+ font-family: Consolas,Monaco,'Andale Mono','Ubuntu Mono',monospace;
+}
+
+
+.section-utils .utilities-nav {
+ position: fixed;
+ right: 0;
+ top: 0;
+ bottom: 0;
+ z-index: 52;
+ margin: 0;
+ padding: 1rem 2rem;
+ overflow-y: auto;
+ width: var(--nav-sidebar-width);
+ border-left: 1px solid var(--ui-color-border-2);
+ background-color: var(--ui-color-background-input);
+}
+
+.section-utils .utility {
+ margin: 0 -2rem;
+ padding: 1rem 2rem;
+ border-bottom: 1px solid var(--ui-color-border-2);
+}
+
+
+.section-utils .btn-scroll-top { right: calc(var(--nav-sidebar-width) + 20px); }
+
+
+@media (1px <= width <= 900px) {
+ .section-utils .dark-mode-switch { right: 0.6rem; }
+ .section-utils .btn-scroll-top { right: 1rem; }
+ .section-utils .sticky-block { margin-right: 0; }
+ .section-utils .utilities-nav {
+ position: static;
+ border-left: none;
+ width: auto;
+ z-index: initial;
+ margin-top: 2rem;
+ background-color: unset;
+ }
+
+}
+
+.button-toggle-wrapper-wide { width: 400px; max-width: 100%; }
+.button-toggle-wrapper-wide .button-toggle { width: 100%; }
+
+.toggle-box {
+ margin: 10px 0 0;
+ line-height: 2.4em;
+ display: none;
+}
+
+.toggle-box.visible {
+ display: block;
+}
+/*# sourceMappingURL=docs.css.map */
diff --git a/docs/docs.js b/docs/docs.js
index b0788e97..48682307 100644
--- a/docs/docs.js
+++ b/docs/docs.js
@@ -1,68 +1,50852 @@
-var v2=Object.create;var vd=Object.defineProperty;var $2=Object.getOwnPropertyDescriptor;var w2=Object.getOwnPropertyNames;var y2=Object.getPrototypeOf,k2=Object.prototype.hasOwnProperty;var Kt=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),$d=(t,e)=>{for(var n in e)vd(t,n,{get:e[n],enumerable:!0})},T2=(t,e,n,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let l of w2(e))!k2.call(t,l)&&l!==n&&vd(t,l,{get:()=>e[l],enumerable:!(i=$2(e,l))||i.enumerable});return t};var wd=(t,e,n)=>(n=t!=null?v2(y2(t)):{},T2(e||!t||!t.__esModule?vd(n,"default",{value:t,enumerable:!0}):n,t));var Ri=Kt(ei=>{"use strict";Object.defineProperty(ei,"__esModule",{value:!0});ei.TraceDirectionKey=ei.Direction=ei.Axis=void 0;var Zc;ei.TraceDirectionKey=Zc;(function(t){t.NEGATIVE="NEGATIVE",t.POSITIVE="POSITIVE",t.NONE="NONE"})(Zc||(ei.TraceDirectionKey=Zc={}));var Jc;ei.Direction=Jc;(function(t){t.TOP="TOP",t.LEFT="LEFT",t.RIGHT="RIGHT",t.BOTTOM="BOTTOM",t.NONE="NONE"})(Jc||(ei.Direction=Jc={}));var Qc;ei.Axis=Qc;(function(t){t.X="x",t.Y="y"})(Qc||(ei.Axis=Qc={}))});var np=Kt(tp=>{"use strict";Object.defineProperty(tp,"__esModule",{value:!0});tp.calculateDirection=gw;var ep=Ri();function gw(t){var e,n=ep.TraceDirectionKey.NEGATIVE,i=ep.TraceDirectionKey.POSITIVE,l=t[t.length-1],r=t[t.length-2]||0;return t.every(function(a){return a===0})?ep.TraceDirectionKey.NONE:(e=l>r?i:n,l===0&&(e=r<0?i:n),e)}});var Xa=Kt(di=>{"use strict";Object.defineProperty(di,"__esModule",{value:!0});di.resolveAxisDirection=di.getDirectionValue=di.getDirectionKey=di.getDifference=void 0;var Dn=Ri(),bw=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=Object.keys(e).toString();switch(n){case Dn.TraceDirectionKey.POSITIVE:return Dn.TraceDirectionKey.POSITIVE;case Dn.TraceDirectionKey.NEGATIVE:return Dn.TraceDirectionKey.NEGATIVE;default:return Dn.TraceDirectionKey.NONE}};di.getDirectionKey=bw;var _w=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e[e.length-1]||0};di.getDirectionValue=_w;var vw=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return Math.abs(e-n)};di.getDifference=vw;var $w=function(e,n){var i=Dn.Direction.LEFT,l=Dn.Direction.RIGHT,r=Dn.Direction.NONE;return e===Dn.Axis.Y&&(i=Dn.Direction.BOTTOM,l=Dn.Direction.TOP),n===Dn.TraceDirectionKey.NEGATIVE&&(r=i),n===Dn.TraceDirectionKey.POSITIVE&&(r=l),r};di.resolveAxisDirection=$w});var op=Kt(ip=>{"use strict";Object.defineProperty(ip,"__esModule",{value:!0});ip.calculateDirectionDelta=yw;var ww=Ri(),as=Xa();function yw(t){for(var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=t.length,i=n-1,l=ww.TraceDirectionKey.NONE;i>=0;i--){var r=t[i],a=(0,as.getDirectionKey)(r),u=(0,as.getDirectionValue)(r[a]),m=t[i-1]||{},f=(0,as.getDirectionKey)(m),c=(0,as.getDirectionValue)(m[f]),g=(0,as.getDifference)(u,c);if(g>=e){l=a;break}else l=f}return l}});var lp=Kt(sp=>{"use strict";Object.defineProperty(sp,"__esModule",{value:!0});sp.calculateDuration=kw;function kw(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return t?e-t:0}});var A_=Kt(rp=>{"use strict";Object.defineProperty(rp,"__esModule",{value:!0});rp.calculateMovingPosition=Tw;function Tw(t){if("changedTouches"in t){var e=t.changedTouches&&t.changedTouches[0];return{x:e&&e.clientX,y:e&&e.clientY}}return{x:t.clientX,y:t.clientY}}});var up=Kt(ap=>{"use strict";Object.defineProperty(ap,"__esModule",{value:!0});ap.updateTrace=Mw;function Mw(t,e){var n=t[t.length-1];return n!==e&&t.push(e),t}});var mp=Kt(fp=>{"use strict";Object.defineProperty(fp,"__esModule",{value:!0});fp.calculateTraceDirections=Ew;var Za=Ri();function I_(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Ew(){for(var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],e=[],n=Za.TraceDirectionKey.POSITIVE,i=Za.TraceDirectionKey.NEGATIVE,l=0,r=[],a=Za.TraceDirectionKey.NONE;lm?n:i;a===Za.TraceDirectionKey.NONE&&(a=f),f===a?r.push(u):(e.push(I_({},a,r.slice())),r=[],r.push(u),a=f)}else u!==0&&(a=u>0?n:i),r.push(u)}return r.length&&e.push(I_({},a,r)),e}});var cp=Kt(dp=>{"use strict";Object.defineProperty(dp,"__esModule",{value:!0});dp.resolveDirection=Aw;var Cw=np(),Sw=mp(),Lw=op(),O_=Xa(),Dw=Ri();function Aw(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Dw.Axis.X,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;if(n){var i=(0,Sw.calculateTraceDirections)(t),l=(0,Lw.calculateDirectionDelta)(i,n);return(0,O_.resolveAxisDirection)(e,l)}var r=(0,Cw.calculateDirection)(t);return(0,O_.resolveAxisDirection)(e,r)}});var hp=Kt(pp=>{"use strict";Object.defineProperty(pp,"__esModule",{value:!0});pp.calculateVelocity=Iw;function Iw(t,e,n){var i=Math.sqrt(t*t+e*e);return i/(n||1)}});var N_=Kt(gp=>{"use strict";Object.defineProperty(gp,"__esModule",{value:!0});gp.calculatePosition=Hw;var x_=up(),H_=cp(),Ow=lp(),xw=hp(),P_=Ri();function Hw(t,e){var n=t.start,i=t.x,l=t.y,r=t.traceX,a=t.traceY,u=e.rotatePosition,m=e.directionDelta,f=u.x-i,c=l-u.y,g=Math.abs(f),b=Math.abs(c);(0,x_.updateTrace)(r,f),(0,x_.updateTrace)(a,c);var h=(0,H_.resolveDirection)(r,P_.Axis.X,m),v=(0,H_.resolveDirection)(a,P_.Axis.Y,m),w=(0,Ow.calculateDuration)(n,Date.now()),k=(0,xw.calculateVelocity)(g,b,w);return{absX:g,absY:b,deltaX:f,deltaY:c,directionX:h,directionY:v,duration:w,positionX:u.x,positionY:u.y,velocity:k}}});var F_=Kt(Ja=>{"use strict";Object.defineProperty(Ja,"__esModule",{value:!0});Ja.checkIsMoreThanSingleTouches=void 0;var Pw=function(e){return!!(e.touches&&e.touches.length>1)};Ja.checkIsMoreThanSingleTouches=Pw});var _p=Kt(bp=>{"use strict";Object.defineProperty(bp,"__esModule",{value:!0});bp.createOptions=Nw;function Nw(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.defineProperty(t,"passive",{get:function(){return this.isPassiveSupported=!0,!0},enumerable:!0}),t}});var q_=Kt(us=>{"use strict";Object.defineProperty(us,"__esModule",{value:!0});us.checkIsPassiveSupported=qw;us.noop=void 0;var Fw=_p();function qw(t){if(typeof t=="boolean")return t;var e={isPassiveSupported:t};try{var n=(0,Fw.createOptions)(e);window.addEventListener("checkIsPassiveSupported",vp,n),window.removeEventListener("checkIsPassiveSupported",vp,n)}catch{}return e.isPassiveSupported}var vp=function(){};us.noop=vp});var B_=Kt(Qa=>{"use strict";Object.defineProperty(Qa,"__esModule",{value:!0});Qa.checkIsTouchEventsSupported=void 0;function $p(t){"@babel/helpers - typeof";return $p=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},$p(t)}var Bw=function(){return(typeof window>"u"?"undefined":$p(window))==="object"&&("ontouchstart"in window||!!window.navigator.maxTouchPoints)};Qa.checkIsTouchEventsSupported=Bw});var j_=Kt(eu=>{"use strict";Object.defineProperty(eu,"__esModule",{value:!0});eu.getInitialState=void 0;function R_(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(l){return Object.getOwnPropertyDescriptor(t,l).enumerable})),n.push.apply(n,i)}return n}function Rw(t){for(var e=1;e0&&arguments[0]!==void 0?arguments[0]:{};return Rw({x:0,y:0,start:0,isSwiping:!1,traceX:[],traceY:[]},e)};eu.getInitialState=zw});var W_=Kt(tu=>{"use strict";Object.defineProperty(tu,"__esModule",{value:!0});tu.getInitialProps=void 0;function z_(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(l){return Object.getOwnPropertyDescriptor(t,l).enumerable})),n.push.apply(n,i)}return n}function Ww(t){for(var e=1;e0&&arguments[0]!==void 0?arguments[0]:{};return Ww({element:null,target:null,delta:10,directionDelta:0,rotationAngle:0,mouseTrackingEnabled:!1,touchTrackingEnabled:!0,preventDefaultTouchmoveEvent:!1,preventTrackingOnMouseleave:!1},e)};tu.getInitialProps=Uw});var V_=Kt(wp=>{"use strict";Object.defineProperty(wp,"__esModule",{value:!0});wp.getOptions=Yw;function Yw(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return t?{passive:!1}:{}}});var U_=Kt(yp=>{"use strict";Object.defineProperty(yp,"__esModule",{value:!0});yp.rotateByAngle=Gw;function Gw(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;if(e===0)return t;var n=t.x,i=t.y,l=Math.PI/180*e,r=n*Math.cos(l)+i*Math.sin(l),a=i*Math.cos(l)-n*Math.sin(l);return{x:r,y:a}}});var Y_=Kt(et=>{"use strict";Object.defineProperty(et,"__esModule",{value:!0});var kp=np();Object.keys(kp).forEach(function(t){t==="default"||t==="__esModule"||t in et&&et[t]===kp[t]||Object.defineProperty(et,t,{enumerable:!0,get:function(){return kp[t]}})});var Tp=op();Object.keys(Tp).forEach(function(t){t==="default"||t==="__esModule"||t in et&&et[t]===Tp[t]||Object.defineProperty(et,t,{enumerable:!0,get:function(){return Tp[t]}})});var Mp=lp();Object.keys(Mp).forEach(function(t){t==="default"||t==="__esModule"||t in et&&et[t]===Mp[t]||Object.defineProperty(et,t,{enumerable:!0,get:function(){return Mp[t]}})});var Ep=A_();Object.keys(Ep).forEach(function(t){t==="default"||t==="__esModule"||t in et&&et[t]===Ep[t]||Object.defineProperty(et,t,{enumerable:!0,get:function(){return Ep[t]}})});var Cp=N_();Object.keys(Cp).forEach(function(t){t==="default"||t==="__esModule"||t in et&&et[t]===Cp[t]||Object.defineProperty(et,t,{enumerable:!0,get:function(){return Cp[t]}})});var Sp=mp();Object.keys(Sp).forEach(function(t){t==="default"||t==="__esModule"||t in et&&et[t]===Sp[t]||Object.defineProperty(et,t,{enumerable:!0,get:function(){return Sp[t]}})});var Lp=hp();Object.keys(Lp).forEach(function(t){t==="default"||t==="__esModule"||t in et&&et[t]===Lp[t]||Object.defineProperty(et,t,{enumerable:!0,get:function(){return Lp[t]}})});var Dp=F_();Object.keys(Dp).forEach(function(t){t==="default"||t==="__esModule"||t in et&&et[t]===Dp[t]||Object.defineProperty(et,t,{enumerable:!0,get:function(){return Dp[t]}})});var Ap=q_();Object.keys(Ap).forEach(function(t){t==="default"||t==="__esModule"||t in et&&et[t]===Ap[t]||Object.defineProperty(et,t,{enumerable:!0,get:function(){return Ap[t]}})});var Ip=B_();Object.keys(Ip).forEach(function(t){t==="default"||t==="__esModule"||t in et&&et[t]===Ip[t]||Object.defineProperty(et,t,{enumerable:!0,get:function(){return Ip[t]}})});var Op=Xa();Object.keys(Op).forEach(function(t){t==="default"||t==="__esModule"||t in et&&et[t]===Op[t]||Object.defineProperty(et,t,{enumerable:!0,get:function(){return Op[t]}})});var xp=_p();Object.keys(xp).forEach(function(t){t==="default"||t==="__esModule"||t in et&&et[t]===xp[t]||Object.defineProperty(et,t,{enumerable:!0,get:function(){return xp[t]}})});var Hp=j_();Object.keys(Hp).forEach(function(t){t==="default"||t==="__esModule"||t in et&&et[t]===Hp[t]||Object.defineProperty(et,t,{enumerable:!0,get:function(){return Hp[t]}})});var Pp=W_();Object.keys(Pp).forEach(function(t){t==="default"||t==="__esModule"||t in et&&et[t]===Pp[t]||Object.defineProperty(et,t,{enumerable:!0,get:function(){return Pp[t]}})});var Np=V_();Object.keys(Np).forEach(function(t){t==="default"||t==="__esModule"||t in et&&et[t]===Np[t]||Object.defineProperty(et,t,{enumerable:!0,get:function(){return Np[t]}})});var Fp=cp();Object.keys(Fp).forEach(function(t){t==="default"||t==="__esModule"||t in et&&et[t]===Fp[t]||Object.defineProperty(et,t,{enumerable:!0,get:function(){return Fp[t]}})});var qp=U_();Object.keys(qp).forEach(function(t){t==="default"||t==="__esModule"||t in et&&et[t]===qp[t]||Object.defineProperty(et,t,{enumerable:!0,get:function(){return qp[t]}})});var Bp=up();Object.keys(Bp).forEach(function(t){t==="default"||t==="__esModule"||t in et&&et[t]===Bp[t]||Object.defineProperty(et,t,{enumerable:!0,get:function(){return Bp[t]}})})});var Z_=Kt(fo=>{"use strict";function jp(t){"@babel/helpers - typeof";return jp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},jp(t)}Object.defineProperty(fo,"__esModule",{value:!0});var Kw={};fo.default=void 0;var fn=Xw(Y_()),Rp=Ri();Object.keys(Rp).forEach(function(t){t==="default"||t==="__esModule"||Object.prototype.hasOwnProperty.call(Kw,t)||t in fo&&fo[t]===Rp[t]||Object.defineProperty(fo,t,{enumerable:!0,get:function(){return Rp[t]}})});function X_(t){if(typeof WeakMap!="function")return null;var e=new WeakMap,n=new WeakMap;return(X_=function(l){return l?n:e})(t)}function Xw(t,e){if(!e&&t&&t.__esModule)return t;if(t===null||jp(t)!=="object"&&typeof t!="function")return{default:t};var n=X_(e);if(n&&n.has(t))return n.get(t);var i={},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in t)if(r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)){var a=l?Object.getOwnPropertyDescriptor(t,r):null;a&&(a.get||a.set)?Object.defineProperty(i,r,a):i[r]=t[r]}return i.default=t,n&&n.set(t,i),i}function Zw(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function G_(t,e){for(var n=0;n1&&arguments[1]!==void 0?arguments[1]:{directionDelta:0},l=this.props.rotationAngle,r=i.directionDelta,a=fn.calculateMovingPosition(n),u=fn.rotateByAngle(a,l);return fn.calculatePosition(this.state,{rotatePosition:u,directionDelta:r})}},{key:"handleSwipeStart",value:function(n){if(!fn.checkIsMoreThanSingleTouches(n)){var i=this.props.rotationAngle,l=fn.calculateMovingPosition(n),r=fn.rotateByAngle(l,i),a=r.x,u=r.y;this.state=fn.getInitialState({isSwiping:!1,start:Date.now(),x:a,y:u})}}},{key:"handleSwipeMove",value:function(n){var i=this.state,l=i.x,r=i.y,a=i.isSwiping;if(!(!l||!r||fn.checkIsMoreThanSingleTouches(n))){var u=this.props.directionDelta||0,m=this.getEventData(n,{directionDelta:u}),f=m.absX,c=m.absY,g=m.deltaX,b=m.deltaY,h=m.directionX,v=m.directionY,w=m.duration,k=m.velocity,_=this.props,M=_.delta,O=_.preventDefaultTouchmoveEvent,D=_.onSwipeStart,L=_.onSwiping;n.cancelable&&O&&n.preventDefault(),!(f{var eM=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{};var Ze=function(t){var e=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,n=0,i={},l={manual:t.Prism&&t.Prism.manual,disableWorkerMessageHandler:t.Prism&&t.Prism.disableWorkerMessageHandler,util:{encode:function w(k){return k instanceof r?new r(k.type,w(k.content),k.alias):Array.isArray(k)?k.map(w):k.replace(/&/g,"&").replace(/"u")return null;if("currentScript"in document&&1<2)return document.currentScript;try{throw new Error}catch(M){var w=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(M.stack)||[])[1];if(w){var k=document.getElementsByTagName("script");for(var _ in k)if(k[_].src==w)return k[_]}return null}},isActive:function(w,k,_){for(var M="no-"+k;w;){var O=w.classList;if(O.contains(k))return!0;if(O.contains(M))return!1;w=w.parentElement}return!!_}},languages:{plain:i,plaintext:i,text:i,txt:i,extend:function(w,k){var _=l.util.clone(l.languages[w]);for(var M in k)_[M]=k[M];return _},insertBefore:function(w,k,_,M){M=M||l.languages;var O=M[w],D={};for(var L in O)if(O.hasOwnProperty(L)){if(L==k)for(var T in _)_.hasOwnProperty(T)&&(D[T]=_[T]);_.hasOwnProperty(L)||(D[L]=O[L])}var A=M[w];return M[w]=D,l.languages.DFS(l.languages,function(H,I){I===A&&H!=w&&(this[H]=D)}),D},DFS:function w(k,_,M,O){O=O||{};var D=l.util.objId;for(var L in k)if(k.hasOwnProperty(L)){_.call(k,L,k[L],M||L);var T=k[L],A=l.util.type(T);A==="Object"&&!O[D(T)]?(O[D(T)]=!0,w(T,_,null,O)):A==="Array"&&!O[D(T)]&&(O[D(T)]=!0,w(T,_,L,O))}}},plugins:{},highlightAll:function(w,k){l.highlightAllUnder(document,w,k)},highlightAllUnder:function(w,k,_){var M={callback:_,container:w,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};l.hooks.run("before-highlightall",M),M.elements=Array.prototype.slice.apply(M.container.querySelectorAll(M.selector)),l.hooks.run("before-all-elements-highlight",M);for(var O=0,D;D=M.elements[O++];)l.highlightElement(D,k===!0,M.callback)},highlightElement:function(w,k,_){var M=l.util.getLanguage(w),O=l.languages[M];l.util.setLanguage(w,M);var D=w.parentElement;D&&D.nodeName.toLowerCase()==="pre"&&l.util.setLanguage(D,M);var L=w.textContent,T={element:w,language:M,grammar:O,code:L};function A(I){T.highlightedCode=I,l.hooks.run("before-insert",T),T.element.innerHTML=T.highlightedCode,l.hooks.run("after-highlight",T),l.hooks.run("complete",T),_&&_.call(T.element)}if(l.hooks.run("before-sanity-check",T),D=T.element.parentElement,D&&D.nodeName.toLowerCase()==="pre"&&!D.hasAttribute("tabindex")&&D.setAttribute("tabindex","0"),!T.code){l.hooks.run("complete",T),_&&_.call(T.element);return}if(l.hooks.run("before-highlight",T),!T.grammar){A(l.util.encode(T.code));return}if(k&&t.Worker){var H=new Worker(l.filename);H.onmessage=function(I){A(I.data)},H.postMessage(JSON.stringify({language:T.language,code:T.code,immediateClose:!0}))}else A(l.highlight(T.code,T.grammar,T.language))},highlight:function(w,k,_){var M={code:w,grammar:k,language:_};if(l.hooks.run("before-tokenize",M),!M.grammar)throw new Error('The language "'+M.language+'" has no grammar.');return M.tokens=l.tokenize(M.code,M.grammar),l.hooks.run("after-tokenize",M),r.stringify(l.util.encode(M.tokens),M.language)},tokenize:function(w,k){var _=k.rest;if(_){for(var M in _)k[M]=_[M];delete k.rest}var O=new m;return f(O,O.head,w),u(w,O,k,O.head,0),g(O)},hooks:{all:{},add:function(w,k){var _=l.hooks.all;_[w]=_[w]||[],_[w].push(k)},run:function(w,k){var _=l.hooks.all[w];if(!(!_||!_.length))for(var M=0,O;O=_[M++];)O(k)}},Token:r};t.Prism=l;function r(w,k,_,M){this.type=w,this.content=k,this.alias=_,this.length=(M||"").length|0}r.stringify=function w(k,_){if(typeof k=="string")return k;if(Array.isArray(k)){var M="";return k.forEach(function(A){M+=w(A,_)}),M}var O={type:k.type,content:w(k.content,_),tag:"span",classes:["token",k.type],attributes:{},language:_},D=k.alias;D&&(Array.isArray(D)?Array.prototype.push.apply(O.classes,D):O.classes.push(D)),l.hooks.run("wrap",O);var L="";for(var T in O.attributes)L+=" "+T+'="'+(O.attributes[T]||"").replace(/"/g,""")+'"';return"<"+O.tag+' class="'+O.classes.join(" ")+'"'+L+">"+O.content+""+O.tag+">"};function a(w,k,_,M){w.lastIndex=k;var O=w.exec(_);if(O&&M&&O[1]){var D=O[1].length;O.index+=D,O[0]=O[0].slice(D)}return O}function u(w,k,_,M,O,D){for(var L in _)if(!(!_.hasOwnProperty(L)||!_[L])){var T=_[L];T=Array.isArray(T)?T:[T];for(var A=0;A=D.reach);F+=G.value.length,G=G.next){var z=G.value;if(k.length>w.length)return;if(!(z instanceof r)){var V=1,Q;if(N){if(Q=a(U,F,w,P),!Q||Q.index>=w.length)break;var Z=Q.index,le=Q.index+Q[0].length,ee=F;for(ee+=G.value.length;Z>=ee;)G=G.next,ee+=G.value.length;if(ee-=G.value.length,F=ee,G.value instanceof r)continue;for(var X=G;X!==k.tail&&(eeD.reach&&(D.reach=Y);var J=G.prev;he&&(J=f(k,J,he),F+=he.length),c(k,J,V);var pe=new r(L,I?l.tokenize(ge,I):ge,j,ge);if(G=f(k,J,pe),W&&f(k,G,W),V>1){var we={cause:L+","+A,reach:Y};u(w,k,_,G.prev,F,we),D&&we.reach>D.reach&&(D.reach=we.reach)}}}}}}function m(){var w={value:null,prev:null,next:null},k={value:null,prev:w,next:null};w.next=k,this.head=w,this.tail=k,this.length=0}function f(w,k,_){var M=k.next,O={value:_,prev:k,next:M};return k.next=O,M.prev=O,w.length++,O}function c(w,k,_){for(var M=k.next,O=0;O<_&&M!==w.tail;O++)M=M.next;k.next=M,M.prev=k,w.length-=O}function g(w){for(var k=[],_=w.head.next;_!==w.tail;)k.push(_.value),_=_.next;return k}if(!t.document)return t.addEventListener&&(l.disableWorkerMessageHandler||t.addEventListener("message",function(w){var k=JSON.parse(w.data),_=k.language,M=k.code,O=k.immediateClose;t.postMessage(l.highlight(M,l.languages[_],_)),O&&t.close()},!1)),l;var b=l.util.currentScript();b&&(l.filename=b.src,b.hasAttribute("data-manual")&&(l.manual=!0));function h(){l.manual||l.highlightAll()}if(!l.manual){var v=document.readyState;v==="loading"||v==="interactive"&&b&&b.defer?document.addEventListener("DOMContentLoaded",h):window.requestAnimationFrame?window.requestAnimationFrame(h):window.setTimeout(h,16)}return l}(eM);typeof nu<"u"&&nu.exports&&(nu.exports=Ze);typeof global<"u"&&(global.Prism=Ze);Ze.languages.markup={comment:{pattern://,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern://i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/?[\da-f]{1,8};/i]};Ze.languages.markup.tag.inside["attr-value"].inside.entity=Ze.languages.markup.entity;Ze.languages.markup.doctype.inside["internal-subset"].inside=Ze.languages.markup;Ze.hooks.add("wrap",function(t){t.type==="entity"&&(t.attributes.title=t.content.replace(/&/,"&"))});Object.defineProperty(Ze.languages.markup.tag,"addInlined",{value:function(e,n){var i={};i["language-"+n]={pattern:/(^$)/i,lookbehind:!0,inside:Ze.languages[n]},i.cdata=/^$/i;var l={"included-cdata":{pattern://i,inside:i}};l["language-"+n]={pattern:/[\s\S]+/,inside:Ze.languages[n]};var r={};r[e]={pattern:RegExp(/(<__[^>]*>)(?:))*\]\]>|(?!)/.source.replace(/__/g,function(){return e}),"i"),lookbehind:!0,greedy:!0,inside:l},Ze.languages.insertBefore("markup","cdata",r)}});Object.defineProperty(Ze.languages.markup.tag,"addAttribute",{value:function(t,e){Ze.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+t+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[e,"language-"+e],inside:Ze.languages[e]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}});Ze.languages.html=Ze.languages.markup;Ze.languages.mathml=Ze.languages.markup;Ze.languages.svg=Ze.languages.markup;Ze.languages.xml=Ze.languages.extend("markup",{});Ze.languages.ssml=Ze.languages.xml;Ze.languages.atom=Ze.languages.xml;Ze.languages.rss=Ze.languages.xml;(function(t){var e=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;t.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+e.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+e.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+e.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+e.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:e,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},t.languages.css.atrule.inside.rest=t.languages.css;var n=t.languages.markup;n&&(n.tag.addInlined("style","css"),n.tag.addAttribute("style","css"))})(Ze);Ze.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/};Ze.languages.javascript=Ze.languages.extend("clike",{"class-name":[Ze.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/});Ze.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/;Ze.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:Ze.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:Ze.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:Ze.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:Ze.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:Ze.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/});Ze.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:Ze.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}});Ze.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}});Ze.languages.markup&&(Ze.languages.markup.tag.addInlined("script","javascript"),Ze.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript"));Ze.languages.js=Ze.languages.javascript;(function(){if(typeof Ze>"u"||typeof document>"u")return;Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var t="Loading\u2026",e=function(b,h){return"\u2716 Error "+b+" while fetching file: "+h},n="\u2716 Error: File does not exist or is empty",i={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},l="data-src-status",r="loading",a="loaded",u="failed",m="pre[data-src]:not(["+l+'="'+a+'"]):not(['+l+'="'+r+'"])';function f(b,h,v){var w=new XMLHttpRequest;w.open("GET",b,!0),w.onreadystatechange=function(){w.readyState==4&&(w.status<400&&w.responseText?h(w.responseText):w.status>=400?v(e(w.status,w.statusText)):v(n))},w.send(null)}function c(b){var h=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(b||"");if(h){var v=Number(h[1]),w=h[2],k=h[3];return w?k?[v,Number(k)]:[v,void 0]:[v,v]}}Ze.hooks.add("before-highlightall",function(b){b.selector+=", "+m}),Ze.hooks.add("before-sanity-check",function(b){var h=b.element;if(h.matches(m)){b.code="",h.setAttribute(l,r);var v=h.appendChild(document.createElement("CODE"));v.textContent=t;var w=h.getAttribute("data-src"),k=b.language;if(k==="none"){var _=(/\.(\w+)$/.exec(w)||[,"none"])[1];k=i[_]||_}Ze.util.setLanguage(v,k),Ze.util.setLanguage(h,k);var M=Ze.plugins.autoloader;M&&M.loadLanguages(k),f(w,function(O){h.setAttribute(l,a);var D=c(h.getAttribute("data-range"));if(D){var L=O.split(/\r\n?|\n/g),T=D[0],A=D[1]==null?L.length:D[1];T<0&&(T+=L.length),T=Math.max(0,Math.min(T-1,L.length)),A<0&&(A+=L.length),A=Math.max(0,Math.min(A,L.length)),O=L.slice(T,A).join(`
-`),h.hasAttribute("data-start")||h.setAttribute("data-start",String(T+1))}v.textContent=O,Ze.highlightElement(v)},function(O){h.setAttribute(l,u),v.textContent=O})}}),Ze.plugins.fileHighlight={highlight:function(h){for(var v=(h||document).querySelectorAll(m),w=0,k;k=v[w++];)Ze.highlightElement(k)}};var g=!1;Ze.fileHighlight=function(){g||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),g=!0),Ze.plugins.fileHighlight.highlight.apply(this,arguments)}})()});var _2=Kt((mz,iu)=>{(function(){if(typeof Prism>"u")return;var t=Object.assign||function(r,a){for(var u in a)a.hasOwnProperty(u)&&(r[u]=a[u]);return r};function e(r){this.defaults=t({},r)}function n(r){return r.replace(/-(\w)/g,function(a,u){return u.toUpperCase()})}function i(r){for(var a=0,u=0;ua&&(f[g]=`
-`+f[g],c=b)}u[m]=f.join("")}return u.join(`
-`)}},typeof iu<"u"&&iu.exports&&(iu.exports=e),Prism.plugins.NormalizeWhitespace=new e({"remove-trailing":!0,"remove-indent":!0,"left-trim":!0,"right-trim":!0}),Prism.hooks.add("before-sanity-check",function(r){var a=Prism.plugins.NormalizeWhitespace;if(!(r.settings&&r.settings["whitespace-normalization"]===!1)&&Prism.util.isActive(r.element,"whitespace-normalization",!0)){if((!r.element||!r.element.parentNode)&&r.code){r.code=a.normalize(r.code,r.settings);return}var u=r.element.parentNode;if(!(!r.code||!u||u.nodeName.toLowerCase()!=="pre")){r.settings==null&&(r.settings={});for(var m in l)if(Object.hasOwnProperty.call(l,m)){var f=l[m];if(u.hasAttribute("data-"+m))try{var c=JSON.parse(u.getAttribute("data-"+m)||"true");typeof c===f&&(r.settings[m]=c)}catch{}}for(var g=u.childNodes,b="",h="",v=!1,w=0;wt;function tt(t,e){for(let n in e)t[n]=e[n];return t}function yd(t){return t()}function ca(){return Object.create(null)}function Re(t){t.forEach(yd)}function _t(t){return typeof t=="function"}function me(t,e){return t!=t?e==e:t!==e||t&&typeof t=="object"||typeof t=="function"}var da;function Ig(t,e){return t===e?!0:(da||(da=document.createElement("a")),da.href=e,t===da.href)}function Og(t){return Object.keys(t).length===0}function kd(t,...e){if(t==null){for(let i of e)i(void 0);return Le}let n=t.subscribe(...e);return n.unsubscribe?()=>n.unsubscribe():n}function ho(t){let e;return kd(t,n=>e=n)(),e}function un(t,e,n){t.$$.on_destroy.push(kd(e,n))}function Dt(t,e,n,i){if(t){let l=xg(t,e,n,i);return t[0](l)}}function xg(t,e,n,i){return t[1]&&i?tt(n.ctx.slice(),t[1](i(e))):n.ctx}function At(t,e,n,i){if(t[2]&&i){let l=t[2](i(n));if(e.dirty===void 0)return l;if(typeof l=="object"){let r=[],a=Math.max(e.dirty.length,l.length);for(let u=0;u32){let e=[],n=t.ctx.length/32;for(let i=0;iwindow.performance.now():()=>Date.now(),Fo=Ng?t=>requestAnimationFrame(t):Le;var bo=new Set;function Fg(t){bo.forEach(e=>{e.c(t)||(bo.delete(e),e.f())}),bo.size!==0&&Fo(Fg)}function _o(t){let e;return bo.size===0&&Fo(Fg),{promise:new Promise(n=>{bo.add(e={c:t,f:n})}),abort(){bo.delete(e)}}}var qo=typeof window<"u"?window:typeof globalThis<"u"?globalThis:global;var ha=class t{_listeners="WeakMap"in qo?new WeakMap:void 0;_observer=void 0;options;constructor(e){this.options=e}observe(e,n){return this._listeners.set(e,n),this._getObserver().observe(e,this.options),()=>{this._listeners.delete(e),this._observer.unobserve(e)}}_getObserver(){return this._observer??(this._observer=new ResizeObserver(e=>{for(let n of e)t.entries.set(n.target,n),this._listeners.get(n.target)?.(n)}))}};ha.entries="WeakMap"in qo?new WeakMap:void 0;var qg=!1;function Bg(){qg=!0}function Rg(){qg=!1}function q(t,e){t.appendChild(e)}function Md(t){if(!t)return document;let e=t.getRootNode?t.getRootNode():t.ownerDocument;return e&&e.host?e:t.ownerDocument}function jg(t){let e=p("style");return e.textContent="/* empty */",E2(Md(t),e),e.sheet}function E2(t,e){return q(t.head||t,e),e.sheet}function s(t,e,n){t.insertBefore(e,n||null)}function o(t){t.parentNode&&t.parentNode.removeChild(t)}function St(t,e){for(let n=0;nt.removeEventListener(e,n,i)}function Un(t){return function(e){return e.preventDefault(),t.call(this,e)}}function ga(t){return function(e){return e.stopPropagation(),t.call(this,e)}}function x(t,e,n){n==null?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}var C2=["width","height"];function Ct(t,e){let n=Object.getOwnPropertyDescriptors(t.__proto__);for(let i in e)e[i]==null?t.removeAttribute(i):i==="style"?t.style.cssText=e[i]:i==="__value"?t.value=t[i]=e[i]:n[i]&&n[i].set&&C2.indexOf(i)===-1?t[i]=e[i]:x(t,i,e[i])}function zg(t){return t===""?null:+t}function Wg(t){return Array.from(t.childNodes)}function je(t,e){e=""+e,t.data!==e&&(t.data=e)}function ct(t,e){t.value=e??""}function Pt(t,e,n,i){n==null?t.style.removeProperty(e):t.style.setProperty(e,n,i?"important":"")}function Ed(t,e,n){for(let i=0;i{e[n.slot||"default"]=!0}),e}function Di(t,e){return new t(e)}var ba=new Map,_a=0;function S2(t){let e=5381,n=t.length;for(;n--;)e=(e<<5)-e^t.charCodeAt(n);return e>>>0}function L2(t,e){let n={stylesheet:jg(e),rules:{}};return ba.set(t,n),n}function Wi(t,e,n,i,l,r,a,u=0){let m=16.666/i,f=`{
-`;for(let k=0;k<=1;k+=m){let _=e+(n-e)*r(k);f+=k*100+`%{${a(_,1-_)}}
-`}let c=f+`100% {${a(n,1-n)}}
-}`,g=`__svelte_${S2(c)}_${u}`,b=Md(t),{stylesheet:h,rules:v}=ba.get(b)||L2(b,t);v[g]||(v[g]=!0,h.insertRule(`@keyframes ${g} ${c}`,h.cssRules.length));let w=t.style.animation||"";return t.style.animation=`${w?`${w}, `:""}${g} ${i}ms linear ${l}ms 1 both`,_a+=1,g}function Vi(t,e){let n=(t.style.animation||"").split(", "),i=n.filter(e?r=>r.indexOf(e)<0:r=>r.indexOf("__svelte")===-1),l=n.length-i.length;l&&(t.style.animation=i.join(", "),_a-=l,_a||D2())}function D2(){Fo(()=>{_a||(ba.forEach(t=>{let{ownerNode:e}=t.stylesheet;e&&o(e)}),ba.clear())})}function va(t,e,n,i){if(!e)return Le;let l=t.getBoundingClientRect();if(e.left===l.left&&e.right===l.right&&e.top===l.top&&e.bottom===l.bottom)return Le;let{delay:r=0,duration:a=300,easing:u=Si,start:m=go()+r,end:f=m+a,tick:c=Le,css:g}=n(t,{from:e,to:l},i),b=!0,h=!1,v;function w(){g&&(v=Wi(t,0,1,a,r,u,g)),r||(h=!0)}function k(){g&&Vi(t,v),b=!1}return _o(_=>{if(!h&&_>=m&&(h=!0),h&&_>=f&&(c(1,0),k()),!b)return!1;if(h){let M=_-m,O=0+1*u(M/a);c(O,1-O)}return!0}),w(),c(0,1),k}function $a(t){let e=getComputedStyle(t);if(e.position!=="absolute"&&e.position!=="fixed"){let{width:n,height:i}=e,l=t.getBoundingClientRect();t.style.position="absolute",t.style.width=n,t.style.height=i,jo(t,l)}}function jo(t,e){let n=t.getBoundingClientRect();if(e.left!==n.left||e.top!==n.top){let i=getComputedStyle(t),l=i.transform==="none"?"":i.transform;t.style.transform=`${l} translate(${e.left-n.left}px, ${e.top-n.top}px)`}}var Ai;function _i(t){Ai=t}function Ii(){if(!Ai)throw new Error("Function called outside component initialization");return Ai}function Cd(t){Ii().$$.before_update.push(t)}function Nt(t){Ii().$$.on_mount.push(t)}function Cn(t){Ii().$$.after_update.push(t)}function on(t){Ii().$$.on_destroy.push(t)}function rt(){let t=Ii();return(e,n,{cancelable:i=!1}={})=>{let l=t.$$.callbacks[e];if(l){let r=Ro(e,n,{cancelable:i});return l.slice().forEach(a=>{a.call(t,r)}),!r.defaultPrevented}return!0}}function Sd(t,e){return Ii().$$.context.set(t,e),e}function Ld(t){return Ii().$$.context.get(t)}function Qe(t,e){let n=t.$$.callbacks[e.type];n&&n.slice().forEach(i=>i.call(this,e))}var Ui=[];var _e=[],$o=[],Ad=[],A2=Promise.resolve(),Id=!1;function Yg(){Id||(Id=!0,A2.then(Mt))}function en(t){$o.push(t)}function Ue(t){Ad.push(t)}var Dd=new Set,vo=0;function Mt(){if(vo!==0)return;let t=Ai;do{try{for(;vot.indexOf(i)===-1?e.push(i):n.push(i)),n.forEach(i=>i()),$o=e}var zo;function Od(){return zo||(zo=Promise.resolve(),zo.then(()=>{zo=null})),zo}function Yi(t,e,n){t.dispatchEvent(Ro(`${e?"intro":"outro"}${n}`))}var wa=new Set,si;function We(){si={r:0,c:[],p:si}}function Ve(){si.r||Re(si.c),si=si.p}function $(t,e){t&&t.i&&(wa.delete(t),t.i(e))}function y(t,e,n,i){if(t&&t.o){if(wa.has(t))return;wa.add(t),si.c.push(()=>{wa.delete(t),i&&(n&&t.d(1),i())}),t.o(e)}else i&&i()}var xd={duration:0};function wo(t,e,n){let i={direction:"in"},l=e(t,n,i),r=!1,a,u,m=0;function f(){a&&Vi(t,a)}function c(){let{delay:b=0,duration:h=300,easing:v=Si,tick:w=Le,css:k}=l||xd;k&&(a=Wi(t,0,1,h,b,v,k,m++)),w(0,1);let _=go()+b,M=_+h;u&&u.abort(),r=!0,en(()=>Yi(t,!0,"start")),u=_o(O=>{if(r){if(O>=M)return w(1,0),Yi(t,!0,"end"),f(),r=!1;if(O>=_){let D=v((O-_)/h);w(D,1-D)}}return r})}let g=!1;return{start(){g||(g=!0,Vi(t),_t(l)?(l=l(i),Od().then(c)):c())},invalidate(){g=!1},end(){r&&(f(),r=!1)}}}function yo(t,e,n){let i={direction:"out"},l=e(t,n,i),r=!0,a,u=si;u.r+=1;let m;function f(){let{delay:c=0,duration:g=300,easing:b=Si,tick:h=Le,css:v}=l||xd;v&&(a=Wi(t,1,0,g,c,b,v));let w=go()+c,k=w+g;en(()=>Yi(t,!1,"start")),"inert"in t&&(m=t.inert,t.inert=!0),_o(_=>{if(r){if(_>=k)return h(0,1),Yi(t,!1,"end"),--u.r||Re(u.c),!1;if(_>=w){let M=b((_-w)/g);h(1-M,M)}}return r})}return _t(l)?Od().then(()=>{l=l(i),f()}):f(),{end(c){c&&"inert"in t&&(t.inert=m),c&&l.tick&&l.tick(1,0),r&&(a&&Vi(t,a),r=!1)}}}function Hd(t,e,n,i){let r=e(t,n,{direction:"both"}),a=i?0:1,u=null,m=null,f=null,c;function g(){f&&Vi(t,f)}function b(v,w){let k=v.b-a;return w*=Math.abs(k),{a,b:v.b,d:k,duration:w,start:v.start,end:v.start+w,group:v.group}}function h(v){let{delay:w=0,duration:k=300,easing:_=Si,tick:M=Le,css:O}=r||xd,D={start:go()+w,b:v};v||(D.group=si,si.r+=1),"inert"in t&&(v?c!==void 0&&(t.inert=c):(c=t.inert,t.inert=!0)),u||m?m=D:(O&&(g(),f=Wi(t,a,v,k,w,_,O)),v&&M(0,1),u=b(D,k),en(()=>Yi(t,v,"start")),_o(L=>{if(m&&L>m.start&&(u=b(m,k),m=null,Yi(t,u.b,"start"),O&&(g(),f=Wi(t,a,u.b,u.duration,0,_,r.css))),u){if(L>=u.end)M(a=u.b,1-a),Yi(t,u.b,"end"),m||(u.b?g():--u.group.r||Re(u.group.c)),u=null;else if(L>=u.start){let T=L-u.start;a=u.a+u.d*_(T/u.duration),M(a,1-a)}}return!!(u||m)}))}return{run(v){_t(r)?Od().then(()=>{r=r({direction:v?"in":"out"}),h(v)}):h(v)},end(){g(),u=m=null}}}function Ye(t){return t?.length!==void 0?t:Array.from(t)}function Kg(t,e){t.d(1),e.delete(t.key)}function Wo(t,e){y(t,1,1,()=>{e.delete(t.key)})}function ya(t,e){t.f(),Wo(t,e)}function li(t,e,n,i,l,r,a,u,m,f,c,g){let b=t.length,h=r.length,v=b,w={};for(;v--;)w[t[v].key]=v;let k=[],_=new Map,M=new Map,O=[];for(v=h;v--;){let A=g(l,r,v),H=n(A),I=a.get(H);I?i&&O.push(()=>I.p(A,e)):(I=f(H,A),I.c()),_.set(H,k[v]=I),H in w&&M.set(H,Math.abs(v-w[H]))}let D=new Set,L=new Set;function T(A){$(A,1),A.m(u,c),a.set(A.key,A),c=A.first,h--}for(;b&&h;){let A=k[h-1],H=t[b-1],I=A.key,P=H.key;A===H?(c=A.first,b--,h--):_.has(P)?!a.has(I)||D.has(I)?T(A):L.has(P)?b--:M.get(I)>M.get(P)?(L.add(I),T(A)):(D.add(P),b--):(m(H,a),b--)}for(;b--;){let A=t[b];_.has(A.key)||m(A,a)}for(;h;)T(k[h-1]);return Re(O),k}function jt(t,e){let n={},i={},l={$$scope:1},r=t.length;for(;r--;){let a=t[r],u=e[r];if(u){for(let m in a)m in u||(i[m]=1);for(let m in u)l[m]||(n[m]=u[m],l[m]=1);t[r]=u}else for(let m in a)l[m]=1}for(let a in i)a in n||(n[a]=void 0);return n}function ko(t){return typeof t=="object"&&t!==null?t:{}}var O2=["allowfullscreen","allowpaymentrequest","async","autofocus","autoplay","checked","controls","default","defer","disabled","formnovalidate","hidden","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected"],x2=new Set([...O2]);function Ge(t,e,n){let i=t.$$.props[e];i!==void 0&&(t.$$.bound[i]=n,n(t.$$.ctx[i]))}function S(t){t&&t.c()}function E(t,e,n){let{fragment:i,after_update:l}=t.$$;i&&i.m(e,n),en(()=>{let r=t.$$.on_mount.map(yd).filter(_t);t.$$.on_destroy?t.$$.on_destroy.push(...r):Re(r),t.$$.on_mount=[]}),l.forEach(en)}function C(t,e){let n=t.$$;n.fragment!==null&&(Gg(n.after_update),Re(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function P2(t,e){t.$$.dirty[0]===-1&&(Ui.push(t),Yg(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<{let v=h.length?h[0]:b;return f.ctx&&l(f.ctx[g],f.ctx[g]=v)&&(!f.skip_bound&&f.bound[g]&&f.bound[g](v),c&&P2(t,g)),b}):[],f.update(),c=!0,Re(f.before_update),f.fragment=i?i(f.ctx):!1,e.target){if(e.hydrate){Bg();let g=Wg(e.target);f.fragment&&f.fragment.l(g),g.forEach(o)}else f.fragment&&f.fragment.c();e.intro&&$(t.$$.fragment),E(t,e.target,e.anchor),Rg(),Mt()}_i(m)}var N2;typeof HTMLElement=="function"&&(N2=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;constructor(t,e,n){super(),this.$$ctor=t,this.$$s=e,n&&this.attachShadow({mode:"open"})}addEventListener(t,e,n){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(e),this.$$c){let i=this.$$c.$on(t,e);this.$$l_u.set(e,i)}super.addEventListener(t,e,n)}removeEventListener(t,e,n){if(super.removeEventListener(t,e,n),this.$$c){let i=this.$$l_u.get(e);i&&(i(),this.$$l_u.delete(e))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let t=function(l){return()=>{let r;return{c:function(){r=p("slot"),l!=="default"&&x(r,"name",l)},m:function(m,f){s(m,r,f)},d:function(m){m&&o(r)}}}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;let e={},n=Ug(this);for(let l of this.$$s)l in n&&(e[l]=[t(l)]);for(let l of this.attributes){let r=this.$$g_p(l.name);r in this.$$d||(this.$$d[r]=Pd(r,l.value,this.$$p_d,"toProp"))}for(let l in this.$$p_d)!(l in this.$$d)&&this[l]!==void 0&&(this.$$d[l]=this[l],delete this[l]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:{...this.$$d,$$slots:e,$$scope:{ctx:[]}}});let i=()=>{this.$$r=!0;for(let l in this.$$p_d)if(this.$$d[l]=this.$$c.$$.ctx[this.$$c.$$.props[l]],this.$$p_d[l].reflect){let r=Pd(l,this.$$d[l],this.$$p_d,"toAttribute");r==null?this.removeAttribute(this.$$p_d[l].attribute||l):this.setAttribute(this.$$p_d[l].attribute||l,r)}this.$$r=!1};this.$$c.$$.after_update.push(i),i();for(let l in this.$$l)for(let r of this.$$l[l]){let a=this.$$c.$on(l,r);this.$$l_u.set(r,a)}this.$$l={}}}attributeChangedCallback(t,e,n){this.$$r||(t=this.$$g_p(t),this.$$d[t]=Pd(t,n,this.$$p_d,"toProp"),this.$$c?.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(t){return Object.keys(this.$$p_d).find(e=>this.$$p_d[e].attribute===t||!this.$$p_d[e].attribute&&e.toLowerCase()===t)||t}});function Pd(t,e,n,i){let l=n[t]?.type;if(e=l==="Boolean"&&typeof e!="boolean"?e!=null:e,!i||!n[t])return e;if(i==="toAttribute")switch(l){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e??null;default:return e}else switch(l){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}var fe=class{$$=void 0;$$set=void 0;$destroy(){C(this,1),this.$destroy=Le}$on(e,n){if(!_t(n))return Le;let i=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return i.push(n),()=>{let l=i.indexOf(n);l!==-1&&i.splice(l,1)}}$set(e){this.$$set&&!Og(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}};var Xg="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Xg);function F2(t){let e,n,i,l,r,a=t[4].default,u=Dt(a,t,t[3],null);return{c(){e=p("div"),n=p("div"),i=p("div"),u&&u.c(),x(i,"class","button-group-inner"),x(i,"role","group"),x(n,"class","button-group-scroller"),x(e,"class",l="button-group "+t[1]),ie(e,"round",t[2])},m(m,f){s(m,e,f),q(e,n),q(n,i),u&&u.m(i,null),t[5](e),r=!0},p(m,[f]){u&&u.p&&(!r||f&8)&&It(u,a,m,m[3],r?At(a,m[3],f,null):Ot(m[3]),null),(!r||f&2&&l!==(l="button-group "+m[1]))&&x(e,"class",l),(!r||f&6)&&ie(e,"round",m[2])},i(m){r||($(u,m),r=!0)},o(m){y(u,m),r=!1},d(m){m&&o(e),u&&u.d(m),t[5](null)}}}function q2(t,e,n){let{$$slots:i={},$$scope:l}=e,{class:r=""}=e,{round:a=void 0}=e,{element:u=void 0}=e;function m(f){_e[f?"unshift":"push"](()=>{u=f,n(0,u)})}return t.$$set=f=>{"class"in f&&n(1,r=f.class),"round"in f&&n(2,a=f.round),"element"in f&&n(0,u=f.element),"$$scope"in f&&n(3,l=f.$$scope)},[u,r,a,l,i,m]}var Nd=class extends fe{constructor(e){super(),de(this,e,q2,F2,me,{class:1,round:2,element:0})}},jn=Nd;var B2=' ",Vo={adjustments:'adjustments-horizontal">`}function Jg(t,e){Gi[t]||(Gi[t]=e)}function j2(t){let e,n;return{c(){e=new Li(!1),n=Tt(),e.a=n},m(i,l){e.m(t[0],i,l),s(i,n,l)},p(i,[l]){l&1&&e.p(i[0])},i:Le,o:Le,d(i){i&&(o(n),e.d())}}}function z2(t,e,n){let i,{name:l=""}=e;return t.$$set=r=>{"name"in r&&n(1,l=r.name)},t.$$.update=()=>{t.$$.dirty&2&&n(0,i=Ki(l))},[i,l]}var Fd=class extends fe{constructor(e){super(),de(this,e,z2,j2,me,{name:1})}},zt=Fd;function Qg(t){let e,n;return e=new zt({props:{name:t[10]}}),{c(){S(e.$$.fragment)},m(i,l){E(e,i,l),n=!0},p(i,l){let r={};l&1024&&(r.name=i[10]),e.$set(r)},i(i){n||($(e.$$.fragment,i),n=!0)},o(i){y(e.$$.fragment,i),n=!1},d(i){C(e,i)}}}function W2(t){let e,n,i,l,r,a,u,m=t[10]&&Qg(t),f=t[17].default,c=Dt(f,t,t[16],null),g=[{type:i=t[6]?"submit":"button"},{class:l="button "+t[12]},t[15]],b={};for(let h=0;h{m=null}),Ve()),c&&c.p&&(!r||v&65536)&&It(c,f,h,h[16],r?At(f,h[16],v,null):Ot(h[16]),null),Ct(e,b=jt(g,[(!r||v&64&&i!==(i=h[6]?"submit":"button"))&&{type:i},(!r||v&4096&&l!==(l="button "+h[12]))&&{class:l},v&32768&&h[15]])),ie(e,"button-normal",!h[8]&&!h[9]&&!h[7]),ie(e,"button-outline",h[7]),ie(e,"button-link",h[8]),ie(e,"button-text",h[9]),ie(e,"button-has-text",h[14].default),ie(e,"round",h[11]),ie(e,"info",h[1]),ie(e,"success",h[2]),ie(e,"warning",h[3]),ie(e,"danger",h[4]),ie(e,"error",h[5]),ie(e,"touching",h[13])},i(h){r||($(m),$(c,h),r=!0)},o(h){y(m),y(c,h),r=!1},d(h){h&&o(e),m&&m.d(),c&&c.d(h),t[26](null),a=!1,Re(u)}}}function V2(t,e,n){let i=["element","info","success","warning","danger","error","submit","outline","link","text","icon","round","class"],l=kt(e,i),{$$slots:r={},$$scope:a}=e,u=pa(r),{element:m=void 0}=e,{info:f=!1}=e,{success:c=!1}=e,{warning:g=!1}=e,{danger:b=!1}=e,{error:h=!1}=e,{submit:v=!1}=e,{outline:w=!1}=e,{link:k=!1}=e,{text:_=!1}=e,{icon:M=void 0}=e,{round:O=void 0}=e,{class:D=""}=e,L=!1;function T(z){Qe.call(this,t,z)}function A(z){Qe.call(this,t,z)}function H(z){Qe.call(this,t,z)}function I(z){Qe.call(this,t,z)}function P(z){Qe.call(this,t,z)}function N(z){Qe.call(this,t,z)}function j(z){Qe.call(this,t,z)}function K(z){Qe.call(this,t,z)}function U(z){_e[z?"unshift":"push"](()=>{m=z,n(0,m)})}let G=()=>n(13,L=!0),F=()=>n(13,L=!1);return t.$$set=z=>{e=tt(tt({},e),Zt(z)),n(15,l=kt(e,i)),"element"in z&&n(0,m=z.element),"info"in z&&n(1,f=z.info),"success"in z&&n(2,c=z.success),"warning"in z&&n(3,g=z.warning),"danger"in z&&n(4,b=z.danger),"error"in z&&n(5,h=z.error),"submit"in z&&n(6,v=z.submit),"outline"in z&&n(7,w=z.outline),"link"in z&&n(8,k=z.link),"text"in z&&n(9,_=z.text),"icon"in z&&n(10,M=z.icon),"round"in z&&n(11,O=z.round),"class"in z&&n(12,D=z.class),"$$scope"in z&&n(16,a=z.$$scope)},[m,f,c,g,b,h,v,w,k,_,M,O,D,L,u,l,a,r,T,A,H,I,P,N,j,K,U,G,F]}var qd=class extends fe{constructor(e){super(),de(this,e,V2,W2,me,{element:0,info:1,success:2,warning:3,danger:4,error:5,submit:6,outline:7,link:8,text:9,icon:10,round:11,class:12})}},De=qd;var To=[];function Yn(t,e=Le){let n,i=new Set;function l(u){if(me(t,u)&&(t=u,n)){let m=!To.length;for(let f of i)f[1](),To.push(f,t);if(m){for(let f=0;f{i.delete(f),i.size===0&&n&&(n(),n=null)}}return{set:l,update:r,subscribe:a}}var Xi=["a[href]:not([disabled])","button:not([disabled])","iframe:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])","[contentEditable]","[tabindex]:not(.focus-trap)"].join(","),sn=Yn(300),Bd=Yn(!1),e1=t=>sn.set(!t||t.matches?0:200),t1=t=>Bd.set(t&&t.matches);if(window.matchMedia){let t=window.matchMedia("(prefers-reduced-motion: reduce)");e1(t),t.addEventListener("change",e1);let e=window.matchMedia("(prefers-color-scheme: dark)");t1(e),e.addEventListener("change",t1)}function ka(t,e,n,i={}){let l={duration:ho(sn),easing:"ease-out",fill:"forwards"},r=Object.assign({},l,i);return new Promise(a=>{requestAnimationFrame(()=>{let u=t.animate([e,n],r);u.oncancel=a,u.onfinish=a})})}function i1(t,e=160){return ka(t,{opacity:1},{opacity:.5},{duration:e/2,fill:"backwards"})}function Uo(t){return structuredClone(t)}function Mo(t,e=300){let n;return(...i)=>{n&&clearTimeout(n),n=setTimeout(()=>t.apply(this,i),e)}}function Ta(t,e=300){let n=0;return(...i)=>{let l=new Date().getTime();if(!(l-nt.length)return!1;if(e===t)return!0;t=t.toLowerCase(),e=e.toLowerCase();let n=-1;for(let i of e)if(!~(n=t.indexOf(i,n+1)))return!1;return!0}function Xe(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,t=>{let e=Math.random()*16|0;return(t==="x"?e:e&3|8).toString(16)})}function Oi(t){return t.type.includes("touch")?t.changedTouches[0].clientX:t.clientX}function Yo(t){return t.type.includes("touch")?t.changedTouches[0].clientY:t.clientY}function Gn(){let t=navigator.userAgent,e=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i;return!!(e.test(t)||(e=/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i,e.test(t.slice(0,4))))}function U2(t,e){if(e in t)return t[e]}function Y2(t,e){let n={};return e.forEach(i=>{i in t&&(n[i]=t[i])}),n}function s1(t,e){return t?Array.isArray(e)?Y2(t,e):U2(t,e):{}}function l1(t,e=2){let n=Math.pow(10,e);return Math.round(t*n)/n}function G2(t){let e=t.getFullYear(),n=("0"+(t.getMonth()+1)).slice(-2),i=("0"+t.getDate()).slice(-2),l=("0"+t.getHours()).slice(-2),r=("0"+t.getMinutes()).slice(-2);return`${e}-${n}-${i} ${l}:${r}`}function Rd(t,e){if(!t)return"";e=e||new Date().getTime();let n=(e-+t)/1e3,i=[{label:"year",seconds:31536e3},{label:"month",seconds:2592e3},{label:"day",seconds:86400},{label:"hour",seconds:3600},{label:"minute",seconds:60}],l=[];for(;n>60;){let r=i.find(u=>u.secondsw.height||vc.top?"bottom":"top"}function K2(t,e){let n=e.getBoundingClientRect(),i=t.left+t.width/2,l=n.left+n.width/2,r=n.width?n.width/100:1,a=50+(i-l)/r,u=Math.max(8,Math.min(93,a));return`${Math.round(u*r-1)}px`}function n1(t){let e=getComputedStyle(t,null),n=e.overflowX||e.overflow;return/(auto|scroll)/.test(n)?t.scrollWidth>t.clientWidth:!1}function r1(t){if(t instanceof HTMLElement||t instanceof SVGElement){if(n1(t))return!0;for(;t=t.parentElement;)if(n1(t))return!0;return!1}}function Go(t){if(t=t[0]==="#"?t.slice(1):t,t.length===3&&(t=t[0]+t[0]+t[1]+t[1]+t[2]+t[2]),t.length!==6)return!1;let e=parseInt(t.substring(0,2),16),n=parseInt(t.substring(2,4),16),i=parseInt(t.substring(4,6),16);if(isNaN(e)||isNaN(n)||isNaN(i))return!1;let l=(e*299+n*587+i*114)/1e3;return isNaN(l)?!1:l<140}var X2=t=>({}),a1=t=>({});function Z2(t){let e,n,i,l,r,a,u,m,f,c,g,b,h,v,w,k,_=t[16].default,M=Dt(_,t,t[15],null),O=t[16].footer,D=Dt(O,t,t[15],a1);return{c(){e=p("div"),n=p("div"),i=p("div"),l=d(),r=p("h1"),a=ne(t[3]),u=d(),m=p("div"),M&&M.c(),f=d(),c=p("div"),D&&D.c(),g=d(),b=p("div"),x(i,"tabindex","0"),x(i,"class","focus-trap focus-trap-top"),x(r,"class","dialog-header"),x(m,"class","dialog-content"),x(c,"class","dialog-footer"),x(b,"tabindex","0"),x(b,"class","focus-trap focus-trap-bottom"),x(n,"class","dialog"),ie(n,"no-title",!t[3]),x(e,"role","dialog"),x(e,"aria-modal","true"),x(e,"aria-label",t[3]),x(e,"class",h="dialog-backdrop "+t[2]),ie(e,"opened",t[0])},m(L,T){s(L,e,T),q(e,n),q(n,i),q(n,l),q(n,r),q(r,a),q(n,u),q(n,m),M&&M.m(m,null),t[17](m),q(n,f),q(n,c),D&&D.m(c,null),t[18](c),q(n,g),q(n,b),t[19](n),t[20](e),v=!0,w||(k=[ye(i,"focus",t[8]),ye(b,"focus",t[7]),ye(e,"mousedown",t[9]),ye(e,"click",t[10])],w=!0)},p(L,[T]){(!v||T&8)&&je(a,L[3]),M&&M.p&&(!v||T&32768)&&It(M,_,L,L[15],v?At(_,L[15],T,null):Ot(L[15]),null),D&&D.p&&(!v||T&32768)&&It(D,O,L,L[15],v?At(O,L[15],T,X2):Ot(L[15]),a1),(!v||T&8)&&ie(n,"no-title",!L[3]),(!v||T&8)&&x(e,"aria-label",L[3]),(!v||T&4&&h!==(h="dialog-backdrop "+L[2]))&&x(e,"class",h),(!v||T&5)&&ie(e,"opened",L[0])},i(L){v||($(M,L),$(D,L),v=!0)},o(L){y(M,L),y(D,L),v=!1},d(L){L&&o(e),M&&M.d(L),t[17](null),D&&D.d(L),t[18](null),t[19](null),t[20](null),w=!1,Re(k)}}}function J2(t,e){let i={ArrowLeft:"nextElementSibling",ArrowRight:"previousElementSibling"}[e],l=t[i];for(;l&&l.tagName!=="BUTTON";)l=l[i];l&&l.focus()}function Q2(t,e,n){let i;un(t,sn,z=>n(25,i=z));let{$$slots:l={},$$scope:r}=e,{class:a=""}=e,{title:u=""}=e,{opened:m=!1}=e,{skipFirstFocus:f=!1}=e,{modal:c=!1}=e,{element:g}=e,b=rt(),h,v,w,k,_,M,O;Nt(()=>{document.body.appendChild(g)});function D(){let z=T().shift(),V=T().pop();!z&&!V&&(v.setAttribute("tabindex",0),z=v),V&&V.scrollIntoView({block:"end"}),z&&z.focus()}function L(){let z=T().shift(),V=T().pop();!z&&!V&&(v.setAttribute("tabindex",0),V=v),z&&z.scrollIntoView({block:"end"}),V&&V.focus()}function T(){let z=Array.from(v.querySelectorAll(Xi)),V=Array.from(w.querySelectorAll(Xi));return[...z,...V]}function A(z){c&&(z.stopPropagation(),z.preventDefault())}function H(z){!h.contains(z.target)&&!c&&(z.stopPropagation(),j())}function I(z){if(!m)return;let V=g.contains(document.activeElement);if(z.key==="Tab"&&!V)return D();if(z.key==="Escape"&&!c)return z.stopPropagation(),j();let Q=z.target?.closest("button");Q&&(z.key==="ArrowLeft"||z.key==="ArrowRight")&&J2(Q,z.key)}function P(z){z?(O=window.scrollY,document.body.classList.add("has-dialog"),document.body.style.top=`-${O}px`):(document.body.classList.remove("has-dialog"),document.scrollingElement.scrollTop=O,document.body.style.top="")}function N(z){m||(z instanceof Event&&(z=z.target),k=z||document.activeElement,k&&k!==document.body&&(k.setAttribute("aria-haspopup","true"),k.setAttribute("aria-expanded","true")),n(1,g.style.display="flex",g),_&&clearTimeout(_),_=setTimeout(()=>{n(0,m=!0),n(1,g.style.display="flex",g),f!==!0&&f!=="true"&&D(),document.addEventListener("keydown",I),P(!0),b("open")},100))}function j(){m&&(n(0,m=!1),k&&k.focus&&k.focus(),M&&clearTimeout(M),M=setTimeout(()=>{n(0,m=!1),n(1,g.style.display="none",g),document.removeEventListener("keydown",I),k&&k!==document.body&&k.removeAttribute("aria-expanded"),P(!1),b("close")},i))}function K(z){_e[z?"unshift":"push"](()=>{v=z,n(5,v)})}function U(z){_e[z?"unshift":"push"](()=>{w=z,n(6,w)})}function G(z){_e[z?"unshift":"push"](()=>{h=z,n(4,h)})}function F(z){_e[z?"unshift":"push"](()=>{g=z,n(1,g)})}return t.$$set=z=>{"class"in z&&n(2,a=z.class),"title"in z&&n(3,u=z.title),"opened"in z&&n(0,m=z.opened),"skipFirstFocus"in z&&n(11,f=z.skipFirstFocus),"modal"in z&&n(12,c=z.modal),"element"in z&&n(1,g=z.element),"$$scope"in z&&n(15,r=z.$$scope)},[m,g,a,u,h,v,w,D,L,A,H,f,c,N,j,r,l,K,U,G,F]}var jd=class extends fe{constructor(e){super(),de(this,e,Q2,Z2,me,{class:2,title:3,opened:0,skipFirstFocus:11,modal:12,element:1,open:13,close:14})}get class(){return this.$$.ctx[2]}set class(e){this.$$set({class:e}),Mt()}get title(){return this.$$.ctx[3]}set title(e){this.$$set({title:e}),Mt()}get opened(){return this.$$.ctx[0]}set opened(e){this.$$set({opened:e}),Mt()}get skipFirstFocus(){return this.$$.ctx[11]}set skipFirstFocus(e){this.$$set({skipFirstFocus:e}),Mt()}get modal(){return this.$$.ctx[12]}set modal(e){this.$$set({modal:e}),Mt()}get element(){return this.$$.ctx[1]}set element(e){this.$$set({element:e}),Mt()}get open(){return this.$$.ctx[13]}get close(){return this.$$.ctx[14]}},vi=jd;function Ko(t){let e=t-1;return e*e*e+1}function Zi(t,{delay:e=0,duration:n=400,easing:i=Ko,x:l=0,y:r=0,opacity:a=0}={}){let u=getComputedStyle(t),m=+u.opacity,f=u.transform==="none"?"":u.transform,c=m*(1-a),[g,b]=Td(l),[h,v]=Td(r);return{delay:e,duration:n,easing:i,css:(w,k)=>`
- transform: ${f} translate(${(1-w)*g}${b}, ${(1-w)*h}${v});
- opacity: ${m-c*k}`}}function u1({fallback:t,...e}){let n=new Map,i=new Map;function l(a,u,m){let{delay:f=0,duration:c=T=>Math.sqrt(T)*30,easing:g=Ko}=tt(tt({},e),m),b=a.getBoundingClientRect(),h=u.getBoundingClientRect(),v=b.left-h.left,w=b.top-h.top,k=b.width/h.width,_=b.height/h.height,M=Math.sqrt(v*v+w*w),O=getComputedStyle(u),D=O.transform==="none"?"":O.transform,L=+O.opacity;return{delay:f,duration:_t(c)?c(M):c,easing:g,css:(T,A)=>`
- opacity: ${T*L};
+var __create = Object.create;
+var __defProp = Object.defineProperty;
+var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
+var __getOwnPropNames = Object.getOwnPropertyNames;
+var __getProtoOf = Object.getPrototypeOf;
+var __hasOwnProp = Object.prototype.hasOwnProperty;
+var __commonJS = (cb, mod) => function __require() {
+ return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
+};
+var __export = (target, all) => {
+ for (var name2 in all)
+ __defProp(target, name2, { get: all[name2], enumerable: true });
+};
+var __copyProps = (to, from, except, desc) => {
+ if (from && typeof from === "object" || typeof from === "function") {
+ for (let key of __getOwnPropNames(from))
+ if (!__hasOwnProp.call(to, key) && key !== except)
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
+ }
+ return to;
+};
+var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
+ // If the importer is in node compatibility mode or this is not an ESM
+ // file that has been converted to a CommonJS file using a Babel-
+ // compatible transform (i.e. "__esModule" has not been set), then set
+ // "default" to the CommonJS "module.exports" for node compatibility.
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
+ mod
+));
+
+// node_modules/vanilla-swipe/lib/types/index.js
+var require_types = __commonJS({
+ "node_modules/vanilla-swipe/lib/types/index.js"(exports) {
+ "use strict";
+ Object.defineProperty(exports, "__esModule", {
+ value: true
+ });
+ exports.TraceDirectionKey = exports.Direction = exports.Axis = void 0;
+ var TraceDirectionKey;
+ exports.TraceDirectionKey = TraceDirectionKey;
+ (function(TraceDirectionKey2) {
+ TraceDirectionKey2["NEGATIVE"] = "NEGATIVE";
+ TraceDirectionKey2["POSITIVE"] = "POSITIVE";
+ TraceDirectionKey2["NONE"] = "NONE";
+ })(TraceDirectionKey || (exports.TraceDirectionKey = TraceDirectionKey = {}));
+ var Direction;
+ exports.Direction = Direction;
+ (function(Direction2) {
+ Direction2["TOP"] = "TOP";
+ Direction2["LEFT"] = "LEFT";
+ Direction2["RIGHT"] = "RIGHT";
+ Direction2["BOTTOM"] = "BOTTOM";
+ Direction2["NONE"] = "NONE";
+ })(Direction || (exports.Direction = Direction = {}));
+ var Axis;
+ exports.Axis = Axis;
+ (function(Axis2) {
+ Axis2["X"] = "x";
+ Axis2["Y"] = "y";
+ })(Axis || (exports.Axis = Axis = {}));
+ }
+});
+
+// node_modules/vanilla-swipe/lib/utils/calculateDirection.js
+var require_calculateDirection = __commonJS({
+ "node_modules/vanilla-swipe/lib/utils/calculateDirection.js"(exports) {
+ "use strict";
+ Object.defineProperty(exports, "__esModule", {
+ value: true
+ });
+ exports.calculateDirection = calculateDirection;
+ var _types = require_types();
+ function calculateDirection(trace) {
+ var direction;
+ var negative = _types.TraceDirectionKey.NEGATIVE;
+ var positive = _types.TraceDirectionKey.POSITIVE;
+ var current = trace[trace.length - 1];
+ var previous = trace[trace.length - 2] || 0;
+ if (trace.every(function(i) {
+ return i === 0;
+ })) {
+ return _types.TraceDirectionKey.NONE;
+ }
+ direction = current > previous ? positive : negative;
+ if (current === 0) {
+ direction = previous < 0 ? positive : negative;
+ }
+ return direction;
+ }
+ }
+});
+
+// node_modules/vanilla-swipe/lib/utils/common.js
+var require_common = __commonJS({
+ "node_modules/vanilla-swipe/lib/utils/common.js"(exports) {
+ "use strict";
+ Object.defineProperty(exports, "__esModule", {
+ value: true
+ });
+ exports.resolveAxisDirection = exports.getDirectionValue = exports.getDirectionKey = exports.getDifference = void 0;
+ var _types = require_types();
+ var getDirectionKey = function getDirectionKey2() {
+ var object = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
+ var key = Object.keys(object).toString();
+ switch (key) {
+ case _types.TraceDirectionKey.POSITIVE:
+ return _types.TraceDirectionKey.POSITIVE;
+ case _types.TraceDirectionKey.NEGATIVE:
+ return _types.TraceDirectionKey.NEGATIVE;
+ default:
+ return _types.TraceDirectionKey.NONE;
+ }
+ };
+ exports.getDirectionKey = getDirectionKey;
+ var getDirectionValue = function getDirectionValue2() {
+ var values = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [];
+ return values[values.length - 1] || 0;
+ };
+ exports.getDirectionValue = getDirectionValue;
+ var getDifference = function getDifference2() {
+ var x = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0;
+ var y = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0;
+ return Math.abs(x - y);
+ };
+ exports.getDifference = getDifference;
+ var resolveAxisDirection = function resolveAxisDirection2(axis, key) {
+ var negative = _types.Direction.LEFT;
+ var positive = _types.Direction.RIGHT;
+ var direction = _types.Direction.NONE;
+ if (axis === _types.Axis.Y) {
+ negative = _types.Direction.BOTTOM;
+ positive = _types.Direction.TOP;
+ }
+ if (key === _types.TraceDirectionKey.NEGATIVE) {
+ direction = negative;
+ }
+ if (key === _types.TraceDirectionKey.POSITIVE) {
+ direction = positive;
+ }
+ return direction;
+ };
+ exports.resolveAxisDirection = resolveAxisDirection;
+ }
+});
+
+// node_modules/vanilla-swipe/lib/utils/calculateDirectionDelta.js
+var require_calculateDirectionDelta = __commonJS({
+ "node_modules/vanilla-swipe/lib/utils/calculateDirectionDelta.js"(exports) {
+ "use strict";
+ Object.defineProperty(exports, "__esModule", {
+ value: true
+ });
+ exports.calculateDirectionDelta = calculateDirectionDelta;
+ var _types = require_types();
+ var _common = require_common();
+ function calculateDirectionDelta(traceDirections) {
+ var delta = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0;
+ var length = traceDirections.length;
+ var i = length - 1;
+ var direction = _types.TraceDirectionKey.NONE;
+ for (; i >= 0; i--) {
+ var current = traceDirections[i];
+ var currentKey = (0, _common.getDirectionKey)(current);
+ var currentValue = (0, _common.getDirectionValue)(current[currentKey]);
+ var prev = traceDirections[i - 1] || {};
+ var prevKey = (0, _common.getDirectionKey)(prev);
+ var prevValue = (0, _common.getDirectionValue)(prev[prevKey]);
+ var difference = (0, _common.getDifference)(currentValue, prevValue);
+ if (difference >= delta) {
+ direction = currentKey;
+ break;
+ } else {
+ direction = prevKey;
+ }
+ }
+ return direction;
+ }
+ }
+});
+
+// node_modules/vanilla-swipe/lib/utils/calculateDuration.js
+var require_calculateDuration = __commonJS({
+ "node_modules/vanilla-swipe/lib/utils/calculateDuration.js"(exports) {
+ "use strict";
+ Object.defineProperty(exports, "__esModule", {
+ value: true
+ });
+ exports.calculateDuration = calculateDuration;
+ function calculateDuration() {
+ var prevTime = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0;
+ var nextTime = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0;
+ return prevTime ? nextTime - prevTime : 0;
+ }
+ }
+});
+
+// node_modules/vanilla-swipe/lib/utils/calculateMovingPosition.js
+var require_calculateMovingPosition = __commonJS({
+ "node_modules/vanilla-swipe/lib/utils/calculateMovingPosition.js"(exports) {
+ "use strict";
+ Object.defineProperty(exports, "__esModule", {
+ value: true
+ });
+ exports.calculateMovingPosition = calculateMovingPosition;
+ function calculateMovingPosition(e) {
+ if ("changedTouches" in e) {
+ var touches = e.changedTouches && e.changedTouches[0];
+ return {
+ x: touches && touches.clientX,
+ y: touches && touches.clientY
+ };
+ }
+ return {
+ x: e.clientX,
+ y: e.clientY
+ };
+ }
+ }
+});
+
+// node_modules/vanilla-swipe/lib/utils/updateTrace.js
+var require_updateTrace = __commonJS({
+ "node_modules/vanilla-swipe/lib/utils/updateTrace.js"(exports) {
+ "use strict";
+ Object.defineProperty(exports, "__esModule", {
+ value: true
+ });
+ exports.updateTrace = updateTrace;
+ function updateTrace(trace, value2) {
+ var last = trace[trace.length - 1];
+ if (last !== value2) {
+ trace.push(value2);
+ }
+ return trace;
+ }
+ }
+});
+
+// node_modules/vanilla-swipe/lib/utils/calculateTraceDirections.js
+var require_calculateTraceDirections = __commonJS({
+ "node_modules/vanilla-swipe/lib/utils/calculateTraceDirections.js"(exports) {
+ "use strict";
+ Object.defineProperty(exports, "__esModule", {
+ value: true
+ });
+ exports.calculateTraceDirections = calculateTraceDirections;
+ var _types = require_types();
+ function _defineProperty(obj, key, value2) {
+ if (key in obj) {
+ Object.defineProperty(obj, key, { value: value2, enumerable: true, configurable: true, writable: true });
+ } else {
+ obj[key] = value2;
+ }
+ return obj;
+ }
+ function calculateTraceDirections() {
+ var trace = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [];
+ var ticks = [];
+ var positive = _types.TraceDirectionKey.POSITIVE;
+ var negative = _types.TraceDirectionKey.NEGATIVE;
+ var i = 0;
+ var tick2 = [];
+ var direction = _types.TraceDirectionKey.NONE;
+ for (; i < trace.length; i++) {
+ var current = trace[i];
+ var prev = trace[i - 1];
+ if (tick2.length) {
+ var currentDirection = current > prev ? positive : negative;
+ if (direction === _types.TraceDirectionKey.NONE) {
+ direction = currentDirection;
+ }
+ if (currentDirection === direction) {
+ tick2.push(current);
+ } else {
+ ticks.push(_defineProperty({}, direction, tick2.slice()));
+ tick2 = [];
+ tick2.push(current);
+ direction = currentDirection;
+ }
+ } else {
+ if (current !== 0) {
+ direction = current > 0 ? positive : negative;
+ }
+ tick2.push(current);
+ }
+ }
+ if (tick2.length) {
+ ticks.push(_defineProperty({}, direction, tick2));
+ }
+ return ticks;
+ }
+ }
+});
+
+// node_modules/vanilla-swipe/lib/utils/resolveDirection.js
+var require_resolveDirection = __commonJS({
+ "node_modules/vanilla-swipe/lib/utils/resolveDirection.js"(exports) {
+ "use strict";
+ Object.defineProperty(exports, "__esModule", {
+ value: true
+ });
+ exports.resolveDirection = resolveDirection;
+ var _calculateDirection = require_calculateDirection();
+ var _calculateTraceDirections = require_calculateTraceDirections();
+ var _calculateDirectionDelta = require_calculateDirectionDelta();
+ var _common = require_common();
+ var _types = require_types();
+ function resolveDirection(trace) {
+ var axis = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : _types.Axis.X;
+ var directionDelta = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 0;
+ if (directionDelta) {
+ var directions = (0, _calculateTraceDirections.calculateTraceDirections)(trace);
+ var _direction = (0, _calculateDirectionDelta.calculateDirectionDelta)(directions, directionDelta);
+ return (0, _common.resolveAxisDirection)(axis, _direction);
+ }
+ var direction = (0, _calculateDirection.calculateDirection)(trace);
+ return (0, _common.resolveAxisDirection)(axis, direction);
+ }
+ }
+});
+
+// node_modules/vanilla-swipe/lib/utils/calculateVelocity.js
+var require_calculateVelocity = __commonJS({
+ "node_modules/vanilla-swipe/lib/utils/calculateVelocity.js"(exports) {
+ "use strict";
+ Object.defineProperty(exports, "__esModule", {
+ value: true
+ });
+ exports.calculateVelocity = calculateVelocity;
+ function calculateVelocity(x, y, time) {
+ var magnitude = Math.sqrt(x * x + y * y);
+ return magnitude / (time || 1);
+ }
+ }
+});
+
+// node_modules/vanilla-swipe/lib/utils/calculatePosition.js
+var require_calculatePosition = __commonJS({
+ "node_modules/vanilla-swipe/lib/utils/calculatePosition.js"(exports) {
+ "use strict";
+ Object.defineProperty(exports, "__esModule", {
+ value: true
+ });
+ exports.calculatePosition = calculatePosition;
+ var _updateTrace = require_updateTrace();
+ var _resolveDirection = require_resolveDirection();
+ var _calculateDuration = require_calculateDuration();
+ var _calculateVelocity = require_calculateVelocity();
+ var _types = require_types();
+ function calculatePosition(state, options) {
+ var start = state.start, x = state.x, y = state.y, traceX = state.traceX, traceY = state.traceY;
+ var rotatePosition = options.rotatePosition, directionDelta = options.directionDelta;
+ var deltaX = rotatePosition.x - x;
+ var deltaY = y - rotatePosition.y;
+ var absX = Math.abs(deltaX);
+ var absY = Math.abs(deltaY);
+ (0, _updateTrace.updateTrace)(traceX, deltaX);
+ (0, _updateTrace.updateTrace)(traceY, deltaY);
+ var directionX = (0, _resolveDirection.resolveDirection)(traceX, _types.Axis.X, directionDelta);
+ var directionY = (0, _resolveDirection.resolveDirection)(traceY, _types.Axis.Y, directionDelta);
+ var duration2 = (0, _calculateDuration.calculateDuration)(start, Date.now());
+ var velocity = (0, _calculateVelocity.calculateVelocity)(absX, absY, duration2);
+ return {
+ absX,
+ absY,
+ deltaX,
+ deltaY,
+ directionX,
+ directionY,
+ duration: duration2,
+ positionX: rotatePosition.x,
+ positionY: rotatePosition.y,
+ velocity
+ };
+ }
+ }
+});
+
+// node_modules/vanilla-swipe/lib/utils/checkIsMoreThanSingleTouches.js
+var require_checkIsMoreThanSingleTouches = __commonJS({
+ "node_modules/vanilla-swipe/lib/utils/checkIsMoreThanSingleTouches.js"(exports) {
+ "use strict";
+ Object.defineProperty(exports, "__esModule", {
+ value: true
+ });
+ exports.checkIsMoreThanSingleTouches = void 0;
+ var checkIsMoreThanSingleTouches = function checkIsMoreThanSingleTouches2(e) {
+ return Boolean(e.touches && e.touches.length > 1);
+ };
+ exports.checkIsMoreThanSingleTouches = checkIsMoreThanSingleTouches;
+ }
+});
+
+// node_modules/vanilla-swipe/lib/utils/createOptions.js
+var require_createOptions = __commonJS({
+ "node_modules/vanilla-swipe/lib/utils/createOptions.js"(exports) {
+ "use strict";
+ Object.defineProperty(exports, "__esModule", {
+ value: true
+ });
+ exports.createOptions = createOptions;
+ function createOptions() {
+ var proxy = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
+ Object.defineProperty(proxy, "passive", {
+ get: function get() {
+ this.isPassiveSupported = true;
+ return true;
+ },
+ enumerable: true
+ });
+ return proxy;
+ }
+ }
+});
+
+// node_modules/vanilla-swipe/lib/utils/checkIsPassiveSupported.js
+var require_checkIsPassiveSupported = __commonJS({
+ "node_modules/vanilla-swipe/lib/utils/checkIsPassiveSupported.js"(exports) {
+ "use strict";
+ Object.defineProperty(exports, "__esModule", {
+ value: true
+ });
+ exports.checkIsPassiveSupported = checkIsPassiveSupported;
+ exports.noop = void 0;
+ var _createOptions = require_createOptions();
+ function checkIsPassiveSupported(isPassiveSupported) {
+ if (typeof isPassiveSupported === "boolean") {
+ return isPassiveSupported;
+ }
+ var proxy = {
+ isPassiveSupported
+ };
+ try {
+ var options = (0, _createOptions.createOptions)(proxy);
+ window.addEventListener("checkIsPassiveSupported", noop2, options);
+ window.removeEventListener("checkIsPassiveSupported", noop2, options);
+ } catch (err) {
+ }
+ return proxy.isPassiveSupported;
+ }
+ var noop2 = function noop3() {
+ };
+ exports.noop = noop2;
+ }
+});
+
+// node_modules/vanilla-swipe/lib/utils/checkIsTouchEventsSupported.js
+var require_checkIsTouchEventsSupported = __commonJS({
+ "node_modules/vanilla-swipe/lib/utils/checkIsTouchEventsSupported.js"(exports) {
+ "use strict";
+ Object.defineProperty(exports, "__esModule", {
+ value: true
+ });
+ exports.checkIsTouchEventsSupported = void 0;
+ function _typeof(obj) {
+ "@babel/helpers - typeof";
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(obj2) {
+ return typeof obj2;
+ } : function(obj2) {
+ return obj2 && "function" == typeof Symbol && obj2.constructor === Symbol && obj2 !== Symbol.prototype ? "symbol" : typeof obj2;
+ }, _typeof(obj);
+ }
+ var checkIsTouchEventsSupported = function checkIsTouchEventsSupported2() {
+ return (typeof window === "undefined" ? "undefined" : _typeof(window)) === "object" && ("ontouchstart" in window || Boolean(window.navigator.maxTouchPoints));
+ };
+ exports.checkIsTouchEventsSupported = checkIsTouchEventsSupported;
+ }
+});
+
+// node_modules/vanilla-swipe/lib/utils/getInitialState.js
+var require_getInitialState = __commonJS({
+ "node_modules/vanilla-swipe/lib/utils/getInitialState.js"(exports) {
+ "use strict";
+ Object.defineProperty(exports, "__esModule", {
+ value: true
+ });
+ exports.getInitialState = void 0;
+ function ownKeys(object, enumerableOnly) {
+ var keys = Object.keys(object);
+ if (Object.getOwnPropertySymbols) {
+ var symbols = Object.getOwnPropertySymbols(object);
+ enumerableOnly && (symbols = symbols.filter(function(sym) {
+ return Object.getOwnPropertyDescriptor(object, sym).enumerable;
+ })), keys.push.apply(keys, symbols);
+ }
+ return keys;
+ }
+ function _objectSpread(target) {
+ for (var i = 1; i < arguments.length; i++) {
+ var source = null != arguments[i] ? arguments[i] : {};
+ i % 2 ? ownKeys(Object(source), true).forEach(function(key) {
+ _defineProperty(target, key, source[key]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function(key) {
+ Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
+ });
+ }
+ return target;
+ }
+ function _defineProperty(obj, key, value2) {
+ if (key in obj) {
+ Object.defineProperty(obj, key, { value: value2, enumerable: true, configurable: true, writable: true });
+ } else {
+ obj[key] = value2;
+ }
+ return obj;
+ }
+ var getInitialState = function getInitialState2() {
+ var options = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
+ return _objectSpread({
+ x: 0,
+ y: 0,
+ start: 0,
+ isSwiping: false,
+ traceX: [],
+ traceY: []
+ }, options);
+ };
+ exports.getInitialState = getInitialState;
+ }
+});
+
+// node_modules/vanilla-swipe/lib/utils/getInitialProps.js
+var require_getInitialProps = __commonJS({
+ "node_modules/vanilla-swipe/lib/utils/getInitialProps.js"(exports) {
+ "use strict";
+ Object.defineProperty(exports, "__esModule", {
+ value: true
+ });
+ exports.getInitialProps = void 0;
+ function ownKeys(object, enumerableOnly) {
+ var keys = Object.keys(object);
+ if (Object.getOwnPropertySymbols) {
+ var symbols = Object.getOwnPropertySymbols(object);
+ enumerableOnly && (symbols = symbols.filter(function(sym) {
+ return Object.getOwnPropertyDescriptor(object, sym).enumerable;
+ })), keys.push.apply(keys, symbols);
+ }
+ return keys;
+ }
+ function _objectSpread(target) {
+ for (var i = 1; i < arguments.length; i++) {
+ var source = null != arguments[i] ? arguments[i] : {};
+ i % 2 ? ownKeys(Object(source), true).forEach(function(key) {
+ _defineProperty(target, key, source[key]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function(key) {
+ Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
+ });
+ }
+ return target;
+ }
+ function _defineProperty(obj, key, value2) {
+ if (key in obj) {
+ Object.defineProperty(obj, key, { value: value2, enumerable: true, configurable: true, writable: true });
+ } else {
+ obj[key] = value2;
+ }
+ return obj;
+ }
+ var getInitialProps = function getInitialProps2() {
+ var props = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
+ return _objectSpread({
+ element: null,
+ target: null,
+ delta: 10,
+ directionDelta: 0,
+ rotationAngle: 0,
+ mouseTrackingEnabled: false,
+ touchTrackingEnabled: true,
+ preventDefaultTouchmoveEvent: false,
+ preventTrackingOnMouseleave: false
+ }, props);
+ };
+ exports.getInitialProps = getInitialProps;
+ }
+});
+
+// node_modules/vanilla-swipe/lib/utils/getOptions.js
+var require_getOptions = __commonJS({
+ "node_modules/vanilla-swipe/lib/utils/getOptions.js"(exports) {
+ "use strict";
+ Object.defineProperty(exports, "__esModule", {
+ value: true
+ });
+ exports.getOptions = getOptions;
+ function getOptions() {
+ var isPassiveSupported = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : false;
+ if (isPassiveSupported) {
+ return {
+ passive: false
+ };
+ }
+ return {};
+ }
+ }
+});
+
+// node_modules/vanilla-swipe/lib/utils/rotateByAngle.js
+var require_rotateByAngle = __commonJS({
+ "node_modules/vanilla-swipe/lib/utils/rotateByAngle.js"(exports) {
+ "use strict";
+ Object.defineProperty(exports, "__esModule", {
+ value: true
+ });
+ exports.rotateByAngle = rotateByAngle;
+ function rotateByAngle(position) {
+ var angle = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0;
+ if (angle === 0) {
+ return position;
+ }
+ var x = position.x, y = position.y;
+ var angleInRadians = Math.PI / 180 * angle;
+ var rotatedX = x * Math.cos(angleInRadians) + y * Math.sin(angleInRadians);
+ var rotatedY = y * Math.cos(angleInRadians) - x * Math.sin(angleInRadians);
+ return {
+ x: rotatedX,
+ y: rotatedY
+ };
+ }
+ }
+});
+
+// node_modules/vanilla-swipe/lib/utils/index.js
+var require_utils = __commonJS({
+ "node_modules/vanilla-swipe/lib/utils/index.js"(exports) {
+ "use strict";
+ Object.defineProperty(exports, "__esModule", {
+ value: true
+ });
+ var _calculateDirection = require_calculateDirection();
+ Object.keys(_calculateDirection).forEach(function(key) {
+ if (key === "default" || key === "__esModule")
+ return;
+ if (key in exports && exports[key] === _calculateDirection[key])
+ return;
+ Object.defineProperty(exports, key, {
+ enumerable: true,
+ get: function get() {
+ return _calculateDirection[key];
+ }
+ });
+ });
+ var _calculateDirectionDelta = require_calculateDirectionDelta();
+ Object.keys(_calculateDirectionDelta).forEach(function(key) {
+ if (key === "default" || key === "__esModule")
+ return;
+ if (key in exports && exports[key] === _calculateDirectionDelta[key])
+ return;
+ Object.defineProperty(exports, key, {
+ enumerable: true,
+ get: function get() {
+ return _calculateDirectionDelta[key];
+ }
+ });
+ });
+ var _calculateDuration = require_calculateDuration();
+ Object.keys(_calculateDuration).forEach(function(key) {
+ if (key === "default" || key === "__esModule")
+ return;
+ if (key in exports && exports[key] === _calculateDuration[key])
+ return;
+ Object.defineProperty(exports, key, {
+ enumerable: true,
+ get: function get() {
+ return _calculateDuration[key];
+ }
+ });
+ });
+ var _calculateMovingPosition = require_calculateMovingPosition();
+ Object.keys(_calculateMovingPosition).forEach(function(key) {
+ if (key === "default" || key === "__esModule")
+ return;
+ if (key in exports && exports[key] === _calculateMovingPosition[key])
+ return;
+ Object.defineProperty(exports, key, {
+ enumerable: true,
+ get: function get() {
+ return _calculateMovingPosition[key];
+ }
+ });
+ });
+ var _calculatePosition = require_calculatePosition();
+ Object.keys(_calculatePosition).forEach(function(key) {
+ if (key === "default" || key === "__esModule")
+ return;
+ if (key in exports && exports[key] === _calculatePosition[key])
+ return;
+ Object.defineProperty(exports, key, {
+ enumerable: true,
+ get: function get() {
+ return _calculatePosition[key];
+ }
+ });
+ });
+ var _calculateTraceDirections = require_calculateTraceDirections();
+ Object.keys(_calculateTraceDirections).forEach(function(key) {
+ if (key === "default" || key === "__esModule")
+ return;
+ if (key in exports && exports[key] === _calculateTraceDirections[key])
+ return;
+ Object.defineProperty(exports, key, {
+ enumerable: true,
+ get: function get() {
+ return _calculateTraceDirections[key];
+ }
+ });
+ });
+ var _calculateVelocity = require_calculateVelocity();
+ Object.keys(_calculateVelocity).forEach(function(key) {
+ if (key === "default" || key === "__esModule")
+ return;
+ if (key in exports && exports[key] === _calculateVelocity[key])
+ return;
+ Object.defineProperty(exports, key, {
+ enumerable: true,
+ get: function get() {
+ return _calculateVelocity[key];
+ }
+ });
+ });
+ var _checkIsMoreThanSingleTouches = require_checkIsMoreThanSingleTouches();
+ Object.keys(_checkIsMoreThanSingleTouches).forEach(function(key) {
+ if (key === "default" || key === "__esModule")
+ return;
+ if (key in exports && exports[key] === _checkIsMoreThanSingleTouches[key])
+ return;
+ Object.defineProperty(exports, key, {
+ enumerable: true,
+ get: function get() {
+ return _checkIsMoreThanSingleTouches[key];
+ }
+ });
+ });
+ var _checkIsPassiveSupported = require_checkIsPassiveSupported();
+ Object.keys(_checkIsPassiveSupported).forEach(function(key) {
+ if (key === "default" || key === "__esModule")
+ return;
+ if (key in exports && exports[key] === _checkIsPassiveSupported[key])
+ return;
+ Object.defineProperty(exports, key, {
+ enumerable: true,
+ get: function get() {
+ return _checkIsPassiveSupported[key];
+ }
+ });
+ });
+ var _checkIsTouchEventsSupported = require_checkIsTouchEventsSupported();
+ Object.keys(_checkIsTouchEventsSupported).forEach(function(key) {
+ if (key === "default" || key === "__esModule")
+ return;
+ if (key in exports && exports[key] === _checkIsTouchEventsSupported[key])
+ return;
+ Object.defineProperty(exports, key, {
+ enumerable: true,
+ get: function get() {
+ return _checkIsTouchEventsSupported[key];
+ }
+ });
+ });
+ var _common = require_common();
+ Object.keys(_common).forEach(function(key) {
+ if (key === "default" || key === "__esModule")
+ return;
+ if (key in exports && exports[key] === _common[key])
+ return;
+ Object.defineProperty(exports, key, {
+ enumerable: true,
+ get: function get() {
+ return _common[key];
+ }
+ });
+ });
+ var _createOptions = require_createOptions();
+ Object.keys(_createOptions).forEach(function(key) {
+ if (key === "default" || key === "__esModule")
+ return;
+ if (key in exports && exports[key] === _createOptions[key])
+ return;
+ Object.defineProperty(exports, key, {
+ enumerable: true,
+ get: function get() {
+ return _createOptions[key];
+ }
+ });
+ });
+ var _getInitialState = require_getInitialState();
+ Object.keys(_getInitialState).forEach(function(key) {
+ if (key === "default" || key === "__esModule")
+ return;
+ if (key in exports && exports[key] === _getInitialState[key])
+ return;
+ Object.defineProperty(exports, key, {
+ enumerable: true,
+ get: function get() {
+ return _getInitialState[key];
+ }
+ });
+ });
+ var _getInitialProps = require_getInitialProps();
+ Object.keys(_getInitialProps).forEach(function(key) {
+ if (key === "default" || key === "__esModule")
+ return;
+ if (key in exports && exports[key] === _getInitialProps[key])
+ return;
+ Object.defineProperty(exports, key, {
+ enumerable: true,
+ get: function get() {
+ return _getInitialProps[key];
+ }
+ });
+ });
+ var _getOptions = require_getOptions();
+ Object.keys(_getOptions).forEach(function(key) {
+ if (key === "default" || key === "__esModule")
+ return;
+ if (key in exports && exports[key] === _getOptions[key])
+ return;
+ Object.defineProperty(exports, key, {
+ enumerable: true,
+ get: function get() {
+ return _getOptions[key];
+ }
+ });
+ });
+ var _resolveDirection = require_resolveDirection();
+ Object.keys(_resolveDirection).forEach(function(key) {
+ if (key === "default" || key === "__esModule")
+ return;
+ if (key in exports && exports[key] === _resolveDirection[key])
+ return;
+ Object.defineProperty(exports, key, {
+ enumerable: true,
+ get: function get() {
+ return _resolveDirection[key];
+ }
+ });
+ });
+ var _rotateByAngle = require_rotateByAngle();
+ Object.keys(_rotateByAngle).forEach(function(key) {
+ if (key === "default" || key === "__esModule")
+ return;
+ if (key in exports && exports[key] === _rotateByAngle[key])
+ return;
+ Object.defineProperty(exports, key, {
+ enumerable: true,
+ get: function get() {
+ return _rotateByAngle[key];
+ }
+ });
+ });
+ var _updateTrace = require_updateTrace();
+ Object.keys(_updateTrace).forEach(function(key) {
+ if (key === "default" || key === "__esModule")
+ return;
+ if (key in exports && exports[key] === _updateTrace[key])
+ return;
+ Object.defineProperty(exports, key, {
+ enumerable: true,
+ get: function get() {
+ return _updateTrace[key];
+ }
+ });
+ });
+ }
+});
+
+// node_modules/vanilla-swipe/lib/index.js
+var require_lib = __commonJS({
+ "node_modules/vanilla-swipe/lib/index.js"(exports) {
+ "use strict";
+ function _typeof(obj) {
+ "@babel/helpers - typeof";
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(obj2) {
+ return typeof obj2;
+ } : function(obj2) {
+ return obj2 && "function" == typeof Symbol && obj2.constructor === Symbol && obj2 !== Symbol.prototype ? "symbol" : typeof obj2;
+ }, _typeof(obj);
+ }
+ Object.defineProperty(exports, "__esModule", {
+ value: true
+ });
+ var _exportNames = {};
+ exports["default"] = void 0;
+ var Utils2 = _interopRequireWildcard(require_utils());
+ var _types = require_types();
+ Object.keys(_types).forEach(function(key) {
+ if (key === "default" || key === "__esModule")
+ return;
+ if (Object.prototype.hasOwnProperty.call(_exportNames, key))
+ return;
+ if (key in exports && exports[key] === _types[key])
+ return;
+ Object.defineProperty(exports, key, {
+ enumerable: true,
+ get: function get() {
+ return _types[key];
+ }
+ });
+ });
+ function _getRequireWildcardCache(nodeInterop) {
+ if (typeof WeakMap !== "function")
+ return null;
+ var cacheBabelInterop = /* @__PURE__ */ new WeakMap();
+ var cacheNodeInterop = /* @__PURE__ */ new WeakMap();
+ return (_getRequireWildcardCache = function _getRequireWildcardCache2(nodeInterop2) {
+ return nodeInterop2 ? cacheNodeInterop : cacheBabelInterop;
+ })(nodeInterop);
+ }
+ function _interopRequireWildcard(obj, nodeInterop) {
+ if (!nodeInterop && obj && obj.__esModule) {
+ return obj;
+ }
+ if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") {
+ return { "default": obj };
+ }
+ var cache = _getRequireWildcardCache(nodeInterop);
+ if (cache && cache.has(obj)) {
+ return cache.get(obj);
+ }
+ var newObj = {};
+ var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
+ for (var key in obj) {
+ if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
+ var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
+ if (desc && (desc.get || desc.set)) {
+ Object.defineProperty(newObj, key, desc);
+ } else {
+ newObj[key] = obj[key];
+ }
+ }
+ }
+ newObj["default"] = obj;
+ if (cache) {
+ cache.set(obj, newObj);
+ }
+ return newObj;
+ }
+ function _classCallCheck(instance122, Constructor) {
+ if (!(instance122 instanceof Constructor)) {
+ throw new TypeError("Cannot call a class as a function");
+ }
+ }
+ function _defineProperties(target, props) {
+ for (var i = 0; i < props.length; i++) {
+ var descriptor = props[i];
+ descriptor.enumerable = descriptor.enumerable || false;
+ descriptor.configurable = true;
+ if ("value" in descriptor)
+ descriptor.writable = true;
+ Object.defineProperty(target, descriptor.key, descriptor);
+ }
+ }
+ function _createClass(Constructor, protoProps, staticProps) {
+ if (protoProps)
+ _defineProperties(Constructor.prototype, protoProps);
+ if (staticProps)
+ _defineProperties(Constructor, staticProps);
+ Object.defineProperty(Constructor, "prototype", { writable: false });
+ return Constructor;
+ }
+ function _defineProperty(obj, key, value2) {
+ if (key in obj) {
+ Object.defineProperty(obj, key, { value: value2, enumerable: true, configurable: true, writable: true });
+ } else {
+ obj[key] = value2;
+ }
+ return obj;
+ }
+ var VanillaSwipe2 = /* @__PURE__ */ function() {
+ function VanillaSwipe3(props) {
+ _classCallCheck(this, VanillaSwipe3);
+ _defineProperty(this, "state", void 0);
+ _defineProperty(this, "props", void 0);
+ this.state = Utils2.getInitialState();
+ this.props = Utils2.getInitialProps(props);
+ this.handleSwipeStart = this.handleSwipeStart.bind(this);
+ this.handleSwipeMove = this.handleSwipeMove.bind(this);
+ this.handleSwipeEnd = this.handleSwipeEnd.bind(this);
+ this.handleMouseDown = this.handleMouseDown.bind(this);
+ this.handleMouseMove = this.handleMouseMove.bind(this);
+ this.handleMouseUp = this.handleMouseUp.bind(this);
+ this.handleMouseLeave = this.handleMouseLeave.bind(this);
+ }
+ _createClass(VanillaSwipe3, [{
+ key: "init",
+ value: function init3() {
+ this.setupTouchListeners();
+ this.setupMouseListeners();
+ }
+ }, {
+ key: "update",
+ value: function update2(props) {
+ var prevProps = this.props;
+ var nextProps = Object.assign({}, prevProps, props);
+ if (prevProps.element !== nextProps.element || prevProps.target !== nextProps.target) {
+ this.destroy();
+ this.props = nextProps;
+ this.init();
+ return;
+ }
+ this.props = nextProps;
+ if (prevProps.mouseTrackingEnabled !== nextProps.mouseTrackingEnabled || prevProps.preventTrackingOnMouseleave !== nextProps.preventTrackingOnMouseleave) {
+ this.cleanupMouseListeners();
+ nextProps.mouseTrackingEnabled ? this.setupMouseListeners() : this.cleanupMouseListeners();
+ }
+ if (prevProps.touchTrackingEnabled !== nextProps.touchTrackingEnabled) {
+ this.cleanupTouchListeners();
+ nextProps.touchTrackingEnabled ? this.setupTouchListeners() : this.cleanupTouchListeners();
+ }
+ }
+ }, {
+ key: "destroy",
+ value: function destroy() {
+ this.cleanupMouseListeners();
+ this.cleanupTouchListeners();
+ this.state = Utils2.getInitialState();
+ this.props = Utils2.getInitialProps();
+ }
+ }, {
+ key: "setupTouchListeners",
+ value: function setupTouchListeners() {
+ var _this$props = this.props, element3 = _this$props.element, target = _this$props.target, touchTrackingEnabled = _this$props.touchTrackingEnabled;
+ if (element3 && touchTrackingEnabled) {
+ var listener = target || element3;
+ var isPassiveSupported = Utils2.checkIsPassiveSupported();
+ var options = Utils2.getOptions(isPassiveSupported);
+ listener.addEventListener("touchstart", this.handleSwipeStart, options);
+ listener.addEventListener("touchmove", this.handleSwipeMove, options);
+ listener.addEventListener("touchend", this.handleSwipeEnd, options);
+ }
+ }
+ }, {
+ key: "cleanupTouchListeners",
+ value: function cleanupTouchListeners() {
+ var _this$props2 = this.props, element3 = _this$props2.element, target = _this$props2.target;
+ var listener = target || element3;
+ if (listener) {
+ listener.removeEventListener("touchstart", this.handleSwipeStart);
+ listener.removeEventListener("touchmove", this.handleSwipeMove);
+ listener.removeEventListener("touchend", this.handleSwipeEnd);
+ }
+ }
+ }, {
+ key: "setupMouseListeners",
+ value: function setupMouseListeners() {
+ var _this$props3 = this.props, element3 = _this$props3.element, mouseTrackingEnabled = _this$props3.mouseTrackingEnabled, preventTrackingOnMouseleave = _this$props3.preventTrackingOnMouseleave;
+ if (mouseTrackingEnabled && element3) {
+ element3.addEventListener("mousedown", this.handleMouseDown);
+ element3.addEventListener("mousemove", this.handleMouseMove);
+ element3.addEventListener("mouseup", this.handleMouseUp);
+ if (preventTrackingOnMouseleave) {
+ element3.addEventListener("mouseleave", this.handleMouseLeave);
+ }
+ }
+ }
+ }, {
+ key: "cleanupMouseListeners",
+ value: function cleanupMouseListeners() {
+ var element3 = this.props.element;
+ if (element3) {
+ element3.removeEventListener("mousedown", this.handleMouseDown);
+ element3.removeEventListener("mousemove", this.handleMouseMove);
+ element3.removeEventListener("mouseup", this.handleMouseUp);
+ element3.removeEventListener("mouseleave", this.handleMouseLeave);
+ }
+ }
+ }, {
+ key: "getEventData",
+ value: function getEventData(e) {
+ var options = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
+ directionDelta: 0
+ };
+ var rotationAngle = this.props.rotationAngle;
+ var directionDelta = options.directionDelta;
+ var movingPosition = Utils2.calculateMovingPosition(e);
+ var rotatePosition = Utils2.rotateByAngle(movingPosition, rotationAngle);
+ return Utils2.calculatePosition(this.state, {
+ rotatePosition,
+ directionDelta
+ });
+ }
+ }, {
+ key: "handleSwipeStart",
+ value: function handleSwipeStart(e) {
+ if (Utils2.checkIsMoreThanSingleTouches(e))
+ return;
+ var rotationAngle = this.props.rotationAngle;
+ var movingPosition = Utils2.calculateMovingPosition(e);
+ var _Utils$rotateByAngle = Utils2.rotateByAngle(movingPosition, rotationAngle), x = _Utils$rotateByAngle.x, y = _Utils$rotateByAngle.y;
+ this.state = Utils2.getInitialState({
+ isSwiping: false,
+ start: Date.now(),
+ x,
+ y
+ });
+ }
+ }, {
+ key: "handleSwipeMove",
+ value: function handleSwipeMove(e) {
+ var _this$state = this.state, x = _this$state.x, y = _this$state.y, isSwiping = _this$state.isSwiping;
+ if (!x || !y || Utils2.checkIsMoreThanSingleTouches(e))
+ return;
+ var directionDelta = this.props.directionDelta || 0;
+ var _this$getEventData = this.getEventData(e, {
+ directionDelta
+ }), absX = _this$getEventData.absX, absY = _this$getEventData.absY, deltaX = _this$getEventData.deltaX, deltaY = _this$getEventData.deltaY, directionX = _this$getEventData.directionX, directionY = _this$getEventData.directionY, duration2 = _this$getEventData.duration, velocity = _this$getEventData.velocity;
+ var _this$props4 = this.props, delta = _this$props4.delta, preventDefaultTouchmoveEvent = _this$props4.preventDefaultTouchmoveEvent, onSwipeStart = _this$props4.onSwipeStart, onSwiping = _this$props4.onSwiping;
+ if (e.cancelable && preventDefaultTouchmoveEvent)
+ e.preventDefault();
+ if (absX < Number(delta) && absY < Number(delta) && !isSwiping)
+ return;
+ if (onSwipeStart && !isSwiping) {
+ onSwipeStart(e, {
+ deltaX,
+ deltaY,
+ absX,
+ absY,
+ directionX,
+ directionY,
+ duration: duration2,
+ velocity
+ });
+ }
+ this.state.isSwiping = true;
+ if (onSwiping) {
+ onSwiping(e, {
+ deltaX,
+ deltaY,
+ absX,
+ absY,
+ directionX,
+ directionY,
+ duration: duration2,
+ velocity
+ });
+ }
+ }
+ }, {
+ key: "handleSwipeEnd",
+ value: function handleSwipeEnd(e) {
+ var _this$props5 = this.props, onSwiped = _this$props5.onSwiped, onTap = _this$props5.onTap;
+ if (this.state.isSwiping) {
+ var directionDelta = this.props.directionDelta || 0;
+ var position = this.getEventData(e, {
+ directionDelta
+ });
+ onSwiped && onSwiped(e, position);
+ } else {
+ var _position = this.getEventData(e);
+ onTap && onTap(e, _position);
+ }
+ this.state = Utils2.getInitialState();
+ }
+ }, {
+ key: "handleMouseDown",
+ value: function handleMouseDown(e) {
+ var target = this.props.target;
+ if (target) {
+ if (target === e.target) {
+ this.handleSwipeStart(e);
+ }
+ } else {
+ this.handleSwipeStart(e);
+ }
+ }
+ }, {
+ key: "handleMouseMove",
+ value: function handleMouseMove(e) {
+ this.handleSwipeMove(e);
+ }
+ }, {
+ key: "handleMouseUp",
+ value: function handleMouseUp(e) {
+ var isSwiping = this.state.isSwiping;
+ var target = this.props.target;
+ if (target) {
+ if (target === e.target || isSwiping) {
+ this.handleSwipeEnd(e);
+ }
+ } else {
+ this.handleSwipeEnd(e);
+ }
+ }
+ }, {
+ key: "handleMouseLeave",
+ value: function handleMouseLeave(e) {
+ var isSwiping = this.state.isSwiping;
+ if (isSwiping) {
+ this.handleSwipeEnd(e);
+ }
+ }
+ }], [{
+ key: "isTouchEventsSupported",
+ value: function isTouchEventsSupported() {
+ return Utils2.checkIsTouchEventsSupported();
+ }
+ }]);
+ return VanillaSwipe3;
+ }();
+ exports["default"] = VanillaSwipe2;
+ }
+});
+
+// node_modules/prismjs/prism.js
+var require_prism = __commonJS({
+ "node_modules/prismjs/prism.js"(exports, module) {
+ var _self = typeof window !== "undefined" ? window : typeof WorkerGlobalScope !== "undefined" && self instanceof WorkerGlobalScope ? self : {};
+ var Prism2 = function(_self2) {
+ var lang = /(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i;
+ var uniqueId = 0;
+ var plainTextGrammar = {};
+ var _ = {
+ /**
+ * By default, Prism will attempt to highlight all code elements (by calling {@link Prism.highlightAll}) on the
+ * current page after the page finished loading. This might be a problem if e.g. you wanted to asynchronously load
+ * additional languages or plugins yourself.
+ *
+ * By setting this value to `true`, Prism will not automatically highlight all code elements on the page.
+ *
+ * You obviously have to change this value before the automatic highlighting started. To do this, you can add an
+ * empty Prism object into the global scope before loading the Prism script like this:
+ *
+ * ```js
+ * window.Prism = window.Prism || {};
+ * Prism.manual = true;
+ * // add a new
-
+