aptechka 0.1.2 → 0.1.3
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/{Damped-1hlKSFaB.cjs → Damped-DdPj4Sho.cjs} +1 -1
- package/lib/{Damped-523xgzT3.js → Damped-H3PuZwKV.js} +4 -4
- package/lib/{SourceManager-3c3kr7oj.cjs → SourceManager-tmQlXkSD.cjs} +1 -1
- package/lib/{SourceManager-F94MRde6.js → SourceManager-vXInLlh_.js} +1 -1
- package/lib/Store-qq7IjRLE.js +136 -0
- package/lib/Store-txkR3wXU.cjs +1 -0
- package/lib/WheelControls-9ZQKSYYq.js +83 -0
- package/lib/WheelControls-TYhGU6oA.cjs +1 -0
- package/lib/accordion/AccordionElement.d.ts +7 -0
- package/lib/accordion/index.d.ts +1 -0
- package/lib/animation/Animated.d.ts +1 -1
- 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-2d/index.d.ts +3 -3
- package/lib/controls/index.cjs +1 -1
- package/lib/controls/index.d.ts +0 -1
- package/lib/controls/index.js +3 -4
- package/lib/device/index.cjs +1 -1
- package/lib/device/index.js +1 -1
- package/lib/element-constructor/htmlTags.d.ts +112 -112
- package/lib/element-constructor/index.cjs +1 -1
- package/lib/element-constructor/index.js +150 -149
- package/lib/element-constructor/svgTags.d.ts +63 -63
- package/lib/en3/index.cjs +1 -1
- package/lib/en3/index.js +2 -2
- package/lib/image/index.cjs +1 -1
- package/lib/image/index.js +2 -2
- package/lib/ladder/index.cjs +1 -1
- package/lib/ladder/index.js +1 -1
- package/lib/layout-box/index.cjs +1 -1
- package/lib/layout-box/index.js +1 -1
- package/lib/media/index.cjs +1 -1
- package/lib/media/index.js +1 -1
- package/lib/resizer/index.d.ts +1 -1
- package/lib/scroll/index.cjs +1 -1
- package/lib/scroll/index.js +3 -3
- package/lib/source/index.cjs +1 -1
- package/lib/source/index.js +3 -3
- package/lib/store/CumulativeResource.d.ts +12 -0
- package/lib/store/Resource.d.ts +4 -1
- package/lib/store/Store.d.ts +1 -0
- package/lib/store/index.cjs +1 -1
- package/lib/store/index.js +49 -46
- package/lib/studio/StudioElement.d.ts +9 -0
- package/lib/studio/index.d.ts +1 -0
- package/lib/video/index.cjs +1 -1
- package/lib/video/index.js +2 -2
- package/package.json +2 -3
- package/lib/Store-2hWEUGTj.js +0 -135
- package/lib/Store-WXFmsaEI.cjs +0 -1
- package/lib/WheelControls-F-xg5-oq.js +0 -102
- package/lib/WheelControls-Hp5NWRZY.cjs +0 -1
- package/lib/controls/User.d.ts +0 -7
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var oe=Object.defineProperty,se=Object.defineProperties;var fe=Object.getOwnPropertyDescriptors;var K=Object.getOwnPropertySymbols;var ce=Object.prototype.hasOwnProperty,ae=Object.prototype.propertyIsEnumerable;var W=(e,t,r)=>t in e?oe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,o=(e,t)=>{for(var r in t||(t={}))ce.call(t,r)&&W(e,r,t[r]);if(K)for(var r of K(t))ae.call(t,r)&&W(e,r,t[r]);return e},s=(e,t)=>se(e,fe(t));var q=(e,t,r)=>{if(!t.has(e))throw TypeError("Cannot "+r)};var U=(e,t,r)=>(q(e,t,"read from private field"),r?r.call(e):t.get(e)),a=(e,t,r)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,r)},L=(e,t,r,i)=>(q(e,t,"write to private field"),i?i.call(e,r):t.set(e,r),r);var c=(e,t,r)=>(q(e,t,"access private method"),r);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const w=require("../Store-WXFmsaEI.cjs"),le=require("../browser-QbF6EW-w.cjs"),Y=require("../string-WmNOGq16.cjs");var d,T,z,M,O,g,E,h,R,k,Q,C,X,x,Z,F,_,m,$,v,H,N,j,A,ee,b,V,y,I,P,ne,B,te,D,re,S,J,G,ue;const p=class p{constructor(...t){a(this,T);a(this,M);a(this,g);a(this,h);a(this,k);a(this,C);a(this,x);a(this,F);a(this,m);a(this,v);a(this,N);a(this,A);a(this,b);a(this,y);a(this,P);a(this,B);a(this,D);a(this,S);a(this,G);a(this,d,[]);const r=t[0],i=t[1];if(le.isBrowser)if(typeof r=="string"){const u=document.createElement("div");u.innerHTML=r;const f=u.firstElementChild;L(this,d,[f]),c(this,g,E).call(this,f,i)}else r instanceof HTMLElement?(L(this,d,[r]),c(this,g,E).call(this,r,i)):L(this,d,c(this,T,z).call(this,r))}get rootElements(){return U(this,d)}};d=new WeakMap,T=new WeakSet,z=function(t){const r=[];for(const i in t){const u=i,f=t[u],l=c(this,M,O).call(this,u,f==null?void 0:f.svg);f&&c(this,g,E).call(this,l,f),r.push(l)}return r},M=new WeakSet,O=function(t,r=!1){let i=null;return t.includes("-")?i=new(customElements.get(t)):r?i=document.createElementNS("http://www.w3.org/2000/svg",t):i=document.createElement(t),i},g=new WeakSet,E=function(t,r){for(const i in r){const u=i;u==="class"?c(this,h,R).call(this,t,r[u]):u==="style"?c(this,x,Z).call(this,t,r[u]):u==="events"?c(this,N,j).call(this,t,r[u]):u==="attributes"?c(this,A,ee).call(this,t,r[u]):u==="children"?c(this,y,I).call(this,t,r[u]):u==="shadowChildren"?c(this,y,I).call(this,t.shadowRoot||t,r[u]):u==="parent"&&c(this,G,ue).call(this,t,r[u])}r!=null&&r.created&&r.created(t)},h=new WeakSet,R=function(t,r){if(r){if(typeof r=="string")t.classList.add(r);else if(Array.isArray(r))r.forEach(i=>{c(this,h,R).call(this,t,i)});else if(typeof r=="object")if(r instanceof w.Store)c(this,k,Q).call(this,t,r);else for(const i in r){const u=r[i];u instanceof w.Store?c(this,C,X).call(this,t,i,u):u?t.classList.add(i):t.classList.remove(i)}}else return},k=new WeakSet,Q=function(t,r){r.subscribe(({current:i,previous:u})=>{u&&[u].flat().forEach(f=>{f&&t.classList.remove(f)}),i&&[i].flat().forEach(f=>{f&&t.classList.add(f)})})},C=new WeakSet,X=function(t,r,i){i.subscribe(({current:u})=>{u?t.classList.add(r):t.classList.remove(r)})},x=new WeakSet,Z=function(t,r){if(!r)return;t.tagName==="style"||t.tagName==="STYLE"?c(this,m,$).call(this,t,r):c(this,F,_).call(this,t,r)},F=new WeakSet,_=function(t,r){for(const i in r){const u=i,f=r[u];f instanceof w.Store?f.subscribe(({current:l})=>{c(this,v,H).call(this,t,u,l)}):c(this,v,H).call(this,t,u,f)}},m=new WeakSet,$=function(t,r){for(const i in r){const u=r[i];if(typeof u=="object"&&!(u instanceof w.Store))t.appendChild(new Text(`${i} {`)),c(this,m,$).call(this,t,u),t.appendChild(new Text("}"));else if(u instanceof w.Store){const f=new Text;u.subscribe(l=>{l.current?f.nodeValue=`${Y.camelToKebab(i)}: ${l.current};`:f.nodeValue=""}),t.appendChild(f)}else t.appendChild(new Text(`${Y.camelToKebab(i)}: ${u};`))}},v=new WeakSet,H=function(t,r,i){r.includes("--")?i?t.style.setProperty(r,i):t.style.removeProperty(r):i?t.style[r]=i:t.style[r]=""},N=new WeakSet,j=function(t,r){if(r)for(const i in r){const u=i,f=r[u];typeof f=="object"?t.addEventListener(u,f.callback,f.options):typeof f=="function"&&t.addEventListener(u,f)}},A=new WeakSet,ee=function(t,r){for(const i in r){const u=r[i];u instanceof w.Store?u.subscribe(({current:f})=>{c(this,b,V).call(this,t,i,f)}):c(this,b,V).call(this,t,i,u)}},b=new WeakSet,V=function(t,r,i){var u,f;r in t&&!((f=(u=t.constructor)==null?void 0:u.observedAttributes)!=null&&f.includes(r))?i!=null&&(t[r]=i.toString()):i!=null&&t.setAttribute(r,i.toString())},y=new WeakSet,I=function(t,r){r&&r.forEach(i=>{if(i instanceof w.Store){const u=document.createElement("div");u.style.display="contents",t.appendChild(u),i.subscribe(({current:f})=>{c(this,B,te).call(this,u,c(this,P,ne).call(this,f),Array.from(u.childNodes))})}else if(i instanceof p)t.append(...i.rootElements);else if(typeof i=="string"&&i.trim().startsWith("<")&&i.trim().endsWith(">")){const u=document.createElement("div");u.innerHTML=i,t.append(u.firstElementChild)}else{const u=c(this,S,J).call(this,i);u instanceof Node&&t.append(u)}})},P=new WeakSet,ne=function(t){return[t].flat().map(i=>i instanceof p?i.rootElements:c(this,S,J).call(this,i)).flat().filter(Boolean)},B=new WeakSet,te=function(t,r,i){i.forEach((u,f)=>{if(f<r.length){const l=r[f];c(this,D,re).call(this,u,l)||t.replaceChild(l,u)}else t.removeChild(u)});for(let u=i.length;u<r.length;u++)t.appendChild(r[u])},D=new WeakSet,re=function(t,r){return r?r instanceof Node?t.isEqualNode(r):t.textContent===r.toString():!1},S=new WeakSet,J=function(t){return t instanceof Node?t:t!=null?new Text(String(t)):void 0},G=new WeakSet,ue=function(t,r){if(!r)return;(r instanceof p?r.rootElements[0]:r).appendChild(t)};let n=p;function we(...e){return new n(...e)}function de(...e){return()=>new n(...e)}function ge(e){return new n({a:e})}function pe(e){return new n({abbr:e})}function he(e){return new n({address:e})}function me(e){return new n({area:e})}function ve(e){return new n({article:e})}function be(e){return new n({aside:e})}function ye(e){return new n({audio:e})}function Se(e){return new n({b:e})}function Le(e){return new n({base:e})}function Ee(e){return new n({bdi:e})}function Te(e){return new n({bdo:e})}function Me(e){return new n({blockquote:e})}function ke(e){return new n({body:e})}function Ce(e){return new n({br:e})}function xe(e){return new n({button:e})}function Fe(e){return new n({canvas:e})}function Ne(e){return new n({caption:e})}function Ae(e){return new n({cite:e})}function Pe(e){return new n({code:e})}function Be(e){return new n({col:e})}function De(e){return new n({colgroup:e})}function Ge(e){return new n({data:e})}function qe(e){return new n({datalist:e})}function Re(e){return new n({dd:e})}function $e(e){return new n({del:e})}function He(e){return new n({details:e})}function Ve(e){return new n({dfn:e})}function Ie(e){return new n({dialog:e})}function Je(e){return new n({div:e})}function Ke(e){return new n({dl:e})}function We(e){return new n({dt:e})}function Ue(e){return new n({em:e})}function Ye(e){return new n({embed:e})}function ze(e){return new n({fieldset:e})}function Oe(e){return new n({figcaption:e})}function Qe(e){return new n({figure:e})}function Xe(e){return new n({footer:e})}function Ze(e){return new n({form:e})}function _e(e){return new n({h1:e})}function je(e){return new n({h2:e})}function en(e){return new n({h3:e})}function nn(e){return new n({h4:e})}function tn(e){return new n({h5:e})}function rn(e){return new n({h6:e})}function un(e){return new n({head:e})}function on(e){return new n({header:e})}function sn(e){return new n({hgroup:e})}function fn(e){return new n({hr:e})}function cn(e){return new n({html:e})}function an(e){return new n({i:e})}function ln(e){return new n({iframe:e})}function wn(e){return new n({img:e})}function dn(e){return new n({input:e})}function gn(e){return new n({ins:e})}function pn(e){return new n({kbd:e})}function hn(e){return new n({label:e})}function mn(e){return new n({legend:e})}function vn(e){return new n({li:e})}function bn(e){return new n({link:e})}function yn(e){return new n({main:e})}function Sn(e){return new n({map:e})}function Ln(e){return new n({mark:e})}function En(e){return new n({menu:e})}function Tn(e){return new n({meta:e})}function Mn(e){return new n({meter:e})}function kn(e){return new n({nav:e})}function Cn(e){return new n({noscript:e})}function xn(e){return new n({object:e})}function Fn(e){return new n({ol:e})}function Nn(e){return new n({optgroup:e})}function An(e){return new n({option:e})}function Pn(e){return new n({output:e})}function Bn(e){return new n({p:e})}function Dn(e){return new n({picture:e})}function Gn(e){return new n({pre:e})}function qn(e){return new n({progress:e})}function Rn(e){return new n({q:e})}function $n(e){return new n({rp:e})}function Hn(e){return new n({rt:e})}function Vn(e){return new n({ruby:e})}function In(e){return new n({s:e})}function Jn(e){return new n({samp:e})}function Kn(e){return new n({script:e})}function Wn(e){return new n({search:e})}function Un(e){return new n({section:e})}function Yn(e){return new n({select:e})}function zn(e){return new n({slot:e})}function On(e){return new n({small:e})}function Qn(e){return new n({source:e})}function Xn(e){return new n({span:e})}function Zn(e){return new n({strong:e})}function ie(e){return new n({style:{style:e}})}function _n(e){return new n({sub:e})}function jn(e){return new n({summary:e})}function et(e){return new n({sup:e})}function nt(e){return new n({table:e})}function tt(e){return new n({tbody:e})}function rt(e){return new n({td:e})}function ut(e){return new n({template:e})}function it(e){return new n({textarea:e})}function ot(e){return new n({tfoot:e})}function st(e){return new n({th:e})}function ft(e){return new n({thead:e})}function ct(e){return new n({time:e})}function at(e){return new n({title:e})}function lt(e){return new n({tr:e})}function wt(e){return new n({track:e})}function dt(e){return new n({u:e})}function gt(e){return new n({ul:e})}function pt(e){return new n({var:e})}function ht(e){return new n({video:e})}function mt(e){return new n({wbr:e})}function vt(e){const t=new CSSStyleSheet;return t.replaceSync(ie(e).rootElements[0].innerHTML),t}function bt(e){return new n({a:s(o({},e),{svg:!0})})}function yt(e){return new n({animate:s(o({},e),{svg:!0})})}function St(e){return new n({animateMotion:s(o({},e),{svg:!0})})}function Lt(e){return new n({animateTransform:s(o({},e),{svg:!0})})}function Et(e){return new n({circle:s(o({},e),{svg:!0})})}function Tt(e){return new n({clipPath:s(o({},e),{svg:!0})})}function Mt(e){return new n({defs:s(o({},e),{svg:!0})})}function kt(e){return new n({desc:s(o({},e),{svg:!0})})}function Ct(e){return new n({ellipse:s(o({},e),{svg:!0})})}function xt(e){return new n({feBlend:s(o({},e),{svg:!0})})}function Ft(e){return new n({feColorMatrix:s(o({},e),{svg:!0})})}function Nt(e){return new n({feComponentTransfer:s(o({},e),{svg:!0})})}function At(e){return new n({feComposite:s(o({},e),{svg:!0})})}function Pt(e){return new n({feConvolveMatrix:s(o({},e),{svg:!0})})}function Bt(e){return new n({feDiffuseLighting:s(o({},e),{svg:!0})})}function Dt(e){return new n({feDisplacementMap:s(o({},e),{svg:!0})})}function Gt(e){return new n({feDistantLight:s(o({},e),{svg:!0})})}function qt(e){return new n({feDropShadow:s(o({},e),{svg:!0})})}function Rt(e){return new n({feFlood:s(o({},e),{svg:!0})})}function $t(e){return new n({feFuncA:s(o({},e),{svg:!0})})}function Ht(e){return new n({feFuncB:s(o({},e),{svg:!0})})}function Vt(e){return new n({feFuncG:s(o({},e),{svg:!0})})}function It(e){return new n({feFuncR:s(o({},e),{svg:!0})})}function Jt(e){return new n({feGaussianBlur:s(o({},e),{svg:!0})})}function Kt(e){return new n({feImage:s(o({},e),{svg:!0})})}function Wt(e){return new n({feMerge:s(o({},e),{svg:!0})})}function Ut(e){return new n({feMergeNode:s(o({},e),{svg:!0})})}function Yt(e){return new n({feMorphology:s(o({},e),{svg:!0})})}function zt(e){return new n({feOffset:s(o({},e),{svg:!0})})}function Ot(e){return new n({fePointLight:s(o({},e),{svg:!0})})}function Qt(e){return new n({feSpecularLighting:s(o({},e),{svg:!0})})}function Xt(e){return new n({feSpotLight:s(o({},e),{svg:!0})})}function Zt(e){return new n({feTile:s(o({},e),{svg:!0})})}function _t(e){return new n({feTurbulence:s(o({},e),{svg:!0})})}function jt(e){return new n({filter:s(o({},e),{svg:!0})})}function er(e){return new n({foreignObject:s(o({},e),{svg:!0})})}function nr(e){return new n({g:s(o({},e),{svg:!0})})}function tr(e){return new n({image:s(o({},e),{svg:!0})})}function rr(e){return new n({line:s(o({},e),{svg:!0})})}function ur(e){return new n({linearGradient:s(o({},e),{svg:!0})})}function ir(e){return new n({marker:s(o({},e),{svg:!0})})}function or(e){return new n({mask:s(o({},e),{svg:!0})})}function sr(e){return new n({metadata:s(o({},e),{svg:!0})})}function fr(e){return new n({mpath:s(o({},e),{svg:!0})})}function cr(e){return new n({path:s(o({},e),{svg:!0})})}function ar(e){return new n({pattern:s(o({},e),{svg:!0})})}function lr(e){return new n({polygon:s(o({},e),{svg:!0})})}function wr(e){return new n({polyline:s(o({},e),{svg:!0})})}function dr(e){return new n({radialGradient:s(o({},e),{svg:!0})})}function gr(e){return new n({rect:s(o({},e),{svg:!0})})}function pr(e){return new n({script:s(o({},e),{svg:!0})})}function hr(e){return new n({set:s(o({},e),{svg:!0})})}function mr(e){return new n({stop:s(o({},e),{svg:!0})})}function vr(e){return new n({style:s(o({},e),{svg:!0})})}function br(e){return new n({svg:s(o({},e),{svg:!0})})}function yr(e){return new n({switch:s(o({},e),{svg:!0})})}function Sr(e){return new n({symbol:s(o({},e),{svg:!0})})}function Lr(e){return new n({text:s(o({},e),{svg:!0})})}function Er(e){return new n({textPath:s(o({},e),{svg:!0})})}function Tr(e){return new n({title:s(o({},e),{svg:!0})})}function Mr(e){return new n({tspan:s(o({},e),{svg:!0})})}function kr(e){return new n({use:s(o({},e),{svg:!0})})}function Cr(e){return new n({view:s(o({},e),{svg:!0})})}exports.ElementConstructor=n;exports.a=ge;exports.abbr=pe;exports.address=he;exports.animate=yt;exports.animateMotion=St;exports.animateTransform=Lt;exports.area=me;exports.article=ve;exports.aside=be;exports.audio=ye;exports.b=Se;exports.base=Le;exports.bdi=Ee;exports.bdo=Te;exports.blockquote=Me;exports.body=ke;exports.br=Ce;exports.button=xe;exports.canvas=Fe;exports.caption=Ne;exports.circle=Et;exports.cite=Ae;exports.clipPath=Tt;exports.code=Pe;exports.col=Be;exports.colgroup=De;exports.data=Ge;exports.datalist=qe;exports.dd=Re;exports.defs=Mt;exports.del=$e;exports.desc=kt;exports.details=He;exports.dfn=Ve;exports.dialog=Ie;exports.div=Je;exports.dl=Ke;exports.dt=We;exports.element=we;exports.elementFactory=de;exports.ellipse=Ct;exports.em=Ue;exports.embed=Ye;exports.feBlend=xt;exports.feColorMatrix=Ft;exports.feComponentTransfer=Nt;exports.feComposite=At;exports.feConvolveMatrix=Pt;exports.feDiffuseLighting=Bt;exports.feDisplacementMap=Dt;exports.feDistantLight=Gt;exports.feDropShadow=qt;exports.feFlood=Rt;exports.feFuncA=$t;exports.feFuncB=Ht;exports.feFuncG=Vt;exports.feFuncR=It;exports.feGaussianBlur=Jt;exports.feImage=Kt;exports.feMerge=Wt;exports.feMergeNode=Ut;exports.feMorphology=Yt;exports.feOffset=zt;exports.fePointLight=Ot;exports.feSpecularLighting=Qt;exports.feSpotLight=Xt;exports.feTile=Zt;exports.feTurbulence=_t;exports.fieldset=ze;exports.figcaption=Oe;exports.figure=Qe;exports.filter=jt;exports.footer=Xe;exports.foreignObject=er;exports.form=Ze;exports.g=nr;exports.h1=_e;exports.h2=je;exports.h3=en;exports.h4=nn;exports.h5=tn;exports.h6=rn;exports.head=un;exports.header=on;exports.hgroup=sn;exports.hr=fn;exports.html=cn;exports.htmlVar=pt;exports.i=an;exports.iframe=ln;exports.image=tr;exports.img=wn;exports.input=dn;exports.ins=gn;exports.kbd=pn;exports.label=hn;exports.legend=mn;exports.li=vn;exports.line=rr;exports.linearGradient=ur;exports.link=bn;exports.main=yn;exports.map=Sn;exports.mark=Ln;exports.marker=ir;exports.mask=or;exports.menu=En;exports.meta=Tn;exports.metadata=sr;exports.meter=Mn;exports.mpath=fr;exports.nav=kn;exports.noscript=Cn;exports.object=xn;exports.ol=Fn;exports.optgroup=Nn;exports.option=An;exports.output=Pn;exports.p=Bn;exports.path=cr;exports.pattern=ar;exports.picture=Dn;exports.polygon=lr;exports.polyline=wr;exports.pre=Gn;exports.progress=qn;exports.q=Rn;exports.radialGradient=dr;exports.rect=gr;exports.rp=$n;exports.rt=Hn;exports.ruby=Vn;exports.s=In;exports.samp=Jn;exports.script=Kn;exports.search=Wn;exports.section=Un;exports.select=Yn;exports.set=hr;exports.slot=zn;exports.small=On;exports.source=Qn;exports.span=Xn;exports.stop=mr;exports.strong=Zn;exports.style=ie;exports.stylesheet=vt;exports.sub=_n;exports.summary=jn;exports.sup=et;exports.svg=br;exports.svgA=bt;exports.svgScript=pr;exports.svgStyle=vr;exports.svgSwitch=yr;exports.svgTitle=Tr;exports.symbol=Sr;exports.table=nt;exports.tbody=tt;exports.td=rt;exports.template=ut;exports.text=Lr;exports.textPath=Er;exports.textarea=it;exports.tfoot=ot;exports.th=st;exports.thead=ft;exports.time=ct;exports.title=at;exports.tr=lt;exports.track=wt;exports.tspan=Mr;exports.u=dt;exports.ul=gt;exports.use=kr;exports.video=ht;exports.view=Cr;exports.wbr=mt;
|
|
1
|
+
"use strict";var oe=Object.defineProperty,se=Object.defineProperties;var fe=Object.getOwnPropertyDescriptors;var K=Object.getOwnPropertySymbols;var ce=Object.prototype.hasOwnProperty,ae=Object.prototype.propertyIsEnumerable;var W=(e,r,t)=>r in e?oe(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,o=(e,r)=>{for(var t in r||(r={}))ce.call(r,t)&&W(e,t,r[t]);if(K)for(var t of K(r))ae.call(r,t)&&W(e,t,r[t]);return e},s=(e,r)=>se(e,fe(r));var q=(e,r,t)=>{if(!r.has(e))throw TypeError("Cannot "+t)};var U=(e,r,t)=>(q(e,r,"read from private field"),t?t.call(e):r.get(e)),a=(e,r,t)=>{if(r.has(e))throw TypeError("Cannot add the same private member more than once");r instanceof WeakSet?r.add(e):r.set(e,t)},L=(e,r,t,u)=>(q(e,r,"write to private field"),u?u.call(e,t):r.set(e,t),t);var c=(e,r,t)=>(q(e,r,"access private method"),t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const w=require("../Store-txkR3wXU.cjs"),le=require("../browser-QbF6EW-w.cjs"),Y=require("../string-WmNOGq16.cjs");var d,T,z,M,O,g,E,h,R,k,Q,C,X,x,Z,F,_,m,$,v,H,N,j,A,ee,b,V,y,I,P,ne,B,te,D,re,S,J,G,ue;const p=class p{constructor(...r){a(this,T);a(this,M);a(this,g);a(this,h);a(this,k);a(this,C);a(this,x);a(this,F);a(this,m);a(this,v);a(this,N);a(this,A);a(this,b);a(this,y);a(this,P);a(this,B);a(this,D);a(this,S);a(this,G);a(this,d,[]);const t=r[0],u=r[1];if(le.isBrowser)if(typeof t=="string"){const i=document.createElement("div");i.innerHTML=t;const f=i.firstElementChild;L(this,d,[f]),c(this,g,E).call(this,f,u)}else t instanceof HTMLElement?(L(this,d,[t]),c(this,g,E).call(this,t,u)):L(this,d,c(this,T,z).call(this,t))}get rootElements(){return U(this,d)}};d=new WeakMap,T=new WeakSet,z=function(r){const t=[];for(const u in r){const i=u,f=r[i],l=c(this,M,O).call(this,i,f==null?void 0:f.svg);f&&c(this,g,E).call(this,l,f),t.push(l)}return t},M=new WeakSet,O=function(r,t=!1){let u=null;return r.includes("-")?u=new(customElements.get(r)):t?u=document.createElementNS("http://www.w3.org/2000/svg",r):u=document.createElement(r),u},g=new WeakSet,E=function(r,t){for(const u in t){const i=u;i==="class"?c(this,h,R).call(this,r,t[i]):i==="style"?c(this,x,Z).call(this,r,t[i]):i==="events"?c(this,N,j).call(this,r,t[i]):i==="attributes"?c(this,A,ee).call(this,r,t[i]):i==="children"?c(this,y,I).call(this,r,t[i]):i==="shadowChildren"?c(this,y,I).call(this,r.shadowRoot||r,t[i]):i==="parent"&&c(this,G,ue).call(this,r,t[i])}t!=null&&t.created&&t.created(r)},h=new WeakSet,R=function(r,t){if(t){if(typeof t=="string")r.classList.add(t);else if(Array.isArray(t))t.forEach(u=>{c(this,h,R).call(this,r,u)});else if(typeof t=="object")if(t instanceof w.Store)c(this,k,Q).call(this,r,t);else for(const u in t){const i=t[u];i instanceof w.Store?c(this,C,X).call(this,r,u,i):i?r.classList.add(u):r.classList.remove(u)}}else return},k=new WeakSet,Q=function(r,t){t.subscribe(({current:u,previous:i})=>{i&&[i].flat().forEach(f=>{f&&r.classList.remove(f)}),u&&[u].flat().forEach(f=>{f&&r.classList.add(f)})})},C=new WeakSet,X=function(r,t,u){u.subscribe(({current:i})=>{i?r.classList.add(t):r.classList.remove(t)})},x=new WeakSet,Z=function(r,t){if(!t)return;r.tagName==="style"||r.tagName==="STYLE"?c(this,m,$).call(this,r,t):c(this,F,_).call(this,r,t)},F=new WeakSet,_=function(r,t){for(const u in t){const i=u,f=t[i];f instanceof w.Store?f.subscribe(({current:l})=>{c(this,v,H).call(this,r,i,l)}):c(this,v,H).call(this,r,i,f)}},m=new WeakSet,$=function(r,t){for(const u in t){const i=t[u];if(typeof i=="object"&&!(i instanceof w.Store))r.appendChild(new Text(`${u} {`)),c(this,m,$).call(this,r,i),r.appendChild(new Text("}"));else if(i instanceof w.Store){const f=new Text;i.subscribe(l=>{l.current?f.nodeValue=`${Y.camelToKebab(u)}: ${l.current};`:f.nodeValue=""}),r.appendChild(f)}else r.appendChild(new Text(`${Y.camelToKebab(u)}: ${i};`))}},v=new WeakSet,H=function(r,t,u){t.includes("--")?u?r.style.setProperty(t,u):r.style.removeProperty(t):u?r.style[t]=u:r.style[t]=""},N=new WeakSet,j=function(r,t){if(t)for(const u in t){const i=u,f=t[i];typeof f=="object"?r.addEventListener(i,f.callback,f.options):typeof f=="function"&&r.addEventListener(i,f)}},A=new WeakSet,ee=function(r,t){for(const u in t){const i=t[u];i instanceof w.Store?i.subscribe(({current:f})=>{c(this,b,V).call(this,r,u,f)}):c(this,b,V).call(this,r,u,i)}},b=new WeakSet,V=function(r,t,u){var i,f;t in r&&!((f=(i=r.constructor)==null?void 0:i.observedAttributes)!=null&&f.includes(t))?u!=null&&(r[t]=u.toString()):u!=null&&r.setAttribute(t,u.toString())},y=new WeakSet,I=function(r,t){t&&t.forEach(u=>{if(u instanceof w.Store){const i=document.createElement("div");i.style.display="contents",r.appendChild(i),u.subscribe(({current:f})=>{c(this,B,te).call(this,i,c(this,P,ne).call(this,f),Array.from(i.childNodes))})}else if(u instanceof p)r.append(...u.rootElements);else{const i=c(this,S,J).call(this,u);i instanceof Node&&r.append(i)}})},P=new WeakSet,ne=function(r){return[r].flat().map(u=>u instanceof p?u.rootElements:c(this,S,J).call(this,u)).flat().filter(Boolean)},B=new WeakSet,te=function(r,t,u){u.forEach((i,f)=>{if(f<t.length){const l=t[f];c(this,D,re).call(this,i,l)||r.replaceChild(l,i)}else r.removeChild(i)});for(let i=u.length;i<t.length;i++)r.appendChild(t[i])},D=new WeakSet,re=function(r,t){return t?t instanceof Node?r.isEqualNode(t):r.textContent===t.toString():!1},S=new WeakSet,J=function(r){if(r instanceof Node)return r;if(r!=null){const t=String(r);if(t.trim().startsWith("<")&&t.trim().endsWith(">")){const u=document.createElement("div");return u.innerHTML=t,u.firstElementChild}else return new Text(t)}else return},G=new WeakSet,ue=function(r,t){if(!t)return;(t instanceof p?t.rootElements[0]:t).appendChild(r)};let n=p;function we(...e){return new n(...e)}function de(...e){return()=>new n(...e)}function ge(e){return new n({a:e})}function pe(e){return new n({abbr:e})}function he(e){return new n({address:e})}function me(e){return new n({area:e})}function ve(e){return new n({article:e})}function be(e){return new n({aside:e})}function ye(e){return new n({audio:e})}function Se(e){return new n({b:e})}function Le(e){return new n({base:e})}function Ee(e){return new n({bdi:e})}function Te(e){return new n({bdo:e})}function Me(e){return new n({blockquote:e})}function ke(e){return new n({body:e})}function Ce(e){return new n({br:e})}function xe(e){return new n({button:e})}function Fe(e){return new n({canvas:e})}function Ne(e){return new n({caption:e})}function Ae(e){return new n({cite:e})}function Pe(e){return new n({code:e})}function Be(e){return new n({col:e})}function De(e){return new n({colgroup:e})}function Ge(e){return new n({data:e})}function qe(e){return new n({datalist:e})}function Re(e){return new n({dd:e})}function $e(e){return new n({del:e})}function He(e){return new n({details:e})}function Ve(e){return new n({dfn:e})}function Ie(e){return new n({dialog:e})}function Je(e){return new n({div:e})}function Ke(e){return new n({dl:e})}function We(e){return new n({dt:e})}function Ue(e){return new n({em:e})}function Ye(e){return new n({embed:e})}function ze(e){return new n({fieldset:e})}function Oe(e){return new n({figcaption:e})}function Qe(e){return new n({figure:e})}function Xe(e){return new n({footer:e})}function Ze(e){return new n({form:e})}function _e(e){return new n({h1:e})}function je(e){return new n({h2:e})}function en(e){return new n({h3:e})}function nn(e){return new n({h4:e})}function tn(e){return new n({h5:e})}function rn(e){return new n({h6:e})}function un(e){return new n({head:e})}function on(e){return new n({header:e})}function sn(e){return new n({hgroup:e})}function fn(e){return new n({hr:e})}function cn(e){return new n({html:e})}function an(e){return new n({i:e})}function ln(e){return new n({iframe:e})}function wn(e){return new n({img:e})}function dn(e){return new n({input:e})}function gn(e){return new n({ins:e})}function pn(e){return new n({kbd:e})}function hn(e){return new n({label:e})}function mn(e){return new n({legend:e})}function vn(e){return new n({li:e})}function bn(e){return new n({link:e})}function yn(e){return new n({main:e})}function Sn(e){return new n({map:e})}function Ln(e){return new n({mark:e})}function En(e){return new n({menu:e})}function Tn(e){return new n({meta:e})}function Mn(e){return new n({meter:e})}function kn(e){return new n({nav:e})}function Cn(e){return new n({noscript:e})}function xn(e){return new n({object:e})}function Fn(e){return new n({ol:e})}function Nn(e){return new n({optgroup:e})}function An(e){return new n({option:e})}function Pn(e){return new n({output:e})}function Bn(e){return new n({p:e})}function Dn(e){return new n({picture:e})}function Gn(e){return new n({pre:e})}function qn(e){return new n({progress:e})}function Rn(e){return new n({q:e})}function $n(e){return new n({rp:e})}function Hn(e){return new n({rt:e})}function Vn(e){return new n({ruby:e})}function In(e){return new n({s:e})}function Jn(e){return new n({samp:e})}function Kn(e){return new n({script:e})}function Wn(e){return new n({search:e})}function Un(e){return new n({section:e})}function Yn(e){return new n({select:e})}function zn(e){return new n({slot:e})}function On(e){return new n({small:e})}function Qn(e){return new n({source:e})}function Xn(e){return new n({span:e})}function Zn(e){return new n({strong:e})}function ie(e){return new n({style:{style:e}})}function _n(e){return new n({sub:e})}function jn(e){return new n({summary:e})}function et(e){return new n({sup:e})}function nt(e){return new n({table:e})}function tt(e){return new n({tbody:e})}function rt(e){return new n({td:e})}function ut(e){return new n({template:e})}function it(e){return new n({textarea:e})}function ot(e){return new n({tfoot:e})}function st(e){return new n({th:e})}function ft(e){return new n({thead:e})}function ct(e){return new n({time:e})}function at(e){return new n({title:e})}function lt(e){return new n({tr:e})}function wt(e){return new n({track:e})}function dt(e){return new n({u:e})}function gt(e){return new n({ul:e})}function pt(e){return new n({var:e})}function ht(e){return new n({video:e})}function mt(e){return new n({wbr:e})}function vt(e){const r=new CSSStyleSheet;return r.replaceSync(ie(e).rootElements[0].innerHTML),r}function bt(e){return new n({a:s(o({},e),{svg:!0})})}function yt(e){return new n({animate:s(o({},e),{svg:!0})})}function St(e){return new n({animateMotion:s(o({},e),{svg:!0})})}function Lt(e){return new n({animateTransform:s(o({},e),{svg:!0})})}function Et(e){return new n({circle:s(o({},e),{svg:!0})})}function Tt(e){return new n({clipPath:s(o({},e),{svg:!0})})}function Mt(e){return new n({defs:s(o({},e),{svg:!0})})}function kt(e){return new n({desc:s(o({},e),{svg:!0})})}function Ct(e){return new n({ellipse:s(o({},e),{svg:!0})})}function xt(e){return new n({feBlend:s(o({},e),{svg:!0})})}function Ft(e){return new n({feColorMatrix:s(o({},e),{svg:!0})})}function Nt(e){return new n({feComponentTransfer:s(o({},e),{svg:!0})})}function At(e){return new n({feComposite:s(o({},e),{svg:!0})})}function Pt(e){return new n({feConvolveMatrix:s(o({},e),{svg:!0})})}function Bt(e){return new n({feDiffuseLighting:s(o({},e),{svg:!0})})}function Dt(e){return new n({feDisplacementMap:s(o({},e),{svg:!0})})}function Gt(e){return new n({feDistantLight:s(o({},e),{svg:!0})})}function qt(e){return new n({feDropShadow:s(o({},e),{svg:!0})})}function Rt(e){return new n({feFlood:s(o({},e),{svg:!0})})}function $t(e){return new n({feFuncA:s(o({},e),{svg:!0})})}function Ht(e){return new n({feFuncB:s(o({},e),{svg:!0})})}function Vt(e){return new n({feFuncG:s(o({},e),{svg:!0})})}function It(e){return new n({feFuncR:s(o({},e),{svg:!0})})}function Jt(e){return new n({feGaussianBlur:s(o({},e),{svg:!0})})}function Kt(e){return new n({feImage:s(o({},e),{svg:!0})})}function Wt(e){return new n({feMerge:s(o({},e),{svg:!0})})}function Ut(e){return new n({feMergeNode:s(o({},e),{svg:!0})})}function Yt(e){return new n({feMorphology:s(o({},e),{svg:!0})})}function zt(e){return new n({feOffset:s(o({},e),{svg:!0})})}function Ot(e){return new n({fePointLight:s(o({},e),{svg:!0})})}function Qt(e){return new n({feSpecularLighting:s(o({},e),{svg:!0})})}function Xt(e){return new n({feSpotLight:s(o({},e),{svg:!0})})}function Zt(e){return new n({feTile:s(o({},e),{svg:!0})})}function _t(e){return new n({feTurbulence:s(o({},e),{svg:!0})})}function jt(e){return new n({filter:s(o({},e),{svg:!0})})}function er(e){return new n({foreignObject:s(o({},e),{svg:!0})})}function nr(e){return new n({g:s(o({},e),{svg:!0})})}function tr(e){return new n({image:s(o({},e),{svg:!0})})}function rr(e){return new n({line:s(o({},e),{svg:!0})})}function ur(e){return new n({linearGradient:s(o({},e),{svg:!0})})}function ir(e){return new n({marker:s(o({},e),{svg:!0})})}function or(e){return new n({mask:s(o({},e),{svg:!0})})}function sr(e){return new n({metadata:s(o({},e),{svg:!0})})}function fr(e){return new n({mpath:s(o({},e),{svg:!0})})}function cr(e){return new n({path:s(o({},e),{svg:!0})})}function ar(e){return new n({pattern:s(o({},e),{svg:!0})})}function lr(e){return new n({polygon:s(o({},e),{svg:!0})})}function wr(e){return new n({polyline:s(o({},e),{svg:!0})})}function dr(e){return new n({radialGradient:s(o({},e),{svg:!0})})}function gr(e){return new n({rect:s(o({},e),{svg:!0})})}function pr(e){return new n({script:s(o({},e),{svg:!0})})}function hr(e){return new n({set:s(o({},e),{svg:!0})})}function mr(e){return new n({stop:s(o({},e),{svg:!0})})}function vr(e){return new n({style:s(o({},e),{svg:!0})})}function br(e){return new n({svg:s(o({},e),{svg:!0})})}function yr(e){return new n({switch:s(o({},e),{svg:!0})})}function Sr(e){return new n({symbol:s(o({},e),{svg:!0})})}function Lr(e){return new n({text:s(o({},e),{svg:!0})})}function Er(e){return new n({textPath:s(o({},e),{svg:!0})})}function Tr(e){return new n({title:s(o({},e),{svg:!0})})}function Mr(e){return new n({tspan:s(o({},e),{svg:!0})})}function kr(e){return new n({use:s(o({},e),{svg:!0})})}function Cr(e){return new n({view:s(o({},e),{svg:!0})})}exports.ElementConstructor=n;exports.a=ge;exports.abbr=pe;exports.address=he;exports.animate=yt;exports.animateMotion=St;exports.animateTransform=Lt;exports.area=me;exports.article=ve;exports.aside=be;exports.audio=ye;exports.b=Se;exports.base=Le;exports.bdi=Ee;exports.bdo=Te;exports.blockquote=Me;exports.body=ke;exports.br=Ce;exports.button=xe;exports.canvas=Fe;exports.caption=Ne;exports.circle=Et;exports.cite=Ae;exports.clipPath=Tt;exports.code=Pe;exports.col=Be;exports.colgroup=De;exports.data=Ge;exports.datalist=qe;exports.dd=Re;exports.defs=Mt;exports.del=$e;exports.desc=kt;exports.details=He;exports.dfn=Ve;exports.dialog=Ie;exports.div=Je;exports.dl=Ke;exports.dt=We;exports.element=we;exports.elementFactory=de;exports.ellipse=Ct;exports.em=Ue;exports.embed=Ye;exports.feBlend=xt;exports.feColorMatrix=Ft;exports.feComponentTransfer=Nt;exports.feComposite=At;exports.feConvolveMatrix=Pt;exports.feDiffuseLighting=Bt;exports.feDisplacementMap=Dt;exports.feDistantLight=Gt;exports.feDropShadow=qt;exports.feFlood=Rt;exports.feFuncA=$t;exports.feFuncB=Ht;exports.feFuncG=Vt;exports.feFuncR=It;exports.feGaussianBlur=Jt;exports.feImage=Kt;exports.feMerge=Wt;exports.feMergeNode=Ut;exports.feMorphology=Yt;exports.feOffset=zt;exports.fePointLight=Ot;exports.feSpecularLighting=Qt;exports.feSpotLight=Xt;exports.feTile=Zt;exports.feTurbulence=_t;exports.fieldset=ze;exports.figcaption=Oe;exports.figure=Qe;exports.filter=jt;exports.footer=Xe;exports.foreignObject=er;exports.form=Ze;exports.g=nr;exports.h1=_e;exports.h2=je;exports.h3=en;exports.h4=nn;exports.h5=tn;exports.h6=rn;exports.head=un;exports.header=on;exports.hgroup=sn;exports.hr=fn;exports.html=cn;exports.htmlVar=pt;exports.i=an;exports.iframe=ln;exports.image=tr;exports.img=wn;exports.input=dn;exports.ins=gn;exports.kbd=pn;exports.label=hn;exports.legend=mn;exports.li=vn;exports.line=rr;exports.linearGradient=ur;exports.link=bn;exports.main=yn;exports.map=Sn;exports.mark=Ln;exports.marker=ir;exports.mask=or;exports.menu=En;exports.meta=Tn;exports.metadata=sr;exports.meter=Mn;exports.mpath=fr;exports.nav=kn;exports.noscript=Cn;exports.object=xn;exports.ol=Fn;exports.optgroup=Nn;exports.option=An;exports.output=Pn;exports.p=Bn;exports.path=cr;exports.pattern=ar;exports.picture=Dn;exports.polygon=lr;exports.polyline=wr;exports.pre=Gn;exports.progress=qn;exports.q=Rn;exports.radialGradient=dr;exports.rect=gr;exports.rp=$n;exports.rt=Hn;exports.ruby=Vn;exports.s=In;exports.samp=Jn;exports.script=Kn;exports.search=Wn;exports.section=Un;exports.select=Yn;exports.set=hr;exports.slot=zn;exports.small=On;exports.source=Qn;exports.span=Xn;exports.stop=mr;exports.strong=Zn;exports.style=ie;exports.stylesheet=vt;exports.sub=_n;exports.summary=jn;exports.sup=et;exports.svg=br;exports.svgA=bt;exports.svgScript=pr;exports.svgStyle=vr;exports.svgSwitch=yr;exports.svgTitle=Tr;exports.symbol=Sr;exports.table=nt;exports.tbody=tt;exports.td=rt;exports.template=ut;exports.text=Lr;exports.textPath=Er;exports.textarea=it;exports.tfoot=ot;exports.th=st;exports.thead=ft;exports.time=ct;exports.title=at;exports.tr=lt;exports.track=wt;exports.tspan=Mr;exports.u=dt;exports.ul=gt;exports.use=kr;exports.video=ht;exports.view=Cr;exports.wbr=mt;
|
|
@@ -2,197 +2,198 @@ var on = Object.defineProperty, fn = Object.defineProperties;
|
|
|
2
2
|
var sn = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var W = Object.getOwnPropertySymbols;
|
|
4
4
|
var cn = Object.prototype.hasOwnProperty, an = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var K = (n,
|
|
6
|
-
for (var
|
|
7
|
-
cn.call(
|
|
5
|
+
var K = (n, r, t) => r in n ? on(n, r, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[r] = t, o = (n, r) => {
|
|
6
|
+
for (var t in r || (r = {}))
|
|
7
|
+
cn.call(r, t) && K(n, t, r[t]);
|
|
8
8
|
if (W)
|
|
9
|
-
for (var
|
|
10
|
-
an.call(
|
|
9
|
+
for (var t of W(r))
|
|
10
|
+
an.call(r, t) && K(n, t, r[t]);
|
|
11
11
|
return n;
|
|
12
|
-
}, f = (n,
|
|
13
|
-
var q = (n,
|
|
14
|
-
if (!
|
|
15
|
-
throw TypeError("Cannot " +
|
|
12
|
+
}, f = (n, r) => fn(n, sn(r));
|
|
13
|
+
var q = (n, r, t) => {
|
|
14
|
+
if (!r.has(n))
|
|
15
|
+
throw TypeError("Cannot " + t);
|
|
16
16
|
};
|
|
17
|
-
var U = (n,
|
|
18
|
-
if (
|
|
17
|
+
var U = (n, r, t) => (q(n, r, "read from private field"), t ? t.call(n) : r.get(n)), a = (n, r, t) => {
|
|
18
|
+
if (r.has(n))
|
|
19
19
|
throw TypeError("Cannot add the same private member more than once");
|
|
20
|
-
|
|
21
|
-
}, E = (n,
|
|
22
|
-
var c = (n,
|
|
23
|
-
import { S as l } from "../Store-
|
|
20
|
+
r instanceof WeakSet ? r.add(n) : r.set(n, t);
|
|
21
|
+
}, E = (n, r, t, u) => (q(n, r, "write to private field"), u ? u.call(n, t) : r.set(n, t), t);
|
|
22
|
+
var c = (n, r, t) => (q(n, r, "access private method"), t);
|
|
23
|
+
import { S as l } from "../Store-qq7IjRLE.js";
|
|
24
24
|
import { i as wn } from "../browser-S4eq8AeN.js";
|
|
25
25
|
import { c as Y } from "../string-GmxZA5Nq.js";
|
|
26
|
-
var g, T, z, C, Q, d, L,
|
|
27
|
-
const
|
|
28
|
-
constructor(...
|
|
26
|
+
var g, T, z, C, Q, d, L, p, $, M, X, k, Z, x, O, N, _, v, H, m, R, A, j, F, nn, b, J, y, V, P, en, B, tn, D, rn, S, I, G, un;
|
|
27
|
+
const h = class h {
|
|
28
|
+
constructor(...r) {
|
|
29
29
|
a(this, T);
|
|
30
30
|
a(this, C);
|
|
31
31
|
a(this, d);
|
|
32
|
-
|
|
33
|
-
a(this, h);
|
|
32
|
+
a(this, p);
|
|
34
33
|
a(this, M);
|
|
35
34
|
a(this, k);
|
|
36
|
-
// Style
|
|
37
35
|
a(this, x);
|
|
38
36
|
a(this, N);
|
|
39
37
|
a(this, v);
|
|
40
38
|
a(this, m);
|
|
41
|
-
// Events
|
|
42
39
|
a(this, A);
|
|
43
|
-
// Attributes
|
|
44
40
|
a(this, F);
|
|
45
41
|
a(this, b);
|
|
46
|
-
// Children
|
|
47
42
|
a(this, y);
|
|
48
43
|
a(this, P);
|
|
49
44
|
a(this, B);
|
|
50
45
|
a(this, D);
|
|
51
46
|
a(this, S);
|
|
52
|
-
// Parent
|
|
53
47
|
a(this, G);
|
|
54
48
|
a(this, g, []);
|
|
55
|
-
const
|
|
49
|
+
const t = r[0], u = r[1];
|
|
56
50
|
if (wn)
|
|
57
|
-
if (typeof
|
|
58
|
-
const
|
|
59
|
-
|
|
60
|
-
const s =
|
|
61
|
-
E(this, g, [s]), c(this, d, L).call(this, s,
|
|
51
|
+
if (typeof t == "string") {
|
|
52
|
+
const i = document.createElement("div");
|
|
53
|
+
i.innerHTML = t;
|
|
54
|
+
const s = i.firstElementChild;
|
|
55
|
+
E(this, g, [s]), c(this, d, L).call(this, s, u);
|
|
62
56
|
} else
|
|
63
|
-
|
|
57
|
+
t instanceof HTMLElement ? (E(this, g, [t]), c(this, d, L).call(this, t, u)) : E(this, g, c(this, T, z).call(this, t));
|
|
64
58
|
}
|
|
65
59
|
get rootElements() {
|
|
66
60
|
return U(this, g);
|
|
67
61
|
}
|
|
68
62
|
};
|
|
69
|
-
g = new WeakMap(), T = new WeakSet(), z = function(
|
|
70
|
-
const
|
|
71
|
-
for (const
|
|
72
|
-
const
|
|
73
|
-
s && c(this, d, L).call(this, w, s),
|
|
63
|
+
g = new WeakMap(), T = new WeakSet(), z = function(r) {
|
|
64
|
+
const t = [];
|
|
65
|
+
for (const u in r) {
|
|
66
|
+
const i = u, s = r[i], w = c(this, C, Q).call(this, i, s == null ? void 0 : s.svg);
|
|
67
|
+
s && c(this, d, L).call(this, w, s), t.push(w);
|
|
74
68
|
}
|
|
75
|
-
return
|
|
76
|
-
}, C = new WeakSet(), Q = function(
|
|
77
|
-
let
|
|
78
|
-
return
|
|
79
|
-
}, d = new WeakSet(), L = function(
|
|
80
|
-
for (const
|
|
81
|
-
const
|
|
82
|
-
|
|
69
|
+
return t;
|
|
70
|
+
}, C = new WeakSet(), Q = function(r, t = !1) {
|
|
71
|
+
let u = null;
|
|
72
|
+
return r.includes("-") ? u = new (customElements.get(r))() : t ? u = document.createElementNS("http://www.w3.org/2000/svg", r) : u = document.createElement(r), u;
|
|
73
|
+
}, d = new WeakSet(), L = function(r, t) {
|
|
74
|
+
for (const u in t) {
|
|
75
|
+
const i = u;
|
|
76
|
+
i === "class" ? c(this, p, $).call(this, r, t[i]) : i === "style" ? c(this, x, O).call(this, r, t[i]) : i === "events" ? c(this, A, j).call(this, r, t[i]) : i === "attributes" ? c(this, F, nn).call(this, r, t[i]) : i === "children" ? c(this, y, V).call(this, r, t[i]) : i === "shadowChildren" ? c(this, y, V).call(this, r.shadowRoot || r, t[i]) : i === "parent" && c(this, G, un).call(this, r, t[i]);
|
|
83
77
|
}
|
|
84
|
-
|
|
85
|
-
},
|
|
86
|
-
if (
|
|
87
|
-
if (typeof
|
|
88
|
-
|
|
89
|
-
else if (Array.isArray(
|
|
90
|
-
|
|
91
|
-
c(this,
|
|
78
|
+
t != null && t.created && t.created(r);
|
|
79
|
+
}, p = new WeakSet(), $ = function(r, t) {
|
|
80
|
+
if (t) {
|
|
81
|
+
if (typeof t == "string")
|
|
82
|
+
r.classList.add(t);
|
|
83
|
+
else if (Array.isArray(t))
|
|
84
|
+
t.forEach((u) => {
|
|
85
|
+
c(this, p, $).call(this, r, u);
|
|
92
86
|
});
|
|
93
|
-
else if (typeof
|
|
94
|
-
if (
|
|
95
|
-
c(this, M, X).call(this,
|
|
87
|
+
else if (typeof t == "object")
|
|
88
|
+
if (t instanceof l)
|
|
89
|
+
c(this, M, X).call(this, r, t);
|
|
96
90
|
else
|
|
97
|
-
for (const
|
|
98
|
-
const
|
|
99
|
-
|
|
91
|
+
for (const u in t) {
|
|
92
|
+
const i = t[u];
|
|
93
|
+
i instanceof l ? c(this, k, Z).call(this, r, u, i) : i ? r.classList.add(u) : r.classList.remove(u);
|
|
100
94
|
}
|
|
101
95
|
} else
|
|
102
96
|
return;
|
|
103
|
-
}, M = new WeakSet(), X = function(
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
s &&
|
|
107
|
-
}),
|
|
108
|
-
s &&
|
|
97
|
+
}, M = new WeakSet(), X = function(r, t) {
|
|
98
|
+
t.subscribe(({ current: u, previous: i }) => {
|
|
99
|
+
i && [i].flat().forEach((s) => {
|
|
100
|
+
s && r.classList.remove(s);
|
|
101
|
+
}), u && [u].flat().forEach((s) => {
|
|
102
|
+
s && r.classList.add(s);
|
|
109
103
|
});
|
|
110
104
|
});
|
|
111
|
-
}, k = new WeakSet(), Z = function(
|
|
112
|
-
|
|
113
|
-
|
|
105
|
+
}, k = new WeakSet(), Z = function(r, t, u) {
|
|
106
|
+
u.subscribe(({ current: i }) => {
|
|
107
|
+
i ? r.classList.add(t) : r.classList.remove(t);
|
|
114
108
|
});
|
|
115
|
-
}, x = new WeakSet(), O = function(
|
|
116
|
-
if (!
|
|
109
|
+
}, x = new WeakSet(), O = function(r, t) {
|
|
110
|
+
if (!t)
|
|
117
111
|
return;
|
|
118
|
-
|
|
119
|
-
}, N = new WeakSet(), _ = function(
|
|
120
|
-
for (const
|
|
121
|
-
const
|
|
112
|
+
r.tagName === "style" || r.tagName === "STYLE" ? c(this, v, H).call(this, r, t) : c(this, N, _).call(this, r, t);
|
|
113
|
+
}, N = new WeakSet(), _ = function(r, t) {
|
|
114
|
+
for (const u in t) {
|
|
115
|
+
const i = u, s = t[i];
|
|
122
116
|
s instanceof l ? s.subscribe(({ current: w }) => {
|
|
123
|
-
c(this, m, R).call(this,
|
|
124
|
-
}) : c(this, m, R).call(this,
|
|
117
|
+
c(this, m, R).call(this, r, i, w);
|
|
118
|
+
}) : c(this, m, R).call(this, r, i, s);
|
|
125
119
|
}
|
|
126
|
-
}, v = new WeakSet(), H = function(
|
|
127
|
-
for (const
|
|
128
|
-
const
|
|
129
|
-
if (typeof
|
|
130
|
-
|
|
131
|
-
else if (
|
|
120
|
+
}, v = new WeakSet(), H = function(r, t) {
|
|
121
|
+
for (const u in t) {
|
|
122
|
+
const i = t[u];
|
|
123
|
+
if (typeof i == "object" && !(i instanceof l))
|
|
124
|
+
r.appendChild(new Text(`${u} {`)), c(this, v, H).call(this, r, i), r.appendChild(new Text("}"));
|
|
125
|
+
else if (i instanceof l) {
|
|
132
126
|
const s = new Text();
|
|
133
|
-
|
|
134
|
-
w.current ? s.nodeValue = `${Y(
|
|
135
|
-
}),
|
|
127
|
+
i.subscribe((w) => {
|
|
128
|
+
w.current ? s.nodeValue = `${Y(u)}: ${w.current};` : s.nodeValue = "";
|
|
129
|
+
}), r.appendChild(s);
|
|
136
130
|
} else
|
|
137
|
-
|
|
131
|
+
r.appendChild(new Text(`${Y(u)}: ${i};`));
|
|
138
132
|
}
|
|
139
|
-
}, m = new WeakSet(), R = function(
|
|
140
|
-
|
|
141
|
-
}, A = new WeakSet(), j = function(
|
|
142
|
-
if (
|
|
143
|
-
for (const
|
|
144
|
-
const
|
|
145
|
-
typeof s == "object" ?
|
|
133
|
+
}, m = new WeakSet(), R = function(r, t, u) {
|
|
134
|
+
t.includes("--") ? u ? r.style.setProperty(t, u) : r.style.removeProperty(t) : u ? r.style[t] = u : r.style[t] = "";
|
|
135
|
+
}, A = new WeakSet(), j = function(r, t) {
|
|
136
|
+
if (t)
|
|
137
|
+
for (const u in t) {
|
|
138
|
+
const i = u, s = t[i];
|
|
139
|
+
typeof s == "object" ? r.addEventListener(i, s.callback, s.options) : typeof s == "function" && r.addEventListener(i, s);
|
|
146
140
|
}
|
|
147
|
-
}, F = new WeakSet(), nn = function(
|
|
148
|
-
for (const
|
|
149
|
-
const
|
|
150
|
-
|
|
151
|
-
c(this, b, J).call(this,
|
|
152
|
-
}) : c(this, b, J).call(this,
|
|
141
|
+
}, F = new WeakSet(), nn = function(r, t) {
|
|
142
|
+
for (const u in t) {
|
|
143
|
+
const i = t[u];
|
|
144
|
+
i instanceof l ? i.subscribe(({ current: s }) => {
|
|
145
|
+
c(this, b, J).call(this, r, u, s);
|
|
146
|
+
}) : c(this, b, J).call(this, r, u, i);
|
|
153
147
|
}
|
|
154
|
-
}, b = new WeakSet(), J = function(
|
|
155
|
-
var
|
|
156
|
-
|
|
157
|
-
}, y = new WeakSet(), V = function(
|
|
158
|
-
|
|
159
|
-
if (
|
|
160
|
-
const
|
|
161
|
-
|
|
162
|
-
c(this, B, tn).call(this,
|
|
148
|
+
}, b = new WeakSet(), J = function(r, t, u) {
|
|
149
|
+
var i, s;
|
|
150
|
+
t in r && !((s = (i = r.constructor) == null ? void 0 : i.observedAttributes) != null && s.includes(t)) ? u != null && (r[t] = u.toString()) : u != null && r.setAttribute(t, u.toString());
|
|
151
|
+
}, y = new WeakSet(), V = function(r, t) {
|
|
152
|
+
t && t.forEach((u) => {
|
|
153
|
+
if (u instanceof l) {
|
|
154
|
+
const i = document.createElement("div");
|
|
155
|
+
i.style.display = "contents", r.appendChild(i), u.subscribe(({ current: s }) => {
|
|
156
|
+
c(this, B, tn).call(this, i, c(this, P, en).call(this, s), Array.from(i.childNodes));
|
|
163
157
|
});
|
|
164
|
-
} else if (
|
|
165
|
-
|
|
166
|
-
else
|
|
167
|
-
const
|
|
168
|
-
|
|
169
|
-
} else {
|
|
170
|
-
const u = c(this, S, I).call(this, i);
|
|
171
|
-
u instanceof Node && t.append(u);
|
|
158
|
+
} else if (u instanceof h)
|
|
159
|
+
r.append(...u.rootElements);
|
|
160
|
+
else {
|
|
161
|
+
const i = c(this, S, I).call(this, u);
|
|
162
|
+
i instanceof Node && r.append(i);
|
|
172
163
|
}
|
|
173
164
|
});
|
|
174
|
-
}, P = new WeakSet(), en = function(
|
|
175
|
-
return [
|
|
176
|
-
}, B = new WeakSet(), tn = function(
|
|
177
|
-
|
|
178
|
-
if (s <
|
|
179
|
-
const w =
|
|
180
|
-
c(this, D, rn).call(this,
|
|
165
|
+
}, P = new WeakSet(), en = function(r) {
|
|
166
|
+
return [r].flat().map((u) => u instanceof h ? u.rootElements : c(this, S, I).call(this, u)).flat().filter(Boolean);
|
|
167
|
+
}, B = new WeakSet(), tn = function(r, t, u) {
|
|
168
|
+
u.forEach((i, s) => {
|
|
169
|
+
if (s < t.length) {
|
|
170
|
+
const w = t[s];
|
|
171
|
+
c(this, D, rn).call(this, i, w) || r.replaceChild(w, i);
|
|
181
172
|
} else
|
|
182
|
-
|
|
183
|
-
});
|
|
184
|
-
for (let
|
|
185
|
-
|
|
186
|
-
}, D = new WeakSet(), rn = function(
|
|
187
|
-
return
|
|
188
|
-
}, S = new WeakSet(), I = function(
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
if (
|
|
173
|
+
r.removeChild(i);
|
|
174
|
+
});
|
|
175
|
+
for (let i = u.length; i < t.length; i++)
|
|
176
|
+
r.appendChild(t[i]);
|
|
177
|
+
}, D = new WeakSet(), rn = function(r, t) {
|
|
178
|
+
return t ? t instanceof Node ? r.isEqualNode(t) : r.textContent === t.toString() : !1;
|
|
179
|
+
}, S = new WeakSet(), I = function(r) {
|
|
180
|
+
if (r instanceof Node)
|
|
181
|
+
return r;
|
|
182
|
+
if (r != null) {
|
|
183
|
+
const t = String(r);
|
|
184
|
+
if (t.trim().startsWith("<") && t.trim().endsWith(">")) {
|
|
185
|
+
const u = document.createElement("div");
|
|
186
|
+
return u.innerHTML = t, u.firstElementChild;
|
|
187
|
+
} else
|
|
188
|
+
return new Text(t);
|
|
189
|
+
} else
|
|
192
190
|
return;
|
|
193
|
-
|
|
191
|
+
}, G = new WeakSet(), un = function(r, t) {
|
|
192
|
+
if (!t)
|
|
193
|
+
return;
|
|
194
|
+
(t instanceof h ? t.rootElements[0] : t).appendChild(r);
|
|
194
195
|
};
|
|
195
|
-
let e =
|
|
196
|
+
let e = h;
|
|
196
197
|
function vn(...n) {
|
|
197
198
|
return new e(...n);
|
|
198
199
|
}
|
|
@@ -449,12 +450,12 @@ function de(n) {
|
|
|
449
450
|
i: n
|
|
450
451
|
});
|
|
451
452
|
}
|
|
452
|
-
function
|
|
453
|
+
function he(n) {
|
|
453
454
|
return new e({
|
|
454
455
|
iframe: n
|
|
455
456
|
});
|
|
456
457
|
}
|
|
457
|
-
function
|
|
458
|
+
function pe(n) {
|
|
458
459
|
return new e({
|
|
459
460
|
img: n
|
|
460
461
|
});
|
|
@@ -726,12 +727,12 @@ function dt(n) {
|
|
|
726
727
|
title: n
|
|
727
728
|
});
|
|
728
729
|
}
|
|
729
|
-
function
|
|
730
|
+
function ht(n) {
|
|
730
731
|
return new e({
|
|
731
732
|
tr: n
|
|
732
733
|
});
|
|
733
734
|
}
|
|
734
|
-
function
|
|
735
|
+
function pt(n) {
|
|
735
736
|
return new e({
|
|
736
737
|
track: n
|
|
737
738
|
});
|
|
@@ -762,8 +763,8 @@ function St(n) {
|
|
|
762
763
|
});
|
|
763
764
|
}
|
|
764
765
|
function Et(n) {
|
|
765
|
-
const
|
|
766
|
-
return
|
|
766
|
+
const r = new CSSStyleSheet();
|
|
767
|
+
return r.replaceSync(ln(n).rootElements[0].innerHTML), r;
|
|
767
768
|
}
|
|
768
769
|
function Lt(n) {
|
|
769
770
|
return new e({
|
|
@@ -1087,14 +1088,14 @@ function dr(n) {
|
|
|
1087
1088
|
})
|
|
1088
1089
|
});
|
|
1089
1090
|
}
|
|
1090
|
-
function
|
|
1091
|
+
function hr(n) {
|
|
1091
1092
|
return new e({
|
|
1092
1093
|
polygon: f(o({}, n), {
|
|
1093
1094
|
svg: !0
|
|
1094
1095
|
})
|
|
1095
1096
|
});
|
|
1096
1097
|
}
|
|
1097
|
-
function
|
|
1098
|
+
function pr(n) {
|
|
1098
1099
|
return new e({
|
|
1099
1100
|
polyline: f(o({}, n), {
|
|
1100
1101
|
svg: !0
|
|
@@ -1297,9 +1298,9 @@ export {
|
|
|
1297
1298
|
ge as html,
|
|
1298
1299
|
bt as htmlVar,
|
|
1299
1300
|
de as i,
|
|
1300
|
-
|
|
1301
|
+
he as iframe,
|
|
1301
1302
|
or as image,
|
|
1302
|
-
|
|
1303
|
+
pe as img,
|
|
1303
1304
|
ve as input,
|
|
1304
1305
|
me as ins,
|
|
1305
1306
|
be as kbd,
|
|
@@ -1330,8 +1331,8 @@ export {
|
|
|
1330
1331
|
gr as path,
|
|
1331
1332
|
dr as pattern,
|
|
1332
1333
|
He as picture,
|
|
1333
|
-
|
|
1334
|
-
|
|
1334
|
+
hr as polygon,
|
|
1335
|
+
pr as polyline,
|
|
1335
1336
|
Re as pre,
|
|
1336
1337
|
Je as progress,
|
|
1337
1338
|
Ve as q,
|
|
@@ -1377,8 +1378,8 @@ export {
|
|
|
1377
1378
|
lt as thead,
|
|
1378
1379
|
gt as time,
|
|
1379
1380
|
dt as title,
|
|
1380
|
-
|
|
1381
|
-
|
|
1381
|
+
ht as tr,
|
|
1382
|
+
pt as track,
|
|
1382
1383
|
Nr as tspan,
|
|
1383
1384
|
vt as u,
|
|
1384
1385
|
mt as ul,
|