aptechka 0.5.26 → 0.5.27

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/Damped-DxwUBxOC.cjs +1 -0
  2. package/lib/{Damped-BJgyFENo.js → Damped-QZAoXO5Z.js} +31 -32
  3. package/lib/{Derived-BZtlW0bB.cjs → Derived-B-g8dYgh.cjs} +1 -1
  4. package/lib/{Derived-DH-ouLBq.js → Derived-kPJs5JC5.js} +1 -1
  5. package/lib/{SourceManager-DmXmmA6z.js → SourceManager-Q-PB-Rkh.js} +3 -4
  6. package/lib/SourceManager-vSlsMKUE.cjs +1 -0
  7. package/lib/{Store-Cd-E5W1z.js → Store-BQXXikps.js} +7 -8
  8. package/lib/Store-C-1ruEIm.cjs +1 -0
  9. package/lib/{Viewport-CCDNxaDg.js → Viewport-CFFhFKqX.js} +5 -6
  10. package/lib/Viewport-DMB0dO-s.cjs +1 -0
  11. package/lib/accordion/index.cjs +1 -1
  12. package/lib/accordion/index.js +8 -9
  13. package/lib/animation/index.cjs +1 -1
  14. package/lib/animation/index.js +13 -14
  15. package/lib/attribute/index.cjs +1 -1
  16. package/lib/attribute/index.js +15 -16
  17. package/lib/canvas/index.cjs +1 -1
  18. package/lib/canvas/index.js +3 -4
  19. package/lib/checkbox/index.cjs +1 -1
  20. package/lib/checkbox/index.js +3 -4
  21. package/lib/class-linked-status/index.cjs +1 -1
  22. package/lib/class-linked-status/index.js +28 -29
  23. package/lib/controls/index.cjs +1 -1
  24. package/lib/controls/index.js +52 -53
  25. package/lib/{createStylesheet-C8aQQ4hd.cjs → createStylesheet-CqHU9_qv.cjs} +1 -1
  26. package/lib/{createStylesheet-KMRQhSa-.js → createStylesheet-DBCEbDjI.js} +1 -1
  27. package/lib/createTheme-CHnsCgAr.js +15 -0
  28. package/lib/createTheme-Cfaw9UmV.cjs +1 -0
  29. package/lib/css-property/index.cjs +1 -1
  30. package/lib/css-property/index.js +9 -10
  31. package/lib/custom-element/index.cjs +1 -1
  32. package/lib/custom-element/index.js +15 -16
  33. package/lib/dev/index.cjs +1 -1
  34. package/lib/dev/index.js +6 -7
  35. package/lib/device/index.cjs +1 -1
  36. package/lib/device/index.js +1 -1
  37. package/lib/element-constructor/index.cjs +1 -1
  38. package/lib/element-constructor/index.js +3 -3
  39. package/lib/element-resizer/index.cjs +1 -1
  40. package/lib/element-resizer/index.js +22 -23
  41. package/lib/en3/index.cjs +1 -1
  42. package/lib/en3/index.js +20 -21
  43. package/lib/image/index.cjs +1 -1
  44. package/lib/image/index.js +7 -8
  45. package/lib/{index-DGr7Qzg3.js → index-BAHHdcp3.js} +3 -4
  46. package/lib/index-D2XtQX56.cjs +9 -0
  47. package/lib/intersector/index.cjs +1 -1
  48. package/lib/intersector/index.js +6 -7
  49. package/lib/ladder/index.cjs +1 -1
  50. package/lib/ladder/index.js +3 -4
  51. package/lib/layout-box/index.cjs +1 -1
  52. package/lib/layout-box/index.js +2 -3
  53. package/lib/loading/index.cjs +1 -1
  54. package/lib/loading/index.js +15 -16
  55. package/lib/media/index.cjs +1 -1
  56. package/lib/media/index.js +5 -6
  57. package/lib/modal/index.cjs +1 -1
  58. package/lib/modal/index.js +3 -4
  59. package/lib/morph/index.cjs +1 -1
  60. package/lib/morph/index.js +2 -3
  61. package/lib/pointer/index.cjs +1 -1
  62. package/lib/pointer/index.js +2 -3
  63. package/lib/popover/index.cjs +1 -1
  64. package/lib/popover/index.js +12 -13
  65. package/lib/resized/index.cjs +1 -1
  66. package/lib/resized/index.js +7 -8
  67. package/lib/router/index.cjs +1 -1
  68. package/lib/router/index.js +7 -8
  69. package/lib/scroll/index.cjs +1 -1
  70. package/lib/scroll/index.js +6 -7
  71. package/lib/select/index.cjs +1 -1
  72. package/lib/select/index.js +1 -1
  73. package/lib/sequence/index.cjs +1 -1
  74. package/lib/sequence/index.js +1 -2
  75. package/lib/slicer/index.cjs +2 -2
  76. package/lib/slicer/index.js +3 -4
  77. package/lib/source/index.cjs +1 -1
  78. package/lib/source/index.js +29 -30
  79. package/lib/store/index.cjs +1 -1
  80. package/lib/store/index.js +12 -13
  81. package/lib/svg-path-data/index.cjs +3 -0
  82. package/lib/{utils/svg.d.ts → svg-path-data/index.d.ts} +1 -1
  83. package/lib/{path-data-polyfill-DgeDWYeI.js → svg-path-data/index.js} +201 -162
  84. package/lib/{tags-BoPv9fDr.js → tags-CMPg9ETZ.js} +233 -234
  85. package/lib/tags-Djb6mb1o.cjs +1 -0
  86. package/lib/theme/index.cjs +1 -1
  87. package/lib/theme/index.js +3 -4
  88. package/lib/ticker/index.cjs +1 -1
  89. package/lib/ticker/index.js +12 -13
  90. package/lib/tweaker/index.cjs +1 -1
  91. package/lib/tweaker/index.js +5 -6
  92. package/lib/utils/index.cjs +1 -1
  93. package/lib/utils/index.d.ts +0 -1
  94. package/lib/utils/index.js +125 -163
  95. package/lib/video/index.cjs +1 -1
  96. package/lib/video/index.js +4 -5
  97. package/lib/window-resizer/index.cjs +1 -1
  98. package/lib/window-resizer/index.js +6 -7
  99. package/package.json +9 -1
  100. package/lib/Damped-CbWlWAbx.cjs +0 -1
  101. package/lib/SourceManager-BFSCX4Q8.cjs +0 -1
  102. package/lib/Store-BQGNOHlY.cjs +0 -1
  103. package/lib/Viewport-DhKPH5nw.cjs +0 -1
  104. package/lib/createTheme-BSreUYge.cjs +0 -1
  105. package/lib/createTheme-u3NsrEV6.js +0 -16
  106. package/lib/index-CWHXGxK7.cjs +0 -9
  107. package/lib/path-data-polyfill-CXsOR7Oc.cjs +0 -3
  108. package/lib/tags-CueX-JLX.cjs +0 -1
