sprae 13.3.3 → 13.3.5
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/directive/each.js +61 -74
- package/dist/sprae-csp.js +10 -10
- package/dist/sprae-csp.js.map +3 -3
- package/dist/sprae-csp.umd.js +9 -9
- package/dist/sprae-csp.umd.js.map +3 -3
- package/dist/sprae-preact.js +4 -4
- package/dist/sprae-preact.js.map +3 -3
- package/dist/sprae-preact.umd.js +4 -4
- package/dist/sprae-preact.umd.js.map +3 -3
- package/dist/sprae.js +4 -4
- package/dist/sprae.js.map +3 -3
- package/dist/sprae.umd.js +4 -4
- package/dist/sprae.umd.js.map +3 -3
- package/package.json +2 -2
- package/signal.js +0 -1
- package/store.js +7 -3
- package/types/directive/each.d.ts.map +1 -1
package/dist/sprae-preact.umd.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function (g, f) {if ("object" == typeof exports && "object" == typeof module) {module.exports = f();} else if ("function" == typeof define && define.amd) {define("sprae", [], f);} else if ("object" == typeof exports) {exports["sprae"] = f();} else {g["sprae"] = f();}}(typeof self !== 'undefined' ? self : typeof globalThis !== 'undefined' ? globalThis : this, () => {var exports = {};var module = { exports };
|
|
2
|
-
var
|
|
3
|
-
in ${ir(r)}`),
|
|
4
|
-
${
|
|
5
|
-
="${i}"`}console.error(o)},Ee=(e=document.body,t)=>{if(e[h])return Object.assign(e[h],t);t=oe(t||{});let r=e,o=[],i=[];r[se]=()=>{if(i)return i;i=Array(o.length);for(let s=0;s<o.length;s++)i[s]=o[s]();return i},r[j]=()=>{if(!i)return;let s=i;i=null;for(let a=0;a<s.length;a++)s[a]?.()},r[y]||(r[y]=()=>{r[j]?.(),W?._root===r&&(W.disconnect(),W=null),r[j]=r[se]=r[y]=r[pe]=r[h]=null});let n=r[pe]=s=>{let a=s.attributes,c;if(a)for(let l=0;l<a.length;){let{name:f,value:C}=a[l];if(f.startsWith(he)){s.removeAttribute(f);let L=s[h];if(me=f,Ce=s,o.push(c=Te(s,f.slice(he.length),C,t)),i.push(c()),s[h]!==L)return}else l++}if(!(s!==e&&I(s)))if(s.firstChild!==void 0){let l=s.firstChild,f;for(;l;)f=l.nextSibling,l.nodeType==1&&n(l),l=f}else for(let l of s.childNodes)l.nodeType==1&&n(l)};return n(r),me=Ce=null,r[h]===void 0&&!I(e)&&(r[h]=t),t};Ee.version="13.3.3";x=e=>{let t=Ue[e=e.trim()];if(t)return t;try{t=je(e||"undefined")}catch(r){Ae(r,e)}return Ue[e]=function(r,o,i){try{let n=t?.call(this,r);return o?n?.then?(n.then(s=>i=o(s)).catch(s=>Ae(s,e,this)),()=>typeof i=="function"&&i()):o(n):n}catch(n){Ae(n,e,this)}}},Ue={},ce=e=>(e.compile&&(je=e.compile),e.prefix&&(he=e.prefix),e.signal&&(N=e.signal),e.effect&&(V=e.effect),e.computed&&(Z=e.computed),e.batch&&(ae=e.batch),e.untracked&&(H=e.untracked),e.dir&&(Te=e.dir)),O=(e,t)=>{for(;t.length;){let[r,...o]=t.pop().split("-"),i=F[r],n;if(i&&(n=i(e,...o))!==e){for(let s in e)n[s]??(n[s]=e[s]);e=n}}return e},W=null,Y=e=>{W?.disconnect(),e(),W?.observe(W._root,{childList:!0,subtree:!0})},ye=(e=document.body,t)=>{let r=oe(t);return Ee(e,r),W=new MutationObserver(o=>{for(let i of o){for(let n of i.addedNodes)n.nodeType===1&&n[h]===void 0&&e.contains(n)&&e[pe](n);for(let n of i.removedNodes)n.nodeType===1&&!e.contains(n)&&n[y]?.()}}),W._root=e,W.observe(e,{childList:!0,subtree:!0}),r},A=e=>{if(!e.nodeType)return e;let t=e.ownerDocument,r=e.content.cloneNode(!0),o=[...e.attributes],i=t.createTextNode(""),n=(r.append(i),[...r.childNodes]);return{ownerDocument:t,childNodes:n,content:r,remove:()=>r.append(...n),replaceWith(s){s!==i&&(i.before(s),r.append(...n))},attributes:o,removeAttribute(s){o.splice(o.findIndex(a=>a.name===s),1)}}},Le=e=>e.replace(/[A-Z\u00C0-\u00D6\u00D8-\u00DE]/g,(t,r)=>(r?"-":"")+t.toLowerCase()),nr=e=>e.replace(/-([a-z])/g,(t,r)=>r.toUpperCase()),k=(e,t,r)=>r==null||r===!1?e.removeAttribute(t):I(e)?e[nr(t)]=r:e.setAttribute(t,r===!0?"":r),ge=e=>e?typeof e=="string"?e:(Array.isArray(e)?e.map(ge):Object.entries(e).reduce((t,[r,o])=>(o&&t.push(r),t),[])).join(" "):"",J=(e,t)=>{let r=0,o=0,i,n=typeof t=="function"?t:t?a=>setTimeout(a,t):queueMicrotask,s=a=>{i=a,r++||(e(i),n(()=>{let c=r>1;if(r=0,c){if(++o>50){o=0,console.error("\u2234 Reactive loop detected");return}s(i)}else o=0}))};return s},be=(e,t,r)=>{let o=typeof t=="function"?t:t?i=>setTimeout(i,t):queueMicrotask;return r?(i=>n=>!i&&(e(n),i=1,o(()=>i=0)))():((i=0)=>(n,s=++i)=>o(()=>s==i&&e(n)))()},g=Ee});var R,q,re,Me,De,ee,Ze,xe,ve,Fe,oe,le=m(()=>{b();R=Symbol("signals"),q=Symbol("change"),re=Symbol("set"),Me=Symbol("parent"),De=!0,ee=(e,t)=>{if(!e||e[Symbol.toStringTag]||e[R])return e;if(e.constructor!==Object)return Array.isArray(e)?Ze(e):e;let r=Object.keys(e).length,o={},i=new Proxy(Object.assign(o,{[q]:N(r),[R]:o}),{get:(s,a)=>a in o?o.hasOwnProperty(a)&&typeof o[a]=="function"&&!o[a].prototype?o[a].bind(i):o[a]?o[a].valueOf():o[a]:t?t[a]:typeof globalThis[a]=="function"&&!globalThis[a].prototype?globalThis[a].bind(globalThis):globalThis[a],set:(s,a,c)=>a in o?(Fe(o,a,c),1):(De=!1,t&&a in t?t[a]=c:(xe(o,a,c),o[q].value=++r),De=!0,1),deleteProperty:(s,a)=>(a in o&&(a[0]!="_"&&o[a]?.[Symbol.dispose]?.(),delete o[a],o[q].value=--r),1),ownKeys:()=>(o[q].value,Reflect.ownKeys(o).filter(s=>s!==Me)),has:(s,a)=>a in o?!0:t?a in t:De});Object.defineProperty(o,Me,{value:t,configurable:!0});let n=Object.getOwnPropertyDescriptors(e);for(let s in e)n[s]?.get?(o[s]=Z(n[s].get.bind(i)))[re]=n[s].set?.bind(i):xe(o,s,e[s]);return i},Ze=(e,t=globalThis)=>{let r=e.map(a=>N(ve(a))),o=!1,i=a=>function(){return o=!0,a.apply(this,arguments)},n=N(e.length),s=new Proxy(Object.assign(r,{[q]:n,[R]:r,push:i(r.push),pop:i(r.pop),shift:i(r.shift),unshift:i(r.unshift),splice:i(r.splice)}),{get(a,c){return c==="length"?o?(o=!1,r.length):n.value:typeof c=="symbol"||isNaN(c)?r[c]?.valueOf()??t[c]:(r[c]??(r[c]=N(void 0))).valueOf()},set(a,c,l){if(c==="length"){for(let f=l;f<r.length;f++)delete s[f];n.value=r.length=l}else c>=r.length?(xe(r,c,l,ve),s.length=+c+1):r[c]?Fe(r,c,l,ve):xe(r,c,l,ve);return 1},deleteProperty:(a,c)=>(r[c]?.[Symbol.dispose]?.(),delete r[c],1)});return Object.defineProperty(r,Me,{value:t,configurable:!0}),s},xe=(e,t,r,o=ee)=>e[t]=t[0]=="_"||r?.peek||typeof r=="function"?r:N(o(r)),ve=e=>{if(!e||typeof e!="object"||e.constructor!==Object)return e;let t=N(0);return new Proxy(e,{get:(r,o)=>o===R?r:o===q?t:(t.value,r[o]),set:(r,o,i)=>{let n=r[o];return r[o]=i,n!==i&&t.value++,1},has:()=>!0})},Fe=(e,t,r,o=ee)=>{if(t[0]==="_"||typeof e[t]=="function")return e[t]=r;let i=e[t],n=i.peek?.()??i;if(r!==n){if(i[re])return i[re](r);Array.isArray(r)&&Array.isArray(n)?i.value=q in r?r:Ze(r):i.value=o(r)}},oe=ee});var Re={};de(Re,{batch:()=>ar,computed:()=>sr,effect:()=>Be,signal:()=>Je,untracked:()=>cr});var z,Pe,ie,Je,Be,sr,ar,cr,Xe=m(()=>{Pe=0,Je=(e,t,r=new Set,o=()=>t.value)=>t={get value(){return z?.deps.add(r.add(z)),e},set value(i){if(i!==e){e=i;for(let n of r)ie?ie.add(n):n()}},peek(){return e},toJSON:o,toString:o,valueOf:o},Be=(e,t,r,o)=>(r=i=>{if(!e)return;let n=t;if(t=null,n?.call?.(),i=z,z=r,Pe++>50){Pe--,z=i,t=e=r.fn=null;for(let s of o)s.delete(r);o.clear(),console.error("\u2234 Reactive loop detected");return}try{t=e()}finally{z=i,Pe--}},r.fn=e,o=r.deps=new Set,r(),i=>{t?.call?.(),t=e=r.fn=null;for(i of o)i.delete(r);o.clear()}),sr=(e,t=Je(),r,o,i=()=>r.value)=>r={get value(){return o||(o=Be(()=>t.value=e())),t.value},peek:t.peek,toJSON:i,toString:i,valueOf:i},ar=(e,t=!ie,r)=>{ie??(ie=new Set);try{e()}finally{if(t){[ie,r]=[null,ie];for(let o of r)o()}}},cr=(e,t,r)=>(t=z,z=null,r=e(),z=t,r)});var Ge,Qe=m(()=>{b();Ge=(e,t)=>{var n,s;let r,o;e._holder?g(o=e,t):(e[n=h]??(e[n]=null),o=e.content?A(e):e,o[s=h]??(o[s]=null),Y(()=>e.replaceWith(r=e.ownerDocument.createTextNode(""))),o._holder=r._holder=r,r._clauses=[o._clause=[o,!1]],r._match=null,r.update=J(()=>{let a=r._clauses.find(([,c])=>c);a!=r._match&&Y(()=>{r._match?.[0].remove(),r._match?.[0][j]?.(),(r._match=a)&&(r.before(r._match[0].content||r._match[0]),r._match[0][h]?r._match[0][se]?.():(delete r._match[0][h],g(r._match[0],t)))})}));let i=a=>{o._clause[1]=a,o._holder.update()};return i[j]=()=>{o._holder._match?.[0][j]?.(),o._holder._match=null},i}});var Ye,et=m(()=>{b();Ye=e=>{var o;let t,r=e;for(t=e.content?A(e):e,t[o=h]??(t[o]=null);r&&!(t._holder=r._holder);)r=r.previousSibling;return e.remove(),e[h]=null,t._holder._clauses.push(t._clause=[t,!0]),t._holder.update}});var tt,rt=m(()=>{b();tt=e=>(e.content&&e.replaceWith(e=A(e).childNodes[0]),t=>{t=typeof t=="function"?t(e.textContent):t,t=t==null?"":""+t;let r=e.textContent;if(r===t)return;let o=e.firstChild;if(o&&t.startsWith(r)){o.appendData(t.slice(r.length));return}let i=e.getRootNode().getSelection?.(),n=i?.rangeCount&&e.contains(i.anchorNode)?i.getRangeAt(0).startOffset:-1;if(e.textContent=t,n>=0&&e.firstChild){let s=Math.min(n,e.firstChild.textContent.length),a=new Range;a.setStart(e.firstChild,s),a.collapse(!0),i.removeAllRanges(),i.addRange(a)}})});var ot,it=m(()=>{b();ot=(e,t,r,o)=>{let i=null,n,s=null,a=()=>!e.classList.length&&e.removeAttribute("class");return c=>{if(c=typeof c=="function"?c(e.className):c,c?.constructor===Object){if(s=null,i)for(let l of i)c[l]||(e.classList.remove(l),i.delete(l));i?.size||(i=null);for(let l in c)c[l]&&!i?.has(l)&&(e.classList.add(l),(i||(i=new Set)).add(l));i||a();return}if(c=ge(c),c!==s){if(s=c,n=null,c)for(let l of c.split(" "))l&&(n||(n=new Set)).add(l);if(i)for(let l of i)n?.has(l)||e.classList.remove(l);if(n)for(let l of n)i?.has(l)||e.classList.add(l);n||a(),i=n}}}});var nt,st=m(()=>{b();nt=(e,t,r,o)=>{let i;return n=>{if(i===void 0&&(i=e.getAttribute("style")??""),n=typeof n=="function"?n(e.style):n,typeof n=="string")k(e,"style",i?i+"; "+n:n);else{i&&k(e,"style",i);for(let s in n)s[0]=="-"?e.style.setProperty(s,n[s]):s[0]>="A"&&(e.style[s]=n[s])}}}});var at,ct=m(()=>{at=()=>e=>typeof e=="function"&&e()});var lt,ft=m(()=>{b();lt=(e,t)=>(e.type?.startsWith("select")&&g(e,t),e.type==="text"||e.type===""||e.tagName==="TEXTAREA"?(r,o,i)=>(o=e.selectionStart,i=e.selectionEnd,e.setAttribute("value",e.value=r??""),o&&e.setSelectionRange(o,i)):e.type==="checkbox"?r=>(e.checked=r,k(e,"checked",r)):e.type==="radio"?r=>(e.checked=e.value===r,k(e,"checked",e.checked||null)):e.type==="select-one"?r=>{for(let o of e.options)o.value==r?o.setAttribute("selected",""):o.removeAttribute("selected");e.value=r}:e.type==="select-multiple"?r=>{for(let o of e.options)r.some(i=>i==o.value)?o.setAttribute("selected",""):o.removeAttribute("selected")}:r=>e.value=r)});var lr,ut,dt=m(()=>{b();lr=(e,t=x(`${e}=__`))=>(r,o)=>{r.__=o,t(r),delete r.__},ut=(e,t,r)=>{let o=x(r).call(e,t);typeof o=="function"?o(e):lr(r)(t,e)}});var pt,ht=m(()=>{b();le();pt=(e,t)=>{let r=e[h]=ee({},t),o=!1,i,n=e.content&&A(e);return n&&e.replaceWith(i=e.ownerDocument.createTextNode("")),s=>{if(s=typeof s=="function"?s(r):s,s!==r)for(let a in s){let c=Object.getOwnPropertyDescriptor(s,a);if(c?.get){(r[R][a]=Z(c.get.bind(r)))[re]=c.set?.bind(r);continue}let l=typeof s[a]=="function"?s[a].bind(r):s[a];a in r[R]?r[a]=l:r[R][a]=a[0]=="_"||l?.peek?l:N(ee(l))}return!o&&(o=!0,!i&&delete e[h],H(()=>(i?.before(n.content||e),g(n||e,r))))}}});var fr,_e,mt,yt,gt,bt=m(()=>{b();fr={get:(e,t)=>t===e.v?"c"in e?e.c?.[e.i]:e.r:t===e.k?"c"in e&&e.o?e.o[e.i]:e.i:t===R?e:e.l?.[t]!==void 0?e.l[t]:e.p?.[t],set:(e,t,r)=>(t===e.v?"c"in e?e.c&&(e.c[e.i]=r):e.r=r:t===e.k||(e.l?.[t]!==void 0?e.l[t]=r:t in(e.p?.[R]||{})?e.p[t]=r:(e.l||(e.l={}))[t]=r),1),has:()=>!0},_e=e=>{e.el[Symbol.dispose]?.(),e.el.remove()},mt=(e,t)=>{let r=new Proxy(t,fr),o=e.content?A(e):e.cloneNode(!0);return{el:o,scope:t,proxy:r,node:o.content||o}},yt=(e,t,r)=>{for(let[o,i]of t)g(o,i);r.before(e)},gt=(e,t,r)=>{let[o,i]=r.split(/\bin|of\b/),[n,s="$"]=o.trim().replace(/\(|\)/g,"").split(/\s*,\s*/),a=e.ownerDocument,c=e._eachHolder||(e._eachHolder=a.createTextNode("")),l=new Map,f=[],C,L,K,E=!1,G=J(()=>Y(()=>{let u=C,_=u.length,M=f.length;if(E=!1,!u[q])for(let p=0;p<_;p++){let U=u[p];if(U!=null){E=typeof U=="object";break}}if(E&&M){if(_<=M){let v=new Set(_>0?u:[]);for(let[T,w]of l)v.has(T)||(_e(w),l.delete(T))}let p=[],U=!1,P=_-l.size>1?a.createDocumentFragment():null,ne=P?[]:null;for(let v=0;v<_;v++){let T=u[v],w=l.get(T);w?(w.scope.i!==v&&(U=!0),w.scope.i=v,w.scope.r=T):(w=mt(e,{p:t,v:n,k:s,r:T,i:v,l:null}),l.set(T,w),P?(P.appendChild(w.node),ne.push([w.el,w.proxy])):(c.before(w.node),g(w.el,w.proxy))),p.push(w)}if(P&&ne.length&&yt(P,ne,c),U||_<M){let v=c;for(let T=p.length-1;T>=0;T--){let w=p[T].el._holder||p[T].el.content||p[T].el;w.nextSibling!==v&&v.before(w),v=w}}f=p}else{if(M&&K!==u){for(let p of f)_e(p);f.length=0,M=0,l.clear()}if(K=u,_<M){for(let p=_;p<M;p++)_e(f[p]);f.length=_}for(let p=0;p<Math.min(M,_);p++)f[p].scope.c=u,L&&(f[p].scope.o=L);if(_>M){let p=_-M>1?a.createDocumentFragment():null,U=p?[]:null;for(let P=M;P<_;P++){let ne=E?{p:t,v:n,k:s,r:u[P],i:P,l:null}:{p:t,v:n,k:s,c:u,i:P,o:L,l:null},v=mt(e,ne);f.push(v),E&&l.set(u[P],v),p?(p.appendChild(v.node),U.push([v.el,v.proxy])):(c.before(v.node),g(v.el,v.proxy))}p&&yt(p,U,c)}}}));e.parentNode&&Y(()=>e.replaceWith(c)),e[h]=null;let D=u=>{L=null,typeof u=="number"?C=Array.from({length:u},(M,p)=>p+1):u?.constructor===Object?(L=Object.keys(u),C=Object.values(u)):C=u||[];let _=V(()=>{C[q]?.value,G()});return()=>_()};return D.eval=x(i),D[j]=()=>{for(let u of f)_e(u);f.length=0,l.clear()},D}});var vt,xt=m(()=>{b();vt=(e,t,r,o)=>i=>k(e,o,typeof i=="function"&&!I(e)?i(e.getAttribute(o)):i)});var _t,wt=m(()=>{b();_t=e=>t=>{let r=I(e);for(let o in t)k(e,r?o:Le(o),t[o])}});var St,Ot=m(()=>{b();St=(e,t,r,o)=>{let[i,...n]=o.slice(2).split("."),s=x(r).bind(e),a=O(Object.assign(c=>s(t,l=>typeof l=="function"?l(c):l),{target:e}),n);return a.target.addEventListener(i,a,a),{[Symbol.dispose](){a.target.removeEventListener(i,a),a[Symbol.dispose]?.()}}}});var Nt,At=m(()=>{b();Nt=(e,t,r,o)=>{let i,n,s=x(r).bind(e),a=o.split("..").map((c,l,{length:f})=>c.split(":").reduce((C,L)=>{let[K,...E]=L.slice(2).split("."),G=(u,_)=>i=typeof u=="function"?u(_):u,D=O(Object.assign(u=>(l?G(i,u):s(t,_=>G(_,u)),n(),n=a[(l+1)%f]()),{target:e}),E);return u=>(u=C?.(),D.target.addEventListener(K,D,D),()=>(u?.(),D.target.removeEventListener(K,D)))},null));return n=a[0](),{[Symbol.dispose](){n?.()}}}});var Ct,Et,Tt=m(()=>{b();Ct=e=>!!e?.content,Et=(e,t)=>{if(e.content){let r,o=e.innerHTML,i=e.ownerDocument,n=e._holder;return n||e.replaceWith(n=i.createTextNode("")),s=>{if(typeof s=="function"&&(s=s(o)),e._holder&&(e.remove(),e.content.replaceChildren()),r?.[y]?.(),r?.remove(),s!=null&&s!=="")return r=Ct(s)?(o=s.innerHTML,A(s)):A((r=i.createElement("template"),r.innerHTML=o=s,r)),H(()=>g(r,t)),n.before(r.content),e._holder&&e.childNodes.splice(0,1/0,...r.childNodes),r[y];e._holder&&(e.childNodes.length=0,o="")}}return r=>{var o;return r=typeof r=="function"?r(e.innerHTML):r,Ct(r)?e.replaceChildren(r.content.cloneNode(!0)):e.innerHTML=r??"",e[o=h]&&(e[o]=null),H(()=>g(e,t)),e[y]}}});var jt,Lt=m(()=>{jt=(e,t,r)=>{let o=e.ownerDocument,i=o.createComment(":portal"),n=null;return e.before(i),s=>{let a=e.getRootNode(),c=typeof s=="string"?a.querySelector?.(s)||o.querySelector(s):s?.nodeType===1?s:s?o.body:null;if(c!==n)return c?c.appendChild(e):i.after(e),n=c,()=>{n&&(i.after(e),n=null)}}}});var Dt,Mt=m(()=>{Dt=e=>t=>e.hidden=!!t});var $e,Pt=m(()=>{b();$e=(e,t,r,o)=>{let[,...i]=o.split("."),n=x(r).bind(e),s;return O(Object.assign(()=>{let c=n(t,l=>typeof l=="function"?l(e):l);typeof c=="function"&&(s=c)},{target:e}),i)(),{[y](){s?.(),s=null}}}});var ke,Rt=m(()=>{b();ke=(e,t,r,o)=>{let[,...i]=o.split("."),n=x(r).bind(e),s=e.type==="checkbox"?()=>e.checked:e.type==="select-multiple"?()=>[...e.selectedOptions].map(c=>c.value):/^(date|time|month|week)/.test(e.type)?()=>e.value:()=>e.selectedIndex<0?null:isNaN(e.valueAsNumber)?e.value:e.valueAsNumber,a=O(Object.assign(()=>{n(t,c=>typeof c=="function"?c(s()):c)},{target:e}),i);return e.addEventListener("input",a),e.addEventListener("change",a),{[y](){e.removeEventListener("input",a),e.removeEventListener("change",a)}}}});var $t,kt,qt=m(()=>{b();$t=(e,t,r,o)=>{let[,...i]=o.split("."),n=x(r).bind(e),s=i.includes("once"),a=O(Object.assign(l=>{n(t,f=>typeof f=="function"?f(l):f)},{target:e}),i),c=new IntersectionObserver(l=>{for(let f of l)f.isIntersecting&&(a(f),s&&c.disconnect())});return c.observe(e),{[y](){c.disconnect()}}};$t.observer=!0;kt=$t});var Wt,It,Ht=m(()=>{b();Wt=(e,t,r,o)=>{let[,...i]=o.split("."),n=x(r).bind(e),s=O(Object.assign(c=>{n(t,l=>typeof l=="function"?l(c):l)},{target:e}),i),a=new ResizeObserver(c=>{for(let l of c){let f=l.contentRect;s({width:f.width,height:f.height,entry:l})}});return a.observe(e),{[y](){a.disconnect()}}};Wt.observer=!0;It=Wt});var Kt={};de(Kt,{batch:()=>ae,computed:()=>Z,debounce:()=>be,default:()=>mr,dispose:()=>hr,effect:()=>V,signal:()=>N,sprae:()=>g,start:()=>ye,store:()=>oe,throttle:()=>J,untracked:()=>H,use:()=>ce});var ur,dr,qe,We,zt,pr,hr,mr,Ut=m(()=>{le();b();Xe();b();Qe();et();rt();it();st();ct();ft();dt();ht();bt();xt();wt();Ot();At();Tt();Lt();Mt();Pt();Rt();qt();Ht();$e.observer=ke.observer=!0;Object.assign(Q,{_:vt,"":_t,class:ot,text:tt,html:Et,style:nt,fx:at,value:lt,ref:ut,scope:pt,if:Ge,else:Ye,each:gt,portal:jt,hidden:Dt,mount:$e,change:ke,intersect:kt,resize:It});ur=(e,t,r,o)=>{let[i,...n]=t.split("."),s=Q[i]||Q._,a=n.length>0;return()=>{let c=e,l,f,C,L=0;if(a&&(f=N(0),C=O(Object.assign(()=>f.value++,{target:e}),n),c=C.target??e),l=s(c,o,r,i),!l?.call)return l?.[y];let K=l.eval??x(r).bind(c),E,G=()=>(typeof E=="function"&&E(),E=null);I(c)||(o=c[h]??o);let D=a?V(()=>(f.value==L?C():(L=f.value,E=K(o,l)),G)):V(()=>(E=K(o,l),G));if(!(h in c))return D;let u=0;return()=>{u||(u=1,D(),l[j]?l[j]():c[y]?.())}}},dr=e=>e?typeof e=="number"?e:(([,t,r]=e.match(/^(\d+)(ms|s|m)?$/)||[])=>(t=+t,r==="s"?t*1e3:r==="m"?t*6e4:t))():0,qe=e=>e==="idle"?requestIdleCallback:e==="raf"?requestAnimationFrame:!e||e==="tick"?queueMicrotask:t=>setTimeout(t,dr(e));Object.assign(F,{debounce:(e,t,r)=>be(e,qe(t==="immediate"?r:t),t==="immediate"||r==="immediate"),throttle:(e,t)=>J(e,qe(t)),delay:(e,t)=>((r=qe(t))=>o=>r(()=>e(o)))(),tick:e=>t=>queueMicrotask(()=>e(t)),raf:e=>t=>requestAnimationFrame(()=>e(t)),once:(e,t,r)=>(r=o=>!t&&(t=1,e(o)),r.once=!0,r),window:e=>(e.target=e.target.ownerDocument.defaultView,e),document:e=>(e.target=e.target.ownerDocument,e),root:e=>(e.target=e.target.ownerDocument.documentElement,e),body:e=>(e.target=e.target.ownerDocument.body,e),parent:e=>(e.target=e.target.parentNode,e),self:e=>t=>t.target===e.target&&e(t),away:(e,t)=>{let r=e.target.ownerDocument,o=n=>t=n.target,i=r.currentEvent||r.defaultView?.event;return r.addEventListener("pointerdown",o,!0),Object.assign(n=>n!==i&&!e.target.contains(n.type==="click"?t??n.target:n.target)&&n.target.isConnected&&e(n),{target:r,[y]:()=>r.removeEventListener("pointerdown",o,!0)})},prevent:e=>t=>(t?.preventDefault(),e(t)),stop:(e,t)=>r=>(t?.[0]==="i"?r?.stopImmediatePropagation():r?.stopPropagation(),e(r)),passive:e=>(e.passive=!0,e),capture:e=>(e.capture=!0,e)});F.outside=F.away;We={ctrl:e=>e.ctrlKey||e.key==="Control"||e.key==="Ctrl",shift:e=>e.shiftKey||e.key==="Shift",alt:e=>e.altKey||e.key==="Alt",meta:e=>e.metaKey||e.key==="Meta",cmd:e=>e.metaKey||e.key==="Command",arrow:e=>e.key?.startsWith("Arrow"),enter:e=>e.key==="Enter",esc:e=>e.key?.startsWith("Esc"),tab:e=>e.key==="Tab",space:e=>e.key==="\xA0"||e.key==="Space"||e.key===" ",delete:e=>e.key==="Delete"||e.key==="Backspace",digit:e=>/^\d$/.test(e.key),letter:e=>/^\p{L}$/gu.test(e.key),char:e=>/^\S$/.test(e.key)},zt=(e,t)=>We[e]?.(t)||t.key?.toLowerCase()===e||t.keyCode==e;for(let e in We)F[e]=(t,r,o)=>i=>We[e](i)&&(!r||zt(r,i))&&(!o||zt(o,i))&&t(i);pr=e=>{let t=0,r="",o=0;for(let i of e){if(r){o?o=0:i==="\\"?o=1:i===r&&(r="");continue}if(i===";"&&!t)return!0;i==="{"?t++:i==="}"?t--:(i==='"'||i==="'"||i==="`")&&(r=i)}return!1};ce({compile:e=>(/^(if|let|const)\b/.test(e)||pr(e)||(e=`return ${e}`),/\bawait\s/.test(e)&&(e=`return (async()=>{${e}})()`),g.constructor(`with(arguments[0]){${e}}`)),dir:(e,t,r,o)=>t.includes("..")?()=>Nt(e,o,r,t)[y]:t.split(":").reduce((i,n)=>{let s=n.split(".")[0],a=Q[s],c=n.startsWith("on")?()=>St(e,o,r,n)[y]:a?.observer?()=>a(e,o,r,n)[y]:ur(e,n,r,o);return i?(l,f)=>(l=i(),f=c(),()=>{l(),f()}):c},null),...Re});g.use=ce;g.store=oe;g.directive=Q;g.modifier=F;hr=g.dispose=e=>e[y]?.();g.start=ye;mr=g});var Gt={};de(Gt,{Computed:()=>X,Effect:()=>te,Signal:()=>S,batch:()=>gr,computed:()=>vr,effect:()=>Xt,signal:()=>br,untracked:()=>He});function Se(){if(B>1)B--;else{for(var e,t=!1;fe!==void 0;){var r=fe;for(fe=void 0,Ie++;r!==void 0;){var o=r.o;if(r.o=void 0,r.f&=-3,!(8&r.f)&&Zt(r))try{r.c()}catch(i){t||(e=i,t=!0)}r=o}}if(Ie=0,B--,t)throw e}}function gr(e){if(B>0)return e();B++;try{return e()}finally{Se()}}function He(e){var t=d;d=void 0;try{return e()}finally{d=t}}function Vt(e){if(d!==void 0){var t=e.n;if(t===void 0||t.t!==d)return t={i:0,S:e,p:d.s,n:void 0,t:d,e:void 0,x:void 0,r:t},d.s!==void 0&&(d.s.n=t),d.s=t,e.n=t,32&d.f&&e.S(t),t;if(t.i===-1)return t.i=0,t.n!==void 0&&(t.n.p=t.p,t.p!==void 0&&(t.p.n=t.n),t.p=d.s,t.n=void 0,d.s.n=t,d.s=t),t}}function S(e,t){this.v=e,this.i=0,this.n=void 0,this.t=void 0,this.W=t?.watched,this.Z=t?.unwatched,this.name=t?.name}function br(e,t){return new S(e,t)}function Zt(e){for(var t=e.s;t!==void 0;t=t.n)if(t.S.i!==t.i||!t.S.h()||t.S.i!==t.i)return!0;return!1}function Ft(e){for(var t=e.s;t!==void 0;t=t.n){var r=t.S.n;if(r!==void 0&&(t.r=r),t.S.n=t,t.i=-1,t.n===void 0){e.s=t;break}}}function Jt(e){for(var t=e.s,r=void 0;t!==void 0;){var o=t.p;t.i===-1?(t.S.U(t),o!==void 0&&(o.n=t.n),t.n!==void 0&&(t.n.p=o)):r=t,t.S.n=t.r,t.r!==void 0&&(t.r=void 0),t=o}e.s=r}function X(e,t){S.call(this,void 0),this.x=e,this.s=void 0,this.g=we-1,this.f=4,this.W=t?.watched,this.Z=t?.unwatched,this.name=t?.name}function vr(e,t){return new X(e,t)}function Bt(e){var t=e.u;if(e.u=void 0,typeof t=="function"){B++;var r=d;d=void 0;try{t()}catch(o){throw e.f&=-2,e.f|=8,ze(e),o}finally{d=r,Se()}}}function ze(e){for(var t=e.s;t!==void 0;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,Bt(e)}function xr(e){if(d!==this)throw new Error("Out-of-order effect");Jt(this),d=e,this.f&=-2,8&this.f&&ze(this),Se()}function te(e,t){this.x=e,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32,this.name=t?.name}function Xt(e,t){var r=new te(e,t);try{r.c()}catch(i){throw r.d(),i}var o=r.d.bind(r);return o[Symbol.dispose]=o,o}var yr,d,fe,B,Ie,we,Qt=m(()=>{yr=Symbol.for("preact-signals");d=void 0;fe=void 0,B=0,Ie=0,we=0;S.prototype.brand=yr;S.prototype.h=function(){return!0};S.prototype.S=function(e){var t=this,r=this.t;r!==e&&e.e===void 0&&(e.x=r,this.t=e,r!==void 0?r.e=e:He(function(){var o;(o=t.W)==null||o.call(t)}))};S.prototype.U=function(e){var t=this;if(this.t!==void 0){var r=e.e,o=e.x;r!==void 0&&(r.x=o,e.e=void 0),o!==void 0&&(o.e=r,e.x=void 0),e===this.t&&(this.t=o,o===void 0&&He(function(){var i;(i=t.Z)==null||i.call(t)}))}};S.prototype.subscribe=function(e){var t=this;return Xt(function(){var r=t.value,o=d;d=void 0;try{e(r)}finally{d=o}},{name:"sub"})};S.prototype.valueOf=function(){return this.value};S.prototype.toString=function(){return this.value+""};S.prototype.toJSON=function(){return this.value};S.prototype.peek=function(){var e=d;d=void 0;try{return this.value}finally{d=e}};Object.defineProperty(S.prototype,"value",{get:function(){var e=Vt(this);return e!==void 0&&(e.i=this.i),this.v},set:function(e){if(e!==this.v){if(Ie>100)throw new Error("Cycle detected");this.v=e,this.i++,we++,B++;try{for(var t=this.t;t!==void 0;t=t.x)t.t.N()}finally{Se()}}}});X.prototype=new S;X.prototype.h=function(){if(this.f&=-3,1&this.f)return!1;if((36&this.f)==32||(this.f&=-5,this.g===we))return!0;if(this.g=we,this.f|=1,this.i>0&&!Zt(this))return this.f&=-2,!0;var e=d;try{Ft(this),d=this;var t=this.x();(16&this.f||this.v!==t||this.i===0)&&(this.v=t,this.f&=-17,this.i++)}catch(r){this.v=r,this.f|=16,this.i++}return d=e,Jt(this),this.f&=-2,!0};X.prototype.S=function(e){if(this.t===void 0){this.f|=36;for(var t=this.s;t!==void 0;t=t.n)t.S.S(t)}S.prototype.S.call(this,e)};X.prototype.U=function(e){if(this.t!==void 0&&(S.prototype.U.call(this,e),this.t===void 0)){this.f&=-33;for(var t=this.s;t!==void 0;t=t.n)t.S.U(t)}};X.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var e=this.t;e!==void 0;e=e.x)e.t.N()}};Object.defineProperty(X.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var e=Vt(this);if(this.h(),e!==void 0&&(e.i=this.i),16&this.f)throw this.v;return this.v}});te.prototype.c=function(){var e=this.S();try{if(8&this.f||this.x===void 0)return;var t=this.x();typeof t=="function"&&(this.u=t)}finally{e()}};te.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,Bt(this),Ft(this),B++;var e=d;return d=this,xr.bind(this,e)};te.prototype.N=function(){2&this.f||(this.f|=2,this.o=fe,fe=this)};te.prototype.d=function(){this.f|=8,1&this.f||ze(this)};te.prototype.dispose=function(){this.d()}});var Ke=(Ut(),Ne(Kt)).default,_r=(Qt(),Ne(Gt)),wr=(b(),Ne(Ve)).use;wr(_r);module.exports=Ke;var $=document.currentScript,Yt=$.getAttribute("prefix")??$.dataset.prefix??$.dataset.spraePrefix,ue=$.getAttribute("start")??$.dataset.start??$.dataset.spraeStart;$.removeAttribute("prefix");$.removeAttribute("start");delete $.dataset.prefix;delete $.dataset.start;delete $.dataset.spraePrefix;delete $.dataset.spraeStart;Yt&&Ke.use({prefix:Yt});ue!=null&&ue!=="false"&&(ue&&ue!=="true"?document.querySelectorAll(ue):[document.body||document.documentElement]).forEach(e=>Ke.start(e));
|
|
2
|
+
var Nt=Object.defineProperty;var tr=Object.getOwnPropertyDescriptor;var er=Object.getOwnPropertyNames;var rr=Object.prototype.hasOwnProperty;var m=(t,e)=>()=>(t&&(e=t(t=0)),e);var pt=(t,e)=>{for(var r in e)Nt(t,r,{get:e[r],enumerable:!0})},or=(t,e,r,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of er(e))!rr.call(t,i)&&i!==r&&Nt(t,i,{get:()=>e[i],enumerable:!(o=tr(e,i))||o.enumerable});return t};var At=t=>or(Nt({},"__esModule",{value:!0}),t);var Zt={};pt(Zt,{_add:()=>ht,_change:()=>M,_dispose:()=>y,_off:()=>D,_on:()=>ct,_set:()=>nt,_signals:()=>E,_state:()=>h,attr:()=>H,batch:()=>tt,clsx:()=>bt,compile:()=>Lt,computed:()=>J,dashcase:()=>Dt,debounce:()=>vt,decorate:()=>S,default:()=>g,dir:()=>jt,directive:()=>et,effect:()=>Z,frag:()=>C,isCE:()=>I,mo:()=>k,modifier:()=>F,mutate:()=>rt,parse:()=>v,prefix:()=>mt,signal:()=>A,start:()=>gt,store:()=>ot,throttle:()=>B,untracked:()=>W,use:()=>lt});var y,h,ct,D,ht,mt,I,A,Z,J,tt,W,et,F,yt,Et,ir,Ct,Tt,jt,Lt,v,Vt,lt,S,k,rt,gt,C,Dt,nr,H,bt,B,vt,g,b=m(()=>{ft();ft();y=Symbol.dispose||(Symbol.dispose=Symbol("dispose")),h=Symbol("state"),ct=Symbol("on"),D=Symbol("off"),ht=Symbol("init"),mt=":",I=t=>t.localName?.includes("-"),tt=t=>t(),W=tt,et={},F={},yt=null,Et=null,ir=t=>{if(!t?.tagName)return"";let e=t.tagName.toLowerCase();return t.id?e+="#"+t.id:t.className&&(e+="."+t.className.split(" ")[0]),`<${e}>`},Ct=(t,e,r=Et)=>{let o=`\u2234 ${t}`;if(r&&(o+=`
|
|
3
|
+
in ${ir(r)}`),e){let i=e.length>100?e.slice(0,80)+`\u2026 (${e.length} chars)`:e;o+=yt?`
|
|
4
|
+
${yt}="${i}"`:`
|
|
5
|
+
="${i}"`}console.error(o)},Tt=(t=document.body,e)=>{if(t[h])return Object.assign(t[h],e);e=st(e||{});let r=t,o=[],i=[];r[ct]=()=>{if(i)return i;i=Array(o.length);for(let s=0;s<o.length;s++)i[s]=o[s]();return i},r[D]=()=>{if(!i)return;let s=i;i=null;for(let a=0;a<s.length;a++)s[a]?.()},r[y]||(r[y]=()=>{r[D]?.(),k?._root===r&&(k.disconnect(),k=null),r[D]=r[ct]=r[y]=r[ht]=r[h]=null});let n=r[ht]=s=>{let a=s.attributes,c;if(a)for(let l=0;l<a.length;){let{name:f,value:T}=a[l];if(f.startsWith(mt)){s.removeAttribute(f);let P=s[h];if(yt=f,Et=s,o.push(c=jt(s,f.slice(mt.length),T,e)),i.push(c()),s[h]!==P)return}else l++}if(!(s!==t&&I(s)))if(s.firstChild!==void 0){let l=s.firstChild,f;for(;l;)f=l.nextSibling,l.nodeType==1&&n(l),l=f}else for(let l of s.childNodes)l.nodeType==1&&n(l)};return n(r),yt=Et=null,r[h]===void 0&&!I(t)&&(r[h]=e),e};Tt.version="13.3.5";v=t=>{let e=Vt[t=t.trim()];if(e)return e;try{e=Lt(t||"undefined")}catch(r){Ct(r,t)}return Vt[t]=function(r,o,i){try{let n=e?.call(this,r);return o?n?.then?(n.then(s=>i=o(s)).catch(s=>Ct(s,t,this)),()=>typeof i=="function"&&i()):o(n):n}catch(n){Ct(n,t,this)}}},Vt={},lt=t=>(t.compile&&(Lt=t.compile),t.prefix&&(mt=t.prefix),t.signal&&(A=t.signal),t.effect&&(Z=t.effect),t.computed&&(J=t.computed),t.batch&&(tt=t.batch),t.untracked&&(W=t.untracked),t.dir&&(jt=t.dir)),S=(t,e)=>{for(;e.length;){let[r,...o]=e.pop().split("-"),i=F[r],n;if(i&&(n=i(t,...o))!==t){for(let s in t)n[s]??(n[s]=t[s]);t=n}}return t},k=null,rt=t=>{k?.disconnect(),t(),k?.observe(k._root,{childList:!0,subtree:!0})},gt=(t=document.body,e)=>{let r=st(e);return Tt(t,r),k=new MutationObserver(o=>{for(let i of o){for(let n of i.addedNodes)n.nodeType===1&&n[h]===void 0&&t.contains(n)&&t[ht](n);for(let n of i.removedNodes)n.nodeType===1&&!t.contains(n)&&n[y]?.()}}),k._root=t,k.observe(t,{childList:!0,subtree:!0}),r},C=t=>{if(!t.nodeType)return t;let e=t.ownerDocument,r=t.content.cloneNode(!0),o=[...t.attributes],i=e.createTextNode(""),n=(r.append(i),[...r.childNodes]);return{ownerDocument:e,childNodes:n,content:r,remove:()=>r.append(...n),replaceWith(s){s!==i&&(i.before(s),r.append(...n))},attributes:o,removeAttribute(s){o.splice(o.findIndex(a=>a.name===s),1)}}},Dt=t=>t.replace(/[A-Z\u00C0-\u00D6\u00D8-\u00DE]/g,(e,r)=>(r?"-":"")+e.toLowerCase()),nr=t=>t.replace(/-([a-z])/g,(e,r)=>r.toUpperCase()),H=(t,e,r)=>r==null||r===!1?t.removeAttribute(e):I(t)?t[nr(e)]=r:t.setAttribute(e,r===!0?"":r),bt=t=>t?typeof t=="string"?t:(Array.isArray(t)?t.map(bt):Object.entries(t).reduce((e,[r,o])=>(o&&e.push(r),e),[])).join(" "):"",B=(t,e)=>{let r=0,o=0,i,n=typeof e=="function"?e:e?a=>setTimeout(a,e):queueMicrotask,s=a=>{i=a,r++||(t(i),n(()=>{let c=r>1;if(r=0,c){if(++o>50){o=0,console.error("\u2234 Reactive loop detected");return}s(i)}else o=0}))};return s},vt=(t,e,r)=>{let o=typeof e=="function"?e:e?i=>setTimeout(i,e):queueMicrotask;return r?(i=>n=>!i&&(t(n),i=1,o(()=>i=0)))():((i=0)=>(n,s=++i)=>o(()=>s==i&&t(n)))()},g=Tt});var E,M,nt,Pt,Mt,ot,Jt,_t,xt,Ft,st,ft=m(()=>{b();E=Symbol("signals"),M=Symbol("change"),nt=Symbol("set"),Pt=Symbol("parent"),Mt=!0,ot=(t,e)=>{if(!t||t[Symbol.toStringTag]||t[E])return t;if(t.constructor!==Object)return Array.isArray(t)?Jt(t):t;let r=Object.keys(t).length,o={},i=new Proxy(Object.assign(o,{[M]:A(r),[E]:o}),{get:(s,a)=>a in o?o.hasOwnProperty(a)&&typeof o[a]=="function"&&!o[a].prototype?o[a].bind(i):o[a]?o[a].valueOf():o[a]:e?e[a]:typeof globalThis[a]=="function"&&!globalThis[a].prototype?globalThis[a].bind(globalThis):globalThis[a],set:(s,a,c)=>a in o?(Ft(o,a,c),1):(Mt=!1,e&&a in e?e[a]=c:(_t(o,a,c),o[M].value=++r),Mt=!0,1),deleteProperty:(s,a)=>(a in o&&(a[0]!="_"&&o[a]?.[Symbol.dispose]?.(),delete o[a],o[M].value=--r),1),ownKeys:()=>(o[M].value,Reflect.ownKeys(o).filter(s=>s!==Pt)),has:(s,a)=>a in o?!0:e?a in e:Mt});Object.defineProperty(o,Pt,{value:e,configurable:!0});let n=Object.getOwnPropertyDescriptors(t);for(let s in t)n[s]?.get?(o[s]=J(n[s].get.bind(i)))[nt]=n[s].set?.bind(i):_t(o,s,t[s]);return i},Jt=(t,e=globalThis)=>{let r=t.map(a=>A(xt(a))),o=!1,i=a=>function(){return o=!0,a.apply(this,arguments)},n=A(t.length),s=new Proxy(Object.assign(r,{[M]:n,[E]:r,push:i(r.push),pop:i(r.pop),shift:i(r.shift),unshift:i(r.unshift),splice:i(r.splice)}),{get(a,c){return c==="length"?o?(o=!1,r.length):n.value:typeof c=="symbol"||isNaN(c)?r[c]?.valueOf()??e[c]:(r[c]??(r[c]=A(void 0))).valueOf()},set(a,c,l){if(c==="length"){for(let f=l;f<r.length;f++)delete s[f];n.value=r.length=l}else c>=r.length?(_t(r,c,l,xt),s.length=+c+1):r[c]?Ft(r,c,l,xt):_t(r,c,l,xt);return 1},deleteProperty:(a,c)=>(r[c]?.[Symbol.dispose]?.(),delete r[c],1)});return Object.defineProperty(r,Pt,{value:e,configurable:!0}),s},_t=(t,e,r,o=ot)=>t[e]=e[0]=="_"||r?.peek||typeof r=="function"?r:A(o(r)),xt=t=>{if(!t||typeof t!="object"||t.constructor!==Object||t[M])return t;let e=A(0);return new Proxy(t,{get:(r,o)=>o===E?r:o===M?e:(e.value,r[o]),set:(r,o,i)=>{let n=r[o];return r[o]=i,n!==i&&e.value++,1},has:()=>!0})},Ft=(t,e,r,o=ot)=>{if(e[0]==="_"||typeof t[e]=="function")return t[e]=r;let i=t[e],n=i.peek?.()??i;if(r!==n){if(i[nt])return i[nt](r);Array.isArray(r)&&Array.isArray(n)?M in n?W(()=>tt(()=>{for(let s=0;s<r.length;s++)n[s]=r[s];n.length=r.length})):i.value=M in r?r:Jt(r):i.value=o(r)}},st=ot});var $t={};pt($t,{batch:()=>ar,computed:()=>sr,effect:()=>Xt,signal:()=>Bt,untracked:()=>cr});var U,Rt,at,Bt,Xt,sr,ar,cr,Gt=m(()=>{Rt=0,Bt=(t,e,r=new Set,o=()=>e.value)=>e={get value(){return U?.deps.add(r.add(U)),t},set value(i){if(i!==t){t=i;for(let n of r)at?at.add(n):n()}},peek(){return t},toJSON:o,toString:o,valueOf:o},Xt=(t,e,r,o)=>(r=i=>{if(!t)return;let n=e;if(e=null,n?.call?.(),i=U,U=r,Rt++>50){Rt--,U=i,e=t=r.fn=null;for(let s of o)s.delete(r);o.clear(),console.error("\u2234 Reactive loop detected");return}try{e=t()}finally{U=i,Rt--}},r.fn=t,o=r.deps=new Set,r(),i=>{e?.call?.(),e=t=r.fn=null;for(i of o)i.delete(r);o.clear()}),sr=(t,e=Bt(),r,o,i=()=>r.value)=>r={get value(){return o||(o=Xt(()=>e.value=t())),e.value},peek:e.peek,toJSON:i,toString:i,valueOf:i},ar=(t,e=!at,r)=>{at??(at=new Set);try{t()}finally{if(e){[at,r]=[null,at];for(let o of r)o()}}},cr=(t,e,r)=>(e=U,U=null,r=t(),U=e,r)});var Qt,Yt=m(()=>{b();Qt=(t,e)=>{var n,s;let r,o;t._holder?g(o=t,e):(t[n=h]??(t[n]=null),o=t.content?C(t):t,o[s=h]??(o[s]=null),rt(()=>t.replaceWith(r=t.ownerDocument.createTextNode(""))),o._holder=r._holder=r,r._clauses=[o._clause=[o,!1]],r._match=null,r.update=B(()=>{let a=r._clauses.find(([,c])=>c);a!=r._match&&rt(()=>{r._match?.[0].remove(),r._match?.[0][D]?.(),(r._match=a)&&(r.before(r._match[0].content||r._match[0]),r._match[0][h]?r._match[0][ct]?.():(delete r._match[0][h],g(r._match[0],e)))})}));let i=a=>{o._clause[1]=a,o._holder.update()};return i[D]=()=>{o._holder._match?.[0][D]?.(),o._holder._match=null},i}});var te,ee=m(()=>{b();te=t=>{var o;let e,r=t;for(e=t.content?C(t):t,e[o=h]??(e[o]=null);r&&!(e._holder=r._holder);)r=r.previousSibling;return t.remove(),t[h]=null,e._holder._clauses.push(e._clause=[e,!0]),e._holder.update}});var re,oe=m(()=>{b();re=t=>(t.content&&t.replaceWith(t=C(t).childNodes[0]),e=>{e=typeof e=="function"?e(t.textContent):e,e=e==null?"":""+e;let r=t.textContent;if(r===e)return;let o=t.firstChild;if(o&&e.startsWith(r)){o.appendData(e.slice(r.length));return}let i=t.getRootNode().getSelection?.(),n=i?.rangeCount&&t.contains(i.anchorNode)?i.getRangeAt(0).startOffset:-1;if(t.textContent=e,n>=0&&t.firstChild){let s=Math.min(n,t.firstChild.textContent.length),a=new Range;a.setStart(t.firstChild,s),a.collapse(!0),i.removeAllRanges(),i.addRange(a)}})});var ie,ne=m(()=>{b();ie=(t,e,r,o)=>{let i=null,n,s=null,a=()=>!t.classList.length&&t.removeAttribute("class");return c=>{if(c=typeof c=="function"?c(t.className):c,c?.constructor===Object){if(s=null,i)for(let l of i)c[l]||(t.classList.remove(l),i.delete(l));i?.size||(i=null);for(let l in c)c[l]&&!i?.has(l)&&(t.classList.add(l),(i||(i=new Set)).add(l));i||a();return}if(c=bt(c),c!==s){if(s=c,n=null,c)for(let l of c.split(" "))l&&(n||(n=new Set)).add(l);if(i)for(let l of i)n?.has(l)||t.classList.remove(l);if(n)for(let l of n)i?.has(l)||t.classList.add(l);n||a(),i=n}}}});var se,ae=m(()=>{b();se=(t,e,r,o)=>{let i;return n=>{if(i===void 0&&(i=t.getAttribute("style")??""),n=typeof n=="function"?n(t.style):n,typeof n=="string")H(t,"style",i?i+"; "+n:n);else{i&&H(t,"style",i);for(let s in n)s[0]=="-"?t.style.setProperty(s,n[s]):s[0]>="A"&&(t.style[s]=n[s])}}}});var ce,le=m(()=>{ce=()=>t=>typeof t=="function"&&t()});var fe,ue=m(()=>{b();fe=(t,e)=>(t.type?.startsWith("select")&&g(t,e),t.type==="text"||t.type===""||t.tagName==="TEXTAREA"?(r,o,i)=>(o=t.selectionStart,i=t.selectionEnd,t.setAttribute("value",t.value=r??""),o&&t.setSelectionRange(o,i)):t.type==="checkbox"?r=>(t.checked=r,H(t,"checked",r)):t.type==="radio"?r=>(t.checked=t.value===r,H(t,"checked",t.checked||null)):t.type==="select-one"?r=>{for(let o of t.options)o.value==r?o.setAttribute("selected",""):o.removeAttribute("selected");t.value=r}:t.type==="select-multiple"?r=>{for(let o of t.options)r.some(i=>i==o.value)?o.setAttribute("selected",""):o.removeAttribute("selected")}:r=>t.value=r)});var lr,de,pe=m(()=>{b();lr=(t,e=v(`${t}=__`))=>(r,o)=>{r.__=o,e(r),delete r.__},de=(t,e,r)=>{let o=v(r).call(t,e);typeof o=="function"?o(t):lr(r)(e,t)}});var he,me=m(()=>{b();ft();he=(t,e)=>{let r=t[h]=ot({},e),o=!1,i,n=t.content&&C(t);return n&&t.replaceWith(i=t.ownerDocument.createTextNode("")),s=>{if(s=typeof s=="function"?s(r):s,s!==r)for(let a in s){let c=Object.getOwnPropertyDescriptor(s,a);if(c?.get){(r[E][a]=J(c.get.bind(r)))[nt]=c.set?.bind(r);continue}let l=typeof s[a]=="function"?s[a].bind(r):s[a];a in r[E]?r[a]=l:r[E][a]=a[0]=="_"||l?.peek?l:A(ot(l))}return!o&&(o=!0,!i&&delete t[h],W(()=>(i?.before(n.content||t),g(n||t,r))))}}});var fr,ye,wt,ge,be=m(()=>{b();fr={get:(t,e)=>e===t.v?t.c?.[t.i]:e===t.k?t.o?t.o[t.i]:t.i:e===E?t:t.l?.[e]!==void 0?t.l[e]:t.p?.[e],set:(t,e,r)=>(e===t.v?t.c&&(t.c[t.i]=r):e===t.k||(t.l?.[e]!==void 0?t.l[e]=r:e in(t.p?.[E]||{})?t.p[e]=r:(t.l||(t.l={}))[e]=r),1),has:()=>!0},ye={get:(t,e)=>e===t.v?t.r:e===t.k?t.i:e===E?t:t.l?.[e]!==void 0?t.l[e]:t.p?.[e],set:(t,e,r)=>(e===t.v?t.r=r:e===t.k||(t.l?.[e]!==void 0?t.l[e]=r:e in(t.p?.[E]||{})?t.p[e]=r:(t.l||(t.l={}))[e]=r),1),has:()=>!0},wt=t=>{t.el[Symbol.dispose]?.(),t.el.remove()},ge=(t,e,r)=>{let[o,i]=r.split(/\bin|of\b/),[n,s="$"]=o.trim().replace(/\(|\)/g,"").split(/\s*,\s*/),a=t.ownerDocument,c=t._eachHolder||(t._eachHolder=a.createTextNode("")),l=new Map,f=[],T,P,V,j=!1,z=(p,x)=>{let _=new Proxy(p,x),u=t.content?C(t):t.cloneNode(!0);return{el:u,scope:p,proxy:_,node:u.content||u}},q=p=>{if(!p.length)return;let x=p.length>1?a.createDocumentFragment():null;for(let _ of p)x?x.appendChild(_.node):c.before(_.node);x&&c.before(x);for(let _ of p)g(_.el,_.proxy)},O=B(()=>rt(()=>{let p=T,x=p.length,_=f.length;if(j=!1,!p[M]){for(let u=0;u<x;u++)if(p[u]!=null){j=typeof p[u]=="object";break}}if(j&&_){let u=[],K=[],Y=!1;for(let R=0;R<x;R++){let L=p[R],N=l.get(L);N?(N.scope.i!==R&&(Y=!0),N.scope.i=R,N.scope.r=L):(N=z({p:e,v:n,k:s,r:L,i:R,l:null},ye),l.set(L,N),K.push(N)),u.push(N)}if(l.size>x){let R=new Set(p);for(let[L,N]of l)R.has(L)||(wt(N),l.delete(L),Y=!0)}if(q(K),Y){let R=c;for(let L=u.length-1;L>=0;L--){let N=u[L].el._holder||u[L].el.content||u[L].el;N.nextSibling!==R&&R.before(N),R=N}}f=u}else{if(_&&V!==p){for(let u of f)wt(u);f.length=0,_=0,l.clear()}if(V=p,x<_){for(let u=x;u<_;u++)wt(f[u]);f.length=x}for(let u=0;u<Math.min(_,x);u++)f[u].scope.c=p,P&&(f[u].scope.o=P);if(x>_){let u=[];for(let K=_;K<x;K++){let Y=j?z({p:e,v:n,k:s,r:p[K],i:K,l:null},ye):z({p:e,v:n,k:s,c:p,i:K,o:P,l:null},fr);f.push(Y),j&&l.set(p[K],Y),u.push(Y)}q(u)}}}));t.parentNode&&rt(()=>t.replaceWith(c)),t[h]=null;let Q=p=>{P=null,typeof p=="number"?T=Array.from({length:p},(_,u)=>u+1):p?.constructor===Object?(P=Object.keys(p),T=Object.values(p)):T=p||[];let x=Z(()=>{T[M]?.value,O()});return()=>x()};return Q.eval=v(i),Q[D]=()=>{for(let p of f)wt(p);f.length=0,l.clear()},Q}});var ve,xe=m(()=>{b();ve=(t,e,r,o)=>i=>H(t,o,typeof i=="function"&&!I(t)?i(t.getAttribute(o)):i)});var _e,we=m(()=>{b();_e=t=>e=>{let r=I(t);for(let o in e)H(t,r?o:Dt(o),e[o])}});var Se,Oe=m(()=>{b();Se=(t,e,r,o)=>{let[i,...n]=o.slice(2).split("."),s=v(r).bind(t),a=S(Object.assign(c=>s(e,l=>typeof l=="function"?l(c):l),{target:t}),n);return a.target.addEventListener(i,a,a),{[Symbol.dispose](){a.target.removeEventListener(i,a),a[Symbol.dispose]?.()}}}});var Ne,Ae=m(()=>{b();Ne=(t,e,r,o)=>{let i,n,s=v(r).bind(t),a=o.split("..").map((c,l,{length:f})=>c.split(":").reduce((T,P)=>{let[V,...j]=P.slice(2).split("."),z=(O,Q)=>i=typeof O=="function"?O(Q):O,q=S(Object.assign(O=>(l?z(i,O):s(e,Q=>z(Q,O)),n(),n=a[(l+1)%f]()),{target:t}),j);return O=>(O=T?.(),q.target.addEventListener(V,q,q),()=>(O?.(),q.target.removeEventListener(V,q)))},null));return n=a[0](),{[Symbol.dispose](){n?.()}}}});var Ce,Ee,Te=m(()=>{b();Ce=t=>!!t?.content,Ee=(t,e)=>{if(t.content){let r,o=t.innerHTML,i=t.ownerDocument,n=t._holder;return n||t.replaceWith(n=i.createTextNode("")),s=>{if(typeof s=="function"&&(s=s(o)),t._holder&&(t.remove(),t.content.replaceChildren()),r?.[y]?.(),r?.remove(),s!=null&&s!=="")return r=Ce(s)?(o=s.innerHTML,C(s)):C((r=i.createElement("template"),r.innerHTML=o=s,r)),W(()=>g(r,e)),n.before(r.content),t._holder&&t.childNodes.splice(0,1/0,...r.childNodes),r[y];t._holder&&(t.childNodes.length=0,o="")}}return r=>{var o;return r=typeof r=="function"?r(t.innerHTML):r,Ce(r)?t.replaceChildren(r.content.cloneNode(!0)):t.innerHTML=r??"",t[o=h]&&(t[o]=null),W(()=>g(t,e)),t[y]}}});var je,Le=m(()=>{je=(t,e,r)=>{let o=t.ownerDocument,i=o.createComment(":portal"),n=null;return t.before(i),s=>{let a=t.getRootNode(),c=typeof s=="string"?a.querySelector?.(s)||o.querySelector(s):s?.nodeType===1?s:s?o.body:null;if(c!==n)return c?c.appendChild(t):i.after(t),n=c,()=>{n&&(i.after(t),n=null)}}}});var De,Me=m(()=>{De=t=>e=>t.hidden=!!e});var qt,Pe=m(()=>{b();qt=(t,e,r,o)=>{let[,...i]=o.split("."),n=v(r).bind(t),s;return S(Object.assign(()=>{let c=n(e,l=>typeof l=="function"?l(t):l);typeof c=="function"&&(s=c)},{target:t}),i)(),{[y](){s?.(),s=null}}}});var Wt,Re=m(()=>{b();Wt=(t,e,r,o)=>{let[,...i]=o.split("."),n=v(r).bind(t),s=t.type==="checkbox"?()=>t.checked:t.type==="select-multiple"?()=>[...t.selectedOptions].map(c=>c.value):/^(date|time|month|week)/.test(t.type)?()=>t.value:()=>t.selectedIndex<0?null:isNaN(t.valueAsNumber)?t.value:t.valueAsNumber,a=S(Object.assign(()=>{n(e,c=>typeof c=="function"?c(s()):c)},{target:t}),i);return t.addEventListener("input",a),t.addEventListener("change",a),{[y](){t.removeEventListener("input",a),t.removeEventListener("change",a)}}}});var $e,qe,We=m(()=>{b();$e=(t,e,r,o)=>{let[,...i]=o.split("."),n=v(r).bind(t),s=i.includes("once"),a=S(Object.assign(l=>{n(e,f=>typeof f=="function"?f(l):f)},{target:t}),i),c=new IntersectionObserver(l=>{for(let f of l)f.isIntersecting&&(a(f),s&&c.disconnect())});return c.observe(t),{[y](){c.disconnect()}}};$e.observer=!0;qe=$e});var He,ke,Ie=m(()=>{b();He=(t,e,r,o)=>{let[,...i]=o.split("."),n=v(r).bind(t),s=S(Object.assign(c=>{n(e,l=>typeof l=="function"?l(c):l)},{target:t}),i),a=new ResizeObserver(c=>{for(let l of c){let f=l.contentRect;s({width:f.width,height:f.height,entry:l})}});return a.observe(t),{[y](){a.disconnect()}}};He.observer=!0;ke=He});var Ke={};pt(Ke,{batch:()=>tt,computed:()=>J,debounce:()=>vt,default:()=>mr,dispose:()=>hr,effect:()=>Z,signal:()=>A,sprae:()=>g,start:()=>gt,store:()=>st,throttle:()=>B,untracked:()=>W,use:()=>lt});var ur,dr,Ht,kt,ze,pr,hr,mr,Ue=m(()=>{ft();b();Gt();b();Yt();ee();oe();ne();ae();le();ue();pe();me();be();xe();we();Oe();Ae();Te();Le();Me();Pe();Re();We();Ie();qt.observer=Wt.observer=!0;Object.assign(et,{_:ve,"":_e,class:ie,text:re,html:Ee,style:se,fx:ce,value:fe,ref:de,scope:he,if:Qt,else:te,each:ge,portal:je,hidden:De,mount:qt,change:Wt,intersect:qe,resize:ke});ur=(t,e,r,o)=>{let[i,...n]=e.split("."),s=et[i]||et._,a=n.length>0;return()=>{let c=t,l,f,T,P=0;if(a&&(f=A(0),T=S(Object.assign(()=>f.value++,{target:t}),n),c=T.target??t),l=s(c,o,r,i),!l?.call)return l?.[y];let V=l.eval??v(r).bind(c),j,z=()=>(typeof j=="function"&&j(),j=null);I(c)||(o=c[h]??o);let q=a?Z(()=>(f.value==P?T():(P=f.value,j=V(o,l)),z)):Z(()=>(j=V(o,l),z));if(!(h in c))return q;let O=0;return()=>{O||(O=1,q(),l[D]?l[D]():c[y]?.())}}},dr=t=>t?typeof t=="number"?t:(([,e,r]=t.match(/^(\d+)(ms|s|m)?$/)||[])=>(e=+e,r==="s"?e*1e3:r==="m"?e*6e4:e))():0,Ht=t=>t==="idle"?requestIdleCallback:t==="raf"?requestAnimationFrame:!t||t==="tick"?queueMicrotask:e=>setTimeout(e,dr(t));Object.assign(F,{debounce:(t,e,r)=>vt(t,Ht(e==="immediate"?r:e),e==="immediate"||r==="immediate"),throttle:(t,e)=>B(t,Ht(e)),delay:(t,e)=>((r=Ht(e))=>o=>r(()=>t(o)))(),tick:t=>e=>queueMicrotask(()=>t(e)),raf:t=>e=>requestAnimationFrame(()=>t(e)),once:(t,e,r)=>(r=o=>!e&&(e=1,t(o)),r.once=!0,r),window:t=>(t.target=t.target.ownerDocument.defaultView,t),document:t=>(t.target=t.target.ownerDocument,t),root:t=>(t.target=t.target.ownerDocument.documentElement,t),body:t=>(t.target=t.target.ownerDocument.body,t),parent:t=>(t.target=t.target.parentNode,t),self:t=>e=>e.target===t.target&&t(e),away:(t,e)=>{let r=t.target.ownerDocument,o=n=>e=n.target,i=r.currentEvent||r.defaultView?.event;return r.addEventListener("pointerdown",o,!0),Object.assign(n=>n!==i&&!t.target.contains(n.type==="click"?e??n.target:n.target)&&n.target.isConnected&&t(n),{target:r,[y]:()=>r.removeEventListener("pointerdown",o,!0)})},prevent:t=>e=>(e?.preventDefault(),t(e)),stop:(t,e)=>r=>(e?.[0]==="i"?r?.stopImmediatePropagation():r?.stopPropagation(),t(r)),passive:t=>(t.passive=!0,t),capture:t=>(t.capture=!0,t)});F.outside=F.away;kt={ctrl:t=>t.ctrlKey||t.key==="Control"||t.key==="Ctrl",shift:t=>t.shiftKey||t.key==="Shift",alt:t=>t.altKey||t.key==="Alt",meta:t=>t.metaKey||t.key==="Meta",cmd:t=>t.metaKey||t.key==="Command",arrow:t=>t.key?.startsWith("Arrow"),enter:t=>t.key==="Enter",esc:t=>t.key?.startsWith("Esc"),tab:t=>t.key==="Tab",space:t=>t.key==="\xA0"||t.key==="Space"||t.key===" ",delete:t=>t.key==="Delete"||t.key==="Backspace",digit:t=>/^\d$/.test(t.key),letter:t=>/^\p{L}$/gu.test(t.key),char:t=>/^\S$/.test(t.key)},ze=(t,e)=>kt[t]?.(e)||e.key?.toLowerCase()===t||e.keyCode==t;for(let t in kt)F[t]=(e,r,o)=>i=>kt[t](i)&&(!r||ze(r,i))&&(!o||ze(o,i))&&e(i);pr=t=>{let e=0,r="",o=0;for(let i of t){if(r){o?o=0:i==="\\"?o=1:i===r&&(r="");continue}if(i===";"&&!e)return!0;i==="{"?e++:i==="}"?e--:(i==='"'||i==="'"||i==="`")&&(r=i)}return!1};lt({compile:t=>(/^(if|let|const)\b/.test(t)||pr(t)||(t=`return ${t}`),/\bawait\s/.test(t)&&(t=`return (async()=>{${t}})()`),g.constructor(`with(arguments[0]){${t}}`)),dir:(t,e,r,o)=>e.includes("..")?()=>Ne(t,o,r,e)[y]:e.split(":").reduce((i,n)=>{let s=n.split(".")[0],a=et[s],c=n.startsWith("on")?()=>Se(t,o,r,n)[y]:a?.observer?()=>a(t,o,r,n)[y]:ur(t,n,r,o);return i?(l,f)=>(l=i(),f=c(),()=>{l(),f()}):c},null),...$t});g.use=lt;g.store=st;g.directive=et;g.modifier=F;hr=g.dispose=t=>t[y]?.();g.start=gt;mr=g});var Ge={};pt(Ge,{Computed:()=>G,Effect:()=>it,Signal:()=>w,batch:()=>gr,computed:()=>vr,effect:()=>Xe,signal:()=>br,untracked:()=>zt});function Ot(){if(X>1)X--;else{for(var t,e=!1;ut!==void 0;){var r=ut;for(ut=void 0,It++;r!==void 0;){var o=r.o;if(r.o=void 0,r.f&=-3,!(8&r.f)&&Ze(r))try{r.c()}catch(i){e||(t=i,e=!0)}r=o}}if(It=0,X--,e)throw t}}function gr(t){if(X>0)return t();X++;try{return t()}finally{Ot()}}function zt(t){var e=d;d=void 0;try{return t()}finally{d=e}}function Ve(t){if(d!==void 0){var e=t.n;if(e===void 0||e.t!==d)return e={i:0,S:t,p:d.s,n:void 0,t:d,e:void 0,x:void 0,r:e},d.s!==void 0&&(d.s.n=e),d.s=e,t.n=e,32&d.f&&t.S(e),e;if(e.i===-1)return e.i=0,e.n!==void 0&&(e.n.p=e.p,e.p!==void 0&&(e.p.n=e.n),e.p=d.s,e.n=void 0,d.s.n=e,d.s=e),e}}function w(t,e){this.v=t,this.i=0,this.n=void 0,this.t=void 0,this.W=e?.watched,this.Z=e?.unwatched,this.name=e?.name}function br(t,e){return new w(t,e)}function Ze(t){for(var e=t.s;e!==void 0;e=e.n)if(e.S.i!==e.i||!e.S.h()||e.S.i!==e.i)return!0;return!1}function Je(t){for(var e=t.s;e!==void 0;e=e.n){var r=e.S.n;if(r!==void 0&&(e.r=r),e.S.n=e,e.i=-1,e.n===void 0){t.s=e;break}}}function Fe(t){for(var e=t.s,r=void 0;e!==void 0;){var o=e.p;e.i===-1?(e.S.U(e),o!==void 0&&(o.n=e.n),e.n!==void 0&&(e.n.p=o)):r=e,e.S.n=e.r,e.r!==void 0&&(e.r=void 0),e=o}t.s=r}function G(t,e){w.call(this,void 0),this.x=t,this.s=void 0,this.g=St-1,this.f=4,this.W=e?.watched,this.Z=e?.unwatched,this.name=e?.name}function vr(t,e){return new G(t,e)}function Be(t){var e=t.u;if(t.u=void 0,typeof e=="function"){X++;var r=d;d=void 0;try{e()}catch(o){throw t.f&=-2,t.f|=8,Kt(t),o}finally{d=r,Ot()}}}function Kt(t){for(var e=t.s;e!==void 0;e=e.n)e.S.U(e);t.x=void 0,t.s=void 0,Be(t)}function xr(t){if(d!==this)throw new Error("Out-of-order effect");Fe(this),d=t,this.f&=-2,8&this.f&&Kt(this),Ot()}function it(t,e){this.x=t,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32,this.name=e?.name}function Xe(t,e){var r=new it(t,e);try{r.c()}catch(i){throw r.d(),i}var o=r.d.bind(r);return o[Symbol.dispose]=o,o}var yr,d,ut,X,It,St,Qe=m(()=>{yr=Symbol.for("preact-signals");d=void 0;ut=void 0,X=0,It=0,St=0;w.prototype.brand=yr;w.prototype.h=function(){return!0};w.prototype.S=function(t){var e=this,r=this.t;r!==t&&t.e===void 0&&(t.x=r,this.t=t,r!==void 0?r.e=t:zt(function(){var o;(o=e.W)==null||o.call(e)}))};w.prototype.U=function(t){var e=this;if(this.t!==void 0){var r=t.e,o=t.x;r!==void 0&&(r.x=o,t.e=void 0),o!==void 0&&(o.e=r,t.x=void 0),t===this.t&&(this.t=o,o===void 0&&zt(function(){var i;(i=e.Z)==null||i.call(e)}))}};w.prototype.subscribe=function(t){var e=this;return Xe(function(){var r=e.value,o=d;d=void 0;try{t(r)}finally{d=o}},{name:"sub"})};w.prototype.valueOf=function(){return this.value};w.prototype.toString=function(){return this.value+""};w.prototype.toJSON=function(){return this.value};w.prototype.peek=function(){var t=d;d=void 0;try{return this.value}finally{d=t}};Object.defineProperty(w.prototype,"value",{get:function(){var t=Ve(this);return t!==void 0&&(t.i=this.i),this.v},set:function(t){if(t!==this.v){if(It>100)throw new Error("Cycle detected");this.v=t,this.i++,St++,X++;try{for(var e=this.t;e!==void 0;e=e.x)e.t.N()}finally{Ot()}}}});G.prototype=new w;G.prototype.h=function(){if(this.f&=-3,1&this.f)return!1;if((36&this.f)==32||(this.f&=-5,this.g===St))return!0;if(this.g=St,this.f|=1,this.i>0&&!Ze(this))return this.f&=-2,!0;var t=d;try{Je(this),d=this;var e=this.x();(16&this.f||this.v!==e||this.i===0)&&(this.v=e,this.f&=-17,this.i++)}catch(r){this.v=r,this.f|=16,this.i++}return d=t,Fe(this),this.f&=-2,!0};G.prototype.S=function(t){if(this.t===void 0){this.f|=36;for(var e=this.s;e!==void 0;e=e.n)e.S.S(e)}w.prototype.S.call(this,t)};G.prototype.U=function(t){if(this.t!==void 0&&(w.prototype.U.call(this,t),this.t===void 0)){this.f&=-33;for(var e=this.s;e!==void 0;e=e.n)e.S.U(e)}};G.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var t=this.t;t!==void 0;t=t.x)t.t.N()}};Object.defineProperty(G.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var t=Ve(this);if(this.h(),t!==void 0&&(t.i=this.i),16&this.f)throw this.v;return this.v}});it.prototype.c=function(){var t=this.S();try{if(8&this.f||this.x===void 0)return;var e=this.x();typeof e=="function"&&(this.u=e)}finally{t()}};it.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,Be(this),Je(this),X++;var t=d;return d=this,xr.bind(this,t)};it.prototype.N=function(){2&this.f||(this.f|=2,this.o=ut,ut=this)};it.prototype.d=function(){this.f|=8,1&this.f||Kt(this)};it.prototype.dispose=function(){this.d()}});var Ut=(Ue(),At(Ke)).default,_r=(Qe(),At(Ge)),wr=(b(),At(Zt)).use;wr(_r);module.exports=Ut;var $=document.currentScript,Ye=$.getAttribute("prefix")??$.dataset.prefix??$.dataset.spraePrefix,dt=$.getAttribute("start")??$.dataset.start??$.dataset.spraeStart;$.removeAttribute("prefix");$.removeAttribute("start");delete $.dataset.prefix;delete $.dataset.start;delete $.dataset.spraePrefix;delete $.dataset.spraeStart;Ye&&Ut.use({prefix:Ye});dt!=null&&dt!=="false"&&(dt&&dt!=="true"?document.querySelectorAll(dt):[document.body||document.documentElement]).forEach(t=>Ut.start(t));
|
|
6
6
|
;if (typeof module.exports == "object" && typeof exports == "object") {
|
|
7
7
|
var __cp = (to, from, except, desc) => {
|
|
8
8
|
if ((from && typeof from === "object") || typeof from === "function") {
|