aptechka 0.1.1 → 0.1.2

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 (296) hide show
  1. package/lib/Damped-1hlKSFaB.cjs +1 -0
  2. package/lib/Damped-523xgzT3.js +152 -0
  3. package/lib/SourceManager-3c3kr7oj.cjs +1 -0
  4. package/lib/SourceManager-F94MRde6.js +108 -0
  5. package/lib/Store-2hWEUGTj.js +135 -0
  6. package/lib/Store-WXFmsaEI.cjs +1 -0
  7. package/lib/WheelControls-F-xg5-oq.js +102 -0
  8. package/lib/WheelControls-Hp5NWRZY.cjs +1 -0
  9. package/lib/animation/Animated.d.ts +41 -0
  10. package/lib/animation/Damped.d.ts +11 -0
  11. package/lib/animation/Tweened.d.ts +16 -0
  12. package/lib/animation/index.cjs +1 -0
  13. package/lib/animation/index.d.ts +3 -0
  14. package/lib/animation/index.js +56 -0
  15. package/lib/attribute/index.cjs +1 -0
  16. package/lib/attribute/index.d.ts +8 -0
  17. package/lib/attribute/index.js +47 -0
  18. package/lib/attributes-_2U65GDl.cjs +1 -0
  19. package/lib/attributes-w0u-KiIb.js +10 -0
  20. package/lib/browser-QbF6EW-w.cjs +1 -0
  21. package/lib/browser-S4eq8AeN.js +4 -0
  22. package/lib/canvas-2d/index.cjs +5 -0
  23. package/lib/canvas-2d/index.d.ts +30 -0
  24. package/lib/canvas-2d/index.js +90 -0
  25. package/lib/controls/Controls.d.ts +9 -0
  26. package/lib/controls/KeyboardControls.d.ts +10 -0
  27. package/lib/controls/LinearControls.d.ts +11 -0
  28. package/lib/controls/User.d.ts +7 -0
  29. package/lib/controls/WheelControls.d.ts +17 -0
  30. package/lib/controls/index.cjs +1 -0
  31. package/lib/controls/index.d.ts +5 -0
  32. package/lib/controls/index.js +43 -0
  33. package/lib/css-unit-parser/index.cjs +8 -0
  34. package/lib/css-unit-parser/index.d.ts +6 -0
  35. package/lib/css-unit-parser/index.js +36 -0
  36. package/lib/custom-element/index.cjs +1 -0
  37. package/lib/custom-element/index.d.ts +8 -0
  38. package/lib/custom-element/index.js +16 -0
  39. package/lib/device/Device.d.ts +17 -0
  40. package/lib/device/Viewport.d.ts +27 -0
  41. package/lib/device/index.cjs +1 -0
  42. package/lib/device/index.d.ts +2 -0
  43. package/lib/device/index.js +123 -0
  44. package/lib/dom-QhWsdQS2.cjs +1 -0
  45. package/lib/dom-bHEwc_xV.js +24 -0
  46. package/lib/easings-_wFs9ZWc.cjs +1 -0
  47. package/lib/easings-uF-tgahf.js +19 -0
  48. package/lib/element-constructor/ElementConstructor.d.ts +76 -0
  49. package/lib/element-constructor/htmlTags.d.ts +113 -0
  50. package/lib/element-constructor/index.cjs +1 -0
  51. package/lib/element-constructor/index.d.ts +4 -0
  52. package/lib/element-constructor/index.js +1389 -0
  53. package/lib/element-constructor/specialObjects.d.ts +2 -0
  54. package/lib/element-constructor/svgTags.d.ts +64 -0
  55. package/lib/en3/attachments/En3SourceManager.d.ts +30 -0
  56. package/lib/en3/core/en3.d.ts +55 -0
  57. package/lib/en3/index.cjs +28 -0
  58. package/lib/en3/index.d.ts +18 -0
  59. package/lib/en3/index.js +3249 -0
  60. package/lib/en3/instances/en3LazyLoader.d.ts +7 -0
  61. package/lib/en3/libs/MeshoptDecoder.d.ts +1 -0
  62. package/lib/en3/loaders/en3GLTFLoader.d.ts +16 -0
  63. package/lib/en3/loaders/en3TextureLoader.d.ts +2 -0
  64. package/lib/en3/objects/En3Clip.d.ts +10 -0
  65. package/lib/en3/objects/En3ClipHelpers.d.ts +5 -0
  66. package/lib/en3/objects/En3GLTF.d.ts +9 -0
  67. package/lib/en3/objects/En3Image.d.ts +7 -0
  68. package/lib/en3/objects/En3ImageLike.d.ts +22 -0
  69. package/{src/packages/en3/objects/En3SourceConsumer.ts → lib/en3/objects/En3SourceConsumer.d.ts} +2 -3
  70. package/lib/en3/objects/En3Video.d.ts +12 -0
  71. package/lib/en3/test/En3HTML.d.ts +9 -0
  72. package/lib/en3/test/En3ModifiedMaterial.d.ts +32 -0
  73. package/lib/en3/test/En3Raycaster.d.ts +19 -0
  74. package/lib/en3/utils/coverTexture.d.ts +6 -0
  75. package/lib/en3/utils/dispose.d.ts +2 -0
  76. package/lib/en3/utils/traverseMaterials.d.ts +2 -0
  77. package/lib/en3/utils/traverseMeshes.d.ts +2 -0
  78. package/lib/function-QP7IreXR.cjs +1 -0
  79. package/lib/function-zwSFehNd.js +17 -0
  80. package/lib/image/index.cjs +1 -0
  81. package/lib/image/index.d.ts +10 -0
  82. package/lib/image/index.js +30 -0
  83. package/lib/intersector/index.cjs +1 -0
  84. package/lib/intersector/index.d.ts +8 -0
  85. package/lib/intersector/index.js +55 -0
  86. package/lib/ladder/index.cjs +1 -0
  87. package/lib/ladder/index.d.ts +21 -0
  88. package/lib/ladder/index.js +97 -0
  89. package/lib/layout-5SJlcXTY.js +12 -0
  90. package/lib/layout-box/index.cjs +1 -0
  91. package/lib/layout-box/index.d.ts +78 -0
  92. package/lib/layout-box/index.js +235 -0
  93. package/lib/layout-rZzbsLPd.cjs +1 -0
  94. package/lib/loading/index.cjs +1 -0
  95. package/lib/loading/index.d.ts +38 -0
  96. package/lib/loading/index.js +99 -0
  97. package/lib/math-FNUBmQPK.cjs +1 -0
  98. package/lib/math-_a3IpKOc.js +45 -0
  99. package/lib/measurer/CumulativeOffsetLeft.d.ts +4 -0
  100. package/lib/measurer/CumulativeOffsetTop.d.ts +4 -0
  101. package/lib/measurer/Meaurer.d.ts +8 -0
  102. package/lib/measurer/index.cjs +1 -0
  103. package/lib/measurer/index.d.ts +3 -0
  104. package/lib/measurer/index.js +48 -0
  105. package/lib/media/index.cjs +1 -0
  106. package/lib/media/index.d.ts +11 -0
  107. package/lib/media/index.js +33 -0
  108. package/lib/morph/Link.d.ts +6 -0
  109. package/lib/morph/Morph.d.ts +26 -0
  110. package/lib/morph/index.cjs +1 -0
  111. package/lib/morph/index.d.ts +1 -0
  112. package/lib/morph/index.js +182 -0
  113. package/lib/notifier/index.cjs +1 -0
  114. package/lib/notifier/index.d.ts +8 -0
  115. package/lib/notifier/index.js +38 -0
  116. package/lib/number-2bR0KBcX.cjs +1 -0
  117. package/lib/number-bCHB2GAD.js +31 -0
  118. package/lib/order/index.cjs +1 -0
  119. package/lib/order/index.d.ts +13 -0
  120. package/lib/order/index.js +5 -0
  121. package/lib/resizer/index.cjs +1 -0
  122. package/lib/resizer/index.d.ts +10 -0
  123. package/lib/resizer/index.js +45 -0
  124. package/lib/router/Link.d.ts +6 -0
  125. package/lib/router/Route.d.ts +15 -0
  126. package/lib/router/RouteElement.d.ts +14 -0
  127. package/lib/router/Router.d.ts +33 -0
  128. package/lib/router/index.cjs +1 -0
  129. package/lib/router/index.d.ts +3 -0
  130. package/lib/router/index.js +266 -0
  131. package/lib/scroll/ScrollElement.d.ts +40 -0
  132. package/lib/scroll/ScrollUserElement.d.ts +7 -0
  133. package/lib/scroll/ScrollbarElement.d.ts +13 -0
  134. package/lib/scroll/index.cjs +71 -0
  135. package/lib/scroll/index.d.ts +2 -0
  136. package/lib/scroll/index.js +444 -0
  137. package/lib/scroll-entries/index.cjs +1 -0
  138. package/lib/scroll-entries/index.d.ts +17 -0
  139. package/lib/scroll-entries/index.js +56 -0
  140. package/lib/source/SourceClass.d.ts +11 -0
  141. package/lib/source/SourceElement.d.ts +16 -0
  142. package/lib/source/SourceManager.d.ts +13 -0
  143. package/lib/source/SourceSet.d.ts +8 -0
  144. package/lib/source/index.cjs +5 -0
  145. package/lib/source/index.d.ts +4 -0
  146. package/lib/source/index.js +95 -0
  147. package/lib/store/Composed.d.ts +7 -0
  148. package/lib/store/Derived.d.ts +7 -0
  149. package/lib/store/DerivedArray.d.ts +7 -0
  150. package/lib/store/Resource.d.ts +11 -0
  151. package/lib/store/Store.d.ts +32 -0
  152. package/lib/store/StoreRegistry.d.ts +22 -0
  153. package/lib/store/index.cjs +1 -0
  154. package/lib/store/index.d.ts +6 -0
  155. package/lib/store/index.js +96 -0
  156. package/lib/string-GmxZA5Nq.js +31 -0
  157. package/lib/string-WmNOGq16.cjs +1 -0
  158. package/lib/ticker/index.cjs +1 -0
  159. package/lib/ticker/index.d.ts +19 -0
  160. package/lib/ticker/index.js +107 -0
  161. package/lib/utils/array.d.ts +1 -0
  162. package/lib/utils/attributes.d.ts +2 -0
  163. package/lib/utils/browser.d.ts +1 -0
  164. package/lib/utils/canvas.d.ts +6 -0
  165. package/lib/utils/collisions.d.ts +3 -0
  166. package/lib/utils/coordinates.d.ts +13 -0
  167. package/lib/utils/decoding.d.ts +2 -0
  168. package/lib/utils/dev.d.ts +3 -0
  169. package/lib/utils/dom.d.ts +4 -0
  170. package/lib/utils/easings.d.ts +17 -0
  171. package/lib/utils/file.d.ts +1 -0
  172. package/lib/utils/function.d.ts +2 -0
  173. package/lib/utils/index.cjs +1 -0
  174. package/lib/utils/index.d.ts +19 -0
  175. package/lib/utils/index.js +203 -0
  176. package/lib/utils/layout.d.ts +3 -0
  177. package/lib/utils/math.d.ts +11 -0
  178. package/lib/utils/number.d.ts +3 -0
  179. package/lib/utils/object.d.ts +7 -0
  180. package/lib/utils/string.d.ts +5 -0
  181. package/lib/utils/ts-shape.d.ts +19 -0
  182. package/lib/utils/ts-utility.d.ts +19 -0
  183. package/lib/video/index.cjs +1 -0
  184. package/lib/video/index.d.ts +11 -0
  185. package/lib/video/index.js +37 -0
  186. package/package.json +6 -5
  187. package/.github/workflows/publish.yml +0 -20
  188. package/.prettierignore +0 -16
  189. package/.prettierrc +0 -9
  190. package/index.html +0 -32
  191. package/public/vite.svg +0 -1
  192. package/src/packages/animation/Animated.ts +0 -189
  193. package/src/packages/animation/Damped.ts +0 -39
  194. package/src/packages/animation/Tweened.ts +0 -51
  195. package/src/packages/animation/index.ts +0 -10
  196. package/src/packages/attribute/index.ts +0 -59
  197. package/src/packages/canvas-2d/index.ts +0 -137
  198. package/src/packages/controls/Controls.ts +0 -15
  199. package/src/packages/controls/KeyboardControls.ts +0 -63
  200. package/src/packages/controls/LinearControls.ts +0 -27
  201. package/src/packages/controls/User.ts +0 -20
  202. package/src/packages/controls/WheelControls.ts +0 -92
  203. package/src/packages/controls/index.ts +0 -5
  204. package/src/packages/css-unit-parser/index.ts +0 -32
  205. package/src/packages/custom-element/index.ts +0 -19
  206. package/src/packages/device/Device.ts +0 -113
  207. package/src/packages/device/Viewport.ts +0 -67
  208. package/src/packages/device/index.ts +0 -2
  209. package/src/packages/element-constructor/ElementConstructor.ts +0 -577
  210. package/src/packages/element-constructor/htmlTags.ts +0 -679
  211. package/src/packages/element-constructor/index.ts +0 -4
  212. package/src/packages/element-constructor/specialObjects.ts +0 -8
  213. package/src/packages/element-constructor/svgTags.ts +0 -588
  214. package/src/packages/en3/attachments/En3SourceManager.ts +0 -116
  215. package/src/packages/en3/core/en3.ts +0 -306
  216. package/src/packages/en3/index.ts +0 -52
  217. package/src/packages/en3/instances/en3LazyLoader.ts +0 -22
  218. package/src/packages/en3/libs/MeshoptDecoder.js +0 -138
  219. package/src/packages/en3/loaders/en3GLTFLoader.ts +0 -54
  220. package/src/packages/en3/loaders/en3TextureLoader.ts +0 -3
  221. package/src/packages/en3/objects/En3Clip.ts +0 -53
  222. package/src/packages/en3/objects/En3ClipHelpers.ts +0 -12
  223. package/src/packages/en3/objects/En3GLTF.ts +0 -35
  224. package/src/packages/en3/objects/En3Image.ts +0 -18
  225. package/src/packages/en3/objects/En3ImageLike.ts +0 -101
  226. package/src/packages/en3/objects/En3Video.ts +0 -88
  227. package/src/packages/en3/test/En3HTML.ts +0 -55
  228. package/src/packages/en3/test/En3ModifiedMaterial.ts +0 -221
  229. package/src/packages/en3/test/En3Raycaster.ts +0 -187
  230. package/src/packages/en3/utils/coverTexture.ts +0 -29
  231. package/src/packages/en3/utils/dispose.ts +0 -27
  232. package/src/packages/en3/utils/traverseMaterials.ts +0 -10
  233. package/src/packages/en3/utils/traverseMeshes.ts +0 -9
  234. package/src/packages/image/index.ts +0 -19
  235. package/src/packages/intersector/index.ts +0 -83
  236. package/src/packages/ladder/index.ts +0 -112
  237. package/src/packages/layout-box/index.ts +0 -417
  238. package/src/packages/loading/index.ts +0 -131
  239. package/src/packages/measurer/CumulativeOffsetLeft.ts +0 -8
  240. package/src/packages/measurer/CumulativeOffsetTop.ts +0 -8
  241. package/src/packages/measurer/Meaurer.ts +0 -38
  242. package/src/packages/measurer/index.ts +0 -3
  243. package/src/packages/media/index.ts +0 -38
  244. package/src/packages/morph/Link.ts +0 -32
  245. package/src/packages/morph/Morph.ts +0 -246
  246. package/src/packages/morph/index.ts +0 -10
  247. package/src/packages/notifier/index.ts +0 -41
  248. package/src/packages/order/index.ts +0 -14
  249. package/src/packages/resizer/index.ts +0 -55
  250. package/src/packages/router/Link.ts +0 -33
  251. package/src/packages/router/Route.ts +0 -152
  252. package/src/packages/router/RouteElement.ts +0 -34
  253. package/src/packages/router/Router.ts +0 -190
  254. package/src/packages/router/index.ts +0 -13
  255. package/src/packages/scroll/ScrollElement.ts +0 -618
  256. package/src/packages/scroll/ScrollUserElement.ts +0 -21
  257. package/src/packages/scroll/ScrollbarElement.ts +0 -170
  258. package/src/packages/scroll/index.ts +0 -2
  259. package/src/packages/scroll-entries/index.ts +0 -74
  260. package/src/packages/source/SourceClass.ts +0 -77
  261. package/src/packages/source/SourceElement.ts +0 -177
  262. package/src/packages/source/SourceManager.ts +0 -61
  263. package/src/packages/source/SourceSet.ts +0 -52
  264. package/src/packages/source/index.ts +0 -8
  265. package/src/packages/store/Composed.ts +0 -33
  266. package/src/packages/store/Derived.ts +0 -24
  267. package/src/packages/store/DerivedArray.ts +0 -36
  268. package/src/packages/store/Resource.ts +0 -38
  269. package/src/packages/store/Store.ts +0 -144
  270. package/src/packages/store/StoreRegistry.ts +0 -105
  271. package/src/packages/store/index.ts +0 -23
  272. package/src/packages/ticker/index.ts +0 -173
  273. package/src/packages/utils/array.ts +0 -3
  274. package/src/packages/utils/attributes.ts +0 -19
  275. package/src/packages/utils/browser.ts +0 -2
  276. package/src/packages/utils/canvas.ts +0 -46
  277. package/src/packages/utils/collisions.ts +0 -12
  278. package/src/packages/utils/coordinates.ts +0 -40
  279. package/src/packages/utils/decoding.ts +0 -11
  280. package/src/packages/utils/dev.ts +0 -5
  281. package/src/packages/utils/dom.ts +0 -48
  282. package/src/packages/utils/easings.ts +0 -69
  283. package/src/packages/utils/file.ts +0 -17
  284. package/src/packages/utils/function.ts +0 -29
  285. package/src/packages/utils/index.ts +0 -61
  286. package/src/packages/utils/layout.ts +0 -22
  287. package/src/packages/utils/math.ts +0 -74
  288. package/src/packages/utils/number.ts +0 -26
  289. package/src/packages/utils/object.ts +0 -108
  290. package/src/packages/utils/string.ts +0 -49
  291. package/src/packages/utils/ts-shape.ts +0 -25
  292. package/src/packages/utils/ts-utility.ts +0 -47
  293. package/src/packages/video/index.ts +0 -39
  294. package/src/playground/index.ts +0 -0
  295. package/tsconfig.json +0 -31
  296. package/vite.config.ts +0 -78
