@jesec/flood 0.0.0-master.2f390e9 → 0.0.0-master.2f40473
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/assets/{Alerts-DfIc2RDo.js → Alerts-BfYWD54i.js} +2 -2
- package/dist/assets/assets/{Alerts-DfIc2RDo.js.map → Alerts-BfYWD54i.js.map} +1 -1
- package/dist/assets/assets/{ApplicationView-B165lCqL.js → ApplicationView-DlXtypnL.js} +2 -2
- package/dist/assets/assets/{ApplicationView-B165lCqL.js.map → ApplicationView-DlXtypnL.js.map} +1 -1
- package/dist/assets/assets/{AuthForm-Cz9mlsMK.js → AuthForm-DM9eHagy.js} +2 -2
- package/dist/assets/assets/{AuthForm-Cz9mlsMK.js.map → AuthForm-DM9eHagy.js.map} +1 -1
- package/dist/assets/assets/Login-BRy_zJXa.js +2 -0
- package/dist/assets/assets/{Login-GaGEU4gd.js.map → Login-BRy_zJXa.js.map} +1 -1
- package/dist/assets/assets/{Modals-zQz7EQHB.js → Modals-wrv5u9BI.js} +6 -6
- package/dist/assets/assets/{Modals-zQz7EQHB.js.map → Modals-wrv5u9BI.js.map} +1 -1
- package/dist/assets/assets/{Overview-C2zOuv4e.js → Overview-B2d9WwLT.js} +6 -6
- package/dist/assets/assets/Overview-B2d9WwLT.js.map +1 -0
- package/dist/assets/assets/Register-DTJMvTzu.js +2 -0
- package/dist/assets/assets/{Register-BlHDGVpO.js.map → Register-DTJMvTzu.js.map} +1 -1
- package/dist/assets/assets/{dist-CV9BnlWY.js → dist-DTOngMXG.js} +2 -2
- package/dist/assets/assets/{dist-CV9BnlWY.js.map → dist-DTOngMXG.js.map} +1 -1
- package/dist/assets/assets/index-FV_DLHpG.js +84 -0
- package/dist/assets/assets/index-FV_DLHpG.js.map +1 -0
- package/dist/assets/assets/index-H8kSoxrM.css +1 -0
- package/dist/assets/index.html +3 -3
- package/dist/index.js +2 -2
- package/package.json +16 -16
- package/dist/assets/assets/Login-GaGEU4gd.js +0 -2
- package/dist/assets/assets/Overview-C2zOuv4e.js.map +0 -1
- package/dist/assets/assets/Register-BlHDGVpO.js +0 -2
- package/dist/assets/assets/index-9MYKwVAF.css +0 -1
- package/dist/assets/assets/index-CqvoWXZ8.js +0 -84
- package/dist/assets/assets/index-CqvoWXZ8.js.map +0 -1
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./Login-GaGEU4gd.js","./dist-CV9BnlWY.js","./ApplicationView-B165lCqL.js","./AuthForm-Cz9mlsMK.js","./Overview-C2zOuv4e.js","./Register-BlHDGVpO.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{Bt as e,C as t,Ht as n,Qt as r,Ut as i,Vt as a,Wt as o,Xt as s,Z as c,_ as l,a as u,an as d,b as f,d as p,en as m,f as h,g,h as _,i as v,in as y,kt as b,l as ee,m as x,n as S,nn as te,o as ne,p as C,qt as re,r as w,rn as ie,s as ae,t as oe,tn as T,u as se,zt as ce}from"./dist-CV9BnlWY.js";(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),t.credentials=e.crossOrigin===`use-credentials`?`include`:e.crossOrigin===`anonymous`?`omit`:`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var le=/^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i,ue=/^[\\/]{2}/;function de(e,t){return t+e.replace(/\\/g,`/`)}var fe=`popstate`;function pe(e){return typeof e==`object`&&!!e&&`pathname`in e&&`search`in e&&`hash`in e&&`state`in e&&`key`in e}function me(e={}){function t(e,t){let n=t.state?.masked,{pathname:r,search:i,hash:a}=n||e.location;return ve(``,{pathname:r,search:i,hash:a},t.state&&t.state.usr||null,t.state&&t.state.key||`default`,n?{pathname:e.location.pathname,search:e.location.search,hash:e.location.hash}:void 0)}function n(e,t){return typeof t==`string`?t:ye(t)}return xe(t,n,null,e)}function E(e,t){if(e===!1||e==null)throw Error(t)}function he(e,t){if(!e){typeof console<`u`&&console.warn(t);try{throw Error(t)}catch{}}}function ge(){return Math.random().toString(36).substring(2,10)}function _e(e,t){return{usr:e.state,key:e.key,idx:t,masked:e.mask?{pathname:e.pathname,search:e.search,hash:e.hash}:void 0}}function ve(e,t,n=null,r,i){return{pathname:typeof e==`string`?e:e.pathname,search:``,hash:``,...typeof t==`string`?be(t):t,state:n,key:t&&t.key||r||ge(),mask:i}}function ye({pathname:e=`/`,search:t=``,hash:n=``}){return t&&t!==`?`&&(e+=t.charAt(0)===`?`?t:`?`+t),n&&n!==`#`&&(e+=n.charAt(0)===`#`?n:`#`+n),e}function be(e){let t={};if(e){let n=e.indexOf(`#`);n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf(`?`);r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function xe(e,t,n,r={}){let{window:i=document.defaultView,v5Compat:a=!1}=r,o=i.history,s=`POP`,c=null,l=u();l??(l=0,o.replaceState({...o.state,idx:l},``));function u(){return(o.state||{idx:null}).idx}function d(){s=`POP`;let e=u(),t=e==null?null:e-l;l=e,c&&c({action:s,location:h.location,delta:t})}function f(e,t){s=`PUSH`;let r=pe(e)?e:ve(h.location,e,t);n&&n(r,e),l=u()+1;let d=_e(r,l),f=h.createHref(r.mask||r);try{o.pushState(d,``,f)}catch(e){if(e instanceof DOMException&&e.name===`DataCloneError`)throw e;i.location.assign(f)}a&&c&&c({action:s,location:h.location,delta:1})}function p(e,t){s=`REPLACE`;let r=pe(e)?e:ve(h.location,e,t);n&&n(r,e),l=u();let i=_e(r,l),d=h.createHref(r.mask||r);o.replaceState(i,``,d),a&&c&&c({action:s,location:h.location,delta:0})}function m(e){return Se(i,e)}let h={get action(){return s},get location(){return e(i,o)},listen(e){if(c)throw Error(`A history only accepts one active listener`);return i.addEventListener(fe,d),c=e,()=>{i.removeEventListener(fe,d),c=null}},createHref(e){return t(i,e)},createURL:m,encodeLocation(e){let t=m(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:f,replace:p,go(e){return o.go(e)}};return h}function Se(e,t,n=!1){let r=`http://localhost`;e&&(r=e.location.origin===`null`?e.location.href:e.location.origin),E(r,`No window.location.(origin|href) available to create URL`);let i=typeof t==`string`?t:ye(t);return i=i.replace(/ $/,`%20`),!n&&ue.test(i)&&(i=r+i),new URL(i,r)}var D=d(te(),1);function O(e,t,n=`/`){return Ce(e,t,n,!1)}function Ce(e,t,n,r,i){let a=Ue((typeof t==`string`?be(t):t).pathname||`/`,n);if(a==null)return null;let o=i??we(e),s=null,c=He(a);for(let e=0;s==null&&e<o.length;++e)s=Re(o[e],c,r);return s}function we(e){let t=Te(e);return De(t),t}function Te(e,t=[],n=[],r=``,i=!1){let a=(e,a,o=i,s)=>{let c={relativePath:s===void 0?e.path||``:s,caseSensitive:e.caseSensitive===!0,childrenIndex:a,route:e};if(c.relativePath.startsWith(`/`)){if(!c.relativePath.startsWith(r)&&o)return;E(c.relativePath.startsWith(r),`Absolute route path "${c.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),c.relativePath=c.relativePath.slice(r.length)}let l=Ze([r,c.relativePath]),u=n.concat(c);e.children&&e.children.length>0&&(E(e.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${l}".`),Te(e.children,t,u,l,o)),!(e.path==null&&!e.index)&&t.push({path:l,score:Ie(l,e.index),routesMeta:u.map((e,t)=>{let[n,r]=Ve(e.relativePath,e.caseSensitive,t===u.length-1);return{...e,matcher:n,compiledParams:r}})})};return e.forEach((e,t)=>{if(e.path===``||!e.path?.includes(`?`))a(e,t);else for(let n of Ee(e.path))a(e,t,!0,n)}),t}function Ee(e){let t=e.split(`/`);if(t.length===0)return[];let[n,...r]=t,i=n.endsWith(`?`),a=n.replace(/\?$/,``);if(r.length===0)return i?[a,``]:[a];let o=Ee(r.join(`/`)),s=[];return s.push(...o.map(e=>e===``?a:[a,e].join(`/`))),i&&s.push(...o),s.map(t=>e.startsWith(`/`)&&t===``?`/`:t)}function De(e){e.sort((e,t)=>e.score===t.score?Le(e.routesMeta.map(e=>e.childrenIndex),t.routesMeta.map(e=>e.childrenIndex)):t.score-e.score)}var k=/^:[\w-]+$/,Oe=/^:[\w-]+/,ke=3.5,Ae=3,je=2,Me=1,Ne=10,Pe=-2,Fe=e=>e===`*`;function Ie(e,t){let n=e.split(`/`),r=n.length;return n.some(Fe)&&(r+=Pe),t&&(r+=je),n.filter(e=>!Fe(e)).reduce((e,t)=>e+(k.test(t)?Ae:Oe.test(t)?ke:t===``?Me:Ne),r)}function Le(e,t){return e.length===t.length&&e.slice(0,-1).every((e,n)=>e===t[n])?e[e.length-1]-t[t.length-1]:0}function Re(e,t,n=!1){let{routesMeta:r}=e,i={},a=`/`,o=[];for(let e=0;e<r.length;++e){let s=r[e],c=e===r.length-1,l=a===`/`?t:t.slice(a.length)||`/`,u={path:s.relativePath,caseSensitive:s.caseSensitive,end:c},d=s.matcher&&s.compiledParams?Be(u,l,s.matcher,s.compiledParams):ze(u,l),f=s.route;if(!d&&c&&n&&!r[r.length-1].route.index&&(d=ze({path:s.relativePath,caseSensitive:s.caseSensitive,end:!1},l)),!d)return null;Object.assign(i,d.params),o.push({params:i,pathname:Ze([a,d.pathname]),pathnameBase:$e(Ze([a,d.pathnameBase])),route:f}),d.pathnameBase!==`/`&&(a=Ze([a,d.pathnameBase]))}return o}function ze(e,t){typeof e==`string`&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=Ve(e.path,e.caseSensitive,e.end);return Be(e,t,n,r)}function Be(e,t,n,r){let i=t.match(n);if(!i)return null;let a=i[0],o=Qe(a,1),s=i.slice(1);return{params:r.reduce((e,{paramName:t,isOptional:n},r)=>{if(t===`*`){let e=s[r]||``;o=Qe(a.slice(0,a.length-e.length),1)}let i=s[r];return e[t]=n&&!i?void 0:(i||``).replace(/%2F/g,`/`),e},{}),pathname:a,pathnameBase:o,pattern:e}}function Ve(e,t=!1,n=!0){he(e===`*`||!e.endsWith(`*`)||e.endsWith(`/*`),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,`/*`)}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,`/*`)}".`);let r=[],i=`^`+e.replace(/\/*\*?$/,``).replace(/^\/*/,`/`).replace(/[\\.*+^${}|()[\]]/g,`\\$&`).replace(/\/:([\w-]+)(\?)?/g,(e,t,n,i,a)=>{if(r.push({paramName:t,isOptional:n!=null}),n){let t=a.charAt(i+e.length);return t&&t!==`/`?`/([^\\/]*)`:`(?:/([^\\/]*))?`}return`/([^\\/]+)`}).replace(/\/([\w-]+)\?(?=\/|$|\()/g,`(?:/$1)?`);return e.endsWith(`*`)?(r.push({paramName:`*`}),i+=e===`*`||e===`/*`?`(.*)$`:`(?:\\/(.+)|\\/*)$`):n?i+=`\\/*$`:e!==``&&e!==`/`&&(i+=`(?:(?=\\/|$))`),[new RegExp(i,t?void 0:`i`),r]}function He(e){try{return e.split(`/`).map(e=>decodeURIComponent(e).replace(/\//g,`%2F`)).join(`/`)}catch(t){return he(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function Ue(e,t){if(t===`/`)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith(`/`)?t.length-1:t.length,r=e.charAt(n);return r&&r!==`/`?null:e.slice(n)||`/`}function We(e,t=`/`){let{pathname:n,search:r=``,hash:i=``}=typeof e==`string`?be(e):e,a;return n?(n=Xe(n),a=n.startsWith(`/`)||n.startsWith(`\\`)?Ge(n.substring(1),`/`):Ge(n,t)):a=t,{pathname:a,search:et(r),hash:tt(i)}}function Ge(e,t){let n=Qe(t).split(`/`);return e.split(`/`).forEach(e=>{e===`..`?n.length>1&&n.pop():e!==`.`&&n.push(e)}),n.length>1?n.join(`/`):`/`}function Ke(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function qe(e){return e.filter((e,t)=>t===0||e.route.path&&e.route.path.length>0)}function Je(e){let t=qe(e);return t.map((e,n)=>n===t.length-1?e.pathname:e.pathnameBase)}function Ye(e,t,n,r=!1){let i;typeof e==`string`?i=be(e):(i={...e},E(!i.pathname||!i.pathname.includes(`?`),Ke(`?`,`pathname`,`search`,i)),E(!i.pathname||!i.pathname.includes(`#`),Ke(`#`,`pathname`,`hash`,i)),E(!i.search||!i.search.includes(`#`),Ke(`#`,`search`,`hash`,i)));let a=e===``||i.pathname===``,o=a?`/`:i.pathname,s;if(o==null)s=n;else{let e=t.length-1;if(!r&&o.startsWith(`..`)){let t=o.split(`/`);for(;t[0]===`..`;)t.shift(),--e;i.pathname=t.join(`/`)}s=e>=0?t[e]:`/`}let c=We(i,s),l=o&&o!==`/`&&o.endsWith(`/`),u=(a||o===`.`)&&n.endsWith(`/`);return!c.pathname.endsWith(`/`)&&(l||u)&&(c.pathname+=`/`),c}var Xe=e=>e.replace(/[\\/]{2,}/g,`/`),Ze=e=>Xe(e.join(`/`));function Qe(e,t=0){let n=e.length;for(;n>t&&e.charCodeAt(n-1)===47;)n--;return n===e.length?e:e.slice(0,n)}var $e=e=>Qe(e).replace(/^\/*/,`/`),et=e=>!e||e===`?`?``:e.startsWith(`?`)?e:`?`+e,tt=e=>!e||e===`#`?``:e.startsWith(`#`)?e:`#`+e,nt=class{status;statusText;data;error;internal;constructor(e,t,n,r=!1){this.status=e,this.statusText=t||``,this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function rt(e){return e!=null&&typeof e.status==`number`&&typeof e.statusText==`string`&&typeof e.internal==`boolean`&&`data`in e}function it(e){return Ze(e.map(e=>e.route.path).filter(Boolean))||`/`}var at=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0;function ot(e,t){let n=e;if(typeof n!=`string`||!le.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,i=!1;if(at)try{let e=new URL(window.location.href),r=ue.test(n)?new URL(de(n,e.protocol)):new URL(n),a=Ue(r.pathname,t);r.origin===e.origin&&a!=null?n=a+r.search+r.hash:i=!0}catch{he(!1,`<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:i,to:n}}var st=new URL(`http://localhost`);function ct(e){if(e.createURL)return e.createURL(`/`);try{return new URL(e.createHref(`/`),st)}catch{return st}}function lt(e,t){return e.origin===t.origin&&(e.origin!==`null`||e.protocol===t.protocol&&e.host===t.host)}function ut(e,t){if(e.startsWith(`//`))return!0;let n=t.protocol.toLowerCase();return e.toLowerCase().startsWith(n)?t.host===``||e.slice(n.length).startsWith(`//`):!1}function dt(e,t,n,r){let i=null;try{i=e==null?null:new URL(e,n)}catch{}let a=new URL(t,n),o=i!=null&&!lt(i,n),s=!lt(a,n);if(r===`reject`){if(o||s)throw Error(`External navigation is not allowed`)}else if(s&&(i==null||!ut(e,i)||!lt(i,a)))throw Error(`External navigation is not allowed`)}var ft=[`POST`,`PUT`,`PATCH`,`DELETE`];new Set(ft);var pt=[`GET`,...ft];new Set(pt);var mt=[`about:`,`blob:`,`chrome:`,`chrome-untrusted:`,`content:`,`data:`,`devtools:`,`file:`,`filesystem:`,`javascript:`];function ht(e){try{return mt.includes(new URL(e).protocol)}catch{return!1}}var gt=D.createContext(null);gt.displayName=`DataRouter`;var _t=D.createContext(null);_t.displayName=`DataRouterState`;var vt=D.createContext(!1);function yt(){return D.useContext(vt)}var bt=D.createContext({isTransitioning:!1});bt.displayName=`ViewTransition`;var xt=D.createContext(new Map);xt.displayName=`Fetchers`;var St=D.createContext(null);St.displayName=`Await`;var Ct=D.createContext(null);Ct.displayName=`Navigation`;var wt=D.createContext(null);wt.displayName=`Location`;var Tt=D.createContext({outlet:null,matches:[],isDataRoute:!1});Tt.displayName=`Route`;var Et=D.createContext(null);Et.displayName=`RouteError`;var Dt=`REACT_ROUTER_ERROR`,Ot=`REDIRECT`,kt=`ROUTE_ERROR_RESPONSE`;function At(e){if(e.startsWith(`${Dt}:${Ot}:{`))try{let t=JSON.parse(e.slice(28));if(typeof t==`object`&&t&&typeof t.status==`number`&&typeof t.statusText==`string`&&typeof t.location==`string`&&typeof t.reloadDocument==`boolean`&&typeof t.replace==`boolean`)return t}catch{}}function jt(e){if(e.startsWith(`${Dt}:${kt}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t==`object`&&t&&typeof t.status==`number`&&typeof t.statusText==`string`)return new nt(t.status,t.statusText,t.data)}catch{}}function Mt(e,{relative:t}={}){E(Nt(),`useHref() may be used only in the context of a <Router> component.`);let{basename:n,navigator:r}=D.useContext(Ct),{hash:i,pathname:a,search:o}=Rt(e,{relative:t}),s=a;return n!==`/`&&(s=a===`/`?n:Ze([n,a])),r.createHref({pathname:s,search:o,hash:i})}function Nt(){return D.useContext(wt)!=null}function Pt(){return E(Nt(),`useLocation() may be used only in the context of a <Router> component.`),D.useContext(wt).location}var Ft=`You should call navigate() in a React.useEffect(), not when your component is first rendered.`;function It(){let{isDataRoute:e}=D.useContext(Tt);return e?en():Lt()}function Lt(){E(Nt(),`useNavigate() may be used only in the context of a <Router> component.`);let e=D.useContext(gt),{basename:t,navigator:n}=D.useContext(Ct),{matches:r}=D.useContext(Tt),{pathname:i}=Pt(),a=JSON.stringify(Je(r)),o=D.useRef(!1);return D.useLayoutEffect(()=>{o.current=!0}),D.useCallback((r,s={})=>{if(he(o.current,Ft),!o.current)return;if(typeof r==`number`){n.go(r);return}let c=Ye(r,JSON.parse(a),i,s.relative===`path`);e==null&&t!==`/`&&(c.pathname=c.pathname===`/`?t:Ze([t,c.pathname])),dt(typeof r==`string`?r:ye(r),n.createHref(c),ct(n),`reject`),(s.replace?n.replace:n.push)(c,s.state,s)},[t,n,a,i,e])}D.createContext(null);function Rt(e,{relative:t}={}){let{matches:n}=D.useContext(Tt),{pathname:r}=Pt(),i=JSON.stringify(Je(n));return D.useMemo(()=>Ye(e,JSON.parse(i),r,t===`path`),[e,i,r,t])}function zt(e,t){return Bt(e,t)}function Bt(e,t,n){E(Nt(),`useRoutes() may be used only in the context of a <Router> component.`);let{navigator:r}=D.useContext(Ct),{matches:i}=D.useContext(Tt),a=i[i.length-1],o=a?a.params:{};a&&a.pathname;let s=a?a.pathnameBase:`/`;a&&a.route;let c=Pt(),l;if(t){let e=typeof t==`string`?be(t):t;E(s===`/`||e.pathname?.startsWith(s),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${s}" but pathname "${e.pathname}" was given in the \`location\` prop.`),l=e}else l=c;let u=l.pathname||`/`,d=u;if(s!==`/`){let e=s.replace(/^\//,``).split(`/`);d=`/`+u.replace(/^\//,``).split(`/`).slice(e.length).join(`/`)}let f=n&&n.state.matches.length?n.state.matches.map(e=>Object.assign(e,{route:n.manifest[e.route.id]||e.route})):O(e,{pathname:d}),p=qt(f&&f.map(e=>Object.assign({},e,{params:Object.assign({},o,e.params),pathname:Ze([s,r.encodeLocation?r.encodeLocation(e.pathname.replace(/%/g,`%25`).replace(/\?/g,`%3F`).replace(/#/g,`%23`)).pathname:e.pathname]),pathnameBase:e.pathnameBase===`/`?s:Ze([s,r.encodeLocation?r.encodeLocation(e.pathnameBase.replace(/%/g,`%25`).replace(/\?/g,`%3F`).replace(/#/g,`%23`)).pathname:e.pathnameBase])})),i,n);return t&&p?D.createElement(wt.Provider,{value:{location:{pathname:`/`,search:``,hash:``,state:null,key:`default`,mask:void 0,...l},navigationType:`POP`}},p):p}function Vt(){let e=A(),t=rt(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null;return D.createElement(D.Fragment,null,D.createElement(`h2`,null,`Unexpected Application Error!`),D.createElement(`h3`,{style:{fontStyle:`italic`}},t),n?D.createElement(`pre`,{style:{padding:`0.5rem`,backgroundColor:`rgba(200,200,200, 0.5)`}},n):null,null)}var Ht=D.createElement(Vt,null),Ut=class extends D.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static contextType=vt;static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!==`idle`&&e.revalidation===`idle`?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error===void 0?t.error:e.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error(`React Router caught the following error during render`,e)}render(){let e=this.state.error;if(this.context&&typeof e==`object`&&e&&`digest`in e&&typeof e.digest==`string`){let t=jt(e.digest);t&&(e=t)}let t=e===void 0?this.props.children:D.createElement(Tt.Provider,{value:this.props.routeContext},D.createElement(Et.Provider,{value:e,children:this.props.component}));return this.context?D.createElement(Gt,{error:e},t):t}},Wt=new WeakMap;function Gt({children:e,error:t}){let{basename:n,navigator:r}=D.useContext(Ct);if(typeof t==`object`&&t&&`digest`in t&&typeof t.digest==`string`){let e=At(t.digest);if(e){let i=Wt.get(t);if(i)throw i;let a=ot(e.location,n),o=a.absoluteURL||a.to;if(dt(e.location,o,ct(r),`allow-explicit`),ht(o))throw Error(`Invalid redirect location`);if(at&&!Wt.get(t)){if(a.isExternal||e.reloadDocument)window.location.href=o;else{let n=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(a.to,{replace:e.replace}));throw Wt.set(t,n),n}}return D.createElement(`meta`,{httpEquiv:`refresh`,content:`0;url=${o}`})}}return e}function Kt({routeContext:e,match:t,children:n}){let r=D.useContext(gt);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),D.createElement(Tt.Provider,{value:e},n)}function qt(e,t=[],n){let r=n?.state;if(e==null){if(!r)return null;if(r.errors)e=r.matches;else if(t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let i=e,a=r?.errors;if(a!=null){let e=i.findIndex(e=>e.route.id&&a?.[e.route.id]!==void 0);E(e>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(a).join(`,`)}`),i=i.slice(0,Math.min(i.length,e+1))}let o=!1,s=-1;if(n&&r){o=r.renderFallback;for(let e=0;e<i.length;e++){let t=i[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(s=e),t.route.id){let{loaderData:e,errors:a}=r,c=t.route.loader&&!e.hasOwnProperty(t.route.id)&&(!a||a[t.route.id]===void 0);if(t.route.lazy||c){n.isStatic&&(o=!0),i=s>=0?i.slice(0,s+1):[i[0]];break}}}}let c=n?.onError,l=r&&c?(e,t)=>{c(e,{location:r.location,params:r.matches?.[0]?.params??{},pattern:it(r.matches),errorInfo:t})}:void 0;return i.reduceRight((e,n,c)=>{let u,d=!1,f=null,p=null;r&&(u=a&&n.route.id?a[n.route.id]:void 0,f=n.route.errorElement||Ht,o&&(s<0&&c===0?(nn(`route-fallback`,!1,"No `HydrateFallback` element provided to render during initial hydration"),d=!0,p=null):s===c&&(d=!0,p=n.route.hydrateFallbackElement||null)));let m=t.concat(i.slice(0,c+1)),h=()=>{let t;return t=u?f:d?p:n.route.Component?D.createElement(n.route.Component,null):n.route.element?n.route.element:e,D.createElement(Kt,{match:n,routeContext:{outlet:e,matches:m,isDataRoute:r!=null},children:t})};return r&&(n.route.ErrorBoundary||n.route.errorElement||c===0)?D.createElement(Ut,{location:r.location,revalidation:r.revalidation,component:f,error:u,children:h(),routeContext:{outlet:null,matches:m,isDataRoute:!0},onError:l}):h()},null)}function Jt(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Yt(e){let t=D.useContext(gt);return E(t,Jt(e)),t}function Xt(e){let t=D.useContext(_t);return E(t,Jt(e)),t}function Zt(e){let t=D.useContext(Tt);return E(t,Jt(e)),t}function Qt(e){let t=Zt(e),n=t.matches[t.matches.length-1];return E(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function $t(){return Qt(`useRouteId`)}function A(){let e=D.useContext(Et),t=Xt(`useRouteError`),n=Qt(`useRouteError`);return e===void 0?t.errors?.[n]:e}function en(){let{router:e}=Yt(`useNavigate`),t=Qt(`useNavigate`),n=D.useRef(!1);return D.useLayoutEffect(()=>{n.current=!0}),D.useCallback(async(r,i={})=>{he(n.current,Ft),n.current&&(typeof r==`number`?await e.navigate(r):await e.navigate(r,{fromRouteId:t,...i}))},[e,t])}var tn={};function nn(e,t,n){!t&&!tn[e]&&(tn[e]=!0,he(!1,n))}D.memo(rn);function rn({routes:e,manifest:t,future:n,state:r,isStatic:i,onError:a}){return Bt(e,void 0,{manifest:t,state:r,isStatic:i,onError:a,future:n})}function an(e){E(!1,`A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.`)}function on({basename:e=`/`,children:t=null,location:n,navigationType:r=`POP`,navigator:i,static:a=!1,useTransitions:o}){E(!Nt(),`You cannot render a <Router> inside another <Router>. You should never have more than one in your app.`);let s=e.replace(/^\/*/,`/`),c=D.useMemo(()=>({basename:s,navigator:i,static:a,useTransitions:o,future:{}}),[s,i,a,o]);typeof n==`string`&&(n=be(n));let{pathname:l=`/`,search:u=``,hash:d=``,state:f=null,key:p=`default`,mask:m}=n,h=D.useMemo(()=>{let e=Ue(l,s);return e==null?null:{location:{pathname:e,search:u,hash:d,state:f,key:p,mask:m},navigationType:r}},[s,l,u,d,f,p,r,m]);return he(h!=null,`<Router basename="${s}"> is not able to match the URL "${l}${u}${d}" because it does not start with the basename, so the <Router> won't render anything.`),h==null?null:D.createElement(Ct.Provider,{value:c},D.createElement(wt.Provider,{children:t,value:h}))}function sn({children:e,location:t}){return zt(cn(e),t)}D.Component;function cn(e,t=[]){let n=[];return D.Children.forEach(e,(e,r)=>{if(!D.isValidElement(e))return;let i=[...t,r];if(e.type===D.Fragment){n.push.apply(n,cn(e.props.children,i));return}E(e.type===an,`[${typeof e.type==`string`?e.type:e.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`);let a=e.props;E(!a.index||!a.children,`An index route cannot have child routes.`);let o={id:a.id||i.join(`-`),caseSensitive:a.caseSensitive,element:a.element,Component:a.Component,index:a.index,path:a.path,middleware:a.middleware,loader:a.loader,action:a.action,hydrateFallbackElement:a.hydrateFallbackElement,HydrateFallback:a.HydrateFallback,errorElement:a.errorElement,ErrorBoundary:a.ErrorBoundary,shouldRevalidate:a.shouldRevalidate,handle:a.handle,lazy:a.lazy};a.children&&(o.children=cn(a.children,i)),n.push(o)}),n}var ln=`application/x-www-form-urlencoded`;function un(e){return typeof HTMLElement<`u`&&e instanceof HTMLElement}function dn(e){return un(e)&&e.tagName.toLowerCase()===`button`}function fn(e){return un(e)&&e.tagName.toLowerCase()===`form`}function pn(e){return un(e)&&e.tagName.toLowerCase()===`input`}function mn(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function hn(e,t){return e.button===0&&(!t||t===`_self`)&&!mn(e)}function gn(e=``){return new URLSearchParams(typeof e==`string`||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(e=>[n,e]):[[n,r]])},[]))}function _n(e,t){let n=gn(e);return t&&t.forEach((e,r)=>{n.has(r)||t.getAll(r).forEach(e=>{n.append(r,e)})}),n}var vn=null;function yn(){if(vn===null)try{new FormData(document.createElement(`form`),0),vn=!1}catch{vn=!0}return vn}var bn=new Set([`application/x-www-form-urlencoded`,`multipart/form-data`,`text/plain`]);function xn(e){return e!=null&&!bn.has(e)?(he(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${ln}"`),null):e}function Sn(e,t){let n,r,i,a,o;if(fn(e)){let o=e.getAttribute(`action`);r=o?Ue(o,t):null,n=e.getAttribute(`method`)||`get`,i=xn(e.getAttribute(`enctype`))||ln,a=new FormData(e)}else if(dn(e)||pn(e)&&(e.type===`submit`||e.type===`image`)){let o=e.form;if(o==null)throw Error(`Cannot submit a <button> or <input type="submit"> without a <form>`);let s=e.getAttribute(`formaction`)||o.getAttribute(`action`);if(r=s?Ue(s,t):null,n=e.getAttribute(`formmethod`)||o.getAttribute(`method`)||`get`,i=xn(e.getAttribute(`formenctype`))||xn(o.getAttribute(`enctype`))||ln,a=new FormData(o,e),!yn()){let{name:t,type:n,value:r}=e;if(n===`image`){let e=t?`${t}.`:``;a.append(`${e}x`,`0`),a.append(`${e}y`,`0`)}else t&&a.append(t,r)}}else if(un(e))throw Error(`Cannot submit element that is not <form>, <button>, or <input type="submit|image">`);else n=`get`,r=null,i=ln,o=e;return a&&i===`text/plain`&&(o=a,a=void 0),{action:r,method:n.toLowerCase(),encType:i,formData:a,body:o}}function Cn(e,t){if(e===!1||e==null)throw Error(t)}function wn(e,t){let n=typeof e==`string`?new URL(e,typeof window>`u`?`server://singlefetch/`:window.location.origin):e;return n.pathname=n.pathname.endsWith(`/`)?`${n.pathname}_.${t}`:`${n.pathname}.${t}`,n}async function Tn(e,t){if(e.id in t)return t[e.id];try{let n=await T(()=>import(e.module),[],import.meta.url);return t[e.id]=n,n}catch(t){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(t),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function En(e){return e!=null&&typeof e.page==`string`}function Dn(e){return e==null?!1:e.href==null?e.rel===`preload`&&typeof e.imageSrcSet==`string`&&typeof e.imageSizes==`string`:typeof e.rel==`string`&&typeof e.href==`string`}async function On(e,t,n){return Nn((await Promise.all(e.map(async e=>{let r=t.routes[e.route.id];if(r){let e=await Tn(r,n);return e.links?e.links():[]}return[]}))).flat(1).filter(Dn).filter(e=>e.rel===`stylesheet`||e.rel===`preload`).map(e=>e.rel===`stylesheet`?{...e,rel:`prefetch`,as:`style`}:{...e,rel:`prefetch`}))}function kn(e,t,n,r,i,a){let o=(e,t)=>!n[t]||e.route.id!==n[t].route.id,s=(e,t)=>n[t].pathname!==e.pathname||n[t].route.path?.endsWith(`*`)&&n[t].params[`*`]!==e.params[`*`];return a===`assets`?t.filter((e,t)=>o(e,t)||s(e,t)):a===`data`?t.filter((t,a)=>{let c=r.routes[t.route.id];if(!c||!c.hasLoader)return!1;if(o(t,a)||s(t,a))return!0;if(t.route.shouldRevalidate){let r=t.route.shouldRevalidate({currentUrl:new URL(i.pathname+i.search+i.hash,window.origin),currentParams:n[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:t.params,defaultShouldRevalidate:!0});if(typeof r==`boolean`)return r}return!0}):[]}function An(e,t,{includeHydrateFallback:n}={}){return jn(e.map(e=>{let r=t.routes[e.route.id];if(!r)return[];let i=[r.module];return r.clientActionModule&&(i=i.concat(r.clientActionModule)),r.clientLoaderModule&&(i=i.concat(r.clientLoaderModule)),n&&r.hydrateFallbackModule&&(i=i.concat(r.hydrateFallbackModule)),r.imports&&(i=i.concat(r.imports)),i}).flat(1))}function jn(e){return[...new Set(e)]}function Mn(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function Nn(e,t){let n=new Set,r=new Set(t);return e.reduce((e,i)=>{if(t&&!En(i)&&i.as===`script`&&i.href&&r.has(i.href))return e;let a=JSON.stringify(Mn(i));return n.has(a)||(n.add(a),e.push({key:a,link:i})),e},[])}function Pn(){let e=D.useContext(gt);return Cn(e,`You must render this element inside a <DataRouterContext.Provider> element`),e}function Fn(){let e=D.useContext(_t);return Cn(e,`You must render this element inside a <DataRouterStateContext.Provider> element`),e}var In=D.createContext(void 0);In.displayName=`FrameworkContext`;function Ln(){let e=D.useContext(In);return Cn(e,`You must render this element inside a <HydratedRouter> element`),e}function Rn(e,t){let n=D.useContext(In),[r,i]=D.useState(!1),[a,o]=D.useState(!1),{onFocus:s,onBlur:c,onMouseEnter:l,onMouseLeave:u,onTouchStart:d}=t,f=D.useRef(null);D.useEffect(()=>{if(e===`render`&&o(!0),e===`viewport`){let e=new IntersectionObserver(e=>{e.forEach(e=>{o(e.isIntersecting)})},{threshold:.5});return f.current&&e.observe(f.current),()=>{e.disconnect()}}},[e]),D.useEffect(()=>{if(r){let e=setTimeout(()=>{o(!0)},100);return()=>{clearTimeout(e)}}},[r]);let p=()=>{i(!0)},m=()=>{i(!1),o(!1)};return n?e===`intent`?[a,f,{onFocus:zn(s,p),onBlur:zn(c,m),onMouseEnter:zn(l,p),onMouseLeave:zn(u,m),onTouchStart:zn(d,p)}]:[a,f,{}]:[!1,f,{}]}function zn(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function Bn({page:e,...t}){let n=yt(),{nonce:r}=Ln(),{router:i}=Pn(),a=D.useMemo(()=>O(i.routes,e,i.basename),[i.routes,e,i.basename]);return a?(t.nonce==null&&r&&(t={...t,nonce:r}),n?D.createElement(Hn,{page:e,matches:a,...t}):D.createElement(Un,{page:e,matches:a,...t})):null}function Vn(e){let{manifest:t,routeModules:n}=Ln(),[r,i]=D.useState([]);return D.useEffect(()=>{let r=!1;return On(e,t,n).then(e=>{r||i(e)}),()=>{r=!0}},[e,t,n]),r}function Hn({page:e,matches:t,...n}){let r=Pt(),i=D.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let n=wn(e,`rsc`),i=!1,a=[];for(let e of t)typeof e.route.shouldRevalidate==`function`?i=!0:a.push(e.route.id);return i&&a.length>0&&n.searchParams.set(`_routes`,a.join(`,`)),[n.pathname+n.search]},[e,r,t]);return D.createElement(D.Fragment,null,i.map(e=>D.createElement(`link`,{key:e,rel:`prefetch`,as:`fetch`,href:e,...n})))}function Un({page:e,matches:t,...n}){let r=Pt(),{manifest:i,routeModules:a}=Ln(),{loaderData:o,matches:s}=Fn(),c=D.useMemo(()=>kn(e,t,s,i,r,`data`),[e,t,s,i,r]),l=D.useMemo(()=>kn(e,t,s,i,r,`assets`),[e,t,s,i,r]),u=D.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let n=new Set,s=!1;if(t.forEach(e=>{let t=i.routes[e.route.id];!t||!t.hasLoader||(!c.some(t=>t.route.id===e.route.id)&&e.route.id in o&&a[e.route.id]?.shouldRevalidate||t.hasClientLoader?s=!0:n.add(e.route.id))}),n.size===0)return[];let l=wn(e,`data`);return s&&n.size>0&&l.searchParams.set(`_routes`,t.filter(e=>n.has(e.route.id)).map(e=>e.route.id).join(`,`)),[l.pathname+l.search]},[o,r,i,c,t,e,a]),d=D.useMemo(()=>An(l,i),[l,i]),f=Vn(l);return D.createElement(D.Fragment,null,u.map(e=>D.createElement(`link`,{key:e,rel:`prefetch`,as:`fetch`,href:e,...n})),d.map(e=>D.createElement(`link`,{key:e,rel:`modulepreload`,href:e,...n})),f.map(({key:e,link:t})=>D.createElement(`link`,{key:e,nonce:n.nonce,...t,crossOrigin:t.crossOrigin??n.crossOrigin})))}function Wn(...e){return t=>{e.forEach(e=>{typeof e==`function`?e(t):e!=null&&(e.current=t)})}}var Gn=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0;try{Gn&&(window.__reactRouterVersion=`8`)}catch{}function Kn({basename:e,children:t,useTransitions:n,window:r}){let i=D.useRef(null);i.current??=me({window:r,v5Compat:!0});let a=i.current,[o,s]=D.useState({action:a.action,location:a.location}),c=D.useCallback(e=>{n===!1?s(e):D.startTransition(()=>s(e))},[n]);return D.useLayoutEffect(()=>a.listen(c),[a,c]),D.createElement(on,{basename:e,children:t,location:o.location,navigationType:o.action,navigator:a,useTransitions:n})}var qn=D.forwardRef(function({onClick:e,discover:t=`render`,prefetch:n=`none`,relative:r,reloadDocument:i,replace:a,mask:o,state:s,target:c,to:l,preventScrollReset:u,viewTransition:d,defaultShouldRevalidate:f,...p},m){let{basename:h,navigator:g,useTransitions:_}=D.useContext(Ct),v=typeof l==`string`&&le.test(l),y=ot(l,h);l=y.to;let b=Mt(l,{relative:r}),ee=Pt(),x=null;if(o){let e=Ye(o,[],ee.mask?ee.mask.pathname:`/`,!0);h!==`/`&&(e.pathname=e.pathname===`/`?h:Ze([h,e.pathname])),x=g.createHref(e)}let[S,te,ne]=Rn(n,p),C=Qn(l,{replace:a,mask:o,state:s,target:c,preventScrollReset:u,relative:r,viewTransition:d,defaultShouldRevalidate:f,useTransitions:_});function re(t){e&&e(t),t.defaultPrevented||C(t)}let w=!(y.isExternal||i),ie=D.createElement(`a`,{...p,...ne,href:(w?x:void 0)||y.absoluteURL||b,onClick:w?re:e,ref:Wn(m,te),target:c,"data-discover":!v&&t===`render`?`true`:void 0});return S&&!v?D.createElement(D.Fragment,null,ie,D.createElement(Bn,{page:b})):ie});qn.displayName=`Link`;var Jn=D.forwardRef(function({"aria-current":e=`page`,caseSensitive:t=!1,className:n=``,end:r=!1,style:i,to:a,viewTransition:o,children:s,...c},l){let u=Rt(a,{relative:c.relative}),d=Pt(),f=D.useContext(_t),{navigator:p,basename:m}=D.useContext(Ct),h=f!=null&&ir(u)&&o===!0,g=p.encodeLocation?p.encodeLocation(u).pathname:u.pathname,_=d.pathname,v=f&&f.navigation&&f.navigation.location?f.navigation.location.pathname:null;t||(_=_.toLowerCase(),v=v?v.toLowerCase():null,g=g.toLowerCase()),v&&m&&(v=Ue(v,m)||v);let y=g!==`/`&&g.endsWith(`/`)?g.length-1:g.length,b=_===g||!r&&_.startsWith(g)&&_.charAt(y)===`/`,ee=v!=null&&(v===g||!r&&v.startsWith(g)&&v.charAt(y)===`/`),x={isActive:b,isPending:ee,isTransitioning:h},S=b?e:void 0,te;te=typeof n==`function`?n(x):[n,b?`active`:null,ee?`pending`:null,h?`transitioning`:null].filter(Boolean).join(` `);let ne=typeof i==`function`?i(x):i;return D.createElement(qn,{...c,"aria-current":S,className:te,ref:l,style:ne,to:a,viewTransition:o},typeof s==`function`?s(x):s)});Jn.displayName=`NavLink`;var Yn=D.forwardRef(({discover:e=`render`,fetcherKey:t,navigate:n,reloadDocument:r,replace:i,state:a,method:o=`get`,action:s,onSubmit:c,relative:l,preventScrollReset:u,viewTransition:d,defaultShouldRevalidate:f,...p},m)=>{let{useTransitions:h}=D.useContext(Ct),g=nr(),_=rr(s,{relative:l}),v=o.toLowerCase()===`get`?`get`:`post`,y=typeof s==`string`&&le.test(s);return D.createElement(`form`,{ref:m,method:v,action:_,onSubmit:r?c:e=>{if(c&&c(e),e.defaultPrevented)return;e.preventDefault();let r=e.nativeEvent.submitter,s=r?.getAttribute(`formmethod`)||o,p=()=>g(r||e.currentTarget,{fetcherKey:t,method:s,navigate:n,replace:i,state:a,relative:l,preventScrollReset:u,viewTransition:d,defaultShouldRevalidate:f});h&&n!==!1?D.startTransition(()=>p()):p()},...p,"data-discover":!y&&e===`render`?`true`:void 0})});Yn.displayName=`Form`;function Xn(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Zn(e){let t=D.useContext(gt);return E(t,Xn(e)),t}function Qn(e,{target:t,replace:n,mask:r,state:i,preventScrollReset:a,relative:o,viewTransition:s,defaultShouldRevalidate:c,useTransitions:l}={}){let u=It(),d=Pt(),f=Rt(e,{relative:o});return D.useCallback(p=>{if(hn(p,t)){p.preventDefault();let t=n===void 0?ye(d)===ye(f):n,m=()=>u(e,{replace:t,mask:r,state:i,preventScrollReset:a,relative:o,viewTransition:s,defaultShouldRevalidate:c});l?D.startTransition(()=>m()):m()}},[d,u,f,n,r,i,t,e,a,o,s,c,l])}function $n(e){he(typeof URLSearchParams<`u`,"You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let t=D.useRef(gn(e)),n=D.useRef(!1),r=Pt(),i=D.useMemo(()=>_n(r.search,n.current?null:t.current),[r.search]),a=It();return[i,D.useCallback((e,t)=>{let r=gn(typeof e==`function`?e(new URLSearchParams(i)):e);n.current=!0,a(`?`+r,t)},[a,i])]}var er=0,tr=()=>`__${String(++er)}__`;function nr(){let{router:e}=Zn(`useSubmit`),{basename:t}=D.useContext(Ct),n=$t(),r=e.fetch,i=e.navigate;return D.useCallback(async(e,a={})=>{let{action:o,method:s,encType:c,formData:l,body:u}=Sn(e,t);a.navigate===!1?await r(a.fetcherKey||tr(),n,a.action||o,{defaultShouldRevalidate:a.defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,relative:a.relative,formData:l,body:u,formMethod:a.method||s,formEncType:a.encType||c,flushSync:a.flushSync}):await i(a.action||o,{defaultShouldRevalidate:a.defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,relative:a.relative,formData:l,body:u,formMethod:a.method||s,formEncType:a.encType||c,replace:a.replace,state:a.state,fromRouteId:n,flushSync:a.flushSync,viewTransition:a.viewTransition})},[r,i,t,n])}function rr(e,{relative:t}={}){let{basename:n}=D.useContext(Ct),r=D.useContext(Tt);E(r,`useFormAction must be used inside a RouteContext`);let[i]=r.matches.slice(-1),a={...Rt(e||`.`,{relative:t})},o=Pt();if(e==null){a.search=o.search;let e=new URLSearchParams(a.search),t=e.getAll(`index`);if(t.some(e=>e===``)){e.delete(`index`),t.filter(e=>e).forEach(t=>e.append(`index`,t));let n=e.toString();a.search=n?`?${n}`:``}}return(!e||e===`.`)&&i.route.index&&(a.search=a.search?a.search.replace(/^\?/,`?index&`):`?index`),n!==`/`&&(a.pathname=a.pathname===`/`?n:Ze([n,a.pathname])),ye(a)}function ir(e,{relative:t}={}){let n=D.useContext(bt);E(n!=null,"`useViewTransitionState` must be used within `react-router/dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=Zn(`useViewTransitionState`),i=Rt(e,{relative:t});if(!n.isTransitioning)return!1;let a=Ue(n.currentLocation.pathname,r)||n.currentLocation.pathname,o=Ue(n.nextLocation.pathname,r)||n.nextLocation.pathname;return ze(i.pathname,o)!=null||ze(i.pathname,a)!=null}var ar=ie((e=>{function t(e,t){var n=e.length;e.push(t);a:for(;0<n;){var r=n-1>>>1,a=e[r];if(0<i(a,t))e[r]=t,e[n]=a,n=r;else break a}}function n(e){return e.length===0?null:e[0]}function r(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;a:for(var r=0,a=e.length,o=a>>>1;r<o;){var s=2*(r+1)-1,c=e[s],l=s+1,u=e[l];if(0>i(c,n))l<a&&0>i(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(l<a&&0>i(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}if(e.unstable_now=void 0,typeof performance==`object`&&typeof performance.now==`function`){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var c=[],l=[],u=1,d=null,f=3,p=!1,m=!1,h=!1,g=!1,_=typeof setTimeout==`function`?setTimeout:null,v=typeof clearTimeout==`function`?clearTimeout:null,y=typeof setImmediate<`u`?setImmediate:null;function b(e){for(var i=n(l);i!==null;){if(i.callback===null)r(l);else if(i.startTime<=e)r(l),i.sortIndex=i.expirationTime,t(c,i);else break;i=n(l)}}function ee(e){if(h=!1,b(e),!m){if(n(c)!==null)m=!0,x||(x=!0,w());else{var t=n(l);t!==null&&oe(ee,t.startTime-e)}}}var x=!1,S=-1,te=5,ne=-1;function C(){return g?!0:!(e.unstable_now()-ne<te)}function re(){if(g=!1,x){var t=e.unstable_now();ne=t;var i=!0;try{a:{m=!1,h&&(h=!1,v(S),S=-1),p=!0;var a=f;try{b:{for(b(t),d=n(c);d!==null&&!(d.expirationTime>t&&C());){var o=d.callback;if(typeof o==`function`){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=t);if(t=e.unstable_now(),typeof s==`function`){d.callback=s,b(t),i=!0;break b}d===n(c)&&r(c),b(t)}else r(c);d=n(c)}if(d!==null)i=!0;else{var u=n(l);u!==null&&oe(ee,u.startTime-t),i=!1}}break a}finally{d=null,f=a,p=!1}i=void 0}}finally{i?w():x=!1}}}var w;if(typeof y==`function`)w=function(){y(re)};else if(typeof MessageChannel<`u`){var ie=new MessageChannel,ae=ie.port2;ie.port1.onmessage=re,w=function(){ae.postMessage(null)}}else w=function(){_(re,0)};function oe(t,n){S=_(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error(`forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported`):te=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},e.unstable_requestPaint=function(){g=!0},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},e.unstable_scheduleCallback=function(r,i,a){var o=e.unstable_now();switch(typeof a==`object`&&a?(a=a.delay,a=typeof a==`number`&&0<a?o+a:o):a=o,r){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return s=a+s,r={id:u++,callback:i,priorityLevel:r,startTime:a,expirationTime:s,sortIndex:-1},a>o?(r.sortIndex=a,t(l,r),n(c)===null&&r===n(l)&&(h?(v(S),S=-1):h=!0,oe(ee,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,x||(x=!0,w()))),r},e.unstable_shouldYield=C,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),or=ie(((e,t)=>{t.exports=ar()})),sr=ie((e=>{var t=or(),n=te(),r=m();function i(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function a(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function o(e){for(var t=e,n=t;n&&!n.alternate;)t=n,t.flags&4098&&(e=t.return),n=t.return;for(;t.return;)t=t.return;return t.tag===3?e:null}function s(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function c(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function l(e){if(o(e)!==e)throw Error(i(188))}function u(e){var t=e.alternate;if(!t){if(t=o(e),t===null)throw Error(i(188));return t===e?e:null}for(var n=e,r=t;;){var a=n.return;if(a===null)break;var s=a.alternate;if(s===null){if(r=a.return,r!==null){n=r;continue}break}if(a.child===s.child){for(s=a.child;s;){if(s===n)return l(a),e;if(s===r)return l(a),t;s=s.sibling}throw Error(i(188))}if(n.return!==r.return)n=a,r=s;else{for(var c=!1,u=a.child;u;){if(u===n){c=!0,n=a,r=s;break}if(u===r){c=!0,r=a,n=s;break}u=u.sibling}if(!c){for(u=s.child;u;){if(u===n){c=!0,n=s,r=a;break}if(u===r){c=!0,r=s,n=a;break}u=u.sibling}if(!c)throw Error(i(189))}}if(n.alternate!==r)throw Error(i(190))}if(n.tag!==3)throw Error(i(188));return n.stateNode.current===n?e:t}function d(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=d(e),t!==null)return t;e=e.sibling}return null}function f(e,t,n,r,i,a){for(;e!==null;){if((e.tag===5||e.tag===27||e.tag===6)&&n(e,r,i,a)||(e.tag!==22||e.memoizedState===null)&&(t||e.tag!==5&&e.tag!==27)&&f(e.child,t,n,r,i,a))return!0;e=e.sibling}return!1}function p(e){for(e=e.return;e!==null;){if(e.tag===3||e.tag===5||e.tag===27)return e;e=e.return}return null}function h(e){var t=!1;for(e=e.return;e!==null&&(e.tag===4&&(t=!0),e.tag!==3&&e.tag!==5&&e.tag!==27);)e=e.return;return t}function g(e){var t=[null,null],n=p(e);return n===null||_(t,e,n.child,{foundSelf:!1}),t}function _(e,t,n,r){for(;n!==null;){if(n===t)r.foundSelf=!0;else if(n.tag===5||n.tag===27||n.tag===6){if(r.foundSelf)return e[1]=n,!0;e[0]=n}else if((n.tag!==22||n.memoizedState===null)&&_(e,t,n.child,r))return!0;n=n.sibling}return!1}function v(e){switch(e.tag){case 5:case 27:case 6:return e.stateNode;case 3:return e.stateNode.containerInfo;default:throw Error(i(559))}}var y=null,b=null;function ee(e,t,n){return e===n||e===t&&(y=e,!0)}function x(e,t,n){return e===n?(b=e,!1):e===t&&(b!==null&&(y=e),!0)}function S(e){if(e===null)return null;do e=e===null?null:e.return;while(e&&e.tag!==5&&e.tag!==27&&e.tag!==3);return e||null}function ne(e,t,n){for(var r=0,i=e;i;i=n(i))r++;i=0;for(var a=t;a;a=n(a))i++;for(;0<r-i;)e=n(e),r--;for(;0<i-r;)t=n(t),i--;for(;r--;){if(e===t||t!==null&&e===t.alternate)return e;e=n(e),t=n(t)}return null}var C=Object.assign,re=Symbol.for(`react.element`),w=Symbol.for(`react.transitional.element`),ie=Symbol.for(`react.portal`),ae=Symbol.for(`react.fragment`),oe=Symbol.for(`react.strict_mode`),T=Symbol.for(`react.profiler`),se=Symbol.for(`react.consumer`),ce=Symbol.for(`react.context`),le=Symbol.for(`react.forward_ref`),ue=Symbol.for(`react.suspense`),de=Symbol.for(`react.suspense_list`),fe=Symbol.for(`react.memo`),pe=Symbol.for(`react.lazy`),me=Symbol.for(`react.activity`),E=Symbol.for(`react.legacy_hidden`),he=Symbol.for(`react.memo_cache_sentinel`),ge=Symbol.for(`react.view_transition`),_e=Symbol.for(`react.recoverable`),ve=Symbol.iterator;function ye(e){return typeof e!=`object`||!e?null:(e=ve&&e[ve]||e[`@@iterator`],typeof e==`function`?e:null)}var be=Symbol.for(`react.client.reference`);function xe(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===be?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case ae:return`Fragment`;case T:return`Profiler`;case oe:return`StrictMode`;case ue:return`Suspense`;case de:return`SuspenseList`;case me:return`Activity`;case ge:return`ViewTransition`}if(typeof e==`object`)switch(e.$$typeof){case ie:return`Portal`;case ce:return e.displayName||`Context`;case se:return(e._context.displayName||`Context`)+`.Consumer`;case le:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case fe:return t=e.displayName||null,t===null?xe(e.type)||`Memo`:t;case pe:t=e._payload,e=e._init;try{return xe(e(t))}catch{}}return null}var Se=Array.isArray,D=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,O=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Ce={pending:!1,data:null,method:null,action:null},we=[],Te=-1;function Ee(e){return{current:e}}function De(e){0>Te||(e.current=we[Te],we[Te]=null,Te--)}function k(e,t){Te++,we[Te]=e.current,e.current=t}var Oe=Ee(null),ke=Ee(null),Ae=Ee(null),je=Ee(null);function Me(e,t){switch(k(Ae,t),k(ke,e),k(Oe,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?dp(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=dp(t),e=fp(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}De(Oe),k(Oe,e)}function Ne(){De(Oe),De(ke),De(Ae)}function Pe(e){var t=e.memoizedState;t!==null&&(ch._currentValue=t.memoizedState,k(je,e)),t=Oe.current;var n=fp(t,e.type);t!==n&&(k(ke,e),k(Oe,n))}function Fe(e){ke.current===e&&(De(Oe),De(ke)),je.current===e&&(De(je),ch._currentValue=Ce)}var Ie,Le;function Re(e){if(Ie===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);Ie=t&&t[1]||``,Le=-1<e.stack.indexOf(`
|
|
3
|
-
at`)?` (<anonymous>)`:-1<e.stack.indexOf(`@`)?`@unknown:0:0`:``}return`
|
|
4
|
-
`+Ie+e+Le}var ze=!1;function Be(e,t){if(!e||ze)return``;ze=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==`object`&&Reflect.construct){try{Reflect.construct(n,[])}catch(e){var r=e}Reflect.construct(e,[],n)}else{try{n.call()}catch(e){r=e}n=!1;try{var i=Object.getOwnPropertyDescriptor(e.prototype,`props`);Object.defineProperty(e.prototype,"props",{configurable:!0,set:function(){throw Error()}}),n=!0,new e}finally{n&&(i===void 0?delete e.prototype.props:Object.defineProperty(e.prototype,"props",i))}}}else{try{throw Error()}catch(e){r=e}(n=e())&&typeof n.catch==`function`&&n.catch(function(){})}}catch(e){if(e&&r&&typeof e.stack==`string`)return[e.stack,r.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName=`DetermineComponentFrameRoot`;var i=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,`name`);i&&i.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:`DetermineComponentFrameRoot`});var a=r.DetermineComponentFrameRoot(),o=a[0],s=a[1];if(o&&s){var c=o.split(`
|
|
5
|
-
`),l=s.split(`
|
|
6
|
-
`);for(i=r=0;r<c.length&&!c[r].includes(`DetermineComponentFrameRoot`);)r++;for(;i<l.length&&!l[i].includes(`DetermineComponentFrameRoot`);)i++;if(r===c.length||i===l.length)for(r=c.length-1,i=l.length-1;1<=r&&0<=i&&c[r]!==l[i];)i--;for(;1<=r&&0<=i;r--,i--)if(c[r]!==l[i]){if(r!==1||i!==1)do if(r--,i--,0>i||c[r]!==l[i]){var u=`
|
|
7
|
-
`+c[r].replace(` at new `,` at `);return e.displayName&&u.includes(`<anonymous>`)&&(u=u.replace(`<anonymous>`,e.displayName)),u}while(1<=r&&0<=i);break}}}finally{ze=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:``)?Re(n):``}function Ve(e,t){switch(e.tag){case 26:case 27:case 5:return Re(e.type);case 16:return Re(`Lazy`);case 13:return e.child!==t&&t!==null?Re(`Suspense Fallback`):Re(`Suspense`);case 19:return Re(`SuspenseList`);case 0:case 15:return Be(e.type,!1);case 11:return Be(e.type.render,!1);case 1:return Be(e.type,!0);case 31:return Re(`Activity`);case 30:return Re(`ViewTransition`);default:return``}}function He(e){try{var t=``,n=null;do t+=Ve(e,n),n=e,e=e.return;while(e);return t}catch(e){return`
|
|
8
|
-
Error generating stack: `+e.message+`
|
|
9
|
-
`+e.stack}}var Ue=Object.prototype.hasOwnProperty,We=t.unstable_scheduleCallback,Ge=t.unstable_cancelCallback,Ke=t.unstable_shouldYield,qe=t.unstable_requestPaint,Je=t.unstable_now,Ye=t.unstable_getCurrentPriorityLevel,Xe=t.unstable_ImmediatePriority,Ze=t.unstable_UserBlockingPriority,Qe=t.unstable_NormalPriority,$e=t.unstable_LowPriority,et=t.unstable_IdlePriority,tt=t.log,nt=t.unstable_setDisableYieldValue,rt=null,it=null;function at(e){if(typeof tt==`function`&&nt(e),it&&typeof it.setStrictMode==`function`)try{it.setStrictMode(rt,e)}catch{}}var ot=Math.clz32?Math.clz32:lt,st=Math.log,ct=Math.LN2;function lt(e){return e>>>=0,e===0?32:31-(st(e)/ct|0)|0}var ut=256,dt=262144,ft=4194304;function pt(e){var t=e&42;if(t!==0)return t;switch(e&-e){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:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&-e;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function mt(e,t,n){var r=e.pendingLanes;if(r===0)return 0;var i=0,a=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var s=r&134217727;return s===0?(s=r&~a,s===0?o===0?n||(n=r&~e,n!==0&&(i=pt(n))):i=pt(o):i=pt(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=pt(n))):i=pt(o)):i=pt(r)),i===0?0:t!==0&&t!==i&&(t&a)===0&&(a=i&-i,n=t&-t,a>=n||a===32&&n&4194048)?t:i}function ht(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function gt(e,t){t&8&&(t|=t&32);var n=e.entangledLanes;if(n!==0)for(e=e.entanglements,n&=t;0<n;){var r=31-ot(n),i=1<<r;t|=e[r],n&=~i}return t}function _t(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32: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 t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function vt(){var e=ft;return ft<<=1,!(ft&62914560)&&(ft=4194304),e}function yt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function bt(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function xt(e,t,n,r,i,a){var o=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var s=e.entanglements,c=e.expirationTimes,l=e.hiddenUpdates;for(n=o&~n;0<n;){var u=31-ot(n),d=1<<u;s[u]=0,c[u]=-1;var f=l[u];if(f!==null)for(l[u]=null,u=0;u<f.length;u++){var p=f[u];p!==null&&(p.lane&=-536870913)}n&=~d}r!==0&&St(e,r,0),a!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=a&~(o&~t))}function St(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-ot(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|n&261930}function Ct(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-ot(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}function wt(e,t){var n=t&-t;return n=n&42?1:Tt(n),(n&(e.suspendedLanes|t))===0?n:0}function Tt(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;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:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Et(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function Dt(){var e=O.p;return e===0?(e=window.event,e===void 0?32:wh(e.type)):e}function Ot(e,t){var n=O.p;try{return O.p=e,t()}finally{O.p=n}}var kt=Math.random().toString(36).slice(2),At=`__reactFiber$`+kt,jt=`__reactProps$`+kt,Mt=`__reactContainer$`+kt,Nt=`__reactEvents$`+kt,Pt=`__reactListeners$`+kt,Ft=`__reactHandles$`+kt,It=`__reactResources$`+kt,Lt=`__reactMarker$`+kt,Rt=`__reactLoad$`+kt;function zt(e){delete e[At],delete e[jt],delete e[Pt],delete e[Ft]}function Bt(e){var t;if(t=e[At])return t;for(var n=e.parentNode;n;){if(t=n[Mt]||n[At]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=pm(e);e!==null;){if(n=e[At])return n;e=pm(e)}return t}e=n,n=e.parentNode}return null}function Vt(e){if(e=e[At]||e[Mt]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Ht(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(i(33))}function Ut(e){var t=e[It];return t||=e[It]={hoistableStyles:new Map,hoistableScripts:new Map},t}function Wt(e){e[Lt]=!0}function Gt(e){e[Rt]=void 0}var Kt=new Set,qt={};function Jt(e,t){Yt(e,t),Yt(e+`Capture`,t)}function Yt(e,t){for(qt[e]=t,e=0;e<t.length;e++)Kt.add(t[e])}var Xt=RegExp(`^[: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]*$`),Zt={},Qt={};function $t(e){return Ue.call(Qt,e)?!0:Ue.call(Zt,e)?!1:Xt.test(e)?Qt[e]=!0:(Zt[e]=!0,!1)}var A=!1;function en(){var e=A;return A=!1,e}function tn(e,t,n){if($t(t)){if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:e.removeAttribute(t);return;case`boolean`:var r=t.toLowerCase().slice(0,5);if(r!==`data-`&&r!==`aria-`){e.removeAttribute(t);return}}e.setAttribute(t,n)}}}function nn(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(t);return}e.setAttribute(t,n)}}function rn(e,t,n,r){if(r===null)e.removeAttribute(n);else{switch(typeof r){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(n);return}e.setAttributeNS(t,n,r)}}function an(e){switch(typeof e){case`bigint`:case`boolean`:case`number`:case`string`:case`undefined`:return e;case`object`:return e;default:return``}}function on(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()===`input`&&(t===`checkbox`||t===`radio`)}function sn(e,t,n){var r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&r!==void 0&&typeof r.get==`function`&&typeof r.set==`function`){var i=r.get,a=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){n=``+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(e){n=``+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function cn(e){if(!e._valueTracker){var t=on(e)?`checked`:`value`;e._valueTracker=sn(e,t,``+e[t])}}function ln(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r=``;return e&&(r=on(e)?e.checked?`true`:`false`:e.value),e=r,e!==n&&(t.setValue(e),!0)}var un=/[\n"\\]/g;function dn(e){return e.replace(un,function(e){return`\\`+e.charCodeAt(0).toString(16)+` `})}function fn(e,t,n,r,i,a,o,s){e.name=``,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`?e.type=o:e.removeAttribute(`type`),t==null?o!==`submit`&&o!==`reset`||e.removeAttribute(`value`):o===`number`?(t===0&&e.value===``||e.value!=t)&&(e.value=``+an(t)):e.value!==``+an(t)&&(e.value=``+an(t)),t==null?n==null?r!=null&&e.removeAttribute(`value`):mn(e,an(n)):o===`number`&&e.value==t?mn(e,an(e.value)):mn(e,an(t)),i==null&&a!=null&&(e.defaultChecked=!!a),i!=null&&(e.checked=i&&typeof i!=`function`&&typeof i!=`symbol`),s!=null&&typeof s!=`function`&&typeof s!=`symbol`&&typeof s!=`boolean`?e.name=``+an(s):e.removeAttribute(`name`)}function pn(e,t,n,r,i,a,o,s){if(a!=null&&typeof a!=`function`&&typeof a!=`symbol`&&typeof a!=`boolean`&&(e.type=a),t!=null||n!=null){if(!(a!==`submit`&&a!==`reset`||t!=null)){cn(e);return}n=n==null?``:``+an(n),t=t==null?n:``+an(t),s||t===e.value||(e.value=t),e.defaultValue=t}r??=i,r=typeof r!=`function`&&typeof r!=`symbol`&&!!r,e.checked=s?e.checked:!!r,e.defaultChecked=!!r,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`&&(e.name=o),cn(e)}function mn(e,t){e.defaultValue!==``+t&&(e.defaultValue=``+t)}function hn(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t[`$`+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty(`$`+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=``+an(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function gn(e,t,n){if(t!=null&&(t=``+an(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n==null?``:``+an(n)}function _n(e,t,n,r){if(t==null){if(r!=null){if(n!=null)throw Error(i(92));if(Se(r)){if(1<r.length)throw Error(i(93));r=r[0]}n=r}n??=``,t=n}n=an(t),e.defaultValue=n,r=e.textContent,r===n&&r!==``&&r!==null&&(e.value=r),cn(e)}function vn(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var yn=new Set(`animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp`.split(` `));function bn(e,t,n){var r=t.indexOf(`--`)===0;n==null||typeof n==`boolean`||n===``?r?e.setProperty(t,``):t===`float`?e.cssFloat=``:e[t]=``:r?e.setProperty(t,n):typeof n!=`number`||n===0||yn.has(t)?t===`float`?e.cssFloat=n:e[t]=(``+n).trim():e[t]=n+`px`}function xn(e,t,n){if(t!=null&&typeof t!=`object`)throw Error(i(62));if(e=e.style,n!=null){for(var r in n)!n.hasOwnProperty(r)||t!=null&&t.hasOwnProperty(r)||(r.indexOf(`--`)===0?e.setProperty(r,``):r===`float`?e.cssFloat=``:e[r]=``,A=!0);for(var a in t)r=t[a],t.hasOwnProperty(a)&&n[a]!==r&&(bn(e,a,r),A=!0)}else for(var o in t)t.hasOwnProperty(o)&&bn(e,o,t[o])}function Sn(e){if(e.indexOf(`-`)===-1)return!1;switch(e){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 Cn=new Map([[`acceptCharset`,`accept-charset`],[`htmlFor`,`for`],[`httpEquiv`,`http-equiv`],[`crossOrigin`,`crossorigin`],[`accentHeight`,`accent-height`],[`alignmentBaseline`,`alignment-baseline`],[`arabicForm`,`arabic-form`],[`baselineShift`,`baseline-shift`],[`capHeight`,`cap-height`],[`clipPath`,`clip-path`],[`clipRule`,`clip-rule`],[`colorInterpolation`,`color-interpolation`],[`colorInterpolationFilters`,`color-interpolation-filters`],[`colorProfile`,`color-profile`],[`colorRendering`,`color-rendering`],[`dominantBaseline`,`dominant-baseline`],[`enableBackground`,`enable-background`],[`fillOpacity`,`fill-opacity`],[`fillRule`,`fill-rule`],[`floodColor`,`flood-color`],[`floodOpacity`,`flood-opacity`],[`fontFamily`,`font-family`],[`fontSize`,`font-size`],[`fontSizeAdjust`,`font-size-adjust`],[`fontStretch`,`font-stretch`],[`fontStyle`,`font-style`],[`fontVariant`,`font-variant`],[`fontWeight`,`font-weight`],[`glyphName`,`glyph-name`],[`glyphOrientationHorizontal`,`glyph-orientation-horizontal`],[`glyphOrientationVertical`,`glyph-orientation-vertical`],[`horizAdvX`,`horiz-adv-x`],[`horizOriginX`,`horiz-origin-x`],[`imageRendering`,`image-rendering`],[`letterSpacing`,`letter-spacing`],[`lightingColor`,`lighting-color`],[`markerEnd`,`marker-end`],[`markerMid`,`marker-mid`],[`markerStart`,`marker-start`],[`maskType`,`mask-type`],[`overlinePosition`,`overline-position`],[`overlineThickness`,`overline-thickness`],[`paintOrder`,`paint-order`],[`panose-1`,`panose-1`],[`pointerEvents`,`pointer-events`],[`renderingIntent`,`rendering-intent`],[`shapeRendering`,`shape-rendering`],[`stopColor`,`stop-color`],[`stopOpacity`,`stop-opacity`],[`strikethroughPosition`,`strikethrough-position`],[`strikethroughThickness`,`strikethrough-thickness`],[`strokeDasharray`,`stroke-dasharray`],[`strokeDashoffset`,`stroke-dashoffset`],[`strokeLinecap`,`stroke-linecap`],[`strokeLinejoin`,`stroke-linejoin`],[`strokeMiterlimit`,`stroke-miterlimit`],[`strokeOpacity`,`stroke-opacity`],[`strokeWidth`,`stroke-width`],[`textAnchor`,`text-anchor`],[`textDecoration`,`text-decoration`],[`textRendering`,`text-rendering`],[`transformOrigin`,`transform-origin`],[`underlinePosition`,`underline-position`],[`underlineThickness`,`underline-thickness`],[`unicodeBidi`,`unicode-bidi`],[`unicodeRange`,`unicode-range`],[`unitsPerEm`,`units-per-em`],[`vAlphabetic`,`v-alphabetic`],[`vHanging`,`v-hanging`],[`vIdeographic`,`v-ideographic`],[`vMathematical`,`v-mathematical`],[`vectorEffect`,`vector-effect`],[`vertAdvY`,`vert-adv-y`],[`vertOriginX`,`vert-origin-x`],[`vertOriginY`,`vert-origin-y`],[`wordSpacing`,`word-spacing`],[`writingMode`,`writing-mode`],[`xmlnsXlink`,`xmlns:xlink`],[`xHeight`,`x-height`]]),wn=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Tn(e){return wn.test(``+e)?`javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')`:e}function En(){}var Dn=null;function On(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var kn=null,An=null;function jn(e){var t=Vt(e);if(t&&(e=t.stateNode)){var n=e[jt]||null;a:switch(e=t.stateNode,t.type){case`input`:if(fn(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type===`radio`&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll(`input[name="`+dn(``+t)+`"][type="radio"]`),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var a=r[jt]||null;if(!a)throw Error(i(90));fn(r,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name)}}for(t=0;t<n.length;t++)r=n[t],r.form===e.form&&ln(r)}break a;case`textarea`:gn(e,n.value,n.defaultValue);break a;case`select`:t=n.value,t!=null&&hn(e,!!n.multiple,t,!1)}}}var Mn=!1;function Nn(e,t,n){if(Mn)return e(t,n);Mn=!0;try{return e(t)}finally{if(Mn=!1,(kn!==null||An!==null)&&(Bd(),kn&&(t=kn,e=An,An=kn=null,jn(t),e)))for(t=0;t<e.length;t++)jn(e[t])}}function Pn(e,t){var n=e.stateNode;if(n===null)return null;var r=n[jt]||null;if(r===null)return null;n=r[t];a:switch(t){case`onClick`:case`onClickCapture`:case`onDoubleClick`:case`onDoubleClickCapture`:case`onMouseDown`:case`onMouseDownCapture`:case`onMouseMove`:case`onMouseMoveCapture`:case`onMouseUp`:case`onMouseUpCapture`:case`onMouseEnter`:(r=!r.disabled)||(e=e.type,r=e!==`button`&&e!==`input`&&e!==`select`&&e!==`textarea`),e=!r;break a;default:e=!1}if(e)return null;if(n&&typeof n!=`function`)throw Error(i(231,t,typeof n));return n}var Fn=!(typeof window>`u`||window.document===void 0||window.document.createElement===void 0),In=!1;if(Fn)try{var Ln={};Object.defineProperty(Ln,"passive",{get:function(){In=!0}}),window.addEventListener(`test`,Ln,Ln),window.removeEventListener(`test`,Ln,Ln)}catch{In=!1}var Rn=null,zn=null,Bn=null;function Vn(){if(Bn)return Bn;var e,t=zn,n=t.length,r,i=`value`in Rn?Rn.value:Rn.textContent,a=i.length;for(e=0;e<n&&t[e]===i[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===i[a-r];r++);return Bn=i.slice(e,1<r?1-r:void 0)}function Hn(e){var t=e.keyCode;return`charCode`in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Un(){return!0}function Wn(){return!1}function Gn(e){function t(t,n,r,i,a){for(var o in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(o)&&(t=e[o],this[o]=t?t(i):i[o]);return this.isDefaultPrevented=(i.defaultPrevented==null?!1===i.returnValue:i.defaultPrevented)?Un:Wn,this.isPropagationStopped=Wn,this}return C(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():typeof e.returnValue!=`unknown`&&(e.returnValue=!1),this.isDefaultPrevented=Un)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():typeof e.cancelBubble!=`unknown`&&(e.cancelBubble=!0),this.isPropagationStopped=Un)},persist:function(){},isPersistent:Un}),t}var Kn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},qn=Gn(Kn),Jn=C({},Kn,{view:0,detail:0}),Yn=Gn(Jn),Xn,Zn,Qn,$n=C({},Jn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:dr,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return`movementX`in e?e.movementX:(e!==Qn&&(Qn&&e.type===`mousemove`?(Xn=e.screenX-Qn.screenX,Zn=e.screenY-Qn.screenY):Zn=Xn=0,Qn=e),Xn)},movementY:function(e){return`movementY`in e?e.movementY:Zn}}),er=Gn($n),tr=Gn(C({},$n,{dataTransfer:0})),nr=Gn(C({},Jn,{relatedTarget:0})),rr=Gn(C({},Kn,{animationName:0,elapsedTime:0,pseudoElement:0})),ir=Gn(C({},Kn,{clipboardData:function(e){return`clipboardData`in e?e.clipboardData:window.clipboardData}})),ar=Gn(C({},Kn,{data:0})),sr={Esc:`Escape`,Spacebar:` `,Left:`ArrowLeft`,Up:`ArrowUp`,Right:`ArrowRight`,Down:`ArrowDown`,Del:`Delete`,Win:`OS`,Menu:`ContextMenu`,Apps:`ContextMenu`,Scroll:`ScrollLock`,MozPrintableKey:`Unidentified`},cr={8:`Backspace`,9:`Tab`,12:`Clear`,13:`Enter`,16:`Shift`,17:`Control`,18:`Alt`,19:`Pause`,20:`CapsLock`,27:`Escape`,32:` `,33:`PageUp`,34:`PageDown`,35:`End`,36:`Home`,37:`ArrowLeft`,38:`ArrowUp`,39:`ArrowRight`,40:`ArrowDown`,45:`Insert`,46:`Delete`,112:`F1`,113:`F2`,114:`F3`,115:`F4`,116:`F5`,117:`F6`,118:`F7`,119:`F8`,120:`F9`,121:`F10`,122:`F11`,123:`F12`,144:`NumLock`,145:`ScrollLock`,224:`Meta`},lr={Alt:`altKey`,Control:`ctrlKey`,Meta:`metaKey`,Shift:`shiftKey`};function ur(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=lr[e])?!!t[e]:!1}function dr(){return ur}var fr=Gn(C({},Jn,{key:function(e){if(e.key){var t=sr[e.key]||e.key;if(t!==`Unidentified`)return t}return e.type===`keypress`?(e=Hn(e),e===13?`Enter`:String.fromCharCode(e)):e.type===`keydown`||e.type===`keyup`?cr[e.keyCode]||`Unidentified`:``},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:dr,charCode:function(e){return e.type===`keypress`?Hn(e):0},keyCode:function(e){return e.type===`keydown`||e.type===`keyup`?e.keyCode:0},which:function(e){return e.type===`keypress`?Hn(e):e.type===`keydown`||e.type===`keyup`?e.keyCode:0}})),pr=Gn(C({},$n,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),mr=Gn(C({},Kn,{submitter:0})),hr=Gn(C({},Jn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:dr})),gr=Gn(C({},Kn,{propertyName:0,elapsedTime:0,pseudoElement:0})),_r=Gn(C({},$n,{deltaX:function(e){return`deltaX`in e?e.deltaX:`wheelDeltaX`in e?-e.wheelDeltaX:0},deltaY:function(e){return`deltaY`in e?e.deltaY:`wheelDeltaY`in e?-e.wheelDeltaY:`wheelDelta`in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),vr=Gn(C({},Kn,{newState:0,oldState:0,source:0})),yr=[9,13,27,32],br=Fn&&`CompositionEvent`in window,xr=null;Fn&&`documentMode`in document&&(xr=document.documentMode);var Sr=Fn&&`TextEvent`in window&&!xr,Cr=Fn&&(!br||xr&&8<xr&&11>=xr),wr=` `,Tr=!1;function Er(e,t){switch(e){case`keyup`:return yr.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function Dr(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var Or=!1;function kr(e,t){switch(e){case`compositionend`:return Dr(t);case`keypress`:return t.which===32?(Tr=!0,wr):null;case`textInput`:return e=t.data,e===wr&&Tr?null:e;default:return null}}function Ar(e,t){if(Or)return e===`compositionend`||!br&&Er(e,t)?(e=Vn(),Bn=zn=Rn=null,Or=!1,e):null;switch(e){case`paste`:return null;case`keypress`:if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case`compositionend`:return Cr&&t.locale!==`ko`?null:t.data;default:return null}}var jr={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Mr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t===`input`?!!jr[e.type]:t===`textarea`}function Nr(e,t,n,r){kn?An?An.push(r):An=[r]:kn=r,t=Yf(t,`onChange`),0<t.length&&(n=new qn(`onChange`,`change`,null,n,r),e.push({event:n,listeners:t}))}var Pr=null,Fr=null;function Ir(e){Hf(e,0)}function Lr(e){if(ln(Ht(e)))return e}function Rr(e,t){if(e===`change`)return t}var zr=!1;if(Fn){var Br;if(Fn){var Vr=`oninput`in document;if(!Vr){var Hr=document.createElement(`div`);Hr.setAttribute(`oninput`,`return;`),Vr=typeof Hr.oninput==`function`}Br=Vr}else Br=!1;zr=Br&&(!document.documentMode||9<document.documentMode)}function Ur(){Pr&&(Pr.detachEvent(`onpropertychange`,Wr),Fr=Pr=null)}function Wr(e){if(e.propertyName===`value`&&Lr(Fr)){var t=[];Nr(t,Fr,e,On(e)),Nn(Ir,t)}}function Gr(e,t,n){e===`focusin`?(Ur(),Pr=t,Fr=n,Pr.attachEvent(`onpropertychange`,Wr)):e===`focusout`&&Ur()}function Kr(e){if(e===`selectionchange`||e===`keyup`||e===`keydown`)return Lr(Fr)}function qr(e,t){if(e===`click`)return Lr(t)}function Jr(e,t){if(e===`input`||e===`change`)return Lr(t)}function Yr(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var Xr=typeof Object.is==`function`?Object.is:Yr;function Zr(e,t){if(Xr(e,t))return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!Ue.call(t,i)||!Xr(e[i],t[i]))return!1}return!0}function Qr(e){if(e||=typeof document<`u`?document:void 0,e===void 0)return null;try{return e.activeElement||e.body}catch{return e.body}}function $r(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ei(e,t){var n=$r(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}a:{for(;n;){if(n.nextSibling){n=n.nextSibling;break a}n=n.parentNode}n=void 0}n=$r(n)}}function ti(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?ti(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function ni(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Qr(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href==`string`}catch{n=!1}if(n)e=t.contentWindow;else break;t=Qr(e.document)}return t}function ri(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t===`input`&&(e.type===`text`||e.type===`search`||e.type===`tel`||e.type===`url`||e.type===`password`)||t===`textarea`||e.contentEditable===`true`)}var ii=Fn&&`documentMode`in document&&11>=document.documentMode,ai=null,oi=null,si=null,ci=!1;function li(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;ci||ai==null||ai!==Qr(r)||(r=ai,`selectionStart`in r&&ri(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),si&&Zr(si,r)||(si=r,r=Yf(oi,`onSelect`),0<r.length&&(t=new qn(`onSelect`,`select`,null,t,n),e.push({event:t,listeners:r}),t.target=ai)))}function ui(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n[`Webkit`+e]=`webkit`+t,n[`Moz`+e]=`moz`+t,n}var di={animationend:ui(`Animation`,`AnimationEnd`),animationiteration:ui(`Animation`,`AnimationIteration`),animationstart:ui(`Animation`,`AnimationStart`),transitionrun:ui(`Transition`,`TransitionRun`),transitionstart:ui(`Transition`,`TransitionStart`),transitioncancel:ui(`Transition`,`TransitionCancel`),transitionend:ui(`Transition`,`TransitionEnd`)},fi={},pi={};Fn&&(pi=document.createElement(`div`).style,`AnimationEvent`in window||(delete di.animationend.animation,delete di.animationiteration.animation,delete di.animationstart.animation),`TransitionEvent`in window||delete di.transitionend.transition);function mi(e){if(fi[e])return fi[e];if(!di[e])return e;var t=di[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in pi)return fi[e]=t[n];return e}var hi=mi(`animationend`),gi=mi(`animationiteration`),_i=mi(`animationstart`),vi=mi(`transitionrun`),yi=mi(`transitionstart`),bi=mi(`transitioncancel`),xi=mi(`transitionend`),Si=new Map,Ci=`abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error fullscreenChange fullscreenError gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel`.split(` `);Ci.push(`scrollEnd`);function wi(e,t){Si.set(e,t),Jt(t,[e])}var Ti=0;function Ei(e,t){if(e.name!=null&&e.name!==`auto`)return e.name;if(t.autoName!==null)return t.autoName;e=xd.identifierPrefix;var n=Ti++;return e=`_`+e+`t_`+n.toString(32)+`_`,t.autoName=e}function Di(e){if(e==null||typeof e==`string`)return e;var t=null,n=kd;if(n!==null)for(var r=0;r<n.length;r++){var i=e[n[r]];if(i!=null){if(i===`none`)return`none`;t=t==null?i:t+(` `+i)}}return t??e.default}function Oi(e,t){return e=Di(e),t=Di(t),t==null?e===`auto`?null:e:t===`auto`?null:t}var ki=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)},Ai=[],ji=0,Mi=0;function Ni(){for(var e=ji,t=Mi=ji=0;t<e;){var n=Ai[t];Ai[t++]=null;var r=Ai[t];Ai[t++]=null;var i=Ai[t];Ai[t++]=null;var a=Ai[t];if(Ai[t++]=null,r!==null&&i!==null){var o=r.pending;o===null?i.next=i:(i.next=o.next,o.next=i),r.pending=i}a!==0&&Ii(n,i,a)}}function j(e,t,n,r){Ai[ji++]=e,Ai[ji++]=t,Ai[ji++]=n,Ai[ji++]=r,Mi|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function Pi(e,t,n,r){return j(e,t,n,r),Li(e)}function Fi(e,t){return j(e,null,null,t),Li(e)}function Ii(e,t,n){e.lanes|=n;var r=e.alternate;r!==null&&(r.lanes|=n);for(var i=!1,a=e.return;a!==null;)a.childLanes|=n,r=a.alternate,r!==null&&(r.childLanes|=n),a.tag===22&&(e=a.stateNode,e===null||e._visibility&1||(i=!0)),e=a,a=a.return;return e.tag===3?(a=e.stateNode,i&&t!==null&&(i=31-ot(n),e=a.hiddenUpdates,r=e[i],r===null?e[i]=[t]:r.push(t),t.lane=n|536870912),a):null}function Li(e){if(50<Ad)throw Ad=0,jd=null,Error(i(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Ri={};function zi(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Bi(e,t,n,r){return new zi(e,t,n,r)}function Vi(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Hi(e,t){var n=e.alternate;return n===null?(n=Bi(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&1206910976,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function Ui(e,t){e.flags&=1206910978;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Wi(e,t,n,r,a,o){var s=0;if(r=e,typeof r==`function`)Vi(r)&&(s=1);else if(typeof r==`string`)s=Jm(e,n,Oe.current)?26:e===`html`||e===`head`||e===`body`?27:5;else a:switch(r){case me:return e=Bi(31,n,t,a),e.elementType=me,e.lanes=o,e;case ae:return Gi(n.children,a,o,t);case oe:s=8,a|=24;break;case T:return e=Bi(12,n,t,a|2),e.elementType=T,e.lanes=o,e;case ue:return e=Bi(13,n,t,a),e.elementType=ue,e.lanes=o,e;case de:return e=Bi(19,n,t,a),e.elementType=de,e.lanes=o,e;case E:case ge:return e=a|32,e=Bi(30,n,t,e),e.elementType=ge,e.lanes=o,e.stateNode={autoName:null,paired:null,clones:null,ref:null},e;default:if(typeof r==`object`&&r)switch(r.$$typeof){case ce:s=10;break a;case se:s=9;break a;case le:s=11;break a;case fe:s=14;break a;case pe:s=16,r=null;break a}s=29,n=Error(i(130,e===null?`null`:typeof e,``)),r=null}return t=Bi(s,n,t,a),t.elementType=e,t.type=r,t.lanes=o,t}function Gi(e,t,n,r){return e=Bi(7,e,r,t),e.lanes=n,e}function Ki(e,t,n){return e=Bi(6,e,null,t),e.lanes=n,e}function qi(e){var t=Bi(18,null,null,0);return t.stateNode=e,t}function Ji(e,t,n){return t=Bi(4,e.children===null?[]:e.children,e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Yi=new WeakMap;function Xi(e,t){if(typeof e==`object`&&e){var n=Yi.get(e);return n===void 0?(t={value:e,source:t,stack:He(t)},Yi.set(e,t),t):n}return{value:e,source:t,stack:He(t)}}var Zi=[],Qi=0,$i=null,ea=0,M=[],ta=0,na=null,ra=1,ia=``;function aa(e,t){Zi[Qi++]=ea,Zi[Qi++]=$i,$i=e,ea=t}function N(e,t,n){M[ta++]=ra,M[ta++]=ia,M[ta++]=na,na=e;var r=ra;e=ia;var i=32-ot(r)-1;r&=~(1<<i),n+=1;var a=32-ot(t)+i;if(30<a){var o=i-i%5;a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,ra=1<<32-ot(t)+i|n<<i|r,ia=a+e}else ra=1<<a|n<<i|r,ia=e}function oa(e){e.return!==null&&(aa(e,1),N(e,1,0))}function sa(e){for(;e===$i;)$i=Zi[--Qi],Zi[Qi]=null,ea=Zi[--Qi],Zi[Qi]=null;for(;e===na;)na=M[--ta],M[ta]=null,ia=M[--ta],M[ta]=null,ra=M[--ta],M[ta]=null}function ca(e,t){M[ta++]=ra,M[ta++]=ia,M[ta++]=na,ra=t.id,ia=t.overflow,na=e}var la=null,P=null,F=!1,ua=null,da=!1,fa=Error(i(519));function pa(e){throw ya(Xi(Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?`text`:`HTML`,``)),e)),fa}function ma(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[At]=e,t[jt]=r,n){case`dialog`:Z(`cancel`,t),Z(`close`,t);break;case`iframe`:case`object`:case`embed`:Z(`load`,t);break;case`video`:case`audio`:for(n=0;n<Bf.length;n++)Z(Bf[n],t);break;case`source`:Z(`error`,t);break;case`img`:case`image`:case`link`:Z(`error`,t),Z(`load`,t);break;case`details`:Z(`toggle`,t);break;case`input`:Z(`invalid`,t),pn(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case`select`:Z(`invalid`,t);break;case`textarea`:Z(`invalid`,t),_n(t,r.value,r.defaultValue,r.children)}n=r.children,typeof n!=`string`&&typeof n!=`number`&&typeof n!=`bigint`||t.textContent===``+n||!0===r.suppressHydrationWarning||tp(t.textContent,n)?(r.popover!=null&&(Z(`beforetoggle`,t),Z(`toggle`,t)),r.onScroll!=null&&Z(`scroll`,t),r.onScrollEnd!=null&&Z(`scrollend`,t),r.onClick!=null&&(t.onclick=En),t=!0):t=!1,t||pa(e,!0)}function ha(e){for(la=e.return;la;)switch(la.tag){case 5:case 31:case 13:da=!1;return;case 27:case 3:da=!0;return;default:la=la.return}}function ga(e){if(e!==la)return!1;if(!F)return ha(e),F=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=n===`form`||n===`button`||mp(e.type,e.memoizedProps)),n=!n),n&&P&&pa(e),ha(e),t===13){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));P=fm(e)}else if(t===31){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));P=fm(e)}else t===27?(t=P,Cp(e.type)?(e=dm,dm=null,P=e):P=t):P=la?um(e.stateNode.nextSibling):null;return!0}function _a(){P=la=null,F=!1}function va(){var e=ua;return e!==null&&(pd===null?pd=e:pd.push.apply(pd,e),ua=null),e}function ya(e){ua===null?ua=[e]:ua.push(e)}var ba=Ee(null),xa=null,Sa=null;function Ca(e,t,n){k(ba,t._currentValue),t._currentValue=n}function wa(e){e._currentValue=ba.current,De(ba)}function Ta(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)===t?r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t):(e.childLanes|=t,r!==null&&(r.childLanes|=t)),e===n)break;e=e.return}}function Ea(e,t,n,r){var a=e.child;for(a!==null&&(a.return=e);a!==null;){var o=a.dependencies;if(o!==null){var s=a.child;o=o.firstContext;a:for(;o!==null;){var c=o;o=a;for(var l=0;l<t.length;l++)if(c.context===t[l]){o.lanes|=n,c=o.alternate,c!==null&&(c.lanes|=n),Ta(o.return,n,e),r||(s=null);break a}o=c.next}}else if(a.tag===18){if(s=a.return,s===null)throw Error(i(341));s.lanes|=n,o=s.alternate,o!==null&&(o.lanes|=n),Ta(s,n,e),s=null}else a.tag===13&&a.memoizedState!==null&&a.memoizedState.dehydrated===null?(a.lanes|=n,s=a.alternate,s!==null&&(s.lanes|=n),Ta(a.return,n,e),s=a.child,s=s===null?null:s.sibling):s=a.child;if(s!==null)s.return=a;else for(s=a;s!==null;){if(s===e){s=null;break}if(a=s.sibling,a!==null){a.return=s.return,s=a;break}s=s.return}a=s}}function Da(e,t,n,r){e=null;for(var a=t,o=!1;a!==null;){if(!o){if(a.flags&524288)o=!0;else if(a.flags&262144)break}if(a.tag===10){var s=a.alternate;if(s===null)throw Error(i(387));if(s=s.memoizedProps,s!==null){var c=a.type;Xr(a.pendingProps.value,s.value)||(e===null?e=[c]:e.push(c))}}else if(a===je.current){if(s=a.alternate,s===null)throw Error(i(387));s.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(e===null?e=[ch]:e.push(ch))}a=a.return}return e!==null&&Ea(t,e,n,r),t.flags|=262144,e!==null}function Oa(e){for(e=e.firstContext;e!==null;){if(!Xr(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function ka(e){xa=e,Sa=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Aa(e){return Ma(xa,e)}function ja(e,t){return xa===null&&ka(e),Ma(e,t)}function Ma(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},Sa===null){if(e===null)throw Error(i(308));Sa=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Sa=Sa.next=t;return n}var Na=typeof AbortController<`u`?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(t,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(e){return e()})}},Pa=t.unstable_scheduleCallback,Fa=t.unstable_NormalPriority,Ia={$$typeof:ce,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function La(){return{controller:new Na,data:new Map,refCount:0}}function Ra(e){e.refCount--,e.refCount===0&&Pa(Fa,function(){e.controller.abort()})}function za(e,t){if(e.pendingLanes&4194048){var n=e.transitionTypes;for(n===null&&(n=e.transitionTypes=[]),e=0;e<t.length;e++){var r=t[e];n.indexOf(r)===-1&&n.push(r)}}}var Ba=null;function Va(e){var t=e.transitionTypes;return e.transitionTypes=null,t}var Ha=null,Ua=0,Wa=0,Ga=null;function Ka(e,t){if(Ha===null){var n=Ha=[];Ua=0,Wa=Ff(),Ga={status:`pending`,value:void 0,then:function(e){n.push(e)}}}return Ua++,t.then(qa,qa),t}function qa(){if(--Ua===0&&(Ba=null,Ha!==null)){Ga!==null&&(Ga.status=`fulfilled`);var e=Ha;Ha=null,Wa=0,Ga=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Ja(e,t){var n=[],r={status:`pending`,value:null,reason:null,then:function(e){n.push(e)}};return e.then(function(){r.status=`fulfilled`,r.value=t;for(var e=0;e<n.length;e++)(0,n[e])(t)},function(e){for(r.status=`rejected`,r.reason=e,e=0;e<n.length;e++)(0,n[e])(void 0)}),r}var Ya=D.S;D.S=function(e,t){if(gd=Je(),typeof t==`object`&&t&&typeof t.then==`function`&&Ka(e,t),Ba!==null)for(var n=xf;n!==null;)za(n,Ba),n=n.next;if(n=e.types,n!==null){for(var r=xf;r!==null;)za(r,n),r=r.next;if(Wa!==0){r=Ba,r===null&&(r=Ba=[]);for(var i=0;i<n.length;i++){var a=n[i];r.indexOf(a)===-1&&r.push(a)}}}Ya!==null&&Ya(e,t)};var Xa=Ee(null);function Za(){var e=Xa.current;return e===null?K.pooledCache:e}function Qa(e,t){t===null?k(Xa,Xa.current):k(Xa,t.pool)}function $a(){var e=Za();return e===null?null:{parent:Ia._currentValue,pool:e}}var eo=Error(i(460)),to=Error(i(474)),no=Error(i(542)),ro={then:function(){}};function io(e){return e=e.status,e===`fulfilled`||e===`rejected`}function ao(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(En,En),t=n),t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,lo(e),e===void 0&&!(`reason`in t)?Error(i(600)):e;default:if(typeof t.status==`string`)t.then(En,En);else{if(e=K,e!==null&&100<e.shellSuspendCounter)throw Error(i(482));e=t,e.status=`pending`,e.then(function(e){if(t.status===`pending`){var n=t;n.status=`fulfilled`,n.value=e}},function(e){if(t.status===`pending`){var n=t;n.status=`rejected`,n.reason=e}})}switch(t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,lo(e),e}throw so=t,eo}}function oo(e){try{var t=e._init;return t(e._payload)}catch(e){throw typeof e==`object`&&e&&typeof e.then==`function`?(so=e,eo):e}}var so=null;function co(){if(so===null)throw Error(i(459));var e=so;return so=null,e}function lo(e){if(e===eo||e===no)throw Error(i(483))}var uo=null,fo=0;function po(e){var t=fo;return fo+=1,uo===null&&(uo=[]),ao(uo,e,t)}function mo(e,t){t=t.props.ref,e.ref=t===void 0?null:t}function ho(e,t){throw t.$$typeof===re?Error(i(525)):(e=Object.prototype.toString.call(t),Error(i(31,e===`[object Object]`?`object with keys {`+Object.keys(t).join(`, `)+`}`:e)))}function go(e){function t(t,n){if(e){var r=t.deletions;r===null?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;r!==null;)t(n,r),r=r.sibling;return null}function r(e){for(var t=new Map;e!==null;)e.key===null?t.set(e.index,e):t.set(e.key,e),e=e.sibling;return t}function a(e,t){return e=Hi(e,t),e.index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?(r=t.alternate,r===null?(t.flags|=134217730,n):(r=r.index,r<n?(t.flags|=2,n):r)):(t.flags|=1048576,n)}function s(t){return e&&t.alternate===null&&(t.flags|=134217730),t}function c(e,t,n,r){return t===null||t.tag!==6?(t=Ki(n,e.mode,r),t.return=e,t):(t=a(t,n),t.return=e,t)}function l(e,t,n,r){var i=n.type;return i===ae?(e=d(e,t,n.props.children,r,n.key),mo(e,n),e):t!==null&&(t.elementType===i||typeof i==`object`&&i&&i.$$typeof===pe&&oo(i)===t.type)?(t=a(t,n.props),mo(t,n),t.return=e,t):(t=Wi(n.type,n.key,n.props,null,e.mode,r),mo(t,n),t.return=e,t)}function u(e,t,n,r){return t===null||t.tag!==4||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?(t=Ji(n,e.mode,r),t.return=e,t):(t=a(t,n.children||[]),t.return=e,t)}function d(e,t,n,r,i){return t===null||t.tag!==7?(t=Gi(n,e.mode,r,i),t.return=e,t):(t=a(t,n),t.return=e,t)}function f(e,t,n){if(typeof t==`string`&&t!==``||typeof t==`number`||typeof t==`bigint`)return t=Ki(``+t,e.mode,n),t.return=e,t;if(typeof t==`object`&&t){switch(t.$$typeof){case w:return n=Wi(t.type,t.key,t.props,null,e.mode,n),mo(n,t),n.return=e,n;case ie:return t=Ji(t,e.mode,n),t.return=e,t;case pe:return t=oo(t),f(e,t,n)}if(Se(t)||ye(t))return t=Gi(t,e.mode,n,null),t.return=e,t;if(typeof t.then==`function`)return f(e,po(t),n);if(t.$$typeof===ce)return f(e,ja(e,t),n);ho(e,t)}return null}function p(e,t,n,r){var i=t===null?null:t.key;if(typeof n==`string`&&n!==``||typeof n==`number`||typeof n==`bigint`)return i===null?c(e,t,``+n,r):null;if(typeof n==`object`&&n){switch(n.$$typeof){case w:return n.key===i?l(e,t,n,r):null;case ie:return n.key===i?u(e,t,n,r):null;case pe:return n=oo(n),p(e,t,n,r)}if(Se(n)||ye(n))return i===null?d(e,t,n,r,null):null;if(typeof n.then==`function`)return p(e,t,po(n),r);if(n.$$typeof===ce)return p(e,t,ja(e,n),r);ho(e,n)}return null}function m(e,t,n,r,i){if(typeof r==`string`&&r!==``||typeof r==`number`||typeof r==`bigint`)return e=e.get(n)||null,c(t,e,``+r,i);if(typeof r==`object`&&r){switch(r.$$typeof){case w:return e=e.get(r.key===null?n:r.key)||null,l(t,e,r,i);case ie:return e=e.get(r.key===null?n:r.key)||null,u(t,e,r,i);case pe:return r=oo(r),m(e,t,n,r,i)}if(Se(r)||ye(r))return e=e.get(n)||null,d(t,e,r,i,null);if(typeof r.then==`function`)return m(e,t,n,po(r),i);if(r.$$typeof===ce)return m(e,t,n,ja(t,r),i);ho(t,r)}return null}function h(i,a,s,c){for(var l=null,u=null,d=a,h=a=0,g=null;d!==null&&h<s.length;h++){d.index>h?(g=d,d=null):g=d.sibling;var _=p(i,d,s[h],c);if(_===null){d===null&&(d=g);break}e&&d&&_.alternate===null&&t(i,d),a=o(_,a,h),u===null?l=_:u.sibling=_,u=_,d=g}if(h===s.length)return n(i,d),F&&aa(i,h),l;if(d===null){for(;h<s.length;h++)d=f(i,s[h],c),d!==null&&(a=o(d,a,h),u===null?l=d:u.sibling=d,u=d);return F&&aa(i,h),l}for(d=r(d);h<s.length;h++)g=m(d,i,h,s[h],c),g!==null&&(e&&(_=g.alternate,_!==null&&d.delete(_.key===null?h:_.key)),a=o(g,a,h),u===null?l=g:u.sibling=g,u=g);return e&&d.forEach(function(e){return t(i,e)}),F&&aa(i,h),l}function g(a,s,c,l){if(c==null)throw Error(i(151));for(var u=null,d=null,h=s,g=s=0,_=null,v=c.next();h!==null&&!v.done;g++,v=c.next()){h.index>g?(_=h,h=null):_=h.sibling;var y=p(a,h,v.value,l);if(y===null){h===null&&(h=_);break}e&&h&&y.alternate===null&&t(a,h),s=o(y,s,g),d===null?u=y:d.sibling=y,d=y,h=_}if(v.done)return n(a,h),F&&aa(a,g),u;if(h===null){for(;!v.done;g++,v=c.next())v=f(a,v.value,l),v!==null&&(s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return F&&aa(a,g),u}for(h=r(h);!v.done;g++,v=c.next())v=m(h,a,g,v.value,l),v!==null&&(e&&(_=v.alternate,_!==null&&h.delete(_.key===null?g:_.key)),s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return e&&h.forEach(function(e){return t(a,e)}),F&&aa(a,g),u}function _(e,r,o,c){if(typeof o==`object`&&o&&o.type===ae&&o.key===null&&o.props.ref===void 0&&(o=o.props.children),typeof o==`object`&&o){switch(o.$$typeof){case w:a:{for(var l=o.key;r!==null;){if(r.key===l){if(l=o.type,l===ae){if(r.tag===7){n(e,r.sibling),c=a(r,o.props.children),mo(c,o),c.return=e,e=c;break a}}else if(r.elementType===l||typeof l==`object`&&l&&l.$$typeof===pe&&oo(l)===r.type){n(e,r.sibling),c=a(r,o.props),mo(c,o),c.return=e,e=c;break a}n(e,r);break}t(e,r),r=r.sibling}o.type===ae?(c=Gi(o.props.children,e.mode,c,o.key),mo(c,o),c.return=e,e=c):(c=Wi(o.type,o.key,o.props,null,e.mode,c),mo(c,o),c.return=e,e=c)}return s(e);case ie:a:{for(l=o.key;r!==null;){if(r.key===l){if(r.tag===4&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(e,r.sibling),c=a(r,o.children||[]),c.return=e,e=c;break a}n(e,r);break}t(e,r),r=r.sibling}c=Ji(o,e.mode,c),c.return=e,e=c}return s(e);case pe:return o=oo(o),_(e,r,o,c)}if(Se(o))return h(e,r,o,c);if(ye(o)){if(l=ye(o),typeof l!=`function`)throw Error(i(150));return o=l.call(o),g(e,r,o,c)}if(typeof o.then==`function`)return _(e,r,po(o),c);if(o.$$typeof===ce)return _(e,r,ja(e,o),c);ho(e,o)}return typeof o==`string`&&o!==``||typeof o==`number`||typeof o==`bigint`?(o=``+o,r!==null&&r.tag===6?(n(e,r.sibling),c=a(r,o),c.return=e,e=c):(n(e,r),c=Ki(o,e.mode,c),c.return=e,e=c),s(e)):n(e,r)}return function(e,t,n,r){try{fo=0;var i=_(e,t,n,r);return uo=null,i}catch(t){if(t===eo||t===no)throw t;var a=Bi(29,t,null,e.mode);return a.lanes=r,a.return=e,a}}}var _o=go(!0),vo=go(!1),yo=!1;function bo(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function xo(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function So(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Co(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,G&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=Li(e),Ii(e,null,n),t}return j(e,r,t,n),Li(e)}function wo(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,n&4194048)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Ct(e,n)}}function To(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,callbacks:r.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var Eo=!1;function Do(){if(Eo){var e=Ga;if(e!==null)throw e}}function Oo(e,t,n,r){Eo=!1;var i=e.updateQueue;yo=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var c=s,l=c.next;c.next=null,o===null?a=l:o.next=l,o=c;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==o&&(s===null?u.firstBaseUpdate=l:s.next=l,u.lastBaseUpdate=c))}if(a!==null){var d=i.baseState;o=0,u=l=c=null,s=a;do{var f=s.lane&-536870913,p=f!==s.lane;if(p?(J&f)===f:(r&f)===f){f!==0&&f===Wa&&(Eo=!0),u!==null&&(u=u.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});a:{var m=e,h=s;f=t;var g=n;switch(h.tag){case 1:if(m=h.payload,typeof m==`function`){d=m.call(g,d,f);break a}d=m;break a;case 3:m.flags=m.flags&-65537|128;case 0:if(m=h.payload,f=typeof m==`function`?m.call(g,d,f):m,f==null)break a;d=C({},d,f);break a;case 2:yo=!0}}f=s.callback,f!==null&&(e.flags|=64,p&&(e.flags|=8192),p=i.callbacks,p===null?i.callbacks=[f]:p.push(f))}else p={lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=p,c=d):u=u.next=p,o|=f;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;p=s,s=p.next,p.next=null,i.lastBaseUpdate=p,i.shared.pending=null}}while(1);u===null&&(c=d),i.baseState=c,i.firstBaseUpdate=l,i.lastBaseUpdate=u,a===null&&(i.shared.lanes=0),sd|=o,e.lanes=o,e.memoizedState=d}}function ko(e,t){if(typeof e!=`function`)throw Error(i(191,e));e.call(t)}function Ao(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)ko(n[e],t)}var jo=Ee(null),Mo=Ee(0);function No(e,t){e=ad,k(Mo,e),k(jo,t),ad=e|t.baseLanes}function Po(){k(Mo,ad),k(jo,jo.current)}function Fo(){ad=Mo.current,De(jo),De(Mo)}var Io=Ee(null),Lo=null;function Ro(e){var t=e.alternate;k(Uo,Uo.current&1),k(Io,e),Lo===null&&(t===null||jo.current!==null||t.memoizedState!==null)&&(Lo=e)}function zo(e){k(Uo,Uo.current),k(Io,e),Lo===null&&(Lo=e)}function Bo(e){e.tag===22?(k(Uo,Uo.current),k(Io,e),Lo===null&&(Lo=e)):Vo()}function Vo(){k(Uo,Uo.current),k(Io,Io.current)}function Ho(e){De(Io),Lo===e&&(Lo=null),De(Uo)}var Uo=Ee(0);function Wo(e,t){k(Io,Io.current),k(Uo,t)}function Go(e){De(Uo),De(Io),Lo===e&&(Lo=null)}function Ko(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||sm(n)||cm(n)))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==`independent`){if(t.flags&128)return t}else if(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 null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var qo=0,I=null,L=null,Jo=null,Yo=!1,Xo=!1,Zo=!1,Qo=0,$o=0,es=null,ts=0;function ns(){throw Error(i(321))}function R(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Xr(e[n],t[n]))return!1;return!0}function rs(e,t,n,r,i,a){return qo=a,I=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,D.H=e===null||e.memoizedState===null?bc:xc,Zo=!1,a=n(r,i),Zo=!1,Xo&&(a=as(t,n,r,i)),is(e),a}function is(e){D.H=yc;var t=L!==null&&L.next!==null;if(qo=0,Jo=L=I=null,Yo=!1,$o=0,es=null,t)throw Error(i(300));e===null||Lc||(e=e.dependencies,e!==null&&Oa(e)&&(Lc=!0))}function as(e,t,n,r){I=e;var a=0;do{if(Xo&&(es=null),$o=0,Xo=!1,25<=a)throw Error(i(301));if(a+=1,Jo=L=null,e.updateQueue!=null){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}D.H=Sc,o=t(n,r)}while(Xo);return o}function os(){var e=D.H,t=e.useState()[0];return t=typeof t.then==`function`?ps(t):t,e=e.useState()[0],(L===null?null:L.memoizedState)!==e&&(I.flags|=1024),t}function ss(){var e=Qo!==0;return Qo=0,e}function cs(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function ls(e){if(Yo){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Yo=!1}qo=0,Jo=L=I=null,Xo=!1,$o=Qo=0,es=null}function us(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Jo===null?I.memoizedState=Jo=e:Jo=Jo.next=e,Jo}function ds(){if(L===null){var e=I.alternate;e=e===null?null:e.memoizedState}else e=L.next;var t=Jo===null?I.memoizedState:Jo.next;if(t!==null)Jo=t,L=e;else{if(e===null)throw I.alternate===null?Error(i(467)):Error(i(310));L=e,e={memoizedState:L.memoizedState,baseState:L.baseState,baseQueue:L.baseQueue,queue:L.queue,next:null},Jo===null?I.memoizedState=Jo=e:Jo=Jo.next=e}return Jo}function fs(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function ps(e){var t=$o;return $o+=1,es===null&&(es=[]),e=ao(es,e,t),t=I,(Jo===null?t.memoizedState:Jo.next)===null&&(t=t.alternate,D.H=t===null||t.memoizedState===null?bc:xc),e}function ms(e){if(typeof e==`object`&&e){if(typeof e.then==`function`)return ps(e);if(e.$$typeof===_e)return;if(e.$$typeof===ce)return Aa(e)}throw Error(i(438,String(e)))}function hs(e){var t=null,n=I.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var r=I.alternate;r!==null&&(r=r.updateQueue,r!==null&&(r=r.memoCache,r!=null&&(t={data:r.data.map(function(e){return e.slice()}),index:0})))}if(t??={data:[],index:0},n===null&&(n=fs(),I.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),r=0;r<e;r++)n[r]=he;return t.index++,n}function gs(e,t){return typeof t==`function`?t(e):t}function _s(e){return vs(ds(),L,e)}function vs(e,t,n){var r=e.queue;if(r===null)throw Error(i(311));r.lastRenderedReducer=n;var a=e.baseQueue,o=r.pending;if(o!==null){if(a!==null){var s=a.next;a.next=o.next,o.next=s}t.baseQueue=a=o,r.pending=null}if(o=e.baseState,a===null)e.memoizedState=o;else{t=a.next;var c=s=null,l=null,u=t,d=!1;do{var f=u.lane&-536870913;if(f===u.lane?(qo&f)===f:(J&f)===f){var p=u.revertLane;if(p===0)l!==null&&(l=l.next={lane:0,revertLane:0,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),f===Wa&&(d=!0);else if((qo&p)===p){u=u.next,p===Wa&&(d=!0);continue}else f={lane:0,revertLane:u.revertLane,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=f,s=o):l=l.next=f,I.lanes|=p,sd|=p;f=u.action,Zo&&n(o,f),o=u.hasEagerState?u.eagerState:n(o,f)}else p={lane:f,revertLane:u.revertLane,gesture:u.gesture,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=p,s=o):l=l.next=p,I.lanes|=f,sd|=f;u=u.next}while(u!==null&&u!==t);if(l===null?s=o:l.next=c,!Xr(o,e.memoizedState)&&(Lc=!0,d&&(n=Ga,n!==null)))throw n;e.memoizedState=o,e.baseState=s,e.baseQueue=l,r.lastRenderedState=o}return a===null&&(r.lanes=0),[e.memoizedState,r.dispatch]}function ys(e){var t=ds(),n=t.queue;if(n===null)throw Error(i(311));n.lastRenderedReducer=e;var r=n.dispatch,a=n.pending,o=t.memoizedState;if(a!==null){n.pending=null;var s=a=a.next;do o=e(o,s.action),s=s.next;while(s!==a);Xr(o,t.memoizedState)||(Lc=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function bs(e,t,n){var r=I,a=ds(),o=F;if(o){if(n===void 0)throw Error(i(407));n=n()}else n=t();var s=!Xr((L||a).memoizedState,n);if(s&&(a.memoizedState=n,Lc=!0),a=a.queue,Gs(Cs.bind(null,r,a,e),[e]),e=a.getSnapshot!==t||s||Jo!==null&&!!(Jo.memoizedState.tag&1),Bs(e?9:8,{destroy:void 0},Ss.bind(null,r,a,n,t),null),e){if(r.flags|=2048,K===null)throw Error(i(349));o||qo&127||xs(r,t,n)}return n}function xs(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=I.updateQueue,t===null?(t=fs(),I.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Ss(e,t,n,r){t.value=n,t.getSnapshot=r,ws(t)&&Ts(e)}function Cs(e,t,n){return n(function(){ws(t)&&Ts(e)})}function ws(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Xr(e,n)}catch{return!0}}function Ts(e){var t=Fi(e,2);t!==null&&Fd(t,e,2)}function Es(e){var t=us();if(typeof e==`function`){var n=e;if(e=n(),Zo){at(!0);try{n()}finally{at(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:gs,lastRenderedState:e},t}function Ds(e,t,n,r){return e.baseState=n,vs(e,L,typeof r==`function`?r:gs)}function Os(e,t,n,r,a){if(gc(e))throw Error(i(485));if(e=t.action,e!==null){var o={payload:a,action:e,next:null,isTransition:!0,status:`pending`,value:null,reason:null,listeners:[],then:function(e){o.listeners.push(e)}};D.T===null?o.isTransition=!1:n(!0),r(o),n=t.pending,n===null?(o.next=t.pending=o,ks(t,o)):(o.next=n.next,t.pending=n.next=o)}}function ks(e,t){var n=t.action,r=t.payload,i=e.state;if(t.isTransition){var a=D.T,o={};o.types=a===null?null:a.types,D.T=o;try{var s=n(i,r),c=D.S;c!==null&&c(o,s),As(e,t,s)}catch(n){Ms(e,t,n)}finally{a!==null&&o.types!==null&&(a.types=o.types),D.T=a}}else try{a=n(i,r),As(e,t,a)}catch(n){Ms(e,t,n)}}function As(e,t,n){typeof n==`object`&&n&&typeof n.then==`function`?n.then(function(n){js(e,t,n)},function(n){return Ms(e,t,n)}):js(e,t,n)}function js(e,t,n){t.status=`fulfilled`,t.value=n,Ns(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,ks(e,n)))}function Ms(e,t,n){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status=`rejected`,t.reason=n,Ns(t),t=t.next;while(t!==r)}e.action=null}function Ns(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Ps(e,t){return t}function Fs(e,t){if(F){var n=K.formState;if(n!==null){a:{var r=I;if(F){if(P){b:{for(var i=P,a=da;i.nodeType!==8;){if(!a){i=null;break b}if(i=um(i.nextSibling),i===null){i=null;break b}}a=i.data,i=a===`F!`||a===`F`?i:null}if(i){P=um(i.nextSibling),r=i.data===`F!`;break a}}pa(r)}r=!1}r&&(t=n[0])}}return n=us(),n.memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ps,lastRenderedState:t},n.queue=r,n=pc.bind(null,I,r),r.dispatch=n,r=Es(!1),a=hc.bind(null,I,!1,r.queue),r=us(),i={state:t,dispatch:null,action:e,pending:null},r.queue=i,n=Os.bind(null,I,i,a,n),i.dispatch=n,r.memoizedState=e,[t,n,!1]}function Is(e){return Ls(ds(),L,e)}function Ls(e,t,n){if(t=vs(e,t,Ps)[0],e=_s(gs)[0],typeof t==`object`&&t&&typeof t.then==`function`)try{var r=ps(t)}catch(e){throw e===eo?no:e}else r=t;t=ds();var i=t.queue,a=i.dispatch;return n!==t.memoizedState&&(I.flags|=2048,Bs(9,{destroy:void 0},Rs.bind(null,i,n),null)),[r,a,e]}function Rs(e,t){e.action=t}function zs(e){var t=ds(),n=L;if(n!==null)return Ls(t,n,e);ds(),t=t.memoizedState,n=ds();var r=n.queue.dispatch;return n.memoizedState=e,[t,r,!1]}function Bs(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},t=I.updateQueue,t===null&&(t=fs(),I.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function Vs(){return ds().memoizedState}function Hs(e,t,n,r){var i=us();I.flags|=e,i.memoizedState=Bs(1|t,{destroy:void 0},n,r===void 0?null:r)}function Us(e,t,n,r){var i=ds();r=r===void 0?null:r;var a=i.memoizedState.inst;L!==null&&r!==null&&R(r,L.memoizedState.deps)?i.memoizedState=Bs(t,a,n,r):(I.flags|=e,i.memoizedState=Bs(1|t,a,n,r))}function Ws(e,t){Hs(8390656,8,e,t)}function Gs(e,t){Us(2048,8,e,t)}function Ks(e){I.flags|=4;var t=I.updateQueue;if(t===null)t=fs(),I.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function qs(e){var t=ds().memoizedState;return Ks({ref:t,nextImpl:e}),function(){if(G&2)throw Error(i(440));return t.impl.apply(void 0,arguments)}}function Js(e,t){return Us(4,2,e,t)}function Ys(e,t){return Us(4,4,e,t)}function Xs(e,t){if(typeof t==`function`){e=e();var n=t(e);return function(){typeof n==`function`?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Zs(e,t,n){n=n==null?null:n.concat([e]),Us(4,4,Xs.bind(null,t,e),n)}function Qs(){}function $s(e,t){var n=ds();t=t===void 0?null:t;var r=n.memoizedState;return t!==null&&R(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function ec(e,t){var n=ds();t=t===void 0?null:t;var r=n.memoizedState;if(t!==null&&R(t,r[1]))return r[0];if(r=e(),Zo){at(!0);try{e()}finally{at(!1)}}return n.memoizedState=[r,t],r}function tc(e,t,n){return n===void 0||qo&1073741824&&!(J&261930)?e.memoizedState=t:(e.memoizedState=n,e=Nd(),I.lanes|=e,sd|=e,n)}function nc(e,t,n,r){return Xr(n,t)?n:jo.current===null?!(qo&106)||qo&1073741824&&!(J&261930)?(Lc=!0,e.memoizedState=n):(e=Nd(),I.lanes|=e,sd|=e,t):(e=tc(e,n,r),Xr(e,t)||(Lc=!0),e)}function rc(e,t,n,r,i){var a=O.p;O.p=a!==0&&8>a?a:8;var o=D.T,s={};s.types=o===null?null:o.types,D.T=s,hc(e,!1,t,n);try{var c=i(),l=D.S;l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`?mc(e,t,Ja(c,r),Md(e)):mc(e,t,r,Md(e))}catch(n){mc(e,t,{then:function(){},status:`rejected`,reason:n},Md())}finally{O.p=a,o!==null&&s.types!==null&&(o.types=s.types),D.T=o}}function ic(){}function ac(e,t,n,r){if(e.tag!==5)throw Error(i(476));var a=oc(e).queue;rc(e,a,t,Ce,n===null?ic:function(){return sc(e),n(r)})}function oc(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:Ce,baseState:Ce,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:gs,lastRenderedState:Ce},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:gs,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function sc(e){var t=oc(e);t.next===null&&(t=e.alternate.memoizedState),mc(e,t.next.queue,{},Md())}function cc(){return Aa(ch)}function lc(){return ds().memoizedState}function uc(){return ds().memoizedState}function dc(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=Md();e=So(n);var r=Co(t,e,n);r!==null&&(Fd(r,t,n),wo(r,t,n)),t={cache:La()},e.payload=t;return}t=t.return}}function fc(e,t,n){var r=Md();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},gc(e)?_c(t,n):(n=Pi(e,t,n,r),n!==null&&(Fd(n,e,r),vc(n,t,r)))}function pc(e,t,n){mc(e,t,n,Md())}function mc(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(gc(e))_c(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,Xr(s,o))return j(e,t,i,0),K===null&&Ni(),!1}catch{}if(n=Pi(e,t,i,r),n!==null)return Fd(n,e,r),vc(n,t,r),!0}return!1}function hc(e,t,n,r){if(r={lane:2,revertLane:Ff(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},gc(e)){if(t)throw Error(i(479))}else t=Pi(e,n,r,2),t!==null&&Fd(t,e,2)}function gc(e){var t=e.alternate;return e===I||t!==null&&t===I}function _c(e,t){Xo=Yo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function vc(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Ct(e,n)}}var yc={readContext:Aa,use:ms,useCallback:ns,useContext:ns,useEffect:ns,useImperativeHandle:ns,useLayoutEffect:ns,useInsertionEffect:ns,useMemo:ns,useReducer:ns,useRef:ns,useState:ns,useDebugValue:ns,useDeferredValue:ns,useTransition:ns,useSyncExternalStore:ns,useId:ns,useHostTransitionStatus:ns,useFormState:ns,useActionState:ns,useOptimistic:ns,useMemoCache:ns,useCacheRefresh:ns,useEffectEvent:ns},bc={readContext:Aa,use:ms,useCallback:function(e,t){return us().memoizedState=[e,t===void 0?null:t],e},useContext:Aa,useEffect:Ws,useImperativeHandle:function(e,t,n){n=n==null?null:n.concat([e]),Hs(4194308,4,Xs.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Hs(4194308,4,e,t)},useInsertionEffect:function(e,t){Hs(4,2,e,t)},useMemo:function(e,t){var n=us();t=t===void 0?null:t;var r=e();if(Zo){at(!0);try{e()}finally{at(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=us();if(n!==void 0){var i=n(t);if(Zo){at(!0);try{n(t)}finally{at(!1)}}}else i=t;return r.memoizedState=r.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},r.queue=e,e=e.dispatch=fc.bind(null,I,e),[r.memoizedState,e]},useRef:function(e){var t=us();return e={current:e},t.memoizedState=e},useState:function(e){e=Es(e);var t=e.queue,n=pc.bind(null,I,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Qs,useDeferredValue:function(e,t){return tc(us(),e,t)},useTransition:function(){var e=Es(!1);return e=rc.bind(null,I,e.queue,!0,!1),us().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=I,a=us();if(F){if(n===void 0)throw Error(i(407));n=n()}else{if(n=t(),K===null)throw Error(i(349));J&127||xs(r,t,n)}a.memoizedState=n;var o={value:n,getSnapshot:t};return a.queue=o,Ws(Cs.bind(null,r,o,e),[e]),r.flags|=2048,Bs(9,{destroy:void 0},Ss.bind(null,r,o,n,t),null),n},useId:function(){var e=us(),t=K.identifierPrefix;if(F){var n=ia,r=ra;n=(r&~(1<<32-ot(r)-1)).toString(32)+n,t=`_`+t+`R_`+n,n=Qo++,0<n&&(t+=`H`+n.toString(32)),t+=`_`}else n=ts++,t=`_`+t+`r_`+n.toString(32)+`_`;return e.memoizedState=t},useHostTransitionStatus:cc,useFormState:Fs,useActionState:Fs,useOptimistic:function(e){var t=us();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=hc.bind(null,I,!0,n),n.dispatch=t,[e,t]},useMemoCache:hs,useCacheRefresh:function(){return us().memoizedState=dc.bind(null,I)},useEffectEvent:function(e){var t=us(),n={impl:e};return t.memoizedState=n,function(){if(G&2)throw Error(i(440));return n.impl.apply(void 0,arguments)}}},xc={readContext:Aa,use:ms,useCallback:$s,useContext:Aa,useEffect:Gs,useImperativeHandle:Zs,useInsertionEffect:Js,useLayoutEffect:Ys,useMemo:ec,useReducer:_s,useRef:Vs,useState:function(){return _s(gs)},useDebugValue:Qs,useDeferredValue:function(e,t){return nc(ds(),L.memoizedState,e,t)},useTransition:function(){var e=_s(gs)[0],t=ds().memoizedState;return[typeof e==`boolean`?e:ps(e),t]},useSyncExternalStore:bs,useId:lc,useHostTransitionStatus:cc,useFormState:Is,useActionState:Is,useOptimistic:function(e,t){return Ds(ds(),L,e,t)},useMemoCache:hs,useCacheRefresh:uc,useEffectEvent:qs},Sc={readContext:Aa,use:ms,useCallback:$s,useContext:Aa,useEffect:Gs,useImperativeHandle:Zs,useInsertionEffect:Js,useLayoutEffect:Ys,useMemo:ec,useReducer:ys,useRef:Vs,useState:function(){return ys(gs)},useDebugValue:Qs,useDeferredValue:function(e,t){var n=ds();return L===null?tc(n,e,t):nc(n,L.memoizedState,e,t)},useTransition:function(){var e=ys(gs)[0],t=ds().memoizedState;return[typeof e==`boolean`?e:ps(e),t]},useSyncExternalStore:bs,useId:lc,useHostTransitionStatus:cc,useFormState:zs,useActionState:zs,useOptimistic:function(e,t){var n=ds();return L===null?(n.baseState=e,[e,n.queue.dispatch]):Ds(n,L,e,t)},useMemoCache:hs,useCacheRefresh:uc,useEffectEvent:qs};function z(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:C({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Cc={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Md(),i=So(r);i.payload=t,n!=null&&(i.callback=n),t=Co(e,i,r),t!==null&&(Fd(t,e,r),wo(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Md(),i=So(r);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=Co(e,i,r),t!==null&&(Fd(t,e,r),wo(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Md(),r=So(n);r.tag=2,t!=null&&(r.callback=t),t=Co(e,r,n),t!==null&&(Fd(t,e,n),wo(t,e,n))}};function wc(e,t,n,r,i,a,o){return e=e.stateNode,typeof e.shouldComponentUpdate==`function`?e.shouldComponentUpdate(r,a,o):t.prototype&&t.prototype.isPureReactComponent?!Zr(n,r)||!Zr(i,a):!0}function Tc(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps==`function`&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps==`function`&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Cc.enqueueReplaceState(t,t.state,null)}function Ec(e,t){var n=t;if(`ref`in t)for(var r in n={},t)r!==`ref`&&(n[r]=t[r]);if(e=e.defaultProps)for(var i in n===t&&(n=C({},n)),e)n[i]===void 0&&(n[i]=e[i]);return n}function Dc(e){ki(e)}function Oc(e){console.error(e)}function kc(e){ki(e)}function Ac(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(e){setTimeout(function(){throw e})}}function jc(e,t,n){try{var r=e.onCaughtError;r(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(e){setTimeout(function(){throw e})}}function Mc(e,t,n){return n=So(n),n.tag=3,n.payload={element:null},n.callback=function(){Ac(e,t)},n}function Nc(e){return e=So(e),e.tag=3,e}function Pc(e,t,n,r){var i=n.type.getDerivedStateFromError;if(typeof i==`function`){var a=r.value;e.payload=function(){return i(a)},e.callback=function(){jc(t,n,r)}}var o=n.stateNode;o!==null&&typeof o.componentDidCatch==`function`&&(e.callback=function(){jc(t,n,r),typeof i!=`function`&&(yd===null?yd=new Set([this]):yd.add(this));var e=r.stack;this.componentDidCatch(r.value,{componentStack:e===null?``:e})})}function Fc(e,t,n,r,a){if(n.flags|=32768,typeof r==`object`&&r&&typeof r.then==`function`){if(t=n.alternate,t!==null&&Da(t,n,a,!0),n=Io.current,n!==null){switch(n.tag){case 31:case 13:case 19:return Lo===null?qd():n.alternate===null&&od===0&&(od=3),n.flags&=-257,n.flags|=65536,n.lanes=a,r===ro?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([r]):t.add(r),hf(e,r,a)),!1;case 22:return n.flags|=65536,r===ro?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([r]):n.add(r)),hf(e,r,a)),!1}throw Error(i(435,n.tag))}return hf(e,r,a),qd(),!1}if(F)return t=Io.current,t===null?(r!==fa&&(t=Error(i(423),{cause:r}),ya(Xi(t,n))),e=e.current.alternate,e.flags|=65536,a&=-a,e.lanes|=a,r=Xi(r,n),a=Mc(e.stateNode,r,a),To(e,a),od!==4&&(od=2)):(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=a,r!==fa&&(e=Error(i(422),{cause:r}),ya(Xi(e,n)))),!1;var o=Error(i(520),{cause:r});if(o=Xi(o,n),fd===null?fd=[o]:fd.push(o),od!==4&&(od=2),t===null)return!0;r=Xi(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=a&-a,n.lanes|=e,e=Mc(n.stateNode,r,e),To(n,e),!1;case 1:if(t=n.type,o=n.stateNode,!(n.flags&128)&&(typeof t.getDerivedStateFromError==`function`||o!==null&&typeof o.componentDidCatch==`function`&&(yd===null||!yd.has(o))))return n.flags|=65536,a&=-a,n.lanes|=a,a=Nc(a),Pc(a,e,n,r),To(n,a),!1;break;case 22:if(n.memoizedState!==null)return n.flags|=65536,!1}n=n.return}while(n!==null);return!1}var Ic=Error(i(461)),Lc=!1;function Rc(e,t,n,r){t.child=e===null?vo(t,null,n,r):_o(t,e.child,n,r)}function zc(e,t,n,r,i){n=n.render;var a=t.ref;if(`ref`in r){var o={};for(var s in r)s!==`ref`&&(o[s]=r[s])}else o=r;return ka(t),r=rs(e,t,n,o,a,i),s=ss(),e!==null&&!Lc?(cs(e,t,i),dl(e,t,i)):(F&&s&&oa(t),t.flags|=1,Rc(e,t,r,i),t.child)}function Bc(e,t,n,r,i){if(e===null){var a=n.type;return typeof a==`function`&&!Vi(a)&&a.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=a,Vc(e,t,a,r,i)):(e=Wi(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!fl(e,i)){var o=a.memoizedProps;if(n=n.compare,n=n===null?Zr:n,n(o,r)&&e.ref===t.ref)return dl(e,t,i)}return t.flags|=1,e=Hi(a,r),e.ref=t.ref,e.return=t,t.child=e}function Vc(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(Zr(a,r)&&e.ref===t.ref){if(Lc=!1,t.pendingProps=r=a,fl(e,i))e.flags&131072&&(Lc=!0);else return t.lanes=e.lanes,dl(e,t,i)}}return Yc(e,t,n,r,i)}function Hc(e,t,n,r){var i=r.children,a=e===null?null:e.memoizedState;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.mode===`hidden`){if(t.flags&128){if(a=a===null?n:a.baseLanes|n,e!==null){for(r=t.child=e.child,i=0;r!==null;)i=i|r.lanes|r.childLanes,r=r.sibling;r=i&~a}else r=0,t.child=null;return Wc(e,t,a,n,r)}if(n&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Qa(t,a===null?null:a.cachePool),a===null?Po():No(t,a),Bo(t);else return r=t.lanes=536870912,Wc(e,t,a===null?n:a.baseLanes|n,n,r)}else a===null?(e!==null&&Qa(t,null),Po(),Vo()):(Qa(t,a.cachePool),No(t,a),Vo(),t.memoizedState=null);return Rc(e,t,i,n),t.child}function Uc(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Wc(e,t,n,r,i){var a=Za();return a=a===null?null:{parent:Ia._currentValue,pool:a},t.memoizedState={baseLanes:n,cachePool:a},e!==null&&Qa(t,null),Po(),Bo(t),e!==null&&Da(e,t,r,!0),t.childLanes=i,null}function Gc(e,t){return t=rl({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Kc(e,t,n){return _o(t,e.child,null,n),e=Gc(t,t.pendingProps),e.flags|=2,Ho(t),t.memoizedState=null,e}function qc(e,t,n){var r=t.pendingProps,a=!!(t.flags&128);if(t.flags&=-129,e===null){if(F){if(r.mode===`hidden`)return e=Gc(t,r),t.lanes=536870912,e.memoizedState={baseLanes:0,cachePool:null},Uc(null,e);if(zo(t),(e=P)?(e=om(e,da),e=e!==null&&e.data===`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:na===null?null:{id:ra,overflow:ia},retryLane:536870912,hydrationErrors:null},n=qi(e),n.return=t,t.child=n,la=t,P=null)):e=null,e===null)throw pa(t);return t.lanes=536870912,null}return Gc(t,r)}var o=e.memoizedState;if(o!==null){var s=o.dehydrated;if(zo(t),a){if(t.flags&256)t.flags&=-257,t=Kc(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(i(558))}else if(Lc||Da(e,t,n,!1),a=(n&e.childLanes)!==0,Lc||a){if(jo.current===null){if(r=K,r!==null&&(s=wt(r,n),s!==0&&s!==o.retryLane))throw o.retryLane=s,Fi(e,s),Fd(r,e,s),Ic;qd()}t=Kc(e,t,n)}else e=o.treeContext,P=um(s.nextSibling),la=t,F=!0,ua=null,da=!1,e!==null&&ca(t,e),t=Gc(t,r),t.flags|=134221824;return t}return e=Hi(e.child,{mode:r.mode,children:r.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Jc(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!=`function`&&typeof n!=`object`)throw Error(i(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function Yc(e,t,n,r,i){return ka(t),n=rs(e,t,n,r,void 0,i),r=ss(),e!==null&&!Lc?(cs(e,t,i),dl(e,t,i)):(F&&r&&oa(t),t.flags|=1,Rc(e,t,n,i),t.child)}function Xc(e,t,n,r,i,a){return ka(t),t.updateQueue=null,n=as(t,r,n,i),is(e),r=ss(),e!==null&&!Lc?(cs(e,t,a),dl(e,t,a)):(F&&r&&oa(t),t.flags|=1,Rc(e,t,n,a),t.child)}function Zc(e,t,n,r,i){if(ka(t),t.stateNode===null){var a=Ri,o=n.contextType;typeof o==`object`&&o&&(a=Aa(o)),a=new n(r,a),t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,a.updater=Cc,t.stateNode=a,a._reactInternals=t,a=t.stateNode,a.props=r,a.state=t.memoizedState,a.refs={},bo(t),o=n.contextType,a.context=typeof o==`object`&&o?Aa(o):Ri,a.state=t.memoizedState,o=n.getDerivedStateFromProps,typeof o==`function`&&(z(t,n,o,r),a.state=t.memoizedState),typeof n.getDerivedStateFromProps==`function`||typeof a.getSnapshotBeforeUpdate==`function`||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(o=a.state,typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount(),o!==a.state&&Cc.enqueueReplaceState(a,a.state,null),Oo(t,r,a,i),Do(),a.state=t.memoizedState),typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!0}else if(e===null){a=t.stateNode;var s=t.memoizedProps,c=Ec(n,s);a.props=c;var l=a.context,u=n.contextType;o=Ri,typeof u==`object`&&u&&(o=Aa(u));var d=n.getDerivedStateFromProps;u=typeof d==`function`||typeof a.getSnapshotBeforeUpdate==`function`,s=t.pendingProps!==s,u||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(s||l!==o)&&Tc(t,a,r,o),yo=!1;var f=t.memoizedState;a.state=f,Oo(t,r,a,i),Do(),l=t.memoizedState,s||f!==l||yo?(typeof d==`function`&&(z(t,n,d,r),l=t.memoizedState),(c=yo||wc(t,n,c,r,f,l,o))?(u||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount==`function`&&(t.flags|=4194308)):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=o,r=c):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,xo(e,t),o=t.memoizedProps,u=Ec(n,o),a.props=u,d=t.pendingProps,f=a.context,l=n.contextType,c=Ri,typeof l==`object`&&l&&(c=Aa(l)),s=n.getDerivedStateFromProps,(l=typeof s==`function`||typeof a.getSnapshotBeforeUpdate==`function`)||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(o!==d||f!==c)&&Tc(t,a,r,c),yo=!1,f=t.memoizedState,a.state=f,Oo(t,r,a,i),Do();var p=t.memoizedState;o!==d||f!==p||yo||e!==null&&e.dependencies!==null&&Oa(e.dependencies)?(typeof s==`function`&&(z(t,n,s,r),p=t.memoizedState),(u=yo||wc(t,n,u,r,f,p,c)||e!==null&&e.dependencies!==null&&Oa(e.dependencies))?(l||typeof a.UNSAFE_componentWillUpdate!=`function`&&typeof a.componentWillUpdate!=`function`||(typeof a.componentWillUpdate==`function`&&a.componentWillUpdate(r,p,c),typeof a.UNSAFE_componentWillUpdate==`function`&&a.UNSAFE_componentWillUpdate(r,p,c)),typeof a.componentDidUpdate==`function`&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate==`function`&&(t.flags|=1024)):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),a.props=r,a.state=p,a.context=c,r=u):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return a=r,Jc(e,t),r=!!(t.flags&128),a||r?(a=t.stateNode,n=r&&typeof n.getDerivedStateFromError!=`function`?null:a.render(),t.flags|=1,e!==null&&r?(t.child=_o(t,e.child,null,i),t.child=_o(t,null,n,i)):Rc(e,t,n,i),t.memoizedState=a.state,e=t.child):e=dl(e,t,i),e}function Qc(e,t,n,r){return _a(),t.flags|=256,Rc(e,t,n,r),t.child}var $c={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function el(e){return{baseLanes:e,cachePool:$a()}}function tl(e,t,n){return e=e===null?0:e.childLanes&~n,t&&(e|=ud),e}function B(e,t,n){var r=t.pendingProps,i=!1,a=!!(t.flags&128),o;if((o=a)||(o=e!==null&&e.memoizedState===null?!1:!!(Uo.current&2)),o&&(i=!0,t.flags&=-129),o=!!(t.flags&32),t.flags&=-33,e===null){if(F){if(i?Ro(t):Vo(),(e=P)?(e=om(e,da),e=e!==null&&e.data!==`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:na===null?null:{id:ra,overflow:ia},retryLane:536870912,hydrationErrors:null},n=qi(e),n.return=t,t.child=n,la=t,P=null)):e=null,e===null)throw pa(t);return t.lanes=cm(e)?32:536870912,null}return a=r.children,r=r.fallback,i?(Vo(),i=t.mode,a=rl({mode:`hidden`,children:a},i),r=Gi(r,i,n,null),a.return=t,r.return=t,a.sibling=r,t.child=a,r=t.child,r.memoizedState=el(n),r.childLanes=tl(e,o,n),t.memoizedState=$c,Uc(null,r)):(Ro(t),nl(t,a))}var s=e.memoizedState;if(s!==null){var c=s.dehydrated;if(c!==null)return al(e,t,a,o,r,c,s,n)}return i?(Vo(),i=r.fallback,a=t.mode,s=e.child,c=s.sibling,r=Hi(s,{mode:`hidden`,children:r.children}),r.subtreeFlags=s.subtreeFlags&1206910976,c===null?(i=Gi(i,a,n,null),i.flags|=2):i=Hi(c,i),i.return=t,r.return=t,r.sibling=i,t.child=r,Uc(null,r),r=t.child,i=e.child.memoizedState,i===null?i=el(n):(a=i.cachePool,a===null?a=$a():(s=Ia._currentValue,a=a.parent===s?a:{parent:s,pool:s}),i={baseLanes:i.baseLanes|n,cachePool:a}),r.memoizedState=i,r.childLanes=tl(e,o,n),t.memoizedState=$c,Uc(e.child,r)):(Ro(t),n=e.child,e=n.sibling,n=Hi(n,{mode:`visible`,children:r.children}),n.return=t,n.sibling=null,e!==null&&(o=t.deletions,o===null?(t.deletions=[e],t.flags|=16):o.push(e)),t.child=n,t.memoizedState=null,n)}function nl(e,t){return t=rl({mode:`visible`,children:t},e.mode),t.return=e,e.child=t}function rl(e,t){return e=Bi(22,e,null,t),e.lanes=0,e}function il(e,t,n){return _o(t,e.child,null,n),e=nl(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function al(e,t,n,r,a,o,s,c){if(n)return t.flags&256?(Ro(t),t.flags&=-257,il(e,t,c)):t.memoizedState===null?(Vo(),o=a.fallback,s=t.mode,a=rl({mode:`visible`,children:a.children},s),o=Gi(o,s,c,null),o.flags|=2,a.return=t,o.return=t,a.sibling=o,t.child=a,_o(t,e.child,null,c),a=t.child,a.memoizedState=el(c),a.childLanes=tl(e,r,c),t.memoizedState=$c,Uc(null,a)):(Vo(),t.child=e.child,t.flags|=128,null);if(Ro(t),cm(o)){if(r=o.nextSibling&&o.nextSibling.dataset,r)var l=r.dgst;return r=l,r!==``&&(a=Error(i(419)),a.stack=``,a.digest=r,ya({value:a,source:null,stack:null})),il(e,t,c)}if(Lc||Da(e,t,c,!1),r=(c&e.childLanes)!==0,Lc||r){if(jo.current!==null)return il(e,t,c);if(r=K,r!==null&&(a=wt(r,c),a!==0&&a!==s.retryLane))throw s.retryLane=a,Fi(e,a),Fd(r,e,a),Ic;return sm(o)||qd(),il(e,t,c)}return sm(o)?(t.flags|=192,t.child=e.child,null):(e=s.treeContext,P=um(o.nextSibling),la=t,F=!0,ua=null,da=!1,e!==null&&ca(t,e),t=nl(t,a.children),t.flags|=134221824,t)}function ol(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Ta(e.return,t,n)}function sl(e){for(var t=null;e!==null;){var n=e.alternate;n!==null&&Ko(n)===null&&(t=e),e=e.sibling}return t}function cl(e,t,n,r,i,a){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i,treeForkCount:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i,o.treeForkCount=a)}function V(e){var t=e.child;for(e.child=null;t!==null;){var n=t.sibling;t.sibling=e.child,e.child=t,t=n}}function ll(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;r=r.children;var o=Uo.current;if(t.flags&128)return Wo(t,o),null;var s=!!(o&2);if(s?(o=o&1|2,t.flags|=128):o&=1,Wo(t,o),i===`backwards`&&e!==null?(V(e),Rc(e,t,r,n),V(e)):Rc(e,t,r,n),r=F?ea:0,!s&&e!==null&&e.flags&128)a:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&ol(e,n,t);else if(e.tag===19)ol(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break a;for(;e.sibling===null;){if(e.return===null||e.return===t)break a;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(i){case`backwards`:n=sl(t.child),n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null,V(t)),cl(t,!0,i,null,a,r);break;case`unstable_legacy-backwards`:for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&Ko(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}cl(t,!0,n,null,a,r);break;case`together`:cl(t,!1,null,null,void 0,r);break;case`independent`:t.memoizedState=null;break;default:n=sl(t.child),n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),cl(t,!1,i,n,a,r)}return t.child}function ul(e,t,n){var r=t.pendingProps;return Ca(t,t.type,r.value),Rc(e,t,r.children,n),t.child}function dl(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),sd|=t.lanes,(n&t.childLanes)===0){if(e!==null){if(Da(e,t,n,!1),(n&t.childLanes)===0)return null}else return null}if(e!==null&&t.child!==e.child)throw Error(i(153));if(t.child!==null){for(e=t.child,n=Hi(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Hi(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function fl(e,t){return(e.lanes&t)!==0||(e=e.dependencies,!!(e!==null&&Oa(e)))}function pl(e,t,n){switch(t.tag){case 3:Me(t,t.stateNode.containerInfo),Ca(t,Ia,e.memoizedState.cache),_a();break;case 27:case 5:Pe(t);break;case 4:Me(t,t.stateNode.containerInfo);break;case 10:Ca(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,zo(t),null;break;case 13:var r=t.memoizedState;if(r!==null){if(r.dehydrated!==null)return Ro(t),t.flags|=128,null;r=Da(e,t,n,!1);var i=t.child.childLanes;return r||(n&i)!==0?B(e,t,n):(Ro(t),e=dl(e,t,n),e===null?null:e.sibling)}Ro(t);break;case 19:if(t.flags&128)return ll(e,t,n);if(i=!!(e.flags&128),r=(n&t.childLanes)!==0,r||=(Da(e,t,n,!1),(n&t.childLanes)!==0),i){if(r)return ll(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Wo(t,Uo.current),r)break;return null;case 22:return t.lanes=0,Hc(e,t,n,t.pendingProps);case 24:Ca(t,Ia,e.memoizedState.cache)}return dl(e,t,n)}function ml(e,t,n){if(e!==null){if(e.memoizedProps!==t.pendingProps)Lc=!0;else{if(!fl(e,n)&&!(t.flags&128))return Lc=!1,pl(e,t,n);Lc=!!(e.flags&131072)}}else Lc=!1,F&&t.flags&1048576&&N(t,ea,t.index);switch(t.lanes=0,t.tag){case 16:a:{var r=t.pendingProps;if(e=oo(t.elementType),t.type=e,typeof e==`function`)Vi(e)?(r=Ec(e,r),t.tag=1,t=Zc(null,t,e,r,n)):(t.tag=0,t=Yc(null,t,e,r,n));else{if(e!=null){var a=e.$$typeof;if(a===le){t.tag=11,t=zc(null,t,e,r,n);break a}if(a===fe){t.tag=14,t=Bc(null,t,e,r,n);break a}if(a===ce){t.tag=10,t.type=e,t=ul(null,t,n);break a}}throw t=xe(e)||e,Error(i(306,t,``))}}return t;case 0:return Yc(e,t,t.type,t.pendingProps,n);case 1:return r=t.type,a=Ec(r,t.pendingProps),Zc(e,t,r,a,n);case 3:a:{if(Me(t,t.stateNode.containerInfo),e===null)throw Error(i(387));r=t.pendingProps;var o=t.memoizedState;a=o.element,xo(e,t),Oo(t,r,null,n);var s=t.memoizedState;if(r=s.cache,Ca(t,Ia,r),r!==o.cache&&Ea(t,[Ia],n,!0),Do(),r=s.element,o.isDehydrated){if(o={element:r,isDehydrated:!1,cache:s.cache},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){t=Qc(e,t,r,n);break a}if(r!==a){a=Xi(Error(i(424)),t),ya(a),t=Qc(e,t,r,n);break a}switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName===`HTML`?e.ownerDocument.body:e}for(P=um(e.firstChild),la=t,F=!0,ua=null,da=!0,n=vo(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|134221824,n=n.sibling}else{if(_a(),r===a){t=dl(e,t,n);break a}Rc(e,t,r,n)}t=t.child}return t;case 26:return Jc(e,t),e===null?(n=Pm(t.type,null,t.pendingProps,null))?t.memoizedState=n:F||(t.stateNode=pp(t.type,t.pendingProps,Ae.current,t)):t.memoizedState=Pm(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Pe(t),e===null&&F&&(r=t.stateNode=gm(t.type,t.pendingProps,Ae.current),la=t,da=!0,a=P,Cp(t.type)?(dm=a,P=um(r.firstChild)):P=a),Rc(e,t,t.pendingProps.children,n),Jc(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&F&&((a=r=P)&&(r=im(r,t.type,t.pendingProps,da),r===null?a=!1:(t.stateNode=r,la=t,P=um(r.firstChild),da=!1,a=!0)),a||pa(t)),Pe(t),a=t.type,o=t.pendingProps,s=e===null?null:e.memoizedProps,r=o.children,mp(a,o)?r=null:s!==null&&mp(a,s)&&(t.flags|=32),t.memoizedState!==null&&(a=rs(e,t,os,null,null,n),ch._currentValue=a),Jc(e,t),Rc(e,t,r,n),t.child;case 6:return e===null&&F&&((e=n=P)&&(n=am(n,t.pendingProps,da),n===null?e=!1:(t.stateNode=n,la=t,P=null,e=!0)),e||pa(t)),null;case 13:return B(e,t,n);case 4:return Me(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=_o(t,null,r,n):Rc(e,t,r,n),t.child;case 11:return zc(e,t,t.type,t.pendingProps,n);case 7:return r=t.pendingProps,Jc(e,t),Rc(e,t,r,n),t.child;case 8:return Rc(e,t,t.pendingProps.children,n),t.child;case 12:return Rc(e,t,t.pendingProps.children,n),t.child;case 10:return ul(e,t,n);case 9:return a=t.type._context,r=t.pendingProps.children,ka(t),a=Aa(a),r=r(a),t.flags|=1,Rc(e,t,r,n),t.child;case 14:return Bc(e,t,t.type,t.pendingProps,n);case 15:return Vc(e,t,t.type,t.pendingProps,n);case 19:return ll(e,t,n);case 31:return qc(e,t,n);case 22:return Hc(e,t,n,t.pendingProps);case 24:return ka(t),r=Aa(Ia),e===null?(a=Za(),a===null&&(a=K,o=La(),a.pooledCache=o,o.refCount++,o!==null&&(a.pooledCacheLanes|=n),a=o),t.memoizedState={parent:r,cache:a},bo(t),Ca(t,Ia,a)):((e.lanes&n)!==0&&(xo(e,t),Oo(t,null,null,n),Do()),a=e.memoizedState,o=t.memoizedState,a.parent===r?(r=o.cache,Ca(t,Ia,r),r!==a.cache&&Ea(t,[Ia],n,!0)):(a={parent:r,cache:r},t.memoizedState=a,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=a),Ca(t,Ia,r))),Rc(e,t,t.pendingProps.children,n),t.child;case 30:return t.stateNode===null&&(t.stateNode={autoName:null,paired:null,clones:null,ref:null}),r=t.pendingProps,r.name!=null&&r.name!==`auto`?t.flags|=e===null?18882560:18874368:F&&oa(t),e!==null&&e.memoizedProps.name!==r.name?t.flags|=4194816:Jc(e,t),Rc(e,t,r.children,n),t.child;case 29:throw t.pendingProps}throw Error(i(156,t.tag))}function hl(e){e.flags|=4}function gl(e,t,n,r,i){var a;if((a=!!(e.mode&32))&&(a=n===null?Ym(t,r):Ym(t,r)&&(r.src!==n.src||r.srcSet!==n.srcSet)),a){if(e.flags|=16777216,(i&335544128)===i){if(e.stateNode.complete)e.flags|=8192;else if(Wd())e.flags|=8192;else throw so=ro,to}}else e.flags&=-16777217}function _l(e,t){if(t.type!==`stylesheet`||t.state.loading&4)e.flags&=-16777217;else if(e.flags|=16777216,!Xm(t)){if(Wd())e.flags|=8192;else throw so=ro,to}}function vl(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag===22?536870912:vt(),e.lanes|=t,dd|=t)}function yl(e,t){if(!F)switch(e.tailMode){case`visible`:break;case`collapsed`:for(var n=e.tail,r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null;break;default:for(t=e.tail,n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null}}function bl(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&1206910976,r|=i.flags&1206910976,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function xl(e,t,n){var r=t.pendingProps;switch(sa(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return bl(t),null;case 1:return bl(t),null;case 3:return n=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),wa(Ia),Ne(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(ga(t)?hl(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,va())),bl(t),null;case 26:var a=t.type,o=t.memoizedState;return e===null?(hl(t),o===null?(bl(t),gl(t,a,null,r,n)):(bl(t),_l(t,o))):o?o===e.memoizedState?(bl(t),t.flags&=-16777217):(hl(t),bl(t),_l(t,o)):(e=e.memoizedProps,e!==r&&hl(t),bl(t),gl(t,a,e,r,n)),null;case 27:if(Fe(t),n=Ae.current,a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&hl(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return bl(t),t.subtreeFlags&=-33554433,null}e=Oe.current,ga(t)?ma(t,e):(e=gm(a,r,n),t.stateNode=e,hl(t))}return bl(t),t.subtreeFlags&=-33554433,null;case 5:if(Fe(t),a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&hl(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return bl(t),t.subtreeFlags&=-33554433,null}if(o=Oe.current,ga(t))ma(t,o);else{var s=up(Ae.current);switch(o){case 1:o=s.createElementNS(`http://www.w3.org/2000/svg`,a);break;case 2:o=s.createElementNS(`http://www.w3.org/1998/Math/MathML`,a);break;default:switch(a){case`svg`:o=s.createElementNS(`http://www.w3.org/2000/svg`,a);break;case`math`:o=s.createElementNS(`http://www.w3.org/1998/Math/MathML`,a);break;case`script`:o=s.createElement(`div`),o.innerHTML=`<script><\/script>`,o=o.removeChild(o.firstChild);break;case`select`:o=typeof r.is==`string`?s.createElement(`select`,{is:r.is}):s.createElement(`select`),r.multiple?o.multiple=!0:r.size&&(o.size=r.size);break;default:o=typeof r.is==`string`?s.createElement(a,{is:r.is}):s.createElement(a)}}o[At]=t,o[jt]=r;a:for(s=t.child;s!==null;){if(s.tag===5||s.tag===6)o.appendChild(s.stateNode);else if(s.tag!==4&&s.tag!==27&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===t)break a;for(;s.sibling===null;){if(s.return===null||s.return===t)break a;s=s.return}s.sibling.return=s.return,s=s.sibling}t.stateNode=o;a:switch(rp(o,a,r),a){case`button`:case`input`:case`select`:case`textarea`:r=!!r.autoFocus;break a;case`img`:r=!0;break a;default:r=!1}r&&hl(t)}}return bl(t),t.subtreeFlags&=-33554433,gl(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&hl(t);else{if(typeof r!=`string`&&t.stateNode===null)throw Error(i(166));if(e=Ae.current,ga(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,a=la,a!==null)switch(a.tag){case 27:case 5:r=a.memoizedProps}e[At]=t,e=!!(e.nodeValue===n||r!==null&&!0===r.suppressHydrationWarning||tp(e.nodeValue,n)),e||pa(t,!0)}else e=up(e).createTextNode(r),e[At]=t,t.stateNode=e}return bl(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=ga(t),n!==null){if(e===null){if(!r)throw Error(i(318));if(e=t.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(557));e[At]=t}else _a(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;bl(t),e=!1}else n=va(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(Ho(t),t):(Ho(t),null);if(t.flags&128)throw Error(i(558))}return bl(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(a=ga(t),r!==null&&r.dehydrated!==null){if(e===null){if(!a)throw Error(i(318));if(a=t.memoizedState,a=a===null?null:a.dehydrated,!a)throw Error(i(317));a[At]=t}else _a(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;bl(t),a=!1}else a=va(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return t.flags&256?(Ho(t),t):(Ho(t),null)}return Ho(t),t.flags&128?(t.lanes=n,t):(n=r!==null,e=e!==null&&e.memoizedState!==null,n&&(r=t.child,a=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(a=r.alternate.memoizedState.cachePool.pool),o=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(o=r.memoizedState.cachePool.pool),o!==a&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),vl(t,t.updateQueue),bl(t),null);case 4:return Ne(),e===null&&Gf(t.stateNode.containerInfo),t.flags|=67108864,bl(t),null;case 10:return wa(t.type),bl(t),null;case 19:if(Go(t),r=t.memoizedState,r===null)return bl(t),null;if(a=!!(t.flags&128),o=r.rendering,o===null){if(a)yl(r,!1);else{if(od!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=Ko(e),o!==null){for(t.flags|=128,yl(r,!1),e=o.updateQueue,t.updateQueue=e,vl(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)Ui(n,e),n=n.sibling;return Wo(t,Uo.current&1|2),F&&aa(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&Je()>_d&&(t.flags|=128,a=!0,yl(r,!1),t.lanes=4194304)}}else{if(!a){if(e=Ko(o),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,vl(t,e),yl(r,!0),r.tail===null&&r.tailMode!==`collapsed`&&r.tailMode!==`visible`&&!o.alternate&&!F)return bl(t),null}else 2*Je()-r.renderingStartTime>_d&&n!==536870912&&(t.flags|=128,a=!0,yl(r,!1),t.lanes=4194304)}r.isBackwards?(o.sibling=t.child,t.child=o):(e=r.last,e===null?t.child=o:e.sibling=o,r.last=o)}if(r.tail!==null){e=r.tail;a:{for(n=e;n!==null;){if(n.alternate!==null){n=!1;break a}n=n.sibling}n=!0}return r.rendering=e,r.tail=e.sibling,r.renderingStartTime=Je(),e.sibling=null,o=Uo.current,o=a?o&1|2:o&1,r.tailMode===`visible`||r.tailMode===`collapsed`||!n||F?Wo(t,o):(n=o,k(Io,t),k(Uo,n),Lo===null&&(Lo=t)),F&&aa(t,r.treeForkCount),e}return bl(t),null;case 22:case 23:return Ho(t),Fo(),r=t.memoizedState!==null,e===null?r&&(t.flags|=8192):e.memoizedState!==null!==r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(bl(t),t.subtreeFlags&6&&(t.flags|=8192)):bl(t),n=t.updateQueue,n!==null&&vl(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),e!==null&&De(Xa),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),wa(Ia),bl(t),null;case 25:return null;case 30:return t.flags|=33554432,bl(t),null}throw Error(i(156,t.tag))}function Sl(e,t){switch(sa(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return wa(Ia),Ne(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Fe(t),null;case 31:if(t.memoizedState!==null){if(Ho(t),t.alternate===null)throw Error(i(340));_a()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Ho(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(i(340));_a()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Go(t),e=t.flags,e&65536?(t.flags=e&-65537|128,e=t.memoizedState,e!==null&&(e.rendering=null,e.tail=null),t.flags|=4,t):null;case 4:return Ne(),null;case 10:return wa(t.type),null;case 22:case 23:return Ho(t),Fo(),e!==null&&De(Xa),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return wa(Ia),null;case 25:return null;default:return null}}function Cl(e,t){switch(sa(t),t.tag){case 3:wa(Ia),Ne();break;case 26:case 27:case 5:Fe(t);break;case 4:Ne();break;case 31:t.memoizedState!==null&&Ho(t);break;case 13:Ho(t);break;case 19:Go(t);break;case 10:wa(t.type);break;case 22:case 23:Ho(t),Fo(),e!==null&&De(Xa);break;case 24:wa(Ia)}}function wl(e,t){try{var n=t.updateQueue,r=n===null?null:n.lastEffect;if(r!==null){var i=r.next;n=i;do{if((n.tag&e)===e){r=void 0;var a=n.create,o=n.inst;r=a(),o.destroy=r}n=n.next}while(n!==i)}}catch(e){X(t,t.return,e)}}function Tl(e,t,n){try{var r=t.updateQueue,i=r===null?null:r.lastEffect;if(i!==null){var a=i.next;r=a;do{if((r.tag&e)===e){var o=r.inst,s=o.destroy;if(s!==void 0){o.destroy=void 0,i=t;var c=n,l=s;try{l()}catch(e){X(i,c,e)}}}r=r.next}while(r!==a)}}catch(e){X(t,t.return,e)}}function El(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{Ao(t,n)}catch(t){X(e,e.return,t)}}}function Dl(e,t,n){n.props=Ec(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){X(e,t,n)}}function Ol(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:var i=e.stateNode,a=Ei(e.memoizedProps,i);(i.ref===null||i.ref.name!==a)&&(i.ref=Fp(a)),r=i.ref;break;case 7:if(e.stateNode===null){var o=new Ip(e);f(e.child,!1,$p,o,void 0,void 0),e.stateNode=o}r=e.stateNode;break;default:r=e.stateNode}typeof n==`function`?e.refCleanup=n(r):n.current=r}}catch(n){X(e,t,n)}}function kl(e,t){var n=e.ref,r=e.refCleanup;if(n!==null){if(typeof r==`function`)try{r()}catch(n){X(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n==`function`)try{n(null)}catch(n){X(e,t,n)}else n.current=null}}function Al(e,t){if((e.tag===5||e.tag===27||e.tag===6)&&e.alternate===null&&t!==null)for(var n=0;n<t.length;n++)tm(e.stateNode,t[n])}function jl(e){for(var t=e.return;t!==null&&(Pl(t)&&tm(e.stateNode,t.stateNode),!Nl(t));)t=t.return}function Ml(e){for(var t=e.return;t!==null&&(Pl(t)&&nm(e.stateNode,t.stateNode),!Nl(t));)t=t.return}function Nl(e){return e.tag===5||e.tag===3||e.tag===27}function Pl(e){return e&&e.tag===7&&e.stateNode!==null}function Fl(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{a:switch(t){case`button`:case`input`:case`select`:case`textarea`:n.autoFocus&&r.focus();break a;case`img`:n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(t){X(e,e.return,t)}}function Il(e,t,n){try{var r=e.stateNode;ap(r,e.type,n,t),r[jt]=t}catch(t){X(e,e.return,t)}}function Ll(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Cp(e.type)||e.tag===4}function Rl(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||Ll(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Cp(e.type)||e.flags&2||e.child===null||e.tag===4)continue a;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function zl(e,t,n,r){var i=e.tag;if(i===5||i===6)i=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n).insertBefore(i,t):(t=n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n,t.appendChild(i),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=En)),Al(e,r),A=!0;else if(i!==4&&(i===27&&(Al(e,r),r=null,Cp(e.type)&&(n=e.stateNode,t=null)),e=e.child,e!==null))for(zl(e,t,n,r),e=e.sibling;e!==null;)zl(e,t,n,r),e=e.sibling}function Bl(e,t,n,r){var i=e.tag;if(i===5||i===6)i=e.stateNode,t?n.insertBefore(i,t):n.appendChild(i),Al(e,r),A=!0;else if(i!==4&&(i===27&&(Al(e,r),r=null,Cp(e.type)&&(n=e.stateNode)),e=e.child,e!==null))for(Bl(e,t,n,r),e=e.sibling;e!==null;)Bl(e,t,n,r),e=e.sibling}function Vl(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);rp(t,r,n),t[At]=e,t[jt]=n}catch(t){X(e,e.return,t)}}var Hl=!1,Ul=null;function Wl(e){(e.tag===30||e.subtreeFlags&33554432)&&(Hl=!0)}var Gl=null;function Kl(){var e=Gl;return Gl=null,e}var ql=0;function Jl(e,t,n,r,i){return ql=0,Yl(e.child,t,n,r,i)}function Yl(e,t,n,r,i){for(var a=!1;e!==null;){if(e.tag===5){var o=e.stateNode;if(r!==null){var s=kp(o);r.push(s),s.view&&(a=!0)}else a||kp(o).view&&(a=!0);Hl=!0,Ep(o,ql===0?t:t+`_`+ql,n),ql++}else(e.tag!==22||e.memoizedState===null)&&(e.tag===30&&i||Yl(e.child,t,n,r,i)&&(a=!0));e=e.sibling}return a}function Xl(e,t){for(;e!==null;)e.tag===5?Dp(e.stateNode,e.memoizedProps):(e.tag!==22||e.memoizedState===null)&&(e.tag===30&&t||Xl(e.child,t)),e=e.sibling}function Zl(e){if(e.subtreeFlags&18874368)for(e=e.child;e!==null;){if((e.tag!==22||e.memoizedState===null)&&(Zl(e),e.tag===30&&e.flags&18874368&&e.stateNode.paired)){var t=e.memoizedProps;if(t.name==null||t.name===`auto`)throw Error(i(544));var n=t.name;t=Oi(t.default,t.share),t!==`none`&&(Jl(e,n,t,null,!1)||Xl(e.child,!1))}e=e.sibling}}function Ql(e,t){if(e.tag===30){var n=e.stateNode,r=e.memoizedProps,i=Ei(r,n),a=Oi(r.default,n.paired?r.share:r.enter);a===`none`?Zl(e):Jl(e,i,a,null,!1)?(Zl(e),n.paired||t||Pd(e,r.onEnter)):Xl(e.child,!1)}else if(e.subtreeFlags&33554432)for(e=e.child;e!==null;)Ql(e,t),e=e.sibling;else Zl(e)}function $l(e){if(Ul!==null&&Ul.size!==0){var t=Ul;if(e.subtreeFlags&18874368)for(e=e.child;e!==null;){if(e.tag!==22||e.memoizedState===null){if(e.tag===30&&e.flags&18874368){var n=e.memoizedProps,r=n.name;if(r!=null&&r!==`auto`){var i=t.get(r);if(i!==void 0){var a=Oi(n.default,n.share);if(a!==`none`&&(Jl(e,r,a,null,!1)?(a=e.stateNode,i.paired=a,a.paired=i,Pd(e,n.onShare)):Xl(e.child,!1)),t.delete(r),t.size===0)break}}}$l(e)}e=e.sibling}}}function eu(e){if(e.tag===30){var t=e.memoizedProps,n=Ei(t,e.stateNode),r=Ul===null?void 0:Ul.get(n),i=Oi(t.default,r===void 0?t.exit:t.share);i!==`none`&&(Jl(e,n,i,null,!1)?r===void 0?Pd(e,t.onExit):(i=e.stateNode,r.paired=i,i.paired=r,Ul.delete(n),Pd(e,t.onShare)):Xl(e.child,!1)),Ul!==null&&$l(e)}else if(e.subtreeFlags&33554432)for(e=e.child;e!==null;)eu(e),e=e.sibling;else Ul!==null&&$l(e)}function tu(e){for(e=e.child;e!==null;){if(e.tag===30){var t=e.memoizedProps,n=Ei(t,e.stateNode);t=Oi(t.default,t.update),e.flags&=-5,t!==`none`&&Jl(e,n,t,e.memoizedState=[],!1)}else e.subtreeFlags&33554432&&tu(e);e=e.sibling}}function nu(e){if(e.subtreeFlags&18874368)for(e=e.child;e!==null;){if(e.tag!==22||e.memoizedState===null){if(e.tag===30&&e.flags&18874368){var t=e.stateNode;t.paired!==null&&(t.paired=null,Xl(e.child,!1))}nu(e)}e=e.sibling}}function ru(e){if(e.tag===30)e.stateNode.paired=null,Xl(e.child,!1),nu(e);else if(e.subtreeFlags&33554432)for(e=e.child;e!==null;)ru(e),e=e.sibling;else nu(e)}function iu(e){for(e=e.child;e!==null;)e.tag===30?Xl(e.child,!1):e.subtreeFlags&33554432&&iu(e),e=e.sibling}function au(e,t,n,r,i,a,o){for(var s=!1;t!==null;){if(t.tag===5){var c=t.stateNode;if(a!==null&&ql<a.length){var l=a[ql],u=kp(c);(l.view||u.view)&&(s=!0);var d;if(d=!(e.flags&4)){if(u.clip)d=!0;else{d=l.rect;var f=u.rect;d=d.y!==f.y||d.x!==f.x||d.height!==f.height||d.width!==f.width}}d&&(e.flags|=4),u.abs?u=!l.abs:(l=l.rect,u=u.rect,u=l.height!==u.height||l.width!==u.width),u&&(e.flags|=32)}else e.flags|=32;e.flags&4&&Ep(c,ql===0?n:n+`_`+ql,i),s&&e.flags&4||(Gl===null&&(Gl=[]),Gl.push(c,ql===0?r:r+`_`+ql,t.memoizedProps)),ql++}else(t.tag!==22||t.memoizedState===null)&&(t.tag===30&&o?e.flags|=t.flags&32:au(e,t.child,n,r,i,a,o)&&(s=!0));t=t.sibling}return s}function ou(e,t){for(e=e.child;e!==null;){if(e.tag===30){var n=e.memoizedProps,r=e.stateNode,i=Ei(n,r),a=Oi(n.default,n.update);if(t){r=r.clones;var o=r===null?null:r.map(Ap)}else o=e.memoizedState,e.memoizedState=null;r=e;var s=e.child;ql=0,i=au(r,s,i,i,a,o,!1),e.flags&4&&i&&(t||Pd(e,n.onUpdate))}else e.subtreeFlags&33554432&&ou(e,t);e=e.sibling}}var su=!1,H=!1,cu=!1,lu=!1,uu=typeof WeakSet==`function`?WeakSet:Set,du=null,fu=!1,pu=!1,mu=!1,hu=!1;function gu(e,t,n){if(e=e.containerInfo,cp=_h,e=ni(e),ri(e)){if(`selectionStart`in e)var r={start:e.selectionStart,end:e.selectionEnd};else a:{r=(r=e.ownerDocument)&&r.defaultView||window;var i=r.getSelection&&r.getSelection();if(i&&i.rangeCount!==0){r=i.anchorNode;var a=i.anchorOffset,o=i.focusNode;i=i.focusOffset;try{r.nodeType,o.nodeType}catch{r=null;break a}var s=0,c=-1,l=-1,u=0,d=0,f=e,p=null;b:for(;;){for(var m;f!==r||a!==0&&f.nodeType!==3||(c=s+a),f!==o||i!==0&&f.nodeType!==3||(l=s+i),f.nodeType===3&&(s+=f.nodeValue.length),(m=f.firstChild)!==null;)p=f,f=m;for(;;){if(f===e)break b;if(p===r&&++u===a&&(c=s),p===o&&++d===i&&(l=s),(m=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=m}r=c===-1||l===-1?null:{start:c,end:l}}else r=null}r||={start:0,end:0}}else r=null;for(lp={focusedElem:e,selectionRange:r},_h=!1,n=(n&335544064)===n,du=t,t=n?9270:1024;du!==null;){if(e=du,n&&(r=e.deletions,r!==null))for(a=0;a<r.length;a++)n&&eu(r[a]);if(e.alternate===null&&e.flags&2)n&&Wl(e),_u(n);else{if(e.tag===22){if(r=e.alternate,e.memoizedState!==null){r!==null&&r.memoizedState===null&&n&&eu(r),_u(n);continue}if(r!==null&&r.memoizedState!==null){n&&Wl(e),_u(n);continue}}r=e.child,(e.subtreeFlags&t)!==0&&r!==null?(r.return=e,du=r):(n&&tu(e),_u(n))}}Ul=null}function _u(e){for(;du!==null;){var t=du,n=e,r=t.alternate,a=t.flags;switch(t.tag){case 0:case 11:case 15:break;case 1:if(a&1024&&r!==null){n=void 0,a=r.memoizedProps,r=r.memoizedState;var o=t.stateNode;try{var s=Ec(t.type,a);n=o.getSnapshotBeforeUpdate(s,r),o.__reactInternalSnapshotBeforeUpdate=n}catch(e){X(t,t.return,e)}}break;case 3:if(a&1024){if(r=t.stateNode.containerInfo,n=r.nodeType,n===9)rm(r);else if(n===1)switch(r.nodeName){case`HEAD`:case`HTML`:case`BODY`:rm(r);break;default:r.textContent=``}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;case 30:n&&r!==null&&(n=Ei(r.memoizedProps,r.stateNode),a=t.memoizedProps,a=Oi(a.default,a.update),a!==`none`&&Jl(r,n,a,r.memoizedState=[],!0));break;default:if(a&1024)throw Error(i(163))}if(r=t.sibling,r!==null){r.return=t.return,du=r;break}du=t.return}}function vu(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:Ru(e,n),r&4&&wl(5,n);break;case 1:if(Ru(e,n),r&4){if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(e){X(n,n.return,e)}else{var i=Ec(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(e){X(n,n.return,e)}}}r&64&&El(n),r&512&&Ol(n,n.return);break;case 3:if(Ru(e,n),r&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{Ao(e,t)}catch(e){X(n,n.return,e)}}break;case 27:t===null&&r&4&&Vl(n);case 26:case 5:Ru(e,n),t===null&&r&4&&Fl(n),r&512&&Ol(n,n.return);break;case 12:Ru(e,n);break;case 31:Ru(e,n),r&4&&Du(e,n);break;case 13:Ru(e,n),r&4&&Ou(e,n),r&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=vf.bind(null,n),lm(e,n))));break;case 22:if(r=n.memoizedState!==null||su,!r){var a=t!==null&&t.memoizedState!==null||H;t=su,i=H,su=r,(H=a)&&!i?(r=2,n.subtreeFlags&8772&&(r|=1),U(e,n,r)):Ru(e,n),su=t,H=i}break;case 30:Ru(e,n),r&512&&Ol(n,n.return);break;case 7:r&512&&Ol(n,n.return);default:Ru(e,n)}}function yu(e,t){for(e=e.child;e!==null;)bu(e,t),e=e.sibling}function bu(e,t){switch(e.tag){case 5:case 26:try{var n=e.stateNode;if(t){var r=n.style;typeof r.setProperty==`function`?r.setProperty(`display`,`none`,`important`):r.display=`none`}else{var i=e.stateNode,a=e.memoizedProps.style,o=a!=null&&a.hasOwnProperty(`display`)?a.display:null;i.style.display=o==null||typeof o==`boolean`?``:(``+o).trim()}}catch(t){X(e,e.return,t)}xu(e,t);break;case 6:try{e.stateNode.nodeValue=t?``:e.memoizedProps,A=!0}catch(t){X(e,e.return,t)}break;case 18:try{var s=e.stateNode;t?Tp(s,!0):Tp(e.stateNode,!1)}catch(t){X(e,e.return,t)}break;case 22:case 23:e.memoizedState===null&&yu(e,t);break;default:yu(e,t)}}function xu(e,t){if(e.subtreeFlags&67108864)for(e=e.child;e!==null;){a:{var n=e,r=t;switch(n.tag){case 4:bu(n,r);break a;case 22:n.memoizedState===null&&xu(n,r);break a;default:xu(n,r)}}e=e.sibling}}function Su(e){var t=e.alternate;t!==null&&(e.alternate=null,Su(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&zt(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Cu=null,wu=!1;function Tu(e,t,n){for(n=n.child;n!==null;)Eu(e,t,n),n=n.sibling}function Eu(e,t,n){if(it&&typeof it.onCommitFiberUnmount==`function`)try{it.onCommitFiberUnmount(rt,n)}catch{}switch(n.tag){case 26:H||kl(n,t),Tu(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&!H&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:H||kl(n,t),Ml(n);var r=Cu,i=wu;Cp(n.type)&&(Cu=n.stateNode,wu=!1),Tu(e,t,n),_m(n.stateNode,n.type,n.memoizedProps),Cu=r,wu=i;break;case 5:H||kl(n,t),Ml(n);case 6:if(n.tag===6&&Ml(n),r=Cu,i=wu,Cu=null,Tu(e,t,n),Cu=r,wu=i,Cu!==null){if(wu)try{(Cu.nodeType===9?Cu.body:Cu.nodeName===`HTML`?Cu.ownerDocument.body:Cu).removeChild(n.stateNode),A=!0}catch(e){X(n,t,e)}else try{Cu.removeChild(n.stateNode),A=!0}catch(e){X(n,t,e)}}break;case 18:Cu!==null&&(wu?(e=Cu,wp(e.nodeType===9?e.body:e.nodeName===`HTML`?e.ownerDocument.body:e,n.stateNode),Uh(e)):wp(Cu,n.stateNode));break;case 4:r=Cu,i=wu,Cu=n.stateNode.containerInfo,wu=!0,Tu(e,t,n),Cu=r,wu=i;break;case 0:case 11:case 14:case 15:Tl(2,n,t),H||Tl(4,n,t),Tu(e,t,n);break;case 1:H||(kl(n,t),r=n.stateNode,typeof r.componentWillUnmount==`function`&&Dl(n,t,r)),Tu(e,t,n);break;case 21:Tu(e,t,n);break;case 22:H=(r=H)||n.memoizedState!==null,Tu(e,t,n),H=r;break;case 30:kl(n,t),Tu(e,t,n);break;case 7:H||kl(n,t),Tu(e,t,n);break;default:Tu(e,t,n)}}function Du(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Uh(e)}catch(e){X(t,t.return,e)}}}function Ou(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Uh(e)}catch(e){X(t,t.return,e)}}function ku(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new uu),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new uu),t;default:throw Error(i(435,e.tag))}}function Au(e,t){var n=ku(e);t.forEach(function(t){if(!n.has(t)){n.add(t);var r=yf.bind(null,e,t);t.then(r,r)}})}function ju(e,t,n){var r=t.deletions;if(r!==null)for(var a=0;a<r.length;a++){var o=r[a],s=e,c=t,l=c;a:for(;l!==null;){switch(l.tag){case 27:if(Cp(l.type)){Cu=l.stateNode,wu=!1;break a}break;case 5:Cu=l.stateNode,wu=!1;break a;case 3:case 4:Cu=l.stateNode.containerInfo,wu=!0;break a}l=l.return}if(Cu===null)throw Error(i(160));Eu(s,c,o),Cu=null,wu=!1,s=o.alternate,s!==null&&(s.return=null),o.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Nu(t,e,n),t=t.sibling}var Mu=null;function Nu(e,t,n){var r=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(a&4&&(r=e.updateQueue,r=r===null?null:r.events,r!==null))for(var o=0;o<r.length;o++){var s=r[o];s.ref.impl=s.nextImpl}ju(t,e,n),Pu(e),a&4&&(Tl(3,e,e.return),wl(3,e),Tl(5,e,e.return));break;case 1:ju(t,e,n),Pu(e),a&512&&(H||r===null||kl(r,r.return)),a&64&&su&&(e=e.updateQueue,e!==null&&(t=e.callbacks,t!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?t:n.concat(t))));break;case 26:if(o=Mu,ju(t,e,n),Pu(e),a&512&&(H||r===null||kl(r,r.return)),a&4){if(a=r===null?null:r.memoizedState,n=e.memoizedState,r===null){if(n===null){if(e.stateNode===null){if(su)e.stateNode=pp(e.type,e.memoizedProps,t.containerInfo,e);else{a:{t=e.type,n=e.memoizedProps,a=o.ownerDocument||o;b:switch(t){case`title`:r=a.getElementsByTagName(`title`)[0],(!r||r[Lt]||r[At]||r.namespaceURI===`http://www.w3.org/2000/svg`||r.hasAttribute(`itemprop`))&&(r=a.createElement(t),a.head.insertBefore(r,a.querySelector(`head > title`))),rp(r,t,n),r[At]=e,Wt(r),t=r;break a;case`link`:if(o=Km(`link`,`href`,a).get(t+(n.href||``))){for(s=0;s<o.length;s++)if(r=o[s],r.getAttribute(`href`)===(n.href==null||n.href===``?null:n.href)&&r.getAttribute(`rel`)===(n.rel==null?null:n.rel)&&r.getAttribute(`title`)===(n.title==null?null:n.title)&&r.getAttribute(`crossorigin`)===(n.crossOrigin==null?null:n.crossOrigin)){o.splice(s,1);break b}}r=a.createElement(t),rp(r,t,n),a.head.appendChild(r);break;case`meta`:if(o=Km(`meta`,`content`,a).get(t+(n.content||``))){for(s=0;s<o.length;s++)if(r=o[s],r.getAttribute(`content`)===(n.content==null?null:``+n.content)&&r.getAttribute(`name`)===(n.name==null?null:n.name)&&r.getAttribute(`property`)===(n.property==null?null:n.property)&&r.getAttribute(`http-equiv`)===(n.httpEquiv==null?null:n.httpEquiv)&&r.getAttribute(`charset`)===(n.charSet==null?null:n.charSet)){o.splice(s,1);break b}}r=a.createElement(t),rp(r,t,n),a.head.appendChild(r);break;default:throw Error(i(468,t))}r[At]=e,Wt(r),t=r}e.stateNode=t}}else su||qm(o,e.type,e.stateNode)}else e.stateNode=Vm(o,n,e.memoizedProps)}else a===n?n===null&&e.stateNode!==null&&Il(e,e.memoizedProps,r.memoizedProps):(a===null?(t=r.stateNode,t===null||H||t.parentNode.removeChild(t)):a.count--,n===null?su||qm(o,e.type,e.stateNode):Vm(o,n,e.memoizedProps))}break;case 27:ju(t,e,n),Pu(e),a&512&&(H||r===null||kl(r,r.return)),r!==null&&a&4&&Il(e,e.memoizedProps,r.memoizedProps);break;case 5:if(o=cu,cu=!1,ju(t,e,n),cu=o,Pu(e),a&512&&(H||r===null||kl(r,r.return)),e.flags&32){t=e.stateNode;try{vn(t,``),A=!0}catch(t){X(e,e.return,t)}}a&4&&e.stateNode!=null&&(t=e.memoizedProps,Il(e,t,r===null?t:r.memoizedProps)),a&1024&&(lu=!0);break;case 6:if(ju(t,e,n),Pu(e),a&4){if(e.stateNode===null)throw Error(i(162));t=e.memoizedProps,n=e.stateNode;try{n.nodeValue=t,A=!0}catch(t){X(e,e.return,t)}}break;case 3:if(A=!1,Gm=null,o=Mu,Mu=xm(t.containerInfo),ju(t,e,n),Mu=o,Pu(e),a&4&&r!==null&&r.memoizedState.isDehydrated)try{Uh(t.containerInfo)}catch(t){X(e,e.return,t)}lu&&(lu=!1,Fu(e)),A=!1;break;case 4:a=cu,cu=su,r=en(),o=Mu,Mu=xm(e.stateNode.containerInfo),ju(t,e,n),Pu(e),Mu=o,A&&pu&&(mu=!0),A=r,cu=a;break;case 12:ju(t,e,n),Pu(e);break;case 31:ju(t,e,n),Pu(e),a&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,Au(e,t)));break;case 13:ju(t,e,n),Pu(e),e.child.flags&8192&&e.memoizedState!==null!=(r!==null&&r.memoizedState!==null)&&(hd=Je()),a&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,Au(e,t)));break;case 22:o=e.memoizedState!==null,s=r!==null&&r.memoizedState!==null;var c=su,l=H,u=cu;su=c||o,cu=u||o,H=l||s,ju(t,e,n),H=l,cu=u,su=c,Pu(e),a&8192&&(t=e.stateNode,t._visibility=o?t._visibility&-2:t._visibility|1,!o||r===null||s||su||H||(t=s||H,n=su,r=H,su=o||su,H=t,zu(e,2),su=n,H=r),!o&&cu||yu(e,o)),a&4&&(t=e.updateQueue,t!==null&&(n=t.retryQueue,n!==null&&(t.retryQueue=null,Au(e,n))));break;case 19:ju(t,e,n),Pu(e),a&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,Au(e,t)));break;case 30:a&512&&(H||r===null||kl(r,r.return)),a=en(),o=pu,s=(n&335544064)===n,c=e.memoizedProps,pu=s&&Oi(c.default,c.update)!==`none`,ju(t,e,n),Pu(e),s&&r!==null&&A&&(e.flags|=4),pu=o,A=a;break;case 21:break;case 7:a&512&&(H||r===null||kl(r,r.return)),r&&r.stateNode!==null&&(r.stateNode._fragmentFiber=e);default:ju(t,e,n),Pu(e)}}function Pu(e){var t=e.flags;if(t&2){try{for(var n,r=e.return;r!==null;){if(Ll(r)){n=r;break}r=r.return}r=null;for(var a=e.return;a!==null;){if(Pl(a)){var o=a.stateNode;r===null?r=[o]:r.push(o)}if(Nl(a))break;a=a.return}var s=r;if(n==null)throw Error(i(160));switch(n.tag){case 27:var c=n.stateNode;Bl(e,Rl(e),c,s);break;case 5:var l=n.stateNode;n.flags&32&&(vn(l,``),n.flags&=-33),Bl(e,Rl(e),l,s);break;case 3:case 4:var u=n.stateNode.containerInfo;zl(e,Rl(e),u,s);break;default:throw Error(i(161))}}catch(t){X(e,e.return,t)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Fu(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Fu(t),t.tag===5&&t.flags&1024&&(t=t.stateNode,_h=!0,t.reset(),_h=!1),e=e.sibling}}function Iu(e,t){if(t.subtreeFlags&9270)for(t=t.child;t!==null;)Lu(t,e),t=t.sibling;else ou(t,!1)}function Lu(e,t){var n=e.alternate;if(n===null)Ql(e,!1);else switch(e.tag){case 3:if(hu=fu=!1,Kl(),Iu(t,e),!fu&&!mu){if(e=Gl,e!==null)for(var r=0;r<e.length;r+=3){n=e[r];var i=e[r+1];Dp(n,e[r+2]),n=n.ownerDocument.documentElement,n!==null&&n.animate({opacity:[0,0],pointerEvents:[`none`,`none`]},{duration:0,fill:`forwards`,pseudoElement:`::view-transition-group(`+i+`)`})}e=t.containerInfo,e=e.nodeType===9?e.documentElement:e.ownerDocument.documentElement,e!==null&&e.style.viewTransitionName===``&&(e.style.viewTransitionName=`none`,e.animate({opacity:[0,0],pointerEvents:[`none`,`none`]},{duration:0,fill:`forwards`,pseudoElement:`::view-transition-group(root)`}),e.animate({width:[0,0],height:[0,0]},{duration:0,fill:`forwards`,pseudoElement:`::view-transition`})),hu=!0}Gl=null;break;case 5:Iu(t,e);break;case 4:r=fu,fu=!1,Iu(t,e),fu&&(mu=!0),fu=r;break;case 22:e.memoizedState===null&&(n.memoizedState===null?Iu(t,e):Ql(e,!1));break;case 30:r=fu,i=Kl(),fu=!1,Iu(t,e),fu&&(e.flags|=4);var a=e.memoizedProps,o=e.stateNode;t=Ei(a,o),o=Ei(n.memoizedProps,o);var s=Oi(a.default,a.update);s===`none`?t=!1:(a=n.memoizedState,n.memoizedState=null,n=e.child,ql=0,t=au(e,n,t,o,s,a,!0),ql!==(a===null?0:a.length)&&(e.flags|=32)),e.flags&4&&t?(Pd(e,e.memoizedProps.onUpdate),Gl=i):i!==null&&(i.push.apply(i,Gl),Gl=i),fu=e.flags&32?!0:r;break;default:Iu(t,e)}}function Ru(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)vu(e,t.alternate,t),t=t.sibling}function zu(e,t){for(e=e.child;e!==null;){var n=e,r=t;switch(n.tag){case 0:case 11:case 14:case 15:Tl(4,n,n.return),zu(n,r);break;case 1:kl(n,n.return);var i=n.stateNode;typeof i.componentWillUnmount==`function`&&Dl(n,n.return,i),zu(n,r);break;case 27:r&2&&_m(n.stateNode,n.type,n.memoizedProps);case 5:kl(n,n.return),n.tag!==5&&n.tag!==27||Ml(n),zu(n,r);break;case 6:Ml(n);break;case 26:kl(n,n.return),i=n.stateNode,n.memoizedState!==null||i===null||H||i.parentNode.removeChild(i),zu(n,r);break;case 22:n.memoizedState===null&&zu(n,r);break;case 30:kl(n,n.return),zu(n,r);break;case 7:kl(n,n.return);default:zu(n,r)}e=e.sibling}}function U(e,t,n){for(n=t.subtreeFlags&8772?n:n&-2,t=t.child;t!==null;){var r=t.alternate,i=e,a=t,o=a.flags,s=!!(n&1);switch(a.tag){case 0:case 11:case 15:U(i,a,n),wl(4,a);break;case 1:if(U(i,a,n),r=a,i=r.stateNode,typeof i.componentDidMount==`function`)try{i.componentDidMount()}catch(e){X(r,r.return,e)}if(r=a,i=r.updateQueue,i!==null){var c=r.stateNode;try{var l=i.shared.hiddenCallbacks;if(l!==null)for(i.shared.hiddenCallbacks=null,i=0;i<l.length;i++)ko(l[i],c)}catch(e){X(r,r.return,e)}}s&&o&64&&El(a),Ol(a,a.return);break;case 27:n&2&&Vl(a);case 5:a.tag!==5&&a.tag!==27||jl(a),U(i,a,n),s&&r===null&&o&4&&Fl(a),Ol(a,a.return);break;case 6:jl(a);break;case 26:c=a.stateNode,a.memoizedState!==null||c===null||su||qm(xm(c.ownerDocument),a.type,c),U(i,a,n),s&&r===null&&o&4&&Fl(a),Ol(a,a.return);break;case 12:U(i,a,n);break;case 31:U(i,a,n),s&&o&4&&Du(i,a);break;case 13:U(i,a,n),s&&o&4&&Ou(i,a);break;case 22:a.memoizedState===null&&U(i,a,n),Ol(a,a.return);break;case 30:U(i,a,n),Ol(a,a.return);break;case 7:Ol(a,a.return);default:U(i,a,n)}t=t.sibling}}function Bu(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&Ra(n))}function Vu(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Ra(e))}function Hu(e,t,n,r){var i=(n&335544064)===n;if(t.subtreeFlags&(i?10262:10256))for(t=t.child;t!==null;)Uu(e,t,n,r),t=t.sibling;else i&&iu(t)}function Uu(e,t,n,r){var i=(n&335544064)===n;i&&t.alternate===null&&t.return!==null&&t.return.alternate!==null&&ru(t);var a=t.flags;switch(t.tag){case 0:case 11:case 15:Hu(e,t,n,r),a&2048&&wl(9,t);break;case 1:Hu(e,t,n,r);break;case 3:Hu(e,t,n,r),i&&hu&&(e=e.containerInfo,e=e.nodeType===9?e.body:e.nodeName===`HTML`?e.ownerDocument.body:e,e.style.viewTransitionName===`root`&&(e.style.viewTransitionName=``),e=e.ownerDocument.documentElement,e!==null&&e.style.viewTransitionName===`none`&&(e.style.viewTransitionName=``)),a&2048&&(a=null,t.alternate!==null&&(a=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==a&&(t.refCount++,a!=null&&Ra(a)));break;case 12:if(a&2048){Hu(e,t,n,r),a=t.stateNode;try{var o=t.memoizedProps,s=o.id,c=o.onPostCommit;typeof c==`function`&&c(s,t.alternate===null?`mount`:`update`,a.passiveEffectDuration,-0)}catch(e){X(t,t.return,e)}}else Hu(e,t,n,r);break;case 31:Hu(e,t,n,r);break;case 13:Hu(e,t,n,r);break;case 23:break;case 22:o=t.stateNode,s=t.alternate,t.memoizedState===null?(i&&s!==null&&s.memoizedState!==null&&ru(t),o._visibility&2?Hu(e,t,n,r):(o._visibility|=2,W(e,t,n,r,!!(t.subtreeFlags&10256)||!1))):(i&&s!==null&&s.memoizedState===null&&ru(s),o._visibility&2?Hu(e,t,n,r):Wu(e,t)),a&2048&&Bu(s,t);break;case 24:Hu(e,t,n,r),a&2048&&Vu(t.alternate,t);break;case 30:i&&(a=t.alternate,a!==null&&(Xl(a.child,!0),Xl(t.child,!0))),Hu(e,t,n,r);break;default:Hu(e,t,n,r)}}function W(e,t,n,r,i){for(i&&=!!(t.subtreeFlags&10256)||!1,t=t.child;t!==null;){var a=e,o=t,s=n,c=r,l=o.flags;switch(o.tag){case 0:case 11:case 15:W(a,o,s,c,i),wl(8,o);break;case 23:break;case 22:var u=o.stateNode;o.memoizedState===null?(u._visibility|=2,W(a,o,s,c,i)):u._visibility&2?W(a,o,s,c,i):Wu(a,o),i&&l&2048&&Bu(o.alternate,o);break;case 24:W(a,o,s,c,i),i&&l&2048&&Vu(o.alternate,o);break;default:W(a,o,s,c,i)}t=t.sibling}}function Wu(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,r=t,i=r.flags;switch(r.tag){case 22:Wu(n,r),i&2048&&Bu(r.alternate,r);break;case 24:Wu(n,r),i&2048&&Vu(r.alternate,r);break;default:Wu(n,r)}t=t.sibling}}var Gu=8192;function Ku(e,t,n){if(e.subtreeFlags&Gu)for(e=e.child;e!==null;)qu(e,t,n),e=e.sibling}function qu(e,t,n){switch(e.tag){case 26:Ku(e,t,n),e.flags&Gu&&(e.memoizedState===null?(e=e.stateNode,(t&335544128)===t&&Qm(n,e)):$m(n,Mu,e.memoizedState,e.memoizedProps));break;case 5:Ku(e,t,n),e.flags&Gu&&(e=e.stateNode,(t&335544128)===t&&Qm(n,e));break;case 3:case 4:var r=Mu;Mu=xm(e.stateNode.containerInfo),Ku(e,t,n),Mu=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=Gu,Gu=16777216,Ku(e,t,n),Gu=r):Ku(e,t,n));break;case 30:if((e.flags&Gu)!==0&&(r=e.memoizedProps.name,r!=null&&r!==`auto`)){var i=e.stateNode;i.paired=null,Ul===null&&(Ul=new Map),Ul.set(r,i)}Ku(e,t,n);break;default:Ku(e,t,n)}}function Ju(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Yu(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];du=r,Qu(r,e)}Ju(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Xu(e),e=e.sibling}function Xu(e){switch(e.tag){case 0:case 11:case 15:Yu(e),e.flags&2048&&Tl(9,e,e.return);break;case 3:Yu(e);break;case 12:Yu(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Zu(e)):Yu(e);break;default:Yu(e)}}function Zu(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];du=r,Qu(r,e)}Ju(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Tl(8,t,t.return),Zu(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Zu(t));break;default:Zu(t)}e=e.sibling}}function Qu(e,t){for(;du!==null;){var n=du;switch(n.tag){case 0:case 11:case 15:Tl(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var r=n.memoizedState.cachePool.pool;r!=null&&r.refCount++}break;case 24:Ra(n.memoizedState.cache)}if(r=n.child,r!==null)r.return=n,du=r;else a:for(n=e;du!==null;){r=du;var i=r.sibling,a=r.return;if(Su(r),r===n){du=null;break a}if(i!==null){i.return=a,du=i;break a}du=a}}}var $u={getCacheForType:function(e){var t=Aa(Ia),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return Aa(Ia).controller.signal}},ed=typeof WeakMap==`function`?WeakMap:Map,G=0,K=null,q=null,J=0,Y=0,td=null,nd=!1,rd=!1,id=!1,ad=0,od=0,sd=0,cd=0,ld=0,ud=0,dd=0,fd=null,pd=null,md=!1,hd=0,gd=0,_d=1/0,vd=null,yd=null,bd=0,xd=null,Sd=null,Cd=0,wd=0,Td=null,Ed=null,Dd=null,Od=null,kd=null,Ad=0,jd=null;function Md(){return G&2&&J!==0?J&-J:D.T===null?Dt():Ff()}function Nd(){if(ud===0){if(!(J&536870912)||F){var e=dt;dt<<=1,!(dt&3932160)&&(dt=262144),ud=e}else ud=536870912}return e=Io.current,e!==null&&(e.flags|=32),ud}function Pd(e,t){if(t!=null){var n=e.stateNode,r=n.ref;r===null&&(r=n.ref=Fp(Ei(e.memoizedProps,n))),Od===null&&(Od=[]),Od.push(t.bind(null,r))}}function Fd(e,t,n){(e===K&&(Y===2||Y===9)||e.cancelPendingCommit!==null)&&(Hd(e,0),zd(e,J,ud,!1)),bt(e,n),(!(G&2)||e!==K)&&(e===K&&(!(G&2)&&(cd|=n),od===4&&zd(e,J,ud,!1)),Df(e))}function Id(e,t,n){if(G&6)throw Error(i(327));var r=!n&&!(t&127)&&(t&e.expiredLanes)===0||ht(e,t),a=r?Xd(e,t):Jd(e,t,!0),o=r;do{if(a===0){rd&&!r&&zd(e,t,0,!1);break}if(n=e.current.alternate,o&&!Rd(n)){a=Jd(e,t,!1),o=!1;continue}if(a===2){if(o=t,e.errorRecoveryDisabledLanes&o)var s=0;else s=e.pendingLanes&-536870913,s=s===0?s&536870912?536870912:0:s;if(s!==0){t=s;a:{var c=e;a=fd;var l=c.current.memoizedState.isDehydrated;if(l&&(Hd(c,s).flags|=256),s=Jd(c,s,!1),s!==2&&s!==6){if(id&&!l){c.errorRecoveryDisabledLanes|=o,cd|=o,a=4;break a}o=pd,pd=a,o!==null&&(pd===null?pd=o:pd.push.apply(pd,o))}a=s}if(o=!1,a!==2)continue}}if(a===1){Hd(e,0),zd(e,t,0,!0);break}a:{switch(r=e,o=a,o){case 0:case 1:throw Error(i(345));case 4:if((t&4194048)!==t&&(t&62914560)!==t)break;case 6:zd(r,t,ud,!nd);break a;case 2:pd=null;break;case 3:case 5:break;default:throw Error(i(329))}if((t&62914560)===t&&(a=hd+300-Je(),10<a)){if(zd(r,t,ud,!nd),mt(r,0,!0)!==0)break a;Cd=t,r.timeoutHandle=_p(Ld.bind(null,r,n,pd,vd,md,t,ud,cd,dd,nd,o,`Throttled`,-0,0),a);break a}Ld(r,n,pd,vd,md,t,ud,cd,dd,nd,o,null,-0,0)}break}while(1);Df(e)}function Ld(e,t,n,r,i,a,o,s,c,l,u,d,f,p){e.timeoutHandle=-1;var m=t.subtreeFlags,h=(a&335544064)===a;if(d=null,(h||m&8192||(m&16785408)==16785408)&&(d={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:En},Ul=null,qu(t,a,d),h&&(m=d,h=e.containerInfo,h=(h.nodeType===9?h:h.ownerDocument).__reactViewTransition,h!=null&&(m.count++,m.waitingForViewTransition=!0,m=rh.bind(m),h.finished.then(m,m))),m=(a&62914560)===a?hd-Je():(a&4194048)===a?gd-Je():0,m=th(d,m),m!==null)){Cd=a,e.cancelPendingCommit=m(rf.bind(null,e,t,a,n,r,i,o,s,c,l,u,d,null,f,p)),zd(e,a,o,!l);return}rf(e,t,a,n,r,i,o,s,c,l,u,d)}function Rd(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var r=0;r<n.length;r++){var i=n[r],a=i.getSnapshot;i=i.value;try{if(!Xr(a(),i))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function zd(e,t,n,r){t=gt(e,t),t&=~ld,t&=~cd,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var i=t;0<i;){var a=31-ot(i),o=1<<a;r[a]=-1,i&=~o}n!==0&&St(e,n,t)}function Bd(){return G&6?!0:(Of(0,!1),!1)}function Vd(){if(q!==null){if(Y===0)var e=q.return;else e=q,Sa=xa=null,ls(e),uo=null,fo=0,e=q;for(;e!==null;)Cl(e.alternate,e),e=e.return;q=null}}function Hd(e,t){var n=e.timeoutHandle;return n!==-1&&(e.timeoutHandle=-1,vp(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),Cd=0,Vd(),K=e,q=n=Hi(e.current,null),J=t,Y=0,td=null,nd=!1,rd=ht(e,t),id=!1,dd=ud=ld=cd=sd=od=0,pd=fd=null,md=!1,ad=gt(e,t),Ni(),n}function Ud(e,t){I=null,D.H=yc,t===eo||t===no?(t=co(),Y=3):t===to?(t=co(),Y=4):Y=t===Ic?8:typeof t==`object`&&t&&typeof t.then==`function`?6:1,td=t,q===null&&(od=1,Ac(e,Xi(t,e.current)))}function Wd(){var e=Io.current;return e===null?!0:(J&4194048)===J?Lo===null:(J&62914560)===J||J&536870912?e===Lo:!1}function Gd(){var e=D.H;return D.H=yc,e===null?yc:e}function Kd(){var e=D.A;return D.A=$u,e}function qd(){od=4,nd||(J&4194048)!==J&&Io.current!==null||(rd=!0),!(sd&134217727)&&!(cd&134217727)||K===null||zd(K,J,ud,!1)}function Jd(e,t,n){var r=G;G|=2;var i=Gd(),a=Kd();(K!==e||J!==t)&&(vd=null,Hd(e,t)),t=!1;var o=od;a:do try{if(Y!==0&&q!==null){var s=q,c=td;switch(Y){case 8:Vd(),o=6;break a;case 3:case 2:case 9:case 6:Io.current===null&&(t=!0);var l=Y;if(Y=0,td=null,ef(e,s,c,l),n&&rd){o=0;break a}break;default:l=Y,Y=0,td=null,ef(e,s,c,l)}}Yd(),o=od;break}catch(t){Ud(e,t)}while(1);return t&&e.shellSuspendCounter++,Sa=xa=null,G=r,D.H=i,D.A=a,q===null&&(K=null,J=0,Ni()),o}function Yd(){for(;q!==null;)Qd(q)}function Xd(e,t){var n=G;G|=2;var r=Gd(),a=Kd();K!==e||J!==t?(vd=null,_d=Je()+500,Hd(e,t)):rd=ht(e,t);a:do try{if(Y!==0&&q!==null){t=q;var o=td;b:switch(Y){case 1:Y=0,td=null,ef(e,t,o,1);break;case 2:case 9:if(io(o)){Y=0,td=null,$d(t);break}t=function(){Y!==2&&Y!==9||K!==e||(Y=7),Df(e)},o.then(t,t);break a;case 3:Y=7;break a;case 4:Y=5;break a;case 7:io(o)?(Y=0,td=null,$d(t)):(Y=0,td=null,ef(e,t,o,7));break;case 5:var s=null;switch(q.tag){case 26:s=q.memoizedState;case 5:case 27:var c=q;if(s?Xm(s):c.stateNode.complete){Y=0,td=null;var l=c.sibling;if(l!==null)q=l;else{var u=c.return;u===null?q=null:(q=u,tf(u))}break b}}Y=0,td=null,ef(e,t,o,5);break;case 6:Y=0,td=null,ef(e,t,o,6);break;case 8:Vd(),od=6;break a;default:throw Error(i(462))}}Zd();break}catch(t){Ud(e,t)}while(1);return Sa=xa=null,D.H=r,D.A=a,G=n,q===null?(K=null,J=0,Ni(),od):0}function Zd(){for(;q!==null&&!Ke();)Qd(q)}function Qd(e){var t=ml(e.alternate,e,ad);e.memoizedProps=e.pendingProps,t===null?tf(e):q=t}function $d(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=Xc(n,t,t.pendingProps,t.type,void 0,J);break;case 11:t=Xc(n,t,t.pendingProps,t.type.render,t.ref,J);break;case 5:ls(t);var r=t;r===la&&(F?(ha(r),r.tag===5&&r.stateNode!=null&&(P=r.stateNode)):(ha(r),F=!0));default:Cl(n,t),t=q=Ui(t,ad),t=ml(n,t,ad)}e.memoizedProps=e.pendingProps,t===null?tf(e):q=t}function ef(e,t,n,r){Sa=xa=null,ls(t),uo=null,fo=0;var i=t.return;try{if(Fc(e,i,t,n,J)){od=1,Ac(e,Xi(n,e.current)),q=null;return}}catch(t){if(i!==null)throw q=i,t;od=1,Ac(e,Xi(n,e.current)),q=null;return}t.flags&32768?(F||r===1?e=!0:rd||J&536870912?e=!1:(nd=e=!0,(r===2||r===9||r===3||r===6)&&(r=Io.current,r!==null&&r.tag===13&&(r.flags|=16384))),nf(t,e)):tf(t)}function tf(e){var t=e;do{if(t.flags&32768){nf(t,nd);return}e=t.return;var n=xl(t.alternate,t,ad);if(n!==null){q=n;return}if(t=t.sibling,t!==null){q=t;return}q=t=e}while(t!==null);od===0&&(od=5)}function nf(e,t){do{var n=Sl(e.alternate,e);if(n!==null){n.flags&=32767,q=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){q=e;return}q=e=n}while(e!==null);od=6,q=null}function rf(e,t,n,r,a,o,s,c,l,u,d,f){e.cancelPendingCommit=null;do ff();while(bd!==0);if(G&6)throw Error(i(327));if(t!==null){if(t===e.current)throw Error(i(177));e===K&&(q=K=null,J=0),Sd=t,xd=e,Cd=n,Td=a,Ed=r,af(e,t,n,s,c,l,f)}}function af(e,t,n,r,i,a,o){var s=t.lanes|t.childLanes;if(wd=s,s|=Mi,xt(e,n,s,r,i,a),Od=null,(n&335544064)===n?(kd=Va(e),r=10262):(kd=null,r=10256),(t.subtreeFlags&r)!==0||(t.flags&r)!==0?(e.callbackNode=null,e.callbackPriority=0,bf(Qe,function(){return pf(),null})):(e.callbackNode=null,e.callbackPriority=0),Hl=!1,r=!!(t.flags&13878),t.subtreeFlags&13878||r){r=D.T,D.T=null,i=O.p,O.p=2,a=G,G|=4;try{gu(e,t,n)}finally{G=a,O.p=i,D.T=r}}bd=1,Hl?Dd=Np(o,e.containerInfo,kd,cf,lf,sf,uf,pf,of,null,null):(cf(),lf(),uf())}function of(e){if(bd!==0){var t=xd.onRecoverableError;t(e,{componentStack:null})}}function sf(){bd===3&&(bd=0,Lu(Sd,xd),bd=4)}function cf(){if(bd===1){bd=0;var e=xd,t=Sd,n=Cd,r=!!(t.flags&13878);if(t.subtreeFlags&13878||r){r=D.T,D.T=null;var i=O.p;O.p=2;var a=G;G|=4;try{pu=mu=!1,Nu(t,e,n),n=lp;var o=ni(e.containerInfo),s=n.focusedElem,c=n.selectionRange;if(o!==s&&s&&s.ownerDocument&&ti(s.ownerDocument.documentElement,s)){if(c!==null&&ri(s)){var l=c.start,u=c.end;if(u===void 0&&(u=l),`selectionStart`in s)s.selectionStart=l,s.selectionEnd=Math.min(u,s.value.length);else{var d=s.ownerDocument||document,f=d&&d.defaultView||window;if(f.getSelection){var p=f.getSelection(),m=s.textContent.length,h=Math.min(c.start,m),g=c.end===void 0?h:Math.min(c.end,m);!p.extend&&h>g&&(o=g,g=h,h=o);var _=ei(s,h),v=ei(s,g);if(_&&v&&(p.rangeCount!==1||p.anchorNode!==_.node||p.anchorOffset!==_.offset||p.focusNode!==v.node||p.focusOffset!==v.offset)){var y=d.createRange();y.setStart(_.node,_.offset),p.removeAllRanges(),h>g?(p.addRange(y),p.extend(v.node,v.offset)):(y.setEnd(v.node,v.offset),p.addRange(y))}}}}for(d=[],p=s;p=p.parentNode;)p.nodeType===1&&d.push({element:p,left:p.scrollLeft,top:p.scrollTop});for(typeof s.focus==`function`&&s.focus(),s=0;s<d.length;s++){var b=d[s];b.element.scrollLeft=b.left,b.element.scrollTop=b.top}}_h=!!cp,lp=cp=null}finally{G=a,O.p=i,D.T=r}}e.current=t,bd=2}}function lf(){if(bd===2){bd=0;var e=xd,t=Sd,n=!!(t.flags&8772);if(t.subtreeFlags&8772||n){n=D.T,D.T=null;var r=O.p;O.p=2;var i=G;G|=4;try{vu(e,t.alternate,t)}finally{G=i,O.p=r,D.T=n}}bd=3}}function uf(){if(bd===4||bd===3){bd=0;var e=Dd;Dd=null,qe();var t=xd,n=Sd,r=Cd,i=Ed,a=(r&335544064)===r?10262:10256;if((n.subtreeFlags&a)!==0||(n.flags&a)!==0?bd=5:(bd=0,Sd=xd=null,df(t,t.pendingLanes)),a=t.pendingLanes,a===0&&(yd=null),Et(r),n=n.stateNode,it&&typeof it.onCommitFiberRoot==`function`)try{it.onCommitFiberRoot(rt,n,void 0,(n.current.flags&128)==128)}catch{}if(i!==null){n=D.T,a=O.p,O.p=2,D.T=null;try{for(var o=t.onRecoverableError,s=0;s<i.length;s++){var c=i[s];o(c.value,{componentStack:c.stack})}}finally{D.T=n,O.p=a}}if(i=Od,o=kd,kd=null,i!==null&&(Od=null,o===null&&(o=[]),e!==null))for(c=0;c<i.length;c++)n=(0,i[c])(o),n!==void 0&&e.finished.finally(n);Cd&3&&ff(),Df(t),a=t.pendingLanes,r&261930&&a&42?t===jd?Ad++:(Ad=0,jd=t):(Ad=0,jd=null),Of(0,!1)}}function df(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Ra(t)))}function ff(){return Dd!==null&&(Dd.skipTransition(),Dd=null),cf(),lf(),uf(),pf()}function pf(){if(bd!==5)return!1;var e=xd,t=wd;wd=0;var n=Et(Cd),r=D.T,a=O.p;try{O.p=32>n?32:n,D.T=null,n=Td,Td=null;var o=xd,s=Cd;if(bd=0,Sd=xd=null,Cd=0,G&6)throw Error(i(331));var c=G;if(G|=4,Xu(o.current),Uu(o,o.current,s,n),G=c,Of(0,!1),it&&typeof it.onPostCommitFiberRoot==`function`)try{it.onPostCommitFiberRoot(rt,o)}catch{}return!0}finally{O.p=a,D.T=r,df(e,t)}}function mf(e,t,n){t=Xi(n,t),t=Mc(e.stateNode,t,2),e=Co(e,t,2),e!==null&&(bt(e,2),Df(e))}function X(e,t,n){if(e.tag===3)mf(e,e,n);else for(;t!==null;){if(t.tag===3){mf(t,e,n);break}if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(yd===null||!yd.has(r))){e=Xi(n,e),n=Nc(2),r=Co(t,n,2),r!==null&&(Pc(n,r,t,e),bt(r,2),Df(r));break}}t=t.return}}function hf(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new ed;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(id=!0,i.add(n),e=gf.bind(null,e,t,n),t.then(e,e))}function gf(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,K===e&&(J&n)===n&&(od===4||od===3&&(J&62914560)===J&&300>Je()-hd?G&2?ld|=n:Hd(e,0):ld|=n,dd===J&&(dd=0)),Df(e)}function _f(e,t){t===0&&(t=vt()),e=Fi(e,t),e!==null&&(bt(e,t),Df(e))}function vf(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),_f(e,n)}function yf(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(i(314))}r!==null&&r.delete(t),_f(e,n)}function bf(e,t){return We(e,t)}var xf=null,Sf=null,Cf=!1,wf=!1,Tf=!1,Ef=0;function Df(e){e!==Sf&&e.next===null&&(Sf===null?xf=Sf=e:Sf=Sf.next=e),wf=!0,Cf||(Cf=!0,Pf())}function Of(e,t){if(!Tf&&wf){Tf=!0;do for(var n=!1,r=xf;r!==null;){if(!t){if(e!==0){var i=r.pendingLanes;if(i===0)var a=0;else{var o=r.suspendedLanes,s=r.pingedLanes;a=(1<<31-ot(42|e)+1)-1,a&=i&~(o&~s),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,Nf(r,a))}else a=J,a=mt(r,r===K?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(a&3)||ht(r,a)||(n=!0,Nf(r,a))}r=r.next}while(n);Tf=!1}}function kf(){Af()}function Af(){wf=Cf=!1;var e=0;Ef!==0&&gp()&&(e=Ef);for(var t=Je(),n=null,r=xf;r!==null;){var i=r.next,a=jf(r,t);a===0?(r.next=null,n===null?xf=i:n.next=i,i===null&&(Sf=n)):(n=r,(e!==0||a&3)&&(wf=!0)),r=i}bd!==0&&bd!==5||Of(e,!1),Ef!==0&&(Ef=0)}function jf(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes&-62914561;0<a;){var o=31-ot(a),s=1<<o,c=i[o];c===-1?((s&n)===0||(s&r)!==0)&&(i[o]=_t(s,t)):c<=t&&(e.expiredLanes|=s),a&=~s}if(t=K,n=J,n=mt(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,n===0||e===t&&(Y===2||Y===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&Ge(r),e.callbackNode=null,e.callbackPriority=0;if(!(n&3)||ht(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(r!==null&&Ge(r),Et(n)){case 2:case 8:n=Ze;break;case 32:n=Qe;break;case 268435456:n=et;break;default:n=Qe}return r=Mf.bind(null,e),n=We(n,r),e.callbackPriority=t,e.callbackNode=n,t}return r!==null&&r!==null&&Ge(r),e.callbackPriority=2,e.callbackNode=null,2}function Mf(e,t){if(bd!==0&&bd!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(ff()&&e.callbackNode!==n)return null;var r=J;return r=mt(e,e===K?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(Id(e,r,t),jf(e,Je()),e.callbackNode!=null&&e.callbackNode===n?Mf.bind(null,e):null)}function Nf(e,t){if(ff())return null;Id(e,t,!0)}function Pf(){xp(function(){G&6?We(Xe,kf):Af()})}function Ff(){if(Ef===0){var e=Wa;e===0&&(e=ut,ut<<=1,!(ut&261888)&&(ut=256)),Ef=e}return Ef}function If(e){return e==null||typeof e==`symbol`||typeof e==`boolean`?null:typeof e==`function`?e:Tn(e)}function Lf(e,t,n,r,i){if(t===`submit`&&n&&n.stateNode===i){var a=If((i[jt]||null).action),o=r.submitter;o&&(t=(t=o[jt]||null)?If(t.formAction):o.getAttribute(`formAction`),t!==null&&(a=t,o=null));var s=new qn(`action`,`action`,null,r,i);e.push({event:s,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(Ef!==0){var e=new FormData(i,o);ac(n,{pending:!0,data:e,method:i.method,action:a},null,e)}}else typeof a==`function`&&(s.preventDefault(),e=new FormData(i,o),ac(n,{pending:!0,data:e,method:i.method,action:a},a,e))},currentTarget:i}]})}}for(var Rf=0;Rf<Ci.length;Rf++){var zf=Ci[Rf];wi(zf.toLowerCase(),`on`+(zf[0].toUpperCase()+zf.slice(1)))}wi(hi,`onAnimationEnd`),wi(gi,`onAnimationIteration`),wi(_i,`onAnimationStart`),wi(`dblclick`,`onDoubleClick`),wi(`focusin`,`onFocus`),wi(`focusout`,`onBlur`),wi(vi,`onTransitionRun`),wi(yi,`onTransitionStart`),wi(bi,`onTransitionCancel`),wi(xi,`onTransitionEnd`),Yt(`onMouseEnter`,[`mouseout`,`mouseover`]),Yt(`onMouseLeave`,[`mouseout`,`mouseover`]),Yt(`onPointerEnter`,[`pointerout`,`pointerover`]),Yt(`onPointerLeave`,[`pointerout`,`pointerover`]),Jt(`onChange`,`change click focusin focusout input keydown keyup selectionchange`.split(` `)),Jt(`onSelect`,`focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange`.split(` `)),Jt(`onBeforeInput`,[`compositionend`,`keypress`,`textInput`,`paste`]),Jt(`onCompositionEnd`,`compositionend focusout keydown keypress keyup mousedown`.split(` `)),Jt(`onCompositionStart`,`compositionstart focusout keydown keypress keyup mousedown`.split(` `)),Jt(`onCompositionUpdate`,`compositionupdate focusout keydown keypress keyup mousedown`.split(` `));var Bf=`abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting`.split(` `),Vf=new Set(`beforetoggle cancel close invalid load scroll scrollend toggle`.split(` `).concat(Bf));function Hf(e,t){t=!!(t&4);for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;a:{var a=void 0;if(t)for(var o=r.length-1;0<=o;o--){var s=r[o],c=s.instance,l=s.currentTarget;if(s=s.listener,c!==a&&i.isPropagationStopped())break a;a=s,i.currentTarget=l;try{a(i)}catch(e){ki(e)}i.currentTarget=null,a=c}else for(o=0;o<r.length;o++){if(s=r[o],c=s.instance,l=s.currentTarget,s=s.listener,c!==a&&i.isPropagationStopped())break a;a=s,i.currentTarget=l;try{a(i)}catch(e){ki(e)}i.currentTarget=null,a=c}}}}function Z(e,t){var n=t[Nt];n===void 0&&(n=t[Nt]=new Set);var r=e+`__bubble`;n.has(r)||(Kf(t,e,2,!1),n.add(r))}function Uf(e,t,n){var r=0;t&&(r|=4),Kf(n,e,r,t)}var Wf=`_reactListening`+Math.random().toString(36).slice(2);function Gf(e){if(!e[Wf]){e[Wf]=!0,Kt.forEach(function(t){t!==`selectionchange`&&(Vf.has(t)||Uf(t,!1,e),Uf(t,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Wf]||(t[Wf]=!0,Uf(`selectionchange`,!1,t))}}function Kf(e,t,n,r){switch(wh(t)){case 2:var i=vh;break;case 8:i=yh;break;default:i=bh}n=i.bind(null,t,n,e),i=void 0,!In||t!==`touchstart`&&t!==`touchmove`&&t!==`wheel`||(i=!0),r?i===void 0?e.addEventListener(t,n,!0):e.addEventListener(t,n,{capture:!0,passive:i}):i===void 0?e.addEventListener(t,n,!1):e.addEventListener(t,n,{passive:i})}function qf(e,t,n,r,i){var a=r;if(!(t&1)&&!(t&2)&&r!==null)a:for(;;){if(r===null)return;var s=r.tag;if(s===3||s===4){var c=r.stateNode.containerInfo;if(c===i)break;if(s===4)for(s=r.return;s!==null;){var l=s.tag;if((l===3||l===4)&&s.stateNode.containerInfo===i)return;s=s.return}for(;c!==null;){if(s=Bt(c),s===null)return;if(l=s.tag,l===5||l===6||l===26||l===27){r=a=s;continue a}c=c.parentNode}}r=r.return}Nn(function(){var r=a,i=On(n),s=[];a:{var c=Si.get(e);if(c!==void 0){var l=qn,u=e;switch(e){case`keypress`:if(Hn(n)===0)break a;case`keydown`:case`keyup`:l=fr;break;case`focusin`:u=`focus`,l=nr;break;case`focusout`:u=`blur`,l=nr;break;case`beforeblur`:case`afterblur`:l=nr;break;case`click`:if(n.button===2)break a;case`auxclick`:case`dblclick`:case`mousedown`:case`mousemove`:case`mouseup`:case`mouseout`:case`mouseover`:case`contextmenu`:l=er;break;case`drag`:case`dragend`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`dragstart`:case`drop`:l=tr;break;case`touchcancel`:case`touchend`:case`touchmove`:case`touchstart`:l=hr;break;case hi:case gi:case _i:l=rr;break;case xi:l=gr;break;case`scroll`:case`scrollend`:l=Yn;break;case`wheel`:l=_r;break;case`copy`:case`cut`:case`paste`:l=ir;break;case`gotpointercapture`:case`lostpointercapture`:case`pointercancel`:case`pointerdown`:case`pointermove`:case`pointerout`:case`pointerover`:case`pointerup`:l=pr;break;case`submit`:l=mr;break;case`toggle`:case`beforetoggle`:l=vr}var d=!!(t&4),f=!d&&(e===`scroll`||e===`scrollend`),p=d?c===null?null:c+`Capture`:c;d=[];for(var m=r,h;m!==null;){var g=m;if(h=g.stateNode,g=g.tag,g!==5&&g!==26&&g!==27||h===null||p===null||(g=Pn(m,p),g!=null&&d.push(Jf(m,g,h))),f)break;m=m.return}0<d.length&&(c=new l(c,u,null,n,i),s.push({event:c,listeners:d}))}}if(!(t&7)){a:{if(l=e===`mouseover`||e===`pointerover`,c=e===`mouseout`||e===`pointerout`,l&&n!==Dn&&(u=n.relatedTarget||n.fromElement)&&(Bt(u)||u[Mt]))break a;(c||l)&&(u=i.window===i?i:(l=i.ownerDocument)?l.defaultView||l.parentWindow:window,c?(l=n.relatedTarget||n.toElement,c=r,l=l?Bt(l):null,l!==null&&(f=o(l),d=l.tag,l!==f||d!==5&&d!==27&&d!==6)&&(l=null)):(c=null,l=r),c!==l&&(d=er,g=`onMouseLeave`,p=`onMouseEnter`,m=`mouse`,(e===`pointerout`||e===`pointerover`)&&(d=pr,g=`onPointerLeave`,p=`onPointerEnter`,m=`pointer`),f=c==null?u:Ht(c),h=l==null?u:Ht(l),u=new d(g,m+`leave`,c,n,i),u.target=f,u.relatedTarget=h,g=null,Bt(i)===r&&(d=new d(p,m+`enter`,l,n,i),d.target=h,d.relatedTarget=f,g=d),f=g,d=c&&l?ne(c,l,Xf):null,c!==null&&Zf(s,u,c,d,!1),l!==null&&f!==null&&Zf(s,f,l,d,!0)))}a:{if(c=r?Ht(r):window,l=c.nodeName&&c.nodeName.toLowerCase(),l===`select`||l===`input`&&c.type===`file`)var _=Rr;else if(Mr(c)){if(zr)_=Jr;else{_=Kr;var v=Gr}}else l=c.nodeName,!l||l.toLowerCase()!==`input`||c.type!==`checkbox`&&c.type!==`radio`?r&&Sn(r.elementType)&&(_=Rr):_=qr;if(_&&=_(e,r)){Nr(s,_,n,i);break a}v&&v(e,c,r)}switch(v=r?Ht(r):window,e){case`focusin`:(Mr(v)||v.contentEditable===`true`)&&(ai=v,oi=r,si=null);break;case`focusout`:si=oi=ai=null;break;case`mousedown`:ci=!0;break;case`contextmenu`:case`mouseup`:case`dragend`:ci=!1,li(s,n,i);break;case`selectionchange`:if(ii)break;case`keydown`:case`keyup`:li(s,n,i)}var y;if(br)b:{switch(e){case`compositionstart`:var b=`onCompositionStart`;break b;case`compositionend`:b=`onCompositionEnd`;break b;case`compositionupdate`:b=`onCompositionUpdate`;break b}b=void 0}else Or?Er(e,n)&&(b=`onCompositionEnd`):e===`keydown`&&n.keyCode===229&&(b=`onCompositionStart`);b&&(Cr&&n.locale!==`ko`&&(Or||b!==`onCompositionStart`?b===`onCompositionEnd`&&Or&&(y=Vn()):(Rn=i,zn=`value`in Rn?Rn.value:Rn.textContent,Or=!0)),v=Yf(r,b),0<v.length&&(b=new ar(b,e,null,n,i),s.push({event:b,listeners:v}),y?b.data=y:(y=Dr(n),y!==null&&(b.data=y)))),(y=Sr?kr(e,n):Ar(e,n))&&(b=Yf(r,`onBeforeInput`),0<b.length&&(v=new ar(`onBeforeInput`,`beforeinput`,null,n,i),s.push({event:v,listeners:b}),v.data=y)),Lf(s,e,r,n,i)}Hf(s,t)})}function Jf(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Yf(e,t){for(var n=t+`Capture`,r=[];e!==null;){var i=e,a=i.stateNode;if(i=i.tag,i!==5&&i!==26&&i!==27||a===null||(i=Pn(e,n),i!=null&&r.unshift(Jf(e,i,a)),i=Pn(e,t),i!=null&&r.push(Jf(e,i,a))),e.tag===3)return r;e=e.return}return[]}function Xf(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Zf(e,t,n,r,i){for(var a=t._reactName,o=[];n!==null&&n!==r;){var s=n,c=s.alternate,l=s.stateNode;if(s=s.tag,c!==null&&c===r)break;s!==5&&s!==26&&s!==27||l===null||(c=l,i?(l=Pn(n,a),l!=null&&o.unshift(Jf(n,l,c))):i||(l=Pn(n,a),l!=null&&o.push(Jf(n,l,c)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var Qf=/\r\n?/g,$f=/\u0000|\uFFFD/g;function ep(e){return(typeof e==`string`?e:``+e).replace(Qf,`
|
|
10
|
-
`).replace($f,``)}function tp(e,t){return t=ep(t),ep(e)===t}function Q(e,t,n,r,a,o){switch(n){case`children`:if(typeof r==`string`)t===`body`||t===`textarea`&&r===``||vn(e,r);else if(typeof r==`number`||typeof r==`bigint`)t!==`body`&&vn(e,``+r);else return;break;case`className`:nn(e,`class`,r);break;case`tabIndex`:nn(e,`tabindex`,r);break;case`dir`:case`role`:case`viewBox`:case`width`:case`height`:nn(e,n,r);break;case`style`:xn(e,r,o);return;case`data`:if(t!==`object`){nn(e,`data`,r);break}case`src`:case`href`:if(r===``&&(t!==`a`||n!==`href`)){e.removeAttribute(n);break}if(r==null||typeof r==`function`||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=Tn(r),e.setAttribute(n,r);break;case`action`:case`formAction`:if(typeof r==`function`){e.setAttribute(n,`javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')`);break}if(typeof o==`function`&&(n===`formAction`?(t!==`input`&&Q(e,t,`name`,a.name,a,null),Q(e,t,`formEncType`,a.formEncType,a,null),Q(e,t,`formMethod`,a.formMethod,a,null),Q(e,t,`formTarget`,a.formTarget,a,null)):(Q(e,t,`encType`,a.encType,a,null),Q(e,t,`method`,a.method,a,null),Q(e,t,`target`,a.target,a,null))),r==null||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=Tn(r),e.setAttribute(n,r);break;case`onClick`:r!=null&&(e.onclick=En);return;case`onScroll`:r!=null&&Z(`scroll`,e);return;case`onScrollEnd`:r!=null&&Z(`scrollend`,e);return;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));o?.__html!==n&&(e.innerHTML=n)}}break;case`multiple`:e.multiple=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`muted`:e.muted=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`defaultValue`:case`defaultChecked`:case`innerHTML`:case`ref`:break;case`autoFocus`:break;case`xlinkHref`:if(r==null||typeof r==`function`||typeof r==`boolean`||typeof r==`symbol`){e.removeAttribute(`xlink:href`);break}n=Tn(r),e.setAttributeNS(`http://www.w3.org/1999/xlink`,`xlink:href`,n);break;case`contentEditable`:case`spellCheck`:case`draggable`:case`value`:case`autoReverse`:case`externalResourcesRequired`:case`focusable`:case`preserveAlpha`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,r):e.removeAttribute(n);break;case`inert`:case`allowFullScreen`:case`async`:case`autoPlay`:case`controls`:case`credentialless`:case`default`:case`defer`:case`disabled`:case`disablePictureInPicture`:case`disableRemotePlayback`:case`formNoValidate`:case`hidden`:case`loop`:case`noModule`:case`noValidate`:case`open`:case`playsInline`:case`readOnly`:case`required`:case`reversed`:case`scoped`:case`seamless`:case`itemScope`:r&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``):e.removeAttribute(n);break;case`capture`:case`download`:!0===r?e.setAttribute(n,``):!1!==r&&r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,r):e.removeAttribute(n);break;case`cols`:case`rows`:case`size`:case`span`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`&&!isNaN(r)&&1<=r?e.setAttribute(n,r):e.removeAttribute(n);break;case`rowSpan`:case`start`:r==null||typeof r==`function`||typeof r==`symbol`||isNaN(r)?e.removeAttribute(n):e.setAttribute(n,r);break;case`popover`:Z(`beforetoggle`,e),Z(`toggle`,e),tn(e,`popover`,r);break;case`xlinkActuate`:rn(e,`http://www.w3.org/1999/xlink`,`xlink:actuate`,r);break;case`xlinkArcrole`:rn(e,`http://www.w3.org/1999/xlink`,`xlink:arcrole`,r);break;case`xlinkRole`:rn(e,`http://www.w3.org/1999/xlink`,`xlink:role`,r);break;case`xlinkShow`:rn(e,`http://www.w3.org/1999/xlink`,`xlink:show`,r);break;case`xlinkTitle`:rn(e,`http://www.w3.org/1999/xlink`,`xlink:title`,r);break;case`xlinkType`:rn(e,`http://www.w3.org/1999/xlink`,`xlink:type`,r);break;case`xmlBase`:rn(e,`http://www.w3.org/XML/1998/namespace`,`xml:base`,r);break;case`xmlLang`:rn(e,`http://www.w3.org/XML/1998/namespace`,`xml:lang`,r);break;case`xmlSpace`:rn(e,`http://www.w3.org/XML/1998/namespace`,`xml:space`,r);break;case`is`:tn(e,`is`,r);break;case`innerText`:case`textContent`:return;default:if(!(2<n.length)||n[0]!==`o`&&n[0]!==`O`||n[1]!==`n`&&n[1]!==`N`)n=Cn.get(n)||n,tn(e,n,r);else return}A=!0}function np(e,t,n,r,a,o){switch(n){case`style`:xn(e,r,o);return;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));o?.__html!==n&&(e.innerHTML=n)}}break;case`children`:if(typeof r==`string`)vn(e,r);else if(typeof r==`number`||typeof r==`bigint`)vn(e,``+r);else return;break;case`onScroll`:r!=null&&Z(`scroll`,e);return;case`onScrollEnd`:r!=null&&Z(`scrollend`,e);return;case`onClick`:r!=null&&(e.onclick=En);return;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`innerHTML`:case`ref`:return;case`innerText`:case`textContent`:return;default:if(!qt.hasOwnProperty(n))a:{if(n[0]===`o`&&n[1]===`n`&&(a=n.endsWith(`Capture`),o=n.slice(2,a?n.length-7:void 0),t=e[jt]||null,t=t==null?null:t[n],typeof t==`function`&&e.removeEventListener(o,t,a),typeof r==`function`)){typeof t!=`function`&&t!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(o,r,a);break a}A=!0,n in e?e[n]=r:!0===r?e.setAttribute(n,``):tn(e,n,r)}return}A=!0}function rp(e,t,n){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`img`:Z(`error`,e),Z(`load`,e);var r=!1,a=!1,o;for(o in n)if(n.hasOwnProperty(o)){var s=n[o];if(s!=null)switch(o){case`src`:r=!0;break;case`srcSet`:a=!0;break;case`children`:case`dangerouslySetInnerHTML`:throw Error(i(137,t));default:Q(e,t,o,s,n,null)}}a&&Q(e,t,`srcSet`,n.srcSet,n,null),r&&Q(e,t,`src`,n.src,n,null);return;case`input`:Z(`invalid`,e);var c=o=s=a=null,l=null,u=null;for(r in n)if(n.hasOwnProperty(r)){var d=n[r];if(d!=null)switch(r){case`name`:a=d;break;case`type`:s=d;break;case`checked`:l=d;break;case`defaultChecked`:u=d;break;case`value`:o=d;break;case`defaultValue`:c=d;break;case`children`:case`dangerouslySetInnerHTML`:if(d!=null)throw Error(i(137,t));break;default:Q(e,t,r,d,n,null)}}pn(e,o,c,l,u,s,a,!1);return;case`select`:for(a in Z(`invalid`,e),r=s=o=null,n)if(n.hasOwnProperty(a)&&(c=n[a],c!=null))switch(a){case`value`:o=c;break;case`defaultValue`:s=c;break;case`multiple`:r=c;default:Q(e,t,a,c,n,null)}t=o,n=s,e.multiple=!!r,t==null?n!=null&&hn(e,!!r,n,!0):hn(e,!!r,t,!1);return;case`textarea`:for(s in Z(`invalid`,e),o=a=r=null,n)if(n.hasOwnProperty(s)&&(c=n[s],c!=null))switch(s){case`value`:r=c;break;case`defaultValue`:a=c;break;case`children`:o=c;break;case`dangerouslySetInnerHTML`:if(c!=null)throw Error(i(91));break;default:Q(e,t,s,c,n,null)}_n(e,r,a,o);return;case`option`:for(l in n)if(n.hasOwnProperty(l)&&(r=n[l],r!=null))switch(l){case`selected`:e.selected=r&&typeof r!=`function`&&typeof r!=`symbol`;break;default:Q(e,t,l,r,n,null)}return;case`dialog`:Z(`beforetoggle`,e),Z(`toggle`,e),Z(`cancel`,e),Z(`close`,e);break;case`iframe`:case`object`:Z(`load`,e);break;case`video`:case`audio`:for(r=0;r<Bf.length;r++)Z(Bf[r],e);break;case`image`:Z(`error`,e),Z(`load`,e);break;case`details`:Z(`toggle`,e);break;case`embed`:case`source`:case`link`:Z(`error`,e),Z(`load`,e);case`area`:case`base`:case`br`:case`col`:case`hr`:case`keygen`:case`meta`:case`param`:case`track`:case`wbr`:case`menuitem`:for(u in n)if(n.hasOwnProperty(u)&&(r=n[u],r!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:throw Error(i(137,t));default:Q(e,t,u,r,n,null)}return;default:if(Sn(t)){for(d in n)n.hasOwnProperty(d)&&(r=n[d],r!==void 0&&np(e,t,d,r,n,void 0));return}}for(c in n)n.hasOwnProperty(c)&&(r=n[c],r!=null&&Q(e,t,c,r,n,null))}var ip={};function ap(e,t,n,r){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`input`:var a=null,o=null,s=null,c=null,l=null,u=null,d=null;for(m in n){var f=n[m];if(n.hasOwnProperty(m)&&f!=null)switch(m){case`checked`:break;case`value`:break;case`defaultValue`:l=f;default:r.hasOwnProperty(m)||Q(e,t,m,null,r,f)}}for(var p in r){var m=r[p];if(f=n[p],r.hasOwnProperty(p)&&(m!=null||f!=null))switch(p){case`type`:m!==f&&(A=!0),o=m;break;case`name`:m!==f&&(A=!0),a=m;break;case`checked`:m!==f&&(A=!0),u=m;break;case`defaultChecked`:m!==f&&(A=!0),d=m;break;case`value`:m!==f&&(A=!0),s=m;break;case`defaultValue`:m!==f&&(A=!0),c=m;break;case`children`:case`dangerouslySetInnerHTML`:if(m!=null)throw Error(i(137,t));break;default:m!==f&&Q(e,t,p,m,r,f)}}fn(e,s,c,l,u,d,o,a);return;case`select`:for(o in m=s=c=p=null,n)if(l=n[o],n.hasOwnProperty(o)&&l!=null)switch(o){case`value`:break;case`multiple`:m=l;default:r.hasOwnProperty(o)||Q(e,t,o,null,r,l)}for(a in r)if(o=r[a],l=n[a],r.hasOwnProperty(a)&&(o!=null||l!=null))switch(a){case`value`:o!==l&&(A=!0),p=o;break;case`defaultValue`:o!==l&&(A=!0),c=o;break;case`multiple`:o!==l&&(A=!0),s=o;default:o!==l&&Q(e,t,a,o,r,l)}t=c,n=s,r=m,p==null?!!r!=!!n&&(t==null?hn(e,!!n,n?[]:``,!1):hn(e,!!n,t,!0)):hn(e,!!n,p,!1);return;case`textarea`:for(c in m=p=null,n)if(a=n[c],n.hasOwnProperty(c)&&a!=null&&!r.hasOwnProperty(c))switch(c){case`value`:break;case`children`:break;default:Q(e,t,c,null,r,a)}for(s in r)if(a=r[s],o=n[s],r.hasOwnProperty(s)&&(a!=null||o!=null))switch(s){case`value`:a!==o&&(A=!0),p=a;break;case`defaultValue`:a!==o&&(A=!0),m=a;break;case`children`:break;case`dangerouslySetInnerHTML`:if(a!=null)throw Error(i(91));break;default:a!==o&&Q(e,t,s,a,r,o)}gn(e,p,m);return;case`option`:for(var h in n)if(p=n[h],n.hasOwnProperty(h)&&p!=null&&!r.hasOwnProperty(h))switch(h){case`selected`:e.selected=!1;break;default:Q(e,t,h,null,r,p)}for(l in r)if(p=r[l],m=n[l],r.hasOwnProperty(l)&&p!==m&&(p!=null||m!=null))switch(l){case`selected`:p!==m&&(A=!0),e.selected=p&&typeof p!=`function`&&typeof p!=`symbol`;break;default:Q(e,t,l,p,r,m)}return;case`img`:case`link`:case`area`:case`base`:case`br`:case`col`:case`embed`:case`hr`:case`keygen`:case`meta`:case`param`:case`source`:case`track`:case`wbr`:case`menuitem`:for(var g in n)p=n[g],n.hasOwnProperty(g)&&p!=null&&!r.hasOwnProperty(g)&&Q(e,t,g,null,r,p);for(u in r)if(p=r[u],m=n[u],r.hasOwnProperty(u)&&p!==m&&(p!=null||m!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:if(p!=null)throw Error(i(137,t));break;default:Q(e,t,u,p,r,m)}return;default:if(Sn(t)){for(var _ in n)p=n[_],n.hasOwnProperty(_)&&p!==void 0&&!r.hasOwnProperty(_)&&np(e,t,_,void 0,r,p);for(d in r)p=r[d],m=n[d],!r.hasOwnProperty(d)||p===m||p===void 0&&m===void 0||np(e,t,d,p,r,m);return}}for(var v in n)p=n[v],n.hasOwnProperty(v)&&p!=null&&!r.hasOwnProperty(v)&&Q(e,t,v,null,r,p);for(f in r)p=r[f],m=n[f],!r.hasOwnProperty(f)||p===m||p==null&&m==null||Q(e,t,f,p,r,m)}function op(e){switch(e){case`css`:case`script`:case`font`:case`img`:case`image`:case`input`:case`link`:return!0;default:return!1}}function sp(){if(typeof performance.getEntriesByType==`function`){for(var e=0,t=0,n=performance.getEntriesByType(`resource`),r=0;r<n.length;r++){var i=n[r],a=i.transferSize,o=i.initiatorType,s=i.duration;if(a&&s&&op(o)){for(o=0,s=i.responseEnd,r+=1;r<n.length;r++){var c=n[r],l=c.startTime;if(l>s)break;var u=c.transferSize,d=c.initiatorType;u&&op(d)&&(c=c.responseEnd,o+=u*(c<s?1:(s-l)/(c-l)))}if(--r,t+=8*(a+o)/(i.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e==`number`)?e:5}var cp=null,lp=null;function up(e){return e.nodeType===9?e:e.ownerDocument}function dp(e){switch(e){case`http://www.w3.org/2000/svg`:return 1;case`http://www.w3.org/1998/Math/MathML`:return 2;default:return 0}}function fp(e,t){if(e===0)switch(t){case`svg`:return 1;case`math`:return 2;default:return 0}return e===1&&t===`foreignObject`?0:e}function pp(e,t,n,r){return n=up(n).createElement(e),n[At]=r,n[jt]=t,rp(n,e,t),Wt(n),n}function mp(e,t){return e===`textarea`||e===`noscript`||typeof t.children==`string`||typeof t.children==`number`||typeof t.children==`bigint`||typeof t.dangerouslySetInnerHTML==`object`&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var hp=null;function gp(){var e=window.event;return e&&e.type===`popstate`?e!==hp&&(hp=e,!0):(hp=null,!1)}var _p=typeof setTimeout==`function`?setTimeout:void 0,vp=typeof clearTimeout==`function`?clearTimeout:void 0,yp=typeof Promise==`function`?Promise:void 0,bp=typeof requestAnimationFrame==`function`?requestAnimationFrame:_p,xp=typeof queueMicrotask==`function`?queueMicrotask:yp===void 0?_p:function(e){return yp.resolve(null).then(e).catch(Sp)};function Sp(e){setTimeout(function(){throw e})}function Cp(e){return e===`head`}function wp(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8){if(n=i.data,n===`/$`||n===`/&`){if(r===0){e.removeChild(i),Uh(t);return}r--}else if(n===`$`||n===`$?`||n===`$~`||n===`$!`||n===`&`)r++;else if(n===`html`)vm(e.ownerDocument.documentElement);else if(n===`head`){n=e.ownerDocument.head,vm(n);for(var a=n.firstChild;a;){var o=a.nextSibling,s=a.nodeName;a[Lt]||s===`SCRIPT`||s===`STYLE`||s===`LINK`&&a.rel.toLowerCase()===`stylesheet`||n.removeChild(a),a=o}}else n===`body`&&vm(e.ownerDocument.body)}n=i}while(n);Uh(t)}function Tp(e,t){var n=e;e=0;do{var r=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display=`none`):(n.style.display=n._stashedDisplay||``,n.getAttribute(`style`)===``&&n.removeAttribute(`style`)):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=``):n.nodeValue=n._stashedText||``),r&&r.nodeType===8){if(n=r.data,n===`/$`){if(e===0)break;e--}else n!==`$`&&n!==`$?`&&n!==`$~`&&n!==`$!`||e++}n=r}while(n)}function Ep(e,t,n){if(t=CSS.escape(t)===t?t:`r-`+btoa(t).replace(/=/g,``),e.style.viewTransitionName=t,n!=null&&(e.style.viewTransitionClass=n),n=getComputedStyle(e),n.display===`inline`){if(t=e.getClientRects(),t.length===1)var r=1;else for(var i=r=0;i<t.length;i++){var a=t[i];0<a.width&&0<a.height&&r++}r===1&&(e=e.style,e.display=t.length===1?`inline-block`:`block`,e.marginTop=`-`+n.paddingTop,e.marginBottom=`-`+n.paddingBottom)}}function Dp(e,t){e=e.style,t=t.style;var n=t==null?null:t.hasOwnProperty(`viewTransitionName`)?t.viewTransitionName:t.hasOwnProperty(`view-transition-name`)?t[`view-transition-name`]:null;e.viewTransitionName=n==null||typeof n==`boolean`?``:(``+n).trim(),n=t==null?null:t.hasOwnProperty(`viewTransitionClass`)?t.viewTransitionClass:t.hasOwnProperty(`view-transition-class`)?t[`view-transition-class`]:null,e.viewTransitionClass=n==null||typeof n==`boolean`?``:(``+n).trim(),e.display===`inline-block`&&(t==null?e.display=e.margin=``:(n=t.display,e.display=n==null||typeof n==`boolean`?``:n,n=t.margin,n==null?(n=t.hasOwnProperty(`marginTop`)?t.marginTop:t[`margin-top`],e.marginTop=n==null||typeof n==`boolean`?``:n,t=t.hasOwnProperty(`marginBottom`)?t.marginBottom:t[`margin-bottom`],e.marginBottom=t==null||typeof t==`boolean`?``:t):e.margin=n))}function Op(e,t,n){return n=n.ownerDocument.defaultView,{rect:e,abs:t.position===`absolute`||t.position===`fixed`,clip:t.clipPath!==`none`||t.overflow!==`visible`||t.filter!==`none`||t.mask!==`none`||t.mask!==`none`||t.borderRadius!==`0px`,view:0<=e.bottom&&0<=e.right&&e.top<=n.innerHeight&&e.left<=n.innerWidth}}function kp(e){return Op(e.getBoundingClientRect(),getComputedStyle(e),e)}function Ap(e){var t=e.getBoundingClientRect();t=new DOMRect(t.x+2e4,t.y+2e4,t.width,t.height);var n=getComputedStyle(e);return Op(t,n,e)}function jp(e){return e.documentElement.clientHeight}function Mp(e){this.addEventListener(`load`,e),this.addEventListener(`error`,e)}function Np(e,t,n,r,i,a,o,s,c){var l=t.nodeType===9?t:t.ownerDocument;try{var u=l.startViewTransition({update:function(){var t=l.defaultView,n=t.navigation&&t.navigation.transition,o=l.fonts.status;r();var s=[];if(o===`loaded`&&(jp(l),l.fonts.status===`loading`&&s.push(l.fonts.ready)),o=s.length,e!==null)for(var c=e.suspenseyImages,u=0,d=0;d<c.length;d++){var f=c[d];if(!f.complete){var p=f.getBoundingClientRect();if(0<p.bottom&&0<p.right&&p.top<t.innerHeight&&p.left<t.innerWidth){if(u+=Zm(f),u>eh){s.length=o;break}f=new Promise(Mp.bind(f)),s.push(f)}}}if(0<s.length)return t=Promise.race([Promise.all(s),new Promise(function(e){return setTimeout(e,500)})]).then(i,i),(n?Promise.allSettled([n.finished,t]):t).then(a,a);if(i(),n)return n.finished.then(a,a);a()},types:n});l.__reactViewTransition=u;var d=[];return u.ready.then(function(){for(var e=l.documentElement.getAnimations({subtree:!0}),t=0;t<e.length;t++){var n=e[t],r=n.effect,i=r.pseudoElement;if(i!=null&&i.startsWith(`::view-transition`)){d.push(n),n=r.getKeyframes();for(var a=i=void 0,s=!0,c=0;c<n.length;c++){var u=n[c],f=u.width;if(i===void 0)i=f;else if(i!==f){s=!1;break}if(f=u.height,a===void 0)a=f;else if(a!==f){s=!1;break}delete u.width,delete u.height,u.transform===`none`&&delete u.transform}s&&i!==void 0&&a!==void 0&&(r.setKeyframes(n),s=getComputedStyle(r.target,r.pseudoElement),s.width!==i||s.height!==a)&&(s=n[0],s.width=i,s.height=a,s=n[n.length-1],s.width=i,s.height=a,r.setKeyframes(n))}}o()},function(e){l.__reactViewTransition===u&&(l.__reactViewTransition=null);try{if(typeof e==`object`&&e)switch(e.name){case`InvalidStateError`:(e.message===`View transition was skipped because document visibility state is hidden.`||e.message===`Skipping view transition because document visibility state has become hidden.`||e.message===`Skipping view transition because viewport size changed.`||e.message===`Transition was aborted because of invalid state`)&&(e=null)}e!==null&&c(e)}finally{r(),i(),o()}}),u.finished.finally(function(){for(var e=0;e<d.length;e++)d[e].cancel();l.__reactViewTransition===u&&(l.__reactViewTransition=null),s()}),u}catch{return r(),i(),o(),null}}function Pp(e,t){this._scope=document.documentElement,this._selector=`::view-transition-`+e+`(`+t+`)`}Pp.prototype.animate=function(e,t){return t=typeof t==`number`?{duration:t}:C({},t),t.pseudoElement=this._selector,this._scope.animate(e,t)},Pp.prototype.getAnimations=function(){for(var e=this._scope,t=this._selector,n=e.getAnimations({subtree:!0}),r=[],i=0;i<n.length;i++){var a=n[i].effect;a!==null&&a.target===e&&a.pseudoElement===t&&r.push(n[i])}return r},Pp.prototype.getComputedStyle=function(){return getComputedStyle(this._scope,this._selector)};function Fp(e){return{name:e,group:new Pp(`group`,e),imagePair:new Pp(`image-pair`,e),old:new Pp(`old`,e),new:new Pp(`new`,e)}}function Ip(e){this._fragmentFiber=e,this._observers=this._eventListeners=null}Ip.prototype.addEventListener=function(e,t,n){var r=null,i=null;if(!(n!=null&&typeof n!=`boolean`&&(r=n.signal||null,r!==null&&r.aborted))){this._eventListeners===null&&(this._eventListeners=[]);var a=this._eventListeners;if(Vp(a,e,t,n)===-1){var o=this,s=t;n!=null&&typeof n!=`boolean`&&!0===n.once&&(s=function(r){o.removeEventListener(e,t,n),typeof t==`function`?t.call(this,r):t.handleEvent(r)}),r!==null&&(i=o.removeEventListener.bind(o,e,t,n),r.addEventListener(`abort`,i,{once:!0}),i=r.removeEventListener.bind(r,`abort`,i)),r=zp(n),a.push({type:e,listener:t,optionsOrUseCapture:n,attachedListener:s,cleanup:i}),f(this._fragmentFiber.child,!1,Lp,e,s,r)}this._eventListeners=a}};function Lp(e,t,n,r){return v(e).addEventListener(t,n,r),!1}Ip.prototype.removeEventListener=function(e,t,n){var r=this._eventListeners;if(r!==null&&(t=Vp(r,e,t,n),t!==-1)){var i=r[t];n=i.attachedListener;var a=i.cleanup;i=zp(i.optionsOrUseCapture),f(this._fragmentFiber.child,!1,Rp,e,n,i),r.splice(t,1),a!==null&&a()}};function Rp(e,t,n,r){return v(e).removeEventListener(t,n,r),!1}function zp(e){return e!=null&&typeof e!=`boolean`&&(!0===e.once||e.signal instanceof AbortSignal)?{capture:e.capture,passive:e.passive}:e}function Bp(e){return e==null?`c=0`:typeof e==`boolean`?`c=`+(e?`1`:`0`):`c=`+(e.capture?`1`:`0`)}function Vp(e,t,n,r){if(e.length===0)return-1;r=Bp(r);for(var i=0;i<e.length;i++){var a=e[i];if(a.type===t&&a.listener===n&&Bp(a.optionsOrUseCapture)===r)return i}return-1}Ip.prototype.dispatchEvent=function(e){var t=p(this._fragmentFiber);if(t===null)return!0;t=v(t);var n=this._eventListeners;if(n!==null&&0<n.length||!e.bubbles){var r=t.nodeType===9?t.createComment(``):document.createTextNode(``);if(n)for(var i=0;i<n.length;i++){var a=n[i];r.addEventListener(a.type,a.attachedListener,zp(a.optionsOrUseCapture))}if(t.appendChild(r),e=r.dispatchEvent(e),n)for(i=0;i<n.length;i++)a=n[i],r.removeEventListener(a.type,a.attachedListener,zp(a.optionsOrUseCapture));return t.removeChild(r),e}return t.dispatchEvent(e)},Ip.prototype.focus=function(e){f(this._fragmentFiber.child,!0,Hp,e,void 0,void 0)};function Hp(e,t){return e.tag!==6&&(e=v(e),mm(e,t))}Ip.prototype.focusLast=function(e){var t=[];f(this._fragmentFiber.child,!0,Up,t,void 0,void 0);for(var n=t.length-1;0<=n&&!Hp(t[n],e);n--);};function Up(e,t){return t.push(e),!1}Ip.prototype.blur=function(){var e=p(this._fragmentFiber);e!==null&&(e=v(e),e=up(e).activeElement,e!==null&&f(this._fragmentFiber.child,!1,Wp,e,void 0,void 0))};function Wp(e,t){return e.tag!==6&&(e=v(e),e===t||e.contains(t)?(t.blur(),!0):!1)}Ip.prototype.observeUsing=function(e){this._observers===null&&(this._observers=new Set),this._observers.add(e),f(this._fragmentFiber.child,!1,Gp,e,void 0,void 0)};function Gp(e,t){return e.tag!==6&&(e=v(e),t.observe(e),!1)}Ip.prototype.unobserveUsing=function(e){var t=this._observers;if(t!==null&&t.has(e)){t.delete(e),f(this._fragmentFiber.child,!1,Kp,e,void 0,void 0);for(var n=t=0;n<qp.length;n++){var r=qp[n];r.fragmentInstance===this&&r.observer===e?e.unobserve(r.instance):qp[t++]=r}qp.length=t}};function Kp(e,t){return e.tag!==6&&(e=v(e),t.unobserve(e),!1)}var qp=[],Jp=!1;function Yp(e,t,n){qp.push({fragmentInstance:e,observer:t,instance:n}),Jp||(Jp=!0,hm(function(){Jp=!1;var e=qp;qp=[];for(var t=0;t<e.length;t++){var n=e[t];n.observer.unobserve(n.instance)}}))}Ip.prototype.getClientRects=function(){var e=[];return f(this._fragmentFiber.child,!1,Xp,e,void 0,void 0),e};function Xp(e,t){if(e.tag===6){e=e.stateNode;var n=e.ownerDocument.createRange();n.selectNodeContents(e),t.push.apply(t,n.getClientRects())}else e=v(e),t.push.apply(t,e.getClientRects());return!1}Ip.prototype.getRootNode=function(e){var t=p(this._fragmentFiber);return t===null?this:v(t).getRootNode(e)},Ip.prototype.compareDocumentPosition=function(e){var t=p(this._fragmentFiber);if(t===null)return Node.DOCUMENT_POSITION_DISCONNECTED;var n=[];f(this._fragmentFiber.child,!1,Up,n,void 0,void 0);var r=v(t);if(n.length===0){if(n=r,h(this._fragmentFiber)){a:{for(t=this._fragmentFiber.return;t!==null;){if(t.tag===4){t=t.stateNode.containerInfo;break a}if(t.tag===3||t.tag===5||t.tag===27)break;t=t.return}t=null}t!=null&&(n=t)}t=this._fragmentFiber;var i=r=n.compareDocumentPosition(e);return n===e?i=Node.DOCUMENT_POSITION_CONTAINS:r&Node.DOCUMENT_POSITION_CONTAINED_BY&&(n=g(t)[1],n===null?i=Node.DOCUMENT_POSITION_PRECEDING:(e=v(n).compareDocumentPosition(e),i=e===0||e&Node.DOCUMENT_POSITION_FOLLOWING?Node.DOCUMENT_POSITION_FOLLOWING:Node.DOCUMENT_POSITION_PRECEDING)),i|=Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC}t=v(n[0]),i=v(n[n.length-1]);var a=h(this._fragmentFiber)?t.parentElement:r;if(a==null)return Node.DOCUMENT_POSITION_DISCONNECTED;r=a.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY,a=a.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_CONTAINED_BY;var o=t.compareDocumentPosition(e),s=i.compareDocumentPosition(e),c=o&Node.DOCUMENT_POSITION_CONTAINED_BY||s&Node.DOCUMENT_POSITION_CONTAINED_BY;return s=r&&a&&o&Node.DOCUMENT_POSITION_FOLLOWING&&s&Node.DOCUMENT_POSITION_PRECEDING,t=r&&t===e||a&&i===e||c||s?Node.DOCUMENT_POSITION_CONTAINED_BY:!r&&t===e||!a&&i===e?Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC:o,t&Node.DOCUMENT_POSITION_DISCONNECTED||t&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC||Zp(t,this._fragmentFiber,n[0],n[n.length-1],e)?t:Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC};function Zp(e,t,n,r,i){var a=Bt(i);if(e&Node.DOCUMENT_POSITION_CONTAINED_BY){if(n=!!a)a:{for(;a!==null;){if(a.tag===7&&(a===t||a.alternate===t)){n=!0;break a}a=a.return}n=!1}return n}if(e&Node.DOCUMENT_POSITION_CONTAINS){if(a===null)return a=i.ownerDocument,i===a||i===a.documentElement||i===a.body;a:{for(a=t,t=p(t);a!==null;){if(!(a.tag!==5&&a.tag!==3&&a.tag!==27||a!==t&&a.alternate!==t)){a=!0;break a}a=a.return}a=!1}return a}return e&Node.DOCUMENT_POSITION_PRECEDING?((t=!!a)&&!(t=a===n)&&(t=ne(n,a,S),t===null?t=!1:(f(t,!0,ee,a,n),a=y,y=null,t=a!==null)),t):e&Node.DOCUMENT_POSITION_FOLLOWING?((t=!!a)&&!(t=a===r)&&(t=ne(r,a,S),t===null?t=!1:(f(t,!0,x,a,r),a=y,b=y=null,t=a!==null)),t):!1}function Qp(e,t){var n=e.ownerDocument.createRange();n.selectNodeContents(e),e=n.getBoundingClientRect(),window.scrollTo(window.scrollX+e.left,t?window.scrollY+e.top:window.scrollY+e.bottom-window.innerHeight)}Ip.prototype.scrollIntoView=function(e){if(typeof e==`object`)throw Error(i(566));var t=[];f(this._fragmentFiber.child,!1,Up,t,void 0,void 0);var n=!1!==e;if(t.length===0){var r=g(this._fragmentFiber);if(r=n?r[1]||r[0]||p(this._fragmentFiber):r[0]||r[1],r===null)return;if(r.tag===6){e=v(r),Qp(e,n);return}if(r=v(r),r.nodeType!==9){if(r.nodeType===11){n=`host`in r?r.host:null,n!==null&&n.scrollIntoView(e);return}r.scrollIntoView(e)}}for(r=n?t.length-1:0;r!==(n?-1:t.length);){var a=t[r];a.tag===6?(a=v(a),Qp(a,n)):v(a).scrollIntoView(e),r+=n?-1:1}};function $p(e,t){return e=v(e),em(e,t),!1}function em(e,t){e.reactFragments??=new Set,e.reactFragments.add(t)}function tm(e,t){var n=t._eventListeners;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];e.addEventListener(i.type,i.attachedListener,zp(i.optionsOrUseCapture))}e.nodeType!==3&&(n=t._observers,n!==null&&n.forEach(function(n){for(var r=0,i=0;i<qp.length;i++){var a=qp[i];(a.fragmentInstance!==t||a.observer!==n||a.instance!==e)&&(qp[r++]=a)}qp.length=r,n.observe(e)}),em(e,t))}function nm(e,t){var n=t._eventListeners;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];e.removeEventListener(i.type,i.attachedListener,zp(i.optionsOrUseCapture))}e.nodeType!==3&&(n=t._observers,n!==null&&n.forEach(function(n){typeof n.rootMargin==`string`?Yp(t,n,e):n.unobserve(e)}),e.reactFragments!=null&&e.reactFragments.delete(t))}function rm(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case`HTML`:case`HEAD`:case`BODY`:rm(n),zt(n);continue;case`SCRIPT`:case`STYLE`:continue;case`LINK`:if(n.rel.toLowerCase()===`stylesheet`)continue}e.removeChild(n)}}function im(e,t,n,r){for(;e.nodeType===1;){var i=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&(e.nodeName!==`INPUT`||e.type!==`hidden`))break}else if(!r){if(t===`input`&&e.type===`hidden`){var a=i.name==null?null:``+i.name;if(i.type===`hidden`&&e.getAttribute(`name`)===a)return e}else return e}else if(!e[Lt])switch(t){case`meta`:if(!e.hasAttribute(`itemprop`))break;return e;case`link`:if(a=e.getAttribute(`rel`),a===`stylesheet`&&e.hasAttribute(`data-precedence`)||a!==i.rel||e.getAttribute(`href`)!==(i.href==null||i.href===``?null:i.href)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin)||e.getAttribute(`title`)!==(i.title==null?null:i.title))break;return e;case`style`:if(e.hasAttribute(`data-precedence`))break;return e;case`script`:if(a=e.getAttribute(`src`),(a!==(i.src==null?null:i.src)||e.getAttribute(`type`)!==(i.type==null?null:i.type)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin))&&a&&e.hasAttribute(`async`)&&!e.hasAttribute(`itemprop`))break;return e;default:return e}if(e=um(e.nextSibling),e===null)break}return null}function am(e,t,n){if(t===``)return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!n||(e=um(e.nextSibling),e===null))return null;return e}function om(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!t||(e=um(e.nextSibling),e===null))return null;return e}function sm(e){return e.data===`$?`||e.data===`$~`}function cm(e){return e.data===`$!`||e.data===`$?`&&e.ownerDocument.readyState!==`loading`}function lm(e,t){var n=e.ownerDocument;if(e.data===`$~`)e._reactRetry=t;else if(e.data!==`$?`||n.readyState!==`loading`)t();else{var r=function(){t(),n.removeEventListener(`DOMContentLoaded`,r)};n.addEventListener(`DOMContentLoaded`,r),e._reactRetry=r}}function um(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t===`$`||t===`$!`||t===`$?`||t===`$~`||t===`&`||t===`F!`||t===`F`)break;if(t===`/$`||t===`/&`)return null}}return e}var dm=null;function fm(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`/$`||n===`/&`){if(t===0)return um(e.nextSibling);t--}else n!==`$`&&n!==`$!`&&n!==`$?`&&n!==`$~`&&n!==`&`||t++}e=e.nextSibling}return null}function pm(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`$`||n===`$!`||n===`$?`||n===`$~`||n===`&`){if(t===0)return e;t--}else n!==`/$`&&n!==`/&`||t++}e=e.previousSibling}return null}function mm(e,t){function n(){r=!0}if(e.ownerDocument.activeElement===e)return!0;var r=!1;try{e.ownerDocument.addEventListener(`focus`,n,!0),(e.focus||HTMLElement.prototype.focus).call(e,t)}finally{e.ownerDocument.removeEventListener(`focus`,n,!0)}return r}function hm(e){bp(function(){bp(function(t){return e(t)})})}function gm(e,t,n){switch(t=up(n),e){case`html`:if(e=t.documentElement,!e)throw Error(i(452));return e;case`head`:if(e=t.head,!e)throw Error(i(453));return e;case`body`:if(e=t.body,!e)throw Error(i(454));return e;default:throw Error(i(451))}}function _m(e,t,n){for(var r in n){var i=n[r];n.hasOwnProperty(r)&&i!=null&&Q(e,t,r,null,ip,i)}n.dangerouslySetInnerHTML!=null&&(e.textContent=``),e.onclick===En&&(e.onclick=null),zt(e)}function vm(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);zt(e)}var ym=new Map,bm=new Set;function xm(e){if(typeof e.getRootNode==`function`){var t=e.getRootNode();if(t.nodeType===9||t.nodeType===11)return t}return e.nodeType===9?e:e.ownerDocument}var Sm=O.d;O.d={f:Cm,r:wm,D:Dm,C:Om,L:km,m:Am,X:Mm,S:jm,M:Nm};function Cm(){var e=Sm.f(),t=Bd();return e||t}function wm(e){var t=Vt(e);t!==null&&t.tag===5&&t.type===`form`?sc(t):Sm.r(e)}var Tm=typeof document>`u`?null:document;function Em(e,t,n){var r=Tm;if(r&&typeof t==`string`&&t){var i=dn(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),bm.has(i)||(bm.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),rp(t,`link`,e),Wt(t),r.head.appendChild(t)))}}function Dm(e){Sm.D(e),Em(`dns-prefetch`,e,null)}function Om(e,t){Sm.C(e,t),Em(`preconnect`,e,t)}function km(e,t,n){Sm.L(e,t,n);var r=Tm;if(r&&e&&t){var i=`link[rel="preload"][as="`+dn(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+dn(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+dn(n.imageSizes)+`"]`)):i+=`[href="`+dn(e)+`"]`;var a=i;switch(t){case`style`:a=Fm(e);break;case`script`:a=zm(e)}if(!(ym.has(a)||(e=C({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),ym.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(Im(a))||t===`script`&&r.querySelector(Bm(a))))){var o=r.createElement(`link`);rp(o,`link`,e),t===`style`&&(o[Rt]=!0,o.onload=o.onerror=function(){Gt(o)}),Wt(o),r.head.appendChild(o)}}}function Am(e,t){Sm.m(e,t);var n=Tm;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+dn(r)+`"][href="`+dn(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=zm(e)}if(!ym.has(a)&&(e=C({rel:`modulepreload`,href:e},t),ym.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(Bm(a)))return}r=n.createElement(`link`),rp(r,`link`,e),Wt(r),n.head.appendChild(r)}}}function jm(e,t,n){Sm.S(e,t,n);var r=Tm;if(r&&e){var i=Ut(r).hoistableStyles,a=Fm(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(Im(a)))s.loading=5;else{e=C({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=ym.get(a))&&Um(e,n);var c=o=r.createElement(`link`);Wt(c),rp(c,`link`,e),c._p=new Promise(function(e,t){c.onload=e,c.onerror=t}),c.addEventListener(`load`,function(){s.loading|=1}),c.addEventListener(`error`,function(){s.loading|=2}),s.loading|=4,Hm(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function Mm(e,t){Sm.X(e,t);var n=Tm;if(n&&e){var r=Ut(n).hoistableScripts,i=zm(e),a=r.get(i);a||(a=n.querySelector(Bm(i)),a||(e=C({src:e,async:!0},t),(t=ym.get(i))&&Wm(e,t),a=n.createElement(`script`),Wt(a),rp(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Nm(e,t){Sm.M(e,t);var n=Tm;if(n&&e){var r=Ut(n).hoistableScripts,i=zm(e),a=r.get(i);a||(a=n.querySelector(Bm(i)),a||(e=C({src:e,async:!0,type:`module`},t),(t=ym.get(i))&&Wm(e,t),a=n.createElement(`script`),Wt(a),rp(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Pm(e,t,n,r){var a=(a=Ae.current)?xm(a):null;if(!a)throw Error(i(446));switch(e){case`meta`:case`title`:return null;case`style`:return typeof n.precedence==`string`&&typeof n.href==`string`?(n=Fm(n.href),t=Ut(a).hoistableStyles,r=t.get(n),r||(r={type:`style`,instance:null,count:0,state:null},t.set(n,r)),r):{type:`void`,instance:null,count:0,state:null};case`link`:if(n.rel===`stylesheet`&&typeof n.href==`string`&&typeof n.precedence==`string`){e=Fm(n.href);var o=Ut(a).hoistableStyles,s=o.get(e);if(s||(a=a.ownerDocument||a,s={type:`stylesheet`,instance:null,count:0,state:{loading:0,preload:null}},o.set(e,s),(o=a.querySelector(Im(e)))?o._p||(s.instance=o,s.state.loading=5):(o=ym.get(e),o||(o={rel:`preload`,as:`style`,href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},ym.set(e,o)),Rm(a,e,o,s.state))),t&&r===null)throw Error(i(528,``));return s}if(t&&r!==null)throw Error(i(529,``));return null;case`script`:return t=n.async,n=n.src,typeof n==`string`&&t&&typeof t!=`function`&&typeof t!=`symbol`?(n=zm(n),t=Ut(a).hoistableScripts,r=t.get(n),r||(r={type:`script`,instance:null,count:0,state:null},t.set(n,r)),r):{type:`void`,instance:null,count:0,state:null};default:throw Error(i(444,e))}}function Fm(e){return`href="`+dn(e)+`"`}function Im(e){return`link[rel="stylesheet"][`+e+`]`}function Lm(e){return C({},e,{"data-precedence":e.precedence,precedence:null})}function Rm(e,t,n,r){if(t=e.querySelector(`link[rel="preload"][as="style"][`+t+`]`)){if(!0!==t[Rt]){r.loading=1;return}}else t=e.createElement(`link`),t[Rt]=!0,t.onload=t.onerror=Gt.bind(null,t),rp(t,`link`,n),Wt(t),e.head.appendChild(t);r.preload=t,t.addEventListener(`load`,function(){return r.loading|=1}),t.addEventListener(`error`,function(){return r.loading|=2})}function zm(e){return`[src="`+dn(e)+`"]`}function Bm(e){return`script[async]`+e}function Vm(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+dn(n.href)+`"]`);if(r)return t.instance=r,Wt(r),r;var a=C({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),Wt(r),rp(r,`style`,a),Hm(r,n.precedence,e),t.instance=r;case`stylesheet`:a=Fm(n.href);var o=e.querySelector(Im(a));if(o)return t.state.loading|=4,t.instance=o,Wt(o),o;r=Lm(n),(a=ym.get(a))&&Um(r,a),o=(e.ownerDocument||e).createElement(`link`),Wt(o);var s=o;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),rp(o,`link`,r),t.state.loading|=4,Hm(o,n.precedence,e),t.instance=o;case`script`:return o=zm(n.src),(a=e.querySelector(Bm(o)))?(t.instance=a,Wt(a),a):(r=n,(a=ym.get(o))&&(r=C({},n),Wm(r,a)),e=e.ownerDocument||e,a=e.createElement(`script`),Wt(a),rp(a,`link`,r),e.head.appendChild(a),t.instance=a);case`void`:return null;default:throw Error(i(443,t.type))}else t.type===`stylesheet`&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,Hm(r,n.precedence,e));return t.instance}function Hm(e,t,n){for(var r=n.querySelectorAll(`link[rel="stylesheet"][data-precedence],style[data-precedence]`),i=r.length?r[r.length-1]:null,a=i,o=0;o<r.length;o++){var s=r[o];if(s.dataset.precedence===t)a=s;else if(a!==i)break}a?a.parentNode.insertBefore(e,a.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function Um(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.title??=t.title}function Wm(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.integrity??=t.integrity}var Gm=null;function Km(e,t,n){if(Gm===null){var r=new Map,i=Gm=new Map;i.set(n,r)}else i=Gm,r=i.get(n),r||(r=new Map,i.set(n,r));if(r.has(e))return r;for(r.set(e,null),n=n.getElementsByTagName(e),i=0;i<n.length;i++){var a=n[i];if(!(a[Lt]||a[At]||e===`link`&&a.getAttribute(`rel`)===`stylesheet`)&&a.namespaceURI!==`http://www.w3.org/2000/svg`){var o=a.getAttribute(t)||``;o=e+o;var s=r.get(o);s?s.push(a):r.set(o,[a])}}return r}function qm(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t===`title`?e.querySelector(`head > title`):null)}function Jm(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case`meta`:case`title`:return!0;case`style`:if(typeof t.precedence!=`string`||typeof t.href!=`string`||t.href===``)break;return!0;case`link`:if(typeof t.rel!=`string`||typeof t.href!=`string`||t.href===``||t.onLoad||t.onError)break;switch(t.rel){case`stylesheet`:return e=t.disabled,typeof t.precedence==`string`&&e==null;default:return!0}case`script`:if(t.async&&typeof t.async!=`function`&&typeof t.async!=`symbol`&&!t.onLoad&&!t.onError&&t.src&&typeof t.src==`string`)return!0}return!1}function Ym(e,t){return e===`img`&&t.src!=null&&t.src!==``&&t.onLoad==null&&t.loading!==`lazy`}function Xm(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function Zm(e){return(e.width||100)*(e.height||100)*(typeof devicePixelRatio==`number`?devicePixelRatio:1)*.25}function Qm(e,t){typeof t.decode==`function`&&(e.imgCount++,t.complete||(e.imgBytes+=Zm(t),e.suspenseyImages.push(t)),e=ih.bind(e),t.decode().then(e,e))}function $m(e,t,n,r){if(n.type===`stylesheet`&&(typeof r.media!=`string`||!1!==matchMedia(r.media).matches)&&!(n.state.loading&4)){if(n.instance===null){var i=Fm(r.href),a=t.querySelector(Im(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=rh.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,Wt(a);return}a=t.ownerDocument||t,r=Lm(r),(i=ym.get(i))&&Um(r,i),a=a.createElement(`link`),Wt(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),rp(a,`link`,r),n.instance=a}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(n.state.loading&3)&&(e.count++,n=rh.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var eh=0;function th(e,t){return e.stylesheets&&e.count===0&&oh(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&oh(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},6e4+t);0<e.imgBytes&&eh===0&&(eh=62500*sp());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&oh(e,e.stylesheets),e.unsuspend)){var t=e.unsuspend;e.unsuspend=null,t()}},(e.imgBytes>eh?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function nh(e){if(e.count===0&&(e.imgCount===0||!e.waitingForImages)){if(e.stylesheets)oh(e,e.stylesheets);else if(e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}}}function rh(){this.count--,nh(this)}function ih(){this.imgCount--,nh(this)}var ah=null;function oh(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,ah=new Map,t.forEach(sh,e),ah=null,rh.call(e))}function sh(e,t){if(!(t.state.loading&4)){var n=ah.get(e);if(n)var r=n.get(null);else{n=new Map,ah.set(e,n);for(var i=e.querySelectorAll(`link[data-precedence],style[data-precedence]`),a=0;a<i.length;a++){var o=i[a];(o.nodeName===`LINK`||o.getAttribute(`media`)!==`not all`)&&(n.set(o.dataset.precedence,o),r=o)}r&&n.set(null,r)}i=t.instance,o=i.getAttribute(`data-precedence`),a=n.get(o)||r,a===r&&n.set(null,i),n.set(o,i),this.count++,r=rh.bind(this),i.addEventListener(`load`,r),i.addEventListener(`error`,r),a?a.parentNode.insertBefore(i,a.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),t.state.loading|=4}}var ch={$$typeof:ce,Provider:null,Consumer:null,_currentValue:Ce,_currentValue2:Ce,_threadCount:0};function lh(e,t,n,r,i,a,o,s,c){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=yt(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=yt(0),this.hiddenUpdates=yt(null),this.identifierPrefix=r,this.onUncaughtError=i,this.onCaughtError=a,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=c,this.transitionTypes=null,this.incompleteTransitions=new Map}function uh(e,t,n,r,i,a,o,s,c,l,u,d){return e=new lh(e,t,n,o,c,l,u,d,s),t=1,!0===a&&(t|=24),a=Bi(3,null,null,t),e.current=a,a.stateNode=e,t=La(),t.refCount++,e.pooledCache=t,t.refCount++,a.memoizedState={element:r,isDehydrated:n,cache:t},bo(a),e}function dh(e){return e?(e=Ri,e):Ri}function fh(e,t,n,r,i,a){i=dh(i),r.context===null?r.context=i:r.pendingContext=i,r=So(t),r.payload={element:n},a=a===void 0?null:a,a!==null&&(r.callback=a),n=Co(e,r,t),n!==null&&(Fd(n,e,t),wo(n,e,t))}function ph(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function mh(e,t){ph(e,t),(e=e.alternate)&&ph(e,t)}function hh(e){if(e.tag===13||e.tag===31){var t=Fi(e,67108864);t!==null&&Fd(t,e,67108864),mh(e,67108864)}}function gh(e){if(e.tag===13||e.tag===31){var t=Md();t=Tt(t);var n=Fi(e,t);n!==null&&Fd(n,e,t),mh(e,t)}}var _h=!0;function vh(e,t,n,r){var i=D.T;D.T=null;var a=O.p;try{O.p=2,bh(e,t,n,r)}finally{O.p=a,D.T=i}}function yh(e,t,n,r){var i=D.T;D.T=null;var a=O.p;try{O.p=8,bh(e,t,n,r)}finally{O.p=a,D.T=i}}function bh(e,t,n,r){if(_h){var i=xh(r);if(i===null)qf(e,t,r,Sh,n),Nh(e,r);else if(Fh(i,e,t,n,r))r.stopPropagation();else if(Nh(e,r),t&4&&-1<Mh.indexOf(e)){for(;i!==null;){var a=Vt(i);if(a!==null)switch(a.tag){case 3:if(a=a.stateNode,a.current.memoizedState.isDehydrated){var o=pt(a.pendingLanes);if(o!==0){var s=a;for(s.pendingLanes|=2,s.entangledLanes|=2;o;){var c=1<<31-ot(o);s.entanglements[1]|=c,o&=~c}Df(a),!(G&6)&&(_d=Je()+500,Of(0,!1))}}break;case 31:case 13:s=Fi(a,2),s!==null&&Fd(s,a,2),Bd(),mh(a,2)}if(a=xh(r),a===null&&qf(e,t,r,Sh,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else qf(e,t,r,null,n)}}function xh(e){return e=On(e),Ch(e)}var Sh=null;function Ch(e){if(Sh=null,e=Bt(e),e!==null){var t=o(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=s(t),e!==null)return e;e=null}else if(n===31){if(e=c(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Sh=e,null}function wh(e){switch(e){case`beforetoggle`:case`cancel`:case`click`:case`close`:case`contextmenu`:case`copy`:case`cut`:case`auxclick`:case`dblclick`:case`dragend`:case`dragstart`:case`drop`:case`focusin`:case`focusout`:case`input`:case`invalid`:case`keydown`:case`keypress`:case`keyup`:case`mousedown`:case`mouseup`:case`paste`:case`pause`:case`play`:case`pointercancel`:case`pointerdown`:case`pointerup`:case`ratechange`:case`reset`:case`seeked`:case`submit`:case`toggle`:case`touchcancel`:case`touchend`:case`touchstart`:case`volumechange`:case`change`:case`selectionchange`:case`textInput`:case`compositionstart`:case`compositionend`:case`compositionupdate`:case`beforeblur`:case`afterblur`:case`beforeinput`:case`blur`:case`fullscreenchange`:case`fullscreenerror`:case`focus`:case`hashchange`:case`popstate`:case`select`:case`selectstart`:return 2;case`drag`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`mousemove`:case`mouseout`:case`mouseover`:case`pointermove`:case`pointerout`:case`pointerover`:case`resize`:case`scroll`:case`touchmove`:case`wheel`:case`mouseenter`:case`mouseleave`:case`pointerenter`:case`pointerleave`:return 8;case`message`:switch(Ye()){case Xe:return 2;case Ze:return 8;case Qe:case $e:return 32;case et:return 268435456;default:return 32}default:return 32}}var Th=!1,Eh=null,Dh=null,Oh=null,kh=new Map,Ah=new Map,jh=[],Mh=`mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset`.split(` `);function Nh(e,t){switch(e){case`focusin`:case`focusout`:Eh=null;break;case`dragenter`:case`dragleave`:Dh=null;break;case`mouseover`:case`mouseout`:Oh=null;break;case`pointerover`:case`pointerout`:kh.delete(t.pointerId);break;case`gotpointercapture`:case`lostpointercapture`:Ah.delete(t.pointerId)}}function Ph(e,t,n,r,i,a){return e===null||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[i]},t!==null&&(t=Vt(t),t!==null&&hh(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Fh(e,t,n,r,i){switch(t){case`focusin`:return Eh=Ph(Eh,e,t,n,r,i),!0;case`dragenter`:return Dh=Ph(Dh,e,t,n,r,i),!0;case`mouseover`:return Oh=Ph(Oh,e,t,n,r,i),!0;case`pointerover`:var a=i.pointerId;return kh.set(a,Ph(kh.get(a)||null,e,t,n,r,i)),!0;case`gotpointercapture`:return a=i.pointerId,Ah.set(a,Ph(Ah.get(a)||null,e,t,n,r,i)),!0}return!1}function Ih(e){var t=Bt(e.target);if(t!==null){var n=o(t);if(n!==null){if(t=n.tag,t===13){if(t=s(n),t!==null){e.blockedOn=t,Ot(e.priority,function(){gh(n)});return}}else if(t===31){if(t=c(n),t!==null){e.blockedOn=t,Ot(e.priority,function(){gh(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Lh(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=xh(e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Dn=r,n.target.dispatchEvent(r),Dn=null}else return t=Vt(n),t!==null&&hh(t),e.blockedOn=n,!1;t.shift()}return!0}function Rh(e,t,n){Lh(e)&&n.delete(t)}function zh(){Th=!1,Eh!==null&&Lh(Eh)&&(Eh=null),Dh!==null&&Lh(Dh)&&(Dh=null),Oh!==null&&Lh(Oh)&&(Oh=null),kh.forEach(Rh),Ah.forEach(Rh)}function Bh(e,n){e.blockedOn===n&&(e.blockedOn=null,Th||(Th=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,zh)))}var Vh=null;function Hh(e){Vh!==e&&(Vh=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){Vh===e&&(Vh=null);for(var t=0;t<e.length;t+=3){var n=e[t],r=e[t+1],i=e[t+2];if(typeof r!=`function`){if(Ch(r||n)===null)continue;break}var a=Vt(n);a!==null&&(e.splice(t,3),t-=3,ac(a,{pending:!0,data:i,method:n.method,action:r},r,i))}}))}function Uh(e){function t(t){return Bh(t,e)}Eh!==null&&Bh(Eh,e),Dh!==null&&Bh(Dh,e),Oh!==null&&Bh(Oh,e),kh.forEach(t),Ah.forEach(t);for(var n=0;n<jh.length;n++){var r=jh[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<jh.length&&(n=jh[0],n.blockedOn===null);)Ih(n),n.blockedOn===null&&jh.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(r=0;r<n.length;r+=3){var i=n[r],a=n[r+1],o=i[jt]||null;if(typeof a==`function`)o||Hh(n);else if(o){var s=null;if(a&&a.hasAttribute(`formAction`)){if(i=a,o=a[jt]||null)s=o.formAction;else if(Ch(i)!==null)continue}else s=o.action;typeof s==`function`?n[r+1]=s:(n.splice(r,3),r-=3),Hh(n)}}}function Wh(){function e(e){e.canIntercept&&e.info===`react-transition`&&e.intercept({handler:function(){return new Promise(function(e){return i=e})},focusReset:`manual`,scroll:`manual`})}function t(){i!==null&&(i(),i=null),r||setTimeout(n,20)}function n(){if(!r&&!navigation.transition){var e=navigation.currentEntry;e&&e.url!=null&&navigation.navigate(e.url,{state:e.getState(),info:`react-transition`,history:`replace`})}}if(typeof navigation==`object`){var r=!1,i=null;return navigation.addEventListener(`navigate`,e),navigation.addEventListener(`navigatesuccess`,t),navigation.addEventListener(`navigateerror`,t),setTimeout(n,100),function(){r=!0,navigation.removeEventListener(`navigate`,e),navigation.removeEventListener(`navigatesuccess`,t),navigation.removeEventListener(`navigateerror`,t),i!==null&&(i(),i=null)}}}function Gh(e){this._internalRoot=e}Kh.prototype.render=Gh.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(i(409));var n=t.current;fh(n,Md(),e,t,null,null)},Kh.prototype.unmount=Gh.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;fh(e.current,2,null,e,null,null),Bd(),t[Mt]=null}};function Kh(e){this._internalRoot=e}Kh.prototype.unstable_scheduleHydration=function(e){if(e){var t=Dt();e={blockedOn:null,target:e,priority:t};for(var n=0;n<jh.length&&t!==0&&t<jh[n].priority;n++);jh.splice(n,0,e),n===0&&Ih(e)}};var qh=n.version;if(qh!==`19.3.0`)throw Error(i(527,qh,`19.3.0`));O.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render==`function`?Error(i(188)):(e=Object.keys(e).join(`,`),Error(i(268,e)));return e=u(t),e=e===null?null:d(e),e=e===null?null:e.stateNode,e};var Jh={bundleType:0,version:`19.3.0`,rendererPackageName:`react-dom`,currentDispatcherRef:D,reconcilerVersion:`19.3.0`};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`){var Yh=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Yh.isDisabled&&Yh.supportsFiber)try{rt=Yh.inject(Jh),it=Yh}catch{}}e.createRoot=function(e,t){if(!a(e))throw Error(i(299));var n=!1,r=``,o=Dc,s=Oc,c=kc;return t!=null&&(!0===t.unstable_strictMode&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onUncaughtError!==void 0&&(o=t.onUncaughtError),t.onCaughtError!==void 0&&(s=t.onCaughtError),t.onRecoverableError!==void 0&&(c=t.onRecoverableError)),t=uh(e,1,!1,null,null,n,r,null,o,s,c,Wh),e[Mt]=t.current,Gf(e),new Gh(t)}})),cr=ie(((e,t)=>{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=sr()})),lr=function(e){(0,D.useEffect)(e,[])},ur=function(e,t){return t===void 0?re?window.matchMedia(e).matches:!1:t},dr=function(e,t){var n=(0,D.useState)(ur(e,t)),r=n[0],i=n[1];return(0,D.useEffect)(function(){var t=!0,n=window.matchMedia(e),r=function(){t&&i(!!n.matches)};return n.addEventListener(`change`,r),i(n.matches),function(){t=!1,n.removeEventListener(`change`,r)}},[e]),r};function fr(e){var t=(0,D.useRef)();return(0,D.useEffect)(function(){t.current=e}),t.current}function pr(e,t){return function(){return e.apply(t,arguments)}}var{toString:mr}=Object.prototype,{getPrototypeOf:hr}=Object,{iterator:gr,toStringTag:_r}=Symbol,vr=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),yr=e=>typeof e==`string`&&(e===`__proto__`||e===`constructor`||e===`prototype`),br=(e,t,n)=>e===Object.prototype||!n&&t===null,xr=e=>{if(!Object.isExtensible(e))return!1;let t=Object.getOwnPropertyNames(e);return Object.getOwnPropertySymbols&&t.push(...Object.getOwnPropertySymbols(e)),t.every(t=>{if(yr(t))return!1;let n=Object.getOwnPropertyDescriptor(e,t);return!!n&&n.configurable&&n.writable===!0})},Sr=(e,t)=>{let n=e,r=[];for(;n!=null;){if(r.indexOf(n)!==-1)return!1;r.push(n);let i=hr(n);if(br(n,i,n===e))return!1;if(vr(n,t))return!0;n=i}return!1},Cr=(e,t)=>e!=null&&Sr(e,t)?e[t]:void 0,wr=e=>{if(e==null||typeof e!=`object`&&typeof e!=`function`)return e;let t=hr(e);if(t===null&&xr(e))return e;let n=Object.create(null),r=Object.create(null),i=[],a=e;for(;a!=null&&i.indexOf(a)===-1;){i.push(a);let o=a===e?t:hr(a);if(br(a,o,a===e))break;let s=Object.getOwnPropertyNames(a);Object.getOwnPropertySymbols&&s.push(...Object.getOwnPropertySymbols(a));for(let t of s)yr(t)||vr(r,t)||(n[t]=e[t],r[t]=!0);a=o}return n},Tr=(e=>t=>{let n=mr.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Er=e=>(e=e.toLowerCase(),t=>Tr(t)===e),Dr=e=>t=>typeof t===e,{isArray:Or}=Array,kr=Dr(`undefined`);function Ar(e){return e!==null&&!kr(e)&&e.constructor!==null&&!kr(e.constructor)&&Pr(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}var jr=Er(`ArrayBuffer`);function Mr(e){let t;return t=typeof ArrayBuffer<`u`&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&jr(e.buffer),t}var Nr=Dr(`string`),Pr=Dr(`function`),Fr=Dr(`number`),Ir=e=>typeof e==`object`&&!!e,Lr=e=>e===!0||e===!1,Rr=e=>{if(!Ir(e))return!1;let t=hr(e);return(t===null||t===Object.prototype||hr(t)===null)&&!Sr(e,_r)&&!Sr(e,gr)},zr=e=>{if(!Ir(e)||Ar(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},Br=Er(`Date`),Vr=Er(`File`),Hr=e=>!!(e&&e.uri!==void 0),Ur=e=>e&&e.getParts!==void 0,Wr=Er(`Blob`),Gr=Er(`FileList`),Kr=Er(`Set`),qr=e=>Ir(e)&&Pr(e.pipe);function Jr(){return typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:typeof global<`u`?global:{}}var Yr=Jr(),Xr=Yr.FormData===void 0?void 0:Yr.FormData,Zr=e=>{if(!e)return!1;if(Xr&&e instanceof Xr)return!0;let t=hr(e);if(!t||t===Object.prototype||!Pr(e.append))return!1;let n=Tr(e);return n===`formdata`||n===`object`&&Pr(e.toString)&&e.toString()===`[object FormData]`},Qr=Er(`URLSearchParams`),[$r,ei,ti,ni]=[`ReadableStream`,`Request`,`Response`,`Headers`].map(Er),ri=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,``);function ii(e,t,{allOwnKeys:n=!1}={}){if(e==null)return;let r,i;if(typeof e!=`object`&&(e=[e]),Or(e))for(r=0,i=e.length;r<i;r++)t.call(null,e[r],r,e);else{if(Ar(e))return;let i=n?Object.getOwnPropertyNames(e):Object.keys(e),a=i.length,o;for(r=0;r<a;r++)o=i[r],t.call(null,e[o],o,e)}}function ai(e,t){if(Ar(e))return null;t=t.toLowerCase();let n=Object.keys(e),r=n.length,i;for(;r-->0;)if(i=n[r],t===i.toLowerCase())return i;return null}var oi=typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:global,si=e=>!kr(e)&&e!==oi;function ci(...e){let{caseless:t,skipUndefined:n}=si(this)&&this||{},r={},i=(e,i)=>{if(i===`__proto__`||i===`constructor`||i===`prototype`)return;let a=t&&typeof i==`string`&&ai(r,i)||i,o=vr(r,a)?r[a]:void 0;Rr(o)&&Rr(e)?r[a]=ci(o,e):Rr(e)?r[a]=ci({},e):Or(e)?r[a]=e.slice():(!n||!kr(e))&&(r[a]=e)};for(let t=0,n=e.length;t<n;t++){let n=e[t];if(!n||Ar(n)||(ii(n,i),typeof n!=`object`||Or(n)))continue;let r=Object.getOwnPropertySymbols(n);for(let e=0;e<r.length;e++){let t=r[e];bi.call(n,t)&&i(n[t],t)}}return r}var li=(e,t,n,{allOwnKeys:r}={})=>(ii(t,(t,r)=>{n&&Pr(t)?Object.defineProperty(e,r,{__proto__:null,value:pr(t,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,r,{__proto__:null,value:t,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:r}),e),ui=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),di=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),Object.defineProperty(e.prototype,"constructor",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{__proto__:null,value:t.prototype}),n&&Object.assign(e.prototype,n)},fi=(e,t,n,r)=>{let i,a,o,s={};if(t||={},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),a=i.length;a-->0;)o=i[a],(!r||r(o,e,t))&&!s[o]&&(t[o]=e[o],s[o]=!0);e=n!==!1&&hr(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},pi=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;let r=e.indexOf(t,n);return r!==-1&&r===n},mi=e=>{if(!e)return null;if(Or(e))return e;let t=e.length;if(!Fr(t))return null;let n=Array(t);for(;t-->0;)n[t]=e[t];return n},hi=(e=>t=>e&&t instanceof e)(typeof Uint8Array<`u`&&hr(Uint8Array)),gi=(e,t)=>{let n=(e&&e[gr]).call(e),r;for(;(r=n.next())&&!r.done;){let n=r.value;t.call(e,n[0],n[1])}},_i=(e,t)=>{let n,r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},vi=Er(`HTMLFormElement`),yi=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,n){return t.toUpperCase()+n}),{propertyIsEnumerable:bi}=Object.prototype,xi=Er(`RegExp`),Si=(e,t)=>{let n=Object.getOwnPropertyDescriptors(e),r={};ii(n,(n,i)=>{let a;(a=t(n,i,e))!==!1&&(r[i]=a||n)}),Object.defineProperties(e,r)},Ci=e=>{Si(e,(t,n)=>{if(Pr(e)&&[`arguments`,`caller`,`callee`].includes(n))return!1;let r=e[n];if(Pr(r)){if(t.enumerable=!1,`writable`in t){t.writable=!1;return}t.set||=()=>{throw Error(`Can not rewrite read-only method '`+n+`'`)}}})},wi=(e,t)=>{let n={},r=e=>{e.forEach(e=>{n[e]=!0})};return Or(e)?r(e):r(String(e).split(t)),n},Ti=()=>{},Ei=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function Di(e){return!!(e&&Pr(e.append)&&e[_r]===`FormData`&&e[gr])}var Oi=e=>{let t=new WeakSet,n=e=>{if(Ir(e)){if(t.has(e))return;if(Ar(e))return e;if(!(`toJSON`in e)){t.add(e);let r;if(Kr(e)){r=[];for(let t of e){let e=n(t);!kr(e)&&r.push(e)}}else r=Or(e)?[]:{},ii(e,(e,t)=>{let i=n(e);!kr(i)&&(r[t]=i)});return t.delete(e),r}}return e};return n(e)},ki=Er(`AsyncFunction`),Ai=e=>e&&(Ir(e)||Pr(e))&&Pr(e.then)&&Pr(e.catch),ji=((e,t)=>e?setImmediate:t?((e,t)=>(oi.addEventListener(`message`,({source:n,data:r})=>{n===oi&&r===e&&t.length&&t.shift()()},!1),n=>{t.push(n),oi.postMessage(e,`*`)}))(`axios@${Math.random()}`,[]):e=>setTimeout(e))(typeof setImmediate==`function`,Pr(oi.postMessage)),Mi=typeof queueMicrotask<`u`?queueMicrotask.bind(oi):typeof process<`u`&&process.nextTick||ji,Ni=e=>e!=null&&Pr(e[gr]),j={isArray:Or,isArrayBuffer:jr,isBuffer:Ar,isFormData:Zr,isArrayBufferView:Mr,isString:Nr,isNumber:Fr,isBoolean:Lr,isObject:Ir,isPlainObject:Rr,isEmptyObject:zr,isReadableStream:$r,isRequest:ei,isResponse:ti,isHeaders:ni,isUndefined:kr,isDate:Br,isFile:Vr,isReactNativeBlob:Hr,isReactNative:Ur,isBlob:Wr,isRegExp:xi,isFunction:Pr,isStream:qr,isURLSearchParams:Qr,isTypedArray:hi,isFileList:Gr,forEach:ii,merge:ci,extend:li,trim:ri,stripBOM:ui,inherits:di,toFlatObject:fi,kindOf:Tr,kindOfTest:Er,endsWith:pi,toArray:mi,forEachEntry:gi,matchAll:_i,isHTMLForm:vi,hasOwnProperty:vr,hasOwnProp:vr,hasOwnInPrototypeChain:Sr,getSafeProp:Cr,toSafeFlatObject:wr,reduceDescriptors:Si,freezeMethods:Ci,toObjectSet:wi,toCamelCase:yi,noop:Ti,toFiniteNumber:Ei,findKey:ai,global:oi,isContextDefined:si,isSpecCompliantForm:Di,toJSONObject:Oi,isAsyncFn:ki,isThenable:Ai,setImmediate:ji,asap:Mi,isIterable:Ni,isSafeIterable:e=>e!=null&&Sr(e,gr)&&Ni(e)},Pi=j.toObjectSet([`age`,`authorization`,`content-length`,`content-type`,`etag`,`expires`,`from`,`host`,`if-modified-since`,`if-unmodified-since`,`last-modified`,`location`,`max-forwards`,`proxy-authorization`,`referer`,`retry-after`,`user-agent`]),Fi=e=>{let t={},n,r,i;return e&&e.split(`
|
|
11
|
-
`).forEach(function(e){i=e.indexOf(`:`),n=e.substring(0,i).trim().toLowerCase(),r=e.substring(i+1).trim();let a=j.hasOwnProp(t,n);!n||a&&j.hasOwnProp(Pi,n)||(n===`set-cookie`?a?t[n].push(r):t[n]=[r]:t[n]=a?t[n]+`, `+r:r)}),t};function Ii(e){let t=0,n=e.length;for(;t<n;){let n=e.charCodeAt(t);if(n!==9&&n!==32)break;t+=1}for(;n>t;){let t=e.charCodeAt(n-1);if(t!==9&&t!==32)break;--n}return t===0&&n===e.length?e:e.slice(t,n)}var Li=RegExp(`[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+`,`g`),Ri=RegExp(`[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+`,`g`);function zi(e,t){return j.isArray(e)?e.map(e=>zi(e,t)):Ii(String(e).replace(t,``))}var Bi=e=>zi(e,Li),Vi=e=>zi(e,Ri);function Hi(e){let t=Object.create(null);return j.forEach(e.toJSON(),(e,n)=>{t[n]=Vi(e)}),t}var Ui=Symbol(`internals`);function Wi(e){return e&&String(e).trim().toLowerCase()}function Gi(e){return e===!1||e==null?e:j.isArray(e)?e.map(Gi):Bi(String(e))}function Ki(e){let t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g,r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}var qi=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/;function Ji(e){let t=0,n=e.length;for(;t<n;){let n=e.charCodeAt(t);if(n!==9&&n!==32)break;t+=1}for(;n>t;){let t=e.charCodeAt(n-1);if(t!==9&&t!==32)break;--n}return t===0&&n===e.length?e:e.slice(t,n)}function Yi(e){let t=e.length-1;if(t<1||e.charCodeAt(0)!==34||e.charCodeAt(t)!==34)return e;let n=``;for(let r=1;r<t;r++){let i=e.charCodeAt(r);if(i===34||i===92&&(r+=1,r>=t))return e;n+=e[r]}return n}function Xi(e){let t=Object.create(null),n=String(e),r=0,i=!1,a=!1;function o(e){let i=Ji(n.slice(r,e)),a=i.indexOf(`=`);if(a<1)return;let o=Ji(i.slice(0,a));if(!qi.test(o))return;let s=o.toLowerCase();if(s===`__proto__`||s===`constructor`||s===`prototype`)return;let c=Ji(i.slice(a+1));t[s]=Yi(c)}for(let e=0;e<n.length;e++){let t=n.charCodeAt(e);i?a?a=!1:t===92?a=!0:t===34&&(i=!1):t===34?i=!0:(t===44||t===59)&&(o(e),r=e+1)}return o(n.length),t}var Zi=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Qi(e,t,n,r,i){if(j.isFunction(r))return r.call(this,t,n);if(i&&(t=n),j.isString(t)){if(j.isString(r))return t.indexOf(r)!==-1;if(j.isRegExp(r))return r.test(t)}}function $i(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}function ea(e,t){let n=j.toCamelCase(` `+t);[`get`,`set`,`has`].forEach(r=>{Object.defineProperty(e,r+n,{__proto__:null,value:function(e,n,i){return this[r].call(this,t,e,n,i)},configurable:!0})})}var M=class{constructor(e){e&&this.set(e)}set(e,t,n){let r=this;function i(e,t,n){let i=Wi(t);if(!i)return;let a=j.findKey(r,i);(!a||r[a]===void 0||n===!0||n===void 0&&r[a]!==!1)&&(r[a||t]=Gi(e))}let a=(e,t)=>j.forEach(e,(e,n)=>i(e,n,t));if(j.isPlainObject(e)||e instanceof this.constructor)a(e,t);else if(j.isString(e)&&(e=e.trim())&&!Zi(e))a(Fi(e),t);else if(j.isObject(e)&&j.isSafeIterable(e)){let n=Object.create(null),r,i;for(let t of e){if(!j.isArray(t))throw TypeError(`Object iterator must return a key-value pair`);i=t[0],j.hasOwnProp(n,i)?(r=n[i],n[i]=j.isArray(r)?[...r,t[1]]:[r,t[1]]):n[i]=t[1]}a(n,t)}else e!=null&&i(t,e,n);return this}get(e,t){if(e=Wi(e),e){let n=j.findKey(this,e);if(n){let e=this[n];if(!t)return e;if(t===!0)return Ki(e);if(j.isFunction(t))return t.call(this,e,n);if(j.isRegExp(t))return t.exec(e);throw TypeError(`parser must be boolean|regexp|function`)}}}has(e,t){if(e=Wi(e),e){let n=j.findKey(this,e);return!!(n&&this[n]!==void 0&&(!t||Qi(this,this[n],n,t)))}return!1}delete(e,t){let n=this,r=!1;function i(e){if(e=Wi(e),e){let i=j.findKey(n,e);i&&(!t||Qi(n,n[i],i,t))&&(delete n[i],r=!0)}}return j.isArray(e)?e.forEach(i):i(e),r}clear(e){let t=Object.keys(this),n=t.length,r=!1;for(;n--;){let i=t[n];(!e||Qi(this,this[i],i,e,!0))&&(delete this[i],r=!0)}return r}normalize(e){let t=this,n={};return j.forEach(this,(r,i)=>{let a=j.findKey(n,i);if(a){t[a]=Gi(r),delete t[i];return}let o=e?$i(i):String(i).trim();o!==i&&delete t[i],t[o]=Gi(r),n[o]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){let t=Object.create(null);return j.forEach(this,(n,r)=>{n!=null&&n!==!1&&(t[r]=e&&j.isArray(n)?n.join(`, `):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+`: `+t).join(`
|
|
12
|
-
`)}getSetCookie(){let e=this.get(`set-cookie`);return j.isArray(e)?e:e==null||e===!1?[]:[e]}get[Symbol.toStringTag](){return`AxiosHeaders`}static from(e){return e instanceof this?e:new this(e)}static parseParameters(e){return Xi(e)}static concat(e,...t){let n=new this(e);return t.forEach(e=>n.set(e)),n}static accessor(e){let t=(this[Ui]=this[Ui]={accessors:{}}).accessors,n=this.prototype;function r(e){let r=Wi(e);t[r]||(ea(n,e),t[r]=!0)}return j.isArray(e)?e.forEach(r):r(e),this}};M.accessor([`Content-Type`,`Content-Length`,`Accept`,`Accept-Encoding`,`User-Agent`,`Authorization`]),j.reduceDescriptors(M.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}),j.freezeMethods(M);var ta=`[REDACTED ****]`;function na(e){if(j.hasOwnProp(e,`toJSON`))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if(j.hasOwnProp(t,`toJSON`))return!0;t=Object.getPrototypeOf(t)}return!1}function ra(e,t){let n=new Set(t.map(e=>String(e).toLowerCase())),r=[],i=e=>{if(typeof e!=`object`||!e||j.isBuffer(e))return e;if(r.indexOf(e)!==-1)return;e instanceof M&&(e=e.toJSON()),r.push(e);let t;if(j.isArray(e))t=[],e.forEach((e,n)=>{let r=i(e);j.isUndefined(r)||(t[n]=r)});else{if(!j.isPlainObject(e)&&na(e))return r.pop(),e;t=Object.create(null);for(let[r,a]of Object.entries(e)){let e=n.has(r.toLowerCase())?ta:i(a);j.isUndefined(e)||(t[r]=e)}}return r.pop(),t};return i(e)}function ia(e){try{return String(e)}catch{return``}}function aa(e){return e.errors.map(e=>{try{return e&&e.message?ia(e.message):ia(e)}catch{return``}}).filter(Boolean).join(`; `)||e.name||`AggregateError`}var N=class e extends Error{static from(t,n,r,i,a,o){let s=t.message;!s&&j.isArray(t.errors)&&t.errors.length&&(s=aa(t));let c=new e(s,n||t.code,r,i,a);return Object.defineProperty(c,"cause",{__proto__:null,value:t,writable:!0,enumerable:!1,configurable:!0}),c.name=t.name,t.status!=null&&c.status==null&&(c.status=t.status),o&&Object.assign(c,o),c}constructor(e,t,n,r,i){super(e),Object.defineProperty(this,"message",{__proto__:null,value:e,enumerable:!0,writable:!0,configurable:!0}),this.name=`AxiosError`,this.isAxiosError=!0,t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i,this.status=i.status)}toJSON(){let e=this.config,t=e&&j.hasOwnProp(e,`redact`)?e.redact:void 0,n=j.isArray(t)&&t.length>0?ra(e,t):j.toJSONObject(e);return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:n,code:this.code,status:this.status}}};N.ERR_BAD_OPTION_VALUE=`ERR_BAD_OPTION_VALUE`,N.ERR_BAD_OPTION=`ERR_BAD_OPTION`,N.ECONNABORTED=`ECONNABORTED`,N.ETIMEDOUT=`ETIMEDOUT`,N.ECONNREFUSED=`ECONNREFUSED`,N.ERR_NETWORK=`ERR_NETWORK`,N.ERR_FR_TOO_MANY_REDIRECTS=`ERR_FR_TOO_MANY_REDIRECTS`,N.ERR_DEPRECATED=`ERR_DEPRECATED`,N.ERR_BAD_RESPONSE=`ERR_BAD_RESPONSE`,N.ERR_BAD_REQUEST=`ERR_BAD_REQUEST`,N.ERR_CANCELED=`ERR_CANCELED`,N.ERR_NOT_SUPPORT=`ERR_NOT_SUPPORT`,N.ERR_INVALID_URL=`ERR_INVALID_URL`,N.ERR_FORM_DATA_DEPTH_EXCEEDED=`ERR_FORM_DATA_DEPTH_EXCEEDED`;function oa(e){return j.isPlainObject(e)||j.isArray(e)}function sa(e){return j.endsWith(e,`[]`)?e.slice(0,-2):e}function ca(e,t,n){return e?e.concat(t).map(function(e,t){return e=sa(e),!n&&t?`[`+e+`]`:e}).join(n?`.`:``):t}function la(e){return j.isArray(e)&&!e.some(oa)}var P=j.toFlatObject(j,{},null,function(e){return/^is[A-Z]/.test(e)});function F(e,t,n){if(!j.isObject(e))throw TypeError(`target must be an object`);t||=new FormData;let r=(e,t)=>{let r=j.getSafeProp(n,e);return j.isUndefined(r)?t:r},i=r(`metaTokens`,!0),a=r(`visitor`)||h,o=r(`dots`,!1),s=r(`indexes`,!1),c=r(`Blob`)||typeof Blob<`u`&&Blob,l=r(`maxDepth`,100),u=c&&j.isSpecCompliantForm(t),d=[];if(!j.isFunction(a))throw TypeError(`visitor must be a function`);function f(e){if(e===null)return``;if(j.isDate(e))return e.toISOString();if(j.isBoolean(e))return e.toString();if(!u&&j.isBlob(e))throw new N(`Blob is not supported. Use a Buffer instead.`);if(j.isArrayBuffer(e)||j.isTypedArray(e)){if(u&&typeof c==`function`)return new c([e]);throw new N(`Blob is not supported. Use a Buffer instead.`,N.ERR_NOT_SUPPORT)}return e}function p(e){if(e>l)throw new N(`Object is too deeply nested (`+e+` levels). Max depth: `+l,N.ERR_FORM_DATA_DEPTH_EXCEEDED)}function m(e,t){if(l===1/0)return JSON.stringify(e);let n=[];return JSON.stringify(e,function(e,r){if(!j.isObject(r))return r;for(;n.length&&n[n.length-1]!==this;)n.pop();return n.push(r),p(t+n.length-1),r})}function h(e,n,r){let a=e;if(j.isReactNative(t)&&j.isReactNativeBlob(e))return t.append(ca(r,n,o),f(e)),!1;if(e&&!r&&typeof e==`object`){if(j.endsWith(n,`{}`))n=i?n:n.slice(0,-2),e=m(e,1);else if(j.isArray(e)&&la(e)||(j.isFileList(e)||j.endsWith(n,`[]`))&&(a=j.toArray(e)))return n=sa(n),a.forEach(function(e,r){!(j.isUndefined(e)||e===null)&&t.append(s===!0?ca([n],r,o):s===null?n:n+`[]`,f(e))}),!1}return oa(e)?!0:(t.append(ca(r,n,o),f(e)),!1)}let g=Object.assign(P,{defaultVisitor:h,convertValue:f,isVisitable:oa});function _(e,n,r=0){if(!j.isUndefined(e)){if(p(r),d.indexOf(e)!==-1)throw Error(`Circular reference detected in `+n.join(`.`));d.push(e),j.forEach(e,function(e,i){(!(j.isUndefined(e)||e===null)&&a.call(t,e,j.isString(i)?i.trim():i,n,g))===!0&&_(e,n?n.concat(i):[i],r+1)}),d.pop()}}if(!j.isObject(e))throw TypeError(`data must be an object`);return _(e),t}function ua(e){let t={"!":`%21`,"'":`%27`,"(":`%28`,")":`%29`,"~":`%7E`,"%20":`+`};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(e){return t[e]})}function da(e,t){this._pairs=[],e&&F(e,this,t)}var fa=da.prototype;fa.append=function(e,t){this._pairs.push([e,t])},fa.toString=function(e){let t=e?t=>e.call(this,t,ua):ua;return this._pairs.map(function(e){return t(e[0])+`=`+t(e[1])},``).join(`&`)};function pa(e){return encodeURIComponent(e).replace(/%3A/gi,`:`).replace(/%24/g,`$`).replace(/%2C/gi,`,`).replace(/%20/g,`+`)}function ma(e,t,n){if(!t)return e;e||=``;let r=j.isFunction(n)?{serialize:n}:n,i=j.getSafeProp(r,`encode`)||pa,a=j.getSafeProp(r,`serialize`),o;if(o=a?a(t,r):j.isURLSearchParams(t)?t.toString():new da(t,r).toString(i),o){let t=e.indexOf(`#`);t!==-1&&(e=e.slice(0,t)),e+=(e.indexOf(`?`)===-1?`?`:`&`)+o}return e}var ha=Symbol(`internals`);function ga(e){return e?e.length:0}function _a(e){if(e)for(;e.length&&e[e.length-1]===null;)e.pop()}function va(e,t){let n=e.handlers,r=ga(n);n===t.handlersRef?r!==t.handlersLength&&(r?t.handlerEntries.forEach(function(e,r){n[e.index]!==e.handler&&t.handlerEntries.delete(r)}):t.handlerEntries.clear()):(t.handlersRef=n,t.handlerEntries.clear()),t.handlersLength=r}var ya=class{constructor(){this.handlers=[],this[ha]={handlersRef:this.handlers,handlersLength:this.handlers.length,handlerEntries:new Map,iterationDepth:0,nextId:0}}use(e,t,n){let r={fulfilled:e,rejected:t,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null},i=this[ha];this.handlers??=[],va(this,i);let a=i.nextId++;return this.handlers.push(r),i.handlerEntries.set(a,{handler:r,index:this.handlers.length-1}),i.handlersLength=this.handlers.length,a}eject(e){let t=this[ha];va(this,t);let n=t.handlerEntries.get(e);if(n){if(t.handlerEntries.delete(e),this.handlers[n.index]!==n.handler)return;this.handlers[n.index]=null,t.iterationDepth||(_a(this.handlers),t.handlersLength=this.handlers.length)}}clear(){this.handlers&&(this.handlers=[],va(this,this[ha]))}forEach(e){let t=this[ha];va(this,t),t.iterationDepth++;try{j.forEach(this.handlers,function(t){t!==null&&e(t)})}finally{--t.iterationDepth||(va(this,t),_a(this.handlers),t.handlersLength=ga(this.handlers))}}},ba={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0},xa={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<`u`?URLSearchParams:da,FormData:typeof FormData<`u`?FormData:null,Blob:typeof Blob<`u`?Blob:null},protocols:[`http`,`https`,`file`,`blob`,`url`,`data`]},Sa=y({hasBrowserEnv:()=>Ca,hasStandardBrowserEnv:()=>Ta,hasStandardBrowserWebWorkerEnv:()=>Ea,navigator:()=>wa,origin:()=>Da}),Ca=typeof window<`u`&&typeof document<`u`,wa=typeof navigator==`object`&&navigator||void 0,Ta=Ca&&(!wa||[`ReactNative`,`NativeScript`,`NS`].indexOf(wa.product)<0),Ea=typeof WorkerGlobalScope<`u`&&self instanceof WorkerGlobalScope&&typeof self.importScripts==`function`,Da=Ca&&window.location.href||`http://localhost`,Oa={...Sa,...xa};function ka(e,t){return F(e,new Oa.classes.URLSearchParams,{visitor:function(e,t,n,r){return Oa.isNode&&j.isBuffer(e)?(this.append(t,e.toString(`base64`)),!1):r.defaultVisitor.apply(this,arguments)},...t})}var Aa=100;function ja(e){if(e>Aa)throw new N(`FormData field is too deeply nested (`+e+` levels). Max depth: `+Aa,N.ERR_FORM_DATA_DEPTH_EXCEEDED)}function Ma(e){let t=[],n=/[^.[\]]+|\[([^.[\]]*)]/g,r;for(;(r=n.exec(e))!==null;)ja(t.length),t.push(r[0]===`[]`?``:r[1]||r[0]);return t}function Na(e){let t={},n=Object.keys(e),r,i=n.length,a;for(r=0;r<i;r++)a=n[r],t[a]=e[a];return t}function Pa(e){function t(e,n,r,i){ja(i);let a=e[i++];if(a===`__proto__`)return!0;let o=Number.isFinite(+a),s=i>=e.length;return a=!a&&j.isArray(r)?r.length:a,s?(j.hasOwnProp(r,a)?r[a]=j.isArray(r[a])?r[a].concat(n):[r[a],n]:r[a]=n,!o):((!j.hasOwnProp(r,a)||!j.isObject(r[a]))&&(r[a]=[]),t(e,n,r[a],i)&&j.isArray(r[a])&&(r[a]=Na(r[a])),!o)}if(j.isFormData(e)&&j.isFunction(e.entries)){let n={};return j.forEachEntry(e,(e,r)=>{t(Ma(e),r,n,0)}),n}return null}var Fa=Object.freeze([`get`,`delete`,`head`,`options`,`post`,`put`,`patch`,`purge`,`link`,`unlink`,`query`]),Ia=(e,t)=>e!=null&&j.hasOwnProp(e,t)?e[t]:void 0;function La(e,t,n){if(j.isString(e))try{return(t||JSON.parse)(e),j.trim(e)}catch(e){if(e.name!==`SyntaxError`)throw e}return(n||JSON.stringify)(e)}var Ra={transitional:ba,adapter:[`xhr`,`http`,`fetch`],transformRequest:[function(e,t){let n=t.getContentType()||``,r=n.indexOf(`application/json`)>-1,i=j.isObject(e);if(i&&j.isHTMLForm(e)&&(e=new FormData(e)),j.isFormData(e))return r?JSON.stringify(Pa(e)):e;if(j.isArrayBuffer(e)||j.isBuffer(e)||j.isStream(e)||j.isFile(e)||j.isBlob(e)||j.isReadableStream(e))return e;if(j.isArrayBufferView(e))return e.buffer;if(j.isURLSearchParams(e))return t.setContentType(`application/x-www-form-urlencoded;charset=utf-8`,!1),e.toString();let a;if(i){let t=Ia(this,`formSerializer`);if(n.indexOf(`application/x-www-form-urlencoded`)>-1)return ka(e,t).toString();if((a=j.isFileList(e))||n.indexOf(`multipart/form-data`)>-1){let n=Ia(this,`env`),r=n&&n.FormData;return F(a?{"files[]":e}:e,r&&new r,t)}}return i||r?(t.setContentType(`application/json`,!1),La(e)):e}],transformResponse:[function(e){let t=Ia(this,`transitional`)||Ra.transitional,n=t&&t.forcedJSONParsing,r=Ia(this,`responseType`),i=r===`json`;if(j.isResponse(e)||j.isReadableStream(e))return e;if(e&&j.isString(e)&&(n&&!r||i)){let n=!(t&&t.silentJSONParsing)&&i;try{return JSON.parse(e,Ia(this,`parseReviver`))}catch(e){if(n)throw e.name===`SyntaxError`?N.from(e,N.ERR_BAD_RESPONSE,this,null,Ia(this,`response`)):e}}return e}],timeout:0,xsrfCookieName:`XSRF-TOKEN`,xsrfHeaderName:`X-XSRF-TOKEN`,maxContentLength:-1,maxBodyLength:-1,env:{FormData:Oa.classes.FormData,Blob:Oa.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:`application/json, text/plain, */*`,"Content-Type":void 0}}};j.forEach(Fa,e=>{Ra.headers[e]={}});function za(e,t){let n=this||Ra,r=t||n,i=M.from(r.headers),a=r.data;return j.forEach(e,function(e){a=e.call(n,a,i.normalize(),t?t.status:void 0)}),i.normalize(),a}function Ba(e){return!!(e&&e.__CANCEL__)}var Va=class extends N{constructor(e,t,n){super(e??`canceled`,N.ERR_CANCELED,t,n),this.name=`CanceledError`,this.__CANCEL__=!0}};function Ha(e,t,n){let r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new N(`Request failed with status code `+n.status,n.status>=400&&n.status<500?N.ERR_BAD_REQUEST:N.ERR_BAD_RESPONSE,n.config,n.request,n))}var Ua=/[\t\n\r]/g;function Wa(e){if(typeof e!=`string`)return e;let t=0;for(;t<e.length&&e.charCodeAt(t)<=32;)t++;return e.slice(t).replace(Ua,``)}function Ga(e){let t=/^([-+\w]{1,25}):(?:\/\/)?/.exec(e);return t&&t[1]||``}function Ka(e,t){e||=10;let n=Array(e),r=Array(e),i=0,a=0,o;return t=t===void 0?1e3:t,function(s){let c=Date.now(),l=r[a];o||=c,n[i]=s,r[i]=c;let u=a,d=0;for(;u!==i;)d+=n[u++],u%=e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),c-o<t)return;let f=l&&c-l;return f?Math.round(d*1e3/f):void 0}}function qa(e,t){let n=0,r=1e3/t,i,a,o=(t,r=Date.now())=>{n=r,i=null,a&&=(clearTimeout(a),null),e(...t)};return[(...e)=>{let t=Date.now(),s=t-n;s>=r?o(e,t):(i=e,a||=setTimeout(()=>{a=null,o(i)},r-s))},()=>i&&o(i),(...e)=>o(e)]}var Ja=(e,t,n=3)=>{let r=0,i=Ka(50,250);return qa(n=>{if(!n||!j.isNumber(n.loaded))return;let a=n.loaded,o=n.lengthComputable?n.total:void 0,s=Math.max(0,o==null?a:Math.min(a,o)),c=Math.max(0,s-r),l=i(c);r=Math.max(r,s),e({loaded:s,total:o,progress:o?s/o:void 0,bytes:c,rate:l||void 0,estimated:l&&o?(o-s)/l:void 0,event:n,lengthComputable:o!=null,[t?`download`:`upload`]:!0})},n)},Ya=(e,t)=>{let n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Xa=(e,t=j.asap)=>(...n)=>t(()=>e(...n)),Za=Oa.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Oa.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Oa.origin),Oa.navigator&&/(msie|trident)/i.test(Oa.navigator.userAgent)):()=>!0,Qa=Oa.hasStandardBrowserEnv?{write(e,t,n,r,i,a,o){if(typeof document>`u`)return;let s=[`${e}=${encodeURIComponent(t)}`];j.isNumber(n)&&s.push(`expires=${new Date(n).toUTCString()}`),j.isString(r)&&s.push(`path=${r}`),j.isString(i)&&s.push(`domain=${i}`),a===!0&&s.push(`secure`),j.isString(o)&&s.push(`SameSite=${o}`),document.cookie=s.join(`; `)},read(e){if(typeof document>`u`)return null;let t=document.cookie.split(`;`);for(let n=0;n<t.length;n++){let r=t[n].replace(/^\s+/,``),i=r.indexOf(`=`);if(i!==-1&&r.slice(0,i)===e)try{return decodeURIComponent(r.slice(i+1))}catch{return r.slice(i+1)}}return null},remove(e){this.write(e,``,Date.now()-864e5,`/`)}}:{write(){},read(){return null},remove(){}};function $a(e){return typeof e==`string`&&/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function eo(e,t){if(!t)return e;let n=e.length;for(;n>0&&e.charCodeAt(n-1)===47;)n--;return e.slice(0,n)+`/`+t.replace(/^\/+/,``)}var to=/^https?:(?!\/\/)/i;function no(e){return e&&e.replace(/(^|&)([^=&]*=)?[^&]+/g,(e,t,n=``)=>`${t}${n}${ta}`)}function ro(e){let t=e.replace(/^(https?:\/{0,2})[^/?#]*@/i,`$1${ta}@`),n=t.indexOf(`#`),r=(n===-1?t:t.slice(0,n)).replace(/([?&][^=&#]*=)[^&#]*/g,`$1${ta}`);return n===-1?r:`${r}#${no(t.slice(n+1))}`}function io(e,t){if(typeof e==`string`){let n=Wa(e);if(to.test(n))throw new N(`Invalid URL ${JSON.stringify(ro(n))}: missing "//" after protocol`,N.ERR_INVALID_URL,t)}}function ao(e,t,n,r){io(t,r);let i=!$a(t);return e&&(i||n===!1)?(io(e,r),eo(e,t)):t}var oo=e=>e instanceof M?{...e}:e,so=e=>Object.getOwnPropertySymbols&&Object.getOwnPropertyDescriptor?Object.keys(e).concat(Object.getOwnPropertySymbols(e).filter(t=>Object.getOwnPropertyDescriptor(e,t).enumerable)):Object.keys(e);function co(e,t){e||={},t||={};let n=Object.create(null);Object.defineProperty(n,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});function r(e,t,n,r){return j.isPlainObject(e)&&j.isPlainObject(t)?j.merge.call({caseless:r},e,t):j.isPlainObject(t)?j.merge({},t):j.isArray(t)?t.slice():t}function i(e,t,n,i){if(!j.isUndefined(t))return r(e,t,n,i);if(!j.isUndefined(e))return r(void 0,e,n,i)}function a(e,t){if(!j.isUndefined(t))return r(void 0,t)}function o(e,t){if(!j.isUndefined(t))return r(void 0,t);if(!j.isUndefined(e))return r(void 0,e)}function s(n){let r=j.hasOwnProp(t,`transitional`)?t.transitional:void 0;if(!j.isUndefined(r)){if(j.isPlainObject(r)){if(j.hasOwnProp(r,n))return r[n]}else return}let i=j.hasOwnProp(e,`transitional`)?e.transitional:void 0;if(j.isPlainObject(i)&&j.hasOwnProp(i,n))return i[n]}function c(n,i,a){if(j.hasOwnProp(t,a))return r(n,i);if(j.hasOwnProp(e,a))return r(void 0,n)}let l={url:a,method:a,data:a,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutErrorMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,allowedSocketPaths:o,responseEncoding:o,validateStatus:c,headers:(e,t,n)=>i(oo(e),oo(t),n,!0)};return j.forEach(so({...e,...t}),function(r){if(r===`__proto__`||r===`constructor`||r===`prototype`)return;let a=j.hasOwnProp(l,r)?l[r]:i,o=a(j.hasOwnProp(e,r)?e[r]:void 0,j.hasOwnProp(t,r)?t[r]:void 0,r);j.isUndefined(o)&&a!==c||(n[r]=o)}),j.hasOwnProp(t,`validateStatus`)&&j.isUndefined(t.validateStatus)&&s(`validateStatusUndefinedResolves`)===!1&&(j.hasOwnProp(e,`validateStatus`)?n.validateStatus=r(void 0,e.validateStatus):delete n.validateStatus),n}var lo=[`content-type`,`content-length`];function uo(e,t,n){if(n!==`content-only`){e.set(t);return}Object.entries(t||{}).forEach(([t,n])=>{lo.includes(t.toLowerCase())&&e.set(t,n)})}var fo=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(e,t)=>String.fromCharCode(parseInt(t,16)));function po(e){let t=co({},e),n=e=>j.hasOwnProp(t,e)?t[e]:void 0,r=n(`data`),i=n(`withXSRFToken`),a=n(`xsrfHeaderName`),o=n(`xsrfCookieName`),s=n(`headers`),c=n(`auth`),l=n(`baseURL`),u=n(`allowAbsoluteUrls`),d=n(`url`);if(t.headers=s=M.from(s),t.url=ma(ao(l,d,u,t),n(`params`),n(`paramsSerializer`)),c){let t=j.getSafeProp(c,`username`)||``,n=j.getSafeProp(c,`password`)||``;try{s.set(`Authorization`,`Basic `+btoa(t+`:`+(n?fo(n):``)))}catch(t){throw N.from(t,N.ERR_BAD_OPTION_VALUE,e)}}if(j.isFormData(r)){let e=j.getSafeProp(r,`getHeaders`);Oa.hasStandardBrowserEnv||Oa.hasStandardBrowserWebWorkerEnv||j.isReactNative(r)?s.setContentType(void 0):j.isFunction(e)&&uo(s,e.call(r),n(`formDataHeaderPolicy`))}if(Oa.hasStandardBrowserEnv&&(j.isFunction(i)&&(i=i(t)),i===!0||i==null&&Za(t.url))){let e=a&&o&&Qa.read(o);e&&s.set(a,e)}return t}var mo=typeof XMLHttpRequest<`u`&&function(e){return new Promise(function(t,n){let r=po(e),i=r.data,a=M.from(r.headers).normalize(),{responseType:o,onUploadProgress:s,onDownloadProgress:c}=r,l,u,d,f,p,m;function h(){f&&f(),p&&p(),r.cancelToken&&r.cancelToken.unsubscribe(l),r.signal&&r.signal.removeEventListener(`abort`,l)}let g=new XMLHttpRequest;g.open(r.method.toUpperCase(),r.url,!0),g.timeout=r.timeout;function _(i){if(!g)return;if(g.status===0&&(Ga(Wa(r.url))||Ga(Oa.origin))!==`file`&&!(g.responseURL&&g.responseURL.startsWith(`file:`))){n(new N(`Request aborted`,N.ECONNABORTED,e,g)),h(),g=null;return}try{i?m&&m(i):p&&p()}catch(e){setTimeout(()=>{throw e})}if(!g)return;let a=M.from(`getAllResponseHeaders`in g&&g.getAllResponseHeaders());Ha(function(e){t(e),h()},function(e){n(e),h()},{data:!o||o===`text`||o===`json`?g.responseText:g.response,status:g.status,statusText:g.statusText,headers:a,config:e,request:g}),g=null}`onloadend`in g?g.onloadend=_:g.onreadystatechange=function(){!g||g.readyState!==4||g.status===0&&!(g.responseURL&&g.responseURL.startsWith(`file:`))||setTimeout(_)},g.onabort=function(){g&&=(n(new N(`Request aborted`,N.ECONNABORTED,e,g)),h(),null)},g.onerror=function(t){let r=new N(t&&t.message?t.message:`Network Error`,N.ERR_NETWORK,e,g);r.event=t||null,n(r),h(),g=null},g.ontimeout=function(){let t=r.timeout?`timeout of `+r.timeout+`ms exceeded`:`timeout exceeded`,i=r.transitional||ba;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new N(t,i.clarifyTimeoutError?N.ETIMEDOUT:N.ECONNABORTED,e,g)),h(),g=null},i===void 0&&a.setContentType(null),`setRequestHeader`in g&&j.forEach(Hi(a),function(e,t){g.setRequestHeader(t,e)}),j.isUndefined(r.withCredentials)||(g.withCredentials=!!r.withCredentials),o&&o!==`json`&&(g.responseType=r.responseType),c&&([d,p,m]=Ja(c,!0),g.addEventListener(`progress`,d)),s&&g.upload&&([u,f]=Ja(s),g.upload.addEventListener(`progress`,u),g.upload.addEventListener(`loadend`,f)),(r.cancelToken||r.signal)&&(l=t=>{g&&=(n(!t||t.type?new Va(null,e,g):t),g.abort(),h(),null)},r.cancelToken&&r.cancelToken.subscribe(l),r.signal&&(r.signal.aborted?l():r.signal.addEventListener(`abort`,l)));let v=Ga(r.url);if(v&&!Oa.protocols.includes(v)){n(new N(`Unsupported protocol `+v+`:`,N.ERR_BAD_REQUEST,e)),h();return}g.send(i||null)})},ho=(e,t)=>{if(e=e?e.filter(Boolean):[],!t&&!e.length)return;let n=new AbortController,r=!1,i=function(e){if(!r){r=!0,o();let t=e instanceof Error?e:this.reason;n.abort(t instanceof N?t:new Va(t instanceof Error?t.message:t))}},a=t&&setTimeout(()=>{a=null,i(new N(`timeout of ${t}ms exceeded`,N.ETIMEDOUT))},t),o=()=>{e&&=(a&&clearTimeout(a),a=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(i):e.removeEventListener(`abort`,i)}),null)};e.forEach(e=>{if(!r){if(e.aborted){i.call(e);return}e.addEventListener(`abort`,i,{once:!0})}});let{signal:s}=n;return s.unsubscribe=()=>j.asap(o),s},go=function*(e,t){let n=e.byteLength;if(!t||n<t){yield e;return}let r=0,i;for(;r<n;)i=r+t,yield e.slice(r,i),r=i},_o=async function*(e,t){for await(let n of vo(e))yield*go(n,t)},vo=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}let t=e.getReader();try{for(;;){let{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}},yo=(e,t,n,r)=>{let i=_o(e,t),a=0,o,s=e=>{o||(o=!0,r&&r(e))};return new ReadableStream({async pull(e){try{let{done:t,value:r}=await i.next();if(t){s(),e.close();return}let o=r.byteLength;n&&n(a+=o),e.enqueue(new Uint8Array(r))}catch(e){throw s(e),e}},cancel(e){return s(e),i.return()}},{highWaterMark:2})},bo=e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102,xo=(e,t,n)=>t+2<n&&bo(e.charCodeAt(t+1))&&bo(e.charCodeAt(t+2)),So=e=>e<=57?e-48:(e&223)-55,Co=e=>e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||e===43||e===47||e===45||e===95,wo=e=>e===9||e===10||e===12||e===13||e===32,To=e=>{let t=Math.floor(e/4),n=e%4;return t*3+(n===2?1:n===3?2:0)},Eo=e=>{let t=e.length,n=0;return t>0&&e.charCodeAt(t-1)===61&&(n++,t>1&&e.charCodeAt(t-2)===61&&n++),Math.floor((t-n)*3/4)},Do=e=>{let t=e.length,n=0,r=0,i=!1;for(let a=0;a<t;a++){let o=e.charCodeAt(a);if(o===37&&xo(e,a,t)&&(o=So(e.charCodeAt(a+1))*16+So(e.charCodeAt(a+2)),a+=2),!wo(o)){if(o===61){r++;continue}if(!Co(o)||r>0){i=!0;continue}n++}}return i||r>2||r>0&&(n+r)%4!=0||n%4==1?Eo(e):To(n)},Oo=(e,t)=>{if(!e||typeof e!=`string`||!e.startsWith(`data:`))return 0;let n=e.indexOf(`,`);if(n<0)return 0;let r=e.slice(5,n),i=e.slice(n+1);if(/;base64/i.test(r))return t(i);let a=0;for(let e=0,t=i.length;e<t;e++){let n=i.charCodeAt(e);if(n===37&&xo(i,e,t))a+=1,e+=2;else if(n<128)a+=1;else if(n<2048)a+=2;else if(n>=55296&&n<=56319&&e+1<t){let t=i.charCodeAt(e+1);t>=56320&&t<=57343?(a+=4,e++):a+=3}else a+=3}return a};function ko(e){let t=typeof e==`string`?e.indexOf(`#`):-1;return Oo(t===-1?e:e.slice(0,t),Do)}var Ao=`1.20.0`,jo=65536,Mo={cache:`default`,redirect:`follow`,referrer:`about:client`,referrerPolicy:``,mode:`cors`,integrity:``,keepalive:!1,priority:`auto`,window:null},{isFunction:No}=j,Po=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(e,t)=>String.fromCharCode(parseInt(t,16))),Fo=e=>{if(!j.isString(e))return e;try{return decodeURIComponent(e)}catch{return e}},Io=(e,...t)=>{try{return!!e(...t)}catch{return!1}},Lo=e=>{let t=e.indexOf(`://`),n=e;return t!==-1&&(n=n.slice(t+3)),n.includes(`@`)||n.includes(`:`)},Ro=e=>{let t=j.global!==void 0&&j.global!==null?j.global:globalThis,{ReadableStream:n,TextEncoder:r}=t;e=j.merge.call({skipUndefined:!0},{Request:t.Request,Response:t.Response},e);let{fetch:i,Request:a,Response:o}=e,s=i?No(i):typeof fetch==`function`,c=No(a),l=No(o);if(!s)return!1;let u=s&&No(n),d=s&&(typeof r==`function`?(e=>t=>e.encode(t))(new r):async e=>new Uint8Array(await new a(e).arrayBuffer())),f=c&&u&&Io(()=>{let e=!1,t=new a(Oa.origin,{body:new n,method:`POST`,get duplex(){return e=!0,`half`}}),r=t.headers.has(`Content-Type`);return t.body!=null&&t.body.cancel(),e&&!r}),p=l&&u&&Io(()=>j.isReadableStream(new o(``).body)),m={stream:p&&(e=>e.body)};s&&[`text`,`arrayBuffer`,`blob`,`formData`,`stream`].forEach(e=>{!m[e]&&(m[e]=(t,n)=>{let r=t&&t[e];if(r)return r.call(t);throw new N(`Response type '${e}' is not supported`,N.ERR_NOT_SUPPORT,n)})});let h=async e=>{if(e==null)return 0;if(j.isBlob(e))return e.size;if(j.isSpecCompliantForm(e))return(await new a(Oa.origin,{method:`POST`,body:e}).arrayBuffer()).byteLength;if(j.isArrayBufferView(e)||j.isArrayBuffer(e))return e.byteLength;if(j.isURLSearchParams(e)&&(e+=``),j.isString(e))return(await d(e)).byteLength},g=async(e,t)=>j.toFiniteNumber(e.getContentLength())??h(t);return async e=>{let{url:t,method:n,data:s,signal:l,cancelToken:d,timeout:_,onDownloadProgress:v,onUploadProgress:y,responseType:b,headers:ee,withCredentials:x=`same-origin`,fetchOptions:S,maxContentLength:te,maxBodyLength:ne,maxRedirects:C}=po(e),re=j.isNumber(te)&&te>-1,w=j.isNumber(ne)&&ne>-1,ie=t=>j.hasOwnProp(e,t)?e[t]:void 0,ae=i||fetch;b=b?(b+``).toLowerCase():`text`;let oe=ho([l,d&&d.toAbortSignal()],_),T=null,se=oe&&oe.unsubscribe&&(()=>{oe.unsubscribe()}),ce,le=null,ue=()=>new N(`Request body larger than maxBodyLength limit`,N.ERR_BAD_REQUEST,e,T);try{let i,l=ie(`auth`);if(l&&(i={username:j.getSafeProp(l,`username`)||``,password:j.getSafeProp(l,`password`)||``}),Lo(t)){let e=new URL(t,Oa.origin);!i&&(e.username||e.password)&&(i={username:Fo(e.username),password:Fo(e.password)}),(e.username||e.password)&&(e.username=``,e.password=``,t=e.href)}if(i&&(ee.delete(`authorization`),ee.set(`Authorization`,`Basic `+btoa(Po((i.username||``)+`:`+(i.password||``))))),re&&typeof t==`string`&&t.startsWith(`data:`)&&ko(t)>te)throw new N(`maxContentLength size of `+te+` exceeded`,N.ERR_BAD_RESPONSE,e,T);if(w&&n!==`get`&&n!==`head`){let e=await h(s);if(typeof e==`number`&&isFinite(e)&&(ce=e,e>ne))throw ue()}let d=w&&(j.isReadableStream(s)||j.isStream(s)),_=(e,t,n)=>yo(e,jo,e=>{if(w&&e>ne)throw le=ue();t&&t(e)},n);if(f&&n!==`get`&&n!==`head`&&(y||d)){if(ce??=await g(ee,s),ce!==0||d){let e=new a(t,{method:`POST`,body:s,duplex:`half`}),n;if(j.isFormData(s)&&(n=e.headers.get(`content-type`))&&ee.setContentType(n),e.body){let[t,n]=y&&Ya(ce,Ja(Xa(y)))||[];s=_(e.body,t,n)}}}else if(d&&!c&&u&&n!==`get`&&n!==`head`)s=_(s);else if(d&&c&&!f&&n!==`get`&&n!==`head`)throw new N(`Stream request bodies are not supported by the current fetch implementation`,N.ERR_NOT_SUPPORT,e,T);j.isString(x)||(x=x?`include`:`omit`);let de=c&&`credentials`in a.prototype;if(j.isFormData(s)){let e=ee.getContentType();e&&/^multipart\/form-data/i.test(e)&&!/boundary=/i.test(e)&&ee.delete(`content-type`)}ee.set(`User-Agent`,`axios/`+Ao,!1);let fe=S==null?S:Object.assign(Object.create(null),S);fe&&(delete fe.body,delete fe.headers,delete fe.method,delete fe.signal,delete fe.duplex,delete fe.credentials);let pe=Object.assign(Object.create(null),fe,{signal:oe,method:n.toUpperCase(),headers:Hi(ee.normalize()),body:s,duplex:`half`,credentials:de?x:void 0});c&&(j.forEach(Mo,(e,t)=>{pe[t]===void 0&&(pe[t]=e)}),pe.signal===void 0&&(pe.signal=null),pe.body===void 0&&(pe.body=null)),C===0&&(pe.redirect=`manual`,fe&&(fe.redirect=`manual`)),T=c&&new a(t,pe);let me=await(c?ae(T,fe):ae(t,pe)),E=M.from(me.headers);if(re){let t=j.toFiniteNumber(E.getContentLength());if(t!=null&&t>te)throw new N(`maxContentLength size of `+te+` exceeded`,N.ERR_BAD_RESPONSE,e,T)}let he=p&&(b===`stream`||b===`response`);if(p&&me.body&&(v||re||he&&se)){let t={};[`status`,`statusText`,`headers`].forEach(e=>{t[e]=me[e]});let n=j.toFiniteNumber(E.getContentLength()),[r,i]=v&&Ya(n,Ja(Xa(v),!0))||[],a=0;me=new o(yo(me.body,jo,t=>{if(re&&(a=t,a>te))throw new N(`maxContentLength size of `+te+` exceeded`,N.ERR_BAD_RESPONSE,e,T);r&&r(t)},()=>{i&&i(),se&&se()}),t)}b||=`text`;let ge=await m[j.findKey(m,b)||`text`](me,e);if(re&&!p&&!he){let t;if(ge!=null&&(typeof ge.byteLength==`number`?t=ge.byteLength:typeof ge.size==`number`?t=ge.size:typeof ge==`string`&&(t=typeof r==`function`?new r().encode(ge).byteLength:ge.length)),typeof t==`number`&&t>te)throw new N(`maxContentLength size of `+te+` exceeded`,N.ERR_BAD_RESPONSE,e,T)}return!he&&se&&se(),await new Promise((t,n)=>{Ha(t,n,{data:ge,headers:M.from(me.headers),status:me.status,statusText:me.statusText,config:e,request:T})})}catch(t){if(se&&se(),oe&&oe.aborted&&oe.reason instanceof N){let n=oe.reason;throw n.config=e,T&&(n.request=T),t!==n&&Object.defineProperty(n,"cause",{__proto__:null,value:t,writable:!0,enumerable:!1,configurable:!0}),n}if(le)throw T&&!le.request&&(le.request=T),le;if(t instanceof N)throw T&&!t.request&&(t.request=T),t;if(t&&t.name===`TypeError`&&/Load failed|fetch/i.test(t.message)){let n=new N(`Network Error`,N.ERR_NETWORK,e,T,t&&t.response);throw Object.defineProperty(n,"cause",{__proto__:null,value:t.cause||t,writable:!0,enumerable:!1,configurable:!0}),n}throw N.from(t,t&&t.code,e,T,t&&t.response)}}},zo=new Map,Bo=e=>{let t=e&&e.env||{},{fetch:n,Request:r,Response:i}=t,a=[r,i,n],o=a.length,s,c,l=zo;for(;o--;)s=a[o],c=l.get(s),c===void 0&&l.set(s,c=o?new Map:Ro(t)),l=c;return c};Bo();var Vo={http:null,xhr:mo,fetch:{get:Bo}};j.forEach(Vo,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch{}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}});var Ho=e=>`- ${e}`,Uo=e=>j.isFunction(e)||e===null||e===!1;function Wo(e,t){e=j.isArray(e)?e:[e];let{length:n}=e,r,i,a={};for(let o=0;o<n;o++){r=e[o];let n;if(i=r,!Uo(r)&&(i=Vo[(n=String(r)).toLowerCase()],i===void 0))throw new N(`Unknown adapter '${n}'`);if(i&&(j.isFunction(i)||(i=i.get(t))))break;a[n||`#`+o]=i}if(!i){let e=Object.entries(a).map(([e,t])=>`adapter ${e} `+(t===!1?`is not supported by the environment`:`is not available in the build`));throw new N(`There is no suitable adapter to dispatch the request `+(n?e.length>1?`since :
|
|
13
|
-
`+e.map(Ho).join(`
|
|
14
|
-
`):` `+Ho(e[0]):`as no adapter specified`),N.ERR_NOT_SUPPORT)}return i}var Go={getAdapter:Wo,adapters:Vo};function Ko(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Va(null,e)}function qo(e){let t=j.toSafeFlatObject(e);return Ko(t),t.headers=M.from(j.getSafeProp(t,`headers`)),t.data=za.call(t,t.transformRequest),[`post`,`put`,`patch`].indexOf(t.method)!==-1&&t.headers.setContentType(`application/x-www-form-urlencoded`,!1),Go.getAdapter(t.adapter||Ra.adapter,t)(t).then(function(e){Ko(t),t.response=e;try{e.data=za.call(t,t.transformResponse,e)}finally{delete t.response}return e.headers=M.from(e.headers),e},function(e){if(!Ba(e)&&(Ko(t),e&&e.response)){t.response=e.response;try{e.response.data=za.call(t,t.transformResponse,e.response)}finally{delete t.response}e.response.headers=M.from(e.response.headers)}return Promise.reject(e)})}var I={};[`object`,`boolean`,`number`,`function`,`string`,`symbol`].forEach((e,t)=>{I[e]=function(n){return typeof n===e||`a`+(t<1?`n `:` `)+e}});var L={};I.transitional=function(e,t,n){function r(e,t){return`[Axios v`+Ao+`] Transitional option '`+e+`'`+t+(n?`. `+n:``)}return(n,i,a)=>{if(e===!1)throw new N(r(i,` has been removed`+(t?` in `+t:``)),N.ERR_DEPRECATED);return t&&!L[i]&&(L[i]=!0,console.warn(r(i,` has been deprecated since v`+t+` and will be removed in the near future`))),!e||e(n,i,a)}},I.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};function Jo(e,t,n){if(typeof e!=`object`||!e)throw new N(`options must be an object`,N.ERR_BAD_OPTION_VALUE);let r=Object.keys(e),i=r.length;for(;i-->0;){let a=r[i],o=Object.prototype.hasOwnProperty.call(t,a)?t[a]:void 0;if(o){let t=e[a],n=t===void 0||o(t,a,e);if(n!==!0)throw new N(`option `+a+` must be `+n,N.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new N(`Unknown option `+a,N.ERR_BAD_OPTION)}}var Yo={assertOptions:Jo,validators:I},Xo=Yo.validators,Zo=class{constructor(e){this.defaults=e||{},this.interceptors={request:new ya,response:new ya}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error)try{let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=Error();let n=t.stack,r=``;if(typeof n==`string`){let e=n.indexOf(`
|
|
15
|
-
`);r=e===-1?``:n.slice(e+1)}if(!e.stack)e.stack=r;else if(r){let t=r.indexOf(`
|
|
16
|
-
`),n=t===-1?-1:r.indexOf(`
|
|
17
|
-
`,t+1),i=n===-1?``:r.slice(n+1);String(e.stack).endsWith(i)||(e.stack+=`
|
|
18
|
-
`+r)}}catch{}throw e}}_request(e,t){typeof e==`string`?(t||={},t.url=e):t=e||{},t=co(this.defaults,t);let{transitional:n,paramsSerializer:r,headers:i}=t;n!==void 0&&Yo.assertOptions(n,{silentJSONParsing:Xo.transitional(Xo.boolean),forcedJSONParsing:Xo.transitional(Xo.boolean),clarifyTimeoutError:Xo.transitional(Xo.boolean),legacyInterceptorReqResOrdering:Xo.transitional(Xo.boolean),advertiseZstdAcceptEncoding:Xo.transitional(Xo.boolean),validateStatusUndefinedResolves:Xo.transitional(Xo.boolean)},!1),r!=null&&(j.isFunction(r)?t.paramsSerializer={serialize:r}:Yo.assertOptions(r,{encode:Xo.function,serialize:Xo.function},!0)),t.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls===void 0?t.allowAbsoluteUrls=!0:t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls),Yo.assertOptions(t,{baseUrl:Xo.spelling(`baseURL`),withXsrfToken:Xo.spelling(`withXSRFToken`)},!0),t.method=(j.getSafeProp(t,`method`)||j.getSafeProp(this.defaults,`method`)||`get`).toLowerCase();let a=i&&j.merge(i.common,i[t.method]);i&&j.forEach(Fa.concat(`common`),e=>{delete i[e]}),t.headers=M.concat(a,i);let o=[],s=!0;this.interceptors.request.forEach(function(e){if(typeof e.runWhen==`function`&&e.runWhen(t)===!1)return;s&&=e.synchronous;let n=t.transitional||ba;n&&n.legacyInterceptorReqResOrdering?o.unshift(e.fulfilled,e.rejected):o.push(e.fulfilled,e.rejected)});let c=[];this.interceptors.response.forEach(function(e){c.push(e.fulfilled,e.rejected)});let l,u=0,d;if(!s){let e=[qo.bind(this),void 0];for(e.unshift(...o),e.push(...c),d=e.length,l=Promise.resolve(t);u<d;)l=l.then(e[u++],e[u++]);return l}d=o.length;let f=t;for(;u<d;){let e=o[u++],t=o[u++];try{f=e?e(f):f}catch(e){if(!t){l=Promise.reject(e);break}try{let n=t.call(this,e);j.isThenable(n)&&(l=Promise.resolve(n).then(()=>qo.call(this,f)))}catch(e){l=Promise.reject(e)}break}}if(!l)try{l=qo.call(this,f)}catch(e){l=Promise.reject(e)}for(u=0,d=c.length;u<d;)l=l.then(c[u++],c[u++]);return l}getUri(e){return e=co(this.defaults,e),ma(ao(e.baseURL,e.url,e.allowAbsoluteUrls,e),e.params,e.paramsSerializer)}};j.forEach([`delete`,`get`,`head`,`options`],function(e){Zo.prototype[e]=function(t,n){return this.request(co(n||{},{method:e,url:t,data:n&&j.hasOwnProp(n,`data`)?n.data:void 0}))}}),j.forEach([`post`,`put`,`patch`,`query`],function(e){function t(t){return function(n,r,i){return this.request(co(i||{},{method:e,headers:t?{"Content-Type":`multipart/form-data`}:{},url:n,data:r}))}}Zo.prototype[e]=t(),e!==`query`&&(Zo.prototype[e+`Form`]=t(!0))});var Qo=class e{constructor(e){if(typeof e!=`function`)throw TypeError(`executor must be a function.`);let t;this.promise=new Promise(function(e){t=e});let n=this;this.promise.then(e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-->0;)n._listeners[t](e);n._listeners=null}),this.promise.then=e=>{let t,r=new Promise(e=>{n.subscribe(e),t=e}).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e(function(e,r,i){n.reason||(n.reason=new Va(e,r,i),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;let t=this._listeners.indexOf(e);t!==-1&&this._listeners.splice(t,1)}toAbortSignal(){let e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let t;return{token:new e(function(e){t=e}),cancel:t}}};function $o(e){return function(t){return e.apply(null,t)}}function es(e){return j.isObject(e)&&e.isAxiosError===!0}var ts={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,ContentTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,UnprocessableContent:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerReturnsAnUnknownError:520,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(ts).forEach(([e,t])=>{ts[t]===void 0&&(ts[t]=e)});function ns(e){let t=new Zo(e),n=pr(Zo.prototype.request,t);return j.extend(n,Zo.prototype,t,{allOwnKeys:!0}),j.extend(n,t,null,{allOwnKeys:!0}),n.create=function(t){return ns(co(e,t))},n}var R=ns(Ra);R.Axios=Zo,R.CanceledError=Va,R.CancelToken=Qo,R.isCancel=Ba,R.VERSION=Ao,R.toFormData=F,R.AxiosError=N,R.Cancel=R.CanceledError,R.all=function(e){return Promise.all(e)},R.spread=$o,R.isAxiosError=es,R.mergeConfig=co,R.AxiosHeaders=M,R.formToJSON=e=>Pa(j.isHTMLForm(e)?new FormData(e):e),R.getAdapter=Go.getAdapter,R.HttpStatusCode=ts,R.default=R;var rs=cr(),is=d(o(),1),as=new class{isConnected=!0;constructor(){r(this)}handleConnectivityStatusChange({isConnected:e}){this.isConnected!==e&&(this.isConnected=e===!0)}},os=new class{disks=[];constructor(){r(this)}setDiskUsage(e){this.disks=e}},ss={total:0,unread:0,read:0},cs=new class{notifications=[];notificationCount=ss;get hasNotification(){return this.notificationCount.total!==0}constructor(){r(this)}clearAll(){this.notifications=[],this.notificationCount=ss}handleNotificationCountChange(e){this.notificationCount=e??ss}handleNotificationsFetchSuccess(e){this.notifications=e.notifications}},ls=(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),us=Object.prototype.hasOwnProperty;function ds(e,t){return us.call(e,t)}function fs(e){if(Array.isArray(e)){for(var t=Array(e.length),n=0;n<t.length;n++)t[n]=``+n;return t}if(Object.keys)return Object.keys(e);var r=[];for(var i in e)ds(e,i)&&r.push(i);return r}function ps(e){switch(typeof e){case`object`:return JSON.parse(JSON.stringify(e));case`undefined`:return null;default:return e}}function ms(e){for(var t=0,n=e.length,r;t<n;){if(r=e.charCodeAt(t),r>=48&&r<=57){t++;continue}return!1}return!0}function hs(e){return e.indexOf(`/`)===-1&&e.indexOf(`~`)===-1?e:e.replace(/~/g,`~0`).replace(/\//g,`~1`)}function gs(e){return e.replace(/~1/g,`/`).replace(/~0/g,`~`)}function _s(e){if(e===void 0)return!0;if(e){if(Array.isArray(e)){for(var t=0,n=e.length;t<n;t++)if(_s(e[t]))return!0}else if(typeof e==`object`){for(var r=fs(e),i=r.length,a=0;a<i;a++)if(_s(e[r[a]]))return!0}}return!1}function vs(e,t){var n=[e];for(var r in t){var i=typeof t[r]==`object`?JSON.stringify(t[r],null,2):t[r];i!==void 0&&n.push(r+`: `+i)}return n.join(`
|
|
19
|
-
`)}var ys=function(e){ls(t,e);function t(t,n,r,i,a){var o=this.constructor,s=e.call(this,vs(t,{name:n,index:r,operation:i,tree:a}))||this;return s.name=n,s.index=r,s.operation=i,s.tree=a,Object.setPrototypeOf(s,o.prototype),s.message=vs(t,{name:n,index:r,operation:i,tree:a}),s}return t}(Error),bs=y({JsonPatchError:()=>xs,_areEquals:()=>js,applyOperation:()=>Es,applyPatch:()=>Ds,applyReducer:()=>Os,deepClone:()=>Ss,getValueByPointer:()=>Ts,validate:()=>As,validator:()=>ks}),xs=ys,Ss=ps,Cs={add:function(e,t,n){return e[t]=this.value,{newDocument:n}},remove:function(e,t,n){var r=e[t];return delete e[t],{newDocument:n,removed:r}},replace:function(e,t,n){var r=e[t];return e[t]=this.value,{newDocument:n,removed:r}},move:function(e,t,n){var r=Ts(n,this.path);r&&=ps(r);var i=Es(n,{op:`remove`,path:this.from}).removed;return Es(n,{op:`add`,path:this.path,value:i}),{newDocument:n,removed:r}},copy:function(e,t,n){var r=Ts(n,this.from);return Es(n,{op:`add`,path:this.path,value:ps(r)}),{newDocument:n}},test:function(e,t,n){return{newDocument:n,test:js(e[t],this.value)}},_get:function(e,t,n){return this.value=e[t],{newDocument:n}}},ws={add:function(e,t,n){return ms(t)?e.splice(t,0,this.value):e[t]=this.value,{newDocument:n,index:t}},remove:function(e,t,n){return{newDocument:n,removed:e.splice(t,1)[0]}},replace:function(e,t,n){var r=e[t];return e[t]=this.value,{newDocument:n,removed:r}},move:Cs.move,copy:Cs.copy,test:Cs.test,_get:Cs._get};function Ts(e,t){if(t==``)return e;var n={op:`_get`,path:t};return Es(e,n),n.value}function Es(e,t,n,r,i,a){if(n===void 0&&(n=!1),r===void 0&&(r=!0),i===void 0&&(i=!0),a===void 0&&(a=0),n&&(typeof n==`function`?n(t,0,e,t.path):ks(t,0)),t.path===``){var o={newDocument:e};if(t.op===`add`)return o.newDocument=t.value,o;if(t.op===`replace`)return o.newDocument=t.value,o.removed=e,o;if(t.op===`move`||t.op===`copy`)return o.newDocument=Ts(e,t.from),t.op===`move`&&(o.removed=e),o;if(t.op===`test`){if(o.test=js(e,t.value),o.test===!1)throw new xs(`Test operation failed`,`TEST_OPERATION_FAILED`,a,t,e);return o.newDocument=e,o}if(t.op===`remove`)return o.removed=e,o.newDocument=null,o;if(t.op===`_get`)return t.value=e,o;if(n)throw new xs("Operation `op` property is not one of operations defined in RFC-6902",`OPERATION_OP_INVALID`,a,t,e);return o}r||(e=ps(e));var s=(t.path||``).split(`/`),c=e,l=1,u=s.length,d=void 0,f=void 0,p=void 0;for(p=typeof n==`function`?n:ks;;){if(f=s[l],f&&f.indexOf(`~`)!=-1&&(f=gs(f)),i&&(f==`__proto__`||f==`prototype`&&l>0&&s[l-1]==`constructor`))throw TypeError("JSON-Patch: modifying `__proto__` or `constructor/prototype` prop is banned for security reasons, if this was on purpose, please set `banPrototypeModifications` flag false and pass it to this function. More info in fast-json-patch README");if(n&&d===void 0&&(c[f]===void 0?d=s.slice(0,l).join(`/`):l==u-1&&(d=t.path),d!==void 0&&p(t,0,e,d)),l++,Array.isArray(c)){if(f===`-`)f=c.length;else if(n&&!ms(f))throw new xs(`Expected an unsigned base-10 integer value, making the new referenced value the array element with the zero-based index`,`OPERATION_PATH_ILLEGAL_ARRAY_INDEX`,a,t,e);else ms(f)&&(f=~~f);if(l>=u){if(n&&t.op===`add`&&f>c.length)throw new xs(`The specified index MUST NOT be greater than the number of elements in the array`,`OPERATION_VALUE_OUT_OF_BOUNDS`,a,t,e);var o=ws[t.op].call(t,c,f,e);if(o.test===!1)throw new xs(`Test operation failed`,`TEST_OPERATION_FAILED`,a,t,e);return o}}else if(l>=u){var o=Cs[t.op].call(t,c,f,e);if(o.test===!1)throw new xs(`Test operation failed`,`TEST_OPERATION_FAILED`,a,t,e);return o}if(c=c[f],n&&l<u&&(!c||typeof c!=`object`))throw new xs(`Cannot perform operation at the desired path`,`OPERATION_PATH_UNRESOLVABLE`,a,t,e)}}function Ds(e,t,n,r,i){if(r===void 0&&(r=!0),i===void 0&&(i=!0),n&&!Array.isArray(t))throw new xs(`Patch sequence must be an array`,`SEQUENCE_NOT_AN_ARRAY`);r||(e=ps(e));for(var a=Array(t.length),o=0,s=t.length;o<s;o++)a[o]=Es(e,t[o],n,!0,i,o),e=a[o].newDocument;return a.newDocument=e,a}function Os(e,t,n){var r=Es(e,t);if(r.test===!1)throw new xs(`Test operation failed`,`TEST_OPERATION_FAILED`,n,t,e);return r.newDocument}function ks(e,t,n,r){if(typeof e!=`object`||!e||Array.isArray(e))throw new xs(`Operation is not an object`,`OPERATION_NOT_AN_OBJECT`,t,e,n);if(!Cs[e.op])throw new xs("Operation `op` property is not one of operations defined in RFC-6902",`OPERATION_OP_INVALID`,t,e,n);if(typeof e.path!=`string`)throw new xs("Operation `path` property is not a string",`OPERATION_PATH_INVALID`,t,e,n);if(e.path.indexOf(`/`)!==0&&e.path.length>0)throw new xs('Operation `path` property must start with "/"',`OPERATION_PATH_INVALID`,t,e,n);if((e.op===`move`||e.op===`copy`)&&typeof e.from!=`string`)throw new xs("Operation `from` property is not present (applicable in `move` and `copy` operations)",`OPERATION_FROM_REQUIRED`,t,e,n);if((e.op===`add`||e.op===`replace`||e.op===`test`)&&e.value===void 0)throw new xs("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)",`OPERATION_VALUE_REQUIRED`,t,e,n);if((e.op===`add`||e.op===`replace`||e.op===`test`)&&_s(e.value))throw new xs("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)",`OPERATION_VALUE_CANNOT_CONTAIN_UNDEFINED`,t,e,n);if(n){if(e.op==`add`){var i=e.path.split(`/`).length,a=r.split(`/`).length;if(i!==a+1&&i!==a)throw new xs("Cannot perform an `add` operation at the desired path",`OPERATION_PATH_CANNOT_ADD`,t,e,n)}else if(e.op===`replace`||e.op===`remove`||e.op===`_get`){if(e.path!==r)throw new xs(`Cannot perform the operation at a path that does not exist`,`OPERATION_PATH_UNRESOLVABLE`,t,e,n)}else if(e.op===`move`||e.op===`copy`){var o=As([{op:`_get`,path:e.from,value:void 0}],n);if(o&&o.name===`OPERATION_PATH_UNRESOLVABLE`)throw new xs(`Cannot perform the operation from a path that does not exist`,`OPERATION_FROM_UNRESOLVABLE`,t,e,n)}}}function As(e,t,n){try{if(!Array.isArray(e))throw new xs(`Patch sequence must be an array`,`SEQUENCE_NOT_AN_ARRAY`);if(t)Ds(ps(t),ps(e),n||!0);else{n||=ks;for(var r=0;r<e.length;r++)n(e[r],r,t,void 0)}}catch(e){if(e instanceof xs)return e;throw e}}function js(e,t){if(e===t)return!0;if(e&&t&&typeof e==`object`&&typeof t==`object`){var n=Array.isArray(e),r=Array.isArray(t),i,a,o;if(n&&r){if(a=e.length,a!=t.length)return!1;for(i=a;i--!==0;)if(!js(e[i],t[i]))return!1;return!0}if(n!=r)return!1;var s=Object.keys(e);if(a=s.length,a!==Object.keys(t).length)return!1;for(i=a;i--!==0;)if(!t.hasOwnProperty(s[i]))return!1;for(i=a;i--!==0;)if(o=s[i],!js(e[o],t[o]))return!1;return!0}return e!==e&&t!==t}var Ms=y({compare:()=>Us,generate:()=>Vs,observe:()=>Bs,unobserve:()=>zs}),Ns=new WeakMap,Ps=function(){function e(e){this.observers=new Map,this.obj=e}return e}(),Fs=function(){function e(e,t){this.callback=e,this.observer=t}return e}();function Is(e){return Ns.get(e)}function Ls(e,t){return e.observers.get(t)}function Rs(e,t){e.observers.delete(t.callback)}function zs(e,t){t.unobserve()}function Bs(e,t){var n=[],r,i=Is(e);if(!i)i=new Ps(e),Ns.set(e,i);else{var a=Ls(i,t);r=a&&a.observer}if(r)return r;if(r={},i.value=ps(e),t){r.callback=t,r.next=null;var o=function(){Vs(r)},s=function(){clearTimeout(r.next),r.next=setTimeout(o)};typeof window<`u`&&(window.addEventListener(`mouseup`,s),window.addEventListener(`keyup`,s),window.addEventListener(`mousedown`,s),window.addEventListener(`keydown`,s),window.addEventListener(`change`,s))}return r.patches=n,r.object=e,r.unobserve=function(){Vs(r),clearTimeout(r.next),Rs(i,r),typeof window<`u`&&(window.removeEventListener(`mouseup`,s),window.removeEventListener(`keyup`,s),window.removeEventListener(`mousedown`,s),window.removeEventListener(`keydown`,s),window.removeEventListener(`change`,s))},i.observers.set(t,new Fs(t,r)),r}function Vs(e,t){t===void 0&&(t=!1);var n=Ns.get(e.object);Hs(n.value,e.object,e.patches,``,t),e.patches.length&&Ds(n.value,e.patches);var r=e.patches;return r.length>0&&(e.patches=[],e.callback&&e.callback(r)),r}function Hs(e,t,n,r,i){if(t!==e){typeof t.toJSON==`function`&&(t=t.toJSON());for(var a=fs(t),o=fs(e),s=!1,c=o.length-1;c>=0;c--){var l=o[c],u=e[l];if(ds(t,l)&&(t[l]!==void 0||u===void 0||Array.isArray(t)!==!1)){var d=t[l];typeof u==`object`&&u&&typeof d==`object`&&d&&Array.isArray(u)===Array.isArray(d)?Hs(u,d,n,r+`/`+hs(l),i):u!==d&&(i&&n.push({op:`test`,path:r+`/`+hs(l),value:ps(u)}),n.push({op:`replace`,path:r+`/`+hs(l),value:ps(d)}))}else Array.isArray(e)===Array.isArray(t)?(i&&n.push({op:`test`,path:r+`/`+hs(l),value:ps(u)}),n.push({op:`remove`,path:r+`/`+hs(l)}),s=!0):(i&&n.push({op:`test`,path:r,value:e}),n.push({op:`replace`,path:r,value:t}))}if(!(!s&&a.length==o.length))for(var c=0;c<a.length;c++){var l=a[c];!ds(e,l)&&t[l]!==void 0&&n.push({op:`add`,path:r+`/`+hs(l),value:ps(t[l])})}}}function Us(e,t,n){n===void 0&&(n=!1);var r=[];return Hs(e,t,r,``,n),r}var Ws=Object.assign({},bs,Ms,{JsonPatchError:ys,deepClone:ps,escapePathComponent:hs,unescapePathComponent:gs}),Gs=[`downloading`,`seeding`,`checking`,`complete`,`stopped`,`active`,`inactive`,`warning`,`error`,`moving`],Ks=new class{locationFilter=[];searchFilter=``;statusFilter=[];tagFilter=[];trackerFilter=[];filterTrigger=!1;taxonomy={locationTree:{directoryName:``,fullPath:``,children:[],containedCount:0,containedSize:0},statusCounts:{},statusSizes:{},tagCounts:{},tagSizes:{},trackerCounts:{},trackerSizes:{}};get isFilterActive(){return this.locationFilter.length||this.searchFilter!==``||this.statusFilter.length||this.tagFilter.length||this.trackerFilter.length}constructor(){r(this)}clearAllFilters(){this.locationFilter=[],this.searchFilter=``,this.statusFilter=[],this.tagFilter=[],this.trackerFilter=[],this.filterTrigger=!this.filterTrigger}handleTorrentTaxonomyDiffChange(e){Ws.applyPatch(this.taxonomy,e)}handleTorrentTaxonomyFullUpdate(e){this.taxonomy=e}setSearchFilter(e){this.searchFilter=e,this.filterTrigger=!this.filterTrigger}setLocationFilters(e,t){this.computeFilters([],this.locationFilter,e,t),this.filterTrigger=!this.filterTrigger}setStatusFilters(e,t){this.computeFilters(Gs,this.statusFilter,e,t),this.filterTrigger=!this.filterTrigger}setTagFilters(e,t){let n=Object.keys(this.taxonomy.tagCounts).sort((e,t)=>e===`untagged`?-1:t===`untagged`?1:e.localeCompare(t));n.splice(n.indexOf(`untagged`),1),n.splice(1,0,`untagged`),this.computeFilters(n,this.tagFilter,e,t),this.filterTrigger=!this.filterTrigger}setTrackerFilters(e,t){let n=Object.keys(this.taxonomy.trackerCounts).sort((e,t)=>e.localeCompare(t));this.computeFilters(n,this.trackerFilter,e,t),this.filterTrigger=!this.filterTrigger}computeFilters(e,t,n,r){if(n===``)t.splice(0);else if(r.shiftKey&&e.length){if(t.length){let r=t[t.length-1],i=e.indexOf(r),a=e.indexOf(n);if(!~a||!~i)return;let o=a>i?-1:1;for(;a!==i;a+=o){let n=e[a];t.includes(n)||t.push(n)}}else t.splice(0,t.length,n)}else r.metaKey||r.ctrlKey?t.includes(n)?t.splice(t.indexOf(n),1):t.push(n):t.splice(0,t.length,n)}};function qs(e,t){if(t.filter.length){if(t.type===`location`)return e.filter(e=>t.filter.some(t=>e.directory.startsWith(t)));if(t.type===`status`)return e.filter(e=>e.status.some(e=>t.filter.includes(e)));if(t.type===`tracker`)return e.filter(e=>e.trackerURIs.some(e=>{let n=e;try{n=e.includes(`://`)?new URL(e).hostname:e.split(`/`)[0].split(`:`)[0]}catch{}return t.filter.includes(n)}));if(t.type===`tag`){let n=t.filter.includes(`untagged`);return e.filter(e=>n&&e.tags.length===0||e.tags.some(e=>t.filter.includes(e)))}}return e}function Js(e){if(e.event.shiftKey){if(e.selectedTorrents.length){let t=e.selectedTorrents[e.selectedTorrents.length-1],n=-1,r=-1;if(!e.torrentList.some((e,n)=>e.hash===t&&(r=n,!0))||!e.torrentList.some((t,r)=>t.hash===e.hash&&(n=r,!0)))return e.selectedTorrents;let i=1;for(n>r&&(i=-1);n!==r;){let t=e.torrentList[n].hash;e.selectedTorrents.indexOf(t)===-1&&e.selectedTorrents.push(t),n+=i}}else return[e.hash]}else if(e.event.metaKey||e.event.ctrlKey){let t=e.selectedTorrents.indexOf(e.hash);t===-1?e.selectedTorrents.push(e.hash):e.selectedTorrents.splice(t,1)}else return[e.hash];return e.selectedTorrents}function Ys(e,t){let{property:n}=t,r=[];switch(n){case`peers`:case`seeds`:r.push({[t.direction]:`${n}Connected`},{[t.direction]:`${n}Total`});break;case`eta`:r.push({[t.direction]:e=>e.eta===-1?1/0:e.eta});break;case`dateActive`:r.push({[t.direction]:e=>e.dateActive===-1?1/0:e.dateActive});break;case`tags`:r.push({[t.direction]:e=>e[n].join(`,`).toLowerCase()});break;case`directory`:case`hash`:case`message`:case`name`:r.push({[t.direction]:e=>e[n].toLowerCase()});break;default:r.push({[t.direction]:n})}return a(e).by(r)}var Xs=(e,t,n)=>{if(n!==``&&e?.length){let r=[],i=n.replace(/,/g,` `).split(` `);for(let e=0,t=i.length;e<t;e+=1)try{r.push(new RegExp(i[e],`gi`))}catch{}return e.filter(e=>!!(t(e)===n||r.every(n=>t(e).match(n))))}return e??[]};function Zs(e){let t=Object.values(e).filter(e=>typeof e==`number`);return Object.entries(e).filter(([e,n])=>t.indexOf(+e)===-1).map(([e,t])=>t)}function Qs(e,t=`|`){return e.map(e=>Cc(e)).join(t)}function $s(e,t){return typeof t==`bigint`?t.toString():t}var ec=class{constructor(e){this._getter=e,this._value=void 0}get value(){let e=this._getter;return e!==void 0&&(this._value=e(),this._getter=void 0),this._value}};function tc(e){return new ec(e)}function nc(e){return e==null}function rc(e){let t=+!!e.startsWith(`^`),n=e.endsWith(`$`)?e.length-1:e.length;return e.slice(t,n)}function ic(e,t){let n=e/t,r=Math.round(n),i=4*2**-52*Math.max(Math.abs(n),1);return Math.abs(n-r)<i?0:n-r}function ac(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function oc(e){let t=Object.getOwnPropertyDescriptor(e,`shape`);return t?.get?t.get.raw:t?.value}function sc(e){return oc(e._zod.def)??e._zod.def.shape}function cc(e,t,n){Object.defineProperty(e,t,{get(){let e=n();return ac(this,t,e),e},enumerable:!0,configurable:!0})}function lc(e,t,n){t in e?ac(e,t,n):e[t]=n}function uc(e,t,n,r){let i=sc(t);for(let a of n){let n=Object.getOwnPropertyDescriptor(i,a);n.enumerable&&(n.get?cc(e,a,()=>{let e=t._zod.def.shape[a];return r?r(e,a):e}):lc(e,a,r?r(n.value,a):n.value))}}function dc(e,t){for(let n of Reflect.ownKeys(t)){let r=Object.getOwnPropertyDescriptor(t,n);r.enumerable&&(r.get?cc(e,n,()=>t[n]):lc(e,n,r.value))}}function fc(...e){let t={};for(let n of e){let e=Object.getOwnPropertyDescriptors(n);Object.assign(t,e)}return Object.defineProperties({},t)}function pc(e){return JSON.stringify(e)}function mc(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,``).replace(/[\s_-]+/g,`-`).replace(/^-+|-+$/g,``)}var hc=`captureStackTrace`in Error?Error.captureStackTrace:(...e)=>{};function gc(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}var _c=tc(()=>{if(dl.jitless||typeof navigator<`u`&&navigator?.userAgent?.includes(`Cloudflare`))return!1;try{return Function(``),!0}catch{return!1}});function vc(e){if(gc(e)===!1)return!1;let t=e.constructor;if(t===void 0||typeof t!=`function`)return!0;let n=t.prototype;return gc(n)!==!1&&Object.prototype.hasOwnProperty.call(n,`isPrototypeOf`)!==!1}function yc(e){return vc(e)?{...e}:Array.isArray(e)?[...e]:e instanceof Map?new Map(e):e instanceof Set?new Set(e):e}var bc=new Set([`string`,`number`,`symbol`]);function xc(e){return e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)}function Sc(e,t,n){let r=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(r._zod.parent=e),r}function z(e){let t=e;if(!t)return{};if(typeof t==`string`)return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error==`string`?{...t,error:()=>t.error}:t}function Cc(e){return typeof e==`bigint`?e.toString()+`n`:typeof e==`string`?`"${e}"`:`${e}`}function wc(e){return Object.keys(e).filter(t=>e[t]._zod.optin!==void 0&&e[t]._zod.optout===`optional`)}var Tc={safeint:[-(2**53-1),2**53-1],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},Ec={int64:[BigInt(`-9223372036854775808`),BigInt(`9223372036854775807`)],uint64:[BigInt(0),BigInt(`18446744073709551615`)]};function Dc(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw Error(`.pick() cannot be used on object schemas containing refinements`);let i={};return uc(i,e,Oc(e,t)),Sc(e,fc(n,{shape:i,checks:[]}))}function Oc(e,t){let n=sc(e),r=[];for(let e of Reflect.ownKeys(t)){if(!Object.getOwnPropertyDescriptor(n,e)?.enumerable)throw Error(`Unrecognized key: "${String(e)}"`);t[e]&&r.push(e)}return r}function kc(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw Error(`.omit() cannot be used on object schemas containing refinements`);let i=new Set(Oc(e,t)),a={};return uc(a,e,Reflect.ownKeys(sc(e)).filter(e=>!i.has(e))),Sc(e,fc(n,{shape:a,checks:[]}))}function Ac(e,t){if(!vc(t))throw Error(`Invalid input to extend: expected a plain object`);let n=e._zod.def.checks;if(n&&n.length>0){let n=sc(e);for(let e of Reflect.ownKeys(t))if(Object.getOwnPropertyDescriptor(n,e)!==void 0)throw Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}return Sc(e,fc(e._zod.def,{shape:jc(e,t)}))}function jc(e,t){let n={};return uc(n,e,Reflect.ownKeys(sc(e))),dc(n,t),n}function Mc(e,t){if(!vc(t))throw Error(`Invalid input to safeExtend: expected a plain object`);return Sc(e,fc(e._zod.def,{shape:jc(e,t)}))}function Nc(e,t){if(!t?._zod?.def)throw Error("Invalid input to merge: expected an object schema. To merge a plain shape, use `.extend()`.");if(e._zod.def.checks?.length)throw Error(`.merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.`);let n={};return uc(n,e,Reflect.ownKeys(sc(e))),uc(n,t,Reflect.ownKeys(sc(t))),Sc(e,fc(e._zod.def,{shape:n,get catchall(){return t._zod.def.catchall},checks:t._zod.def.checks??[]}))}function Pc(e,t,n,r=`partial`){let i=t._zod.def.checks;if(i&&i.length>0)throw Error(`.${r}() cannot be used on object schemas containing refinements`);let a=n?new Set(Oc(t,n)):void 0,o={};return uc(o,t,Reflect.ownKeys(sc(t)),e&&((t,n)=>a&&!a.has(n)?t:new e({type:`optional`,innerType:t}))),Sc(t,fc(t._zod.def,{shape:o,checks:[]}))}function Fc(e,t,n){let r=n?new Set(Oc(t,n)):void 0,i={};return uc(i,t,Reflect.ownKeys(sc(t)),(t,n)=>r&&!r.has(n)?t:new e({type:`nonoptional`,innerType:t})),Sc(t,fc(t._zod.def,{shape:i}))}function Ic(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue!==!0)return!0;return!1}function Lc(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue===!1)return!0;return!1}function Rc(e,t){return t.map(t=>{var n;return(n=t).path??(n.path=[]),t.path.unshift(e),t})}function zc(e){return typeof e==`string`?e:e?.message}function Bc(e,t,n){var r;for(let i=t;i<e.length;i++)(r=e[i]).schema??(r.schema=n)}function Vc(e,t,n){var r;let i=e.inst?._zod?.traits;i?.has(`$ZodType`)&&(i.has(`$ZodCheck`)?(r=e).schema??(r.schema=e.inst):e.schema=e.inst);let a=e.schema===e.inst?void 0:e.schema?._zod.def?.error,o=e.message?e.message:zc(e.inst?._zod.def?.error?.(e))??zc(a?.(e))??zc(t?.error?.(e))??zc(n.customError?.(e))??zc(n.localeError?.(e))??`Invalid input`,s={};for(let t of Object.keys(e))t!==`inst`&&t!==`schema`&&t!==`continue`&&t!==`input`&&t!==`__proto__`&&(s[t]=e[t]);return s.path??=[],s.message=o,t?.reportInput&&(s.input=e.input),s}var Hc=/[\uD800-\uDBFF]/;function Uc(e){let t=e.length;if(!Hc.test(e))return t;let n=t;for(let r=0;r<t-1;r++)(e.charCodeAt(r)&64512)==55296&&(e.charCodeAt(r+1)&64512)==56320&&(n--,r++);return n}function Wc(e){return Array.isArray(e)?`array`:typeof e==`string`?`string`:`unknown`}function Gc(e){let t=typeof e;switch(t){case`number`:return Number.isNaN(e)?`nan`:`number`;case`object`:{if(e===null)return`null`;if(Array.isArray(e))return`array`;let t=e;if(t&&Object.getPrototypeOf(t)!==Object.prototype&&`constructor`in t&&t.constructor)return t.constructor.name}}return t}function Kc(...e){let[t,n,r]=e;return typeof t==`string`?{message:t,code:`custom`,input:n,inst:r}:{...t}}function qc(e,t){for(let n in t){let r=Object.getOwnPropertyDescriptor(t,n);r.get?Object.defineProperty(e,n,{...r,enumerable:!1}):Zc(e,n,r.value)}for(let n of Object.getOwnPropertySymbols(t))Zc(e,n,t[n])}function Jc(e,t,n,r=!0){return Object.defineProperty(e,t,{configurable:!0,writable:!0,enumerable:r,value:n}),n}function Yc(e,t,n){return Jc(e,t,n,!1)}function Xc(e,t){for(let n in e){let r=e[n];Object.defineProperty(t,n,{configurable:!0,enumerable:!0,get(){return Jc(this,n,r(this))},set(e){Jc(this,n,e)}})}return t}function Zc(e,t,n){Object.defineProperty(e,t,{configurable:!0,get(){return this==null?n:Jc(this,t,n.bind(this))},set(e){Jc(this,t,e)}})}function Qc(e,t){let n=Object.getPrototypeOf(e);return t in n?void 0:n}var $c,el=!1,tl={configurable:!0,get(){el=!0}};function B(e,t,n){let r=Object.getPrototypeOf(e._zod);if(t in r&&$c!==e._zod){$c=void 0;return}$c=e._zod,Object.defineProperty(r,t,{configurable:!0,get(){Object.defineProperty(this,t,tl);let e=el;el=!1;try{let r=n(this);return el?delete this[t]:Object.defineProperty(this,t,{configurable:!0,writable:!0,value:r}),el||=e,r}catch(n){throw delete this[t],el||=e,n}},set(e){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:e})}})}function nl(e,t,n,r){let i=Qc(e,t);i&&Object.defineProperty(i,t,{configurable:!0,get(){let e={configurable:!0,writable:!0,enumerable:r,value:void 0};return Object.defineProperty(this,t,e),e.value=n(this),Object.defineProperty(this,t,e),e.value},set(e){Object.defineProperty(this,t,{configurable:!0,writable:!0,enumerable:r,value:e})}})}var rl=`~constantCatch`;function il(e){let t=()=>e;return t[rl]=!0,t}var al,ol={value:void 0,enumerable:!1},sl=`captureStackTrace`in Error?Error:null;function cl(e){let t=sl;if(t){let n=t.stackTraceLimit;if(typeof n==`number`){try{t.stackTraceLimit=0}catch{return sl=null,new e}try{return new e}finally{t.stackTraceLimit=n}}}return new e}function V(e,t,n,r){let i={};function a(e){this.def=e,this.constr=d,this.traits=new Set}a.prototype=i;let o=n,s=o&&new WeakSet;function c(n,r){if(!n._zod){ol.value=new a(r);try{Object.defineProperty(n,"_zod",ol)}finally{ol.value=void 0}}if(n._zod.traits.has(e))return;if(n._zod.traits.add(e),t(n,r),s){let e=Object.getPrototypeOf(n),t=n._zod.constr.prototype,r=e;for(;r&&r!==t;)r=Object.getPrototypeOf(r);let i=r??e;s.has(i)||(s.add(i),qc(i,o))}let i=d.prototype;for(let e in i)Object.prototype.hasOwnProperty.call(i,e)&&(e in n||(n[e]=i[e].bind(n)))}let l=r?.Parent??Object;class u extends l{}Object.defineProperty(u,"name",{value:e});function d(e){let t=r?.Parent?cl(u):this;c(t,e);let n=t._zod.deferred;if(n){for(let e of n)e();t._zod.deferred=void 0}let i=globalThis.__zod_globalConfig?.postProcessor;return i&&i(t),t}return Object.defineProperty(d,"init",{value:c}),Object.defineProperty(d,Symbol.hasInstance,{value:t=>r?.Parent&&t instanceof r.Parent?!0:t?._zod?.traits?.has(e)}),Object.defineProperty(d,"name",{value:e}),d}var ll=class extends Error{constructor(){super(`Encountered Promise during synchronous parse. Use .parseAsync() instead.`)}},ul=class extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`),this.name=`ZodEncodeError`}};(al=globalThis).__zod_globalConfig??(al.__zod_globalConfig={});var dl=globalThis.__zod_globalConfig;function fl(e){return e&&Object.assign(dl,e),dl}function pl(){let e=this._zod;return e.message??=JSON.stringify(e.def,$s,2),e.message}function ml(e){this._zod.message=e}var hl={get:pl,set:ml,enumerable:!0,configurable:!0},gl={value:void 0,enumerable:!1},_l=new WeakSet([Object.prototype,Error.prototype]),vl=(e,t)=>{e.name=`$ZodError`,gl.value=t,Object.defineProperty(e,"issues",gl),gl.value=void 0,Object.defineProperty(e,"message",hl);let n=Object.getPrototypeOf(e);_l.has(n)||(_l.add(n),Object.defineProperty(n,"toString",{configurable:!0,enumerable:!1,get(){let e=()=>this.message;return Object.defineProperty(this,"toString",{value:e,configurable:!0,writable:!0}),e},set(e){Object.defineProperty(this,"toString",{value:e,configurable:!0,writable:!0})}}))},yl=V(`$ZodError`,vl);V(`$ZodError`,vl,void 0,{Parent:Error});function bl(e,t,n){return Object.prototype.hasOwnProperty.call(e,t)||(t===`__proto__`?Object.defineProperty(e,t,{value:n(),writable:!0,enumerable:!0,configurable:!0}):e[t]=n()),e[t]}function xl(e,t=e=>e.message){let n={},r=[];for(let i of e.issues)i.path.length>0?bl(n,i.path[0],()=>[]).push(t(i)):r.push(t(i));return{formErrors:r,fieldErrors:n}}function Sl(e,t=e=>e.message){let n={_errors:[]},r=(e,i=[])=>{for(let a of e.issues)if(a.code===`invalid_union`&&a.errors.length)a.errors.map(e=>r({issues:e},[...i,...a.path]));else if(a.code===`invalid_key`)r({issues:a.issues},[...i,...a.path]);else if(a.code===`invalid_element`)r({issues:a.issues},[...i,...a.path]);else{let e=[...i,...a.path];if(e.length===0)n._errors.push(t(a));else{let r=n,i=0;for(;i<e.length;){let n=e[i],o=i===e.length-1;if(n===`_errors`){o&&r._errors.push(t(a)),i++;continue}Object.prototype.hasOwnProperty.call(r,n)||Object.defineProperty(r,n,{value:{_errors:[]},enumerable:!0,writable:!0,configurable:!0});let s=r[n];o&&s._errors.push(t(a)),r=s,i++}}}};return r(e),n}function Cl(e,t){return{callee:t?.callee??e,Err:t?.Err}}var wl=e=>{let t=(n,r,i,a)=>{let o=i?{...i,async:!1}:{async:!1},s=n._zod.run({value:r,issues:[]},o);if(s instanceof Promise)throw new ll;if(s.issues.length){let n=new((a?.Err)??e)(s.issues.map(e=>Vc(e,o,fl())));throw hc(n,a?.callee??t),n}return s.value};return t},Tl=e=>{let t=async(n,r,i,a)=>{let o=i?{...i,async:!0}:{async:!0},s=n._zod.run({value:r,issues:[]},o);if(s instanceof Promise&&(s=await s),s.issues.length){let n=new((a?.Err)??e)(s.issues.map(e=>Vc(e,o,fl())));throw hc(n,a?.callee??t),n}return s.value};return t},El=e=>(t,n,r)=>{let i=r?{...r,async:!1}:{async:!1},a=t._zod.run({value:n,issues:[]},i);if(a instanceof Promise)throw new ll;return a.issues.length?Dl(e,a.issues,i):{success:!0,data:a.value}};function Dl(e,t,n){let r;return{success:!1,get error(){return r||(r=new e(t.map(e=>Vc(e,n,fl()))),t=void 0,n=void 0),r},set error(e){r=e,t=void 0,n=void 0}}}var Ol=e=>async(t,n,r)=>{let i=r?{...r,async:!0}:{async:!0},a=t._zod.run({value:n,issues:[]},i);return a instanceof Promise&&(a=await a),a.issues.length?Dl(e,a.issues,i):{success:!0,data:a.value}},kl=Symbol.for(`zod.compile.invalid`),Al=Symbol.for(`zod.compile.fallback`),jl=((e,t,n)=>{let r=e._zod.bag.validator;if(r!==void 0){if(r(t)!==kl)return!0;if(r.definite===!0&&n===void 0)return!1}return Ml(e,t,n)});function Ml(e,t,n){let r=n?{...n,async:!1,abortEarly:!0}:{async:!1,abortEarly:!0},i=e._zod.bag.fallbackRun,a;if(i?(r[Al]=!0,a=i({value:t,issues:[]},r)):a=e._zod.run({value:t,issues:[]},r),a instanceof Promise)throw new ll;return a.issues.length===0}var Nl=async(e,t,n)=>{let r=n?{...n,async:!0,abortEarly:!0}:{async:!0,abortEarly:!0},i=e._zod.run({value:t,issues:[]},r);return i instanceof Promise&&(i=await i),i.issues.length===0},Pl=e=>{let t=wl(e),n=(e,r,i,a)=>{let o=i?{...i,direction:`backward`}:{direction:`backward`};return t(e,r,o,Cl(n,a))};return n},Fl=e=>{let t=wl(e),n=(e,r,i,a)=>t(e,r,i,Cl(n,a));return n},Il=e=>{let t=Tl(e),n=async(e,r,i,a)=>{let o=i?{...i,direction:`backward`}:{direction:`backward`};return await t(e,r,o,Cl(n,a))};return n},Ll=e=>{let t=Tl(e),n=async(e,r,i,a)=>await t(e,r,i,Cl(n,a));return n},Rl=e=>(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return El(e)(t,n,i)},zl=e=>(t,n,r)=>El(e)(t,n,r),Bl=e=>async(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return Ol(e)(t,n,i)},Vl=e=>async(t,n,r)=>Ol(e)(t,n,r),Hl=/^[cC][0-9a-z]{6,}$/,Ul=/^[0-9a-z]+$/,Wl=/^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/,Gl=/^[0-9a-vA-V]{20}$/,Kl=/^[A-Za-z0-9]{27}$/,ql=/^[a-zA-Z0-9_-]{21}$/;function Jl(e){return RegExp(`^[a-zA-Z0-9_-]{${e}}$`)}var Yl=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,Xl=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,Zl=e=>e?RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,Ql=/^(?:[A-Za-z0-9_'+\-]+\.)*[A-Za-z0-9_'+\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,$l=`^(?=[\\s\\S]*[\\p{Extended_Pictographic}\\p{Regional_Indicator}\\u20E3])[\\p{Extended_Pictographic}\\p{Emoji_Component}]+$`;function eu(){return new RegExp($l,`u`)}var tu=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,nu=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,ru=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,iu=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,au=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,ou=/^(?:[A-Za-z0-9_-]{4})*(?:[A-Za-z0-9_-]{2,3})?$/,su=/^https?$/,H=/^\+[1-9]\d{6,14}$/,cu=`(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))`;function lu(e){return RegExp(`^${e}$`)}var uu=lu(cu);function du(e){let t=`(?:[01]\\d|2[0-3]):[0-5]\\d`;return typeof e.precision==`number`?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:e.seconds?`${t}:[0-5]\\d(?:\\.\\d+)?`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function fu(e){return RegExp(`^${du(e)}$`)}function pu(e){let t=[`Z`];e.offset&&t.push(`([+-](?:[01]\\d|2[0-3]):[0-5]\\d)`);let n=`${du({precision:e.precision,seconds:!0})}(?:${t.join(`|`)})`,r=e.local?`${n}|${du({precision:e.precision})}`:n;return RegExp(`^${cu}T(?:${r})$`)}var mu=/^[\s\S]{0,}$/,hu=/^-?\d+$/,gu=/^-?\d+(?:\.\d+)?$/,_u=/^(?:true|false)$/i,vu=/^[^A-Z]*$/,yu=/^[^a-z]*$/,bu=V(`$ZodCheck`,(e,t)=>{var n;e._zod??={},e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),xu=e=>{let t=e.value;return!nc(t)&&t.length!==void 0},Su={number:`number`,bigint:`bigint`,object:`date`},Cu=V(`$ZodCheckLessThan`,(e,t)=>{bu.init(e,t);let n=Su[typeof t.value];e._zod.check=r=>{(t.inclusive?r.value<=t.value:r.value<t.value)||r.issues.push({origin:Su[typeof r.value]??n,code:`too_big`,maximum:typeof t.value==`object`?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),wu=V(`$ZodCheckGreaterThan`,(e,t)=>{bu.init(e,t);let n=Su[typeof t.value];e._zod.check=r=>{(t.inclusive?r.value>=t.value:r.value>t.value)||r.issues.push({origin:Su[typeof r.value]??n,code:`too_small`,minimum:typeof t.value==`object`?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Tu=V(`$ZodCheckMultipleOf`,(e,t)=>{bu.init(e,t),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw Error(`Cannot mix number and bigint in multiple_of check.`);(typeof n.value==`bigint`?t.value!==BigInt(0)&&n.value%t.value===BigInt(0):ic(n.value,t.value)===0)||n.issues.push({origin:typeof n.value,code:`not_multiple_of`,divisor:t.value,input:n.value,inst:e,continue:!t.abort})}}),Eu=V(`$ZodCheckNumberFormat`,(e,t)=>{bu.init(e,t),t.format=t.format||`float64`;let n=t.format?.includes(`int`),r=n?`int`:`number`,[i,a]=Tc[t.format];e._zod.check=o=>{let s=o.value;if(n){if(!Number.isInteger(s)){o.issues.push({expected:r,format:t.format,code:`invalid_type`,continue:!1,input:s,inst:e});return}if(!Number.isSafeInteger(s)){s>0?o.issues.push({input:s,code:`too_big`,maximum:2**53-1,note:`Integers must be within the safe integer range.`,inst:e,origin:r,inclusive:!0,continue:!t.abort}):o.issues.push({input:s,code:`too_small`,minimum:-(2**53-1),note:`Integers must be within the safe integer range.`,inst:e,origin:r,inclusive:!0,continue:!t.abort});return}}s<i&&o.issues.push({origin:`number`,input:s,code:`too_small`,minimum:i,inclusive:!0,inst:e,continue:!t.abort}),s>a&&o.issues.push({origin:`number`,input:s,code:`too_big`,maximum:a,inclusive:!0,inst:e,continue:!t.abort})}}),Du=V(`$ZodCheckMaxLength`,(e,t)=>{var n;bu.init(e,t),(n=e._zod.def).when??(n.when=xu),e._zod.check=n=>{let r=n.value,i=r.length;if((typeof r==`string`&&i>t.maximum?Uc(r):i)<=t.maximum)return;let a=Wc(r);n.issues.push({origin:a,code:`too_big`,maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),Ou=V(`$ZodCheckMinLength`,(e,t)=>{var n;bu.init(e,t),(n=e._zod.def).when??(n.when=xu),e._zod.check=n=>{let r=n.value,i=r.length;if((typeof r==`string`&&i>=t.minimum&&i<t.minimum*2?Uc(r):i)>=t.minimum)return;let a=Wc(r);n.issues.push({origin:a,code:`too_small`,minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),ku=V(`$ZodCheckLengthEquals`,(e,t)=>{var n;bu.init(e,t),(n=e._zod.def).when??(n.when=xu),e._zod.check=n=>{let r=n.value,i=r.length,a=typeof r==`string`&&i>=t.length&&i<=t.length*2?Uc(r):i;if(a===t.length)return;let o=Wc(r),s=a>t.length;n.issues.push({origin:o,...s?{code:`too_big`,maximum:t.length}:{code:`too_small`,minimum:t.length},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!t.abort})}}),Au=V(`$ZodCheckStringFormat`,(e,t)=>{var n,r;bu.init(e,t),t.pattern?(n=e._zod).check??(n.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:`string`,code:`invalid_format`,format:t.format,input:n.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(r=e._zod).check??(r.check=()=>{})}),ju=V(`$ZodCheckRegex`,(e,t)=>{Au.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:`string`,code:`invalid_format`,format:`regex`,input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),Mu=V(`$ZodCheckLowerCase`,(e,t)=>{t.pattern??=vu,Au.init(e,t)}),Nu=V(`$ZodCheckUpperCase`,(e,t)=>{t.pattern??=yu,Au.init(e,t)}),Pu=V(`$ZodCheckIncludes`,(e,t)=>{bu.init(e,t);let n=xc(t.includes);t.pattern=new RegExp(typeof t.position==`number`?`^.{${t.position},}${n}`:n),e._zod.check=n=>{n.value.includes(t.includes,t.position)||n.issues.push({origin:`string`,code:`invalid_format`,format:`includes`,includes:t.includes,input:n.value,inst:e,continue:!t.abort})}}),Fu=V(`$ZodCheckStartsWith`,(e,t)=>{bu.init(e,t);let n=RegExp(`^${xc(t.prefix)}.*`);t.pattern??=n,e._zod.check=n=>{n.value.startsWith(t.prefix)||n.issues.push({origin:`string`,code:`invalid_format`,format:`starts_with`,prefix:t.prefix,input:n.value,inst:e,continue:!t.abort})}}),Iu=V(`$ZodCheckEndsWith`,(e,t)=>{bu.init(e,t);let n=RegExp(`.*${xc(t.suffix)}$`);t.pattern??=n,e._zod.check=n=>{n.value.endsWith(t.suffix)||n.issues.push({origin:`string`,code:`invalid_format`,format:`ends_with`,suffix:t.suffix,input:n.value,inst:e,continue:!t.abort})}}),Lu=V(`$ZodCheckOverwrite`,(e,t)=>{bu.init(e,t),e._zod.check=e=>{e.value=t.tx(e.value)}}),Ru=class{constructor(e=[],t={}){this.content=[],this.indent=0,this.args=e,this.closed=t}indented(e){this.indent+=1;try{e(this)}finally{--this.indent}}write(e){if(typeof e==`function`){e(this,{execution:`sync`}),e(this,{execution:`async`});return}let t=e.split(`
|
|
20
|
-
`).filter(e=>e),n=Math.min(...t.map(e=>e.length-e.trimStart().length)),r=t.map(e=>e.slice(n)).map(e=>` `.repeat(this.indent*2)+e);for(let e of r)this.content.push(e)}compile(){let e=Function,t=this?.content??[``];return new e(...Object.keys(this.closed),`return function (${this.args.join(`, `)}) {\n${t.join(`
|
|
21
|
-
`)}\n};`)(...Object.values(this.closed))}},zu={major:4,minor:6,patch:2},U=V(`$ZodType`,(e,t)=>{var n;e??={},e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=zu;let r=e._zod.def.checks,i=e._zod.traits.has(`$ZodCheck`)?[e,...r??[]]:r?.length?[...r]:[];for(let t of i)for(let n of t._zod.onattach)n(e);if(i.length===0)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let t=(t,n,r)=>{if(t.memo)return t;let i=Ic(t),a;for(let o of n){if(o._zod.def.when){if(Lc(t)||!o._zod.def.when(t))continue}else if(i)continue;let n=t.issues.length,s=o._zod.check(t);if(s instanceof Promise&&r?.async===!1)throw new ll;if(a||s instanceof Promise)a=(a??Promise.resolve()).then(async()=>{await s,t.issues.length!==n&&(Bc(t.issues,n,e),i||=Ic(t,n))});else{if(t.issues.length===n)continue;Bc(t.issues,n,e),i||=Ic(t,n)}}return a?a.then(()=>t):t},n=(n,r,a)=>{if(Ic(n))return n.aborted=!0,n;let o=t(r,i,a);if(o instanceof Promise){if(a.async===!1)throw new ll;return o.then(t=>e._zod.parse(t,a))}return e._zod.parse(o,a)};e._zod.run=(r,a)=>{if(a.skipChecks)return e._zod.parse(r,a);if(a.direction===`backward`){let t=e._zod.parse({value:r.value,issues:[]},{...a,skipChecks:!0});return t instanceof Promise?t.then(e=>n(e,r,a)):n(t,r,a)}let o=e._zod.parse(r,a);if(o instanceof Promise){if(a.async===!1)throw new ll;return o.then(e=>t(e,i,a))}return t(o,i,a)}}},{get"~standard"(){return Yc(this,`~standard`,Hu(this))},set"~standard"(e){Jc(this,`~standard`,e)}}),Bu=(e,t)=>e.issues.length?{issues:e.issues.map(e=>Vc(e,t,fl()))}:{value:e.value};async function Vu(e,t){let n={async:!0};return Bu(await e._zod.run({value:t,issues:[]},n),n)}function Hu(e){return{validate:t=>{let n={async:!1};try{let r=e._zod.run({value:t,issues:[]},n);if(!(r instanceof Promise))return Bu(r,n)}catch{}return Vu(e,t)},vendor:`zod`,version:1}}var Uu=V(`$ZodString`,(e,t)=>{U.init(e,t),e._zod.pattern=t.pattern??mu,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=String(n.value)}catch{}return typeof n.value==`string`||n.issues.push({expected:`string`,code:`invalid_type`,input:n.value,inst:e}),n}}),W=V(`$ZodStringFormat`,(e,t)=>{Au.init(e,t),Uu.init(e,t)}),Wu=V(`$ZodGUID`,(e,t)=>{t.pattern??=Xl,W.init(e,t)}),Gu=V(`$ZodUUID`,(e,t)=>{if(t.version){let e={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(e===void 0)throw Error(`Invalid UUID version: "${t.version}"`);t.pattern??=Zl(e)}else t.pattern??=Zl();W.init(e,t)}),Ku=V(`$ZodEmail`,(e,t)=>{t.pattern??=Ql,W.init(e,t)});function qu(e,t){if(!t.normalize&&t.protocol?.source===su.source&&!/^https?:\/\//i.test(e))return 1;try{return new URL(e)}catch{return 2}}var Ju=/[\t\n\r]/g;function Yu(e){return e.replace(Ju,``)}function Xu(e,t){return t.lastIndex=0,t.test(e.hostname)}function Zu(e,t){return t.lastIndex=0,t.test(e.protocol.endsWith(`:`)?e.protocol.slice(0,-1):e.protocol)}var Qu=V(`$ZodURL`,(e,t)=>{W.init(e,t),e._zod.check=n=>{try{let r=n.value.trim(),i=qu(r,t);if(i===1){n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid URL format`,input:n.value,inst:e,continue:!t.abort});return}if(i===2){n.issues.push({code:`invalid_format`,format:`url`,input:n.value,inst:e,continue:!t.abort});return}t.hostname&&!Xu(i,t.hostname)&&n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid hostname`,pattern:t.hostname.source,input:n.value,inst:e,continue:!t.abort}),t.protocol&&!Zu(i,t.protocol)&&n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid protocol`,pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort}),n.value=t.normalize?i.href:Yu(r);return}catch{n.issues.push({code:`invalid_format`,format:`url`,input:n.value,inst:e,continue:!t.abort})}}}),$u=V(`$ZodEmoji`,(e,t)=>{t.pattern??=eu(),W.init(e,t)}),ed=V(`$ZodNanoID`,(e,t)=>{if(t.length!==void 0&&(!Number.isInteger(t.length)||t.length<1))throw Error(`Invalid nanoid length: ${t.length}`);t.pattern??=t.length===void 0?ql:Jl(t.length),W.init(e,t)}),G=V(`$ZodCUID`,(e,t)=>{t.pattern??=Hl,W.init(e,t)}),K=V(`$ZodCUID2`,(e,t)=>{t.pattern??=Ul,W.init(e,t)}),q=V(`$ZodULID`,(e,t)=>{t.pattern??=Wl,W.init(e,t)}),J=V(`$ZodXID`,(e,t)=>{t.pattern??=Gl,W.init(e,t)}),Y=V(`$ZodKSUID`,(e,t)=>{t.pattern??=Kl,W.init(e,t)}),td=V(`$ZodISODateTime`,(e,t)=>{t.pattern??=pu(t),W.init(e,t)}),nd=V(`$ZodISODate`,(e,t)=>{t.pattern??=uu,W.init(e,t)}),rd=V(`$ZodISOTime`,(e,t)=>{t.pattern??=fu(t),W.init(e,t)}),id=V(`$ZodISODuration`,(e,t)=>{t.pattern??=Yl,W.init(e,t)}),ad=V(`$ZodIPv4`,(e,t)=>{t.pattern??=tu,W.init(e,t)}),od=/^[0-9a-fA-F:.]+$/;function sd(e){if(!od.test(e))return!1;try{return new URL(`http://[${e}]`),!0}catch{return!1}}var cd=V(`$ZodIPv6`,(e,t)=>{t.pattern??=nu,W.init(e,t),e._zod.check=n=>{sd(n.value)||n.issues.push({code:`invalid_format`,format:`ipv6`,input:n.value,inst:e,continue:!t.abort})}}),ld=V(`$ZodCIDRv4`,(e,t)=>{t.pattern??=ru,W.init(e,t)});function ud(e){let t=e.split(`/`);if(t.length!==2)return!1;let[n,r]=t;if(!r)return!1;let i=Number(r);return`${i}`!==r||i<0||i>128?!1:sd(n)}var dd=V(`$ZodCIDRv6`,(e,t)=>{t.pattern??=iu,W.init(e,t),e._zod.check=n=>{ud(n.value)||n.issues.push({code:`invalid_format`,format:`cidrv6`,input:n.value,inst:e,continue:!t.abort})}});function fd(e){if(e===``)return!0;if(/\s/.test(e)||e.length%4!=0)return!1;try{return atob(e),!0}catch{return!1}}var pd=/^[0-9a-zA-Z+/]*={0,2}$/,md=V(`$ZodBase64`,(e,t)=>{t.pattern??=pd,W.init(e,t),e._zod.check=n=>{fd(n.value)||n.issues.push({code:`invalid_format`,format:`base64`,input:n.value,inst:e,continue:!t.abort})}}),hd=/^[A-Za-z0-9_-]*$/;function gd(e){if(!hd.test(e))return!1;let t=e.replace(/[-_]/g,e=>e===`-`?`+`:`/`);return fd(t.padEnd(Math.ceil(t.length/4)*4,`=`))}var _d=V(`$ZodBase64URL`,(e,t)=>{t.pattern??=hd,W.init(e,t),e._zod.check=n=>{gd(n.value)||n.issues.push({code:`invalid_format`,format:`base64url`,input:n.value,inst:e,continue:!t.abort})}}),vd=V(`$ZodE164`,(e,t)=>{t.pattern??=H,W.init(e,t)});function yd(e,t=null){try{let n=e.split(`.`);if(n.length!==3)return!1;let[r]=n;if(!r)return!1;let i=JSON.parse(atob(r));return!(`typ`in i&&i?.typ!==`JWT`||!i.alg||t&&(!(`alg`in i)||i.alg!==t))}catch{return!1}}var bd=V(`$ZodJWT`,(e,t)=>{W.init(e,t),e._zod.check=n=>{yd(n.value,t.alg)||n.issues.push({code:`invalid_format`,format:`jwt`,input:n.value,inst:e,continue:!t.abort})}}),xd=V(`$ZodNumber`,(e,t)=>{U.init(e,t),e._zod.pattern=gu,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=Number(n.value)}catch{}let i=n.value;if(typeof i==`number`&&!Number.isNaN(i)&&Number.isFinite(i))return n;let a=typeof i==`number`?Number.isNaN(i)?`NaN`:Number.isFinite(i)?void 0:String(i):void 0;return n.issues.push({expected:`number`,code:`invalid_type`,input:i,inst:e,...a?{received:a}:{}}),n}}),Sd=V(`$ZodNumberFormat`,(e,t)=>{Eu.init(e,t),xd.init(e,t)}),Cd=V(`$ZodBoolean`,(e,t)=>{U.init(e,t),e._zod.pattern=_u,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=!!n.value}catch{}let i=n.value;return typeof i==`boolean`||n.issues.push({expected:`boolean`,code:`invalid_type`,input:i,inst:e}),n}}),wd=V(`$ZodUnknown`,(e,t)=>{U.init(e,t),e._zod.parse=e=>e}),Td=V(`$ZodNever`,(e,t)=>{U.init(e,t),e._zod.parse=(t,n)=>(t.issues.push({expected:`never`,code:`invalid_type`,input:t.value,inst:e}),t)});function Ed(e,t,n){e.issues.length&&t.issues.push(...Rc(n,e.issues)),t.value[n]=e.value}var Dd=V(`$ZodArray`,(e,t)=>{U.init(e,t);let n=dl.memoizer;n?.attach(e),e._zod.parse=(r,i)=>{let a=r.value;if(!Array.isArray(a))return r.issues.push({expected:`array`,code:`invalid_type`,input:a,inst:e}),r;r.value=n?n.alloc(e,r,Array(a.length),i):Array(a.length);let o=[],s=i?.abortEarly;for(let e=0;e<a.length;e++){let n=a[e],c=t.element._zod.run({value:n,issues:[]},i);if(c instanceof Promise)o.push(c.then(t=>Ed(t,r,e)));else if(Ed(c,r,e),s&&c.issues.length!==0&&Ic(c))break}return o.length?Promise.all(o).then(()=>r):r}});function Od(e,t,n,r,i,a){let o=n in r,s=a===`optional`;if(!(!o&&s&&i===`optional`)){if(e.issues.length){if(i!==void 0&&s&&!o)return;t.issues.push(...Rc(n,e.issues))}if(!o&&i===void 0){e.issues.length||t.issues.push({code:`invalid_type`,expected:`nonoptional`,input:void 0,path:[n]});return}e.value===void 0?(o||i===`defaulted`&&!s)&&(t.value[n]=void 0):t.value[n]=e.value}}var kd=[];function Ad(e){let t=Object.keys(e.shape),n=Object.getOwnPropertySymbols(e.shape),r=n.length?n:kd,i=r.length?[...t,...r]:t;for(let t of i)if(!e.shape?.[t]?._zod?.traits?.has(`$ZodType`))throw Error(`Invalid element at key "${String(t)}": expected a Zod schema`);let a=wc(e.shape);return{...e,allKeys:i,symbolKeys:r,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(a)}}function jd(e,t,n,r,i,a,o){let s=[],c=i.keySet,l=i.catchall._zod,u=l.def.type,d=l.optin,f=l.optout,p=0;for(let i in t){if(o&&n.issues.length!==p){if(Ic(n,p))break;p=n.issues.length}if(c.has(i))continue;if(i===`__proto__`){u===`never`&&s.push(i);continue}if(u===`never`){s.push(i);continue}let a=l.run({value:t[i],issues:[]},r);a instanceof Promise?e.push(a.then(e=>Od(e,n,i,t,d,f))):Od(a,n,i,t,d,f)}return s.length&&n.issues.push({code:`unrecognized_keys`,keys:s,input:t,inst:a,continue:!0}),e.length?Promise.all(e).then(()=>n):n}var Md=V(`$ZodObject`,(e,t)=>{U.init(e,t);let n=Object.getOwnPropertyDescriptor(t,`shape`),r=n?.get?n.get.raw:t.shape??{};if(r){let e=()=>{let n={...r};return Object.defineProperty(t,"shape",{value:n}),e.raw=n,n};e.raw=r,Object.defineProperty(t,"shape",{get:e})}let i=tc(()=>Ad(t));B(e,`propValues`,e=>{let t=e.def.shape,n={};for(let e in t){let r=t[e]._zod;if(r.values){Object.prototype.hasOwnProperty.call(n,e)||ac(n,e,new Set);for(let t of r.values)n[e].add(t);r.optin!==void 0&&n[e].add(void 0)}}return n});let a=gc,o=t.catchall,s,c=dl.memoizer;c?.attach(e),e._zod.parse=(t,n)=>{s??=i.value;let r=t.value;if(!a(r))return t.issues.push({expected:`object`,code:`invalid_type`,input:r,inst:e}),t;t.value=c?c.alloc(e,t,{},n):{};let l=[],u=s.shape,d=n?.abortEarly,f=t.issues.length;for(let e of s.allKeys){if(d&&t.issues.length!==f){if(Ic(t,f))break;f=t.issues.length}if(e===`__proto__`)continue;let i=u[e],a=i._zod.optin,o=i._zod.optout,s=i._zod.run({value:r[e],issues:[]},n);s instanceof Promise?l.push(s.then(n=>Od(n,t,e,r,a,o))):Od(s,t,e,r,a,o)}return o?jd(l,r,t,n,i.value,e,d===!0):l.length?Promise.all(l).then(()=>t):t}}),Nd=V(`$ZodObjectJIT`,(e,t)=>{Md.init(e,t);let n=e._zod.parse,r=tc(()=>Ad(t)),i=dl.memoizer,a=t=>{let n=r.value,a=n.symbolKeys,o=new Ru([`payload`,`ctx`],{shape:t,inst:e,memo:i,syms:a}),s=e=>`shape[${e}]._zod.run({ value: input[${e}], issues: [] }, ctx)`,c=(e,t)=>`
|
|
22
|
-
let ${e}_ab = false;
|
|
23
|
-
for (let i = 0; i < ${e}.issues.length; i++) {
|
|
24
|
-
const iss = ${e}.issues[i];
|
|
25
|
-
iss.path = iss.path ? [${t}, ...iss.path] : [${t}];
|
|
26
|
-
payload.issues.push(iss);
|
|
27
|
-
if (iss.continue !== true) ${e}_ab = true;
|
|
28
|
-
}
|
|
29
|
-
if (${e}_ab && ctx && ctx.abortEarly) {
|
|
30
|
-
payload.value = newResult;
|
|
31
|
-
return payload;
|
|
32
|
-
}`;o.write(`const input = payload.value;`);let l=Object.create(null),u=0;for(let e of n.allKeys)l[e]=`key_${u++}`;o.write(i?`const newResult = memo.alloc(inst, payload, {}, ctx);`:`const newResult = {};`);for(let e of n.allKeys){if(e===`__proto__`)continue;let n=l[e],r=typeof e==`symbol`?`syms[${a.indexOf(e)}]`:pc(e),i=`${r} in input`,u=t[e],d=u?._zod?.optin,f=d!==void 0,p=u?._zod?.optout===`optional`;if(o.write(`const ${n} = ${s(r)};`),f&&p){let e=d===`optional`?`${n}_present`:`${n}.value !== undefined || ${n}_present`;o.write(`
|
|
33
|
-
const ${n}_present = ${i};
|
|
34
|
-
if (!${n}.issues.length || ${n}_present) {
|
|
35
|
-
if (${n}.issues.length) {${c(n,r)}
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
if (${e}) {
|
|
39
|
-
newResult[${r}] = ${n}.value;
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
`)}else f?(o.write(`
|
|
44
|
-
if (${n}.issues.length) {${c(n,r)}
|
|
45
|
-
}
|
|
46
|
-
`),d===`defaulted`?o.write(`newResult[${r}] = ${n}.value;`):o.write(`
|
|
47
|
-
if (${n}.value !== undefined || ${i}) {
|
|
48
|
-
newResult[${r}] = ${n}.value;
|
|
49
|
-
}
|
|
50
|
-
`)):o.write(`
|
|
51
|
-
const ${n}_present = ${i};
|
|
52
|
-
if (${n}.issues.length) {${c(n,r)}
|
|
53
|
-
}
|
|
54
|
-
if (!${n}_present && !${n}.issues.length) {
|
|
55
|
-
payload.issues.push({
|
|
56
|
-
code: "invalid_type",
|
|
57
|
-
expected: "nonoptional",
|
|
58
|
-
input: undefined,
|
|
59
|
-
path: [${r}]
|
|
60
|
-
});
|
|
61
|
-
if (ctx && ctx.abortEarly) {
|
|
62
|
-
payload.value = newResult;
|
|
63
|
-
return payload;
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
if (${n}_present) {
|
|
68
|
-
newResult[${r}] = ${n}.value;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
`)}return o.write(`payload.value = newResult;`),o.write(`return payload;`),o.compile()},o,s=gc,c=!dl.jitless,l=c&&_c.value,u=t.catchall,d;e._zod.parse=(i,f)=>{d??=r.value;let p=i.value;return s(p)?c&&l&&f?.async===!1&&f.jitless!==!0?(o||=a(t.shape),i=o(i,f),u?jd([],p,i,f,d,e,f?.abortEarly===!0):i):n(i,f):(i.issues.push({expected:`object`,code:`invalid_type`,input:p,inst:e}),i)}});function Pd(e,t,n,r){for(let n of e)if(n.issues.length===0)return t.value=n.value,t;let i=e.filter(e=>!Ic(e));return i.length===1?(t.value=i[0].value,i[0]):(t.issues.push({code:`invalid_union`,input:t.value,inst:n,errors:e.map(e=>e.issues.map(e=>Vc(e,r,fl())))}),t)}var Fd=V(`$ZodUnion`,(e,t)=>{U.init(e,t),B(e,`optin`,e=>e.def.options.some(e=>e._zod.optin===`defaulted`)?`defaulted`:e.def.options.some(e=>e._zod.optin!==void 0)?`optional`:void 0),B(e,`optout`,e=>e.def.options.some(e=>e._zod.optout===`optional`)?`optional`:void 0),B(e,`values`,e=>{if(e.def.options.every(e=>e._zod.values))return new Set(e.def.options.flatMap(e=>Array.from(e._zod.values)))}),B(e,`pattern`,e=>{if(e.def.options.every(e=>e._zod.pattern)){let t=e.def.options.map(e=>e._zod.pattern);return RegExp(`^(${t.map(e=>rc(e.source)).join(`|`)})$`)}});let n=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(r,i)=>{if(n)return n(r,i);let a=!1,o=[];for(let e of t.options){let t=e._zod.run({value:r.value,issues:[]},i);if(t instanceof Promise)o.push(t),a=!0;else{if(t.issues.length===0)return t;o.push(t)}}return a?Promise.all(o).then(t=>Pd(t,r,e,i)):Pd(o,r,e,i)}}),Id=V(`$ZodIntersection`,(e,t)=>{U.init(e,t),e._zod.parse=(e,n)=>{let r=e.value,i=t.left._zod.run({value:r,issues:[]},n),a=t.right._zod.run({value:r,issues:[]},n);return i instanceof Promise||a instanceof Promise?Promise.all([i,a]).then(([t,n])=>Rd(e,t,n)):Rd(e,i,a)}});function Ld(e,t){if(e===t||e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(vc(e)&&vc(t)){let n=Object.keys(t),r=Object.keys(e).filter(e=>n.indexOf(e)!==-1),i={...e,...t};Object.prototype.hasOwnProperty.call(i,`__proto__`)&&delete i.__proto__;for(let n of r){if(n===`__proto__`)continue;let r=Ld(e[n],t[n]);if(!r.valid)return{valid:!1,mergeErrorPath:[n,...r.mergeErrorPath]};i[n]=r.data}return{valid:!0,data:i}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};let n=[];for(let r=0;r<e.length;r++){let i=e[r],a=t[r],o=Ld(i,a);if(!o.valid)return{valid:!1,mergeErrorPath:[r,...o.mergeErrorPath]};n.push(o.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function Rd(e,t,n){let r=new Map,i,a=new Map,o=(e,t)=>{let n;if(e.code===`unrecognized_keys`&&!e.path?.length)i??=e,n=e.keys;else if(e.code===`invalid_key`&&e.origin===`record`&&e.path?.length===1){let t=String(e.path[0]);a.has(t)||a.set(t,e),n=[t]}else return!1;for(let e of n)r.has(e)||r.set(e,{}),r.get(e)[t]=!0;return!0};for(let n of t.issues)o(n,`l`)||e.issues.push(n);for(let t of n.issues)o(t,`r`)||e.issues.push(t);let s=[...r].filter(([,e])=>e.l&&e.r).map(([e])=>e);if(s.length){let t=i?s.filter(e=>i.keys.includes(e)):[];t.length&&e.issues.push({...i,keys:t});for(let n of s)!t.includes(n)&&a.has(n)&&e.issues.push(a.get(n))}let c=Ld(t.value,n.value);if(!c.valid){if(Ic(e))return e;throw Error(`Unmergable intersection. Error path: ${JSON.stringify(c.mergeErrorPath)}`)}return e.value=c.data,e}var zd=V(`$ZodRecord`,(e,t)=>{U.init(e,t);let n=dl.memoizer;n?.attach(e),e._zod.parse=(r,i)=>{let a=r.value;if(!vc(a))return r.issues.push({expected:`record`,code:`invalid_type`,input:a,inst:e}),r;let o=[],s=t.keyType._zod.values;if(s&&!t.partial){r.value=n?n.alloc(e,r,{},i):{};let c=new Set;for(let n of s)if(typeof n==`string`||typeof n==`number`||typeof n==`symbol`){if(c.add(typeof n==`number`?n.toString():n),n===`__proto__`)continue;let s=t.keyType._zod.run({value:n,issues:[]},i);if(s instanceof Promise)throw Error(`Async schemas not supported in object keys currently`);if(s.issues.length){r.issues.push({code:`invalid_key`,origin:`record`,issues:s.issues.map(e=>Vc(e,i,fl())),input:n,path:[n],inst:e});continue}let l=s.value;if(l===`__proto__`)continue;let u=t.valueType._zod.run({value:a[n],issues:[]},i);u instanceof Promise?o.push(u.then(e=>{e.issues.length&&r.issues.push(...Rc(n,e.issues)),r.value[l]=e.value})):(u.issues.length&&r.issues.push(...Rc(n,u.issues)),r.value[l]=u.value)}let l;for(let e in a)if(!c.has(e)){if(t.mode===`loose`){if(e===`__proto__`)continue;r.value[e]=a[e]}else l??=[],l.push(e)}l&&l.length>0&&r.issues.push({code:`unrecognized_keys`,input:a,inst:e,keys:l,continue:!0})}else{r.value=n?n.alloc(e,r,{},i):{};let c;for(let n of Reflect.ownKeys(a)){if(n===`__proto__`||!Object.prototype.propertyIsEnumerable.call(a,n))continue;let l=t.keyType._zod.run({value:n,issues:[]},i);if(l instanceof Promise)throw Error(`Async schemas not supported in object keys currently`);if(typeof n==`string`&&gu.test(n)&&l.issues.length){let e=t.keyType._zod.run({value:Number(n),issues:[]},i);if(e instanceof Promise)throw Error(`Async schemas not supported in object keys currently`);e.issues.length===0&&(l=e)}if(l.issues.length){t.mode===`loose`?r.value[n]=a[n]:s?(c??=[],c.push(n)):r.issues.push({code:`invalid_key`,origin:`record`,issues:l.issues.map(e=>Vc(e,i,fl())),input:n,path:[n],inst:e});continue}let u=l.value;if(u===`__proto__`)continue;let d=t.valueType._zod.run({value:a[n],issues:[]},i);d instanceof Promise?o.push(d.then(e=>{e.issues.length&&r.issues.push(...Rc(n,e.issues)),r.value[u]=e.value})):(d.issues.length&&r.issues.push(...Rc(n,d.issues)),r.value[u]=d.value)}c&&c.length>0&&r.issues.push({code:`unrecognized_keys`,input:a,inst:e,keys:c,continue:!0})}return o.length?Promise.all(o).then(()=>r):r}}),Bd=V(`$ZodEnum`,(e,t)=>{U.init(e,t);let n=Zs(t.entries),r=new Set(n);e._zod.values=r,B(e,`pattern`,e=>{let t=Zs(e.def.entries).filter(e=>bc.has(typeof e));return RegExp(t.length?`^(${t.map(e=>xc(e.toString())).join(`|`)})$`:`^[^\\s\\S]$`)}),e._zod.parse=(t,i)=>{let a=t.value;return r.has(a)||t.issues.push({code:`invalid_value`,values:n,input:a,inst:e}),t}}),Vd=V(`$ZodTransform`,(e,t)=>{U.init(e,t),e._zod.optin=`optional`,dl.memoizer?.guard(e),e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new ul(e.constructor.name);let i=t.transform(n.value,n);if(r.async)return(i instanceof Promise?i:Promise.resolve(i)).then(e=>(n.value=e,n));if(i instanceof Promise)throw new ll;return n.value=i,n}});function Hd(e,t){return e.value=t.issues.length?void 0:t.value,e}var Ud=V(`$ZodOptional`,(e,t)=>{U.init(e,t),B(e,`optin`,e=>e.def.innerType._zod.optin===`defaulted`?`defaulted`:`optional`),e._zod.optout=`optional`,B(e,`values`,e=>{let t=e.def.innerType._zod.values;return t?new Set([...t,void 0]):void 0}),B(e,`pattern`,e=>{let t=e.def.innerType._zod.pattern;return t?RegExp(`^(${rc(t.source)})?$`):void 0}),e._zod.parse=(e,n)=>{if(e.value===void 0){if(t.innerType._zod.optin!==`defaulted`)return e;let r=t.innerType._zod.run({value:e.value,issues:[]},n);return r instanceof Promise?r.then(t=>Hd(e,t)):Hd(e,r)}return t.innerType._zod.run(e,n)}}),Wd=V(`$ZodExactOptional`,(e,t)=>{Ud.init(e,t),B(e,`values`,e=>e.def.innerType._zod.values),B(e,`pattern`,e=>e.def.innerType._zod.pattern),e._zod.parse=(e,n)=>t.innerType._zod.run(e,n)}),Gd=V(`$ZodNullable`,(e,t)=>{U.init(e,t),B(e,`optin`,e=>e.def.innerType._zod.optin),B(e,`optout`,e=>e.def.innerType._zod.optout),B(e,`pattern`,e=>{let t=e.def.innerType._zod.pattern;return t?RegExp(`^(${rc(t.source)}|null)$`):void 0}),B(e,`values`,e=>e.def.innerType._zod.values?new Set([...e.def.innerType._zod.values,null]):void 0),e._zod.parse=(e,n)=>e.value===null?e:t.innerType._zod.run(e,n)}),Kd=V(`$ZodDefault`,(e,t)=>{U.init(e,t),e._zod.optin=`defaulted`,B(e,`values`,e=>e.def.innerType._zod.values),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);if(e.value===void 0)return e.value=t.defaultValue,e;let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(e=>qd(e,t)):qd(r,t)}});function qd(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}var Jd=V(`$ZodPrefault`,(e,t)=>{U.init(e,t),e._zod.optin=`defaulted`,B(e,`values`,e=>e.def.innerType._zod.values),e._zod.parse=(e,n)=>(n.direction===`backward`||e.value===void 0&&(e.value=t.defaultValue),t.innerType._zod.run(e,n))}),Yd=V(`$ZodNonOptional`,(e,t)=>{U.init(e,t),B(e,`values`,e=>{let t=e.def.innerType._zod.values;return t?new Set([...t].filter(e=>e!==void 0)):void 0}),e._zod.parse=(n,r)=>{let i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(t=>Xd(t,e)):Xd(i,e)}});function Xd(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:`invalid_type`,expected:`nonoptional`,input:e.value,inst:t}),e}function Zd(e,t,n,r){return t.issues.length?(e.value=n.catchValue({...t,value:e.value,error:{issues:t.issues.map(e=>Vc(e,r,fl()))},input:e.value}),e):(e.value=t.value,t.memo&&(e.memo=!0),e)}var Qd=V(`$ZodCatch`,(e,t)=>{U.init(e,t),B(e,`optin`,e=>e.def.innerType._zod.optin===`defaulted`?`defaulted`:`optional`),B(e,`optout`,e=>e.def.innerType._zod.optout),B(e,`values`,e=>e.def.innerType._zod.values),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);let r=t.innerType._zod.run({value:e.value,issues:[]},n);return r instanceof Promise?r.then(r=>Zd(e,r,t,n)):Zd(e,r,t,n)}}),$d=V(`$ZodPipe`,(e,t)=>{U.init(e,t),B(e,`values`,e=>e.def.in._zod.values),B(e,`optin`,e=>e.def.in._zod.optin),B(e,`optout`,e=>e.def.out._zod.optout),B(e,`propValues`,e=>e.def.in._zod.propValues),e._zod.parse=(e,n)=>{if(n.direction===`backward`){let r=t.out._zod.run(e,n);return r instanceof Promise?r.then(e=>ef(e,t.in,n)):ef(r,t.in,n)}let r=t.in._zod.run(e,n);return r instanceof Promise?r.then(e=>ef(e,t.out,n)):ef(r,t.out,n)}});function ef(e,t,n){return e.issues.some(e=>e.code!==`unrecognized_keys`)?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},n)}var tf=V(`$ZodReadonly`,(e,t)=>{U.init(e,t),B(e,`propValues`,e=>e.def.innerType._zod.propValues),B(e,`values`,e=>e.def.innerType._zod.values),B(e,`optin`,e=>e.def.innerType?._zod?.optin),B(e,`optout`,e=>e.def.innerType?._zod?.optout),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(nf):nf(r)}});function nf(e){return e.memo||(e.value=Object.freeze(e.value)),e}var rf=V(`$ZodCustom`,(e,t)=>{bu.init(e,t),U.init(e,t),e._zod.parse=(e,t)=>e,e._zod.check=n=>{let r=n.value,i=t.fn(r);if(i instanceof Promise)return i.then(t=>af(t,n,r,e));af(i,n,r,e)}});function af(e,t,n,r){if(!e){let e={code:`custom`,input:n,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(e.params=r._zod.def.params),t.issues.push(Kc(e))}}var of=class extends Error{constructor(){super(`Cannot parse a reference cycle that closes through a transform`),this.name=`ZodCyclicError`}},sf=`~memo`,cf=[];function lf(e){return e!==null&&(typeof e==`object`||typeof e==`function`)}function uf(e){return e.map(e=>e.path?{...e,path:e.path.slice()}:{...e})}var df=new WeakMap,ff=0,pf=1,mf=2;function X(e,t,n){let r=df.get(e);if(r!==void 0)return r?mf:ff;if(t.has(e))return mf;t.add(e);let i=ff,a=e=>{if(i!==mf&&e?._zod){let r=X(e,t,n);r>i&&(i=r)}},o=(e,r)=>{let i=ff;for(let a of Reflect.ownKeys(e)){let o=Object.getOwnPropertyDescriptor(e,a);if(r&&!o.enumerable)continue;let s=o.get?pf:o.value?._zod?X(o.value,t,n):ff;s>i&&(i=s)}return i},s=e=>{e>i&&(i=e)},c=e._zod.def;switch(c.type){case`object`:{let e=oc(c);s(e?o(e,!0):pf),a(c.catchall);break}case`properties`:s(o(c.shape,!1));break;case`array`:a(c.element);break;case`tuple`:for(let e of c.items)a(e);a(c.rest);break;case`record`:case`map`:a(c.keyType),a(c.valueType);break;case`set`:a(c.valueType);break;case`union`:for(let e of c.options)a(e);break;case`intersection`:a(c.left),a(c.right);break;case`optional`:case`nullable`:case`default`:case`prefault`:case`catch`:case`readonly`:case`nonoptional`:case`promise`:case`success`:a(c.innerType);break;case`pipe`:a(c.in),a(c.out);break;case`function`:a(c.input),a(c.output);break;case`lazy`:{let r=c._cachedInner??(n?e._zod.innerType:void 0);s(r?X(r,t,!1):pf);break}case`template_literal`:case`string`:case`number`:case`int`:case`boolean`:case`bigint`:case`symbol`:case`undefined`:case`null`:case`void`:case`never`:case`any`:case`unknown`:case`date`:case`nan`:case`enum`:case`literal`:case`file`:case`transform`:case`custom`:break;default:for(let e in c){let t=Object.getOwnPropertyDescriptor(c,e);if(!t||t.get)continue;let n=t.value;if(!(!n||typeof n!=`object`)){if(n._zod)a(n);else if(Array.isArray(n))for(let e of n)a(e)}}}return t.delete(e),hf(e,i)}function hf(e,t){return t!==pf&&df.set(e,t===mf),t}function gf(e,t){let n=e.buckets.get(t);return n||(n=new WeakMap,e.buckets.set(t,n)),n}var _f,vf=[],yf={alloc(e,t,n){let r=_f;if(!r)return n;_f=void 0;let i={value:n,issues:null};return r.set(t.value,i),vf.push(i),n},guard(e){var t;(t=e._zod).deferred??(t.deferred=[]),e._zod.deferred.push(()=>{let t=e._zod.parse,n=(e,n)=>{if(n.direction!==`backward`&&xf(n,e.value))throw new of;return t(e,n)};e._zod.parse=n,e._zod.run===t&&(e._zod.run=n)})},attach(e){var t;let n,r=!1,i,a;(t=e._zod).deferred??(t.deferred=[]),e._zod.deferred.push(()=>{let t=e._zod.parse,o=(s,c)=>{if(n===void 0){let i=X(e,new Set,!1);if(i===ff)return e._zod.parse=t,e._zod.run===o&&(e._zod.run=t),t(s,c);i===mf||r?n=!0:r=!0}let l=s.value;if(!lf(l))return t(s,c);let u=c[sf];u||(u={buckets:new WeakMap,backEdges:void 0},c[sf]=u);let d;i===c?d=a:(d=gf(u,e),i=c,a=d);let f=d.get(l);if(f)return s.value=f.value,f.issues?f.issues.length&&s.issues.push(...uf(f.issues)):(s.memo=!0,u.backEdges??(u.backEdges=new WeakSet),u.backEdges.add(f.value)),s;_f=d;let p=vf.length,m=t(s,c);_f=void 0;let h=vf.length>p?vf.pop():void 0;return m instanceof Promise?m.then(e=>(h&&(h.issues=e.issues.length?uf(e.issues):cf),e)):(h&&(h.issues=m.issues.length?uf(m.issues):cf),m)};e._zod.parse=o,e._zod.run===t&&(e._zod.run=o)})}};function bf(){return yf}function xf(e,t){let n=e[sf]?.backEdges;return n!==void 0&&lf(t)&&n.has(t)}var Sf=()=>{let e={string:{unit:`characters`,verb:`to have`},file:{unit:`bytes`,verb:`to have`},array:{unit:`items`,verb:`to have`},set:{unit:`items`,verb:`to have`},map:{unit:`entries`,verb:`to have`}};function t(t){return e[t]??null}let n={regex:`input`,email:`email address`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO datetime`,date:`ISO date`,time:`ISO time`,duration:`ISO duration`,ipv4:`IPv4 address`,ipv6:`IPv6 address`,mac:`MAC address`,cidrv4:`IPv4 range`,cidrv6:`IPv6 range`,base64:`base64-encoded string`,base64url:`base64url-encoded string`,json_string:`JSON string`,e164:`E.164 number`,credit_card:`credit card number`,iban:`IBAN`,jwt:`JWT`,template_literal:`input`},r={nan:`NaN`};function i(e,t){return e===`number`&&typeof t==`number`&&!Number.isFinite(t)?String(t):r[e]??e}return e=>{switch(e.code){case`invalid_type`:return`Invalid input: expected ${i(e.expected)}, received ${i(Gc(e.input),e.input)}`;case`invalid_value`:return e.values.length===1?`Invalid input: expected ${Cc(e.values[0])}`:`Invalid option: expected one of ${Qs(e.values,`|`)}`;case`too_big`:{let n=e.exact?`exactly `:e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Too big: expected ${e.origin??`value`} to have ${n}${e.maximum.toString()} ${r.unit??`elements`}`:`Too big: expected ${e.origin??`value`} to be ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.exact?`exactly `:e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Too small: expected ${e.origin} to have ${n}${e.minimum.toString()} ${r.unit}`:`Too small: expected ${e.origin} to be ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Invalid string: must start with "${t.prefix}"`:t.format===`ends_with`?`Invalid string: must end with "${t.suffix}"`:t.format===`includes`?`Invalid string: must include "${t.includes}"`:t.format===`regex`?`Invalid string: must match pattern ${t.pattern}`:`Invalid ${n[t.format]??e.format}`}case`not_multiple_of`:return`Invalid number: must be a multiple of ${e.divisor}`;case`unrecognized_keys`:return`Unrecognized key${e.keys.length>1?`s`:``}: ${Qs(e.keys,`, `)}`;case`invalid_key`:return`Invalid key in ${e.origin}`;case`invalid_union`:return e.options&&Array.isArray(e.options)&&e.options.length>0?`Invalid discriminator value. Expected ${e.options.map(e=>`'${e}'`).join(` | `)}`:e.inclusive===!1?`Invalid input: more than one option matched`:`Invalid input`;case`invalid_element`:return`Invalid value in ${e.origin}`;default:return`Invalid input`}}};function Cf(){return{localeError:Sf()}}var wf,Tf=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(e,...t){let n=t[0];return this._map.set(e,n),n&&typeof n==`object`&&`id`in n&&this._idmap.set(n.id,e),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(e){let t=this._map.get(e);return t&&typeof t==`object`&&`id`in t&&this._idmap.delete(t.id),this._map.delete(e),this}get(e){let t=e._zod.parent;if(t){let n={...this.get(t)??{}};delete n.id;let r={...n,...this._map.get(e)};return Object.keys(r).length?r:void 0}return this._map.get(e)}has(e){return this._map.has(e)}};function Ef(){return new Tf}(wf=globalThis).__zod_globalRegistry??(wf.__zod_globalRegistry=Ef());var Df=globalThis.__zod_globalRegistry;function Of(e,t){return new e({type:`string`,...z(t)})}function kf(e,t){return new e({type:`string`,format:`email`,check:`string_format`,abort:!1,...z(t)})}function Af(e,t){return new e({type:`string`,format:`guid`,check:`string_format`,abort:!1,...z(t)})}function jf(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,...z(t)})}function Mf(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v4`,...z(t)})}function Nf(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v6`,...z(t)})}function Pf(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v7`,...z(t)})}function Ff(e,t){return new e({type:`string`,format:`url`,check:`string_format`,abort:!1,...z(t)})}function If(e,t){return new e({type:`string`,format:`emoji`,check:`string_format`,abort:!1,...z(t)})}function Lf(e,t){return new e({type:`string`,format:`nanoid`,check:`string_format`,abort:!1,...z(t)})}function Rf(e,t){return new e({type:`string`,format:`cuid`,check:`string_format`,abort:!1,...z(t)})}function zf(e,t){return new e({type:`string`,format:`cuid2`,check:`string_format`,abort:!1,...z(t)})}function Bf(e,t){return new e({type:`string`,format:`ulid`,check:`string_format`,abort:!1,...z(t)})}function Vf(e,t){return new e({type:`string`,format:`xid`,check:`string_format`,abort:!1,...z(t)})}function Hf(e,t){return new e({type:`string`,format:`ksuid`,check:`string_format`,abort:!1,...z(t)})}function Z(e,t){return new e({type:`string`,format:`ipv4`,check:`string_format`,abort:!1,...z(t)})}function Uf(e,t){return new e({type:`string`,format:`ipv6`,check:`string_format`,abort:!1,...z(t)})}function Wf(e,t){return new e({type:`string`,format:`cidrv4`,check:`string_format`,abort:!1,...z(t)})}function Gf(e,t){return new e({type:`string`,format:`cidrv6`,check:`string_format`,abort:!1,...z(t)})}function Kf(e,t){return new e({type:`string`,format:`base64`,check:`string_format`,abort:!1,...z(t)})}function qf(e,t){return new e({type:`string`,format:`base64url`,check:`string_format`,abort:!1,...z(t)})}function Jf(e,t){return new e({type:`string`,format:`e164`,check:`string_format`,abort:!1,...z(t)})}function Yf(e,t){return new e({type:`string`,format:`jwt`,check:`string_format`,abort:!1,...z(t)})}function Xf(e,t){return new e({type:`string`,format:`datetime`,check:`string_format`,offset:!1,local:!1,precision:null,...z(t)})}function Zf(e,t){return new e({type:`string`,format:`date`,check:`string_format`,...z(t)})}function Qf(e,t){return new e({type:`string`,format:`time`,check:`string_format`,precision:null,...z(t)})}function $f(e,t){return new e({type:`string`,format:`duration`,check:`string_format`,...z(t)})}function ep(e,t){return new e({type:`number`,checks:[],...z(t)})}function tp(e,t){return new e({type:`number`,check:`number_format`,abort:!1,format:`safeint`,...z(t)})}function Q(e,t){return new e({type:`boolean`,...z(t)})}function np(e){return new e({type:`unknown`})}function rp(e,t){return new e({type:`never`,...z(t)})}function ip(e,t){return new Cu({check:`less_than`,...z(t),value:e,inclusive:!1})}function ap(e,t){return new Cu({check:`less_than`,...z(t),value:e,inclusive:!0})}function op(e,t){return new wu({check:`greater_than`,...z(t),value:e,inclusive:!1})}function sp(e,t){return new wu({check:`greater_than`,...z(t),value:e,inclusive:!0})}function cp(e,t){return new Tu({check:`multiple_of`,...z(t),value:e})}function lp(e,t){return new Du({check:`max_length`,...z(t),maximum:e})}function up(e,t){return new Ou({check:`min_length`,...z(t),minimum:e})}function dp(e,t){return new ku({check:`length_equals`,...z(t),length:e})}function fp(e,t){return new ju({check:`string_format`,format:`regex`,...z(t),pattern:e})}function pp(e){return new Mu({check:`string_format`,format:`lowercase`,...z(e)})}function mp(e){return new Nu({check:`string_format`,format:`uppercase`,...z(e)})}function hp(e,t){return new Pu({check:`string_format`,format:`includes`,...z(t),includes:e})}function gp(e,t){return new Fu({check:`string_format`,format:`starts_with`,...z(t),prefix:e})}function _p(e,t){return new Iu({check:`string_format`,format:`ends_with`,...z(t),suffix:e})}function vp(e){return new Lu({check:`overwrite`,tx:e})}function yp(e){return vp(t=>t.normalize(e))}function bp(){return vp(e=>e.trim())}function xp(){return vp(e=>e.toLowerCase())}function Sp(){return vp(e=>e.toUpperCase())}function Cp(){return vp(e=>mc(e))}function wp(e,t,n){return new e({type:`array`,element:t,...z(n)})}function Tp(e,t,n){return new e({type:`custom`,check:`custom`,fn:t,...z(n)})}function Ep(e,t){let n=Dp(t=>(t.addIssue=e=>{if(typeof e==`string`)t.issues.push(Kc(e,t.value,n._zod.def));else{let r=e;r.fatal&&(r.continue=!1),r.code??=`custom`,`input`in r||(r.input=t.value),r.inst??=n,r.continue??=!n._zod.def.abort,t.issues.push(Kc(r))}},e(t.value,t)),t);return n}function Dp(e,t){let n=new bu({check:`custom`,...z(t)});return n._zod.check=e,n}function Op(e,...t){for(let n of t)for(let t of Reflect.ownKeys(n))Object.prototype.propertyIsEnumerable.call(n,t)&&ac(e,t,n[t]);return e}function kp(e){let t=e?.target??`draft-2020-12`;return t===`draft-4`&&(t=`draft-04`),t===`draft-7`&&(t=`draft-07`),{processors:e.processors??{},metadataRegistry:e?.metadata??Df,target:t,unrepresentable:e?.unrepresentable??`throw`,override:e?.override??(()=>{}),io:e?.io??`output`,counter:0,seen:new Map,sharedDefsExtractedFor:void 0,sharedEmitDoneFor:void 0,cycles:e?.cycles??`ref`,reused:e?.reused??`inline`,intersections:[],deferred:[],external:e?.external??void 0}}function Ap(e,t,n,r,i){let a=typeof t.unrepresentable==`function`?t.unrepresentable({zodSchema:e,path:r.path,message:i}):t.unrepresentable;if(a===`any`)return!1;if(a===void 0||a===`throw`)throw Error(i);return Object.assign(n,a),!0}function jp(e,t,n={path:[],schemaPath:[]}){var r;let i=e._zod.def,a=t.seen.get(e);if(a)return a.count++,n.schemaPath.includes(e)&&(a.cycle=n.path),a.schema;let o={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,o),t.sharedDefsExtractedFor=void 0,t.sharedEmitDoneFor=void 0;let s=e._zod.toJSONSchema?.();if(s)o.schema=s;else{let r={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,o.schema,r);else{let n=o.schema,a=t.processors[i.type];if(!a)throw Error(`[toJSONSchema]: Non-representable type encountered: ${i.type}`);a(e,t,n,r)}let a=e._zod.parent;a&&(o.ref||=a,jp(a,t,r),t.seen.get(a).isParent=!0)}let c=t.metadataRegistry.get(e);return c&&Op(o.schema,c),t.io===`input`&&Vp(e)&&(delete o.schema.examples,delete o.schema.default),t.io===`input`&&`_prefault`in o.schema&&((r=o.schema).default??(r.default=o.schema._prefault)),delete o.schema._prefault,t.seen.get(e).schema}function Mp(e){return e.replace(/~/g,`~0`).replace(/\//g,`~1`)}function Np(e,t){let n=e.seen.get(t);if(!n)throw Error(`Unprocessed schema. This is a bug in Zod.`);if(e.external&&e.sharedDefsExtractedFor===e.external)return;let r=new Map;for(let t of e.seen.entries()){let n=e.metadataRegistry.get(t[0])?.id;if(n){let e=r.get(n);if(e&&e!==t[0])throw Error(`Duplicate schema id "${n}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);r.set(n,t[0])}}let i=t=>{let r=e.target===`draft-2020-12`?`$defs`:`definitions`;if(e.external){let n=e.external.registry.get(t[0])?.id,i=e.external.uri??(e=>e);if(n)return{ref:i(n)};let a=t[1].defId??t[1].schema.id??`schema${e.counter++}`;return t[1].defId=a,{defId:a,ref:`${i(`__shared`)}#/${r}/${Mp(a)}`}}let i=`#/${r}/`;if(t[1]===n&&!t[1].schema.id)return{ref:`#`};let a=t[1].schema.id??`__schema${e.counter++}`;return{defId:a,ref:i+Mp(a)}},a=e=>{if(e[1].schema.$ref)return;let t=e[1],{ref:n,defId:r}=i(e);t.def={...t.schema},r&&(t.defId=r);let a=t.schema;for(let e in a)delete a[e];a.$ref=n};if(e.cycles===`throw`)for(let t of e.seen.entries()){let e=t[1];if(e.cycle)throw Error(`Cycle detected: #/${e.cycle?.join(`/`)}/<root>
|
|
72
|
-
|
|
73
|
-
Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let n of e.seen.entries()){let r=n[1];if(t===n[0]){a(n);continue}if(e.external){let r=e.external.registry.get(n[0])?.id;if(t!==n[0]&&r){a(n);continue}}if(e.metadataRegistry.get(n[0])?.id){a(n);continue}if(r.cycle){a(n);continue}r.count>1&&e.reused===`ref`&&a(n)}e.external&&(e.sharedDefsExtractedFor=e.external)}function Pp(e){let t=e.anyOf;if(!Array.isArray(t)||t.length===0||e.type!==void 0)return;let n=[];for(let e of t){if(!e||typeof e!=`object`)return;Pp(e);let t=Object.keys(e);if(t.length!==1||t[0]!==`type`)return;let r=e.type;for(let e of Array.isArray(r)?r:[r]){if(typeof e!=`string`)return;n.includes(e)||n.push(e)}}delete e.anyOf,e.type=n.length===1?n[0]:n}var Fp=new Set([`type`,`properties`,`required`,`additionalProperties`]),Ip=[`oneOf`,`anyOf`];function Lp(e){let t=e.additionalProperties;return t===void 0||t===!1||typeof t!=`object`||!t?null:Object.keys(t).length?t:null}function Rp(e){let t=[];for(let n of e){if(typeof n!=`object`||n.type!==`object`)return null;for(let e in n)if(!Fp.has(e))return null;t.push(n)}let n={},r=new Set;for(let e of t){for(let r in e.properties){if(Object.prototype.hasOwnProperty.call(n,r))continue;let e=[];for(let n of t){let t=n.properties?.[r]??Lp(n);t!=null&&(e.some(e=>JSON.stringify(e)===JSON.stringify(t))||e.push(t))}ac(n,r,e.length===1?e[0]:Rp(e)??{allOf:e})}for(let t of e.required??[])r.add(t)}let i={type:`object`,properties:n};if(r.size&&(i.required=[...r]),t.every(e=>e.additionalProperties===!1))i.additionalProperties=!1;else{let e=[];for(let n of t){let t=Lp(n);t&&!e.some(e=>JSON.stringify(e)===JSON.stringify(t))&&e.push(t)}e.length===1?i.additionalProperties=e[0]:e.length>1&&(i.additionalProperties={allOf:e})}return i}function zp(e){let t=e.allOf;if(!Array.isArray(t)||t.length<2)return;for(let t of Fp)if(t in e)return;let n=t.filter(e=>Ip.some(t=>Array.isArray(e[t]))),r=null;if(!n.length)r=Rp(t);else{let e=n[0],i=Ip.find(t=>Array.isArray(e[t]));if(Object.keys(e).length!==1)return;let a=t.filter(t=>t!==e),o=e[i].map(e=>Rp([...a,e]));if(o.some(e=>!e))return;r={[i]:o}}r&&(delete e.allOf,Op(e,r))}function Bp(e,t){let n=e.seen.get(t);if(!n)throw Error(`Unprocessed schema. This is a bug in Zod.`);let r=t=>{let n=e.seen.get(t);if(n.ref===null)return;let i=n.def??n.schema,a={...i},o=n.ref;if(n.ref=null,o){r(o);let n=e.seen.get(o),s=n.schema;if(s.$ref&&(e.target===`draft-07`||e.target===`draft-04`||e.target===`openapi-3.0`)?(i.allOf=i.allOf??[],i.allOf.push(s)):Op(i,s),Op(i,a),t._zod.parent===o)for(let e in i)e!==`$ref`&&e!==`allOf`&&(e in a||delete i[e]);if(s.$ref&&n.def)for(let e in i)e!==`$ref`&&e!==`allOf`&&e in n.def&&JSON.stringify(i[e])===JSON.stringify(n.def[e])&&delete i[e]}let s=t._zod.parent;if(s&&s!==o){r(s);let t=e.seen.get(s);if(t?.schema.$ref&&(i.$ref=t.schema.$ref,t.def))for(let e in i)e!==`$ref`&&e!==`allOf`&&e in t.def&&JSON.stringify(i[e])===JSON.stringify(t.def[e])&&delete i[e]}e.override({zodSchema:t,jsonSchema:i,path:n.path??[]})};if(!e.external||e.sharedEmitDoneFor!==e.external){for(let t of[...e.seen.entries()].reverse())r(t[0]);if(e.target!==`openapi-3.0`)for(let t of e.seen.entries())Pp(t[1].def??t[1].schema);for(let t of e.deferred)t();if(e.intersections.length){let t=new Map;for(let n of e.seen.values())for(let e of[n.schema,n.def]){let n=e?.allOf;if(!Array.isArray(n))continue;let r=t.get(n);r?r.push(e):t.set(n,[e])}for(let n of e.intersections)for(let e of t.get(n)??[])zp(e)}}let i={};if(e.target===`draft-2020-12`?i.$schema=`https://json-schema.org/draft/2020-12/schema`:e.target===`draft-07`?i.$schema=`http://json-schema.org/draft-07/schema#`:e.target===`draft-04`?i.$schema=`http://json-schema.org/draft-04/schema#`:e.target,e.external?.uri){let n=e.external.registry.get(t)?.id;if(!n)throw Error("Schema is missing an `id` property");i.$id=e.external.uri(n)}Op(i,n.defId?n.schema:n.def??n.schema);let a=e.metadataRegistry.get(t)?.id;a!==void 0&&i.id===a&&delete i.id;let o=e.external?.defs??{};if(!e.external||e.sharedEmitDoneFor!==e.external)for(let t of e.seen.entries()){let e=t[1];e.def&&e.defId&&(e.def.id===e.defId&&delete e.def.id,ac(o,e.defId,e.def))}e.external&&(e.sharedEmitDoneFor=e.external),e.external||Object.keys(o).length>0&&(e.target===`draft-2020-12`?i.$defs=o:i.definitions=o);try{let n=JSON.parse(JSON.stringify(i));return Object.defineProperty(n,"~standard",{value:{...t[`~standard`],jsonSchema:{input:Up(t,`input`,e.processors),output:Up(t,`output`,e.processors)}},enumerable:!1,writable:!1}),n}catch{throw Error(`Error converting schema to JSON.`)}}function Vp(e,t){let n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);let r=e._zod.def;if(r.type===`transform`)return!0;if(r.type===`array`)return Vp(r.element,n);if(r.type===`set`)return Vp(r.valueType,n);if(r.type===`lazy`)return Vp(r.getter(),n);if(r.type===`promise`||r.type===`optional`||r.type===`nonoptional`||r.type===`nullable`||r.type===`readonly`||r.type==="default"||r.type===`prefault`||r.type===`catch`)return Vp(r.innerType,n);if(r.type===`intersection`)return Vp(r.left,n)||Vp(r.right,n);if(r.type===`record`||r.type===`map`)return Vp(r.keyType,n)||Vp(r.valueType,n);if(r.type===`pipe`)return e._zod.traits.has(`$ZodCodec`)?!0:Vp(r.in,n)||Vp(r.out,n);if(r.type===`object`){for(let e in r.shape)if(Vp(r.shape[e],n))return!0;return!1}if(r.type===`union`){for(let e of r.options)if(Vp(e,n))return!0;return!1}if(r.type===`tuple`){for(let e of r.items)if(Vp(e,n))return!0;return!!(r.rest&&Vp(r.rest,n))}return!1}var Hp=(e,t={})=>n=>{let r=kp({...n,processors:t});return jp(e,r),Np(r,e),Bp(r,e)},Up=(e,t,n={})=>r=>{let{libraryOptions:i,target:a}=r??{},o=kp({...i??{},target:a,io:t,processors:n});return jp(e,o),Np(o,e),Bp(o,e)},Wp=(e,t,n)=>{(e[t]===void 0||n>e[t])&&(e[t]=n)},Gp=(e,t,n)=>{(e[t]===void 0||n<e[t])&&(e[t]=n)},Kp=(e,t)=>{Wp(e,`minimum`,t),Gp(e,`maximum`,t)},qp=(e,t)=>{e.multipleOf??=[],e.multipleOf.includes(t)||e.multipleOf.push(t)},Jp=(e,t)=>{e.patterns??=new Set,e.patterns.add(t)},Yp=(e,t)=>{e.mime=e.mime?e.mime.filter(e=>t.includes(e)):[...t]},Xp=(e,t)=>{e.format=t,t.includes(`int`)&&(e.isInt=!0)},Zp=(e,t)=>Wp(e,`minimum`,t.minimum),Qp=(e,t)=>Gp(e,`maximum`,t.maximum),$p=e=>(t,n)=>{Xp(t,n.format);let[r,i]=e[n.format];Wp(t,`minimum`,r),Gp(t,`maximum`,i)},em={greater_than:(e,t)=>Wp(e,t.inclusive?`minimum`:`exclusiveMinimum`,t.value),less_than:(e,t)=>Gp(e,t.inclusive?`maximum`:`exclusiveMaximum`,t.value),multiple_of:(e,t)=>qp(e,t.value),number_format:$p(Tc),bigint_format:$p(Ec),min_length:Zp,max_length:Qp,length_equals:(e,t)=>Kp(e,t.length),min_size:Zp,max_size:Qp,size_equals:(e,t)=>Kp(e,t.size),string_format:(e,t)=>{Xp(e,t.format),t.pattern&&Jp(e,t.pattern),(t.format===`base64`||t.format===`base64url`)&&(e.contentEncoding=t.format),(t.local||t.precision===-1)&&(e.laxFormat=!0)},mime_type:(e,t)=>Yp(e,t.mime)};function tm(e){let t={},n=e._zod.def,r=e._zod.traits.has(`$ZodCheck`)?[e,...n.checks??[]]:n.checks??[];for(let e of r)em[e._zod.def.check]?.(t,e._zod.def);let i=e._zod.bag;i.minimum!==void 0&&Wp(t,`minimum`,i.minimum),i.exclusiveMinimum!==void 0&&Wp(t,`exclusiveMinimum`,i.exclusiveMinimum),i.maximum!==void 0&&Gp(t,`maximum`,i.maximum),i.exclusiveMaximum!==void 0&&Gp(t,`exclusiveMaximum`,i.exclusiveMaximum),i.multipleOf!==void 0&&qp(t,i.multipleOf),i.format!==void 0&&(t.format??=i.format,i.format.includes(`int`)&&(t.isInt=!0)),i.mime&&Yp(t,i.mime);for(let e of i.patterns??[])Jp(t,e);return t}var nm={guid:`uuid`,url:`uri`,datetime:`date-time`,json_string:`json-string`,regex:``},rm=new Map([[pd,au],[hd,ou]]),im=e=>rm.get(e)??e,am=(e,t,n,r)=>{let i=n;i.type=`string`;let{minimum:a,maximum:o,format:s,patterns:c,contentEncoding:l,laxFormat:u}=tm(e);if(typeof a==`number`&&(i.minLength=a),typeof o==`number`&&(i.maxLength=o),s&&(i.format=nm[s]??s,i.format===``&&delete i.format,(s===`time`||u)&&delete i.format),l&&(i.contentEncoding=l),c&&c.size>0){let e=[...c].map(im);e.length===1?i.pattern=e[0].source:e.length>1&&(i.allOf=[...e.map(e=>({...t.target===`draft-07`||t.target===`draft-04`||t.target===`openapi-3.0`?{type:`string`}:{},pattern:e.source}))])}},om=(e,t,n,r)=>{let i=n,{minimum:a,maximum:o,multipleOf:s,exclusiveMaximum:c,exclusiveMinimum:l,isInt:u}=tm(e);i.type=u?`integer`:`number`;let d=typeof l==`number`&&l>=(a??-1/0),f=typeof c==`number`&&c<=(o??1/0),p=t.target===`draft-04`||t.target===`openapi-3.0`;if(d?p?(i.minimum=l,i.exclusiveMinimum=!0):i.exclusiveMinimum=l:typeof a==`number`&&(i.minimum=a),f?p?(i.maximum=c,i.exclusiveMaximum=!0):i.exclusiveMaximum=c:typeof o==`number`&&(i.maximum=o),s){let n=new Set;for(let a of s)Number.isFinite(a)&&a!==0?n.add(Math.abs(a)):Ap(e,t,i,r,`A multipleOf divisor of ${a} cannot be represented in JSON Schema`);let[a,...o]=n;a!==void 0&&(i.multipleOf=a),o.length&&(i.allOf=[...i.allOf??[],...o.map(e=>({multipleOf:e}))])}},sm=(e,t,n,r)=>{n.type=`boolean`},cm=(e,t,n,r)=>{n.not={}},lm=(e,t,n,r)=>{let i=e._zod.def,a=Zs(i.entries);if(a.length===0){n.not={};return}a.every(e=>typeof e==`number`)&&(n.type=`number`),a.every(e=>typeof e==`string`)&&(n.type=`string`),n.enum=a},um=(e,t,n,r)=>{Ap(e,t,n,r,`Custom types cannot be represented in JSON Schema`)},dm=(e,t,n,r)=>{Ap(e,t,n,r,`Transforms cannot be represented in JSON Schema`)},fm=(e,t,n,r)=>{let i=n,a=e._zod.def,{minimum:o,maximum:s}=tm(e);typeof o==`number`&&(i.minItems=o),typeof s==`number`&&(i.maxItems=s),i.type=`array`,i.items=jp(a.element,t,{...r,path:[...r.path,`items`]})};function pm(e){let t=e._zod.def;return t.type===`pipe`&&t.in._zod.traits.has(`$ZodTransform`)?pm(t.out):t.type===`catch`?pm(t.innerType):e._zod.optin}var mm=(e,t,n,r)=>{let i=n,a=e._zod.def,o=a.shape;if(Object.getOwnPropertySymbols(o).length&&Ap(e,t,i,r,`Symbol keys cannot be represented in JSON Schema`))return;i.type=`object`,i.properties={};for(let e in o)ac(i.properties,e,jp(o[e],t,{...r,path:[...r.path,`properties`,e]}));let s=new Set(Object.keys(o)),c=new Set([...s].filter(e=>{let n=a.shape[e];return t.io===`input`?pm(n)===void 0:n._zod.optout===void 0}));c.size>0&&(i.required=Array.from(c)),a.catchall?._zod.def.type===`never`?i.additionalProperties=!1:a.catchall?a.catchall&&(i.additionalProperties=jp(a.catchall,t,{...r,path:[...r.path,`additionalProperties`]})):t.io===`output`&&(i.additionalProperties=!1)},hm=(e,t,n,r)=>{let i=e._zod.def,a=i.inclusive===!1,o=i.options.map((e,n)=>jp(e,t,{...r,path:[...r.path,a?`oneOf`:`anyOf`,n]}));a?n.oneOf=o:n.anyOf=o},gm=(e,t,n,r)=>{let i=e._zod.def,a=jp(i.left,t,{...r,path:[...r.path,`allOf`,0]}),o=jp(i.right,t,{...r,path:[...r.path,`allOf`,1]}),s=e=>`allOf`in e&&Object.keys(e).length===1,c=[...s(a)?a.allOf:[a],...s(o)?o.allOf:[o]];n.allOf=c,t.intersections.push(c)};function _m(e,t,n){if(t.$ref){if(n.has(t))return t;n.add(t);let r=e.get(t)?.def;if(!r)return t;let i=_m(e,r,n);return i===r?t:i}for(let r of[`anyOf`,`oneOf`]){let i=t[r];if(!Array.isArray(i))continue;let a=i.map(t=>_m(e,t,n));a.some((e,t)=>e!==i[t])&&(t={...t,[r]:a})}let r=Array.isArray(t.type)?t.type:[t.type],i=!r.includes(`string`)&&r.some(e=>e===`number`||e===`integer`),a=t.enum??(t.const===void 0?void 0:[t.const]);if(!i&&!a?.some(e=>typeof e==`number`))return t;let{minimum:o,maximum:s,exclusiveMinimum:c,exclusiveMaximum:l,multipleOf:u,format:d,id:f,...p}=t;return p.enum?p.enum=p.enum.map(e=>typeof e==`number`?String(e):e):typeof p.const==`number`&&(p.const=String(p.const)),i?(p.type=`string`,a||(p.pattern=(r.includes(`number`)?gu:hu).source),p):p}var vm=new WeakMap;function ym(e){let t=new Map;for(let n of e.seen.values())n.def&&!t.has(n.schema)&&t.set(n.schema,n);let n=new Map;for(let r of vm.get(e)??[]){let i=e.seen.get(r),a=(i?.def??i?.schema)?.propertyNames;if(!a||a===!0||n.has(a))continue;let o=_m(t,a,new Set);o!==a&&n.set(a,o)}if(n.size)for(let t of e.seen.values())for(let e of[t.schema,t.def]){let t=e&&n.get(e.propertyNames);t&&(e.propertyNames=t)}}var bm=(e,t,n,r)=>{let i=n,a=e._zod.def;i.type=`object`;let o=a.keyType,s=tm(o).patterns;if(a.mode===`loose`&&s&&s.size>0){let e=jp(a.valueType,t,{...r,path:[...r.path,`patternProperties`,`*`]});i.patternProperties={};for(let t of s)ac(i.patternProperties,im(t).source,e)}else{if(t.target===`draft-07`||t.target===`draft-2020-12`){i.propertyNames=jp(a.keyType,t,{...r,path:[...r.path,`propertyNames`]});let n=vm.get(t);n||(n=[],vm.set(t,n),t.deferred.push(()=>ym(t))),n.push(e)}i.additionalProperties=jp(a.valueType,t,{...r,path:[...r.path,`additionalProperties`]})}let c=o._zod.values,l=t.io===`input`&&pm(a.valueType)!==void 0;if(c&&!a.partial&&!l){let e=[...c].filter(e=>typeof e==`string`||typeof e==`number`);e.length>0&&(i.required=e.map(String))}},xm=(e,t,n,r)=>{let i=e._zod.def,a=jp(i.innerType,t,r),o=t.seen.get(e);t.target===`openapi-3.0`?(o.ref=i.innerType,n.nullable=!0):n.anyOf=[a,{type:`null`}]},Sm=(e,t,n,r)=>{let i=e._zod.def;jp(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},Cm=Symbol();function wm(e,t,n,r,i){let a=!1,o=JSON.stringify(e,(e,t)=>typeof t==`bigint`?(a=!0,null):t);return a?(Ap(t,n,r,i,`BigInt defaults cannot be represented in JSON Schema`),Cm):JSON.parse(o)}var Tm=(e,t,n,r)=>{let i=e._zod.def;jp(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType;let o=wm(i.defaultValue,e,t,n,r);o!==Cm&&(n.default=o)},Em=(e,t,n,r)=>{let i=e._zod.def;jp(i.innerType,t,r);let a=t.seen.get(e);if(a.ref=i.innerType,t.io!==`input`)return;let o=wm(i.defaultValue,e,t,n,r);o!==Cm&&(n._prefault=o)},Dm=(e,t,n,r)=>{let i=e._zod.def;jp(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType;let o;try{o=i.catchValue(void 0)}catch{Ap(e,t,n,r,`Dynamic catch values are not supported in JSON Schema`);return}n.default=o},Om=(e,t,n,r)=>{let i=e._zod.def,a=i.in._zod.traits.has(`$ZodTransform`),o=t.io===`input`?a?i.out:i.in:i.out;jp(o,t,r);let s=t.seen.get(e);s.ref=o},km=(e,t,n,r)=>{let i=e._zod.def;jp(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.readOnly=!0},Am=(e,t,n,r)=>{let i=e._zod.def;jp(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},jm=new WeakSet([Object.prototype,Error.prototype]);function Mm(e,t,n){Object.defineProperty(e,t,{configurable:!0,enumerable:!1,get(){let e=n(this);return Object.defineProperty(this,t,{value:e,configurable:!0,writable:!0}),e},set(e){Object.defineProperty(this,t,{value:e,configurable:!0,writable:!0})}})}var Nm=V(`ZodError`,(e,t)=>{yl.init(e,t),e.name=`ZodError`;let n=Object.getPrototypeOf(e);jm.has(n)||(jm.add(n),Mm(n,`format`,e=>t=>Sl(e,t)),Mm(n,`flatten`,e=>t=>xl(e,t)),Mm(n,`addIssue`,e=>t=>{e.issues.push(t),e.message=JSON.stringify(e.issues,$s,2)}),Mm(n,`addIssues`,e=>t=>{e.issues.push(...t),e.message=JSON.stringify(e.issues,$s,2)}),Object.defineProperty(n,"isEmpty",{configurable:!0,enumerable:!1,get(){return this.issues.length===0}}))},void 0,{Parent:Error}),Pm=wl(Nm),Fm=Tl(Nm),Im=El(Nm),Lm=Ol(Nm),Rm=Pl(Nm),zm=Fl(Nm),Bm=Il(Nm),Vm=Ll(Nm),Hm=Rl(Nm),Um=zl(Nm),Wm=Bl(Nm),Gm=Vl(Nm);function Km(){dl.localeError||fl(Cf())}function qm(){dl.memoizer||fl({memoizer:bf()})}var Jm=V(`ZodType`,(e,t)=>(Km(),U.init(e,t),e.def=t,e.type=t.type,e),{check(...e){let t=this.def;return this.clone(fc(t,{checks:[...t.checks??[],...e.map(e=>typeof e==`function`?{_zod:{check:e,def:{check:`custom`},onattach:[]}}:e)]}),{parent:!0})},with(...e){return this.check(...e)},clone(e,t){return Sc(this,e,t)},brand(){return this},register(e,t){return e.add(this,t),this},refine(e,t){return this.check(dg(e,t))},superRefine(e,t){return this.check(fg(e,t))},overwrite(e){return this.check(vp(e))},optional(){return qh(this)},exactOptional(){return Yh(this)},nullable(){return Zh(this)},nullish(){return qh(Zh(this))},nonoptional(e){return rg(this,e)},array(){return Nh(this)},or(e){return Lh([this,e])},and(e){return zh(this,e)},transform(e){return sg(this,Gh(e))},default(e){return $h(this,e)},prefault(e){return tg(this,e)},catch(e){return ag(this,e)},pipe(e){return sg(this,e)},readonly(){return lg(this)},describe(e){let t=this.clone();return Df.add(t,{description:e}),t},meta(...e){if(e.length===0)return Df.get(this);let t=this.clone();return Df.add(t,e[0]),t},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(e,...t){return t.length===0?e(this):e(this,...t)},get"~standard"(){return Yc(this,`~standard`,{...Hu(this),jsonSchema:{input:Up(this,`input`),output:Up(this,`output`)}})},set"~standard"(e){Jc(this,`~standard`,e)},parse:function e(t,n){return Pm(this,t,n,{callee:e})},parseAsync:async function e(t,n){return await Fm(this,t,n,{callee:e})},safeParse(e,t){return Im(this,e,t)},async safeParseAsync(e,t){return Lm(this,e,t)},get spa(){return this?.safeParseAsync},set spa(e){Jc(this,`spa`,e)},validate(e,t){return jl(this,e,t)},validateAsync(e,t){return Nl(this,e,t)},encode:function e(t,n){return Rm(this,t,n,{callee:e})},decode:function e(t,n){return zm(this,t,n,{callee:e})},encodeAsync:async function e(t,n){return await Bm(this,t,n,{callee:e})},decodeAsync:async function e(t,n){return await Vm(this,t,n,{callee:e})},safeEncode(e,t){return Hm(this,e,t)},safeDecode(e,t){return Um(this,e,t)},async safeEncodeAsync(e,t){return Wm(this,e,t)},async safeDecodeAsync(e,t){return Gm(this,e,t)},toJSONSchema(e){return Hp(this,{})(e)},get description(){return Df.get(this)?.description},get _def(){return this._zod.def}}),Ym=V(`_ZodString`,(e,t)=>{Uu.init(e,t),Jm.init(e,t),e._zod.processJSONSchema=(t,n,r)=>am(e,t,n,r)},Xc({format:e=>tm(e).format??null,minLength:e=>tm(e).minimum??null,maxLength:e=>tm(e).maximum??null},{regex(...e){return this.check(fp(...e))},includes(...e){return this.check(hp(...e))},startsWith(...e){return this.check(gp(...e))},endsWith(...e){return this.check(_p(...e))},min(...e){return this.check(up(...e))},max(...e){return this.check(lp(...e))},length(...e){return this.check(dp(...e))},nonempty(...e){return this.check(up(1,...e))},lowercase(e){return this.check(pp(e))},uppercase(e){return this.check(mp(e))},trim(){return this.check(bp())},normalize(...e){return this.check(yp(...e))},toLowerCase(){return this.check(xp())},toUpperCase(){return this.check(Sp())},slugify(){return this.check(Cp())}})),Xm=V(`ZodString`,(e,t)=>{Uu.init(e,t),Ym.init(e,t)},{email(e){return this.check(kf(rh,e))},url(e){return this.check(Ff(oh,e))},jwt(e){return this.check(Yf(xh,e))},emoji(e){return this.check(If(sh,e))},guid(e){return this.check(Af(ih,e))},uuid(e){return this.check(jf(ah,e))},uuidv4(e){return this.check(Mf(ah,e))},uuidv6(e){return this.check(Nf(ah,e))},uuidv7(e){return this.check(Pf(ah,e))},nanoid(e){return this.check(Lf(ch,e))},cuid(e){return this.check(Rf(lh,e))},cuid2(e){return this.check(zf(uh,e))},ulid(e){return this.check(Bf(dh,e))},base64(e){return this.check(Kf(vh,e))},base64url(e){return this.check(qf(yh,e))},xid(e){return this.check(Vf(fh,e))},ksuid(e){return this.check(Hf(ph,e))},ipv4(e){return this.check(Z(mh,e))},ipv6(e){return this.check(Uf(hh,e))},cidrv4(e){return this.check(Wf(gh,e))},cidrv6(e){return this.check(Gf(_h,e))},e164(e){return this.check(Jf(bh,e))},datetime(e){return this.check(Xf($m,e))},date(e){return this.check(Zf(eh,e))},time(e){return this.check(Qf(th,e))},duration(e){return this.check($f(nh,e))}});function Zm(e){return Of(Xm,e)}var Qm=V(`ZodStringFormat`,(e,t)=>{W.init(e,t),Ym.init(e,t)}),$m=V(`ZodISODateTime`,(e,t)=>{td.init(e,t),Qm.init(e,t)}),eh=V(`ZodISODate`,(e,t)=>{nd.init(e,t),Qm.init(e,t)}),th=V(`ZodISOTime`,(e,t)=>{rd.init(e,t),Qm.init(e,t)}),nh=V(`ZodISODuration`,(e,t)=>{id.init(e,t),Qm.init(e,t)}),rh=V(`ZodEmail`,(e,t)=>{Ku.init(e,t),Qm.init(e,t)}),ih=V(`ZodGUID`,(e,t)=>{Wu.init(e,t),Qm.init(e,t)}),ah=V(`ZodUUID`,(e,t)=>{Gu.init(e,t),Qm.init(e,t)}),oh=V(`ZodURL`,(e,t)=>{Qu.init(e,t),Qm.init(e,t)}),sh=V(`ZodEmoji`,(e,t)=>{$u.init(e,t),Qm.init(e,t)}),ch=V(`ZodNanoID`,(e,t)=>{ed.init(e,t),Qm.init(e,t)}),lh=V(`ZodCUID`,(e,t)=>{G.init(e,t),Qm.init(e,t)}),uh=V(`ZodCUID2`,(e,t)=>{K.init(e,t),Qm.init(e,t)}),dh=V(`ZodULID`,(e,t)=>{q.init(e,t),Qm.init(e,t)}),fh=V(`ZodXID`,(e,t)=>{J.init(e,t),Qm.init(e,t)}),ph=V(`ZodKSUID`,(e,t)=>{Y.init(e,t),Qm.init(e,t)}),mh=V(`ZodIPv4`,(e,t)=>{ad.init(e,t),Qm.init(e,t)}),hh=V(`ZodIPv6`,(e,t)=>{cd.init(e,t),Qm.init(e,t)}),gh=V(`ZodCIDRv4`,(e,t)=>{ld.init(e,t),Qm.init(e,t)}),_h=V(`ZodCIDRv6`,(e,t)=>{dd.init(e,t),Qm.init(e,t)}),vh=V(`ZodBase64`,(e,t)=>{md.init(e,t),Qm.init(e,t)}),yh=V(`ZodBase64URL`,(e,t)=>{_d.init(e,t),Qm.init(e,t)}),bh=V(`ZodE164`,(e,t)=>{vd.init(e,t),Qm.init(e,t)}),xh=V(`ZodJWT`,(e,t)=>{bd.init(e,t),Qm.init(e,t)}),Sh=V(`ZodNumber`,(e,t)=>{xd.init(e,t),Jm.init(e,t),e._zod.processJSONSchema=(t,n,r)=>om(e,t,n,r),e.isFinite=!0},Xc({minValue:e=>{let{minimum:t,exclusiveMinimum:n}=tm(e);return Math.max(t??-1/0,n??-1/0)},maxValue:e=>{let{maximum:t,exclusiveMaximum:n}=tm(e);return Math.min(t??1/0,n??1/0)},isInt:e=>{let{isInt:t,multipleOf:n}=tm(e);return!!t||!!n?.some(Number.isSafeInteger)},format:e=>tm(e).format??null},{gt(e,t){return this.check(op(e,t))},gte(e,t){return this.check(sp(e,t))},min(e,t){return this.check(sp(e,t))},lt(e,t){return this.check(ip(e,t))},lte(e,t){return this.check(ap(e,t))},max(e,t){return this.check(ap(e,t))},int(e){return this.check(Th(e))},safe(e){return this.check(Th(e))},positive(e){return this.check(op(0,e))},nonnegative(e){return this.check(sp(0,e))},negative(e){return this.check(ip(0,e))},nonpositive(e){return this.check(ap(0,e))},multipleOf(e,t){return this.check(cp(e,t))},step(e,t){return this.check(cp(e,t))},finite(){return this}}));function Ch(e){return ep(Sh,e)}var wh=V(`ZodNumberFormat`,(e,t)=>{Sd.init(e,t),Sh.init(e,t)});function Th(e){return tp(wh,e)}var Eh=V(`ZodBoolean`,(e,t)=>{Cd.init(e,t),Jm.init(e,t),e._zod.processJSONSchema=(t,n,r)=>sm(e,t,n,r)});function Dh(e){return Q(Eh,e)}var Oh=V(`ZodUnknown`,(e,t)=>{wd.init(e,t),Jm.init(e,t),e._zod.processJSONSchema=(e,t,n)=>void 0});function kh(){return np(Oh)}var Ah=V(`ZodNever`,(e,t)=>{Td.init(e,t),Jm.init(e,t),e._zod.processJSONSchema=(t,n,r)=>cm(e,t,n,r)});function jh(e){return rp(Ah,e)}var Mh=V(`ZodArray`,(e,t)=>{qm(),Dd.init(e,t),Jm.init(e,t),e._zod.processJSONSchema=(t,n,r)=>fm(e,t,n,r),e.element=t.element},{min(e,t){return this.check(up(e,t))},nonempty(e){return this.check(up(1,e))},max(e,t){return this.check(lp(e,t))},length(e,t){return this.check(dp(e,t))},unwrap(){return this.element}});function Nh(e,t){return wp(Mh,e,t)}var Ph=V(`ZodObject`,(e,t)=>{qm(),Nd.init(e,t),Jm.init(e,t),e._zod.processJSONSchema=(t,n,r)=>mm(e,t,n,r),nl(e,`shape`,e=>e._zod.def.shape,!1)},{keyof(){return Uh(Object.keys(this._zod.def.shape))},catchall(e){return this.clone(fc(this._zod.def,{catchall:e}))},passthrough(){return this.clone(fc(this._zod.def,{catchall:kh()}))},loose(){return this.clone(fc(this._zod.def,{catchall:kh()}))},strict(){return this.clone(fc(this._zod.def,{catchall:jh()}))},strip(){return this.clone(fc(this._zod.def,{catchall:void 0}))},extend(e){return Ac(this,e)},safeExtend(e){return Mc(this,e)},merge(e){return Nc(this,e)},pick(e){return Dc(this,e)},omit(e){return kc(this,e)},partial(...e){return Pc(Kh,this,e[0])},exactPartial(...e){return Pc(Jh,this,e[0],`exactPartial`)},required(...e){return Fc(ng,this,e[0])}});function Fh(e,t){return new Ph({type:`object`,shape:e??{},...z(t)})}var Ih=V(`ZodUnion`,(e,t)=>{Fd.init(e,t),Jm.init(e,t),e._zod.processJSONSchema=(t,n,r)=>hm(e,t,n,r),e.options=t.options});function Lh(e,t){return new Ih({type:`union`,options:e,...z(t)})}var Rh=V(`ZodIntersection`,(e,t)=>{Id.init(e,t),Jm.init(e,t),e._zod.processJSONSchema=(t,n,r)=>gm(e,t,n,r)});function zh(e,t){return new Rh({type:`intersection`,left:e,right:t})}var Bh=V(`ZodRecord`,(e,t)=>{qm(),zd.init(e,t),Jm.init(e,t),e._zod.processJSONSchema=(t,n,r)=>bm(e,t,n,r),e.keyType=t.keyType,e.valueType=t.valueType});function Vh(e,t,n){return!t||!t._zod?new Bh({type:`record`,keyType:Zm(),valueType:e,...z(t)}):new Bh({type:`record`,keyType:e,valueType:t,...z(n)})}var Hh=V(`ZodEnum`,(e,t)=>{Bd.init(e,t),Jm.init(e,t),e._zod.processJSONSchema=(t,n,r)=>lm(e,t,n,r),e.enum=t.entries,e.options=[...e._zod.values];let n=new Set(Object.keys(t.entries));e.extract=(e,r)=>{let i={};for(let r of e)if(n.has(r))i[r]=t.entries[r];else throw Error(`Key ${r} not found in enum`);return new Hh({...t,checks:[],...z(r),entries:i})},e.exclude=(e,r)=>{let i={...t.entries};for(let t of e)if(n.has(t))delete i[t];else throw Error(`Key ${t} not found in enum`);return new Hh({...t,checks:[],...z(r),entries:i})}});function Uh(e,t){return new Hh({type:`enum`,entries:Array.isArray(e)?Object.fromEntries(e.map(e=>[e,e])):e,...z(t)})}var Wh=V(`ZodTransform`,(e,t)=>{qm(),Vd.init(e,t),Jm.init(e,t),e._zod.processJSONSchema=(t,n,r)=>dm(e,t,n,r),e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new ul(e.constructor.name);n.addIssue=r=>{if(typeof r==`string`)n.issues.push(Kc(r,n.value,t));else{let t=r;t.fatal&&(t.continue=!1),t.code??=`custom`,`input`in t||(t.input=n.value),t.inst??=e,n.issues.push(Kc(t))}};let i=t.transform(n.value,n);return i instanceof Promise?i.then(e=>(n.value=e,n)):(n.value=i,n)}});function Gh(e){return new Wh({type:`transform`,transform:e})}var Kh=V(`ZodOptional`,(e,t)=>{Ud.init(e,t),Jm.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Am(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function qh(e){return new Kh({type:`optional`,innerType:e})}var Jh=V(`ZodExactOptional`,(e,t)=>{Wd.init(e,t),Jm.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Am(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function Yh(e){return new Jh({type:`optional`,innerType:e})}var Xh=V(`ZodNullable`,(e,t)=>{Gd.init(e,t),Jm.init(e,t),e._zod.processJSONSchema=(t,n,r)=>xm(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function Zh(e){return new Xh({type:`nullable`,innerType:e})}var Qh=V(`ZodDefault`,(e,t)=>{Kd.init(e,t),Jm.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Tm(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function $h(e,t){return new Qh({type:`default`,innerType:e,get defaultValue(){return typeof t==`function`?t():yc(t)}})}var eg=V(`ZodPrefault`,(e,t)=>{Jd.init(e,t),Jm.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Em(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function tg(e,t){return new eg({type:`prefault`,innerType:e,get defaultValue(){return typeof t==`function`?t():yc(t)}})}var ng=V(`ZodNonOptional`,(e,t)=>{Yd.init(e,t),Jm.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Sm(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function rg(e,t){return new ng({type:`nonoptional`,innerType:e,...z(t)})}var ig=V(`ZodCatch`,(e,t)=>{Qd.init(e,t),Jm.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Dm(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function ag(e,t){return new ig({type:`catch`,innerType:e,catchValue:typeof t==`function`?t:il(t)})}var og=V(`ZodPipe`,(e,t)=>{$d.init(e,t),Jm.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Om(e,t,n,r),e.in=t.in,e.out=t.out});function sg(e,t){return new og({type:`pipe`,in:e,out:t})}var cg=V(`ZodReadonly`,(e,t)=>{tf.init(e,t),Jm.init(e,t),e._zod.processJSONSchema=(t,n,r)=>km(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function lg(e){return new cg({type:`readonly`,innerType:e})}var ug=V(`ZodCustom`,(e,t)=>{rf.init(e,t),Jm.init(e,t),e._zod.processJSONSchema=(t,n,r)=>um(e,t,n,r)});function dg(e,t={}){return Tp(ug,e,t)}function fg(e,t){return Ep(e,t)}var pg={auto:{id:`locale.language.auto`},en:`English`,cs:`Čeština`,de:`Deutsch`,es:`Español`,fr:`Français`,it:`italiano`,hu:`Magyar`,nl:`Nederlands`,no:`norsk`,pl:`Polski`,pt:`português`,ru:`русский язык`,ro:`Romanian`,fi:`suomi`,sv:`svenska`,uk:`українська мова`,ko:`한국어`,ja:`日本語`,"zh-Hans":`中文(简体)`,"zh-Hant":`中文(繁體)`,ar:`اَلْعَرَبِيَّةُ`},mg={start:`torrents.list.context.start`,stop:`torrents.list.context.stop`,remove:`torrents.list.context.remove`,checkHash:`torrents.list.context.check.hash`,reannounce:`torrents.list.context.reannounce`,setTaxonomy:`torrents.list.context.set.tags`,move:`torrents.list.context.move`,setTrackers:`torrents.list.context.set.trackers`,torrentDetails:`torrents.list.context.details`,downloadContents:`torrents.list.context.download.contents`,downloadMetainfo:`torrents.list.context.download.metainfo`,generateMagnet:`torrents.list.context.generate.magnet`,setInitialSeeding:`torrents.list.context.initial.seeding`,setSequential:`torrents.list.context.sequential`,setPriority:`torrents.list.context.priority`},hg={dateAdded:`torrents.properties.date.added`,dateFinished:`torrents.properties.date.finished`,downRate:`torrents.properties.download.speed`,downTotal:`torrents.properties.download.total`,eta:`torrents.properties.eta`,name:`torrents.properties.name`,peers:`torrents.properties.peers`,percentComplete:`torrents.properties.percentage`,ratio:`torrents.properties.ratio`,seeds:`torrents.properties.seeds`,sizeBytes:`torrents.properties.size`,selectedSizeBytes:`torrents.properties.selected.size`,tags:`torrents.properties.tags`,upRate:`torrents.properties.upload.speed`,upTotal:`torrents.properties.upload.total`,dateCreated:`torrents.properties.date.created`,directory:`torrents.properties.directory`,hash:`torrents.properties.hash`,isPrivate:`torrents.properties.is.private`,message:`torrents.properties.tracker.message`,trackerURIs:`torrents.properties.trackers`,dateActive:`torrents.properties.date.active`},gg=Object.keys(pg),_g=Object.keys(hg),vg=Object.keys(mg),yg=Uh(gg),bg=Uh(_g),xg=Uh(vg);Uh(Object.keys({language:!0,sortTorrents:!0,torrentListColumns:!0,torrentListColumnWidths:!0,torrentContextMenuActions:!0,torrentListViewSize:!0,torrentListShowProgressPercent:!0,speedLimits:!0,mountPoints:!0,deleteTorrentData:!0,startTorrentsOnLoad:!0,torrentDestinations:!0,UITagSelectorMode:!0,UITorrentsAddTab:!0,UIPageTitleSpeedEnabled:!0,UISidebarFilterLocation:!0,UISidebarFilterTracker:!0,UISidebarFilterTag:!0,UITrackerWarningEnabled:!0}));var Sg=Fh({direction:Uh([`desc`,`asc`]),property:bg}).strict().default({direction:`desc`,property:`dateAdded`}),Cg=Nh(Fh({id:bg,visible:Dh()}).strict()).default([{id:`name`,visible:!0},{id:`percentComplete`,visible:!0},{id:`downTotal`,visible:!0},{id:`downRate`,visible:!0},{id:`upTotal`,visible:!0},{id:`upRate`,visible:!0},{id:`eta`,visible:!0},{id:`ratio`,visible:!0},{id:`sizeBytes`,visible:!0},{id:`selectedSizeBytes`,visible:!1},{id:`peers`,visible:!0},{id:`seeds`,visible:!0},{id:`dateActive`,visible:!1},{id:`dateAdded`,visible:!0},{id:`dateCreated`,visible:!1},{id:`dateFinished`,visible:!1},{id:`directory`,visible:!1},{id:`hash`,visible:!1},{id:`isPrivate`,visible:!1},{id:`message`,visible:!1},{id:`trackerURIs`,visible:!1},{id:`tags`,visible:!0}]),wg=Fh(Object.fromEntries(_g.map(e=>[e,Ch().int().nonnegative()]))).strict().default({name:200,percentComplete:100,downTotal:100,downRate:100,upTotal:100,upRate:100,eta:100,ratio:100,sizeBytes:100,selectedSizeBytes:100,peers:100,seeds:100,dateActive:100,dateAdded:100,dateCreated:100,dateFinished:100,directory:100,hash:100,isPrivate:100,message:100,trackerURIs:100,tags:100}),Tg=Nh(Fh({id:xg,visible:Dh()}).strict()).default([{id:`start`,visible:!0},{id:`stop`,visible:!0},{id:`remove`,visible:!0},{id:`checkHash`,visible:!0},{id:`reannounce`,visible:!1},{id:`setTaxonomy`,visible:!0},{id:`move`,visible:!0},{id:`setTrackers`,visible:!1},{id:`torrentDetails`,visible:!0},{id:`downloadContents`,visible:!0},{id:`downloadMetainfo`,visible:!1},{id:`generateMagnet`,visible:!1},{id:`setInitialSeeding`,visible:!1},{id:`setSequential`,visible:!1},{id:`setPriority`,visible:!1}]),Eg=Fh({download:Nh(Ch().int().nonnegative()),upload:Nh(Ch().int().nonnegative())}).strict().default({download:[1024,10240,102400,512e3,1048576,2097152,5242880,10485760,0],upload:[1024,10240,102400,512e3,1048576,2097152,5242880,10485760,0]}),Dg=Fh({language:yg.default(`auto`),sortTorrents:Sg,torrentListColumns:Cg,torrentListColumnWidths:wg,torrentContextMenuActions:Tg,torrentListViewSize:Uh([`condensed`,`expanded`]).default(`condensed`),torrentListShowProgressPercent:Dh().default(!1),speedLimits:Eg,mountPoints:Nh(Zm()).default([]),deleteTorrentData:Dh().default(!0),startTorrentsOnLoad:Dh().default(!0),torrentDestinations:Vh(Zm(),Zm()).optional(),UITagSelectorMode:Uh([`single`,`multi`]).optional(),UITorrentsAddTab:Uh([`by-url`,`by-file`,`by-creation`]).optional(),UIPageTitleSpeedEnabled:Dh().default(!0),UISidebarFilterLocation:Dh().default(!0),UISidebarFilterTracker:Dh().default(!0),UISidebarFilterTag:Dh().default(!0),UITrackerWarningEnabled:Dh().default(!0)}).strict().parse({}),Og=new class{fetchStatus={clientSettingsFetched:!1,floodSettingsFetched:!1};clientSettings=null;floodSettings={...Dg};get totalCellWidth(){return this.floodSettings.torrentListColumns.reduce((e,{id:t,visible:n})=>{let r=Number(this.floodSettings.torrentListColumnWidths[t]);return!n||Number.isNaN(r)?e:e+r},0)}constructor(){r(this)}handleClientSettingsFetchSuccess(e){this.fetchStatus.clientSettingsFetched=!0,this.clientSettings=e}handleSettingsFetchSuccess(e){this.fetchStatus.floodSettingsFetched=!0,Object.assign(this.floodSettings,e)}saveFloodSettings(e){Object.assign(this.floodSettings,e)}saveClientSettings(e){this.clientSettings!=null&&Object.assign(this.clientSettings,e)}},kg=new class{selectedTorrents=[];torrents={};constructor(){r(this)}get sortedTorrents(){return Ys(Object.values(this.torrents),Og.floodSettings.sortTorrents)}get filteredTorrents(){let{locationFilter:e,searchFilter:t,statusFilter:n,tagFilter:r,trackerFilter:i}=Ks,a=Object.assign([],this.sortedTorrents);if(e.length&&(a=qs(a,{type:`location`,filter:e})),t!==``){let e=new Set(Xs(a,e=>e.name,t).map(e=>e.hash)),n=t.trim().toLowerCase();a=a.filter(t=>e.has(t.hash)||n!==``&&t.hash.toLowerCase()===n)}return n.length&&(a=qs(a,{type:`status`,filter:n})),r.length&&(a=qs(a,{type:`tag`,filter:r})),i.length&&(a=qs(a,{type:`tracker`,filter:i})),a}setSelectedTorrents({event:e,hash:t}){this.selectedTorrents=Js({event:e,hash:t,selectedTorrents:this.selectedTorrents,torrentList:this.filteredTorrents})}selectAllTorrents(){this.selectedTorrents=this.filteredTorrents.map(e=>e.hash)}handleTorrentListDiffChange(e){Ds(this.torrents,e)}handleTorrentListFullUpdate(e){this.torrents=e}},Ag=[`download`,`upload`],jg=new class{transferRates={download:[0,0],upload:[0,0],timestamps:[Date.now()-5e3,Date.now()]};transferSummary={downRate:0,downTotal:0,upRate:0,upTotal:0};constructor(){r(this)}appendCurrentTransferRateToHistory(){let e=this.transferRates.download.slice(),t=this.transferRates.upload.slice(),n=this.transferRates.timestamps.slice();e.push(this.transferSummary.downRate),t.push(this.transferSummary.upRate),n.push(Date.now()),n.length>30&&(e.shift(),t.shift(),n.shift()),this.transferRates={download:e,upload:t,timestamps:n}}handleFetchTransferHistorySuccess(e){e.timestamps.length>1&&(this.transferRates=e)}handleTransferSummaryFullUpdate(e){this.transferSummary=e,this.appendCurrentTransferRateToHistory()}},Mg=new class{activeContextMenu=null;activeDropdownMenu=null;activeModal=null;isSidebarAlternativeState=!1;dependencies={};globalStyles=[];haveUIDependenciesResolved=!1;styleElement=this.createStyleElement();constructor(){r(this)}addGlobalStyle(e){this.globalStyles.push(e),this.applyStyles()}applyStyles(){let{globalStyles:e,styleElement:t}=this,n=e.join(``);if(t!=null){for(;t.firstChild;)t.removeChild(t.firstChild);t.styleSheet?t.styleSheet.cssText=n:t.appendChild(document.createTextNode(n))}}createStyleElement(){if(this.styleElement==null){let e=document.createElement(`style`);return document.head.appendChild(e),e}return this.styleElement}dismissContextMenu(e){this.activeContextMenu!=null&&this.activeContextMenu.id===e&&(this.activeContextMenu=null)}handleSetTaxonomySuccess(){this.activeModal!=null&&this.activeModal.id===`set-taxonomy`&&this.setActiveModal(null)}removeGlobalStyle(e){this.globalStyles=this.globalStyles.filter(t=>t!==e),this.applyStyles()}registerDependency(e){e.forEach(e=>{let{id:t}=e;this.dependencies[t]||(this.dependencies[t]={...e,satisfied:!1})})}satisfyDependency(e){this.dependencies[e]&&!this.dependencies[e].satisfied&&(this.dependencies[e].satisfied=!0,this.verifyDependencies())}setActiveContextMenu(e){this.activeContextMenu=e}setActiveDropdownMenu(e){this.activeDropdownMenu=e}setActiveModal(e){this.activeModal=e}toggleSidebarAlternativeState(){this.isSidebarAlternativeState=!this.isSidebarAlternativeState}verifyDependencies(){Object.keys(this.dependencies).some(e=>this.dependencies[e].satisfied===!1)||(this.haveUIDependenciesResolved=!0)}},{baseURI:Ng}=n,Pg=null,Fg,Ig={CLIENT_CONNECTIVITY_STATUS_CHANGE:e=>{as.handleConnectivityStatusChange(JSON.parse(e.data))},DISK_USAGE_CHANGE:e=>{os.setDiskUsage(JSON.parse(e.data))},NOTIFICATION_COUNT_CHANGE:e=>{cs.handleNotificationCountChange(JSON.parse(e.data)),Mg.satisfyDependency(`notifications`)},TORRENT_LIST_DIFF_CHANGE:e=>{kg.handleTorrentListDiffChange(JSON.parse(e.data))},TORRENT_LIST_FULL_UPDATE:e=>{kg.handleTorrentListFullUpdate(JSON.parse(e.data)),Mg.satisfyDependency(`torrent-list`)},TAXONOMY_DIFF_CHANGE:e=>{Ks.handleTorrentTaxonomyDiffChange(JSON.parse(e.data))},TAXONOMY_FULL_UPDATE:e=>{Ks.handleTorrentTaxonomyFullUpdate(JSON.parse(e.data)),Mg.satisfyDependency(`torrent-taxonomy`)},TRANSFER_SUMMARY_FULL_UPDATE:e=>{jg.handleTransferSummaryFullUpdate(JSON.parse(e.data)),Mg.satisfyDependency(`transfer-data`)},TRANSFER_HISTORY_FULL_UPDATE:e=>{jg.handleFetchTransferHistorySuccess(JSON.parse(e.data)),Mg.satisfyDependency(`transfer-history`)}},Lg={clearNotifications:()=>(cs.clearAll(),R.delete(`${Ng}api/notifications`).then(()=>{},()=>{})),closeActivityStream(){Pg!=null&&(Pg.close(),Object.entries(Ig).forEach(([e,t])=>{Pg?.removeEventListener(e,t)}),Pg=null)},fetchDirectoryList:e=>R.get(`${Ng}api/directory-list`,{params:{path:e}}).then(e=>e.data),fetchNotifications:e=>R.get(`${Ng}api/notifications`,{params:e}).then(({data:e})=>{cs.handleNotificationsFetchSuccess(e)},()=>{}),restartActivityStream(){this.closeActivityStream(),this.startActivityStream()},startActivityStream(){Pg??(Pg=new EventSource(`${Ng}api/activity-stream`),Object.entries(Ig).forEach(([e,t])=>{Pg?.addEventListener(e,t)}))}},Rg=()=>{Lg.closeActivityStream()};document.addEventListener(`visibilitychange`,()=>{document.hidden?Fg=setTimeout(Rg,3e4):(clearTimeout(Fg),Pg??Lg.startActivityStream())});var zg=function(e){return e[e.USER=5]=`USER`,e[e.ADMINISTRATOR=10]=`ADMINISTRATOR`,e}({}),Bg=new class{isAuthenticating=!1;isAuthenticated=!1;users=[];optimisticUsers=[];currentUser={isAdmin:!1,isInitialUser:!1,username:null};constructor(){r(this)}handleCreateUserSuccess({username:e}){this.optimisticUsers.push({username:e})}handleListUsersSuccess(e){this.optimisticUsers=this.optimisticUsers.filter(t=>!e.some(e=>e.username===t.username)),this.users=e}handleLoginSuccess({username:e,level:t}){this.currentUser.username=e,this.currentUser.isAdmin=t===zg.ADMINISTRATOR,this.currentUser.isInitialUser=!1,this.isAuthenticating=!0,this.isAuthenticated=!0}handleLoginError(){this.isAuthenticated=!1,this.isAuthenticating=!0}handleRegisterSuccess({username:e,level:t}){this.currentUser.username=e,this.currentUser.isAdmin=t===zg.ADMINISTRATOR,this.currentUser.isInitialUser=!1,Lg.restartActivityStream()}handleAuthVerificationSuccess(e){if(e.initialUser===!0)this.currentUser.isInitialUser=!0;else{let{username:t,level:n}=e;this.currentUser={username:t,isAdmin:n===zg.ADMINISTRATOR,isInitialUser:!1}}this.isAuthenticating=!0,this.isAuthenticated=!this.currentUser.isInitialUser}handleAuthVerificationError(){this.isAuthenticated=!1,this.isAuthenticating=!0,this.currentUser.isInitialUser=!1}},{baseURI:Vg}=n,Hg={fetchSettings:async()=>R.get(`${Vg}api/client/settings`).then(({data:e})=>{Og.handleClientSettingsFetchSuccess(e)},()=>{}),saveSettings:async(t,n)=>{if(Object.keys(t).length>0){Og.saveClientSettings(t);let r=await R.patch(`${Vg}api/client/settings`,t).then(()=>!0,()=>!1);n?.alert&&e.add(r?{id:`alert.settings.saved`,type:`success`}:{id:`general.error.unknown`,type:`error`})}},saveSetting:async(e,t)=>Hg.saveSettings({[e]:t}),testConnection:async()=>R.get(`${Vg}api/client/connection-test`).then(()=>{})},{baseURI:Ug}=n,Wg={fetchSettings:async()=>R.get(`${Ug}api/settings`).then(({data:e})=>{Og.handleSettingsFetchSuccess(e)},()=>{}),saveSettings:async(t,n)=>{if(Object.keys(t).length>0){Og.saveFloodSettings(t);let r=await R.patch(`${Ug}api/settings`,t).then(()=>!0,()=>!1);n?.alert&&e.add(r?{id:`alert.settings.saved`,type:`success`}:{id:`general.error.unknown`,type:`error`})}},saveSetting:async(e,t)=>Wg.saveSettings({[e]:t})},{baseURI:Gg}=n,Kg={authenticate:e=>R.post(`${Gg}api/auth/authenticate`,e).then(({data:e})=>{Bg.handleLoginSuccess(e)},e=>{let t;throw t=e.response&&e.response.data.message!=null?e.response.data.message:e.message?e.message:`An unknown error occurred.`,Bg.handleLoginError(),Error(t)}).then(()=>Promise.all([Hg.fetchSettings(),Wg.fetchSettings(),Promise.resolve(Lg.restartActivityStream())])),createUser:e=>R.post(`${Gg}api/auth/register?cookie=false`,e).then(({data:e})=>{Bg.handleCreateUserSuccess(e)}),updateUser:(e,t)=>R.patch(`${Gg}api/auth/users/${encodeURIComponent(e)}`,t).then(e=>e.data),deleteUser:e=>R.delete(`${Gg}api/auth/users/${encodeURIComponent(e)}`).then(()=>{},()=>{}),fetchUsers:()=>R.get(`${Gg}api/auth/users`).then(({data:e})=>{Bg.handleListUsersSuccess(e)}),logout:()=>R.get(`${Gg}api/auth/logout`).then(()=>{},()=>{}),register:e=>R.post(`${Gg}api/auth/register`,e).then(({data:e})=>{Bg.handleRegisterSuccess(e)},e=>{throw e}),verify:()=>R.get(`${Gg}api/auth/verify?${Date.now()}`).then(({data:e})=>(e.configs!=null&&n.handlePreloadConfigs(e.configs),e),e=>{throw e.response?.data?.configs!=null&&n.handlePreloadConfigs(e.response.data.configs),e}).then(e=>(Bg.handleAuthVerificationSuccess(e),Promise.all([Hg.fetchSettings(),Wg.fetchSettings()]).then(()=>e))).catch(e=>{throw Bg.handleAuthVerificationError(),e})},qg=[`Deluge`,`qBittorrent`,`rTorrent`,`Transmission`],$=ce(),Jg=({onSettingsChange:e})=>{let{i18n:t}=w(),[n,r]=(0,D.useState)({client:`Deluge`,type:`rpc`,version:1,host:`127.0.0.1`,port:58846,username:``,password:``}),i=(t,i)=>{let a={...n,[t]:i};!a.host||Number.isNaN(a.port)?e(null):e(a),r(a)};return(0,$.jsx)(x,{children:(0,$.jsxs)(_,{children:[(0,$.jsx)(C,{children:(0,$.jsxs)(x,{children:[(0,$.jsx)(v,{onChange:e=>i(`host`,e.target.value),id:`host`,label:(0,$.jsx)(S,{id:`connection.settings.deluge.host`}),placeholder:t._(`connection.settings.deluge.host.input.placeholder`)}),(0,$.jsx)(v,{onChange:e=>i(`port`,Number(e.target.value)),id:`port`,label:(0,$.jsx)(S,{id:`connection.settings.deluge.port`}),placeholder:t._(`connection.settings.deluge.port.input.placeholder`)})]})}),(0,$.jsx)(C,{children:(0,$.jsxs)(x,{children:[(0,$.jsx)(v,{onChange:e=>i(`username`,e.target.value),id:`deluge-username`,label:(0,$.jsx)(S,{id:`connection.settings.deluge.username`}),placeholder:t._(`connection.settings.deluge.username.input.placeholder`),autoComplete:`off`}),(0,$.jsx)(v,{onChange:e=>i(`password`,e.target.value),id:`deluge-password`,label:(0,$.jsx)(S,{id:`connection.settings.deluge.password`}),placeholder:t._(`connection.settings.deluge.password.input.placeholder`),autoComplete:`off`,type:`password`})]})})]})})},Yg=({onSettingsChange:e})=>{let{i18n:t}=w(),[n,r]=(0,D.useState)({client:`qBittorrent`,type:`web`,version:1,url:``,username:``,password:``}),i=(t,i)=>{let a={...n,[t]:i};a.url==null||a.url===``?e(null):e(a),r(a)};return(0,$.jsx)(x,{children:(0,$.jsxs)(_,{children:[(0,$.jsx)(x,{children:(0,$.jsx)(v,{onChange:e=>i(`url`,e.target.value),id:`url`,label:(0,$.jsx)(S,{id:`connection.settings.qbittorrent.url`}),placeholder:t._(`connection.settings.qbittorrent.url.input.placeholder`)})}),(0,$.jsxs)(x,{children:[(0,$.jsx)(v,{onChange:e=>i(`username`,e.target.value),id:`qbt-username`,label:(0,$.jsx)(S,{id:`connection.settings.qbittorrent.username`}),placeholder:t._(`connection.settings.qbittorrent.username.input.placeholder`),autoComplete:`off`}),(0,$.jsx)(v,{onChange:e=>i(`password`,e.target.value),id:`qbt-password`,label:(0,$.jsx)(S,{id:`connection.settings.qbittorrent.password`}),placeholder:t._(`connection.settings.qbittorrent.password.input.placeholder`),autoComplete:`off`,type:`password`})]})]})})},Xg=({onSettingsChange:e})=>{let{i18n:t}=w(),[n,r]=(0,D.useState)(`socket`),[i,a]=(0,D.useState)(null),o=(t,n)=>{let r=null;(t===`host`||t===`port`)&&(r={client:`rTorrent`,type:`tcp`,version:1,host:i?.host??``,port:i?.port??5e3,[t]:n}),t===`socket`&&(r={client:`rTorrent`,type:`socket`,version:1,socket:n}),e(r),a(r)};return(0,$.jsx)(x,{children:(0,$.jsxs)(_,{children:[(0,$.jsx)(x,{children:(0,$.jsx)(_,{label:t._(`connection.settings.rtorrent.type`),children:(0,$.jsxs)(x,{children:[(0,$.jsx)(ae,{onClick:()=>{r(`socket`)},groupID:`type`,id:`socket`,grow:!1,defaultChecked:n===`socket`,children:(0,$.jsx)(S,{id:`connection.settings.rtorrent.type.socket`})}),(0,$.jsx)(ae,{onClick:()=>{r(`tcp`)},groupID:`type`,id:`tcp`,grow:!1,defaultChecked:n===`tcp`,children:(0,$.jsx)(S,{id:`connection.settings.rtorrent.type.tcp`})})]})})}),n===`tcp`?(0,$.jsxs)(C,{children:[(0,$.jsx)(x,{children:(0,$.jsx)(g,{children:t._(`connection.settings.rtorrent.type.tcp.warning`)})}),(0,$.jsxs)(x,{children:[(0,$.jsx)(v,{onChange:e=>o(`host`,e.target.value),id:`host`,label:(0,$.jsx)(S,{id:`connection.settings.rtorrent.host`}),placeholder:t._(`connection.settings.rtorrent.host.input.placeholder`)}),(0,$.jsx)(v,{onChange:e=>o(`port`,Number(e.target.value)),id:`port`,label:(0,$.jsx)(S,{id:`connection.settings.rtorrent.port`}),placeholder:t._(`connection.settings.rtorrent.port.input.placeholder`)})]})]}):(0,$.jsx)(x,{children:(0,$.jsx)(v,{onChange:e=>o(`socket`,e.target.value),id:`socket`,label:(0,$.jsx)(S,{id:`connection.settings.rtorrent.socket`}),placeholder:t._(`connection.settings.rtorrent.socket.input.placeholder`)})})]})})},Zg=({onSettingsChange:e})=>{let{i18n:t}=w(),[n,r]=(0,D.useState)({client:`Transmission`,type:`rpc`,version:1,url:``,username:``,password:``}),i=(t,i)=>{let a={...n,[t]:i};a.url==null||a.url===``?e(null):e(a),r(a)};return(0,$.jsx)(x,{children:(0,$.jsxs)(_,{children:[(0,$.jsx)(x,{children:(0,$.jsx)(v,{onChange:e=>i(`url`,e.target.value),id:`url`,label:(0,$.jsx)(S,{id:`connection.settings.transmission.url`}),placeholder:t._(`connection.settings.transmission.url.input.placeholder`)})}),(0,$.jsxs)(x,{children:[(0,$.jsx)(v,{onChange:e=>i(`username`,e.target.value),id:`transmission-username`,label:(0,$.jsx)(S,{id:`connection.settings.transmission.username`}),placeholder:t._(`connection.settings.transmission.username.input.placeholder`),autoComplete:`off`}),(0,$.jsx)(v,{onChange:e=>i(`password`,e.target.value),id:`transmission-password`,label:(0,$.jsx)(S,{id:`connection.settings.transmission.password`}),placeholder:t._(`connection.settings.transmission.password.input.placeholder`),autoComplete:`off`,type:`password`})]})]})})},Qg=`rTorrent`,$g=({onSettingsChange:e})=>{let{i18n:t}=w(),[n,r]=(0,D.useState)(Qg);n!==fr(n)&&e(null);let i=null;switch(n){case`Deluge`:i=(0,$.jsx)(Jg,{onSettingsChange:e});break;case`qBittorrent`:i=(0,$.jsx)(Yg,{onSettingsChange:e});break;case`rTorrent`:i=(0,$.jsx)(Xg,{onSettingsChange:e});break;case`Transmission`:i=(0,$.jsx)(Zg,{onSettingsChange:e})}return(0,$.jsxs)(`div`,{children:[(0,$.jsx)(x,{children:(0,$.jsx)(ne,{id:`client`,label:t._(`connection.settings.client.select`),onSelect:e=>{r(e)},defaultID:Qg,children:qg.map(e=>(0,$.jsx)(u,{id:e,children:(0,$.jsx)(S,{id:`connection.settings.${e.toLowerCase()}`})},e))})}),i]})},e_=s(()=>{let[e,t]=(0,D.useState)(null),[n,r]=(0,D.useState)(!1),[i,a]=(0,D.useState)(`retry`),o=(0,D.useRef)(null);return(0,$.jsx)(h,{spacing:`large`,children:(0,$.jsxs)(l,{onSubmit:async()=>{if(r(!0),i===`config`){let e=Bg.currentUser.username,n=o.current;if(e==null||n==null){t(`connection.settings.error.empty`),r(!1);return}try{await Kg.updateUser(e,{client:n}).then(()=>{}).catch(e=>{throw t(`general.error.unknown`),e})}catch{r(!1);return}}await Hg.testConnection().then(()=>{Lg.restartActivityStream()}).catch(()=>{t(`connection-interruption.verification-error`)}),r(!1)},children:[(0,$.jsx)(ee,{children:(0,$.jsx)(`h1`,{children:(0,$.jsx)(S,{id:`connection-interruption.heading`})})}),(0,$.jsxs)(p,{children:[e&&(0,$.jsx)(x,{children:(0,$.jsx)(g,{children:(0,$.jsx)(S,{id:e})})}),Bg.currentUser.isAdmin?(0,$.jsx)(x,{children:(0,$.jsxs)(ne,{id:`action`,onSelect:a,defaultID:`retry`,children:[(0,$.jsx)(u,{id:`retry`,children:(0,$.jsx)(S,{id:`connection-interruption.action.selection.retry`})},`retry`),(0,$.jsx)(u,{id:`config`,children:(0,$.jsx)(S,{id:`connection-interruption.action.selection.config`})},`config`)]})}):(0,$.jsx)(`p`,{className:`copy--lead`,children:(0,$.jsx)(S,{id:`connection-interruption.not.admin`})}),i===`config`&&(0,$.jsx)($g,{onSettingsChange:e=>{o.current=e}})]}),(0,$.jsx)(se,{hasBorder:!0,children:(0,$.jsxs)(x,{justify:`end`,children:[i===`retry`&&(0,$.jsx)(f,{type:`submit`,isLoading:n,children:(0,$.jsx)(S,{id:`button.retry`})}),i===`config`&&(0,$.jsx)(f,{type:`submit`,isLoading:n,children:(0,$.jsx)(S,{id:`button.save`})})]})})]})})}),t_={B:`unit.size.byte`,kB:`unit.size.kilobyte`,MB:`unit.size.megabyte`,GB:`unit.size.gigabyte`,TB:`unit.size.terabyte`};function n_(e,t=2){let n=1024,r=n*1024,i=r*1024,a=i*1024,o=0,s;return e>=a?(o=e/a,s=`TB`):e>=i?(o=e/i,s=`GB`):e>=r?(o=e/r,s=`MB`):e>=n?(o=e/n,s=`kB`):(o=e,s=`B`),o=Number(o),o&&o>=100?o=Math.floor(o):o&&o>10?o=Number(o.toFixed(t-1)):o&&=Number(o.toFixed(t)),{value:o,unit:s}}function r_(e){return t_[e]||t_.B}function i_(e,t,n){return new Intl.NumberFormat(e,n).format(t)}function a_(e,t,n){return new Intl.DateTimeFormat(e,n).format(t)}var o_=s(()=>{let{UIPageTitleSpeedEnabled:e}=Og.floodSettings,{transferSummary:t}=jg,{i18n:n}=w(),r=`Flood`;if(e&&t!=null&&Object.keys(t).length>0){let e=n_(t.downRate),i=n_(t.upRate),a=i_(n.locale,e.value),o=i_(n.locale,i.value);r=`↓ ${a} ${n._(`unit.speed`,{baseUnit:n._(r_(e.unit))})} ↑ ${o} ${n._(`unit.speed`,{baseUnit:n._(r_(i.unit))})} - Flood`}return document.title=r,null}),s_=({inverse:e=!0})=>{let t=(0,is.default)(`loading-indicator`,{"is-inverse":e});return(0,$.jsxs)(`div`,{className:t,children:[(0,$.jsx)(`div`,{className:`loading-indicator__bar loading-indicator__bar--1`}),(0,$.jsx)(`div`,{className:`loading-indicator__bar loading-indicator__bar--2`}),(0,$.jsx)(`div`,{className:`loading-indicator__bar loading-indicator__bar--3`})]},`loading-indicator`)},c_={satisfied:(0,$.jsx)(b,{})},l_=({dependencies:e})=>{let{i18n:t}=w();return(0,$.jsx)(`ul`,{className:`dependency-list`,children:Object.keys(e).map(n=>{let{message:r,satisfied:i}=e[n],a=c_.satisfied,o=(0,is.default)(`dependency-list__dependency`,{"dependency-list__dependency--satisfied":i});return(0,$.jsxs)(`li`,{className:o,children:[i==null?null:(0,$.jsx)(`span`,{className:`dependency-list__dependency__icon`,children:a}),(0,$.jsx)(`span`,{className:`dependency-list__dependency__message`,children:typeof r==`string`?r:t._(r)})]},n)})})},u_=({className:e,dependencies:t})=>(0,$.jsxs)(`div`,{className:(0,is.default)(`application__loading-overlay`,e),children:[(0,$.jsx)(s_,{inverse:!0}),t==null?null:(0,$.jsx)(l_,{dependencies:t})]}),d_=m(),f_=e=>{let t=Math.max(document.documentElement.clientHeight||0,window.innerHeight||0),n=Math.max(document.documentElement.clientWidth||0,window.innerWidth||0),r=e.getBoundingClientRect();return{bottom:t-r.bottom,left:r.left,right:n-r.right,top:r.top,boundingRect:r}},p_=(e,t,n,r)=>{switch(e){case`left`:if(t.left<n)return`right`;break;case`right`:if(t.right<n)return`left`;break;case`top`:if(t.top<r)return`bottom`;break;case`bottom`:if(t.bottom<r&&t.top>t.bottom)return`top`}return e},m_=(e,t,n,r,i)=>{if(e===`start`&&n<r)return`end`;if(e===`end`&&t<r)return`start`;if(e===`center`){let e=(r-i)/2;if(t<e)return`start`;if(n<e)return`end`}return e},h_=(e,t,n,r,i)=>e?m_(t,n.left,n.right,r,n.boundingRect.width):m_(t,n.top,n.bottom,i,n.boundingRect.height),g_=7,__=(0,D.forwardRef)(({children:e,align:t=`center`,anchor:n=`center`,position:r=`top`,offset:a=0,width:o,maxWidth:s,interactive:c=!1,suppress:l=!1,stayOpen:u=!1,wrapText:d=!1,className:f=`tooltip`,contentClassName:p=`tooltip__content`,wrapperClassName:m=`tooltip__wrapper`,styles:h,content:g,onOpen:_,onClose:v,onClick:y,onMouseLeave:b},ee)=>{let[x,S]=(0,D.useState)({isOpen:!1,wasTriggeredClose:!1,anchor:void 0,position:void 0,coordinates:void 0}),te=(0,D.useRef)(window),ne=(0,D.useRef)(null),C=(0,D.useRef)(null),re=(0,D.useRef)(null),w=(0,D.useRef)(x),ie=(0,D.useRef)({stayOpen:u,onClose:v});(0,D.useEffect)(()=>{w.current=x},[x]),(0,D.useEffect)(()=>{ie.current={stayOpen:u,onClose:v}},[u,v]);let ae=(0,D.useCallback)((e,n,r,i)=>{let o=null;switch(e){case`left`:return{top:n.boundingRect.top+n.boundingRect.height/2,left:n.boundingRect.left-r+g_+a};case`right`:return{top:n.boundingRect.top+n.boundingRect.height/2,left:n.boundingRect.right+a};case`top`:o=n.boundingRect.top-i+g_+a;break;case`bottom`:o=n.boundingRect.bottom+a}switch(t){case`start`:return{top:o,left:n.boundingRect.left};case`center`:return{top:o,left:n.boundingRect.left+n.boundingRect.width/2};case`end`:return{top:o,left:n.boundingRect.left+n.boundingRect.width-r}}return{top:0,left:0}},[t,a]),oe=(0,D.useCallback)((e,t)=>{if(ne.current==null||C.current==null||e==null)return{anchor:e,position:t,coordinates:{left:0,top:0}};let n=f_(ne.current),r=C.current.getBoundingClientRect(),i=r.height+g_,a=r.width+g_,o=p_(t,n,a,i);return{anchor:h_(o!==`left`&&o!==`right`,e,n,a,i),position:o,coordinates:ae(o,n,a,i)}},[ae]),T=(0,D.useCallback)(()=>{let e=w.current,t=ie.current;e.isOpen&&(S(e=>({...e,isOpen:!1})),re.current&&te.current&&(te.current.removeEventListener(`scroll`,re.current),re.current=null),t.onClose&&t.onClose())},[]),se=(0,D.useCallback)(e=>{(!ie.current.stayOpen||e)&&T()},[T]),ce=(0,D.useCallback)(()=>{if(c&&!w.current.wasTriggeredClose&&(S(e=>({...e,isOpen:!0})),!re.current&&te.current)){let e=()=>T();re.current=e,te.current.addEventListener(`scroll`,e)}},[c,T]),le=(0,D.useCallback)(()=>{se()},[se]),ue=(0,D.useCallback)(e=>{if(l&&!e||n==null||r==null)return;let{anchor:t,position:i,coordinates:a}=oe(n,r);if(S({anchor:t,isOpen:!0,position:i,coordinates:a,wasTriggeredClose:!1}),!re.current&&te.current){let e=()=>T();re.current=e,te.current.addEventListener(`scroll`,e)}_&&_()},[l,n,r,oe,T,_]),de=(0,D.useCallback)(()=>{se(),b&&b()},[se,b]),fe=(0,D.useCallback)(()=>w.current.isOpen,[]);(0,D.useImperativeHandle)(ee,()=>({dismissTooltip:se,isOpen:fe}),[se,fe]),(0,D.useEffect)(()=>{let e=te.current;return()=>{re.current&&e&&(e.removeEventListener(`scroll`,re.current),re.current=null)}},[]);let pe=x.anchor||n,me=x.position||r,E=(0,is.default)(f,`tooltip--anchor--${pe}`,`tooltip--position--${me}`,`tooltip--align--${t}`,{"is-interactive":c,"is-open":x.isOpen,"tooltip--no-wrap":!d}),he={};x.coordinates&&(he={left:x.coordinates.left,top:x.coordinates.top}),o&&(he.width=o),s&&(he.maxWidth=s);let ge=document.getElementById(`app`)||document.getElementById(`storybook-root`)||document.body;return ge==null?null:(0,$.jsxs)(`div`,{"aria-label":typeof g==`string`?g:void 0,className:(0,is.default)(m,i({_focus:{outline:`none`,WebkitTapHighlightColor:`transparent`}}),Array.isArray(h)?h:h?[h]:void 0),tabIndex:0,role:`button`,"data-testid":`tooltip-trigger`,onClick:y,onKeyDown:e=>{(e.key===` `||e.key===`Enter`)&&(e.preventDefault(),y?.())},onFocus:()=>ue(),onBlur:()=>{c||de()},onMouseEnter:()=>ue(),onMouseLeave:()=>de(),ref:ne,children:[e,(0,d_.createPortal)((0,$.jsx)(`div`,{className:E,ref:C,style:he,role:`tooltip`,"data-testid":`tooltip-content`,"data-visible":x.isOpen?`true`:`false`,"data-position":x.position||r,"data-align":t,"data-wrap":d===!1?`false`:`true`,onMouseEnter:ce,onMouseLeave:le,children:(0,$.jsx)(`div`,{className:p,children:g})}),ge)]})});__.displayName=`Tooltip`;var v_=({className:e})=>{let{i18n:t}=w();return n.authMethod===`none`?null:(0,$.jsx)(__,{content:t._(`sidebar.button.log.out`),onClick:()=>Kg.logout().then(()=>{window.location.reload()}),position:`bottom`,wrapperClassName:(0,is.default)(`sidebar__action`,`sidebar__action--last`,`sidebar__icon-button`,`sidebar__icon-button--interactive`,`tooltip__wrapper`,e),children:(0,$.jsx)(c,{})})},y_=s(({children:e,className:r})=>{let a=It(),[o]=$n();lr(()=>{Kg.verify().then(({initialUser:e})=>{a(e?`/register`:`/overview`,{replace:!0})},()=>{a(`/login`,{replace:!0})})}),o.has(`action`)&&o.get(`action`)===`add-urls`&&o.has(`url`)&&Mg.setActiveModal({id:`add-torrents`,tab:`by-url`,urls:[{id:0,value:o.get(`url`)}]});let s=!Bg.isAuthenticating||Bg.isAuthenticated&&!Mg.haveUIDependenciesResolved,c=Bg.isAuthenticated&&!as.isConnected&&n.authMethod!==`none`;return(0,$.jsxs)(`div`,{className:(0,is.default)(`application`,r),children:[(0,$.jsx)(o_,{}),(0,$.jsx)(t,{mountOnEnter:!0,unmountOnExit:!0,in:s,timeout:{enter:1e3,exit:1e3},classNamePrefix:`application__loading-overlay`,children:e=>(0,$.jsx)(u_,{className:e,dependencies:Mg.dependencies})}),(0,$.jsx)(t,{mountOnEnter:!0,unmountOnExit:!0,in:c,timeout:{enter:1e3,exit:1e3},classNamePrefix:`application__loading-overlay`,children:e=>(0,$.jsx)(`div`,{className:(0,is.default)(`application__loading-overlay`,e),children:(0,$.jsxs)(`div`,{className:`application__entry-barrier`,children:[(0,$.jsx)(v_,{className:i({position:`absolute`,left:`5px`,top:`5px`})}),(0,$.jsx)(e_,{})]})})}),e]})}),b_=(e,t,n)=>{let r=t.lastIndexOf(`?`),i=e[r===-1||r<t.lastIndexOf(`/`)?t:t.slice(0,r)];return i?typeof i==`function`?i():Promise.resolve(i):new Promise((e,r)=>{(typeof queueMicrotask==`function`?queueMicrotask:setTimeout)(r.bind(null,Error(`Unknown variable dynamic import: `+t+(t.split(`/`).length===n?``:`. Note that variables only represent file names one level deep.`))))})},x_=e=>typeof e==`string`,S_=e=>typeof e==`function`,C_=new Map,w_=`en`;function T_(e){return[...Array.isArray(e)?e:[e],w_]}function E_(e,t,n){let r=T_(e);n||=`default`;let i;if(typeof n==`string`)switch(i={day:`numeric`,month:`short`,year:`numeric`},n){case`full`:i.weekday=`long`;case`long`:i.month=`long`;break;case`short`:i.month=`numeric`}else i=n;return A_(()=>j_(`date`,r,n),()=>new Intl.DateTimeFormat(r,i)).format(x_(t)?new Date(t):t)}function D_(e,t,n){let r;if(n||=`default`,typeof n==`string`)switch(r={second:`numeric`,minute:`numeric`,hour:`numeric`},n){case`full`:case`long`:r.timeZoneName=`short`;break;case`short`:delete r.second}else r=n;return E_(e,t,r)}function O_(e,t,n){let r=T_(e);return A_(()=>j_(`number`,r,n),()=>new Intl.NumberFormat(r,n)).format(t)}function k_(e,t,n,{offset:r=0,...i}){let a=T_(e),o=t?A_(()=>j_(`plural-ordinal`,a),()=>new Intl.PluralRules(a,{type:`ordinal`})):A_(()=>j_(`plural-cardinal`,a),()=>new Intl.PluralRules(a,{type:`cardinal`}));return i[n]??i[o.select(n-r)]??i.other}function A_(e,t){let n=e(),r=C_.get(n);return r||(r=t(),C_.set(n,r)),r}function j_(e,t,n){return`${e}-${t.join(`-`)}-${JSON.stringify(n)}`}var M_=/\\u[a-fA-F0-9]{4}|\\x[a-fA-F0-9]{2}/,N_=e=>e.replace(/\\u([a-fA-F0-9]{4})|\\x([a-fA-F0-9]{2})/g,(e,t,n)=>{if(t){let e=parseInt(t,16);return String.fromCharCode(e)}{let e=parseInt(n,16);return String.fromCharCode(e)}}),P_=`%__lingui_octothorpe__%`,F_=(e,t,n={})=>{let r=t||e,i=e=>typeof e==`object`?e:n[e],a=(e,t)=>{let a=Object.keys(n).length?i(`number`):void 0,o=O_(r,e,a);return t.replace(new RegExp(P_,`g`),o)};return{plural:(e,t)=>{let{offset:n=0}=t,i=k_(r,!1,e,t);return a(e-n,i)},selectordinal:(e,t)=>{let{offset:n=0}=t,i=k_(r,!0,e,t);return a(e-n,i)},select:I_,number:(e,t)=>O_(r,e,i(t)||{style:t}),date:(e,t)=>E_(r,e,i(t)||t),time:(e,t)=>D_(r,e,i(t)||t)}},I_=(e,t)=>t[e]??t.other;function L_(e,t,n){return(r={},i)=>{let a=F_(t,n,i),o=(e,t=!1)=>Array.isArray(e)?e.reduce((e,n)=>{if(n===`#`&&t)return e+P_;if(x_(n))return e+n;let[i,s,c]=n,l={};s===`plural`||s===`selectordinal`||s===`select`?Object.entries(c).forEach(([e,t])=>{l[e]=o(t,s===`plural`||s===`selectordinal`)}):l=c;let u;if(s){let e=a[s];u=e(r[i],l)}else u=r[i];return u==null?e:e+u},``):e,s=o(e);return x_(s)&&M_.test(s)?N_(s):x_(s)?s:s?String(s):``}}var R_=class{_events={};on(e,t){return this._events[e]??=new Set,this._events[e].add(t),()=>this.removeListener(e,t)}removeListener(e,t){let n=this._events[e];n?.delete(t),n?.size===0&&delete this._events[e]}emit(e,...t){let n=this._events[e];if(n)for(let e of[...n])e.apply(this,t)}},z_=class extends R_{_locale=``;_locales;_messages={};_missing;_messageCompiler;constructor(e){super(),e.missing!=null&&(this._missing=e.missing),e.messages!=null&&this.load(e.messages),(typeof e.locale==`string`||e.locales)&&this.activate(e.locale??w_,e.locales)}get locale(){return this._locale}get locales(){return this._locales}get messages(){return this._messages[this._locale]??{}}setMessagesCompiler(e){return this._messageCompiler=e,this}_load(e,t){let n=this._messages[e];n?Object.assign(n,t):this._messages[e]=t}load(e,t){typeof e==`string`&&typeof t==`object`?this._load(e,t):Object.entries(e).forEach(([e,t])=>this._load(e,t)),this.emit(`change`)}loadAndActivate({locale:e,locales:t,messages:n}){this._locale=e,this._locales=t||void 0,this._messages[this._locale]=n,this.emit(`change`)}activate(e,t){this._locale=e,this._locales=t,this.emit(`change`)}_(e,t,n){if(!this.locale)throw Error(`Lingui: Attempted to call a translation function without setting a locale.
|
|
74
|
-
Make sure to call \`i18n.activate(locale)\` before using Lingui functions.
|
|
75
|
-
This issue may also occur due to a race condition in your initialization logic.`);let r=n?.message;e||=``,x_(e)||(t=e.values||t,r=e.message,e=e.id);let i=this.messages[e],a=i===void 0,o=this._missing;if(o&&a)return S_(o)?o(this._locale,e):o;a&&this.emit(`missing`,{id:e,locale:this._locale});let s=i||r||e;return x_(s)&&(this._messageCompiler?s=this._messageCompiler(s):console.warn(`Uncompiled message detected! Message:
|
|
76
|
-
|
|
77
|
-
> ${s}
|
|
78
|
-
|
|
79
|
-
That means you use raw catalog or your catalog doesn't have a translation for the message and fallback was used.
|
|
80
|
-
ICU features such as interpolation and plurals will not work properly for that message.
|
|
81
|
-
|
|
82
|
-
Please compile your catalog first.
|
|
83
|
-
`)),x_(s)&&M_.test(s)?N_(s):x_(s)?s:L_(s,this._locale,this._locales)(t,n?.formats)}t=this._.bind(this);date(e,t){return E_(this._locales||this._locale,e,t)}number(e,t){return O_(this._locales||this._locale,e,t)}};function B_(e={}){return new z_(e)}var V_=B_(),H_=(e,t,n,r)=>{if(n===`length`||n===`prototype`||n===`arguments`||n===`caller`)return;let i=Object.getOwnPropertyDescriptor(e,n),a=Object.getOwnPropertyDescriptor(t,n);!U_(i,a)&&r||Object.defineProperty(e,n,a)},U_=function(e,t){return e===void 0||e.configurable||e.writable===t.writable&&e.enumerable===t.enumerable&&e.configurable===t.configurable&&(e.writable||e.value===t.value)},W_=(e,t)=>{let n=Object.getPrototypeOf(t);n!==Object.getPrototypeOf(e)&&Object.setPrototypeOf(e,n)},G_=(e,t)=>`/* Wrapped ${e}*/\n${t}`,K_=Object.getOwnPropertyDescriptor(Function.prototype,`toString`),q_=Object.getOwnPropertyDescriptor(Function.prototype.toString,`name`),J_=(e,t,n)=>{let r=n===``?``:`with ${n.trim()}() `,i=G_.bind(null,r,t.toString());Object.defineProperty(i,"name",q_);let{writable:a,enumerable:o,configurable:s}=K_;Object.defineProperty(e,"toString",{value:i,writable:a,enumerable:o,configurable:s})};function Y_(e,t,{ignoreNonConfigurable:n=!1}={}){let{name:r}=e;for(let r of Reflect.ownKeys(t))H_(e,t,r,n);return W_(e,t),J_(e,t,r),e}var X_=2147483647,Z_=new WeakMap,Q_=new WeakMap,$_=new WeakMap;function ev(e,t){let n=e.get(t);if(n){if(n.maxAge<=Date.now()){e.delete(t);return}return n}}function tv(e,{cacheKey:t,cache:n=new Map,maxAge:r}={}){if(r===0)return e;if(typeof r==`number`&&Number.isFinite(r)){if(r>X_)throw TypeError(`The \`maxAge\` option cannot exceed ${X_}.`);if(r<0)throw TypeError("The `maxAge` option should not be a negative number.")}let i=function(...a){let o=t?t(a):a[0],s=ev(n,o);if(s)return s.data;let c=e.apply(this,a),l=typeof r==`function`?r(...a):r;if(l!==void 0&&l!==1/0){if(!Number.isFinite(l))throw TypeError("The `maxAge` function must return a finite number, `0`, or `Infinity`.");if(l<=0)return c;if(l>X_)throw TypeError(`The \`maxAge\` function result cannot exceed ${X_}.`)}if(n.set(o,{data:c,maxAge:l===void 0||l===1/0?1/0:Date.now()+l}),l!==void 0&&l!==1/0){let e=setTimeout(()=>{n.delete(o),Q_.get(i)?.delete(e)},l);e.unref?.();let t=Q_.get(i)??new Set;t.add(e),Q_.set(i,t)}return c};return Y_(i,e,{ignoreNonConfigurable:!0}),Z_.set(i,n),$_.set(i,t??(e=>e[0])),i}function nv(e){return typeof e==`string`}function rv(e,t,n){return n.indexOf(e)===t}function iv(e){return e.toLowerCase()===e}function av(e){return e.indexOf(`,`)===-1?e:e.split(`,`)}function ov(e){if(!e)return e;if(e===`C`||e===`posix`||e===`POSIX`)return`en-US`;if(e.indexOf(`.`)!==-1){var t=e.split(`.`)[0],n=t===void 0?``:t;return ov(n)}if(e.indexOf(`@`)!==-1){var r=e.split(`@`)[0],n=r===void 0?``:r;return ov(n)}if(e.indexOf(`-`)===-1||!iv(e))return e;var i=e.split(`-`),a=i[0],o=i[1];return`${a}-${(o===void 0?``:o).toUpperCase()}`}function sv(e){var t=e===void 0?{}:e,n=t.useFallbackLocale,r=n===void 0||n,i=t.fallbackLocale,a=i===void 0?`en-US`:i,o=[];if(typeof navigator<`u`){for(var s=navigator.languages||[],c=[],l=0,u=s;l<u.length;l++){var d=u[l];c=c.concat(av(d))}var f=navigator.language,p=f&&av(f);o=o.concat(c,p)}return r&&o.push(a),o.filter(nv).map(ov).filter(rv)}var cv=tv(sv,{cacheKey:JSON.stringify});function lv(e){return cv(e)[0]||null}tv(lv,{cacheKey:JSON.stringify});var uv={locale:`en`,language:`en`},dv=!1,fv=()=>dv?uv:(cv().reverse().forEach(e=>{switch(uv.locale=e,uv.locale){case`zh`:case`zh-CN`:case`zh-SG`:case`zh-MY`:uv.locale=`zh-Hans`;break;case`zh-TW`:case`zh-HK`:case`zh-MO`:uv.locale=`zh-Hant`}Object.prototype.hasOwnProperty.call(pg,uv.locale)?uv.language=uv.locale:Object.prototype.hasOwnProperty.call(pg,uv.locale.substring(0,2))&&(uv.language=uv.locale.substring(0,2))}),dv=!0,uv),pv=y({messages:()=>mv}),mv=JSON.parse(`{"actionbar.button.add.torrent":["Add Torrent"],"actionbar.button.remove.torrent":["Remove Torrent"],"actionbar.button.start.torrent":["Start Torrent"],"actionbar.button.stop.torrent":["Stop Torrent"],"alert.settings.saved":["Successfully saved settings."],"alert.torrent.add":["Successfully added ",["countElement"]," ",["count","plural",{"1":["torrent"],"other":["torrents"]}],"."],"alert.torrent.add.failed":["Failed to add ",["countElement"]," ",["count","plural",{"1":["torrent"],"other":["torrents"]}],"."],"alert.torrent.add.sent":[["countElement"]," ",["count","plural",{"1":["request"],"other":["requests"]}]," sent to the torrent client."],"alert.torrent.move":["Successfully moved ",["countElement"]," ",["count","plural",{"1":["torrent"],"other":["torrents"]}],"."],"alert.torrent.move.failed":["Failed to move ",["countElement"]," ",["count","plural",{"1":["torrent"],"other":["torrents"]}],"."],"alert.torrent.remove":["Successfully removed ",["countElement"]," ",["count","plural",{"1":["torrent"],"other":["torrents"]}],"."],"alert.torrent.remove.failed":["Failed to remove ",["countElement"]," ",["count","plural",{"1":["torrent"],"other":["torrents"]}],"."],"auth.add.user":["Add User"],"auth.admin":["Admin"],"auth.create.account":["Create Account"],"auth.create.an.account":["Create an account"],"auth.create.an.account.intro":["Welcome to Flood!"],"auth.current.user":["Current User"],"auth.error.password.empty":["Password cannot be empty."],"auth.error.username.empty":["Username cannot be empty."],"auth.input.clear":["Clear"],"auth.log.in":["Log In"],"auth.login":["Login"],"auth.login.intro":["Log in to your account."],"auth.message.not.admin":["User is not Admin"],"auth.password":["Password"],"auth.user.accounts":["User Accounts"],"auth.username":["Username"],"button.add":["Add"],"button.cancel":["Cancel"],"button.close":["Close"],"button.download":["Download"],"button.new":["New"],"button.no":["No"],"button.ok":["OK"],"button.retry":["Retry"],"button.save":["Save Settings"],"button.save.feed":["Save"],"button.yes":["Yes"],"connection-interruption.action.selection.config":["Update client connection settings"],"connection-interruption.action.selection.retry":["Retry with current client connection settings"],"connection-interruption.heading":["Cannot connect to the client"],"connection-interruption.not.admin":["Please contact your Flood administrator if this continues."],"connection-interruption.verification-error":["Connection could not be verified."],"connection.settings.client.select":["Client"],"connection.settings.deluge":["Deluge"],"connection.settings.deluge.host":["Host"],"connection.settings.deluge.host.input.placeholder":["e.g. localhost"],"connection.settings.deluge.password":["Password"],"connection.settings.deluge.password.input.placeholder":["Password"],"connection.settings.deluge.port":["Port"],"connection.settings.deluge.port.input.placeholder":["e.g. 58846"],"connection.settings.deluge.username":["Username"],"connection.settings.deluge.username.input.placeholder":["e.g. localclient"],"connection.settings.error.empty":["Connection settings can not be empty."],"connection.settings.qbittorrent":["qBittorrent"],"connection.settings.qbittorrent.password":["Password"],"connection.settings.qbittorrent.password.input.placeholder":["Password"],"connection.settings.qbittorrent.url":["URL"],"connection.settings.qbittorrent.url.input.placeholder":["e.g. http://localhost:8080"],"connection.settings.qbittorrent.username":["Username"],"connection.settings.qbittorrent.username.input.placeholder":["Username"],"connection.settings.rtorrent":["rTorrent"],"connection.settings.rtorrent.host":["Host"],"connection.settings.rtorrent.host.input.placeholder":["Hostname or IP"],"connection.settings.rtorrent.port":["Port"],"connection.settings.rtorrent.port.input.placeholder":["Port"],"connection.settings.rtorrent.socket":["Path"],"connection.settings.rtorrent.socket.input.placeholder":["e.g. ~/.local/share/rtorrent/rtorrent.sock"],"connection.settings.rtorrent.type":["Connection Type"],"connection.settings.rtorrent.type.socket":["Socket"],"connection.settings.rtorrent.type.tcp":["TCP"],"connection.settings.rtorrent.type.tcp.warning":["Exposing rTorrent via TCP may allow privilege escalation."],"connection.settings.transmission":["Transmission"],"connection.settings.transmission.password":["Password"],"connection.settings.transmission.password.input.placeholder":["Password"],"connection.settings.transmission.url":["URL"],"connection.settings.transmission.url.input.placeholder":["e.g. http://localhost:9091/transmission/rpc"],"connection.settings.transmission.username":["Username"],"connection.settings.transmission.username.input.placeholder":["Username"],"dependency.loading.notifications":["Notifications"],"dependency.loading.torrent.list":["Torrent List"],"dependency.loading.torrent.taxonomy":["Torrent Taxonomy"],"dependency.loading.transfer.history":["Data Transfer History"],"dependency.loading.transfer.rate.details":["Data Transfer Rate Details"],"feeds.applicable.feed":["Applicable Feed"],"feeds.apply.tags":["Apply Tags"],"feeds.browse.feeds":["Browse feeds"],"feeds.check":["Validate the rule by trying it out. Not saved or sent."],"feeds.exclude":["Exclude"],"feeds.exclude.pattern":["Exclude Pattern"],"feeds.existing.feeds":["Existing Feeds"],"feeds.existing.rules":["Existing Rules"],"feeds.interval":["Interval"],"feeds.label":["Label"],"feeds.match":["Match"],"feeds.match.count":[["count","plural",{"1":["#"," match"],"other":["#"," matches"]}]],"feeds.match.pattern":["Match Pattern"],"feeds.no.feeds.available":["No feeds available."],"feeds.no.feeds.defined":["No feeds defined."],"feeds.no.items.matching":["No items matching search term."],"feeds.no.rules.defined":["No rules defined."],"feeds.regEx":["RegEx"],"feeds.search":["Search term"],"feeds.search.term":["Search term"],"feeds.select.feed":["Select Feed"],"feeds.select.interval":["Interval"],"feeds.start.on.load":["Start on load"],"feeds.tabs.download.rules":["Download Rules"],"feeds.tabs.feeds":["Feeds"],"feeds.tabs.heading":["Torrent Feeds"],"feeds.tags":["Tags"],"feeds.test.match":["Test Match Pattern"],"feeds.time.day":["Days"],"feeds.time.hr":["Hours"],"feeds.time.min":["Minutes"],"feeds.torrent.destination":["Torrent Destination"],"feeds.url":["URL"],"feeds.validation.interval.not.positive":["The interval must be a positive integer."],"feeds.validation.invalid.regular.expression":["Invalid regular expression."],"feeds.validation.must.select.feed":["You must select a feed."],"feeds.validation.must.specify.destination":["You must specify a destination."],"feeds.validation.must.specify.label":["You must specify a label."],"feeds.validation.must.specify.valid.feed.url":["You must specify a valid feed URL."],"filesystem.empty.directory":["Empty directory."],"filesystem.error.eacces":["Flood does not have permission to read this directory."],"filesystem.error.enoent":["This path does not exist. It will be created."],"filesystem.error.no.input":["Please enter the path."],"filesystem.error.unknown":["An unknown error occurred. Please try again."],"filesystem.fetching":["Fetching directory structure..."],"filter.all":["All"],"filter.location.title":["Filter by Location"],"filter.status.active":["Active"],"filter.status.checking":["Checking"],"filter.status.completed":["Complete"],"filter.status.downloading":["Downloading"],"filter.status.error":["Error"],"filter.status.inactive":["Inactive"],"filter.status.moving":["Moving"],"filter.status.seeding":["Seeding"],"filter.status.stopped":["Stopped"],"filter.status.title":["Filter by Status"],"filter.status.warning":["Warning"],"filter.tag.title":["Filter by Tag"],"filter.tracker.title":["Filter by Tracker"],"filter.untagged":["Untagged"],"general.ago":["ago"],"general.clipboard.copied":["Copied"],"general.clipboard.copy":["Copy"],"general.error.unknown":["An unknown error occurred"],"general.of":["of"],"general.to":["to"],"locale.language.auto":["Automatic"],"mediainfo.execError":["An error occurred while running mediainfo on the server. Check that mediainfo is installed and available in the PATH to Flood."],"mediainfo.fetching":["Fetching..."],"mediainfo.heading":["Mediainfo Output"],"notification.clear.all":["Clear All"],"notification.feed.torrent.added.body":[["title"]],"notification.feed.torrent.added.heading":["Feed Item Queued"],"notification.no.notification":["No notification to display."],"notification.showing":["Showing"],"notification.torrent.errored.body":[["name"]],"notification.torrent.errored.heading":["Error Reported"],"notification.torrent.finished.body":[["name"]],"notification.torrent.finished.heading":["Finished Downloading"],"priority.dont.download":["Don't Download"],"priority.high":["High"],"priority.low":["Low"],"priority.normal":["Normal"],"settings.bandwidth.slots.download.global.label":["Download Slots Global"],"settings.bandwidth.slots.download.label":["Download Slots Per Torrent"],"settings.bandwidth.slots.heading":["Slot Availability"],"settings.bandwidth.slots.upload.global.label":["Upload Slots Global"],"settings.bandwidth.slots.upload.label":["Upload Slots Per Torrent"],"settings.bandwidth.transferrate.dropdown.preset.download.label":["Dropdown Presets: Download"],"settings.bandwidth.transferrate.dropdown.preset.upload.label":["Dropdown Presets: Upload"],"settings.bandwidth.transferrate.global.throttle.download":["Global Download Rate Throttle"],"settings.bandwidth.transferrate.global.throttle.upload":["Global Upload Rate Throttle"],"settings.bandwidth.transferrate.heading":["Transfer Rate Throttles"],"settings.connectivity.dht.label":["Enable DHT"],"settings.connectivity.dht.port.label":["DHT Port"],"settings.connectivity.dpd.heading":["Decentralized Peer Discovery"],"settings.connectivity.incoming.heading":["Incoming Connections"],"settings.connectivity.ip.hostname.label":["Reported IP/Hostname"],"settings.connectivity.max.http.connections":["Maximum HTTP Connections"],"settings.connectivity.peer.exchange.label":["Enable Peer Exchange"],"settings.connectivity.peers.desired.label":["Peers Desired"],"settings.connectivity.peers.heading":["Peers"],"settings.connectivity.peers.max.label":["Maximum Peers"],"settings.connectivity.peers.min.label":["Minimum Peers"],"settings.connectivity.peers.seeding.max.label":["Maximum Peers Seeding"],"settings.connectivity.peers.seeding.min.label":["Minimum Peers Seeding"],"settings.connectivity.port.open.label":["Open Port"],"settings.connectivity.port.randomize.label":["Randomize Port"],"settings.connectivity.port.range.label":["Port Range"],"settings.diskusage.mount.points":["Disk Usage Mount Points"],"settings.diskusage.show":["Show"],"settings.resources.disk.check.hash.label":["Verify Hash on Completion"],"settings.resources.disk.download.location.label":["Default Download Directory"],"settings.resources.disk.heading":["Disk"],"settings.resources.max.open.files":["Maximum Open Files"],"settings.resources.memory.heading":["Memory"],"settings.resources.memory.max.label":["Max Memory Usage"],"settings.tabs.about":["About"],"settings.tabs.authentication":["Authentication"],"settings.tabs.bandwidth":["Bandwidth"],"settings.tabs.connectivity":["Connectivity"],"settings.tabs.diskusage":["Disk Usage"],"settings.tabs.heading":["Settings"],"settings.tabs.resources":["Resources"],"settings.tabs.userinterface":["User Interface"],"settings.ui.displayed.context.menu.items":["Context Menu Items"],"settings.ui.displayed.details":["Torrent Detail Columns"],"settings.ui.language":["Language"],"settings.ui.locale":["Locale"],"settings.ui.misc":["Miscellaneous"],"settings.ui.page.title.speed":["Display upload and download speed in page title"],"settings.ui.sidebar.filter.location":["Show location filters"],"settings.ui.sidebar.filter.tag":["Show tag filters"],"settings.ui.sidebar.filter.tracker":["Show tracker filters"],"settings.ui.tag.selector.mode":["Tag Selector Preference"],"settings.ui.tag.selector.mode.multi":["Multi Selection"],"settings.ui.tag.selector.mode.single":["Single Selection"],"settings.ui.torrent.context.menu.items.show":["Show"],"settings.ui.torrent.details.enabled":["Enabled"],"settings.ui.torrent.details.tags.placement":["In the expanded view, tags work best at the end of the list."],"settings.ui.torrent.list":["Torrent List Display"],"settings.ui.torrent.list.progress.percent":["Show percentages"],"settings.ui.torrent.size":["Torrent Size"],"settings.ui.torrent.size.condensed":["Condensed View"],"settings.ui.torrent.size.expanded":["Expanded View"],"settings.ui.tracker.warning.enabled":["Enable tracker warning status"],"sidebar.button.feeds":["Feeds"],"sidebar.button.log.out":["Log Out"],"sidebar.button.settings":["Settings"],"sidebar.button.speedlimits":["Speed Limits"],"sidebar.button.theme.dark":["Dark Theme"],"sidebar.button.theme.light":["Light Theme"],"sidebar.search.placeholder":["Search torrents"],"sidebar.speedlimits.download":["DOWNLOAD"],"sidebar.speedlimits.upload":["UPLOAD"],"sidebar.transferdata.downloaded":["Downloaded"],"sidebar.transferdata.uploaded":["Uploaded"],"speed.unlimited":["Unlimited"],"status.diskusage.free":["Free"],"status.diskusage.title":["Disk Usage"],"status.diskusage.total":["Total"],"status.diskusage.used":["Used"],"torrent.list.peers":[["connected"]," ",["of"]," ",["total"]],"torrent.list.peers.of":["of"],"torrents.add.button.add":["Add Torrent"],"torrents.add.cookies.input.placeholder":["Optional cookie-name=cookie-value"],"torrents.add.cookies.label":["Cookies"],"torrents.add.destination.label":["Destination"],"torrents.add.destination.placeholder":["Destination"],"torrents.add.heading":["Add Torrents"],"torrents.add.start.label":["Start Torrent"],"torrents.add.tab.create.title":["Create"],"torrents.add.tab.file.browse":["or click to browse"],"torrents.add.tab.file.drop":["Drop some files here,"],"torrents.add.tab.file.title":["By File"],"torrents.add.tab.url.input.placeholder":["Torrent URL, Magnet Link, or Info Hash"],"torrents.add.tab.url.register.magnet.handler":["Register to handle magnet links"],"torrents.add.tab.url.title":["By URL"],"torrents.add.tags":["Tags"],"torrents.add.torrents.label":["Torrents"],"torrents.create.base.name.input.placeholder":["Optional base file or directory name of the torrent"],"torrents.create.base.name.label":["Base Name"],"torrents.create.comment.input.placeholder":["Optional comment in torrent file"],"torrents.create.comment.label":["Comment"],"torrents.create.info.source.input.placeholder":["Optional source entry in infohash"],"torrents.create.info.source.label":["Info Source"],"torrents.create.is.private.label":["Private"],"torrents.create.source.path.label":["Source"],"torrents.create.tags.input.placeholder":["Tags in Flood. Not added to created torrent."],"torrents.create.tracker.input.placeholder":["Tracker URL"],"torrents.create.trackers.label":["Trackers"],"torrents.destination.base_path":["Use as Base Path"],"torrents.destination.completed":["Completed"],"torrents.destination.sequential":["Sequential Download"],"torrents.details.actions.pause":["Pause"],"torrents.details.actions.start":["Start"],"torrents.details.actions.stop":["Stop"],"torrents.details.details":["Details"],"torrents.details.files":["Files"],"torrents.details.files.download.file":[["count","plural",{"1":["Download File"],"other":["Download Files"]}]],"torrents.details.files.loading":["Loading file detail..."],"torrents.details.general.comment":["Comment"],"torrents.details.general.connected":[["connected"]," connected of ",["total"]],"torrents.details.general.date.active":["Last Activity"],"torrents.details.general.date.active.now":["Now"],"torrents.details.general.date.added":["Added"],"torrents.details.general.date.created":["Created"],"torrents.details.general.date.finished":["Finished"],"torrents.details.general.downloaded":["Downloaded"],"torrents.details.general.free.disk.space":["Free Disk Space"],"torrents.details.general.hash":["Hash"],"torrents.details.general.heading.general":["General"],"torrents.details.general.heading.torrent":["Torrent"],"torrents.details.general.heading.tracker":["Tracker"],"torrents.details.general.heading.transfer":["Transfer"],"torrents.details.general.location":["Location"],"torrents.details.general.none":["None"],"torrents.details.general.peers":["Peers"],"torrents.details.general.scheduler":["Scheduler"],"torrents.details.general.scheduler.ignored":["Ignored"],"torrents.details.general.scheduler.obeyed":["Obeyed"],"torrents.details.general.seeds":["Seeds"],"torrents.details.general.size":["Size"],"torrents.details.general.tags":["Tags"],"torrents.details.general.tracker.message":["Tracker Message"],"torrents.details.general.type":["Type"],"torrents.details.general.type.private":["Private"],"torrents.details.general.type.public":["Public"],"torrents.details.mediainfo":["Mediainfo"],"torrents.details.peers":["Peers"],"torrents.details.peers.no.data":["There is no peer data for this torrent."],"torrents.details.selected.files":[["count","plural",{"1":[["countElement"]," selected file"],"other":[["countElement"]," selected files"]}]],"torrents.details.selected.files.set.priority":["Set Priority"],"torrents.details.trackers":["Trackers"],"torrents.details.trackers.no.data":["There is no tracker data for this torrent."],"torrents.details.trackers.type":["Type"],"torrents.generate.magnet.heading":["Generate Magnet Link"],"torrents.generate.magnet.loading.trackers":["Loading trackers..."],"torrents.generate.magnet.magnet":["Magnet Link"],"torrents.generate.magnet.magnet.with.trackers":["Magnet Link with Trackers"],"torrents.generate.magnet.private.torrent":["This is a private torrent."],"torrents.list.cannot.connect":["Cannot connect to the client."],"torrents.list.clear.filters":["Clear Filters"],"torrents.list.context.check.hash":["Check Hash"],"torrents.list.context.details":["Torrent Details"],"torrents.list.context.download.contents":["Download Contents"],"torrents.list.context.download.metainfo":["Download .torrent"],"torrents.list.context.generate.magnet":["Generate Magnet Link"],"torrents.list.context.initial.seeding":["Initial Seeding"],"torrents.list.context.move":["Set Torrent Location"],"torrents.list.context.pause":["Pause"],"torrents.list.context.priority":["Priority"],"torrents.list.context.reannounce":["Reannounce"],"torrents.list.context.remove":["Remove"],"torrents.list.context.sequential":["Sequential"],"torrents.list.context.set.tags":["Set Tags"],"torrents.list.context.set.trackers":["Set Trackers"],"torrents.list.context.start":["Start"],"torrents.list.context.stop":["Stop"],"torrents.list.drop":["Drop files here to add them."],"torrents.list.no.torrents":["No torrents to display."],"torrents.move.button.set.location":["Set Location"],"torrents.move.button.state.setting":["Setting..."],"torrents.move.check_hash.label":["Check hash"],"torrents.move.data.label":["Move data"],"torrents.move.heading":["Set Torrent Location"],"torrents.properties.comment":["Comment"],"torrents.properties.date.active":["Last Activity"],"torrents.properties.date.added":["Added"],"torrents.properties.date.created":["Created"],"torrents.properties.date.finished":["Finished"],"torrents.properties.directory":["Location"],"torrents.properties.download.speed":["Download Speed"],"torrents.properties.download.total":["Downloaded"],"torrents.properties.eta":["ETA"],"torrents.properties.free.disk.space":["Free Disk Space"],"torrents.properties.hash":["Hash"],"torrents.properties.ignore.schedule":["Ignore Scheduler"],"torrents.properties.is.private":["Private"],"torrents.properties.name":["Name"],"torrents.properties.peers":["Peers"],"torrents.properties.percentage":["Progress"],"torrents.properties.ratio":["Ratio"],"torrents.properties.seeds":["Seeds"],"torrents.properties.selected.size":["Selected Size"],"torrents.properties.size":["File Size"],"torrents.properties.tags":["Tags"],"torrents.properties.tracker.message":["Tracker Message"],"torrents.properties.trackers":["Trackers"],"torrents.properties.upload.speed":["Upload Speed"],"torrents.properties.upload.total":["Uploaded"],"torrents.remove":["Remove Torrents"],"torrents.remove.are.you.sure":["Are you sure you want to remove ",["count","plural",{"1":["#"," torrent"],"other":["#"," torrents"]}],"?"],"torrents.remove.delete.data":["Delete data"],"torrents.remove.error.no.torrents.selected":["You haven't selected any torrents."],"torrents.set.tags.button.set":["Set Tags"],"torrents.set.tags.enter.tags":["Enter tags"],"torrents.set.tags.heading":["Set Tags"],"torrents.set.trackers.button.set":["Set Trackers"],"torrents.set.trackers.enter.tracker":["Enter a tracker"],"torrents.set.trackers.heading":["Set Trackers"],"torrents.set.trackers.loading.trackers":["Loading trackers..."],"torrents.sort.title":["Sort By"],"unit.size.byte":["B"],"unit.size.gigabyte":["GB"],"unit.size.kilobyte":["kB"],"unit.size.megabyte":["MB"],"unit.size.terabyte":["TB"],"unit.speed":[["baseUnit"],"/s"],"unit.time.day":["d"],"unit.time.hour":["hr"],"unit.time.infinity":["∞"],"unit.time.minute":["m"],"unit.time.second":["s"],"unit.time.week":["wk"],"unit.time.year":["yr"]}`),hv={en:mv};V_.load(`en`,hv.en),V_.activate(`en`);async function gv(e){let{messages:t}=await b_(Object.assign({"./strings/af.json":()=>T(()=>import(`./af-B6-pStw9.js`),[],import.meta.url),"./strings/ar.json":()=>T(()=>import(`./ar-Cevz1Qs-.js`),[],import.meta.url),"./strings/ca.json":()=>T(()=>import(`./ca-DAtf_5hQ.js`),[],import.meta.url),"./strings/cs.json":()=>T(()=>import(`./cs-BIjoDiHH.js`),[],import.meta.url),"./strings/da.json":()=>T(()=>import(`./da-Cd4-2_5U.js`),[],import.meta.url),"./strings/de.json":()=>T(()=>import(`./de-C7YtizCu.js`),[],import.meta.url),"./strings/el.json":()=>T(()=>import(`./el-BaaG9zXY.js`),[],import.meta.url),"./strings/en.json":()=>T(()=>Promise.resolve().then(()=>pv),void 0,import.meta.url),"./strings/es.json":()=>T(()=>import(`./es-Cn40GwkH.js`),[],import.meta.url),"./strings/fi.json":()=>T(()=>import(`./fi-CFoJ7h4p.js`),[],import.meta.url),"./strings/fr.json":()=>T(()=>import(`./fr-DihSzc5w.js`),[],import.meta.url),"./strings/he.json":()=>T(()=>import(`./he-BqHuQNYF.js`),[],import.meta.url),"./strings/hu.json":()=>T(()=>import(`./hu-Bd15G6cY.js`),[],import.meta.url),"./strings/it.json":()=>T(()=>import(`./it-nE66-Fr1.js`),[],import.meta.url),"./strings/ja.json":()=>T(()=>import(`./ja-B623Yqkl.js`),[],import.meta.url),"./strings/ko.json":()=>T(()=>import(`./ko-DE_dHFvf.js`),[],import.meta.url),"./strings/nl.json":()=>T(()=>import(`./nl-ld0j2zd2.js`),[],import.meta.url),"./strings/no.json":()=>T(()=>import(`./no-D8_ZUO5T.js`),[],import.meta.url),"./strings/pl.json":()=>T(()=>import(`./pl-LvqNumg3.js`),[],import.meta.url),"./strings/pt.json":()=>T(()=>import(`./pt-Gy6aSAgY.js`),[],import.meta.url),"./strings/ro.json":()=>T(()=>import(`./ro-Btys85cp.js`),[],import.meta.url),"./strings/ru.json":()=>T(()=>import(`./ru-CrGgx3bV.js`),[],import.meta.url),"./strings/sr.json":()=>T(()=>import(`./sr-CPY2UrNZ.js`),[],import.meta.url),"./strings/sv.json":()=>T(()=>import(`./sv-CtoRKEOL.js`),[],import.meta.url),"./strings/tr.json":()=>T(()=>import(`./tr-BKZ6SEMN.js`),[],import.meta.url),"./strings/uk.json":()=>T(()=>import(`./uk-WjqaL9eb.js`),[],import.meta.url),"./strings/vi.json":()=>T(()=>import(`./vi-DhDHRZca.js`),[],import.meta.url),"./strings/zh-Hans.json":()=>T(()=>import(`./zh-Hans-2KaAC0e7.js`),[],import.meta.url),"./strings/zh-Hant.json":()=>T(()=>import(`./zh-Hant-BgZemFsG.js`),[],import.meta.url)}),`./strings/${e}.json?lingui`,3);return hv[e]=t,t}async function _v(e){return hv[e]??gv(e)}var vv=s(({children:e})=>{let{language:t}=Og.floodSettings;return(0,D.useEffect)(()=>{let e;e=t==null||t===`auto`||!Object.prototype.hasOwnProperty.call(pg,t)?fv():{locale:t,language:t},(async()=>{V_.load(e.locale,{...mv,...await _v(e.language)}),V_.activate(e.locale)})()},[t]),(0,$.jsx)(oe,{i18n:V_,children:e})}),yv={withoutTrailingSlash:e=>e.replace(/\/{1,}$/,``)},bv=(0,D.lazy)(()=>T(()=>import(`./Login-GaGEU4gd.js`),__vite__mapDeps([0,1,2,3]),import.meta.url)),xv=(0,D.lazy)(()=>T(()=>import(`./Overview-C2zOuv4e.js`).then(e=>e.t),__vite__mapDeps([4,1,2]),import.meta.url)),Sv=(0,D.lazy)(()=>T(()=>import(`./Register-BlHDGVpO.js`),__vite__mapDeps([5,1,2,3]),import.meta.url)),Cv=s(()=>{(0,D.useEffect)(()=>{Mg.registerDependency([{id:`notifications`,message:{id:`dependency.loading.notifications`}}]),Mg.registerDependency([{id:`torrent-taxonomy`,message:{id:`dependency.loading.torrent.taxonomy`}}]),Mg.registerDependency([{id:`transfer-data`,message:{id:`dependency.loading.transfer.rate.details`}},{id:`transfer-history`,message:{id:`dependency.loading.transfer.history`}}]),Mg.registerDependency([{id:`torrent-list`,message:{id:`dependency.loading.torrent.list`}}])},[]);let e=dr(`(prefers-color-scheme: dark)`);(0,D.useEffect)(()=>{n.setSystemPreferDark(e)},[e]);let t=dr(`(max-width: 720px)`);return(0,D.useEffect)(()=>{n.setSmallScreen(t)},[t]),(0,$.jsx)(D.Suspense,{fallback:(0,$.jsx)(u_,{}),children:(0,$.jsx)(vv,{children:(0,$.jsx)(Kn,{basename:yv.withoutTrailingSlash(n.baseURI),children:(0,$.jsx)(y_,{className:n.isPreferDark?`dark`:void 0,children:(0,$.jsxs)(sn,{children:[(0,$.jsx)(an,{path:`/login`,element:(0,$.jsx)(bv,{})}),(0,$.jsx)(an,{path:`/overview`,element:(0,$.jsx)(xv,{})}),(0,$.jsx)(an,{path:`/register`,element:(0,$.jsx)(Sv,{})})]})})})})})}),wv=document.getElementById(`app`);(0,rs.createRoot)(wv).render((0,$.jsx)(Cv,{}));export{Xs as C,as as D,os as E,R as O,pg as S,cs as T,kg as _,n_ as a,hg as b,Kg as c,Bg as d,zg as f,jg as g,Ag as h,i_ as i,It as k,Wg as l,Mg as m,__ as n,r_ as o,Lg as p,a_ as r,$g as s,v_ as t,Hg as u,Og as v,Ks as w,mg as x,Dg as y};
|
|
84
|
-
//# sourceMappingURL=index-CqvoWXZ8.js.map
|