From d1f8ba13648002f0e35b3a0c3710121a454948d2 Mon Sep 17 00:00:00 2001 From: bludnic Date: Tue, 17 Dec 2024 23:05:21 +0000 Subject: [PATCH] chore: rebuild frontend --- ...BSgnTFpm.js => SimpleGridForm-meB6c23h.js} | 2 +- apps/cli/frontend/assets/browser-CuULstjh.js | 10 ++ apps/cli/frontend/assets/browser-DwyAv24f.js | 10 -- .../{index-Cwxmhbah.js => index-BhSIrZNS.js} | 104 +++++++++--------- .../{index-Bf-Lt9C8.js => index-CKZfFxrD.js} | 2 +- .../{index-DXVpcjR6.js => index-DavaislI.js} | 2 +- .../{index-BKGPlAjh.js => index-XMXjzZPd.js} | 2 +- .../{index-DZI28g-8.js => index-sM8OKwYn.js} | 2 +- .../{page-DM9UFWLS.js => page-C96kGya-.js} | 2 +- .../{page-x1ZUTXQj.js => page-CcatxWAK.js} | 2 +- .../{page-DGkmv9Vg.js => page-DNHz__vQ.js} | 2 +- apps/cli/frontend/index.html | 2 +- 12 files changed, 71 insertions(+), 71 deletions(-) rename apps/cli/frontend/assets/{SimpleGridForm-BSgnTFpm.js => SimpleGridForm-meB6c23h.js} (99%) create mode 100644 apps/cli/frontend/assets/browser-CuULstjh.js delete mode 100644 apps/cli/frontend/assets/browser-DwyAv24f.js rename apps/cli/frontend/assets/{index-Cwxmhbah.js => index-BhSIrZNS.js} (62%) rename apps/cli/frontend/assets/{index-Bf-Lt9C8.js => index-CKZfFxrD.js} (99%) rename apps/cli/frontend/assets/{index-DXVpcjR6.js => index-DavaislI.js} (92%) rename apps/cli/frontend/assets/{index-BKGPlAjh.js => index-XMXjzZPd.js} (93%) rename apps/cli/frontend/assets/{index-DZI28g-8.js => index-sM8OKwYn.js} (99%) rename apps/cli/frontend/assets/{page-DM9UFWLS.js => page-C96kGya-.js} (93%) rename apps/cli/frontend/assets/{page-x1ZUTXQj.js => page-CcatxWAK.js} (97%) rename apps/cli/frontend/assets/{page-DGkmv9Vg.js => page-DNHz__vQ.js} (95%) diff --git a/apps/cli/frontend/assets/SimpleGridForm-BSgnTFpm.js b/apps/cli/frontend/assets/SimpleGridForm-meB6c23h.js similarity index 99% rename from apps/cli/frontend/assets/SimpleGridForm-BSgnTFpm.js rename to apps/cli/frontend/assets/SimpleGridForm-meB6c23h.js index fd7deb5f..73ecccba 100644 --- a/apps/cli/frontend/assets/SimpleGridForm-BSgnTFpm.js +++ b/apps/cli/frontend/assets/SimpleGridForm-meB6c23h.js @@ -1 +1 @@ -import{I as h,O as y,J as O,K as Y,r as u,L as ee,M as te,_ as v,N as ne,P as se,Q as re,T as ae,U as oe,V as ie,W as le,j as s,X 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,a6 as je,l as ve,a7 as Ce,a8 as Se,a9 as Ie,aa as Fe,ab as $,ac as Pe,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 ke}from"./index-Cwxmhbah.js";function Qe(e,n,t){return h(e).minus(n).div(t-1).toNumber()}function Re(e,n,t,r){const a=Qe(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 It=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,Ke=e=>e.gridBotForm.gridLinesNumber,Xe=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),x=u.useMemo(()=>({id:l,ref:c}),[l]),{id:p}=te(n??et,x),C=p!==i,P=p!==void 0?o(p):void 0;return{hidden:C,getRootProps:(B={})=>v({"aria-labelledby":P??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=re("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=ae({props:n,name:"JoyTabPanel"}),{orientation:a}=O()||{orientation:"horizontal"},i=u.useContext(oe),{children:o,value:l=0,component:c,color:d="neutral",variant:x="plain",size:p,slots:C={},slotProps:P={},keepMounted:E=!1}=r,B=ie(r,st),{hidden:z,getRootProps:J}=tt(v({},r,{value:l})),k=v({},r,{orientation:a,hidden:z,size:p??i,color:d,variant:x}),K=rt(k),X=v({},B,{component:c,slots:C,slotProps:P}),[Q,R]=le("root",{ref:t,elementType:at,getSlotProps:J,externalForwardedProps:X,additionalProps:{role:"tabpanel",ref:t,as:c},ownerState:k,className:K.root});return E?s.jsx(Q,v({},R,{children:o})):s.jsx(Q,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,I=({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 Pt=({symbolId:e,barSize:n,onBarSizeChange:t,gridLines:r,currentAssetPrice:a})=>{const i=u.useDeferredValue(e),o=e!==i,l=u.useMemo(()=>ut(r,a),[r,a]),[c,d]=u.useState(!0);return s.jsx(u.Suspense,{fallback:s.jsx(F,{animation:"wave",height:ge,variant:"rectangular",width:"100%"}),children:s.jsxs(fe,{barSize:n,dimmed:o,priceLines:l,showPriceLines:c,symbolId:i,children:[s.jsx(u.Suspense,{fallback:s.jsx(I,{width:232}),children:s.jsx(ot,{})}),s.jsx(u.Suspense,{fallback:s.jsx(I,{width:232}),children:s.jsx(it,{})}),s.jsx(be,{onChange:x=>{t&&t(x)},value:n,whitelist:ye}),s.jsx(je,{}),s.jsx(ve,{display:"flex",children:s.jsx(Ce,{gridVisible:c,hideTradesButton:!0,onGridVisibleChange:d})})]})})},S={simple:"simple",advanced:"advanced"},wt=({simpleForm:e,advancedForm:n})=>{const t=m(He),r=f(),a=(i,o)=>{o!==null&&r(Pe(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(Ie,{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=p=>{o(p.target.value)},x=()=>{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:x,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 x=C=>{d(C.target.value)},p=()=>{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:p,onChange:x,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),x="investment-field";return s.jsxs(L,{className:n,children:[s.jsx(N,{htmlFor:x,children:"Investment"}),s.jsx(T,{disabled:!0,endDecorator:s.jsx(s.Fragment,{children:r}),id:x,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(Xe),[l,c]=u.useState(o);u.useEffect(()=>{c(o)},[o]);const d=p=>{c(p.target.value)},x=()=>{isNaN(Number(l))?c(o):i(qe(l))};return s.jsx(H,{disabled:n,filter:a.filters,fullWidth:!0,label:"Quantity per grid",onBlur:x,onChange:d,readOnly:t,required:!0,value:l})},ft="gridLevels",bt=e=>{const{disabled:n,readOnly:t}=e,r=f(),a=m(Ke),[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=p=>{c(p.target.value)},x=()=>{l.length>0?i(ze(Number(l))):c(`${o}`)};return s.jsx(A,{disabled:n,filter:a.filters,fullWidth:!0,label:"High price",onBlur:x,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=p=>{c(p.target.value)},x=()=>{l.length>0?i(ke(Number(l))):c(`${o}`)};return s.jsx(A,{disabled:n,filter:a.filters,fullWidth:!0,label:"Low price",onBlur:x,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(I,{withLabel:!0}),children:s.jsx(yt,{})})}),s.jsx(g,{md:6,xs:12,children:s.jsx(u.Suspense,{fallback:s.jsx(I,{withLabel:!0}),children:s.jsx(jt,{})})}),s.jsx(g,{md:6,xs:12,children:s.jsx(u.Suspense,{fallback:s.jsx(I,{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,Pt as G,I,Nt as S,j as a,Ze as b,Je as c,Ke as d,Xe as e,St as f,Lt as g,Ft as h,q as i,It as s}; +import{I as h,O as y,J as O,K as Y,r as u,L as ee,M as te,_ as v,N as ne,P as se,Q as re,T as ae,U as oe,V as ie,W as le,j as s,X 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,a6 as je,l as ve,a7 as Ce,a8 as Se,a9 as Ie,aa as Fe,ab as $,ac as Pe,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 ke}from"./index-BhSIrZNS.js";function Qe(e,n,t){return h(e).minus(n).div(t-1).toNumber()}function Re(e,n,t,r){const a=Qe(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 It=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,Ke=e=>e.gridBotForm.gridLinesNumber,Xe=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),x=u.useMemo(()=>({id:l,ref:c}),[l]),{id:p}=te(n??et,x),C=p!==i,P=p!==void 0?o(p):void 0;return{hidden:C,getRootProps:(B={})=>v({"aria-labelledby":P??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=re("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=ae({props:n,name:"JoyTabPanel"}),{orientation:a}=O()||{orientation:"horizontal"},i=u.useContext(oe),{children:o,value:l=0,component:c,color:d="neutral",variant:x="plain",size:p,slots:C={},slotProps:P={},keepMounted:E=!1}=r,B=ie(r,st),{hidden:z,getRootProps:J}=tt(v({},r,{value:l})),k=v({},r,{orientation:a,hidden:z,size:p??i,color:d,variant:x}),K=rt(k),X=v({},B,{component:c,slots:C,slotProps:P}),[Q,R]=le("root",{ref:t,elementType:at,getSlotProps:J,externalForwardedProps:X,additionalProps:{role:"tabpanel",ref:t,as:c},ownerState:k,className:K.root});return E?s.jsx(Q,v({},R,{children:o})):s.jsx(Q,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,I=({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 Pt=({symbolId:e,barSize:n,onBarSizeChange:t,gridLines:r,currentAssetPrice:a})=>{const i=u.useDeferredValue(e),o=e!==i,l=u.useMemo(()=>ut(r,a),[r,a]),[c,d]=u.useState(!0);return s.jsx(u.Suspense,{fallback:s.jsx(F,{animation:"wave",height:ge,variant:"rectangular",width:"100%"}),children:s.jsxs(fe,{barSize:n,dimmed:o,priceLines:l,showPriceLines:c,symbolId:i,children:[s.jsx(u.Suspense,{fallback:s.jsx(I,{width:232}),children:s.jsx(ot,{})}),s.jsx(u.Suspense,{fallback:s.jsx(I,{width:232}),children:s.jsx(it,{})}),s.jsx(be,{onChange:x=>{t&&t(x)},value:n,whitelist:ye}),s.jsx(je,{}),s.jsx(ve,{display:"flex",children:s.jsx(Ce,{gridVisible:c,hideTradesButton:!0,onGridVisibleChange:d})})]})})},S={simple:"simple",advanced:"advanced"},wt=({simpleForm:e,advancedForm:n})=>{const t=m(He),r=f(),a=(i,o)=>{o!==null&&r(Pe(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(Ie,{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=p=>{o(p.target.value)},x=()=>{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:x,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 x=C=>{d(C.target.value)},p=()=>{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:p,onChange:x,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),x="investment-field";return s.jsxs(L,{className:n,children:[s.jsx(N,{htmlFor:x,children:"Investment"}),s.jsx(T,{disabled:!0,endDecorator:s.jsx(s.Fragment,{children:r}),id:x,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(Xe),[l,c]=u.useState(o);u.useEffect(()=>{c(o)},[o]);const d=p=>{c(p.target.value)},x=()=>{isNaN(Number(l))?c(o):i(qe(l))};return s.jsx(H,{disabled:n,filter:a.filters,fullWidth:!0,label:"Quantity per grid",onBlur:x,onChange:d,readOnly:t,required:!0,value:l})},ft="gridLevels",bt=e=>{const{disabled:n,readOnly:t}=e,r=f(),a=m(Ke),[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=p=>{c(p.target.value)},x=()=>{l.length>0?i(ze(Number(l))):c(`${o}`)};return s.jsx(A,{disabled:n,filter:a.filters,fullWidth:!0,label:"High price",onBlur:x,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=p=>{c(p.target.value)},x=()=>{l.length>0?i(ke(Number(l))):c(`${o}`)};return s.jsx(A,{disabled:n,filter:a.filters,fullWidth:!0,label:"Low price",onBlur:x,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(I,{withLabel:!0}),children:s.jsx(yt,{})})}),s.jsx(g,{md:6,xs:12,children:s.jsx(u.Suspense,{fallback:s.jsx(I,{withLabel:!0}),children:s.jsx(jt,{})})}),s.jsx(g,{md:6,xs:12,children:s.jsx(u.Suspense,{fallback:s.jsx(I,{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,Pt as G,I,Nt as S,j as a,Ze as b,Je as c,Ke as d,Xe as e,St as f,Lt as g,Ft as h,q as i,It as s}; diff --git a/apps/cli/frontend/assets/browser-CuULstjh.js b/apps/cli/frontend/assets/browser-CuULstjh.js new file mode 100644 index 00000000..6e272b18 --- /dev/null +++ b/apps/cli/frontend/assets/browser-CuULstjh.js @@ -0,0 +1,10 @@ +import{a$ as _r,b0 as nn,a_ as fe,aX as U,aY as on,aW as Ke}from"./index-BhSIrZNS.js";import{h as an}from"./__vite-browser-external-v7f2oYTb.js";var fn={},Tt={exports:{}},ge=typeof Reflect=="object"?Reflect:null,Wt=ge&&typeof ge.apply=="function"?ge.apply:function(e,r,o){return Function.prototype.apply.call(e,r,o)},je;ge&&typeof ge.ownKeys=="function"?je=ge.ownKeys:Object.getOwnPropertySymbols?je=function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:je=function(e){return Object.getOwnPropertyNames(e)};function un(t){console&&console.warn&&console.warn(t)}var Sr=Number.isNaN||function(e){return e!==e};function H(){H.init.call(this)}Tt.exports=H;var Oo=Tt.exports.once=dn;H.EventEmitter=H;H.prototype._events=void 0;H.prototype._eventsCount=0;H.prototype._maxListeners=void 0;var qt=10;function Ue(t){if(typeof t!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t)}Object.defineProperty(H,"defaultMaxListeners",{enumerable:!0,get:function(){return qt},set:function(t){if(typeof t!="number"||t<0||Sr(t))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+t+".");qt=t}});H.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};H.prototype.setMaxListeners=function(e){if(typeof e!="number"||e<0||Sr(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this};function Er(t){return t._maxListeners===void 0?H.defaultMaxListeners:t._maxListeners}H.prototype.getMaxListeners=function(){return Er(this)};H.prototype.emit=function(e){for(var r=[],o=1;o0&&(p=r[0]),p instanceof Error)throw p;var s=new Error("Unhandled error."+(p?" ("+p.message+")":""));throw s.context=p,s}var y=u[e];if(y===void 0)return!1;if(typeof y=="function")Wt(y,this,r);else for(var m=y.length,P=Tr(y,m),o=0;o0&&p.length>f&&!p.warned){p.warned=!0;var s=new Error("Possible EventEmitter memory leak detected. "+p.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit");s.name="MaxListenersExceededWarning",s.emitter=t,s.type=e,s.count=p.length,un(s)}return t}H.prototype.addListener=function(e,r){return Ar(this,e,r,!1)};H.prototype.on=H.prototype.addListener;H.prototype.prependListener=function(e,r){return Ar(this,e,r,!0)};function sn(){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 Rr(t,e,r){var o={fired:!1,wrapFn:void 0,target:t,type:e,listener:r},f=sn.bind(o);return f.listener=r,o.wrapFn=f,f}H.prototype.once=function(e,r){return Ue(r),this.on(e,Rr(this,e,r)),this};H.prototype.prependOnceListener=function(e,r){return Ue(r),this.prependListener(e,Rr(this,e,r)),this};H.prototype.removeListener=function(e,r){var o,f,u,p,s;if(Ue(r),f=this._events,f===void 0)return this;if(o=f[e],o===void 0)return this;if(o===r||o.listener===r)--this._eventsCount===0?this._events=Object.create(null):(delete f[e],f.removeListener&&this.emit("removeListener",e,o.listener||r));else if(typeof o!="function"){for(u=-1,p=o.length-1;p>=0;p--)if(o[p]===r||o[p].listener===r){s=o[p].listener,u=p;break}if(u<0)return this;u===0?o.shift():ln(o,u),o.length===1&&(f[e]=o[0]),f.removeListener!==void 0&&this.emit("removeListener",e,s||r)}return this};H.prototype.off=H.prototype.removeListener;H.prototype.removeAllListeners=function(e){var r,o,f;if(o=this._events,o===void 0)return this;if(o.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):o[e]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete o[e]),this;if(arguments.length===0){var u=Object.keys(o),p;for(f=0;f=0;f--)this.removeListener(e,r[f]);return this};function Or(t,e,r){var o=t._events;if(o===void 0)return[];var f=o[e];return f===void 0?[]:typeof f=="function"?r?[f.listener||f]:[f]:r?cn(f):Tr(f,f.length)}H.prototype.listeners=function(e){return Or(this,e,!0)};H.prototype.rawListeners=function(e){return Or(this,e,!1)};H.listenerCount=function(t,e){return typeof t.listenerCount=="function"?t.listenerCount(e):Pr.call(t,e)};H.prototype.listenerCount=Pr;function Pr(t){var e=this._events;if(e!==void 0){var r=e[t];if(typeof r=="function")return 1;if(r!==void 0)return r.length}return 0}H.prototype.eventNames=function(){return this._eventsCount>0?je(this._events):[]};function Tr(t,e){for(var r=new Array(e),o=0;o"u"||!V?k:V(Uint8Array),ue={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?k:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?k:ArrayBuffer,"%ArrayIteratorPrototype%":de&&V?V([][Symbol.iterator]()):k,"%AsyncFromSyncIteratorPrototype%":k,"%AsyncFunction%":ye,"%AsyncGenerator%":ye,"%AsyncGeneratorFunction%":ye,"%AsyncIteratorPrototype%":ye,"%Atomics%":typeof Atomics>"u"?k:Atomics,"%BigInt%":typeof BigInt>"u"?k:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?k:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?k:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?k:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":zn,"%eval%":eval,"%EvalError%":Kn,"%Float32Array%":typeof Float32Array>"u"?k:Float32Array,"%Float64Array%":typeof Float64Array>"u"?k:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?k:FinalizationRegistry,"%Function%":Fr,"%GeneratorFunction%":ye,"%Int8Array%":typeof Int8Array>"u"?k:Int8Array,"%Int16Array%":typeof Int16Array>"u"?k:Int16Array,"%Int32Array%":typeof Int32Array>"u"?k:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":de&&V?V(V([][Symbol.iterator]())):k,"%JSON%":typeof JSON=="object"?JSON:k,"%Map%":typeof Map>"u"?k:Map,"%MapIteratorPrototype%":typeof Map>"u"||!de||!V?k:V(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Cr,"%Object.getOwnPropertyDescriptor%":Se,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?k:Promise,"%Proxy%":typeof Proxy>"u"?k:Proxy,"%RangeError%":Jn,"%ReferenceError%":Yn,"%Reflect%":typeof Reflect>"u"?k:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?k:Set,"%SetIteratorPrototype%":typeof Set>"u"||!de||!V?k:V(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?k:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":de&&V?V(""[Symbol.iterator]()):k,"%Symbol%":de?Symbol:k,"%SyntaxError%":be,"%ThrowTypeError%":ii,"%TypedArray%":ai,"%TypeError%":ve,"%Uint8Array%":typeof Uint8Array>"u"?k:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?k:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?k:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?k:Uint32Array,"%URIError%":Xn,"%WeakMap%":typeof WeakMap>"u"?k:WeakMap,"%WeakRef%":typeof WeakRef>"u"?k:WeakRef,"%WeakSet%":typeof WeakSet>"u"?k:WeakSet,"%Function.prototype.call%":Re,"%Function.prototype.apply%":Ir,"%Object.defineProperty%":ni,"%Math.abs%":Zn,"%Math.floor%":Qn,"%Math.max%":ei,"%Math.min%":ti,"%Math.pow%":ri};if(V)try{null.error}catch(t){var fi=V(V(t));ue["%Error.prototype%"]=fi}var ui=function t(e){var r;if(e==="%AsyncFunction%")r=Qe("async function () {}");else if(e==="%GeneratorFunction%")r=Qe("function* () {}");else if(e==="%AsyncGeneratorFunction%")r=Qe("async function* () {}");else if(e==="%AsyncGenerator%"){var o=t("%AsyncGeneratorFunction%");o&&(r=o.prototype)}else if(e==="%AsyncIteratorPrototype%"){var f=t("%AsyncGenerator%");f&&V&&(r=V(f.prototype))}return ue[e]=r,r},Kt={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},Oe=Ae,Ce=Vn(),si=Oe.call(Re,Array.prototype.concat),li=Oe.call(Ir,Array.prototype.splice),Jt=Oe.call(Re,String.prototype.replace),Fe=Oe.call(Re,String.prototype.slice),ci=Oe.call(Re,RegExp.prototype.exec),di=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,pi=/\\(\\)?/g,yi=function(e){var r=Fe(e,0,1),o=Fe(e,-1);if(r==="%"&&o!=="%")throw new be("invalid intrinsic syntax, expected closing `%`");if(o==="%"&&r!=="%")throw new be("invalid intrinsic syntax, expected opening `%`");var f=[];return Jt(e,di,function(u,p,s,y){f[f.length]=s?Jt(y,pi,"$1"):p||u}),f},hi=function(e,r){var o=e,f;if(Ce(Kt,o)&&(f=Kt[o],o="%"+f[0]+"%"),Ce(ue,o)){var u=ue[o];if(u===ye&&(u=ui(o)),typeof u>"u"&&!r)throw new ve("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:f,name:o,value:u}}throw new be("intrinsic "+e+" does not exist!")},Dt=function(e,r){if(typeof e!="string"||e.length===0)throw new ve("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new ve('"allowMissing" argument must be a boolean');if(ci(/^%?[^%]*%?$/,e)===null)throw new be("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var o=yi(e),f=o.length>0?o[0]:"",u=hi("%"+f+"%",r),p=u.name,s=u.value,y=!1,m=u.alias;m&&(f=m[0],li(o,si([0,1],m)));for(var P=1,L=!0;P=o.length){var d=Se(s,R);L=!!d,L&&"get"in d&&!("originalValue"in d.get)?s=d.get:s=s[R]}else L=Ce(s,R),s=s[R];L&&!y&&(ue[p]=s)}}return s},$r=Dt,Ur=Bt,gi=Ur([$r("%String.prototype.indexOf%")]),vi=function(e,r){var o=$r(e,!!r);return typeof o=="function"&&gi(e,".prototype.")>-1?Ur([o]):o},bi=Mt(),wi=vi,St=wi("Object.prototype.toString"),He=function(e){return bi&&e&&typeof e=="object"&&Symbol.toStringTag in e?!1:St(e)==="[object Arguments]"},kr=function(e){return He(e)?!0:e!==null&&typeof e=="object"&&"length"in e&&typeof e.length=="number"&&e.length>=0&&St(e)!=="[object Array]"&&"callee"in e&&St(e.callee)==="[object Function]"},mi=function(){return He(arguments)}();He.isLegacyArguments=kr;var _i=mi?He:kr,Si=Object.prototype.toString,Ei=Function.prototype.toString,Ai=/^\s*(?:function)?\*/,Wr=Mt(),tt=Object.getPrototypeOf,Ri=function(){if(!Wr)return!1;try{return Function("return function*() {}")()}catch{}},rt,Oi=function(e){if(typeof e!="function")return!1;if(Ai.test(Ei.call(e)))return!0;if(!Wr){var r=Si.call(e);return r==="[object GeneratorFunction]"}if(!tt)return!1;if(typeof rt>"u"){var o=Ri();rt=o?tt(o):!1}return tt(e)===rt},qr=Function.prototype.toString,he=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,Et,Ne;if(typeof he=="function"&&typeof Object.defineProperty=="function")try{Et=Object.defineProperty({},"length",{get:function(){throw Ne}}),Ne={},he(function(){throw 42},null,Et)}catch(t){t!==Ne&&(he=null)}else he=null;var Pi=/^\s*class\b/,At=function(e){try{var r=qr.call(e);return Pi.test(r)}catch{return!1}},nt=function(e){try{return At(e)?!1:(qr.call(e),!0)}catch{return!1}},Be=Object.prototype.toString,Ti="[object Object]",ji="[object Function]",Mi="[object GeneratorFunction]",Li="[object HTMLAllCollection]",Ni="[object HTML document.all class]",Bi="[object HTMLCollection]",Di=typeof Symbol=="function"&&!!Symbol.toStringTag,Ci=!(0 in[,]),Rt=function(){return!1};if(typeof document=="object"){var Fi=document.all;Be.call(Fi)===Be.call(document.all)&&(Rt=function(e){if((Ci||!e)&&(typeof e>"u"||typeof e=="object"))try{var r=Be.call(e);return(r===Li||r===Ni||r===Bi||r===Ti)&&e("")==null}catch{}return!1})}var Ii=he?function(e){if(Rt(e))return!0;if(!e||typeof e!="function"&&typeof e!="object")return!1;try{he(e,null,Et)}catch(r){if(r!==Ne)return!1}return!At(e)&&nt(e)}:function(e){if(Rt(e))return!0;if(!e||typeof e!="function"&&typeof e!="object")return!1;if(Di)return nt(e);if(At(e))return!1;var r=Be.call(e);return r!==ji&&r!==Mi&&!/^\[object HTML/.test(r)?!1:nt(e)},$i=Ii,Ui=Object.prototype.toString,xr=Object.prototype.hasOwnProperty,ki=function(e,r,o){for(var f=0,u=e.length;f=3&&(f=o),Ui.call(e)==="[object Array]"?ki(e,r,f):typeof e=="string"?Wi(e,r,f):qi(e,r,f)},Hi=xi,Gi=["Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"],it=Gi,Vi=typeof globalThis>"u"?fe:globalThis,zi=function(){for(var e=[],r=0;r3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new pe("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new pe("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new pe("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new pe("`loose`, if provided, must be a boolean");var f=arguments.length>3?arguments[3]:null,u=arguments.length>4?arguments[4]:null,p=arguments.length>5?arguments[5]:null,s=arguments.length>6?arguments[6]:!1,y=!!Xt&&Xt(e,r);if(Yt)Yt(e,r,{configurable:p===null&&y?y.configurable:!p,enumerable:f===null&&y?y.enumerable:!f,value:o,writable:u===null&&y?y.writable:!u});else if(s||!f&&!u&&!p)e[r]=o;else throw new Ki("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},Ot=xe,Gr=function(){return!!Ot};Gr.hasArrayLengthDefineBug=function(){if(!Ot)return null;try{return Ot([],"length",{value:1}).length!==1}catch{return!0}};var Yi=Gr,Xi=Dt,Zt=Ji,Zi=Yi(),Qt=Ee,er=qe,Qi=Xi("%Math.floor%"),eo=function(e,r){if(typeof e!="function")throw new er("`fn` is not a function");if(typeof r!="number"||r<0||r>4294967295||Qi(r)!==r)throw new er("`length` must be a positive 32-bit integer");var o=arguments.length>2&&!!arguments[2],f=!0,u=!0;if("length"in e&&Qt){var p=Qt(e,"length");p&&!p.configurable&&(f=!1),p&&!p.writable&&(u=!1)}return(f||u||!o)&&(Zi?Zt(e,"length",r,!0,!0):Zt(e,"length",r)),e},to=Ae,ro=Nt,no=Dr,io=function(){return no(to,ro,arguments)};(function(t){var e=eo,r=xe,o=Bt,f=io;t.exports=function(p){var s=o(arguments),y=p.length-(arguments.length-1);return e(s,1+(y>0?y:0),!0)},r?r(t.exports,"apply",{value:f}):t.exports.apply=f})(Hr);var Vr=Hr.exports,zr=Dt,Kr=Vr,oo=Kr(zr("String.prototype.indexOf")),ao=function(e,r){var o=zr(e,!!r);return typeof o=="function"&&oo(e,".prototype.")>-1?Kr(o):o},Ie=Hi,fo=zi,tr=Vr,Ct=ao,De=Ee,uo=Ct("Object.prototype.toString"),Jr=Mt(),rr=typeof globalThis>"u"?fe:globalThis,Pt=fo(),Ft=Ct("String.prototype.slice"),ot=Object.getPrototypeOf,so=Ct("Array.prototype.indexOf",!0)||function(e,r){for(var o=0;o-1?r:r!=="Object"?!1:co(e)}return De?lo(e):null},po=Yr,yo=function(e){return!!po(e)};(function(t){var e=_i,r=Oi,o=Yr,f=yo;function u(_){return _.call.bind(_)}var p=typeof BigInt<"u",s=typeof Symbol<"u",y=u(Object.prototype.toString),m=u(Number.prototype.valueOf),P=u(String.prototype.valueOf),L=u(Boolean.prototype.valueOf);if(p)var R=u(BigInt.prototype.valueOf);if(s)var O=u(Symbol.prototype.valueOf);function T(_,Pe){if(typeof _!="object")return!1;try{return Pe(_),!0}catch{return!1}}t.isArgumentsObject=e,t.isGeneratorFunction=r,t.isTypedArray=f;function d(_){return typeof Promise<"u"&&_ instanceof Promise||_!==null&&typeof _=="object"&&typeof _.then=="function"&&typeof _.catch=="function"}t.isPromise=d;function g(_){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(_):f(_)||h(_)}t.isArrayBufferView=g;function a(_){return o(_)==="Uint8Array"}t.isUint8Array=a;function v(_){return o(_)==="Uint8ClampedArray"}t.isUint8ClampedArray=v;function E(_){return o(_)==="Uint16Array"}t.isUint16Array=E;function j(_){return o(_)==="Uint32Array"}t.isUint32Array=j;function N(_){return o(_)==="Int8Array"}t.isInt8Array=N;function C(_){return o(_)==="Int16Array"}t.isInt16Array=C;function W(_){return o(_)==="Int32Array"}t.isInt32Array=W;function I(_){return o(_)==="Float32Array"}t.isFloat32Array=I;function F(_){return o(_)==="Float64Array"}t.isFloat64Array=F;function G(_){return o(_)==="BigInt64Array"}t.isBigInt64Array=G;function Y(_){return o(_)==="BigUint64Array"}t.isBigUint64Array=Y;function K(_){return y(_)==="[object Map]"}K.working=typeof Map<"u"&&K(new Map);function J(_){return typeof Map>"u"?!1:K.working?K(_):_ instanceof Map}t.isMap=J;function re(_){return y(_)==="[object Set]"}re.working=typeof Set<"u"&&re(new Set);function ne(_){return typeof Set>"u"?!1:re.working?re(_):_ instanceof Set}t.isSet=ne;function X(_){return y(_)==="[object WeakMap]"}X.working=typeof WeakMap<"u"&&X(new WeakMap);function Q(_){return typeof WeakMap>"u"?!1:X.working?X(_):_ instanceof WeakMap}t.isWeakMap=Q;function ie(_){return y(_)==="[object WeakSet]"}ie.working=typeof WeakSet<"u"&&ie(new WeakSet);function ee(_){return ie(_)}t.isWeakSet=ee;function z(_){return y(_)==="[object ArrayBuffer]"}z.working=typeof ArrayBuffer<"u"&&z(new ArrayBuffer);function oe(_){return typeof ArrayBuffer>"u"?!1:z.working?z(_):_ instanceof ArrayBuffer}t.isArrayBuffer=oe;function te(_){return y(_)==="[object DataView]"}te.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&te(new DataView(new ArrayBuffer(1),0,1));function h(_){return typeof DataView>"u"?!1:te.working?te(_):_ instanceof DataView}t.isDataView=h;var w=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function A(_){return y(_)==="[object SharedArrayBuffer]"}function l(_){return typeof w>"u"?!1:(typeof A.working>"u"&&(A.working=A(new w)),A.working?A(_):_ instanceof w)}t.isSharedArrayBuffer=l;function c(_){return y(_)==="[object AsyncFunction]"}t.isAsyncFunction=c;function b(_){return y(_)==="[object Map Iterator]"}t.isMapIterator=b;function M(_){return y(_)==="[object Set Iterator]"}t.isSetIterator=M;function B(_){return y(_)==="[object Generator]"}t.isGeneratorObject=B;function n(_){return y(_)==="[object WebAssembly.Module]"}t.isWebAssemblyCompiledModule=n;function i(_){return T(_,m)}t.isNumberObject=i;function S(_){return T(_,P)}t.isStringObject=S;function D(_){return T(_,L)}t.isBooleanObject=D;function q(_){return p&&T(_,R)}t.isBigIntObject=q;function $(_){return s&&T(_,O)}t.isSymbolObject=$;function x(_){return i(_)||S(_)||D(_)||q(_)||$(_)}t.isBoxedPrimitive=x;function ae(_){return typeof Uint8Array<"u"&&(oe(_)||l(_))}t.isAnyArrayBuffer=ae,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(_){Object.defineProperty(t,_,{enumerable:!1,value:function(){throw new Error(_+" is not supported in userland")}})})})(Lr);var ho=function(e){return e&&typeof e=="object"&&typeof e.copy=="function"&&typeof e.fill=="function"&&typeof e.readUInt8=="function"};(function(t){var e={},r=Object.getOwnPropertyDescriptors||function(w){for(var A=Object.keys(w),l={},c=0;c=c)return B;switch(B){case"%s":return String(l[A++]);case"%d":return Number(l[A++]);case"%j":try{return JSON.stringify(l[A++])}catch{return"[Circular]"}default:return B}}),M=l[A];A"u")return function(){return t.deprecate(h,w).apply(this,arguments)};var A=!1;function l(){if(!A){if(U.throwDeprecation)throw new Error(w);U.traceDeprecation?console.trace(w):console.error(w),A=!0}return h.apply(this,arguments)}return l};var f={},u=/^$/;if(e.NODE_DEBUG){var p=e.NODE_DEBUG;p=p.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),u=new RegExp("^"+p+"$","i")}t.debuglog=function(h){if(h=h.toUpperCase(),!f[h])if(u.test(h)){var w=U.pid;f[h]=function(){var A=t.format.apply(t,arguments);console.error("%s %d: %s",h,w,A)}}else f[h]=function(){};return f[h]};function s(h,w){var A={seen:[],stylize:m};return arguments.length>=3&&(A.depth=arguments[2]),arguments.length>=4&&(A.colors=arguments[3]),v(w)?A.showHidden=w:w&&t._extend(A,w),I(A.showHidden)&&(A.showHidden=!1),I(A.depth)&&(A.depth=2),I(A.colors)&&(A.colors=!1),I(A.customInspect)&&(A.customInspect=!0),A.colors&&(A.stylize=y),L(A,h,A.depth)}t.inspect=s,s.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},s.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function y(h,w){var A=s.styles[w];return A?"\x1B["+s.colors[A][0]+"m"+h+"\x1B["+s.colors[A][1]+"m":h}function m(h,w){return h}function P(h){var w={};return h.forEach(function(A,l){w[A]=!0}),w}function L(h,w,A){if(h.customInspect&&w&&J(w.inspect)&&w.inspect!==t.inspect&&!(w.constructor&&w.constructor.prototype===w)){var l=w.inspect(A,h);return C(l)||(l=L(h,l,A)),l}var c=R(h,w);if(c)return c;var b=Object.keys(w),M=P(b);if(h.showHidden&&(b=Object.getOwnPropertyNames(w)),K(w)&&(b.indexOf("message")>=0||b.indexOf("description")>=0))return O(w);if(b.length===0){if(J(w)){var B=w.name?": "+w.name:"";return h.stylize("[Function"+B+"]","special")}if(F(w))return h.stylize(RegExp.prototype.toString.call(w),"regexp");if(Y(w))return h.stylize(Date.prototype.toString.call(w),"date");if(K(w))return O(w)}var n="",i=!1,S=["{","}"];if(a(w)&&(i=!0,S=["[","]"]),J(w)){var D=w.name?": "+w.name:"";n=" [Function"+D+"]"}if(F(w)&&(n=" "+RegExp.prototype.toString.call(w)),Y(w)&&(n=" "+Date.prototype.toUTCString.call(w)),K(w)&&(n=" "+O(w)),b.length===0&&(!i||w.length==0))return S[0]+n+S[1];if(A<0)return F(w)?h.stylize(RegExp.prototype.toString.call(w),"regexp"):h.stylize("[Object]","special");h.seen.push(w);var q;return i?q=T(h,w,A,M,b):q=b.map(function($){return d(h,w,A,M,$,i)}),h.seen.pop(),g(q,n,S)}function R(h,w){if(I(w))return h.stylize("undefined","undefined");if(C(w)){var A="'"+JSON.stringify(w).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return h.stylize(A,"string")}if(N(w))return h.stylize(""+w,"number");if(v(w))return h.stylize(""+w,"boolean");if(E(w))return h.stylize("null","null")}function O(h){return"["+Error.prototype.toString.call(h)+"]"}function T(h,w,A,l,c){for(var b=[],M=0,B=w.length;M-1&&(b?B=B.split(` +`).map(function(i){return" "+i}).join(` +`).slice(2):B=` +`+B.split(` +`).map(function(i){return" "+i}).join(` +`))):B=h.stylize("[Circular]","special")),I(M)){if(b&&c.match(/^\d+$/))return B;M=JSON.stringify(""+c),M.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(M=M.slice(1,-1),M=h.stylize(M,"name")):(M=M.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),M=h.stylize(M,"string"))}return M+": "+B}function g(h,w,A){var l=h.reduce(function(c,b){return b.indexOf(` +`)>=0,c+b.replace(/\u001b\[\d\d?m/g,"").length+1},0);return l>60?A[0]+(w===""?"":w+` + `)+" "+h.join(`, + `)+" "+A[1]:A[0]+w+" "+h.join(", ")+" "+A[1]}t.types=Lr;function a(h){return Array.isArray(h)}t.isArray=a;function v(h){return typeof h=="boolean"}t.isBoolean=v;function E(h){return h===null}t.isNull=E;function j(h){return h==null}t.isNullOrUndefined=j;function N(h){return typeof h=="number"}t.isNumber=N;function C(h){return typeof h=="string"}t.isString=C;function W(h){return typeof h=="symbol"}t.isSymbol=W;function I(h){return h===void 0}t.isUndefined=I;function F(h){return G(h)&&ne(h)==="[object RegExp]"}t.isRegExp=F,t.types.isRegExp=F;function G(h){return typeof h=="object"&&h!==null}t.isObject=G;function Y(h){return G(h)&&ne(h)==="[object Date]"}t.isDate=Y,t.types.isDate=Y;function K(h){return G(h)&&(ne(h)==="[object Error]"||h instanceof Error)}t.isError=K,t.types.isNativeError=K;function J(h){return typeof h=="function"}t.isFunction=J;function re(h){return h===null||typeof h=="boolean"||typeof h=="number"||typeof h=="string"||typeof h=="symbol"||typeof h>"u"}t.isPrimitive=re,t.isBuffer=ho;function ne(h){return Object.prototype.toString.call(h)}function X(h){return h<10?"0"+h.toString(10):h.toString(10)}var Q=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function ie(){var h=new Date,w=[X(h.getHours()),X(h.getMinutes()),X(h.getSeconds())].join(":");return[h.getDate(),Q[h.getMonth()],w].join(" ")}t.log=function(){console.log("%s - %s",ie(),t.format.apply(t,arguments))},t.inherits=se,t._extend=function(h,w){if(!w||!G(w))return h;for(var A=Object.keys(w),l=A.length;l--;)h[A[l]]=w[A[l]];return h};function ee(h,w){return Object.prototype.hasOwnProperty.call(h,w)}var z=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;t.promisify=function(w){if(typeof w!="function")throw new TypeError('The "original" argument must be of type Function');if(z&&w[z]){var A=w[z];if(typeof A!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(A,z,{value:A,enumerable:!1,writable:!1,configurable:!0}),A}function A(){for(var l,c,b=new Promise(function(n,i){l=n,c=i}),M=[],B=0;B0?this.tail.next=a:this.head=a,this.tail=a,++this.length}},{key:"unshift",value:function(g){var a={data:g,next:this.head};this.length===0&&(this.tail=a),this.head=a,++this.length}},{key:"shift",value:function(){if(this.length!==0){var g=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,g}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(g){if(this.length===0)return"";for(var a=this.head,v=""+a.data;a=a.next;)v+=g+a.data;return v}},{key:"concat",value:function(g){if(this.length===0)return m.alloc(0);for(var a=m.allocUnsafe(g>>>0),v=this.head,E=0;v;)O(v.data,a,E),E+=v.data.length,v=v.next;return a}},{key:"consume",value:function(g,a){var v;return gj.length?j.length:g;if(N===j.length?E+=j:E+=j.slice(0,g),g-=N,g===0){N===j.length?(++v,a.next?this.head=a.next:this.head=this.tail=null):(this.head=a,a.data=j.slice(N));break}++v}return this.length-=v,E}},{key:"_getBuffer",value:function(g){var a=m.allocUnsafe(g),v=this.head,E=1;for(v.data.copy(a),g-=v.data.length;v=v.next;){var j=v.data,N=g>j.length?j.length:g;if(j.copy(a,a.length-g,0,N),g-=N,g===0){N===j.length?(++E,v.next?this.head=v.next:this.head=this.tail=null):(this.head=v,v.data=j.slice(N));break}++E}return this.length-=E,a}},{key:R,value:function(g,a){return L(this,e(e({},a),{},{depth:0,customInspect:!1}))}}]),T}(),at}var ft,ir;function Xr(){if(ir)return ft;ir=1;function t(p,s){var y=this,m=this._readableState&&this._readableState.destroyed,P=this._writableState&&this._writableState.destroyed;return m||P?(s?s(p):p&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,U.nextTick(f,this,p)):U.nextTick(f,this,p)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(p||null,function(L){!s&&L?y._writableState?y._writableState.errorEmitted?U.nextTick(r,y):(y._writableState.errorEmitted=!0,U.nextTick(e,y,L)):U.nextTick(e,y,L):s?(U.nextTick(r,y),s(L)):U.nextTick(r,y)}),this)}function e(p,s){f(p,s),r(p)}function r(p){p._writableState&&!p._writableState.emitClose||p._readableState&&!p._readableState.emitClose||p.emit("close")}function o(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function f(p,s){p.emit("error",s)}function u(p,s){var y=p._readableState,m=p._writableState;y&&y.autoDestroy||m&&m.autoDestroy?p.destroy(s):p.emit("error",s)}return ft={destroy:t,undestroy:o,errorOrDestroy:u},ft}var ut={},or;function me(){if(or)return ut;or=1;function t(s,y){s.prototype=Object.create(y.prototype),s.prototype.constructor=s,s.__proto__=y}var e={};function r(s,y,m){m||(m=Error);function P(R,O,T){return typeof y=="string"?y:y(R,O,T)}var L=function(R){t(O,R);function O(T,d,g){return R.call(this,P(T,d,g))||this}return O}(m);L.prototype.name=m.name,L.prototype.code=s,e[s]=L}function o(s,y){if(Array.isArray(s)){var m=s.length;return s=s.map(function(P){return String(P)}),m>2?"one of ".concat(y," ").concat(s.slice(0,m-1).join(", "),", or ")+s[m-1]:m===2?"one of ".concat(y," ").concat(s[0]," or ").concat(s[1]):"of ".concat(y," ").concat(s[0])}else return"of ".concat(y," ").concat(String(s))}function f(s,y,m){return s.substr(0,y.length)===y}function u(s,y,m){return(m===void 0||m>s.length)&&(m=s.length),s.substring(m-y.length,m)===y}function p(s,y,m){return typeof m!="number"&&(m=0),m+y.length>s.length?!1:s.indexOf(y,m)!==-1}return r("ERR_INVALID_OPT_VALUE",function(s,y){return'The value "'+y+'" is invalid for option "'+s+'"'},TypeError),r("ERR_INVALID_ARG_TYPE",function(s,y,m){var P;typeof y=="string"&&f(y,"not ")?(P="must not be",y=y.replace(/^not /,"")):P="must be";var L;if(u(s," argument"))L="The ".concat(s," ").concat(P," ").concat(o(y,"type"));else{var R=p(s,".")?"property":"argument";L='The "'.concat(s,'" ').concat(R," ").concat(P," ").concat(o(y,"type"))}return L+=". Received type ".concat(typeof m),L},TypeError),r("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),r("ERR_METHOD_NOT_IMPLEMENTED",function(s){return"The "+s+" method is not implemented"}),r("ERR_STREAM_PREMATURE_CLOSE","Premature close"),r("ERR_STREAM_DESTROYED",function(s){return"Cannot call "+s+" after a stream was destroyed"}),r("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),r("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),r("ERR_STREAM_WRITE_AFTER_END","write after end"),r("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),r("ERR_UNKNOWN_ENCODING",function(s){return"Unknown encoding: "+s},TypeError),r("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),ut.codes=e,ut}var st,ar;function Zr(){if(ar)return st;ar=1;var t=me().codes.ERR_INVALID_OPT_VALUE;function e(o,f,u){return o.highWaterMark!=null?o.highWaterMark:f?o[u]:null}function r(o,f,u,p){var s=e(f,p,u);if(s!=null){if(!(isFinite(s)&&Math.floor(s)===s)||s<0){var y=p?u:"highWaterMark";throw new t(y,s)}return Math.floor(s)}return o.objectMode?16:16*1024}return st={getHighWaterMark:r},st}var lt,fr;function vo(){if(fr)return lt;fr=1,lt=t;function t(r,o){if(e("noDeprecation"))return r;var f=!1;function u(){if(!f){if(e("throwDeprecation"))throw new Error(o);e("traceDeprecation")?console.trace(o):console.warn(o),f=!0}return r.apply(this,arguments)}return u}function e(r){try{if(!fe.localStorage)return!1}catch{return!1}var o=fe.localStorage[r];return o==null?!1:String(o).toLowerCase()==="true"}return lt}var ct,ur;function Qr(){if(ur)return ct;ur=1,ct=I;function t(l){var c=this;this.next=null,this.entry=null,this.finish=function(){A(c,l)}}var e;I.WritableState=C;var r={deprecate:vo()},o=Mr(),f=ke.Buffer,u=(typeof fe<"u"?fe:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function p(l){return f.from(l)}function s(l){return f.isBuffer(l)||l instanceof u}var y=Xr(),m=Zr(),P=m.getHighWaterMark,L=me().codes,R=L.ERR_INVALID_ARG_TYPE,O=L.ERR_METHOD_NOT_IMPLEMENTED,T=L.ERR_MULTIPLE_CALLBACK,d=L.ERR_STREAM_CANNOT_PIPE,g=L.ERR_STREAM_DESTROYED,a=L.ERR_STREAM_NULL_VALUES,v=L.ERR_STREAM_WRITE_AFTER_END,E=L.ERR_UNKNOWN_ENCODING,j=y.errorOrDestroy;se(I,o);function N(){}function C(l,c,b){e=e||we(),l=l||{},typeof b!="boolean"&&(b=c instanceof e),this.objectMode=!!l.objectMode,b&&(this.objectMode=this.objectMode||!!l.writableObjectMode),this.highWaterMark=P(this,l,"writableHighWaterMark",b),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var M=l.decodeStrings===!1;this.decodeStrings=!M,this.defaultEncoding=l.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(B){X(c,B)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=l.emitClose!==!1,this.autoDestroy=!!l.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new t(this)}C.prototype.getBuffer=function(){for(var c=this.bufferedRequest,b=[];c;)b.push(c),c=c.next;return b},function(){try{Object.defineProperty(C.prototype,"buffer",{get:r.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}();var W;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(W=Function.prototype[Symbol.hasInstance],Object.defineProperty(I,Symbol.hasInstance,{value:function(c){return W.call(this,c)?!0:this!==I?!1:c&&c._writableState instanceof C}})):W=function(c){return c instanceof this};function I(l){e=e||we();var c=this instanceof e;if(!c&&!W.call(I,this))return new I(l);this._writableState=new C(l,this,c),this.writable=!0,l&&(typeof l.write=="function"&&(this._write=l.write),typeof l.writev=="function"&&(this._writev=l.writev),typeof l.destroy=="function"&&(this._destroy=l.destroy),typeof l.final=="function"&&(this._final=l.final)),o.call(this)}I.prototype.pipe=function(){j(this,new d)};function F(l,c){var b=new v;j(l,b),U.nextTick(c,b)}function G(l,c,b,M){var B;return b===null?B=new a:typeof b!="string"&&!c.objectMode&&(B=new R("chunk",["string","Buffer"],b)),B?(j(l,B),U.nextTick(M,B),!1):!0}I.prototype.write=function(l,c,b){var M=this._writableState,B=!1,n=!M.objectMode&&s(l);return n&&!f.isBuffer(l)&&(l=p(l)),typeof c=="function"&&(b=c,c=null),n?c="buffer":c||(c=M.defaultEncoding),typeof b!="function"&&(b=N),M.ending?F(this,b):(n||G(this,M,l,b))&&(M.pendingcb++,B=K(this,M,n,l,c,b)),B},I.prototype.cork=function(){this._writableState.corked++},I.prototype.uncork=function(){var l=this._writableState;l.corked&&(l.corked--,!l.writing&&!l.corked&&!l.bufferProcessing&&l.bufferedRequest&&ee(this,l))},I.prototype.setDefaultEncoding=function(c){if(typeof c=="string"&&(c=c.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((c+"").toLowerCase())>-1))throw new E(c);return this._writableState.defaultEncoding=c,this},Object.defineProperty(I.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function Y(l,c,b){return!l.objectMode&&l.decodeStrings!==!1&&typeof c=="string"&&(c=f.from(c,b)),c}Object.defineProperty(I.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function K(l,c,b,M,B,n){if(!b){var i=Y(c,M,B);M!==i&&(b=!0,B="buffer",M=i)}var S=c.objectMode?1:M.length;c.length+=S;var D=c.length */var lr;function bo(){return lr||(lr=1,function(t,e){var r=ke,o=r.Buffer;function f(p,s){for(var y in p)s[y]=p[y]}o.from&&o.alloc&&o.allocUnsafe&&o.allocUnsafeSlow?t.exports=r:(f(r,e),e.Buffer=u);function u(p,s,y){return o(p,s,y)}u.prototype=Object.create(o.prototype),f(o,u),u.from=function(p,s,y){if(typeof p=="number")throw new TypeError("Argument must not be a number");return o(p,s,y)},u.alloc=function(p,s,y){if(typeof p!="number")throw new TypeError("Argument must be a number");var m=o(p);return s!==void 0?typeof y=="string"?m.fill(s,y):m.fill(s):m.fill(0),m},u.allocUnsafe=function(p){if(typeof p!="number")throw new TypeError("Argument must be a number");return o(p)},u.allocUnsafeSlow=function(p){if(typeof p!="number")throw new TypeError("Argument must be a number");return r.SlowBuffer(p)}}(Te,Te.exports)),Te.exports}var cr;function dr(){if(cr)return pt;cr=1;var t=bo().Buffer,e=t.isEncoding||function(a){switch(a=""+a,a&&a.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function r(a){if(!a)return"utf8";for(var v;;)switch(a){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return a;default:if(v)return;a=(""+a).toLowerCase(),v=!0}}function o(a){var v=r(a);if(typeof v!="string"&&(t.isEncoding===e||!e(a)))throw new Error("Unknown encoding: "+a);return v||a}pt.StringDecoder=f;function f(a){this.encoding=o(a);var v;switch(this.encoding){case"utf16le":this.text=L,this.end=R,v=4;break;case"utf8":this.fillLast=y,v=4;break;case"base64":this.text=O,this.end=T,v=3;break;default:this.write=d,this.end=g;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=t.allocUnsafe(v)}f.prototype.write=function(a){if(a.length===0)return"";var v,E;if(this.lastNeed){if(v=this.fillLast(a),v===void 0)return"";E=this.lastNeed,this.lastNeed=0}else E=0;return E>5===6?2:a>>4===14?3:a>>3===30?4:a>>6===2?-1:-2}function p(a,v,E){var j=v.length-1;if(j=0?(N>0&&(a.lastNeed=N-1),N):--j=0?(N>0&&(a.lastNeed=N-2),N):--j=0?(N>0&&(N===2?N=0:a.lastNeed=N-3),N):0))}function s(a,v,E){if((v[0]&192)!==128)return a.lastNeed=0,"�";if(a.lastNeed>1&&v.length>1){if((v[1]&192)!==128)return a.lastNeed=1,"�";if(a.lastNeed>2&&v.length>2&&(v[2]&192)!==128)return a.lastNeed=2,"�"}}function y(a){var v=this.lastTotal-this.lastNeed,E=s(this,a);if(E!==void 0)return E;if(this.lastNeed<=a.length)return a.copy(this.lastChar,v,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);a.copy(this.lastChar,v,0,a.length),this.lastNeed-=a.length}function m(a,v){var E=p(this,a,v);if(!this.lastNeed)return a.toString("utf8",v);this.lastTotal=E;var j=a.length-(E-this.lastNeed);return a.copy(this.lastChar,0,j),a.toString("utf8",v,j)}function P(a){var v=a&&a.length?this.write(a):"";return this.lastNeed?v+"�":v}function L(a,v){if((a.length-v)%2===0){var E=a.toString("utf16le",v);if(E){var j=E.charCodeAt(E.length-1);if(j>=55296&&j<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=a[a.length-2],this.lastChar[1]=a[a.length-1],E.slice(0,-1)}return E}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=a[a.length-1],a.toString("utf16le",v,a.length-1)}function R(a){var v=a&&a.length?this.write(a):"";if(this.lastNeed){var E=this.lastTotal-this.lastNeed;return v+this.lastChar.toString("utf16le",0,E)}return v}function O(a,v){var E=(a.length-v)%3;return E===0?a.toString("base64",v):(this.lastNeed=3-E,this.lastTotal=3,E===1?this.lastChar[0]=a[a.length-1]:(this.lastChar[0]=a[a.length-2],this.lastChar[1]=a[a.length-1]),a.toString("base64",v,a.length-E))}function T(a){var v=a&&a.length?this.write(a):"";return this.lastNeed?v+this.lastChar.toString("base64",0,3-this.lastNeed):v}function d(a){return a.toString(this.encoding)}function g(a){return a&&a.length?this.write(a):""}return pt}var yt,pr;function It(){if(pr)return yt;pr=1;var t=me().codes.ERR_STREAM_PREMATURE_CLOSE;function e(u){var p=!1;return function(){if(!p){p=!0;for(var s=arguments.length,y=new Array(s),m=0;m0)if(typeof i!="string"&&!$.objectMode&&Object.getPrototypeOf(i)!==o.prototype&&(i=u(i)),D)$.endEmitted?N(n,new a):Y(n,$,i,!0);else if($.ended)N(n,new d);else{if($.destroyed)return!1;$.reading=!1,$.decoder&&!S?(i=$.decoder.write(i),$.objectMode||i.length!==0?Y(n,$,i,!1):ee(n,$)):Y(n,$,i,!1)}else D||($.reading=!1,ee(n,$))}return!$.ended&&($.length<$.highWaterMark||$.length===0)}function Y(n,i,S,D){i.flowing&&i.length===0&&!i.sync?(i.awaitDrain=0,n.emit("data",S)):(i.length+=i.objectMode?1:S.length,D?i.buffer.unshift(S):i.buffer.push(S),i.needReadable&&Q(n)),ee(n,i)}function K(n,i){var S;return!p(i)&&typeof i!="string"&&i!==void 0&&!n.objectMode&&(S=new T("chunk",["string","Buffer","Uint8Array"],i)),S}F.prototype.isPaused=function(){return this._readableState.flowing===!1},F.prototype.setEncoding=function(n){v||(v=dr().StringDecoder);var i=new v(n);this._readableState.decoder=i,this._readableState.encoding=this._readableState.decoder.encoding;for(var S=this._readableState.buffer.head,D="";S!==null;)D+=i.write(S.data),S=S.next;return this._readableState.buffer.clear(),D!==""&&this._readableState.buffer.push(D),this._readableState.length=D.length,this};var J=1073741824;function re(n){return n>=J?n=J:(n--,n|=n>>>1,n|=n>>>2,n|=n>>>4,n|=n>>>8,n|=n>>>16,n++),n}function ne(n,i){return n<=0||i.length===0&&i.ended?0:i.objectMode?1:n!==n?i.flowing&&i.length?i.buffer.head.data.length:i.length:(n>i.highWaterMark&&(i.highWaterMark=re(n)),n<=i.length?n:i.ended?i.length:(i.needReadable=!0,0))}F.prototype.read=function(n){y("read",n),n=parseInt(n,10);var i=this._readableState,S=n;if(n!==0&&(i.emittedReadable=!1),n===0&&i.needReadable&&((i.highWaterMark!==0?i.length>=i.highWaterMark:i.length>0)||i.ended))return y("read: emitReadable",i.length,i.ended),i.length===0&&i.ended?b(this):Q(this),null;if(n=ne(n,i),n===0&&i.ended)return i.length===0&&b(this),null;var D=i.needReadable;y("need readable",D),(i.length===0||i.length-n0?q=c(n,i):q=null,q===null?(i.needReadable=i.length<=i.highWaterMark,n=0):(i.length-=n,i.awaitDrain=0),i.length===0&&(i.ended||(i.needReadable=!0),S!==n&&i.ended&&b(this)),q!==null&&this.emit("data",q),q};function X(n,i){if(y("onEofChunk"),!i.ended){if(i.decoder){var S=i.decoder.end();S&&S.length&&(i.buffer.push(S),i.length+=i.objectMode?1:S.length)}i.ended=!0,i.sync?Q(n):(i.needReadable=!1,i.emittedReadable||(i.emittedReadable=!0,ie(n)))}}function Q(n){var i=n._readableState;y("emitReadable",i.needReadable,i.emittedReadable),i.needReadable=!1,i.emittedReadable||(y("emitReadable",i.flowing),i.emittedReadable=!0,U.nextTick(ie,n))}function ie(n){var i=n._readableState;y("emitReadable_",i.destroyed,i.length,i.ended),!i.destroyed&&(i.length||i.ended)&&(n.emit("readable"),i.emittedReadable=!1),i.needReadable=!i.flowing&&!i.ended&&i.length<=i.highWaterMark,l(n)}function ee(n,i){i.readingMore||(i.readingMore=!0,U.nextTick(z,n,i))}function z(n,i){for(;!i.reading&&!i.ended&&(i.length1&&B(D.pipes,n)!==-1)&&!Pe&&(y("false write response, pause",D.awaitDrain),D.awaitDrain++),S.pause())}function Ge(le){y("onerror",le),_e(),n.removeListener("error",Ge),e(n,"error")===0&&N(n,le)}W(n,"error",Ge);function Ve(){n.removeListener("finish",ze),_e()}n.once("close",Ve);function ze(){y("onfinish"),n.removeListener("close",Ve),_e()}n.once("finish",ze);function _e(){y("unpipe"),S.unpipe(n)}return n.emit("pipe",S),D.flowing||(y("pipe resume"),S.resume()),n};function oe(n){return function(){var S=n._readableState;y("pipeOnDrain",S.awaitDrain),S.awaitDrain&&S.awaitDrain--,S.awaitDrain===0&&e(n,"data")&&(S.flowing=!0,l(n))}}F.prototype.unpipe=function(n){var i=this._readableState,S={hasUnpiped:!1};if(i.pipesCount===0)return this;if(i.pipesCount===1)return n&&n!==i.pipes?this:(n||(n=i.pipes),i.pipes=null,i.pipesCount=0,i.flowing=!1,n&&n.emit("unpipe",this,S),this);if(!n){var D=i.pipes,q=i.pipesCount;i.pipes=null,i.pipesCount=0,i.flowing=!1;for(var $=0;$0,D.flowing!==!1&&this.resume()):n==="readable"&&!D.endEmitted&&!D.readableListening&&(D.readableListening=D.needReadable=!0,D.flowing=!1,D.emittedReadable=!1,y("on readable",D.length,D.reading),D.length?Q(this):D.reading||U.nextTick(h,this)),S},F.prototype.addListener=F.prototype.on,F.prototype.removeListener=function(n,i){var S=r.prototype.removeListener.call(this,n,i);return n==="readable"&&U.nextTick(te,this),S},F.prototype.removeAllListeners=function(n){var i=r.prototype.removeAllListeners.apply(this,arguments);return(n==="readable"||n===void 0)&&U.nextTick(te,this),i};function te(n){var i=n._readableState;i.readableListening=n.listenerCount("readable")>0,i.resumeScheduled&&!i.paused?i.flowing=!0:n.listenerCount("data")>0&&n.resume()}function h(n){y("readable nexttick read 0"),n.read(0)}F.prototype.resume=function(){var n=this._readableState;return n.flowing||(y("resume"),n.flowing=!n.readableListening,w(this,n)),n.paused=!1,this};function w(n,i){i.resumeScheduled||(i.resumeScheduled=!0,U.nextTick(A,n,i))}function A(n,i){y("resume",i.reading),i.reading||n.read(0),i.resumeScheduled=!1,n.emit("resume"),l(n),i.flowing&&!i.reading&&n.read(0)}F.prototype.pause=function(){return y("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(y("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function l(n){var i=n._readableState;for(y("flow",i.flowing);i.flowing&&n.read()!==null;);}F.prototype.wrap=function(n){var i=this,S=this._readableState,D=!1;n.on("end",function(){if(y("wrapped end"),S.decoder&&!S.ended){var x=S.decoder.end();x&&x.length&&i.push(x)}i.push(null)}),n.on("data",function(x){if(y("wrapped data"),S.decoder&&(x=S.decoder.write(x)),!(S.objectMode&&x==null)&&!(!S.objectMode&&(!x||!x.length))){var ae=i.push(x);ae||(D=!0,n.pause())}});for(var q in n)this[q]===void 0&&typeof n[q]=="function"&&(this[q]=function(ae){return function(){return n[ae].apply(n,arguments)}}(q));for(var $=0;$=i.length?(i.decoder?S=i.buffer.join(""):i.buffer.length===1?S=i.buffer.first():S=i.buffer.concat(i.length),i.buffer.clear()):S=i.buffer.consume(n,i.decoder),S}function b(n){var i=n._readableState;y("endReadable",i.endEmitted),i.endEmitted||(i.ended=!0,U.nextTick(M,i,n))}function M(n,i){if(y("endReadableNT",n.endEmitted,n.length),!n.endEmitted&&n.length===0&&(n.endEmitted=!0,i.readable=!1,i.emit("end"),n.autoDestroy)){var S=i._writableState;(!S||S.autoDestroy&&S.finished)&&i.destroy()}}typeof Symbol=="function"&&(F.from=function(n,i){return j===void 0&&(j=mo()),j(F,n,i)});function B(n,i){for(var S=0,D=n.length;S0;return s(v,j,N,function(C){g||(g=C),C&&a.forEach(y),!j&&(a.forEach(y),d(g))})});return O.reduce(m)}return mt=L,mt}var rn=Z,$t=jt.EventEmitter,Eo=se;Eo(Z,$t);Z.Readable=en();Z.Writable=Qr();Z.Duplex=we();Z.Transform=tn();Z.PassThrough=_o();Z.finished=It();Z.pipeline=So();Z.Stream=Z;function Z(){$t.call(this)}Z.prototype.pipe=function(t,e){var r=this;function o(P){t.writable&&t.write(P)===!1&&r.pause&&r.pause()}r.on("data",o);function f(){r.readable&&r.resume&&r.resume()}t.on("drain",f),!t._isStdio&&(!e||e.end!==!1)&&(r.on("end",p),r.on("close",s));var u=!1;function p(){u||(u=!0,t.end())}function s(){u||(u=!0,typeof t.destroy=="function"&&t.destroy())}function y(P){if(m(),$t.listenerCount(this,"error")===0)throw P}r.on("error",y),t.on("error",y);function m(){r.removeListener("data",o),t.removeListener("drain",f),r.removeListener("end",p),r.removeListener("close",s),r.removeListener("error",y),t.removeListener("error",y),r.removeListener("end",m),r.removeListener("close",m),t.removeListener("close",m)}return r.on("end",m),r.on("close",m),t.on("close",m),t.emit("pipe",r),t};const Po=on(rn),mr=_r(an);(function(t){var e=rn,r=We,o=mr,f=mr,u=r.debuglog("net"),p={protocol:window.location.protocol=="https:"?"wss":"ws",hostname:window.location.hostname,port:window.location.port,path:"/api/vm/net"};function s(){return p}function y(){var d=s().hostname;return s().port&&(d+=":"+s().port),d}function m(){return s().protocol+"://"+y()}t.setProxy=function(d){d=d||{},d.protocol&&(p.protocol=d.protocol),d.hostname&&(p.hostname=d.hostname),d.port&&(p.port=d.port),d.path&&(p.path=d.path)},t.createServer=function(){throw new Error("Cannot create server in a browser")},t.connect=t.createConnection=function(){var d=R(arguments);u("createConnection",d);var g=new O(d[0]);return O.prototype.connect.apply(g,d)};function P(d){return(d=Number(d))>=0?d:!1}function L(d){return r.isString(d)&&P(d)===!1}function R(d){var g={};r.isObject(d[0])?g=d[0]:L(d[0])?g.path=d[0]:(g.port=d[0],r.isString(d[1])&&(g.host=d[1]));var a=d[d.length-1];return r.isFunction(a)?[g,a]:[g]}t._normalizeConnectArgs=R;function O(d){if(!(this instanceof O))return new O(d);this._connecting=!1,this._host=null,r.isNumber(d)?d={fd:d}:r.isUndefined(d)&&(d={}),e.Duplex.call(this,d),this.readable=this.writable=!1,this._writableState.decodeStrings=!1,this.allowHalfOpen=d&&d.allowHalfOpen||!1}r.inherits(O,e.Duplex),t.Socket=O,t.Stream=O,O.prototype.listen=function(){throw new Error("Cannot listen in a browser")},O.prototype.setTimeout=function(d,g){d>0&&isFinite(d)?(o.enroll(this,d),g&&this.once("timeout",g)):d===0&&(o.unenroll(this),g&&this.removeListener("timeout",g))},O.prototype._onTimeout=function(){u("_onTimeout"),this.emit("timeout")},O.prototype.setNoDelay=function(d){},O.prototype.setKeepAlive=function(d,g){},O.prototype.address=function(){return{address:this.remoteAddress,port:this.remotePort,family:this.remoteFamily}},Object.defineProperty(O.prototype,"readyState",{get:function(){return this._connecting?"opening":this.readable&&this.writable?"open":this.readable&&!this.writable?"readOnly":!this.readable&&this.writable?"writeOnly":"closed"}}),O.prototype.bufferSize=void 0,O.prototype._read=function(){},O.prototype.end=function(d,g){e.Duplex.prototype.end.call(this,d,g),this.writable=!1,this._ws&&this._ws.close(),this.readable&&!this._readableState.endEmitted?this.read(0):T(this)};function T(d){!d.readable&&!d.writable&&!d.destroyed&&!d._connecting&&!d._writableState.length&&d.destroy()}O.prototype.destroySoon=function(){this.writable&&this.end(),this._writableState.finished?this.destroy():this.once("finish",this.destroy)},O.prototype.destroy=function(d){u("destroy",d),!this.destroyed&&(this._connecting=!1,this.readable=this.writable=!1,o.unenroll(this),u("close"),this.destroyed=!0)},O.prototype.remoteAddress=null,O.prototype.remoteFamily=null,O.prototype.remotePort=null,O.prototype.localAddress=null,O.prototype.localPort=null,O.prototype.bytesRead=0,O.prototype.bytesWritten=0,O.prototype._write=function(d,g,a){var v=this;if(a=a||function(){},this._connecting){this._pendingData=d,this._pendingEncoding=g,this.once("connect",function(){this._write(d,g,a)});return}this._pendingData=null,this._pendingEncoding="",g=="binary"&&typeof d=="string"&&(d=new Ke(d,g)),this._ws.send(d),U.nextTick(function(){v.bytesWritten+=d.length,a()})},O.prototype.write=function(d,g,a){if(!r.isString(d)&&!r.isBuffer(d))throw new TypeError("invalid data");return e.Duplex.prototype.write.apply(this,arguments)},O.prototype.connect=function(d,g){var a=this;if(!r.isObject(d)){var v=R(arguments);return O.prototype.connect.apply(this,v)}if(g=g||function(){},this.write!==O.prototype.write&&(this.write=O.prototype.write),d.path)throw new Error("options.path not supported in the browser");a._connecting=!0,a.writable=!0,a._host=d.host;var E=f.request({hostname:s().hostname,port:s().port,path:s().path+"/connect",method:"POST"},function(j){var N="";j.on("data",function(C){N+=C}),j.on("end",function(){var C=null;try{C=JSON.parse(N)}catch{C={code:j.statusCode,error:N}}if(C.error){a.emit("error","Cannot open TCP connection ["+j.statusCode+"]: "+C.error),a.destroy();return}a.remoteAddress=C.remote.address,a.remoteFamily=C.remote.family,a.remotePort=C.remote.port,a._connectWebSocket(C.token,function(W){if(W){g(W);return}g()})})});return E.setHeader("Content-Type","application/json"),E.write(JSON.stringify(d)),E.end(),this},O.prototype._connectWebSocket=function(d,g){var a=this;if(a._ws){U.nextTick(function(){g()});return}this._ws=new WebSocket(m()+s().path+"/socket?token="+d),this._handleWebsocket(),g&&a.on("connect",g)},O.prototype._handleWebsocket=function(){var d=this;this._ws.addEventListener("open",function(){d._connecting=!1,d.readable=!0,d.emit("connect"),d.read(0)}),this._ws.addEventListener("error",function(g){console.warn("TCP error",g),d.emit("error","An error occured with the WebSocket")}),this._ws.addEventListener("message",function(g){var a=g.data,v=function(N){d.bytesRead+=N.length,d.push(N)};if(typeof a=="string"){var E=new Ke(a);v(E)}else if(window.Blob&&a instanceof Blob){var j=new FileReader;j.addEventListener("load",function(N){var C=j.result,W=new Uint8Array(C);v(new Ke(W))}),j.readAsArrayBuffer(a)}else console.warn("Cannot read TCP stream: unsupported message type",a)}),this._ws.addEventListener("close",function(){d.readyState=="open"&&d.destroy()})},t.isIP=function(d){return t.isIPv4(d)?4:t.isIPv6(d)?6:0},t.isIPv4=function(d){return/^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/.test(d)},t.isIPv6=function(d){return/^(([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))$/.test(d)}})(fn);export{Po as S,Vr as a,fn as b,ao as c,Ji as d,rn as e,vi as f,Dt as g,Yi as h,Oo as o,mr as r,Nr as s,qe as t,We as u}; diff --git a/apps/cli/frontend/assets/browser-DwyAv24f.js b/apps/cli/frontend/assets/browser-DwyAv24f.js deleted file mode 100644 index 0c9507c8..00000000 --- a/apps/cli/frontend/assets/browser-DwyAv24f.js +++ /dev/null @@ -1,10 +0,0 @@ -import{a$ as Tr,b0 as cn,a_ as fe,aX as U,aY as dn,aW as Ke}from"./index-Cwxmhbah.js";import{h as pn}from"./__vite-browser-external-v7f2oYTb.js";var yn={},Nt={exports:{}},ge=typeof Reflect=="object"?Reflect:null,Gt=ge&&typeof ge.apply=="function"?ge.apply:function(e,r,a){return Function.prototype.apply.call(e,r,a)},je;ge&&typeof ge.ownKeys=="function"?je=ge.ownKeys:Object.getOwnPropertySymbols?je=function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:je=function(e){return Object.getOwnPropertyNames(e)};function hn(t){console&&console.warn&&console.warn(t)}var jr=Number.isNaN||function(e){return e!==e};function H(){H.init.call(this)}Nt.exports=H;var Oo=Nt.exports.once=wn;H.EventEmitter=H;H.prototype._events=void 0;H.prototype._eventsCount=0;H.prototype._maxListeners=void 0;var Vt=10;function Ue(t){if(typeof t!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t)}Object.defineProperty(H,"defaultMaxListeners",{enumerable:!0,get:function(){return Vt},set:function(t){if(typeof t!="number"||t<0||jr(t))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+t+".");Vt=t}});H.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};H.prototype.setMaxListeners=function(e){if(typeof e!="number"||e<0||jr(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this};function Mr(t){return t._maxListeners===void 0?H.defaultMaxListeners:t._maxListeners}H.prototype.getMaxListeners=function(){return Mr(this)};H.prototype.emit=function(e){for(var r=[],a=1;a0&&(y=r[0]),y instanceof Error)throw y;var f=new Error("Unhandled error."+(y?" ("+y.message+")":""));throw f.context=y,f}var d=l[e];if(d===void 0)return!1;if(typeof d=="function")Gt(d,this,r);else for(var g=d.length,O=Dr(d,g),a=0;a0&&y.length>p&&!y.warned){y.warned=!0;var f=new Error("Possible EventEmitter memory leak detected. "+y.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit");f.name="MaxListenersExceededWarning",f.emitter=t,f.type=e,f.count=y.length,hn(f)}return t}H.prototype.addListener=function(e,r){return Lr(this,e,r,!1)};H.prototype.on=H.prototype.addListener;H.prototype.prependListener=function(e,r){return Lr(this,e,r,!0)};function gn(){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 Nr(t,e,r){var a={fired:!1,wrapFn:void 0,target:t,type:e,listener:r},p=gn.bind(a);return p.listener=r,a.wrapFn=p,p}H.prototype.once=function(e,r){return Ue(r),this.on(e,Nr(this,e,r)),this};H.prototype.prependOnceListener=function(e,r){return Ue(r),this.prependListener(e,Nr(this,e,r)),this};H.prototype.removeListener=function(e,r){var a,p,l,y,f;if(Ue(r),p=this._events,p===void 0)return this;if(a=p[e],a===void 0)return this;if(a===r||a.listener===r)--this._eventsCount===0?this._events=Object.create(null):(delete p[e],p.removeListener&&this.emit("removeListener",e,a.listener||r));else if(typeof a!="function"){for(l=-1,y=a.length-1;y>=0;y--)if(a[y]===r||a[y].listener===r){f=a[y].listener,l=y;break}if(l<0)return this;l===0?a.shift():vn(a,l),a.length===1&&(p[e]=a[0]),p.removeListener!==void 0&&this.emit("removeListener",e,f||r)}return this};H.prototype.off=H.prototype.removeListener;H.prototype.removeAllListeners=function(e){var r,a,p;if(a=this._events,a===void 0)return this;if(a.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):a[e]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete a[e]),this;if(arguments.length===0){var l=Object.keys(a),y;for(p=0;p=0;p--)this.removeListener(e,r[p]);return this};function Br(t,e,r){var a=t._events;if(a===void 0)return[];var p=a[e];return p===void 0?[]:typeof p=="function"?r?[p.listener||p]:[p]:r?bn(p):Dr(p,p.length)}H.prototype.listeners=function(e){return Br(this,e,!0)};H.prototype.rawListeners=function(e){return Br(this,e,!1)};H.listenerCount=function(t,e){return typeof t.listenerCount=="function"?t.listenerCount(e):Fr.call(t,e)};H.prototype.listenerCount=Fr;function Fr(t){var e=this._events;if(e!==void 0){var r=e[t];if(typeof r=="function")return 1;if(r!==void 0)return r.length}return 0}H.prototype.eventNames=function(){return this._eventsCount>0?je(this._events):[]};function Dr(t,e){for(var r=new Array(e),a=0;a"u"||!V?k:V(Uint8Array),ue={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?k:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?k:ArrayBuffer,"%ArrayIteratorPrototype%":de&&V?V([][Symbol.iterator]()):k,"%AsyncFromSyncIteratorPrototype%":k,"%AsyncFunction%":ye,"%AsyncGenerator%":ye,"%AsyncGeneratorFunction%":ye,"%AsyncIteratorPrototype%":ye,"%Atomics%":typeof Atomics>"u"?k:Atomics,"%BigInt%":typeof BigInt>"u"?k:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?k:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?k:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?k:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":zn,"%eval%":eval,"%EvalError%":Kn,"%Float32Array%":typeof Float32Array>"u"?k:Float32Array,"%Float64Array%":typeof Float64Array>"u"?k:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?k:FinalizationRegistry,"%Function%":Hr,"%GeneratorFunction%":ye,"%Int8Array%":typeof Int8Array>"u"?k:Int8Array,"%Int16Array%":typeof Int16Array>"u"?k:Int16Array,"%Int32Array%":typeof Int32Array>"u"?k:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":de&&V?V(V([][Symbol.iterator]())):k,"%JSON%":typeof JSON=="object"?JSON:k,"%Map%":typeof Map>"u"?k:Map,"%MapIteratorPrototype%":typeof Map>"u"||!de||!V?k:V(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":xr,"%Object.getOwnPropertyDescriptor%":Se,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?k:Promise,"%Proxy%":typeof Proxy>"u"?k:Proxy,"%RangeError%":Jn,"%ReferenceError%":Yn,"%Reflect%":typeof Reflect>"u"?k:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?k:Set,"%SetIteratorPrototype%":typeof Set>"u"||!de||!V?k:V(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?k:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":de&&V?V(""[Symbol.iterator]()):k,"%Symbol%":de?Symbol:k,"%SyntaxError%":be,"%ThrowTypeError%":ii,"%TypedArray%":ai,"%TypeError%":ve,"%Uint8Array%":typeof Uint8Array>"u"?k:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?k:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?k:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?k:Uint32Array,"%URIError%":Xn,"%WeakMap%":typeof WeakMap>"u"?k:WeakMap,"%WeakRef%":typeof WeakRef>"u"?k:WeakRef,"%WeakSet%":typeof WeakSet>"u"?k:WeakSet,"%Function.prototype.call%":Re,"%Function.prototype.apply%":Gr,"%Object.defineProperty%":ni,"%Math.abs%":Zn,"%Math.floor%":Qn,"%Math.max%":ei,"%Math.min%":ti,"%Math.pow%":ri};if(V)try{null.error}catch(t){var fi=V(V(t));ue["%Error.prototype%"]=fi}var ui=function t(e){var r;if(e==="%AsyncFunction%")r=nt("async function () {}");else if(e==="%GeneratorFunction%")r=nt("function* () {}");else if(e==="%AsyncGeneratorFunction%")r=nt("async function* () {}");else if(e==="%AsyncGenerator%"){var a=t("%AsyncGeneratorFunction%");a&&(r=a.prototype)}else if(e==="%AsyncIteratorPrototype%"){var p=t("%AsyncGenerator%");p&&V&&(r=V(p.prototype))}return ue[e]=r,r},tr={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},Oe=Ae(),De=Vn(),si=Oe.call(Re,Array.prototype.concat),li=Oe.call(Gr,Array.prototype.splice),rr=Oe.call(Re,String.prototype.replace),Ce=Oe.call(Re,String.prototype.slice),ci=Oe.call(Re,RegExp.prototype.exec),di=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,pi=/\\(\\)?/g,yi=function(e){var r=Ce(e,0,1),a=Ce(e,-1);if(r==="%"&&a!=="%")throw new be("invalid intrinsic syntax, expected closing `%`");if(a==="%"&&r!=="%")throw new be("invalid intrinsic syntax, expected opening `%`");var p=[];return rr(e,di,function(l,y,f,d){p[p.length]=f?rr(d,pi,"$1"):y||l}),p},hi=function(e,r){var a=e,p;if(De(tr,a)&&(p=tr[a],a="%"+p[0]+"%"),De(ue,a)){var l=ue[a];if(l===ye&&(l=ui(a)),typeof l>"u"&&!r)throw new ve("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:p,name:a,value:l}}throw new be("intrinsic "+e+" does not exist!")},It=function(e,r){if(typeof e!="string"||e.length===0)throw new ve("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new ve('"allowMissing" argument must be a boolean');if(ci(/^%?[^%]*%?$/,e)===null)throw new be("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var a=yi(e),p=a.length>0?a[0]:"",l=hi("%"+p+"%",r),y=l.name,f=l.value,d=!1,g=l.alias;g&&(p=g[0],li(a,si([0,1],g)));for(var O=1,R=!0;O=a.length){var u=Se(f,E);R=!!u,R&&"get"in u&&!("originalValue"in u.get)?f=u.get:f=f[E]}else R=De(f,E),f=f[E];R&&!d&&(ue[y]=f)}}return f},Vr={exports:{}},nr=xe,gi=kr,pe=qe,ir=Ee,vi=function(e,r,a){if(!e||typeof e!="object"&&typeof e!="function")throw new pe("`obj` must be an object or a function`");if(typeof r!="string"&&typeof r!="symbol")throw new pe("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new pe("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new pe("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new pe("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new pe("`loose`, if provided, must be a boolean");var p=arguments.length>3?arguments[3]:null,l=arguments.length>4?arguments[4]:null,y=arguments.length>5?arguments[5]:null,f=arguments.length>6?arguments[6]:!1,d=!!ir&&ir(e,r);if(nr)nr(e,r,{configurable:y===null&&d?d.configurable:!y,enumerable:p===null&&d?d.enumerable:!p,value:a,writable:l===null&&d?d.writable:!l});else if(f||!p&&!l&&!y)e[r]=a;else throw new gi("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},Ot=xe,zr=function(){return!!Ot};zr.hasArrayLengthDefineBug=function(){if(!Ot)return null;try{return Ot([],"length",{value:1}).length!==1}catch{return!0}};var bi=zr,wi=It,or=vi,mi=bi(),ar=Ee,fr=qe,_i=wi("%Math.floor%"),Si=function(e,r){if(typeof e!="function")throw new fr("`fn` is not a function");if(typeof r!="number"||r<0||r>4294967295||_i(r)!==r)throw new fr("`length` must be a positive 32-bit integer");var a=arguments.length>2&&!!arguments[2],p=!0,l=!0;if("length"in e&&ar){var y=ar(e,"length");y&&!y.configurable&&(p=!1),y&&!y.writable&&(l=!1)}return(p||l||!a)&&(mi?or(e,"length",r,!0,!0):or(e,"length",r)),e},Ei=Ae(),Ai=Ct(),Ri=Wr,Oi=function(){return Ri(Ei,Ai,arguments)};(function(t){var e=Si,r=xe,a=qr,p=Oi;t.exports=function(y){var f=a(arguments),d=y.length-(arguments.length-1);return e(f,1+(d>0?d:0),!0)},r?r(t.exports,"apply",{value:p}):t.exports.apply=p})(Vr);var $t=Vr.exports,Kr=It,Jr=$t,Pi=Jr(Kr("String.prototype.indexOf")),Ti=function(e,r){var a=Kr(e,!!r);return typeof a=="function"&&Pi(e,".prototype.")>-1?Jr(a):a},ji=Ft(),Mi=Ti,Pt=Mi("Object.prototype.toString"),He=function(e){return ji&&e&&typeof e=="object"&&Symbol.toStringTag in e?!1:Pt(e)==="[object Arguments]"},Yr=function(e){return He(e)?!0:e!==null&&typeof e=="object"&&"length"in e&&typeof e.length=="number"&&e.length>=0&&Pt(e)!=="[object Array]"&&"callee"in e&&Pt(e.callee)==="[object Function]"},Li=function(){return He(arguments)}();He.isLegacyArguments=Yr;var Ni=Li?He:Yr,Bi=Object.prototype.toString,Fi=Function.prototype.toString,Di=/^\s*(?:function)?\*/,Xr=Ft(),ot=Object.getPrototypeOf,Ci=function(){if(!Xr)return!1;try{return Function("return function*() {}")()}catch{}},at,Ii=function(e){if(typeof e!="function")return!1;if(Di.test(Fi.call(e)))return!0;if(!Xr){var r=Bi.call(e);return r==="[object GeneratorFunction]"}if(!ot)return!1;if(typeof at>"u"){var a=Ci();at=a?ot(a):!1}return ot(e)===at},Zr=Function.prototype.toString,he=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,Tt,Ne;if(typeof he=="function"&&typeof Object.defineProperty=="function")try{Tt=Object.defineProperty({},"length",{get:function(){throw Ne}}),Ne={},he(function(){throw 42},null,Tt)}catch(t){t!==Ne&&(he=null)}else he=null;var $i=/^\s*class\b/,jt=function(e){try{var r=Zr.call(e);return $i.test(r)}catch{return!1}},ft=function(e){try{return jt(e)?!1:(Zr.call(e),!0)}catch{return!1}},Be=Object.prototype.toString,Ui="[object Object]",ki="[object Function]",Wi="[object GeneratorFunction]",qi="[object HTMLAllCollection]",xi="[object HTML document.all class]",Hi="[object HTMLCollection]",Gi=typeof Symbol=="function"&&!!Symbol.toStringTag,Vi=!(0 in[,]),Mt=function(){return!1};if(typeof document=="object"){var zi=document.all;Be.call(zi)===Be.call(document.all)&&(Mt=function(e){if((Vi||!e)&&(typeof e>"u"||typeof e=="object"))try{var r=Be.call(e);return(r===qi||r===xi||r===Hi||r===Ui)&&e("")==null}catch{}return!1})}var Ki=he?function(e){if(Mt(e))return!0;if(!e||typeof e!="function"&&typeof e!="object")return!1;try{he(e,null,Tt)}catch(r){if(r!==Ne)return!1}return!jt(e)&&ft(e)}:function(e){if(Mt(e))return!0;if(!e||typeof e!="function"&&typeof e!="object")return!1;if(Gi)return ft(e);if(jt(e))return!1;var r=Be.call(e);return r!==ki&&r!==Wi&&!/^\[object HTML/.test(r)?!1:ft(e)},Ji=Ki,Yi=Object.prototype.toString,Qr=Object.prototype.hasOwnProperty,Xi=function(e,r,a){for(var p=0,l=e.length;p=3&&(p=a),Yi.call(e)==="[object Array]"?Xi(e,r,p):typeof e=="string"?Zi(e,r,p):Qi(e,r,p)},to=eo,ro=["Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"],ut=ro,no=typeof globalThis>"u"?fe:globalThis,io=function(){for(var e=[],r=0;r-1?tn(a):a},Ie=to,fo=io,ur=$t,Ut=ao,Fe=Ee,uo=Ut("Object.prototype.toString"),rn=Ft(),sr=typeof globalThis>"u"?fe:globalThis,Lt=fo(),kt=Ut("String.prototype.slice"),st=Object.getPrototypeOf,so=Ut("Array.prototype.indexOf",!0)||function(e,r){for(var a=0;a-1?r:r!=="Object"?!1:co(e)}return Fe?lo(e):null},po=nn,yo=function(e){return!!po(e)};(function(t){var e=Ni,r=Ii,a=nn,p=yo;function l(_){return _.call.bind(_)}var y=typeof BigInt<"u",f=typeof Symbol<"u",d=l(Object.prototype.toString),g=l(Number.prototype.valueOf),O=l(String.prototype.valueOf),R=l(Boolean.prototype.valueOf);if(y)var E=l(BigInt.prototype.valueOf);if(f)var P=l(Symbol.prototype.valueOf);function j(_,Pe){if(typeof _!="object")return!1;try{return Pe(_),!0}catch{return!1}}t.isArgumentsObject=e,t.isGeneratorFunction=r,t.isTypedArray=p;function u(_){return typeof Promise<"u"&&_ instanceof Promise||_!==null&&typeof _=="object"&&typeof _.then=="function"&&typeof _.catch=="function"}t.isPromise=u;function v(_){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(_):p(_)||h(_)}t.isArrayBufferView=v;function o(_){return a(_)==="Uint8Array"}t.isUint8Array=o;function b(_){return a(_)==="Uint8ClampedArray"}t.isUint8ClampedArray=b;function A(_){return a(_)==="Uint16Array"}t.isUint16Array=A;function M(_){return a(_)==="Uint32Array"}t.isUint32Array=M;function N(_){return a(_)==="Int8Array"}t.isInt8Array=N;function D(_){return a(_)==="Int16Array"}t.isInt16Array=D;function W(_){return a(_)==="Int32Array"}t.isInt32Array=W;function I(_){return a(_)==="Float32Array"}t.isFloat32Array=I;function C(_){return a(_)==="Float64Array"}t.isFloat64Array=C;function G(_){return a(_)==="BigInt64Array"}t.isBigInt64Array=G;function Y(_){return a(_)==="BigUint64Array"}t.isBigUint64Array=Y;function K(_){return d(_)==="[object Map]"}K.working=typeof Map<"u"&&K(new Map);function J(_){return typeof Map>"u"?!1:K.working?K(_):_ instanceof Map}t.isMap=J;function re(_){return d(_)==="[object Set]"}re.working=typeof Set<"u"&&re(new Set);function ne(_){return typeof Set>"u"?!1:re.working?re(_):_ instanceof Set}t.isSet=ne;function X(_){return d(_)==="[object WeakMap]"}X.working=typeof WeakMap<"u"&&X(new WeakMap);function Q(_){return typeof WeakMap>"u"?!1:X.working?X(_):_ instanceof WeakMap}t.isWeakMap=Q;function ie(_){return d(_)==="[object WeakSet]"}ie.working=typeof WeakSet<"u"&&ie(new WeakSet);function ee(_){return ie(_)}t.isWeakSet=ee;function z(_){return d(_)==="[object ArrayBuffer]"}z.working=typeof ArrayBuffer<"u"&&z(new ArrayBuffer);function oe(_){return typeof ArrayBuffer>"u"?!1:z.working?z(_):_ instanceof ArrayBuffer}t.isArrayBuffer=oe;function te(_){return d(_)==="[object DataView]"}te.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&te(new DataView(new ArrayBuffer(1),0,1));function h(_){return typeof DataView>"u"?!1:te.working?te(_):_ instanceof DataView}t.isDataView=h;var m=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function T(_){return d(_)==="[object SharedArrayBuffer]"}function s(_){return typeof m>"u"?!1:(typeof T.working>"u"&&(T.working=T(new m)),T.working?T(_):_ instanceof m)}t.isSharedArrayBuffer=s;function c(_){return d(_)==="[object AsyncFunction]"}t.isAsyncFunction=c;function w(_){return d(_)==="[object Map Iterator]"}t.isMapIterator=w;function L(_){return d(_)==="[object Set Iterator]"}t.isSetIterator=L;function B(_){return d(_)==="[object Generator]"}t.isGeneratorObject=B;function n(_){return d(_)==="[object WebAssembly.Module]"}t.isWebAssemblyCompiledModule=n;function i(_){return j(_,g)}t.isNumberObject=i;function S(_){return j(_,O)}t.isStringObject=S;function F(_){return j(_,R)}t.isBooleanObject=F;function q(_){return y&&j(_,E)}t.isBigIntObject=q;function $(_){return f&&j(_,P)}t.isSymbolObject=$;function x(_){return i(_)||S(_)||F(_)||q(_)||$(_)}t.isBoxedPrimitive=x;function ae(_){return typeof Uint8Array<"u"&&(oe(_)||s(_))}t.isAnyArrayBuffer=ae,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(_){Object.defineProperty(t,_,{enumerable:!1,value:function(){throw new Error(_+" is not supported in userland")}})})})($r);var ho=function(e){return e&&typeof e=="object"&&typeof e.copy=="function"&&typeof e.fill=="function"&&typeof e.readUInt8=="function"};(function(t){var e={},r=Object.getOwnPropertyDescriptors||function(m){for(var T=Object.keys(m),s={},c=0;c=c)return B;switch(B){case"%s":return String(s[T++]);case"%d":return Number(s[T++]);case"%j":try{return JSON.stringify(s[T++])}catch{return"[Circular]"}default:return B}}),L=s[T];T"u")return function(){return t.deprecate(h,m).apply(this,arguments)};var T=!1;function s(){if(!T){if(U.throwDeprecation)throw new Error(m);U.traceDeprecation?console.trace(m):console.error(m),T=!0}return h.apply(this,arguments)}return s};var p={},l=/^$/;if(e.NODE_DEBUG){var y=e.NODE_DEBUG;y=y.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),l=new RegExp("^"+y+"$","i")}t.debuglog=function(h){if(h=h.toUpperCase(),!p[h])if(l.test(h)){var m=U.pid;p[h]=function(){var T=t.format.apply(t,arguments);console.error("%s %d: %s",h,m,T)}}else p[h]=function(){};return p[h]};function f(h,m){var T={seen:[],stylize:g};return arguments.length>=3&&(T.depth=arguments[2]),arguments.length>=4&&(T.colors=arguments[3]),b(m)?T.showHidden=m:m&&t._extend(T,m),I(T.showHidden)&&(T.showHidden=!1),I(T.depth)&&(T.depth=2),I(T.colors)&&(T.colors=!1),I(T.customInspect)&&(T.customInspect=!0),T.colors&&(T.stylize=d),R(T,h,T.depth)}t.inspect=f,f.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},f.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function d(h,m){var T=f.styles[m];return T?"\x1B["+f.colors[T][0]+"m"+h+"\x1B["+f.colors[T][1]+"m":h}function g(h,m){return h}function O(h){var m={};return h.forEach(function(T,s){m[T]=!0}),m}function R(h,m,T){if(h.customInspect&&m&&J(m.inspect)&&m.inspect!==t.inspect&&!(m.constructor&&m.constructor.prototype===m)){var s=m.inspect(T,h);return D(s)||(s=R(h,s,T)),s}var c=E(h,m);if(c)return c;var w=Object.keys(m),L=O(w);if(h.showHidden&&(w=Object.getOwnPropertyNames(m)),K(m)&&(w.indexOf("message")>=0||w.indexOf("description")>=0))return P(m);if(w.length===0){if(J(m)){var B=m.name?": "+m.name:"";return h.stylize("[Function"+B+"]","special")}if(C(m))return h.stylize(RegExp.prototype.toString.call(m),"regexp");if(Y(m))return h.stylize(Date.prototype.toString.call(m),"date");if(K(m))return P(m)}var n="",i=!1,S=["{","}"];if(o(m)&&(i=!0,S=["[","]"]),J(m)){var F=m.name?": "+m.name:"";n=" [Function"+F+"]"}if(C(m)&&(n=" "+RegExp.prototype.toString.call(m)),Y(m)&&(n=" "+Date.prototype.toUTCString.call(m)),K(m)&&(n=" "+P(m)),w.length===0&&(!i||m.length==0))return S[0]+n+S[1];if(T<0)return C(m)?h.stylize(RegExp.prototype.toString.call(m),"regexp"):h.stylize("[Object]","special");h.seen.push(m);var q;return i?q=j(h,m,T,L,w):q=w.map(function($){return u(h,m,T,L,$,i)}),h.seen.pop(),v(q,n,S)}function E(h,m){if(I(m))return h.stylize("undefined","undefined");if(D(m)){var T="'"+JSON.stringify(m).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return h.stylize(T,"string")}if(N(m))return h.stylize(""+m,"number");if(b(m))return h.stylize(""+m,"boolean");if(A(m))return h.stylize("null","null")}function P(h){return"["+Error.prototype.toString.call(h)+"]"}function j(h,m,T,s,c){for(var w=[],L=0,B=m.length;L-1&&(w?B=B.split(` -`).map(function(i){return" "+i}).join(` -`).slice(2):B=` -`+B.split(` -`).map(function(i){return" "+i}).join(` -`))):B=h.stylize("[Circular]","special")),I(L)){if(w&&c.match(/^\d+$/))return B;L=JSON.stringify(""+c),L.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(L=L.slice(1,-1),L=h.stylize(L,"name")):(L=L.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),L=h.stylize(L,"string"))}return L+": "+B}function v(h,m,T){var s=h.reduce(function(c,w){return w.indexOf(` -`)>=0,c+w.replace(/\u001b\[\d\d?m/g,"").length+1},0);return s>60?T[0]+(m===""?"":m+` - `)+" "+h.join(`, - `)+" "+T[1]:T[0]+m+" "+h.join(", ")+" "+T[1]}t.types=$r;function o(h){return Array.isArray(h)}t.isArray=o;function b(h){return typeof h=="boolean"}t.isBoolean=b;function A(h){return h===null}t.isNull=A;function M(h){return h==null}t.isNullOrUndefined=M;function N(h){return typeof h=="number"}t.isNumber=N;function D(h){return typeof h=="string"}t.isString=D;function W(h){return typeof h=="symbol"}t.isSymbol=W;function I(h){return h===void 0}t.isUndefined=I;function C(h){return G(h)&&ne(h)==="[object RegExp]"}t.isRegExp=C,t.types.isRegExp=C;function G(h){return typeof h=="object"&&h!==null}t.isObject=G;function Y(h){return G(h)&&ne(h)==="[object Date]"}t.isDate=Y,t.types.isDate=Y;function K(h){return G(h)&&(ne(h)==="[object Error]"||h instanceof Error)}t.isError=K,t.types.isNativeError=K;function J(h){return typeof h=="function"}t.isFunction=J;function re(h){return h===null||typeof h=="boolean"||typeof h=="number"||typeof h=="string"||typeof h=="symbol"||typeof h>"u"}t.isPrimitive=re,t.isBuffer=ho;function ne(h){return Object.prototype.toString.call(h)}function X(h){return h<10?"0"+h.toString(10):h.toString(10)}var Q=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function ie(){var h=new Date,m=[X(h.getHours()),X(h.getMinutes()),X(h.getSeconds())].join(":");return[h.getDate(),Q[h.getMonth()],m].join(" ")}t.log=function(){console.log("%s - %s",ie(),t.format.apply(t,arguments))},t.inherits=se,t._extend=function(h,m){if(!m||!G(m))return h;for(var T=Object.keys(m),s=T.length;s--;)h[T[s]]=m[T[s]];return h};function ee(h,m){return Object.prototype.hasOwnProperty.call(h,m)}var z=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;t.promisify=function(m){if(typeof m!="function")throw new TypeError('The "original" argument must be of type Function');if(z&&m[z]){var T=m[z];if(typeof T!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(T,z,{value:T,enumerable:!1,writable:!1,configurable:!0}),T}function T(){for(var s,c,w=new Promise(function(n,i){s=n,c=i}),L=[],B=0;B0?this.tail.next=o:this.head=o,this.tail=o,++this.length}},{key:"unshift",value:function(v){var o={data:v,next:this.head};this.length===0&&(this.tail=o),this.head=o,++this.length}},{key:"shift",value:function(){if(this.length!==0){var v=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,v}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(v){if(this.length===0)return"";for(var o=this.head,b=""+o.data;o=o.next;)b+=v+o.data;return b}},{key:"concat",value:function(v){if(this.length===0)return g.alloc(0);for(var o=g.allocUnsafe(v>>>0),b=this.head,A=0;b;)P(b.data,o,A),A+=b.data.length,b=b.next;return o}},{key:"consume",value:function(v,o){var b;return vM.length?M.length:v;if(N===M.length?A+=M:A+=M.slice(0,v),v-=N,v===0){N===M.length?(++b,o.next?this.head=o.next:this.head=this.tail=null):(this.head=o,o.data=M.slice(N));break}++b}return this.length-=b,A}},{key:"_getBuffer",value:function(v){var o=g.allocUnsafe(v),b=this.head,A=1;for(b.data.copy(o),v-=b.data.length;b=b.next;){var M=b.data,N=v>M.length?M.length:v;if(M.copy(o,o.length-v,0,N),v-=N,v===0){N===M.length?(++A,b.next?this.head=b.next:this.head=this.tail=null):(this.head=b,b.data=M.slice(N));break}++A}return this.length-=A,o}},{key:E,value:function(v,o){return R(this,e(e({},o),{},{depth:0,customInspect:!1}))}}]),j}(),lt}var ct,cr;function on(){if(cr)return ct;cr=1;function t(y,f){var d=this,g=this._readableState&&this._readableState.destroyed,O=this._writableState&&this._writableState.destroyed;return g||O?(f?f(y):y&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,U.nextTick(p,this,y)):U.nextTick(p,this,y)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(y||null,function(R){!f&&R?d._writableState?d._writableState.errorEmitted?U.nextTick(r,d):(d._writableState.errorEmitted=!0,U.nextTick(e,d,R)):U.nextTick(e,d,R):f?(U.nextTick(r,d),f(R)):U.nextTick(r,d)}),this)}function e(y,f){p(y,f),r(y)}function r(y){y._writableState&&!y._writableState.emitClose||y._readableState&&!y._readableState.emitClose||y.emit("close")}function a(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function p(y,f){y.emit("error",f)}function l(y,f){var d=y._readableState,g=y._writableState;d&&d.autoDestroy||g&&g.autoDestroy?y.destroy(f):y.emit("error",f)}return ct={destroy:t,undestroy:a,errorOrDestroy:l},ct}var dt={},dr;function me(){if(dr)return dt;dr=1;function t(f,d){f.prototype=Object.create(d.prototype),f.prototype.constructor=f,f.__proto__=d}var e={};function r(f,d,g){g||(g=Error);function O(E,P,j){return typeof d=="string"?d:d(E,P,j)}var R=function(E){t(P,E);function P(j,u,v){return E.call(this,O(j,u,v))||this}return P}(g);R.prototype.name=g.name,R.prototype.code=f,e[f]=R}function a(f,d){if(Array.isArray(f)){var g=f.length;return f=f.map(function(O){return String(O)}),g>2?"one of ".concat(d," ").concat(f.slice(0,g-1).join(", "),", or ")+f[g-1]:g===2?"one of ".concat(d," ").concat(f[0]," or ").concat(f[1]):"of ".concat(d," ").concat(f[0])}else return"of ".concat(d," ").concat(String(f))}function p(f,d,g){return f.substr(0,d.length)===d}function l(f,d,g){return(g===void 0||g>f.length)&&(g=f.length),f.substring(g-d.length,g)===d}function y(f,d,g){return typeof g!="number"&&(g=0),g+d.length>f.length?!1:f.indexOf(d,g)!==-1}return r("ERR_INVALID_OPT_VALUE",function(f,d){return'The value "'+d+'" is invalid for option "'+f+'"'},TypeError),r("ERR_INVALID_ARG_TYPE",function(f,d,g){var O;typeof d=="string"&&p(d,"not ")?(O="must not be",d=d.replace(/^not /,"")):O="must be";var R;if(l(f," argument"))R="The ".concat(f," ").concat(O," ").concat(a(d,"type"));else{var E=y(f,".")?"property":"argument";R='The "'.concat(f,'" ').concat(E," ").concat(O," ").concat(a(d,"type"))}return R+=". Received type ".concat(typeof g),R},TypeError),r("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),r("ERR_METHOD_NOT_IMPLEMENTED",function(f){return"The "+f+" method is not implemented"}),r("ERR_STREAM_PREMATURE_CLOSE","Premature close"),r("ERR_STREAM_DESTROYED",function(f){return"Cannot call "+f+" after a stream was destroyed"}),r("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),r("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),r("ERR_STREAM_WRITE_AFTER_END","write after end"),r("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),r("ERR_UNKNOWN_ENCODING",function(f){return"Unknown encoding: "+f},TypeError),r("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),dt.codes=e,dt}var pt,pr;function an(){if(pr)return pt;pr=1;var t=me().codes.ERR_INVALID_OPT_VALUE;function e(a,p,l){return a.highWaterMark!=null?a.highWaterMark:p?a[l]:null}function r(a,p,l,y){var f=e(p,y,l);if(f!=null){if(!(isFinite(f)&&Math.floor(f)===f)||f<0){var d=y?l:"highWaterMark";throw new t(d,f)}return Math.floor(f)}return a.objectMode?16:16*1024}return pt={getHighWaterMark:r},pt}var yt,yr;function vo(){if(yr)return yt;yr=1,yt=t;function t(r,a){if(e("noDeprecation"))return r;var p=!1;function l(){if(!p){if(e("throwDeprecation"))throw new Error(a);e("traceDeprecation")?console.trace(a):console.warn(a),p=!0}return r.apply(this,arguments)}return l}function e(r){try{if(!fe.localStorage)return!1}catch{return!1}var a=fe.localStorage[r];return a==null?!1:String(a).toLowerCase()==="true"}return yt}var ht,hr;function fn(){if(hr)return ht;hr=1,ht=I;function t(s){var c=this;this.next=null,this.entry=null,this.finish=function(){T(c,s)}}var e;I.WritableState=D;var r={deprecate:vo()},a=Ir(),p=ke.Buffer,l=(typeof fe<"u"?fe:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function y(s){return p.from(s)}function f(s){return p.isBuffer(s)||s instanceof l}var d=on(),g=an(),O=g.getHighWaterMark,R=me().codes,E=R.ERR_INVALID_ARG_TYPE,P=R.ERR_METHOD_NOT_IMPLEMENTED,j=R.ERR_MULTIPLE_CALLBACK,u=R.ERR_STREAM_CANNOT_PIPE,v=R.ERR_STREAM_DESTROYED,o=R.ERR_STREAM_NULL_VALUES,b=R.ERR_STREAM_WRITE_AFTER_END,A=R.ERR_UNKNOWN_ENCODING,M=d.errorOrDestroy;se(I,a);function N(){}function D(s,c,w){e=e||we(),s=s||{},typeof w!="boolean"&&(w=c instanceof e),this.objectMode=!!s.objectMode,w&&(this.objectMode=this.objectMode||!!s.writableObjectMode),this.highWaterMark=O(this,s,"writableHighWaterMark",w),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var L=s.decodeStrings===!1;this.decodeStrings=!L,this.defaultEncoding=s.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(B){X(c,B)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=s.emitClose!==!1,this.autoDestroy=!!s.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new t(this)}D.prototype.getBuffer=function(){for(var c=this.bufferedRequest,w=[];c;)w.push(c),c=c.next;return w},function(){try{Object.defineProperty(D.prototype,"buffer",{get:r.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}();var W;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(W=Function.prototype[Symbol.hasInstance],Object.defineProperty(I,Symbol.hasInstance,{value:function(c){return W.call(this,c)?!0:this!==I?!1:c&&c._writableState instanceof D}})):W=function(c){return c instanceof this};function I(s){e=e||we();var c=this instanceof e;if(!c&&!W.call(I,this))return new I(s);this._writableState=new D(s,this,c),this.writable=!0,s&&(typeof s.write=="function"&&(this._write=s.write),typeof s.writev=="function"&&(this._writev=s.writev),typeof s.destroy=="function"&&(this._destroy=s.destroy),typeof s.final=="function"&&(this._final=s.final)),a.call(this)}I.prototype.pipe=function(){M(this,new u)};function C(s,c){var w=new b;M(s,w),U.nextTick(c,w)}function G(s,c,w,L){var B;return w===null?B=new o:typeof w!="string"&&!c.objectMode&&(B=new E("chunk",["string","Buffer"],w)),B?(M(s,B),U.nextTick(L,B),!1):!0}I.prototype.write=function(s,c,w){var L=this._writableState,B=!1,n=!L.objectMode&&f(s);return n&&!p.isBuffer(s)&&(s=y(s)),typeof c=="function"&&(w=c,c=null),n?c="buffer":c||(c=L.defaultEncoding),typeof w!="function"&&(w=N),L.ending?C(this,w):(n||G(this,L,s,w))&&(L.pendingcb++,B=K(this,L,n,s,c,w)),B},I.prototype.cork=function(){this._writableState.corked++},I.prototype.uncork=function(){var s=this._writableState;s.corked&&(s.corked--,!s.writing&&!s.corked&&!s.bufferProcessing&&s.bufferedRequest&&ee(this,s))},I.prototype.setDefaultEncoding=function(c){if(typeof c=="string"&&(c=c.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((c+"").toLowerCase())>-1))throw new A(c);return this._writableState.defaultEncoding=c,this},Object.defineProperty(I.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function Y(s,c,w){return!s.objectMode&&s.decodeStrings!==!1&&typeof c=="string"&&(c=p.from(c,w)),c}Object.defineProperty(I.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function K(s,c,w,L,B,n){if(!w){var i=Y(c,L,B);L!==i&&(w=!0,B="buffer",L=i)}var S=c.objectMode?1:L.length;c.length+=S;var F=c.length */var vr;function bo(){return vr||(vr=1,function(t,e){var r=ke,a=r.Buffer;function p(y,f){for(var d in y)f[d]=y[d]}a.from&&a.alloc&&a.allocUnsafe&&a.allocUnsafeSlow?t.exports=r:(p(r,e),e.Buffer=l);function l(y,f,d){return a(y,f,d)}l.prototype=Object.create(a.prototype),p(a,l),l.from=function(y,f,d){if(typeof y=="number")throw new TypeError("Argument must not be a number");return a(y,f,d)},l.alloc=function(y,f,d){if(typeof y!="number")throw new TypeError("Argument must be a number");var g=a(y);return f!==void 0?typeof d=="string"?g.fill(f,d):g.fill(f):g.fill(0),g},l.allocUnsafe=function(y){if(typeof y!="number")throw new TypeError("Argument must be a number");return a(y)},l.allocUnsafeSlow=function(y){if(typeof y!="number")throw new TypeError("Argument must be a number");return r.SlowBuffer(y)}}(Te,Te.exports)),Te.exports}var br;function wr(){if(br)return vt;br=1;var t=bo().Buffer,e=t.isEncoding||function(o){switch(o=""+o,o&&o.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function r(o){if(!o)return"utf8";for(var b;;)switch(o){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return o;default:if(b)return;o=(""+o).toLowerCase(),b=!0}}function a(o){var b=r(o);if(typeof b!="string"&&(t.isEncoding===e||!e(o)))throw new Error("Unknown encoding: "+o);return b||o}vt.StringDecoder=p;function p(o){this.encoding=a(o);var b;switch(this.encoding){case"utf16le":this.text=R,this.end=E,b=4;break;case"utf8":this.fillLast=d,b=4;break;case"base64":this.text=P,this.end=j,b=3;break;default:this.write=u,this.end=v;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=t.allocUnsafe(b)}p.prototype.write=function(o){if(o.length===0)return"";var b,A;if(this.lastNeed){if(b=this.fillLast(o),b===void 0)return"";A=this.lastNeed,this.lastNeed=0}else A=0;return A>5===6?2:o>>4===14?3:o>>3===30?4:o>>6===2?-1:-2}function y(o,b,A){var M=b.length-1;if(M=0?(N>0&&(o.lastNeed=N-1),N):--M=0?(N>0&&(o.lastNeed=N-2),N):--M=0?(N>0&&(N===2?N=0:o.lastNeed=N-3),N):0))}function f(o,b,A){if((b[0]&192)!==128)return o.lastNeed=0,"�";if(o.lastNeed>1&&b.length>1){if((b[1]&192)!==128)return o.lastNeed=1,"�";if(o.lastNeed>2&&b.length>2&&(b[2]&192)!==128)return o.lastNeed=2,"�"}}function d(o){var b=this.lastTotal-this.lastNeed,A=f(this,o);if(A!==void 0)return A;if(this.lastNeed<=o.length)return o.copy(this.lastChar,b,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);o.copy(this.lastChar,b,0,o.length),this.lastNeed-=o.length}function g(o,b){var A=y(this,o,b);if(!this.lastNeed)return o.toString("utf8",b);this.lastTotal=A;var M=o.length-(A-this.lastNeed);return o.copy(this.lastChar,0,M),o.toString("utf8",b,M)}function O(o){var b=o&&o.length?this.write(o):"";return this.lastNeed?b+"�":b}function R(o,b){if((o.length-b)%2===0){var A=o.toString("utf16le",b);if(A){var M=A.charCodeAt(A.length-1);if(M>=55296&&M<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=o[o.length-2],this.lastChar[1]=o[o.length-1],A.slice(0,-1)}return A}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=o[o.length-1],o.toString("utf16le",b,o.length-1)}function E(o){var b=o&&o.length?this.write(o):"";if(this.lastNeed){var A=this.lastTotal-this.lastNeed;return b+this.lastChar.toString("utf16le",0,A)}return b}function P(o,b){var A=(o.length-b)%3;return A===0?o.toString("base64",b):(this.lastNeed=3-A,this.lastTotal=3,A===1?this.lastChar[0]=o[o.length-1]:(this.lastChar[0]=o[o.length-2],this.lastChar[1]=o[o.length-1]),o.toString("base64",b,o.length-A))}function j(o){var b=o&&o.length?this.write(o):"";return this.lastNeed?b+this.lastChar.toString("base64",0,3-this.lastNeed):b}function u(o){return o.toString(this.encoding)}function v(o){return o&&o.length?this.write(o):""}return vt}var bt,mr;function Wt(){if(mr)return bt;mr=1;var t=me().codes.ERR_STREAM_PREMATURE_CLOSE;function e(l){var y=!1;return function(){if(!y){y=!0;for(var f=arguments.length,d=new Array(f),g=0;g0)if(typeof i!="string"&&!$.objectMode&&Object.getPrototypeOf(i)!==a.prototype&&(i=l(i)),F)$.endEmitted?N(n,new o):Y(n,$,i,!0);else if($.ended)N(n,new u);else{if($.destroyed)return!1;$.reading=!1,$.decoder&&!S?(i=$.decoder.write(i),$.objectMode||i.length!==0?Y(n,$,i,!1):ee(n,$)):Y(n,$,i,!1)}else F||($.reading=!1,ee(n,$))}return!$.ended&&($.length<$.highWaterMark||$.length===0)}function Y(n,i,S,F){i.flowing&&i.length===0&&!i.sync?(i.awaitDrain=0,n.emit("data",S)):(i.length+=i.objectMode?1:S.length,F?i.buffer.unshift(S):i.buffer.push(S),i.needReadable&&Q(n)),ee(n,i)}function K(n,i){var S;return!y(i)&&typeof i!="string"&&i!==void 0&&!n.objectMode&&(S=new j("chunk",["string","Buffer","Uint8Array"],i)),S}C.prototype.isPaused=function(){return this._readableState.flowing===!1},C.prototype.setEncoding=function(n){b||(b=wr().StringDecoder);var i=new b(n);this._readableState.decoder=i,this._readableState.encoding=this._readableState.decoder.encoding;for(var S=this._readableState.buffer.head,F="";S!==null;)F+=i.write(S.data),S=S.next;return this._readableState.buffer.clear(),F!==""&&this._readableState.buffer.push(F),this._readableState.length=F.length,this};var J=1073741824;function re(n){return n>=J?n=J:(n--,n|=n>>>1,n|=n>>>2,n|=n>>>4,n|=n>>>8,n|=n>>>16,n++),n}function ne(n,i){return n<=0||i.length===0&&i.ended?0:i.objectMode?1:n!==n?i.flowing&&i.length?i.buffer.head.data.length:i.length:(n>i.highWaterMark&&(i.highWaterMark=re(n)),n<=i.length?n:i.ended?i.length:(i.needReadable=!0,0))}C.prototype.read=function(n){d("read",n),n=parseInt(n,10);var i=this._readableState,S=n;if(n!==0&&(i.emittedReadable=!1),n===0&&i.needReadable&&((i.highWaterMark!==0?i.length>=i.highWaterMark:i.length>0)||i.ended))return d("read: emitReadable",i.length,i.ended),i.length===0&&i.ended?w(this):Q(this),null;if(n=ne(n,i),n===0&&i.ended)return i.length===0&&w(this),null;var F=i.needReadable;d("need readable",F),(i.length===0||i.length-n0?q=c(n,i):q=null,q===null?(i.needReadable=i.length<=i.highWaterMark,n=0):(i.length-=n,i.awaitDrain=0),i.length===0&&(i.ended||(i.needReadable=!0),S!==n&&i.ended&&w(this)),q!==null&&this.emit("data",q),q};function X(n,i){if(d("onEofChunk"),!i.ended){if(i.decoder){var S=i.decoder.end();S&&S.length&&(i.buffer.push(S),i.length+=i.objectMode?1:S.length)}i.ended=!0,i.sync?Q(n):(i.needReadable=!1,i.emittedReadable||(i.emittedReadable=!0,ie(n)))}}function Q(n){var i=n._readableState;d("emitReadable",i.needReadable,i.emittedReadable),i.needReadable=!1,i.emittedReadable||(d("emitReadable",i.flowing),i.emittedReadable=!0,U.nextTick(ie,n))}function ie(n){var i=n._readableState;d("emitReadable_",i.destroyed,i.length,i.ended),!i.destroyed&&(i.length||i.ended)&&(n.emit("readable"),i.emittedReadable=!1),i.needReadable=!i.flowing&&!i.ended&&i.length<=i.highWaterMark,s(n)}function ee(n,i){i.readingMore||(i.readingMore=!0,U.nextTick(z,n,i))}function z(n,i){for(;!i.reading&&!i.ended&&(i.length1&&B(F.pipes,n)!==-1)&&!Pe&&(d("false write response, pause",F.awaitDrain),F.awaitDrain++),S.pause())}function Ge(le){d("onerror",le),_e(),n.removeListener("error",Ge),e(n,"error")===0&&N(n,le)}W(n,"error",Ge);function Ve(){n.removeListener("finish",ze),_e()}n.once("close",Ve);function ze(){d("onfinish"),n.removeListener("close",Ve),_e()}n.once("finish",ze);function _e(){d("unpipe"),S.unpipe(n)}return n.emit("pipe",S),F.flowing||(d("pipe resume"),S.resume()),n};function oe(n){return function(){var S=n._readableState;d("pipeOnDrain",S.awaitDrain),S.awaitDrain&&S.awaitDrain--,S.awaitDrain===0&&e(n,"data")&&(S.flowing=!0,s(n))}}C.prototype.unpipe=function(n){var i=this._readableState,S={hasUnpiped:!1};if(i.pipesCount===0)return this;if(i.pipesCount===1)return n&&n!==i.pipes?this:(n||(n=i.pipes),i.pipes=null,i.pipesCount=0,i.flowing=!1,n&&n.emit("unpipe",this,S),this);if(!n){var F=i.pipes,q=i.pipesCount;i.pipes=null,i.pipesCount=0,i.flowing=!1;for(var $=0;$0,F.flowing!==!1&&this.resume()):n==="readable"&&!F.endEmitted&&!F.readableListening&&(F.readableListening=F.needReadable=!0,F.flowing=!1,F.emittedReadable=!1,d("on readable",F.length,F.reading),F.length?Q(this):F.reading||U.nextTick(h,this)),S},C.prototype.addListener=C.prototype.on,C.prototype.removeListener=function(n,i){var S=r.prototype.removeListener.call(this,n,i);return n==="readable"&&U.nextTick(te,this),S},C.prototype.removeAllListeners=function(n){var i=r.prototype.removeAllListeners.apply(this,arguments);return(n==="readable"||n===void 0)&&U.nextTick(te,this),i};function te(n){var i=n._readableState;i.readableListening=n.listenerCount("readable")>0,i.resumeScheduled&&!i.paused?i.flowing=!0:n.listenerCount("data")>0&&n.resume()}function h(n){d("readable nexttick read 0"),n.read(0)}C.prototype.resume=function(){var n=this._readableState;return n.flowing||(d("resume"),n.flowing=!n.readableListening,m(this,n)),n.paused=!1,this};function m(n,i){i.resumeScheduled||(i.resumeScheduled=!0,U.nextTick(T,n,i))}function T(n,i){d("resume",i.reading),i.reading||n.read(0),i.resumeScheduled=!1,n.emit("resume"),s(n),i.flowing&&!i.reading&&n.read(0)}C.prototype.pause=function(){return d("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(d("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function s(n){var i=n._readableState;for(d("flow",i.flowing);i.flowing&&n.read()!==null;);}C.prototype.wrap=function(n){var i=this,S=this._readableState,F=!1;n.on("end",function(){if(d("wrapped end"),S.decoder&&!S.ended){var x=S.decoder.end();x&&x.length&&i.push(x)}i.push(null)}),n.on("data",function(x){if(d("wrapped data"),S.decoder&&(x=S.decoder.write(x)),!(S.objectMode&&x==null)&&!(!S.objectMode&&(!x||!x.length))){var ae=i.push(x);ae||(F=!0,n.pause())}});for(var q in n)this[q]===void 0&&typeof n[q]=="function"&&(this[q]=function(ae){return function(){return n[ae].apply(n,arguments)}}(q));for(var $=0;$=i.length?(i.decoder?S=i.buffer.join(""):i.buffer.length===1?S=i.buffer.first():S=i.buffer.concat(i.length),i.buffer.clear()):S=i.buffer.consume(n,i.decoder),S}function w(n){var i=n._readableState;d("endReadable",i.endEmitted),i.endEmitted||(i.ended=!0,U.nextTick(L,i,n))}function L(n,i){if(d("endReadableNT",n.endEmitted,n.length),!n.endEmitted&&n.length===0&&(n.endEmitted=!0,i.readable=!1,i.emit("end"),n.autoDestroy)){var S=i._writableState;(!S||S.autoDestroy&&S.finished)&&i.destroy()}}typeof Symbol=="function"&&(C.from=function(n,i){return M===void 0&&(M=mo()),M(C,n,i)});function B(n,i){for(var S=0,F=n.length;S0;return f(b,M,N,function(D){v||(v=D),D&&o.forEach(d),!M&&(o.forEach(d),u(v))})});return P.reduce(g)}return At=R,At}var ln=Z,qt=Bt.EventEmitter,Eo=se;Eo(Z,qt);Z.Readable=un();Z.Writable=fn();Z.Duplex=we();Z.Transform=sn();Z.PassThrough=_o();Z.finished=Wt();Z.pipeline=So();Z.Stream=Z;function Z(){qt.call(this)}Z.prototype.pipe=function(t,e){var r=this;function a(O){t.writable&&t.write(O)===!1&&r.pause&&r.pause()}r.on("data",a);function p(){r.readable&&r.resume&&r.resume()}t.on("drain",p),!t._isStdio&&(!e||e.end!==!1)&&(r.on("end",y),r.on("close",f));var l=!1;function y(){l||(l=!0,t.end())}function f(){l||(l=!0,typeof t.destroy=="function"&&t.destroy())}function d(O){if(g(),qt.listenerCount(this,"error")===0)throw O}r.on("error",d),t.on("error",d);function g(){r.removeListener("data",a),t.removeListener("drain",p),r.removeListener("end",y),r.removeListener("close",f),r.removeListener("error",d),t.removeListener("error",d),r.removeListener("end",g),r.removeListener("close",g),t.removeListener("close",g)}return r.on("end",g),r.on("close",g),t.on("close",g),t.emit("pipe",r),t};const Po=dn(ln),Pr=Tr(pn);(function(t){var e=ln,r=We,a=Pr,p=Pr,l=r.debuglog("net"),y={protocol:window.location.protocol=="https:"?"wss":"ws",hostname:window.location.hostname,port:window.location.port,path:"/api/vm/net"};function f(){return y}function d(){var u=f().hostname;return f().port&&(u+=":"+f().port),u}function g(){return f().protocol+"://"+d()}t.setProxy=function(u){u=u||{},u.protocol&&(y.protocol=u.protocol),u.hostname&&(y.hostname=u.hostname),u.port&&(y.port=u.port),u.path&&(y.path=u.path)},t.createServer=function(){throw new Error("Cannot create server in a browser")},t.connect=t.createConnection=function(){var u=E(arguments);l("createConnection",u);var v=new P(u[0]);return P.prototype.connect.apply(v,u)};function O(u){return(u=Number(u))>=0?u:!1}function R(u){return r.isString(u)&&O(u)===!1}function E(u){var v={};r.isObject(u[0])?v=u[0]:R(u[0])?v.path=u[0]:(v.port=u[0],r.isString(u[1])&&(v.host=u[1]));var o=u[u.length-1];return r.isFunction(o)?[v,o]:[v]}t._normalizeConnectArgs=E;function P(u){if(!(this instanceof P))return new P(u);this._connecting=!1,this._host=null,r.isNumber(u)?u={fd:u}:r.isUndefined(u)&&(u={}),e.Duplex.call(this,u),this.readable=this.writable=!1,this._writableState.decodeStrings=!1,this.allowHalfOpen=u&&u.allowHalfOpen||!1}r.inherits(P,e.Duplex),t.Socket=P,t.Stream=P,P.prototype.listen=function(){throw new Error("Cannot listen in a browser")},P.prototype.setTimeout=function(u,v){u>0&&isFinite(u)?(a.enroll(this,u),v&&this.once("timeout",v)):u===0&&(a.unenroll(this),v&&this.removeListener("timeout",v))},P.prototype._onTimeout=function(){l("_onTimeout"),this.emit("timeout")},P.prototype.setNoDelay=function(u){},P.prototype.setKeepAlive=function(u,v){},P.prototype.address=function(){return{address:this.remoteAddress,port:this.remotePort,family:this.remoteFamily}},Object.defineProperty(P.prototype,"readyState",{get:function(){return this._connecting?"opening":this.readable&&this.writable?"open":this.readable&&!this.writable?"readOnly":!this.readable&&this.writable?"writeOnly":"closed"}}),P.prototype.bufferSize=void 0,P.prototype._read=function(){},P.prototype.end=function(u,v){e.Duplex.prototype.end.call(this,u,v),this.writable=!1,this._ws&&this._ws.close(),this.readable&&!this._readableState.endEmitted?this.read(0):j(this)};function j(u){!u.readable&&!u.writable&&!u.destroyed&&!u._connecting&&!u._writableState.length&&u.destroy()}P.prototype.destroySoon=function(){this.writable&&this.end(),this._writableState.finished?this.destroy():this.once("finish",this.destroy)},P.prototype.destroy=function(u){l("destroy",u),!this.destroyed&&(this._connecting=!1,this.readable=this.writable=!1,a.unenroll(this),l("close"),this.destroyed=!0)},P.prototype.remoteAddress=null,P.prototype.remoteFamily=null,P.prototype.remotePort=null,P.prototype.localAddress=null,P.prototype.localPort=null,P.prototype.bytesRead=0,P.prototype.bytesWritten=0,P.prototype._write=function(u,v,o){var b=this;if(o=o||function(){},this._connecting){this._pendingData=u,this._pendingEncoding=v,this.once("connect",function(){this._write(u,v,o)});return}this._pendingData=null,this._pendingEncoding="",v=="binary"&&typeof u=="string"&&(u=new Ke(u,v)),this._ws.send(u),U.nextTick(function(){b.bytesWritten+=u.length,o()})},P.prototype.write=function(u,v,o){if(!r.isString(u)&&!r.isBuffer(u))throw new TypeError("invalid data");return e.Duplex.prototype.write.apply(this,arguments)},P.prototype.connect=function(u,v){var o=this;if(!r.isObject(u)){var b=E(arguments);return P.prototype.connect.apply(this,b)}if(v=v||function(){},this.write!==P.prototype.write&&(this.write=P.prototype.write),u.path)throw new Error("options.path not supported in the browser");o._connecting=!0,o.writable=!0,o._host=u.host;var A=p.request({hostname:f().hostname,port:f().port,path:f().path+"/connect",method:"POST"},function(M){var N="";M.on("data",function(D){N+=D}),M.on("end",function(){var D=null;try{D=JSON.parse(N)}catch{D={code:M.statusCode,error:N}}if(D.error){o.emit("error","Cannot open TCP connection ["+M.statusCode+"]: "+D.error),o.destroy();return}o.remoteAddress=D.remote.address,o.remoteFamily=D.remote.family,o.remotePort=D.remote.port,o._connectWebSocket(D.token,function(W){if(W){v(W);return}v()})})});return A.setHeader("Content-Type","application/json"),A.write(JSON.stringify(u)),A.end(),this},P.prototype._connectWebSocket=function(u,v){var o=this;if(o._ws){U.nextTick(function(){v()});return}this._ws=new WebSocket(g()+f().path+"/socket?token="+u),this._handleWebsocket(),v&&o.on("connect",v)},P.prototype._handleWebsocket=function(){var u=this;this._ws.addEventListener("open",function(){u._connecting=!1,u.readable=!0,u.emit("connect"),u.read(0)}),this._ws.addEventListener("error",function(v){console.warn("TCP error",v),u.emit("error","An error occured with the WebSocket")}),this._ws.addEventListener("message",function(v){var o=v.data,b=function(N){u.bytesRead+=N.length,u.push(N)};if(typeof o=="string"){var A=new Ke(o);b(A)}else if(window.Blob&&o instanceof Blob){var M=new FileReader;M.addEventListener("load",function(N){var D=M.result,W=new Uint8Array(D);b(new Ke(W))}),M.readAsArrayBuffer(o)}else console.warn("Cannot read TCP stream: unsupported message type",o)}),this._ws.addEventListener("close",function(){u.readyState=="open"&&u.destroy()})},t.isIP=function(u){return t.isIPv4(u)?4:t.isIPv6(u)?6:0},t.isIPv4=function(u){return/^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/.test(u)},t.isIPv6=function(u){return/^(([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))$/.test(u)}})(yn);export{Po as S,$t as a,yn as b,ao as c,vi as d,ln as e,Ti as f,It as g,bi as h,Oo as o,Pr as r,Ur as s,qe as t,We as u}; diff --git a/apps/cli/frontend/assets/index-Cwxmhbah.js b/apps/cli/frontend/assets/index-BhSIrZNS.js similarity index 62% rename from apps/cli/frontend/assets/index-Cwxmhbah.js rename to apps/cli/frontend/assets/index-BhSIrZNS.js index e75c2c63..0493307e 100644 --- a/apps/cli/frontend/assets/index-Cwxmhbah.js +++ b/apps/cli/frontend/assets/index-BhSIrZNS.js @@ -1,4 +1,4 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/page-DM9UFWLS.js","assets/SimpleGridForm-BSgnTFpm.js","assets/index-DXVpcjR6.js","assets/browser-DwyAv24f.js","assets/__vite-browser-external-v7f2oYTb.js","assets/index-BKGPlAjh.js","assets/index-DZI28g-8.js","assets/index-Bf-Lt9C8.js","assets/page-DGkmv9Vg.js"])))=>i.map(i=>d[i]); +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/page-C96kGya-.js","assets/SimpleGridForm-meB6c23h.js","assets/index-DavaislI.js","assets/browser-CuULstjh.js","assets/__vite-browser-external-v7f2oYTb.js","assets/index-XMXjzZPd.js","assets/index-sM8OKwYn.js","assets/index-CKZfFxrD.js","assets/page-DNHz__vQ.js"])))=>i.map(i=>d[i]); function Lee(d,e){for(var t=0;ts[i]})}}}return Object.freeze(Object.defineProperty(d,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 kc=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function eT(d){return d&&d.__esModule&&Object.prototype.hasOwnProperty.call(d,"default")?d.default:d}function uWe(d){if(d.__esModule)return d;var e=d.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(d).forEach(function(s){var i=Object.getOwnPropertyDescriptor(d,s);Object.defineProperty(t,s,i.get?i:{enumerable:!0,get:function(){return d[s]}})}),t}var ZF={exports:{}},tT={},JF={exports:{}},ws={};/** * @license React * react.production.min.js @@ -23,7 +23,7 @@ function Lee(d,e){for(var t=0;t>>1,Q=Y[te];if(0>>1;tei(oe,Z))mei(le,oe)?(Y[te]=le,Y[me]=Z,te=me):(Y[te]=oe,Y[ne]=Z,te=ne);else if(mei(le,Z))Y[te]=le,Y[me]=Z,te=me;else break e}}return X}function i(Y,X){var Z=Y.sortIndex-X.sortIndex;return Z!==0?Z:Y.id-X.id}if(typeof performance=="object"&&typeof performance.now=="function"){var n=performance;d.unstable_now=function(){return n.now()}}else{var r=Date,a=r.now();d.unstable_now=function(){return r.now()-a}}var o=[],c=[],u=1,h=null,l=3,f=!1,p=!1,m=!1,g=typeof setTimeout=="function"?setTimeout:null,y=typeof clearTimeout=="function"?clearTimeout:null,w=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function b(Y){for(var X=t(c);X!==null;){if(X.callback===null)s(c);else if(X.startTime<=Y)s(c),X.sortIndex=X.expirationTime,e(o,X);else break;X=t(c)}}function S(Y){if(m=!1,b(Y),!p)if(t(o)!==null)p=!0,z(v);else{var X=t(c);X!==null&&J(S,X.startTime-Y)}}function v(Y,X){p=!1,m&&(m=!1,y(_),_=-1),f=!0;var Z=l;try{for(b(X),h=t(o);h!==null&&(!(h.expirationTime>X)||Y&&!R());){var te=h.callback;if(typeof te=="function"){h.callback=null,l=h.priorityLevel;var Q=te(h.expirationTime<=X);X=d.unstable_now(),typeof Q=="function"?h.callback=Q:h===t(o)&&s(o),b(X)}else s(o);h=t(o)}if(h!==null)var ie=!0;else{var ne=t(c);ne!==null&&J(S,ne.startTime-X),ie=!1}return ie}finally{h=null,l=Z,f=!1}}var C=!1,M=null,_=-1,N=5,A=-1;function R(){return!(d.unstable_now()-AY||125te?(Y.sortIndex=Z,e(c,Y),t(o)===null&&Y===t(c)&&(m?(y(_),_=-1):m=!0,J(S,Z-te))):(Y.sortIndex=Q,e(o,Y),p||f||(p=!0,z(v))),Y},d.unstable_shouldYield=R,d.unstable_wrapCallback=function(Y){var X=l;return function(){var Z=l;l=X;try{return Y.apply(this,arguments)}finally{l=Z}}}})(h4);u4.exports=h4;var ete=u4.exports;/** + */(function(d){function e(Y,X){var Z=Y.length;Y.push(X);e:for(;0>>1,Q=Y[te];if(0>>1;tei(oe,Z))mei(fe,oe)?(Y[te]=fe,Y[me]=Z,te=me):(Y[te]=oe,Y[ne]=Z,te=ne);else if(mei(fe,Z))Y[te]=fe,Y[me]=Z,te=me;else break e}}return X}function i(Y,X){var Z=Y.sortIndex-X.sortIndex;return Z!==0?Z:Y.id-X.id}if(typeof performance=="object"&&typeof performance.now=="function"){var n=performance;d.unstable_now=function(){return n.now()}}else{var r=Date,a=r.now();d.unstable_now=function(){return r.now()-a}}var o=[],c=[],u=1,h=null,l=3,f=!1,p=!1,m=!1,g=typeof setTimeout=="function"?setTimeout:null,y=typeof clearTimeout=="function"?clearTimeout:null,w=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function b(Y){for(var X=t(c);X!==null;){if(X.callback===null)s(c);else if(X.startTime<=Y)s(c),X.sortIndex=X.expirationTime,e(o,X);else break;X=t(c)}}function S(Y){if(m=!1,b(Y),!p)if(t(o)!==null)p=!0,z(v);else{var X=t(c);X!==null&&J(S,X.startTime-Y)}}function v(Y,X){p=!1,m&&(m=!1,y(_),_=-1),f=!0;var Z=l;try{for(b(X),h=t(o);h!==null&&(!(h.expirationTime>X)||Y&&!R());){var te=h.callback;if(typeof te=="function"){h.callback=null,l=h.priorityLevel;var Q=te(h.expirationTime<=X);X=d.unstable_now(),typeof Q=="function"?h.callback=Q:h===t(o)&&s(o),b(X)}else s(o);h=t(o)}if(h!==null)var ie=!0;else{var ne=t(c);ne!==null&&J(S,ne.startTime-X),ie=!1}return ie}finally{h=null,l=Z,f=!1}}var C=!1,M=null,_=-1,N=5,A=-1;function R(){return!(d.unstable_now()-AY||125te?(Y.sortIndex=Z,e(c,Y),t(o)===null&&Y===t(c)&&(m?(y(_),_=-1):m=!0,J(S,Z-te))):(Y.sortIndex=Q,e(o,Y),p||f||(p=!0,z(v))),Y},d.unstable_shouldYield=R,d.unstable_wrapCallback=function(Y){var X=l;return function(){var Z=l;l=X;try{return Y.apply(this,arguments)}finally{l=Z}}}})(h4);u4.exports=h4;var ete=u4.exports;/** * @license React * react-dom.production.min.js * @@ -31,14 +31,14 @@ function Lee(d,e){for(var t=0;t"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),_C=Object.prototype.hasOwnProperty,ste=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,SR={},vR={};function ite(d){return _C.call(vR,d)?!0:_C.call(SR,d)?!1:ste.test(d)?vR[d]=!0:(SR[d]=!0,!1)}function nte(d,e,t,s){if(t!==null&&t.type===0)return!1;switch(typeof e){case"function":case"symbol":return!0;case"boolean":return s?!1:t!==null?!t.acceptsBooleans:(d=d.toLowerCase().slice(0,5),d!=="data-"&&d!=="aria-");default:return!1}}function rte(d,e,t,s){if(e===null||typeof e>"u"||nte(d,e,t,s))return!0;if(s)return!1;if(t!==null)switch(t.type){case 3:return!e;case 4:return e===!1;case 5:return isNaN(e);case 6:return isNaN(e)||1>e}return!1}function Sr(d,e,t,s,i,n,r){this.acceptsBooleans=e===2||e===3||e===4,this.attributeName=s,this.attributeNamespace=i,this.mustUseProperty=t,this.propertyName=d,this.type=e,this.sanitizeURL=n,this.removeEmptyString=r}var Wn={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(d){Wn[d]=new Sr(d,0,!1,d,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(d){var e=d[0];Wn[e]=new Sr(e,1,!1,d[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(d){Wn[d]=new Sr(d,2,!1,d.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(d){Wn[d]=new Sr(d,2,!1,d,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(d){Wn[d]=new Sr(d,3,!1,d.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(d){Wn[d]=new Sr(d,3,!0,d,null,!1,!1)});["capture","download"].forEach(function(d){Wn[d]=new Sr(d,4,!1,d,null,!1,!1)});["cols","rows","size","span"].forEach(function(d){Wn[d]=new Sr(d,6,!1,d,null,!1,!1)});["rowSpan","start"].forEach(function(d){Wn[d]=new Sr(d,5,!1,d.toLowerCase(),null,!1,!1)});var n_=/[\-:]([a-z])/g;function r_(d){return d[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(d){var e=d.replace(n_,r_);Wn[e]=new Sr(e,1,!1,d,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(d){var e=d.replace(n_,r_);Wn[e]=new Sr(e,1,!1,d,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(d){var e=d.replace(n_,r_);Wn[e]=new Sr(e,1,!1,d,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(d){Wn[d]=new Sr(d,1,!1,d.toLowerCase(),null,!1,!1)});Wn.xlinkHref=new Sr("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(d){Wn[d]=new Sr(d,1,!1,d.toLowerCase(),null,!0,!0)});function a_(d,e,t,s){var i=Wn.hasOwnProperty(e)?Wn[e]:null;(i!==null?i.type!==0:s||!(2"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),_C=Object.prototype.hasOwnProperty,ste=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,SR={},vR={};function ite(d){return _C.call(vR,d)?!0:_C.call(SR,d)?!1:ste.test(d)?vR[d]=!0:(SR[d]=!0,!1)}function nte(d,e,t,s){if(t!==null&&t.type===0)return!1;switch(typeof e){case"function":case"symbol":return!0;case"boolean":return s?!1:t!==null?!t.acceptsBooleans:(d=d.toLowerCase().slice(0,5),d!=="data-"&&d!=="aria-");default:return!1}}function rte(d,e,t,s){if(e===null||typeof e>"u"||nte(d,e,t,s))return!0;if(s)return!1;if(t!==null)switch(t.type){case 3:return!e;case 4:return e===!1;case 5:return isNaN(e);case 6:return isNaN(e)||1>e}return!1}function Sr(d,e,t,s,i,n,r){this.acceptsBooleans=e===2||e===3||e===4,this.attributeName=s,this.attributeNamespace=i,this.mustUseProperty=t,this.propertyName=d,this.type=e,this.sanitizeURL=n,this.removeEmptyString=r}var Wn={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(d){Wn[d]=new Sr(d,0,!1,d,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(d){var e=d[0];Wn[e]=new Sr(e,1,!1,d[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(d){Wn[d]=new Sr(d,2,!1,d.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(d){Wn[d]=new Sr(d,2,!1,d,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(d){Wn[d]=new Sr(d,3,!1,d.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(d){Wn[d]=new Sr(d,3,!0,d,null,!1,!1)});["capture","download"].forEach(function(d){Wn[d]=new Sr(d,4,!1,d,null,!1,!1)});["cols","rows","size","span"].forEach(function(d){Wn[d]=new Sr(d,6,!1,d,null,!1,!1)});["rowSpan","start"].forEach(function(d){Wn[d]=new Sr(d,5,!1,d.toLowerCase(),null,!1,!1)});var n_=/[\-:]([a-z])/g;function r_(d){return d[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(d){var e=d.replace(n_,r_);Wn[e]=new Sr(e,1,!1,d,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(d){var e=d.replace(n_,r_);Wn[e]=new Sr(e,1,!1,d,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(d){var e=d.replace(n_,r_);Wn[e]=new Sr(e,1,!1,d,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(d){Wn[d]=new Sr(d,1,!1,d.toLowerCase(),null,!1,!1)});Wn.xlinkHref=new Sr("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(d){Wn[d]=new Sr(d,1,!1,d.toLowerCase(),null,!0,!0)});function a_(d,e,t,s){var i=Wn.hasOwnProperty(e)?Wn[e]:null;(i!==null?i.type!==0:s||!(2a||i[r]!==n[a]){var o=` -`+i[r].replace(" at new "," at ");return d.displayName&&o.includes("")&&(o=o.replace("",d.displayName)),o}while(1<=r&&0<=a);break}}}finally{OP=!1,Error.prepareStackTrace=t}return(d=d?d.displayName||d.name:"")?Ty(d):""}function ate(d){switch(d.tag){case 5:return Ty(d.type);case 16:return Ty("Lazy");case 13:return Ty("Suspense");case 19:return Ty("SuspenseList");case 0:case 2:case 15:return d=xP(d.type,!1),d;case 11:return d=xP(d.type.render,!1),d;case 1:return d=xP(d.type,!0),d;default:return""}}function NC(d){if(d==null)return null;if(typeof d=="function")return d.displayName||d.name||null;if(typeof d=="string")return d;switch(d){case vp:return"Fragment";case Sp:return"Portal";case AC:return"Profiler";case o_:return"StrictMode";case LC:return"Suspense";case BC:return"SuspenseList"}if(typeof d=="object")switch(d.$$typeof){case p4:return(d.displayName||"Context")+".Consumer";case f4:return(d._context.displayName||"Context")+".Provider";case d_:var e=d.render;return d=d.displayName,d||(d=e.displayName||e.name||"",d=d!==""?"ForwardRef("+d+")":"ForwardRef"),d;case c_:return e=d.displayName||null,e!==null?e:NC(d.type)||"Memo";case Eu:e=d._payload,d=d._init;try{return NC(d(e))}catch{}}return null}function ote(d){var e=d.type;switch(d.tag){case 24:return"Cache";case 9:return(e.displayName||"Context")+".Consumer";case 10:return(e._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return d=e.render,d=d.displayName||d.name||"",e.displayName||(d!==""?"ForwardRef("+d+")":"ForwardRef");case 7:return"Fragment";case 5:return e;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return NC(e);case 8:return e===o_?"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 e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e}return null}function yh(d){switch(typeof d){case"boolean":case"number":case"string":case"undefined":return d;case"object":return d;default:return""}}function g4(d){var e=d.type;return(d=d.nodeName)&&d.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function dte(d){var e=g4(d)?"checked":"value",t=Object.getOwnPropertyDescriptor(d.constructor.prototype,e),s=""+d[e];if(!d.hasOwnProperty(e)&&typeof t<"u"&&typeof t.get=="function"&&typeof t.set=="function"){var i=t.get,n=t.set;return Object.defineProperty(d,e,{configurable:!0,get:function(){return i.call(this)},set:function(r){s=""+r,n.call(this,r)}}),Object.defineProperty(d,e,{enumerable:t.enumerable}),{getValue:function(){return s},setValue:function(r){s=""+r},stopTracking:function(){d._valueTracker=null,delete d[e]}}}}function Fk(d){d._valueTracker||(d._valueTracker=dte(d))}function y4(d){if(!d)return!1;var e=d._valueTracker;if(!e)return!0;var t=e.getValue(),s="";return d&&(s=g4(d)?d.checked?"true":"false":d.value),d=s,d!==t?(e.setValue(d),!0):!1}function I1(d){if(d=d||(typeof document<"u"?document:void 0),typeof d>"u")return null;try{return d.activeElement||d.body}catch{return d.body}}function EC(d,e){var t=e.checked;return Ai({},e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:t??d._wrapperState.initialChecked})}function OR(d,e){var t=e.defaultValue==null?"":e.defaultValue,s=e.checked!=null?e.checked:e.defaultChecked;t=yh(e.value!=null?e.value:t),d._wrapperState={initialChecked:s,initialValue:t,controlled:e.type==="checkbox"||e.type==="radio"?e.checked!=null:e.value!=null}}function w4(d,e){e=e.checked,e!=null&&a_(d,"checked",e,!1)}function RC(d,e){w4(d,e);var t=yh(e.value),s=e.type;if(t!=null)s==="number"?(t===0&&d.value===""||d.value!=t)&&(d.value=""+t):d.value!==""+t&&(d.value=""+t);else if(s==="submit"||s==="reset"){d.removeAttribute("value");return}e.hasOwnProperty("value")?DC(d,e.type,t):e.hasOwnProperty("defaultValue")&&DC(d,e.type,yh(e.defaultValue)),e.checked==null&&e.defaultChecked!=null&&(d.defaultChecked=!!e.defaultChecked)}function xR(d,e,t){if(e.hasOwnProperty("value")||e.hasOwnProperty("defaultValue")){var s=e.type;if(!(s!=="submit"&&s!=="reset"||e.value!==void 0&&e.value!==null))return;e=""+d._wrapperState.initialValue,t||e===d.value||(d.value=e),d.defaultValue=e}t=d.name,t!==""&&(d.name=""),d.defaultChecked=!!d._wrapperState.initialChecked,t!==""&&(d.name=t)}function DC(d,e,t){(e!=="number"||I1(d.ownerDocument)!==d)&&(t==null?d.defaultValue=""+d._wrapperState.initialValue:d.defaultValue!==""+t&&(d.defaultValue=""+t))}var Oy=Array.isArray;function zp(d,e,t,s){if(d=d.options,e){e={};for(var i=0;i"+e.valueOf().toString()+"",e=Hk.firstChild;d.firstChild;)d.removeChild(d.firstChild);for(;e.firstChild;)d.appendChild(e.firstChild)}});function b0(d,e){if(e){var t=d.firstChild;if(t&&t===d.lastChild&&t.nodeType===3){t.nodeValue=e;return}}d.textContent=e}var Fy={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},cte=["Webkit","ms","Moz","O"];Object.keys(Fy).forEach(function(d){cte.forEach(function(e){e=e+d.charAt(0).toUpperCase()+d.substring(1),Fy[e]=Fy[d]})});function v4(d,e,t){return e==null||typeof e=="boolean"||e===""?"":t||typeof e!="number"||e===0||Fy.hasOwnProperty(d)&&Fy[d]?(""+e).trim():e+"px"}function T4(d,e){d=d.style;for(var t in e)if(e.hasOwnProperty(t)){var s=t.indexOf("--")===0,i=v4(t,e[t],s);t==="float"&&(t="cssFloat"),s?d.setProperty(t,i):d[t]=i}}var ute=Ai({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 FC(d,e){if(e){if(ute[d]&&(e.children!=null||e.dangerouslySetInnerHTML!=null))throw Error(rt(137,d));if(e.dangerouslySetInnerHTML!=null){if(e.children!=null)throw Error(rt(60));if(typeof e.dangerouslySetInnerHTML!="object"||!("__html"in e.dangerouslySetInnerHTML))throw Error(rt(61))}if(e.style!=null&&typeof e.style!="object")throw Error(rt(62))}}function HC(d,e){if(d.indexOf("-")===-1)return typeof e.is=="string";switch(d){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 GC=null;function u_(d){return d=d.target||d.srcElement||window,d.correspondingUseElement&&(d=d.correspondingUseElement),d.nodeType===3?d.parentNode:d}var UC=null,$p=null,Kp=null;function CR(d){if(d=qw(d)){if(typeof UC!="function")throw Error(rt(280));var e=d.stateNode;e&&(e=aT(e),UC(d.stateNode,d.type,e))}}function O4(d){$p?Kp?Kp.push(d):Kp=[d]:$p=d}function x4(){if($p){var d=$p,e=Kp;if(Kp=$p=null,CR(d),e)for(d=0;d>>=0,d===0?32:31-(Ste(d)/vte|0)|0}var Gk=64,Uk=4194304;function xy(d){switch(d&-d){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 d&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return d&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return d}}function A1(d,e){var t=d.pendingLanes;if(t===0)return 0;var s=0,i=d.suspendedLanes,n=d.pingedLanes,r=t&268435455;if(r!==0){var a=r&~i;a!==0?s=xy(a):(n&=r,n!==0&&(s=xy(n)))}else r=t&~i,r!==0?s=xy(r):n!==0&&(s=xy(n));if(s===0)return 0;if(e!==0&&e!==s&&!(e&i)&&(i=s&-s,n=e&-e,i>=n||i===16&&(n&4194240)!==0))return e;if(s&4&&(s|=t&16),e=d.entangledLanes,e!==0)for(d=d.entanglements,e&=s;0t;t++)e.push(d);return e}function Rw(d,e,t){d.pendingLanes|=e,e!==536870912&&(d.suspendedLanes=0,d.pingedLanes=0),d=d.eventTimes,e=31-Do(e),d[e]=t}function Pte(d,e){var t=d.pendingLanes&~e;d.pendingLanes=e,d.suspendedLanes=0,d.pingedLanes=0,d.expiredLanes&=e,d.mutableReadLanes&=e,d.entangledLanes&=e,e=d.entanglements;var s=d.eventTimes;for(d=d.expirationTimes;0=Gy),DR=" ",qR=!1;function j4(d,e){switch(d){case"keyup":return ese.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function z4(d){return d=d.detail,typeof d=="object"&&"data"in d?d.data:null}var Tp=!1;function sse(d,e){switch(d){case"compositionend":return z4(e);case"keypress":return e.which!==32?null:(qR=!0,DR);case"textInput":return d=e.data,d===DR&&qR?null:d;default:return null}}function ise(d,e){if(Tp)return d==="compositionend"||!w_&&j4(d,e)?(d=U4(),FS=m_=Qu=null,Tp=!1,d):null;switch(d){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1=e)return{node:t,offset:e-d};d=s}e:{for(;t;){if(t.nextSibling){t=t.nextSibling;break e}t=t.parentNode}t=void 0}t=GR(t)}}function Q4(d,e){return d&&e?d===e?!0:d&&d.nodeType===3?!1:e&&e.nodeType===3?Q4(d,e.parentNode):"contains"in d?d.contains(e):d.compareDocumentPosition?!!(d.compareDocumentPosition(e)&16):!1:!1}function Y4(){for(var d=window,e=I1();e instanceof d.HTMLIFrameElement;){try{var t=typeof e.contentWindow.location.href=="string"}catch{t=!1}if(t)d=e.contentWindow;else break;e=I1(d.document)}return e}function b_(d){var e=d&&d.nodeName&&d.nodeName.toLowerCase();return e&&(e==="input"&&(d.type==="text"||d.type==="search"||d.type==="tel"||d.type==="url"||d.type==="password")||e==="textarea"||d.contentEditable==="true")}function lse(d){var e=Y4(),t=d.focusedElem,s=d.selectionRange;if(e!==t&&t&&t.ownerDocument&&Q4(t.ownerDocument.documentElement,t)){if(s!==null&&b_(t)){if(e=s.start,d=s.end,d===void 0&&(d=e),"selectionStart"in t)t.selectionStart=e,t.selectionEnd=Math.min(d,t.value.length);else if(d=(e=t.ownerDocument||document)&&e.defaultView||window,d.getSelection){d=d.getSelection();var i=t.textContent.length,n=Math.min(s.start,i);s=s.end===void 0?n:Math.min(s.end,i),!d.extend&&n>s&&(i=s,s=n,n=i),i=UR(t,n);var r=UR(t,s);i&&r&&(d.rangeCount!==1||d.anchorNode!==i.node||d.anchorOffset!==i.offset||d.focusNode!==r.node||d.focusOffset!==r.offset)&&(e=e.createRange(),e.setStart(i.node,i.offset),d.removeAllRanges(),n>s?(d.addRange(e),d.extend(r.node,r.offset)):(e.setEnd(r.node,r.offset),d.addRange(e)))}}for(e=[],d=t;d=d.parentNode;)d.nodeType===1&&e.push({element:d,left:d.scrollLeft,top:d.scrollTop});for(typeof t.focus=="function"&&t.focus(),t=0;t=document.documentMode,Op=null,XC=null,Wy=null,QC=!1;function WR(d,e,t){var s=t.window===t?t.document:t.nodeType===9?t:t.ownerDocument;QC||Op==null||Op!==I1(s)||(s=Op,"selectionStart"in s&&b_(s)?s={start:s.selectionStart,end:s.selectionEnd}:(s=(s.ownerDocument&&s.ownerDocument.defaultView||window).getSelection(),s={anchorNode:s.anchorNode,anchorOffset:s.anchorOffset,focusNode:s.focusNode,focusOffset:s.focusOffset}),Wy&&x0(Wy,s)||(Wy=s,s=N1(XC,"onSelect"),0Ip||(d.current=sM[Ip],sM[Ip]=null,Ip--)}function ci(d,e){Ip++,sM[Ip]=d.current,d.current=e}var wh={},ir=Nh(wh),qr=Nh(!1),Hl=wh;function mm(d,e){var t=d.type.contextTypes;if(!t)return wh;var s=d.stateNode;if(s&&s.__reactInternalMemoizedUnmaskedChildContext===e)return s.__reactInternalMemoizedMaskedChildContext;var i={},n;for(n in t)i[n]=e[n];return s&&(d=d.stateNode,d.__reactInternalMemoizedUnmaskedChildContext=e,d.__reactInternalMemoizedMaskedChildContext=i),i}function Vr(d){return d=d.childContextTypes,d!=null}function R1(){pi(qr),pi(ir)}function YR(d,e,t){if(ir.current!==wh)throw Error(rt(168));ci(ir,e),ci(qr,t)}function a6(d,e,t){var s=d.stateNode;if(e=e.childContextTypes,typeof s.getChildContext!="function")return t;s=s.getChildContext();for(var i in s)if(!(i in e))throw Error(rt(108,ote(d)||"Unknown",i));return Ai({},t,s)}function D1(d){return d=(d=d.stateNode)&&d.__reactInternalMemoizedMergedChildContext||wh,Hl=ir.current,ci(ir,d),ci(qr,qr.current),!0}function ZR(d,e,t){var s=d.stateNode;if(!s)throw Error(rt(169));t?(d=a6(d,e,Hl),s.__reactInternalMemoizedMergedChildContext=d,pi(qr),pi(ir),ci(ir,d)):pi(qr),ci(qr,t)}var gc=null,oT=!1,VP=!1;function o6(d){gc===null?gc=[d]:gc.push(d)}function Ose(d){oT=!0,o6(d)}function Eh(){if(!VP&&gc!==null){VP=!0;var d=0,e=zs;try{var t=gc;for(zs=1;d>=r,i-=r,Ic=1<<32-Do(e)+i|t<_?(N=M,M=null):N=M.sibling;var A=l(y,M,b[_],S);if(A===null){M===null&&(M=N);break}d&&M&&A.alternate===null&&e(y,M),w=n(A,w,_),C===null?v=A:C.sibling=A,C=A,M=N}if(_===b.length)return t(y,M),bi&&ul(y,_),v;if(M===null){for(;__?(N=M,M=null):N=M.sibling;var R=l(y,M,A.value,S);if(R===null){M===null&&(M=N);break}d&&M&&R.alternate===null&&e(y,M),w=n(R,w,_),C===null?v=R:C.sibling=R,C=R,M=N}if(A.done)return t(y,M),bi&&ul(y,_),v;if(M===null){for(;!A.done;_++,A=b.next())A=h(y,A.value,S),A!==null&&(w=n(A,w,_),C===null?v=A:C.sibling=A,C=A);return bi&&ul(y,_),v}for(M=s(y,M);!A.done;_++,A=b.next())A=f(M,y,_,A.value,S),A!==null&&(d&&A.alternate!==null&&M.delete(A.key===null?_:A.key),w=n(A,w,_),C===null?v=A:C.sibling=A,C=A);return d&&M.forEach(function(D){return e(y,D)}),bi&&ul(y,_),v}function g(y,w,b,S){if(typeof b=="object"&&b!==null&&b.type===vp&&b.key===null&&(b=b.props.children),typeof b=="object"&&b!==null){switch(b.$$typeof){case Vk:e:{for(var v=b.key,C=w;C!==null;){if(C.key===v){if(v=b.type,v===vp){if(C.tag===7){t(y,C.sibling),w=i(C,b.props.children),w.return=y,y=w;break e}}else if(C.elementType===v||typeof v=="object"&&v!==null&&v.$$typeof===Eu&&tD(v)===C.type){t(y,C.sibling),w=i(C,b.props),w.ref=ty(y,C,b),w.return=y,y=w;break e}t(y,C);break}else e(y,C);C=C.sibling}b.type===vp?(w=El(b.props.children,y.mode,S,b.key),w.return=y,y=w):(S=KS(b.type,b.key,b.props,null,y.mode,S),S.ref=ty(y,w,b),S.return=y,y=S)}return r(y);case Sp:e:{for(C=b.key;w!==null;){if(w.key===C)if(w.tag===4&&w.stateNode.containerInfo===b.containerInfo&&w.stateNode.implementation===b.implementation){t(y,w.sibling),w=i(w,b.children||[]),w.return=y,y=w;break e}else{t(y,w);break}else e(y,w);w=w.sibling}w=$P(b,y.mode,S),w.return=y,y=w}return r(y);case Eu:return C=b._init,g(y,w,C(b._payload),S)}if(Oy(b))return p(y,w,b,S);if(Qg(b))return m(y,w,b,S);Qk(y,b)}return typeof b=="string"&&b!==""||typeof b=="number"?(b=""+b,w!==null&&w.tag===6?(t(y,w.sibling),w=i(w,b),w.return=y,y=w):(t(y,w),w=zP(b,y.mode,S),w.return=y,y=w),r(y)):t(y,w)}return g}var ym=h6(!0),l6=h6(!1),F1=Nh(null),H1=null,_p=null,T_=null;function O_(){T_=_p=H1=null}function x_(d){var e=F1.current;pi(F1),d._currentValue=e}function rM(d,e,t){for(;d!==null;){var s=d.alternate;if((d.childLanes&e)!==e?(d.childLanes|=e,s!==null&&(s.childLanes|=e)):s!==null&&(s.childLanes&e)!==e&&(s.childLanes|=e),d===t)break;d=d.return}}function Qp(d,e){H1=d,T_=_p=null,d=d.dependencies,d!==null&&d.firstContext!==null&&(d.lanes&e&&(Rr=!0),d.firstContext=null)}function oo(d){var e=d._currentValue;if(T_!==d)if(d={context:d,memoizedValue:e,next:null},_p===null){if(H1===null)throw Error(rt(308));_p=d,H1.dependencies={lanes:0,firstContext:d}}else _p=_p.next=d;return e}var vl=null;function P_(d){vl===null?vl=[d]:vl.push(d)}function f6(d,e,t,s){var i=e.interleaved;return i===null?(t.next=t,P_(e)):(t.next=i.next,i.next=t),e.interleaved=t,Gc(d,s)}function Gc(d,e){d.lanes|=e;var t=d.alternate;for(t!==null&&(t.lanes|=e),t=d,d=d.return;d!==null;)d.childLanes|=e,t=d.alternate,t!==null&&(t.childLanes|=e),t=d,d=d.return;return t.tag===3?t.stateNode:null}var Ru=!1;function I_(d){d.updateQueue={baseState:d.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function p6(d,e){d=d.updateQueue,e.updateQueue===d&&(e.updateQueue={baseState:d.baseState,firstBaseUpdate:d.firstBaseUpdate,lastBaseUpdate:d.lastBaseUpdate,shared:d.shared,effects:d.effects})}function Bc(d,e){return{eventTime:d,lane:e,tag:0,payload:null,callback:null,next:null}}function oh(d,e,t){var s=d.updateQueue;if(s===null)return null;if(s=s.shared,Is&2){var i=s.pending;return i===null?e.next=e:(e.next=i.next,i.next=e),s.pending=e,Gc(d,t)}return i=s.interleaved,i===null?(e.next=e,P_(s)):(e.next=i.next,i.next=e),s.interleaved=e,Gc(d,t)}function GS(d,e,t){if(e=e.updateQueue,e!==null&&(e=e.shared,(t&4194240)!==0)){var s=e.lanes;s&=d.pendingLanes,t|=s,e.lanes=t,l_(d,t)}}function sD(d,e){var t=d.updateQueue,s=d.alternate;if(s!==null&&(s=s.updateQueue,t===s)){var i=null,n=null;if(t=t.firstBaseUpdate,t!==null){do{var r={eventTime:t.eventTime,lane:t.lane,tag:t.tag,payload:t.payload,callback:t.callback,next:null};n===null?i=n=r:n=n.next=r,t=t.next}while(t!==null);n===null?i=n=e:n=n.next=e}else i=n=e;t={baseState:s.baseState,firstBaseUpdate:i,lastBaseUpdate:n,shared:s.shared,effects:s.effects},d.updateQueue=t;return}d=t.lastBaseUpdate,d===null?t.firstBaseUpdate=e:d.next=e,t.lastBaseUpdate=e}function G1(d,e,t,s){var i=d.updateQueue;Ru=!1;var n=i.firstBaseUpdate,r=i.lastBaseUpdate,a=i.shared.pending;if(a!==null){i.shared.pending=null;var o=a,c=o.next;o.next=null,r===null?n=c:r.next=c,r=o;var u=d.alternate;u!==null&&(u=u.updateQueue,a=u.lastBaseUpdate,a!==r&&(a===null?u.firstBaseUpdate=c:a.next=c,u.lastBaseUpdate=o))}if(n!==null){var h=i.baseState;r=0,u=c=o=null,a=n;do{var l=a.lane,f=a.eventTime;if((s&l)===l){u!==null&&(u=u.next={eventTime:f,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var p=d,m=a;switch(l=e,f=t,m.tag){case 1:if(p=m.payload,typeof p=="function"){h=p.call(f,h,l);break e}h=p;break e;case 3:p.flags=p.flags&-65537|128;case 0:if(p=m.payload,l=typeof p=="function"?p.call(f,h,l):p,l==null)break e;h=Ai({},h,l);break e;case 2:Ru=!0}}a.callback!==null&&a.lane!==0&&(d.flags|=64,l=i.effects,l===null?i.effects=[a]:l.push(a))}else f={eventTime:f,lane:l,tag:a.tag,payload:a.payload,callback:a.callback,next:null},u===null?(c=u=f,o=h):u=u.next=f,r|=l;if(a=a.next,a===null){if(a=i.shared.pending,a===null)break;l=a,a=l.next,l.next=null,i.lastBaseUpdate=l,i.shared.pending=null}}while(!0);if(u===null&&(o=h),i.baseState=o,i.firstBaseUpdate=c,i.lastBaseUpdate=u,e=i.shared.interleaved,e!==null){i=e;do r|=i.lane,i=i.next;while(i!==e)}else n===null&&(i.shared.lanes=0);Wl|=r,d.lanes=r,d.memoizedState=h}}function iD(d,e,t){if(d=e.effects,e.effects=null,d!==null)for(e=0;et?t:4,d(!0);var s=HP.transition;HP.transition={};try{d(!1),e()}finally{zs=t,HP.transition=s}}function A6(){return co().memoizedState}function Cse(d,e,t){var s=ch(d);if(t={lane:s,action:t,hasEagerState:!1,eagerState:null,next:null},L6(d))B6(e,t);else if(t=f6(d,e,t,s),t!==null){var i=yr();qo(t,d,s,i),N6(t,e,s)}}function Mse(d,e,t){var s=ch(d),i={lane:s,action:t,hasEagerState:!1,eagerState:null,next:null};if(L6(d))B6(e,i);else{var n=d.alternate;if(d.lanes===0&&(n===null||n.lanes===0)&&(n=e.lastRenderedReducer,n!==null))try{var r=e.lastRenderedState,a=n(r,t);if(i.hasEagerState=!0,i.eagerState=a,Go(a,r)){var o=e.interleaved;o===null?(i.next=i,P_(e)):(i.next=o.next,o.next=i),e.interleaved=i;return}}catch{}finally{}t=f6(d,e,i,s),t!==null&&(i=yr(),qo(t,d,s,i),N6(t,e,s))}}function L6(d){var e=d.alternate;return d===_i||e!==null&&e===_i}function B6(d,e){jy=W1=!0;var t=d.pending;t===null?e.next=e:(e.next=t.next,t.next=e),d.pending=e}function N6(d,e,t){if(t&4194240){var s=e.lanes;s&=d.pendingLanes,t|=s,e.lanes=t,l_(d,t)}}var j1={readContext:oo,useCallback:Qn,useContext:Qn,useEffect:Qn,useImperativeHandle:Qn,useInsertionEffect:Qn,useLayoutEffect:Qn,useMemo:Qn,useReducer:Qn,useRef:Qn,useState:Qn,useDebugValue:Qn,useDeferredValue:Qn,useTransition:Qn,useMutableSource:Qn,useSyncExternalStore:Qn,useId:Qn,unstable_isNewReconciler:!1},_se={readContext:oo,useCallback:function(d,e){return pd().memoizedState=[d,e===void 0?null:e],d},useContext:oo,useEffect:rD,useImperativeHandle:function(d,e,t){return t=t!=null?t.concat([d]):null,WS(4194308,4,P6.bind(null,e,d),t)},useLayoutEffect:function(d,e){return WS(4194308,4,d,e)},useInsertionEffect:function(d,e){return WS(4,2,d,e)},useMemo:function(d,e){var t=pd();return e=e===void 0?null:e,d=d(),t.memoizedState=[d,e],d},useReducer:function(d,e,t){var s=pd();return e=t!==void 0?t(e):e,s.memoizedState=s.baseState=e,d={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:d,lastRenderedState:e},s.queue=d,d=d.dispatch=Cse.bind(null,_i,d),[s.memoizedState,d]},useRef:function(d){var e=pd();return d={current:d},e.memoizedState=d},useState:nD,useDebugValue:E_,useDeferredValue:function(d){return pd().memoizedState=d},useTransition:function(){var d=nD(!1),e=d[0];return d=Ise.bind(null,d[1]),pd().memoizedState=d,[e,d]},useMutableSource:function(){},useSyncExternalStore:function(d,e,t){var s=_i,i=pd();if(bi){if(t===void 0)throw Error(rt(407));t=t()}else{if(t=e(),xn===null)throw Error(rt(349));Ul&30||w6(s,e,t)}i.memoizedState=t;var n={value:t,getSnapshot:e};return i.queue=n,rD(k6.bind(null,s,n,d),[d]),s.flags|=2048,B0(9,b6.bind(null,s,n,t,e),void 0,null),t},useId:function(){var d=pd(),e=xn.identifierPrefix;if(bi){var t=Cc,s=Ic;t=(s&~(1<<32-Do(s)-1)).toString(32)+t,e=":"+e+"R"+t,t=A0++,0")&&(o=o.replace("",d.displayName)),o}while(1<=r&&0<=a);break}}}finally{OP=!1,Error.prepareStackTrace=t}return(d=d?d.displayName||d.name:"")?Ty(d):""}function ate(d){switch(d.tag){case 5:return Ty(d.type);case 16:return Ty("Lazy");case 13:return Ty("Suspense");case 19:return Ty("SuspenseList");case 0:case 2:case 15:return d=xP(d.type,!1),d;case 11:return d=xP(d.type.render,!1),d;case 1:return d=xP(d.type,!0),d;default:return""}}function NC(d){if(d==null)return null;if(typeof d=="function")return d.displayName||d.name||null;if(typeof d=="string")return d;switch(d){case vp:return"Fragment";case Sp:return"Portal";case AC:return"Profiler";case o_:return"StrictMode";case LC:return"Suspense";case BC:return"SuspenseList"}if(typeof d=="object")switch(d.$$typeof){case p4:return(d.displayName||"Context")+".Consumer";case f4:return(d._context.displayName||"Context")+".Provider";case d_:var e=d.render;return d=d.displayName,d||(d=e.displayName||e.name||"",d=d!==""?"ForwardRef("+d+")":"ForwardRef"),d;case c_:return e=d.displayName||null,e!==null?e:NC(d.type)||"Memo";case Eu:e=d._payload,d=d._init;try{return NC(d(e))}catch{}}return null}function ote(d){var e=d.type;switch(d.tag){case 24:return"Cache";case 9:return(e.displayName||"Context")+".Consumer";case 10:return(e._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return d=e.render,d=d.displayName||d.name||"",e.displayName||(d!==""?"ForwardRef("+d+")":"ForwardRef");case 7:return"Fragment";case 5:return e;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return NC(e);case 8:return e===o_?"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 e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e}return null}function yh(d){switch(typeof d){case"boolean":case"number":case"string":case"undefined":return d;case"object":return d;default:return""}}function g4(d){var e=d.type;return(d=d.nodeName)&&d.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function dte(d){var e=g4(d)?"checked":"value",t=Object.getOwnPropertyDescriptor(d.constructor.prototype,e),s=""+d[e];if(!d.hasOwnProperty(e)&&typeof t<"u"&&typeof t.get=="function"&&typeof t.set=="function"){var i=t.get,n=t.set;return Object.defineProperty(d,e,{configurable:!0,get:function(){return i.call(this)},set:function(r){s=""+r,n.call(this,r)}}),Object.defineProperty(d,e,{enumerable:t.enumerable}),{getValue:function(){return s},setValue:function(r){s=""+r},stopTracking:function(){d._valueTracker=null,delete d[e]}}}}function Fk(d){d._valueTracker||(d._valueTracker=dte(d))}function y4(d){if(!d)return!1;var e=d._valueTracker;if(!e)return!0;var t=e.getValue(),s="";return d&&(s=g4(d)?d.checked?"true":"false":d.value),d=s,d!==t?(e.setValue(d),!0):!1}function I1(d){if(d=d||(typeof document<"u"?document:void 0),typeof d>"u")return null;try{return d.activeElement||d.body}catch{return d.body}}function EC(d,e){var t=e.checked;return Ai({},e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:t??d._wrapperState.initialChecked})}function OR(d,e){var t=e.defaultValue==null?"":e.defaultValue,s=e.checked!=null?e.checked:e.defaultChecked;t=yh(e.value!=null?e.value:t),d._wrapperState={initialChecked:s,initialValue:t,controlled:e.type==="checkbox"||e.type==="radio"?e.checked!=null:e.value!=null}}function w4(d,e){e=e.checked,e!=null&&a_(d,"checked",e,!1)}function RC(d,e){w4(d,e);var t=yh(e.value),s=e.type;if(t!=null)s==="number"?(t===0&&d.value===""||d.value!=t)&&(d.value=""+t):d.value!==""+t&&(d.value=""+t);else if(s==="submit"||s==="reset"){d.removeAttribute("value");return}e.hasOwnProperty("value")?DC(d,e.type,t):e.hasOwnProperty("defaultValue")&&DC(d,e.type,yh(e.defaultValue)),e.checked==null&&e.defaultChecked!=null&&(d.defaultChecked=!!e.defaultChecked)}function xR(d,e,t){if(e.hasOwnProperty("value")||e.hasOwnProperty("defaultValue")){var s=e.type;if(!(s!=="submit"&&s!=="reset"||e.value!==void 0&&e.value!==null))return;e=""+d._wrapperState.initialValue,t||e===d.value||(d.value=e),d.defaultValue=e}t=d.name,t!==""&&(d.name=""),d.defaultChecked=!!d._wrapperState.initialChecked,t!==""&&(d.name=t)}function DC(d,e,t){(e!=="number"||I1(d.ownerDocument)!==d)&&(t==null?d.defaultValue=""+d._wrapperState.initialValue:d.defaultValue!==""+t&&(d.defaultValue=""+t))}var Oy=Array.isArray;function zp(d,e,t,s){if(d=d.options,e){e={};for(var i=0;i"+e.valueOf().toString()+"",e=Hk.firstChild;d.firstChild;)d.removeChild(d.firstChild);for(;e.firstChild;)d.appendChild(e.firstChild)}});function b0(d,e){if(e){var t=d.firstChild;if(t&&t===d.lastChild&&t.nodeType===3){t.nodeValue=e;return}}d.textContent=e}var Fy={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},cte=["Webkit","ms","Moz","O"];Object.keys(Fy).forEach(function(d){cte.forEach(function(e){e=e+d.charAt(0).toUpperCase()+d.substring(1),Fy[e]=Fy[d]})});function v4(d,e,t){return e==null||typeof e=="boolean"||e===""?"":t||typeof e!="number"||e===0||Fy.hasOwnProperty(d)&&Fy[d]?(""+e).trim():e+"px"}function T4(d,e){d=d.style;for(var t in e)if(e.hasOwnProperty(t)){var s=t.indexOf("--")===0,i=v4(t,e[t],s);t==="float"&&(t="cssFloat"),s?d.setProperty(t,i):d[t]=i}}var ute=Ai({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 FC(d,e){if(e){if(ute[d]&&(e.children!=null||e.dangerouslySetInnerHTML!=null))throw Error(nt(137,d));if(e.dangerouslySetInnerHTML!=null){if(e.children!=null)throw Error(nt(60));if(typeof e.dangerouslySetInnerHTML!="object"||!("__html"in e.dangerouslySetInnerHTML))throw Error(nt(61))}if(e.style!=null&&typeof e.style!="object")throw Error(nt(62))}}function HC(d,e){if(d.indexOf("-")===-1)return typeof e.is=="string";switch(d){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 GC=null;function u_(d){return d=d.target||d.srcElement||window,d.correspondingUseElement&&(d=d.correspondingUseElement),d.nodeType===3?d.parentNode:d}var UC=null,$p=null,Kp=null;function CR(d){if(d=qw(d)){if(typeof UC!="function")throw Error(nt(280));var e=d.stateNode;e&&(e=aT(e),UC(d.stateNode,d.type,e))}}function O4(d){$p?Kp?Kp.push(d):Kp=[d]:$p=d}function x4(){if($p){var d=$p,e=Kp;if(Kp=$p=null,CR(d),e)for(d=0;d>>=0,d===0?32:31-(Ste(d)/vte|0)|0}var Gk=64,Uk=4194304;function xy(d){switch(d&-d){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 d&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return d&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return d}}function A1(d,e){var t=d.pendingLanes;if(t===0)return 0;var s=0,i=d.suspendedLanes,n=d.pingedLanes,r=t&268435455;if(r!==0){var a=r&~i;a!==0?s=xy(a):(n&=r,n!==0&&(s=xy(n)))}else r=t&~i,r!==0?s=xy(r):n!==0&&(s=xy(n));if(s===0)return 0;if(e!==0&&e!==s&&!(e&i)&&(i=s&-s,n=e&-e,i>=n||i===16&&(n&4194240)!==0))return e;if(s&4&&(s|=t&16),e=d.entangledLanes,e!==0)for(d=d.entanglements,e&=s;0t;t++)e.push(d);return e}function Rw(d,e,t){d.pendingLanes|=e,e!==536870912&&(d.suspendedLanes=0,d.pingedLanes=0),d=d.eventTimes,e=31-Do(e),d[e]=t}function Pte(d,e){var t=d.pendingLanes&~e;d.pendingLanes=e,d.suspendedLanes=0,d.pingedLanes=0,d.expiredLanes&=e,d.mutableReadLanes&=e,d.entangledLanes&=e,e=d.entanglements;var s=d.eventTimes;for(d=d.expirationTimes;0=Gy),DR=" ",qR=!1;function j4(d,e){switch(d){case"keyup":return ese.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function z4(d){return d=d.detail,typeof d=="object"&&"data"in d?d.data:null}var Tp=!1;function sse(d,e){switch(d){case"compositionend":return z4(e);case"keypress":return e.which!==32?null:(qR=!0,DR);case"textInput":return d=e.data,d===DR&&qR?null:d;default:return null}}function ise(d,e){if(Tp)return d==="compositionend"||!w_&&j4(d,e)?(d=U4(),FS=m_=Qu=null,Tp=!1,d):null;switch(d){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1=e)return{node:t,offset:e-d};d=s}e:{for(;t;){if(t.nextSibling){t=t.nextSibling;break e}t=t.parentNode}t=void 0}t=GR(t)}}function Q4(d,e){return d&&e?d===e?!0:d&&d.nodeType===3?!1:e&&e.nodeType===3?Q4(d,e.parentNode):"contains"in d?d.contains(e):d.compareDocumentPosition?!!(d.compareDocumentPosition(e)&16):!1:!1}function Y4(){for(var d=window,e=I1();e instanceof d.HTMLIFrameElement;){try{var t=typeof e.contentWindow.location.href=="string"}catch{t=!1}if(t)d=e.contentWindow;else break;e=I1(d.document)}return e}function b_(d){var e=d&&d.nodeName&&d.nodeName.toLowerCase();return e&&(e==="input"&&(d.type==="text"||d.type==="search"||d.type==="tel"||d.type==="url"||d.type==="password")||e==="textarea"||d.contentEditable==="true")}function lse(d){var e=Y4(),t=d.focusedElem,s=d.selectionRange;if(e!==t&&t&&t.ownerDocument&&Q4(t.ownerDocument.documentElement,t)){if(s!==null&&b_(t)){if(e=s.start,d=s.end,d===void 0&&(d=e),"selectionStart"in t)t.selectionStart=e,t.selectionEnd=Math.min(d,t.value.length);else if(d=(e=t.ownerDocument||document)&&e.defaultView||window,d.getSelection){d=d.getSelection();var i=t.textContent.length,n=Math.min(s.start,i);s=s.end===void 0?n:Math.min(s.end,i),!d.extend&&n>s&&(i=s,s=n,n=i),i=UR(t,n);var r=UR(t,s);i&&r&&(d.rangeCount!==1||d.anchorNode!==i.node||d.anchorOffset!==i.offset||d.focusNode!==r.node||d.focusOffset!==r.offset)&&(e=e.createRange(),e.setStart(i.node,i.offset),d.removeAllRanges(),n>s?(d.addRange(e),d.extend(r.node,r.offset)):(e.setEnd(r.node,r.offset),d.addRange(e)))}}for(e=[],d=t;d=d.parentNode;)d.nodeType===1&&e.push({element:d,left:d.scrollLeft,top:d.scrollTop});for(typeof t.focus=="function"&&t.focus(),t=0;t=document.documentMode,Op=null,XC=null,Wy=null,QC=!1;function WR(d,e,t){var s=t.window===t?t.document:t.nodeType===9?t:t.ownerDocument;QC||Op==null||Op!==I1(s)||(s=Op,"selectionStart"in s&&b_(s)?s={start:s.selectionStart,end:s.selectionEnd}:(s=(s.ownerDocument&&s.ownerDocument.defaultView||window).getSelection(),s={anchorNode:s.anchorNode,anchorOffset:s.anchorOffset,focusNode:s.focusNode,focusOffset:s.focusOffset}),Wy&&x0(Wy,s)||(Wy=s,s=N1(XC,"onSelect"),0Ip||(d.current=sM[Ip],sM[Ip]=null,Ip--)}function ci(d,e){Ip++,sM[Ip]=d.current,d.current=e}var wh={},ir=Nh(wh),qr=Nh(!1),Hl=wh;function mm(d,e){var t=d.type.contextTypes;if(!t)return wh;var s=d.stateNode;if(s&&s.__reactInternalMemoizedUnmaskedChildContext===e)return s.__reactInternalMemoizedMaskedChildContext;var i={},n;for(n in t)i[n]=e[n];return s&&(d=d.stateNode,d.__reactInternalMemoizedUnmaskedChildContext=e,d.__reactInternalMemoizedMaskedChildContext=i),i}function Vr(d){return d=d.childContextTypes,d!=null}function R1(){pi(qr),pi(ir)}function YR(d,e,t){if(ir.current!==wh)throw Error(nt(168));ci(ir,e),ci(qr,t)}function a6(d,e,t){var s=d.stateNode;if(e=e.childContextTypes,typeof s.getChildContext!="function")return t;s=s.getChildContext();for(var i in s)if(!(i in e))throw Error(nt(108,ote(d)||"Unknown",i));return Ai({},t,s)}function D1(d){return d=(d=d.stateNode)&&d.__reactInternalMemoizedMergedChildContext||wh,Hl=ir.current,ci(ir,d),ci(qr,qr.current),!0}function ZR(d,e,t){var s=d.stateNode;if(!s)throw Error(nt(169));t?(d=a6(d,e,Hl),s.__reactInternalMemoizedMergedChildContext=d,pi(qr),pi(ir),ci(ir,d)):pi(qr),ci(qr,t)}var gc=null,oT=!1,VP=!1;function o6(d){gc===null?gc=[d]:gc.push(d)}function Ose(d){oT=!0,o6(d)}function Eh(){if(!VP&&gc!==null){VP=!0;var d=0,e=zs;try{var t=gc;for(zs=1;d>=r,i-=r,Ic=1<<32-Do(e)+i|t<_?(N=M,M=null):N=M.sibling;var A=l(y,M,b[_],S);if(A===null){M===null&&(M=N);break}d&&M&&A.alternate===null&&e(y,M),w=n(A,w,_),C===null?v=A:C.sibling=A,C=A,M=N}if(_===b.length)return t(y,M),bi&&ul(y,_),v;if(M===null){for(;__?(N=M,M=null):N=M.sibling;var R=l(y,M,A.value,S);if(R===null){M===null&&(M=N);break}d&&M&&R.alternate===null&&e(y,M),w=n(R,w,_),C===null?v=R:C.sibling=R,C=R,M=N}if(A.done)return t(y,M),bi&&ul(y,_),v;if(M===null){for(;!A.done;_++,A=b.next())A=h(y,A.value,S),A!==null&&(w=n(A,w,_),C===null?v=A:C.sibling=A,C=A);return bi&&ul(y,_),v}for(M=s(y,M);!A.done;_++,A=b.next())A=f(M,y,_,A.value,S),A!==null&&(d&&A.alternate!==null&&M.delete(A.key===null?_:A.key),w=n(A,w,_),C===null?v=A:C.sibling=A,C=A);return d&&M.forEach(function(D){return e(y,D)}),bi&&ul(y,_),v}function g(y,w,b,S){if(typeof b=="object"&&b!==null&&b.type===vp&&b.key===null&&(b=b.props.children),typeof b=="object"&&b!==null){switch(b.$$typeof){case Vk:e:{for(var v=b.key,C=w;C!==null;){if(C.key===v){if(v=b.type,v===vp){if(C.tag===7){t(y,C.sibling),w=i(C,b.props.children),w.return=y,y=w;break e}}else if(C.elementType===v||typeof v=="object"&&v!==null&&v.$$typeof===Eu&&tD(v)===C.type){t(y,C.sibling),w=i(C,b.props),w.ref=ty(y,C,b),w.return=y,y=w;break e}t(y,C);break}else e(y,C);C=C.sibling}b.type===vp?(w=El(b.props.children,y.mode,S,b.key),w.return=y,y=w):(S=KS(b.type,b.key,b.props,null,y.mode,S),S.ref=ty(y,w,b),S.return=y,y=S)}return r(y);case Sp:e:{for(C=b.key;w!==null;){if(w.key===C)if(w.tag===4&&w.stateNode.containerInfo===b.containerInfo&&w.stateNode.implementation===b.implementation){t(y,w.sibling),w=i(w,b.children||[]),w.return=y,y=w;break e}else{t(y,w);break}else e(y,w);w=w.sibling}w=$P(b,y.mode,S),w.return=y,y=w}return r(y);case Eu:return C=b._init,g(y,w,C(b._payload),S)}if(Oy(b))return p(y,w,b,S);if(Qg(b))return m(y,w,b,S);Qk(y,b)}return typeof b=="string"&&b!==""||typeof b=="number"?(b=""+b,w!==null&&w.tag===6?(t(y,w.sibling),w=i(w,b),w.return=y,y=w):(t(y,w),w=zP(b,y.mode,S),w.return=y,y=w),r(y)):t(y,w)}return g}var ym=h6(!0),l6=h6(!1),F1=Nh(null),H1=null,_p=null,T_=null;function O_(){T_=_p=H1=null}function x_(d){var e=F1.current;pi(F1),d._currentValue=e}function rM(d,e,t){for(;d!==null;){var s=d.alternate;if((d.childLanes&e)!==e?(d.childLanes|=e,s!==null&&(s.childLanes|=e)):s!==null&&(s.childLanes&e)!==e&&(s.childLanes|=e),d===t)break;d=d.return}}function Qp(d,e){H1=d,T_=_p=null,d=d.dependencies,d!==null&&d.firstContext!==null&&(d.lanes&e&&(Rr=!0),d.firstContext=null)}function oo(d){var e=d._currentValue;if(T_!==d)if(d={context:d,memoizedValue:e,next:null},_p===null){if(H1===null)throw Error(nt(308));_p=d,H1.dependencies={lanes:0,firstContext:d}}else _p=_p.next=d;return e}var vl=null;function P_(d){vl===null?vl=[d]:vl.push(d)}function f6(d,e,t,s){var i=e.interleaved;return i===null?(t.next=t,P_(e)):(t.next=i.next,i.next=t),e.interleaved=t,Gc(d,s)}function Gc(d,e){d.lanes|=e;var t=d.alternate;for(t!==null&&(t.lanes|=e),t=d,d=d.return;d!==null;)d.childLanes|=e,t=d.alternate,t!==null&&(t.childLanes|=e),t=d,d=d.return;return t.tag===3?t.stateNode:null}var Ru=!1;function I_(d){d.updateQueue={baseState:d.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function p6(d,e){d=d.updateQueue,e.updateQueue===d&&(e.updateQueue={baseState:d.baseState,firstBaseUpdate:d.firstBaseUpdate,lastBaseUpdate:d.lastBaseUpdate,shared:d.shared,effects:d.effects})}function Bc(d,e){return{eventTime:d,lane:e,tag:0,payload:null,callback:null,next:null}}function oh(d,e,t){var s=d.updateQueue;if(s===null)return null;if(s=s.shared,Is&2){var i=s.pending;return i===null?e.next=e:(e.next=i.next,i.next=e),s.pending=e,Gc(d,t)}return i=s.interleaved,i===null?(e.next=e,P_(s)):(e.next=i.next,i.next=e),s.interleaved=e,Gc(d,t)}function GS(d,e,t){if(e=e.updateQueue,e!==null&&(e=e.shared,(t&4194240)!==0)){var s=e.lanes;s&=d.pendingLanes,t|=s,e.lanes=t,l_(d,t)}}function sD(d,e){var t=d.updateQueue,s=d.alternate;if(s!==null&&(s=s.updateQueue,t===s)){var i=null,n=null;if(t=t.firstBaseUpdate,t!==null){do{var r={eventTime:t.eventTime,lane:t.lane,tag:t.tag,payload:t.payload,callback:t.callback,next:null};n===null?i=n=r:n=n.next=r,t=t.next}while(t!==null);n===null?i=n=e:n=n.next=e}else i=n=e;t={baseState:s.baseState,firstBaseUpdate:i,lastBaseUpdate:n,shared:s.shared,effects:s.effects},d.updateQueue=t;return}d=t.lastBaseUpdate,d===null?t.firstBaseUpdate=e:d.next=e,t.lastBaseUpdate=e}function G1(d,e,t,s){var i=d.updateQueue;Ru=!1;var n=i.firstBaseUpdate,r=i.lastBaseUpdate,a=i.shared.pending;if(a!==null){i.shared.pending=null;var o=a,c=o.next;o.next=null,r===null?n=c:r.next=c,r=o;var u=d.alternate;u!==null&&(u=u.updateQueue,a=u.lastBaseUpdate,a!==r&&(a===null?u.firstBaseUpdate=c:a.next=c,u.lastBaseUpdate=o))}if(n!==null){var h=i.baseState;r=0,u=c=o=null,a=n;do{var l=a.lane,f=a.eventTime;if((s&l)===l){u!==null&&(u=u.next={eventTime:f,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var p=d,m=a;switch(l=e,f=t,m.tag){case 1:if(p=m.payload,typeof p=="function"){h=p.call(f,h,l);break e}h=p;break e;case 3:p.flags=p.flags&-65537|128;case 0:if(p=m.payload,l=typeof p=="function"?p.call(f,h,l):p,l==null)break e;h=Ai({},h,l);break e;case 2:Ru=!0}}a.callback!==null&&a.lane!==0&&(d.flags|=64,l=i.effects,l===null?i.effects=[a]:l.push(a))}else f={eventTime:f,lane:l,tag:a.tag,payload:a.payload,callback:a.callback,next:null},u===null?(c=u=f,o=h):u=u.next=f,r|=l;if(a=a.next,a===null){if(a=i.shared.pending,a===null)break;l=a,a=l.next,l.next=null,i.lastBaseUpdate=l,i.shared.pending=null}}while(!0);if(u===null&&(o=h),i.baseState=o,i.firstBaseUpdate=c,i.lastBaseUpdate=u,e=i.shared.interleaved,e!==null){i=e;do r|=i.lane,i=i.next;while(i!==e)}else n===null&&(i.shared.lanes=0);Wl|=r,d.lanes=r,d.memoizedState=h}}function iD(d,e,t){if(d=e.effects,e.effects=null,d!==null)for(e=0;et?t:4,d(!0);var s=HP.transition;HP.transition={};try{d(!1),e()}finally{zs=t,HP.transition=s}}function A6(){return co().memoizedState}function Cse(d,e,t){var s=ch(d);if(t={lane:s,action:t,hasEagerState:!1,eagerState:null,next:null},L6(d))B6(e,t);else if(t=f6(d,e,t,s),t!==null){var i=yr();qo(t,d,s,i),N6(t,e,s)}}function Mse(d,e,t){var s=ch(d),i={lane:s,action:t,hasEagerState:!1,eagerState:null,next:null};if(L6(d))B6(e,i);else{var n=d.alternate;if(d.lanes===0&&(n===null||n.lanes===0)&&(n=e.lastRenderedReducer,n!==null))try{var r=e.lastRenderedState,a=n(r,t);if(i.hasEagerState=!0,i.eagerState=a,Go(a,r)){var o=e.interleaved;o===null?(i.next=i,P_(e)):(i.next=o.next,o.next=i),e.interleaved=i;return}}catch{}finally{}t=f6(d,e,i,s),t!==null&&(i=yr(),qo(t,d,s,i),N6(t,e,s))}}function L6(d){var e=d.alternate;return d===_i||e!==null&&e===_i}function B6(d,e){jy=W1=!0;var t=d.pending;t===null?e.next=e:(e.next=t.next,t.next=e),d.pending=e}function N6(d,e,t){if(t&4194240){var s=e.lanes;s&=d.pendingLanes,t|=s,e.lanes=t,l_(d,t)}}var j1={readContext:oo,useCallback:Qn,useContext:Qn,useEffect:Qn,useImperativeHandle:Qn,useInsertionEffect:Qn,useLayoutEffect:Qn,useMemo:Qn,useReducer:Qn,useRef:Qn,useState:Qn,useDebugValue:Qn,useDeferredValue:Qn,useTransition:Qn,useMutableSource:Qn,useSyncExternalStore:Qn,useId:Qn,unstable_isNewReconciler:!1},_se={readContext:oo,useCallback:function(d,e){return pd().memoizedState=[d,e===void 0?null:e],d},useContext:oo,useEffect:rD,useImperativeHandle:function(d,e,t){return t=t!=null?t.concat([d]):null,WS(4194308,4,P6.bind(null,e,d),t)},useLayoutEffect:function(d,e){return WS(4194308,4,d,e)},useInsertionEffect:function(d,e){return WS(4,2,d,e)},useMemo:function(d,e){var t=pd();return e=e===void 0?null:e,d=d(),t.memoizedState=[d,e],d},useReducer:function(d,e,t){var s=pd();return e=t!==void 0?t(e):e,s.memoizedState=s.baseState=e,d={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:d,lastRenderedState:e},s.queue=d,d=d.dispatch=Cse.bind(null,_i,d),[s.memoizedState,d]},useRef:function(d){var e=pd();return d={current:d},e.memoizedState=d},useState:nD,useDebugValue:E_,useDeferredValue:function(d){return pd().memoizedState=d},useTransition:function(){var d=nD(!1),e=d[0];return d=Ise.bind(null,d[1]),pd().memoizedState=d,[e,d]},useMutableSource:function(){},useSyncExternalStore:function(d,e,t){var s=_i,i=pd();if(bi){if(t===void 0)throw Error(nt(407));t=t()}else{if(t=e(),xn===null)throw Error(nt(349));Ul&30||w6(s,e,t)}i.memoizedState=t;var n={value:t,getSnapshot:e};return i.queue=n,rD(k6.bind(null,s,n,d),[d]),s.flags|=2048,B0(9,b6.bind(null,s,n,t,e),void 0,null),t},useId:function(){var d=pd(),e=xn.identifierPrefix;if(bi){var t=Cc,s=Ic;t=(s&~(1<<32-Do(s)-1)).toString(32)+t,e=":"+e+"R"+t,t=A0++,0<\/script>",d=d.removeChild(d.firstChild)):typeof s.is=="string"?d=r.createElement(t,{is:s.is}):(d=r.createElement(t),t==="select"&&(r=d,s.multiple?r.multiple=!0:s.size&&(r.size=s.size))):d=r.createElementNS(d,t),d[Td]=e,d[C0]=s,W6(d,e,!1,!1),e.stateNode=d;e:{switch(r=HC(t,s),t){case"dialog":ui("cancel",d),ui("close",d),i=s;break;case"iframe":case"object":case"embed":ui("load",d),i=s;break;case"video":case"audio":for(i=0;ikm&&(e.flags|=128,s=!0,sy(n,!1),e.lanes=4194304)}else{if(!s)if(d=U1(r),d!==null){if(e.flags|=128,s=!0,t=d.updateQueue,t!==null&&(e.updateQueue=t,e.flags|=4),sy(n,!0),n.tail===null&&n.tailMode==="hidden"&&!r.alternate&&!bi)return Yn(e),null}else 2*ji()-n.renderingStartTime>km&&t!==1073741824&&(e.flags|=128,s=!0,sy(n,!1),e.lanes=4194304);n.isBackwards?(r.sibling=e.child,e.child=r):(t=n.last,t!==null?t.sibling=r:e.child=r,n.last=r)}return n.tail!==null?(e=n.tail,n.rendering=e,n.tail=e.sibling,n.renderingStartTime=ji(),e.sibling=null,t=Ci.current,ci(Ci,s?t&1|2:t&1),e):(Yn(e),null);case 22:case 23:return H_(),s=e.memoizedState!==null,d!==null&&d.memoizedState!==null!==s&&(e.flags|=8192),s&&e.mode&1?ia&1073741824&&(Yn(e),e.subtreeFlags&6&&(e.flags|=8192)):Yn(e),null;case 24:return null;case 25:return null}throw Error(rt(156,e.tag))}function qse(d,e){switch(S_(e),e.tag){case 1:return Vr(e.type)&&R1(),d=e.flags,d&65536?(e.flags=d&-65537|128,e):null;case 3:return wm(),pi(qr),pi(ir),__(),d=e.flags,d&65536&&!(d&128)?(e.flags=d&-65537|128,e):null;case 5:return M_(e),null;case 13:if(pi(Ci),d=e.memoizedState,d!==null&&d.dehydrated!==null){if(e.alternate===null)throw Error(rt(340));gm()}return d=e.flags,d&65536?(e.flags=d&-65537|128,e):null;case 19:return pi(Ci),null;case 4:return wm(),null;case 10:return x_(e.type._context),null;case 22:case 23:return H_(),null;case 24:return null;default:return null}}var Zk=!1,sr=!1,Vse=typeof WeakSet=="function"?WeakSet:Set,Pt=null;function Ap(d,e){var t=d.ref;if(t!==null)if(typeof t=="function")try{t(null)}catch(s){qi(d,e,s)}else t.current=null}function pM(d,e,t){try{t()}catch(s){qi(d,e,s)}}var gD=!1;function Fse(d,e){if(YC=L1,d=Y4(),b_(d)){if("selectionStart"in d)var t={start:d.selectionStart,end:d.selectionEnd};else e:{t=(t=d.ownerDocument)&&t.defaultView||window;var s=t.getSelection&&t.getSelection();if(s&&s.rangeCount!==0){t=s.anchorNode;var i=s.anchorOffset,n=s.focusNode;s=s.focusOffset;try{t.nodeType,n.nodeType}catch{t=null;break e}var r=0,a=-1,o=-1,c=0,u=0,h=d,l=null;t:for(;;){for(var f;h!==t||i!==0&&h.nodeType!==3||(a=r+i),h!==n||s!==0&&h.nodeType!==3||(o=r+s),h.nodeType===3&&(r+=h.nodeValue.length),(f=h.firstChild)!==null;)l=h,h=f;for(;;){if(h===d)break t;if(l===t&&++c===i&&(a=r),l===n&&++u===s&&(o=r),(f=h.nextSibling)!==null)break;h=l,l=h.parentNode}h=f}t=a===-1||o===-1?null:{start:a,end:o}}else t=null}t=t||{start:0,end:0}}else t=null;for(ZC={focusedElem:d,selectionRange:t},L1=!1,Pt=e;Pt!==null;)if(e=Pt,d=e.child,(e.subtreeFlags&1028)!==0&&d!==null)d.return=e,Pt=d;else for(;Pt!==null;){e=Pt;try{var p=e.alternate;if(e.flags&1024)switch(e.tag){case 0:case 11:case 15:break;case 1:if(p!==null){var m=p.memoizedProps,g=p.memoizedState,y=e.stateNode,w=y.getSnapshotBeforeUpdate(e.elementType===e.type?m:To(e.type,m),g);y.__reactInternalSnapshotBeforeUpdate=w}break;case 3:var b=e.stateNode.containerInfo;b.nodeType===1?b.textContent="":b.nodeType===9&&b.documentElement&&b.removeChild(b.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(rt(163))}}catch(S){qi(e,e.return,S)}if(d=e.sibling,d!==null){d.return=e.return,Pt=d;break}Pt=e.return}return p=gD,gD=!1,p}function zy(d,e,t){var s=e.updateQueue;if(s=s!==null?s.lastEffect:null,s!==null){var i=s=s.next;do{if((i.tag&d)===d){var n=i.destroy;i.destroy=void 0,n!==void 0&&pM(e,t,n)}i=i.next}while(i!==s)}}function uT(d,e){if(e=e.updateQueue,e=e!==null?e.lastEffect:null,e!==null){var t=e=e.next;do{if((t.tag&d)===d){var s=t.create;t.destroy=s()}t=t.next}while(t!==e)}}function mM(d){var e=d.ref;if(e!==null){var t=d.stateNode;switch(d.tag){case 5:d=t;break;default:d=t}typeof e=="function"?e(d):e.current=d}}function $6(d){var e=d.alternate;e!==null&&(d.alternate=null,$6(e)),d.child=null,d.deletions=null,d.sibling=null,d.tag===5&&(e=d.stateNode,e!==null&&(delete e[Td],delete e[C0],delete e[tM],delete e[vse],delete e[Tse])),d.stateNode=null,d.return=null,d.dependencies=null,d.memoizedProps=null,d.memoizedState=null,d.pendingProps=null,d.stateNode=null,d.updateQueue=null}function K6(d){return d.tag===5||d.tag===3||d.tag===4}function yD(d){e:for(;;){for(;d.sibling===null;){if(d.return===null||K6(d.return))return null;d=d.return}for(d.sibling.return=d.return,d=d.sibling;d.tag!==5&&d.tag!==6&&d.tag!==18;){if(d.flags&2||d.child===null||d.tag===4)continue e;d.child.return=d,d=d.child}if(!(d.flags&2))return d.stateNode}}function gM(d,e,t){var s=d.tag;if(s===5||s===6)d=d.stateNode,e?t.nodeType===8?t.parentNode.insertBefore(d,e):t.insertBefore(d,e):(t.nodeType===8?(e=t.parentNode,e.insertBefore(d,t)):(e=t,e.appendChild(d)),t=t._reactRootContainer,t!=null||e.onclick!==null||(e.onclick=E1));else if(s!==4&&(d=d.child,d!==null))for(gM(d,e,t),d=d.sibling;d!==null;)gM(d,e,t),d=d.sibling}function yM(d,e,t){var s=d.tag;if(s===5||s===6)d=d.stateNode,e?t.insertBefore(d,e):t.appendChild(d);else if(s!==4&&(d=d.child,d!==null))for(yM(d,e,t),d=d.sibling;d!==null;)yM(d,e,t),d=d.sibling}var qn=null,xo=!1;function vu(d,e,t){for(t=t.child;t!==null;)X6(d,e,t),t=t.sibling}function X6(d,e,t){if(Ad&&typeof Ad.onCommitFiberUnmount=="function")try{Ad.onCommitFiberUnmount(sT,t)}catch{}switch(t.tag){case 5:sr||Ap(t,e);case 6:var s=qn,i=xo;qn=null,vu(d,e,t),qn=s,xo=i,qn!==null&&(xo?(d=qn,t=t.stateNode,d.nodeType===8?d.parentNode.removeChild(t):d.removeChild(t)):qn.removeChild(t.stateNode));break;case 18:qn!==null&&(xo?(d=qn,t=t.stateNode,d.nodeType===8?qP(d.parentNode,t):d.nodeType===1&&qP(d,t),T0(d)):qP(qn,t.stateNode));break;case 4:s=qn,i=xo,qn=t.stateNode.containerInfo,xo=!0,vu(d,e,t),qn=s,xo=i;break;case 0:case 11:case 14:case 15:if(!sr&&(s=t.updateQueue,s!==null&&(s=s.lastEffect,s!==null))){i=s=s.next;do{var n=i,r=n.destroy;n=n.tag,r!==void 0&&(n&2||n&4)&&pM(t,e,r),i=i.next}while(i!==s)}vu(d,e,t);break;case 1:if(!sr&&(Ap(t,e),s=t.stateNode,typeof s.componentWillUnmount=="function"))try{s.props=t.memoizedProps,s.state=t.memoizedState,s.componentWillUnmount()}catch(a){qi(t,e,a)}vu(d,e,t);break;case 21:vu(d,e,t);break;case 22:t.mode&1?(sr=(s=sr)||t.memoizedState!==null,vu(d,e,t),sr=s):vu(d,e,t);break;default:vu(d,e,t)}}function wD(d){var e=d.updateQueue;if(e!==null){d.updateQueue=null;var t=d.stateNode;t===null&&(t=d.stateNode=new Vse),e.forEach(function(s){var i=Xse.bind(null,d,s);t.has(s)||(t.add(s),s.then(i,i))})}}function ko(d,e){var t=e.deletions;if(t!==null)for(var s=0;si&&(i=r),s&=~n}if(s=i,s=ji()-s,s=(120>s?120:480>s?480:1080>s?1080:1920>s?1920:3e3>s?3e3:4320>s?4320:1960*Gse(s/1960))-s,10d?16:d,Yu===null)var s=!1;else{if(d=Yu,Yu=null,K1=0,Is&6)throw Error(rt(331));var i=Is;for(Is|=4,Pt=d.current;Pt!==null;){var n=Pt,r=n.child;if(Pt.flags&16){var a=n.deletions;if(a!==null){for(var o=0;oji()-V_?Nl(d,0):q_|=t),Fr(d,e)}function iH(d,e){e===0&&(d.mode&1?(e=Uk,Uk<<=1,!(Uk&130023424)&&(Uk=4194304)):e=1);var t=yr();d=Gc(d,e),d!==null&&(Rw(d,e,t),Fr(d,t))}function Kse(d){var e=d.memoizedState,t=0;e!==null&&(t=e.retryLane),iH(d,t)}function Xse(d,e){var t=0;switch(d.tag){case 13:var s=d.stateNode,i=d.memoizedState;i!==null&&(t=i.retryLane);break;case 19:s=d.stateNode;break;default:throw Error(rt(314))}s!==null&&s.delete(e),iH(d,t)}var nH;nH=function(d,e,t){if(d!==null)if(d.memoizedProps!==e.pendingProps||qr.current)Rr=!0;else{if(!(d.lanes&t)&&!(e.flags&128))return Rr=!1,Rse(d,e,t);Rr=!!(d.flags&131072)}else Rr=!1,bi&&e.flags&1048576&&d6(e,V1,e.index);switch(e.lanes=0,e.tag){case 2:var s=e.type;jS(d,e),d=e.pendingProps;var i=mm(e,ir.current);Qp(e,t),i=L_(null,e,s,d,i,t);var n=B_();return e.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(e.tag=1,e.memoizedState=null,e.updateQueue=null,Vr(s)?(n=!0,D1(e)):n=!1,e.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,I_(e),i.updater=cT,e.stateNode=i,i._reactInternals=e,oM(e,s,d,t),e=uM(null,e,s,!0,n,t)):(e.tag=0,bi&&n&&k_(e),lr(null,e,i,t),e=e.child),e;case 16:s=e.elementType;e:{switch(jS(d,e),d=e.pendingProps,i=s._init,s=i(s._payload),e.type=s,i=e.tag=Yse(s),d=To(s,d),i){case 0:e=cM(null,e,s,d,t);break e;case 1:e=fD(null,e,s,d,t);break e;case 11:e=hD(null,e,s,d,t);break e;case 14:e=lD(null,e,s,To(s.type,d),t);break e}throw Error(rt(306,s,""))}return e;case 0:return s=e.type,i=e.pendingProps,i=e.elementType===s?i:To(s,i),cM(d,e,s,i,t);case 1:return s=e.type,i=e.pendingProps,i=e.elementType===s?i:To(s,i),fD(d,e,s,i,t);case 3:e:{if(H6(e),d===null)throw Error(rt(387));s=e.pendingProps,n=e.memoizedState,i=n.element,p6(d,e),G1(e,s,null,t);var r=e.memoizedState;if(s=r.element,n.isDehydrated)if(n={element:s,isDehydrated:!1,cache:r.cache,pendingSuspenseBoundaries:r.pendingSuspenseBoundaries,transitions:r.transitions},e.updateQueue.baseState=n,e.memoizedState=n,e.flags&256){i=bm(Error(rt(423)),e),e=pD(d,e,s,t,i);break e}else if(s!==i){i=bm(Error(rt(424)),e),e=pD(d,e,s,t,i);break e}else for(ma=ah(e.stateNode.containerInfo.firstChild),ya=e,bi=!0,Co=null,t=l6(e,null,s,t),e.child=t;t;)t.flags=t.flags&-3|4096,t=t.sibling;else{if(gm(),s===i){e=Uc(d,e,t);break e}lr(d,e,s,t)}e=e.child}return e;case 5:return m6(e),d===null&&nM(e),s=e.type,i=e.pendingProps,n=d!==null?d.memoizedProps:null,r=i.children,JC(s,i)?r=null:n!==null&&JC(s,n)&&(e.flags|=32),F6(d,e),lr(d,e,r,t),e.child;case 6:return d===null&&nM(e),null;case 13:return G6(d,e,t);case 4:return C_(e,e.stateNode.containerInfo),s=e.pendingProps,d===null?e.child=ym(e,null,s,t):lr(d,e,s,t),e.child;case 11:return s=e.type,i=e.pendingProps,i=e.elementType===s?i:To(s,i),hD(d,e,s,i,t);case 7:return lr(d,e,e.pendingProps,t),e.child;case 8:return lr(d,e,e.pendingProps.children,t),e.child;case 12:return lr(d,e,e.pendingProps.children,t),e.child;case 10:e:{if(s=e.type._context,i=e.pendingProps,n=e.memoizedProps,r=i.value,ci(F1,s._currentValue),s._currentValue=r,n!==null)if(Go(n.value,r)){if(n.children===i.children&&!qr.current){e=Uc(d,e,t);break e}}else for(n=e.child,n!==null&&(n.return=e);n!==null;){var a=n.dependencies;if(a!==null){r=n.child;for(var o=a.firstContext;o!==null;){if(o.context===s){if(n.tag===1){o=Bc(-1,t&-t),o.tag=2;var c=n.updateQueue;if(c!==null){c=c.shared;var u=c.pending;u===null?o.next=o:(o.next=u.next,u.next=o),c.pending=o}}n.lanes|=t,o=n.alternate,o!==null&&(o.lanes|=t),rM(n.return,t,e),a.lanes|=t;break}o=o.next}}else if(n.tag===10)r=n.type===e.type?null:n.child;else if(n.tag===18){if(r=n.return,r===null)throw Error(rt(341));r.lanes|=t,a=r.alternate,a!==null&&(a.lanes|=t),rM(r,t,e),r=n.sibling}else r=n.child;if(r!==null)r.return=n;else for(r=n;r!==null;){if(r===e){r=null;break}if(n=r.sibling,n!==null){n.return=r.return,r=n;break}r=r.return}n=r}lr(d,e,i.children,t),e=e.child}return e;case 9:return i=e.type,s=e.pendingProps.children,Qp(e,t),i=oo(i),s=s(i),e.flags|=1,lr(d,e,s,t),e.child;case 14:return s=e.type,i=To(s,e.pendingProps),i=To(s.type,i),lD(d,e,s,i,t);case 15:return q6(d,e,e.type,e.pendingProps,t);case 17:return s=e.type,i=e.pendingProps,i=e.elementType===s?i:To(s,i),jS(d,e),e.tag=1,Vr(s)?(d=!0,D1(e)):d=!1,Qp(e,t),E6(e,s,i),oM(e,s,i,t),uM(null,e,s,!0,d,t);case 19:return U6(d,e,t);case 22:return V6(d,e,t)}throw Error(rt(156,e.tag))};function rH(d,e){return L4(d,e)}function Qse(d,e,t,s){this.tag=d,this.key=t,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=s,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function to(d,e,t,s){return new Qse(d,e,t,s)}function U_(d){return d=d.prototype,!(!d||!d.isReactComponent)}function Yse(d){if(typeof d=="function")return U_(d)?1:0;if(d!=null){if(d=d.$$typeof,d===d_)return 11;if(d===c_)return 14}return 2}function uh(d,e){var t=d.alternate;return t===null?(t=to(d.tag,e,d.key,d.mode),t.elementType=d.elementType,t.type=d.type,t.stateNode=d.stateNode,t.alternate=d,d.alternate=t):(t.pendingProps=e,t.type=d.type,t.flags=0,t.subtreeFlags=0,t.deletions=null),t.flags=d.flags&14680064,t.childLanes=d.childLanes,t.lanes=d.lanes,t.child=d.child,t.memoizedProps=d.memoizedProps,t.memoizedState=d.memoizedState,t.updateQueue=d.updateQueue,e=d.dependencies,t.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},t.sibling=d.sibling,t.index=d.index,t.ref=d.ref,t}function KS(d,e,t,s,i,n){var r=2;if(s=d,typeof d=="function")U_(d)&&(r=1);else if(typeof d=="string")r=5;else e:switch(d){case vp:return El(t.children,i,n,e);case o_:r=8,i|=8;break;case AC:return d=to(12,t,e,i|2),d.elementType=AC,d.lanes=n,d;case LC:return d=to(13,t,e,i),d.elementType=LC,d.lanes=n,d;case BC:return d=to(19,t,e,i),d.elementType=BC,d.lanes=n,d;case m4:return lT(t,i,n,e);default:if(typeof d=="object"&&d!==null)switch(d.$$typeof){case f4:r=10;break e;case p4:r=9;break e;case d_:r=11;break e;case c_:r=14;break e;case Eu:r=16,s=null;break e}throw Error(rt(130,d==null?d:typeof d,""))}return e=to(r,t,e,i),e.elementType=d,e.type=s,e.lanes=n,e}function El(d,e,t,s){return d=to(7,d,s,e),d.lanes=t,d}function lT(d,e,t,s){return d=to(22,d,s,e),d.elementType=m4,d.lanes=t,d.stateNode={isHidden:!1},d}function zP(d,e,t){return d=to(6,d,null,e),d.lanes=t,d}function $P(d,e,t){return e=to(4,d.children!==null?d.children:[],d.key,e),e.lanes=t,e.stateNode={containerInfo:d.containerInfo,pendingChildren:null,implementation:d.implementation},e}function Zse(d,e,t,s,i){this.tag=e,this.containerInfo=d,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=IP(0),this.expirationTimes=IP(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=IP(0),this.identifierPrefix=s,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function W_(d,e,t,s,i,n,r,a,o){return d=new Zse(d,e,t,a,o),e===1?(e=1,n===!0&&(e|=8)):e=0,n=to(3,null,null,e),d.current=n,n.stateNode=d,n.memoizedState={element:s,isDehydrated:t,cache:null,transitions:null,pendingSuspenseBoundaries:null},I_(n),d}function Jse(d,e,t){var s=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(cH)}catch(d){console.error(d)}}cH(),c4.exports=Ia;var yT=c4.exports,PD=yT;MC.createRoot=PD.createRoot,MC.hydrateRoot=PD.hydrateRoot;const ID="popstate",CD="beforeunload";function uH(d){let e=d.getLocation();const t=new Set,s=r=>{e=d.getLocation(),t.forEach(a=>a({location:e,action:r}))},i=()=>{e=d.getLocation(),t.forEach(r=>r({location:e,action:{type:"ROLLBACK"}}))},n=async({task:r,navigateOpts:a,...o})=>{var c,u;if((a==null?void 0:a.ignoreBlocker)??!1){r();return}const l=((c=d.getBlockers)==null?void 0:c.call(d))??[],f=o.type==="PUSH"||o.type==="REPLACE";if(typeof document<"u"&&l.length&&f)for(const p of l){const m=Sm(o.path,o.state);if(await p.blockerFn({currentLocation:e,nextLocation:m,action:o.type})){(u=d.onBlocked)==null||u.call(d,i);return}}r()};return{get location(){return e},get length(){return d.getLength()},subscribers:t,subscribe:r=>(t.add(r),()=>{t.delete(r)}),push:(r,a,o)=>{a=MD(a),n({task:()=>{d.pushState(r,a),s({type:"PUSH"})},navigateOpts:o,type:"PUSH",path:r,state:a})},replace:(r,a,o)=>{a=MD(a),n({task:()=>{d.replaceState(r,a),s({type:"REPLACE"})},navigateOpts:o,type:"REPLACE",path:r,state:a})},go:(r,a)=>{n({task:()=>{d.go(r),s({type:"GO",index:r})},navigateOpts:a,type:"GO"})},back:r=>{n({task:()=>{d.back((r==null?void 0:r.ignoreBlocker)??!1),s({type:"BACK"})},navigateOpts:r,type:"BACK"})},forward:r=>{n({task:()=>{d.forward((r==null?void 0:r.ignoreBlocker)??!1),s({type:"FORWARD"})},navigateOpts:r,type:"FORWARD"})},createHref:r=>d.createHref(r),block:r=>{var a;if(!d.setBlockers)return()=>{};const o=((a=d.getBlockers)==null?void 0:a.call(d))??[];return d.setBlockers([...o,r]),()=>{var c,u;const h=((c=d.getBlockers)==null?void 0:c.call(d))??[];(u=d.setBlockers)==null||u.call(d,h.filter(l=>l!==r))}},flush:()=>{var r;return(r=d.flush)==null?void 0:r.call(d)},destroy:()=>{var r;return(r=d.destroy)==null?void 0:r.call(d)},notify:s}}function MD(d){return d||(d={}),{...d,key:aie()}}function hH(d){const e=(d==null?void 0:d.window)??(typeof document<"u"?window:void 0),t=e.history.pushState,s=e.history.replaceState;let i=[];const n=()=>i,r=M=>i=M,a=(d==null?void 0:d.createHref)??(M=>M),o=(d==null?void 0:d.parseLocation)??(()=>Sm(`${e.location.pathname}${e.location.search}${e.location.hash}`,e.history.state));let c=o(),u,h=!1,l=!1,f=!1;const p=()=>c;let m,g;const y=()=>{m&&(C._ignoreSubscribers=!0,(m.isPush?e.history.pushState:e.history.replaceState)(m.state,"",m.href),C._ignoreSubscribers=!1,m=void 0,g=void 0,u=void 0)},w=(M,_,N)=>{const A=a(_);g||(u=c),c=Sm(_,N),m={href:A,state:N,isPush:(m==null?void 0:m.isPush)||M==="push"},g||(g=Promise.resolve().then(()=>y()))},b=()=>{c=o(),C.notify({type:"POP"})},S=async()=>{if(h){h=!1;return}if(l)l=!1;else{const M=n();if(typeof document<"u"&&M.length)for(const _ of M){const N=o();if(await _.blockerFn({currentLocation:c,nextLocation:N,action:"POP"})){h=!0,e.history.go(1),C.notify({type:"POP"});return}}}c=o(),C.notify({type:"POP"})},v=M=>{if(f){f=!1;return}let _=!1;const N=n();if(typeof document<"u"&&N.length)for(const A of N){const R=A.enableBeforeUnload??!0;if(R===!0){_=!0;break}if(typeof R=="function"&&R()===!0){_=!0;break}}if(_)return M.preventDefault(),M.returnValue=""},C=uH({getLocation:p,getLength:()=>e.history.length,pushState:(M,_)=>w("push",M,_),replaceState:(M,_)=>w("replace",M,_),back:M=>(M&&(l=!0),f=!0,e.history.back()),forward:M=>{M&&(l=!0),f=!0,e.history.forward()},go:M=>e.history.go(M),createHref:M=>a(M),flush:y,destroy:()=>{e.history.pushState=t,e.history.replaceState=s,e.removeEventListener(CD,v,{capture:!0}),e.removeEventListener(ID,S)},onBlocked:M=>{u&&c!==u&&(c=u,M())},getBlockers:n,setBlockers:r});return e.addEventListener(CD,v,{capture:!0}),e.addEventListener(ID,S),e.history.pushState=function(...M){const _=t.apply(e.history,M);return C._ignoreSubscribers||b(),_},e.history.replaceState=function(...M){const _=s.apply(e.history,M);return C._ignoreSubscribers||b(),_},C}function nie(d){const e=typeof document<"u"?window:void 0;return hH({window:e,parseLocation:()=>{const t=e.location.hash.split("#").slice(1).join("#")??"/";return Sm(t,e.history.state)},createHref:t=>`${e.location.pathname}${e.location.search}#${t}`})}function rie(d={initialEntries:["/"]}){const e=d.initialEntries;let t=d.initialIndex??e.length-1;const s=e.map(()=>({}));return uH({getLocation:()=>Sm(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 Sm(d,e){const t=d.indexOf("#"),s=d.indexOf("?");return{href:d,pathname:d.substring(0,t>0?s>0?Math.min(t,s):t:s>0?s:d.length),hash:t>-1?d.substring(t):"",search:s>-1?d.slice(s,t===-1?void 0:t):"",state:e||{}}}function aie(){return(Math.random()+1).toString(36).substring(7)}var oie="Invariant failed";function ca(d,e){if(!d)throw new Error(oie)}const KP=B.createContext(null);function lH(){return typeof document>"u"?KP:window.__TSR_ROUTER_CONTEXT__?window.__TSR_ROUTER_CONTEXT__:(window.__TSR_ROUTER_CONTEXT__=KP,KP)}function Rh(d){const e=B.useContext(lH());return d==null||d.warn,e}var fH={exports:{}},pH={},mH={exports:{}},gH={};/** +`+n.stack}return{value:d,source:e,stack:i,digest:null}}function WP(d,e,t){return{value:d,source:null,stack:t??null,digest:e??null}}function dM(d,e){try{console.error(e.value)}catch(t){setTimeout(function(){throw t})}}var Bse=typeof WeakMap=="function"?WeakMap:Map;function R6(d,e,t){t=Bc(-1,t),t.tag=3,t.payload={element:null};var s=e.value;return t.callback=function(){$1||($1=!0,wM=s),dM(d,e)},t}function D6(d,e,t){t=Bc(-1,t),t.tag=3;var s=d.type.getDerivedStateFromError;if(typeof s=="function"){var i=e.value;t.payload=function(){return s(i)},t.callback=function(){dM(d,e)}}var n=d.stateNode;return n!==null&&typeof n.componentDidCatch=="function"&&(t.callback=function(){dM(d,e),typeof s!="function"&&(dh===null?dh=new Set([this]):dh.add(this));var r=e.stack;this.componentDidCatch(e.value,{componentStack:r!==null?r:""})}),t}function dD(d,e,t){var s=d.pingCache;if(s===null){s=d.pingCache=new Bse;var i=new Set;s.set(e,i)}else i=s.get(e),i===void 0&&(i=new Set,s.set(e,i));i.has(t)||(i.add(t),d=$se.bind(null,d,e,t),e.then(d,d))}function cD(d){do{var e;if((e=d.tag===13)&&(e=d.memoizedState,e=e!==null?e.dehydrated!==null:!0),e)return d;d=d.return}while(d!==null);return null}function uD(d,e,t,s,i){return d.mode&1?(d.flags|=65536,d.lanes=i,d):(d===e?d.flags|=65536:(d.flags|=128,t.flags|=131072,t.flags&=-52805,t.tag===1&&(t.alternate===null?t.tag=17:(e=Bc(-1,1),e.tag=2,oh(t,e,1))),t.lanes|=1),d)}var Nse=Yc.ReactCurrentOwner,Rr=!1;function lr(d,e,t,s){e.child=d===null?l6(e,null,t,s):ym(e,d.child,t,s)}function hD(d,e,t,s,i){t=t.render;var n=e.ref;return Qp(e,i),s=L_(d,e,t,s,n,i),t=B_(),d!==null&&!Rr?(e.updateQueue=d.updateQueue,e.flags&=-2053,d.lanes&=~i,Uc(d,e,i)):(bi&&t&&k_(e),e.flags|=1,lr(d,e,s,i),e.child)}function lD(d,e,t,s,i){if(d===null){var n=t.type;return typeof n=="function"&&!U_(n)&&n.defaultProps===void 0&&t.compare===null&&t.defaultProps===void 0?(e.tag=15,e.type=n,q6(d,e,n,s,i)):(d=KS(t.type,null,s,e,e.mode,i),d.ref=e.ref,d.return=e,e.child=d)}if(n=d.child,!(d.lanes&i)){var r=n.memoizedProps;if(t=t.compare,t=t!==null?t:x0,t(r,s)&&d.ref===e.ref)return Uc(d,e,i)}return e.flags|=1,d=uh(n,s),d.ref=e.ref,d.return=e,e.child=d}function q6(d,e,t,s,i){if(d!==null){var n=d.memoizedProps;if(x0(n,s)&&d.ref===e.ref)if(Rr=!1,e.pendingProps=s=n,(d.lanes&i)!==0)d.flags&131072&&(Rr=!0);else return e.lanes=d.lanes,Uc(d,e,i)}return cM(d,e,t,s,i)}function V6(d,e,t){var s=e.pendingProps,i=s.children,n=d!==null?d.memoizedState:null;if(s.mode==="hidden")if(!(e.mode&1))e.memoizedState={baseLanes:0,cachePool:null,transitions:null},ci(Lp,ia),ia|=t;else{if(!(t&1073741824))return d=n!==null?n.baseLanes|t:t,e.lanes=e.childLanes=1073741824,e.memoizedState={baseLanes:d,cachePool:null,transitions:null},e.updateQueue=null,ci(Lp,ia),ia|=d,null;e.memoizedState={baseLanes:0,cachePool:null,transitions:null},s=n!==null?n.baseLanes:t,ci(Lp,ia),ia|=s}else n!==null?(s=n.baseLanes|t,e.memoizedState=null):s=t,ci(Lp,ia),ia|=s;return lr(d,e,i,t),e.child}function F6(d,e){var t=e.ref;(d===null&&t!==null||d!==null&&d.ref!==t)&&(e.flags|=512,e.flags|=2097152)}function cM(d,e,t,s,i){var n=Vr(t)?Hl:ir.current;return n=mm(e,n),Qp(e,i),t=L_(d,e,t,s,n,i),s=B_(),d!==null&&!Rr?(e.updateQueue=d.updateQueue,e.flags&=-2053,d.lanes&=~i,Uc(d,e,i)):(bi&&s&&k_(e),e.flags|=1,lr(d,e,t,i),e.child)}function fD(d,e,t,s,i){if(Vr(t)){var n=!0;D1(e)}else n=!1;if(Qp(e,i),e.stateNode===null)jS(d,e),E6(e,t,s),oM(e,t,s,i),s=!0;else if(d===null){var r=e.stateNode,a=e.memoizedProps;r.props=a;var o=r.context,c=t.contextType;typeof c=="object"&&c!==null?c=oo(c):(c=Vr(t)?Hl:ir.current,c=mm(e,c));var u=t.getDerivedStateFromProps,h=typeof u=="function"||typeof r.getSnapshotBeforeUpdate=="function";h||typeof r.UNSAFE_componentWillReceiveProps!="function"&&typeof r.componentWillReceiveProps!="function"||(a!==s||o!==c)&&oD(e,r,s,c),Ru=!1;var l=e.memoizedState;r.state=l,G1(e,s,r,i),o=e.memoizedState,a!==s||l!==o||qr.current||Ru?(typeof u=="function"&&(aM(e,t,u,s),o=e.memoizedState),(a=Ru||aD(e,t,a,s,l,o,c))?(h||typeof r.UNSAFE_componentWillMount!="function"&&typeof r.componentWillMount!="function"||(typeof r.componentWillMount=="function"&&r.componentWillMount(),typeof r.UNSAFE_componentWillMount=="function"&&r.UNSAFE_componentWillMount()),typeof r.componentDidMount=="function"&&(e.flags|=4194308)):(typeof r.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=s,e.memoizedState=o),r.props=s,r.state=o,r.context=c,s=a):(typeof r.componentDidMount=="function"&&(e.flags|=4194308),s=!1)}else{r=e.stateNode,p6(d,e),a=e.memoizedProps,c=e.type===e.elementType?a:To(e.type,a),r.props=c,h=e.pendingProps,l=r.context,o=t.contextType,typeof o=="object"&&o!==null?o=oo(o):(o=Vr(t)?Hl:ir.current,o=mm(e,o));var f=t.getDerivedStateFromProps;(u=typeof f=="function"||typeof r.getSnapshotBeforeUpdate=="function")||typeof r.UNSAFE_componentWillReceiveProps!="function"&&typeof r.componentWillReceiveProps!="function"||(a!==h||l!==o)&&oD(e,r,s,o),Ru=!1,l=e.memoizedState,r.state=l,G1(e,s,r,i);var p=e.memoizedState;a!==h||l!==p||qr.current||Ru?(typeof f=="function"&&(aM(e,t,f,s),p=e.memoizedState),(c=Ru||aD(e,t,c,s,l,p,o)||!1)?(u||typeof r.UNSAFE_componentWillUpdate!="function"&&typeof r.componentWillUpdate!="function"||(typeof r.componentWillUpdate=="function"&&r.componentWillUpdate(s,p,o),typeof r.UNSAFE_componentWillUpdate=="function"&&r.UNSAFE_componentWillUpdate(s,p,o)),typeof r.componentDidUpdate=="function"&&(e.flags|=4),typeof r.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof r.componentDidUpdate!="function"||a===d.memoizedProps&&l===d.memoizedState||(e.flags|=4),typeof r.getSnapshotBeforeUpdate!="function"||a===d.memoizedProps&&l===d.memoizedState||(e.flags|=1024),e.memoizedProps=s,e.memoizedState=p),r.props=s,r.state=p,r.context=o,s=c):(typeof r.componentDidUpdate!="function"||a===d.memoizedProps&&l===d.memoizedState||(e.flags|=4),typeof r.getSnapshotBeforeUpdate!="function"||a===d.memoizedProps&&l===d.memoizedState||(e.flags|=1024),s=!1)}return uM(d,e,t,s,n,i)}function uM(d,e,t,s,i,n){F6(d,e);var r=(e.flags&128)!==0;if(!s&&!r)return i&&ZR(e,t,!1),Uc(d,e,n);s=e.stateNode,Nse.current=e;var a=r&&typeof t.getDerivedStateFromError!="function"?null:s.render();return e.flags|=1,d!==null&&r?(e.child=ym(e,d.child,null,n),e.child=ym(e,null,a,n)):lr(d,e,a,n),e.memoizedState=s.state,i&&ZR(e,t,!0),e.child}function H6(d){var e=d.stateNode;e.pendingContext?YR(d,e.pendingContext,e.pendingContext!==e.context):e.context&&YR(d,e.context,!1),C_(d,e.containerInfo)}function pD(d,e,t,s,i){return gm(),v_(i),e.flags|=256,lr(d,e,t,s),e.child}var hM={dehydrated:null,treeContext:null,retryLane:0};function lM(d){return{baseLanes:d,cachePool:null,transitions:null}}function G6(d,e,t){var s=e.pendingProps,i=Ci.current,n=!1,r=(e.flags&128)!==0,a;if((a=r)||(a=d!==null&&d.memoizedState===null?!1:(i&2)!==0),a?(n=!0,e.flags&=-129):(d===null||d.memoizedState!==null)&&(i|=1),ci(Ci,i&1),d===null)return nM(e),d=e.memoizedState,d!==null&&(d=d.dehydrated,d!==null)?(e.mode&1?d.data==="$!"?e.lanes=8:e.lanes=1073741824:e.lanes=1,null):(r=s.children,d=s.fallback,n?(s=e.mode,n=e.child,r={mode:"hidden",children:r},!(s&1)&&n!==null?(n.childLanes=0,n.pendingProps=r):n=lT(r,s,0,null),d=El(d,s,t,null),n.return=e,d.return=e,n.sibling=d,e.child=n,e.child.memoizedState=lM(t),e.memoizedState=hM,d):R_(e,r));if(i=d.memoizedState,i!==null&&(a=i.dehydrated,a!==null))return Ese(d,e,r,s,a,i,t);if(n){n=s.fallback,r=e.mode,i=d.child,a=i.sibling;var o={mode:"hidden",children:s.children};return!(r&1)&&e.child!==i?(s=e.child,s.childLanes=0,s.pendingProps=o,e.deletions=null):(s=uh(i,o),s.subtreeFlags=i.subtreeFlags&14680064),a!==null?n=uh(a,n):(n=El(n,r,t,null),n.flags|=2),n.return=e,s.return=e,s.sibling=n,e.child=s,s=n,n=e.child,r=d.child.memoizedState,r=r===null?lM(t):{baseLanes:r.baseLanes|t,cachePool:null,transitions:r.transitions},n.memoizedState=r,n.childLanes=d.childLanes&~t,e.memoizedState=hM,s}return n=d.child,d=n.sibling,s=uh(n,{mode:"visible",children:s.children}),!(e.mode&1)&&(s.lanes=t),s.return=e,s.sibling=null,d!==null&&(t=e.deletions,t===null?(e.deletions=[d],e.flags|=16):t.push(d)),e.child=s,e.memoizedState=null,s}function R_(d,e){return e=lT({mode:"visible",children:e},d.mode,0,null),e.return=d,d.child=e}function Yk(d,e,t,s){return s!==null&&v_(s),ym(e,d.child,null,t),d=R_(e,e.pendingProps.children),d.flags|=2,e.memoizedState=null,d}function Ese(d,e,t,s,i,n,r){if(t)return e.flags&256?(e.flags&=-257,s=WP(Error(nt(422))),Yk(d,e,r,s)):e.memoizedState!==null?(e.child=d.child,e.flags|=128,null):(n=s.fallback,i=e.mode,s=lT({mode:"visible",children:s.children},i,0,null),n=El(n,i,r,null),n.flags|=2,s.return=e,n.return=e,s.sibling=n,e.child=s,e.mode&1&&ym(e,d.child,null,r),e.child.memoizedState=lM(r),e.memoizedState=hM,n);if(!(e.mode&1))return Yk(d,e,r,null);if(i.data==="$!"){if(s=i.nextSibling&&i.nextSibling.dataset,s)var a=s.dgst;return s=a,n=Error(nt(419)),s=WP(n,s,void 0),Yk(d,e,r,s)}if(a=(r&d.childLanes)!==0,Rr||a){if(s=xn,s!==null){switch(r&-r){case 4:i=2;break;case 16:i=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:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(s.suspendedLanes|r)?0:i,i!==0&&i!==n.retryLane&&(n.retryLane=i,Gc(d,i),qo(s,d,i,-1))}return G_(),s=WP(Error(nt(421))),Yk(d,e,r,s)}return i.data==="$?"?(e.flags|=128,e.child=d.child,e=Kse.bind(null,d),i._reactRetry=e,null):(d=n.treeContext,ma=ah(i.nextSibling),ya=e,bi=!0,Co=null,d!==null&&(Qa[Ya++]=Ic,Qa[Ya++]=Cc,Qa[Ya++]=Gl,Ic=d.id,Cc=d.overflow,Gl=e),e=R_(e,s.children),e.flags|=4096,e)}function mD(d,e,t){d.lanes|=e;var s=d.alternate;s!==null&&(s.lanes|=e),rM(d.return,e,t)}function jP(d,e,t,s,i){var n=d.memoizedState;n===null?d.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:s,tail:t,tailMode:i}:(n.isBackwards=e,n.rendering=null,n.renderingStartTime=0,n.last=s,n.tail=t,n.tailMode=i)}function U6(d,e,t){var s=e.pendingProps,i=s.revealOrder,n=s.tail;if(lr(d,e,s.children,t),s=Ci.current,s&2)s=s&1|2,e.flags|=128;else{if(d!==null&&d.flags&128)e:for(d=e.child;d!==null;){if(d.tag===13)d.memoizedState!==null&&mD(d,t,e);else if(d.tag===19)mD(d,t,e);else if(d.child!==null){d.child.return=d,d=d.child;continue}if(d===e)break e;for(;d.sibling===null;){if(d.return===null||d.return===e)break e;d=d.return}d.sibling.return=d.return,d=d.sibling}s&=1}if(ci(Ci,s),!(e.mode&1))e.memoizedState=null;else switch(i){case"forwards":for(t=e.child,i=null;t!==null;)d=t.alternate,d!==null&&U1(d)===null&&(i=t),t=t.sibling;t=i,t===null?(i=e.child,e.child=null):(i=t.sibling,t.sibling=null),jP(e,!1,i,t,n);break;case"backwards":for(t=null,i=e.child,e.child=null;i!==null;){if(d=i.alternate,d!==null&&U1(d)===null){e.child=i;break}d=i.sibling,i.sibling=t,t=i,i=d}jP(e,!0,t,null,n);break;case"together":jP(e,!1,null,null,void 0);break;default:e.memoizedState=null}return e.child}function jS(d,e){!(e.mode&1)&&d!==null&&(d.alternate=null,e.alternate=null,e.flags|=2)}function Uc(d,e,t){if(d!==null&&(e.dependencies=d.dependencies),Wl|=e.lanes,!(t&e.childLanes))return null;if(d!==null&&e.child!==d.child)throw Error(nt(153));if(e.child!==null){for(d=e.child,t=uh(d,d.pendingProps),e.child=t,t.return=e;d.sibling!==null;)d=d.sibling,t=t.sibling=uh(d,d.pendingProps),t.return=e;t.sibling=null}return e.child}function Rse(d,e,t){switch(e.tag){case 3:H6(e),gm();break;case 5:m6(e);break;case 1:Vr(e.type)&&D1(e);break;case 4:C_(e,e.stateNode.containerInfo);break;case 10:var s=e.type._context,i=e.memoizedProps.value;ci(F1,s._currentValue),s._currentValue=i;break;case 13:if(s=e.memoizedState,s!==null)return s.dehydrated!==null?(ci(Ci,Ci.current&1),e.flags|=128,null):t&e.child.childLanes?G6(d,e,t):(ci(Ci,Ci.current&1),d=Uc(d,e,t),d!==null?d.sibling:null);ci(Ci,Ci.current&1);break;case 19:if(s=(t&e.childLanes)!==0,d.flags&128){if(s)return U6(d,e,t);e.flags|=128}if(i=e.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),ci(Ci,Ci.current),s)break;return null;case 22:case 23:return e.lanes=0,V6(d,e,t)}return Uc(d,e,t)}var W6,fM,j6,z6;W6=function(d,e){for(var t=e.child;t!==null;){if(t.tag===5||t.tag===6)d.appendChild(t.stateNode);else if(t.tag!==4&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return;t=t.return}t.sibling.return=t.return,t=t.sibling}};fM=function(){};j6=function(d,e,t,s){var i=d.memoizedProps;if(i!==s){d=e.stateNode,Tl(Ld.current);var n=null;switch(t){case"input":i=EC(d,i),s=EC(d,s),n=[];break;case"select":i=Ai({},i,{value:void 0}),s=Ai({},s,{value:void 0}),n=[];break;case"textarea":i=qC(d,i),s=qC(d,s),n=[];break;default:typeof i.onClick!="function"&&typeof s.onClick=="function"&&(d.onclick=E1)}FC(t,s);var r;t=null;for(c in i)if(!s.hasOwnProperty(c)&&i.hasOwnProperty(c)&&i[c]!=null)if(c==="style"){var a=i[c];for(r in a)a.hasOwnProperty(r)&&(t||(t={}),t[r]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(w0.hasOwnProperty(c)?n||(n=[]):(n=n||[]).push(c,null));for(c in s){var o=s[c];if(a=i!=null?i[c]:void 0,s.hasOwnProperty(c)&&o!==a&&(o!=null||a!=null))if(c==="style")if(a){for(r in a)!a.hasOwnProperty(r)||o&&o.hasOwnProperty(r)||(t||(t={}),t[r]="");for(r in o)o.hasOwnProperty(r)&&a[r]!==o[r]&&(t||(t={}),t[r]=o[r])}else t||(n||(n=[]),n.push(c,t)),t=o;else c==="dangerouslySetInnerHTML"?(o=o?o.__html:void 0,a=a?a.__html:void 0,o!=null&&a!==o&&(n=n||[]).push(c,o)):c==="children"?typeof o!="string"&&typeof o!="number"||(n=n||[]).push(c,""+o):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&(w0.hasOwnProperty(c)?(o!=null&&c==="onScroll"&&ui("scroll",d),n||a===o||(n=[])):(n=n||[]).push(c,o))}t&&(n=n||[]).push("style",t);var c=n;(e.updateQueue=c)&&(e.flags|=4)}};z6=function(d,e,t,s){t!==s&&(e.flags|=4)};function sy(d,e){if(!bi)switch(d.tailMode){case"hidden":e=d.tail;for(var t=null;e!==null;)e.alternate!==null&&(t=e),e=e.sibling;t===null?d.tail=null:t.sibling=null;break;case"collapsed":t=d.tail;for(var s=null;t!==null;)t.alternate!==null&&(s=t),t=t.sibling;s===null?e||d.tail===null?d.tail=null:d.tail.sibling=null:s.sibling=null}}function Yn(d){var e=d.alternate!==null&&d.alternate.child===d.child,t=0,s=0;if(e)for(var i=d.child;i!==null;)t|=i.lanes|i.childLanes,s|=i.subtreeFlags&14680064,s|=i.flags&14680064,i.return=d,i=i.sibling;else for(i=d.child;i!==null;)t|=i.lanes|i.childLanes,s|=i.subtreeFlags,s|=i.flags,i.return=d,i=i.sibling;return d.subtreeFlags|=s,d.childLanes=t,e}function Dse(d,e,t){var s=e.pendingProps;switch(S_(e),e.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Yn(e),null;case 1:return Vr(e.type)&&R1(),Yn(e),null;case 3:return s=e.stateNode,wm(),pi(qr),pi(ir),__(),s.pendingContext&&(s.context=s.pendingContext,s.pendingContext=null),(d===null||d.child===null)&&(Xk(e)?e.flags|=4:d===null||d.memoizedState.isDehydrated&&!(e.flags&256)||(e.flags|=1024,Co!==null&&(SM(Co),Co=null))),fM(d,e),Yn(e),null;case 5:M_(e);var i=Tl(_0.current);if(t=e.type,d!==null&&e.stateNode!=null)j6(d,e,t,s,i),d.ref!==e.ref&&(e.flags|=512,e.flags|=2097152);else{if(!s){if(e.stateNode===null)throw Error(nt(166));return Yn(e),null}if(d=Tl(Ld.current),Xk(e)){s=e.stateNode,t=e.type;var n=e.memoizedProps;switch(s[Td]=e,s[C0]=n,d=(e.mode&1)!==0,t){case"dialog":ui("cancel",s),ui("close",s);break;case"iframe":case"object":case"embed":ui("load",s);break;case"video":case"audio":for(i=0;i<\/script>",d=d.removeChild(d.firstChild)):typeof s.is=="string"?d=r.createElement(t,{is:s.is}):(d=r.createElement(t),t==="select"&&(r=d,s.multiple?r.multiple=!0:s.size&&(r.size=s.size))):d=r.createElementNS(d,t),d[Td]=e,d[C0]=s,W6(d,e,!1,!1),e.stateNode=d;e:{switch(r=HC(t,s),t){case"dialog":ui("cancel",d),ui("close",d),i=s;break;case"iframe":case"object":case"embed":ui("load",d),i=s;break;case"video":case"audio":for(i=0;ikm&&(e.flags|=128,s=!0,sy(n,!1),e.lanes=4194304)}else{if(!s)if(d=U1(r),d!==null){if(e.flags|=128,s=!0,t=d.updateQueue,t!==null&&(e.updateQueue=t,e.flags|=4),sy(n,!0),n.tail===null&&n.tailMode==="hidden"&&!r.alternate&&!bi)return Yn(e),null}else 2*ji()-n.renderingStartTime>km&&t!==1073741824&&(e.flags|=128,s=!0,sy(n,!1),e.lanes=4194304);n.isBackwards?(r.sibling=e.child,e.child=r):(t=n.last,t!==null?t.sibling=r:e.child=r,n.last=r)}return n.tail!==null?(e=n.tail,n.rendering=e,n.tail=e.sibling,n.renderingStartTime=ji(),e.sibling=null,t=Ci.current,ci(Ci,s?t&1|2:t&1),e):(Yn(e),null);case 22:case 23:return H_(),s=e.memoizedState!==null,d!==null&&d.memoizedState!==null!==s&&(e.flags|=8192),s&&e.mode&1?ia&1073741824&&(Yn(e),e.subtreeFlags&6&&(e.flags|=8192)):Yn(e),null;case 24:return null;case 25:return null}throw Error(nt(156,e.tag))}function qse(d,e){switch(S_(e),e.tag){case 1:return Vr(e.type)&&R1(),d=e.flags,d&65536?(e.flags=d&-65537|128,e):null;case 3:return wm(),pi(qr),pi(ir),__(),d=e.flags,d&65536&&!(d&128)?(e.flags=d&-65537|128,e):null;case 5:return M_(e),null;case 13:if(pi(Ci),d=e.memoizedState,d!==null&&d.dehydrated!==null){if(e.alternate===null)throw Error(nt(340));gm()}return d=e.flags,d&65536?(e.flags=d&-65537|128,e):null;case 19:return pi(Ci),null;case 4:return wm(),null;case 10:return x_(e.type._context),null;case 22:case 23:return H_(),null;case 24:return null;default:return null}}var Zk=!1,sr=!1,Vse=typeof WeakSet=="function"?WeakSet:Set,Pt=null;function Ap(d,e){var t=d.ref;if(t!==null)if(typeof t=="function")try{t(null)}catch(s){qi(d,e,s)}else t.current=null}function pM(d,e,t){try{t()}catch(s){qi(d,e,s)}}var gD=!1;function Fse(d,e){if(YC=L1,d=Y4(),b_(d)){if("selectionStart"in d)var t={start:d.selectionStart,end:d.selectionEnd};else e:{t=(t=d.ownerDocument)&&t.defaultView||window;var s=t.getSelection&&t.getSelection();if(s&&s.rangeCount!==0){t=s.anchorNode;var i=s.anchorOffset,n=s.focusNode;s=s.focusOffset;try{t.nodeType,n.nodeType}catch{t=null;break e}var r=0,a=-1,o=-1,c=0,u=0,h=d,l=null;t:for(;;){for(var f;h!==t||i!==0&&h.nodeType!==3||(a=r+i),h!==n||s!==0&&h.nodeType!==3||(o=r+s),h.nodeType===3&&(r+=h.nodeValue.length),(f=h.firstChild)!==null;)l=h,h=f;for(;;){if(h===d)break t;if(l===t&&++c===i&&(a=r),l===n&&++u===s&&(o=r),(f=h.nextSibling)!==null)break;h=l,l=h.parentNode}h=f}t=a===-1||o===-1?null:{start:a,end:o}}else t=null}t=t||{start:0,end:0}}else t=null;for(ZC={focusedElem:d,selectionRange:t},L1=!1,Pt=e;Pt!==null;)if(e=Pt,d=e.child,(e.subtreeFlags&1028)!==0&&d!==null)d.return=e,Pt=d;else for(;Pt!==null;){e=Pt;try{var p=e.alternate;if(e.flags&1024)switch(e.tag){case 0:case 11:case 15:break;case 1:if(p!==null){var m=p.memoizedProps,g=p.memoizedState,y=e.stateNode,w=y.getSnapshotBeforeUpdate(e.elementType===e.type?m:To(e.type,m),g);y.__reactInternalSnapshotBeforeUpdate=w}break;case 3:var b=e.stateNode.containerInfo;b.nodeType===1?b.textContent="":b.nodeType===9&&b.documentElement&&b.removeChild(b.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(nt(163))}}catch(S){qi(e,e.return,S)}if(d=e.sibling,d!==null){d.return=e.return,Pt=d;break}Pt=e.return}return p=gD,gD=!1,p}function zy(d,e,t){var s=e.updateQueue;if(s=s!==null?s.lastEffect:null,s!==null){var i=s=s.next;do{if((i.tag&d)===d){var n=i.destroy;i.destroy=void 0,n!==void 0&&pM(e,t,n)}i=i.next}while(i!==s)}}function uT(d,e){if(e=e.updateQueue,e=e!==null?e.lastEffect:null,e!==null){var t=e=e.next;do{if((t.tag&d)===d){var s=t.create;t.destroy=s()}t=t.next}while(t!==e)}}function mM(d){var e=d.ref;if(e!==null){var t=d.stateNode;switch(d.tag){case 5:d=t;break;default:d=t}typeof e=="function"?e(d):e.current=d}}function $6(d){var e=d.alternate;e!==null&&(d.alternate=null,$6(e)),d.child=null,d.deletions=null,d.sibling=null,d.tag===5&&(e=d.stateNode,e!==null&&(delete e[Td],delete e[C0],delete e[tM],delete e[vse],delete e[Tse])),d.stateNode=null,d.return=null,d.dependencies=null,d.memoizedProps=null,d.memoizedState=null,d.pendingProps=null,d.stateNode=null,d.updateQueue=null}function K6(d){return d.tag===5||d.tag===3||d.tag===4}function yD(d){e:for(;;){for(;d.sibling===null;){if(d.return===null||K6(d.return))return null;d=d.return}for(d.sibling.return=d.return,d=d.sibling;d.tag!==5&&d.tag!==6&&d.tag!==18;){if(d.flags&2||d.child===null||d.tag===4)continue e;d.child.return=d,d=d.child}if(!(d.flags&2))return d.stateNode}}function gM(d,e,t){var s=d.tag;if(s===5||s===6)d=d.stateNode,e?t.nodeType===8?t.parentNode.insertBefore(d,e):t.insertBefore(d,e):(t.nodeType===8?(e=t.parentNode,e.insertBefore(d,t)):(e=t,e.appendChild(d)),t=t._reactRootContainer,t!=null||e.onclick!==null||(e.onclick=E1));else if(s!==4&&(d=d.child,d!==null))for(gM(d,e,t),d=d.sibling;d!==null;)gM(d,e,t),d=d.sibling}function yM(d,e,t){var s=d.tag;if(s===5||s===6)d=d.stateNode,e?t.insertBefore(d,e):t.appendChild(d);else if(s!==4&&(d=d.child,d!==null))for(yM(d,e,t),d=d.sibling;d!==null;)yM(d,e,t),d=d.sibling}var qn=null,xo=!1;function vu(d,e,t){for(t=t.child;t!==null;)X6(d,e,t),t=t.sibling}function X6(d,e,t){if(Ad&&typeof Ad.onCommitFiberUnmount=="function")try{Ad.onCommitFiberUnmount(sT,t)}catch{}switch(t.tag){case 5:sr||Ap(t,e);case 6:var s=qn,i=xo;qn=null,vu(d,e,t),qn=s,xo=i,qn!==null&&(xo?(d=qn,t=t.stateNode,d.nodeType===8?d.parentNode.removeChild(t):d.removeChild(t)):qn.removeChild(t.stateNode));break;case 18:qn!==null&&(xo?(d=qn,t=t.stateNode,d.nodeType===8?qP(d.parentNode,t):d.nodeType===1&&qP(d,t),T0(d)):qP(qn,t.stateNode));break;case 4:s=qn,i=xo,qn=t.stateNode.containerInfo,xo=!0,vu(d,e,t),qn=s,xo=i;break;case 0:case 11:case 14:case 15:if(!sr&&(s=t.updateQueue,s!==null&&(s=s.lastEffect,s!==null))){i=s=s.next;do{var n=i,r=n.destroy;n=n.tag,r!==void 0&&(n&2||n&4)&&pM(t,e,r),i=i.next}while(i!==s)}vu(d,e,t);break;case 1:if(!sr&&(Ap(t,e),s=t.stateNode,typeof s.componentWillUnmount=="function"))try{s.props=t.memoizedProps,s.state=t.memoizedState,s.componentWillUnmount()}catch(a){qi(t,e,a)}vu(d,e,t);break;case 21:vu(d,e,t);break;case 22:t.mode&1?(sr=(s=sr)||t.memoizedState!==null,vu(d,e,t),sr=s):vu(d,e,t);break;default:vu(d,e,t)}}function wD(d){var e=d.updateQueue;if(e!==null){d.updateQueue=null;var t=d.stateNode;t===null&&(t=d.stateNode=new Vse),e.forEach(function(s){var i=Xse.bind(null,d,s);t.has(s)||(t.add(s),s.then(i,i))})}}function ko(d,e){var t=e.deletions;if(t!==null)for(var s=0;si&&(i=r),s&=~n}if(s=i,s=ji()-s,s=(120>s?120:480>s?480:1080>s?1080:1920>s?1920:3e3>s?3e3:4320>s?4320:1960*Gse(s/1960))-s,10d?16:d,Yu===null)var s=!1;else{if(d=Yu,Yu=null,K1=0,Is&6)throw Error(nt(331));var i=Is;for(Is|=4,Pt=d.current;Pt!==null;){var n=Pt,r=n.child;if(Pt.flags&16){var a=n.deletions;if(a!==null){for(var o=0;oji()-V_?Nl(d,0):q_|=t),Fr(d,e)}function iH(d,e){e===0&&(d.mode&1?(e=Uk,Uk<<=1,!(Uk&130023424)&&(Uk=4194304)):e=1);var t=yr();d=Gc(d,e),d!==null&&(Rw(d,e,t),Fr(d,t))}function Kse(d){var e=d.memoizedState,t=0;e!==null&&(t=e.retryLane),iH(d,t)}function Xse(d,e){var t=0;switch(d.tag){case 13:var s=d.stateNode,i=d.memoizedState;i!==null&&(t=i.retryLane);break;case 19:s=d.stateNode;break;default:throw Error(nt(314))}s!==null&&s.delete(e),iH(d,t)}var nH;nH=function(d,e,t){if(d!==null)if(d.memoizedProps!==e.pendingProps||qr.current)Rr=!0;else{if(!(d.lanes&t)&&!(e.flags&128))return Rr=!1,Rse(d,e,t);Rr=!!(d.flags&131072)}else Rr=!1,bi&&e.flags&1048576&&d6(e,V1,e.index);switch(e.lanes=0,e.tag){case 2:var s=e.type;jS(d,e),d=e.pendingProps;var i=mm(e,ir.current);Qp(e,t),i=L_(null,e,s,d,i,t);var n=B_();return e.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(e.tag=1,e.memoizedState=null,e.updateQueue=null,Vr(s)?(n=!0,D1(e)):n=!1,e.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,I_(e),i.updater=cT,e.stateNode=i,i._reactInternals=e,oM(e,s,d,t),e=uM(null,e,s,!0,n,t)):(e.tag=0,bi&&n&&k_(e),lr(null,e,i,t),e=e.child),e;case 16:s=e.elementType;e:{switch(jS(d,e),d=e.pendingProps,i=s._init,s=i(s._payload),e.type=s,i=e.tag=Yse(s),d=To(s,d),i){case 0:e=cM(null,e,s,d,t);break e;case 1:e=fD(null,e,s,d,t);break e;case 11:e=hD(null,e,s,d,t);break e;case 14:e=lD(null,e,s,To(s.type,d),t);break e}throw Error(nt(306,s,""))}return e;case 0:return s=e.type,i=e.pendingProps,i=e.elementType===s?i:To(s,i),cM(d,e,s,i,t);case 1:return s=e.type,i=e.pendingProps,i=e.elementType===s?i:To(s,i),fD(d,e,s,i,t);case 3:e:{if(H6(e),d===null)throw Error(nt(387));s=e.pendingProps,n=e.memoizedState,i=n.element,p6(d,e),G1(e,s,null,t);var r=e.memoizedState;if(s=r.element,n.isDehydrated)if(n={element:s,isDehydrated:!1,cache:r.cache,pendingSuspenseBoundaries:r.pendingSuspenseBoundaries,transitions:r.transitions},e.updateQueue.baseState=n,e.memoizedState=n,e.flags&256){i=bm(Error(nt(423)),e),e=pD(d,e,s,t,i);break e}else if(s!==i){i=bm(Error(nt(424)),e),e=pD(d,e,s,t,i);break e}else for(ma=ah(e.stateNode.containerInfo.firstChild),ya=e,bi=!0,Co=null,t=l6(e,null,s,t),e.child=t;t;)t.flags=t.flags&-3|4096,t=t.sibling;else{if(gm(),s===i){e=Uc(d,e,t);break e}lr(d,e,s,t)}e=e.child}return e;case 5:return m6(e),d===null&&nM(e),s=e.type,i=e.pendingProps,n=d!==null?d.memoizedProps:null,r=i.children,JC(s,i)?r=null:n!==null&&JC(s,n)&&(e.flags|=32),F6(d,e),lr(d,e,r,t),e.child;case 6:return d===null&&nM(e),null;case 13:return G6(d,e,t);case 4:return C_(e,e.stateNode.containerInfo),s=e.pendingProps,d===null?e.child=ym(e,null,s,t):lr(d,e,s,t),e.child;case 11:return s=e.type,i=e.pendingProps,i=e.elementType===s?i:To(s,i),hD(d,e,s,i,t);case 7:return lr(d,e,e.pendingProps,t),e.child;case 8:return lr(d,e,e.pendingProps.children,t),e.child;case 12:return lr(d,e,e.pendingProps.children,t),e.child;case 10:e:{if(s=e.type._context,i=e.pendingProps,n=e.memoizedProps,r=i.value,ci(F1,s._currentValue),s._currentValue=r,n!==null)if(Go(n.value,r)){if(n.children===i.children&&!qr.current){e=Uc(d,e,t);break e}}else for(n=e.child,n!==null&&(n.return=e);n!==null;){var a=n.dependencies;if(a!==null){r=n.child;for(var o=a.firstContext;o!==null;){if(o.context===s){if(n.tag===1){o=Bc(-1,t&-t),o.tag=2;var c=n.updateQueue;if(c!==null){c=c.shared;var u=c.pending;u===null?o.next=o:(o.next=u.next,u.next=o),c.pending=o}}n.lanes|=t,o=n.alternate,o!==null&&(o.lanes|=t),rM(n.return,t,e),a.lanes|=t;break}o=o.next}}else if(n.tag===10)r=n.type===e.type?null:n.child;else if(n.tag===18){if(r=n.return,r===null)throw Error(nt(341));r.lanes|=t,a=r.alternate,a!==null&&(a.lanes|=t),rM(r,t,e),r=n.sibling}else r=n.child;if(r!==null)r.return=n;else for(r=n;r!==null;){if(r===e){r=null;break}if(n=r.sibling,n!==null){n.return=r.return,r=n;break}r=r.return}n=r}lr(d,e,i.children,t),e=e.child}return e;case 9:return i=e.type,s=e.pendingProps.children,Qp(e,t),i=oo(i),s=s(i),e.flags|=1,lr(d,e,s,t),e.child;case 14:return s=e.type,i=To(s,e.pendingProps),i=To(s.type,i),lD(d,e,s,i,t);case 15:return q6(d,e,e.type,e.pendingProps,t);case 17:return s=e.type,i=e.pendingProps,i=e.elementType===s?i:To(s,i),jS(d,e),e.tag=1,Vr(s)?(d=!0,D1(e)):d=!1,Qp(e,t),E6(e,s,i),oM(e,s,i,t),uM(null,e,s,!0,d,t);case 19:return U6(d,e,t);case 22:return V6(d,e,t)}throw Error(nt(156,e.tag))};function rH(d,e){return L4(d,e)}function Qse(d,e,t,s){this.tag=d,this.key=t,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=s,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function to(d,e,t,s){return new Qse(d,e,t,s)}function U_(d){return d=d.prototype,!(!d||!d.isReactComponent)}function Yse(d){if(typeof d=="function")return U_(d)?1:0;if(d!=null){if(d=d.$$typeof,d===d_)return 11;if(d===c_)return 14}return 2}function uh(d,e){var t=d.alternate;return t===null?(t=to(d.tag,e,d.key,d.mode),t.elementType=d.elementType,t.type=d.type,t.stateNode=d.stateNode,t.alternate=d,d.alternate=t):(t.pendingProps=e,t.type=d.type,t.flags=0,t.subtreeFlags=0,t.deletions=null),t.flags=d.flags&14680064,t.childLanes=d.childLanes,t.lanes=d.lanes,t.child=d.child,t.memoizedProps=d.memoizedProps,t.memoizedState=d.memoizedState,t.updateQueue=d.updateQueue,e=d.dependencies,t.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},t.sibling=d.sibling,t.index=d.index,t.ref=d.ref,t}function KS(d,e,t,s,i,n){var r=2;if(s=d,typeof d=="function")U_(d)&&(r=1);else if(typeof d=="string")r=5;else e:switch(d){case vp:return El(t.children,i,n,e);case o_:r=8,i|=8;break;case AC:return d=to(12,t,e,i|2),d.elementType=AC,d.lanes=n,d;case LC:return d=to(13,t,e,i),d.elementType=LC,d.lanes=n,d;case BC:return d=to(19,t,e,i),d.elementType=BC,d.lanes=n,d;case m4:return lT(t,i,n,e);default:if(typeof d=="object"&&d!==null)switch(d.$$typeof){case f4:r=10;break e;case p4:r=9;break e;case d_:r=11;break e;case c_:r=14;break e;case Eu:r=16,s=null;break e}throw Error(nt(130,d==null?d:typeof d,""))}return e=to(r,t,e,i),e.elementType=d,e.type=s,e.lanes=n,e}function El(d,e,t,s){return d=to(7,d,s,e),d.lanes=t,d}function lT(d,e,t,s){return d=to(22,d,s,e),d.elementType=m4,d.lanes=t,d.stateNode={isHidden:!1},d}function zP(d,e,t){return d=to(6,d,null,e),d.lanes=t,d}function $P(d,e,t){return e=to(4,d.children!==null?d.children:[],d.key,e),e.lanes=t,e.stateNode={containerInfo:d.containerInfo,pendingChildren:null,implementation:d.implementation},e}function Zse(d,e,t,s,i){this.tag=e,this.containerInfo=d,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=IP(0),this.expirationTimes=IP(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=IP(0),this.identifierPrefix=s,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function W_(d,e,t,s,i,n,r,a,o){return d=new Zse(d,e,t,a,o),e===1?(e=1,n===!0&&(e|=8)):e=0,n=to(3,null,null,e),d.current=n,n.stateNode=d,n.memoizedState={element:s,isDehydrated:t,cache:null,transitions:null,pendingSuspenseBoundaries:null},I_(n),d}function Jse(d,e,t){var s=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(cH)}catch(d){console.error(d)}}cH(),c4.exports=Ia;var yT=c4.exports,PD=yT;MC.createRoot=PD.createRoot,MC.hydrateRoot=PD.hydrateRoot;const ID="popstate",CD="beforeunload";function uH(d){let e=d.getLocation();const t=new Set,s=r=>{e=d.getLocation(),t.forEach(a=>a({location:e,action:r}))},i=()=>{e=d.getLocation(),t.forEach(r=>r({location:e,action:{type:"ROLLBACK"}}))},n=async({task:r,navigateOpts:a,...o})=>{var c,u;if((a==null?void 0:a.ignoreBlocker)??!1){r();return}const l=((c=d.getBlockers)==null?void 0:c.call(d))??[],f=o.type==="PUSH"||o.type==="REPLACE";if(typeof document<"u"&&l.length&&f)for(const p of l){const m=Sm(o.path,o.state);if(await p.blockerFn({currentLocation:e,nextLocation:m,action:o.type})){(u=d.onBlocked)==null||u.call(d,i);return}}r()};return{get location(){return e},get length(){return d.getLength()},subscribers:t,subscribe:r=>(t.add(r),()=>{t.delete(r)}),push:(r,a,o)=>{a=MD(a),n({task:()=>{d.pushState(r,a),s({type:"PUSH"})},navigateOpts:o,type:"PUSH",path:r,state:a})},replace:(r,a,o)=>{a=MD(a),n({task:()=>{d.replaceState(r,a),s({type:"REPLACE"})},navigateOpts:o,type:"REPLACE",path:r,state:a})},go:(r,a)=>{n({task:()=>{d.go(r),s({type:"GO",index:r})},navigateOpts:a,type:"GO"})},back:r=>{n({task:()=>{d.back((r==null?void 0:r.ignoreBlocker)??!1),s({type:"BACK"})},navigateOpts:r,type:"BACK"})},forward:r=>{n({task:()=>{d.forward((r==null?void 0:r.ignoreBlocker)??!1),s({type:"FORWARD"})},navigateOpts:r,type:"FORWARD"})},createHref:r=>d.createHref(r),block:r=>{var a;if(!d.setBlockers)return()=>{};const o=((a=d.getBlockers)==null?void 0:a.call(d))??[];return d.setBlockers([...o,r]),()=>{var c,u;const h=((c=d.getBlockers)==null?void 0:c.call(d))??[];(u=d.setBlockers)==null||u.call(d,h.filter(l=>l!==r))}},flush:()=>{var r;return(r=d.flush)==null?void 0:r.call(d)},destroy:()=>{var r;return(r=d.destroy)==null?void 0:r.call(d)},notify:s}}function MD(d){return d||(d={}),{...d,key:aie()}}function hH(d){const e=(d==null?void 0:d.window)??(typeof document<"u"?window:void 0),t=e.history.pushState,s=e.history.replaceState;let i=[];const n=()=>i,r=M=>i=M,a=(d==null?void 0:d.createHref)??(M=>M),o=(d==null?void 0:d.parseLocation)??(()=>Sm(`${e.location.pathname}${e.location.search}${e.location.hash}`,e.history.state));let c=o(),u,h=!1,l=!1,f=!1;const p=()=>c;let m,g;const y=()=>{m&&(C._ignoreSubscribers=!0,(m.isPush?e.history.pushState:e.history.replaceState)(m.state,"",m.href),C._ignoreSubscribers=!1,m=void 0,g=void 0,u=void 0)},w=(M,_,N)=>{const A=a(_);g||(u=c),c=Sm(_,N),m={href:A,state:N,isPush:(m==null?void 0:m.isPush)||M==="push"},g||(g=Promise.resolve().then(()=>y()))},b=()=>{c=o(),C.notify({type:"POP"})},S=async()=>{if(h){h=!1;return}if(l)l=!1;else{const M=n();if(typeof document<"u"&&M.length)for(const _ of M){const N=o();if(await _.blockerFn({currentLocation:c,nextLocation:N,action:"POP"})){h=!0,e.history.go(1),C.notify({type:"POP"});return}}}c=o(),C.notify({type:"POP"})},v=M=>{if(f){f=!1;return}let _=!1;const N=n();if(typeof document<"u"&&N.length)for(const A of N){const R=A.enableBeforeUnload??!0;if(R===!0){_=!0;break}if(typeof R=="function"&&R()===!0){_=!0;break}}if(_)return M.preventDefault(),M.returnValue=""},C=uH({getLocation:p,getLength:()=>e.history.length,pushState:(M,_)=>w("push",M,_),replaceState:(M,_)=>w("replace",M,_),back:M=>(M&&(l=!0),f=!0,e.history.back()),forward:M=>{M&&(l=!0),f=!0,e.history.forward()},go:M=>e.history.go(M),createHref:M=>a(M),flush:y,destroy:()=>{e.history.pushState=t,e.history.replaceState=s,e.removeEventListener(CD,v,{capture:!0}),e.removeEventListener(ID,S)},onBlocked:M=>{u&&c!==u&&(c=u,M())},getBlockers:n,setBlockers:r});return e.addEventListener(CD,v,{capture:!0}),e.addEventListener(ID,S),e.history.pushState=function(...M){const _=t.apply(e.history,M);return C._ignoreSubscribers||b(),_},e.history.replaceState=function(...M){const _=s.apply(e.history,M);return C._ignoreSubscribers||b(),_},C}function nie(d){const e=typeof document<"u"?window:void 0;return hH({window:e,parseLocation:()=>{const t=e.location.hash.split("#").slice(1).join("#")??"/";return Sm(t,e.history.state)},createHref:t=>`${e.location.pathname}${e.location.search}#${t}`})}function rie(d={initialEntries:["/"]}){const e=d.initialEntries;let t=d.initialIndex??e.length-1;const s=e.map(()=>({}));return uH({getLocation:()=>Sm(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 Sm(d,e){const t=d.indexOf("#"),s=d.indexOf("?");return{href:d,pathname:d.substring(0,t>0?s>0?Math.min(t,s):t:s>0?s:d.length),hash:t>-1?d.substring(t):"",search:s>-1?d.slice(s,t===-1?void 0:t):"",state:e||{}}}function aie(){return(Math.random()+1).toString(36).substring(7)}var oie="Invariant failed";function ca(d,e){if(!d)throw new Error(oie)}const KP=B.createContext(null);function lH(){return typeof document>"u"?KP:window.__TSR_ROUTER_CONTEXT__?window.__TSR_ROUTER_CONTEXT__:(window.__TSR_ROUTER_CONTEXT__=KP,KP)}function Rh(d){const e=B.useContext(lH());return d==null||d.warn,e}var fH={exports:{}},pH={},mH={exports:{}},gH={};/** * @license React * use-sync-external-store-shim.production.js * @@ -54,19 +54,19 @@ Error generating stack: `+n.message+` * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var wT=B,yie=yH;function wie(d,e){return d===e&&(d!==0||1/d===1/e)||d!==d&&e!==e}var bie=typeof Object.is=="function"?Object.is:wie,kie=yie.useSyncExternalStore,Sie=wT.useRef,vie=wT.useEffect,Tie=wT.useMemo,Oie=wT.useDebugValue;pH.useSyncExternalStoreWithSelector=function(d,e,t,s,i){var n=Sie(null);if(n.current===null){var r={hasValue:!1,value:null};n.current=r}else r=n.current;n=Tie(function(){function o(f){if(!c){if(c=!0,u=f,f=s(f),i!==void 0&&r.hasValue){var p=r.value;if(i(p,f))return h=p}return h=f}if(p=h,bie(u,f))return p;var m=s(f);return i!==void 0&&i(p,m)?(u=f,p):(u=f,h=m)}var c=!1,u,h,l=t===void 0?null:t;return[function(){return o(e())},l===null?void 0:function(){return o(l())}]},[e,t,s,i]);var a=kie(d,n[0],n[1]);return vie(function(){r.hasValue=!0,r.value=a},[a]),Oie(a),a};fH.exports=pH;var xie=fH.exports;class Pie{constructor(e,t){this.listeners=new Set,this._batching=!1,this._flushing=0,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;const a=this.state;this.state=(i=this.options)!=null&&i.updateFn?this.options.updateFn(a)(s):s(a),(r=(n=this.options)==null?void 0:n.onUpdate)==null||r.call(n),this._flush()},this._flush=()=>{if(this._batching)return;const s=++this._flushing;this.listeners.forEach(i=>{this._flushing===s&&i()})},this.batch=s=>{if(this._batching)return s();this._batching=!0,s(),this._batching=!1,this._flush()},this.state=e,this.options=t}}function Iie(d,e=t=>t){return xie.useSyncExternalStoreWithSelector(d.subscribe,()=>d.state,()=>d.state,e,Cie)}function Cie(d,e){if(Object.is(d,e))return!0;if(typeof d!="object"||d===null||typeof e!="object"||e===null)return!1;if(d instanceof Map&&e instanceof Map){if(d.size!==e.size)return!1;for(const[s,i]of d)if(!e.has(s)||!Object.is(i,e.get(s)))return!1;return!0}if(d instanceof Set&&e instanceof Set){if(d.size!==e.size)return!1;for(const s of d)if(!e.has(s))return!1;return!0}const t=Object.keys(d);if(t.length!==Object.keys(e).length)return!1;for(let s=0;s{e.substring(0,1)==="?"&&(e=e.substring(1));const t=_ie(e);for(const s in t){const i=t[s];if(typeof i=="string")try{t[s]=d(i)}catch{}}return t}}function Nie(d,e){function t(s){if(typeof s=="object"&&s!==null)try{return d(s)}catch{}else if(typeof s=="string"&&typeof e=="function")try{return e(s),d(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=Mie(s).toString();return i?`?${i}`:""}}function Xy(d){return d[d.length-1]}function Eie(d){return typeof d=="function"}function Bp(d,e){return Eie(d)?d(e):d}function XS(d,e){return e.reduce((t,s)=>(t[s]=d[s],t),{})}function Ga(d,e){if(d===e)return d;const t=e,s=LD(d)&&LD(t);if(s||Tm(d)&&Tm(t)){const i=s?d:Object.keys(d),n=i.length,r=s?t:Object.keys(t),a=r.length,o=s?[]:{};let c=0;for(let u=0;u"u")return!0;const t=e.prototype;return!(!AD(t)||!t.hasOwnProperty("isPrototypeOf"))}function AD(d){return Object.prototype.toString.call(d)==="[object Object]"}function LD(d){return Array.isArray(d)&&d.length===Object.keys(d).length}function BD(d,e){let t=Object.keys(d);return e&&(t=t.filter(s=>d[s]!==void 0)),t}function Zp(d,e,t){if(d===e)return!0;if(typeof d!=typeof e)return!1;if(Tm(d)&&Tm(e)){const s=(t==null?void 0:t.ignoreUndefined)??!0,i=BD(d,s),n=BD(e,s);return!(t!=null&&t.partial)&&i.length!==n.length?!1:n.every(r=>Zp(d[r],e[r],t))}return Array.isArray(d)&&Array.isArray(e)?d.length!==e.length?!1:!d.some((s,i)=>!Zp(s,e[i],t)):!1}const Iy=typeof window<"u"?B.useLayoutEffect:B.useEffect;function mp(d){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),d==null||d(i)},s.reject=i=>{s.status="rejected",t(i)},s}function QP(d){const e=B.useRef({value:d,prev:null}),t=e.current.value;return d!==t&&(e.current={value:d,prev:t}),e.current.prev}function Rie(d,e,t={},s={}){const i=B.useRef(typeof IntersectionObserver=="function"),n=B.useRef(null);return B.useEffect(()=>{if(!(!d.current||!i.current||s.disabled))return n.current=new IntersectionObserver(([r])=>{e(r)},t),n.current.observe(d.current),()=>{var r;(r=n.current)==null||r.disconnect()}},[e,t,s.disabled,d]),n.current}function Die(d){const e=B.useRef(null);return B.useEffect(()=>{d&&(typeof d=="function"?d(e.current):d.current=e.current)}),e}function Nc(d){return bT(d.filter(e=>e!==void 0).join("/"))}function bT(d){return d.replace(/\/{2,}/g,"/")}function K_(d){return d==="/"?d:d.replace(/^\/{1,}/,"")}function Ol(d){return d==="/"?d:d.replace(/\/{1,}$/,"")}function qie(d){return Ol(K_(d))}function Y1(d,e){return d.endsWith("/")&&d!=="/"&&d!==`${e}/`?d.slice(0,-1):d}function Vie(d,e,t){return Y1(d,t)===Y1(e,t)}function Fie({basepath:d,base:e,to:t,trailingSlash:s="never",caseSensitive:i}){var n,r;e=Z1(d,e,i),t=Z1(d,t,i);let a=Om(e);const o=Om(t);a.length>1&&((n=Xy(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=Xy(a))==null?void 0:r.value)==="/"?s==="never"&&a.pop():s==="always"&&a.push({type:"pathname",value:"/"}));const c=Nc([d,...a.map(u=>u.value)]);return bT(c)}function Om(d){if(!d)return[];d=bT(d);const e=[];if(d.slice(0,1)==="/"&&(d=d.substring(1),e.push({type:"pathname",value:"/"})),!d)return e;const t=d.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:decodeURI(s)})),d.slice(-1)==="/"&&(d=d.substring(1),e.push({type:"pathname",value:"/"})),e}function tS({path:d,params:e,leaveWildcards:t,leaveParams:s,decodeCharMap:i}){const n=Om(d),r={};for(const[a,o]of Object.entries(e)){const c=typeof o=="string";["*","_splat"].includes(a)?r[a]=c?encodeURI(o):o:r[a]=c?Hie(o,i):o}return Nc(n.map(a=>{if(a.type==="wildcard"){const o=r._splat;return t?`${a.value}${o??""}`:o}if(a.type==="param"){if(s){const o=r[a.value];return`${a.value}${o??""}`}return r[a.value.substring(1)]??"undefined"}return a.value}))}function Hie(d,e){let t=encodeURIComponent(d);if(e)for(const[s,i]of e)t=t.replaceAll(s,i);return t}function sS(d,e,t){const s=Gie(d,e,t);if(!(t.to&&!s))return s??{}}function Z1(d,e,t=!1){const s=t?d:d.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(Nc(i.slice(o).map(p=>p.value)));return r["*"]=f,r._splat=f,!0}if(u.type==="pathname"){if(u.value==="/"&&!(c!=null&&c.value))return!0;if(c){if(t.caseSensitive){if(u.value!==c.value)return!1}else if(u.value.toLowerCase()!==c.value.toLowerCase())return!1}}if(!c)return!1;if(u.type==="param"){if(c.value==="/")return!1;c.value.charAt(0)!=="$"&&(r[u.value.substring(1)]=decodeURIComponent(c.value))}}if(!h&&l)return r["**"]=Nc(i.slice(o+1).map(f=>f.value)),!!t.fuzzy&&(u==null?void 0:u.value)!=="/"}return!0})()?r:void 0}function ll(d){return!!(d!=null&&d.isRedirect)}function YP(d){return!!(d!=null&&d.isRedirect)&&d.href}function X_(d){const e=d.errorComponent??kT;return P.jsx(Uie,{getResetKey:d.getResetKey,onCatch:d.onCatch,children:({error:t,reset:s})=>t?B.createElement(e,{error:t,reset:s}):d.children})}class Uie extends B.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 kT({error:d}){const[e,t]=B.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:d.message?P.jsx("code",{children:d.message}):null})}):null]})}function Hr(d){const e=Rh({warn:(d==null?void 0:d.router)===void 0}),t=(d==null?void 0:d.router)||e,s=B.useRef();return Iie(t.__store,i=>{if(d!=null&&d.select){if(d.structuralSharing??t.options.defaultStructuralSharing){const n=Ga(s.current,d.select(i));return s.current=n,n}return d.select(i)}return i})}function Po(d){return!!(d!=null&&d.isNotFound)}function Wie(d){const e=Hr({select:t=>`not-found-${t.location.pathname}-${t.status}`});return P.jsx(X_,{getResetKey:()=>e,onCatch:(t,s)=>{var i;if(Po(t))(i=d.onCatch)==null||i.call(d,t,s);else throw t},errorComponent:({error:t})=>{var s;if(Po(t))return(s=d.fallback)==null?void 0:s.call(d,t);throw t},children:d.children})}function jie(){return P.jsx("p",{children:"Not Found"})}const zie={stringify:d=>JSON.stringify(d,function(t,s){const i=this[t],n=ND.find(r=>r.stringifyCondition(i));return n?n.stringify(i):s}),parse:d=>JSON.parse(d,function(t,s){const i=this[t],n=ND.find(r=>r.parseCondition(i));return n?n.parse(i):s})},ND=[{stringifyCondition:d=>d instanceof Date,stringify:d=>({$date:d.toISOString()}),parseCondition:d=>Tm(d)&&d.$date,parse:d=>new Date(d.$date)},{stringifyCondition:d=>d===void 0,stringify:()=>({$undefined:""}),parseCondition:d=>Tm(d)&&d.$undefined==="",parse:()=>{}}],wH=["component","errorComponent","pendingComponent","notFoundComponent"];function $ie(d){var e;for(const t of wH)if((e=d.options[t])!=null&&e.preload)return!0;return!1}function ZP(d,e){if(d==null)return{};if("~standard"in d){const t=d["~standard"].validate(e);if(t instanceof Promise)throw new vM("Async validation not supported");if(t.issues)throw new vM(JSON.stringify(t.issues,void 0,2));return t.value}return"parse"in d?d.parse(e):typeof d=="function"?d(e):{}}function Kie(d){return new Xie(d)}class Xie{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.startReactTransition=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/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=`/${qie(t.basepath)}`),(!this.history||this.options.history&&this.options.history!==this.history)&&(this.history=this.options.history??(this.isServer?rie({initialEntries:[this.basepath||"/"]}):hH()),this.latestLocation=this.parseLocation()),this.options.routeTree!==this.routeTree&&(this.routeTree=this.options.routeTree,this.buildRouteTree()),this.__store||(this.__store=new Pie(Yie(this.latestLocation),{onUpdate:()=>{this.__store.state={...this.state,cachedMatches:this.state.cachedMatches.filter(n=>!["redirected"].includes(n.status))}}})),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 c=this.routesById[a.id];if(ca(!c,`Duplicate routes found with id: ${String(a.id)}`),this.routesById[a.id]=a,!a.isRoot&&a.path){const h=Ol(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 c=K_(r.fullPath),u=Om(c);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:c,parsed:u,index:a,scores:h})}),this.flatRoutes=i.sort((r,a)=>{const o=Math.min(r.scores.length,a.scores.length);for(let c=0;ca.parsed[c].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:c,hash:u,state:h})=>{const l=this.options.parseSearch(c),f=this.options.stringifySearch(l);return{pathname:o,searchStr:f,search:Ga(t==null?void 0:t.search,l),hash:u.split("#").reverse()[0]??"",href:`${o}${f}${u}`,state:Ga(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)=>Fie({basepath:this.basepath,base:t,to:bT(s),trailingSlash:this.options.trailingSlash,caseSensitive:this.options.caseSensitive}),this.getMatchedRoutes=(t,s)=>{let i={};const n=Ol(t.pathname),r=u=>sS(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[na];const c=[o];for(;o.parentRoute;)o=o.parentRoute,c.unshift(o);return{matchedRoutes:c,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,c,u,h,l;const f=n._fromLocation?this.matchRoutes(n._fromLocation,{_buildLocation:!0}):this.state.matches,p=n.from!=null?f.find(R=>sS(this.basepath,Ol(R.pathname),{to:n.from,caseSensitive:!1,fuzzy:!1})):void 0,m=(p==null?void 0:p.pathname)||this.latestLocation.pathname;ca(n.from==null||p!=null,"Could not find match for from: "+n.from);const g=(a=this.state.pendingMatches)!=null&&a.length?(o=Xy(this.state.pendingMatches))==null?void 0:o.search:((c=Xy(f))==null?void 0:c.search)||this.latestLocation.search,y=r==null?void 0:r.matchedRoutes.filter(R=>f.find(D=>D.routeId===R.id));let w;if(n.to)w=this.resolvePathWithBase(m,`${n.to}`);else{const R=this.routesById[(u=y==null?void 0:y.find(D=>{const G=tS({path:D.fullPath,params:(r==null?void 0:r.routeParams)??{},decodeCharMap:this.pathParamsDecodeCharMap});return Nc([this.basepath,G])===m}))==null?void 0:u.id];w=this.resolvePathWithBase(m,(R==null?void 0:R.to)??m)}const b={...(h=Xy(f))==null?void 0:h.params};let S=(n.params??!0)===!0?b:{...b,...Bp(n.params,b)};Object.keys(S).length>0&&(r==null||r.matchedRoutes.map(R=>{var D;return((D=R.options.params)==null?void 0:D.stringify)??R.options.stringifyParams}).filter(Boolean).forEach(R=>{S={...S,...R(S)}})),w=tS({path:w,params:S??{},leaveWildcards:!1,leaveParams:t.leaveParams,decodeCharMap:this.pathParamsDecodeCharMap});let v=g;if(t._includeValidateSearch&&((l=this.options.search)!=null&&l.strict)){let R={};r==null||r.matchedRoutes.forEach(D=>{try{D.options.validateSearch&&(R={...R,...ZP(D.options.validateSearch,{...R,...v})??{}})}catch{}}),v=R}v=(R=>{const D=(r==null?void 0:r.matchedRoutes.reduce((j,z)=>{var J;const Y=[];if("search"in z.options)(J=z.options.search)!=null&&J.middlewares&&Y.push(...z.options.search.middlewares);else if(z.options.preSearchFilters||z.options.postSearchFilters){const X=({search:Z,next:te})=>{let Q=Z;"preSearchFilters"in z.options&&z.options.preSearchFilters&&(Q=z.options.preSearchFilters.reduce((ne,oe)=>oe(ne),Z));const ie=te(Q);return"postSearchFilters"in z.options&&z.options.postSearchFilters?z.options.postSearchFilters.reduce((ne,oe)=>oe(ne),ie):ie};Y.push(X)}if(t._includeValidateSearch&&z.options.validateSearch){const X=({search:Z,next:te})=>{try{const Q=te(Z);return{...Q,...ZP(z.options.validateSearch,Q)??{}}}catch{}};Y.push(X)}return j.concat(Y)},[]))??[],G=({search:j})=>n.search?n.search===!0?j:Bp(n.search,j):{};D.push(G);const K=(j,z)=>{if(j>=D.length)return z;const J=D[j];return J({search:z,next:X=>K(j+1,X)})};return K(0,R)})(v),v=Ga(g,v);const M=this.options.stringifySearch(v),_=n.hash===!0?this.latestLocation.hash:n.hash?Bp(n.hash,this.latestLocation.hash):void 0,N=_?`#${_}`:"";let A=n.state===!0?this.latestLocation.state:n.state?Bp(n.state,this.latestLocation.state):{};return A=Ga(this.latestLocation.state,A),{pathname:w,search:v,searchStr:M,state:A,hash:_??"",href:`${w}${M}${N}`,unmaskOnReload:n.unmaskOnReload}},i=(n={},r)=>{var a;const o=s(n);let c=r?s(r):void 0;if(!c){let l={};const f=(a=this.options.routeMasks)==null?void 0:a.find(p=>{const m=sS(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={...XS(t,["from"]),...m,params:l},c=s(r)}}const u=this.getMatchedRoutes(o,n),h=s(n,u);if(c){const l=this.getMatchedRoutes(c,r),f=s(r,l);h.maskedLocation=f}return h};return t.mask?i(t,{...XS(t,["from"]),...t.mask}):i(t)},this.commitLocation=({viewTransition:t,ignoreBlocker:s,...i})=>{const n=()=>{i.state.key=this.latestLocation.state.key;const o=Zp(i.state,this.latestLocation.state);return delete i.state.key,o},r=this.latestLocation.href===i.href,a=this.commitLocationPromise;if(this.commitLocationPromise=mp(()=>{a==null||a.resolve()}),r&&n())this.load();else{let{maskedLocation:o,hashScrollIntoView:c,...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=c??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=Sm(a,{});o.to=u.pathname,o.search=this.options.parseSearch(u.search),o.hash=u.hash.slice(1)}const c=this.buildLocation({...o,_includeValidateSearch:!0});return this.commitLocation({...c,viewTransition:n,replace:t,resetScroll:s,hashScrollIntoView:i,ignoreBlocker:r})},this.navigate=({to:t,reloadDocument:s,href:i,...n})=>{if(s){i||(i=this.buildLocation({to:t,...n}).href),n.replace?window.location.replace(i):window.location.href=i;return}return this.buildAndCommitLocation({...n,href:i,to:t})},this.load=async()=>{this.latestLocation=this.parseLocation(this.latestLocation);let t,s,i;for(i=new Promise(n=>{this.startReactTransition(async()=>{var r;try{const a=this.latestLocation,o=this.state.resolvedLocation,c=o.href!==a.href,u=o.pathname!==a.pathname;this.cancelMatches();let h;this.__store.batch(()=>{h=this.matchRoutes(a),this.__store.setState(l=>({...l,status:"pending",isLoading:!0,location:a,pendingMatches:h,cachedMatches:l.cachedMatches.filter(f=>!h.find(p=>p.id===f.id))}))}),this.state.redirect||this.emit({type:"onBeforeNavigate",fromLocation:o,toLocation:a,pathChanged:u,hrefChanged:c}),this.emit({type:"onBeforeLoad",fromLocation:o,toLocation:a,pathChanged:u,hrefChanged:c}),await this.loadMatches({matches:h,location:a,onReady:async()=>{this.startViewTransition(async()=>{let l,f,p;this.__store.batch(()=>{this.__store.setState(m=>{const g=m.matches,y=m.pendingMatches||m.matches;return l=g.filter(w=>!y.find(b=>b.id===w.id)),f=y.filter(w=>!g.find(b=>b.id===w.id)),p=g.filter(w=>y.find(b=>b.id===w.id)),{...m,isLoading:!1,loadedAt:Date.now(),matches:y,pendingMatches:void 0,cachedMatches:[...m.cachedMatches,...l.filter(w=>w.status!=="error")]}}),this.clearExpiredCache()}),[[l,"onLeave"],[f,"onEnter"],[p,"onStay"]].forEach(([m,g])=>{m.forEach(y=>{var w,b;(b=(w=this.looseRoutesById[y.routeId].options)[g])==null||b.call(w,y)})})})}})}catch(a){YP(a)?(t=a,this.isServer||this.navigate({...t,replace:!0,ignoreBlocker:!0})):Po(a)&&(s=a),this.__store.setState(o=>({...o,statusCode:t?t.statusCode:s?404:o.matches.some(c=>c.status==="error")?500:200,redirect:t}))}this.latestLoadPromise===i&&((r=this.commitLocationPromise)==null||r.resolve(),this.latestLoadPromise=void 0,this.commitLocationPromise=void 0),n()})}),this.latestLoadPromise=i,await i;this.latestLoadPromise&&i!==this.latestLoadPromise;)await this.latestLoadPromise},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),c=r?"pendingMatches":a?"matches":o?"cachedMatches":"";return c&&this.__store.setState(u=>{var h;return{...u,[c]:(h=u[c])==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})=>{let a,o=!1;const c=async()=>{o||(o=!0,await(n==null?void 0:n()))},u=l=>!!(i&&!this.state.matches.find(f=>f.id===l));!this.isServer&&!this.state.matches.length&&c();const h=(l,f)=>{var p,m,g;if(YP(f)&&!f.reloadDocument)throw f;if(ll(f)||Po(f)){if(r(l.id,y=>({...y,status:ll(f)?"redirected":Po(f)?"notFound":"error",isFetching:!1,error:f,beforeLoadPromise:void 0,loaderPromise:void 0})),f.routeId||(f.routeId=l.routeId),(p=l.beforeLoadPromise)==null||p.resolve(),(m=l.loaderPromise)==null||m.resolve(),(g=l.loadPromise)==null||g.resolve(),ll(f))throw o=!0,f=this.resolveRedirect({...f,_fromLocation:t}),f;if(Po(f))throw this._handleNotFound(s,f,{updateMatch:r}),f}};try{await new Promise((l,f)=>{(async()=>{var p,m,g;try{const y=(S,v,C)=>{var M,_;const{id:N,routeId:A}=s[S],R=this.looseRoutesById[A];if(v instanceof Promise)throw v;v.routerCode=C,a=a??S,h(this.getMatch(N),v);try{(_=(M=R.options).onError)==null||_.call(M,v)}catch(D){v=D,h(this.getMatch(N),v)}r(N,D=>{var G,K;return(G=D.beforeLoadPromise)==null||G.resolve(),(K=D.loadPromise)==null||K.resolve(),{...D,error:v,status:"error",isFetching:!1,updatedAt:Date.now(),abortController:new AbortController,beforeLoadPromise:void 0}})};for(const[S,{id:v,routeId:C}]of s.entries()){const M=this.getMatch(v),_=(p=s[S-1])==null?void 0:p.id,N=this.looseRoutesById[C],A=N.options.pendingMs??this.options.defaultPendingMs,R=!!(n&&!this.isServer&&!u(v)&&(N.options.loader||N.options.beforeLoad)&&typeof A=="number"&&A!==1/0&&(N.options.pendingComponent??this.options.defaultPendingComponent));let D=!0;if((M.beforeLoadPromise||M.loaderPromise)&&(R&&setTimeout(()=>{try{c()}catch{}},A),await M.beforeLoadPromise,D=this.getMatch(v).status!=="success"),D){try{r(v,oe=>({...oe,loadPromise:mp(()=>{var me;(me=oe.loadPromise)==null||me.resolve()}),beforeLoadPromise:mp()}));const G=new AbortController;let K;R&&(K=setTimeout(()=>{try{c()}catch{}},A));const{paramsError:j,searchError:z}=this.getMatch(v);j&&y(S,j,"PARSE_PARAMS"),z&&y(S,z,"VALIDATE_SEARCH");const J=()=>_?this.getMatch(_).context:this.options.context??{};r(v,oe=>({...oe,isFetching:"beforeLoad",fetchCount:oe.fetchCount+1,abortController:G,pendingTimeout:K,context:{...J(),...oe.__routeContext,...oe.__beforeLoadContext}}));const{search:Y,params:X,context:Z,cause:te}=this.getMatch(v),Q=u(v),ie={search:Y,abortController:G,params:X,preload:Q,context:Z,location:t,navigate:oe=>this.navigate({...oe,_fromLocation:t}),buildLocation:this.buildLocation,cause:Q?"preload":te,matches:s};let ne=await((g=(m=N.options).beforeLoad)==null?void 0:g.call(m,ie))??{};this.serializeLoaderData&&(ne=this.serializeLoaderData("__beforeLoadContext",ne,{router:this,match:this.getMatch(v)})),(ll(ne)||Po(ne))&&y(S,ne,"BEFORE_LOAD"),r(v,oe=>({...oe,__beforeLoadContext:ne,context:{...J(),...oe.__routeContext,...ne},abortController:G}))}catch(G){y(S,G,"BEFORE_LOAD")}r(v,G=>{var K;return(K=G.beforeLoadPromise)==null||K.resolve(),{...G,beforeLoadPromise:void 0,isFetching:!1}})}}const w=s.slice(0,a),b=[];w.forEach(({id:S,routeId:v},C)=>{b.push((async()=>{const{loaderPromise:M}=this.getMatch(S);let _=!1;if(M)await M;else{const N=b[C-1],A=this.looseRoutesById[v],R=()=>{const{params:Q,loaderDeps:ie,abortController:ne,context:oe,cause:me}=this.getMatch(S),le=u(S);return{params:Q,deps:ie,preload:!!le,parentMatchPromise:N,abortController:ne,context:oe,location:t,navigate:he=>this.navigate({...he,_fromLocation:t}),cause:le?"preload":me,route:A}},D=Date.now()-this.getMatch(S).updatedAt,G=u(S),K=G?A.options.preloadStaleTime??this.options.defaultPreloadStaleTime??3e4:A.options.staleTime??this.options.defaultStaleTime??0,j=A.options.shouldReload,z=typeof j=="function"?j(R()):j;r(S,Q=>({...Q,loaderPromise:mp(),preload:!!G&&!this.state.matches.find(ie=>ie.id===S)}));const J=async()=>{var Q,ie,ne,oe,me,le,he,Se;try{const ye=async()=>{const ge=this.getMatch(S);ge.minPendingPromise&&await ge.minPendingPromise};try{A._lazyPromise===void 0&&(A.lazyFn?A._lazyPromise=A.lazyFn().then(Ce=>{const{id:Ae,...Ue}=Ce.options;Object.assign(A.options,Ue)}):A._lazyPromise=Promise.resolve()),A._componentsPromise===void 0&&(A._componentsPromise=A._lazyPromise.then(()=>Promise.all(wH.map(async Ce=>{const Ae=A.options[Ce];Ae!=null&&Ae.preload&&await Ae.preload()})))),r(S,Ce=>({...Ce,isFetching:"loader"}));let ge=await((ie=(Q=A.options).loader)==null?void 0:ie.call(Q,R()));this.serializeLoaderData&&(ge=this.serializeLoaderData("loaderData",ge,{router:this,match:this.getMatch(S)})),h(this.getMatch(S),ge),await A._lazyPromise,await ye();const Te=(oe=(ne=A.options).head)==null?void 0:oe.call(ne,{matches:s,match:this.getMatch(S),params:this.getMatch(S).params,loaderData:ge}),Ge=Te==null?void 0:Te.meta,$e=Te==null?void 0:Te.links,De=Te==null?void 0:Te.scripts,Be=(le=(me=A.options).headers)==null?void 0:le.call(me,{loaderData:ge});r(S,Ce=>({...Ce,error:void 0,status:"success",isFetching:!1,updatedAt:Date.now(),loaderData:ge,meta:Ge,links:$e,scripts:De,headers:Be}))}catch(ge){let Te=ge;await ye(),h(this.getMatch(S),ge);try{(Se=(he=A.options).onError)==null||Se.call(he,ge)}catch(Ge){Te=Ge,h(this.getMatch(S),Ge)}r(S,Ge=>({...Ge,error:Te,status:"error",isFetching:!1}))}await A._componentsPromise}catch(ye){r(S,ge=>({...ge,loaderPromise:void 0})),h(this.getMatch(S),ye)}},{status:Y,invalid:X}=this.getMatch(S);_=Y==="success"&&(X||(z??D>K)),G&&A.options.preload===!1||(_?(async()=>{try{await J()}catch(Q){YP(Q)&&await this.navigate(Q)}})():Y!=="success"&&await J());const{loaderPromise:Z,loadPromise:te}=this.getMatch(S);Z==null||Z.resolve(),te==null||te.resolve()}return r(S,N=>({...N,isFetching:_?N.isFetching:!1,loaderPromise:void 0,invalid:!1})),this.getMatch(S)})())}),await Promise.all(b),l()}catch(y){f(y)}})()}),await c()}catch(l){if(ll(l)||Po(l))throw Po(l)&&!i&&await c(),l}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()},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{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)]);this.__store.batch(()=>{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(c=>c.id===a?o(c):c):this.updateMatch(a,o)}}),i}catch(a){if(ll(a))return a.reloadDocument?void 0:await this.preloadRoute({...a,_fromLocation:s});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,o=sS(this.basepath,a.pathname,{...s,to:n.pathname});return!o||t.params&&!Zp(o,t.params,{partial:!0})?!1:o&&((s==null?void 0:s.includeSearch)??!0)?Zp(a.search,n.search,{partial:!0})?o:!1:o},this.dehydrate=()=>{var t;const s=((t=this.options.errorSerializer)==null?void 0:t.serialize)??Zie;return{state:{dehydratedMatches:this.state.matches.map(i=>({...XS(i,["id","status","updatedAt"]),error:i.error?{data:s(i.error),__isServerError:!0}:void 0}))},manifest:this.manifest}},this.hydrate=()=>{var t,s,i;let n;typeof document<"u"&&(n=this.options.transformer.parse((t=window.__TSR__)==null?void 0:t.dehydrated)),ca(n),this.dehydratedData=n.payload,(i=(s=this.options).hydrate)==null||i.call(s,n.payload);const r=n.router.state,a=this.matchRoutes(this.state.location).map(o=>{const c=r.dehydratedMatches.find(u=>u.id===o.id);return ca(c,`Could not find a client-side match for dehydrated match with id: ${o.id}!`),{...o,...c}});this.__store.setState(o=>({...o,matches:a})),this.manifest=n.router.manifest},this.injectedHtml=[],this.injectHtml=t=>{const s=()=>(this.injectedHtml=this.injectedHtml.filter(i=>i!==s),t);this.injectedHtml.push(s)},this.injectScript=(t,s)=>{this.injectHtml(` +