@@ -0,0 +1 @@
1
+ "use strict";var z=Object.defineProperty,B=Object.defineProperties;var C=Object.getOwnPropertyDescriptors;var M=Object.getOwnPropertySymbols;var G=Object.prototype.hasOwnProperty,H=Object.prototype.propertyIsEnumerable;var k=(s,e,t)=>e in s?z(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t,v=(s,e)=>{for(var t in e||(e={}))G.call(e,t)&&k(s,t,e[t]);if(M)for(var t of M(e))H.call(e,t)&&k(s,t,e[t]);return s},D=(s,e)=>B(s,C(e));var R=(s,e,t)=>(k(s,typeof e!="symbol"?e+"":e,t),t),I=(s,e,t)=>{if(!e.has(s))throw TypeError("Cannot "+t)};var i=(s,e,t)=>(I(s,e,"read from private field"),t?t.call(s):e.get(s)),a=(s,e,t)=>{if(e.has(s))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(s):e.set(s,t)},h=(s,e,t,r)=>(I(s,e,"write to private field"),r?r.call(s,t):e.set(s,t),t);var b=(s,e,t)=>(I(s,e,"access private method"),t);const _=require("./math-FNUBmQPK.cjs"),L=require("./number-2bR0KBcX.cjs"),w=require("./Store-WXFmsaEI.cjs"),E=require("./ticker/index.cjs");var g,S,y,n,l,x,m,f,q,c,F,P,d,A;class j extends w.Store{constructor(t){super(0,t);a(this,d);a(this,g,void 0);a(this,S,void 0);a(this,y,void 0);a(this,n,void 0);a(this,l,void 0);a(this,x,void 0);a(this,m,void 0);a(this,f,new w.Store(!1));a(this,q,0);a(this,c,0);a(this,F,t=>{this.set(t.current)});a(this,P,t=>{const r=this.current;this.handleAnimationFrame(t);const u=Math.abs(r-this.target);h(this,c,u/t.elapsed)});h(this,S,t==null?void 0:t.order),h(this,g,t==null?void 0:t.maxFPS),h(this,y,t==null?void 0:t.culling),h(this,l,b(this,d,A).call(this,t==null?void 0:t.min)),h(this,x,b(this,d,A).call(this,t==null?void 0:t.max)),h(this,n,this.current=0)}get target(){return i(this,n)}get isRunning(){return i(this,f)}get direction(){return i(this,q)}get maxFPS(){return i(this,g)}get speed(){return i(this,c)}get min(){return i(this,l).call(this)}set min(t){h(this,l,b(this,d,A).call(this,t)),this.set(i(this,n)),this.current=i(this,n)}get max(){return i(this,x).call(this)}set max(t){h(this,x,b(this,d,A).call(this,t)),this.set(i(this,n)),this.current=i(this,n)}get delta(){return this.max-this.min}get progress(){return this.delta?L.fix((this.current-this.min)/this.delta,6):0}get setter(){return i(this,m)}get entry(){return D(v({},super.entry),{min:this.min,max:this.max,delta:this.delta,direction:this.direction,progress:this.progress,speed:this.speed})}set setter(t){var r,u;(r=i(this,m))==null||r.unsubscribe(i(this,F)),h(this,m,t),(u=i(this,m))==null||u.subscribe(i(this,F))}set(t,r=!1){const u=i(this,n);h(this,n,_.clamp(t,this.min,this.max)),r&&(this.current=i(this,n)),i(this,n)!==u&&(h(this,c,0),h(this,q,Math.sign(t-i(this,n))||1),this.update())}shift(t,r=!1){this.set(i(this,n)+t,r)}close(){var t;super.close(),this.unlistenAnimationFrame(),(t=i(this,m))==null||t.unsubscribe(i(this,F)),h(this,m,void 0)}reset(){this.set(this.initial,!0),super.reset(),this.unlistenAnimationFrame()}listenAnimationFrame(){i(this,f).current=!0,E.ticker.subscribe(i(this,P),{maxFPS:i(this,g),order:i(this,S),culling:i(this,y)})}unlistenAnimationFrame(){h(this,c,0),i(this,f).current=!1,E.ticker.unsubscribe(i(this,P))}}g=new WeakMap,S=new WeakMap,y=new WeakMap,n=new WeakMap,l=new WeakMap,x=new WeakMap,m=new WeakMap,f=new WeakMap,q=new WeakMap,c=new WeakMap,F=new WeakMap,P=new WeakMap,d=new WeakSet,A=function(t){const r=t||0;return typeof r=="function"?r:()=>r};class J extends j{constructor(t){var r,u;super(D(v({},t),{min:(r=t==null?void 0:t.min)!=null?r:-1/0,max:(u=t==null?void 0:t.max)!=null?u:1/0}));R(this,"damping");this.damping=(t==null?void 0:t.damping)||0}update(){this.damping?this.listenAnimationFrame():(this.current=this.target,this.unlistenAnimationFrame())}handleAnimationFrame(t){L.fix(this.current,4)===L.fix(this.target,4)&&(this.unlistenAnimationFrame(),this.current=this.target),this.current=_.damp(this.current,this.target,this.damping,t.elapsed)}}exports.Animated=j;exports.Damped=J;
@@ -0,0 +1,152 @@
1
+ var q = Object.defineProperty, z = Object.defineProperties;
2
+ var B = Object.getOwnPropertyDescriptors;
3
+ var k = Object.getOwnPropertySymbols;
4
+ var C = Object.prototype.hasOwnProperty, G = Object.prototype.propertyIsEnumerable;
5
+ var D = (s, e, t) => e in s ? q(s, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[e] = t, I = (s, e) => {
6
+ for (var t in e || (e = {}))
7
+ C.call(e, t) && D(s, t, e[t]);
8
+ if (k)
9
+ for (var t of k(e))
10
+ G.call(e, t) && D(s, t, e[t]);
11
+ return s;
12
+ }, L = (s, e) => z(s, B(e));
13
+ var w = (s, e, t) => (D(s, typeof e != "symbol" ? e + "" : e, t), t), M = (s, e, t) => {
14
+ if (!e.has(s))
15
+ throw TypeError("Cannot " + t);
16
+ };
17
+ var i = (s, e, t) => (M(s, e, "read from private field"), t ? t.call(s) : e.get(s)), n = (s, e, t) => {
18
+ if (e.has(s))
19
+ throw TypeError("Cannot add the same private member more than once");
20
+ e instanceof WeakSet ? e.add(s) : e.set(s, t);
21
+ }, h = (s, e, t, r) => (M(s, e, "write to private field"), r ? r.call(s, t) : e.set(s, t), t);
22
+ var b = (s, e, t) => (M(s, e, "access private method"), t);
23
+ import { c as H, d as J } from "./math-_a3IpKOc.js";
24
+ import { f as R } from "./number-bCHB2GAD.js";
25
+ import { S as E } from "./Store-2hWEUGTj.js";
26
+ import { ticker as j } from "./ticker/index.js";
27
+ var g, S, y, a, l, f, u, x, P, c, F, v, d, A;
28
+ class K extends E {
29
+ constructor(t) {
30
+ super(0, t);
31
+ n(this, d);
32
+ n(this, g, void 0);
33
+ n(this, S, void 0);
34
+ n(this, y, void 0);
35
+ n(this, a, void 0);
36
+ n(this, l, void 0);
37
+ n(this, f, void 0);
38
+ n(this, u, void 0);
39
+ n(this, x, new E(!1));
40
+ n(this, P, 0);
41
+ n(this, c, 0);
42
+ n(this, F, (t) => {
43
+ this.set(t.current);
44
+ });
45
+ n(this, v, (t) => {
46
+ const r = this.current;
47
+ this.handleAnimationFrame(t);
48
+ const m = Math.abs(r - this.target);
49
+ h(this, c, m / t.elapsed);
50
+ });
51
+ h(this, S, t == null ? void 0 : t.order), h(this, g, t == null ? void 0 : t.maxFPS), h(this, y, t == null ? void 0 : t.culling), h(this, l, b(this, d, A).call(this, t == null ? void 0 : t.min)), h(this, f, b(this, d, A).call(this, t == null ? void 0 : t.max)), h(this, a, this.current = 0);
52
+ }
53
+ get target() {
54
+ return i(this, a);
55
+ }
56
+ get isRunning() {
57
+ return i(this, x);
58
+ }
59
+ get direction() {
60
+ return i(this, P);
61
+ }
62
+ get maxFPS() {
63
+ return i(this, g);
64
+ }
65
+ get speed() {
66
+ return i(this, c);
67
+ }
68
+ get min() {
69
+ return i(this, l).call(this);
70
+ }
71
+ set min(t) {
72
+ h(this, l, b(this, d, A).call(this, t)), this.set(i(this, a)), this.current = i(this, a);
73
+ }
74
+ get max() {
75
+ return i(this, f).call(this);
76
+ }
77
+ set max(t) {
78
+ h(this, f, b(this, d, A).call(this, t)), this.set(i(this, a)), this.current = i(this, a);
79
+ }
80
+ get delta() {
81
+ return this.max - this.min;
82
+ }
83
+ get progress() {
84
+ return this.delta ? R((this.current - this.min) / this.delta, 6) : 0;
85
+ }
86
+ get setter() {
87
+ return i(this, u);
88
+ }
89
+ get entry() {
90
+ return L(I({}, super.entry), {
91
+ min: this.min,
92
+ max: this.max,
93
+ delta: this.delta,
94
+ direction: this.direction,
95
+ progress: this.progress,
96
+ speed: this.speed
97
+ });
98
+ }
99
+ set setter(t) {
100
+ var r, m;
101
+ (r = i(this, u)) == null || r.unsubscribe(i(this, F)), h(this, u, t), (m = i(this, u)) == null || m.subscribe(i(this, F));
102
+ }
103
+ set(t, r = !1) {
104
+ const m = i(this, a);
105
+ h(this, a, H(t, this.min, this.max)), r && (this.current = i(this, a)), i(this, a) !== m && (h(this, c, 0), h(this, P, Math.sign(t - i(this, a)) || 1), this.update());
106
+ }
107
+ shift(t, r = !1) {
108
+ this.set(i(this, a) + t, r);
109
+ }
110
+ close() {
111
+ var t;
112
+ super.close(), this.unlistenAnimationFrame(), (t = i(this, u)) == null || t.unsubscribe(i(this, F)), h(this, u, void 0);
113
+ }
114
+ reset() {
115
+ this.set(this.initial, !0), super.reset(), this.unlistenAnimationFrame();
116
+ }
117
+ listenAnimationFrame() {
118
+ i(this, x).current = !0, j.subscribe(i(this, v), {
119
+ maxFPS: i(this, g),
120
+ order: i(this, S),
121
+ culling: i(this, y)
122
+ });
123
+ }
124
+ unlistenAnimationFrame() {
125
+ h(this, c, 0), i(this, x).current = !1, j.unsubscribe(i(this, v));
126
+ }
127
+ }
128
+ g = new WeakMap(), S = new WeakMap(), y = new WeakMap(), a = new WeakMap(), l = new WeakMap(), f = new WeakMap(), u = new WeakMap(), x = new WeakMap(), P = new WeakMap(), c = new WeakMap(), F = new WeakMap(), v = new WeakMap(), d = new WeakSet(), A = function(t) {
129
+ const r = t || 0;
130
+ return typeof r == "function" ? r : () => r;
131
+ };
132
+ class V extends K {
133
+ constructor(t) {
134
+ var r, m;
135
+ super(L(I({}, t), {
136
+ min: (r = t == null ? void 0 : t.min) != null ? r : -1 / 0,
137
+ max: (m = t == null ? void 0 : t.max) != null ? m : 1 / 0
138
+ }));
139
+ w(this, "damping");
140
+ this.damping = (t == null ? void 0 : t.damping) || 0;
141
+ }
142
+ update() {
143
+ this.damping ? this.listenAnimationFrame() : (this.current = this.target, this.unlistenAnimationFrame());
144
+ }
145
+ handleAnimationFrame(t) {
146
+ R(this.current, 4) === R(this.target, 4) && (this.unlistenAnimationFrame(), this.current = this.target), this.current = J(this.current, this.target, this.damping, t.elapsed);
147
+ }
148
+ }
149
+ export {
150
+ K as A,
151
+ V as D
152
+ };
@@ -0,0 +1 @@
1
+ "use strict";var M=(n,s,t)=>{if(!s.has(n))throw TypeError("Cannot "+t)};var r=(n,s,t)=>(M(n,s,"read from private field"),t?t.call(n):s.get(n)),o=(n,s,t)=>{if(s.has(n))throw TypeError("Cannot add the same private member more than once");s instanceof WeakSet?s.add(n):s.set(n,t)},c=(n,s,t,i)=>(M(n,s,"write to private field"),i?i.call(n,t):s.set(n,t),t);const k=require("./order/index.cjs"),R=require("./resizer/index.cjs"),z=require("./Store-WXFmsaEI.cjs");var l,g,q,x,a,p,E;class I{constructor(s){o(this,l,void 0);o(this,g,void 0);o(this,q,void 0);o(this,x,void 0);o(this,a,void 0);o(this,p,void 0);o(this,E,void 0);c(this,l,s);const t=s.indexOf("?");t>=0&&(s=s.slice(0,t));const i=s.split(".");c(this,g,i[0]);const d=/\d+x/g,h=i.find(f=>f.match(d));c(this,q,h?parseInt(h):1);const y=/\d+max/g,w=/\d+min/g,e=i.find(f=>f.match(y)),u=i.find(f=>f.match(w));e?(c(this,a,parseInt(e)),c(this,p,"max"),c(this,x,`(max-width: ${r(this,a)}px)`)):u?(c(this,a,parseInt(u)),c(this,x,`(min-width: ${r(this,a)}px)`),c(this,p,"min")):(c(this,a,0),c(this,x,`(min-width: ${r(this,a)}px)`),c(this,p,"min")),c(this,E,"."+i[i.length-1])}get url(){return r(this,l)}get name(){return r(this,g)}get density(){return r(this,q)}get query(){return r(this,x)}get extension(){return r(this,E)}get queryType(){return r(this,p)}get queryPx(){return r(this,a)}}l=new WeakMap,g=new WeakMap,q=new WeakMap,x=new WeakMap,a=new WeakMap,p=new WeakMap,E=new WeakMap;var m;class b{constructor(s){o(this,m,void 0);c(this,m,new Map);const t=typeof s=="string"?s.trim().split(",").map(e=>e.trim()).filter(e=>!!e):s,i=[];t.forEach(e=>{const u=new I(e);i.push([u.query,u])});const d=i.filter(e=>e[1].queryType==="max").sort((e,u)=>u[1].queryPx-e[1].queryPx),h=i.filter(e=>e[1].queryType==="min"&&e[1].queryPx!==0).sort((e,u)=>e[1].queryPx-u[1].queryPx),y=i.filter(e=>e[0]==="(min-width: 0px)");(y?[...y,...d,...h]:[...d,...h]).forEach(e=>{r(this,m).has(e[0])||r(this,m).set(e[0],[]),r(this,m).get(e[0]).push(e[1])})}get mediaBuckets(){return r(this,m)}}m=new WeakMap;var P,S;class B extends z.Store{constructor(t){super(void 0);o(this,P,void 0);o(this,S,()=>{let t;r(this,P).mediaBuckets.forEach((h,y)=>{matchMedia(y).matches&&(t=h)});let i,d=0;t==null||t.forEach(h=>{h.density>d&&h.density<=Math.max(devicePixelRatio,1)&&(d=h.density,i=h)}),t!=null&&t.length&&!i&&(i=t[0]),this.current=i});c(this,P,new b(t.srcset))}close(){super.close(),this.disconnect()}connect(){R.resizer.subscribe(r(this,S),k.RESIZE_ORDER.SOURCE_MANAGER)}disconnect(){R.resizer.unsubscribe(r(this,S))}}P=new WeakMap,S=new WeakMap;exports.Source=I;exports.SourceManager=B;exports.SourceSet=b;
@@ -0,0 +1,108 @@
1
+ var R = (r, s, t) => {
2
+ if (!s.has(r))
3
+ throw TypeError("Cannot " + t);
4
+ };
5
+ var n = (r, s, t) => (R(r, s, "read from private field"), t ? t.call(r) : s.get(r)), a = (r, s, t) => {
6
+ if (s.has(r))
7
+ throw TypeError("Cannot add the same private member more than once");
8
+ s instanceof WeakSet ? s.add(r) : s.set(r, t);
9
+ }, h = (r, s, t, i) => (R(r, s, "write to private field"), i ? i.call(r, t) : s.set(r, t), t);
10
+ import { RESIZE_ORDER as I } from "./order/index.js";
11
+ import { resizer as b } from "./resizer/index.js";
12
+ import { S } from "./Store-2hWEUGTj.js";
13
+ var l, g, q, d, o, p, E;
14
+ class k {
15
+ constructor(s) {
16
+ a(this, l, void 0);
17
+ a(this, g, void 0);
18
+ a(this, q, void 0);
19
+ a(this, d, void 0);
20
+ a(this, o, void 0);
21
+ a(this, p, void 0);
22
+ a(this, E, void 0);
23
+ h(this, l, s);
24
+ const t = s.indexOf("?");
25
+ t >= 0 && (s = s.slice(0, t));
26
+ const i = s.split(".");
27
+ h(this, g, i[0]);
28
+ const x = /\d+x/g, c = i.find((y) => y.match(x));
29
+ h(this, q, c ? parseInt(c) : 1);
30
+ const f = /\d+max/g, M = /\d+min/g, e = i.find((y) => y.match(f)), m = i.find((y) => y.match(M));
31
+ e ? (h(this, o, parseInt(e)), h(this, p, "max"), h(this, d, `(max-width: ${n(this, o)}px)`)) : m ? (h(this, o, parseInt(m)), h(this, d, `(min-width: ${n(this, o)}px)`), h(this, p, "min")) : (h(this, o, 0), h(this, d, `(min-width: ${n(this, o)}px)`), h(this, p, "min")), h(this, E, "." + i[i.length - 1]);
32
+ }
33
+ get url() {
34
+ return n(this, l);
35
+ }
36
+ get name() {
37
+ return n(this, g);
38
+ }
39
+ get density() {
40
+ return n(this, q);
41
+ }
42
+ get query() {
43
+ return n(this, d);
44
+ }
45
+ get extension() {
46
+ return n(this, E);
47
+ }
48
+ get queryType() {
49
+ return n(this, p);
50
+ }
51
+ get queryPx() {
52
+ return n(this, o);
53
+ }
54
+ }
55
+ l = new WeakMap(), g = new WeakMap(), q = new WeakMap(), d = new WeakMap(), o = new WeakMap(), p = new WeakMap(), E = new WeakMap();
56
+ var u;
57
+ class B {
58
+ constructor(s) {
59
+ a(this, u, void 0);
60
+ h(this, u, /* @__PURE__ */ new Map());
61
+ const t = typeof s == "string" ? s.trim().split(",").map((e) => e.trim()).filter((e) => !!e) : s, i = [];
62
+ t.forEach((e) => {
63
+ const m = new k(e);
64
+ i.push([m.query, m]);
65
+ });
66
+ const x = i.filter((e) => e[1].queryType === "max").sort((e, m) => m[1].queryPx - e[1].queryPx), c = i.filter((e) => e[1].queryType === "min" && e[1].queryPx !== 0).sort((e, m) => e[1].queryPx - m[1].queryPx), f = i.filter((e) => e[0] === "(min-width: 0px)");
67
+ (f ? [...f, ...x, ...c] : [...x, ...c]).forEach((e) => {
68
+ n(this, u).has(e[0]) || n(this, u).set(e[0], []), n(this, u).get(e[0]).push(e[1]);
69
+ });
70
+ }
71
+ get mediaBuckets() {
72
+ return n(this, u);
73
+ }
74
+ }
75
+ u = new WeakMap();
76
+ var P, w;
77
+ class A extends S {
78
+ constructor(t) {
79
+ super(void 0);
80
+ a(this, P, void 0);
81
+ a(this, w, () => {
82
+ let t;
83
+ n(this, P).mediaBuckets.forEach((c, f) => {
84
+ matchMedia(f).matches && (t = c);
85
+ });
86
+ let i, x = 0;
87
+ t == null || t.forEach((c) => {
88
+ c.density > x && c.density <= Math.max(devicePixelRatio, 1) && (x = c.density, i = c);
89
+ }), t != null && t.length && !i && (i = t[0]), this.current = i;
90
+ });
91
+ h(this, P, new B(t.srcset));
92
+ }
93
+ close() {
94
+ super.close(), this.disconnect();
95
+ }
96
+ connect() {
97
+ b.subscribe(n(this, w), I.SOURCE_MANAGER);
98
+ }
99
+ disconnect() {
100
+ b.unsubscribe(n(this, w));
101
+ }
102
+ }
103
+ P = new WeakMap(), w = new WeakMap();
104
+ export {
105
+ A as S,
106
+ k as a,
107
+ B as b
108
+ };
@@ -0,0 +1,135 @@
1
+ var b = (s, t, e) => {
2
+ if (!t.has(s))
3
+ throw TypeError("Cannot " + e);
4
+ };
5
+ var r = (s, t, e) => (b(s, t, "read from private field"), e ? e.call(s) : t.get(s)), a = (s, t, e) => {
6
+ if (t.has(s))
7
+ throw TypeError("Cannot add the same private member more than once");
8
+ t instanceof WeakSet ? t.add(s) : t.set(s, e);
9
+ }, i = (s, t, e, n) => (b(s, t, "write to private field"), n ? n.call(s, e) : t.set(s, e), e);
10
+ var w = (s, t, e) => (b(s, t, "access private method"), e);
11
+ import { i as A } from "./browser-S4eq8AeN.js";
12
+ var l, f, S;
13
+ class k {
14
+ constructor() {
15
+ a(this, l, null);
16
+ a(this, f, void 0);
17
+ a(this, S, "");
18
+ A && (i(this, f, document.documentElement.getAttribute("data-project") || void 0), i(this, S, r(this, f) ? r(this, f) + "-store-registry" : "store-registry"));
19
+ }
20
+ get projectName() {
21
+ return r(this, f);
22
+ }
23
+ get localStoreRegistryName() {
24
+ return r(this, S);
25
+ }
26
+ get loadedState() {
27
+ return r(this, l);
28
+ }
29
+ saveState() {
30
+ const t = this.getState(), e = JSON.stringify(t);
31
+ localStorage.setItem(r(this, S), e);
32
+ }
33
+ loadState(t = localStorage.getItem(r(this, S))) {
34
+ t && (typeof t == "string" ? i(this, l, JSON.parse(t)) : i(this, l, t), o.current.forEach((e) => {
35
+ this.updateStore(e);
36
+ }));
37
+ }
38
+ resetState() {
39
+ o.current.forEach((t) => {
40
+ t.reset();
41
+ }), this.saveState();
42
+ }
43
+ updateStore(t) {
44
+ var n, y;
45
+ if (!Array.isArray((n = r(this, l)) == null ? void 0 : n.stores))
46
+ return t;
47
+ const e = t.passport;
48
+ if (e) {
49
+ const N = (y = r(this, l)) == null ? void 0 : y.stores.find((j) => j.name === e.name);
50
+ N && (t.current = N.value);
51
+ }
52
+ return t;
53
+ }
54
+ getState() {
55
+ const t = {
56
+ stores: []
57
+ };
58
+ return o.current.forEach((e) => {
59
+ e.passport && t.stores.push({
60
+ value: e.current,
61
+ name: e.passport.name
62
+ });
63
+ }), t;
64
+ }
65
+ }
66
+ l = new WeakMap(), f = new WeakMap(), S = new WeakMap();
67
+ const q = new k();
68
+ var c, d, g, u, m, h, p, v, R;
69
+ class z {
70
+ constructor(t, e) {
71
+ a(this, v);
72
+ a(this, c, void 0);
73
+ a(this, d, void 0);
74
+ a(this, g, void 0);
75
+ a(this, u, void 0);
76
+ a(this, m, void 0);
77
+ a(this, h, /* @__PURE__ */ new Set());
78
+ a(this, p, void 0);
79
+ i(this, c, e == null ? void 0 : e.passport), i(this, d, t), i(this, g, void 0), i(this, u, t), i(this, m, (e == null ? void 0 : e.equalityCheck) || ((n, y) => n === y)), i(this, p, (e == null ? void 0 : e.validate) || ((n) => n)), r(this, c) && q.updateStore(this);
80
+ }
81
+ get passport() {
82
+ return r(this, c);
83
+ }
84
+ get initial() {
85
+ return r(this, d);
86
+ }
87
+ get previous() {
88
+ return r(this, g);
89
+ }
90
+ get current() {
91
+ return r(this, u);
92
+ }
93
+ set current(t) {
94
+ r(this, m).call(this, r(this, u), t) || (i(this, g, r(this, u)), i(this, u, r(this, p).call(this, t)), w(this, v, R).call(this));
95
+ }
96
+ get subscribers() {
97
+ return r(this, h);
98
+ }
99
+ get entry() {
100
+ return {
101
+ current: r(this, u),
102
+ previous: r(this, g)
103
+ };
104
+ }
105
+ subscribe(t) {
106
+ return r(this, c) && !r(this, h).size && C(this), r(this, h).add(t), t(this.entry), () => {
107
+ this.unsubscribe(t);
108
+ };
109
+ }
110
+ unsubscribe(t) {
111
+ r(this, h).delete(t), r(this, c) && !r(this, h).size && E(this);
112
+ }
113
+ reset() {
114
+ this.current = this.initial;
115
+ }
116
+ close() {
117
+ r(this, h).clear(), r(this, c) && E(this);
118
+ }
119
+ }
120
+ c = new WeakMap(), d = new WeakMap(), g = new WeakMap(), u = new WeakMap(), m = new WeakMap(), h = new WeakMap(), p = new WeakMap(), v = new WeakSet(), R = function() {
121
+ for (const t of r(this, h))
122
+ t(this.entry);
123
+ };
124
+ const o = new z([]);
125
+ function C(s) {
126
+ o.current.find((t) => t.passport.name === s.passport.name) || (o.current = [...o.current, s]);
127
+ }
128
+ function E(s) {
129
+ o.current.includes(s) && (o.current = o.current.filter((t) => t !== s));
130
+ }
131
+ export {
132
+ z as S,
133
+ o as a,
134
+ q as s
135
+ };
@@ -0,0 +1 @@
1
+ "use strict";var b=(s,t,e)=>{if(!t.has(s))throw TypeError("Cannot "+e)};var r=(s,t,e)=>(b(s,t,"read from private field"),e?e.call(s):t.get(s)),a=(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)},i=(s,t,e,c)=>(b(s,t,"write to private field"),c?c.call(s,e):t.set(s,e),e);var w=(s,t,e)=>(b(s,t,"access private method"),e);const k=require("./browser-QbF6EW-w.cjs");var l,f,S;class z{constructor(){a(this,l,null);a(this,f,void 0);a(this,S,"");k.isBrowser&&(i(this,f,document.documentElement.getAttribute("data-project")||void 0),i(this,S,r(this,f)?r(this,f)+"-store-registry":"store-registry"))}get projectName(){return r(this,f)}get localStoreRegistryName(){return r(this,S)}get loadedState(){return r(this,l)}saveState(){const t=this.getState(),e=JSON.stringify(t);localStorage.setItem(r(this,S),e)}loadState(t=localStorage.getItem(r(this,S))){t&&(typeof t=="string"?i(this,l,JSON.parse(t)):i(this,l,t),n.current.forEach(e=>{this.updateStore(e)}))}resetState(){n.current.forEach(t=>{t.reset()}),this.saveState()}updateStore(t){var c,p;if(!Array.isArray((c=r(this,l))==null?void 0:c.stores))return t;const e=t.passport;if(e){const N=(p=r(this,l))==null?void 0:p.stores.find(A=>A.name===e.name);N&&(t.current=N.value)}return t}getState(){const t={stores:[]};return n.current.forEach(e=>{e.passport&&t.stores.push({value:e.current,name:e.passport.name})}),t}}l=new WeakMap,f=new WeakMap,S=new WeakMap;const E=new z;var u,d,g,o,y,h,m,v,q;class j{constructor(t,e){a(this,v);a(this,u,void 0);a(this,d,void 0);a(this,g,void 0);a(this,o,void 0);a(this,y,void 0);a(this,h,new Set);a(this,m,void 0);i(this,u,e==null?void 0:e.passport),i(this,d,t),i(this,g,void 0),i(this,o,t),i(this,y,(e==null?void 0:e.equalityCheck)||((c,p)=>c===p)),i(this,m,(e==null?void 0:e.validate)||(c=>c)),r(this,u)&&E.updateStore(this)}get passport(){return r(this,u)}get initial(){return r(this,d)}get previous(){return r(this,g)}get current(){return r(this,o)}set current(t){r(this,y).call(this,r(this,o),t)||(i(this,g,r(this,o)),i(this,o,r(this,m).call(this,t)),w(this,v,q).call(this))}get subscribers(){return r(this,h)}get entry(){return{current:r(this,o),previous:r(this,g)}}subscribe(t){return r(this,u)&&!r(this,h).size&&C(this),r(this,h).add(t),t(this.entry),()=>{this.unsubscribe(t)}}unsubscribe(t){r(this,h).delete(t),r(this,u)&&!r(this,h).size&&R(this)}reset(){this.current=this.initial}close(){r(this,h).clear(),r(this,u)&&R(this)}}u=new WeakMap,d=new WeakMap,g=new WeakMap,o=new WeakMap,y=new WeakMap,h=new WeakMap,m=new WeakMap,v=new WeakSet,q=function(){for(const t of r(this,h))t(this.entry)};const n=new j([]);function C(s){n.current.find(t=>t.passport.name===s.passport.name)||(n.current=[...n.current,s])}function R(s){n.current.includes(s)&&(n.current=n.current.filter(t=>t!==s))}exports.Store=j;exports.activeStores=n;exports.storeRegistry=E;
@@ -0,0 +1,102 @@
1
+ var D = Object.defineProperty;
2
+ var I = (t, i, e) => i in t ? D(t, i, { enumerable: !0, configurable: !0, writable: !0, value: e }) : t[i] = e;
3
+ var E = (t, i, e) => (I(t, typeof i != "symbol" ? i + "" : i, e), e), v = (t, i, e) => {
4
+ if (!i.has(t))
5
+ throw TypeError("Cannot " + e);
6
+ };
7
+ var s = (t, i, e) => (v(t, i, "read from private field"), e ? e.call(t) : i.get(t)), a = (t, i, e) => {
8
+ if (i.has(t))
9
+ throw TypeError("Cannot add the same private member more than once");
10
+ i instanceof WeakSet ? i.add(t) : i.set(t, e);
11
+ }, h = (t, i, e, n) => (v(t, i, "write to private field"), n ? n.call(t, e) : i.set(t, e), e);
12
+ import { i as r } from "./browser-S4eq8AeN.js";
13
+ import { g as x } from "./dom-bHEwc_xV.js";
14
+ import { Notifier as M } from "./notifier/index.js";
15
+ var y;
16
+ class b {
17
+ constructor() {
18
+ a(this, y, new M());
19
+ }
20
+ get changeEvent() {
21
+ return s(this, y);
22
+ }
23
+ }
24
+ y = new WeakMap();
25
+ var w, c;
26
+ class A {
27
+ constructor() {
28
+ a(this, w, void 0);
29
+ a(this, c, !0);
30
+ }
31
+ get isIdle() {
32
+ return s(this, c);
33
+ }
34
+ registerInteraction() {
35
+ clearTimeout(s(this, w)), h(this, c, !1), h(this, w, setTimeout(() => {
36
+ h(this, c, !0);
37
+ }, 2e3));
38
+ }
39
+ }
40
+ w = new WeakMap(), c = new WeakMap();
41
+ const L = new A();
42
+ var l, g;
43
+ class P extends b {
44
+ constructor(e) {
45
+ super();
46
+ a(this, l, null);
47
+ a(this, g, (e) => {
48
+ const n = e.shiftKey ? -1 : 1;
49
+ let u = !0;
50
+ e.code === "Space" ? this.changeEvent.notify(n * 500) : e.code === "ArrowLeft" ? this.changeEvent.notify(-1 * 100) : e.code === "ArrowRight" ? this.changeEvent.notify(1 * 100) : e.code === "ArrowUp" ? this.changeEvent.notify(-1 * 100) : e.code === "ArrowDown" ? this.changeEvent.notify(1 * 100) : e.code === "PageUp" ? this.changeEvent.notify(-1 * 1e3) : e.code === "PageDown" ? this.changeEvent.notify(1 * 1e3) : e.code === "Home" ? this.changeEvent.notify("min") : e.code === "End" ? this.changeEvent.notify("max") : u = !1, u && L.registerInteraction();
51
+ });
52
+ r && h(this, l, e != null && e.element && x(e.element) || window);
53
+ }
54
+ connect() {
55
+ r && s(this, l).addEventListener("keydown", s(this, g));
56
+ }
57
+ disconnect() {
58
+ r && s(this, l).removeEventListener("keydown", s(this, g));
59
+ }
60
+ }
61
+ l = new WeakMap(), g = new WeakMap();
62
+ var d, f, o, m;
63
+ class U extends b {
64
+ constructor(e) {
65
+ super();
66
+ E(this, "axis");
67
+ E(this, "speed");
68
+ E(this, "debounce");
69
+ a(this, d, null);
70
+ a(this, f, void 0);
71
+ a(this, o, void 0);
72
+ a(this, m, (e) => {
73
+ let n = 0;
74
+ if (!(this.axis === "x" && Math.abs(e.deltaY) > Math.abs(e.deltaX) || this.axis === "y" && Math.abs(e.deltaX) > Math.abs(e.deltaY)))
75
+ if (n = (this.axis === "x" ? e.deltaX : e.deltaY) * this.speed, L.registerInteraction(), e.stopPropagation(), e.preventDefault(), this.debounce) {
76
+ const u = Date.now();
77
+ if (u - s(this, o) > 40 && (n = 100 * Math.sign(n)), h(this, o, u), Math.abs(n) < 100 || s(this, f))
78
+ return;
79
+ this.changeEvent.notify(n), h(this, f, setTimeout(() => {
80
+ h(this, f, void 0);
81
+ }, 80));
82
+ } else
83
+ this.changeEvent.notify(n);
84
+ });
85
+ this.axis = (e == null ? void 0 : e.axis) || "y", this.speed = (e == null ? void 0 : e.speed) || 1, this.debounce = (e == null ? void 0 : e.debounce) || !1, h(this, o, Date.now()), r && h(this, d, e != null && e.element && x(e.element) || window);
86
+ }
87
+ connect() {
88
+ r && s(this, d).addEventListener("wheel", s(this, m), {
89
+ passive: !1
90
+ });
91
+ }
92
+ disconnect() {
93
+ r && s(this, d).removeEventListener("wheel", s(this, m));
94
+ }
95
+ }
96
+ d = new WeakMap(), f = new WeakMap(), o = new WeakMap(), m = new WeakMap();
97
+ export {
98
+ b as C,
99
+ P as K,
100
+ U as W,
101
+ L as u
102
+ };
@@ -0,0 +1 @@
1
+ "use strict";var B=Object.defineProperty;var C=(t,s,e)=>s in t?B(t,s,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[s]=e;var m=(t,s,e)=>(C(t,typeof s!="symbol"?s+"":s,e),e),x=(t,s,e)=>{if(!s.has(t))throw TypeError("Cannot "+e)};var i=(t,s,e)=>(x(t,s,"read from private field"),e?e.call(t):s.get(t)),r=(t,s,e)=>{if(s.has(t))throw TypeError("Cannot add the same private member more than once");s instanceof WeakSet?s.add(t):s.set(t,e)},h=(t,s,e,n)=>(x(t,s,"write to private field"),n?n.call(t,e):s.set(t,e),e);const a=require("./browser-QbF6EW-w.cjs"),L=require("./dom-QhWsdQS2.cjs"),D=require("./notifier/index.cjs");var y;class v{constructor(){r(this,y,new D.Notifier)}get changeEvent(){return i(this,y)}}y=new WeakMap;var u,c;class I{constructor(){r(this,u,void 0);r(this,c,!0)}get isIdle(){return i(this,c)}registerInteraction(){clearTimeout(i(this,u)),h(this,c,!1),h(this,u,setTimeout(()=>{h(this,c,!0)},2e3))}}u=new WeakMap,c=new WeakMap;const b=new I;var l,g;class M extends v{constructor(e){super();r(this,l,null);r(this,g,e=>{const n=e.shiftKey?-1:1;let w=!0;e.code==="Space"?this.changeEvent.notify(n*500):e.code==="ArrowLeft"?this.changeEvent.notify(-1*100):e.code==="ArrowRight"?this.changeEvent.notify(1*100):e.code==="ArrowUp"?this.changeEvent.notify(-1*100):e.code==="ArrowDown"?this.changeEvent.notify(1*100):e.code==="PageUp"?this.changeEvent.notify(-1*1e3):e.code==="PageDown"?this.changeEvent.notify(1*1e3):e.code==="Home"?this.changeEvent.notify("min"):e.code==="End"?this.changeEvent.notify("max"):w=!1,w&&b.registerInteraction()});a.isBrowser&&h(this,l,e!=null&&e.element&&L.getElement(e.element)||window)}connect(){a.isBrowser&&i(this,l).addEventListener("keydown",i(this,g))}disconnect(){a.isBrowser&&i(this,l).removeEventListener("keydown",i(this,g))}}l=new WeakMap,g=new WeakMap;var d,o,f,E;class A extends v{constructor(e){super();m(this,"axis");m(this,"speed");m(this,"debounce");r(this,d,null);r(this,o,void 0);r(this,f,void 0);r(this,E,e=>{let n=0;if(!(this.axis==="x"&&Math.abs(e.deltaY)>Math.abs(e.deltaX)||this.axis==="y"&&Math.abs(e.deltaX)>Math.abs(e.deltaY)))if(n=(this.axis==="x"?e.deltaX:e.deltaY)*this.speed,b.registerInteraction(),e.stopPropagation(),e.preventDefault(),this.debounce){const w=Date.now();if(w-i(this,f)>40&&(n=100*Math.sign(n)),h(this,f,w),Math.abs(n)<100||i(this,o))return;this.changeEvent.notify(n),h(this,o,setTimeout(()=>{h(this,o,void 0)},80))}else this.changeEvent.notify(n)});this.axis=(e==null?void 0:e.axis)||"y",this.speed=(e==null?void 0:e.speed)||1,this.debounce=(e==null?void 0:e.debounce)||!1,h(this,f,Date.now()),a.isBrowser&&h(this,d,e!=null&&e.element&&L.getElement(e.element)||window)}connect(){a.isBrowser&&i(this,d).addEventListener("wheel",i(this,E),{passive:!1})}disconnect(){a.isBrowser&&i(this,d).removeEventListener("wheel",i(this,E))}}d=new WeakMap,o=new WeakMap,f=new WeakMap,E=new WeakMap;exports.Controls=v;exports.KeyboardControls=M;exports.WheelControls=A;exports.user=b;
@@ -0,0 +1,41 @@
1
+ import { StoreOptions, StoreEntry, Store } from '../store';
2
+ import { TickerCallbackEntry, TickerAddOptions } from '../ticker';
3
+ export interface AnimatedOptions extends StoreOptions<number>, TickerAddOptions {
4
+ min?: number | AnimatedEdgeFunction;
5
+ max?: number | AnimatedEdgeFunction;
6
+ }
7
+ export type AnimatedEdgeFunction = () => number;
8
+ export interface AnimatedEntry extends StoreEntry<number> {
9
+ min: number;
10
+ max: number;
11
+ delta: number;
12
+ progress: number;
13
+ direction: number;
14
+ speed: number;
15
+ }
16
+ export declare abstract class Animated<Entry extends AnimatedEntry = AnimatedEntry> extends Store<number, Entry> {
17
+ #private;
18
+ constructor(options?: AnimatedOptions);
19
+ get target(): number;
20
+ get isRunning(): Store<boolean, StoreEntry<boolean>>;
21
+ get direction(): number;
22
+ get maxFPS(): number | undefined;
23
+ get speed(): number;
24
+ get min(): number;
25
+ set min(value: number | AnimatedEdgeFunction | undefined);
26
+ get max(): number;
27
+ set max(value: number | AnimatedEdgeFunction | undefined);
28
+ get delta(): number;
29
+ get progress(): number;
30
+ get setter(): Animated | undefined;
31
+ get entry(): Entry;
32
+ set setter(animated: Animated | undefined);
33
+ set(value: number, equalize?: boolean): void;
34
+ shift(value: number, equalize?: boolean): void;
35
+ close(): void;
36
+ reset(): void;
37
+ listenAnimationFrame(): void;
38
+ unlistenAnimationFrame(): void;
39
+ protected abstract update(): void;
40
+ protected abstract handleAnimationFrame(e: TickerCallbackEntry): void;
41
+ }
@@ -0,0 +1,11 @@
1
+ import { TickerCallbackEntry } from '../ticker';
2
+ import { AnimatedOptions, Animated } from './Animated';
3
+ export interface DampedOptions extends AnimatedOptions {
4
+ damping?: number;
5
+ }
6
+ export declare class Damped extends Animated {
7
+ damping: number;
8
+ constructor(options?: DampedOptions);
9
+ protected update(): void;
10
+ protected handleAnimationFrame(e: TickerCallbackEntry): void;
11
+ }
@@ -0,0 +1,16 @@
1
+ import { TickerCallbackEntry } from '../ticker';
2
+ import { EasingFunction } from '../utils';
3
+ import { AnimatedOptions, Animated } from './Animated';
4
+ export interface TweenedOptions extends AnimatedOptions {
5
+ easing?: EasingFunction;
6
+ }
7
+ export declare class Tweened extends Animated {
8
+ easing: EasingFunction;
9
+ constructor(options?: TweenedOptions);
10
+ start(): void;
11
+ pause(): void;
12
+ stop(): void;
13
+ get max(): number;
14
+ protected update(): void;
15
+ protected handleAnimationFrame(e: TickerCallbackEntry): void;
16
+ }
@@ -0,0 +1 @@
1
+ "use strict";var h=Object.defineProperty,l=Object.defineProperties;var c=Object.getOwnPropertyDescriptors;var s=Object.getOwnPropertySymbols;var g=Object.prototype.hasOwnProperty,q=Object.prototype.propertyIsEnumerable;var a=(t,r,e)=>r in t?h(t,r,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[r]=e,n=(t,r)=>{for(var e in r||(r={}))g.call(r,e)&&a(t,e,r[e]);if(s)for(var e of s(r))q.call(r,e)&&a(t,e,r[e]);return t},m=(t,r)=>l(t,c(r));var u=(t,r,e)=>(a(t,typeof r!="symbol"?r+"":r,e),e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("../Damped-1hlKSFaB.cjs"),A=require("../easings-_wFs9ZWc.cjs");require("../math-FNUBmQPK.cjs");require("../number-2bR0KBcX.cjs");require("../Store-WXFmsaEI.cjs");require("../browser-QbF6EW-w.cjs");require("../ticker/index.cjs");require("../intersector/index.cjs");class x extends i.Animated{constructor(e){super(m(n({},e),{min:(e==null?void 0:e.min)||0,max:(e==null?void 0:e.max)||1e3}));u(this,"easing");this.easing=(e==null?void 0:e.easing)||A.linear}start(){this.listenAnimationFrame()}pause(){this.unlistenAnimationFrame()}stop(){this.reset()}get max(){return super.max}update(){const e=(this.target-this.min)/(this.delta||1),d=this.easing(e);this.current=this.min+d*this.delta}handleAnimationFrame(e){this.shift(e.elapsed),(e.elapsed&&this.current===0||this.current===this.delta)&&this.unlistenAnimationFrame()}}exports.Animated=i.Animated;exports.Damped=i.Damped;exports.Tweened=x;
@@ -0,0 +1,3 @@
1
+ export { Animated, type AnimatedOptions, type AnimatedEdgeFunction, type AnimatedEntry, } from './Animated';
2
+ export { Tweened, type TweenedOptions } from './Tweened';
3
+ export { Damped, type DampedOptions } from './Damped';
@@ -0,0 +1,56 @@
1
+ var d = Object.defineProperty, l = Object.defineProperties;
2
+ var u = Object.getOwnPropertyDescriptors;
3
+ var i = Object.getOwnPropertySymbols;
4
+ var c = Object.prototype.hasOwnProperty, x = Object.prototype.propertyIsEnumerable;
5
+ var r = (a, t, e) => t in a ? d(a, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : a[t] = e, m = (a, t) => {
6
+ for (var e in t || (t = {}))
7
+ c.call(t, e) && r(a, e, t[e]);
8
+ if (i)
9
+ for (var e of i(t))
10
+ x.call(t, e) && r(a, e, t[e]);
11
+ return a;
12
+ }, s = (a, t) => l(a, u(t));
13
+ var n = (a, t, e) => (r(a, typeof t != "symbol" ? t + "" : t, e), e);
14
+ import { A as g } from "../Damped-523xgzT3.js";
15
+ import { D as y } from "../Damped-523xgzT3.js";
16
+ import { l as A } from "../easings-uF-tgahf.js";
17
+ import "../math-_a3IpKOc.js";
18
+ import "../number-bCHB2GAD.js";
19
+ import "../Store-2hWEUGTj.js";
20
+ import "../browser-S4eq8AeN.js";
21
+ import "../ticker/index.js";
22
+ import "../intersector/index.js";
23
+ class k extends g {
24
+ constructor(e) {
25
+ super(s(m({}, e), {
26
+ min: (e == null ? void 0 : e.min) || 0,
27
+ max: (e == null ? void 0 : e.max) || 1e3
28
+ }));
29
+ n(this, "easing");
30
+ this.easing = (e == null ? void 0 : e.easing) || A;
31
+ }
32
+ start() {
33
+ this.listenAnimationFrame();
34
+ }
35
+ pause() {
36
+ this.unlistenAnimationFrame();
37
+ }
38
+ stop() {
39
+ this.reset();
40
+ }
41
+ get max() {
42
+ return super.max;
43
+ }
44
+ update() {
45
+ const e = (this.target - this.min) / (this.delta || 1), h = this.easing(e);
46
+ this.current = this.min + h * this.delta;
47
+ }
48
+ handleAnimationFrame(e) {
49
+ this.shift(e.elapsed), (e.elapsed && this.current === 0 || this.current === this.delta) && this.unlistenAnimationFrame();
50
+ }
51
+ }
52
+ export {
53
+ g as Animated,
54
+ y as Damped,
55
+ k as Tweened
56
+ };
@@ -0,0 +1 @@
1
+ "use strict";var v=(e,r,t)=>{if(!r.has(e))throw TypeError("Cannot "+t)};var s=(e,r,t)=>(v(e,r,"read from private field"),t?t.call(e):r.get(e)),b=(e,r,t)=>{if(r.has(e))throw TypeError("Cannot add the same private member more than once");r instanceof WeakSet?r.add(e):r.set(e,t)},a=(e,r,t,c)=>(v(e,r,"write to private field"),c?c.call(e,t):r.set(e,t),t);var d=(e,r,t)=>(v(e,r,"access private method"),t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const w=require("../Store-WXFmsaEI.cjs"),A=require("../attributes-_2U65GDl.cjs"),f=require("../browser-QbF6EW-w.cjs"),S=require("../dom-QhWsdQS2.cjs");var i,u,o,h,m;class q extends w.Store{constructor(t,c,g,p){super(g,p);b(this,h);b(this,i,null);b(this,u,void 0);b(this,o,null);a(this,u,c),this.subscribe(l=>{var n;(n=s(this,i))==null||n.setAttribute(s(this,u),l.current.toString())}),f.isBrowser&&(a(this,i,S.getElement(t)),a(this,o,new MutationObserver(l=>{l.forEach(n=>{n.type==="attributes"&&n.attributeName===s(this,u)&&d(this,h,m).call(this)})})))}unobserve(){f.isBrowser&&s(this,o).disconnect()}observe(){f.isBrowser&&s(this,i)&&(s(this,o).observe(s(this,i),{attributes:!0}),d(this,h,m).call(this))}}i=new WeakMap,u=new WeakMap,o=new WeakMap,h=new WeakSet,m=function(){const t=s(this,i).getAttribute(s(this,u));t!=null&&(this.current=A.parseAttributeValue(t))};exports.Attribute=q;