aptechka 0.1.5 → 0.1.6

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 (84) hide show
  1. package/lib/{Animated-CzBHCHNm.js → Animated-CJcYqJzq.js} +1 -1
  2. package/lib/{Animated-DZ_fbJmi.cjs → Animated-DyZuTEQE.cjs} +1 -1
  3. package/lib/{Damped--qBZAdEi.cjs → Damped-AHRBHNEQ.cjs} +1 -1
  4. package/lib/{Damped-Bm1kSn1f.js → Damped-Csj-9_gH.js} +1 -1
  5. package/lib/{Derived-BS2ja9qa.js → Derived-Bc88XJ8J.js} +1 -1
  6. package/lib/{Derived-CqmIkTGN.cjs → Derived-SjPdLJiZ.cjs} +1 -1
  7. package/lib/ElementConstructor-9f-12v7T.cjs +1 -0
  8. package/lib/ElementConstructor-CoKM2CTK.js +228 -0
  9. package/lib/{SourceManager-B44FUTig.js → SourceManager-BoP9RAJr.js} +1 -1
  10. package/lib/{SourceManager-D447KWpH.cjs → SourceManager-CI6NfLzW.cjs} +1 -1
  11. package/lib/Store-D0_rDIsE.cjs +1 -0
  12. package/lib/{Store-uTyReFzx.js → Store-JOKrNVEr.js} +18 -18
  13. package/lib/{Viewport-CDqiD8Ao.cjs → Viewport-COsaberc.cjs} +1 -1
  14. package/lib/{Viewport-Cj0i-H5d.js → Viewport-CXY5xcGJ.js} +1 -1
  15. package/lib/abstract-elements/index.cjs +1 -1
  16. package/lib/abstract-elements/index.js +1 -1
  17. package/lib/animation/index.cjs +1 -1
  18. package/lib/animation/index.js +2 -2
  19. package/lib/attribute/index.cjs +1 -1
  20. package/lib/attribute/index.js +1 -1
  21. package/lib/canvas/index.cjs +1 -1
  22. package/lib/canvas/index.js +3 -3
  23. package/lib/connector/index.cjs +1 -1
  24. package/lib/connector/index.d.ts +1 -0
  25. package/lib/connector/index.js +32 -31
  26. package/lib/createStylesheet-BON7aJYs.js +10 -0
  27. package/lib/{createStylesheet-ChhZFwSX.cjs → createStylesheet-uicRVW05.cjs} +1 -1
  28. package/lib/device/index.cjs +1 -1
  29. package/lib/device/index.js +1 -1
  30. package/lib/element-constructor/ElementConstructor.d.ts +4 -2
  31. package/lib/element-constructor/htmlTags.d.ts +1 -1
  32. package/lib/element-constructor/index.cjs +1 -1
  33. package/lib/element-constructor/index.js +4 -4
  34. package/lib/en3/index.cjs +1 -1
  35. package/lib/en3/index.js +2 -2
  36. package/lib/{htmlTags-CNEFIHPp.js → htmlTags-BCNUG7oK.js} +1 -1
  37. package/lib/{htmlTags-CwYHVo9n.cjs → htmlTags-BSQys9wH.cjs} +1 -1
  38. package/lib/image/index.cjs +1 -1
  39. package/lib/image/index.js +1 -1
  40. package/lib/{index-DyJhLxk8.js → index-DgtdcBEI.js} +3 -3
  41. package/lib/{index-tPw9mmLF.cjs → index-i_Ki9M-w.cjs} +1 -1
  42. package/lib/jsx/ComponentElement.d.ts +17 -0
  43. package/lib/jsx/h.d.ts +5 -4
  44. package/lib/jsx/hooks.d.ts +10 -4
  45. package/lib/jsx/index.cjs +1 -1
  46. package/lib/jsx/index.js +97 -106
  47. package/lib/jsx/type.d.ts +6 -5
  48. package/lib/ladder/index.cjs +1 -1
  49. package/lib/ladder/index.js +1 -1
  50. package/lib/media/index.cjs +1 -1
  51. package/lib/media/index.js +1 -1
  52. package/lib/modal/index.cjs +1 -1
  53. package/lib/modal/index.js +3 -3
  54. package/lib/popover/index.cjs +1 -1
  55. package/lib/popover/index.js +1 -1
  56. package/lib/scroll/index.cjs +1 -1
  57. package/lib/scroll/index.js +6 -6
  58. package/lib/select/index.cjs +1 -1
  59. package/lib/select/index.js +1 -1
  60. package/lib/source/index.cjs +1 -1
  61. package/lib/source/index.js +2 -2
  62. package/lib/store/index.cjs +1 -1
  63. package/lib/store/index.js +3 -3
  64. package/lib/studio/index.cjs +3 -3
  65. package/lib/studio/index.js +307 -288
  66. package/lib/studio/tweaker/TweakerBooleanManagerElement.d.ts +1 -1
  67. package/lib/studio/tweaker/TweakerColorManagerElement.d.ts +1 -1
  68. package/lib/studio/tweaker/TweakerFieldElement.d.ts +2 -1
  69. package/lib/studio/tweaker/TweakerLinkManagerElement.d.ts +1 -1
  70. package/lib/studio/tweaker/TweakerNumberManagerElement.d.ts +1 -1
  71. package/lib/studio/tweaker/TweakerRangeManagerElement.d.ts +1 -1
  72. package/lib/studio/tweaker/TweakerSelectManagerElement.d.ts +1 -1
  73. package/lib/studio/tweaker/TweakerStoreManagerElement.d.ts +5 -2
  74. package/lib/studio/tweaker/TweakerStringManagerElement.d.ts +1 -1
  75. package/lib/theme/index.cjs +1 -1
  76. package/lib/theme/index.js +2 -2
  77. package/lib/video/index.cjs +1 -1
  78. package/lib/video/index.js +1 -1
  79. package/package.json +1 -1
  80. package/lib/ElementConstructor-DB0xOoat.js +0 -199
  81. package/lib/ElementConstructor-v1FPLXAW.cjs +0 -1
  82. package/lib/Store-BOOfmlyv.cjs +0 -1
  83. package/lib/createStylesheet-74ZP3AZm.js +0 -8
  84. package/lib/jsx/ComponentWrapper.d.ts +0 -12
