sibujs 4.4.0 → 4.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +11 -0
- package/dist/browser.cjs +339 -130
- package/dist/browser.d.cts +61 -16
- package/dist/browser.d.ts +61 -16
- package/dist/browser.js +8 -6
- package/dist/build.cjs +273 -82
- package/dist/build.js +15 -16
- package/dist/cdn.dev.global.js +12 -12
- package/dist/cdn.full.dev.global.js +11 -11
- package/dist/cdn.full.global.js +10 -10
- package/dist/cdn.global.js +12 -12
- package/dist/{chunk-IXKSNWV5.js → chunk-2INLLLMZ.js} +1 -1
- package/dist/chunk-3ISI6ACU.js +44 -0
- package/dist/{chunk-VCTAEPSB.js → chunk-47M47FOM.js} +11 -3
- package/dist/chunk-5HZXGZ6T.js +24 -0
- package/dist/{chunk-KKLW7YWL.js → chunk-5MT6SJ3P.js} +275 -144
- package/dist/{chunk-3BTTCZ5J.js → chunk-5Q4R7HCL.js} +42 -4
- package/dist/{chunk-ADM46X22.js → chunk-7GQCWFOE.js} +157 -61
- package/dist/{chunk-4Z3SPQ67.js → chunk-7NCARGJW.js} +16 -8
- package/dist/{chunk-5DXA2J44.js → chunk-7XHATCIH.js} +5 -2
- package/dist/{chunk-LQFGQNMV.js → chunk-AIF3Z2T7.js} +302 -39
- package/dist/{chunk-UCALUKB5.js → chunk-BAAG6ZTI.js} +98 -29
- package/dist/{chunk-NVNJH22U.js → chunk-D33YTSX5.js} +2 -2
- package/dist/{chunk-M2F7TZHH.js → chunk-DKGBBKOF.js} +136 -80
- package/dist/{chunk-NIOYEGBQ.js → chunk-HURREPU2.js} +27 -13
- package/dist/{chunk-HFCOH2GN.js → chunk-HYXDKS4N.js} +153 -110
- package/dist/chunk-J6FW5TV6.js +233 -0
- package/dist/{chunk-36S2YPP4.js → chunk-JSXPZCET.js} +1 -1
- package/dist/chunk-NYNYSPK7.js +318 -0
- package/dist/{chunk-HQSEH5F6.js → chunk-ORMZXBKQ.js} +108 -45
- package/dist/{chunk-LYVUX7NT.js → chunk-OXUY2A6L.js} +287 -130
- package/dist/{chunk-6GSIXTWX.js → chunk-PK6FK2G2.js} +187 -66
- package/dist/{chunk-W2EQ7X2L.js → chunk-QE4TTDU3.js} +47 -9
- package/dist/{chunk-XLO7SLIX.js → chunk-SXXVZMKZ.js} +262 -70
- package/dist/{chunk-R25EFXXC.js → chunk-TUCPL2HB.js} +3 -3
- package/dist/{chunk-RR7M3FHM.js → chunk-UZQ6ALFS.js} +3 -3
- package/dist/{chunk-PNIRUQ4C.js → chunk-VVWPJ543.js} +6 -8
- package/dist/{chunk-7GIHSAWB.js → chunk-XC4MEKGA.js} +3 -3
- package/dist/{chunk-SKPTERHP.js → chunk-XRRZKZYX.js} +55 -31
- package/dist/{contracts-DBdg9J_a.d.cts → contracts-DRIuclVT.d.cts} +10 -2
- package/dist/{contracts-DBdg9J_a.d.ts → contracts-DRIuclVT.d.ts} +10 -2
- package/dist/{customElement-CNZxEB9G.d.ts → customElement-MmInOW1U.d.cts} +59 -10
- package/dist/{customElement-CNZxEB9G.d.cts → customElement-MmInOW1U.d.ts} +59 -10
- package/dist/data.cjs +293 -125
- package/dist/data.d.cts +47 -9
- package/dist/data.d.ts +47 -9
- package/dist/data.js +12 -9
- package/dist/devtools.cjs +121 -58
- package/dist/devtools.js +7 -8
- package/dist/dispose-GEIG2KOF.js +28 -0
- package/dist/ecosystem.cjs +391 -112
- package/dist/ecosystem.d.cts +31 -7
- package/dist/ecosystem.d.ts +31 -7
- package/dist/ecosystem.js +12 -12
- package/dist/extras.cjs +2250 -879
- package/dist/extras.d.cts +10 -9
- package/dist/extras.d.ts +10 -9
- package/dist/extras.js +39 -28
- package/dist/index.cjs +273 -82
- package/dist/index.d.cts +44 -154
- package/dist/index.d.ts +44 -154
- package/dist/index.js +24 -27
- package/dist/motion.cjs +137 -42
- package/dist/motion.js +5 -5
- package/dist/patterns.cjs +397 -48
- package/dist/patterns.d.cts +32 -9
- package/dist/patterns.d.ts +32 -9
- package/dist/patterns.js +8 -8
- package/dist/performance.cjs +338 -217
- package/dist/performance.d.cts +2 -2
- package/dist/performance.d.ts +2 -2
- package/dist/performance.js +8 -9
- package/dist/plugin-DVgSnTfK.d.cts +112 -0
- package/dist/plugin-DVgSnTfK.d.ts +112 -0
- package/dist/plugins.cjs +587 -203
- package/dist/plugins.d.cts +3 -3
- package/dist/plugins.d.ts +3 -3
- package/dist/plugins.js +35 -23
- package/dist/signal-EotCj4hS.d.cts +110 -0
- package/dist/signal-EotCj4hS.d.ts +110 -0
- package/dist/{ssr-BiPRdZ6n.d.cts → ssr-Bli9XRW5.d.cts} +5 -0
- package/dist/{ssr-BiPRdZ6n.d.ts → ssr-Bli9XRW5.d.ts} +5 -0
- package/dist/{ssr-Y7XOEPEN.js → ssr-XOTUASDO.js} +4 -5
- package/dist/ssr.cjs +214 -73
- package/dist/ssr.d.cts +9 -3
- package/dist/ssr.d.ts +9 -3
- package/dist/ssr.js +11 -12
- package/dist/{startup-BMpaiMhP.d.ts → startup-BLfSeL15.d.cts} +73 -22
- package/dist/{startup-BMpaiMhP.d.cts → startup-BLfSeL15.d.ts} +73 -22
- package/dist/tagFactory-DFstCLQV.d.cts +117 -0
- package/dist/tagFactory-DkaNVUNV.d.ts +117 -0
- package/dist/testing.cjs +2481 -2153
- package/dist/testing.d.cts +56 -5
- package/dist/testing.d.ts +56 -5
- package/dist/testing.js +580 -307
- package/dist/ui.cjs +798 -328
- package/dist/ui.d.cts +40 -7
- package/dist/ui.d.ts +40 -7
- package/dist/ui.js +151 -56
- package/dist/widgets.cjs +319 -285
- package/dist/widgets.js +9 -10
- package/package.json +2 -2
- package/dist/chunk-2WLZ6757.js +0 -149
- package/dist/chunk-7NBDXVHS.js +0 -60
- package/dist/chunk-CCSJMTRN.js +0 -15
- package/dist/chunk-QKRPLZ2V.js +0 -108
- package/dist/chunk-WWV3SJ3L.js +0 -131
- package/dist/dispose-46BOMMQJ.js +0 -19
- package/dist/plugin-D30wlGW5.d.cts +0 -71
- package/dist/plugin-D30wlGW5.d.ts +0 -71
- package/dist/tagFactory-Bzupt4Pj.d.cts +0 -55
- package/dist/tagFactory-Bzupt4Pj.d.ts +0 -55
package/dist/cdn.full.global.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
"use strict";(()=>{var
|
|
2
|
-
`||e==="\r"||e==="\f"}function
|
|
1
|
+
"use strict";(()=>{var Kr=Object.defineProperty;var dt=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(n,t)=>(typeof require<"u"?require:n)[t]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var en=(e,n)=>{for(var t in n)Kr(e,t,{get:n[t],enumerable:!0})};var Gt={};en(Gt,{DynamicComponent:()=>Qa,ErrorBoundary:()=>Ba,ErrorDisplay:()=>jt,Fragment:()=>nc,KeepAlive:()=>sc,Loading:()=>Fa,MAX_DRAIN_TEARDOWNS:()=>Ve,Portal:()=>cc,SVG_NS:()=>$,Suspense:()=>Kn,__resetIdCounter:()=>vr,a:()=>yi,abbr:()=>vi,action:()=>za,address:()=>ni,area:()=>qi,array:()=>lc,article:()=>Yo,aside:()=>ti,asyncDerived:()=>fc,audio:()=>Wi,autoResize:()=>br,b:()=>Si,base:()=>Bs,batch:()=>j,bdi:()=>xi,bdo:()=>Ti,bindDynamic:()=>Bn,blockquote:()=>ci,body:()=>Uo,br:()=>wi,button:()=>We,canvas:()=>is,caption:()=>ls,catchError:()=>qa,catchErrorAsync:()=>Wa,center:()=>ca,checkLeaks:()=>cn,circle:()=>Fs,cite:()=>Ei,clickOutside:()=>pr,clipPath:()=>Qs,code:()=>Lt,col:()=>ds,colgroup:()=>fs,context:()=>Ua,copyOnClick:()=>gr,createId:()=>yr,customElement:()=>da,data:()=>ki,datalist:()=>Ss,dd:()=>ui,deepEqual:()=>Oe,deepSignal:()=>pc,defer:()=>Rc,defs:()=>Xs,del:()=>cs,derived:()=>Le,details:()=>Ps,dfn:()=>_i,dialog:()=>Ds,disableSSR:()=>Xn,dispose:()=>I,div:()=>M,dl:()=>li,dt:()=>di,each:()=>tc,effect:()=>Y,ellipse:()=>zs,em:()=>Ai,embed:()=>Yi,enableSSR:()=>Zn,enhance:()=>st,enhanceAll:()=>wc,enqueueBatchedSignal:()=>Ae,external:()=>Na,fieldset:()=>xs,figcaption:()=>fi,figure:()=>pi,font:()=>ua,footer:()=>Xo,form:()=>Ts,g:()=>qs,getAction:()=>fr,getRequestScopedCache:()=>Yn,getRuntimeErrorHandler:()=>rn,getSSRStore:()=>_e,getSlot:()=>uc,h1:()=>ri,h2:()=>oi,h3:()=>At,h4:()=>ii,h5:()=>si,h6:()=>ai,head:()=>Ko,header:()=>Zo,hr:()=>mi,html:()=>_r,i:()=>Ci,iframe:()=>Zi,img:()=>Ki,input:()=>ws,ins:()=>us,isBatching:()=>La,isSSR:()=>re,kbd:()=>Li,label:()=>Es,lazy:()=>Wn,lazyIsland:()=>kc,legend:()=>ks,li:()=>gi,line:()=>Ws,linearGradient:()=>na,link:()=>Vs,longPress:()=>mr,main:()=>ei,map:()=>Ui,mark:()=>Ni,marker:()=>aa,marquee:()=>la,mask:()=>ea,match:()=>Ya,math:()=>os,menu:()=>Hs,meta:()=>js,meter:()=>_s,mount:()=>ac,mountIslands:()=>Lc,nav:()=>Qo,nextTick:()=>Dc,noscript:()=>ss,object:()=>Xi,ol:()=>bi,on:()=>Ta,onCleanup:()=>va,onMount:()=>ot,onUnmount:()=>ya,optgroup:()=>As,option:()=>Cs,output:()=>Ls,p:()=>_t,param:()=>Qi,path:()=>Ks,pattern:()=>ta,picture:()=>es,polygon:()=>Us,polyline:()=>Js,portal:()=>ts,pre:()=>Ct,progress:()=>Ns,q:()=>Ri,radialGradient:()=>ra,reactiveArray:()=>dc,rect:()=>Gs,ref:()=>mc,registerAction:()=>$e,registerComponent:()=>Za,registerDisposer:()=>A,registerIsland:()=>_c,replaceChildrenSafely:()=>Z,reportDrainRunaway:()=>je,reportError:()=>R,resolveComponent:()=>xr,retrack:()=>me,rp:()=>Mi,rt:()=>Pi,ruby:()=>Di,runInSSRContext:()=>Qn,s:()=>Hi,samp:()=>$i,script:()=>as,section:()=>Go,select:()=>Rs,setGlobalErrorHandler:()=>Ka,setMaxDrainIterations:()=>$n,setRuntimeErrorHandler:()=>nn,show:()=>Ja,signal:()=>L,slot:()=>Os,small:()=>Oi,source:()=>ns,span:()=>V,stop:()=>oa,store:()=>gc,strict:()=>yc,strictEffect:()=>vc,strong:()=>Ii,style:()=>we,sub:()=>Bi,summary:()=>$s,sup:()=>Vi,svg:()=>rs,symbol:()=>sa,table:()=>ps,tagFactory:()=>f,takePendingError:()=>nt,tbody:()=>ms,td:()=>gs,template:()=>Is,text:()=>Ys,textarea:()=>Ms,tfoot:()=>bs,th:()=>hs,thead:()=>ys,time:()=>ji,title:()=>Jo,tr:()=>vs,track:()=>Ji,transition:()=>Pc,trapFocus:()=>hr,trustHTML:()=>Hr,tspan:()=>Zs,u:()=>Fi,ul:()=>hi,unregisterComponent:()=>Xa,unregisterDisposer:()=>Ge,unregisterIsland:()=>Ac,untracked:()=>Fe,use:()=>ia,var_:()=>zi,video:()=>Gi,watch:()=>bc,when:()=>Ga,withSSR:()=>er,writable:()=>hc});var tn=Symbol.for("sibujs.runtime-errors.v1");function ft(){let e=globalThis,n=e[tn];if(n)return n;let t={handler:null,handlerDepth:0};return e[tn]=t,t}function nn(e){let n=ft(),t=n.handler;return n.handler=e,t}function rn(){return ft().handler}function pt(e){if(e instanceof Error)return e;let n=typeof e=="string"?e:`Non-Error value thrown: ${Ur(e)}`;return new Error(n,{cause:e})}function Ur(e){if(typeof e=="symbol")return e.toString();try{return typeof e=="object"&&e!==null?JSON.stringify(e):String(e)}catch{return Object.prototype.toString.call(e)}}function Jr(e){return e.name?`${e.phase} "${e.name}"`:e.phase}var Gr=Symbol.for("sibujs.reactive.v1");function Yr(e){let n=globalThis[Gr];return n?.untracked?n.untracked(e):e()}var Zr="sibu:error-propagate";function Xr(e,n){let t=n.node;if(!t||typeof CustomEvent>"u")return!1;let r=Qr(t);if(!r)return!1;try{let o=new CustomEvent(Zr,{bubbles:!0,cancelable:!0,detail:{error:e,context:n}});return r.dispatchEvent(o)===!1}catch{return!1}}function Qr(e){let t=e;for(;t;){if(t.nodeType===1&&typeof t.dispatchEvent=="function")return t;t=t.parentNode}let r=e;return typeof r.dispatchEvent=="function"?r:null}function eo(e,n){typeof console>"u"||console.error(`[SibuJS] Uncaught error during ${Jr(n)}: ${e.message}`,e)}function R(e,n){let t=pt(e);Yr(()=>{if(Xr(t,n))return;let r=ft(),o=r.handler;if(o&&r.handlerDepth===0){r.handlerDepth++;try{o(e instanceof Error?e:t,n);return}catch(i){if(typeof console<"u"){let s=i instanceof Error?i.message:String(i);console.error(`[SibuJS] runtime error handler itself threw: ${s}`,i)}}finally{r.handlerDepth--}}eo(t,n)})}function ie(){return typeof globalThis.__SIBU_DEV__<"u"?!!globalThis.__SIBU_DEV__:!1}var ae=new WeakMap,Ve=1e4;function je(e,n,t){typeof console>"u"||console.error(`[SibuJS ${e}] runaway cleanup: stopped after running ${n} teardowns with ${t} still queued. Cleanup production did not stabilize before the teardown safety ceiling was reached \u2014 the remaining work was NOT run.`,{executed:n,remaining:t})}var be=0;function mt(e){let n=e;for(;n?.closed;)n=n.forwardTo;return n??null}var he=[];function on(){return mt(he[he.length-1])}function sn(e){return e===null&&he.length===0?!1:(he.push(mt(e)),!0)}function an(){he.pop()}function A(e,n){let t=ae.get(e);t||(t=[],ae.set(e,t)),t.push(n),!1;let r=mt(he[he.length-1]);r&&r.entries.push([e,n])}function Ge(e,n){let t=ae.get(e);if(!t)return!1;let r=t.indexOf(n);return r===-1?!1:(t.splice(r,1),!1,t.length===0&&ae.delete(e),!0)}function I(e){let n=[e],t=[];for(;n.length>0;){let r=n.pop();t.push(r);let o=Array.from(r.childNodes);for(let i=0;i<o.length;i++)n.push(o[i])}for(let r=t.length-1;r>=0;r--)to(t[r])}function to(e){if(!ae.has(e))return;let n=0,t=!1;for(;!t;){let r=ae.get(e);if(!r||r.length===0)break;let o=r.slice();ae.delete(e),!1;for(let i=0;i<o.length;i++){if(n>=Ve){let s=o.slice(i),a=ae.get(e);ae.set(e,a?s.concat(a):s),!1,je("dispose",n,s.length+(a?.length??0)),t=!0;break}n++;try{o[i]()}catch(s){R(s,{phase:"cleanup",name:"disposer"})}}}}function Z(e,...n){for(let r=0;r<n.length;r++){let o=n[r];o.parentNode?.removeChild(o)}let t=Array.from(e.childNodes);for(let r=0;r<t.length;r++)I(t[r]);e.replaceChildren(...n)}function cn(e=0){return 0}function no(e){return e.replace(/[\x00-\x20\x7f-\x9f]+/g,"")}function Ne(e){if(e.length<3)return!1;let n=e.toLowerCase();return n[0]==="o"&&n[1]==="n"&&n.charCodeAt(2)>=97&&n.charCodeAt(2)<=122}var ro=["http:","https:","mailto:","tel:","ftp:"],oo=/^[\x00-\x20\x7f-\x9f]+|[\x00-\x20\x7f-\x9f]+$/g;function pn(e){let n=no(e).trim();if(!n)return"";let t=e.replace(oo,""),r=n.toLowerCase(),o=-1;for(let s=0;s<r.length;s++){let a=r.charCodeAt(s);if(a===58){o=s;break}if(a===47||a===63||a===35)break}if(o===-1)return t;let i=r.slice(0,o+1);return/^[a-z][a-z0-9+.-]*:$/.test(i)&&ro.indexOf(i)===-1?"":t}var io=/^\s+\d+(\.\d+)?[wx]$/;function so(e){let n=e.split(","),t=[];for(let r=0;r<n.length;r++){let o=n[r].trim();if(!o)continue;let i=o.match(/^(\S+)(\s+.+)?$/);if(!i||i[2]!==void 0&&!io.test(i[2]))continue;let s=pn(i[1]);s&&t.push(i[2]?`${s}${i[2]}`:s)}return t.join(", ")}var ao=/[(:@\\]/;function co(e){return e===" "||e===" "||e===`
|
|
2
|
+
`||e==="\r"||e==="\f"}function un(e){return e>="0"&&e<="9"||e>="a"&&e<="f"||e>="A"&&e<="F"}function uo(e){let n="";for(let t=0;t<e.length;t++){let r=e[t];if(r!=="\\"){n+=r;continue}if(t+1>=e.length)break;let o=e[t+1];if(o===`
|
|
3
3
|
`||o==="\f"){t+=1;continue}if(o==="\r"){t+=e[t+2]===`
|
|
4
|
-
`?2:1;continue}if(
|
|
5
|
-
`?2:1);let a=Number.parseInt(i,16),c=a===0||a>1114111||a>=55296&&a<=57343;n+=c?"\uFFFD":String.fromCodePoint(a),t=s-1;continue}n+=o,t+=1}return n}var tn=["url(","expression(","javascript:","vbscript:","-moz-binding","behavior:","@import","image-set(","filter:progid"];function Ur(e){if(!e)return"an element";let n=e.tagName.toLowerCase(),t=e.getAttribute("id");t&&(n+=`#${t}`);let r=e.getAttribute("class");return r&&(n+=`.${r.trim().split(/\s+/).slice(0,3).join(".")}`),`<${n}>`}var lt=new Set,nn=100,rn=!1;function sn(e,n,t){}function ut(e){if(!qr.test(e))return-1;let t=(e.includes("\\")?Kr(e):e).toLowerCase().replace(/\s+/g,"");for(let r=0;r<tn.length;r++)if(t.includes(tn[r]))return r;return-1}function ze(e,n){let t=ut(e);return t===-1?e:(sn(e,t,n),"")}function qe(e,n){let t=String(e);if(t.trim()==="")return"";if(typeof document>"u")return ze(t,n)===""?"":t;let r=document.createElement("div");try{r.style.cssText=t}catch{return""}let o=[];for(let i=0;i<r.style.length;i++){let s=r.style[i],a=r.style.getPropertyValue(s),c=ut(a);if(c===-1&&(c=ut(`${s}:${a}`)),c!==-1){sn(a,c,{property:s,element:n?.element});continue}let u=r.style.getPropertyPriority(s);o.push(`${s}: ${a}${u?` !${u}`:""}`)}return o.join("; ")}var Jr=new Set(["href","xlink:href","src","action","formaction","formtarget","cite","poster","background","srcset","ping","data","manifest"]),Gr=new Set(["srcdoc"]);function an(e){return Gr.has(e.toLowerCase())}function cn(e,n,t){let r=e.toLowerCase();return r==="srcset"?zr(n):Jr.has(r)?on(n):r==="style"?qe(n,t):n}var Yr="http://www.w3.org/1999/xhtml",Zr="http://www.w3.org/2000/svg",Xr="http://www.w3.org/1999/xlink",Qr="http://www.w3.org/XML/1998/namespace",eo=new Set(["checked","disabled","selected"]);function to(e){return e.namespaceURI===null||e.namespaceURI===Yr}function ln(e,n,t){e[n]=t}function no(e,n){if(e.namespaceURI!==Zr)return null;let t=n.toLowerCase();return t.startsWith("xlink:")?Xr:t.startsWith("xml:")?Qr:null}function X(e,n,t,r={}){let o=no(e,n),i=o?n.slice(n.indexOf(":")+1):n;if(Se(n))return!1,o?e.removeAttributeNS(o,i):e.removeAttribute(n),!1;if(t==null)return o?e.removeAttributeNS(o,i):e.removeAttribute(n),!0;if(an(n))return!1,o?e.removeAttributeNS(o,i):e.removeAttribute(n),!1;let s=to(e),a=s?n.toLowerCase():n;if(typeof t=="boolean")return s&&eo.has(a)&&a in e?ln(e,a,t):t?o?e.setAttributeNS(o,n,""):e.setAttribute(n,""):o?e.removeAttributeNS(o,i):e.removeAttribute(n),!0;let c=String(t);if(r.syncValueProperty!==!1&&s&&(a==="value"||a==="checked")&&a in e)return ln(e,a,a==="checked"?!!t:c),!0;let u=cn(n,c,{element:e});return(o?e.getAttributeNS(o,i):e.getAttribute(n))===u||(o?e.setAttributeNS(o,n,u):e.setAttribute(n,u)),!0}var ro=4096,dt=[];function oo(){return{sig:null,sub:null,epoch:0,depVersion:0,sigPrev:null,sigNext:null,subPrev:null,subNext:null,prevActive:null}}function io(e,n,t){let r=dt.pop();if(r)return r.sig=e,r.sub=n,r.epoch=t,r;let o=oo();return o.sig=e,o.sub=n,o.epoch=t,o}function un(e){e.sig=null,e.sub=null,e.sigPrev=null,e.sigNext=null,e.subPrev=null,e.subNext=null,e.prevActive=null,dt.length<ro&&dt.push(e)}function so(e,n){let t=e.subsHead??null;n.sigPrev=null,n.sigNext=t,t?t.sigPrev=n:e.subsTail=n,e.subsHead=n,e.__sc=(e.__sc??0)+1}function dn(e){let n=e.sig;if(!n)return;let t=e.sigPrev,r=e.sigNext;t?t.sigNext=r:n.subsHead=r,r?r.sigPrev=t:n.subsTail=t,n.__sc=(n.__sc??1)-1,n.__activeNode===e&&(n.__activeNode=e.prevActive),n.__sc===0&&(n.subsHead=null,n.subsTail=null)}function ao(e,n){let t=e.depsTail??null;n.subPrev=t,n.subNext=null,t?t.subNext=n:e.depsHead=n,e.depsTail=n}function co(e){let n=e.sub;if(!n)return;let t=e.subPrev,r=e.subNext;t?t.subNext=r:n.depsHead=r,r?r.subPrev=t:n.depsTail=t}var ee=null,ft=null,ce=0,le=[],Q=new Set,lo=[];function uo(e){try{e()}catch(n){let t=e;P(n,{phase:t._errorPhase??"effect",name:t.__name,node:t._errorNode})}}function fo(e){let n=e.depsHead??null;if(n===null)return!0;for(;n!==null;){let t=n.sig;if(t===null)return!0;if(t._d===!0&&t._validate!==void 0)try{t._validate()}catch{return!0}if(n.depVersion!==t.__v)return!0;n=n.subNext}return!1}var We=0,mt=!1;function gt(){We===0&&(ft=ee,ee=null,mt=!0),We++}function bt(){We--,We===0&&(ee=ft,ft=null,mt=!1)}function fn(){return mt}function pn(e){gt();try{return e()}finally{bt()}}var po=0;function ht(e,n){let t=ee;ee=n;let r=n,o=++po;r._epoch=o,r._structDirty=!1;for(let i=r.depsHead??null;i!==null;i=i.subNext){let s=i.sig;i.prevActive=s.__activeNode??null,s.__activeNode=i}try{e()}finally{ee=t;let i=r.depsHead??null;for(;i!==null;){let s=i.subNext,a=i.sig;a.__activeNode=i.prevActive,i.prevActive=null,i.epoch!==o&&(co(i),dn(i),un(i)),i=s}}}function mn(e,n){if(!n)return yt(e);Te(n);let t=ee;ee=n;try{e()}finally{ee=t;let o=n;for(let i=o.depsHead??null;i!==null;i=i.subNext){let s=i.sig;s.__activeNode=i.prevActive,i.prevActive=null}}let r=n;return r._dispose??(r._dispose=()=>Te(n))}function yt(e,n){let t=()=>{let o=r;if(!(o._disposed||o._reentrant)){o._reentrant=!0;try{ht(e,r)}finally{o._reentrant=!1}}},r=t;r.depsHead=null,r.depsTail=null,r._epoch=0,r._structDirty=!1,r._hasComputedDep=!1,r._runEpoch=0,r._runs=0,r._reentrant=!1,r._disposed=!1,r._errorPhase="binding",r._errorNode=n;try{t()}catch(o){throw r._disposed=!0,r._errorNode=void 0,Te(r),o}return r._dispose??(r._dispose=()=>{r._disposed=!0,r._errorNode=void 0,Te(r)})}function gn(e){if(!ee)return;let n=ee,t=e,r=n._epoch??0,o=t.__activeNode??null;if(o!==null&&o.sub===n){o.epoch=r,o.depVersion=t.__v??Number.NaN;return}t._validate!==void 0&&(n._hasComputedDep=!0);let i=io(e,n,r);i.depVersion=t.__v??Number.NaN,i.prevActive=o,t.__activeNode=i,ao(n,i),so(t,i),n._structDirty=!0}function Te(e){let n=e,t=n.depsHead??null;for(n.depsHead=null,n.depsTail=null;t;){let r=t.subNext;dn(t),un(t),t=r}}var Ke=1e3,Ue=1e6,Je=0,fe=new Set;function bn(e){let n=Ke;return Number.isFinite(e)&&e>0&&(Ke=Math.floor(e)),n}function hn(e){let n=Ue;return Number.isFinite(e)&&e>0&&(Ue=Math.floor(e)),n}function mo(e){let n=e;return n._runEpoch!==Je?(n._runEpoch=Je,n._runs=1,!1):(n._runs=(n._runs??0)+1,n._runs>Ke)}function go(e){let n=e.__name??"<unnamed>";P(new Error(`subscriber "${n}" fired more than ${Ke} times \u2014 likely a write-reads-self cycle between effects/signals. This subscriber is quarantined for the rest of this update; other pending work still runs.`),{phase:"scheduler",name:n})}function bo(){P(new Error(`Notification drain exceeded ${Ue} iterations \u2014 absolute safety net tripped. Breaking to prevent infinite loop.`),{phase:"scheduler"})}function yn(){let e=0;for(;e<le.length;){if(e>=Ue){bo();break}let n=le[e++];if(Q.delete(n),!(fe.size>0&&fe.has(n))&&!(n._hasComputedDep===!0&&!fo(n))){if(mo(n)){go(n),fe.add(n);continue}uo(n)}}}function vn(){if(!(ce>0)){ce++,Je++;try{yn()}finally{ce--,ce===0&&(le.length=0,Q.clear(),fe.size>0&&fe.clear())}}}function pt(e){e();let n=e._sig;if(!n)return;let t=lo,r=t.length;for(t.push(n);t.length>r;){let i=t.pop().subsHead??null;for(;i;){let s=i.sub;if(s)if(s._c){let a=s._sig;a?a._d||(a._d=!0,t.push(a)):s()}else Q.has(s)||(Q.add(s),le.push(s));i=i.sigNext}}}function xn(e){let t=e.subsHead??null;for(;t;){let r=t.sub;r&&(r._c?pt(r):Q.has(r)||(Q.add(r),le.push(r))),t=t.sigNext}}function Sn(e){let t=e.subsHead;if(t){if(ce>0){let r=t;for(;r;){let o=r.sub;o&&(o._c?pt(o):Q.has(o)||(Q.add(o),le.push(o))),r=r.sigNext}return}ce++,Je++;try{let r=t;for(;r;){let o=r.sub;o&&(o._c?pt(o):Q.has(o)||(Q.add(o),le.push(o))),r=r.sigNext}yn()}finally{ce--,ce===0&&(le.length=0,Q.clear(),fe.size>0&&fe.clear())}}}function Tn(e){return e.__sc??0}function En(e){let n=e,t=[],r=n.depsHead??null;for(;r;)r.sig&&t.push(r.sig),r=r.subNext;return t}function wn(e,n){let t=e.subsHead??null;for(;t;){let r=t.sub;r&&n(r),t=t.sigNext}}var kn="4.4.0",_n=Symbol.for("sibujs.reactive.v1");function yo(){let e=globalThis,n=e[_n];if(n)return!1,n;let t={suspendTracking:gt,resumeTracking:bt,isTrackingSuspended:fn,untracked:pn,retrack:ht,track:mn,reactiveBinding:yt,recordDependency:gn,cleanup:Te,setMaxSubscriberRepeats:bn,setMaxDrainIterations:hn,drainNotificationQueue:vn,queueSignalNotification:xn,notifySubscribers:Sn,getSubscriberCount:Tn,getSubscriberDeps:En,forEachSubscriber:wn,version:kn};return e[_n]=t,t}var q=yo(),Re=q.suspendTracking,Me=q.resumeTracking,An=q.isTrackingSuspended,Pe=q.untracked,ue=q.retrack,K=q.track,Z=q.reactiveBinding,Ee=q.recordDependency,Cn=q.cleanup,Yc=q.setMaxSubscriberRepeats,Ln=q.setMaxDrainIterations,Nn=q.drainNotificationQueue,Rn=q.queueSignalNotification,we=q.notifySubscribers,Zc=q.getSubscriberCount,Xc=q.getSubscriberDeps,Qc=q.forEachSubscriber;function Ge(e,n,t){if(Se(n))return X(e,n,"",{label:`bindAttribute("${n}")`}),()=>{};function r(){let o;try{o=t()}catch(i){P(i,{phase:"binding",name:`bindAttribute("${n}")`,node:e});return}X(e,n,o,{label:`bindAttribute("${n}")`})}return Z(r,e)}function Mn(e,n,t){let r=null;function o(){let s;try{s=typeof n=="function"?n():n}catch(c){P(c,{phase:"binding",name:"bindDynamic (name getter)",node:e});return}let a;try{a=typeof t=="function"?t():t}catch(c){P(c,{phase:"binding",name:"bindDynamic (value getter)",node:e});return}r!==null&&r!==s&&(e.removeAttribute(r),r=null),X(e,s,a,{label:"bindDynamic"})&&(r=s)}let i=Z(o,e);return()=>{i(),r!==null&&e.removeAttribute(r)}}var vt=["data-focus-key","id","name"],vo=new Set(["text","search","url","tel","password",""]);function xo(e){let n=e.tagName;if(!(n==="TEXTAREA"||n==="INPUT"&&vo.has(e.type.toLowerCase())))return{start:null,end:null,direction:null};let r=e;return{start:r.selectionStart,end:r.selectionEnd,direction:r.selectionDirection}}function He(e){if(e.length===0||typeof document>"u")return null;let n=document.activeElement;if(!n||n===document.body)return null;let t=!1;for(let i=0;i<e.length;i++){let s=e[i];if(s===n||s.nodeType===1&&s.contains(n)){t=!0;break}}if(!t)return null;let r=null,o=null;for(let i=0;i<vt.length;i++){let s=n.getAttribute(vt[i]);if(s){r=vt[i],o=s;break}}return{el:n,attr:r,value:o,tag:n.tagName,...xo(n)}}function So(e){return`"${e.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}"`}function To(e,n){let t=null,r=0;for(let o=0;o<e.length;o++){let i=e[o];if(i.nodeType!==1)continue;let s=i;s.matches(n)&&(r++,t??(t=s));let a=s.querySelectorAll(n);for(let c=0;c<a.length;c++)r++,t??(t=a[c]);if(r>1)return{el:null,count:r}}return r===1?{el:t,count:r}:{el:null,count:r}}function Pn(e,n){if(e.focus(),n.start!==null&&typeof e.setSelectionRange=="function"){let t=e,r=t.value.length,o=Math.min(n.start,r),i=Math.min(n.end??o,r);t.setSelectionRange(o,i,n.direction??"none")}}function ke(e,n,t){if(!e||typeof document>"u")return;let r=document.activeElement;if(r===e.el||r&&r!==document.body&&r!==document.documentElement)return;if(e.el.isConnected){Pn(e.el,e);return}let o=!1;if(e.attr&&e.value){let{el:i,count:s}=To(n,`[${e.attr}=${So(e.value)}]`);if(i&&i.tagName===e.tag){Pn(i,e);return}o=s>1}}function pe(e,n){let t=[];function r(){let o;try{o=n()}catch(l){P(l,{phase:"binding",name:"bindChildNode",node:e});return}let i=He(t);if(o==null||typeof o=="boolean"){for(let l=0;l<t.length;l++){let p=t[l];I(p),p.parentNode&&p.parentNode.removeChild(p)}t.length=0,ke(i,t,"bindChildNode");return}let s=e.parentNode;if(!s){t.length=0;return}let a;if(Array.isArray(o)){a=[];let l=new Set;for(let p=0;p<o.length;p++){let g=o[p];if(g==null||typeof g=="boolean")continue;let f=g instanceof Node?g:document.createTextNode(String(g));if(l.has(f)){!1;continue}l.add(f),a.push(f)}}else a=[o instanceof Node?o:document.createTextNode(String(o))];let c;if(t.length>0&&a.length>0){let l=new Set(t);c=new Set;for(let p=0;p<a.length;p++)l.has(a[p])&&c.add(a[p])}for(let l=0;l<t.length;l++){let p=t[l];c?.has(p)||(I(p),p.parentNode&&p.parentNode.removeChild(p))}let u=e;for(let l=0;l<a.length;l++){let p=a[l];u.nextSibling!==p&&s.insertBefore(p,u.nextSibling),u=p}t=a,ke(i,a,"bindChildNode")}return Z(r,e)}var $="http://www.w3.org/2000/svg",Eo=new Set(["script","iframe","object","embed","frame","frameset"]);function wo(e){return Eo.has(e.toLowerCase())}var ko=new Set(["config","location","history","document","window","navigator","name","top","parent","self","frames"]);var xt=new Set,Hn=100,$n=!1,Dn=new Map;function _o(e){let n=Dn.get(e);return n!==void 0||(n=e.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`),Dn.set(e,n)),n}function Ao(e,n){if(typeof n=="function"){let r=Z(()=>{e.setAttribute("style",qe(String(n()),{element:e}))},e);_(e,r);return}if(typeof n=="string"){e.setAttribute("style",qe(n,{element:e}));return}let t=e;for(let r in n){let o=n[r],i=_o(r);if(typeof o=="function"){let s=o,a=Z(()=>{t.style.setProperty(i,ze(String(s()),{property:i,element:e}))},e);_(e,a)}else t.style.setProperty(i,ze(String(o),{property:i,element:e}))}}function Co(e,n){if(typeof n=="string"){e.setAttribute("class",n);return}if(typeof n=="function"){let i=Z(()=>{e.setAttribute("class",n())},e);_(e,i);return}let t=n,r=!1,o="";for(let i in t){let s=t[i];if(typeof s=="function"){r=!0;break}s&&(o=o?`${o} ${i}`:i)}if(r){let s=Z(()=>{let a="";for(let c in t){let u=t[c];(typeof u=="function"?u():u)&&(a=a?`${a} ${c}`:c)}e.setAttribute("class",a)},e);_(e,s)}else e.setAttribute("class",o)}function St(e,n){if(typeof n=="string"){e.textContent=n;return}if(typeof n=="number"){e.textContent=String(n);return}if(!(typeof n=="boolean"||n==null)){if(typeof n=="function"){let t=document.createComment("");e.appendChild(t),_(e,pe(t,n));return}if(n instanceof Node){e.appendChild(n);return}if(Array.isArray(n))for(let t=0;t<n.length;t++){let r=n[t];if(typeof r=="function"){let o=document.createComment("");e.appendChild(o),_(e,pe(o,r))}else if(r instanceof Node)e.appendChild(r);else if(Array.isArray(r))for(let o=0;o<r.length;o++){let i=r[o];if(typeof i=="function"){let s=document.createComment("");e.appendChild(s),_(e,pe(s,i))}else i instanceof Node?e.appendChild(i):i!=null&&typeof i!="boolean"&&e.appendChild(document.createTextNode(String(i)))}else r!=null&&typeof r!="boolean"&&e.appendChild(document.createTextNode(String(r)))}}}var d=(e,n)=>{let t=wo(e);return(r,o)=>{if(t)throw new Error(`tagFactory: refusing to create <${e}> \u2014 tag is blocked for security reasons.`);let i=n?document.createElementNS(n,e):document.createElement(e);if(r===void 0)return i;if(typeof r=="string")return o!==void 0?(i.setAttribute("class",r),St(i,o),i):(i.textContent=r,i);if(typeof r=="number")return i.textContent=String(r),i;if(Array.isArray(r)||r instanceof Node||typeof r=="function")return St(i,r),i;let s=r,a=s.class;a!=null&&Co(i,a);let c=s.id;c!=null&&(!1,i.id=c);let u=o!==void 0?o:s.nodes;u!=null&&St(i,u);let l=s.on;if(l)for(let f in l){let m=l[f];typeof m=="function"?i.addEventListener(f,m):!1}let p=s.style;p!=null&&Ao(i,p);let g=s.ref;g&&(g.current=i);for(let f in s)switch(f){case"class":case"id":case"nodes":case"on":case"style":case"ref":case"onElement":continue;default:{let m=s[f];if(m==null||Se(f))continue;typeof m=="function"?_(i,Ge(i,f,m)):X(i,f,m,{syncValueProperty:!1,label:"tagFactory"})}}return s.onElement&&typeof s.onElement=="function"&&s.onElement(i),i}};var xl=d("html"),Lo=d("head"),No=d("body"),Ro=d("title"),R=d("div"),O=d("span"),Mo=d("section"),Po=d("article"),Ho=d("header"),$o=d("footer"),Do=d("nav"),Io=d("main"),Oo=d("aside"),Bo=d("address"),Tt=d("p"),Vo=d("h1"),Fo=d("h2"),Et=d("h3"),jo=d("h4"),zo=d("h5"),qo=d("h6"),Wo=d("blockquote"),Ko=d("dd"),Uo=d("dl"),Jo=d("dt"),Go=d("figcaption"),Yo=d("figure"),Zo=d("hr"),Xo=d("li"),Qo=d("ol"),ei=d("ul"),wt=d("pre"),ti=d("a"),ni=d("abbr"),ri=d("b"),oi=d("bdi"),ii=d("bdo"),si=d("br"),ai=d("cite"),kt=d("code"),ci=d("data"),li=d("dfn"),ui=d("em"),di=d("i"),fi=d("kbd"),pi=d("mark"),mi=d("q"),gi=d("rp"),bi=d("rt"),hi=d("ruby"),yi=d("s"),vi=d("samp"),xi=d("small"),Si=d("strong"),Ti=d("sub"),Ei=d("sup"),wi=d("time"),ki=d("u"),_i=d("var"),Ai=d("area"),Ci=d("audio"),Li=d("img"),Ni=d("map"),Ri=d("track"),Mi=d("video"),Pi=d("embed"),Hi=d("iframe"),$i=d("object"),Di=d("param"),Ii=d("picture"),Oi=d("portal"),Bi=d("source"),Vi=d("svg",$),Fi=d("math"),ji=d("canvas"),zi=d("noscript"),qi=d("script"),Wi=d("del"),Ki=d("ins"),Ui=d("caption"),Ji=d("col"),Gi=d("colgroup"),Yi=d("table"),Zi=d("tbody"),Xi=d("td"),Qi=d("tfoot"),es=d("th"),ts=d("thead"),ns=d("tr"),$e=d("button"),rs=d("datalist"),os=d("fieldset"),is=d("form"),ss=d("input"),as=d("label"),cs=d("legend"),ls=d("meter"),us=d("optgroup"),ds=d("option"),fs=d("output"),ps=d("progress"),ms=d("select"),gs=d("textarea"),bs=d("details"),hs=d("dialog"),ys=d("menu"),vs=d("summary"),xs=d("slot"),Ss=d("template"),Ts=d("base"),Es=d("link"),ws=d("meta"),me=d("style"),ks=d("circle",$),_s=d("ellipse",$),As=d("g",$),Cs=d("line",$),Ls=d("path",$),Ns=d("polygon",$),Rs=d("polyline",$),Ms=d("rect",$),Ps=d("text",$),Hs=d("tspan",$),$s=d("defs",$),Ds=d("clipPath",$),Is=d("mask",$),Os=d("pattern",$),Bs=d("linearGradient",$),Vs=d("radialGradient",$),Fs=d("stop",$),js=d("use",$),zs=d("symbol",$),qs=d("marker",$),Ws=d("center"),Ks=d("font"),Us=d("marquee"),Js=e=>d(e);var _t="__sibuPendingError";function In(e,n){let t=()=>e.parentNode?(P(n,{phase:"render",name:"lazy",node:e}),!0):!1;t()||queueMicrotask(()=>{t()||(e[_t]=n)})}function Ye(e){let n=e,t=n[_t];if(t instanceof Error)return delete n[_t],t}function On(e){let n=null;return function(){if(n)return n();let r=R({class:"sibu-lazy"}),o=!1;return e().then(i=>{if(o)return;n=i.default;let s=n();Y(r,s)}).catch(i=>{if(o)return;let s=i instanceof Error?i:new Error(String(i));Y(r,R({class:"sibu-lazy-error"},`Failed to load component: ${s.message}`)),In(r,s)}),r.appendChild(O("sibu-lazy-loading","Loading...")),_(r,()=>{o=!0}),r}}function Bn({nodes:e,fallback:n}){let t=R({class:"sibu-suspense"}),r=n();t.appendChild(r);let o=!1,i=null,s=null;return _(t,()=>{o=!0,i&&(i.disconnect(),i=null),s&&!t.contains(s)&&I(s)}),queueMicrotask(()=>{if(!o)try{let a=e();if(s=a,a.classList.contains("sibu-lazy")){if(!a.querySelector(".sibu-lazy-loading")){Y(t,a);return}i=new MutationObserver(()=>{if(o)return;a.querySelector(".sibu-lazy-loading")||(i?.disconnect(),i=null,Y(t,a))}),i.observe(a,{childList:!0,subtree:!0})}else Y(t,a)}catch(a){let c=a instanceof Error?a:new Error(String(a));In(t,c)}}),t}function Nt(e,n){try{return e()}catch(t){let r=n.toLowerCase().includes("unmount")?"cleanup":"effect";P(t,{phase:r,name:n});return}}function At(e,n,t){let r=Nt(e,n);typeof r=="function"&&t&&_(t,r)}var _e=new WeakMap,ge=new WeakMap,ie=new Set,se=new Set,Ae=null,Ze=0,Gs=256;function Ct(e){let n=_e.get(e);if(n){_e.delete(e),ie.delete(e);for(let t of n)try{t()}catch{}}}function Lt(e){ge.get(e)&&queueMicrotask(()=>{if(e.isConnected)return;let t=ge.get(e);if(t){ge.delete(e),se.delete(e);for(let r of t)try{r()}catch{}}})}function Ys(e){if(ie.size===0||e.nodeType!==1)return;let n=e;if(ie.has(n)&&n.isConnected&&Ct(n),n.firstElementChild)for(let t of Array.from(ie))t!==n&&t.isConnected&&n.contains(t)&&Ct(t)}function Zs(e){if(se.size===0||e.nodeType!==1)return;let n=e;if(se.has(n)&&!n.isConnected&&Lt(n),n.firstElementChild)for(let t of Array.from(se))t!==n&&!t.isConnected&&n.contains(t)&&Lt(t)}function Xs(){if(ie.size>0)for(let e of Array.from(ie))e.isConnected&&Ct(e);if(se.size>0)for(let e of Array.from(se))e.isConnected||Lt(e)}function Vn(){Ae||typeof document>"u"||(Ae=new MutationObserver(e=>{for(let n of e)if(n.type==="childList"){if(n.addedNodes.length>0)for(let t=0;t<n.addedNodes.length;t++)Ys(n.addedNodes[t]);if(n.removedNodes.length>0)for(let t=0;t<n.removedNodes.length;t++)Zs(n.removedNodes[t])}Ze+=e.length,Ze>=Gs&&(Ze=0,Xs()),Rt()}),Ae.observe(document.body,{childList:!0,subtree:!0}))}function Rt(){Ae&&ie.size===0&&se.size===0&&(Ae.disconnect(),Ae=null,Ze=0)}function Qs(e,n){let t=_e.get(e);return t||(t=[],_e.set(e,t)),t.push(n),ie.add(e),Vn(),()=>{let r=_e.get(e);if(r){let o=r.indexOf(n);o!==-1&&r.splice(o,1),r.length===0&&(_e.delete(e),ie.delete(e))}Rt()}}function ea(e,n){let t=ge.get(e);return t||(t=[],ge.set(e,t)),t.push(n),se.add(e),Vn(),()=>{let r=ge.get(e);if(r){let o=r.indexOf(n);o!==-1&&r.splice(o,1),r.length===0&&(ge.delete(e),se.delete(e))}Rt()}}function Xe(e,n){if(!(typeof document>"u"))if(n){let t=!1;if(_(n,()=>{t=!0}),n.isConnected){queueMicrotask(()=>{t||At(e,"onMount",n)});return}queueMicrotask(()=>{if(t)return;if(n.isConnected){At(e,"onMount",n);return}let r=Qs(n,()=>{t||At(e,"onMount",n)});_(n,r)})}else queueMicrotask(()=>{Nt(e,"onMount")})}function ta(e,n){if(typeof document>"u")return;let t=!1,r=()=>{t||(t=!0,Nt(e,"onUnmount"))};_(n,r);let o=()=>{if(t)return;let i=ea(n,r);_(n,i)};n.isConnected?o():Xe(()=>{o()},n)}function na(e,n){_(n,e)}var Mt=Symbol.for("sibujs.ssr.v1");function ra(){let e=null;try{if(typeof process<"u"&&process.versions&&process.versions.node){let n=null,t=process.getBuiltinModule;typeof t=="function"?n=t("node:async_hooks"):typeof it=="function"&&(n=it("async_hooks")),n&&(e=new n.AsyncLocalStorage)}}catch{e=null}return{als:e,fallbackStore:{ssr:!1,suspenseIdCounter:0,locale:void 0},fallbackDepth:0}}var be=globalThis[Mt]??(globalThis[Mt]=ra()),De=be.als,re=be.fallbackStore;be.fallbackDepth??(be.fallbackDepth=0);var Fn=!1;function oa(){if(Fn||De||!(typeof process<"u"&&!!process.versions?.node))return;Fn=!0;let n=process.versions.node;`${n}`}function he(){if(De){let e=De.getStore();if(e)return e}return re}function te(){return he().ssr}function jn(e){if(!te())return null;let n=he(),t=n.caches??(n.caches=new Map),r=t.get(e);return r||(r=new Map,t.set(e,r)),r}function zn(){he().ssr=!0}function qn(){he().ssr=!1}function Wn(e){let n={ssr:!0,suspenseIdCounter:0,locale:void 0};if(De)return De.run(n,e);oa();let t=re.ssr,r=re.suspenseIdCounter,o=re.locale;re.ssr=!0,re.suspenseIdCounter=0,re.locale=void 0,be.fallbackDepth++;try{return e()}finally{be.fallbackDepth--,re.ssr=t,re.suspenseIdCounter=r,re.locale=o}}function Kn(e){let n=he(),t=n.ssr;n.ssr=!0;try{return e()}finally{t||(n.ssr=!1)}}var Gn=globalThis;function ia(e,n){let t,r=!0;return()=>{let o=e();if(r)r=!1,t=o,Pe(()=>n(o,void 0));else{let i=t;t=o,Pe(()=>n(o,i))}}}var Un=100;function Pt(e){let n=e.userCleanups;if(n.length!==0){e.userCleanups=[];for(let t=n.length-1;t>=0;t--)try{n[t]()}catch(r){P(r,{phase:"cleanup"})}}}function Jn(e){let n=1;do e.rerunPending=!1,e.userCleanups.length>0&&Pt(e),ue(e.bodyFn,e.subscriber);while(e.rerunPending&&++n<=Un);e.rerunPending&&(e.rerunPending=!1,P(new Error(`effect re-requested itself ${Un}+ times \u2014 likely a write-reads-self cycle. Breaking to prevent infinite loop.`),{phase:"effect"}))}function sa(e){if(e.disposed)return;e.disposed=!0;let n=Gn.__SIBU_DEVTOOLS_GLOBAL_HOOK__;if(n)try{n.emit("effect:destroy",{effectFn:e.fn})}catch{}try{e.userCleanups.length>0&&Pt(e)}catch(t){typeof console<"u"&&console.warn("[SibuJS effect] onCleanup threw during dispose:",t)}try{Cn(e.subscriber)}catch(t){typeof console<"u"&&console.warn("[SibuJS effect] dispose threw:",t)}}function J(e,n){if(te())return()=>{};let t={fn:e,onError:n?.onError,userCleanups:[],running:!1,rerunPending:!1,disposed:!1,onCleanup:null,subscriber:null,bodyFn:null};t.onCleanup=s=>{t.userCleanups.push(s)};let r=t.onError;t.bodyFn=r?()=>{try{t.fn(t.onCleanup)}catch(s){r(s)}}:()=>{t.fn(t.onCleanup)};let o=(()=>{if(!t.disposed){if(t.running){t.rerunPending=!0;return}t.running=!0;try{t.rerunPending=!1,t.userCleanups.length>0&&Pt(t),ue(t.bodyFn,o),t.rerunPending&&Jn(t)}finally{t.running=!1,t.rerunPending=!1}}});o.depsHead=null,o.depsTail=null,o._epoch=0,o._structDirty=!1,o._hasComputedDep=!1,o._errorPhase="effect",o._runEpoch=0,o._runs=0,t.subscriber=o,t.running=!0;try{ue(t.bodyFn,t.subscriber),t.rerunPending&&Jn(t)}finally{t.running=!1,t.rerunPending=!1}let i=Gn.__SIBU_DEVTOOLS_GLOBAL_HOOK__;return i&&i.emit("effect:create",{effectFn:e}),()=>sa(t)}var Ie=0,Ht=new Set;function aa(e){Ie++;try{return e()}finally{Ie--,Ie===0&&ua()}}function ca(e){return Ie===0?!1:(Ht.add(e),!0)}function la(){return Ie>0}function ua(){try{for(let e of Ht)Rn(e)}finally{Ht.clear()}Nn()}var Yn=Symbol.for("sibujs.reactive.batch.v1");function da(){let e=globalThis,n=e[Yn];if(n)return n;let t={batch:aa,enqueueBatchedSignal:ca,isBatching:la};return e[Yn]=t,t}var $t=da(),j=$t.batch,ye=$t.enqueueBatchedSignal,fa=$t.isBatching;var Dt=globalThis;function C(e,n){let t={value:e,__v:0,__sc:0,subsHead:null,subsTail:null,__activeNode:null,__name:void 0,_d:!1,_validate:void 0},r=void 0,o=n?.equals;r&&(t.__name=r);function i(){return Ee(t),t.value}i.__signal=t,r&&(i.__name=r);let s;if(o?s=a=>{let c=t.value,u=typeof a=="function"?a(c):a;if(!o(c,u)){if(t.value=u,t.__v++,!1){let l=Dt.__SIBU_DEVTOOLS_GLOBAL_HOOK__;l&&l.emit("signal:update",{signal:t,name:r,oldValue:c,newValue:u})}ye(t)||we(t)}}:s=a=>{let c=t.value,u=typeof a=="function"?a(c):a;Object.is(u,c)||(t.value=u,t.__v++,ye(t)||we(t))},!1){let a=Dt.__SIBU_DEVTOOLS_GLOBAL_HOOK__;a&&a.emit("signal:create",{signal:t,name:r,getter:i,initial:e})}return[i,s]}function pa(e){let[n,t]=C(0,e?.name?{name:e.name}:void 0);return{track(){n()},invalidate(){t(r=>r+1)}}}var ma=`
|
|
4
|
+
`?2:1;continue}if(un(o)){let i="",s=t+1;for(;s<e.length&&i.length<6&&un(e[s]);)i+=e[s],s++;s<e.length&&co(e[s])&&(s+=e[s]==="\r"&&e[s+1]===`
|
|
5
|
+
`?2:1);let a=Number.parseInt(i,16),c=a===0||a>1114111||a>=55296&&a<=57343;n+=c?"\uFFFD":String.fromCodePoint(a),t=s-1;continue}n+=o,t+=1}return n}var ln=["url(","expression(","javascript:","vbscript:","-moz-binding","behavior:","@import","image-set(","filter:progid"];function lo(e){if(!e)return"an element";let n=e.tagName.toLowerCase(),t=e.getAttribute("id");t&&(n+=`#${t}`);let r=e.getAttribute("class");return r&&(n+=`.${r.trim().split(/\s+/).slice(0,3).join(".")}`),`<${n}>`}var gt=new Set,dn=100,fn=!1;function mn(e,n,t){}function bt(e){if(!ao.test(e))return-1;let t=(e.includes("\\")?uo(e):e).toLowerCase().replace(/\s+/g,"");for(let r=0;r<ln.length;r++)if(t.includes(ln[r]))return r;return-1}function Ye(e,n){let t=bt(e);return t===-1?e:(mn(e,t,n),"")}function Ze(e,n){let t=String(e);if(t.trim()==="")return"";if(typeof document>"u")return Ye(t,n)===""?"":t;let r=document.createElement("div");try{r.style.cssText=t}catch{return""}let o=[];for(let i=0;i<r.style.length;i++){let s=r.style[i],a=r.style.getPropertyValue(s),c=bt(a);if(c===-1&&(c=bt(`${s}:${a}`)),c!==-1){mn(a,c,{property:s,element:n?.element});continue}let d=r.style.getPropertyPriority(s);o.push(`${s}: ${a}${d?` !${d}`:""}`)}return o.join("; ")}var fo=new Set(["href","xlink:href","src","action","formaction","formtarget","cite","poster","background","srcset","ping","data","manifest"]),po=new Set(["srcdoc"]);function gn(e){return po.has(e.toLowerCase())}function bn(e,n,t){let r=e.toLowerCase();return r==="srcset"?so(n):fo.has(r)?pn(n):r==="style"?Ze(n,t):n}var mo="http://www.w3.org/1999/xhtml",go="http://www.w3.org/2000/svg",bo="http://www.w3.org/1999/xlink",ho="http://www.w3.org/XML/1998/namespace",yo=new Set(["checked","disabled","selected"]);function vo(e){return e.namespaceURI===null||e.namespaceURI===mo}function hn(e,n,t){e[n]=t}function So(e,n){if(e.namespaceURI!==go)return null;let t=n.toLowerCase();return t.startsWith("xlink:")?bo:t.startsWith("xml:")?ho:null}function ee(e,n,t,r={}){let o=So(e,n),i=o?n.slice(n.indexOf(":")+1):n;if(Ne(n))return!1,o?e.removeAttributeNS(o,i):e.removeAttribute(n),!1;if(t==null)return o?e.removeAttributeNS(o,i):e.removeAttribute(n),!0;if(gn(n))return!1,o?e.removeAttributeNS(o,i):e.removeAttribute(n),!1;let s=vo(e),a=s?n.toLowerCase():n;if(typeof t=="boolean"){if(n.length>5&&n.slice(0,5).toLowerCase()==="aria-"){let y=t?"true":"false";return(o?e.getAttributeNS(o,i):e.getAttribute(n))!==y&&(o?e.setAttributeNS(o,n,y):e.setAttribute(n,y)),!0}return s&&yo.has(a)&&a in e?hn(e,a,t):t?o?e.setAttributeNS(o,n,""):e.setAttribute(n,""):o?e.removeAttributeNS(o,i):e.removeAttribute(n),!0}let c=String(t);if(r.syncValueProperty!==!1&&s&&(a==="value"||a==="checked")&&a in e)return hn(e,a,a==="checked"?!!t:c),!0;let d=bn(n,c,{element:e});return(o?e.getAttributeNS(o,i):e.getAttribute(n))===d||(o?e.setAttributeNS(o,n,d):e.setAttribute(n,d)),!0}var xo=4096,ht=[];function To(){return{sig:null,sub:null,epoch:0,depVersion:0,sigPrev:null,sigNext:null,subPrev:null,subNext:null,prevActive:null}}function wo(e,n,t){let r=ht.pop();if(r)return r.sig=e,r.sub=n,r.epoch=t,r;let o=To();return o.sig=e,o.sub=n,o.epoch=t,o}function yn(e){e.sig=null,e.sub=null,e.sigPrev=null,e.sigNext=null,e.subPrev=null,e.subNext=null,e.prevActive=null,ht.length<xo&&ht.push(e)}function Eo(e,n){let t=e.subsHead??null;n.sigPrev=null,n.sigNext=t,t?t.sigPrev=n:e.subsTail=n,e.subsHead=n,e.__sc=(e.__sc??0)+1}function vn(e){let n=e.sig;if(!n)return;let t=e.sigPrev,r=e.sigNext;t?t.sigNext=r:n.subsHead=r,r?r.sigPrev=t:n.subsTail=t,n.__sc=(n.__sc??1)-1,n.__activeNode===e&&(n.__activeNode=e.prevActive),n.__sc===0&&(n.subsHead=null,n.subsTail=null)}function ko(e,n){let t=e.depsTail??null;n.subPrev=t,n.subNext=null,t?t.subNext=n:e.depsHead=n,e.depsTail=n}function _o(e){let n=e.sub;if(!n)return;let t=e.subPrev,r=e.subNext;t?t.subNext=r:n.depsHead=r,r?r.subPrev=t:n.depsTail=t}var ne=null,ce=null,fe=0,pe=[],te=new Set,Ao=[];function Co(e){try{e()}catch(n){let t=e;R(n,{phase:t._errorPhase??"effect",name:t.__name,node:t._errorNode})}}function Lo(e){let n=e.depsHead??null;if(n===null)return!0;for(;n!==null;){let t=n.sig;if(t===null)return!0;if(t._d===!0&&t._validate!==void 0)try{t._validate()}catch{return!0}if(n.depVersion!==t.__v)return!0;n=n.subNext}return!1}var se=0,ue=!1;function vt(){se===0&&(ce=ne,ne=null,ue=!0),se++}function St(){se--,se===0&&(ne=ce,ce=null,ue=!1)}function Sn(){return ue}function xn(e){vt();try{return e()}finally{St()}}var No=0;function xt(e,n){let t=ne,r=0,o=null;ue&&(r=se,o=ce,se=0,ce=null,ue=!1),ne=n;let i=n;i._cap===void 0&&(i._cap=on());let s=++No;i._epoch=s,i._structDirty=!1;for(let a=i.depsHead??null;a!==null;a=a.subNext){let c=a.sig;a.prevActive=c.__activeNode??null,c.__activeNode=a}try{e()}finally{ne=t,r!==0&&(se=r,ce=o,ue=!0);let a=i.depsHead??null;for(;a!==null;){let c=a.subNext,d=a.sig;d.__activeNode=a.prevActive,a.prevActive=null,a.epoch!==s&&(_o(a),vn(a),yn(a)),a=c}}}function Tn(e,n){if(!n)return Tt(e);Re(n);let t=ne,r=0,o=null;ue&&(r=se,o=ce,se=0,ce=null,ue=!1),ne=n;try{e()}finally{ne=t,r!==0&&(se=r,ce=o,ue=!0);let s=n;for(let a=s.depsHead??null;a!==null;a=a.subNext){let c=a.sig;c.__activeNode=a.prevActive,a.prevActive=null}}let i=n;return i._dispose??(i._dispose=()=>Re(n))}function Tt(e,n){let t=()=>{let o=r;if(!(o._disposed||o._reentrant)){o._reentrant=!0;try{xt(e,r)}finally{o._reentrant=!1}}},r=t;r.depsHead=null,r.depsTail=null,r._epoch=0,r._structDirty=!1,r._hasComputedDep=!1,r._runEpoch=0,r._runs=0,r._reentrant=!1,r._disposed=!1,r._errorPhase="binding",r._errorNode=n;try{t()}catch(o){throw r._disposed=!0,r._errorNode=void 0,Re(r),o}return r._dispose??(r._dispose=()=>{r._disposed=!0,r._errorNode=void 0,Re(r)})}function wn(e){if(!ne)return;let n=ne,t=e,r=n._epoch??0,o=t.__activeNode??null;if(o!==null&&o.sub===n){o.epoch=r,o.depVersion=t.__v??Number.NaN;return}t._validate!==void 0&&(n._hasComputedDep=!0);let i=wo(e,n,r);i.depVersion=t.__v??Number.NaN,i.prevActive=o,t.__activeNode=i,ko(n,i),Eo(t,i),n._structDirty=!0}function Re(e){let n=e,t=n.depsHead??null;for(n.depsHead=null,n.depsTail=null;t;){let r=t.subNext;vn(t),yn(t),t=r}}var Xe=1e3,Qe=1e6,et=0,ye=new Set;function En(e){let n=Xe;return Number.isFinite(e)&&e>0&&(Xe=Math.floor(e)),n}function kn(e){let n=Qe;return Number.isFinite(e)&&e>0&&(Qe=Math.floor(e)),n}function Ro(e){let n=e;return n._runEpoch!==et?(n._runEpoch=et,n._runs=1,!1):(n._runs=(n._runs??0)+1,n._runs>Xe)}function Mo(e){let n=e.__name??"<unnamed>";R(new Error(`subscriber "${n}" fired more than ${Xe} times \u2014 likely a write-reads-self cycle between effects/signals. This subscriber is quarantined for the rest of this update; other pending work still runs.`),{phase:"scheduler",name:n})}function Po(){R(new Error(`Notification drain exceeded ${Qe} iterations \u2014 absolute safety net tripped. Breaking to prevent infinite loop.`),{phase:"scheduler"})}function _n(){let e=0;for(;e<pe.length;){if(e>=Qe){Po();break}let n=pe[e++];if(te.delete(n),ye.size>0&&ye.has(n)||n._hasComputedDep===!0&&!Lo(n))continue;if(Ro(n)){Mo(n),ye.add(n);continue}let t=sn(n._cap??null);try{Co(n)}finally{t&&an()}}}function An(){if(!(fe>0)){fe++,et++;try{_n()}finally{fe--,fe===0&&(pe.length=0,te.clear(),ye.size>0&&ye.clear())}}}function yt(e){e();let n=e._sig;if(!n)return;let t=Ao,r=t.length;for(t.push(n);t.length>r;){let i=t.pop().subsHead??null;for(;i;){let s=i.sub;if(s)if(s._c){let a=s._sig;a?(!a._d||a._f===!0)&&(a._d=!0,a._f=!1,t.push(a)):s()}else te.has(s)||(te.add(s),pe.push(s));i=i.sigNext}}}function Cn(e){let t=e.subsHead??null;for(;t;){let r=t.sub;r&&(r._c?yt(r):te.has(r)||(te.add(r),pe.push(r))),t=t.sigNext}}function Ln(e){let t=e.subsHead;if(t){if(fe>0){let r=t;for(;r;){let o=r.sub;o&&(o._c?yt(o):te.has(o)||(te.add(o),pe.push(o))),r=r.sigNext}return}fe++,et++;try{let r=t;for(;r;){let o=r.sub;o&&(o._c?yt(o):te.has(o)||(te.add(o),pe.push(o))),r=r.sigNext}_n()}finally{fe--,fe===0&&(pe.length=0,te.clear(),ye.size>0&&ye.clear())}}}function Nn(e){return e.__sc??0}function Rn(e){let n=e,t=[],r=n.depsHead??null;for(;r;)r.sig&&t.push(r.sig),r=r.subNext;return t}function Mn(e,n){let t=e.subsHead??null;for(;t;){let r=t.sub;r&&n(r),t=t.sigNext}}var Pn="4.6.0",Dn=Symbol.for("sibujs.reactive.v1");function Ho(){let e=globalThis,n=e[Dn];if(n)return!1,n;let t={suspendTracking:vt,resumeTracking:St,isTrackingSuspended:Sn,untracked:xn,retrack:xt,track:Tn,reactiveBinding:Tt,recordDependency:wn,cleanup:Re,setMaxSubscriberRepeats:En,setMaxDrainIterations:kn,drainNotificationQueue:An,queueSignalNotification:Cn,notifySubscribers:Ln,getSubscriberCount:Nn,getSubscriberDeps:Rn,forEachSubscriber:Mn,version:Pn};return e[Dn]=t,t}var W=Ho(),ve=W.suspendTracking,Se=W.resumeTracking,Hn=W.isTrackingSuspended,Fe=W.untracked,me=W.retrack,Q=W.track,U=W.reactiveBinding,xe=W.recordDependency,ze=W.cleanup,fu=W.setMaxSubscriberRepeats,$n=W.setMaxDrainIterations,On=W.drainNotificationQueue,In=W.queueSignalNotification,Me=W.notifySubscribers,pu=W.getSubscriberCount,mu=W.getSubscriberDeps,gu=W.forEachSubscriber;function tt(e,n,t){if(Ne(n))return ee(e,n,"",{label:`bindAttribute("${n}")`}),()=>{};function r(){let o;try{o=t()}catch(i){R(i,{phase:"binding",name:`bindAttribute("${n}")`,node:e});return}ee(e,n,o,{label:`bindAttribute("${n}")`})}return U(r,e)}function Bn(e,n,t){let r=null;function o(){let s;try{s=typeof n=="function"?n():n}catch(c){R(c,{phase:"binding",name:"bindDynamic (name getter)",node:e});return}let a;try{a=typeof t=="function"?t():t}catch(c){R(c,{phase:"binding",name:"bindDynamic (value getter)",node:e});return}r!==null&&r!==s&&(e.removeAttribute(r),r=null),ee(e,s,a,{label:"bindDynamic"})&&(r=s)}let i=U(o,e);return()=>{i(),r!==null&&e.removeAttribute(r)}}var wt=["data-focus-key","id","name"],$o=new Set(["text","search","url","tel","password",""]);function Oo(e){let n=e.tagName;if(!(n==="TEXTAREA"||n==="INPUT"&&$o.has(e.type.toLowerCase())))return{start:null,end:null,direction:null};let r=e;return{start:r.selectionStart,end:r.selectionEnd,direction:r.selectionDirection}}function qe(e){if(e.length===0||typeof document>"u")return null;let n=document.activeElement;if(!n||n===document.body)return null;let t=!1;for(let i=0;i<e.length;i++){let s=e[i];if(s===n||s.nodeType===1&&s.contains(n)){t=!0;break}}if(!t)return null;let r=null,o=null;for(let i=0;i<wt.length;i++){let s=n.getAttribute(wt[i]);if(s){r=wt[i],o=s;break}}return{el:n,attr:r,value:o,tag:n.tagName,...Oo(n)}}function Io(e){return`"${e.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}"`}function Bo(e,n){let t=null,r=0;for(let o=0;o<e.length;o++){let i=e[o];if(i.nodeType!==1)continue;let s=i;s.matches(n)&&(r++,t??(t=s));let a=s.querySelectorAll(n);for(let c=0;c<a.length;c++)r++,t??(t=a[c]);if(r>1)return{el:null,count:r}}return r===1?{el:t,count:r}:{el:null,count:r}}function Vn(e,n){if(e.focus(),n.start!==null&&typeof e.setSelectionRange=="function"){let t=e,r=t.value.length,o=Math.min(n.start,r),i=Math.min(n.end??o,r);t.setSelectionRange(o,i,n.direction??"none")}}function Pe(e,n,t){if(!e||typeof document>"u")return;let r=document.activeElement;if(r===e.el||r&&r!==document.body&&r!==document.documentElement)return;if(e.el.isConnected){Vn(e.el,e);return}let o=!1;if(e.attr&&e.value){let{el:i,count:s}=Bo(n,`[${e.attr}=${Io(e.value)}]`);if(i&&i.tagName===e.tag){Vn(i,e);return}o=s>1}}function Te(e,n){let t=[];function r(){let o;try{o=n()}catch(m){R(m,{phase:"binding",name:"bindChildNode",node:e});return}let i=qe(t);if(o==null||typeof o=="boolean"){for(let m=0;m<t.length;m++){let y=t[m];I(y),y.parentNode&&y.parentNode.removeChild(y)}t.length=0,Pe(i,t,"bindChildNode");return}let s=e.parentNode;if(!s){t.length=0;return}let a;if(Array.isArray(o)){a=[];let m=new Set;for(let y=0;y<o.length;y++){let b=o[y];if(b==null||typeof b=="boolean")continue;let p=b instanceof Node?b:document.createTextNode(String(b));if(m.has(p)){!1;continue}m.add(p),a.push(p)}}else a=[o instanceof Node?o:document.createTextNode(String(o))];let c;if(t.length>0&&a.length>0){let m=new Set(t);c=new Set;for(let y=0;y<a.length;y++)m.has(a[y])&&c.add(a[y])}for(let m=0;m<t.length;m++){let y=t[m];c?.has(y)||(I(y),y.parentNode&&y.parentNode.removeChild(y))}let d=e;for(let m=0;m<a.length;m++){let y=a[m];d.nextSibling!==y&&s.insertBefore(y,d.nextSibling),d=y}t=a,Pe(i,a,"bindChildNode")}return U(r,e)}var $="http://www.w3.org/2000/svg",Vo=new Set(["script","iframe","object","embed","frame","frameset"]);function jo(e){return Vo.has(e.toLowerCase())}var Fo=new Set(["config","location","history","document","window","navigator","name","top","parent","self","frames"]);var Et=new Set,jn=100,Fn=!1,zn=new Map;function zo(e){let n=zn.get(e);return n!==void 0||(n=e.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`),zn.set(e,n)),n}function qo(e,n){if(typeof n=="function"){let r=U(()=>{e.setAttribute("style",Ze(String(n()),{element:e}))},e);A(e,r);return}if(typeof n=="string"){e.setAttribute("style",Ze(n,{element:e}));return}let t=e;for(let r in n){let o=n[r],i=zo(r);if(typeof o=="function"){let s=o,a=U(()=>{t.style.setProperty(i,Ye(String(s()),{property:i,element:e}))},e);A(e,a)}else t.style.setProperty(i,Ye(String(o),{property:i,element:e}))}}function Wo(e,n){if(typeof n=="string"){e.setAttribute("class",n);return}if(typeof n=="function"){let i=U(()=>{e.setAttribute("class",n())},e);A(e,i);return}let t=n,r=!1,o="";for(let i in t){let s=t[i];if(typeof s=="function"){r=!0;break}s&&(o=o?`${o} ${i}`:i)}if(r){let s=U(()=>{let a="";for(let c in t){let d=t[c];(typeof d=="function"?d():d)&&(a=a?`${a} ${c}`:c)}e.setAttribute("class",a)},e);A(e,s)}else e.setAttribute("class",o)}function kt(e,n){if(typeof n=="string"){e.textContent=n;return}if(typeof n=="number"){e.textContent=String(n);return}if(!(typeof n=="boolean"||n==null)){if(typeof n=="function"){let t=document.createComment("");e.appendChild(t),A(e,Te(t,n));return}if(n instanceof Node){e.appendChild(n);return}if(Array.isArray(n))for(let t=0;t<n.length;t++){let r=n[t];if(typeof r=="function"){let o=document.createComment("");e.appendChild(o),A(e,Te(o,r))}else if(r instanceof Node)e.appendChild(r);else if(Array.isArray(r))for(let o=0;o<r.length;o++){let i=r[o];if(typeof i=="function"){let s=document.createComment("");e.appendChild(s),A(e,Te(s,i))}else i instanceof Node?e.appendChild(i):i!=null&&typeof i!="boolean"&&e.appendChild(document.createTextNode(String(i)))}else r!=null&&typeof r!="boolean"&&e.appendChild(document.createTextNode(String(r)))}}}var f=(e,n)=>{let t=jo(e);return(r,o)=>{if(t)throw new Error(`tagFactory: refusing to create <${e}> \u2014 tag is blocked for security reasons.`);let i=n?document.createElementNS(n,e):document.createElement(e);if(r===void 0)return i;if(typeof r=="string")return o!==void 0?(i.setAttribute("class",r),kt(i,o),i):(i.textContent=r,i);if(typeof r=="number")return i.textContent=String(r),i;if(Array.isArray(r)||r instanceof Node||typeof r=="function")return kt(i,r),i;let s=r,a=s.class;a!=null&&Wo(i,a);let c=s.id;c!=null&&(!1,i.id=c);let d=o!==void 0?o:s.nodes;d!=null&&kt(i,d);let m=s.on;if(m)for(let p in m){let u=m[p];typeof u=="function"?i.addEventListener(p,u):!1}let y=s.style;y!=null&&qo(i,y);let b=s.ref;b&&(b.current=i);for(let p in s)switch(p){case"class":case"id":case"nodes":case"on":case"style":case"ref":case"onElement":continue;default:{let u=s[p];if(u==null||Ne(p))continue;typeof u=="function"?A(i,tt(i,p,u)):ee(i,p,u,{syncValueProperty:!1,label:"tagFactory"})}}return s.onElement&&typeof s.onElement=="function"&&s.onElement(i),i}};var $u=f("html"),Ko=f("head"),Uo=f("body"),Jo=f("title"),M=f("div"),V=f("span"),Go=f("section"),Yo=f("article"),Zo=f("header"),Xo=f("footer"),Qo=f("nav"),ei=f("main"),ti=f("aside"),ni=f("address"),_t=f("p"),ri=f("h1"),oi=f("h2"),At=f("h3"),ii=f("h4"),si=f("h5"),ai=f("h6"),ci=f("blockquote"),ui=f("dd"),li=f("dl"),di=f("dt"),fi=f("figcaption"),pi=f("figure"),mi=f("hr"),gi=f("li"),bi=f("ol"),hi=f("ul"),Ct=f("pre"),yi=f("a"),vi=f("abbr"),Si=f("b"),xi=f("bdi"),Ti=f("bdo"),wi=f("br"),Ei=f("cite"),Lt=f("code"),ki=f("data"),_i=f("dfn"),Ai=f("em"),Ci=f("i"),Li=f("kbd"),Ni=f("mark"),Ri=f("q"),Mi=f("rp"),Pi=f("rt"),Di=f("ruby"),Hi=f("s"),$i=f("samp"),Oi=f("small"),Ii=f("strong"),Bi=f("sub"),Vi=f("sup"),ji=f("time"),Fi=f("u"),zi=f("var"),qi=f("area"),Wi=f("audio"),Ki=f("img"),Ui=f("map"),Ji=f("track"),Gi=f("video"),Yi=f("embed"),Zi=f("iframe"),Xi=f("object"),Qi=f("param"),es=f("picture"),ts=f("portal"),ns=f("source"),rs=f("svg",$),os=f("math"),is=f("canvas"),ss=f("noscript"),as=f("script"),cs=f("del"),us=f("ins"),ls=f("caption"),ds=f("col"),fs=f("colgroup"),ps=f("table"),ms=f("tbody"),gs=f("td"),bs=f("tfoot"),hs=f("th"),ys=f("thead"),vs=f("tr"),We=f("button"),Ss=f("datalist"),xs=f("fieldset"),Ts=f("form"),ws=f("input"),Es=f("label"),ks=f("legend"),_s=f("meter"),As=f("optgroup"),Cs=f("option"),Ls=f("output"),Ns=f("progress"),Rs=f("select"),Ms=f("textarea"),Ps=f("details"),Ds=f("dialog"),Hs=f("menu"),$s=f("summary"),Os=f("slot"),Is=f("template"),Bs=f("base"),Vs=f("link"),js=f("meta"),we=f("style"),Fs=f("circle",$),zs=f("ellipse",$),qs=f("g",$),Ws=f("line",$),Ks=f("path",$),Us=f("polygon",$),Js=f("polyline",$),Gs=f("rect",$),Ys=f("text",$),Zs=f("tspan",$),Xs=f("defs",$),Qs=f("clipPath",$),ea=f("mask",$),ta=f("pattern",$),na=f("linearGradient",$),ra=f("radialGradient",$),oa=f("stop",$),ia=f("use",$),sa=f("symbol",$),aa=f("marker",$),ca=f("center"),ua=f("font"),la=f("marquee"),da=e=>f(e);var Nt="__sibuPendingError";function qn(e,n){let t=()=>e.parentNode?(R(n,{phase:"render",name:"lazy",node:e}),!0):!1;t()||queueMicrotask(()=>{t()||(e[Nt]=n)})}function nt(e){let n=e,t=n[Nt];if(t instanceof Error)return delete n[Nt],t}function Wn(e){let n=null;return function(){if(n)return n();let r=M({class:"sibu-lazy"}),o=!1;return e().then(i=>{if(o)return;n=i.default;let s=n();Z(r,s)}).catch(i=>{if(o)return;let s=i instanceof Error?i:new Error(String(i));Z(r,M({class:"sibu-lazy-error"},`Failed to load component: ${s.message}`)),qn(r,s)}),r.appendChild(V("sibu-lazy-loading","Loading...")),A(r,()=>{o=!0}),r}}function Kn({nodes:e,fallback:n}){let t=M({class:"sibu-suspense"}),r=n();t.appendChild(r);let o=!1,i=null,s=null;return A(t,()=>{o=!0,i&&(i.disconnect(),i=null),s&&!t.contains(s)&&I(s)}),queueMicrotask(()=>{if(!o)try{let a=e();if(s=a,a.classList.contains("sibu-lazy")){if(!a.querySelector(".sibu-lazy-loading")){Z(t,a);return}i=new MutationObserver(()=>{if(o)return;a.querySelector(".sibu-lazy-loading")||(i?.disconnect(),i=null,Z(t,a))}),i.observe(a,{childList:!0,subtree:!0})}else Z(t,a)}catch(a){let c=a instanceof Error?a:new Error(String(a));qn(t,c)}}),t}function Dt(e,n){try{return e()}catch(t){let r=n.toLowerCase().includes("unmount")?"cleanup":"effect";R(t,{phase:r,name:n});return}}function Rt(e,n,t){let r=Dt(e,n);typeof r=="function"&&t&&A(t,r)}var De=new WeakMap,Ee=new WeakMap,le=new Set,de=new Set,He=null,rt=0,fa=256;function Mt(e){let n=De.get(e);if(n){De.delete(e),le.delete(e);for(let t of n)try{t()}catch{}}}function Pt(e){Ee.get(e)&&queueMicrotask(()=>{if(e.isConnected)return;let t=Ee.get(e);if(t){Ee.delete(e),de.delete(e);for(let r of t)try{r()}catch{}}})}function pa(e){if(le.size===0||e.nodeType!==1)return;let n=e;if(le.has(n)&&n.isConnected&&Mt(n),n.firstElementChild)for(let t of Array.from(le))t!==n&&t.isConnected&&n.contains(t)&&Mt(t)}function ma(e){if(de.size===0||e.nodeType!==1)return;let n=e;if(de.has(n)&&!n.isConnected&&Pt(n),n.firstElementChild)for(let t of Array.from(de))t!==n&&!t.isConnected&&n.contains(t)&&Pt(t)}function ga(){if(le.size>0)for(let e of Array.from(le))e.isConnected&&Mt(e);if(de.size>0)for(let e of Array.from(de))e.isConnected||Pt(e)}function Un(){He||typeof document>"u"||(He=new MutationObserver(e=>{for(let n of e)if(n.type==="childList"){if(n.addedNodes.length>0)for(let t=0;t<n.addedNodes.length;t++)pa(n.addedNodes[t]);if(n.removedNodes.length>0)for(let t=0;t<n.removedNodes.length;t++)ma(n.removedNodes[t])}rt+=e.length,rt>=fa&&(rt=0,ga()),Ht()}),He.observe(document.body,{childList:!0,subtree:!0}))}function Ht(){He&&le.size===0&&de.size===0&&(He.disconnect(),He=null,rt=0)}function ba(e,n){let t=De.get(e);return t||(t=[],De.set(e,t)),t.push(n),le.add(e),Un(),()=>{let r=De.get(e);if(r){let o=r.indexOf(n);o!==-1&&r.splice(o,1),r.length===0&&(De.delete(e),le.delete(e))}Ht()}}function ha(e,n){let t=Ee.get(e);return t||(t=[],Ee.set(e,t)),t.push(n),de.add(e),Un(),()=>{let r=Ee.get(e);if(r){let o=r.indexOf(n);o!==-1&&r.splice(o,1),r.length===0&&(Ee.delete(e),de.delete(e))}Ht()}}function ot(e,n){if(!(typeof document>"u"))if(n){let t=!1;if(A(n,()=>{t=!0}),n.isConnected){queueMicrotask(()=>{t||Rt(e,"onMount",n)});return}queueMicrotask(()=>{if(t)return;if(n.isConnected){Rt(e,"onMount",n);return}let r=ba(n,()=>{t||Rt(e,"onMount",n)});A(n,r)})}else queueMicrotask(()=>{Dt(e,"onMount")})}function ya(e,n){if(typeof document>"u")return;let t=!1,r=()=>{t||(t=!0,Dt(e,"onUnmount"))};A(n,r);let o=()=>{if(t)return;let i=ha(n,r);A(n,i)};n.isConnected?o():ot(()=>{o()},n)}function va(e,n){A(n,e)}var $t=Symbol.for("sibujs.ssr.v1");function Sa(){let e=null;try{if(typeof process<"u"&&process.versions&&process.versions.node){let n=null,t=process.getBuiltinModule;typeof t=="function"?n=t("node:async_hooks"):typeof dt=="function"&&(n=dt("async_hooks")),n&&(e=new n.AsyncLocalStorage)}}catch{e=null}return{als:e,fallbackStore:{ssr:!1,suspenseIdCounter:0,locale:void 0},fallbackDepth:0}}var ge=globalThis[$t]??(globalThis[$t]=Sa()),ke=ge.als,G=ge.fallbackStore;ge.fallbackDepth??(ge.fallbackDepth=0);var Jn=!1;function xa(){if(Jn||ke||!(typeof process<"u"&&!!process.versions?.node))return;Jn=!0;let n=process.versions.node;`${n}`}function _e(){if(ke){let e=ke.getStore();if(e)return e}return G}function Gn(){return ke?ke.getStore()??null:ge.fallbackDepth>0?G:null}function re(){return _e().ssr}function Yn(e){if(!re())return null;let n=_e(),t=n.caches??(n.caches=new Map),r=t.get(e);return r||(r=new Map,t.set(e,r)),r}function Zn(){_e().ssr=!0}function Xn(){_e().ssr=!1}function Qn(e){let n={ssr:!0,suspenseIdCounter:0,idCounter:0,locale:void 0};if(ke)return ke.run(n,e);xa();let t=G.ssr,r=G.suspenseIdCounter,o=G.idCounter,i=G.locale;G.ssr=!0,G.suspenseIdCounter=0,G.idCounter=0,G.locale=void 0,ge.fallbackDepth++;try{return e()}finally{ge.fallbackDepth--,G.ssr=t,G.suspenseIdCounter=r,G.idCounter=o,G.locale=i}}function er(e){let n=_e(),t=n.ssr;n.ssr=!0;try{return e()}finally{t||(n.ssr=!1)}}var rr=globalThis;function Ta(e,n){let t,r=!0;return()=>{let o=e();if(r)r=!1,t=o,Fe(()=>n(o,void 0));else{let i=t;t=o,Fe(()=>n(o,i))}}}var tr=100;function Ot(e){let n=e.userCleanups;if(n.length!==0){e.userCleanups=[];for(let t=n.length-1;t>=0;t--)try{n[t]()}catch(r){R(r,{phase:"cleanup"})}}}function nr(e){let n=1;do e.rerunPending=!1,e.userCleanups.length>0&&Ot(e),me(e.bodyFn,e.subscriber);while(e.rerunPending&&++n<=tr);e.rerunPending&&(e.rerunPending=!1,R(new Error(`effect re-requested itself ${tr}+ times \u2014 likely a write-reads-self cycle. Breaking to prevent infinite loop.`),{phase:"effect"}))}function wa(e){if(e.disposed)return;e.disposed=!0;let n=rr.__SIBU_DEVTOOLS_GLOBAL_HOOK__;if(n)try{n.emit("effect:destroy",{effectFn:e.fn})}catch{}try{e.userCleanups.length>0&&Ot(e)}catch(t){typeof console<"u"&&console.warn("[SibuJS effect] onCleanup threw during dispose:",t)}try{ze(e.subscriber)}catch(t){typeof console<"u"&&console.warn("[SibuJS effect] dispose threw:",t)}}function Y(e,n){if(re())return()=>{};let t={fn:e,onError:n?.onError,userCleanups:[],running:!1,rerunPending:!1,disposed:!1,onCleanup:null,subscriber:null,bodyFn:null};t.onCleanup=s=>{t.userCleanups.push(s)};let r=t.onError;t.bodyFn=r?()=>{try{t.fn(t.onCleanup)}catch(s){r(s)}}:()=>{t.fn(t.onCleanup)};let o=(()=>{if(!t.disposed){if(t.running){t.rerunPending=!0;return}t.running=!0;try{t.rerunPending=!1,t.userCleanups.length>0&&Ot(t),me(t.bodyFn,o),t.rerunPending&&nr(t)}finally{t.running=!1,t.rerunPending=!1}}});o.depsHead=null,o.depsTail=null,o._epoch=0,o._structDirty=!1,o._hasComputedDep=!1,o._errorPhase="effect",o._runEpoch=0,o._runs=0,t.subscriber=o,t.running=!0;try{me(t.bodyFn,t.subscriber),t.rerunPending&&nr(t)}finally{t.running=!1,t.rerunPending=!1}let i=rr.__SIBU_DEVTOOLS_GLOBAL_HOOK__;return i&&i.emit("effect:create",{effectFn:e}),()=>wa(t)}var Ke=0,It=new Set;function Ea(e){Ke++;try{return e()}finally{Ke--,Ke===0&&Aa()}}function ka(e){return Ke===0?!1:(It.add(e),!0)}function _a(){return Ke>0}function Aa(){try{for(let e of It)In(e)}finally{It.clear()}On()}var or=Symbol.for("sibujs.reactive.batch.v1");function Ca(){let e=globalThis,n=e[or];if(n)return n;let t={batch:Ea,enqueueBatchedSignal:ka,isBatching:_a};return e[or]=t,t}var Bt=Ca(),j=Bt.batch,Ae=Bt.enqueueBatchedSignal,La=Bt.isBatching;var Vt=globalThis;function L(e,n){let t={value:e,__v:0,__sc:0,subsHead:null,subsTail:null,__activeNode:null,__name:void 0,_d:!1,_validate:void 0},r=void 0,o=n?.equals;r&&(t.__name=r);function i(){return xe(t),t.value}i.__signal=t,r&&(i.__name=r);let s;if(o?s=a=>{let c=t.value,d=typeof a=="function"?a(c):a;if(!o(c,d)){if(t.value=d,t.__v++,!1){let m=Vt.__SIBU_DEVTOOLS_GLOBAL_HOOK__;m&&m.emit("signal:update",{signal:t,name:r,oldValue:c,newValue:d})}Ae(t)||Me(t)}}:s=a=>{let c=t.value,d=typeof a=="function"?a(c):a;Object.is(d,c)||(t.value=d,t.__v++,Ae(t)||Me(t))},!1){let a=Vt.__SIBU_DEVTOOLS_GLOBAL_HOOK__;a&&a.emit("signal:create",{signal:t,name:r,getter:i,initial:e})}return[i,s]}function Na(e){let[n,t]=L(0,e?.name?{name:e.name}:void 0);return{track(){n()},invalidate(){t(r=>r+1)}}}var Ra=`
|
|
6
6
|
.sibu-error-display {
|
|
7
7
|
border: 1px solid var(--sibu-err-border, #e5484d);
|
|
8
8
|
border-radius: 10px;
|
|
@@ -183,11 +183,11 @@
|
|
|
183
183
|
border: 1px solid #3a3a4e;
|
|
184
184
|
}
|
|
185
185
|
.sibu-error-display .sibu-err-btn-reload:hover { background: #2a2b40; }
|
|
186
|
-
`,
|
|
187
|
-
`);for(let r of t){let o=r.trim(),i=o.match(/^at\s+(?:(.+?)\s+\((.+)\)|(.+))$/);if(i){n.push({fn:i[1]||"(anonymous)",loc:i[2]||i[3]||""});continue}let s=o.match(/^(.+?)@(.+)$/);s&&n.push({fn:s[1]||"(anonymous)",loc:s[2]||""})}return n}function
|
|
186
|
+
`,ir=!1;function Ma(){if(ir||typeof document>"u")return;let e=we({nodes:Ra});document.head.appendChild(e),ir=!0}function Pa(e){let n=[],t=e.split(`
|
|
187
|
+
`);for(let r of t){let o=r.trim(),i=o.match(/^at\s+(?:(.+?)\s+\((.+)\)|(.+))$/);if(i){n.push({fn:i[1]||"(anonymous)",loc:i[2]||i[3]||""});continue}let s=o.match(/^(.+?)@(.+)$/);s&&n.push({fn:s[1]||"(anonymous)",loc:s[2]||""})}return n}function sr(e){if(e instanceof Error){let n=e.code??e.name??"ERROR",t=e.message||"Unknown error",r=e.stack??"",o=Pa(r),i=e.cause,s=i!=null?sr(i):null;return{code:n,message:t,stack:r,frames:o,cause:s}}return{code:"NON_ERROR",message:typeof e=="string"?e:JSON.stringify(e),stack:"",frames:[],cause:null}}function Da(e,n,t){let r=[];r.push(t),r.push(`[${e.code}] ${e.message}`),e.stack&&(r.push(""),r.push("Stack Trace:"),r.push(e.stack));let o=e.cause;for(;o;){if(r.push(""),r.push("Caused by:"),r.push(` [${o.code}] ${o.message}`),o.stack){let i=o.stack.split(`
|
|
188
188
|
`).map(s=>` ${s}`).join(`
|
|
189
189
|
`);r.push(i)}o=o.cause}if(n&&Object.keys(n).length>0){r.push(""),r.push("Metadata:");for(let[i,s]of Object.entries(n))r.push(` ${i}: ${String(s)}`)}return r.push(""),r.push("Environment:"),r.push(` Timestamp: ${new Date().toISOString()}`),typeof location<"u"&&r.push(` URL: ${location.href}`),typeof navigator<"u"&&navigator.userAgent&&r.push(` User Agent: ${navigator.userAgent}`),r.join(`
|
|
190
|
-
`)}function
|
|
190
|
+
`)}function ar(e){let n=e.map((t,r)=>M({class:"sibu-err-frame",nodes:[V({class:"sibu-err-line",nodes:String(r+1)}),V({class:"sibu-err-fn",nodes:t.fn}),V({class:"sibu-err-loc",nodes:` \u2014 ${t.loc}`})]}));return Ct({class:"sibu-err-stack",nodes:n})}function cr(e){return e?[M({class:"sibu-err-cause-label",nodes:"Caused by"}),M({class:"sibu-err-section",nodes:[M({class:"sibu-err-section-head",nodes:[V({nodes:`[${e.code}] ${e.message}`}),V({nodes:""})]}),e.frames.length>0?ar(e.frames):M({class:"sibu-err-stack",nodes:"(no stack)"})]}),...cr(e.cause)]:[]}function Ha(e){let n=[];for(let[r,o]of Object.entries(e)){n.push(document.createElement("dt")),n[n.length-1].textContent=r;let i=document.createElement("dd");i.textContent=o==null?"(null)":String(o),n.push(i)}let t=document.createElement("dl");t.className="sibu-err-meta";for(let r of n)t.appendChild(r);return t}function jt(e){Ma();let n=e.severity??"error",t=sr(e.error),r=e.alwaysShowDetails??ie(),o=e.title??t.message,i=new Date().toISOString().replace("T"," ").slice(0,19),[s,a]=L("Copy"),c=We({class:"sibu-err-copy-btn",nodes:()=>s(),on:{click:()=>{let p=Da(t,e.metadata,o);typeof navigator<"u"&&navigator.clipboard&&navigator.clipboard.writeText(p).then(()=>{a("Copied!"),setTimeout(()=>a("Copy"),1500)},()=>{a("Copy failed"),setTimeout(()=>a("Copy"),1500)})}}}),d=M({class:"sibu-err-header",nodes:[Lt({class:"sibu-err-icon",nodes:t.code}),At({class:"sibu-err-title",nodes:o}),c,V({class:"sibu-err-timestamp",nodes:i})]}),m=[_t({class:"sibu-err-message",nodes:t.message})];r&&t.frames.length>0&&m.push(M({class:"sibu-err-section",nodes:[M({class:"sibu-err-section-head",nodes:[V({nodes:"Stack Trace"})]}),ar(t.frames)]})),r&&m.push(...cr(t.cause)),r&&e.metadata&&Object.keys(e.metadata).length>0&&m.push(M({class:"sibu-err-section",nodes:[M({class:"sibu-err-section-head",nodes:[V({nodes:"Metadata"})]}),Ha(e.metadata)]}));let y=[];e.onRetry&&y.push(We({class:"sibu-err-btn sibu-err-btn-retry",nodes:e.retryLabel??"Retry",on:{click:e.onRetry}})),!e.hideReload&&typeof location<"u"&&y.push(We({class:"sibu-err-btn sibu-err-btn-reload",nodes:"Reload Page",on:{click:()=>location.reload()}})),y.length>0&&m.push(M({class:"sibu-err-actions",nodes:y}));let b=M({class:"sibu-err-body",nodes:m});return M({class:"sibu-error-display","data-severity":n,nodes:[d,b]})}var $a=`
|
|
191
191
|
.sibu-error-boundary {
|
|
192
192
|
position: relative;
|
|
193
193
|
}
|
|
@@ -341,7 +341,7 @@
|
|
|
341
341
|
.sibu-error-fallback .sibu-error-btn-reload:hover {
|
|
342
342
|
background: #3a3a4e;
|
|
343
343
|
}
|
|
344
|
-
`,
|
|
344
|
+
`,Oa=Symbol("sibujs.ErrorBoundary.resetKeyThrew"),ur=!1;function Ia(){if(!ur&&typeof document<"u"){let e=we({nodes:$a});document.head.appendChild(e),ur=!0}}function Ba(e,n){let t=typeof e=="function"?e:n,r=typeof e=="function"?{}:e,{fallback:o,onError:i,resetKeys:s}=r;Ia();let[a,c]=L(null),d=()=>{y(),c(null)},m=null,y=()=>{if(!m)return;let v=m;m=null,v()},b=v=>{let x=new Array(v.length);for(let E=0;E<v.length;E++)try{x[E]=v[E]()}catch(P){R(P,{phase:"effect",name:"ErrorBoundary.resetKeys"}),x[E]=Oa}return x},p=()=>{let v=s;if(!v||v.length===0)return;y();let x=null;m=Y(()=>{let E=b(v);if(x===null){x=E;return}let P=E.length!==x.length;if(!P){for(let O=0;O<E.length;O++)if(!Object.is(E[O],x[O])){P=!0;break}}x=E,P&&d()})},u=v=>{let x=pt(v);if(c(x),p(),i)try{i(x)}catch(E){R(E,{phase:"render",name:"ErrorBoundary onError callback"})}return x},l=(v,x)=>jt({error:v,severity:"error",onRetry:x}),g=v=>{let x=o||l;try{return x(v,d)}catch(E){return queueMicrotask(()=>{R(E,{phase:"render",name:"ErrorBoundary fallback",node:h.parentNode?h:void 0})}),document.createComment("error-boundary-failed")}},h=M({class:"sibu-error-boundary",nodes:()=>{let v=a();if(v)return g(v);try{let x=t();if(x&&typeof x.then=="function"){let E=M({class:"sibu-error-async"});E.appendChild(V({class:"sibu-lazy-loading",nodes:"Loading..."}));let P=!1;return A(E,()=>{P=!0}),x.then(O=>{if(P){I(O);return}Z(E,O)}).catch(O=>{if(P)return;let z=u(O);Z(E,g(z))}),E}return x}catch(x){let E=u(x);return g(E)}}}),S=v=>{if(a())return;let E=v.detail?.error;E&&(v.preventDefault(),v.stopPropagation(),u(E))};return h.addEventListener("sibu:error-propagate",S),ot(()=>{let v=document.createTreeWalker(h,NodeFilter.SHOW_ELEMENT),x=[],E=v.currentNode;for(;E;){let P=nt(E);P&&x.push(P),E=v.nextNode()}if(x.length===1)u(x[0]);else if(x.length>1){let P=globalThis.AggregateError;u(P?new P(x,`${x.length} pre-mount errors caught by ErrorBoundary`):new Error(x.map(O=>O.message).join("; ")))}},h),A(h,()=>{y(),h.removeEventListener("sibu:error-propagate",S)}),h}var Va=`
|
|
345
345
|
@keyframes sibu-spin {
|
|
346
346
|
to { transform: rotate(360deg); }
|
|
347
347
|
}
|
|
@@ -394,5 +394,5 @@
|
|
|
394
394
|
.sibu-loading-lg .sibu-loading-spinner { width: 40px; height: 40px; border-width: 4px; }
|
|
395
395
|
.sibu-loading-lg .sibu-loading-dot { width: 12px; height: 12px; }
|
|
396
396
|
.sibu-loading-lg .sibu-loading-dots { gap: 6px; }
|
|
397
|
-
`,
|
|
398
|
-
`||t[r]==="\r");)r++}function s(){if(t.charCodeAt(r)!==0)return-1;let f=r;r++;let m=0;for(;r<o&&t.charCodeAt(r)!==0;)m=m*10+(t.charCodeAt(r)-48),r++;return r<o&&r++,m<0||m>=n?(r=f,-1):m}function a(){let f=r;for(;r<o;){let m=t.charCodeAt(r);if(m>=97&&m<=122||m>=65&&m<=90||m>=48&&m<=57||m===45)r++;else break}return t.slice(f,r)}function c(){if(i(),t[r]!=="=")return{kind:"bool"};r++,i();let f=s();if(f>=0)return{kind:"expr",idx:f};let m=t[r];if(m==='"'||m==="'"){r++;let b=[],h=[],y="";for(;r<o&&t[r]!==m;){let x=s();x>=0?(b.push(y),y="",h.push(x)):y+=t[r++]}return r<o&&r++,b.push(y),h.length===0?{kind:"static",value:b[0]}:{kind:"mixed",statics:b,exprs:h}}{let b=[],h=[],y="";for(;r<o;){let x=t.charCodeAt(r);if(x===32||x===9||x===10||x===13||x===62)break;let v=s();v>=0?(b.push(y),y="",h.push(v)):y+=t[r++]}return b.push(y),h.length===0?{kind:"static",value:b[0]}:{kind:"mixed",statics:b,exprs:h}}}function u(){let f=[];for(;r<o&&(i(),!(t[r]===">"||t[r]==="/"));){let m=r;for(;r<o;){let y=t.charCodeAt(r);if(y>=97&&y<=122||y>=65&&y<=90||y>=48&&y<=57||y===45||y===58||y===95||y===46)r++;else break}let b=t.slice(m,r);if(!b)break;let h=c();b.startsWith("on:")?h.kind==="expr"&&f.push({t:3,name:b.slice(3),idx:h.idx}):h.kind==="bool"?f.push({t:4,name:b}):h.kind==="static"?f.push({t:0,name:b,value:h.value}):h.kind==="expr"?f.push({t:1,name:b,idx:h.idx}):h.kind==="mixed"&&f.push({t:2,name:b,statics:h.statics,exprs:h.exprs})}return f}function l(f){return f.replace(/\s+/g," ")}function p(f){let m="";for(;r<o&&t[r]!=="<";){let h=s();if(h>=0){let y=l(m);y&&f.push({t:1,value:y}),m="",f.push({t:2,idx:h})}else m+=t[r++]}let b=l(m);b&&f.push({t:1,value:b})}function g(){let f=[];for(;r<o&&!(t[r]==="<"&&r+1<o&&t[r+1]==="/");)if(t[r]==="<"){let m=t[r+1];if(m==="!"){if(t.startsWith("<!--",r)){let v=t.indexOf("-->",r+4);r=v===-1?o:v+3}else if(t.startsWith("<![CDATA[",r)){let v=t.indexOf("]]>",r+9);r=v===-1?o:v+3}else{let v=t.indexOf(">",r);r=v===-1?o:v+1}continue}if(m==="?"){let v=t.indexOf(">",r);r=v===-1?o:v+1;continue}if(!(m>="a"&&m<="z")&&!(m>="A"&&m<="Z")){f.push({t:1,value:"<"}),r++;continue}r++;let b=a(),h=u();i();let y=za.has(b),x=t[r]==="/";if(x&&r++,r<o&&r++,y||x)f.push({t:0,el:{tag:b,svg:mr.has(b),attrs:h,children:[]}});else{let v=g();if(ja.has(b.toLowerCase())){for(let k=0;k<v.length;k++)if(v[k].t===2)throw new Error(`html: dynamic \${...} expressions are not allowed inside <${b}> (raw-text context). Build the content separately and append it as a Node.`)}t[r]==="<"&&r+1<o&&t[r+1]==="/"&&(r+=2,a(),i(),r<o&&t[r]===">"&&r++),f.push({t:0,el:{tag:b,svg:mr.has(b),attrs:h,children:v}})}}else p(f);return f}return g()}function jt(e,n){let t=e.svg?document.createElementNS($,e.tag):document.createElement(e.tag);for(let r=0;r<e.attrs.length;r++){let o=e.attrs[r];switch(o.t){case 0:t.setAttribute(o.name,o.value);break;case 1:{let i=o.name,s=n[o.idx];typeof s=="function"?_(t,Ge(t,i,s)):X(t,i,s,{syncValueProperty:!1,label:"html"});break}case 2:{let i=o.statics[0];for(let s=0;s<o.exprs.length;s++){let a=n[o.exprs[s]];i+=(a==null?"":String(a))+o.statics[s+1]}X(t,o.name,i,{syncValueProperty:!1,label:"html"});break}case 3:{let i=n[o.idx];typeof i=="function"?t.addEventListener(o.name,i):!1;break}case 4:t.setAttribute(o.name,"");break}}for(let r=0;r<e.children.length;r++){let o=e.children[r];switch(o.t){case 0:t.appendChild(jt(o.el,n));break;case 1:t.appendChild(document.createTextNode(o.value));break;case 2:{let i=n[o.idx];if(typeof i=="function"){let s=document.createComment("");t.appendChild(s),_(t,pe(s,i))}else if(i instanceof Node)t.appendChild(i);else if(Array.isArray(i))for(let s=0;s<i.length;s++){let a=i[s];a instanceof Node?t.appendChild(a):a!=null&&typeof a!="boolean"&&t.appendChild(document.createTextNode(String(a)))}else i!=null&&typeof i!="boolean"&&t.appendChild(document.createTextNode(String(i)));break}}}return t}function br(e,...n){let t=gr.get(e);if(t||(t=qa(e),gr.set(e,t)),t.length===1&&t[0].t===0)return jt(t[0].el,n);let r=document.createElement("div");for(let o=0;o<t.length;o++){let i=t[o];switch(i.t){case 0:r.appendChild(jt(i.el,n));break;case 1:r.appendChild(document.createTextNode(i.value));break;case 2:{let s=n[i.idx];if(s instanceof Node)r.appendChild(s);else if(typeof s=="function"){let a=document.createComment("bind:htm");r.appendChild(a),_(r,pe(a,s))}else if(Array.isArray(s))for(let a=0;a<s.length;a++){let c=s[a];c instanceof Node?r.appendChild(c):c!=null&&typeof c!="boolean"&&r.appendChild(document.createTextNode(String(c)))}else s!=null&&typeof s!="boolean"&&r.appendChild(document.createTextNode(String(s)));break}}}return r.childNodes.length===1&&r.firstChild instanceof Element?r.firstChild:r}function Wa(e,n,t){let r=document.createComment("keep-alive"),o=new Map,i=[],s=t?.max??10;s===0&&ne()&&void 0;let a,c=null,u=!1,l=!1,p=()=>{if(l)return;let f=e(),m=r.parentNode;if(!m||u&&f===a)return;c?.parentNode&&m.removeChild(c),a=f;let b=o.get(f);if(b){let h=i.indexOf(f);h!==-1&&(i.splice(h,1),i.push(f))}else{let h=n[f];if(!h){c=null,u=!0;return}if(b=h(),b instanceof DocumentFragment){let y=document.createElement("div");y.style.display="contents",y.appendChild(b),b=y}if(o.set(f,b),i.push(f),s>0&&i.length>s){let y=i.shift(),x=o.get(y);x&&(I(x),x.parentNode&&x.parentNode.removeChild(x),o.delete(y))}}m.insertBefore(b,r.nextSibling),c=b,u=!0},g=K(p);return u||queueMicrotask(()=>{!u&&r.parentNode&&p()}),_(r,()=>{l=!0,g();for(let f of o.values())I(f),f.parentNode&&f.parentNode.removeChild(f);o.clear(),i.length=0,c=null}),r}function Ka(e,n){if(!n)throw new Error("[SibuJS mount] container element not found. Make sure the DOM element exists before calling mount().");typeof e=="function"||e instanceof Node;let t=typeof performance<"u"?performance.now():0,r=typeof e=="function"?e():e,o=typeof performance<"u"?performance.now()-t:0;n.appendChild(r);let i=globalThis.__SIBU_DEVTOOLS_GLOBAL_HOOK__;return i&&i.emit("app:init",{rootElement:r,container:n,duration:o}),{node:r,unmount(){i&&i.emit("app:unmount",{rootElement:r}),I(r),r.parentNode&&r.parentNode.removeChild(r)}}}function Ua(e,n){let t=document.createComment("portal"),r=n||document.body,o=null,i=!1;return queueMicrotask(()=>{if(!i)try{o=e(),r.appendChild(o)}catch(s){queueMicrotask(()=>{P(s,{phase:"render",name:"Portal",node:t.parentNode?t:void 0})})}}),_(t,()=>{i=!0,o&&(I(o),o.remove(),o=null)}),t}function Ja(e,n="default"){return e?.[n]}function Ga(e=[]){let[n,t]=C([...e]);return[n,{push(...o){t(i=>[...i,...o])},pop(){let o;return t(i=>{let s=[...i];return o=s.pop(),s}),o},shift(){let o;return t(i=>{let s=[...i];return o=s.shift(),s}),o},unshift(...o){t(i=>[...o,...i])},splice(o,i=0,...s){let a=[];return t(c=>{let u=[...c];return a=u.splice(o,i,...s),u}),a},remove(o){t(i=>i.filter((s,a)=>a!==o))},removeWhere(o){t(i=>{let s=i.findIndex(o);return s===-1?i:i.filter((a,c)=>c!==s)})},set(o){t([...o])},update(o,i){t(s=>s.map((a,c)=>c===o?i:a))},updateWhere(o,i){t(s=>s.map(a=>o(a)?i(a):a))},sort(o){t(i=>[...i].sort(o))},reverse(){t(o=>[...o].reverse())},filter(o){t(i=>i.filter(o))},map(o){t(i=>i.map(o))},clear(){t([])}}]}function Ya(e=[]){let n=[...e],t=null,r={__v:0};function o(){t=null,r.__v++,ye(r)||we(r)}function i(){if(Ee(r),t===null){let a=n.slice();t=Object.freeze(a)}return t}return[i,{push(...a){a.length!==0&&(n.push(...a),o())},pop(){if(n.length===0)return;let a=n.pop();return o(),a},shift(){if(n.length===0)return;let a=n.shift();return o(),a},unshift(...a){a.length!==0&&(n.unshift(...a),o())},splice(a,c=0,...u){let l=n.splice(a,c,...u);return(l.length>0||u.length>0)&&o(),l},remove(a){a<0||a>=n.length||(n.splice(a,1),o())},removeWhere(a){let c=n.findIndex(a);c!==-1&&(n.splice(c,1),o())},set(a){n=[...a],o()},update(a,c){a<0||a>=n.length||Object.is(n[a],c)||(n[a]=c,o())},updateWhere(a,c){let u=!1;for(let l=0;l<n.length;l++)if(a(n[l])){let p=c(n[l]);Object.is(n[l],p)||(n[l]=p,u=!0)}u&&o()},sort(a){n.length<=1||(n.sort(a),o())},reverse(){n.length<=1||(n.reverse(),o())},filter(a){let c=n.filter(a);c.length!==n.length&&(n=c,o())},map(a){let c=!1;for(let u=0;u<n.length;u++){let l=a(n[u],u);Object.is(n[u],l)||(n[u]=l,c=!0)}c&&o()},clear(){n.length!==0&&(n=[],o())}}]}function Za(e,n){let[t,r]=C(n),[o,i]=C(!1),[s,a]=C(null),[c,u]=C(0),l=0,p=!1,g=null,f=()=>{if(g===null)return;let b=g;g=null;try{b.abort()}catch{}},m=J(()=>{if(c(),p)return;f();let b=++l,h=typeof AbortController<"u"?new AbortController:null;g=h,j(()=>{i(!0),a(null)});let y=()=>p||b!==l,x;try{x=e({signal:h?h.signal:void 0})}catch(v){if(y())return;j(()=>{a(v),i(!1)});return}x.then(v=>{y()||(g=null,j(()=>{r(v),i(!1)}))},v=>{y()||(g=null,j(()=>{a(v),i(!1)}))})});return{value:t,loading:o,error:s,refresh:()=>{p||u(b=>b+1)},dispose:()=>{p||(p=!0,m(),f())}}}function Oe(e,n,t){if(Object.is(e,n))return!0;if(e==null||n==null||typeof e!=typeof n||typeof e!="object")return!1;let r=e,o=n;if(r.constructor!==o.constructor)return!1;if(e instanceof Date)return e.getTime()===n.getTime();if(e instanceof RegExp){let c=n;return e.source===c.source&&e.flags===c.flags}t||(t=new Map);let i=t.get(r);if(i?.has(o))return!0;if(i||(i=new Set,t.set(r,i)),i.add(o),e instanceof Map){let c=n;if(e.size!==c.size)return!1;for(let[u,l]of e)if(!c.has(u)||!Oe(l,c.get(u),t))return!1;return!0}if(e instanceof Set){let c=n;if(e.size!==c.size)return!1;for(let u of e)if(!c.has(u))return!1;return!0}if(e instanceof ArrayBuffer){let c=new Uint8Array(e),u=new Uint8Array(n);if(c.length!==u.length)return!1;for(let l=0;l<c.length;l++)if(c[l]!==u[l])return!1;return!0}if(e instanceof DataView){if(!(n instanceof DataView)||e.byteLength!==n.byteLength)return!1;for(let c=0;c<e.byteLength;c++)if(e.getUint8(c)!==n.getUint8(c))return!1;return!0}if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(n)){let c=e,u=n;if(c.length!==u.length)return!1;for(let l=0;l<c.length;l++)if(c[l]!==u[l])return!1;return!0}if(Array.isArray(e))return!Array.isArray(n)||e.length!==n.length?!1:e.every((c,u)=>Oe(c,n[u],t));let s=Object.keys(r),a=Object.keys(o);return s.length!==a.length?!1:s.every(c=>Object.hasOwn(o,c)&&Oe(r[c],o[c],t))}function Xa(e){return C(e,{equals:(n,t)=>Oe(n,t)})}function xe(e,n){let t=n?.name,r=n?.equals,o={};o._d=!1,o._init=!1,o._g=e,o.__v=0;let i=()=>{o._d||(o._d=!0)};i._c=1,i._sig=o;let s=()=>{let p=e();o._v=r&&o._init&&r(o._v,p)?o._v:p,o._d=!1,o._init=!0};K(()=>{let p=!0;try{o._v=e(),o._d=!1,o._init=!0,p=!1}finally{p&&(o._d=!0)}},i);let a=globalThis.__SIBU_DEVTOOLS_GLOBAL_HOOK__,c=!1,u=()=>{if(!o._d)return;let p=o._v;c=!0;try{ue(s,i),Object.is(p,o._v)||o.__v++}finally{c=!1}a&&!Object.is(p,o._v)&&a.emit("computed:update",{signal:o,oldValue:p,newValue:o._v})};o._validate=u;function l(){if(c)throw new Error(`[SibuJS] Circular dependency detected in derived${t?` "${t}"`:""}. A derived signal cannot read itself (directly or through a chain).`);return An()?(o._d&&u(),o._v):(o._d&&u(),Ee(o),o._v)}return t&&(l.__name=t,o.__name=t),l.__signal=o,a&&a.emit("computed:create",{signal:o,name:t,getter:l}),l}function Qa(e){let[n,t]=C(e);return{get current(){return n()},set current(r){t(r)}}}function ec(e){e!==null&&typeof e=="object"&&Array.isArray(e);let n={};Object.keys(e).forEach(c=>{let[u,l]=C(e[c]);n[c]=[u,l]});let t=new Proxy({},{get(c,u){if(typeof u=="string"&&Object.hasOwn(n,u)){let l=n[u][0];return l()}return Reflect.get(c,u)},set(){throw new Error("[SibuJS store] Direct mutation is not allowed. Use actions.setState() to update store properties.")}}),r=()=>{let c={};return Object.keys(n).forEach(u=>{c[u]=n[u][0]()}),c};return[t,{setState:c=>{let u=r(),l=typeof c=="function"?c(u):c;j(()=>{Object.entries(l).forEach(([p,g])=>{Object.hasOwn(n,p)&&n[p][1](g)})})},reset:()=>{j(()=>{Object.keys(e).forEach(c=>{let u=n[c][1];u(e[c])})})},subscribe:c=>{let u=!0;return J(()=>{let l=r();if(u){u=!1;return}Re();try{c(l)}finally{Me()}})},subscribeKey:(c,u)=>{let l,p=!0;return J(()=>{let g=n[c][0]();if(p){l=g,p=!1;return}if(!Object.is(g,l)){let f=l;l=g,Re();try{u(g,f)}finally{Me()}}})},getSnapshot:r}]}function tc(e,n){if(te())return()=>{};let t,r=!0;return K(()=>{let s=e();if(r){t=s,r=!1;return}if(!Object.is(s,t)){let a=t;t=s,Re();try{n(s,a)}finally{Me()}}})}function nc(e,n,t){return[xe(e,t),i=>{j(()=>n(i))}]}function rc(e){let n=e();return ne()&&queueMicrotask(()=>{try{e()}catch(t){console.warn("[SibuJS strict] second run threw:",t)}}),n}function oc(e){if(!ne())return J(e);let n=J(e),t=null;return queueMicrotask(()=>{try{t=J(e)}catch(r){console.warn("[SibuJS strictEffect] second run threw:",r)}}),()=>{n(),t&&t()}}var zt="data-sibu-enhanced",qt=new WeakMap;function hr(e,n){let t=0;for(;e.length>0;){let r=e.splice(0);for(let o=0;o<r.length;o++){if(t>=Fe){let i=r.length-o+e.length;e.length=0,je(n,t,i);return}t++;try{r[o]()}catch(i){typeof console<"u"&&console.error(`[SibuJS ${n}] teardown error:`,i)}}}}var yr=["text","attr","class","show","on","cleanup"];function vr(e,n){if(n==null)return e;if(typeof n!="string")return n;let t=n.startsWith("@")?`[data-ref="${n.slice(1)}"]`:n;try{return e.querySelector(t)}catch{return null}}function Be(e,n){return te()?()=>{}:Z(n,e)}function ic(e){if(e instanceof HTMLInputElement){if(e.type==="checkbox")return e.checked;if(e.type==="number"||e.type==="range")return e.value===""?null:Number(e.value)}return e instanceof HTMLSelectElement&&e.multiple?Array.from(e.selectedOptions,n=>n.value):e.value}function sc(e,n){if(e instanceof HTMLInputElement&&e.type==="checkbox"){e.checked=!!n;return}if(e instanceof HTMLSelectElement&&e.multiple){let r=Array.isArray(n)?n.map(String):[];for(let o of Array.from(e.options))o.selected=r.includes(o.value);return}let t=n==null?"":String(n);e.value!==t&&(e.value=t)}function ac(e,n,t,r){let o=`ctx.each[${r}]`;if(ne())for(let i of Object.keys(t))yr.includes(i),`${o}${i}${yr.join(", ")}`;if(t.text!==void 0&&(t.text,`${o}`,e.text(n,t.text)),t.attr!==void 0)for(let i of Object.keys(t.attr)){let s=t.attr[i];`${o}${i}`,e.attr(n,i,s)}if(t.class!==void 0)for(let i of Object.keys(t.class)){let s=t.class[i];`${o}${i}`,e.classed(n,i,s)}if(t.show!==void 0&&(t.show,`${o}`,e.show(n,t.show)),t.on!==void 0)for(let i of Object.keys(t.on)){let s=t.on[i];`${o}${String(i)}`,e.on(n,i,s)}t.cleanup!==void 0&&(t.cleanup,`${o}`,e.cleanup(t.cleanup))}function Qe(e,n){let t=typeof e=="string"?typeof document<"u"?document.querySelector(e):null:e;if(!t)return typeof console<"u"&&console.warn(`[SibuJS enhance] no element matched ${JSON.stringify(e)} \u2014 nothing enhanced.`),()=>{};if(t.getAttribute(zt)==="true")return ne()&&typeof console<"u"&&console.warn("[SibuJS enhance] element is already enhanced; ignoring re-enhance.",t),()=>{};let r=[],o=Symbol("sibujs.enhance"),i=!1,s=!1,a=g=>s?!0:!1,c=(g,f,m)=>{if(a(g))return;let b=vr(t,f);if(!b){typeof console<"u"&&console.warn(`[SibuJS enhance] target ${JSON.stringify(f)} not found under`,t);return}m(b)},u={root:t,ref:g=>vr(t,g),refs:g=>{let f=g.startsWith("@")?`[data-ref="${g.slice(1)}"]`:g;try{return Array.from(t.querySelectorAll(f))}catch{return[]}},on:(g,f,m,b)=>{c("on",g,h=>{let y=x=>m(x,h);h.addEventListener(f,y,b),r.push(()=>h.removeEventListener(f,y,b))})},text:(g,f)=>{c("text",g,m=>{r.push(Be(m,()=>{let b=f(),h=b==null?"":String(b);m.textContent!==h&&(m.textContent=h)}))})},attr:(g,f,m)=>{c("attr",g,b=>{r.push(Be(b,()=>{let h=m(),y=h==null?null:String(h);X(b,f,y,{syncValueProperty:!1,label:"enhance attr()"})}))})},classed:(g,f,m)=>{c("classed",g,b=>{r.push(Be(b,()=>{b.classList.toggle(f,!!m())}))})},show:(g,f)=>{c("show",g,m=>{let b=m.hidden;r.push(Be(m,()=>{m.hidden=!f()})),r.push(()=>{m.hidden=b})})},model:(g,f,m)=>{c("model",g,b=>{let h=b,[y,x]=f,v=m?.event??(h instanceof HTMLSelectElement||h instanceof HTMLInputElement&&(h.type==="checkbox"||h.type==="radio")?"change":"input");r.push(Be(b,()=>{sc(h,y())}));let k=()=>x(ic(h));h.addEventListener(v,k),r.push(()=>h.removeEventListener(v,k))})},each:(g,f)=>{if(a("each"))return;let m=typeof g=="string"?u.refs(g):Array.from(g);for(let b=0;b<m.length;b++){let h=m[b],y=f(h,b);y!=null&&ac(u,h,y,b)}},cleanup:g=>{a("cleanup")||r.push(g)}},l;try{l=n(u);let g=l;if(g&&typeof g.then=="function")throw g.then(void 0,f=>{}),new Error("[SibuJS enhance] setup returned a promise")}catch(g){throw hr(r,"enhance"),s=!0,g}typeof l=="function"&&r.push(l);let p=()=>{i||(i=!0,qt.get(t)===o&&(qt.delete(t),t.removeAttribute(zt)),ct(t,p),hr(r,"enhance"),s=!0)};return _(t,p),qt.set(t,o),t.setAttribute(zt,"true"),p}function cc(e,n){if(typeof document>"u")return()=>{};let t=[];try{for(let r of Array.from(document.querySelectorAll(e)))t.push(Qe(r,n))}catch(r){for(let o=t.length-1;o>=0;o--)try{t[o]()}catch(i){typeof console<"u"&&console.error("[SibuJS enhanceAll] rollback error:",i)}throw t.length=0,r}return()=>{for(let r of t.splice(0))r()}}function xr(e,n){let t=globalThis;return t[e]??(t[e]=n())}var lc=/^[A-Za-z0-9_-]+$/,Sr=Symbol.for("sibujs.islands.lazy"),et=xr(Symbol.for("sibujs.islands.registry.v1"),()=>new Map);function uc(e){return e[Sr]=!0,e}function dc(e,n){if(!lc.test(e))throw new Error(`[SibuJS islands] name must match [A-Za-z0-9_-]+ (got: ${JSON.stringify(e.slice(0,32))})`);et.set(e,n)}function fc(e){et.delete(e)}async function pc(e){if(typeof e=="function"&&e[Sr]){let n=await e(),t=n.default??n;return typeof t=="function"?t:null}return e}function mc(e=typeof document<"u"?document:null,n={}){if(!e||typeof e.querySelectorAll!="function")return()=>{};let t=[],r=[],o=!1;for(let i of Array.from(e.querySelectorAll("[data-sibu-island]"))){if(i.getAttribute("data-sibu-enhanced")==="true")continue;let s=i.getAttribute("data-sibu-island")??"";if(!et.has(s)){typeof console<"u"&&console.warn(`[SibuJS islands] no island registered for "${s}" \u2014 skipping. Call registerIsland("${s}", ...).`);continue}let a=!1,c=()=>{if(a||o)return;a=!0;let l=et.get(s);l&&pc(l).then(p=>{if(!o){if(!p){typeof console<"u"&&console.warn(`[SibuJS islands] "${s}" loader produced no setup.`);return}try{let g=Qe(i,p);if(o){g();return}r.push(g),i.setAttribute("data-sibu-hydrated","true")}catch(g){typeof console<"u"&&console.error(`[SibuJS islands] "${s}" failed to mount:`,g)}}}).catch(p=>{typeof console<"u"&&console.error(`[SibuJS islands] "${s}" failed to load:`,p)})},u=i.getAttribute("data-sibu-load")||"load";t.push(gc(u,i,c,n))}return()=>{o=!0;for(let i of t.splice(0))i();for(let i of r.splice(0))i()}}function gc(e,n,t,r){switch(e){case"idle":{if(typeof requestIdleCallback<"u"){let i=requestIdleCallback(t);return()=>cancelIdleCallback(i)}let o=setTimeout(t,1);return()=>clearTimeout(o)}case"visible":{if(typeof IntersectionObserver>"u")return queueMicrotask(t),()=>{};let o=new IntersectionObserver(i=>{for(let s of i)s.isIntersecting&&(o.disconnect(),t())},{rootMargin:r.rootMargin,threshold:r.threshold});return o.observe(n),()=>o.disconnect()}case"interaction":{let o=["pointerdown","focusin","keydown","touchstart"],i=()=>{s(),t()},s=()=>{for(let a of o)n.removeEventListener(a,i)};for(let a of o)n.addEventListener(a,i,{passive:!0});return s}case"media":{let o=n.getAttribute("data-sibu-media")||"(min-width: 0px)";if(typeof matchMedia>"u")return queueMicrotask(t),()=>{};let i=matchMedia(o);if(i.matches)return queueMicrotask(t),()=>{};let s=()=>{i.matches&&(i.removeEventListener("change",s),t())};return i.addEventListener("change",s),()=>i.removeEventListener("change",s)}default:return queueMicrotask(t),()=>{}}}function Tr(e){return e}var Ad=1024*1024;function bc(e){let[n,t]=C(e()),r=!1,o=!1,i=n(),s=()=>{r=!1,!o&&t(i)},a=()=>{r||(r=!0,queueMicrotask(()=>{typeof requestAnimationFrame=="function"?requestAnimationFrame(s):s()}))},c=K(()=>{i=e(),a()}),u=(()=>n());return u.dispose=()=>{o||(o=!0,c())},u}var Er=16;function hc(e){let n=globalThis;if(typeof n.requestIdleCallback=="function"){n.requestIdleCallback(e,{timeout:Er*4});return}if(typeof requestAnimationFrame=="function"){requestAnimationFrame(()=>e());return}setTimeout(e,Er)}function yc(){let[e,n]=C(!1);function t(r){n(!0),hc(()=>{let o;try{o=r()}catch{n(!1);return}o&&typeof o.then=="function"?o.then(()=>n(!1),()=>n(!1)):n(!1)})}return{pending:e,start:t}}function vc(){return new Promise(e=>{queueMicrotask(()=>{typeof requestAnimationFrame=="function"?requestAnimationFrame(()=>e()):e()})})}var nt={};Yt(nt,{RenderProp:()=>Rc,assertType:()=>Bc,compose:()=>Nc,createGuard:()=>Vc,createSlots:()=>Pc,defineComponent:()=>Hc,defineSlottedComponent:()=>$c,defineStrictComponent:()=>Oc,globalStore:()=>Ac,machine:()=>Sc,optimistic:()=>Ec,optimisticList:()=>wc,persisted:()=>Tc,timeline:()=>kc,validateProps:()=>wr,validators:()=>Ic,withBoundary:()=>Mc,withDefaults:()=>Lc,withProps:()=>Dc,withWrapper:()=>Cc});var xc=new Set(["__proto__","constructor","prototype"]);function Kt(e){return xc.has(e)}function tt(e){let n={};for(let t of Object.keys(e))Kt(t)||(n[t]=e[t]);return n}function Sc(e){let[n,t]=C(e.initial),[r,o]=C(e.context||{}),i=e.states[e.initial];i?.entry&&i.entry(r());function s(u){let l=n(),p=e.states[l];if(!p?.on)return;let g=p.on[u];if(!g)return;let f,m,b;typeof g=="string"?f=g:(f=g.target,m=g.guard,b=g.action);let h=r();if(m&&!m(h))return;if(p.exit&&p.exit(h),b){let x=b(h),v={...h,...tt(x)};o(v)}t(f);let y=e.states[f];y?.entry&&y.entry(r())}function a(u){return n()===u}function c(u){let l=n(),p=e.states[l];if(!p?.on)return!1;let g=p.on[u];return g?typeof g=="string"?!0:g.guard?g.guard(r()):!0:!1}return{state:n,context:r,send:s,matches:a,can:c}}function Tc(e,n,t={}){let r=(()=>{try{return t.session?typeof sessionStorage<"u"?sessionStorage:null:typeof localStorage<"u"?localStorage:null}catch{return null}})(),o=t.serialize||JSON.stringify,i=(y,x)=>Kt(y)?void 0:x,s=t.deserialize||(y=>JSON.parse(y,i)),a=t.encrypt,c=t.decrypt,u=t.session?!1:t.syncTabs??!0,l=n;try{let y=r?r.getItem(e):null;if(y!==null){c&&(y=c(y));let x=s(y);l=t.validate&&!t.validate(x)?n:x}}catch{}let[p,g]=C(l),f=!1,m=J(()=>{let y=p();if(!f)try{let x=o(y);a&&(x=a(x)),r?.setItem(e,x)}catch{}}),b=null;return u&&r&&typeof window<"u"&&(b=y=>{if(!(y.storageArea!==r||y.key!==e)){if(y.newValue===null){f=!0;try{g(n)}finally{f=!1}return}try{let x=y.newValue;c&&(x=c(x));let v=s(x);if(t.validate&&!t.validate(v))return;f=!0;try{g(v)}finally{f=!1}}catch{}}},window.addEventListener("storage",b)),Object.defineProperty(g,"dispose",{value:()=>{m(),b&&typeof window<"u"&&(window.removeEventListener("storage",b),b=null)},enumerable:!1,writable:!1,configurable:!1}),[p,g]}function Ec(e){let[n,t]=C(e),[r,o]=C(!1),i=0,s=0;async function a(c,u){let l=++s,p=n();t(c),i++,o(!0);try{let g=await u();s===l&&t(g)}catch{s===l&&t(p)}finally{i--,i<=0&&(i=0,o(!1))}}return{value:n,pending:r,update:a}}function wc(e){let n=0,t=0,r=0,o=new Map,i=[];for(let A of e){let S={id:n++,key:t++,base:A,claims:[],visible:!0,refs:0};o.set(S.id,S),i.push(S.id)}function s(A){let S=A.claims;return S.length>0?S[S.length-1].value:A.base}function a(A,S){let N=A.claims;for(let E=N.length-1;E>=0;E--)if(N[E].opId<S)return N[E].value;return A.base}function c(A,S,N){let E={opId:S,value:N,settled:!1},w=A.claims,M=w.length;for(;M>0&&w[M-1].opId>S;)M--;return w.splice(M,0,E),E}function u(A,S){let N=A.claims.indexOf(S);N!==-1&&A.claims.splice(N,1)}function l(A){let S=A.claims,N=0;for(;N<S.length&&S[N].settled;)A.base=S[N].value,N++;N>0&&S.splice(0,N)}let[p,g]=C(i.map(A=>s(o.get(A)))),[f,m]=C(!1),b=0,h=new Set;function y(){let A=new Array(i.length);for(let S=0;S<i.length;S++)A[S]=s(o.get(i[S]));return A}function x(A){j(()=>{let S=!1;try{S=A()}finally{m(b>0),S&&g(y())}})}function v(A){let S=o.get(A);return!S||!S.visible?!1:(S.visible=!1,i=i.filter(N=>N!==A),!0)}function k(A){let S=[];for(let H of A){let z=o.get(H);!z||z.visible||h.has(H)||S.push(H)}if(S.length===0)return!1;let N=new Array(i.length+S.length),E=0,w=0,M=0;for(;E<i.length&&w<S.length;){let H=o.get(i[E]).key,z=o.get(S[w]).key;N[M++]=H<=z?i[E++]:S[w++]}for(;E<i.length;)N[M++]=i[E++];for(;w<S.length;)N[M++]=S[w++];for(let H of S)o.get(H).visible=!0;return i=N,!0}function L(A){for(let S of A){let N=o.get(S);N&&N.refs++}}function D(A){for(let S of A){let N=o.get(S);N&&(N.refs--,N.refs<=0&&!N.visible&&(o.delete(S),h.delete(S)))}}function B(A){if(D(A),b--,b<=0&&(b=0,h.clear(),o.size!==i.length))for(let[S,N]of o)N.visible||o.delete(S)}async function ae(A,S){let N=++r,E={id:n++,key:t++,base:A,claims:[],visible:!1,refs:1},w=c(E,N,A);x(()=>(o.set(E.id,E),E.visible=!0,i=[...i,E.id],b++,!0));let M,H=!1;try{M=await S()}catch{H=!0}x(()=>{try{if(H)return h.add(E.id),u(E,w),v(E.id);let z=s(E);return w.value=M,w.settled=!0,l(E),E.visible&&!Object.is(z,s(E))}finally{B([E.id])}})}async function rt(A,S){let N=++r,E=[];for(let M of i)A(a(o.get(M),N))&&E.push(M);x(()=>{if(L(E),b++,E.length===0)return!1;let M=new Set(E);for(let H of E){let z=o.get(H);z&&(z.visible=!1)}return i=i.filter(H=>!M.has(H)),!0});let w=!1;try{await S()}catch{w=!0}x(()=>{try{if(!w){for(let M of E)h.add(M);return!1}return k(E)}finally{B(E)}})}async function Ve(A,S,N){let E=++r,w=[];for(let U of i){let V=o.get(U),G=a(V,E);A(G)&&w.push({row:V,nextValue:{...G,...S}})}let M=w.map(U=>U.row.id),H=[];x(()=>{L(M),b++;let U=!1;for(let V of w){let G=s(V.row);H.push(c(V.row,E,V.nextValue)),V.row.visible&&!Object.is(G,s(V.row))&&(U=!0)}return U});let z,Le=!1;try{z=await N()}catch{Le=!0}x(()=>{try{let U=!1;for(let V=0;V<H.length;V++){let G=w[V].row,T=H[V],W=s(G);Le?u(G,T):(T.value=z,T.settled=!0),l(G),G.visible&&!Object.is(W,s(G))&&(U=!0)}return U}finally{B(M)}})}return{items:p,pending:f,add:ae,remove:rt,update:Ve}}function kc(e,n=100){let[t,r]=C([e]),[o,i]=C(0),s=xe(()=>t()[o()]),a=xe(()=>o()>0),c=xe(()=>o()<t().length-1);function u(m){let b=s(),h=typeof m=="function"?m(b):m;if(Object.is(h,b))return;let y=t(),x=o(),v=y.slice(0,x+1);v.push(h),j(()=>{v.length>n?(v.shift(),r(v),i(v.length-1)):(r(v),i(x+1))})}function l(){a()&&i(o()-1)}function p(){c()&&i(o()+1)}function g(){j(()=>{r([e]),i(0)})}function f(m){let b=t();m>=0&&m<b.length&&i(m)}return{value:s,set:u,undo:l,redo:p,canUndo:a,canRedo:c,history:t,index:o,reset:g,jumpTo:f}}function _c(e){if(typeof structuredClone=="function")return structuredClone(e);let n=new WeakSet,t=r=>{if(r===null||typeof r!="object")return r;if(n.has(r))throw new Error("deepClone: circular reference");if(n.add(r),r instanceof Date)return new Date(r.getTime());if(r instanceof Map){let i=new Map;for(let[s,a]of r)i.set(t(s),t(a));return i}if(r instanceof Set){let i=new Set;for(let s of r)i.add(t(s));return i}if(Array.isArray(r))return r.map(t);let o={};for(let i of Object.keys(r))i!=="__proto__"&&(o[i]=t(r[i]));return o};return t(e)}function Ac(e){let n=_c(e.state),[t,r]=C({...n}),o=new Set,i=e.middleware||[];function s(l,p){let g=e.actions[l];if(!g)throw new Error(`Unknown action: ${String(l)}`);let f=()=>{let h=t(),y=g(h,p),x=tt(y);r({...h,...x});let v=t();for(let k of o)k(v)};if(i.length===0){f();return}let m=0,b=()=>{if(m<i.length){let h=i[m++];h(t(),String(l),p,b)}else f()};b()}function a(l){return()=>l(t())}function c(l){return o.add(l),()=>o.delete(l)}function u(){r({...n});for(let l of o)l(t())}return{getState:t,select:a,dispatch:s,subscribe:c,reset:u}}function Cc(e,n){return t=>n(e,t)}function Lc(e,n){return t=>e({...n,...t})}function Nc(...e){return n=>e.reduceRight((t,r)=>r(t),n)}function Rc(e){return e.render(e.data())}function Mc(e,n){return t=>{let r=document.createElement("div");r.setAttribute("data-sibu-boundary",e);try{let o=n(t);r.appendChild(o)}catch(o){let i=document.createElement("div");i.setAttribute("data-sibu-boundary-error",e),i.style.cssText="color: red; border: 1px solid red; padding: 8px; margin: 4px;",i.textContent=`[${e}] ${o instanceof Error?o.message:String(o)}`,r.appendChild(i)}return r}}function Pc(e){return{renderSlot(n,t){let r=Object.hasOwn(e,n)?e[n]:void 0;if(r){let o=r();if(Array.isArray(o)){let i=document.createElement("div");i.style.display="contents";for(let s of o)i.appendChild(s);return i}return o}return t?t():null},hasSlot(n){return Object.hasOwn(e,n)}}}function Hc(e){let{defaults:n,setup:t}=e;return r=>{let o=n?{...n,...r}:r;return t(o)}}function $c(e){let{defaults:n,setup:t}=e;return r=>{let o=n?{...n,...r}:r;return t(o)}}function Dc(e,n){return t=>e(n(t))}var Ic={string:((e,n)=>typeof e=="string"||`${n} must be a string, got ${typeof e}`),number:((e,n)=>typeof e=="number"||`${n} must be a number, got ${typeof e}`),boolean:((e,n)=>typeof e=="boolean"||`${n} must be a boolean, got ${typeof e}`),function:((e,n)=>typeof e=="function"||`${n} must be a function, got ${typeof e}`),object:((e,n)=>typeof e=="object"&&e!==null||`${n} must be an object`),array:((e,n)=>Array.isArray(e)||`${n} must be an array`),required:((e,n)=>e!=null||`${n} is required`),oneOf:(...e)=>(n,t)=>e.includes(n)||`${t} must be one of: ${e.join(", ")}`,instanceOf:e=>(n,t)=>n instanceof e||`${t} must be an instance of ${e.name}`,arrayOf:e=>(n,t)=>{if(!Array.isArray(n))return`${t} must be an array`;for(let r=0;r<n.length;r++){let o=e(n[r],`${t}[${r}]`);if(o!==!0)return o}return!0},shape:e=>(n,t)=>{if(typeof n!="object"||n===null)return`${t} must be an object`;for(let[r,o]of Object.entries(e)){let i=o(n[r],`${t}.${r}`);if(i!==!0)return i}return!0},optional:e=>(n,t)=>n==null?!0:e(n,t),range:(e,n)=>(t,r)=>typeof t!="number"?`${r} must be a number`:t>=e&&t<=n||`${r} must be between ${e} and ${n}`,pattern:e=>(n,t)=>typeof n!="string"?`${t} must be a string`:e.test(n)||`${t} must match pattern ${e}`};function wr(e,n){let t={...e};for(let[r,o]of Object.entries(n)){if(typeof o=="function")continue;let i=o.default;t[r]==null&&i!==void 0&&(t[r]=typeof i=="function"?i():i)}return t}function Oc(e){return n=>{let t=wr(n,e.props);return e.setup(t)}}function Bc(e,n,t){}function Vc(e){return n=>e(n,"value")===!0}typeof globalThis<"u"&&(globalThis.Sibu={...nt,...Wt,patterns:nt});})();
|
|
397
|
+
`,lr=!1;function ja(){!lr&&typeof document<"u"&&(document.head.appendChild(we({nodes:Va})),lr=!0)}function Fa(e={}){ja();let{text:n,variant:t="spinner",size:r="md"}=e,o=r!=="md"?` sibu-loading-${r}`:"";return t==="dots"?M({class:`sibu-loading${o}`,role:"status","aria-live":"polite","aria-label":n?void 0:"Loading",nodes:[M({class:"sibu-loading-dots",nodes:[V({class:"sibu-loading-dot"}),V({class:"sibu-loading-dot"}),V({class:"sibu-loading-dot"})]}),n?V({class:"sibu-loading-text",nodes:n}):null].filter(Boolean)}):M({class:`sibu-loading${o}`,role:"status","aria-live":"polite","aria-label":n?void 0:"Loading",nodes:[M({class:"sibu-loading-spinner"}),n?V({class:"sibu-loading-text",nodes:n}):null].filter(Boolean)})}var Ft=Symbol.for("sibujs.actions.v1"),dr=globalThis[Ft]??(globalThis[Ft]=new Map);function $e(e,n){dr.set(e,n)}function fr(e){return dr.get(e)}function za(e,n,t){let r=typeof n=="string"?fr(n):n;if(!r)throw new Error(`[SibuJS] No action registered under the name "${n}". Register it with registerAction() before applying it by name.`);let o=r(e,t);typeof o=="function"&&A(e,o)}var pr=(e,n)=>{let t=r=>{e.contains(r.target)||n()};return document.addEventListener("pointerdown",t,!0),()=>document.removeEventListener("pointerdown",t,!0)},mr=(e,n)=>{let t=n.duration??500,r=null,o=()=>{r=setTimeout(()=>{n.callback(),r=null},t)},i=()=>{r!==null&&(clearTimeout(r),r=null)};return e.addEventListener("pointerdown",o),e.addEventListener("pointerup",i),e.addEventListener("pointerleave",i),()=>{i(),e.removeEventListener("pointerdown",o),e.removeEventListener("pointerup",i),e.removeEventListener("pointerleave",i)}},gr=(e,n)=>{let t=o=>R(o,{phase:"async",name:"copyOnClick",node:e}),r=()=>{try{let o=typeof n=="function"?n():e.textContent??"";Promise.resolve(navigator.clipboard.writeText(o)).catch(t)}catch(o){t(o)}};return e.addEventListener("click",r),()=>e.removeEventListener("click",r)},br=e=>{let n=()=>{e.style.overflow="hidden",e.style.height="auto",e.style.height=`${e.scrollHeight}px`};return n(),e.addEventListener("input",n),()=>e.removeEventListener("input",n)},hr=e=>{let n='a[href],button:not([disabled]),input:not([disabled]),select:not([disabled]),textarea:not([disabled]),[tabindex]:not([tabindex="-1"])',t=r=>{if(r.key!=="Tab")return;let o=Array.from(e.querySelectorAll(n));if(o.length===0)return;let i=o[0],s=o[o.length-1];r.shiftKey&&document.activeElement===i?(r.preventDefault(),s.focus()):!r.shiftKey&&document.activeElement===s&&(r.preventDefault(),i.focus())};return e.addEventListener("keydown",t),()=>e.removeEventListener("keydown",t)};$e("clickOutside",pr);$e("longPress",mr);$e("copyOnClick",gr);$e("autoResize",br);$e("trapFocus",hr);var Ce=null;function qa(e,n){try{let t=e();return t&&typeof t.then=="function"&&t.catch(r=>{n?n(r,"async"):Ce?Ce(r,"async"):console.error("Unhandled async error in Sibu.catchError:",r)}),t}catch(t){return n?n(t,"sync"):Ce?Ce(t,"sync"):console.error("Unhandled error in Sibu.catchError:",t),null}}async function Wa(e,n){try{return await e()}catch(t){return n?n(t,"async"):Ce?Ce(t,"async"):console.error("Unhandled async error in Sibu.catchErrorAsync:",t),null}}function Ka(e){Ce=e}function Ua(e){let[n,t]=L(e),r=i=>{!!1||!re()||(`${i}`,void 0)};return{provide(i){r("provide");let s=n();return t(i),()=>t(s)},use(){return n},get(){return n()},set(i){r("set"),t(i)},withContext(i,s){r("withContext");let a=n();t(i);try{let c=s();return!1,c}finally{t(a)}}}}var zt=Symbol.for("sibujs.createId.v1"),qt=globalThis[zt]??(globalThis[zt]={n:0});function yr(e="sibu"){let n=Gn();return n?(n.idCounter=(n.idCounter??0)+1,`${e}-${n.idCounter}`):(qt.n++,`${e}-${qt.n}`)}function vr(){qt.n=0}function Ja(e,n){let t=typeof n=="function"?n():n;return A(t,U(()=>{t.style.display=e()?"":"none"},t)),t}function Sr(e,n,t,r,o){let i=typeof t=="function"?t():t;if(i==null||typeof i=="boolean")return{node:null,owned:!1};let s=i instanceof Node?i:document.createTextNode(String(i)),a=s===t,c=r.has(s),d=!a&&!c;return r.add(s),c&&void 0,e.insertBefore(s,n.nextSibling),{node:s,owned:d}}function Ga(e,n,t){let r=document.createComment("when"),o=null,i,s=!1,a=!1,c=new WeakSet,d=!1,m=()=>{if(a)return;let b=e(),p=r.parentNode;if(!p||s&&b===i)return;i=b;let u=o?qe([o]):null;o?.parentNode&&(d&&I(o),o.parentNode.removeChild(o),o=null);let g=Sr(p,r,b?n:t!==void 0?t:null,c,"when");o=g.node,d=g.owned,Pe(u,o?[o]:[],"when"),s=!0},y=U(m,r);return A(r,()=>{a=!0,y()}),s||queueMicrotask(()=>{!a&&!s&&r.parentNode&&m()}),r}function Ya(e,n,t){let r=document.createComment("match"),o=null,i,s=!1,a=!1,c=new WeakSet,d=!1,m=()=>{if(a)return;let b=String(e()),p=r.parentNode;if(!p||s&&b===i)return;i=b;let u=o?qe([o]):null;o?.parentNode&&(d&&I(o),o.parentNode.removeChild(o),o=null);let l=Object.hasOwn(n,b)?n[b]:t,g=Sr(p,r,l??null,c,"match");o=g.node,d=g.owned,Pe(u,o?[o]:[],"match"),s=!0},y=U(m,r);return A(r,()=>{a=!0,y()}),s||queueMicrotask(()=>{!a&&!s&&r.parentNode&&m()}),r}function it(e,n){let t=globalThis;return t[e]??(t[e]=n())}var Wt=it(Symbol.for("sibujs.components.registry.v1"),()=>new Map);function Za(e,n){Wt.set(e,n)}function Xa(e){Wt.delete(e)}function xr(e){let n=Wt.get(e);return n?n():M(`[Component "${e}" not found]`)}function Qa(e){let n=M({class:"sibu-dynamic"});function t(){let o=e(),i;typeof o=="function"?i=o():i=xr(o),Z(n,i)}let r=Q(t);return A(n,r),n}function Tr(e){return typeof e=="function"?Tr(e()):e instanceof Node?e:document.createTextNode(String(e))}function ec(e,n){if(n===0)return[];let t=[],r=new Array(n);for(let a=0;a<n;a++){let c=e[a],d=0,m=t.length;for(;d<m;){let y=d+m>>1;e[t[y]]<c?d=y+1:m=y}t[d]=a,r[a]=d>0?t[d-1]:-1}let o=t.length,i=new Array(o),s=t[o-1];for(let a=o-1;a>=0;a--)i[a]=s,s=r[s];return i}function tc(e,n,t){t&&t.key;let r=document.createComment("each:anchor"),o=document.createComment("each:end"),i=[],s=[],a=i,c=0,d=new Map,m=new Map,y=[],b=[],p=[],u=0,l=[],g=[],h=new Uint8Array(0),S=new Map,v=[],x=[],E=new Map,P=!1,O=!1,z=!1,oe=t.key,Je=()=>{if(z)return;let k=e(),_=k.length,D=r.parentNode;if(!D)return;O||(D.insertBefore(o,r.nextSibling),O=!0),g.length<_&&(g=new Array(_));for(let w=0;w<_;w++)g[w]=oe(k[w]);let H=g;l.length<_&&(l=new Array(_)),m.clear(),E.clear();for(let w=0;w<_;w++)!1,E.set(H[w],w);u=0;for(let w=0;w<_;w++){let K=H[w],Zt=d.get(K),Be;if(Zt!==void 0)Be=Zt,y[u]=Be,b[u]=k[w],p[u]=w,u++;else{let[Xt,Fr]=L(k[w]),[Qt,zr]=L(w),lt;try{ve();try{lt=Tr(n(Xt,Qt))}finally{Se()}}catch(qr){let Wr=H[w];lt=document.createComment(`each:error:${w}`),queueMicrotask(()=>{R(qr,{phase:"render",name:`each row (key="${String(Wr)}")`,node:r.parentNode?r:void 0})})}Be={node:lt,item:Xt,setItem:Fr,index:Qt,setIndex:zr}}m.set(K,Be),l[w]=Be.node}for(let[w,K]of d)m.has(w)||(I(K.node),K.node.parentNode&&D.removeChild(K.node));if(_===0){c=0;let w=d;d=m,m=w,P=!0,u=0;return}S.clear();for(let w=0;w<c;w++)S.set(a[w],w);v.length<_&&(v=new Array(_),x=new Array(_));let q=0;for(let w=0;w<_;w++){let K=S.get(H[w]);K!==void 0&&(v[q]=w,x[q]=K,q++)}let Ie=ec(x,q);h.length<_?h=new Uint8Array(_):h.fill(0,0,_);for(let w=0;w<Ie.length;w++)h[v[Ie[w]]]=1;let J=o;for(let w=_-1;w>=0;w--){let K=l[w];h[w]||K.nextSibling!==J&&D.insertBefore(K,J),J=K}let F=a===i?s:i;F.length<_&&(F.length=_);for(let w=0;w<_;w++)F[w]=H[w];a=F,c=_;let X=d;d=m,m=X,P=!0,C()};function C(){if(u===0)return;let k=u;u=0,j(()=>{for(let _=0;_<k;_++){let D=y[_];D.setItem(b[_]),D.setIndex(p[_]),y[_]=void 0,b[_]=void 0}})}let T=Q(Je);return A(r,()=>{if(!z){z=!0,T();for(let k of d.values())I(k.node),k.node.parentNode?.removeChild(k.node);o.parentNode&&o.parentNode.removeChild(o),O=!1,d.clear(),m.clear(),E.clear(),S.clear(),c=0,y.length=0,b.length=0,p.length=0,u=0}}),P||queueMicrotask(()=>{!P&&!z&&r.parentNode&&Je()}),r}function nc(e){let n=document.createDocumentFragment();for(let t of e)if(!(t==null||typeof t=="boolean"))if(Array.isArray(t))for(let r of t)r==null||typeof r=="boolean"||n.appendChild(wr(r));else n.appendChild(wr(t));return n}function wr(e){if(e==null)return document.createTextNode("");if(e instanceof Node)return e;if(typeof e=="function"){let n=e();return n instanceof Node?n:document.createTextNode(String(n??""))}return document.createTextNode(String(e))}var rc=new Set(["script","style"]),oc=new Set(["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"]),Er=new Set(["svg","circle","ellipse","g","line","path","polygon","polyline","rect","text","tspan","defs","clipPath","mask","pattern","linearGradient","radialGradient","stop","use","symbol","marker"]),kr=new WeakMap;function ic(e){let n=e.length-1,t=e[0];for(let p=0;p<n;p++)t+=`\0${p}\0${e[p+1]}`;let r=0,o=t.length;function i(){for(;r<o&&(t[r]===" "||t[r]===" "||t[r]===`
|
|
398
|
+
`||t[r]==="\r");)r++}function s(){if(t.charCodeAt(r)!==0)return-1;let p=r;r++;let u=0;for(;r<o&&t.charCodeAt(r)!==0;)u=u*10+(t.charCodeAt(r)-48),r++;return r<o&&r++,u<0||u>=n?(r=p,-1):u}function a(){let p=r;for(;r<o;){let u=t.charCodeAt(r);if(u>=97&&u<=122||u>=65&&u<=90||u>=48&&u<=57||u===45)r++;else break}return t.slice(p,r)}function c(){if(i(),t[r]!=="=")return{kind:"bool"};r++,i();let p=s();if(p>=0)return{kind:"expr",idx:p};let u=t[r];if(u==='"'||u==="'"){r++;let l=[],g=[],h="";for(;r<o&&t[r]!==u;){let S=s();S>=0?(l.push(h),h="",g.push(S)):h+=t[r++]}return r<o&&r++,l.push(h),g.length===0?{kind:"static",value:l[0]}:{kind:"mixed",statics:l,exprs:g}}{let l=[],g=[],h="";for(;r<o;){let S=t.charCodeAt(r);if(S===32||S===9||S===10||S===13||S===62)break;let v=s();v>=0?(l.push(h),h="",g.push(v)):h+=t[r++]}return l.push(h),g.length===0?{kind:"static",value:l[0]}:{kind:"mixed",statics:l,exprs:g}}}function d(){let p=[];for(;r<o&&(i(),!(t[r]===">"||t[r]==="/"));){let u=r;for(;r<o;){let h=t.charCodeAt(r);if(h>=97&&h<=122||h>=65&&h<=90||h>=48&&h<=57||h===45||h===58||h===95||h===46)r++;else break}let l=t.slice(u,r);if(!l)break;let g=c();l.startsWith("on:")?g.kind==="expr"&&p.push({t:3,name:l.slice(3),idx:g.idx}):g.kind==="bool"?p.push({t:4,name:l}):g.kind==="static"?p.push({t:0,name:l,value:g.value}):g.kind==="expr"?p.push({t:1,name:l,idx:g.idx}):g.kind==="mixed"&&p.push({t:2,name:l,statics:g.statics,exprs:g.exprs})}return p}function m(p){return p.replace(/\s+/g," ")}function y(p){let u="";for(;r<o&&t[r]!=="<";){let g=s();if(g>=0){let h=m(u);h&&p.push({t:1,value:h}),u="",p.push({t:2,idx:g})}else u+=t[r++]}let l=m(u);l&&p.push({t:1,value:l})}function b(){let p=[];for(;r<o&&!(t[r]==="<"&&r+1<o&&t[r+1]==="/");)if(t[r]==="<"){let u=t[r+1];if(u==="!"){if(t.startsWith("<!--",r)){let v=t.indexOf("-->",r+4);r=v===-1?o:v+3}else if(t.startsWith("<![CDATA[",r)){let v=t.indexOf("]]>",r+9);r=v===-1?o:v+3}else{let v=t.indexOf(">",r);r=v===-1?o:v+1}continue}if(u==="?"){let v=t.indexOf(">",r);r=v===-1?o:v+1;continue}if(!(u>="a"&&u<="z")&&!(u>="A"&&u<="Z")){p.push({t:1,value:"<"}),r++;continue}r++;let l=a(),g=d();i();let h=oc.has(l),S=t[r]==="/";if(S&&r++,r<o&&r++,h||S)p.push({t:0,el:{tag:l,svg:Er.has(l),attrs:g,children:[]}});else{let v=b();if(rc.has(l.toLowerCase())){for(let x=0;x<v.length;x++)if(v[x].t===2)throw new Error(`html: dynamic \${...} expressions are not allowed inside <${l}> (raw-text context). Build the content separately and append it as a Node.`)}t[r]==="<"&&r+1<o&&t[r+1]==="/"&&(r+=2,a(),i(),r<o&&t[r]===">"&&r++),p.push({t:0,el:{tag:l,svg:Er.has(l),attrs:g,children:v}})}}else y(p);return p}return b()}function Kt(e,n){let t=e.svg?document.createElementNS($,e.tag):document.createElement(e.tag);for(let r=0;r<e.attrs.length;r++){let o=e.attrs[r];switch(o.t){case 0:t.setAttribute(o.name,o.value);break;case 1:{let i=o.name,s=n[o.idx];typeof s=="function"?A(t,tt(t,i,s)):ee(t,i,s,{syncValueProperty:!1,label:"html"});break}case 2:{let i=o.statics[0];for(let s=0;s<o.exprs.length;s++){let a=n[o.exprs[s]];i+=(a==null?"":String(a))+o.statics[s+1]}ee(t,o.name,i,{syncValueProperty:!1,label:"html"});break}case 3:{let i=n[o.idx];typeof i=="function"?t.addEventListener(o.name,i):!1;break}case 4:t.setAttribute(o.name,"");break}}for(let r=0;r<e.children.length;r++){let o=e.children[r];switch(o.t){case 0:t.appendChild(Kt(o.el,n));break;case 1:t.appendChild(document.createTextNode(o.value));break;case 2:{let i=n[o.idx];if(typeof i=="function"){let s=document.createComment("");t.appendChild(s),A(t,Te(s,i))}else if(i instanceof Node)t.appendChild(i);else if(Array.isArray(i))for(let s=0;s<i.length;s++){let a=i[s];a instanceof Node?t.appendChild(a):a!=null&&typeof a!="boolean"&&t.appendChild(document.createTextNode(String(a)))}else i!=null&&typeof i!="boolean"&&t.appendChild(document.createTextNode(String(i)));break}}}return t}function _r(e,...n){let t=kr.get(e);if(t||(t=ic(e),kr.set(e,t)),t.length===1&&t[0].t===0)return Kt(t[0].el,n);let r=document.createElement("div");for(let o=0;o<t.length;o++){let i=t[o];switch(i.t){case 0:r.appendChild(Kt(i.el,n));break;case 1:r.appendChild(document.createTextNode(i.value));break;case 2:{let s=n[i.idx];if(s instanceof Node)r.appendChild(s);else if(typeof s=="function"){let a=document.createComment("bind:htm");r.appendChild(a),A(r,Te(a,s))}else if(Array.isArray(s))for(let a=0;a<s.length;a++){let c=s[a];c instanceof Node?r.appendChild(c):c!=null&&typeof c!="boolean"&&r.appendChild(document.createTextNode(String(c)))}else s!=null&&typeof s!="boolean"&&r.appendChild(document.createTextNode(String(s)));break}}}return r.childNodes.length===1&&r.firstChild instanceof Element?r.firstChild:r}function sc(e,n,t){let r=document.createComment("keep-alive"),o=new Map,i=[],s=t?.max??10;s===0&&ie()&&void 0;let a,c=null,d=!1,m=!1,y=()=>{if(m)return;let p=e(),u=r.parentNode;if(!u||d&&p===a)return;c?.parentNode&&u.removeChild(c),a=p;let l=o.get(p);if(l){let g=i.indexOf(p);g!==-1&&(i.splice(g,1),i.push(p))}else{let g=n[p];if(!g){c=null,d=!0;return}if(l=g(),l instanceof DocumentFragment){let h=document.createElement("div");h.style.display="contents",h.appendChild(l),l=h}if(o.set(p,l),i.push(p),s>0&&i.length>s){let h=i.shift(),S=o.get(h);S&&(I(S),S.parentNode&&S.parentNode.removeChild(S),o.delete(h))}}u.insertBefore(l,r.nextSibling),c=l,d=!0},b=Q(y);return d||queueMicrotask(()=>{!d&&r.parentNode&&y()}),A(r,()=>{m=!0,b();for(let p of o.values())I(p),p.parentNode&&p.parentNode.removeChild(p);o.clear(),i.length=0,c=null}),r}function ac(e,n){if(!n)throw new Error("[SibuJS mount] container element not found. Make sure the DOM element exists before calling mount().");typeof e=="function"||e instanceof Node;let t=typeof performance<"u"?performance.now():0,r=typeof e=="function"?e():e,o=typeof performance<"u"?performance.now()-t:0;n.appendChild(r);let i=globalThis.__SIBU_DEVTOOLS_GLOBAL_HOOK__;return i&&i.emit("app:init",{rootElement:r,container:n,duration:o}),{node:r,unmount(){i&&i.emit("app:unmount",{rootElement:r}),I(r),r.parentNode&&r.parentNode.removeChild(r)}}}function cc(e,n){let t=document.createComment("portal"),r=n||document.body,o=null,i=!1;return queueMicrotask(()=>{if(!i)try{o=e(),r.appendChild(o)}catch(s){queueMicrotask(()=>{R(s,{phase:"render",name:"Portal",node:t.parentNode?t:void 0})})}}),A(t,()=>{i=!0,o&&(I(o),o.remove(),o=null)}),t}function uc(e,n="default"){if(e==null||!Object.hasOwn(e,n))return;let t=e[n];return typeof t=="function"?t:void 0}function Ar(e,n,t){return t.length===0?e.splice(n):e.splice(n,...t)}function lc(e=[]){let[n,t]=L([...e]);return[n,{push(...o){t(i=>[...i,...o])},pop(){let o;return t(i=>{let s=[...i];return o=s.pop(),s}),o},shift(){let o;return t(i=>{let s=[...i];return o=s.shift(),s}),o},unshift(...o){t(i=>[...o,...i])},splice(o,...i){let s=[];return t(a=>{let c=[...a];return s=Ar(c,o,i),s.length===0&&i.length<=1?a:c}),s},remove(o){t(i=>i.filter((s,a)=>a!==o))},removeWhere(o){t(i=>{let s=i.findIndex(o);return s===-1?i:i.filter((a,c)=>c!==s)})},set(o){t([...o])},update(o,i){t(s=>s.map((a,c)=>c===o?i:a))},updateWhere(o,i){t(s=>s.map(a=>o(a)?i(a):a))},sort(o){t(i=>[...i].sort(o))},reverse(){t(o=>[...o].reverse())},filter(o){t(i=>i.filter(o))},map(o){t(i=>i.map(o))},clear(){t([])}}]}function dc(e=[]){let n=[...e],t=null,r={__v:0};function o(){t=null,r.__v++,Ae(r)||Me(r)}function i(){if(xe(r),t===null){let a=n.slice();t=Object.freeze(a)}return t}return[i,{push(...a){a.length!==0&&(n.push(...a),o())},pop(){if(n.length===0)return;let a=n.pop();return o(),a},shift(){if(n.length===0)return;let a=n.shift();return o(),a},unshift(...a){a.length!==0&&(n.unshift(...a),o())},splice(a,...c){let d=Ar(n,a,c);return(d.length>0||c.length>1)&&o(),d},remove(a){a<0||a>=n.length||(n.splice(a,1),o())},removeWhere(a){let c=n.findIndex(a);c!==-1&&(n.splice(c,1),o())},set(a){n=[...a],o()},update(a,c){a<0||a>=n.length||Object.is(n[a],c)||(n[a]=c,o())},updateWhere(a,c){let d=!1;for(let m=0;m<n.length;m++)if(a(n[m])){let y=c(n[m]);Object.is(n[m],y)||(n[m]=y,d=!0)}d&&o()},sort(a){n.length<=1||(n.sort(a),o())},reverse(){n.length<=1||(n.reverse(),o())},filter(a){let c=n.filter(a);c.length!==n.length&&(n=c,o())},map(a){let c=!1;for(let d=0;d<n.length;d++){let m=a(n[d],d);Object.is(n[d],m)||(n[d]=m,c=!0)}c&&o()},clear(){n.length!==0&&(n=[],o())}}]}function fc(e,n){let[t,r]=L(n),[o,i]=L(!1),[s,a]=L(null),[c,d]=L(0),m=0,y=!1,b=null,p=()=>{if(b===null)return;let l=b;b=null;try{l.abort()}catch{}},u=Y(()=>{if(c(),y)return;p();let l=++m,g=typeof AbortController<"u"?new AbortController:null;b=g,j(()=>{i(!0),a(null)});let h=()=>y||l!==m,S;try{S=e({signal:g?g.signal:void 0})}catch(v){if(h())return;j(()=>{a(v),i(!1)});return}S.then(v=>{h()||(b=null,j(()=>{r(v),i(!1)}))},v=>{h()||(b=null,j(()=>{a(v),i(!1)}))})});return{value:t,loading:o,error:s,refresh:()=>{y||d(l=>l+1)},dispose:()=>{y||(y=!0,u(),p())}}}function Oe(e,n,t){if(Object.is(e,n))return!0;if(e==null||n==null||typeof e!=typeof n||typeof e!="object")return!1;let r=e,o=n;if(r.constructor!==o.constructor)return!1;if(e instanceof Date)return e.getTime()===n.getTime();if(e instanceof RegExp){let a=n;return e.source===a.source&&e.flags===a.flags}t||(t=new Map);let i=t.get(r);if(i?.has(o))return!0;if(i||(i=new Set,t.set(r,i)),i.add(o),e instanceof Map){let a=n;if(e.size!==a.size)return!1;for(let[c,d]of e)if(!a.has(c)||!Oe(d,a.get(c),t))return!1;return!0}if(e instanceof Set){let a=n;if(e.size!==a.size)return!1;for(let c of e)if(!a.has(c))return!1;return!0}if(e instanceof ArrayBuffer){let a=new Uint8Array(e),c=new Uint8Array(n);if(a.length!==c.length)return!1;for(let d=0;d<a.length;d++)if(a[d]!==c[d])return!1;return!0}if(e instanceof DataView){if(!(n instanceof DataView)||e.byteLength!==n.byteLength)return!1;for(let a=0;a<e.byteLength;a++)if(e.getUint8(a)!==n.getUint8(a))return!1;return!0}if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(n)){let a=e,c=n;if(a.length!==c.length)return!1;for(let d=0;d<a.length;d++)if(a[d]!==c[d])return!1;return!0}if(Array.isArray(e))return!Array.isArray(n)||e.length!==n.length?!1:e.every((a,c)=>Oe(a,n[c],t));if(e instanceof Number||e instanceof String||e instanceof Boolean)return Object.is(e.valueOf(),n.valueOf());if(typeof URL<"u"&&e instanceof URL)return e.href===n.href;if(e instanceof Error){let a=n;return e.name===a.name&&e.message===a.message&&Oe(e.cause,a.cause,t)&&Cr(r,o,t)}let s=Object.getPrototypeOf(r);return s!==Object.prototype&&s!==null?!1:Cr(r,o,t)}function Cr(e,n,t){let r=Object.keys(e),o=Object.keys(n);return r.length!==o.length?!1:r.every(i=>Object.hasOwn(n,i)&&Oe(e[i],n[i],t))}function pc(e){return L(e,{equals:(n,t)=>Oe(n,t)})}function Le(e,n){let t=n?.name,r=n?.equals,o={};o._d=!1,o._init=!1,o._f=!1,o._g=e,o.__v=0;let i=!1,s=!1,a,c=()=>{o._d||s||(o._d=!0)};c._c=1,c._sig=o;let d=()=>{let u=e();o._v=r&&o._init&&r(o._v,u)?o._v:u,o._d=!1,o._init=!0};Q(()=>{let u=!0;try{o._v=e(),o._d=!1,o._init=!0,u=!1}finally{u&&(o._d=!0)}},c);let m=globalThis.__SIBU_DEVTOOLS_GLOBAL_HOOK__,y=()=>{if(!o._d||s||a!==void 0)return;let u=o._v;i=!0;try{me(d,c),Object.is(u,o._v)||o.__v++}catch(l){a={error:l},o.__v++,s?o._d=!0:o._f=!0}finally{i=!1,s&&ze(c)}m&&!s&&!Object.is(u,o._v)&&m.emit("computed:update",{signal:o,oldValue:u,newValue:o._v})};o._validate=y;let b=()=>{let{error:u}=a;throw a=void 0,s&&(o._d=!1),u};function p(){if(i)throw new Error(`[SibuJS] Circular dependency detected in derived${t?` "${t}"`:""}. A derived signal cannot read itself (directly or through a chain).`);return Hn()||s?(o._d&&(y(),a!==void 0&&b()),o._v):(o._d&&(y(),a!==void 0&&(xe(o),b())),xe(o),o._v)}return t&&(p.__name=t,o.__name=t),p.__signal=o,p.dispose=()=>{if(s)return;s=!0,o._d=a!==void 0,ze(c);let u=globalThis.__SIBU_DEVTOOLS_GLOBAL_HOOK__;if(u)try{u.emit("computed:destroy",{signal:o,getter:p})}catch{}},m&&m.emit("computed:create",{signal:o,name:t,getter:p}),p}function mc(e){let[n,t]=L(e);return{get current(){return n()},set current(r){t(r)}}}function Lr(e,n,t){Object.defineProperty(e,n,{value:t,writable:!0,enumerable:!0,configurable:!0})}function gc(e){e!==null&&typeof e=="object"&&Array.isArray(e);let n=Object.create(null);Object.keys(e).forEach(c=>{let[d,m]=L(e[c]);Lr(n,c,[d,m])});let t=new Proxy({},{get(c,d){if(typeof d=="string"&&Object.hasOwn(n,d)){let m=n[d][0];return m()}return Reflect.get(c,d)},set(){throw new Error("[SibuJS store] Direct mutation is not allowed. Use actions.setState() to update store properties.")}}),r=()=>{let c={};return Object.keys(n).forEach(d=>{Lr(c,d,n[d][0]())}),c};return[t,{setState:c=>{let d=r(),m=typeof c=="function"?c(d):c;j(()=>{Object.entries(m).forEach(([y,b])=>{Object.hasOwn(n,y)&&n[y][1](b)})})},reset:()=>{j(()=>{Object.keys(e).forEach(c=>{let d=n[c][1];d(e[c])})})},subscribe:c=>{let d=!0;return Y(()=>{let m=r();if(d){d=!1;return}ve();try{c(m)}finally{Se()}})},subscribeKey:(c,d)=>{let m,y=!0;return Y(()=>{let b=n[c][0]();if(y){m=b,y=!1;return}if(!Object.is(b,m)){let p=m;m=b,ve();try{d(b,p)}finally{Se()}}})},getSnapshot:r}]}function bc(e,n){if(re())return()=>{};let t,r=!0;return Q(()=>{let s=e();if(r){t=s,r=!1;return}if(!Object.is(s,t)){let a=t;t=s,ve();try{n(s,a)}finally{Se()}}})}function hc(e,n,t){return[Le(e,t),i=>{j(()=>n(i))}]}function yc(e){let n=e();return ie()&&queueMicrotask(()=>{try{e()}catch(t){console.warn("[SibuJS strict] second run threw:",t)}}),n}function vc(e){if(!ie())return Y(e);let n=Y(e),t=null;return queueMicrotask(()=>{try{t=Y(e)}catch(r){console.warn("[SibuJS strictEffect] second run threw:",r)}}),()=>{n(),t&&t()}}function Nr(e,n){return re()?()=>{}:U(e,n)}var Ut="data-sibu-enhanced",Jt=new WeakMap;function Rr(e,n){let t=0;for(;e.length>0;){let r=e.splice(0);for(let o=0;o<r.length;o++){if(t>=Ve){let i=r.length-o+e.length;e.length=0,je(n,t,i);return}t++;try{r[o]()}catch(i){typeof console<"u"&&console.error(`[SibuJS ${n}] teardown error:`,i)}}}}var Mr=["text","attr","class","show","on","cleanup"];function Pr(e,n){if(n==null)return e;if(typeof n!="string")return n;let t=n.startsWith("@")?`[data-ref="${n.slice(1)}"]`:n;try{return e.querySelector(t)}catch{return null}}function Ue(e,n){return Nr(n,e)}function Sc(e){if(e instanceof HTMLInputElement){if(e.type==="checkbox")return e.checked;if(e.type==="number"||e.type==="range")return e.value===""?null:Number(e.value)}return e instanceof HTMLSelectElement&&e.multiple?Array.from(e.selectedOptions,n=>n.value):e.value}function xc(e,n){if(e instanceof HTMLInputElement&&e.type==="checkbox"){e.checked=!!n;return}if(e instanceof HTMLSelectElement&&e.multiple){let r=Array.isArray(n)?n.map(String):[];for(let o of Array.from(e.options))o.selected=r.includes(o.value);return}let t=n==null?"":String(n);e.value!==t&&(e.value=t)}function Tc(e,n,t,r){let o=`ctx.each[${r}]`;if(ie())for(let i of Object.keys(t))Mr.includes(i),`${o}${i}${Mr.join(", ")}`;if(t.text!==void 0&&(t.text,`${o}`,e.text(n,t.text)),t.attr!==void 0)for(let i of Object.keys(t.attr)){let s=t.attr[i];`${o}${i}`,e.attr(n,i,s)}if(t.class!==void 0)for(let i of Object.keys(t.class)){let s=t.class[i];`${o}${i}`,e.classed(n,i,s)}if(t.show!==void 0&&(t.show,`${o}`,e.show(n,t.show)),t.on!==void 0)for(let i of Object.keys(t.on)){let s=t.on[i];`${o}${String(i)}`,e.on(n,i,s)}t.cleanup!==void 0&&(t.cleanup,`${o}`,e.cleanup(t.cleanup))}function st(e,n){let t=typeof e=="string"?typeof document<"u"?document.querySelector(e):null:e;if(!t)return typeof console<"u"&&console.warn(`[SibuJS enhance] no element matched ${JSON.stringify(e)} \u2014 nothing enhanced.`),()=>{};if(t.getAttribute(Ut)==="true")return ie()&&typeof console<"u"&&console.warn("[SibuJS enhance] element is already enhanced; ignoring re-enhance.",t),()=>{};let r=[],o=Symbol("sibujs.enhance"),i=!1,s=!1,a=b=>s?!0:!1,c=(b,p,u)=>{if(a(b))return;let l=Pr(t,p);if(!l){typeof console<"u"&&console.warn(`[SibuJS enhance] target ${JSON.stringify(p)} not found under`,t);return}u(l)},d={root:t,ref:b=>Pr(t,b),refs:b=>{let p=b.startsWith("@")?`[data-ref="${b.slice(1)}"]`:b;try{return Array.from(t.querySelectorAll(p))}catch{return[]}},on:(b,p,u,l)=>{c("on",b,g=>{let h=S=>u(S,g);g.addEventListener(p,h,l),r.push(()=>g.removeEventListener(p,h,l))})},text:(b,p)=>{c("text",b,u=>{r.push(Ue(u,()=>{let l=p(),g=l==null?"":String(l);u.textContent!==g&&(u.textContent=g)}))})},attr:(b,p,u)=>{c("attr",b,l=>{r.push(Ue(l,()=>{let g=u(),h=g==null?null:String(g);ee(l,p,h,{syncValueProperty:!1,label:"enhance attr()"})}))})},classed:(b,p,u)=>{c("classed",b,l=>{r.push(Ue(l,()=>{l.classList.toggle(p,!!u())}))})},show:(b,p)=>{c("show",b,u=>{let l=u.hidden;r.push(Ue(u,()=>{u.hidden=!p()})),r.push(()=>{u.hidden=l})})},model:(b,p,u)=>{c("model",b,l=>{let g=l,[h,S]=p,v=u?.event??(g instanceof HTMLSelectElement||g instanceof HTMLInputElement&&(g.type==="checkbox"||g.type==="radio")?"change":"input");r.push(Ue(l,()=>{xc(g,h())}));let x=()=>S(Sc(g));g.addEventListener(v,x),r.push(()=>g.removeEventListener(v,x))})},each:(b,p)=>{if(a("each"))return;let u=typeof b=="string"?d.refs(b):Array.from(b);for(let l=0;l<u.length;l++){let g=u[l],h=p(g,l);h!=null&&Tc(d,g,h,l)}},cleanup:b=>{a("cleanup")||r.push(b)}},m;try{m=n(d);let b=m;if(b&&typeof b.then=="function")throw b.then(void 0,p=>{}),new Error("[SibuJS enhance] setup returned a promise")}catch(b){throw Rr(r,"enhance"),s=!0,b}typeof m=="function"&&r.push(m);let y=()=>{i||(i=!0,Jt.get(t)===o&&(Jt.delete(t),t.removeAttribute(Ut)),Ge(t,y),Rr(r,"enhance"),s=!0)};return A(t,y),Jt.set(t,o),t.setAttribute(Ut,"true"),y}function wc(e,n){if(typeof document>"u")return()=>{};let t=[];try{for(let r of Array.from(document.querySelectorAll(e)))t.push(st(r,n))}catch(r){for(let o=t.length-1;o>=0;o--)try{t[o]()}catch(i){typeof console<"u"&&console.error("[SibuJS enhanceAll] rollback error:",i)}throw t.length=0,r}return()=>{for(let r of t.splice(0))r()}}var Ec=/^[A-Za-z0-9_-]+$/,Dr=Symbol.for("sibujs.islands.lazy"),at=it(Symbol.for("sibujs.islands.registry.v1"),()=>new Map);function kc(e){return e[Dr]=!0,e}function _c(e,n){if(!Ec.test(e))throw new Error(`[SibuJS islands] name must match [A-Za-z0-9_-]+ (got: ${JSON.stringify(e.slice(0,32))})`);at.set(e,n)}function Ac(e){at.delete(e)}async function Cc(e){if(typeof e=="function"&&e[Dr]){let n=await e(),t=n.default??n;return typeof t=="function"?t:null}return e}function Lc(e=typeof document<"u"?document:null,n={}){if(!e||typeof e.querySelectorAll!="function")return()=>{};let t=[],r=[],o=!1;for(let i of Array.from(e.querySelectorAll("[data-sibu-island]"))){if(i.getAttribute("data-sibu-enhanced")==="true")continue;let s=i.getAttribute("data-sibu-island")??"";if(!at.has(s)){typeof console<"u"&&console.warn(`[SibuJS islands] no island registered for "${s}" \u2014 skipping. Call registerIsland("${s}", ...).`);continue}let a=!1,c=()=>{if(a||o)return;a=!0;let m=at.get(s);m&&Cc(m).then(y=>{if(!o){if(!y){typeof console<"u"&&console.warn(`[SibuJS islands] "${s}" loader produced no setup.`);return}try{let b=st(i,y);if(o){b();return}r.push(b),i.setAttribute("data-sibu-hydrated","true")}catch(b){typeof console<"u"&&console.error(`[SibuJS islands] "${s}" failed to mount:`,b)}}}).catch(y=>{typeof console<"u"&&console.error(`[SibuJS islands] "${s}" failed to load:`,y)})},d=i.getAttribute("data-sibu-load")||"load";t.push(Nc(d,i,c,n))}return()=>{o=!0;for(let i of t.splice(0))i();for(let i of r.splice(0))i()}}function Nc(e,n,t,r){switch(e){case"idle":{if(typeof requestIdleCallback<"u"){let i=requestIdleCallback(t);return()=>cancelIdleCallback(i)}let o=setTimeout(t,1);return()=>clearTimeout(o)}case"visible":{if(typeof IntersectionObserver>"u")return queueMicrotask(t),()=>{};let o=new IntersectionObserver(i=>{for(let s of i)s.isIntersecting&&(o.disconnect(),t())},{rootMargin:r.rootMargin,threshold:r.threshold});return o.observe(n),()=>o.disconnect()}case"interaction":{let o=["pointerdown","focusin","keydown","touchstart"],i=()=>{s(),t()},s=()=>{for(let a of o)n.removeEventListener(a,i)};for(let a of o)n.addEventListener(a,i,{passive:!0});return s}case"media":{let o=n.getAttribute("data-sibu-media")||"(min-width: 0px)";if(typeof matchMedia>"u")return queueMicrotask(t),()=>{};let i=matchMedia(o);if(i.matches)return queueMicrotask(t),()=>{};let s=()=>{i.matches&&(i.removeEventListener("change",s),t())};return i.addEventListener("change",s),()=>i.removeEventListener("change",s)}default:return queueMicrotask(t),()=>{}}}function Hr(e){return e}var Jd=1024*1024;function $r(e){if(e===null||typeof e!="object"&&typeof e!="function")return null;let n;try{n=e.then}catch(t){return Promise.reject(t)}return typeof n!="function"?null:new Promise((t,r)=>{queueMicrotask(()=>{try{Reflect.apply(n,e,[t,r])}catch(o){r(o)}})})}function Rc(e){let[n,t]=L(e()),r=!1,o=!1,i=n(),s=()=>{r=!1,!o&&t(i)},a=()=>{r||(r=!0,queueMicrotask(()=>{typeof requestAnimationFrame=="function"?requestAnimationFrame(s):s()}))},c=Q(()=>{i=e(),a()}),d=(()=>n());return d.dispose=()=>{o||(o=!0,c())},d}var Or=16;function Mc(e){let n=globalThis;if(typeof n.requestIdleCallback=="function"){n.requestIdleCallback(e,{timeout:Or*4});return}if(typeof requestAnimationFrame=="function"){requestAnimationFrame(()=>e());return}setTimeout(e,Or)}function Pc(){let[e,n]=L(!1),t=0;function r(o){t++,n(!0);let i=!1,s=()=>{i||(i=!0,t--,t===0&&n(!1))},a=c=>{s(),R(c,{phase:"async",name:"transition"})};Mc(()=>{try{let c=$r(o());c?c.then(s,a):s()}catch(c){a(c)}})}return{pending:e,start:r}}function Dc(){return new Promise(e=>{queueMicrotask(()=>{typeof requestAnimationFrame=="function"?requestAnimationFrame(()=>e()):e()})})}var ut={};en(ut,{RenderProp:()=>Kc,assertType:()=>eu,compose:()=>Wc,createGuard:()=>tu,createSlots:()=>Jc,defineComponent:()=>Gc,defineSlottedComponent:()=>Yc,defineStrictComponent:()=>Qc,globalStore:()=>Fc,machine:()=>$c,optimistic:()=>Ic,optimisticList:()=>Bc,persisted:()=>Oc,timeline:()=>Vc,validateProps:()=>jr,validators:()=>Xc,withBoundary:()=>Uc,withDefaults:()=>qc,withProps:()=>Zc,withWrapper:()=>zc});var Hc=new Set(["__proto__","constructor","prototype"]);function Yt(e){return Hc.has(e)}function ct(e){let n={};for(let t of Object.keys(e))Yt(t)||(n[t]=e[t]);return n}function $c(e){let[n,t]=L(e.initial),[r,o]=L(e.context||{}),i=e.initial,s=r(),a=[],c=!1;function d(){c=!0;try{for(;a.length>0;)m(a.shift())}catch(l){throw a.length=0,l}finally{c=!1}}function m(l){let g=e.states[i];if(!g?.on)return;let h=g.on[l];if(!h)return;let S,v,x;typeof h=="string"?S=h:(S=h.target,v=h.guard,x=h.action);let E=s;if(v&&!v(E))return;g.exit&&g.exit(E);let P=E;if(x){let z=x(E);P={...E,...ct(z)}}i=S,s=P,j(()=>{x&&o(P),t(S)});let O=e.states[S];O?.entry&&O.entry(s)}function y(l){a.push(l),!c&&d()}let b=e.states[e.initial];if(b?.entry){c=!0;try{b.entry(s)}catch(l){throw a.length=0,l}finally{c=!1}a.length>0&&d()}function p(l){return n()===l}function u(l){let g=n(),h=e.states[g];if(!h?.on)return!1;let S=h.on[l];return S?typeof S=="string"?!0:S.guard?S.guard(r()):!0:!1}return{state:n,context:r,send:y,matches:p,can:u}}function Oc(e,n,t={}){let r=(()=>{try{return t.session?typeof sessionStorage<"u"?sessionStorage:null:typeof localStorage<"u"?localStorage:null}catch{return null}})(),o=t.serialize||JSON.stringify,i=(h,S)=>Yt(h)?void 0:S,s=t.deserialize||(h=>JSON.parse(h,i)),a=t.encrypt,c=t.decrypt,d=t.session?!1:t.syncTabs??!0,m=n;try{let h=r?r.getItem(e):null;if(h!==null){c&&(h=c(h));let S=s(h);m=t.validate&&!t.validate(S)?n:S}}catch{}let[y,b]=L(m),p=!1,u=Y(()=>{let h=y();if(!p)try{let S=o(h);a&&(S=a(S)),r?.setItem(e,S)}catch{}}),l=null;return d&&r&&typeof window<"u"&&(l=h=>{if(!(h.storageArea!==r||h.key!==e)){if(h.newValue===null){p=!0;try{b(n)}finally{p=!1}return}try{let S=h.newValue;c&&(S=c(S));let v=s(S);if(t.validate&&!t.validate(v))return;p=!0;try{b(v)}finally{p=!1}}catch{}}},window.addEventListener("storage",l)),Object.defineProperty(b,"dispose",{value:()=>{u(),l&&typeof window<"u"&&(window.removeEventListener("storage",l),l=null)},enumerable:!1,writable:!1,configurable:!1}),[y,b]}function Ic(e){let[n,t]=L(e),[r,o]=L(!1),i=0,s=0;async function a(c,d){let m=++s,y=n();t(c),i++,o(!0);try{let b=await d();s===m&&t(b)}catch{s===m&&t(y)}finally{i--,i<=0&&(i=0,o(!1))}}return{value:n,pending:r,update:a}}function Bc(e){let n=0,t=0,r=0,o=new Map,i=[];for(let C of e){let T={id:n++,key:t++,base:C,claims:[],visible:!0,refs:0};o.set(T.id,T),i.push(T.id)}function s(C){let T=C.claims;return T.length>0?T[T.length-1].value:C.base}function a(C,T){let N=C.claims;for(let k=N.length-1;k>=0;k--)if(N[k].opId<T)return N[k].value;return C.base}function c(C,T,N){let k={opId:T,value:N,settled:!1},_=C.claims,D=_.length;for(;D>0&&_[D-1].opId>T;)D--;return _.splice(D,0,k),k}function d(C,T){let N=C.claims.indexOf(T);N!==-1&&C.claims.splice(N,1)}function m(C){let T=C.claims,N=0;for(;N<T.length&&T[N].settled;)C.base=T[N].value,N++;N>0&&T.splice(0,N)}let[y,b]=L(i.map(C=>s(o.get(C)))),[p,u]=L(!1),l=0,g=new Set;function h(){let C=new Array(i.length);for(let T=0;T<i.length;T++)C[T]=s(o.get(i[T]));return C}function S(C){j(()=>{let T=!1;try{T=C()}finally{u(l>0),T&&b(h())}})}function v(C){let T=o.get(C);return!T||!T.visible?!1:(T.visible=!1,i=i.filter(N=>N!==C),!0)}function x(C){let T=[];for(let H of C){let q=o.get(H);!q||q.visible||g.has(H)||T.push(H)}if(T.length===0)return!1;let N=new Array(i.length+T.length),k=0,_=0,D=0;for(;k<i.length&&_<T.length;){let H=o.get(i[k]).key,q=o.get(T[_]).key;N[D++]=H<=q?i[k++]:T[_++]}for(;k<i.length;)N[D++]=i[k++];for(;_<T.length;)N[D++]=T[_++];for(let H of T)o.get(H).visible=!0;return i=N,!0}function E(C){for(let T of C){let N=o.get(T);N&&N.refs++}}function P(C){for(let T of C){let N=o.get(T);N&&(N.refs--,N.refs<=0&&!N.visible&&(o.delete(T),g.delete(T)))}}function O(C){if(P(C),l--,l<=0&&(l=0,g.clear(),o.size!==i.length))for(let[T,N]of o)N.visible||o.delete(T)}async function z(C,T){let N=++r,k={id:n++,key:t++,base:C,claims:[],visible:!1,refs:1},_=c(k,N,C);S(()=>(o.set(k.id,k),k.visible=!0,i=[...i,k.id],l++,!0));let D,H=!1;try{D=await T()}catch{H=!0}S(()=>{try{if(H)return g.add(k.id),d(k,_),v(k.id);let q=s(k);return _.value=D,_.settled=!0,m(k),k.visible&&!Object.is(q,s(k))}finally{O([k.id])}})}async function oe(C,T){let N=++r,k=[];for(let D of i)C(a(o.get(D),N))&&k.push(D);S(()=>{if(E(k),l++,k.length===0)return!1;let D=new Set(k);for(let H of k){let q=o.get(H);q&&(q.visible=!1)}return i=i.filter(H=>!D.has(H)),!0});let _=!1;try{await T()}catch{_=!0}S(()=>{try{if(!_){for(let D of k)g.add(D);return!1}return x(k)}finally{O(k)}})}async function Je(C,T,N){let k=++r,_=[];for(let J of i){let F=o.get(J),X=a(F,k);C(X)&&_.push({row:F,nextValue:{...X,...T}})}let D=_.map(J=>J.row.id),H=[];S(()=>{E(D),l++;let J=!1;for(let F of _){let X=s(F.row);H.push(c(F.row,k,F.nextValue)),F.row.visible&&!Object.is(X,s(F.row))&&(J=!0)}return J});let q,Ie=!1;try{q=await N()}catch{Ie=!0}S(()=>{try{let J=!1;for(let F=0;F<H.length;F++){let X=_[F].row,w=H[F],K=s(X);Ie?d(X,w):(w.value=q,w.settled=!0),m(X),X.visible&&!Object.is(K,s(X))&&(J=!0)}return J}finally{O(D)}})}return{items:y,pending:p,add:z,remove:oe,update:Je}}function Vc(e,n=100){if(!Number.isSafeInteger(n)||n<1)throw new RangeError(`[timeline] maxHistory must be a positive safe integer, got ${n}`);let[t,r]=L([e]),[o,i]=L(0),s=Le(()=>t()[o()]),a=Le(()=>o()>0),c=Le(()=>o()<t().length-1);function d(l){let g=s(),h=typeof l=="function"?l(g):l;if(Object.is(h,g))return;let S=t(),v=o(),x=S.slice(0,v+1);x.push(h),j(()=>{x.length>n?(x.shift(),r(x),i(x.length-1)):(r(x),i(v+1))})}function m(){a()&&i(o()-1)}function y(){c()&&i(o()+1)}function b(){j(()=>{r([e]),i(0)})}function p(l){let g=t();l>=0&&l<g.length&&i(l)}function u(){s.dispose(),a.dispose(),c.dispose()}return{value:s,set:d,undo:m,redo:y,canUndo:a,canRedo:c,history:t,index:o,reset:b,jumpTo:p,dispose:u}}var Br=Promise.prototype.then;function Ir(e,n,t){let r=!1,o=i=>{r||(r=!0,(i?n:t)())};try{Reflect.apply(Br,e,[void 0,()=>o(!0)])}catch{queueMicrotask(()=>o(!0));return}queueMicrotask(()=>o(!1))}function Vr(e){if(e===null||typeof e!="object"&&typeof e!="function")return null;let n;try{n=e.then}catch(u){return{promise:Promise.reject(u),failedEarly:!0,probe:l=>queueMicrotask(l)}}if(typeof n!="function")return null;let t,r,o=new Promise((u,l)=>{t=u,r=l}),i="invoking",s,a=[],c=u=>{if(i=u,u!=="invoking")for(let l of a.splice(0))l()},d=u=>{t(u),c("fulfilled")},m=u=>{r(u),c("rejected")},y=u=>{if(u===o){m(new TypeError("adopt: a thenable resolved to its own adoption"));return}if(u===null||typeof u!="object"&&typeof u!="function"){d(u);return}let l;try{l=u.then}catch(g){m(g);return}if(typeof l!="function"){d(u);return}b(u,l)},b=(u,l)=>{l===Br?(s=u,c("native")):c("invoking"),queueMicrotask(()=>{let g=!1,h=v=>{g||(g=!0,y(v))},S=v=>{g||(g=!0,m(v))};try{Reflect.apply(l,u,[h,S])}catch(v){S(v)}!g&&i==="invoking"&&c("pending")})};return b(e,n),{promise:o,failedEarly:!1,probe:(u,l)=>{let g=()=>{i==="native"?Ir(s,u,l):(i==="rejected"?u:l)()};i==="native"?Ir(s,u,l):i==="invoking"?a.push(g):queueMicrotask(i==="rejected"?u:l)}}}function jc(e){if(typeof structuredClone=="function")return structuredClone(e);let n=new WeakSet,t=r=>{if(r===null||typeof r!="object")return r;if(n.has(r))throw new Error("deepClone: circular reference");if(n.add(r),r instanceof Date)return new Date(r.getTime());if(r instanceof Map){let i=new Map;for(let[s,a]of r)i.set(t(s),t(a));return i}if(r instanceof Set){let i=new Set;for(let s of r)i.add(t(s));return i}if(Array.isArray(r))return r.map(t);let o={};for(let i of Object.keys(r))i!=="__proto__"&&(o[i]=t(r[i]));return o};return t(e)}function Fc(e){let n=jc(e.state),[t,r]=L({...n}),o=new Map,i=e.middleware||[];function s(u){if(o.size!==0){for(let l of Array.from(o.values()))if(l.active)try{l.callback(u)}catch(g){R(g,{phase:"event",name:"globalStore(subscribe)"})}}}let a=[],c=!1;function d(u,l=!0){if(a.push(u),c)return;c=!0;let g,h=!1;try{let S=!0,v=0;for(;v<a.length;){let x=a[v];a[v++]=void 0;try{x()}catch(E){S&&l?(h=!0,g=E):R(E,{phase:"event",name:"globalStore(dispatch)"})}S=!1}}finally{a.length=0,c=!1}if(h)throw g}function m(u,l){let g=e.actions[u];if(!g)throw new Error(`Unknown action: ${String(u)}`);let h=()=>{let S=t(),v=g(S,l),x=ct(v);r({...S,...x}),s(t())};d(()=>{if(i.length===0){h();return}let S=v=>{if(v>=i.length){h();return}let x=!1,E=!1,P=!0,O=()=>{if(E&&!x){!1,x=!0;return}if(x){!1;return}if(x=!0,P){S(v+1);return}let oe=()=>d(()=>S(v+1),!1);if(!z){oe();return}z.probe(()=>{E=!0,!1},oe)},z=null;try{z=Vr(i[v](t(),String(u),l,O))}catch(oe){throw E=!0,oe}finally{P=!1}z&&(z.failedEarly&&(E=!0),z.promise.then(void 0,oe=>{E=!0,R(oe,{phase:"async",name:"globalStore(middleware)"})}))};S(0)})}function y(u){return()=>u(t())}function b(u){let l=o.get(u);l||(l={callback:u,active:!0},o.set(u,l));let g=l;return()=>{o.get(u)===g&&(g.active=!1,o.delete(u))}}function p(){d(()=>{r({...n}),s(t())})}return{getState:t,select:y,dispatch:m,subscribe:b,reset:p}}function zc(e,n){return t=>n(e,t)}function qc(e,n){return t=>e({...n,...t})}function Wc(...e){return n=>e.reduceRight((t,r)=>r(t),n)}function Kc(e){return e.render(e.data())}function Uc(e,n){return t=>{let r=document.createElement("div");r.setAttribute("data-sibu-boundary",e);try{let o=n(t);r.appendChild(o)}catch(o){let i=document.createElement("div");i.setAttribute("data-sibu-boundary-error",e),i.style.cssText="color: red; border: 1px solid red; padding: 8px; margin: 4px;",i.textContent=`[${e}] ${o instanceof Error?o.message:String(o)}`,r.appendChild(i)}return r}}function Jc(e){return{renderSlot(n,t){let r=Object.hasOwn(e,n)?e[n]:void 0;if(r){let o=r();if(Array.isArray(o)){let i=document.createElement("div");i.style.display="contents";for(let s of o)i.appendChild(s);return i}return o}return t?t():null},hasSlot(n){return Object.hasOwn(e,n)}}}function Gc(e){let{defaults:n,setup:t}=e;return r=>{let o=n?{...n,...r}:r;return t(o)}}function Yc(e){let{defaults:n,setup:t}=e;return r=>{let o=n?{...n,...r}:r;return t(o)}}function Zc(e,n){return t=>e(n(t))}var Xc={string:((e,n)=>typeof e=="string"||`${n} must be a string, got ${typeof e}`),number:((e,n)=>typeof e=="number"||`${n} must be a number, got ${typeof e}`),boolean:((e,n)=>typeof e=="boolean"||`${n} must be a boolean, got ${typeof e}`),function:((e,n)=>typeof e=="function"||`${n} must be a function, got ${typeof e}`),object:((e,n)=>typeof e=="object"&&e!==null||`${n} must be an object`),array:((e,n)=>Array.isArray(e)||`${n} must be an array`),required:((e,n)=>e!=null||`${n} is required`),oneOf:(...e)=>(n,t)=>e.includes(n)||`${t} must be one of: ${e.join(", ")}`,instanceOf:e=>(n,t)=>n instanceof e||`${t} must be an instance of ${e.name}`,arrayOf:e=>(n,t)=>{if(!Array.isArray(n))return`${t} must be an array`;for(let r=0;r<n.length;r++){let o=e(n[r],`${t}[${r}]`);if(o!==!0)return o}return!0},shape:e=>(n,t)=>{if(typeof n!="object"||n===null)return`${t} must be an object`;for(let[r,o]of Object.entries(e)){let i=o(n[r],`${t}.${r}`);if(i!==!0)return i}return!0},optional:e=>(n,t)=>n==null?!0:e(n,t),range:(e,n)=>(t,r)=>typeof t!="number"?`${r} must be a number`:t>=e&&t<=n||`${r} must be between ${e} and ${n}`,pattern:e=>(n,t)=>typeof n!="string"?`${t} must be a string`:e.test(n)||`${t} must match pattern ${e}`};function jr(e,n){let t={...e};for(let[r,o]of Object.entries(n)){if(typeof o=="function")continue;let i=o.default;t[r]===void 0&&i!==void 0&&(t[r]=typeof i=="function"?i():i)}return t}function Qc(e){return n=>{let t=jr(n,e.props);return e.setup(t)}}function eu(e,n,t){}function tu(e){return n=>e(n,"value")===!0}typeof globalThis<"u"&&(globalThis.Sibu={...ut,...Gt,patterns:ut});})();
|