aptechka 0.25.2 → 0.26.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (92) hide show
  1. package/lib/Animation-B9m8bw96.cjs +1 -0
  2. package/lib/Animation-DN95L7Xo.js +105 -0
  3. package/lib/Damped-CTsV8tl_.cjs +1 -0
  4. package/lib/Damped-Chu29wn-.js +53 -0
  5. package/lib/Tweened-BUuSLSF7.js +44 -0
  6. package/lib/Tweened-BttGiyB0.cjs +1 -0
  7. package/lib/animation/index.cjs +1 -1
  8. package/lib/animation/index.js +6 -53
  9. package/lib/canvas-CU5Xjahf.cjs +1 -0
  10. package/lib/canvas-DeZ0SLUJ.js +34 -0
  11. package/lib/connector/index.cjs +1 -1
  12. package/lib/connector/index.js +1 -1
  13. package/lib/controls/index.cjs +1 -1
  14. package/lib/controls/index.js +3 -3
  15. package/lib/coordinates-CgdGoSYs.js +24 -0
  16. package/lib/coordinates-D8Np3cPD.cjs +1 -0
  17. package/lib/css-property/index.cjs +1 -1
  18. package/lib/css-property/index.js +1 -1
  19. package/lib/dev/index.cjs +1 -1
  20. package/lib/dev/index.js +1 -1
  21. package/lib/device/index.cjs +1 -1
  22. package/lib/device/index.js +1 -1
  23. package/lib/element-resizer/react/index.cjs +1 -0
  24. package/lib/element-resizer/react/index.js +8 -0
  25. package/lib/element-resizer/vanilla/index.cjs +1 -0
  26. package/lib/element-resizer/{index.js → vanilla/index.js} +2 -2
  27. package/lib/en3/index.cjs +8 -0
  28. package/lib/en3/index.js +374 -0
  29. package/lib/events-CsVF98U6.js +6 -0
  30. package/lib/events-KVanG9sR.cjs +1 -0
  31. package/lib/intersector/react/index.cjs +1 -0
  32. package/lib/intersector/react/index.js +12 -0
  33. package/lib/intersector/vanilla/index.cjs +1 -0
  34. package/lib/intersector/{index.js → vanilla/index.js} +2 -2
  35. package/lib/jss-CjccJC-K.js +21 -0
  36. package/lib/jss-GJLvaNfT.cjs +1 -0
  37. package/lib/layout-box/index.cjs +1 -1
  38. package/lib/layout-box/index.js +3 -3
  39. package/lib/loading/index.cjs +1 -1
  40. package/lib/loading/index.js +42 -85
  41. package/lib/math-BOBiC4TN.js +45 -0
  42. package/lib/math-GDWEqu7y.cjs +1 -0
  43. package/lib/media/index.cjs +1 -1
  44. package/lib/media/index.js +1 -1
  45. package/lib/media-elements/index.cjs +5 -0
  46. package/lib/media-elements/index.js +389 -0
  47. package/lib/morph/index.cjs +1 -0
  48. package/lib/morph/index.js +227 -0
  49. package/lib/need_redo_tweaker/index.cjs +4 -4
  50. package/lib/need_redo_tweaker/index.js +6 -4
  51. package/lib/object-CCiXnER2.cjs +1 -0
  52. package/lib/object-D6MVWB4l.js +85 -0
  53. package/lib/pointer/index.cjs +1 -0
  54. package/lib/pointer/index.js +151 -0
  55. package/lib/polyfills-CM4SCDTt.cjs +1 -0
  56. package/lib/polyfills-X6KXuHg-.js +33 -0
  57. package/lib/router/index.cjs +1 -0
  58. package/lib/router/index.js +266 -0
  59. package/lib/scroll/react/index.cjs +30 -0
  60. package/lib/scroll/react/index.js +761 -0
  61. package/lib/scroll/vanilla/index.cjs +1 -0
  62. package/lib/scroll/vanilla/index.js +1120 -0
  63. package/lib/slicer/index.cjs +11 -0
  64. package/lib/slicer/index.js +108 -0
  65. package/lib/source/index.cjs +1 -1
  66. package/lib/source/index.js +1 -1
  67. package/lib/style-BqzUd8Fy.cjs +1 -0
  68. package/lib/style-M-RBTQxT.js +21 -0
  69. package/lib/ticker/react/index.cjs +1 -0
  70. package/lib/ticker/react/index.js +19 -0
  71. package/lib/ticker/vanilla/index.cjs +1 -0
  72. package/lib/ticker/{index.js → vanilla/index.js} +2 -2
  73. package/lib/url-BDc0awLa.js +22 -0
  74. package/lib/url-C3Vj8msL.cjs +1 -0
  75. package/lib/utils/index.cjs +1 -1
  76. package/lib/utils/index.js +146 -222
  77. package/lib/window-resizer/react/index.cjs +1 -0
  78. package/lib/window-resizer/react/index.js +8 -0
  79. package/lib/window-resizer/vanilla/index.cjs +1 -0
  80. package/lib/window-resizer/vanilla/index.js +32 -0
  81. package/package.json +132 -20
  82. package/lib/Tweened-CDYmG9hk.js +0 -138
  83. package/lib/Tweened-DlyMbHu_.cjs +0 -1
  84. package/lib/element-resizer/index.cjs +0 -1
  85. package/lib/intersector/index.cjs +0 -1
  86. package/lib/polyfills-AItxku8u.js +0 -76
  87. package/lib/polyfills-Caa6z-Ay.cjs +0 -1
  88. package/lib/style-B2GS6rev.js +0 -104
  89. package/lib/style-qftK_UJp.cjs +0 -1
  90. package/lib/ticker/index.cjs +0 -1
  91. package/lib/window-resizer/index.cjs +0 -1
  92. package/lib/window-resizer/index.js +0 -42
