aptechka 0.8.3 → 0.9.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.
- package/lib/{Animation-BInSRYNr.cjs → Animation-BCA-DBje.cjs} +1 -1
- package/lib/{Animation-uimN7sdT.js → Animation-DrSYnbgb.js} +1 -1
- package/lib/{Composed-Iihn8fT4.cjs → Composed-7Fe7TW_T.cjs} +1 -1
- package/lib/{Composed-Fa7owymK.js → Composed-pnupzTOv.js} +1 -1
- package/lib/{Damped-yrNXlkDE.js → Damped-C2FuK_3K.js} +1 -1
- package/lib/{Damped-Da3EnNN4.cjs → Damped-CSEZ0qwp.cjs} +1 -1
- package/lib/{Derived-DIWinC7Y.js → Derived-CFnbeEgJ.js} +1 -1
- package/lib/{Derived-D9VrDuf9.cjs → Derived-Dko3EP7m.cjs} +1 -1
- package/lib/ElementConstructor-9S0f1yAH.cjs +1 -0
- package/lib/ElementConstructor-CZKbNIQK.js +366 -0
- package/lib/Resource-BhF6Tj1p.js +49 -0
- package/lib/Resource-WCQEgLpB.cjs +1 -0
- package/lib/{SourceManager--L_rA28b.js → SourceManager-CmhlHGx7.js} +1 -1
- package/lib/{SourceManager-D6D2LVKf.cjs → SourceManager-DYnGpBi1.cjs} +1 -1
- package/lib/{Store-Qr3SNOSf.js → Store-Dsft7GtM.js} +1 -1
- package/lib/{Store-Cr3VaD9G.cjs → Store-kzJycezD.cjs} +1 -1
- package/lib/{Tweened-CjgvoOwL.js → Tweened-BrD2cPSC.js} +1 -1
- package/lib/{Tweened-DksN-Rz6.cjs → Tweened-D6dAu8Zi.cjs} +1 -1
- package/lib/{Viewport-BBYt1Ivy.cjs → Viewport-DRNfjjDY.cjs} +1 -1
- package/lib/{Viewport-Cgtq2I_K.js → Viewport-Ud7nellV.js} +1 -1
- package/lib/_createStore-Cf1MyeHa.cjs +1 -0
- package/lib/_createStore-Ck9bHolX.js +12 -0
- package/lib/accordion/AccordionElement.d.ts +1 -2
- package/lib/accordion/index.cjs +1 -1
- package/lib/accordion/index.js +110 -122
- package/lib/animation/index.cjs +1 -1
- package/lib/animation/index.js +3 -3
- package/lib/attribute/index.cjs +1 -1
- package/lib/attribute/index.js +1 -1
- package/lib/canvas/index.cjs +1 -1
- package/lib/canvas/index.d.ts +1 -2
- package/lib/canvas/index.js +69 -75
- package/lib/checkbox/index.cjs +1 -1
- package/lib/checkbox/index.d.ts +1 -3
- package/lib/checkbox/index.js +42 -46
- package/lib/class-linked-status/index.cjs +1 -1
- package/lib/class-linked-status/index.js +1 -1
- package/lib/controls/index.cjs +1 -1
- package/lib/controls/index.js +2 -2
- package/lib/counter/index.d.ts +1 -3
- package/lib/{createStylesheet-BxKITIVV.js → createStylesheet-C2gpLy4r.js} +1 -1
- package/lib/{createStylesheet-BsMSWX0q.cjs → createStylesheet-Di9WRypw.cjs} +1 -1
- package/lib/css-property/index.cjs +1 -1
- package/lib/css-property/index.js +1 -1
- package/lib/dev/index.cjs +1 -1
- package/lib/dev/index.js +1 -1
- package/lib/device/index.cjs +1 -1
- package/lib/device/index.js +1 -1
- package/lib/element-constructor/index.cjs +1 -1
- package/lib/element-constructor/index.js +114 -113
- package/lib/en3/helpers/index.cjs +1 -1
- package/lib/en3/helpers/index.js +2 -2
- package/lib/en3/misc/index.cjs +1 -1
- package/lib/en3/misc/index.js +2 -2
- package/lib/en3/objects/fluid/En3FluidElement.d.ts +1 -2
- package/lib/globals-DMjysUXI.js +8 -0
- package/lib/globals-bYKki-b9.cjs +1 -0
- package/lib/image/index.cjs +1 -1
- package/lib/image/index.js +8 -16
- package/lib/index-BtB-3MG7.js +265 -0
- package/lib/index-DQo2-dnB.cjs +9 -0
- package/lib/instantiate-BPZZn8jK.js +134 -0
- package/lib/instantiate-BWM-ipPW.cjs +1 -0
- package/lib/jsx/ComponentElement.d.ts +18 -0
- package/lib/jsx/globals.d.ts +13 -0
- package/lib/jsx/h.d.ts +6 -0
- package/lib/jsx/hooks/basic/_createStore.d.ts +4 -0
- package/lib/jsx/hooks/basic/attachInternals.d.ts +1 -0
- package/lib/jsx/hooks/basic/attachShadow.d.ts +1 -0
- package/lib/jsx/hooks/basic/attachStylesheet.d.ts +3 -0
- package/lib/jsx/hooks/basic/createContext.d.ts +2 -0
- package/lib/jsx/hooks/basic/onConnect.d.ts +3 -0
- package/lib/jsx/hooks/basic/onDisconnect.d.ts +3 -0
- package/lib/jsx/hooks/onAnimationFrame.cjs +1 -0
- package/lib/jsx/hooks/onAnimationFrame.d.ts +6 -0
- package/lib/jsx/hooks/onAnimationFrame.js +22 -0
- package/lib/jsx/hooks/onElementResize.cjs +1 -0
- package/lib/jsx/hooks/onElementResize.d.ts +5 -0
- package/lib/jsx/hooks/onElementResize.js +11 -0
- package/lib/jsx/hooks/onIntersection.cjs +1 -0
- package/lib/jsx/hooks/onIntersection.d.ts +5 -0
- package/lib/jsx/hooks/onIntersection.js +11 -0
- package/lib/jsx/hooks/onWindowResize.cjs +1 -0
- package/lib/jsx/hooks/onWindowResize.d.ts +3 -0
- package/lib/jsx/hooks/onWindowResize.js +8 -0
- package/lib/jsx/hooks/store/createComposed.d.ts +3 -0
- package/lib/jsx/hooks/store/createDerived.d.ts +3 -0
- package/lib/jsx/hooks/store/createDerivedArray.d.ts +3 -0
- package/lib/jsx/hooks/store/createResource.d.ts +3 -0
- package/lib/jsx/hooks/store/createStore.d.ts +3 -0
- package/lib/jsx/hooks/store/index.cjs +1 -0
- package/lib/jsx/hooks/store/index.d.ts +5 -0
- package/lib/jsx/hooks/store/index.js +27 -0
- package/lib/jsx/hooks/watchAttribute.cjs +1 -0
- package/lib/jsx/hooks/watchAttribute.d.ts +6 -0
- package/lib/jsx/hooks/watchAttribute.js +17 -0
- package/lib/jsx/hooks/watchCSSProperty.cjs +1 -0
- package/lib/jsx/hooks/watchCSSProperty.d.ts +7 -0
- package/lib/jsx/hooks/watchCSSProperty.js +17 -0
- package/lib/jsx/index.cjs +1 -0
- package/lib/jsx/index.d.ts +13 -0
- package/lib/jsx/index.js +91 -0
- package/lib/jsx/instantiate.d.ts +5 -0
- package/lib/jsx/register.d.ts +1 -0
- package/lib/jsx/render.d.ts +6 -0
- package/lib/jsx/type.d.ts +192 -0
- package/lib/ladder/index.cjs +1 -1
- package/lib/ladder/index.js +1 -1
- package/lib/media/index.cjs +1 -1
- package/lib/media/index.js +1 -1
- package/lib/modal/index.cjs +1 -1
- package/lib/modal/index.js +33 -36
- package/lib/morph/index.cjs +1 -1
- package/lib/morph/index.js +33 -33
- package/lib/onConnect-DGP866cj.cjs +1 -0
- package/lib/onConnect-y5DrxJ9P.js +7 -0
- package/lib/pointer/PointerElement.d.ts +1 -2
- package/lib/pointer/index.cjs +1 -1
- package/lib/pointer/index.js +106 -118
- package/lib/popover/PopoverButtonElement.d.ts +1 -2
- package/lib/popover/PopoverElement.d.ts +1 -2
- package/lib/popover/index.cjs +1 -1
- package/lib/popover/index.js +109 -125
- package/lib/router/index.cjs +1 -1
- package/lib/router/index.js +76 -73
- package/lib/scroll/ScrollElement.d.ts +1 -2
- package/lib/scroll/ScrollUserElement.d.ts +1 -2
- package/lib/scroll/index.cjs +1 -1
- package/lib/scroll/index.js +674 -753
- package/lib/select/SelectElement.d.ts +1 -3
- package/lib/select/SelectUserElement.d.ts +1 -2
- package/lib/select/index.cjs +1 -1
- package/lib/select/index.js +1 -1
- package/lib/sequence/index.cjs +1 -1
- package/lib/sequence/index.js +105 -108
- package/lib/slicer/SlicerElement.d.ts +1 -2
- package/lib/slicer/index.cjs +5 -5
- package/lib/slicer/index.js +88 -106
- package/lib/source/SourceElement.d.ts +1 -2
- package/lib/source/index.cjs +2 -2
- package/lib/source/index.js +20 -21
- package/lib/store/Derived.d.ts +3 -3
- package/lib/store/DerivedArray.d.ts +8 -0
- package/lib/store/Keyed.d.ts +13 -0
- package/lib/store/index.cjs +1 -1
- package/lib/store/index.d.ts +2 -0
- package/lib/store/index.js +32 -32
- package/lib/tags-BBOGIzDK.cjs +1 -0
- package/lib/tags-CefGDQtF.js +485 -0
- package/lib/theme/index.cjs +1 -1
- package/lib/theme/index.js +2 -2
- package/lib/tweaker/TweakerFieldElement.d.ts +1 -2
- package/lib/tweaker/TweakerFolderElement.d.ts +1 -2
- package/lib/tweaker/TweakerStoreManagerElement.d.ts +1 -2
- package/lib/tweaker/index.cjs +3 -3
- package/lib/tweaker/index.js +392 -472
- package/lib/video/index.cjs +1 -1
- package/lib/video/index.js +26 -30
- package/package.json +65 -9
- package/lib/custom-element/index.cjs +0 -1
- package/lib/custom-element/index.d.ts +0 -8
- package/lib/custom-element/index.js +0 -30
- package/lib/index-CzpP1Tg6.cjs +0 -9
- package/lib/index-Dwd_62sm.js +0 -301
- package/lib/tags-CAfasCGV.cjs +0 -1
- package/lib/tags-D9lNDPX8.js +0 -848
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var S=(i,s,t)=>{if(!s.has(i))throw TypeError("Cannot "+t)};var e=(i,s,t)=>(S(i,s,"read from private field"),t?t.call(i):s.get(i)),a=(i,s,t)=>{if(s.has(i))throw TypeError("Cannot add the same private member more than once");s instanceof WeakSet?s.add(i):s.set(i,t)},h=(i,s,t,n)=>(S(i,s,"write to private field"),n?n.call(i,t):s.set(i,t),t);var C=(i,s,t)=>(S(i,s,"access private method"),t);const M=require("./Store-
|
|
1
|
+
"use strict";var S=(i,s,t)=>{if(!s.has(i))throw TypeError("Cannot "+t)};var e=(i,s,t)=>(S(i,s,"read from private field"),t?t.call(i):s.get(i)),a=(i,s,t)=>{if(s.has(i))throw TypeError("Cannot add the same private member more than once");s instanceof WeakSet?s.add(i):s.set(i,t)},h=(i,s,t,n)=>(S(i,s,"write to private field"),n?n.call(i,t):s.set(i,t),t);var C=(i,s,t)=>(S(i,s,"access private method"),t);const M=require("./Store-kzJycezD.cjs"),y=require("./math-GDWEqu7y.cjs"),m=require("./polyfills-CM4SCDTt.cjs"),I=require("./ticker/index.cjs"),z=require("./order/index.cjs");var f,b,A,c,F,r,u,l,g,d,q,P,x;class N extends M.Store{constructor(t,n){super(t||0,n);a(this,q);a(this,f,void 0);a(this,b,z.TICK_ORDER.ANIMATION);a(this,A,void 0);a(this,c,new M.Store(!1));a(this,F,0);a(this,r,0);a(this,u,-1/0);a(this,l,1/0);a(this,g,0);a(this,d,null);a(this,x,t=>{this.handleAnimationFrame(t)});h(this,r,this.current)}get direction(){return e(this,F)}get target(){return e(this,r)}get min(){return e(this,u)}set min(t){h(this,u,t),this.set(e(this,r),{equalize:!0})}get max(){return e(this,l)}set max(t){h(this,l,t),this.set(e(this,r),{equalize:!0})}get from(){return e(this,g)}get isRunning(){return e(this,c)}get delta(){return Math.abs(e(this,r)-e(this,g))}get deltaProgress(){return this.delta?m.preciseNumber(Math.abs(this.current-e(this,g))/this.delta,6):0}get distance(){return Math.abs(e(this,l)-e(this,u))}get distanceProgress(){return this.distance?m.preciseNumber(Math.abs(this.current-e(this,u))/this.distance,6):0}set(t,n){(e(this,r)!==t||n!=null&&n.restart)&&(h(this,d,t),this.updateOptions(n),h(this,d,null),e(this,r)!==this.current&&this.start())}shift(t,n){this.set(e(this,r)+t,n)}reset(){super.reset(),this.set(this.initial,{equalize:!0})}close(){super.close(),this.reset(),this.unlistenAnimationFrame()}listenAnimationFrame(){e(this,c).current||(e(this,c).current=!0,I.ticker.subscribe(e(this,x),{maxFPS:e(this,f),order:e(this,b),culling:e(this,A)}))}unlistenAnimationFrame(){e(this,c).current&&(e(this,c).current=!1,I.ticker.unsubscribe(e(this,x)))}updateOptions(t){h(this,f,m.nullishCoalescing(t==null?void 0:t.maxFPS,e(this,f))),h(this,b,m.nullishCoalescing(t==null?void 0:t.order,e(this,b))),h(this,A,m.nullishCoalescing(t==null?void 0:t.culling,e(this,A))),h(this,u,m.nullishCoalescing(t==null?void 0:t.min,e(this,u))),h(this,l,m.nullishCoalescing(t==null?void 0:t.max,e(this,l))),C(this,q,P).call(this,typeof e(this,d)=="number"?e(this,d):e(this,r)),t!=null&&t.equalize&&(this.unlistenAnimationFrame(),this.current=e(this,r)),t!=null&&t.restart&&(this.unlistenAnimationFrame(),this.current=this.initial)}start(){this.listenAnimationFrame()}}f=new WeakMap,b=new WeakMap,A=new WeakMap,c=new WeakMap,F=new WeakMap,r=new WeakMap,u=new WeakMap,l=new WeakMap,g=new WeakMap,d=new WeakMap,q=new WeakSet,P=function(t){h(this,F,Math.sign(t-e(this,r))),h(this,r,y.clamp(t,e(this,u),e(this,l))),h(this,g,this.current)},x=new WeakMap;exports.Animation=N;
|
|
@@ -8,7 +8,7 @@ var e = (i, r, t) => (S(i, r, "read from private field"), t ? t.call(i) : r.get(
|
|
|
8
8
|
r instanceof WeakSet ? r.add(i) : r.set(i, t);
|
|
9
9
|
}, h = (i, r, t, u) => (S(i, r, "write to private field"), u ? u.call(i, t) : r.set(i, t), t);
|
|
10
10
|
var I = (i, r, t) => (S(i, r, "access private method"), t);
|
|
11
|
-
import { S as P } from "./Store-
|
|
11
|
+
import { S as P } from "./Store-Dsft7GtM.js";
|
|
12
12
|
import { c as R } from "./math-BOBiC4TN.js";
|
|
13
13
|
import { p as q, n as F } from "./polyfills-X6KXuHg-.js";
|
|
14
14
|
import { ticker as z } from "./ticker/index.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var p=(s,e,r)=>{if(!e.has(s))throw TypeError("Cannot "+r)};var c=(s,e,r)=>(p(s,e,"read from private field"),r?r.call(s):e.get(s)),t=(s,e,r)=>{if(e.has(s))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(s):e.set(s,r)};const b=require("./function-MthRj-GJ.cjs"),d=require("./Store-
|
|
1
|
+
"use strict";var p=(s,e,r)=>{if(!e.has(s))throw TypeError("Cannot "+r)};var c=(s,e,r)=>(p(s,e,"read from private field"),r?r.call(s):e.get(s)),t=(s,e,r)=>{if(e.has(s))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(s):e.set(s,r)};const b=require("./function-MthRj-GJ.cjs"),d=require("./Store-kzJycezD.cjs");var o;class l extends d.Store{constructor(r,u,n){super(null,n);t(this,o,[]);const i=b.debounce(()=>{this.current=u()},0);r.forEach(h=>{c(this,o).push(h.subscribe(()=>{i()}))})}close(){super.close(),c(this,o).forEach(r=>r())}}o=new WeakMap;exports.Composed=l;
|
|
@@ -8,7 +8,7 @@ var t = (s, r, o) => (n(s, r, "read from private field"), o ? o.call(s) : r.get(
|
|
|
8
8
|
r instanceof WeakSet ? r.add(s) : r.set(s, o);
|
|
9
9
|
};
|
|
10
10
|
import { d as h } from "./function-C10DGppn.js";
|
|
11
|
-
import { S as b } from "./Store-
|
|
11
|
+
import { S as b } from "./Store-Dsft7GtM.js";
|
|
12
12
|
var e;
|
|
13
13
|
class f extends b {
|
|
14
14
|
constructor(o, u, p) {
|
|
@@ -21,7 +21,7 @@ var a = (e, s, t) => (p(e, s, "read from private field"), t ? t.call(e) : s.get(
|
|
|
21
21
|
}, m = (e, s, t, r) => (p(e, s, "write to private field"), r ? r.call(e, t) : s.set(e, t), t);
|
|
22
22
|
import { d as B } from "./math-BOBiC4TN.js";
|
|
23
23
|
import { n as u, p as A } from "./polyfills-X6KXuHg-.js";
|
|
24
|
-
import { A as D } from "./Animation-
|
|
24
|
+
import { A as D } from "./Animation-DrSYnbgb.js";
|
|
25
25
|
var i, h;
|
|
26
26
|
class N extends D {
|
|
27
27
|
constructor(t, r) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var F=Object.defineProperty,b=Object.defineProperties;var y=Object.getOwnPropertyDescriptors;var l=Object.getOwnPropertySymbols;var C=Object.prototype.hasOwnProperty,O=Object.prototype.propertyIsEnumerable;var d=(e,t,s)=>t in e?F(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,g=(e,t)=>{for(var s in t||(t={}))C.call(t,s)&&d(e,s,t[s]);if(l)for(var s of l(t))O.call(t,s)&&d(e,s,t[s]);return e},f=(e,t)=>b(e,y(t));var p=(e,t,s)=>{if(!t.has(e))throw TypeError("Cannot "+s)};var a=(e,t,s)=>(p(e,t,"read from private field"),s?s.call(e):t.get(e)),u=(e,t,s)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,s)},n=(e,t,s,r)=>(p(e,t,"write to private field"),r?r.call(e,s):t.set(e,s),s);const v=require("./math-GDWEqu7y.cjs"),c=require("./polyfills-CM4SCDTt.cjs"),w=require("./Animation-
|
|
1
|
+
"use strict";var F=Object.defineProperty,b=Object.defineProperties;var y=Object.getOwnPropertyDescriptors;var l=Object.getOwnPropertySymbols;var C=Object.prototype.hasOwnProperty,O=Object.prototype.propertyIsEnumerable;var d=(e,t,s)=>t in e?F(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,g=(e,t)=>{for(var s in t||(t={}))C.call(t,s)&&d(e,s,t[s]);if(l)for(var s of l(t))O.call(t,s)&&d(e,s,t[s]);return e},f=(e,t)=>b(e,y(t));var p=(e,t,s)=>{if(!t.has(e))throw TypeError("Cannot "+s)};var a=(e,t,s)=>(p(e,t,"read from private field"),s?s.call(e):t.get(e)),u=(e,t,s)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,s)},n=(e,t,s,r)=>(p(e,t,"write to private field"),r?r.call(e,s):t.set(e,s),s);const v=require("./math-GDWEqu7y.cjs"),c=require("./polyfills-CM4SCDTt.cjs"),w=require("./Animation-BCA-DBje.cjs");var i,h;class B extends w.Animation{constructor(s,r){super(s,r);u(this,i,void 0);u(this,h,void 0);this.damping=20,this.stiffness=0,this.mass=0,n(this,i,0),n(this,h,0),this.updateOptions(f(g({},r),{equalize:!0}))}get velocity(){return a(this,i)}get speed(){return a(this,h)}updateOptions(s){this.damping=c.nullishCoalescing(s==null?void 0:s.damping,this.damping),this.mass=c.nullishCoalescing(s==null?void 0:s.mass,this.mass),this.stiffness=c.nullishCoalescing(s==null?void 0:s.stiffness,this.stiffness),super.updateOptions(s)}handleAnimationFrame(s){c.preciseNumber(this.current,6)===c.preciseNumber(this.target,6)&&(this.unlistenAnimationFrame(),this.current=this.target);const r=this.current,q=Math.abs(r-this.target);n(this,h,q/s.timeBetweenFrames);const m=s.timeBetweenFrames/1e3;if(this.mass||this.stiffness){const A=(this.target-this.current)*this.stiffness-a(this,i)*this.damping;n(this,i,a(this,i)+A/this.mass*m),this.current+=a(this,i)*m}else this.current=v.damp(this.current,this.target,this.damping,m)}}i=new WeakMap,h=new WeakMap;exports.Damped=B;
|
|
@@ -7,7 +7,7 @@ var o = (s, r, e) => (u(s, r, "read from private field"), e ? e.call(s) : r.get(
|
|
|
7
7
|
throw TypeError("Cannot add the same private member more than once");
|
|
8
8
|
r instanceof WeakSet ? r.add(s) : r.set(s, e);
|
|
9
9
|
}, n = (s, r, e, c) => (u(s, r, "write to private field"), c ? c.call(s, e) : r.set(s, e), e);
|
|
10
|
-
import { S as p } from "./Store-
|
|
10
|
+
import { S as p } from "./Store-Dsft7GtM.js";
|
|
11
11
|
var t;
|
|
12
12
|
class d extends p {
|
|
13
13
|
constructor(e, c, l) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var u=(e,r,s)=>{if(!r.has(e))throw TypeError("Cannot "+s)};var i=(e,r,s)=>(u(e,r,"read from private field"),s?s.call(e):r.get(e)),n=(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)},o=(e,r,s,c)=>(u(e,r,"write to private field"),c?c.call(e,s):r.set(e,s),s);const d=require("./Store-
|
|
1
|
+
"use strict";var u=(e,r,s)=>{if(!r.has(e))throw TypeError("Cannot "+s)};var i=(e,r,s)=>(u(e,r,"read from private field"),s?s.call(e):r.get(e)),n=(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)},o=(e,r,s,c)=>(u(e,r,"write to private field"),c?c.call(e,s):r.set(e,s),s);const d=require("./Store-kzJycezD.cjs");var t;class h extends d.Store{constructor(s,c,l){super(null,l);n(this,t,void 0);o(this,t,s.subscribe(b=>{this.current=c(b.current)}))}close(){super.close(),i(this,t).call(this)}}t=new WeakMap;exports.Derived=h;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var Z=(f,e,t)=>{if(!e.has(f))throw TypeError("Cannot "+t)};var i=(f,e,t)=>(Z(f,e,"read from private field"),t?t.call(f):e.get(f)),c=(f,e,t)=>{if(e.has(f))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(f):e.set(f,t)},E=(f,e,t,s)=>(Z(f,e,"write to private field"),s?s.call(f,t):e.set(f,t),t);var r=(f,e,t)=>(Z(f,e,"access private method"),t);const b=require("./Store-kzJycezD.cjs"),he=require("./browser-CpzFX2xg.cjs"),de=require("./object-CCiXnER2.cjs"),_=require("./string-DhgS_iFl.cjs"),we=require("./connector/index.cjs"),Le=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"]);var o,S,l,w,d,u,P,ue,B,me,R,ge,L,j,T,ee,G,Se,W,Ee,$,be,z,Ce,v,te,A,se,I,ye,k,ie,M,ne,J,pe,D,oe,N,F,x,re,q,ce,H,ae,V,K;const U=class U{constructor(...e){c(this,P);c(this,B);c(this,R);c(this,L);c(this,T);c(this,G);c(this,W);c(this,$);c(this,z);c(this,v);c(this,A);c(this,I);c(this,k);c(this,M);c(this,J);c(this,D);c(this,N);c(this,x);c(this,q);c(this,H);c(this,o,null);c(this,S,new Set);c(this,l,new Set);c(this,w,void 0);c(this,d,void 0);c(this,u,void 0);c(this,V,()=>{i(this,S).forEach(e=>{e()}),i(this,S).clear()});c(this,K,e=>{i(this,l).forEach(t=>{t(e)}),i(this,l).clear(),r(this,M,ne).call(this)});if(he.isBrowser){const t=e[0],s=e[1];E(this,o,r(this,P,ue).call(this,t,s==null?void 0:s.forceSvg)),r(this,R,ge).call(this,s)}}get node(){return i(this,o)}set node(e){var t;r(this,M,ne).call(this),E(this,o,e),(t=i(this,w))==null||t.call(this),i(this,o)instanceof Element&&E(this,d,[...i(this,o).querySelectorAll("store-root")]),r(this,k,ie).call(this),r(this,L,j).call(this)}};o=new WeakMap,S=new WeakMap,l=new WeakMap,w=new WeakMap,d=new WeakMap,u=new WeakMap,P=new WeakSet,ue=function(e,t){let s=null;if(e instanceof Node)s=e;else if(typeof e=="string")if(!e.includes("<")&&e.includes("-"))s=new(customElements.get(e));else if(e.includes("<")){const n=document.createElement("div");n.innerHTML=e,s=n.firstElementChild}else Le.has(e)||t?s=document.createElementNS("http://www.w3.org/2000/svg",e):s=document.createElement(e);else s=document.createElement("div");return s},B=new WeakSet,me=function(e){return e instanceof HTMLElement||e instanceof SVGElement},R=new WeakSet,ge=function(e){if(!e)return;const t=r(this,B,me).call(this,i(this,o)),s=e.ref;delete e.ref,e!=null&&e.onConnect&&(i(this,S).add(e.onConnect),delete e.onConnect),e!=null&&e.onDisconnect&&(i(this,l).add(e.onDisconnect),delete e.onDisconnect);let n,a;for(const h in e){const m=e[h];h==="class"&&t?r(this,T,ee).call(this,m):h==="style"&&t?r(this,$,be).call(this,m):h==="lightChildren"?r(this,N,F).call(this,i(this,o),m):h==="children"?r(this,N,F).call(this,i(this,o)instanceof Element?i(this,o).shadowRoot||i(this,o):i(this,o),m):h.startsWith("on")?(a||(a={}),a[h]=m):(n||(n={}),n[h]=m)}r(this,J,pe).call(this,n),r(this,I,ye).call(this,a),s&&(typeof s=="function"?s(i(this,o)):s.current=i(this,o)),r(this,L,j).call(this)},L=new WeakSet,j=function(){if(he.isBrowser&&(i(this,l).size||i(this,S).size)){const e=i(this,o)instanceof DocumentFragment?i(this,o).firstChild:i(this,o);E(this,w,we.connector.subscribe(e,{connectCallback:i(this,V),disconnectCallback:i(this,K),unsubscribeAfterDisconnect:!0,maxWaitSec:20}))}},T=new WeakSet,ee=function(e){if(e){if(typeof e=="string")i(this,o).classList.add(e);else if(Array.isArray(e))e.forEach(t=>{r(this,T,ee).call(this,t)});else if(typeof e=="object")if(e instanceof b.Store)r(this,G,Se).call(this,e);else for(const t in e){const s=e[t];s instanceof b.Store?r(this,W,Ee).call(this,t,s):s?i(this,o).classList.add(t):i(this,o).classList.remove(t)}}else return},G=new WeakSet,Se=function(e){i(this,l).add(e.subscribe(({current:t,previous:s})=>{s&&[s].flat().forEach(n=>{n&&i(this,o).classList.remove(n)}),t&&[t].flat().forEach(n=>{n&&i(this,o).classList.add(n)})}))},W=new WeakSet,Ee=function(e,t){i(this,l).add(t.subscribe(({current:s})=>{s?i(this,o).classList.add(e):i(this,o).classList.remove(e)}))},$=new WeakSet,be=function(e){if(!e)return;i(this,o).tagName==="style"||i(this,o).tagName==="STYLE"?r(this,v,te).call(this,e):r(this,z,Ce).call(this,e)},z=new WeakSet,Ce=function(e){for(const t in e){const s=t,n=e[s];n instanceof b.Store?i(this,l).add(n.subscribe(({current:a})=>{r(this,A,se).call(this,s,a)})):r(this,A,se).call(this,s,n)}},v=new WeakSet,te=function(e){for(const t in e){const s=e[t];if(typeof s=="object"&&!(s instanceof b.Store))i(this,o).appendChild(document.createTextNode(`${t} {`)),r(this,v,te).call(this,s),i(this,o).appendChild(document.createTextNode("}"));else if(s instanceof b.Store){const n=document.createTextNode("");i(this,l).add(s.subscribe(a=>{a.current?n.nodeValue=`${_.camelToKebab(t)}: ${a.current};`:n.nodeValue=""})),i(this,o).appendChild(n)}else i(this,o).appendChild(document.createTextNode(`${_.camelToKebab(t)}: ${s};`))}},A=new WeakSet,se=function(e,t){e.includes("--")?t?i(this,o).style.setProperty(e,t.toString()):i(this,o).style.removeProperty(e):t?i(this,o).style[e]=t.toString():i(this,o).style[e]=""},I=new WeakSet,ye=function(e){if(e){i(this,u)||E(this,u,[]);for(const t in e){const s=t,n=_.uncapitalize(s.split("on").slice(1).join("on")),a=e[s];typeof a=="object"?i(this,u).push({name:n,callback:a.callback,options:a.options}):typeof a=="function"&&i(this,u).push({name:n,callback:a})}r(this,k,ie).call(this)}},k=new WeakSet,ie=function(){var e;(e=i(this,u))==null||e.forEach(t=>{i(this,o).addEventListener(t.name,t.callback,t.options)})},M=new WeakSet,ne=function(){var e;(e=i(this,u))==null||e.forEach(t=>{i(this,o).removeEventListener(t.name,t.callback,t.options)})},J=new WeakSet,pe=function(e){for(const t in e){const s=e[t];s instanceof b.Store?i(this,l).add(s.subscribe(({current:n})=>{r(this,D,oe).call(this,t,n)})):r(this,D,oe).call(this,t,s)}},D=new WeakSet,oe=function(e,t){var n,a;const s=i(this,o);e in s&&!((a=(n=s.constructor)==null?void 0:n.observedAttributes)!=null&&a.includes(e))?t!=null&&(s[e]=t.toString()):t!=null&&s.setAttribute(e,t.toString())},N=new WeakSet,F=function(e,t){t&&(t=[t].flat(),t.forEach(s=>{if(s instanceof b.Store){const n=document.createElement("div");n.style.display="contents",e.appendChild(n),i(this,d)||E(this,d,[]);const a=i(this,d).length;n.setAttribute("store-root",""),i(this,d).push(n),i(this,l).add(s.subscribe(({current:h,previous:m})=>{const C=i(this,d)[a];C.dispatchEvent(new CustomEvent("beforeChildrenChange",{bubbles:!0,composed:!0}));const Y=Array.from(C.childNodes),fe=[h].flat(),Ne=[m].flat(),le=[],Q=[];Ne.forEach((g,y)=>{!fe.includes(g)&&Y[y]?le.push(Y[y]):Q.push(g)}),fe.forEach((g,y)=>{if(Q[y]){if(g!==Q[y]){const p=r(this,q,ce).call(this,g),X=Y[y];p instanceof Node?X.isEqualNode(p)||C.replaceChild(p,X):C.removeChild(X)}}else{const p=r(this,q,ce).call(this,g);p instanceof Node&&n.appendChild(p)}}),le.forEach(g=>{C.removeChild(g)}),C.dispatchEvent(new CustomEvent("afterChildrenChange",{bubbles:!0,composed:!0}))}))}else if(s instanceof U)r(this,x,re).call(this,e,s.node);else if(s instanceof Function)r(this,N,F).call(this,e,de.isESClass(s)?new s:s());else{const n=r(this,H,ae).call(this,s);n instanceof Node&&r(this,x,re).call(this,e,n)}}))},x=new WeakSet,re=function(e,t){!(e instanceof ShadowRoot)&&t instanceof HTMLElement&&t.tagName==="STYLE"?(i(this,S).add(()=>{[...document.head.querySelectorAll("style")].find(n=>n.outerHTML===t.outerHTML)||document.head.appendChild(t)}),i(this,l).add(()=>{t.remove()})):e.appendChild(t)},q=new WeakSet,ce=function(e){return e instanceof U?e.node:typeof e=="function"?de.isESClass(e)?new e:e():r(this,H,ae).call(this,e)},H=new WeakSet,ae=function(e){if(e instanceof Node)return e;if(e!=null){const t=String(e);if(t.trim().startsWith("<")&&t.trim().endsWith(">")){const s=document.createElement("div");return s.innerHTML=t,s.firstElementChild}else return document.createTextNode(t)}else return},V=new WeakMap,K=new WeakMap;let O=U;exports.ElementConstructor=O;
|
|
@@ -0,0 +1,366 @@
|
|
|
1
|
+
var Z = (f, e, t) => {
|
|
2
|
+
if (!e.has(f))
|
|
3
|
+
throw TypeError("Cannot " + t);
|
|
4
|
+
};
|
|
5
|
+
var i = (f, e, t) => (Z(f, e, "read from private field"), t ? t.call(f) : e.get(f)), r = (f, e, t) => {
|
|
6
|
+
if (e.has(f))
|
|
7
|
+
throw TypeError("Cannot add the same private member more than once");
|
|
8
|
+
e instanceof WeakSet ? e.add(f) : e.set(f, t);
|
|
9
|
+
}, p = (f, e, t, s) => (Z(f, e, "write to private field"), s ? s.call(f, t) : e.set(f, t), t);
|
|
10
|
+
var a = (f, e, t) => (Z(f, e, "access private method"), t);
|
|
11
|
+
import { S as C } from "./Store-Dsft7GtM.js";
|
|
12
|
+
import { i as fe } from "./browser-0zX67oeU.js";
|
|
13
|
+
import { i as le } from "./object-D6MVWB4l.js";
|
|
14
|
+
import { c as he, u as we } from "./string-f0Dnk0L1.js";
|
|
15
|
+
import { connector as Le } from "./connector/index.js";
|
|
16
|
+
const Te = /* @__PURE__ */ new Set([
|
|
17
|
+
// 'a', 'style', 'title', 'script',
|
|
18
|
+
"animate",
|
|
19
|
+
"animateMotion",
|
|
20
|
+
"animateTransform",
|
|
21
|
+
"circle",
|
|
22
|
+
"clipPath",
|
|
23
|
+
"defs",
|
|
24
|
+
"desc",
|
|
25
|
+
"ellipse",
|
|
26
|
+
"feBlend",
|
|
27
|
+
"feColorMatrix",
|
|
28
|
+
"feComponentTransfer",
|
|
29
|
+
"feComposite",
|
|
30
|
+
"feConvolveMatrix",
|
|
31
|
+
"feDiffuseLighting",
|
|
32
|
+
"feDisplacementMap",
|
|
33
|
+
"feDistantLight",
|
|
34
|
+
"feDropShadow",
|
|
35
|
+
"feFlood",
|
|
36
|
+
"feFuncA",
|
|
37
|
+
"feFuncB",
|
|
38
|
+
"feFuncG",
|
|
39
|
+
"feFuncR",
|
|
40
|
+
"feGaussianBlur",
|
|
41
|
+
"feImage",
|
|
42
|
+
"feMerge",
|
|
43
|
+
"feMergeNode",
|
|
44
|
+
"feMorphology",
|
|
45
|
+
"feOffset",
|
|
46
|
+
"fePointLight",
|
|
47
|
+
"feSpecularLighting",
|
|
48
|
+
"feSpotLight",
|
|
49
|
+
"feTile",
|
|
50
|
+
"feTurbulence",
|
|
51
|
+
"filter",
|
|
52
|
+
"foreignObject",
|
|
53
|
+
"g",
|
|
54
|
+
"image",
|
|
55
|
+
"line",
|
|
56
|
+
"linearGradient",
|
|
57
|
+
"listener",
|
|
58
|
+
"marker",
|
|
59
|
+
"mask",
|
|
60
|
+
"metadata",
|
|
61
|
+
"mpath",
|
|
62
|
+
"path",
|
|
63
|
+
"pattern",
|
|
64
|
+
"polygon",
|
|
65
|
+
"polyline",
|
|
66
|
+
"radialGradient",
|
|
67
|
+
"rect",
|
|
68
|
+
"set",
|
|
69
|
+
"solidColor",
|
|
70
|
+
"stop",
|
|
71
|
+
"svg",
|
|
72
|
+
"switch",
|
|
73
|
+
"symbol",
|
|
74
|
+
"text",
|
|
75
|
+
"textPath",
|
|
76
|
+
"title",
|
|
77
|
+
"tspan",
|
|
78
|
+
"view"
|
|
79
|
+
]);
|
|
80
|
+
var o, E, l, w, d, m, R, me, B, ue, G, ge, L, _, T, O, W, Ee, $, pe, q, Ce, z, ye, v, j, A, ee, I, Se, k, te, M, se, J, be, D, ie, N, P, x, ne, H, oe, F, ae, V, U;
|
|
81
|
+
const Y = class Y {
|
|
82
|
+
constructor(...e) {
|
|
83
|
+
r(this, R);
|
|
84
|
+
r(this, B);
|
|
85
|
+
r(this, G);
|
|
86
|
+
r(this, L);
|
|
87
|
+
r(this, T);
|
|
88
|
+
r(this, W);
|
|
89
|
+
r(this, $);
|
|
90
|
+
r(this, q);
|
|
91
|
+
r(this, z);
|
|
92
|
+
r(this, v);
|
|
93
|
+
r(this, A);
|
|
94
|
+
r(this, I);
|
|
95
|
+
r(this, k);
|
|
96
|
+
r(this, M);
|
|
97
|
+
r(this, J);
|
|
98
|
+
r(this, D);
|
|
99
|
+
r(this, N);
|
|
100
|
+
r(this, x);
|
|
101
|
+
r(this, H);
|
|
102
|
+
r(this, F);
|
|
103
|
+
r(this, o, null);
|
|
104
|
+
r(this, E, /* @__PURE__ */ new Set());
|
|
105
|
+
r(this, l, /* @__PURE__ */ new Set());
|
|
106
|
+
r(this, w, void 0);
|
|
107
|
+
r(this, d, void 0);
|
|
108
|
+
r(this, m, void 0);
|
|
109
|
+
r(this, V, () => {
|
|
110
|
+
i(this, E).forEach((e) => {
|
|
111
|
+
e();
|
|
112
|
+
}), i(this, E).clear();
|
|
113
|
+
});
|
|
114
|
+
r(this, U, (e) => {
|
|
115
|
+
i(this, l).forEach((t) => {
|
|
116
|
+
t(e);
|
|
117
|
+
}), i(this, l).clear(), a(this, M, se).call(this);
|
|
118
|
+
});
|
|
119
|
+
if (fe) {
|
|
120
|
+
const t = e[0], s = e[1];
|
|
121
|
+
p(this, o, a(this, R, me).call(this, t, s == null ? void 0 : s.forceSvg)), a(this, G, ge).call(this, s);
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
get node() {
|
|
125
|
+
return i(this, o);
|
|
126
|
+
}
|
|
127
|
+
set node(e) {
|
|
128
|
+
var t;
|
|
129
|
+
a(this, M, se).call(this), p(this, o, e), (t = i(this, w)) == null || t.call(this), i(this, o) instanceof Element && p(this, d, [
|
|
130
|
+
...i(this, o).querySelectorAll("store-root")
|
|
131
|
+
]), a(this, k, te).call(this), a(this, L, _).call(this);
|
|
132
|
+
}
|
|
133
|
+
};
|
|
134
|
+
o = new WeakMap(), E = new WeakMap(), l = new WeakMap(), w = new WeakMap(), d = new WeakMap(), m = new WeakMap(), R = new WeakSet(), me = function(e, t) {
|
|
135
|
+
let s = null;
|
|
136
|
+
if (e instanceof Node)
|
|
137
|
+
s = e;
|
|
138
|
+
else if (typeof e == "string")
|
|
139
|
+
if (!e.includes("<") && e.includes("-"))
|
|
140
|
+
s = new (customElements.get(e))();
|
|
141
|
+
else if (e.includes("<")) {
|
|
142
|
+
const n = document.createElement("div");
|
|
143
|
+
n.innerHTML = e, s = n.firstElementChild;
|
|
144
|
+
} else
|
|
145
|
+
Te.has(e) || t ? s = document.createElementNS(
|
|
146
|
+
"http://www.w3.org/2000/svg",
|
|
147
|
+
e
|
|
148
|
+
) : s = document.createElement(e);
|
|
149
|
+
else
|
|
150
|
+
s = document.createElement("div");
|
|
151
|
+
return s;
|
|
152
|
+
}, B = new WeakSet(), ue = function(e) {
|
|
153
|
+
return e instanceof HTMLElement || e instanceof SVGElement;
|
|
154
|
+
}, G = new WeakSet(), ge = function(e) {
|
|
155
|
+
if (!e)
|
|
156
|
+
return;
|
|
157
|
+
const t = a(this, B, ue).call(this, i(this, o)), s = e.ref;
|
|
158
|
+
delete e.ref, e != null && e.onConnect && (i(this, E).add(e.onConnect), delete e.onConnect), e != null && e.onDisconnect && (i(this, l).add(e.onDisconnect), delete e.onDisconnect);
|
|
159
|
+
let n, c;
|
|
160
|
+
for (const h in e) {
|
|
161
|
+
const u = e[h];
|
|
162
|
+
h === "class" && t ? a(this, T, O).call(this, u) : h === "style" && t ? a(this, q, Ce).call(this, u) : h === "lightChildren" ? a(this, N, P).call(this, i(this, o), u) : h === "children" ? a(this, N, P).call(this, i(this, o) instanceof Element ? i(this, o).shadowRoot || i(this, o) : i(this, o), u) : h.startsWith("on") ? (c || (c = {}), c[h] = u) : (n || (n = {}), n[h] = u);
|
|
163
|
+
}
|
|
164
|
+
a(this, J, be).call(this, n), a(this, I, Se).call(this, c), s && (typeof s == "function" ? s(i(this, o)) : s.current = i(this, o)), a(this, L, _).call(this);
|
|
165
|
+
}, L = new WeakSet(), _ = function() {
|
|
166
|
+
if (fe && (i(this, l).size || i(this, E).size)) {
|
|
167
|
+
const e = i(this, o) instanceof DocumentFragment ? i(this, o).firstChild : i(this, o);
|
|
168
|
+
p(this, w, Le.subscribe(
|
|
169
|
+
e,
|
|
170
|
+
{
|
|
171
|
+
connectCallback: i(this, V),
|
|
172
|
+
disconnectCallback: i(this, U),
|
|
173
|
+
unsubscribeAfterDisconnect: !0,
|
|
174
|
+
maxWaitSec: 20
|
|
175
|
+
}
|
|
176
|
+
));
|
|
177
|
+
}
|
|
178
|
+
}, T = new WeakSet(), O = function(e) {
|
|
179
|
+
if (e) {
|
|
180
|
+
if (typeof e == "string")
|
|
181
|
+
i(this, o).classList.add(e);
|
|
182
|
+
else if (Array.isArray(e))
|
|
183
|
+
e.forEach((t) => {
|
|
184
|
+
a(this, T, O).call(this, t);
|
|
185
|
+
});
|
|
186
|
+
else if (typeof e == "object")
|
|
187
|
+
if (e instanceof C)
|
|
188
|
+
a(this, W, Ee).call(this, e);
|
|
189
|
+
else
|
|
190
|
+
for (const t in e) {
|
|
191
|
+
const s = e[t];
|
|
192
|
+
s instanceof C ? a(this, $, pe).call(this, t, s) : s ? i(this, o).classList.add(t) : i(this, o).classList.remove(t);
|
|
193
|
+
}
|
|
194
|
+
} else
|
|
195
|
+
return;
|
|
196
|
+
}, W = new WeakSet(), Ee = function(e) {
|
|
197
|
+
i(this, l).add(
|
|
198
|
+
e.subscribe(({ current: t, previous: s }) => {
|
|
199
|
+
s && [s].flat().forEach((n) => {
|
|
200
|
+
n && i(this, o).classList.remove(n);
|
|
201
|
+
}), t && [t].flat().forEach((n) => {
|
|
202
|
+
n && i(this, o).classList.add(n);
|
|
203
|
+
});
|
|
204
|
+
})
|
|
205
|
+
);
|
|
206
|
+
}, $ = new WeakSet(), pe = function(e, t) {
|
|
207
|
+
i(this, l).add(
|
|
208
|
+
t.subscribe(({ current: s }) => {
|
|
209
|
+
s ? i(this, o).classList.add(e) : i(this, o).classList.remove(e);
|
|
210
|
+
})
|
|
211
|
+
);
|
|
212
|
+
}, q = new WeakSet(), Ce = function(e) {
|
|
213
|
+
if (!e)
|
|
214
|
+
return;
|
|
215
|
+
i(this, o).tagName === "style" || i(this, o).tagName === "STYLE" ? a(this, v, j).call(this, e) : a(this, z, ye).call(this, e);
|
|
216
|
+
}, z = new WeakSet(), ye = function(e) {
|
|
217
|
+
for (const t in e) {
|
|
218
|
+
const s = t, n = e[s];
|
|
219
|
+
n instanceof C ? i(this, l).add(
|
|
220
|
+
n.subscribe(({ current: c }) => {
|
|
221
|
+
a(this, A, ee).call(this, s, c);
|
|
222
|
+
})
|
|
223
|
+
) : a(this, A, ee).call(this, s, n);
|
|
224
|
+
}
|
|
225
|
+
}, v = new WeakSet(), j = function(e) {
|
|
226
|
+
for (const t in e) {
|
|
227
|
+
const s = e[t];
|
|
228
|
+
if (typeof s == "object" && !(s instanceof C))
|
|
229
|
+
i(this, o).appendChild(
|
|
230
|
+
document.createTextNode(`${t} {`)
|
|
231
|
+
), a(this, v, j).call(this, s), i(this, o).appendChild(document.createTextNode("}"));
|
|
232
|
+
else if (s instanceof C) {
|
|
233
|
+
const n = document.createTextNode("");
|
|
234
|
+
i(this, l).add(
|
|
235
|
+
s.subscribe((c) => {
|
|
236
|
+
c.current ? n.nodeValue = `${he(t)}: ${c.current};` : n.nodeValue = "";
|
|
237
|
+
})
|
|
238
|
+
), i(this, o).appendChild(n);
|
|
239
|
+
} else
|
|
240
|
+
i(this, o).appendChild(
|
|
241
|
+
document.createTextNode(`${he(t)}: ${s};`)
|
|
242
|
+
);
|
|
243
|
+
}
|
|
244
|
+
}, A = new WeakSet(), ee = function(e, t) {
|
|
245
|
+
e.includes("--") ? t ? i(this, o).style.setProperty(e, t.toString()) : i(this, o).style.removeProperty(e) : t ? i(this, o).style[e] = t.toString() : i(this, o).style[e] = "";
|
|
246
|
+
}, I = new WeakSet(), Se = function(e) {
|
|
247
|
+
if (e) {
|
|
248
|
+
i(this, m) || p(this, m, []);
|
|
249
|
+
for (const t in e) {
|
|
250
|
+
const s = t, n = we(
|
|
251
|
+
s.split("on").slice(1).join("on")
|
|
252
|
+
), c = e[s];
|
|
253
|
+
typeof c == "object" ? i(this, m).push({
|
|
254
|
+
name: n,
|
|
255
|
+
callback: c.callback,
|
|
256
|
+
options: c.options
|
|
257
|
+
}) : typeof c == "function" && i(this, m).push({
|
|
258
|
+
name: n,
|
|
259
|
+
callback: c
|
|
260
|
+
});
|
|
261
|
+
}
|
|
262
|
+
a(this, k, te).call(this);
|
|
263
|
+
}
|
|
264
|
+
}, k = new WeakSet(), te = function() {
|
|
265
|
+
var e;
|
|
266
|
+
(e = i(this, m)) == null || e.forEach((t) => {
|
|
267
|
+
i(this, o).addEventListener(
|
|
268
|
+
t.name,
|
|
269
|
+
t.callback,
|
|
270
|
+
t.options
|
|
271
|
+
);
|
|
272
|
+
});
|
|
273
|
+
}, M = new WeakSet(), se = function() {
|
|
274
|
+
var e;
|
|
275
|
+
(e = i(this, m)) == null || e.forEach((t) => {
|
|
276
|
+
i(this, o).removeEventListener(
|
|
277
|
+
t.name,
|
|
278
|
+
t.callback,
|
|
279
|
+
t.options
|
|
280
|
+
);
|
|
281
|
+
});
|
|
282
|
+
}, J = new WeakSet(), be = function(e) {
|
|
283
|
+
for (const t in e) {
|
|
284
|
+
const s = e[t];
|
|
285
|
+
s instanceof C ? i(this, l).add(
|
|
286
|
+
s.subscribe(({ current: n }) => {
|
|
287
|
+
a(this, D, ie).call(this, t, n);
|
|
288
|
+
})
|
|
289
|
+
) : a(this, D, ie).call(this, t, s);
|
|
290
|
+
}
|
|
291
|
+
}, D = new WeakSet(), ie = function(e, t) {
|
|
292
|
+
var n, c;
|
|
293
|
+
const s = i(this, o);
|
|
294
|
+
e in s && !((c = (n = s.constructor) == null ? void 0 : n.observedAttributes) != null && c.includes(e)) ? t != null && (s[e] = t.toString()) : t != null && s.setAttribute(e, t.toString());
|
|
295
|
+
}, N = new WeakSet(), P = function(e, t) {
|
|
296
|
+
t && (t = [t].flat(), t.forEach((s) => {
|
|
297
|
+
if (s instanceof C) {
|
|
298
|
+
const n = document.createElement("div");
|
|
299
|
+
n.style.display = "contents", e.appendChild(n), i(this, d) || p(this, d, []);
|
|
300
|
+
const c = i(this, d).length;
|
|
301
|
+
n.setAttribute("store-root", ""), i(this, d).push(n), i(this, l).add(
|
|
302
|
+
s.subscribe(({ current: h, previous: u }) => {
|
|
303
|
+
const y = i(this, d)[c];
|
|
304
|
+
y.dispatchEvent(
|
|
305
|
+
new CustomEvent("beforeChildrenChange", {
|
|
306
|
+
bubbles: !0,
|
|
307
|
+
composed: !0
|
|
308
|
+
})
|
|
309
|
+
);
|
|
310
|
+
const K = Array.from(y.childNodes), re = [h].flat(), Ne = [u].flat(), ce = [], Q = [];
|
|
311
|
+
Ne.forEach((g, S) => {
|
|
312
|
+
!re.includes(g) && K[S] ? ce.push(K[S]) : Q.push(g);
|
|
313
|
+
}), re.forEach((g, S) => {
|
|
314
|
+
if (Q[S]) {
|
|
315
|
+
if (g !== Q[S]) {
|
|
316
|
+
const b = a(this, H, oe).call(this, g), X = K[S];
|
|
317
|
+
b instanceof Node ? X.isEqualNode(b) || y.replaceChild(b, X) : y.removeChild(X);
|
|
318
|
+
}
|
|
319
|
+
} else {
|
|
320
|
+
const b = a(this, H, oe).call(this, g);
|
|
321
|
+
b instanceof Node && n.appendChild(b);
|
|
322
|
+
}
|
|
323
|
+
}), ce.forEach((g) => {
|
|
324
|
+
y.removeChild(g);
|
|
325
|
+
}), y.dispatchEvent(
|
|
326
|
+
new CustomEvent("afterChildrenChange", {
|
|
327
|
+
bubbles: !0,
|
|
328
|
+
composed: !0
|
|
329
|
+
})
|
|
330
|
+
);
|
|
331
|
+
})
|
|
332
|
+
);
|
|
333
|
+
} else if (s instanceof Y)
|
|
334
|
+
a(this, x, ne).call(this, e, s.node);
|
|
335
|
+
else if (s instanceof Function)
|
|
336
|
+
a(this, N, P).call(this, e, le(s) ? new s() : s());
|
|
337
|
+
else {
|
|
338
|
+
const n = a(this, F, ae).call(this, s);
|
|
339
|
+
n instanceof Node && a(this, x, ne).call(this, e, n);
|
|
340
|
+
}
|
|
341
|
+
}));
|
|
342
|
+
}, x = new WeakSet(), ne = function(e, t) {
|
|
343
|
+
!(e instanceof ShadowRoot) && t instanceof HTMLElement && t.tagName === "STYLE" ? (i(this, E).add(() => {
|
|
344
|
+
[...document.head.querySelectorAll("style")].find((n) => n.outerHTML === t.outerHTML) || document.head.appendChild(t);
|
|
345
|
+
}), i(this, l).add(() => {
|
|
346
|
+
t.remove();
|
|
347
|
+
})) : e.appendChild(t);
|
|
348
|
+
}, H = new WeakSet(), oe = function(e) {
|
|
349
|
+
return e instanceof Y ? e.node : typeof e == "function" ? le(e) ? new e() : e() : a(this, F, ae).call(this, e);
|
|
350
|
+
}, F = new WeakSet(), ae = function(e) {
|
|
351
|
+
if (e instanceof Node)
|
|
352
|
+
return e;
|
|
353
|
+
if (e != null) {
|
|
354
|
+
const t = String(e);
|
|
355
|
+
if (t.trim().startsWith("<") && t.trim().endsWith(">")) {
|
|
356
|
+
const s = document.createElement("div");
|
|
357
|
+
return s.innerHTML = t, s.firstElementChild;
|
|
358
|
+
} else
|
|
359
|
+
return document.createTextNode(t);
|
|
360
|
+
} else
|
|
361
|
+
return;
|
|
362
|
+
}, V = new WeakMap(), U = new WeakMap();
|
|
363
|
+
let de = Y;
|
|
364
|
+
export {
|
|
365
|
+
de as E
|
|
366
|
+
};
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
var x = (r, s, e) => {
|
|
2
|
+
if (!s.has(r))
|
|
3
|
+
throw TypeError("Cannot " + e);
|
|
4
|
+
};
|
|
5
|
+
var t = (r, s, e) => (x(r, s, "read from private field"), e ? e.call(r) : s.get(r)), u = (r, s, e) => {
|
|
6
|
+
if (s.has(r))
|
|
7
|
+
throw TypeError("Cannot add the same private member more than once");
|
|
8
|
+
s instanceof WeakSet ? s.add(r) : s.set(r, e);
|
|
9
|
+
}, a = (r, s, e, c) => (x(r, s, "write to private field"), c ? c.call(r, e) : s.set(r, e), e);
|
|
10
|
+
import { S as d } from "./Store-Dsft7GtM.js";
|
|
11
|
+
var f;
|
|
12
|
+
class P extends d {
|
|
13
|
+
constructor(e, c, i) {
|
|
14
|
+
super(null, i);
|
|
15
|
+
u(this, f, void 0);
|
|
16
|
+
a(this, f, e.subscribe((b) => {
|
|
17
|
+
this.current = b.current.map((m, o, g) => c(m, o, g));
|
|
18
|
+
}));
|
|
19
|
+
}
|
|
20
|
+
close() {
|
|
21
|
+
super.close(), t(this, f).call(this);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
f = new WeakMap();
|
|
25
|
+
var l, h, n;
|
|
26
|
+
class R extends d {
|
|
27
|
+
constructor(e, c, i) {
|
|
28
|
+
super(e, i);
|
|
29
|
+
u(this, l, void 0);
|
|
30
|
+
u(this, h, void 0);
|
|
31
|
+
u(this, n, 0);
|
|
32
|
+
a(this, h, new d(!1)), a(this, l, c), i != null && i.manualControl || this.refetch();
|
|
33
|
+
}
|
|
34
|
+
get isPending() {
|
|
35
|
+
return t(this, h);
|
|
36
|
+
}
|
|
37
|
+
refetch() {
|
|
38
|
+
t(this, h).current = !0, a(this, n, t(this, n) + 1);
|
|
39
|
+
const e = t(this, n);
|
|
40
|
+
t(this, l).call(this).then((c) => {
|
|
41
|
+
e === t(this, n) && (t(this, h).current = !1, this.current = c);
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
l = new WeakMap(), h = new WeakMap(), n = new WeakMap();
|
|
46
|
+
export {
|
|
47
|
+
P as D,
|
|
48
|
+
R
|
|
49
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var o=(r,t,e)=>{if(!t.has(r))throw TypeError("Cannot "+e)};var s=(r,t,e)=>(o(r,t,"read from private field"),e?e.call(r):t.get(r)),n=(r,t,e)=>{if(t.has(r))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(r):t.set(r,e)},l=(r,t,e,c)=>(o(r,t,"write to private field"),c?c.call(r,e):t.set(r,e),e);const d=require("./Store-kzJycezD.cjs");var a;class m extends d.Store{constructor(e,c,i){super(null,i);n(this,a,void 0);l(this,a,e.subscribe(b=>{this.current=b.current.map((x,S,g)=>c(x,S,g))}))}close(){super.close(),s(this,a).call(this)}}a=new WeakMap;var f,u,h;class v extends d.Store{constructor(e,c,i){super(e,i);n(this,f,void 0);n(this,u,void 0);n(this,h,0);l(this,u,new d.Store(!1)),l(this,f,c),i!=null&&i.manualControl||this.refetch()}get isPending(){return s(this,u)}refetch(){s(this,u).current=!0,l(this,h,s(this,h)+1);const e=s(this,h);s(this,f).call(this).then(c=>{e===s(this,h)&&(s(this,u).current=!1,this.current=c)})}}f=new WeakMap,u=new WeakMap,h=new WeakMap;exports.DerivedArray=m;exports.Resource=v;
|
|
@@ -9,7 +9,7 @@ var r = (a, e, t) => ($(a, e, "read from private field"), t ? t.call(a) : e.get(
|
|
|
9
9
|
}, i = (a, e, t, n) => ($(a, e, "write to private field"), n ? n.call(a, t) : e.set(a, t), t);
|
|
10
10
|
import { RESIZE_ORDER as A } from "./order/index.js";
|
|
11
11
|
import { windowResizer as k } from "./window-resizer/index.js";
|
|
12
|
-
import { S as B } from "./Store-
|
|
12
|
+
import { S as B } from "./Store-Dsft7GtM.js";
|
|
13
13
|
var y, g, q, u, c, d, w;
|
|
14
14
|
class T {
|
|
15
15
|
constructor(e) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var b=(c,e,t)=>{if(!e.has(c))throw TypeError("Cannot "+t)};var r=(c,e,t)=>(b(c,e,"read from private field"),t?t.call(c):e.get(c)),o=(c,e,t)=>{if(e.has(c))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(c):e.set(c,t)},i=(c,e,t,n)=>(b(c,e,"write to private field"),n?n.call(c,t):e.set(c,t),t);const B=require("./order/index.cjs"),k=require("./window-resizer/index.cjs"),T=require("./Store-
|
|
1
|
+
"use strict";var b=(c,e,t)=>{if(!e.has(c))throw TypeError("Cannot "+t)};var r=(c,e,t)=>(b(c,e,"read from private field"),t?t.call(c):e.get(c)),o=(c,e,t)=>{if(e.has(c))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(c):e.set(c,t)},i=(c,e,t,n)=>(b(c,e,"write to private field"),n?n.call(c,t):e.set(c,t),t);const B=require("./order/index.cjs"),k=require("./window-resizer/index.cjs"),T=require("./Store-kzJycezD.cjs");var y,g,q,m,a,d,w;class z{constructor(e){o(this,y,void 0);o(this,g,void 0);o(this,q,void 0);o(this,m,void 0);o(this,a,void 0);o(this,d,void 0);o(this,w,void 0);i(this,y,e);const t=e.indexOf("?");t>=0&&(e=e.slice(0,t));const n=e.split(".");i(this,g,n[0]);const x=/\d+x/g,h=n.find(u=>u.match(x));i(this,q,h?parseInt(h):1);const f=/\d+max/g,M=/\d+min/g,s=/\d+mar/g,l=/\d+mir/g,S=n.find(u=>u.match(f)),I=n.find(u=>u.match(M)),V=n.find(u=>u.match(s)),$=n.find(u=>u.match(l));V?(i(this,a,parseInt(V)),i(this,d,"max"),i(this,m,`(max-aspect-ratio: ${r(this,a)})`)):$?(i(this,a,parseInt($)),i(this,d,"max"),i(this,m,`(min-aspect-ratio: ${r(this,a)})`)):S?(i(this,a,parseInt(S)),i(this,d,"max"),i(this,m,`(max-width: ${r(this,a)}px)`)):I?(i(this,a,parseInt(I)),i(this,m,`(min-width: ${r(this,a)}px)`),i(this,d,"min")):(i(this,a,0),i(this,m,`(min-width: ${r(this,a)}px)`),i(this,d,"min")),i(this,w,"."+n[n.length-1])}get url(){return r(this,y)}get name(){return r(this,g)}get density(){return r(this,q)}get query(){return r(this,m)}get extension(){return r(this,w)}get queryType(){return r(this,d)}get queryValue(){return r(this,a)}}y=new WeakMap,g=new WeakMap,q=new WeakMap,m=new WeakMap,a=new WeakMap,d=new WeakMap,w=new WeakMap;var p;class A{constructor(e){o(this,p,void 0);i(this,p,new Map);const t=typeof e=="string"?e.trim().split(",").map(s=>s.trim()).filter(s=>!!s):e,n=[];t.forEach(s=>{const l=new z(s);n.push([l.query,l])});const x=n.filter(s=>s[1].queryType.includes("max")).sort((s,l)=>l[1].queryValue-s[1].queryValue),h=n.filter(s=>s[1].queryType.includes("min")&&s[1].queryValue!==0).sort((s,l)=>s[1].queryValue-l[1].queryValue),f=n.filter(s=>s[0]==="(min-width: 0px)");(f?[...f,...x,...h]:[...x,...h]).forEach(s=>{r(this,p).has(s[0])||r(this,p).set(s[0],[]),r(this,p).get(s[0]).push(s[1])})}get mediaBuckets(){return r(this,p)}}p=new WeakMap;var R,E;class _ extends T.Store{constructor(t){super(void 0);o(this,R,void 0);o(this,E,()=>{let t;r(this,R).mediaBuckets.forEach((h,f)=>{matchMedia(f).matches&&(t=h)});let n,x=0;t==null||t.forEach(h=>{h.density>x&&h.density<=Math.max(devicePixelRatio,1)&&(x=h.density,n=h)}),t!=null&&t.length&&!n&&(n=t[0]),this.current=n});i(this,R,new A(t.srcset))}close(){super.close(),this.disconnect()}connect(){k.windowResizer.subscribe(r(this,E),B.RESIZE_ORDER.SOURCE_MANAGER)}disconnect(){k.windowResizer.unsubscribe(r(this,E))}}R=new WeakMap,E=new WeakMap;exports.Source=z;exports.SourceManager=_;exports.SourceSet=A;
|
|
@@ -143,7 +143,7 @@ function q(i) {
|
|
|
143
143
|
l.current.includes(i) || (l.current = [...l.current, i]);
|
|
144
144
|
}
|
|
145
145
|
function k(i) {
|
|
146
|
-
l.current.includes(i) && (l.current = l.current.filter((t) => t !== i));
|
|
146
|
+
l.current.includes(i) && (l.current = l.current.filter((t) => t !== i), console.log(l.current));
|
|
147
147
|
}
|
|
148
148
|
export {
|
|
149
149
|
M as S,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var N=(i,t,e)=>{if(!t.has(i))throw TypeError("Cannot "+e)};var r=(i,t,e)=>(N(i,t,"read from private field"),e?e.call(i):t.get(i)),s=(i,t,e)=>{if(t.has(i))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(i):t.set(i,e)},a=(i,t,e,c)=>(N(i,t,"write to private field"),c?c.call(i,e):t.set(i,e),e);var p=(i,t,e)=>(N(i,t,"access private method"),e);const q=require("./browser-CpzFX2xg.cjs");var f,d,S;class z{constructor(){s(this,f,null);s(this,d,"");s(this,S,"");q.isBrowser&&(a(this,d,document.documentElement.getAttribute("data-project")||"unnamed"),a(this,S,r(this,d)?r(this,d)+"-store-registry":"store-registry"))}get projectName(){return r(this,d)}get localStoreRegistryName(){return r(this,S)}get loadedState(){return r(this,f)}saveState(){const t=this.getState(),e=JSON.stringify(t);localStorage.setItem(r(this,S),e)}loadState(t=localStorage.getItem(r(this,S))){t&&(typeof t=="string"?a(this,f,JSON.parse(t)):a(this,f,t),
|
|
1
|
+
"use strict";var N=(i,t,e)=>{if(!t.has(i))throw TypeError("Cannot "+e)};var r=(i,t,e)=>(N(i,t,"read from private field"),e?e.call(i):t.get(i)),s=(i,t,e)=>{if(t.has(i))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(i):t.set(i,e)},a=(i,t,e,c)=>(N(i,t,"write to private field"),c?c.call(i,e):t.set(i,e),e);var p=(i,t,e)=>(N(i,t,"access private method"),e);const q=require("./browser-CpzFX2xg.cjs");var f,d,S;class z{constructor(){s(this,f,null);s(this,d,"");s(this,S,"");q.isBrowser&&(a(this,d,document.documentElement.getAttribute("data-project")||"unnamed"),a(this,S,r(this,d)?r(this,d)+"-store-registry":"store-registry"))}get projectName(){return r(this,d)}get localStoreRegistryName(){return r(this,S)}get loadedState(){return r(this,f)}saveState(){const t=this.getState(),e=JSON.stringify(t);localStorage.setItem(r(this,S),e)}loadState(t=localStorage.getItem(r(this,S))){t&&(typeof t=="string"?a(this,f,JSON.parse(t)):a(this,f,t),n.current.forEach(e=>{e.passport&&this.updateStore(e)}))}resetState(){n.current.forEach(t=>{t.passport&&t.reset()}),this.saveState()}updateStore(t){var c,v;if(!Array.isArray((c=r(this,f))==null?void 0:c.stores))return t;const e=t.passport;if(e){const A=(v=r(this,f))==null?void 0:v.stores.find(j=>j.name===e.name);A&&(t.current=A.value)}return t}getState(){const t={stores:[]};return n.current.forEach(e=>{e.passport&&(t.stores.find(c=>c.name===e.passport.name)||t.stores.push({value:e.current,name:e.passport.name}))}),t}}f=new WeakMap,d=new WeakMap,S=new WeakMap;const k=new z;var g,h,o,l,m,u,y,b,w,E;class C{constructor(t,e){s(this,w);s(this,g,void 0);s(this,h,void 0);s(this,o,void 0);s(this,l,new Set);s(this,m,void 0);s(this,u,void 0);s(this,y,void 0);s(this,b,void 0);a(this,g,e==null?void 0:e.passport),a(this,h,{initial:t,previous:void 0,current:t}),a(this,o,(e==null?void 0:e.equalityCheck)||((c,v)=>c===v)),e!=null&&e.validate&&this.addMiddleware(e.validate),a(this,y,(e==null?void 0:e.notifyAndClose)||!1),a(this,b,(e==null?void 0:e.invisible)||!1),a(this,m,(e==null?void 0:e.skipSubscribeNotification)||!1),r(this,g)&&k.updateStore(this)}get passport(){return r(this,g)}get initial(){return r(this,h).initial}get previous(){return r(this,h).previous}get current(){return r(this,h).current}set current(t){if(!r(this,o).call(this,r(this,h).current,t)){if(r(this,h).previous=r(this,h).current,r(this,u))for(const e of r(this,u))t=e(t);r(this,h).current=t,p(this,w,E).call(this),r(this,y)&&this.close()}}get subscribers(){return r(this,l)}addMiddleware(t){r(this,u)||a(this,u,new Set),r(this,u).add(t)}removeMiddleware(t){var e,c;(e=r(this,u))==null||e.delete(t),(c=r(this,u))!=null&&c.size||a(this,u,void 0)}subscribe(t){return!r(this,b)&&!r(this,l).size&&M(this),r(this,l).add(t),r(this,m)||t(r(this,h)),()=>{this.unsubscribe(t)}}unsubscribe(t){r(this,l).delete(t),r(this,l).size||R(this)}reset(){this.current=Array.isArray(this.initial)?[...this.initial]:this.initial}close(){r(this,l).clear(),R(this)}}g=new WeakMap,h=new WeakMap,o=new WeakMap,l=new WeakMap,m=new WeakMap,u=new WeakMap,y=new WeakMap,b=new WeakMap,w=new WeakSet,E=function(){for(const t of r(this,l))t(r(this,h))};const n=new C([],{invisible:!0});function M(i){n.current.includes(i)||(n.current=[...n.current,i])}function R(i){n.current.includes(i)&&(n.current=n.current.filter(t=>t!==i),console.log(n.current))}exports.Store=C;exports.activeStores=n;exports.storeRegistry=k;
|
|
@@ -22,7 +22,7 @@ var n = (i, e, t) => (f(i, e, "read from private field"), t ? t.call(i) : e.get(
|
|
|
22
22
|
import { l as x } from "./easings-BKi40vHz.js";
|
|
23
23
|
import { c as S } from "./math-BOBiC4TN.js";
|
|
24
24
|
import { n as p, p as T } from "./polyfills-X6KXuHg-.js";
|
|
25
|
-
import { A as q } from "./Animation-
|
|
25
|
+
import { A as q } from "./Animation-DrSYnbgb.js";
|
|
26
26
|
var s, r;
|
|
27
27
|
class j extends q {
|
|
28
28
|
constructor(t, a) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var f=Object.defineProperty,F=Object.defineProperties;var o=Object.getOwnPropertyDescriptors;var c=Object.getOwnPropertySymbols;var O=Object.prototype.hasOwnProperty,b=Object.prototype.propertyIsEnumerable;var m=(t,i,e)=>i in t?f(t,i,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[i]=e,d=(t,i)=>{for(var e in i||(i={}))O.call(i,e)&&m(t,e,i[e]);if(c)for(var e of c(i))b.call(i,e)&&m(t,e,i[e]);return t},g=(t,i)=>F(t,o(i));var A=(t,i,e)=>{if(!i.has(t))throw TypeError("Cannot "+e)};var a=(t,i,e)=>(A(t,i,"read from private field"),e?e.call(t):i.get(t)),u=(t,i,e)=>{if(i.has(t))throw TypeError("Cannot add the same private member more than once");i instanceof WeakSet?i.add(t):i.set(t,e)},h=(t,i,e,s)=>(A(t,i,"write to private field"),s?s.call(t,e):i.set(t,e),e);const p=require("./easings-DsS5-Kqc.cjs"),w=require("./math-GDWEqu7y.cjs"),l=require("./polyfills-CM4SCDTt.cjs"),C=require("./Animation-
|
|
1
|
+
"use strict";var f=Object.defineProperty,F=Object.defineProperties;var o=Object.getOwnPropertyDescriptors;var c=Object.getOwnPropertySymbols;var O=Object.prototype.hasOwnProperty,b=Object.prototype.propertyIsEnumerable;var m=(t,i,e)=>i in t?f(t,i,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[i]=e,d=(t,i)=>{for(var e in i||(i={}))O.call(i,e)&&m(t,e,i[e]);if(c)for(var e of c(i))b.call(i,e)&&m(t,e,i[e]);return t},g=(t,i)=>F(t,o(i));var A=(t,i,e)=>{if(!i.has(t))throw TypeError("Cannot "+e)};var a=(t,i,e)=>(A(t,i,"read from private field"),e?e.call(t):i.get(t)),u=(t,i,e)=>{if(i.has(t))throw TypeError("Cannot add the same private member more than once");i instanceof WeakSet?i.add(t):i.set(t,e)},h=(t,i,e,s)=>(A(t,i,"write to private field"),s?s.call(t,e):i.set(t,e),e);const p=require("./easings-DsS5-Kqc.cjs"),w=require("./math-GDWEqu7y.cjs"),l=require("./polyfills-CM4SCDTt.cjs"),C=require("./Animation-BCA-DBje.cjs");var n,r;class S extends C.Animation{constructor(e,s){super(e||0,s);u(this,n,p.linear);u(this,r,1e3);this.updateOptions(g(d({},s),{equalize:!0}))}updateOptions(e){super.updateOptions(e),h(this,n,l.nullishCoalescing(e==null?void 0:e.easing,a(this,n))),h(this,r,l.nullishCoalescing(e==null?void 0:e.duration,a(this,r)))}handleAnimationFrame(e){const s=e.timeElapsedSinceSubscription/1e3/(a(this,r)/1e3),q=a(this,n).call(this,w.clamp(s,0,1));this.current=l.preciseNumber(this.from+(this.target-this.from)*q,6),s>1&&this.unlistenAnimationFrame()}start(){this.unlistenAnimationFrame(),this.listenAnimationFrame()}}n=new WeakMap,r=new WeakMap;exports.Tweened=S;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var W=(e,s,o)=>{if(!s.has(e))throw TypeError("Cannot "+o)};var i=(e,s,o)=>(W(e,s,"read from private field"),o?o.call(e):s.get(e)),n=(e,s,o)=>{if(s.has(e))throw TypeError("Cannot add the same private member more than once");s instanceof WeakSet?s.add(e):s.set(e,o)},t=(e,s,o,v)=>(W(e,s,"write to private field"),v?v.call(e,o):s.set(e,o),o);const k=require("./order/index.cjs"),z=require("./window-resizer/index.cjs"),A=require("./browser-CpzFX2xg.cjs"),T=require("detect-gpu"),q=require("./Store-
|
|
1
|
+
"use strict";var W=(e,s,o)=>{if(!s.has(e))throw TypeError("Cannot "+o)};var i=(e,s,o)=>(W(e,s,"read from private field"),o?o.call(e):s.get(e)),n=(e,s,o)=>{if(s.has(e))throw TypeError("Cannot add the same private member more than once");s instanceof WeakSet?s.add(e):s.set(e,o)},t=(e,s,o,v)=>(W(e,s,"write to private field"),v?v.call(e,o):s.set(e,o),o);const k=require("./order/index.cjs"),z=require("./window-resizer/index.cjs"),A=require("./browser-CpzFX2xg.cjs"),T=require("detect-gpu"),q=require("./Store-kzJycezD.cjs");var r,l,m,c,g,u,w,x,d;class I{constructor(){n(this,r,void 0);n(this,l,void 0);n(this,m,void 0);n(this,c,void 0);n(this,g,void 0);n(this,u,void 0);n(this,w,void 0);n(this,x,void 0);n(this,d,void 0);var s,o;if(t(this,r,"unknown"),t(this,l,"unknown"),t(this,m,0),t(this,c,null),t(this,g,!1),t(this,u,!1),t(this,w,!1),t(this,x,!1),t(this,d,!1),this.resize=()=>{t(this,g,/Mobi|Android/i.test(navigator.userAgent)),t(this,u,"ontouchstart"in window||navigator.maxTouchPoints>0),setTimeout(()=>{t(this,u,"ontouchstart"in window||navigator.maxTouchPoints>0)},0)},A.isBrowser){t(this,c,T.getGPUTier()),i(this,c).then(a=>{t(this,l,a.gpu||"unknown"),t(this,m,a.tier)}),this.resize(),z.windowResizer.subscribe(this.resize,k.RESIZE_ORDER.DEVICE);{const a=document.createElement("canvas"),P=a.getContext("webgl")||a.getContext("experimental-webgl");t(this,w,P&&P instanceof WebGLRenderingContext||!1)}{const a=document.createElement("canvas");a.getContext("2d")&&t(this,x,a.toDataURL("image/webp").indexOf("data:image/webp")==0)}const v=window.navigator.userAgent,E=((o=(s=window.navigator)==null?void 0:s.userAgentData)==null?void 0:o.platform)||window.navigator.platform,C=["Macintosh","MacIntel","MacPPC","Mac68K","macOS"],O=["Win32","Win64","Windows","WinCE"],R=["iPhone","iPad","iPod"];C.includes(E)?(t(this,r,"macOS"),t(this,d,!0)):R.includes(E)?(t(this,r,"iOS"),t(this,d,!0)):O.includes(E)?t(this,r,"Windows"):/Android/.test(v)?t(this,r,"Android"):/Linux/.test(E)?t(this,r,"Linux"):t(this,r,"unknown")}}get OS(){return i(this,r)}get gpu(){return i(this,l)}get gpuTier(){return i(this,m)}get gpuDetection(){return i(this,c)}get isMobile(){return i(this,g)}get isTouch(){return i(this,u)}get isWebgl(){return i(this,w)}get isWebp(){return i(this,x)}get isApple(){return i(this,d)}}r=new WeakMap,l=new WeakMap,m=new WeakMap,c=new WeakMap,g=new WeakMap,u=new WeakMap,w=new WeakMap,x=new WeakMap,d=new WeakMap;const M=new I;var D=(e=>(e.mobile="600px",e.tablet="1024px",e.notebook="1280px",e.desktop="1281px",e))(D||{}),S=(e=>(e["<=mobile"]="(max-width: 600px)",e[">=mobile"]="(min-width: 601px)",e["<=tablet"]="(max-width: 1024px)",e[">=tablet"]="(min-width: 1025px)",e["<=notebook"]="(max-width: 1280px)",e[">=notebook"]="(min-width: 1281px)",e["<=desktop"]="(max-width: 1280px)",e[">=desktop"]="(min-width: 1281px)",e))(S||{}),p,b,f,h;class L{constructor(){n(this,p,void 0);n(this,b,void 0);n(this,f,void 0);n(this,h,void 0);t(this,p,0),t(this,b,0),t(this,f,0),t(this,h,new q.Store(void 0)),this.resize=()=>{t(this,p,document.documentElement.clientWidth),t(this,b,innerHeight),t(this,f,devicePixelRatio),matchMedia("(max-width: 600px)").matches?i(this,h).current="mobile":matchMedia("(max-width: 1024px)").matches?i(this,h).current="tablet":matchMedia("(max-width: 1280px)").matches?i(this,h).current="notebook":matchMedia("(min-width: 1281px)").matches&&(i(this,h).current="desktop")},A.isBrowser&&(this.resize(),z.windowResizer.subscribe(this.resize,k.RESIZE_ORDER.DEVICE))}get width(){return i(this,p)}get height(){return i(this,b)}get type(){return i(this,h)}get pixelRatio(){return i(this,f)}}p=new WeakMap,b=new WeakMap,f=new WeakMap,h=new WeakMap;const _=new L;exports.ViewportBreakpoints=D;exports.ViewportMediaRules=S;exports.device=M;exports.viewport=_;
|
|
@@ -11,7 +11,7 @@ import { RESIZE_ORDER as k } from "./order/index.js";
|
|
|
11
11
|
import { windowResizer as A } from "./window-resizer/index.js";
|
|
12
12
|
import { i as C } from "./browser-0zX67oeU.js";
|
|
13
13
|
import { getGPUTier as z } from "detect-gpu";
|
|
14
|
-
import { S as O } from "./Store-
|
|
14
|
+
import { S as O } from "./Store-Dsft7GtM.js";
|
|
15
15
|
var h, d, l, c, g, m, p, x, u;
|
|
16
16
|
class I {
|
|
17
17
|
constructor() {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const n=require("./globals-bYKki-b9.cjs");function o(e){n.currentComponentElement.value.addDisconnectCallback(e)}function c(e){const t=typeof e=="function"?e(n.currentComponentElement.value):e;return n.currentComponentElement&&o(()=>t.close()),t}exports._createStore=c;exports.onDisconnect=o;
|