diff --git a/apps/cli/frontend/assets/SimpleGridForm-qoE5ChAY.js b/apps/cli/frontend/assets/SimpleGridForm-BanH33n9.js similarity index 99% rename from apps/cli/frontend/assets/SimpleGridForm-qoE5ChAY.js rename to apps/cli/frontend/assets/SimpleGridForm-BanH33n9.js index 726cda6e..7c54d34d 100644 --- a/apps/cli/frontend/assets/SimpleGridForm-qoE5ChAY.js +++ b/apps/cli/frontend/assets/SimpleGridForm-BanH33n9.js @@ -1 +1 @@ -import{I as h,X as y,J as O,K as Y,r as u,L as ee,M as te,_ as v,N as ne,O as se,P as re,Q as ae,T as oe,U as ie,V as le,j as s,W as w,Y as ce,e as f,t as b,b as m,Z as ue,n as de,o as he,$ as me,a0 as xe,S as F,a1 as pe,a2 as ge,a3 as fe,a4 as be,a5 as ye,l as je,a6 as ve,a7 as Ce,a8 as Se,a9 as Pe,aa as $,ab as Fe,ac as Ie,ad as L,ae as N,af as T,ag as we,ah as Be,ai as M,aj as V,v as Ge,B as W,ak as Le,al as A,am as Ne,an as H,ao as Te,G as g,ap as Ae,d as _,aq as qe,ar as Ee,as as ze,at as Qe}from"./index-DZp9tcRP.js";function ke(e,n,t){return h(e).minus(n).div(t-1).toNumber()}function Re(e,n,t,r){const a=ke(e,n,t);return Array.from({length:t}).map((i,o)=>({price:h(n).plus(h(a).mul(o)).toNumber(),quantity:r}))}function U(e,n){return e=String(e),n!=null&&n.ignoreTrailingZeros&&(e=new h(e).toString()),e.includes(".")?e.split(".")[1].length:0}function G(e,n){const t=n.decimals.price,r=U(e,{ignoreTrailingZeros:!0});return t===void 0?new h(e).toFixed(r):r>t?new h(e).toFixed(t,h.roundDown):new h(e).toFixed(r)}function $e(e,n){const t=n.decimals.amount,r=U(e,{ignoreTrailingZeros:!0});return t===void 0?new h(e).toFixed(r):r>t?new h(e).toFixed(t,h.roundDown):new h(e).toFixed(r)}function St(e,n,t,r,a){return Re(e,n,t,r).map(o=>{const l=G(o.price,a);return{...o,price:new h(l).toNumber()}})}function Ve(e){const n=e.reduce((r,a)=>a.buy.status===y.Filled&&a.sell.status===y.Idle?h(r).plus(a.sell.quantity).toNumber():r,0),t=e.reduce((r,a)=>{if(a.buy.status===y.Idle&&a.sell.status===y.Idle){const o=h(a.buy.quantity).times(a.buy.price);return h(r).plus(o).toNumber()}return r},0);return{baseCurrencyAmount:n,quoteCurrencyAmount:t}}function De(e,n,t){const r=n.findIndex(c=>c.price===e.price&&c.quantity===e.quantity);if(r===-1)throw new Error(`Cannot find grid line index of { price: ${e.price}, quantity: ${e.quantity} }`);const a=n[r],i=n[r-1],o=n[r+1],l=h(t).minus(a.price).abs();if(i){const c=h(t).minus(i.price).abs();if(h(c).lt(l))return!1}if(o){const c=h(t).minus(o.price).abs();if(h(c).lte(l))return!1}return!0}function Oe(e,n){const t=e[n+1];if(!t)throw new Error(`nextGridLinePrice: Grid line at index ${n} doesn't exists`);return t.price}function Me(e,n){return e.flatMap((t,r)=>{if(r===e.length-1)return[];const a=Oe(e,r);return De(t,e,n)||t.price>n?[{buy:{price:t.price,quantity:t.quantity,status:y.Filled},sell:{price:a,quantity:t.quantity,status:y.Idle}}]:[{buy:{price:t.price,quantity:t.quantity,status:y.Idle},sell:{price:a,quantity:t.quantity,status:y.Idle}}]})}function We(e,n,t){const r=Me(n,t),{baseCurrencyAmount:a,quoteCurrencyAmount:i}=Ve(r),o=i+a*t;return{baseCurrencyAmount:$e(a,e.filters),quoteCurrencyAmount:G(i,e.filters),totalInQuoteCurrency:G(o,e.filters)}}const Pt=e=>e.gridBotForm,He=e=>e.gridBotForm.type,_e=e=>e.gridBotForm.exchangeAccountId,Ue=e=>e.gridBotForm.exchangeCode,j=e=>e.gridBotForm.symbolId,Ze=e=>e.gridBotForm.highPrice,Je=e=>e.gridBotForm.lowPrice,Xe=e=>e.gridBotForm.gridLinesNumber,Ke=e=>e.gridBotForm.quantityPerGrid,Ye=e=>e.gridBotForm.botName,q=e=>e.gridBotForm.gridLines,Z=e=>n=>n.gridBotForm.gridLines[e],Ft=e=>e.gridBotForm.barSize;function et(e){return e.size}function tt(e){const{value:n,id:t,rootRef:r}=e,a=O();if(a===null)throw new Error("No TabContext provided");const{value:i,getTabId:o}=a,l=Y(t),c=u.useRef(null),d=ee(c,r),p=u.useMemo(()=>({id:l,ref:c}),[l]),{id:x}=te(n??et,p),C=x!==i,I=x!==void 0?o(x):void 0;return{hidden:C,getRootProps:(B={})=>v({"aria-labelledby":I??void 0,hidden:C,id:l??void 0},B,{ref:d}),rootRef:d}}function nt(e){return ne("MuiTabPanel",e)}se("MuiTabPanel",["root","hidden","sizeSm","sizeMd","sizeLg","horizontal","vertical","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid"]);const st=["children","value","component","color","variant","size","slots","slotProps","keepMounted"],rt=e=>{const{hidden:n,size:t,variant:r,color:a,orientation:i}=e,o={root:["root",n&&"hidden",t&&`size${w(t)}`,i,r&&`variant${w(r)}`,a&&`color${w(a)}`,t&&`size${w(t)}`]};return ce(o,nt,{})},at=le("div",{name:"JoyTabPanel",slot:"Root",overridesResolver:(e,n)=>n.root})(({theme:e,ownerState:n})=>{var t;return v({display:n.hidden?"none":"block",padding:"var(--Tabs-spacing)",flexGrow:1,fontFamily:e.vars.fontFamily.body},e.typography[`body-${n.size}`],(t=e.variants[n.variant])==null?void 0:t[n.color])}),D=u.forwardRef(function(n,t){const r=re({props:n,name:"JoyTabPanel"}),{orientation:a}=O()||{orientation:"horizontal"},i=u.useContext(ae),{children:o,value:l=0,component:c,color:d="neutral",variant:p="plain",size:x,slots:C={},slotProps:I={},keepMounted:E=!1}=r,B=oe(r,st),{hidden:z,getRootProps:J}=tt(v({},r,{value:l})),Q=v({},r,{orientation:a,hidden:z,size:x??i,color:d,variant:p}),X=rt(Q),K=v({},B,{component:c,slots:C,slotProps:I}),[k,R]=ie("root",{ref:t,elementType:at,getSlotProps:J,externalForwardedProps:K,additionalProps:{role:"tabpanel",ref:t,as:c},ownerState:Q,className:X.root});return E?s.jsx(k,v({},R,{children:o})):s.jsx(k,v({},R,{children:!z&&o}))}),ot=({disabled:e})=>{const n=f(),[t]=b.exchangeAccount.list.useSuspenseQuery(),r=m(_e),a=o=>{if(o===null)throw new Error("ExchangeAccountField: Cannot reset exchange account input");n(de(o.id)),n(he(o.exchangeCode))},i=t.find(o=>o.id===r);return s.jsx(ue,{onChange:a,value:i,disabled:e})},it=({disabled:e})=>{const n=f(),t=m(Ue),[r]=b.symbol.list.useSuspenseQuery(t),a=m(j),i=l=>{if(l===null)throw new Error("PairField: Cannot reset symbol input");n(xe(l.symbolId))},o=r.find(l=>l.symbolId===a);return s.jsx(me,{exchangeCode:t,onChange:i,value:o||null,disabled:e})},lt=36,P=({width:e="100%",withLabel:n})=>{const t=s.jsx(F,{animation:"wave",height:lt,variant:"rectangular",width:e});return n?s.jsxs(s.Fragment,{children:[s.jsx(F,{animation:"wave",height:20,sx:{mb:"6px"},variant:"text",width:72}),t]}):t};function ct(e,n){if(e.length===0)return-1;if(e.length===1)return e[0];const t=e.map(i=>Math.abs(i-n)),r=Math.min(...t),a=t.indexOf(r);return e[a]}function ut(e,n){const t=e.map(a=>a.price),r=ct(t,n);return t.map(a=>pe(a,t,r))}const It=({symbolId:e,barSize:n,onBarSizeChange:t,gridLines:r,defaultPrice:a})=>{const i=u.useDeferredValue(e),o=e!==i,{data:{price:l}}=b.symbol.price.useQuery({symbolId:e},{initialData:a}),c=u.useMemo(()=>ut(r,l),[r,l]),[d,p]=u.useState(!0);return s.jsx(u.Suspense,{fallback:s.jsx(F,{animation:"wave",height:Ce,variant:"rectangular",width:"100%"}),children:s.jsxs(ge,{barSize:n,dimmed:o,priceLines:c,showPriceLines:d,symbolId:i,children:[s.jsx(u.Suspense,{fallback:s.jsx(P,{width:232}),children:s.jsx(ot,{})}),s.jsx(u.Suspense,{fallback:s.jsx(P,{width:232}),children:s.jsx(it,{})}),s.jsx(fe,{onChange:x=>{t&&t(x)},value:n,whitelist:be}),s.jsx(ye,{}),s.jsx(je,{display:"flex",children:s.jsx(ve,{gridVisible:d,hideTradesButton:!0,onGridVisibleChange:p})})]})})},S={simple:"simple",advanced:"advanced"},wt=({simpleForm:e,advancedForm:n})=>{const t=m(He),r=f(),a=(i,o)=>{o!==null&&r(Ie(o))};return s.jsxs(Se,{defaultValue:S.simple,onChange:(i,o)=>{a(i,o)},sx:{borderRadius:"md",overflow:"auto",boxShadow:"sm"},value:t,children:[s.jsxs(Pe,{disableUnderline:!0,sx:{[`& .${Fe.root}`]:{bgcolor:"background.backdrop",'&[aria-selected="true"]':{bgcolor:"background.surface",fontWeight:"lg"}}},tabFlex:"auto",children:[s.jsx($,{disableIndicator:!0,value:S.simple,children:"Easy form"}),s.jsx($,{disableIndicator:!0,value:S.advanced,children:"Advanced form"})]}),s.jsx(D,{value:S.simple,children:e}),s.jsx(D,{value:S.advanced,children:n})]})},Bt=()=>{const e=f(),n=m(Ye),[t,r]=u.useState(n);u.useEffect(()=>{r(n)},[n]);const a=c=>{r(c.target.value)},i=()=>{t.length>0?e(V(t)):r(n)},o=()=>{e(V(Ge()))},l=t.length===0?"Must be defined":null;return s.jsxs(L,{error:!!l,children:[s.jsx(N,{children:"Bot name"}),s.jsx(T,{endDecorator:s.jsx(we,{onClick:o,children:s.jsx(Be,{})}),onBlur:i,onChange:a,value:t}),l?s.jsx(M,{children:l}):null]})},dt=e=>{const{className:n,gridLineIndex:t}=e,r=f(),a=()=>{r(Le(t))};return s.jsx(W,{className:n,color:"danger",onClick:a,size:"sm",children:"Remove"})},ht=e=>{const{className:n,gridLineIndex:t}=e,r=f(),{price:a}=m(Z(t)),[i,o]=u.useState(String(a));u.useEffect(()=>{o(`${a}`)},[a]);const l=m(j),[c]=b.symbol.getOne.useSuspenseQuery({symbolId:l}),d=x=>{o(x.target.value)},p=()=>{i.length>0?r(Ne({gridLineIndex:t,price:Number(i)})):o(String(a))};return s.jsx(A,{className:n,filter:c.filters,fullWidth:!0,label:"Price",onBlur:p,onChange:d,size:"sm",value:i})},mt=e=>{const{className:n,gridLineIndex:t,disabled:r}=e,a=f(),i=m(j),[o]=b.symbol.getOne.useSuspenseQuery({symbolId:i}),{quantity:l}=m(Z(t)),[c,d]=u.useState(`${l}`);u.useEffect(()=>{d(`${l}`)},[l]);const p=C=>{d(C.target.value)},x=()=>{isNaN(Number(c))?d(`${l}`):a(Te({gridLineIndex:t,quantity:Number(c)}))};return s.jsx(H,{className:n,disabled:r,filter:o.filters,fullWidth:!0,label:"Quantity",onBlur:x,onChange:p,size:"sm",value:c})},xt=e=>{const{gridLineIndex:n}=e,t=m(q),r=n===t.length-1;return s.jsxs(g,{alignItems:"flex-end",container:!0,spacing:2,children:[s.jsx(g,{xs:!0,children:s.jsx(u.Suspense,{fallback:s.jsx(F,{height:36,variant:"rectangular",width:200}),children:s.jsx(ht,{gridLineIndex:n})})}),s.jsx(g,{xs:!0,children:s.jsx(u.Suspense,{fallback:s.jsx(F,{height:36,variant:"rectangular",width:200}),children:s.jsx(mt,{disabled:r,gridLineIndex:n})})}),s.jsx(g,{xs:"auto",children:s.jsx(dt,{gridLineIndex:n})})]})},Gt=()=>{const e=f(),n=m(q),t=()=>{e(Ae({price:1,quantity:1}))},r=a=>n.length-1-a;return s.jsxs(g,{container:!0,spacing:2,children:[s.jsx(g,{xs:12,children:n.map((a,i)=>s.jsx(xt,{gridLineIndex:r(i)},i))}),s.jsx(g,{xs:12,children:s.jsx(W,{onClick:t,children:"Add"})})]})},pt=({baseCurrencyAmount:e,quoteCurrencyAmount:n,totalInQuoteCurrency:t})=>{const r=m(j),{baseCurrency:a,quoteCurrency:i}=_(r);return s.jsxs(M,{children:[s.jsxs("span",{children:[e," ",a]}),s.jsx("span",{children:" + "}),s.jsxs("span",{children:[n," ",i]}),s.jsx("span",{children:" ≈ "}),s.jsxs("span",{children:[t," ",i]})]})},Lt=e=>{const{className:n}=e,t=m(j),{quoteCurrency:r}=_(t),[a]=b.symbol.price.useSuspenseQuery({symbolId:t}),[i]=b.symbol.getOne.useSuspenseQuery({symbolId:t}),o=m(q),{baseCurrencyAmount:l,quoteCurrencyAmount:c,totalInQuoteCurrency:d}=We(i,o,a.price),p="investment-field";return s.jsxs(L,{className:n,children:[s.jsx(N,{htmlFor:p,children:"Investment"}),s.jsx(T,{disabled:!0,endDecorator:s.jsx(s.Fragment,{children:r}),id:p,type:"number",value:d}),s.jsx(pt,{baseCurrencyAmount:l,quoteCurrencyAmount:c,totalInQuoteCurrency:d})]})},gt=e=>{const{disabled:n,readOnly:t}=e,r=m(j),[a]=b.symbol.getOne.useSuspenseQuery({symbolId:r}),i=f(),o=m(Ke),[l,c]=u.useState(o);u.useEffect(()=>{c(o)},[o]);const d=x=>{c(x.target.value)},p=()=>{isNaN(Number(l))?c(o):i(qe(l))};return s.jsx(H,{disabled:n,filter:a.filters,fullWidth:!0,label:"Quantity per grid",onBlur:p,onChange:d,readOnly:t,required:!0,value:l})},ft="gridLevels",bt=e=>{const{disabled:n,readOnly:t}=e,r=f(),a=m(Xe),[i,o]=u.useState(a),l=d=>{o(d.target.valueAsNumber)},c=()=>{Number.isInteger(i)?r(Ee(i)):o(a)};return s.jsxs(L,{children:[s.jsx(N,{children:"Grid levels"}),s.jsx(T,{autoComplete:"off",disabled:n,name:ft,onBlur:c,onChange:l,readOnly:t,required:!0,type:"number",value:i})]})},yt=e=>{const{disabled:n,readOnly:t}=e,r=m(j),[a]=b.symbol.getOne.useSuspenseQuery({symbolId:r}),i=f(),o=m(Ze),[l,c]=u.useState(`${o}`);u.useEffect(()=>{c(`${o}`)},[o]);const d=x=>{c(x.target.value)},p=()=>{l.length>0?i(ze(Number(l))):c(`${o}`)};return s.jsx(A,{disabled:n,filter:a.filters,fullWidth:!0,label:"High price",onBlur:p,onChange:d,readOnly:t,value:l})},jt=e=>{const{disabled:n,readOnly:t}=e,r=m(j),[a]=b.symbol.getOne.useSuspenseQuery({symbolId:r}),i=f(),o=m(Je),[l,c]=u.useState(`${o}`);u.useEffect(()=>{c(`${o}`)},[o]);const d=x=>{c(x.target.value)},p=()=>{l.length>0?i(Qe(Number(l))):c(`${o}`)};return s.jsx(A,{disabled:n,filter:a.filters,fullWidth:!0,label:"Low price",onBlur:p,onChange:d,readOnly:t,value:l})},Nt=()=>s.jsxs(g,{container:!0,spacing:2,children:[s.jsx(g,{md:6,xs:12,children:s.jsx(u.Suspense,{fallback:s.jsx(P,{withLabel:!0}),children:s.jsx(yt,{})})}),s.jsx(g,{md:6,xs:12,children:s.jsx(u.Suspense,{fallback:s.jsx(P,{withLabel:!0}),children:s.jsx(jt,{})})}),s.jsx(g,{md:6,xs:12,children:s.jsx(u.Suspense,{fallback:s.jsx(P,{withLabel:!0}),children:s.jsx(gt,{})})}),s.jsx(g,{md:6,xs:12,children:s.jsx(bt,{})})]});export{Gt as A,Bt as B,wt as F,It as G,Lt as I,Nt as S,j as a,Ze as b,Je as c,Xe as d,Ke as e,St as f,P as g,Ft as h,q as i,Pt as s}; +import{I as h,X as y,J as O,K as Y,r as u,L as ee,M as te,_ as v,N as ne,O as se,P as re,Q as ae,T as oe,U as ie,V as le,j as s,W as w,Y as ce,e as f,t as b,b as m,Z as ue,n as de,o as he,$ as me,a0 as xe,S as F,a1 as pe,a2 as ge,a3 as fe,a4 as be,a5 as ye,l as je,a6 as ve,a7 as Ce,a8 as Se,a9 as Pe,aa as $,ab as Fe,ac as Ie,ad as L,ae as N,af as T,ag as we,ah as Be,ai as M,aj as V,v as Ge,B as W,ak as Le,al as A,am as Ne,an as H,ao as Te,G as g,ap as Ae,d as _,aq as qe,ar as Ee,as as ze,at as Qe}from"./index-KZe-D0Hq.js";function ke(e,n,t){return h(e).minus(n).div(t-1).toNumber()}function Re(e,n,t,r){const a=ke(e,n,t);return Array.from({length:t}).map((i,o)=>({price:h(n).plus(h(a).mul(o)).toNumber(),quantity:r}))}function U(e,n){return e=String(e),n!=null&&n.ignoreTrailingZeros&&(e=new h(e).toString()),e.includes(".")?e.split(".")[1].length:0}function G(e,n){const t=n.decimals.price,r=U(e,{ignoreTrailingZeros:!0});return t===void 0?new h(e).toFixed(r):r>t?new h(e).toFixed(t,h.roundDown):new h(e).toFixed(r)}function $e(e,n){const t=n.decimals.amount,r=U(e,{ignoreTrailingZeros:!0});return t===void 0?new h(e).toFixed(r):r>t?new h(e).toFixed(t,h.roundDown):new h(e).toFixed(r)}function St(e,n,t,r,a){return Re(e,n,t,r).map(o=>{const l=G(o.price,a);return{...o,price:new h(l).toNumber()}})}function Ve(e){const n=e.reduce((r,a)=>a.buy.status===y.Filled&&a.sell.status===y.Idle?h(r).plus(a.sell.quantity).toNumber():r,0),t=e.reduce((r,a)=>{if(a.buy.status===y.Idle&&a.sell.status===y.Idle){const o=h(a.buy.quantity).times(a.buy.price);return h(r).plus(o).toNumber()}return r},0);return{baseCurrencyAmount:n,quoteCurrencyAmount:t}}function De(e,n,t){const r=n.findIndex(c=>c.price===e.price&&c.quantity===e.quantity);if(r===-1)throw new Error(`Cannot find grid line index of { price: ${e.price}, quantity: ${e.quantity} }`);const a=n[r],i=n[r-1],o=n[r+1],l=h(t).minus(a.price).abs();if(i){const c=h(t).minus(i.price).abs();if(h(c).lt(l))return!1}if(o){const c=h(t).minus(o.price).abs();if(h(c).lte(l))return!1}return!0}function Oe(e,n){const t=e[n+1];if(!t)throw new Error(`nextGridLinePrice: Grid line at index ${n} doesn't exists`);return t.price}function Me(e,n){return e.flatMap((t,r)=>{if(r===e.length-1)return[];const a=Oe(e,r);return De(t,e,n)||t.price>n?[{buy:{price:t.price,quantity:t.quantity,status:y.Filled},sell:{price:a,quantity:t.quantity,status:y.Idle}}]:[{buy:{price:t.price,quantity:t.quantity,status:y.Idle},sell:{price:a,quantity:t.quantity,status:y.Idle}}]})}function We(e,n,t){const r=Me(n,t),{baseCurrencyAmount:a,quoteCurrencyAmount:i}=Ve(r),o=i+a*t;return{baseCurrencyAmount:$e(a,e.filters),quoteCurrencyAmount:G(i,e.filters),totalInQuoteCurrency:G(o,e.filters)}}const Pt=e=>e.gridBotForm,He=e=>e.gridBotForm.type,_e=e=>e.gridBotForm.exchangeAccountId,Ue=e=>e.gridBotForm.exchangeCode,j=e=>e.gridBotForm.symbolId,Ze=e=>e.gridBotForm.highPrice,Je=e=>e.gridBotForm.lowPrice,Xe=e=>e.gridBotForm.gridLinesNumber,Ke=e=>e.gridBotForm.quantityPerGrid,Ye=e=>e.gridBotForm.botName,q=e=>e.gridBotForm.gridLines,Z=e=>n=>n.gridBotForm.gridLines[e],Ft=e=>e.gridBotForm.barSize;function et(e){return e.size}function tt(e){const{value:n,id:t,rootRef:r}=e,a=O();if(a===null)throw new Error("No TabContext provided");const{value:i,getTabId:o}=a,l=Y(t),c=u.useRef(null),d=ee(c,r),p=u.useMemo(()=>({id:l,ref:c}),[l]),{id:x}=te(n??et,p),C=x!==i,I=x!==void 0?o(x):void 0;return{hidden:C,getRootProps:(B={})=>v({"aria-labelledby":I??void 0,hidden:C,id:l??void 0},B,{ref:d}),rootRef:d}}function nt(e){return ne("MuiTabPanel",e)}se("MuiTabPanel",["root","hidden","sizeSm","sizeMd","sizeLg","horizontal","vertical","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid"]);const st=["children","value","component","color","variant","size","slots","slotProps","keepMounted"],rt=e=>{const{hidden:n,size:t,variant:r,color:a,orientation:i}=e,o={root:["root",n&&"hidden",t&&`size${w(t)}`,i,r&&`variant${w(r)}`,a&&`color${w(a)}`,t&&`size${w(t)}`]};return ce(o,nt,{})},at=le("div",{name:"JoyTabPanel",slot:"Root",overridesResolver:(e,n)=>n.root})(({theme:e,ownerState:n})=>{var t;return v({display:n.hidden?"none":"block",padding:"var(--Tabs-spacing)",flexGrow:1,fontFamily:e.vars.fontFamily.body},e.typography[`body-${n.size}`],(t=e.variants[n.variant])==null?void 0:t[n.color])}),D=u.forwardRef(function(n,t){const r=re({props:n,name:"JoyTabPanel"}),{orientation:a}=O()||{orientation:"horizontal"},i=u.useContext(ae),{children:o,value:l=0,component:c,color:d="neutral",variant:p="plain",size:x,slots:C={},slotProps:I={},keepMounted:E=!1}=r,B=oe(r,st),{hidden:z,getRootProps:J}=tt(v({},r,{value:l})),Q=v({},r,{orientation:a,hidden:z,size:x??i,color:d,variant:p}),X=rt(Q),K=v({},B,{component:c,slots:C,slotProps:I}),[k,R]=ie("root",{ref:t,elementType:at,getSlotProps:J,externalForwardedProps:K,additionalProps:{role:"tabpanel",ref:t,as:c},ownerState:Q,className:X.root});return E?s.jsx(k,v({},R,{children:o})):s.jsx(k,v({},R,{children:!z&&o}))}),ot=({disabled:e})=>{const n=f(),[t]=b.exchangeAccount.list.useSuspenseQuery(),r=m(_e),a=o=>{if(o===null)throw new Error("ExchangeAccountField: Cannot reset exchange account input");n(de(o.id)),n(he(o.exchangeCode))},i=t.find(o=>o.id===r);return s.jsx(ue,{onChange:a,value:i,disabled:e})},it=({disabled:e})=>{const n=f(),t=m(Ue),[r]=b.symbol.list.useSuspenseQuery(t),a=m(j),i=l=>{if(l===null)throw new Error("PairField: Cannot reset symbol input");n(xe(l.symbolId))},o=r.find(l=>l.symbolId===a);return s.jsx(me,{exchangeCode:t,onChange:i,value:o||null,disabled:e})},lt=36,P=({width:e="100%",withLabel:n})=>{const t=s.jsx(F,{animation:"wave",height:lt,variant:"rectangular",width:e});return n?s.jsxs(s.Fragment,{children:[s.jsx(F,{animation:"wave",height:20,sx:{mb:"6px"},variant:"text",width:72}),t]}):t};function ct(e,n){if(e.length===0)return-1;if(e.length===1)return e[0];const t=e.map(i=>Math.abs(i-n)),r=Math.min(...t),a=t.indexOf(r);return e[a]}function ut(e,n){const t=e.map(a=>a.price),r=ct(t,n);return t.map(a=>pe(a,t,r))}const It=({symbolId:e,barSize:n,onBarSizeChange:t,gridLines:r,defaultPrice:a})=>{const i=u.useDeferredValue(e),o=e!==i,{data:{price:l}}=b.symbol.price.useQuery({symbolId:e},{initialData:a}),c=u.useMemo(()=>ut(r,l),[r,l]),[d,p]=u.useState(!0);return s.jsx(u.Suspense,{fallback:s.jsx(F,{animation:"wave",height:Ce,variant:"rectangular",width:"100%"}),children:s.jsxs(ge,{barSize:n,dimmed:o,priceLines:c,showPriceLines:d,symbolId:i,children:[s.jsx(u.Suspense,{fallback:s.jsx(P,{width:232}),children:s.jsx(ot,{})}),s.jsx(u.Suspense,{fallback:s.jsx(P,{width:232}),children:s.jsx(it,{})}),s.jsx(fe,{onChange:x=>{t&&t(x)},value:n,whitelist:be}),s.jsx(ye,{}),s.jsx(je,{display:"flex",children:s.jsx(ve,{gridVisible:d,hideTradesButton:!0,onGridVisibleChange:p})})]})})},S={simple:"simple",advanced:"advanced"},wt=({simpleForm:e,advancedForm:n})=>{const t=m(He),r=f(),a=(i,o)=>{o!==null&&r(Ie(o))};return s.jsxs(Se,{defaultValue:S.simple,onChange:(i,o)=>{a(i,o)},sx:{borderRadius:"md",overflow:"auto",boxShadow:"sm"},value:t,children:[s.jsxs(Pe,{disableUnderline:!0,sx:{[`& .${Fe.root}`]:{bgcolor:"background.backdrop",'&[aria-selected="true"]':{bgcolor:"background.surface",fontWeight:"lg"}}},tabFlex:"auto",children:[s.jsx($,{disableIndicator:!0,value:S.simple,children:"Easy form"}),s.jsx($,{disableIndicator:!0,value:S.advanced,children:"Advanced form"})]}),s.jsx(D,{value:S.simple,children:e}),s.jsx(D,{value:S.advanced,children:n})]})},Bt=()=>{const e=f(),n=m(Ye),[t,r]=u.useState(n);u.useEffect(()=>{r(n)},[n]);const a=c=>{r(c.target.value)},i=()=>{t.length>0?e(V(t)):r(n)},o=()=>{e(V(Ge()))},l=t.length===0?"Must be defined":null;return s.jsxs(L,{error:!!l,children:[s.jsx(N,{children:"Bot name"}),s.jsx(T,{endDecorator:s.jsx(we,{onClick:o,children:s.jsx(Be,{})}),onBlur:i,onChange:a,value:t}),l?s.jsx(M,{children:l}):null]})},dt=e=>{const{className:n,gridLineIndex:t}=e,r=f(),a=()=>{r(Le(t))};return s.jsx(W,{className:n,color:"danger",onClick:a,size:"sm",children:"Remove"})},ht=e=>{const{className:n,gridLineIndex:t}=e,r=f(),{price:a}=m(Z(t)),[i,o]=u.useState(String(a));u.useEffect(()=>{o(`${a}`)},[a]);const l=m(j),[c]=b.symbol.getOne.useSuspenseQuery({symbolId:l}),d=x=>{o(x.target.value)},p=()=>{i.length>0?r(Ne({gridLineIndex:t,price:Number(i)})):o(String(a))};return s.jsx(A,{className:n,filter:c.filters,fullWidth:!0,label:"Price",onBlur:p,onChange:d,size:"sm",value:i})},mt=e=>{const{className:n,gridLineIndex:t,disabled:r}=e,a=f(),i=m(j),[o]=b.symbol.getOne.useSuspenseQuery({symbolId:i}),{quantity:l}=m(Z(t)),[c,d]=u.useState(`${l}`);u.useEffect(()=>{d(`${l}`)},[l]);const p=C=>{d(C.target.value)},x=()=>{isNaN(Number(c))?d(`${l}`):a(Te({gridLineIndex:t,quantity:Number(c)}))};return s.jsx(H,{className:n,disabled:r,filter:o.filters,fullWidth:!0,label:"Quantity",onBlur:x,onChange:p,size:"sm",value:c})},xt=e=>{const{gridLineIndex:n}=e,t=m(q),r=n===t.length-1;return s.jsxs(g,{alignItems:"flex-end",container:!0,spacing:2,children:[s.jsx(g,{xs:!0,children:s.jsx(u.Suspense,{fallback:s.jsx(F,{height:36,variant:"rectangular",width:200}),children:s.jsx(ht,{gridLineIndex:n})})}),s.jsx(g,{xs:!0,children:s.jsx(u.Suspense,{fallback:s.jsx(F,{height:36,variant:"rectangular",width:200}),children:s.jsx(mt,{disabled:r,gridLineIndex:n})})}),s.jsx(g,{xs:"auto",children:s.jsx(dt,{gridLineIndex:n})})]})},Gt=()=>{const e=f(),n=m(q),t=()=>{e(Ae({price:1,quantity:1}))},r=a=>n.length-1-a;return s.jsxs(g,{container:!0,spacing:2,children:[s.jsx(g,{xs:12,children:n.map((a,i)=>s.jsx(xt,{gridLineIndex:r(i)},i))}),s.jsx(g,{xs:12,children:s.jsx(W,{onClick:t,children:"Add"})})]})},pt=({baseCurrencyAmount:e,quoteCurrencyAmount:n,totalInQuoteCurrency:t})=>{const r=m(j),{baseCurrency:a,quoteCurrency:i}=_(r);return s.jsxs(M,{children:[s.jsxs("span",{children:[e," ",a]}),s.jsx("span",{children:" + "}),s.jsxs("span",{children:[n," ",i]}),s.jsx("span",{children:" ≈ "}),s.jsxs("span",{children:[t," ",i]})]})},Lt=e=>{const{className:n}=e,t=m(j),{quoteCurrency:r}=_(t),[a]=b.symbol.price.useSuspenseQuery({symbolId:t}),[i]=b.symbol.getOne.useSuspenseQuery({symbolId:t}),o=m(q),{baseCurrencyAmount:l,quoteCurrencyAmount:c,totalInQuoteCurrency:d}=We(i,o,a.price),p="investment-field";return s.jsxs(L,{className:n,children:[s.jsx(N,{htmlFor:p,children:"Investment"}),s.jsx(T,{disabled:!0,endDecorator:s.jsx(s.Fragment,{children:r}),id:p,type:"number",value:d}),s.jsx(pt,{baseCurrencyAmount:l,quoteCurrencyAmount:c,totalInQuoteCurrency:d})]})},gt=e=>{const{disabled:n,readOnly:t}=e,r=m(j),[a]=b.symbol.getOne.useSuspenseQuery({symbolId:r}),i=f(),o=m(Ke),[l,c]=u.useState(o);u.useEffect(()=>{c(o)},[o]);const d=x=>{c(x.target.value)},p=()=>{isNaN(Number(l))?c(o):i(qe(l))};return s.jsx(H,{disabled:n,filter:a.filters,fullWidth:!0,label:"Quantity per grid",onBlur:p,onChange:d,readOnly:t,required:!0,value:l})},ft="gridLevels",bt=e=>{const{disabled:n,readOnly:t}=e,r=f(),a=m(Xe),[i,o]=u.useState(a),l=d=>{o(d.target.valueAsNumber)},c=()=>{Number.isInteger(i)?r(Ee(i)):o(a)};return s.jsxs(L,{children:[s.jsx(N,{children:"Grid levels"}),s.jsx(T,{autoComplete:"off",disabled:n,name:ft,onBlur:c,onChange:l,readOnly:t,required:!0,type:"number",value:i})]})},yt=e=>{const{disabled:n,readOnly:t}=e,r=m(j),[a]=b.symbol.getOne.useSuspenseQuery({symbolId:r}),i=f(),o=m(Ze),[l,c]=u.useState(`${o}`);u.useEffect(()=>{c(`${o}`)},[o]);const d=x=>{c(x.target.value)},p=()=>{l.length>0?i(ze(Number(l))):c(`${o}`)};return s.jsx(A,{disabled:n,filter:a.filters,fullWidth:!0,label:"High price",onBlur:p,onChange:d,readOnly:t,value:l})},jt=e=>{const{disabled:n,readOnly:t}=e,r=m(j),[a]=b.symbol.getOne.useSuspenseQuery({symbolId:r}),i=f(),o=m(Je),[l,c]=u.useState(`${o}`);u.useEffect(()=>{c(`${o}`)},[o]);const d=x=>{c(x.target.value)},p=()=>{l.length>0?i(Qe(Number(l))):c(`${o}`)};return s.jsx(A,{disabled:n,filter:a.filters,fullWidth:!0,label:"Low price",onBlur:p,onChange:d,readOnly:t,value:l})},Nt=()=>s.jsxs(g,{container:!0,spacing:2,children:[s.jsx(g,{md:6,xs:12,children:s.jsx(u.Suspense,{fallback:s.jsx(P,{withLabel:!0}),children:s.jsx(yt,{})})}),s.jsx(g,{md:6,xs:12,children:s.jsx(u.Suspense,{fallback:s.jsx(P,{withLabel:!0}),children:s.jsx(jt,{})})}),s.jsx(g,{md:6,xs:12,children:s.jsx(u.Suspense,{fallback:s.jsx(P,{withLabel:!0}),children:s.jsx(gt,{})})}),s.jsx(g,{md:6,xs:12,children:s.jsx(bt,{})})]});export{Gt as A,Bt as B,wt as F,It as G,Lt as I,Nt as S,j as a,Ze as b,Je as c,Xe as d,Ke as e,St as f,P as g,Ft as h,q as i,Pt as s}; diff --git a/apps/cli/frontend/assets/browser-CIxgVNQv.js b/apps/cli/frontend/assets/browser-BEwQJkL9.js similarity index 99% rename from apps/cli/frontend/assets/browser-CIxgVNQv.js rename to apps/cli/frontend/assets/browser-BEwQJkL9.js index 43cdb9d0..9c9c634f 100644 --- a/apps/cli/frontend/assets/browser-CIxgVNQv.js +++ b/apps/cli/frontend/assets/browser-BEwQJkL9.js @@ -1,4 +1,4 @@ -import{b3 as Re,b0 as Z,b4 as gi,a$ as ze}from"./index-DZp9tcRP.js";import{h as vi}from"./__vite-browser-external-v7f2oYTb.js";var Ye={},De={exports:{}},St;function pt(){if(St)return De.exports;St=1;var o=typeof Reflect=="object"?Reflect:null,m=o&&typeof o.apply=="function"?o.apply:function(p,_,R){return Function.prototype.apply.call(p,_,R)},w;o&&typeof o.ownKeys=="function"?w=o.ownKeys:Object.getOwnPropertySymbols?w=function(p){return Object.getOwnPropertyNames(p).concat(Object.getOwnPropertySymbols(p))}:w=function(p){return Object.getOwnPropertyNames(p)};function A(s){console&&console.warn&&console.warn(s)}var M=Number.isNaN||function(p){return p!==p};function c(){c.init.call(this)}De.exports=c,De.exports.once=f,c.EventEmitter=c,c.prototype._events=void 0,c.prototype._eventsCount=0,c.prototype._maxListeners=void 0;var S=10;function u(s){if(typeof s!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof s)}Object.defineProperty(c,"defaultMaxListeners",{enumerable:!0,get:function(){return S},set:function(s){if(typeof s!="number"||s<0||M(s))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+s+".");S=s}}),c.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},c.prototype.setMaxListeners=function(p){if(typeof p!="number"||p<0||M(p))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+p+".");return this._maxListeners=p,this};function l(s){return s._maxListeners===void 0?c.defaultMaxListeners:s._maxListeners}c.prototype.getMaxListeners=function(){return l(this)},c.prototype.emit=function(p){for(var _=[],R=1;R0&&(V=_[0]),V instanceof Error)throw V;var J=new Error("Unhandled error."+(V?" ("+V.message+")":""));throw J.context=V,J}var E=k[p];if(E===void 0)return!1;if(typeof E=="function")m(E,this,_);else for(var Q=E.length,re=G(E,Q),R=0;R0&&V.length>x&&!V.warned){V.warned=!0;var J=new Error("Possible EventEmitter memory leak detected. "+V.length+" "+String(p)+" listeners added. Use emitter.setMaxListeners() to increase limit");J.name="MaxListenersExceededWarning",J.emitter=s,J.type=p,J.count=V.length,A(J)}return s}c.prototype.addListener=function(p,_){return O(this,p,_,!1)},c.prototype.on=c.prototype.addListener,c.prototype.prependListener=function(p,_){return O(this,p,_,!0)};function L(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function I(s,p,_){var R={fired:!1,wrapFn:void 0,target:s,type:p,listener:_},x=L.bind(R);return x.listener=_,R.wrapFn=x,x}c.prototype.once=function(p,_){return u(_),this.on(p,I(this,p,_)),this},c.prototype.prependOnceListener=function(p,_){return u(_),this.prependListener(p,I(this,p,_)),this},c.prototype.removeListener=function(p,_){var R,x,k,V,J;if(u(_),x=this._events,x===void 0)return this;if(R=x[p],R===void 0)return this;if(R===_||R.listener===_)--this._eventsCount===0?this._events=Object.create(null):(delete x[p],x.removeListener&&this.emit("removeListener",p,R.listener||_));else if(typeof R!="function"){for(k=-1,V=R.length-1;V>=0;V--)if(R[V]===_||R[V].listener===_){J=R[V].listener,k=V;break}if(k<0)return this;k===0?R.shift():y(R,k),R.length===1&&(x[p]=R[0]),x.removeListener!==void 0&&this.emit("removeListener",p,J||_)}return this},c.prototype.off=c.prototype.removeListener,c.prototype.removeAllListeners=function(p){var _,R,x;if(R=this._events,R===void 0)return this;if(R.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):R[p]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete R[p]),this;if(arguments.length===0){var k=Object.keys(R),V;for(x=0;x=0;x--)this.removeListener(p,_[x]);return this};function P(s,p,_){var R=s._events;if(R===void 0)return[];var x=R[p];return x===void 0?[]:typeof x=="function"?_?[x.listener||x]:[x]:_?B(x):G(x,x.length)}c.prototype.listeners=function(p){return P(this,p,!0)},c.prototype.rawListeners=function(p){return P(this,p,!1)},c.listenerCount=function(s,p){return typeof s.listenerCount=="function"?s.listenerCount(p):q.call(s,p)},c.prototype.listenerCount=q;function q(s){var p=this._events;if(p!==void 0){var _=p[s];if(typeof _=="function")return 1;if(_!==void 0)return _.length}return 0}c.prototype.eventNames=function(){return this._eventsCount>0?w(this._events):[]};function G(s,p){for(var _=new Array(p),R=0;R0)throw new Error("Invalid string. Length must be a multiple of 4");var s=h.indexOf("=");s===-1&&(s=d);var p=s===d?0:4-s%4;return[s,p]}function L(h){var d=O(h),s=d[0],p=d[1];return(s+p)*3/4-p}function I(h,d,s){return(d+s)*3/4-s}function P(h){var d,s=O(h),p=s[0],_=s[1],R=new c(I(h,p,_)),x=0,k=_>0?p-4:p,V;for(V=0;V>16&255,R[x++]=d>>8&255,R[x++]=d&255;return _===2&&(d=M[h.charCodeAt(V)]<<2|M[h.charCodeAt(V+1)]>>4,R[x++]=d&255),_===1&&(d=M[h.charCodeAt(V)]<<10|M[h.charCodeAt(V+1)]<<4|M[h.charCodeAt(V+2)]>>2,R[x++]=d>>8&255,R[x++]=d&255),R}function q(h){return A[h>>18&63]+A[h>>12&63]+A[h>>6&63]+A[h&63]}function G(h,d,s){for(var p,_=[],R=d;Rk?k:x+R));return p===1?(d=h[s-1],_.push(A[d>>2]+A[d<<4&63]+"==")):p===2&&(d=(h[s-2]<<8)+h[s-1],_.push(A[d>>10]+A[d>>4&63]+A[d<<2&63]+"=")),_.join("")}var B={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */B.read=function(h,d,s,p,_){var R,x,k=_*8-p-1,V=(1<>1,E=-7,Q=s?_-1:0,re=s?-1:1,ie=h[d+Q];for(Q+=re,R=ie&(1<<-E)-1,ie>>=-E,E+=k;E>0;R=R*256+h[d+Q],Q+=re,E-=8);for(x=R&(1<<-E)-1,R>>=-E,E+=p;E>0;x=x*256+h[d+Q],Q+=re,E-=8);if(R===0)R=1-J;else{if(R===V)return x?NaN:(ie?-1:1)*(1/0);x=x+Math.pow(2,p),R=R-J}return(ie?-1:1)*x*Math.pow(2,R-p)},B.write=function(h,d,s,p,_,R){var x,k,V,J=R*8-_-1,E=(1<>1,re=_===23?Math.pow(2,-24)-Math.pow(2,-77):0,ie=p?0:R-1,ue=p?1:-1,he=d<0||d===0&&1/d<0?1:0;for(d=Math.abs(d),isNaN(d)||d===1/0?(k=isNaN(d)?1:0,x=E):(x=Math.floor(Math.log(d)/Math.LN2),d*(V=Math.pow(2,-x))<1&&(x--,V*=2),x+Q>=1?d+=re/V:d+=re*Math.pow(2,1-Q),d*V>=2&&(x++,V/=2),x+Q>=E?(k=0,x=E):x+Q>=1?(k=(d*V-1)*Math.pow(2,_),x=x+Q):(k=d*Math.pow(2,Q-1)*Math.pow(2,_),x=0));_>=8;h[s+ie]=k&255,ie+=ue,k/=256,_-=8);for(x=x<<_|k,J+=_;J>0;h[s+ie]=x&255,ie+=ue,x/=256,J-=8);h[s+ie-ue]|=he*128};/*! +import{b3 as Re,b0 as Z,b4 as gi,a$ as ze}from"./index-KZe-D0Hq.js";import{h as vi}from"./__vite-browser-external-v7f2oYTb.js";var Ye={},De={exports:{}},St;function pt(){if(St)return De.exports;St=1;var o=typeof Reflect=="object"?Reflect:null,m=o&&typeof o.apply=="function"?o.apply:function(p,_,R){return Function.prototype.apply.call(p,_,R)},w;o&&typeof o.ownKeys=="function"?w=o.ownKeys:Object.getOwnPropertySymbols?w=function(p){return Object.getOwnPropertyNames(p).concat(Object.getOwnPropertySymbols(p))}:w=function(p){return Object.getOwnPropertyNames(p)};function A(s){console&&console.warn&&console.warn(s)}var M=Number.isNaN||function(p){return p!==p};function c(){c.init.call(this)}De.exports=c,De.exports.once=f,c.EventEmitter=c,c.prototype._events=void 0,c.prototype._eventsCount=0,c.prototype._maxListeners=void 0;var S=10;function u(s){if(typeof s!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof s)}Object.defineProperty(c,"defaultMaxListeners",{enumerable:!0,get:function(){return S},set:function(s){if(typeof s!="number"||s<0||M(s))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+s+".");S=s}}),c.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},c.prototype.setMaxListeners=function(p){if(typeof p!="number"||p<0||M(p))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+p+".");return this._maxListeners=p,this};function l(s){return s._maxListeners===void 0?c.defaultMaxListeners:s._maxListeners}c.prototype.getMaxListeners=function(){return l(this)},c.prototype.emit=function(p){for(var _=[],R=1;R0&&(V=_[0]),V instanceof Error)throw V;var J=new Error("Unhandled error."+(V?" ("+V.message+")":""));throw J.context=V,J}var E=k[p];if(E===void 0)return!1;if(typeof E=="function")m(E,this,_);else for(var Q=E.length,re=G(E,Q),R=0;R0&&V.length>x&&!V.warned){V.warned=!0;var J=new Error("Possible EventEmitter memory leak detected. "+V.length+" "+String(p)+" listeners added. Use emitter.setMaxListeners() to increase limit");J.name="MaxListenersExceededWarning",J.emitter=s,J.type=p,J.count=V.length,A(J)}return s}c.prototype.addListener=function(p,_){return O(this,p,_,!1)},c.prototype.on=c.prototype.addListener,c.prototype.prependListener=function(p,_){return O(this,p,_,!0)};function L(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function I(s,p,_){var R={fired:!1,wrapFn:void 0,target:s,type:p,listener:_},x=L.bind(R);return x.listener=_,R.wrapFn=x,x}c.prototype.once=function(p,_){return u(_),this.on(p,I(this,p,_)),this},c.prototype.prependOnceListener=function(p,_){return u(_),this.prependListener(p,I(this,p,_)),this},c.prototype.removeListener=function(p,_){var R,x,k,V,J;if(u(_),x=this._events,x===void 0)return this;if(R=x[p],R===void 0)return this;if(R===_||R.listener===_)--this._eventsCount===0?this._events=Object.create(null):(delete x[p],x.removeListener&&this.emit("removeListener",p,R.listener||_));else if(typeof R!="function"){for(k=-1,V=R.length-1;V>=0;V--)if(R[V]===_||R[V].listener===_){J=R[V].listener,k=V;break}if(k<0)return this;k===0?R.shift():y(R,k),R.length===1&&(x[p]=R[0]),x.removeListener!==void 0&&this.emit("removeListener",p,J||_)}return this},c.prototype.off=c.prototype.removeListener,c.prototype.removeAllListeners=function(p){var _,R,x;if(R=this._events,R===void 0)return this;if(R.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):R[p]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete R[p]),this;if(arguments.length===0){var k=Object.keys(R),V;for(x=0;x=0;x--)this.removeListener(p,_[x]);return this};function P(s,p,_){var R=s._events;if(R===void 0)return[];var x=R[p];return x===void 0?[]:typeof x=="function"?_?[x.listener||x]:[x]:_?B(x):G(x,x.length)}c.prototype.listeners=function(p){return P(this,p,!0)},c.prototype.rawListeners=function(p){return P(this,p,!1)},c.listenerCount=function(s,p){return typeof s.listenerCount=="function"?s.listenerCount(p):q.call(s,p)},c.prototype.listenerCount=q;function q(s){var p=this._events;if(p!==void 0){var _=p[s];if(typeof _=="function")return 1;if(_!==void 0)return _.length}return 0}c.prototype.eventNames=function(){return this._eventsCount>0?w(this._events):[]};function G(s,p){for(var _=new Array(p),R=0;R0)throw new Error("Invalid string. Length must be a multiple of 4");var s=h.indexOf("=");s===-1&&(s=d);var p=s===d?0:4-s%4;return[s,p]}function L(h){var d=O(h),s=d[0],p=d[1];return(s+p)*3/4-p}function I(h,d,s){return(d+s)*3/4-s}function P(h){var d,s=O(h),p=s[0],_=s[1],R=new c(I(h,p,_)),x=0,k=_>0?p-4:p,V;for(V=0;V>16&255,R[x++]=d>>8&255,R[x++]=d&255;return _===2&&(d=M[h.charCodeAt(V)]<<2|M[h.charCodeAt(V+1)]>>4,R[x++]=d&255),_===1&&(d=M[h.charCodeAt(V)]<<10|M[h.charCodeAt(V+1)]<<4|M[h.charCodeAt(V+2)]>>2,R[x++]=d>>8&255,R[x++]=d&255),R}function q(h){return A[h>>18&63]+A[h>>12&63]+A[h>>6&63]+A[h&63]}function G(h,d,s){for(var p,_=[],R=d;Rk?k:x+R));return p===1?(d=h[s-1],_.push(A[d>>2]+A[d<<4&63]+"==")):p===2&&(d=(h[s-2]<<8)+h[s-1],_.push(A[d>>10]+A[d>>4&63]+A[d<<2&63]+"=")),_.join("")}var B={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */B.read=function(h,d,s,p,_){var R,x,k=_*8-p-1,V=(1<>1,E=-7,Q=s?_-1:0,re=s?-1:1,ie=h[d+Q];for(Q+=re,R=ie&(1<<-E)-1,ie>>=-E,E+=k;E>0;R=R*256+h[d+Q],Q+=re,E-=8);for(x=R&(1<<-E)-1,R>>=-E,E+=p;E>0;x=x*256+h[d+Q],Q+=re,E-=8);if(R===0)R=1-J;else{if(R===V)return x?NaN:(ie?-1:1)*(1/0);x=x+Math.pow(2,p),R=R-J}return(ie?-1:1)*x*Math.pow(2,R-p)},B.write=function(h,d,s,p,_,R){var x,k,V,J=R*8-_-1,E=(1<>1,re=_===23?Math.pow(2,-24)-Math.pow(2,-77):0,ie=p?0:R-1,ue=p?1:-1,he=d<0||d===0&&1/d<0?1:0;for(d=Math.abs(d),isNaN(d)||d===1/0?(k=isNaN(d)?1:0,x=E):(x=Math.floor(Math.log(d)/Math.LN2),d*(V=Math.pow(2,-x))<1&&(x--,V*=2),x+Q>=1?d+=re/V:d+=re*Math.pow(2,1-Q),d*V>=2&&(x++,V/=2),x+Q>=E?(k=0,x=E):x+Q>=1?(k=(d*V-1)*Math.pow(2,_),x=x+Q):(k=d*Math.pow(2,Q-1)*Math.pow(2,_),x=0));_>=8;h[s+ie]=k&255,ie+=ue,k/=256,_-=8);for(x=x<<_|k,J+=_;J>0;h[s+ie]=x&255,ie+=ue,x/=256,J-=8);h[s+ie-ue]|=he*128};/*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh diff --git a/apps/cli/frontend/assets/index-CMq2dFJx.js b/apps/cli/frontend/assets/index-93tFhUeY.js similarity index 99% rename from apps/cli/frontend/assets/index-CMq2dFJx.js rename to apps/cli/frontend/assets/index-93tFhUeY.js index 0b6571a2..3dc63e03 100644 --- a/apps/cli/frontend/assets/index-CMq2dFJx.js +++ b/apps/cli/frontend/assets/index-93tFhUeY.js @@ -1,4 +1,4 @@ -import{b1 as dr,b2 as j,b3 as Be,b0 as Ar}from"./index-DZp9tcRP.js";import{z as ie}from"./__vite-browser-external-v7f2oYTb.js";import{j as pt,a as dt,k as yt,l as ke,g as Kr,d as Vr,b as mt}from"./browser-CIxgVNQv.js";var ce=pt();const ye=dr(ce);var ge=dt();class We extends Error{constructor(t,e){super(t),Error.captureStackTrace(this,this.constructor),this.type=e}get name(){return this.constructor.name}get[Symbol.toStringTag](){return this.constructor.name}}class de extends We{constructor(t,e,n){super(t,e),n&&(this.code=this.errno=n.code,this.erroredSysCall=n.syscall)}}const Ue=Symbol.toStringTag,Gr=r=>typeof r=="object"&&typeof r.append=="function"&&typeof r.delete=="function"&&typeof r.get=="function"&&typeof r.getAll=="function"&&typeof r.has=="function"&&typeof r.set=="function"&&typeof r.sort=="function"&&r[Ue]==="URLSearchParams",_e=r=>r&&typeof r=="object"&&typeof r.arrayBuffer=="function"&&typeof r.type=="string"&&typeof r.stream=="function"&&typeof r.constructor=="function"&&/^(Blob|File)$/.test(r[Ue]),gt=r=>typeof r=="object"&&(r[Ue]==="AbortSignal"||r[Ue]==="EventTarget"),vt=(r,t)=>{const e=new URL(t).hostname,n=new URL(r).hostname;return e===n||e.endsWith(`.${n}`)},wt=(r,t)=>{const e=new URL(t).protocol,n=new URL(r).protocol;return e===n},St=ge.promisify(ye.pipeline),oe=Symbol("Body internals");class Ie{constructor(t,{size:e=0}={}){let n=null;t===null?t=null:Gr(t)?t=j.from(t.toString()):_e(t)||j.isBuffer(t)||(ge.types.isAnyArrayBuffer(t)?t=j.from(t):ArrayBuffer.isView(t)?t=j.from(t.buffer,t.byteOffset,t.byteLength):t instanceof ye||(t=j.from(String(t))));let a=t;j.isBuffer(t)?a=ye.Readable.from(t):_e(t)&&(a=ye.Readable.from(t.stream())),this[oe]={body:t,stream:a,boundary:n,disturbed:!1,error:null},this.size=e,t instanceof ye&&t.on("error",p=>{const S=p instanceof We?p:new de(`Invalid response body while trying to fetch ${this.url}: ${p.message}`,"system",p);this[oe].error=S})}get body(){return this[oe].stream}get bodyUsed(){return this[oe].disturbed}async arrayBuffer(){const{buffer:t,byteOffset:e,byteLength:n}=await je(this);return t.slice(e,e+n)}async blob(){const t=this.headers&&this.headers.get("content-type")||this[oe].body&&this[oe].body.type||"",e=await this.arrayBuffer();return new Blob([e],{type:t})}async json(){const t=await this.text();return JSON.parse(t)}async text(){const t=await je(this);return new TextDecoder().decode(t)}buffer(){return je(this)}}Ie.prototype.buffer=ge.deprecate(Ie.prototype.buffer,"Please use 'response.arrayBuffer()' instead of 'response.buffer()'","node-fetch#buffer");Object.defineProperties(Ie.prototype,{body:{enumerable:!0},bodyUsed:{enumerable:!0},arrayBuffer:{enumerable:!0},blob:{enumerable:!0},json:{enumerable:!0},text:{enumerable:!0},data:{get:ge.deprecate(()=>{},"data doesn't exist, use json(), text(), arrayBuffer(), or body instead","https://github.com/node-fetch/node-fetch/issues/1000 (response)")}});async function je(r){if(r[oe].disturbed)throw new TypeError(`body used already for: ${r.url}`);if(r[oe].disturbed=!0,r[oe].error)throw r[oe].error;const{body:t}=r;if(t===null)return j.alloc(0);if(!(t instanceof ye))return j.alloc(0);const e=[];let n=0;try{for await(const a of t){if(r.size>0&&n+a.length>r.size){const p=new de(`content size at ${r.url} over limit: ${r.size}`,"max-size");throw t.destroy(p),p}n+=a.length,e.push(a)}}catch(a){throw a instanceof We?a:new de(`Invalid response body while trying to fetch ${r.url}: ${a.message}`,"system",a)}if(t.readableEnded===!0||t._readableState.ended===!0)try{return e.every(a=>typeof a=="string")?j.from(e.join("")):j.concat(e,n)}catch(a){throw new de(`Could not create Buffer from response body for ${r.url}: ${a.message}`,"system",a)}else throw new de(`Premature close of server response while trying to fetch ${r.url}`)}const yr=(r,t)=>{let e,n,{body:a}=r[oe];if(r.bodyUsed)throw new Error("cannot clone body after it is used");return a instanceof ye&&typeof a.getBoundary!="function"&&(e=new ce.PassThrough({highWaterMark:t}),n=new ce.PassThrough({highWaterMark:t}),a.pipe(e),a.pipe(n),r[oe].stream=e,a=n),a},bt=ge.deprecate(r=>r.getBoundary(),"form-data doesn't follow the spec and requires special treatment. Use alternative package","https://github.com/node-fetch/node-fetch/issues/1167"),Qr=(r,t)=>r===null?null:typeof r=="string"?"text/plain;charset=UTF-8":Gr(r)?"application/x-www-form-urlencoded;charset=UTF-8":_e(r)?r.type||null:j.isBuffer(r)||ge.types.isAnyArrayBuffer(r)||ArrayBuffer.isView(r)?null:r&&typeof r.getBoundary=="function"?`multipart/form-data;boundary=${bt(r)}`:r instanceof ye?null:"text/plain;charset=UTF-8",xt=r=>{const{body:t}=r[oe];return t===null?0:_e(t)?t.size:j.isBuffer(t)?t.length:t&&typeof t.getLengthSync=="function"&&t.hasKnownLength&&t.hasKnownLength()?t.getLengthSync():null},Et=async(r,{body:t})=>{t===null?r.end():await St(t,r)},qe=typeof ie.validateHeaderName=="function"?ie.validateHeaderName:r=>{if(!/^[\^`\-\w!#$%&'*+.|~]+$/.test(r)){const t=new TypeError(`Header name must be a valid HTTP token [${r}]`);throw Object.defineProperty(t,"code",{value:"ERR_INVALID_HTTP_TOKEN"}),t}},lr=typeof ie.validateHeaderValue=="function"?ie.validateHeaderValue:(r,t)=>{if(/[^\t\u0020-\u007E\u0080-\u00FF]/.test(t)){const e=new TypeError(`Invalid character in header content ["${r}"]`);throw Object.defineProperty(e,"code",{value:"ERR_INVALID_CHAR"}),e}};class ve extends URLSearchParams{constructor(t){let e=[];if(t instanceof ve){const n=t.raw();for(const[a,p]of Object.entries(n))e.push(...p.map(S=>[a,S]))}else if(t!=null)if(typeof t=="object"&&!ge.types.isBoxedPrimitive(t)){const n=t[Symbol.iterator];if(n==null)e.push(...Object.entries(t));else{if(typeof n!="function")throw new TypeError("Header pairs must be iterable");e=[...t].map(a=>{if(typeof a!="object"||ge.types.isBoxedPrimitive(a))throw new TypeError("Each header pair must be an iterable object");return[...a]}).map(a=>{if(a.length!==2)throw new TypeError("Each header pair must be a name/value tuple");return[...a]})}}else throw new TypeError("Failed to construct 'Headers': The provided value is not of type '(sequence> or record)");return e=e.length>0?e.map(([n,a])=>(qe(n),lr(n,String(a)),[String(n).toLowerCase(),String(a)])):void 0,super(e),new Proxy(this,{get(n,a,p){switch(a){case"append":case"set":return(S,u)=>(qe(S),lr(S,String(u)),URLSearchParams.prototype[a].call(n,String(S).toLowerCase(),String(u)));case"delete":case"has":case"getAll":return S=>(qe(S),URLSearchParams.prototype[a].call(n,String(S).toLowerCase()));case"keys":return()=>(n.sort(),new Set(URLSearchParams.prototype.keys.call(n)).keys());default:return Reflect.get(n,a,p)}}})}get[Symbol.toStringTag](){return this.constructor.name}toString(){return Object.prototype.toString.call(this)}get(t){const e=this.getAll(t);if(e.length===0)return null;let n=e.join(", ");return/^content-encoding$/i.test(t)&&(n=n.toLowerCase()),n}forEach(t,e=void 0){for(const n of this.keys())Reflect.apply(t,e,[this.get(n),n,this])}*values(){for(const t of this.keys())yield this.get(t)}*entries(){for(const t of this.keys())yield[t,this.get(t)]}[Symbol.iterator](){return this.entries()}raw(){return[...this.keys()].reduce((t,e)=>(t[e]=this.getAll(e),t),{})}[Symbol.for("nodejs.util.inspect.custom")](){return[...this.keys()].reduce((t,e)=>{const n=this.getAll(e);return e==="host"?t[e]=n[0]:t[e]=n.length>1?n:n[0],t},{})}}Object.defineProperties(ve.prototype,["get","entries","forEach","values"].reduce((r,t)=>(r[t]={enumerable:!0},r),{}));function Tt(r=[]){return new ve(r.reduce((t,e,n,a)=>(n%2===0&&t.push(a.slice(n,n+2)),t),[]).filter(([t,e])=>{try{return qe(t),lr(t,String(e)),!0}catch{return!1}}))}const Ot=new Set([301,302,303,307,308]),Jr=r=>Ot.has(r),le=Symbol("Response internals");class se extends Ie{constructor(t=null,e={}){super(t,e);const n=e.status!=null?e.status:200,a=new ve(e.headers);if(t!==null&&!a.has("Content-Type")){const p=Qr(t);p&&a.append("Content-Type",p)}this[le]={type:"default",url:e.url,status:n,statusText:e.statusText||"",headers:a,counter:e.counter,highWaterMark:e.highWaterMark}}get type(){return this[le].type}get url(){return this[le].url||""}get status(){return this[le].status}get ok(){return this[le].status>=200&&this[le].status<300}get redirected(){return this[le].counter>0}get statusText(){return this[le].statusText}get headers(){return this[le].headers}get highWaterMark(){return this[le].highWaterMark}clone(){return new se(yr(this,this.highWaterMark),{type:this.type,url:this.url,status:this.status,statusText:this.statusText,headers:this.headers,ok:this.ok,redirected:this.redirected,size:this.size,highWaterMark:this.highWaterMark})}static redirect(t,e=302){if(!Jr(e))throw new RangeError('Failed to execute "redirect" on "response": Invalid status code');return new se(null,{headers:{location:new URL(t).toString()},status:e})}static error(){const t=new se(null,{status:0,statusText:""});return t[le].type="error",t}static json(t=void 0,e={}){const n=JSON.stringify(t);if(n===void 0)throw new TypeError("data is not JSON serializable");const a=new ve(e&&e.headers);return a.has("content-type")||a.set("content-type","application/json"),new se(n,{...e,headers:a})}get[Symbol.toStringTag](){return"Response"}}Object.defineProperties(se.prototype,{type:{enumerable:!0},url:{enumerable:!0},status:{enumerable:!0},ok:{enumerable:!0},redirected:{enumerable:!0},statusText:{enumerable:!0},headers:{enumerable:!0},clone:{enumerable:!0}});var Le={exports:{}};/*! https://mths.be/punycode v1.4.1 by @mathias */var Rt=Le.exports,Pr;function Ct(){return Pr||(Pr=1,function(r,t){(function(e){var n=t&&!t.nodeType&&t,a=r&&!r.nodeType&&r,p=typeof Be=="object"&&Be;(p.global===p||p.window===p||p.self===p)&&(e=p);var S,u=2147483647,w=36,d=1,x=26,O=38,b=700,l=72,h=128,E="-",o=/^xn--/,c=/[^\x20-\x7E]/,i=/[\x2E\u3002\uFF0E\uFF61]/g,m={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},y=w-d,g=Math.floor,v=String.fromCharCode,L;function R(T){throw new RangeError(m[T])}function $(T,P){for(var D=T.length,U=[];D--;)U[D]=P(T[D]);return U}function C(T,P){var D=T.split("@"),U="";D.length>1&&(U=D[0]+"@",T=D[1]),T=T.replace(i,".");var N=T.split("."),W=$(N,P).join(".");return U+W}function B(T){for(var P=[],D=0,U=T.length,N,W;D=55296&&N<=56319&&D65535&&(P-=65536,D+=v(P>>>10&1023|55296),P=56320|P&1023),D+=v(P),D}).join("")}function V(T){return T-48<10?T-22:T-65<26?T-65:T-97<26?T-97:w}function K(T,P){return T+22+75*(T<26)-((P!=0)<<5)}function G(T,P,D){var U=0;for(T=D?g(T/b):T>>1,T+=g(T/P);T>y*x>>1;U+=w)T=g(T/y);return g(U+(y+1)*T/(T+O))}function ee(T){var P=[],D=T.length,U,N=0,W=h,q=l,H,Q,X,J,z,Z,re,te,ne;for(H=T.lastIndexOf(E),H<0&&(H=0),Q=0;Q=128&&R("not-basic"),P.push(T.charCodeAt(Q));for(X=H>0?H+1:0;X=D&&R("invalid-input"),re=V(T.charCodeAt(X++)),(re>=w||re>g((u-N)/z))&&R("overflow"),N+=re*z,te=Z<=q?d:Z>=q+x?x:Z-q,!(reg(u/ne)&&R("overflow"),z*=ne;U=P.length+1,q=G(N-J,U,J==0),g(N/U)>u-W&&R("overflow"),W+=g(N/U),N%=U,P.splice(N++,0,W)}return A(P)}function fe(T){var P,D,U,N,W,q,H,Q,X,J,z,Z=[],re,te,ne,Ce;for(T=B(T),re=T.length,P=h,D=0,W=l,q=0;q=P&&zg((u-D)/te)&&R("overflow"),D+=(H-P)*te,P=H,q=0;qu&&R("overflow"),z==P){for(Q=D,X=w;J=X<=W?d:X>=W+x?x:X-W,!(Q-1e3&&s<1e3||v.call(/e/,f))return f;var M=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof s=="number"){var _=s<0?-C(-s):C(s);if(_!==s){var k=String(_),I=i.call(f,k.length+1);return m.call(k,M,"$&_")+"."+m.call(m.call(I,/([0-9]{3})/g,"$&_"),/_$/,"")}}return m.call(f,M,"$&_")}var pe=yt,T=pe.custom,P=te(T)?T:null,D={__proto__:null,double:'"',single:"'"},U={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};er=function s(f,M,_,k){var I=M||{};if(me(I,"quoteStyle")&&!me(D,I.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(me(I,"maxStringLength")&&(typeof I.maxStringLength=="number"?I.maxStringLength<0&&I.maxStringLength!==1/0:I.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var Se=me(I,"customInspect")?I.customInspect:!0;if(typeof Se!="boolean"&&Se!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(me(I,"indent")&&I.indent!==null&&I.indent!==" "&&!(parseInt(I.indent,10)===I.indent&&I.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(me(I,"numericSeparator")&&typeof I.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var xe=I.numericSeparator;if(typeof f>"u")return"undefined";if(f===null)return"null";if(typeof f=="boolean")return f?"true":"false";if(typeof f=="string")return vr(f,I);if(typeof f=="number"){if(f===0)return 1/0/f>0?"0":"-0";var ae=String(f);return xe?F(f,ae):ae}if(typeof f=="bigint"){var be=String(f)+"n";return xe?F(f,be):be}var Ve=typeof I.depth>"u"?5:I.depth;if(typeof _>"u"&&(_=0),_>=Ve&&Ve>0&&typeof f=="object")return H(f)?"[Array]":"[Object]";var Ee=lt(I,_);if(typeof k>"u")k=[];else if(gr(k,f)>=0)return"[Circular]";function ue(Te,Ne,ht){if(Ne&&(k=$.call(k),k.push(Ne)),ht){var Cr={depth:I.depth};return me(I,"quoteStyle")&&(Cr.quoteStyle=I.quoteStyle),s(Te,Cr,_+1,k)}return s(Te,I,_+1,k)}if(typeof f=="function"&&!X(f)){var Sr=rt(f),br=Fe(f,ue);return"[Function"+(Sr?": "+Sr:" (anonymous)")+"]"+(br.length>0?" { "+R.call(br,", ")+" }":"")}if(te(f)){var xr=K?m.call(String(f),/^(Symbol\(.*\))_[^)]*$/,"$1"):V.call(f);return typeof f=="object"&&!K?Ae(xr):xr}if(st(f)){for(var Pe="<"+g.call(String(f.nodeName)),Ge=f.attributes||[],Me=0;Me",Pe}if(H(f)){if(f.length===0)return"[]";var Qe=Fe(f,ue);return Ee&&!ut(Qe)?"["+Ke(Qe,Ee)+"]":"[ "+R.call(Qe,", ")+" ]"}if(J(f)){var Je=Fe(f,ue);return!("cause"in Error.prototype)&&"cause"in f&&!ee.call(f,"cause")?"{ ["+String(f)+"] "+R.call(L.call("[cause]: "+ue(f.cause),Je),", ")+" }":Je.length===0?"["+String(f)+"]":"{ ["+String(f)+"] "+R.call(Je,", ")+" }"}if(typeof f=="object"&&Se){if(P&&typeof f[P]=="function"&&pe)return pe(f,{depth:Ve-_});if(Se!=="symbol"&&typeof f.inspect=="function")return f.inspect()}if(tt(f)){var Er=[];return n&&n.call(f,function(Te,Ne){Er.push(ue(Ne,f,!0)+" => "+ue(Te,f))}),wr("Map",e.call(f),Er,Ee)}if(ot(f)){var Tr=[];return u&&u.call(f,function(Te){Tr.push(ue(Te,f))}),wr("Set",S.call(f),Tr,Ee)}if(nt(f))return He("WeakMap");if(it(f))return He("WeakSet");if(at(f))return He("WeakRef");if(Z(f))return Ae(ue(Number(f)));if(ne(f))return Ae(ue(B.call(f)));if(re(f))return Ae(h.call(f));if(z(f))return Ae(ue(String(f)));if(typeof window<"u"&&f===window)return"{ [object Window] }";if(typeof globalThis<"u"&&f===globalThis||typeof Be<"u"&&f===Be)return"{ [object globalThis] }";if(!Q(f)&&!X(f)){var Ze=Fe(f,ue),Or=fe?fe(f)===Object.prototype:f instanceof Object||f.constructor===Object,Ye=f instanceof Object?"":"null prototype",Rr=!Or&&G&&Object(f)===f&&G in f?i.call(we(f),8,-1):Ye?"Object":"",ct=Or||typeof f.constructor!="function"?"":f.constructor.name?f.constructor.name+" ":"",Xe=ct+(Rr||Ye?"["+R.call(L.call([],Rr||[],Ye||[]),": ")+"] ":"");return Ze.length===0?Xe+"{}":Ee?Xe+"{"+Ke(Ze,Ee)+"}":Xe+"{ "+R.call(Ze,", ")+" }"}return String(f)};function N(s,f,M){var _=M.quoteStyle||f,k=D[_];return k+s+k}function W(s){return m.call(String(s),/"/g,""")}function q(s){return!G||!(typeof s=="object"&&(G in s||typeof s[G]<"u"))}function H(s){return we(s)==="[object Array]"&&q(s)}function Q(s){return we(s)==="[object Date]"&&q(s)}function X(s){return we(s)==="[object RegExp]"&&q(s)}function J(s){return we(s)==="[object Error]"&&q(s)}function z(s){return we(s)==="[object String]"&&q(s)}function Z(s){return we(s)==="[object Number]"&&q(s)}function re(s){return we(s)==="[object Boolean]"&&q(s)}function te(s){if(K)return s&&typeof s=="object"&&s instanceof Symbol;if(typeof s=="symbol")return!0;if(!s||typeof s!="object"||!V)return!1;try{return V.call(s),!0}catch{}return!1}function ne(s){if(!s||typeof s!="object"||!B)return!1;try{return B.call(s),!0}catch{}return!1}var Ce=Object.prototype.hasOwnProperty||function(s){return s in this};function me(s,f){return Ce.call(s,f)}function we(s){return E.call(s)}function rt(s){if(s.name)return s.name;var f=c.call(o.call(s),/^function\s*([\w$]+)/);return f?f[1]:null}function gr(s,f){if(s.indexOf)return s.indexOf(f);for(var M=0,_=s.length;M<_;M++)if(s[M]===f)return M;return-1}function tt(s){if(!e||!s||typeof s!="object")return!1;try{e.call(s);try{S.call(s)}catch{return!0}return s instanceof Map}catch{}return!1}function nt(s){if(!d||!s||typeof s!="object")return!1;try{d.call(s,d);try{O.call(s,O)}catch{return!0}return s instanceof WeakMap}catch{}return!1}function at(s){if(!l||!s||typeof s!="object")return!1;try{return l.call(s),!0}catch{}return!1}function ot(s){if(!S||!s||typeof s!="object")return!1;try{S.call(s);try{e.call(s)}catch{return!0}return s instanceof Set}catch{}return!1}function it(s){if(!O||!s||typeof s!="object")return!1;try{O.call(s,O);try{d.call(s,d)}catch{return!0}return s instanceof WeakSet}catch{}return!1}function st(s){return!s||typeof s!="object"?!1:typeof HTMLElement<"u"&&s instanceof HTMLElement?!0:typeof s.nodeName=="string"&&typeof s.getAttribute=="function"}function vr(s,f){if(s.length>f.maxStringLength){var M=s.length-f.maxStringLength,_="... "+M+" more character"+(M>1?"s":"");return vr(i.call(s,0,f.maxStringLength),f)+_}var k=U[f.quoteStyle||"single"];k.lastIndex=0;var I=m.call(m.call(s,k,"\\$1"),/[\x00-\x1f]/g,ft);return N(I,"single",f)}function ft(s){var f=s.charCodeAt(0),M={8:"b",9:"t",10:"n",12:"f",13:"r"}[f];return M?"\\"+M:"\\x"+(f<16?"0":"")+y.call(f.toString(16))}function Ae(s){return"Object("+s+")"}function He(s){return s+" { ? }"}function wr(s,f,M,_){var k=_?Ke(M,_):R.call(M,", ");return s+" ("+f+") {"+k+"}"}function ut(s){for(var f=0;ftypeof r=="object"&&typeof r.append=="function"&&typeof r.delete=="function"&&typeof r.get=="function"&&typeof r.getAll=="function"&&typeof r.has=="function"&&typeof r.set=="function"&&typeof r.sort=="function"&&r[Ue]==="URLSearchParams",_e=r=>r&&typeof r=="object"&&typeof r.arrayBuffer=="function"&&typeof r.type=="string"&&typeof r.stream=="function"&&typeof r.constructor=="function"&&/^(Blob|File)$/.test(r[Ue]),gt=r=>typeof r=="object"&&(r[Ue]==="AbortSignal"||r[Ue]==="EventTarget"),vt=(r,t)=>{const e=new URL(t).hostname,n=new URL(r).hostname;return e===n||e.endsWith(`.${n}`)},wt=(r,t)=>{const e=new URL(t).protocol,n=new URL(r).protocol;return e===n},St=ge.promisify(ye.pipeline),oe=Symbol("Body internals");class Ie{constructor(t,{size:e=0}={}){let n=null;t===null?t=null:Gr(t)?t=j.from(t.toString()):_e(t)||j.isBuffer(t)||(ge.types.isAnyArrayBuffer(t)?t=j.from(t):ArrayBuffer.isView(t)?t=j.from(t.buffer,t.byteOffset,t.byteLength):t instanceof ye||(t=j.from(String(t))));let a=t;j.isBuffer(t)?a=ye.Readable.from(t):_e(t)&&(a=ye.Readable.from(t.stream())),this[oe]={body:t,stream:a,boundary:n,disturbed:!1,error:null},this.size=e,t instanceof ye&&t.on("error",p=>{const S=p instanceof We?p:new de(`Invalid response body while trying to fetch ${this.url}: ${p.message}`,"system",p);this[oe].error=S})}get body(){return this[oe].stream}get bodyUsed(){return this[oe].disturbed}async arrayBuffer(){const{buffer:t,byteOffset:e,byteLength:n}=await je(this);return t.slice(e,e+n)}async blob(){const t=this.headers&&this.headers.get("content-type")||this[oe].body&&this[oe].body.type||"",e=await this.arrayBuffer();return new Blob([e],{type:t})}async json(){const t=await this.text();return JSON.parse(t)}async text(){const t=await je(this);return new TextDecoder().decode(t)}buffer(){return je(this)}}Ie.prototype.buffer=ge.deprecate(Ie.prototype.buffer,"Please use 'response.arrayBuffer()' instead of 'response.buffer()'","node-fetch#buffer");Object.defineProperties(Ie.prototype,{body:{enumerable:!0},bodyUsed:{enumerable:!0},arrayBuffer:{enumerable:!0},blob:{enumerable:!0},json:{enumerable:!0},text:{enumerable:!0},data:{get:ge.deprecate(()=>{},"data doesn't exist, use json(), text(), arrayBuffer(), or body instead","https://github.com/node-fetch/node-fetch/issues/1000 (response)")}});async function je(r){if(r[oe].disturbed)throw new TypeError(`body used already for: ${r.url}`);if(r[oe].disturbed=!0,r[oe].error)throw r[oe].error;const{body:t}=r;if(t===null)return j.alloc(0);if(!(t instanceof ye))return j.alloc(0);const e=[];let n=0;try{for await(const a of t){if(r.size>0&&n+a.length>r.size){const p=new de(`content size at ${r.url} over limit: ${r.size}`,"max-size");throw t.destroy(p),p}n+=a.length,e.push(a)}}catch(a){throw a instanceof We?a:new de(`Invalid response body while trying to fetch ${r.url}: ${a.message}`,"system",a)}if(t.readableEnded===!0||t._readableState.ended===!0)try{return e.every(a=>typeof a=="string")?j.from(e.join("")):j.concat(e,n)}catch(a){throw new de(`Could not create Buffer from response body for ${r.url}: ${a.message}`,"system",a)}else throw new de(`Premature close of server response while trying to fetch ${r.url}`)}const yr=(r,t)=>{let e,n,{body:a}=r[oe];if(r.bodyUsed)throw new Error("cannot clone body after it is used");return a instanceof ye&&typeof a.getBoundary!="function"&&(e=new ce.PassThrough({highWaterMark:t}),n=new ce.PassThrough({highWaterMark:t}),a.pipe(e),a.pipe(n),r[oe].stream=e,a=n),a},bt=ge.deprecate(r=>r.getBoundary(),"form-data doesn't follow the spec and requires special treatment. Use alternative package","https://github.com/node-fetch/node-fetch/issues/1167"),Qr=(r,t)=>r===null?null:typeof r=="string"?"text/plain;charset=UTF-8":Gr(r)?"application/x-www-form-urlencoded;charset=UTF-8":_e(r)?r.type||null:j.isBuffer(r)||ge.types.isAnyArrayBuffer(r)||ArrayBuffer.isView(r)?null:r&&typeof r.getBoundary=="function"?`multipart/form-data;boundary=${bt(r)}`:r instanceof ye?null:"text/plain;charset=UTF-8",xt=r=>{const{body:t}=r[oe];return t===null?0:_e(t)?t.size:j.isBuffer(t)?t.length:t&&typeof t.getLengthSync=="function"&&t.hasKnownLength&&t.hasKnownLength()?t.getLengthSync():null},Et=async(r,{body:t})=>{t===null?r.end():await St(t,r)},qe=typeof ie.validateHeaderName=="function"?ie.validateHeaderName:r=>{if(!/^[\^`\-\w!#$%&'*+.|~]+$/.test(r)){const t=new TypeError(`Header name must be a valid HTTP token [${r}]`);throw Object.defineProperty(t,"code",{value:"ERR_INVALID_HTTP_TOKEN"}),t}},lr=typeof ie.validateHeaderValue=="function"?ie.validateHeaderValue:(r,t)=>{if(/[^\t\u0020-\u007E\u0080-\u00FF]/.test(t)){const e=new TypeError(`Invalid character in header content ["${r}"]`);throw Object.defineProperty(e,"code",{value:"ERR_INVALID_CHAR"}),e}};class ve extends URLSearchParams{constructor(t){let e=[];if(t instanceof ve){const n=t.raw();for(const[a,p]of Object.entries(n))e.push(...p.map(S=>[a,S]))}else if(t!=null)if(typeof t=="object"&&!ge.types.isBoxedPrimitive(t)){const n=t[Symbol.iterator];if(n==null)e.push(...Object.entries(t));else{if(typeof n!="function")throw new TypeError("Header pairs must be iterable");e=[...t].map(a=>{if(typeof a!="object"||ge.types.isBoxedPrimitive(a))throw new TypeError("Each header pair must be an iterable object");return[...a]}).map(a=>{if(a.length!==2)throw new TypeError("Each header pair must be a name/value tuple");return[...a]})}}else throw new TypeError("Failed to construct 'Headers': The provided value is not of type '(sequence> or record)");return e=e.length>0?e.map(([n,a])=>(qe(n),lr(n,String(a)),[String(n).toLowerCase(),String(a)])):void 0,super(e),new Proxy(this,{get(n,a,p){switch(a){case"append":case"set":return(S,u)=>(qe(S),lr(S,String(u)),URLSearchParams.prototype[a].call(n,String(S).toLowerCase(),String(u)));case"delete":case"has":case"getAll":return S=>(qe(S),URLSearchParams.prototype[a].call(n,String(S).toLowerCase()));case"keys":return()=>(n.sort(),new Set(URLSearchParams.prototype.keys.call(n)).keys());default:return Reflect.get(n,a,p)}}})}get[Symbol.toStringTag](){return this.constructor.name}toString(){return Object.prototype.toString.call(this)}get(t){const e=this.getAll(t);if(e.length===0)return null;let n=e.join(", ");return/^content-encoding$/i.test(t)&&(n=n.toLowerCase()),n}forEach(t,e=void 0){for(const n of this.keys())Reflect.apply(t,e,[this.get(n),n,this])}*values(){for(const t of this.keys())yield this.get(t)}*entries(){for(const t of this.keys())yield[t,this.get(t)]}[Symbol.iterator](){return this.entries()}raw(){return[...this.keys()].reduce((t,e)=>(t[e]=this.getAll(e),t),{})}[Symbol.for("nodejs.util.inspect.custom")](){return[...this.keys()].reduce((t,e)=>{const n=this.getAll(e);return e==="host"?t[e]=n[0]:t[e]=n.length>1?n:n[0],t},{})}}Object.defineProperties(ve.prototype,["get","entries","forEach","values"].reduce((r,t)=>(r[t]={enumerable:!0},r),{}));function Tt(r=[]){return new ve(r.reduce((t,e,n,a)=>(n%2===0&&t.push(a.slice(n,n+2)),t),[]).filter(([t,e])=>{try{return qe(t),lr(t,String(e)),!0}catch{return!1}}))}const Ot=new Set([301,302,303,307,308]),Jr=r=>Ot.has(r),le=Symbol("Response internals");class se extends Ie{constructor(t=null,e={}){super(t,e);const n=e.status!=null?e.status:200,a=new ve(e.headers);if(t!==null&&!a.has("Content-Type")){const p=Qr(t);p&&a.append("Content-Type",p)}this[le]={type:"default",url:e.url,status:n,statusText:e.statusText||"",headers:a,counter:e.counter,highWaterMark:e.highWaterMark}}get type(){return this[le].type}get url(){return this[le].url||""}get status(){return this[le].status}get ok(){return this[le].status>=200&&this[le].status<300}get redirected(){return this[le].counter>0}get statusText(){return this[le].statusText}get headers(){return this[le].headers}get highWaterMark(){return this[le].highWaterMark}clone(){return new se(yr(this,this.highWaterMark),{type:this.type,url:this.url,status:this.status,statusText:this.statusText,headers:this.headers,ok:this.ok,redirected:this.redirected,size:this.size,highWaterMark:this.highWaterMark})}static redirect(t,e=302){if(!Jr(e))throw new RangeError('Failed to execute "redirect" on "response": Invalid status code');return new se(null,{headers:{location:new URL(t).toString()},status:e})}static error(){const t=new se(null,{status:0,statusText:""});return t[le].type="error",t}static json(t=void 0,e={}){const n=JSON.stringify(t);if(n===void 0)throw new TypeError("data is not JSON serializable");const a=new ve(e&&e.headers);return a.has("content-type")||a.set("content-type","application/json"),new se(n,{...e,headers:a})}get[Symbol.toStringTag](){return"Response"}}Object.defineProperties(se.prototype,{type:{enumerable:!0},url:{enumerable:!0},status:{enumerable:!0},ok:{enumerable:!0},redirected:{enumerable:!0},statusText:{enumerable:!0},headers:{enumerable:!0},clone:{enumerable:!0}});var Le={exports:{}};/*! https://mths.be/punycode v1.4.1 by @mathias */var Rt=Le.exports,Pr;function Ct(){return Pr||(Pr=1,function(r,t){(function(e){var n=t&&!t.nodeType&&t,a=r&&!r.nodeType&&r,p=typeof Be=="object"&&Be;(p.global===p||p.window===p||p.self===p)&&(e=p);var S,u=2147483647,w=36,d=1,x=26,O=38,b=700,l=72,h=128,E="-",o=/^xn--/,c=/[^\x20-\x7E]/,i=/[\x2E\u3002\uFF0E\uFF61]/g,m={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},y=w-d,g=Math.floor,v=String.fromCharCode,L;function R(T){throw new RangeError(m[T])}function $(T,P){for(var D=T.length,U=[];D--;)U[D]=P(T[D]);return U}function C(T,P){var D=T.split("@"),U="";D.length>1&&(U=D[0]+"@",T=D[1]),T=T.replace(i,".");var N=T.split("."),W=$(N,P).join(".");return U+W}function B(T){for(var P=[],D=0,U=T.length,N,W;D=55296&&N<=56319&&D65535&&(P-=65536,D+=v(P>>>10&1023|55296),P=56320|P&1023),D+=v(P),D}).join("")}function V(T){return T-48<10?T-22:T-65<26?T-65:T-97<26?T-97:w}function K(T,P){return T+22+75*(T<26)-((P!=0)<<5)}function G(T,P,D){var U=0;for(T=D?g(T/b):T>>1,T+=g(T/P);T>y*x>>1;U+=w)T=g(T/y);return g(U+(y+1)*T/(T+O))}function ee(T){var P=[],D=T.length,U,N=0,W=h,q=l,H,Q,X,J,z,Z,re,te,ne;for(H=T.lastIndexOf(E),H<0&&(H=0),Q=0;Q=128&&R("not-basic"),P.push(T.charCodeAt(Q));for(X=H>0?H+1:0;X=D&&R("invalid-input"),re=V(T.charCodeAt(X++)),(re>=w||re>g((u-N)/z))&&R("overflow"),N+=re*z,te=Z<=q?d:Z>=q+x?x:Z-q,!(reg(u/ne)&&R("overflow"),z*=ne;U=P.length+1,q=G(N-J,U,J==0),g(N/U)>u-W&&R("overflow"),W+=g(N/U),N%=U,P.splice(N++,0,W)}return A(P)}function fe(T){var P,D,U,N,W,q,H,Q,X,J,z,Z=[],re,te,ne,Ce;for(T=B(T),re=T.length,P=h,D=0,W=l,q=0;q=P&&zg((u-D)/te)&&R("overflow"),D+=(H-P)*te,P=H,q=0;qu&&R("overflow"),z==P){for(Q=D,X=w;J=X<=W?d:X>=W+x?x:X-W,!(Q-1e3&&s<1e3||v.call(/e/,f))return f;var M=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof s=="number"){var _=s<0?-C(-s):C(s);if(_!==s){var k=String(_),I=i.call(f,k.length+1);return m.call(k,M,"$&_")+"."+m.call(m.call(I,/([0-9]{3})/g,"$&_"),/_$/,"")}}return m.call(f,M,"$&_")}var pe=yt,T=pe.custom,P=te(T)?T:null,D={__proto__:null,double:'"',single:"'"},U={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};er=function s(f,M,_,k){var I=M||{};if(me(I,"quoteStyle")&&!me(D,I.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(me(I,"maxStringLength")&&(typeof I.maxStringLength=="number"?I.maxStringLength<0&&I.maxStringLength!==1/0:I.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var Se=me(I,"customInspect")?I.customInspect:!0;if(typeof Se!="boolean"&&Se!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(me(I,"indent")&&I.indent!==null&&I.indent!==" "&&!(parseInt(I.indent,10)===I.indent&&I.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(me(I,"numericSeparator")&&typeof I.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var xe=I.numericSeparator;if(typeof f>"u")return"undefined";if(f===null)return"null";if(typeof f=="boolean")return f?"true":"false";if(typeof f=="string")return vr(f,I);if(typeof f=="number"){if(f===0)return 1/0/f>0?"0":"-0";var ae=String(f);return xe?F(f,ae):ae}if(typeof f=="bigint"){var be=String(f)+"n";return xe?F(f,be):be}var Ve=typeof I.depth>"u"?5:I.depth;if(typeof _>"u"&&(_=0),_>=Ve&&Ve>0&&typeof f=="object")return H(f)?"[Array]":"[Object]";var Ee=lt(I,_);if(typeof k>"u")k=[];else if(gr(k,f)>=0)return"[Circular]";function ue(Te,Ne,ht){if(Ne&&(k=$.call(k),k.push(Ne)),ht){var Cr={depth:I.depth};return me(I,"quoteStyle")&&(Cr.quoteStyle=I.quoteStyle),s(Te,Cr,_+1,k)}return s(Te,I,_+1,k)}if(typeof f=="function"&&!X(f)){var Sr=rt(f),br=Fe(f,ue);return"[Function"+(Sr?": "+Sr:" (anonymous)")+"]"+(br.length>0?" { "+R.call(br,", ")+" }":"")}if(te(f)){var xr=K?m.call(String(f),/^(Symbol\(.*\))_[^)]*$/,"$1"):V.call(f);return typeof f=="object"&&!K?Ae(xr):xr}if(st(f)){for(var Pe="<"+g.call(String(f.nodeName)),Ge=f.attributes||[],Me=0;Me",Pe}if(H(f)){if(f.length===0)return"[]";var Qe=Fe(f,ue);return Ee&&!ut(Qe)?"["+Ke(Qe,Ee)+"]":"[ "+R.call(Qe,", ")+" ]"}if(J(f)){var Je=Fe(f,ue);return!("cause"in Error.prototype)&&"cause"in f&&!ee.call(f,"cause")?"{ ["+String(f)+"] "+R.call(L.call("[cause]: "+ue(f.cause),Je),", ")+" }":Je.length===0?"["+String(f)+"]":"{ ["+String(f)+"] "+R.call(Je,", ")+" }"}if(typeof f=="object"&&Se){if(P&&typeof f[P]=="function"&&pe)return pe(f,{depth:Ve-_});if(Se!=="symbol"&&typeof f.inspect=="function")return f.inspect()}if(tt(f)){var Er=[];return n&&n.call(f,function(Te,Ne){Er.push(ue(Ne,f,!0)+" => "+ue(Te,f))}),wr("Map",e.call(f),Er,Ee)}if(ot(f)){var Tr=[];return u&&u.call(f,function(Te){Tr.push(ue(Te,f))}),wr("Set",S.call(f),Tr,Ee)}if(nt(f))return He("WeakMap");if(it(f))return He("WeakSet");if(at(f))return He("WeakRef");if(Z(f))return Ae(ue(Number(f)));if(ne(f))return Ae(ue(B.call(f)));if(re(f))return Ae(h.call(f));if(z(f))return Ae(ue(String(f)));if(typeof window<"u"&&f===window)return"{ [object Window] }";if(typeof globalThis<"u"&&f===globalThis||typeof Be<"u"&&f===Be)return"{ [object globalThis] }";if(!Q(f)&&!X(f)){var Ze=Fe(f,ue),Or=fe?fe(f)===Object.prototype:f instanceof Object||f.constructor===Object,Ye=f instanceof Object?"":"null prototype",Rr=!Or&&G&&Object(f)===f&&G in f?i.call(we(f),8,-1):Ye?"Object":"",ct=Or||typeof f.constructor!="function"?"":f.constructor.name?f.constructor.name+" ":"",Xe=ct+(Rr||Ye?"["+R.call(L.call([],Rr||[],Ye||[]),": ")+"] ":"");return Ze.length===0?Xe+"{}":Ee?Xe+"{"+Ke(Ze,Ee)+"}":Xe+"{ "+R.call(Ze,", ")+" }"}return String(f)};function N(s,f,M){var _=M.quoteStyle||f,k=D[_];return k+s+k}function W(s){return m.call(String(s),/"/g,""")}function q(s){return!G||!(typeof s=="object"&&(G in s||typeof s[G]<"u"))}function H(s){return we(s)==="[object Array]"&&q(s)}function Q(s){return we(s)==="[object Date]"&&q(s)}function X(s){return we(s)==="[object RegExp]"&&q(s)}function J(s){return we(s)==="[object Error]"&&q(s)}function z(s){return we(s)==="[object String]"&&q(s)}function Z(s){return we(s)==="[object Number]"&&q(s)}function re(s){return we(s)==="[object Boolean]"&&q(s)}function te(s){if(K)return s&&typeof s=="object"&&s instanceof Symbol;if(typeof s=="symbol")return!0;if(!s||typeof s!="object"||!V)return!1;try{return V.call(s),!0}catch{}return!1}function ne(s){if(!s||typeof s!="object"||!B)return!1;try{return B.call(s),!0}catch{}return!1}var Ce=Object.prototype.hasOwnProperty||function(s){return s in this};function me(s,f){return Ce.call(s,f)}function we(s){return E.call(s)}function rt(s){if(s.name)return s.name;var f=c.call(o.call(s),/^function\s*([\w$]+)/);return f?f[1]:null}function gr(s,f){if(s.indexOf)return s.indexOf(f);for(var M=0,_=s.length;M<_;M++)if(s[M]===f)return M;return-1}function tt(s){if(!e||!s||typeof s!="object")return!1;try{e.call(s);try{S.call(s)}catch{return!0}return s instanceof Map}catch{}return!1}function nt(s){if(!d||!s||typeof s!="object")return!1;try{d.call(s,d);try{O.call(s,O)}catch{return!0}return s instanceof WeakMap}catch{}return!1}function at(s){if(!l||!s||typeof s!="object")return!1;try{return l.call(s),!0}catch{}return!1}function ot(s){if(!S||!s||typeof s!="object")return!1;try{S.call(s);try{e.call(s)}catch{return!0}return s instanceof Set}catch{}return!1}function it(s){if(!O||!s||typeof s!="object")return!1;try{O.call(s,O);try{d.call(s,d)}catch{return!0}return s instanceof WeakSet}catch{}return!1}function st(s){return!s||typeof s!="object"?!1:typeof HTMLElement<"u"&&s instanceof HTMLElement?!0:typeof s.nodeName=="string"&&typeof s.getAttribute=="function"}function vr(s,f){if(s.length>f.maxStringLength){var M=s.length-f.maxStringLength,_="... "+M+" more character"+(M>1?"s":"");return vr(i.call(s,0,f.maxStringLength),f)+_}var k=U[f.quoteStyle||"single"];k.lastIndex=0;var I=m.call(m.call(s,k,"\\$1"),/[\x00-\x1f]/g,ft);return N(I,"single",f)}function ft(s){var f=s.charCodeAt(0),M={8:"b",9:"t",10:"n",12:"f",13:"r"}[f];return M?"\\"+M:"\\x"+(f<16?"0":"")+y.call(f.toString(16))}function Ae(s){return"Object("+s+")"}function He(s){return s+" { ? }"}function wr(s,f,M,_){var k=_?Ke(M,_):R.call(M,", ");return s+" ("+f+") {"+k+"}"}function ut(s){for(var f=0;f=0)return!1;return!0}function lt(s,f){var M;if(s.indent===" ")M=" ";else if(typeof s.indent=="number"&&s.indent>0)M=R.call(Array(s.indent+1)," ");else return null;return{base:M,prev:R.call(Array(f+1),M)}}function Ke(s,f){if(s.length===0)return"";var M=` `+f.prev+f.base;return M+R.call(s,","+M)+` `+f.prev}function Fe(s,f){var M=H(s),_=[];if(M){_.length=s.length;for(var k=0;k1;){var i=c.pop(),m=i.obj[i.prop];if(e(m)){for(var y=[],g=0;g=d?v.slice(R,R+d):v,C=[],B=0;B<$.length;++B){var A=$.charCodeAt(B);if(A===45||A===46||A===95||A===126||A>=48&&A<=57||A>=65&&A<=90||A>=97&&A<=122||g===r.RFC1738&&(A===40||A===41)){C[C.length]=$.charAt(B);continue}if(A<128){C[C.length]=n[A];continue}if(A<2048){C[C.length]=n[192|A>>6]+n[128|A&63];continue}if(A<55296||A>=57344){C[C.length]=n[224|A>>12]+n[128|A>>6&63]+n[128|A&63];continue}B+=1,A=65536+((A&1023)<<10|$.charCodeAt(B)&1023),C[C.length]=n[240|A>>18]+n[128|A>>12&63]+n[128|A>>6&63]+n[128|A&63]}L+=C.join("")}return L},O=function(c){for(var i=[{obj:{o:c},prop:"o"}],m=[],y=0;y"u"&&(T=0)}if(typeof $=="function"?F=$(c,F):F instanceof Date?F=A(F):i==="comma"&&p(F)&&(F=t.maybeMap(F,function(ne){return ne instanceof Date?A(ne):ne})),F===null){if(g)return R&&!G?R(c,x.encoder,ee,"key",V):c;F=""}if(O(F)||t.isBuffer(F)){if(R){var U=G?c:R(c,x.encoder,ee,"key",V);return[K(U)+"="+K(R(F,x.encoder,ee,"value",V))]}return[K(c)+"="+K(String(F))]}var N=[];if(typeof F>"u")return N;var W;if(i==="comma"&&p(F))G&&R&&(F=t.maybeMap(F,R)),W=[{value:F.length>0?F.join(",")||null:void 0}];else if(p($))W=$;else{var q=Object.keys(F);W=C?q.sort(C):q}var H=L?c.replace(/\./g,"%2E"):c,Q=m&&p(F)&&F.length===1?H+"[]":H;if(y&&p(F)&&F.length===0)return Q+"[]";for(var X=0;X"u"?o.encodeDotInKeys===!0?!0:x.allowDots:!!o.allowDots;return{addQueryPrefix:typeof o.addQueryPrefix=="boolean"?o.addQueryPrefix:x.addQueryPrefix,allowDots:v,allowEmptyArrays:typeof o.allowEmptyArrays=="boolean"?!!o.allowEmptyArrays:x.allowEmptyArrays,arrayFormat:g,charset:c,charsetSentinel:typeof o.charsetSentinel=="boolean"?o.charsetSentinel:x.charsetSentinel,commaRoundTrip:o.commaRoundTrip,delimiter:typeof o.delimiter>"u"?x.delimiter:o.delimiter,encode:typeof o.encode=="boolean"?o.encode:x.encode,encodeDotInKeys:typeof o.encodeDotInKeys=="boolean"?o.encodeDotInKeys:x.encodeDotInKeys,encoder:typeof o.encoder=="function"?o.encoder:x.encoder,encodeValuesOnly:typeof o.encodeValuesOnly=="boolean"?o.encodeValuesOnly:x.encodeValuesOnly,filter:y,format:i,formatter:m,serializeDate:typeof o.serializeDate=="function"?o.serializeDate:x.serializeDate,skipNulls:typeof o.skipNulls=="boolean"?o.skipNulls:x.skipNulls,sort:typeof o.sort=="function"?o.sort:null,strictNullHandling:typeof o.strictNullHandling=="boolean"?o.strictNullHandling:x.strictNullHandling}};return sr=function(E,o){var c=E,i=h(o),m,y;typeof i.filter=="function"?(y=i.filter,c=y("",c)):p(i.filter)&&(y=i.filter,m=y);var g=[];if(typeof c!="object"||c===null)return"";var v=a[i.arrayFormat],L=v==="comma"&&i.commaRoundTrip;m||(m=Object.keys(c)),i.sort&&m.sort(i.sort);for(var R=r(),$=0;$0?A+B:""},sr}var fr,Br;function Ft(){if(Br)return fr;Br=1;var r=Yr(),t=Object.prototype.hasOwnProperty,e=Array.isArray,n={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:r.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1},a=function(b){return b.replace(/&#(\d+);/g,function(l,h){return String.fromCharCode(parseInt(h,10))})},p=function(b,l){return b&&typeof b=="string"&&l.comma&&b.indexOf(",")>-1?b.split(","):b},S="utf8=%26%2310003%3B",u="utf8=%E2%9C%93",w=function(l,h){var E={__proto__:null},o=h.ignoreQueryPrefix?l.replace(/^\?/,""):l;o=o.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var c=h.parameterLimit===1/0?void 0:h.parameterLimit,i=o.split(h.delimiter,c),m=-1,y,g=h.charset;if(h.charsetSentinel)for(y=0;y-1&&(C=e(C)?[C]:C);var B=t.call(E,$);B&&h.duplicates==="combine"?E[$]=r.combine(E[$],C):(!B||h.duplicates==="last")&&(E[$]=C)}return E},d=function(b,l,h,E){for(var o=E?l:p(l,h),c=b.length-1;c>=0;--c){var i,m=b[c];if(m==="[]"&&h.parseArrays)i=h.allowEmptyArrays&&(o===""||h.strictNullHandling&&o===null)?[]:[].concat(o);else{i=h.plainObjects?Object.create(null):{};var y=m.charAt(0)==="["&&m.charAt(m.length-1)==="]"?m.slice(1,-1):m,g=h.decodeDotInKeys?y.replace(/%2E/g,"."):y,v=parseInt(g,10);!h.parseArrays&&g===""?i={0:o}:!isNaN(v)&&m!==g&&String(v)===g&&v>=0&&h.parseArrays&&v<=h.arrayLimit?(i=[],i[v]=o):g!=="__proto__"&&(i[g]=o)}o=i}return o},x=function(l,h,E,o){if(l){var c=E.allowDots?l.replace(/\.([^.[]+)/g,"[$1]"):l,i=/(\[[^[\]]*])/,m=/(\[[^[\]]*])/g,y=E.depth>0&&i.exec(c),g=y?c.slice(0,y.index):c,v=[];if(g){if(!E.plainObjects&&t.call(Object.prototype,g)&&!E.allowPrototypes)return;v.push(g)}for(var L=0;E.depth>0&&(y=m.exec(c))!==null&&L"u"?n.charset:l.charset,E=typeof l.duplicates>"u"?n.duplicates:l.duplicates;if(E!=="combine"&&E!=="first"&&E!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var o=typeof l.allowDots>"u"?l.decodeDotInKeys===!0?!0:n.allowDots:!!l.allowDots;return{allowDots:o,allowEmptyArrays:typeof l.allowEmptyArrays=="boolean"?!!l.allowEmptyArrays:n.allowEmptyArrays,allowPrototypes:typeof l.allowPrototypes=="boolean"?l.allowPrototypes:n.allowPrototypes,allowSparse:typeof l.allowSparse=="boolean"?l.allowSparse:n.allowSparse,arrayLimit:typeof l.arrayLimit=="number"?l.arrayLimit:n.arrayLimit,charset:h,charsetSentinel:typeof l.charsetSentinel=="boolean"?l.charsetSentinel:n.charsetSentinel,comma:typeof l.comma=="boolean"?l.comma:n.comma,decodeDotInKeys:typeof l.decodeDotInKeys=="boolean"?l.decodeDotInKeys:n.decodeDotInKeys,decoder:typeof l.decoder=="function"?l.decoder:n.decoder,delimiter:typeof l.delimiter=="string"||r.isRegExp(l.delimiter)?l.delimiter:n.delimiter,depth:typeof l.depth=="number"||l.depth===!1?+l.depth:n.depth,duplicates:E,ignoreQueryPrefix:l.ignoreQueryPrefix===!0,interpretNumericEntities:typeof l.interpretNumericEntities=="boolean"?l.interpretNumericEntities:n.interpretNumericEntities,parameterLimit:typeof l.parameterLimit=="number"?l.parameterLimit:n.parameterLimit,parseArrays:l.parseArrays!==!1,plainObjects:typeof l.plainObjects=="boolean"?l.plainObjects:n.plainObjects,strictDepth:typeof l.strictDepth=="boolean"?!!l.strictDepth:n.strictDepth,strictNullHandling:typeof l.strictNullHandling=="boolean"?l.strictNullHandling:n.strictNullHandling}};return fr=function(b,l){var h=O(l);if(b===""||b===null||typeof b>"u")return h.plainObjects?Object.create(null):{};for(var E=typeof b=="string"?w(b,h):b,o=h.plainObjects?Object.create(null):{},c=Object.keys(E),i=0;i",'"',"`"," ","\r",` diff --git a/apps/cli/frontend/assets/index-D4YToBI7.js b/apps/cli/frontend/assets/index-DXOVYs9q.js similarity index 92% rename from apps/cli/frontend/assets/index-D4YToBI7.js rename to apps/cli/frontend/assets/index-DXOVYs9q.js index 6881cb08..24662426 100644 --- a/apps/cli/frontend/assets/index-D4YToBI7.js +++ b/apps/cli/frontend/assets/index-DXOVYs9q.js @@ -1,3 +1,3 @@ -import{a$ as l}from"./index-DZp9tcRP.js";import{r as y,b as x}from"./browser-CIxgVNQv.js";import{A as m}from"./index-Ci84Plby.js";import"./__vite-browser-external-v7f2oYTb.js";var g=y();function H(s){return typeof s=="string"?/^https:?$/i.test(s):!1}class P extends m{constructor(t,e){super(e),this.proxy=typeof t=="string"?new URL(t):t,this.proxyHeaders=(e==null?void 0:e.headers)??{};const o=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),a=this.proxy.port?parseInt(this.proxy.port,10):this.secureProxy?443:80;this.connectOpts={...e?$(e,"headers"):null,host:o,port:a}}get secureProxy(){return H(this.proxy.protocol)}async connect(t,e){const{proxy:o}=this,a=e.secureEndpoint?"https:":"http:",d=t.getHeader("host")||"localhost",f=`${a}//${d}`,p=new URL(t.path,f);e.port!==80&&(p.port=String(e.port)),t.path=String(p),t._header=null;const n=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders};if(o.username||o.password){const i=`${decodeURIComponent(o.username)}:${decodeURIComponent(o.password)}`;n["Proxy-Authorization"]=`Basic ${l.from(i).toString("base64")}`}n["Proxy-Connection"]||(n["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(const i of Object.keys(n)){const u=n[i];u&&t.setHeader(i,u)}let r;this.secureProxy?r=(void 0)(this.connectOpts):r=x.connect(this.connectOpts);let c,h;return t._implicitHeader(),t.outputData&&t.outputData.length>0&&(c=t.outputData[0].data,h=c.indexOf(`\r +import{a$ as l}from"./index-KZe-D0Hq.js";import{r as y,b as x}from"./browser-BEwQJkL9.js";import{A as m}from"./index-pGYdP0Ky.js";import"./__vite-browser-external-v7f2oYTb.js";var g=y();function H(s){return typeof s=="string"?/^https:?$/i.test(s):!1}class P extends m{constructor(t,e){super(e),this.proxy=typeof t=="string"?new URL(t):t,this.proxyHeaders=(e==null?void 0:e.headers)??{};const o=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),a=this.proxy.port?parseInt(this.proxy.port,10):this.secureProxy?443:80;this.connectOpts={...e?$(e,"headers"):null,host:o,port:a}}get secureProxy(){return H(this.proxy.protocol)}async connect(t,e){const{proxy:o}=this,a=e.secureEndpoint?"https:":"http:",d=t.getHeader("host")||"localhost",f=`${a}//${d}`,p=new URL(t.path,f);e.port!==80&&(p.port=String(e.port)),t.path=String(p),t._header=null;const n=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders};if(o.username||o.password){const i=`${decodeURIComponent(o.username)}:${decodeURIComponent(o.password)}`;n["Proxy-Authorization"]=`Basic ${l.from(i).toString("base64")}`}n["Proxy-Connection"]||(n["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(const i of Object.keys(n)){const u=n[i];u&&t.setHeader(i,u)}let r;this.secureProxy?r=(void 0)(this.connectOpts):r=x.connect(this.connectOpts);let c,h;return t._implicitHeader(),t.outputData&&t.outputData.length>0&&(c=t.outputData[0].data,h=c.indexOf(`\r \r `)+4,t.outputData[0].data=t._header+c.substring(h)),await g.once(r,"connect"),r}}P.protocols=["http","https"];function $(s,...t){const e={};let o;for(o in s)t.includes(o)||(e[o]=s[o]);return e}export{P as HttpProxyAgent}; diff --git a/apps/cli/frontend/assets/index-DvUwMvi4.js b/apps/cli/frontend/assets/index-DtxLpIzc.js similarity index 99% rename from apps/cli/frontend/assets/index-DvUwMvi4.js rename to apps/cli/frontend/assets/index-DtxLpIzc.js index c0901682..054be74b 100644 --- a/apps/cli/frontend/assets/index-DvUwMvi4.js +++ b/apps/cli/frontend/assets/index-DtxLpIzc.js @@ -1,4 +1,4 @@ -import{b0 as ae,b1 as wt,a$ as yt}from"./index-DZp9tcRP.js";import{a as Oe,c as Ot,d as St,e as jt,f as We,g as qt,h as Pt,i as Rt,b as je}from"./browser-CIxgVNQv.js";import{A as At}from"./index-Ci84Plby.js";import"./__vite-browser-external-v7f2oYTb.js";var Pe={exports:{}},Re={},ke;function gt(){if(ke)return Re;ke=1;function l(i){"@babel/helpers - typeof";return l=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},l(i)}function E(i,a,g){return Object.defineProperty(i,"prototype",{writable:!1}),i}function v(i,a){if(!(i instanceof a))throw new TypeError("Cannot call a class as a function")}function y(i,a){if(typeof a!="function"&&a!==null)throw new TypeError("Super expression must either be null or a function");i.prototype=Object.create(a&&a.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),Object.defineProperty(i,"prototype",{writable:!1}),a&&A(i,a)}function A(i,a){return A=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(P,M){return P.__proto__=M,P},A(i,a)}function N(i){var a=L();return function(){var P=$(i),M;if(a){var R=$(this).constructor;M=Reflect.construct(P,arguments,R)}else M=P.apply(this,arguments);return j(this,M)}}function j(i,a){if(a&&(l(a)==="object"||typeof a=="function"))return a;if(a!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return H(i)}function H(i){if(i===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return i}function L(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function $(i){return $=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(g){return g.__proto__||Object.getPrototypeOf(g)},$(i)}var D={},T,q;function b(i,a,g){g||(g=Error);function P(R,W,B){return typeof a=="string"?a:a(R,W,B)}var M=function(R){y(B,R);var W=N(B);function B(te,re,C){var Q;return v(this,B),Q=W.call(this,P(te,re,C)),Q.code=i,Q}return E(B)}(g);D[i]=M}function k(i,a){if(Array.isArray(i)){var g=i.length;return i=i.map(function(P){return String(P)}),g>2?"one of ".concat(a," ").concat(i.slice(0,g-1).join(", "),", or ")+i[g-1]:g===2?"one of ".concat(a," ").concat(i[0]," or ").concat(i[1]):"of ".concat(a," ").concat(i[0])}else return"of ".concat(a," ").concat(String(i))}function X(i,a,g){return i.substr(0,a.length)===a}function J(i,a,g){return(g===void 0||g>i.length)&&(g=i.length),i.substring(g-a.length,g)===a}function F(i,a,g){return typeof g!="number"&&(g=0),g+a.length>i.length?!1:i.indexOf(a,g)!==-1}return b("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),b("ERR_INVALID_ARG_TYPE",function(i,a,g){T===void 0&&(T=ze()),T(typeof i=="string","'name' must be a string");var P;typeof a=="string"&&X(a,"not ")?(P="must not be",a=a.replace(/^not /,"")):P="must be";var M;if(J(i," argument"))M="The ".concat(i," ").concat(P," ").concat(k(a,"type"));else{var R=F(i,".")?"property":"argument";M='The "'.concat(i,'" ').concat(R," ").concat(P," ").concat(k(a,"type"))}return M+=". Received type ".concat(l(g)),M},TypeError),b("ERR_INVALID_ARG_VALUE",function(i,a){var g=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"is invalid";q===void 0&&(q=Oe());var P=q.inspect(a);return P.length>128&&(P="".concat(P.slice(0,128),"...")),"The argument '".concat(i,"' ").concat(g,". Received ").concat(P)},TypeError),b("ERR_INVALID_RETURN_VALUE",function(i,a,g){var P;return g&&g.constructor&&g.constructor.name?P="instance of ".concat(g.constructor.name):P="type ".concat(l(g)),"Expected ".concat(i,' to be returned from the "').concat(a,'"')+" function but got ".concat(P,".")},TypeError),b("ERR_MISSING_ARGS",function(){for(var i=arguments.length,a=new Array(i),g=0;g0,"At least one arg needs to be specified");var P="The ",M=a.length;switch(a=a.map(function(R){return'"'.concat(R,'"')}),M){case 1:P+="".concat(a[0]," argument");break;case 2:P+="".concat(a[0]," and ").concat(a[1]," arguments");break;default:P+=a.slice(0,M-1).join(", "),P+=", and ".concat(a[M-1]," arguments");break}return"".concat(P," must be specified")},TypeError),Re.codes=D,Re}var Ae,Xe;function It(){if(Xe)return Ae;Xe=1;function l(c,u){var w=Object.keys(c);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(c);u&&(d=d.filter(function(I){return Object.getOwnPropertyDescriptor(c,I).enumerable})),w.push.apply(w,d)}return w}function E(c){for(var u=1;u"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function X(c){return Function.toString.call(c).indexOf("[native code]")!==-1}function J(c,u){return J=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(d,I){return d.__proto__=I,d},J(c,u)}function F(c){return F=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(w){return w.__proto__||Object.getPrototypeOf(w)},F(c)}function i(c){"@babel/helpers - typeof";return i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(u){return typeof u}:function(u){return u&&typeof Symbol=="function"&&u.constructor===Symbol&&u!==Symbol.prototype?"symbol":typeof u},i(c)}var a=Oe(),g=a.inspect,P=gt(),M=P.codes.ERR_INVALID_ARG_TYPE;function R(c,u,w){return(w===void 0||w>c.length)&&(w=c.length),c.substring(w-u.length,w)===u}function W(c,u){if(u=Math.floor(u),c.length==0||u==0)return"";var w=c.length*u;for(u=Math.floor(Math.log(u)/Math.log(2));u;)c+=c,u--;return c+=c.substring(0,w-c.length),c}var B="",te="",re="",C="",Q={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"},he=10;function ye(c){var u=Object.keys(c),w=Object.create(Object.getPrototypeOf(c));return u.forEach(function(d){w[d]=c[d]}),Object.defineProperty(w,"message",{value:c.message}),w}function ie(c){return g(c,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function ge(c,u,w){var d="",I="",n=0,t="",o=!1,p=ie(c),f=p.split(` +import{b0 as ae,b1 as wt,a$ as yt}from"./index-KZe-D0Hq.js";import{a as Oe,c as Ot,d as St,e as jt,f as We,g as qt,h as Pt,i as Rt,b as je}from"./browser-BEwQJkL9.js";import{A as At}from"./index-pGYdP0Ky.js";import"./__vite-browser-external-v7f2oYTb.js";var Pe={exports:{}},Re={},ke;function gt(){if(ke)return Re;ke=1;function l(i){"@babel/helpers - typeof";return l=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},l(i)}function E(i,a,g){return Object.defineProperty(i,"prototype",{writable:!1}),i}function v(i,a){if(!(i instanceof a))throw new TypeError("Cannot call a class as a function")}function y(i,a){if(typeof a!="function"&&a!==null)throw new TypeError("Super expression must either be null or a function");i.prototype=Object.create(a&&a.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),Object.defineProperty(i,"prototype",{writable:!1}),a&&A(i,a)}function A(i,a){return A=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(P,M){return P.__proto__=M,P},A(i,a)}function N(i){var a=L();return function(){var P=$(i),M;if(a){var R=$(this).constructor;M=Reflect.construct(P,arguments,R)}else M=P.apply(this,arguments);return j(this,M)}}function j(i,a){if(a&&(l(a)==="object"||typeof a=="function"))return a;if(a!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return H(i)}function H(i){if(i===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return i}function L(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function $(i){return $=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(g){return g.__proto__||Object.getPrototypeOf(g)},$(i)}var D={},T,q;function b(i,a,g){g||(g=Error);function P(R,W,B){return typeof a=="string"?a:a(R,W,B)}var M=function(R){y(B,R);var W=N(B);function B(te,re,C){var Q;return v(this,B),Q=W.call(this,P(te,re,C)),Q.code=i,Q}return E(B)}(g);D[i]=M}function k(i,a){if(Array.isArray(i)){var g=i.length;return i=i.map(function(P){return String(P)}),g>2?"one of ".concat(a," ").concat(i.slice(0,g-1).join(", "),", or ")+i[g-1]:g===2?"one of ".concat(a," ").concat(i[0]," or ").concat(i[1]):"of ".concat(a," ").concat(i[0])}else return"of ".concat(a," ").concat(String(i))}function X(i,a,g){return i.substr(0,a.length)===a}function J(i,a,g){return(g===void 0||g>i.length)&&(g=i.length),i.substring(g-a.length,g)===a}function F(i,a,g){return typeof g!="number"&&(g=0),g+a.length>i.length?!1:i.indexOf(a,g)!==-1}return b("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),b("ERR_INVALID_ARG_TYPE",function(i,a,g){T===void 0&&(T=ze()),T(typeof i=="string","'name' must be a string");var P;typeof a=="string"&&X(a,"not ")?(P="must not be",a=a.replace(/^not /,"")):P="must be";var M;if(J(i," argument"))M="The ".concat(i," ").concat(P," ").concat(k(a,"type"));else{var R=F(i,".")?"property":"argument";M='The "'.concat(i,'" ').concat(R," ").concat(P," ").concat(k(a,"type"))}return M+=". Received type ".concat(l(g)),M},TypeError),b("ERR_INVALID_ARG_VALUE",function(i,a){var g=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"is invalid";q===void 0&&(q=Oe());var P=q.inspect(a);return P.length>128&&(P="".concat(P.slice(0,128),"...")),"The argument '".concat(i,"' ").concat(g,". Received ").concat(P)},TypeError),b("ERR_INVALID_RETURN_VALUE",function(i,a,g){var P;return g&&g.constructor&&g.constructor.name?P="instance of ".concat(g.constructor.name):P="type ".concat(l(g)),"Expected ".concat(i,' to be returned from the "').concat(a,'"')+" function but got ".concat(P,".")},TypeError),b("ERR_MISSING_ARGS",function(){for(var i=arguments.length,a=new Array(i),g=0;g0,"At least one arg needs to be specified");var P="The ",M=a.length;switch(a=a.map(function(R){return'"'.concat(R,'"')}),M){case 1:P+="".concat(a[0]," argument");break;case 2:P+="".concat(a[0]," and ").concat(a[1]," arguments");break;default:P+=a.slice(0,M-1).join(", "),P+=", and ".concat(a[M-1]," arguments");break}return"".concat(P," must be specified")},TypeError),Re.codes=D,Re}var Ae,Xe;function It(){if(Xe)return Ae;Xe=1;function l(c,u){var w=Object.keys(c);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(c);u&&(d=d.filter(function(I){return Object.getOwnPropertyDescriptor(c,I).enumerable})),w.push.apply(w,d)}return w}function E(c){for(var u=1;u"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function X(c){return Function.toString.call(c).indexOf("[native code]")!==-1}function J(c,u){return J=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(d,I){return d.__proto__=I,d},J(c,u)}function F(c){return F=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(w){return w.__proto__||Object.getPrototypeOf(w)},F(c)}function i(c){"@babel/helpers - typeof";return i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(u){return typeof u}:function(u){return u&&typeof Symbol=="function"&&u.constructor===Symbol&&u!==Symbol.prototype?"symbol":typeof u},i(c)}var a=Oe(),g=a.inspect,P=gt(),M=P.codes.ERR_INVALID_ARG_TYPE;function R(c,u,w){return(w===void 0||w>c.length)&&(w=c.length),c.substring(w-u.length,w)===u}function W(c,u){if(u=Math.floor(u),c.length==0||u==0)return"";var w=c.length*u;for(u=Math.floor(Math.log(u)/Math.log(2));u;)c+=c,u--;return c+=c.substring(0,w-c.length),c}var B="",te="",re="",C="",Q={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"},he=10;function ye(c){var u=Object.keys(c),w=Object.create(Object.getPrototypeOf(c));return u.forEach(function(d){w[d]=c[d]}),Object.defineProperty(w,"message",{value:c.message}),w}function ie(c){return g(c,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function ge(c,u,w){var d="",I="",n=0,t="",o=!1,p=ie(c),f=p.split(` `),h=ie(u).split(` `),O=0,G="";if(w==="strictEqual"&&i(c)==="object"&&i(u)==="object"&&c!==null&&u!==null&&(w="strictEqualObject"),f.length===1&&h.length===1&&f[0]!==h[0]){var z=f[0].length+h[0].length;if(z<=he){if((i(c)!=="object"||c===null)&&(i(u)!=="object"||u===null)&&(c!==0||u!==0))return"".concat(Q[w],` diff --git a/apps/cli/frontend/assets/index-DZp9tcRP.js b/apps/cli/frontend/assets/index-KZe-D0Hq.js similarity index 90% rename from apps/cli/frontend/assets/index-DZp9tcRP.js rename to apps/cli/frontend/assets/index-KZe-D0Hq.js index f2010d8f..aaec5e24 100644 --- a/apps/cli/frontend/assets/index-DZp9tcRP.js +++ b/apps/cli/frontend/assets/index-KZe-D0Hq.js @@ -1,5 +1,5 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/page-B736EYM0.js","assets/SimpleGridForm-qoE5ChAY.js","assets/index-D4YToBI7.js","assets/browser-CIxgVNQv.js","assets/__vite-browser-external-v7f2oYTb.js","assets/index-Ci84Plby.js","assets/index-DvUwMvi4.js","assets/index-CMq2dFJx.js","assets/page-ClaGuThC.js"])))=>i.map(i=>d[i]); -function o7(c,e){for(var t=0;ts[i]})}}}return Object.freeze(Object.defineProperty(c,Symbol.toStringTag,{value:"Module"}))}(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))s(i);new MutationObserver(i=>{for(const n of i)if(n.type==="childList")for(const r of n.addedNodes)r.tagName==="LINK"&&r.rel==="modulepreload"&&s(r)}).observe(document,{childList:!0,subtree:!0});function t(i){const n={};return i.integrity&&(n.integrity=i.integrity),i.referrerPolicy&&(n.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?n.credentials="include":i.crossOrigin==="anonymous"?n.credentials="omit":n.credentials="same-origin",n}function s(i){if(i.ep)return;i.ep=!0;const n=t(i);fetch(i.href,n)}})();var mf=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function _S(c){return c&&c.__esModule&&Object.prototype.hasOwnProperty.call(c,"default")?c.default:c}function xRe(c){if(Object.prototype.hasOwnProperty.call(c,"__esModule"))return c;var e=c.default;if(typeof e=="function"){var t=function s(){return this instanceof s?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};t.prototype=e.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(c).forEach(function(s){var i=Object.getOwnPropertyDescriptor(c,s);Object.defineProperty(t,s,i.get?i:{enumerable:!0,get:function(){return c[s]}})}),t}var AI={exports:{}},Cb={},LI={exports:{}},Hs={};/** +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/page-07WhylP9.js","assets/SimpleGridForm-BanH33n9.js","assets/index-DXOVYs9q.js","assets/browser-BEwQJkL9.js","assets/__vite-browser-external-v7f2oYTb.js","assets/index-pGYdP0Ky.js","assets/index-DtxLpIzc.js","assets/index-93tFhUeY.js","assets/page-B1lkRa7A.js"])))=>i.map(i=>d[i]); +function o7(c,e){for(var t=0;ts[i]})}}}return Object.freeze(Object.defineProperty(c,Symbol.toStringTag,{value:"Module"}))}(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))s(i);new MutationObserver(i=>{for(const n of i)if(n.type==="childList")for(const r of n.addedNodes)r.tagName==="LINK"&&r.rel==="modulepreload"&&s(r)}).observe(document,{childList:!0,subtree:!0});function t(i){const n={};return i.integrity&&(n.integrity=i.integrity),i.referrerPolicy&&(n.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?n.credentials="include":i.crossOrigin==="anonymous"?n.credentials="omit":n.credentials="same-origin",n}function s(i){if(i.ep)return;i.ep=!0;const n=t(i);fetch(i.href,n)}})();var mf=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function _S(c){return c&&c.__esModule&&Object.prototype.hasOwnProperty.call(c,"default")?c.default:c}function PRe(c){if(Object.prototype.hasOwnProperty.call(c,"__esModule"))return c;var e=c.default;if(typeof e=="function"){var t=function s(){return this instanceof s?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};t.prototype=e.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(c).forEach(function(s){var i=Object.getOwnPropertyDescriptor(c,s);Object.defineProperty(t,s,i.get?i:{enumerable:!0,get:function(){return c[s]}})}),t}var AI={exports:{}},Cb={},LI={exports:{}},Hs={};/** * @license React * react.production.min.js * @@ -15,7 +15,7 @@ function o7(c,e){for(var t=0;tve||H[he]!==$[ve]){var Ie=` -`+H[he].replace(" at new "," at ");return w.displayName&&Ie.includes("")&&(Ie=Ie.replace("",w.displayName)),Ie}while(1<=he&&0<=ve);break}}}finally{oe=!1,Error.prepareStackTrace=M}return(w=w?w.displayName||w.name:"")?Z(w):""}function le(w){switch(w.tag){case 5:return Z(w.type);case 16:return Z("Lazy");case 13:return Z("Suspense");case 19:return Z("SuspenseList");case 0:case 2:case 15:return w=ce(w.type,!1),w;case 11:return w=ce(w.type.render,!1),w;case 1:return w=ce(w.type,!0),w;default:return""}}function ke(w){if(w==null)return null;if(typeof w=="function")return w.displayName||w.name||null;if(typeof w=="string")return w;switch(w){case B:return"Fragment";case A:return"Portal";case E:return"Profiler";case L:return"StrictMode";case W:return"Suspense";case te:return"SuspenseList"}if(typeof w=="object")switch(w.$$typeof){case F:return(w.displayName||"Context")+".Consumer";case N:return(w._context.displayName||"Context")+".Provider";case G:var S=w.render;return w=w.displayName,w||(w=S.displayName||S.name||"",w=w!==""?"ForwardRef("+w+")":"ForwardRef"),w;case X:return S=w.displayName||null,S!==null?S:ke(w.type)||"Memo";case Y:S=w._payload,w=w._init;try{return ke(w(S))}catch{}}return null}function be(w){var S=w.type;switch(w.tag){case 24:return"Cache";case 9:return(S.displayName||"Context")+".Consumer";case 10:return(S._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return w=S.render,w=w.displayName||w.name||"",S.displayName||(w!==""?"ForwardRef("+w+")":"ForwardRef");case 7:return"Fragment";case 5:return S;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return ke(S);case 8:return S===L?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof S=="function")return S.displayName||S.name||null;if(typeof S=="string")return S}return null}function pe(w){switch(typeof w){case"boolean":case"number":case"string":case"undefined":return w;case"object":return w;default:return""}}function Te(w){var S=w.type;return(w=w.nodeName)&&w.toLowerCase()==="input"&&(S==="checkbox"||S==="radio")}function xe(w){var S=Te(w)?"checked":"value",M=Object.getOwnPropertyDescriptor(w.constructor.prototype,S),D=""+w[S];if(!w.hasOwnProperty(S)&&typeof M<"u"&&typeof M.get=="function"&&typeof M.set=="function"){var H=M.get,$=M.set;return Object.defineProperty(w,S,{configurable:!0,get:function(){return H.call(this)},set:function(he){D=""+he,$.call(this,he)}}),Object.defineProperty(w,S,{enumerable:M.enumerable}),{getValue:function(){return D},setValue:function(he){D=""+he},stopTracking:function(){w._valueTracker=null,delete w[S]}}}}function Pe(w){w._valueTracker||(w._valueTracker=xe(w))}function Ne(w){if(!w)return!1;var S=w._valueTracker;if(!S)return!0;var M=S.getValue(),D="";return w&&(D=Te(w)?w.checked?"true":"false":w.value),w=D,w!==M?(S.setValue(w),!0):!1}function tt(w){if(w=w||(typeof document<"u"?document:void 0),typeof w>"u")return null;try{return w.activeElement||w.body}catch{return w.body}}function at(w,S){var M=S.checked;return ne({},S,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:M??w._wrapperState.initialChecked})}function $e(w,S){var M=S.defaultValue==null?"":S.defaultValue,D=S.checked!=null?S.checked:S.defaultChecked;M=pe(S.value!=null?S.value:M),w._wrapperState={initialChecked:D,initialValue:M,controlled:S.type==="checkbox"||S.type==="radio"?S.checked!=null:S.value!=null}}function Ue(w,S){S=S.checked,S!=null&&k(w,"checked",S,!1)}function De(w,S){Ue(w,S);var M=pe(S.value),D=S.type;if(M!=null)D==="number"?(M===0&&w.value===""||w.value!=M)&&(w.value=""+M):w.value!==""+M&&(w.value=""+M);else if(D==="submit"||D==="reset"){w.removeAttribute("value");return}S.hasOwnProperty("value")?gt(w,S.type,M):S.hasOwnProperty("defaultValue")&>(w,S.type,pe(S.defaultValue)),S.checked==null&&S.defaultChecked!=null&&(w.defaultChecked=!!S.defaultChecked)}function ze(w,S,M){if(S.hasOwnProperty("value")||S.hasOwnProperty("defaultValue")){var D=S.type;if(!(D!=="submit"&&D!=="reset"||S.value!==void 0&&S.value!==null))return;S=""+w._wrapperState.initialValue,M||S===w.value||(w.value=S),w.defaultValue=S}M=w.name,M!==""&&(w.name=""),w.defaultChecked=!!w._wrapperState.initialChecked,M!==""&&(w.name=M)}function gt(w,S,M){(S!=="number"||tt(w.ownerDocument)!==w)&&(M==null?w.defaultValue=""+w._wrapperState.initialValue:w.defaultValue!==""+M&&(w.defaultValue=""+M))}var yt=Array.isArray;function Xe(w,S,M,D){if(w=w.options,S){S={};for(var H=0;H"+S.valueOf().toString()+"",S=xt.firstChild;w.firstChild;)w.removeChild(w.firstChild);for(;S.firstChild;)w.appendChild(S.firstChild)}});function ue(w,S){if(S){var M=w.firstChild;if(M&&M===w.lastChild&&M.nodeType===3){M.nodeValue=S;return}}w.textContent=S}var z={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},j=["Webkit","ms","Moz","O"];Object.keys(z).forEach(function(w){j.forEach(function(S){S=S+w.charAt(0).toUpperCase()+w.substring(1),z[S]=z[w]})});function fe(w,S,M){return S==null||typeof S=="boolean"||S===""?"":M||typeof S!="number"||S===0||z.hasOwnProperty(w)&&z[w]?(""+S).trim():S+"px"}function Se(w,S){w=w.style;for(var M in S)if(S.hasOwnProperty(M)){var D=M.indexOf("--")===0,H=fe(M,S[M],D);M==="float"&&(M="cssFloat"),D?w.setProperty(M,H):w[M]=H}}var Me=ne({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Ke(w,S){if(S){if(Me[w]&&(S.children!=null||S.dangerouslySetInnerHTML!=null))throw Error(t(137,w));if(S.dangerouslySetInnerHTML!=null){if(S.children!=null)throw Error(t(60));if(typeof S.dangerouslySetInnerHTML!="object"||!("__html"in S.dangerouslySetInnerHTML))throw Error(t(61))}if(S.style!=null&&typeof S.style!="object")throw Error(t(62))}}function Lt(w,S){if(w.indexOf("-")===-1)return typeof S.is=="string";switch(w){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var ps=null;function os(w){return w=w.target||w.srcElement||window,w.correspondingUseElement&&(w=w.correspondingUseElement),w.nodeType===3?w.parentNode:w}var Zt=null,_t=null,qs=null;function Ls(w){if(w=dr(w)){if(typeof Zt!="function")throw Error(t(280));var S=w.stateNode;S&&(S=Ig(S),Zt(w.stateNode,w.type,S))}}function Tr(w){_t?qs?qs.push(w):qs=[w]:_t=w}function Vn(){if(_t){var w=_t,S=qs;if(qs=_t=null,Ls(w),S)for(w=0;w>>=0,w===0?32:31-(Ad(w)/Ur|0)|0}var Ld=64,Vu=4194304;function Bd(w){switch(w&-w){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return w&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return w&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return w}}function Ho(w,S){var M=w.pendingLanes;if(M===0)return 0;var D=0,H=w.suspendedLanes,$=w.pingedLanes,he=M&268435455;if(he!==0){var ve=he&~H;ve!==0?D=Bd(ve):($&=he,$!==0&&(D=Bd($)))}else he=M&~H,he!==0?D=Bd(he):$!==0&&(D=Bd($));if(D===0)return 0;if(S!==0&&S!==D&&(S&H)===0&&(H=D&-D,$=S&-S,H>=$||H===16&&($&4194240)!==0))return S;if((D&4)!==0&&(D|=M&16),S=w.entangledLanes,S!==0)for(w=w.entanglements,S&=D;0M;M++)S.push(w);return S}function _c(w,S,M){w.pendingLanes|=S,S!==536870912&&(w.suspendedLanes=0,w.pingedLanes=0),w=w.eventTimes,S=31-Wi(S),w[S]=M}function ip(w,S){var M=w.pendingLanes&~S;w.pendingLanes=S,w.suspendedLanes=0,w.pingedLanes=0,w.expiredLanes&=S,w.mutableReadLanes&=S,w.entangledLanes&=S,S=w.entanglements;var D=w.eventTimes;for(w=w.expirationTimes;0=Dd),Mv=" ",_v=!1;function Av(w,S){switch(w){case"keyup":return ca.indexOf(S.keyCode)!==-1;case"keydown":return S.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Lv(w){return w=w.detail,typeof w=="object"&&"data"in w?w.data:null}var ml=!1;function gl(w,S){switch(w){case"compositionend":return Lv(S);case"keypress":return S.which!==32?null:(_v=!0,Mv);case"textInput":return w=S.data,w===Mv&&_v?null:w;default:return null}}function jP(w,S){if(ml)return w==="compositionend"||!cp&&Av(w,S)?(w=hl(),da=Nc=Si=null,ml=!1,w):null;switch(w){case"paste":return null;case"keypress":if(!(S.ctrlKey||S.altKey||S.metaKey)||S.ctrlKey&&S.altKey){if(S.char&&1=S)return{node:M,offset:S-w};w=D}e:{for(;M;){if(M.nextSibling){M=M.nextSibling;break e}M=M.parentNode}M=void 0}M=Ss(M)}}function fn(w,S){return w&&S?w===S?!0:w&&w.nodeType===3?!1:S&&S.nodeType===3?fn(w,S.parentNode):"contains"in w?w.contains(S):w.compareDocumentPosition?!!(w.compareDocumentPosition(S)&16):!1:!1}function mi(){for(var w=window,S=tt();S instanceof w.HTMLIFrameElement;){try{var M=typeof S.contentWindow.location.href=="string"}catch{M=!1}if(M)w=S.contentWindow;else break;S=tt(w.document)}return S}function up(w){var S=w&&w.nodeName&&w.nodeName.toLowerCase();return S&&(S==="input"&&(w.type==="text"||w.type==="search"||w.type==="tel"||w.type==="url"||w.type==="password")||S==="textarea"||w.contentEditable==="true")}function YP(w){var S=mi(),M=w.focusedElem,D=w.selectionRange;if(S!==M&&M&&M.ownerDocument&&fn(M.ownerDocument.documentElement,M)){if(D!==null&&up(M)){if(S=D.start,w=D.end,w===void 0&&(w=S),"selectionStart"in M)M.selectionStart=S,M.selectionEnd=Math.min(w,M.value.length);else if(w=(S=M.ownerDocument||document)&&S.defaultView||window,w.getSelection){w=w.getSelection();var H=M.textContent.length,$=Math.min(D.start,H);D=D.end===void 0?$:Math.min(D.end,H),!w.extend&&$>D&&(H=D,D=$,$=H),H=ei(M,$);var he=ei(M,D);H&&he&&(w.rangeCount!==1||w.anchorNode!==H.node||w.anchorOffset!==H.offset||w.focusNode!==he.node||w.focusOffset!==he.offset)&&(S=S.createRange(),S.setStart(H.node,H.offset),w.removeAllRanges(),$>D?(w.addRange(S),w.extend(he.node,he.offset)):(S.setEnd(he.node,he.offset),w.addRange(S)))}}for(S=[],w=M;w=w.parentNode;)w.nodeType===1&&S.push({element:w,left:w.scrollLeft,top:w.scrollTop});for(typeof M.focus=="function"&&M.focus(),M=0;M=document.documentMode,qd=null,Cw=null,Wo=null,wl=!1;function hp(w,S,M){var D=M.window===M?M.document:M.nodeType===9?M:M.ownerDocument;wl||qd==null||qd!==tt(D)||(D=qd,"selectionStart"in D&&up(D)?D={start:D.selectionStart,end:D.selectionEnd}:(D=(D.ownerDocument&&D.ownerDocument.defaultView||window).getSelection(),D={anchorNode:D.anchorNode,anchorOffset:D.anchorOffset,focusNode:D.focusNode,focusOffset:D.focusOffset}),Wo&&Dt(Wo,D)||(Wo=D,D=Tg(Cw,"onSelect"),0Pl||(w.current=Bw[Pl],Bw[Pl]=null,Pl--)}function Mi(w,S){Pl++,Bw[Pl]=w.current,w.current=S}var Gc={},cr=jr(Gc),zr=jr(!1),Pr=Gc;function Il(w,S){var M=w.type.contextTypes;if(!M)return Gc;var D=w.stateNode;if(D&&D.__reactInternalMemoizedUnmaskedChildContext===S)return D.__reactInternalMemoizedMaskedChildContext;var H={},$;for($ in M)H[$]=S[$];return D&&(w=w.stateNode,w.__reactInternalMemoizedUnmaskedChildContext=S,w.__reactInternalMemoizedMaskedChildContext=H),H}function $r(w){return w=w.childContextTypes,w!=null}function Cg(){Ei(zr),Ei(cr)}function Gv(w,S,M){if(cr.current!==Gc)throw Error(t(168));Mi(cr,S),Mi(zr,M)}function Uv(w,S,M){var D=w.stateNode;if(S=S.childContextTypes,typeof D.getChildContext!="function")return M;D=D.getChildContext();for(var H in D)if(!(H in S))throw Error(t(108,be(w)||"Unknown",H));return ne({},M,D)}function _a(w){return w=(w=w.stateNode)&&w.__reactInternalMemoizedMergedChildContext||Gc,Pr=cr.current,Mi(cr,w),Mi(zr,zr.current),!0}function Wv(w,S,M){var D=w.stateNode;if(!D)throw Error(t(169));M?(w=Uv(w,S,Pr),D.__reactInternalMemoizedMergedChildContext=w,Ei(zr),Ei(cr),Mi(cr,w)):Ei(zr),Mi(zr,M)}var Hd=null,Mg=!1,Nw=!1;function jv(w){Hd===null?Hd=[w]:Hd.push(w)}function Zu(w){Mg=!0,jv(w)}function Uc(){if(!Nw&&Hd!==null){Nw=!0;var w=0,S=zs;try{var M=Hd;for(zs=1;w>=he,H-=he,$o=1<<32-Wi(S)+H|M<gs?(Wn=rs,rs=null):Wn=rs.sibling;var si=dt(Re,rs,Ve[gs],kt);if(si===null){rs===null&&(rs=Wn);break}w&&rs&&si.alternate===null&&S(Re,rs),Ae=$(si,Ae,gs),as===null?Qt=si:as.sibling=si,as=si,rs=Wn}if(gs===Ve.length)return M(Re,rs),Ri&&eh(Re,gs),Qt;if(rs===null){for(;gsgs?(Wn=rs,rs=null):Wn=rs.sibling;var tu=dt(Re,rs,si.value,kt);if(tu===null){rs===null&&(rs=Wn);break}w&&rs&&tu.alternate===null&&S(Re,rs),Ae=$(tu,Ae,gs),as===null?Qt=tu:as.sibling=tu,as=tu,rs=Wn}if(si.done)return M(Re,rs),Ri&&eh(Re,gs),Qt;if(rs===null){for(;!si.done;gs++,si=Ve.next())si=mt(Re,si.value,kt),si!==null&&(Ae=$(si,Ae,gs),as===null?Qt=si:as.sibling=si,as=si);return Ri&&eh(Re,gs),Qt}for(rs=D(Re,rs);!si.done;gs++,si=Ve.next())si=qt(rs,Re,gs,si.value,kt),si!==null&&(w&&si.alternate!==null&&rs.delete(si.key===null?gs:si.key),Ae=$(si,Ae,gs),as===null?Qt=si:as.sibling=si,as=si);return w&&rs.forEach(function(bI){return S(Re,bI)}),Ri&&eh(Re,gs),Qt}function rn(Re,Ae,Ve,kt){if(typeof Ve=="object"&&Ve!==null&&Ve.type===B&&Ve.key===null&&(Ve=Ve.props.children),typeof Ve=="object"&&Ve!==null){switch(Ve.$$typeof){case O:e:{for(var Qt=Ve.key,as=Ae;as!==null;){if(as.key===Qt){if(Qt=Ve.type,Qt===B){if(as.tag===7){M(Re,as.sibling),Ae=H(as,Ve.props.children),Ae.return=Re,Re=Ae;break e}}else if(as.elementType===Qt||typeof Qt=="object"&&Qt!==null&&Qt.$$typeof===Y&&Xv(Qt)===as.type){M(Re,as.sibling),Ae=H(as,Ve.props),Ae.ref=vp(Re,as,Ve),Ae.return=Re,Re=Ae;break e}M(Re,as);break}else S(Re,as);as=as.sibling}Ve.type===B?(Ae=fh(Ve.props.children,Re.mode,kt,Ve.key),Ae.return=Re,Re=Ae):(kt=fy(Ve.type,Ve.key,Ve.props,null,Re.mode,kt),kt.ref=vp(Re,Ae,Ve),kt.return=Re,Re=kt)}return he(Re);case A:e:{for(as=Ve.key;Ae!==null;){if(Ae.key===as)if(Ae.tag===4&&Ae.stateNode.containerInfo===Ve.containerInfo&&Ae.stateNode.implementation===Ve.implementation){M(Re,Ae.sibling),Ae=H(Ae,Ve.children||[]),Ae.return=Re,Re=Ae;break e}else{M(Re,Ae);break}else S(Re,Ae);Ae=Ae.sibling}Ae=Tb(Ve,Re.mode,kt),Ae.return=Re,Re=Ae}return he(Re);case Y:return as=Ve._init,rn(Re,Ae,as(Ve._payload),kt)}if(yt(Ve))return Ut(Re,Ae,Ve,kt);if(ie(Ve))return Kt(Re,Ae,Ve,kt);sh(Re,Ve)}return typeof Ve=="string"&&Ve!==""||typeof Ve=="number"?(Ve=""+Ve,Ae!==null&&Ae.tag===6?(M(Re,Ae.sibling),Ae=H(Ae,Ve),Ae.return=Re,Re=Ae):(M(Re,Ae),Ae=vb(Ve,Re.mode,kt),Ae.return=Re,Re=Ae),he(Re)):M(Re,Ae)}return rn}var Ji=Rw(!0),Bg=Rw(!1),Tp=jr(null),fa=null,Wc=null,Ml=null;function Ud(){Ml=Wc=fa=null}function Ng(w){var S=Tp.current;Ei(Tp),w._currentValue=S}function Xn(w,S,M){for(;w!==null;){var D=w.alternate;if((w.childLanes&S)!==S?(w.childLanes|=S,D!==null&&(D.childLanes|=S)):D!==null&&(D.childLanes&S)!==S&&(D.childLanes|=S),w===M)break;w=w.return}}function jc(w,S){fa=w,Ml=Wc=null,w=w.dependencies,w!==null&&w.firstContext!==null&&((w.lanes&S)!==0&&(Cr=!0),w.firstContext=null)}function Ba(w){var S=w._currentValue;if(Ml!==w)if(w={context:w,memoizedValue:S,next:null},Wc===null){if(fa===null)throw Error(t(308));Wc=w,fa.dependencies={lanes:0,firstContext:w}}else Wc=Wc.next=w;return S}var ih=null;function Dw(w){ih===null?ih=[w]:ih.push(w)}function Eg(w,S,M,D){var H=S.interleaved;return H===null?(M.next=M,Dw(S)):(M.next=H.next,H.next=M),S.interleaved=M,Wd(w,D)}function Wd(w,S){w.lanes|=S;var M=w.alternate;for(M!==null&&(M.lanes|=S),M=w,w=w.return;w!==null;)w.childLanes|=S,M=w.alternate,M!==null&&(M.childLanes|=S),M=w,w=w.return;return M.tag===3?M.stateNode:null}var Na=!1;function Rg(w){w.updateQueue={baseState:w.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Qv(w,S){w=w.updateQueue,S.updateQueue===w&&(S.updateQueue={baseState:w.baseState,firstBaseUpdate:w.firstBaseUpdate,lastBaseUpdate:w.lastBaseUpdate,shared:w.shared,effects:w.effects})}function jd(w,S){return{eventTime:w,lane:S,tag:0,payload:null,callback:null,next:null}}function Ea(w,S,M){var D=w.updateQueue;if(D===null)return null;if(D=D.shared,(Ks&2)!==0){var H=D.pending;return H===null?S.next=S:(S.next=H.next,H.next=S),D.pending=S,Wd(w,M)}return H=D.interleaved,H===null?(S.next=S,Dw(D)):(S.next=H.next,H.next=S),D.interleaved=S,Wd(w,M)}function Dg(w,S,M){if(S=S.updateQueue,S!==null&&(S=S.shared,(M&4194240)!==0)){var D=S.lanes;D&=w.pendingLanes,M|=D,S.lanes=M,Ac(w,M)}}function Yv(w,S){var M=w.updateQueue,D=w.alternate;if(D!==null&&(D=D.updateQueue,M===D)){var H=null,$=null;if(M=M.firstBaseUpdate,M!==null){do{var he={eventTime:M.eventTime,lane:M.lane,tag:M.tag,payload:M.payload,callback:M.callback,next:null};$===null?H=$=he:$=$.next=he,M=M.next}while(M!==null);$===null?H=$=S:$=$.next=S}else H=$=S;M={baseState:D.baseState,firstBaseUpdate:H,lastBaseUpdate:$,shared:D.shared,effects:D.effects},w.updateQueue=M;return}w=M.lastBaseUpdate,w===null?M.firstBaseUpdate=S:w.next=S,M.lastBaseUpdate=S}function _l(w,S,M,D){var H=w.updateQueue;Na=!1;var $=H.firstBaseUpdate,he=H.lastBaseUpdate,ve=H.shared.pending;if(ve!==null){H.shared.pending=null;var Ie=ve,We=Ie.next;Ie.next=null,he===null?$=We:he.next=We,he=Ie;var ct=w.alternate;ct!==null&&(ct=ct.updateQueue,ve=ct.lastBaseUpdate,ve!==he&&(ve===null?ct.firstBaseUpdate=We:ve.next=We,ct.lastBaseUpdate=Ie))}if($!==null){var mt=H.baseState;he=0,ct=We=Ie=null,ve=$;do{var dt=ve.lane,qt=ve.eventTime;if((D&dt)===dt){ct!==null&&(ct=ct.next={eventTime:qt,lane:0,tag:ve.tag,payload:ve.payload,callback:ve.callback,next:null});e:{var Ut=w,Kt=ve;switch(dt=S,qt=M,Kt.tag){case 1:if(Ut=Kt.payload,typeof Ut=="function"){mt=Ut.call(qt,mt,dt);break e}mt=Ut;break e;case 3:Ut.flags=Ut.flags&-65537|128;case 0:if(Ut=Kt.payload,dt=typeof Ut=="function"?Ut.call(qt,mt,dt):Ut,dt==null)break e;mt=ne({},mt,dt);break e;case 2:Na=!0}}ve.callback!==null&&ve.lane!==0&&(w.flags|=64,dt=H.effects,dt===null?H.effects=[ve]:dt.push(ve))}else qt={eventTime:qt,lane:dt,tag:ve.tag,payload:ve.payload,callback:ve.callback,next:null},ct===null?(We=ct=qt,Ie=mt):ct=ct.next=qt,he|=dt;if(ve=ve.next,ve===null){if(ve=H.shared.pending,ve===null)break;dt=ve,ve=dt.next,dt.next=null,H.lastBaseUpdate=dt,H.shared.pending=null}}while(!0);if(ct===null&&(Ie=mt),H.baseState=Ie,H.firstBaseUpdate=We,H.lastBaseUpdate=ct,S=H.shared.interleaved,S!==null){H=S;do he|=H.lane,H=H.next;while(H!==S)}else $===null&&(H.shared.lanes=0);Qc|=he,w.lanes=he,w.memoizedState=mt}}function qw(w,S,M){if(w=S.effects,S.effects=null,w!==null)for(S=0;SM?M:4,w(!0);var D=Gw.transition;Gw.transition={};try{w(!1),S()}finally{zs=M,Gw.transition=D}}function Qw(){return Ra().memoizedState}function JP(w,S,M){var D=Jc(w);if(M={lane:D,action:M,hasEagerState:!1,eagerState:null,next:null},Yw(w))Ir(S,M);else if(M=Eg(w,S,M,D),M!==null){var H=Ar();wo(M,w,D,H),fo(M,S,D)}}function i1(w,S,M){var D=Jc(w),H={lane:D,action:M,hasEagerState:!1,eagerState:null,next:null};if(Yw(w))Ir(S,H);else{var $=w.alternate;if(w.lanes===0&&($===null||$.lanes===0)&&($=S.lastRenderedReducer,$!==null))try{var he=S.lastRenderedState,ve=$(he,M);if(H.hasEagerState=!0,H.eagerState=ve,Ge(ve,he)){var Ie=S.interleaved;Ie===null?(H.next=H,Dw(S)):(H.next=Ie.next,Ie.next=H),S.interleaved=H;return}}catch{}finally{}M=Eg(w,S,H,D),M!==null&&(H=Ar(),wo(M,w,D,H),fo(M,S,D))}}function Yw(w){var S=w.alternate;return w===ji||S!==null&&S===ji}function Ir(w,S){Ip=Ll=!0;var M=w.pending;M===null?S.next=S:(S.next=M.next,M.next=S),w.pending=S}function fo(w,S,M){if((M&4194240)!==0){var D=S.lanes;D&=w.pendingLanes,M|=D,S.lanes=M,Ac(w,M)}}var jg={readContext:Ba,useCallback:lr,useContext:lr,useEffect:lr,useImperativeHandle:lr,useInsertionEffect:lr,useLayoutEffect:lr,useMemo:lr,useReducer:lr,useRef:lr,useState:lr,useDebugValue:lr,useDeferredValue:lr,useTransition:lr,useMutableSource:lr,useSyncExternalStore:lr,useId:lr,unstable_isNewReconciler:!1},eI={readContext:Ba,useCallback:function(w,S){return Jo().memoizedState=[w,S===void 0?null:S],w},useContext:Ba,useEffect:Wg,useImperativeHandle:function(w,S,M){return M=M!=null?M.concat([w]):null,Mp(4194308,4,Kw.bind(null,S,w),M)},useLayoutEffect:function(w,S){return Mp(4194308,4,w,S)},useInsertionEffect:function(w,S){return Mp(4,2,w,S)},useMemo:function(w,S){var M=Jo();return S=S===void 0?null:S,w=w(),M.memoizedState=[w,S],w},useReducer:function(w,S,M){var D=Jo();return S=M!==void 0?M(S):S,D.memoizedState=D.baseState=S,w={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:w,lastRenderedState:S},D.queue=w,w=w.dispatch=JP.bind(null,ji,w),[D.memoizedState,w]},useRef:function(w){var S=Jo();return w={current:w},S.memoizedState=w},useState:Cp,useDebugValue:_p,useDeferredValue:function(w){return Jo().memoizedState=w},useTransition:function(){var w=Cp(!1),S=w[0];return w=s1.bind(null,w[1]),Jo().memoizedState=w,[S,w]},useMutableSource:function(){},useSyncExternalStore:function(w,S,M){var D=ji,H=Jo();if(Ri){if(M===void 0)throw Error(t(407));M=M()}else{if(M=S(),Un===null)throw Error(t(349));($c&30)!==0||zw(D,S,M)}H.memoizedState=M;var $={value:M,getSnapshot:S};return H.queue=$,Wg($d.bind(null,D,$,w),[w]),D.flags|=2048,Nl(9,Xr.bind(null,D,$,M,S),void 0,null),M},useId:function(){var w=Jo(),S=Un.identifierPrefix;if(Ri){var M=Ko,D=$o;M=(D&~(1<<32-Wi(D)-1)).toString(32)+M,S=":"+S+"R"+M,M=rh++,0")&&(Ie=Ie.replace("",w.displayName)),Ie}while(1<=he&&0<=ve);break}}}finally{oe=!1,Error.prepareStackTrace=M}return(w=w?w.displayName||w.name:"")?Z(w):""}function le(w){switch(w.tag){case 5:return Z(w.type);case 16:return Z("Lazy");case 13:return Z("Suspense");case 19:return Z("SuspenseList");case 0:case 2:case 15:return w=ce(w.type,!1),w;case 11:return w=ce(w.type.render,!1),w;case 1:return w=ce(w.type,!0),w;default:return""}}function ke(w){if(w==null)return null;if(typeof w=="function")return w.displayName||w.name||null;if(typeof w=="string")return w;switch(w){case B:return"Fragment";case A:return"Portal";case E:return"Profiler";case L:return"StrictMode";case W:return"Suspense";case te:return"SuspenseList"}if(typeof w=="object")switch(w.$$typeof){case F:return(w.displayName||"Context")+".Consumer";case N:return(w._context.displayName||"Context")+".Provider";case G:var S=w.render;return w=w.displayName,w||(w=S.displayName||S.name||"",w=w!==""?"ForwardRef("+w+")":"ForwardRef"),w;case X:return S=w.displayName||null,S!==null?S:ke(w.type)||"Memo";case Y:S=w._payload,w=w._init;try{return ke(w(S))}catch{}}return null}function be(w){var S=w.type;switch(w.tag){case 24:return"Cache";case 9:return(S.displayName||"Context")+".Consumer";case 10:return(S._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return w=S.render,w=w.displayName||w.name||"",S.displayName||(w!==""?"ForwardRef("+w+")":"ForwardRef");case 7:return"Fragment";case 5:return S;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return ke(S);case 8:return S===L?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof S=="function")return S.displayName||S.name||null;if(typeof S=="string")return S}return null}function pe(w){switch(typeof w){case"boolean":case"number":case"string":case"undefined":return w;case"object":return w;default:return""}}function Te(w){var S=w.type;return(w=w.nodeName)&&w.toLowerCase()==="input"&&(S==="checkbox"||S==="radio")}function xe(w){var S=Te(w)?"checked":"value",M=Object.getOwnPropertyDescriptor(w.constructor.prototype,S),D=""+w[S];if(!w.hasOwnProperty(S)&&typeof M<"u"&&typeof M.get=="function"&&typeof M.set=="function"){var H=M.get,$=M.set;return Object.defineProperty(w,S,{configurable:!0,get:function(){return H.call(this)},set:function(he){D=""+he,$.call(this,he)}}),Object.defineProperty(w,S,{enumerable:M.enumerable}),{getValue:function(){return D},setValue:function(he){D=""+he},stopTracking:function(){w._valueTracker=null,delete w[S]}}}}function Pe(w){w._valueTracker||(w._valueTracker=xe(w))}function Ne(w){if(!w)return!1;var S=w._valueTracker;if(!S)return!0;var M=S.getValue(),D="";return w&&(D=Te(w)?w.checked?"true":"false":w.value),w=D,w!==M?(S.setValue(w),!0):!1}function tt(w){if(w=w||(typeof document<"u"?document:void 0),typeof w>"u")return null;try{return w.activeElement||w.body}catch{return w.body}}function at(w,S){var M=S.checked;return ne({},S,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:M??w._wrapperState.initialChecked})}function $e(w,S){var M=S.defaultValue==null?"":S.defaultValue,D=S.checked!=null?S.checked:S.defaultChecked;M=pe(S.value!=null?S.value:M),w._wrapperState={initialChecked:D,initialValue:M,controlled:S.type==="checkbox"||S.type==="radio"?S.checked!=null:S.value!=null}}function Ue(w,S){S=S.checked,S!=null&&k(w,"checked",S,!1)}function De(w,S){Ue(w,S);var M=pe(S.value),D=S.type;if(M!=null)D==="number"?(M===0&&w.value===""||w.value!=M)&&(w.value=""+M):w.value!==""+M&&(w.value=""+M);else if(D==="submit"||D==="reset"){w.removeAttribute("value");return}S.hasOwnProperty("value")?gt(w,S.type,M):S.hasOwnProperty("defaultValue")&>(w,S.type,pe(S.defaultValue)),S.checked==null&&S.defaultChecked!=null&&(w.defaultChecked=!!S.defaultChecked)}function ze(w,S,M){if(S.hasOwnProperty("value")||S.hasOwnProperty("defaultValue")){var D=S.type;if(!(D!=="submit"&&D!=="reset"||S.value!==void 0&&S.value!==null))return;S=""+w._wrapperState.initialValue,M||S===w.value||(w.value=S),w.defaultValue=S}M=w.name,M!==""&&(w.name=""),w.defaultChecked=!!w._wrapperState.initialChecked,M!==""&&(w.name=M)}function gt(w,S,M){(S!=="number"||tt(w.ownerDocument)!==w)&&(M==null?w.defaultValue=""+w._wrapperState.initialValue:w.defaultValue!==""+M&&(w.defaultValue=""+M))}var yt=Array.isArray;function Xe(w,S,M,D){if(w=w.options,S){S={};for(var H=0;H"+S.valueOf().toString()+"",S=xt.firstChild;w.firstChild;)w.removeChild(w.firstChild);for(;S.firstChild;)w.appendChild(S.firstChild)}});function ue(w,S){if(S){var M=w.firstChild;if(M&&M===w.lastChild&&M.nodeType===3){M.nodeValue=S;return}}w.textContent=S}var z={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},j=["Webkit","ms","Moz","O"];Object.keys(z).forEach(function(w){j.forEach(function(S){S=S+w.charAt(0).toUpperCase()+w.substring(1),z[S]=z[w]})});function fe(w,S,M){return S==null||typeof S=="boolean"||S===""?"":M||typeof S!="number"||S===0||z.hasOwnProperty(w)&&z[w]?(""+S).trim():S+"px"}function Se(w,S){w=w.style;for(var M in S)if(S.hasOwnProperty(M)){var D=M.indexOf("--")===0,H=fe(M,S[M],D);M==="float"&&(M="cssFloat"),D?w.setProperty(M,H):w[M]=H}}var Me=ne({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Ke(w,S){if(S){if(Me[w]&&(S.children!=null||S.dangerouslySetInnerHTML!=null))throw Error(t(137,w));if(S.dangerouslySetInnerHTML!=null){if(S.children!=null)throw Error(t(60));if(typeof S.dangerouslySetInnerHTML!="object"||!("__html"in S.dangerouslySetInnerHTML))throw Error(t(61))}if(S.style!=null&&typeof S.style!="object")throw Error(t(62))}}function Lt(w,S){if(w.indexOf("-")===-1)return typeof S.is=="string";switch(w){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var ps=null;function os(w){return w=w.target||w.srcElement||window,w.correspondingUseElement&&(w=w.correspondingUseElement),w.nodeType===3?w.parentNode:w}var Zt=null,_t=null,qs=null;function Ls(w){if(w=dr(w)){if(typeof Zt!="function")throw Error(t(280));var S=w.stateNode;S&&(S=Ig(S),Zt(w.stateNode,w.type,S))}}function Tr(w){_t?qs?qs.push(w):qs=[w]:_t=w}function Vn(){if(_t){var w=_t,S=qs;if(qs=_t=null,Ls(w),S)for(w=0;w>>=0,w===0?32:31-(Ad(w)/Ur|0)|0}var Ld=64,Vu=4194304;function Bd(w){switch(w&-w){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return w&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return w&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return w}}function Go(w,S){var M=w.pendingLanes;if(M===0)return 0;var D=0,H=w.suspendedLanes,$=w.pingedLanes,he=M&268435455;if(he!==0){var ve=he&~H;ve!==0?D=Bd(ve):($&=he,$!==0&&(D=Bd($)))}else he=M&~H,he!==0?D=Bd(he):$!==0&&(D=Bd($));if(D===0)return 0;if(S!==0&&S!==D&&(S&H)===0&&(H=D&-D,$=S&-S,H>=$||H===16&&($&4194240)!==0))return S;if((D&4)!==0&&(D|=M&16),S=w.entangledLanes,S!==0)for(w=w.entanglements,S&=D;0M;M++)S.push(w);return S}function _c(w,S,M){w.pendingLanes|=S,S!==536870912&&(w.suspendedLanes=0,w.pingedLanes=0),w=w.eventTimes,S=31-Wi(S),w[S]=M}function ip(w,S){var M=w.pendingLanes&~S;w.pendingLanes=S,w.suspendedLanes=0,w.pingedLanes=0,w.expiredLanes&=S,w.mutableReadLanes&=S,w.entangledLanes&=S,S=w.entanglements;var D=w.eventTimes;for(w=w.expirationTimes;0=Dd),Mv=" ",_v=!1;function Av(w,S){switch(w){case"keyup":return ca.indexOf(S.keyCode)!==-1;case"keydown":return S.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Lv(w){return w=w.detail,typeof w=="object"&&"data"in w?w.data:null}var ml=!1;function gl(w,S){switch(w){case"compositionend":return Lv(S);case"keypress":return S.which!==32?null:(_v=!0,Mv);case"textInput":return w=S.data,w===Mv&&_v?null:w;default:return null}}function jP(w,S){if(ml)return w==="compositionend"||!cp&&Av(w,S)?(w=hl(),da=Nc=Si=null,ml=!1,w):null;switch(w){case"paste":return null;case"keypress":if(!(S.ctrlKey||S.altKey||S.metaKey)||S.ctrlKey&&S.altKey){if(S.char&&1=S)return{node:M,offset:S-w};w=D}e:{for(;M;){if(M.nextSibling){M=M.nextSibling;break e}M=M.parentNode}M=void 0}M=Ss(M)}}function fn(w,S){return w&&S?w===S?!0:w&&w.nodeType===3?!1:S&&S.nodeType===3?fn(w,S.parentNode):"contains"in w?w.contains(S):w.compareDocumentPosition?!!(w.compareDocumentPosition(S)&16):!1:!1}function mi(){for(var w=window,S=tt();S instanceof w.HTMLIFrameElement;){try{var M=typeof S.contentWindow.location.href=="string"}catch{M=!1}if(M)w=S.contentWindow;else break;S=tt(w.document)}return S}function up(w){var S=w&&w.nodeName&&w.nodeName.toLowerCase();return S&&(S==="input"&&(w.type==="text"||w.type==="search"||w.type==="tel"||w.type==="url"||w.type==="password")||S==="textarea"||w.contentEditable==="true")}function YP(w){var S=mi(),M=w.focusedElem,D=w.selectionRange;if(S!==M&&M&&M.ownerDocument&&fn(M.ownerDocument.documentElement,M)){if(D!==null&&up(M)){if(S=D.start,w=D.end,w===void 0&&(w=S),"selectionStart"in M)M.selectionStart=S,M.selectionEnd=Math.min(w,M.value.length);else if(w=(S=M.ownerDocument||document)&&S.defaultView||window,w.getSelection){w=w.getSelection();var H=M.textContent.length,$=Math.min(D.start,H);D=D.end===void 0?$:Math.min(D.end,H),!w.extend&&$>D&&(H=D,D=$,$=H),H=ei(M,$);var he=ei(M,D);H&&he&&(w.rangeCount!==1||w.anchorNode!==H.node||w.anchorOffset!==H.offset||w.focusNode!==he.node||w.focusOffset!==he.offset)&&(S=S.createRange(),S.setStart(H.node,H.offset),w.removeAllRanges(),$>D?(w.addRange(S),w.extend(he.node,he.offset)):(S.setEnd(he.node,he.offset),w.addRange(S)))}}for(S=[],w=M;w=w.parentNode;)w.nodeType===1&&S.push({element:w,left:w.scrollLeft,top:w.scrollTop});for(typeof M.focus=="function"&&M.focus(),M=0;M=document.documentMode,qd=null,Cw=null,jo=null,wl=!1;function hp(w,S,M){var D=M.window===M?M.document:M.nodeType===9?M:M.ownerDocument;wl||qd==null||qd!==tt(D)||(D=qd,"selectionStart"in D&&up(D)?D={start:D.selectionStart,end:D.selectionEnd}:(D=(D.ownerDocument&&D.ownerDocument.defaultView||window).getSelection(),D={anchorNode:D.anchorNode,anchorOffset:D.anchorOffset,focusNode:D.focusNode,focusOffset:D.focusOffset}),jo&&Dt(jo,D)||(jo=D,D=Tg(Cw,"onSelect"),0Pl||(w.current=Bw[Pl],Bw[Pl]=null,Pl--)}function Mi(w,S){Pl++,Bw[Pl]=w.current,w.current=S}var Gc={},cr=jr(Gc),zr=jr(!1),Pr=Gc;function Il(w,S){var M=w.type.contextTypes;if(!M)return Gc;var D=w.stateNode;if(D&&D.__reactInternalMemoizedUnmaskedChildContext===S)return D.__reactInternalMemoizedMaskedChildContext;var H={},$;for($ in M)H[$]=S[$];return D&&(w=w.stateNode,w.__reactInternalMemoizedUnmaskedChildContext=S,w.__reactInternalMemoizedMaskedChildContext=H),H}function $r(w){return w=w.childContextTypes,w!=null}function Cg(){Ei(zr),Ei(cr)}function Gv(w,S,M){if(cr.current!==Gc)throw Error(t(168));Mi(cr,S),Mi(zr,M)}function Uv(w,S,M){var D=w.stateNode;if(S=S.childContextTypes,typeof D.getChildContext!="function")return M;D=D.getChildContext();for(var H in D)if(!(H in S))throw Error(t(108,be(w)||"Unknown",H));return ne({},M,D)}function _a(w){return w=(w=w.stateNode)&&w.__reactInternalMemoizedMergedChildContext||Gc,Pr=cr.current,Mi(cr,w),Mi(zr,zr.current),!0}function Wv(w,S,M){var D=w.stateNode;if(!D)throw Error(t(169));M?(w=Uv(w,S,Pr),D.__reactInternalMemoizedMergedChildContext=w,Ei(zr),Ei(cr),Mi(cr,w)):Ei(zr),Mi(zr,M)}var Hd=null,Mg=!1,Nw=!1;function jv(w){Hd===null?Hd=[w]:Hd.push(w)}function Zu(w){Mg=!0,jv(w)}function Uc(){if(!Nw&&Hd!==null){Nw=!0;var w=0,S=zs;try{var M=Hd;for(zs=1;w>=he,H-=he,Ko=1<<32-Wi(S)+H|M<gs?(Wn=rs,rs=null):Wn=rs.sibling;var si=dt(Re,rs,Ve[gs],kt);if(si===null){rs===null&&(rs=Wn);break}w&&rs&&si.alternate===null&&S(Re,rs),Ae=$(si,Ae,gs),as===null?Qt=si:as.sibling=si,as=si,rs=Wn}if(gs===Ve.length)return M(Re,rs),Ri&&eh(Re,gs),Qt;if(rs===null){for(;gsgs?(Wn=rs,rs=null):Wn=rs.sibling;var tu=dt(Re,rs,si.value,kt);if(tu===null){rs===null&&(rs=Wn);break}w&&rs&&tu.alternate===null&&S(Re,rs),Ae=$(tu,Ae,gs),as===null?Qt=tu:as.sibling=tu,as=tu,rs=Wn}if(si.done)return M(Re,rs),Ri&&eh(Re,gs),Qt;if(rs===null){for(;!si.done;gs++,si=Ve.next())si=mt(Re,si.value,kt),si!==null&&(Ae=$(si,Ae,gs),as===null?Qt=si:as.sibling=si,as=si);return Ri&&eh(Re,gs),Qt}for(rs=D(Re,rs);!si.done;gs++,si=Ve.next())si=qt(rs,Re,gs,si.value,kt),si!==null&&(w&&si.alternate!==null&&rs.delete(si.key===null?gs:si.key),Ae=$(si,Ae,gs),as===null?Qt=si:as.sibling=si,as=si);return w&&rs.forEach(function(bI){return S(Re,bI)}),Ri&&eh(Re,gs),Qt}function rn(Re,Ae,Ve,kt){if(typeof Ve=="object"&&Ve!==null&&Ve.type===B&&Ve.key===null&&(Ve=Ve.props.children),typeof Ve=="object"&&Ve!==null){switch(Ve.$$typeof){case O:e:{for(var Qt=Ve.key,as=Ae;as!==null;){if(as.key===Qt){if(Qt=Ve.type,Qt===B){if(as.tag===7){M(Re,as.sibling),Ae=H(as,Ve.props.children),Ae.return=Re,Re=Ae;break e}}else if(as.elementType===Qt||typeof Qt=="object"&&Qt!==null&&Qt.$$typeof===Y&&Xv(Qt)===as.type){M(Re,as.sibling),Ae=H(as,Ve.props),Ae.ref=vp(Re,as,Ve),Ae.return=Re,Re=Ae;break e}M(Re,as);break}else S(Re,as);as=as.sibling}Ve.type===B?(Ae=fh(Ve.props.children,Re.mode,kt,Ve.key),Ae.return=Re,Re=Ae):(kt=fy(Ve.type,Ve.key,Ve.props,null,Re.mode,kt),kt.ref=vp(Re,Ae,Ve),kt.return=Re,Re=kt)}return he(Re);case A:e:{for(as=Ve.key;Ae!==null;){if(Ae.key===as)if(Ae.tag===4&&Ae.stateNode.containerInfo===Ve.containerInfo&&Ae.stateNode.implementation===Ve.implementation){M(Re,Ae.sibling),Ae=H(Ae,Ve.children||[]),Ae.return=Re,Re=Ae;break e}else{M(Re,Ae);break}else S(Re,Ae);Ae=Ae.sibling}Ae=Tb(Ve,Re.mode,kt),Ae.return=Re,Re=Ae}return he(Re);case Y:return as=Ve._init,rn(Re,Ae,as(Ve._payload),kt)}if(yt(Ve))return Ut(Re,Ae,Ve,kt);if(ie(Ve))return Kt(Re,Ae,Ve,kt);sh(Re,Ve)}return typeof Ve=="string"&&Ve!==""||typeof Ve=="number"?(Ve=""+Ve,Ae!==null&&Ae.tag===6?(M(Re,Ae.sibling),Ae=H(Ae,Ve),Ae.return=Re,Re=Ae):(M(Re,Ae),Ae=vb(Ve,Re.mode,kt),Ae.return=Re,Re=Ae),he(Re)):M(Re,Ae)}return rn}var Ji=Rw(!0),Bg=Rw(!1),Tp=jr(null),fa=null,Wc=null,Ml=null;function Ud(){Ml=Wc=fa=null}function Ng(w){var S=Tp.current;Ei(Tp),w._currentValue=S}function Xn(w,S,M){for(;w!==null;){var D=w.alternate;if((w.childLanes&S)!==S?(w.childLanes|=S,D!==null&&(D.childLanes|=S)):D!==null&&(D.childLanes&S)!==S&&(D.childLanes|=S),w===M)break;w=w.return}}function jc(w,S){fa=w,Ml=Wc=null,w=w.dependencies,w!==null&&w.firstContext!==null&&((w.lanes&S)!==0&&(Cr=!0),w.firstContext=null)}function Ba(w){var S=w._currentValue;if(Ml!==w)if(w={context:w,memoizedValue:S,next:null},Wc===null){if(fa===null)throw Error(t(308));Wc=w,fa.dependencies={lanes:0,firstContext:w}}else Wc=Wc.next=w;return S}var ih=null;function Dw(w){ih===null?ih=[w]:ih.push(w)}function Eg(w,S,M,D){var H=S.interleaved;return H===null?(M.next=M,Dw(S)):(M.next=H.next,H.next=M),S.interleaved=M,Wd(w,D)}function Wd(w,S){w.lanes|=S;var M=w.alternate;for(M!==null&&(M.lanes|=S),M=w,w=w.return;w!==null;)w.childLanes|=S,M=w.alternate,M!==null&&(M.childLanes|=S),M=w,w=w.return;return M.tag===3?M.stateNode:null}var Na=!1;function Rg(w){w.updateQueue={baseState:w.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Qv(w,S){w=w.updateQueue,S.updateQueue===w&&(S.updateQueue={baseState:w.baseState,firstBaseUpdate:w.firstBaseUpdate,lastBaseUpdate:w.lastBaseUpdate,shared:w.shared,effects:w.effects})}function jd(w,S){return{eventTime:w,lane:S,tag:0,payload:null,callback:null,next:null}}function Ea(w,S,M){var D=w.updateQueue;if(D===null)return null;if(D=D.shared,(Ks&2)!==0){var H=D.pending;return H===null?S.next=S:(S.next=H.next,H.next=S),D.pending=S,Wd(w,M)}return H=D.interleaved,H===null?(S.next=S,Dw(D)):(S.next=H.next,H.next=S),D.interleaved=S,Wd(w,M)}function Dg(w,S,M){if(S=S.updateQueue,S!==null&&(S=S.shared,(M&4194240)!==0)){var D=S.lanes;D&=w.pendingLanes,M|=D,S.lanes=M,Ac(w,M)}}function Yv(w,S){var M=w.updateQueue,D=w.alternate;if(D!==null&&(D=D.updateQueue,M===D)){var H=null,$=null;if(M=M.firstBaseUpdate,M!==null){do{var he={eventTime:M.eventTime,lane:M.lane,tag:M.tag,payload:M.payload,callback:M.callback,next:null};$===null?H=$=he:$=$.next=he,M=M.next}while(M!==null);$===null?H=$=S:$=$.next=S}else H=$=S;M={baseState:D.baseState,firstBaseUpdate:H,lastBaseUpdate:$,shared:D.shared,effects:D.effects},w.updateQueue=M;return}w=M.lastBaseUpdate,w===null?M.firstBaseUpdate=S:w.next=S,M.lastBaseUpdate=S}function _l(w,S,M,D){var H=w.updateQueue;Na=!1;var $=H.firstBaseUpdate,he=H.lastBaseUpdate,ve=H.shared.pending;if(ve!==null){H.shared.pending=null;var Ie=ve,We=Ie.next;Ie.next=null,he===null?$=We:he.next=We,he=Ie;var ct=w.alternate;ct!==null&&(ct=ct.updateQueue,ve=ct.lastBaseUpdate,ve!==he&&(ve===null?ct.firstBaseUpdate=We:ve.next=We,ct.lastBaseUpdate=Ie))}if($!==null){var mt=H.baseState;he=0,ct=We=Ie=null,ve=$;do{var dt=ve.lane,qt=ve.eventTime;if((D&dt)===dt){ct!==null&&(ct=ct.next={eventTime:qt,lane:0,tag:ve.tag,payload:ve.payload,callback:ve.callback,next:null});e:{var Ut=w,Kt=ve;switch(dt=S,qt=M,Kt.tag){case 1:if(Ut=Kt.payload,typeof Ut=="function"){mt=Ut.call(qt,mt,dt);break e}mt=Ut;break e;case 3:Ut.flags=Ut.flags&-65537|128;case 0:if(Ut=Kt.payload,dt=typeof Ut=="function"?Ut.call(qt,mt,dt):Ut,dt==null)break e;mt=ne({},mt,dt);break e;case 2:Na=!0}}ve.callback!==null&&ve.lane!==0&&(w.flags|=64,dt=H.effects,dt===null?H.effects=[ve]:dt.push(ve))}else qt={eventTime:qt,lane:dt,tag:ve.tag,payload:ve.payload,callback:ve.callback,next:null},ct===null?(We=ct=qt,Ie=mt):ct=ct.next=qt,he|=dt;if(ve=ve.next,ve===null){if(ve=H.shared.pending,ve===null)break;dt=ve,ve=dt.next,dt.next=null,H.lastBaseUpdate=dt,H.shared.pending=null}}while(!0);if(ct===null&&(Ie=mt),H.baseState=Ie,H.firstBaseUpdate=We,H.lastBaseUpdate=ct,S=H.shared.interleaved,S!==null){H=S;do he|=H.lane,H=H.next;while(H!==S)}else $===null&&(H.shared.lanes=0);Qc|=he,w.lanes=he,w.memoizedState=mt}}function qw(w,S,M){if(w=S.effects,S.effects=null,w!==null)for(S=0;SM?M:4,w(!0);var D=Gw.transition;Gw.transition={};try{w(!1),S()}finally{zs=M,Gw.transition=D}}function Qw(){return Ra().memoizedState}function JP(w,S,M){var D=Jc(w);if(M={lane:D,action:M,hasEagerState:!1,eagerState:null,next:null},Yw(w))Ir(S,M);else if(M=Eg(w,S,M,D),M!==null){var H=Ar();bo(M,w,D,H),po(M,S,D)}}function i1(w,S,M){var D=Jc(w),H={lane:D,action:M,hasEagerState:!1,eagerState:null,next:null};if(Yw(w))Ir(S,H);else{var $=w.alternate;if(w.lanes===0&&($===null||$.lanes===0)&&($=S.lastRenderedReducer,$!==null))try{var he=S.lastRenderedState,ve=$(he,M);if(H.hasEagerState=!0,H.eagerState=ve,Ge(ve,he)){var Ie=S.interleaved;Ie===null?(H.next=H,Dw(S)):(H.next=Ie.next,Ie.next=H),S.interleaved=H;return}}catch{}finally{}M=Eg(w,S,H,D),M!==null&&(H=Ar(),bo(M,w,D,H),po(M,S,D))}}function Yw(w){var S=w.alternate;return w===ji||S!==null&&S===ji}function Ir(w,S){Ip=Ll=!0;var M=w.pending;M===null?S.next=S:(S.next=M.next,M.next=S),w.pending=S}function po(w,S,M){if((M&4194240)!==0){var D=S.lanes;D&=w.pendingLanes,M|=D,S.lanes=M,Ac(w,M)}}var jg={readContext:Ba,useCallback:lr,useContext:lr,useEffect:lr,useImperativeHandle:lr,useInsertionEffect:lr,useLayoutEffect:lr,useMemo:lr,useReducer:lr,useRef:lr,useState:lr,useDebugValue:lr,useDeferredValue:lr,useTransition:lr,useMutableSource:lr,useSyncExternalStore:lr,useId:lr,unstable_isNewReconciler:!1},eI={readContext:Ba,useCallback:function(w,S){return ed().memoizedState=[w,S===void 0?null:S],w},useContext:Ba,useEffect:Wg,useImperativeHandle:function(w,S,M){return M=M!=null?M.concat([w]):null,Mp(4194308,4,Kw.bind(null,S,w),M)},useLayoutEffect:function(w,S){return Mp(4194308,4,w,S)},useInsertionEffect:function(w,S){return Mp(4,2,w,S)},useMemo:function(w,S){var M=ed();return S=S===void 0?null:S,w=w(),M.memoizedState=[w,S],w},useReducer:function(w,S,M){var D=ed();return S=M!==void 0?M(S):S,D.memoizedState=D.baseState=S,w={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:w,lastRenderedState:S},D.queue=w,w=w.dispatch=JP.bind(null,ji,w),[D.memoizedState,w]},useRef:function(w){var S=ed();return w={current:w},S.memoizedState=w},useState:Cp,useDebugValue:_p,useDeferredValue:function(w){return ed().memoizedState=w},useTransition:function(){var w=Cp(!1),S=w[0];return w=s1.bind(null,w[1]),ed().memoizedState=w,[S,w]},useMutableSource:function(){},useSyncExternalStore:function(w,S,M){var D=ji,H=ed();if(Ri){if(M===void 0)throw Error(t(407));M=M()}else{if(M=S(),Un===null)throw Error(t(349));($c&30)!==0||zw(D,S,M)}H.memoizedState=M;var $={value:M,getSnapshot:S};return H.queue=$,Wg($d.bind(null,D,$,w),[w]),D.flags|=2048,Nl(9,Xr.bind(null,D,$,M,S),void 0,null),M},useId:function(){var w=ed(),S=Un.identifierPrefix;if(Ri){var M=Xo,D=Ko;M=(D&~(1<<32-Wi(D)-1)).toString(32)+M,S=":"+S+"R"+M,M=rh++,0<\/script>",w=w.removeChild(w.firstChild)):typeof D.is=="string"?w=he.createElement(M,{is:D.is}):(w=he.createElement(M),M==="select"&&(he=w,D.multiple?he.multiple=!0:D.size&&(he.size=D.size))):w=he.createElementNS(w,M),w[jo]=S,w[Hc]=D,Yn(w,S,!1,!1),S.stateNode=w;e:{switch(he=Lt(M,D),M){case"dialog":Ni("cancel",w),Ni("close",w),H=D;break;case"iframe":case"object":case"embed":Ni("load",w),H=D;break;case"video":case"audio":for(H=0;Hch&&(S.flags|=128,D=!0,Dp($,!1),S.lanes=4194304)}else{if(!D)if(w=nh(he),w!==null){if(S.flags|=128,D=!0,M=w.updateQueue,M!==null&&(S.updateQueue=M,S.flags|=4),Dp($,!0),$.tail===null&&$.tailMode==="hidden"&&!he.alternate&&!Ri)return Zn(S),null}else 2*pi()-$.renderingStartTime>ch&&M!==1073741824&&(S.flags|=128,D=!0,Dp($,!1),S.lanes=4194304);$.isBackwards?(he.sibling=S.child,S.child=he):(M=$.last,M!==null?M.sibling=he:S.child=he,$.last=he)}return $.tail!==null?(S=$.tail,$.rendering=S,$.tail=S.sibling,$.renderingStartTime=pi(),S.sibling=null,M=Hi.current,Mi(Hi,D?M&1|2:M&1),S):(Zn(S),null);case 22:case 23:return kb(),D=S.memoizedState!==null,w!==null&&w.memoizedState!==null!==D&&(S.flags|=8192),D&&(S.mode&1)!==0?(ma&1073741824)!==0&&(Zn(S),S.subtreeFlags&6&&(S.flags|=8192)):Zn(S),null;case 24:return null;case 25:return null}throw Error(t(156,S.tag))}function sI(w,S){switch(th(S),S.tag){case 1:return $r(S.type)&&Cg(),w=S.flags,w&65536?(S.flags=w&-65537|128,S):null;case 3:return zc(),Ei(zr),Ei(cr),Vg(),w=S.flags,(w&65536)!==0&&(w&128)===0?(S.flags=w&-65537|128,S):null;case 5:return qg(S),null;case 13:if(Ei(Hi),w=S.memoizedState,w!==null&&w.dehydrated!==null){if(S.alternate===null)throw Error(t(340));Qo()}return w=S.flags,w&65536?(S.flags=w&-65537|128,S):null;case 19:return Ei(Hi),null;case 4:return zc(),null;case 10:return Ng(S.type._context),null;case 22:case 23:return kb(),null;case 24:return null;default:return null}}var ey=!1,Gi=!1,Mr=typeof WeakSet=="function"?WeakSet:Set,Vt=null;function Fl(w,S){var M=w.ref;if(M!==null)if(typeof M=="function")try{M(null)}catch(D){zi(w,S,D)}else M.current=null}function qp(w,S,M){try{M()}catch(D){zi(w,S,D)}}var u1=!1;function iI(w,S){if(yp=Wu,w=mi(),up(w)){if("selectionStart"in w)var M={start:w.selectionStart,end:w.selectionEnd};else e:{M=(M=w.ownerDocument)&&M.defaultView||window;var D=M.getSelection&&M.getSelection();if(D&&D.rangeCount!==0){M=D.anchorNode;var H=D.anchorOffset,$=D.focusNode;D=D.focusOffset;try{M.nodeType,$.nodeType}catch{M=null;break e}var he=0,ve=-1,Ie=-1,We=0,ct=0,mt=w,dt=null;t:for(;;){for(var qt;mt!==M||H!==0&&mt.nodeType!==3||(ve=he+H),mt!==$||D!==0&&mt.nodeType!==3||(Ie=he+D),mt.nodeType===3&&(he+=mt.nodeValue.length),(qt=mt.firstChild)!==null;)dt=mt,mt=qt;for(;;){if(mt===w)break t;if(dt===M&&++We===H&&(ve=he),dt===$&&++ct===D&&(Ie=he),(qt=mt.nextSibling)!==null)break;mt=dt,dt=mt.parentNode}mt=qt}M=ve===-1||Ie===-1?null:{start:ve,end:Ie}}else M=null}M=M||{start:0,end:0}}else M=null;for(Yu={focusedElem:w,selectionRange:M},Wu=!1,Vt=S;Vt!==null;)if(S=Vt,w=S.child,(S.subtreeFlags&1028)!==0&&w!==null)w.return=S,Vt=w;else for(;Vt!==null;){S=Vt;try{var Ut=S.alternate;if((S.flags&1024)!==0)switch(S.tag){case 0:case 11:case 15:break;case 1:if(Ut!==null){var Kt=Ut.memoizedProps,rn=Ut.memoizedState,Re=S.stateNode,Ae=Re.getSnapshotBeforeUpdate(S.elementType===S.type?Kt:Da(S.type,Kt),rn);Re.__reactInternalSnapshotBeforeUpdate=Ae}break;case 3:var Ve=S.stateNode.containerInfo;Ve.nodeType===1?Ve.textContent="":Ve.nodeType===9&&Ve.documentElement&&Ve.removeChild(Ve.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(t(163))}}catch(kt){zi(S,S.return,kt)}if(w=S.sibling,w!==null){w.return=S.return,Vt=w;break}Vt=S.return}return Ut=u1,u1=!1,Ut}function Qd(w,S,M){var D=S.updateQueue;if(D=D!==null?D.lastEffect:null,D!==null){var H=D=D.next;do{if((H.tag&w)===w){var $=H.destroy;H.destroy=void 0,$!==void 0&&qp(S,M,$)}H=H.next}while(H!==D)}}function Vp(w,S){if(S=S.updateQueue,S=S!==null?S.lastEffect:null,S!==null){var M=S=S.next;do{if((M.tag&w)===w){var D=M.create;M.destroy=D()}M=M.next}while(M!==S)}}function ty(w){var S=w.ref;if(S!==null){var M=w.stateNode;switch(w.tag){case 5:w=M;break;default:w=M}typeof S=="function"?S(w):S.current=w}}function h1(w){var S=w.alternate;S!==null&&(w.alternate=null,h1(S)),w.child=null,w.deletions=null,w.sibling=null,w.tag===5&&(S=w.stateNode,S!==null&&(delete S[jo],delete S[Hc],delete S[Pg],delete S[me],delete S[xl])),w.stateNode=null,w.return=null,w.dependencies=null,w.memoizedProps=null,w.memoizedState=null,w.pendingProps=null,w.stateNode=null,w.updateQueue=null}function l1(w){return w.tag===5||w.tag===3||w.tag===4}function f1(w){e:for(;;){for(;w.sibling===null;){if(w.return===null||l1(w.return))return null;w=w.return}for(w.sibling.return=w.return,w=w.sibling;w.tag!==5&&w.tag!==6&&w.tag!==18;){if(w.flags&2||w.child===null||w.tag===4)continue e;w.child.return=w,w=w.child}if(!(w.flags&2))return w.stateNode}}function cb(w,S,M){var D=w.tag;if(D===5||D===6)w=w.stateNode,S?M.nodeType===8?M.parentNode.insertBefore(w,S):M.insertBefore(w,S):(M.nodeType===8?(S=M.parentNode,S.insertBefore(w,M)):(S=M,S.appendChild(w)),M=M._reactRootContainer,M!=null||S.onclick!==null||(S.onclick=Og));else if(D!==4&&(w=w.child,w!==null))for(cb(w,S,M),w=w.sibling;w!==null;)cb(w,S,M),w=w.sibling}function sy(w,S,M){var D=w.tag;if(D===5||D===6)w=w.stateNode,S?M.insertBefore(w,S):M.appendChild(w);else if(D!==4&&(w=w.child,w!==null))for(sy(w,S,M),w=w.sibling;w!==null;)sy(w,S,M),w=w.sibling}var Gn=null,mo=!1;function id(w,S,M){for(M=M.child;M!==null;)ub(w,S,M),M=M.sibling}function ub(w,S,M){if(Zs&&typeof Zs.onCommitFiberUnmount=="function")try{Zs.onCommitFiberUnmount(ln,M)}catch{}switch(M.tag){case 5:Gi||Fl(M,S);case 6:var D=Gn,H=mo;Gn=null,id(w,S,M),Gn=D,mo=H,Gn!==null&&(mo?(w=Gn,M=M.stateNode,w.nodeType===8?w.parentNode.removeChild(M):w.removeChild(M)):Gn.removeChild(M.stateNode));break;case 18:Gn!==null&&(mo?(w=Gn,M=M.stateNode,w.nodeType===8?Lw(w.parentNode,M):w.nodeType===1&&Lw(w,M),$s(w)):Lw(Gn,M.stateNode));break;case 4:D=Gn,H=mo,Gn=M.stateNode.containerInfo,mo=!0,id(w,S,M),Gn=D,mo=H;break;case 0:case 11:case 14:case 15:if(!Gi&&(D=M.updateQueue,D!==null&&(D=D.lastEffect,D!==null))){H=D=D.next;do{var $=H,he=$.destroy;$=$.tag,he!==void 0&&(($&2)!==0||($&4)!==0)&&qp(M,S,he),H=H.next}while(H!==D)}id(w,S,M);break;case 1:if(!Gi&&(Fl(M,S),D=M.stateNode,typeof D.componentWillUnmount=="function"))try{D.props=M.memoizedProps,D.state=M.memoizedState,D.componentWillUnmount()}catch(ve){zi(M,S,ve)}id(w,S,M);break;case 21:id(w,S,M);break;case 22:M.mode&1?(Gi=(D=Gi)||M.memoizedState!==null,id(w,S,M),Gi=D):id(w,S,M);break;default:id(w,S,M)}}function Hl(w){var S=w.updateQueue;if(S!==null){w.updateQueue=null;var M=w.stateNode;M===null&&(M=w.stateNode=new Mr),S.forEach(function(D){var H=uI.bind(null,w,D);M.has(D)||(M.add(D),D.then(H,H))})}}function pa(w,S){var M=S.deletions;if(M!==null)for(var D=0;DH&&(H=he),D&=~$}if(D=H,D=pi()-D,D=(120>D?120:480>D?480:1080>D?1080:1920>D?1920:3e3>D?3e3:4320>D?4320:1960*m1(D/1960))-D,10w?16:w,Zc===null)var D=!1;else{if(w=Zc,Zc=null,_r=0,(Ks&6)!==0)throw Error(t(331));var H=Ks;for(Ks|=4,Vt=w.current;Vt!==null;){var $=Vt,he=$.child;if((Vt.flags&16)!==0){var ve=$.deletions;if(ve!==null){for(var Ie=0;Iepi()-pb?hh(w,0):ry|=M),Yr(w,S)}function S1(w,S){S===0&&((w.mode&1)===0?S=1:(S=Vu,Vu<<=1,(Vu&130023424)===0&&(Vu=4194304)));var M=Ar();w=Wd(w,S),w!==null&&(_c(w,S,M),Yr(w,M))}function cI(w){var S=w.memoizedState,M=0;S!==null&&(M=S.retryLane),S1(w,M)}function uI(w,S){var M=0;switch(w.tag){case 13:var D=w.stateNode,H=w.memoizedState;H!==null&&(M=H.retryLane);break;case 19:D=w.stateNode;break;default:throw Error(t(314))}D!==null&&D.delete(S),S1(w,M)}var v1;v1=function(w,S,M){if(w!==null)if(w.memoizedProps!==S.pendingProps||zr.current)Cr=!0;else{if((w.lanes&M)===0&&(S.flags&128)===0)return Cr=!1,d1(w,S,M);Cr=(w.flags&131072)!==0}else Cr=!1,Ri&&(S.flags&1048576)!==0&&zv(S,Ag,S.index);switch(S.lanes=0,S.tag){case 2:var D=S.type;Jg(w,S),w=S.pendingProps;var H=Il(S,cr.current);jc(S,M),H=ah(null,S,D,w,H,M);var $=Fg();return S.flags|=1,typeof H=="object"&&H!==null&&typeof H.render=="function"&&H.$$typeof===void 0?(S.tag=1,S.memoizedState=null,S.updateQueue=null,$r(D)?($=!0,_a(S)):$=!1,S.memoizedState=H.state!==null&&H.state!==void 0?H.state:null,Rg(S),H.updater=Kg,S.stateNode=H,H._reactInternals=S,Jw(S,D,w,M),S=ab(null,S,D,!0,$,M)):(S.tag=0,Ri&&$&&kp(S),Qn(null,S,H,M),S=S.child),S;case 16:D=S.elementType;e:{switch(Jg(w,S),w=S.pendingProps,H=D._init,D=H(D._payload),S.type=D,H=S.tag=lI(D),w=Da(D,w),H){case 0:S=nb(null,S,D,w,M);break e;case 1:S=rb(null,S,D,w,M);break e;case 11:S=a1(null,S,D,w,M);break e;case 14:S=tb(null,S,D,Da(D.type,w),M);break e}throw Error(t(306,D,""))}return S;case 0:return D=S.type,H=S.pendingProps,H=S.elementType===D?H:Da(D,H),nb(w,S,D,H,M);case 1:return D=S.type,H=S.pendingProps,H=S.elementType===D?H:Da(D,H),rb(w,S,D,H,M);case 3:e:{if(o1(S),w===null)throw Error(t(387));D=S.pendingProps,$=S.memoizedState,H=$.element,Qv(w,S),_l(S,D,null,M);var he=S.memoizedState;if(D=he.element,$.isDehydrated)if($={element:D,isDehydrated:!1,cache:he.cache,pendingSuspenseBoundaries:he.pendingSuspenseBoundaries,transitions:he.transitions},S.updateQueue.baseState=$,S.memoizedState=$,S.flags&256){H=dh(Error(t(423)),S),S=sd(w,S,D,M,H);break e}else if(D!==H){H=dh(Error(t(424)),S),S=sd(w,S,D,M,H);break e}else for(la=Fc(S.stateNode.containerInfo.firstChild),hr=S,Ri=!0,lo=null,M=Bg(S,null,D,M),S.child=M;M;)M.flags=M.flags&-3|4096,M=M.sibling;else{if(Qo(),D===H){S=po(w,S,M);break e}Qn(w,S,D,M)}S=S.child}return S;case 5:return Fw(S),w===null&&Kr(S),D=S.type,H=S.pendingProps,$=w!==null?w.memoizedProps:null,he=H.children,wp(D,H)?he=null:$!==null&&wp(D,$)&&(S.flags|=32),ib(w,S),Qn(w,S,he,M),S.child;case 6:return w===null&&Kr(S),null;case 13:return Zg(w,S,M);case 4:return Vw(S,S.stateNode.containerInfo),D=S.pendingProps,w===null?S.child=Ji(S,null,D,M):Qn(w,S,D,M),S.child;case 11:return D=S.type,H=S.pendingProps,H=S.elementType===D?H:Da(D,H),a1(w,S,D,H,M);case 7:return Qn(w,S,S.pendingProps,M),S.child;case 8:return Qn(w,S,S.pendingProps.children,M),S.child;case 12:return Qn(w,S,S.pendingProps.children,M),S.child;case 10:e:{if(D=S.type._context,H=S.pendingProps,$=S.memoizedProps,he=H.value,Mi(Tp,D._currentValue),D._currentValue=he,$!==null)if(Ge($.value,he)){if($.children===H.children&&!zr.current){S=po(w,S,M);break e}}else for($=S.child,$!==null&&($.return=S);$!==null;){var ve=$.dependencies;if(ve!==null){he=$.child;for(var Ie=ve.firstContext;Ie!==null;){if(Ie.context===D){if($.tag===1){Ie=jd(-1,M&-M),Ie.tag=2;var We=$.updateQueue;if(We!==null){We=We.shared;var ct=We.pending;ct===null?Ie.next=Ie:(Ie.next=ct.next,ct.next=Ie),We.pending=Ie}}$.lanes|=M,Ie=$.alternate,Ie!==null&&(Ie.lanes|=M),Xn($.return,M,S),ve.lanes|=M;break}Ie=Ie.next}}else if($.tag===10)he=$.type===S.type?null:$.child;else if($.tag===18){if(he=$.return,he===null)throw Error(t(341));he.lanes|=M,ve=he.alternate,ve!==null&&(ve.lanes|=M),Xn(he,M,S),he=$.sibling}else he=$.child;if(he!==null)he.return=$;else for(he=$;he!==null;){if(he===S){he=null;break}if($=he.sibling,$!==null){$.return=he.return,he=$;break}he=he.return}$=he}Qn(w,S,H.children,M),S=S.child}return S;case 9:return H=S.type,D=S.pendingProps.children,jc(S,M),H=Ba(H),D=D(H),S.flags|=1,Qn(w,S,D,M),S.child;case 14:return D=S.type,H=Da(D,S.pendingProps),H=Da(D.type,H),tb(w,S,D,H,M);case 15:return td(w,S,S.type,S.pendingProps,M);case 17:return D=S.type,H=S.pendingProps,H=S.elementType===D?H:Da(D,H),Jg(w,S),S.tag=1,$r(D)?(w=!0,_a(S)):w=!1,jc(S,M),oh(S,D,H),Jw(S,D,H,M),ab(null,S,D,!0,w,M);case 19:return Kc(w,S,M);case 22:return sb(w,S,M)}throw Error(t(156,S.tag))};function T1(w,S){return oi(w,S)}function hI(w,S,M,D){this.tag=w,this.key=M,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=S,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=D,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Va(w,S,M,D){return new hI(w,S,M,D)}function ly(w){return w=w.prototype,!(!w||!w.isReactComponent)}function lI(w){if(typeof w=="function")return ly(w)?1:0;if(w!=null){if(w=w.$$typeof,w===G)return 11;if(w===X)return 14}return 2}function bo(w,S){var M=w.alternate;return M===null?(M=Va(w.tag,S,w.key,w.mode),M.elementType=w.elementType,M.type=w.type,M.stateNode=w.stateNode,M.alternate=w,w.alternate=M):(M.pendingProps=S,M.type=w.type,M.flags=0,M.subtreeFlags=0,M.deletions=null),M.flags=w.flags&14680064,M.childLanes=w.childLanes,M.lanes=w.lanes,M.child=w.child,M.memoizedProps=w.memoizedProps,M.memoizedState=w.memoizedState,M.updateQueue=w.updateQueue,S=w.dependencies,M.dependencies=S===null?null:{lanes:S.lanes,firstContext:S.firstContext},M.sibling=w.sibling,M.index=w.index,M.ref=w.ref,M}function fy(w,S,M,D,H,$){var he=2;if(D=w,typeof w=="function")ly(w)&&(he=1);else if(typeof w=="string")he=5;else e:switch(w){case B:return fh(M.children,H,$,S);case L:he=8,H|=8;break;case E:return w=Va(12,M,S,H|2),w.elementType=E,w.lanes=$,w;case W:return w=Va(13,M,S,H),w.elementType=W,w.lanes=$,w;case te:return w=Va(19,M,S,H),w.elementType=te,w.lanes=$,w;case ae:return py(M,H,$,S);default:if(typeof w=="object"&&w!==null)switch(w.$$typeof){case N:he=10;break e;case F:he=9;break e;case G:he=11;break e;case X:he=14;break e;case Y:he=16,D=null;break e}throw Error(t(130,w==null?w:typeof w,""))}return S=Va(he,M,S,H),S.elementType=w,S.type=D,S.lanes=$,S}function fh(w,S,M,D){return w=Va(7,w,D,S),w.lanes=M,w}function py(w,S,M,D){return w=Va(22,w,D,S),w.elementType=ae,w.lanes=M,w.stateNode={isHidden:!1},w}function vb(w,S,M){return w=Va(6,w,null,S),w.lanes=M,w}function Tb(w,S,M){return S=Va(4,w.children!==null?w.children:[],w.key,S),S.lanes=M,S.stateNode={containerInfo:w.containerInfo,pendingChildren:null,implementation:w.implementation},S}function fI(w,S,M,D,H){this.tag=S,this.containerInfo=w,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Mc(0),this.expirationTimes=Mc(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Mc(0),this.identifierPrefix=D,this.onRecoverableError=H,this.mutableSourceEagerHydrationData=null}function Ob(w,S,M,D,H,$,he,ve,Ie){return w=new fI(w,S,M,ve,Ie),S===1?(S=1,$===!0&&(S|=8)):S=0,$=Va(3,null,null,S),w.current=$,$.stateNode=w,$.memoizedState={element:D,isDehydrated:M,cache:null,transitions:null,pendingSuspenseBoundaries:null},Rg($),w}function pI(w,S,M){var D=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(c)}catch(e){console.error(e)}}return c(),BI.exports=f7(),BI.exports}var oN;function p7(){if(oN)return L1;oN=1;var c=K5();return L1.createRoot=c.createRoot,L1.hydrateRoot=c.hydrateRoot,L1}var m7=p7();const g7=_S(m7);var y7="Invariant failed";function Ah(c,e){if(!c)throw new Error(y7)}const s0=new WeakMap,wT=new WeakMap,XT={current:[]};let RI=!1,uk=0;const Kb=new Set,B1=new Map;function X5(c){const e=Array.from(c).sort((t,s)=>t instanceof i0&&t.options.deps.includes(s)?1:s instanceof i0&&s.options.deps.includes(t)?-1:0);for(const t of e){if(XT.current.includes(t))continue;XT.current.push(t),t.recompute();const s=wT.get(t);if(s)for(const i of s){const n=s0.get(i);n&&X5(n)}}}function w7(c){c.listeners.forEach(e=>e({prevVal:c.prevState,currentVal:c.state}))}function b7(c){c.listeners.forEach(e=>e({prevVal:c.prevState,currentVal:c.state}))}function Q5(c){if(uk>0&&!B1.has(c)&&B1.set(c,c.prevState),Kb.add(c),!(uk>0)&&!RI)try{for(RI=!0;Kb.size>0;){const e=Array.from(Kb);Kb.clear();for(const t of e){const s=B1.get(t)??t.prevState;t.prevState=s,w7(t)}for(const t of e){const s=s0.get(t);s&&(XT.current.push(t),X5(s))}for(const t of e){const s=s0.get(t);if(s)for(const i of s)b7(i)}}}finally{RI=!1,XT.current=[],B1.clear()}}function DI(c){uk++;try{c()}finally{if(uk--,uk===0){const e=Array.from(Kb)[0];e&&Q5(e)}}}class AM{constructor(e,t){this.listeners=new Set,this.subscribe=s=>{var i,n;this.listeners.add(s);const r=(n=(i=this.options)==null?void 0:i.onSubscribe)==null?void 0:n.call(i,s,this);return()=>{this.listeners.delete(s),r==null||r()}},this.setState=s=>{var i,n,r;this.prevState=this.state,this.state=(i=this.options)!=null&&i.updateFn?this.options.updateFn(this.prevState)(s):s(this.prevState),(r=(n=this.options)==null?void 0:n.onUpdate)==null||r.call(n),Q5(this)},this.prevState=e,this.state=e,this.options=t}}class i0{constructor(e){this.listeners=new Set,this._subscriptions=[],this.lastSeenDepValues=[],this.getDepVals=()=>{const t=[],s=[];for(const i of this.options.deps)t.push(i.prevState),s.push(i.state);return this.lastSeenDepValues=s,{prevDepVals:t,currDepVals:s,prevVal:this.prevState??void 0}},this.recompute=()=>{var t,s;this.prevState=this.state;const{prevDepVals:i,currDepVals:n,prevVal:r}=this.getDepVals();this.state=this.options.fn({prevDepVals:i,currDepVals:n,prevVal:r}),(s=(t=this.options).onUpdate)==null||s.call(t)},this.checkIfRecalculationNeededDeeply=()=>{for(const n of this.options.deps)n instanceof i0&&n.checkIfRecalculationNeededDeeply();let t=!1;const s=this.lastSeenDepValues,{currDepVals:i}=this.getDepVals();for(let n=0;n(this.registerOnGraph(),this.checkIfRecalculationNeededDeeply(),()=>{this.unregisterFromGraph();for(const t of this._subscriptions)t()}),this.subscribe=t=>{var s,i;this.listeners.add(t);const n=(i=(s=this.options).onSubscribe)==null?void 0:i.call(s,t,this);return()=>{this.listeners.delete(t),n==null||n()}},this.options=e,this.state=e.fn({prevDepVals:void 0,prevVal:void 0,currDepVals:this.getDepVals().currDepVals})}registerOnGraph(e=this.options.deps){for(const t of e)if(t instanceof i0)t.registerOnGraph(),this.registerOnGraph(t.options.deps);else if(t instanceof AM){let s=s0.get(t);s||(s=new Set,s0.set(t,s)),s.add(this);let i=wT.get(this);i||(i=new Set,wT.set(this,i)),i.add(t)}}unregisterFromGraph(e=this.options.deps){for(const t of e)if(t instanceof i0)this.unregisterFromGraph(t.options.deps);else if(t instanceof AM){const s=s0.get(t);s&&s.delete(this);const i=wT.get(this);i&&i.delete(t)}}}const Sf="__TSR_index",dN="popstate",cN="beforeunload";function Y5(c){let e=c.getLocation();const t=new Set,s=r=>{e=c.getLocation(),t.forEach(a=>a({location:e,action:r}))},i=r=>{c.notifyOnIndexChange??!0?s(r):e=c.getLocation()},n=async({task:r,navigateOpts:a,...o})=>{var d,u;if((a==null?void 0:a.ignoreBlocker)??!1){r();return}const l=((d=c.getBlockers)==null?void 0:d.call(c))??[],f=o.type==="PUSH"||o.type==="REPLACE";if(typeof document<"u"&&l.length&&f)for(const p of l){const m=v0(o.path,o.state);if(await p.blockerFn({currentLocation:e,nextLocation:m,action:o.type})){(u=c.onBlocked)==null||u.call(c);return}}r()};return{get location(){return e},get length(){return c.getLength()},subscribers:t,subscribe:r=>(t.add(r),()=>{t.delete(r)}),push:(r,a,o)=>{const d=e.state[Sf];a=LM(d+1,a),n({task:()=>{c.pushState(r,a),s({type:"PUSH"})},navigateOpts:o,type:"PUSH",path:r,state:a})},replace:(r,a,o)=>{const d=e.state[Sf];a=LM(d,a),n({task:()=>{c.replaceState(r,a),s({type:"REPLACE"})},navigateOpts:o,type:"REPLACE",path:r,state:a})},go:(r,a)=>{n({task:()=>{c.go(r),i({type:"GO",index:r})},navigateOpts:a,type:"GO"})},back:r=>{n({task:()=>{c.back((r==null?void 0:r.ignoreBlocker)??!1),i({type:"BACK"})},navigateOpts:r,type:"BACK"})},forward:r=>{n({task:()=>{c.forward((r==null?void 0:r.ignoreBlocker)??!1),i({type:"FORWARD"})},navigateOpts:r,type:"FORWARD"})},canGoBack:()=>e.state[Sf]!==0,createHref:r=>c.createHref(r),block:r=>{var a;if(!c.setBlockers)return()=>{};const o=((a=c.getBlockers)==null?void 0:a.call(c))??[];return c.setBlockers([...o,r]),()=>{var d,u;const h=((d=c.getBlockers)==null?void 0:d.call(c))??[];(u=c.setBlockers)==null||u.call(c,h.filter(l=>l!==r))}},flush:()=>{var r;return(r=c.flush)==null?void 0:r.call(c)},destroy:()=>{var r;return(r=c.destroy)==null?void 0:r.call(c)},notify:s}}function LM(c,e){return e||(e={}),{...e,key:f_(),[Sf]:c}}function Z5(c){var e;const t=(c==null?void 0:c.window)??(typeof document<"u"?window:void 0),s=t.history.pushState,i=t.history.replaceState;let n=[];const r=()=>n,a=E=>n=E,o=(c==null?void 0:c.createHref)??(E=>E),d=(c==null?void 0:c.parseLocation)??(()=>v0(`${t.location.pathname}${t.location.search}${t.location.hash}`,t.history.state));(e=t.history.state)!=null&&e.key||t.history.replaceState({[Sf]:0,key:f_()},"");let u=d(),h,l=!1,f=!1,p=!1,m=!1;const g=()=>u;let y,b;const k=()=>{y&&(L._ignoreSubscribers=!0,(y.isPush?t.history.pushState:t.history.replaceState)(y.state,"",y.href),L._ignoreSubscribers=!1,y=void 0,b=void 0,h=void 0)},T=(E,N,F)=>{const G=o(N);b||(h=u),u=v0(N,F),y={href:G,state:F,isPush:(y==null?void 0:y.isPush)||E==="push"},b||(b=Promise.resolve().then(()=>k()))},O=E=>{u=d(),L.notify({type:E})},A=async()=>{if(f){f=!1;return}const E=d(),N=E.state[Sf]-u.state[Sf],F=N===1,G=N===-1,W=!F&&!G||l;l=!1;const te=W?"GO":G?"BACK":"FORWARD",X=W?{type:"GO",index:N}:{type:G?"BACK":"FORWARD"};if(p)p=!1;else{const Y=r();if(typeof document<"u"&&Y.length){for(const ae of Y)if(await ae.blockerFn({currentLocation:u,nextLocation:E,action:te})){f=!0,t.history.go(1),L.notify(X);return}}}u=d(),L.notify(X)},B=E=>{if(m){m=!1;return}let N=!1;const F=r();if(typeof document<"u"&&F.length)for(const G of F){const W=G.enableBeforeUnload??!0;if(W===!0){N=!0;break}if(typeof W=="function"&&W()===!0){N=!0;break}}if(N)return E.preventDefault(),E.returnValue=""},L=Y5({getLocation:g,getLength:()=>t.history.length,pushState:(E,N)=>T("push",E,N),replaceState:(E,N)=>T("replace",E,N),back:E=>(E&&(p=!0),m=!0,t.history.back()),forward:E=>{E&&(p=!0),m=!0,t.history.forward()},go:E=>{l=!0,t.history.go(E)},createHref:E=>o(E),flush:k,destroy:()=>{t.history.pushState=s,t.history.replaceState=i,t.removeEventListener(cN,B,{capture:!0}),t.removeEventListener(dN,A)},onBlocked:()=>{h&&u!==h&&(u=h)},getBlockers:r,setBlockers:a,notifyOnIndexChange:!1});return t.addEventListener(cN,B,{capture:!0}),t.addEventListener(dN,A),t.history.pushState=function(...E){const N=s.apply(t.history,E);return L._ignoreSubscribers||O("PUSH"),N},t.history.replaceState=function(...E){const N=i.apply(t.history,E);return L._ignoreSubscribers||O("REPLACE"),N},L}function k7(c){const e=typeof document<"u"?window:void 0;return Z5({window:e,parseLocation:()=>{const t=e.location.hash.split("#").slice(1),s=t[0]??"/",i=e.location.search,n=t.slice(1),r=n.length===0?"":`#${n.join("#")}`,a=`${s}${i}${r}`;return v0(a,e.history.state)},createHref:t=>`${e.location.pathname}${e.location.search}#${t}`})}function S7(c={initialEntries:["/"]}){const e=c.initialEntries;let t=c.initialIndex?Math.min(Math.max(c.initialIndex,0),e.length-1):e.length-1;const s=e.map((n,r)=>LM(r,void 0));return Y5({getLocation:()=>v0(e[t],s[t]),getLength:()=>e.length,pushState:(n,r)=>{t{s[t]=r,e[t]=n},back:()=>{t=Math.max(t-1,0)},forward:()=>{t=Math.min(t+1,e.length-1)},go:n=>{t=Math.min(Math.max(t+n,0),e.length-1)},createHref:n=>n})}function v0(c,e){const t=c.indexOf("#"),s=c.indexOf("?");return{href:c,pathname:c.substring(0,t>0?s>0?Math.min(t,s):t:s>0?s:c.length),hash:t>-1?c.substring(t):"",search:s>-1?c.slice(s,t===-1?void 0:t):"",state:e||{[Sf]:0,key:f_()}}}function f_(){return(Math.random()+1).toString(36).substring(7)}function Uy(c){return c[c.length-1]}function v7(c){return typeof c=="function"}function dm(c,e){return v7(c)?c(e):c}function BM(c,e){return e.reduce((t,s)=>(t[s]=c[s],t),{})}function od(c,e){if(c===e)return c;const t=e,s=hN(c)&&hN(t);if(s||QT(c)&&QT(t)){const i=s?c:Object.keys(c),n=i.length,r=s?t:Object.keys(t),a=r.length,o=s?[]:{};let d=0;for(let u=0;u"u")return!0;const t=e.prototype;return!(!uN(t)||!t.hasOwnProperty("isPrototypeOf"))}function uN(c){return Object.prototype.toString.call(c)==="[object Object]"}function hN(c){return Array.isArray(c)&&c.length===Object.keys(c).length}function lN(c,e){let t=Object.keys(c);return e&&(t=t.filter(s=>c[s]!==void 0)),t}function n0(c,e,t){if(c===e)return!0;if(typeof c!=typeof e)return!1;if(QT(c)&&QT(e)){const s=(t==null?void 0:t.ignoreUndefined)??!0,i=lN(c,s),n=lN(e,s);return!(t!=null&&t.partial)&&i.length!==n.length?!1:n.every(r=>n0(c[r],e[r],t))}return Array.isArray(c)&&Array.isArray(e)?c.length!==e.length?!1:!c.some((s,i)=>!n0(s,e[i],t)):!1}function qy(c){let e,t;const s=new Promise((i,n)=>{e=i,t=n});return s.status="pending",s.resolve=i=>{s.status="resolved",s.value=i,e(i),c==null||c(i)},s.reject=i=>{s.status="rejected",t(i)},s}function T7(c){return/%[0-9A-Fa-f]{2}/.test(c)}function Dh(c){return JO(c.filter(e=>e!==void 0).join("/"))}function JO(c){return c.replace(/\/{2,}/g,"/")}function p_(c){return c==="/"?c:c.replace(/^\/{1,}/,"")}function cm(c){return c==="/"?c:c.replace(/\/{1,}$/,"")}function O7(c){return cm(p_(c))}function YT(c,e){return c!=null&&c.endsWith("/")&&c!=="/"&&c!==`${e}/`?c.slice(0,-1):c}function x7(c,e,t){return YT(c,t)===YT(e,t)}function P7({basepath:c,base:e,to:t,trailingSlash:s="never",caseSensitive:i}){var n,r;e=ZT(c,e,i),t=ZT(c,t,i);let a=T0(e);const o=T0(t);a.length>1&&((n=Uy(a))==null?void 0:n.value)==="/"&&a.pop(),o.forEach((u,h)=>{u.value==="/"?h?h===o.length-1&&a.push(u):a=[u]:u.value===".."?a.pop():u.value==="."||a.push(u)}),a.length>1&&(((r=Uy(a))==null?void 0:r.value)==="/"?s==="never"&&a.pop():s==="always"&&a.push({type:"pathname",value:"/"}));const d=Dh([c,...a.map(u=>u.value)]);return JO(d)}function T0(c){if(!c)return[];c=JO(c);const e=[];if(c.slice(0,1)==="/"&&(c=c.substring(1),e.push({type:"pathname",value:"/"})),!c)return e;const t=c.split("/").filter(Boolean);return e.push(...t.map(s=>s==="$"||s==="*"?{type:"wildcard",value:s}:s.charAt(0)==="$"?{type:"param",value:s}:{type:"pathname",value:s.includes("%25")?s.split("%25").map(i=>decodeURI(i)).join("%25"):decodeURI(s)})),c.slice(-1)==="/"&&(c=c.substring(1),e.push({type:"pathname",value:"/"})),e}function N1({path:c,params:e,leaveWildcards:t,leaveParams:s,decodeCharMap:i}){const n=T0(c);function r(d){const u=e[d],h=typeof u=="string";return["*","_splat"].includes(d)?h?encodeURI(u):u:h?I7(u,i):u}const a={},o=Dh(n.map(d=>{if(d.type==="wildcard"){a._splat=e._splat;const u=r("_splat");return t?`${d.value}${u??""}`:u}if(d.type==="param"){const u=d.value.substring(1);if(a[u]=e[u],s){const h=r(d.value);return`${d.value}${h??""}`}return r(u)??"undefined"}return d.value}));return{usedParams:a,interpolatedPath:o}}function I7(c,e){let t=encodeURIComponent(c);if(e)for(const[s,i]of e)t=t.replaceAll(s,i);return t}function E1(c,e,t){const s=C7(c,e,t);if(!(t.to&&!s))return s??{}}function ZT(c,e,t=!1){const s=t?c:c.toLowerCase(),i=t?e:e.toLowerCase();switch(!0){case s==="/":return e;case i===s:return"";case e.length{for(let o=0;o=i.length-1,l=o>=n.length-1;if(u){if(u.type==="wildcard"){const f=decodeURI(Dh(i.slice(o).map(p=>p.value)));return r["*"]=f,r._splat=f,!0}if(u.type==="pathname"){if(u.value==="/"&&!(d!=null&&d.value))return!0;if(d){if(t.caseSensitive){if(u.value!==d.value)return!1}else if(u.value.toLowerCase()!==d.value.toLowerCase())return!1}}if(!d)return!1;if(u.type==="param"){if(d.value==="/")return!1;d.value.charAt(0)!=="$"&&(r[u.value.substring(1)]=decodeURIComponent(d.value))}}if(!h&&l)return r["**"]=Dh(i.slice(o+1).map(f=>f.value)),!!t.fuzzy&&(u==null?void 0:u.value)!=="/"}return!0})()?r:void 0}function hd(c){return!!(c!=null&&c.isNotFound)}const JT="tsr-scroll-restoration-v1_3";let J5=!1;try{J5=typeof window<"u"&&typeof window.sessionStorage=="object"}catch{}const M7=(c,e)=>{let t;return(...s)=>{t||(t=setTimeout(()=>{c(...s),t=null},e))}},Wy=J5?{state:JSON.parse(window.sessionStorage.getItem(JT)||"null")||{},set:e=>(Wy.state=dm(e,Wy.state)||Wy.state,window.sessionStorage.setItem(JT,JSON.stringify(Wy.state)))}:void 0,NM=c=>c.state.key||c.href;function _7(c){const e=[];let t;for(;t=c.parentNode;)e.unshift(`${c.tagName}:nth-child(${[].indexOf.call(t.children,c)+1})`),c=t;return`${e.join(" > ")}`.toLowerCase()}let eO=!1;function eV(c,e,t,s,i){var n;let r;try{r=JSON.parse(sessionStorage.getItem(c)||"{}")}catch(d){console.error(d);return}const a=e||((n=window.history.state)==null?void 0:n.key),o=r[a];eO=!0,(()=>{if(s&&o){for(const u in o){const h=o[u];if(u==="window")window.scrollTo({top:h.scrollY,left:h.scrollX,behavior:t});else if(u){const l=document.querySelector(u);l&&(l.scrollLeft=h.scrollX,l.scrollTop=h.scrollY)}}return}const d=window.location.hash.split("#")[1];if(d){const u=(window.history.state||{}).__hashScrollIntoViewOptions??!0;if(u){const h=document.getElementById(d);h&&h.scrollIntoView(u)}return}["window",...(i==null?void 0:i.filter(u=>u!=="window"))??[]].forEach(u=>{const h=u==="window"?window:document.querySelector(u);h&&h.scrollTo({top:0,left:0,behavior:t})})})(),eO=!1}function A7(c,e){if((c.options.scrollRestoration??!1)&&(c.isScrollRestoring=!0),typeof document>"u"||c.isScrollRestorationSetup)return;c.isScrollRestorationSetup=!0,eO=!1;const s=c.options.getScrollRestorationKey||NM;window.history.scrollRestoration="manual";const i=n=>{if(eO||!c.isScrollRestoring)return;let r="";if(n.target===document||n.target===window)r="window";else{const o=n.target.getAttribute("data-scroll-restoration-id");o?r=`[data-scroll-restoration-id="${o}"]`:r=_7(n.target)}const a=s(c.state.location);Wy.set(o=>{const d=o[a]=o[a]||{},u=d[r]=d[r]||{};if(r==="window")u.scrollX=window.scrollX||0,u.scrollY=window.scrollY||0;else if(r){const h=document.querySelector(r);h&&(u.scrollX=h.scrollLeft||0,u.scrollY=h.scrollTop||0)}return o})};typeof document<"u"&&document.addEventListener("scroll",M7(i,100),!0),c.subscribe("onRendered",n=>{const r=s(n.toLocation);if(!c.resetNextScroll){c.resetNextScroll=!0;return}eV(JT,r,c.options.scrollRestorationBehavior||void 0,c.isScrollRestoring||void 0,c.options.scrollToTopSelectors||void 0),c.isScrollRestoring&&Wy.set(a=>(a[r]=a[r]||{},a))})}function L7(c,e){let t,s,i,n="";for(t in c)if((i=c[t])!==void 0)if(Array.isArray(i))for(s=0;s{e.substring(0,1)==="?"&&(e=e.substring(1));const t=B7(e);for(const s in t){const i=t[s];if(typeof i=="string")try{t[s]=c(i)}catch{}}return t}}function D7(c,e){function t(s){if(typeof s=="object"&&s!==null)try{return c(s)}catch{}else if(typeof s=="string"&&typeof e=="function")try{return e(s),c(s)}catch{}return s}return s=>{s={...s},Object.keys(s).forEach(n=>{const r=s[n];typeof r>"u"||r===void 0?delete s[n]:s[n]=t(r)});const i=L7(s).toString();return i?`?${i}`:""}}const ic="__root__";function Jp(c){return!!(c!=null&&c.isRedirect)}function qI(c){return!!(c!=null&&c.isRedirect)&&c.href}function r0(c){const e=c.resolvedLocation,t=c.location,s=(e==null?void 0:e.pathname)!==t.pathname,i=(e==null?void 0:e.href)!==t.href,n=(e==null?void 0:e.hash)!==t.hash;return{fromLocation:e,toLocation:t,pathChanged:s,hrefChanged:i,hashChanged:n}}class q7{constructor(e){this.tempLocationKey=`${Math.round(Math.random()*1e7)}`,this.resetNextScroll=!0,this.shouldViewTransition=void 0,this.isViewTransitionTypesSupported=void 0,this.subscribers=new Set,this.isScrollRestoring=!1,this.isScrollRestorationSetup=!1,this.startTransition=t=>t(),this.update=t=>{var s;t.notFoundRoute&&console.warn("The notFoundRoute API is deprecated and will be removed in the next major version. See https://tanstack.com/router/v1/docs/framework/react/guide/not-found-errors#migrating-from-notfoundroute for more info.");const i=this.options;this.options={...this.options,...t},this.isServer=this.options.isServer??typeof document>"u",this.pathParamsDecodeCharMap=this.options.pathParamsAllowedCharacters?new Map(this.options.pathParamsAllowedCharacters.map(n=>[encodeURIComponent(n),n])):void 0,(!this.basepath||t.basepath&&t.basepath!==i.basepath)&&(t.basepath===void 0||t.basepath===""||t.basepath==="/"?this.basepath="/":this.basepath=`/${O7(t.basepath)}`),(!this.history||this.options.history&&this.options.history!==this.history)&&(this.history=this.options.history??(this.isServer?S7({initialEntries:[this.basepath||"/"]}):Z5()),this.latestLocation=this.parseLocation()),this.options.routeTree!==this.routeTree&&(this.routeTree=this.options.routeTree,this.buildRouteTree()),this.__store||(this.__store=new AM(F7(this.latestLocation),{onUpdate:()=>{this.__store.state={...this.state,cachedMatches:this.state.cachedMatches.filter(n=>!["redirected"].includes(n.status))}}}),A7(this)),typeof window<"u"&&"CSS"in window&&typeof((s=window.CSS)==null?void 0:s.supports)=="function"&&(this.isViewTransitionTypesSupported=window.CSS.supports("selector(:active-view-transition-type(a)"))},this.buildRouteTree=()=>{this.routesById={},this.routesByPath={};const t=this.options.notFoundRoute;t&&(t.init({originalIndex:99999999999,defaultSsr:this.options.defaultSsr}),this.routesById[t.id]=t);const s=r=>{r.forEach((a,o)=>{a.init({originalIndex:o,defaultSsr:this.options.defaultSsr});const d=this.routesById[a.id];if(Ah(!d,`Duplicate routes found with id: ${String(a.id)}`),this.routesById[a.id]=a,!a.isRoot&&a.path){const h=cm(a.fullPath);(!this.routesByPath[h]||a.fullPath.endsWith("/"))&&(this.routesByPath[h]=a)}const u=a.children;u!=null&&u.length&&s(u)})};s([this.routeTree]);const i=[];Object.values(this.routesById).forEach((r,a)=>{var o;if(r.isRoot||!r.path)return;const d=p_(r.fullPath),u=T0(d);for(;u.length>1&&((o=u[0])==null?void 0:o.value)==="/";)u.shift();const h=u.map(l=>l.value==="/"?.75:l.type==="param"?.5:l.type==="wildcard"?.25:1);i.push({child:r,trimmed:d,parsed:u,index:a,scores:h})}),this.flatRoutes=i.sort((r,a)=>{const o=Math.min(r.scores.length,a.scores.length);for(let d=0;da.parsed[d].value?1:-1;return r.index-a.index}).map((r,a)=>(r.child.rank=a,r.child))},this.subscribe=(t,s)=>{const i={eventType:t,fn:s};return this.subscribers.add(i),()=>{this.subscribers.delete(i)}},this.emit=t=>{this.subscribers.forEach(s=>{s.eventType===t.type&&s.fn(t)})},this.parseLocation=(t,s)=>{const i=({pathname:o,search:d,hash:u,state:h})=>{const l=this.options.parseSearch(d),f=this.options.stringifySearch(l);return{pathname:o,searchStr:f,search:od(t==null?void 0:t.search,l),hash:u.split("#").reverse()[0]??"",href:`${o}${f}${u}`,state:od(t==null?void 0:t.state,h)}},n=i(s??this.history.location),{__tempLocation:r,__tempKey:a}=n.state;if(r&&(!a||a===this.tempLocationKey)){const o=i(r);return o.state.key=n.state.key,delete o.state.__tempLocation,{...o,maskedLocation:n}}return n},this.resolvePathWithBase=(t,s)=>P7({basepath:this.basepath,base:t,to:JO(s),trailingSlash:this.options.trailingSlash,caseSensitive:this.options.caseSensitive}),this.matchRoutes=(t,s,i)=>typeof t=="string"?this.matchRoutesInternal({pathname:t,search:s},i):this.matchRoutesInternal(t,s),this.getMatchedRoutes=(t,s)=>{let i={};const n=cm(t.pathname),r=u=>E1(this.basepath,n,{to:u.fullPath,caseSensitive:u.options.caseSensitive??this.options.caseSensitive,fuzzy:!0});let a=(s==null?void 0:s.to)!==void 0?this.routesByPath[s.to]:void 0;a?i=r(a):a=this.flatRoutes.find(u=>{const h=r(u);return h?(i=h,!0):!1});let o=a||this.routesById[ic];const d=[o];for(;o.parentRoute;)o=o.parentRoute,d.unshift(o);return{matchedRoutes:d,routeParams:i,foundRoute:a}},this.cancelMatch=t=>{const s=this.getMatch(t);s&&(s.abortController.abort(),clearTimeout(s.pendingTimeout))},this.cancelMatches=()=>{var t;(t=this.state.pendingMatches)==null||t.forEach(s=>{this.cancelMatch(s.id)})},this.buildLocation=t=>{const s=(n={},r)=>{var a,o,d,u,h,l,f;const p=n._fromLocation?this.matchRoutes(n._fromLocation,{_buildLocation:!0}):this.state.matches,m=n.from!=null?p.find(G=>E1(this.basepath,cm(G.pathname),{to:n.from,caseSensitive:!1,fuzzy:!1})):void 0,g=(m==null?void 0:m.pathname)||this.latestLocation.pathname;Ah(n.from==null||m!=null,"Could not find match for from: "+n.from);const y=(a=this.state.pendingMatches)!=null&&a.length?(o=Uy(this.state.pendingMatches))==null?void 0:o.search:((d=Uy(p))==null?void 0:d.search)||this.latestLocation.search,b=r==null?void 0:r.matchedRoutes.filter(G=>p.find(W=>W.routeId===G.id));let k;if(n.to){const G=(m==null?void 0:m.fullPath)||((u=Uy(p))==null?void 0:u.fullPath)||this.latestLocation.pathname;k=this.resolvePathWithBase(G,`${n.to}`)}else{const G=this.routesById[(h=b==null?void 0:b.find(W=>{const te=N1({path:W.fullPath,params:(r==null?void 0:r.routeParams)??{},decodeCharMap:this.pathParamsDecodeCharMap}).interpolatedPath;return Dh([this.basepath,te])===g}))==null?void 0:h.id];k=this.resolvePathWithBase(g,(G==null?void 0:G.to)??g)}const T={...(l=Uy(p))==null?void 0:l.params};let O=(n.params??!0)===!0?T:{...T,...dm(n.params,T)};Object.keys(O).length>0&&(r==null||r.matchedRoutes.map(G=>{var W;return((W=G.options.params)==null?void 0:W.stringify)??G.options.stringifyParams}).filter(Boolean).forEach(G=>{O={...O,...G(O)}})),k=N1({path:k,params:O??{},leaveWildcards:!1,leaveParams:t.leaveParams,decodeCharMap:this.pathParamsDecodeCharMap}).interpolatedPath;let A=y;if(t._includeValidateSearch&&((f=this.options.search)!=null&&f.strict)){let G={};r==null||r.matchedRoutes.forEach(W=>{try{W.options.validateSearch&&(G={...G,...VI(W.options.validateSearch,{...G,...A})??{}})}catch{}}),A=G}A=(G=>{const W=(r==null?void 0:r.matchedRoutes.reduce((Y,ae)=>{var re;const ie=[];if("search"in ae.options)(re=ae.options.search)!=null&&re.middlewares&&ie.push(...ae.options.search.middlewares);else if(ae.options.preSearchFilters||ae.options.postSearchFilters){const ne=({search:ee,next:Z})=>{let oe=ee;"preSearchFilters"in ae.options&&ae.options.preSearchFilters&&(oe=ae.options.preSearchFilters.reduce((le,ke)=>ke(le),ee));const ce=Z(oe);return"postSearchFilters"in ae.options&&ae.options.postSearchFilters?ae.options.postSearchFilters.reduce((le,ke)=>ke(le),ce):ce};ie.push(ne)}if(t._includeValidateSearch&&ae.options.validateSearch){const ne=({search:ee,next:Z})=>{const oe=Z(ee);try{return{...oe,...VI(ae.options.validateSearch,oe)??{}}}catch{return oe}};ie.push(ne)}return Y.concat(ie)},[]))??[],te=({search:Y})=>n.search?n.search===!0?Y:dm(n.search,Y):{};W.push(te);const X=(Y,ae)=>{if(Y>=W.length)return ae;const re=W[Y];return re({search:ae,next:ne=>X(Y+1,ne)})};return X(0,G)})(A),A=od(y,A);const L=this.options.stringifySearch(A),E=n.hash===!0?this.latestLocation.hash:n.hash?dm(n.hash,this.latestLocation.hash):void 0,N=E?`#${E}`:"";let F=n.state===!0?this.latestLocation.state:n.state?dm(n.state,this.latestLocation.state):{};return F=od(this.latestLocation.state,F),{pathname:k,search:A,searchStr:L,state:F,hash:E??"",href:`${k}${L}${N}`,unmaskOnReload:n.unmaskOnReload}},i=(n={},r)=>{var a;const o=s(n);let d=r?s(r):void 0;if(!d){let l={};const f=(a=this.options.routeMasks)==null?void 0:a.find(p=>{const m=E1(this.basepath,o.pathname,{to:p.from,caseSensitive:!1,fuzzy:!1});return m?(l=m,!0):!1});if(f){const{from:p,...m}=f;r={...BM(t,["from"]),...m,params:l},d=s(r)}}const u=this.getMatchedRoutes(o,n),h=s(n,u);if(d){const l=this.getMatchedRoutes(d,r),f=s(r,l);h.maskedLocation=f}return h};return t.mask?i(t,{...BM(t,["from"]),...t.mask}):i(t)},this.commitLocation=({viewTransition:t,ignoreBlocker:s,...i})=>{const n=()=>{const o=["key","__TSR_index","__hashScrollIntoViewOptions"];o.forEach(u=>{i.state[u]=this.latestLocation.state[u]});const d=n0(i.state,this.latestLocation.state);return o.forEach(u=>{delete i.state[u]}),d},r=this.latestLocation.href===i.href,a=this.commitLocationPromise;if(this.commitLocationPromise=qy(()=>{a==null||a.resolve()}),r&&n())this.load();else{let{maskedLocation:o,hashScrollIntoView:d,...u}=i;o&&(u={...o,state:{...o.state,__tempKey:void 0,__tempLocation:{...u,search:u.searchStr,state:{...u.state,__tempKey:void 0,__tempLocation:void 0,key:void 0}}}},(u.unmaskOnReload??this.options.unmaskOnReload??!1)&&(u.state.__tempKey=this.tempLocationKey)),u.state.__hashScrollIntoViewOptions=d??this.options.defaultHashScrollIntoView??!0,this.shouldViewTransition=t,this.history[i.replace?"replace":"push"](u.href,u.state,{ignoreBlocker:s})}return this.resetNextScroll=i.resetScroll??!0,this.history.subscribers.size||this.load(),this.commitLocationPromise},this.buildAndCommitLocation=({replace:t,resetScroll:s,hashScrollIntoView:i,viewTransition:n,ignoreBlocker:r,href:a,...o}={})=>{if(a){const u=this.history.location.state.__TSR_index,h=v0(a,{__TSR_index:t?u:u+1});o.to=h.pathname,o.search=this.options.parseSearch(h.search),o.hash=h.hash.slice(1)}const d=this.buildLocation({...o,_includeValidateSearch:!0});return this.commitLocation({...d,viewTransition:n,replace:t,resetScroll:s,hashScrollIntoView:i,ignoreBlocker:r})},this.navigate=({to:t,reloadDocument:s,href:i,...n})=>{if(s){if(!i){const r=this.buildLocation({to:t,...n});i=this.history.createHref(r.href)}n.replace?window.location.replace(i):window.location.href=i;return}return this.buildAndCommitLocation({...n,href:i,to:t})},this.load=async t=>{this.latestLocation=this.parseLocation(this.latestLocation);let s,i,n;for(n=new Promise(r=>{this.startTransition(async()=>{var a;try{const o=this.latestLocation,d=this.state.resolvedLocation;this.cancelMatches();let u;DI(()=>{u=this.matchRoutes(o),this.__store.setState(h=>({...h,status:"pending",isLoading:!0,location:o,pendingMatches:u,cachedMatches:h.cachedMatches.filter(l=>!u.find(f=>f.id===l.id))}))}),this.state.redirect||this.emit({type:"onBeforeNavigate",...r0({resolvedLocation:d,location:o})}),this.emit({type:"onBeforeLoad",...r0({resolvedLocation:d,location:o})}),await this.loadMatches({sync:t==null?void 0:t.sync,matches:u,location:o,onReady:async()=>{this.startViewTransition(async()=>{let h,l,f;DI(()=>{this.__store.setState(p=>{const m=p.matches,g=p.pendingMatches||p.matches;return h=m.filter(y=>!g.find(b=>b.id===y.id)),l=g.filter(y=>!m.find(b=>b.id===y.id)),f=m.filter(y=>g.find(b=>b.id===y.id)),{...p,isLoading:!1,loadedAt:Date.now(),matches:g,pendingMatches:void 0,cachedMatches:[...p.cachedMatches,...h.filter(y=>y.status!=="error")]}}),this.clearExpiredCache()}),[[h,"onLeave"],[l,"onEnter"],[f,"onStay"]].forEach(([p,m])=>{p.forEach(g=>{var y,b;(b=(y=this.looseRoutesById[g.routeId].options)[m])==null||b.call(y,g)})})})}})}catch(o){qI(o)?(s=o,this.isServer||this.navigate({...s,replace:!0,ignoreBlocker:!0})):hd(o)&&(i=o),this.__store.setState(d=>({...d,statusCode:s?s.statusCode:i?404:d.matches.some(u=>u.status==="error")?500:200,redirect:s}))}this.latestLoadPromise===n&&((a=this.commitLocationPromise)==null||a.resolve(),this.latestLoadPromise=void 0,this.commitLocationPromise=void 0),r()})}),this.latestLoadPromise=n,await n;this.latestLoadPromise&&n!==this.latestLoadPromise;)await this.latestLoadPromise;this.hasNotFoundMatch()&&this.__store.setState(r=>({...r,statusCode:404}))},this.startViewTransition=t=>{const s=this.shouldViewTransition??this.options.defaultViewTransition;if(delete this.shouldViewTransition,s&&typeof document<"u"&&"startViewTransition"in document&&typeof document.startViewTransition=="function"){let i;typeof s=="object"&&this.isViewTransitionTypesSupported?i={update:t,types:s.types}:i=t,document.startViewTransition(i)}else t()},this.updateMatch=(t,s)=>{var i;let n;const r=(i=this.state.pendingMatches)==null?void 0:i.find(u=>u.id===t),a=this.state.matches.find(u=>u.id===t),o=this.state.cachedMatches.find(u=>u.id===t),d=r?"pendingMatches":a?"matches":o?"cachedMatches":"";return d&&this.__store.setState(u=>{var h;return{...u,[d]:(h=u[d])==null?void 0:h.map(l=>l.id===t?n=s(l):l)}}),n},this.getMatch=t=>[...this.state.cachedMatches,...this.state.pendingMatches??[],...this.state.matches].find(s=>s.id===t),this.loadMatches=async({location:t,matches:s,preload:i,onReady:n,updateMatch:r=this.updateMatch,sync:a})=>{let o,d=!1;const u=async()=>{d||(d=!0,await(n==null?void 0:n()))},h=f=>!!(i&&!this.state.matches.find(p=>p.id===f));!this.isServer&&!this.state.matches.length&&u();const l=(f,p)=>{var m,g,y,b;if(qI(p)&&!p.reloadDocument)throw p;if(Jp(p)||hd(p)){if(r(f.id,k=>({...k,status:Jp(p)?"redirected":hd(p)?"notFound":"error",isFetching:!1,error:p,beforeLoadPromise:void 0,loaderPromise:void 0})),p.routeId||(p.routeId=f.routeId),(m=f.beforeLoadPromise)==null||m.resolve(),(g=f.loaderPromise)==null||g.resolve(),(y=f.loadPromise)==null||y.resolve(),Jp(p))throw d=!0,p=this.resolveRedirect({...p,_fromLocation:t}),p;if(hd(p))throw this._handleNotFound(s,p,{updateMatch:r}),(b=this.serverSsr)==null||b.onMatchSettled({router:this,match:this.getMatch(f.id)}),p}};try{await new Promise((f,p)=>{(async()=>{var m,g,y,b;try{const k=(A,B,L)=>{var E,N;const{id:F,routeId:G}=s[A],W=this.looseRoutesById[G];if(B instanceof Promise)throw B;B.routerCode=L,o=o??A,l(this.getMatch(F),B);try{(N=(E=W.options).onError)==null||N.call(E,B)}catch(te){B=te,l(this.getMatch(F),B)}r(F,te=>{var X,Y;return(X=te.beforeLoadPromise)==null||X.resolve(),(Y=te.loadPromise)==null||Y.resolve(),{...te,error:B,status:"error",isFetching:!1,updatedAt:Date.now(),abortController:new AbortController,beforeLoadPromise:void 0}})};for(const[A,{id:B,routeId:L}]of s.entries()){const E=this.getMatch(B),N=(m=s[A-1])==null?void 0:m.id,F=this.looseRoutesById[L],G=F.options.pendingMs??this.options.defaultPendingMs,W=!!(n&&!this.isServer&&!h(B)&&(F.options.loader||F.options.beforeLoad)&&typeof G=="number"&&G!==1/0&&(F.options.pendingComponent??((g=this.options)==null?void 0:g.defaultPendingComponent)));let te=!0;if((E.beforeLoadPromise||E.loaderPromise)&&(W&&setTimeout(()=>{try{u()}catch{}},G),await E.beforeLoadPromise,te=this.getMatch(B).status!=="success"),te){try{r(B,be=>{const pe=be.loadPromise;return{...be,loadPromise:qy(()=>{pe==null||pe.resolve()}),beforeLoadPromise:qy()}});const X=new AbortController;let Y;W&&(Y=setTimeout(()=>{try{u()}catch{}},G));const{paramsError:ae,searchError:re}=this.getMatch(B);ae&&k(A,ae,"PARSE_PARAMS"),re&&k(A,re,"VALIDATE_SEARCH");const ie=()=>N?this.getMatch(N).context:this.options.context??{};r(B,be=>({...be,isFetching:"beforeLoad",fetchCount:be.fetchCount+1,abortController:X,pendingTimeout:Y,context:{...ie(),...be.__routeContext}}));const{search:ne,params:ee,context:Z,cause:oe}=this.getMatch(B),ce=h(B),le={search:ne,abortController:X,params:ee,preload:ce,context:Z,location:t,navigate:be=>this.navigate({...be,_fromLocation:t}),buildLocation:this.buildLocation,cause:ce?"preload":oe,matches:s},ke=await((b=(y=F.options).beforeLoad)==null?void 0:b.call(y,le))??{};(Jp(ke)||hd(ke))&&k(A,ke,"BEFORE_LOAD"),r(B,be=>({...be,__beforeLoadContext:ke,context:{...ie(),...be.__routeContext,...ke},abortController:X}))}catch(X){k(A,X,"BEFORE_LOAD")}r(B,X=>{var Y;return(Y=X.beforeLoadPromise)==null||Y.resolve(),{...X,beforeLoadPromise:void 0,isFetching:!1}})}}const T=s.slice(0,o),O=[];T.forEach(({id:A,routeId:B},L)=>{O.push((async()=>{const{loaderPromise:E}=this.getMatch(A);let N=!1,F=!1;if(E){await E;const G=this.getMatch(A);G.error&&l(G,G.error)}else{const G=O[L-1],W=this.looseRoutesById[B],te=()=>{const{params:oe,loaderDeps:ce,abortController:le,context:ke,cause:be}=this.getMatch(A),pe=h(A);return{params:oe,deps:ce,preload:!!pe,parentMatchPromise:G,abortController:le,context:ke,location:t,navigate:Te=>this.navigate({...Te,_fromLocation:t}),cause:pe?"preload":be,route:W}},X=Date.now()-this.getMatch(A).updatedAt,Y=h(A),ae=Y?W.options.preloadStaleTime??this.options.defaultPreloadStaleTime??3e4:W.options.staleTime??this.options.defaultStaleTime??0,re=W.options.shouldReload,ie=typeof re=="function"?re(te()):re;r(A,oe=>({...oe,loaderPromise:qy(),preload:!!Y&&!this.state.matches.find(ce=>ce.id===A)}));const ne=async()=>{var oe,ce,le,ke,be,pe,Te,xe,Pe,Ne,tt;try{const at=async()=>{const $e=this.getMatch(A);$e.minPendingPromise&&await $e.minPendingPromise};try{this.loadRouteChunk(W),r(A,lt=>({...lt,isFetching:"loader"}));const $e=await((ce=(oe=W.options).loader)==null?void 0:ce.call(oe,te()));l(this.getMatch(A),$e),await W._lazyPromise,await at();const Ue={matches:s,match:this.getMatch(A),params:this.getMatch(A).params,loaderData:$e},De=(ke=(le=W.options).head)==null?void 0:ke.call(le,Ue),ze=De==null?void 0:De.meta,gt=De==null?void 0:De.links,yt=De==null?void 0:De.scripts,Xe=(pe=(be=W.options).scripts)==null?void 0:pe.call(be,Ue),st=(xe=(Te=W.options).headers)==null?void 0:xe.call(Te,{loaderData:$e});r(A,lt=>({...lt,error:void 0,status:"success",isFetching:!1,updatedAt:Date.now(),loaderData:$e,meta:ze,links:gt,headScripts:yt,headers:st,scripts:Xe}))}catch($e){let Ue=$e;await at(),l(this.getMatch(A),$e);try{(Ne=(Pe=W.options).onError)==null||Ne.call(Pe,$e)}catch(De){Ue=De,l(this.getMatch(A),De)}r(A,De=>({...De,error:Ue,status:"error",isFetching:!1}))}(tt=this.serverSsr)==null||tt.onMatchSettled({router:this,match:this.getMatch(A)}),await W._componentsPromise}catch(at){r(A,$e=>({...$e,loaderPromise:void 0})),l(this.getMatch(A),at)}},{status:ee,invalid:Z}=this.getMatch(A);N=ee==="success"&&(Z||(ie??X>ae)),Y&&W.options.preload===!1||(N&&!a?(F=!0,(async()=>{try{await ne();const{loaderPromise:oe,loadPromise:ce}=this.getMatch(A);oe==null||oe.resolve(),ce==null||ce.resolve(),r(A,le=>({...le,loaderPromise:void 0}))}catch(oe){qI(oe)&&await this.navigate(oe)}})()):(ee!=="success"||N&&a)&&await ne())}if(!F){const{loaderPromise:G,loadPromise:W}=this.getMatch(A);G==null||G.resolve(),W==null||W.resolve()}return r(A,G=>({...G,isFetching:F?G.isFetching:!1,loaderPromise:F?G.loaderPromise:void 0,invalid:!1})),this.getMatch(A)})())}),await Promise.all(O),f()}catch(k){p(k)}})()}),await u()}catch(f){if(Jp(f)||hd(f))throw hd(f)&&!i&&await u(),f}return s},this.invalidate=t=>{const s=i=>{var n;return((n=t==null?void 0:t.filter)==null?void 0:n.call(t,i))??!0?{...i,invalid:!0,...i.status==="error"?{status:"pending",error:void 0}:{}}:i};return this.__store.setState(i=>{var n;return{...i,matches:i.matches.map(s),cachedMatches:i.cachedMatches.map(s),pendingMatches:(n=i.pendingMatches)==null?void 0:n.map(s)}}),this.load({sync:t==null?void 0:t.sync})},this.resolveRedirect=t=>{const s=t;return s.href||(s.href=this.buildLocation(s).href),s},this.clearCache=t=>{const s=t==null?void 0:t.filter;s!==void 0?this.__store.setState(i=>({...i,cachedMatches:i.cachedMatches.filter(n=>!s(n))})):this.__store.setState(i=>({...i,cachedMatches:[]}))},this.clearExpiredCache=()=>{const t=s=>{const i=this.looseRoutesById[s.routeId];if(!i.options.loader)return!0;const n=(s.preload?i.options.preloadGcTime??this.options.defaultPreloadGcTime:i.options.gcTime??this.options.defaultGcTime)??5*60*1e3;return!(s.status!=="error"&&Date.now()-s.updatedAt(t._lazyPromise===void 0&&(t.lazyFn?t._lazyPromise=t.lazyFn().then(s=>{const{id:i,...n}=s.options;Object.assign(t.options,n)}):t._lazyPromise=Promise.resolve()),t._componentsPromise===void 0&&(t._componentsPromise=t._lazyPromise.then(()=>Promise.all(tV.map(async s=>{const i=t.options[s];i!=null&&i.preload&&await i.preload()})))),t._componentsPromise),this.preloadRoute=async t=>{const s=this.buildLocation(t);let i=this.matchRoutes(s,{throwOnError:!0,preload:!0,dest:t});const n=new Set([...this.state.matches,...this.state.pendingMatches??[]].map(a=>a.id)),r=new Set([...n,...this.state.cachedMatches.map(a=>a.id)]);DI(()=>{i.forEach(a=>{r.has(a.id)||this.__store.setState(o=>({...o,cachedMatches:[...o.cachedMatches,a]}))})});try{return i=await this.loadMatches({matches:i,location:s,preload:!0,updateMatch:(a,o)=>{n.has(a)?i=i.map(d=>d.id===a?o(d):d):this.updateMatch(a,o)}}),i}catch(a){if(Jp(a))return a.reloadDocument?void 0:await this.preloadRoute({...a,_fromLocation:s});hd(a)||console.error(a);return}},this.matchRoute=(t,s)=>{const i={...t,to:t.to?this.resolvePathWithBase(t.from||"",t.to):void 0,params:t.params||{},leaveParams:!0},n=this.buildLocation(i);if(s!=null&&s.pending&&this.state.status!=="pending")return!1;const a=((s==null?void 0:s.pending)===void 0?!this.state.isLoading:s.pending)?this.latestLocation:this.state.resolvedLocation||this.state.location,o=E1(this.basepath,a.pathname,{...s,to:n.pathname});return!o||t.params&&!n0(o,t.params,{partial:!0})?!1:o&&((s==null?void 0:s.includeSearch)??!0)?n0(a.search,n.search,{partial:!0})?o:!1:o},this._handleNotFound=(t,s,{updateMatch:i=this.updateMatch}={})=>{var n;const r=this.routesById[s.routeId??""]??this.routeTree,a={};for(const d of t)a[d.routeId]=d;!r.options.notFoundComponent&&((n=this.options)!=null&&n.defaultNotFoundComponent)&&(r.options.notFoundComponent=this.options.defaultNotFoundComponent),Ah(r.options.notFoundComponent);const o=a[r.id];Ah(o,"Could not find match for route: "+r.id),i(o.id,d=>({...d,status:"notFound",error:s,isFetching:!1})),s.routerCode==="BEFORE_LOAD"&&r.parentRoute&&(s.routeId=r.parentRoute.id,this._handleNotFound(t,s,{updateMatch:i}))},this.hasNotFoundMatch=()=>this.__store.state.matches.some(t=>t.status==="notFound"||t.globalNotFound),this.update({defaultPreloadDelay:50,defaultPendingMs:1e3,defaultPendingMinMs:500,context:void 0,...e,caseSensitive:e.caseSensitive??!1,notFoundMode:e.notFoundMode??"fuzzy",stringifySearch:e.stringifySearch??E7,parseSearch:e.parseSearch??N7}),typeof document<"u"&&(window.__TSR_ROUTER__=this)}get state(){return this.__store.state}get looseRoutesById(){return this.routesById}matchRoutesInternal(e,t){const{foundRoute:s,matchedRoutes:i,routeParams:n}=this.getMatchedRoutes(e,t==null?void 0:t.dest);let r=!1;(s?s.path!=="/"&&n["**"]:cm(e.pathname))&&(this.options.notFoundRoute?i.push(this.options.notFoundRoute):r=!0);const a=(()=>{if(r){if(this.options.notFoundMode!=="root")for(let h=i.length-1;h>=0;h--){const l=i[h];if(l.children)return l.id}return ic}})(),o=i.map(h=>{var l;let f;const p=((l=h.options.params)==null?void 0:l.parse)??h.options.parseParams;if(p)try{const m=p(n);Object.assign(n,m)}catch(m){if(f=new V7(m.message,{cause:m}),t!=null&&t.throwOnError)throw f;return f}}),d=[],u=h=>(h==null?void 0:h.id)?h.context??this.options.context??{}:this.options.context??{};return i.forEach((h,l)=>{var f,p;const m=d[l-1],[g,y,b]=(()=>{const W=(m==null?void 0:m.search)??e.search,te=(m==null?void 0:m._strictSearch)??{};try{const X=VI(h.options.validateSearch,{...W})??{};return[{...W,...X},{...te,...X},void 0]}catch(X){let Y=X;if(X instanceof tO||(Y=new tO(X.message,{cause:X})),t!=null&&t.throwOnError)throw Y;return[W,{},Y]}})(),k=((p=(f=h.options).loaderDeps)==null?void 0:p.call(f,{search:g}))??"",T=k?JSON.stringify(k):"",{usedParams:O,interpolatedPath:A}=N1({path:h.fullPath,params:n,decodeCharMap:this.pathParamsDecodeCharMap}),B=N1({path:h.id,params:n,leaveWildcards:!0,decodeCharMap:this.pathParamsDecodeCharMap}).interpolatedPath+T,L=this.getMatch(B),E=this.state.matches.find(W=>W.routeId===h.id),N=E?"stay":"enter";let F;if(L)F={...L,cause:N,params:E?od(E.params,n):n,_strictParams:O,search:od(E?E.search:L.search,g),_strictSearch:y};else{const W=h.options.loader||h.options.beforeLoad||h.lazyFn||H7(h)?"pending":"success";F={id:B,index:l,routeId:h.id,params:E?od(E.params,n):n,_strictParams:O,pathname:Dh([this.basepath,A]),updatedAt:Date.now(),search:E?od(E.search,g):g,_strictSearch:y,searchError:void 0,status:W,isFetching:!1,error:void 0,paramsError:o[l],__routeContext:{},__beforeLoadContext:{},context:{},abortController:new AbortController,fetchCount:0,cause:N,loaderDeps:E?od(E.loaderDeps,k):k,invalid:!1,preload:!1,links:void 0,scripts:void 0,headScripts:void 0,meta:void 0,staticData:h.options.staticData||{},loadPromise:qy(),fullPath:h.fullPath}}t!=null&&t.preload||(F.globalNotFound=a===h.id),F.searchError=b;const G=u(m);F.context={...G,...F.__routeContext,...F.__beforeLoadContext},d.push(F)}),d.forEach((h,l)=>{var f,p,m,g,y,b,k,T;const O=this.looseRoutesById[h.routeId];if(!this.getMatch(h.id)&&(t==null?void 0:t._buildLocation)!==!0){const B=d[l-1],L=u(B),E={deps:h.loaderDeps,params:h.params,context:L,location:e,navigate:N=>this.navigate({...N,_fromLocation:e}),buildLocation:this.buildLocation,cause:h.cause,abortController:h.abortController,preload:!!h.preload,matches:d};h.__routeContext=((p=(f=O.options).context)==null?void 0:p.call(f,E))??{},h.context={...L,...h.__routeContext,...h.__beforeLoadContext}}if(h.status==="success"){h.headers=(g=(m=O.options).headers)==null?void 0:g.call(m,{loaderData:h.loaderData});const B={matches:d,match:h,params:h.params,loaderData:h.loaderData},L=(b=(y=O.options).head)==null?void 0:b.call(y,B);h.links=L==null?void 0:L.links,h.headScripts=L==null?void 0:L.scripts,h.meta=L==null?void 0:L.meta,h.scripts=(T=(k=O.options).scripts)==null?void 0:T.call(k,B)}}),d}}class tO extends Error{}class V7 extends Error{}function F7(c){return{loadedAt:0,isLoading:!1,isTransitioning:!1,status:"idle",resolvedLocation:void 0,location:c,matches:[],pendingMatches:[],cachedMatches:[],statusCode:200}}function VI(c,e){if(c==null)return{};if("~standard"in c){const t=c["~standard"].validate(e);if(t instanceof Promise)throw new tO("Async validation not supported");if(t.issues)throw new tO(JSON.stringify(t.issues,void 0,2),{cause:t});return t.value}return"parse"in c?c.parse(e):typeof c=="function"?c(e):{}}const tV=["component","errorComponent","pendingComponent","notFoundComponent"];function H7(c){var e;for(const t of tV)if((e=c.options[t])!=null&&e.preload)return!0;return!1}const G7="Error preloading route! ☝️";class sV{constructor(e){if(this.init=t=>{var s,i;this.originalIndex=t.originalIndex;const n=this.options,r=!(n!=null&&n.path)&&!(n!=null&&n.id);if(this.parentRoute=(i=(s=this.options).getParentRoute)==null?void 0:i.call(s),r)this._path=ic;else if(!this.parentRoute)throw new Error("Child Route instances must pass a 'getParentRoute: () => ParentRoute' option that returns a Route instance.");let a=r?ic:n==null?void 0:n.path;a&&a!=="/"&&(a=p_(a));const o=(n==null?void 0:n.id)||a;let d=r?ic:Dh([this.parentRoute.id===ic?"":this.parentRoute.id,o]);a===ic&&(a="/"),d!==ic&&(d=Dh(["/",d]));const u=d===ic?"/":Dh([this.parentRoute.fullPath,a]);this._path=a,this._id=d,this._fullPath=u,this._to=u,this._ssr=(n==null?void 0:n.ssr)??t.defaultSsr??!0},this.addChildren=t=>this._addFileChildren(t),this._addFileChildren=t=>(Array.isArray(t)&&(this.children=t),typeof t=="object"&&t!==null&&(this.children=Object.values(t)),this),this._addFileTypes=()=>this,this.updateLoader=t=>(Object.assign(this.options,t),this),this.update=t=>(Object.assign(this.options,t),this),this.lazy=t=>(this.lazyFn=t,this),this.options=e||{},this.isRoot=!(e!=null&&e.getParentRoute),e!=null&&e.id&&(e!=null&&e.path))throw new Error("Route cannot have both an 'id' and a 'path' option.")}get to(){return this._to}get id(){return this._id}get path(){return this._path}get fullPath(){return this._fullPath}get ssr(){return this._ssr}}class U7 extends sV{constructor(e){super(e)}}function m_(c){const e=c.errorComponent??ex;return P.jsx(W7,{getResetKey:c.getResetKey,onCatch:c.onCatch,children:({error:t,reset:s})=>t?q.createElement(e,{error:t,reset:s}):c.children})}class W7 extends q.Component{constructor(){super(...arguments),this.state={error:null}}static getDerivedStateFromProps(e){return{resetKey:e.getResetKey()}}static getDerivedStateFromError(e){return{error:e}}reset(){this.setState({error:null})}componentDidUpdate(e,t){t.error&&t.resetKey!==this.state.resetKey&&this.reset()}componentDidCatch(e,t){this.props.onCatch&&this.props.onCatch(e,t)}render(){return this.props.children({error:this.state.resetKey!==this.props.getResetKey()?null:this.state.error,reset:()=>{this.reset()}})}}function ex({error:c}){const[e,t]=q.useState(!1);return P.jsxs("div",{style:{padding:".5rem",maxWidth:"100%"},children:[P.jsxs("div",{style:{display:"flex",alignItems:"center",gap:".5rem"},children:[P.jsx("strong",{style:{fontSize:"1rem"},children:"Something went wrong!"}),P.jsx("button",{style:{appearance:"none",fontSize:".6em",border:"1px solid currentColor",padding:".1rem .2rem",fontWeight:"bold",borderRadius:".25rem"},onClick:()=>t(s=>!s),children:e?"Hide Error":"Show Error"})]}),P.jsx("div",{style:{height:".25rem"}}),e?P.jsx("div",{children:P.jsx("pre",{style:{fontSize:".7em",border:"1px solid red",borderRadius:".25rem",padding:".3rem",color:"red",overflow:"auto"},children:c.message?P.jsx("code",{children:c.message}):null})}):null]})}var FI={exports:{}},HI={},GI={exports:{}},UI={};/** +`+$.stack}return{value:w,source:S,stack:H,digest:null}}function Xg(w,S,M){return{value:w,source:null,stack:M??null,digest:S??null}}function ql(w,S){try{console.error(S.value)}catch(M){setTimeout(function(){throw M})}}var n1=typeof WeakMap=="function"?WeakMap:Map;function Ap(w,S,M){M=jd(-1,M),M.tag=3,M.payload={element:null};var D=S.value;return M.callback=function(){ay||(ay=!0,mb=D),ql(w,S)},M}function Qg(w,S,M){M=jd(-1,M),M.tag=3;var D=w.type.getDerivedStateFromError;if(typeof D=="function"){var H=S.value;M.payload=function(){return D(H)},M.callback=function(){ql(w,S)}}var $=w.stateNode;return $!==null&&typeof $.componentDidCatch=="function"&&(M.callback=function(){ql(w,S),typeof D!="function"&&(Yc===null?Yc=new Set([this]):Yc.add(this));var he=S.stack;this.componentDidCatch(S.value,{componentStack:he!==null?he:""})}),M}function Lp(w,S,M){var D=w.pingCache;if(D===null){D=w.pingCache=new n1;var H=new Set;D.set(S,H)}else H=D.get(S),H===void 0&&(H=new Set,D.set(S,H));H.has(M)||(H.add(M),w=dI.bind(null,w,S,M),S.then(w,w))}function r1(w){do{var S;if((S=w.tag===13)&&(S=w.memoizedState,S=S!==null?S.dehydrated!==null:!0),S)return w;w=w.return}while(w!==null);return null}function eb(w,S,M,D,H){return(w.mode&1)===0?(w===S?w.flags|=65536:(w.flags|=128,M.flags|=131072,M.flags&=-52805,M.tag===1&&(M.alternate===null?M.tag=17:(S=jd(-1,1),S.tag=2,Ea(M,S,1))),M.lanes|=1),w):(w.flags|=65536,w.lanes=H,w)}var Yg=T.ReactCurrentOwner,Cr=!1;function Qn(w,S,M,D){S.child=w===null?Bg(S,null,M,D):Ji(S,w.child,M,D)}function a1(w,S,M,D,H){M=M.render;var $=S.ref;return jc(S,H),D=ah(w,S,M,D,$,H),M=Fg(),w!==null&&!Cr?(S.updateQueue=w.updateQueue,S.flags&=-2053,w.lanes&=~H,mo(w,S,H)):(Ri&&M&&kp(S),S.flags|=1,Qn(w,S,D,H),S.child)}function tb(w,S,M,D,H){if(w===null){var $=M.type;return typeof $=="function"&&!ly($)&&$.defaultProps===void 0&&M.compare===null&&M.defaultProps===void 0?(S.tag=15,S.type=$,sd(w,S,$,D,H)):(w=fy(M.type,null,D,S,S.mode,H),w.ref=S.ref,w.return=S,S.child=w)}if($=w.child,(w.lanes&H)===0){var he=$.memoizedProps;if(M=M.compare,M=M!==null?M:Dt,M(he,D)&&w.ref===S.ref)return mo(w,S,H)}return S.flags|=1,w=ko($,D),w.ref=S.ref,w.return=S,S.child=w}function sd(w,S,M,D,H){if(w!==null){var $=w.memoizedProps;if(Dt($,D)&&w.ref===S.ref)if(Cr=!1,S.pendingProps=D=$,(w.lanes&H)!==0)(w.flags&131072)!==0&&(Cr=!0);else return S.lanes=w.lanes,mo(w,S,H)}return nb(w,S,M,D,H)}function sb(w,S,M){var D=S.pendingProps,H=D.children,$=w!==null?w.memoizedState:null;if(D.mode==="hidden")if((S.mode&1)===0)S.memoizedState={baseLanes:0,cachePool:null,transitions:null},Mi(Gl,ma),ma|=M;else{if((M&1073741824)===0)return w=$!==null?$.baseLanes|M:M,S.lanes=S.childLanes=1073741824,S.memoizedState={baseLanes:w,cachePool:null,transitions:null},S.updateQueue=null,Mi(Gl,ma),ma|=w,null;S.memoizedState={baseLanes:0,cachePool:null,transitions:null},D=$!==null?$.baseLanes:M,Mi(Gl,ma),ma|=D}else $!==null?(D=$.baseLanes|M,S.memoizedState=null):D=M,Mi(Gl,ma),ma|=D;return Qn(w,S,H,M),S.child}function ib(w,S){var M=S.ref;(w===null&&M!==null||w!==null&&w.ref!==M)&&(S.flags|=512,S.flags|=2097152)}function nb(w,S,M,D,H){var $=$r(M)?Pr:cr.current;return $=Il(S,$),jc(S,H),M=ah(w,S,M,D,$,H),D=Fg(),w!==null&&!Cr?(S.updateQueue=w.updateQueue,S.flags&=-2053,w.lanes&=~H,mo(w,S,H)):(Ri&&D&&kp(S),S.flags|=1,Qn(w,S,M,H),S.child)}function rb(w,S,M,D,H){if($r(M)){var $=!0;_a(S)}else $=!1;if(jc(S,H),S.stateNode===null)Jg(w,S),oh(S,M,D),Jw(S,M,D,H),D=!0;else if(w===null){var he=S.stateNode,ve=S.memoizedProps;he.props=ve;var Ie=he.context,We=M.contextType;typeof We=="object"&&We!==null?We=Ba(We):(We=$r(M)?Pr:cr.current,We=Il(S,We));var ct=M.getDerivedStateFromProps,mt=typeof ct=="function"||typeof he.getSnapshotBeforeUpdate=="function";mt||typeof he.UNSAFE_componentWillReceiveProps!="function"&&typeof he.componentWillReceiveProps!="function"||(ve!==D||Ie!==We)&&Dl(S,he,D,We),Na=!1;var dt=S.memoizedState;he.state=dt,_l(S,D,he,H),Ie=S.memoizedState,ve!==D||dt!==Ie||zr.current||Na?(typeof ct=="function"&&($g(S,M,ct,D),Ie=S.memoizedState),(ve=Na||Zw(S,M,ve,D,dt,Ie,We))?(mt||typeof he.UNSAFE_componentWillMount!="function"&&typeof he.componentWillMount!="function"||(typeof he.componentWillMount=="function"&&he.componentWillMount(),typeof he.UNSAFE_componentWillMount=="function"&&he.UNSAFE_componentWillMount()),typeof he.componentDidMount=="function"&&(S.flags|=4194308)):(typeof he.componentDidMount=="function"&&(S.flags|=4194308),S.memoizedProps=D,S.memoizedState=Ie),he.props=D,he.state=Ie,he.context=We,D=ve):(typeof he.componentDidMount=="function"&&(S.flags|=4194308),D=!1)}else{he=S.stateNode,Qv(w,S),ve=S.memoizedProps,We=S.type===S.elementType?ve:Da(S.type,ve),he.props=We,mt=S.pendingProps,dt=he.context,Ie=M.contextType,typeof Ie=="object"&&Ie!==null?Ie=Ba(Ie):(Ie=$r(M)?Pr:cr.current,Ie=Il(S,Ie));var qt=M.getDerivedStateFromProps;(ct=typeof qt=="function"||typeof he.getSnapshotBeforeUpdate=="function")||typeof he.UNSAFE_componentWillReceiveProps!="function"&&typeof he.componentWillReceiveProps!="function"||(ve!==mt||dt!==Ie)&&Dl(S,he,D,Ie),Na=!1,dt=S.memoizedState,he.state=dt,_l(S,D,he,H);var Ut=S.memoizedState;ve!==mt||dt!==Ut||zr.current||Na?(typeof qt=="function"&&($g(S,M,qt,D),Ut=S.memoizedState),(We=Na||Zw(S,M,We,D,dt,Ut,Ie)||!1)?(ct||typeof he.UNSAFE_componentWillUpdate!="function"&&typeof he.componentWillUpdate!="function"||(typeof he.componentWillUpdate=="function"&&he.componentWillUpdate(D,Ut,Ie),typeof he.UNSAFE_componentWillUpdate=="function"&&he.UNSAFE_componentWillUpdate(D,Ut,Ie)),typeof he.componentDidUpdate=="function"&&(S.flags|=4),typeof he.getSnapshotBeforeUpdate=="function"&&(S.flags|=1024)):(typeof he.componentDidUpdate!="function"||ve===w.memoizedProps&&dt===w.memoizedState||(S.flags|=4),typeof he.getSnapshotBeforeUpdate!="function"||ve===w.memoizedProps&&dt===w.memoizedState||(S.flags|=1024),S.memoizedProps=D,S.memoizedState=Ut),he.props=D,he.state=Ut,he.context=Ie,D=We):(typeof he.componentDidUpdate!="function"||ve===w.memoizedProps&&dt===w.memoizedState||(S.flags|=4),typeof he.getSnapshotBeforeUpdate!="function"||ve===w.memoizedProps&&dt===w.memoizedState||(S.flags|=1024),D=!1)}return ab(w,S,M,D,$,H)}function ab(w,S,M,D,H,$){ib(w,S);var he=(S.flags&128)!==0;if(!D&&!he)return H&&Wv(S,M,!1),mo(w,S,$);D=S.stateNode,Yg.current=S;var ve=he&&typeof M.getDerivedStateFromError!="function"?null:D.render();return S.flags|=1,w!==null&&he?(S.child=Ji(S,w.child,null,$),S.child=Ji(S,null,ve,$)):Qn(w,S,ve,$),S.memoizedState=D.state,H&&Wv(S,M,!0),S.child}function o1(w){var S=w.stateNode;S.pendingContext?Gv(w,S.pendingContext,S.pendingContext!==S.context):S.context&&Gv(w,S.context,!1),Vw(w,S.containerInfo)}function id(w,S,M,D,H){return Yo(),Zo(H),S.flags|=256,Qn(w,S,M,D),S.child}var Bp={dehydrated:null,treeContext:null,retryLane:0};function Np(w){return{baseLanes:w,cachePool:null,transitions:null}}function Zg(w,S,M){var D=S.pendingProps,H=Hi.current,$=!1,he=(S.flags&128)!==0,ve;if((ve=he)||(ve=w!==null&&w.memoizedState===null?!1:(H&2)!==0),ve?($=!0,S.flags&=-129):(w===null||w.memoizedState!==null)&&(H|=1),Mi(Hi,H&1),w===null)return Kr(S),w=S.memoizedState,w!==null&&(w=w.dehydrated,w!==null)?((S.mode&1)===0?S.lanes=1:w.data==="$!"?S.lanes=8:S.lanes=1073741824,null):(he=D.children,w=D.fallback,$?(D=S.mode,$=S.child,he={mode:"hidden",children:he},(D&1)===0&&$!==null?($.childLanes=0,$.pendingProps=he):$=py(he,D,0,null),w=fh(w,D,M,null),$.return=S,w.return=S,$.sibling=w,S.child=$,S.child.memoizedState=Np(M),S.memoizedState=Bp,w):Vl(S,he));if(H=w.memoizedState,H!==null&&(ve=H.dehydrated,ve!==null))return cs(w,S,he,D,ve,H,M);if($){$=D.fallback,he=S.mode,H=w.child,ve=H.sibling;var Ie={mode:"hidden",children:D.children};return(he&1)===0&&S.child!==H?(D=S.child,D.childLanes=0,D.pendingProps=Ie,S.deletions=null):(D=ko(H,Ie),D.subtreeFlags=H.subtreeFlags&14680064),ve!==null?$=ko(ve,$):($=fh($,he,M,null),$.flags|=2),$.return=S,D.return=S,D.sibling=$,S.child=D,D=$,$=S.child,he=w.child.memoizedState,he=he===null?Np(M):{baseLanes:he.baseLanes|M,cachePool:null,transitions:he.transitions},$.memoizedState=he,$.childLanes=w.childLanes&~M,S.memoizedState=Bp,D}return $=w.child,w=$.sibling,D=ko($,{mode:"visible",children:D.children}),(S.mode&1)===0&&(D.lanes=M),D.return=S,D.sibling=null,w!==null&&(M=S.deletions,M===null?(S.deletions=[w],S.flags|=16):M.push(w)),S.child=D,S.memoizedState=null,D}function Vl(w,S){return S=py({mode:"visible",children:S},w.mode,0,null),S.return=w,w.child=S}function Xd(w,S,M,D){return D!==null&&Zo(D),Ji(S,w.child,null,M),w=Vl(S,S.pendingProps.children),w.flags|=2,S.memoizedState=null,w}function cs(w,S,M,D,H,$,he){if(M)return S.flags&256?(S.flags&=-257,D=Xg(Error(t(422))),Xd(w,S,he,D)):S.memoizedState!==null?(S.child=w.child,S.flags|=128,null):($=D.fallback,H=S.mode,D=py({mode:"visible",children:D.children},H,0,null),$=fh($,H,he,null),$.flags|=2,D.return=S,$.return=S,D.sibling=$,S.child=D,(S.mode&1)!==0&&Ji(S,w.child,null,he),S.child.memoizedState=Np(he),S.memoizedState=Bp,$);if((S.mode&1)===0)return Xd(w,S,he,null);if(H.data==="$!"){if(D=H.nextSibling&&H.nextSibling.dataset,D)var ve=D.dgst;return D=ve,$=Error(t(419)),D=Xg($,D,void 0),Xd(w,S,he,D)}if(ve=(he&w.childLanes)!==0,Cr||ve){if(D=Un,D!==null){switch(he&-he){case 4:H=2;break;case 16:H=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:H=32;break;case 536870912:H=268435456;break;default:H=0}H=(H&(D.suspendedLanes|he))!==0?0:H,H!==0&&H!==$.retryLane&&($.retryLane=H,Wd(w,H),bo(D,w,H,-1))}return Sb(),D=Xg(Error(t(421))),Xd(w,S,he,D)}return H.data==="$?"?(S.flags|=128,S.child=w.child,S=cI.bind(null,w),H._reactRetry=S,null):(w=$.treeContext,la=Fc(H.nextSibling),hr=S,Ri=!0,fo=null,w!==null&&(Aa[La++]=Ko,Aa[La++]=Xo,Aa[La++]=Ju,Ko=w.id,Xo=w.overflow,Ju=S),S=Vl(S,D.children),S.flags|=4096,S)}function Ep(w,S,M){w.lanes|=S;var D=w.alternate;D!==null&&(D.lanes|=S),Xn(w.return,S,M)}function Rp(w,S,M,D,H){var $=w.memoizedState;$===null?w.memoizedState={isBackwards:S,rendering:null,renderingStartTime:0,last:D,tail:M,tailMode:H}:($.isBackwards=S,$.rendering=null,$.renderingStartTime=0,$.last=D,$.tail=M,$.tailMode=H)}function Kc(w,S,M){var D=S.pendingProps,H=D.revealOrder,$=D.tail;if(Qn(w,S,D.children,M),D=Hi.current,(D&2)!==0)D=D&1|2,S.flags|=128;else{if(w!==null&&(w.flags&128)!==0)e:for(w=S.child;w!==null;){if(w.tag===13)w.memoizedState!==null&&Ep(w,M,S);else if(w.tag===19)Ep(w,M,S);else if(w.child!==null){w.child.return=w,w=w.child;continue}if(w===S)break e;for(;w.sibling===null;){if(w.return===null||w.return===S)break e;w=w.return}w.sibling.return=w.return,w=w.sibling}D&=1}if(Mi(Hi,D),(S.mode&1)===0)S.memoizedState=null;else switch(H){case"forwards":for(M=S.child,H=null;M!==null;)w=M.alternate,w!==null&&nh(w)===null&&(H=M),M=M.sibling;M=H,M===null?(H=S.child,S.child=null):(H=M.sibling,M.sibling=null),Rp(S,!1,H,M,$);break;case"backwards":for(M=null,H=S.child,S.child=null;H!==null;){if(w=H.alternate,w!==null&&nh(w)===null){S.child=H;break}w=H.sibling,H.sibling=M,M=H,H=w}Rp(S,!0,M,null,$);break;case"together":Rp(S,!1,null,null,void 0);break;default:S.memoizedState=null}return S.child}function Jg(w,S){(S.mode&1)===0&&w!==null&&(w.alternate=null,S.alternate=null,S.flags|=2)}function mo(w,S,M){if(w!==null&&(S.dependencies=w.dependencies),Qc|=S.lanes,(M&S.childLanes)===0)return null;if(w!==null&&S.child!==w.child)throw Error(t(153));if(S.child!==null){for(w=S.child,M=ko(w,w.pendingProps),S.child=M,M.return=S;w.sibling!==null;)w=w.sibling,M=M.sibling=ko(w,w.pendingProps),M.return=S;M.sibling=null}return S.child}function d1(w,S,M){switch(S.tag){case 3:o1(S),Yo();break;case 5:Fw(S);break;case 1:$r(S.type)&&_a(S);break;case 4:Vw(S,S.stateNode.containerInfo);break;case 10:var D=S.type._context,H=S.memoizedProps.value;Mi(Tp,D._currentValue),D._currentValue=H;break;case 13:if(D=S.memoizedState,D!==null)return D.dehydrated!==null?(Mi(Hi,Hi.current&1),S.flags|=128,null):(M&S.child.childLanes)!==0?Zg(w,S,M):(Mi(Hi,Hi.current&1),w=mo(w,S,M),w!==null?w.sibling:null);Mi(Hi,Hi.current&1);break;case 19:if(D=(M&S.childLanes)!==0,(w.flags&128)!==0){if(D)return Kc(w,S,M);S.flags|=128}if(H=S.memoizedState,H!==null&&(H.rendering=null,H.tail=null,H.lastEffect=null),Mi(Hi,Hi.current),D)break;return null;case 22:case 23:return S.lanes=0,sb(w,S,M)}return mo(w,S,M)}var Yn,ob,c1,db;Yn=function(w,S){for(var M=S.child;M!==null;){if(M.tag===5||M.tag===6)w.appendChild(M.stateNode);else if(M.tag!==4&&M.child!==null){M.child.return=M,M=M.child;continue}if(M===S)break;for(;M.sibling===null;){if(M.return===null||M.return===S)return;M=M.return}M.sibling.return=M.return,M=M.sibling}},ob=function(){},c1=function(w,S,M,D){var H=w.memoizedProps;if(H!==D){w=S.stateNode,zd(Jo.current);var $=null;switch(M){case"input":H=at(w,H),D=at(w,D),$=[];break;case"select":H=ne({},H,{value:void 0}),D=ne({},D,{value:void 0}),$=[];break;case"textarea":H=st(w,H),D=st(w,D),$=[];break;default:typeof H.onClick!="function"&&typeof D.onClick=="function"&&(w.onclick=Og)}Ke(M,D);var he;M=null;for(We in H)if(!D.hasOwnProperty(We)&&H.hasOwnProperty(We)&&H[We]!=null)if(We==="style"){var ve=H[We];for(he in ve)ve.hasOwnProperty(he)&&(M||(M={}),M[he]="")}else We!=="dangerouslySetInnerHTML"&&We!=="children"&&We!=="suppressContentEditableWarning"&&We!=="suppressHydrationWarning"&&We!=="autoFocus"&&(i.hasOwnProperty(We)?$||($=[]):($=$||[]).push(We,null));for(We in D){var Ie=D[We];if(ve=H!=null?H[We]:void 0,D.hasOwnProperty(We)&&Ie!==ve&&(Ie!=null||ve!=null))if(We==="style")if(ve){for(he in ve)!ve.hasOwnProperty(he)||Ie&&Ie.hasOwnProperty(he)||(M||(M={}),M[he]="");for(he in Ie)Ie.hasOwnProperty(he)&&ve[he]!==Ie[he]&&(M||(M={}),M[he]=Ie[he])}else M||($||($=[]),$.push(We,M)),M=Ie;else We==="dangerouslySetInnerHTML"?(Ie=Ie?Ie.__html:void 0,ve=ve?ve.__html:void 0,Ie!=null&&ve!==Ie&&($=$||[]).push(We,Ie)):We==="children"?typeof Ie!="string"&&typeof Ie!="number"||($=$||[]).push(We,""+Ie):We!=="suppressContentEditableWarning"&&We!=="suppressHydrationWarning"&&(i.hasOwnProperty(We)?(Ie!=null&&We==="onScroll"&&Ni("scroll",w),$||ve===Ie||($=[])):($=$||[]).push(We,Ie))}M&&($=$||[]).push("style",M);var We=$;(S.updateQueue=We)&&(S.flags|=4)}},db=function(w,S,M,D){M!==D&&(S.flags|=4)};function Dp(w,S){if(!Ri)switch(w.tailMode){case"hidden":S=w.tail;for(var M=null;S!==null;)S.alternate!==null&&(M=S),S=S.sibling;M===null?w.tail=null:M.sibling=null;break;case"collapsed":M=w.tail;for(var D=null;M!==null;)M.alternate!==null&&(D=M),M=M.sibling;D===null?S||w.tail===null?w.tail=null:w.tail.sibling=null:D.sibling=null}}function Zn(w){var S=w.alternate!==null&&w.alternate.child===w.child,M=0,D=0;if(S)for(var H=w.child;H!==null;)M|=H.lanes|H.childLanes,D|=H.subtreeFlags&14680064,D|=H.flags&14680064,H.return=w,H=H.sibling;else for(H=w.child;H!==null;)M|=H.lanes|H.childLanes,D|=H.subtreeFlags,D|=H.flags,H.return=w,H=H.sibling;return w.subtreeFlags|=D,w.childLanes=M,S}function tI(w,S,M){var D=S.pendingProps;switch(th(S),S.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Zn(S),null;case 1:return $r(S.type)&&Cg(),Zn(S),null;case 3:return D=S.stateNode,zc(),Ei(zr),Ei(cr),Vg(),D.pendingContext&&(D.context=D.pendingContext,D.pendingContext=null),(w===null||w.child===null)&&(Sp(S)?S.flags|=4:w===null||w.memoizedState.isDehydrated&&(S.flags&256)===0||(S.flags|=1024,fo!==null&&(wb(fo),fo=null))),ob(w,S),Zn(S),null;case 5:qg(S);var H=zd(Al.current);if(M=S.type,w!==null&&S.stateNode!=null)c1(w,S,M,D,H),w.ref!==S.ref&&(S.flags|=512,S.flags|=2097152);else{if(!D){if(S.stateNode===null)throw Error(t(166));return Zn(S),null}if(w=zd(Jo.current),Sp(S)){D=S.stateNode,M=S.type;var $=S.memoizedProps;switch(D[zo]=S,D[Hc]=$,w=(S.mode&1)!==0,M){case"dialog":Ni("cancel",D),Ni("close",D);break;case"iframe":case"object":case"embed":Ni("load",D);break;case"video":case"audio":for(H=0;H<\/script>",w=w.removeChild(w.firstChild)):typeof D.is=="string"?w=he.createElement(M,{is:D.is}):(w=he.createElement(M),M==="select"&&(he=w,D.multiple?he.multiple=!0:D.size&&(he.size=D.size))):w=he.createElementNS(w,M),w[zo]=S,w[Hc]=D,Yn(w,S,!1,!1),S.stateNode=w;e:{switch(he=Lt(M,D),M){case"dialog":Ni("cancel",w),Ni("close",w),H=D;break;case"iframe":case"object":case"embed":Ni("load",w),H=D;break;case"video":case"audio":for(H=0;Hch&&(S.flags|=128,D=!0,Dp($,!1),S.lanes=4194304)}else{if(!D)if(w=nh(he),w!==null){if(S.flags|=128,D=!0,M=w.updateQueue,M!==null&&(S.updateQueue=M,S.flags|=4),Dp($,!0),$.tail===null&&$.tailMode==="hidden"&&!he.alternate&&!Ri)return Zn(S),null}else 2*pi()-$.renderingStartTime>ch&&M!==1073741824&&(S.flags|=128,D=!0,Dp($,!1),S.lanes=4194304);$.isBackwards?(he.sibling=S.child,S.child=he):(M=$.last,M!==null?M.sibling=he:S.child=he,$.last=he)}return $.tail!==null?(S=$.tail,$.rendering=S,$.tail=S.sibling,$.renderingStartTime=pi(),S.sibling=null,M=Hi.current,Mi(Hi,D?M&1|2:M&1),S):(Zn(S),null);case 22:case 23:return kb(),D=S.memoizedState!==null,w!==null&&w.memoizedState!==null!==D&&(S.flags|=8192),D&&(S.mode&1)!==0?(ma&1073741824)!==0&&(Zn(S),S.subtreeFlags&6&&(S.flags|=8192)):Zn(S),null;case 24:return null;case 25:return null}throw Error(t(156,S.tag))}function sI(w,S){switch(th(S),S.tag){case 1:return $r(S.type)&&Cg(),w=S.flags,w&65536?(S.flags=w&-65537|128,S):null;case 3:return zc(),Ei(zr),Ei(cr),Vg(),w=S.flags,(w&65536)!==0&&(w&128)===0?(S.flags=w&-65537|128,S):null;case 5:return qg(S),null;case 13:if(Ei(Hi),w=S.memoizedState,w!==null&&w.dehydrated!==null){if(S.alternate===null)throw Error(t(340));Yo()}return w=S.flags,w&65536?(S.flags=w&-65537|128,S):null;case 19:return Ei(Hi),null;case 4:return zc(),null;case 10:return Ng(S.type._context),null;case 22:case 23:return kb(),null;case 24:return null;default:return null}}var ey=!1,Gi=!1,Mr=typeof WeakSet=="function"?WeakSet:Set,Vt=null;function Fl(w,S){var M=w.ref;if(M!==null)if(typeof M=="function")try{M(null)}catch(D){zi(w,S,D)}else M.current=null}function qp(w,S,M){try{M()}catch(D){zi(w,S,D)}}var u1=!1;function iI(w,S){if(yp=Wu,w=mi(),up(w)){if("selectionStart"in w)var M={start:w.selectionStart,end:w.selectionEnd};else e:{M=(M=w.ownerDocument)&&M.defaultView||window;var D=M.getSelection&&M.getSelection();if(D&&D.rangeCount!==0){M=D.anchorNode;var H=D.anchorOffset,$=D.focusNode;D=D.focusOffset;try{M.nodeType,$.nodeType}catch{M=null;break e}var he=0,ve=-1,Ie=-1,We=0,ct=0,mt=w,dt=null;t:for(;;){for(var qt;mt!==M||H!==0&&mt.nodeType!==3||(ve=he+H),mt!==$||D!==0&&mt.nodeType!==3||(Ie=he+D),mt.nodeType===3&&(he+=mt.nodeValue.length),(qt=mt.firstChild)!==null;)dt=mt,mt=qt;for(;;){if(mt===w)break t;if(dt===M&&++We===H&&(ve=he),dt===$&&++ct===D&&(Ie=he),(qt=mt.nextSibling)!==null)break;mt=dt,dt=mt.parentNode}mt=qt}M=ve===-1||Ie===-1?null:{start:ve,end:Ie}}else M=null}M=M||{start:0,end:0}}else M=null;for(Yu={focusedElem:w,selectionRange:M},Wu=!1,Vt=S;Vt!==null;)if(S=Vt,w=S.child,(S.subtreeFlags&1028)!==0&&w!==null)w.return=S,Vt=w;else for(;Vt!==null;){S=Vt;try{var Ut=S.alternate;if((S.flags&1024)!==0)switch(S.tag){case 0:case 11:case 15:break;case 1:if(Ut!==null){var Kt=Ut.memoizedProps,rn=Ut.memoizedState,Re=S.stateNode,Ae=Re.getSnapshotBeforeUpdate(S.elementType===S.type?Kt:Da(S.type,Kt),rn);Re.__reactInternalSnapshotBeforeUpdate=Ae}break;case 3:var Ve=S.stateNode.containerInfo;Ve.nodeType===1?Ve.textContent="":Ve.nodeType===9&&Ve.documentElement&&Ve.removeChild(Ve.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(t(163))}}catch(kt){zi(S,S.return,kt)}if(w=S.sibling,w!==null){w.return=S.return,Vt=w;break}Vt=S.return}return Ut=u1,u1=!1,Ut}function Qd(w,S,M){var D=S.updateQueue;if(D=D!==null?D.lastEffect:null,D!==null){var H=D=D.next;do{if((H.tag&w)===w){var $=H.destroy;H.destroy=void 0,$!==void 0&&qp(S,M,$)}H=H.next}while(H!==D)}}function Vp(w,S){if(S=S.updateQueue,S=S!==null?S.lastEffect:null,S!==null){var M=S=S.next;do{if((M.tag&w)===w){var D=M.create;M.destroy=D()}M=M.next}while(M!==S)}}function ty(w){var S=w.ref;if(S!==null){var M=w.stateNode;switch(w.tag){case 5:w=M;break;default:w=M}typeof S=="function"?S(w):S.current=w}}function h1(w){var S=w.alternate;S!==null&&(w.alternate=null,h1(S)),w.child=null,w.deletions=null,w.sibling=null,w.tag===5&&(S=w.stateNode,S!==null&&(delete S[zo],delete S[Hc],delete S[Pg],delete S[me],delete S[xl])),w.stateNode=null,w.return=null,w.dependencies=null,w.memoizedProps=null,w.memoizedState=null,w.pendingProps=null,w.stateNode=null,w.updateQueue=null}function l1(w){return w.tag===5||w.tag===3||w.tag===4}function f1(w){e:for(;;){for(;w.sibling===null;){if(w.return===null||l1(w.return))return null;w=w.return}for(w.sibling.return=w.return,w=w.sibling;w.tag!==5&&w.tag!==6&&w.tag!==18;){if(w.flags&2||w.child===null||w.tag===4)continue e;w.child.return=w,w=w.child}if(!(w.flags&2))return w.stateNode}}function cb(w,S,M){var D=w.tag;if(D===5||D===6)w=w.stateNode,S?M.nodeType===8?M.parentNode.insertBefore(w,S):M.insertBefore(w,S):(M.nodeType===8?(S=M.parentNode,S.insertBefore(w,M)):(S=M,S.appendChild(w)),M=M._reactRootContainer,M!=null||S.onclick!==null||(S.onclick=Og));else if(D!==4&&(w=w.child,w!==null))for(cb(w,S,M),w=w.sibling;w!==null;)cb(w,S,M),w=w.sibling}function sy(w,S,M){var D=w.tag;if(D===5||D===6)w=w.stateNode,S?M.insertBefore(w,S):M.appendChild(w);else if(D!==4&&(w=w.child,w!==null))for(sy(w,S,M),w=w.sibling;w!==null;)sy(w,S,M),w=w.sibling}var Gn=null,go=!1;function nd(w,S,M){for(M=M.child;M!==null;)ub(w,S,M),M=M.sibling}function ub(w,S,M){if(Zs&&typeof Zs.onCommitFiberUnmount=="function")try{Zs.onCommitFiberUnmount(ln,M)}catch{}switch(M.tag){case 5:Gi||Fl(M,S);case 6:var D=Gn,H=go;Gn=null,nd(w,S,M),Gn=D,go=H,Gn!==null&&(go?(w=Gn,M=M.stateNode,w.nodeType===8?w.parentNode.removeChild(M):w.removeChild(M)):Gn.removeChild(M.stateNode));break;case 18:Gn!==null&&(go?(w=Gn,M=M.stateNode,w.nodeType===8?Lw(w.parentNode,M):w.nodeType===1&&Lw(w,M),$s(w)):Lw(Gn,M.stateNode));break;case 4:D=Gn,H=go,Gn=M.stateNode.containerInfo,go=!0,nd(w,S,M),Gn=D,go=H;break;case 0:case 11:case 14:case 15:if(!Gi&&(D=M.updateQueue,D!==null&&(D=D.lastEffect,D!==null))){H=D=D.next;do{var $=H,he=$.destroy;$=$.tag,he!==void 0&&(($&2)!==0||($&4)!==0)&&qp(M,S,he),H=H.next}while(H!==D)}nd(w,S,M);break;case 1:if(!Gi&&(Fl(M,S),D=M.stateNode,typeof D.componentWillUnmount=="function"))try{D.props=M.memoizedProps,D.state=M.memoizedState,D.componentWillUnmount()}catch(ve){zi(M,S,ve)}nd(w,S,M);break;case 21:nd(w,S,M);break;case 22:M.mode&1?(Gi=(D=Gi)||M.memoizedState!==null,nd(w,S,M),Gi=D):nd(w,S,M);break;default:nd(w,S,M)}}function Hl(w){var S=w.updateQueue;if(S!==null){w.updateQueue=null;var M=w.stateNode;M===null&&(M=w.stateNode=new Mr),S.forEach(function(D){var H=uI.bind(null,w,D);M.has(D)||(M.add(D),D.then(H,H))})}}function pa(w,S){var M=S.deletions;if(M!==null)for(var D=0;DH&&(H=he),D&=~$}if(D=H,D=pi()-D,D=(120>D?120:480>D?480:1080>D?1080:1920>D?1920:3e3>D?3e3:4320>D?4320:1960*m1(D/1960))-D,10w?16:w,Zc===null)var D=!1;else{if(w=Zc,Zc=null,_r=0,(Ks&6)!==0)throw Error(t(331));var H=Ks;for(Ks|=4,Vt=w.current;Vt!==null;){var $=Vt,he=$.child;if((Vt.flags&16)!==0){var ve=$.deletions;if(ve!==null){for(var Ie=0;Iepi()-pb?hh(w,0):ry|=M),Yr(w,S)}function S1(w,S){S===0&&((w.mode&1)===0?S=1:(S=Vu,Vu<<=1,(Vu&130023424)===0&&(Vu=4194304)));var M=Ar();w=Wd(w,S),w!==null&&(_c(w,S,M),Yr(w,M))}function cI(w){var S=w.memoizedState,M=0;S!==null&&(M=S.retryLane),S1(w,M)}function uI(w,S){var M=0;switch(w.tag){case 13:var D=w.stateNode,H=w.memoizedState;H!==null&&(M=H.retryLane);break;case 19:D=w.stateNode;break;default:throw Error(t(314))}D!==null&&D.delete(S),S1(w,M)}var v1;v1=function(w,S,M){if(w!==null)if(w.memoizedProps!==S.pendingProps||zr.current)Cr=!0;else{if((w.lanes&M)===0&&(S.flags&128)===0)return Cr=!1,d1(w,S,M);Cr=(w.flags&131072)!==0}else Cr=!1,Ri&&(S.flags&1048576)!==0&&zv(S,Ag,S.index);switch(S.lanes=0,S.tag){case 2:var D=S.type;Jg(w,S),w=S.pendingProps;var H=Il(S,cr.current);jc(S,M),H=ah(null,S,D,w,H,M);var $=Fg();return S.flags|=1,typeof H=="object"&&H!==null&&typeof H.render=="function"&&H.$$typeof===void 0?(S.tag=1,S.memoizedState=null,S.updateQueue=null,$r(D)?($=!0,_a(S)):$=!1,S.memoizedState=H.state!==null&&H.state!==void 0?H.state:null,Rg(S),H.updater=Kg,S.stateNode=H,H._reactInternals=S,Jw(S,D,w,M),S=ab(null,S,D,!0,$,M)):(S.tag=0,Ri&&$&&kp(S),Qn(null,S,H,M),S=S.child),S;case 16:D=S.elementType;e:{switch(Jg(w,S),w=S.pendingProps,H=D._init,D=H(D._payload),S.type=D,H=S.tag=lI(D),w=Da(D,w),H){case 0:S=nb(null,S,D,w,M);break e;case 1:S=rb(null,S,D,w,M);break e;case 11:S=a1(null,S,D,w,M);break e;case 14:S=tb(null,S,D,Da(D.type,w),M);break e}throw Error(t(306,D,""))}return S;case 0:return D=S.type,H=S.pendingProps,H=S.elementType===D?H:Da(D,H),nb(w,S,D,H,M);case 1:return D=S.type,H=S.pendingProps,H=S.elementType===D?H:Da(D,H),rb(w,S,D,H,M);case 3:e:{if(o1(S),w===null)throw Error(t(387));D=S.pendingProps,$=S.memoizedState,H=$.element,Qv(w,S),_l(S,D,null,M);var he=S.memoizedState;if(D=he.element,$.isDehydrated)if($={element:D,isDehydrated:!1,cache:he.cache,pendingSuspenseBoundaries:he.pendingSuspenseBoundaries,transitions:he.transitions},S.updateQueue.baseState=$,S.memoizedState=$,S.flags&256){H=dh(Error(t(423)),S),S=id(w,S,D,M,H);break e}else if(D!==H){H=dh(Error(t(424)),S),S=id(w,S,D,M,H);break e}else for(la=Fc(S.stateNode.containerInfo.firstChild),hr=S,Ri=!0,fo=null,M=Bg(S,null,D,M),S.child=M;M;)M.flags=M.flags&-3|4096,M=M.sibling;else{if(Yo(),D===H){S=mo(w,S,M);break e}Qn(w,S,D,M)}S=S.child}return S;case 5:return Fw(S),w===null&&Kr(S),D=S.type,H=S.pendingProps,$=w!==null?w.memoizedProps:null,he=H.children,wp(D,H)?he=null:$!==null&&wp(D,$)&&(S.flags|=32),ib(w,S),Qn(w,S,he,M),S.child;case 6:return w===null&&Kr(S),null;case 13:return Zg(w,S,M);case 4:return Vw(S,S.stateNode.containerInfo),D=S.pendingProps,w===null?S.child=Ji(S,null,D,M):Qn(w,S,D,M),S.child;case 11:return D=S.type,H=S.pendingProps,H=S.elementType===D?H:Da(D,H),a1(w,S,D,H,M);case 7:return Qn(w,S,S.pendingProps,M),S.child;case 8:return Qn(w,S,S.pendingProps.children,M),S.child;case 12:return Qn(w,S,S.pendingProps.children,M),S.child;case 10:e:{if(D=S.type._context,H=S.pendingProps,$=S.memoizedProps,he=H.value,Mi(Tp,D._currentValue),D._currentValue=he,$!==null)if(Ge($.value,he)){if($.children===H.children&&!zr.current){S=mo(w,S,M);break e}}else for($=S.child,$!==null&&($.return=S);$!==null;){var ve=$.dependencies;if(ve!==null){he=$.child;for(var Ie=ve.firstContext;Ie!==null;){if(Ie.context===D){if($.tag===1){Ie=jd(-1,M&-M),Ie.tag=2;var We=$.updateQueue;if(We!==null){We=We.shared;var ct=We.pending;ct===null?Ie.next=Ie:(Ie.next=ct.next,ct.next=Ie),We.pending=Ie}}$.lanes|=M,Ie=$.alternate,Ie!==null&&(Ie.lanes|=M),Xn($.return,M,S),ve.lanes|=M;break}Ie=Ie.next}}else if($.tag===10)he=$.type===S.type?null:$.child;else if($.tag===18){if(he=$.return,he===null)throw Error(t(341));he.lanes|=M,ve=he.alternate,ve!==null&&(ve.lanes|=M),Xn(he,M,S),he=$.sibling}else he=$.child;if(he!==null)he.return=$;else for(he=$;he!==null;){if(he===S){he=null;break}if($=he.sibling,$!==null){$.return=he.return,he=$;break}he=he.return}$=he}Qn(w,S,H.children,M),S=S.child}return S;case 9:return H=S.type,D=S.pendingProps.children,jc(S,M),H=Ba(H),D=D(H),S.flags|=1,Qn(w,S,D,M),S.child;case 14:return D=S.type,H=Da(D,S.pendingProps),H=Da(D.type,H),tb(w,S,D,H,M);case 15:return sd(w,S,S.type,S.pendingProps,M);case 17:return D=S.type,H=S.pendingProps,H=S.elementType===D?H:Da(D,H),Jg(w,S),S.tag=1,$r(D)?(w=!0,_a(S)):w=!1,jc(S,M),oh(S,D,H),Jw(S,D,H,M),ab(null,S,D,!0,w,M);case 19:return Kc(w,S,M);case 22:return sb(w,S,M)}throw Error(t(156,S.tag))};function T1(w,S){return oi(w,S)}function hI(w,S,M,D){this.tag=w,this.key=M,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=S,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=D,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Va(w,S,M,D){return new hI(w,S,M,D)}function ly(w){return w=w.prototype,!(!w||!w.isReactComponent)}function lI(w){if(typeof w=="function")return ly(w)?1:0;if(w!=null){if(w=w.$$typeof,w===G)return 11;if(w===X)return 14}return 2}function ko(w,S){var M=w.alternate;return M===null?(M=Va(w.tag,S,w.key,w.mode),M.elementType=w.elementType,M.type=w.type,M.stateNode=w.stateNode,M.alternate=w,w.alternate=M):(M.pendingProps=S,M.type=w.type,M.flags=0,M.subtreeFlags=0,M.deletions=null),M.flags=w.flags&14680064,M.childLanes=w.childLanes,M.lanes=w.lanes,M.child=w.child,M.memoizedProps=w.memoizedProps,M.memoizedState=w.memoizedState,M.updateQueue=w.updateQueue,S=w.dependencies,M.dependencies=S===null?null:{lanes:S.lanes,firstContext:S.firstContext},M.sibling=w.sibling,M.index=w.index,M.ref=w.ref,M}function fy(w,S,M,D,H,$){var he=2;if(D=w,typeof w=="function")ly(w)&&(he=1);else if(typeof w=="string")he=5;else e:switch(w){case B:return fh(M.children,H,$,S);case L:he=8,H|=8;break;case E:return w=Va(12,M,S,H|2),w.elementType=E,w.lanes=$,w;case W:return w=Va(13,M,S,H),w.elementType=W,w.lanes=$,w;case te:return w=Va(19,M,S,H),w.elementType=te,w.lanes=$,w;case ae:return py(M,H,$,S);default:if(typeof w=="object"&&w!==null)switch(w.$$typeof){case N:he=10;break e;case F:he=9;break e;case G:he=11;break e;case X:he=14;break e;case Y:he=16,D=null;break e}throw Error(t(130,w==null?w:typeof w,""))}return S=Va(he,M,S,H),S.elementType=w,S.type=D,S.lanes=$,S}function fh(w,S,M,D){return w=Va(7,w,D,S),w.lanes=M,w}function py(w,S,M,D){return w=Va(22,w,D,S),w.elementType=ae,w.lanes=M,w.stateNode={isHidden:!1},w}function vb(w,S,M){return w=Va(6,w,null,S),w.lanes=M,w}function Tb(w,S,M){return S=Va(4,w.children!==null?w.children:[],w.key,S),S.lanes=M,S.stateNode={containerInfo:w.containerInfo,pendingChildren:null,implementation:w.implementation},S}function fI(w,S,M,D,H){this.tag=S,this.containerInfo=w,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Mc(0),this.expirationTimes=Mc(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Mc(0),this.identifierPrefix=D,this.onRecoverableError=H,this.mutableSourceEagerHydrationData=null}function Ob(w,S,M,D,H,$,he,ve,Ie){return w=new fI(w,S,M,ve,Ie),S===1?(S=1,$===!0&&(S|=8)):S=0,$=Va(3,null,null,S),w.current=$,$.stateNode=w,$.memoizedState={element:D,isDehydrated:M,cache:null,transitions:null,pendingSuspenseBoundaries:null},Rg($),w}function pI(w,S,M){var D=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(c)}catch(e){console.error(e)}}return c(),BI.exports=f7(),BI.exports}var oN;function p7(){if(oN)return L1;oN=1;var c=K5();return L1.createRoot=c.createRoot,L1.hydrateRoot=c.hydrateRoot,L1}var m7=p7();const g7=_S(m7);var y7="Invariant failed";function Ah(c,e){if(!c)throw new Error(y7)}const s0=new WeakMap,wT=new WeakMap,XT={current:[]};let RI=!1,uk=0;const Kb=new Set,B1=new Map;function X5(c){const e=Array.from(c).sort((t,s)=>t instanceof i0&&t.options.deps.includes(s)?1:s instanceof i0&&s.options.deps.includes(t)?-1:0);for(const t of e){if(XT.current.includes(t))continue;XT.current.push(t),t.recompute();const s=wT.get(t);if(s)for(const i of s){const n=s0.get(i);n&&X5(n)}}}function w7(c){c.listeners.forEach(e=>e({prevVal:c.prevState,currentVal:c.state}))}function b7(c){c.listeners.forEach(e=>e({prevVal:c.prevState,currentVal:c.state}))}function Q5(c){if(uk>0&&!B1.has(c)&&B1.set(c,c.prevState),Kb.add(c),!(uk>0)&&!RI)try{for(RI=!0;Kb.size>0;){const e=Array.from(Kb);Kb.clear();for(const t of e){const s=B1.get(t)??t.prevState;t.prevState=s,w7(t)}for(const t of e){const s=s0.get(t);s&&(XT.current.push(t),X5(s))}for(const t of e){const s=s0.get(t);if(s)for(const i of s)b7(i)}}}finally{RI=!1,XT.current=[],B1.clear()}}function DI(c){uk++;try{c()}finally{if(uk--,uk===0){const e=Array.from(Kb)[0];e&&Q5(e)}}}class LM{constructor(e,t){this.listeners=new Set,this.subscribe=s=>{var i,n;this.listeners.add(s);const r=(n=(i=this.options)==null?void 0:i.onSubscribe)==null?void 0:n.call(i,s,this);return()=>{this.listeners.delete(s),r==null||r()}},this.setState=s=>{var i,n,r;this.prevState=this.state,this.state=(i=this.options)!=null&&i.updateFn?this.options.updateFn(this.prevState)(s):s(this.prevState),(r=(n=this.options)==null?void 0:n.onUpdate)==null||r.call(n),Q5(this)},this.prevState=e,this.state=e,this.options=t}}class i0{constructor(e){this.listeners=new Set,this._subscriptions=[],this.lastSeenDepValues=[],this.getDepVals=()=>{const t=[],s=[];for(const i of this.options.deps)t.push(i.prevState),s.push(i.state);return this.lastSeenDepValues=s,{prevDepVals:t,currDepVals:s,prevVal:this.prevState??void 0}},this.recompute=()=>{var t,s;this.prevState=this.state;const{prevDepVals:i,currDepVals:n,prevVal:r}=this.getDepVals();this.state=this.options.fn({prevDepVals:i,currDepVals:n,prevVal:r}),(s=(t=this.options).onUpdate)==null||s.call(t)},this.checkIfRecalculationNeededDeeply=()=>{for(const n of this.options.deps)n instanceof i0&&n.checkIfRecalculationNeededDeeply();let t=!1;const s=this.lastSeenDepValues,{currDepVals:i}=this.getDepVals();for(let n=0;n(this.registerOnGraph(),this.checkIfRecalculationNeededDeeply(),()=>{this.unregisterFromGraph();for(const t of this._subscriptions)t()}),this.subscribe=t=>{var s,i;this.listeners.add(t);const n=(i=(s=this.options).onSubscribe)==null?void 0:i.call(s,t,this);return()=>{this.listeners.delete(t),n==null||n()}},this.options=e,this.state=e.fn({prevDepVals:void 0,prevVal:void 0,currDepVals:this.getDepVals().currDepVals})}registerOnGraph(e=this.options.deps){for(const t of e)if(t instanceof i0)t.registerOnGraph(),this.registerOnGraph(t.options.deps);else if(t instanceof LM){let s=s0.get(t);s||(s=new Set,s0.set(t,s)),s.add(this);let i=wT.get(this);i||(i=new Set,wT.set(this,i)),i.add(t)}}unregisterFromGraph(e=this.options.deps){for(const t of e)if(t instanceof i0)this.unregisterFromGraph(t.options.deps);else if(t instanceof LM){const s=s0.get(t);s&&s.delete(this);const i=wT.get(this);i&&i.delete(t)}}}const Sf="__TSR_index",dN="popstate",cN="beforeunload";function Y5(c){let e=c.getLocation();const t=new Set,s=r=>{e=c.getLocation(),t.forEach(a=>a({location:e,action:r}))},i=r=>{c.notifyOnIndexChange??!0?s(r):e=c.getLocation()},n=async({task:r,navigateOpts:a,...o})=>{var d,u;if((a==null?void 0:a.ignoreBlocker)??!1){r();return}const l=((d=c.getBlockers)==null?void 0:d.call(c))??[],f=o.type==="PUSH"||o.type==="REPLACE";if(typeof document<"u"&&l.length&&f)for(const p of l){const m=v0(o.path,o.state);if(await p.blockerFn({currentLocation:e,nextLocation:m,action:o.type})){(u=c.onBlocked)==null||u.call(c);return}}r()};return{get location(){return e},get length(){return c.getLength()},subscribers:t,subscribe:r=>(t.add(r),()=>{t.delete(r)}),push:(r,a,o)=>{const d=e.state[Sf];a=BM(d+1,a),n({task:()=>{c.pushState(r,a),s({type:"PUSH"})},navigateOpts:o,type:"PUSH",path:r,state:a})},replace:(r,a,o)=>{const d=e.state[Sf];a=BM(d,a),n({task:()=>{c.replaceState(r,a),s({type:"REPLACE"})},navigateOpts:o,type:"REPLACE",path:r,state:a})},go:(r,a)=>{n({task:()=>{c.go(r),i({type:"GO",index:r})},navigateOpts:a,type:"GO"})},back:r=>{n({task:()=>{c.back((r==null?void 0:r.ignoreBlocker)??!1),i({type:"BACK"})},navigateOpts:r,type:"BACK"})},forward:r=>{n({task:()=>{c.forward((r==null?void 0:r.ignoreBlocker)??!1),i({type:"FORWARD"})},navigateOpts:r,type:"FORWARD"})},canGoBack:()=>e.state[Sf]!==0,createHref:r=>c.createHref(r),block:r=>{var a;if(!c.setBlockers)return()=>{};const o=((a=c.getBlockers)==null?void 0:a.call(c))??[];return c.setBlockers([...o,r]),()=>{var d,u;const h=((d=c.getBlockers)==null?void 0:d.call(c))??[];(u=c.setBlockers)==null||u.call(c,h.filter(l=>l!==r))}},flush:()=>{var r;return(r=c.flush)==null?void 0:r.call(c)},destroy:()=>{var r;return(r=c.destroy)==null?void 0:r.call(c)},notify:s}}function BM(c,e){return e||(e={}),{...e,key:f_(),[Sf]:c}}function Z5(c){var e;const t=(c==null?void 0:c.window)??(typeof document<"u"?window:void 0),s=t.history.pushState,i=t.history.replaceState;let n=[];const r=()=>n,a=E=>n=E,o=(c==null?void 0:c.createHref)??(E=>E),d=(c==null?void 0:c.parseLocation)??(()=>v0(`${t.location.pathname}${t.location.search}${t.location.hash}`,t.history.state));(e=t.history.state)!=null&&e.key||t.history.replaceState({[Sf]:0,key:f_()},"");let u=d(),h,l=!1,f=!1,p=!1,m=!1;const g=()=>u;let y,b;const k=()=>{y&&(L._ignoreSubscribers=!0,(y.isPush?t.history.pushState:t.history.replaceState)(y.state,"",y.href),L._ignoreSubscribers=!1,y=void 0,b=void 0,h=void 0)},T=(E,N,F)=>{const G=o(N);b||(h=u),u=v0(N,F),y={href:G,state:F,isPush:(y==null?void 0:y.isPush)||E==="push"},b||(b=Promise.resolve().then(()=>k()))},O=E=>{u=d(),L.notify({type:E})},A=async()=>{if(f){f=!1;return}const E=d(),N=E.state[Sf]-u.state[Sf],F=N===1,G=N===-1,W=!F&&!G||l;l=!1;const te=W?"GO":G?"BACK":"FORWARD",X=W?{type:"GO",index:N}:{type:G?"BACK":"FORWARD"};if(p)p=!1;else{const Y=r();if(typeof document<"u"&&Y.length){for(const ae of Y)if(await ae.blockerFn({currentLocation:u,nextLocation:E,action:te})){f=!0,t.history.go(1),L.notify(X);return}}}u=d(),L.notify(X)},B=E=>{if(m){m=!1;return}let N=!1;const F=r();if(typeof document<"u"&&F.length)for(const G of F){const W=G.enableBeforeUnload??!0;if(W===!0){N=!0;break}if(typeof W=="function"&&W()===!0){N=!0;break}}if(N)return E.preventDefault(),E.returnValue=""},L=Y5({getLocation:g,getLength:()=>t.history.length,pushState:(E,N)=>T("push",E,N),replaceState:(E,N)=>T("replace",E,N),back:E=>(E&&(p=!0),m=!0,t.history.back()),forward:E=>{E&&(p=!0),m=!0,t.history.forward()},go:E=>{l=!0,t.history.go(E)},createHref:E=>o(E),flush:k,destroy:()=>{t.history.pushState=s,t.history.replaceState=i,t.removeEventListener(cN,B,{capture:!0}),t.removeEventListener(dN,A)},onBlocked:()=>{h&&u!==h&&(u=h)},getBlockers:r,setBlockers:a,notifyOnIndexChange:!1});return t.addEventListener(cN,B,{capture:!0}),t.addEventListener(dN,A),t.history.pushState=function(...E){const N=s.apply(t.history,E);return L._ignoreSubscribers||O("PUSH"),N},t.history.replaceState=function(...E){const N=i.apply(t.history,E);return L._ignoreSubscribers||O("REPLACE"),N},L}function k7(c){const e=typeof document<"u"?window:void 0;return Z5({window:e,parseLocation:()=>{const t=e.location.hash.split("#").slice(1),s=t[0]??"/",i=e.location.search,n=t.slice(1),r=n.length===0?"":`#${n.join("#")}`,a=`${s}${i}${r}`;return v0(a,e.history.state)},createHref:t=>`${e.location.pathname}${e.location.search}#${t}`})}function S7(c={initialEntries:["/"]}){const e=c.initialEntries;let t=c.initialIndex?Math.min(Math.max(c.initialIndex,0),e.length-1):e.length-1;const s=e.map((n,r)=>BM(r,void 0));return Y5({getLocation:()=>v0(e[t],s[t]),getLength:()=>e.length,pushState:(n,r)=>{t{s[t]=r,e[t]=n},back:()=>{t=Math.max(t-1,0)},forward:()=>{t=Math.min(t+1,e.length-1)},go:n=>{t=Math.min(Math.max(t+n,0),e.length-1)},createHref:n=>n})}function v0(c,e){const t=c.indexOf("#"),s=c.indexOf("?");return{href:c,pathname:c.substring(0,t>0?s>0?Math.min(t,s):t:s>0?s:c.length),hash:t>-1?c.substring(t):"",search:s>-1?c.slice(s,t===-1?void 0:t):"",state:e||{[Sf]:0,key:f_()}}}function f_(){return(Math.random()+1).toString(36).substring(7)}function Uy(c){return c[c.length-1]}function v7(c){return typeof c=="function"}function dm(c,e){return v7(c)?c(e):c}function NM(c,e){return e.reduce((t,s)=>(t[s]=c[s],t),{})}function dd(c,e){if(c===e)return c;const t=e,s=hN(c)&&hN(t);if(s||QT(c)&&QT(t)){const i=s?c:Object.keys(c),n=i.length,r=s?t:Object.keys(t),a=r.length,o=s?[]:{};let d=0;for(let u=0;u"u")return!0;const t=e.prototype;return!(!uN(t)||!t.hasOwnProperty("isPrototypeOf"))}function uN(c){return Object.prototype.toString.call(c)==="[object Object]"}function hN(c){return Array.isArray(c)&&c.length===Object.keys(c).length}function lN(c,e){let t=Object.keys(c);return e&&(t=t.filter(s=>c[s]!==void 0)),t}function n0(c,e,t){if(c===e)return!0;if(typeof c!=typeof e)return!1;if(QT(c)&&QT(e)){const s=(t==null?void 0:t.ignoreUndefined)??!0,i=lN(c,s),n=lN(e,s);return!(t!=null&&t.partial)&&i.length!==n.length?!1:n.every(r=>n0(c[r],e[r],t))}return Array.isArray(c)&&Array.isArray(e)?c.length!==e.length?!1:!c.some((s,i)=>!n0(s,e[i],t)):!1}function qy(c){let e,t;const s=new Promise((i,n)=>{e=i,t=n});return s.status="pending",s.resolve=i=>{s.status="resolved",s.value=i,e(i),c==null||c(i)},s.reject=i=>{s.status="rejected",t(i)},s}function T7(c){return/%[0-9A-Fa-f]{2}/.test(c)}function Dh(c){return JO(c.filter(e=>e!==void 0).join("/"))}function JO(c){return c.replace(/\/{2,}/g,"/")}function p_(c){return c==="/"?c:c.replace(/^\/{1,}/,"")}function cm(c){return c==="/"?c:c.replace(/\/{1,}$/,"")}function O7(c){return cm(p_(c))}function YT(c,e){return c!=null&&c.endsWith("/")&&c!=="/"&&c!==`${e}/`?c.slice(0,-1):c}function x7(c,e,t){return YT(c,t)===YT(e,t)}function P7({basepath:c,base:e,to:t,trailingSlash:s="never",caseSensitive:i}){var n,r;e=ZT(c,e,i),t=ZT(c,t,i);let a=T0(e);const o=T0(t);a.length>1&&((n=Uy(a))==null?void 0:n.value)==="/"&&a.pop(),o.forEach((u,h)=>{u.value==="/"?h?h===o.length-1&&a.push(u):a=[u]:u.value===".."?a.pop():u.value==="."||a.push(u)}),a.length>1&&(((r=Uy(a))==null?void 0:r.value)==="/"?s==="never"&&a.pop():s==="always"&&a.push({type:"pathname",value:"/"}));const d=Dh([c,...a.map(u=>u.value)]);return JO(d)}function T0(c){if(!c)return[];c=JO(c);const e=[];if(c.slice(0,1)==="/"&&(c=c.substring(1),e.push({type:"pathname",value:"/"})),!c)return e;const t=c.split("/").filter(Boolean);return e.push(...t.map(s=>s==="$"||s==="*"?{type:"wildcard",value:s}:s.charAt(0)==="$"?{type:"param",value:s}:{type:"pathname",value:s.includes("%25")?s.split("%25").map(i=>decodeURI(i)).join("%25"):decodeURI(s)})),c.slice(-1)==="/"&&(c=c.substring(1),e.push({type:"pathname",value:"/"})),e}function N1({path:c,params:e,leaveWildcards:t,leaveParams:s,decodeCharMap:i}){const n=T0(c);function r(d){const u=e[d],h=typeof u=="string";return["*","_splat"].includes(d)?h?encodeURI(u):u:h?I7(u,i):u}const a={},o=Dh(n.map(d=>{if(d.type==="wildcard"){a._splat=e._splat;const u=r("_splat");return t?`${d.value}${u??""}`:u}if(d.type==="param"){const u=d.value.substring(1);if(a[u]=e[u],s){const h=r(d.value);return`${d.value}${h??""}`}return r(u)??"undefined"}return d.value}));return{usedParams:a,interpolatedPath:o}}function I7(c,e){let t=encodeURIComponent(c);if(e)for(const[s,i]of e)t=t.replaceAll(s,i);return t}function E1(c,e,t){const s=C7(c,e,t);if(!(t.to&&!s))return s??{}}function ZT(c,e,t=!1){const s=t?c:c.toLowerCase(),i=t?e:e.toLowerCase();switch(!0){case s==="/":return e;case i===s:return"";case e.length{for(let o=0;o=i.length-1,l=o>=n.length-1;if(u){if(u.type==="wildcard"){const f=decodeURI(Dh(i.slice(o).map(p=>p.value)));return r["*"]=f,r._splat=f,!0}if(u.type==="pathname"){if(u.value==="/"&&!(d!=null&&d.value))return!0;if(d){if(t.caseSensitive){if(u.value!==d.value)return!1}else if(u.value.toLowerCase()!==d.value.toLowerCase())return!1}}if(!d)return!1;if(u.type==="param"){if(d.value==="/")return!1;d.value.charAt(0)!=="$"&&(r[u.value.substring(1)]=decodeURIComponent(d.value))}}if(!h&&l)return r["**"]=Dh(i.slice(o+1).map(f=>f.value)),!!t.fuzzy&&(u==null?void 0:u.value)!=="/"}return!0})()?r:void 0}function ld(c){return!!(c!=null&&c.isNotFound)}const JT="tsr-scroll-restoration-v1_3";let J5=!1;try{J5=typeof window<"u"&&typeof window.sessionStorage=="object"}catch{}const M7=(c,e)=>{let t;return(...s)=>{t||(t=setTimeout(()=>{c(...s),t=null},e))}},Wy=J5?{state:JSON.parse(window.sessionStorage.getItem(JT)||"null")||{},set:e=>(Wy.state=dm(e,Wy.state)||Wy.state,window.sessionStorage.setItem(JT,JSON.stringify(Wy.state)))}:void 0,EM=c=>c.state.key||c.href;function _7(c){const e=[];let t;for(;t=c.parentNode;)e.unshift(`${c.tagName}:nth-child(${[].indexOf.call(t.children,c)+1})`),c=t;return`${e.join(" > ")}`.toLowerCase()}let eO=!1;function eV(c,e,t,s,i){var n;let r;try{r=JSON.parse(sessionStorage.getItem(c)||"{}")}catch(d){console.error(d);return}const a=e||((n=window.history.state)==null?void 0:n.key),o=r[a];eO=!0,(()=>{if(s&&o){for(const u in o){const h=o[u];if(u==="window")window.scrollTo({top:h.scrollY,left:h.scrollX,behavior:t});else if(u){const l=document.querySelector(u);l&&(l.scrollLeft=h.scrollX,l.scrollTop=h.scrollY)}}return}const d=window.location.hash.split("#")[1];if(d){const u=(window.history.state||{}).__hashScrollIntoViewOptions??!0;if(u){const h=document.getElementById(d);h&&h.scrollIntoView(u)}return}["window",...(i==null?void 0:i.filter(u=>u!=="window"))??[]].forEach(u=>{const h=u==="window"?window:document.querySelector(u);h&&h.scrollTo({top:0,left:0,behavior:t})})})(),eO=!1}function A7(c,e){if((c.options.scrollRestoration??!1)&&(c.isScrollRestoring=!0),typeof document>"u"||c.isScrollRestorationSetup)return;c.isScrollRestorationSetup=!0,eO=!1;const s=c.options.getScrollRestorationKey||EM;window.history.scrollRestoration="manual";const i=n=>{if(eO||!c.isScrollRestoring)return;let r="";if(n.target===document||n.target===window)r="window";else{const o=n.target.getAttribute("data-scroll-restoration-id");o?r=`[data-scroll-restoration-id="${o}"]`:r=_7(n.target)}const a=s(c.state.location);Wy.set(o=>{const d=o[a]=o[a]||{},u=d[r]=d[r]||{};if(r==="window")u.scrollX=window.scrollX||0,u.scrollY=window.scrollY||0;else if(r){const h=document.querySelector(r);h&&(u.scrollX=h.scrollLeft||0,u.scrollY=h.scrollTop||0)}return o})};typeof document<"u"&&document.addEventListener("scroll",M7(i,100),!0),c.subscribe("onRendered",n=>{const r=s(n.toLocation);if(!c.resetNextScroll){c.resetNextScroll=!0;return}eV(JT,r,c.options.scrollRestorationBehavior||void 0,c.isScrollRestoring||void 0,c.options.scrollToTopSelectors||void 0),c.isScrollRestoring&&Wy.set(a=>(a[r]=a[r]||{},a))})}function L7(c){if(typeof document<"u"&&document.querySelector){const e=c.state.location.state.__hashScrollIntoViewOptions??!0;if(e&&c.state.location.hash!==""){const t=document.getElementById(c.state.location.hash);t&&t.scrollIntoView(e)}}}function B7(c,e){const t=Object.entries(c).flatMap(([i,n])=>Array.isArray(n)?n.map(r=>[i,String(r)]):[[i,String(n)]]);return""+new URLSearchParams(t).toString()}function qI(c){if(!c)return"";const e=T7(c)?decodeURIComponent(c):decodeURIComponent(encodeURIComponent(c));return e==="false"?!1:e==="true"?!0:+e*0===0&&+e+""===e?+e:e}function N7(c,e){const t=c;return[...new URLSearchParams(t).entries()].reduce((n,[r,a])=>{const o=n[r];return o==null?n[r]=qI(a):n[r]=Array.isArray(o)?[...o,qI(a)]:[o,qI(a)],n},{})}const E7=D7(JSON.parse),R7=q7(JSON.stringify,JSON.parse);function D7(c){return e=>{e.substring(0,1)==="?"&&(e=e.substring(1));const t=N7(e);for(const s in t){const i=t[s];if(typeof i=="string")try{t[s]=c(i)}catch{}}return t}}function q7(c,e){function t(s){if(typeof s=="object"&&s!==null)try{return c(s)}catch{}else if(typeof s=="string"&&typeof e=="function")try{return e(s),c(s)}catch{}return s}return s=>{s={...s},Object.keys(s).forEach(n=>{const r=s[n];typeof r>"u"||r===void 0?delete s[n]:s[n]=t(r)});const i=B7(s).toString();return i?`?${i}`:""}}const ic="__root__";function Jp(c){return!!(c!=null&&c.isRedirect)}function VI(c){return!!(c!=null&&c.isRedirect)&&c.href}function r0(c){const e=c.resolvedLocation,t=c.location,s=(e==null?void 0:e.pathname)!==t.pathname,i=(e==null?void 0:e.href)!==t.href,n=(e==null?void 0:e.hash)!==t.hash;return{fromLocation:e,toLocation:t,pathChanged:s,hrefChanged:i,hashChanged:n}}class V7{constructor(e){this.tempLocationKey=`${Math.round(Math.random()*1e7)}`,this.resetNextScroll=!0,this.shouldViewTransition=void 0,this.isViewTransitionTypesSupported=void 0,this.subscribers=new Set,this.isScrollRestoring=!1,this.isScrollRestorationSetup=!1,this.startTransition=t=>t(),this.update=t=>{var s;t.notFoundRoute&&console.warn("The notFoundRoute API is deprecated and will be removed in the next major version. See https://tanstack.com/router/v1/docs/framework/react/guide/not-found-errors#migrating-from-notfoundroute for more info.");const i=this.options;this.options={...this.options,...t},this.isServer=this.options.isServer??typeof document>"u",this.pathParamsDecodeCharMap=this.options.pathParamsAllowedCharacters?new Map(this.options.pathParamsAllowedCharacters.map(n=>[encodeURIComponent(n),n])):void 0,(!this.basepath||t.basepath&&t.basepath!==i.basepath)&&(t.basepath===void 0||t.basepath===""||t.basepath==="/"?this.basepath="/":this.basepath=`/${O7(t.basepath)}`),(!this.history||this.options.history&&this.options.history!==this.history)&&(this.history=this.options.history??(this.isServer?S7({initialEntries:[this.basepath||"/"]}):Z5()),this.latestLocation=this.parseLocation()),this.options.routeTree!==this.routeTree&&(this.routeTree=this.options.routeTree,this.buildRouteTree()),this.__store||(this.__store=new LM(H7(this.latestLocation),{onUpdate:()=>{this.__store.state={...this.state,cachedMatches:this.state.cachedMatches.filter(n=>!["redirected"].includes(n.status))}}}),A7(this)),typeof window<"u"&&"CSS"in window&&typeof((s=window.CSS)==null?void 0:s.supports)=="function"&&(this.isViewTransitionTypesSupported=window.CSS.supports("selector(:active-view-transition-type(a)"))},this.buildRouteTree=()=>{this.routesById={},this.routesByPath={};const t=this.options.notFoundRoute;t&&(t.init({originalIndex:99999999999,defaultSsr:this.options.defaultSsr}),this.routesById[t.id]=t);const s=r=>{r.forEach((a,o)=>{a.init({originalIndex:o,defaultSsr:this.options.defaultSsr});const d=this.routesById[a.id];if(Ah(!d,`Duplicate routes found with id: ${String(a.id)}`),this.routesById[a.id]=a,!a.isRoot&&a.path){const h=cm(a.fullPath);(!this.routesByPath[h]||a.fullPath.endsWith("/"))&&(this.routesByPath[h]=a)}const u=a.children;u!=null&&u.length&&s(u)})};s([this.routeTree]);const i=[];Object.values(this.routesById).forEach((r,a)=>{var o;if(r.isRoot||!r.path)return;const d=p_(r.fullPath),u=T0(d);for(;u.length>1&&((o=u[0])==null?void 0:o.value)==="/";)u.shift();const h=u.map(l=>l.value==="/"?.75:l.type==="param"?.5:l.type==="wildcard"?.25:1);i.push({child:r,trimmed:d,parsed:u,index:a,scores:h})}),this.flatRoutes=i.sort((r,a)=>{const o=Math.min(r.scores.length,a.scores.length);for(let d=0;da.parsed[d].value?1:-1;return r.index-a.index}).map((r,a)=>(r.child.rank=a,r.child))},this.subscribe=(t,s)=>{const i={eventType:t,fn:s};return this.subscribers.add(i),()=>{this.subscribers.delete(i)}},this.emit=t=>{this.subscribers.forEach(s=>{s.eventType===t.type&&s.fn(t)})},this.parseLocation=(t,s)=>{const i=({pathname:o,search:d,hash:u,state:h})=>{const l=this.options.parseSearch(d),f=this.options.stringifySearch(l);return{pathname:o,searchStr:f,search:dd(t==null?void 0:t.search,l),hash:u.split("#").reverse()[0]??"",href:`${o}${f}${u}`,state:dd(t==null?void 0:t.state,h)}},n=i(s??this.history.location),{__tempLocation:r,__tempKey:a}=n.state;if(r&&(!a||a===this.tempLocationKey)){const o=i(r);return o.state.key=n.state.key,delete o.state.__tempLocation,{...o,maskedLocation:n}}return n},this.resolvePathWithBase=(t,s)=>P7({basepath:this.basepath,base:t,to:JO(s),trailingSlash:this.options.trailingSlash,caseSensitive:this.options.caseSensitive}),this.matchRoutes=(t,s,i)=>typeof t=="string"?this.matchRoutesInternal({pathname:t,search:s},i):this.matchRoutesInternal(t,s),this.getMatchedRoutes=(t,s)=>{let i={};const n=cm(t.pathname),r=u=>E1(this.basepath,n,{to:u.fullPath,caseSensitive:u.options.caseSensitive??this.options.caseSensitive,fuzzy:!0});let a=(s==null?void 0:s.to)!==void 0?this.routesByPath[s.to]:void 0;a?i=r(a):a=this.flatRoutes.find(u=>{const h=r(u);return h?(i=h,!0):!1});let o=a||this.routesById[ic];const d=[o];for(;o.parentRoute;)o=o.parentRoute,d.unshift(o);return{matchedRoutes:d,routeParams:i,foundRoute:a}},this.cancelMatch=t=>{const s=this.getMatch(t);s&&(s.abortController.abort(),clearTimeout(s.pendingTimeout))},this.cancelMatches=()=>{var t;(t=this.state.pendingMatches)==null||t.forEach(s=>{this.cancelMatch(s.id)})},this.buildLocation=t=>{const s=(n={},r)=>{var a,o,d,u,h,l,f;const p=n._fromLocation?this.matchRoutes(n._fromLocation,{_buildLocation:!0}):this.state.matches,m=n.from!=null?p.find(G=>E1(this.basepath,cm(G.pathname),{to:n.from,caseSensitive:!1,fuzzy:!1})):void 0,g=(m==null?void 0:m.pathname)||this.latestLocation.pathname;Ah(n.from==null||m!=null,"Could not find match for from: "+n.from);const y=(a=this.state.pendingMatches)!=null&&a.length?(o=Uy(this.state.pendingMatches))==null?void 0:o.search:((d=Uy(p))==null?void 0:d.search)||this.latestLocation.search,b=r==null?void 0:r.matchedRoutes.filter(G=>p.find(W=>W.routeId===G.id));let k;if(n.to){const G=(m==null?void 0:m.fullPath)||((u=Uy(p))==null?void 0:u.fullPath)||this.latestLocation.pathname;k=this.resolvePathWithBase(G,`${n.to}`)}else{const G=this.routesById[(h=b==null?void 0:b.find(W=>{const te=N1({path:W.fullPath,params:(r==null?void 0:r.routeParams)??{},decodeCharMap:this.pathParamsDecodeCharMap}).interpolatedPath;return Dh([this.basepath,te])===g}))==null?void 0:h.id];k=this.resolvePathWithBase(g,(G==null?void 0:G.to)??g)}const T={...(l=Uy(p))==null?void 0:l.params};let O=(n.params??!0)===!0?T:{...T,...dm(n.params,T)};Object.keys(O).length>0&&(r==null||r.matchedRoutes.map(G=>{var W;return((W=G.options.params)==null?void 0:W.stringify)??G.options.stringifyParams}).filter(Boolean).forEach(G=>{O={...O,...G(O)}})),k=N1({path:k,params:O??{},leaveWildcards:!1,leaveParams:t.leaveParams,decodeCharMap:this.pathParamsDecodeCharMap}).interpolatedPath;let A=y;if(t._includeValidateSearch&&((f=this.options.search)!=null&&f.strict)){let G={};r==null||r.matchedRoutes.forEach(W=>{try{W.options.validateSearch&&(G={...G,...FI(W.options.validateSearch,{...G,...A})??{}})}catch{}}),A=G}A=(G=>{const W=(r==null?void 0:r.matchedRoutes.reduce((Y,ae)=>{var re;const ie=[];if("search"in ae.options)(re=ae.options.search)!=null&&re.middlewares&&ie.push(...ae.options.search.middlewares);else if(ae.options.preSearchFilters||ae.options.postSearchFilters){const ne=({search:ee,next:Z})=>{let oe=ee;"preSearchFilters"in ae.options&&ae.options.preSearchFilters&&(oe=ae.options.preSearchFilters.reduce((le,ke)=>ke(le),ee));const ce=Z(oe);return"postSearchFilters"in ae.options&&ae.options.postSearchFilters?ae.options.postSearchFilters.reduce((le,ke)=>ke(le),ce):ce};ie.push(ne)}if(t._includeValidateSearch&&ae.options.validateSearch){const ne=({search:ee,next:Z})=>{const oe=Z(ee);try{return{...oe,...FI(ae.options.validateSearch,oe)??{}}}catch{return oe}};ie.push(ne)}return Y.concat(ie)},[]))??[],te=({search:Y})=>n.search?n.search===!0?Y:dm(n.search,Y):{};W.push(te);const X=(Y,ae)=>{if(Y>=W.length)return ae;const re=W[Y];return re({search:ae,next:ne=>X(Y+1,ne)})};return X(0,G)})(A),A=dd(y,A);const L=this.options.stringifySearch(A),E=n.hash===!0?this.latestLocation.hash:n.hash?dm(n.hash,this.latestLocation.hash):void 0,N=E?`#${E}`:"";let F=n.state===!0?this.latestLocation.state:n.state?dm(n.state,this.latestLocation.state):{};return F=dd(this.latestLocation.state,F),{pathname:k,search:A,searchStr:L,state:F,hash:E??"",href:`${k}${L}${N}`,unmaskOnReload:n.unmaskOnReload}},i=(n={},r)=>{var a;const o=s(n);let d=r?s(r):void 0;if(!d){let l={};const f=(a=this.options.routeMasks)==null?void 0:a.find(p=>{const m=E1(this.basepath,o.pathname,{to:p.from,caseSensitive:!1,fuzzy:!1});return m?(l=m,!0):!1});if(f){const{from:p,...m}=f;r={...NM(t,["from"]),...m,params:l},d=s(r)}}const u=this.getMatchedRoutes(o,n),h=s(n,u);if(d){const l=this.getMatchedRoutes(d,r),f=s(r,l);h.maskedLocation=f}return h};return t.mask?i(t,{...NM(t,["from"]),...t.mask}):i(t)},this.commitLocation=({viewTransition:t,ignoreBlocker:s,...i})=>{const n=()=>{const o=["key","__TSR_index","__hashScrollIntoViewOptions"];o.forEach(u=>{i.state[u]=this.latestLocation.state[u]});const d=n0(i.state,this.latestLocation.state);return o.forEach(u=>{delete i.state[u]}),d},r=this.latestLocation.href===i.href,a=this.commitLocationPromise;if(this.commitLocationPromise=qy(()=>{a==null||a.resolve()}),r&&n())this.load();else{let{maskedLocation:o,hashScrollIntoView:d,...u}=i;o&&(u={...o,state:{...o.state,__tempKey:void 0,__tempLocation:{...u,search:u.searchStr,state:{...u.state,__tempKey:void 0,__tempLocation:void 0,key:void 0}}}},(u.unmaskOnReload??this.options.unmaskOnReload??!1)&&(u.state.__tempKey=this.tempLocationKey)),u.state.__hashScrollIntoViewOptions=d??this.options.defaultHashScrollIntoView??!0,this.shouldViewTransition=t,this.history[i.replace?"replace":"push"](u.href,u.state,{ignoreBlocker:s})}return this.resetNextScroll=i.resetScroll??!0,this.history.subscribers.size||this.load(),this.commitLocationPromise},this.buildAndCommitLocation=({replace:t,resetScroll:s,hashScrollIntoView:i,viewTransition:n,ignoreBlocker:r,href:a,...o}={})=>{if(a){const u=this.history.location.state.__TSR_index,h=v0(a,{__TSR_index:t?u:u+1});o.to=h.pathname,o.search=this.options.parseSearch(h.search),o.hash=h.hash.slice(1)}const d=this.buildLocation({...o,_includeValidateSearch:!0});return this.commitLocation({...d,viewTransition:n,replace:t,resetScroll:s,hashScrollIntoView:i,ignoreBlocker:r})},this.navigate=({to:t,reloadDocument:s,href:i,...n})=>{if(s){if(!i){const r=this.buildLocation({to:t,...n});i=this.history.createHref(r.href)}n.replace?window.location.replace(i):window.location.href=i;return}return this.buildAndCommitLocation({...n,href:i,to:t})},this.load=async t=>{this.latestLocation=this.parseLocation(this.latestLocation);let s,i,n;for(n=new Promise(r=>{this.startTransition(async()=>{var a;try{const o=this.latestLocation,d=this.state.resolvedLocation;this.cancelMatches();let u;DI(()=>{u=this.matchRoutes(o),this.__store.setState(h=>({...h,status:"pending",isLoading:!0,location:o,pendingMatches:u,cachedMatches:h.cachedMatches.filter(l=>!u.find(f=>f.id===l.id))}))}),this.state.redirect||this.emit({type:"onBeforeNavigate",...r0({resolvedLocation:d,location:o})}),this.emit({type:"onBeforeLoad",...r0({resolvedLocation:d,location:o})}),await this.loadMatches({sync:t==null?void 0:t.sync,matches:u,location:o,onReady:async()=>{this.startViewTransition(async()=>{let h,l,f;DI(()=>{this.__store.setState(p=>{const m=p.matches,g=p.pendingMatches||p.matches;return h=m.filter(y=>!g.find(b=>b.id===y.id)),l=g.filter(y=>!m.find(b=>b.id===y.id)),f=m.filter(y=>g.find(b=>b.id===y.id)),{...p,isLoading:!1,loadedAt:Date.now(),matches:g,pendingMatches:void 0,cachedMatches:[...p.cachedMatches,...h.filter(y=>y.status!=="error")]}}),this.clearExpiredCache()}),[[h,"onLeave"],[l,"onEnter"],[f,"onStay"]].forEach(([p,m])=>{p.forEach(g=>{var y,b;(b=(y=this.looseRoutesById[g.routeId].options)[m])==null||b.call(y,g)})})})}})}catch(o){VI(o)?(s=o,this.isServer||this.navigate({...s,replace:!0,ignoreBlocker:!0})):ld(o)&&(i=o),this.__store.setState(d=>({...d,statusCode:s?s.statusCode:i?404:d.matches.some(u=>u.status==="error")?500:200,redirect:s}))}this.latestLoadPromise===n&&((a=this.commitLocationPromise)==null||a.resolve(),this.latestLoadPromise=void 0,this.commitLocationPromise=void 0),r()})}),this.latestLoadPromise=n,await n;this.latestLoadPromise&&n!==this.latestLoadPromise;)await this.latestLoadPromise;this.hasNotFoundMatch()&&this.__store.setState(r=>({...r,statusCode:404}))},this.startViewTransition=t=>{const s=this.shouldViewTransition??this.options.defaultViewTransition;if(delete this.shouldViewTransition,s&&typeof document<"u"&&"startViewTransition"in document&&typeof document.startViewTransition=="function"){let i;typeof s=="object"&&this.isViewTransitionTypesSupported?i={update:t,types:s.types}:i=t,document.startViewTransition(i)}else t()},this.updateMatch=(t,s)=>{var i;let n;const r=(i=this.state.pendingMatches)==null?void 0:i.find(u=>u.id===t),a=this.state.matches.find(u=>u.id===t),o=this.state.cachedMatches.find(u=>u.id===t),d=r?"pendingMatches":a?"matches":o?"cachedMatches":"";return d&&this.__store.setState(u=>{var h;return{...u,[d]:(h=u[d])==null?void 0:h.map(l=>l.id===t?n=s(l):l)}}),n},this.getMatch=t=>[...this.state.cachedMatches,...this.state.pendingMatches??[],...this.state.matches].find(s=>s.id===t),this.loadMatches=async({location:t,matches:s,preload:i,onReady:n,updateMatch:r=this.updateMatch,sync:a})=>{let o,d=!1;const u=async()=>{d||(d=!0,await(n==null?void 0:n()))},h=f=>!!(i&&!this.state.matches.find(p=>p.id===f));!this.isServer&&!this.state.matches.length&&u();const l=(f,p)=>{var m,g,y,b;if(VI(p)&&!p.reloadDocument)throw p;if(Jp(p)||ld(p)){if(r(f.id,k=>({...k,status:Jp(p)?"redirected":ld(p)?"notFound":"error",isFetching:!1,error:p,beforeLoadPromise:void 0,loaderPromise:void 0})),p.routeId||(p.routeId=f.routeId),(m=f.beforeLoadPromise)==null||m.resolve(),(g=f.loaderPromise)==null||g.resolve(),(y=f.loadPromise)==null||y.resolve(),Jp(p))throw d=!0,p=this.resolveRedirect({...p,_fromLocation:t}),p;if(ld(p))throw this._handleNotFound(s,p,{updateMatch:r}),(b=this.serverSsr)==null||b.onMatchSettled({router:this,match:this.getMatch(f.id)}),p}};try{await new Promise((f,p)=>{(async()=>{var m,g,y,b;try{const k=(A,B,L)=>{var E,N;const{id:F,routeId:G}=s[A],W=this.looseRoutesById[G];if(B instanceof Promise)throw B;B.routerCode=L,o=o??A,l(this.getMatch(F),B);try{(N=(E=W.options).onError)==null||N.call(E,B)}catch(te){B=te,l(this.getMatch(F),B)}r(F,te=>{var X,Y;return(X=te.beforeLoadPromise)==null||X.resolve(),(Y=te.loadPromise)==null||Y.resolve(),{...te,error:B,status:"error",isFetching:!1,updatedAt:Date.now(),abortController:new AbortController,beforeLoadPromise:void 0}})};for(const[A,{id:B,routeId:L}]of s.entries()){const E=this.getMatch(B),N=(m=s[A-1])==null?void 0:m.id,F=this.looseRoutesById[L],G=F.options.pendingMs??this.options.defaultPendingMs,W=!!(n&&!this.isServer&&!h(B)&&(F.options.loader||F.options.beforeLoad)&&typeof G=="number"&&G!==1/0&&(F.options.pendingComponent??((g=this.options)==null?void 0:g.defaultPendingComponent)));let te=!0;if((E.beforeLoadPromise||E.loaderPromise)&&(W&&setTimeout(()=>{try{u()}catch{}},G),await E.beforeLoadPromise,te=this.getMatch(B).status!=="success"),te){try{r(B,be=>{const pe=be.loadPromise;return{...be,loadPromise:qy(()=>{pe==null||pe.resolve()}),beforeLoadPromise:qy()}});const X=new AbortController;let Y;W&&(Y=setTimeout(()=>{try{u()}catch{}},G));const{paramsError:ae,searchError:re}=this.getMatch(B);ae&&k(A,ae,"PARSE_PARAMS"),re&&k(A,re,"VALIDATE_SEARCH");const ie=()=>N?this.getMatch(N).context:this.options.context??{};r(B,be=>({...be,isFetching:"beforeLoad",fetchCount:be.fetchCount+1,abortController:X,pendingTimeout:Y,context:{...ie(),...be.__routeContext}}));const{search:ne,params:ee,context:Z,cause:oe}=this.getMatch(B),ce=h(B),le={search:ne,abortController:X,params:ee,preload:ce,context:Z,location:t,navigate:be=>this.navigate({...be,_fromLocation:t}),buildLocation:this.buildLocation,cause:ce?"preload":oe,matches:s},ke=await((b=(y=F.options).beforeLoad)==null?void 0:b.call(y,le))??{};(Jp(ke)||ld(ke))&&k(A,ke,"BEFORE_LOAD"),r(B,be=>({...be,__beforeLoadContext:ke,context:{...ie(),...be.__routeContext,...ke},abortController:X}))}catch(X){k(A,X,"BEFORE_LOAD")}r(B,X=>{var Y;return(Y=X.beforeLoadPromise)==null||Y.resolve(),{...X,beforeLoadPromise:void 0,isFetching:!1}})}}const T=s.slice(0,o),O=[];T.forEach(({id:A,routeId:B},L)=>{O.push((async()=>{const{loaderPromise:E}=this.getMatch(A);let N=!1,F=!1;if(E){await E;const G=this.getMatch(A);G.error&&l(G,G.error)}else{const G=O[L-1],W=this.looseRoutesById[B],te=()=>{const{params:oe,loaderDeps:ce,abortController:le,context:ke,cause:be}=this.getMatch(A),pe=h(A);return{params:oe,deps:ce,preload:!!pe,parentMatchPromise:G,abortController:le,context:ke,location:t,navigate:Te=>this.navigate({...Te,_fromLocation:t}),cause:pe?"preload":be,route:W}},X=Date.now()-this.getMatch(A).updatedAt,Y=h(A),ae=Y?W.options.preloadStaleTime??this.options.defaultPreloadStaleTime??3e4:W.options.staleTime??this.options.defaultStaleTime??0,re=W.options.shouldReload,ie=typeof re=="function"?re(te()):re;r(A,oe=>({...oe,loaderPromise:qy(),preload:!!Y&&!this.state.matches.find(ce=>ce.id===A)}));const ne=async()=>{var oe,ce,le,ke,be,pe,Te,xe,Pe,Ne,tt;try{const at=async()=>{const $e=this.getMatch(A);$e.minPendingPromise&&await $e.minPendingPromise};try{this.loadRouteChunk(W),r(A,lt=>({...lt,isFetching:"loader"}));const $e=await((ce=(oe=W.options).loader)==null?void 0:ce.call(oe,te()));l(this.getMatch(A),$e),await W._lazyPromise,await at();const Ue={matches:s,match:this.getMatch(A),params:this.getMatch(A).params,loaderData:$e},De=(ke=(le=W.options).head)==null?void 0:ke.call(le,Ue),ze=De==null?void 0:De.meta,gt=De==null?void 0:De.links,yt=De==null?void 0:De.scripts,Xe=(pe=(be=W.options).scripts)==null?void 0:pe.call(be,Ue),st=(xe=(Te=W.options).headers)==null?void 0:xe.call(Te,{loaderData:$e});r(A,lt=>({...lt,error:void 0,status:"success",isFetching:!1,updatedAt:Date.now(),loaderData:$e,meta:ze,links:gt,headScripts:yt,headers:st,scripts:Xe}))}catch($e){let Ue=$e;await at(),l(this.getMatch(A),$e);try{(Ne=(Pe=W.options).onError)==null||Ne.call(Pe,$e)}catch(De){Ue=De,l(this.getMatch(A),De)}r(A,De=>({...De,error:Ue,status:"error",isFetching:!1}))}(tt=this.serverSsr)==null||tt.onMatchSettled({router:this,match:this.getMatch(A)}),await W._componentsPromise}catch(at){r(A,$e=>({...$e,loaderPromise:void 0})),l(this.getMatch(A),at)}},{status:ee,invalid:Z}=this.getMatch(A);N=ee==="success"&&(Z||(ie??X>ae)),Y&&W.options.preload===!1||(N&&!a?(F=!0,(async()=>{try{await ne();const{loaderPromise:oe,loadPromise:ce}=this.getMatch(A);oe==null||oe.resolve(),ce==null||ce.resolve(),r(A,le=>({...le,loaderPromise:void 0}))}catch(oe){VI(oe)&&await this.navigate(oe)}})()):(ee!=="success"||N&&a)&&await ne())}if(!F){const{loaderPromise:G,loadPromise:W}=this.getMatch(A);G==null||G.resolve(),W==null||W.resolve()}return r(A,G=>({...G,isFetching:F?G.isFetching:!1,loaderPromise:F?G.loaderPromise:void 0,invalid:!1})),this.getMatch(A)})())}),await Promise.all(O),f()}catch(k){p(k)}})()}),await u()}catch(f){if(Jp(f)||ld(f))throw ld(f)&&!i&&await u(),f}return s},this.invalidate=t=>{const s=i=>{var n;return((n=t==null?void 0:t.filter)==null?void 0:n.call(t,i))??!0?{...i,invalid:!0,...i.status==="error"?{status:"pending",error:void 0}:{}}:i};return this.__store.setState(i=>{var n;return{...i,matches:i.matches.map(s),cachedMatches:i.cachedMatches.map(s),pendingMatches:(n=i.pendingMatches)==null?void 0:n.map(s)}}),this.load({sync:t==null?void 0:t.sync})},this.resolveRedirect=t=>{const s=t;return s.href||(s.href=this.buildLocation(s).href),s},this.clearCache=t=>{const s=t==null?void 0:t.filter;s!==void 0?this.__store.setState(i=>({...i,cachedMatches:i.cachedMatches.filter(n=>!s(n))})):this.__store.setState(i=>({...i,cachedMatches:[]}))},this.clearExpiredCache=()=>{const t=s=>{const i=this.looseRoutesById[s.routeId];if(!i.options.loader)return!0;const n=(s.preload?i.options.preloadGcTime??this.options.defaultPreloadGcTime:i.options.gcTime??this.options.defaultGcTime)??5*60*1e3;return!(s.status!=="error"&&Date.now()-s.updatedAt(t._lazyPromise===void 0&&(t.lazyFn?t._lazyPromise=t.lazyFn().then(s=>{const{id:i,...n}=s.options;Object.assign(t.options,n)}):t._lazyPromise=Promise.resolve()),t._componentsPromise===void 0&&(t._componentsPromise=t._lazyPromise.then(()=>Promise.all(tV.map(async s=>{const i=t.options[s];i!=null&&i.preload&&await i.preload()})))),t._componentsPromise),this.preloadRoute=async t=>{const s=this.buildLocation(t);let i=this.matchRoutes(s,{throwOnError:!0,preload:!0,dest:t});const n=new Set([...this.state.matches,...this.state.pendingMatches??[]].map(a=>a.id)),r=new Set([...n,...this.state.cachedMatches.map(a=>a.id)]);DI(()=>{i.forEach(a=>{r.has(a.id)||this.__store.setState(o=>({...o,cachedMatches:[...o.cachedMatches,a]}))})});try{return i=await this.loadMatches({matches:i,location:s,preload:!0,updateMatch:(a,o)=>{n.has(a)?i=i.map(d=>d.id===a?o(d):d):this.updateMatch(a,o)}}),i}catch(a){if(Jp(a))return a.reloadDocument?void 0:await this.preloadRoute({...a,_fromLocation:s});ld(a)||console.error(a);return}},this.matchRoute=(t,s)=>{const i={...t,to:t.to?this.resolvePathWithBase(t.from||"",t.to):void 0,params:t.params||{},leaveParams:!0},n=this.buildLocation(i);if(s!=null&&s.pending&&this.state.status!=="pending")return!1;const a=((s==null?void 0:s.pending)===void 0?!this.state.isLoading:s.pending)?this.latestLocation:this.state.resolvedLocation||this.state.location,o=E1(this.basepath,a.pathname,{...s,to:n.pathname});return!o||t.params&&!n0(o,t.params,{partial:!0})?!1:o&&((s==null?void 0:s.includeSearch)??!0)?n0(a.search,n.search,{partial:!0})?o:!1:o},this._handleNotFound=(t,s,{updateMatch:i=this.updateMatch}={})=>{var n;const r=this.routesById[s.routeId??""]??this.routeTree,a={};for(const d of t)a[d.routeId]=d;!r.options.notFoundComponent&&((n=this.options)!=null&&n.defaultNotFoundComponent)&&(r.options.notFoundComponent=this.options.defaultNotFoundComponent),Ah(r.options.notFoundComponent);const o=a[r.id];Ah(o,"Could not find match for route: "+r.id),i(o.id,d=>({...d,status:"notFound",error:s,isFetching:!1})),s.routerCode==="BEFORE_LOAD"&&r.parentRoute&&(s.routeId=r.parentRoute.id,this._handleNotFound(t,s,{updateMatch:i}))},this.hasNotFoundMatch=()=>this.__store.state.matches.some(t=>t.status==="notFound"||t.globalNotFound),this.update({defaultPreloadDelay:50,defaultPendingMs:1e3,defaultPendingMinMs:500,context:void 0,...e,caseSensitive:e.caseSensitive??!1,notFoundMode:e.notFoundMode??"fuzzy",stringifySearch:e.stringifySearch??R7,parseSearch:e.parseSearch??E7}),typeof document<"u"&&(window.__TSR_ROUTER__=this)}get state(){return this.__store.state}get looseRoutesById(){return this.routesById}matchRoutesInternal(e,t){const{foundRoute:s,matchedRoutes:i,routeParams:n}=this.getMatchedRoutes(e,t==null?void 0:t.dest);let r=!1;(s?s.path!=="/"&&n["**"]:cm(e.pathname))&&(this.options.notFoundRoute?i.push(this.options.notFoundRoute):r=!0);const a=(()=>{if(r){if(this.options.notFoundMode!=="root")for(let h=i.length-1;h>=0;h--){const l=i[h];if(l.children)return l.id}return ic}})(),o=i.map(h=>{var l;let f;const p=((l=h.options.params)==null?void 0:l.parse)??h.options.parseParams;if(p)try{const m=p(n);Object.assign(n,m)}catch(m){if(f=new F7(m.message,{cause:m}),t!=null&&t.throwOnError)throw f;return f}}),d=[],u=h=>(h==null?void 0:h.id)?h.context??this.options.context??{}:this.options.context??{};return i.forEach((h,l)=>{var f,p;const m=d[l-1],[g,y,b]=(()=>{const W=(m==null?void 0:m.search)??e.search,te=(m==null?void 0:m._strictSearch)??{};try{const X=FI(h.options.validateSearch,{...W})??{};return[{...W,...X},{...te,...X},void 0]}catch(X){let Y=X;if(X instanceof tO||(Y=new tO(X.message,{cause:X})),t!=null&&t.throwOnError)throw Y;return[W,{},Y]}})(),k=((p=(f=h.options).loaderDeps)==null?void 0:p.call(f,{search:g}))??"",T=k?JSON.stringify(k):"",{usedParams:O,interpolatedPath:A}=N1({path:h.fullPath,params:n,decodeCharMap:this.pathParamsDecodeCharMap}),B=N1({path:h.id,params:n,leaveWildcards:!0,decodeCharMap:this.pathParamsDecodeCharMap}).interpolatedPath+T,L=this.getMatch(B),E=this.state.matches.find(W=>W.routeId===h.id),N=E?"stay":"enter";let F;if(L)F={...L,cause:N,params:E?dd(E.params,n):n,_strictParams:O,search:dd(E?E.search:L.search,g),_strictSearch:y};else{const W=h.options.loader||h.options.beforeLoad||h.lazyFn||G7(h)?"pending":"success";F={id:B,index:l,routeId:h.id,params:E?dd(E.params,n):n,_strictParams:O,pathname:Dh([this.basepath,A]),updatedAt:Date.now(),search:E?dd(E.search,g):g,_strictSearch:y,searchError:void 0,status:W,isFetching:!1,error:void 0,paramsError:o[l],__routeContext:{},__beforeLoadContext:{},context:{},abortController:new AbortController,fetchCount:0,cause:N,loaderDeps:E?dd(E.loaderDeps,k):k,invalid:!1,preload:!1,links:void 0,scripts:void 0,headScripts:void 0,meta:void 0,staticData:h.options.staticData||{},loadPromise:qy(),fullPath:h.fullPath}}t!=null&&t.preload||(F.globalNotFound=a===h.id),F.searchError=b;const G=u(m);F.context={...G,...F.__routeContext,...F.__beforeLoadContext},d.push(F)}),d.forEach((h,l)=>{var f,p,m,g,y,b,k,T;const O=this.looseRoutesById[h.routeId];if(!this.getMatch(h.id)&&(t==null?void 0:t._buildLocation)!==!0){const B=d[l-1],L=u(B),E={deps:h.loaderDeps,params:h.params,context:L,location:e,navigate:N=>this.navigate({...N,_fromLocation:e}),buildLocation:this.buildLocation,cause:h.cause,abortController:h.abortController,preload:!!h.preload,matches:d};h.__routeContext=((p=(f=O.options).context)==null?void 0:p.call(f,E))??{},h.context={...L,...h.__routeContext,...h.__beforeLoadContext}}if(h.status==="success"){h.headers=(g=(m=O.options).headers)==null?void 0:g.call(m,{loaderData:h.loaderData});const B={matches:d,match:h,params:h.params,loaderData:h.loaderData},L=(b=(y=O.options).head)==null?void 0:b.call(y,B);h.links=L==null?void 0:L.links,h.headScripts=L==null?void 0:L.scripts,h.meta=L==null?void 0:L.meta,h.scripts=(T=(k=O.options).scripts)==null?void 0:T.call(k,B)}}),d}}class tO extends Error{}class F7 extends Error{}function H7(c){return{loadedAt:0,isLoading:!1,isTransitioning:!1,status:"idle",resolvedLocation:void 0,location:c,matches:[],pendingMatches:[],cachedMatches:[],statusCode:200}}function FI(c,e){if(c==null)return{};if("~standard"in c){const t=c["~standard"].validate(e);if(t instanceof Promise)throw new tO("Async validation not supported");if(t.issues)throw new tO(JSON.stringify(t.issues,void 0,2),{cause:t});return t.value}return"parse"in c?c.parse(e):typeof c=="function"?c(e):{}}const tV=["component","errorComponent","pendingComponent","notFoundComponent"];function G7(c){var e;for(const t of tV)if((e=c.options[t])!=null&&e.preload)return!0;return!1}const U7="Error preloading route! ☝️";class sV{constructor(e){if(this.init=t=>{var s,i;this.originalIndex=t.originalIndex;const n=this.options,r=!(n!=null&&n.path)&&!(n!=null&&n.id);if(this.parentRoute=(i=(s=this.options).getParentRoute)==null?void 0:i.call(s),r)this._path=ic;else if(!this.parentRoute)throw new Error("Child Route instances must pass a 'getParentRoute: () => ParentRoute' option that returns a Route instance.");let a=r?ic:n==null?void 0:n.path;a&&a!=="/"&&(a=p_(a));const o=(n==null?void 0:n.id)||a;let d=r?ic:Dh([this.parentRoute.id===ic?"":this.parentRoute.id,o]);a===ic&&(a="/"),d!==ic&&(d=Dh(["/",d]));const u=d===ic?"/":Dh([this.parentRoute.fullPath,a]);this._path=a,this._id=d,this._fullPath=u,this._to=u,this._ssr=(n==null?void 0:n.ssr)??t.defaultSsr??!0},this.addChildren=t=>this._addFileChildren(t),this._addFileChildren=t=>(Array.isArray(t)&&(this.children=t),typeof t=="object"&&t!==null&&(this.children=Object.values(t)),this),this._addFileTypes=()=>this,this.updateLoader=t=>(Object.assign(this.options,t),this),this.update=t=>(Object.assign(this.options,t),this),this.lazy=t=>(this.lazyFn=t,this),this.options=e||{},this.isRoot=!(e!=null&&e.getParentRoute),e!=null&&e.id&&(e!=null&&e.path))throw new Error("Route cannot have both an 'id' and a 'path' option.")}get to(){return this._to}get id(){return this._id}get path(){return this._path}get fullPath(){return this._fullPath}get ssr(){return this._ssr}}class W7 extends sV{constructor(e){super(e)}}function m_(c){const e=c.errorComponent??ex;return P.jsx(j7,{getResetKey:c.getResetKey,onCatch:c.onCatch,children:({error:t,reset:s})=>t?q.createElement(e,{error:t,reset:s}):c.children})}class j7 extends q.Component{constructor(){super(...arguments),this.state={error:null}}static getDerivedStateFromProps(e){return{resetKey:e.getResetKey()}}static getDerivedStateFromError(e){return{error:e}}reset(){this.setState({error:null})}componentDidUpdate(e,t){t.error&&t.resetKey!==this.state.resetKey&&this.reset()}componentDidCatch(e,t){this.props.onCatch&&this.props.onCatch(e,t)}render(){return this.props.children({error:this.state.resetKey!==this.props.getResetKey()?null:this.state.error,reset:()=>{this.reset()}})}}function ex({error:c}){const[e,t]=q.useState(!1);return P.jsxs("div",{style:{padding:".5rem",maxWidth:"100%"},children:[P.jsxs("div",{style:{display:"flex",alignItems:"center",gap:".5rem"},children:[P.jsx("strong",{style:{fontSize:"1rem"},children:"Something went wrong!"}),P.jsx("button",{style:{appearance:"none",fontSize:".6em",border:"1px solid currentColor",padding:".1rem .2rem",fontWeight:"bold",borderRadius:".25rem"},onClick:()=>t(s=>!s),children:e?"Hide Error":"Show Error"})]}),P.jsx("div",{style:{height:".25rem"}}),e?P.jsx("div",{children:P.jsx("pre",{style:{fontSize:".7em",border:"1px solid red",borderRadius:".25rem",padding:".3rem",color:"red",overflow:"auto"},children:c.message?P.jsx("code",{children:c.message}):null})}):null]})}var HI={exports:{}},GI={},UI={exports:{}},WI={};/** * @license React * use-sync-external-store-shim.production.js * @@ -46,7 +46,7 @@ Error generating stack: `+$.message+` * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var pN;function j7(){if(pN)return UI;pN=1;var c=X0();function e(h,l){return h===l&&(h!==0||1/h===1/l)||h!==h&&l!==l}var t=typeof Object.is=="function"?Object.is:e,s=c.useState,i=c.useEffect,n=c.useLayoutEffect,r=c.useDebugValue;function a(h,l){var f=l(),p=s({inst:{value:f,getSnapshot:l}}),m=p[0].inst,g=p[1];return n(function(){m.value=f,m.getSnapshot=l,o(m)&&g({inst:m})},[h,f,l]),i(function(){return o(m)&&g({inst:m}),h(function(){o(m)&&g({inst:m})})},[h]),r(f),f}function o(h){var l=h.getSnapshot;h=h.value;try{var f=l();return!t(h,f)}catch{return!0}}function d(h,l){return l()}var u=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?d:a;return UI.useSyncExternalStore=c.useSyncExternalStore!==void 0?c.useSyncExternalStore:u,UI}var mN;function iV(){return mN||(mN=1,GI.exports=j7()),GI.exports}/** + */var fN;function z7(){if(fN)return WI;fN=1;var c=X0();function e(h,l){return h===l&&(h!==0||1/h===1/l)||h!==h&&l!==l}var t=typeof Object.is=="function"?Object.is:e,s=c.useState,i=c.useEffect,n=c.useLayoutEffect,r=c.useDebugValue;function a(h,l){var f=l(),p=s({inst:{value:f,getSnapshot:l}}),m=p[0].inst,g=p[1];return n(function(){m.value=f,m.getSnapshot=l,o(m)&&g({inst:m})},[h,f,l]),i(function(){return o(m)&&g({inst:m}),h(function(){o(m)&&g({inst:m})})},[h]),r(f),f}function o(h){var l=h.getSnapshot;h=h.value;try{var f=l();return!t(h,f)}catch{return!0}}function d(h,l){return l()}var u=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?d:a;return WI.useSyncExternalStore=c.useSyncExternalStore!==void 0?c.useSyncExternalStore:u,WI}var pN;function iV(){return pN||(pN=1,UI.exports=z7()),UI.exports}/** * @license React * use-sync-external-store-shim/with-selector.production.js * @@ -54,21 +54,21 @@ Error generating stack: `+$.message+` * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var gN;function z7(){if(gN)return HI;gN=1;var c=X0(),e=iV();function t(d,u){return d===u&&(d!==0||1/d===1/u)||d!==d&&u!==u}var s=typeof Object.is=="function"?Object.is:t,i=e.useSyncExternalStore,n=c.useRef,r=c.useEffect,a=c.useMemo,o=c.useDebugValue;return HI.useSyncExternalStoreWithSelector=function(d,u,h,l,f){var p=n(null);if(p.current===null){var m={hasValue:!1,value:null};p.current=m}else m=p.current;p=a(function(){function y(A){if(!b){if(b=!0,k=A,A=l(A),f!==void 0&&m.hasValue){var B=m.value;if(f(B,A))return T=B}return T=A}if(B=T,s(k,A))return B;var L=l(A);return f!==void 0&&f(B,L)?(k=A,B):(k=A,T=L)}var b=!1,k,T,O=h===void 0?null:h;return[function(){return y(u())},O===null?void 0:function(){return y(O())}]},[u,h,l,f]);var g=i(d,p[0],p[1]);return r(function(){m.hasValue=!0,m.value=g},[g]),o(g),g},HI}var yN;function $7(){return yN||(yN=1,FI.exports=z7()),FI.exports}var K7=$7();function X7(c,e=t=>t){return K7.useSyncExternalStoreWithSelector(c.subscribe,()=>c.state,()=>c.state,e,Q7)}function Q7(c,e){if(Object.is(c,e))return!0;if(typeof c!="object"||c===null||typeof e!="object"||e===null)return!1;if(c instanceof Map&&e instanceof Map){if(c.size!==e.size)return!1;for(const[s,i]of c)if(!e.has(s)||!Object.is(i,e.get(s)))return!1;return!0}if(c instanceof Set&&e instanceof Set){if(c.size!==e.size)return!1;for(const s of c)if(!e.has(s))return!1;return!0}const t=Object.keys(c);if(t.length!==Object.keys(e).length)return!1;for(let s=0;s"u"?WI:window.__TSR_ROUTER_CONTEXT__?window.__TSR_ROUTER_CONTEXT__:(window.__TSR_ROUTER_CONTEXT__=WI,WI)}function Bu(c){const e=q.useContext(nV());return c==null||c.warn,e}function Dr(c){const e=Bu({warn:(c==null?void 0:c.router)===void 0}),t=(c==null?void 0:c.router)||e,s=q.useRef(void 0);return X7(t.__store,i=>{if(c!=null&&c.select){if(c.structuralSharing??t.options.defaultStructuralSharing){const n=od(s.current,c.select(i));return s.current=n,n}return c.select(i)}return i})}const tx=q.createContext(void 0),Y7=q.createContext(void 0);function If(c){const e=q.useContext(c.from?Y7:tx);return Dr({select:s=>{const i=s.matches.find(n=>c.from?c.from===n.routeId:n.id===e);if(Ah(!((c.shouldThrow??!0)&&!i),`Could not find ${c.from?`an active match from "${c.from}"`:"a nearest match!"}`),i!==void 0)return c.select?c.select(i):i},structuralSharing:c.structuralSharing})}function rV(c){return If({from:c.from,strict:c.strict,structuralSharing:c.structuralSharing,select:e=>c.select?c.select(e.loaderData):e.loaderData})}function aV(c){const{select:e,...t}=c;return If({...t,select:s=>e?e(s.loaderDeps):s.loaderDeps})}function oV(c){return If({from:c.from,strict:c.strict,shouldThrow:c.shouldThrow,structuralSharing:c.structuralSharing,select:e=>c.select?c.select(e.params):e.params})}function dV(c){return If({from:c.from,strict:c.strict,shouldThrow:c.shouldThrow,structuralSharing:c.structuralSharing,select:e=>c.select?c.select(e.search):e.search})}function Nu(c){const{navigate:e}=Bu();return q.useCallback(t=>e({from:c==null?void 0:c.from,...t}),[c==null?void 0:c.from,e])}let Z7=class extends sV{constructor(e){super(e),this.useMatch=t=>If({select:t==null?void 0:t.select,from:this.id,structuralSharing:t==null?void 0:t.structuralSharing}),this.useRouteContext=t=>If({...t,from:this.id,select:s=>t!=null&&t.select?t.select(s.context):s.context}),this.useSearch=t=>dV({select:t==null?void 0:t.select,structuralSharing:t==null?void 0:t.structuralSharing,from:this.id}),this.useParams=t=>oV({select:t==null?void 0:t.select,structuralSharing:t==null?void 0:t.structuralSharing,from:this.id}),this.useLoaderDeps=t=>aV({...t,from:this.id}),this.useLoaderData=t=>rV({...t,from:this.id}),this.useNavigate=()=>Nu({from:this.fullPath}),this.$$typeof=Symbol.for("react.memo")}};function J7(c){return new Z7(c)}class e9 extends U7{constructor(e){super(e),this.useMatch=t=>If({select:t==null?void 0:t.select,from:this.id,structuralSharing:t==null?void 0:t.structuralSharing}),this.useRouteContext=t=>If({...t,from:this.id,select:s=>t!=null&&t.select?t.select(s.context):s.context}),this.useSearch=t=>dV({select:t==null?void 0:t.select,structuralSharing:t==null?void 0:t.structuralSharing,from:this.id}),this.useParams=t=>oV({select:t==null?void 0:t.select,structuralSharing:t==null?void 0:t.structuralSharing,from:this.id}),this.useLoaderDeps=t=>aV({...t,from:this.id}),this.useLoaderData=t=>rV({...t,from:this.id}),this.useNavigate=()=>Nu({from:this.fullPath})}}function t9(c){return new e9(c)}function ra(c){return new s9(c,{silent:!0}).createRoute}class s9{constructor(e,t){this.path=e,this.createRoute=s=>{this.silent;const i=J7(s);return i.isRoot=!1,i},this.silent=t==null?void 0:t.silent}}function i9(c){const e=Dr({select:t=>`not-found-${t.location.pathname}-${t.status}`});return P.jsx(m_,{getResetKey:()=>e,onCatch:(t,s)=>{var i;if(hd(t))(i=c.onCatch)==null||i.call(c,t,s);else throw t},errorComponent:({error:t})=>{var s;if(hd(t))return(s=c.fallback)==null?void 0:s.call(c,t);throw t},children:c.children})}function n9(){return P.jsx("p",{children:"Not Found"})}function bT(c){return P.jsx(P.Fragment,{children:c.children})}function cV(c,e,t){return e.options.notFoundComponent?P.jsx(e.options.notFoundComponent,{data:t}):c.options.defaultNotFoundComponent?P.jsx(c.options.defaultNotFoundComponent,{data:t}):P.jsx(n9,{})}var g_={},sx={};sx.byteLength=o9;sx.toByteArray=c9;sx.fromByteArray=l9;var mu=[],cd=[],r9=typeof Uint8Array<"u"?Uint8Array:Array,jI="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(var vy=0,a9=jI.length;vy0)throw new Error("Invalid string. Length must be a multiple of 4");var t=c.indexOf("=");t===-1&&(t=e);var s=t===e?0:4-t%4;return[t,s]}function o9(c){var e=uV(c),t=e[0],s=e[1];return(t+s)*3/4-s}function d9(c,e,t){return(e+t)*3/4-t}function c9(c){var e,t=uV(c),s=t[0],i=t[1],n=new r9(d9(c,s,i)),r=0,a=i>0?s-4:s,o;for(o=0;o>16&255,n[r++]=e>>8&255,n[r++]=e&255;return i===2&&(e=cd[c.charCodeAt(o)]<<2|cd[c.charCodeAt(o+1)]>>4,n[r++]=e&255),i===1&&(e=cd[c.charCodeAt(o)]<<10|cd[c.charCodeAt(o+1)]<<4|cd[c.charCodeAt(o+2)]>>2,n[r++]=e>>8&255,n[r++]=e&255),n}function u9(c){return mu[c>>18&63]+mu[c>>12&63]+mu[c>>6&63]+mu[c&63]}function h9(c,e,t){for(var s,i=[],n=e;na?a:r+n));return s===1?(e=c[t-1],i.push(mu[e>>2]+mu[e<<4&63]+"==")):s===2&&(e=(c[t-2]<<8)+c[t-1],i.push(mu[e>>10]+mu[e>>4&63]+mu[e<<2&63]+"=")),i.join("")}var y_={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */y_.read=function(c,e,t,s,i){var n,r,a=i*8-s-1,o=(1<>1,u=-7,h=t?i-1:0,l=t?-1:1,f=c[e+h];for(h+=l,n=f&(1<<-u)-1,f>>=-u,u+=a;u>0;n=n*256+c[e+h],h+=l,u-=8);for(r=n&(1<<-u)-1,n>>=-u,u+=s;u>0;r=r*256+c[e+h],h+=l,u-=8);if(n===0)n=1-d;else{if(n===o)return r?NaN:(f?-1:1)*(1/0);r=r+Math.pow(2,s),n=n-d}return(f?-1:1)*r*Math.pow(2,n-s)};y_.write=function(c,e,t,s,i,n){var r,a,o,d=n*8-i-1,u=(1<>1,l=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,f=s?0:n-1,p=s?1:-1,m=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,r=u):(r=Math.floor(Math.log(e)/Math.LN2),e*(o=Math.pow(2,-r))<1&&(r--,o*=2),r+h>=1?e+=l/o:e+=l*Math.pow(2,1-h),e*o>=2&&(r++,o/=2),r+h>=u?(a=0,r=u):r+h>=1?(a=(e*o-1)*Math.pow(2,i),r=r+h):(a=e*Math.pow(2,h-1)*Math.pow(2,i),r=0));i>=8;c[t+f]=a&255,f+=p,a/=256,i-=8);for(r=r<0;c[t+f]=r&255,f+=p,r/=256,d-=8);c[t+f-p]|=m*128};/*! + */var mN;function $7(){if(mN)return GI;mN=1;var c=X0(),e=iV();function t(d,u){return d===u&&(d!==0||1/d===1/u)||d!==d&&u!==u}var s=typeof Object.is=="function"?Object.is:t,i=e.useSyncExternalStore,n=c.useRef,r=c.useEffect,a=c.useMemo,o=c.useDebugValue;return GI.useSyncExternalStoreWithSelector=function(d,u,h,l,f){var p=n(null);if(p.current===null){var m={hasValue:!1,value:null};p.current=m}else m=p.current;p=a(function(){function y(A){if(!b){if(b=!0,k=A,A=l(A),f!==void 0&&m.hasValue){var B=m.value;if(f(B,A))return T=B}return T=A}if(B=T,s(k,A))return B;var L=l(A);return f!==void 0&&f(B,L)?(k=A,B):(k=A,T=L)}var b=!1,k,T,O=h===void 0?null:h;return[function(){return y(u())},O===null?void 0:function(){return y(O())}]},[u,h,l,f]);var g=i(d,p[0],p[1]);return r(function(){m.hasValue=!0,m.value=g},[g]),o(g),g},GI}var gN;function K7(){return gN||(gN=1,HI.exports=$7()),HI.exports}var X7=K7();function Q7(c,e=t=>t){return X7.useSyncExternalStoreWithSelector(c.subscribe,()=>c.state,()=>c.state,e,Y7)}function Y7(c,e){if(Object.is(c,e))return!0;if(typeof c!="object"||c===null||typeof e!="object"||e===null)return!1;if(c instanceof Map&&e instanceof Map){if(c.size!==e.size)return!1;for(const[s,i]of c)if(!e.has(s)||!Object.is(i,e.get(s)))return!1;return!0}if(c instanceof Set&&e instanceof Set){if(c.size!==e.size)return!1;for(const s of c)if(!e.has(s))return!1;return!0}const t=Object.keys(c);if(t.length!==Object.keys(e).length)return!1;for(let s=0;s"u"?jI:window.__TSR_ROUTER_CONTEXT__?window.__TSR_ROUTER_CONTEXT__:(window.__TSR_ROUTER_CONTEXT__=jI,jI)}function Bu(c){const e=q.useContext(nV());return c==null||c.warn,e}function Dr(c){const e=Bu({warn:(c==null?void 0:c.router)===void 0}),t=(c==null?void 0:c.router)||e,s=q.useRef(void 0);return Q7(t.__store,i=>{if(c!=null&&c.select){if(c.structuralSharing??t.options.defaultStructuralSharing){const n=dd(s.current,c.select(i));return s.current=n,n}return c.select(i)}return i})}const tx=q.createContext(void 0),Z7=q.createContext(void 0);function If(c){const e=q.useContext(c.from?Z7:tx);return Dr({select:s=>{const i=s.matches.find(n=>c.from?c.from===n.routeId:n.id===e);if(Ah(!((c.shouldThrow??!0)&&!i),`Could not find ${c.from?`an active match from "${c.from}"`:"a nearest match!"}`),i!==void 0)return c.select?c.select(i):i},structuralSharing:c.structuralSharing})}function rV(c){return If({from:c.from,strict:c.strict,structuralSharing:c.structuralSharing,select:e=>c.select?c.select(e.loaderData):e.loaderData})}function aV(c){const{select:e,...t}=c;return If({...t,select:s=>e?e(s.loaderDeps):s.loaderDeps})}function oV(c){return If({from:c.from,strict:c.strict,shouldThrow:c.shouldThrow,structuralSharing:c.structuralSharing,select:e=>c.select?c.select(e.params):e.params})}function dV(c){return If({from:c.from,strict:c.strict,shouldThrow:c.shouldThrow,structuralSharing:c.structuralSharing,select:e=>c.select?c.select(e.search):e.search})}function Nu(c){const{navigate:e}=Bu();return q.useCallback(t=>e({from:c==null?void 0:c.from,...t}),[c==null?void 0:c.from,e])}let J7=class extends sV{constructor(e){super(e),this.useMatch=t=>If({select:t==null?void 0:t.select,from:this.id,structuralSharing:t==null?void 0:t.structuralSharing}),this.useRouteContext=t=>If({...t,from:this.id,select:s=>t!=null&&t.select?t.select(s.context):s.context}),this.useSearch=t=>dV({select:t==null?void 0:t.select,structuralSharing:t==null?void 0:t.structuralSharing,from:this.id}),this.useParams=t=>oV({select:t==null?void 0:t.select,structuralSharing:t==null?void 0:t.structuralSharing,from:this.id}),this.useLoaderDeps=t=>aV({...t,from:this.id}),this.useLoaderData=t=>rV({...t,from:this.id}),this.useNavigate=()=>Nu({from:this.fullPath}),this.$$typeof=Symbol.for("react.memo")}};function e9(c){return new J7(c)}class t9 extends W7{constructor(e){super(e),this.useMatch=t=>If({select:t==null?void 0:t.select,from:this.id,structuralSharing:t==null?void 0:t.structuralSharing}),this.useRouteContext=t=>If({...t,from:this.id,select:s=>t!=null&&t.select?t.select(s.context):s.context}),this.useSearch=t=>dV({select:t==null?void 0:t.select,structuralSharing:t==null?void 0:t.structuralSharing,from:this.id}),this.useParams=t=>oV({select:t==null?void 0:t.select,structuralSharing:t==null?void 0:t.structuralSharing,from:this.id}),this.useLoaderDeps=t=>aV({...t,from:this.id}),this.useLoaderData=t=>rV({...t,from:this.id}),this.useNavigate=()=>Nu({from:this.fullPath}),this.$$typeof=Symbol.for("react.memo")}}function s9(c){return new t9(c)}function ra(c){return new i9(c,{silent:!0}).createRoute}class i9{constructor(e,t){this.path=e,this.createRoute=s=>{this.silent;const i=e9(s);return i.isRoot=!1,i},this.silent=t==null?void 0:t.silent}}function n9(c){const e=Dr({select:t=>`not-found-${t.location.pathname}-${t.status}`});return P.jsx(m_,{getResetKey:()=>e,onCatch:(t,s)=>{var i;if(ld(t))(i=c.onCatch)==null||i.call(c,t,s);else throw t},errorComponent:({error:t})=>{var s;if(ld(t))return(s=c.fallback)==null?void 0:s.call(c,t);throw t},children:c.children})}function r9(){return P.jsx("p",{children:"Not Found"})}function bT(c){return P.jsx(P.Fragment,{children:c.children})}function cV(c,e,t){return e.options.notFoundComponent?P.jsx(e.options.notFoundComponent,{data:t}):c.options.defaultNotFoundComponent?P.jsx(c.options.defaultNotFoundComponent,{data:t}):P.jsx(r9,{})}var g_={},sx={};sx.byteLength=d9;sx.toByteArray=u9;sx.fromByteArray=f9;var mu=[],ud=[],a9=typeof Uint8Array<"u"?Uint8Array:Array,zI="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(var vy=0,o9=zI.length;vy0)throw new Error("Invalid string. Length must be a multiple of 4");var t=c.indexOf("=");t===-1&&(t=e);var s=t===e?0:4-t%4;return[t,s]}function d9(c){var e=uV(c),t=e[0],s=e[1];return(t+s)*3/4-s}function c9(c,e,t){return(e+t)*3/4-t}function u9(c){var e,t=uV(c),s=t[0],i=t[1],n=new a9(c9(c,s,i)),r=0,a=i>0?s-4:s,o;for(o=0;o>16&255,n[r++]=e>>8&255,n[r++]=e&255;return i===2&&(e=ud[c.charCodeAt(o)]<<2|ud[c.charCodeAt(o+1)]>>4,n[r++]=e&255),i===1&&(e=ud[c.charCodeAt(o)]<<10|ud[c.charCodeAt(o+1)]<<4|ud[c.charCodeAt(o+2)]>>2,n[r++]=e>>8&255,n[r++]=e&255),n}function h9(c){return mu[c>>18&63]+mu[c>>12&63]+mu[c>>6&63]+mu[c&63]}function l9(c,e,t){for(var s,i=[],n=e;na?a:r+n));return s===1?(e=c[t-1],i.push(mu[e>>2]+mu[e<<4&63]+"==")):s===2&&(e=(c[t-2]<<8)+c[t-1],i.push(mu[e>>10]+mu[e>>4&63]+mu[e<<2&63]+"=")),i.join("")}var y_={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */y_.read=function(c,e,t,s,i){var n,r,a=i*8-s-1,o=(1<>1,u=-7,h=t?i-1:0,l=t?-1:1,f=c[e+h];for(h+=l,n=f&(1<<-u)-1,f>>=-u,u+=a;u>0;n=n*256+c[e+h],h+=l,u-=8);for(r=n&(1<<-u)-1,n>>=-u,u+=s;u>0;r=r*256+c[e+h],h+=l,u-=8);if(n===0)n=1-d;else{if(n===o)return r?NaN:(f?-1:1)*(1/0);r=r+Math.pow(2,s),n=n-d}return(f?-1:1)*r*Math.pow(2,n-s)};y_.write=function(c,e,t,s,i,n){var r,a,o,d=n*8-i-1,u=(1<>1,l=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,f=s?0:n-1,p=s?1:-1,m=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,r=u):(r=Math.floor(Math.log(e)/Math.LN2),e*(o=Math.pow(2,-r))<1&&(r--,o*=2),r+h>=1?e+=l/o:e+=l*Math.pow(2,1-h),e*o>=2&&(r++,o/=2),r+h>=u?(a=0,r=u):r+h>=1?(a=(e*o-1)*Math.pow(2,i),r=r+h):(a=e*Math.pow(2,h-1)*Math.pow(2,i),r=0));i>=8;c[t+f]=a&255,f+=p,a/=256,i-=8);for(r=r<0;c[t+f]=r&255,f+=p,r/=256,d-=8);c[t+f-p]|=m*128};/*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh * @license MIT - */(function(c){const e=sx,t=y_,s=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;c.Buffer=u,c.SlowBuffer=O,c.INSPECT_MAX_BYTES=50;const i=2147483647;c.kMaxLength=i;const{Uint8Array:n,ArrayBuffer:r,SharedArrayBuffer:a}=globalThis;u.TYPED_ARRAY_SUPPORT=o(),!u.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function o(){try{const ue=new n(1),z={foo:function(){return 42}};return Object.setPrototypeOf(z,n.prototype),Object.setPrototypeOf(ue,z),ue.foo()===42}catch{return!1}}Object.defineProperty(u.prototype,"parent",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.buffer}}),Object.defineProperty(u.prototype,"offset",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.byteOffset}});function d(ue){if(ue>i)throw new RangeError('The value "'+ue+'" is invalid for option "size"');const z=new n(ue);return Object.setPrototypeOf(z,u.prototype),z}function u(ue,z,j){if(typeof ue=="number"){if(typeof z=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return p(ue)}return h(ue,z,j)}u.poolSize=8192;function h(ue,z,j){if(typeof ue=="string")return m(ue,z);if(r.isView(ue))return y(ue);if(ue==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof ue);if(At(ue,r)||ue&&At(ue.buffer,r)||typeof a<"u"&&(At(ue,a)||ue&&At(ue.buffer,a)))return b(ue,z,j);if(typeof ue=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const fe=ue.valueOf&&ue.valueOf();if(fe!=null&&fe!==ue)return u.from(fe,z,j);const Se=k(ue);if(Se)return Se;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof ue[Symbol.toPrimitive]=="function")return u.from(ue[Symbol.toPrimitive]("string"),z,j);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof ue)}u.from=function(ue,z,j){return h(ue,z,j)},Object.setPrototypeOf(u.prototype,n.prototype),Object.setPrototypeOf(u,n);function l(ue){if(typeof ue!="number")throw new TypeError('"size" argument must be of type number');if(ue<0)throw new RangeError('The value "'+ue+'" is invalid for option "size"')}function f(ue,z,j){return l(ue),ue<=0?d(ue):z!==void 0?typeof j=="string"?d(ue).fill(z,j):d(ue).fill(z):d(ue)}u.alloc=function(ue,z,j){return f(ue,z,j)};function p(ue){return l(ue),d(ue<0?0:T(ue)|0)}u.allocUnsafe=function(ue){return p(ue)},u.allocUnsafeSlow=function(ue){return p(ue)};function m(ue,z){if((typeof z!="string"||z==="")&&(z="utf8"),!u.isEncoding(z))throw new TypeError("Unknown encoding: "+z);const j=A(ue,z)|0;let fe=d(j);const Se=fe.write(ue,z);return Se!==j&&(fe=fe.slice(0,Se)),fe}function g(ue){const z=ue.length<0?0:T(ue.length)|0,j=d(z);for(let fe=0;fe=i)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i.toString(16)+" bytes");return ue|0}function O(ue){return+ue!=ue&&(ue=0),u.alloc(+ue)}u.isBuffer=function(z){return z!=null&&z._isBuffer===!0&&z!==u.prototype},u.compare=function(z,j){if(At(z,n)&&(z=u.from(z,z.offset,z.byteLength)),At(j,n)&&(j=u.from(j,j.offset,j.byteLength)),!u.isBuffer(z)||!u.isBuffer(j))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(z===j)return 0;let fe=z.length,Se=j.length;for(let Me=0,Ke=Math.min(fe,Se);MeSe.length?(u.isBuffer(Ke)||(Ke=u.from(Ke)),Ke.copy(Se,Me)):n.prototype.set.call(Se,Ke,Me);else if(u.isBuffer(Ke))Ke.copy(Se,Me);else throw new TypeError('"list" argument must be an Array of Buffers');Me+=Ke.length}return Se};function A(ue,z){if(u.isBuffer(ue))return ue.length;if(r.isView(ue)||At(ue,r))return ue.byteLength;if(typeof ue!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof ue);const j=ue.length,fe=arguments.length>2&&arguments[2]===!0;if(!fe&&j===0)return 0;let Se=!1;for(;;)switch(z){case"ascii":case"latin1":case"binary":return j;case"utf8":case"utf-8":return yt(ue).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return j*2;case"hex":return j>>>1;case"base64":return lt(ue).length;default:if(Se)return fe?-1:yt(ue).length;z=(""+z).toLowerCase(),Se=!0}}u.byteLength=A;function B(ue,z,j){let fe=!1;if((z===void 0||z<0)&&(z=0),z>this.length||((j===void 0||j>this.length)&&(j=this.length),j<=0)||(j>>>=0,z>>>=0,j<=z))return"";for(ue||(ue="utf8");;)switch(ue){case"hex":return Z(this,z,j);case"utf8":case"utf-8":return ae(this,z,j);case"ascii":return ne(this,z,j);case"latin1":case"binary":return ee(this,z,j);case"base64":return Y(this,z,j);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return oe(this,z,j);default:if(fe)throw new TypeError("Unknown encoding: "+ue);ue=(ue+"").toLowerCase(),fe=!0}}u.prototype._isBuffer=!0;function L(ue,z,j){const fe=ue[z];ue[z]=ue[j],ue[j]=fe}u.prototype.swap16=function(){const z=this.length;if(z%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let j=0;jj&&(z+=" ... "),""},s&&(u.prototype[s]=u.prototype.inspect),u.prototype.compare=function(z,j,fe,Se,Me){if(At(z,n)&&(z=u.from(z,z.offset,z.byteLength)),!u.isBuffer(z))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof z);if(j===void 0&&(j=0),fe===void 0&&(fe=z?z.length:0),Se===void 0&&(Se=0),Me===void 0&&(Me=this.length),j<0||fe>z.length||Se<0||Me>this.length)throw new RangeError("out of range index");if(Se>=Me&&j>=fe)return 0;if(Se>=Me)return-1;if(j>=fe)return 1;if(j>>>=0,fe>>>=0,Se>>>=0,Me>>>=0,this===z)return 0;let Ke=Me-Se,Lt=fe-j;const ps=Math.min(Ke,Lt),os=this.slice(Se,Me),Zt=z.slice(j,fe);for(let _t=0;_t2147483647?j=2147483647:j<-2147483648&&(j=-2147483648),j=+j,Xt(j)&&(j=Se?0:ue.length-1),j<0&&(j=ue.length+j),j>=ue.length){if(Se)return-1;j=ue.length-1}else if(j<0)if(Se)j=0;else return-1;if(typeof z=="string"&&(z=u.from(z,fe)),u.isBuffer(z))return z.length===0?-1:N(ue,z,j,fe,Se);if(typeof z=="number")return z=z&255,typeof n.prototype.indexOf=="function"?Se?n.prototype.indexOf.call(ue,z,j):n.prototype.lastIndexOf.call(ue,z,j):N(ue,[z],j,fe,Se);throw new TypeError("val must be string, number or Buffer")}function N(ue,z,j,fe,Se){let Me=1,Ke=ue.length,Lt=z.length;if(fe!==void 0&&(fe=String(fe).toLowerCase(),fe==="ucs2"||fe==="ucs-2"||fe==="utf16le"||fe==="utf-16le")){if(ue.length<2||z.length<2)return-1;Me=2,Ke/=2,Lt/=2,j/=2}function ps(Zt,_t){return Me===1?Zt[_t]:Zt.readUInt16BE(_t*Me)}let os;if(Se){let Zt=-1;for(os=j;osKe&&(j=Ke-Lt),os=j;os>=0;os--){let Zt=!0;for(let _t=0;_tSe&&(fe=Se)):fe=Se;const Me=z.length;fe>Me/2&&(fe=Me/2);let Ke;for(Ke=0;Ke>>0,isFinite(fe)?(fe=fe>>>0,Se===void 0&&(Se="utf8")):(Se=fe,fe=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const Me=this.length-j;if((fe===void 0||fe>Me)&&(fe=Me),z.length>0&&(fe<0||j<0)||j>this.length)throw new RangeError("Attempt to write outside buffer bounds");Se||(Se="utf8");let Ke=!1;for(;;)switch(Se){case"hex":return F(this,z,j,fe);case"utf8":case"utf-8":return G(this,z,j,fe);case"ascii":case"latin1":case"binary":return W(this,z,j,fe);case"base64":return te(this,z,j,fe);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return X(this,z,j,fe);default:if(Ke)throw new TypeError("Unknown encoding: "+Se);Se=(""+Se).toLowerCase(),Ke=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Y(ue,z,j){return z===0&&j===ue.length?e.fromByteArray(ue):e.fromByteArray(ue.slice(z,j))}function ae(ue,z,j){j=Math.min(ue.length,j);const fe=[];let Se=z;for(;Se239?4:Me>223?3:Me>191?2:1;if(Se+Lt<=j){let ps,os,Zt,_t;switch(Lt){case 1:Me<128&&(Ke=Me);break;case 2:ps=ue[Se+1],(ps&192)===128&&(_t=(Me&31)<<6|ps&63,_t>127&&(Ke=_t));break;case 3:ps=ue[Se+1],os=ue[Se+2],(ps&192)===128&&(os&192)===128&&(_t=(Me&15)<<12|(ps&63)<<6|os&63,_t>2047&&(_t<55296||_t>57343)&&(Ke=_t));break;case 4:ps=ue[Se+1],os=ue[Se+2],Zt=ue[Se+3],(ps&192)===128&&(os&192)===128&&(Zt&192)===128&&(_t=(Me&15)<<18|(ps&63)<<12|(os&63)<<6|Zt&63,_t>65535&&_t<1114112&&(Ke=_t))}}Ke===null?(Ke=65533,Lt=1):Ke>65535&&(Ke-=65536,fe.push(Ke>>>10&1023|55296),Ke=56320|Ke&1023),fe.push(Ke),Se+=Lt}return ie(fe)}const re=4096;function ie(ue){const z=ue.length;if(z<=re)return String.fromCharCode.apply(String,ue);let j="",fe=0;for(;fefe)&&(j=fe);let Se="";for(let Me=z;Mefe&&(z=fe),j<0?(j+=fe,j<0&&(j=0)):j>fe&&(j=fe),jj)throw new RangeError("Trying to access beyond buffer length")}u.prototype.readUintLE=u.prototype.readUIntLE=function(z,j,fe){z=z>>>0,j=j>>>0,fe||ce(z,j,this.length);let Se=this[z],Me=1,Ke=0;for(;++Ke>>0,j=j>>>0,fe||ce(z,j,this.length);let Se=this[z+--j],Me=1;for(;j>0&&(Me*=256);)Se+=this[z+--j]*Me;return Se},u.prototype.readUint8=u.prototype.readUInt8=function(z,j){return z=z>>>0,j||ce(z,1,this.length),this[z]},u.prototype.readUint16LE=u.prototype.readUInt16LE=function(z,j){return z=z>>>0,j||ce(z,2,this.length),this[z]|this[z+1]<<8},u.prototype.readUint16BE=u.prototype.readUInt16BE=function(z,j){return z=z>>>0,j||ce(z,2,this.length),this[z]<<8|this[z+1]},u.prototype.readUint32LE=u.prototype.readUInt32LE=function(z,j){return z=z>>>0,j||ce(z,4,this.length),(this[z]|this[z+1]<<8|this[z+2]<<16)+this[z+3]*16777216},u.prototype.readUint32BE=u.prototype.readUInt32BE=function(z,j){return z=z>>>0,j||ce(z,4,this.length),this[z]*16777216+(this[z+1]<<16|this[z+2]<<8|this[z+3])},u.prototype.readBigUInt64LE=xt(function(z){z=z>>>0,Ue(z,"offset");const j=this[z],fe=this[z+7];(j===void 0||fe===void 0)&&De(z,this.length-8);const Se=j+this[++z]*2**8+this[++z]*2**16+this[++z]*2**24,Me=this[++z]+this[++z]*2**8+this[++z]*2**16+fe*2**24;return BigInt(Se)+(BigInt(Me)<>>0,Ue(z,"offset");const j=this[z],fe=this[z+7];(j===void 0||fe===void 0)&&De(z,this.length-8);const Se=j*2**24+this[++z]*2**16+this[++z]*2**8+this[++z],Me=this[++z]*2**24+this[++z]*2**16+this[++z]*2**8+fe;return(BigInt(Se)<>>0,j=j>>>0,fe||ce(z,j,this.length);let Se=this[z],Me=1,Ke=0;for(;++Ke=Me&&(Se-=Math.pow(2,8*j)),Se},u.prototype.readIntBE=function(z,j,fe){z=z>>>0,j=j>>>0,fe||ce(z,j,this.length);let Se=j,Me=1,Ke=this[z+--Se];for(;Se>0&&(Me*=256);)Ke+=this[z+--Se]*Me;return Me*=128,Ke>=Me&&(Ke-=Math.pow(2,8*j)),Ke},u.prototype.readInt8=function(z,j){return z=z>>>0,j||ce(z,1,this.length),this[z]&128?(255-this[z]+1)*-1:this[z]},u.prototype.readInt16LE=function(z,j){z=z>>>0,j||ce(z,2,this.length);const fe=this[z]|this[z+1]<<8;return fe&32768?fe|4294901760:fe},u.prototype.readInt16BE=function(z,j){z=z>>>0,j||ce(z,2,this.length);const fe=this[z+1]|this[z]<<8;return fe&32768?fe|4294901760:fe},u.prototype.readInt32LE=function(z,j){return z=z>>>0,j||ce(z,4,this.length),this[z]|this[z+1]<<8|this[z+2]<<16|this[z+3]<<24},u.prototype.readInt32BE=function(z,j){return z=z>>>0,j||ce(z,4,this.length),this[z]<<24|this[z+1]<<16|this[z+2]<<8|this[z+3]},u.prototype.readBigInt64LE=xt(function(z){z=z>>>0,Ue(z,"offset");const j=this[z],fe=this[z+7];(j===void 0||fe===void 0)&&De(z,this.length-8);const Se=this[z+4]+this[z+5]*2**8+this[z+6]*2**16+(fe<<24);return(BigInt(Se)<>>0,Ue(z,"offset");const j=this[z],fe=this[z+7];(j===void 0||fe===void 0)&&De(z,this.length-8);const Se=(j<<24)+this[++z]*2**16+this[++z]*2**8+this[++z];return(BigInt(Se)<>>0,j||ce(z,4,this.length),t.read(this,z,!0,23,4)},u.prototype.readFloatBE=function(z,j){return z=z>>>0,j||ce(z,4,this.length),t.read(this,z,!1,23,4)},u.prototype.readDoubleLE=function(z,j){return z=z>>>0,j||ce(z,8,this.length),t.read(this,z,!0,52,8)},u.prototype.readDoubleBE=function(z,j){return z=z>>>0,j||ce(z,8,this.length),t.read(this,z,!1,52,8)};function le(ue,z,j,fe,Se,Me){if(!u.isBuffer(ue))throw new TypeError('"buffer" argument must be a Buffer instance');if(z>Se||zue.length)throw new RangeError("Index out of range")}u.prototype.writeUintLE=u.prototype.writeUIntLE=function(z,j,fe,Se){if(z=+z,j=j>>>0,fe=fe>>>0,!Se){const Lt=Math.pow(2,8*fe)-1;le(this,z,j,fe,Lt,0)}let Me=1,Ke=0;for(this[j]=z&255;++Ke>>0,fe=fe>>>0,!Se){const Lt=Math.pow(2,8*fe)-1;le(this,z,j,fe,Lt,0)}let Me=fe-1,Ke=1;for(this[j+Me]=z&255;--Me>=0&&(Ke*=256);)this[j+Me]=z/Ke&255;return j+fe},u.prototype.writeUint8=u.prototype.writeUInt8=function(z,j,fe){return z=+z,j=j>>>0,fe||le(this,z,j,1,255,0),this[j]=z&255,j+1},u.prototype.writeUint16LE=u.prototype.writeUInt16LE=function(z,j,fe){return z=+z,j=j>>>0,fe||le(this,z,j,2,65535,0),this[j]=z&255,this[j+1]=z>>>8,j+2},u.prototype.writeUint16BE=u.prototype.writeUInt16BE=function(z,j,fe){return z=+z,j=j>>>0,fe||le(this,z,j,2,65535,0),this[j]=z>>>8,this[j+1]=z&255,j+2},u.prototype.writeUint32LE=u.prototype.writeUInt32LE=function(z,j,fe){return z=+z,j=j>>>0,fe||le(this,z,j,4,4294967295,0),this[j+3]=z>>>24,this[j+2]=z>>>16,this[j+1]=z>>>8,this[j]=z&255,j+4},u.prototype.writeUint32BE=u.prototype.writeUInt32BE=function(z,j,fe){return z=+z,j=j>>>0,fe||le(this,z,j,4,4294967295,0),this[j]=z>>>24,this[j+1]=z>>>16,this[j+2]=z>>>8,this[j+3]=z&255,j+4};function ke(ue,z,j,fe,Se){$e(z,fe,Se,ue,j,7);let Me=Number(z&BigInt(4294967295));ue[j++]=Me,Me=Me>>8,ue[j++]=Me,Me=Me>>8,ue[j++]=Me,Me=Me>>8,ue[j++]=Me;let Ke=Number(z>>BigInt(32)&BigInt(4294967295));return ue[j++]=Ke,Ke=Ke>>8,ue[j++]=Ke,Ke=Ke>>8,ue[j++]=Ke,Ke=Ke>>8,ue[j++]=Ke,j}function be(ue,z,j,fe,Se){$e(z,fe,Se,ue,j,7);let Me=Number(z&BigInt(4294967295));ue[j+7]=Me,Me=Me>>8,ue[j+6]=Me,Me=Me>>8,ue[j+5]=Me,Me=Me>>8,ue[j+4]=Me;let Ke=Number(z>>BigInt(32)&BigInt(4294967295));return ue[j+3]=Ke,Ke=Ke>>8,ue[j+2]=Ke,Ke=Ke>>8,ue[j+1]=Ke,Ke=Ke>>8,ue[j]=Ke,j+8}u.prototype.writeBigUInt64LE=xt(function(z,j=0){return ke(this,z,j,BigInt(0),BigInt("0xffffffffffffffff"))}),u.prototype.writeBigUInt64BE=xt(function(z,j=0){return be(this,z,j,BigInt(0),BigInt("0xffffffffffffffff"))}),u.prototype.writeIntLE=function(z,j,fe,Se){if(z=+z,j=j>>>0,!Se){const ps=Math.pow(2,8*fe-1);le(this,z,j,fe,ps-1,-ps)}let Me=0,Ke=1,Lt=0;for(this[j]=z&255;++Me>0)-Lt&255;return j+fe},u.prototype.writeIntBE=function(z,j,fe,Se){if(z=+z,j=j>>>0,!Se){const ps=Math.pow(2,8*fe-1);le(this,z,j,fe,ps-1,-ps)}let Me=fe-1,Ke=1,Lt=0;for(this[j+Me]=z&255;--Me>=0&&(Ke*=256);)z<0&&Lt===0&&this[j+Me+1]!==0&&(Lt=1),this[j+Me]=(z/Ke>>0)-Lt&255;return j+fe},u.prototype.writeInt8=function(z,j,fe){return z=+z,j=j>>>0,fe||le(this,z,j,1,127,-128),z<0&&(z=255+z+1),this[j]=z&255,j+1},u.prototype.writeInt16LE=function(z,j,fe){return z=+z,j=j>>>0,fe||le(this,z,j,2,32767,-32768),this[j]=z&255,this[j+1]=z>>>8,j+2},u.prototype.writeInt16BE=function(z,j,fe){return z=+z,j=j>>>0,fe||le(this,z,j,2,32767,-32768),this[j]=z>>>8,this[j+1]=z&255,j+2},u.prototype.writeInt32LE=function(z,j,fe){return z=+z,j=j>>>0,fe||le(this,z,j,4,2147483647,-2147483648),this[j]=z&255,this[j+1]=z>>>8,this[j+2]=z>>>16,this[j+3]=z>>>24,j+4},u.prototype.writeInt32BE=function(z,j,fe){return z=+z,j=j>>>0,fe||le(this,z,j,4,2147483647,-2147483648),z<0&&(z=4294967295+z+1),this[j]=z>>>24,this[j+1]=z>>>16,this[j+2]=z>>>8,this[j+3]=z&255,j+4},u.prototype.writeBigInt64LE=xt(function(z,j=0){return ke(this,z,j,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),u.prototype.writeBigInt64BE=xt(function(z,j=0){return be(this,z,j,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function pe(ue,z,j,fe,Se,Me){if(j+fe>ue.length)throw new RangeError("Index out of range");if(j<0)throw new RangeError("Index out of range")}function Te(ue,z,j,fe,Se){return z=+z,j=j>>>0,Se||pe(ue,z,j,4),t.write(ue,z,j,fe,23,4),j+4}u.prototype.writeFloatLE=function(z,j,fe){return Te(this,z,j,!0,fe)},u.prototype.writeFloatBE=function(z,j,fe){return Te(this,z,j,!1,fe)};function xe(ue,z,j,fe,Se){return z=+z,j=j>>>0,Se||pe(ue,z,j,8),t.write(ue,z,j,fe,52,8),j+8}u.prototype.writeDoubleLE=function(z,j,fe){return xe(this,z,j,!0,fe)},u.prototype.writeDoubleBE=function(z,j,fe){return xe(this,z,j,!1,fe)},u.prototype.copy=function(z,j,fe,Se){if(!u.isBuffer(z))throw new TypeError("argument should be a Buffer");if(fe||(fe=0),!Se&&Se!==0&&(Se=this.length),j>=z.length&&(j=z.length),j||(j=0),Se>0&&Se=this.length)throw new RangeError("Index out of range");if(Se<0)throw new RangeError("sourceEnd out of bounds");Se>this.length&&(Se=this.length),z.length-j>>0,fe=fe===void 0?this.length:fe>>>0,z||(z=0);let Me;if(typeof z=="number")for(Me=j;Me2**32?Se=tt(String(j)):typeof j=="bigint"&&(Se=String(j),(j>BigInt(2)**BigInt(32)||j<-(BigInt(2)**BigInt(32)))&&(Se=tt(Se)),Se+="n"),fe+=` It must be ${z}. Received ${Se}`,fe},RangeError);function tt(ue){let z="",j=ue.length;const fe=ue[0]==="-"?1:0;for(;j>=fe+4;j-=3)z=`_${ue.slice(j-3,j)}${z}`;return`${ue.slice(0,j)}${z}`}function at(ue,z,j){Ue(z,"offset"),(ue[z]===void 0||ue[z+j]===void 0)&&De(z,ue.length-(j+1))}function $e(ue,z,j,fe,Se,Me){if(ue>j||ue= 0${Ke} and < 2${Ke} ** ${(Me+1)*8}${Ke}`:Lt=`>= -(2${Ke} ** ${(Me+1)*8-1}${Ke}) and < 2 ** ${(Me+1)*8-1}${Ke}`,new Pe.ERR_OUT_OF_RANGE("value",Lt,ue)}at(fe,Se,Me)}function Ue(ue,z){if(typeof ue!="number")throw new Pe.ERR_INVALID_ARG_TYPE(z,"number",ue)}function De(ue,z,j){throw Math.floor(ue)!==ue?(Ue(ue,j),new Pe.ERR_OUT_OF_RANGE("offset","an integer",ue)):z<0?new Pe.ERR_BUFFER_OUT_OF_BOUNDS:new Pe.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${z}`,ue)}const ze=/[^+/0-9A-Za-z-_]/g;function gt(ue){if(ue=ue.split("=")[0],ue=ue.trim().replace(ze,""),ue.length<2)return"";for(;ue.length%4!==0;)ue=ue+"=";return ue}function yt(ue,z){z=z||1/0;let j;const fe=ue.length;let Se=null;const Me=[];for(let Ke=0;Ke55295&&j<57344){if(!Se){if(j>56319){(z-=3)>-1&&Me.push(239,191,189);continue}else if(Ke+1===fe){(z-=3)>-1&&Me.push(239,191,189);continue}Se=j;continue}if(j<56320){(z-=3)>-1&&Me.push(239,191,189),Se=j;continue}j=(Se-55296<<10|j-56320)+65536}else Se&&(z-=3)>-1&&Me.push(239,191,189);if(Se=null,j<128){if((z-=1)<0)break;Me.push(j)}else if(j<2048){if((z-=2)<0)break;Me.push(j>>6|192,j&63|128)}else if(j<65536){if((z-=3)<0)break;Me.push(j>>12|224,j>>6&63|128,j&63|128)}else if(j<1114112){if((z-=4)<0)break;Me.push(j>>18|240,j>>12&63|128,j>>6&63|128,j&63|128)}else throw new Error("Invalid code point")}return Me}function Xe(ue){const z=[];for(let j=0;j>8,Se=j%256,Me.push(Se),Me.push(fe);return Me}function lt(ue){return e.toByteArray(gt(ue))}function Pt(ue,z,j,fe){let Se;for(Se=0;Se=z.length||Se>=ue.length);++Se)z[Se+j]=ue[Se];return Se}function At(ue,z){return ue instanceof z||ue!=null&&ue.constructor!=null&&ue.constructor.name!=null&&ue.constructor.name===z.name}function Xt(ue){return ue!==ue}const It=function(){const ue="0123456789abcdef",z=new Array(256);for(let j=0;j<16;++j){const fe=j*16;for(let Se=0;Se<16;++Se)z[fe+Se]=ue[j]+ue[Se]}return z}();function xt(ue){return typeof BigInt>"u"?Mt:ue}function Mt(){throw new Error("BigInt not supported")}})(g_);const EM=g_.Buffer,CRe=g_.Buffer;var zI,wN;function f9(){if(wN)return zI;wN=1;const c={},e=c.hasOwnProperty,t=(L,E)=>{for(const N in L)e.call(L,N)&&E(N,L[N])},s=(L,E)=>(E&&t(E,(N,F)=>{L[N]=F}),L),i=(L,E)=>{const N=L.length;let F=-1;for(;++F"\\u"+("0000"+L).slice(-4),r=(L,E)=>{let N=L.toString(16);return E?N:N.toUpperCase()},a=c.toString,o=Array.isArray,d=L=>typeof EM=="function"&&EM.isBuffer(L),u=L=>a.call(L)=="[object Object]",h=L=>typeof L=="string"||a.call(L)=="[object String]",l=L=>typeof L=="number"||a.call(L)=="[object Number]",f=L=>typeof L=="bigint",p=L=>typeof L=="function",m=L=>a.call(L)=="[object Map]",g=L=>a.call(L)=="[object Set]",y={"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t"},b=/[\\\b\f\n\r\t]/,k=/[0-9]/,T=/[\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,O=/([\uD800-\uDBFF][\uDC00-\uDFFF])|([\uD800-\uDFFF])|(['"`])|[^]/g,A=/([\uD800-\uDBFF][\uDC00-\uDFFF])|([\uD800-\uDFFF])|(['"`])|[^ !#-&\(-\[\]-_a-~]/g,B=(L,E)=>{const N=()=>{ae=Y,++E.indentLevel,Y=E.indent.repeat(E.indentLevel)},F={escapeEverything:!1,minimal:!1,isScriptContext:!1,quotes:"single",wrap:!1,es6:!1,json:!1,compact:!0,lowercaseHex:!1,numbers:"decimal",indent:" ",indentLevel:0,__inline1__:!1,__inline2__:!1},G=E&&E.json;G&&(F.quotes="double",F.wrap=!0),E=s(F,E),E.quotes!="single"&&E.quotes!="double"&&E.quotes!="backtick"&&(E.quotes="single");const W=E.quotes=="double"?'"':E.quotes=="backtick"?"`":"'",te=E.compact,X=E.lowercaseHex;let Y=E.indent.repeat(E.indentLevel),ae="";const re=E.__inline1__,ie=E.__inline2__,ne=te?"":` -`;let ee,Z=!0;const oe=E.numbers=="binary",ce=E.numbers=="octal",le=E.numbers=="decimal",ke=E.numbers=="hexadecimal";if(G&&L&&p(L.toJSON)&&(L=L.toJSON()),!h(L)){if(m(L))return L.size==0?"new Map()":(te||(E.__inline1__=!0,E.__inline2__=!1),"new Map("+B(Array.from(L),E)+")");if(g(L))return L.size==0?"new Set()":"new Set("+B(Array.from(L),E)+")";if(d(L))return L.length==0?"Buffer.from([])":"Buffer.from("+B(Array.from(L),E)+")";if(o(L))return ee=[],E.wrap=!0,re&&(E.__inline1__=!1,E.__inline2__=!0),ie||N(),i(L,pe=>{Z=!1,ie&&(E.__inline2__=!1),ee.push((te||ie?"":Y)+B(pe,E))}),Z?"[]":ie?"["+ee.join(", ")+"]":"["+ne+ee.join(","+ne)+ne+(te?"":ae)+"]";if(l(L)||f(L)){if(G)return JSON.stringify(Number(L));let pe;if(le)pe=String(L);else if(ke){let Te=L.toString(16);X||(Te=Te.toUpperCase()),pe="0x"+Te}else oe?pe="0b"+L.toString(2):ce&&(pe="0o"+L.toString(8));return f(L)?pe+"n":pe}else return f(L)?G?JSON.stringify(Number(L)):L+"n":u(L)?(ee=[],E.wrap=!0,N(),t(L,(pe,Te)=>{Z=!1,ee.push((te?"":Y)+B(pe,E)+":"+(te?"":" ")+B(Te,E))}),Z?"{}":"{"+ne+ee.join(","+ne)+ne+(te?"":ae)+"}"):G?JSON.stringify(L)||"null":String(L)}const be=E.escapeEverything?O:A;return ee=L.replace(be,(pe,Te,xe,Pe,Ne,tt)=>{if(Te){if(E.minimal)return Te;const $e=Te.charCodeAt(0),Ue=Te.charCodeAt(1);if(E.es6){const De=($e-55296)*1024+Ue-56320+65536;return"\\u{"+r(De,X)+"}"}return n(r($e,X))+n(r(Ue,X))}if(xe)return n(r(xe.charCodeAt(0),X));if(pe=="\0"&&!G&&!k.test(tt.charAt(Ne+1)))return"\\0";if(Pe)return Pe==W||E.escapeEverything?"\\"+Pe:Pe;if(b.test(pe))return y[pe];if(E.minimal&&!T.test(pe))return pe;const at=r(pe.charCodeAt(0),X);return G||at.length>2?n(at):"\\x"+("00"+at).slice(-2)}),W=="`"&&(ee=ee.replace(/\$\{/g,"\\${")),E.isScriptContext&&(ee=ee.replace(/<\/(script|style)/gi,"<\\/$1").replace(/