aptechka 0.13.0 → 0.14.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (108) hide show
  1. package/lib/{Animation-seVC6-fS.cjs → Animation-De9aUv3b.cjs} +1 -1
  2. package/lib/{Animation-DF5jPON_.js → Animation-NAGXiFv5.js} +1 -1
  3. package/lib/{Composed-ChlKoJEp.cjs → Composed-C_4slJQ6.cjs} +1 -1
  4. package/lib/{Composed-CoX1ImVk.js → Composed-CfWa-69I.js} +1 -1
  5. package/lib/{Damped-C7WAqKPh.cjs → Damped-DYJ6Z0xo.cjs} +1 -1
  6. package/lib/{Damped-BDO-F13V.js → Damped-DbJKrUIf.js} +1 -1
  7. package/lib/Derived-BIBU-y7Z.cjs +1 -0
  8. package/lib/Derived-Vo_RsJfi.js +23 -0
  9. package/lib/{SourceManager-B8-EMNnd.js → SourceManager-B6wZpXUZ.js} +1 -1
  10. package/lib/{SourceManager-TzU9Rw08.cjs → SourceManager-CfHcGLUa.cjs} +1 -1
  11. package/lib/Store-C46i0nvr.js +137 -0
  12. package/lib/Store-npaZHvX4.cjs +1 -0
  13. package/lib/{Tweened-DSXD0I0k.cjs → Tweened-BkkD9s4n.cjs} +1 -1
  14. package/lib/{Tweened-CHhmfvzo.js → Tweened-DOSHLCZa.js} +1 -1
  15. package/lib/{Viewport-DTlImj28.js → Viewport-B55BvLsV.js} +1 -1
  16. package/lib/{Viewport-BmLTk_6k.cjs → Viewport-Cv4TRGiv.cjs} +1 -1
  17. package/lib/animation/index.cjs +1 -1
  18. package/lib/animation/index.js +3 -3
  19. package/lib/attribute/index.cjs +1 -1
  20. package/lib/attribute/index.js +13 -13
  21. package/lib/canvas/index.cjs +7 -1
  22. package/lib/canvas/index.js +54 -58
  23. package/lib/class-linked-status/index.cjs +1 -1
  24. package/lib/class-linked-status/index.js +1 -1
  25. package/lib/controls/index.cjs +1 -1
  26. package/lib/controls/index.js +3 -3
  27. package/lib/{createStylesheet-DO5t5q-m.js → createStylesheet-C68ja-RS.js} +3 -3
  28. package/lib/{createStylesheet-CaDI99iu.cjs → createStylesheet-Csfmh-MH.cjs} +1 -1
  29. package/lib/css-property/index.cjs +1 -1
  30. package/lib/css-property/index.js +4 -4
  31. package/lib/dev/index.cjs +1 -1
  32. package/lib/dev/index.js +1 -1
  33. package/lib/device/index.cjs +1 -1
  34. package/lib/device/index.js +1 -1
  35. package/lib/{dom-P5QbAASX.js → dom-0S_WDL4g.js} +2 -2
  36. package/lib/element-constructor/index.cjs +1 -1
  37. package/lib/element-constructor/index.js +133 -122
  38. package/lib/element-resizer/index.js +8 -8
  39. package/lib/en3/helpers/index.cjs +1 -1
  40. package/lib/en3/helpers/index.js +4 -4
  41. package/lib/en3/index.js +1 -1
  42. package/lib/en3/loaders/index.js +1 -1
  43. package/lib/en3/misc/index.cjs +1 -1
  44. package/lib/en3/misc/index.js +2 -2
  45. package/lib/en3/utils/index.js +2 -2
  46. package/lib/{en3-x-Ki30MY.js → en3-sK9Z-fp2.js} +1 -1
  47. package/lib/file-BEr-o55N.js +31 -0
  48. package/lib/file-C9BbxzVU.cjs +1 -0
  49. package/lib/image/index.cjs +1 -1
  50. package/lib/image/index.js +1 -1
  51. package/lib/intersector/index.js +7 -7
  52. package/lib/ladder/index.cjs +1 -1
  53. package/lib/ladder/index.js +1 -1
  54. package/lib/layout-box/index.js +14 -14
  55. package/lib/media/index.cjs +1 -1
  56. package/lib/media/index.js +1 -1
  57. package/lib/need_redo_tweaker/index.cjs +18 -0
  58. package/lib/need_redo_tweaker/index.js +1343 -0
  59. package/lib/pointer/index.cjs +1 -1
  60. package/lib/pointer/index.js +3 -3
  61. package/lib/popover/index.cjs +1 -1
  62. package/lib/popover/index.js +60 -62
  63. package/lib/scroll/index.cjs +1 -1
  64. package/lib/scroll/index.js +105 -106
  65. package/lib/scroll-entries/index.js +15 -15
  66. package/lib/sequence/index.cjs +1 -1
  67. package/lib/sequence/index.js +1 -1
  68. package/lib/slicer/index.cjs +5 -5
  69. package/lib/slicer/index.js +55 -86
  70. package/lib/source/index.cjs +1 -1
  71. package/lib/source/index.js +2 -2
  72. package/lib/store/index.cjs +1 -1
  73. package/lib/store/index.js +38 -112
  74. package/lib/{tags-v-OSVkiQ.cjs → tags-6_ETuR75.cjs} +1 -1
  75. package/lib/{tags-4AoxVUe3.js → tags-zft1DGBz.js} +93 -93
  76. package/lib/ticker/index.js +1 -1
  77. package/lib/{traverseMaterials-mGC2_FkG.js → traverseMaterials-BlZbRhgW.js} +1 -1
  78. package/lib/utils/index.cjs +1 -1
  79. package/lib/utils/index.js +56 -57
  80. package/lib/video/index.cjs +1 -1
  81. package/lib/video/index.js +1 -1
  82. package/package.json +7 -55
  83. package/lib/Derived-B-2UXnVE.cjs +0 -1
  84. package/lib/Derived-CDGpSMKu.js +0 -56
  85. package/lib/Store-BnA-dJsE.cjs +0 -1
  86. package/lib/Store-DGtldlBH.js +0 -147
  87. package/lib/accordion/index.cjs +0 -1
  88. package/lib/accordion/index.js +0 -167
  89. package/lib/checkbox/index.cjs +0 -1
  90. package/lib/checkbox/index.js +0 -112
  91. package/lib/createTheme-CHnsCgAr.js +0 -15
  92. package/lib/createTheme-Cfaw9UmV.cjs +0 -1
  93. package/lib/events-BGwqaxVW.cjs +0 -1
  94. package/lib/events-CJTUMSLU.js +0 -20
  95. package/lib/file-EevnUtRj.cjs +0 -1
  96. package/lib/file-lxi_oXJf.js +0 -13
  97. package/lib/index-BhbT9PrL.js +0 -261
  98. package/lib/index-BpsQqM-8.cjs +0 -9
  99. package/lib/modal/index.cjs +0 -1
  100. package/lib/modal/index.js +0 -133
  101. package/lib/select/index.cjs +0 -1
  102. package/lib/select/index.js +0 -7
  103. package/lib/svg-path-data/index.cjs +0 -3
  104. package/lib/svg-path-data/index.js +0 -490
  105. package/lib/theme/index.cjs +0 -1
  106. package/lib/theme/index.js +0 -25
  107. package/lib/tweaker/index.cjs +0 -10
  108. package/lib/tweaker/index.js +0 -992
