aptechka 0.4.3 → 0.4.5

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 (97) hide show
  1. package/lib/{Damped-B0eRyTcV.cjs → Damped-9h4qaGcS.cjs} +1 -1
  2. package/lib/{Damped-Do9H-LKf.js → Damped-HhitpTP_.js} +1 -1
  3. package/lib/{Derived-vGokdC4b.cjs → Derived-B-g8dYgh.cjs} +1 -1
  4. package/lib/{Derived-Dbjm-dob.js → Derived-kPJs5JC5.js} +1 -1
  5. package/lib/{SourceManager-noBYGNeX.js → SourceManager-4OHacQoQ.js} +1 -1
  6. package/lib/{SourceManager-CzcqsC3z.cjs → SourceManager-Bc68GDrb.cjs} +1 -1
  7. package/lib/Store-BQXXikps.js +156 -0
  8. package/lib/Store-C-1ruEIm.cjs +1 -0
  9. package/lib/{Viewport-CRLSlcoi.cjs → Viewport-DAjFJF5V.cjs} +1 -1
  10. package/lib/{Viewport-VSV_isot.js → Viewport-wlgZaIn7.js} +19 -21
  11. package/lib/WheelControls-0zNcnAB3.cjs +1 -0
  12. package/lib/WheelControls-BAyRKpRZ.js +97 -0
  13. package/lib/animation/index.cjs +1 -1
  14. package/lib/animation/index.js +2 -2
  15. package/lib/attribute/index.cjs +1 -1
  16. package/lib/attribute/index.js +1 -1
  17. package/lib/canvas/index.cjs +1 -1
  18. package/lib/canvas/index.js +3 -3
  19. package/lib/checkbox/index.cjs +1 -0
  20. package/lib/checkbox/index.d.ts +16 -0
  21. package/lib/checkbox/index.js +120 -0
  22. package/lib/controls/Controls.d.ts +1 -2
  23. package/lib/controls/KeyboardControls.d.ts +3 -0
  24. package/lib/controls/index.cjs +1 -1
  25. package/lib/controls/index.d.ts +1 -1
  26. package/lib/controls/index.js +2 -2
  27. package/lib/{createStylesheet-CR-XQRVT.js → createStylesheet-DrkbCUJk.js} +1 -1
  28. package/lib/{createStylesheet-B4vLzvah.cjs → createStylesheet-u1ZQ2BI5.cjs} +1 -1
  29. package/lib/css-property/index.cjs +1 -0
  30. package/lib/css-property/index.d.ts +12 -0
  31. package/lib/css-property/index.js +54 -0
  32. package/lib/css-value-parser/index.cjs +1 -0
  33. package/lib/css-value-parser/index.d.ts +6 -0
  34. package/lib/css-value-parser/index.js +40 -0
  35. package/lib/dev/index.cjs +1 -0
  36. package/lib/dev/index.d.ts +1 -0
  37. package/lib/dev/index.js +14 -0
  38. package/lib/device/Viewport.d.ts +1 -1
  39. package/lib/device/index.cjs +1 -1
  40. package/lib/device/index.js +1 -1
  41. package/lib/element-constructor/index.cjs +1 -1
  42. package/lib/element-constructor/index.js +2 -2
  43. package/lib/en3/index.cjs +1 -1
  44. package/lib/en3/index.js +2 -2
  45. package/lib/image/index.cjs +1 -1
  46. package/lib/image/index.js +1 -1
  47. package/lib/{index-D-FPaxdJ.js → index-BigQay-N.js} +113 -110
  48. package/lib/index-DTrWxWOM.cjs +9 -0
  49. package/lib/ladder/index.cjs +1 -1
  50. package/lib/ladder/index.js +1 -1
  51. package/lib/media/index.cjs +1 -1
  52. package/lib/media/index.js +1 -1
  53. package/lib/modal/index.cjs +1 -1
  54. package/lib/modal/index.js +3 -3
  55. package/lib/order/index.cjs +1 -1
  56. package/lib/order/index.d.ts +5 -4
  57. package/lib/order/index.js +2 -2
  58. package/lib/popover/PopoverButtonElement.d.ts +3 -3
  59. package/lib/popover/index.cjs +1 -1
  60. package/lib/popover/index.js +61 -48
  61. package/lib/resized/index.cjs +1 -1
  62. package/lib/resized/index.js +1 -1
  63. package/lib/scroll/ScrollBulletButtonsElement.d.ts +12 -0
  64. package/lib/scroll/ScrollButtonElement.d.ts +6 -0
  65. package/lib/scroll/ScrollElement.d.ts +27 -11
  66. package/lib/scroll/ScrollSetButtonElement.d.ts +10 -0
  67. package/lib/scroll/ScrollStepButtonElement.d.ts +10 -0
  68. package/lib/scroll/index.cjs +1 -1
  69. package/lib/scroll/index.d.ts +3 -0
  70. package/lib/scroll/index.js +394 -254
  71. package/lib/select/index.cjs +1 -1
  72. package/lib/select/index.js +1 -1
  73. package/lib/source/SourceClass.d.ts +1 -1
  74. package/lib/source/index.cjs +1 -1
  75. package/lib/source/index.js +2 -2
  76. package/lib/store/Store.d.ts +1 -0
  77. package/lib/store/index.cjs +1 -1
  78. package/lib/store/index.js +3 -3
  79. package/lib/studio/index.cjs +2 -2
  80. package/lib/studio/index.js +96 -94
  81. package/lib/{tags-D9nd9mMM.js → tags-CAxO5Rs3.js} +1 -1
  82. package/lib/{tags-D3-tO-m6.cjs → tags-Dz_Yisj_.cjs} +1 -1
  83. package/lib/theme/index.cjs +1 -1
  84. package/lib/theme/index.d.ts +5 -0
  85. package/lib/theme/index.js +7 -6
  86. package/lib/video/index.cjs +1 -1
  87. package/lib/video/index.js +1 -1
  88. package/package.json +33 -6
  89. package/lib/Store-DdDuj5hz.js +0 -153
  90. package/lib/Store-Dis8QUAR.cjs +0 -1
  91. package/lib/WheelControls-BqO_fTyY.js +0 -92
  92. package/lib/WheelControls-fiz52vcl.cjs +0 -1
  93. package/lib/abstract-elements/AbstractButtonElement.d.ts +0 -6
  94. package/lib/abstract-elements/index.cjs +0 -1
  95. package/lib/abstract-elements/index.d.ts +0 -1
  96. package/lib/abstract-elements/index.js +0 -27
  97. package/lib/index-MKoD8NCT.cjs +0 -9