@@ -0,0 +1,151 @@
1
+ var q = Object.defineProperty;
2
+ var k = Object.getOwnPropertySymbols;
3
+ var A = Object.prototype.hasOwnProperty, F = Object.prototype.propertyIsEnumerable;
4
+ var H = (i) => {
5
+ throw TypeError(i);
6
+ };
7
+ var D = (i, s, e) => s in i ? q(i, s, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[s] = e, M = (i, s) => {
8
+ for (var e in s || (s = {}))
9
+ A.call(s, e) && D(i, e, s[e]);
10
+ if (k)
11
+ for (var e of k(s))
12
+ F.call(s, e) && D(i, e, s[e]);
13
+ return i;
14
+ };
15
+ var T = (i, s, e) => s.has(i) || H("Cannot " + e);
16
+ var t = (i, s, e) => (T(i, s, "read from private field"), e ? e.call(i) : s.get(i)), n = (i, s, e) => s.has(i) ? H("Cannot add the same private member more than once") : s instanceof WeakSet ? s.add(i) : s.set(i, e), c = (i, s, e, m) => (T(i, s, "write to private field"), m ? m.call(i, e) : s.set(i, e), e);
17
+ import "../Store-OTdcl6SX.js";
18
+ import { g as G, s as I, n as J } from "../coordinates-CgdGoSYs.js";
19
+ import { g as K } from "../dom-0S_WDL4g.js";
20
+ import { c as B } from "../math-BOBiC4TN.js";
21
+ import "../ticker/vanilla/index.js";
22
+ import { D as R } from "../Damped-Chu29wn-.js";
23
+ import { elementResizer as W } from "../element-resizer/vanilla/index.js";
24
+ import { windowResizer as j } from "../window-resizer/vanilla/index.js";
25
+ import { CSSProperty as P } from "../css-property/index.js";
26
+ var o, a, l, y, b, u, d, f, S, w, E, p;
27
+ class N {
28
+ constructor(s) {
29
+ n(this, o);
30
+ n(this, a);
31
+ n(this, l);
32
+ n(this, y);
33
+ n(this, b);
34
+ n(this, u);
35
+ n(this, d, 0);
36
+ n(this, f, 0);
37
+ n(this, S, (s) => {
38
+ t(this, y).set(1);
39
+ });
40
+ n(this, w, (s) => {
41
+ t(this, y).set(0);
42
+ });
43
+ n(this, E, (s) => {
44
+ const e = G(s, t(this, o).getBoundingClientRect()), m = {
45
+ width: t(this, d),
46
+ height: t(this, f)
47
+ }, h = {
48
+ x: e.x,
49
+ y: e.y
50
+ };
51
+ if (t(this, b)) {
52
+ const z = I(h, m);
53
+ h.x = z.x, h.y = z.y;
54
+ }
55
+ if (t(this, u)) {
56
+ const z = J(h, m);
57
+ h.x = B(z.x * 2, -1, 1), h.y = B(z.y * 2, -1, 1);
58
+ }
59
+ t(this, a).set(h.x), t(this, l).set(h.y);
60
+ });
61
+ n(this, p, () => {
62
+ c(this, d, this.element.clientWidth), c(this, f, this.element.clientHeight);
63
+ let s = 0, e = 0, m = 0, h = 0;
64
+ t(this, b) ? t(this, u) ? (s = -1, e = 1, m = -1, h = 1) : (s = t(this, d) / 2 * -1, e = t(this, d) / 2 * 1, m = t(this, f) / 2 * -1, h = t(this, f) / 2 * 1) : t(this, u) ? (s = 0, e = 1, m = 0, h = 1) : (s = 0, e = t(this, d), m = 0, h = t(this, f)), t(this, a).min = s, t(this, a).max = e, t(this, l).min = m, t(this, l).max = h;
65
+ });
66
+ c(this, o, K(s.element)), c(this, a, new R(0, s.damped)), c(this, l, new R(0, s.damped)), c(this, y, new R(0, M({ min: 0, max: 1 }, s.damped))), c(this, b, s.cartesian || !1), c(this, u, s.normalize || !1);
67
+ }
68
+ get element() {
69
+ return t(this, o);
70
+ }
71
+ get x() {
72
+ return t(this, a);
73
+ }
74
+ get y() {
75
+ return t(this, l);
76
+ }
77
+ get z() {
78
+ return t(this, y);
79
+ }
80
+ get cartesian() {
81
+ return t(this, b);
82
+ }
83
+ set cartesian(s) {
84
+ c(this, b, s), t(this, p).call(this);
85
+ }
86
+ get normalize() {
87
+ return t(this, u);
88
+ }
89
+ set normalize(s) {
90
+ c(this, u, s), t(this, p).call(this);
91
+ }
92
+ connect() {
93
+ t(this, o).addEventListener("pointerenter", t(this, S)), t(this, o).addEventListener("pointerleave", t(this, w)), t(this, o).addEventListener("pointermove", t(this, E)), W.subscribe(t(this, o), t(this, p)), j.subscribe(t(this, p));
94
+ }
95
+ disconnect() {
96
+ t(this, o).removeEventListener(
97
+ "pointerenter",
98
+ t(this, S)
99
+ ), t(this, o).removeEventListener(
100
+ "pointerleave",
101
+ t(this, w)
102
+ ), t(this, o).removeEventListener("pointermove", t(this, E)), W.unsubscribe(t(this, p)), j.unsubscribe(t(this, p)), t(this, a).reset(), t(this, l).reset(), t(this, y).reset();
103
+ }
104
+ }
105
+ o = new WeakMap(), a = new WeakMap(), l = new WeakMap(), y = new WeakMap(), b = new WeakMap(), u = new WeakMap(), d = new WeakMap(), f = new WeakMap(), S = new WeakMap(), w = new WeakMap(), E = new WeakMap(), p = new WeakMap();
106
+ var r, g, v, x, L, C;
107
+ class O extends HTMLElement {
108
+ constructor() {
109
+ super();
110
+ n(this, r);
111
+ n(this, g, new P(this, "--damping", 20));
112
+ n(this, v, new P(this, "--mass", 0));
113
+ n(this, x, new P(this, "--stiffness", 0));
114
+ n(this, L, new P(this, "--cartesian", !1));
115
+ n(this, C, new P(this, "--normalize", !1));
116
+ c(this, r, new N({
117
+ element: this
118
+ })), t(this, g).subscribe((e) => {
119
+ t(this, r).x.damping = e.current, t(this, r).y.damping = e.current, t(this, r).z.damping = e.current;
120
+ }), t(this, L).subscribe((e) => {
121
+ t(this, r).cartesian = e.current;
122
+ }), t(this, C).subscribe((e) => {
123
+ t(this, r).normalize = e.current;
124
+ }), t(this, v).subscribe((e) => {
125
+ t(this, r).x.mass = e.current, t(this, r).y.mass = e.current, t(this, r).z.mass = e.current;
126
+ }), t(this, x).subscribe((e) => {
127
+ t(this, r).x.stiffness = e.current, t(this, r).y.stiffness = e.current, t(this, r).z.stiffness = e.current;
128
+ }), t(this, r).x.subscribe((e) => {
129
+ this.style.setProperty("--x", e.current.toString());
130
+ }), t(this, r).y.subscribe((e) => {
131
+ this.style.setProperty("--y", e.current.toString());
132
+ }), t(this, r).z.subscribe((e) => {
133
+ this.style.setProperty("--z", e.current.toString());
134
+ });
135
+ }
136
+ get pointer() {
137
+ return t(this, r);
138
+ }
139
+ connectedCallback() {
140
+ t(this, r).connect(), t(this, g).observe(), t(this, v).observe(), t(this, x).observe();
141
+ }
142
+ disconnectedCallback() {
143
+ t(this, r).disconnect(), t(this, g).unobserve(), t(this, v).unobserve(), t(this, x).unobserve(), this.style.removeProperty("--x"), this.style.removeProperty("--y"), this.style.removeProperty("--z");
144
+ }
145
+ }
146
+ r = new WeakMap(), g = new WeakMap(), v = new WeakMap(), x = new WeakMap(), L = new WeakMap(), C = new WeakMap();
147
+ customElements.get("e-pointer") || customElements.define("e-pointer", O);
148
+ export {
149
+ N as Pointer,
150
+ O as PointerElement
151
+ };
@@ -0,0 +1 @@
1
+ "use strict";const i=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10];function o(e,n=5){return Math.round(e*i[n])/i[n]}function u(e,n){return Math.round(e/n)*n}function c(e,n){var r;const t=((r=n.toString().split(".")[1])==null?void 0:r.length)||0;return t?+e.toFixed(t):Math.ceil(e)}function s(e,n){return typeof e=="undefined"?n:e}exports.nullishCoalescing=s;exports.preciseNumber=o;exports.roundNumberTo=u;exports.toStep=c;
@@ -0,0 +1,33 @@
1
+ const i = [
2
+ 1,
3
+ 10,
4
+ 100,
5
+ 1e3,
6
+ 1e4,
7
+ 1e5,
8
+ 1e6,
9
+ 1e7,
10
+ 1e8,
11
+ 1e9,
12
+ 1e10
13
+ ];
14
+ function o(e, n = 5) {
15
+ return Math.round(e * i[n]) / i[n];
16
+ }
17
+ function u(e, n) {
18
+ return Math.round(e / n) * n;
19
+ }
20
+ function s(e, n) {
21
+ var r;
22
+ const t = ((r = n.toString().split(".")[1]) == null ? void 0 : r.length) || 0;
23
+ return t ? +e.toFixed(t) : Math.ceil(e);
24
+ }
25
+ function c(e, n) {
26
+ return typeof e == "undefined" ? n : e;
27
+ }
28
+ export {
29
+ c as n,
30
+ o as p,
31
+ u as r,
32
+ s as t
33
+ };
@@ -0,0 +1 @@
1
+ "use strict";var Z=(n,e)=>(e=Symbol[n])?e:Symbol.for("Symbol."+n),$=n=>{throw TypeError(n)};var K=(n,e,s)=>e.has(n)||$("Cannot "+s);var t=(n,e,s)=>(K(n,e,"read from private field"),s?s.call(n):e.get(n)),r=(n,e,s)=>e.has(n)?$("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(n):e.set(n,s),a=(n,e,s,i)=>(K(n,e,"write to private field"),i?i.call(n,s):e.set(n,s),s),W=(n,e,s)=>(K(n,e,"access private method"),s);var M=(n,e,s)=>new Promise((i,h)=>{var o=d=>{try{f(s.next(d))}catch(w){h(w)}},c=d=>{try{f(s.throw(d))}catch(w){h(w)}},f=d=>d.done?i(d.value):Promise.resolve(d.value).then(o,c);f((s=s.apply(n,e)).next())});var Y=(n,e,s)=>(e=n[Z("asyncIterator")])?e.call(n):(n=n[Z("iterator")](),e={},s=(i,h)=>(h=n[i])&&(e[i]=o=>new Promise((c,f,d)=>(o=h.call(n,o),d=o.done,Promise.resolve(o.value).then(w=>c({value:w,done:d}),f)))),s("next"),s("return"),e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const at=require("urlpattern-polyfill"),rt=require("../notifier/index.cjs"),tt=require("../browser-CpzFX2xg.cjs"),ht=require("../function-MthRj-GJ.cjs"),F=require("../url-C3Vj8msL.cjs"),ot=require("../object-CCiXnER2.cjs");var R,O,A,p,m,v,k,L,b,E,x,et;class ct{constructor(e,s){r(this,x);r(this,R);r(this,O);r(this,A);r(this,p);r(this,m);r(this,v);r(this,k);r(this,L,null);r(this,b,[]);r(this,E,[]);a(this,R,e),a(this,O,s),a(this,A,new URLPattern({pathname:t(this,R)})),a(this,p,null),a(this,m,null),a(this,v,!1),a(this,k,null),tt.isBrowser&&a(this,L,new MutationObserver(i=>{i[0].addedNodes.forEach(o=>{t(this,p)?t(this,E).push(o):t(this,b).push(o)})}))}get pattern(){return t(this,R)}get urlPattern(){return t(this,A)}get isActive(){return t(this,v)}get element(){return t(this,m)}get nest(){return t(this,k)}testPathname(e){return this.urlPattern.test({pathname:e})}render(e,s){return M(this,null,function*(){var i,h;if(t(this,L).observe(document.head,{childList:!0,subtree:!0}),t(this,p))t(this,b).forEach(o=>{document.head.appendChild(o)});else{const o=yield t(this,O).call(this);if(a(this,E,[...t(this,b)]),typeof o.default=="function"&&(a(this,p,o.default),ot.isESClass(o.default))){const c="e-"+((i=t(this,p))==null?void 0:i.name.toLowerCase());customElements.get(c)||customElements.define(c,o.default)}}if(yield W(this,x,et).call(this),t(this,p)){const o=t(this,A).exec({pathname:s}),c=(o==null?void 0:o.pathname.groups)||{},f=Object.fromEntries(new URLSearchParams(location.search)),d={pathnameParams:c,searchParams:f};a(this,m,new(t(this,p))(d)),e.appendChild(t(this,m)),a(this,k,t(this,m).querySelector("[data-nest]")||((h=t(this,m).shadowRoot)==null?void 0:h.querySelector("[data-nest]"))||t(this,m).shadowRoot||t(this,m)),a(this,v,!0)}t(this,L).disconnect()})}close(){var e;t(this,L).disconnect(),(e=t(this,m))==null||e.remove(),a(this,v,!1),t(this,E).forEach(s=>document.head.removeChild(s)),a(this,E,[])}getAnchorElements(){var s;let e=[];return t(this,m)&&(e=[...t(this,m).querySelectorAll("a")]),(s=t(this,m))!=null&&s.shadowRoot&&(e=[...e,...t(this,m).shadowRoot.querySelectorAll("a")]),e}}R=new WeakMap,O=new WeakMap,A=new WeakMap,p=new WeakMap,m=new WeakMap,v=new WeakMap,k=new WeakMap,L=new WeakMap,b=new WeakMap,E=new WeakMap,x=new WeakSet,et=function(){return M(this,null,function*(){const e=t(this,b).filter(c=>c instanceof HTMLElement?c.tagName==="STYLE"||c.tagName==="SCRIPT"||c.tagName==="LINK":!1);try{for(var s=Y(e),i,h,o;i=!(h=yield s.next()).done;i=!1){const c=h.value;yield new Promise(f=>{c.onload=()=>{f()}})}}catch(h){o=[h]}finally{try{i&&(h=s.return)&&(yield h.call(s))}finally{if(o)throw o[0]}}})};var S,u,P,U,q,j;class lt{constructor(e,s){r(this,S);r(this,u);r(this,P);r(this,U);r(this,q);r(this,j,e=>{e.preventDefault(),t(this,S).links.forEach(s=>{var i;t(this,P)===t(s,P)||(i=t(s,q))!=null&&i.includes(t(this,P))?t(s,u).classList.add("clicked"):t(s,u).classList.remove("clicked")}),t(this,S).navigate(t(this,P),t(this,U))});var o,c;a(this,S,e),a(this,u,s),a(this,P,t(this,u).getAttribute("href")||"/"),a(this,U,t(this,u).getAttribute("data-history-action")||"push"),t(this,u).addEventListener("click",t(this,j));const i=e.normalizePath(t(this,P)),h=e.normalizePath(location.pathname);a(this,q,(o=t(this,u).getAttribute("data-match-paths"))==null?void 0:o.split(",").map(f=>e.normalizePath(f.trim()).pathname)),t(this,u).hasAttribute("data-include")?h.pathname.includes(i.pathname)&&t(this,u).classList.add("current"):i.pathname===h.pathname||(c=t(this,q))!=null&&c.includes(h.pathname)?(t(this,u).classList.add("current"),t(this,u).classList.add("clicked")):t(this,u).classList.remove("clicked")}destroy(){t(this,u).removeEventListener("click",t(this,j)),t(this,u).classList.remove("current")}}S=new WeakMap,u=new WeakMap,P=new WeakMap,U=new WeakMap,q=new WeakMap,j=new WeakMap;globalThis.URLPattern=at.URLPattern;var N,C,g,z,T,y,H,B,I,_,st,D;class ut{constructor(e){r(this,_);r(this,N,null);r(this,C,null);r(this,g,[]);r(this,z,null);r(this,T,[]);r(this,y);r(this,H,null);r(this,B,new rt.Notifier);r(this,I,ht.debounce(()=>{const e=s=>s.split("/").length;a(this,g,t(this,g).sort((s,i)=>e(s.pattern)-e(i.pattern))),this.navigate(location.pathname)},0));r(this,D,e=>{e.state&&this.navigate(e.state,"none")});tt.isBrowser&&(e!=null&&e.base?a(this,C,F.normalizeBase(e.base)):a(this,C,"/"),a(this,N,(e==null?void 0:e.rootElement)||document.body),addEventListener("popstate",t(this,D)))}get currentPathname(){return t(this,H)}get candidatePathname(){return t(this,y)}get routes(){return t(this,g)}get links(){return t(this,T)}navigationEvent(e){return t(this,B).subscribe(e)}defineRoute(e,s){const i=new ct(e,s);t(this,g).push(i),t(this,I).call(this)}navigate(e,s="push"){return M(this,null,function*(){var Q,V;const i=this.normalizePath(e);let{pathname:h,hash:o,parameters:c,leaf:f}=i;if(t(this,y)===h||t(this,H)===h)return;a(this,y,h);const d=t(this,g).filter(l=>l.isActive),w=t(this,g).filter(l=>!d.includes(l)&&l.testPathname(f)),it=d.filter(l=>!l.testPathname(f)),G=d.filter(l=>l.testPathname(f));let J=!0;if(this.preprocessor)try{yield new Promise((l,nt)=>{var X;(X=this.preprocessor)==null||X.call(this,{path:i,resolve:l,reject:nt})})}catch(l){l?console.error(l):console.log("Route change canceled"),J=!1}if(J&&t(this,y)===h){a(this,z,G[G.length-1]),it.forEach(l=>{l.close()}),a(this,H,h),F.changeHistory(s,h,c,o);try{for(var ft=Y(w),pt,gt,Pt;pt=!(gt=yield ft.next()).done;pt=!1){const l=gt.value;yield l.render(((Q=t(this,z))==null?void 0:Q.nest)||t(this,N),h),a(this,z,l)}}catch(gt){Pt=[gt]}finally{try{pt&&(gt=ft.return)&&(yield gt.call(ft))}finally{if(Pt)throw Pt[0]}}W(this,_,st).call(this),(V=this.postprocessor)==null||V.call(this,{pathname:h}),t(this,B).notify({pathname:h})}})}normalizePath(e){return F.splitPath(e,t(this,C))}}N=new WeakMap,C=new WeakMap,g=new WeakMap,z=new WeakMap,T=new WeakMap,y=new WeakMap,H=new WeakMap,B=new WeakMap,I=new WeakMap,_=new WeakSet,st=function(){const e=t(this,g).filter(i=>i.isActive),s=Array.from(new Set([...t(this,N).querySelectorAll("a"),...e.map(i=>i.getAnchorElements()).flat()].filter(i=>{var h;return(h=i.getAttribute("href"))==null?void 0:h.startsWith("/")})));t(this,T).forEach(i=>{i.destroy()}),a(this,T,s.map(i=>new lt(this,i)))},D=new WeakMap;exports.Router=ut;
@@ -0,0 +1,266 @@
1
+ var X = (a, e) => (e = Symbol[a]) ? e : Symbol.for("Symbol." + a), Z = (a) => {
2
+ throw TypeError(a);
3
+ };
4
+ var W = (a, e, s) => e.has(a) || Z("Cannot " + s);
5
+ var t = (a, e, s) => (W(a, e, "read from private field"), s ? s.call(a) : e.get(a)), h = (a, e, s) => e.has(a) ? Z("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(a) : e.set(a, s), n = (a, e, s, i) => (W(a, e, "write to private field"), i ? i.call(a, s) : e.set(a, s), s), Y = (a, e, s) => (W(a, e, "access private method"), s);
6
+ var I = (a, e, s) => new Promise((i, r) => {
7
+ var o = (m) => {
8
+ try {
9
+ f(s.next(m));
10
+ } catch (w) {
11
+ r(w);
12
+ }
13
+ }, c = (m) => {
14
+ try {
15
+ f(s.throw(m));
16
+ } catch (w) {
17
+ r(w);
18
+ }
19
+ }, f = (m) => m.done ? i(m.value) : Promise.resolve(m.value).then(o, c);
20
+ f((s = s.apply(a, e)).next());
21
+ });
22
+ var $ = (a, e, s) => (e = a[X("asyncIterator")]) ? e.call(a) : (a = a[X("iterator")](), e = {}, s = (i, r) => (r = a[i]) && (e[i] = (o) => new Promise((c, f, m) => (o = r.call(a, o), m = o.done, Promise.resolve(o.value).then((w) => c({ value: w, done: m }), f)))), s("next"), s("return"), e);
23
+ import { URLPattern as at } from "urlpattern-polyfill";
24
+ import { Notifier as nt } from "../notifier/index.js";
25
+ import { i as _ } from "../browser-0zX67oeU.js";
26
+ import { d as ht } from "../function-C10DGppn.js";
27
+ import { n as rt, c as ot, s as ct } from "../url-BDc0awLa.js";
28
+ import { i as lt } from "../object-D6MVWB4l.js";
29
+ var y, U, A, p, d, L, k, v, E, R, M, tt;
30
+ class ut {
31
+ constructor(e, s) {
32
+ h(this, M);
33
+ h(this, y);
34
+ h(this, U);
35
+ h(this, A);
36
+ h(this, p);
37
+ h(this, d);
38
+ h(this, L);
39
+ h(this, k);
40
+ h(this, v, null);
41
+ h(this, E, []);
42
+ h(this, R, []);
43
+ n(this, y, e), n(this, U, s), n(this, A, new URLPattern({ pathname: t(this, y) })), n(this, p, null), n(this, d, null), n(this, L, !1), n(this, k, null), _ && n(this, v, new MutationObserver((i) => {
44
+ i[0].addedNodes.forEach((o) => {
45
+ t(this, p) ? t(this, R).push(o) : t(this, E).push(o);
46
+ });
47
+ }));
48
+ }
49
+ get pattern() {
50
+ return t(this, y);
51
+ }
52
+ get urlPattern() {
53
+ return t(this, A);
54
+ }
55
+ get isActive() {
56
+ return t(this, L);
57
+ }
58
+ get element() {
59
+ return t(this, d);
60
+ }
61
+ get nest() {
62
+ return t(this, k);
63
+ }
64
+ testPathname(e) {
65
+ return this.urlPattern.test({ pathname: e });
66
+ }
67
+ render(e, s) {
68
+ return I(this, null, function* () {
69
+ var i, r;
70
+ if (t(this, v).observe(document.head, {
71
+ childList: !0,
72
+ subtree: !0
73
+ }), t(this, p))
74
+ t(this, E).forEach((o) => {
75
+ document.head.appendChild(o);
76
+ });
77
+ else {
78
+ const o = yield t(this, U).call(this);
79
+ if (n(this, R, [...t(this, E)]), typeof o.default == "function" && (n(this, p, o.default), lt(o.default))) {
80
+ const c = "e-" + ((i = t(this, p)) == null ? void 0 : i.name.toLowerCase());
81
+ customElements.get(c) || customElements.define(c, o.default);
82
+ }
83
+ }
84
+ if (yield Y(this, M, tt).call(this), t(this, p)) {
85
+ const o = t(this, A).exec({ pathname: s }), c = (o == null ? void 0 : o.pathname.groups) || {}, f = Object.fromEntries(
86
+ new URLSearchParams(location.search)
87
+ ), m = {
88
+ pathnameParams: c,
89
+ searchParams: f
90
+ };
91
+ n(this, d, new (t(this, p))(m)), e.appendChild(t(this, d)), n(this, k, t(this, d).querySelector("[data-nest]") || ((r = t(this, d).shadowRoot) == null ? void 0 : r.querySelector("[data-nest]")) || t(this, d).shadowRoot || t(this, d)), n(this, L, !0);
92
+ }
93
+ t(this, v).disconnect();
94
+ });
95
+ }
96
+ close() {
97
+ var e;
98
+ t(this, v).disconnect(), (e = t(this, d)) == null || e.remove(), n(this, L, !1), t(this, R).forEach((s) => document.head.removeChild(s)), n(this, R, []);
99
+ }
100
+ getAnchorElements() {
101
+ var s;
102
+ let e = [];
103
+ return t(this, d) && (e = [...t(this, d).querySelectorAll("a")]), (s = t(this, d)) != null && s.shadowRoot && (e = [
104
+ ...e,
105
+ ...t(this, d).shadowRoot.querySelectorAll("a")
106
+ ]), e;
107
+ }
108
+ }
109
+ y = new WeakMap(), U = new WeakMap(), A = new WeakMap(), p = new WeakMap(), d = new WeakMap(), L = new WeakMap(), k = new WeakMap(), v = new WeakMap(), E = new WeakMap(), R = new WeakMap(), M = new WeakSet(), tt = function() {
110
+ return I(this, null, function* () {
111
+ const e = t(this, E).filter((c) => c instanceof HTMLElement ? c.tagName === "STYLE" || c.tagName === "SCRIPT" || c.tagName === "LINK" : !1);
112
+ try {
113
+ for (var s = $(e), i, r, o; i = !(r = yield s.next()).done; i = !1) {
114
+ const c = r.value;
115
+ yield new Promise((f) => {
116
+ c.onload = () => {
117
+ f();
118
+ };
119
+ });
120
+ }
121
+ } catch (r) {
122
+ o = [r];
123
+ } finally {
124
+ try {
125
+ i && (r = s.return) && (yield r.call(s));
126
+ } finally {
127
+ if (o)
128
+ throw o[0];
129
+ }
130
+ }
131
+ });
132
+ };
133
+ var S, u, P, O, N, x;
134
+ class mt {
135
+ constructor(e, s) {
136
+ h(this, S);
137
+ h(this, u);
138
+ h(this, P);
139
+ h(this, O);
140
+ h(this, N);
141
+ h(this, x, (e) => {
142
+ e.preventDefault(), t(this, S).links.forEach((s) => {
143
+ var i;
144
+ t(this, P) === t(s, P) || (i = t(s, N)) != null && i.includes(t(this, P)) ? t(s, u).classList.add("clicked") : t(s, u).classList.remove("clicked");
145
+ }), t(this, S).navigate(t(this, P), t(this, O));
146
+ });
147
+ var o, c;
148
+ n(this, S, e), n(this, u, s), n(this, P, t(this, u).getAttribute("href") || "/"), n(this, O, t(this, u).getAttribute(
149
+ "data-history-action"
150
+ ) || "push"), t(this, u).addEventListener("click", t(this, x));
151
+ const i = e.normalizePath(t(this, P)), r = e.normalizePath(location.pathname);
152
+ n(this, N, (o = t(this, u).getAttribute("data-match-paths")) == null ? void 0 : o.split(",").map((f) => e.normalizePath(f.trim()).pathname)), t(this, u).hasAttribute("data-include") ? r.pathname.includes(i.pathname) && t(this, u).classList.add("current") : i.pathname === r.pathname || (c = t(this, N)) != null && c.includes(r.pathname) ? (t(this, u).classList.add("current"), t(this, u).classList.add("clicked")) : t(this, u).classList.remove("clicked");
153
+ }
154
+ destroy() {
155
+ t(this, u).removeEventListener("click", t(this, x)), t(this, u).classList.remove("current");
156
+ }
157
+ }
158
+ S = new WeakMap(), u = new WeakMap(), P = new WeakMap(), O = new WeakMap(), N = new WeakMap(), x = new WeakMap();
159
+ globalThis.URLPattern = at;
160
+ var C, z, g, q, H, b, T, B, j, D, et, K;
161
+ class vt {
162
+ constructor(e) {
163
+ h(this, D);
164
+ h(this, C, null);
165
+ h(this, z, null);
166
+ h(this, g, []);
167
+ h(this, q, null);
168
+ h(this, H, []);
169
+ h(this, b);
170
+ h(this, T, null);
171
+ h(this, B, new nt());
172
+ h(this, j, ht(() => {
173
+ const e = (s) => s.split("/").length;
174
+ n(this, g, t(this, g).sort((s, i) => e(s.pattern) - e(i.pattern))), this.navigate(location.pathname);
175
+ }, 0));
176
+ h(this, K, (e) => {
177
+ e.state && this.navigate(e.state, "none");
178
+ });
179
+ _ && (e != null && e.base ? n(this, z, rt(e.base)) : n(this, z, "/"), n(this, C, (e == null ? void 0 : e.rootElement) || document.body), addEventListener("popstate", t(this, K)));
180
+ }
181
+ get currentPathname() {
182
+ return t(this, T);
183
+ }
184
+ get candidatePathname() {
185
+ return t(this, b);
186
+ }
187
+ get routes() {
188
+ return t(this, g);
189
+ }
190
+ get links() {
191
+ return t(this, H);
192
+ }
193
+ navigationEvent(e) {
194
+ return t(this, B).subscribe(e);
195
+ }
196
+ defineRoute(e, s) {
197
+ const i = new ut(e, s);
198
+ t(this, g).push(i), t(this, j).call(this);
199
+ }
200
+ navigate(e, s = "push") {
201
+ return I(this, null, function* () {
202
+ var J, Q;
203
+ const i = this.normalizePath(e);
204
+ let { pathname: r, hash: o, parameters: c, leaf: f } = i;
205
+ if (t(this, b) === r || t(this, T) === r)
206
+ return;
207
+ n(this, b, r);
208
+ const m = t(this, g).filter((l) => l.isActive), w = t(this, g).filter(
209
+ (l) => !m.includes(l) && l.testPathname(f)
210
+ ), st = m.filter((l) => !l.testPathname(f)), F = m.filter((l) => l.testPathname(f));
211
+ let G = !0;
212
+ if (this.preprocessor)
213
+ try {
214
+ yield new Promise((l, it) => {
215
+ var V;
216
+ (V = this.preprocessor) == null || V.call(this, { path: i, resolve: l, reject: it });
217
+ });
218
+ } catch (l) {
219
+ l ? console.error(l) : console.log("Route change canceled"), G = !1;
220
+ }
221
+ if (G && t(this, b) === r) {
222
+ n(this, q, F[F.length - 1]), st.forEach((l) => {
223
+ l.close();
224
+ }), n(this, T, r), ot(s, r, c, o);
225
+ try {
226
+ for (var bt = $(w), yt, At, kt; yt = !(At = yield bt.next()).done; yt = !1) {
227
+ const l = At.value;
228
+ yield l.render(((J = t(this, q)) == null ? void 0 : J.nest) || t(this, C), r), n(this, q, l);
229
+ }
230
+ } catch (At) {
231
+ kt = [At];
232
+ } finally {
233
+ try {
234
+ yt && (At = bt.return) && (yield At.call(bt));
235
+ } finally {
236
+ if (kt)
237
+ throw kt[0];
238
+ }
239
+ }
240
+ Y(this, D, et).call(this), (Q = this.postprocessor) == null || Q.call(this, { pathname: r }), t(this, B).notify({ pathname: r });
241
+ }
242
+ });
243
+ }
244
+ normalizePath(e) {
245
+ return ct(e, t(this, z));
246
+ }
247
+ }
248
+ C = new WeakMap(), z = new WeakMap(), g = new WeakMap(), q = new WeakMap(), H = new WeakMap(), b = new WeakMap(), T = new WeakMap(), B = new WeakMap(), j = new WeakMap(), D = new WeakSet(), et = function() {
249
+ const e = t(this, g).filter((i) => i.isActive), s = Array.from(
250
+ new Set(
251
+ [
252
+ ...t(this, C).querySelectorAll("a"),
253
+ ...e.map((i) => i.getAnchorElements()).flat()
254
+ ].filter((i) => {
255
+ var r;
256
+ return (r = i.getAttribute("href")) == null ? void 0 : r.startsWith("/");
257
+ })
258
+ )
259
+ );
260
+ t(this, H).forEach((i) => {
261
+ i.destroy();
262
+ }), n(this, H, s.map((i) => new mt(this, i)));
263
+ }, K = new WeakMap();
264
+ export {
265
+ vt as Router
266
+ };
@@ -0,0 +1,30 @@
1
+ "use strict";var hr=Object.defineProperty,mr=Object.defineProperties;var Er=Object.getOwnPropertyDescriptors;var z=Object.getOwnPropertySymbols;var Fe=Object.prototype.hasOwnProperty,Ae=Object.prototype.propertyIsEnumerable;var De=(a,l,f)=>l in a?hr(a,l,{enumerable:!0,configurable:!0,writable:!0,value:f}):a[l]=f,D=(a,l)=>{for(var f in l||(l={}))Fe.call(l,f)&&De(a,f,l[f]);if(z)for(var f of z(l))Ae.call(l,f)&&De(a,f,l[f]);return a},F=(a,l)=>mr(a,Er(l));var ie=(a,l)=>{var f={};for(var c in a)Fe.call(a,c)&&l.indexOf(c)<0&&(f[c]=a[c]);if(a!=null&&z)for(var c of z(a))l.indexOf(c)<0&&Ae.call(a,c)&&(f[c]=a[c]);return f};Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const j=require("react");require("../vanilla/index.cjs");var ue={exports:{}},M={};/**
2
+ * @license React
3
+ * react-jsx-runtime.production.min.js
4
+ *
5
+ * Copyright (c) Facebook, Inc. and its affiliates.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
9
+ */var Ie;function _r(){if(Ie)return M;Ie=1;var a=j,l=Symbol.for("react.element"),f=Symbol.for("react.fragment"),c=Object.prototype.hasOwnProperty,w=a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,T={key:!0,ref:!0,__self:!0,__source:!0};function S(E,v,P){var y,g={},b=null,I=null;P!==void 0&&(b=""+P),v.key!==void 0&&(b=""+v.key),v.ref!==void 0&&(I=v.ref);for(y in v)c.call(v,y)&&!T.hasOwnProperty(y)&&(g[y]=v[y]);if(E&&E.defaultProps)for(y in v=E.defaultProps,v)g[y]===void 0&&(g[y]=v[y]);return{$$typeof:l,type:E,key:b,ref:I,props:g,_owner:w.current}}return M.Fragment=f,M.jsx=S,M.jsxs=S,M}var V={};/**
10
+ * @license React
11
+ * react-jsx-runtime.development.js
12
+ *
13
+ * Copyright (c) Facebook, Inc. and its affiliates.
14
+ *
15
+ * This source code is licensed under the MIT license found in the
16
+ * LICENSE file in the root directory of this source tree.
17
+ */var We;function Sr(){return We||(We=1,process.env.NODE_ENV!=="production"&&function(){var a=j,l=Symbol.for("react.element"),f=Symbol.for("react.portal"),c=Symbol.for("react.fragment"),w=Symbol.for("react.strict_mode"),T=Symbol.for("react.profiler"),S=Symbol.for("react.provider"),E=Symbol.for("react.context"),v=Symbol.for("react.forward_ref"),P=Symbol.for("react.suspense"),y=Symbol.for("react.suspense_list"),g=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),I=Symbol.for("react.offscreen"),C=Symbol.iterator,U="@@iterator";function X(e){if(e===null||typeof e!="object")return null;var r=C&&e[C]||e[U];return typeof r=="function"?r:null}var W=a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function R(e){{for(var r=arguments.length,t=new Array(r>1?r-1:0),n=1;n<r;n++)t[n-1]=arguments[n];Ye("error",e,t)}}function Ye(e,r,t){{var n=W.ReactDebugCurrentFrame,u=n.getStackAddendum();u!==""&&(r+="%s",t=t.concat([u]));var s=t.map(function(i){return String(i)});s.unshift("Warning: "+r),Function.prototype.apply.call(console[e],console,s)}}var Ne=!1,Le=!1,Be=!1,Me=!1,Ve=!1,se;se=Symbol.for("react.module.reference");function Ue(e){return!!(typeof e=="string"||typeof e=="function"||e===c||e===T||Ve||e===w||e===P||e===y||Me||e===I||Ne||Le||Be||typeof e=="object"&&e!==null&&(e.$$typeof===b||e.$$typeof===g||e.$$typeof===S||e.$$typeof===E||e.$$typeof===v||e.$$typeof===se||e.getModuleId!==void 0))}function qe(e,r,t){var n=e.displayName;if(n)return n;var u=r.displayName||r.name||"";return u!==""?t+"("+u+")":t}function le(e){return e.displayName||"Context"}function O(e){if(e==null)return null;if(typeof e.tag=="number"&&R("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case c:return"Fragment";case f:return"Portal";case T:return"Profiler";case w:return"StrictMode";case P:return"Suspense";case y:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case E:var r=e;return le(r)+".Consumer";case S:var t=e;return le(t._context)+".Provider";case v:return qe(e,e.render,"ForwardRef");case g:var n=e.displayName||null;return n!==null?n:O(e.type)||"Memo";case b:{var u=e,s=u._payload,i=u._init;try{return O(i(s))}catch(o){return null}}}return null}var x=Object.assign,N=0,ce,fe,de,ve,pe,be,ge;function ye(){}ye.__reactDisabledLog=!0;function Je(){{if(N===0){ce=console.log,fe=console.info,de=console.warn,ve=console.error,pe=console.group,be=console.groupCollapsed,ge=console.groupEnd;var e={configurable:!0,enumerable:!0,value:ye,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}N++}}function Ke(){{if(N--,N===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:x({},e,{value:ce}),info:x({},e,{value:fe}),warn:x({},e,{value:de}),error:x({},e,{value:ve}),group:x({},e,{value:pe}),groupCollapsed:x({},e,{value:be}),groupEnd:x({},e,{value:ge})})}N<0&&R("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var H=W.ReactCurrentDispatcher,Z;function q(e,r,t){{if(Z===void 0)try{throw Error()}catch(u){var n=u.stack.trim().match(/\n( *(at )?)/);Z=n&&n[1]||""}return`
18
+ `+Z+e}}var Q=!1,J;{var Ge=typeof WeakMap=="function"?WeakMap:Map;J=new Ge}function Re(e,r){if(!e||Q)return"";{var t=J.get(e);if(t!==void 0)return t}var n;Q=!0;var u=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var s;s=H.current,H.current=null,Je();try{if(r){var i=function(){throw Error()};if(Object.defineProperty(i.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(i,[])}catch(m){n=m}Reflect.construct(e,[],i)}else{try{i.call()}catch(m){n=m}e.call(i.prototype)}}else{try{throw Error()}catch(m){n=m}e()}}catch(m){if(m&&n&&typeof m.stack=="string"){for(var o=m.stack.split(`
19
+ `),h=n.stack.split(`
20
+ `),d=o.length-1,p=h.length-1;d>=1&&p>=0&&o[d]!==h[p];)p--;for(;d>=1&&p>=0;d--,p--)if(o[d]!==h[p]){if(d!==1||p!==1)do if(d--,p--,p<0||o[d]!==h[p]){var _=`
21
+ `+o[d].replace(" at new "," at ");return e.displayName&&_.includes("<anonymous>")&&(_=_.replace("<anonymous>",e.displayName)),typeof e=="function"&&J.set(e,_),_}while(d>=1&&p>=0);break}}}finally{Q=!1,H.current=s,Ke(),Error.prepareStackTrace=u}var Y=e?e.displayName||e.name:"",k=Y?q(Y):"";return typeof e=="function"&&J.set(e,k),k}function ze(e,r,t){return Re(e,!1)}function Xe(e){var r=e.prototype;return!!(r&&r.isReactComponent)}function K(e,r,t){if(e==null)return"";if(typeof e=="function")return Re(e,Xe(e));if(typeof e=="string")return q(e);switch(e){case P:return q("Suspense");case y:return q("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case v:return ze(e.render);case g:return K(e.type,r,t);case b:{var n=e,u=n._payload,s=n._init;try{return K(s(u),r,t)}catch(i){}}}return""}var L=Object.prototype.hasOwnProperty,he={},me=W.ReactDebugCurrentFrame;function G(e){if(e){var r=e._owner,t=K(e.type,e._source,r?r.type:null);me.setExtraStackFrame(t)}else me.setExtraStackFrame(null)}function He(e,r,t,n,u){{var s=Function.call.bind(L);for(var i in e)if(s(e,i)){var o=void 0;try{if(typeof e[i]!="function"){var h=Error((n||"React class")+": "+t+" type `"+i+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[i]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw h.name="Invariant Violation",h}o=e[i](r,i,n,t,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(d){o=d}o&&!(o instanceof Error)&&(G(u),R("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",n||"React class",t,i,typeof o),G(null)),o instanceof Error&&!(o.message in he)&&(he[o.message]=!0,G(u),R("Failed %s type: %s",t,o.message),G(null))}}}var Ze=Array.isArray;function ee(e){return Ze(e)}function Qe(e){{var r=typeof Symbol=="function"&&Symbol.toStringTag,t=r&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t}}function er(e){try{return Ee(e),!1}catch(r){return!0}}function Ee(e){return""+e}function _e(e){if(er(e))return R("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Qe(e)),Ee(e)}var B=W.ReactCurrentOwner,rr={key:!0,ref:!0,__self:!0,__source:!0},Se,Te,re;re={};function tr(e){if(L.call(e,"ref")){var r=Object.getOwnPropertyDescriptor(e,"ref").get;if(r&&r.isReactWarning)return!1}return e.ref!==void 0}function nr(e){if(L.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function ar(e,r){if(typeof e.ref=="string"&&B.current&&r&&B.current.stateNode!==r){var t=O(B.current.type);re[t]||(R('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',O(B.current.type),e.ref),re[t]=!0)}}function or(e,r){{var t=function(){Se||(Se=!0,R("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",r))};t.isReactWarning=!0,Object.defineProperty(e,"key",{get:t,configurable:!0})}}function ir(e,r){{var t=function(){Te||(Te=!0,R("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",r))};t.isReactWarning=!0,Object.defineProperty(e,"ref",{get:t,configurable:!0})}}var ur=function(e,r,t,n,u,s,i){var o={$$typeof:l,type:e,key:r,ref:t,props:i,_owner:s};return o._store={},Object.defineProperty(o._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(o,"_self",{configurable:!1,enumerable:!1,writable:!1,value:n}),Object.defineProperty(o,"_source",{configurable:!1,enumerable:!1,writable:!1,value:u}),Object.freeze&&(Object.freeze(o.props),Object.freeze(o)),o};function sr(e,r,t,n,u){{var s,i={},o=null,h=null;t!==void 0&&(_e(t),o=""+t),nr(r)&&(_e(r.key),o=""+r.key),tr(r)&&(h=r.ref,ar(r,u));for(s in r)L.call(r,s)&&!rr.hasOwnProperty(s)&&(i[s]=r[s]);if(e&&e.defaultProps){var d=e.defaultProps;for(s in d)i[s]===void 0&&(i[s]=d[s])}if(o||h){var p=typeof e=="function"?e.displayName||e.name||"Unknown":e;o&&or(i,p),h&&ir(i,p)}return ur(e,o,h,u,n,B.current,i)}}var te=W.ReactCurrentOwner,Oe=W.ReactDebugCurrentFrame;function $(e){if(e){var r=e._owner,t=K(e.type,e._source,r?r.type:null);Oe.setExtraStackFrame(t)}else Oe.setExtraStackFrame(null)}var ne;ne=!1;function ae(e){return typeof e=="object"&&e!==null&&e.$$typeof===l}function je(){{if(te.current){var e=O(te.current.type);if(e)return`
22
+
23
+ Check the render method of \``+e+"`."}return""}}function lr(e){return""}var we={};function cr(e){{var r=je();if(!r){var t=typeof e=="string"?e:e.displayName||e.name;t&&(r=`
24
+
25
+ Check the top-level render call using <`+t+">.")}return r}}function Ce(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var t=cr(r);if(we[t])return;we[t]=!0;var n="";e&&e._owner&&e._owner!==te.current&&(n=" It was passed a child from "+O(e._owner.type)+"."),$(e),R('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',t,n),$(null)}}function Pe(e,r){{if(typeof e!="object")return;if(ee(e))for(var t=0;t<e.length;t++){var n=e[t];ae(n)&&Ce(n,r)}else if(ae(e))e._store&&(e._store.validated=!0);else if(e){var u=X(e);if(typeof u=="function"&&u!==e.entries)for(var s=u.call(e),i;!(i=s.next()).done;)ae(i.value)&&Ce(i.value,r)}}}function fr(e){{var r=e.type;if(r==null||typeof r=="string")return;var t;if(typeof r=="function")t=r.propTypes;else if(typeof r=="object"&&(r.$$typeof===v||r.$$typeof===g))t=r.propTypes;else return;if(t){var n=O(r);He(t,e.props,"prop",n,e)}else if(r.PropTypes!==void 0&&!ne){ne=!0;var u=O(r);R("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",u||"Unknown")}typeof r.getDefaultProps=="function"&&!r.getDefaultProps.isReactClassApproved&&R("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function dr(e){{for(var r=Object.keys(e.props),t=0;t<r.length;t++){var n=r[t];if(n!=="children"&&n!=="key"){$(e),R("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",n),$(null);break}}e.ref!==null&&($(e),R("Invalid attribute `ref` supplied to `React.Fragment`."),$(null))}}var xe={};function ke(e,r,t,n,u,s){{var i=Ue(e);if(!i){var o="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(o+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var h=lr();h?o+=h:o+=je();var d;e===null?d="null":ee(e)?d="array":e!==void 0&&e.$$typeof===l?(d="<"+(O(e.type)||"Unknown")+" />",o=" Did you accidentally export a JSX literal instead of a component?"):d=typeof e,R("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",d,o)}var p=sr(e,r,t,u,s);if(p==null)return p;if(i){var _=r.children;if(_!==void 0)if(n)if(ee(_)){for(var Y=0;Y<_.length;Y++)Pe(_[Y],e);Object.freeze&&Object.freeze(_)}else R("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Pe(_,e)}if(L.call(r,"key")){var k=O(e),m=Object.keys(r).filter(function(Rr){return Rr!=="key"}),oe=m.length>0?"{key: someKey, "+m.join(": ..., ")+": ...}":"{key: someKey}";if(!xe[k+oe]){var yr=m.length>0?"{"+m.join(": ..., ")+": ...}":"{}";R(`A props object containing a "key" prop is being spread into JSX:
26
+ let props = %s;
27
+ <%s {...props} />
28
+ React keys must be passed directly to JSX without using spread:
29
+ let props = %s;
30
+ <%s key={someKey} {...props} />`,oe,k,yr,k),xe[k+oe]=!0}}return e===c?dr(p):fr(p),p}}function vr(e,r,t){return ke(e,r,t,!0)}function pr(e,r,t){return ke(e,r,t,!1)}var br=pr,gr=vr;V.Fragment=c,V.jsx=br,V.jsxs=gr}()),V}process.env.NODE_ENV==="production"?ue.exports=_r():ue.exports=Sr();var A=ue.exports;const $e=j.createContext(null);function Tr(){return j.useContext($e)}const Or=j.forwardRef((w,c)=>{var T=w,{className:a,children:l}=T,f=ie(T,["className","children"]);const S=j.useRef(null);return A.jsx("e-scroll",F(D({},f),{class:a,ref:E=>{S.current=E,typeof c=="function"?c(E):c&&(c.current=E)},children:A.jsx($e.Provider,{value:S,children:l})}))}),jr=a=>A.jsx("e-scrollbar",F(D({},a),{class:a.className,className:void 0,slot:"static"})),wr=a=>A.jsx("e-scroll-bullet-buttons",F(D({},a),{class:a.className,className:void 0})),Cr=j.forwardRef((P,v)=>{var y=P,{className:a,onCapture:l,onCaptureFromStart:f,onCaptureFromFinish:c,onRelease:w,onReleaseFromStart:T,onReleaseFromFinish:S}=y,E=ie(y,["className","onCapture","onCaptureFromStart","onCaptureFromFinish","onRelease","onReleaseFromStart","onReleaseFromFinish"]);const g=j.useRef(null);return j.useEffect(()=>{const b=(C,U)=>{if(U)return C.subscribe(X=>{X.current&&U()})},I=[b(g.current.isCaptured,l),b(g.current.isCapturedFromStart,f),b(g.current.isCapturedFromFinish,c),b(g.current.isReleased,w),b(g.current.isReleasedFromStart,T),b(g.current.isReleasedFromFinish,S)];return()=>{I.forEach(C=>C==null?void 0:C())}},[l,f,c,w,T,S]),A.jsx("e-scroll-segment",F(D({},E),{class:a,ref:b=>{g.current=b,typeof v=="function"?v(b):v&&(v.current=b)}}))}),Pr=a=>A.jsx("e-scroll-set-button",F(D({},a),{class:a.className,className:void 0})),xr=a=>A.jsx("e-scroll-step-button",F(D({},a),{class:a.className,className:void 0}));exports.Scroll=Or;exports.ScrollBulletButtons=wr;exports.ScrollSegment=Cr;exports.ScrollSetButton=Pr;exports.ScrollStepButton=xr;exports.Scrollbar=jr;exports.useScroll=Tr;