aptechka 0.13.0 → 0.14.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (108) hide show
  1. package/lib/{Animation-seVC6-fS.cjs → Animation-De9aUv3b.cjs} +1 -1
  2. package/lib/{Animation-DF5jPON_.js → Animation-NAGXiFv5.js} +1 -1
  3. package/lib/{Composed-ChlKoJEp.cjs → Composed-C_4slJQ6.cjs} +1 -1
  4. package/lib/{Composed-CoX1ImVk.js → Composed-CfWa-69I.js} +1 -1
  5. package/lib/{Damped-C7WAqKPh.cjs → Damped-DYJ6Z0xo.cjs} +1 -1
  6. package/lib/{Damped-BDO-F13V.js → Damped-DbJKrUIf.js} +1 -1
  7. package/lib/Derived-BIBU-y7Z.cjs +1 -0
  8. package/lib/Derived-Vo_RsJfi.js +23 -0
  9. package/lib/{SourceManager-B8-EMNnd.js → SourceManager-B6wZpXUZ.js} +1 -1
  10. package/lib/{SourceManager-TzU9Rw08.cjs → SourceManager-CfHcGLUa.cjs} +1 -1
  11. package/lib/Store-C46i0nvr.js +137 -0
  12. package/lib/Store-npaZHvX4.cjs +1 -0
  13. package/lib/{Tweened-DSXD0I0k.cjs → Tweened-BkkD9s4n.cjs} +1 -1
  14. package/lib/{Tweened-CHhmfvzo.js → Tweened-DOSHLCZa.js} +1 -1
  15. package/lib/{Viewport-DTlImj28.js → Viewport-B55BvLsV.js} +1 -1
  16. package/lib/{Viewport-BmLTk_6k.cjs → Viewport-Cv4TRGiv.cjs} +1 -1
  17. package/lib/animation/index.cjs +1 -1
  18. package/lib/animation/index.js +3 -3
  19. package/lib/attribute/index.cjs +1 -1
  20. package/lib/attribute/index.js +13 -13
  21. package/lib/canvas/index.cjs +7 -1
  22. package/lib/canvas/index.js +54 -58
  23. package/lib/class-linked-status/index.cjs +1 -1
  24. package/lib/class-linked-status/index.js +1 -1
  25. package/lib/controls/index.cjs +1 -1
  26. package/lib/controls/index.js +3 -3
  27. package/lib/{createStylesheet-DO5t5q-m.js → createStylesheet-C68ja-RS.js} +3 -3
  28. package/lib/{createStylesheet-CaDI99iu.cjs → createStylesheet-Csfmh-MH.cjs} +1 -1
  29. package/lib/css-property/index.cjs +1 -1
  30. package/lib/css-property/index.js +4 -4
  31. package/lib/dev/index.cjs +1 -1
  32. package/lib/dev/index.js +1 -1
  33. package/lib/device/index.cjs +1 -1
  34. package/lib/device/index.js +1 -1
  35. package/lib/{dom-P5QbAASX.js → dom-0S_WDL4g.js} +2 -2
  36. package/lib/element-constructor/index.cjs +1 -1
  37. package/lib/element-constructor/index.js +133 -122
  38. package/lib/element-resizer/index.js +8 -8
  39. package/lib/en3/helpers/index.cjs +1 -1
  40. package/lib/en3/helpers/index.js +4 -4
  41. package/lib/en3/index.js +1 -1
  42. package/lib/en3/loaders/index.js +1 -1
  43. package/lib/en3/misc/index.cjs +1 -1
  44. package/lib/en3/misc/index.js +2 -2
  45. package/lib/en3/utils/index.js +2 -2
  46. package/lib/{en3-x-Ki30MY.js → en3-sK9Z-fp2.js} +1 -1
  47. package/lib/file-BEr-o55N.js +31 -0
  48. package/lib/file-C9BbxzVU.cjs +1 -0
  49. package/lib/image/index.cjs +1 -1
  50. package/lib/image/index.js +1 -1
  51. package/lib/intersector/index.js +7 -7
  52. package/lib/ladder/index.cjs +1 -1
  53. package/lib/ladder/index.js +1 -1
  54. package/lib/layout-box/index.js +14 -14
  55. package/lib/media/index.cjs +1 -1
  56. package/lib/media/index.js +1 -1
  57. package/lib/need_redo_tweaker/index.cjs +18 -0
  58. package/lib/need_redo_tweaker/index.js +1343 -0
  59. package/lib/pointer/index.cjs +1 -1
  60. package/lib/pointer/index.js +3 -3
  61. package/lib/popover/index.cjs +1 -1
  62. package/lib/popover/index.js +60 -62
  63. package/lib/scroll/index.cjs +1 -1
  64. package/lib/scroll/index.js +105 -106
  65. package/lib/scroll-entries/index.js +15 -15
  66. package/lib/sequence/index.cjs +1 -1
  67. package/lib/sequence/index.js +1 -1
  68. package/lib/slicer/index.cjs +5 -5
  69. package/lib/slicer/index.js +55 -86
  70. package/lib/source/index.cjs +1 -1
  71. package/lib/source/index.js +2 -2
  72. package/lib/store/index.cjs +1 -1
  73. package/lib/store/index.js +38 -112
  74. package/lib/{tags-v-OSVkiQ.cjs → tags-6_ETuR75.cjs} +1 -1
  75. package/lib/{tags-4AoxVUe3.js → tags-zft1DGBz.js} +93 -93
  76. package/lib/ticker/index.js +1 -1
  77. package/lib/{traverseMaterials-mGC2_FkG.js → traverseMaterials-BlZbRhgW.js} +1 -1
  78. package/lib/utils/index.cjs +1 -1
  79. package/lib/utils/index.js +56 -57
  80. package/lib/video/index.cjs +1 -1
  81. package/lib/video/index.js +1 -1
  82. package/package.json +7 -55
  83. package/lib/Derived-B-2UXnVE.cjs +0 -1
  84. package/lib/Derived-CDGpSMKu.js +0 -56
  85. package/lib/Store-BnA-dJsE.cjs +0 -1
  86. package/lib/Store-DGtldlBH.js +0 -147
  87. package/lib/accordion/index.cjs +0 -1
  88. package/lib/accordion/index.js +0 -167
  89. package/lib/checkbox/index.cjs +0 -1
  90. package/lib/checkbox/index.js +0 -112
  91. package/lib/createTheme-CHnsCgAr.js +0 -15
  92. package/lib/createTheme-Cfaw9UmV.cjs +0 -1
  93. package/lib/events-BGwqaxVW.cjs +0 -1
  94. package/lib/events-CJTUMSLU.js +0 -20
  95. package/lib/file-EevnUtRj.cjs +0 -1
  96. package/lib/file-lxi_oXJf.js +0 -13
  97. package/lib/index-BhbT9PrL.js +0 -261
  98. package/lib/index-BpsQqM-8.cjs +0 -9
  99. package/lib/modal/index.cjs +0 -1
  100. package/lib/modal/index.js +0 -133
  101. package/lib/select/index.cjs +0 -1
  102. package/lib/select/index.js +0 -7
  103. package/lib/svg-path-data/index.cjs +0 -3
  104. package/lib/svg-path-data/index.js +0 -490
  105. package/lib/theme/index.cjs +0 -1
  106. package/lib/theme/index.js +0 -25
  107. package/lib/tweaker/index.cjs +0 -10
  108. package/lib/tweaker/index.js +0 -992