@@ -1 +1 @@
1
- "use strict";var v=Object.defineProperty,z=Object.defineProperties;var B=Object.getOwnPropertyDescriptors;var N=Object.getOwnPropertySymbols;var E=Object.prototype.hasOwnProperty,G=Object.prototype.propertyIsEnumerable;var D=(r,i,t)=>i in r?v(r,i,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[i]=t,I=(r,i)=>{for(var t in i||(i={}))E.call(i,t)&&D(r,t,i[t]);if(N)for(var t of N(i))G.call(i,t)&&D(r,t,i[t]);return r},M=(r,i)=>z(r,B(i));var P=(r,i,t)=>{if(!i.has(r))throw TypeError("Cannot "+t)};var e=(r,i,t)=>(P(r,i,"read from private field"),t?t.call(r):i.get(r)),n=(r,i,t)=>{if(i.has(r))throw TypeError("Cannot add the same private member more than once");i instanceof WeakSet?i.add(r):i.set(r,t)},h=(r,i,t,s)=>(P(r,i,"write to private field"),s?s.call(r,t):i.set(r,t),t);var k=(r,i,t)=>(P(r,i,"access private method"),t);const R=require("./Store-Dis8QUAR.cjs"),w=require("./math-GDWEqu7y.cjs"),C=require("./number-yVpzMdbQ.cjs"),L=require("./polyfills-CrcS4RcO.cjs"),_=require("./ticker/index.cjs");var d,f,x,g,m,b,l,a,c,u,F,j,q,p,S,A;class H extends R.Store{constructor(t,s){super(t||0);n(this,F);n(this,q);n(this,d,void 0);n(this,f,void 0);n(this,x,void 0);n(this,g,void 0);n(this,m,new R.Store(!1));n(this,b,0);n(this,l,0);n(this,a,0);n(this,c,0);n(this,u,void 0);n(this,S,t=>{const s=this.current;C.preciseNumber(this.current,4)===C.preciseNumber(this.target,4)&&(this.stopAnimation(),this.current=this.target),this.current=w.damp(this.current,this.target,e(this,g),t.elapsed);const y=Math.abs(s-this.target);h(this,l,y/t.elapsed)});n(this,A,()=>{this.set(e(this,u),!0)});h(this,g,(s==null?void 0:s.damping)||.01),h(this,f,s==null?void 0:s.order),h(this,d,s==null?void 0:s.maxFPS),h(this,x,s==null?void 0:s.culling),h(this,a,L.nullishCoalescing(s==null?void 0:s.min,-1/0)),h(this,c,L.nullishCoalescing(s==null?void 0:s.max,1/0)),h(this,u,this.current)}get target(){return e(this,u)}get isRunning(){return e(this,m)}get direction(){return e(this,b)}get maxFPS(){return e(this,d)}get speed(){return e(this,l)}get min(){return e(this,a)}set min(t){h(this,a,t),e(this,A).call(this)}get max(){return e(this,c)}set max(t){h(this,c,t),e(this,A).call(this)}get length(){return e(this,c)-e(this,a)}get progress(){return this.length?C.preciseNumber((this.current-e(this,a))/this.length,6):0}get damping(){return e(this,g)}set damping(t){h(this,g,t)}get entry(){return M(I({},super.entry),{min:e(this,a),max:e(this,c),length:this.length,direction:this.direction,progress:this.progress,speed:this.speed})}set(t,s=!1){const y=e(this,u);h(this,u,w.clamp(t,e(this,a),e(this,c))),s&&(this.current=e(this,u)),e(this,u)!==y&&(h(this,l,0),h(this,b,Math.sign(t-e(this,u))||1),k(this,q,p).call(this))}shift(t,s=!1){this.set(e(this,u)+t,s)}close(){super.close(),this.stopAnimation()}reset(){this.set(this.initial,!0)}stopAnimation(){e(this,m).current&&(h(this,l,0),e(this,m).current=!1,_.ticker.unsubscribe(e(this,S)))}}d=new WeakMap,f=new WeakMap,x=new WeakMap,g=new WeakMap,m=new WeakMap,b=new WeakMap,l=new WeakMap,a=new WeakMap,c=new WeakMap,u=new WeakMap,F=new WeakSet,j=function(){e(this,m).current||(e(this,m).current=!0,_.ticker.subscribe(e(this,S),{maxFPS:e(this,d),order:e(this,f),culling:e(this,x)}))},q=new WeakSet,p=function(){e(this,g)?this.current!==this.target&&k(this,F,j).call(this):(this.current=this.target,this.stopAnimation())},S=new WeakMap,A=new WeakMap;exports.Damped=H;
1
+ "use strict";var v=Object.defineProperty,z=Object.defineProperties;var B=Object.getOwnPropertyDescriptors;var N=Object.getOwnPropertySymbols;var E=Object.prototype.hasOwnProperty,G=Object.prototype.propertyIsEnumerable;var D=(r,i,t)=>i in r?v(r,i,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[i]=t,I=(r,i)=>{for(var t in i||(i={}))E.call(i,t)&&D(r,t,i[t]);if(N)for(var t of N(i))G.call(i,t)&&D(r,t,i[t]);return r},M=(r,i)=>z(r,B(i));var P=(r,i,t)=>{if(!i.has(r))throw TypeError("Cannot "+t)};var e=(r,i,t)=>(P(r,i,"read from private field"),t?t.call(r):i.get(r)),n=(r,i,t)=>{if(i.has(r))throw TypeError("Cannot add the same private member more than once");i instanceof WeakSet?i.add(r):i.set(r,t)},h=(r,i,t,s)=>(P(r,i,"write to private field"),s?s.call(r,t):i.set(r,t),t);var k=(r,i,t)=>(P(r,i,"access private method"),t);const R=require("./Store-C-1ruEIm.cjs"),w=require("./math-GDWEqu7y.cjs"),C=require("./number-yVpzMdbQ.cjs"),L=require("./polyfills-CrcS4RcO.cjs"),_=require("./ticker/index.cjs");var d,f,x,g,m,b,l,a,c,u,F,j,q,p,S,A;class H extends R.Store{constructor(t,s){super(t||0);n(this,F);n(this,q);n(this,d,void 0);n(this,f,void 0);n(this,x,void 0);n(this,g,void 0);n(this,m,new R.Store(!1));n(this,b,0);n(this,l,0);n(this,a,0);n(this,c,0);n(this,u,void 0);n(this,S,t=>{const s=this.current;C.preciseNumber(this.current,4)===C.preciseNumber(this.target,4)&&(this.stopAnimation(),this.current=this.target),this.current=w.damp(this.current,this.target,e(this,g),t.elapsed);const y=Math.abs(s-this.target);h(this,l,y/t.elapsed)});n(this,A,()=>{this.set(e(this,u),!0)});h(this,g,(s==null?void 0:s.damping)||.01),h(this,f,s==null?void 0:s.order),h(this,d,s==null?void 0:s.maxFPS),h(this,x,s==null?void 0:s.culling),h(this,a,L.nullishCoalescing(s==null?void 0:s.min,-1/0)),h(this,c,L.nullishCoalescing(s==null?void 0:s.max,1/0)),h(this,u,this.current)}get target(){return e(this,u)}get isRunning(){return e(this,m)}get direction(){return e(this,b)}get maxFPS(){return e(this,d)}get speed(){return e(this,l)}get min(){return e(this,a)}set min(t){h(this,a,t),e(this,A).call(this)}get max(){return e(this,c)}set max(t){h(this,c,t),e(this,A).call(this)}get length(){return e(this,c)-e(this,a)}get progress(){return this.length?C.preciseNumber((this.current-e(this,a))/this.length,6):0}get damping(){return e(this,g)}set damping(t){h(this,g,t)}get entry(){return M(I({},super.entry),{min:e(this,a),max:e(this,c),length:this.length,direction:this.direction,progress:this.progress,speed:this.speed})}set(t,s=!1){const y=e(this,u);h(this,u,w.clamp(t,e(this,a),e(this,c))),s&&(this.current=e(this,u)),e(this,u)!==y&&(h(this,l,0),h(this,b,Math.sign(t-e(this,u))||1),k(this,q,p).call(this))}shift(t,s=!1){this.set(e(this,u)+t,s)}close(){super.close(),this.stopAnimation()}reset(){this.set(this.initial,!0)}stopAnimation(){e(this,m).current&&(h(this,l,0),e(this,m).current=!1,_.ticker.unsubscribe(e(this,S)))}}d=new WeakMap,f=new WeakMap,x=new WeakMap,g=new WeakMap,m=new WeakMap,b=new WeakMap,l=new WeakMap,a=new WeakMap,c=new WeakMap,u=new WeakMap,F=new WeakSet,j=function(){e(this,m).current||(e(this,m).current=!0,_.ticker.subscribe(e(this,S),{maxFPS:e(this,d),order:e(this,f),culling:e(this,x)}))},q=new WeakSet,p=function(){e(this,g)?this.current!==this.target&&k(this,F,j).call(this):(this.current=this.target,this.stopAnimation())},S=new WeakMap,A=new WeakMap;exports.Damped=H;
@@ -20,7 +20,7 @@ var i = (r, e, t) => (p(r, e, "read from private field"), t ? t.call(r) : e.get(
20
20
  e instanceof WeakSet ? e.add(r) : e.set(r, t);
21
21
  }, h = (r, e, t, s) => (p(r, e, "write to private field"), s ? s.call(r, t) : e.set(r, t), t);
22
22
  var C = (r, e, t) => (p(r, e, "access private method"), t);
23
- import { S as w } from "./Store-DdDuj5hz.js";
23
+ import { S as w } from "./Store-BQXXikps.js";
24
24
  import { c as H, d as J } from "./math-BOBiC4TN.js";
25
25
  import { p as D } from "./number-Bo5RdrA1.js";
26
26
  import { n as L } from "./polyfills-DJUYczFm.js";
@@ -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-Dis8QUAR.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-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;
@@ -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-DdDuj5hz.js";
10
+ import { S as p } from "./Store-BQXXikps.js";
11
11
  var t;
12
12
  class d extends p {
13
13
  constructor(e, c, l) {
@@ -9,7 +9,7 @@ var n = (r, s, t) => (M(r, s, "read from private field"), t ? t.call(r) : s.get(
9
9
  }, h = (r, s, t, i) => (M(r, s, "write to private field"), i ? i.call(r, t) : s.set(r, t), t);
10
10
  import { RESIZE_ORDER as I } from "./order/index.js";
11
11
  import { windowResizer as b } from "./window-resizer/index.js";
12
- import { S } from "./Store-DdDuj5hz.js";
12
+ import { S } from "./Store-BQXXikps.js";
13
13
  var l, g, q, x, o, p, w;
14
14
  class k {
15
15
  constructor(s) {
@@ -1 +1 @@
1
- "use strict";var S=(r,s,t)=>{if(!s.has(r))throw TypeError("Cannot "+t)};var n=(r,s,t)=>(S(r,s,"read from private field"),t?t.call(r):s.get(r)),o=(r,s,t)=>{if(s.has(r))throw TypeError("Cannot add the same private member more than once");s instanceof WeakSet?s.add(r):s.set(r,t)},c=(r,s,t,i)=>(S(r,s,"write to private field"),i?i.call(r,t):s.set(r,t),t);const k=require("./order/index.cjs"),M=require("./window-resizer/index.cjs"),z=require("./Store-Dis8QUAR.cjs");var l,g,q,x,a,p,w;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,w,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 m=/\d+x/g,h=i.find(f=>f.match(m));c(this,q,h?parseInt(h):1);const y=/\d+max/g,P=/\d+min/g,e=i.find(f=>f.match(y)),u=i.find(f=>f.match(P));e?(c(this,a,parseInt(e)),c(this,p,"max"),c(this,x,`(max-width: ${n(this,a)}px)`)):u?(c(this,a,parseInt(u)),c(this,x,`(min-width: ${n(this,a)}px)`),c(this,p,"min")):(c(this,a,0),c(this,x,`(min-width: ${n(this,a)}px)`),c(this,p,"min")),c(this,w,"."+i[i.length-1])}get url(){return n(this,l)}get name(){return n(this,g)}get density(){return n(this,q)}get query(){return n(this,x)}get extension(){return n(this,w)}get queryType(){return n(this,p)}get queryPx(){return n(this,a)}}l=new WeakMap,g=new WeakMap,q=new WeakMap,x=new WeakMap,a=new WeakMap,p=new WeakMap,w=new WeakMap;var d;class b{constructor(s){o(this,d,void 0);c(this,d,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 m=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,...m,...h]:[...m,...h]).forEach(e=>{n(this,d).has(e[0])||n(this,d).set(e[0],[]),n(this,d).get(e[0]).push(e[1])})}get mediaBuckets(){return n(this,d)}}d=new WeakMap;var E,R;class B extends z.Store{constructor(t){super(void 0);o(this,E,void 0);o(this,R,()=>{let t;n(this,E).mediaBuckets.forEach((h,y)=>{matchMedia(y).matches&&(t=h)});let i,m=0;t==null||t.forEach(h=>{h.density>m&&h.density<=Math.max(devicePixelRatio,1)&&(m=h.density,i=h)}),t!=null&&t.length&&!i&&(i=t[0]),this.current=i});c(this,E,new b(t.srcset))}close(){super.close(),this.disconnect()}connect(){M.windowResizer.subscribe(n(this,R),k.RESIZE_ORDER.SOURCE_MANAGER)}disconnect(){M.windowResizer.unsubscribe(n(this,R))}}E=new WeakMap,R=new WeakMap;exports.Source=I;exports.SourceManager=B;exports.SourceSet=b;
1
+ "use strict";var S=(r,s,t)=>{if(!s.has(r))throw TypeError("Cannot "+t)};var n=(r,s,t)=>(S(r,s,"read from private field"),t?t.call(r):s.get(r)),o=(r,s,t)=>{if(s.has(r))throw TypeError("Cannot add the same private member more than once");s instanceof WeakSet?s.add(r):s.set(r,t)},c=(r,s,t,i)=>(S(r,s,"write to private field"),i?i.call(r,t):s.set(r,t),t);const k=require("./order/index.cjs"),M=require("./window-resizer/index.cjs"),z=require("./Store-C-1ruEIm.cjs");var l,g,q,x,a,p,w;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,w,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 m=/\d+x/g,h=i.find(f=>f.match(m));c(this,q,h?parseInt(h):1);const y=/\d+max/g,P=/\d+min/g,e=i.find(f=>f.match(y)),u=i.find(f=>f.match(P));e?(c(this,a,parseInt(e)),c(this,p,"max"),c(this,x,`(max-width: ${n(this,a)}px)`)):u?(c(this,a,parseInt(u)),c(this,x,`(min-width: ${n(this,a)}px)`),c(this,p,"min")):(c(this,a,0),c(this,x,`(min-width: ${n(this,a)}px)`),c(this,p,"min")),c(this,w,"."+i[i.length-1])}get url(){return n(this,l)}get name(){return n(this,g)}get density(){return n(this,q)}get query(){return n(this,x)}get extension(){return n(this,w)}get queryType(){return n(this,p)}get queryPx(){return n(this,a)}}l=new WeakMap,g=new WeakMap,q=new WeakMap,x=new WeakMap,a=new WeakMap,p=new WeakMap,w=new WeakMap;var d;class b{constructor(s){o(this,d,void 0);c(this,d,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 m=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,...m,...h]:[...m,...h]).forEach(e=>{n(this,d).has(e[0])||n(this,d).set(e[0],[]),n(this,d).get(e[0]).push(e[1])})}get mediaBuckets(){return n(this,d)}}d=new WeakMap;var E,R;class B extends z.Store{constructor(t){super(void 0);o(this,E,void 0);o(this,R,()=>{let t;n(this,E).mediaBuckets.forEach((h,y)=>{matchMedia(y).matches&&(t=h)});let i,m=0;t==null||t.forEach(h=>{h.density>m&&h.density<=Math.max(devicePixelRatio,1)&&(m=h.density,i=h)}),t!=null&&t.length&&!i&&(i=t[0]),this.current=i});c(this,E,new b(t.srcset))}close(){super.close(),this.disconnect()}connect(){M.windowResizer.subscribe(n(this,R),k.RESIZE_ORDER.SOURCE_MANAGER)}disconnect(){M.windowResizer.unsubscribe(n(this,R))}}E=new WeakMap,R=new WeakMap;exports.Source=I;exports.SourceManager=B;exports.SourceSet=b;
@@ -0,0 +1,156 @@
1
+ var A = (s, t, e) => {
2
+ if (!t.has(s))
3
+ throw TypeError("Cannot " + e);
4
+ };
5
+ var r = (s, t, e) => (A(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, h) => (A(s, t, "write to private field"), h ? h.call(s, e) : t.set(s, e), e);
10
+ var C = (s, t, e) => (A(s, t, "access private method"), e);
11
+ import { i as z } from "./browser-0zX67oeU.js";
12
+ var l, d, S;
13
+ class M {
14
+ constructor() {
15
+ a(this, l, null);
16
+ a(this, d, "");
17
+ a(this, S, "");
18
+ z && (i(this, d, document.documentElement.getAttribute("data-project") || "unnamed"), i(this, S, r(this, d) ? r(this, d) + "-store-registry" : "store-registry"));
19
+ }
20
+ get projectName() {
21
+ return r(this, d);
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(
34
+ r(this, S)
35
+ )) {
36
+ t && (typeof t == "string" ? i(this, l, JSON.parse(t)) : i(this, l, t), f.current.forEach((e) => {
37
+ e.passport && this.updateStore(e);
38
+ }));
39
+ }
40
+ resetState() {
41
+ f.current.forEach((t) => {
42
+ t.passport && t.reset();
43
+ }), this.saveState();
44
+ }
45
+ updateStore(t) {
46
+ var h, N;
47
+ if (!Array.isArray((h = r(this, l)) == null ? void 0 : h.stores))
48
+ return t;
49
+ const e = t.passport;
50
+ if (e) {
51
+ const k = (N = r(this, l)) == null ? void 0 : N.stores.find(
52
+ (j) => j.name === e.name
53
+ );
54
+ k && (t.current = k.value);
55
+ }
56
+ return t;
57
+ }
58
+ getState() {
59
+ const t = {
60
+ stores: []
61
+ };
62
+ return f.current.forEach((e) => {
63
+ e.passport && (t.stores.find((h) => h.name === e.passport.name) || t.stores.push({
64
+ value: e.current,
65
+ name: e.passport.name
66
+ }));
67
+ }), t;
68
+ }
69
+ }
70
+ l = new WeakMap(), d = new WeakMap(), S = new WeakMap();
71
+ const q = new M();
72
+ var m, y, g, n, b, u, o, c, v, w, p, R;
73
+ class I {
74
+ constructor(t, e) {
75
+ a(this, p);
76
+ a(this, m, void 0);
77
+ a(this, y, void 0);
78
+ a(this, g, void 0);
79
+ a(this, n, void 0);
80
+ a(this, b, void 0);
81
+ a(this, u, /* @__PURE__ */ new Set());
82
+ a(this, o, void 0);
83
+ a(this, c, void 0);
84
+ a(this, v, void 0);
85
+ a(this, w, void 0);
86
+ i(this, m, e == null ? void 0 : e.passport), i(this, y, t), i(this, g, void 0), i(this, n, t), i(this, b, (e == null ? void 0 : e.equalityCheck) || ((h, N) => h === N)), e != null && e.validate && this.addMiddleware(e.validate), i(this, v, (e == null ? void 0 : e.notifyAndClose) || !1), i(this, w, (e == null ? void 0 : e.invisible) || !1), i(this, o, (e == null ? void 0 : e.skipSubscribeNotification) || !1), r(this, m) && q.updateStore(this);
87
+ }
88
+ get passport() {
89
+ return r(this, m);
90
+ }
91
+ get initial() {
92
+ return r(this, y);
93
+ }
94
+ get previous() {
95
+ return r(this, g);
96
+ }
97
+ get current() {
98
+ return r(this, n);
99
+ }
100
+ set current(t) {
101
+ if (!r(this, b).call(this, r(this, n), t)) {
102
+ if (i(this, g, r(this, n)), r(this, c))
103
+ for (const e of r(this, c))
104
+ t = e(t);
105
+ i(this, n, t), C(this, p, R).call(this), r(this, v) && this.close();
106
+ }
107
+ }
108
+ get subscribers() {
109
+ return r(this, u);
110
+ }
111
+ get entry() {
112
+ return {
113
+ current: r(this, n),
114
+ previous: r(this, g)
115
+ };
116
+ }
117
+ addMiddleware(t) {
118
+ r(this, c) || i(this, c, /* @__PURE__ */ new Set()), r(this, c).add(t);
119
+ }
120
+ removeMiddleware(t) {
121
+ var e, h;
122
+ (e = r(this, c)) == null || e.delete(t), (h = r(this, c)) != null && h.size || i(this, c, void 0);
123
+ }
124
+ subscribe(t) {
125
+ return !r(this, w) && !r(this, u).size && J(this), r(this, u).add(t), r(this, o) || t(this.entry), () => {
126
+ this.unsubscribe(t);
127
+ };
128
+ }
129
+ unsubscribe(t) {
130
+ r(this, u).delete(t), r(this, u).size || E(this);
131
+ }
132
+ reset() {
133
+ this.current = this.initial;
134
+ }
135
+ close() {
136
+ r(this, u).clear(), E(this);
137
+ }
138
+ }
139
+ m = new WeakMap(), y = new WeakMap(), g = new WeakMap(), n = new WeakMap(), b = new WeakMap(), u = new WeakMap(), o = new WeakMap(), c = new WeakMap(), v = new WeakMap(), w = new WeakMap(), p = new WeakSet(), R = function() {
140
+ for (const t of r(this, u))
141
+ t(this.entry);
142
+ };
143
+ const f = new I([], {
144
+ invisible: !0
145
+ });
146
+ function J(s) {
147
+ f.current.includes(s) || (f.current = [...f.current, s]);
148
+ }
149
+ function E(s) {
150
+ f.current.includes(s) && (f.current = f.current.filter((t) => t !== s));
151
+ }
152
+ export {
153
+ I as S,
154
+ f as a,
155
+ q as s
156
+ };
@@ -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)),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,h)=>(R(s,t,"write to private field"),h?h.call(s,e):t.set(s,e),e);var p=(s,t,e)=>(R(s,t,"access private method"),e);const M=require("./browser-CpzFX2xg.cjs");var l,d,S;class I{constructor(){a(this,l,null);a(this,d,"");a(this,S,"");M.isBrowser&&(i(this,d,document.documentElement.getAttribute("data-project")||"unnamed"),i(this,S,r(this,d)?r(this,d)+"-store-registry":"store-registry"))}get projectName(){return r(this,d)}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=>{e.passport&&this.updateStore(e)}))}resetState(){n.current.forEach(t=>{t.passport&&t.reset()}),this.saveState()}updateStore(t){var h,N;if(!Array.isArray((h=r(this,l))==null?void 0:h.stores))return t;const e=t.passport;if(e){const k=(N=r(this,l))==null?void 0:N.stores.find(z=>z.name===e.name);k&&(t.current=k.value)}return t}getState(){const t={stores:[]};return n.current.forEach(e=>{e.passport&&(t.stores.find(h=>h.name===e.passport.name)||t.stores.push({value:e.current,name:e.passport.name}))}),t}}l=new WeakMap,d=new WeakMap,S=new WeakMap;const E=new I;var m,y,g,f,o,u,b,c,v,w,A,q;class j{constructor(t,e){a(this,A);a(this,m,void 0);a(this,y,void 0);a(this,g,void 0);a(this,f,void 0);a(this,o,void 0);a(this,u,new Set);a(this,b,void 0);a(this,c,void 0);a(this,v,void 0);a(this,w,void 0);i(this,m,e==null?void 0:e.passport),i(this,y,t),i(this,g,void 0),i(this,f,t),i(this,o,(e==null?void 0:e.equalityCheck)||((h,N)=>h===N)),e!=null&&e.validate&&this.addMiddleware(e.validate),i(this,v,(e==null?void 0:e.notifyAndClose)||!1),i(this,w,(e==null?void 0:e.invisible)||!1),i(this,b,(e==null?void 0:e.skipSubscribeNotification)||!1),r(this,m)&&E.updateStore(this)}get passport(){return r(this,m)}get initial(){return r(this,y)}get previous(){return r(this,g)}get current(){return r(this,f)}set current(t){if(!r(this,o).call(this,r(this,f),t)){if(i(this,g,r(this,f)),r(this,c))for(const e of r(this,c))t=e(t);i(this,f,t),p(this,A,q).call(this),r(this,v)&&this.close()}}get subscribers(){return r(this,u)}get entry(){return{current:r(this,f),previous:r(this,g)}}addMiddleware(t){r(this,c)||i(this,c,new Set),r(this,c).add(t)}removeMiddleware(t){var e,h;(e=r(this,c))==null||e.delete(t),(h=r(this,c))!=null&&h.size||i(this,c,void 0)}subscribe(t){return!r(this,w)&&!r(this,u).size&&J(this),r(this,u).add(t),r(this,b)||t(this.entry),()=>{this.unsubscribe(t)}}unsubscribe(t){r(this,u).delete(t),r(this,u).size||C(this)}reset(){this.current=this.initial}close(){r(this,u).clear(),C(this)}}m=new WeakMap,y=new WeakMap,g=new WeakMap,f=new WeakMap,o=new WeakMap,u=new WeakMap,b=new WeakMap,c=new WeakMap,v=new WeakMap,w=new WeakMap,A=new WeakSet,q=function(){for(const t of r(this,u))t(this.entry)};const n=new j([],{invisible:!0});function J(s){n.current.includes(s)||(n.current=[...n.current,s])}function C(s){n.current.includes(s)&&(n.current=n.current.filter(t=>t!==s))}exports.Store=j;exports.activeStores=n;exports.storeRegistry=E;
@@ -1 +1 @@
1
- "use strict";var W=(t,n,o)=>{if(!n.has(t))throw TypeError("Cannot "+o)};var i=(t,n,o)=>(W(t,n,"read from private field"),o?o.call(t):n.get(t)),s=(t,n,o)=>{if(n.has(t))throw TypeError("Cannot add the same private member more than once");n instanceof WeakSet?n.add(t):n.set(t,o)},e=(t,n,o,v)=>(W(t,n,"write to private field"),v?v.call(t,o):n.set(t,o),o);const k=require("./order/index.cjs"),A=require("./window-resizer/index.cjs"),D=require("./browser-CpzFX2xg.cjs"),_=require("detect-gpu"),q=require("./Store-Dis8QUAR.cjs");var r,l,m,c,g,u,w,x,d;class I{constructor(){s(this,r,"unknown");s(this,l,"unknown");s(this,m,0);s(this,c,null);s(this,g,!1);s(this,u,!1);s(this,w,!1);s(this,x,!1);s(this,d,!1);var n,o;if(D.isBrowser){e(this,c,_.getGPUTier()),i(this,c).then(a=>{e(this,l,a.gpu||"unknown"),e(this,m,a.tier)}),A.windowResizer.subscribe(()=>{e(this,g,/Mobi|Android/i.test(navigator.userAgent)),e(this,u,"ontouchstart"in window||navigator.maxTouchPoints>0),setTimeout(()=>{e(this,u,"ontouchstart"in window||navigator.maxTouchPoints>0)},0)},k.RESIZE_ORDER.DEVICE);{const a=document.createElement("canvas"),P=a.getContext("webgl")||a.getContext("experimental-webgl");e(this,w,P&&P instanceof WebGLRenderingContext||!1)}{const a=document.createElement("canvas");a.getContext("2d")&&e(this,x,a.toDataURL("image/webp").indexOf("data:image/webp")==0)}const v=window.navigator.userAgent,E=((o=(n=window.navigator)==null?void 0:n.userAgentData)==null?void 0:o.platform)||window.navigator.platform,O=["Macintosh","MacIntel","MacPPC","Mac68K","macOS"],R=["Win32","Win64","Windows","WinCE"],T=["iPhone","iPad","iPod"];O.includes(E)?(e(this,r,"macOS"),e(this,d,!0)):T.includes(E)?(e(this,r,"iOS"),e(this,d,!0)):R.includes(E)?e(this,r,"Windows"):/Android/.test(v)?e(this,r,"Android"):/Linux/.test(E)?e(this,r,"Linux"):e(this,r,"unknown")}}get OS(){return i(this,r)}get gpu(){return i(this,l)}get gpuTier(){return i(this,m)}get gpuDetection(){return i(this,c)}get isMobile(){return i(this,g)}get isTouch(){return i(this,u)}get isWebgl(){return i(this,w)}get isWebp(){return i(this,x)}get isApple(){return i(this,d)}}r=new WeakMap,l=new WeakMap,m=new WeakMap,c=new WeakMap,g=new WeakMap,u=new WeakMap,w=new WeakMap,x=new WeakMap,d=new WeakMap;const M=new I;var S=(t=>(t.mobile="600px",t.tablet="1024px",t.notebook="1280px",t.desktop="1281px",t))(S||{}),C=(t=>(t["<=mobile"]="(max-width: 600px)",t[">=mobile"]="(min-width: 601px)",t["<=tablet"]="(max-width: 1024px)",t[">=tablet"]="(min-width: 1025px)",t["<=notebook"]="(max-width: 1280px)",t[">=notebook"]="(min-width: 1281px)",t["<=desktop"]="(max-width: 1280px)",t[">=desktop"]="(min-width: 1281px)",t))(C||{}),p,b,f,h;class L{constructor(){s(this,p,0);s(this,b,0);s(this,f,0);s(this,h,new q.Store(void 0));D.isBrowser&&A.windowResizer.subscribe(()=>{e(this,p,document.documentElement.clientWidth),e(this,b,innerHeight),e(this,f,devicePixelRatio),matchMedia("(max-width: 600px)").matches?i(this,h).current="mobile":matchMedia("(max-width: 1024px)").matches?i(this,h).current="tablet":matchMedia("(max-width: 1280px)").matches?i(this,h).current="notebook":matchMedia("(min-width: 1281px)").matches&&(i(this,h).current="desktop")},k.RESIZE_ORDER.DEVICE)}get width(){return i(this,p)}get height(){return i(this,b)}get store_type(){return i(this,h)}get pixelRatio(){return i(this,f)}}p=new WeakMap,b=new WeakMap,f=new WeakMap,h=new WeakMap;const z=new L;exports.ViewportBreakpoints=S;exports.ViewportMediaRules=C;exports.device=M;exports.viewport=z;
1
+ "use strict";var W=(t,n,o)=>{if(!n.has(t))throw TypeError("Cannot "+o)};var i=(t,n,o)=>(W(t,n,"read from private field"),o?o.call(t):n.get(t)),s=(t,n,o)=>{if(n.has(t))throw TypeError("Cannot add the same private member more than once");n instanceof WeakSet?n.add(t):n.set(t,o)},e=(t,n,o,v)=>(W(t,n,"write to private field"),v?v.call(t,o):n.set(t,o),o);const k=require("./order/index.cjs"),A=require("./window-resizer/index.cjs"),D=require("./browser-CpzFX2xg.cjs"),q=require("detect-gpu"),I=require("./Store-C-1ruEIm.cjs");var r,l,m,c,g,u,w,x,d;class M{constructor(){s(this,r,"unknown");s(this,l,"unknown");s(this,m,0);s(this,c,null);s(this,g,!1);s(this,u,!1);s(this,w,!1);s(this,x,!1);s(this,d,!1);var n,o;if(D.isBrowser){e(this,c,q.getGPUTier()),i(this,c).then(a=>{e(this,l,a.gpu||"unknown"),e(this,m,a.tier)}),A.windowResizer.subscribe(()=>{e(this,g,/Mobi|Android/i.test(navigator.userAgent)),e(this,u,"ontouchstart"in window||navigator.maxTouchPoints>0),setTimeout(()=>{e(this,u,"ontouchstart"in window||navigator.maxTouchPoints>0)},0)},k.RESIZE_ORDER.DEVICE);{const a=document.createElement("canvas"),P=a.getContext("webgl")||a.getContext("experimental-webgl");e(this,w,P&&P instanceof WebGLRenderingContext||!1)}{const a=document.createElement("canvas");a.getContext("2d")&&e(this,x,a.toDataURL("image/webp").indexOf("data:image/webp")==0)}const v=window.navigator.userAgent,E=((o=(n=window.navigator)==null?void 0:n.userAgentData)==null?void 0:o.platform)||window.navigator.platform,O=["Macintosh","MacIntel","MacPPC","Mac68K","macOS"],R=["Win32","Win64","Windows","WinCE"],T=["iPhone","iPad","iPod"];O.includes(E)?(e(this,r,"macOS"),e(this,d,!0)):T.includes(E)?(e(this,r,"iOS"),e(this,d,!0)):R.includes(E)?e(this,r,"Windows"):/Android/.test(v)?e(this,r,"Android"):/Linux/.test(E)?e(this,r,"Linux"):e(this,r,"unknown")}}get OS(){return i(this,r)}get gpu(){return i(this,l)}get gpuTier(){return i(this,m)}get gpuDetection(){return i(this,c)}get isMobile(){return i(this,g)}get isTouch(){return i(this,u)}get isWebgl(){return i(this,w)}get isWebp(){return i(this,x)}get isApple(){return i(this,d)}}r=new WeakMap,l=new WeakMap,m=new WeakMap,c=new WeakMap,g=new WeakMap,u=new WeakMap,w=new WeakMap,x=new WeakMap,d=new WeakMap;const L=new M;var S=(t=>(t.mobile="600px",t.tablet="1024px",t.notebook="1280px",t.desktop="1281px",t))(S||{}),C=(t=>(t["<=mobile"]="(max-width: 600px)",t[">=mobile"]="(min-width: 601px)",t["<=tablet"]="(max-width: 1024px)",t[">=tablet"]="(min-width: 1025px)",t["<=notebook"]="(max-width: 1280px)",t[">=notebook"]="(min-width: 1281px)",t["<=desktop"]="(max-width: 1280px)",t[">=desktop"]="(min-width: 1281px)",t))(C||{}),p,b,f,h;class _{constructor(){s(this,p,0);s(this,b,0);s(this,f,0);s(this,h,new I.Store(void 0));D.isBrowser&&A.windowResizer.subscribe(()=>{e(this,p,document.documentElement.clientWidth),e(this,b,innerHeight),e(this,f,devicePixelRatio),matchMedia("(max-width: 600px)").matches?i(this,h).current="mobile":matchMedia("(max-width: 1024px)").matches?i(this,h).current="tablet":matchMedia("(max-width: 1280px)").matches?i(this,h).current="notebook":matchMedia("(min-width: 1281px)").matches&&(i(this,h).current="desktop")},k.RESIZE_ORDER.DEVICE)}get width(){return i(this,p)}get height(){return i(this,b)}get type(){return i(this,h)}get pixelRatio(){return i(this,f)}}p=new WeakMap,b=new WeakMap,f=new WeakMap,h=new WeakMap;const z=new _;exports.ViewportBreakpoints=S;exports.ViewportMediaRules=C;exports.device=L;exports.viewport=z;
@@ -11,11 +11,11 @@ import { RESIZE_ORDER as k } from "./order/index.js";
11
11
  import { windowResizer as A } from "./window-resizer/index.js";
