@uniweb/runtime 0.8.3 → 0.8.4

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.
@@ -1,2 +1,2 @@
1
- import{B as h,P as g,U as p,W as _,c as f,g as d}from"../assets/index-DFtjIARq.js";const a=[50,100,200,300,400,500,600,700,800,900,950],r=["light","medium","dark"],n={light:{bg:"var(--neutral-50)",text:"var(--neutral-950)",heading:"var(--neutral-900)",link:"var(--primary-600)"},medium:{bg:"var(--neutral-100)",text:"var(--neutral-950)",heading:"var(--neutral-900)",link:"var(--primary-600)"},dark:{bg:"var(--neutral-900)",text:"var(--neutral-50)",heading:"white",link:"var(--primary-400)"}};class i{constructor(t={}){this._data=t,this._palettes=t.palettes||t.colors||{},this._rawColors=t.colors||{},this._contexts=t.contexts||{},this._fonts=t.fonts||{},this._appearance=t.appearance||{default:"light"},this._foundationVars=t.foundationVars||{},this._css=t.css||null,Object.seal(this)}get css(){return this._css}get data(){return this._data}getColor(t,e=500){const s=this._palettes[t];return s&&s[e]||null}getPalette(t){return this._palettes[t]||null}getPaletteNames(){return Object.keys(this._palettes)}hasPalette(t){return t in this._palettes}getColorVar(t,e=500){return`var(--${t}-${e})`}getContextToken(t,e){const s=this._contexts[t];return s&&s[e]?s[e]:n[t]?.[e]||null}getContextTokens(t){const e=n[t]||{},s=this._contexts[t]||{};return{...e,...s}}getContextClass(t){return r.includes(t)?`context-${t}`:(console.warn(`Invalid context: ${t}. Using 'light'.`),"context-light")}isValidContext(t){return r.includes(t)}getValidContexts(){return[...r]}getAppearance(){return{default:this._appearance.default||"light",allowToggle:this._appearance.allowToggle||!1,respectSystemPreference:this._appearance.respectSystemPreference??!0,schemes:this._appearance.schemes||["light"]}}getDefaultScheme(){return this._appearance.default||"light"}supportsScheme(t){return(this._appearance.schemes||["light"]).includes(t)}hasSchemeToggle(){return this._appearance.allowToggle===!0}getSchemeClass(t){return`scheme-${t}`}getFonts(){return{...this._fonts}}getFont(t){return this._fonts[t]||null}getFontVar(t){return`var(--font-${t})`}getFoundationVar(t){const e=this._foundationVars[t];return e?typeof e=="object"?e.default:e:null}getFoundationVars(){const t={};for(const[e,s]of Object.entries(this._foundationVars))t[e]=typeof s=="object"?s.default:s;return t}getFoundationVarRef(t){return`var(--${t})`}getShadeLevels(){return[...a]}hasCustomization(){return Object.keys(this._palettes).length>0||Object.keys(this._contexts).length>0||Object.keys(this._fonts).length>0}toJSON(){return{palettes:this._palettes,colors:this._rawColors,contexts:this._contexts,fonts:this._fonts,appearance:this._appearance,foundationVars:this._foundationVars}}}export{h as Block,g as Page,i as Theme,p as Uniweb,_ as Website,f as createUniweb,d as getUniweb};
1
+ import{B as h,P as g,U as p,W as _,c as f,g as d}from"../assets/index-C6EFXW_H.js";const a=[50,100,200,300,400,500,600,700,800,900,950],r=["light","medium","dark"],n={light:{bg:"var(--neutral-50)",text:"var(--neutral-950)",heading:"var(--neutral-900)",link:"var(--primary-600)"},medium:{bg:"var(--neutral-100)",text:"var(--neutral-950)",heading:"var(--neutral-900)",link:"var(--primary-600)"},dark:{bg:"var(--neutral-900)",text:"var(--neutral-50)",heading:"white",link:"var(--primary-400)"}};class i{constructor(t={}){this._data=t,this._palettes=t.palettes||t.colors||{},this._rawColors=t.colors||{},this._contexts=t.contexts||{},this._fonts=t.fonts||{},this._appearance=t.appearance||{default:"light"},this._foundationVars=t.foundationVars||{},this._css=t.css||null,Object.seal(this)}get css(){return this._css}get data(){return this._data}getColor(t,e=500){const s=this._palettes[t];return s&&s[e]||null}getPalette(t){return this._palettes[t]||null}getPaletteNames(){return Object.keys(this._palettes)}hasPalette(t){return t in this._palettes}getColorVar(t,e=500){return`var(--${t}-${e})`}getContextToken(t,e){const s=this._contexts[t];return s&&s[e]?s[e]:n[t]?.[e]||null}getContextTokens(t){const e=n[t]||{},s=this._contexts[t]||{};return{...e,...s}}getContextClass(t){return r.includes(t)?`context-${t}`:(console.warn(`Invalid context: ${t}. Using 'light'.`),"context-light")}isValidContext(t){return r.includes(t)}getValidContexts(){return[...r]}getAppearance(){return{default:this._appearance.default||"light",allowToggle:this._appearance.allowToggle||!1,respectSystemPreference:this._appearance.respectSystemPreference??!0,schemes:this._appearance.schemes||["light"]}}getDefaultScheme(){return this._appearance.default||"light"}supportsScheme(t){return(this._appearance.schemes||["light"]).includes(t)}hasSchemeToggle(){return this._appearance.allowToggle===!0}getSchemeClass(t){return`scheme-${t}`}getFonts(){return{...this._fonts}}getFont(t){return this._fonts[t]||null}getFontVar(t){return`var(--font-${t})`}getFoundationVar(t){const e=this._foundationVars[t];return e?typeof e=="object"?e.default:e:null}getFoundationVars(){const t={};for(const[e,s]of Object.entries(this._foundationVars))t[e]=typeof s=="object"?s.default:s;return t}getFoundationVarRef(t){return`var(--${t})`}getShadeLevels(){return[...a]}hasCustomization(){return Object.keys(this._palettes).length>0||Object.keys(this._contexts).length>0||Object.keys(this._fonts).length>0}toJSON(){return{palettes:this._palettes,colors:this._rawColors,contexts:this._contexts,fonts:this._fonts,appearance:this._appearance,foundationVars:this._foundationVars}}}export{h as Block,g as Page,i as Theme,p as Uniweb,_ as Website,f as createUniweb,d as getUniweb};
2
2
  //# sourceMappingURL=@uniweb-core.js.map