@@ -1 +1 @@
1
- "use strict";var x=s=>{throw TypeError(s)};var I=(s,n,e)=>n.has(s)||x("Cannot "+e);var t=(s,n,e)=>(I(s,n,"read from private field"),e?e.call(s):n.get(s)),c=(s,n,e)=>n.has(s)?x("Cannot add the same private member more than once"):n instanceof WeakSet?n.add(s):n.set(s,e),l=(s,n,e,i)=>(I(s,n,"write to private field"),i?i.call(s,e):n.set(s,e),e);var L=(s,n,e)=>new Promise((i,f)=>{var w=o=>{try{u(e.next(o))}catch(r){f(r)}},y=o=>{try{u(e.throw(o))}catch(r){f(r)}},u=o=>o.done?i(o.value):Promise.resolve(o.value).then(w,y);u((e=e.apply(s,n)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const B=require("../canvas/index.cjs"),P=require("../css-property/index.cjs"),R=require("../element-resizer/index.cjs");require("../window-resizer/index.cjs");require("../Store-BnA-dJsE.cjs");const H=require("../browser-CpzFX2xg.cjs"),z=require("../canvas-CU5Xjahf.cjs"),M=require("../source/index.cjs");function W(s){const n=s.match(/\{([\d-]+)\}/);if(n){const e=n[1].split("-");if(e.length===2){const i=parseInt(e[0],10),f=parseInt(e[1],10);return{start:i,end:f}}}return null}var h,b,S,m,d,g,E,p,a,v;class k extends M.SourceElement{constructor(e){super();c(this,h,[]);c(this,b,new P.CSSProperty(this,"--fit","contain"));c(this,S,new P.CSSProperty(this,"--autoplay",!1));c(this,m,new P.CSSProperty(this,"--offset-x",.5));c(this,d,new P.CSSProperty(this,"--offset-y",.5));c(this,g,null);c(this,E,0);c(this,p,1);c(this,a,()=>{if(t(this,h).length){const e=t(this,h)[0];t(this,b).current==="cover"?l(this,g,z.cover(e.naturalWidth,e.naturalHeight,this.consumerElement.width,this.consumerElement.height,t(this,m).current,t(this,d).current)):l(this,g,z.contain(e.naturalWidth,e.naturalHeight,this.consumerElement.width,this.consumerElement.height,t(this,m).current,t(this,d).current))}});c(this,v,e=>{if(this.status.isFalse("loaded")||!t(this,g))return;e.detail.context.clearRect(0,0,e.detail.width,e.detail.height);const i=t(this,h)[t(this,E)];i&&e.detail.context.drawImage(i,...t(this,g)),t(this,S).current&&l(this,E,(t(this,E)+1)%t(this,h).length)});H.isBrowser&&(l(this,p,parseInt(((e==null?void 0:e.pad)||this.getAttribute("pad")||"1").toString())),t(this,b).subscribe(t(this,a)),t(this,m).subscribe(t(this,a)),t(this,d).subscribe(t(this,a)),this.addEventListener("sourceCapture",i=>{this.consumerElement.addEventListener("canvasRender",t(this,v))}),this.addEventListener("sourceRelease",i=>{this.consumerElement.removeEventListener("canvasRender",t(this,v))}))}setProgress(e){t(this,h).length&&l(this,E,Math.floor((t(this,h).length-1)*e))}connectedCallback(){super.connectedCallback(),t(this,S).observe(),t(this,b).observe(),t(this,m).observe(),t(this,d).observe(),R.elementResizer.subscribe(this,t(this,a))}disconnectedCallback(){super.disconnectedCallback(),t(this,S).unobserve(),t(this,b).unobserve(),t(this,m).unobserve(),t(this,d).unobserve(),l(this,h,[]),R.elementResizer.unsubscribe(t(this,a)),this.consumerElement.removeEventListener("canvasRender",t(this,v))}createConsumer(){return new B.CanvasElement}consumeSource(e){return L(this,null,function*(){var i,f,w,y;if(e){this.consumerElement.removeEventListener("canvasRender",t(this,v));const u=[],o=W(e);if(o)for(let r=o.start;r<=o.end;r++){const q=e.replace(/\{([^}]+)\}/,r.toString().padStart(t(this,p),"0")),C=new Image;C.src=q,u.push(C)}else{const r=new Image;r.src=e,u.push(r)}try{yield Promise.all(u.map((r,q)=>new Promise((C,_)=>{r.onload=()=>{C()},r.onerror=j=>{_(`${r.src} Image not found`)}}))),l(this,h,u),t(this,a).call(this),(f=(i=this.consumerElement).onload)==null||f.call(i,new Event("load")),this.isLazy||this.consumerElement.addEventListener("canvasRender",t(this,v))}catch(r){console.error(r),(y=(w=this.consumerElement).onerror)==null||y.call(w,new Event("error"))}}})}}h=new WeakMap,b=new WeakMap,S=new WeakMap,m=new WeakMap,d=new WeakMap,g=new WeakMap,E=new WeakMap,p=new WeakMap,a=new WeakMap,v=new WeakMap;customElements.get("e-sequence")||customElements.define("e-sequence",k);exports.SequenceElement=k;
1
+ "use strict";var x=s=>{throw TypeError(s)};var I=(s,n,e)=>n.has(s)||x("Cannot "+e);var t=(s,n,e)=>(I(s,n,"read from private field"),e?e.call(s):n.get(s)),c=(s,n,e)=>n.has(s)?x("Cannot add the same private member more than once"):n instanceof WeakSet?n.add(s):n.set(s,e),l=(s,n,e,i)=>(I(s,n,"write to private field"),i?i.call(s,e):n.set(s,e),e);var L=(s,n,e)=>new Promise((i,f)=>{var w=o=>{try{u(e.next(o))}catch(r){f(r)}},y=o=>{try{u(e.throw(o))}catch(r){f(r)}},u=o=>o.done?i(o.value):Promise.resolve(o.value).then(w,y);u((e=e.apply(s,n)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const B=require("../canvas/index.cjs"),P=require("../css-property/index.cjs"),R=require("../element-resizer/index.cjs");require("../window-resizer/index.cjs");require("../Store-npaZHvX4.cjs");const H=require("../browser-CpzFX2xg.cjs"),z=require("../canvas-CU5Xjahf.cjs"),M=require("../source/index.cjs");function W(s){const n=s.match(/\{([\d-]+)\}/);if(n){const e=n[1].split("-");if(e.length===2){const i=parseInt(e[0],10),f=parseInt(e[1],10);return{start:i,end:f}}}return null}var h,b,S,m,d,g,E,p,a,v;class k extends M.SourceElement{constructor(e){super();c(this,h,[]);c(this,b,new P.CSSProperty(this,"--fit","contain"));c(this,S,new P.CSSProperty(this,"--autoplay",!1));c(this,m,new P.CSSProperty(this,"--offset-x",.5));c(this,d,new P.CSSProperty(this,"--offset-y",.5));c(this,g,null);c(this,E,0);c(this,p,1);c(this,a,()=>{if(t(this,h).length){const e=t(this,h)[0];t(this,b).current==="cover"?l(this,g,z.cover(e.naturalWidth,e.naturalHeight,this.consumerElement.width,this.consumerElement.height,t(this,m).current,t(this,d).current)):l(this,g,z.contain(e.naturalWidth,e.naturalHeight,this.consumerElement.width,this.consumerElement.height,t(this,m).current,t(this,d).current))}});c(this,v,e=>{if(this.status.isFalse("loaded")||!t(this,g))return;e.detail.context.clearRect(0,0,e.detail.width,e.detail.height);const i=t(this,h)[t(this,E)];i&&e.detail.context.drawImage(i,...t(this,g)),t(this,S).current&&l(this,E,(t(this,E)+1)%t(this,h).length)});H.isBrowser&&(l(this,p,parseInt(((e==null?void 0:e.pad)||this.getAttribute("pad")||"1").toString())),t(this,b).subscribe(t(this,a)),t(this,m).subscribe(t(this,a)),t(this,d).subscribe(t(this,a)),this.addEventListener("sourceCapture",i=>{this.consumerElement.addEventListener("canvasRender",t(this,v))}),this.addEventListener("sourceRelease",i=>{this.consumerElement.removeEventListener("canvasRender",t(this,v))}))}setProgress(e){t(this,h).length&&l(this,E,Math.floor((t(this,h).length-1)*e))}connectedCallback(){super.connectedCallback(),t(this,S).observe(),t(this,b).observe(),t(this,m).observe(),t(this,d).observe(),R.elementResizer.subscribe(this,t(this,a))}disconnectedCallback(){super.disconnectedCallback(),t(this,S).unobserve(),t(this,b).unobserve(),t(this,m).unobserve(),t(this,d).unobserve(),l(this,h,[]),R.elementResizer.unsubscribe(t(this,a)),this.consumerElement.removeEventListener("canvasRender",t(this,v))}createConsumer(){return new B.CanvasElement}consumeSource(e){return L(this,null,function*(){var i,f,w,y;if(e){this.consumerElement.removeEventListener("canvasRender",t(this,v));const u=[],o=W(e);if(o)for(let r=o.start;r<=o.end;r++){const q=e.replace(/\{([^}]+)\}/,r.toString().padStart(t(this,p),"0")),C=new Image;C.src=q,u.push(C)}else{const r=new Image;r.src=e,u.push(r)}try{yield Promise.all(u.map((r,q)=>new Promise((C,_)=>{r.onload=()=>{C()},r.onerror=j=>{_(`${r.src} Image not found`)}}))),l(this,h,u),t(this,a).call(this),(f=(i=this.consumerElement).onload)==null||f.call(i,new Event("load")),this.isLazy||this.consumerElement.addEventListener("canvasRender",t(this,v))}catch(r){console.error(r),(y=(w=this.consumerElement).onerror)==null||y.call(w,new Event("error"))}}})}}h=new WeakMap,b=new WeakMap,S=new WeakMap,m=new WeakMap,d=new WeakMap,g=new WeakMap,E=new WeakMap,p=new WeakMap,a=new WeakMap,v=new WeakMap;customElements.get("e-sequence")||customElements.define("e-sequence",k);exports.SequenceElement=k;
@@ -23,7 +23,7 @@ import { CanvasElement as z } from "../canvas/index.js";
23
23
  import { CSSProperty as I } from "../css-property/index.js";
24
24
  import { elementResizer as k } from "../element-resizer/index.js";
25
25
  import "../window-resizer/index.js";
26
- import "../Store-DGtldlBH.js";
26
+ import "../Store-C46i0nvr.js";
27
27
  import { i as B } from "../browser-0zX67oeU.js";
28
28
  import { c as H, a as W } from "../canvas-DeZ0SLUJ.js";
29
29
  import { SourceElement as A } from "../source/index.js";
@@ -1,11 +1,11 @@
1
- "use strict";var M=n=>{throw TypeError(n)};var T=(n,t,e)=>t.has(n)||M("Cannot "+e);var s=(n,t,e)=>(T(n,t,"read from private field"),e?e.call(n):t.get(n)),l=(n,t,e)=>t.has(n)?M("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(n):t.set(n,e),i=(n,t,e,o)=>(T(n,t,"write to private field"),o?o.call(n,e):t.set(n,e),e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const S=require("../string-DhgS_iFl.cjs");var p,h,u;class b{constructor(t){l(this,p);l(this,h);l(this,u);i(this,p,t.index),i(this,h,document.createElement("span")),i(this,u,[]),t.letters&&t.letterConstructor&&t.lettersAcc!==void 0?(i(this,u,t.text.split("").map((e,o)=>new t.letterConstructor({index:t.lettersAcc+o,text:e,clone:t.clone}))),s(this,h).append(...s(this,u).map(e=>e.element))):t.clone?s(this,h).innerHTML=`
1
+ "use strict";var L=n=>{throw TypeError(n)};var w=(n,t,s)=>t.has(n)||L("Cannot "+s);var e=(n,t,s)=>(w(n,t,"read from private field"),s?s.call(n):t.get(n)),l=(n,t,s)=>t.has(n)?L("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(n):t.set(n,s),i=(n,t,s,d)=>(w(n,t,"write to private field"),d?d.call(n,s):t.set(n,s),s);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var a,h,u;class T{constructor(t){l(this,a);l(this,h);l(this,u);i(this,a,t.index),i(this,h,document.createElement("span")),i(this,u,[]),t.letters&&t.letterConstructor&&t.lettersAcc!==void 0?(i(this,u,t.text.split("").map((s,d)=>new t.letterConstructor({index:t.lettersAcc+d,text:s,clone:t.clone}))),e(this,h).append(...e(this,u).map(s=>s.element))):t.clone?e(this,h).innerHTML=`
2
2
  <span class="original">${t.text}</span>
3
3
  <span class="clone" aria-hidden>${t.text}</span>
4
- `:s(this,h).innerHTML=`
4
+ `:e(this,h).innerHTML=`
5
5
  <span class="value">${t.text}</span>
6
- `,s(this,h).classList.add("word")}get index(){return s(this,p)}get element(){return s(this,h)}get letters(){return s(this,u)}}p=new WeakMap,h=new WeakMap,u=new WeakMap;var f,d;class L{constructor(t){l(this,f);l(this,d);i(this,f,t.index),i(this,d,document.createElement("span")),s(this,d).classList.add("letter"),t.clone?s(this,d).innerHTML=`
6
+ `,e(this,h).classList.add("word")}get index(){return e(this,a)}get element(){return e(this,h)}get letters(){return e(this,u)}}a=new WeakMap,h=new WeakMap,u=new WeakMap;var p,c;class b{constructor(t){l(this,p);l(this,c);i(this,p,t.index),i(this,c,document.createElement("span")),e(this,c).classList.add("letter"),t.clone?e(this,c).innerHTML=`
7
7
  <span class="original">${t.text}</span>
8
8
  <span class="clone" aria-hidden>${t.text}</span>
9
- `:s(this,d).innerHTML=`
9
+ `:e(this,c).innerHTML=`
10
10
  <span class="value">${t.text}</span>
11
- `}get index(){return s(this,f)}get element(){return s(this,d)}}f=new WeakMap,d=new WeakMap;var g,r,x,E,C;class w extends HTMLElement{constructor(e){super();l(this,g,"");l(this,r,[]);l(this,x,[]);l(this,E);l(this,C);i(this,E,(e==null?void 0:e.wordConstructor)||b),i(this,C,(e==null?void 0:e.letterConstructor)||L)}get wordsArray(){return s(this,r)}get lettersArray(){return s(this,x)}get originalText(){return s(this,g)}connectedCallback(){var o;i(this,g,((o=this.textContent)==null?void 0:o.trim())||""),this.innerHTML="";let e=0;i(this,r,s(this,g).replace(/ +/g," ").split(" ").map((c,m)=>{const a=new(s(this,E))({index:m,text:c,letters:this.hasAttribute("letters"),lettersAcc:e,letterConstructor:s(this,C),clone:this.hasAttribute("clone")});return e+=a.letters.length,s(this,x).push(...a.letters),a})),this.hasAttribute("index")&&(s(this,r).forEach(c=>{c.element.style.setProperty("--word-index",c.index.toString())}),s(this,x).forEach(c=>{c.element.style.setProperty("--letter-index",c.index.toString())})),s(this,r).forEach((c,m)=>{if(this.appendChild(c.element),m!==s(this,r).length-1){const a=document.createElement("span");a.innerHTML="&nbsp;",this.appendChild(a)}}),this.style.setProperty("--words-length",s(this,r).length.toString()),this.style.setProperty("--letters-length",s(this,x).length.toString())}disconnectedCallback(){i(this,r,[]),this.textContent=s(this,g),this.style.removeProperty("--words-length"),this.style.removeProperty("--letters-length")}}g=new WeakMap,r=new WeakMap,x=new WeakMap,E=new WeakMap,C=new WeakMap;customElements.get("e-slicer")||customElements.define("e-slicer",w);var y;class v extends L{constructor(e){super(e);l(this,y);i(this,y,S.generateId(2+Math.floor(Math.random()*15),"abcdefghijklmnopqrstuvwxyz0123456789#!%$^&*+=?")+e.text),this.play(0)}play(e){const o=Math.floor(e*(s(this,y).length-1));this.element.textContent=s(this,y)[o]}}y=new WeakMap;class A extends w{constructor(){super({letterConstructor:v})}play(t){this.lettersArray.forEach(e=>{e.play(t)})}}customElements.get("e-decoder")||customElements.define("e-decoder",A);exports.DecoderElement=A;exports.Letter=L;exports.SlicerElement=w;exports.Word=b;
11
+ `}get index(){return e(this,p)}get element(){return e(this,c)}}p=new WeakMap,c=new WeakMap;var g,r,x,C,f;class A extends HTMLElement{constructor(s){super();l(this,g,"");l(this,r,[]);l(this,x,[]);l(this,C);l(this,f);i(this,C,(s==null?void 0:s.wordConstructor)||T),i(this,f,(s==null?void 0:s.letterConstructor)||b)}get wordsArray(){return e(this,r)}get lettersArray(){return e(this,x)}get originalText(){return e(this,g)}connectedCallback(){var d;i(this,g,((d=this.textContent)==null?void 0:d.trim())||""),this.innerHTML="";let s=0;i(this,r,e(this,g).replace(/ +/g," ").split(" ").map((o,E)=>{const y=new(e(this,C))({index:E,text:o,letters:this.hasAttribute("letters"),lettersAcc:s,letterConstructor:e(this,f),clone:this.hasAttribute("clone")});return s+=y.letters.length,e(this,x).push(...y.letters),y})),this.hasAttribute("index")&&(e(this,r).forEach(o=>{o.element.style.setProperty("--word-index",o.index.toString())}),e(this,x).forEach(o=>{o.element.style.setProperty("--letter-index",o.index.toString())})),e(this,r).forEach((o,E)=>{if(this.appendChild(o.element),E!==e(this,r).length-1){const y=document.createElement("span");y.innerHTML="&nbsp;",this.appendChild(y)}}),this.style.setProperty("--words-length",e(this,r).length.toString()),this.style.setProperty("--letters-length",e(this,x).length.toString())}disconnectedCallback(){i(this,r,[]),this.textContent=e(this,g),this.style.removeProperty("--words-length"),this.style.removeProperty("--letters-length")}}g=new WeakMap,r=new WeakMap,x=new WeakMap,C=new WeakMap,f=new WeakMap;customElements.get("e-slicer")||customElements.define("e-slicer",A);exports.Letter=b;exports.SlicerElement=A;exports.Word=T;
@@ -1,143 +1,112 @@
1
- var w = (n) => {
1
+ var E = (n) => {
2
2
  throw TypeError(n);
3
3
  };
4
- var L = (n, t, e) => t.has(n) || w("Cannot " + e);
5
- var s = (n, t, e) => (L(n, t, "read from private field"), e ? e.call(n) : t.get(n)), l = (n, t, e) => t.has(n) ? w("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(n) : t.set(n, e), i = (n, t, e, o) => (L(n, t, "write to private field"), o ? o.call(n, e) : t.set(n, e), e);
6
- import { g as T } from "../string-f0Dnk0L1.js";
7
- var y, c, u;
8
- class b {
4
+ var L = (n, t, s) => t.has(n) || E("Cannot " + s);
5
+ var e = (n, t, s) => (L(n, t, "read from private field"), s ? s.call(n) : t.get(n)), l = (n, t, s) => t.has(n) ? E("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(n) : t.set(n, s), i = (n, t, s, d) => (L(n, t, "write to private field"), d ? d.call(n, s) : t.set(n, s), s);
6
+ var y, o, u;
7
+ class T {
9
8
  constructor(t) {
10
9
  l(this, y);
11
- l(this, c);
10
+ l(this, o);
12
11
  l(this, u);
13
- i(this, y, t.index), i(this, c, document.createElement("span")), i(this, u, []), t.letters && t.letterConstructor && t.lettersAcc !== void 0 ? (i(this, u, t.text.split("").map((e, o) => new t.letterConstructor({
14
- index: t.lettersAcc + o,
15
- text: e,
12
+ i(this, y, t.index), i(this, o, document.createElement("span")), i(this, u, []), t.letters && t.letterConstructor && t.lettersAcc !== void 0 ? (i(this, u, t.text.split("").map((s, d) => new t.letterConstructor({
13
+ index: t.lettersAcc + d,
14
+ text: s,
16
15
  clone: t.clone
17
- }))), s(this, c).append(...s(this, u).map((e) => e.element))) : t.clone ? s(this, c).innerHTML = `
16
+ }))), e(this, o).append(...e(this, u).map((s) => s.element))) : t.clone ? e(this, o).innerHTML = `
18
17
  <span class="original">${t.text}</span>
19
18
  <span class="clone" aria-hidden>${t.text}</span>
20
- ` : s(this, c).innerHTML = `
19
+ ` : e(this, o).innerHTML = `
21
20
  <span class="value">${t.text}</span>
22
- `, s(this, c).classList.add("word");
21
+ `, e(this, o).classList.add("word");
23
22
  }
24
23
  get index() {
25
- return s(this, y);
24
+ return e(this, y);
26
25
  }
27
26
  get element() {
28
- return s(this, c);
27
+ return e(this, o);
29
28
  }
30
29
  get letters() {
31
- return s(this, u);
30
+ return e(this, u);
32
31
  }
33
32
  }
34
- y = new WeakMap(), c = new WeakMap(), u = new WeakMap();
35
- var f, d;
36
- class M {
33
+ y = new WeakMap(), o = new WeakMap(), u = new WeakMap();
34
+ var a, c;
35
+ class A {
37
36
  constructor(t) {
38
- l(this, f);
39
- l(this, d);
40
- i(this, f, t.index), i(this, d, document.createElement("span")), s(this, d).classList.add("letter"), t.clone ? s(this, d).innerHTML = `
37
+ l(this, a);
38
+ l(this, c);
39
+ i(this, a, t.index), i(this, c, document.createElement("span")), e(this, c).classList.add("letter"), t.clone ? e(this, c).innerHTML = `
41
40
  <span class="original">${t.text}</span>
42
41
  <span class="clone" aria-hidden>${t.text}</span>
43
- ` : s(this, d).innerHTML = `
42
+ ` : e(this, c).innerHTML = `
44
43
  <span class="value">${t.text}</span>
45
44
  `;
46
45
  }
47
46
  get index() {
48
- return s(this, f);
47
+ return e(this, a);
49
48
  }
50
49
  get element() {
51
- return s(this, d);
50
+ return e(this, c);
52
51
  }
53
52
  }
54
- f = new WeakMap(), d = new WeakMap();
55
- var g, r, x, C, E;
56
- class A extends HTMLElement {
57
- constructor(e) {
53
+ a = new WeakMap(), c = new WeakMap();
54
+ var g, r, x, C, f;
55
+ class H extends HTMLElement {
56
+ constructor(s) {
58
57
  super();
59
58
  l(this, g, "");
60
59
  l(this, r, []);
61
60
  l(this, x, []);
62
61
  l(this, C);
63
- l(this, E);
64
- i(this, C, (e == null ? void 0 : e.wordConstructor) || b), i(this, E, (e == null ? void 0 : e.letterConstructor) || M);
62
+ l(this, f);
63
+ i(this, C, (s == null ? void 0 : s.wordConstructor) || T), i(this, f, (s == null ? void 0 : s.letterConstructor) || A);
65
64
  }
66
65
  get wordsArray() {
67
- return s(this, r);
66
+ return e(this, r);
68
67
  }
69
68
  get lettersArray() {
70
- return s(this, x);
69
+ return e(this, x);
71
70
  }
72
71
  get originalText() {
73
- return s(this, g);
72
+ return e(this, g);
74
73
  }
75
74
  connectedCallback() {
76
- var o;
77
- i(this, g, ((o = this.textContent) == null ? void 0 : o.trim()) || ""), this.innerHTML = "";
78
- let e = 0;
79
- i(this, r, s(this, g).replace(/ +/g, " ").split(" ").map((h, m) => {
80
- const a = new (s(this, C))({
81
- index: m,
75
+ var d;
76
+ i(this, g, ((d = this.textContent) == null ? void 0 : d.trim()) || ""), this.innerHTML = "";
77
+ let s = 0;
78
+ i(this, r, e(this, g).replace(/ +/g, " ").split(" ").map((h, w) => {
79
+ const p = new (e(this, C))({
80
+ index: w,
82
81
  text: h,
83
82
  letters: this.hasAttribute("letters"),
84
- lettersAcc: e,
85
- letterConstructor: s(this, E),
83
+ lettersAcc: s,
84
+ letterConstructor: e(this, f),
86
85
  clone: this.hasAttribute("clone")
87
86
  });
88
- return e += a.letters.length, s(this, x).push(...a.letters), a;
89
- })), this.hasAttribute("index") && (s(this, r).forEach((h) => {
87
+ return s += p.letters.length, e(this, x).push(...p.letters), p;
88
+ })), this.hasAttribute("index") && (e(this, r).forEach((h) => {
90
89
  h.element.style.setProperty("--word-index", h.index.toString());
91
- }), s(this, x).forEach((h) => {
90
+ }), e(this, x).forEach((h) => {
92
91
  h.element.style.setProperty(
93
92
  "--letter-index",
94
93
  h.index.toString()
95
94
  );
96
- })), s(this, r).forEach((h, m) => {
97
- if (this.appendChild(h.element), m !== s(this, r).length - 1) {
98
- const a = document.createElement("span");
99
- a.innerHTML = "&nbsp;", this.appendChild(a);
95
+ })), e(this, r).forEach((h, w) => {
96
+ if (this.appendChild(h.element), w !== e(this, r).length - 1) {
97
+ const p = document.createElement("span");
98
+ p.innerHTML = "&nbsp;", this.appendChild(p);
100
99
  }
101
- }), this.style.setProperty("--words-length", s(this, r).length.toString()), this.style.setProperty("--letters-length", s(this, x).length.toString());
100
+ }), this.style.setProperty("--words-length", e(this, r).length.toString()), this.style.setProperty("--letters-length", e(this, x).length.toString());
102
101
  }
103
102
  disconnectedCallback() {
104
- i(this, r, []), this.textContent = s(this, g), this.style.removeProperty("--words-length"), this.style.removeProperty("--letters-length");
105
- }
106
- }
107
- g = new WeakMap(), r = new WeakMap(), x = new WeakMap(), C = new WeakMap(), E = new WeakMap();
108
- customElements.get("e-slicer") || customElements.define("e-slicer", A);
109
- var p;
110
- class H extends M {
111
- constructor(e) {
112
- super(e);
113
- l(this, p);
114
- i(this, p, T(
115
- 2 + Math.floor(Math.random() * 15),
116
- "abcdefghijklmnopqrstuvwxyz0123456789#!%$^&*+=?"
117
- ) + e.text), this.play(0);
118
- }
119
- play(e) {
120
- const o = Math.floor(e * (s(this, p).length - 1));
121
- this.element.textContent = s(this, p)[o];
122
- }
123
- }
124
- p = new WeakMap();
125
- class $ extends A {
126
- constructor() {
127
- super({
128
- letterConstructor: H
129
- });
130
- }
131
- play(t) {
132
- this.lettersArray.forEach((e) => {
133
- e.play(t);
134
- });
103
+ i(this, r, []), this.textContent = e(this, g), this.style.removeProperty("--words-length"), this.style.removeProperty("--letters-length");
135
104
  }
136
105
  }
137
- customElements.get("e-decoder") || customElements.define("e-decoder", $);
106
+ g = new WeakMap(), r = new WeakMap(), x = new WeakMap(), C = new WeakMap(), f = new WeakMap();
107
+ customElements.get("e-slicer") || customElements.define("e-slicer", H);
138
108
  export {
139
- $ as DecoderElement,
140
- M as Letter,
141
- A as SlicerElement,
142
- b as Word
109
+ A as Letter,
110
+ H as SlicerElement,
111
+ T as Word
143
112
  };
@@ -1,4 +1,4 @@
1
- "use strict";var k=i=>{throw TypeError(i)};var y=(i,r,t)=>r.has(i)||k("Cannot "+t);var e=(i,r,t)=>(y(i,r,"read from private field"),t?t.call(i):r.get(i)),a=(i,r,t)=>r.has(i)?k("Cannot add the same private member more than once"):r instanceof WeakSet?r.add(i):r.set(i,t),u=(i,r,t,o)=>(y(i,r,"write to private field"),o?o.call(i,t):r.set(i,t),t),p=(i,r,t)=>(y(i,r,"access private method"),t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const C=require("../SourceManager-TzU9Rw08.cjs"),w=require("../loading/index.cjs"),A=require("../class-linked-status/index.cjs"),q=require("../browser-CpzFX2xg.cjs"),x=require("../string-DhgS_iFl.cjs");let T=0;var h,s,c,f,l,d,n,g,m,v,E,b,L;class z extends HTMLElement{constructor(){super();a(this,m);a(this,h,null);a(this,s,null);a(this,c,!1);a(this,f,!1);a(this,l,!1);a(this,d,"");a(this,n,new A.ClassLinkedStatus(this,{loading:!1,loaded:!1,error:!1}));a(this,g,null);a(this,E,t=>{const o=t[0];e(this,l)&&(!e(this,f)||this.hasAttribute("reload-source"))&&o.isIntersecting&&(e(this,h).current&&e(this,h).current!==e(this,h).previous&&p(this,m,v).call(this,e(this,h).current),u(this,f,!0)),o.isIntersecting?this.dispatchEvent(new CustomEvent("sourceCapture")):(this.hasAttribute("reload-source")&&p(this,m,v).call(this,void 0),this.dispatchEvent(new CustomEvent("sourceRelease")))});a(this,b,()=>{e(this,n).set("loaded",!0),e(this,n).set("error",!1),e(this,n).set("loading",!1),!e(this,l)&&!e(this,c)&&w.loading.setLoaded(e(this,d),1),u(this,c,!0)});a(this,L,t=>{e(this,n).set("loaded",!1),e(this,n).set("error",!0),e(this,n).set("loading",!1),!e(this,l)&&!e(this,c)&&w.loading.setError(e(this,d),t),u(this,c,!0)});q.isBrowser&&(u(this,d,`source-consumer-${++T}`),u(this,g,new IntersectionObserver(e(this,E))))}get consumerElement(){return e(this,s)}get sourceManager(){return e(this,h)}get status(){return e(this,n)}get isLazy(){return e(this,l)}connectedCallback(){const t=this.getAttribute("srcset");t&&(u(this,s,this.createConsumer()),e(this,s).style.cssText=`
1
+ "use strict";var k=i=>{throw TypeError(i)};var y=(i,r,t)=>r.has(i)||k("Cannot "+t);var e=(i,r,t)=>(y(i,r,"read from private field"),t?t.call(i):r.get(i)),a=(i,r,t)=>r.has(i)?k("Cannot add the same private member more than once"):r instanceof WeakSet?r.add(i):r.set(i,t),u=(i,r,t,o)=>(y(i,r,"write to private field"),o?o.call(i,t):r.set(i,t),t),p=(i,r,t)=>(y(i,r,"access private method"),t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const C=require("../SourceManager-CfHcGLUa.cjs"),w=require("../loading/index.cjs"),A=require("../class-linked-status/index.cjs"),q=require("../browser-CpzFX2xg.cjs"),x=require("../string-DhgS_iFl.cjs");let T=0;var h,s,c,f,l,d,n,g,m,v,E,b,L;class z extends HTMLElement{constructor(){super();a(this,m);a(this,h,null);a(this,s,null);a(this,c,!1);a(this,f,!1);a(this,l,!1);a(this,d,"");a(this,n,new A.ClassLinkedStatus(this,{loading:!1,loaded:!1,error:!1}));a(this,g,null);a(this,E,t=>{const o=t[0];e(this,l)&&(!e(this,f)||this.hasAttribute("reload-source"))&&o.isIntersecting&&(e(this,h).current&&e(this,h).current!==e(this,h).previous&&p(this,m,v).call(this,e(this,h).current),u(this,f,!0)),o.isIntersecting?this.dispatchEvent(new CustomEvent("sourceCapture")):(this.hasAttribute("reload-source")&&p(this,m,v).call(this,void 0),this.dispatchEvent(new CustomEvent("sourceRelease")))});a(this,b,()=>{e(this,n).set("loaded",!0),e(this,n).set("error",!1),e(this,n).set("loading",!1),!e(this,l)&&!e(this,c)&&w.loading.setLoaded(e(this,d),1),u(this,c,!0)});a(this,L,t=>{e(this,n).set("loaded",!1),e(this,n).set("error",!0),e(this,n).set("loading",!1),!e(this,l)&&!e(this,c)&&w.loading.setError(e(this,d),t),u(this,c,!0)});q.isBrowser&&(u(this,d,`source-consumer-${++T}`),u(this,g,new IntersectionObserver(e(this,E))))}get consumerElement(){return e(this,s)}get sourceManager(){return e(this,h)}get status(){return e(this,n)}get isLazy(){return e(this,l)}connectedCallback(){const t=this.getAttribute("srcset");t&&(u(this,s,this.createConsumer()),e(this,s).style.cssText=`
2
2
  display: block;
3
3
  width: 100%;
4
4
  height: 100%;
@@ -3,8 +3,8 @@ var y = (i) => {
3
3
  };
4
4
  var L = (i, r, s) => r.has(i) || y("Cannot " + s);
5
5
  var t = (i, r, s) => (L(i, r, "read from private field"), s ? s.call(i) : r.get(i)), a = (i, r, s) => r.has(i) ? y("Cannot add the same private member more than once") : r instanceof WeakSet ? r.add(i) : r.set(i, s), u = (i, r, s, n) => (L(i, r, "write to private field"), n ? n.call(i, s) : r.set(i, s), s), v = (i, r, s) => (L(i, r, "access private method"), s);
6
- import { S as A } from "../SourceManager-B8-EMNnd.js";
7
- import { a as $, b as j } from "../SourceManager-B8-EMNnd.js";
6
+ import { S as A } from "../SourceManager-B6wZpXUZ.js";
7
+ import { a as $, b as j } from "../SourceManager-B6wZpXUZ.js";
8
8
  import { loading as k } from "../loading/index.js";
9
9
  import { ClassLinkedStatus as x } from "../class-linked-status/index.js";
10
10
  import { i as M } from "../browser-0zX67oeU.js";
@@ -1 +1 @@
1
- "use strict";var R=s=>{throw TypeError(s)};var q=(s,r,e)=>r.has(s)||R("Cannot "+e);var t=(s,r,e)=>(q(s,r,"read from private field"),e?e.call(s):r.get(s)),h=(s,r,e)=>r.has(s)?R("Cannot add the same private member more than once"):r instanceof WeakSet?r.add(s):r.set(s,e),v=(s,r,e,c)=>(q(s,r,"write to private field"),c?c.call(s,e):r.set(s,e),e);var k=(s,r,e)=>new Promise((c,i)=>{var a=n=>{try{l(e.next(n))}catch(o){i(o)}},u=n=>{try{l(e.throw(n))}catch(o){i(o)}},l=n=>n.done?c(n.value):Promise.resolve(n.value).then(a,u);l((e=e.apply(s,r)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("../Store-BnA-dJsE.cjs"),M=require("../Derived-B-2UXnVE.cjs"),I=require("../Composed-ChlKoJEp.cjs");var A;class V extends d.Store{constructor(e,c,i){super(null,i);h(this,A);v(this,A,e.subscribe(a=>{this.current=a.current.map((u,l,n)=>c(u,l,n))}))}close(){super.close(),t(this,A).call(this)}}A=new WeakMap;var g;class j extends d.Store{constructor(e,c,i){super(null,i);h(this,g);let a=0;v(this,g,e.subscribe(u=>k(this,null,function*(){const l=++a,n=u.current.map((b,x,P)=>c(b,x,P)),o=yield Promise.all(n);l===a&&(this.current=o)})))}close(){super.close(),t(this,g).call(this)}}g=new WeakMap;var D,p;class O extends d.Store{constructor(e,c,i){super(null,i);h(this,D);h(this,p,new Map);v(this,D,e.subscribe(a=>{this.current=a.current.map((u,l,n)=>{let o=t(this,p).get(u.key);return(o===void 0||u.revalidate)&&(o=c(u.value,l,n),t(this,p).set(u.key,o)),o})}))}close(){super.close(),t(this,D).call(this),t(this,p).clear()}}D=new WeakMap,p=new WeakMap;var m,f;class T extends d.Store{constructor(e,c,i){super(null,i);h(this,m);h(this,f,new Map);let a=0;v(this,m,e.subscribe(u=>k(this,null,function*(){const l=++a,n=u.current.map((b,x,P)=>{let w=t(this,f).get(b.key);return(w===void 0||b.revalidate)&&(w=c(b.value,x,P),t(this,f).set(b.key,w)),w}),o=yield Promise.all(n);l===a&&(this.current=o)})))}close(){super.close(),t(this,m).call(this),t(this,f).clear()}}m=new WeakMap,f=new WeakMap;var C,y,S;class z extends d.Store{constructor(e,c,i){super(e,i);h(this,C);h(this,y);h(this,S,0);v(this,y,new d.Store(!1)),v(this,C,c),i!=null&&i.manualControl||this.refetch()}get isPending(){return t(this,y)}refetch(){t(this,y).current=!0,v(this,S,t(this,S)+1);const e=t(this,S);t(this,C).call(this).then(c=>{e===t(this,S)&&(t(this,y).current=!1,this.current=c)})}}C=new WeakMap,y=new WeakMap,S=new WeakMap;exports.Store=d.Store;exports.activeStores=d.activeStores;exports.storeRegistry=d.storeRegistry;exports.AsyncDerived=M.AsyncDerived;exports.Derived=M.Derived;exports.Composed=I.Composed;exports.AsyncCached=T;exports.AsyncDerivedArray=j;exports.Cached=O;exports.DerivedArray=V;exports.Resource=z;
1
+ "use strict";var f=e=>{throw TypeError(e)};var S=(e,t,r)=>t.has(e)||f("Cannot "+r);var s=(e,t,r)=>(S(e,t,"read from private field"),r?r.call(e):t.get(e)),h=(e,t,r)=>t.has(e)?f("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),d=(e,t,r,i)=>(S(e,t,"write to private field"),i?i.call(e,r):t.set(e,r),r);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../Store-npaZHvX4.cjs"),y=require("../Derived-BIBU-y7Z.cjs"),D=require("../Composed-C_4slJQ6.cjs");var a;class x extends o.Store{constructor(r,i,u){super(null,u);h(this,a);d(this,a,r.subscribe(v=>{this.current=v.current.map((g,b,m)=>i(g,b,m))}))}close(){super.close(),s(this,a).call(this)}}a=new WeakMap;var l,c,n;class C extends o.Store{constructor(r,i,u){super(r,u);h(this,l);h(this,c);h(this,n,0);d(this,c,new o.Store(!1)),d(this,l,i),u!=null&&u.manualControl||this.refetch()}get isPending(){return s(this,c)}refetch(){s(this,c).current=!0,d(this,n,s(this,n)+1);const r=s(this,n);s(this,l).call(this).then(i=>{r===s(this,n)&&(s(this,c).current=!1,this.current=i)})}}l=new WeakMap,c=new WeakMap,n=new WeakMap;exports.Store=o.Store;exports.activeStores=o.activeStores;exports.storeRegistry=o.storeRegistry;exports.Derived=y.Derived;exports.Composed=D.Composed;exports.DerivedArray=x;exports.Resource=C;
@@ -1,127 +1,53 @@
1
- var I = (s) => {
2
- throw TypeError(s);
1
+ var d = (e) => {
2
+ throw TypeError(e);
3
3
  };
4
- var M = (s, r, e) => r.has(s) || I("Cannot " + e);
5
- var t = (s, r, e) => (M(s, r, "read from private field"), e ? e.call(s) : r.get(s)), h = (s, r, e) => r.has(s) ? I("Cannot add the same private member more than once") : r instanceof WeakSet ? r.add(s) : r.set(s, e), d = (s, r, e, c) => (M(s, r, "write to private field"), c ? c.call(s, e) : r.set(s, e), e);
6
- var S = (s, r, e) => new Promise((c, i) => {
7
- var o = (n) => {
8
- try {
9
- l(e.next(n));
10
- } catch (a) {
11
- i(a);
12
- }
13
- }, u = (n) => {
14
- try {
15
- l(e.throw(n));
16
- } catch (a) {
17
- i(a);
18
- }
19
- }, l = (n) => n.done ? c(n.value) : Promise.resolve(n.value).then(o, u);
20
- l((e = e.apply(s, r)).next());
21
- });
22
- import { S as x } from "../Store-DGtldlBH.js";
23
- import { a as H, s as J } from "../Store-DGtldlBH.js";
24
- import { A as L, D as N } from "../Derived-CDGpSMKu.js";
25
- import { C as Q } from "../Composed-CoX1ImVk.js";
26
- var m;
27
- class j extends x {
28
- constructor(e, c, i) {
29
- super(null, i);
30
- h(this, m);
31
- d(this, m, e.subscribe((o) => {
32
- this.current = o.current.map((u, l, n) => c(u, l, n));
4
+ var m = (e, s, r) => s.has(e) || d("Cannot " + r);
5
+ var t = (e, s, r) => (m(e, s, "read from private field"), r ? r.call(e) : s.get(e)), u = (e, s, r) => s.has(e) ? d("Cannot add the same private member more than once") : s instanceof WeakSet ? s.add(e) : s.set(e, r), a = (e, s, r, c) => (m(e, s, "write to private field"), c ? c.call(e, r) : s.set(e, r), r);
6
+ import { S as l } from "../Store-C46i0nvr.js";
7
+ import { a as P, s as R } from "../Store-C46i0nvr.js";
8
+ import { D as A } from "../Derived-Vo_RsJfi.js";
9
+ import { C as k } from "../Composed-CfWa-69I.js";
10
+ var o;
11
+ class D extends l {
12
+ constructor(r, c, h) {
13
+ super(null, h);
14
+ u(this, o);
15
+ a(this, o, r.subscribe((x) => {
16
+ this.current = x.current.map((p, b, g) => c(p, b, g));
33
17
  }));
34
18
  }
35
19
  close() {
36
- super.close(), t(this, m).call(this);
20
+ super.close(), t(this, o).call(this);
37
21
  }
38
22
  }
39
- m = new WeakMap();
40
- var w;
41
- class q extends x {
42
- constructor(e, c, i) {
43
- super(null, i);
44
- h(this, w);
45
- let o = 0;
46
- d(this, w, e.subscribe((u) => S(this, null, function* () {
47
- const l = ++o, n = u.current.map((f, k, P) => c(f, k, P)), a = yield Promise.all(n);
48
- l === o && (this.current = a);
49
- })));
50
- }
51
- close() {
52
- super.close(), t(this, w).call(this);
53
- }
54
- }
55
- w = new WeakMap();
56
- var g, b;
57
- class z extends x {
58
- constructor(e, c, i) {
59
- super(null, i);
60
- h(this, g);
61
- h(this, b, /* @__PURE__ */ new Map());
62
- d(this, g, e.subscribe((o) => {
63
- this.current = o.current.map((u, l, n) => {
64
- let a = t(this, b).get(u.key);
65
- return (a === void 0 || u.revalidate) && (a = c(u.value, l, n), t(this, b).set(u.key, a)), a;
66
- });
67
- }));
68
- }
69
- close() {
70
- super.close(), t(this, g).call(this), t(this, b).clear();
71
- }
72
- }
73
- g = new WeakMap(), b = new WeakMap();
74
- var A, v;
75
- class B extends x {
76
- constructor(e, c, i) {
77
- super(null, i);
78
- h(this, A);
79
- h(this, v, /* @__PURE__ */ new Map());
80
- let o = 0;
81
- d(this, A, e.subscribe((u) => S(this, null, function* () {
82
- const l = ++o, n = u.current.map((f, k, P) => {
83
- let D = t(this, v).get(f.key);
84
- return (D === void 0 || f.revalidate) && (D = c(f.value, k, P), t(this, v).set(f.key, D)), D;
85
- }), a = yield Promise.all(n);
86
- l === o && (this.current = a);
87
- })));
88
- }
89
- close() {
90
- super.close(), t(this, A).call(this), t(this, v).clear();
91
- }
92
- }
93
- A = new WeakMap(), v = new WeakMap();
94
- var C, p, y;
95
- class E extends x {
96
- constructor(e, c, i) {
97
- super(e, i);
98
- h(this, C);
99
- h(this, p);
100
- h(this, y, 0);
101
- d(this, p, new x(!1)), d(this, C, c), i != null && i.manualControl || this.refetch();
23
+ o = new WeakMap();
24
+ var f, i, n;
25
+ class S extends l {
26
+ constructor(r, c, h) {
27
+ super(r, h);
28
+ u(this, f);
29
+ u(this, i);
30
+ u(this, n, 0);
31
+ a(this, i, new l(!1)), a(this, f, c), h != null && h.manualControl || this.refetch();
102
32
  }
103
33
  get isPending() {
104
- return t(this, p);
34
+ return t(this, i);
105
35
  }
106
36
  refetch() {
107
- t(this, p).current = !0, d(this, y, t(this, y) + 1);
108
- const e = t(this, y);
109
- t(this, C).call(this).then((c) => {
110
- e === t(this, y) && (t(this, p).current = !1, this.current = c);
37
+ t(this, i).current = !0, a(this, n, t(this, n) + 1);
38
+ const r = t(this, n);
39
+ t(this, f).call(this).then((c) => {
40
+ r === t(this, n) && (t(this, i).current = !1, this.current = c);
111
41
  });
112
42
  }
113
43
  }
114
- C = new WeakMap(), p = new WeakMap(), y = new WeakMap();
44
+ f = new WeakMap(), i = new WeakMap(), n = new WeakMap();
115
45
  export {
116
- B as AsyncCached,
117
- L as AsyncDerived,
118
- q as AsyncDerivedArray,
119
- z as Cached,
120
- Q as Composed,
121
- N as Derived,
122
- j as DerivedArray,
123
- E as Resource,
124
- x as Store,
125
- H as activeStores,
126
- J as storeRegistry
46
+ k as Composed,
47
+ A as Derived,
48
+ D as DerivedArray,
49
+ S as Resource,
50
+ l as Store,
51
+ P as activeStores,
52
+ R as storeRegistry
127
53
  };
@@ -1 +1 @@
1
- "use strict";var ae=Object.defineProperty,fe=Object.defineProperties;var le=Object.getOwnPropertyDescriptors;var Y=Object.getOwnPropertySymbols;var de=Object.prototype.hasOwnProperty,he=Object.prototype.propertyIsEnumerable;var X=e=>{throw TypeError(e)};var Q=(e,t,i)=>t in e?ae(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i,D=(e,t)=>{for(var i in t||(t={}))de.call(t,i)&&Q(e,i,t[i]);if(Y)for(var i of Y(t))he.call(t,i)&&Q(e,i,t[i]);return e},Z=(e,t)=>fe(e,le(t));var F=(e,t,i)=>t.has(e)||X("Cannot "+i);var o=(e,t,i)=>(F(e,t,"read from private field"),i?i.call(e):t.get(e)),w=(e,t,i)=>t.has(e)?X("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,i),y=(e,t,i,r)=>(F(e,t,"write to private field"),r?r.call(e,i):t.set(e,i),i),a=(e,t,i)=>(F(e,t,"access private method"),i);const S=require("./Store-BnA-dJsE.cjs"),_=require("./browser-CpzFX2xg.cjs"),O=require("./object-CCiXnER2.cjs"),H=require("./string-DhgS_iFl.cjs"),we=require("./connector/index.cjs"),me=new Set(["animate","animateMotion","animateTransform","circle","clipPath","defs","desc","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","foreignObject","g","image","line","linearGradient","listener","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialGradient","rect","set","solidColor","stop","svg","switch","symbol","text","textPath","title","tspan","view","use"]);var c,m,d,v,p,b,s,j,ee,te,P,B,ne,ie,re,oe,R,$,se,G,V,ue,W,k,z,J,I,L,T;const A=class A{constructor(...t){w(this,s);w(this,c,null);w(this,m,new Set);w(this,d,new Set);w(this,v);w(this,p);w(this,b);w(this,L,t=>{o(this,m).forEach(i=>{i(t)}),o(this,m).clear()});w(this,T,(t,i)=>{o(this,d).forEach(r=>{r(t,i)}),o(this,d).clear(),a(this,s,V).call(this)});if(_.isBrowser){const i=t[0],r=t[1];y(this,c,a(this,s,j).call(this,i,r==null?void 0:r.forceSvg)),a(this,s,te).call(this,r)}}get node(){return o(this,c)}set node(t){var i;a(this,s,V).call(this),y(this,c,t),(i=o(this,v))==null||i.call(this),o(this,c)instanceof Element&&y(this,p,[...o(this,c).querySelectorAll("store-root")]),a(this,s,G).call(this),a(this,s,P).call(this)}};c=new WeakMap,m=new WeakMap,d=new WeakMap,v=new WeakMap,p=new WeakMap,b=new WeakMap,s=new WeakSet,j=function(t,i){let r=null;if(t instanceof Node)r=t;else if(typeof t=="string")if(!t.includes("<")&&t.includes("-"))r=new(customElements.get(t));else if(t.includes("<")){const u=document.createElement("div");u.innerHTML=t,r=u.firstElementChild}else me.has(t)||i?r=document.createElementNS("http://www.w3.org/2000/svg",t):r=document.createElement(t);else r=document.createElement("div");return r},ee=function(t){return t instanceof HTMLElement||t instanceof SVGElement},te=function(t){if(!t)return;const i=a(this,s,ee).call(this,o(this,c)),r=t.ref;delete t.ref,t!=null&&t.onConnect&&(o(this,m).add(t.onConnect),delete t.onConnect),t!=null&&t.onDisconnect&&(o(this,d).add(t.onDisconnect),delete t.onDisconnect);let u,f;for(const l in t){const h=t[l];l==="class"&&i?a(this,s,B).call(this,h):l==="style"&&i?a(this,s,re).call(this,h):l==="lightChildren"?a(this,s,k).call(this,o(this,c),h):l==="children"?a(this,s,k).call(this,o(this,c)instanceof Element?o(this,c).shadowRoot||o(this,c):o(this,c),h):l==="connectedClass"?o(this,m).add(()=>{requestAnimationFrame(()=>{o(this,c).classList.add(typeof h=="boolean"?"connected":h)})}):l.startsWith("on")?(f||(f={}),f[l]=h):(u||(u={}),u[l]=h)}a(this,s,ue).call(this,u),a(this,s,se).call(this,f),r&&(typeof r=="function"?r(o(this,c)):r.current=o(this,c)),a(this,s,P).call(this)},P=function(){if(_.isBrowser&&(o(this,d).size||o(this,m).size)){const t=o(this,c)instanceof DocumentFragment?o(this,c).firstChild:o(this,c);y(this,v,we.connector.subscribe(t,{connectCallback:o(this,L),disconnectCallback:o(this,T),unsubscribeAfterDisconnect:!0,maxWaitSec:20}))}},B=function(t){if(t){if(typeof t=="string")o(this,c).classList.add(t);else if(Array.isArray(t))t.forEach(i=>{i&&a(this,s,B).call(this,i)});else if(typeof t=="object")if(t instanceof S.Store)a(this,s,ne).call(this,t);else for(const i in t){const r=t[i];r instanceof S.Store?a(this,s,ie).call(this,i,r):r?o(this,c).classList.add(i):o(this,c).classList.remove(i)}}else return},ne=function(t){o(this,d).add(t.subscribe(({current:i,previous:r})=>{r&&[r].flat().forEach(u=>{u&&o(this,c).classList.remove(u)}),i&&[i].flat().forEach(u=>{u&&o(this,c).classList.add(u)})}))},ie=function(t,i){o(this,d).add(i.subscribe(({current:r})=>{r?o(this,c).classList.add(t):o(this,c).classList.remove(t)}))},re=function(t){if(!t)return;o(this,c).tagName==="style"||o(this,c).tagName==="STYLE"?a(this,s,R).call(this,t):a(this,s,oe).call(this,t)},oe=function(t){for(const i in t){const r=i,u=t[r];u instanceof S.Store?o(this,d).add(u.subscribe(({current:f})=>{a(this,s,$).call(this,r,f)})):a(this,s,$).call(this,r,u)}},R=function(t){for(const i in t){const r=t[i];if(typeof r=="object"&&!(r instanceof S.Store))o(this,c).appendChild(document.createTextNode(`${i} {`)),a(this,s,R).call(this,r),o(this,c).appendChild(document.createTextNode("}"));else if(r instanceof S.Store){const u=document.createTextNode("");o(this,d).add(r.subscribe(f=>{f.current?u.nodeValue=`${H.camelToKebab(i)}: ${f.current};`:u.nodeValue=""})),o(this,c).appendChild(u)}else o(this,c).appendChild(document.createTextNode(`${H.camelToKebab(i)}: ${r};`))}},$=function(t,i){t.includes("--")?i?o(this,c).style.setProperty(t,i.toString()):o(this,c).style.removeProperty(t):i?o(this,c).style[t]=i.toString():o(this,c).style[t]=""},se=function(t){if(t){o(this,b)||y(this,b,[]);for(const i in t){const r=i,u=H.uncapitalize(r.split("on").slice(1).join("on")),f=t[r];typeof f=="object"?o(this,b).push({name:u,callback:f.callback,options:f.options}):typeof f=="function"&&o(this,b).push({name:u,callback:f})}a(this,s,G).call(this)}},G=function(){var t;(t=o(this,b))==null||t.forEach(i=>{o(this,c).addEventListener(i.name,i.callback,i.options)})},V=function(){var t;(t=o(this,b))==null||t.forEach(i=>{o(this,c).removeEventListener(i.name,i.callback,i.options)})},ue=function(t){for(const i in t){const r=t[i];r instanceof S.Store?o(this,d).add(r.subscribe(({current:u})=>{a(this,s,W).call(this,i,u)})):a(this,s,W).call(this,i,r)}},W=function(t,i){var u,f;const r=o(this,c);if(t in r&&!((f=(u=r.constructor)==null?void 0:u.observedAttributes)!=null&&f.includes(t)))i!=null&&(r[t]=i.toString());else if(i!=null){const l=i.toString();t.includes("xlink")?r.setAttributeNS("http://www.w3.org/1999/xlink",t,l):r.setAttribute(t,l)}},k=function(t,i){i&&(i=[i].flat(),i.forEach(r=>{if(r instanceof S.Store){const u=document.createElement("div");u.style.display="contents",t.appendChild(u),o(this,p)||y(this,p,[]);const f=o(this,p).length;u.setAttribute("store-root",""),o(this,p).push(u),o(this,d).add(r.subscribe(({current:l,previous:h})=>{const E=o(this,p)[f];E.dispatchEvent(new CustomEvent("beforeChildrenChange",{bubbles:!0,composed:!0}));const x=Array.from(E.childNodes),K=Array.isArray(l)?l:[l],ce=Array.isArray(h)?h:[h],U=[],q=[];x.length&&ce.forEach((g,N)=>{K.includes(g)?q.push(g):U.push(x[N])}),K.forEach((g,N)=>{if(q[N]!=null){if(g!==q[N]){const C=a(this,s,J).call(this,g),M=x[N];C instanceof Node&&!M.isEqualNode(C)?E.replaceChild(C,M):E.removeChild(M)}}else{const C=a(this,s,J).call(this,g);C instanceof Node&&u.appendChild(C)}}),U.forEach(g=>{E.removeChild(g)}),E.dispatchEvent(new CustomEvent("afterChildrenChange",{bubbles:!0,composed:!0}))}))}else if(r instanceof A)a(this,s,z).call(this,t,r.node);else if(r instanceof Function)a(this,s,k).call(this,t,O.isESClass(r)?new r:r());else{const u=a(this,s,I).call(this,r);u instanceof Node&&a(this,s,z).call(this,t,u)}}))},z=function(t,i){!(t instanceof ShadowRoot)&&i instanceof HTMLElement&&i.tagName==="STYLE"?(o(this,m).add(()=>{[...document.head.querySelectorAll("style")].find(u=>u.outerHTML===i.outerHTML)||document.head.appendChild(i)}),o(this,d).add(()=>{i.remove()})):t.appendChild(i)},J=function(t){return t instanceof A?t.node:typeof t=="function"?O.isESClass(t)?new t:t():a(this,s,I).call(this,t)},I=function(t){if(t instanceof Node)return t;if(t!=null){const i=String(t);if(i.trim().startsWith("<")&&i.trim().endsWith(">")){const r=document.createElement("div");return r.innerHTML=i,r.firstElementChild}else return document.createTextNode(i)}else return},L=new WeakMap,T=new WeakMap;let n=A;function pe(...e){return new n(...e)}function be(e){return new n("a",e)}function ge(e){return new n("abbr",e)}function ye(e){return new n("address",e)}function Se(e){return new n("area",e)}function Ee(e){return new n("article",e)}function Ce(e){return new n("aside",e)}function Ne(e){return new n("audio",e)}function ve(e){return new n("b",e)}function ke(e){return new n("base",e)}function Le(e){return new n("bdi",e)}function Te(e){return new n("bdo",e)}function Ae(e){return new n("blockquote",e)}function xe(e){return new n("body",e)}function qe(e){return new n("br",e)}function Me(e){return new n("button",e)}function De(e){return new n("canvas",e)}function Fe(e){return new n("caption",e)}function He(e){return new n("cite",e)}function Pe(e){return new n("code",e)}function Be(e){return new n("col",e)}function Re(e){return new n("colgroup",e)}function $e(e){return new n("data",e)}function Ge(e){return new n("datalist",e)}function Ve(e){return new n("dd",e)}function We(e){return new n("del",e)}function ze(e){return new n("details",e)}function Je(e){return new n("dfn",e)}function Ie(e){return new n("dialog",e)}function Ke(e){return new n("div",e)}function Ue(e){return new n("dl",e)}function Ye(e){return new n("dt",e)}function Qe(e){return new n("em",e)}function Xe(e){return new n("embed",e)}function Ze(e){return new n("fieldset",e)}function _e(e){return new n("figcaption",e)}function Oe(e){return new n("figure",e)}function je(e){return new n("footer",e)}function et(e){return new n("form",e)}function tt(e){return new n("h1",e)}function nt(e){return new n("h2",e)}function it(e){return new n("h3",e)}function rt(e){return new n("h4",e)}function ot(e){return new n("h5",e)}function st(e){return new n("h6",e)}function ut(e){return new n("head",e)}function ct(e){return new n("header",e)}function at(e){return new n("hgroup",e)}function ft(e){return new n("hr",e)}function lt(e){return new n("html",e)}function dt(e){return new n("i",e)}function ht(e){return new n("iframe",e)}function wt(e){return new n("img",e)}function mt(e){return new n("input",e)}function pt(e){return new n("ins",e)}function bt(e){return new n("kbd",e)}function gt(e){return new n("label",e)}function yt(e){return new n("legend",e)}function St(e){return new n("li",e)}function Et(e){return new n("link",e)}function Ct(e){return new n("main",e)}function Nt(e){return new n("map",e)}function vt(e){return new n("mark",e)}function kt(e){return new n("menu",e)}function Lt(e){return new n("meta",e)}function Tt(e){return new n("meter",e)}function At(e){return new n("nav",e)}function xt(e){return new n("noscript",e)}function qt(e){return new n("object",e)}function Mt(e){return new n("ol",e)}function Dt(e){return new n("optgroup",e)}function Ft(e){return new n("option",e)}function Ht(e){return new n("output",e)}function Pt(e){return new n("p",e)}function Bt(e){return new n("picture",e)}function Rt(e){return new n("pre",e)}function $t(e){return new n("progress",e)}function Gt(e){return new n("q",e)}function Vt(e){return new n("rp",e)}function Wt(e){return new n("rt",e)}function zt(e){return new n("ruby",e)}function Jt(e){return new n("s",e)}function It(e){return new n("samp",e)}function Kt(e){return new n("script",e)}function Ut(e){return new n("search",e)}function Yt(e){return new n("section",e)}function Qt(e){return new n("select",e)}function Xt(e){return new n("slot",e)}function Zt(e){return new n("small",e)}function _t(e){return new n("source",e)}function Ot(e){return new n("span",e)}function jt(e){return new n("strong",e)}function en(e){return new n("style",{style:e})}function tn(e){return new n("sub",e)}function nn(e){return new n("summary",e)}function rn(e){return new n("sup",e)}function on(e){return new n("table",e)}function sn(e){return new n("tbody",e)}function un(e){return new n("td",e)}function cn(e){return new n("template",e)}function an(e){return new n("textarea",e)}function fn(e){return new n("tfoot",e)}function ln(e){return new n("th",e)}function dn(e){return new n("thead",e)}function hn(e){return new n("time",e)}function wn(e){return new n("title",e)}function mn(e){return new n("tr",e)}function pn(e){return new n("track",e)}function bn(e){return new n("u",e)}function gn(e){return new n("ul",e)}function yn(e){return new n("var",e)}function Sn(e){return new n("video",e)}function En(e){return new n("wbr",e)}function Cn(e){return new n(document.createDocumentFragment(),e)}function Nn(e){return new n(document.createTextNode(""),e)}function vn(e){return new n("div",Z(D({},e),{style:D({display:"contents"},e==null?void 0:e.style)}))}exports.ElementConstructor=n;exports.a=be;exports.abbr=ge;exports.address=ye;exports.area=Se;exports.article=Ee;exports.aside=Ce;exports.audio=Ne;exports.b=ve;exports.base=ke;exports.bdi=Le;exports.bdo=Te;exports.blockquote=Ae;exports.body=xe;exports.br=qe;exports.button=Me;exports.canvas=De;exports.caption=Fe;exports.cite=He;exports.code=Pe;exports.col=Be;exports.colgroup=Re;exports.contents=vn;exports.data=$e;exports.datalist=Ge;exports.dd=Ve;exports.del=We;exports.details=ze;exports.dfn=Je;exports.dialog=Ie;exports.div=Ke;exports.dl=Ue;exports.dt=Ye;exports.element=pe;exports.em=Qe;exports.embed=Xe;exports.empty=Nn;exports.fieldset=Ze;exports.figcaption=_e;exports.figure=Oe;exports.footer=je;exports.form=et;exports.fragment=Cn;exports.h1=tt;exports.h2=nt;exports.h3=it;exports.h4=rt;exports.h5=ot;exports.h6=st;exports.head=ut;exports.header=ct;exports.hgroup=at;exports.hr=ft;exports.html=lt;exports.htmlVar=yn;exports.i=dt;exports.iframe=ht;exports.img=wt;exports.input=mt;exports.ins=pt;exports.kbd=bt;exports.label=gt;exports.legend=yt;exports.li=St;exports.link=Et;exports.main=Ct;exports.map=Nt;exports.mark=vt;exports.menu=kt;exports.meta=Lt;exports.meter=Tt;exports.nav=At;exports.noscript=xt;exports.object=qt;exports.ol=Mt;exports.optgroup=Dt;exports.option=Ft;exports.output=Ht;exports.p=Pt;exports.picture=Bt;exports.pre=Rt;exports.progress=$t;exports.q=Gt;exports.rp=Vt;exports.rt=Wt;exports.ruby=zt;exports.s=Jt;exports.samp=It;exports.script=Kt;exports.search=Ut;exports.section=Yt;exports.select=Qt;exports.slot=Xt;exports.small=Zt;exports.source=_t;exports.span=Ot;exports.strong=jt;exports.style=en;exports.sub=tn;exports.summary=nn;exports.sup=rn;exports.table=on;exports.tbody=sn;exports.td=un;exports.template=cn;exports.textarea=an;exports.tfoot=fn;exports.th=ln;exports.thead=dn;exports.time=hn;exports.title=wn;exports.tr=mn;exports.track=pn;exports.u=bn;exports.ul=gn;exports.video=Sn;exports.wbr=En;
1
+ "use strict";var ae=Object.defineProperty,fe=Object.defineProperties;var le=Object.getOwnPropertyDescriptors;var Y=Object.getOwnPropertySymbols;var de=Object.prototype.hasOwnProperty,he=Object.prototype.propertyIsEnumerable;var X=e=>{throw TypeError(e)};var Q=(e,t,i)=>t in e?ae(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i,D=(e,t)=>{for(var i in t||(t={}))de.call(t,i)&&Q(e,i,t[i]);if(Y)for(var i of Y(t))he.call(t,i)&&Q(e,i,t[i]);return e},Z=(e,t)=>fe(e,le(t));var F=(e,t,i)=>t.has(e)||X("Cannot "+i);var o=(e,t,i)=>(F(e,t,"read from private field"),i?i.call(e):t.get(e)),w=(e,t,i)=>t.has(e)?X("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,i),y=(e,t,i,r)=>(F(e,t,"write to private field"),r?r.call(e,i):t.set(e,i),i),a=(e,t,i)=>(F(e,t,"access private method"),i);const S=require("./Store-npaZHvX4.cjs"),_=require("./browser-CpzFX2xg.cjs"),O=require("./object-CCiXnER2.cjs"),H=require("./string-DhgS_iFl.cjs"),we=require("./connector/index.cjs"),me=new Set(["animate","animateMotion","animateTransform","circle","clipPath","defs","desc","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","foreignObject","g","image","line","linearGradient","listener","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialGradient","rect","set","solidColor","stop","svg","switch","symbol","text","textPath","title","tspan","view","use"]);var c,m,d,v,p,b,s,j,ee,te,P,B,ne,ie,re,oe,R,$,se,G,V,ue,W,k,z,J,I,L,T;const A=class A{constructor(...t){w(this,s);w(this,c,null);w(this,m,new Set);w(this,d,new Set);w(this,v);w(this,p);w(this,b);w(this,L,t=>{o(this,m).forEach(i=>{i(t)}),o(this,m).clear()});w(this,T,(t,i)=>{o(this,d).forEach(r=>{r(t,i)}),o(this,d).clear(),a(this,s,V).call(this)});if(_.isBrowser){const i=t[0],r=t[1];y(this,c,a(this,s,j).call(this,i,r==null?void 0:r.forceSvg)),a(this,s,te).call(this,r)}}get node(){return o(this,c)}set node(t){var i;a(this,s,V).call(this),y(this,c,t),(i=o(this,v))==null||i.call(this),o(this,c)instanceof Element&&y(this,p,[...o(this,c).querySelectorAll("store-root")]),a(this,s,G).call(this),a(this,s,P).call(this)}};c=new WeakMap,m=new WeakMap,d=new WeakMap,v=new WeakMap,p=new WeakMap,b=new WeakMap,s=new WeakSet,j=function(t,i){let r=null;if(t instanceof Node)r=t;else if(typeof t=="string")if(!t.includes("<")&&t.includes("-"))r=new(customElements.get(t));else if(t.includes("<")){const u=document.createElement("div");u.innerHTML=t,r=u.firstElementChild}else me.has(t)||i?r=document.createElementNS("http://www.w3.org/2000/svg",t):r=document.createElement(t);else r=document.createElement("div");return r},ee=function(t){return t instanceof HTMLElement||t instanceof SVGElement},te=function(t){if(!t)return;const i=a(this,s,ee).call(this,o(this,c)),r=t.ref;delete t.ref,t!=null&&t.onConnect&&(o(this,m).add(t.onConnect),delete t.onConnect),t!=null&&t.onDisconnect&&(o(this,d).add(t.onDisconnect),delete t.onDisconnect);let u,f;for(const l in t){const h=t[l];l==="class"&&i?a(this,s,B).call(this,h):l==="style"&&i?a(this,s,re).call(this,h):l==="lightChildren"?a(this,s,k).call(this,o(this,c),h):l==="children"?a(this,s,k).call(this,o(this,c)instanceof Element?o(this,c).shadowRoot||o(this,c):o(this,c),h):l==="connectedClass"?o(this,m).add(()=>{requestAnimationFrame(()=>{o(this,c).classList.add(typeof h=="boolean"?"connected":h)})}):l.startsWith("on")?(f||(f={}),f[l]=h):(u||(u={}),u[l]=h)}a(this,s,ue).call(this,u),a(this,s,se).call(this,f),r&&(typeof r=="function"?r(o(this,c)):r.current=o(this,c)),a(this,s,P).call(this)},P=function(){if(_.isBrowser&&(o(this,d).size||o(this,m).size)){const t=o(this,c)instanceof DocumentFragment?o(this,c).firstChild:o(this,c);y(this,v,we.connector.subscribe(t,{connectCallback:o(this,L),disconnectCallback:o(this,T),unsubscribeAfterDisconnect:!0,maxWaitSec:20}))}},B=function(t){if(t){if(typeof t=="string")o(this,c).classList.add(t);else if(Array.isArray(t))t.forEach(i=>{i&&a(this,s,B).call(this,i)});else if(typeof t=="object")if(t instanceof S.Store)a(this,s,ne).call(this,t);else for(const i in t){const r=t[i];r instanceof S.Store?a(this,s,ie).call(this,i,r):r?o(this,c).classList.add(i):o(this,c).classList.remove(i)}}else return},ne=function(t){o(this,d).add(t.subscribe(({current:i,previous:r})=>{r&&[r].flat().forEach(u=>{u&&o(this,c).classList.remove(u)}),i&&[i].flat().forEach(u=>{u&&o(this,c).classList.add(u)})}))},ie=function(t,i){o(this,d).add(i.subscribe(({current:r})=>{r?o(this,c).classList.add(t):o(this,c).classList.remove(t)}))},re=function(t){if(!t)return;o(this,c).tagName==="style"||o(this,c).tagName==="STYLE"?a(this,s,R).call(this,t):a(this,s,oe).call(this,t)},oe=function(t){for(const i in t){const r=i,u=t[r];u instanceof S.Store?o(this,d).add(u.subscribe(({current:f})=>{a(this,s,$).call(this,r,f)})):a(this,s,$).call(this,r,u)}},R=function(t){for(const i in t){const r=t[i];if(typeof r=="object"&&!(r instanceof S.Store))o(this,c).appendChild(document.createTextNode(`${i} {`)),a(this,s,R).call(this,r),o(this,c).appendChild(document.createTextNode("}"));else if(r instanceof S.Store){const u=document.createTextNode("");o(this,d).add(r.subscribe(f=>{f.current?u.nodeValue=`${H.camelToKebab(i)}: ${f.current};`:u.nodeValue=""})),o(this,c).appendChild(u)}else o(this,c).appendChild(document.createTextNode(`${H.camelToKebab(i)}: ${r};`))}},$=function(t,i){t.includes("--")?i?o(this,c).style.setProperty(t,i.toString()):o(this,c).style.removeProperty(t):i?o(this,c).style[t]=i.toString():o(this,c).style[t]=""},se=function(t){if(t){o(this,b)||y(this,b,[]);for(const i in t){const r=i,u=H.uncapitalize(r.split("on").slice(1).join("on")),f=t[r];typeof f=="object"?o(this,b).push({name:u,callback:f.callback,options:f.options}):typeof f=="function"&&o(this,b).push({name:u,callback:f})}a(this,s,G).call(this)}},G=function(){var t;(t=o(this,b))==null||t.forEach(i=>{o(this,c).addEventListener(i.name,i.callback,i.options)})},V=function(){var t;(t=o(this,b))==null||t.forEach(i=>{o(this,c).removeEventListener(i.name,i.callback,i.options)})},ue=function(t){for(const i in t){const r=t[i];r instanceof S.Store?o(this,d).add(r.subscribe(({current:u})=>{a(this,s,W).call(this,i,u)})):a(this,s,W).call(this,i,r)}},W=function(t,i){var u,f;const r=o(this,c);if(t in r&&!((f=(u=r.constructor)==null?void 0:u.observedAttributes)!=null&&f.includes(t)))i!=null&&(r[t]=i.toString());else if(i!=null){const l=i.toString();t.includes("xlink")?r.setAttributeNS("http://www.w3.org/1999/xlink",t,l):r.setAttribute(t,l)}},k=function(t,i){i&&(i=[i].flat(),i.forEach(r=>{if(r instanceof S.Store){const u=document.createElement("div");u.style.display="contents",t.appendChild(u),o(this,p)||y(this,p,[]);const f=o(this,p).length;u.setAttribute("store-root",""),o(this,p).push(u),o(this,d).add(r.subscribe(({current:l,previous:h})=>{const E=o(this,p)[f];E.dispatchEvent(new CustomEvent("beforeChildrenChange",{bubbles:!0,composed:!0}));const x=Array.from(E.childNodes),K=Array.isArray(l)?l:[l],ce=Array.isArray(h)?h:[h],U=[],q=[];x.length&&ce.forEach((g,N)=>{K.includes(g)?q.push(g):U.push(x[N])}),K.forEach((g,N)=>{if(q[N]!=null){if(g!==q[N]){const C=a(this,s,J).call(this,g),M=x[N];C instanceof Node&&!M.isEqualNode(C)?E.replaceChild(C,M):E.removeChild(M)}}else{const C=a(this,s,J).call(this,g);C instanceof Node&&u.appendChild(C)}}),U.forEach(g=>{E.removeChild(g)}),E.dispatchEvent(new CustomEvent("afterChildrenChange",{bubbles:!0,composed:!0}))}))}else if(r instanceof A)a(this,s,z).call(this,t,r.node);else if(r instanceof Function)a(this,s,k).call(this,t,O.isESClass(r)?new r:r());else{const u=a(this,s,I).call(this,r);u instanceof Node&&a(this,s,z).call(this,t,u)}}))},z=function(t,i){!(t instanceof ShadowRoot)&&i instanceof HTMLElement&&i.tagName==="STYLE"?(o(this,m).add(()=>{[...document.head.querySelectorAll("style")].find(u=>u.outerHTML===i.outerHTML)||document.head.appendChild(i)}),o(this,d).add(()=>{i.remove()})):t.appendChild(i)},J=function(t){return t instanceof A?t.node:typeof t=="function"?O.isESClass(t)?new t:t():a(this,s,I).call(this,t)},I=function(t){if(t instanceof Node)return t;if(t!=null){const i=String(t);if(i.trim().startsWith("<")&&i.trim().endsWith(">")){const r=document.createElement("div");return r.innerHTML=i,r.firstElementChild}else return document.createTextNode(i)}else return},L=new WeakMap,T=new WeakMap;let n=A;function pe(...e){return new n(...e)}function be(e){return new n("a",e)}function ge(e){return new n("abbr",e)}function ye(e){return new n("address",e)}function Se(e){return new n("area",e)}function Ee(e){return new n("article",e)}function Ce(e){return new n("aside",e)}function Ne(e){return new n("audio",e)}function ve(e){return new n("b",e)}function ke(e){return new n("base",e)}function Le(e){return new n("bdi",e)}function Te(e){return new n("bdo",e)}function Ae(e){return new n("blockquote",e)}function xe(e){return new n("body",e)}function qe(e){return new n("br",e)}function Me(e){return new n("button",e)}function De(e){return new n("canvas",e)}function Fe(e){return new n("caption",e)}function He(e){return new n("cite",e)}function Pe(e){return new n("code",e)}function Be(e){return new n("col",e)}function Re(e){return new n("colgroup",e)}function $e(e){return new n("data",e)}function Ge(e){return new n("datalist",e)}function Ve(e){return new n("dd",e)}function We(e){return new n("del",e)}function ze(e){return new n("details",e)}function Je(e){return new n("dfn",e)}function Ie(e){return new n("dialog",e)}function Ke(e){return new n("div",e)}function Ue(e){return new n("dl",e)}function Ye(e){return new n("dt",e)}function Qe(e){return new n("em",e)}function Xe(e){return new n("embed",e)}function Ze(e){return new n("fieldset",e)}function _e(e){return new n("figcaption",e)}function Oe(e){return new n("figure",e)}function je(e){return new n("footer",e)}function et(e){return new n("form",e)}function tt(e){return new n("h1",e)}function nt(e){return new n("h2",e)}function it(e){return new n("h3",e)}function rt(e){return new n("h4",e)}function ot(e){return new n("h5",e)}function st(e){return new n("h6",e)}function ut(e){return new n("head",e)}function ct(e){return new n("header",e)}function at(e){return new n("hgroup",e)}function ft(e){return new n("hr",e)}function lt(e){return new n("html",e)}function dt(e){return new n("i",e)}function ht(e){return new n("iframe",e)}function wt(e){return new n("img",e)}function mt(e){return new n("input",e)}function pt(e){return new n("ins",e)}function bt(e){return new n("kbd",e)}function gt(e){return new n("label",e)}function yt(e){return new n("legend",e)}function St(e){return new n("li",e)}function Et(e){return new n("link",e)}function Ct(e){return new n("main",e)}function Nt(e){return new n("map",e)}function vt(e){return new n("mark",e)}function kt(e){return new n("menu",e)}function Lt(e){return new n("meta",e)}function Tt(e){return new n("meter",e)}function At(e){return new n("nav",e)}function xt(e){return new n("noscript",e)}function qt(e){return new n("object",e)}function Mt(e){return new n("ol",e)}function Dt(e){return new n("optgroup",e)}function Ft(e){return new n("option",e)}function Ht(e){return new n("output",e)}function Pt(e){return new n("p",e)}function Bt(e){return new n("picture",e)}function Rt(e){return new n("pre",e)}function $t(e){return new n("progress",e)}function Gt(e){return new n("q",e)}function Vt(e){return new n("rp",e)}function Wt(e){return new n("rt",e)}function zt(e){return new n("ruby",e)}function Jt(e){return new n("s",e)}function It(e){return new n("samp",e)}function Kt(e){return new n("script",e)}function Ut(e){return new n("search",e)}function Yt(e){return new n("section",e)}function Qt(e){return new n("select",e)}function Xt(e){return new n("slot",e)}function Zt(e){return new n("small",e)}function _t(e){return new n("source",e)}function Ot(e){return new n("span",e)}function jt(e){return new n("strong",e)}function en(e){return new n("style",{style:e})}function tn(e){return new n("sub",e)}function nn(e){return new n("summary",e)}function rn(e){return new n("sup",e)}function on(e){return new n("table",e)}function sn(e){return new n("tbody",e)}function un(e){return new n("td",e)}function cn(e){return new n("template",e)}function an(e){return new n("textarea",e)}function fn(e){return new n("tfoot",e)}function ln(e){return new n("th",e)}function dn(e){return new n("thead",e)}function hn(e){return new n("time",e)}function wn(e){return new n("title",e)}function mn(e){return new n("tr",e)}function pn(e){return new n("track",e)}function bn(e){return new n("u",e)}function gn(e){return new n("ul",e)}function yn(e){return new n("var",e)}function Sn(e){return new n("video",e)}function En(e){return new n("wbr",e)}function Cn(e){return new n(document.createDocumentFragment(),e)}function Nn(e){return new n(document.createTextNode(""),e)}function vn(e){return new n("div",Z(D({},e),{style:D({display:"contents"},e==null?void 0:e.style)}))}exports.ElementConstructor=n;exports.a=be;exports.abbr=ge;exports.address=ye;exports.area=Se;exports.article=Ee;exports.aside=Ce;exports.audio=Ne;exports.b=ve;exports.base=ke;exports.bdi=Le;exports.bdo=Te;exports.blockquote=Ae;exports.body=xe;exports.br=qe;exports.button=Me;exports.canvas=De;exports.caption=Fe;exports.cite=He;exports.code=Pe;exports.col=Be;exports.colgroup=Re;exports.contents=vn;exports.data=$e;exports.datalist=Ge;exports.dd=Ve;exports.del=We;exports.details=ze;exports.dfn=Je;exports.dialog=Ie;exports.div=Ke;exports.dl=Ue;exports.dt=Ye;exports.element=pe;exports.em=Qe;exports.embed=Xe;exports.empty=Nn;exports.fieldset=Ze;exports.figcaption=_e;exports.figure=Oe;exports.footer=je;exports.form=et;exports.fragment=Cn;exports.h1=tt;exports.h2=nt;exports.h3=it;exports.h4=rt;exports.h5=ot;exports.h6=st;exports.head=ut;exports.header=ct;exports.hgroup=at;exports.hr=ft;exports.html=lt;exports.htmlVar=yn;exports.i=dt;exports.iframe=ht;exports.img=wt;exports.input=mt;exports.ins=pt;exports.kbd=bt;exports.label=gt;exports.legend=yt;exports.li=St;exports.link=Et;exports.main=Ct;exports.map=Nt;exports.mark=vt;exports.menu=kt;exports.meta=Lt;exports.meter=Tt;exports.nav=At;exports.noscript=xt;exports.object=qt;exports.ol=Mt;exports.optgroup=Dt;exports.option=Ft;exports.output=Ht;exports.p=Pt;exports.picture=Bt;exports.pre=Rt;exports.progress=$t;exports.q=Gt;exports.rp=Vt;exports.rt=Wt;exports.ruby=zt;exports.s=Jt;exports.samp=It;exports.script=Kt;exports.search=Ut;exports.section=Yt;exports.select=Qt;exports.slot=Xt;exports.small=Zt;exports.source=_t;exports.span=Ot;exports.strong=jt;exports.style=en;exports.sub=tn;exports.summary=nn;exports.sup=rn;exports.table=on;exports.tbody=sn;exports.td=un;exports.template=cn;exports.textarea=an;exports.tfoot=fn;exports.th=ln;exports.thead=dn;exports.time=hn;exports.title=wn;exports.tr=mn;exports.track=pn;exports.u=bn;exports.ul=gn;exports.video=Sn;exports.wbr=En;