12
12
  import { i as C } from "./browser-0zX67oeU.js";
13
13
  import { getGPUTier as O } from "detect-gpu";
14
- import { S as I } from "./Store-DdDuj5hz.js";
15
- var r, d, l, c, g, m, p, x, u;
14
+ import { S as I } from "./Store-BQXXikps.js";
15
+ var a, d, l, c, g, m, p, x, u;
16
16
  class L {
17
17
  constructor() {
18
- s(this, r, "unknown");
18
+ s(this, a, "unknown");
19
19
  s(this, d, "unknown");
20
20
  s(this, l, 0);
21
21
  s(this, c, null);
@@ -26,20 +26,20 @@ class L {
26
26
  s(this, u, !1);
27
27
  var n, o;
28
28
  if (C) {
29
- e(this, c, O()), i(this, c).then((a) => {
30
- e(this, d, a.gpu || "unknown"), e(this, l, a.tier);
29
+ e(this, c, O()), i(this, c).then((r) => {
30
+ e(this, d, r.gpu || "unknown"), e(this, l, r.tier);
31
31
  }), A.subscribe(() => {
32
32
  e(this, g, /Mobi|Android/i.test(navigator.userAgent)), e(this, m, "ontouchstart" in window || navigator.maxTouchPoints > 0), setTimeout(() => {
33
33
  e(this, m, "ontouchstart" in window || navigator.maxTouchPoints > 0);
34
34
  }, 0);
35
35
  }, k.DEVICE);
36
36
  {
37
- const a = document.createElement("canvas"), E = a.getContext("webgl") || a.getContext("experimental-webgl");
37
+ const r = document.createElement("canvas"), E = r.getContext("webgl") || r.getContext("experimental-webgl");
38
38
  e(this, p, E && E instanceof WebGLRenderingContext || !1);
39
39
  }
40
40
  {
41
- const a = document.createElement("canvas");
42
- a.getContext("2d") && e(this, x, a.toDataURL("image/webp").indexOf("data:image/webp") == 0);
41
+ const r = document.createElement("canvas");
42
+ r.getContext("2d") && e(this, x, r.toDataURL("image/webp").indexOf("data:image/webp") == 0);
43
43
  }
44
44
  const v = window.navigator.userAgent, P = ((o = (n = window.navigator) == null ? void 0 : n.userAgentData) == null ? void 0 : o.platform) || window.navigator.platform, D = [
45
45
  "Macintosh",
@@ -48,11 +48,11 @@ class L {
48
48
  "Mac68K",
49
49
  "macOS"
50
50
  ], S = ["Win32", "Win64", "Windows", "WinCE"], T = ["iPhone", "iPad", "iPod"];
51
- D.includes(P) ? (e(this, r, "macOS"), e(this, u, !0)) : T.includes(P) ? (e(this, r, "iOS"), e(this, u, !0)) : S.includes(P) ? e(this, r, "Windows") : /Android/.test(v) ? e(this, r, "Android") : /Linux/.test(P) ? e(this, r, "Linux") : e(this, r, "unknown");
51
+ D.includes(P) ? (e(this, a, "macOS"), e(this, u, !0)) : T.includes(P) ? (e(this, a, "iOS"), e(this, u, !0)) : S.includes(P) ? e(this, a, "Windows") : /Android/.test(v) ? e(this, a, "Android") : /Linux/.test(P) ? e(this, a, "Linux") : e(this, a, "unknown");
52
52
  }
53
53
  }
54
54
  get OS() {
55
- return i(this, r);
55
+ return i(this, a);
56
56
  }
57
57
  get gpu() {
58
58
  return i(this, d);
@@ -79,17 +79,15 @@ class L {
79
79
  return i(this, u);
80
80
  }
81
81
  }
82
- r = new WeakMap(), d = new WeakMap(), l = new WeakMap(), c = new WeakMap(), g = new WeakMap(), m = new WeakMap(), p = new WeakMap(), x = new WeakMap(), u = new WeakMap();
83
- const Z = new L();
84
- var M = /* @__PURE__ */ ((t) => (t.mobile = "600px", t.tablet = "1024px", t.notebook = "1280px", t.desktop = "1281px", t))(M || {}), _ = /* @__PURE__ */ ((t) => (t["<=mobile"] = "(max-width: 600px)", t[">=mobile"] = "(min-width: 601px)", t["<=tablet"] = "(max-width: 1024px)", t[">=tablet"] = "(min-width: 1025px)", t["<=notebook"] = "(max-width: 1280px)", t[">=notebook"] = "(min-width: 1281px)", t["<=desktop"] = "(max-width: 1280px)", t[">=desktop"] = "(min-width: 1281px)", t))(_ || {}), w, f, b, h;
85
- class y {
82
+ a = new WeakMap(), d = new WeakMap(), l = new WeakMap(), c = new WeakMap(), g = new WeakMap(), m = new WeakMap(), p = new WeakMap(), x = new WeakMap(), u = new WeakMap();
83
+ const _ = new L();
84
+ var M = /* @__PURE__ */ ((t) => (t.mobile = "600px", t.tablet = "1024px", t.notebook = "1280px", t.desktop = "1281px", t))(M || {}), y = /* @__PURE__ */ ((t) => (t["<=mobile"] = "(max-width: 600px)", t[">=mobile"] = "(min-width: 601px)", t["<=tablet"] = "(max-width: 1024px)", t[">=tablet"] = "(min-width: 1025px)", t["<=notebook"] = "(max-width: 1280px)", t[">=notebook"] = "(min-width: 1281px)", t["<=desktop"] = "(max-width: 1280px)", t[">=desktop"] = "(min-width: 1281px)", t))(y || {}), w, f, b, h;
85
+ class G {
86
86
  constructor() {
87
87
  s(this, w, 0);
88
88
  s(this, f, 0);
89
89
  s(this, b, 0);
90
- s(this, h, new I(
91
- void 0
92
- ));
90
+ s(this, h, new I(void 0));
93
91
  C && A.subscribe(() => {
94
92
  e(this, w, document.documentElement.clientWidth), e(this, f, innerHeight), e(this, b, devicePixelRatio), matchMedia(
95
93
  "(max-width: 600px)"
@@ -112,7 +110,7 @@ class y {
112
110
  get height() {
113
111
  return i(this, f);
114
112
  }
115
- get store_type() {
113
+ get type() {
116
114
  return i(this, h);
117
115
  }
118
116
  get pixelRatio() {
@@ -120,10 +118,10 @@ class y {
120
118
  }
121
119
  }
122
120
  w = new WeakMap(), f = new WeakMap(), b = new WeakMap(), h = new WeakMap();
123
- const j = new y();
121
+ const j = new G();
124
122
  export {
125
123
  M as V,
126
- _ as a,
127
- Z as d,
124
+ y as a,
125
+ _ as d,
128
126
  j as v
129
127
  };
@@ -0,0 +1 @@
1
+ "use strict";var x=(s,i,e)=>{if(!i.has(s))throw TypeError("Cannot "+e)};var t=(s,i,e)=>(x(s,i,"read from private field"),e?e.call(s):i.get(s)),n=(s,i,e)=>{if(i.has(s))throw TypeError("Cannot add the same private member more than once");i instanceof WeakSet?i.add(s):i.set(s,e)},d=(s,i,e,l)=>(x(s,i,"write to private field"),l?l.call(s,e):i.set(s,e),e);const f=require("./browser-CpzFX2xg.cjs"),y=require("./dom-JBOkFLTh.cjs"),M=require("./notifier/index.cjs");var E;class b{constructor(){n(this,E,new M.Notifier)}get changeEvent(){return t(this,E)}}E=new WeakMap;var c,r,a,u;class L extends b{constructor(e){super();n(this,c,null);n(this,r,null);n(this,a,"offsetHeight");n(this,u,e=>{const l=e.shiftKey?-1:1;let h;e.code==="Space"?h=l*t(this,r)[t(this,a)]*.4:e.code==="ArrowLeft"?h=-1*t(this,r)[t(this,a)]*.2:e.code==="ArrowRight"?h=1*t(this,r)[t(this,a)]*.2:e.code==="ArrowUp"?h=-1*t(this,r)[t(this,a)]*.2:e.code==="ArrowDown"?h=1*t(this,r)[t(this,a)]*.2:e.code==="PageUp"?h=-1*t(this,r)[t(this,a)]:e.code==="PageDown"?h=1*t(this,r)[t(this,a)]:e.code==="Home"?h=0:e.code==="End"&&(h=t(this,a)==="offsetWidth"?t(this,r).scrollWidth:t(this,r).scrollHeight),h&&(e.stopPropagation(),this.changeEvent.notify(h))});f.isBrowser&&(d(this,c,e!=null&&e.element&&y.getElement(e.element)||window),d(this,r,t(this,c)instanceof HTMLElement?t(this,c):document.documentElement),this.dimension=e==null?void 0:e.dimension)}set dimension(e){d(this,a,e==="width"?"offsetWidth":"offsetHeight")}connect(){f.isBrowser&&t(this,c).addEventListener("keydown",t(this,u))}disconnect(){f.isBrowser&&t(this,c).removeEventListener("keydown",t(this,u))}}c=new WeakMap,r=new WeakMap,a=new WeakMap,u=new WeakMap;var o,w,m,g;class v extends b{constructor(e){super();n(this,o,null);n(this,w,void 0);n(this,m,void 0);n(this,g,e=>{let l=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(l=(this.axis==="max"?Math.abs(e.deltaX)>Math.abs(e.deltaY)?e.deltaX:e.deltaY:this.axis==="x"?e.deltaX:e.deltaY)*this.speed,e.stopPropagation(),e.preventDefault(),this.debounce){const h=Date.now();if(h-t(this,m)>40&&(l=100*Math.sign(l)),d(this,m,h),Math.abs(l)<100||t(this,w))return;this.changeEvent.notify(l),d(this,w,setTimeout(()=>{d(this,w,void 0)},80))}else this.changeEvent.notify(l)});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,d(this,m,Date.now()),f.isBrowser&&d(this,o,e!=null&&e.element&&y.getElement(e.element)||window)}connect(){f.isBrowser&&t(this,o).addEventListener("wheel",t(this,g),{passive:!1})}disconnect(){f.isBrowser&&t(this,o).removeEventListener("wheel",t(this,g))}}o=new WeakMap,w=new WeakMap,m=new WeakMap,g=new WeakMap;exports.Controls=b;exports.KeyboardControls=L;exports.WheelControls=v;
@@ -0,0 +1,97 @@
1
+ var x = (s, i, e) => {
2
+ if (!i.has(s))
3
+ throw TypeError("Cannot " + e);
4
+ };
5
+ var t = (s, i, e) => (x(s, i, "read from private field"), e ? e.call(s) : i.get(s)), n = (s, i, e) => {
6
+ if (i.has(s))
7
+ throw TypeError("Cannot add the same private member more than once");
8
+ i instanceof WeakSet ? i.add(s) : i.set(s, e);
9
+ }, r = (s, i, e, l) => (x(s, i, "write to private field"), l ? l.call(s, e) : i.set(s, e), e);
10
+ import { i as c } from "./browser-0zX67oeU.js";
11
+ import { g as b } from "./dom-0S_WDL4g.js";
12
+ import { Notifier as M } from "./notifier/index.js";
13
+ var E;
14
+ class y {
15
+ constructor() {
16
+ n(this, E, new M());
17
+ }
18
+ get changeEvent() {
19
+ return t(this, E);
20
+ }
21
+ }
22
+ E = new WeakMap();
23
+ var f, a, d, u;
24
+ class W extends y {
25
+ constructor(e) {
26
+ super();
27
+ n(this, f, null);
28
+ n(this, a, null);
29
+ n(this, d, "offsetHeight");
30
+ n(this, u, (e) => {
31
+ const l = e.shiftKey ? -1 : 1;
32
+ let h;
33
+ e.code === "Space" ? h = l * t(this, a)[t(this, d)] * 0.4 : e.code === "ArrowLeft" ? h = -1 * t(this, a)[t(this, d)] * 0.2 : e.code === "ArrowRight" ? h = 1 * t(this, a)[t(this, d)] * 0.2 : e.code === "ArrowUp" ? h = -1 * t(this, a)[t(this, d)] * 0.2 : e.code === "ArrowDown" ? h = 1 * t(this, a)[t(this, d)] * 0.2 : e.code === "PageUp" ? h = -1 * t(this, a)[t(this, d)] : e.code === "PageDown" ? h = 1 * t(this, a)[t(this, d)] : e.code === "Home" ? h = 0 : e.code === "End" && (h = t(this, d) === "offsetWidth" ? t(this, a).scrollWidth : t(this, a).scrollHeight), h && (e.stopPropagation(), this.changeEvent.notify(h));
34
+ });
35
+ c && (r(this, f, e != null && e.element && b(e.element) || window), r(this, a, t(this, f) instanceof HTMLElement ? t(this, f) : document.documentElement), this.dimension = e == null ? void 0 : e.dimension);
36
+ }
37
+ set dimension(e) {
38
+ r(this, d, e === "width" ? "offsetWidth" : "offsetHeight");
39
+ }
40
+ connect() {
41
+ c && t(this, f).addEventListener(
42
+ "keydown",
43
+ t(this, u)
44
+ );
45
+ }
46
+ disconnect() {
47
+ c && t(this, f).removeEventListener(
48
+ "keydown",
49
+ t(this, u)
50
+ );
51
+ }
52
+ }
53
+ f = new WeakMap(), a = new WeakMap(), d = new WeakMap(), u = new WeakMap();
54
+ var m, w, o, g;
55
+ class X extends y {
56
+ constructor(e) {
57
+ super();
58
+ n(this, m, null);
59
+ n(this, w, void 0);
60
+ n(this, o, void 0);
61
+ n(this, g, (e) => {
62
+ let l = 0;
63
+ if (!(this.axis === "x" && Math.abs(e.deltaY) > Math.abs(e.deltaX) || this.axis === "y" && Math.abs(e.deltaX) > Math.abs(e.deltaY)))
64
+ if (l = (this.axis === "max" ? Math.abs(e.deltaX) > Math.abs(e.deltaY) ? e.deltaX : e.deltaY : this.axis === "x" ? e.deltaX : e.deltaY) * this.speed, e.stopPropagation(), e.preventDefault(), this.debounce) {
65
+ const h = Date.now();
66
+ if (h - t(this, o) > 40 && (l = 100 * Math.sign(l)), r(this, o, h), Math.abs(l) < 100 || t(this, w))
67
+ return;
68
+ this.changeEvent.notify(l), r(this, w, setTimeout(() => {
69
+ r(this, w, void 0);
70
+ }, 80));
71
+ } else
72
+ this.changeEvent.notify(l);
73
+ });
74
+ 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, r(this, o, Date.now()), c && r(this, m, e != null && e.element && b(e.element) || window);
75
+ }
76
+ connect() {
77
+ c && t(this, m).addEventListener(
78
+ "wheel",
79
+ t(this, g),
80
+ {
81
+ passive: !1
82
+ }
83
+ );
84
+ }
85
+ disconnect() {
86
+ c && t(this, m).removeEventListener(
87
+ "wheel",
88
+ t(this, g)
89
+ );
90
+ }
91
+ }
92
+ m = new WeakMap(), w = new WeakMap(), o = new WeakMap(), g = new WeakMap();
93
+ export {
94
+ y as C,
95
+ W as K,
96
+ X as W
97
+ };
@@ -1 +1 @@
1
- "use strict";var L=Object.defineProperty,_=Object.defineProperties;var z=Object.getOwnPropertyDescriptors;var w=Object.getOwnPropertySymbols;var B=Object.prototype.hasOwnProperty,E=Object.prototype.propertyIsEnumerable;var D=(r,t,e)=>t in r?L(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e,A=(r,t)=>{for(var e in t||(t={}))B.call(t,e)&&D(r,e,t[e]);if(w)for(var e of w(t))E.call(t,e)&&D(r,e,t[e]);return r},M=(r,t)=>_(r,z(t));var T=(r,t,e)=>{if(!t.has(r))throw TypeError("Cannot "+e)};var i=(r,t,e)=>(T(r,t,"read from private field"),e?e.call(r):t.get(r)),h=(r,t,e)=>{if(t.has(r))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(r):t.set(r,e)},n=(r,t,e,s)=>(T(r,t,"write to private field"),s?s.call(r,e):t.set(r,e),e);var u=(r,t,e)=>(T(r,t,"access private method"),e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const G=require("../Damped-B0eRyTcV.cjs"),N=require("../Store-Dis8QUAR.cjs"),H=require("../easings-DsS5-Kqc.cjs"),I=require("../math-GDWEqu7y.cjs"),O=require("../number-yVpzMdbQ.cjs"),F=require("../polyfills-CrcS4RcO.cjs"),R=require("../ticker/index.cjs");var f,b,S,q,g,c,l,m,x,y,k,P,j,a,d,C;class J extends N.Store{constructor(e,s){super(e||0);h(this,y);h(this,P);h(this,a);h(this,f,void 0);h(this,b,void 0);h(this,S,void 0);h(this,q,H.linear);h(this,g,1e3);h(this,c,new N.Store(!1));h(this,l,0);h(this,m,0);h(this,x,0);h(this,C,e=>{const s=(e.timestamp-e.startTimestamp)/1e3/(i(this,g)/1e3),v=i(this,q).call(this,I.clamp(s,0,1));this.current=O.preciseNumber(i(this,l)+(i(this,m)-i(this,l))*v,6),s>1&&u(this,a,d).call(this)});u(this,y,k).call(this,s)}get isRunning(){return i(this,c)}get direction(){return i(this,x)}get length(){return i(this,m)-i(this,l)}get progress(){return this.length?O.preciseNumber((this.current-i(this,l))/this.length,6):0}get entry(){return M(A({},super.entry),{length:this.length,direction:this.direction,progress:this.progress})}set(e,s){s!=null&&s.restart&&(this.current=this.initial),n(this,l,this.current),n(this,m,e),n(this,x,Math.sign(this.length)),u(this,y,k).call(this,s),i(this,g)?(u(this,a,d).call(this),u(this,P,j).call(this)):(this.current=i(this,m),u(this,a,d).call(this))}shift(e,s){this.set(this.current+e,s)}reset(){u(this,a,d).call(this),super.reset()}close(){super.close(),u(this,a,d).call(this)}}f=new WeakMap,b=new WeakMap,S=new WeakMap,q=new WeakMap,g=new WeakMap,c=new WeakMap,l=new WeakMap,m=new WeakMap,x=new WeakMap,y=new WeakSet,k=function(e){n(this,q,F.nullishCoalescing(e==null?void 0:e.easing,i(this,q))),n(this,g,F.nullishCoalescing(e==null?void 0:e.duration,i(this,g))),n(this,f,F.nullishCoalescing(e==null?void 0:e.maxFPS,i(this,f))),n(this,b,F.nullishCoalescing(e==null?void 0:e.order,i(this,b))),n(this,S,F.nullishCoalescing(e==null?void 0:e.culling,i(this,S)))},P=new WeakSet,j=function(){i(this,c).current||(i(this,c).current=!0,R.ticker.subscribe(i(this,C),{maxFPS:i(this,f),order:i(this,b),culling:i(this,S)}))},a=new WeakSet,d=function(){i(this,c).current&&(i(this,c).current=!1,R.ticker.unsubscribe(i(this,C)))},C=new WeakMap;exports.Damped=G.Damped;exports.Tweened=J;
1
+ "use strict";var L=Object.defineProperty,_=Object.defineProperties;var z=Object.getOwnPropertyDescriptors;var w=Object.getOwnPropertySymbols;var B=Object.prototype.hasOwnProperty,E=Object.prototype.propertyIsEnumerable;var D=(r,t,e)=>t in r?L(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e,A=(r,t)=>{for(var e in t||(t={}))B.call(t,e)&&D(r,e,t[e]);if(w)for(var e of w(t))E.call(t,e)&&D(r,e,t[e]);return r},M=(r,t)=>_(r,z(t));var T=(r,t,e)=>{if(!t.has(r))throw TypeError("Cannot "+e)};var i=(r,t,e)=>(T(r,t,"read from private field"),e?e.call(r):t.get(r)),h=(r,t,e)=>{if(t.has(r))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(r):t.set(r,e)},n=(r,t,e,s)=>(T(r,t,"write to private field"),s?s.call(r,e):t.set(r,e),e);var u=(r,t,e)=>(T(r,t,"access private method"),e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const G=require("../Damped-9h4qaGcS.cjs"),N=require("../Store-C-1ruEIm.cjs"),H=require("../easings-DsS5-Kqc.cjs"),I=require("../math-GDWEqu7y.cjs"),O=require("../number-yVpzMdbQ.cjs"),F=require("../polyfills-CrcS4RcO.cjs"),R=require("../ticker/index.cjs");var f,b,S,q,g,c,l,m,x,y,k,P,j,a,d,C;class J extends N.Store{constructor(e,s){super(e||0);h(this,y);h(this,P);h(this,a);h(this,f,void 0);h(this,b,void 0);h(this,S,void 0);h(this,q,H.linear);h(this,g,1e3);h(this,c,new N.Store(!1));h(this,l,0);h(this,m,0);h(this,x,0);h(this,C,e=>{const s=(e.timestamp-e.startTimestamp)/1e3/(i(this,g)/1e3),v=i(this,q).call(this,I.clamp(s,0,1));this.current=O.preciseNumber(i(this,l)+(i(this,m)-i(this,l))*v,6),s>1&&u(this,a,d).call(this)});u(this,y,k).call(this,s)}get isRunning(){return i(this,c)}get direction(){return i(this,x)}get length(){return i(this,m)-i(this,l)}get progress(){return this.length?O.preciseNumber((this.current-i(this,l))/this.length,6):0}get entry(){return M(A({},super.entry),{length:this.length,direction:this.direction,progress:this.progress})}set(e,s){s!=null&&s.restart&&(this.current=this.initial),n(this,l,this.current),n(this,m,e),n(this,x,Math.sign(this.length)),u(this,y,k).call(this,s),i(this,g)?(u(this,a,d).call(this),u(this,P,j).call(this)):(this.current=i(this,m),u(this,a,d).call(this))}shift(e,s){this.set(this.current+e,s)}reset(){u(this,a,d).call(this),super.reset()}close(){super.close(),u(this,a,d).call(this)}}f=new WeakMap,b=new WeakMap,S=new WeakMap,q=new WeakMap,g=new WeakMap,c=new WeakMap,l=new WeakMap,m=new WeakMap,x=new WeakMap,y=new WeakSet,k=function(e){n(this,q,F.nullishCoalescing(e==null?void 0:e.easing,i(this,q))),n(this,g,F.nullishCoalescing(e==null?void 0:e.duration,i(this,g))),n(this,f,F.nullishCoalescing(e==null?void 0:e.maxFPS,i(this,f))),n(this,b,F.nullishCoalescing(e==null?void 0:e.order,i(this,b))),n(this,S,F.nullishCoalescing(e==null?void 0:e.culling,i(this,S)))},P=new WeakSet,j=function(){i(this,c).current||(i(this,c).current=!0,R.ticker.subscribe(i(this,C),{maxFPS:i(this,f),order:i(this,b),culling:i(this,S)}))},a=new WeakSet,d=function(){i(this,c).current&&(i(this,c).current=!1,R.ticker.unsubscribe(i(this,C)))},C=new WeakMap;exports.Damped=G.Damped;exports.Tweened=J;
@@ -20,8 +20,8 @@ var r = (i, e, t) => (D(i, e, "read from private field"), t ? t.call(i) : e.get(
20
20
  e instanceof WeakSet ? e.add(i) : e.set(i, t);
21
21
  }, n = (i, e, t, s) => (D(i, e, "write to private field"), s ? s.call(i, t) : e.set(i, t), t);
22
22
  var u = (i, e, t) => (D(i, e, "access private method"), t);
23
- import { D as $ } from "../Damped-Do9H-LKf.js";
24
- import { S as M } from "../Store-DdDuj5hz.js";
23
+ import { D as $ } from "../Damped-HhitpTP_.js";
24
+ import { S as M } from "../Store-BQXXikps.js";
25
25
  import { l as H } from "../easings-BKi40vHz.js";
26
26
  import { c as I } from "../math-BOBiC4TN.js";
27
27
  import { p as N } from "../number-Bo5RdrA1.js";
@@ -1 +1 @@
1
- "use strict";var v=(t,s,e)=>{if(!s.has(t))throw TypeError("Cannot "+e)};var r=(t,s,e)=>(v(t,s,"read from private field"),e?e.call(t):s.get(t)),n=(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)},a=(t,s,e,b)=>(v(t,s,"write to private field"),b?b.call(t,e):s.set(t,e),e);var f=(t,s,e)=>(v(t,s,"access private method"),e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const y=require("../Store-Dis8QUAR.cjs"),A=require("../attributes-Bf2svn4j.cjs"),S=require("../browser-CpzFX2xg.cjs"),q=require("../dom-JBOkFLTh.cjs");var i,u,c,o,d;class p extends y.Store{constructor(e,b,g,h){super(g,h);n(this,o);n(this,i,null);n(this,u,void 0);n(this,c,null);a(this,u,b),S.isBrowser&&(a(this,i,q.getElement(e)),a(this,c,new MutationObserver(l=>{l.forEach(m=>{m.type==="attributes"&&m.attributeName===r(this,u)&&f(this,o,d).call(this)})})),h!=null&&h.sync&&this.subscribe(l=>{r(this,i).setAttribute(r(this,u),l.current.toString())}))}subscribe(e){const b=super.subscribe(e);return this.observe(),b}unsubscribe(e){super.unsubscribe(e),this.unobserve()}observe(){!this.subscribers.size&&(r(this,c).observe(r(this,i),{attributes:!0}),f(this,o,d).call(this))}unobserve(){this.subscribers.size||r(this,c).disconnect()}close(){super.close(),this.unobserve()}}i=new WeakMap,u=new WeakMap,c=new WeakMap,o=new WeakSet,d=function(){const e=r(this,i).getAttribute(r(this,u));e!=null&&(this.current=A.parseAttributeValue(e))};exports.Attribute=p;
1
+ "use strict";var v=(t,s,e)=>{if(!s.has(t))throw TypeError("Cannot "+e)};var r=(t,s,e)=>(v(t,s,"read from private field"),e?e.call(t):s.get(t)),n=(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)},a=(t,s,e,b)=>(v(t,s,"write to private field"),b?b.call(t,e):s.set(t,e),e);var f=(t,s,e)=>(v(t,s,"access private method"),e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const y=require("../Store-C-1ruEIm.cjs"),A=require("../attributes-Bf2svn4j.cjs"),S=require("../browser-CpzFX2xg.cjs"),q=require("../dom-JBOkFLTh.cjs");var i,u,c,o,d;class p extends y.Store{constructor(e,b,g,h){super(g,h);n(this,o);n(this,i,null);n(this,u,void 0);n(this,c,null);a(this,u,b),S.isBrowser&&(a(this,i,q.getElement(e)),a(this,c,new MutationObserver(l=>{l.forEach(m=>{m.type==="attributes"&&m.attributeName===r(this,u)&&f(this,o,d).call(this)})})),h!=null&&h.sync&&this.subscribe(l=>{r(this,i).setAttribute(r(this,u),l.current.toString())}))}subscribe(e){const b=super.subscribe(e);return this.observe(),b}unsubscribe(e){super.unsubscribe(e),this.unobserve()}observe(){!this.subscribers.size&&(r(this,c).observe(r(this,i),{attributes:!0}),f(this,o,d).call(this))}unobserve(){this.subscribers.size||r(this,c).disconnect()}close(){super.close(),this.unobserve()}}i=new WeakMap,u=new WeakMap,c=new WeakMap,o=new WeakSet,d=function(){const e=r(this,i).getAttribute(r(this,u));e!=null&&(this.current=A.parseAttributeValue(e))};exports.Attribute=p;
@@ -8,7 +8,7 @@ var r = (e, t, s) => (v(e, t, "read from private field"), s ? s.call(e) : t.get(
8
8
  t instanceof WeakSet ? t.add(e) : t.set(e, s);
9
9
  }, a = (e, t, s, b) => (v(e, t, "write to private field"), b ? b.call(e, s) : t.set(e, s), s);
10
10
  var f = (e, t, s) => (v(e, t, "access private method"), s);
11
- import { S as g } from "../Store-DdDuj5hz.js";
11
+ import { S as g } from "../Store-BQXXikps.js";
12
12
  import { p as A } from "../attributes-69we3byR.js";
13
13
  import { i as y } from "../browser-0zX67oeU.js";
14
14
  import { g as S } from "../dom-0S_WDL4g.js";
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const W=require("../custom-element/index.cjs");require("../Store-Dis8QUAR.cjs");const S=require("../math-GDWEqu7y.cjs"),E=require("../tags-D3-tO-m6.cjs"),b=require("../createStylesheet-B4vLzvah.cjs"),k=require("../element-resizer/index.cjs"),C=require("../ticker/index.cjs");var y=Object.defineProperty,q=Object.getOwnPropertyDescriptor,P=(i,e,s,h)=>{for(var r=h>1?void 0:h?q(e,s):e,f=i.length-1,g;f>=0;f--)(g=i[f])&&(r=(h?g(e,s,r):g(r))||r);return h&&r&&y(e,s,r),r},R=(i,e,s)=>{if(!e.has(i))throw TypeError("Cannot "+s)},t=(i,e,s)=>(R(i,e,"read from private field"),s?s.call(i):e.get(i)),a=(i,e,s)=>{if(e.has(i))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(i):e.set(i,s)},c=(i,e,s,h)=>(R(i,e,"write to private field"),h?h.call(i,s):e.set(i,s),s),M=(i,e,s)=>(R(i,e,"access private method"),s),n,p,l,o,d,u,v,_,m,w,x;const O=b.createStylesheet({":host, canvas":{display:"block",width:"100%",height:"100%"}});exports.CanvasElement=class extends W.CustomElement{constructor(){super(),a(this,w),a(this,n,null),a(this,p,null),a(this,l,0),a(this,o,0),a(this,d,1),a(this,u,0),a(this,v,1),a(this,_,e=>{c(this,d,S.clamp(devicePixelRatio,1,2)),c(this,l,e.contentRect.width),c(this,o,e.contentRect.height),t(this,n).width=t(this,l)*this.pixelRatio,t(this,n).height=t(this,o)*this.pixelRatio,this.context.scale(this.pixelRatio,this.pixelRatio),M(this,w,x).call(this)}),a(this,m,e=>{c(this,u,e.timestamp),c(this,v,e.elapsed),M(this,w,x).call(this)}),this.openShadow(O),E.element(this,{children:E.canvas({ref:e=>{c(this,n,e),c(this,p,e.getContext("2d"))}})})}get canvasElement(){return t(this,n)}get context(){return t(this,p)}get pixelRatio(){return t(this,d)}get width(){return t(this,l)}get height(){return t(this,o)}get detail(){return{width:t(this,l),height:t(this,o),element:this,canvasElement:t(this,n),pixelRatio:t(this,d),context:t(this,p),timestamp:t(this,u),elapsed:t(this,v)}}connectedCallback(){k.elementResizer.subscribe(this,t(this,_)),this.hasAttribute("static")||C.ticker.subscribe(t(this,m),{culling:this,maxFPS:this.hasAttribute("fps")?parseInt(this.getAttribute("fps")):void 0})}disconnectedCallback(){k.elementResizer.unsubscribe(t(this,_)),C.ticker.unsubscribe(t(this,m)),t(this,n).remove()}};n=new WeakMap;p=new WeakMap;l=new WeakMap;o=new WeakMap;d=new WeakMap;u=new WeakMap;v=new WeakMap;_=new WeakMap;m=new WeakMap;w=new WeakSet;x=function(){this.dispatchEvent(new CustomEvent("canvasRender",{composed:!0,detail:this.detail}))};exports.CanvasElement=P([W.define("e-canvas")],exports.CanvasElement);
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const W=require("../custom-element/index.cjs");require("../Store-C-1ruEIm.cjs");const S=require("../math-GDWEqu7y.cjs"),E=require("../tags-Dz_Yisj_.cjs"),b=require("../createStylesheet-u1ZQ2BI5.cjs"),k=require("../element-resizer/index.cjs"),C=require("../ticker/index.cjs");var y=Object.defineProperty,q=Object.getOwnPropertyDescriptor,P=(i,e,s,h)=>{for(var r=h>1?void 0:h?q(e,s):e,f=i.length-1,g;f>=0;f--)(g=i[f])&&(r=(h?g(e,s,r):g(r))||r);return h&&r&&y(e,s,r),r},R=(i,e,s)=>{if(!e.has(i))throw TypeError("Cannot "+s)},t=(i,e,s)=>(R(i,e,"read from private field"),s?s.call(i):e.get(i)),a=(i,e,s)=>{if(e.has(i))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(i):e.set(i,s)},c=(i,e,s,h)=>(R(i,e,"write to private field"),h?h.call(i,s):e.set(i,s),s),M=(i,e,s)=>(R(i,e,"access private method"),s),n,p,l,o,d,u,v,_,m,w,x;const O=b.createStylesheet({":host, canvas":{display:"block",width:"100%",height:"100%"}});exports.CanvasElement=class extends W.CustomElement{constructor(){super(),a(this,w),a(this,n,null),a(this,p,null),a(this,l,0),a(this,o,0),a(this,d,1),a(this,u,0),a(this,v,1),a(this,_,e=>{c(this,d,S.clamp(devicePixelRatio,1,2)),c(this,l,e.contentRect.width),c(this,o,e.contentRect.height),t(this,n).width=t(this,l)*this.pixelRatio,t(this,n).height=t(this,o)*this.pixelRatio,this.context.scale(this.pixelRatio,this.pixelRatio),M(this,w,x).call(this)}),a(this,m,e=>{c(this,u,e.timestamp),c(this,v,e.elapsed),M(this,w,x).call(this)}),this.openShadow(O),E.element(this,{children:E.canvas({ref:e=>{c(this,n,e),c(this,p,e.getContext("2d"))}})})}get canvasElement(){return t(this,n)}get context(){return t(this,p)}get pixelRatio(){return t(this,d)}get width(){return t(this,l)}get height(){return t(this,o)}get detail(){return{width:t(this,l),height:t(this,o),element:this,canvasElement:t(this,n),pixelRatio:t(this,d),context:t(this,p),timestamp:t(this,u),elapsed:t(this,v)}}connectedCallback(){k.elementResizer.subscribe(this,t(this,_)),this.hasAttribute("static")||C.ticker.subscribe(t(this,m),{culling:this,maxFPS:this.hasAttribute("fps")?parseInt(this.getAttribute("fps")):void 0})}disconnectedCallback(){k.elementResizer.unsubscribe(t(this,_)),C.ticker.unsubscribe(t(this,m)),t(this,n).remove()}};n=new WeakMap;p=new WeakMap;l=new WeakMap;o=new WeakMap;d=new WeakMap;u=new WeakMap;v=new WeakMap;_=new WeakMap;m=new WeakMap;w=new WeakSet;x=function(){this.dispatchEvent(new CustomEvent("canvasRender",{composed:!0,detail:this.detail}))};exports.CanvasElement=P([W.define("e-canvas")],exports.CanvasElement);
@@ -1,8 +1,8 @@
1
1
  import { CustomElement as M, define as b } from "../custom-element/index.js";
2
- import "../Store-DdDuj5hz.js";
2
+ import "../Store-BQXXikps.js";
3
3
  import { c as P } from "../math-BOBiC4TN.js";
4
- import { e as S, q as y } from "../tags-D9nd9mMM.js";
5
- import { c as A } from "../createStylesheet-CR-XQRVT.js";
4
+ import { e as S, q as y } from "../tags-CAxO5Rs3.js";
5
+ import { c as A } from "../createStylesheet-DrkbCUJk.js";
6
6
  import { elementResizer as k } from "../element-resizer/index.js";
7
7
  import { ticker as E } from "../ticker/index.js";
8
8
  var O = Object.defineProperty, z = Object.getOwnPropertyDescriptor, D = (t, i, s, r) => {
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("../custom-element/index.cjs");require("../Store-C-1ruEIm.cjs");const r=require("../tags-Dz_Yisj_.cjs"),_=require("../createStylesheet-u1ZQ2BI5.cjs"),l=require("../theme/index.cjs"),w='<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 256 256"><path d="m243.33 90.91l-128.41 128.4a16 16 0 0 1-22.63 0l-71.62-72a16 16 0 0 1 0-22.61l24-24a16 16 0 0 1 22.57-.06l36.64 35.27l.11.11l92.73-91.37a16 16 0 0 1 22.58 0l24 23.56a16 16 0 0 1 .03 22.7Z"/></svg>';var x=Object.defineProperty,b=Object.getOwnPropertyDescriptor,y=(t,e,a,i)=>{for(var h=i>1?void 0:i?b(e,a):e,p=t.length-1,v;p>=0;p--)(v=t[p])&&(h=(i?v(e,a,h):v(h))||h);return i&&h&&x(e,a,h),h},k=(t,e,a)=>{if(!e.has(t))throw TypeError("Cannot "+a)},n=(t,e,a)=>(k(t,e,"read from private field"),a?a.call(t):e.get(t)),f=(t,e,a)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,a)},g=(t,e,a,i)=>(k(t,e,"write to private field"),i?i.call(t,a):e.set(t,a),a),u=(t,e,a)=>(k(t,e,"access private method"),a),s,d,c,o;const C=_.createStylesheet({":host":{position:"relative",display:"inline-block",width:l.aptechkaTheme.heightInput.var,height:l.aptechkaTheme.heightInput.var,borderRadius:l.aptechkaTheme.borderRadiusSmall.var,overflow:"hidden"},"label, .fake":{display:"block"},"label, .fake, .default":{width:"100%",height:"100%"},".real":{position:"absolute",top:"0",left:"0",width:"0px",height:"0px",visibility:"hidden",margin:"0"},".default":{display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:l.aptechkaTheme.colorDarkAux.var},".default svg":{width:"60%",height:"60%",fill:l.aptechkaTheme.colorLight.var,opacity:0,transition:l.aptechkaTheme.durationShort.var},":host(.checked) .default svg":{opacity:1}});exports.CheckboxElement=class extends m.CustomElement{constructor(){super(),f(this,c),f(this,s,null),f(this,d,void 0),this.openShadow(C),g(this,d,this.attachInternals()),r.element(this,{children:r.label({children:[r.span({class:"fake",children:r.slot({children:[r.span({class:"default",children:[w]})]})}),r.input({ref:e=>{g(this,s,e),e.required=this.hasAttribute("required"),e.value=this.getAttribute("value")||"",e.checked=this.hasAttribute("checked"),e.name=this.getAttribute("name")||"",u(this,c,o).call(this)},class:"real",type:"checkbox",onChange:()=>{u(this,c,o).call(this),this.dispatchEvent(new Event("change",{composed:!0}))}})]})})}get checked(){return n(this,s).checked}set checked(e){n(this,s).checked=e,u(this,c,o).call(this)}get value(){return n(this,s).value}set value(e){n(this,s).value=e,u(this,c,o).call(this)}};s=new WeakMap;d=new WeakMap;c=new WeakSet;o=function(){this.checked?n(this,d).setFormValue(this.value):n(this,d).setFormValue(null),this.classList.toggle("checked",this.checked)};exports.CheckboxElement.formAssociated=!0;exports.CheckboxElement=y([m.define("e-checkbox")],exports.CheckboxElement);
@@ -0,0 +1,16 @@
1
+ import { CustomElement } from '../custom-element';
2
+
3
+ export declare class CheckboxElement extends CustomElement {
4
+ #private;
5
+ static formAssociated: boolean;
6
+ constructor();
7
+ get checked(): boolean;
8
+ set checked(state: boolean);
9
+ get value(): string;
10
+ set value(value: string);
11
+ }
12
+ declare global {
13
+ interface HTMLElementTagNameMap {
14
+ 'e-checkbox': CheckboxElement;
15
+ }
16
+ }