aptechka 0.1.9 → 0.1.11

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 (79) hide show
  1. package/lib/Composed-C2Vv1xxR.cjs +1 -0
  2. package/lib/Composed-DhtYBEmo.js +79 -0
  3. package/lib/abstract-elements/index.cjs +1 -1
  4. package/lib/abstract-elements/index.js +1 -1
  5. package/lib/canvas/index.cjs +1 -1
  6. package/lib/canvas/index.d.ts +6 -5
  7. package/lib/canvas/index.js +47 -43
  8. package/lib/component/Component.d.ts +26 -0
  9. package/lib/component/hooks/animation.d.ts +9 -0
  10. package/lib/component/hooks/context.d.ts +2 -0
  11. package/lib/component/hooks/intersection.d.ts +4 -0
  12. package/lib/component/hooks/resize.d.ts +6 -0
  13. package/lib/component/hooks/shadow.d.ts +1 -0
  14. package/lib/component/hooks/stores.d.ts +6 -0
  15. package/lib/component/hooks/style.d.ts +2 -0
  16. package/lib/component/index.cjs +1 -0
  17. package/lib/component/index.d.ts +7 -0
  18. package/lib/component/index.js +183 -0
  19. package/lib/connector/index.cjs +1 -1
  20. package/lib/connector/index.js +1 -1
  21. package/lib/{createStylesheet-BoJwXvjE.cjs → createStylesheet-DTOK6fTn.cjs} +1 -1
  22. package/lib/{createStylesheet-DSgkNlUZ.js → createStylesheet-Zqf3lXhM.js} +1 -1
  23. package/lib/{createTheme-COo8IzPG.cjs → createTheme-B_W5dUY9.cjs} +1 -1
  24. package/lib/{createTheme-BMH9cRrS.js → createTheme-D0IoYkYN.js} +1 -1
  25. package/lib/element-constructor/ElementConstructor.d.ts +1 -1
  26. package/lib/element-constructor/index.cjs +1 -1
  27. package/lib/element-constructor/index.js +3 -3
  28. package/lib/element-constructor/tags.d.ts +2 -3
  29. package/lib/element-resizer/index.cjs +1 -1
  30. package/lib/element-resizer/index.d.ts +1 -1
  31. package/lib/element-resizer/index.js +2 -1
  32. package/lib/en3/core/en3.d.ts +2 -2
  33. package/lib/en3/objects/En3Clip.d.ts +1 -1
  34. package/lib/{index-Cv4y7_7y.cjs → index-3G1lTMEf.cjs} +1 -1
  35. package/lib/{index-228VqUsZ.js → index-BWTXnG5n.js} +2 -2
  36. package/lib/intersector/index.cjs +1 -1
  37. package/lib/intersector/index.d.ts +1 -1
  38. package/lib/intersector/index.js +2 -1
  39. package/lib/layout-box/index.cjs +1 -1
  40. package/lib/layout-box/index.d.ts +2 -2
  41. package/lib/layout-box/index.js +70 -72
  42. package/lib/modal/index.cjs +1 -1
  43. package/lib/modal/index.js +2 -2
  44. package/lib/object-C1ph624j.cjs +1 -0
  45. package/lib/object-DIPjdukP.js +73 -0
  46. package/lib/popover/index.cjs +1 -1
  47. package/lib/popover/index.js +79 -71
  48. package/lib/router/Route.d.ts +8 -2
  49. package/lib/router/index.cjs +1 -1
  50. package/lib/router/index.d.ts +1 -2
  51. package/lib/router/index.js +139 -140
  52. package/lib/scroll/index.cjs +1 -1
  53. package/lib/scroll/index.js +2 -2
  54. package/lib/select/index.cjs +1 -1
  55. package/lib/select/index.js +1 -1
  56. package/lib/store/index.cjs +1 -1
  57. package/lib/store/index.js +48 -111
  58. package/lib/string-3lAkpJJP.js +51 -0
  59. package/lib/string-vBu90jhV.cjs +1 -0
  60. package/lib/studio/index.cjs +1 -1
  61. package/lib/studio/index.js +3 -3
  62. package/lib/tags-75InVOh4.cjs +1 -0
  63. package/lib/{tags-kZqsS_nJ.js → tags-DgRVzazL.js} +141 -139
  64. package/lib/theme/index.cjs +1 -1
  65. package/lib/theme/index.js +2 -2
  66. package/lib/ticker/index.cjs +1 -1
  67. package/lib/ticker/index.d.ts +1 -1
  68. package/lib/ticker/index.js +33 -37
  69. package/lib/utils/dom.d.ts +2 -2
  70. package/lib/utils/index.cjs +1 -1
  71. package/lib/utils/index.d.ts +2 -2
  72. package/lib/utils/index.js +114 -168
  73. package/lib/utils/object.d.ts +1 -0
  74. package/lib/utils/string.d.ts +1 -0
  75. package/package.json +10 -2
  76. package/lib/router/RouteElement.d.ts +0 -14
  77. package/lib/string-BrDhnNUL.js +0 -39
  78. package/lib/string-DzUwFYSS.cjs +0 -1
  79. package/lib/tags-920hsh9U.cjs +0 -1
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../tags-920hsh9U.cjs"),t=require("../createStylesheet-BoJwXvjE.cjs"),a=require("../createTheme-COo8IzPG.cjs");exports.ElementConstructor=e.ElementConstructor;exports.a=e.a;exports.abbr=e.abbr;exports.address=e.address;exports.area=e.area;exports.article=e.article;exports.aside=e.aside;exports.audio=e.audio;exports.b=e.b;exports.base=e.base;exports.bdi=e.bdi;exports.bdo=e.bdo;exports.blockquote=e.blockquote;exports.body=e.body;exports.br=e.br;exports.button=e.button;exports.canvas=e.canvas;exports.caption=e.caption;exports.cite=e.cite;exports.code=e.code;exports.col=e.col;exports.colgroup=e.colgroup;exports.contents=e.contents;exports.data=e.data;exports.datalist=e.datalist;exports.dd=e.dd;exports.del=e.del;exports.details=e.details;exports.dfn=e.dfn;exports.dialog=e.dialog;exports.div=e.div;exports.dl=e.dl;exports.dt=e.dt;exports.element=e.element;exports.em=e.em;exports.embed=e.embed;exports.empty=e.empty;exports.fieldset=e.fieldset;exports.figcaption=e.figcaption;exports.figure=e.figure;exports.footer=e.footer;exports.form=e.form;exports.fragment=e.fragment;exports.h1=e.h1;exports.h2=e.h2;exports.h3=e.h3;exports.h4=e.h4;exports.h5=e.h5;exports.h6=e.h6;exports.head=e.head;exports.header=e.header;exports.hgroup=e.hgroup;exports.hr=e.hr;exports.html=e.html;exports.htmlVar=e.htmlVar;exports.i=e.i;exports.iframe=e.iframe;exports.img=e.img;exports.input=e.input;exports.ins=e.ins;exports.kbd=e.kbd;exports.label=e.label;exports.legend=e.legend;exports.li=e.li;exports.link=e.link;exports.main=e.main;exports.map=e.map;exports.mark=e.mark;exports.menu=e.menu;exports.meta=e.meta;exports.meter=e.meter;exports.nav=e.nav;exports.noscript=e.noscript;exports.object=e.object;exports.ol=e.ol;exports.optgroup=e.optgroup;exports.option=e.option;exports.output=e.output;exports.p=e.p;exports.picture=e.picture;exports.pre=e.pre;exports.progress=e.progress;exports.q=e.q;exports.rp=e.rp;exports.rt=e.rt;exports.ruby=e.ruby;exports.s=e.s;exports.samp=e.samp;exports.script=e.script;exports.search=e.search;exports.section=e.section;exports.select=e.select;exports.slot=e.slot;exports.small=e.small;exports.source=e.source;exports.span=e.span;exports.strong=e.strong;exports.style=e.style;exports.sub=e.sub;exports.summary=e.summary;exports.sup=e.sup;exports.table=e.table;exports.tbody=e.tbody;exports.td=e.td;exports.template=e.template;exports.textarea=e.textarea;exports.tfoot=e.tfoot;exports.th=e.th;exports.thead=e.thead;exports.time=e.time;exports.title=e.title;exports.tr=e.tr;exports.track=e.track;exports.u=e.u;exports.ul=e.ul;exports.video=e.video;exports.wbr=e.wbr;exports.createStylesheet=t.createStylesheet;exports.createTheme=a.createTheme;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../tags-75InVOh4.cjs"),t=require("../createStylesheet-DTOK6fTn.cjs"),a=require("../createTheme-B_W5dUY9.cjs");exports.ElementConstructor=e.ElementConstructor;exports.a=e.a;exports.abbr=e.abbr;exports.address=e.address;exports.area=e.area;exports.article=e.article;exports.aside=e.aside;exports.audio=e.audio;exports.b=e.b;exports.base=e.base;exports.bdi=e.bdi;exports.bdo=e.bdo;exports.blockquote=e.blockquote;exports.body=e.body;exports.br=e.br;exports.button=e.button;exports.canvas=e.canvas;exports.caption=e.caption;exports.cite=e.cite;exports.code=e.code;exports.col=e.col;exports.colgroup=e.colgroup;exports.contents=e.contents;exports.data=e.data;exports.datalist=e.datalist;exports.dd=e.dd;exports.del=e.del;exports.details=e.details;exports.dfn=e.dfn;exports.dialog=e.dialog;exports.div=e.div;exports.dl=e.dl;exports.dt=e.dt;exports.element=e.element;exports.em=e.em;exports.embed=e.embed;exports.empty=e.empty;exports.fieldset=e.fieldset;exports.figcaption=e.figcaption;exports.figure=e.figure;exports.footer=e.footer;exports.form=e.form;exports.fragment=e.fragment;exports.h1=e.h1;exports.h2=e.h2;exports.h3=e.h3;exports.h4=e.h4;exports.h5=e.h5;exports.h6=e.h6;exports.head=e.head;exports.header=e.header;exports.hgroup=e.hgroup;exports.hr=e.hr;exports.html=e.html;exports.htmlVar=e.htmlVar;exports.i=e.i;exports.iframe=e.iframe;exports.img=e.img;exports.input=e.input;exports.ins=e.ins;exports.kbd=e.kbd;exports.label=e.label;exports.legend=e.legend;exports.li=e.li;exports.link=e.link;exports.main=e.main;exports.map=e.map;exports.mark=e.mark;exports.menu=e.menu;exports.meta=e.meta;exports.meter=e.meter;exports.nav=e.nav;exports.noscript=e.noscript;exports.object=e.object;exports.ol=e.ol;exports.optgroup=e.optgroup;exports.option=e.option;exports.output=e.output;exports.p=e.p;exports.picture=e.picture;exports.pre=e.pre;exports.progress=e.progress;exports.q=e.q;exports.rp=e.rp;exports.rt=e.rt;exports.ruby=e.ruby;exports.s=e.s;exports.samp=e.samp;exports.script=e.script;exports.search=e.search;exports.section=e.section;exports.select=e.select;exports.slot=e.slot;exports.small=e.small;exports.source=e.source;exports.span=e.span;exports.strong=e.strong;exports.style=e.style;exports.sub=e.sub;exports.summary=e.summary;exports.sup=e.sup;exports.table=e.table;exports.tbody=e.tbody;exports.td=e.td;exports.template=e.template;exports.textarea=e.textarea;exports.tfoot=e.tfoot;exports.th=e.th;exports.thead=e.thead;exports.time=e.time;exports.title=e.title;exports.tr=e.tr;exports.track=e.track;exports.u=e.u;exports.ul=e.ul;exports.video=e.video;exports.wbr=e.wbr;exports.createStylesheet=t.createStylesheet;exports.createTheme=a.createTheme;
@@ -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-kZqsS_nJ.js";
2
- import { c as ns } from "../createStylesheet-DSgkNlUZ.js";
3
- import { c as bs } from "../createTheme-BMH9cRrS.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-DgRVzazL.js";
2
+ import { c as ns } from "../createStylesheet-Zqf3lXhM.js";
3
+ import { c as bs } from "../createTheme-D0IoYkYN.js";
4
4
  export {
5
5
  e as ElementConstructor,
6
6
  t as a,
@@ -1,7 +1,6 @@
1
1
  import { ElementConstructorTagObject, ElementConstructor, ElementConstructorJSS, ElementConstructorTagNames } from './ElementConstructor';
2
- export declare function element<T extends ElementConstructorTagNames = ElementConstructorTagNames>(string: string, object: ElementConstructorTagObject<T>): ElementConstructor<T>;
3
- export declare function element<T extends ElementConstructorTagNames = ElementConstructorTagNames>(tag: T, object?: ElementConstructorTagObject<T>): ElementConstructor<T>;
4
- export declare function element(node: Node, object: ElementConstructorTagObject<Node>): ElementConstructor<Node>;
2
+ export declare function element<T extends ElementConstructorTagNames | Node = ElementConstructorTagNames>(node: T, object: ElementConstructorTagObject<T>): ElementConstructor<T>;
3
+ export declare function element<T extends string = string>(node: T, object: ElementConstructorTagObject<Element>): ElementConstructor<Element>;
5
4
  export declare function a(object?: ElementConstructorTagObject<'a'>): ElementConstructor<"a", HTMLAnchorElement & SVGAElement>;
6
5
  export declare function abbr(object?: ElementConstructorTagObject<'abbr'>): ElementConstructor<"abbr", HTMLElement>;
7
6
  export declare function address(object?: ElementConstructorTagObject<'address'>): ElementConstructor<"address", HTMLElement>;
@@ -1 +1 @@
1
- "use strict";var h=(n,t,s)=>{if(!t.has(n))throw TypeError("Cannot "+s)};var r=(n,t,s)=>(h(n,t,"read from private field"),s?s.call(n):t.get(n)),c=(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)=>(h(n,t,"write to private field"),e?e.call(n,s):t.set(n,s),s);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const z=require("../browser-CpzFX2xg.cjs"),d=require("../dom-qY2LdCVL.cjs");var i,u,b;class y{constructor(){c(this,i,[]);c(this,u,null);c(this,b,t=>{r(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&&f(this,u,new ResizeObserver(r(this,b)))}subscribe(t,s){const e=d.getElement(t);if(!e)return;const l=r(this,i).find(o=>o.element===e);if(!l)r(this,u).observe(e);else{const o=r(this,i).find(m=>m.element===e&&m.entry);o!=null&&o.element.isConnected&&s(o.entry)}return r(this,i).push({element:e,callback:s,entry:(l==null?void 0:l.entry)||null}),()=>{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,b=new WeakMap;const g=new y;exports.ElementResizer=y;exports.elementResizer=g;
1
+ "use strict";var h=(n,t,s)=>{if(!t.has(n))throw TypeError("Cannot "+s)};var r=(n,t,s)=>(h(n,t,"read from private field"),s?s.call(n):t.get(n)),c=(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)=>(h(n,t,"write to private field"),e?e.call(n,s):t.set(n,s),s);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const z=require("../browser-CpzFX2xg.cjs"),d=require("../dom-qY2LdCVL.cjs");var i,u,b;class y{constructor(){c(this,i,[]);c(this,u,null);c(this,b,t=>{r(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&&f(this,u,new ResizeObserver(r(this,b)))}subscribe(t,s){const e=d.getElement(t);if(!e)return()=>{};const l=r(this,i).find(o=>o.element===e);if(!l)r(this,u).observe(e);else{const o=r(this,i).find(m=>m.element===e&&m.entry);o!=null&&o.element.isConnected&&s(o.entry)}return r(this,i).push({element:e,callback:s,entry:(l==null?void 0:l.entry)||null}),()=>{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,b=new WeakMap;const g=new y;exports.ElementResizer=y;exports.elementResizer=g;
@@ -3,7 +3,7 @@ export type ElementResizerCallback = (entry: ResizeObserverEntry) => void;
3
3
  export declare class ElementResizer {
4
4
  #private;
5
5
  constructor();
6
- subscribe(elementOrSelector: ElementOrSelector, callback: ElementResizerCallback): (() => void) | undefined;
6
+ subscribe(elementOrSelector: ElementOrSelector, callback: ElementResizerCallback): () => void;
7
7
  unsubscribe(callback: ElementResizerCallback): void;
8
8
  }
9
9
  export declare const elementResizer: ElementResizer;
@@ -27,7 +27,8 @@ class z {
27
27
  subscribe(s, t) {
28
28
  const e = p(s);
29
29
  if (!e)
30
- return;
30
+ return () => {
31
+ };
31
32
  const o = r(this, i).find(
32
33
  (f) => f.element === e
33
34
  );
@@ -42,9 +42,9 @@ declare class En3 {
42
42
  get pixelRatio(): number;
43
43
  get cameraDistance(): number;
44
44
  set cameraDistance(value: number);
45
- attachToHTMLElement<T extends Object3D>(element: ElementOrSelector, object: T, options?: En3AttachOptions): En3AttachedObject3D<T>;
45
+ attachToHTMLElement<T extends Object3D>(element: ElementOrSelector<HTMLElement>, object: T, options?: En3AttachOptions): En3AttachedObject3D<T>;
46
46
  detachFromHTMLElement(object: Object3D): void;
47
- add<T extends Object3D<any>>(object: T, element?: ElementOrSelector, options?: En3AttachOptions): En3AttachedObject3D<T> | undefined;
47
+ add<T extends Object3D<any>>(object: T, element?: ElementOrSelector<HTMLElement>, options?: En3AttachOptions): En3AttachedObject3D<T> | undefined;
48
48
  remove(object: Object3D, detach?: boolean): void;
49
49
  setup(options?: En3Parameters): void;
50
50
  destroy(): void;
@@ -3,7 +3,7 @@ import { LayoutBox } from '../../layout-box';
3
3
  import { ElementOrSelector } from '../../utils';
4
4
  export declare class En3Clip {
5
5
  #private;
6
- constructor(elementOrSelector: ElementOrSelector, scale?: number);
6
+ constructor(elementOrSelector: ElementOrSelector<HTMLElement>, scale?: number);
7
7
  get planes(): Plane[];
8
8
  get layoutBox(): LayoutBox;
9
9
  destroy(): void;
@@ -1,4 +1,4 @@
1
- "use strict";var I=(t,e,s)=>{if(!e.has(t))throw TypeError("Cannot "+s)};var z=(t,e,s)=>(I(t,e,"read from private field"),s?s.call(t):e.get(t)),A=(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)},H=(t,e,s,i)=>(I(t,e,"write to private field"),i?i.call(t,s):e.set(t,s),s);const E=require("./custom-element/index.cjs");require("./Store-D0_rDIsE.cjs");const M=require("./browser-CpzFX2xg.cjs"),Y=require("./events-Crwi8fz6.cjs"),Z=require("./style-At6aDoqG.cjs"),a=require("./tags-920hsh9U.cjs"),P=require("./createStylesheet-BoJwXvjE.cjs"),_=require("./theme/index.cjs");var F=Object.defineProperty,J=Object.getOwnPropertyDescriptor,Q=(t,e,s)=>e in t?F(t,e,{enumerable:!0,configurable:!0,writable:!0,value:s}):t[e]=s,V=(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&&F(e,s,n),n},X=(t,e,s)=>(Q(t,typeof e!="symbol"?e+"":e,s),s),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),S,y,o,v,u,f,b,C,L;const j=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, ${_.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 E.CustomElement{constructor(){super(),c(this,C),c(this,S,null),c(this,y,""),c(this,o,null),c(this,v,!1),c(this,u,void 0),c(this,f,null),c(this,b,()=>{Y.dispatchSizeChangeEvent(this)}),M.isBrowser&&(this.openShadow(j),d(this,S,this.attachInternals()),d(this,f,new ResizeObserver(r(this,b))),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,y)}set value(e){d(this,y,e),this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))}get internals(){return r(this,S)}get opened(){return r(this,v)}open(){clearTimeout(r(this,u)),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,L).call(this)},0)}close(){d(this,v,!1),r(this,o).style.height="0px",this.classList.remove("opened"),B(this,C,L).call(this),d(this,u,setTimeout(()=>{this.classList.remove("triggered"),r(this,o).style.display="none"},Z.getElementTransitionDurationMS(r(this,o))))}connectedCallback(){r(this,f).observe(r(this,o))}disconnectedCallback(){clearTimeout(r(this,u)),r(this,f).disconnect()}};S=new WeakMap;y=new WeakMap;o=new WeakMap;v=new WeakMap;u=new WeakMap;f=new WeakMap;b=new WeakMap;C=new WeakSet;L=function(){this.dispatchEvent(new CustomEvent("selectToggle",{bubbles:!0,composed:!0,detail:{opened:r(this,v)}}))};X(exports.SelectElement,"formAssociated",!0);exports.SelectElement=V([E.define("e-select")],exports.SelectElement);var w;class D extends E.CustomElement{constructor(){super(...arguments);A(this,w,null)}get selectElement(){return z(this,w)}connectedCallback(){var i,n;const s=(n=(i=this.assignedSlot)==null?void 0:i.getRootNode())==null?void 0:n.host;s?H(this,w,s):console.log(this,"e-select not found")}}w=new WeakMap;var ee=Object.defineProperty,te=Object.getOwnPropertyDescriptor,se=(t,e,s,i)=>{for(var n=i>1?void 0:i?te(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&&ee(e,s,n),n},N=(t,e,s)=>{if(!e.has(t))throw TypeError("Cannot "+s)},O=(t,e,s)=>(N(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)=>(N(t,e,"access private method"),s),m,T,W;const ie=P.createStylesheet({":host":{width:"100%",height:_.aptechkaTheme.heightInput.var,display:"inline-flex",alignItems:"center"}});exports.SelectOptionElement=class extends D{constructor(){super(),G(this,T),G(this,m,()=>{this.selectElement.value===this.value?this.style.display="none":this.style.display=""}),M.isBrowser&&(this.openShadow(ie),a.element(this,{tabIndex:"0",onClick:()=>{R(this,T,W).call(this)},onKeydown:e=>{e.code==="Space"&&R(this,T,W).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,m)),setTimeout(()=>{O(this,m).call(this)})}disconnectedCallback(){this.selectElement.removeEventListener("change",O(this,m))}};m=new WeakMap;T=new WeakSet;W=function(){this.selectElement.value=this.value,this.selectElement.close()};exports.SelectOptionElement=se([E.define("e-select-option")],exports.SelectOptionElement);const U=`<svg
1
+ "use strict";var I=(t,e,s)=>{if(!e.has(t))throw TypeError("Cannot "+s)};var z=(t,e,s)=>(I(t,e,"read from private field"),s?s.call(t):e.get(t)),A=(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)},H=(t,e,s,i)=>(I(t,e,"write to private field"),i?i.call(t,s):e.set(t,s),s);const E=require("./custom-element/index.cjs");require("./Store-D0_rDIsE.cjs");const M=require("./browser-CpzFX2xg.cjs"),Y=require("./events-Crwi8fz6.cjs"),Z=require("./style-At6aDoqG.cjs"),a=require("./tags-75InVOh4.cjs"),P=require("./createStylesheet-DTOK6fTn.cjs"),_=require("./theme/index.cjs");var F=Object.defineProperty,J=Object.getOwnPropertyDescriptor,Q=(t,e,s)=>e in t?F(t,e,{enumerable:!0,configurable:!0,writable:!0,value:s}):t[e]=s,V=(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&&F(e,s,n),n},X=(t,e,s)=>(Q(t,typeof e!="symbol"?e+"":e,s),s),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),S,y,o,v,u,f,b,C,L;const j=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, ${_.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 E.CustomElement{constructor(){super(),c(this,C),c(this,S,null),c(this,y,""),c(this,o,null),c(this,v,!1),c(this,u,void 0),c(this,f,null),c(this,b,()=>{Y.dispatchSizeChangeEvent(this)}),M.isBrowser&&(this.openShadow(j),d(this,S,this.attachInternals()),d(this,f,new ResizeObserver(r(this,b))),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,y)}set value(e){d(this,y,e),this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))}get internals(){return r(this,S)}get opened(){return r(this,v)}open(){clearTimeout(r(this,u)),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,L).call(this)},0)}close(){d(this,v,!1),r(this,o).style.height="0px",this.classList.remove("opened"),B(this,C,L).call(this),d(this,u,setTimeout(()=>{this.classList.remove("triggered"),r(this,o).style.display="none"},Z.getElementTransitionDurationMS(r(this,o))))}connectedCallback(){r(this,f).observe(r(this,o))}disconnectedCallback(){clearTimeout(r(this,u)),r(this,f).disconnect()}};S=new WeakMap;y=new WeakMap;o=new WeakMap;v=new WeakMap;u=new WeakMap;f=new WeakMap;b=new WeakMap;C=new WeakSet;L=function(){this.dispatchEvent(new CustomEvent("selectToggle",{bubbles:!0,composed:!0,detail:{opened:r(this,v)}}))};X(exports.SelectElement,"formAssociated",!0);exports.SelectElement=V([E.define("e-select")],exports.SelectElement);var w;class D extends E.CustomElement{constructor(){super(...arguments);A(this,w,null)}get selectElement(){return z(this,w)}connectedCallback(){var i,n;const s=(n=(i=this.assignedSlot)==null?void 0:i.getRootNode())==null?void 0:n.host;s?H(this,w,s):console.log(this,"e-select not found")}}w=new WeakMap;var ee=Object.defineProperty,te=Object.getOwnPropertyDescriptor,se=(t,e,s,i)=>{for(var n=i>1?void 0:i?te(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&&ee(e,s,n),n},N=(t,e,s)=>{if(!e.has(t))throw TypeError("Cannot "+s)},O=(t,e,s)=>(N(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)=>(N(t,e,"access private method"),s),m,T,W;const ie=P.createStylesheet({":host":{width:"100%",height:_.aptechkaTheme.heightInput.var,display:"inline-flex",alignItems:"center"}});exports.SelectOptionElement=class extends D{constructor(){super(),G(this,T),G(this,m,()=>{this.selectElement.value===this.value?this.style.display="none":this.style.display=""}),M.isBrowser&&(this.openShadow(ie),a.element(this,{tabIndex:"0",onClick:()=>{R(this,T,W).call(this)},onKeydown:e=>{e.code==="Space"&&R(this,T,W).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,m)),setTimeout(()=>{O(this,m).call(this)})}disconnectedCallback(){this.selectElement.removeEventListener("change",O(this,m))}};m=new WeakMap;T=new WeakSet;W=function(){this.selectElement.value=this.value,this.selectElement.close()};exports.SelectOptionElement=se([E.define("e-select-option")],exports.SelectOptionElement);const U=`<svg
2
2
  xmlns="http://www.w3.org/2000/svg"
3
3
  width="32"
4
4
  height="32"
@@ -12,8 +12,8 @@ import "./Store-JOKrNVEr.js";
12
12
  import { i as D } from "./browser-0zX67oeU.js";
13
13
  import { d as X } from "./events-_C2CztxR.js";
14
14
  import { g as j } from "./style-j2TwriJ_.js";
15
- import { e as $, p as ee, ay as _, D as q } from "./tags-kZqsS_nJ.js";
16
- import { c as z } from "./createStylesheet-DSgkNlUZ.js";
15
+ import { e as $, p as ee, ay as _, D as q } from "./tags-DgRVzazL.js";
16
+ import { c as z } from "./createStylesheet-Zqf3lXhM.js";
17
17
  import { aptechkaTheme as m } from "./theme/index.js";
18
18
  var Z = Object.defineProperty, te = Object.getOwnPropertyDescriptor, se = (t, e, s) => e in t ? Z(t, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : t[e] = s, ie = (t, e, s, i) => {
19
19
  for (var r = i > 1 ? void 0 : i ? te(e, s) : e, n = t.length - 1, l; n >= 0; n--)
@@ -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"),d=require("../dom-qY2LdCVL.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&&f(this,u,new IntersectionObserver(n(this,l)))}subscribe(t,r){const e=d.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}),()=>{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 v=new m;exports.Intersector=m;exports.intersector=v;
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"),d=require("../dom-qY2LdCVL.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&&f(this,u,new IntersectionObserver(n(this,l)))}subscribe(t,r){const e=d.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}),()=>{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 v=new m;exports.Intersector=m;exports.intersector=v;
@@ -3,7 +3,7 @@ export type IntersectorCallback = (entry: IntersectionObserverEntry) => void;
3
3
  export declare class Intersector {
4
4
  #private;
5
5
  constructor();
6
- subscribe(elementOrSelector: ElementOrSelector, callback: IntersectorCallback): (() => void) | undefined;
6
+ subscribe(elementOrSelector: ElementOrSelector, callback: IntersectorCallback): () => void;
7
7
  unsubscribe(callback: IntersectorCallback): void;
8
8
  }
9
9
  export declare const intersector: Intersector;
@@ -29,7 +29,8 @@ class g {
29
29
  subscribe(t, s) {
30
30
  const e = p(t);
31
31
  if (!e)
32
- return;
32
+ return () => {
33
+ };
33
34
  const o = r(this, i).find(
34
35
  (c) => c.element === e
35
36
  );
@@ -1 +1 @@
1
- "use strict";var V=(i,e,s)=>{if(!e.has(i))throw TypeError("Cannot "+s)};var t=(i,e,s)=>(V(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)},n=(i,e,s,l)=>(V(i,e,"write to private field"),l?l.call(i,s):e.set(i,s),s);var m=(i,e,s)=>(V(i,e,"access private method"),s);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const ot=require("../css-unit-parser/index.cjs"),$=require("../ladder/index.cjs"),J=require("../order/index.cjs"),N=require("../window-resizer/index.cjs"),at=require("../scroll-entries/index.cjs"),Q=require("../ticker/index.cjs"),j=require("../browser-CpzFX2xg.cjs"),b=require("../layout-8ryRAMGJ.cjs");function tt(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),l=Math.sqrt(i.m31*i.m31+i.m32*i.m32+i.m33*i.m33),E=Math.atan2(i.m32,i.m33),X=Math.atan2(-i.m31,Math.sqrt(i.m32*i.m32+i.m33*i.m33)),I=Math.atan2(i.m21,i.m11),u=i.m41,O=i.m42,L=i.m43;return{scaleX:e,scaleY:s,scaleZ:l,rotationX:E,rotationY:X,rotationZ:I,translationX:u,translationY:O,translationZ:L}}var a,f,y,x,Y,q,v,w,H,_,M,P,d,S,C,R,T,B,z,p,g,c,r,o,Z,F,D,et,U,st,K,it,A,G,W,k;class ct{constructor(e,s){h(this,Z);h(this,D);h(this,U);h(this,K);h(this,A);h(this,a,null);h(this,f,null);h(this,y,[]);h(this,x,"auto");h(this,Y,"top");h(this,q,!1);h(this,v,!0);h(this,w,!0);h(this,H,!0);h(this,_,0);h(this,M,0);h(this,P,0);h(this,d,0);h(this,S,0);h(this,C,0);h(this,R,0);h(this,T,0);h(this,B,0);h(this,z,{x:0,y:0,z:0});h(this,p,{x:0,y:0,z:0});h(this,g,{x:1,y:1,z:1});h(this,c,new $.Ladder({x:0,y:0,z:0}));h(this,r,new $.Ladder({x:0,y:0,z:0}));h(this,o,new $.Ladder({x:0,y:0,z:0}));h(this,W,()=>{j.isBrowser&&m(this,U,st).call(this)});h(this,k,()=>{m(this,K,it).call(this),m(this,Z,F).call(this)});j.isBrowser&&(n(this,a,m(this,A,G).call(this,e)||document.body),n(this,f,m(this,A,G).call(this,s==null?void 0:s.containerElement)||document.body),n(this,x,(s==null?void 0:s.scrollAxis)||"auto"),n(this,Y,(s==null?void 0:s.frontSide)||"top"),n(this,q,(s==null?void 0:s.cartesian)||!1),n(this,v,(s==null?void 0:s.sizeStep)!==void 0?s.sizeStep:!0),n(this,w,(s==null?void 0:s.positionStep)!==void 0?s.positionStep:!0),n(this,H,(s==null?void 0:s.transformStep)!==void 0?s.transformStep:!0),t(this,o).setStep("_size","+",{x:1,y:1,z:1}),t(this,r).setStep("_position","+",{x:0,y:0,z:0}),t(this,o).setStep("_scale","*",{x:1,y:1,z:1}),t(this,r).setStep("_translation","+",{x:0,y:0,z:0}),t(this,c).setStep("_rotation","+",{x:0,y:0,z:0}),addEventListener("DOMContentLoaded",()=>{at.scrollEntries.getAll(this.element).forEach(l=>{this.setScrollStep(()=>l)})}),Q.ticker.subscribe(t(this,k),{order:J.TICK_ORDER.LAYOUT_BOX,culling:s!=null&&s.culling?this.element:void 0}),N.windowResizer.subscribe(t(this,W),J.TICK_ORDER.LAYOUT_BOX))}get element(){return t(this,a)}get containerElement(){return t(this,f)}get position(){return t(this,r).current}get rotation(){return t(this,c).current}get scale(){return t(this,o).current}get left(){return t(this,S)}get top(){return t(this,d)}get front(){return t(this,C)}get width(){return t(this,_)}get height(){return t(this,M)}get depth(){return t(this,P)}bindObject(e){e.position&&t(this,r).bind(e.position),e.rotation&&t(this,c).bind(e.rotation),e.scale&&t(this,o).bind(e.scale)}unbindObject(e){e.position&&t(this,r).unbind(e.position),e.rotation&&t(this,c).unbind(e.rotation),e.scale&&t(this,o).unbind(e.scale)}setScrollStep(e){return t(this,y).includes(e)||t(this,y).push(e),()=>this.deleteScrollStep(e)}deleteScrollStep(e){n(this,y,t(this,y).filter(s=>s!==e))}destroy(){Q.ticker.unsubscribe(t(this,k)),N.windowResizer.unsubscribe(t(this,W)),t(this,r).close(),t(this,c).close(),t(this,o).close()}setPositionStep(...e){t(this,r).setStep(...e)}setRotationStep(...e){t(this,c).setStep(...e)}setScaleStep(...e){t(this,o).setStep(...e)}deletePositionStep(...e){t(this,r).deleteStep(...e)}deleteRotationStep(...e){t(this,c).deleteStep(...e)}deleteScaleStep(...e){t(this,o).deleteStep(...e)}}a=new WeakMap,f=new WeakMap,y=new WeakMap,x=new WeakMap,Y=new WeakMap,q=new WeakMap,v=new WeakMap,w=new WeakMap,H=new WeakMap,_=new WeakMap,M=new WeakMap,P=new WeakMap,d=new WeakMap,S=new WeakMap,C=new WeakMap,R=new WeakMap,T=new WeakMap,B=new WeakMap,z=new WeakMap,p=new WeakMap,g=new WeakMap,c=new WeakMap,r=new WeakMap,o=new WeakMap,Z=new WeakSet,F=function(){t(this,o).calculate(),t(this,r).calculate(),t(this,c).calculate()},D=new WeakSet,et=function(){t(this,o).setStep("_size","+",{x:t(this,v)?t(this,_):1,y:t(this,v)?t(this,M):1,z:t(this,v)?t(this,P):1});const e=t(this,w)?t(this,R):0,s=t(this,w)?t(this,T):0,l=t(this,w)?t(this,B):0;t(this,r).setStep("_position","+",{x:e,y:s,z:l}),t(this,H)?(t(this,o).setStep("_scale","*",{x:t(this,g).x,y:t(this,g).y,z:t(this,g).z}),t(this,r).setStep("_translation","+",{x:t(this,z).x,y:t(this,z).y,z:t(this,z).z}),t(this,c).setStep("_rotation","+",{x:t(this,p).x,y:t(this,p).y,z:t(this,p).z})):(t(this,o).setStep("_scale","*",{x:1,y:1,z:1}),t(this,r).setStep("_translation","+",{x:0,y:0,z:0}),t(this,c).setStep("_rotation","+",{x:0,y:0,z:0}))},U=new WeakSet,st=function(){const e=getComputedStyle(t(this,a));n(this,_,Math.max(t(this,a).clientWidth,1)),n(this,M,Math.max(t(this,a).clientHeight,1)),n(this,P,Math.max(ot.cssUnitParser.parse(e.getPropertyValue("--depth")||"0px"),1));const s=b.getCumulativeOffsetLeft(t(this,f)),l=b.getCumulativeOffsetTop(t(this,f)),E=t(this,f).clientWidth,X=t(this,f).clientHeight;if(n(this,S,b.getCumulativeOffsetLeft(t(this,a))-s),n(this,d,b.getCumulativeOffsetTop(t(this,a))-l),t(this,x)==="z"){const O=t(this,S)/E,L=t(this,d)/X;n(this,S,(O-Math.floor(O))*E),n(this,d,(L-Math.floor(L))*X),t(this,Y)==="left"?n(this,C,b.getCumulativeOffsetLeft(t(this,a))-s-t(this,S)):n(this,C,b.getCumulativeOffsetTop(t(this,a))-l-t(this,d))}if(n(this,S,t(this,S)+t(this,a).clientLeft),n(this,d,t(this,d)+t(this,a).clientTop),t(this,q)){const O=Math.round(E/2),L=Math.round(X/2),ht=t(this,_)?Math.round(t(this,_)/2):0,nt=t(this,M)?Math.round(t(this,M)/2):0,rt=t(this,S)-O+ht,lt=(t(this,d)-L+nt)*-1;n(this,R,rt),n(this,T,lt)}else n(this,R,t(this,S)),n(this,T,t(this,d));n(this,B,t(this,C)*-1);const I=new WebKitCSSMatrix(e.transform),u=tt(I);t(this,z).x=u.translationX,t(this,z).y=u.translationY,t(this,z).z=u.translationZ,t(this,g).x=u.scaleX,t(this,g).y=u.scaleY,t(this,g).z=u.scaleZ,t(this,p).x=u.rotationX,t(this,p).y=u.rotationY,t(this,p).z=u.rotationZ,m(this,D,et).call(this),m(this,Z,F).call(this)},K=new WeakSet,it=function(){for(let e=0;e<t(this,y).length;e++){const s=t(this,y)[e]();let l=s.axis;t(this,x)!=="auto"&&(l=t(this,x)),t(this,r).setStep(`_scroll_${e}`,"+",{[l]:s.value*(l==="x"?-1:t(this,q)?1:-1)})}},A=new WeakSet,G=function(e){return typeof e=="string"?document.querySelector(e):e},W=new WeakMap,k=new WeakMap;exports.LayoutBox=ct;exports.decomposeCSSMatrix=tt;
1
+ "use strict";var I=(i,e,s)=>{if(!e.has(i))throw TypeError("Cannot "+s)};var t=(i,e,s)=>(I(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)},n=(i,e,s,l)=>(I(i,e,"write to private field"),l?l.call(i,s):e.set(i,s),s);var L=(i,e,s)=>(I(i,e,"access private method"),s);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const lt=require("../css-unit-parser/index.cjs"),V=require("../ladder/index.cjs"),F=require("../order/index.cjs"),G=require("../window-resizer/index.cjs"),ot=require("../scroll-entries/index.cjs"),J=require("../ticker/index.cjs"),N=require("../browser-CpzFX2xg.cjs"),Q=require("../dom-qY2LdCVL.cjs"),b=require("../layout-8ryRAMGJ.cjs");function j(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),l=Math.sqrt(i.m31*i.m31+i.m32*i.m32+i.m33*i.m33),T=Math.atan2(i.m32,i.m33),X=Math.atan2(-i.m31,Math.sqrt(i.m32*i.m32+i.m33*i.m33)),K=Math.atan2(i.m21,i.m11),u=i.m41,C=i.m42,O=i.m43;return{scaleX:e,scaleY:s,scaleZ:l,rotationX:T,rotationY:X,rotationZ:K,translationX:u,translationY:C,translationZ:O}}var a,f,y,M,Y,q,x,v,H,g,_,E,d,S,w,P,R,B,z,p,m,c,r,o,Z,$,k,tt,D,et,U,st,A,W;class at{constructor(e,s){h(this,Z);h(this,k);h(this,D);h(this,U);h(this,a,null);h(this,f,null);h(this,y,[]);h(this,M,"auto");h(this,Y,"top");h(this,q,!1);h(this,x,!0);h(this,v,!0);h(this,H,!0);h(this,g,0);h(this,_,0);h(this,E,0);h(this,d,0);h(this,S,0);h(this,w,0);h(this,P,0);h(this,R,0);h(this,B,0);h(this,z,{x:0,y:0,z:0});h(this,p,{x:0,y:0,z:0});h(this,m,{x:1,y:1,z:1});h(this,c,new V.Ladder({x:0,y:0,z:0}));h(this,r,new V.Ladder({x:0,y:0,z:0}));h(this,o,new V.Ladder({x:0,y:0,z:0}));h(this,A,()=>{N.isBrowser&&L(this,D,et).call(this)});h(this,W,()=>{L(this,U,st).call(this),L(this,Z,$).call(this)});N.isBrowser&&(n(this,a,Q.getElement(e)||document.body),n(this,f,Q.getElement(s==null?void 0:s.containerElement)||document.body),n(this,M,(s==null?void 0:s.scrollAxis)||"auto"),n(this,Y,(s==null?void 0:s.frontSide)||"top"),n(this,q,(s==null?void 0:s.cartesian)||!1),n(this,x,(s==null?void 0:s.sizeStep)!==void 0?s.sizeStep:!0),n(this,v,(s==null?void 0:s.positionStep)!==void 0?s.positionStep:!0),n(this,H,(s==null?void 0:s.transformStep)!==void 0?s.transformStep:!0),t(this,o).setStep("_size","+",{x:1,y:1,z:1}),t(this,r).setStep("_position","+",{x:0,y:0,z:0}),t(this,o).setStep("_scale","*",{x:1,y:1,z:1}),t(this,r).setStep("_translation","+",{x:0,y:0,z:0}),t(this,c).setStep("_rotation","+",{x:0,y:0,z:0}),addEventListener("DOMContentLoaded",()=>{ot.scrollEntries.getAll(this.element).forEach(l=>{this.setScrollStep(()=>l)})}),J.ticker.subscribe(t(this,W),{order:F.TICK_ORDER.LAYOUT_BOX,culling:s!=null&&s.culling?this.element:void 0}),G.windowResizer.subscribe(t(this,A),F.TICK_ORDER.LAYOUT_BOX))}get element(){return t(this,a)}get containerElement(){return t(this,f)}get position(){return t(this,r).current}get rotation(){return t(this,c).current}get scale(){return t(this,o).current}get left(){return t(this,S)}get top(){return t(this,d)}get front(){return t(this,w)}get width(){return t(this,g)}get height(){return t(this,_)}get depth(){return t(this,E)}bindObject(e){e.position&&t(this,r).bind(e.position),e.rotation&&t(this,c).bind(e.rotation),e.scale&&t(this,o).bind(e.scale)}unbindObject(e){e.position&&t(this,r).unbind(e.position),e.rotation&&t(this,c).unbind(e.rotation),e.scale&&t(this,o).unbind(e.scale)}setScrollStep(e){return t(this,y).includes(e)||t(this,y).push(e),()=>this.deleteScrollStep(e)}deleteScrollStep(e){n(this,y,t(this,y).filter(s=>s!==e))}destroy(){J.ticker.unsubscribe(t(this,W)),G.windowResizer.unsubscribe(t(this,A)),t(this,r).close(),t(this,c).close(),t(this,o).close()}setPositionStep(...e){t(this,r).setStep(...e)}setRotationStep(...e){t(this,c).setStep(...e)}setScaleStep(...e){t(this,o).setStep(...e)}deletePositionStep(...e){t(this,r).deleteStep(...e)}deleteRotationStep(...e){t(this,c).deleteStep(...e)}deleteScaleStep(...e){t(this,o).deleteStep(...e)}}a=new WeakMap,f=new WeakMap,y=new WeakMap,M=new WeakMap,Y=new WeakMap,q=new WeakMap,x=new WeakMap,v=new WeakMap,H=new WeakMap,g=new WeakMap,_=new WeakMap,E=new WeakMap,d=new WeakMap,S=new WeakMap,w=new WeakMap,P=new WeakMap,R=new WeakMap,B=new WeakMap,z=new WeakMap,p=new WeakMap,m=new WeakMap,c=new WeakMap,r=new WeakMap,o=new WeakMap,Z=new WeakSet,$=function(){t(this,o).calculate(),t(this,r).calculate(),t(this,c).calculate()},k=new WeakSet,tt=function(){t(this,o).setStep("_size","+",{x:t(this,x)?t(this,g):1,y:t(this,x)?t(this,_):1,z:t(this,x)?t(this,E):1});const e=t(this,v)?t(this,P):0,s=t(this,v)?t(this,R):0,l=t(this,v)?t(this,B):0;t(this,r).setStep("_position","+",{x:e,y:s,z:l}),t(this,H)?(t(this,o).setStep("_scale","*",{x:t(this,m).x,y:t(this,m).y,z:t(this,m).z}),t(this,r).setStep("_translation","+",{x:t(this,z).x,y:t(this,z).y,z:t(this,z).z}),t(this,c).setStep("_rotation","+",{x:t(this,p).x,y:t(this,p).y,z:t(this,p).z})):(t(this,o).setStep("_scale","*",{x:1,y:1,z:1}),t(this,r).setStep("_translation","+",{x:0,y:0,z:0}),t(this,c).setStep("_rotation","+",{x:0,y:0,z:0}))},D=new WeakSet,et=function(){const e=getComputedStyle(t(this,a));n(this,g,Math.max(t(this,a).clientWidth,1)),n(this,_,Math.max(t(this,a).clientHeight,1)),n(this,E,Math.max(lt.cssUnitParser.parse(e.getPropertyValue("--depth")||"0px"),1));const s=b.getCumulativeOffsetLeft(t(this,f)),l=b.getCumulativeOffsetTop(t(this,f)),T=t(this,f).clientWidth,X=t(this,f).clientHeight;if(n(this,S,b.getCumulativeOffsetLeft(t(this,a))-s),n(this,d,b.getCumulativeOffsetTop(t(this,a))-l),t(this,M)==="z"){const C=t(this,S)/T,O=t(this,d)/X;n(this,S,(C-Math.floor(C))*T),n(this,d,(O-Math.floor(O))*X),t(this,Y)==="left"?n(this,w,b.getCumulativeOffsetLeft(t(this,a))-s-t(this,S)):n(this,w,b.getCumulativeOffsetTop(t(this,a))-l-t(this,d))}if(n(this,S,t(this,S)+t(this,a).clientLeft),n(this,d,t(this,d)+t(this,a).clientTop),t(this,q)){const C=Math.round(T/2),O=Math.round(X/2),it=t(this,g)?Math.round(t(this,g)/2):0,ht=t(this,_)?Math.round(t(this,_)/2):0,nt=t(this,S)-C+it,rt=(t(this,d)-O+ht)*-1;n(this,P,nt),n(this,R,rt)}else n(this,P,t(this,S)),n(this,R,t(this,d));n(this,B,t(this,w)*-1);const K=new WebKitCSSMatrix(e.transform),u=j(K);t(this,z).x=u.translationX,t(this,z).y=u.translationY,t(this,z).z=u.translationZ,t(this,m).x=u.scaleX,t(this,m).y=u.scaleY,t(this,m).z=u.scaleZ,t(this,p).x=u.rotationX,t(this,p).y=u.rotationY,t(this,p).z=u.rotationZ,L(this,k,tt).call(this),L(this,Z,$).call(this)},U=new WeakSet,st=function(){for(let e=0;e<t(this,y).length;e++){const s=t(this,y)[e]();let l=s.axis;t(this,M)!=="auto"&&(l=t(this,M)),t(this,r).setStep(`_scroll_${e}`,"+",{[l]:s.value*(l==="x"?-1:t(this,q)?1:-1)})}},A=new WeakMap,W=new WeakMap;exports.LayoutBox=at;exports.decomposeCSSMatrix=j;
@@ -13,7 +13,7 @@ export declare function decomposeCSSMatrix(matrix: WebKitCSSMatrix): {
13
13
  translationZ: number;
14
14
  };
15
15
  export interface LayoutBoxOptions {
16
- containerElement?: ElementOrSelector;
16
+ containerElement?: ElementOrSelector<HTMLElement>;
17
17
  cartesian?: boolean;
18
18
  scrollAxis?: Axes3D | 'auto';
19
19
  frontSide?: LayoutBoxFrontSide;
@@ -41,7 +41,7 @@ export interface LayoutBoxBindedObject {
41
41
  }
42
42
  export declare class LayoutBox {
43
43
  #private;
44
- constructor(element: ElementOrSelector, options?: LayoutBoxOptions);
44
+ constructor(element: ElementOrSelector<HTMLElement>, options?: LayoutBoxOptions);
45
45
  get element(): HTMLElement;
46
46
  get containerElement(): HTMLElement;
47
47
  get position(): {
@@ -1,22 +1,23 @@
1
- var I = (i, s, e) => {
1
+ var K = (i, s, e) => {
2
2
  if (!s.has(i))
3
3
  throw TypeError("Cannot " + e);
4
4
  };
5
- var t = (i, s, e) => (I(i, s, "read from private field"), e ? e.call(i) : s.get(i)), h = (i, s, e) => {
5
+ var t = (i, s, e) => (K(i, s, "read from private field"), e ? e.call(i) : s.get(i)), h = (i, s, e) => {
6
6
  if (s.has(i))
7
7
  throw TypeError("Cannot add the same private member more than once");
8
8
  s instanceof WeakSet ? s.add(i) : s.set(i, e);
9
- }, n = (i, s, e, l) => (I(i, s, "write to private field"), l ? l.call(i, e) : s.set(i, e), e);
10
- var g = (i, s, e) => (I(i, s, "access private method"), e);
11
- import { cssUnitParser as ot } from "../css-unit-parser/index.js";
12
- import { Ladder as V } from "../ladder/index.js";
13
- import { TICK_ORDER as N } from "../order/index.js";
14
- import { windowResizer as Q } from "../window-resizer/index.js";
15
- import { scrollEntries as at } from "../scroll-entries/index.js";
16
- import { ticker as j } from "../ticker/index.js";
17
- import { i as tt } from "../browser-0zX67oeU.js";
18
- import { g as $, a as F } from "../layout-HoBT_Da2.js";
19
- function ct(i) {
9
+ }, n = (i, s, e, l) => (K(i, s, "write to private field"), l ? l.call(i, e) : s.set(i, e), e);
10
+ var L = (i, s, e) => (K(i, s, "access private method"), e);
11
+ import { cssUnitParser as lt } from "../css-unit-parser/index.js";
12
+ import { Ladder as I } from "../ladder/index.js";
13
+ import { TICK_ORDER as G } from "../order/index.js";
14
+ import { windowResizer as J } from "../window-resizer/index.js";
15
+ import { scrollEntries as ot } from "../scroll-entries/index.js";
16
+ import { ticker as N } from "../ticker/index.js";
17
+ import { i as Q } from "../browser-0zX67oeU.js";
18
+ import { g as j } from "../dom-BY7JhTx5.js";
19
+ import { g as V, a as $ } from "../layout-HoBT_Da2.js";
20
+ function at(i) {
20
21
  const s = Math.sqrt(
21
22
  i.m11 * i.m11 + i.m12 * i.m12 + i.m13 * i.m13
22
23
  ), e = Math.sqrt(
@@ -26,58 +27,57 @@ function ct(i) {
26
27
  ), E = Math.atan2(i.m32, i.m33), H = Math.atan2(
27
28
  -i.m31,
28
29
  Math.sqrt(i.m32 * i.m32 + i.m33 * i.m33)
29
- ), K = Math.atan2(i.m21, i.m11), u = i.m41, b = i.m42, L = i.m43;
30
+ ), k = Math.atan2(i.m21, i.m11), u = i.m41, C = i.m42, b = i.m43;
30
31
  return {
31
32
  scaleX: s,
32
33
  scaleY: e,
33
34
  scaleZ: l,
34
35
  rotationX: E,
35
36
  rotationY: H,
36
- rotationZ: K,
37
+ rotationZ: k,
37
38
  translationX: u,
38
- translationY: b,
39
- translationZ: L
39
+ translationY: C,
40
+ translationZ: b
40
41
  };
41
42
  }
42
- var a, f, m, v, R, O, x, w, T, M, _, P, S, d, C, X, Y, Z, p, y, z, c, r, o, q, G, D, st, U, et, k, it, A, J, W, B;
43
+ var a, f, m, _, R, O, v, x, T, g, M, P, S, d, w, X, Y, Z, p, z, y, c, r, o, A, F, B, tt, D, st, U, et, W, q;
43
44
  class Mt {
44
45
  constructor(s, e) {
45
- h(this, q);
46
+ h(this, A);
47
+ h(this, B);
46
48
  h(this, D);
47
49
  h(this, U);
48
- h(this, k);
49
- h(this, A);
50
50
  h(this, a, null);
51
51
  h(this, f, null);
52
52
  h(this, m, []);
53
- h(this, v, "auto");
53
+ h(this, _, "auto");
54
54
  h(this, R, "top");
55
55
  h(this, O, !1);
56
+ h(this, v, !0);
56
57
  h(this, x, !0);
57
- h(this, w, !0);
58
58
  h(this, T, !0);
59
+ h(this, g, 0);
59
60
  h(this, M, 0);
60
- h(this, _, 0);
61
61
  h(this, P, 0);
62
62
  h(this, S, 0);
63
63
  h(this, d, 0);
64
- h(this, C, 0);
64
+ h(this, w, 0);
65
65
  h(this, X, 0);
66
66
  h(this, Y, 0);
67
67
  h(this, Z, 0);
68
68
  h(this, p, { x: 0, y: 0, z: 0 });
69
- h(this, y, { x: 0, y: 0, z: 0 });
70
- h(this, z, { x: 1, y: 1, z: 1 });
71
- h(this, c, new V({ x: 0, y: 0, z: 0 }));
72
- h(this, r, new V({ x: 0, y: 0, z: 0 }));
73
- h(this, o, new V({ x: 0, y: 0, z: 0 }));
69
+ h(this, z, { x: 0, y: 0, z: 0 });
70
+ h(this, y, { x: 1, y: 1, z: 1 });
71
+ h(this, c, new I({ x: 0, y: 0, z: 0 }));
72
+ h(this, r, new I({ x: 0, y: 0, z: 0 }));
73
+ h(this, o, new I({ x: 0, y: 0, z: 0 }));
74
74
  h(this, W, () => {
75
- tt && g(this, U, et).call(this);
75
+ Q && L(this, D, st).call(this);
76
76
  });
77
- h(this, B, () => {
78
- g(this, k, it).call(this), g(this, q, G).call(this);
77
+ h(this, q, () => {
78
+ L(this, U, et).call(this), L(this, A, F).call(this);
79
79
  });
80
- tt && (n(this, a, g(this, A, J).call(this, s) || document.body), n(this, f, g(this, A, J).call(this, e == null ? void 0 : e.containerElement) || document.body), n(this, v, (e == null ? void 0 : e.scrollAxis) || "auto"), n(this, R, (e == null ? void 0 : e.frontSide) || "top"), n(this, O, (e == null ? void 0 : e.cartesian) || !1), n(this, x, (e == null ? void 0 : e.sizeStep) !== void 0 ? e.sizeStep : !0), n(this, w, (e == null ? void 0 : e.positionStep) !== void 0 ? e.positionStep : !0), n(this, T, (e == null ? void 0 : e.transformStep) !== void 0 ? e.transformStep : !0), t(this, o).setStep("_size", "+", {
80
+ Q && (n(this, a, j(s) || document.body), n(this, f, j(e == null ? void 0 : e.containerElement) || document.body), n(this, _, (e == null ? void 0 : e.scrollAxis) || "auto"), n(this, R, (e == null ? void 0 : e.frontSide) || "top"), n(this, O, (e == null ? void 0 : e.cartesian) || !1), n(this, v, (e == null ? void 0 : e.sizeStep) !== void 0 ? e.sizeStep : !0), n(this, x, (e == null ? void 0 : e.positionStep) !== void 0 ? e.positionStep : !0), n(this, T, (e == null ? void 0 : e.transformStep) !== void 0 ? e.transformStep : !0), t(this, o).setStep("_size", "+", {
81
81
  x: 1,
82
82
  y: 1,
83
83
  z: 1
@@ -98,13 +98,13 @@ class Mt {
98
98
  y: 0,
99
99
  z: 0
100
100
  }), addEventListener("DOMContentLoaded", () => {
101
- at.getAll(this.element).forEach((l) => {
101
+ ot.getAll(this.element).forEach((l) => {
102
102
  this.setScrollStep(() => l);
103
103
  });
104
- }), j.subscribe(t(this, B), {
105
- order: N.LAYOUT_BOX,
104
+ }), N.subscribe(t(this, q), {
105
+ order: G.LAYOUT_BOX,
106
106
  culling: e != null && e.culling ? this.element : void 0
107
- }), Q.subscribe(t(this, W), N.LAYOUT_BOX));
107
+ }), J.subscribe(t(this, W), G.LAYOUT_BOX));
108
108
  }
109
109
  get element() {
110
110
  return t(this, a);
@@ -128,13 +128,13 @@ class Mt {
128
128
  return t(this, S);
129
129
  }
130
130
  get front() {
131
- return t(this, C);
131
+ return t(this, w);
132
132
  }
133
133
  get width() {
134
- return t(this, M);
134
+ return t(this, g);
135
135
  }
136
136
  get height() {
137
- return t(this, _);
137
+ return t(this, M);
138
138
  }
139
139
  get depth() {
140
140
  return t(this, P);
@@ -154,7 +154,7 @@ class Mt {
154
154
  ));
155
155
  }
156
156
  destroy() {
157
- j.unsubscribe(t(this, B)), Q.unsubscribe(t(this, W)), t(this, r).close(), t(this, c).close(), t(this, o).close();
157
+ N.unsubscribe(t(this, q)), J.unsubscribe(t(this, W)), t(this, r).close(), t(this, c).close(), t(this, o).close();
158
158
  }
159
159
  setPositionStep(...s) {
160
160
  t(this, r).setStep(...s);
@@ -175,31 +175,31 @@ class Mt {
175
175
  t(this, o).deleteStep(...s);
176
176
  }
177
177
  }
178
- a = new WeakMap(), f = new WeakMap(), m = new WeakMap(), v = new WeakMap(), R = new WeakMap(), O = new WeakMap(), x = new WeakMap(), w = new WeakMap(), T = new WeakMap(), M = new WeakMap(), _ = new WeakMap(), P = new WeakMap(), S = new WeakMap(), d = new WeakMap(), C = new WeakMap(), X = new WeakMap(), Y = new WeakMap(), Z = new WeakMap(), p = new WeakMap(), y = new WeakMap(), z = new WeakMap(), c = new WeakMap(), r = new WeakMap(), o = new WeakMap(), q = new WeakSet(), G = function() {
178
+ a = new WeakMap(), f = new WeakMap(), m = new WeakMap(), _ = new WeakMap(), R = new WeakMap(), O = new WeakMap(), v = new WeakMap(), x = new WeakMap(), T = new WeakMap(), g = new WeakMap(), M = new WeakMap(), P = new WeakMap(), S = new WeakMap(), d = new WeakMap(), w = new WeakMap(), X = new WeakMap(), Y = new WeakMap(), Z = new WeakMap(), p = new WeakMap(), z = new WeakMap(), y = new WeakMap(), c = new WeakMap(), r = new WeakMap(), o = new WeakMap(), A = new WeakSet(), F = function() {
179
179
  t(this, o).calculate(), t(this, r).calculate(), t(this, c).calculate();
180
- }, D = new WeakSet(), st = function() {
180
+ }, B = new WeakSet(), tt = function() {
181
181
  t(this, o).setStep("_size", "+", {
182
- x: t(this, x) ? t(this, M) : 1,
183
- y: t(this, x) ? t(this, _) : 1,
184
- z: t(this, x) ? t(this, P) : 1
182
+ x: t(this, v) ? t(this, g) : 1,
183
+ y: t(this, v) ? t(this, M) : 1,
184
+ z: t(this, v) ? t(this, P) : 1
185
185
  });
186
- const s = t(this, w) ? t(this, X) : 0, e = t(this, w) ? t(this, Y) : 0, l = t(this, w) ? t(this, Z) : 0;
186
+ const s = t(this, x) ? t(this, X) : 0, e = t(this, x) ? t(this, Y) : 0, l = t(this, x) ? t(this, Z) : 0;
187
187
  t(this, r).setStep("_position", "+", {
188
188
  x: s,
189
189
  y: e,
190
190
  z: l
191
191
  }), t(this, T) ? (t(this, o).setStep("_scale", "*", {
192
- x: t(this, z).x,
193
- y: t(this, z).y,
194
- z: t(this, z).z
192
+ x: t(this, y).x,
193
+ y: t(this, y).y,
194
+ z: t(this, y).z
195
195
  }), t(this, r).setStep("_translation", "+", {
196
196
  x: t(this, p).x,
197
197
  y: t(this, p).y,
198
198
  z: t(this, p).z
199
199
  }), t(this, c).setStep("_rotation", "+", {
200
- x: t(this, y).x,
201
- y: t(this, y).y,
202
- z: t(this, y).z
200
+ x: t(this, z).x,
201
+ y: t(this, z).y,
202
+ z: t(this, z).z
203
203
  })) : (t(this, o).setStep("_scale", "*", {
204
204
  x: 1,
205
205
  y: 1,
@@ -213,37 +213,35 @@ a = new WeakMap(), f = new WeakMap(), m = new WeakMap(), v = new WeakMap(), R =
213
213
  y: 0,
214
214
  z: 0
215
215
  }));
216
- }, U = new WeakSet(), et = function() {
216
+ }, D = new WeakSet(), st = function() {
217
217
  const s = getComputedStyle(t(this, a));
218
- n(this, M, Math.max(t(this, a).clientWidth, 1)), n(this, _, Math.max(t(this, a).clientHeight, 1)), n(this, P, Math.max(
219
- ot.parse(s.getPropertyValue("--depth") || "0px"),
218
+ n(this, g, Math.max(t(this, a).clientWidth, 1)), n(this, M, Math.max(t(this, a).clientHeight, 1)), n(this, P, Math.max(
219
+ lt.parse(s.getPropertyValue("--depth") || "0px"),
220
220
  1
221
221
  ));
222
- const e = $(t(this, f)), l = F(t(this, f)), E = t(this, f).clientWidth, H = t(this, f).clientHeight;
223
- if (n(this, d, $(t(this, a)) - e), n(this, S, F(t(this, a)) - l), t(this, v) === "z") {
224
- const b = t(this, d) / E, L = t(this, S) / H;
225
- n(this, d, (b - Math.floor(b)) * E), n(this, S, (L - Math.floor(L)) * H), t(this, R) === "left" ? n(this, C, $(t(this, a)) - e - t(this, d)) : n(this, C, F(t(this, a)) - l - t(this, S));
222
+ const e = V(t(this, f)), l = $(t(this, f)), E = t(this, f).clientWidth, H = t(this, f).clientHeight;
223
+ if (n(this, d, V(t(this, a)) - e), n(this, S, $(t(this, a)) - l), t(this, _) === "z") {
224
+ const C = t(this, d) / E, b = t(this, S) / H;
225
+ n(this, d, (C - Math.floor(C)) * E), n(this, S, (b - Math.floor(b)) * H), t(this, R) === "left" ? n(this, w, V(t(this, a)) - e - t(this, d)) : n(this, w, $(t(this, a)) - l - t(this, S));
226
226
  }
227
227
  if (n(this, d, t(this, d) + t(this, a).clientLeft), n(this, S, t(this, S) + t(this, a).clientTop), t(this, O)) {
228
- const b = Math.round(E / 2), L = Math.round(H / 2), ht = t(this, M) ? Math.round(t(this, M) / 2) : 0, nt = t(this, _) ? Math.round(t(this, _) / 2) : 0, rt = t(this, d) - b + ht, lt = (t(this, S) - L + nt) * -1;
229
- n(this, X, rt), n(this, Y, lt);
228
+ const C = Math.round(E / 2), b = Math.round(H / 2), it = t(this, g) ? Math.round(t(this, g) / 2) : 0, ht = t(this, M) ? Math.round(t(this, M) / 2) : 0, nt = t(this, d) - C + it, rt = (t(this, S) - b + ht) * -1;
229
+ n(this, X, nt), n(this, Y, rt);
230
230
  } else
231
231
  n(this, X, t(this, d)), n(this, Y, t(this, S));
232
- n(this, Z, t(this, C) * -1);
233
- const K = new WebKitCSSMatrix(s.transform), u = ct(K);
234
- t(this, p).x = u.translationX, t(this, p).y = u.translationY, t(this, p).z = u.translationZ, t(this, z).x = u.scaleX, t(this, z).y = u.scaleY, t(this, z).z = u.scaleZ, t(this, y).x = u.rotationX, t(this, y).y = u.rotationY, t(this, y).z = u.rotationZ, g(this, D, st).call(this), g(this, q, G).call(this);
235
- }, k = new WeakSet(), it = function() {
232
+ n(this, Z, t(this, w) * -1);
233
+ const k = new WebKitCSSMatrix(s.transform), u = at(k);
234
+ t(this, p).x = u.translationX, t(this, p).y = u.translationY, t(this, p).z = u.translationZ, t(this, y).x = u.scaleX, t(this, y).y = u.scaleY, t(this, y).z = u.scaleZ, t(this, z).x = u.rotationX, t(this, z).y = u.rotationY, t(this, z).z = u.rotationZ, L(this, B, tt).call(this), L(this, A, F).call(this);
235
+ }, U = new WeakSet(), et = function() {
236
236
  for (let s = 0; s < t(this, m).length; s++) {
237
237
  const e = t(this, m)[s]();
238
238
  let l = e.axis;
239
- t(this, v) !== "auto" && (l = t(this, v)), t(this, r).setStep(`_scroll_${s}`, "+", {
239
+ t(this, _) !== "auto" && (l = t(this, _)), t(this, r).setStep(`_scroll_${s}`, "+", {
240
240
  [l]: e.value * (l === "x" ? -1 : t(this, O) ? 1 : -1)
241
241
  });
242
242
  }
243
- }, A = new WeakSet(), J = function(s) {
244
- return typeof s == "string" ? document.querySelector(s) : s;
245
- }, W = new WeakMap(), B = new WeakMap();
243
+ }, W = new WeakMap(), q = new WeakMap();
246
244
  export {
247
245
  Mt as LayoutBox,
248
- ct as decomposeCSSMatrix
246
+ at as decomposeCSSMatrix
249
247
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const v=require("../custom-element/index.cjs");require("../Store-D0_rDIsE.cjs");const b=require("../browser-CpzFX2xg.cjs"),s=require("../tags-920hsh9U.cjs"),m=require("../createStylesheet-BoJwXvjE.cjs"),g=require("../popover/index.cjs"),d=require("../theme/index.cjs");var w=Object.defineProperty,_=Object.getOwnPropertyDescriptor,y=(t,e,o,r)=>{for(var n=r>1?void 0:r?_(e,o):e,c=t.length-1,h;c>=0;c--)(h=t[c])&&(n=(r?h(e,o,n):h(n))||n);return r&&n&&w(e,o,n),n},p=(t,e,o)=>{if(!e.has(t))throw TypeError("Cannot "+o)},l=(t,e,o)=>(p(t,e,"read from private field"),o?o.call(t):e.get(t)),u=(t,e,o)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,o)},f=(t,e,o,r)=>(p(t,e,"write to private field"),r?r.call(t,o):e.set(t,o),o),i,a;const C=m.createStylesheet({":host":{position:"fixed",top:"0",left:"0",zIndex:"1",width:"100%",height:"100%",transitionProperty:"opacity",transitionDuration:d.aptechkaTheme.durationShort.var},":host::before":{content:'""',position:"fixed",top:"0",left:"0",zIndex:"-1",width:"100%",height:"100%",backgroundColor:"var(--backdrop, rgba(0, 0, 0, 0.8))"},".inner":{width:"100%",height:"100%",display:"flex",alignItems:"center",justifyContent:"center",overflow:"hidden auto"},".overflow .inner":{alignItems:"flex-start"},".content":{position:"relative"},".close-button":{position:"absolute",top:"var(---close-button-top, 0.5em)",right:"var(---close-button-right, 0.5em)",background:"none",border:"none",fontFamily:"inherit",fontSize:"inherit",fontWeight:"inherit"},".close-button-default":{width:"var(---close-button-size, 1.5em)",height:"var(---close-button-size, 1.5em)",display:"flex",alignItems:"center",justifyContent:"center",transitionProperty:"transform",transitionDuration:d.aptechkaTheme.durationShort.var,willChange:"transform"},".close-button:hover .close-button-default":{transform:"scale(0.9)"},".close-button:active .close-button-default":{transform:"scale(0.7)"},".close-button-default::before, .close-button-default::after":{content:'""',position:"absolute",width:"var(---close-button-thickness, 0.1em)",height:"100%",backgroundColor:`var(--close-button-color, ${d.aptechkaTheme.colorDark.var})`},".close-button-default::before":{transform:"rotate(-45deg)"},".close-button-default::after":{transform:"rotate(45deg)"}});exports.ModalElement=class extends g.PopoverElement{constructor(){super(),u(this,i,null),u(this,a,null),b.isBrowser&&(this.openShadow(C),s.element(this,{children:s.div({class:"inner",outside:!0,children:s.div({class:"content",children:[s.element("e-popover-button",{type:"close",target:this.id,class:"close-button",children:[s.slot({name:"close-button",children:s.span({class:"close-button-default"})})]}),s.slot()]}),ref:e=>f(this,a,e)})}),f(this,i,new ResizeObserver(()=>{l(this,a).scrollHeight>l(this,a).clientHeight?this.classList.add("overflow"):this.classList.remove("overflow")})))}connectedCallback(){super.connectedCallback(),l(this,i).observe(this)}disconnectedCallback(){super.disconnectedCallback(),l(this,i).disconnect()}};i=new WeakMap;a=new WeakMap;exports.ModalElement=y([v.define("e-modal")],exports.ModalElement);
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const v=require("../custom-element/index.cjs");require("../Store-D0_rDIsE.cjs");const b=require("../browser-CpzFX2xg.cjs"),s=require("../tags-75InVOh4.cjs"),m=require("../createStylesheet-DTOK6fTn.cjs"),g=require("../popover/index.cjs"),d=require("../theme/index.cjs");var w=Object.defineProperty,_=Object.getOwnPropertyDescriptor,y=(t,e,o,r)=>{for(var n=r>1?void 0:r?_(e,o):e,c=t.length-1,h;c>=0;c--)(h=t[c])&&(n=(r?h(e,o,n):h(n))||n);return r&&n&&w(e,o,n),n},p=(t,e,o)=>{if(!e.has(t))throw TypeError("Cannot "+o)},l=(t,e,o)=>(p(t,e,"read from private field"),o?o.call(t):e.get(t)),u=(t,e,o)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,o)},f=(t,e,o,r)=>(p(t,e,"write to private field"),r?r.call(t,o):e.set(t,o),o),i,a;const C=m.createStylesheet({":host":{position:"fixed",top:"0",left:"0",zIndex:"1",width:"100%",height:"100%",transitionProperty:"opacity",transitionDuration:d.aptechkaTheme.durationShort.var},":host::before":{content:'""',position:"fixed",top:"0",left:"0",zIndex:"-1",width:"100%",height:"100%",backgroundColor:"var(--backdrop, rgba(0, 0, 0, 0.8))"},".inner":{width:"100%",height:"100%",display:"flex",alignItems:"center",justifyContent:"center",overflow:"hidden auto"},".overflow .inner":{alignItems:"flex-start"},".content":{position:"relative"},".close-button":{position:"absolute",top:"var(---close-button-top, 0.5em)",right:"var(---close-button-right, 0.5em)",background:"none",border:"none",fontFamily:"inherit",fontSize:"inherit",fontWeight:"inherit"},".close-button-default":{width:"var(---close-button-size, 1.5em)",height:"var(---close-button-size, 1.5em)",display:"flex",alignItems:"center",justifyContent:"center",transitionProperty:"transform",transitionDuration:d.aptechkaTheme.durationShort.var,willChange:"transform"},".close-button:hover .close-button-default":{transform:"scale(0.9)"},".close-button:active .close-button-default":{transform:"scale(0.7)"},".close-button-default::before, .close-button-default::after":{content:'""',position:"absolute",width:"var(---close-button-thickness, 0.1em)",height:"100%",backgroundColor:`var(--close-button-color, ${d.aptechkaTheme.colorDark.var})`},".close-button-default::before":{transform:"rotate(-45deg)"},".close-button-default::after":{transform:"rotate(45deg)"}});exports.ModalElement=class extends g.PopoverElement{constructor(){super(),u(this,i,null),u(this,a,null),b.isBrowser&&(this.openShadow(C),s.element(this,{children:s.div({class:"inner",outside:!0,children:s.div({class:"content",children:[s.element("e-popover-button",{type:"close",target:this.id,class:"close-button",children:[s.slot({name:"close-button",children:s.span({class:"close-button-default"})})]}),s.slot()]}),ref:e=>f(this,a,e)})}),f(this,i,new ResizeObserver(()=>{l(this,a).scrollHeight>l(this,a).clientHeight?this.classList.add("overflow"):this.classList.remove("overflow")})))}connectedCallback(){super.connectedCallback(),l(this,i).observe(this)}disconnectedCallback(){super.disconnectedCallback(),l(this,i).disconnect()}};i=new WeakMap;a=new WeakMap;exports.ModalElement=y([v.define("e-modal")],exports.ModalElement);
@@ -1,8 +1,8 @@
1
1
  import { define as g } from "../custom-element/index.js";
2
2
  import "../Store-JOKrNVEr.js";
3
3
  import { i as w } from "../browser-0zX67oeU.js";
4
- import { e as d, D as f, ay as u, aB as _ } from "../tags-kZqsS_nJ.js";
5
- import { c as y } from "../createStylesheet-DSgkNlUZ.js";
4
+ import { e as d, D as f, ay as u, aB as _ } from "../tags-DgRVzazL.js";
5
+ import { c as y } from "../createStylesheet-Zqf3lXhM.js";
6
6
  import { PopoverElement as C } from "../popover/index.js";
7
7
  import { aptechkaTheme as h } from "../theme/index.js";
8
8
  var k = Object.defineProperty, x = Object.getOwnPropertyDescriptor, z = (t, e, o, r) => {
@@ -0,0 +1 @@
1
+ "use strict";function s(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}function f(e){if(e===null||typeof e!="object")return e;if(e instanceof Date)return new Date(e.getTime());if(e instanceof Node)return e;const t=Array.isArray(e)?[]:{};for(const n in e)e.hasOwnProperty(n)&&(t[n]=f(e[n]));return t}function c(e,t,n=s){for(const r in t)n(t[r])?(e[r]||Object.assign(e,{[r]:{}}),c(e[r],t[r],n)):Object.assign(e,{[r]:t[r]});return e}function u(e){return e===null||typeof e=="undefined"}function i(e,t){if(typeof e!=typeof t)return!1;if([e,t].some(n=>u(n)))return e===t;if(Array.isArray(e)){const n=e.length>t.length?e:t,r=e.length>t.length?t:e;return n.every((l,y)=>i(l,r[y]))}if(typeof e!="object"||e instanceof Node||typeof e=="object"&&e.constructor.toString().startsWith("class"))return e===t;for(const n in e){if(!t.hasOwnProperty(n))return!1;if(typeof e[n]=="object"&&typeof t[n]=="object"){if(!i(e[n],t[n]))return!1}else if(e[n]!==t[n])return!1}return!0}function p(e,t){const n={};for(const r in e)t.includes(r)&&(n[r]=e[r]);return n}function a(e,t){const n={};for(const r in e)t.includes(r)||(n[r]=e[r]);return n}function o(e){var t;return typeof e=="function"&&((t=Object.getOwnPropertyDescriptor(e,"prototype"))==null?void 0:t.writable)===!1}exports.cloneDeep=f;exports.compareObjects=i;exports.isESClass=o;exports.isNullish=u;exports.isObject=s;exports.mergeDeep=c;exports.omit=a;exports.pick=p;
@@ -0,0 +1,73 @@
1
+ function c(e) {
2
+ return typeof e == "object" && e !== null && !Array.isArray(e);
3
+ }
4
+ function u(e) {
5
+ if (e === null || typeof e != "object")
6
+ return e;
7
+ if (e instanceof Date)
8
+ return new Date(e.getTime());
9
+ if (e instanceof Node)
10
+ return e;
11
+ const n = Array.isArray(e) ? [] : {};
12
+ for (const t in e)
13
+ e.hasOwnProperty(t) && (n[t] = u(e[t]));
14
+ return n;
15
+ }
16
+ function a(e, n, t = c) {
17
+ for (const r in n)
18
+ t(n[r]) ? (e[r] || Object.assign(e, { [r]: {} }), a(e[r], n[r], t)) : Object.assign(e, { [r]: n[r] });
19
+ return e;
20
+ }
21
+ function y(e) {
22
+ return e === null || typeof e == "undefined";
23
+ }
24
+ function i(e, n) {
25
+ if (typeof e != typeof n)
26
+ return !1;
27
+ if ([e, n].some((t) => y(t)))
28
+ return e === n;
29
+ if (Array.isArray(e)) {
30
+ const t = e.length > n.length ? e : n, r = e.length > n.length ? n : e;
31
+ return t.every(
32
+ (s, f) => i(s, r[f])
33
+ );
34
+ }
35
+ if (typeof e != "object" || e instanceof Node || typeof e == "object" && e.constructor.toString().startsWith("class"))
36
+ return e === n;
37
+ for (const t in e) {
38
+ if (!n.hasOwnProperty(t))
39
+ return !1;
40
+ if (typeof e[t] == "object" && typeof n[t] == "object") {
41
+ if (!i(e[t], n[t]))
42
+ return !1;
43
+ } else if (e[t] !== n[t])
44
+ return !1;
45
+ }
46
+ return !0;
47
+ }
48
+ function l(e, n) {
49
+ const t = {};
50
+ for (const r in e)
51
+ n.includes(r) && (t[r] = e[r]);
52
+ return t;
53
+ }
54
+ function p(e, n) {
55
+ const t = {};
56
+ for (const r in e)
57
+ n.includes(r) || (t[r] = e[r]);
58
+ return t;
59
+ }
60
+ function o(e) {
61
+ var n;
62
+ return typeof e == "function" && ((n = Object.getOwnPropertyDescriptor(e, "prototype")) == null ? void 0 : n.writable) === !1;
63
+ }
64
+ export {
65
+ c as a,
66
+ y as b,
67
+ u as c,
68
+ i as d,
69
+ o as i,
70
+ a as m,
71
+ p as o,
72
+ l as p
73
+ };