aptechka 0.5.44 → 0.7.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 (234) hide show
  1. package/lib/Animation-6Na1MCtM.cjs +1 -0
  2. package/lib/Animation-CELiTw3n.js +132 -0
  3. package/lib/Composed-DmLYTh1b.js +35 -0
  4. package/lib/Composed-Dx2hs-va.cjs +1 -0
  5. package/lib/{Damped-P4MkCGoY.js → Damped-Mx_FNNVz.js} +2 -5
  6. package/lib/Damped-loFiBsBy.cjs +1 -0
  7. package/lib/{Derived-kPJs5JC5.js → Derived-DlCvc0xQ.js} +1 -1
  8. package/lib/{Derived-B-g8dYgh.cjs → Derived-a6MDQEPY.cjs} +1 -1
  9. package/lib/ElementConstructor-CAZ2ra8m.cjs +1 -0
  10. package/lib/ElementConstructor-OYlPJf2L.js +366 -0
  11. package/lib/Resource-D3TQormz.cjs +1 -0
  12. package/lib/Resource-DIcoALGo.js +64 -0
  13. package/lib/{SourceManager-Q-PB-Rkh.js → SourceManager-Bz329f90.js} +1 -1
  14. package/lib/{SourceManager-vSlsMKUE.cjs → SourceManager-kxr5eUyL.cjs} +1 -1
  15. package/lib/Store-6s0YXK4o.cjs +1 -0
  16. package/lib/{Store-BQXXikps.js → Store-BI2xxXOA.js} +42 -42
  17. package/lib/Tweened-B_mclQ61.cjs +1 -0
  18. package/lib/Tweened-NE8M9onF.js +48 -0
  19. package/lib/{Viewport-DMB0dO-s.cjs → Viewport-CJeKnL5V.cjs} +1 -1
  20. package/lib/{Viewport-CFFhFKqX.js → Viewport-D9IL7kUQ.js} +1 -1
  21. package/lib/_createStore-Cf1MyeHa.cjs +1 -0
  22. package/lib/_createStore-Ck9bHolX.js +12 -0
  23. package/lib/accordion/AccordionElement.d.ts +3 -0
  24. package/lib/accordion/index.cjs +1 -1
  25. package/lib/accordion/index.js +140 -104
  26. package/lib/animation/Animation.d.ts +10 -18
  27. package/lib/animation/Damped.d.ts +3 -5
  28. package/lib/animation/Tweened.d.ts +0 -2
  29. package/lib/animation/index.cjs +1 -1
  30. package/lib/animation/index.js +3 -3
  31. package/lib/attribute/index.cjs +1 -1
  32. package/lib/attribute/index.js +31 -31
  33. package/lib/canvas/index.cjs +1 -1
  34. package/lib/canvas/index.js +3 -3
  35. package/lib/checkbox/index.cjs +1 -1
  36. package/lib/checkbox/index.js +3 -3
  37. package/lib/class-linked-status/index.cjs +1 -1
  38. package/lib/class-linked-status/index.js +1 -1
  39. package/lib/controls/index.cjs +1 -1
  40. package/lib/controls/index.js +3 -3
  41. package/lib/counter/index.d.ts +8 -0
  42. package/lib/{createStylesheet-DBCEbDjI.js → createStylesheet-CR_yi5tp.js} +1 -1
  43. package/lib/{createStylesheet-CqHU9_qv.cjs → createStylesheet-p23sZ7Ey.cjs} +1 -1
  44. package/lib/css-property/index.cjs +1 -1
  45. package/lib/css-property/index.d.ts +1 -0
  46. package/lib/css-property/index.js +36 -32
  47. package/lib/dev/index.cjs +1 -1
  48. package/lib/dev/index.js +1 -1
  49. package/lib/device/index.cjs +1 -1
  50. package/lib/device/index.js +1 -1
  51. package/lib/element-constructor/index.cjs +1 -1
  52. package/lib/element-constructor/index.js +114 -113
  53. package/lib/en3/core/En3Raycaster.d.ts +20 -0
  54. package/lib/en3/core/En3View.d.ts +1 -1
  55. package/lib/en3/core/en3.d.ts +5 -1
  56. package/lib/en3/helpers/En3Controls.d.ts +5 -0
  57. package/lib/en3/helpers/En3GridHelper.d.ts +8 -0
  58. package/lib/en3/helpers/En3Object3dManager.d.ts +12 -0
  59. package/lib/en3/helpers/En3OrbitControls.d.ts +8 -0
  60. package/lib/en3/helpers/En3TransformControls.d.ts +8 -0
  61. package/lib/en3/helpers/index.cjs +1 -0
  62. package/lib/en3/helpers/index.d.ts +2 -0
  63. package/lib/en3/helpers/index.js +1165 -0
  64. package/lib/en3/index.cjs +1 -213
  65. package/lib/en3/index.d.ts +1 -19
  66. package/lib/en3/index.js +4 -3305
  67. package/lib/en3/libs/index.d.ts +1 -0
  68. package/lib/en3/loaders/{en3GLTFLoader.d.ts → _En3GLTFLoader.d.ts} +2 -4
  69. package/lib/en3/loaders/_En3TextureLoader.d.ts +8 -0
  70. package/lib/en3/loaders/index.cjs +1 -0
  71. package/lib/en3/loaders/index.d.ts +3 -0
  72. package/lib/en3/loaders/index.js +1757 -0
  73. package/lib/en3/loaders/loaders.d.ts +13 -0
  74. package/lib/en3/misc/index.cjs +10 -0
  75. package/lib/en3/misc/index.d.ts +2 -0
  76. package/lib/en3/misc/index.js +115 -0
  77. package/lib/en3/objects/En3Clip.d.ts +1 -1
  78. package/lib/en3/objects/En3GLTF.d.ts +2 -1
  79. package/lib/en3/objects/En3ImageLike.d.ts +2 -1
  80. package/lib/en3/objects/En3SourceConsumer.d.ts +1 -1
  81. package/lib/en3/objects/fluid/index.d.ts +0 -3
  82. package/lib/en3/objects/index.d.ts +7 -0
  83. package/lib/en3/utils/index.cjs +1 -0
  84. package/lib/en3/utils/index.d.ts +5 -0
  85. package/lib/en3/utils/index.js +43 -0
  86. package/lib/en3-C4mzaF6q.cjs +8 -0
  87. package/lib/en3-hbkN1OPu.js +343 -0
  88. package/lib/globals-DMjysUXI.js +8 -0
  89. package/lib/globals-bYKki-b9.cjs +1 -0
  90. package/lib/image/index.cjs +1 -1
  91. package/lib/image/index.js +1 -1
  92. package/lib/{index-BN9X-l9M.js → index-BAH_fO2N.js} +3 -3
  93. package/lib/{index-BbgmbQ-5.cjs → index-D1LQUR-R.cjs} +1 -1
  94. package/lib/instantiate-D19Uvc31.js +125 -0
  95. package/lib/instantiate-Db5gGSYG.cjs +1 -0
  96. package/lib/jsx/ComponentElement.d.ts +18 -0
  97. package/lib/jsx/globals.d.ts +13 -0
  98. package/lib/jsx/h.d.ts +7 -0
  99. package/lib/jsx/hooks/basic/_createStore.d.ts +4 -0
  100. package/lib/jsx/hooks/basic/attachInternals.d.ts +1 -0
  101. package/lib/jsx/hooks/basic/attachShadow.d.ts +1 -0
  102. package/lib/jsx/hooks/basic/attachStylesheet.d.ts +3 -0
  103. package/lib/jsx/hooks/basic/createContext.d.ts +2 -0
  104. package/lib/jsx/hooks/basic/onConnect.d.ts +3 -0
  105. package/lib/jsx/hooks/basic/onDisconnect.d.ts +3 -0
  106. package/lib/jsx/hooks/onAnimationFrame.cjs +1 -0
  107. package/lib/jsx/hooks/onAnimationFrame.d.ts +6 -0
  108. package/lib/jsx/hooks/onAnimationFrame.js +22 -0
  109. package/lib/jsx/hooks/onElementResize.cjs +1 -0
  110. package/lib/jsx/hooks/onElementResize.d.ts +5 -0
  111. package/lib/jsx/hooks/onElementResize.js +11 -0
  112. package/lib/jsx/hooks/onIntersection.cjs +1 -0
  113. package/lib/jsx/hooks/onIntersection.d.ts +5 -0
  114. package/lib/jsx/hooks/onIntersection.js +11 -0
  115. package/lib/jsx/hooks/onWindowResize.cjs +1 -0
  116. package/lib/jsx/hooks/onWindowResize.d.ts +3 -0
  117. package/lib/jsx/hooks/onWindowResize.js +8 -0
  118. package/lib/jsx/hooks/store/createArrayStore.d.ts +3 -0
  119. package/lib/jsx/hooks/store/createComposed.d.ts +3 -0
  120. package/lib/jsx/hooks/store/createDerived.d.ts +3 -0
  121. package/lib/jsx/hooks/store/createDerivedArray.d.ts +3 -0
  122. package/lib/jsx/hooks/store/createDerivedComponent.d.ts +3 -0
  123. package/lib/jsx/hooks/store/createDerivedComponents.d.ts +3 -0
  124. package/lib/jsx/hooks/store/createResource.d.ts +3 -0
  125. package/lib/jsx/hooks/store/createStore.d.ts +3 -0
  126. package/lib/jsx/hooks/store/index.cjs +1 -0
  127. package/lib/jsx/hooks/store/index.d.ts +7 -0
  128. package/lib/jsx/hooks/store/index.js +49 -0
  129. package/lib/jsx/hooks/watchAttribute.cjs +1 -0
  130. package/lib/jsx/hooks/watchAttribute.d.ts +6 -0
  131. package/lib/jsx/hooks/watchAttribute.js +17 -0
  132. package/lib/jsx/hooks/watchCSSProperty.cjs +1 -0
  133. package/lib/jsx/hooks/watchCSSProperty.d.ts +7 -0
  134. package/lib/jsx/hooks/watchCSSProperty.js +17 -0
  135. package/lib/jsx/index.cjs +1 -0
  136. package/lib/jsx/index.d.ts +13 -0
  137. package/lib/jsx/index.js +91 -0
  138. package/lib/jsx/instantiate.d.ts +5 -0
  139. package/lib/jsx/register.d.ts +1 -0
  140. package/lib/jsx/render.d.ts +6 -0
  141. package/lib/jsx/type.d.ts +188 -0
  142. package/lib/ladder/index.cjs +1 -1
  143. package/lib/ladder/index.d.ts +2 -0
  144. package/lib/ladder/index.js +84 -66
  145. package/lib/layout-box/index.cjs +1 -1
  146. package/lib/layout-box/index.d.ts +9 -0
  147. package/lib/layout-box/index.js +190 -164
  148. package/lib/media/index.cjs +1 -1
  149. package/lib/media/index.js +1 -1
  150. package/lib/modal/index.cjs +1 -1
  151. package/lib/modal/index.js +7 -7
  152. package/lib/morph/Morph.d.ts +2 -2
  153. package/lib/morph/index.cjs +1 -1
  154. package/lib/morph/index.d.ts +1 -1
  155. package/lib/morph/index.js +135 -143
  156. package/lib/notifier/index.d.ts +2 -2
  157. package/lib/notifier/index.js +3 -1
  158. package/lib/onConnect-DGP866cj.cjs +1 -0
  159. package/lib/onConnect-y5DrxJ9P.js +7 -0
  160. package/lib/pointer/index.cjs +1 -1
  161. package/lib/pointer/index.js +2 -2
  162. package/lib/polyfills-CM4SCDTt.cjs +1 -0
  163. package/lib/polyfills-X6KXuHg-.js +33 -0
  164. package/lib/popover/index.cjs +1 -1
  165. package/lib/popover/index.js +2 -2
  166. package/lib/router/Router.d.ts +11 -3
  167. package/lib/router/index.cjs +1 -1
  168. package/lib/router/index.d.ts +1 -1
  169. package/lib/router/index.js +185 -165
  170. package/lib/scroll/ScrollElement.d.ts +2 -19
  171. package/lib/scroll/ScrollSection.d.ts +23 -0
  172. package/lib/scroll/index.cjs +1 -1
  173. package/lib/scroll/index.js +81 -77
  174. package/lib/select/index.cjs +1 -1
  175. package/lib/select/index.js +1 -1
  176. package/lib/sequence/index.cjs +1 -1
  177. package/lib/sequence/index.js +1 -1
  178. package/lib/source/index.cjs +1 -1
  179. package/lib/source/index.js +2 -2
  180. package/lib/store/ArrayStore.d.ts +21 -0
  181. package/lib/store/Store.d.ts +1 -7
  182. package/lib/store/index.cjs +1 -1
  183. package/lib/store/index.d.ts +2 -2
  184. package/lib/store/index.js +65 -139
  185. package/lib/tags-BqJKcIve.js +485 -0
  186. package/lib/tags-ld5jemJw.cjs +1 -0
  187. package/lib/theme/index.cjs +1 -1
  188. package/lib/theme/index.js +2 -2
  189. package/lib/tweaker/TweakerBooleanManagerElement.d.ts +1 -1
  190. package/lib/tweaker/TweakerColorManagerElement.d.ts +1 -1
  191. package/lib/tweaker/TweakerFolderElement.d.ts +2 -0
  192. package/lib/tweaker/TweakerLinkManagerElement.d.ts +1 -1
  193. package/lib/tweaker/TweakerNumberManagerElement.d.ts +4 -8
  194. package/lib/tweaker/TweakerSelectManagerElement.d.ts +1 -1
  195. package/lib/tweaker/TweakerStoreManagerElement.d.ts +7 -7
  196. package/lib/tweaker/TweakerStringManagerElement.d.ts +3 -5
  197. package/lib/tweaker/index.cjs +3 -3
  198. package/lib/tweaker/index.js +535 -412
  199. package/lib/tweaker/tweakerManagerConstructors.d.ts +2 -2
  200. package/lib/tweaker/tweakerStorage.d.ts +8 -1
  201. package/lib/url-C3dWnJQg.cjs +1 -0
  202. package/lib/url-DMNfW7uN.js +22 -0
  203. package/lib/utils/index.cjs +1 -1
  204. package/lib/utils/index.d.ts +1 -0
  205. package/lib/utils/index.js +39 -34
  206. package/lib/utils/number.d.ts +1 -0
  207. package/lib/utils/url.d.ts +9 -0
  208. package/lib/video/index.cjs +1 -1
  209. package/lib/video/index.js +1 -1
  210. package/package.json +107 -3
  211. package/lib/Animation-DDHjrbtL.cjs +0 -1
  212. package/lib/Animation-Dq_05jlR.js +0 -217
  213. package/lib/DRACOLoader-C2CFpMGS.cjs +0 -2
  214. package/lib/DRACOLoader-D2KY2dku.js +0 -241
  215. package/lib/Damped-l0mnlhar.cjs +0 -1
  216. package/lib/KTX2Loader-DdUl1XiY.cjs +0 -2
  217. package/lib/KTX2Loader-DqpAffDj.js +0 -536
  218. package/lib/Store-C-1ruEIm.cjs +0 -1
  219. package/lib/Tweened-CwDC2zl8.js +0 -51
  220. package/lib/Tweened-DIt9j9B-.cjs +0 -1
  221. package/lib/animation/AnimationLink.d.ts +0 -13
  222. package/lib/en3/loaders/en3TextureLoader.d.ts +0 -3
  223. package/lib/en3/test/En3HTML.d.ts +0 -10
  224. package/lib/polyfills-BA-CL_HF.js +0 -27
  225. package/lib/polyfills-DHs2SNbz.cjs +0 -1
  226. package/lib/store/CumulativeResource.d.ts +0 -13
  227. package/lib/tags-CMPg9ETZ.js +0 -848
  228. package/lib/tags-Djb6mb1o.cjs +0 -1
  229. package/lib/tweaker/TweakerRangeManagerElement.d.ts +0 -11
  230. /package/lib/en3/{loaders → core}/en3Cache.d.ts +0 -0
  231. /package/lib/{MeshoptDecoder-CMeN3oU0.cjs → en3/libs/index.cjs} +0 -0
  232. /package/lib/{MeshoptDecoder-6XfTpOG2.js → en3/libs/index.js} +0 -0
  233. /package/lib/en3/{test → misc}/En3ModifiedMaterial.d.ts +0 -0
  234. /package/lib/en3/{attachments → misc}/En3SourceManager.d.ts +0 -0