package/lib/jsx/index.js CHANGED
@@ -1,125 +1,116 @@
1
- var N = Object.defineProperty, v = Object.defineProperties;
2
- var x = Object.getOwnPropertyDescriptors;
3
- var E = Object.getOwnPropertySymbols;
4
- var D = Object.prototype.hasOwnProperty, S = Object.prototype.propertyIsEnumerable;
5
- var w = (t, e, n) => e in t ? N(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, p = (t, e) => {
6
- for (var n in e || (e = {}))
7
- D.call(e, n) && w(t, n, e[n]);
8
- if (E)
9
- for (var n of E(e))
10
- S.call(e, n) && w(t, n, e[n]);
11
- return t;
12
- }, b = (t, e) => v(t, x(e));
13
- var y = (t, e, n) => {
14
- if (!e.has(t))
15
- throw TypeError("Cannot " + n);
1
+ var j = Object.defineProperty, x = Object.defineProperties;
2
+ var F = Object.getOwnPropertyDescriptors;
3
+ var b = Object.getOwnPropertySymbols;
4
+ var L = Object.prototype.hasOwnProperty, O = Object.prototype.propertyIsEnumerable;
5
+ var f = (e, n, t) => n in e ? j(e, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[n] = t, d = (e, n) => {
6
+ for (var t in n || (n = {}))
7
+ L.call(n, t) && f(e, t, n[t]);
8
+ if (b)
9
+ for (var t of b(n))
10
+ O.call(n, t) && f(e, t, n[t]);
11
+ return e;
12
+ }, h = (e, n) => x(e, F(n));
13
+ var l = (e, n, t) => (f(e, typeof n != "symbol" ? n + "" : n, t), t), w = (e, n, t) => {
14
+ if (!n.has(e))
15
+ throw TypeError("Cannot " + t);
16
16
  };
17
- var s = (t, e, n) => (y(t, e, "read from private field"), n ? n.call(t) : e.get(t)), a = (t, e, n) => {
18
- if (e.has(t))
17
+ var E = (e, n, t) => (w(e, n, "read from private field"), t ? t.call(e) : n.get(e)), k = (e, n, t) => {
18
+ if (n.has(e))
19
19
  throw TypeError("Cannot add the same private member more than once");
20
- e instanceof WeakSet ? e.add(t) : e.set(t, n);
21
- }, l = (t, e, n, o) => (y(t, e, "write to private field"), o ? o.call(t, n) : e.set(t, n), n);
22
- import { E as g } from "../ElementConstructor-DB0xOoat.js";
23
- import { connector as j } from "../connector/index.js";
24
- import "../Store-uTyReFzx.js";
25
- import { i as C } from "../browser-0zX67oeU.js";
26
- import { c as F } from "../string-BrDhnNUL.js";
27
- import { C as W } from "../htmlTags-CNEFIHPp.js";
28
- import { g as T } from "../dom-BY7JhTx5.js";
20
+ n instanceof WeakSet ? n.add(e) : n.set(e, t);
21
+ }, v = (e, n, t, s) => (w(e, n, "write to private field"), s ? s.call(e, t) : n.set(e, t), t);
22
+ import { E as m } from "../ElementConstructor-CoKM2CTK.js";
23
+ import { g as D } from "../dom-BY7JhTx5.js";
29
24
  import "../window-resizer/index.js";
30
25
  import "../element-resizer/index.js";
26
+ import "../Store-JOKrNVEr.js";
31
27
  import "../intersector/index.js";
32
28
  import "../ticker/index.js";
33
- let h = null;
34
- var u, i, f, m, d;
35
- class A {
36
- constructor(e, n) {
37
- a(this, u, void 0);
38
- a(this, i, void 0);
39
- a(this, f, /* @__PURE__ */ new Set());
40
- a(this, m, /* @__PURE__ */ new Set());
41
- a(this, d, /* @__PURE__ */ new Set());
42
- h = this, l(this, u, e);
43
- const o = n();
44
- if (!(o instanceof Node) || o instanceof DocumentFragment ? o == null ? l(this, i, document.createComment(
45
- F(s(this, u))
46
- )) : typeof o == "object" ? l(this, i, W({
47
- style: {
48
- display: "contents"
49
- },
50
- children: o
51
- }).rootElements[0]) : l(this, i, document.createTextNode(o.toString())) : l(this, i, o), s(this, f).forEach((c) => {
52
- c(s(this, i));
53
- }), C) {
54
- const c = j.subscribe(s(this, i), {
55
- connectCallback: () => {
56
- s(this, m).forEach((r) => {
57
- const k = r(s(this, i));
58
- k && this.addDisconnectCallback(k);
59
- });
60
- },
61
- disconnectCallback: () => {
62
- s(this, d).forEach((r) => {
63
- r(s(this, i));
64
- }), s(this, m).clear(), s(this, d).clear(), s(this, f).clear(), c();
65
- },
66
- maxWaitSec: 20
67
- });
68
- }
69
- }
70
- get rootNode() {
71
- return s(this, i);
29
+ import { i as y } from "../browser-0zX67oeU.js";
30
+ let C = null;
31
+ var a;
32
+ class N extends HTMLElement {
33
+ constructor(t) {
34
+ super();
35
+ l(this, "createCallbacks", /* @__PURE__ */ new Set());
36
+ l(this, "connectCallbacks", /* @__PURE__ */ new Set());
37
+ l(this, "disconnectCallbacks", /* @__PURE__ */ new Set());
38
+ l(this, "stores", /* @__PURE__ */ new Set());
39
+ k(this, a, void 0);
40
+ C = this, v(this, a, t(this)), this.createCallbacks.forEach((s) => {
41
+ s(this);
42
+ });
72
43
  }
73
- addCreateCallback(e) {
74
- s(this, f).add(e);
44
+ connectedCallback() {
45
+ this.connectCallbacks.forEach((t) => {
46
+ t(this) && this.disconnectCallbacks.add(t);
47
+ });
75
48
  }
76
- addConnectCallback(e) {
77
- s(this, m).add(e);
78
- }
79
- addDisconnectCallback(e) {
80
- s(this, d).add(e);
49
+ disconnectedCallback() {
50
+ this.disconnectCallbacks.forEach((t) => {
51
+ t(this);
52
+ }), E(this, a).destroy(), this.disconnectCallbacks.clear(), this.connectCallbacks.clear(), this.stores.forEach((t) => t.close()), this.stores.clear();
81
53
  }
82
54
  }
83
- u = new WeakMap(), i = new WeakMap(), f = new WeakMap(), m = new WeakMap(), d = new WeakMap();
84
- function O(t, e, ...n) {
85
- if (typeof t == "function")
86
- return t.isFragment ? t(b(p({}, e), { children: n })) : new A(
87
- t.name,
88
- () => t(b(p({}, e), { children: n }))
89
- ).rootNode;
90
- const o = {
91
- shadowChildren: n
55
+ a = new WeakMap();
56
+ let r;
57
+ function g(e, n, ...t) {
58
+ if (typeof e == "function") {
59
+ if (e.isFragment)
60
+ return e(h(d({}, n), { children: t }));
61
+ const o = `component-${e.name.toLowerCase()}`;
62
+ let c = customElements.get(
63
+ o
64
+ );
65
+ return c || (c = class extends N {
66
+ constructor(i) {
67
+ super(i);
68
+ }
69
+ }, customElements.define(o, c)), new c((i) => {
70
+ const p = e(h(d({}, n), { children: t }));
71
+ let u = null;
72
+ return !r && p ? u = new m(i, {
73
+ children: p
74
+ }) : r && (r.shadow && i.attachShadow({ mode: "open" }), u = new m(
75
+ i,
76
+ r
77
+ )), r = void 0, u;
78
+ });
79
+ }
80
+ const s = {
81
+ shadowChildren: t
92
82
  };
93
- if (e)
94
- for (const c of Object.keys(e)) {
95
- const r = e[c];
96
- c.startsWith("on") ? (o.events || (o.events = {}), o.events[c.split("on")[1].toLowerCase()] = r) : c === "class" ? o.class = r : c === "style" ? o.style = r : c === "ref" ? o.ref = r : (o.attributes || (o.attributes = {}), o.attributes[c] = r);
83
+ if (n)
84
+ for (const o of Object.keys(n)) {
85
+ const c = n[o];
86
+ o.startsWith("on") ? (s.events || (s.events = {}), s.events[o.split("on")[1].toLowerCase()] = c) : o === "class" ? s.class = c : o === "style" ? s.style = c : o === "ref" ? s.ref = c : o === "shadow" ? s.shadow = !0 : (s.attributes || (s.attributes = {}), s.attributes[o] = c);
97
87
  }
98
- return new g({
99
- [t]: o
100
- }).rootElements[0];
88
+ return e === "component" ? (r = s, S({ children: t })) : new m({
89
+ [e]: s
90
+ });
101
91
  }
102
- function B({ children: t }) {
103
- const e = document.createDocumentFragment();
104
- return t && (t = Array.isArray(t) ? t : [t], t.forEach((n) => {
105
- n instanceof Node ? e.append(n) : n && e.append(document.createTextNode(n.toString()));
106
- })), e;
92
+ function S({
93
+ children: e
94
+ }) {
95
+ return new m(document.createDocumentFragment(), {
96
+ children: e
97
+ });
107
98
  }
108
- B.isFragment = !0;
109
- function U(t, e) {
110
- const n = T(t), o = /* @__PURE__ */ O(e, null);
111
- n && o instanceof Node && n.appendChild(o);
99
+ S.isFragment = !0;
100
+ function G(e, n) {
101
+ const t = D(e), s = /* @__PURE__ */ g(n, null);
102
+ t && s instanceof Node && t.appendChild(s);
112
103
  }
113
- function V(t) {
114
- C && h.addConnectCallback(t);
104
+ function I(e) {
105
+ y && C.connectCallbacks.add(e);
115
106
  }
116
- function X(t) {
117
- C && h.addDisconnectCallback(t);
107
+ function J(e) {
108
+ y && C.disconnectCallbacks.add(e);
118
109
  }
119
110
  export {
120
- B as Fragment,
121
- O as h,
122
- U as render,
123
- V as useConnect,
124
- X as useDisconnect
111
+ S as Fragment,
112
+ g as h,
113
+ G as render,
114
+ I as useConnect,
115
+ J as useDisconnect
125
116
  };
package/lib/jsx/type.d.ts CHANGED
@@ -1,16 +1,16 @@
1
- import type { ElementConstructorClass, ElementConstructorEventMap, ElementConstructorStyle, ElementConstructorTagNames } from '../element-constructor';
1
+ import type { ElementConstructor, ElementConstructorClass, ElementConstructorEventMap, ElementConstructorStyle, ElementConstructorTagNames } from '../element-constructor';
2
2
  import type { Store } from '../store';
3
3
  import type { Split } from '../utils';
4
4
  type StoreOr<T> = T | Store<T | null | undefined>;
5
5
  declare global {
6
6
  namespace JSX {
7
- type ComponentChild = Node | ComponentChild[] | string | number | boolean | undefined | null | void;
8
- type ComponentChildren = ComponentChild | ComponentChild[] | Store<any>;
7
+ type ComponentChild = Node | string | number | boolean | undefined | null | void | Store<any> | ElementConstructor;
8
+ type ComponentChildren = ComponentChild | ComponentChild[];
9
9
  interface BaseProps {
10
10
  children?: ComponentChildren;
11
11
  }
12
- type Component<TProps extends object = object> = (props?: BaseProps & TProps) => JSX.Element;
13
- type Element = ComponentChildren;
12
+ type Component<TProps extends object = object> = (props?: BaseProps & TProps) => Element;
13
+ type Element = ComponentChild;
14
14
  interface ElementAttributesProperty {
15
15
  props: any;
16
16
  }
@@ -172,6 +172,7 @@ declare global {
172
172
  itemType?: StoreOr<string>;
173
173
  itemID?: StoreOr<string>;
174
174
  itemRef?: StoreOr<string>;
175
+ shadow?: boolean;
175
176
  }
176
177
  type UnknownAttributes = {
177
178
  [key: string]: any;
@@ -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)),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-BOOfmlyv.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;
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-D0_rDIsE.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,7 +18,7 @@ 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 v } from "../Store-uTyReFzx.js";
21
+ import { S as v } from "../Store-JOKrNVEr.js";
22
22
  var l, h, a;
23
23
  class x extends v {
24
24
  constructor(e) {
@@ -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)),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-BOOfmlyv.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;
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-D0_rDIsE.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;
@@ -9,7 +9,7 @@ var o = (e, s, r) => (a(e, s, "read from private field"), r ? r.call(e) : s.get(
9
9
  }, u = (e, s, r, m) => (a(e, s, "write to private field"), m ? m.call(e, r) : s.set(e, r), r);
10
10
  import { RESIZE_ORDER as h } from "../order/index.js";
11
11
  import { windowResizer as n } from "../window-resizer/index.js";
12
- import { S as f } from "../Store-uTyReFzx.js";
12
+ import { S as f } from "../Store-JOKrNVEr.js";
13
13
  var t, i;
14
14
  class b extends f {
15
15
  constructor(r) {
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const v=require("../custom-element/index.cjs"),b=require("../ElementConstructor-v1FPLXAW.cjs"),s=require("../htmlTags-CwYHVo9n.cjs"),m=require("../createStylesheet-ChhZFwSX.cjs"),g=require("../browser-CpzFX2xg.cjs"),w=require("../popover/index.cjs"),d=require("../theme/index.cjs");var _=Object.defineProperty,y=Object.getOwnPropertyDescriptor,C=(t,e,o,r)=>{for(var n=r>1?void 0:r?y(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&&_(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 k=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 w.PopoverElement{constructor(){super(),u(this,i,null),u(this,a,null),g.isBrowser&&(this.openShadow(k),b.element(this,{shadowChildren:s.div({class:"inner",attributes:{outside:!0},children:s.div({class:"content",children:[s.custom("e-popover-button",{attributes:{type:"close",target:this.id},class:"close-button",children:[s.slot({attributes:{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=C([v.define("e-modal")],exports.ModalElement);
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const v=require("../custom-element/index.cjs"),b=require("../ElementConstructor-9f-12v7T.cjs"),s=require("../htmlTags-BSQys9wH.cjs"),m=require("../createStylesheet-uicRVW05.cjs"),g=require("../browser-CpzFX2xg.cjs"),w=require("../popover/index.cjs"),d=require("../theme/index.cjs");var _=Object.defineProperty,y=Object.getOwnPropertyDescriptor,C=(t,e,o,r)=>{for(var n=r>1?void 0:r?y(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&&_(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 k=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 w.PopoverElement{constructor(){super(),u(this,i,null),u(this,a,null),g.isBrowser&&(this.openShadow(k),b.element(this,{shadowChildren:s.div({class:"inner",attributes:{outside:!0},children:s.div({class:"content",children:[s.custom("e-popover-button",{attributes:{type:"close",target:this.id},class:"close-button",children:[s.slot({attributes:{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=C([v.define("e-modal")],exports.ModalElement);
@@ -1,7 +1,7 @@
1
1
  import { define as m } from "../custom-element/index.js";
2
- import { e as w } from "../ElementConstructor-DB0xOoat.js";
3
- import { C as d, aW as g, aw as f, az as _ } from "../htmlTags-CNEFIHPp.js";
4
- import { c as C } from "../createStylesheet-74ZP3AZm.js";
2
+ import { e as w } from "../ElementConstructor-CoKM2CTK.js";
3
+ import { C as d, aW as g, aw as f, az as _ } from "../htmlTags-BCNUG7oK.js";
4
+ import { c as C } from "../createStylesheet-BON7aJYs.js";
5
5
  import { i as y } from "../browser-0zX67oeU.js";
6
6
  import { PopoverElement as k } from "../popover/index.js";
7
7
  import { aptechkaTheme as h } from "../theme/index.js";
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const T=require("../attribute/index.cjs"),M=require("../custom-element/index.cjs"),A=require("../Store-BOOfmlyv.cjs"),q=require("../style-At6aDoqG.cjs"),x=require("../abstract-elements/index.cjs");var $=Object.defineProperty,B=Object.getOwnPropertyDescriptor,D=(t,e,r)=>e in t?$(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,b=(t,e,r,s)=>{for(var n=s>1?void 0:s?B(e,r):e,l=t.length-1,p;l>=0;l--)(p=t[l])&&(n=(s?p(e,r,n):p(n))||n);return s&&n&&$(e,r,n),n},P=(t,e,r)=>(D(t,typeof e!="symbol"?e+"":e,r),r),W=(t,e,r)=>{if(!e.has(t))throw TypeError("Cannot "+r)},i=(t,e,r)=>(W(t,e,"read from private field"),r?r.call(t):e.get(t)),o=(t,e,r)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,r)},y=(t,e,r,s)=>(W(t,e,"write to private field"),s?s.call(t,r):e.set(t,r),r),k=(t,e,r)=>(W(t,e,"access private method"),r),g,a,_,c,f,u,S,C,m,E,w,L,v;exports.PopoverElement=class extends M.CustomElement{constructor(){super(...arguments),o(this,S),o(this,w),o(this,g,-1),o(this,a,new A.Store(!1)),o(this,_,void 0),o(this,c,new T.Attribute(this,"history",!1)),o(this,f,new T.Attribute(this,"single",!1)),o(this,u,!1),P(this,"open",()=>{i(this,a).current||(i(this,a).current=!0,i(this,f).current&&(exports.PopoverElement.__opened.forEach(e=>e.close()),exports.PopoverElement.__opened=[]),exports.PopoverElement.__opened.push(this),y(this,g,exports.PopoverElement.__opened.length-1),i(this,c).current&&i(this,u)&&history.pushState("","",i(this,S,C)),clearTimeout(i(this,_)),this.classList.add("triggered"),this.style.display="block",setTimeout(()=>{addEventListener("click",i(this,m)),addEventListener("keydown",i(this,E)),this.style.opacity="1",this.classList.add("opened")}))}),P(this,"close",()=>{i(this,a).current&&(i(this,a).current=!1,exports.PopoverElement.__opened=exports.PopoverElement.__opened.filter(e=>e!==this),i(this,c).current&&history.replaceState("","",location.pathname.replace(this.id,"")),this.classList.remove("opened"),this.style.opacity="0",removeEventListener("click",i(this,m)),removeEventListener("keydown",i(this,E)),setTimeout(()=>{this.classList.remove("triggered"),this.style.display="none"},q.getElementTransitionDurationMS(this)))}),o(this,m,e=>{k(this,w,L).call(this,()=>{const r=e.composedPath();(!r.find(s=>s===this)&&!r.find(s=>s instanceof HTMLElement&&s.closest("e-popover-button"))||r[0]instanceof HTMLElement&&r[0].hasAttribute("outside"))&&this.close()})}),o(this,E,e=>{k(this,w,L).call(this,()=>{e.code==="Escape"&&this.close()})}),o(this,v,()=>{y(this,u,!1),i(this,a).current&&i(this,c).current&&!location.pathname.includes(this.id)?this.close():!i(this,a).current&&i(this,c).current&&location.pathname.includes(this.id)&&this.open(),y(this,u,!0)})}get history(){return i(this,c)}get single(){return i(this,f)}get opened(){return i(this,a)}connectedCallback(){this.style.opacity="0",this.style.display="none",addEventListener("popstate",i(this,v)),setTimeout(()=>{i(this,v).call(this)},0)}disconnectedCallback(){clearTimeout(i(this,_)),removeEventListener("popstate",i(this,v))}};g=new WeakMap;a=new WeakMap;_=new WeakMap;c=new WeakMap;f=new WeakMap;u=new WeakMap;S=new WeakSet;C=function(){return`${location.pathname}${location.pathname.endsWith("/")?"":"/"}${this.id}`};m=new WeakMap;E=new WeakMap;w=new WeakSet;L=function(t){(exports.PopoverElement.__opened[i(this,g)-1]||exports.PopoverElement.__opened.length===1)&&t()};v=new WeakMap;P(exports.PopoverElement,"__opened",[]);exports.PopoverElement=b([M.define("e-popover")],exports.PopoverElement);var I=Object.defineProperty,G=Object.getOwnPropertyDescriptor,H=(t,e,r,s)=>{for(var n=s>1?void 0:s?G(e,r):e,l=t.length-1,p;l>=0;l--)(p=t[l])&&(n=(s?p(e,r,n):p(n))||n);return s&&n&&I(e,r,n),n},O=(t,e,r)=>{if(!e.has(t))throw TypeError("Cannot "+r)},d=(t,e,r)=>(O(t,e,"read from private field"),r?r.call(t):e.get(t)),N=(t,e,r)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,r)},F=(t,e,r,s)=>(O(t,e,"write to private field"),s?s.call(t,r):e.set(t,r),r),h;exports.PopoverButtonElement=class extends x.AbstractButtonElement{constructor(){super(...arguments),N(this,h,void 0)}get popoverElement(){return d(this,h)}click(){if(d(this,h)){const e=this.getAttribute("type")||"open";e==="open"||e==="toggle"&&!d(this,h).opened.current?d(this,h).open():(e==="close"||e==="toggle"&&d(this,h).opened.current)&&d(this,h).close()}}connectedCallback(){const e=this.getAttribute("target");if(e){const r=document.querySelector(`#${e}`)||this.getRootNode().querySelector(`#${e}`);r?F(this,h,r):console.warn(this,`target ${e} not found`)}}};h=new WeakMap;exports.PopoverButtonElement=H([M.define("e-popover-button")],exports.PopoverButtonElement);
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const T=require("../attribute/index.cjs"),M=require("../custom-element/index.cjs"),A=require("../Store-D0_rDIsE.cjs"),q=require("../style-At6aDoqG.cjs"),x=require("../abstract-elements/index.cjs");var $=Object.defineProperty,B=Object.getOwnPropertyDescriptor,D=(t,e,r)=>e in t?$(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,b=(t,e,r,s)=>{for(var n=s>1?void 0:s?B(e,r):e,l=t.length-1,p;l>=0;l--)(p=t[l])&&(n=(s?p(e,r,n):p(n))||n);return s&&n&&$(e,r,n),n},P=(t,e,r)=>(D(t,typeof e!="symbol"?e+"":e,r),r),W=(t,e,r)=>{if(!e.has(t))throw TypeError("Cannot "+r)},i=(t,e,r)=>(W(t,e,"read from private field"),r?r.call(t):e.get(t)),o=(t,e,r)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,r)},y=(t,e,r,s)=>(W(t,e,"write to private field"),s?s.call(t,r):e.set(t,r),r),k=(t,e,r)=>(W(t,e,"access private method"),r),g,a,_,c,f,u,S,C,m,E,w,L,v;exports.PopoverElement=class extends M.CustomElement{constructor(){super(...arguments),o(this,S),o(this,w),o(this,g,-1),o(this,a,new A.Store(!1)),o(this,_,void 0),o(this,c,new T.Attribute(this,"history",!1)),o(this,f,new T.Attribute(this,"single",!1)),o(this,u,!1),P(this,"open",()=>{i(this,a).current||(i(this,a).current=!0,i(this,f).current&&(exports.PopoverElement.__opened.forEach(e=>e.close()),exports.PopoverElement.__opened=[]),exports.PopoverElement.__opened.push(this),y(this,g,exports.PopoverElement.__opened.length-1),i(this,c).current&&i(this,u)&&history.pushState("","",i(this,S,C)),clearTimeout(i(this,_)),this.classList.add("triggered"),this.style.display="block",setTimeout(()=>{addEventListener("click",i(this,m)),addEventListener("keydown",i(this,E)),this.style.opacity="1",this.classList.add("opened")}))}),P(this,"close",()=>{i(this,a).current&&(i(this,a).current=!1,exports.PopoverElement.__opened=exports.PopoverElement.__opened.filter(e=>e!==this),i(this,c).current&&history.replaceState("","",location.pathname.replace(this.id,"")),this.classList.remove("opened"),this.style.opacity="0",removeEventListener("click",i(this,m)),removeEventListener("keydown",i(this,E)),setTimeout(()=>{this.classList.remove("triggered"),this.style.display="none"},q.getElementTransitionDurationMS(this)))}),o(this,m,e=>{k(this,w,L).call(this,()=>{const r=e.composedPath();(!r.find(s=>s===this)&&!r.find(s=>s instanceof HTMLElement&&s.closest("e-popover-button"))||r[0]instanceof HTMLElement&&r[0].hasAttribute("outside"))&&this.close()})}),o(this,E,e=>{k(this,w,L).call(this,()=>{e.code==="Escape"&&this.close()})}),o(this,v,()=>{y(this,u,!1),i(this,a).current&&i(this,c).current&&!location.pathname.includes(this.id)?this.close():!i(this,a).current&&i(this,c).current&&location.pathname.includes(this.id)&&this.open(),y(this,u,!0)})}get history(){return i(this,c)}get single(){return i(this,f)}get opened(){return i(this,a)}connectedCallback(){this.style.opacity="0",this.style.display="none",addEventListener("popstate",i(this,v)),setTimeout(()=>{i(this,v).call(this)},0)}disconnectedCallback(){clearTimeout(i(this,_)),removeEventListener("popstate",i(this,v))}};g=new WeakMap;a=new WeakMap;_=new WeakMap;c=new WeakMap;f=new WeakMap;u=new WeakMap;S=new WeakSet;C=function(){return`${location.pathname}${location.pathname.endsWith("/")?"":"/"}${this.id}`};m=new WeakMap;E=new WeakMap;w=new WeakSet;L=function(t){(exports.PopoverElement.__opened[i(this,g)-1]||exports.PopoverElement.__opened.length===1)&&t()};v=new WeakMap;P(exports.PopoverElement,"__opened",[]);exports.PopoverElement=b([M.define("e-popover")],exports.PopoverElement);var I=Object.defineProperty,G=Object.getOwnPropertyDescriptor,H=(t,e,r,s)=>{for(var n=s>1?void 0:s?G(e,r):e,l=t.length-1,p;l>=0;l--)(p=t[l])&&(n=(s?p(e,r,n):p(n))||n);return s&&n&&I(e,r,n),n},O=(t,e,r)=>{if(!e.has(t))throw TypeError("Cannot "+r)},d=(t,e,r)=>(O(t,e,"read from private field"),r?r.call(t):e.get(t)),N=(t,e,r)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,r)},F=(t,e,r,s)=>(O(t,e,"write to private field"),s?s.call(t,r):e.set(t,r),r),h;exports.PopoverButtonElement=class extends x.AbstractButtonElement{constructor(){super(...arguments),N(this,h,void 0)}get popoverElement(){return d(this,h)}click(){if(d(this,h)){const e=this.getAttribute("type")||"open";e==="open"||e==="toggle"&&!d(this,h).opened.current?d(this,h).open():(e==="close"||e==="toggle"&&d(this,h).opened.current)&&d(this,h).close()}}connectedCallback(){const e=this.getAttribute("target");if(e){const r=document.querySelector(`#${e}`)||this.getRootNode().querySelector(`#${e}`);r?F(this,h,r):console.warn(this,`target ${e} not found`)}}};h=new WeakMap;exports.PopoverButtonElement=H([M.define("e-popover-button")],exports.PopoverButtonElement);
@@ -1,6 +1,6 @@
1
1
  import { Attribute as T } from "../attribute/index.js";
2
2
  import { CustomElement as x, define as P } from "../custom-element/index.js";
3
- import { S as I } from "../Store-uTyReFzx.js";
3
+ import { S as I } from "../Store-JOKrNVEr.js";
4
4
  import { g as q } from "../style-j2TwriJ_.js";
5
5
  import { AbstractButtonElement as B } from "../abstract-elements/index.js";
6
6
  var O = Object.defineProperty, G = Object.getOwnPropertyDescriptor, H = (e, t, i) => t in e ? O(e, t, { enumerable: !0, configurable: !0, writable: !0, value: i }) : e[t] = i, N = (e, t, i, r) => {
@@ -1 +1 @@
1
- "use strict";var Ct=(i,e,s)=>{if(!e.has(i))throw TypeError("Cannot "+s)};var h=(i,e,s)=>(Ct(i,e,"read from private field"),s?s.call(i):e.get(i)),$=(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)},O=(i,e,s,n)=>(Ct(i,e,"write to private field"),n?n.call(i,s):e.set(i,s),s);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Tt=require("../Store-BOOfmlyv.cjs"),Dt=require("../Derived-CqmIkTGN.cjs"),At=require("../browser-CpzFX2xg.cjs"),V=require("../layout-8ryRAMGJ.cjs"),zt=require("../math-GDWEqu7y.cjs");require("../ticker/index.cjs");const Vt=require("../Damped--qBZAdEi.cjs"),x=require("../attribute/index.cjs"),Mt=require("../WheelControls-CfDeGCOU.cjs"),wt=require("../custom-element/index.cjs"),xt=require("../order/index.cjs"),pt=require("../window-resizer/index.cjs"),I=require("../scroll-entries/index.cjs"),Lt=require("../ElementConstructor-v1FPLXAW.cjs"),B=require("../htmlTags-CwYHVo9n.cjs"),Ot=require("../createStylesheet-ChhZFwSX.cjs"),It=require("../dom-qY2LdCVL.cjs");var Ht=Object.defineProperty,Ft=Object.getOwnPropertyDescriptor,Bt=(i,e,s,n)=>{for(var r=n>1?void 0:n?Ft(e,s):e,d=i.length-1,w;d>=0;d--)(w=i[d])&&(r=(n?w(e,s,r):w(r))||r);return n&&r&&Ht(e,s,r),r},yt=(i,e,s)=>{if(!e.has(i))throw TypeError("Cannot "+s)},t=(i,e,s)=>(yt(i,e,"read from private field"),s?s.call(i):e.get(i)),l=(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)},m=(i,e,s,n)=>(yt(i,e,"write to private field"),n?n.call(i,s):e.set(i,s),s),f=(i,e,s)=>(yt(i,e,"access private method"),s),a,M,T,q,D,X,y,Y,j,tt,u,dt,c,et,st,_,p,k,H,b,G,R,N,ft,F,U,mt,kt,bt,Wt,it,vt,rt,_t,P,gt,St,Rt,nt,ht,Et,S,g,L,W;class Gt{constructor(e,s){$(this,S,void 0);$(this,g,void 0);$(this,L,0);$(this,W,0);O(this,S,e),O(this,g,s),I.scrollEntries.register(h(this,S))}get size(){return h(this,L)}get position(){return h(this,W)}destroy(){I.scrollEntries.unregister(h(this,S)),h(this,S).style.transform=""}resize(){O(this,L,h(this,g).vertical?h(this,S).offsetHeight:h(this,S).offsetWidth),O(this,W,h(this,g).vertical?V.getCumulativeOffsetTop(h(this,S)):V.getCumulativeOffsetLeft(h(this,S))),O(this,W,h(this,W)-h(this,g).contentPosition)}transform(){let e=0;h(this,g).infiniteAttribute.current&&h(this,g).overscroll&&h(this,W)+h(this,L)<h(this,g).currentScrollValue&&(e=h(this,g).distance*-1),I.scrollEntries.update(h(this,S),h(this,g).axisAttibute.current,e);const s=h(this,g).viewportSize-h(this,L),n=zt.clamp(h(this,g).currentScrollValue+e,h(this,W)-h(this,g).viewportSize-s,h(this,W)+h(this,L)+s);h(this,g).vertical?h(this,S).style.transform=`translate3d(0px, ${n*-1}px, 0px)`:h(this,S).style.transform=`translate3d(${n*-1}px, 0px, 0px)`}}S=new WeakMap,g=new WeakMap,L=new WeakMap,W=new WeakMap;const Kt=Ot.createStylesheet({":host":{position:"relative",width:"100%",height:"100%",display:"block",outline:"none"},':host([hibernated="true"])':{display:"contents"},".static":{position:"absolute",top:"0",left:"0",zIndex:"1",width:"100%",height:"100%"},".content":{position:"relative",display:"flex",width:"100%",height:"100%",gap:"var(--gap, 0px)"},':host([hibernated="true"]) .content':{display:"contents"},"::slotted(*)":{flexShrink:"0"}});exports.ScrollElement=class extends wt.CustomElement{constructor(e){if(super(),l(this,N),l(this,F),l(this,mt),l(this,bt),l(this,it),l(this,rt),l(this,St),l(this,ht),l(this,a,null),l(this,M,new x.Attribute(this,"axis","y")),l(this,T,new x.Attribute(this,"pages",0,{validate:s=>Math.max(0,s-1)})),l(this,q,new x.Attribute(this,"split",!1)),l(this,D,new x.Attribute(this,"sectional",!1)),l(this,X,new x.Attribute(this,"wheel-max-delta",!1)),l(this,y,new x.Attribute(this,"infinite",!1)),l(this,Y,new x.Attribute(this,"damping",.03)),l(this,j,new x.Attribute(this,"disabled",!1)),l(this,tt,new x.Attribute(this,"hibernated",!1)),l(this,u,null),l(this,dt,null),l(this,c,[]),l(this,et,0),l(this,st,0),l(this,_,0),l(this,p,0),l(this,k,null),l(this,H,null),l(this,b,new Tt.Store(0)),l(this,G,0),l(this,R,0),l(this,P,()=>{const s=this.currentScrollValue/t(this,p);if(m(this,et,this.vertical?V.getCumulativeOffsetTop(this):V.getCumulativeOffsetLeft(this)),m(this,st,this.vertical?V.getCumulativeOffsetTop(t(this,u)):V.getCumulativeOffsetLeft(t(this,u))),m(this,_,this.vertical?this.offsetHeight:this.offsetWidth),t(this,T).current){m(this,p,t(this,_)*t(this,T).current);const n=t(this,p)+t(this,_);this.vertical?(t(this,u).style.width=n+"px",t(this,u).style.height="100%"):(t(this,u).style.height=n+"px",t(this,u).style.width="100%")}else this.vertical?(t(this,u).style.width="100%",t(this,u).style.height="max-content",m(this,p,t(this,u).offsetHeight-t(this,_))):(t(this,u).style.width="max-content",t(this,u).style.height="100%",m(this,p,t(this,u).offsetWidth-t(this,_)));if(!t(this,y).current){const n=getComputedStyle(this);m(this,p,t(this,p)+(this.vertical?parseFloat(n.paddingBlockStart)+parseFloat(n.paddingBlockEnd):parseFloat(n.paddingInlineStart)+parseFloat(n.paddingInlineEnd))),t(this,a).max.current=t(this,p)}if(t(this,c).forEach(n=>{n.resize(),n.transform()}),t(this,y).current&&t(this,c).length){const n=t(this,c)[t(this,c).length-1],r=n.position+n.size-t(this,_),d=t(this,p)-r;m(this,R,n.position+n.size+d)}else m(this,R,t(this,p));if(t(this,D).current&&t(this,c).length){const n=t(this,c)[t(this,b).current];t(this,a).set(n.position,!0)}else t(this,a).set(s*t(this,p),!0)}),l(this,gt,()=>{const s=this.currentScrollValue;if(m(this,G,Math.max(0,s-t(this,p))),t(this,c).length){let n=0;for(let r=0;r<t(this,c).length;r++){const d=t(this,c)[r];d.transform(),this.targetScrollValue+this.viewportSize/2>=d.position&&(n=r)}t(this,b).current=n}else this.vertical?t(this,u).style.transform=`translate3d(0px, ${s*-1}px, 0px)`:t(this,u).style.transform=`translate3d(${s*-1}px, 0px, 0px)`;I.scrollEntries.update(this,t(this,M).current,s)}),l(this,nt,s=>{if(typeof s=="number")if(t(this,D).current){const n=Math.sign(s);t(this,c).length?this.shiftSections(n):t(this,a).shift(n*t(this,_))}else t(this,a).shift(s);else s==="min"?t(this,a).set(t(this,a).min.current):s==="max"&&t(this,a).set(t(this,a).delta)}),At.isBrowser){let s,n=e||this.getAttribute("name");n&&(s={name:n}),m(this,a,new Vt.Damped({damping:.01,min:0,order:xt.TICK_ORDER.SCROLL,passport:s})),this.openShadow(Kt),Lt.element(this,{attributes:{tabIndex:0},shadowChildren:[B.div({class:"static",children:[B.slot({attributes:{name:"static"}})]}),B.div({class:"content",children:[B.slot({ref:r=>m(this,dt,r)})],style:{flexDirection:new Dt.Derived(t(this,M),r=>r==="x"?"row":"column")},ref:r=>m(this,u,r)})]}),m(this,k,new Mt.WheelControls({element:this})),t(this,k).changeEvent.subscribe(t(this,nt)),m(this,H,new Mt.KeyboardControls({element:this})),t(this,H).changeEvent.subscribe(t(this,nt)),t(this,M).subscribe(({current:r})=>{t(this,u).style.flexDirection=r==="x"?"row":"column",t(this,k).axis=t(this,X).current?"max":r,this.isConnected&&t(this,P).call(this)}),t(this,X).subscribe(r=>{t(this,k).axis=r.current?"max":t(this,M).current}),t(this,T).subscribe(()=>{this.isConnected&&t(this,P).call(this)}),t(this,q).subscribe(({current:r})=>{this.isConnected&&(r?f(this,N,ft).call(this):f(this,F,U).call(this))}),t(this,D).subscribe(r=>{t(this,b).current=0,t(this,k).debounce=r.current,t(this,a).reset(),this.isConnected&&(r.current&&!r.previous?f(this,N,ft).call(this):!r.current&&r.previous&&f(this,F,U).call(this))}),t(this,y).subscribe(r=>{r.current?(this.isConnected&&(t(this,c).length||(t(this,q).current=!0)),t(this,c).length&&(t(this,a).max.current=1/0,t(this,a).min.current=-1/0)):(m(this,G,0),t(this,a).max.current=t(this,p),t(this,a).min.current=0)}),t(this,Y).subscribe(r=>{t(this,a).damping=r.current}),t(this,j).subscribe(r=>{r.current&&!r.previous?f(this,mt,kt).call(this):!r.current&&r.previous&&f(this,bt,Wt).call(this)}),t(this,tt).subscribe(r=>{r.current&&!r.previous?f(this,it,vt).call(this):!r.current&&r.previous&&f(this,rt,_t).call(this)})}}get currentScrollValue(){return f(this,ht,Et).call(this,"current")}get targetScrollValue(){return f(this,ht,Et).call(this,"target")}get damped(){return t(this,a)}get dampedAttibute(){return t(this,a)}get axisAttibute(){return t(this,M)}get pagesAttibute(){return t(this,T)}get splitAttibute(){return t(this,q)}get sectionalAttibute(){return t(this,D)}get infiniteAttribute(){return t(this,y)}get dampingAttibute(){return t(this,Y)}get disabledAttibute(){return t(this,j)}get hibernatedAttibute(){return t(this,tt)}get contentElement(){return t(this,u)}get position(){return t(this,et)}get contentPosition(){return t(this,st)}get viewportSize(){return t(this,_)}get scrollSize(){return t(this,p)}get counter(){return t(this,b)}get distance(){return t(this,R)}get overscroll(){return t(this,G)}get vertical(){return t(this,M).current==="y"}get currentProgress(){return this.currentScrollValue/t(this,R)}get targetProgress(){return this.targetScrollValue/t(this,R)}scrollToSection(e,s="smooth"){if(!t(this,c).length)return;const n=t(this,b).current;f(this,St,Rt).call(this,e);const r=t(this,c)[n],d=t(this,c)[t(this,b).current];if(r&&d){let w=0;const Q=t(this,c).length-1;t(this,y).current?t(this,b).current===0&&n===Q?w=t(this,p)+t(this,_)-r.position:t(this,b).current===Q&&n===0?w=d.position-(t(this,p)+t(this,_)):w=d.position-r.position:w=d.position-r.position,t(this,a).shift(w,s==="instant")}}shiftSections(e,s="smooth"){t(this,c).length&&this.scrollToSection(t(this,b).current+e,s)}connectedCallback(){f(this,rt,_t).call(this)}disconnectedCallback(){f(this,it,vt).call(this)}};a=new WeakMap;M=new WeakMap;T=new WeakMap;q=new WeakMap;D=new WeakMap;X=new WeakMap;y=new WeakMap;Y=new WeakMap;j=new WeakMap;tt=new WeakMap;u=new WeakMap;dt=new WeakMap;c=new WeakMap;et=new WeakMap;st=new WeakMap;_=new WeakMap;p=new WeakMap;k=new WeakMap;H=new WeakMap;b=new WeakMap;G=new WeakMap;R=new WeakMap;N=new WeakSet;ft=function(){f(this,F,U).call(this),t(this,dt).assignedElements().forEach(i=>{i instanceof HTMLElement&&t(this,c).push(new Gt(i,this))}),t(this,u).style.transform="",t(this,P).call(this)};F=new WeakSet;U=function(){t(this,c).forEach(i=>{i.destroy()}),m(this,c,[])};mt=new WeakSet;kt=function(){t(this,a).unsubscribe(t(this,gt)),t(this,a).unlistenAnimationFrame(),t(this,k).disconnect(),t(this,H).disconnect()};bt=new WeakSet;Wt=function(){t(this,a).subscribe(t(this,gt)),t(this,k).connect(),t(this,H).connect()};it=new WeakSet;vt=function(){pt.windowResizer.unsubscribe(t(this,P)),t(this,a).reset(),f(this,mt,kt).call(this),t(this,u).style.transform="",t(this,q).current&&f(this,F,U).call(this),I.scrollEntries.unregister(this)};rt=new WeakSet;_t=function(){t(this,q).current&&f(this,N,ft).call(this),I.scrollEntries.register(this),pt.windowResizer.subscribe(t(this,P),xt.RESIZE_ORDER.SCROLL),f(this,bt,Wt).call(this)};P=new WeakMap;gt=new WeakMap;St=new WeakSet;Rt=function(i){t(this,y).current?(t(this,b).current=i%t(this,c).length,t(this,b).current=t(this,b).current<0?t(this,c).length+t(this,b).current:t(this,b).current):t(this,b).current=zt.clamp(i,0,t(this,c).length-1)};nt=new WeakMap;ht=new WeakSet;Et=function(i="current"){if(t(this,y).current&&t(this,c).length){const e=t(this,a)[i]%(t(this,p)+t(this,_));return e<0?t(this,p)+e+t(this,_):e}else return t(this,a)[i]};exports.ScrollElement=Bt([wt.define("e-scroll")],exports.ScrollElement);var J;class Zt extends wt.CustomElement{constructor(){super(...arguments);$(this,J,null)}get scrollElement(){return h(this,J)}connectedCallback(){const s=It.findParentElement(this,exports.ScrollElement);s instanceof exports.ScrollElement?O(this,J,s):console.error(this,"e-scroll not found")}}J=new WeakMap;var Nt=Object.defineProperty,Ut=Object.getOwnPropertyDescriptor,Jt=(i,e,s,n)=>{for(var r=n>1?void 0:n?Ut(e,s):e,d=i.length-1,w;d>=0;d--)(w=i[d])&&(r=(n?w(e,s,r):w(r))||r);return n&&r&&Nt(e,s,r),r},qt=(i,e,s)=>{if(!e.has(i))throw TypeError("Cannot "+s)},o=(i,e,s)=>(qt(i,e,"read from private field"),s?s.call(i):e.get(i)),E=(i,e,s)=>{if(e.has(i))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(i):e.set(i,s)},C=(i,e,s,n)=>(qt(i,e,"write to private field"),n?n.call(i,s):e.set(i,s),s),lt,v,A,z,K,Z,ot,at,ct,ut;const Qt=Ot.createStylesheet({":host":{display:"inline-block",zIndex:"1",backgroundColor:"#efefef"},':host([axis="y"])':{position:"absolute",right:"0",top:"0",width:"1vmin",height:"100%"},':host([axis="x"])':{position:"absolute",left:"0",bottom:"0",width:"100%",height:"1vmin"},".default-thumb":{backgroundColor:"#181818",borderRadius:"1vmin",touchAction:"none"},"::slotted(*)":{touchAction:"none"}});exports.ScrollbarElement=class extends Zt{constructor(){super(),E(this,lt,null),E(this,v,null),E(this,A,!1),E(this,z,0),E(this,K,0),E(this,Z,0),E(this,ot,()=>{C(this,A,this.offsetWidth>this.offsetHeight);const e=o(this,A)?this.offsetWidth:this.offsetHeight;C(this,z,e/((this.scrollElement.scrollSize+this.scrollElement.viewportSize)/e)),C(this,z,Math.max(o(this,z),30)),o(this,A)?(o(this,v).style.width=o(this,z)+"px",o(this,v).style.height="100%"):(o(this,v).style.width="100%",o(this,v).style.height=o(this,z)+"px"),C(this,K,e-o(this,z)),this.scrollElement.scrollSize||(this.style.display="none")}),E(this,at,()=>{C(this,Z,this.scrollElement.currentProgress*o(this,K)),o(this,A)?o(this,v).style.transform=`translate3d(${o(this,Z)}px, 0px, 0px)`:o(this,v).style.transform=`translate3d(0px, ${o(this,Z)}px, 0px)`}),E(this,ct,()=>{this.setAttribute("axis",this.scrollElement.axisAttibute.current)}),E(this,ut,e=>{const s=w=>{const Q=o(this,A)?w.x:w.y,Pt=this.scrollElement.distance/o(this,K),$t=(Q-d)*Pt;this.scrollElement.damped.set(r+$t)},n=()=>{removeEventListener("pointermove",s),removeEventListener("pointerup",n),removeEventListener("touchend",n)};addEventListener("pointermove",s),addEventListener("pointerup",n),addEventListener("touchend",n);const r=this.scrollElement.damped.target,d=o(this,A)?e.x:e.y}),At.isBrowser&&(this.openShadow(Qt),Lt.element(this,{shadowChildren:[B.slot({ref:e=>C(this,lt,e)})]}))}get thumbElement(){return o(this,v)}connectedCallback(){super.connectedCallback();const e=o(this,lt).assignedElements()[0];e instanceof HTMLElement?C(this,v,e):(C(this,v,document.createElement("div")),o(this,v).classList.add("default-thumb"),this.shadowRoot.appendChild(o(this,v))),o(this,v).addEventListener("pointerdown",o(this,ut)),pt.windowResizer.subscribe(o(this,ot),xt.RESIZE_ORDER.SCROLL+1),this.scrollElement.damped.subscribe(o(this,at)),this.scrollElement.axisAttibute.subscribe(o(this,ct))}disconnectedCallback(){o(this,v).removeEventListener("pointerdown",o(this,ut)),pt.windowResizer.unsubscribe(o(this,ot)),this.scrollElement.damped.unsubscribe(o(this,at)),this.scrollElement.axisAttibute.unsubscribe(o(this,ct))}};lt=new WeakMap;v=new WeakMap;A=new WeakMap;z=new WeakMap;K=new WeakMap;Z=new WeakMap;ot=new WeakMap;at=new WeakMap;ct=new WeakMap;ut=new WeakMap;exports.ScrollbarElement=Jt([wt.define("e-scrollbar")],exports.ScrollbarElement);
1
+ "use strict";var Ct=(i,e,s)=>{if(!e.has(i))throw TypeError("Cannot "+s)};var h=(i,e,s)=>(Ct(i,e,"read from private field"),s?s.call(i):e.get(i)),$=(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)},O=(i,e,s,n)=>(Ct(i,e,"write to private field"),n?n.call(i,s):e.set(i,s),s);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Tt=require("../Store-D0_rDIsE.cjs"),Dt=require("../Derived-SjPdLJiZ.cjs"),At=require("../browser-CpzFX2xg.cjs"),V=require("../layout-8ryRAMGJ.cjs"),zt=require("../math-GDWEqu7y.cjs");require("../ticker/index.cjs");const Vt=require("../Damped-AHRBHNEQ.cjs"),x=require("../attribute/index.cjs"),Mt=require("../WheelControls-CfDeGCOU.cjs"),wt=require("../custom-element/index.cjs"),xt=require("../order/index.cjs"),pt=require("../window-resizer/index.cjs"),I=require("../scroll-entries/index.cjs"),Lt=require("../ElementConstructor-9f-12v7T.cjs"),B=require("../htmlTags-BSQys9wH.cjs"),Ot=require("../createStylesheet-uicRVW05.cjs"),It=require("../dom-qY2LdCVL.cjs");var Ht=Object.defineProperty,Ft=Object.getOwnPropertyDescriptor,Bt=(i,e,s,n)=>{for(var r=n>1?void 0:n?Ft(e,s):e,d=i.length-1,w;d>=0;d--)(w=i[d])&&(r=(n?w(e,s,r):w(r))||r);return n&&r&&Ht(e,s,r),r},yt=(i,e,s)=>{if(!e.has(i))throw TypeError("Cannot "+s)},t=(i,e,s)=>(yt(i,e,"read from private field"),s?s.call(i):e.get(i)),l=(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)},m=(i,e,s,n)=>(yt(i,e,"write to private field"),n?n.call(i,s):e.set(i,s),s),f=(i,e,s)=>(yt(i,e,"access private method"),s),a,M,T,q,D,X,y,Y,j,tt,u,dt,c,et,st,_,p,k,H,b,G,R,N,ft,F,U,mt,kt,bt,Wt,it,vt,rt,_t,P,gt,St,Rt,nt,ht,Et,S,g,L,W;class Gt{constructor(e,s){$(this,S,void 0);$(this,g,void 0);$(this,L,0);$(this,W,0);O(this,S,e),O(this,g,s),I.scrollEntries.register(h(this,S))}get size(){return h(this,L)}get position(){return h(this,W)}destroy(){I.scrollEntries.unregister(h(this,S)),h(this,S).style.transform=""}resize(){O(this,L,h(this,g).vertical?h(this,S).offsetHeight:h(this,S).offsetWidth),O(this,W,h(this,g).vertical?V.getCumulativeOffsetTop(h(this,S)):V.getCumulativeOffsetLeft(h(this,S))),O(this,W,h(this,W)-h(this,g).contentPosition)}transform(){let e=0;h(this,g).infiniteAttribute.current&&h(this,g).overscroll&&h(this,W)+h(this,L)<h(this,g).currentScrollValue&&(e=h(this,g).distance*-1),I.scrollEntries.update(h(this,S),h(this,g).axisAttibute.current,e);const s=h(this,g).viewportSize-h(this,L),n=zt.clamp(h(this,g).currentScrollValue+e,h(this,W)-h(this,g).viewportSize-s,h(this,W)+h(this,L)+s);h(this,g).vertical?h(this,S).style.transform=`translate3d(0px, ${n*-1}px, 0px)`:h(this,S).style.transform=`translate3d(${n*-1}px, 0px, 0px)`}}S=new WeakMap,g=new WeakMap,L=new WeakMap,W=new WeakMap;const Kt=Ot.createStylesheet({":host":{position:"relative",width:"100%",height:"100%",display:"block",outline:"none"},':host([hibernated="true"])':{display:"contents"},".static":{position:"absolute",top:"0",left:"0",zIndex:"1",width:"100%",height:"100%"},".content":{position:"relative",display:"flex",width:"100%",height:"100%",gap:"var(--gap, 0px)"},':host([hibernated="true"]) .content':{display:"contents"},"::slotted(*)":{flexShrink:"0"}});exports.ScrollElement=class extends wt.CustomElement{constructor(e){if(super(),l(this,N),l(this,F),l(this,mt),l(this,bt),l(this,it),l(this,rt),l(this,St),l(this,ht),l(this,a,null),l(this,M,new x.Attribute(this,"axis","y")),l(this,T,new x.Attribute(this,"pages",0,{validate:s=>Math.max(0,s-1)})),l(this,q,new x.Attribute(this,"split",!1)),l(this,D,new x.Attribute(this,"sectional",!1)),l(this,X,new x.Attribute(this,"wheel-max-delta",!1)),l(this,y,new x.Attribute(this,"infinite",!1)),l(this,Y,new x.Attribute(this,"damping",.03)),l(this,j,new x.Attribute(this,"disabled",!1)),l(this,tt,new x.Attribute(this,"hibernated",!1)),l(this,u,null),l(this,dt,null),l(this,c,[]),l(this,et,0),l(this,st,0),l(this,_,0),l(this,p,0),l(this,k,null),l(this,H,null),l(this,b,new Tt.Store(0)),l(this,G,0),l(this,R,0),l(this,P,()=>{const s=this.currentScrollValue/t(this,p);if(m(this,et,this.vertical?V.getCumulativeOffsetTop(this):V.getCumulativeOffsetLeft(this)),m(this,st,this.vertical?V.getCumulativeOffsetTop(t(this,u)):V.getCumulativeOffsetLeft(t(this,u))),m(this,_,this.vertical?this.offsetHeight:this.offsetWidth),t(this,T).current){m(this,p,t(this,_)*t(this,T).current);const n=t(this,p)+t(this,_);this.vertical?(t(this,u).style.width=n+"px",t(this,u).style.height="100%"):(t(this,u).style.height=n+"px",t(this,u).style.width="100%")}else this.vertical?(t(this,u).style.width="100%",t(this,u).style.height="max-content",m(this,p,t(this,u).offsetHeight-t(this,_))):(t(this,u).style.width="max-content",t(this,u).style.height="100%",m(this,p,t(this,u).offsetWidth-t(this,_)));if(!t(this,y).current){const n=getComputedStyle(this);m(this,p,t(this,p)+(this.vertical?parseFloat(n.paddingBlockStart)+parseFloat(n.paddingBlockEnd):parseFloat(n.paddingInlineStart)+parseFloat(n.paddingInlineEnd))),t(this,a).max.current=t(this,p)}if(t(this,c).forEach(n=>{n.resize(),n.transform()}),t(this,y).current&&t(this,c).length){const n=t(this,c)[t(this,c).length-1],r=n.position+n.size-t(this,_),d=t(this,p)-r;m(this,R,n.position+n.size+d)}else m(this,R,t(this,p));if(t(this,D).current&&t(this,c).length){const n=t(this,c)[t(this,b).current];t(this,a).set(n.position,!0)}else t(this,a).set(s*t(this,p),!0)}),l(this,gt,()=>{const s=this.currentScrollValue;if(m(this,G,Math.max(0,s-t(this,p))),t(this,c).length){let n=0;for(let r=0;r<t(this,c).length;r++){const d=t(this,c)[r];d.transform(),this.targetScrollValue+this.viewportSize/2>=d.position&&(n=r)}t(this,b).current=n}else this.vertical?t(this,u).style.transform=`translate3d(0px, ${s*-1}px, 0px)`:t(this,u).style.transform=`translate3d(${s*-1}px, 0px, 0px)`;I.scrollEntries.update(this,t(this,M).current,s)}),l(this,nt,s=>{if(typeof s=="number")if(t(this,D).current){const n=Math.sign(s);t(this,c).length?this.shiftSections(n):t(this,a).shift(n*t(this,_))}else t(this,a).shift(s);else s==="min"?t(this,a).set(t(this,a).min.current):s==="max"&&t(this,a).set(t(this,a).delta)}),At.isBrowser){let s,n=e||this.getAttribute("name");n&&(s={name:n}),m(this,a,new Vt.Damped({damping:.01,min:0,order:xt.TICK_ORDER.SCROLL,passport:s})),this.openShadow(Kt),Lt.element(this,{attributes:{tabIndex:0},shadowChildren:[B.div({class:"static",children:[B.slot({attributes:{name:"static"}})]}),B.div({class:"content",children:[B.slot({ref:r=>m(this,dt,r)})],style:{flexDirection:new Dt.Derived(t(this,M),r=>r==="x"?"row":"column")},ref:r=>m(this,u,r)})]}),m(this,k,new Mt.WheelControls({element:this})),t(this,k).changeEvent.subscribe(t(this,nt)),m(this,H,new Mt.KeyboardControls({element:this})),t(this,H).changeEvent.subscribe(t(this,nt)),t(this,M).subscribe(({current:r})=>{t(this,u).style.flexDirection=r==="x"?"row":"column",t(this,k).axis=t(this,X).current?"max":r,this.isConnected&&t(this,P).call(this)}),t(this,X).subscribe(r=>{t(this,k).axis=r.current?"max":t(this,M).current}),t(this,T).subscribe(()=>{this.isConnected&&t(this,P).call(this)}),t(this,q).subscribe(({current:r})=>{this.isConnected&&(r?f(this,N,ft).call(this):f(this,F,U).call(this))}),t(this,D).subscribe(r=>{t(this,b).current=0,t(this,k).debounce=r.current,t(this,a).reset(),this.isConnected&&(r.current&&!r.previous?f(this,N,ft).call(this):!r.current&&r.previous&&f(this,F,U).call(this))}),t(this,y).subscribe(r=>{r.current?(this.isConnected&&(t(this,c).length||(t(this,q).current=!0)),t(this,c).length&&(t(this,a).max.current=1/0,t(this,a).min.current=-1/0)):(m(this,G,0),t(this,a).max.current=t(this,p),t(this,a).min.current=0)}),t(this,Y).subscribe(r=>{t(this,a).damping=r.current}),t(this,j).subscribe(r=>{r.current&&!r.previous?f(this,mt,kt).call(this):!r.current&&r.previous&&f(this,bt,Wt).call(this)}),t(this,tt).subscribe(r=>{r.current&&!r.previous?f(this,it,vt).call(this):!r.current&&r.previous&&f(this,rt,_t).call(this)})}}get currentScrollValue(){return f(this,ht,Et).call(this,"current")}get targetScrollValue(){return f(this,ht,Et).call(this,"target")}get damped(){return t(this,a)}get dampedAttibute(){return t(this,a)}get axisAttibute(){return t(this,M)}get pagesAttibute(){return t(this,T)}get splitAttibute(){return t(this,q)}get sectionalAttibute(){return t(this,D)}get infiniteAttribute(){return t(this,y)}get dampingAttibute(){return t(this,Y)}get disabledAttibute(){return t(this,j)}get hibernatedAttibute(){return t(this,tt)}get contentElement(){return t(this,u)}get position(){return t(this,et)}get contentPosition(){return t(this,st)}get viewportSize(){return t(this,_)}get scrollSize(){return t(this,p)}get counter(){return t(this,b)}get distance(){return t(this,R)}get overscroll(){return t(this,G)}get vertical(){return t(this,M).current==="y"}get currentProgress(){return this.currentScrollValue/t(this,R)}get targetProgress(){return this.targetScrollValue/t(this,R)}scrollToSection(e,s="smooth"){if(!t(this,c).length)return;const n=t(this,b).current;f(this,St,Rt).call(this,e);const r=t(this,c)[n],d=t(this,c)[t(this,b).current];if(r&&d){let w=0;const Q=t(this,c).length-1;t(this,y).current?t(this,b).current===0&&n===Q?w=t(this,p)+t(this,_)-r.position:t(this,b).current===Q&&n===0?w=d.position-(t(this,p)+t(this,_)):w=d.position-r.position:w=d.position-r.position,t(this,a).shift(w,s==="instant")}}shiftSections(e,s="smooth"){t(this,c).length&&this.scrollToSection(t(this,b).current+e,s)}connectedCallback(){f(this,rt,_t).call(this)}disconnectedCallback(){f(this,it,vt).call(this)}};a=new WeakMap;M=new WeakMap;T=new WeakMap;q=new WeakMap;D=new WeakMap;X=new WeakMap;y=new WeakMap;Y=new WeakMap;j=new WeakMap;tt=new WeakMap;u=new WeakMap;dt=new WeakMap;c=new WeakMap;et=new WeakMap;st=new WeakMap;_=new WeakMap;p=new WeakMap;k=new WeakMap;H=new WeakMap;b=new WeakMap;G=new WeakMap;R=new WeakMap;N=new WeakSet;ft=function(){f(this,F,U).call(this),t(this,dt).assignedElements().forEach(i=>{i instanceof HTMLElement&&t(this,c).push(new Gt(i,this))}),t(this,u).style.transform="",t(this,P).call(this)};F=new WeakSet;U=function(){t(this,c).forEach(i=>{i.destroy()}),m(this,c,[])};mt=new WeakSet;kt=function(){t(this,a).unsubscribe(t(this,gt)),t(this,a).unlistenAnimationFrame(),t(this,k).disconnect(),t(this,H).disconnect()};bt=new WeakSet;Wt=function(){t(this,a).subscribe(t(this,gt)),t(this,k).connect(),t(this,H).connect()};it=new WeakSet;vt=function(){pt.windowResizer.unsubscribe(t(this,P)),t(this,a).reset(),f(this,mt,kt).call(this),t(this,u).style.transform="",t(this,q).current&&f(this,F,U).call(this),I.scrollEntries.unregister(this)};rt=new WeakSet;_t=function(){t(this,q).current&&f(this,N,ft).call(this),I.scrollEntries.register(this),pt.windowResizer.subscribe(t(this,P),xt.RESIZE_ORDER.SCROLL),f(this,bt,Wt).call(this)};P=new WeakMap;gt=new WeakMap;St=new WeakSet;Rt=function(i){t(this,y).current?(t(this,b).current=i%t(this,c).length,t(this,b).current=t(this,b).current<0?t(this,c).length+t(this,b).current:t(this,b).current):t(this,b).current=zt.clamp(i,0,t(this,c).length-1)};nt=new WeakMap;ht=new WeakSet;Et=function(i="current"){if(t(this,y).current&&t(this,c).length){const e=t(this,a)[i]%(t(this,p)+t(this,_));return e<0?t(this,p)+e+t(this,_):e}else return t(this,a)[i]};exports.ScrollElement=Bt([wt.define("e-scroll")],exports.ScrollElement);var J;class Zt extends wt.CustomElement{constructor(){super(...arguments);$(this,J,null)}get scrollElement(){return h(this,J)}connectedCallback(){const s=It.findParentElement(this,exports.ScrollElement);s instanceof exports.ScrollElement?O(this,J,s):console.error(this,"e-scroll not found")}}J=new WeakMap;var Nt=Object.defineProperty,Ut=Object.getOwnPropertyDescriptor,Jt=(i,e,s,n)=>{for(var r=n>1?void 0:n?Ut(e,s):e,d=i.length-1,w;d>=0;d--)(w=i[d])&&(r=(n?w(e,s,r):w(r))||r);return n&&r&&Nt(e,s,r),r},qt=(i,e,s)=>{if(!e.has(i))throw TypeError("Cannot "+s)},o=(i,e,s)=>(qt(i,e,"read from private field"),s?s.call(i):e.get(i)),E=(i,e,s)=>{if(e.has(i))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(i):e.set(i,s)},C=(i,e,s,n)=>(qt(i,e,"write to private field"),n?n.call(i,s):e.set(i,s),s),lt,v,A,z,K,Z,ot,at,ct,ut;const Qt=Ot.createStylesheet({":host":{display:"inline-block",zIndex:"1",backgroundColor:"#efefef"},':host([axis="y"])':{position:"absolute",right:"0",top:"0",width:"1vmin",height:"100%"},':host([axis="x"])':{position:"absolute",left:"0",bottom:"0",width:"100%",height:"1vmin"},".default-thumb":{backgroundColor:"#181818",borderRadius:"1vmin",touchAction:"none"},"::slotted(*)":{touchAction:"none"}});exports.ScrollbarElement=class extends Zt{constructor(){super(),E(this,lt,null),E(this,v,null),E(this,A,!1),E(this,z,0),E(this,K,0),E(this,Z,0),E(this,ot,()=>{C(this,A,this.offsetWidth>this.offsetHeight);const e=o(this,A)?this.offsetWidth:this.offsetHeight;C(this,z,e/((this.scrollElement.scrollSize+this.scrollElement.viewportSize)/e)),C(this,z,Math.max(o(this,z),30)),o(this,A)?(o(this,v).style.width=o(this,z)+"px",o(this,v).style.height="100%"):(o(this,v).style.width="100%",o(this,v).style.height=o(this,z)+"px"),C(this,K,e-o(this,z)),this.scrollElement.scrollSize||(this.style.display="none")}),E(this,at,()=>{C(this,Z,this.scrollElement.currentProgress*o(this,K)),o(this,A)?o(this,v).style.transform=`translate3d(${o(this,Z)}px, 0px, 0px)`:o(this,v).style.transform=`translate3d(0px, ${o(this,Z)}px, 0px)`}),E(this,ct,()=>{this.setAttribute("axis",this.scrollElement.axisAttibute.current)}),E(this,ut,e=>{const s=w=>{const Q=o(this,A)?w.x:w.y,Pt=this.scrollElement.distance/o(this,K),$t=(Q-d)*Pt;this.scrollElement.damped.set(r+$t)},n=()=>{removeEventListener("pointermove",s),removeEventListener("pointerup",n),removeEventListener("touchend",n)};addEventListener("pointermove",s),addEventListener("pointerup",n),addEventListener("touchend",n);const r=this.scrollElement.damped.target,d=o(this,A)?e.x:e.y}),At.isBrowser&&(this.openShadow(Qt),Lt.element(this,{shadowChildren:[B.slot({ref:e=>C(this,lt,e)})]}))}get thumbElement(){return o(this,v)}connectedCallback(){super.connectedCallback();const e=o(this,lt).assignedElements()[0];e instanceof HTMLElement?C(this,v,e):(C(this,v,document.createElement("div")),o(this,v).classList.add("default-thumb"),this.shadowRoot.appendChild(o(this,v))),o(this,v).addEventListener("pointerdown",o(this,ut)),pt.windowResizer.subscribe(o(this,ot),xt.RESIZE_ORDER.SCROLL+1),this.scrollElement.damped.subscribe(o(this,at)),this.scrollElement.axisAttibute.subscribe(o(this,ct))}disconnectedCallback(){o(this,v).removeEventListener("pointerdown",o(this,ut)),pt.windowResizer.unsubscribe(o(this,ot)),this.scrollElement.damped.unsubscribe(o(this,at)),this.scrollElement.axisAttibute.unsubscribe(o(this,ct))}};lt=new WeakMap;v=new WeakMap;A=new WeakMap;z=new WeakMap;K=new WeakMap;Z=new WeakMap;ot=new WeakMap;at=new WeakMap;ct=new WeakMap;ut=new WeakMap;exports.ScrollbarElement=Jt([wt.define("e-scrollbar")],exports.ScrollbarElement);
@@ -7,22 +7,22 @@ var n = (i, s, e) => (yt(i, s, "read from private field"), e ? e.call(i) : s.get
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
9
  }, $ = (i, s, e, r) => (yt(i, s, "write to private field"), r ? r.call(i, e) : s.set(i, e), e);
10
- import { S as Ht } from "../Store-uTyReFzx.js";
11
- import { D as Ft } from "../Derived-BS2ja9qa.js";
10
+ import { S as Ht } from "../Store-JOKrNVEr.js";
11
+ import { D as Ft } from "../Derived-Bc88XJ8J.js";
12
12
  import { i as At } from "../browser-0zX67oeU.js";
13
13
  import { a as gt, g as wt } from "../layout-HoBT_Da2.js";
14
14
  import { c as zt } from "../math-BOBiC4TN.js";
15
15
  import "../ticker/index.js";
16
- import { D as Bt } from "../Damped-Bm1kSn1f.js";
16
+ import { D as Bt } from "../Damped-Csj-9_gH.js";
17
17
  import { Attribute as E } from "../attribute/index.js";
18
18
  import { W as Kt, K as Gt } from "../WheelControls-CX9WUbBC.js";
19
19
  import { CustomElement as Lt, define as $t } from "../custom-element/index.js";
20
20
  import { TICK_ORDER as Nt, RESIZE_ORDER as Pt } from "../order/index.js";
21
21
  import { windowResizer as ot } from "../window-resizer/index.js";
22
22
  import { scrollEntries as I } from "../scroll-entries/index.js";
23
- import { e as Ot } from "../ElementConstructor-DB0xOoat.js";
24
- import { C as Mt, aw as bt } from "../htmlTags-CNEFIHPp.js";
25
- import { c as Vt } from "../createStylesheet-74ZP3AZm.js";
23
+ import { e as Ot } from "../ElementConstructor-CoKM2CTK.js";
24
+ import { C as Mt, aw as bt } from "../htmlTags-BCNUG7oK.js";
25
+ import { c as Vt } from "../createStylesheet-BON7aJYs.js";
26
26
  import { f as Ut } from "../dom-BY7JhTx5.js";
27
27
  var Zt = Object.defineProperty, qt = Object.getOwnPropertyDescriptor, Jt = (i, s, e, r) => {
28
28
  for (var a = r > 1 ? void 0 : r ? qt(s, e) : s, g = i.length - 1, x; g >= 0; g--)
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../index-tPw9mmLF.cjs");Object.defineProperty(exports,"SelectElement",{enumerable:!0,get:()=>e.SelectElement});Object.defineProperty(exports,"SelectHeadElement",{enumerable:!0,get:()=>e.SelectHeadElement});Object.defineProperty(exports,"SelectOptionElement",{enumerable:!0,get:()=>e.SelectOptionElement});exports.SelectUserElement=e.SelectUserElement;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../index-i_Ki9M-w.cjs");Object.defineProperty(exports,"SelectElement",{enumerable:!0,get:()=>e.SelectElement});Object.defineProperty(exports,"SelectHeadElement",{enumerable:!0,get:()=>e.SelectHeadElement});Object.defineProperty(exports,"SelectOptionElement",{enumerable:!0,get:()=>e.SelectOptionElement});exports.SelectUserElement=e.SelectUserElement;
@@ -1,4 +1,4 @@
1
- import { S as l, c as a, b as c, d as m } from "../index-DyJhLxk8.js";
1
+ import { S as l, c as a, b as c, d as m } from "../index-DgtdcBEI.js";
2
2
  export {
3
3
  l as SelectElement,
4
4
  a as SelectHeadElement,
@@ -1,4 +1,4 @@
1
- "use strict";var v=(i,r,t)=>{if(!r.has(i))throw TypeError("Cannot "+t)};var e=(i,r,t)=>(v(i,r,"read from private field"),t?t.call(i):r.get(i)),n=(i,r,t)=>{if(r.has(i))throw TypeError("Cannot add the same private member more than once");r instanceof WeakSet?r.add(i):r.set(i,t)},l=(i,r,t,a)=>(v(i,r,"write to private field"),a?a.call(i,t):r.set(i,t),t);var E=(i,r,t)=>(v(i,r,"access private method"),t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const L=require("../SourceManager-D447KWpH.cjs"),C=require("../custom-element/index.cjs"),A=require("../intersector/index.cjs"),y=require("../loading/index.cjs"),M=require("../notifier/index.cjs");let N=0;var o,s,h,m,c,u,f,g,b,x,p;class k extends C.CustomElement{constructor(){super();n(this,b);n(this,o,null);n(this,s,null);n(this,h,!1);n(this,m,!1);n(this,c,!1);n(this,u,void 0);n(this,f,new M.Notifier);n(this,g,new M.Notifier);n(this,p,t=>{e(this,c)&&!e(this,m)&&t.isIntersecting&&(e(this,o).current&&e(this,o).current!==e(this,o).previous&&E(this,b,x).call(this,e(this,o).current),l(this,m,!0)),t.isIntersecting?e(this,f).notify():e(this,g).notify()});l(this,u,`source-consumer-${++N}`)}get consumerElement(){return e(this,s)}get captureEvent(){return e(this,f)}get releaseEvent(){return e(this,g)}connectedCallback(){const t=this.getAttribute("srcset");t&&(l(this,s,this.createConsumer()),e(this,s).style.cssText=`
1
+ "use strict";var v=(i,r,t)=>{if(!r.has(i))throw TypeError("Cannot "+t)};var e=(i,r,t)=>(v(i,r,"read from private field"),t?t.call(i):r.get(i)),n=(i,r,t)=>{if(r.has(i))throw TypeError("Cannot add the same private member more than once");r instanceof WeakSet?r.add(i):r.set(i,t)},l=(i,r,t,a)=>(v(i,r,"write to private field"),a?a.call(i,t):r.set(i,t),t);var E=(i,r,t)=>(v(i,r,"access private method"),t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const L=require("../SourceManager-CI6NfLzW.cjs"),C=require("../custom-element/index.cjs"),A=require("../intersector/index.cjs"),y=require("../loading/index.cjs"),M=require("../notifier/index.cjs");let N=0;var o,s,h,m,c,u,f,g,b,x,p;class k extends C.CustomElement{constructor(){super();n(this,b);n(this,o,null);n(this,s,null);n(this,h,!1);n(this,m,!1);n(this,c,!1);n(this,u,void 0);n(this,f,new M.Notifier);n(this,g,new M.Notifier);n(this,p,t=>{e(this,c)&&!e(this,m)&&t.isIntersecting&&(e(this,o).current&&e(this,o).current!==e(this,o).previous&&E(this,b,x).call(this,e(this,o).current),l(this,m,!0)),t.isIntersecting?e(this,f).notify():e(this,g).notify()});l(this,u,`source-consumer-${++N}`)}get consumerElement(){return e(this,s)}get captureEvent(){return e(this,f)}get releaseEvent(){return e(this,g)}connectedCallback(){const t=this.getAttribute("srcset");t&&(l(this,s,this.createConsumer()),e(this,s).style.cssText=`
2
2
  display: block;
3
3
  width: 100%;
4
4
  height: 100%;
@@ -8,8 +8,8 @@ var t = (i, r, s) => (v(i, r, "read from private field"), s ? s.call(i) : r.get(
8
8
  r instanceof WeakSet ? r.add(i) : r.set(i, s);
9
9
  }, l = (i, r, s, h) => (v(i, r, "write to private field"), h ? h.call(i, s) : r.set(i, s), s);
10
10
  var E = (i, r, s) => (v(i, r, "access private method"), s);
11
- import { S as k } from "../SourceManager-B44FUTig.js";
12
- import { a as W, b as $ } from "../SourceManager-B44FUTig.js";
11
+ import { S as k } from "../SourceManager-BoP9RAJr.js";
12
+ import { a as W, b as $ } from "../SourceManager-BoP9RAJr.js";
13
13
  import { CustomElement as w } from "../custom-element/index.js";
14
14
  import { intersector as A } from "../intersector/index.js";
15
15
  import { loading as S } from "../loading/index.js";
@@ -1 +1 @@
1
- "use strict";var C=(t,r,e)=>{if(!r.has(t))throw TypeError("Cannot "+e)};var u=(t,r,e)=>(C(t,r,"read from private field"),e?e.call(t):r.get(t)),n=(t,r,e)=>{if(r.has(t))throw TypeError("Cannot add the same private member more than once");r instanceof WeakSet?r.add(t):r.set(t,e)},o=(t,r,e,s)=>(C(t,r,"write to private field"),s?s.call(t,e):r.set(t,e),e);var R=(t,r,e,s)=>({set _(c){o(t,r,c,e)},get _(){return u(t,r,s)}});var A=(t,r,e)=>new Promise((s,c)=>{var h=i=>{try{v(e.next(i))}catch(f){c(f)}},l=i=>{try{v(e.throw(i))}catch(f){c(f)}},v=i=>i.done?s(i.value):Promise.resolve(i.value).then(h,l);v((e=e.apply(t,r)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("../Store-BOOfmlyv.cjs"),I=require("../Derived-CqmIkTGN.cjs"),q=require("../function-MthRj-GJ.cjs");var b;class E extends d.Store{constructor(e,s,c){super(null,c);n(this,b,void 0);o(this,b,e.subscribe(h=>{const l=[];h.current.forEach((v,i)=>{var f;h.current[i]===((f=h.previous)==null?void 0:f[i])&&this.current[i]?l.push(this.current[i]):l.push(s(v))}),this.current=l}))}close(){super.close(),u(this,b).call(this)}}b=new WeakMap;var S,a,p;class D extends d.Store{constructor(e,s,c){super(e,c);n(this,S,void 0);n(this,a,void 0);n(this,p,0);o(this,a,new d.Store(!1)),o(this,S,s),c!=null&&c.manualControl||this.refetch()}get isPending(){return u(this,a)}refetch(){u(this,a).current=!0,o(this,p,u(this,p)+1);const e=u(this,p);u(this,S).call(this).then(s=>{e===u(this,p)&&(u(this,a).current=!1,this.current=s)})}}S=new WeakMap,a=new WeakMap,p=new WeakMap;var g,m,y;class P extends D{constructor(e,s,c=100){super(e,s,{manualControl:!0,skipSubscribeNotification:!0});n(this,g,void 0);n(this,m,void 0);n(this,y,0);o(this,m,c)}get step(){return u(this,y)}startAccumulating(){o(this,g,setInterval(()=>A(this,null,function*(){++R(this,y)._,this.refetch()}),u(this,m)))}stopAccumulating(){clearInterval(u(this,g))}close(){super.close(),this.stopAccumulating()}}g=new WeakMap,m=new WeakMap,y=new WeakMap;var x;class j extends d.Store{constructor(e,s,c){super(null,c);n(this,x,[]);const h=q.debounce(()=>{this.current=s()},0);e.forEach(l=>{u(this,x).push(l.subscribe(()=>{h()}))})}close(){super.close(),u(this,x).forEach(e=>e())}}x=new WeakMap;exports.Store=d.Store;exports.activeStores=d.activeStores;exports.storeRegistry=d.storeRegistry;exports.Derived=I.Derived;exports.Composed=j;exports.CumulativeResource=P;exports.DerivedArray=E;exports.Resource=D;
1
+ "use strict";var C=(t,r,e)=>{if(!r.has(t))throw TypeError("Cannot "+e)};var u=(t,r,e)=>(C(t,r,"read from private field"),e?e.call(t):r.get(t)),n=(t,r,e)=>{if(r.has(t))throw TypeError("Cannot add the same private member more than once");r instanceof WeakSet?r.add(t):r.set(t,e)},o=(t,r,e,s)=>(C(t,r,"write to private field"),s?s.call(t,e):r.set(t,e),e);var R=(t,r,e,s)=>({set _(c){o(t,r,c,e)},get _(){return u(t,r,s)}});var A=(t,r,e)=>new Promise((s,c)=>{var h=i=>{try{v(e.next(i))}catch(f){c(f)}},l=i=>{try{v(e.throw(i))}catch(f){c(f)}},v=i=>i.done?s(i.value):Promise.resolve(i.value).then(h,l);v((e=e.apply(t,r)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("../Store-D0_rDIsE.cjs"),I=require("../Derived-SjPdLJiZ.cjs"),q=require("../function-MthRj-GJ.cjs");var b;class E extends d.Store{constructor(e,s,c){super(null,c);n(this,b,void 0);o(this,b,e.subscribe(h=>{const l=[];h.current.forEach((v,i)=>{var f;h.current[i]===((f=h.previous)==null?void 0:f[i])&&this.current[i]?l.push(this.current[i]):l.push(s(v))}),this.current=l}))}close(){super.close(),u(this,b).call(this)}}b=new WeakMap;var S,a,p;class D extends d.Store{constructor(e,s,c){super(e,c);n(this,S,void 0);n(this,a,void 0);n(this,p,0);o(this,a,new d.Store(!1)),o(this,S,s),c!=null&&c.manualControl||this.refetch()}get isPending(){return u(this,a)}refetch(){u(this,a).current=!0,o(this,p,u(this,p)+1);const e=u(this,p);u(this,S).call(this).then(s=>{e===u(this,p)&&(u(this,a).current=!1,this.current=s)})}}S=new WeakMap,a=new WeakMap,p=new WeakMap;var g,m,y;class P extends D{constructor(e,s,c=100){super(e,s,{manualControl:!0,skipSubscribeNotification:!0});n(this,g,void 0);n(this,m,void 0);n(this,y,0);o(this,m,c)}get step(){return u(this,y)}startAccumulating(){o(this,g,setInterval(()=>A(this,null,function*(){++R(this,y)._,this.refetch()}),u(this,m)))}stopAccumulating(){clearInterval(u(this,g))}close(){super.close(),this.stopAccumulating()}}g=new WeakMap,m=new WeakMap,y=new WeakMap;var x;class j extends d.Store{constructor(e,s,c){super(null,c);n(this,x,[]);const h=q.debounce(()=>{this.current=s()},0);e.forEach(l=>{u(this,x).push(l.subscribe(()=>{h()}))})}close(){super.close(),u(this,x).forEach(e=>e())}}x=new WeakMap;exports.Store=d.Store;exports.activeStores=d.activeStores;exports.storeRegistry=d.storeRegistry;exports.Derived=I.Derived;exports.Composed=j;exports.CumulativeResource=P;exports.DerivedArray=E;exports.Resource=D;
@@ -31,9 +31,9 @@ var y = (e, t, s) => new Promise((r, c) => {
31
31
  }, d = (i) => i.done ? r(i.value) : Promise.resolve(i.value).then(o, a);
32
32
  d((s = s.apply(e, t)).next());
33
33
  });
34
- import { S as A } from "../Store-uTyReFzx.js";
35
- import { a as B, s as F } from "../Store-uTyReFzx.js";
36
- import { D as H } from "../Derived-BS2ja9qa.js";
34
+ import { S as A } from "../Store-JOKrNVEr.js";
35
+ import { a as B, s as F } from "../Store-JOKrNVEr.js";
36
+ import { D as H } from "../Derived-Bc88XJ8J.js";
37
37
  import { d as D } from "../function-C10DGppn.js";
38
38
  var m;
39
39
  class w extends A {