@@ -1,4 +1,4 @@
1
- import{j as q}from"./jsx-runtime-0PlsXv6K.js";import{r as O,R as Ce}from"./_importmap_react-CrAkajDz.js";import{r as ov}from"./index-CxUeIbEw.js";import{r as sv}from"./index-VvOM7xKK.js";import{a as rv,n as dv,c as hv}from"./index-DFtjIARq.js";import"./_commonjsHelpers-CqkleIqs.js";function mv(i){if(!i)return!1;const{colors:f,foundationStyles:s}=i;if(s&&Object.keys(s).length>0)return!0;if(!f)return!1;const o=f.colors?.light&&Object.keys(f.colors.light).length>0,d=f.elements&&Object.values(f.elements).some(h=>h&&Object.keys(h).length>0);return o||d}function yv(i){if(!i||Object.keys(i).length===0)return[];const f=[],s=rv(i);for(const[o,d]of Object.entries(s))for(const[h,m]of Object.entries(d))f.push(` --${o}-${h}: ${m};`);return f}function xf(i){if(!i||Object.keys(i).length===0)return[];const f=[];for(const[s,o]of Object.entries(i))o===""||o==null||f.push(` --${s}: ${dv(o)};`);return f}function Mn(i){if(!i||Object.keys(i).length===0)return[];const f=[];for(const[s,o]of Object.entries(i))o===""||o==null||typeof o=="object"||f.push(` --${s}: ${o};`);return f}function vv(i){if(!i||Object.keys(i).length===0)return{flat:{},contexts:{}};const f={},s={};for(const[o,d]of Object.entries(i))if(d!=null)if(typeof d=="object")for(const[h,m]of Object.entries(d))m===""||m==null||(s[h]||(s[h]={}),s[h][o]=m);else f[o]=d;return{flat:f,contexts:s}}function ti(i,f){return f.length===0?"":`${i} {
1
+ import{j as q}from"./jsx-runtime-0PlsXv6K.js";import{r as O,R as Ce}from"./_importmap_react-CrAkajDz.js";import{r as ov}from"./index-CxUeIbEw.js";import{r as sv}from"./index-VvOM7xKK.js";import{a as rv,n as dv,c as hv}from"./index-C6EFXW_H.js";import"./_commonjsHelpers-CqkleIqs.js";function mv(i){if(!i)return!1;const{colors:f,foundationStyles:s}=i;if(s&&Object.keys(s).length>0)return!0;if(!f)return!1;const o=f.colors?.light&&Object.keys(f.colors.light).length>0,d=f.elements&&Object.values(f.elements).some(h=>h&&Object.keys(h).length>0);return o||d}function yv(i){if(!i||Object.keys(i).length===0)return[];const f=[],s=rv(i);for(const[o,d]of Object.entries(s))for(const[h,m]of Object.entries(d))f.push(` --${o}-${h}: ${m};`);return f}function xf(i){if(!i||Object.keys(i).length===0)return[];const f=[];for(const[s,o]of Object.entries(i))o===""||o==null||f.push(` --${s}: ${dv(o)};`);return f}function Mn(i){if(!i||Object.keys(i).length===0)return[];const f=[];for(const[s,o]of Object.entries(i))o===""||o==null||typeof o=="object"||f.push(` --${s}: ${o};`);return f}function vv(i){if(!i||Object.keys(i).length===0)return{flat:{},contexts:{}};const f={},s={};for(const[o,d]of Object.entries(i))if(d!=null)if(typeof d=="object")for(const[h,m]of Object.entries(d))m===""||m==null||(s[h]||(s[h]={}),s[h][o]=m);else f[o]=d;return{flat:f,contexts:s}}function ti(i,f){return f.length===0?"":`${i} {
2
2
  ${f.join(`
3
3
  `)}
4
4
  }
@@ -13,4 +13,4 @@ Error generating stack: `+a.message+`
13
13
  `).replace(xy,"")}function Sd(t,e){return e=bd(e),bd(t)===e}function ct(t,e,l,a,n,u){switch(l){case"children":typeof a=="string"?e==="body"||e==="textarea"&&a===""||Fl(t,a):(typeof a=="number"||typeof a=="bigint")&&e!=="body"&&Fl(t,""+a);break;case"className":Qn(t,"class",a);break;case"tabIndex":Qn(t,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":Qn(t,l,a);break;case"style":So(t,a,u);break;case"data":if(e!=="object"){Qn(t,"data",a);break}case"src":case"href":if(a===""&&(e!=="a"||l!=="href")){t.removeAttribute(l);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){t.removeAttribute(l);break}a=Zn(""+a),t.setAttribute(l,a);break;case"action":case"formAction":if(typeof a=="function"){t.setAttribute(l,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof u=="function"&&(l==="formAction"?(e!=="input"&&ct(t,e,"name",n.name,n,null),ct(t,e,"formEncType",n.formEncType,n,null),ct(t,e,"formMethod",n.formMethod,n,null),ct(t,e,"formTarget",n.formTarget,n,null)):(ct(t,e,"encType",n.encType,n,null),ct(t,e,"method",n.method,n,null),ct(t,e,"target",n.target,n,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){t.removeAttribute(l);break}a=Zn(""+a),t.setAttribute(l,a);break;case"onClick":a!=null&&(t.onclick=_e);break;case"onScroll":a!=null&&k("scroll",t);break;case"onScrollEnd":a!=null&&k("scrollend",t);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(o(61));if(l=a.__html,l!=null){if(n.children!=null)throw Error(o(60));t.innerHTML=l}}break;case"multiple":t.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":t.muted=a&&typeof a!="function"&&typeof a!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(a==null||typeof a=="function"||typeof a=="boolean"||typeof a=="symbol"){t.removeAttribute("xlink:href");break}l=Zn(""+a),t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":a!=null&&typeof a!="function"&&typeof a!="symbol"?t.setAttribute(l,""+a):t.removeAttribute(l);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":a&&typeof a!="function"&&typeof a!="symbol"?t.setAttribute(l,""):t.removeAttribute(l);break;case"capture":case"download":a===!0?t.setAttribute(l,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?t.setAttribute(l,a):t.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?t.setAttribute(l,a):t.removeAttribute(l);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?t.removeAttribute(l):t.setAttribute(l,a);break;case"popover":k("beforetoggle",t),k("toggle",t),Xn(t,"popover",a);break;case"xlinkActuate":Ne(t,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":Ne(t,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":Ne(t,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":Ne(t,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":Ne(t,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":Ne(t,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":Ne(t,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":Ne(t,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":Ne(t,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":Xn(t,"is",a);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=um.get(l)||l,Xn(t,l,a))}}function hf(t,e,l,a,n,u){switch(l){case"style":So(t,a,u);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(o(61));if(l=a.__html,l!=null){if(n.children!=null)throw Error(o(60));t.innerHTML=l}}break;case"children":typeof a=="string"?Fl(t,a):(typeof a=="number"||typeof a=="bigint")&&Fl(t,""+a);break;case"onScroll":a!=null&&k("scroll",t);break;case"onScrollEnd":a!=null&&k("scrollend",t);break;case"onClick":a!=null&&(t.onclick=_e);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!so.hasOwnProperty(l))t:{if(l[0]==="o"&&l[1]==="n"&&(n=l.endsWith("Capture"),e=l.slice(2,n?l.length-7:void 0),u=t[Gt]||null,u=u!=null?u[l]:null,typeof u=="function"&&t.removeEventListener(e,u,n),typeof a=="function")){typeof u!="function"&&u!==null&&(l in t?t[l]=null:t.hasAttribute(l)&&t.removeAttribute(l)),t.addEventListener(e,a,n);break t}l in t?t[l]=a:a===!0?t.setAttribute(l,""):Xn(t,l,a)}}}function Lt(t,e,l){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":k("error",t),k("load",t);var a=!1,n=!1,u;for(u in l)if(l.hasOwnProperty(u)){var c=l[u];if(c!=null)switch(u){case"src":a=!0;break;case"srcSet":n=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(o(137,e));default:ct(t,e,u,c,l,null)}}n&&ct(t,e,"srcSet",l.srcSet,l,null),a&&ct(t,e,"src",l.src,l,null);return;case"input":k("invalid",t);var r=u=c=n=null,y=null,z=null;for(a in l)if(l.hasOwnProperty(a)){var R=l[a];if(R!=null)switch(a){case"name":n=R;break;case"type":c=R;break;case"checked":y=R;break;case"defaultChecked":z=R;break;case"value":u=R;break;case"defaultValue":r=R;break;case"children":case"dangerouslySetInnerHTML":if(R!=null)throw Error(o(137,e));break;default:ct(t,e,a,R,l,null)}}vo(t,u,r,y,z,c,n,!1);return;case"select":k("invalid",t),a=c=u=null;for(n in l)if(l.hasOwnProperty(n)&&(r=l[n],r!=null))switch(n){case"value":u=r;break;case"defaultValue":c=r;break;case"multiple":a=r;default:ct(t,e,n,r,l,null)}e=u,l=c,t.multiple=!!a,e!=null?kl(t,!!a,e,!1):l!=null&&kl(t,!!a,l,!0);return;case"textarea":k("invalid",t),u=n=a=null;for(c in l)if(l.hasOwnProperty(c)&&(r=l[c],r!=null))switch(c){case"value":a=r;break;case"defaultValue":n=r;break;case"children":u=r;break;case"dangerouslySetInnerHTML":if(r!=null)throw Error(o(91));break;default:ct(t,e,c,r,l,null)}po(t,a,n,u);return;case"option":for(y in l)l.hasOwnProperty(y)&&(a=l[y],a!=null)&&(y==="selected"?t.selected=a&&typeof a!="function"&&typeof a!="symbol":ct(t,e,y,a,l,null));return;case"dialog":k("beforetoggle",t),k("toggle",t),k("cancel",t),k("close",t);break;case"iframe":case"object":k("load",t);break;case"video":case"audio":for(a=0;a<gn.length;a++)k(gn[a],t);break;case"image":k("error",t),k("load",t);break;case"details":k("toggle",t);break;case"embed":case"source":case"link":k("error",t),k("load",t);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(z in l)if(l.hasOwnProperty(z)&&(a=l[z],a!=null))switch(z){case"children":case"dangerouslySetInnerHTML":throw Error(o(137,e));default:ct(t,e,z,a,l,null)}return;default:if(Mi(e)){for(R in l)l.hasOwnProperty(R)&&(a=l[R],a!==void 0&&hf(t,e,R,a,l,void 0));return}}for(r in l)l.hasOwnProperty(r)&&(a=l[r],a!=null&&ct(t,e,r,a,l,null))}function Ny(t,e,l,a){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var n=null,u=null,c=null,r=null,y=null,z=null,R=null;for(M in l){var x=l[M];if(l.hasOwnProperty(M)&&x!=null)switch(M){case"checked":break;case"value":break;case"defaultValue":y=x;default:a.hasOwnProperty(M)||ct(t,e,M,null,a,x)}}for(var A in a){var M=a[A];if(x=l[A],a.hasOwnProperty(A)&&(M!=null||x!=null))switch(A){case"type":u=M;break;case"name":n=M;break;case"checked":z=M;break;case"defaultChecked":R=M;break;case"value":c=M;break;case"defaultValue":r=M;break;case"children":case"dangerouslySetInnerHTML":if(M!=null)throw Error(o(137,e));break;default:M!==x&&ct(t,e,A,M,a,x)}}Ai(t,c,r,y,z,R,u,n);return;case"select":M=c=r=A=null;for(u in l)if(y=l[u],l.hasOwnProperty(u)&&y!=null)switch(u){case"value":break;case"multiple":M=y;default:a.hasOwnProperty(u)||ct(t,e,u,null,a,y)}for(n in a)if(u=a[n],y=l[n],a.hasOwnProperty(n)&&(u!=null||y!=null))switch(n){case"value":A=u;break;case"defaultValue":r=u;break;case"multiple":c=u;default:u!==y&&ct(t,e,n,u,a,y)}e=r,l=c,a=M,A!=null?kl(t,!!l,A,!1):!!a!=!!l&&(e!=null?kl(t,!!l,e,!0):kl(t,!!l,l?[]:"",!1));return;case"textarea":M=A=null;for(r in l)if(n=l[r],l.hasOwnProperty(r)&&n!=null&&!a.hasOwnProperty(r))switch(r){case"value":break;case"children":break;default:ct(t,e,r,null,a,n)}for(c in a)if(n=a[c],u=l[c],a.hasOwnProperty(c)&&(n!=null||u!=null))switch(c){case"value":A=n;break;case"defaultValue":M=n;break;case"children":break;case"dangerouslySetInnerHTML":if(n!=null)throw Error(o(91));break;default:n!==u&&ct(t,e,c,n,a,u)}go(t,A,M);return;case"option":for(var L in l)A=l[L],l.hasOwnProperty(L)&&A!=null&&!a.hasOwnProperty(L)&&(L==="selected"?t.selected=!1:ct(t,e,L,null,a,A));for(y in a)A=a[y],M=l[y],a.hasOwnProperty(y)&&A!==M&&(A!=null||M!=null)&&(y==="selected"?t.selected=A&&typeof A!="function"&&typeof A!="symbol":ct(t,e,y,A,a,M));return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var Z in l)A=l[Z],l.hasOwnProperty(Z)&&A!=null&&!a.hasOwnProperty(Z)&&ct(t,e,Z,null,a,A);for(z in a)if(A=a[z],M=l[z],a.hasOwnProperty(z)&&A!==M&&(A!=null||M!=null))switch(z){case"children":case"dangerouslySetInnerHTML":if(A!=null)throw Error(o(137,e));break;default:ct(t,e,z,A,a,M)}return;default:if(Mi(e)){for(var ft in l)A=l[ft],l.hasOwnProperty(ft)&&A!==void 0&&!a.hasOwnProperty(ft)&&hf(t,e,ft,void 0,a,A);for(R in a)A=a[R],M=l[R],!a.hasOwnProperty(R)||A===M||A===void 0&&M===void 0||hf(t,e,R,A,a,M);return}}for(var g in l)A=l[g],l.hasOwnProperty(g)&&A!=null&&!a.hasOwnProperty(g)&&ct(t,e,g,null,a,A);for(x in a)A=a[x],M=l[x],!a.hasOwnProperty(x)||A===M||A==null&&M==null||ct(t,e,x,A,a,M)}function Ed(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function _y(){if(typeof performance.getEntriesByType=="function"){for(var t=0,e=0,l=performance.getEntriesByType("resource"),a=0;a<l.length;a++){var n=l[a],u=n.transferSize,c=n.initiatorType,r=n.duration;if(u&&r&&Ed(c)){for(c=0,r=n.responseEnd,a+=1;a<l.length;a++){var y=l[a],z=y.startTime;if(z>r)break;var R=y.transferSize,x=y.initiatorType;R&&Ed(x)&&(y=y.responseEnd,c+=R*(y<r?1:(r-z)/(y-z)))}if(--a,e+=8*(u+c)/(n.duration/1e3),t++,10<t)break}}if(0<t)return e/t/1e6}return navigator.connection&&(t=navigator.connection.downlink,typeof t=="number")?t:5}var mf=null,yf=null;function wu(t){return t.nodeType===9?t:t.ownerDocument}function zd(t){switch(t){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Td(t,e){if(t===0)switch(e){case"svg":return 1;case"math":return 2;default:return 0}return t===1&&e==="foreignObject"?0:t}function vf(t,e){return t==="textarea"||t==="noscript"||typeof e.children=="string"||typeof e.children=="number"||typeof e.children=="bigint"||typeof e.dangerouslySetInnerHTML=="object"&&e.dangerouslySetInnerHTML!==null&&e.dangerouslySetInnerHTML.__html!=null}var gf=null;function By(){var t=window.event;return t&&t.type==="popstate"?t===gf?!1:(gf=t,!0):(gf=null,!1)}var Ad=typeof setTimeout=="function"?setTimeout:void 0,Hy=typeof clearTimeout=="function"?clearTimeout:void 0,Od=typeof Promise=="function"?Promise:void 0,jy=typeof queueMicrotask=="function"?queueMicrotask:typeof Od<"u"?function(t){return Od.resolve(null).then(t).catch(qy)}:Ad;function qy(t){setTimeout(function(){throw t})}function pl(t){return t==="head"}function Md(t,e){var l=e,a=0;do{var n=l.nextSibling;if(t.removeChild(l),n&&n.nodeType===8)if(l=n.data,l==="/$"||l==="/&"){if(a===0){t.removeChild(n),Da(e);return}a--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")a++;else if(l==="html")bn(t.ownerDocument.documentElement);else if(l==="head"){l=t.ownerDocument.head,bn(l);for(var u=l.firstChild;u;){var c=u.nextSibling,r=u.nodeName;u[ja]||r==="SCRIPT"||r==="STYLE"||r==="LINK"&&u.rel.toLowerCase()==="stylesheet"||l.removeChild(u),u=c}}else l==="body"&&bn(t.ownerDocument.body);l=n}while(l);Da(e)}function Rd(t,e){var l=t;t=0;do{var a=l.nextSibling;if(l.nodeType===1?e?(l._stashedDisplay=l.style.display,l.style.display="none"):(l.style.display=l._stashedDisplay||"",l.getAttribute("style")===""&&l.removeAttribute("style")):l.nodeType===3&&(e?(l._stashedText=l.nodeValue,l.nodeValue=""):l.nodeValue=l._stashedText||""),a&&a.nodeType===8)if(l=a.data,l==="/$"){if(t===0)break;t--}else l!=="$"&&l!=="$?"&&l!=="$~"&&l!=="$!"||t++;l=a}while(l)}function pf(t){var e=t.firstChild;for(e&&e.nodeType===10&&(e=e.nextSibling);e;){var l=e;switch(e=e.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":pf(l),zi(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}t.removeChild(l)}}function Ly(t,e,l,a){for(;t.nodeType===1;){var n=l;if(t.nodeName.toLowerCase()!==e.toLowerCase()){if(!a&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(a){if(!t[ja])switch(e){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(u=t.getAttribute("rel"),u==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(u!==n.rel||t.getAttribute("href")!==(n.href==null||n.href===""?null:n.href)||t.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin)||t.getAttribute("title")!==(n.title==null?null:n.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(u=t.getAttribute("src"),(u!==(n.src==null?null:n.src)||t.getAttribute("type")!==(n.type==null?null:n.type)||t.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin))&&u&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(e==="input"&&t.type==="hidden"){var u=n.name==null?null:""+n.name;if(n.type==="hidden"&&t.getAttribute("name")===u)return t}else return t;if(t=me(t.nextSibling),t===null)break}return null}function Yy(t,e,l){if(e==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!l||(t=me(t.nextSibling),t===null))return null;return t}function Dd(t,e){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!e||(t=me(t.nextSibling),t===null))return null;return t}function bf(t){return t.data==="$?"||t.data==="$~"}function Sf(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function wy(t,e){var l=t.ownerDocument;if(t.data==="$~")t._reactRetry=e;else if(t.data!=="$?"||l.readyState!=="loading")e();else{var a=function(){e(),l.removeEventListener("DOMContentLoaded",a)};l.addEventListener("DOMContentLoaded",a),t._reactRetry=a}}function me(t){for(;t!=null;t=t.nextSibling){var e=t.nodeType;if(e===1||e===3)break;if(e===8){if(e=t.data,e==="$"||e==="$!"||e==="$?"||e==="$~"||e==="&"||e==="F!"||e==="F")break;if(e==="/$"||e==="/&")return null}}return t}var Ef=null;function Cd(t){t=t.nextSibling;for(var e=0;t;){if(t.nodeType===8){var l=t.data;if(l==="/$"||l==="/&"){if(e===0)return me(t.nextSibling);e--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||e++}t=t.nextSibling}return null}function Ud(t){t=t.previousSibling;for(var e=0;t;){if(t.nodeType===8){var l=t.data;if(l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"){if(e===0)return t;e--}else l!=="/$"&&l!=="/&"||e++}t=t.previousSibling}return null}function xd(t,e,l){switch(e=wu(l),t){case"html":if(t=e.documentElement,!t)throw Error(o(452));return t;case"head":if(t=e.head,!t)throw Error(o(453));return t;case"body":if(t=e.body,!t)throw Error(o(454));return t;default:throw Error(o(451))}}function bn(t){for(var e=t.attributes;e.length;)t.removeAttributeNode(e[0]);zi(t)}var ye=new Map,Nd=new Set;function Gu(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var We=j.d;j.d={f:Gy,r:Xy,D:Qy,C:Vy,L:Zy,m:Ky,X:$y,S:Jy,M:Wy};function Gy(){var t=We.f(),e=Nu();return t||e}function Xy(t){var e=Jl(t);e!==null&&e.tag===5&&e.type==="form"?Ws(e):We.r(t)}var Oa=typeof document>"u"?null:document;function _d(t,e,l){var a=Oa;if(a&&typeof e=="string"&&e){var n=ce(e);n='link[rel="'+t+'"][href="'+n+'"]',typeof l=="string"&&(n+='[crossorigin="'+l+'"]'),Nd.has(n)||(Nd.add(n),t={rel:t,crossOrigin:l,href:e},a.querySelector(n)===null&&(e=a.createElement("link"),Lt(e,"link",t),xt(e),a.head.appendChild(e)))}}function Qy(t){We.D(t),_d("dns-prefetch",t,null)}function Vy(t,e){We.C(t,e),_d("preconnect",t,e)}function Zy(t,e,l){We.L(t,e,l);var a=Oa;if(a&&t&&e){var n='link[rel="preload"][as="'+ce(e)+'"]';e==="image"&&l&&l.imageSrcSet?(n+='[imagesrcset="'+ce(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(n+='[imagesizes="'+ce(l.imageSizes)+'"]')):n+='[href="'+ce(t)+'"]';var u=n;switch(e){case"style":u=Ma(t);break;case"script":u=Ra(t)}ye.has(u)||(t=S({rel:"preload",href:e==="image"&&l&&l.imageSrcSet?void 0:t,as:e},l),ye.set(u,t),a.querySelector(n)!==null||e==="style"&&a.querySelector(Sn(u))||e==="script"&&a.querySelector(En(u))||(e=a.createElement("link"),Lt(e,"link",t),xt(e),a.head.appendChild(e)))}}function Ky(t,e){We.m(t,e);var l=Oa;if(l&&t){var a=e&&typeof e.as=="string"?e.as:"script",n='link[rel="modulepreload"][as="'+ce(a)+'"][href="'+ce(t)+'"]',u=n;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":u=Ra(t)}if(!ye.has(u)&&(t=S({rel:"modulepreload",href:t},e),ye.set(u,t),l.querySelector(n)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(En(u)))return}a=l.createElement("link"),Lt(a,"link",t),xt(a),l.head.appendChild(a)}}}function Jy(t,e,l){We.S(t,e,l);var a=Oa;if(a&&t){var n=$l(a).hoistableStyles,u=Ma(t);e=e||"default";var c=n.get(u);if(!c){var r={loading:0,preload:null};if(c=a.querySelector(Sn(u)))r.loading=5;else{t=S({rel:"stylesheet",href:t,"data-precedence":e},l),(l=ye.get(u))&&zf(t,l);var y=c=a.createElement("link");xt(y),Lt(y,"link",t),y._p=new Promise(function(z,R){y.onload=z,y.onerror=R}),y.addEventListener("load",function(){r.loading|=1}),y.addEventListener("error",function(){r.loading|=2}),r.loading|=4,Xu(c,e,a)}c={type:"stylesheet",instance:c,count:1,state:r},n.set(u,c)}}}function $y(t,e){We.X(t,e);var l=Oa;if(l&&t){var a=$l(l).hoistableScripts,n=Ra(t),u=a.get(n);u||(u=l.querySelector(En(n)),u||(t=S({src:t,async:!0},e),(e=ye.get(n))&&Tf(t,e),u=l.createElement("script"),xt(u),Lt(u,"link",t),l.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},a.set(n,u))}}function Wy(t,e){We.M(t,e);var l=Oa;if(l&&t){var a=$l(l).hoistableScripts,n=Ra(t),u=a.get(n);u||(u=l.querySelector(En(n)),u||(t=S({src:t,async:!0,type:"module"},e),(e=ye.get(n))&&Tf(t,e),u=l.createElement("script"),xt(u),Lt(u,"link",t),l.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},a.set(n,u))}}function Bd(t,e,l,a){var n=(n=Ie.current)?Gu(n):null;if(!n)throw Error(o(446));switch(t){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(e=Ma(l.href),l=$l(n).hoistableStyles,a=l.get(e),a||(a={type:"style",instance:null,count:0,state:null},l.set(e,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){t=Ma(l.href);var u=$l(n).hoistableStyles,c=u.get(t);if(c||(n=n.ownerDocument||n,c={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},u.set(t,c),(u=n.querySelector(Sn(t)))&&!u._p&&(c.instance=u,c.state.loading=5),ye.has(t)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},ye.set(t,l),u||ky(n,t,l,c.state))),e&&a===null)throw Error(o(528,""));return c}if(e&&a!==null)throw Error(o(529,""));return null;case"script":return e=l.async,l=l.src,typeof l=="string"&&e&&typeof e!="function"&&typeof e!="symbol"?(e=Ra(l),l=$l(n).hoistableScripts,a=l.get(e),a||(a={type:"script",instance:null,count:0,state:null},l.set(e,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(o(444,t))}}function Ma(t){return'href="'+ce(t)+'"'}function Sn(t){return'link[rel="stylesheet"]['+t+"]"}function Hd(t){return S({},t,{"data-precedence":t.precedence,precedence:null})}function ky(t,e,l,a){t.querySelector('link[rel="preload"][as="style"]['+e+"]")?a.loading=1:(e=t.createElement("link"),a.preload=e,e.addEventListener("load",function(){return a.loading|=1}),e.addEventListener("error",function(){return a.loading|=2}),Lt(e,"link",l),xt(e),t.head.appendChild(e))}function Ra(t){return'[src="'+ce(t)+'"]'}function En(t){return"script[async]"+t}function jd(t,e,l){if(e.count++,e.instance===null)switch(e.type){case"style":var a=t.querySelector('style[data-href~="'+ce(l.href)+'"]');if(a)return e.instance=a,xt(a),a;var n=S({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return a=(t.ownerDocument||t).createElement("style"),xt(a),Lt(a,"style",n),Xu(a,l.precedence,t),e.instance=a;case"stylesheet":n=Ma(l.href);var u=t.querySelector(Sn(n));if(u)return e.state.loading|=4,e.instance=u,xt(u),u;a=Hd(l),(n=ye.get(n))&&zf(a,n),u=(t.ownerDocument||t).createElement("link"),xt(u);var c=u;return c._p=new Promise(function(r,y){c.onload=r,c.onerror=y}),Lt(u,"link",a),e.state.loading|=4,Xu(u,l.precedence,t),e.instance=u;case"script":return u=Ra(l.src),(n=t.querySelector(En(u)))?(e.instance=n,xt(n),n):(a=l,(n=ye.get(u))&&(a=S({},l),Tf(a,n)),t=t.ownerDocument||t,n=t.createElement("script"),xt(n),Lt(n,"link",a),t.head.appendChild(n),e.instance=n);case"void":return null;default:throw Error(o(443,e.type))}else e.type==="stylesheet"&&(e.state.loading&4)===0&&(a=e.instance,e.state.loading|=4,Xu(a,l.precedence,t));return e.instance}function Xu(t,e,l){for(var a=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),n=a.length?a[a.length-1]:null,u=n,c=0;c<a.length;c++){var r=a[c];if(r.dataset.precedence===e)u=r;else if(u!==n)break}u?u.parentNode.insertBefore(t,u.nextSibling):(e=l.nodeType===9?l.head:l,e.insertBefore(t,e.firstChild))}function zf(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.title==null&&(t.title=e.title)}function Tf(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.integrity==null&&(t.integrity=e.integrity)}var Qu=null;function qd(t,e,l){if(Qu===null){var a=new Map,n=Qu=new Map;n.set(l,a)}else n=Qu,a=n.get(l),a||(a=new Map,n.set(l,a));if(a.has(t))return a;for(a.set(t,null),l=l.getElementsByTagName(t),n=0;n<l.length;n++){var u=l[n];if(!(u[ja]||u[Bt]||t==="link"&&u.getAttribute("rel")==="stylesheet")&&u.namespaceURI!=="http://www.w3.org/2000/svg"){var c=u.getAttribute(e)||"";c=t+c;var r=a.get(c);r?r.push(u):a.set(c,[u])}}return a}function Ld(t,e,l){t=t.ownerDocument||t,t.head.insertBefore(l,e==="title"?t.querySelector("head > title"):null)}function Fy(t,e,l){if(l===1||e.itemProp!=null)return!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof e.precedence!="string"||typeof e.href!="string"||e.href==="")break;return!0;case"link":if(typeof e.rel!="string"||typeof e.href!="string"||e.href===""||e.onLoad||e.onError)break;return e.rel==="stylesheet"?(t=e.disabled,typeof e.precedence=="string"&&t==null):!0;case"script":if(e.async&&typeof e.async!="function"&&typeof e.async!="symbol"&&!e.onLoad&&!e.onError&&e.src&&typeof e.src=="string")return!0}return!1}function Yd(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function Iy(t,e,l,a){if(l.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var n=Ma(a.href),u=e.querySelector(Sn(n));if(u){e=u._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(t.count++,t=Vu.bind(t),e.then(t,t)),l.state.loading|=4,l.instance=u,xt(u);return}u=e.ownerDocument||e,a=Hd(a),(n=ye.get(n))&&zf(a,n),u=u.createElement("link"),xt(u);var c=u;c._p=new Promise(function(r,y){c.onload=r,c.onerror=y}),Lt(u,"link",a),l.instance=u}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(l,e),(e=l.state.preload)&&(l.state.loading&3)===0&&(t.count++,l=Vu.bind(t),e.addEventListener("load",l),e.addEventListener("error",l))}}var Af=0;function Py(t,e){return t.stylesheets&&t.count===0&&Ku(t,t.stylesheets),0<t.count||0<t.imgCount?function(l){var a=setTimeout(function(){if(t.stylesheets&&Ku(t,t.stylesheets),t.unsuspend){var u=t.unsuspend;t.unsuspend=null,u()}},6e4+e);0<t.imgBytes&&Af===0&&(Af=62500*_y());var n=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&Ku(t,t.stylesheets),t.unsuspend)){var u=t.unsuspend;t.unsuspend=null,u()}},(t.imgBytes>Af?50:800)+e);return t.unsuspend=l,function(){t.unsuspend=null,clearTimeout(a),clearTimeout(n)}}:null}function Vu(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Ku(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var Zu=null;function Ku(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,Zu=new Map,e.forEach(tv,t),Zu=null,Vu.call(t))}function tv(t,e){if(!(e.state.loading&4)){var l=Zu.get(t);if(l)var a=l.get(null);else{l=new Map,Zu.set(t,l);for(var n=t.querySelectorAll("link[data-precedence],style[data-precedence]"),u=0;u<n.length;u++){var c=n[u];(c.nodeName==="LINK"||c.getAttribute("media")!=="not all")&&(l.set(c.dataset.precedence,c),a=c)}a&&l.set(null,a)}n=e.instance,c=n.getAttribute("data-precedence"),u=l.get(c)||a,u===a&&l.set(null,n),l.set(c,n),this.count++,a=Vu.bind(this),n.addEventListener("load",a),n.addEventListener("error",a),u?u.parentNode.insertBefore(n,u.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(n,t.firstChild)),e.state.loading|=4}}var zn={$$typeof:Q,Provider:null,Consumer:null,_currentValue:K,_currentValue2:K,_threadCount:0};function ev(t,e,l,a,n,u,c,r,y){this.tag=1,this.containerInfo=t,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=pi(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=pi(0),this.hiddenUpdates=pi(null),this.identifierPrefix=a,this.onUncaughtError=n,this.onCaughtError=u,this.onRecoverableError=c,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=y,this.incompleteTransitions=new Map}function wd(t,e,l,a,n,u,c,r,y,z,R,x){return t=new ev(t,e,l,c,y,z,R,x,r),e=1,u===!0&&(e|=24),u=Pt(3,null,null,e),t.current=u,u.stateNode=t,e=lc(),e.refCount++,t.pooledCache=e,e.refCount++,u.memoizedState={element:a,isDehydrated:l,cache:e},ic(u),t}function Gd(t){return t?(t=na,t):na}function Xd(t,e,l,a,n,u){n=Gd(n),a.context===null?a.context=n:a.pendingContext=n,a=cl(e),a.payload={element:l},u=u===void 0?null:u,u!==null&&(a.callback=u),l=fl(t,a,e),l!==null&&(Jt(l,t,e),Pa(l,t,e))}function Qd(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var l=t.retryLane;t.retryLane=l!==0&&l<e?l:e}}function Of(t,e){Qd(t,e),(t=t.alternate)&&Qd(t,e)}function Vd(t){if(t.tag===13||t.tag===31){var e=Ul(t,67108864);e!==null&&Jt(e,t,67108864),Of(t,67108864)}}function Zd(t){if(t.tag===13||t.tag===31){var e=ne();e=bi(e);var l=Ul(t,e);l!==null&&Jt(l,t,e),Of(t,e)}}var Ju=!0;function lv(t,e,l,a){var n=U.T;U.T=null;var u=j.p;try{j.p=2,Mf(t,e,l,a)}finally{j.p=u,U.T=n}}function av(t,e,l,a){var n=U.T;U.T=null;var u=j.p;try{j.p=8,Mf(t,e,l,a)}finally{j.p=u,U.T=n}}function Mf(t,e,l,a){if(Ju){var n=Rf(a);if(n===null)df(t,e,a,$u,l),Jd(t,a);else if(uv(n,t,e,l,a))a.stopPropagation();else if(Jd(t,a),e&4&&-1<nv.indexOf(t)){for(;n!==null;){var u=Jl(n);if(u!==null)switch(u.tag){case 3:if(u=u.stateNode,u.current.memoizedState.isDehydrated){var c=Ol(u.pendingLanes);if(c!==0){var r=u;for(r.pendingLanes|=2,r.entangledLanes|=2;c;){var y=1<<31-Ft(c);r.entanglements[1]|=y,c&=~y}De(u),(lt&6)===0&&(Uu=Wt()+500,vn(0))}}break;case 31:case 13:r=Ul(u,2),r!==null&&Jt(r,u,2),Nu(),Of(u,2)}if(u=Rf(a),u===null&&df(t,e,a,$u,l),u===n)break;n=u}n!==null&&a.stopPropagation()}else df(t,e,a,null,l)}}function Rf(t){return t=Di(t),Df(t)}var $u=null;function Df(t){if($u=null,t=Kl(t),t!==null){var e=h(t);if(e===null)t=null;else{var l=e.tag;if(l===13){if(t=m(e),t!==null)return t;t=null}else if(l===31){if(t=p(e),t!==null)return t;t=null}else if(l===3){if(e.stateNode.current.memoizedState.isDehydrated)return e.tag===3?e.stateNode.containerInfo:null;t=null}else e!==t&&(t=null)}}return $u=t,null}function Kd(t){switch(t){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Qh()){case Pf:return 2;case to:return 8;case qn:case Vh:return 32;case eo:return 268435456;default:return 32}default:return 32}}var Cf=!1,bl=null,Sl=null,El=null,Tn=new Map,An=new Map,zl=[],nv="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function Jd(t,e){switch(t){case"focusin":case"focusout":bl=null;break;case"dragenter":case"dragleave":Sl=null;break;case"mouseover":case"mouseout":El=null;break;case"pointerover":case"pointerout":Tn.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":An.delete(e.pointerId)}}function On(t,e,l,a,n,u){return t===null||t.nativeEvent!==u?(t={blockedOn:e,domEventName:l,eventSystemFlags:a,nativeEvent:u,targetContainers:[n]},e!==null&&(e=Jl(e),e!==null&&Vd(e)),t):(t.eventSystemFlags|=a,e=t.targetContainers,n!==null&&e.indexOf(n)===-1&&e.push(n),t)}function uv(t,e,l,a,n){switch(e){case"focusin":return bl=On(bl,t,e,l,a,n),!0;case"dragenter":return Sl=On(Sl,t,e,l,a,n),!0;case"mouseover":return El=On(El,t,e,l,a,n),!0;case"pointerover":var u=n.pointerId;return Tn.set(u,On(Tn.get(u)||null,t,e,l,a,n)),!0;case"gotpointercapture":return u=n.pointerId,An.set(u,On(An.get(u)||null,t,e,l,a,n)),!0}return!1}function $d(t){var e=Kl(t.target);if(e!==null){var l=h(e);if(l!==null){if(e=l.tag,e===13){if(e=m(l),e!==null){t.blockedOn=e,co(t.priority,function(){Zd(l)});return}}else if(e===31){if(e=p(l),e!==null){t.blockedOn=e,co(t.priority,function(){Zd(l)});return}}else if(e===3&&l.stateNode.current.memoizedState.isDehydrated){t.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}t.blockedOn=null}function Wu(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var l=Rf(t.nativeEvent);if(l===null){l=t.nativeEvent;var a=new l.constructor(l.type,l);Ri=a,l.target.dispatchEvent(a),Ri=null}else return e=Jl(l),e!==null&&Vd(e),t.blockedOn=l,!1;e.shift()}return!0}function Wd(t,e,l){Wu(t)&&l.delete(e)}function iv(){Cf=!1,bl!==null&&Wu(bl)&&(bl=null),Sl!==null&&Wu(Sl)&&(Sl=null),El!==null&&Wu(El)&&(El=null),Tn.forEach(Wd),An.forEach(Wd)}function ku(t,e){t.blockedOn===e&&(t.blockedOn=null,Cf||(Cf=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,iv)))}var Fu=null;function kd(t){Fu!==t&&(Fu=t,i.unstable_scheduleCallback(i.unstable_NormalPriority,function(){Fu===t&&(Fu=null);for(var e=0;e<t.length;e+=3){var l=t[e],a=t[e+1],n=t[e+2];if(typeof a!="function"){if(Df(a||l)===null)continue;break}var u=Jl(l);u!==null&&(t.splice(e,3),e-=3,Mc(u,{pending:!0,data:n,method:l.method,action:a},a,n))}}))}function Da(t){function e(y){return ku(y,t)}bl!==null&&ku(bl,t),Sl!==null&&ku(Sl,t),El!==null&&ku(El,t),Tn.forEach(e),An.forEach(e);for(var l=0;l<zl.length;l++){var a=zl[l];a.blockedOn===t&&(a.blockedOn=null)}for(;0<zl.length&&(l=zl[0],l.blockedOn===null);)$d(l),l.blockedOn===null&&zl.shift();if(l=(t.ownerDocument||t).$$reactFormReplay,l!=null)for(a=0;a<l.length;a+=3){var n=l[a],u=l[a+1],c=n[Gt]||null;if(typeof u=="function")c||kd(l);else if(c){var r=null;if(u&&u.hasAttribute("formAction")){if(n=u,c=u[Gt]||null)r=c.formAction;else if(Df(n)!==null)continue}else r=c.action;typeof r=="function"?l[a+1]=r:(l.splice(a,3),a-=3),kd(l)}}}function Fd(){function t(u){u.canIntercept&&u.info==="react-transition"&&u.intercept({handler:function(){return new Promise(function(c){return n=c})},focusReset:"manual",scroll:"manual"})}function e(){n!==null&&(n(),n=null),a||setTimeout(l,20)}function l(){if(!a&&!navigation.transition){var u=navigation.currentEntry;u&&u.url!=null&&navigation.navigate(u.url,{state:u.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var a=!1,n=null;return navigation.addEventListener("navigate",t),navigation.addEventListener("navigatesuccess",e),navigation.addEventListener("navigateerror",e),setTimeout(l,100),function(){a=!0,navigation.removeEventListener("navigate",t),navigation.removeEventListener("navigatesuccess",e),navigation.removeEventListener("navigateerror",e),n!==null&&(n(),n=null)}}}function Uf(t){this._internalRoot=t}Iu.prototype.render=Uf.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(o(409));var l=e.current,a=ne();Xd(l,a,t,e,null,null)},Iu.prototype.unmount=Uf.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;Xd(t.current,2,null,t,null,null),Nu(),e[Zl]=null}};function Iu(t){this._internalRoot=t}Iu.prototype.unstable_scheduleHydration=function(t){if(t){var e=io();t={blockedOn:null,target:t,priority:e};for(var l=0;l<zl.length&&e!==0&&e<zl[l].priority;l++);zl.splice(l,0,t),l===0&&$d(t)}};var Id=f.version;if(Id!=="19.2.5")throw Error(o(527,Id,"19.2.5"));j.findDOMNode=function(t){var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(o(188)):(t=Object.keys(t).join(","),Error(o(268,t)));return t=T(e),t=t!==null?C(t):null,t=t===null?null:t.stateNode,t};var cv={bundleType:0,version:"19.2.5",rendererPackageName:"react-dom",currentDispatcherRef:U,reconcilerVersion:"19.2.5"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Pu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Pu.isDisabled&&Pu.supportsFiber)try{_a=Pu.inject(cv),kt=Pu}catch{}}return Rn.createRoot=function(t,e){if(!d(t))throw Error(o(299));var l=!1,a="",n=ur,u=ir,c=cr;return e!=null&&(e.unstable_strictMode===!0&&(l=!0),e.identifierPrefix!==void 0&&(a=e.identifierPrefix),e.onUncaughtError!==void 0&&(n=e.onUncaughtError),e.onCaughtError!==void 0&&(u=e.onCaughtError),e.onRecoverableError!==void 0&&(c=e.onRecoverableError)),e=wd(t,1,!1,null,null,l,a,null,n,u,c,Fd),t[Zl]=e.current,rf(t),new Uf(e)},Rn.hydrateRoot=function(t,e,l){if(!d(t))throw Error(o(299));var a=!1,n="",u=ur,c=ir,r=cr,y=null;return l!=null&&(l.unstable_strictMode===!0&&(a=!0),l.identifierPrefix!==void 0&&(n=l.identifierPrefix),l.onUncaughtError!==void 0&&(u=l.onUncaughtError),l.onCaughtError!==void 0&&(c=l.onCaughtError),l.onRecoverableError!==void 0&&(r=l.onRecoverableError),l.formState!==void 0&&(y=l.formState)),e=wd(t,1,!0,e,l??null,a,n,y,u,c,r,Fd),e.context=Gd(null),l=e.current,a=ne(),a=bi(a),n=cl(a),n.callback=null,fl(l,n,a),l=a,e.current.lanes=l,Ha(e,l),De(e),t[Zl]=e.current,rf(t),new Iu(e)},Rn.version="19.2.5",Rn}var lh;function Ev(){if(lh)return Nf.exports;lh=1;function i(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(f){console.error(f)}}return i(),Nf.exports=Sv(),Nf.exports}var ah=Ev();var nh="popstate";function zv(i={}){function f(o,d){let{pathname:h,search:m,hash:p}=o.location;return Yf("",{pathname:h,search:m,hash:p},d.state&&d.state.usr||null,d.state&&d.state.key||"default")}function s(o,d){return typeof d=="string"?d:Cn(d)}return Av(f,s,null,i)}function pt(i,f){if(i===!1||i===null||typeof i>"u")throw new Error(f)}function Ee(i,f){if(!i){typeof console<"u"&&console.warn(f);try{throw new Error(f)}catch{}}}function Tv(){return Math.random().toString(36).substring(2,10)}function uh(i,f){return{usr:i.state,key:i.key,idx:f}}function Yf(i,f,s=null,o){return{pathname:typeof i=="string"?i:i.pathname,search:"",hash:"",...typeof f=="string"?Ca(f):f,state:s,key:f&&f.key||o||Tv()}}function Cn({pathname:i="/",search:f="",hash:s=""}){return f&&f!=="?"&&(i+=f.charAt(0)==="?"?f:"?"+f),s&&s!=="#"&&(i+=s.charAt(0)==="#"?s:"#"+s),i}function Ca(i){let f={};if(i){let s=i.indexOf("#");s>=0&&(f.hash=i.substring(s),i=i.substring(0,s));let o=i.indexOf("?");o>=0&&(f.search=i.substring(o),i=i.substring(0,o)),i&&(f.pathname=i)}return f}function Av(i,f,s,o={}){let{window:d=document.defaultView,v5Compat:h=!1}=o,m=d.history,p="POP",b=null,T=C();T==null&&(T=0,m.replaceState({...m.state,idx:T},""));function C(){return(m.state||{idx:null}).idx}function S(){p="POP";let Y=C(),X=Y==null?null:Y-T;T=Y,b&&b({action:p,location:H.location,delta:X})}function N(Y,X){p="PUSH";let B=Yf(H.location,Y,X);T=C()+1;let Q=uh(B,T),st=H.createHref(B);try{m.pushState(Q,"",st)}catch(rt){if(rt instanceof DOMException&&rt.name==="DataCloneError")throw rt;d.location.assign(st)}h&&b&&b({action:p,location:H.location,delta:1})}function _(Y,X){p="REPLACE";let B=Yf(H.location,Y,X);T=C();let Q=uh(B,T),st=H.createHref(B);m.replaceState(Q,"",st),h&&b&&b({action:p,location:H.location,delta:0})}function w(Y){return Ov(Y)}let H={get action(){return p},get location(){return i(d,m)},listen(Y){if(b)throw new Error("A history only accepts one active listener");return d.addEventListener(nh,S),b=Y,()=>{d.removeEventListener(nh,S),b=null}},createHref(Y){return f(d,Y)},createURL:w,encodeLocation(Y){let X=w(Y);return{pathname:X.pathname,search:X.search,hash:X.hash}},push:N,replace:_,go(Y){return m.go(Y)}};return H}function Ov(i,f=!1){let s="http://localhost";typeof window<"u"&&(s=window.location.origin!=="null"?window.location.origin:window.location.href),pt(s,"No window.location.(origin|href) available to create URL");let o=typeof i=="string"?i:Cn(i);return o=o.replace(/ $/,"%20"),!f&&o.startsWith("//")&&(o=s+o),new URL(o,s)}function mh(i,f,s="/"){return Mv(i,f,s,!1)}function Mv(i,f,s,o){let d=typeof f=="string"?Ca(f):f,h=Fe(d.pathname||"/",s);if(h==null)return null;let m=yh(i);Rv(m);let p=null;for(let b=0;p==null&&b<m.length;++b){let T=Lv(h);p=jv(m[b],T,o)}return p}function yh(i,f=[],s=[],o="",d=!1){let h=(m,p,b=d,T)=>{let C={relativePath:T===void 0?m.path||"":T,caseSensitive:m.caseSensitive===!0,childrenIndex:p,route:m};if(C.relativePath.startsWith("/")){if(!C.relativePath.startsWith(o)&&b)return;pt(C.relativePath.startsWith(o),`Absolute route path "${C.relativePath}" nested under path "${o}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),C.relativePath=C.relativePath.slice(o.length)}let S=ke([o,C.relativePath]),N=s.concat(C);m.children&&m.children.length>0&&(pt(m.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${S}".`),yh(m.children,f,N,S,b)),!(m.path==null&&!m.index)&&f.push({path:S,score:Bv(S,m.index),routesMeta:N})};return i.forEach((m,p)=>{if(m.path===""||!m.path?.includes("?"))h(m,p);else for(let b of vh(m.path))h(m,p,!0,b)}),f}function vh(i){let f=i.split("/");if(f.length===0)return[];let[s,...o]=f,d=s.endsWith("?"),h=s.replace(/\?$/,"");if(o.length===0)return d?[h,""]:[h];let m=vh(o.join("/")),p=[];return p.push(...m.map(b=>b===""?h:[h,b].join("/"))),d&&p.push(...m),p.map(b=>i.startsWith("/")&&b===""?"/":b)}function Rv(i){i.sort((f,s)=>f.score!==s.score?s.score-f.score:Hv(f.routesMeta.map(o=>o.childrenIndex),s.routesMeta.map(o=>o.childrenIndex)))}var Dv=/^:[\w-]+$/,Cv=3,Uv=2,xv=1,Nv=10,_v=-2,ih=i=>i==="*";function Bv(i,f){let s=i.split("/"),o=s.length;return s.some(ih)&&(o+=_v),f&&(o+=Uv),s.filter(d=>!ih(d)).reduce((d,h)=>d+(Dv.test(h)?Cv:h===""?xv:Nv),o)}function Hv(i,f){return i.length===f.length&&i.slice(0,-1).every((o,d)=>o===f[d])?i[i.length-1]-f[f.length-1]:0}function jv(i,f,s=!1){let{routesMeta:o}=i,d={},h="/",m=[];for(let p=0;p<o.length;++p){let b=o[p],T=p===o.length-1,C=h==="/"?f:f.slice(h.length)||"/",S=ci({path:b.relativePath,caseSensitive:b.caseSensitive,end:T},C),N=b.route;if(!S&&T&&s&&!o[o.length-1].route.index&&(S=ci({path:b.relativePath,caseSensitive:b.caseSensitive,end:!1},C)),!S)return null;Object.assign(d,S.params),m.push({params:d,pathname:ke([h,S.pathname]),pathnameBase:Xv(ke([h,S.pathnameBase])),route:N}),S.pathnameBase!=="/"&&(h=ke([h,S.pathnameBase]))}return m}function ci(i,f){typeof i=="string"&&(i={path:i,caseSensitive:!1,end:!0});let[s,o]=qv(i.path,i.caseSensitive,i.end),d=f.match(s);if(!d)return null;let h=d[0],m=h.replace(/(.)\/+$/,"$1"),p=d.slice(1);return{params:o.reduce((T,{paramName:C,isOptional:S},N)=>{if(C==="*"){let w=p[N]||"";m=h.slice(0,h.length-w.length).replace(/(.)\/+$/,"$1")}const _=p[N];return S&&!_?T[C]=void 0:T[C]=(_||"").replace(/%2F/g,"/"),T},{}),pathname:h,pathnameBase:m,pattern:i}}function qv(i,f=!1,s=!0){Ee(i==="*"||!i.endsWith("*")||i.endsWith("/*"),`Route path "${i}" will be treated as if it were "${i.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${i.replace(/\*$/,"/*")}".`);let o=[],d="^"+i.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(m,p,b)=>(o.push({paramName:p,isOptional:b!=null}),b?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return i.endsWith("*")?(o.push({paramName:"*"}),d+=i==="*"||i==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):s?d+="\\/*$":i!==""&&i!=="/"&&(d+="(?:(?=\\/|$))"),[new RegExp(d,f?void 0:"i"),o]}function Lv(i){try{return i.split("/").map(f=>decodeURIComponent(f).replace(/\//g,"%2F")).join("/")}catch(f){return Ee(!1,`The URL path "${i}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${f}).`),i}}function Fe(i,f){if(f==="/")return i;if(!i.toLowerCase().startsWith(f.toLowerCase()))return null;let s=f.endsWith("/")?f.length-1:f.length,o=i.charAt(s);return o&&o!=="/"?null:i.slice(s)||"/"}var gh=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Yv=i=>gh.test(i);function wv(i,f="/"){let{pathname:s,search:o="",hash:d=""}=typeof i=="string"?Ca(i):i,h;if(s)if(Yv(s))h=s;else{if(s.includes("//")){let m=s;s=s.replace(/\/\/+/g,"/"),Ee(!1,`Pathnames cannot have embedded double slashes - normalizing ${m} -> ${s}`)}s.startsWith("/")?h=ch(s.substring(1),"/"):h=ch(s,f)}else h=f;return{pathname:h,search:Qv(o),hash:Vv(d)}}function ch(i,f){let s=f.replace(/\/+$/,"").split("/");return i.split("/").forEach(d=>{d===".."?s.length>1&&s.pop():d!=="."&&s.push(d)}),s.length>1?s.join("/"):"/"}function Hf(i,f,s,o){return`Cannot include a '${i}' character in a manually specified \`to.${f}\` field [${JSON.stringify(o)}]. Please separate it out to the \`to.${s}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function Gv(i){return i.filter((f,s)=>s===0||f.route.path&&f.route.path.length>0)}function ph(i){let f=Gv(i);return f.map((s,o)=>o===f.length-1?s.pathname:s.pathnameBase)}function bh(i,f,s,o=!1){let d;typeof i=="string"?d=Ca(i):(d={...i},pt(!d.pathname||!d.pathname.includes("?"),Hf("?","pathname","search",d)),pt(!d.pathname||!d.pathname.includes("#"),Hf("#","pathname","hash",d)),pt(!d.search||!d.search.includes("#"),Hf("#","search","hash",d)));let h=i===""||d.pathname==="",m=h?"/":d.pathname,p;if(m==null)p=s;else{let S=f.length-1;if(!o&&m.startsWith("..")){let N=m.split("/");for(;N[0]==="..";)N.shift(),S-=1;d.pathname=N.join("/")}p=S>=0?f[S]:"/"}let b=wv(d,p),T=m&&m!=="/"&&m.endsWith("/"),C=(h||m===".")&&s.endsWith("/");return!b.pathname.endsWith("/")&&(T||C)&&(b.pathname+="/"),b}var ke=i=>i.join("/").replace(/\/\/+/g,"/"),Xv=i=>i.replace(/\/+$/,"").replace(/^\/*/,"/"),Qv=i=>!i||i==="?"?"":i.startsWith("?")?i:"?"+i,Vv=i=>!i||i==="#"?"":i.startsWith("#")?i:"#"+i,Zv=class{constructor(i,f,s,o=!1){this.status=i,this.statusText=f||"",this.internal=o,s instanceof Error?(this.data=s.toString(),this.error=s):this.data=s}};function Kv(i){return i!=null&&typeof i.status=="number"&&typeof i.statusText=="string"&&typeof i.internal=="boolean"&&"data"in i}function Jv(i){return i.map(f=>f.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var Sh=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Eh(i,f){let s=i;if(typeof s!="string"||!gh.test(s))return{absoluteURL:void 0,isExternal:!1,to:s};let o=s,d=!1;if(Sh)try{let h=new URL(window.location.href),m=s.startsWith("//")?new URL(h.protocol+s):new URL(s),p=Fe(m.pathname,f);m.origin===h.origin&&p!=null?s=p+m.search+m.hash:d=!0}catch{Ee(!1,`<Link to="${s}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:o,isExternal:d,to:s}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var zh=["POST","PUT","PATCH","DELETE"];new Set(zh);var $v=["GET",...zh];new Set($v);var Ua=O.createContext(null);Ua.displayName="DataRouter";var oi=O.createContext(null);oi.displayName="DataRouterState";var Wv=O.createContext(!1),Th=O.createContext({isTransitioning:!1});Th.displayName="ViewTransition";var kv=O.createContext(new Map);kv.displayName="Fetchers";var Fv=O.createContext(null);Fv.displayName="Await";var ge=O.createContext(null);ge.displayName="Navigation";var xa=O.createContext(null);xa.displayName="Location";var Ue=O.createContext({outlet:null,matches:[],isDataRoute:!1});Ue.displayName="Route";var Vf=O.createContext(null);Vf.displayName="RouteError";var Ah="REACT_ROUTER_ERROR",Iv="REDIRECT",Pv="ROUTE_ERROR_RESPONSE";function t0(i){if(i.startsWith(`${Ah}:${Iv}:{`))try{let f=JSON.parse(i.slice(28));if(typeof f=="object"&&f&&typeof f.status=="number"&&typeof f.statusText=="string"&&typeof f.location=="string"&&typeof f.reloadDocument=="boolean"&&typeof f.replace=="boolean")return f}catch{}}function e0(i){if(i.startsWith(`${Ah}:${Pv}:{`))try{let f=JSON.parse(i.slice(40));if(typeof f=="object"&&f&&typeof f.status=="number"&&typeof f.statusText=="string")return new Zv(f.status,f.statusText,f.data)}catch{}}function l0(i,{relative:f}={}){pt(Un(),"useHref() may be used only in the context of a <Router> component.");let{basename:s,navigator:o}=O.useContext(ge),{hash:d,pathname:h,search:m}=Nn(i,{relative:f}),p=h;return s!=="/"&&(p=h==="/"?s:ke([s,h])),o.createHref({pathname:p,search:m,hash:d})}function Un(){return O.useContext(xa)!=null}function ze(){return pt(Un(),"useLocation() may be used only in the context of a <Router> component."),O.useContext(xa).location}function a0(){return O.useContext(xa).navigationType}var Oh="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Mh(i){O.useContext(ge).static||O.useLayoutEffect(i)}function xn(){let{isDataRoute:i}=O.useContext(Ue);return i?g0():n0()}function n0(){pt(Un(),"useNavigate() may be used only in the context of a <Router> component.");let i=O.useContext(Ua),{basename:f,navigator:s}=O.useContext(ge),{matches:o}=O.useContext(Ue),{pathname:d}=ze(),h=JSON.stringify(ph(o)),m=O.useRef(!1);return Mh(()=>{m.current=!0}),O.useCallback((b,T={})=>{if(Ee(m.current,Oh),!m.current)return;if(typeof b=="number"){s.go(b);return}let C=bh(b,JSON.parse(h),d,T.relative==="path");i==null&&f!=="/"&&(C.pathname=C.pathname==="/"?f:ke([f,C.pathname])),(T.replace?s.replace:s.push)(C,T.state,T)},[f,s,h,d,i])}O.createContext(null);function u0(){let{matches:i}=O.useContext(Ue),f=i[i.length-1];return f?f.params:{}}function Nn(i,{relative:f}={}){let{matches:s}=O.useContext(Ue),{pathname:o}=ze(),d=JSON.stringify(ph(s));return O.useMemo(()=>bh(i,JSON.parse(d),o,f==="path"),[i,d,o,f])}function i0(i,f){return Rh(i,f)}function Rh(i,f,s,o,d){pt(Un(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:h}=O.useContext(ge),{matches:m}=O.useContext(Ue),p=m[m.length-1],b=p?p.params:{},T=p?p.pathname:"/",C=p?p.pathnameBase:"/",S=p&&p.route;{let B=S&&S.path||"";Ch(T,!S||B.endsWith("*")||B.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${T}" (under <Route path="${B}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
14
14
 
15
15
  Please change the parent <Route path="${B}"> to <Route path="${B==="/"?"*":`${B}/*`}">.`)}let N=ze(),_;if(f){let B=typeof f=="string"?Ca(f):f;pt(C==="/"||B.pathname?.startsWith(C),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${C}" but pathname "${B.pathname}" was given in the \`location\` prop.`),_=B}else _=N;let w=_.pathname||"/",H=w;if(C!=="/"){let B=C.replace(/^\//,"").split("/");H="/"+w.replace(/^\//,"").split("/").slice(B.length).join("/")}let Y=mh(i,{pathname:H});Ee(S||Y!=null,`No routes matched location "${_.pathname}${_.search}${_.hash}" `),Ee(Y==null||Y[Y.length-1].route.element!==void 0||Y[Y.length-1].route.Component!==void 0||Y[Y.length-1].route.lazy!==void 0,`Matched leaf route at location "${_.pathname}${_.search}${_.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let X=r0(Y&&Y.map(B=>Object.assign({},B,{params:Object.assign({},b,B.params),pathname:ke([C,h.encodeLocation?h.encodeLocation(B.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:B.pathname]),pathnameBase:B.pathnameBase==="/"?C:ke([C,h.encodeLocation?h.encodeLocation(B.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:B.pathnameBase])})),m,s,o,d);return f&&X?O.createElement(xa.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",..._},navigationType:"POP"}},X):X}function c0(){let i=v0(),f=Kv(i)?`${i.status} ${i.statusText}`:i instanceof Error?i.message:JSON.stringify(i),s=i instanceof Error?i.stack:null,o="rgba(200,200,200, 0.5)",d={padding:"0.5rem",backgroundColor:o},h={padding:"2px 4px",backgroundColor:o},m=null;return console.error("Error handled by React Router default ErrorBoundary:",i),m=O.createElement(O.Fragment,null,O.createElement("p",null,"💿 Hey developer 👋"),O.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",O.createElement("code",{style:h},"ErrorBoundary")," or"," ",O.createElement("code",{style:h},"errorElement")," prop on your route.")),O.createElement(O.Fragment,null,O.createElement("h2",null,"Unexpected Application Error!"),O.createElement("h3",{style:{fontStyle:"italic"}},f),s?O.createElement("pre",{style:d},s):null,m)}var f0=O.createElement(c0,null),Dh=class extends O.Component{constructor(i){super(i),this.state={location:i.location,revalidation:i.revalidation,error:i.error}}static getDerivedStateFromError(i){return{error:i}}static getDerivedStateFromProps(i,f){return f.location!==i.location||f.revalidation!=="idle"&&i.revalidation==="idle"?{error:i.error,location:i.location,revalidation:i.revalidation}:{error:i.error!==void 0?i.error:f.error,location:f.location,revalidation:i.revalidation||f.revalidation}}componentDidCatch(i,f){this.props.onError?this.props.onError(i,f):console.error("React Router caught the following error during render",i)}render(){let i=this.state.error;if(this.context&&typeof i=="object"&&i&&"digest"in i&&typeof i.digest=="string"){const s=e0(i.digest);s&&(i=s)}let f=i!==void 0?O.createElement(Ue.Provider,{value:this.props.routeContext},O.createElement(Vf.Provider,{value:i,children:this.props.component})):this.props.children;return this.context?O.createElement(o0,{error:i},f):f}};Dh.contextType=Wv;var jf=new WeakMap;function o0({children:i,error:f}){let{basename:s}=O.useContext(ge);if(typeof f=="object"&&f&&"digest"in f&&typeof f.digest=="string"){let o=t0(f.digest);if(o){let d=jf.get(f);if(d)throw d;let h=Eh(o.location,s);if(Sh&&!jf.get(f))if(h.isExternal||o.reloadDocument)window.location.href=h.absoluteURL||h.to;else{const m=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(h.to,{replace:o.replace}));throw jf.set(f,m),m}return O.createElement("meta",{httpEquiv:"refresh",content:`0;url=${h.absoluteURL||h.to}`})}}return i}function s0({routeContext:i,match:f,children:s}){let o=O.useContext(Ua);return o&&o.static&&o.staticContext&&(f.route.errorElement||f.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=f.route.id),O.createElement(Ue.Provider,{value:i},s)}function r0(i,f=[],s=null,o=null,d=null){if(i==null){if(!s)return null;if(s.errors)i=s.matches;else if(f.length===0&&!s.initialized&&s.matches.length>0)i=s.matches;else return null}let h=i,m=s?.errors;if(m!=null){let C=h.findIndex(S=>S.route.id&&m?.[S.route.id]!==void 0);pt(C>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(m).join(",")}`),h=h.slice(0,Math.min(h.length,C+1))}let p=!1,b=-1;if(s)for(let C=0;C<h.length;C++){let S=h[C];if((S.route.HydrateFallback||S.route.hydrateFallbackElement)&&(b=C),S.route.id){let{loaderData:N,errors:_}=s,w=S.route.loader&&!N.hasOwnProperty(S.route.id)&&(!_||_[S.route.id]===void 0);if(S.route.lazy||w){p=!0,b>=0?h=h.slice(0,b+1):h=[h[0]];break}}}let T=s&&o?(C,S)=>{o(C,{location:s.location,params:s.matches?.[0]?.params??{},unstable_pattern:Jv(s.matches),errorInfo:S})}:void 0;return h.reduceRight((C,S,N)=>{let _,w=!1,H=null,Y=null;s&&(_=m&&S.route.id?m[S.route.id]:void 0,H=S.route.errorElement||f0,p&&(b<0&&N===0?(Ch("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),w=!0,Y=null):b===N&&(w=!0,Y=S.route.hydrateFallbackElement||null)));let X=f.concat(h.slice(0,N+1)),B=()=>{let Q;return _?Q=H:w?Q=Y:S.route.Component?Q=O.createElement(S.route.Component,null):S.route.element?Q=S.route.element:Q=C,O.createElement(s0,{match:S,routeContext:{outlet:C,matches:X,isDataRoute:s!=null},children:Q})};return s&&(S.route.ErrorBoundary||S.route.errorElement||N===0)?O.createElement(Dh,{location:s.location,revalidation:s.revalidation,component:H,error:_,children:B(),routeContext:{outlet:null,matches:X,isDataRoute:!0},onError:T}):B()},null)}function Zf(i){return`${i} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function d0(i){let f=O.useContext(Ua);return pt(f,Zf(i)),f}function h0(i){let f=O.useContext(oi);return pt(f,Zf(i)),f}function m0(i){let f=O.useContext(Ue);return pt(f,Zf(i)),f}function Kf(i){let f=m0(i),s=f.matches[f.matches.length-1];return pt(s.route.id,`${i} can only be used on routes that contain a unique "id"`),s.route.id}function y0(){return Kf("useRouteId")}function v0(){let i=O.useContext(Vf),f=h0("useRouteError"),s=Kf("useRouteError");return i!==void 0?i:f.errors?.[s]}function g0(){let{router:i}=d0("useNavigate"),f=Kf("useNavigate"),s=O.useRef(!1);return Mh(()=>{s.current=!0}),O.useCallback(async(d,h={})=>{Ee(s.current,Oh),s.current&&(typeof d=="number"?await i.navigate(d):await i.navigate(d,{fromRouteId:f,...h}))},[i,f])}var fh={};function Ch(i,f,s){!f&&!fh[i]&&(fh[i]=!0,Ee(!1,s))}O.memo(p0);function p0({routes:i,future:f,state:s,onError:o}){return Rh(i,void 0,s,o,f)}function Uh(i){pt(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function b0({basename:i="/",children:f=null,location:s,navigationType:o="POP",navigator:d,static:h=!1,unstable_useTransitions:m}){pt(!Un(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let p=i.replace(/^\/*/,"/"),b=O.useMemo(()=>({basename:p,navigator:d,static:h,unstable_useTransitions:m,future:{}}),[p,d,h,m]);typeof s=="string"&&(s=Ca(s));let{pathname:T="/",search:C="",hash:S="",state:N=null,key:_="default"}=s,w=O.useMemo(()=>{let H=Fe(T,p);return H==null?null:{location:{pathname:H,search:C,hash:S,state:N,key:_},navigationType:o}},[p,T,C,S,N,_,o]);return Ee(w!=null,`<Router basename="${p}"> is not able to match the URL "${T}${C}${S}" because it does not start with the basename, so the <Router> won't render anything.`),w==null?null:O.createElement(ge.Provider,{value:b},O.createElement(xa.Provider,{children:f,value:w}))}function S0({children:i,location:f}){return i0(wf(i),f)}function wf(i,f=[]){let s=[];return O.Children.forEach(i,(o,d)=>{if(!O.isValidElement(o))return;let h=[...f,d];if(o.type===O.Fragment){s.push.apply(s,wf(o.props.children,h));return}pt(o.type===Uh,`[${typeof o.type=="string"?o.type:o.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),pt(!o.props.index||!o.props.children,"An index route cannot have child routes.");let m={id:o.props.id||h.join("-"),caseSensitive:o.props.caseSensitive,element:o.props.element,Component:o.props.Component,index:o.props.index,path:o.props.path,middleware:o.props.middleware,loader:o.props.loader,action:o.props.action,hydrateFallbackElement:o.props.hydrateFallbackElement,HydrateFallback:o.props.HydrateFallback,errorElement:o.props.errorElement,ErrorBoundary:o.props.ErrorBoundary,hasErrorBoundary:o.props.hasErrorBoundary===!0||o.props.ErrorBoundary!=null||o.props.errorElement!=null,shouldRevalidate:o.props.shouldRevalidate,handle:o.props.handle,lazy:o.props.lazy};o.props.children&&(m.children=wf(o.props.children,h)),s.push(m)}),s}var ui="get",ii="application/x-www-form-urlencoded";function si(i){return typeof HTMLElement<"u"&&i instanceof HTMLElement}function E0(i){return si(i)&&i.tagName.toLowerCase()==="button"}function z0(i){return si(i)&&i.tagName.toLowerCase()==="form"}function T0(i){return si(i)&&i.tagName.toLowerCase()==="input"}function A0(i){return!!(i.metaKey||i.altKey||i.ctrlKey||i.shiftKey)}function O0(i,f){return i.button===0&&(!f||f==="_self")&&!A0(i)}var ei=null;function M0(){if(ei===null)try{new FormData(document.createElement("form"),0),ei=!1}catch{ei=!0}return ei}var R0=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function qf(i){return i!=null&&!R0.has(i)?(Ee(!1,`"${i}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${ii}"`),null):i}function D0(i,f){let s,o,d,h,m;if(z0(i)){let p=i.getAttribute("action");o=p?Fe(p,f):null,s=i.getAttribute("method")||ui,d=qf(i.getAttribute("enctype"))||ii,h=new FormData(i)}else if(E0(i)||T0(i)&&(i.type==="submit"||i.type==="image")){let p=i.form;if(p==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let b=i.getAttribute("formaction")||p.getAttribute("action");if(o=b?Fe(b,f):null,s=i.getAttribute("formmethod")||p.getAttribute("method")||ui,d=qf(i.getAttribute("formenctype"))||qf(p.getAttribute("enctype"))||ii,h=new FormData(p,i),!M0()){let{name:T,type:C,value:S}=i;if(C==="image"){let N=T?`${T}.`:"";h.append(`${N}x`,"0"),h.append(`${N}y`,"0")}else T&&h.append(T,S)}}else{if(si(i))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');s=ui,o=null,d=ii,m=i}return h&&d==="text/plain"&&(m=h,h=void 0),{action:o,method:s.toLowerCase(),encType:d,formData:h,body:m}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Jf(i,f){if(i===!1||i===null||typeof i>"u")throw new Error(f)}function C0(i,f,s,o){let d=typeof i=="string"?new URL(i,typeof window>"u"?"server://singlefetch/":window.location.origin):i;return s?d.pathname.endsWith("/")?d.pathname=`${d.pathname}_.${o}`:d.pathname=`${d.pathname}.${o}`:d.pathname==="/"?d.pathname=`_root.${o}`:f&&Fe(d.pathname,f)==="/"?d.pathname=`${f.replace(/\/$/,"")}/_root.${o}`:d.pathname=`${d.pathname.replace(/\/$/,"")}.${o}`,d}async function U0(i,f){if(i.id in f)return f[i.id];try{let s=await import(i.module);return f[i.id]=s,s}catch(s){return console.error(`Error loading route module \`${i.module}\`, reloading page...`),console.error(s),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function x0(i){return i==null?!1:i.href==null?i.rel==="preload"&&typeof i.imageSrcSet=="string"&&typeof i.imageSizes=="string":typeof i.rel=="string"&&typeof i.href=="string"}async function N0(i,f,s){let o=await Promise.all(i.map(async d=>{let h=f.routes[d.route.id];if(h){let m=await U0(h,s);return m.links?m.links():[]}return[]}));return j0(o.flat(1).filter(x0).filter(d=>d.rel==="stylesheet"||d.rel==="preload").map(d=>d.rel==="stylesheet"?{...d,rel:"prefetch",as:"style"}:{...d,rel:"prefetch"}))}function oh(i,f,s,o,d,h){let m=(b,T)=>s[T]?b.route.id!==s[T].route.id:!0,p=(b,T)=>s[T].pathname!==b.pathname||s[T].route.path?.endsWith("*")&&s[T].params["*"]!==b.params["*"];return h==="assets"?f.filter((b,T)=>m(b,T)||p(b,T)):h==="data"?f.filter((b,T)=>{let C=o.routes[b.route.id];if(!C||!C.hasLoader)return!1;if(m(b,T)||p(b,T))return!0;if(b.route.shouldRevalidate){let S=b.route.shouldRevalidate({currentUrl:new URL(d.pathname+d.search+d.hash,window.origin),currentParams:s[0]?.params||{},nextUrl:new URL(i,window.origin),nextParams:b.params,defaultShouldRevalidate:!0});if(typeof S=="boolean")return S}return!0}):[]}function _0(i,f,{includeHydrateFallback:s}={}){return B0(i.map(o=>{let d=f.routes[o.route.id];if(!d)return[];let h=[d.module];return d.clientActionModule&&(h=h.concat(d.clientActionModule)),d.clientLoaderModule&&(h=h.concat(d.clientLoaderModule)),s&&d.hydrateFallbackModule&&(h=h.concat(d.hydrateFallbackModule)),d.imports&&(h=h.concat(d.imports)),h}).flat(1))}function B0(i){return[...new Set(i)]}function H0(i){let f={},s=Object.keys(i).sort();for(let o of s)f[o]=i[o];return f}function j0(i,f){let s=new Set;return new Set(f),i.reduce((o,d)=>{let h=JSON.stringify(H0(d));return s.has(h)||(s.add(h),o.push({key:h,link:d})),o},[])}function xh(){let i=O.useContext(Ua);return Jf(i,"You must render this element inside a <DataRouterContext.Provider> element"),i}function q0(){let i=O.useContext(oi);return Jf(i,"You must render this element inside a <DataRouterStateContext.Provider> element"),i}var $f=O.createContext(void 0);$f.displayName="FrameworkContext";function Nh(){let i=O.useContext($f);return Jf(i,"You must render this element inside a <HydratedRouter> element"),i}function L0(i,f){let s=O.useContext($f),[o,d]=O.useState(!1),[h,m]=O.useState(!1),{onFocus:p,onBlur:b,onMouseEnter:T,onMouseLeave:C,onTouchStart:S}=f,N=O.useRef(null);O.useEffect(()=>{if(i==="render"&&m(!0),i==="viewport"){let H=X=>{X.forEach(B=>{m(B.isIntersecting)})},Y=new IntersectionObserver(H,{threshold:.5});return N.current&&Y.observe(N.current),()=>{Y.disconnect()}}},[i]),O.useEffect(()=>{if(o){let H=setTimeout(()=>{m(!0)},100);return()=>{clearTimeout(H)}}},[o]);let _=()=>{d(!0)},w=()=>{d(!1),m(!1)};return s?i!=="intent"?[h,N,{}]:[h,N,{onFocus:Dn(p,_),onBlur:Dn(b,w),onMouseEnter:Dn(T,_),onMouseLeave:Dn(C,w),onTouchStart:Dn(S,_)}]:[!1,N,{}]}function Dn(i,f){return s=>{i&&i(s),s.defaultPrevented||f(s)}}function Y0({page:i,...f}){let{router:s}=xh(),o=O.useMemo(()=>mh(s.routes,i,s.basename),[s.routes,i,s.basename]);return o?O.createElement(G0,{page:i,matches:o,...f}):null}function w0(i){let{manifest:f,routeModules:s}=Nh(),[o,d]=O.useState([]);return O.useEffect(()=>{let h=!1;return N0(i,f,s).then(m=>{h||d(m)}),()=>{h=!0}},[i,f,s]),o}function G0({page:i,matches:f,...s}){let o=ze(),{future:d,manifest:h,routeModules:m}=Nh(),{basename:p}=xh(),{loaderData:b,matches:T}=q0(),C=O.useMemo(()=>oh(i,f,T,h,o,"data"),[i,f,T,h,o]),S=O.useMemo(()=>oh(i,f,T,h,o,"assets"),[i,f,T,h,o]),N=O.useMemo(()=>{if(i===o.pathname+o.search+o.hash)return[];let H=new Set,Y=!1;if(f.forEach(B=>{let Q=h.routes[B.route.id];!Q||!Q.hasLoader||(!C.some(st=>st.route.id===B.route.id)&&B.route.id in b&&m[B.route.id]?.shouldRevalidate||Q.hasClientLoader?Y=!0:H.add(B.route.id))}),H.size===0)return[];let X=C0(i,p,d.unstable_trailingSlashAwareDataRequests,"data");return Y&&H.size>0&&X.searchParams.set("_routes",f.filter(B=>H.has(B.route.id)).map(B=>B.route.id).join(",")),[X.pathname+X.search]},[p,d.unstable_trailingSlashAwareDataRequests,b,o,h,C,f,i,m]),_=O.useMemo(()=>_0(S,h),[S,h]),w=w0(S);return O.createElement(O.Fragment,null,N.map(H=>O.createElement("link",{key:H,rel:"prefetch",as:"fetch",href:H,...s})),_.map(H=>O.createElement("link",{key:H,rel:"modulepreload",href:H,...s})),w.map(({key:H,link:Y})=>O.createElement("link",{key:H,nonce:s.nonce,...Y})))}function X0(...i){return f=>{i.forEach(s=>{typeof s=="function"?s(f):s!=null&&(s.current=f)})}}var Q0=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{Q0&&(window.__reactRouterVersion="7.12.0")}catch{}function V0({basename:i,children:f,unstable_useTransitions:s,window:o}){let d=O.useRef();d.current==null&&(d.current=zv({window:o,v5Compat:!0}));let h=d.current,[m,p]=O.useState({action:h.action,location:h.location}),b=O.useCallback(T=>{s===!1?p(T):O.startTransition(()=>p(T))},[s]);return O.useLayoutEffect(()=>h.listen(b),[h,b]),O.createElement(b0,{basename:i,children:f,location:m.location,navigationType:m.action,navigator:h,unstable_useTransitions:s})}var _h=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Wf=O.forwardRef(function({onClick:f,discover:s="render",prefetch:o="none",relative:d,reloadDocument:h,replace:m,state:p,target:b,to:T,preventScrollReset:C,viewTransition:S,unstable_defaultShouldRevalidate:N,..._},w){let{basename:H,unstable_useTransitions:Y}=O.useContext(ge),X=typeof T=="string"&&_h.test(T),B=Eh(T,H);T=B.to;let Q=l0(T,{relative:d}),[st,rt,Dt]=L0(o,_),_t=$0(T,{replace:m,state:p,target:b,preventScrollReset:C,relative:d,viewTransition:S,unstable_defaultShouldRevalidate:N,unstable_useTransitions:Y});function Ct(Te){f&&f(Te),Te.defaultPrevented||_t(Te)}let $t=O.createElement("a",{..._,...Dt,href:B.absoluteURL||Q,onClick:B.isExternal||h?f:Ct,ref:X0(w,rt),target:b,"data-discover":!X&&s==="render"?"true":void 0});return st&&!X?O.createElement(O.Fragment,null,$t,O.createElement(Y0,{page:Q})):$t});Wf.displayName="Link";var Z0=O.forwardRef(function({"aria-current":f="page",caseSensitive:s=!1,className:o="",end:d=!1,style:h,to:m,viewTransition:p,children:b,...T},C){let S=Nn(m,{relative:T.relative}),N=ze(),_=O.useContext(oi),{navigator:w,basename:H}=O.useContext(ge),Y=_!=null&&P0(S)&&p===!0,X=w.encodeLocation?w.encodeLocation(S).pathname:S.pathname,B=N.pathname,Q=_&&_.navigation&&_.navigation.location?_.navigation.location.pathname:null;s||(B=B.toLowerCase(),Q=Q?Q.toLowerCase():null,X=X.toLowerCase()),Q&&H&&(Q=Fe(Q,H)||Q);const st=X!=="/"&&X.endsWith("/")?X.length-1:X.length;let rt=B===X||!d&&B.startsWith(X)&&B.charAt(st)==="/",Dt=Q!=null&&(Q===X||!d&&Q.startsWith(X)&&Q.charAt(X.length)==="/"),_t={isActive:rt,isPending:Dt,isTransitioning:Y},Ct=rt?f:void 0,$t;typeof o=="function"?$t=o(_t):$t=[o,rt?"active":null,Dt?"pending":null,Y?"transitioning":null].filter(Boolean).join(" ");let Te=typeof h=="function"?h(_t):h;return O.createElement(Wf,{...T,"aria-current":Ct,className:$t,ref:C,style:Te,to:m,viewTransition:p},typeof b=="function"?b(_t):b)});Z0.displayName="NavLink";var K0=O.forwardRef(({discover:i="render",fetcherKey:f,navigate:s,reloadDocument:o,replace:d,state:h,method:m=ui,action:p,onSubmit:b,relative:T,preventScrollReset:C,viewTransition:S,unstable_defaultShouldRevalidate:N,..._},w)=>{let{unstable_useTransitions:H}=O.useContext(ge),Y=F0(),X=I0(p,{relative:T}),B=m.toLowerCase()==="get"?"get":"post",Q=typeof p=="string"&&_h.test(p),st=rt=>{if(b&&b(rt),rt.defaultPrevented)return;rt.preventDefault();let Dt=rt.nativeEvent.submitter,_t=Dt?.getAttribute("formmethod")||m,Ct=()=>Y(Dt||rt.currentTarget,{fetcherKey:f,method:_t,navigate:s,replace:d,state:h,relative:T,preventScrollReset:C,viewTransition:S,unstable_defaultShouldRevalidate:N});H&&s!==!1?O.startTransition(()=>Ct()):Ct()};return O.createElement("form",{ref:w,method:B,action:X,onSubmit:o?b:st,..._,"data-discover":!Q&&i==="render"?"true":void 0})});K0.displayName="Form";function J0(i){return`${i} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Bh(i){let f=O.useContext(Ua);return pt(f,J0(i)),f}function $0(i,{target:f,replace:s,state:o,preventScrollReset:d,relative:h,viewTransition:m,unstable_defaultShouldRevalidate:p,unstable_useTransitions:b}={}){let T=xn(),C=ze(),S=Nn(i,{relative:h});return O.useCallback(N=>{if(O0(N,f)){N.preventDefault();let _=s!==void 0?s:Cn(C)===Cn(S),w=()=>T(i,{replace:_,state:o,preventScrollReset:d,relative:h,viewTransition:m,unstable_defaultShouldRevalidate:p});b?O.startTransition(()=>w()):w()}},[C,T,S,s,o,f,i,d,h,m,p,b])}var W0=0,k0=()=>`__${String(++W0)}__`;function F0(){let{router:i}=Bh("useSubmit"),{basename:f}=O.useContext(ge),s=y0(),o=i.fetch,d=i.navigate;return O.useCallback(async(h,m={})=>{let{action:p,method:b,encType:T,formData:C,body:S}=D0(h,f);if(m.navigate===!1){let N=m.fetcherKey||k0();await o(N,s,m.action||p,{unstable_defaultShouldRevalidate:m.unstable_defaultShouldRevalidate,preventScrollReset:m.preventScrollReset,formData:C,body:S,formMethod:m.method||b,formEncType:m.encType||T,flushSync:m.flushSync})}else await d(m.action||p,{unstable_defaultShouldRevalidate:m.unstable_defaultShouldRevalidate,preventScrollReset:m.preventScrollReset,formData:C,body:S,formMethod:m.method||b,formEncType:m.encType||T,replace:m.replace,state:m.state,fromRouteId:s,flushSync:m.flushSync,viewTransition:m.viewTransition})},[o,d,f,s])}function I0(i,{relative:f}={}){let{basename:s}=O.useContext(ge),o=O.useContext(Ue);pt(o,"useFormAction must be used inside a RouteContext");let[d]=o.matches.slice(-1),h={...Nn(i||".",{relative:f})},m=ze();if(i==null){h.search=m.search;let p=new URLSearchParams(h.search),b=p.getAll("index");if(b.some(C=>C==="")){p.delete("index"),b.filter(S=>S).forEach(S=>p.append("index",S));let C=p.toString();h.search=C?`?${C}`:""}}return(!i||i===".")&&d.route.index&&(h.search=h.search?h.search.replace(/^\?/,"?index&"):"?index"),s!=="/"&&(h.pathname=h.pathname==="/"?s:ke([s,h.pathname])),Cn(h)}function P0(i,{relative:f}={}){let s=O.useContext(Th);pt(s!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:o}=Bh("useViewTransitionState"),d=Nn(i,{relative:f});if(!s.isTransitioning)return!1;let h=Fe(s.currentLocation.pathname,o)||s.currentLocation.pathname,m=Fe(s.nextLocation.pathname,o)||s.nextLocation.pathname;return ci(d.pathname,m)!=null||ci(d.pathname,h)!=null}function tg(i){return{title:i.title||"",pretitle:i.pretitle||"",subtitle:i.subtitle||"",paragraphs:i.paragraphs||[],links:i.links||[],images:i.images||[],lists:i.lists||[],icons:i.icons||[],videos:i.videos||[],snippets:i.snippets||[],buttons:i.buttons||[],data:i.data||{},cards:i.cards||[],documents:i.documents||[],forms:i.forms||[],quotes:i.quotes||[],headings:i.headings||[]}}function eg(i){const f=i||{};return{title:f.title||"",pretitle:f.pretitle||"",subtitle:f.subtitle||"",alignment:f.alignment||null,paragraphs:f.paragraphs||[],links:f.links||[],images:f.images||[],lists:f.lists||[],icons:f.icons||[],videos:f.videos||[],insets:f.insets||[],snippets:f.snippets||[],buttons:f.buttons||[],data:f.data||{},cards:f.cards||[],documents:f.documents||[],forms:f.forms||[],quotes:f.quotes||[],headings:f.headings||[],items:(f.items||[]).map(tg),sequence:f.sequence||[],raw:f.raw}}function fi(i,f){if(!i||typeof i!="object"||Array.isArray(i))return i;const s={...i};for(const[o,d]of Object.entries(f)){const h=typeof d=="object"?d.default:void 0;s[o]===void 0&&h!==void 0&&(s[o]=h),typeof d=="object"&&d.options&&Array.isArray(d.options)&&s[o]!==void 0&&!d.options.includes(s[o])&&h!==void 0&&(s[o]=h),typeof d=="object"&&d.type==="object"&&d.schema&&s[o]&&(s[o]=fi(s[o],d.schema)),typeof d=="object"&&d.type==="array"&&d.of&&s[o]&&typeof d.of=="object"&&(s[o]=s[o].map(m=>fi(m,d.of)))}return s}function lg(i,f){return Array.isArray(i)?i.map(s=>fi(s,f)):fi(i,f)}function ag(i,f){if(!f||!i||typeof i!="object")return i||{};const s={...i};for(const[o,d]of Object.entries(i)){const h=f[o];h&&(s[o]=lg(d,h))}return s}function ng(i,f){return!f||Object.keys(f).length===0?i||{}:{...f,...i||{}}}function ug(i,f){const s=f?.defaults||{},o=ng(i.properties,s),d=eg(i.parsedContent),h=f?.schemas||null;return h&&d.data&&(d.data=ag(d.data,h)),{content:d,params:o}}function ig(i){return globalThis.uniweb?.getComponentMeta?.(i)||null}const li={COLOR:"color",GRADIENT:"gradient",IMAGE:"image",VIDEO:"video"};function Gf(i){if(!i||!i.startsWith("/"))return i;const f=globalThis.uniweb?.activeWebsite?.basePath||"";return!f||i.startsWith(f+"/")||i===f?i:f+i}function cg({gradient:i,opacity:f=.5}){const{start:s="rgba(0,0,0,0.7)",end:o="rgba(0,0,0,0)",angle:d=180,startPosition:h=0,endPosition:m=100}=i,p={position:"absolute",inset:0,background:`linear-gradient(${d}deg, ${s} ${h}%, ${o} ${m}%)`,opacity:f,pointerEvents:"none"};return q.jsx("div",{className:"background-overlay background-overlay--gradient",style:p,"aria-hidden":"true"})}function fg({type:i="dark",opacity:f=.5}){const o={position:"absolute",inset:0,backgroundColor:`rgba(${i==="light"?"255, 255, 255":"0, 0, 0"}, ${f})`,pointerEvents:"none"};return q.jsx("div",{className:"background-overlay background-overlay--solid",style:o,"aria-hidden":"true"})}function og({overlay:i}){return i?.enabled?i.gradient?q.jsx(cg,{gradient:i.gradient,opacity:i.opacity}):q.jsx(fg,{type:i.type,opacity:i.opacity}):null}function sg({color:i}){if(!i)return null;const f={position:"absolute",inset:0,backgroundColor:i};return q.jsx("div",{className:"background-color",style:f,"aria-hidden":"true"})}function rg({gradient:i}){if(!i)return null;if(typeof i=="string"){const S={position:"absolute",inset:0,background:i};return q.jsx("div",{className:"background-gradient",style:S,"aria-hidden":"true"})}const{start:f="transparent",end:s="transparent",angle:o=0,startPosition:d=0,endPosition:h=100,startOpacity:m=1,endOpacity:p=1}=i,b=m<1?sh(f,m):f,T=p<1?sh(s,p):s,C={position:"absolute",inset:0,background:`linear-gradient(${o}deg, ${b} ${d}%, ${T} ${h}%)`};return q.jsx("div",{className:"background-gradient",style:C,"aria-hidden":"true"})}function sh(i,f){if(i.startsWith("#")){const s=parseInt(i.slice(1,3),16),o=parseInt(i.slice(3,5),16),d=parseInt(i.slice(5,7),16);return`rgba(${s}, ${o}, ${d}, ${f})`}if(i.startsWith("rgb")){const s=i.match(/rgba?\((\d+),\s*(\d+),\s*(\d+)/);if(s)return`rgba(${s[1]}, ${s[2]}, ${s[3]}, ${f})`}return i}function Hh({image:i}){if(!i?.src)return null;const{src:f,position:s="center",size:o="cover",lazy:d=!0}=i,h={position:"absolute",inset:0,backgroundImage:`url(${Gf(f)})`,backgroundPosition:s,backgroundSize:o,backgroundRepeat:"no-repeat"};return q.jsx("div",{className:"background-image",style:h,"aria-hidden":"true"})}function dg(){return typeof window>"u"?!1:window.matchMedia("(prefers-reduced-motion: reduce)").matches}function hg({video:i}){if(!i?.src)return null;const{src:f,sources:s,poster:o,loop:d=!0,muted:h=!0}=i;if(dg()&&o)return q.jsx(Hh,{image:{src:o,size:"cover",position:"center"}});const m={position:"absolute",inset:0,width:"100%",height:"100%",objectFit:"cover"},p=(s||mg(f)).map(b=>({...b,src:Gf(b.src)}));return q.jsx("video",{className:"background-video",style:m,autoPlay:!0,loop:d,muted:h,playsInline:!0,poster:Gf(o),"aria-hidden":"true",children:p.map(({src:b,type:T},C)=>q.jsx("source",{src:b,type:T},C))})}function mg(i){const f=[],s=i.split(".").pop()?.toLowerCase(),o=i.slice(0,i.lastIndexOf("."));return s==="mp4"?(f.push({src:`${o}.webm`,type:"video/webm"}),f.push({src:i,type:"video/mp4"})):s==="webm"?(f.push({src:i,type:"video/webm"}),f.push({src:`${o}.mp4`,type:"video/mp4"})):f.push({src:i,type:yg(i)}),f}function yg(i){return i.endsWith(".webm")?"video/webm":i.endsWith(".ogg")||i.endsWith(".ogv")?"video/ogg":"video/mp4"}function vg({mode:i,color:f,gradient:s,image:o,video:d,overlay:h,className:m=""}){if(!i)return null;const p={position:"absolute",inset:0,overflow:"hidden",zIndex:0};return q.jsxs("div",{className:`background background--${i} ${m}`.trim(),style:p,"aria-hidden":"true",children:[i===li.COLOR&&q.jsx(sg,{color:f}),i===li.GRADIENT&&q.jsx(rg,{gradient:s}),i===li.IMAGE&&q.jsx(Hh,{image:o}),i===li.VIDEO&&q.jsx(hg,{video:d}),q.jsx(og,{overlay:h})]})}const gg=["light","medium","dark"],pg=i=>{const f=i.themeName,s=i.state?.className||"";let o="";f&&gg.includes(f)&&(o=`context-${f}`);let d=o;s&&(d=d?`${d} ${s}`:s);const{background:h={}}=i.standardOptions,m={};if(h.mode&&(m.position="relative",m.isolation="isolate"),i.contextOverrides)for(const[b,T]of Object.entries(i.contextOverrides))m[`--${b}`]=T;return{id:`section-${i.stableId||i.id}`,style:m,className:d,background:h}};function jh({block:i,as:f="section"}){const s=i.initComponent(),o=i.website.entityStore,d=ig(i.type),h=o.resolve(i,d),[m,p]=O.useState(null);O.useEffect(()=>{p(null)},[i]),O.useEffect(()=>{if(h.status!=="pending")return;let B=!1;return o.fetch(i,d).then(Q=>{!B&&Q.data&&p(Q.data)}),()=>{B=!0}},[i]);const b=h.status==="ready"?h.data:m;if(i.dataLoading=h.status==="pending"&&!b,!s)return q.jsxs("div",{className:"block-error",style:{padding:"1rem",background:"#fef2f2",color:"#dc2626"},children:["Component not found: ",i.type]});const T=ug(i,d);let C=T.params,S={...T.content,...i.properties};if(b){const B={...S.data};for(const Q of Object.keys(b))B[Q]===void 0&&(B[Q]=b[Q]);S.data=B}const N={content:S,params:C,block:i};if(!f)return q.jsx(s,{...N});const{background:_,...w}=pg(i),H=s.className;H&&(w.className=w.className?`${w.className} ${H}`:H);const Y=_?.mode&&d?.background!=="self";i.hasBackground=Y;const X=f!=="section"?f:s.as||"section";return Y?q.jsxs(X,{...w,children:[q.jsx(vg,{mode:_.mode,color:_.color,gradient:_.gradient,image:_.image,video:_.video,overlay:_.overlay}),q.jsx("div",{style:{position:"relative",zIndex:10},children:q.jsx(s,{...N})})]}):q.jsx(X,{...w,children:q.jsx(s,{...N})})}function ai({blocks:i}){return!i||i.length===0?null:i.map((f,s)=>q.jsx(Ce.Fragment,{children:q.jsx(jh,{block:f})},f.id||s))}function bg({header:i,body:f,footer:s}){return q.jsxs("div",{style:{display:"flex",flexDirection:"column",minHeight:"100vh"},children:[i&&q.jsx("header",{children:i}),f&&q.jsx("main",{style:{flex:1},children:f}),s&&q.jsx("footer",{children:s})]})}function Sg(...i){for(const f of i)if(f)for(const s of f)s.initComponent()}function Eg(i={},f={}){return{...f,...i}}function zg({page:i,website:f}){const s=i.getLayoutName(),o=f.getRemoteLayout(s),d=f.getLayoutMeta(s),h=i.getBodyBlocks(),m=i.getLayoutAreas(),p=[h,...Object.values(m)];Sg(...p);const b=f.viewTransitions?d?.transitions:null,T=h?b?.body?q.jsx("div",{style:{viewTransitionName:b.body},children:q.jsx(ai,{blocks:h})}):q.jsx(ai,{blocks:h}):null,C={};for(const[S,N]of Object.entries(m)){const _=b?.[S];C[S]=_?q.jsx("div",{style:{viewTransitionName:_},children:q.jsx(ai,{blocks:N})}):q.jsx(ai,{blocks:N})}if(o){const S=Eg(i.getLayoutParams(),d?.defaults);return q.jsx(o,{page:i,website:f,params:S,body:T,...C},s)}return q.jsx(bg,{body:T,...C})}const Tg={description:{name:"description"},keywords:{name:"keywords"},robots:{name:"robots"},"og:title":{property:"og:title"},"og:description":{property:"og:description"},"og:image":{property:"og:image"},"og:url":{property:"og:url"},"og:type":{property:"og:type"},"twitter:card":{name:"twitter:card"},"twitter:title":{name:"twitter:title"},"twitter:description":{name:"twitter:description"},"twitter:image":{name:"twitter:image"}};function Ag(i){const f=Tg[i];if(!f)return null;const s=f.property?`meta[property="${f.property}"]`:`meta[name="${f.name}"]`;let o=document.querySelector(s);return o||(o=document.createElement("meta"),f.property?o.setAttribute("property",f.property):o.setAttribute("name",f.name),document.head.appendChild(o)),o}function Og(i){let f=document.querySelector(`link[rel="${i}"]`);return f||(f=document.createElement("link"),f.setAttribute("rel",i),document.head.appendChild(f)),f}function ve(i,f){const s=Ag(i);s&&(f?s.setAttribute("content",f):s.remove())}function Mg(i,f={}){const{siteName:s="",titleSeparator:o=" | "}=f;O.useRef([]),O.useEffect(()=>{if(!i)return;if(i.title){const h=s?`${i.title}${o}${s}`:i.title;document.title=h}ve("description",i.description||null);const d=Array.isArray(i.keywords)?i.keywords.join(", "):i.keywords;if(ve("keywords",d||null),ve("robots",i.robots||null),i.og&&(ve("og:title",i.og.title||i.title||null),ve("og:description",i.og.description||i.description||null),ve("og:image",i.og.image||null),ve("og:url",i.og.url||null),ve("og:type","website"),ve("twitter:card",i.og.image?"summary_large_image":"summary"),ve("twitter:title",i.og.title||i.title||null),ve("twitter:description",i.og.description||i.description||null),ve("twitter:image",i.og.image||null)),i.canonical)Og("canonical").setAttribute("href",i.canonical);else{const h=document.querySelector('link[rel="canonical"]');h&&h.remove()}return()=>{document.title=s||"Website"}},[i?.title,i?.description,i?.keywords,i?.canonical,i?.robots,i?.og?.title,i?.og?.description,i?.og?.image,i?.og?.url,s,o])}const ni={wrapper:{minHeight:"80vh",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",padding:"2rem",textAlign:"center"},heading:{fontSize:"3rem",fontWeight:"bold",color:"#1f2937",marginBottom:"1rem"},message:{color:"#64748b",marginBottom:"2rem"},link:{color:"#3b82f6",textDecoration:"underline"}};function Rg(){const i=globalThis.uniweb?.activeWebsite?.basePath||"",f=i?`${i}/`:"/";return Ce.createElement("div",{className:"page-not-found",style:ni.wrapper},Ce.createElement("h1",{style:ni.heading},"404"),Ce.createElement("p",{style:ni.message},"Page not found"),Ce.createElement("a",{href:f,style:ni.link},"Go to homepage"))}function Dg({blocks:i,from:f,wrapAs:s}){return(i||f?.childBlocks||[]).map((d,h)=>q.jsx(Ce.Fragment,{children:q.jsx(jh,{block:d,as:s||null})},d.id||h))}function Cg({page:i,appearance:f}){const s=O.useRef(null),o=O.useMemo(()=>{if(!i)return"";const d=i.getPageBlocks();return gv(d,f)},[i,f]);return O.useEffect(()=>{if(!o){s.current&&(s.current.remove(),s.current=null);return}if(!s.current&&(s.current=document.getElementById("uniweb-page-overrides")||document.createElement("style"),s.current.id="uniweb-page-overrides",!s.current.parentNode)){const d=document.getElementById("uniweb-theme");d&&d.nextSibling?d.parentNode.insertBefore(s.current,d.nextSibling):d?d.parentNode.appendChild(s.current):document.head.appendChild(s.current)}return s.current.textContent=o,()=>{s.current&&(s.current.remove(),s.current=null)}},[o]),null}function Ug(){const i=ze(),s=globalThis.uniweb?.activeWebsite,o=s?.name||"",[,d]=O.useReducer(H=>H+1,0),h=xn();let m=s?.getPage(i.pathname);m&&s&&s.setActivePage(i.pathname);const p=!m||!m.hasContent()||m.isContentLoaded();O.useEffect(()=>{p||m.loadContent().then(()=>d())},[m,p]);const b=m?.redirect||null,T=m&&!m.redirect&&!m.hasContent()?m.getNavigableRoute():null,C=!!(T&&T!==m?.route),S=!m&&!b;S&&(m=s?.getNotFoundPage?.()||null);const N=m?.getHeadMeta?.()||{title:S?"Page Not Found":m?.title||"Website",description:m?.description||""};O.useEffect(()=>{b&&(b.startsWith("http")?window.location.replace(b):h(b,{replace:!0}))},[b,h]),O.useEffect(()=>{C&&h(T,{replace:!0})},[C,T,h]),Mg(N,{siteName:o});const _=!!(m?.dynamicContext&&!s?._dynamicPageCache?.has(i.pathname));if(O.useEffect(()=>{if(!(!_||!s?.dataStore))return s.dataStore.onUpdate(d)},[_,s]),b||C)return null;if(m?.rewrite)return window.location.reload(),null;if(!m)return i.pathname,q.jsxs(q.Fragment,{children:[q.jsx(Rg,{}),!1]});if(!p)return null;const w=s?.themeData?.appearance;return q.jsxs(q.Fragment,{children:[q.jsx(Cg,{page:m,appearance:w}),q.jsx(zg,{page:m,website:s})]})}function xg(i,f){if(!i||!f)return i;const s=f.split(".");let o=i;for(const d of s){if(o==null)return;o=o[d]}return o}async function Ng(i){if(!i)return{data:null};const{path:f,url:s,transform:o}=i;try{let d=f||s;if(!d)return{data:[],error:"No path or url specified"};d.startsWith("/")&&!d.startsWith("//")&&(d="/".replace(/\/$/,"")+d);const h=await fetch(d);if(!h.ok)throw new Error(`HTTP ${h.status}: ${h.statusText}`);const m=h.headers.get("content-type")||"";let p;if(m.includes("application/json"))p=await h.json();else{const b=await h.text();try{p=JSON.parse(b)}catch{console.warn("[data-fetcher] Response is not JSON, returning as text"),p=b}}return o&&p&&(p=xg(p,o)),{data:p??[]}}catch(d){return console.warn(`[data-fetcher] Client fetch failed: ${d.message}`),{data:[],error:d.message}}}const _g=1e3,kf=typeof window<"u"&&window.matchMedia("(prefers-reduced-motion: reduce)").matches;function qh(i){const f=globalThis.uniweb?.activeWebsite;if(!i||!f)return;const s=f.getPage(i);if(!(!s?.hasContent?.()||s.isContentLoaded?.()))return Promise.race([s.loadContent(),new Promise(o=>setTimeout(o,_g))])}function Lh(i,f,s){globalThis.uniweb?.foundationConfig?.viewTransitions&&document.startViewTransition&&!kf?document.startViewTransition(async()=>{const d=typeof f=="string"?f:f?.pathname;await qh(d),i(f,s)}):i(f,s)}const Bg=Ce.forwardRef(function({onClick:f,replace:s,state:o,preventScrollReset:d,...h},m){const p=xn(),b=T=>{f&&f(T),!(T.defaultPrevented||T.metaKey||T.altKey||T.ctrlKey||T.shiftKey||T.button!==0||!globalThis.uniweb?.foundationConfig?.viewTransitions||!document.startViewTransition||kf)&&(T.preventDefault(),Lh(p,h.to,{replace:s,state:o,preventScrollReset:d}))};return Ce.createElement(Wf,{ref:m,...h,onClick:b,replace:s,state:o,preventScrollReset:d})});function Hg(){const i=xn();return(f,s)=>Lh(i,f,s)}const jg={lucide:"lu",heroicons:"hi",heroicons2:"hi2",phosphor:"pi",tabler:"tb",feather:"fi",fa:"fa",fa6:"fa6",bootstrap:"bs","material-design":"md","ant-design":"ai",remix:"ri","simple-icons":"si",ionicons:"io5",boxicons:"bi",vscode:"vsc",weather:"wi",game:"gi",lu:"lu",hi:"hi",hi2:"hi2",pi:"pi",tb:"tb",fi:"fi",bs:"bs",md:"md",ai:"ai",ri:"ri",io5:"io5",bi:"bi",si:"si",vsc:"vsc",wi:"wi",gi:"gi"};function qg(i={}){const f=i.cdnUrl||"https://uniweb.github.io/icons",s=i.cdn!==!1,o=new Map;return async function(h,m){const p=jg[h.toLowerCase()];if(!p)return console.warn(`[icons] Unknown family "${h}"`),null;const b=`${p}:${m}`;if(o.has(b))return o.get(b);if(!s)return o.set(b,null),null;try{const T=`${p}-${m}`,C=`${f}/${p}/${T}.svg`,S=await fetch(C);if(!S.ok)throw new Error(`HTTP ${S.status}`);const N=await S.text();return o.set(b,N),N}catch(T){return console.warn(`[icons] Failed to load ${h}:${m}`,T.message),o.set(b,null),null}}}function Lg(i){const f=hv(i);if(i.fetchedData&&f.activeWebsite?.dataStore)for(const s of i.fetchedData)f.activeWebsite.dataStore.set(s.config,s.data);if(f.childBlockRenderer=Dg,f.routingComponents={Link:Bg,useNavigate:Hg,useParams:u0,useLocation:ze},f.iconResolver=qg(i.icons),typeof document<"u")try{const s=document.getElementById("__ICON_CACHE__");if(s){const o=JSON.parse(s.textContent);for(const[d,h]of Object.entries(o))f.iconCache.set(d,h)}}catch{}return f.activeWebsite?.dataStore&&f.activeWebsite.dataStore.registerFetcher(Ng),f}function Yg(i,f){i.setFoundation(f),f.default?.capabilities&&i.setFoundationConfig(f.default.capabilities),f.default?.layoutMeta&&i.foundationConfig&&(i.foundationConfig.layoutMeta=f.default.layoutMeta)}async function wg(){const i=document.getElementById("__DATA__");if(!i?.textContent)return null;const f=i.textContent;if(i.type==="application/json")try{return JSON.parse(f)}catch{return null}if(typeof DecompressionStream<"u")try{const s=Uint8Array.from(atob(f),m=>m.charCodeAt(0)),o=new DecompressionStream("gzip"),d=o.writable.getWriter();d.write(s),d.close();const h=await new Response(o.readable).text();return JSON.parse(h)}catch{return null}try{return JSON.parse(f)}catch{return null}}async function Gg(i){if(i&&!document.querySelector(`link[rel="stylesheet"][href="${i}"]`))return new Promise(f=>{const s=document.createElement("link");s.rel="stylesheet",s.href=i,s.onload=()=>{console.log("[Runtime] Foundation CSS loaded"),f()},s.onerror=()=>{console.warn("[Runtime] Could not load foundation CSS from:",i),f()},document.head.appendChild(s)})}async function Yh(i){const f=typeof i=="string"?i:i.url,s=typeof i=="object"?i.cssUrl:f.replace(/[^/]+\.js$/,"assets/foundation.css");console.log(`[Runtime] Loading foundation from: ${f}`);try{const[,o]=await Promise.all([s?Gg(s):Promise.resolve(),import(f)]),d=Object.keys(o).filter(h=>h!=="default");return console.log("[Runtime] Foundation loaded. Available components:",d),o}catch(o){throw console.error("[Runtime] Failed to load foundation:",o),o}}async function Xg(i,f){if(!i?.length)return;function s(d){return d}const o=await Promise.allSettled(i.map(d=>Yh(d)));for(let d=0;d<o.length;d++)o[d].status==="fulfilled"?(f.registerExtension(o[d].value),console.log(`[Runtime] Extension loaded: ${i[d]}`)):console.warn(`[Runtime] Extension failed to load: ${i[d]}`,o[d].reason)}const Xf="uniweb-theme";function Qg(){return typeof document>"u"?!1:document.getElementById(Xf)!==null}function Vg({css:i,children:f}){const s=O.useRef(null);return O.useEffect(()=>{if(!i||Qg())return;const o=document.createElement("style");return o.id=Xf,o.textContent=i,document.head.appendChild(o),s.current=o,()=>{s.current&&s.current.parentNode&&(s.current.parentNode.removeChild(s.current),s.current=null)}},[i]),O.useEffect(()=>{if(!i)return;const o=document.getElementById(Xf);o&&o.textContent!==i&&(o.textContent=i)},[i]),q.jsx(q.Fragment,{children:f})}const rh=new Map;function dh(i){return i===window?window.scrollY:i.scrollTop}function Zg(){const i=globalThis.uniweb.activeWebsite,f=i.activePage.getLayoutName(),o=(f?i.getLayoutMeta(f):null)?.scroll??globalThis.uniweb.foundationConfig?.scroll??null;return o==="self"?null:o&&document.querySelector(o)||window}function Kg(i={}){const{enabled:f=!0,resetBlockStates:s=!0}=i,o=ze(),d=a0(),h=O.useRef(o.key),m=O.useRef(null),p=O.useRef(window),b=O.useCallback(()=>{const T=p.current;T&&rh.set(h.current,dh(T))},[]);O.useEffect(()=>{if(!f)return;const T=p.current;if(T)return T.addEventListener("scroll",b,{passive:!0}),()=>T.removeEventListener("scroll",b)},[o.key,f,b]),O.useLayoutEffect(()=>{d==="POP"?m.current=rh.get(o.key)??null:m.current=null,h.current=o.key,p.current=f?Zg():null},[o.key,d,f]),O.useEffect(()=>{if(!f)return;const T=p.current;if(T){if(s){const C=globalThis.uniweb.activeWebsite.activePage;typeof C.resetBlockStates=="function"&&C.resetBlockStates()}if(!o.hash)if(d==="POP"){const C=m.current;if(C==null)return;let S,N=0;const _=()=>{T.scrollTo(0,C),Math.abs(dh(T)-C)>5&&N<30&&(N++,S=requestAnimationFrame(_))};return S=requestAnimationFrame(_),()=>cancelAnimationFrame(S)}else T.scrollTo(0,0)}},[o.key,d,f,s,o.hash])}function Jg(i){if(!i)return!1;if(i.startsWith("#")||i.startsWith("/")&&!i.startsWith("//"))return!0;try{return new URL(i,window.location.origin).origin===window.location.origin}catch{return!0}}function $g(i){return!(i.defaultPrevented||i.metaKey||i.altKey||i.ctrlKey||i.shiftKey||i.button!==0)}function Wg(i){let f=i;for(;f&&f!==document.body;){if(f.tagName==="A")return f;f=f.parentElement}return null}function Qf(i,f=5){const s=document.getElementById(i);if(s){s.scrollIntoView({behavior:"smooth"});return}f>0&&requestAnimationFrame(()=>{setTimeout(()=>Qf(i,f-1),50)})}function kg(i={}){const{enabled:f=!0}=i,s=xn(),o=ze();O.useEffect(()=>{if(!f||!o.hash)return;const d=o.hash.slice(1);d&&requestAnimationFrame(()=>{Qf(d)})},[f,o.pathname,o.hash]),O.useEffect(()=>{if(!f)return;function d(h){if(!$g(h))return;const m=Wg(h.target);if(!m)return;const p=m.getAttribute("href");if(!p||!Jg(p)||m.hasAttribute("download"))return;const b=m.getAttribute("target");if(b&&b!=="_self")return;const T=globalThis.uniweb?.activeWebsite,C=T?.basePath||"";let S=p;if(C&&p.startsWith(C)&&(S=p.slice(C.length)||"/"),T?.hasMultipleLocales()){const _=T.getActiveLocale(),w=T.getDefaultLocale(),H=T.getLocales().map(Q=>Q.code),X=S.match(/^\/([a-z]{2,3}(?:-[A-Za-z]{2,4})?)(?:\/|$)/)?.[1];let B=!1;if(X&&H.includes(X)?B=X!==_:B=_!==w,B)return}if(h.preventDefault(),S.startsWith("#")){const _=S.slice(1);_&&(Qf(_),window.history.pushState(null,"",p));return}T?.viewTransitions&&document.startViewTransition&&!kf?document.startViewTransition(async()=>{await qh(S),s(S)}):s(S)}return document.addEventListener("click",d),()=>{document.removeEventListener("click",d)}},[f,s])}function Fg(){const i=globalThis.uniweb.activeWebsite;if(O.useEffect(()=>{const s=i?.themeData?.appearance;if(!s)return;const o=s.default||"light",d=document.documentElement;o==="dark"?(d.classList.add("scheme-dark"),d.classList.remove("scheme-light")):o==="system"?(d.classList.remove("scheme-dark"),d.classList.remove("scheme-light")):d.classList.remove("scheme-dark")},[i?.themeData?.appearance?.default]),kg({enabled:!0}),Kg({enabled:!0}),!i)return q.jsx("div",{className:"website-loading",style:{padding:"2rem",textAlign:"center",color:"#64748b"},children:"Loading website..."});const f=i.themeData?.css;return q.jsx(Vg,{css:f,children:q.jsx(Ug,{})})}class hh extends Ce.Component{constructor(f){super(f),this.state={hasError:!1,error:null}}static getDerivedStateFromError(f){return{hasError:!0,error:f}}componentDidCatch(f,s){console.error("[Runtime] Error caught by boundary:",f,s)}render(){return this.state.hasError?this.props.fallback?this.props.fallback:q.jsxs("div",{style:{padding:"2rem",margin:"1rem",background:"#fef2f2",border:"1px solid #fecaca",borderRadius:"0.5rem",color:"#dc2626"},children:[q.jsx("h2",{style:{margin:"0 0 1rem"},children:"Something went wrong"}),q.jsx("p",{children:this.state.error?.message||"An unexpected error occurred"}),!1]}):this.props.children}}function Ig({basename:i,development:f=!1,externalRouter:s=!1}){const o=globalThis.uniweb?.activeWebsite;if(!o)return null;o.setBasePath&&o.setBasePath(i||"");const d=q.jsx(S0,{children:q.jsx(Uh,{path:"/*",element:q.jsx(Fg,{})})}),h=s?q.jsx(hh,{children:d}):q.jsx(hh,{children:q.jsx(V0,{basename:i,children:d})});return f?q.jsx(Ce.StrictMode,{children:h}):h}async function Lf(i,f={}){const{development:s=!1,configData:o=null,basename:d}=f,h=o??JSON.parse(document.getElementById("__SITE_CONTENT__")?.textContent||"null")??globalThis.__SITE_CONTENT__;if(!h){console.error("[Runtime] No site configuration found");return}const m=Lg(h);try{let p;if(typeof i=="string"||i&&typeof i.url=="string")p=await Yh(i);else if(i&&typeof i.then=="function"){const _=await i;p=_?.default?.default?_.default:_}else i&&typeof i=="object"&&(p=i);if(!p)throw new Error("Failed to load foundation");Yg(m,p);const b=h?.config?.extensions;b?.length&&await Xg(b,m);const T=d??void 0,C=m.activeWebsite;if(C&&typeof window<"u"){const _=window.location.pathname,w=T||"",H=w&&_.startsWith(w)?_.slice(w.length)||"/":_;C.setActivePage(H)}const S=document.getElementById("root");if(!S){console.error("[Runtime] Root element not found");return}const N=q.jsx(Ig,{basename:T,development:s});ah.createRoot(S).render(N),s||console.log("%c<%c>%c Uniweb Runtime","color: #FA8400; font-weight: bold; font-size: 18px;","color: #00ADFE; font-weight: bold; font-size: 18px;","color: #333; font-size: 18px; font-family: system-ui, sans-serif;")}catch(p){console.error("[Runtime] Initialization failed:",p);const b=document.getElementById("root");b&&ah.createRoot(b).render(q.jsxs("div",{style:{padding:"2rem",margin:"1rem",background:"#fef2f2",borderRadius:"0.5rem",color:"#dc2626"},children:[q.jsx("h2",{children:"Runtime Error"}),q.jsx("p",{children:p.message}),s&&q.jsx("pre",{style:{fontSize:"0.75rem",overflow:"auto"},children:p.stack})]}))}}async function Pg({config:i,foundation:f,styles:s}={}){const o=await wg();if(o){const h=o.content?.config?.base,m=h?h.endsWith("/")?h.slice(0,-1):h:void 0;return Lf({url:o.foundation.url,cssUrl:o.foundation.cssUrl},{configData:o.content,basename:m})}if((i?.mode??"bundled")==="runtime")return Lf({url:i.url,cssUrl:i.cssUrl});{const[h]=await Promise.all([f,s]);return Lf(h)}}Pg({config:null});
16
- //# sourceMappingURL=index-DSQoGb1v.js.map
16
+ //# sourceMappingURL=index-4-Tj6sUj.js.map