@@ -0,0 +1 @@
1
+ "use strict";var R=Object.defineProperty,k=Object.defineProperties;var T=Object.getOwnPropertyDescriptors;var S=Object.getOwnPropertySymbols;var _=Object.prototype.hasOwnProperty,w=Object.prototype.propertyIsEnumerable;var C=(s,i,t)=>i in s?R(s,i,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[i]=t,M=(s,i)=>{for(var t in i||(i={}))_.call(i,t)&&C(s,t,i[t]);if(S)for(var t of S(i))w.call(i,t)&&C(s,t,i[t]);return s},y=(s,i)=>k(s,T(i));var P=(s,i,t)=>{if(!i.has(s))throw TypeError("Cannot "+t)};var e=(s,i,t)=>(P(s,i,"read from private field"),t?t.call(s):i.get(s)),a=(s,i,t)=>{if(i.has(s))throw TypeError("Cannot add the same private member more than once");i instanceof WeakSet?i.add(s):i.set(s,t)},h=(s,i,t,n)=>(P(s,i,"write to private field"),n?n.call(s,t):i.set(s,t),t);var I=(s,i,t)=>(P(s,i,"access private method"),t);const z=require("./Store-6s0YXK4o.cjs"),D=require("./math-GDWEqu7y.cjs"),g=require("./polyfills-CM4SCDTt.cjs"),N=require("./ticker/index.cjs"),E=require("./order/index.cjs");var d,f,A,c,b,r,u,l,m,F,q,O,x;class K extends z.Store{constructor(t,n){super(t||0,n);a(this,q);a(this,d,void 0);a(this,f,E.TICK_ORDER.ANIMATION);a(this,A,void 0);a(this,c,new z.Store(!1));a(this,b,0);a(this,r,0);a(this,u,-1/0);a(this,l,1/0);a(this,m,0);a(this,F,null);a(this,x,t=>{this.handleAnimationFrame(t)});h(this,r,this.current)}get direction(){return e(this,b)}get target(){return e(this,r)}get min(){return e(this,u)}set min(t){h(this,u,t),this.set(e(this,r),{equalize:!0})}get max(){return e(this,l)}set max(t){h(this,l,t),this.set(e(this,r),{equalize:!0})}get from(){return e(this,m)}get isRunning(){return e(this,c)}get delta(){return Math.abs(e(this,r)-e(this,m))}get deltaProgress(){return this.delta?g.preciseNumber(Math.abs(this.current-e(this,m))/this.delta,6):0}get distance(){return Math.abs(e(this,l)-e(this,u))}get distanceProgress(){return this.distance?g.preciseNumber(Math.abs(this.current-e(this,u))/this.distance,6):0}get entry(){return y(M({},super.entry),{from:e(this,m),delta:this.delta,distance:this.distance,direction:this.direction,deltaProgress:this.deltaProgress,distanceProgress:this.distanceProgress})}set(t,n){(e(this,r)!==t||n!=null&&n.restart)&&(h(this,F,t),this.updateOptions(n),h(this,F,null),e(this,r)!==this.current&&this.start())}shift(t,n){this.set(e(this,r)+t,n)}reset(){super.reset(),this.set(this.initial,{equalize:!0})}close(){super.close(),this.reset(),this.unlistenAnimationFrame()}listenAnimationFrame(){e(this,c).current||(e(this,c).current=!0,N.ticker.subscribe(e(this,x),{maxFPS:e(this,d),order:e(this,f),culling:e(this,A)}))}unlistenAnimationFrame(){e(this,c).current&&(e(this,c).current=!1,N.ticker.unsubscribe(e(this,x)))}updateOptions(t){h(this,d,g.nullishCoalescing(t==null?void 0:t.maxFPS,e(this,d))),h(this,f,g.nullishCoalescing(t==null?void 0:t.order,e(this,f))),h(this,A,g.nullishCoalescing(t==null?void 0:t.culling,e(this,A))),h(this,u,g.nullishCoalescing(t==null?void 0:t.min,e(this,u))),h(this,l,g.nullishCoalescing(t==null?void 0:t.max,e(this,l))),I(this,q,O).call(this,e(this,F)||e(this,r)),t!=null&&t.equalize&&(this.unlistenAnimationFrame(),this.current=e(this,r)),t!=null&&t.restart&&(this.unlistenAnimationFrame(),this.current=this.initial)}start(){this.listenAnimationFrame()}}d=new WeakMap,f=new WeakMap,A=new WeakMap,c=new WeakMap,b=new WeakMap,r=new WeakMap,u=new WeakMap,l=new WeakMap,m=new WeakMap,F=new WeakMap,q=new WeakSet,O=function(t){h(this,b,Math.sign(t-e(this,r))),h(this,r,D.clamp(t,e(this,u),e(this,l))),h(this,m,this.current)},x=new WeakMap;exports.Animation=K;
@@ -0,0 +1,132 @@
1
+ var C = Object.defineProperty, k = Object.defineProperties;
2
+ var w = Object.getOwnPropertyDescriptors;
3
+ var S = Object.getOwnPropertySymbols;
4
+ var D = Object.prototype.hasOwnProperty, E = Object.prototype.propertyIsEnumerable;
5
+ var I = (r, i, t) => i in r ? C(r, i, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[i] = t, q = (r, i) => {
6
+ for (var t in i || (i = {}))
7
+ D.call(i, t) && I(r, t, i[t]);
8
+ if (S)
9
+ for (var t of S(i))
10
+ E.call(i, t) && I(r, t, i[t]);
11
+ return r;
12
+ }, y = (r, i) => k(r, w(i));
13
+ var M = (r, i, t) => {
14
+ if (!i.has(r))
15
+ throw TypeError("Cannot " + t);
16
+ };
17
+ var e = (r, i, t) => (M(r, i, "read from private field"), t ? t.call(r) : i.get(r)), a = (r, i, t) => {
18
+ if (i.has(r))
19
+ throw TypeError("Cannot add the same private member more than once");
20
+ i instanceof WeakSet ? i.add(r) : i.set(r, t);
21
+ }, h = (r, i, t, n) => (M(r, i, "write to private field"), n ? n.call(r, t) : i.set(r, t), t);
22
+ var z = (r, i, t) => (M(r, i, "access private method"), t);
23
+ import { S as O } from "./Store-BI2xxXOA.js";
24
+ import { c as K } from "./math-BOBiC4TN.js";
25
+ import { p as R, n as F } from "./polyfills-X6KXuHg-.js";
26
+ import { ticker as N } from "./ticker/index.js";
27
+ import { TICK_ORDER as L } from "./order/index.js";
28
+ var d, g, f, l, b, s, u, m, c, A, P, T, x;
29
+ class J extends O {
30
+ constructor(t, n) {
31
+ super(t || 0, n);
32
+ a(this, P);
33
+ a(this, d, void 0);
34
+ a(this, g, L.ANIMATION);
35
+ a(this, f, void 0);
36
+ a(this, l, new O(!1));
37
+ a(this, b, 0);
38
+ a(this, s, 0);
39
+ a(this, u, -1 / 0);
40
+ a(this, m, 1 / 0);
41
+ a(this, c, 0);
42
+ a(this, A, null);
43
+ a(this, x, (t) => {
44
+ this.handleAnimationFrame(t);
45
+ });
46
+ h(this, s, this.current);
47
+ }
48
+ get direction() {
49
+ return e(this, b);
50
+ }
51
+ get target() {
52
+ return e(this, s);
53
+ }
54
+ get min() {
55
+ return e(this, u);
56
+ }
57
+ set min(t) {
58
+ h(this, u, t), this.set(e(this, s), {
59
+ equalize: !0
60
+ });
61
+ }
62
+ get max() {
63
+ return e(this, m);
64
+ }
65
+ set max(t) {
66
+ h(this, m, t), this.set(e(this, s), {
67
+ equalize: !0
68
+ });
69
+ }
70
+ get from() {
71
+ return e(this, c);
72
+ }
73
+ get isRunning() {
74
+ return e(this, l);
75
+ }
76
+ get delta() {
77
+ return Math.abs(e(this, s) - e(this, c));
78
+ }
79
+ get deltaProgress() {
80
+ return this.delta ? R(Math.abs(this.current - e(this, c)) / this.delta, 6) : 0;
81
+ }
82
+ get distance() {
83
+ return Math.abs(e(this, m) - e(this, u));
84
+ }
85
+ get distanceProgress() {
86
+ return this.distance ? R(Math.abs(this.current - e(this, u)) / this.distance, 6) : 0;
87
+ }
88
+ get entry() {
89
+ return y(q({}, super.entry), {
90
+ from: e(this, c),
91
+ delta: this.delta,
92
+ distance: this.distance,
93
+ direction: this.direction,
94
+ deltaProgress: this.deltaProgress,
95
+ distanceProgress: this.distanceProgress
96
+ });
97
+ }
98
+ set(t, n) {
99
+ (e(this, s) !== t || n != null && n.restart) && (h(this, A, t), this.updateOptions(n), h(this, A, null), e(this, s) !== this.current && this.start());
100
+ }
101
+ shift(t, n) {
102
+ this.set(e(this, s) + t, n);
103
+ }
104
+ reset() {
105
+ super.reset(), this.set(this.initial, { equalize: !0 });
106
+ }
107
+ close() {
108
+ super.close(), this.reset(), this.unlistenAnimationFrame();
109
+ }
110
+ listenAnimationFrame() {
111
+ e(this, l).current || (e(this, l).current = !0, N.subscribe(e(this, x), {
112
+ maxFPS: e(this, d),
113
+ order: e(this, g),
114
+ culling: e(this, f)
115
+ }));
116
+ }
117
+ unlistenAnimationFrame() {
118
+ e(this, l).current && (e(this, l).current = !1, N.unsubscribe(e(this, x)));
119
+ }
120
+ updateOptions(t) {
121
+ h(this, d, F(t == null ? void 0 : t.maxFPS, e(this, d))), h(this, g, F(t == null ? void 0 : t.order, e(this, g))), h(this, f, F(t == null ? void 0 : t.culling, e(this, f))), h(this, u, F(t == null ? void 0 : t.min, e(this, u))), h(this, m, F(t == null ? void 0 : t.max, e(this, m))), z(this, P, T).call(this, e(this, A) || e(this, s)), t != null && t.equalize && (this.unlistenAnimationFrame(), this.current = e(this, s)), t != null && t.restart && (this.unlistenAnimationFrame(), this.current = this.initial);
122
+ }
123
+ start() {
124
+ this.listenAnimationFrame();
125
+ }
126
+ }
127
+ d = new WeakMap(), g = new WeakMap(), f = new WeakMap(), l = new WeakMap(), b = new WeakMap(), s = new WeakMap(), u = new WeakMap(), m = new WeakMap(), c = new WeakMap(), A = new WeakMap(), P = new WeakSet(), T = function(t) {
128
+ h(this, b, Math.sign(t - e(this, s))), h(this, s, K(t, e(this, u), e(this, m))), h(this, c, this.current);
129
+ }, x = new WeakMap();
130
+ export {
131
+ J as A
132
+ };
@@ -0,0 +1,35 @@
1
+ var n = (s, r, o) => {
2
+ if (!r.has(s))
3
+ throw TypeError("Cannot " + o);
4
+ };
5
+ var t = (s, r, o) => (n(s, r, "read from private field"), o ? o.call(s) : r.get(s)), c = (s, r, o) => {
6
+ if (r.has(s))
7
+ throw TypeError("Cannot add the same private member more than once");
8
+ r instanceof WeakSet ? r.add(s) : r.set(s, o);
9
+ };
10
+ import { d as h } from "./function-C10DGppn.js";
11
+ import { S as b } from "./Store-BI2xxXOA.js";
12
+ var e;
13
+ class f extends b {
14
+ constructor(o, u, p) {
15
+ super(null, p);
16
+ c(this, e, []);
17
+ const a = h(() => {
18
+ this.current = u();
19
+ }, 0);
20
+ o.forEach((i) => {
21
+ t(this, e).push(
22
+ i.subscribe(() => {
23
+ a();
24
+ })
25
+ );
26
+ });
27
+ }
28
+ close() {
29
+ super.close(), t(this, e).forEach((o) => o());
30
+ }
31
+ }
32
+ e = new WeakMap();
33
+ export {
34
+ f as C
35
+ };
@@ -0,0 +1 @@
1
+ "use strict";var p=(s,e,r)=>{if(!e.has(s))throw TypeError("Cannot "+r)};var c=(s,e,r)=>(p(s,e,"read from private field"),r?r.call(s):e.get(s)),t=(s,e,r)=>{if(e.has(s))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(s):e.set(s,r)};const b=require("./function-MthRj-GJ.cjs"),d=require("./Store-6s0YXK4o.cjs");var o;class l extends d.Store{constructor(r,u,n){super(null,n);t(this,o,[]);const i=b.debounce(()=>{this.current=u()},0);r.forEach(h=>{c(this,o).push(h.subscribe(()=>{i()}))})}close(){super.close(),c(this,o).forEach(r=>r())}}o=new WeakMap;exports.Composed=l;
@@ -20,8 +20,8 @@ var r = (e, s, t) => (p(e, s, "read from private field"), t ? t.call(e) : s.get(
20
20
  s instanceof WeakSet ? s.add(e) : s.set(e, t);
21
21
  }, n = (e, s, t, a) => (p(e, s, "write to private field"), a ? a.call(e, t) : s.set(e, t), t);
22
22
  import { d as B } from "./math-BOBiC4TN.js";
23
- import { n as f, p as y } from "./polyfills-BA-CL_HF.js";
24
- import { A as D } from "./Animation-Dq_05jlR.js";
23
+ import { n as f, p as y } from "./polyfills-X6KXuHg-.js";
24
+ import { A as D } from "./Animation-CELiTw3n.js";
25
25
  var i, h;
26
26
  class N extends D {
27
27
  constructor(t, a) {
@@ -45,9 +45,6 @@ class N extends D {
45
45
  updateOptions(t) {
46
46
  this.damping = f(t == null ? void 0 : t.damping, this.damping), this.mass = f(t == null ? void 0 : t.mass, this.mass), this.stiffness = f(t == null ? void 0 : t.stiffness, this.stiffness), super.updateOptions(t);
47
47
  }
48
- updateManually(t) {
49
- this.setTarget(t), this.current = this.target;
50
- }
51
48
  handleAnimationFrame(t) {
52
49
  y(this.current, 4) === y(this.target, 4) && (this.unlistenAnimationFrame(), this.current = this.target);
53
50
  const a = this.current, A = Math.abs(a - this.target);
@@ -0,0 +1 @@
1
+ "use strict";var A=Object.defineProperty,F=Object.defineProperties;var b=Object.getOwnPropertyDescriptors;var g=Object.getOwnPropertySymbols;var v=Object.prototype.hasOwnProperty,C=Object.prototype.propertyIsEnumerable;var f=(e,s,t)=>s in e?A(e,s,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[s]=t,m=(e,s)=>{for(var t in s||(s={}))v.call(s,t)&&f(e,t,s[t]);if(g)for(var t of g(s))C.call(s,t)&&f(e,t,s[t]);return e},l=(e,s)=>F(e,b(s));var p=(e,s,t)=>{if(!s.has(e))throw TypeError("Cannot "+t)};var r=(e,s,t)=>(p(e,s,"read from private field"),t?t.call(e):s.get(e)),d=(e,s,t)=>{if(s.has(e))throw TypeError("Cannot add the same private member more than once");s instanceof WeakSet?s.add(e):s.set(e,t)},n=(e,s,t,h)=>(p(e,s,"write to private field"),h?h.call(e,t):s.set(e,t),t);const O=require("./math-GDWEqu7y.cjs"),u=require("./polyfills-CM4SCDTt.cjs"),w=require("./Animation-6Na1MCtM.cjs");var i,a;class B extends w.Animation{constructor(t,h){super(t,h);d(this,i,void 0);d(this,a,void 0);this.damping=20,this.stiffness=0,this.mass=0,n(this,i,0),n(this,a,0),this.updateOptions(l(m({},h),{equalize:!0}))}get velocity(){return r(this,i)}get speed(){return r(this,a)}get entry(){return l(m({},super.entry),{velocity:r(this,i),speed:r(this,a)})}updateOptions(t){this.damping=u.nullishCoalescing(t==null?void 0:t.damping,this.damping),this.mass=u.nullishCoalescing(t==null?void 0:t.mass,this.mass),this.stiffness=u.nullishCoalescing(t==null?void 0:t.stiffness,this.stiffness),super.updateOptions(t)}handleAnimationFrame(t){u.preciseNumber(this.current,4)===u.preciseNumber(this.target,4)&&(this.unlistenAnimationFrame(),this.current=this.target);const h=this.current,y=Math.abs(h-this.target);n(this,a,y/t.timeBetweenFrames);const c=t.timeBetweenFrames/1e3;if(this.mass||this.stiffness){const q=(this.target-this.current)*this.stiffness-r(this,i)*this.damping;n(this,i,r(this,i)+q/this.mass*c),this.current+=r(this,i)*c}else this.current=O.damp(this.current,this.target,this.damping,c)}}i=new WeakMap,a=new WeakMap;exports.Damped=B;
@@ -7,7 +7,7 @@ var o = (s, r, e) => (u(s, r, "read from private field"), e ? e.call(s) : r.get(
7
7
  throw TypeError("Cannot add the same private member more than once");
8
8
  r instanceof WeakSet ? r.add(s) : r.set(s, e);
9
9
  }, n = (s, r, e, c) => (u(s, r, "write to private field"), c ? c.call(s, e) : r.set(s, e), e);
10
- import { S as p } from "./Store-BQXXikps.js";
10
+ import { S as p } from "./Store-BI2xxXOA.js";
11
11
  var t;
12
12
  class d extends p {
13
13
  constructor(e, c, l) {
@@ -1 +1 @@
1
- "use strict";var u=(e,r,s)=>{if(!r.has(e))throw TypeError("Cannot "+s)};var i=(e,r,s)=>(u(e,r,"read from private field"),s?s.call(e):r.get(e)),n=(e,r,s)=>{if(r.has(e))throw TypeError("Cannot add the same private member more than once");r instanceof WeakSet?r.add(e):r.set(e,s)},o=(e,r,s,c)=>(u(e,r,"write to private field"),c?c.call(e,s):r.set(e,s),s);const d=require("./Store-C-1ruEIm.cjs");var t;class h extends d.Store{constructor(s,c,l){super(null,l);n(this,t,void 0);o(this,t,s.subscribe(b=>{this.current=c(b.current)}))}close(){super.close(),i(this,t).call(this)}}t=new WeakMap;exports.Derived=h;
1
+ "use strict";var u=(e,r,s)=>{if(!r.has(e))throw TypeError("Cannot "+s)};var i=(e,r,s)=>(u(e,r,"read from private field"),s?s.call(e):r.get(e)),n=(e,r,s)=>{if(r.has(e))throw TypeError("Cannot add the same private member more than once");r instanceof WeakSet?r.add(e):r.set(e,s)},o=(e,r,s,c)=>(u(e,r,"write to private field"),c?c.call(e,s):r.set(e,s),s);const d=require("./Store-6s0YXK4o.cjs");var t;class h extends d.Store{constructor(s,c,l){super(null,l);n(this,t,void 0);o(this,t,s.subscribe(b=>{this.current=c(b.current)}))}close(){super.close(),i(this,t).call(this)}}t=new WeakMap;exports.Derived=h;
@@ -0,0 +1 @@
1
+ "use strict";var Z=(f,e,t)=>{if(!e.has(f))throw TypeError("Cannot "+t)};var i=(f,e,t)=>(Z(f,e,"read from private field"),t?t.call(f):e.get(f)),c=(f,e,t)=>{if(e.has(f))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(f):e.set(f,t)},S=(f,e,t,s)=>(Z(f,e,"write to private field"),s?s.call(f,t):e.set(f,t),t);var r=(f,e,t)=>(Z(f,e,"access private method"),t);const b=require("./Store-6s0YXK4o.cjs"),he=require("./browser-CpzFX2xg.cjs"),de=require("./object-CCiXnER2.cjs"),_=require("./string-DhgS_iFl.cjs"),we=require("./connector/index.cjs"),Le=new Set(["animate","animateMotion","animateTransform","circle","clipPath","defs","desc","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","foreignObject","g","image","line","linearGradient","listener","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialGradient","rect","set","solidColor","stop","svg","switch","symbol","text","textPath","title","tspan","view"]);var o,E,l,w,d,u,P,ue,B,me,R,ge,L,j,T,ee,G,Ee,W,Se,$,be,z,Ce,v,te,A,se,I,ye,k,ie,M,ne,J,pe,D,oe,N,F,x,re,q,ce,H,ae,V,K;const U=class U{constructor(...e){c(this,P);c(this,B);c(this,R);c(this,L);c(this,T);c(this,G);c(this,W);c(this,$);c(this,z);c(this,v);c(this,A);c(this,I);c(this,k);c(this,M);c(this,J);c(this,D);c(this,N);c(this,x);c(this,q);c(this,H);c(this,o,null);c(this,E,new Set);c(this,l,new Set);c(this,w,void 0);c(this,d,void 0);c(this,u,void 0);c(this,V,()=>{i(this,E).forEach(e=>{e()}),i(this,E).clear()});c(this,K,e=>{i(this,l).forEach(t=>{t(e)}),i(this,l).clear(),r(this,M,ne).call(this)});if(he.isBrowser){const t=e[0],s=e[1];S(this,o,r(this,P,ue).call(this,t,s==null?void 0:s.forceSvg)),r(this,R,ge).call(this,s)}}get node(){return i(this,o)}set node(e){var t;r(this,M,ne).call(this),S(this,o,e),(t=i(this,w))==null||t.call(this),i(this,o)instanceof Element&&S(this,d,[...i(this,o).querySelectorAll("store-root")]),r(this,k,ie).call(this),r(this,L,j).call(this)}};o=new WeakMap,E=new WeakMap,l=new WeakMap,w=new WeakMap,d=new WeakMap,u=new WeakMap,P=new WeakSet,ue=function(e,t){let s=null;if(e instanceof Node)s=e;else if(typeof e=="string")if(!e.includes("<")&&e.includes("-"))s=new(customElements.get(e));else if(e.includes("<")){const n=document.createElement("div");n.innerHTML=e,s=n.firstElementChild}else Le.has(e)||t?s=document.createElementNS("http://www.w3.org/2000/svg",e):s=document.createElement(e);else s=document.createElement("div");return s},B=new WeakSet,me=function(e){return e instanceof HTMLElement||e instanceof SVGElement},R=new WeakSet,ge=function(e){if(!e)return;const t=r(this,B,me).call(this,i(this,o)),s=e.ref;delete e.ref,e!=null&&e.onConnect&&(i(this,E).add(e.onConnect),delete e.onConnect),e!=null&&e.onDisconnect&&(i(this,l).add(e.onDisconnect),delete e.onDisconnect);let n,a;for(const h in e){const m=e[h];h==="class"&&t?r(this,T,ee).call(this,m):h==="style"&&t?r(this,$,be).call(this,m):h==="lightChildren"?r(this,N,F).call(this,i(this,o),m):h==="children"?r(this,N,F).call(this,i(this,o)instanceof Element?i(this,o).shadowRoot||i(this,o):i(this,o),m):h.startsWith("on")?(a||(a={}),a[h]=m):(n||(n={}),n[h]=m)}r(this,J,pe).call(this,n),r(this,I,ye).call(this,a),s&&(typeof s=="function"?s(i(this,o)):s.current=i(this,o)),r(this,L,j).call(this)},L=new WeakSet,j=function(){if(he.isBrowser&&(i(this,l).size||i(this,E).size)){const e=i(this,o)instanceof DocumentFragment?i(this,o).firstChild:i(this,o);S(this,w,we.connector.subscribe(e,{connectCallback:i(this,V),disconnectCallback:i(this,K),unsubscribeAfterDisconnect:!0,maxWaitSec:20}))}},T=new WeakSet,ee=function(e){if(e){if(typeof e=="string")i(this,o).classList.add(e);else if(Array.isArray(e))e.forEach(t=>{r(this,T,ee).call(this,t)});else if(typeof e=="object")if(e instanceof b.Store)r(this,G,Ee).call(this,e);else for(const t in e){const s=e[t];s instanceof b.Store?r(this,W,Se).call(this,t,s):s?i(this,o).classList.add(t):i(this,o).classList.remove(t)}}else return},G=new WeakSet,Ee=function(e){i(this,l).add(e.subscribe(({current:t,previous:s})=>{s&&[s].flat().forEach(n=>{n&&i(this,o).classList.remove(n)}),t&&[t].flat().forEach(n=>{n&&i(this,o).classList.add(n)})}))},W=new WeakSet,Se=function(e,t){i(this,l).add(t.subscribe(({current:s})=>{s?i(this,o).classList.add(e):i(this,o).classList.remove(e)}))},$=new WeakSet,be=function(e){if(!e)return;i(this,o).tagName==="style"||i(this,o).tagName==="STYLE"?r(this,v,te).call(this,e):r(this,z,Ce).call(this,e)},z=new WeakSet,Ce=function(e){for(const t in e){const s=t,n=e[s];n instanceof b.Store?i(this,l).add(n.subscribe(({current:a})=>{r(this,A,se).call(this,s,a)})):r(this,A,se).call(this,s,n)}},v=new WeakSet,te=function(e){for(const t in e){const s=e[t];if(typeof s=="object"&&!(s instanceof b.Store))i(this,o).appendChild(document.createTextNode(`${t} {`)),r(this,v,te).call(this,s),i(this,o).appendChild(document.createTextNode("}"));else if(s instanceof b.Store){const n=document.createTextNode("");i(this,l).add(s.subscribe(a=>{a.current?n.nodeValue=`${_.camelToKebab(t)}: ${a.current};`:n.nodeValue=""})),i(this,o).appendChild(n)}else i(this,o).appendChild(document.createTextNode(`${_.camelToKebab(t)}: ${s};`))}},A=new WeakSet,se=function(e,t){e.includes("--")?t?i(this,o).style.setProperty(e,t):i(this,o).style.removeProperty(e):t?i(this,o).style[e]=t:i(this,o).style[e]=""},I=new WeakSet,ye=function(e){if(e){i(this,u)||S(this,u,[]);for(const t in e){const s=t,n=_.uncapitalize(s.split("on").slice(1).join("on")),a=e[s];typeof a=="object"?i(this,u).push({name:n,callback:a.callback,options:a.options}):typeof a=="function"&&i(this,u).push({name:n,callback:a})}r(this,k,ie).call(this)}},k=new WeakSet,ie=function(){var e;(e=i(this,u))==null||e.forEach(t=>{i(this,o).addEventListener(t.name,t.callback,t.options)})},M=new WeakSet,ne=function(){var e;(e=i(this,u))==null||e.forEach(t=>{i(this,o).removeEventListener(t.name,t.callback,t.options)})},J=new WeakSet,pe=function(e){for(const t in e){const s=e[t];s instanceof b.Store?i(this,l).add(s.subscribe(({current:n})=>{r(this,D,oe).call(this,t,n)})):r(this,D,oe).call(this,t,s)}},D=new WeakSet,oe=function(e,t){var n,a;const s=i(this,o);e in s&&!((a=(n=s.constructor)==null?void 0:n.observedAttributes)!=null&&a.includes(e))?t!=null&&(s[e]=t.toString()):t!=null&&s.setAttribute(e,t.toString())},N=new WeakSet,F=function(e,t){t&&(t=[t].flat(),t.forEach(s=>{if(s instanceof b.Store){const n=document.createElement("div");n.style.display="contents",e.appendChild(n),i(this,d)||S(this,d,[]);const a=i(this,d).length;n.setAttribute("store-root",""),i(this,d).push(n),i(this,l).add(s.subscribe(({current:h,previous:m})=>{const C=i(this,d)[a];C.dispatchEvent(new CustomEvent("beforeChildrenChange",{bubbles:!0,composed:!0}));const Y=Array.from(C.childNodes),fe=[h].flat(),Ne=[m].flat(),le=[],Q=[];Ne.forEach((g,y)=>{!fe.includes(g)&&Y[y]?le.push(Y[y]):Q.push(g)}),fe.forEach((g,y)=>{if(Q[y]){if(g!==Q[y]){const p=r(this,q,ce).call(this,g),X=Y[y];p instanceof Node?X.isEqualNode(p)||C.replaceChild(p,X):C.removeChild(X)}}else{const p=r(this,q,ce).call(this,g);p instanceof Node&&n.appendChild(p)}}),le.forEach(g=>{C.removeChild(g)}),C.dispatchEvent(new CustomEvent("afterChildrenChange",{bubbles:!0,composed:!0}))}))}else if(s instanceof U)r(this,x,re).call(this,e,s.node);else if(s instanceof Function)r(this,N,F).call(this,e,de.isESClass(s)?new s:s());else{const n=r(this,H,ae).call(this,s);n instanceof Node&&r(this,x,re).call(this,e,n)}}))},x=new WeakSet,re=function(e,t){!(e instanceof ShadowRoot)&&t instanceof HTMLElement&&t.tagName==="STYLE"?(i(this,E).add(()=>{[...document.head.querySelectorAll("style")].find(n=>n.outerHTML===t.outerHTML)||document.head.appendChild(t)}),i(this,l).add(()=>{t.remove()})):e.appendChild(t)},q=new WeakSet,ce=function(e){return e instanceof U?e.node:typeof e=="function"?de.isESClass(e)?new e:e():r(this,H,ae).call(this,e)},H=new WeakSet,ae=function(e){if(e instanceof Node)return e;if(e!=null){const t=String(e);if(t.trim().startsWith("<")&&t.trim().endsWith(">")){const s=document.createElement("div");return s.innerHTML=t,s.firstElementChild}else return document.createTextNode(t)}else return},V=new WeakMap,K=new WeakMap;let O=U;exports.ElementConstructor=O;
@@ -0,0 +1,366 @@
1
+ var Z = (f, e, t) => {
2
+ if (!e.has(f))
3
+ throw TypeError("Cannot " + t);
4
+ };
5
+ var i = (f, e, t) => (Z(f, e, "read from private field"), t ? t.call(f) : e.get(f)), c = (f, e, t) => {
6
+ if (e.has(f))
7
+ throw TypeError("Cannot add the same private member more than once");
8
+ e instanceof WeakSet ? e.add(f) : e.set(f, t);
9
+ }, p = (f, e, t, s) => (Z(f, e, "write to private field"), s ? s.call(f, t) : e.set(f, t), t);
10
+ var a = (f, e, t) => (Z(f, e, "access private method"), t);
11
+ import { S as C } from "./Store-BI2xxXOA.js";
12
+ import { i as fe } from "./browser-0zX67oeU.js";
13
+ import { i as le } from "./object-D6MVWB4l.js";
14
+ import { c as he, u as we } from "./string-f0Dnk0L1.js";
15
+ import { connector as Le } from "./connector/index.js";
16
+ const Te = /* @__PURE__ */ new Set([
17
+ // 'a', 'style', 'title', 'script',
18
+ "animate",
19
+ "animateMotion",
20
+ "animateTransform",
21
+ "circle",
22
+ "clipPath",
23
+ "defs",
24
+ "desc",
25
+ "ellipse",
26
+ "feBlend",
27
+ "feColorMatrix",
28
+ "feComponentTransfer",
29
+ "feComposite",
30
+ "feConvolveMatrix",
31
+ "feDiffuseLighting",
32
+ "feDisplacementMap",
33
+ "feDistantLight",
34
+ "feDropShadow",
35
+ "feFlood",
36
+ "feFuncA",
37
+ "feFuncB",
38
+ "feFuncG",
39
+ "feFuncR",
40
+ "feGaussianBlur",
41
+ "feImage",
42
+ "feMerge",
43
+ "feMergeNode",
44
+ "feMorphology",
45
+ "feOffset",
46
+ "fePointLight",
47
+ "feSpecularLighting",
48
+ "feSpotLight",
49
+ "feTile",
50
+ "feTurbulence",
51
+ "filter",
52
+ "foreignObject",
53
+ "g",
54
+ "image",
55
+ "line",
56
+ "linearGradient",
57
+ "listener",
58
+ "marker",
59
+ "mask",
60
+ "metadata",
61
+ "mpath",
62
+ "path",
63
+ "pattern",
64
+ "polygon",
65
+ "polyline",
66
+ "radialGradient",
67
+ "rect",
68
+ "set",
69
+ "solidColor",
70
+ "stop",
71
+ "svg",
72
+ "switch",
73
+ "symbol",
74
+ "text",
75
+ "textPath",
76
+ "title",
77
+ "tspan",
78
+ "view"
79
+ ]);
80
+ var o, E, l, w, d, m, R, me, B, ue, G, ge, L, _, T, O, W, Ee, $, pe, q, Ce, z, ye, v, j, A, ee, I, be, k, te, M, se, J, Se, D, ie, N, P, x, ne, H, oe, F, ae, V, U;
81
+ const Y = class Y {
82
+ constructor(...e) {
83
+ c(this, R);
84
+ c(this, B);
85
+ c(this, G);
86
+ c(this, L);
87
+ c(this, T);
88
+ c(this, W);
89
+ c(this, $);
90
+ c(this, q);
91
+ c(this, z);
92
+ c(this, v);
93
+ c(this, A);
94
+ c(this, I);
95
+ c(this, k);
96
+ c(this, M);
97
+ c(this, J);
98
+ c(this, D);
99
+ c(this, N);
100
+ c(this, x);
101
+ c(this, H);
102
+ c(this, F);
103
+ c(this, o, null);
104
+ c(this, E, /* @__PURE__ */ new Set());
105
+ c(this, l, /* @__PURE__ */ new Set());
106
+ c(this, w, void 0);
107
+ c(this, d, void 0);
108
+ c(this, m, void 0);
109
+ c(this, V, () => {
110
+ i(this, E).forEach((e) => {
111
+ e();
112
+ }), i(this, E).clear();
113
+ });
114
+ c(this, U, (e) => {
115
+ i(this, l).forEach((t) => {
116
+ t(e);
117
+ }), i(this, l).clear(), a(this, M, se).call(this);
118
+ });
119
+ if (fe) {
120
+ const t = e[0], s = e[1];
121
+ p(this, o, a(this, R, me).call(this, t, s == null ? void 0 : s.forceSvg)), a(this, G, ge).call(this, s);
122
+ }
123
+ }
124
+ get node() {
125
+ return i(this, o);
126
+ }
127
+ set node(e) {
128
+ var t;
129
+ a(this, M, se).call(this), p(this, o, e), (t = i(this, w)) == null || t.call(this), i(this, o) instanceof Element && p(this, d, [
130
+ ...i(this, o).querySelectorAll("store-root")
131
+ ]), a(this, k, te).call(this), a(this, L, _).call(this);
132
+ }
133
+ };
134
+ o = new WeakMap(), E = new WeakMap(), l = new WeakMap(), w = new WeakMap(), d = new WeakMap(), m = new WeakMap(), R = new WeakSet(), me = function(e, t) {
135
+ let s = null;
136
+ if (e instanceof Node)
137
+ s = e;
138
+ else if (typeof e == "string")
139
+ if (!e.includes("<") && e.includes("-"))
140
+ s = new (customElements.get(e))();
141
+ else if (e.includes("<")) {
142
+ const n = document.createElement("div");
143
+ n.innerHTML = e, s = n.firstElementChild;
144
+ } else
145
+ Te.has(e) || t ? s = document.createElementNS(
146
+ "http://www.w3.org/2000/svg",
147
+ e
148
+ ) : s = document.createElement(e);
149
+ else
150
+ s = document.createElement("div");
151
+ return s;
152
+ }, B = new WeakSet(), ue = function(e) {
153
+ return e instanceof HTMLElement || e instanceof SVGElement;
154
+ }, G = new WeakSet(), ge = function(e) {
155
+ if (!e)
156
+ return;
157
+ const t = a(this, B, ue).call(this, i(this, o)), s = e.ref;
158
+ delete e.ref, e != null && e.onConnect && (i(this, E).add(e.onConnect), delete e.onConnect), e != null && e.onDisconnect && (i(this, l).add(e.onDisconnect), delete e.onDisconnect);
159
+ let n, r;
160
+ for (const h in e) {
161
+ const u = e[h];
162
+ h === "class" && t ? a(this, T, O).call(this, u) : h === "style" && t ? a(this, q, Ce).call(this, u) : h === "lightChildren" ? a(this, N, P).call(this, i(this, o), u) : h === "children" ? a(this, N, P).call(this, i(this, o) instanceof Element ? i(this, o).shadowRoot || i(this, o) : i(this, o), u) : h.startsWith("on") ? (r || (r = {}), r[h] = u) : (n || (n = {}), n[h] = u);
163
+ }
164
+ a(this, J, Se).call(this, n), a(this, I, be).call(this, r), s && (typeof s == "function" ? s(i(this, o)) : s.current = i(this, o)), a(this, L, _).call(this);
165
+ }, L = new WeakSet(), _ = function() {
166
+ if (fe && (i(this, l).size || i(this, E).size)) {
167
+ const e = i(this, o) instanceof DocumentFragment ? i(this, o).firstChild : i(this, o);
168
+ p(this, w, Le.subscribe(
169
+ e,
170
+ {
171
+ connectCallback: i(this, V),
172
+ disconnectCallback: i(this, U),
173
+ unsubscribeAfterDisconnect: !0,
174
+ maxWaitSec: 20
175
+ }
176
+ ));
177
+ }
178
+ }, T = new WeakSet(), O = function(e) {
179
+ if (e) {
180
+ if (typeof e == "string")
181
+ i(this, o).classList.add(e);
182
+ else if (Array.isArray(e))
183
+ e.forEach((t) => {
184
+ a(this, T, O).call(this, t);
185
+ });
186
+ else if (typeof e == "object")
187
+ if (e instanceof C)
188
+ a(this, W, Ee).call(this, e);
189
+ else
190
+ for (const t in e) {
191
+ const s = e[t];
192
+ s instanceof C ? a(this, $, pe).call(this, t, s) : s ? i(this, o).classList.add(t) : i(this, o).classList.remove(t);
193
+ }
194
+ } else
195
+ return;
196
+ }, W = new WeakSet(), Ee = function(e) {
197
+ i(this, l).add(
198
+ e.subscribe(({ current: t, previous: s }) => {
199
+ s && [s].flat().forEach((n) => {
200
+ n && i(this, o).classList.remove(n);
201
+ }), t && [t].flat().forEach((n) => {
202
+ n && i(this, o).classList.add(n);
203
+ });
204
+ })
205
+ );
206
+ }, $ = new WeakSet(), pe = function(e, t) {
207
+ i(this, l).add(
208
+ t.subscribe(({ current: s }) => {
209
+ s ? i(this, o).classList.add(e) : i(this, o).classList.remove(e);
210
+ })
211
+ );
212
+ }, q = new WeakSet(), Ce = function(e) {
213
+ if (!e)
214
+ return;
215
+ i(this, o).tagName === "style" || i(this, o).tagName === "STYLE" ? a(this, v, j).call(this, e) : a(this, z, ye).call(this, e);
216
+ }, z = new WeakSet(), ye = function(e) {
217
+ for (const t in e) {
218
+ const s = t, n = e[s];
219
+ n instanceof C ? i(this, l).add(
220
+ n.subscribe(({ current: r }) => {
221
+ a(this, A, ee).call(this, s, r);
222
+ })
223
+ ) : a(this, A, ee).call(this, s, n);
224
+ }
225
+ }, v = new WeakSet(), j = function(e) {
226
+ for (const t in e) {
227
+ const s = e[t];
228
+ if (typeof s == "object" && !(s instanceof C))
229
+ i(this, o).appendChild(
230
+ document.createTextNode(`${t} {`)
231
+ ), a(this, v, j).call(this, s), i(this, o).appendChild(document.createTextNode("}"));
232
+ else if (s instanceof C) {
233
+ const n = document.createTextNode("");
234
+ i(this, l).add(
235
+ s.subscribe((r) => {
236
+ r.current ? n.nodeValue = `${he(t)}: ${r.current};` : n.nodeValue = "";
237
+ })
238
+ ), i(this, o).appendChild(n);
239
+ } else
240
+ i(this, o).appendChild(
241
+ document.createTextNode(`${he(t)}: ${s};`)
242
+ );
243
+ }
244
+ }, A = new WeakSet(), ee = function(e, t) {
245
+ e.includes("--") ? t ? i(this, o).style.setProperty(e, t) : i(this, o).style.removeProperty(e) : t ? i(this, o).style[e] = t : i(this, o).style[e] = "";
246
+ }, I = new WeakSet(), be = function(e) {
247
+ if (e) {
248
+ i(this, m) || p(this, m, []);
249
+ for (const t in e) {
250
+ const s = t, n = we(
251
+ s.split("on").slice(1).join("on")
252
+ ), r = e[s];
253
+ typeof r == "object" ? i(this, m).push({
254
+ name: n,
255
+ callback: r.callback,
256
+ options: r.options
257
+ }) : typeof r == "function" && i(this, m).push({
258
+ name: n,
259
+ callback: r
260
+ });
261
+ }
262
+ a(this, k, te).call(this);
263
+ }
264
+ }, k = new WeakSet(), te = function() {
265
+ var e;
266
+ (e = i(this, m)) == null || e.forEach((t) => {
267
+ i(this, o).addEventListener(
268
+ t.name,
269
+ t.callback,
270
+ t.options
271
+ );
272
+ });
273
+ }, M = new WeakSet(), se = function() {
274
+ var e;
275
+ (e = i(this, m)) == null || e.forEach((t) => {
276
+ i(this, o).removeEventListener(
277
+ t.name,
278
+ t.callback,
279
+ t.options
280
+ );
281
+ });
282
+ }, J = new WeakSet(), Se = function(e) {
283
+ for (const t in e) {
284
+ const s = e[t];
285
+ s instanceof C ? i(this, l).add(
286
+ s.subscribe(({ current: n }) => {
287
+ a(this, D, ie).call(this, t, n);
288
+ })
289
+ ) : a(this, D, ie).call(this, t, s);
290
+ }
291
+ }, D = new WeakSet(), ie = function(e, t) {
292
+ var n, r;
293
+ const s = i(this, o);
294
+ e in s && !((r = (n = s.constructor) == null ? void 0 : n.observedAttributes) != null && r.includes(e)) ? t != null && (s[e] = t.toString()) : t != null && s.setAttribute(e, t.toString());
295
+ }, N = new WeakSet(), P = function(e, t) {
296
+ t && (t = [t].flat(), t.forEach((s) => {
297
+ if (s instanceof C) {
298
+ const n = document.createElement("div");
299
+ n.style.display = "contents", e.appendChild(n), i(this, d) || p(this, d, []);
300
+ const r = i(this, d).length;
301
+ n.setAttribute("store-root", ""), i(this, d).push(n), i(this, l).add(
302
+ s.subscribe(({ current: h, previous: u }) => {
303
+ const y = i(this, d)[r];
304
+ y.dispatchEvent(
305
+ new CustomEvent("beforeChildrenChange", {
306
+ bubbles: !0,
307
+ composed: !0
308
+ })
309
+ );
310
+ const K = Array.from(y.childNodes), ce = [h].flat(), Ne = [u].flat(), re = [], Q = [];
311
+ Ne.forEach((g, b) => {
312
+ !ce.includes(g) && K[b] ? re.push(K[b]) : Q.push(g);
313
+ }), ce.forEach((g, b) => {
314
+ if (Q[b]) {
315
+ if (g !== Q[b]) {
316
+ const S = a(this, H, oe).call(this, g), X = K[b];
317
+ S instanceof Node ? X.isEqualNode(S) || y.replaceChild(S, X) : y.removeChild(X);
318
+ }
319
+ } else {
320
+ const S = a(this, H, oe).call(this, g);
321
+ S instanceof Node && n.appendChild(S);
322
+ }
323
+ }), re.forEach((g) => {
324
+ y.removeChild(g);
325
+ }), y.dispatchEvent(
326
+ new CustomEvent("afterChildrenChange", {
327
+ bubbles: !0,
328
+ composed: !0
329
+ })
330
+ );
331
+ })
332
+ );
333
+ } else if (s instanceof Y)
334
+ a(this, x, ne).call(this, e, s.node);
335
+ else if (s instanceof Function)
336
+ a(this, N, P).call(this, e, le(s) ? new s() : s());
337
+ else {
338
+ const n = a(this, F, ae).call(this, s);
339
+ n instanceof Node && a(this, x, ne).call(this, e, n);
340
+ }
341
+ }));
342
+ }, x = new WeakSet(), ne = function(e, t) {
343
+ !(e instanceof ShadowRoot) && t instanceof HTMLElement && t.tagName === "STYLE" ? (i(this, E).add(() => {
344
+ [...document.head.querySelectorAll("style")].find((n) => n.outerHTML === t.outerHTML) || document.head.appendChild(t);
345
+ }), i(this, l).add(() => {
346
+ t.remove();
347
+ })) : e.appendChild(t);
348
+ }, H = new WeakSet(), oe = function(e) {
349
+ return e instanceof Y ? e.node : typeof e == "function" ? le(e) ? new e() : e() : a(this, F, ae).call(this, e);
350
+ }, F = new WeakSet(), ae = function(e) {
351
+ if (e instanceof Node)
352
+ return e;
353
+ if (e != null) {
354
+ const t = String(e);
355
+ if (t.trim().startsWith("<") && t.trim().endsWith(">")) {
356
+ const s = document.createElement("div");
357
+ return s.innerHTML = t, s.firstElementChild;
358
+ } else
359
+ return document.createTextNode(t);
360
+ } else
361
+ return;
362
+ }, V = new WeakMap(), U = new WeakMap();
363
+ let de = Y;
364
+ export {
365
+ de as E
366
+ };
@@ -0,0 +1 @@
1
+ "use strict";var R=(s,t,e)=>{if(!t.has(s))throw TypeError("Cannot "+e)};var r=(s,t,e)=>(R(s,t,"read from private field"),e?e.call(s):t.get(s)),l=(s,t,e)=>{if(t.has(s))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(s):t.set(s,e)},f=(s,t,e,c)=>(R(s,t,"write to private field"),c?c.call(s,e):t.set(s,e),e);const S=require("./Store-6s0YXK4o.cjs");var d,i;class w extends S.Store{constructor(e,c,u){super(null,u);l(this,d,void 0);l(this,i,new Map);f(this,d,e.subscribe(g=>{const x=[];g.current.forEach((n,b)=>{var p;if((p=g.previous)!=null&&p.includes(n)&&r(this,i).has(n))x.push(r(this,i).get(n));else{const y=c(n,b);r(this,i).set(n,y),x.push(y)}}),r(this,i).forEach((n,b)=>{g.current.includes(b)||r(this,i).delete(b)}),this.current=x}))}close(){super.close(),r(this,d).call(this)}}d=new WeakMap,i=new WeakMap;var o,h,a;class A extends S.Store{constructor(e,c,u){super(e,u);l(this,o,void 0);l(this,h,void 0);l(this,a,0);f(this,h,new S.Store(!1)),f(this,o,c),u!=null&&u.manualControl||this.refetch()}get isPending(){return r(this,h)}refetch(){r(this,h).current=!0,f(this,a,r(this,a)+1);const e=r(this,a);r(this,o).call(this).then(c=>{e===r(this,a)&&(r(this,h).current=!1,this.current=c)})}}o=new WeakMap,h=new WeakMap,a=new WeakMap;exports.DerivedArray=w;exports.Resource=A;