From ea37f9aaabb88aa6f11580d2e3e5541f120a17a6 Mon Sep 17 00:00:00 2001 From: bludnic Date: Tue, 12 Nov 2024 21:15:14 +0000 Subject: [PATCH] chore: release 1.0.0-beta.25 --- .changeset/gold-gorillas-wonder.md | 14 ++ .changeset/pre.json | 1 + ...BsuIDEc-.js => SimpleGridForm-ymZtb7Vd.js} | 2 +- apps/cli/frontend/assets/assert-qSoQSbtu.js | 62 -------- ...rowser-BwFqrqKh.js => browser-BqBbGhip.js} | 4 +- .../{index-DacOZnWA.js => index--W_dwqvb.js} | 148 +++++++++--------- apps/cli/frontend/assets/index-BAnlvaiQ.js | 68 ++++++++ apps/cli/frontend/assets/index-BJj6QqBT.js | 2 - .../{index-BXo9w5xs.js => index-BcTAmAa_.js} | 2 +- .../{index-CmjC3aBX.js => index-BgrbYc4b.js} | 2 +- apps/cli/frontend/assets/index-BrKpjeTR.js | 7 - apps/cli/frontend/assets/index-CXxSiKWb.js | 3 - apps/cli/frontend/assets/index-DhQ1rZ8G.js | 7 + apps/cli/frontend/assets/index-QfjMuEDO.js | 5 - apps/cli/frontend/assets/index-cyyfYOVw.js | 7 - .../{page-D3NH2UKH.js => page-CxSpFTfJ.js} | 2 +- .../{page-CxuTcZyC.js => page-JhSs5QJx.js} | 2 +- .../{page-nmPbjwfQ.js => page-aIoNQ8CF.js} | 2 +- apps/cli/frontend/assets/url-CCw57Dwn.js | 6 - apps/cli/frontend/index.html | 2 +- apps/cli/package.json | 2 +- pro | 2 +- 22 files changed, 175 insertions(+), 177 deletions(-) create mode 100644 .changeset/gold-gorillas-wonder.md rename apps/cli/frontend/assets/{SimpleGridForm-BsuIDEc-.js => SimpleGridForm-ymZtb7Vd.js} (99%) delete mode 100644 apps/cli/frontend/assets/assert-qSoQSbtu.js rename apps/cli/frontend/assets/{browser-BwFqrqKh.js => browser-BqBbGhip.js} (97%) rename apps/cli/frontend/assets/{index-DacOZnWA.js => index--W_dwqvb.js} (56%) create mode 100644 apps/cli/frontend/assets/index-BAnlvaiQ.js delete mode 100644 apps/cli/frontend/assets/index-BJj6QqBT.js rename apps/cli/frontend/assets/{index-BXo9w5xs.js => index-BcTAmAa_.js} (93%) rename apps/cli/frontend/assets/{index-CmjC3aBX.js => index-BgrbYc4b.js} (92%) delete mode 100644 apps/cli/frontend/assets/index-BrKpjeTR.js delete mode 100644 apps/cli/frontend/assets/index-CXxSiKWb.js create mode 100644 apps/cli/frontend/assets/index-DhQ1rZ8G.js delete mode 100644 apps/cli/frontend/assets/index-QfjMuEDO.js delete mode 100644 apps/cli/frontend/assets/index-cyyfYOVw.js rename apps/cli/frontend/assets/{page-D3NH2UKH.js => page-CxSpFTfJ.js} (93%) rename apps/cli/frontend/assets/{page-CxuTcZyC.js => page-JhSs5QJx.js} (95%) rename apps/cli/frontend/assets/{page-nmPbjwfQ.js => page-aIoNQ8CF.js} (97%) delete mode 100644 apps/cli/frontend/assets/url-CCw57Dwn.js diff --git a/.changeset/gold-gorillas-wonder.md b/.changeset/gold-gorillas-wonder.md new file mode 100644 index 00000000..7dd2ed2b --- /dev/null +++ b/.changeset/gold-gorillas-wonder.md @@ -0,0 +1,14 @@ +--- +"opentrader": minor +"frontend": minor +"processor": minor +--- + +- Include UI in `cli` package +- Upgrade `prisma` and `ccxt` +- Upgrade dependencies +- Improve logging +- UI: Enhance Orders and Trades tables +- Fix CCXT external dependency when bundling +- Add `/backtest` endpoint +- Charts: Fix candle duplication during DST transition diff --git a/.changeset/pre.json b/.changeset/pre.json index 5cfefc4f..a89eb994 100644 --- a/.changeset/pre.json +++ b/.changeset/pre.json @@ -38,6 +38,7 @@ "four-papayas-hear", "friendly-kids-pay", "gentle-peaches-destroy", + "gold-gorillas-wonder", "healthy-camels-search", "healthy-ducks-listen", "heavy-melons-nail", diff --git a/apps/cli/frontend/assets/SimpleGridForm-BsuIDEc-.js b/apps/cli/frontend/assets/SimpleGridForm-ymZtb7Vd.js similarity index 99% rename from apps/cli/frontend/assets/SimpleGridForm-BsuIDEc-.js rename to apps/cli/frontend/assets/SimpleGridForm-ymZtb7Vd.js index 23e470f4..2044084a 100644 --- a/apps/cli/frontend/assets/SimpleGridForm-BsuIDEc-.js +++ b/apps/cli/frontend/assets/SimpleGridForm-ymZtb7Vd.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-DacOZnWA.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--W_dwqvb.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/assert-qSoQSbtu.js b/apps/cli/frontend/assets/assert-qSoQSbtu.js deleted file mode 100644 index 49747ba1..00000000 --- a/apps/cli/frontend/assets/assert-qSoQSbtu.js +++ /dev/null @@ -1,62 +0,0 @@ -import{aZ as at}from"./index-DacOZnWA.js";import{u as wt,s as ye,c as ie,h as be,d as de,a as ae}from"./browser-BwFqrqKh.js";var Rt={exports:{}},Pt={},Vt;function ce(){if(Vt)return Pt;Vt=1;function m(a){"@babel/helpers - typeof";return m=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(f){return typeof f}:function(f){return f&&typeof Symbol=="function"&&f.constructor===Symbol&&f!==Symbol.prototype?"symbol":typeof f},m(a)}function E(a,f,g){return Object.defineProperty(a,"prototype",{writable:!1}),a}function I(a,f){if(!(a instanceof f))throw new TypeError("Cannot call a class as a function")}function R(a,f){if(typeof f!="function"&&f!==null)throw new TypeError("Super expression must either be null or a function");a.prototype=Object.create(f&&f.prototype,{constructor:{value:a,writable:!0,configurable:!0}}),Object.defineProperty(a,"prototype",{writable:!1}),f&&x(a,f)}function x(a,f){return x=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(S,V){return S.__proto__=V,S},x(a,f)}function G(a){var f=H();return function(){var S=T(a),V;if(f){var j=T(this).constructor;V=Reflect.construct(S,arguments,j)}else V=S.apply(this,arguments);return N(this,V)}}function N(a,f){if(f&&(m(f)==="object"||typeof f=="function"))return f;if(f!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return X(a)}function X(a){if(a===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a}function H(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function T(a){return T=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(g){return g.__proto__||Object.getPrototypeOf(g)},T(a)}var D={},L,q;function w(a,f,g){g||(g=Error);function S(j,Y,_){return typeof f=="string"?f:f(j,Y,_)}var V=function(j){R(_,j);var Y=G(_);function _(et,rt,U){var k;return I(this,_),k=Y.call(this,S(et,rt,U)),k.code=a,k}return E(_)}(g);D[a]=V}function Z(a,f){if(Array.isArray(a)){var g=a.length;return a=a.map(function(S){return String(S)}),g>2?"one of ".concat(f," ").concat(a.slice(0,g-1).join(", "),", or ")+a[g-1]:g===2?"one of ".concat(f," ").concat(a[0]," or ").concat(a[1]):"of ".concat(f," ").concat(a[0])}else return"of ".concat(f," ").concat(String(a))}function J(a,f,g){return a.substr(0,f.length)===f}function Q(a,f,g){return(g===void 0||g>a.length)&&(g=a.length),a.substring(g-f.length,g)===f}function B(a,f,g){return typeof g!="number"&&(g=0),g+f.length>a.length?!1:a.indexOf(f,g)!==-1}return w("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),w("ERR_INVALID_ARG_TYPE",function(a,f,g){L===void 0&&(L=oe()),L(typeof a=="string","'name' must be a string");var S;typeof f=="string"&&J(f,"not ")?(S="must not be",f=f.replace(/^not /,"")):S="must be";var V;if(Q(a," argument"))V="The ".concat(a," ").concat(S," ").concat(Z(f,"type"));else{var j=B(a,".")?"property":"argument";V='The "'.concat(a,'" ').concat(j," ").concat(S," ").concat(Z(f,"type"))}return V+=". Received type ".concat(m(g)),V},TypeError),w("ERR_INVALID_ARG_VALUE",function(a,f){var g=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"is invalid";q===void 0&&(q=wt);var S=q.inspect(f);return S.length>128&&(S="".concat(S.slice(0,128),"...")),"The argument '".concat(a,"' ").concat(g,". Received ").concat(S)},TypeError),w("ERR_INVALID_RETURN_VALUE",function(a,f,g){var S;return g&&g.constructor&&g.constructor.name?S="instance of ".concat(g.constructor.name):S="type ".concat(m(g)),"Expected ".concat(a,' to be returned from the "').concat(f,'"')+" function but got ".concat(S,".")},TypeError),w("ERR_MISSING_ARGS",function(){for(var a=arguments.length,f=new Array(a),g=0;g0,"At least one arg needs to be specified");var S="The ",V=f.length;switch(f=f.map(function(j){return'"'.concat(j,'"')}),V){case 1:S+="".concat(f[0]," argument");break;case 2:S+="".concat(f[0]," and ").concat(f[1]," arguments");break;default:S+=f.slice(0,V-1).join(", "),S+=", and ".concat(f[V-1]," arguments");break}return"".concat(S," must be specified")},TypeError),Pt.codes=D,Pt}var At,Gt;function ve(){if(Gt)return At;Gt=1;function m(i,c){var b=Object.keys(i);if(Object.getOwnPropertySymbols){var h=Object.getOwnPropertySymbols(i);c&&(h=h.filter(function(O){return Object.getOwnPropertyDescriptor(i,O).enumerable})),b.push.apply(b,h)}return b}function E(i){for(var c=1;c"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function J(i){return Function.toString.call(i).indexOf("[native code]")!==-1}function Q(i,c){return Q=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(h,O){return h.__proto__=O,h},Q(i,c)}function B(i){return B=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(b){return b.__proto__||Object.getPrototypeOf(b)},B(i)}function a(i){"@babel/helpers - typeof";return a=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},a(i)}var f=wt,g=f.inspect,S=ce(),V=S.codes.ERR_INVALID_ARG_TYPE;function j(i,c,b){return(b===void 0||b>i.length)&&(b=i.length),i.substring(b-c.length,b)===c}function Y(i,c){if(c=Math.floor(c),i.length==0||c==0)return"";var b=i.length*c;for(c=Math.floor(Math.log(c)/Math.log(2));c;)i+=i,c--;return i+=i.substring(0,b-i.length),i}var _="",et="",rt="",U="",k={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"},ht=10;function gt(i){var c=Object.keys(i),b=Object.create(Object.getPrototypeOf(i));return c.forEach(function(h){b[h]=i[h]}),Object.defineProperty(b,"message",{value:i.message}),b}function it(i){return g(i,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function yt(i,c,b){var h="",O="",n=0,e="",o=!1,l=it(i),u=l.split(` -`),p=it(c).split(` -`),d=0,M="";if(b==="strictEqual"&&a(i)==="object"&&a(c)==="object"&&i!==null&&c!==null&&(b="strictEqualObject"),u.length===1&&p.length===1&&u[0]!==p[0]){var z=u[0].length+p[0].length;if(z<=ht){if((a(i)!=="object"||i===null)&&(a(c)!=="object"||c===null)&&(i!==0||c!==0))return"".concat(k[b],` - -`)+"".concat(u[0]," !== ").concat(p[0],` -`)}else if(b!=="strictEqualObject"){var W=at.stderr&&at.stderr.isTTY?at.stderr.columns:80;if(z2&&(M=` - `.concat(Y(" ",d),"^"),d=0)}}}for(var K=u[u.length-1],st=p[p.length-1];K===st&&(d++<2?e=` - `.concat(K).concat(e):h=K,u.pop(),p.pop(),!(u.length===0||p.length===0));)K=u[u.length-1],st=p[p.length-1];var dt=Math.max(u.length,p.length);if(dt===0){var lt=l.split(` -`);if(lt.length>30)for(lt[26]="".concat(_,"...").concat(U);lt.length>27;)lt.pop();return"".concat(k.notIdentical,` - -`).concat(lt.join(` -`),` -`)}d>3&&(e=` -`.concat(_,"...").concat(U).concat(e),o=!0),h!==""&&(e=` - `.concat(h).concat(e),h="");var nt=0,vt=k[b]+` -`.concat(et,"+ actual").concat(U," ").concat(rt,"- expected").concat(U),St=" ".concat(_,"...").concat(U," Lines skipped");for(d=0;d1&&d>2&&(ot>4?(O+=` -`.concat(_,"...").concat(U),o=!0):ot>3&&(O+=` - `.concat(p[d-2]),nt++),O+=` - `.concat(p[d-1]),nt++),n=d,h+=` -`.concat(rt,"-").concat(U," ").concat(p[d]),nt++;else if(p.length1&&d>2&&(ot>4?(O+=` -`.concat(_,"...").concat(U),o=!0):ot>3&&(O+=` - `.concat(u[d-2]),nt++),O+=` - `.concat(u[d-1]),nt++),n=d,O+=` -`.concat(et,"+").concat(U," ").concat(u[d]),nt++;else{var pt=p[d],ut=u[d],t=ut!==pt&&(!j(ut,",")||ut.slice(0,-1)!==pt);t&&j(pt,",")&&pt.slice(0,-1)===ut&&(t=!1,ut+=","),t?(ot>1&&d>2&&(ot>4?(O+=` -`.concat(_,"...").concat(U),o=!0):ot>3&&(O+=` - `.concat(u[d-2]),nt++),O+=` - `.concat(u[d-1]),nt++),n=d,O+=` -`.concat(et,"+").concat(U," ").concat(ut),h+=` -`.concat(rt,"-").concat(U," ").concat(pt),nt+=2):(O+=h,h="",(ot===1||d===0)&&(O+=` - `.concat(ut),nt++))}if(nt>20&&d30)for(z[26]="".concat(_,"...").concat(U);z.length>27;)z.pop();z.length===1?n=b.call(this,"".concat(M," ").concat(z[0])):n=b.call(this,"".concat(M,` - -`).concat(z.join(` -`),` -`))}else{var W=it(u),K="",st=k[o];o==="notDeepEqual"||o==="notEqual"?(W="".concat(k[o],` - -`).concat(W),W.length>1024&&(W="".concat(W.slice(0,1021),"..."))):(K="".concat(it(p)),W.length>512&&(W="".concat(W.slice(0,509),"...")),K.length>512&&(K="".concat(K.slice(0,509),"...")),o==="deepEqual"||o==="equal"?W="".concat(st,` - -`).concat(W,` - -should equal - -`):K=" ".concat(o," ").concat(K)),n=b.call(this,"".concat(W).concat(K))}return Error.stackTraceLimit=d,n.generatedMessage=!e,Object.defineProperty(L(n),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),n.code="ERR_ASSERTION",n.actual=u,n.expected=p,n.operator=o,Error.captureStackTrace&&Error.captureStackTrace(L(n),l),n.stack,n.name="AssertionError",D(n)}return G(h,[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:c,value:function(n,e){return g(this,E(E({},e),{},{customInspect:!1,depth:0}))}}]),h}(q(Error),g.custom);return At=ct,At}var Ut=Object.prototype.toString,ue=function(E){var I=Ut.call(E),R=I==="[object Arguments]";return R||(R=I!=="[object Array]"&&E!==null&&typeof E=="object"&&typeof E.length=="number"&&E.length>=0&&Ut.call(E.callee)==="[object Function]"),R},Nt,zt;function me(){if(zt)return Nt;zt=1;var m;if(!Object.keys){var E=Object.prototype.hasOwnProperty,I=Object.prototype.toString,R=ue,x=Object.prototype.propertyIsEnumerable,G=!x.call({toString:null},"toString"),N=x.call(function(){},"prototype"),X=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],H=function(q){var w=q.constructor;return w&&w.prototype===q},T={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},D=function(){if(typeof window>"u")return!1;for(var q in window)try{if(!T["$"+q]&&E.call(window,q)&&window[q]!==null&&typeof window[q]=="object")try{H(window[q])}catch{return!0}}catch{return!0}return!1}(),L=function(q){if(typeof window>"u"||!D)return H(q);try{return H(q)}catch{return!1}};m=function(w){var Z=w!==null&&typeof w=="object",J=I.call(w)==="[object Function]",Q=R(w),B=Z&&I.call(w)==="[object String]",a=[];if(!Z&&!J&&!Q)throw new TypeError("Object.keys called on a non-object");var f=N&&J;if(B&&w.length>0&&!E.call(w,0))for(var g=0;g0)for(var S=0;S2?arguments[2]:{},q=m(D);E&&(q=R.call(q,Object.getOwnPropertySymbols(D)));for(var w=0;wt.length)&&(r=t.length);for(var s=0,y=new Array(r);s10)return!0;for(var r=0;r57)return!0}return t.length===10&&t>=Math.pow(2,32)}function ct(t){return Object.keys(t).filter(yt).concat(L(t).filter(Object.prototype.propertyIsEnumerable.bind(t)))}/*! - * The buffer module from node.js, for the browser. - * - * @author Feross Aboukhadijeh - * @license MIT - */function i(t,r){if(t===r)return 0;for(var s=t.length,y=r.length,v=0,A=Math.min(s,y);v1?o-1:0),u=1;u1?o-1:0),u=1;u1?o-1:0),u=1;u1?o-1:0),u=1;u0&&(y=r[0]),y instanceof Error)throw y;var c=new Error("Unhandled error."+(y?" ("+y.message+")":""));throw c.context=y,c}var p=f[e];if(p===void 0)return!1;if(typeof p=="function")Ct(p,this,r);else for(var m=p.length,P=_r(p,m),o=0;o0&&y.length>u&&!y.warned){y.warned=!0;var c=new Error("Possible EventEmitter memory leak detected. "+y.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit");c.name="MaxListenersExceededWarning",c.emitter=t,c.type=e,c.count=y.length,Yr(c)}return t}G.prototype.addListener=function(e,r){return vr(this,e,r,!1)};G.prototype.on=G.prototype.addListener;G.prototype.prependListener=function(e,r){return vr(this,e,r,!0)};function Zr(){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 br(t,e,r){var o={fired:!1,wrapFn:void 0,target:t,type:e,listener:r},u=Zr.bind(o);return u.listener=r,o.wrapFn=u,u}G.prototype.once=function(e,r){return Ie(r),this.on(e,br(this,e,r)),this};G.prototype.prependOnceListener=function(e,r){return Ie(r),this.prependListener(e,br(this,e,r)),this};G.prototype.removeListener=function(e,r){var o,u,f,y,c;if(Ie(r),u=this._events,u===void 0)return this;if(o=u[e],o===void 0)return this;if(o===r||o.listener===r)--this._eventsCount===0?this._events=Object.create(null):(delete u[e],u.removeListener&&this.emit("removeListener",e,o.listener||r));else if(typeof o!="function"){for(f=-1,y=o.length-1;y>=0;y--)if(o[y]===r||o[y].listener===r){c=o[y].listener,f=y;break}if(f<0)return this;f===0?o.shift():Xr(o,f),o.length===1&&(u[e]=o[0]),u.removeListener!==void 0&&this.emit("removeListener",e,c||r)}return this};G.prototype.off=G.prototype.removeListener;G.prototype.removeAllListeners=function(e){var r,o,u;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 f=Object.keys(o),y;for(u=0;u=0;u--)this.removeListener(e,r[u]);return this};function wr(t,e,r){var o=t._events;if(o===void 0)return[];var u=o[e];return u===void 0?[]:typeof u=="function"?r?[u.listener||u]:[u]:r?Qr(u):_r(u,u.length)}G.prototype.listeners=function(e){return wr(this,e,!0)};G.prototype.rawListeners=function(e){return wr(this,e,!1)};G.listenerCount=function(t,e){return typeof t.listenerCount=="function"?t.listenerCount(e):mr.call(t,e)};G.prototype.listenerCount=mr;function mr(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}G.prototype.eventNames=function(){return this._eventsCount>0?Pe(this._events):[]};function _r(t,e){for(var r=new Array(e),o=0;o"u"||!V?$:V(Uint8Array),se={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?$:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?$:ArrayBuffer,"%ArrayIteratorPrototype%":pe&&V?V([][Symbol.iterator]()):$,"%AsyncFromSyncIteratorPrototype%":$,"%AsyncFunction%":he,"%AsyncGenerator%":he,"%AsyncGeneratorFunction%":he,"%AsyncIteratorPrototype%":he,"%Atomics%":typeof Atomics>"u"?$:Atomics,"%BigInt%":typeof BigInt>"u"?$:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?$:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?$:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?$:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Rn,"%eval%":eval,"%EvalError%":On,"%Float32Array%":typeof Float32Array>"u"?$:Float32Array,"%Float64Array%":typeof Float64Array>"u"?$:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?$:FinalizationRegistry,"%Function%":Pr,"%GeneratorFunction%":he,"%Int8Array%":typeof Int8Array>"u"?$:Int8Array,"%Int16Array%":typeof Int16Array>"u"?$:Int16Array,"%Int32Array%":typeof Int32Array>"u"?$:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":pe&&V?V(V([][Symbol.iterator]())):$,"%JSON%":typeof JSON=="object"?JSON:$,"%Map%":typeof Map>"u"?$:Map,"%MapIteratorPrototype%":typeof Map>"u"||!pe||!V?$:V(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?$:Promise,"%Proxy%":typeof Proxy>"u"?$:Proxy,"%RangeError%":Pn,"%ReferenceError%":Tn,"%Reflect%":typeof Reflect>"u"?$:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?$:Set,"%SetIteratorPrototype%":typeof Set>"u"||!pe||!V?$:V(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?$:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":pe&&V?V(""[Symbol.iterator]()):$,"%Symbol%":pe?Symbol:$,"%SyntaxError%":we,"%ThrowTypeError%":Ln,"%TypedArray%":Nn,"%TypeError%":be,"%Uint8Array%":typeof Uint8Array>"u"?$:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?$:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?$:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?$:Uint32Array,"%URIError%":jn,"%WeakMap%":typeof WeakMap>"u"?$:WeakMap,"%WeakRef%":typeof WeakRef>"u"?$:WeakRef,"%WeakSet%":typeof WeakSet>"u"?$:WeakSet};if(V)try{null.error}catch(t){var Dn=V(V(t));se["%Error.prototype%"]=Dn}var Fn=function t(e){var r;if(e==="%AsyncFunction%")r=ze("async function () {}");else if(e==="%GeneratorFunction%")r=ze("function* () {}");else if(e==="%AsyncGeneratorFunction%")r=ze("async function* () {}");else if(e==="%AsyncGenerator%"){var o=t("%AsyncGeneratorFunction%");o&&(r=o.prototype)}else if(e==="%AsyncIteratorPrototype%"){var u=t("%AsyncGenerator%");u&&V&&(r=V(u.prototype))}return se[e]=r,r},$t={__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"]},Ee=Ot,Ne=An,Cn=Ee.call(Function.call,Array.prototype.concat),In=Ee.call(Function.apply,Array.prototype.splice),Wt=Ee.call(Function.call,String.prototype.replace),De=Ee.call(Function.call,String.prototype.slice),Bn=Ee.call(Function.call,RegExp.prototype.exec),Un=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,kn=/\\(\\)?/g,$n=function(e){var r=De(e,0,1),o=De(e,-1);if(r==="%"&&o!=="%")throw new we("invalid intrinsic syntax, expected closing `%`");if(o==="%"&&r!=="%")throw new we("invalid intrinsic syntax, expected opening `%`");var u=[];return Wt(e,Un,function(f,y,c,p){u[u.length]=c?Wt(p,kn,"$1"):y||f}),u},Wn=function(e,r){var o=e,u;if(Ne($t,o)&&(u=$t[o],o="%"+u[0]+"%"),Ne(se,o)){var f=se[o];if(f===he&&(f=Fn(o)),typeof f>"u"&&!r)throw new be("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:u,name:o,value:f}}throw new we("intrinsic "+e+" does not exist!")},Ae=function(e,r){if(typeof e!="string"||e.length===0)throw new be("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new be('"allowMissing" argument must be a boolean');if(Bn(/^%?[^%]*%?$/,e)===null)throw new we("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var o=$n(e),u=o.length>0?o[0]:"",f=Wn("%"+u+"%",r),y=f.name,c=f.value,p=!1,m=f.alias;m&&(u=m[0],In(o,Cn([0,1],m)));for(var P=1,T=!0;P=o.length){var d=ue(c,A);T=!!d,T&&"get"in d&&!("originalValue"in d.get)?c=d.get:c=c[A]}else T=Ne(c,A),c=c[A];T&&!p&&(se[y]=c)}}return c},Tr={exports:{}},Je,qt;function Pt(){if(qt)return Je;qt=1;var t=Ae,e=t("%Object.defineProperty%",!0)||!1;if(e)try{e({},"a",{value:1})}catch{e=!1}return Je=e,Je}var qn=Ae,Te=qn("%Object.getOwnPropertyDescriptor%",!0);if(Te)try{Te([],"length")}catch{Te=null}var Tt=Te,xt=Pt(),xn=Or,ye=ke,Gt=Tt,Gn=function(e,r,o){if(!e||typeof e!="object"&&typeof e!="function")throw new ye("`obj` must be an object or a function`");if(typeof r!="string"&&typeof r!="symbol")throw new ye("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new ye("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new ye("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new ye("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new ye("`loose`, if provided, must be a boolean");var u=arguments.length>3?arguments[3]:null,f=arguments.length>4?arguments[4]:null,y=arguments.length>5?arguments[5]:null,c=arguments.length>6?arguments[6]:!1,p=!!Gt&&Gt(e,r);if(xt)xt(e,r,{configurable:y===null&&p?p.configurable:!y,enumerable:u===null&&p?p.enumerable:!u,value:o,writable:f===null&&p?p.writable:!f});else if(c||!u&&!f&&!y)e[r]=o;else throw new xn("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},vt=Pt(),jr=function(){return!!vt};jr.hasArrayLengthDefineBug=function(){if(!vt)return null;try{return vt([],"length",{value:1}).length!==1}catch{return!0}};var Hn=jr,Vn=Ae,Ht=Gn,zn=Hn(),Vt=Tt,zt=ke,Kn=Vn("%Math.floor%"),Jn=function(e,r){if(typeof e!="function")throw new zt("`fn` is not a function");if(typeof r!="number"||r<0||r>4294967295||Kn(r)!==r)throw new zt("`length` must be a positive 32-bit integer");var o=arguments.length>2&&!!arguments[2],u=!0,f=!0;if("length"in e&&Vt){var y=Vt(e,"length");y&&!y.configurable&&(u=!1),y&&!y.writable&&(f=!1)}return(u||f||!o)&&(zn?Ht(e,"length",r,!0,!0):Ht(e,"length",r)),e};(function(t){var e=Ot,r=Ae,o=Jn,u=ke,f=r("%Function.prototype.apply%"),y=r("%Function.prototype.call%"),c=r("%Reflect.apply%",!0)||e.call(y,f),p=Pt(),m=r("%Math.max%");t.exports=function(A){if(typeof A!="function")throw new u("a function is required");var R=c(e,y,arguments);return o(R,1+m(0,A.length-(arguments.length-1)),!0)};var P=function(){return c(e,f,arguments)};p?p(t.exports,"apply",{value:P}):t.exports.apply=P})(Tr);var Lr=Tr.exports,Mr=Ae,Nr=Lr,Yn=Nr(Mr("String.prototype.indexOf")),Dr=function(e,r){var o=Mr(e,!!r);return typeof o=="function"&&Yn(e,".prototype.")>-1?Nr(o):o},Zn=Rt(),Xn=Dr,bt=Xn("Object.prototype.toString"),$e=function(e){return Zn&&e&&typeof e=="object"&&Symbol.toStringTag in e?!1:bt(e)==="[object Arguments]"},Fr=function(e){return $e(e)?!0:e!==null&&typeof e=="object"&&typeof e.length=="number"&&e.length>=0&&bt(e)!=="[object Array]"&&bt(e.callee)==="[object Function]"},Qn=function(){return $e(arguments)}();$e.isLegacyArguments=Fr;var ei=Qn?$e:Fr,ti=Object.prototype.toString,ri=Function.prototype.toString,ni=/^\s*(?:function)?\*/,Cr=Rt(),Ye=Object.getPrototypeOf,ii=function(){if(!Cr)return!1;try{return Function("return function*() {}")()}catch{}},Ze,oi=function(e){if(typeof e!="function")return!1;if(ni.test(ri.call(e)))return!0;if(!Cr){var r=ti.call(e);return r==="[object GeneratorFunction]"}if(!Ye)return!1;if(typeof Ze>"u"){var o=ii();Ze=o?Ye(o):!1}return Ye(e)===Ze},Ir=Function.prototype.toString,ge=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,wt,je;if(typeof ge=="function"&&typeof Object.defineProperty=="function")try{wt=Object.defineProperty({},"length",{get:function(){throw je}}),je={},ge(function(){throw 42},null,wt)}catch(t){t!==je&&(ge=null)}else ge=null;var ai=/^\s*class\b/,mt=function(e){try{var r=Ir.call(e);return ai.test(r)}catch{return!1}},Xe=function(e){try{return mt(e)?!1:(Ir.call(e),!0)}catch{return!1}},Le=Object.prototype.toString,fi="[object Object]",ui="[object Function]",si="[object GeneratorFunction]",li="[object HTMLAllCollection]",ci="[object HTML document.all class]",di="[object HTMLCollection]",pi=typeof Symbol=="function"&&!!Symbol.toStringTag,yi=!(0 in[,]),_t=function(){return!1};if(typeof document=="object"){var hi=document.all;Le.call(hi)===Le.call(document.all)&&(_t=function(e){if((yi||!e)&&(typeof e>"u"||typeof e=="object"))try{var r=Le.call(e);return(r===li||r===ci||r===di||r===fi)&&e("")==null}catch{}return!1})}var gi=ge?function(e){if(_t(e))return!0;if(!e||typeof e!="function"&&typeof e!="object")return!1;try{ge(e,null,wt)}catch(r){if(r!==je)return!1}return!mt(e)&&Xe(e)}:function(e){if(_t(e))return!0;if(!e||typeof e!="function"&&typeof e!="object")return!1;if(pi)return Xe(e);if(mt(e))return!1;var r=Le.call(e);return r!==ui&&r!==si&&!/^\[object HTML/.test(r)?!1:Xe(e)},vi=gi,bi=Object.prototype.toString,Br=Object.prototype.hasOwnProperty,wi=function(e,r,o){for(var u=0,f=e.length;u=3&&(u=o),bi.call(e)==="[object Array]"?wi(e,r,u):typeof e=="string"?mi(e,r,u):_i(e,r,u)},Ei=Si,Ai=["Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"],Qe=Ai,Ri=typeof globalThis>"u"?fe:globalThis,Oi=function(){for(var e=[],r=0;r"u"?fe:globalThis,St=Pi(),Lt=jt("String.prototype.slice"),et=Object.getPrototypeOf,ji=jt("Array.prototype.indexOf",!0)||function(e,r){for(var o=0;o-1?r:r!=="Object"?!1:Mi(e)}return Me?Li(e):null},Ni=kr,Di=function(e){return!!Ni(e)};(function(t){var e=ei,r=oi,o=kr,u=Di;function f(_){return _.call.bind(_)}var y=typeof BigInt<"u",c=typeof Symbol<"u",p=f(Object.prototype.toString),m=f(Number.prototype.valueOf),P=f(String.prototype.valueOf),T=f(Boolean.prototype.valueOf);if(y)var A=f(BigInt.prototype.valueOf);if(c)var R=f(Symbol.prototype.valueOf);function j(_,Re){if(typeof _!="object")return!1;try{return Re(_),!0}catch{return!1}}t.isArgumentsObject=e,t.isGeneratorFunction=r,t.isTypedArray=u;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(_):u(_)||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 L(_){return o(_)==="Uint32Array"}t.isUint32Array=L;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 B(_){return o(_)==="Float32Array"}t.isFloat32Array=B;function I(_){return o(_)==="Float64Array"}t.isFloat64Array=I;function H(_){return o(_)==="BigInt64Array"}t.isBigInt64Array=H;function Y(_){return o(_)==="BigUint64Array"}t.isBigUint64Array=Y;function K(_){return p(_)==="[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 p(_)==="[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 Z(_){return p(_)==="[object WeakMap]"}Z.working=typeof WeakMap<"u"&&Z(new WeakMap);function Q(_){return typeof WeakMap>"u"?!1:Z.working?Z(_):_ instanceof WeakMap}t.isWeakMap=Q;function ie(_){return p(_)==="[object WeakSet]"}ie.working=typeof WeakSet<"u"&&ie(new WeakSet);function ee(_){return ie(_)}t.isWeakSet=ee;function z(_){return p(_)==="[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 p(_)==="[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 O(_){return p(_)==="[object SharedArrayBuffer]"}function s(_){return typeof w>"u"?!1:(typeof O.working>"u"&&(O.working=O(new w)),O.working?O(_):_ instanceof w)}t.isSharedArrayBuffer=s;function l(_){return p(_)==="[object AsyncFunction]"}t.isAsyncFunction=l;function b(_){return p(_)==="[object Map Iterator]"}t.isMapIterator=b;function M(_){return p(_)==="[object Set Iterator]"}t.isSetIterator=M;function D(_){return p(_)==="[object Generator]"}t.isGeneratorObject=D;function n(_){return p(_)==="[object WebAssembly.Module]"}t.isWebAssemblyCompiledModule=n;function i(_){return j(_,m)}t.isNumberObject=i;function S(_){return j(_,P)}t.isStringObject=S;function F(_){return j(_,T)}t.isBooleanObject=F;function q(_){return y&&j(_,A)}t.isBigIntObject=q;function U(_){return c&&j(_,R)}t.isSymbolObject=U;function x(_){return i(_)||S(_)||F(_)||q(_)||U(_)}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")}})})})(Ar);var Fi=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 O=Object.keys(w),s={},l=0;l=l)return D;switch(D){case"%s":return String(s[O++]);case"%d":return Number(s[O++]);case"%j":try{return JSON.stringify(s[O++])}catch{return"[Circular]"}default:return D}}),M=s[O];O"u")return function(){return t.deprecate(h,w).apply(this,arguments)};var O=!1;function s(){if(!O){if(k.throwDeprecation)throw new Error(w);k.traceDeprecation?console.trace(w):console.error(w),O=!0}return h.apply(this,arguments)}return s};var u={},f=/^$/;if(e.NODE_DEBUG){var y=e.NODE_DEBUG;y=y.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),f=new RegExp("^"+y+"$","i")}t.debuglog=function(h){if(h=h.toUpperCase(),!u[h])if(f.test(h)){var w=k.pid;u[h]=function(){var O=t.format.apply(t,arguments);console.error("%s %d: %s",h,w,O)}}else u[h]=function(){};return u[h]};function c(h,w){var O={seen:[],stylize:m};return arguments.length>=3&&(O.depth=arguments[2]),arguments.length>=4&&(O.colors=arguments[3]),v(w)?O.showHidden=w:w&&t._extend(O,w),B(O.showHidden)&&(O.showHidden=!1),B(O.depth)&&(O.depth=2),B(O.colors)&&(O.colors=!1),B(O.customInspect)&&(O.customInspect=!0),O.colors&&(O.stylize=p),T(O,h,O.depth)}t.inspect=c,c.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]},c.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function p(h,w){var O=c.styles[w];return O?"\x1B["+c.colors[O][0]+"m"+h+"\x1B["+c.colors[O][1]+"m":h}function m(h,w){return h}function P(h){var w={};return h.forEach(function(O,s){w[O]=!0}),w}function T(h,w,O){if(h.customInspect&&w&&J(w.inspect)&&w.inspect!==t.inspect&&!(w.constructor&&w.constructor.prototype===w)){var s=w.inspect(O,h);return C(s)||(s=T(h,s,O)),s}var l=A(h,w);if(l)return l;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 R(w);if(b.length===0){if(J(w)){var D=w.name?": "+w.name:"";return h.stylize("[Function"+D+"]","special")}if(I(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 R(w)}var n="",i=!1,S=["{","}"];if(a(w)&&(i=!0,S=["[","]"]),J(w)){var F=w.name?": "+w.name:"";n=" [Function"+F+"]"}if(I(w)&&(n=" "+RegExp.prototype.toString.call(w)),Y(w)&&(n=" "+Date.prototype.toUTCString.call(w)),K(w)&&(n=" "+R(w)),b.length===0&&(!i||w.length==0))return S[0]+n+S[1];if(O<0)return I(w)?h.stylize(RegExp.prototype.toString.call(w),"regexp"):h.stylize("[Object]","special");h.seen.push(w);var q;return i?q=j(h,w,O,M,b):q=b.map(function(U){return d(h,w,O,M,U,i)}),h.seen.pop(),g(q,n,S)}function A(h,w){if(B(w))return h.stylize("undefined","undefined");if(C(w)){var O="'"+JSON.stringify(w).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return h.stylize(O,"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 R(h){return"["+Error.prototype.toString.call(h)+"]"}function j(h,w,O,s,l){for(var b=[],M=0,D=w.length;M0&&(y=r[0]),y instanceof Error)throw y;var c=new Error("Unhandled error."+(y?" ("+y.message+")":""));throw c.context=y,c}var p=f[e];if(p===void 0)return!1;if(typeof p=="function")Ct(p,this,r);else for(var m=p.length,P=_r(p,m),o=0;o0&&y.length>u&&!y.warned){y.warned=!0;var c=new Error("Possible EventEmitter memory leak detected. "+y.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit");c.name="MaxListenersExceededWarning",c.emitter=t,c.type=e,c.count=y.length,Yr(c)}return t}G.prototype.addListener=function(e,r){return vr(this,e,r,!1)};G.prototype.on=G.prototype.addListener;G.prototype.prependListener=function(e,r){return vr(this,e,r,!0)};function Xr(){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 br(t,e,r){var o={fired:!1,wrapFn:void 0,target:t,type:e,listener:r},u=Xr.bind(o);return u.listener=r,o.wrapFn=u,u}G.prototype.once=function(e,r){return Ie(r),this.on(e,br(this,e,r)),this};G.prototype.prependOnceListener=function(e,r){return Ie(r),this.prependListener(e,br(this,e,r)),this};G.prototype.removeListener=function(e,r){var o,u,f,y,c;if(Ie(r),u=this._events,u===void 0)return this;if(o=u[e],o===void 0)return this;if(o===r||o.listener===r)--this._eventsCount===0?this._events=Object.create(null):(delete u[e],u.removeListener&&this.emit("removeListener",e,o.listener||r));else if(typeof o!="function"){for(f=-1,y=o.length-1;y>=0;y--)if(o[y]===r||o[y].listener===r){c=o[y].listener,f=y;break}if(f<0)return this;f===0?o.shift():Zr(o,f),o.length===1&&(u[e]=o[0]),u.removeListener!==void 0&&this.emit("removeListener",e,c||r)}return this};G.prototype.off=G.prototype.removeListener;G.prototype.removeAllListeners=function(e){var r,o,u;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 f=Object.keys(o),y;for(u=0;u=0;u--)this.removeListener(e,r[u]);return this};function wr(t,e,r){var o=t._events;if(o===void 0)return[];var u=o[e];return u===void 0?[]:typeof u=="function"?r?[u.listener||u]:[u]:r?Qr(u):_r(u,u.length)}G.prototype.listeners=function(e){return wr(this,e,!0)};G.prototype.rawListeners=function(e){return wr(this,e,!1)};G.listenerCount=function(t,e){return typeof t.listenerCount=="function"?t.listenerCount(e):mr.call(t,e)};G.prototype.listenerCount=mr;function mr(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}G.prototype.eventNames=function(){return this._eventsCount>0?Pe(this._events):[]};function _r(t,e){for(var r=new Array(e),o=0;o"u"||!V?$:V(Uint8Array),se={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?$:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?$:ArrayBuffer,"%ArrayIteratorPrototype%":pe&&V?V([][Symbol.iterator]()):$,"%AsyncFromSyncIteratorPrototype%":$,"%AsyncFunction%":he,"%AsyncGenerator%":he,"%AsyncGeneratorFunction%":he,"%AsyncIteratorPrototype%":he,"%Atomics%":typeof Atomics>"u"?$:Atomics,"%BigInt%":typeof BigInt>"u"?$:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?$:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?$:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?$:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Rn,"%eval%":eval,"%EvalError%":On,"%Float32Array%":typeof Float32Array>"u"?$:Float32Array,"%Float64Array%":typeof Float64Array>"u"?$:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?$:FinalizationRegistry,"%Function%":Pr,"%GeneratorFunction%":he,"%Int8Array%":typeof Int8Array>"u"?$:Int8Array,"%Int16Array%":typeof Int16Array>"u"?$:Int16Array,"%Int32Array%":typeof Int32Array>"u"?$:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":pe&&V?V(V([][Symbol.iterator]())):$,"%JSON%":typeof JSON=="object"?JSON:$,"%Map%":typeof Map>"u"?$:Map,"%MapIteratorPrototype%":typeof Map>"u"||!pe||!V?$:V(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?$:Promise,"%Proxy%":typeof Proxy>"u"?$:Proxy,"%RangeError%":Pn,"%ReferenceError%":Tn,"%Reflect%":typeof Reflect>"u"?$:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?$:Set,"%SetIteratorPrototype%":typeof Set>"u"||!pe||!V?$:V(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?$:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":pe&&V?V(""[Symbol.iterator]()):$,"%Symbol%":pe?Symbol:$,"%SyntaxError%":we,"%ThrowTypeError%":Ln,"%TypedArray%":Nn,"%TypeError%":be,"%Uint8Array%":typeof Uint8Array>"u"?$:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?$:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?$:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?$:Uint32Array,"%URIError%":jn,"%WeakMap%":typeof WeakMap>"u"?$:WeakMap,"%WeakRef%":typeof WeakRef>"u"?$:WeakRef,"%WeakSet%":typeof WeakSet>"u"?$:WeakSet};if(V)try{null.error}catch(t){var Dn=V(V(t));se["%Error.prototype%"]=Dn}var Fn=function t(e){var r;if(e==="%AsyncFunction%")r=ze("async function () {}");else if(e==="%GeneratorFunction%")r=ze("function* () {}");else if(e==="%AsyncGeneratorFunction%")r=ze("async function* () {}");else if(e==="%AsyncGenerator%"){var o=t("%AsyncGeneratorFunction%");o&&(r=o.prototype)}else if(e==="%AsyncIteratorPrototype%"){var u=t("%AsyncGenerator%");u&&V&&(r=V(u.prototype))}return se[e]=r,r},$t={__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"]},Ee=Ot,Ne=An,Cn=Ee.call(Function.call,Array.prototype.concat),In=Ee.call(Function.apply,Array.prototype.splice),Wt=Ee.call(Function.call,String.prototype.replace),De=Ee.call(Function.call,String.prototype.slice),Bn=Ee.call(Function.call,RegExp.prototype.exec),Un=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,kn=/\\(\\)?/g,$n=function(e){var r=De(e,0,1),o=De(e,-1);if(r==="%"&&o!=="%")throw new we("invalid intrinsic syntax, expected closing `%`");if(o==="%"&&r!=="%")throw new we("invalid intrinsic syntax, expected opening `%`");var u=[];return Wt(e,Un,function(f,y,c,p){u[u.length]=c?Wt(p,kn,"$1"):y||f}),u},Wn=function(e,r){var o=e,u;if(Ne($t,o)&&(u=$t[o],o="%"+u[0]+"%"),Ne(se,o)){var f=se[o];if(f===he&&(f=Fn(o)),typeof f>"u"&&!r)throw new be("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:u,name:o,value:f}}throw new we("intrinsic "+e+" does not exist!")},Ae=function(e,r){if(typeof e!="string"||e.length===0)throw new be("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new be('"allowMissing" argument must be a boolean');if(Bn(/^%?[^%]*%?$/,e)===null)throw new we("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var o=$n(e),u=o.length>0?o[0]:"",f=Wn("%"+u+"%",r),y=f.name,c=f.value,p=!1,m=f.alias;m&&(u=m[0],In(o,Cn([0,1],m)));for(var P=1,T=!0;P=o.length){var d=ue(c,A);T=!!d,T&&"get"in d&&!("originalValue"in d.get)?c=d.get:c=c[A]}else T=Ne(c,A),c=c[A];T&&!p&&(se[y]=c)}}return c},Tr={exports:{}},Je,qt;function Pt(){if(qt)return Je;qt=1;var t=Ae,e=t("%Object.defineProperty%",!0)||!1;if(e)try{e({},"a",{value:1})}catch{e=!1}return Je=e,Je}var qn=Ae,Te=qn("%Object.getOwnPropertyDescriptor%",!0);if(Te)try{Te([],"length")}catch{Te=null}var Tt=Te,xt=Pt(),xn=Or,ye=ke,Gt=Tt,Gn=function(e,r,o){if(!e||typeof e!="object"&&typeof e!="function")throw new ye("`obj` must be an object or a function`");if(typeof r!="string"&&typeof r!="symbol")throw new ye("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new ye("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new ye("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new ye("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new ye("`loose`, if provided, must be a boolean");var u=arguments.length>3?arguments[3]:null,f=arguments.length>4?arguments[4]:null,y=arguments.length>5?arguments[5]:null,c=arguments.length>6?arguments[6]:!1,p=!!Gt&&Gt(e,r);if(xt)xt(e,r,{configurable:y===null&&p?p.configurable:!y,enumerable:u===null&&p?p.enumerable:!u,value:o,writable:f===null&&p?p.writable:!f});else if(c||!u&&!f&&!y)e[r]=o;else throw new xn("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},vt=Pt(),jr=function(){return!!vt};jr.hasArrayLengthDefineBug=function(){if(!vt)return null;try{return vt([],"length",{value:1}).length!==1}catch{return!0}};var Hn=jr,Vn=Ae,Ht=Gn,zn=Hn(),Vt=Tt,zt=ke,Kn=Vn("%Math.floor%"),Jn=function(e,r){if(typeof e!="function")throw new zt("`fn` is not a function");if(typeof r!="number"||r<0||r>4294967295||Kn(r)!==r)throw new zt("`length` must be a positive 32-bit integer");var o=arguments.length>2&&!!arguments[2],u=!0,f=!0;if("length"in e&&Vt){var y=Vt(e,"length");y&&!y.configurable&&(u=!1),y&&!y.writable&&(f=!1)}return(u||f||!o)&&(zn?Ht(e,"length",r,!0,!0):Ht(e,"length",r)),e};(function(t){var e=Ot,r=Ae,o=Jn,u=ke,f=r("%Function.prototype.apply%"),y=r("%Function.prototype.call%"),c=r("%Reflect.apply%",!0)||e.call(y,f),p=Pt(),m=r("%Math.max%");t.exports=function(A){if(typeof A!="function")throw new u("a function is required");var R=c(e,y,arguments);return o(R,1+m(0,A.length-(arguments.length-1)),!0)};var P=function(){return c(e,f,arguments)};p?p(t.exports,"apply",{value:P}):t.exports.apply=P})(Tr);var Lr=Tr.exports,Mr=Ae,Nr=Lr,Yn=Nr(Mr("String.prototype.indexOf")),Dr=function(e,r){var o=Mr(e,!!r);return typeof o=="function"&&Yn(e,".prototype.")>-1?Nr(o):o},Xn=Rt(),Zn=Dr,bt=Zn("Object.prototype.toString"),$e=function(e){return Xn&&e&&typeof e=="object"&&Symbol.toStringTag in e?!1:bt(e)==="[object Arguments]"},Fr=function(e){return $e(e)?!0:e!==null&&typeof e=="object"&&typeof e.length=="number"&&e.length>=0&&bt(e)!=="[object Array]"&&bt(e.callee)==="[object Function]"},Qn=function(){return $e(arguments)}();$e.isLegacyArguments=Fr;var ei=Qn?$e:Fr,ti=Object.prototype.toString,ri=Function.prototype.toString,ni=/^\s*(?:function)?\*/,Cr=Rt(),Ye=Object.getPrototypeOf,ii=function(){if(!Cr)return!1;try{return Function("return function*() {}")()}catch{}},Xe,oi=function(e){if(typeof e!="function")return!1;if(ni.test(ri.call(e)))return!0;if(!Cr){var r=ti.call(e);return r==="[object GeneratorFunction]"}if(!Ye)return!1;if(typeof Xe>"u"){var o=ii();Xe=o?Ye(o):!1}return Ye(e)===Xe},Ir=Function.prototype.toString,ge=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,wt,je;if(typeof ge=="function"&&typeof Object.defineProperty=="function")try{wt=Object.defineProperty({},"length",{get:function(){throw je}}),je={},ge(function(){throw 42},null,wt)}catch(t){t!==je&&(ge=null)}else ge=null;var ai=/^\s*class\b/,mt=function(e){try{var r=Ir.call(e);return ai.test(r)}catch{return!1}},Ze=function(e){try{return mt(e)?!1:(Ir.call(e),!0)}catch{return!1}},Le=Object.prototype.toString,fi="[object Object]",ui="[object Function]",si="[object GeneratorFunction]",li="[object HTMLAllCollection]",ci="[object HTML document.all class]",di="[object HTMLCollection]",pi=typeof Symbol=="function"&&!!Symbol.toStringTag,yi=!(0 in[,]),_t=function(){return!1};if(typeof document=="object"){var hi=document.all;Le.call(hi)===Le.call(document.all)&&(_t=function(e){if((yi||!e)&&(typeof e>"u"||typeof e=="object"))try{var r=Le.call(e);return(r===li||r===ci||r===di||r===fi)&&e("")==null}catch{}return!1})}var gi=ge?function(e){if(_t(e))return!0;if(!e||typeof e!="function"&&typeof e!="object")return!1;try{ge(e,null,wt)}catch(r){if(r!==je)return!1}return!mt(e)&&Ze(e)}:function(e){if(_t(e))return!0;if(!e||typeof e!="function"&&typeof e!="object")return!1;if(pi)return Ze(e);if(mt(e))return!1;var r=Le.call(e);return r!==ui&&r!==si&&!/^\[object HTML/.test(r)?!1:Ze(e)},vi=gi,bi=Object.prototype.toString,Br=Object.prototype.hasOwnProperty,wi=function(e,r,o){for(var u=0,f=e.length;u=3&&(u=o),bi.call(e)==="[object Array]"?wi(e,r,u):typeof e=="string"?mi(e,r,u):_i(e,r,u)},Ei=Si,Ai=["Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"],Qe=Ai,Ri=typeof globalThis>"u"?fe:globalThis,Oi=function(){for(var e=[],r=0;r"u"?fe:globalThis,St=Pi(),Lt=jt("String.prototype.slice"),et=Object.getPrototypeOf,ji=jt("Array.prototype.indexOf",!0)||function(e,r){for(var o=0;o-1?r:r!=="Object"?!1:Mi(e)}return Me?Li(e):null},Ni=kr,Di=function(e){return!!Ni(e)};(function(t){var e=ei,r=oi,o=kr,u=Di;function f(_){return _.call.bind(_)}var y=typeof BigInt<"u",c=typeof Symbol<"u",p=f(Object.prototype.toString),m=f(Number.prototype.valueOf),P=f(String.prototype.valueOf),T=f(Boolean.prototype.valueOf);if(y)var A=f(BigInt.prototype.valueOf);if(c)var R=f(Symbol.prototype.valueOf);function j(_,Re){if(typeof _!="object")return!1;try{return Re(_),!0}catch{return!1}}t.isArgumentsObject=e,t.isGeneratorFunction=r,t.isTypedArray=u;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(_):u(_)||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 L(_){return o(_)==="Uint32Array"}t.isUint32Array=L;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 B(_){return o(_)==="Float32Array"}t.isFloat32Array=B;function I(_){return o(_)==="Float64Array"}t.isFloat64Array=I;function H(_){return o(_)==="BigInt64Array"}t.isBigInt64Array=H;function Y(_){return o(_)==="BigUint64Array"}t.isBigUint64Array=Y;function K(_){return p(_)==="[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 p(_)==="[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 p(_)==="[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 p(_)==="[object WeakSet]"}ie.working=typeof WeakSet<"u"&&ie(new WeakSet);function ee(_){return ie(_)}t.isWeakSet=ee;function z(_){return p(_)==="[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 p(_)==="[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 O(_){return p(_)==="[object SharedArrayBuffer]"}function s(_){return typeof w>"u"?!1:(typeof O.working>"u"&&(O.working=O(new w)),O.working?O(_):_ instanceof w)}t.isSharedArrayBuffer=s;function l(_){return p(_)==="[object AsyncFunction]"}t.isAsyncFunction=l;function b(_){return p(_)==="[object Map Iterator]"}t.isMapIterator=b;function M(_){return p(_)==="[object Set Iterator]"}t.isSetIterator=M;function D(_){return p(_)==="[object Generator]"}t.isGeneratorObject=D;function n(_){return p(_)==="[object WebAssembly.Module]"}t.isWebAssemblyCompiledModule=n;function i(_){return j(_,m)}t.isNumberObject=i;function S(_){return j(_,P)}t.isStringObject=S;function F(_){return j(_,T)}t.isBooleanObject=F;function q(_){return y&&j(_,A)}t.isBigIntObject=q;function U(_){return c&&j(_,R)}t.isSymbolObject=U;function x(_){return i(_)||S(_)||F(_)||q(_)||U(_)}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")}})})})(Ar);var Fi=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 O=Object.keys(w),s={},l=0;l=l)return D;switch(D){case"%s":return String(s[O++]);case"%d":return Number(s[O++]);case"%j":try{return JSON.stringify(s[O++])}catch{return"[Circular]"}default:return D}}),M=s[O];O"u")return function(){return t.deprecate(h,w).apply(this,arguments)};var O=!1;function s(){if(!O){if(k.throwDeprecation)throw new Error(w);k.traceDeprecation?console.trace(w):console.error(w),O=!0}return h.apply(this,arguments)}return s};var u={},f=/^$/;if(e.NODE_DEBUG){var y=e.NODE_DEBUG;y=y.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),f=new RegExp("^"+y+"$","i")}t.debuglog=function(h){if(h=h.toUpperCase(),!u[h])if(f.test(h)){var w=k.pid;u[h]=function(){var O=t.format.apply(t,arguments);console.error("%s %d: %s",h,w,O)}}else u[h]=function(){};return u[h]};function c(h,w){var O={seen:[],stylize:m};return arguments.length>=3&&(O.depth=arguments[2]),arguments.length>=4&&(O.colors=arguments[3]),v(w)?O.showHidden=w:w&&t._extend(O,w),B(O.showHidden)&&(O.showHidden=!1),B(O.depth)&&(O.depth=2),B(O.colors)&&(O.colors=!1),B(O.customInspect)&&(O.customInspect=!0),O.colors&&(O.stylize=p),T(O,h,O.depth)}t.inspect=c,c.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]},c.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function p(h,w){var O=c.styles[w];return O?"\x1B["+c.colors[O][0]+"m"+h+"\x1B["+c.colors[O][1]+"m":h}function m(h,w){return h}function P(h){var w={};return h.forEach(function(O,s){w[O]=!0}),w}function T(h,w,O){if(h.customInspect&&w&&J(w.inspect)&&w.inspect!==t.inspect&&!(w.constructor&&w.constructor.prototype===w)){var s=w.inspect(O,h);return C(s)||(s=T(h,s,O)),s}var l=A(h,w);if(l)return l;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 R(w);if(b.length===0){if(J(w)){var D=w.name?": "+w.name:"";return h.stylize("[Function"+D+"]","special")}if(I(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 R(w)}var n="",i=!1,S=["{","}"];if(a(w)&&(i=!0,S=["[","]"]),J(w)){var F=w.name?": "+w.name:"";n=" [Function"+F+"]"}if(I(w)&&(n=" "+RegExp.prototype.toString.call(w)),Y(w)&&(n=" "+Date.prototype.toUTCString.call(w)),K(w)&&(n=" "+R(w)),b.length===0&&(!i||w.length==0))return S[0]+n+S[1];if(O<0)return I(w)?h.stylize(RegExp.prototype.toString.call(w),"regexp"):h.stylize("[Object]","special");h.seen.push(w);var q;return i?q=j(h,w,O,M,b):q=b.map(function(U){return d(h,w,O,M,U,i)}),h.seen.pop(),g(q,n,S)}function A(h,w){if(B(w))return h.stylize("undefined","undefined");if(C(w)){var O="'"+JSON.stringify(w).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return h.stylize(O,"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 R(h){return"["+Error.prototype.toString.call(h)+"]"}function j(h,w,O,s,l){for(var b=[],M=0,D=w.length;M-1&&(b?D=D.split(` `).map(function(i){return" "+i}).join(` `).slice(2):D=` @@ -7,4 +7,4 @@ import{a_ as yr,b0 as Vr,aY as fe,aZ as k,aX as zr,aW as Ge}from"./index-DacOZnW `))):D=h.stylize("[Circular]","special")),B(M)){if(b&&l.match(/^\d+$/))return D;M=JSON.stringify(""+l),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+": "+D}function g(h,w,O){var s=h.reduce(function(l,b){return b.indexOf(` `)>=0,l+b.replace(/\u001b\[\d\d?m/g,"").length+1},0);return s>60?O[0]+(w===""?"":w+` `)+" "+h.join(`, - `)+" "+O[1]:O[0]+w+" "+h.join(", ")+" "+O[1]}t.types=Ar;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 L(h){return h==null}t.isNullOrUndefined=L;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 B(h){return h===void 0}t.isUndefined=B;function I(h){return H(h)&&ne(h)==="[object RegExp]"}t.isRegExp=I,t.types.isRegExp=I;function H(h){return typeof h=="object"&&h!==null}t.isObject=H;function Y(h){return H(h)&&ne(h)==="[object Date]"}t.isDate=Y,t.types.isDate=Y;function K(h){return H(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=Fi;function ne(h){return Object.prototype.toString.call(h)}function Z(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=[Z(h.getHours()),Z(h.getMinutes()),Z(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=le,t._extend=function(h,w){if(!w||!H(w))return h;for(var O=Object.keys(w),s=O.length;s--;)h[O[s]]=w[O[s]];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 O=w[z];if(typeof O!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(O,z,{value:O,enumerable:!1,writable:!1,configurable:!0}),O}function O(){for(var s,l,b=new Promise(function(n,i){s=n,l=i}),M=[],D=0;D0?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;)R(v.data,a,E),E+=v.data.length,v=v.next;return a}},{key:"consume",value:function(g,a){var v;return gL.length?L.length:g;if(N===L.length?E+=L:E+=L.slice(0,g),g-=N,g===0){N===L.length?(++v,a.next?this.head=a.next:this.head=this.tail=null):(this.head=a,a.data=L.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 L=v.data,N=g>L.length?L.length:g;if(L.copy(a,a.length-g,0,N),g-=N,g===0){N===L.length?(++E,v.next?this.head=v.next:this.head=this.tail=null):(this.head=v,v.data=L.slice(N));break}++E}return this.length-=E,a}},{key:A,value:function(g,a){return T(this,e(e({},a),{},{depth:0,customInspect:!1}))}}]),j}(),tt}var rt,Zt;function $r(){if(Zt)return rt;Zt=1;function t(y,c){var p=this,m=this._readableState&&this._readableState.destroyed,P=this._writableState&&this._writableState.destroyed;return m||P?(c?c(y):y&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,k.nextTick(u,this,y)):k.nextTick(u,this,y)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(y||null,function(T){!c&&T?p._writableState?p._writableState.errorEmitted?k.nextTick(r,p):(p._writableState.errorEmitted=!0,k.nextTick(e,p,T)):k.nextTick(e,p,T):c?(k.nextTick(r,p),c(T)):k.nextTick(r,p)}),this)}function e(y,c){u(y,c),r(y)}function r(y){y._writableState&&!y._writableState.emitClose||y._readableState&&!y._readableState.emitClose||y.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 u(y,c){y.emit("error",c)}function f(y,c){var p=y._readableState,m=y._writableState;p&&p.autoDestroy||m&&m.autoDestroy?y.destroy(c):y.emit("error",c)}return rt={destroy:t,undestroy:o,errorOrDestroy:f},rt}var nt={},Xt;function _e(){if(Xt)return nt;Xt=1;function t(c,p){c.prototype=Object.create(p.prototype),c.prototype.constructor=c,c.__proto__=p}var e={};function r(c,p,m){m||(m=Error);function P(A,R,j){return typeof p=="string"?p:p(A,R,j)}var T=function(A){t(R,A);function R(j,d,g){return A.call(this,P(j,d,g))||this}return R}(m);T.prototype.name=m.name,T.prototype.code=c,e[c]=T}function o(c,p){if(Array.isArray(c)){var m=c.length;return c=c.map(function(P){return String(P)}),m>2?"one of ".concat(p," ").concat(c.slice(0,m-1).join(", "),", or ")+c[m-1]:m===2?"one of ".concat(p," ").concat(c[0]," or ").concat(c[1]):"of ".concat(p," ").concat(c[0])}else return"of ".concat(p," ").concat(String(c))}function u(c,p,m){return c.substr(0,p.length)===p}function f(c,p,m){return(m===void 0||m>c.length)&&(m=c.length),c.substring(m-p.length,m)===p}function y(c,p,m){return typeof m!="number"&&(m=0),m+p.length>c.length?!1:c.indexOf(p,m)!==-1}return r("ERR_INVALID_OPT_VALUE",function(c,p){return'The value "'+p+'" is invalid for option "'+c+'"'},TypeError),r("ERR_INVALID_ARG_TYPE",function(c,p,m){var P;typeof p=="string"&&u(p,"not ")?(P="must not be",p=p.replace(/^not /,"")):P="must be";var T;if(f(c," argument"))T="The ".concat(c," ").concat(P," ").concat(o(p,"type"));else{var A=y(c,".")?"property":"argument";T='The "'.concat(c,'" ').concat(A," ").concat(P," ").concat(o(p,"type"))}return T+=". Received type ".concat(typeof m),T},TypeError),r("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),r("ERR_METHOD_NOT_IMPLEMENTED",function(c){return"The "+c+" method is not implemented"}),r("ERR_STREAM_PREMATURE_CLOSE","Premature close"),r("ERR_STREAM_DESTROYED",function(c){return"Cannot call "+c+" 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(c){return"Unknown encoding: "+c},TypeError),r("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),nt.codes=e,nt}var it,Qt;function Wr(){if(Qt)return it;Qt=1;var t=_e().codes.ERR_INVALID_OPT_VALUE;function e(o,u,f){return o.highWaterMark!=null?o.highWaterMark:u?o[f]:null}function r(o,u,f,y){var c=e(u,y,f);if(c!=null){if(!(isFinite(c)&&Math.floor(c)===c)||c<0){var p=y?f:"highWaterMark";throw new t(p,c)}return Math.floor(c)}return o.objectMode?16:16*1024}return it={getHighWaterMark:r},it}var ot,er;function Ii(){if(er)return ot;er=1,ot=t;function t(r,o){if(e("noDeprecation"))return r;var u=!1;function f(){if(!u){if(e("throwDeprecation"))throw new Error(o);e("traceDeprecation")?console.trace(o):console.warn(o),u=!0}return r.apply(this,arguments)}return f}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 ot}var at,tr;function qr(){if(tr)return at;tr=1,at=B;function t(s){var l=this;this.next=null,this.entry=null,this.finish=function(){O(l,s)}}var e;B.WritableState=C;var r={deprecate:Ii()},o=Er(),u=Be.Buffer,f=(typeof fe<"u"?fe:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function y(s){return u.from(s)}function c(s){return u.isBuffer(s)||s instanceof f}var p=$r(),m=Wr(),P=m.getHighWaterMark,T=_e().codes,A=T.ERR_INVALID_ARG_TYPE,R=T.ERR_METHOD_NOT_IMPLEMENTED,j=T.ERR_MULTIPLE_CALLBACK,d=T.ERR_STREAM_CANNOT_PIPE,g=T.ERR_STREAM_DESTROYED,a=T.ERR_STREAM_NULL_VALUES,v=T.ERR_STREAM_WRITE_AFTER_END,E=T.ERR_UNKNOWN_ENCODING,L=p.errorOrDestroy;le(B,o);function N(){}function C(s,l,b){e=e||me(),s=s||{},typeof b!="boolean"&&(b=l instanceof e),this.objectMode=!!s.objectMode,b&&(this.objectMode=this.objectMode||!!s.writableObjectMode),this.highWaterMark=P(this,s,"writableHighWaterMark",b),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var M=s.decodeStrings===!1;this.decodeStrings=!M,this.defaultEncoding=s.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(D){Z(l,D)},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)}C.prototype.getBuffer=function(){for(var l=this.bufferedRequest,b=[];l;)b.push(l),l=l.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(B,Symbol.hasInstance,{value:function(l){return W.call(this,l)?!0:this!==B?!1:l&&l._writableState instanceof C}})):W=function(l){return l instanceof this};function B(s){e=e||me();var l=this instanceof e;if(!l&&!W.call(B,this))return new B(s);this._writableState=new C(s,this,l),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)),o.call(this)}B.prototype.pipe=function(){L(this,new d)};function I(s,l){var b=new v;L(s,b),k.nextTick(l,b)}function H(s,l,b,M){var D;return b===null?D=new a:typeof b!="string"&&!l.objectMode&&(D=new A("chunk",["string","Buffer"],b)),D?(L(s,D),k.nextTick(M,D),!1):!0}B.prototype.write=function(s,l,b){var M=this._writableState,D=!1,n=!M.objectMode&&c(s);return n&&!u.isBuffer(s)&&(s=y(s)),typeof l=="function"&&(b=l,l=null),n?l="buffer":l||(l=M.defaultEncoding),typeof b!="function"&&(b=N),M.ending?I(this,b):(n||H(this,M,s,b))&&(M.pendingcb++,D=K(this,M,n,s,l,b)),D},B.prototype.cork=function(){this._writableState.corked++},B.prototype.uncork=function(){var s=this._writableState;s.corked&&(s.corked--,!s.writing&&!s.corked&&!s.bufferProcessing&&s.bufferedRequest&&ee(this,s))},B.prototype.setDefaultEncoding=function(l){if(typeof l=="string"&&(l=l.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((l+"").toLowerCase())>-1))throw new E(l);return this._writableState.defaultEncoding=l,this},Object.defineProperty(B.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function Y(s,l,b){return!s.objectMode&&s.decodeStrings!==!1&&typeof l=="string"&&(l=u.from(l,b)),l}Object.defineProperty(B.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function K(s,l,b,M,D,n){if(!b){var i=Y(l,M,D);M!==i&&(b=!0,D="buffer",M=i)}var S=l.objectMode?1:M.length;l.length+=S;var F=l.length */var nr;function Bi(){return nr||(nr=1,function(t,e){var r=Be,o=r.Buffer;function u(y,c){for(var p in y)c[p]=y[p]}o.from&&o.alloc&&o.allocUnsafe&&o.allocUnsafeSlow?t.exports=r:(u(r,e),e.Buffer=f);function f(y,c,p){return o(y,c,p)}f.prototype=Object.create(o.prototype),u(o,f),f.from=function(y,c,p){if(typeof y=="number")throw new TypeError("Argument must not be a number");return o(y,c,p)},f.alloc=function(y,c,p){if(typeof y!="number")throw new TypeError("Argument must be a number");var m=o(y);return c!==void 0?typeof p=="string"?m.fill(c,p):m.fill(c):m.fill(0),m},f.allocUnsafe=function(y){if(typeof y!="number")throw new TypeError("Argument must be a number");return o(y)},f.allocUnsafeSlow=function(y){if(typeof y!="number")throw new TypeError("Argument must be a number");return r.SlowBuffer(y)}}(Oe,Oe.exports)),Oe.exports}var ir;function or(){if(ir)return ut;ir=1;var t=Bi().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}ut.StringDecoder=u;function u(a){this.encoding=o(a);var v;switch(this.encoding){case"utf16le":this.text=T,this.end=A,v=4;break;case"utf8":this.fillLast=p,v=4;break;case"base64":this.text=R,this.end=j,v=3;break;default:this.write=d,this.end=g;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=t.allocUnsafe(v)}u.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 y(a,v,E){var L=v.length-1;if(L=0?(N>0&&(a.lastNeed=N-1),N):--L=0?(N>0&&(a.lastNeed=N-2),N):--L=0?(N>0&&(N===2?N=0:a.lastNeed=N-3),N):0))}function c(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 p(a){var v=this.lastTotal-this.lastNeed,E=c(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=y(this,a,v);if(!this.lastNeed)return a.toString("utf8",v);this.lastTotal=E;var L=a.length-(E-this.lastNeed);return a.copy(this.lastChar,0,L),a.toString("utf8",v,L)}function P(a){var v=a&&a.length?this.write(a):"";return this.lastNeed?v+"�":v}function T(a,v){if((a.length-v)%2===0){var E=a.toString("utf16le",v);if(E){var L=E.charCodeAt(E.length-1);if(L>=55296&&L<=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 A(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 R(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 j(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 ut}var st,ar;function Mt(){if(ar)return st;ar=1;var t=_e().codes.ERR_STREAM_PREMATURE_CLOSE;function e(f){var y=!1;return function(){if(!y){y=!0;for(var c=arguments.length,p=new Array(c),m=0;m0)if(typeof i!="string"&&!U.objectMode&&Object.getPrototypeOf(i)!==o.prototype&&(i=f(i)),F)U.endEmitted?N(n,new a):Y(n,U,i,!0);else if(U.ended)N(n,new d);else{if(U.destroyed)return!1;U.reading=!1,U.decoder&&!S?(i=U.decoder.write(i),U.objectMode||i.length!==0?Y(n,U,i,!1):ee(n,U)):Y(n,U,i,!1)}else F||(U.reading=!1,ee(n,U))}return!U.ended&&(U.length=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))}I.prototype.read=function(n){p("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 p("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 F=i.needReadable;p("need readable",F),(i.length===0||i.length-n0?q=l(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 Z(n,i){if(p("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;p("emitReadable",i.needReadable,i.emittedReadable),i.needReadable=!1,i.emittedReadable||(p("emitReadable",i.flowing),i.emittedReadable=!0,k.nextTick(ie,n))}function ie(n){var i=n._readableState;p("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,k.nextTick(z,n,i))}function z(n,i){for(;!i.reading&&!i.ended&&(i.length1&&D(F.pipes,n)!==-1)&&!Re&&(p("false write response, pause",F.awaitDrain),F.awaitDrain++),S.pause())}function We(ce){p("onerror",ce),Se(),n.removeListener("error",We),e(n,"error")===0&&N(n,ce)}W(n,"error",We);function qe(){n.removeListener("finish",xe),Se()}n.once("close",qe);function xe(){p("onfinish"),n.removeListener("close",qe),Se()}n.once("finish",xe);function Se(){p("unpipe"),S.unpipe(n)}return n.emit("pipe",S),F.flowing||(p("pipe resume"),S.resume()),n};function oe(n){return function(){var S=n._readableState;p("pipeOnDrain",S.awaitDrain),S.awaitDrain&&S.awaitDrain--,S.awaitDrain===0&&e(n,"data")&&(S.flowing=!0,s(n))}}I.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 U=0;U0,F.flowing!==!1&&this.resume()):n==="readable"&&!F.endEmitted&&!F.readableListening&&(F.readableListening=F.needReadable=!0,F.flowing=!1,F.emittedReadable=!1,p("on readable",F.length,F.reading),F.length?Q(this):F.reading||k.nextTick(h,this)),S},I.prototype.addListener=I.prototype.on,I.prototype.removeListener=function(n,i){var S=r.prototype.removeListener.call(this,n,i);return n==="readable"&&k.nextTick(te,this),S},I.prototype.removeAllListeners=function(n){var i=r.prototype.removeAllListeners.apply(this,arguments);return(n==="readable"||n===void 0)&&k.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){p("readable nexttick read 0"),n.read(0)}I.prototype.resume=function(){var n=this._readableState;return n.flowing||(p("resume"),n.flowing=!n.readableListening,w(this,n)),n.paused=!1,this};function w(n,i){i.resumeScheduled||(i.resumeScheduled=!0,k.nextTick(O,n,i))}function O(n,i){p("resume",i.reading),i.reading||n.read(0),i.resumeScheduled=!1,n.emit("resume"),s(n),i.flowing&&!i.reading&&n.read(0)}I.prototype.pause=function(){return p("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(p("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function s(n){var i=n._readableState;for(p("flow",i.flowing);i.flowing&&n.read()!==null;);}I.prototype.wrap=function(n){var i=this,S=this._readableState,F=!1;n.on("end",function(){if(p("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(p("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 U=0;U=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;p("endReadable",i.endEmitted),i.endEmitted||(i.ended=!0,k.nextTick(M,i,n))}function M(n,i){if(p("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"&&(I.from=function(n,i){return L===void 0&&(L=ki()),L(I,n,i)});function D(n,i){for(var S=0,F=n.length;S0;return c(v,L,N,function(C){g||(g=C),C&&a.forEach(p),!L&&(a.forEach(p),d(g))})});return R.reduce(m)}return ht=T,ht}var Hr=X,Nt=At.EventEmitter,qi=le;qi(X,Nt);X.Readable=xr();X.Writable=qr();X.Duplex=me();X.Transform=Gr();X.PassThrough=$i();X.finished=Mt();X.pipeline=Wi();X.Stream=X;function X(){Nt.call(this)}X.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 u(){r.readable&&r.resume&&r.resume()}t.on("drain",u),!t._isStdio&&(!e||e.end!==!1)&&(r.on("end",y),r.on("close",c));var f=!1;function y(){f||(f=!0,t.end())}function c(){f||(f=!0,typeof t.destroy=="function"&&t.destroy())}function p(P){if(m(),Nt.listenerCount(this,"error")===0)throw P}r.on("error",p),t.on("error",p);function m(){r.removeListener("data",o),t.removeListener("drain",u),r.removeListener("end",y),r.removeListener("close",c),r.removeListener("error",p),t.removeListener("error",p),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 Vi=zr(Hr),pr=yr(Kr);(function(t){var e=Hr,r=Ue,o=pr,u=pr,f=r.debuglog("net"),y={protocol:window.location.protocol=="https:"?"wss":"ws",hostname:window.location.hostname,port:window.location.port,path:"/api/vm/net"};function c(){return y}function p(){var d=c().hostname;return c().port&&(d+=":"+c().port),d}function m(){return c().protocol+"://"+p()}t.setProxy=function(d){d=d||{},d.protocol&&(y.protocol=d.protocol),d.hostname&&(y.hostname=d.hostname),d.port&&(y.port=d.port),d.path&&(y.path=d.path)},t.createServer=function(){throw new Error("Cannot create server in a browser")},t.connect=t.createConnection=function(){var d=A(arguments);f("createConnection",d);var g=new R(d[0]);return R.prototype.connect.apply(g,d)};function P(d){return(d=Number(d))>=0?d:!1}function T(d){return r.isString(d)&&P(d)===!1}function A(d){var g={};r.isObject(d[0])?g=d[0]:T(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=A;function R(d){if(!(this instanceof R))return new R(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(R,e.Duplex),t.Socket=R,t.Stream=R,R.prototype.listen=function(){throw new Error("Cannot listen in a browser")},R.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))},R.prototype._onTimeout=function(){f("_onTimeout"),this.emit("timeout")},R.prototype.setNoDelay=function(d){},R.prototype.setKeepAlive=function(d,g){},R.prototype.address=function(){return{address:this.remoteAddress,port:this.remotePort,family:this.remoteFamily}},Object.defineProperty(R.prototype,"readyState",{get:function(){return this._connecting?"opening":this.readable&&this.writable?"open":this.readable&&!this.writable?"readOnly":!this.readable&&this.writable?"writeOnly":"closed"}}),R.prototype.bufferSize=void 0,R.prototype._read=function(){},R.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):j(this)};function j(d){!d.readable&&!d.writable&&!d.destroyed&&!d._connecting&&!d._writableState.length&&d.destroy()}R.prototype.destroySoon=function(){this.writable&&this.end(),this._writableState.finished?this.destroy():this.once("finish",this.destroy)},R.prototype.destroy=function(d){f("destroy",d),!this.destroyed&&(this._connecting=!1,this.readable=this.writable=!1,o.unenroll(this),f("close"),this.destroyed=!0)},R.prototype.remoteAddress=null,R.prototype.remoteFamily=null,R.prototype.remotePort=null,R.prototype.localAddress=null,R.prototype.localPort=null,R.prototype.bytesRead=0,R.prototype.bytesWritten=0,R.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 Ge(d,g)),this._ws.send(d),k.nextTick(function(){v.bytesWritten+=d.length,a()})},R.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)},R.prototype.connect=function(d,g){var a=this;if(!r.isObject(d)){var v=A(arguments);return R.prototype.connect.apply(this,v)}if(g=g||function(){},this.write!==R.prototype.write&&(this.write=R.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=u.request({hostname:c().hostname,port:c().port,path:c().path+"/connect",method:"POST"},function(L){var N="";L.on("data",function(C){N+=C}),L.on("end",function(){var C=null;try{C=JSON.parse(N)}catch{C={code:L.statusCode,error:N}}if(C.error){a.emit("error","Cannot open TCP connection ["+L.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},R.prototype._connectWebSocket=function(d,g){var a=this;if(a._ws){k.nextTick(function(){g()});return}this._ws=new WebSocket(m()+c().path+"/socket?token="+d),this._handleWebsocket(),g&&a.on("connect",g)},R.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 Ge(a);v(E)}else if(window.Blob&&a instanceof Blob){var L=new FileReader;L.addEventListener("load",function(N){var C=L.result,W=new Uint8Array(C);v(new Ge(W))}),L.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)}})(Jr);export{Vi as S,Lr as a,Jr as b,Dr as c,Gn as d,At as e,Hr as f,Ae as g,Hn as h,Hi as o,pr as r,Rr as s,ke as t,Ue as u}; + `)+" "+O[1]:O[0]+w+" "+h.join(", ")+" "+O[1]}t.types=Ar;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 L(h){return h==null}t.isNullOrUndefined=L;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 B(h){return h===void 0}t.isUndefined=B;function I(h){return H(h)&&ne(h)==="[object RegExp]"}t.isRegExp=I,t.types.isRegExp=I;function H(h){return typeof h=="object"&&h!==null}t.isObject=H;function Y(h){return H(h)&&ne(h)==="[object Date]"}t.isDate=Y,t.types.isDate=Y;function K(h){return H(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=Fi;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=le,t._extend=function(h,w){if(!w||!H(w))return h;for(var O=Object.keys(w),s=O.length;s--;)h[O[s]]=w[O[s]];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 O=w[z];if(typeof O!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(O,z,{value:O,enumerable:!1,writable:!1,configurable:!0}),O}function O(){for(var s,l,b=new Promise(function(n,i){s=n,l=i}),M=[],D=0;D0?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;)R(v.data,a,E),E+=v.data.length,v=v.next;return a}},{key:"consume",value:function(g,a){var v;return gL.length?L.length:g;if(N===L.length?E+=L:E+=L.slice(0,g),g-=N,g===0){N===L.length?(++v,a.next?this.head=a.next:this.head=this.tail=null):(this.head=a,a.data=L.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 L=v.data,N=g>L.length?L.length:g;if(L.copy(a,a.length-g,0,N),g-=N,g===0){N===L.length?(++E,v.next?this.head=v.next:this.head=this.tail=null):(this.head=v,v.data=L.slice(N));break}++E}return this.length-=E,a}},{key:A,value:function(g,a){return T(this,e(e({},a),{},{depth:0,customInspect:!1}))}}]),j}(),tt}var rt,Xt;function $r(){if(Xt)return rt;Xt=1;function t(y,c){var p=this,m=this._readableState&&this._readableState.destroyed,P=this._writableState&&this._writableState.destroyed;return m||P?(c?c(y):y&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,k.nextTick(u,this,y)):k.nextTick(u,this,y)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(y||null,function(T){!c&&T?p._writableState?p._writableState.errorEmitted?k.nextTick(r,p):(p._writableState.errorEmitted=!0,k.nextTick(e,p,T)):k.nextTick(e,p,T):c?(k.nextTick(r,p),c(T)):k.nextTick(r,p)}),this)}function e(y,c){u(y,c),r(y)}function r(y){y._writableState&&!y._writableState.emitClose||y._readableState&&!y._readableState.emitClose||y.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 u(y,c){y.emit("error",c)}function f(y,c){var p=y._readableState,m=y._writableState;p&&p.autoDestroy||m&&m.autoDestroy?y.destroy(c):y.emit("error",c)}return rt={destroy:t,undestroy:o,errorOrDestroy:f},rt}var nt={},Zt;function _e(){if(Zt)return nt;Zt=1;function t(c,p){c.prototype=Object.create(p.prototype),c.prototype.constructor=c,c.__proto__=p}var e={};function r(c,p,m){m||(m=Error);function P(A,R,j){return typeof p=="string"?p:p(A,R,j)}var T=function(A){t(R,A);function R(j,d,g){return A.call(this,P(j,d,g))||this}return R}(m);T.prototype.name=m.name,T.prototype.code=c,e[c]=T}function o(c,p){if(Array.isArray(c)){var m=c.length;return c=c.map(function(P){return String(P)}),m>2?"one of ".concat(p," ").concat(c.slice(0,m-1).join(", "),", or ")+c[m-1]:m===2?"one of ".concat(p," ").concat(c[0]," or ").concat(c[1]):"of ".concat(p," ").concat(c[0])}else return"of ".concat(p," ").concat(String(c))}function u(c,p,m){return c.substr(0,p.length)===p}function f(c,p,m){return(m===void 0||m>c.length)&&(m=c.length),c.substring(m-p.length,m)===p}function y(c,p,m){return typeof m!="number"&&(m=0),m+p.length>c.length?!1:c.indexOf(p,m)!==-1}return r("ERR_INVALID_OPT_VALUE",function(c,p){return'The value "'+p+'" is invalid for option "'+c+'"'},TypeError),r("ERR_INVALID_ARG_TYPE",function(c,p,m){var P;typeof p=="string"&&u(p,"not ")?(P="must not be",p=p.replace(/^not /,"")):P="must be";var T;if(f(c," argument"))T="The ".concat(c," ").concat(P," ").concat(o(p,"type"));else{var A=y(c,".")?"property":"argument";T='The "'.concat(c,'" ').concat(A," ").concat(P," ").concat(o(p,"type"))}return T+=". Received type ".concat(typeof m),T},TypeError),r("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),r("ERR_METHOD_NOT_IMPLEMENTED",function(c){return"The "+c+" method is not implemented"}),r("ERR_STREAM_PREMATURE_CLOSE","Premature close"),r("ERR_STREAM_DESTROYED",function(c){return"Cannot call "+c+" 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(c){return"Unknown encoding: "+c},TypeError),r("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),nt.codes=e,nt}var it,Qt;function Wr(){if(Qt)return it;Qt=1;var t=_e().codes.ERR_INVALID_OPT_VALUE;function e(o,u,f){return o.highWaterMark!=null?o.highWaterMark:u?o[f]:null}function r(o,u,f,y){var c=e(u,y,f);if(c!=null){if(!(isFinite(c)&&Math.floor(c)===c)||c<0){var p=y?f:"highWaterMark";throw new t(p,c)}return Math.floor(c)}return o.objectMode?16:16*1024}return it={getHighWaterMark:r},it}var ot,er;function Ii(){if(er)return ot;er=1,ot=t;function t(r,o){if(e("noDeprecation"))return r;var u=!1;function f(){if(!u){if(e("throwDeprecation"))throw new Error(o);e("traceDeprecation")?console.trace(o):console.warn(o),u=!0}return r.apply(this,arguments)}return f}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 ot}var at,tr;function qr(){if(tr)return at;tr=1,at=B;function t(s){var l=this;this.next=null,this.entry=null,this.finish=function(){O(l,s)}}var e;B.WritableState=C;var r={deprecate:Ii()},o=Er(),u=Be.Buffer,f=(typeof fe<"u"?fe:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function y(s){return u.from(s)}function c(s){return u.isBuffer(s)||s instanceof f}var p=$r(),m=Wr(),P=m.getHighWaterMark,T=_e().codes,A=T.ERR_INVALID_ARG_TYPE,R=T.ERR_METHOD_NOT_IMPLEMENTED,j=T.ERR_MULTIPLE_CALLBACK,d=T.ERR_STREAM_CANNOT_PIPE,g=T.ERR_STREAM_DESTROYED,a=T.ERR_STREAM_NULL_VALUES,v=T.ERR_STREAM_WRITE_AFTER_END,E=T.ERR_UNKNOWN_ENCODING,L=p.errorOrDestroy;le(B,o);function N(){}function C(s,l,b){e=e||me(),s=s||{},typeof b!="boolean"&&(b=l instanceof e),this.objectMode=!!s.objectMode,b&&(this.objectMode=this.objectMode||!!s.writableObjectMode),this.highWaterMark=P(this,s,"writableHighWaterMark",b),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var M=s.decodeStrings===!1;this.decodeStrings=!M,this.defaultEncoding=s.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(D){X(l,D)},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)}C.prototype.getBuffer=function(){for(var l=this.bufferedRequest,b=[];l;)b.push(l),l=l.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(B,Symbol.hasInstance,{value:function(l){return W.call(this,l)?!0:this!==B?!1:l&&l._writableState instanceof C}})):W=function(l){return l instanceof this};function B(s){e=e||me();var l=this instanceof e;if(!l&&!W.call(B,this))return new B(s);this._writableState=new C(s,this,l),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)),o.call(this)}B.prototype.pipe=function(){L(this,new d)};function I(s,l){var b=new v;L(s,b),k.nextTick(l,b)}function H(s,l,b,M){var D;return b===null?D=new a:typeof b!="string"&&!l.objectMode&&(D=new A("chunk",["string","Buffer"],b)),D?(L(s,D),k.nextTick(M,D),!1):!0}B.prototype.write=function(s,l,b){var M=this._writableState,D=!1,n=!M.objectMode&&c(s);return n&&!u.isBuffer(s)&&(s=y(s)),typeof l=="function"&&(b=l,l=null),n?l="buffer":l||(l=M.defaultEncoding),typeof b!="function"&&(b=N),M.ending?I(this,b):(n||H(this,M,s,b))&&(M.pendingcb++,D=K(this,M,n,s,l,b)),D},B.prototype.cork=function(){this._writableState.corked++},B.prototype.uncork=function(){var s=this._writableState;s.corked&&(s.corked--,!s.writing&&!s.corked&&!s.bufferProcessing&&s.bufferedRequest&&ee(this,s))},B.prototype.setDefaultEncoding=function(l){if(typeof l=="string"&&(l=l.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((l+"").toLowerCase())>-1))throw new E(l);return this._writableState.defaultEncoding=l,this},Object.defineProperty(B.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function Y(s,l,b){return!s.objectMode&&s.decodeStrings!==!1&&typeof l=="string"&&(l=u.from(l,b)),l}Object.defineProperty(B.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function K(s,l,b,M,D,n){if(!b){var i=Y(l,M,D);M!==i&&(b=!0,D="buffer",M=i)}var S=l.objectMode?1:M.length;l.length+=S;var F=l.length */var nr;function Bi(){return nr||(nr=1,function(t,e){var r=Be,o=r.Buffer;function u(y,c){for(var p in y)c[p]=y[p]}o.from&&o.alloc&&o.allocUnsafe&&o.allocUnsafeSlow?t.exports=r:(u(r,e),e.Buffer=f);function f(y,c,p){return o(y,c,p)}f.prototype=Object.create(o.prototype),u(o,f),f.from=function(y,c,p){if(typeof y=="number")throw new TypeError("Argument must not be a number");return o(y,c,p)},f.alloc=function(y,c,p){if(typeof y!="number")throw new TypeError("Argument must be a number");var m=o(y);return c!==void 0?typeof p=="string"?m.fill(c,p):m.fill(c):m.fill(0),m},f.allocUnsafe=function(y){if(typeof y!="number")throw new TypeError("Argument must be a number");return o(y)},f.allocUnsafeSlow=function(y){if(typeof y!="number")throw new TypeError("Argument must be a number");return r.SlowBuffer(y)}}(Oe,Oe.exports)),Oe.exports}var ir;function or(){if(ir)return ut;ir=1;var t=Bi().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}ut.StringDecoder=u;function u(a){this.encoding=o(a);var v;switch(this.encoding){case"utf16le":this.text=T,this.end=A,v=4;break;case"utf8":this.fillLast=p,v=4;break;case"base64":this.text=R,this.end=j,v=3;break;default:this.write=d,this.end=g;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=t.allocUnsafe(v)}u.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 y(a,v,E){var L=v.length-1;if(L=0?(N>0&&(a.lastNeed=N-1),N):--L=0?(N>0&&(a.lastNeed=N-2),N):--L=0?(N>0&&(N===2?N=0:a.lastNeed=N-3),N):0))}function c(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 p(a){var v=this.lastTotal-this.lastNeed,E=c(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=y(this,a,v);if(!this.lastNeed)return a.toString("utf8",v);this.lastTotal=E;var L=a.length-(E-this.lastNeed);return a.copy(this.lastChar,0,L),a.toString("utf8",v,L)}function P(a){var v=a&&a.length?this.write(a):"";return this.lastNeed?v+"�":v}function T(a,v){if((a.length-v)%2===0){var E=a.toString("utf16le",v);if(E){var L=E.charCodeAt(E.length-1);if(L>=55296&&L<=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 A(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 R(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 j(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 ut}var st,ar;function Mt(){if(ar)return st;ar=1;var t=_e().codes.ERR_STREAM_PREMATURE_CLOSE;function e(f){var y=!1;return function(){if(!y){y=!0;for(var c=arguments.length,p=new Array(c),m=0;m0)if(typeof i!="string"&&!U.objectMode&&Object.getPrototypeOf(i)!==o.prototype&&(i=f(i)),F)U.endEmitted?N(n,new a):Y(n,U,i,!0);else if(U.ended)N(n,new d);else{if(U.destroyed)return!1;U.reading=!1,U.decoder&&!S?(i=U.decoder.write(i),U.objectMode||i.length!==0?Y(n,U,i,!1):ee(n,U)):Y(n,U,i,!1)}else F||(U.reading=!1,ee(n,U))}return!U.ended&&(U.length=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))}I.prototype.read=function(n){p("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 p("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 F=i.needReadable;p("need readable",F),(i.length===0||i.length-n0?q=l(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(p("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;p("emitReadable",i.needReadable,i.emittedReadable),i.needReadable=!1,i.emittedReadable||(p("emitReadable",i.flowing),i.emittedReadable=!0,k.nextTick(ie,n))}function ie(n){var i=n._readableState;p("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,k.nextTick(z,n,i))}function z(n,i){for(;!i.reading&&!i.ended&&(i.length1&&D(F.pipes,n)!==-1)&&!Re&&(p("false write response, pause",F.awaitDrain),F.awaitDrain++),S.pause())}function We(ce){p("onerror",ce),Se(),n.removeListener("error",We),e(n,"error")===0&&N(n,ce)}W(n,"error",We);function qe(){n.removeListener("finish",xe),Se()}n.once("close",qe);function xe(){p("onfinish"),n.removeListener("close",qe),Se()}n.once("finish",xe);function Se(){p("unpipe"),S.unpipe(n)}return n.emit("pipe",S),F.flowing||(p("pipe resume"),S.resume()),n};function oe(n){return function(){var S=n._readableState;p("pipeOnDrain",S.awaitDrain),S.awaitDrain&&S.awaitDrain--,S.awaitDrain===0&&e(n,"data")&&(S.flowing=!0,s(n))}}I.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 U=0;U0,F.flowing!==!1&&this.resume()):n==="readable"&&!F.endEmitted&&!F.readableListening&&(F.readableListening=F.needReadable=!0,F.flowing=!1,F.emittedReadable=!1,p("on readable",F.length,F.reading),F.length?Q(this):F.reading||k.nextTick(h,this)),S},I.prototype.addListener=I.prototype.on,I.prototype.removeListener=function(n,i){var S=r.prototype.removeListener.call(this,n,i);return n==="readable"&&k.nextTick(te,this),S},I.prototype.removeAllListeners=function(n){var i=r.prototype.removeAllListeners.apply(this,arguments);return(n==="readable"||n===void 0)&&k.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){p("readable nexttick read 0"),n.read(0)}I.prototype.resume=function(){var n=this._readableState;return n.flowing||(p("resume"),n.flowing=!n.readableListening,w(this,n)),n.paused=!1,this};function w(n,i){i.resumeScheduled||(i.resumeScheduled=!0,k.nextTick(O,n,i))}function O(n,i){p("resume",i.reading),i.reading||n.read(0),i.resumeScheduled=!1,n.emit("resume"),s(n),i.flowing&&!i.reading&&n.read(0)}I.prototype.pause=function(){return p("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(p("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function s(n){var i=n._readableState;for(p("flow",i.flowing);i.flowing&&n.read()!==null;);}I.prototype.wrap=function(n){var i=this,S=this._readableState,F=!1;n.on("end",function(){if(p("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(p("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 U=0;U=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;p("endReadable",i.endEmitted),i.endEmitted||(i.ended=!0,k.nextTick(M,i,n))}function M(n,i){if(p("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"&&(I.from=function(n,i){return L===void 0&&(L=ki()),L(I,n,i)});function D(n,i){for(var S=0,F=n.length;S0;return c(v,L,N,function(C){g||(g=C),C&&a.forEach(p),!L&&(a.forEach(p),d(g))})});return R.reduce(m)}return ht=T,ht}var Hr=Z,Nt=At.EventEmitter,qi=le;qi(Z,Nt);Z.Readable=xr();Z.Writable=qr();Z.Duplex=me();Z.Transform=Gr();Z.PassThrough=$i();Z.finished=Mt();Z.pipeline=Wi();Z.Stream=Z;function Z(){Nt.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 u(){r.readable&&r.resume&&r.resume()}t.on("drain",u),!t._isStdio&&(!e||e.end!==!1)&&(r.on("end",y),r.on("close",c));var f=!1;function y(){f||(f=!0,t.end())}function c(){f||(f=!0,typeof t.destroy=="function"&&t.destroy())}function p(P){if(m(),Nt.listenerCount(this,"error")===0)throw P}r.on("error",p),t.on("error",p);function m(){r.removeListener("data",o),t.removeListener("drain",u),r.removeListener("end",y),r.removeListener("close",c),r.removeListener("error",p),t.removeListener("error",p),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 Vi=zr(Hr),pr=yr(Kr);(function(t){var e=Hr,r=Ue,o=pr,u=pr,f=r.debuglog("net"),y={protocol:window.location.protocol=="https:"?"wss":"ws",hostname:window.location.hostname,port:window.location.port,path:"/api/vm/net"};function c(){return y}function p(){var d=c().hostname;return c().port&&(d+=":"+c().port),d}function m(){return c().protocol+"://"+p()}t.setProxy=function(d){d=d||{},d.protocol&&(y.protocol=d.protocol),d.hostname&&(y.hostname=d.hostname),d.port&&(y.port=d.port),d.path&&(y.path=d.path)},t.createServer=function(){throw new Error("Cannot create server in a browser")},t.connect=t.createConnection=function(){var d=A(arguments);f("createConnection",d);var g=new R(d[0]);return R.prototype.connect.apply(g,d)};function P(d){return(d=Number(d))>=0?d:!1}function T(d){return r.isString(d)&&P(d)===!1}function A(d){var g={};r.isObject(d[0])?g=d[0]:T(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=A;function R(d){if(!(this instanceof R))return new R(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(R,e.Duplex),t.Socket=R,t.Stream=R,R.prototype.listen=function(){throw new Error("Cannot listen in a browser")},R.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))},R.prototype._onTimeout=function(){f("_onTimeout"),this.emit("timeout")},R.prototype.setNoDelay=function(d){},R.prototype.setKeepAlive=function(d,g){},R.prototype.address=function(){return{address:this.remoteAddress,port:this.remotePort,family:this.remoteFamily}},Object.defineProperty(R.prototype,"readyState",{get:function(){return this._connecting?"opening":this.readable&&this.writable?"open":this.readable&&!this.writable?"readOnly":!this.readable&&this.writable?"writeOnly":"closed"}}),R.prototype.bufferSize=void 0,R.prototype._read=function(){},R.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):j(this)};function j(d){!d.readable&&!d.writable&&!d.destroyed&&!d._connecting&&!d._writableState.length&&d.destroy()}R.prototype.destroySoon=function(){this.writable&&this.end(),this._writableState.finished?this.destroy():this.once("finish",this.destroy)},R.prototype.destroy=function(d){f("destroy",d),!this.destroyed&&(this._connecting=!1,this.readable=this.writable=!1,o.unenroll(this),f("close"),this.destroyed=!0)},R.prototype.remoteAddress=null,R.prototype.remoteFamily=null,R.prototype.remotePort=null,R.prototype.localAddress=null,R.prototype.localPort=null,R.prototype.bytesRead=0,R.prototype.bytesWritten=0,R.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 Ge(d,g)),this._ws.send(d),k.nextTick(function(){v.bytesWritten+=d.length,a()})},R.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)},R.prototype.connect=function(d,g){var a=this;if(!r.isObject(d)){var v=A(arguments);return R.prototype.connect.apply(this,v)}if(g=g||function(){},this.write!==R.prototype.write&&(this.write=R.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=u.request({hostname:c().hostname,port:c().port,path:c().path+"/connect",method:"POST"},function(L){var N="";L.on("data",function(C){N+=C}),L.on("end",function(){var C=null;try{C=JSON.parse(N)}catch{C={code:L.statusCode,error:N}}if(C.error){a.emit("error","Cannot open TCP connection ["+L.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},R.prototype._connectWebSocket=function(d,g){var a=this;if(a._ws){k.nextTick(function(){g()});return}this._ws=new WebSocket(m()+c().path+"/socket?token="+d),this._handleWebsocket(),g&&a.on("connect",g)},R.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 Ge(a);v(E)}else if(window.Blob&&a instanceof Blob){var L=new FileReader;L.addEventListener("load",function(N){var C=L.result,W=new Uint8Array(C);v(new Ge(W))}),L.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)}})(Jr);export{Vi as S,Lr as a,Jr as b,Dr as c,Gn as d,Hr as e,Ae as g,Hn as h,Hi as o,pr as r,Rr as s,ke as t,Ue as u}; diff --git a/apps/cli/frontend/assets/index-DacOZnWA.js b/apps/cli/frontend/assets/index--W_dwqvb.js similarity index 56% rename from apps/cli/frontend/assets/index-DacOZnWA.js rename to apps/cli/frontend/assets/index--W_dwqvb.js index 3ff6e738..70649f91 100644 --- a/apps/cli/frontend/assets/index-DacOZnWA.js +++ b/apps/cli/frontend/assets/index--W_dwqvb.js @@ -1,5 +1,5 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/page-D3NH2UKH.js","assets/SimpleGridForm-BsuIDEc-.js","assets/index-CmjC3aBX.js","assets/browser-BwFqrqKh.js","assets/__vite-browser-external-v7f2oYTb.js","assets/index-BXo9w5xs.js","assets/index-cyyfYOVw.js","assets/assert-qSoQSbtu.js","assets/index-QfjMuEDO.js","assets/index-BJj6QqBT.js","assets/url-CCw57Dwn.js","assets/index-BrKpjeTR.js","assets/index-CXxSiKWb.js","assets/page-CxuTcZyC.js"])))=>i.map(i=>d[i]); -function yee(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 mUe(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 HF={exports:{}},tT={},GF={exports:{}},ws={};/** +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/page-CxSpFTfJ.js","assets/SimpleGridForm-ymZtb7Vd.js","assets/index-BgrbYc4b.js","assets/browser-BqBbGhip.js","assets/__vite-browser-external-v7f2oYTb.js","assets/index-BcTAmAa_.js","assets/index-BAnlvaiQ.js","assets/index-DhQ1rZ8G.js","assets/page-JhSs5QJx.js"])))=>i.map(i=>d[i]); +function _ee(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 KUe(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={},$F={exports:{}},ws={};/** * @license React * react.production.min.js * @@ -7,7 +7,7 @@ function yee(d,e){for(var t=0;t>>1,X=Z[ee];if(0>>1;eei(oe,Y))mei(fe,oe)?(Z[ee]=fe,Z[me]=Y,ee=me):(Z[ee]=oe,Z[re]=Y,ee=re);else if(mei(fe,Y))Z[ee]=fe,Z[me]=Y,ee=me;else break e}}return K}function i(Z,K){var Y=Z.sortIndex-K.sortIndex;return Y!==0?Y:Z.id-K.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(Z){for(var K=t(c);K!==null;){if(K.callback===null)s(c);else if(K.startTime<=Z)s(c),K.sortIndex=K.expirationTime,e(o,K);else break;K=t(c)}}function S(Z){if(m=!1,b(Z),!p)if(t(o)!==null)p=!0,$(v);else{var K=t(c);K!==null&&J(S,K.startTime-Z)}}function v(Z,K){p=!1,m&&(m=!1,y(_),_=-1),f=!0;var Y=l;try{for(b(K),h=t(o);h!==null&&(!(h.expirationTime>K)||Z&&!R());){var ee=h.callback;if(typeof ee=="function"){h.callback=null,l=h.priorityLevel;var X=ee(h.expirationTime<=K);K=d.unstable_now(),typeof X=="function"?h.callback=X:h===t(o)&&s(o),b(K)}else s(o);h=t(o)}if(h!==null)var ie=!0;else{var re=t(c);re!==null&&J(S,re.startTime-K),ie=!1}return ie}finally{h=null,l=Y,f=!1}}var C=!1,M=null,_=-1,N=5,A=-1;function R(){return!(d.unstable_now()-AZ||125ee?(Z.sortIndex=Y,e(c,Z),t(o)===null&&Z===t(c)&&(m?(y(_),_=-1):m=!0,J(S,Y-ee))):(Z.sortIndex=X,e(o,Z),p||f||(p=!0,$(v))),Z},d.unstable_shouldYield=R,d.unstable_wrapCallback=function(Z){var K=l;return function(){var Y=l;l=K;try{return Z.apply(this,arguments)}finally{l=Y}}}})(e4);JF.exports=e4;var Vee=JF.exports;/** + */(function(d){function e(Z,K){var Y=Z.length;Z.push(K);e:for(;0>>1,X=Z[ee];if(0>>1;eei(oe,Y))mei(fe,oe)?(Z[ee]=fe,Z[me]=Y,ee=me):(Z[ee]=oe,Z[re]=Y,ee=re);else if(mei(fe,Y))Z[ee]=fe,Z[me]=Y,ee=me;else break e}}return K}function i(Z,K){var Y=Z.sortIndex-K.sortIndex;return Y!==0?Y:Z.id-K.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(Z){for(var K=t(c);K!==null;){if(K.callback===null)s(c);else if(K.startTime<=Z)s(c),K.sortIndex=K.expirationTime,e(o,K);else break;K=t(c)}}function S(Z){if(m=!1,b(Z),!p)if(t(o)!==null)p=!0,z(v);else{var K=t(c);K!==null&&J(S,K.startTime-Z)}}function v(Z,K){p=!1,m&&(m=!1,y(_),_=-1),f=!0;var Y=l;try{for(b(K),h=t(o);h!==null&&(!(h.expirationTime>K)||Z&&!R());){var ee=h.callback;if(typeof ee=="function"){h.callback=null,l=h.priorityLevel;var X=ee(h.expirationTime<=K);K=d.unstable_now(),typeof X=="function"?h.callback=X:h===t(o)&&s(o),b(K)}else s(o);h=t(o)}if(h!==null)var ie=!0;else{var re=t(c);re!==null&&J(S,re.startTime-K),ie=!1}return ie}finally{h=null,l=Y,f=!1}}var C=!1,M=null,_=-1,N=5,A=-1;function R(){return!(d.unstable_now()-AZ||125ee?(Z.sortIndex=Y,e(c,Z),t(o)===null&&Z===t(c)&&(m?(y(_),_=-1):m=!0,J(S,Y-ee))):(Z.sortIndex=X,e(o,Z),p||f||(p=!0,z(v))),Z},d.unstable_shouldYield=R,d.unstable_wrapCallback=function(Z){var K=l;return function(){var Y=l;l=K;try{return Z.apply(this,arguments)}finally{l=Y}}}})(r4);n4.exports=r4;var Zee=n4.exports;/** * @license React * react-dom.production.min.js * @@ -31,14 +31,14 @@ function yee(d,e){for(var t=0;t"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),PC=Object.prototype.hasOwnProperty,Hee=/^[: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]*$/,hR={},lR={};function Gee(d){return PC.call(lR,d)?!0:PC.call(hR,d)?!1:Hee.test(d)?lR[d]=!0:(hR[d]=!0,!1)}function Uee(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 Wee(d,e,t,s){if(e===null||typeof e>"u"||Uee(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 vr(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 Un={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(d){Un[d]=new vr(d,0,!1,d,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(d){var e=d[0];Un[e]=new vr(e,1,!1,d[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(d){Un[d]=new vr(d,2,!1,d.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(d){Un[d]=new vr(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){Un[d]=new vr(d,3,!1,d.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(d){Un[d]=new vr(d,3,!0,d,null,!1,!1)});["capture","download"].forEach(function(d){Un[d]=new vr(d,4,!1,d,null,!1,!1)});["cols","rows","size","span"].forEach(function(d){Un[d]=new vr(d,6,!1,d,null,!1,!1)});["rowSpan","start"].forEach(function(d){Un[d]=new vr(d,5,!1,d.toLowerCase(),null,!1,!1)});var Q2=/[\-:]([a-z])/g;function Y2(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(Q2,Y2);Un[e]=new vr(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(Q2,Y2);Un[e]=new vr(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(Q2,Y2);Un[e]=new vr(e,1,!1,d,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(d){Un[d]=new vr(d,1,!1,d.toLowerCase(),null,!1,!1)});Un.xlinkHref=new vr("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(d){Un[d]=new vr(d,1,!1,d.toLowerCase(),null,!0,!0)});function Z2(d,e,t,s){var i=Un.hasOwnProperty(e)?Un[e]:null;(i!==null?i.type!==0:s||!(2"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),CC=Object.prototype.hasOwnProperty,ete=/^[: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]*$/,pR={},mR={};function tte(d){return CC.call(mR,d)?!0:CC.call(pR,d)?!1:ete.test(d)?mR[d]=!0:(pR[d]=!0,!1)}function ste(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 ite(d,e,t,s){if(e===null||typeof e>"u"||ste(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 Un={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(d){Un[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];Un[e]=new Sr(e,1,!1,d[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(d){Un[d]=new Sr(d,2,!1,d.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(d){Un[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){Un[d]=new Sr(d,3,!1,d.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(d){Un[d]=new Sr(d,3,!0,d,null,!1,!1)});["capture","download"].forEach(function(d){Un[d]=new Sr(d,4,!1,d,null,!1,!1)});["cols","rows","size","span"].forEach(function(d){Un[d]=new Sr(d,6,!1,d,null,!1,!1)});["rowSpan","start"].forEach(function(d){Un[d]=new Sr(d,5,!1,d.toLowerCase(),null,!1,!1)});var t_=/[\-:]([a-z])/g;function s_(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(t_,s_);Un[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(t_,s_);Un[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(t_,s_);Un[e]=new Sr(e,1,!1,d,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(d){Un[d]=new Sr(d,1,!1,d.toLowerCase(),null,!1,!1)});Un.xlinkHref=new Sr("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(d){Un[d]=new Sr(d,1,!1,d.toLowerCase(),null,!0,!0)});function i_(d,e,t,s){var i=Un.hasOwnProperty(e)?Un[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:"")?vy(d):""}function jee(d){switch(d.tag){case 5:return vy(d.type);case 16:return vy("Lazy");case 13:return vy("Suspense");case 19:return vy("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 _C(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 kp:return"Fragment";case bp:return"Portal";case IC:return"Profiler";case J2:return"StrictMode";case CC:return"Suspense";case MC:return"SuspenseList"}if(typeof d=="object")switch(d.$$typeof){case i4:return(d.displayName||"Context")+".Consumer";case s4:return(d._context.displayName||"Context")+".Provider";case e_:var e=d.render;return d=d.displayName,d||(d=e.displayName||e.name||"",d=d!==""?"ForwardRef("+d+")":"ForwardRef"),d;case t_:return e=d.displayName||null,e!==null?e:_C(d.type)||"Memo";case Ru:e=d._payload,d=d._init;try{return _C(d(e))}catch{}}return null}function zee(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 _C(e);case 8:return e===J2?"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 wh(d){switch(typeof d){case"boolean":case"number":case"string":case"undefined":return d;case"object":return d;default:return""}}function r4(d){var e=d.type;return(d=d.nodeName)&&d.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function $ee(d){var e=r4(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 Gk(d){d._valueTracker||(d._valueTracker=$ee(d))}function a4(d){if(!d)return!1;var e=d._valueTracker;if(!e)return!0;var t=e.getValue(),s="";return d&&(s=r4(d)?d.checked?"true":"false":d.value),d=s,d!==t?(e.setValue(d),!0):!1}function Mv(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 AC(d,e){var t=e.checked;return Ai({},e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:t??d._wrapperState.initialChecked})}function pR(d,e){var t=e.defaultValue==null?"":e.defaultValue,s=e.checked!=null?e.checked:e.defaultChecked;t=wh(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 o4(d,e){e=e.checked,e!=null&&Z2(d,"checked",e,!1)}function LC(d,e){o4(d,e);var t=wh(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")?BC(d,e.type,t):e.hasOwnProperty("defaultValue")&&BC(d,e.type,wh(e.defaultValue)),e.checked==null&&e.defaultChecked!=null&&(d.defaultChecked=!!e.defaultChecked)}function mR(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 BC(d,e,t){(e!=="number"||Mv(d.ownerDocument)!==d)&&(t==null?d.defaultValue=""+d._wrapperState.initialValue:d.defaultValue!==""+t&&(d.defaultValue=""+t))}var Ty=Array.isArray;function Wp(d,e,t,s){if(d=d.options,e){e={};for(var i=0;i"+e.valueOf().toString()+"",e=Uk.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 Vy={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},Kee=["Webkit","ms","Moz","O"];Object.keys(Vy).forEach(function(d){Kee.forEach(function(e){e=e+d.charAt(0).toUpperCase()+d.substring(1),Vy[e]=Vy[d]})});function h4(d,e,t){return e==null||typeof e=="boolean"||e===""?"":t||typeof e!="number"||e===0||Vy.hasOwnProperty(d)&&Vy[d]?(""+e).trim():e+"px"}function l4(d,e){d=d.style;for(var t in e)if(e.hasOwnProperty(t)){var s=t.indexOf("--")===0,i=h4(t,e[t],s);t==="float"&&(t="cssFloat"),s?d.setProperty(t,i):d[t]=i}}var Xee=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 RC(d,e){if(e){if(Xee[d]&&(e.children!=null||e.dangerouslySetInnerHTML!=null))throw Error(et(137,d));if(e.dangerouslySetInnerHTML!=null){if(e.children!=null)throw Error(et(60));if(typeof e.dangerouslySetInnerHTML!="object"||!("__html"in e.dangerouslySetInnerHTML))throw Error(et(61))}if(e.style!=null&&typeof e.style!="object")throw Error(et(62))}}function DC(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 qC=null;function s_(d){return d=d.target||d.srcElement||window,d.correspondingUseElement&&(d=d.correspondingUseElement),d.nodeType===3?d.parentNode:d}var VC=null,jp=null,zp=null;function wR(d){if(d=Fw(d)){if(typeof VC!="function")throw Error(et(280));var e=d.stateNode;e&&(e=aT(e),VC(d.stateNode,d.type,e))}}function f4(d){jp?zp?zp.push(d):zp=[d]:jp=d}function p4(){if(jp){var d=jp,e=zp;if(zp=jp=null,wR(d),e)for(d=0;d>>=0,d===0?32:31-(ate(d)/ote|0)|0}var Wk=64,jk=4194304;function Oy(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 Bv(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=Oy(a):(n&=r,n!==0&&(s=Oy(n)))}else r=t&~i,r!==0?s=Oy(r):n!==0&&(s=Oy(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 qw(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 hte(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=Hy),IR=" ",CR=!1;function N4(d,e){switch(d){case"keyup":return Vte.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function E4(d){return d=d.detail,typeof d=="object"&&"data"in d?d.data:null}var Sp=!1;function Hte(d,e){switch(d){case"compositionend":return E4(e);case"keypress":return e.which!==32?null:(CR=!0,IR);case"textInput":return d=e.data,d===IR&&CR?null:d;default:return null}}function Gte(d,e){if(Sp)return d==="compositionend"||!u_&&N4(d,e)?(d=L4(),GS=o_=Zu=null,Sp=!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=LR(t)}}function V4(d,e){return d&&e?d===e?!0:d&&d.nodeType===3?!1:e&&e.nodeType===3?V4(d,e.parentNode):"contains"in d?d.contains(e):d.compareDocumentPosition?!!(d.compareDocumentPosition(e)&16):!1:!1}function F4(){for(var d=window,e=Mv();e instanceof d.HTMLIFrameElement;){try{var t=typeof e.contentWindow.location.href=="string"}catch{t=!1}if(t)d=e.contentWindow;else break;e=Mv(d.document)}return e}function h_(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 Yte(d){var e=F4(),t=d.focusedElem,s=d.selectionRange;if(e!==t&&t&&t.ownerDocument&&V4(t.ownerDocument.documentElement,t)){if(s!==null&&h_(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=BR(t,n);var r=BR(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,vp=null,jC=null,Uy=null,zC=!1;function NR(d,e,t){var s=t.window===t?t.document:t.nodeType===9?t:t.ownerDocument;zC||vp==null||vp!==Mv(s)||(s=vp,"selectionStart"in s&&h_(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}),Uy&&x0(Uy,s)||(Uy=s,s=Rv(jC,"onSelect"),0xp||(d.current=ZC[xp],ZC[xp]=null,xp--)}function ci(d,e){xp++,ZC[xp]=d.current,d.current=e}var bh={},nr=Eh(bh),Vr=Eh(!1),Gl=bh;function fm(d,e){var t=d.type.contextTypes;if(!t)return bh;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 Fr(d){return d=d.childContextTypes,d!=null}function qv(){pi(Vr),pi(nr)}function HR(d,e,t){if(nr.current!==bh)throw Error(et(168));ci(nr,e),ci(Vr,t)}function X4(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(et(108,zee(d)||"Unknown",i));return Ai({},t,s)}function Vv(d){return d=(d=d.stateNode)&&d.__reactInternalMemoizedMergedChildContext||bh,Gl=nr.current,ci(nr,d),ci(Vr,Vr.current),!0}function GR(d,e,t){var s=d.stateNode;if(!s)throw Error(et(169));t?(d=X4(d,e,Gl),s.__reactInternalMemoizedMergedChildContext=d,pi(Vr),pi(nr),ci(nr,d)):pi(Vr),ci(Vr,t)}var yc=null,oT=!1,VP=!1;function Q4(d){yc===null?yc=[d]:yc.push(d)}function cse(d){oT=!0,Q4(d)}function Rh(){if(!VP&&yc!==null){VP=!0;var d=0,e=zs;try{var t=yc;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===kp&&b.key===null&&(b=b.props.children),typeof b=="object"&&b!==null){switch(b.$$typeof){case Hk:e:{for(var v=b.key,C=w;C!==null;){if(C.key===v){if(v=b.type,v===kp){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===Ru&&jR(v)===C.type){t(y,C.sibling),w=i(C,b.props),w.ref=ey(y,C,b),w.return=y,y=w;break e}t(y,C);break}else e(y,C);C=C.sibling}b.type===kp?(w=Rl(b.props.children,y.mode,S,b.key),w.return=y,y=w):(S=QS(b.type,b.key,b.props,null,y.mode,S),S.ref=ey(y,w,b),S.return=y,y=S)}return r(y);case bp: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 Ru:return C=b._init,g(y,w,C(b._payload),S)}if(Ty(b))return p(y,w,b,S);if(Xg(b))return m(y,w,b,S);Zk(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 mm=e6(!0),t6=e6(!1),Gv=Eh(null),Uv=null,Cp=null,m_=null;function g_(){m_=Cp=Uv=null}function y_(d){var e=Gv.current;pi(Gv),d._currentValue=e}function tM(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 Kp(d,e){Uv=d,m_=Cp=null,d=d.dependencies,d!==null&&d.firstContext!==null&&(d.lanes&e&&(Dr=!0),d.firstContext=null)}function ao(d){var e=d._currentValue;if(m_!==d)if(d={context:d,memoizedValue:e,next:null},Cp===null){if(Uv===null)throw Error(et(308));Cp=d,Uv.dependencies={lanes:0,firstContext:d}}else Cp=Cp.next=d;return e}var Tl=null;function w_(d){Tl===null?Tl=[d]:Tl.push(d)}function s6(d,e,t,s){var i=e.interleaved;return i===null?(t.next=t,w_(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 Du=!1;function b_(d){d.updateQueue={baseState:d.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function i6(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 ch(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,w_(s)):(e.next=i.next,i.next=e),s.interleaved=e,Gc(d,t)}function WS(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,n_(d,t)}}function zR(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 Wv(d,e,t,s){var i=d.updateQueue;Du=!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:Du=!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);jl|=r,d.lanes=r,d.memoizedState=h}}function $R(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 k6(){return oo().memoizedState}function fse(d,e,t){var s=hh(d);if(t={lane:s,action:t,hasEagerState:!1,eagerState:null,next:null},S6(d))v6(e,t);else if(t=s6(d,e,t,s),t!==null){var i=wr();qo(t,d,s,i),T6(t,e,s)}}function pse(d,e,t){var s=hh(d),i={lane:s,action:t,hasEagerState:!1,eagerState:null,next:null};if(S6(d))v6(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,w_(e)):(i.next=o.next,o.next=i),e.interleaved=i;return}}catch{}finally{}t=s6(d,e,i,s),t!==null&&(i=wr(),qo(t,d,s,i),T6(t,e,s))}}function S6(d){var e=d.alternate;return d===_i||e!==null&&e===_i}function v6(d,e){Wy=zv=!0;var t=d.pending;t===null?e.next=e:(e.next=t.next,t.next=e),d.pending=e}function T6(d,e,t){if(t&4194240){var s=e.lanes;s&=d.pendingLanes,t|=s,e.lanes=t,n_(d,t)}}var $v={readContext:ao,useCallback:Xn,useContext:Xn,useEffect:Xn,useImperativeHandle:Xn,useInsertionEffect:Xn,useLayoutEffect:Xn,useMemo:Xn,useReducer:Xn,useRef:Xn,useState:Xn,useDebugValue:Xn,useDeferredValue:Xn,useTransition:Xn,useMutableSource:Xn,useSyncExternalStore:Xn,useId:Xn,unstable_isNewReconciler:!1},mse={readContext:ao,useCallback:function(d,e){return pd().memoizedState=[d,e===void 0?null:e],d},useContext:ao,useEffect:XR,useImperativeHandle:function(d,e,t){return t=t!=null?t.concat([d]):null,zS(4194308,4,m6.bind(null,e,d),t)},useLayoutEffect:function(d,e){return zS(4194308,4,d,e)},useInsertionEffect:function(d,e){return zS(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=fse.bind(null,_i,d),[s.memoizedState,d]},useRef:function(d){var e=pd();return d={current:d},e.memoizedState=d},useState:KR,useDebugValue:I_,useDeferredValue:function(d){return pd().memoizedState=d},useTransition:function(){var d=KR(!1),e=d[0];return d=lse.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(et(407));t=t()}else{if(t=e(),xn===null)throw Error(et(349));Wl&30||o6(s,e,t)}i.memoizedState=t;var n={value:t,getSnapshot:e};return i.queue=n,XR(c6.bind(null,s,n,d),[d]),s.flags|=2048,B0(9,d6.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{PP=!1,Error.prepareStackTrace=t}return(d=d?d.displayName||d.name:"")?Sy(d):""}function nte(d){switch(d.tag){case 5:return Sy(d.type);case 16:return Sy("Lazy");case 13:return Sy("Suspense");case 19:return Sy("SuspenseList");case 0:case 2:case 15:return d=IP(d.type,!1),d;case 11:return d=IP(d.type.render,!1),d;case 1:return d=IP(d.type,!0),d;default:return""}}function LC(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 Sp:return"Fragment";case kp:return"Portal";case MC:return"Profiler";case n_:return"StrictMode";case _C:return"Suspense";case AC:return"SuspenseList"}if(typeof d=="object")switch(d.$$typeof){case d4:return(d.displayName||"Context")+".Consumer";case o4:return(d._context.displayName||"Context")+".Provider";case r_:var e=d.render;return d=d.displayName,d||(d=e.displayName||e.name||"",d=d!==""?"ForwardRef("+d+")":"ForwardRef"),d;case a_:return e=d.displayName||null,e!==null?e:LC(d.type)||"Memo";case Nu:e=d._payload,d=d._init;try{return LC(d(e))}catch{}}return null}function rte(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 LC(e);case 8:return e===n_?"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 u4(d){var e=d.type;return(d=d.nodeName)&&d.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function ate(d){var e=u4(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=ate(d))}function h4(d){if(!d)return!1;var e=d._valueTracker;if(!e)return!0;var t=e.getValue(),s="";return d&&(s=u4(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 BC(d,e){var t=e.checked;return Ai({},e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:t??d._wrapperState.initialChecked})}function yR(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 l4(d,e){e=e.checked,e!=null&&i_(d,"checked",e,!1)}function NC(d,e){l4(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")?EC(d,e.type,t):e.hasOwnProperty("defaultValue")&&EC(d,e.type,yh(e.defaultValue)),e.checked==null&&e.defaultChecked!=null&&(d.defaultChecked=!!e.defaultChecked)}function wR(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 EC(d,e,t){(e!=="number"||I1(d.ownerDocument)!==d)&&(t==null?d.defaultValue=""+d._wrapperState.initialValue:d.defaultValue!==""+t&&(d.defaultValue=""+t))}var vy=Array.isArray;function jp(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 w0(d,e){if(e){var t=d.firstChild;if(t&&t===d.lastChild&&t.nodeType===3){t.nodeValue=e;return}}d.textContent=e}var qy={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},ote=["Webkit","ms","Moz","O"];Object.keys(qy).forEach(function(d){ote.forEach(function(e){e=e+d.charAt(0).toUpperCase()+d.substring(1),qy[e]=qy[d]})});function g4(d,e,t){return e==null||typeof e=="boolean"||e===""?"":t||typeof e!="number"||e===0||qy.hasOwnProperty(d)&&qy[d]?(""+e).trim():e+"px"}function y4(d,e){d=d.style;for(var t in e)if(e.hasOwnProperty(t)){var s=t.indexOf("--")===0,i=g4(t,e[t],s);t==="float"&&(t="cssFloat"),s?d.setProperty(t,i):d[t]=i}}var dte=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 qC(d,e){if(e){if(dte[d]&&(e.children!=null||e.dangerouslySetInnerHTML!=null))throw Error(et(137,d));if(e.dangerouslySetInnerHTML!=null){if(e.children!=null)throw Error(et(60));if(typeof e.dangerouslySetInnerHTML!="object"||!("__html"in e.dangerouslySetInnerHTML))throw Error(et(61))}if(e.style!=null&&typeof e.style!="object")throw Error(et(62))}}function VC(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 FC=null;function o_(d){return d=d.target||d.srcElement||window,d.correspondingUseElement&&(d=d.correspondingUseElement),d.nodeType===3?d.parentNode:d}var HC=null,zp=null,$p=null;function SR(d){if(d=Vw(d)){if(typeof HC!="function")throw Error(et(280));var e=d.stateNode;e&&(e=aT(e),HC(d.stateNode,d.type,e))}}function w4(d){zp?$p?$p.push(d):$p=[d]:zp=d}function b4(){if(zp){var d=zp,e=$p;if($p=zp=null,SR(d),e)for(d=0;d>>=0,d===0?32:31-(bte(d)/kte|0)|0}var Gk=64,Uk=4194304;function Ty(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=Ty(a):(n&=r,n!==0&&(s=Ty(n)))}else r=t&~i,r!==0?s=Ty(r):n!==0&&(s=Ty(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 Dw(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 Ote(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=Fy),_R=" ",AR=!1;function V4(d,e){switch(d){case"keyup":return Zte.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function F4(d){return d=d.detail,typeof d=="object"&&"data"in d?d.data:null}var vp=!1;function ese(d,e){switch(d){case"compositionend":return F4(e);case"keypress":return e.which!==32?null:(AR=!0,_R);case"textInput":return d=e.data,d===_R&&AR?null:d;default:return null}}function tse(d,e){if(vp)return d==="compositionend"||!m_&&V4(d,e)?(d=D4(),FS=l_=Qu=null,vp=!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=ER(t)}}function W4(d,e){return d&&e?d===e?!0:d&&d.nodeType===3?!1:e&&e.nodeType===3?W4(d,e.parentNode):"contains"in d?d.contains(e):d.compareDocumentPosition?!!(d.compareDocumentPosition(e)&16):!1:!1}function j4(){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 g_(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 use(d){var e=j4(),t=d.focusedElem,s=d.selectionRange;if(e!==t&&t&&t.ownerDocument&&W4(t.ownerDocument.documentElement,t)){if(s!==null&&g_(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=RR(t,n);var r=RR(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,Tp=null,$C=null,Gy=null,KC=!1;function DR(d,e,t){var s=t.window===t?t.document:t.nodeType===9?t:t.ownerDocument;KC||Tp==null||Tp!==I1(s)||(s=Tp,"selectionStart"in s&&g_(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}),Gy&&O0(Gy,s)||(Gy=s,s=N1($C,"onSelect"),0Pp||(d.current=eM[Pp],eM[Pp]=null,Pp--)}function ci(d,e){Pp++,eM[Pp]=d.current,d.current=e}var wh={},ir=Nh(wh),Vr=Nh(!1),Gl=wh;function pm(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 Fr(d){return d=d.childContextTypes,d!=null}function R1(){pi(Vr),pi(ir)}function WR(d,e,t){if(ir.current!==wh)throw Error(et(168));ci(ir,e),ci(Vr,t)}function e6(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(et(108,rte(d)||"Unknown",i));return Ai({},t,s)}function D1(d){return d=(d=d.stateNode)&&d.__reactInternalMemoizedMergedChildContext||wh,Gl=ir.current,ci(ir,d),ci(Vr,Vr.current),!0}function jR(d,e,t){var s=d.stateNode;if(!s)throw Error(et(169));t?(d=e6(d,e,Gl),s.__reactInternalMemoizedMergedChildContext=d,pi(Vr),pi(ir),ci(ir,d)):pi(Vr),ci(Vr,t)}var yc=null,oT=!1,HP=!1;function t6(d){yc===null?yc=[d]:yc.push(d)}function vse(d){oT=!0,t6(d)}function Eh(){if(!HP&&yc!==null){HP=!0;var d=0,e=zs;try{var t=yc;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===Sp&&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===Sp){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===Nu&&KR(v)===C.type){t(y,C.sibling),w=i(C,b.props),w.ref=Jg(y,C,b),w.return=y,y=w;break e}t(y,C);break}else e(y,C);C=C.sibling}b.type===Sp?(w=Rl(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=Jg(y,w,b),S.return=y,y=S)}return r(y);case kp: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=XP(b,y.mode,S),w.return=y,y=w}return r(y);case Nu:return C=b._init,g(y,w,C(b._payload),S)}if(vy(b))return p(y,w,b,S);if(Kg(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=KP(b,y.mode,S),w.return=y,y=w),r(y)):t(y,w)}return g}var gm=r6(!0),a6=r6(!1),F1=Nh(null),H1=null,Mp=null,k_=null;function S_(){k_=Mp=H1=null}function v_(d){var e=F1.current;pi(F1),d._currentValue=e}function iM(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 Xp(d,e){H1=d,k_=Mp=null,d=d.dependencies,d!==null&&d.firstContext!==null&&(d.lanes&e&&(Dr=!0),d.firstContext=null)}function ao(d){var e=d._currentValue;if(k_!==d)if(d={context:d,memoizedValue:e,next:null},Mp===null){if(H1===null)throw Error(et(308));Mp=d,H1.dependencies={lanes:0,firstContext:d}}else Mp=Mp.next=d;return e}var Tl=null;function T_(d){Tl===null?Tl=[d]:Tl.push(d)}function o6(d,e,t,s){var i=e.interleaved;return i===null?(t.next=t,T_(e)):(t.next=i.next,i.next=t),e.interleaved=t,Hc(d,s)}function Hc(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 Eu=!1;function O_(d){d.updateQueue={baseState:d.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function d6(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,Hc(d,t)}return i=s.interleaved,i===null?(e.next=e,T_(s)):(e.next=i.next,i.next=e),s.interleaved=e,Hc(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,c_(d,t)}}function XR(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;Eu=!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:Eu=!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);jl|=r,d.lanes=r,d.memoizedState=h}}function QR(d,e,t){if(d=e.effects,e.effects=null,d!==null)for(e=0;et?t:4,d(!0);var s=UP.transition;UP.transition={};try{d(!1),e()}finally{zs=t,UP.transition=s}}function x6(){return oo().memoizedState}function Pse(d,e,t){var s=ch(d);if(t={lane:s,action:t,hasEagerState:!1,eagerState:null,next:null},P6(d))I6(e,t);else if(t=o6(d,e,t,s),t!==null){var i=yr();qo(t,d,s,i),C6(t,e,s)}}function Ise(d,e,t){var s=ch(d),i={lane:s,action:t,hasEagerState:!1,eagerState:null,next:null};if(P6(d))I6(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,T_(e)):(i.next=o.next,o.next=i),e.interleaved=i;return}}catch{}finally{}t=o6(d,e,i,s),t!==null&&(i=yr(),qo(t,d,s,i),C6(t,e,s))}}function P6(d){var e=d.alternate;return d===_i||e!==null&&e===_i}function I6(d,e){Uy=W1=!0;var t=d.pending;t===null?e.next=e:(e.next=t.next,t.next=e),d.pending=e}function C6(d,e,t){if(t&4194240){var s=e.lanes;s&=d.pendingLanes,t|=s,e.lanes=t,c_(d,t)}}var j1={readContext:ao,useCallback:Xn,useContext:Xn,useEffect:Xn,useImperativeHandle:Xn,useInsertionEffect:Xn,useLayoutEffect:Xn,useMemo:Xn,useReducer:Xn,useRef:Xn,useState:Xn,useDebugValue:Xn,useDeferredValue:Xn,useTransition:Xn,useMutableSource:Xn,useSyncExternalStore:Xn,useId:Xn,unstable_isNewReconciler:!1},Cse={readContext:ao,useCallback:function(d,e){return pd().memoizedState=[d,e===void 0?null:e],d},useContext:ao,useEffect:ZR,useImperativeHandle:function(d,e,t){return t=t!=null?t.concat([d]):null,WS(4194308,4,k6.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=Pse.bind(null,_i,d),[s.memoizedState,d]},useRef:function(d){var e=pd();return d={current:d},e.memoizedState=d},useState:YR,useDebugValue:L_,useDeferredValue:function(d){return pd().memoizedState=d},useTransition:function(){var d=YR(!1),e=d[0];return d=xse.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(et(407));t=t()}else{if(t=e(),xn===null)throw Error(et(349));Wl&30||l6(s,e,t)}i.memoizedState=t;var n={value:t,getSnapshot:e};return i.queue=n,ZR(p6.bind(null,s,n,d),[d]),s.flags|=2048,L0(9,f6.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=_0++,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,B6(d,e,!1,!1),e.stateNode=d;e:{switch(r=DC(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;iwm&&(e.flags|=128,s=!0,ty(n,!1),e.lanes=4194304)}else{if(!s)if(d=jv(r),d!==null){if(e.flags|=128,s=!0,t=d.updateQueue,t!==null&&(e.updateQueue=t,e.flags|=4),ty(n,!0),n.tail===null&&n.tailMode==="hidden"&&!r.alternate&&!bi)return Qn(e),null}else 2*ji()-n.renderingStartTime>wm&&t!==1073741824&&(e.flags|=128,s=!0,ty(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):(Qn(e),null);case 22:case 23:return B_(),s=e.memoizedState!==null,d!==null&&d.memoizedState!==null!==s&&(e.flags|=8192),s&&e.mode&1?na&1073741824&&(Qn(e),e.subtreeFlags&6&&(e.flags|=8192)):Qn(e),null;case 24:return null;case 25:return null}throw Error(et(156,e.tag))}function Tse(d,e){switch(f_(e),e.tag){case 1:return Fr(e.type)&&qv(),d=e.flags,d&65536?(e.flags=d&-65537|128,e):null;case 3:return gm(),pi(Vr),pi(nr),v_(),d=e.flags,d&65536&&!(d&128)?(e.flags=d&-65537|128,e):null;case 5:return S_(e),null;case 13:if(pi(Ci),d=e.memoizedState,d!==null&&d.dehydrated!==null){if(e.alternate===null)throw Error(et(340));pm()}return d=e.flags,d&65536?(e.flags=d&-65537|128,e):null;case 19:return pi(Ci),null;case 4:return gm(),null;case 10:return y_(e.type._context),null;case 22:case 23:return B_(),null;case 24:return null;default:return null}}var eS=!1,sr=!1,Ose=typeof WeakSet=="function"?WeakSet:Set,Pt=null;function Mp(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 uM(d,e,t){try{t()}catch(s){qi(d,e,s)}}var aD=!1;function xse(d,e){if($C=Nv,d=F4(),h_(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(KC={focusedElem:d,selectionRange:t},Nv=!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:vo(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(et(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=aD,aD=!1,p}function jy(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&&uM(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 hM(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 R6(d){var e=d.alternate;e!==null&&(d.alternate=null,R6(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[YC],delete e[ose],delete e[dse])),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 D6(d){return d.tag===5||d.tag===3||d.tag===4}function oD(d){e:for(;;){for(;d.sibling===null;){if(d.return===null||D6(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 lM(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=Dv));else if(s!==4&&(d=d.child,d!==null))for(lM(d,e,t),d=d.sibling;d!==null;)lM(d,e,t),d=d.sibling}function fM(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(fM(d,e,t),d=d.sibling;d!==null;)fM(d,e,t),d=d.sibling}var Rn=null,Oo=!1;function Tu(d,e,t){for(t=t.child;t!==null;)q6(d,e,t),t=t.sibling}function q6(d,e,t){if(Ad&&typeof Ad.onCommitFiberUnmount=="function")try{Ad.onCommitFiberUnmount(sT,t)}catch{}switch(t.tag){case 5:sr||Mp(t,e);case 6:var s=Rn,i=Oo;Rn=null,Tu(d,e,t),Rn=s,Oo=i,Rn!==null&&(Oo?(d=Rn,t=t.stateNode,d.nodeType===8?d.parentNode.removeChild(t):d.removeChild(t)):Rn.removeChild(t.stateNode));break;case 18:Rn!==null&&(Oo?(d=Rn,t=t.stateNode,d.nodeType===8?qP(d.parentNode,t):d.nodeType===1&&qP(d,t),T0(d)):qP(Rn,t.stateNode));break;case 4:s=Rn,i=Oo,Rn=t.stateNode.containerInfo,Oo=!0,Tu(d,e,t),Rn=s,Oo=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)&&uM(t,e,r),i=i.next}while(i!==s)}Tu(d,e,t);break;case 1:if(!sr&&(Mp(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)}Tu(d,e,t);break;case 21:Tu(d,e,t);break;case 22:t.mode&1?(sr=(s=sr)||t.memoizedState!==null,Tu(d,e,t),sr=s):Tu(d,e,t);break;default:Tu(d,e,t)}}function dD(d){var e=d.updateQueue;if(e!==null){d.updateQueue=null;var t=d.stateNode;t===null&&(t=d.stateNode=new Ose),e.forEach(function(s){var i=Nse.bind(null,d,s);t.has(s)||(t.add(s),s.then(i,i))})}}function bo(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*Ise(s/1960))-s,10d?16:d,Ju===null)var s=!1;else{if(d=Ju,Ju=null,Qv=0,Is&6)throw Error(et(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()-A_?El(d,0):__|=t),Hr(d,e)}function z6(d,e){e===0&&(d.mode&1?(e=jk,jk<<=1,!(jk&130023424)&&(jk=4194304)):e=1);var t=wr();d=Gc(d,e),d!==null&&(qw(d,e,t),Hr(d,t))}function Bse(d){var e=d.memoizedState,t=0;e!==null&&(t=e.retryLane),z6(d,t)}function Nse(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(et(314))}s!==null&&s.delete(e),z6(d,t)}var $6;$6=function(d,e,t){if(d!==null)if(d.memoizedProps!==e.pendingProps||Vr.current)Dr=!0;else{if(!(d.lanes&t)&&!(e.flags&128))return Dr=!1,Sse(d,e,t);Dr=!!(d.flags&131072)}else Dr=!1,bi&&e.flags&1048576&&Y4(e,Hv,e.index);switch(e.lanes=0,e.tag){case 2:var s=e.type;$S(d,e),d=e.pendingProps;var i=fm(e,nr.current);Kp(e,t),i=O_(null,e,s,d,i,t);var n=x_();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,Fr(s)?(n=!0,Vv(e)):n=!1,e.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,b_(e),i.updater=cT,e.stateNode=i,i._reactInternals=e,iM(e,s,d,t),e=aM(null,e,s,!0,n,t)):(e.tag=0,bi&&n&&l_(e),fr(null,e,i,t),e=e.child),e;case 16:s=e.elementType;e:{switch($S(d,e),d=e.pendingProps,i=s._init,s=i(s._payload),e.type=s,i=e.tag=Rse(s),d=vo(s,d),i){case 0:e=rM(null,e,s,d,t);break e;case 1:e=iD(null,e,s,d,t);break e;case 11:e=tD(null,e,s,d,t);break e;case 14:e=sD(null,e,s,vo(s.type,d),t);break e}throw Error(et(306,s,""))}return e;case 0:return s=e.type,i=e.pendingProps,i=e.elementType===s?i:vo(s,i),rM(d,e,s,i,t);case 1:return s=e.type,i=e.pendingProps,i=e.elementType===s?i:vo(s,i),iD(d,e,s,i,t);case 3:e:{if(_6(e),d===null)throw Error(et(387));s=e.pendingProps,n=e.memoizedState,i=n.element,i6(d,e),Wv(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=ym(Error(et(423)),e),e=nD(d,e,s,t,i);break e}else if(s!==i){i=ym(Error(et(424)),e),e=nD(d,e,s,t,i);break e}else for(ma=dh(e.stateNode.containerInfo.firstChild),wa=e,bi=!0,Io=null,t=t6(e,null,s,t),e.child=t;t;)t.flags=t.flags&-3|4096,t=t.sibling;else{if(pm(),s===i){e=Uc(d,e,t);break e}fr(d,e,s,t)}e=e.child}return e;case 5:return n6(e),d===null&&eM(e),s=e.type,i=e.pendingProps,n=d!==null?d.memoizedProps:null,r=i.children,XC(s,i)?r=null:n!==null&&XC(s,n)&&(e.flags|=32),M6(d,e),fr(d,e,r,t),e.child;case 6:return d===null&&eM(e),null;case 13:return A6(d,e,t);case 4:return k_(e,e.stateNode.containerInfo),s=e.pendingProps,d===null?e.child=mm(e,null,s,t):fr(d,e,s,t),e.child;case 11:return s=e.type,i=e.pendingProps,i=e.elementType===s?i:vo(s,i),tD(d,e,s,i,t);case 7:return fr(d,e,e.pendingProps,t),e.child;case 8:return fr(d,e,e.pendingProps.children,t),e.child;case 12:return fr(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(Gv,s._currentValue),s._currentValue=r,n!==null)if(Go(n.value,r)){if(n.children===i.children&&!Vr.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),tM(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(et(341));r.lanes|=t,a=r.alternate,a!==null&&(a.lanes|=t),tM(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}fr(d,e,i.children,t),e=e.child}return e;case 9:return i=e.type,s=e.pendingProps.children,Kp(e,t),i=ao(i),s=s(i),e.flags|=1,fr(d,e,s,t),e.child;case 14:return s=e.type,i=vo(s,e.pendingProps),i=vo(s.type,i),sD(d,e,s,i,t);case 15:return I6(d,e,e.type,e.pendingProps,t);case 17:return s=e.type,i=e.pendingProps,i=e.elementType===s?i:vo(s,i),$S(d,e),e.tag=1,Fr(s)?(d=!0,Vv(e)):d=!1,Kp(e,t),O6(e,s,i),iM(e,s,i,t),aM(null,e,s,!0,d,t);case 19:return L6(d,e,t);case 22:return C6(d,e,t)}throw Error(et(156,e.tag))};function K6(d,e){return S4(d,e)}function Ese(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 eo(d,e,t,s){return new Ese(d,e,t,s)}function E_(d){return d=d.prototype,!(!d||!d.isReactComponent)}function Rse(d){if(typeof d=="function")return E_(d)?1:0;if(d!=null){if(d=d.$$typeof,d===e_)return 11;if(d===t_)return 14}return 2}function lh(d,e){var t=d.alternate;return t===null?(t=eo(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 QS(d,e,t,s,i,n){var r=2;if(s=d,typeof d=="function")E_(d)&&(r=1);else if(typeof d=="string")r=5;else e:switch(d){case kp:return Rl(t.children,i,n,e);case J2:r=8,i|=8;break;case IC:return d=eo(12,t,e,i|2),d.elementType=IC,d.lanes=n,d;case CC:return d=eo(13,t,e,i),d.elementType=CC,d.lanes=n,d;case MC:return d=eo(19,t,e,i),d.elementType=MC,d.lanes=n,d;case n4:return lT(t,i,n,e);default:if(typeof d=="object"&&d!==null)switch(d.$$typeof){case s4:r=10;break e;case i4:r=9;break e;case e_:r=11;break e;case t_:r=14;break e;case Ru:r=16,s=null;break e}throw Error(et(130,d==null?d:typeof d,""))}return e=eo(r,t,e,i),e.elementType=d,e.type=s,e.lanes=n,e}function Rl(d,e,t,s){return d=eo(7,d,s,e),d.lanes=t,d}function lT(d,e,t,s){return d=eo(22,d,s,e),d.elementType=n4,d.lanes=t,d.stateNode={isHidden:!1},d}function zP(d,e,t){return d=eo(6,d,null,e),d.lanes=t,d}function $P(d,e,t){return e=eo(4,d.children!==null?d.children:[],d.key,e),e.lanes=t,e.stateNode={containerInfo:d.containerInfo,pendingChildren:null,implementation:d.implementation},e}function Dse(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 R_(d,e,t,s,i,n,r,a,o){return d=new Dse(d,e,t,a,o),e===1?(e=1,n===!0&&(e|=8)):e=0,n=eo(3,null,null,e),d.current=n,n.stateNode=d,n.memoizedState={element:s,isDehydrated:t,cache:null,transitions:null,pendingSuspenseBoundaries:null},b_(n),d}function qse(d,e,t){var s=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Z6)}catch(d){console.error(d)}}Z6(),ZF.exports=Ca;var F_=ZF.exports,gD=F_;xC.createRoot=gD.createRoot,xC.hydrateRoot=gD.hydrateRoot;const yD="pushstate",wD="popstate",J6="beforeunload",eH=d=>(d.preventDefault(),d.returnValue=""),Use=()=>{removeEventListener(J6,eH,{capture:!0})};function tH(d){let e=d.getLocation();const t=new Set;let s=[];const i=()=>{e=d.getLocation(),t.forEach(r=>r())},n=async(r,a)=>{var o;if(!((a==null?void 0:a.ignoreBlocker)??!1)&&typeof document<"u"&&s.length){for(const u of s)if(!await u()){(o=d.onBlocked)==null||o.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=bD(a),n(()=>{d.pushState(r,a),i()},o)},replace:(r,a,o)=>{a=bD(a),n(()=>{d.replaceState(r,a),i()},o)},go:(r,a)=>{n(()=>{d.go(r),i()},a)},back:r=>{n(()=>{d.back(),i()},r)},forward:r=>{n(()=>{d.forward(),i()},r)},createHref:r=>d.createHref(r),block:r=>(s.push(r),s.length===1&&addEventListener(J6,eH,{capture:!0}),()=>{s=s.filter(a=>a!==r),s.length||Use()}),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:i}}function bD(d){return d||(d={}),{...d,key:zse()}}function sH(d){const e=(d==null?void 0:d.window)??(typeof document<"u"?window:void 0),t=e.history.pushState,s=e.history.replaceState,i=(d==null?void 0:d.createHref)??(m=>m),n=(d==null?void 0:d.parseLocation)??(()=>E0(`${e.location.pathname}${e.location.search}${e.location.hash}`,e.history.state));let r=n(),a;const o=()=>r;let c,u;const h=()=>{c&&(p._ignoreSubscribers=!0,(c.isPush?e.history.pushState:e.history.replaceState)(c.state,"",c.href),p._ignoreSubscribers=!1,c=void 0,u=void 0,a=void 0)},l=(m,g,y)=>{const w=i(g);u||(a=r),r=E0(g,y),c={href:w,state:y,isPush:(c==null?void 0:c.isPush)||m==="push"},u||(u=Promise.resolve().then(()=>h()))},f=()=>{r=n(),p.notify()},p=tH({getLocation:o,getLength:()=>e.history.length,pushState:(m,g)=>l("push",m,g),replaceState:(m,g)=>l("replace",m,g),back:()=>e.history.back(),forward:()=>e.history.forward(),go:m=>e.history.go(m),createHref:m=>i(m),flush:h,destroy:()=>{e.history.pushState=t,e.history.replaceState=s,e.removeEventListener(yD,f),e.removeEventListener(wD,f)},onBlocked:m=>{a&&r!==a&&(r=a,m())}});return e.addEventListener(yD,f),e.addEventListener(wD,f),e.history.pushState=function(...m){const g=t.apply(e.history,m);return p._ignoreSubscribers||f(),g},e.history.replaceState=function(...m){const g=s.apply(e.history,m);return p._ignoreSubscribers||f(),g},p}function Wse(d){const e=typeof document<"u"?window:void 0;return sH({window:e,parseLocation:()=>{const t=e.location.hash.split("#").slice(1).join("#")??"/";return E0(t,e.history.state)},createHref:t=>`${e.location.pathname}${e.location.search}#${t}`})}function jse(d={initialEntries:["/"]}){const e=d.initialEntries;let t=d.initialIndex??e.length-1;const s=e.map(()=>({}));return tH({getLocation:()=>E0(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 E0(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 zse(){return(Math.random()+1).toString(36).substring(7)}var $se="Invariant failed";function Er(d,e){if(!d)throw new Error($se)}var Kse=!0;function bm(d,e){if(!Kse){if(d)return;var t="Warning: "+e;typeof console<"u"&&console.warn(t);try{throw Error(t)}catch{}}}const KP=E.createContext(null);function iH(){return typeof document>"u"?KP:window.__TSR_ROUTER_CONTEXT__?window.__TSR_ROUTER_CONTEXT__:(window.__TSR_ROUTER_CONTEXT__=KP,KP)}function Dh(d){const e=E.useContext(iH());return bm(!(((d==null?void 0:d.warn)??!0)&&!e),"useRouter must be used inside a component!"),e}var nH={exports:{}},rH={},aH={exports:{}},oH={};/** +`+n.stack}return{value:d,source:e,stack:i,digest:null}}function zP(d,e,t){return{value:d,source:null,stack:t??null,digest:e??null}}function aM(d,e){try{console.error(e.value)}catch(t){setTimeout(function(){throw t})}}var Ase=typeof WeakMap=="function"?WeakMap:Map;function _6(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,gM=s),aM(d,e)},t}function A6(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(){aM(d,e)}}var n=d.stateNode;return n!==null&&typeof n.componentDidCatch=="function"&&(t.callback=function(){aM(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 tD(d,e,t){var s=d.pingCache;if(s===null){s=d.pingCache=new Ase;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=jse.bind(null,d,e,t),e.then(d,d))}function sD(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 iD(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 Lse=Qc.ReactCurrentOwner,Dr=!1;function lr(d,e,t,s){e.child=d===null?a6(e,null,t,s):gm(e,d.child,t,s)}function nD(d,e,t,s,i){t=t.render;var n=e.ref;return Xp(e,i),s=M_(d,e,t,s,n,i),t=__(),d!==null&&!Dr?(e.updateQueue=d.updateQueue,e.flags&=-2053,d.lanes&=~i,Gc(d,e,i)):(bi&&t&&y_(e),e.flags|=1,lr(d,e,s,i),e.child)}function rD(d,e,t,s,i){if(d===null){var n=t.type;return typeof n=="function"&&!F_(n)&&n.defaultProps===void 0&&t.compare===null&&t.defaultProps===void 0?(e.tag=15,e.type=n,L6(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:O0,t(r,s)&&d.ref===e.ref)return Gc(d,e,i)}return e.flags|=1,d=uh(n,s),d.ref=e.ref,d.return=e,e.child=d}function L6(d,e,t,s,i){if(d!==null){var n=d.memoizedProps;if(O0(n,s)&&d.ref===e.ref)if(Dr=!1,e.pendingProps=s=n,(d.lanes&i)!==0)d.flags&131072&&(Dr=!0);else return e.lanes=d.lanes,Gc(d,e,i)}return oM(d,e,t,s,i)}function B6(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(Ap,na),na|=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(Ap,na),na|=d,null;e.memoizedState={baseLanes:0,cachePool:null,transitions:null},s=n!==null?n.baseLanes:t,ci(Ap,na),na|=s}else n!==null?(s=n.baseLanes|t,e.memoizedState=null):s=t,ci(Ap,na),na|=s;return lr(d,e,i,t),e.child}function N6(d,e){var t=e.ref;(d===null&&t!==null||d!==null&&d.ref!==t)&&(e.flags|=512,e.flags|=2097152)}function oM(d,e,t,s,i){var n=Fr(t)?Gl:ir.current;return n=pm(e,n),Xp(e,i),t=M_(d,e,t,s,n,i),s=__(),d!==null&&!Dr?(e.updateQueue=d.updateQueue,e.flags&=-2053,d.lanes&=~i,Gc(d,e,i)):(bi&&s&&y_(e),e.flags|=1,lr(d,e,t,i),e.child)}function aD(d,e,t,s,i){if(Fr(t)){var n=!0;D1(e)}else n=!1;if(Xp(e,i),e.stateNode===null)jS(d,e),M6(e,t,s),rM(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=ao(c):(c=Fr(t)?Gl:ir.current,c=pm(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)&&eD(e,r,s,c),Eu=!1;var l=e.memoizedState;r.state=l,G1(e,s,r,i),o=e.memoizedState,a!==s||l!==o||Vr.current||Eu?(typeof u=="function"&&(nM(e,t,u,s),o=e.memoizedState),(a=Eu||JR(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,d6(d,e),a=e.memoizedProps,c=e.type===e.elementType?a:vo(e.type,a),r.props=c,h=e.pendingProps,l=r.context,o=t.contextType,typeof o=="object"&&o!==null?o=ao(o):(o=Fr(t)?Gl:ir.current,o=pm(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)&&eD(e,r,s,o),Eu=!1,l=e.memoizedState,r.state=l,G1(e,s,r,i);var p=e.memoizedState;a!==h||l!==p||Vr.current||Eu?(typeof f=="function"&&(nM(e,t,f,s),p=e.memoizedState),(c=Eu||JR(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 dM(d,e,t,s,n,i)}function dM(d,e,t,s,i,n){N6(d,e);var r=(e.flags&128)!==0;if(!s&&!r)return i&&jR(e,t,!1),Gc(d,e,n);s=e.stateNode,Lse.current=e;var a=r&&typeof t.getDerivedStateFromError!="function"?null:s.render();return e.flags|=1,d!==null&&r?(e.child=gm(e,d.child,null,n),e.child=gm(e,null,a,n)):lr(d,e,a,n),e.memoizedState=s.state,i&&jR(e,t,!0),e.child}function E6(d){var e=d.stateNode;e.pendingContext?WR(d,e.pendingContext,e.pendingContext!==e.context):e.context&&WR(d,e.context,!1),x_(d,e.containerInfo)}function oD(d,e,t,s,i){return mm(),b_(i),e.flags|=256,lr(d,e,t,s),e.child}var cM={dehydrated:null,treeContext:null,retryLane:0};function uM(d){return{baseLanes:d,cachePool:null,transitions:null}}function R6(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 sM(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=Rl(d,s,t,null),n.return=e,d.return=e,n.sibling=d,e.child=n,e.child.memoizedState=uM(t),e.memoizedState=cM,d):B_(e,r));if(i=d.memoizedState,i!==null&&(a=i.dehydrated,a!==null))return Bse(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=Rl(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?uM(t):{baseLanes:r.baseLanes|t,cachePool:null,transitions:r.transitions},n.memoizedState=r,n.childLanes=d.childLanes&~t,e.memoizedState=cM,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 B_(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&&b_(s),gm(e,d.child,null,t),d=B_(e,e.pendingProps.children),d.flags|=2,e.memoizedState=null,d}function Bse(d,e,t,s,i,n,r){if(t)return e.flags&256?(e.flags&=-257,s=zP(Error(et(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=Rl(n,i,r,null),n.flags|=2,s.return=e,n.return=e,s.sibling=n,e.child=s,e.mode&1&&gm(e,d.child,null,r),e.child.memoizedState=uM(r),e.memoizedState=cM,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(et(419)),s=zP(n,s,void 0),Yk(d,e,r,s)}if(a=(r&d.childLanes)!==0,Dr||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,Hc(d,i),qo(s,d,i,-1))}return V_(),s=zP(Error(et(421))),Yk(d,e,r,s)}return i.data==="$?"?(e.flags|=128,e.child=d.child,e=zse.bind(null,d),i._reactRetry=e,null):(d=n.treeContext,ma=ah(i.nextSibling),wa=e,bi=!0,Io=null,d!==null&&(Xa[Qa++]=Ic,Xa[Qa++]=Cc,Xa[Qa++]=Ul,Ic=d.id,Cc=d.overflow,Ul=e),e=B_(e,s.children),e.flags|=4096,e)}function dD(d,e,t){d.lanes|=e;var s=d.alternate;s!==null&&(s.lanes|=e),iM(d.return,e,t)}function $P(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 D6(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&&dD(d,t,e);else if(d.tag===19)dD(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),$P(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}$P(e,!0,t,null,n);break;case"together":$P(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 Gc(d,e,t){if(d!==null&&(e.dependencies=d.dependencies),jl|=e.lanes,!(t&e.childLanes))return null;if(d!==null&&e.child!==d.child)throw Error(et(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 Nse(d,e,t){switch(e.tag){case 3:E6(e),mm();break;case 5:c6(e);break;case 1:Fr(e.type)&&D1(e);break;case 4:x_(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?R6(d,e,t):(ci(Ci,Ci.current&1),d=Gc(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 D6(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,B6(d,e,t)}return Gc(d,e,t)}var q6,hM,V6,F6;q6=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}};hM=function(){};V6=function(d,e,t,s){var i=d.memoizedProps;if(i!==s){d=e.stateNode,Ol(Ld.current);var n=null;switch(t){case"input":i=BC(d,i),s=BC(d,s),n=[];break;case"select":i=Ai({},i,{value:void 0}),s=Ai({},s,{value:void 0}),n=[];break;case"textarea":i=RC(d,i),s=RC(d,s),n=[];break;default:typeof i.onClick!="function"&&typeof s.onClick=="function"&&(d.onclick=E1)}qC(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"&&(y0.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"&&(y0.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)}};F6=function(d,e,t,s){t!==s&&(e.flags|=4)};function ey(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 Qn(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 Ese(d,e,t){var s=e.pendingProps;switch(w_(e),e.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Qn(e),null;case 1:return Fr(e.type)&&R1(),Qn(e),null;case 3:return s=e.stateNode,ym(),pi(Vr),pi(ir),I_(),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,Io!==null&&(bM(Io),Io=null))),hM(d,e),Qn(e),null;case 5:P_(e);var i=Ol(M0.current);if(t=e.type,d!==null&&e.stateNode!=null)V6(d,e,t,s,i),d.ref!==e.ref&&(e.flags|=512,e.flags|=2097152);else{if(!s){if(e.stateNode===null)throw Error(et(166));return Qn(e),null}if(d=Ol(Ld.current),Xk(e)){s=e.stateNode,t=e.type;var n=e.memoizedProps;switch(s[Td]=e,s[I0]=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[I0]=s,q6(d,e,!1,!1),e.stateNode=d;e:{switch(r=VC(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;ibm&&(e.flags|=128,s=!0,ey(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),ey(n,!0),n.tail===null&&n.tailMode==="hidden"&&!r.alternate&&!bi)return Qn(e),null}else 2*ji()-n.renderingStartTime>bm&&t!==1073741824&&(e.flags|=128,s=!0,ey(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):(Qn(e),null);case 22:case 23:return q_(),s=e.memoizedState!==null,d!==null&&d.memoizedState!==null!==s&&(e.flags|=8192),s&&e.mode&1?na&1073741824&&(Qn(e),e.subtreeFlags&6&&(e.flags|=8192)):Qn(e),null;case 24:return null;case 25:return null}throw Error(et(156,e.tag))}function Rse(d,e){switch(w_(e),e.tag){case 1:return Fr(e.type)&&R1(),d=e.flags,d&65536?(e.flags=d&-65537|128,e):null;case 3:return ym(),pi(Vr),pi(ir),I_(),d=e.flags,d&65536&&!(d&128)?(e.flags=d&-65537|128,e):null;case 5:return P_(e),null;case 13:if(pi(Ci),d=e.memoizedState,d!==null&&d.dehydrated!==null){if(e.alternate===null)throw Error(et(340));mm()}return d=e.flags,d&65536?(e.flags=d&-65537|128,e):null;case 19:return pi(Ci),null;case 4:return ym(),null;case 10:return v_(e.type._context),null;case 22:case 23:return q_(),null;case 24:return null;default:return null}}var Zk=!1,sr=!1,Dse=typeof WeakSet=="function"?WeakSet:Set,Pt=null;function _p(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 lM(d,e,t){try{t()}catch(s){qi(d,e,s)}}var cD=!1;function qse(d,e){if(XC=L1,d=j4(),g_(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(QC={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:vo(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(et(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=cD,cD=!1,p}function Wy(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&&lM(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 fM(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 H6(d){var e=d.alternate;e!==null&&(d.alternate=null,H6(e)),d.child=null,d.deletions=null,d.sibling=null,d.tag===5&&(e=d.stateNode,e!==null&&(delete e[Td],delete e[I0],delete e[JC],delete e[kse],delete e[Sse])),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 G6(d){return d.tag===5||d.tag===3||d.tag===4}function uD(d){e:for(;;){for(;d.sibling===null;){if(d.return===null||G6(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 pM(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(pM(d,e,t),d=d.sibling;d!==null;)pM(d,e,t),d=d.sibling}function mM(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(mM(d,e,t),d=d.sibling;d!==null;)mM(d,e,t),d=d.sibling}var Dn=null,Oo=!1;function Su(d,e,t){for(t=t.child;t!==null;)U6(d,e,t),t=t.sibling}function U6(d,e,t){if(Ad&&typeof Ad.onCommitFiberUnmount=="function")try{Ad.onCommitFiberUnmount(sT,t)}catch{}switch(t.tag){case 5:sr||_p(t,e);case 6:var s=Dn,i=Oo;Dn=null,Su(d,e,t),Dn=s,Oo=i,Dn!==null&&(Oo?(d=Dn,t=t.stateNode,d.nodeType===8?d.parentNode.removeChild(t):d.removeChild(t)):Dn.removeChild(t.stateNode));break;case 18:Dn!==null&&(Oo?(d=Dn,t=t.stateNode,d.nodeType===8?FP(d.parentNode,t):d.nodeType===1&&FP(d,t),v0(d)):FP(Dn,t.stateNode));break;case 4:s=Dn,i=Oo,Dn=t.stateNode.containerInfo,Oo=!0,Su(d,e,t),Dn=s,Oo=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)&&lM(t,e,r),i=i.next}while(i!==s)}Su(d,e,t);break;case 1:if(!sr&&(_p(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)}Su(d,e,t);break;case 21:Su(d,e,t);break;case 22:t.mode&1?(sr=(s=sr)||t.memoizedState!==null,Su(d,e,t),sr=s):Su(d,e,t);break;default:Su(d,e,t)}}function hD(d){var e=d.updateQueue;if(e!==null){d.updateQueue=null;var t=d.stateNode;t===null&&(t=d.stateNode=new Dse),e.forEach(function(s){var i=$se.bind(null,d,s);t.has(s)||(t.add(s),s.then(i,i))})}}function bo(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*Fse(s/1960))-s,10d?16:d,Yu===null)var s=!1;else{if(d=Yu,Yu=null,K1=0,Is&6)throw Error(et(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()-R_?El(d,0):E_|=t),Hr(d,e)}function Y6(d,e){e===0&&(d.mode&1?(e=Uk,Uk<<=1,!(Uk&130023424)&&(Uk=4194304)):e=1);var t=yr();d=Hc(d,e),d!==null&&(Dw(d,e,t),Hr(d,t))}function zse(d){var e=d.memoizedState,t=0;e!==null&&(t=e.retryLane),Y6(d,t)}function $se(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(et(314))}s!==null&&s.delete(e),Y6(d,t)}var Z6;Z6=function(d,e,t){if(d!==null)if(d.memoizedProps!==e.pendingProps||Vr.current)Dr=!0;else{if(!(d.lanes&t)&&!(e.flags&128))return Dr=!1,Nse(d,e,t);Dr=!!(d.flags&131072)}else Dr=!1,bi&&e.flags&1048576&&s6(e,V1,e.index);switch(e.lanes=0,e.tag){case 2:var s=e.type;jS(d,e),d=e.pendingProps;var i=pm(e,ir.current);Xp(e,t),i=M_(null,e,s,d,i,t);var n=__();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,Fr(s)?(n=!0,D1(e)):n=!1,e.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,O_(e),i.updater=cT,e.stateNode=i,i._reactInternals=e,rM(e,s,d,t),e=dM(null,e,s,!0,n,t)):(e.tag=0,bi&&n&&y_(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=Xse(s),d=vo(s,d),i){case 0:e=oM(null,e,s,d,t);break e;case 1:e=aD(null,e,s,d,t);break e;case 11:e=nD(null,e,s,d,t);break e;case 14:e=rD(null,e,s,vo(s.type,d),t);break e}throw Error(et(306,s,""))}return e;case 0:return s=e.type,i=e.pendingProps,i=e.elementType===s?i:vo(s,i),oM(d,e,s,i,t);case 1:return s=e.type,i=e.pendingProps,i=e.elementType===s?i:vo(s,i),aD(d,e,s,i,t);case 3:e:{if(E6(e),d===null)throw Error(et(387));s=e.pendingProps,n=e.memoizedState,i=n.element,d6(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=wm(Error(et(423)),e),e=oD(d,e,s,t,i);break e}else if(s!==i){i=wm(Error(et(424)),e),e=oD(d,e,s,t,i);break e}else for(ma=ah(e.stateNode.containerInfo.firstChild),wa=e,bi=!0,Io=null,t=a6(e,null,s,t),e.child=t;t;)t.flags=t.flags&-3|4096,t=t.sibling;else{if(mm(),s===i){e=Gc(d,e,t);break e}lr(d,e,s,t)}e=e.child}return e;case 5:return c6(e),d===null&&sM(e),s=e.type,i=e.pendingProps,n=d!==null?d.memoizedProps:null,r=i.children,YC(s,i)?r=null:n!==null&&YC(s,n)&&(e.flags|=32),N6(d,e),lr(d,e,r,t),e.child;case 6:return d===null&&sM(e),null;case 13:return R6(d,e,t);case 4:return x_(e,e.stateNode.containerInfo),s=e.pendingProps,d===null?e.child=gm(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:vo(s,i),nD(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&&!Vr.current){e=Gc(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),iM(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(et(341));r.lanes|=t,a=r.alternate,a!==null&&(a.lanes|=t),iM(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,Xp(e,t),i=ao(i),s=s(i),e.flags|=1,lr(d,e,s,t),e.child;case 14:return s=e.type,i=vo(s,e.pendingProps),i=vo(s.type,i),rD(d,e,s,i,t);case 15:return L6(d,e,e.type,e.pendingProps,t);case 17:return s=e.type,i=e.pendingProps,i=e.elementType===s?i:vo(s,i),jS(d,e),e.tag=1,Fr(s)?(d=!0,D1(e)):d=!1,Xp(e,t),M6(e,s,i),rM(e,s,i,t),dM(null,e,s,!0,d,t);case 19:return D6(d,e,t);case 22:return B6(d,e,t)}throw Error(et(156,e.tag))};function J6(d,e){return P4(d,e)}function Kse(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 eo(d,e,t,s){return new Kse(d,e,t,s)}function F_(d){return d=d.prototype,!(!d||!d.isReactComponent)}function Xse(d){if(typeof d=="function")return F_(d)?1:0;if(d!=null){if(d=d.$$typeof,d===r_)return 11;if(d===a_)return 14}return 2}function uh(d,e){var t=d.alternate;return t===null?(t=eo(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")F_(d)&&(r=1);else if(typeof d=="string")r=5;else e:switch(d){case Sp:return Rl(t.children,i,n,e);case n_:r=8,i|=8;break;case MC:return d=eo(12,t,e,i|2),d.elementType=MC,d.lanes=n,d;case _C:return d=eo(13,t,e,i),d.elementType=_C,d.lanes=n,d;case AC:return d=eo(19,t,e,i),d.elementType=AC,d.lanes=n,d;case c4:return lT(t,i,n,e);default:if(typeof d=="object"&&d!==null)switch(d.$$typeof){case o4:r=10;break e;case d4:r=9;break e;case r_:r=11;break e;case a_:r=14;break e;case Nu:r=16,s=null;break e}throw Error(et(130,d==null?d:typeof d,""))}return e=eo(r,t,e,i),e.elementType=d,e.type=s,e.lanes=n,e}function Rl(d,e,t,s){return d=eo(7,d,s,e),d.lanes=t,d}function lT(d,e,t,s){return d=eo(22,d,s,e),d.elementType=c4,d.lanes=t,d.stateNode={isHidden:!1},d}function KP(d,e,t){return d=eo(6,d,null,e),d.lanes=t,d}function XP(d,e,t){return e=eo(4,d.children!==null?d.children:[],d.key,e),e.lanes=t,e.stateNode={containerInfo:d.containerInfo,pendingChildren:null,implementation:d.implementation},e}function Qse(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=MP(0),this.expirationTimes=MP(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=MP(0),this.identifierPrefix=s,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function H_(d,e,t,s,i,n,r,a,o){return d=new Qse(d,e,t,a,o),e===1?(e=1,n===!0&&(e|=8)):e=0,n=eo(3,null,null,e),d.current=n,n.stateNode=d,n.memoizedState={element:s,isDehydrated:t,cache:null,transitions:null,pendingSuspenseBoundaries:null},O_(n),d}function Yse(d,e,t){var s=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(iH)}catch(d){console.error(d)}}iH(),i4.exports=Ca;var yT=i4.exports,bD=yT;IC.createRoot=bD.createRoot,IC.hydrateRoot=bD.hydrateRoot;const kD="pushstate",SD="popstate",nH="beforeunload",rH=d=>(d.preventDefault(),d.returnValue=""),sie=()=>{removeEventListener(nH,rH,{capture:!0})};function aH(d){let e=d.getLocation();const t=new Set;let s=[];const i=()=>{e=d.getLocation(),t.forEach(r=>r({location:e}))},n=async(r,a)=>{var o;if(!((a==null?void 0:a.ignoreBlocker)??!1)&&typeof document<"u"&&s.length){for(const u of s)if(!await u()){(o=d.onBlocked)==null||o.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=vD(a),n(()=>{d.pushState(r,a),i()},o)},replace:(r,a,o)=>{a=vD(a),n(()=>{d.replaceState(r,a),i()},o)},go:(r,a)=>{n(()=>{d.go(r),i()},a)},back:r=>{n(()=>{d.back(),i()},r)},forward:r=>{n(()=>{d.forward(),i()},r)},createHref:r=>d.createHref(r),block:r=>(s.push(r),s.length===1&&addEventListener(nH,rH,{capture:!0}),()=>{s=s.filter(a=>a!==r),s.length||sie()}),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:i}}function vD(d){return d||(d={}),{...d,key:rie()}}function oH(d){const e=(d==null?void 0:d.window)??(typeof document<"u"?window:void 0),t=e.history.pushState,s=e.history.replaceState,i=(d==null?void 0:d.createHref)??(m=>m),n=(d==null?void 0:d.parseLocation)??(()=>N0(`${e.location.pathname}${e.location.search}${e.location.hash}`,e.history.state));let r=n(),a;const o=()=>r;let c,u;const h=()=>{c&&(p._ignoreSubscribers=!0,(c.isPush?e.history.pushState:e.history.replaceState)(c.state,"",c.href),p._ignoreSubscribers=!1,c=void 0,u=void 0,a=void 0)},l=(m,g,y)=>{const w=i(g);u||(a=r),r=N0(g,y),c={href:w,state:y,isPush:(c==null?void 0:c.isPush)||m==="push"},u||(u=Promise.resolve().then(()=>h()))},f=()=>{r=n(),p.notify()},p=aH({getLocation:o,getLength:()=>e.history.length,pushState:(m,g)=>l("push",m,g),replaceState:(m,g)=>l("replace",m,g),back:()=>e.history.back(),forward:()=>e.history.forward(),go:m=>e.history.go(m),createHref:m=>i(m),flush:h,destroy:()=>{e.history.pushState=t,e.history.replaceState=s,e.removeEventListener(kD,f),e.removeEventListener(SD,f)},onBlocked:m=>{a&&r!==a&&(r=a,m())}});return e.addEventListener(kD,f),e.addEventListener(SD,f),e.history.pushState=function(...m){const g=t.apply(e.history,m);return p._ignoreSubscribers||f(),g},e.history.replaceState=function(...m){const g=s.apply(e.history,m);return p._ignoreSubscribers||f(),g},p}function iie(d){const e=typeof document<"u"?window:void 0;return oH({window:e,parseLocation:()=>{const t=e.location.hash.split("#").slice(1).join("#")??"/";return N0(t,e.history.state)},createHref:t=>`${e.location.pathname}${e.location.search}#${t}`})}function nie(d={initialEntries:["/"]}){const e=d.initialEntries;let t=d.initialIndex??e.length-1;const s=e.map(()=>({}));return aH({getLocation:()=>N0(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 N0(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 rie(){return(Math.random()+1).toString(36).substring(7)}var aie="Invariant failed";function Nr(d,e){if(!d)throw new Error(aie)}const QP=B.createContext(null);function dH(){return typeof document>"u"?QP:window.__TSR_ROUTER_CONTEXT__?window.__TSR_ROUTER_CONTEXT__:(window.__TSR_ROUTER_CONTEXT__=QP,QP)}function Rh(d){const e=B.useContext(dH());return d==null||d.warn,e}var cH={exports:{}},uH={},hH={exports:{}},lH={};/** * @license React * use-sync-external-store-shim.production.min.js * @@ -46,7 +46,7 @@ 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 km=E;function Xse(d,e){return d===e&&(d!==0||1/d===1/e)||d!==d&&e!==e}var Qse=typeof Object.is=="function"?Object.is:Xse,Yse=km.useState,Zse=km.useEffect,Jse=km.useLayoutEffect,eie=km.useDebugValue;function tie(d,e){var t=e(),s=Yse({inst:{value:t,getSnapshot:e}}),i=s[0].inst,n=s[1];return Jse(function(){i.value=t,i.getSnapshot=e,XP(i)&&n({inst:i})},[d,t,e]),Zse(function(){return XP(i)&&n({inst:i}),d(function(){XP(i)&&n({inst:i})})},[d]),eie(t),t}function XP(d){var e=d.getSnapshot;d=d.value;try{var t=e();return!Qse(d,t)}catch{return!0}}function sie(d,e){return e()}var iie=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?sie:tie;oH.useSyncExternalStore=km.useSyncExternalStore!==void 0?km.useSyncExternalStore:iie;aH.exports=oH;var dH=aH.exports;/** + */var km=B;function oie(d,e){return d===e&&(d!==0||1/d===1/e)||d!==d&&e!==e}var die=typeof Object.is=="function"?Object.is:oie,cie=km.useState,uie=km.useEffect,hie=km.useLayoutEffect,lie=km.useDebugValue;function fie(d,e){var t=e(),s=cie({inst:{value:t,getSnapshot:e}}),i=s[0].inst,n=s[1];return hie(function(){i.value=t,i.getSnapshot=e,YP(i)&&n({inst:i})},[d,t,e]),uie(function(){return YP(i)&&n({inst:i}),d(function(){YP(i)&&n({inst:i})})},[d]),lie(t),t}function YP(d){var e=d.getSnapshot;d=d.value;try{var t=e();return!die(d,t)}catch{return!0}}function pie(d,e){return e()}var mie=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?pie:fie;lH.useSyncExternalStore=km.useSyncExternalStore!==void 0?km.useSyncExternalStore:mie;hH.exports=lH;var fH=hH.exports;/** * @license React * use-sync-external-store-shim/with-selector.production.min.js * @@ -54,14 +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 yT=E,nie=dH;function rie(d,e){return d===e&&(d!==0||1/d===1/e)||d!==d&&e!==e}var aie=typeof Object.is=="function"?Object.is:rie,oie=nie.useSyncExternalStore,die=yT.useRef,cie=yT.useEffect,uie=yT.useMemo,hie=yT.useDebugValue;rH.useSyncExternalStoreWithSelector=function(d,e,t,s,i){var n=die(null);if(n.current===null){var r={hasValue:!1,value:null};n.current=r}else r=n.current;n=uie(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,aie(u,f))return p;var m=s(f);return i!==void 0&&i(p,m)?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=oie(d,n[0],n[1]);return cie(function(){r.hasValue=!0,r.value=a},[a]),hie(a),a};nH.exports=rH;var lie=nH.exports;class fie{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 pie(d,e=t=>t){return lie.useSyncExternalStoreWithSelector(d.subscribe,()=>d.state,()=>d.state,e,mie)}function mie(d,e){if(Object.is(d,e))return!0;if(typeof d!="object"||d===null||typeof e!="object"||e===null)return!1;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=yie(e);for(const s in t){const i=t[s];if(typeof i=="string")try{t[s]=d(i)}catch{}}return t}}function Sie(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=gie(s).toString();return i?`?${i}`:""}}function Ky(d){return d[d.length-1]}function vie(d){return typeof d=="function"}function Ap(d,e){return vie(d)?d(e):d}function YS(d,e){return e.reduce((t,s)=>(t[s]=d[s],t),{})}function yl(d,e){if(d===e)return d;const t=e,s=vD(d)&&vD(t);if(s||Sm(d)&&Sm(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!(!SD(t)||!t.hasOwnProperty("isPrototypeOf"))}function SD(d){return Object.prototype.toString.call(d)==="[object Object]"}function vD(d){return Array.isArray(d)&&d.length===Object.keys(d).length}function TD(d,e){let t=Object.keys(d);return e&&(t=t.filter(s=>d[s]!==void 0)),t}function Qp(d,e,t){if(d===e)return!0;if(typeof d!=typeof e)return!1;if(Sm(d)&&Sm(e)){const s=(t==null?void 0:t.ignoreUndefined)??!0,i=TD(d,s),n=TD(e,s);return!(t!=null&&t.partial)&&i.length!==n.length?!1:n.every(r=>Qp(d[r],e[r],t))}return Array.isArray(d)&&Array.isArray(e)?d.length!==e.length?!1:!d.some((s,i)=>!Qp(s,e[i],t)):!1}const Py=typeof window<"u"?E.useLayoutEffect:E.useEffect;function fp(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=E.useRef({value:d,prev:null}),t=e.current.value;return d!==t&&(e.current={value:d,prev:t}),e.current.prev}function Tie(d,e,t={},s={}){const i=E.useRef(typeof IntersectionObserver=="function"),n=E.useRef(null);return E.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 Oie(d){const e=E.useRef(null);return E.useEffect(()=>{d&&(typeof d=="function"?d(e.current):d.current=e.current)}),e}function Nc(d){return wT(d.filter(e=>e!==void 0).join("/"))}function wT(d){return d.replace(/\/{2,}/g,"/")}function H_(d){return d==="/"?d:d.replace(/^\/{1,}/,"")}function xl(d){return d==="/"?d:d.replace(/\/{1,}$/,"")}function xie(d){return xl(H_(d))}function Jv(d,e){return d.endsWith("/")&&d!=="/"&&d!==`${e}/`?d.slice(0,-1):d}function Pie(d,e,t){return Jv(d,t)===Jv(e,t)}function Iie({basepath:d,base:e,to:t,trailingSlash:s="never",caseSensitive:i}){var n,r;e=e1(d,e,i),t=e1(d,t,i);let a=vm(e);const o=vm(t);a.length>1&&((n=Ky(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=Ky(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 wT(c)}function vm(d){if(!d)return[];d=wT(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 iS({path:d,params:e,leaveWildcards:t,leaveParams:s,decodeCharMap:i}){const n=vm(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?Cie(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 Cie(d,e){let t=encodeURIComponent(d);if(e)for(const[s,i]of e)t=t.replaceAll(s,i);return t}function nS(d,e,t){const s=Mie(d,e,t);if(!(t.to&&!s))return s??{}}function e1(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 G_(d){const e=d.errorComponent??bT;return P.jsx(_ie,{getResetKey:d.getResetKey,onCatch:d.onCatch,children:({error:t,reset:s})=>t?E.createElement(e,{error:t,reset:s}):d.children})}class _ie extends E.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 bT({error:d}){const[e,t]=E.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 Gr(d){const e=Dh({warn:(d==null?void 0:d.router)===void 0}),t=(d==null?void 0:d.router)||e,s=E.useRef();return pie(t.__store,i=>{if(d!=null&&d.select){if(d.structuralSharing??t.options.defaultStructuralSharing){const n=yl(s.current,d.select(i));return s.current=n,n}return d.select(i)}return i})}function xo(d){return!!(d!=null&&d.isNotFound)}function Aie(d){const e=Gr({select:t=>`not-found-${t.location.pathname}-${t.status}`});return P.jsx(G_,{getResetKey:()=>e,onCatch:(t,s)=>{var i;if(xo(t))(i=d.onCatch)==null||i.call(d,t,s);else throw t},errorComponent:({error:t})=>{var s;if(xo(t))return(s=d.fallback)==null?void 0:s.call(d,t);throw t},children:d.children})}function Lie(){return P.jsx("p",{children:"Not Found"})}const Bie={stringify:d=>JSON.stringify(d,function(t,s){const i=this[t],n=OD.find(r=>r.stringifyCondition(i));return n?n.stringify(i):s}),parse:d=>JSON.parse(d,function(t,s){const i=this[t],n=OD.find(r=>r.parseCondition(i));return n?n.parse(i):s})},OD=[{stringifyCondition:d=>d instanceof Date,stringify:d=>({$date:d.toISOString()}),parseCondition:d=>Sm(d)&&d.$date,parse:d=>new Date(d.$date)},{stringifyCondition:d=>d===void 0,stringify:()=>({$undefined:""}),parseCondition:d=>Sm(d)&&d.$undefined==="",parse:()=>{}}],cH=["component","errorComponent","pendingComponent","notFoundComponent"];function Nie(d){var e;for(const t of cH)if((e=d.options[t])!=null&&e.preload)return!0;return!1}function xD(d,e){if(d==null)return{};if("~validate"in d){const t=d["~validate"]({value:e});if("value"in t)return t.value;throw new uH(JSON.stringify(t.issues,void 0,2))}return"parse"in d?d.parse(e):typeof d=="function"?d(e):{}}function Eie(d){return new Rie(d)}class Rie{constructor(e){this.tempLocationKey=`${Math.round(Math.random()*1e7)}`,this.resetNextScroll=!0,this.shouldViewTransition=void 0,this.subscribers=new Set,this.startReactTransition=t=>t(),this.update=t=>{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 s=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(i=>[encodeURIComponent(i),i])):void 0,(!this.basepath||t.basepath&&t.basepath!==s.basepath)&&(t.basepath===void 0||t.basepath===""||t.basepath==="/"?this.basepath="/":this.basepath=`/${xie(t.basepath)}`),(!this.history||this.options.history&&this.options.history!==this.history)&&(this.history=this.options.history??(this.isServer?jse({initialEntries:[this.basepath||"/"]}):sH()),this.latestLocation=this.parseLocation()),this.options.routeTree!==this.routeTree&&(this.routeTree=this.options.routeTree,this.buildRouteTree()),this.__store||(this.__store=new fie(qie(this.latestLocation),{onUpdate:()=>{this.__store.state={...this.state,cachedMatches:this.state.cachedMatches.filter(i=>!["redirected"].includes(i.status))}}}))},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(Er(!c,`Duplicate routes found with id: ${String(a.id)}`),this.routesById[a.id]=a,!a.isRoot&&a.path){const h=xl(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=H_(r.fullPath),u=vm(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=>{const s=({pathname:a,search:o,hash:c,state:u})=>{const h=this.options.parseSearch(o),l=this.options.stringifySearch(h);return{pathname:a,searchStr:l,search:yl(t==null?void 0:t.search,h),hash:c.split("#").reverse()[0]??"",href:`${a}${l}${c}`,state:yl(t==null?void 0:t.state,u)}},i=s(this.history.location),{__tempLocation:n,__tempKey:r}=i.state;if(n&&(!r||r===this.tempLocationKey)){const a=s(n);return a.state.key=i.state.key,delete a.state.__tempLocation,{...a,maskedLocation:i}}return i},this.resolvePathWithBase=(t,s)=>Iie({basepath:this.basepath,base:t,to:wT(s),trailingSlash:this.options.trailingSlash,caseSensitive:this.options.caseSensitive}),this.getMatchedRoutes=(t,s)=>{let i={};const n=xl(t.pathname),r=u=>nS(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[ra];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=>nS(this.basepath,xl(R.pathname),{to:n.from,caseSensitive:!1,fuzzy:!1})):void 0,m=(p==null?void 0:p.pathname)||this.latestLocation.pathname;Er(n.from==null||p!=null,"Could not find match for from: "+n.from);const g=(a=this.state.pendingMatches)!=null&&a.length?(o=Ky(this.state.pendingMatches))==null?void 0:o.search:((c=Ky(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 W=iS({path:D.fullPath,params:(r==null?void 0:r.routeParams)??{},decodeCharMap:this.pathParamsDecodeCharMap});return Nc([this.basepath,W])===m}))==null?void 0:u.id];w=this.resolvePathWithBase(m,(R==null?void 0:R.to)??m)}const b={...(h=Ky(f))==null?void 0:h.params};let S=(n.params??!0)===!0?b:{...b,...Ap(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=iS({path:w,params:S??{},leaveWildcards:!1,leaveParams:t.leaveParams,decodeCharMap:this.pathParamsDecodeCharMap});let v=g;if(t._includeValidateSearch){let R=(l=this.options.search)!=null&&l.strict?{}:v;r==null||r.matchedRoutes.forEach(D=>{try{D.options.validateSearch&&(R={...R,...xD(D.options.validateSearch,{...R,...v})??{}})}catch{}}),v=R}v=(R=>{const D=(r==null?void 0:r.matchedRoutes.reduce((z,$)=>{var J;let Z=[];return"search"in $.options?(J=$.options.search)!=null&&J.middlewares&&(Z=$.options.search.middlewares):($.options.preSearchFilters||$.options.postSearchFilters)&&(Z=[({search:Y,next:ee})=>{let X=Y;"preSearchFilters"in $.options&&$.options.preSearchFilters&&(X=$.options.preSearchFilters.reduce((re,oe)=>oe(re),Y));const ie=ee(X);return"postSearchFilters"in $.options&&$.options.postSearchFilters?$.options.postSearchFilters.reduce((re,oe)=>oe(re),ie):ie}]),z.concat(Z)},[]))??[],W=({search:z})=>n.search?n.search===!0?z:Ap(n.search,z):{};D.push(W);const Q=(z,$)=>{if(z>=D.length)return $;const J=D[z];return J({search:$,next:K=>Q(z+1,K)})};return Q(0,R)})(v),v=yl(g,v);const M=this.options.stringifySearch(v),_=n.hash===!0?this.latestLocation.hash:n.hash?Ap(n.hash,this.latestLocation.hash):void 0,N=_?`#${_}`:"";let A=n.state===!0?this.latestLocation.state:n.state?Ap(n.state,this.latestLocation.state):{};return A=yl(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=nS(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={...YS(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,{...YS(t,["from"]),...t.mask}):i(t)},this.commitLocation=({viewTransition:t,ignoreBlocker:s,...i})=>{const n=()=>{i.state.key=this.latestLocation.state.key;const o=Qp(i.state,this.latestLocation.state);return delete i.state.key,o},r=this.latestLocation.href===i.href,a=this.commitLocationPromise;if(this.commitLocationPromise=fp(()=>{a==null||a.resolve()}),r&&n())this.load();else{let{maskedLocation:o,...c}=i;o&&(c={...o,state:{...o.state,__tempKey:void 0,__tempLocation:{...c,search:c.searchStr,state:{...c.state,__tempKey:void 0,__tempLocation:void 0,key:void 0}}}},(c.unmaskOnReload??this.options.unmaskOnReload??!1)&&(c.state.__tempKey=this.tempLocationKey)),this.shouldViewTransition=t,this.history[i.replace?"replace":"push"](c.href,c.state,{ignoreBlocker:s})}return this.resetNextScroll=i.resetScroll??!0,this.history.subscribers.size||this.load(),this.commitLocationPromise},this.buildAndCommitLocation=({replace:t,resetScroll:s,viewTransition:i,ignoreBlocker:n,...r}={})=>{const a=r.href;if(a){const c=E0(a,{});r.to=c.pathname,r.search=this.options.parseSearch(c.search),r.hash=c.hash.slice(1)}const o=this.buildLocation({...r,_includeValidateSearch:!0});return this.commitLocation({...o,viewTransition:i,replace:t,resetScroll:s,ignoreBlocker:n})},this.navigate=({to:t,...s})=>{const i=String(t);let n;try{new URL(`${i}`),n=!0}catch{}return Er(!n),this.buildAndCommitLocation({...s,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;this.cancelMatches();let u;this.__store.batch(()=>{u=this.matchRoutes(a),this.__store.setState(h=>({...h,status:"pending",isLoading:!0,location:a,pendingMatches:u,cachedMatches:h.cachedMatches.filter(l=>!u.find(f=>f.id===l.id))}))}),this.state.redirect||this.emit({type:"onBeforeNavigate",fromLocation:o,toLocation:a,pathChanged:c}),this.emit({type:"onBeforeLoad",fromLocation:o,toLocation:a,pathChanged:c}),await this.loadMatches({matches:u,location:a,onReady:async()=>{this.startViewTransition(async()=>{let h,l,f;this.__store.batch(()=>{this.__store.setState(p=>{const m=p.matches,g=p.pendingMatches||p.matches;return h=m.filter(y=>!g.find(w=>w.id===y.id)),l=g.filter(y=>!m.find(w=>w.id===y.id)),f=m.filter(y=>g.find(w=>w.id===y.id)),{...p,isLoading:!1,loadedAt:Date.now(),matches:g,pendingMatches:void 0,cachedMatches:[...p.cachedMatches,...h.filter(y=>y.status!=="error")]}}),this.clearExpiredCache()}),[[h,"onLeave"],[l,"onEnter"],[f,"onStay"]].forEach(([p,m])=>{p.forEach(g=>{var y,w;(w=(y=this.looseRoutesById[g.routeId].options)[m])==null||w.call(y,g)})})})}})}catch(a){YP(a)?(t=a,this.isServer||this.navigate({...a,replace:!0,ignoreBlocker:!0})):xo(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;delete this.shouldViewTransition,s&&typeof document<"u"&&"startViewTransition"in document&&typeof document.startViewTransition=="function"?document.startViewTransition(t):t()},this.updateMatch=(t,s)=>{var i;let n;const r=(i=this.state.pendingMatches)==null?void 0:i.find(c=>c.id===t),a=this.state.matches.find(c=>c.id===t),o=r?"pendingMatches":a?"matches":"cachedMatches";return this.__store.setState(c=>{var u;return{...c,[o]:(u=c[o])==null?void 0:u.map(h=>h.id===t?n=s(h):h)}}),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()))};!this.isServer&&!this.state.matches.length&&c();const u=(h,l)=>{var f,p,m;if(YP(l))throw l;if(ll(l)||xo(l)){if(r(h.id,g=>({...g,status:ll(l)?"redirected":xo(l)?"notFound":"error",isFetching:!1,error:l,beforeLoadPromise:void 0,loaderPromise:void 0})),l.routeId||(l.routeId=h.routeId),(f=h.beforeLoadPromise)==null||f.resolve(),(p=h.loaderPromise)==null||p.resolve(),(m=h.loadPromise)==null||m.resolve(),ll(l))throw o=!0,l=this.resolveRedirect({...l,_fromLocation:t}),l;if(xo(l))throw this._handleNotFound(s,l,{updateMatch:r}),l}};try{await new Promise((h,l)=>{(async()=>{var f,p,m;try{const g=(b,S,v)=>{var C,M;const{id:_,routeId:N}=s[b],A=this.looseRoutesById[N];if(S instanceof Promise)throw S;S.routerCode=v,a=a??b,u(this.getMatch(_),S);try{(M=(C=A.options).onError)==null||M.call(C,S)}catch(R){S=R,u(this.getMatch(_),S)}r(_,R=>{var D,W;return(D=R.beforeLoadPromise)==null||D.resolve(),(W=R.loadPromise)==null||W.resolve(),{...R,error:S,status:"error",isFetching:!1,updatedAt:Date.now(),abortController:new AbortController,beforeLoadPromise:void 0}})};for(const[b,{id:S,routeId:v}]of s.entries()){const C=this.getMatch(S),M=(f=s[b-1])==null?void 0:f.id,_=this.looseRoutesById[v],N=_.options.pendingMs??this.options.defaultPendingMs,A=!!(n&&!this.isServer&&!i&&(_.options.loader||_.options.beforeLoad)&&typeof N=="number"&&N!==1/0&&(_.options.pendingComponent??this.options.defaultPendingComponent));if(C.beforeLoadPromise||C.loaderPromise)A&&setTimeout(()=>{try{c()}catch{}},N),await C.beforeLoadPromise;else{try{r(S,X=>({...X,loadPromise:fp(()=>{var ie;(ie=X.loadPromise)==null||ie.resolve()}),beforeLoadPromise:fp()}));const R=new AbortController;let D;A&&(console.log("### 2186 setting timeout",N),D=setTimeout(()=>{try{c()}catch{}},N));const{paramsError:W,searchError:Q}=this.getMatch(S);W&&g(b,W,"PARSE_PARAMS"),Q&&g(b,Q,"VALIDATE_SEARCH");const z=()=>M?this.getMatch(M).context:this.options.context??{};r(S,X=>({...X,isFetching:"beforeLoad",fetchCount:X.fetchCount+1,abortController:R,pendingTimeout:D,context:{...z(),...X.__routeContext,...X.__beforeLoadContext}}));const{search:$,params:J,context:Z,cause:K}=this.getMatch(S),Y={search:$,abortController:R,params:J,preload:!!i,context:Z,location:t,navigate:X=>this.navigate({...X,_fromLocation:t}),buildLocation:this.buildLocation,cause:i?"preload":K,matches:s};let ee=await((m=(p=_.options).beforeLoad)==null?void 0:m.call(p,Y))??{};this.serializeLoaderData&&(ee=this.serializeLoaderData("__beforeLoadContext",ee,{router:this,match:this.getMatch(S)})),(ll(ee)||xo(ee))&&g(b,ee,"BEFORE_LOAD"),r(S,X=>({...X,__beforeLoadContext:ee,context:{...z(),...X.__routeContext,...ee},abortController:R}))}catch(R){g(b,R,"BEFORE_LOAD")}r(S,R=>{var D;return(D=R.beforeLoadPromise)==null||D.resolve(),{...R,beforeLoadPromise:void 0,isFetching:!1}})}}const y=s.slice(0,a),w=[];y.forEach(({id:b,routeId:S},v)=>{w.push((async()=>{const{loaderPromise:C}=this.getMatch(b);let M=!1;if(C)await C;else{const _=w[v-1],N=this.looseRoutesById[S],A=()=>{const{params:Y,loaderDeps:ee,abortController:X,context:ie,cause:re}=this.getMatch(b);return{params:Y,deps:ee,preload:!!i,parentMatchPromise:_,abortController:X,context:ie,location:t,navigate:oe=>this.navigate({...oe,_fromLocation:t}),cause:i?"preload":re,route:N}},R=Date.now()-this.getMatch(b).updatedAt,D=i?N.options.preloadStaleTime??this.options.defaultPreloadStaleTime??3e4:N.options.staleTime??this.options.defaultStaleTime??0,W=N.options.shouldReload,Q=typeof W=="function"?W(A()):W;r(b,Y=>({...Y,loaderPromise:fp(),preload:!!i&&!this.state.matches.find(ee=>ee.id===b)}));const z=async()=>{var Y,ee,X,ie,re,oe,me,fe;try{const he=async()=>{const Se=this.getMatch(b);Se.minPendingPromise&&await Se.minPendingPromise};try{N._lazyPromise===void 0&&(N.lazyFn?N._lazyPromise=N.lazyFn().then(Te=>{const{id:Ge,...ze}=Te.options;Object.assign(N.options,ze)}):N._lazyPromise=Promise.resolve()),N._componentsPromise===void 0&&(N._componentsPromise=N._lazyPromise.then(()=>Promise.all(cH.map(async Te=>{const Ge=N.options[Te];Ge!=null&&Ge.preload&&await Ge.preload()})))),r(b,Te=>({...Te,isFetching:"loader"}));let Se=await((ee=(Y=N.options).loader)==null?void 0:ee.call(Y,A()));this.serializeLoaderData&&(Se=this.serializeLoaderData("loaderData",Se,{router:this,match:this.getMatch(b)})),u(this.getMatch(b),Se),await N._lazyPromise,await he();const ge=(ie=(X=N.options).meta)==null?void 0:ie.call(X,{matches:s,match:this.getMatch(b),params:this.getMatch(b).params,loaderData:Se}),ye=(oe=(re=N.options).headers)==null?void 0:oe.call(re,{loaderData:Se});r(b,Te=>({...Te,error:void 0,status:"success",isFetching:!1,updatedAt:Date.now(),loaderData:Se,meta:ge,headers:ye}))}catch(Se){let ge=Se;await he(),u(this.getMatch(b),Se);try{(fe=(me=N.options).onError)==null||fe.call(me,Se)}catch(ye){ge=ye,u(this.getMatch(b),ye)}r(b,ye=>({...ye,error:ge,status:"error",isFetching:!1}))}await N._componentsPromise}catch(he){u(this.getMatch(b),he)}},{status:$,invalid:J}=this.getMatch(b);M=$==="success"&&(J||(Q??R>D)),i&&N.options.preload===!1||(M?(async()=>{try{await z()}catch(Y){YP(Y)&&await this.navigate(Y)}})():$!=="success"&&await z());const{loaderPromise:Z,loadPromise:K}=this.getMatch(b);Z==null||Z.resolve(),K==null||K.resolve()}return r(b,_=>({..._,isFetching:M?_.isFetching:!1,loaderPromise:void 0,invalid:!1})),this.getMatch(b)})())}),await Promise.all(w),h()}catch(g){l(g)}})()}),await c()}catch(h){if(ll(h)||xo(h))throw xo(h)&&!i&&await c(),h}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=Object.fromEntries([...this.state.matches,...this.state.pendingMatches??[],...this.state.cachedMatches].map(a=>[a.id,!0]));this.__store.batch(()=>{i.forEach(a=>{n[a.id]||this.__store.setState(o=>({...o,cachedMatches:[...o.cachedMatches,a]}))})});const r=new Set([...this.state.matches,...this.state.pendingMatches??[]].map(a=>a.id));try{return i=await this.loadMatches({matches:i,location:s,preload:!0,updateMatch:(a,o)=>{r.has(a)?i=i.map(c=>c.id===a?o(c):c):this.updateMatch(a,o)}}),i}catch(a){if(ll(a))return 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=nS(this.basepath,a.pathname,{...s,to:n.pathname});return!o||t.params&&!Qp(o,t.params,{partial:!0})?!1:o&&((s==null?void 0:s.includeSearch)??!0)?Qp(a.search,n.search,{partial:!0})?o:!1:o},this.dehydrate=()=>{var t;const s=((t=this.options.errorSerializer)==null?void 0:t.serialize)??Vie;return{state:{dehydratedMatches:this.state.matches.map(i=>({...YS(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)),Er(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 Er(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.streamedKeys=new Set,this.getStreamedValue=t=>{var s;if(this.isServer)return;const i=(s=window.__TSR__)==null?void 0:s.streamedValues[t];if(i)return i.parsed||(i.parsed=this.options.transformer.parse(i.value)),i.parsed},this.streamValue=(t,s)=>{var i;bm(!this.streamedKeys.has(t),"Key has already been streamed: "+t),this.streamedKeys.add(t);const n=`__TSR__.streamedValues['${t}'] = { value: ${(i=this.serializer)==null?void 0:i.call(this,this.options.transformer.stringify(s))}}`;this.injectHtml(` +
diff --git a/apps/cli/package.json b/apps/cli/package.json index 4ff1c2af..9bea3e43 100644 --- a/apps/cli/package.json +++ b/apps/cli/package.json @@ -1,6 +1,6 @@ { "name": "opentrader", - "version": "1.0.0-beta.24", + "version": "1.0.0-beta.25", "description": "OpenTrader is a powerful open-source crypto trading bot designated to automate your trading strategies on various cryptocurrency exchanges.", "keywords": [ "bot", diff --git a/pro b/pro index 07329fb6..2a0b9ff3 160000 --- a/pro +++ b/pro @@ -1 +1 @@ -Subproject commit 07329fb6e53f992a21107a60d7083dfe1a643867 +Subproject commit 2a0b9ff326460a0c96c0a56d08a4355e5bbdc8ab