@@ -1,6 +1,6 @@
1
- import { E as e, a as t, b as r, c as o, d as i, f as l, g as d, h as m, i as p, j as c, k as n, l as u, m as b, n as h, o as f, p as g, q as y, r as k, s as v, t as x, u as q, v as j, a_ as w, w as C, x as E, y as S, z as T, A as V, B as z, C as A, D as B, F as D, G as F, e as G, H, I, aZ as J, J as K, K as L, L as M, M as N, N as O, aY as P, O as Q, P as R, Q as U, R as W, S as X, T as Y, U as Z, V as _, W as $, X as aa, Y as sa, aV as ea, Z as ta, _ as ra, $ as oa, a0 as ia, a1 as la, a2 as da, a3 as ma, a4 as pa, a5 as ca, a6 as na, a7 as ua, a8 as ba, a9 as ha, aa as fa, ab as ga, ac as ya, ad as ka, ae as va, af as xa, ag as qa, ah as ja, ai as wa, aj as Ca, ak as Ea, al as Sa, am as Ta, an as Va, ao as za, ap as Aa, aq as Ba, ar as Da, as as Fa, at as Ga, au as Ha, av as Ia, aw as Ja, ax as Ka, ay as La, az as Ma, aA as Na, aB as Oa, aC as Pa, aD as Qa, aE as Ra, aF as Ua, aG as Wa, aH as Xa, aI as Ya, aJ as Za, aK as _a, aL as $a, aM as as, aN as ss, aO as es, aP as ts, aQ as rs, aR as os, aS as is, aT as ls, aU as ds, aW as ms, aX as ps } from "../tags-BoPv9fDr.js";
2
- import { c as ns } from "../createStylesheet-KMRQhSa-.js";
3
- import { c as bs } from "../createTheme-u3NsrEV6.js";
1
+ import { E as e, a as t, b as r, c as o, d as i, f as l, g as d, h as m, i as p, j as c, k as n, l as u, m as b, n as h, o as f, p as g, q as y, r as k, s as v, t as x, u as q, v as j, a_ as w, w as C, x as E, y as S, z as T, A as V, B as z, C as A, D as B, F as D, G as F, e as G, H, I, aZ as J, J as K, K as L, L as M, M as N, N as O, aY as P, O as Q, P as R, Q as U, R as W, S as X, T as Y, U as Z, V as _, W as $, X as aa, Y as sa, aV as ea, Z as ta, _ as ra, $ as oa, a0 as ia, a1 as la, a2 as da, a3 as ma, a4 as pa, a5 as ca, a6 as na, a7 as ua, a8 as ba, a9 as ha, aa as fa, ab as ga, ac as ya, ad as ka, ae as va, af as xa, ag as qa, ah as ja, ai as wa, aj as Ca, ak as Ea, al as Sa, am as Ta, an as Va, ao as za, ap as Aa, aq as Ba, ar as Da, as as Fa, at as Ga, au as Ha, av as Ia, aw as Ja, ax as Ka, ay as La, az as Ma, aA as Na, aB as Oa, aC as Pa, aD as Qa, aE as Ra, aF as Ua, aG as Wa, aH as Xa, aI as Ya, aJ as Za, aK as _a, aL as $a, aM as as, aN as ss, aO as es, aP as ts, aQ as rs, aR as os, aS as is, aT as ls, aU as ds, aW as ms, aX as ps } from "../tags-CMPg9ETZ.js";
2
+ import { c as ns } from "../createStylesheet-DBCEbDjI.js";
3
+ import { c as bs } from "../createTheme-CHnsCgAr.js";
4
4
  export {
5
5
  e as ElementConstructor,
6
6
  t as a,
@@ -1 +1 @@
1
- "use strict";var h=(r,t,s)=>{if(!t.has(r))throw TypeError("Cannot "+s)};var n=(r,t,s)=>(h(r,t,"read from private field"),s?s.call(r):t.get(r)),u=(r,t,s)=>{if(t.has(r))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(r):t.set(r,s)},f=(r,t,s,e)=>(h(r,t,"write to private field"),e?e.call(r,s):t.set(r,s),s);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const z=require("../browser-CpzFX2xg.cjs"),d=require("../dom-JBOkFLTh.cjs");require("../path-data-polyfill-CXsOR7Oc.cjs");var i,o,b;class y{constructor(){u(this,i,[]);u(this,o,null);u(this,b,t=>{n(this,i).map(e=>({subscriber:e,entry:t.find(l=>l.target===e.element)})).forEach(e=>{e.entry&&(e.subscriber.entry=e.entry,e.subscriber.callback(e.entry))})});z.isBrowser&&window.ResizeObserver&&f(this,o,new ResizeObserver(n(this,b)))}subscribe(t,s){const e=d.getElement(t);if(!e)return()=>{};const l=n(this,i).find(c=>c.element===e);if(!l)n(this,o).observe(e);else{const c=n(this,i).find(m=>m.element===e&&m.entry);c!=null&&c.element.isConnected&&s(c.entry)}return n(this,i).push({element:e,callback:s,entry:(l==null?void 0:l.entry)||null}),()=>{this.unsubscribe(s)}}unsubscribe(t){const s=n(this,i).find(e=>e.callback===t);s&&(f(this,i,n(this,i).filter(e=>e.callback!==s.callback)),n(this,i).find(e=>e.element===s.element)||n(this,o).unobserve(s.element))}}i=new WeakMap,o=new WeakMap,b=new WeakMap;const w=new y;exports.ElementResizer=y;exports.elementResizer=w;
1
+ "use strict";var h=(r,t,s)=>{if(!t.has(r))throw TypeError("Cannot "+s)};var n=(r,t,s)=>(h(r,t,"read from private field"),s?s.call(r):t.get(r)),b=(r,t,s)=>{if(t.has(r))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(r):t.set(r,s)},f=(r,t,s,e)=>(h(r,t,"write to private field"),e?e.call(r,s):t.set(r,s),s);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const z=require("../browser-CpzFX2xg.cjs"),d=require("../dom-JBOkFLTh.cjs");var i,o,u;class y{constructor(){b(this,i,[]);b(this,o,null);b(this,u,t=>{n(this,i).map(e=>({subscriber:e,entry:t.find(l=>l.target===e.element)})).forEach(e=>{e.entry&&(e.subscriber.entry=e.entry,e.subscriber.callback(e.entry))})});z.isBrowser&&window.ResizeObserver&&f(this,o,new ResizeObserver(n(this,u)))}subscribe(t,s){const e=d.getElement(t);if(!e)return()=>{};const l=n(this,i).find(c=>c.element===e);if(!l)n(this,o).observe(e);else{const c=n(this,i).find(m=>m.element===e&&m.entry);c!=null&&c.element.isConnected&&s(c.entry)}return n(this,i).push({element:e,callback:s,entry:(l==null?void 0:l.entry)||null}),()=>{this.unsubscribe(s)}}unsubscribe(t){const s=n(this,i).find(e=>e.callback===t);s&&(f(this,i,n(this,i).filter(e=>e.callback!==s.callback)),n(this,i).find(e=>e.element===s.element)||n(this,o).unobserve(s.element))}}i=new WeakMap,o=new WeakMap,u=new WeakMap;const w=new y;exports.ElementResizer=y;exports.elementResizer=w;
@@ -1,47 +1,46 @@
1
- var h = (r, t, s) => {
2
- if (!t.has(r))
1
+ var h = (n, t, s) => {
2
+ if (!t.has(n))
3
3
  throw TypeError("Cannot " + s);
4
4
  };
5
- var n = (r, t, s) => (h(r, t, "read from private field"), s ? s.call(r) : t.get(r)), b = (r, t, s) => {
6
- if (t.has(r))
5
+ var r = (n, t, s) => (h(n, t, "read from private field"), s ? s.call(n) : t.get(n)), b = (n, t, s) => {
6
+ if (t.has(n))
7
7
  throw TypeError("Cannot add the same private member more than once");
8
- t instanceof WeakSet ? t.add(r) : t.set(r, s);
9
- }, u = (r, t, s, e) => (h(r, t, "write to private field"), e ? e.call(r, s) : t.set(r, s), s);
8
+ t instanceof WeakSet ? t.add(n) : t.set(n, s);
9
+ }, u = (n, t, s, e) => (h(n, t, "write to private field"), e ? e.call(n, s) : t.set(n, s), s);
10
10
  import { i as y } from "../browser-0zX67oeU.js";
11
11
  import { g as p } from "../dom-0S_WDL4g.js";
12
- import "../path-data-polyfill-DgeDWYeI.js";
13
- var i, c, f;
12
+ var i, o, f;
14
13
  class w {
15
14
  constructor() {
16
15
  b(this, i, []);
17
- b(this, c, null);
16
+ b(this, o, null);
18
17
  b(this, f, (t) => {
19
- n(this, i).map((e) => ({
18
+ r(this, i).map((e) => ({
20
19
  subscriber: e,
21
20
  entry: t.find((l) => l.target === e.element)
22
21
  })).forEach((e) => {
23
22
  e.entry && (e.subscriber.entry = e.entry, e.subscriber.callback(e.entry));
24
23
  });
25
24
  });
26
- y && window.ResizeObserver && u(this, c, new ResizeObserver(n(this, f)));
25
+ y && window.ResizeObserver && u(this, o, new ResizeObserver(r(this, f)));
27
26
  }
28
27
  subscribe(t, s) {
29
28
  const e = p(t);
30
29
  if (!e)
31
30
  return () => {
32
31
  };
33
- const l = n(this, i).find(
34
- (o) => o.element === e
32
+ const l = r(this, i).find(
33
+ (c) => c.element === e
35
34
  );
36
35
  if (!l)
37
- n(this, c).observe(e);
36
+ r(this, o).observe(e);
38
37
  else {
39
- const o = n(this, i).find(
38
+ const c = r(this, i).find(
40
39
  (m) => m.element === e && m.entry
41
40
  );
42
- o != null && o.element.isConnected && s(o.entry);
41
+ c != null && c.element.isConnected && s(c.entry);
43
42
  }
44
- return n(this, i).push({
43
+ return r(this, i).push({
45
44
  element: e,
46
45
  callback: s,
47
46
  entry: (l == null ? void 0 : l.entry) || null
@@ -50,17 +49,17 @@ class w {
50
49
  };
51
50
  }
52
51
  unsubscribe(t) {
53
- const s = n(this, i).find(
52
+ const s = r(this, i).find(
54
53
  (e) => e.callback === t
55
54
  );
56
- s && (u(this, i, n(this, i).filter(
55
+ s && (u(this, i, r(this, i).filter(
57
56
  (e) => e.callback !== s.callback
58
- )), n(this, i).find((e) => e.element === s.element) || n(this, c).unobserve(s.element));
57
+ )), r(this, i).find((e) => e.element === s.element) || r(this, o).unobserve(s.element));
59
58
  }
60
59
  }
61
- i = new WeakMap(), c = new WeakMap(), f = new WeakMap();
62
- const g = new w();
60
+ i = new WeakMap(), o = new WeakMap(), f = new WeakMap();
61
+ const d = new w();
63
62
  export {
64
63
  w as ElementResizer,
65
- g as elementResizer
64
+ d as elementResizer
66
65
  };
package/lib/en3/index.cjs CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";var ht=Object.defineProperty,lt=Object.defineProperties;var dt=Object.getOwnPropertyDescriptors;var xe=Object.getOwnPropertySymbols;var ut=Object.prototype.hasOwnProperty,ft=Object.prototype.propertyIsEnumerable;var Ne=(C,A,e)=>A in C?ht(C,A,{enumerable:!0,configurable:!0,writable:!0,value:e}):C[A]=e,AA=(C,A)=>{for(var e in A||(A={}))ut.call(A,e)&&Ne(C,e,A[e]);if(xe)for(var e of xe(A))ft.call(A,e)&&Ne(C,e,A[e]);return C},oe=(C,A)=>lt(C,dt(A));var Ie=(C,A,e)=>{if(!A.has(C))throw TypeError("Cannot "+e)};var E=(C,A,e)=>(Ie(C,A,"read from private field"),e?e.call(C):A.get(C)),G=(C,A,e)=>{if(A.has(C))throw TypeError("Cannot add the same private member more than once");A instanceof WeakSet?A.add(C):A.set(C,e)},R=(C,A,e,s)=>(Ie(C,A,"write to private field"),s?s.call(C,e):A.set(C,e),e);var re=(C,A,e)=>(Ie(C,A,"access private method"),e);var uA=(C,A,e)=>new Promise((s,t)=>{var n=o=>{try{r(e.next(o))}catch(a){t(a)}},i=o=>{try{r(e.throw(o))}catch(a){t(a)}},r=o=>o.done?s(o.value):Promise.resolve(o.value).then(n,i);r((e=e.apply(C,A)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const NA=require("../order/index.cjs"),yA=require("../window-resizer/index.cjs"),LA=require("../ticker/index.cjs"),je=require("../dom-JBOkFLTh.cjs");require("../path-data-polyfill-CXsOR7Oc.cjs");const B=require("three"),pe=require("../layout-box/index.cjs"),ge=require("../loading/index.cjs"),Dt=require("../SourceManager-BFSCX4Q8.cjs"),ke=require("../Store-BQGNOHlY.cjs");function kA(C){const A=e=>{e.dispose();for(const s of Object.keys(e)){const t=e[s];t&&typeof t=="object"&&"minFilter"in t&&t.dispose()}};C.traverse(e=>{if(e instanceof B.Mesh){if(e.geometry.dispose(),!Array.isArray(e.material)&&e.material.isMaterial)A(e.material);else if(Array.isArray(e.material))for(const s of e.material)A(s)}})}var bA,T,EA,sA,nA,DA,iA,oA;class me{constructor(A,e){G(this,bA,void 0);G(this,T,void 0);G(this,EA,void 0);G(this,sA,void 0);G(this,nA,void 0);G(this,DA,void 0);G(this,iA,void 0);G(this,oA,void 0);R(this,bA,A),R(this,T,(e==null?void 0:e.cameraType)==="orthographic"?new B.OrthographicCamera:new B.PerspectiveCamera),R(this,EA,new B.Scene),R(this,sA,[]),R(this,nA,(e==null?void 0:e.cameraDistance)||1e3),E(this,T).near=(e==null?void 0:e.cameraNear)||1,E(this,T).far=(e==null?void 0:e.cameraFar)||11e3,R(this,DA,(e==null?void 0:e.cameraFov)||"auto"),R(this,iA,je.getElement(e==null?void 0:e.sizeElement)||document.documentElement),this.beforeRenderCallback=e==null?void 0:e.beforeRender,R(this,oA,new pe.LayoutBox(E(this,iA))),E(this,oA).onScale(()=>{this.resize()})}get name(){return E(this,bA)}get camera(){return E(this,T)}get scene(){return E(this,EA)}get box(){return E(this,oA)}get cameraDistance(){return E(this,nA)}set cameraDistance(A){R(this,nA,A),this.resize()}get sizeElement(){return E(this,iA)}get isClipped(){return E(this,iA)!==w.containerElement}resize(){const{width:A,height:e}=E(this,oA);E(this,T).position.z=E(this,nA),E(this,T)instanceof B.PerspectiveCamera?(E(this,T).aspect=A/e,E(this,T).fov=E(this,DA)==="auto"?2*Math.atan(e/2/E(this,nA))*(180/Math.PI):E(this,DA)):E(this,T)instanceof B.OrthographicCamera&&(E(this,T).left=A/-2,E(this,T).right=A/2,E(this,T).top=e/2,E(this,T).bottom=e/-2),E(this,T).updateProjectionMatrix()}destroy(){E(this,sA).forEach(A=>{A.userData.box.destroy()}),E(this,EA).clear(),kA(E(this,EA)),w.destroyView(this.name),E(this,oA).destroy()}attachToHTMLElement(A,e,s){const t=new pe.LayoutBox(A,oe(AA({},s),{containerElement:E(this,iA),cartesian:!0,scrollStep:!this.isClipped}));return t.bindObject(e),e.userData.box=t,E(this,sA).push(e),e}detachFromHTMLElement(A){R(this,sA,E(this,sA).filter(e=>e===A?(A.userData.box.destroy(),!1):!0))}add(...A){const e=A[0],s=A[1],t=A[2];return this.scene.add(e),s?this.attachToHTMLElement(s,e,t):e}remove(A,e){this.scene.remove(A),e&&this.detachFromHTMLElement(A)}}bA=new WeakMap,T=new WeakMap,EA=new WeakMap,sA=new WeakMap,nA=new WeakMap,DA=new WeakMap,iA=new WeakMap,oA=new WeakMap;const O=new Map;var ae,W,y,x,FA,GA,RA,KA,cA,OA,_A,PA;class Ft{constructor(){G(this,ae,`https://unpkg.com/three@0.${B.REVISION}.x`);G(this,W,null);G(this,y,null);G(this,x,new Map);G(this,FA,0);G(this,GA,0);G(this,RA,0);G(this,KA,2);G(this,cA,!1);G(this,OA,!1);G(this,_A,()=>{var A;R(this,FA,E(this,W).clientWidth),R(this,GA,E(this,W).clientHeight),R(this,RA,Math.min(E(this,KA),devicePixelRatio||1)),E(this,y).setPixelRatio(E(this,RA)),E(this,y).setSize(E(this,FA),E(this,GA)),(A=this.onResize)==null||A.call(this)});G(this,PA,()=>{E(this,y).setRenderTarget(null),E(this,x).forEach(A=>{this.render(A)})})}get CDNVersion(){return E(this,ae)}get containerElement(){return E(this,W)}get webglRenderer(){return E(this,y)}get views(){return E(this,x)}get view(){return this.getView("default")}get width(){return E(this,FA)}get height(){return E(this,GA)}get pixelRatio(){return E(this,RA)}get cacheAssets(){return E(this,OA)}setup(A){if(E(this,cA)){console.warn("[en3.setup]: You are trying to setup en3 again.");return}R(this,W,je.getElement(A==null?void 0:A.containerElement)||document.body),R(this,KA,(A==null?void 0:A.maxPixelRatio)||2),R(this,y,new B.WebGLRenderer(A==null?void 0:A.webGLRendererParameters)),E(this,y).domElement.style.cssText=`
1
+ "use strict";var ht=Object.defineProperty,lt=Object.defineProperties;var dt=Object.getOwnPropertyDescriptors;var xe=Object.getOwnPropertySymbols;var ut=Object.prototype.hasOwnProperty,ft=Object.prototype.propertyIsEnumerable;var Ne=(C,A,e)=>A in C?ht(C,A,{enumerable:!0,configurable:!0,writable:!0,value:e}):C[A]=e,AA=(C,A)=>{for(var e in A||(A={}))ut.call(A,e)&&Ne(C,e,A[e]);if(xe)for(var e of xe(A))ft.call(A,e)&&Ne(C,e,A[e]);return C},oe=(C,A)=>lt(C,dt(A));var Ie=(C,A,e)=>{if(!A.has(C))throw TypeError("Cannot "+e)};var E=(C,A,e)=>(Ie(C,A,"read from private field"),e?e.call(C):A.get(C)),G=(C,A,e)=>{if(A.has(C))throw TypeError("Cannot add the same private member more than once");A instanceof WeakSet?A.add(C):A.set(C,e)},R=(C,A,e,s)=>(Ie(C,A,"write to private field"),s?s.call(C,e):A.set(C,e),e);var re=(C,A,e)=>(Ie(C,A,"access private method"),e);var uA=(C,A,e)=>new Promise((s,t)=>{var n=o=>{try{r(e.next(o))}catch(a){t(a)}},i=o=>{try{r(e.throw(o))}catch(a){t(a)}},r=o=>o.done?s(o.value):Promise.resolve(o.value).then(n,i);r((e=e.apply(C,A)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const NA=require("../order/index.cjs"),yA=require("../window-resizer/index.cjs"),LA=require("../ticker/index.cjs"),je=require("../dom-JBOkFLTh.cjs"),B=require("three"),pe=require("../layout-box/index.cjs"),ge=require("../loading/index.cjs"),Dt=require("../SourceManager-vSlsMKUE.cjs"),ke=require("../Store-C-1ruEIm.cjs");function kA(C){const A=e=>{e.dispose();for(const s of Object.keys(e)){const t=e[s];t&&typeof t=="object"&&"minFilter"in t&&t.dispose()}};C.traverse(e=>{if(e instanceof B.Mesh){if(e.geometry.dispose(),!Array.isArray(e.material)&&e.material.isMaterial)A(e.material);else if(Array.isArray(e.material))for(const s of e.material)A(s)}})}var bA,T,EA,sA,nA,DA,iA,oA;class me{constructor(A,e){G(this,bA,void 0);G(this,T,void 0);G(this,EA,void 0);G(this,sA,void 0);G(this,nA,void 0);G(this,DA,void 0);G(this,iA,void 0);G(this,oA,void 0);R(this,bA,A),R(this,T,(e==null?void 0:e.cameraType)==="orthographic"?new B.OrthographicCamera:new B.PerspectiveCamera),R(this,EA,new B.Scene),R(this,sA,[]),R(this,nA,(e==null?void 0:e.cameraDistance)||1e3),E(this,T).near=(e==null?void 0:e.cameraNear)||1,E(this,T).far=(e==null?void 0:e.cameraFar)||11e3,R(this,DA,(e==null?void 0:e.cameraFov)||"auto"),R(this,iA,je.getElement(e==null?void 0:e.sizeElement)||document.documentElement),this.beforeRenderCallback=e==null?void 0:e.beforeRender,R(this,oA,new pe.LayoutBox(E(this,iA))),E(this,oA).onScale(()=>{this.resize()})}get name(){return E(this,bA)}get camera(){return E(this,T)}get scene(){return E(this,EA)}get box(){return E(this,oA)}get cameraDistance(){return E(this,nA)}set cameraDistance(A){R(this,nA,A),this.resize()}get sizeElement(){return E(this,iA)}get isClipped(){return E(this,iA)!==w.containerElement}resize(){const{width:A,height:e}=E(this,oA);E(this,T).position.z=E(this,nA),E(this,T)instanceof B.PerspectiveCamera?(E(this,T).aspect=A/e,E(this,T).fov=E(this,DA)==="auto"?2*Math.atan(e/2/E(this,nA))*(180/Math.PI):E(this,DA)):E(this,T)instanceof B.OrthographicCamera&&(E(this,T).left=A/-2,E(this,T).right=A/2,E(this,T).top=e/2,E(this,T).bottom=e/-2),E(this,T).updateProjectionMatrix()}destroy(){E(this,sA).forEach(A=>{A.userData.box.destroy()}),E(this,EA).clear(),kA(E(this,EA)),w.destroyView(this.name),E(this,oA).destroy()}attachToHTMLElement(A,e,s){const t=new pe.LayoutBox(A,oe(AA({},s),{containerElement:E(this,iA),cartesian:!0,scrollStep:!this.isClipped}));return t.bindObject(e),e.userData.box=t,E(this,sA).push(e),e}detachFromHTMLElement(A){R(this,sA,E(this,sA).filter(e=>e===A?(A.userData.box.destroy(),!1):!0))}add(...A){const e=A[0],s=A[1],t=A[2];return this.scene.add(e),s?this.attachToHTMLElement(s,e,t):e}remove(A,e){this.scene.remove(A),e&&this.detachFromHTMLElement(A)}}bA=new WeakMap,T=new WeakMap,EA=new WeakMap,sA=new WeakMap,nA=new WeakMap,DA=new WeakMap,iA=new WeakMap,oA=new WeakMap;const O=new Map;var ae,W,y,x,FA,GA,RA,KA,cA,OA,_A,PA;class Ft{constructor(){G(this,ae,`https://unpkg.com/three@0.${B.REVISION}.x`);G(this,W,null);G(this,y,null);G(this,x,new Map);G(this,FA,0);G(this,GA,0);G(this,RA,0);G(this,KA,2);G(this,cA,!1);G(this,OA,!1);G(this,_A,()=>{var A;R(this,FA,E(this,W).clientWidth),R(this,GA,E(this,W).clientHeight),R(this,RA,Math.min(E(this,KA),devicePixelRatio||1)),E(this,y).setPixelRatio(E(this,RA)),E(this,y).setSize(E(this,FA),E(this,GA)),(A=this.onResize)==null||A.call(this)});G(this,PA,()=>{E(this,y).setRenderTarget(null),E(this,x).forEach(A=>{this.render(A)})})}get CDNVersion(){return E(this,ae)}get containerElement(){return E(this,W)}get webglRenderer(){return E(this,y)}get views(){return E(this,x)}get view(){return this.getView("default")}get width(){return E(this,FA)}get height(){return E(this,GA)}get pixelRatio(){return E(this,RA)}get cacheAssets(){return E(this,OA)}setup(A){if(E(this,cA)){console.warn("[en3.setup]: You are trying to setup en3 again.");return}R(this,W,je.getElement(A==null?void 0:A.containerElement)||document.body),R(this,KA,(A==null?void 0:A.maxPixelRatio)||2),R(this,y,new B.WebGLRenderer(A==null?void 0:A.webGLRendererParameters)),E(this,y).domElement.style.cssText=`
2
2
  position: fixed;
3
3
  left: 0;
4
4
  top: 0;
package/lib/en3/index.js CHANGED
@@ -40,12 +40,11 @@ import { RESIZE_ORDER as yt, TICK_ORDER as At } from "../order/index.js";
40
40
  import { windowResizer as NA } from "../window-resizer/index.js";
41
41
  import { ticker as kA } from "../ticker/index.js";
42
42
  import { g as St } from "../dom-0S_WDL4g.js";
43
- import "../path-data-polyfill-DgeDWYeI.js";
44
43
  import { Mesh as Qe, OrthographicCamera as me, PerspectiveCamera as Xe, Scene as as, REVISION as Is, WebGLRenderer as gs, TextureLoader as Lt, TrianglesDrawMode as Es, TriangleFanDrawMode as ve, TriangleStripDrawMode as Jt, Loader as et, LoaderUtils as WA, FileLoader as FA, Color as cA, LinearSRGBColorSpace as P, SpotLight as cs, PointLight as Qs, DirectionalLight as hs, MeshBasicMaterial as qA, SRGBColorSpace as eA, MeshPhysicalMaterial as tA, Vector2 as Ht, Matrix4 as bA, Vector3 as y, Quaternion as tt, InstancedMesh as ls, InstancedBufferAttribute as ds, Object3D as st, ImageBitmapLoader as us, BufferAttribute as VA, InterleavedBuffer as fs, InterleavedBufferAttribute as Ds, LinearFilter as Me, LinearMipmapLinearFilter as nt, RepeatWrapping as We, PointsMaterial as Fs, Material as Je, LineBasicMaterial as Gs, MeshStandardMaterial as Tt, DoubleSide as Rs, PropertyBinding as ps, BufferGeometry as Ut, SkinnedMesh as ms, LineSegments as Ms, Line as ws, LineLoop as ys, Points as Ss, Group as jA, MathUtils as Ls, Skeleton as Js, AnimationClip as Hs, Bone as Ts, InterpolateLinear as xt, ColorManagement as rt, NearestFilter as Us, NearestMipmapNearestFilter as xs, LinearMipmapNearestFilter as Ns, NearestMipmapLinearFilter as ks, ClampToEdgeWrapping as bs, MirroredRepeatWrapping as Ks, InterpolateDiscrete as Os, FrontSide as _s, Texture as Ct, VectorKeyframeTrack as at, NumberKeyframeTrack as It, QuaternionKeyframeTrack as gt, Box3 as Ps, Sphere as Ys, Interpolant as qs, CompressedCubeTexture as Xs, UnsignedByteType as O, CompressedArrayTexture as vs, CompressedTexture as Nt, RGBAFormat as mA, RGBA_ASTC_4x4_Format as Ws, RGBA_BPTC_Format as Vs, RGBA_ETC2_EAC_Format as js, RGBA_PVRTC_4BPPV1_Format as Zs, RGBA_S3TC_DXT5_Format as zs, RGB_ETC1_Format as $s, RGB_ETC2_Format as An, RGB_PVRTC_4BPPV1_Format as en, RGB_S3TC_DXT1_Format as tn, FloatType as Re, HalfFloatType as pe, DataTexture as sn, Data3DTexture as nn, DisplayP3ColorSpace as on, LinearDisplayP3ColorSpace as Bn, NoColorSpace as Et, RGFormat as XA, RedFormat as vA, RGBA_ASTC_6x6_Format as ct, Plane as De, PlaneHelper as Fe, BoxGeometry as rn, VideoTexture as Cn } from "three";
45
44
  import { LayoutBox as Ve } from "../layout-box/index.js";
46
45
  import { loading as He } from "../loading/index.js";
47
- import { S as an } from "../SourceManager-DmXmmA6z.js";
48
- import { S as Qt } from "../Store-Cd-E5W1z.js";
46
+ import { S as an } from "../SourceManager-Q-PB-Rkh.js";
47
+ import { S as Qt } from "../Store-BQXXikps.js";
49
48
  function we(C) {
50
49
  const A = (e) => {
51
50
  e.dispose();
@@ -2882,7 +2881,7 @@ class Ci {
2882
2881
  JA = new WeakMap(), te = new WeakMap(), se = new WeakMap(), ne = new WeakMap();
2883
2882
  const ai = new Ci();
2884
2883
  var z, L, $, ie;
2885
- class Si {
2884
+ class yi {
2886
2885
  constructor(A, e) {
2887
2886
  F(this, z, void 0);
2888
2887
  F(this, L, void 0);
@@ -2914,7 +2913,7 @@ class Si {
2914
2913
  }
2915
2914
  }
2916
2915
  z = new WeakMap(), L = new WeakMap(), $ = new WeakMap(), ie = new WeakMap();
2917
- class Li extends jA {
2916
+ class Si extends jA {
2918
2917
  constructor(A, e = 500) {
2919
2918
  super(), this.add(new Fe(A.planes[0], e, 16711680)), this.add(new Fe(A.planes[1], e, 16711680)), this.add(new Fe(A.planes[2], e, 16711680)), this.add(new Fe(A.planes[3], e, 16711680));
2920
2919
  }
@@ -2973,7 +2972,7 @@ class es extends an {
2973
2972
  }
2974
2973
  HA = new WeakMap(), uA = new WeakMap(), TA = new WeakMap(), oe = new WeakMap(), Be = new WeakMap(), IA = new WeakMap(), UA = new WeakMap(), re = new WeakMap();
2975
2974
  var fA;
2976
- class Ji extends jA {
2975
+ class Li extends jA {
2977
2976
  constructor(e) {
2978
2977
  super();
2979
2978
  F(this, fA, void 0);
@@ -3154,7 +3153,7 @@ class ss extends Qe {
3154
3153
  }
3155
3154
  }
3156
3155
  AA = new WeakMap(), xA = new WeakMap(), DA = new WeakMap();
3157
- class Hi extends ss {
3156
+ class Ji extends ss {
3158
3157
  constructor(A) {
3159
3158
  super(ue(nA({}, A), {
3160
3159
  loader: GA
@@ -3172,7 +3171,7 @@ class hi {
3172
3171
  }
3173
3172
  }
3174
3173
  var Ce, ae, Ie;
3175
- class Ti extends ss {
3174
+ class Hi extends ss {
3176
3175
  constructor(e) {
3177
3176
  super(ue(nA({}, e), {
3178
3177
  loader: new hi()
@@ -3200,18 +3199,18 @@ class Ti extends ss {
3200
3199
  }
3201
3200
  }
3202
3201
  Ce = new WeakMap(), ae = new WeakMap(), Ie = new WeakMap();
3203
- function Ui(C, A) {
3202
+ function Ti(C, A) {
3204
3203
  C.traverse((e) => {
3205
3204
  e instanceof Qe && A(e);
3206
3205
  });
3207
3206
  }
3208
- function xi(C, A) {
3207
+ function Ui(C, A) {
3209
3208
  C.traverse((e) => {
3210
3209
  e instanceof Qe && e.material && (Array.isArray(e.material) ? e.material : [e.material]).forEach(A);
3211
3210
  });
3212
3211
  }
3213
3212
  const qe = new y(), li = new y();
3214
- function Ni(C, A = "default") {
3213
+ function xi(C, A = "default") {
3215
3214
  const e = w.getView(A), { width: s, height: t } = w, n = s / t;
3216
3215
  C instanceof y ? qe.copy(C) : qe.set(...C);
3217
3216
  const i = e.camera.getWorldPosition(li).distanceTo(qe);
@@ -3256,7 +3255,7 @@ X = new WeakMap(), Se = new WeakSet(), ns = function() {
3256
3255
  });
3257
3256
  let wt = k;
3258
3257
  var gA, EA, ce, $e;
3259
- class ki {
3258
+ class Ni {
3260
3259
  constructor(A) {
3261
3260
  F(this, ce);
3262
3261
  F(this, gA, void 0);
@@ -3301,15 +3300,15 @@ gA = new WeakMap(), EA = new WeakMap(), ce = new WeakSet(), $e = function(A, e,
3301
3300
  )));
3302
3301
  };
3303
3302
  export {
3304
- Si as En3Clip,
3305
- Li as En3ClipHelpers,
3306
- Ji as En3GLTF,
3303
+ yi as En3Clip,
3304
+ Si as En3ClipHelpers,
3305
+ Li as En3GLTF,
3307
3306
  wt as En3HTML,
3308
- Hi as En3Image,
3307
+ Ji as En3Image,
3309
3308
  ss as En3ImageLike,
3310
- ki as En3ModifiedMaterial,
3309
+ Ni as En3ModifiedMaterial,
3311
3310
  es as En3SourceManager,
3312
- Ti as En3Video,
3311
+ Hi as En3Video,
3313
3312
  ht as En3View,
3314
3313
  ts as coverTexture,
3315
3314
  we as dispose,
@@ -3317,7 +3316,7 @@ export {
3317
3316
  _ as en3Cache,
3318
3317
  ai as en3GLTFLoader,
3319
3318
  GA as en3TextureLoader,
3320
- Ni as getCurrentViewport,
3321
- xi as traverseMaterials,
3322
- Ui as traverseMeshes
3319
+ xi as getCurrentViewport,
3320
+ Ui as traverseMaterials,
3321
+ Ti as traverseMeshes
3323
3322
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("../custom-element/index.cjs");require("../window-resizer/index.cjs");require("../Store-BQGNOHlY.cjs");require("../path-data-polyfill-CXsOR7Oc.cjs");const o=require("../source/index.cjs");var l=Object.defineProperty,i=Object.getOwnPropertyDescriptor,a=(n,r,m,t)=>{for(var e=t>1?void 0:t?i(r,m):r,u=n.length-1,s;u>=0;u--)(s=n[u])&&(e=(t?s(r,m,e):s(e))||e);return t&&e&&l(r,m,e),e};exports.ImageElement=class extends o.SourceElement{createConsumer(){return document.createElement("img")}consumeSource(r){this.consumerElement.src=r||""}};exports.ImageElement=a([c.define("e-image")],exports.ImageElement);
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("../custom-element/index.cjs");require("../window-resizer/index.cjs");require("../Store-C-1ruEIm.cjs");const o=require("../source/index.cjs");var l=Object.defineProperty,i=Object.getOwnPropertyDescriptor,a=(n,r,m,t)=>{for(var e=t>1?void 0:t?i(r,m):r,s=n.length-1,u;s>=0;s--)(u=n[s])&&(e=(t?u(r,m,e):u(e))||e);return t&&e&&l(r,m,e),e};exports.ImageElement=class extends o.SourceElement{createConsumer(){return document.createElement("img")}consumeSource(r){this.consumerElement.src=r||""}};exports.ImageElement=a([c.define("e-image")],exports.ImageElement);
@@ -1,14 +1,13 @@
1
1
  import { define as p } from "../custom-element/index.js";
2
2
  import "../window-resizer/index.js";
3
- import "../Store-Cd-E5W1z.js";
4
- import "../path-data-polyfill-DgeDWYeI.js";
5
- import { SourceElement as i } from "../source/index.js";
6
- var l = Object.defineProperty, u = Object.getOwnPropertyDescriptor, f = (r, t, o, m) => {
7
- for (var e = m > 1 ? void 0 : m ? u(t, o) : t, n = r.length - 1, s; n >= 0; n--)
3
+ import "../Store-BQXXikps.js";
4
+ import { SourceElement as l } from "../source/index.js";
5
+ var u = Object.defineProperty, f = Object.getOwnPropertyDescriptor, i = (r, t, o, m) => {
6
+ for (var e = m > 1 ? void 0 : m ? f(t, o) : t, n = r.length - 1, s; n >= 0; n--)
8
7
  (s = r[n]) && (e = (m ? s(t, o, e) : s(e)) || e);
9
- return m && e && l(t, o, e), e;
8
+ return m && e && u(t, o, e), e;
10
9
  };
11
- let c = class extends i {
10
+ let c = class extends l {
12
11
  createConsumer() {
13
12
  return document.createElement("img");
14
13
  }
@@ -16,7 +15,7 @@ let c = class extends i {
16
15
  this.consumerElement.src = r || "";
17
16
  }
18
17
  };
19
- c = f([
18
+ c = i([
20
19
  p("e-image")
21
20
  ], c);
22
21
  export {
@@ -8,13 +8,12 @@ var H = (e, t, s) => (I(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
  }, R = (e, t, s, i) => (I(e, t, "write to private field"), i ? i.call(e, s) : t.set(e, s), s);
10
10
  import { CustomElement as V, define as P } from "./custom-element/index.js";
11
- import "./Store-Cd-E5W1z.js";
11
+ import "./Store-BQXXikps.js";
12
12
  import { i as D } from "./browser-0zX67oeU.js";
13
13
  import { d as Q } from "./events-_C2CztxR.js";
14
14
  import { a as X } from "./style-CklEF62D.js";
15
- import "./path-data-polyfill-DgeDWYeI.js";
16
- import { e as x, p as j, ay as E, D as q } from "./tags-BoPv9fDr.js";
17
- import { c as z } from "./createStylesheet-KMRQhSa-.js";
15
+ import { e as x, p as j, ay as E, D as q } from "./tags-CMPg9ETZ.js";
16
+ import { c as z } from "./createStylesheet-DBCEbDjI.js";
18
17
  import { aptechkaTheme as w } from "./theme/index.js";
19
18
  var ee = Object.defineProperty, te = Object.getOwnPropertyDescriptor, se = (e, t, s, i) => {
20
19
  for (var a = i > 1 ? void 0 : i ? te(t, s) : t, r = e.length - 1, l; r >= 0; r--)
@@ -0,0 +1,9 @@
1
+ "use strict";var z=(t,e,s)=>{if(!e.has(t))throw TypeError("Cannot "+s)};var A=(t,e,s)=>(z(t,e,"read from private field"),s?s.call(t):e.get(t)),H=(t,e,s)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,s)},I=(t,e,s,i)=>(z(t,e,"write to private field"),i?i.call(t,s):e.set(t,s),s);const S=require("./custom-element/index.cjs");require("./Store-C-1ruEIm.cjs");const M=require("./browser-CpzFX2xg.cjs"),N=require("./events-Crwi8fz6.cjs"),V=require("./style-At6aDoqG.cjs"),a=require("./tags-Djb6mb1o.cjs"),P=require("./createStylesheet-CqHU9_qv.cjs"),E=require("./theme/index.cjs");var Y=Object.defineProperty,Z=Object.getOwnPropertyDescriptor,J=(t,e,s,i)=>{for(var n=i>1?void 0:i?Z(e,s):e,l=t.length-1,h;l>=0;l--)(h=t[l])&&(n=(i?h(e,s,n):h(n))||n);return i&&n&&Y(e,s,n),n},q=(t,e,s)=>{if(!e.has(t))throw TypeError("Cannot "+s)},r=(t,e,s)=>(q(t,e,"read from private field"),s?s.call(t):e.get(t)),c=(t,e,s)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,s)},d=(t,e,s,i)=>(q(t,e,"write to private field"),i?i.call(t,s):e.set(t,s),s),B=(t,e,s)=>(q(t,e,"access private method"),s),u,f,o,v,m,g,L,C,W;const Q=P.createStylesheet({":host":{position:"relative"},".head":{width:"100%",cursor:"default",background:"none",border:"none",color:"inherit",fontFamily:"inherit",fontSize:"inherit",fontWeight:"inherit",textAlign:"start",padding:"0",margin:"0"},".body":{boxSizing:"border-box",position:"var(--position, unset)",top:"100%",left:"0",width:"100%",overflow:"hidden",transitionDuration:`var(--duration, ${E.aptechkaTheme.durationShort.var})`,transitionProperty:"height",cursor:"default"},".body-inner":{display:"grid",gap:"var(--gap, 0px)",width:"100%",paddingTop:"var(--gap, 0px)"}});exports.SelectElement=class extends S.CustomElement{constructor(){super(),c(this,C),c(this,u,null),c(this,f,""),c(this,o,null),c(this,v,!1),c(this,m,void 0),c(this,g,null),c(this,L,()=>{N.dispatchSizeChangeEvent(this)}),M.isBrowser&&(this.openShadow(Q),d(this,u,this.attachInternals()),d(this,g,new ResizeObserver(r(this,L))),a.element(this,{children:[a.button({class:"head",children:a.slot({name:"head"}),onClick:()=>{this.opened?this.close():this.open()}}),a.div({class:"body",style:{height:"0px"},children:a.div({class:"body-inner",children:a.slot()}),ref:e=>{d(this,o,e)}})]}))}get value(){return r(this,f)}set value(e){d(this,f,e),this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0})),r(this,u).setFormValue(r(this,f))}get internals(){return r(this,u)}get opened(){return r(this,v)}open(){clearTimeout(r(this,m)),d(this,v,!0),r(this,o).style.display="grid",this.classList.add("triggered"),setTimeout(()=>{this.classList.add("opened"),r(this,o).style.height=r(this,o).scrollHeight+"px",B(this,C,W).call(this)},0)}close(){d(this,v,!1),r(this,o).style.height="0px",this.classList.remove("opened"),B(this,C,W).call(this),d(this,m,setTimeout(()=>{this.classList.remove("triggered"),r(this,o).style.display="none"},V.getElementTransitionDurationMS(r(this,o))))}connectedCallback(){r(this,g).observe(r(this,o))}disconnectedCallback(){clearTimeout(r(this,m)),r(this,g).disconnect()}};u=new WeakMap;f=new WeakMap;o=new WeakMap;v=new WeakMap;m=new WeakMap;g=new WeakMap;L=new WeakMap;C=new WeakSet;W=function(){this.dispatchEvent(new CustomEvent("selectToggle",{bubbles:!0,composed:!0,detail:{opened:r(this,v)}}))};exports.SelectElement.formAssociated=!0;exports.SelectElement=J([S.define("e-select")],exports.SelectElement);var y;class D extends S.CustomElement{constructor(){super(...arguments);H(this,y,null)}get selectElement(){return A(this,y)}connectedCallback(){var i,n;const s=(n=(i=this.assignedSlot)==null?void 0:i.getRootNode())==null?void 0:n.host;s?I(this,y,s):console.log(this,"e-select not found")}}y=new WeakMap;var X=Object.defineProperty,j=Object.getOwnPropertyDescriptor,ee=(t,e,s,i)=>{for(var n=i>1?void 0:i?j(e,s):e,l=t.length-1,h;l>=0;l--)(h=t[l])&&(n=(i?h(e,s,n):h(n))||n);return i&&n&&X(e,s,n),n},F=(t,e,s)=>{if(!e.has(t))throw TypeError("Cannot "+s)},O=(t,e,s)=>(F(t,e,"read from private field"),s?s.call(t):e.get(t)),G=(t,e,s)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,s)},R=(t,e,s)=>(F(t,e,"access private method"),s),w,T,b;const te=P.createStylesheet({":host":{width:"100%",height:E.aptechkaTheme.heightInput.var,display:"inline-flex",alignItems:"center"}});exports.SelectOptionElement=class extends D{constructor(){super(),G(this,T),G(this,w,()=>{this.selectElement.value===this.value?this.style.display="none":this.style.display=""}),M.isBrowser&&(this.openShadow(te),a.element(this,{tabindex:0,onClick:()=>{R(this,T,b).call(this)},onKeydown:e=>{e.code==="Space"&&R(this,T,b).call(this)},children:a.slot()}))}get value(){return(this.hasAttribute("value")?this.getAttribute("value"):this.innerText)||""}connectedCallback(){super.connectedCallback(),this.hasAttribute("default")&&(this.selectElement.value||(this.selectElement.value=this.value)),this.selectElement.addEventListener("change",O(this,w)),setTimeout(()=>{O(this,w).call(this)})}disconnectedCallback(){this.selectElement.removeEventListener("change",O(this,w))}};w=new WeakMap;T=new WeakSet;b=function(){this.selectElement.value=this.value,this.selectElement.close()};exports.SelectOptionElement=ee([S.define("e-select-option")],exports.SelectOptionElement);const U=`<svg
2
+ xmlns="http://www.w3.org/2000/svg"
3
+ width="32"
4
+ height="32"
5
+ viewBox="0 0 24 24"
6
+ >
7
+ <path d="m12.37 15.835l6.43-6.63C19.201 8.79 18.958 8 18.43 8H5.57c-.528 0-.771.79-.37 1.205l6.43 6.63c.213.22.527.22.74 0Z" />
8
+ </svg>
9
+ `;var se=Object.defineProperty,ie=Object.getOwnPropertyDescriptor,ne=(t,e,s,i)=>{for(var n=i>1?void 0:i?ie(e,s):e,l=t.length-1,h;l>=0;l--)(h=t[l])&&(n=(i?h(e,s,n):h(n))||n);return i&&n&&se(e,s,n),n},K=(t,e,s)=>{if(!e.has(t))throw TypeError("Cannot "+s)},p=(t,e,s)=>(K(t,e,"read from private field"),s?s.call(t):e.get(t)),$=(t,e,s)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,s)},re=(t,e,s,i)=>(K(t,e,"write to private field"),i?i.call(t,s):e.set(t,s),s),k,_,x;const ae=P.createStylesheet({":host":{width:"100%",height:E.aptechkaTheme.heightInput.var,display:"inline-flex",alignItems:"center",justifyContent:"space-between"},".default-arrow":{flexShrink:"0",width:"var(--arrow-size, 1em)",height:"var(--arrow-size, 1em)",fill:`var(--arrow-color, ${E.aptechkaTheme.colorDark.var})`,transitionProperty:"transform",transitionDuration:`var(--duration, ${E.aptechkaTheme.durationShort.var})`},":host(.opened) .default-arrow":{transform:"scaleY(-1)"}});exports.SelectHeadElement=class extends D{constructor(){super(),$(this,k,null),$(this,_,()=>{const s=this.selectElement.shadowRoot.querySelector(".body slot").assignedElements().find(i=>i.value===this.selectElement.value);s&&(p(this,k).innerHTML=s.innerHTML)}),$(this,x,()=>{this.classList.toggle("opened",this.selectElement.opened)}),M.isBrowser&&(this.openShadow(ae),a.element(this,{children:[a.slot(),a.slot({name:"arrow",children:a.element(U,{class:"default-arrow"})})]}),this.slot="head")}connectedCallback(){super.connectedCallback(),re(this,k,this.querySelector("[data-value-holder]")||this),this.selectElement.addEventListener("change",p(this,_)),p(this,_).call(this),this.selectElement.addEventListener("selectToggle",p(this,x))}disconnectedCallback(){this.selectElement.removeEventListener("change",p(this,_)),this.selectElement.removeEventListener("selectToggle",p(this,x))}};k=new WeakMap;_=new WeakMap;x=new WeakMap;exports.SelectHeadElement=ne([S.define("e-select-head")],exports.SelectHeadElement);exports.SelectUserElement=D;exports.arrowIcon=U;
@@ -1 +1 @@
1
- "use strict";var y=(s,t,r)=>{if(!t.has(s))throw TypeError("Cannot "+r)};var n=(s,t,r)=>(y(s,t,"read from private field"),r?r.call(s):t.get(s)),b=(s,t,r)=>{if(t.has(s))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(s):t.set(s,r)},f=(s,t,r,e)=>(y(s,t,"write to private field"),e?e.call(s,r):t.set(s,r),r);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("../browser-CpzFX2xg.cjs"),w=require("../dom-JBOkFLTh.cjs");require("../path-data-polyfill-CXsOR7Oc.cjs");var i,u,l;class m{constructor(){b(this,i,[]);b(this,u,null);b(this,l,t=>{n(this,i).map(e=>({subscriber:e,entry:t.find(o=>o.target===e.element)})).forEach(e=>{e.entry&&(e.subscriber.entry=e.entry,e.subscriber.callback(e.entry))})});g.isBrowser&&window.IntersectionObserver&&f(this,u,new IntersectionObserver(n(this,l)))}subscribe(t,r){const e=w.getElement(t);if(!e)return()=>{};const o=n(this,i).find(c=>c.element===e);if(!o)n(this,u).observe(e);else{const c=n(this,i).find(h=>h.element===e&&h.entry);c!=null&&c.entry.isIntersecting&&r(c.entry)}return n(this,i).push({element:e,callback:r,entry:(o==null?void 0:o.entry)||null}),console.log(n(this,i)),()=>{this.unsubscribe(r)}}unsubscribe(t){const r=n(this,i).find(e=>e.callback===t);r&&(f(this,i,n(this,i).filter(e=>e.callback===t)),n(this,i).find(e=>e.element===r.element)||n(this,u).unobserve(r.element))}}i=new WeakMap,u=new WeakMap,l=new WeakMap;const d=new m;exports.Intersector=m;exports.intersector=d;
1
+ "use strict";var y=(n,t,s)=>{if(!t.has(n))throw TypeError("Cannot "+s)};var r=(n,t,s)=>(y(n,t,"read from private field"),s?s.call(n):t.get(n)),b=(n,t,s)=>{if(t.has(n))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(n):t.set(n,s)},f=(n,t,s,e)=>(y(n,t,"write to private field"),e?e.call(n,s):t.set(n,s),s);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("../browser-CpzFX2xg.cjs"),w=require("../dom-JBOkFLTh.cjs");var i,u,l;class m{constructor(){b(this,i,[]);b(this,u,null);b(this,l,t=>{r(this,i).map(e=>({subscriber:e,entry:t.find(o=>o.target===e.element)})).forEach(e=>{e.entry&&(e.subscriber.entry=e.entry,e.subscriber.callback(e.entry))})});g.isBrowser&&window.IntersectionObserver&&f(this,u,new IntersectionObserver(r(this,l)))}subscribe(t,s){const e=w.getElement(t);if(!e)return()=>{};const o=r(this,i).find(c=>c.element===e);if(!o)r(this,u).observe(e);else{const c=r(this,i).find(h=>h.element===e&&h.entry);c!=null&&c.entry.isIntersecting&&s(c.entry)}return r(this,i).push({element:e,callback:s,entry:(o==null?void 0:o.entry)||null}),console.log(r(this,i)),()=>{this.unsubscribe(s)}}unsubscribe(t){const s=r(this,i).find(e=>e.callback===t);s&&(f(this,i,r(this,i).filter(e=>e.callback===t)),r(this,i).find(e=>e.element===s.element)||r(this,u).unobserve(s.element))}}i=new WeakMap,u=new WeakMap,l=new WeakMap;const d=new m;exports.Intersector=m;exports.intersector=d;
@@ -8,10 +8,9 @@ var r = (n, t, s) => (m(n, t, "read from private field"), s ? s.call(n) : t.get(
8
8
  t instanceof WeakSet ? t.add(n) : t.set(n, s);
9
9
  }, l = (n, t, s, e) => (m(n, t, "write to private field"), e ? e.call(n, s) : t.set(n, s), s);
10
10
  import { i as y } from "../browser-0zX67oeU.js";
11
- import { g as p } from "../dom-0S_WDL4g.js";
12
- import "../path-data-polyfill-DgeDWYeI.js";
11
+ import { g } from "../dom-0S_WDL4g.js";
13
12
  var i, b, u;
14
- class g {
13
+ class p {
15
14
  constructor() {
16
15
  f(this, i, []);
17
16
  f(this, b, null);
@@ -28,7 +27,7 @@ class g {
28
27
  ));
29
28
  }
30
29
  subscribe(t, s) {
31
- const e = p(t);
30
+ const e = g(t);
32
31
  if (!e)
33
32
  return () => {
34
33
  };
@@ -61,8 +60,8 @@ class g {
61
60
  }
62
61
  }
63
62
  i = new WeakMap(), b = new WeakMap(), u = new WeakMap();
64
- const E = new g();
63
+ const d = new p();
65
64
  export {
66
- g as Intersector,
67
- E as intersector
65
+ p as Intersector,
66
+ d as intersector
68
67
  };
@@ -1 +1 @@
1
- "use strict";var k=Object.defineProperty;var f=Object.getOwnPropertySymbols;var S=Object.prototype.hasOwnProperty,g=Object.prototype.propertyIsEnumerable;var p=(s,t,e)=>t in s?k(s,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):s[t]=e,b=(s,t)=>{for(var e in t||(t={}))S.call(t,e)&&p(s,e,t[e]);if(f)for(var e of f(t))g.call(t,e)&&p(s,e,t[e]);return s};var y=(s,t,e)=>{if(!t.has(s))throw TypeError("Cannot "+e)};var c=(s,t,e)=>(y(s,t,"read from private field"),e?e.call(s):t.get(s)),h=(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)},d=(s,t,e,o)=>(y(s,t,"write to private field"),o?o.call(s,e):t.set(s,e),e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const v=require("../Store-BQGNOHlY.cjs");require("../path-data-polyfill-CXsOR7Oc.cjs");var u,l,a;class q extends v.Store{constructor(e){super(e,{equalityCheck:()=>!1});h(this,u,void 0);h(this,l,void 0);h(this,a,void 0);d(this,u,b({},e)),d(this,l,new Map),d(this,a,new Set)}get base(){return c(this,u)}get steps(){return c(this,l)}close(){super.close(),c(this,a).clear(),c(this,l).clear()}bind(e){c(this,a).add(e)}unbind(e){c(this,a).delete(e)}deleteStep(e){this.steps.delete(e)}getStepValue(e){return this.steps.get(e)[1]}setStep(e,o,n){const i={};for(const r in this.current)i[r]=n[r]||0;this.steps.set(e,[o,i])}calculate(){const e={};for(const o in this.base)e[o]=this.base[o];for(const o of this.steps){const n=o[1];if(n[0]==="+")for(const i in this.base){const r=n[1][i];e[i]+=r}else if(n[0]==="*")for(const i in this.base){const r=n[1][i];e[i]*=r}else if(n[0]==="/")for(const i in this.base){const r=n[1][i];e[i]/=r}else if(n[0]==="-")for(const i in this.base){const r=n[1][i];e[i]-=r}}for(const o of c(this,a))for(const n in e)o[n]=e[n];this.current=e}}u=new WeakMap,l=new WeakMap,a=new WeakMap;exports.Ladder=q;
1
+ "use strict";var k=Object.defineProperty;var f=Object.getOwnPropertySymbols;var S=Object.prototype.hasOwnProperty,g=Object.prototype.propertyIsEnumerable;var p=(s,t,e)=>t in s?k(s,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):s[t]=e,b=(s,t)=>{for(var e in t||(t={}))S.call(t,e)&&p(s,e,t[e]);if(f)for(var e of f(t))g.call(t,e)&&p(s,e,t[e]);return s};var y=(s,t,e)=>{if(!t.has(s))throw TypeError("Cannot "+e)};var c=(s,t,e)=>(y(s,t,"read from private field"),e?e.call(s):t.get(s)),u=(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)},d=(s,t,e,o)=>(y(s,t,"write to private field"),o?o.call(s,e):t.set(s,e),e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const v=require("../Store-C-1ruEIm.cjs");var h,l,a;class m extends v.Store{constructor(e){super(e,{equalityCheck:()=>!1});u(this,h,void 0);u(this,l,void 0);u(this,a,void 0);d(this,h,b({},e)),d(this,l,new Map),d(this,a,new Set)}get base(){return c(this,h)}get steps(){return c(this,l)}close(){super.close(),c(this,a).clear(),c(this,l).clear()}bind(e){c(this,a).add(e)}unbind(e){c(this,a).delete(e)}deleteStep(e){this.steps.delete(e)}getStepValue(e){return this.steps.get(e)[1]}setStep(e,o,n){const i={};for(const r in this.current)i[r]=n[r]||0;this.steps.set(e,[o,i])}calculate(){const e={};for(const o in this.base)e[o]=this.base[o];for(const o of this.steps){const n=o[1];if(n[0]==="+")for(const i in this.base){const r=n[1][i];e[i]+=r}else if(n[0]==="*")for(const i in this.base){const r=n[1][i];e[i]*=r}else if(n[0]==="/")for(const i in this.base){const r=n[1][i];e[i]/=r}else if(n[0]==="-")for(const i in this.base){const r=n[1][i];e[i]-=r}}for(const o of c(this,a))for(const n in e)o[n]=e[n];this.current=e}}h=new WeakMap,l=new WeakMap,a=new WeakMap;exports.Ladder=m;
@@ -18,10 +18,9 @@ var c = (t, s, e) => (y(t, s, "read from private field"), e ? e.call(t) : s.get(
18
18
  throw TypeError("Cannot add the same private member more than once");
19
19
  s instanceof WeakSet ? s.add(t) : s.set(t, e);
20
20
  }, f = (t, s, e, o) => (y(t, s, "write to private field"), o ? o.call(t, e) : s.set(t, e), e);
21
- import { S as m } from "../Store-Cd-E5W1z.js";
22
- import "../path-data-polyfill-DgeDWYeI.js";
21
+ import { S as v } from "../Store-BQXXikps.js";
23
22
  var l, h, a;
24
- class V extends m {
23
+ class x extends v {
25
24
  constructor(e) {
26
25
  super(e, {
27
26
  equalityCheck: () => !1
@@ -93,5 +92,5 @@ class V extends m {
93
92
  }
94
93
  l = new WeakMap(), h = new WeakMap(), a = new WeakMap();
95
94
  export {
96
- V as Ladder
95
+ x as Ladder
97
96
  };
@@ -1 +1 @@
1
- "use strict";var G=(i,e,s)=>{if(!e.has(i))throw TypeError("Cannot "+s)};var t=(i,e,s)=>(G(i,e,"read from private field"),s?s.call(i):e.get(i)),h=(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)},r=(i,e,s,n)=>(G(i,e,"write to private field"),n?n.call(i,s):e.set(i,s),s);var L=(i,e,s)=>(G(i,e,"access private method"),s);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const dt=require("../css-unit-parser/index.cjs"),J=require("../ladder/index.cjs"),j=require("../order/index.cjs"),N=require("../scroll-entries/index.cjs"),tt=require("../ticker/index.cjs"),et=require("../browser-CpzFX2xg.cjs"),st=require("../dom-JBOkFLTh.cjs"),P=require("../layout-8ryRAMGJ.cjs");require("../path-data-polyfill-CXsOR7Oc.cjs");const it=require("../element-resizer/index.cjs"),ht=require("../window-resizer/index.cjs");function rt(i){const e=Math.sqrt(i.m11*i.m11+i.m12*i.m12+i.m13*i.m13),s=Math.sqrt(i.m21*i.m21+i.m22*i.m22+i.m23*i.m23),n=Math.sqrt(i.m31*i.m31+i.m32*i.m32+i.m33*i.m33),y=Math.atan2(i.m32,i.m33),B=Math.atan2(-i.m31,Math.sqrt(i.m32*i.m32+i.m33*i.m33)),F=Math.atan2(i.m21,i.m11),u=i.m41,q=i.m42*-1,O=i.m43;return{scaleX:e,scaleY:s,scaleZ:n,rotationX:y,rotationY:B,rotationZ:F,translationX:u,translationY:q,translationZ:O}}var a,p,m,v,V,T,w,C,A,W,b,_,X,S,d,R,Y,H,k,f,g,z,o,l,c,x,M,U,Q,I,nt,K,lt,$,ct,E,D,Z;class ft{constructor(e,s){h(this,U);h(this,I);h(this,K);h(this,$);h(this,a,null);h(this,p,null);h(this,m,[]);h(this,v,"auto");h(this,V,"top");h(this,T,!1);h(this,w,!0);h(this,C,!0);h(this,A,!0);h(this,W,!0);h(this,b,0);h(this,_,0);h(this,X,0);h(this,S,0);h(this,d,0);h(this,R,0);h(this,Y,0);h(this,H,0);h(this,k,0);h(this,f,{x:0,y:0,z:0});h(this,g,{x:0,y:0,z:0});h(this,z,{x:1,y:1,z:1});h(this,o,new J.Ladder({x:0,y:0,z:0}));h(this,l,new J.Ladder({x:0,y:0,z:0}));h(this,c,new J.Ladder({x:0,y:0,z:0}));h(this,x,{x:0,y:0,z:0});h(this,M,new Map);h(this,E,()=>{et.isBrowser&&L(this,K,lt).call(this)});h(this,D,()=>{L(this,$,ct).call(this),L(this,U,Q).call(this)});h(this,Z,()=>{const e=N.scrollEntries.getAll(this.element);t(this,M).forEach((s,n)=>{e.includes(n)||(this.deleteScrollStep(s),t(this,M).delete(n))}),e.forEach(s=>{if(!t(this,M).has(s)){const n=()=>s;t(this,M).set(s,n),this.setScrollStep(n)}})});et.isBrowser&&(r(this,a,st.getElement(e)||document.body),r(this,p,st.getElement(s==null?void 0:s.containerElement)||document.body),r(this,v,(s==null?void 0:s.scrollAxis)||"auto"),r(this,V,(s==null?void 0:s.frontSide)||"top"),r(this,T,(s==null?void 0:s.cartesian)||!1),r(this,w,(s==null?void 0:s.sizeStep)!==void 0?s.sizeStep:!0),r(this,C,(s==null?void 0:s.positionStep)!==void 0?s.positionStep:!0),r(this,A,(s==null?void 0:s.transformStep)!==void 0?s.transformStep:!0),r(this,W,(s==null?void 0:s.scrollStep)!==void 0?s.scrollStep:!0),t(this,c).setStep("_size","+",{x:1,y:1,z:1}),t(this,l).setStep("_position","+",{x:0,y:0,z:0}),t(this,c).setStep("_scale","*",{x:1,y:1,z:1}),t(this,l).setStep("_translation","+",{x:0,y:0,z:0}),t(this,o).setStep("_rotation","+",{x:0,y:0,z:0}),t(this,W)&&(N.scrollEntries.notifier.subscribe(t(this,Z)),t(this,Z).call(this)),it.elementResizer.subscribe(this.element,t(this,E)),ht.windowResizer.subscribe(t(this,E),j.RESIZE_ORDER.LAYOUT_BOX),tt.ticker.subscribe(t(this,D),{order:j.TICK_ORDER.LAYOUT_BOX,culling:s!=null&&s.culling?this.element:void 0}))}get element(){return t(this,a)}get containerElement(){return t(this,p)}get position(){return t(this,l).current}get rotation(){return t(this,o).current}get scale(){return t(this,c).current}get scrollValue(){return t(this,x)}get left(){return t(this,d)}get top(){return t(this,S)}get CSSTranslation(){return t(this,f)}get CSSRotation(){return t(this,g)}get CSSScale(){return t(this,z)}get front(){return t(this,R)}get width(){return t(this,b)}get height(){return t(this,_)}get depth(){return t(this,X)}destroy(){tt.ticker.unsubscribe(t(this,D)),it.elementResizer.unsubscribe(t(this,E)),ht.windowResizer.unsubscribe(t(this,E)),N.scrollEntries.notifier.unsubscribe(t(this,Z)),t(this,M).clear(),t(this,l).close(),t(this,o).close(),t(this,c).close()}bindObject(e){e.position&&t(this,l).bind(e.position),e.rotation&&t(this,o).bind(e.rotation),e.scale&&t(this,c).bind(e.scale)}unbindObject(e){e.position&&t(this,l).unbind(e.position),e.rotation&&t(this,o).unbind(e.rotation),e.scale&&t(this,c).unbind(e.scale)}setScrollStep(e){return t(this,m).includes(e)||t(this,m).push(e),()=>this.deleteScrollStep(e)}deleteScrollStep(e){r(this,m,t(this,m).filter(s=>s!==e))}setPositionStep(...e){t(this,l).setStep(...e)}getPositionStep(...e){return t(this,l).getStepValue(...e)}setRotationStep(...e){t(this,o).setStep(...e)}getRotationStep(...e){return t(this,o).getStepValue(...e)}setScaleStep(...e){t(this,c).setStep(...e)}getScaleStep(...e){return t(this,c).getStepValue(...e)}deletePositionStep(...e){t(this,l).deleteStep(...e)}deleteRotationStep(...e){t(this,o).deleteStep(...e)}deleteScaleStep(...e){t(this,c).deleteStep(...e)}onPosition(...e){return t(this,l).subscribe(...e)}offPosition(...e){t(this,l).unsubscribe(...e)}onScale(...e){return t(this,c).subscribe(...e)}offScale(...e){t(this,c).unsubscribe(...e)}onRotation(...e){return t(this,o).subscribe(...e)}offRotation(...e){t(this,o).unsubscribe(...e)}}a=new WeakMap,p=new WeakMap,m=new WeakMap,v=new WeakMap,V=new WeakMap,T=new WeakMap,w=new WeakMap,C=new WeakMap,A=new WeakMap,W=new WeakMap,b=new WeakMap,_=new WeakMap,X=new WeakMap,S=new WeakMap,d=new WeakMap,R=new WeakMap,Y=new WeakMap,H=new WeakMap,k=new WeakMap,f=new WeakMap,g=new WeakMap,z=new WeakMap,o=new WeakMap,l=new WeakMap,c=new WeakMap,x=new WeakMap,M=new WeakMap,U=new WeakSet,Q=function(){t(this,c).calculate(),t(this,l).calculate(),t(this,o).calculate()},I=new WeakSet,nt=function(){t(this,c).setStep("_size","+",{x:t(this,w)?t(this,b):1,y:t(this,w)?t(this,_):1,z:t(this,w)?t(this,X):1});const e=t(this,C)?t(this,Y):0,s=t(this,C)?t(this,H):0,n=t(this,C)?t(this,k):0;t(this,l).setStep("_position","+",{x:e,y:s,z:n}),t(this,A)?(t(this,c).setStep("_scale","*",{x:t(this,z).x,y:t(this,z).y,z:t(this,z).z}),t(this,l).setStep("_translation","+",{x:t(this,f).x,y:t(this,f).y,z:t(this,f).z}),t(this,o).setStep("_rotation","+",{x:t(this,g).x,y:t(this,g).y,z:t(this,g).z})):(t(this,c).setStep("_scale","*",{x:1,y:1,z:1}),t(this,l).setStep("_translation","+",{x:0,y:0,z:0}),t(this,o).setStep("_rotation","+",{x:0,y:0,z:0}))},K=new WeakSet,lt=function(){const e=getComputedStyle(t(this,a));r(this,b,Math.max(t(this,a).clientWidth,1)),r(this,_,Math.max(t(this,a).clientHeight,1)),r(this,X,Math.max(dt.cssUnitParser.parse(e.getPropertyValue("--depth")||"0px"),1));const s=P.getCumulativeOffsetLeft(t(this,p)),n=P.getCumulativeOffsetTop(t(this,p)),y=t(this,p).clientWidth,B=t(this,p).clientHeight;if(r(this,d,P.getCumulativeOffsetLeft(t(this,a))-s),r(this,S,P.getCumulativeOffsetTop(t(this,a))-n),t(this,v)==="z"){const q=t(this,d)/y,O=t(this,S)/B;r(this,d,(q-Math.floor(q))*y),r(this,S,(O-Math.floor(O))*B),t(this,V)==="left"?r(this,R,P.getCumulativeOffsetLeft(t(this,a))-s-t(this,d)):r(this,R,P.getCumulativeOffsetTop(t(this,a))-n-t(this,S))}if(r(this,d,t(this,d)+t(this,a).clientLeft),r(this,S,t(this,S)+t(this,a).clientTop),t(this,T)){const q=Math.round(y/2),O=Math.round(B/2),ot=t(this,b)?Math.round(t(this,b)/2):0,at=t(this,_)?Math.round(t(this,_)/2):0,ut=t(this,d)-q+ot,St=(t(this,S)-O+at)*-1;r(this,Y,ut),r(this,H,St)}else r(this,Y,t(this,d)),r(this,H,t(this,S));r(this,k,t(this,R)*-1);const F=new WebKitCSSMatrix(e.transform),u=rt(F);t(this,f).x=u.translationX,t(this,f).y=u.translationY,t(this,f).z=u.translationZ,t(this,z).x=u.scaleX,t(this,z).y=u.scaleY,t(this,z).z=u.scaleZ,t(this,g).x=u.rotationX,t(this,g).y=u.rotationY,t(this,g).z=u.rotationZ,L(this,I,nt).call(this),L(this,U,Q).call(this)},$=new WeakSet,ct=function(){t(this,x).x=0,t(this,x).y=0,t(this,x).z=0;for(let e=0;e<t(this,m).length;e++){const s=t(this,m)[e]();let n=s.axis;t(this,v)!=="auto"&&(n=t(this,v));const y=s.value*(n==="x"?-1:t(this,T)?1:-1);t(this,x)[n]+=y,t(this,l).setStep(`_scroll_${e}`,"+",{[n]:y})}},E=new WeakMap,D=new WeakMap,Z=new WeakMap;exports.LayoutBox=ft;exports.decomposeCSSMatrix=rt;
1
+ "use strict";var G=(i,e,s)=>{if(!e.has(i))throw TypeError("Cannot "+s)};var t=(i,e,s)=>(G(i,e,"read from private field"),s?s.call(i):e.get(i)),h=(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)},r=(i,e,s,n)=>(G(i,e,"write to private field"),n?n.call(i,s):e.set(i,s),s);var L=(i,e,s)=>(G(i,e,"access private method"),s);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const dt=require("../css-unit-parser/index.cjs"),J=require("../ladder/index.cjs"),j=require("../order/index.cjs"),N=require("../scroll-entries/index.cjs"),tt=require("../ticker/index.cjs"),et=require("../browser-CpzFX2xg.cjs"),st=require("../dom-JBOkFLTh.cjs"),P=require("../layout-8ryRAMGJ.cjs"),it=require("../element-resizer/index.cjs"),ht=require("../window-resizer/index.cjs");function rt(i){const e=Math.sqrt(i.m11*i.m11+i.m12*i.m12+i.m13*i.m13),s=Math.sqrt(i.m21*i.m21+i.m22*i.m22+i.m23*i.m23),n=Math.sqrt(i.m31*i.m31+i.m32*i.m32+i.m33*i.m33),y=Math.atan2(i.m32,i.m33),B=Math.atan2(-i.m31,Math.sqrt(i.m32*i.m32+i.m33*i.m33)),F=Math.atan2(i.m21,i.m11),u=i.m41,O=i.m42*-1,q=i.m43;return{scaleX:e,scaleY:s,scaleZ:n,rotationX:y,rotationY:B,rotationZ:F,translationX:u,translationY:O,translationZ:q}}var a,p,m,v,V,T,w,C,A,W,b,_,X,S,d,R,Y,H,k,f,g,z,o,l,c,x,M,U,Q,I,nt,K,lt,$,ct,E,D,Z;class ft{constructor(e,s){h(this,U);h(this,I);h(this,K);h(this,$);h(this,a,null);h(this,p,null);h(this,m,[]);h(this,v,"auto");h(this,V,"top");h(this,T,!1);h(this,w,!0);h(this,C,!0);h(this,A,!0);h(this,W,!0);h(this,b,0);h(this,_,0);h(this,X,0);h(this,S,0);h(this,d,0);h(this,R,0);h(this,Y,0);h(this,H,0);h(this,k,0);h(this,f,{x:0,y:0,z:0});h(this,g,{x:0,y:0,z:0});h(this,z,{x:1,y:1,z:1});h(this,o,new J.Ladder({x:0,y:0,z:0}));h(this,l,new J.Ladder({x:0,y:0,z:0}));h(this,c,new J.Ladder({x:0,y:0,z:0}));h(this,x,{x:0,y:0,z:0});h(this,M,new Map);h(this,E,()=>{et.isBrowser&&L(this,K,lt).call(this)});h(this,D,()=>{L(this,$,ct).call(this),L(this,U,Q).call(this)});h(this,Z,()=>{const e=N.scrollEntries.getAll(this.element);t(this,M).forEach((s,n)=>{e.includes(n)||(this.deleteScrollStep(s),t(this,M).delete(n))}),e.forEach(s=>{if(!t(this,M).has(s)){const n=()=>s;t(this,M).set(s,n),this.setScrollStep(n)}})});et.isBrowser&&(r(this,a,st.getElement(e)||document.body),r(this,p,st.getElement(s==null?void 0:s.containerElement)||document.body),r(this,v,(s==null?void 0:s.scrollAxis)||"auto"),r(this,V,(s==null?void 0:s.frontSide)||"top"),r(this,T,(s==null?void 0:s.cartesian)||!1),r(this,w,(s==null?void 0:s.sizeStep)!==void 0?s.sizeStep:!0),r(this,C,(s==null?void 0:s.positionStep)!==void 0?s.positionStep:!0),r(this,A,(s==null?void 0:s.transformStep)!==void 0?s.transformStep:!0),r(this,W,(s==null?void 0:s.scrollStep)!==void 0?s.scrollStep:!0),t(this,c).setStep("_size","+",{x:1,y:1,z:1}),t(this,l).setStep("_position","+",{x:0,y:0,z:0}),t(this,c).setStep("_scale","*",{x:1,y:1,z:1}),t(this,l).setStep("_translation","+",{x:0,y:0,z:0}),t(this,o).setStep("_rotation","+",{x:0,y:0,z:0}),t(this,W)&&(N.scrollEntries.notifier.subscribe(t(this,Z)),t(this,Z).call(this)),it.elementResizer.subscribe(this.element,t(this,E)),ht.windowResizer.subscribe(t(this,E),j.RESIZE_ORDER.LAYOUT_BOX),tt.ticker.subscribe(t(this,D),{order:j.TICK_ORDER.LAYOUT_BOX,culling:s!=null&&s.culling?this.element:void 0}))}get element(){return t(this,a)}get containerElement(){return t(this,p)}get position(){return t(this,l).current}get rotation(){return t(this,o).current}get scale(){return t(this,c).current}get scrollValue(){return t(this,x)}get left(){return t(this,d)}get top(){return t(this,S)}get CSSTranslation(){return t(this,f)}get CSSRotation(){return t(this,g)}get CSSScale(){return t(this,z)}get front(){return t(this,R)}get width(){return t(this,b)}get height(){return t(this,_)}get depth(){return t(this,X)}destroy(){tt.ticker.unsubscribe(t(this,D)),it.elementResizer.unsubscribe(t(this,E)),ht.windowResizer.unsubscribe(t(this,E)),N.scrollEntries.notifier.unsubscribe(t(this,Z)),t(this,M).clear(),t(this,l).close(),t(this,o).close(),t(this,c).close()}bindObject(e){e.position&&t(this,l).bind(e.position),e.rotation&&t(this,o).bind(e.rotation),e.scale&&t(this,c).bind(e.scale)}unbindObject(e){e.position&&t(this,l).unbind(e.position),e.rotation&&t(this,o).unbind(e.rotation),e.scale&&t(this,c).unbind(e.scale)}setScrollStep(e){return t(this,m).includes(e)||t(this,m).push(e),()=>this.deleteScrollStep(e)}deleteScrollStep(e){r(this,m,t(this,m).filter(s=>s!==e))}setPositionStep(...e){t(this,l).setStep(...e)}getPositionStep(...e){return t(this,l).getStepValue(...e)}setRotationStep(...e){t(this,o).setStep(...e)}getRotationStep(...e){return t(this,o).getStepValue(...e)}setScaleStep(...e){t(this,c).setStep(...e)}getScaleStep(...e){return t(this,c).getStepValue(...e)}deletePositionStep(...e){t(this,l).deleteStep(...e)}deleteRotationStep(...e){t(this,o).deleteStep(...e)}deleteScaleStep(...e){t(this,c).deleteStep(...e)}onPosition(...e){return t(this,l).subscribe(...e)}offPosition(...e){t(this,l).unsubscribe(...e)}onScale(...e){return t(this,c).subscribe(...e)}offScale(...e){t(this,c).unsubscribe(...e)}onRotation(...e){return t(this,o).subscribe(...e)}offRotation(...e){t(this,o).unsubscribe(...e)}}a=new WeakMap,p=new WeakMap,m=new WeakMap,v=new WeakMap,V=new WeakMap,T=new WeakMap,w=new WeakMap,C=new WeakMap,A=new WeakMap,W=new WeakMap,b=new WeakMap,_=new WeakMap,X=new WeakMap,S=new WeakMap,d=new WeakMap,R=new WeakMap,Y=new WeakMap,H=new WeakMap,k=new WeakMap,f=new WeakMap,g=new WeakMap,z=new WeakMap,o=new WeakMap,l=new WeakMap,c=new WeakMap,x=new WeakMap,M=new WeakMap,U=new WeakSet,Q=function(){t(this,c).calculate(),t(this,l).calculate(),t(this,o).calculate()},I=new WeakSet,nt=function(){t(this,c).setStep("_size","+",{x:t(this,w)?t(this,b):1,y:t(this,w)?t(this,_):1,z:t(this,w)?t(this,X):1});const e=t(this,C)?t(this,Y):0,s=t(this,C)?t(this,H):0,n=t(this,C)?t(this,k):0;t(this,l).setStep("_position","+",{x:e,y:s,z:n}),t(this,A)?(t(this,c).setStep("_scale","*",{x:t(this,z).x,y:t(this,z).y,z:t(this,z).z}),t(this,l).setStep("_translation","+",{x:t(this,f).x,y:t(this,f).y,z:t(this,f).z}),t(this,o).setStep("_rotation","+",{x:t(this,g).x,y:t(this,g).y,z:t(this,g).z})):(t(this,c).setStep("_scale","*",{x:1,y:1,z:1}),t(this,l).setStep("_translation","+",{x:0,y:0,z:0}),t(this,o).setStep("_rotation","+",{x:0,y:0,z:0}))},K=new WeakSet,lt=function(){const e=getComputedStyle(t(this,a));r(this,b,Math.max(t(this,a).clientWidth,1)),r(this,_,Math.max(t(this,a).clientHeight,1)),r(this,X,Math.max(dt.cssUnitParser.parse(e.getPropertyValue("--depth")||"0px"),1));const s=P.getCumulativeOffsetLeft(t(this,p)),n=P.getCumulativeOffsetTop(t(this,p)),y=t(this,p).clientWidth,B=t(this,p).clientHeight;if(r(this,d,P.getCumulativeOffsetLeft(t(this,a))-s),r(this,S,P.getCumulativeOffsetTop(t(this,a))-n),t(this,v)==="z"){const O=t(this,d)/y,q=t(this,S)/B;r(this,d,(O-Math.floor(O))*y),r(this,S,(q-Math.floor(q))*B),t(this,V)==="left"?r(this,R,P.getCumulativeOffsetLeft(t(this,a))-s-t(this,d)):r(this,R,P.getCumulativeOffsetTop(t(this,a))-n-t(this,S))}if(r(this,d,t(this,d)+t(this,a).clientLeft),r(this,S,t(this,S)+t(this,a).clientTop),t(this,T)){const O=Math.round(y/2),q=Math.round(B/2),ot=t(this,b)?Math.round(t(this,b)/2):0,at=t(this,_)?Math.round(t(this,_)/2):0,ut=t(this,d)-O+ot,St=(t(this,S)-q+at)*-1;r(this,Y,ut),r(this,H,St)}else r(this,Y,t(this,d)),r(this,H,t(this,S));r(this,k,t(this,R)*-1);const F=new WebKitCSSMatrix(e.transform),u=rt(F);t(this,f).x=u.translationX,t(this,f).y=u.translationY,t(this,f).z=u.translationZ,t(this,z).x=u.scaleX,t(this,z).y=u.scaleY,t(this,z).z=u.scaleZ,t(this,g).x=u.rotationX,t(this,g).y=u.rotationY,t(this,g).z=u.rotationZ,L(this,I,nt).call(this),L(this,U,Q).call(this)},$=new WeakSet,ct=function(){t(this,x).x=0,t(this,x).y=0,t(this,x).z=0;for(let e=0;e<t(this,m).length;e++){const s=t(this,m)[e]();let n=s.axis;t(this,v)!=="auto"&&(n=t(this,v));const y=s.value*(n==="x"?-1:t(this,T)?1:-1);t(this,x)[n]+=y,t(this,l).setStep(`_scroll_${e}`,"+",{[n]:y})}},E=new WeakMap,D=new WeakMap,Z=new WeakMap;exports.LayoutBox=ft;exports.decomposeCSSMatrix=rt;
@@ -16,7 +16,6 @@ import { ticker as tt } from "../ticker/index.js";
16
16
  import { i as st } from "../browser-0zX67oeU.js";
17
17
  import { g as et } from "../dom-0S_WDL4g.js";
18
18
  import { g as N, a as Q } from "../layout-HoBT_Da2.js";
19
- import "../path-data-polyfill-DgeDWYeI.js";
20
19
  import { elementResizer as it } from "../element-resizer/index.js";
21
20
  import { windowResizer as ht } from "../window-resizer/index.js";
22
21
  function mt(i) {
@@ -43,7 +42,7 @@ function mt(i) {
43
42
  };
44
43
  }
45
44
  var c, g, z, v, A, X, R, C, W, q, y, M, Y, S, f, E, H, T, B, d, m, p, a, l, o, _, x, D, j, k, rt, I, nt, K, lt, w, U, Z;
46
- class wt {
45
+ class Et {
47
46
  constructor(s, e) {
48
47
  h(this, D);
49
48
  h(this, k);
@@ -296,6 +295,6 @@ c = new WeakMap(), g = new WeakMap(), z = new WeakMap(), v = new WeakMap(), A =
296
295
  }
297
296
  }, w = new WeakMap(), U = new WeakMap(), Z = new WeakMap();
298
297
  export {
299
- wt as LayoutBox,
298
+ Et as LayoutBox,
300
299
  mt as decomposeCSSMatrix
301
300
  };
@@ -1 +1 @@
1
- "use strict";var p=Object.defineProperty,b=Object.defineProperties;var q=Object.getOwnPropertyDescriptors;var E=Object.getOwnPropertySymbols;var C=Object.prototype.hasOwnProperty,L=Object.prototype.propertyIsEnumerable;var S=(r,t,e)=>t in r?p(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e,f=(r,t)=>{for(var e in t||(t={}))C.call(t,e)&&S(r,e,t[e]);if(E)for(var e of E(t))L.call(t,e)&&S(r,e,t[e]);return r},c=(r,t)=>b(r,q(t));var w=(r,t,e)=>{if(!t.has(r))throw TypeError("Cannot "+e)};var s=(r,t,e)=>(w(r,t,"read from private field"),e?e.call(r):t.get(r)),l=(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)},v=(r,t,e,i)=>(w(r,t,"write to private field"),i?i.call(r,e):t.set(r,e),e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const y=require("../notifier/index.cjs"),N=require("../function-MthRj-GJ.cjs");require("../path-data-polyfill-CXsOR7Oc.cjs");var o,h,a,d,n,u,g;class _{constructor(){l(this,o,new Map);l(this,h,new y.Notifier);l(this,a,new y.Notifier);l(this,d,new y.Notifier);l(this,n,!1);l(this,u,t=>{const{loaded:e,total:i}=this.getStats();s(this,h).notify({progress:e/i,loaded:e,total:i,namespace:t}),s(this,g).call(this)});l(this,g,N.debounce(()=>{const{loaded:t,total:e}=this.getStats();if(t===e){v(this,n,!0);const{total:i}=this.getStats();s(this,a).notify({total:i})}},150))}get progressEvent(){return s(this,h)}get completeEvent(){return s(this,a)}get errorEvent(){return s(this,d)}get _counter(){return s(this,o)}get isComplete(){return s(this,n)}reset(){v(this,n,!1),s(this,o).clear()}setTotal(t,e=1){s(this,n)||s(this,o).set(t,{loaded:0,total:e})}setLoaded(t,e=1){if(!s(this,n)&&s(this,o).has(t)){const i=s(this,o).get(t);i.loaded!==e&&(s(this,o).set(t,c(f({},i),{loaded:e})),s(this,u).call(this,t))}}setError(t,e){if(!s(this,n)&&s(this,o).has(t)){const i=s(this,o).get(t);s(this,o).set(t,c(f({},i),{total:i.total-1})),s(this,d).notify({namespace:t,url:e})}}getStats(){return Array.from(s(this,o)).reduce((t,e)=>({loaded:t.loaded+e[1].loaded,total:t.total+e[1].total}),{loaded:0,total:0})}}o=new WeakMap,h=new WeakMap,a=new WeakMap,d=new WeakMap,n=new WeakMap,u=new WeakMap,g=new WeakMap;const M=new _;exports.loading=M;
1
+ "use strict";var p=Object.defineProperty,b=Object.defineProperties;var C=Object.getOwnPropertyDescriptors;var E=Object.getOwnPropertySymbols;var L=Object.prototype.hasOwnProperty,N=Object.prototype.propertyIsEnumerable;var S=(s,t,e)=>t in s?p(s,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):s[t]=e,f=(s,t)=>{for(var e in t||(t={}))L.call(t,e)&&S(s,e,t[e]);if(E)for(var e of E(t))N.call(t,e)&&S(s,e,t[e]);return s},c=(s,t)=>b(s,C(t));var w=(s,t,e)=>{if(!t.has(s))throw TypeError("Cannot "+e)};var r=(s,t,e)=>(w(s,t,"read from private field"),e?e.call(s):t.get(s)),l=(s,t,e)=>{if(t.has(s))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(s):t.set(s,e)},v=(s,t,e,o)=>(w(s,t,"write to private field"),o?o.call(s,e):t.set(s,e),e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const y=require("../notifier/index.cjs"),_=require("../function-MthRj-GJ.cjs");var i,h,a,d,n,u,g;class q{constructor(){l(this,i,new Map);l(this,h,new y.Notifier);l(this,a,new y.Notifier);l(this,d,new y.Notifier);l(this,n,!1);l(this,u,t=>{const{loaded:e,total:o}=this.getStats();r(this,h).notify({progress:e/o,loaded:e,total:o,namespace:t}),r(this,g).call(this)});l(this,g,_.debounce(()=>{const{loaded:t,total:e}=this.getStats();if(t===e){v(this,n,!0);const{total:o}=this.getStats();r(this,a).notify({total:o})}},150))}get progressEvent(){return r(this,h)}get completeEvent(){return r(this,a)}get errorEvent(){return r(this,d)}get _counter(){return r(this,i)}get isComplete(){return r(this,n)}reset(){v(this,n,!1),r(this,i).clear()}setTotal(t,e=1){r(this,n)||r(this,i).set(t,{loaded:0,total:e})}setLoaded(t,e=1){if(!r(this,n)&&r(this,i).has(t)){const o=r(this,i).get(t);o.loaded!==e&&(r(this,i).set(t,c(f({},o),{loaded:e})),r(this,u).call(this,t))}}setError(t,e){if(!r(this,n)&&r(this,i).has(t)){const o=r(this,i).get(t);r(this,i).set(t,c(f({},o),{total:o.total-1})),r(this,d).notify({namespace:t,url:e})}}getStats(){return Array.from(r(this,i)).reduce((t,e)=>({loaded:t.loaded+e[1].loaded,total:t.total+e[1].total}),{loaded:0,total:0})}}i=new WeakMap,h=new WeakMap,a=new WeakMap,d=new WeakMap,n=new WeakMap,u=new WeakMap,g=new WeakMap;const M=new q;exports.loading=M;
@@ -1,34 +1,33 @@
1
- var y = Object.defineProperty, S = Object.defineProperties;
1
+ var m = Object.defineProperty, S = Object.defineProperties;
2
2
  var C = Object.getOwnPropertyDescriptors;
3
3
  var v = Object.getOwnPropertySymbols;
4
4
  var L = Object.prototype.hasOwnProperty, b = Object.prototype.propertyIsEnumerable;
5
- var m = (s, t, e) => t in s ? y(s, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : s[t] = e, u = (s, t) => {
5
+ var w = (s, t, e) => t in s ? m(s, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : s[t] = e, u = (s, t) => {
6
6
  for (var e in t || (t = {}))
7
- L.call(t, e) && m(s, e, t[e]);
7
+ L.call(t, e) && w(s, e, t[e]);
8
8
  if (v)
9
9
  for (var e of v(t))
10
- b.call(t, e) && m(s, e, t[e]);
10
+ b.call(t, e) && w(s, e, t[e]);
11
11
  return s;
12
12
  }, c = (s, t) => S(s, C(t));
13
- var w = (s, t, e) => {
13
+ var y = (s, t, e) => {
14
14
  if (!t.has(s))
15
15
  throw TypeError("Cannot " + e);
16
16
  };
17
- var r = (s, t, e) => (w(s, t, "read from private field"), e ? e.call(s) : t.get(s)), h = (s, t, e) => {
17
+ var r = (s, t, e) => (y(s, t, "read from private field"), e ? e.call(s) : t.get(s)), h = (s, t, e) => {
18
18
  if (t.has(s))
19
19
  throw TypeError("Cannot add the same private member more than once");
20
20
  t instanceof WeakSet ? t.add(s) : t.set(s, e);
21
- }, p = (s, t, e, o) => (w(s, t, "write to private field"), o ? o.call(s, e) : t.set(s, e), e);
22
- import { Notifier as E } from "../notifier/index.js";
21
+ }, E = (s, t, e, o) => (y(s, t, "write to private field"), o ? o.call(s, e) : t.set(s, e), e);
22
+ import { Notifier as p } from "../notifier/index.js";
23
23
  import { d as x } from "../function-C10DGppn.js";
24
- import "../path-data-polyfill-DgeDWYeI.js";
25
24
  var i, l, a, d, n, g, f;
26
25
  class A {
27
26
  constructor() {
28
27
  h(this, i, /* @__PURE__ */ new Map());
29
- h(this, l, new E());
30
- h(this, a, new E());
31
- h(this, d, new E());
28
+ h(this, l, new p());
29
+ h(this, a, new p());
30
+ h(this, d, new p());
32
31
  h(this, n, !1);
33
32
  h(this, g, (t) => {
34
33
  const { loaded: e, total: o } = this.getStats();
@@ -42,7 +41,7 @@ class A {
42
41
  h(this, f, x(() => {
43
42
  const { loaded: t, total: e } = this.getStats();
44
43
  if (t === e) {
45
- p(this, n, !0);
44
+ E(this, n, !0);
46
45
  const { total: o } = this.getStats();
47
46
  r(this, a).notify({
48
47
  total: o
@@ -66,7 +65,7 @@ class A {
66
65
  return r(this, n);
67
66
  }
68
67
  reset() {
69
- p(this, n, !1), r(this, i).clear();
68
+ E(this, n, !1), r(this, i).clear();
70
69
  }
71
70
  setTotal(t, e = 1) {
72
71
  r(this, n) || r(this, i).set(t, { loaded: 0, total: e });
@@ -94,7 +93,7 @@ class A {
94
93
  }
95
94
  }
96
95
  i = new WeakMap(), l = new WeakMap(), a = new WeakMap(), d = new WeakMap(), n = new WeakMap(), g = new WeakMap(), f = new WeakMap();
97
- const j = new A();
96
+ const _ = new A();
98
97
  export {
99
- j as loading
98
+ _ as loading
100
99
  };
@@ -1 +1 @@
1
- "use strict";var d=(e,r,s)=>{if(!r.has(e))throw TypeError("Cannot "+s)};var o=(e,r,s)=>(d(e,r,"read from private field"),s?s.call(e):r.get(e)),u=(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)},c=(e,r,s,n)=>(d(e,r,"write to private field"),n?n.call(e,s):r.set(e,s),s);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("../order/index.cjs"),l=require("../window-resizer/index.cjs"),h=require("../Store-BQGNOHlY.cjs");require("../path-data-polyfill-CXsOR7Oc.cjs");var i,t;class b extends h.Store{constructor(s){super(!1);u(this,i,void 0);u(this,t,void 0);c(this,i,s),c(this,t,l.windowResizer.subscribe(()=>{matchMedia(o(this,i)).matches?this.current=!0:this.current=!1},a.RESIZE_ORDER.MEDIA))}close(){super.close(),o(this,t).call(this)}}i=new WeakMap,t=new WeakMap;exports.Media=b;
1
+ "use strict";var d=(e,r,s)=>{if(!r.has(e))throw TypeError("Cannot "+s)};var o=(e,r,s)=>(d(e,r,"read from private field"),s?s.call(e):r.get(e)),c=(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)},u=(e,r,s,n)=>(d(e,r,"write to private field"),n?n.call(e,s):r.set(e,s),s);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("../order/index.cjs"),l=require("../window-resizer/index.cjs"),h=require("../Store-C-1ruEIm.cjs");var i,t;class b extends h.Store{constructor(s){super(!1);c(this,i,void 0);c(this,t,void 0);u(this,i,s),u(this,t,l.windowResizer.subscribe(()=>{matchMedia(o(this,i)).matches?this.current=!0:this.current=!1},a.RESIZE_ORDER.MEDIA))}close(){super.close(),o(this,t).call(this)}}i=new WeakMap,t=new WeakMap;exports.Media=b;