@@ -15,7 +15,7 @@ var K = (e, n, s) => n in e ? ce(e, n, { enumerable: !0, configurable: !0, writa
15
15
  }, X = (e, n) => fe(e, le(n));
16
16
  var q = (e, n, s) => n.has(e) || Q("Cannot " + s);
17
17
  var r = (e, n, s) => (q(e, n, "read from private field"), s ? s.call(e) : n.get(e)), w = (e, n, s) => n.has(e) ? Q("Cannot add the same private member more than once") : n instanceof WeakSet ? n.add(e) : n.set(e, s), y = (e, n, s, i) => (q(e, n, "write to private field"), i ? i.call(e, s) : n.set(e, s), s), c = (e, n, s) => (q(e, n, "access private method"), s);
18
- import { S as E } from "./Store-DGtldlBH.js";
18
+ import { S as E } from "./Store-C46i0nvr.js";
19
19
  import { i as Z } from "./browser-0zX67oeU.js";
20
20
  import { i as _ } from "./object-D6MVWB4l.js";
21
21
  import { c as O, u as we } from "./string-f0Dnk0L1.js";
@@ -713,49 +713,49 @@ function Dt(e) {
713
713
  }));
714
714
  }
715
715
  export {
716
- Sn as $,
717
- Xe as A,
718
- Ze as B,
719
- _e as C,
720
- Oe as D,
716
+ bn as $,
717
+ Je as A,
718
+ Ie as B,
719
+ Ue as C,
720
+ Ye as D,
721
721
  t as E,
722
- je as F,
723
- en as G,
724
- nn as H,
725
- tn as I,
726
- sn as J,
727
- rn as K,
728
- an as L,
729
- on as M,
730
- un as N,
731
- cn as O,
732
- fn as P,
733
- ln as Q,
734
- dn as R,
735
- hn as S,
736
- wn as T,
737
- mn as U,
738
- pn as V,
739
- bn as W,
740
- gn as X,
741
- yn as Y,
742
- En as Z,
743
- Cn as _,
744
- ve as a,
745
- Nn as a0,
746
- vn as a1,
747
- kn as a2,
748
- Ln as a3,
749
- Tn as a4,
750
- An as a5,
751
- xn as a6,
752
- Mn as a7,
753
- Dn as a8,
754
- Fn as a9,
755
- rt as aA,
756
- at as aB,
757
- ot as aC,
758
- ut as aD,
722
+ Ke as F,
723
+ Qe as G,
724
+ Xe as H,
725
+ Ze as I,
726
+ _e as J,
727
+ je as K,
728
+ en as L,
729
+ nn as M,
730
+ tn as N,
731
+ sn as O,
732
+ rn as P,
733
+ an as Q,
734
+ on as R,
735
+ un as S,
736
+ cn as T,
737
+ fn as U,
738
+ ln as V,
739
+ dn as W,
740
+ hn as X,
741
+ wn as Y,
742
+ mn as Z,
743
+ pn as _,
744
+ st as a,
745
+ gn as a0,
746
+ yn as a1,
747
+ En as a2,
748
+ Cn as a3,
749
+ Sn as a4,
750
+ vn as a5,
751
+ kn as a6,
752
+ Tn as a7,
753
+ An as a8,
754
+ xn as a9,
755
+ tt as aA,
756
+ it as aB,
757
+ rt as aC,
758
+ ot as aD,
759
759
  ct as aE,
760
760
  ft as aF,
761
761
  lt as aG,
@@ -779,55 +779,55 @@ export {
779
779
  xt as aY,
780
780
  Mt as aZ,
781
781
  Dt as a_,
782
- qn as aa,
783
- Hn as ab,
784
- Pn as ac,
785
- Rn as ad,
786
- Bn as ae,
787
- Gn as af,
788
- Vn as ag,
789
- Wn as ah,
790
- $n as ai,
791
- zn as aj,
792
- Jn as ak,
793
- In as al,
794
- Un as am,
795
- Yn as an,
796
- Kn as ao,
797
- Qn as ap,
798
- Xn as aq,
799
- Zn as ar,
800
- _n as as,
801
- On as at,
802
- jn as au,
803
- et as av,
804
- nt as aw,
805
- tt as ax,
806
- st as ay,
807
- it as az,
808
- ke as b,
809
- Le as c,
810
- Te as d,
782
+ Mn as aa,
783
+ Dn as ab,
784
+ Fn as ac,
785
+ qn as ad,
786
+ Hn as ae,
787
+ Pn as af,
788
+ Rn as ag,
789
+ Bn as ah,
790
+ Gn as ai,
791
+ Vn as aj,
792
+ Wn as ak,
793
+ $n as al,
794
+ zn as am,
795
+ Jn as an,
796
+ In as ao,
797
+ Un as ap,
798
+ Yn as aq,
799
+ Kn as ar,
800
+ Qn as as,
801
+ Xn as at,
802
+ Zn as au,
803
+ _n as av,
804
+ On as aw,
805
+ jn as ax,
806
+ et as ay,
807
+ nt as az,
808
+ Ge as b,
809
+ at as c,
810
+ Oe as d,
811
811
  Ne as e,
812
- Ae as f,
813
- xe as g,
814
- Me as h,
815
- De as i,
816
- Fe as j,
817
- qe as k,
818
- He as l,
819
- Pe as m,
820
- Re as n,
821
- Be as o,
822
- Ge as p,
823
- Ve as q,
824
- We as r,
825
- $e as s,
826
- ze as t,
827
- Je as u,
828
- Ie as v,
829
- Ue as w,
830
- Ye as x,
831
- Ke as y,
832
- Qe as z
812
+ ve as f,
813
+ ke as g,
814
+ Le as h,
815
+ Nn as i,
816
+ Te as j,
817
+ Ae as k,
818
+ Ln as l,
819
+ xe as m,
820
+ Me as n,
821
+ De as o,
822
+ Fe as p,
823
+ qe as q,
824
+ He as r,
825
+ ut as s,
826
+ Pe as t,
827
+ Re as u,
828
+ Be as v,
829
+ Ve as w,
830
+ We as x,
831
+ $e as y,
832
+ ze as z
833
833
  };
@@ -4,7 +4,7 @@ var q = (r) => {
4
4
  var L = (r, i, s) => i.has(r) || q("Cannot " + s);
5
5
  var e = (r, i, s) => (L(r, i, "read from private field"), s ? s.call(r) : i.get(r)), h = (r, i, s) => i.has(r) ? q("Cannot add the same private member more than once") : i instanceof WeakSet ? i.add(r) : i.set(r, s), t = (r, i, s, n) => (L(r, i, "write to private field"), n ? n.call(r, s) : i.set(r, s), s), A = (r, i, s) => (L(r, i, "access private method"), s);
6
6
  import { i as S } from "../browser-0zX67oeU.js";
7
- import { a as P } from "../dom-P5QbAASX.js";
7
+ import { g as P } from "../dom-0S_WDL4g.js";
8
8
  var o, u, v, m, b, l, g, F, E;
9
9
  class V {
10
10
  constructor(i, s) {
@@ -1,5 +1,5 @@
1
1
  import { Vector3 as c, OrthographicCamera as p, Mesh as w } from "three";
2
- import { e as h } from "./en3-x-Ki30MY.js";
2
+ import { e as h } from "./en3-sK9Z-fp2.js";
3
3
  const s = new c(), g = new c();
4
4
  function M(a, r = "default") {
5
5
  const t = h.getView(r), { width: e, height: o } = h, n = e / o;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const h=require("../attributes-Bf2svn4j.cjs"),S=require("../browser-CpzFX2xg.cjs"),l=require("../canvas-CU5Xjahf.cjs"),d=require("../coordinates-D8Np3cPD.cjs"),p=require("../dom-JBOkFLTh.cjs"),a=require("../easings-DsS5-Kqc.cjs"),b=require("../events-BGwqaxVW.cjs"),I=require("../file-EevnUtRj.cjs"),C=require("../function-MthRj-GJ.cjs"),y=require("../gestures-DHLrn6Q8.cjs"),f=require("../layout-8ryRAMGJ.cjs"),s=require("../math-GDWEqu7y.cjs"),m=require("../polyfills-CM4SCDTt.cjs"),r=require("../object-CCiXnER2.cjs"),u=require("../string-DhgS_iFl.cjs"),O=require("../style-At6aDoqG.cjs"),g=require("../url-C3dWnJQg.cjs");function P(t,e,...n){return[...t.slice(0,e),...n,...t.slice(e)]}function T(t,e){const n=t.length;e=e%n;const i=new Array(n);for(let o=0;o<n;o++){const c=(o+e)%n;i[c]=t[o]}return i}function v(t,e=2){if(!+t)return"0 Bytes";const n=1024,i=e<0?0:e,o=["Bytes","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"],c=Math.floor(Math.log(t)/Math.log(n));return`${parseFloat((t/Math.pow(n,c)).toFixed(i))} ${o[c]}`}function w(t,e){return t.x<e.x+e.width&&t.x>e.x&&t.y<e.y+e.height&&t.y>e.y}function x(t,e){return Math.sqrt((t.x-e.x)**2+(t.y-e.y)**2)<e.radius}function E(t,e){const n=t.styleMap.get(e);if(n){const i=n.toString();return i.startsWith("var")?E(t,i.slice(4,-1)):i}}function q(...t){const e={};return Array.from(document.styleSheets).forEach(n=>{Array.from(n.cssRules).forEach(i=>{i instanceof CSSStyleRule&&i.selectorText===":root"&&t.forEach(o=>{const c=E(i,o);c&&(e[o]=c)})})}),t.forEach(n=>{e[n]||console.warn(`variable named ${n} not found`)}),e}function B(t){const e=window.atob(t);return decodeURIComponent(window.escape(e))}function Q(t){const e=window.unescape(encodeURIComponent(t));return window.btoa(e)}function D(t){return new Promise(e=>{setTimeout(()=>{e()},t)})}exports.parseAttribute=h.parseAttribute;exports.parseAttributeValue=h.parseAttributeValue;exports.isBrowser=S.isBrowser;exports.contain=l.contain;exports.cover=l.cover;exports.fixPosition=l.fixPosition;exports.measureText=l.measureText;exports.getPointerPosition=d.getPointerPosition;exports.normalize=d.normalize;exports.screenToCartesian=d.screenToCartesian;exports.findParentElement=p.findParentElement;exports.findScrollParentElement=p.findScrollParentElement;exports.getAllParentElements=p.getAllParentElements;exports.getElement=p.getElement;exports.easeInCubic=a.easeInCubic;exports.easeInExpo=a.easeInExpo;exports.easeInOutCubic=a.easeInOutCubic;exports.easeInOutExpo=a.easeInOutExpo;exports.easeInOutQuad=a.easeInOutQuad;exports.easeInOutQuart=a.easeInOutQuart;exports.easeInOutQuint=a.easeInOutQuint;exports.easeInQuad=a.easeInQuad;exports.easeInQuart=a.easeInQuart;exports.easeInQuint=a.easeInQuint;exports.easeOutCubic=a.easeOutCubic;exports.easeOutExpo=a.easeOutExpo;exports.easeOutQuad=a.easeOutQuad;exports.easeOutQuart=a.easeOutQuart;exports.easeOutQuint=a.easeOutQuint;exports.linear=a.linear;exports.dispatchBeforeSizeChangeEvent=b.dispatchBeforeSizeChangeEvent;exports.dispatchSizeChangeEvent=b.dispatchSizeChangeEvent;exports.createJSONAndSave=I.createJSONAndSave;exports.debounce=C.debounce;exports.throttle=C.throttle;exports.setupDrag=y.setupDrag;exports.getCumulativeOffsetLeft=f.getCumulativeOffsetLeft;exports.getCumulativeOffsetTop=f.getCumulativeOffsetTop;exports.getCumulativePosition=f.getCumulativePosition;exports.calculateDistance=s.calculateDistance;exports.calculateDistanceWithRadius=s.calculateDistanceWithRadius;exports.clamp=s.clamp;exports.damp=s.damp;exports.lerp=s.lerp;exports.mapRange=s.mapRange;exports.round=s.round;exports.smootherstep=s.smootherstep;exports.smoothstep=s.smoothstep;exports.step=s.step;exports.nullishCoalescing=m.nullishCoalescing;exports.preciseNumber=m.preciseNumber;exports.roundNumberTo=m.roundNumberTo;exports.toStep=m.toStep;exports.cloneDeep=r.cloneDeep;exports.compareObjects=r.compareObjects;exports.isESClass=r.isESClass;exports.isNullish=r.isNullish;exports.isObject=r.isObject;exports.mergeDeep=r.mergeDeep;exports.mixin=r.mixin;exports.omit=r.omit;exports.pick=r.pick;exports.camelToKebab=u.camelToKebab;exports.capitalize=u.capitalize;exports.generateId=u.generateId;exports.isUppercase=u.isUppercase;exports.kebabToCamel=u.kebabToCamel;exports.snakeToDotted=u.snakeToDotted;exports.toPascalCase=u.toPascalCase;exports.uncapitalize=u.uncapitalize;exports.getElementTransitionDurationMS=O.getElementTransitionDurationMS;exports.getElementTransitionDurationS=O.getElementTransitionDurationS;exports.changeHistory=g.changeHistory;exports.normalizeBase=g.normalizeBase;exports.splitPath=g.splitPath;exports.decode=Q;exports.dotCircleCollision=x;exports.dotRectCollision=w;exports.encode=B;exports.formatBytes=v;exports.getRootVariables=q;exports.insert=P;exports.shiftArray=T;exports.wait=D;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("../attributes-Bf2svn4j.cjs"),S=require("../browser-CpzFX2xg.cjs"),l=require("../canvas-CU5Xjahf.cjs"),d=require("../coordinates-D8Np3cPD.cjs"),p=require("../dom-JBOkFLTh.cjs"),a=require("../easings-DsS5-Kqc.cjs"),f=require("../file-C9BbxzVU.cjs"),C=require("../function-MthRj-GJ.cjs"),I=require("../gestures-DHLrn6Q8.cjs"),g=require("../layout-8ryRAMGJ.cjs"),s=require("../math-GDWEqu7y.cjs"),m=require("../polyfills-CM4SCDTt.cjs"),r=require("../object-CCiXnER2.cjs"),u=require("../string-DhgS_iFl.cjs"),O=require("../style-At6aDoqG.cjs"),h=require("../url-C3dWnJQg.cjs");function y(t,e,...n){return[...t.slice(0,e),...n,...t.slice(e)]}function P(t,e){const n=t.length;e=e%n;const i=new Array(n);for(let o=0;o<n;o++){const c=(o+e)%n;i[c]=t[o]}return i}function T(t,e=2){if(!+t)return"0 Bytes";const n=1024,i=e<0?0:e,o=["Bytes","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"],c=Math.floor(Math.log(t)/Math.log(n));return`${parseFloat((t/Math.pow(n,c)).toFixed(i))} ${o[c]}`}function v(t,e){return t.x<e.x+e.width&&t.x>e.x&&t.y<e.y+e.height&&t.y>e.y}function w(t,e){return Math.sqrt((t.x-e.x)**2+(t.y-e.y)**2)<e.radius}function E(t,e){const n=t.styleMap.get(e);if(n){const i=n.toString();return i.startsWith("var")?E(t,i.slice(4,-1)):i}}function x(...t){const e={};return Array.from(document.styleSheets).forEach(n=>{Array.from(n.cssRules).forEach(i=>{i instanceof CSSStyleRule&&i.selectorText===":root"&&t.forEach(o=>{const c=E(i,o);c&&(e[o]=c)})})}),t.forEach(n=>{e[n]||console.warn(`variable named ${n} not found`)}),e}function B(t){const e=window.atob(t);return decodeURIComponent(window.escape(e))}function Q(t){const e=window.unescape(encodeURIComponent(t));return window.btoa(e)}function q(t){return new Promise(e=>{setTimeout(()=>{e()},t)})}exports.parseAttribute=b.parseAttribute;exports.parseAttributeValue=b.parseAttributeValue;exports.isBrowser=S.isBrowser;exports.contain=l.contain;exports.cover=l.cover;exports.fixPosition=l.fixPosition;exports.measureText=l.measureText;exports.getPointerPosition=d.getPointerPosition;exports.normalize=d.normalize;exports.screenToCartesian=d.screenToCartesian;exports.findParentElement=p.findParentElement;exports.findScrollParentElement=p.findScrollParentElement;exports.getAllParentElements=p.getAllParentElements;exports.getElement=p.getElement;exports.easeInCubic=a.easeInCubic;exports.easeInExpo=a.easeInExpo;exports.easeInOutCubic=a.easeInOutCubic;exports.easeInOutExpo=a.easeInOutExpo;exports.easeInOutQuad=a.easeInOutQuad;exports.easeInOutQuart=a.easeInOutQuart;exports.easeInOutQuint=a.easeInOutQuint;exports.easeInQuad=a.easeInQuad;exports.easeInQuart=a.easeInQuart;exports.easeInQuint=a.easeInQuint;exports.easeOutCubic=a.easeOutCubic;exports.easeOutExpo=a.easeOutExpo;exports.easeOutQuad=a.easeOutQuad;exports.easeOutQuart=a.easeOutQuart;exports.easeOutQuint=a.easeOutQuint;exports.linear=a.linear;exports.createJSONAndSave=f.createJSONAndSave;exports.dispatchBeforeSizeChangeEvent=f.dispatchBeforeSizeChangeEvent;exports.dispatchSizeChangeEvent=f.dispatchSizeChangeEvent;exports.debounce=C.debounce;exports.throttle=C.throttle;exports.setupDrag=I.setupDrag;exports.getCumulativeOffsetLeft=g.getCumulativeOffsetLeft;exports.getCumulativeOffsetTop=g.getCumulativeOffsetTop;exports.getCumulativePosition=g.getCumulativePosition;exports.calculateDistance=s.calculateDistance;exports.calculateDistanceWithRadius=s.calculateDistanceWithRadius;exports.clamp=s.clamp;exports.damp=s.damp;exports.lerp=s.lerp;exports.mapRange=s.mapRange;exports.round=s.round;exports.smootherstep=s.smootherstep;exports.smoothstep=s.smoothstep;exports.step=s.step;exports.nullishCoalescing=m.nullishCoalescing;exports.preciseNumber=m.preciseNumber;exports.roundNumberTo=m.roundNumberTo;exports.toStep=m.toStep;exports.cloneDeep=r.cloneDeep;exports.compareObjects=r.compareObjects;exports.isESClass=r.isESClass;exports.isNullish=r.isNullish;exports.isObject=r.isObject;exports.mergeDeep=r.mergeDeep;exports.mixin=r.mixin;exports.omit=r.omit;exports.pick=r.pick;exports.camelToKebab=u.camelToKebab;exports.capitalize=u.capitalize;exports.generateId=u.generateId;exports.isUppercase=u.isUppercase;exports.kebabToCamel=u.kebabToCamel;exports.snakeToDotted=u.snakeToDotted;exports.toPascalCase=u.toPascalCase;exports.uncapitalize=u.uncapitalize;exports.getElementTransitionDurationMS=O.getElementTransitionDurationMS;exports.getElementTransitionDurationS=O.getElementTransitionDurationS;exports.changeHistory=h.changeHistory;exports.normalizeBase=h.normalizeBase;exports.splitPath=h.splitPath;exports.decode=Q;exports.dotCircleCollision=w;exports.dotRectCollision=v;exports.encode=B;exports.formatBytes=T;exports.getRootVariables=x;exports.insert=y;exports.shiftArray=P;exports.wait=q;
@@ -2,19 +2,18 @@ import { a as b, p as C } from "../attributes-69we3byR.js";
2
2
  import { i as w } from "../browser-0zX67oeU.js";
3
3
  import { a as y, c as O, f as B, m as I } from "../canvas-DeZ0SLUJ.js";
4
4
  import { g as T, n as v, s as A } from "../coordinates-CgdGoSYs.js";
5
- import { f as D, b as M, g as R, a as z } from "../dom-P5QbAASX.js";
5
+ import { f as D, b as M, a as R, g as z } from "../dom-0S_WDL4g.js";
6
6
  import { c as j, n as N, f as V, p as U, b as $, i as F, m as K, e as W, g as q, j as G, d as H, o as J, a as L, h as Y, k as Z, l as X } from "../easings-BKi40vHz.js";
7
- import { d as ee, a as ae } from "../events-CJTUMSLU.js";
8
- import { c as se } from "../file-lxi_oXJf.js";
9
- import { d as ne, t as re } from "../function-C10DGppn.js";
10
- import { s as ue } from "../gestures-D2Fdra_G.js";
11
- import { g as le, a as fe, b as pe } from "../layout-HoBT_Da2.js";
12
- import { e as de, f as ge, c as xe, d as he, l as be, m as Ce, r as Ee, b as we, a as Se, s as ye } from "../math-BOBiC4TN.js";
13
- import { n as Be, p as Ie, r as Pe, t as Te } from "../polyfills-X6KXuHg-.js";
14
- import { c as Ae, d as Qe, i as De, b as Me, a as Re, m as ze, e as ke, o as je, p as Ne } from "../object-D6MVWB4l.js";
15
- import { c as Ue, a as $e, g as Fe, i as Ke, k as We, s as qe, t as Ge, u as He } from "../string-f0Dnk0L1.js";
16
- import { g as Le, a as Ye } from "../style-j2TwriJ_.js";
17
- import { c as Xe, n as _e, s as ea } from "../url-DMNfW7uN.js";
7
+ import { c as ee, a as ae, d as te } from "../file-BEr-o55N.js";
8
+ import { d as oe, t as ne } from "../function-C10DGppn.js";
9
+ import { s as ie } from "../gestures-D2Fdra_G.js";
10
+ import { g as ce, a as le, b as fe } from "../layout-HoBT_Da2.js";
11
+ import { e as me, f as de, c as ge, d as xe, l as he, m as be, r as Ce, b as Ee, a as we, s as Se } from "../math-BOBiC4TN.js";
12
+ import { n as Oe, p as Be, r as Ie, t as Pe } from "../polyfills-X6KXuHg-.js";
13
+ import { c as ve, d as Ae, i as Qe, b as De, a as Me, m as Re, e as ze, o as ke, p as je } from "../object-D6MVWB4l.js";
14
+ import { c as Ve, a as Ue, g as $e, i as Fe, k as Ke, s as We, t as qe, u as Ge } from "../string-f0Dnk0L1.js";
15
+ import { g as Je, a as Le } from "../style-j2TwriJ_.js";
16
+ import { c as Ze, n as Xe, s as _e } from "../url-DMNfW7uN.js";
18
17
  function i(a, e, ...t) {
19
18
  return [...a.slice(0, e), ...t, ...a.slice(e)];
20
19
  }
@@ -85,22 +84,22 @@ function g(a) {
85
84
  });
86
85
  }
87
86
  export {
88
- de as calculateDistance,
89
- ge as calculateDistanceWithRadius,
90
- Ue as camelToKebab,
91
- $e as capitalize,
92
- Xe as changeHistory,
93
- xe as clamp,
94
- Ae as cloneDeep,
95
- Qe as compareObjects,
87
+ me as calculateDistance,
88
+ de as calculateDistanceWithRadius,
89
+ Ve as camelToKebab,
90
+ Ue as capitalize,
91
+ Ze as changeHistory,
92
+ ge as clamp,
93
+ ve as cloneDeep,
94
+ Ae as compareObjects,
96
95
  y as contain,
97
96
  O as cover,
98
- se as createJSONAndSave,
99
- he as damp,
100
- ne as debounce,
97
+ ee as createJSONAndSave,
98
+ xe as damp,
99
+ oe as debounce,
101
100
  d as decode,
102
- ee as dispatchBeforeSizeChangeEvent,
103
- ae as dispatchSizeChangeEvent,
101
+ ae as dispatchBeforeSizeChangeEvent,
102
+ te as dispatchSizeChangeEvent,
104
103
  f as dotCircleCollision,
105
104
  l as dotRectCollision,
106
105
  j as easeInCubic,
@@ -123,50 +122,50 @@ export {
123
122
  M as findScrollParentElement,
124
123
  B as fixPosition,
125
124
  c as formatBytes,
126
- Fe as generateId,
125
+ $e as generateId,
127
126
  R as getAllParentElements,
128
- le as getCumulativeOffsetLeft,
129
- fe as getCumulativeOffsetTop,
130
- pe as getCumulativePosition,
127
+ ce as getCumulativeOffsetLeft,
128
+ le as getCumulativeOffsetTop,
129
+ fe as getCumulativePosition,
131
130
  z as getElement,
132
- Le as getElementTransitionDurationMS,
133
- Ye as getElementTransitionDurationS,
131
+ Je as getElementTransitionDurationMS,
132
+ Le as getElementTransitionDurationS,
134
133
  T as getPointerPosition,
135
134
  p as getRootVariables,
136
135
  i as insert,
137
136
  w as isBrowser,
138
- De as isESClass,
139
- Me as isNullish,
140
- Re as isObject,
141
- Ke as isUppercase,
142
- We as kebabToCamel,
143
- be as lerp,
137
+ Qe as isESClass,
138
+ De as isNullish,
139
+ Me as isObject,
140
+ Fe as isUppercase,
141
+ Ke as kebabToCamel,
142
+ he as lerp,
144
143
  X as linear,
145
- Ce as mapRange,
144
+ be as mapRange,
146
145
  I as measureText,
147
- ze as mergeDeep,
148
- ke as mixin,
146
+ Re as mergeDeep,
147
+ ze as mixin,
149
148
  v as normalize,
150
- _e as normalizeBase,
151
- Be as nullishCoalescing,
152
- je as omit,
149
+ Xe as normalizeBase,
150
+ Oe as nullishCoalescing,
151
+ ke as omit,
153
152
  b as parseAttribute,
154
153
  C as parseAttributeValue,
155
- Ne as pick,
156
- Ie as preciseNumber,
157
- Ee as round,
158
- Pe as roundNumberTo,
154
+ je as pick,
155
+ Be as preciseNumber,
156
+ Ce as round,
157
+ Ie as roundNumberTo,
159
158
  A as screenToCartesian,
160
- ue as setupDrag,
159
+ ie as setupDrag,
161
160
  u as shiftArray,
162
- we as smootherstep,
163
- Se as smoothstep,
164
- qe as snakeToDotted,
165
- ea as splitPath,
166
- ye as step,
167
- re as throttle,
168
- Ge as toPascalCase,
169
- Te as toStep,
170
- He as uncapitalize,
161
+ Ee as smootherstep,
162
+ we as smoothstep,
163
+ We as snakeToDotted,
164
+ _e as splitPath,
165
+ Se as step,
166
+ ne as throttle,
167
+ qe as toPascalCase,
168
+ Pe as toStep,
169
+ Ge as uncapitalize,
171
170
  g as wait
172
171
  };
@@ -1 +1 @@
1
- "use strict";var l=e=>{throw TypeError(e)};var d=(e,s,t)=>s.has(e)||l("Cannot "+t);var i=(e,s,t)=>(d(e,s,"read from private field"),t?t.call(e):s.get(e)),n=(e,s,t)=>s.has(e)?l("Cannot add the same private member more than once"):s instanceof WeakSet?s.add(e):s.set(e,t),c=(e,s,t,o)=>(d(e,s,"write to private field"),o?o.call(e,t):s.set(e,t),t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../window-resizer/index.cjs");require("../Store-BnA-dJsE.cjs");const m=require("../source/index.cjs"),u=require("../ticker/index.cjs");var r,a;class h extends m.SourceElement{constructor(){super(...arguments);n(this,r,0);n(this,a,()=>{this.classList.add(`state-${this.consumerElement.readyState}`);const t=this.consumerElement.readyState/4;t>i(this,r)&&c(this,r,t),this.dispatchEvent(new CustomEvent("readyStateChange",{detail:{readyState:this.consumerElement.readyState,progress:i(this,r)}})),this.consumerElement.readyState===4&&u.ticker.unsubscribe(i(this,a))})}connectedCallback(){super.connectedCallback(),this.addEventListener("sourceCapture",()=>{u.ticker.subscribe(i(this,a)),this.hasAttribute("capture-autoplay")&&this.consumerElement.play()}),this.addEventListener("sourceRelease",()=>{this.hasAttribute("capture-autoplay")&&(this.consumerElement.pause(),this.hasAttribute("replay")&&(this.consumerElement.currentTime=0)),this.hasAttribute("reload-source")&&this.classList.remove("state-0","state-1","state-2","state-3","state-4")})}disconnectedCallback(){super.disconnectedCallback(),u.ticker.unsubscribe(i(this,a)),c(this,r,0)}createConsumer(){return document.createElement("video")}consumeSource(t){this.consumerElement.src=t||""}}r=new WeakMap,a=new WeakMap;customElements.get("e-video")||customElements.define("e-video",h);exports.VideoElement=h;
1
+ "use strict";var l=e=>{throw TypeError(e)};var d=(e,s,t)=>s.has(e)||l("Cannot "+t);var i=(e,s,t)=>(d(e,s,"read from private field"),t?t.call(e):s.get(e)),n=(e,s,t)=>s.has(e)?l("Cannot add the same private member more than once"):s instanceof WeakSet?s.add(e):s.set(e,t),c=(e,s,t,o)=>(d(e,s,"write to private field"),o?o.call(e,t):s.set(e,t),t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../window-resizer/index.cjs");require("../Store-npaZHvX4.cjs");const m=require("../source/index.cjs"),u=require("../ticker/index.cjs");var r,a;class h extends m.SourceElement{constructor(){super(...arguments);n(this,r,0);n(this,a,()=>{this.classList.add(`state-${this.consumerElement.readyState}`);const t=this.consumerElement.readyState/4;t>i(this,r)&&c(this,r,t),this.dispatchEvent(new CustomEvent("readyStateChange",{detail:{readyState:this.consumerElement.readyState,progress:i(this,r)}})),this.consumerElement.readyState===4&&u.ticker.unsubscribe(i(this,a))})}connectedCallback(){super.connectedCallback(),this.addEventListener("sourceCapture",()=>{u.ticker.subscribe(i(this,a)),this.hasAttribute("capture-autoplay")&&this.consumerElement.play()}),this.addEventListener("sourceRelease",()=>{this.hasAttribute("capture-autoplay")&&(this.consumerElement.pause(),this.hasAttribute("replay")&&(this.consumerElement.currentTime=0)),this.hasAttribute("reload-source")&&this.classList.remove("state-0","state-1","state-2","state-3","state-4")})}disconnectedCallback(){super.disconnectedCallback(),u.ticker.unsubscribe(i(this,a)),c(this,r,0)}createConsumer(){return document.createElement("video")}consumeSource(t){this.consumerElement.src=t||""}}r=new WeakMap,a=new WeakMap;customElements.get("e-video")||customElements.define("e-video",h);exports.VideoElement=h;
@@ -4,7 +4,7 @@ var m = (e) => {
4
4
  var h = (e, s, t) => s.has(e) || m("Cannot " + t);
5
5
  var i = (e, s, t) => (h(e, s, "read from private field"), t ? t.call(e) : s.get(e)), n = (e, s, t) => s.has(e) ? m("Cannot add the same private member more than once") : s instanceof WeakSet ? s.add(e) : s.set(e, t), c = (e, s, t, u) => (h(e, s, "write to private field"), u ? u.call(e, t) : s.set(e, t), t);
6
6
  import "../window-resizer/index.js";
7
- import "../Store-DGtldlBH.js";
7
+ import "../Store-C46i0nvr.js";
8
8
  import { SourceElement as l } from "../source/index.js";
9
9
  import { ticker as o } from "../ticker/index.js";
10
10
  var r, a;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aptechka",
3
- "version": "0.13.0",
3
+ "version": "0.14.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/denisavitski/aptechka.git"
@@ -18,11 +18,6 @@
18
18
  ],
19
19
  "type": "module",
20
20
  "exports": {
21
- "./accordion": {
22
- "require": "./lib/accordion/index.cjs",
23
- "default": "./lib/accordion/index.js",
24
- "types": "./lib/accordion/index.d.ts"
25
- },
26
21
  "./animation": {
27
22
  "require": "./lib/animation/index.cjs",
28
23
  "default": "./lib/animation/index.js",
@@ -38,11 +33,6 @@
38
33
  "default": "./lib/canvas/index.js",
39
34
  "types": "./lib/canvas/index.d.ts"
40
35
  },
41
- "./checkbox": {
42
- "require": "./lib/checkbox/index.cjs",
43
- "default": "./lib/checkbox/index.js",
44
- "types": "./lib/checkbox/index.d.ts"
45
- },
46
36
  "./class-linked-status": {
47
37
  "require": "./lib/class-linked-status/index.cjs",
48
38
  "default": "./lib/class-linked-status/index.js",
@@ -153,11 +143,6 @@
153
143
  "default": "./lib/media/index.js",
154
144
  "types": "./lib/media/index.d.ts"
155
145
  },
156
- "./modal": {
157
- "require": "./lib/modal/index.cjs",
158
- "default": "./lib/modal/index.js",
159
- "types": "./lib/modal/index.d.ts"
160
- },
161
146
  "./morph": {
162
147
  "require": "./lib/morph/index.cjs",
163
148
  "default": "./lib/morph/index.js",
@@ -198,11 +183,6 @@
198
183
  "default": "./lib/scroll-entries/index.js",
199
184
  "types": "./lib/scroll-entries/index.d.ts"
200
185
  },
201
- "./select": {
202
- "require": "./lib/select/index.cjs",
203
- "default": "./lib/select/index.js",
204
- "types": "./lib/select/index.d.ts"
205
- },
206
186
  "./sequence": {
207
187
  "require": "./lib/sequence/index.cjs",
208
188
  "default": "./lib/sequence/index.js",
@@ -223,25 +203,15 @@
223
203
  "default": "./lib/store/index.js",
224
204
  "types": "./lib/store/index.d.ts"
225
205
  },
226
- "./svg-path-data": {
227
- "require": "./lib/svg-path-data/index.cjs",
228
- "default": "./lib/svg-path-data/index.js",
229
- "types": "./lib/svg-path-data/index.d.ts"
230
- },
231
- "./theme": {
232
- "require": "./lib/theme/index.cjs",
233
- "default": "./lib/theme/index.js",
234
- "types": "./lib/theme/index.d.ts"
235
- },
236
206
  "./ticker": {
237
207
  "require": "./lib/ticker/index.cjs",
238
208
  "default": "./lib/ticker/index.js",
239
209
  "types": "./lib/ticker/index.d.ts"
240
210
  },
241
- "./tweaker": {
242
- "require": "./lib/tweaker/index.cjs",
243
- "default": "./lib/tweaker/index.js",
244
- "types": "./lib/tweaker/index.d.ts"
211
+ "./need_redo_tweaker": {
212
+ "require": "./lib/need_redo_tweaker/index.cjs",
213
+ "default": "./lib/need_redo_tweaker/index.js",
214
+ "types": "./lib/need_redo_tweaker/index.d.ts"
245
215
  },
246
216
  "./utils": {
247
217
  "require": "./lib/utils/index.cjs",
@@ -261,9 +231,6 @@
261
231
  },
262
232
  "typesVersions": {
263
233
  "*": {
264
- "accordion": [
265
- "lib/accordion/index.d.ts"
266
- ],
267
234
  "animation": [
268
235
  "lib/animation/index.d.ts"
269
236
  ],
@@ -273,9 +240,6 @@
273
240
  "canvas": [
274
241
  "lib/canvas/index.d.ts"
275
242
  ],
276
- "checkbox": [
277
- "lib/checkbox/index.d.ts"
278
- ],
279
243
  "class-linked-status": [
280
244
  "lib/class-linked-status/index.d.ts"
281
245
  ],
@@ -345,9 +309,6 @@
345
309
  "media": [
346
310
  "lib/media/index.d.ts"
347
311
  ],
348
- "modal": [
349
- "lib/modal/index.d.ts"
350
- ],
351
312
  "morph": [
352
313
  "lib/morph/index.d.ts"
353
314
  ],
@@ -372,9 +333,6 @@
372
333
  "scroll-entries": [
373
334
  "lib/scroll-entries/index.d.ts"
374
335
  ],
375
- "select": [
376
- "lib/select/index.d.ts"
377
- ],
378
336
  "sequence": [
379
337
  "lib/sequence/index.d.ts"
380
338
  ],
@@ -387,17 +345,11 @@
387
345
  "store": [
388
346
  "lib/store/index.d.ts"
389
347
  ],
390
- "svg-path-data": [
391
- "lib/svg-path-data/index.d.ts"
392
- ],
393
- "theme": [
394
- "lib/theme/index.d.ts"
395
- ],
396
348
  "ticker": [
397
349
  "lib/ticker/index.d.ts"
398
350
  ],
399
- "tweaker": [
400
- "lib/tweaker/index.d.ts"
351
+ "need_redo_tweaker": [
352
+ "lib/need_redo_tweaker/index.d.ts"
401
353
  ],
402
354
  "utils": [
403
355
  "lib/utils/index.d.ts"
@@ -1 +0,0 @@
1
- "use strict";var p=s=>{throw TypeError(s)};var D=(s,r,e)=>r.has(s)||p("Cannot "+e);var a=(s,r,e)=>(D(s,r,"read from private field"),e?e.call(s):r.get(s)),h=(s,r,e)=>r.has(s)?p("Cannot add the same private member more than once"):r instanceof WeakSet?r.add(s):r.set(s,e),v=(s,r,e,c)=>(D(s,r,"write to private field"),c?c.call(s,e):r.set(s,e),e);var y=(s,r,e)=>new Promise((c,i)=>{var n=t=>{try{u(e.next(t))}catch(d){i(d)}},b=t=>{try{u(e.throw(t))}catch(d){i(d)}},u=t=>t.done?c(t.value):Promise.resolve(t.value).then(n,b);u((e=e.apply(s,r)).next())});const S=require("./Store-BnA-dJsE.cjs");var o;class x extends S.Store{constructor(e,c,i){super(null,i);h(this,o);v(this,o,e.subscribe(n=>{this.current=c(n.current)}))}close(){super.close(),a(this,o).call(this)}}o=new WeakMap;var l;class A extends S.Store{constructor(e,c,i){super(null,i);h(this,l);let n=0;v(this,l,e.subscribe(b=>y(this,null,function*(){const u=++n,t=yield c(b.current);n===u&&(this.current=t)})))}close(){super.close(),a(this,l).call(this)}}l=new WeakMap;exports.AsyncDerived=A;exports.Derived=x;
@@ -1,56 +0,0 @@
1
- var v = (s) => {
2
- throw TypeError(s);
3
- };
4
- var x = (s, r, e) => r.has(s) || v("Cannot " + e);
5
- var h = (s, r, e) => (x(s, r, "read from private field"), e ? e.call(s) : r.get(s)), p = (s, r, e) => r.has(s) ? v("Cannot add the same private member more than once") : r instanceof WeakSet ? r.add(s) : r.set(s, e), d = (s, r, e, c) => (x(s, r, "write to private field"), c ? c.call(s, e) : r.set(s, e), e);
6
- var D = (s, r, e) => new Promise((c, n) => {
7
- var u = (t) => {
8
- try {
9
- i(e.next(t));
10
- } catch (b) {
11
- n(b);
12
- }
13
- }, a = (t) => {
14
- try {
15
- i(e.throw(t));
16
- } catch (b) {
17
- n(b);
18
- }
19
- }, i = (t) => t.done ? c(t.value) : Promise.resolve(t.value).then(u, a);
20
- i((e = e.apply(s, r)).next());
21
- });
22
- import { S as f } from "./Store-DGtldlBH.js";
23
- var o;
24
- class A extends f {
25
- constructor(e, c, n) {
26
- super(null, n);
27
- p(this, o);
28
- d(this, o, e.subscribe((u) => {
29
- this.current = c(u.current);
30
- }));
31
- }
32
- close() {
33
- super.close(), h(this, o).call(this);
34
- }
35
- }
36
- o = new WeakMap();
37
- var l;
38
- class S extends f {
39
- constructor(e, c, n) {
40
- super(null, n);
41
- p(this, l);
42
- let u = 0;
43
- d(this, l, e.subscribe((a) => D(this, null, function* () {
44
- const i = ++u, t = yield c(a.current);
45
- u === i && (this.current = t);
46
- })));
47
- }
48
- close() {
49
- super.close(), h(this, l).call(this);
50
- }
51
- }
52
- l = new WeakMap();
53
- export {
54
- S as A,
55
- A as D
56
- };
@@ -1 +0,0 @@
1
- "use strict";var p=i=>{throw TypeError(i)};var N=(i,t,e)=>t.has(i)||p("Cannot "+e);var r=(i,t,e)=>(N(i,t,"read from private field"),e?e.call(i):t.get(i)),s=(i,t,e)=>t.has(i)?p("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(i):t.set(i,e),a=(i,t,e,c)=>(N(i,t,"write to private field"),c?c.call(i,e):t.set(i,e),e),R=(i,t,e)=>(N(i,t,"access private method"),e);const z=require("./browser-CpzFX2xg.cjs");var f,d,S;class M{constructor(){s(this,f,null);s(this,d,"");s(this,S,"");z.isBrowser&&(a(this,d,document.documentElement.getAttribute("data-project")||"unnamed"),a(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,f)}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"?a(this,f,JSON.parse(t)):a(this,f,t),l.current.forEach(e=>{e.passport&&this.updateStore(e)}))}resetState(){l.current.forEach(t=>{t.passport&&t.reset()}),this.saveState()}updateStore(t){var c,v;if(!Array.isArray((c=r(this,f))==null?void 0:c.stores))return t;const e=t.passport;if(e){const A=(v=r(this,f))==null?void 0:v.stores.find(q=>q.name===e.name);A&&(t.current=A.value)}return t}getState(){const t={stores:[]};return l.current.forEach(e=>{e.passport&&(t.stores.find(c=>c.name===e.passport.name)||t.stores.push({value:e.current,name:e.passport.name}))}),t}}f=new WeakMap,d=new WeakMap,S=new WeakMap;const C=new M;var g,h,m,n,o,u,y,b,w,j;class E{constructor(t,e){s(this,w);s(this,g);s(this,h);s(this,m);s(this,n,new Set);s(this,o);s(this,u);s(this,y);s(this,b);a(this,g,e==null?void 0:e.passport),a(this,h,{initial:t,previous:void 0,current:t}),a(this,m,(e==null?void 0:e.equalityCheck)||((c,v)=>c===v)),e!=null&&e.validate&&this.addMiddleware(e.validate),a(this,y,(e==null?void 0:e.notifyAndClose)||!1),a(this,b,(e==null?void 0:e.invisible)||!1),a(this,o,(e==null?void 0:e.skipSubscribeNotification)||!1),r(this,g)&&C.updateStore(this)}get passport(){return r(this,g)}get initial(){return r(this,h).initial}get previous(){return r(this,h).previous}get current(){return r(this,h).current}set current(t){if(!r(this,m).call(this,r(this,h).current,t)){if(r(this,h).previous=r(this,h).current,r(this,u))for(const e of r(this,u))t=e(t);r(this,h).current=t,R(this,w,j).call(this),r(this,y)&&this.close()}}get subscribers(){return r(this,n)}addMiddleware(t){r(this,u)||a(this,u,new Set),r(this,u).add(t)}removeMiddleware(t){var e,c;(e=r(this,u))==null||e.delete(t),(c=r(this,u))!=null&&c.size||a(this,u,void 0)}subscribe(t){return!r(this,b)&&!r(this,n).size&&I(this),r(this,n).add(t),r(this,o)||t(r(this,h)),()=>{this.unsubscribe(t)}}unsubscribe(t){r(this,n).delete(t),r(this,n).size||k(this)}reset(){this.current=Array.isArray(this.initial)?[...this.initial]:this.initial}close(){r(this,n).clear(),k(this)}}g=new WeakMap,h=new WeakMap,m=new WeakMap,n=new WeakMap,o=new WeakMap,u=new WeakMap,y=new WeakMap,b=new WeakMap,w=new WeakSet,j=function(){for(const t of r(this,n))t(r(this,h))};const l=new E([],{invisible:!0});function I(i){l.current.includes(i)||(l.current=[...l.current,i])}function k(i){l.current.includes(i)&&(l.current=l.current.filter(t=>t!==i))}exports.Store=E;exports.activeStores=l;exports.storeRegistry=C;