@ukpc-lib/react 0.0.7 → 0.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- "use strict";const h=require("../motion-238f3a86.cjs");/**
1
+ "use strict";const p=require("../index-47f64f27.cjs");/**
2
2
  * @remix-run/router v1.14.2
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
@@ -7,7 +7,7 @@
7
7
  * LICENSE.md file in the root directory of this source tree.
8
8
  *
9
9
  * @license MIT
10
- */function Pt(){return Pt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Pt.apply(this,arguments)}var Je;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(Je||(Je={}));const Mo="popstate";function Vl(e){e===void 0&&(e={});function t(n,o){let{pathname:i,search:s,hash:a}=n.location;return Tn("",{pathname:i,search:s,hash:a},o.state&&o.state.usr||null,o.state&&o.state.key||"default")}function r(n,o){return typeof o=="string"?o:yr(o)}return ql(t,r,null,e)}function ve(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Hl(){return Math.random().toString(36).substr(2,8)}function Io(e,t){return{usr:e.state,key:e.key,idx:t}}function Tn(e,t,r,n){return r===void 0&&(r=null),Pt({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Mr(t):t,{state:r,key:t&&t.key||n||Hl()})}function yr(e){let{pathname:t="/",search:r="",hash:n=""}=e;return r&&r!=="?"&&(t+=r.charAt(0)==="?"?r:"?"+r),n&&n!=="#"&&(t+=n.charAt(0)==="#"?n:"#"+n),t}function Mr(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}function ql(e,t,r,n){n===void 0&&(n={});let{window:o=document.defaultView,v5Compat:i=!1}=n,s=o.history,a=Je.Pop,l=null,u=f();u==null&&(u=0,s.replaceState(Pt({},s.state,{idx:u}),""));function f(){return(s.state||{idx:null}).idx}function c(){a=Je.Pop;let g=f(),y=g==null?null:g-u;u=g,l&&l({action:a,location:d.location,delta:y})}function m(g,y){a=Je.Push;let b=Tn(d.location,g,y);r&&r(b,g),u=f()+1;let w=Io(b,u),E=d.createHref(b);try{s.pushState(w,"",E)}catch(O){if(O instanceof DOMException&&O.name==="DataCloneError")throw O;o.location.assign(E)}i&&l&&l({action:a,location:d.location,delta:1})}function v(g,y){a=Je.Replace;let b=Tn(d.location,g,y);r&&r(b,g),u=f();let w=Io(b,u),E=d.createHref(b);s.replaceState(w,"",E),i&&l&&l({action:a,location:d.location,delta:0})}function p(g){let y=o.location.origin!=="null"?o.location.origin:o.location.href,b=typeof g=="string"?g:yr(g);return ve(y,"No window.location.(origin|href) available to create URL for href: "+b),new URL(b,y)}let d={get action(){return a},get location(){return e(o,s)},listen(g){if(l)throw new Error("A history only accepts one active listener");return o.addEventListener(Mo,c),l=g,()=>{o.removeEventListener(Mo,c),l=null}},createHref(g){return t(o,g)},createURL:p,encodeLocation(g){let y=p(g);return{pathname:y.pathname,search:y.search,hash:y.hash}},push:m,replace:v,go(g){return s.go(g)}};return d}var zo;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(zo||(zo={}));function Ss(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&n!=="/"?null:e.slice(r)||"/"}function Kl(e,t){t===void 0&&(t="/");let{pathname:r,search:n="",hash:o=""}=typeof e=="string"?Mr(e):e;return{pathname:r?r.startsWith("/")?r:Gl(r,t):t,search:Jl(n),hash:Yl(o)}}function Gl(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?r.length>1&&r.pop():o!=="."&&r.push(o)}),r.length>1?r.join("/"):"/"}function ln(e,t,r,n){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(n)+"]. Please separate it out to the ")+("`to."+r+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function Xl(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function Es(e,t){let r=Xl(e);return t?r.map((n,o)=>o===e.length-1?n.pathname:n.pathnameBase):r.map(n=>n.pathnameBase)}function ks(e,t,r,n){n===void 0&&(n=!1);let o;typeof e=="string"?o=Mr(e):(o=Pt({},e),ve(!o.pathname||!o.pathname.includes("?"),ln("?","pathname","search",o)),ve(!o.pathname||!o.pathname.includes("#"),ln("#","pathname","hash",o)),ve(!o.search||!o.search.includes("#"),ln("#","search","hash",o)));let i=e===""||o.pathname==="",s=i?"/":o.pathname,a;if(s==null)a=r;else{let c=t.length-1;if(!n&&s.startsWith("..")){let m=s.split("/");for(;m[0]==="..";)m.shift(),c-=1;o.pathname=m.join("/")}a=c>=0?t[c]:"/"}let l=Kl(o,a),u=s&&s!=="/"&&s.endsWith("/"),f=(i||s===".")&&r.endsWith("/");return!l.pathname.endsWith("/")&&(u||f)&&(l.pathname+="/"),l}const Cs=e=>e.join("/").replace(/\/\/+/g,"/"),Jl=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Yl=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,Rs=["post","put","patch","delete"];new Set(Rs);const Zl=["get",...Rs];new Set(Zl);/**
10
+ */function ae(){return ae=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},ae.apply(this,arguments)}var Vt;(function(t){t.Pop="POP",t.Push="PUSH",t.Replace="REPLACE"})(Vt||(Vt={}));const Or="popstate";function Sa(t){t===void 0&&(t={});function e(r,s){let{pathname:o,search:i,hash:a}=r.location;return Mn("",{pathname:o,search:i,hash:a},s.state&&s.state.usr||null,s.state&&s.state.key||"default")}function n(r,s){return typeof s=="string"?s:Me(s)}return Pa(e,n,null,t)}function Q(t,e){if(t===!1||t===null||typeof t>"u")throw new Error(e)}function Ta(){return Math.random().toString(36).substr(2,8)}function Vr(t,e){return{usr:t.state,key:t.key,idx:e}}function Mn(t,e,n,r){return n===void 0&&(n=null),ae({pathname:typeof t=="string"?t:t.pathname,search:"",hash:""},typeof e=="string"?$e(e):e,{state:n,key:e&&e.key||r||Ta()})}function Me(t){let{pathname:e="/",search:n="",hash:r=""}=t;return n&&n!=="?"&&(e+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(e+=r.charAt(0)==="#"?r:"#"+r),e}function $e(t){let e={};if(t){let n=t.indexOf("#");n>=0&&(e.hash=t.substr(n),t=t.substr(0,n));let r=t.indexOf("?");r>=0&&(e.search=t.substr(r),t=t.substr(0,r)),t&&(e.pathname=t)}return e}function Pa(t,e,n,r){r===void 0&&(r={});let{window:s=document.defaultView,v5Compat:o=!1}=r,i=s.history,a=Vt.Pop,l=null,u=f();u==null&&(u=0,i.replaceState(ae({},i.state,{idx:u}),""));function f(){return(i.state||{idx:null}).idx}function c(){a=Vt.Pop;let y=f(),b=y==null?null:y-u;u=y,l&&l({action:a,location:g.location,delta:b})}function h(y,b){a=Vt.Push;let w=Mn(g.location,y,b);n&&n(w,y),u=f()+1;let v=Vr(w,u),E=g.createHref(w);try{i.pushState(v,"",E)}catch(S){if(S instanceof DOMException&&S.name==="DataCloneError")throw S;s.location.assign(E)}o&&l&&l({action:a,location:g.location,delta:1})}function d(y,b){a=Vt.Replace;let w=Mn(g.location,y,b);n&&n(w,y),u=f();let v=Vr(w,u),E=g.createHref(w);i.replaceState(v,"",E),o&&l&&l({action:a,location:g.location,delta:0})}function m(y){let b=s.location.origin!=="null"?s.location.origin:s.location.href,w=typeof y=="string"?y:Me(y);return Q(b,"No window.location.(origin|href) available to create URL for href: "+w),new URL(w,b)}let g={get action(){return a},get location(){return t(s,i)},listen(y){if(l)throw new Error("A history only accepts one active listener");return s.addEventListener(Or,c),l=y,()=>{s.removeEventListener(Or,c),l=null}},createHref(y){return e(s,y)},createURL:m,encodeLocation(y){let b=m(y);return{pathname:b.pathname,search:b.search,hash:b.hash}},push:h,replace:d,go(y){return i.go(y)}};return g}var Mr;(function(t){t.data="data",t.deferred="deferred",t.redirect="redirect",t.error="error"})(Mr||(Mr={}));function li(t,e){if(e==="/")return t;if(!t.toLowerCase().startsWith(e.toLowerCase()))return null;let n=e.endsWith("/")?e.length-1:e.length,r=t.charAt(n);return r&&r!=="/"?null:t.slice(n)||"/"}function Aa(t,e){e===void 0&&(e="/");let{pathname:n,search:r="",hash:s=""}=typeof t=="string"?$e(t):t;return{pathname:n?n.startsWith("/")?n:Ca(n,e):e,search:Oa(r),hash:Va(s)}}function Ca(t,e){let n=e.replace(/\/+$/,"").split("/");return t.split("/").forEach(s=>{s===".."?n.length>1&&n.pop():s!=="."&&n.push(s)}),n.length>1?n.join("/"):"/"}function un(t,e,n,r){return"Cannot include a '"+t+"' character in a manually specified "+("`to."+e+"` 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 Ra(t){return t.filter((e,n)=>n===0||e.route.path&&e.route.path.length>0)}function ci(t,e){let n=Ra(t);return e?n.map((r,s)=>s===t.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function ui(t,e,n,r){r===void 0&&(r=!1);let s;typeof t=="string"?s=$e(t):(s=ae({},t),Q(!s.pathname||!s.pathname.includes("?"),un("?","pathname","search",s)),Q(!s.pathname||!s.pathname.includes("#"),un("#","pathname","hash",s)),Q(!s.search||!s.search.includes("#"),un("#","search","hash",s)));let o=t===""||s.pathname==="",i=o?"/":s.pathname,a;if(i==null)a=n;else{let c=e.length-1;if(!r&&i.startsWith("..")){let h=i.split("/");for(;h[0]==="..";)h.shift(),c-=1;s.pathname=h.join("/")}a=c>=0?e[c]:"/"}let l=Aa(s,a),u=i&&i!=="/"&&i.endsWith("/"),f=(o||i===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(u||f)&&(l.pathname+="/"),l}const fi=t=>t.join("/").replace(/\/\/+/g,"/"),Oa=t=>!t||t==="?"?"":t.startsWith("?")?t:"?"+t,Va=t=>!t||t==="#"?"":t.startsWith("#")?t:"#"+t,hi=["post","put","patch","delete"];new Set(hi);const Ma=["get",...hi];new Set(Ma);/**
11
11
  * React Router v6.21.3
12
12
  *
13
13
  * Copyright (c) Remix Software Inc.
@@ -16,7 +16,7 @@
16
16
  * LICENSE.md file in the root directory of this source tree.
17
17
  *
18
18
  * @license MIT
19
- */function vr(){return vr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},vr.apply(this,arguments)}const Os=h.reactExports.createContext(null),pt=h.reactExports.createContext(null),Zn=h.reactExports.createContext(null),Ir=h.reactExports.createContext({outlet:null,matches:[],isDataRoute:!1});function Ql(e,t){let{relative:r}=t===void 0?{}:t;zr()||ve(!1);let{basename:n,navigator:o}=h.reactExports.useContext(pt),{hash:i,pathname:s,search:a}=Ts(e,{relative:r}),l=s;return n!=="/"&&(l=s==="/"?n:Cs([n,s])),o.createHref({pathname:l,search:a,hash:i})}function zr(){return h.reactExports.useContext(Zn)!=null}function Lr(){return zr()||ve(!1),h.reactExports.useContext(Zn).location}function _s(e){h.reactExports.useContext(pt).static||h.reactExports.useLayoutEffect(e)}function eu(){let{isDataRoute:e}=h.reactExports.useContext(Ir);return e?iu():tu()}function tu(){zr()||ve(!1);let e=h.reactExports.useContext(Os),{basename:t,future:r,navigator:n}=h.reactExports.useContext(pt),{matches:o}=h.reactExports.useContext(Ir),{pathname:i}=Lr(),s=JSON.stringify(Es(o,r.v7_relativeSplatPath)),a=h.reactExports.useRef(!1);return _s(()=>{a.current=!0}),h.reactExports.useCallback(function(u,f){if(f===void 0&&(f={}),!a.current)return;if(typeof u=="number"){n.go(u);return}let c=ks(u,JSON.parse(s),i,f.relative==="path");e==null&&t!=="/"&&(c.pathname=c.pathname==="/"?t:Cs([t,c.pathname])),(f.replace?n.replace:n.push)(c,f.state,f)},[t,n,s,i,e])}function Ts(e,t){let{relative:r}=t===void 0?{}:t,{future:n}=h.reactExports.useContext(pt),{matches:o}=h.reactExports.useContext(Ir),{pathname:i}=Lr(),s=JSON.stringify(Es(o,n.v7_relativeSplatPath));return h.reactExports.useMemo(()=>ks(e,JSON.parse(s),i,r==="path"),[e,s,i,r])}var Ps=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(Ps||{}),$s=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}($s||{});function ru(e){let t=h.reactExports.useContext(Os);return t||ve(!1),t}function nu(e){let t=h.reactExports.useContext(Ir);return t||ve(!1),t}function ou(e){let t=nu(),r=t.matches[t.matches.length-1];return r.route.id||ve(!1),r.route.id}function iu(){let{router:e}=ru(Ps.UseNavigateStable),t=ou($s.UseNavigateStable),r=h.reactExports.useRef(!1);return _s(()=>{r.current=!0}),h.reactExports.useCallback(function(o,i){i===void 0&&(i={}),r.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,vr({fromRouteId:t},i)))},[e,t])}function su(e){let{basename:t="/",children:r=null,location:n,navigationType:o=Je.Pop,navigator:i,static:s=!1,future:a}=e;zr()&&ve(!1);let l=t.replace(/^\/*/,"/"),u=h.reactExports.useMemo(()=>({basename:l,navigator:i,static:s,future:vr({v7_relativeSplatPath:!1},a)}),[l,a,i,s]);typeof n=="string"&&(n=Mr(n));let{pathname:f="/",search:c="",hash:m="",state:v=null,key:p="default"}=n,d=h.reactExports.useMemo(()=>{let g=Ss(f,l);return g==null?null:{location:{pathname:g,search:c,hash:m,state:v,key:p},navigationType:o}},[l,f,c,m,v,p,o]);return d==null?null:h.reactExports.createElement(pt.Provider,{value:u},h.reactExports.createElement(Zn.Provider,{children:r,value:d}))}new Promise(()=>{});/**
19
+ */function je(){return je=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},je.apply(this,arguments)}const di=p.reactExports.createContext(null),Kt=p.reactExports.createContext(null),Zn=p.reactExports.createContext(null),qe=p.reactExports.createContext({outlet:null,matches:[],isDataRoute:!1});function ja(t,e){let{relative:n}=e===void 0?{}:e;Ge()||Q(!1);let{basename:r,navigator:s}=p.reactExports.useContext(Kt),{hash:o,pathname:i,search:a}=mi(t,{relative:n}),l=i;return r!=="/"&&(l=i==="/"?r:fi([r,i])),s.createHref({pathname:l,search:a,hash:o})}function Ge(){return p.reactExports.useContext(Zn)!=null}function Xe(){return Ge()||Q(!1),p.reactExports.useContext(Zn).location}function pi(t){p.reactExports.useContext(Kt).static||p.reactExports.useLayoutEffect(t)}function La(){let{isDataRoute:t}=p.reactExports.useContext(qe);return t?Ba():ka()}function ka(){Ge()||Q(!1);let t=p.reactExports.useContext(di),{basename:e,future:n,navigator:r}=p.reactExports.useContext(Kt),{matches:s}=p.reactExports.useContext(qe),{pathname:o}=Xe(),i=JSON.stringify(ci(s,n.v7_relativeSplatPath)),a=p.reactExports.useRef(!1);return pi(()=>{a.current=!0}),p.reactExports.useCallback(function(u,f){if(f===void 0&&(f={}),!a.current)return;if(typeof u=="number"){r.go(u);return}let c=ui(u,JSON.parse(i),o,f.relative==="path");t==null&&e!=="/"&&(c.pathname=c.pathname==="/"?e:fi([e,c.pathname])),(f.replace?r.replace:r.push)(c,f.state,f)},[e,r,i,o,t])}function mi(t,e){let{relative:n}=e===void 0?{}:e,{future:r}=p.reactExports.useContext(Kt),{matches:s}=p.reactExports.useContext(qe),{pathname:o}=Xe(),i=JSON.stringify(ci(s,r.v7_relativeSplatPath));return p.reactExports.useMemo(()=>ui(t,JSON.parse(i),o,n==="path"),[t,i,o,n])}var gi=function(t){return t.UseBlocker="useBlocker",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate",t}(gi||{}),yi=function(t){return t.UseBlocker="useBlocker",t.UseLoaderData="useLoaderData",t.UseActionData="useActionData",t.UseRouteError="useRouteError",t.UseNavigation="useNavigation",t.UseRouteLoaderData="useRouteLoaderData",t.UseMatches="useMatches",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate",t.UseRouteId="useRouteId",t}(yi||{});function Da(t){let e=p.reactExports.useContext(di);return e||Q(!1),e}function _a(t){let e=p.reactExports.useContext(qe);return e||Q(!1),e}function Na(t){let e=_a(),n=e.matches[e.matches.length-1];return n.route.id||Q(!1),n.route.id}function Ba(){let{router:t}=Da(gi.UseNavigateStable),e=Na(yi.UseNavigateStable),n=p.reactExports.useRef(!1);return pi(()=>{n.current=!0}),p.reactExports.useCallback(function(s,o){o===void 0&&(o={}),n.current&&(typeof s=="number"?t.navigate(s):t.navigate(s,je({fromRouteId:e},o)))},[t,e])}function Fa(t){let{basename:e="/",children:n=null,location:r,navigationType:s=Vt.Pop,navigator:o,static:i=!1,future:a}=t;Ge()&&Q(!1);let l=e.replace(/^\/*/,"/"),u=p.reactExports.useMemo(()=>({basename:l,navigator:o,static:i,future:je({v7_relativeSplatPath:!1},a)}),[l,a,o,i]);typeof r=="string"&&(r=$e(r));let{pathname:f="/",search:c="",hash:h="",state:d=null,key:m="default"}=r,g=p.reactExports.useMemo(()=>{let y=li(f,l);return y==null?null:{location:{pathname:y,search:c,hash:h,state:d,key:m},navigationType:s}},[l,f,c,h,d,m,s]);return g==null?null:p.reactExports.createElement(Kt.Provider,{value:u},p.reactExports.createElement(Zn.Provider,{children:n,value:g}))}new Promise(()=>{});/**
20
20
  * React Router DOM v6.21.3
21
21
  *
22
22
  * Copyright (c) Remix Software Inc.
@@ -25,44 +25,14 @@
25
25
  * LICENSE.md file in the root directory of this source tree.
26
26
  *
27
27
  * @license MIT
28
- */function Pn(){return Pn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Pn.apply(this,arguments)}function au(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,i;for(i=0;i<n.length;i++)o=n[i],!(t.indexOf(o)>=0)&&(r[o]=e[o]);return r}function lu(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function uu(e,t){return e.button===0&&(!t||t==="_self")&&!lu(e)}const cu=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],fu="startTransition",Lo=h.React[fu];function du(e){let{basename:t,children:r,future:n,window:o}=e,i=h.reactExports.useRef();i.current==null&&(i.current=Vl({window:o,v5Compat:!0}));let s=i.current,[a,l]=h.reactExports.useState({action:s.action,location:s.location}),{v7_startTransition:u}=n||{},f=h.reactExports.useCallback(c=>{u&&Lo?Lo(()=>l(c)):l(c)},[l,u]);return h.reactExports.useLayoutEffect(()=>s.listen(f),[s,f]),h.reactExports.createElement(su,{basename:t,children:r,location:a.location,navigationType:a.action,navigator:s,future:n})}const pu=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",hu=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,mu=h.reactExports.forwardRef(function(t,r){let{onClick:n,relative:o,reloadDocument:i,replace:s,state:a,target:l,to:u,preventScrollReset:f,unstable_viewTransition:c}=t,m=au(t,cu),{basename:v}=h.reactExports.useContext(pt),p,d=!1;if(typeof u=="string"&&hu.test(u)&&(p=u,pu))try{let w=new URL(window.location.href),E=u.startsWith("//")?new URL(w.protocol+u):new URL(u),O=Ss(E.pathname,v);E.origin===w.origin&&O!=null?u=O+E.search+E.hash:d=!0}catch{}let g=Ql(u,{relative:o}),y=gu(u,{replace:s,state:a,target:l,preventScrollReset:f,relative:o,unstable_viewTransition:c});function b(w){n&&n(w),w.defaultPrevented||y(w)}return h.reactExports.createElement("a",Pn({},m,{href:p||g,onClick:d||i?n:b,ref:r,target:l}))});var Bo;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Bo||(Bo={}));var Do;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Do||(Do={}));function gu(e,t){let{target:r,replace:n,state:o,preventScrollReset:i,relative:s,unstable_viewTransition:a}=t===void 0?{}:t,l=eu(),u=Lr(),f=Ts(e,{relative:s});return h.reactExports.useCallback(c=>{if(uu(c,r)){c.preventDefault();let m=n!==void 0?n:yr(u)===yr(f);l(e,{replace:m,state:o,preventScrollReset:i,relative:s,unstable_viewTransition:a})}},[u,l,f,n,o,r,e,i,s,a])}var yu=typeof global=="object"&&global&&global.Object===Object&&global;const vu=yu;var xu=typeof self=="object"&&self&&self.Object===Object&&self,bu=vu||xu||Function("return this")();const As=bu;var wu=As.Symbol;const xr=wu;var Fs=Object.prototype,Su=Fs.hasOwnProperty,Eu=Fs.toString,xt=xr?xr.toStringTag:void 0;function ku(e){var t=Su.call(e,xt),r=e[xt];try{e[xt]=void 0;var n=!0}catch{}var o=Eu.call(e);return n&&(t?e[xt]=r:delete e[xt]),o}var Cu=Object.prototype,Ru=Cu.toString;function Ou(e){return Ru.call(e)}var _u="[object Null]",Tu="[object Undefined]",Wo=xr?xr.toStringTag:void 0;function Pu(e){return e==null?e===void 0?Tu:_u:Wo&&Wo in Object(e)?ku(e):Ou(e)}function $u(e){return e!=null&&typeof e=="object"}var Au="[object Symbol]";function Fu(e){return typeof e=="symbol"||$u(e)&&Pu(e)==Au}var ju=/\s/;function Nu(e){for(var t=e.length;t--&&ju.test(e.charAt(t)););return t}var Mu=/^\s+/;function Iu(e){return e&&e.slice(0,Nu(e)+1).replace(Mu,"")}function br(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Uo=0/0,zu=/^[-+]0x[0-9a-f]+$/i,Lu=/^0b[01]+$/i,Bu=/^0o[0-7]+$/i,Du=parseInt;function Vo(e){if(typeof e=="number")return e;if(Fu(e))return Uo;if(br(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=br(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Iu(e);var r=Lu.test(e);return r||Bu.test(e)?Du(e.slice(2),r?2:8):zu.test(e)?Uo:+e}var Wu=function(){return As.Date.now()};const un=Wu;var Uu="Expected a function",Vu=Math.max,Hu=Math.min;function Zt(e,t,r){var n,o,i,s,a,l,u=0,f=!1,c=!1,m=!0;if(typeof e!="function")throw new TypeError(Uu);t=Vo(t)||0,br(r)&&(f=!!r.leading,c="maxWait"in r,i=c?Vu(Vo(r.maxWait)||0,t):i,m="trailing"in r?!!r.trailing:m);function v(k){var R=n,H=o;return n=o=void 0,u=k,s=e.apply(H,R),s}function p(k){return u=k,a=setTimeout(y,t),f?v(k):s}function d(k){var R=k-l,H=k-u,be=t-R;return c?Hu(be,i-H):be}function g(k){var R=k-l,H=k-u;return l===void 0||R>=t||R<0||c&&H>=i}function y(){var k=un();if(g(k))return b(k);a=setTimeout(y,d(k))}function b(k){return a=void 0,m&&n?v(k):(n=o=void 0,s)}function w(){a!==void 0&&clearTimeout(a),u=0,n=l=o=a=void 0}function E(){return a===void 0?s:b(un())}function O(){var k=un(),R=g(k);if(n=arguments,o=this,l=k,R){if(a===void 0)return p(l);if(c)return clearTimeout(a),a=setTimeout(y,t),v(l)}return a===void 0&&(a=setTimeout(y,t)),s}return O.cancel=w,O.flush=E,O}var qu="Expected a function";function Ku(e,t,r){var n=!0,o=!0;if(typeof e!="function")throw new TypeError(qu);return br(r)&&(n="leading"in r?!!r.leading:n,o="trailing"in r?!!r.trailing:o),Zt(e,t,{leading:n,maxWait:t,trailing:o})}var Gu=!!(typeof window<"u"&&window.document&&window.document.createElement),Xu=Gu;const js=h.getDefaultExportFromCjs(Xu);var st=function(){return st=Object.assign||function(t){for(var r,n=1,o=arguments.length;n<o;n++){r=arguments[n];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},st.apply(this,arguments)},ot=null,Ho=null;js&&window.addEventListener("resize",function(){Ho!==window.devicePixelRatio&&(Ho=window.devicePixelRatio,ot=null)});function qo(){if(ot===null){if(typeof document>"u")return ot=0,ot;var e=document.body,t=document.createElement("div");t.classList.add("simplebar-hide-scrollbar"),e.appendChild(t);var r=t.getBoundingClientRect().right;e.removeChild(t),ot=r}return ot}function Ns(e){return!e||!e.ownerDocument||!e.ownerDocument.defaultView?window:e.ownerDocument.defaultView}function Ms(e){return!e||!e.ownerDocument?document:e.ownerDocument}var Is=function(e){var t={},r=Array.prototype.reduce.call(e,function(n,o){var i=o.name.match(/data-simplebar-(.+)/);if(i){var s=i[1].replace(/\W+(.)/g,function(a,l){return l.toUpperCase()});switch(o.value){case"true":n[s]=!0;break;case"false":n[s]=!1;break;case void 0:n[s]=!0;break;default:n[s]=o.value}}return n},t);return r};function zs(e,t){var r;e&&(r=e.classList).add.apply(r,t.split(" "))}function Ls(e,t){e&&t.split(" ").forEach(function(r){e.classList.remove(r)})}function Bs(e){return".".concat(e.split(" ").join("."))}var Ju=Object.freeze({__proto__:null,getElementWindow:Ns,getElementDocument:Ms,getOptions:Is,addClasses:zs,removeClasses:Ls,classNamesToQuery:Bs}),Ie=Ns,cn=Ms,Yu=Is,ze=zs,Le=Ls,ee=Bs,qt=function(){function e(t,r){r===void 0&&(r={});var n=this;if(this.removePreventClickId=null,this.minScrollbarWidth=20,this.stopScrollDelay=175,this.isScrolling=!1,this.isMouseEntering=!1,this.scrollXTicking=!1,this.scrollYTicking=!1,this.wrapperEl=null,this.contentWrapperEl=null,this.contentEl=null,this.offsetEl=null,this.maskEl=null,this.placeholderEl=null,this.heightAutoObserverWrapperEl=null,this.heightAutoObserverEl=null,this.rtlHelpers=null,this.scrollbarWidth=0,this.resizeObserver=null,this.mutationObserver=null,this.elStyles=null,this.isRtl=null,this.mouseX=0,this.mouseY=0,this.onMouseMove=function(){},this.onWindowResize=function(){},this.onStopScrolling=function(){},this.onMouseEntered=function(){},this.onScroll=function(){var o=Ie(n.el);n.scrollXTicking||(o.requestAnimationFrame(n.scrollX),n.scrollXTicking=!0),n.scrollYTicking||(o.requestAnimationFrame(n.scrollY),n.scrollYTicking=!0),n.isScrolling||(n.isScrolling=!0,ze(n.el,n.classNames.scrolling)),n.showScrollbar("x"),n.showScrollbar("y"),n.onStopScrolling()},this.scrollX=function(){n.axis.x.isOverflowing&&n.positionScrollbar("x"),n.scrollXTicking=!1},this.scrollY=function(){n.axis.y.isOverflowing&&n.positionScrollbar("y"),n.scrollYTicking=!1},this._onStopScrolling=function(){Le(n.el,n.classNames.scrolling),n.options.autoHide&&(n.hideScrollbar("x"),n.hideScrollbar("y")),n.isScrolling=!1},this.onMouseEnter=function(){n.isMouseEntering||(ze(n.el,n.classNames.mouseEntered),n.showScrollbar("x"),n.showScrollbar("y"),n.isMouseEntering=!0),n.onMouseEntered()},this._onMouseEntered=function(){Le(n.el,n.classNames.mouseEntered),n.options.autoHide&&(n.hideScrollbar("x"),n.hideScrollbar("y")),n.isMouseEntering=!1},this._onMouseMove=function(o){n.mouseX=o.clientX,n.mouseY=o.clientY,(n.axis.x.isOverflowing||n.axis.x.forceVisible)&&n.onMouseMoveForAxis("x"),(n.axis.y.isOverflowing||n.axis.y.forceVisible)&&n.onMouseMoveForAxis("y")},this.onMouseLeave=function(){n.onMouseMove.cancel(),(n.axis.x.isOverflowing||n.axis.x.forceVisible)&&n.onMouseLeaveForAxis("x"),(n.axis.y.isOverflowing||n.axis.y.forceVisible)&&n.onMouseLeaveForAxis("y"),n.mouseX=-1,n.mouseY=-1},this._onWindowResize=function(){n.scrollbarWidth=n.getScrollbarWidth(),n.hideNativeScrollbar()},this.onPointerEvent=function(o){if(!(!n.axis.x.track.el||!n.axis.y.track.el||!n.axis.x.scrollbar.el||!n.axis.y.scrollbar.el)){var i,s;n.axis.x.track.rect=n.axis.x.track.el.getBoundingClientRect(),n.axis.y.track.rect=n.axis.y.track.el.getBoundingClientRect(),(n.axis.x.isOverflowing||n.axis.x.forceVisible)&&(i=n.isWithinBounds(n.axis.x.track.rect)),(n.axis.y.isOverflowing||n.axis.y.forceVisible)&&(s=n.isWithinBounds(n.axis.y.track.rect)),(i||s)&&(o.stopPropagation(),o.type==="pointerdown"&&o.pointerType!=="touch"&&(i&&(n.axis.x.scrollbar.rect=n.axis.x.scrollbar.el.getBoundingClientRect(),n.isWithinBounds(n.axis.x.scrollbar.rect)?n.onDragStart(o,"x"):n.onTrackClick(o,"x")),s&&(n.axis.y.scrollbar.rect=n.axis.y.scrollbar.el.getBoundingClientRect(),n.isWithinBounds(n.axis.y.scrollbar.rect)?n.onDragStart(o,"y"):n.onTrackClick(o,"y"))))}},this.drag=function(o){var i,s,a,l,u,f,c,m,v,p,d;if(!(!n.draggedAxis||!n.contentWrapperEl)){var g,y=n.axis[n.draggedAxis].track,b=(s=(i=y.rect)===null||i===void 0?void 0:i[n.axis[n.draggedAxis].sizeAttr])!==null&&s!==void 0?s:0,w=n.axis[n.draggedAxis].scrollbar,E=(l=(a=n.contentWrapperEl)===null||a===void 0?void 0:a[n.axis[n.draggedAxis].scrollSizeAttr])!==null&&l!==void 0?l:0,O=parseInt((f=(u=n.elStyles)===null||u===void 0?void 0:u[n.axis[n.draggedAxis].sizeAttr])!==null&&f!==void 0?f:"0px",10);o.preventDefault(),o.stopPropagation(),n.draggedAxis==="y"?g=o.pageY:g=o.pageX;var k=g-((m=(c=y.rect)===null||c===void 0?void 0:c[n.axis[n.draggedAxis].offsetAttr])!==null&&m!==void 0?m:0)-n.axis[n.draggedAxis].dragOffset;k=n.draggedAxis==="x"&&n.isRtl?((p=(v=y.rect)===null||v===void 0?void 0:v[n.axis[n.draggedAxis].sizeAttr])!==null&&p!==void 0?p:0)-w.size-k:k;var R=k/(b-w.size),H=R*(E-O);n.draggedAxis==="x"&&n.isRtl&&(H=!((d=e.getRtlHelpers())===null||d===void 0)&&d.isScrollingToNegative?-H:H),n.contentWrapperEl[n.axis[n.draggedAxis].scrollOffsetAttr]=H}},this.onEndDrag=function(o){var i=cn(n.el),s=Ie(n.el);o.preventDefault(),o.stopPropagation(),Le(n.el,n.classNames.dragging),i.removeEventListener("mousemove",n.drag,!0),i.removeEventListener("mouseup",n.onEndDrag,!0),n.removePreventClickId=s.setTimeout(function(){i.removeEventListener("click",n.preventClick,!0),i.removeEventListener("dblclick",n.preventClick,!0),n.removePreventClickId=null})},this.preventClick=function(o){o.preventDefault(),o.stopPropagation()},this.el=t,this.options=st(st({},e.defaultOptions),r),this.classNames=st(st({},e.defaultOptions.classNames),r.classNames),this.axis={x:{scrollOffsetAttr:"scrollLeft",sizeAttr:"width",scrollSizeAttr:"scrollWidth",offsetSizeAttr:"offsetWidth",offsetAttr:"left",overflowAttr:"overflowX",dragOffset:0,isOverflowing:!0,forceVisible:!1,track:{size:null,el:null,rect:null,isVisible:!1},scrollbar:{size:null,el:null,rect:null,isVisible:!1}},y:{scrollOffsetAttr:"scrollTop",sizeAttr:"height",scrollSizeAttr:"scrollHeight",offsetSizeAttr:"offsetHeight",offsetAttr:"top",overflowAttr:"overflowY",dragOffset:0,isOverflowing:!0,forceVisible:!1,track:{size:null,el:null,rect:null,isVisible:!1},scrollbar:{size:null,el:null,rect:null,isVisible:!1}}},typeof this.el!="object"||!this.el.nodeName)throw new Error("Argument passed to SimpleBar must be an HTML element instead of ".concat(this.el));this.onMouseMove=Ku(this._onMouseMove,64),this.onWindowResize=Zt(this._onWindowResize,64,{leading:!0}),this.onStopScrolling=Zt(this._onStopScrolling,this.stopScrollDelay),this.onMouseEntered=Zt(this._onMouseEntered,this.stopScrollDelay),this.init()}return e.getRtlHelpers=function(){if(e.rtlHelpers)return e.rtlHelpers;var t=document.createElement("div");t.innerHTML='<div class="simplebar-dummy-scrollbar-size"><div></div></div>';var r=t.firstElementChild,n=r==null?void 0:r.firstElementChild;if(!n)return null;document.body.appendChild(r),r.scrollLeft=0;var o=e.getOffset(r),i=e.getOffset(n);r.scrollLeft=-999;var s=e.getOffset(n);return document.body.removeChild(r),e.rtlHelpers={isScrollOriginAtZero:o.left!==i.left,isScrollingToNegative:i.left!==s.left},e.rtlHelpers},e.prototype.getScrollbarWidth=function(){try{return this.contentWrapperEl&&getComputedStyle(this.contentWrapperEl,"::-webkit-scrollbar").display==="none"||"scrollbarWidth"in document.documentElement.style||"-ms-overflow-style"in document.documentElement.style?0:qo()}catch{return qo()}},e.getOffset=function(t){var r=t.getBoundingClientRect(),n=cn(t),o=Ie(t);return{top:r.top+(o.pageYOffset||n.documentElement.scrollTop),left:r.left+(o.pageXOffset||n.documentElement.scrollLeft)}},e.prototype.init=function(){js&&(this.initDOM(),this.rtlHelpers=e.getRtlHelpers(),this.scrollbarWidth=this.getScrollbarWidth(),this.recalculate(),this.initListeners())},e.prototype.initDOM=function(){var t,r;this.wrapperEl=this.el.querySelector(ee(this.classNames.wrapper)),this.contentWrapperEl=this.options.scrollableNode||this.el.querySelector(ee(this.classNames.contentWrapper)),this.contentEl=this.options.contentNode||this.el.querySelector(ee(this.classNames.contentEl)),this.offsetEl=this.el.querySelector(ee(this.classNames.offset)),this.maskEl=this.el.querySelector(ee(this.classNames.mask)),this.placeholderEl=this.findChild(this.wrapperEl,ee(this.classNames.placeholder)),this.heightAutoObserverWrapperEl=this.el.querySelector(ee(this.classNames.heightAutoObserverWrapperEl)),this.heightAutoObserverEl=this.el.querySelector(ee(this.classNames.heightAutoObserverEl)),this.axis.x.track.el=this.findChild(this.el,"".concat(ee(this.classNames.track)).concat(ee(this.classNames.horizontal))),this.axis.y.track.el=this.findChild(this.el,"".concat(ee(this.classNames.track)).concat(ee(this.classNames.vertical))),this.axis.x.scrollbar.el=((t=this.axis.x.track.el)===null||t===void 0?void 0:t.querySelector(ee(this.classNames.scrollbar)))||null,this.axis.y.scrollbar.el=((r=this.axis.y.track.el)===null||r===void 0?void 0:r.querySelector(ee(this.classNames.scrollbar)))||null,this.options.autoHide||(ze(this.axis.x.scrollbar.el,this.classNames.visible),ze(this.axis.y.scrollbar.el,this.classNames.visible))},e.prototype.initListeners=function(){var t=this,r,n=Ie(this.el);if(this.el.addEventListener("mouseenter",this.onMouseEnter),this.el.addEventListener("pointerdown",this.onPointerEvent,!0),this.el.addEventListener("mousemove",this.onMouseMove),this.el.addEventListener("mouseleave",this.onMouseLeave),(r=this.contentWrapperEl)===null||r===void 0||r.addEventListener("scroll",this.onScroll),n.addEventListener("resize",this.onWindowResize),!!this.contentEl){if(window.ResizeObserver){var o=!1,i=n.ResizeObserver||ResizeObserver;this.resizeObserver=new i(function(){o&&n.requestAnimationFrame(function(){t.recalculate()})}),this.resizeObserver.observe(this.el),this.resizeObserver.observe(this.contentEl),n.requestAnimationFrame(function(){o=!0})}this.mutationObserver=new n.MutationObserver(function(){n.requestAnimationFrame(function(){t.recalculate()})}),this.mutationObserver.observe(this.contentEl,{childList:!0,subtree:!0,characterData:!0})}},e.prototype.recalculate=function(){if(!(!this.heightAutoObserverEl||!this.contentEl||!this.contentWrapperEl||!this.wrapperEl||!this.placeholderEl)){var t=Ie(this.el);this.elStyles=t.getComputedStyle(this.el),this.isRtl=this.elStyles.direction==="rtl";var r=this.contentEl.offsetWidth,n=this.heightAutoObserverEl.offsetHeight<=1,o=this.heightAutoObserverEl.offsetWidth<=1||r>0,i=this.contentWrapperEl.offsetWidth,s=this.elStyles.overflowX,a=this.elStyles.overflowY;this.contentEl.style.padding="".concat(this.elStyles.paddingTop," ").concat(this.elStyles.paddingRight," ").concat(this.elStyles.paddingBottom," ").concat(this.elStyles.paddingLeft),this.wrapperEl.style.margin="-".concat(this.elStyles.paddingTop," -").concat(this.elStyles.paddingRight," -").concat(this.elStyles.paddingBottom," -").concat(this.elStyles.paddingLeft);var l=this.contentEl.scrollHeight,u=this.contentEl.scrollWidth;this.contentWrapperEl.style.height=n?"auto":"100%",this.placeholderEl.style.width=o?"".concat(r||u,"px"):"auto",this.placeholderEl.style.height="".concat(l,"px");var f=this.contentWrapperEl.offsetHeight;this.axis.x.isOverflowing=r!==0&&u>r,this.axis.y.isOverflowing=l>f,this.axis.x.isOverflowing=s==="hidden"?!1:this.axis.x.isOverflowing,this.axis.y.isOverflowing=a==="hidden"?!1:this.axis.y.isOverflowing,this.axis.x.forceVisible=this.options.forceVisible==="x"||this.options.forceVisible===!0,this.axis.y.forceVisible=this.options.forceVisible==="y"||this.options.forceVisible===!0,this.hideNativeScrollbar();var c=this.axis.x.isOverflowing?this.scrollbarWidth:0,m=this.axis.y.isOverflowing?this.scrollbarWidth:0;this.axis.x.isOverflowing=this.axis.x.isOverflowing&&u>i-m,this.axis.y.isOverflowing=this.axis.y.isOverflowing&&l>f-c,this.axis.x.scrollbar.size=this.getScrollbarSize("x"),this.axis.y.scrollbar.size=this.getScrollbarSize("y"),this.axis.x.scrollbar.el&&(this.axis.x.scrollbar.el.style.width="".concat(this.axis.x.scrollbar.size,"px")),this.axis.y.scrollbar.el&&(this.axis.y.scrollbar.el.style.height="".concat(this.axis.y.scrollbar.size,"px")),this.positionScrollbar("x"),this.positionScrollbar("y"),this.toggleTrackVisibility("x"),this.toggleTrackVisibility("y")}},e.prototype.getScrollbarSize=function(t){var r,n;if(t===void 0&&(t="y"),!this.axis[t].isOverflowing||!this.contentEl)return 0;var o=this.contentEl[this.axis[t].scrollSizeAttr],i=(n=(r=this.axis[t].track.el)===null||r===void 0?void 0:r[this.axis[t].offsetSizeAttr])!==null&&n!==void 0?n:0,s=i/o,a;return a=Math.max(~~(s*i),this.options.scrollbarMinSize),this.options.scrollbarMaxSize&&(a=Math.min(a,this.options.scrollbarMaxSize)),a},e.prototype.positionScrollbar=function(t){var r,n,o;t===void 0&&(t="y");var i=this.axis[t].scrollbar;if(!(!this.axis[t].isOverflowing||!this.contentWrapperEl||!i.el||!this.elStyles)){var s=this.contentWrapperEl[this.axis[t].scrollSizeAttr],a=((r=this.axis[t].track.el)===null||r===void 0?void 0:r[this.axis[t].offsetSizeAttr])||0,l=parseInt(this.elStyles[this.axis[t].sizeAttr],10),u=this.contentWrapperEl[this.axis[t].scrollOffsetAttr];u=t==="x"&&this.isRtl&&(!((n=e.getRtlHelpers())===null||n===void 0)&&n.isScrollOriginAtZero)?-u:u,t==="x"&&this.isRtl&&(u=!((o=e.getRtlHelpers())===null||o===void 0)&&o.isScrollingToNegative?u:-u);var f=u/(s-l),c=~~((a-i.size)*f);c=t==="x"&&this.isRtl?-c+(a-i.size):c,i.el.style.transform=t==="x"?"translate3d(".concat(c,"px, 0, 0)"):"translate3d(0, ".concat(c,"px, 0)")}},e.prototype.toggleTrackVisibility=function(t){t===void 0&&(t="y");var r=this.axis[t].track.el,n=this.axis[t].scrollbar.el;!r||!n||!this.contentWrapperEl||(this.axis[t].isOverflowing||this.axis[t].forceVisible?(r.style.visibility="visible",this.contentWrapperEl.style[this.axis[t].overflowAttr]="scroll",this.el.classList.add("".concat(this.classNames.scrollable,"-").concat(t))):(r.style.visibility="hidden",this.contentWrapperEl.style[this.axis[t].overflowAttr]="hidden",this.el.classList.remove("".concat(this.classNames.scrollable,"-").concat(t))),this.axis[t].isOverflowing?n.style.display="block":n.style.display="none")},e.prototype.showScrollbar=function(t){t===void 0&&(t="y"),this.axis[t].isOverflowing&&!this.axis[t].scrollbar.isVisible&&(ze(this.axis[t].scrollbar.el,this.classNames.visible),this.axis[t].scrollbar.isVisible=!0)},e.prototype.hideScrollbar=function(t){t===void 0&&(t="y"),this.axis[t].isOverflowing&&this.axis[t].scrollbar.isVisible&&(Le(this.axis[t].scrollbar.el,this.classNames.visible),this.axis[t].scrollbar.isVisible=!1)},e.prototype.hideNativeScrollbar=function(){this.offsetEl&&(this.offsetEl.style[this.isRtl?"left":"right"]=this.axis.y.isOverflowing||this.axis.y.forceVisible?"-".concat(this.scrollbarWidth,"px"):"0px",this.offsetEl.style.bottom=this.axis.x.isOverflowing||this.axis.x.forceVisible?"-".concat(this.scrollbarWidth,"px"):"0px")},e.prototype.onMouseMoveForAxis=function(t){t===void 0&&(t="y");var r=this.axis[t];!r.track.el||!r.scrollbar.el||(r.track.rect=r.track.el.getBoundingClientRect(),r.scrollbar.rect=r.scrollbar.el.getBoundingClientRect(),this.isWithinBounds(r.track.rect)?(this.showScrollbar(t),ze(r.track.el,this.classNames.hover),this.isWithinBounds(r.scrollbar.rect)?ze(r.scrollbar.el,this.classNames.hover):Le(r.scrollbar.el,this.classNames.hover)):(Le(r.track.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(t)))},e.prototype.onMouseLeaveForAxis=function(t){t===void 0&&(t="y"),Le(this.axis[t].track.el,this.classNames.hover),Le(this.axis[t].scrollbar.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(t)},e.prototype.onDragStart=function(t,r){var n;r===void 0&&(r="y");var o=cn(this.el),i=Ie(this.el),s=this.axis[r].scrollbar,a=r==="y"?t.pageY:t.pageX;this.axis[r].dragOffset=a-(((n=s.rect)===null||n===void 0?void 0:n[this.axis[r].offsetAttr])||0),this.draggedAxis=r,ze(this.el,this.classNames.dragging),o.addEventListener("mousemove",this.drag,!0),o.addEventListener("mouseup",this.onEndDrag,!0),this.removePreventClickId===null?(o.addEventListener("click",this.preventClick,!0),o.addEventListener("dblclick",this.preventClick,!0)):(i.clearTimeout(this.removePreventClickId),this.removePreventClickId=null)},e.prototype.onTrackClick=function(t,r){var n=this,o,i,s,a;r===void 0&&(r="y");var l=this.axis[r];if(!(!this.options.clickOnTrack||!l.scrollbar.el||!this.contentWrapperEl)){t.preventDefault();var u=Ie(this.el);this.axis[r].scrollbar.rect=l.scrollbar.el.getBoundingClientRect();var f=this.axis[r].scrollbar,c=(i=(o=f.rect)===null||o===void 0?void 0:o[this.axis[r].offsetAttr])!==null&&i!==void 0?i:0,m=parseInt((a=(s=this.elStyles)===null||s===void 0?void 0:s[this.axis[r].sizeAttr])!==null&&a!==void 0?a:"0px",10),v=this.contentWrapperEl[this.axis[r].scrollOffsetAttr],p=r==="y"?this.mouseY-c:this.mouseX-c,d=p<0?-1:1,g=d===-1?v-m:v+m,y=40,b=function(){n.contentWrapperEl&&(d===-1?v>g&&(v-=y,n.contentWrapperEl[n.axis[r].scrollOffsetAttr]=v,u.requestAnimationFrame(b)):v<g&&(v+=y,n.contentWrapperEl[n.axis[r].scrollOffsetAttr]=v,u.requestAnimationFrame(b)))};b()}},e.prototype.getContentElement=function(){return this.contentEl},e.prototype.getScrollElement=function(){return this.contentWrapperEl},e.prototype.removeListeners=function(){var t=Ie(this.el);this.el.removeEventListener("mouseenter",this.onMouseEnter),this.el.removeEventListener("pointerdown",this.onPointerEvent,!0),this.el.removeEventListener("mousemove",this.onMouseMove),this.el.removeEventListener("mouseleave",this.onMouseLeave),this.contentWrapperEl&&this.contentWrapperEl.removeEventListener("scroll",this.onScroll),t.removeEventListener("resize",this.onWindowResize),this.mutationObserver&&this.mutationObserver.disconnect(),this.resizeObserver&&this.resizeObserver.disconnect(),this.onMouseMove.cancel(),this.onWindowResize.cancel(),this.onStopScrolling.cancel(),this.onMouseEntered.cancel()},e.prototype.unMount=function(){this.removeListeners()},e.prototype.isWithinBounds=function(t){return this.mouseX>=t.left&&this.mouseX<=t.left+t.width&&this.mouseY>=t.top&&this.mouseY<=t.top+t.height},e.prototype.findChild=function(t,r){var n=t.matches||t.webkitMatchesSelector||t.mozMatchesSelector||t.msMatchesSelector;return Array.prototype.filter.call(t.children,function(o){return n.call(o,r)})[0]},e.rtlHelpers=null,e.defaultOptions={forceVisible:!1,clickOnTrack:!0,scrollbarMinSize:25,scrollbarMaxSize:0,ariaLabel:"scrollable content",classNames:{contentEl:"simplebar-content",contentWrapper:"simplebar-content-wrapper",offset:"simplebar-offset",mask:"simplebar-mask",wrapper:"simplebar-wrapper",placeholder:"simplebar-placeholder",scrollbar:"simplebar-scrollbar",track:"simplebar-track",heightAutoObserverWrapperEl:"simplebar-height-auto-observer-wrapper",heightAutoObserverEl:"simplebar-height-auto-observer",visible:"simplebar-visible",horizontal:"simplebar-horizontal",vertical:"simplebar-vertical",hover:"simplebar-hover",dragging:"simplebar-dragging",scrolling:"simplebar-scrolling",scrollable:"simplebar-scrollable",mouseEntered:"simplebar-mouse-entered"},scrollableNode:null,contentNode:null,autoHide:!0},e.getOptions=Yu,e.helpers=Ju,e}(),ae=function(){return ae=Object.assign||function(t){for(var r,n=1,o=arguments.length;n<o;n++){r=arguments[n];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},ae.apply(this,arguments)};function Zu(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}var Ds=h.reactExports.forwardRef(function(e,t){var r=e.children,n=e.scrollableNodeProps,o=n===void 0?{}:n,i=Zu(e,["children","scrollableNodeProps"]),s=h.reactExports.useRef(),a=h.reactExports.useRef(),l=h.reactExports.useRef(),u={},f={};Object.keys(i).forEach(function(v){Object.prototype.hasOwnProperty.call(qt.defaultOptions,v)?u[v]=i[v]:f[v]=i[v]});var c=ae(ae({},qt.defaultOptions.classNames),u.classNames),m=ae(ae({},o),{className:"".concat(c.contentWrapper).concat(o.className?" ".concat(o.className):""),tabIndex:0,role:"region","aria-label":u.ariaLabel||qt.defaultOptions.ariaLabel});return h.reactExports.useEffect(function(){var v;return a.current=m.ref?m.ref.current:a.current,s.current&&(v=new qt(s.current,ae(ae(ae({},u),a.current&&{scrollableNode:a.current}),l.current&&{contentNode:l.current})),typeof t=="function"?t(v):t&&(t.current=v)),function(){v==null||v.unMount(),v=null,typeof t=="function"&&t(null)}},[]),h.reactExports.createElement("div",ae({"data-simplebar":"init",ref:s},f),h.reactExports.createElement("div",{className:c.wrapper},h.reactExports.createElement("div",{className:c.heightAutoObserverWrapperEl},h.reactExports.createElement("div",{className:c.heightAutoObserverEl})),h.reactExports.createElement("div",{className:c.mask},h.reactExports.createElement("div",{className:c.offset},typeof r=="function"?r({scrollableNodeRef:a,scrollableNodeProps:ae(ae({},m),{ref:a}),contentNodeRef:l,contentNodeProps:{className:c.contentEl,ref:l}}):h.reactExports.createElement("div",ae({},m),h.reactExports.createElement("div",{className:c.contentEl},r)))),h.reactExports.createElement("div",{className:c.placeholder})),h.reactExports.createElement("div",{className:"".concat(c.track," simplebar-horizontal")},h.reactExports.createElement("div",{className:c.scrollbar})),h.reactExports.createElement("div",{className:"".concat(c.track," simplebar-vertical")},h.reactExports.createElement("div",{className:c.scrollbar})))});Ds.displayName="SimpleBar";function Qu(e){const{children:t,parentRef:r,onlyChild:n}=e,[o,i]=h.reactExports.useState({top:0,left:0});return h.reactExports.useLayoutEffect(()=>{if(r.current){const s=r.current.getBoundingClientRect();i({top:s.top,left:s.left+s.width})}},[r]),n?t:h.reactDomExports.createPortal(h.jsxRuntimeExports.jsx(h.motion.div,{style:{position:"fixed",top:o.top,left:o.left},children:t}),document.body)}var Qn={},Ws={exports:{}};(function(e){function t(r){return r&&r.__esModule?r:{default:r}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(Ws);var ec=Ws.exports,fn={};function $(){return $=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},$.apply(this,arguments)}function Ue(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Us(e){if(!Ue(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=Us(e[r])}),t}function xe(e,t,r={clone:!0}){const n=r.clone?$({},e):e;return Ue(e)&&Ue(t)&&Object.keys(t).forEach(o=>{o!=="__proto__"&&(Ue(t[o])&&o in e&&Ue(e[o])?n[o]=xe(e[o],t[o],r):r.clone?n[o]=Ue(t[o])?Us(t[o]):t[o]:n[o]=t[o])}),n}var Vs={exports:{}},tc="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",rc=tc,nc=rc;function Hs(){}function qs(){}qs.resetWarningCache=Hs;var oc=function(){function e(n,o,i,s,a,l){if(l!==nc){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}e.isRequired=e;function t(){return e}var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:qs,resetWarningCache:Hs};return r.PropTypes=r,r};Vs.exports=oc();var ic=Vs.exports;const ye=h.getDefaultExportFromCjs(ic);function ut(e){let t="https://mui.com/production-error/?code="+e;for(let r=1;r<arguments.length;r+=1)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}function _e(e){if(typeof e!="string")throw new Error(ut(7));return e.charAt(0).toUpperCase()+e.slice(1)}function sc(...e){return e.reduce((t,r)=>r==null?t:function(...o){t.apply(this,o),r.apply(this,o)},()=>{})}function ac(e,t=166){let r;function n(...o){const i=()=>{e.apply(this,o)};clearTimeout(r),r=setTimeout(i,t)}return n.clear=()=>{clearTimeout(r)},n}function lc(e,t){return()=>null}function uc(e,t){var r,n;return h.reactExports.isValidElement(e)&&t.indexOf((r=e.type.muiName)!=null?r:(n=e.type)==null||(n=n._payload)==null||(n=n.value)==null?void 0:n.muiName)!==-1}function Ks(e){return e&&e.ownerDocument||document}function cc(e){return Ks(e).defaultView||window}function fc(e,t){return()=>null}function Gs(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const dc=typeof window<"u"?h.reactExports.useLayoutEffect:h.reactExports.useEffect,Xs=dc;let Ko=0;function pc(e){const[t,r]=h.reactExports.useState(e),n=e||t;return h.reactExports.useEffect(()=>{t==null&&(Ko+=1,r(`mui-${Ko}`))},[t]),n}const Go=h.React["useId".toString()];function hc(e){if(Go!==void 0){const t=Go();return e??t}return pc(e)}function mc(e,t,r,n,o){return null}function gc({controlled:e,default:t,name:r,state:n="value"}){const{current:o}=h.reactExports.useRef(e!==void 0),[i,s]=h.reactExports.useState(t),a=o?e:i,l=h.reactExports.useCallback(u=>{o||s(u)},[]);return[a,l]}function yc(e){const t=h.reactExports.useRef(e);return Xs(()=>{t.current=e}),h.reactExports.useRef((...r)=>(0,t.current)(...r)).current}function vc(...e){return h.reactExports.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(r=>{Gs(r,t)})},e)}let Br=!0,$n=!1,Xo;const xc={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function bc(e){const{type:t,tagName:r}=e;return!!(r==="INPUT"&&xc[t]&&!e.readOnly||r==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function wc(e){e.metaKey||e.altKey||e.ctrlKey||(Br=!0)}function dn(){Br=!1}function Sc(){this.visibilityState==="hidden"&&$n&&(Br=!0)}function Ec(e){e.addEventListener("keydown",wc,!0),e.addEventListener("mousedown",dn,!0),e.addEventListener("pointerdown",dn,!0),e.addEventListener("touchstart",dn,!0),e.addEventListener("visibilitychange",Sc,!0)}function kc(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return Br||bc(t)}function Cc(){const e=h.reactExports.useCallback(o=>{o!=null&&Ec(o.ownerDocument)},[]),t=h.reactExports.useRef(!1);function r(){return t.current?($n=!0,window.clearTimeout(Xo),Xo=window.setTimeout(()=>{$n=!1},100),t.current=!1,!0):!1}function n(o){return kc(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:n,onBlur:r,ref:e}}function Js(e,t){const r=$({},t);return Object.keys(e).forEach(n=>{if(n.toString().match(/^(components|slots)$/))r[n]=$({},e[n],r[n]);else if(n.toString().match(/^(componentsProps|slotProps)$/)){const o=e[n]||{},i=t[n];r[n]={},!i||!Object.keys(i)?r[n]=o:!o||!Object.keys(o)?r[n]=i:(r[n]=$({},i),Object.keys(o).forEach(s=>{r[n][s]=Js(o[s],i[s])}))}else r[n]===void 0&&(r[n]=e[n])}),r}function Rc(e,t,r=void 0){const n={};return Object.keys(e).forEach(o=>{n[o]=e[o].reduce((i,s)=>{if(s){const a=t(s);a!==""&&i.push(a),r&&r[s]&&i.push(r[s])}return i},[]).join(" ")}),n}const Jo=e=>e,Oc=()=>{let e=Jo;return{configure(t){e=t},generate(t){return e(t)},reset(){e=Jo}}},_c=Oc(),Ys=_c,Tc={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function Zs(e,t,r="Mui"){const n=Tc[t];return n?`${r}-${n}`:`${Ys.generate(e)}-${t}`}function Pc(e,t,r="Mui"){const n={};return t.forEach(o=>{n[o]=Zs(e,o,r)}),n}function Me(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,i;for(i=0;i<n.length;i++)o=n[i],!(t.indexOf(o)>=0)&&(r[o]=e[o]);return r}function Qs(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=Qs(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function $c(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=Qs(e))&&(n&&(n+=" "),n+=t);return n}function ea(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var Ac=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Fc=ea(function(e){return Ac.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function jc(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function Nc(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var Mc=function(){function e(r){var n=this;this._insertTag=function(o){var i;n.tags.length===0?n.insertionPoint?i=n.insertionPoint.nextSibling:n.prepend?i=n.container.firstChild:i=n.before:i=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(o,i),n.tags.push(o)},this.isSpeedy=r.speedy===void 0?!0:r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(n){n.forEach(this._insertTag)},t.insert=function(n){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(Nc(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var i=jc(o);try{i.insertRule(n,i.cssRules.length)}catch{}}else o.appendChild(document.createTextNode(n));this.ctr++},t.flush=function(){this.tags.forEach(function(n){return n.parentNode&&n.parentNode.removeChild(n)}),this.tags=[],this.ctr=0},e}(),J="-ms-",wr="-moz-",j="-webkit-",ta="comm",eo="rule",to="decl",Ic="@import",ra="@keyframes",zc="@layer",Lc=Math.abs,Dr=String.fromCharCode,Bc=Object.assign;function Dc(e,t){return q(e,0)^45?(((t<<2^q(e,0))<<2^q(e,1))<<2^q(e,2))<<2^q(e,3):0}function na(e){return e.trim()}function Wc(e,t){return(e=t.exec(e))?e[0]:e}function N(e,t,r){return e.replace(t,r)}function An(e,t){return e.indexOf(t)}function q(e,t){return e.charCodeAt(t)|0}function $t(e,t,r){return e.slice(t,r)}function Ce(e){return e.length}function ro(e){return e.length}function Kt(e,t){return t.push(e),e}function Uc(e,t){return e.map(t).join("")}var Wr=1,ct=1,oa=0,ne=0,U=0,ht="";function Ur(e,t,r,n,o,i,s){return{value:e,root:t,parent:r,type:n,props:o,children:i,line:Wr,column:ct,length:s,return:""}}function bt(e,t){return Bc(Ur("",null,null,"",null,null,0),e,{length:-e.length},t)}function Vc(){return U}function Hc(){return U=ne>0?q(ht,--ne):0,ct--,U===10&&(ct=1,Wr--),U}function pe(){return U=ne<oa?q(ht,ne++):0,ct++,U===10&&(ct=1,Wr++),U}function Te(){return q(ht,ne)}function Qt(){return ne}function Bt(e,t){return $t(ht,e,t)}function At(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function ia(e){return Wr=ct=1,oa=Ce(ht=e),ne=0,[]}function sa(e){return ht="",e}function er(e){return na(Bt(ne-1,Fn(e===91?e+2:e===40?e+1:e)))}function qc(e){for(;(U=Te())&&U<33;)pe();return At(e)>2||At(U)>3?"":" "}function Kc(e,t){for(;--t&&pe()&&!(U<48||U>102||U>57&&U<65||U>70&&U<97););return Bt(e,Qt()+(t<6&&Te()==32&&pe()==32))}function Fn(e){for(;pe();)switch(U){case e:return ne;case 34:case 39:e!==34&&e!==39&&Fn(U);break;case 40:e===41&&Fn(e);break;case 92:pe();break}return ne}function Gc(e,t){for(;pe()&&e+U!==47+10;)if(e+U===42+42&&Te()===47)break;return"/*"+Bt(t,ne-1)+"*"+Dr(e===47?e:pe())}function Xc(e){for(;!At(Te());)pe();return Bt(e,ne)}function Jc(e){return sa(tr("",null,null,null,[""],e=ia(e),0,[0],e))}function tr(e,t,r,n,o,i,s,a,l){for(var u=0,f=0,c=s,m=0,v=0,p=0,d=1,g=1,y=1,b=0,w="",E=o,O=i,k=n,R=w;g;)switch(p=b,b=pe()){case 40:if(p!=108&&q(R,c-1)==58){An(R+=N(er(b),"&","&\f"),"&\f")!=-1&&(y=-1);break}case 34:case 39:case 91:R+=er(b);break;case 9:case 10:case 13:case 32:R+=qc(p);break;case 92:R+=Kc(Qt()-1,7);continue;case 47:switch(Te()){case 42:case 47:Kt(Yc(Gc(pe(),Qt()),t,r),l);break;default:R+="/"}break;case 123*d:a[u++]=Ce(R)*y;case 125*d:case 59:case 0:switch(b){case 0:case 125:g=0;case 59+f:y==-1&&(R=N(R,/\f/g,"")),v>0&&Ce(R)-c&&Kt(v>32?Zo(R+";",n,r,c-1):Zo(N(R," ","")+";",n,r,c-2),l);break;case 59:R+=";";default:if(Kt(k=Yo(R,t,r,u,f,o,a,w,E=[],O=[],c),i),b===123)if(f===0)tr(R,t,k,k,E,i,c,a,O);else switch(m===99&&q(R,3)===110?100:m){case 100:case 108:case 109:case 115:tr(e,k,k,n&&Kt(Yo(e,k,k,0,0,o,a,w,o,E=[],c),O),o,O,c,a,n?E:O);break;default:tr(R,k,k,k,[""],O,0,a,O)}}u=f=v=0,d=y=1,w=R="",c=s;break;case 58:c=1+Ce(R),v=p;default:if(d<1){if(b==123)--d;else if(b==125&&d++==0&&Hc()==125)continue}switch(R+=Dr(b),b*d){case 38:y=f>0?1:(R+="\f",-1);break;case 44:a[u++]=(Ce(R)-1)*y,y=1;break;case 64:Te()===45&&(R+=er(pe())),m=Te(),f=c=Ce(w=R+=Xc(Qt())),b++;break;case 45:p===45&&Ce(R)==2&&(d=0)}}return i}function Yo(e,t,r,n,o,i,s,a,l,u,f){for(var c=o-1,m=o===0?i:[""],v=ro(m),p=0,d=0,g=0;p<n;++p)for(var y=0,b=$t(e,c+1,c=Lc(d=s[p])),w=e;y<v;++y)(w=na(d>0?m[y]+" "+b:N(b,/&\f/g,m[y])))&&(l[g++]=w);return Ur(e,t,r,o===0?eo:a,l,u,f)}function Yc(e,t,r){return Ur(e,t,r,ta,Dr(Vc()),$t(e,2,-2),0)}function Zo(e,t,r,n){return Ur(e,t,r,to,$t(e,0,n),$t(e,n+1,-1),n)}function at(e,t){for(var r="",n=ro(e),o=0;o<n;o++)r+=t(e[o],o,e,t)||"";return r}function Zc(e,t,r,n){switch(e.type){case zc:if(e.children.length)break;case Ic:case to:return e.return=e.return||e.value;case ta:return"";case ra:return e.return=e.value+"{"+at(e.children,n)+"}";case eo:e.value=e.props.join(",")}return Ce(r=at(e.children,n))?e.return=e.value+"{"+r+"}":""}function Qc(e){var t=ro(e);return function(r,n,o,i){for(var s="",a=0;a<t;a++)s+=e[a](r,n,o,i)||"";return s}}function ef(e){return function(t){t.root||(t=t.return)&&e(t)}}var tf=function(t,r,n){for(var o=0,i=0;o=i,i=Te(),o===38&&i===12&&(r[n]=1),!At(i);)pe();return Bt(t,ne)},rf=function(t,r){var n=-1,o=44;do switch(At(o)){case 0:o===38&&Te()===12&&(r[n]=1),t[n]+=tf(ne-1,r,n);break;case 2:t[n]+=er(o);break;case 4:if(o===44){t[++n]=Te()===58?"&\f":"",r[n]=t[n].length;break}default:t[n]+=Dr(o)}while(o=pe());return t},nf=function(t,r){return sa(rf(ia(t),r))},Qo=new WeakMap,of=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var r=t.value,n=t.parent,o=t.column===n.column&&t.line===n.line;n.type!=="rule";)if(n=n.parent,!n)return;if(!(t.props.length===1&&r.charCodeAt(0)!==58&&!Qo.get(n))&&!o){Qo.set(t,!0);for(var i=[],s=nf(r,i),a=n.props,l=0,u=0;l<s.length;l++)for(var f=0;f<a.length;f++,u++)t.props[u]=i[l]?s[l].replace(/&\f/g,a[f]):a[f]+" "+s[l]}}},sf=function(t){if(t.type==="decl"){var r=t.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(t.return="",t.value="")}};function aa(e,t){switch(Dc(e,t)){case 5103:return j+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return j+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return j+e+wr+e+J+e+e;case 6828:case 4268:return j+e+J+e+e;case 6165:return j+e+J+"flex-"+e+e;case 5187:return j+e+N(e,/(\w+).+(:[^]+)/,j+"box-$1$2"+J+"flex-$1$2")+e;case 5443:return j+e+J+"flex-item-"+N(e,/flex-|-self/,"")+e;case 4675:return j+e+J+"flex-line-pack"+N(e,/align-content|flex-|-self/,"")+e;case 5548:return j+e+J+N(e,"shrink","negative")+e;case 5292:return j+e+J+N(e,"basis","preferred-size")+e;case 6060:return j+"box-"+N(e,"-grow","")+j+e+J+N(e,"grow","positive")+e;case 4554:return j+N(e,/([^-])(transform)/g,"$1"+j+"$2")+e;case 6187:return N(N(N(e,/(zoom-|grab)/,j+"$1"),/(image-set)/,j+"$1"),e,"")+e;case 5495:case 3959:return N(e,/(image-set\([^]*)/,j+"$1$`$1");case 4968:return N(N(e,/(.+:)(flex-)?(.*)/,j+"box-pack:$3"+J+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+j+e+e;case 4095:case 3583:case 4068:case 2532:return N(e,/(.+)-inline(.+)/,j+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Ce(e)-1-t>6)switch(q(e,t+1)){case 109:if(q(e,t+4)!==45)break;case 102:return N(e,/(.+:)(.+)-([^]+)/,"$1"+j+"$2-$3$1"+wr+(q(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~An(e,"stretch")?aa(N(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(q(e,t+1)!==115)break;case 6444:switch(q(e,Ce(e)-3-(~An(e,"!important")&&10))){case 107:return N(e,":",":"+j)+e;case 101:return N(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+j+(q(e,14)===45?"inline-":"")+"box$3$1"+j+"$2$3$1"+J+"$2box$3")+e}break;case 5936:switch(q(e,t+11)){case 114:return j+e+J+N(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return j+e+J+N(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return j+e+J+N(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return j+e+J+e+e}return e}var af=function(t,r,n,o){if(t.length>-1&&!t.return)switch(t.type){case to:t.return=aa(t.value,t.length);break;case ra:return at([bt(t,{value:N(t.value,"@","@"+j)})],o);case eo:if(t.length)return Uc(t.props,function(i){switch(Wc(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return at([bt(t,{props:[N(i,/:(read-\w+)/,":"+wr+"$1")]})],o);case"::placeholder":return at([bt(t,{props:[N(i,/:(plac\w+)/,":"+j+"input-$1")]}),bt(t,{props:[N(i,/:(plac\w+)/,":"+wr+"$1")]}),bt(t,{props:[N(i,/:(plac\w+)/,J+"input-$1")]})],o)}return""})}},lf=[af],uf=function(t){var r=t.key;if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(d){var g=d.getAttribute("data-emotion");g.indexOf(" ")!==-1&&(document.head.appendChild(d),d.setAttribute("data-s",""))})}var o=t.stylisPlugins||lf,i={},s,a=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(d){for(var g=d.getAttribute("data-emotion").split(" "),y=1;y<g.length;y++)i[g[y]]=!0;a.push(d)});var l,u=[of,sf];{var f,c=[Zc,ef(function(d){f.insert(d)})],m=Qc(u.concat(o,c)),v=function(g){return at(Jc(g),m)};l=function(g,y,b,w){f=b,v(g?g+"{"+y.styles+"}":y.styles),w&&(p.inserted[y.name]=!0)}}var p={key:r,sheet:new Mc({key:r,container:s,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:i,registered:{},insert:l};return p.sheet.hydrate(a),p},cf=!0;function ff(e,t,r){var n="";return r.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):n+=o+" "}),n}var la=function(t,r,n){var o=t.key+"-"+r.name;(n===!1||cf===!1)&&t.registered[o]===void 0&&(t.registered[o]=r.styles)},df=function(t,r,n){la(t,r,n);var o=t.key+"-"+r.name;if(t.inserted[r.name]===void 0){var i=r;do t.insert(r===i?"."+o:"",i,t.sheet,!0),i=i.next;while(i!==void 0)}};function pf(e){for(var t=0,r,n=0,o=e.length;o>=4;++n,o-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var hf={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},mf=/[A-Z]|^ms/g,gf=/_EMO_([^_]+?)_([^]*?)_EMO_/g,ua=function(t){return t.charCodeAt(1)===45},ei=function(t){return t!=null&&typeof t!="boolean"},pn=ea(function(e){return ua(e)?e:e.replace(mf,"-$&").toLowerCase()}),ti=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(gf,function(n,o,i){return Re={name:o,styles:i,next:Re},o})}return hf[t]!==1&&!ua(t)&&typeof r=="number"&&r!==0?r+"px":r};function Ft(e,t,r){if(r==null)return"";if(r.__emotion_styles!==void 0)return r;switch(typeof r){case"boolean":return"";case"object":{if(r.anim===1)return Re={name:r.name,styles:r.styles,next:Re},r.name;if(r.styles!==void 0){var n=r.next;if(n!==void 0)for(;n!==void 0;)Re={name:n.name,styles:n.styles,next:Re},n=n.next;var o=r.styles+";";return o}return yf(e,t,r)}case"function":{if(e!==void 0){var i=Re,s=r(e);return Re=i,Ft(e,t,s)}break}}if(t==null)return r;var a=t[r];return a!==void 0?a:r}function yf(e,t,r){var n="";if(Array.isArray(r))for(var o=0;o<r.length;o++)n+=Ft(e,t,r[o])+";";else for(var i in r){var s=r[i];if(typeof s!="object")t!=null&&t[s]!==void 0?n+=i+"{"+t[s]+"}":ei(s)&&(n+=pn(i)+":"+ti(i,s)+";");else if(Array.isArray(s)&&typeof s[0]=="string"&&(t==null||t[s[0]]===void 0))for(var a=0;a<s.length;a++)ei(s[a])&&(n+=pn(i)+":"+ti(i,s[a])+";");else{var l=Ft(e,t,s);switch(i){case"animation":case"animationName":{n+=pn(i)+":"+l+";";break}default:n+=i+"{"+l+"}"}}}return n}var ri=/label:\s*([^\s;\n{]+)\s*(;|$)/g,Re,vf=function(t,r,n){if(t.length===1&&typeof t[0]=="object"&&t[0]!==null&&t[0].styles!==void 0)return t[0];var o=!0,i="";Re=void 0;var s=t[0];s==null||s.raw===void 0?(o=!1,i+=Ft(n,r,s)):i+=s[0];for(var a=1;a<t.length;a++)i+=Ft(n,r,t[a]),o&&(i+=s[a]);ri.lastIndex=0;for(var l="",u;(u=ri.exec(i))!==null;)l+="-"+u[1];var f=pf(i)+l;return{name:f,styles:i,next:Re}},xf=function(t){return t()},bf=h.React["useInsertionEffect"]?h.React["useInsertionEffect"]:!1,wf=bf||xf,ca=h.reactExports.createContext(typeof HTMLElement<"u"?uf({key:"css"}):null);ca.Provider;var Sf=function(t){return h.reactExports.forwardRef(function(r,n){var o=h.reactExports.useContext(ca);return t(r,o,n)})},fa=h.reactExports.createContext({}),Ef=Fc,kf=function(t){return t!=="theme"},ni=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?Ef:kf},oi=function(t,r,n){var o;if(r){var i=r.shouldForwardProp;o=t.__emotion_forwardProp&&i?function(s){return t.__emotion_forwardProp(s)&&i(s)}:i}return typeof o!="function"&&n&&(o=t.__emotion_forwardProp),o},Cf=function(t){var r=t.cache,n=t.serialized,o=t.isStringTag;return la(r,n,o),wf(function(){return df(r,n,o)}),null},Rf=function e(t,r){var n=t.__emotion_real===t,o=n&&t.__emotion_base||t,i,s;r!==void 0&&(i=r.label,s=r.target);var a=oi(t,r,n),l=a||ni(o),u=!l("as");return function(){var f=arguments,c=n&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(i!==void 0&&c.push("label:"+i+";"),f[0]==null||f[0].raw===void 0)c.push.apply(c,f);else{c.push(f[0][0]);for(var m=f.length,v=1;v<m;v++)c.push(f[v],f[0][v])}var p=Sf(function(d,g,y){var b=u&&d.as||o,w="",E=[],O=d;if(d.theme==null){O={};for(var k in d)O[k]=d[k];O.theme=h.reactExports.useContext(fa)}typeof d.className=="string"?w=ff(g.registered,E,d.className):d.className!=null&&(w=d.className+" ");var R=vf(c.concat(E),g.registered,O);w+=g.key+"-"+R.name,s!==void 0&&(w+=" "+s);var H=u&&a===void 0?ni(b):l,be={};for(var F in d)u&&F==="as"||H(F)&&(be[F]=d[F]);return be.className=w,be.ref=y,h.reactExports.createElement(h.reactExports.Fragment,null,h.reactExports.createElement(Cf,{cache:g,serialized:R,isStringTag:typeof b=="string"}),h.reactExports.createElement(b,be))});return p.displayName=i!==void 0?i:"Styled("+(typeof o=="string"?o:o.displayName||o.name||"Component")+")",p.defaultProps=t.defaultProps,p.__emotion_real=p,p.__emotion_base=o,p.__emotion_styles=c,p.__emotion_forwardProp=a,Object.defineProperty(p,"toString",{value:function(){return"."+s}}),p.withComponent=function(d,g){return e(d,$({},r,g,{shouldForwardProp:oi(p,g,!0)})).apply(void 0,c)},p}},Of=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],jn=Rf.bind();Of.forEach(function(e){jn[e]=jn(e)});/**
29
- * @mui/styled-engine v5.15.4
30
- *
31
- * @license MIT
32
- * This source code is licensed under the MIT license found in the
33
- * LICENSE file in the root directory of this source tree.
34
- */function _f(e,t){return jn(e,t)}const Tf=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},Pf=["values","unit","step"],$f=e=>{const t=Object.keys(e).map(r=>({key:r,val:e[r]}))||[];return t.sort((r,n)=>r.val-n.val),t.reduce((r,n)=>$({},r,{[n.key]:n.val}),{})};function Af(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,o=Me(e,Pf),i=$f(t),s=Object.keys(i);function a(m){return`@media (min-width:${typeof t[m]=="number"?t[m]:m}${r})`}function l(m){return`@media (max-width:${(typeof t[m]=="number"?t[m]:m)-n/100}${r})`}function u(m,v){const p=s.indexOf(v);return`@media (min-width:${typeof t[m]=="number"?t[m]:m}${r}) and (max-width:${(p!==-1&&typeof t[s[p]]=="number"?t[s[p]]:v)-n/100}${r})`}function f(m){return s.indexOf(m)+1<s.length?u(m,s[s.indexOf(m)+1]):a(m)}function c(m){const v=s.indexOf(m);return v===0?a(s[1]):v===s.length-1?l(s[v]):u(m,s[s.indexOf(m)+1]).replace("@media","@media not all and")}return $({keys:s,values:i,up:a,down:l,between:u,only:f,not:c,unit:r},o)}const Ff={borderRadius:4},jf=Ff;function Ot(e,t){return t?xe(e,t,{clone:!1}):e}const no={xs:0,sm:600,md:900,lg:1200,xl:1536},ii={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${no[e]}px)`};function Fe(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const i=n.breakpoints||ii;return t.reduce((s,a,l)=>(s[i.up(i.keys[l])]=r(t[l]),s),{})}if(typeof t=="object"){const i=n.breakpoints||ii;return Object.keys(t).reduce((s,a)=>{if(Object.keys(i.values||no).indexOf(a)!==-1){const l=i.up(a);s[l]=r(t[a],a)}else{const l=a;s[l]=t[l]}return s},{})}return r(t)}function Nf(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((n,o)=>{const i=e.up(o);return n[i]={},n},{}))||{}}function Mf(e,t){return e.reduce((r,n)=>{const o=r[n];return(!o||Object.keys(o).length===0)&&delete r[n],r},t)}function Vr(e,t,r=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&r){const n=`vars.${t}`.split(".").reduce((o,i)=>o&&o[i]?o[i]:null,e);if(n!=null)return n}return t.split(".").reduce((n,o)=>n&&n[o]!=null?n[o]:null,e)}function Sr(e,t,r,n=r){let o;return typeof e=="function"?o=e(r):Array.isArray(e)?o=e[r]||n:o=Vr(e,r)||n,t&&(o=t(o,n,e)),o}function W(e){const{prop:t,cssProperty:r=e.prop,themeKey:n,transform:o}=e,i=s=>{if(s[t]==null)return null;const a=s[t],l=s.theme,u=Vr(l,n)||{};return Fe(s,a,c=>{let m=Sr(u,o,c);return c===m&&typeof c=="string"&&(m=Sr(u,o,`${t}${c==="default"?"":_e(c)}`,c)),r===!1?m:{[r]:m}})};return i.propTypes={},i.filterProps=[t],i}function If(e){const t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}const zf={m:"margin",p:"padding"},Lf={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},si={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Bf=If(e=>{if(e.length>2)if(si[e])e=si[e];else return[e];const[t,r]=e.split(""),n=zf[t],o=Lf[r]||"";return Array.isArray(o)?o.map(i=>n+i):[n+o]}),oo=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],io=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...oo,...io];function Dt(e,t,r,n){var o;const i=(o=Vr(e,t,!1))!=null?o:r;return typeof i=="number"?s=>typeof s=="string"?s:i*s:Array.isArray(i)?s=>typeof s=="string"?s:i[s]:typeof i=="function"?i:()=>{}}function da(e){return Dt(e,"spacing",8)}function Wt(e,t){if(typeof t=="string"||t==null)return t;const r=Math.abs(t),n=e(r);return t>=0?n:typeof n=="number"?-n:`-${n}`}function Df(e,t){return r=>e.reduce((n,o)=>(n[o]=Wt(t,r),n),{})}function Wf(e,t,r,n){if(t.indexOf(r)===-1)return null;const o=Bf(r),i=Df(o,n),s=e[r];return Fe(e,s,i)}function pa(e,t){const r=da(e.theme);return Object.keys(e).map(n=>Wf(e,t,n,r)).reduce(Ot,{})}function B(e){return pa(e,oo)}B.propTypes={};B.filterProps=oo;function D(e){return pa(e,io)}D.propTypes={};D.filterProps=io;function Uf(e=8){if(e.mui)return e;const t=da({spacing:e}),r=(...n)=>(n.length===0?[1]:n).map(i=>{const s=t(i);return typeof s=="number"?`${s}px`:s}).join(" ");return r.mui=!0,r}function Hr(...e){const t=e.reduce((n,o)=>(o.filterProps.forEach(i=>{n[i]=o}),n),{}),r=n=>Object.keys(n).reduce((o,i)=>t[i]?Ot(o,t[i](n)):o,{});return r.propTypes={},r.filterProps=e.reduce((n,o)=>n.concat(o.filterProps),[]),r}function he(e){return typeof e!="number"?e:`${e}px solid`}function ge(e,t){return W({prop:e,themeKey:"borders",transform:t})}const Vf=ge("border",he),Hf=ge("borderTop",he),qf=ge("borderRight",he),Kf=ge("borderBottom",he),Gf=ge("borderLeft",he),Xf=ge("borderColor"),Jf=ge("borderTopColor"),Yf=ge("borderRightColor"),Zf=ge("borderBottomColor"),Qf=ge("borderLeftColor"),ed=ge("outline",he),td=ge("outlineColor"),qr=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Dt(e.theme,"shape.borderRadius",4),r=n=>({borderRadius:Wt(t,n)});return Fe(e,e.borderRadius,r)}return null};qr.propTypes={};qr.filterProps=["borderRadius"];Hr(Vf,Hf,qf,Kf,Gf,Xf,Jf,Yf,Zf,Qf,qr,ed,td);const Kr=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Dt(e.theme,"spacing",8),r=n=>({gap:Wt(t,n)});return Fe(e,e.gap,r)}return null};Kr.propTypes={};Kr.filterProps=["gap"];const Gr=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Dt(e.theme,"spacing",8),r=n=>({columnGap:Wt(t,n)});return Fe(e,e.columnGap,r)}return null};Gr.propTypes={};Gr.filterProps=["columnGap"];const Xr=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Dt(e.theme,"spacing",8),r=n=>({rowGap:Wt(t,n)});return Fe(e,e.rowGap,r)}return null};Xr.propTypes={};Xr.filterProps=["rowGap"];const rd=W({prop:"gridColumn"}),nd=W({prop:"gridRow"}),od=W({prop:"gridAutoFlow"}),id=W({prop:"gridAutoColumns"}),sd=W({prop:"gridAutoRows"}),ad=W({prop:"gridTemplateColumns"}),ld=W({prop:"gridTemplateRows"}),ud=W({prop:"gridTemplateAreas"}),cd=W({prop:"gridArea"});Hr(Kr,Gr,Xr,rd,nd,od,id,sd,ad,ld,ud,cd);function lt(e,t){return t==="grey"?t:e}const fd=W({prop:"color",themeKey:"palette",transform:lt}),dd=W({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:lt}),pd=W({prop:"backgroundColor",themeKey:"palette",transform:lt});Hr(fd,dd,pd);function de(e){return e<=1&&e!==0?`${e*100}%`:e}const hd=W({prop:"width",transform:de}),so=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=r=>{var n,o;const i=((n=e.theme)==null||(n=n.breakpoints)==null||(n=n.values)==null?void 0:n[r])||no[r];return i?((o=e.theme)==null||(o=o.breakpoints)==null?void 0:o.unit)!=="px"?{maxWidth:`${i}${e.theme.breakpoints.unit}`}:{maxWidth:i}:{maxWidth:de(r)}};return Fe(e,e.maxWidth,t)}return null};so.filterProps=["maxWidth"];const md=W({prop:"minWidth",transform:de}),gd=W({prop:"height",transform:de}),yd=W({prop:"maxHeight",transform:de}),vd=W({prop:"minHeight",transform:de});W({prop:"size",cssProperty:"width",transform:de});W({prop:"size",cssProperty:"height",transform:de});const xd=W({prop:"boxSizing"});Hr(hd,so,md,gd,yd,vd,xd);const bd={border:{themeKey:"borders",transform:he},borderTop:{themeKey:"borders",transform:he},borderRight:{themeKey:"borders",transform:he},borderBottom:{themeKey:"borders",transform:he},borderLeft:{themeKey:"borders",transform:he},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:he},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:qr},color:{themeKey:"palette",transform:lt},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:lt},backgroundColor:{themeKey:"palette",transform:lt},p:{style:D},pt:{style:D},pr:{style:D},pb:{style:D},pl:{style:D},px:{style:D},py:{style:D},padding:{style:D},paddingTop:{style:D},paddingRight:{style:D},paddingBottom:{style:D},paddingLeft:{style:D},paddingX:{style:D},paddingY:{style:D},paddingInline:{style:D},paddingInlineStart:{style:D},paddingInlineEnd:{style:D},paddingBlock:{style:D},paddingBlockStart:{style:D},paddingBlockEnd:{style:D},m:{style:B},mt:{style:B},mr:{style:B},mb:{style:B},ml:{style:B},mx:{style:B},my:{style:B},margin:{style:B},marginTop:{style:B},marginRight:{style:B},marginBottom:{style:B},marginLeft:{style:B},marginX:{style:B},marginY:{style:B},marginInline:{style:B},marginInlineStart:{style:B},marginInlineEnd:{style:B},marginBlock:{style:B},marginBlockStart:{style:B},marginBlockEnd:{style:B},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Kr},rowGap:{style:Xr},columnGap:{style:Gr},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:de},maxWidth:{style:so},minWidth:{transform:de},height:{transform:de},maxHeight:{transform:de},minHeight:{transform:de},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},ao=bd;function wd(...e){const t=e.reduce((n,o)=>n.concat(Object.keys(o)),[]),r=new Set(t);return e.every(n=>r.size===Object.keys(n).length)}function Sd(e,t){return typeof e=="function"?e(t):e}function Ed(){function e(r,n,o,i){const s={[r]:n,theme:o},a=i[r];if(!a)return{[r]:n};const{cssProperty:l=r,themeKey:u,transform:f,style:c}=a;if(n==null)return null;if(u==="typography"&&n==="inherit")return{[r]:n};const m=Vr(o,u)||{};return c?c(s):Fe(s,n,p=>{let d=Sr(m,f,p);return p===d&&typeof p=="string"&&(d=Sr(m,f,`${r}${p==="default"?"":_e(p)}`,p)),l===!1?d:{[l]:d}})}function t(r){var n;const{sx:o,theme:i={}}=r||{};if(!o)return null;const s=(n=i.unstable_sxConfig)!=null?n:ao;function a(l){let u=l;if(typeof l=="function")u=l(i);else if(typeof l!="object")return l;if(!u)return null;const f=Nf(i.breakpoints),c=Object.keys(f);let m=f;return Object.keys(u).forEach(v=>{const p=Sd(u[v],i);if(p!=null)if(typeof p=="object")if(s[v])m=Ot(m,e(v,p,i,s));else{const d=Fe({theme:i},p,g=>({[v]:g}));wd(d,p)?m[v]=t({sx:p,theme:i}):m=Ot(m,d)}else m=Ot(m,e(v,p,i,s))}),Mf(c,m)}return Array.isArray(o)?o.map(a):a(o)}return t}const ha=Ed();ha.filterProps=["sx"];const lo=ha,kd=["breakpoints","palette","spacing","shape"];function uo(e={},...t){const{breakpoints:r={},palette:n={},spacing:o,shape:i={}}=e,s=Me(e,kd),a=Af(r),l=Uf(o);let u=xe({breakpoints:a,direction:"ltr",components:{},palette:$({mode:"light"},n),spacing:l,shape:$({},jf,i)},s);return u=t.reduce((f,c)=>xe(f,c),u),u.unstable_sxConfig=$({},ao,s==null?void 0:s.unstable_sxConfig),u.unstable_sx=function(c){return lo({sx:c,theme:this})},u}function Cd(e){return Object.keys(e).length===0}function Rd(e=null){const t=h.reactExports.useContext(fa);return!t||Cd(t)?e:t}const Od=uo();function _d(e=Od){return Rd(e)}const Td=["variant"];function ai(e){return e.length===0}function ma(e){const{variant:t}=e,r=Me(e,Td);let n=t||"";return Object.keys(r).sort().forEach(o=>{o==="color"?n+=ai(n)?e[o]:_e(e[o]):n+=`${ai(n)?o:_e(o)}${_e(e[o].toString())}`}),n}const Pd=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function $d(e){return Object.keys(e).length===0}function Ad(e){return typeof e=="string"&&e.charCodeAt(0)>96}const Fd=(e,t)=>t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null,Er=e=>{let t=0;const r={};return e&&e.forEach(n=>{let o="";typeof n.props=="function"?(o=`callback${t}`,t+=1):o=ma(n.props),r[o]=n.style}),r},jd=(e,t)=>{let r=[];return t&&t.components&&t.components[e]&&t.components[e].variants&&(r=t.components[e].variants),Er(r)},kr=(e,t,r)=>{const{ownerState:n={}}=e,o=[];let i=0;return r&&r.forEach(s=>{let a=!0;if(typeof s.props=="function"){const l=$({},e,n);a=s.props(l)}else Object.keys(s.props).forEach(l=>{n[l]!==s.props[l]&&e[l]!==s.props[l]&&(a=!1)});a&&(typeof s.props=="function"?o.push(t[`callback${i}`]):o.push(t[ma(s.props)])),typeof s.props=="function"&&(i+=1)}),o},Nd=(e,t,r,n)=>{var o;const i=r==null||(o=r.components)==null||(o=o[n])==null?void 0:o.variants;return kr(e,t,i)};function rr(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Md=uo(),Id=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function nr({defaultTheme:e,theme:t,themeId:r}){return $d(t)?e:t[r]||t}function zd(e){return e?(t,r)=>r[e]:null}const li=({styledArg:e,props:t,defaultTheme:r,themeId:n})=>{const o=e($({},t,{theme:nr($({},t,{defaultTheme:r,themeId:n}))}));let i;if(o&&o.variants&&(i=o.variants,delete o.variants),i){const s=kr(t,Er(i),i);return[o,...s]}return o};function Ld(e={}){const{themeId:t,defaultTheme:r=Md,rootShouldForwardProp:n=rr,slotShouldForwardProp:o=rr}=e,i=s=>lo($({},s,{theme:nr($({},s,{defaultTheme:r,themeId:t}))}));return i.__mui_systemSx=!0,(s,a={})=>{Tf(s,E=>E.filter(O=>!(O!=null&&O.__mui_systemSx)));const{name:l,slot:u,skipVariantsResolver:f,skipSx:c,overridesResolver:m=zd(Id(u))}=a,v=Me(a,Pd),p=f!==void 0?f:u&&u!=="Root"&&u!=="root"||!1,d=c||!1;let g,y=rr;u==="Root"||u==="root"?y=n:u?y=o:Ad(s)&&(y=void 0);const b=_f(s,$({shouldForwardProp:y,label:g},v)),w=(E,...O)=>{const k=O?O.map(F=>{if(typeof F=="function"&&F.__emotion_real!==F)return oe=>li({styledArg:F,props:oe,defaultTheme:r,themeId:t});if(Ue(F)){let oe=F,we;return F&&F.variants&&(we=F.variants,delete oe.variants,oe=vt=>{let qe=F;return kr(vt,Er(we),we).forEach(Ul=>{qe=xe(qe,Ul)}),qe}),oe}return F}):[];let R=E;if(Ue(E)){let F;E&&E.variants&&(F=E.variants,delete R.variants,R=oe=>{let we=E;return kr(oe,Er(F),F).forEach(qe=>{we=xe(we,qe)}),we})}else typeof E=="function"&&E.__emotion_real!==E&&(R=F=>li({styledArg:E,props:F,defaultTheme:r,themeId:t}));l&&m&&k.push(F=>{const oe=nr($({},F,{defaultTheme:r,themeId:t})),we=Fd(l,oe);if(we){const vt={};return Object.entries(we).forEach(([qe,Ht])=>{vt[qe]=typeof Ht=="function"?Ht($({},F,{theme:oe})):Ht}),m(F,vt)}return null}),l&&!p&&k.push(F=>{const oe=nr($({},F,{defaultTheme:r,themeId:t}));return Nd(F,jd(l,oe),oe,l)}),d||k.push(i);const H=k.length-O.length;if(Array.isArray(E)&&H>0){const F=new Array(H).fill("");R=[...E,...F],R.raw=[...E.raw,...F]}const be=b(R,...k);return s.muiName&&(be.muiName=s.muiName),be};return b.withConfig&&(w.withConfig=b.withConfig),w}}function Bd(e){const{theme:t,name:r,props:n}=e;return!t||!t.components||!t.components[r]||!t.components[r].defaultProps?n:Js(t.components[r].defaultProps,n)}function Dd({props:e,name:t,defaultTheme:r,themeId:n}){let o=_d(r);return n&&(o=o[n]||o),Bd({theme:o,name:t,props:e})}function ga(e,t=0,r=1){return Math.min(Math.max(t,e),r)}function Wd(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&r[0].length===1&&(r=r.map(n=>n+n)),r?`rgb${r.length===4?"a":""}(${r.map((n,o)=>o<3?parseInt(n,16):Math.round(parseInt(n,16)/255*1e3)/1e3).join(", ")})`:""}function ft(e){if(e.type)return e;if(e.charAt(0)==="#")return ft(Wd(e));const t=e.indexOf("("),r=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(r)===-1)throw new Error(ut(9,e));let n=e.substring(t+1,e.length-1),o;if(r==="color"){if(n=n.split(" "),o=n.shift(),n.length===4&&n[3].charAt(0)==="/"&&(n[3]=n[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(o)===-1)throw new Error(ut(10,o))}else n=n.split(",");return n=n.map(i=>parseFloat(i)),{type:r,values:n,colorSpace:o}}function co(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return t.indexOf("rgb")!==-1?n=n.map((o,i)=>i<3?parseInt(o,10):o):t.indexOf("hsl")!==-1&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),t.indexOf("color")!==-1?n=`${r} ${n.join(" ")}`:n=`${n.join(", ")}`,`${t}(${n})`}function Ud(e){e=ft(e);const{values:t}=e,r=t[0],n=t[1]/100,o=t[2]/100,i=n*Math.min(o,1-o),s=(u,f=(u+r/30)%12)=>o-i*Math.max(Math.min(f-3,9-f,1),-1);let a="rgb";const l=[Math.round(s(0)*255),Math.round(s(8)*255),Math.round(s(4)*255)];return e.type==="hsla"&&(a+="a",l.push(t[3])),co({type:a,values:l})}function ui(e){e=ft(e);let t=e.type==="hsl"||e.type==="hsla"?ft(Ud(e)).values:e.values;return t=t.map(r=>(e.type!=="color"&&(r/=255),r<=.03928?r/12.92:((r+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function Vd(e,t){const r=ui(e),n=ui(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function Hd(e,t){if(e=ft(e),t=ga(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let r=0;r<3;r+=1)e.values[r]*=1-t;return co(e)}function qd(e,t){if(e=ft(e),t=ga(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(e.type.indexOf("color")!==-1)for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return co(e)}function Kd(e,t){return $({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}const Gd={black:"#000",white:"#fff"},jt=Gd,Xd={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},Jd=Xd,Yd={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},Qe=Yd,Zd={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},et=Zd,Qd={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},wt=Qd,ep={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},tt=ep,tp={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},rt=tp,rp={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},nt=rp,np=["mode","contrastThreshold","tonalOffset"],ci={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:jt.white,default:jt.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},hn={text:{primary:jt.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:jt.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function fi(e,t,r,n){const o=n.light||n,i=n.dark||n*1.5;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:t==="light"?e.light=qd(e.main,o):t==="dark"&&(e.dark=Hd(e.main,i)))}function op(e="light"){return e==="dark"?{main:tt[200],light:tt[50],dark:tt[400]}:{main:tt[700],light:tt[400],dark:tt[800]}}function ip(e="light"){return e==="dark"?{main:Qe[200],light:Qe[50],dark:Qe[400]}:{main:Qe[500],light:Qe[300],dark:Qe[700]}}function sp(e="light"){return e==="dark"?{main:et[500],light:et[300],dark:et[700]}:{main:et[700],light:et[400],dark:et[800]}}function ap(e="light"){return e==="dark"?{main:rt[400],light:rt[300],dark:rt[700]}:{main:rt[700],light:rt[500],dark:rt[900]}}function lp(e="light"){return e==="dark"?{main:nt[400],light:nt[300],dark:nt[700]}:{main:nt[800],light:nt[500],dark:nt[900]}}function up(e="light"){return e==="dark"?{main:wt[400],light:wt[300],dark:wt[700]}:{main:"#ed6c02",light:wt[500],dark:wt[900]}}function cp(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,o=Me(e,np),i=e.primary||op(t),s=e.secondary||ip(t),a=e.error||sp(t),l=e.info||ap(t),u=e.success||lp(t),f=e.warning||up(t);function c(d){return Vd(d,hn.text.primary)>=r?hn.text.primary:ci.text.primary}const m=({color:d,name:g,mainShade:y=500,lightShade:b=300,darkShade:w=700})=>{if(d=$({},d),!d.main&&d[y]&&(d.main=d[y]),!d.hasOwnProperty("main"))throw new Error(ut(11,g?` (${g})`:"",y));if(typeof d.main!="string")throw new Error(ut(12,g?` (${g})`:"",JSON.stringify(d.main)));return fi(d,"light",b,n),fi(d,"dark",w,n),d.contrastText||(d.contrastText=c(d.main)),d},v={dark:hn,light:ci};return xe($({common:$({},jt),mode:t,primary:m({color:i,name:"primary"}),secondary:m({color:s,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:m({color:a,name:"error"}),warning:m({color:f,name:"warning"}),info:m({color:l,name:"info"}),success:m({color:u,name:"success"}),grey:Jd,contrastThreshold:r,getContrastText:c,augmentColor:m,tonalOffset:n},v[t]),o)}const fp=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function dp(e){return Math.round(e*1e5)/1e5}const di={textTransform:"uppercase"},pi='"Roboto", "Helvetica", "Arial", sans-serif';function pp(e,t){const r=typeof t=="function"?t(e):t,{fontFamily:n=pi,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:s=400,fontWeightMedium:a=500,fontWeightBold:l=700,htmlFontSize:u=16,allVariants:f,pxToRem:c}=r,m=Me(r,fp),v=o/14,p=c||(y=>`${y/u*v}rem`),d=(y,b,w,E,O)=>$({fontFamily:n,fontWeight:y,fontSize:p(b),lineHeight:w},n===pi?{letterSpacing:`${dp(E/b)}em`}:{},O,f),g={h1:d(i,96,1.167,-1.5),h2:d(i,60,1.2,-.5),h3:d(s,48,1.167,0),h4:d(s,34,1.235,.25),h5:d(s,24,1.334,0),h6:d(a,20,1.6,.15),subtitle1:d(s,16,1.75,.15),subtitle2:d(a,14,1.57,.1),body1:d(s,16,1.5,.15),body2:d(s,14,1.43,.15),button:d(a,14,1.75,.4,di),caption:d(s,12,1.66,.4),overline:d(s,12,2.66,1,di),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return xe($({htmlFontSize:u,pxToRem:p,fontFamily:n,fontSize:o,fontWeightLight:i,fontWeightRegular:s,fontWeightMedium:a,fontWeightBold:l},g),m,{clone:!1})}const hp=.2,mp=.14,gp=.12;function L(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${hp})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${mp})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${gp})`].join(",")}const yp=["none",L(0,2,1,-1,0,1,1,0,0,1,3,0),L(0,3,1,-2,0,2,2,0,0,1,5,0),L(0,3,3,-2,0,3,4,0,0,1,8,0),L(0,2,4,-1,0,4,5,0,0,1,10,0),L(0,3,5,-1,0,5,8,0,0,1,14,0),L(0,3,5,-1,0,6,10,0,0,1,18,0),L(0,4,5,-2,0,7,10,1,0,2,16,1),L(0,5,5,-3,0,8,10,1,0,3,14,2),L(0,5,6,-3,0,9,12,1,0,3,16,2),L(0,6,6,-3,0,10,14,1,0,4,18,3),L(0,6,7,-4,0,11,15,1,0,4,20,3),L(0,7,8,-4,0,12,17,2,0,5,22,4),L(0,7,8,-4,0,13,19,2,0,5,24,4),L(0,7,9,-4,0,14,21,2,0,5,26,4),L(0,8,9,-5,0,15,22,2,0,6,28,5),L(0,8,10,-5,0,16,24,2,0,6,30,5),L(0,8,11,-5,0,17,26,2,0,6,32,5),L(0,9,11,-5,0,18,28,2,0,7,34,6),L(0,9,12,-6,0,19,29,2,0,7,36,6),L(0,10,13,-6,0,20,31,3,0,8,38,7),L(0,10,13,-6,0,21,33,3,0,8,40,7),L(0,10,14,-6,0,22,35,3,0,8,42,7),L(0,11,14,-7,0,23,36,3,0,9,44,8),L(0,11,15,-7,0,24,38,3,0,9,46,8)],vp=yp,xp=["duration","easing","delay"],bp={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},wp={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function hi(e){return`${Math.round(e)}ms`}function Sp(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function Ep(e){const t=$({},bp,e.easing),r=$({},wp,e.duration);return $({getAutoHeightDuration:Sp,create:(o=["all"],i={})=>{const{duration:s=r.standard,easing:a=t.easeInOut,delay:l=0}=i;return Me(i,xp),(Array.isArray(o)?o:[o]).map(u=>`${u} ${typeof s=="string"?s:hi(s)} ${a} ${typeof l=="string"?l:hi(l)}`).join(",")}},e,{easing:t,duration:r})}const kp={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},Cp=kp,Rp=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Op(e={},...t){const{mixins:r={},palette:n={},transitions:o={},typography:i={}}=e,s=Me(e,Rp);if(e.vars)throw new Error(ut(18));const a=cp(n),l=uo(e);let u=xe(l,{mixins:Kd(l.breakpoints,r),palette:a,shadows:vp.slice(),typography:pp(a,i),transitions:Ep(o),zIndex:$({},Cp)});return u=xe(u,s),u=t.reduce((f,c)=>xe(f,c),u),u.unstable_sxConfig=$({},ao,s==null?void 0:s.unstable_sxConfig),u.unstable_sx=function(c){return lo({sx:c,theme:this})},u}const _p=Op(),ya=_p,va="$$material";function Tp({props:e,name:t}){return Dd({props:e,name:t,defaultTheme:ya,themeId:va})}const Pp=e=>rr(e)&&e!=="classes",$p=Ld({themeId:va,defaultTheme:ya,rootShouldForwardProp:Pp}),Ap=$p;function Fp(e){return Zs("MuiSvgIcon",e)}Pc("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const jp=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],Np=e=>{const{color:t,fontSize:r,classes:n}=e,o={root:["root",t!=="inherit"&&`color${_e(t)}`,`fontSize${_e(r)}`]};return Rc(o,Fp,n)},Mp=Ap("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="inherit"&&t[`color${_e(r.color)}`],t[`fontSize${_e(r.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var r,n,o,i,s,a,l,u,f,c,m,v,p;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(r=e.transitions)==null||(n=r.create)==null?void 0:n.call(r,"fill",{duration:(o=e.transitions)==null||(o=o.duration)==null?void 0:o.shorter}),fontSize:{inherit:"inherit",small:((i=e.typography)==null||(s=i.pxToRem)==null?void 0:s.call(i,20))||"1.25rem",medium:((a=e.typography)==null||(l=a.pxToRem)==null?void 0:l.call(a,24))||"1.5rem",large:((u=e.typography)==null||(f=u.pxToRem)==null?void 0:f.call(u,35))||"2.1875rem"}[t.fontSize],color:(c=(m=(e.vars||e).palette)==null||(m=m[t.color])==null?void 0:m.main)!=null?c:{action:(v=(e.vars||e).palette)==null||(v=v.action)==null?void 0:v.active,disabled:(p=(e.vars||e).palette)==null||(p=p.action)==null?void 0:p.disabled,inherit:void 0}[t.color]}}),xa=h.reactExports.forwardRef(function(t,r){const n=Tp({props:t,name:"MuiSvgIcon"}),{children:o,className:i,color:s="inherit",component:a="svg",fontSize:l="medium",htmlColor:u,inheritViewBox:f=!1,titleAccess:c,viewBox:m="0 0 24 24"}=n,v=Me(n,jp),p=h.reactExports.isValidElement(o)&&o.type==="svg",d=$({},n,{color:s,component:a,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:f,viewBox:m,hasSvgAsChild:p}),g={};f||(g.viewBox=m);const y=Np(d);return h.jsxRuntimeExports.jsxs(Mp,$({as:a,className:$c(y.root,i),focusable:"false",color:u,"aria-hidden":c?void 0:!0,role:c?"img":void 0,ref:r},g,v,p&&o.props,{ownerState:d,children:[p?o.props.children:o,c?h.jsxRuntimeExports.jsx("title",{children:c}):null]}))});xa.muiName="SvgIcon";const mi=xa;function Ip(e,t){function r(n,o){return h.jsxRuntimeExports.jsx(mi,$({"data-testid":`${t}Icon`,ref:o},n,{children:e}))}return r.muiName=mi.muiName,h.reactExports.memo(h.reactExports.forwardRef(r))}const zp={configure:e=>{Ys.configure(e)}},Lp=Object.freeze(Object.defineProperty({__proto__:null,capitalize:_e,createChainedFunction:sc,createSvgIcon:Ip,debounce:ac,deprecatedPropType:lc,isMuiElement:uc,ownerDocument:Ks,ownerWindow:cc,requirePropFactory:fc,setRef:Gs,unstable_ClassNameGenerator:zp,unstable_useEnhancedEffect:Xs,unstable_useId:hc,unsupportedProp:mc,useControlled:gc,useEventCallback:yc,useForkRef:vc,useIsFocusVisible:Cc},Symbol.toStringTag,{value:"Module"})),Bp=h.getAugmentedNamespace(Lp);var gi;function Dp(){return gi||(gi=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=Bp}(fn)),fn}var Wp=ec;Object.defineProperty(Qn,"__esModule",{value:!0});var ba=Qn.default=void 0,Up=Wp(Dp()),Vp=h.jsxRuntimeExports;ba=Qn.default=(0,Up.default)((0,Vp.jsx)("path",{d:"m10 17 5-5-5-5z"}),"ArrowRight");function wa({item:e,level:t=0,...r}){var y;const{isActive:n,isCollapsed:o,expanded:i,toggleExpand:s}=r,a=`level-${t}`,l=o?"collapsed":"expanded",u=n(e.id)?"active":"",f=(b,w=a)=>`${b} ${w} ${l} ${u}`,c=!!((y=e.children)!=null&&y.length),[m,v]=h.reactExports.useState(!1),p=h.reactExports.useRef();function d(b){var k;const{level:w,hovered:E,parentRef:O}=b;return!c||o&&w>=2&&!E?null:h.jsxRuntimeExports.jsx(Qu,{parentRef:O,onlyChild:!o||o&&w<2,children:h.jsxRuntimeExports.jsx(h.motion.div,{className:f("menu-item__dropdown",`level-${w}`),initial:{height:o?"auto":0},animate:{height:o||i(e.id)?"auto":0},transition:{duration:.2},children:(k=e.children)==null?void 0:k.map(R=>h.reactExports.createElement(wa,{...r,key:R.id,item:R,level:w}))},+o)})}const g=c?"div":mu;return h.jsxRuntimeExports.jsxs("div",{ref:p,className:f("menu-item__wrapper"),onMouseEnter:()=>o&&v(!0),onMouseLeave:()=>o&&v(!1),children:[h.jsxRuntimeExports.jsxs(g,{to:c?"#":e.path||"#",style:{paddingLeft:`${o?"0.5rem":`${t*1}rem`}`},className:f("menu-item__link"),onClick:b=>{c&&(b.preventDefault(),o||s(e.id))},children:[t!==0&&h.jsxRuntimeExports.jsx(Hp,{cls:f,item:e}),h.jsxRuntimeExports.jsx("span",{className:f("menu-item__label"),children:e.name}),c&&h.jsxRuntimeExports.jsx("div",{className:f("menu-item__icon-arrow__wrapper"),children:h.jsxRuntimeExports.jsx(ba,{className:f(`menu-item__icon-arrow__icon ${i(e.id)?"open":"close"}`),fontSize:"small"})})]}),d({level:t+1,hovered:m,parentRef:p})]},e.id)}function Hp({item:e,cls:t}){var i;const[r,n]=h.reactExports.useState(!1),o=()=>{n(!0)};return h.jsxRuntimeExports.jsx("div",{className:t("menu-item__icon"),children:r?h.jsxRuntimeExports.jsx("div",{style:{width:24,height:24,backgroundColor:"#dadada",borderRadius:"5px",display:"flex",justifyContent:"center"},children:(i=e.name.trim().at(0))==null?void 0:i.toUpperCase()}):h.jsxRuntimeExports.jsx("img",{src:e.icon||"/",alt:" ",style:{height:24,maxHeight:24},onError:o})})}function yi(e){for(;e.startsWith("/");)e=e.slice(1);return e}function Sa(e,t,r=[]){for(const n of e){if(console.log(n.path,t,n.path===t),yi(n.path||"")===yi(t))return[...r,n];if(n.children){const o=Sa(n.children,t,[...r,n]);if(o)return o}}return null}function qp(e){return h.jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"20",fill:"none",viewBox:"0 0 18 20",...e,children:h.jsxRuntimeExports.jsx("path",{fill:"#E01B00",fillRule:"evenodd",d:"M.179 2.875A2.375 2.375 0 012.554.5h3.393a1.018 1.018 0 010 2.036H2.554a.34.34 0 00-.34.339v14.25c0 .187.152.34.34.34h3.393a1.018 1.018 0 110 2.035H2.554a2.375 2.375 0 01-2.375-2.375V2.875zm14.167 6.107h-7.72a1.018 1.018 0 000 2.036h7.72l-2.673 2.673a1.018 1.018 0 101.44 1.44l4.41-4.411a1.018 1.018 0 000-1.44l-4.41-4.41a1.018 1.018 0 10-1.44 1.439l2.673 2.673z",clipRule:"evenodd"})})}function Ea(e,t){return function(){return e.apply(t,arguments)}}const{toString:Kp}=Object.prototype,{getPrototypeOf:fo}=Object,Jr=(e=>t=>{const r=Kp.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),Pe=e=>(e=e.toLowerCase(),t=>Jr(t)===e),Yr=e=>t=>typeof t===e,{isArray:mt}=Array,Nt=Yr("undefined");function Gp(e){return e!==null&&!Nt(e)&&e.constructor!==null&&!Nt(e.constructor)&&me(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const ka=Pe("ArrayBuffer");function Xp(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&ka(e.buffer),t}const Jp=Yr("string"),me=Yr("function"),Ca=Yr("number"),Zr=e=>e!==null&&typeof e=="object",Yp=e=>e===!0||e===!1,or=e=>{if(Jr(e)!=="object")return!1;const t=fo(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Zp=Pe("Date"),Qp=Pe("File"),eh=Pe("Blob"),th=Pe("FileList"),rh=e=>Zr(e)&&me(e.pipe),nh=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||me(e.append)&&((t=Jr(e))==="formdata"||t==="object"&&me(e.toString)&&e.toString()==="[object FormData]"))},oh=Pe("URLSearchParams"),ih=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Ut(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,o;if(typeof e!="object"&&(e=[e]),mt(e))for(n=0,o=e.length;n<o;n++)t.call(null,e[n],n,e);else{const i=r?Object.getOwnPropertyNames(e):Object.keys(e),s=i.length;let a;for(n=0;n<s;n++)a=i[n],t.call(null,e[a],a,e)}}function Ra(e,t){t=t.toLowerCase();const r=Object.keys(e);let n=r.length,o;for(;n-- >0;)if(o=r[n],t===o.toLowerCase())return o;return null}const Oa=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),_a=e=>!Nt(e)&&e!==Oa;function Nn(){const{caseless:e}=_a(this)&&this||{},t={},r=(n,o)=>{const i=e&&Ra(t,o)||o;or(t[i])&&or(n)?t[i]=Nn(t[i],n):or(n)?t[i]=Nn({},n):mt(n)?t[i]=n.slice():t[i]=n};for(let n=0,o=arguments.length;n<o;n++)arguments[n]&&Ut(arguments[n],r);return t}const sh=(e,t,r,{allOwnKeys:n}={})=>(Ut(t,(o,i)=>{r&&me(o)?e[i]=Ea(o,r):e[i]=o},{allOwnKeys:n}),e),ah=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),lh=(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},uh=(e,t,r,n)=>{let o,i,s;const a={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)s=o[i],(!n||n(s,e,t))&&!a[s]&&(t[s]=e[s],a[s]=!0);e=r!==!1&&fo(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},ch=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return n!==-1&&n===r},fh=e=>{if(!e)return null;if(mt(e))return e;let t=e.length;if(!Ca(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},dh=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&fo(Uint8Array)),ph=(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=n.next())&&!o.done;){const i=o.value;t.call(e,i[0],i[1])}},hh=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},mh=Pe("HTMLFormElement"),gh=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,o){return n.toUpperCase()+o}),vi=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),yh=Pe("RegExp"),Ta=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};Ut(r,(o,i)=>{let s;(s=t(o,i,e))!==!1&&(n[i]=s||o)}),Object.defineProperties(e,n)},vh=e=>{Ta(e,(t,r)=>{if(me(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(me(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},xh=(e,t)=>{const r={},n=o=>{o.forEach(i=>{r[i]=!0})};return mt(e)?n(e):n(String(e).split(t)),r},bh=()=>{},wh=(e,t)=>(e=+e,Number.isFinite(e)?e:t),mn="abcdefghijklmnopqrstuvwxyz",xi="0123456789",Pa={DIGIT:xi,ALPHA:mn,ALPHA_DIGIT:mn+mn.toUpperCase()+xi},Sh=(e=16,t=Pa.ALPHA_DIGIT)=>{let r="";const{length:n}=t;for(;e--;)r+=t[Math.random()*n|0];return r};function Eh(e){return!!(e&&me(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const kh=e=>{const t=new Array(10),r=(n,o)=>{if(Zr(n)){if(t.indexOf(n)>=0)return;if(!("toJSON"in n)){t[o]=n;const i=mt(n)?[]:{};return Ut(n,(s,a)=>{const l=r(s,o+1);!Nt(l)&&(i[a]=l)}),t[o]=void 0,i}}return n};return r(e,0)},Ch=Pe("AsyncFunction"),Rh=e=>e&&(Zr(e)||me(e))&&me(e.then)&&me(e.catch),x={isArray:mt,isArrayBuffer:ka,isBuffer:Gp,isFormData:nh,isArrayBufferView:Xp,isString:Jp,isNumber:Ca,isBoolean:Yp,isObject:Zr,isPlainObject:or,isUndefined:Nt,isDate:Zp,isFile:Qp,isBlob:eh,isRegExp:yh,isFunction:me,isStream:rh,isURLSearchParams:oh,isTypedArray:dh,isFileList:th,forEach:Ut,merge:Nn,extend:sh,trim:ih,stripBOM:ah,inherits:lh,toFlatObject:uh,kindOf:Jr,kindOfTest:Pe,endsWith:ch,toArray:fh,forEachEntry:ph,matchAll:hh,isHTMLForm:mh,hasOwnProperty:vi,hasOwnProp:vi,reduceDescriptors:Ta,freezeMethods:vh,toObjectSet:xh,toCamelCase:gh,noop:bh,toFiniteNumber:wh,findKey:Ra,global:Oa,isContextDefined:_a,ALPHABET:Pa,generateString:Sh,isSpecCompliantForm:Eh,toJSONObject:kh,isAsyncFn:Ch,isThenable:Rh};function A(e,t,r,n,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),o&&(this.response=o)}x.inherits(A,Error,{toJSON:function(){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:x.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const $a=A.prototype,Aa={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Aa[e]={value:e}});Object.defineProperties(A,Aa);Object.defineProperty($a,"isAxiosError",{value:!0});A.from=(e,t,r,n,o,i)=>{const s=Object.create($a);return x.toFlatObject(e,s,function(l){return l!==Error.prototype},a=>a!=="isAxiosError"),A.call(s,e.message,t,r,n,o),s.cause=e,s.name=e.name,i&&Object.assign(s,i),s};const Oh=null;function Mn(e){return x.isPlainObject(e)||x.isArray(e)}function Fa(e){return x.endsWith(e,"[]")?e.slice(0,-2):e}function bi(e,t,r){return e?e.concat(t).map(function(o,i){return o=Fa(o),!r&&i?"["+o+"]":o}).join(r?".":""):t}function _h(e){return x.isArray(e)&&!e.some(Mn)}const Th=x.toFlatObject(x,{},null,function(t){return/^is[A-Z]/.test(t)});function Qr(e,t,r){if(!x.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=x.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(d,g){return!x.isUndefined(g[d])});const n=r.metaTokens,o=r.visitor||f,i=r.dots,s=r.indexes,l=(r.Blob||typeof Blob<"u"&&Blob)&&x.isSpecCompliantForm(t);if(!x.isFunction(o))throw new TypeError("visitor must be a function");function u(p){if(p===null)return"";if(x.isDate(p))return p.toISOString();if(!l&&x.isBlob(p))throw new A("Blob is not supported. Use a Buffer instead.");return x.isArrayBuffer(p)||x.isTypedArray(p)?l&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function f(p,d,g){let y=p;if(p&&!g&&typeof p=="object"){if(x.endsWith(d,"{}"))d=n?d:d.slice(0,-2),p=JSON.stringify(p);else if(x.isArray(p)&&_h(p)||(x.isFileList(p)||x.endsWith(d,"[]"))&&(y=x.toArray(p)))return d=Fa(d),y.forEach(function(w,E){!(x.isUndefined(w)||w===null)&&t.append(s===!0?bi([d],E,i):s===null?d:d+"[]",u(w))}),!1}return Mn(p)?!0:(t.append(bi(g,d,i),u(p)),!1)}const c=[],m=Object.assign(Th,{defaultVisitor:f,convertValue:u,isVisitable:Mn});function v(p,d){if(!x.isUndefined(p)){if(c.indexOf(p)!==-1)throw Error("Circular reference detected in "+d.join("."));c.push(p),x.forEach(p,function(y,b){(!(x.isUndefined(y)||y===null)&&o.call(t,y,x.isString(b)?b.trim():b,d,m))===!0&&v(y,d?d.concat(b):[b])}),c.pop()}}if(!x.isObject(e))throw new TypeError("data must be an object");return v(e),t}function wi(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function po(e,t){this._pairs=[],e&&Qr(e,this,t)}const ja=po.prototype;ja.append=function(t,r){this._pairs.push([t,r])};ja.toString=function(t){const r=t?function(n){return t.call(this,n,wi)}:wi;return this._pairs.map(function(o){return r(o[0])+"="+r(o[1])},"").join("&")};function Ph(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Na(e,t,r){if(!t)return e;const n=r&&r.encode||Ph,o=r&&r.serialize;let i;if(o?i=o(t,r):i=x.isURLSearchParams(t)?t.toString():new po(t,r).toString(n),i){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class $h{constructor(){this.handlers=[]}use(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){x.forEach(this.handlers,function(n){n!==null&&t(n)})}}const Si=$h,Ma={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Ah=typeof URLSearchParams<"u"?URLSearchParams:po,Fh=typeof FormData<"u"?FormData:null,jh=typeof Blob<"u"?Blob:null,Nh={isBrowser:!0,classes:{URLSearchParams:Ah,FormData:Fh,Blob:jh},protocols:["http","https","file","blob","url","data"]},Ia=typeof window<"u"&&typeof document<"u",Mh=(e=>Ia&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),Ih=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),zh=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Ia,hasStandardBrowserEnv:Mh,hasStandardBrowserWebWorkerEnv:Ih},Symbol.toStringTag,{value:"Module"})),Oe={...zh,...Nh};function Lh(e,t){return Qr(e,new Oe.classes.URLSearchParams,Object.assign({visitor:function(r,n,o,i){return Oe.isNode&&x.isBuffer(r)?(this.append(n,r.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function Bh(e){return x.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Dh(e){const t={},r=Object.keys(e);let n;const o=r.length;let i;for(n=0;n<o;n++)i=r[n],t[i]=e[i];return t}function za(e){function t(r,n,o,i){let s=r[i++];if(s==="__proto__")return!0;const a=Number.isFinite(+s),l=i>=r.length;return s=!s&&x.isArray(o)?o.length:s,l?(x.hasOwnProp(o,s)?o[s]=[o[s],n]:o[s]=n,!a):((!o[s]||!x.isObject(o[s]))&&(o[s]=[]),t(r,n,o[s],i)&&x.isArray(o[s])&&(o[s]=Dh(o[s])),!a)}if(x.isFormData(e)&&x.isFunction(e.entries)){const r={};return x.forEachEntry(e,(n,o)=>{t(Bh(n),o,r,0)}),r}return null}function Wh(e,t,r){if(x.isString(e))try{return(t||JSON.parse)(e),x.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}const ho={transitional:Ma,adapter:["xhr","http"],transformRequest:[function(t,r){const n=r.getContentType()||"",o=n.indexOf("application/json")>-1,i=x.isObject(t);if(i&&x.isHTMLForm(t)&&(t=new FormData(t)),x.isFormData(t))return o&&o?JSON.stringify(za(t)):t;if(x.isArrayBuffer(t)||x.isBuffer(t)||x.isStream(t)||x.isFile(t)||x.isBlob(t))return t;if(x.isArrayBufferView(t))return t.buffer;if(x.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(i){if(n.indexOf("application/x-www-form-urlencoded")>-1)return Lh(t,this.formSerializer).toString();if((a=x.isFileList(t))||n.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return Qr(a?{"files[]":t}:t,l&&new l,this.formSerializer)}}return i||o?(r.setContentType("application/json",!1),Wh(t)):t}],transformResponse:[function(t){const r=this.transitional||ho.transitional,n=r&&r.forcedJSONParsing,o=this.responseType==="json";if(t&&x.isString(t)&&(n&&!this.responseType||o)){const s=!(r&&r.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(a){if(s)throw a.name==="SyntaxError"?A.from(a,A.ERR_BAD_RESPONSE,this,null,this.response):a}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Oe.classes.FormData,Blob:Oe.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};x.forEach(["delete","get","head","post","put","patch"],e=>{ho.headers[e]={}});const mo=ho,Uh=x.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"]),Vh=e=>{const t={};let r,n,o;return e&&e.split(`
35
- `).forEach(function(s){o=s.indexOf(":"),r=s.substring(0,o).trim().toLowerCase(),n=s.substring(o+1).trim(),!(!r||t[r]&&Uh[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t},Ei=Symbol("internals");function St(e){return e&&String(e).trim().toLowerCase()}function ir(e){return e===!1||e==null?e:x.isArray(e)?e.map(ir):String(e)}function Hh(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}const qh=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function gn(e,t,r,n,o){if(x.isFunction(n))return n.call(this,t,r);if(o&&(t=r),!!x.isString(t)){if(x.isString(n))return t.indexOf(n)!==-1;if(x.isRegExp(n))return n.test(t)}}function Kh(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function Gh(e,t){const r=x.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(o,i,s){return this[n].call(this,t,o,i,s)},configurable:!0})})}class en{constructor(t){t&&this.set(t)}set(t,r,n){const o=this;function i(a,l,u){const f=St(l);if(!f)throw new Error("header name must be a non-empty string");const c=x.findKey(o,f);(!c||o[c]===void 0||u===!0||u===void 0&&o[c]!==!1)&&(o[c||l]=ir(a))}const s=(a,l)=>x.forEach(a,(u,f)=>i(u,f,l));return x.isPlainObject(t)||t instanceof this.constructor?s(t,r):x.isString(t)&&(t=t.trim())&&!qh(t)?s(Vh(t),r):t!=null&&i(r,t,n),this}get(t,r){if(t=St(t),t){const n=x.findKey(this,t);if(n){const o=this[n];if(!r)return o;if(r===!0)return Hh(o);if(x.isFunction(r))return r.call(this,o,n);if(x.isRegExp(r))return r.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=St(t),t){const n=x.findKey(this,t);return!!(n&&this[n]!==void 0&&(!r||gn(this,this[n],n,r)))}return!1}delete(t,r){const n=this;let o=!1;function i(s){if(s=St(s),s){const a=x.findKey(n,s);a&&(!r||gn(n,n[a],a,r))&&(delete n[a],o=!0)}}return x.isArray(t)?t.forEach(i):i(t),o}clear(t){const r=Object.keys(this);let n=r.length,o=!1;for(;n--;){const i=r[n];(!t||gn(this,this[i],i,t,!0))&&(delete this[i],o=!0)}return o}normalize(t){const r=this,n={};return x.forEach(this,(o,i)=>{const s=x.findKey(n,i);if(s){r[s]=ir(o),delete r[i];return}const a=t?Kh(i):String(i).trim();a!==i&&delete r[i],r[a]=ir(o),n[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const r=Object.create(null);return x.forEach(this,(n,o)=>{n!=null&&n!==!1&&(r[o]=t&&x.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,r])=>t+": "+r).join(`
36
- `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){const n=new this(t);return r.forEach(o=>n.set(o)),n}static accessor(t){const n=(this[Ei]=this[Ei]={accessors:{}}).accessors,o=this.prototype;function i(s){const a=St(s);n[a]||(Gh(o,s),n[a]=!0)}return x.isArray(t)?t.forEach(i):i(t),this}}en.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);x.reduceDescriptors(en.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}});x.freezeMethods(en);const Ae=en;function yn(e,t){const r=this||mo,n=t||r,o=Ae.from(n.headers);let i=n.data;return x.forEach(e,function(a){i=a.call(r,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function La(e){return!!(e&&e.__CANCEL__)}function Vt(e,t,r){A.call(this,e??"canceled",A.ERR_CANCELED,t,r),this.name="CanceledError"}x.inherits(Vt,A,{__CANCEL__:!0});function Xh(e,t,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new A("Request failed with status code "+r.status,[A.ERR_BAD_REQUEST,A.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}const Jh=Oe.hasStandardBrowserEnv?{write(e,t,r,n,o,i){const s=[e+"="+encodeURIComponent(t)];x.isNumber(r)&&s.push("expires="+new Date(r).toGMTString()),x.isString(n)&&s.push("path="+n),x.isString(o)&&s.push("domain="+o),i===!0&&s.push("secure"),document.cookie=s.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Yh(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Zh(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Ba(e,t){return e&&!Yh(t)?Zh(e,t):t}const Qh=Oe.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");let n;function o(i){let s=i;return t&&(r.setAttribute("href",s),s=r.href),r.setAttribute("href",s),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:r.pathname.charAt(0)==="/"?r.pathname:"/"+r.pathname}}return n=o(window.location.href),function(s){const a=x.isString(s)?o(s):s;return a.protocol===n.protocol&&a.host===n.host}}():function(){return function(){return!0}}();function em(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function tm(e,t){e=e||10;const r=new Array(e),n=new Array(e);let o=0,i=0,s;return t=t!==void 0?t:1e3,function(l){const u=Date.now(),f=n[i];s||(s=u),r[o]=l,n[o]=u;let c=i,m=0;for(;c!==o;)m+=r[c++],c=c%e;if(o=(o+1)%e,o===i&&(i=(i+1)%e),u-s<t)return;const v=f&&u-f;return v?Math.round(m*1e3/v):void 0}}function ki(e,t){let r=0;const n=tm(50,250);return o=>{const i=o.loaded,s=o.lengthComputable?o.total:void 0,a=i-r,l=n(a),u=i<=s;r=i;const f={loaded:i,total:s,progress:s?i/s:void 0,bytes:a,rate:l||void 0,estimated:l&&s&&u?(s-i)/l:void 0,event:o};f[t?"download":"upload"]=!0,e(f)}}const rm=typeof XMLHttpRequest<"u",nm=rm&&function(e){return new Promise(function(r,n){let o=e.data;const i=Ae.from(e.headers).normalize();let{responseType:s,withXSRFToken:a}=e,l;function u(){e.cancelToken&&e.cancelToken.unsubscribe(l),e.signal&&e.signal.removeEventListener("abort",l)}let f;if(x.isFormData(o)){if(Oe.hasStandardBrowserEnv||Oe.hasStandardBrowserWebWorkerEnv)i.setContentType(!1);else if((f=i.getContentType())!==!1){const[d,...g]=f?f.split(";").map(y=>y.trim()).filter(Boolean):[];i.setContentType([d||"multipart/form-data",...g].join("; "))}}let c=new XMLHttpRequest;if(e.auth){const d=e.auth.username||"",g=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";i.set("Authorization","Basic "+btoa(d+":"+g))}const m=Ba(e.baseURL,e.url);c.open(e.method.toUpperCase(),Na(m,e.params,e.paramsSerializer),!0),c.timeout=e.timeout;function v(){if(!c)return;const d=Ae.from("getAllResponseHeaders"in c&&c.getAllResponseHeaders()),y={data:!s||s==="text"||s==="json"?c.responseText:c.response,status:c.status,statusText:c.statusText,headers:d,config:e,request:c};Xh(function(w){r(w),u()},function(w){n(w),u()},y),c=null}if("onloadend"in c?c.onloadend=v:c.onreadystatechange=function(){!c||c.readyState!==4||c.status===0&&!(c.responseURL&&c.responseURL.indexOf("file:")===0)||setTimeout(v)},c.onabort=function(){c&&(n(new A("Request aborted",A.ECONNABORTED,e,c)),c=null)},c.onerror=function(){n(new A("Network Error",A.ERR_NETWORK,e,c)),c=null},c.ontimeout=function(){let g=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const y=e.transitional||Ma;e.timeoutErrorMessage&&(g=e.timeoutErrorMessage),n(new A(g,y.clarifyTimeoutError?A.ETIMEDOUT:A.ECONNABORTED,e,c)),c=null},Oe.hasStandardBrowserEnv&&(a&&x.isFunction(a)&&(a=a(e)),a||a!==!1&&Qh(m))){const d=e.xsrfHeaderName&&e.xsrfCookieName&&Jh.read(e.xsrfCookieName);d&&i.set(e.xsrfHeaderName,d)}o===void 0&&i.setContentType(null),"setRequestHeader"in c&&x.forEach(i.toJSON(),function(g,y){c.setRequestHeader(y,g)}),x.isUndefined(e.withCredentials)||(c.withCredentials=!!e.withCredentials),s&&s!=="json"&&(c.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&c.addEventListener("progress",ki(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&c.upload&&c.upload.addEventListener("progress",ki(e.onUploadProgress)),(e.cancelToken||e.signal)&&(l=d=>{c&&(n(!d||d.type?new Vt(null,e,c):d),c.abort(),c=null)},e.cancelToken&&e.cancelToken.subscribe(l),e.signal&&(e.signal.aborted?l():e.signal.addEventListener("abort",l)));const p=em(m);if(p&&Oe.protocols.indexOf(p)===-1){n(new A("Unsupported protocol "+p+":",A.ERR_BAD_REQUEST,e));return}c.send(o||null)})},In={http:Oh,xhr:nm};x.forEach(In,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Ci=e=>`- ${e}`,om=e=>x.isFunction(e)||e===null||e===!1,Da={getAdapter:e=>{e=x.isArray(e)?e:[e];const{length:t}=e;let r,n;const o={};for(let i=0;i<t;i++){r=e[i];let s;if(n=r,!om(r)&&(n=In[(s=String(r)).toLowerCase()],n===void 0))throw new A(`Unknown adapter '${s}'`);if(n)break;o[s||"#"+i]=n}if(!n){const i=Object.entries(o).map(([a,l])=>`adapter ${a} `+(l===!1?"is not supported by the environment":"is not available in the build"));let s=t?i.length>1?`since :
37
- `+i.map(Ci).join(`
38
- `):" "+Ci(i[0]):"as no adapter specified";throw new A("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return n},adapters:In};function vn(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Vt(null,e)}function Ri(e){return vn(e),e.headers=Ae.from(e.headers),e.data=yn.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Da.getAdapter(e.adapter||mo.adapter)(e).then(function(n){return vn(e),n.data=yn.call(e,e.transformResponse,n),n.headers=Ae.from(n.headers),n},function(n){return La(n)||(vn(e),n&&n.response&&(n.response.data=yn.call(e,e.transformResponse,n.response),n.response.headers=Ae.from(n.response.headers))),Promise.reject(n)})}const Oi=e=>e instanceof Ae?e.toJSON():e;function dt(e,t){t=t||{};const r={};function n(u,f,c){return x.isPlainObject(u)&&x.isPlainObject(f)?x.merge.call({caseless:c},u,f):x.isPlainObject(f)?x.merge({},f):x.isArray(f)?f.slice():f}function o(u,f,c){if(x.isUndefined(f)){if(!x.isUndefined(u))return n(void 0,u,c)}else return n(u,f,c)}function i(u,f){if(!x.isUndefined(f))return n(void 0,f)}function s(u,f){if(x.isUndefined(f)){if(!x.isUndefined(u))return n(void 0,u)}else return n(void 0,f)}function a(u,f,c){if(c in t)return n(u,f);if(c in e)return n(void 0,u)}const l={url:i,method:i,data:i,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a,headers:(u,f)=>o(Oi(u),Oi(f),!0)};return x.forEach(Object.keys(Object.assign({},e,t)),function(f){const c=l[f]||o,m=c(e[f],t[f],f);x.isUndefined(m)&&c!==a||(r[f]=m)}),r}const Wa="1.6.5",go={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{go[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const _i={};go.transitional=function(t,r,n){function o(i,s){return"[Axios v"+Wa+"] Transitional option '"+i+"'"+s+(n?". "+n:"")}return(i,s,a)=>{if(t===!1)throw new A(o(s," has been removed"+(r?" in "+r:"")),A.ERR_DEPRECATED);return r&&!_i[s]&&(_i[s]=!0,console.warn(o(s," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(i,s,a):!0}};function im(e,t,r){if(typeof e!="object")throw new A("options must be an object",A.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let o=n.length;for(;o-- >0;){const i=n[o],s=t[i];if(s){const a=e[i],l=a===void 0||s(a,i,e);if(l!==!0)throw new A("option "+i+" must be "+l,A.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new A("Unknown option "+i,A.ERR_BAD_OPTION)}}const zn={assertOptions:im,validators:go},Be=zn.validators;class Cr{constructor(t){this.defaults=t,this.interceptors={request:new Si,response:new Si}}request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=dt(this.defaults,r);const{transitional:n,paramsSerializer:o,headers:i}=r;n!==void 0&&zn.assertOptions(n,{silentJSONParsing:Be.transitional(Be.boolean),forcedJSONParsing:Be.transitional(Be.boolean),clarifyTimeoutError:Be.transitional(Be.boolean)},!1),o!=null&&(x.isFunction(o)?r.paramsSerializer={serialize:o}:zn.assertOptions(o,{encode:Be.function,serialize:Be.function},!0)),r.method=(r.method||this.defaults.method||"get").toLowerCase();let s=i&&x.merge(i.common,i[r.method]);i&&x.forEach(["delete","get","head","post","put","patch","common"],p=>{delete i[p]}),r.headers=Ae.concat(s,i);const a=[];let l=!0;this.interceptors.request.forEach(function(d){typeof d.runWhen=="function"&&d.runWhen(r)===!1||(l=l&&d.synchronous,a.unshift(d.fulfilled,d.rejected))});const u=[];this.interceptors.response.forEach(function(d){u.push(d.fulfilled,d.rejected)});let f,c=0,m;if(!l){const p=[Ri.bind(this),void 0];for(p.unshift.apply(p,a),p.push.apply(p,u),m=p.length,f=Promise.resolve(r);c<m;)f=f.then(p[c++],p[c++]);return f}m=a.length;let v=r;for(c=0;c<m;){const p=a[c++],d=a[c++];try{v=p(v)}catch(g){d.call(this,g);break}}try{f=Ri.call(this,v)}catch(p){return Promise.reject(p)}for(c=0,m=u.length;c<m;)f=f.then(u[c++],u[c++]);return f}getUri(t){t=dt(this.defaults,t);const r=Ba(t.baseURL,t.url);return Na(r,t.params,t.paramsSerializer)}}x.forEach(["delete","get","head","options"],function(t){Cr.prototype[t]=function(r,n){return this.request(dt(n||{},{method:t,url:r,data:(n||{}).data}))}});x.forEach(["post","put","patch"],function(t){function r(n){return function(i,s,a){return this.request(dt(a||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:i,data:s}))}}Cr.prototype[t]=r(),Cr.prototype[t+"Form"]=r(!0)});const sr=Cr;class yo{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(i){r=i});const n=this;this.promise.then(o=>{if(!n._listeners)return;let i=n._listeners.length;for(;i-- >0;)n._listeners[i](o);n._listeners=null}),this.promise.then=o=>{let i;const s=new Promise(a=>{n.subscribe(a),i=a}).then(o);return s.cancel=function(){n.unsubscribe(i)},s},t(function(i,s,a){n.reason||(n.reason=new Vt(i,s,a),r(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}static source(){let t;return{token:new yo(function(o){t=o}),cancel:t}}}const sm=yo;function am(e){return function(r){return e.apply(null,r)}}function lm(e){return x.isObject(e)&&e.isAxiosError===!0}const Ln={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,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity: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};Object.entries(Ln).forEach(([e,t])=>{Ln[t]=e});const um=Ln;function Ua(e){const t=new sr(e),r=Ea(sr.prototype.request,t);return x.extend(r,sr.prototype,t,{allOwnKeys:!0}),x.extend(r,t,null,{allOwnKeys:!0}),r.create=function(o){return Ua(dt(e,o))},r}const V=Ua(mo);V.Axios=sr;V.CanceledError=Vt;V.CancelToken=sm;V.isCancel=La;V.VERSION=Wa;V.toFormData=Qr;V.AxiosError=A;V.Cancel=V.CanceledError;V.all=function(t){return Promise.all(t)};V.spread=am;V.isAxiosError=lm;V.mergeConfig=dt;V.AxiosHeaders=Ae;V.formToJSON=e=>za(x.isHTMLForm(e)?new FormData(e):e);V.getAdapter=Da.getAdapter;V.HttpStatusCode=um;V.default=V;const cm=V,fm=`[data-simplebar]{position:relative;flex-direction:column;flex-wrap:wrap;justify-content:flex-start;align-content:flex-start;align-items:flex-start}.simplebar-wrapper{overflow:hidden;width:inherit;height:inherit;max-width:inherit;max-height:inherit}.simplebar-mask{direction:inherit;position:absolute;overflow:hidden;padding:0;margin:0;left:0;top:0;bottom:0;right:0;width:auto!important;height:auto!important;z-index:0}.simplebar-offset{direction:inherit!important;box-sizing:inherit!important;resize:none!important;position:absolute;top:0;left:0;bottom:0;right:0;padding:0;margin:0;-webkit-overflow-scrolling:touch}.simplebar-content-wrapper{direction:inherit;box-sizing:border-box!important;position:relative;display:block;height:100%;width:auto;max-width:100%;max-height:100%;overflow:auto;scrollbar-width:none;-ms-overflow-style:none}.simplebar-content-wrapper::-webkit-scrollbar,.simplebar-hide-scrollbar::-webkit-scrollbar{display:none;width:0;height:0}.simplebar-content:after,.simplebar-content:before{content:" ";display:table}.simplebar-placeholder{max-height:100%;max-width:100%;width:100%;pointer-events:none}.simplebar-height-auto-observer-wrapper{box-sizing:inherit!important;height:100%;width:100%;max-width:1px;position:relative;float:left;max-height:1px;overflow:hidden;z-index:-1;padding:0;margin:0;pointer-events:none;flex-grow:inherit;flex-shrink:0;flex-basis:0}.simplebar-height-auto-observer{box-sizing:inherit;display:block;opacity:0;position:absolute;top:0;left:0;height:1000%;width:1000%;min-height:1px;min-width:1px;overflow:hidden;pointer-events:none;z-index:-1}.simplebar-track{z-index:1;position:absolute;right:0;bottom:0;pointer-events:none;overflow:hidden}[data-simplebar].simplebar-dragging,[data-simplebar].simplebar-dragging .simplebar-content{pointer-events:none;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}[data-simplebar].simplebar-dragging .simplebar-track{pointer-events:all}.simplebar-scrollbar{position:absolute;left:0;right:0;min-height:10px}.simplebar-scrollbar:before{position:absolute;content:"";background:#000;border-radius:7px;left:2px;right:2px;opacity:0;transition:opacity .2s .5s linear}.simplebar-scrollbar.simplebar-visible:before{opacity:.5;transition-delay:0s;transition-duration:0s}.simplebar-track.simplebar-vertical{top:0;width:11px}.simplebar-scrollbar:before{top:2px;bottom:2px;left:2px;right:2px}.simplebar-track.simplebar-horizontal{left:0;height:11px}.simplebar-track.simplebar-horizontal .simplebar-scrollbar{right:auto;left:0;top:0;bottom:0;min-height:0;min-width:10px;width:auto}[data-simplebar-direction=rtl] .simplebar-track.simplebar-vertical{right:auto;left:0}.simplebar-dummy-scrollbar-size{direction:rtl;position:fixed;opacity:0;visibility:hidden;height:500px;width:500px;overflow-y:hidden;overflow-x:scroll;-ms-overflow-style:scrollbar!important}.simplebar-dummy-scrollbar-size>div{width:200%;height:200%;margin:10px 0}.simplebar-hide-scrollbar{position:fixed;left:0;visibility:hidden;overflow-y:scroll;scrollbar-width:none;-ms-overflow-style:none}
39
- `;var gt={};/**
40
- * @license React
41
- * react-dom-server-legacy.browser.production.min.js
42
- *
43
- * Copyright (c) Facebook, Inc. and its affiliates.
44
- *
45
- * This source code is licensed under the MIT license found in the
46
- * LICENSE file in the root directory of this source tree.
47
- */var Va=h.reactExports;function _(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);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."}var te=Object.prototype.hasOwnProperty,dm=/^[: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]*$/,Ti={},Pi={};function Ha(e){return te.call(Pi,e)?!0:te.call(Ti,e)?!1:dm.test(e)?Pi[e]=!0:(Ti[e]=!0,!1)}function Z(e,t,r,n,o,i,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=o,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=s}var G={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){G[e]=new Z(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];G[t]=new Z(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){G[e]=new Z(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){G[e]=new Z(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){G[e]=new Z(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){G[e]=new Z(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){G[e]=new Z(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){G[e]=new Z(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){G[e]=new Z(e,5,!1,e.toLowerCase(),null,!1,!1)});var vo=/[\-:]([a-z])/g;function xo(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(vo,xo);G[t]=new Z(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(vo,xo);G[t]=new Z(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(vo,xo);G[t]=new Z(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){G[e]=new Z(e,1,!1,e.toLowerCase(),null,!1,!1)});G.xlinkHref=new Z("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){G[e]=new Z(e,1,!1,e.toLowerCase(),null,!0,!0)});var ar={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},pm=["Webkit","ms","Moz","O"];Object.keys(ar).forEach(function(e){pm.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ar[t]=ar[e]})});var hm=/["'&<>]/;function Y(e){if(typeof e=="boolean"||typeof e=="number")return""+e;e=""+e;var t=hm.exec(e);if(t){var r="",n,o=0;for(n=t.index;n<e.length;n++){switch(e.charCodeAt(n)){case 34:t="&quot;";break;case 38:t="&amp;";break;case 39:t="&#x27;";break;case 60:t="&lt;";break;case 62:t="&gt;";break;default:continue}o!==n&&(r+=e.substring(o,n)),o=n+1,r+=t}e=o!==n?r+e.substring(o,n):r}return e}var mm=/([A-Z])/g,gm=/^ms-/,Bn=Array.isArray;function $e(e,t){return{insertionMode:e,selectedValue:t}}function ym(e,t,r){switch(t){case"select":return $e(1,r.value!=null?r.value:r.defaultValue);case"svg":return $e(2,null);case"math":return $e(3,null);case"foreignObject":return $e(1,null);case"table":return $e(4,null);case"thead":case"tbody":case"tfoot":return $e(5,null);case"colgroup":return $e(7,null);case"tr":return $e(6,null)}return 4<=e.insertionMode||e.insertionMode===0?$e(1,null):e}var $i=new Map;function qa(e,t,r){if(typeof r!="object")throw Error(_(62));t=!0;for(var n in r)if(te.call(r,n)){var o=r[n];if(o!=null&&typeof o!="boolean"&&o!==""){if(n.indexOf("--")===0){var i=Y(n);o=Y((""+o).trim())}else{i=n;var s=$i.get(i);s!==void 0||(s=Y(i.replace(mm,"-$1").toLowerCase().replace(gm,"-ms-")),$i.set(i,s)),i=s,o=typeof o=="number"?o===0||te.call(ar,n)?""+o:o+"px":Y((""+o).trim())}t?(t=!1,e.push(' style="',i,":",o)):e.push(";",i,":",o)}}t||e.push('"')}function ie(e,t,r,n){switch(r){case"style":qa(e,t,n);return;case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(2<r.length)||r[0]!=="o"&&r[0]!=="O"||r[1]!=="n"&&r[1]!=="N"){if(t=G.hasOwnProperty(r)?G[r]:null,t!==null){switch(typeof n){case"function":case"symbol":return;case"boolean":if(!t.acceptsBooleans)return}switch(r=t.attributeName,t.type){case 3:n&&e.push(" ",r,'=""');break;case 4:n===!0?e.push(" ",r,'=""'):n!==!1&&e.push(" ",r,'="',Y(n),'"');break;case 5:isNaN(n)||e.push(" ",r,'="',Y(n),'"');break;case 6:!isNaN(n)&&1<=n&&e.push(" ",r,'="',Y(n),'"');break;default:t.sanitizeURL&&(n=""+n),e.push(" ",r,'="',Y(n),'"')}}else if(Ha(r)){switch(typeof n){case"function":case"symbol":return;case"boolean":if(t=r.toLowerCase().slice(0,5),t!=="data-"&&t!=="aria-")return}e.push(" ",r,'="',Y(n),'"')}}}function lr(e,t,r){if(t!=null){if(r!=null)throw Error(_(60));if(typeof t!="object"||!("__html"in t))throw Error(_(61));t=t.__html,t!=null&&e.push(""+t)}}function vm(e){var t="";return Va.Children.forEach(e,function(r){r!=null&&(t+=r)}),t}function xn(e,t,r,n){e.push(Se(r));var o=r=null,i;for(i in t)if(te.call(t,i)){var s=t[i];if(s!=null)switch(i){case"children":r=s;break;case"dangerouslySetInnerHTML":o=s;break;default:ie(e,n,i,s)}}return e.push(">"),lr(e,o,r),typeof r=="string"?(e.push(Y(r)),null):r}var xm=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,Ai=new Map;function Se(e){var t=Ai.get(e);if(t===void 0){if(!xm.test(e))throw Error(_(65,e));t="<"+e,Ai.set(e,t)}return t}function bm(e,t,r,n,o){switch(t){case"select":e.push(Se("select"));var i=null,s=null;for(f in r)if(te.call(r,f)){var a=r[f];if(a!=null)switch(f){case"children":i=a;break;case"dangerouslySetInnerHTML":s=a;break;case"defaultValue":case"value":break;default:ie(e,n,f,a)}}return e.push(">"),lr(e,s,i),i;case"option":s=o.selectedValue,e.push(Se("option"));var l=a=null,u=null,f=null;for(i in r)if(te.call(r,i)){var c=r[i];if(c!=null)switch(i){case"children":a=c;break;case"selected":u=c;break;case"dangerouslySetInnerHTML":f=c;break;case"value":l=c;default:ie(e,n,i,c)}}if(s!=null)if(r=l!==null?""+l:vm(a),Bn(s)){for(n=0;n<s.length;n++)if(""+s[n]===r){e.push(' selected=""');break}}else""+s===r&&e.push(' selected=""');else u&&e.push(' selected=""');return e.push(">"),lr(e,f,a),a;case"textarea":e.push(Se("textarea")),f=s=i=null;for(a in r)if(te.call(r,a)&&(l=r[a],l!=null))switch(a){case"children":f=l;break;case"value":i=l;break;case"defaultValue":s=l;break;case"dangerouslySetInnerHTML":throw Error(_(91));default:ie(e,n,a,l)}if(i===null&&s!==null&&(i=s),e.push(">"),f!=null){if(i!=null)throw Error(_(92));if(Bn(f)&&1<f.length)throw Error(_(93));i=""+f}return typeof i=="string"&&i[0]===`
48
- `&&e.push(`
49
- `),i!==null&&e.push(Y(""+i)),null;case"input":e.push(Se("input")),l=f=a=i=null;for(s in r)if(te.call(r,s)&&(u=r[s],u!=null))switch(s){case"children":case"dangerouslySetInnerHTML":throw Error(_(399,"input"));case"defaultChecked":l=u;break;case"defaultValue":a=u;break;case"checked":f=u;break;case"value":i=u;break;default:ie(e,n,s,u)}return f!==null?ie(e,n,"checked",f):l!==null&&ie(e,n,"checked",l),i!==null?ie(e,n,"value",i):a!==null&&ie(e,n,"value",a),e.push("/>"),null;case"menuitem":e.push(Se("menuitem"));for(var m in r)if(te.call(r,m)&&(i=r[m],i!=null))switch(m){case"children":case"dangerouslySetInnerHTML":throw Error(_(400));default:ie(e,n,m,i)}return e.push(">"),null;case"title":e.push(Se("title")),i=null;for(c in r)if(te.call(r,c)&&(s=r[c],s!=null))switch(c){case"children":i=s;break;case"dangerouslySetInnerHTML":throw Error(_(434));default:ie(e,n,c,s)}return e.push(">"),i;case"listing":case"pre":e.push(Se(t)),s=i=null;for(l in r)if(te.call(r,l)&&(a=r[l],a!=null))switch(l){case"children":i=a;break;case"dangerouslySetInnerHTML":s=a;break;default:ie(e,n,l,a)}if(e.push(">"),s!=null){if(i!=null)throw Error(_(60));if(typeof s!="object"||!("__html"in s))throw Error(_(61));r=s.__html,r!=null&&(typeof r=="string"&&0<r.length&&r[0]===`
50
- `?e.push(`
51
- `,r):e.push(""+r))}return typeof i=="string"&&i[0]===`
52
- `&&e.push(`
53
- `),i;case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":e.push(Se(t));for(var v in r)if(te.call(r,v)&&(i=r[v],i!=null))switch(v){case"children":case"dangerouslySetInnerHTML":throw Error(_(399,t));default:ie(e,n,v,i)}return e.push("/>"),null;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 xn(e,r,t,n);case"html":return o.insertionMode===0&&e.push("<!DOCTYPE html>"),xn(e,r,t,n);default:if(t.indexOf("-")===-1&&typeof r.is!="string")return xn(e,r,t,n);e.push(Se(t)),s=i=null;for(u in r)if(te.call(r,u)&&(a=r[u],a!=null))switch(u){case"children":i=a;break;case"dangerouslySetInnerHTML":s=a;break;case"style":qa(e,n,a);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:Ha(u)&&typeof a!="function"&&typeof a!="symbol"&&e.push(" ",u,'="',Y(a),'"')}return e.push(">"),lr(e,s,i),i}}function Fi(e,t,r){if(e.push('<!--$?--><template id="'),r===null)throw Error(_(395));return e.push(r),e.push('"></template>')}function wm(e,t,r,n){switch(r.insertionMode){case 0:case 1:return e.push('<div hidden id="'),e.push(t.segmentPrefix),t=n.toString(16),e.push(t),e.push('">');case 2:return e.push('<svg aria-hidden="true" style="display:none" id="'),e.push(t.segmentPrefix),t=n.toString(16),e.push(t),e.push('">');case 3:return e.push('<math aria-hidden="true" style="display:none" id="'),e.push(t.segmentPrefix),t=n.toString(16),e.push(t),e.push('">');case 4:return e.push('<table hidden id="'),e.push(t.segmentPrefix),t=n.toString(16),e.push(t),e.push('">');case 5:return e.push('<table hidden><tbody id="'),e.push(t.segmentPrefix),t=n.toString(16),e.push(t),e.push('">');case 6:return e.push('<table hidden><tr id="'),e.push(t.segmentPrefix),t=n.toString(16),e.push(t),e.push('">');case 7:return e.push('<table hidden><colgroup id="'),e.push(t.segmentPrefix),t=n.toString(16),e.push(t),e.push('">');default:throw Error(_(397))}}function Sm(e,t){switch(t.insertionMode){case 0:case 1:return e.push("</div>");case 2:return e.push("</svg>");case 3:return e.push("</math>");case 4:return e.push("</table>");case 5:return e.push("</tbody></table>");case 6:return e.push("</tr></table>");case 7:return e.push("</colgroup></table>");default:throw Error(_(397))}}var Em=/[<\u2028\u2029]/g;function bn(e){return JSON.stringify(e).replace(Em,function(t){switch(t){case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}})}function km(e,t){return t=t===void 0?"":t,{bootstrapChunks:[],startInlineScript:"<script>",placeholderPrefix:t+"P:",segmentPrefix:t+"S:",boundaryPrefix:t+"B:",idPrefix:t,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1,generateStaticMarkup:e}}function ji(e,t,r,n){return r.generateStaticMarkup?(e.push(Y(t)),!1):(t===""?e=n:(n&&e.push("<!-- -->"),e.push(Y(t)),e=!0),e)}var _t=Object.assign,Cm=Symbol.for("react.element"),Ka=Symbol.for("react.portal"),Ga=Symbol.for("react.fragment"),Xa=Symbol.for("react.strict_mode"),Ja=Symbol.for("react.profiler"),Ya=Symbol.for("react.provider"),Za=Symbol.for("react.context"),Qa=Symbol.for("react.forward_ref"),el=Symbol.for("react.suspense"),tl=Symbol.for("react.suspense_list"),rl=Symbol.for("react.memo"),bo=Symbol.for("react.lazy"),Rm=Symbol.for("react.scope"),Om=Symbol.for("react.debug_trace_mode"),_m=Symbol.for("react.legacy_hidden"),Tm=Symbol.for("react.default_value"),Ni=Symbol.iterator;function Dn(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Ga:return"Fragment";case Ka:return"Portal";case Ja:return"Profiler";case Xa:return"StrictMode";case el:return"Suspense";case tl:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Za:return(e.displayName||"Context")+".Consumer";case Ya:return(e._context.displayName||"Context")+".Provider";case Qa:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case rl:return t=e.displayName||null,t!==null?t:Dn(e.type)||"Memo";case bo:t=e._payload,e=e._init;try{return Dn(e(t))}catch{}}return null}var nl={};function Mi(e,t){if(e=e.contextTypes,!e)return nl;var r={},n;for(n in e)r[n]=t[n];return r}var Ye=null;function tn(e,t){if(e!==t){e.context._currentValue2=e.parentValue,e=e.parent;var r=t.parent;if(e===null){if(r!==null)throw Error(_(401))}else{if(r===null)throw Error(_(401));tn(e,r)}t.context._currentValue2=t.value}}function ol(e){e.context._currentValue2=e.parentValue,e=e.parent,e!==null&&ol(e)}function il(e){var t=e.parent;t!==null&&il(t),e.context._currentValue2=e.value}function sl(e,t){if(e.context._currentValue2=e.parentValue,e=e.parent,e===null)throw Error(_(402));e.depth===t.depth?tn(e,t):sl(e,t)}function al(e,t){var r=t.parent;if(r===null)throw Error(_(402));e.depth===r.depth?tn(e,r):al(e,r),t.context._currentValue2=t.value}function Rr(e){var t=Ye;t!==e&&(t===null?il(e):e===null?ol(t):t.depth===e.depth?tn(t,e):t.depth>e.depth?sl(t,e):al(t,e),Ye=e)}var Ii={isMounted:function(){return!1},enqueueSetState:function(e,t){e=e._reactInternals,e.queue!==null&&e.queue.push(t)},enqueueReplaceState:function(e,t){e=e._reactInternals,e.replace=!0,e.queue=[t]},enqueueForceUpdate:function(){}};function zi(e,t,r,n){var o=e.state!==void 0?e.state:null;e.updater=Ii,e.props=r,e.state=o;var i={queue:[],replace:!1};e._reactInternals=i;var s=t.contextType;if(e.context=typeof s=="object"&&s!==null?s._currentValue2:n,s=t.getDerivedStateFromProps,typeof s=="function"&&(s=s(r,o),o=s==null?o:_t({},o,s),e.state=o),typeof t.getDerivedStateFromProps!="function"&&typeof e.getSnapshotBeforeUpdate!="function"&&(typeof e.UNSAFE_componentWillMount=="function"||typeof e.componentWillMount=="function"))if(t=e.state,typeof e.componentWillMount=="function"&&e.componentWillMount(),typeof e.UNSAFE_componentWillMount=="function"&&e.UNSAFE_componentWillMount(),t!==e.state&&Ii.enqueueReplaceState(e,e.state,null),i.queue!==null&&0<i.queue.length)if(t=i.queue,s=i.replace,i.queue=null,i.replace=!1,s&&t.length===1)e.state=t[0];else{for(i=s?t[0]:e.state,o=!0,s=s?1:0;s<t.length;s++){var a=t[s];a=typeof a=="function"?a.call(e,i,r,n):a,a!=null&&(o?(o=!1,i=_t({},i,a)):_t(i,a))}e.state=i}else i.queue=null}var Pm={id:1,overflow:""};function Wn(e,t,r){var n=e.id;e=e.overflow;var o=32-ur(n)-1;n&=~(1<<o),r+=1;var i=32-ur(t)+o;if(30<i){var s=o-o%5;return i=(n&(1<<s)-1).toString(32),n>>=s,o-=s,{id:1<<32-ur(t)+o|r<<o|n,overflow:i+e}}return{id:1<<i|r<<o|n,overflow:e}}var ur=Math.clz32?Math.clz32:Fm,$m=Math.log,Am=Math.LN2;function Fm(e){return e>>>=0,e===0?32:31-($m(e)/Am|0)|0}function jm(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Nm=typeof Object.is=="function"?Object.is:jm,je=null,wo=null,cr=null,M=null,Et=!1,Or=!1,Mt=0,Ve=null,rn=0;function Ke(){if(je===null)throw Error(_(321));return je}function Li(){if(0<rn)throw Error(_(312));return{memoizedState:null,queue:null,next:null}}function So(){return M===null?cr===null?(Et=!1,cr=M=Li()):(Et=!0,M=cr):M.next===null?(Et=!1,M=M.next=Li()):(Et=!0,M=M.next),M}function Eo(){wo=je=null,Or=!1,cr=null,rn=0,M=Ve=null}function ll(e,t){return typeof t=="function"?t(e):t}function Bi(e,t,r){if(je=Ke(),M=So(),Et){var n=M.queue;if(t=n.dispatch,Ve!==null&&(r=Ve.get(n),r!==void 0)){Ve.delete(n),n=M.memoizedState;do n=e(n,r.action),r=r.next;while(r!==null);return M.memoizedState=n,[n,t]}return[M.memoizedState,t]}return e=e===ll?typeof t=="function"?t():t:r!==void 0?r(t):t,M.memoizedState=e,e=M.queue={last:null,dispatch:null},e=e.dispatch=Mm.bind(null,je,e),[M.memoizedState,e]}function Di(e,t){if(je=Ke(),M=So(),t=t===void 0?null:t,M!==null){var r=M.memoizedState;if(r!==null&&t!==null){var n=r[1];e:if(n===null)n=!1;else{for(var o=0;o<n.length&&o<t.length;o++)if(!Nm(t[o],n[o])){n=!1;break e}n=!0}if(n)return r[0]}}return e=e(),M.memoizedState=[e,t],e}function Mm(e,t,r){if(25<=rn)throw Error(_(301));if(e===je)if(Or=!0,e={action:r,next:null},Ve===null&&(Ve=new Map),r=Ve.get(t),r===void 0)Ve.set(t,e);else{for(t=r;t.next!==null;)t=t.next;t.next=e}}function Im(){throw Error(_(394))}function Gt(){}var Wi={readContext:function(e){return e._currentValue2},useContext:function(e){return Ke(),e._currentValue2},useMemo:Di,useReducer:Bi,useRef:function(e){je=Ke(),M=So();var t=M.memoizedState;return t===null?(e={current:e},M.memoizedState=e):t},useState:function(e){return Bi(ll,e)},useInsertionEffect:Gt,useLayoutEffect:function(){},useCallback:function(e,t){return Di(function(){return e},t)},useImperativeHandle:Gt,useEffect:Gt,useDebugValue:Gt,useDeferredValue:function(e){return Ke(),e},useTransition:function(){return Ke(),[!1,Im]},useId:function(){var e=wo.treeContext,t=e.overflow;e=e.id,e=(e&~(1<<32-ur(e)-1)).toString(32)+t;var r=fr;if(r===null)throw Error(_(404));return t=Mt++,e=":"+r.idPrefix+"R"+e,0<t&&(e+="H"+t.toString(32)),e+":"},useMutableSource:function(e,t){return Ke(),t(e._source)},useSyncExternalStore:function(e,t,r){if(r===void 0)throw Error(_(407));return r()}},fr=null,wn=Va.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher;function zm(e){return console.error(e),null}function kt(){}function Lm(e,t,r,n,o,i,s,a,l){var u=[],f=new Set;return t={destination:null,responseState:t,progressiveChunkSize:n===void 0?12800:n,status:0,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:f,pingedTasks:u,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:o===void 0?zm:o,onAllReady:i===void 0?kt:i,onShellReady:s===void 0?kt:s,onShellError:a===void 0?kt:a,onFatalError:l===void 0?kt:l},r=_r(t,0,null,r,!1,!1),r.parentFlushed=!0,e=ko(t,e,null,r,f,nl,null,Pm),u.push(e),t}function ko(e,t,r,n,o,i,s,a){e.allPendingTasks++,r===null?e.pendingRootTasks++:r.pendingTasks++;var l={node:t,ping:function(){var u=e.pingedTasks;u.push(l),u.length===1&&fl(e)},blockedBoundary:r,blockedSegment:n,abortSet:o,legacyContext:i,context:s,treeContext:a};return o.add(l),l}function _r(e,t,r,n,o,i){return{status:0,id:-1,index:t,parentFlushed:!1,chunks:[],children:[],formatContext:n,boundary:r,lastPushedText:o,textEmbedded:i}}function It(e,t){if(e=e.onError(t),e!=null&&typeof e!="string")throw Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof e+'" instead');return e}function Tr(e,t){var r=e.onShellError;r(t),r=e.onFatalError,r(t),e.destination!==null?(e.status=2,e.destination.destroy(t)):(e.status=1,e.fatalError=t)}function Ui(e,t,r,n,o){for(je={},wo=t,Mt=0,e=r(n,o);Or;)Or=!1,Mt=0,rn+=1,M=null,e=r(n,o);return Eo(),e}function Vi(e,t,r,n){var o=r.render(),i=n.childContextTypes;if(i!=null){var s=t.legacyContext;if(typeof r.getChildContext!="function")n=s;else{r=r.getChildContext();for(var a in r)if(!(a in i))throw Error(_(108,Dn(n)||"Unknown",a));n=_t({},s,r)}t.legacyContext=n,le(e,t,o),t.legacyContext=s}else le(e,t,o)}function Hi(e,t){if(e&&e.defaultProps){t=_t({},t),e=e.defaultProps;for(var r in e)t[r]===void 0&&(t[r]=e[r]);return t}return t}function Un(e,t,r,n,o){if(typeof r=="function")if(r.prototype&&r.prototype.isReactComponent){o=Mi(r,t.legacyContext);var i=r.contextType;i=new r(n,typeof i=="object"&&i!==null?i._currentValue2:o),zi(i,r,n,o),Vi(e,t,i,r)}else{i=Mi(r,t.legacyContext),o=Ui(e,t,r,n,i);var s=Mt!==0;if(typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0)zi(o,r,n,i),Vi(e,t,o,r);else if(s){n=t.treeContext,t.treeContext=Wn(n,1,0);try{le(e,t,o)}finally{t.treeContext=n}}else le(e,t,o)}else if(typeof r=="string"){switch(o=t.blockedSegment,i=bm(o.chunks,r,n,e.responseState,o.formatContext),o.lastPushedText=!1,s=o.formatContext,o.formatContext=ym(s,r,n),Vn(e,t,i),o.formatContext=s,r){case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"input":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":break;default:o.chunks.push("</",r,">")}o.lastPushedText=!1}else{switch(r){case _m:case Om:case Xa:case Ja:case Ga:le(e,t,n.children);return;case tl:le(e,t,n.children);return;case Rm:throw Error(_(343));case el:e:{r=t.blockedBoundary,o=t.blockedSegment,i=n.fallback,n=n.children,s=new Set;var a={id:null,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:s,errorDigest:null},l=_r(e,o.chunks.length,a,o.formatContext,!1,!1);o.children.push(l),o.lastPushedText=!1;var u=_r(e,0,null,o.formatContext,!1,!1);u.parentFlushed=!0,t.blockedBoundary=a,t.blockedSegment=u;try{if(Vn(e,t,n),e.responseState.generateStaticMarkup||u.lastPushedText&&u.textEmbedded&&u.chunks.push("<!-- -->"),u.status=1,Pr(a,u),a.pendingTasks===0)break e}catch(f){u.status=4,a.forceClientRender=!0,a.errorDigest=It(e,f)}finally{t.blockedBoundary=r,t.blockedSegment=o}t=ko(e,i,r,l,s,t.legacyContext,t.context,t.treeContext),e.pingedTasks.push(t)}return}if(typeof r=="object"&&r!==null)switch(r.$$typeof){case Qa:if(n=Ui(e,t,r.render,n,o),Mt!==0){r=t.treeContext,t.treeContext=Wn(r,1,0);try{le(e,t,n)}finally{t.treeContext=r}}else le(e,t,n);return;case rl:r=r.type,n=Hi(r,n),Un(e,t,r,n,o);return;case Ya:if(o=n.children,r=r._context,n=n.value,i=r._currentValue2,r._currentValue2=n,s=Ye,Ye=n={parent:s,depth:s===null?0:s.depth+1,context:r,parentValue:i,value:n},t.context=n,le(e,t,o),e=Ye,e===null)throw Error(_(403));n=e.parentValue,e.context._currentValue2=n===Tm?e.context._defaultValue:n,e=Ye=e.parent,t.context=e;return;case Za:n=n.children,n=n(r._currentValue2),le(e,t,n);return;case bo:o=r._init,r=o(r._payload),n=Hi(r,n),Un(e,t,r,n,void 0);return}throw Error(_(130,r==null?r:typeof r,""))}}function le(e,t,r){if(t.node=r,typeof r=="object"&&r!==null){switch(r.$$typeof){case Cm:Un(e,t,r.type,r.props,r.ref);return;case Ka:throw Error(_(257));case bo:var n=r._init;r=n(r._payload),le(e,t,r);return}if(Bn(r)){qi(e,t,r);return}if(r===null||typeof r!="object"?n=null:(n=Ni&&r[Ni]||r["@@iterator"],n=typeof n=="function"?n:null),n&&(n=n.call(r))){if(r=n.next(),!r.done){var o=[];do o.push(r.value),r=n.next();while(!r.done);qi(e,t,o)}return}throw e=Object.prototype.toString.call(r),Error(_(31,e==="[object Object]"?"object with keys {"+Object.keys(r).join(", ")+"}":e))}typeof r=="string"?(n=t.blockedSegment,n.lastPushedText=ji(t.blockedSegment.chunks,r,e.responseState,n.lastPushedText)):typeof r=="number"&&(n=t.blockedSegment,n.lastPushedText=ji(t.blockedSegment.chunks,""+r,e.responseState,n.lastPushedText))}function qi(e,t,r){for(var n=r.length,o=0;o<n;o++){var i=t.treeContext;t.treeContext=Wn(i,n,o);try{Vn(e,t,r[o])}finally{t.treeContext=i}}}function Vn(e,t,r){var n=t.blockedSegment.formatContext,o=t.legacyContext,i=t.context;try{return le(e,t,r)}catch(l){if(Eo(),typeof l=="object"&&l!==null&&typeof l.then=="function"){r=l;var s=t.blockedSegment,a=_r(e,s.chunks.length,null,s.formatContext,s.lastPushedText,!0);s.children.push(a),s.lastPushedText=!1,e=ko(e,t.node,t.blockedBoundary,a,t.abortSet,t.legacyContext,t.context,t.treeContext).ping,r.then(e,e),t.blockedSegment.formatContext=n,t.legacyContext=o,t.context=i,Rr(i)}else throw t.blockedSegment.formatContext=n,t.legacyContext=o,t.context=i,Rr(i),l}}function Bm(e){var t=e.blockedBoundary;e=e.blockedSegment,e.status=3,cl(this,t,e)}function ul(e,t,r){var n=e.blockedBoundary;e.blockedSegment.status=3,n===null?(t.allPendingTasks--,t.status!==2&&(t.status=2,t.destination!==null&&t.destination.push(null))):(n.pendingTasks--,n.forceClientRender||(n.forceClientRender=!0,e=r===void 0?Error(_(432)):r,n.errorDigest=t.onError(e),n.parentFlushed&&t.clientRenderedBoundaries.push(n)),n.fallbackAbortableTasks.forEach(function(o){return ul(o,t,r)}),n.fallbackAbortableTasks.clear(),t.allPendingTasks--,t.allPendingTasks===0&&(n=t.onAllReady,n()))}function Pr(e,t){if(t.chunks.length===0&&t.children.length===1&&t.children[0].boundary===null){var r=t.children[0];r.id=t.id,r.parentFlushed=!0,r.status===1&&Pr(e,r)}else e.completedSegments.push(t)}function cl(e,t,r){if(t===null){if(r.parentFlushed){if(e.completedRootSegment!==null)throw Error(_(389));e.completedRootSegment=r}e.pendingRootTasks--,e.pendingRootTasks===0&&(e.onShellError=kt,t=e.onShellReady,t())}else t.pendingTasks--,t.forceClientRender||(t.pendingTasks===0?(r.parentFlushed&&r.status===1&&Pr(t,r),t.parentFlushed&&e.completedBoundaries.push(t),t.fallbackAbortableTasks.forEach(Bm,e),t.fallbackAbortableTasks.clear()):r.parentFlushed&&r.status===1&&(Pr(t,r),t.completedSegments.length===1&&t.parentFlushed&&e.partialBoundaries.push(t)));e.allPendingTasks--,e.allPendingTasks===0&&(e=e.onAllReady,e())}function fl(e){if(e.status!==2){var t=Ye,r=wn.current;wn.current=Wi;var n=fr;fr=e.responseState;try{var o=e.pingedTasks,i;for(i=0;i<o.length;i++){var s=o[i],a=e,l=s.blockedSegment;if(l.status===0){Rr(s.context);try{le(a,s,s.node),a.responseState.generateStaticMarkup||l.lastPushedText&&l.textEmbedded&&l.chunks.push("<!-- -->"),s.abortSet.delete(s),l.status=1,cl(a,s.blockedBoundary,l)}catch(p){if(Eo(),typeof p=="object"&&p!==null&&typeof p.then=="function"){var u=s.ping;p.then(u,u)}else{s.abortSet.delete(s),l.status=4;var f=s.blockedBoundary,c=p,m=It(a,c);if(f===null?Tr(a,c):(f.pendingTasks--,f.forceClientRender||(f.forceClientRender=!0,f.errorDigest=m,f.parentFlushed&&a.clientRenderedBoundaries.push(f))),a.allPendingTasks--,a.allPendingTasks===0){var v=a.onAllReady;v()}}}finally{}}}o.splice(0,i),e.destination!==null&&Co(e,e.destination)}catch(p){It(e,p),Tr(e,p)}finally{fr=n,wn.current=r,r===Wi&&Rr(t)}}}function Xt(e,t,r){switch(r.parentFlushed=!0,r.status){case 0:var n=r.id=e.nextSegmentId++;return r.lastPushedText=!1,r.textEmbedded=!1,e=e.responseState,t.push('<template id="'),t.push(e.placeholderPrefix),e=n.toString(16),t.push(e),t.push('"></template>');case 1:r.status=2;var o=!0;n=r.chunks;var i=0;r=r.children;for(var s=0;s<r.length;s++){for(o=r[s];i<o.index;i++)t.push(n[i]);o=nn(e,t,o)}for(;i<n.length-1;i++)t.push(n[i]);return i<n.length&&(o=t.push(n[i])),o;default:throw Error(_(390))}}function nn(e,t,r){var n=r.boundary;if(n===null)return Xt(e,t,r);if(n.parentFlushed=!0,n.forceClientRender)return e.responseState.generateStaticMarkup||(n=n.errorDigest,t.push("<!--$!-->"),t.push("<template"),n&&(t.push(' data-dgst="'),n=Y(n),t.push(n),t.push('"')),t.push("></template>")),Xt(e,t,r),e=e.responseState.generateStaticMarkup?!0:t.push("<!--/$-->"),e;if(0<n.pendingTasks){n.rootSegmentID=e.nextSegmentId++,0<n.completedSegments.length&&e.partialBoundaries.push(n);var o=e.responseState,i=o.nextSuspenseID++;return o=o.boundaryPrefix+i.toString(16),n=n.id=o,Fi(t,e.responseState,n),Xt(e,t,r),t.push("<!--/$-->")}if(n.byteSize>e.progressiveChunkSize)return n.rootSegmentID=e.nextSegmentId++,e.completedBoundaries.push(n),Fi(t,e.responseState,n.id),Xt(e,t,r),t.push("<!--/$-->");if(e.responseState.generateStaticMarkup||t.push("<!--$-->"),r=n.completedSegments,r.length!==1)throw Error(_(391));return nn(e,t,r[0]),e=e.responseState.generateStaticMarkup?!0:t.push("<!--/$-->"),e}function Ki(e,t,r){return wm(t,e.responseState,r.formatContext,r.id),nn(e,t,r),Sm(t,r.formatContext)}function Gi(e,t,r){for(var n=r.completedSegments,o=0;o<n.length;o++)dl(e,t,r,n[o]);if(n.length=0,e=e.responseState,n=r.id,r=r.rootSegmentID,t.push(e.startInlineScript),e.sentCompleteBoundaryFunction?t.push('$RC("'):(e.sentCompleteBoundaryFunction=!0,t.push('function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d)if(0===e)break;else e--;else"$"!==d&&"$?"!==d&&"$!"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data="$";a._reactRetry&&a._reactRetry()}};$RC("')),n===null)throw Error(_(395));return r=r.toString(16),t.push(n),t.push('","'),t.push(e.segmentPrefix),t.push(r),t.push('")<\/script>')}function dl(e,t,r,n){if(n.status===2)return!0;var o=n.id;if(o===-1){if((n.id=r.rootSegmentID)===-1)throw Error(_(392));return Ki(e,t,n)}return Ki(e,t,n),e=e.responseState,t.push(e.startInlineScript),e.sentCompleteSegmentFunction?t.push('$RS("'):(e.sentCompleteSegmentFunction=!0,t.push('function $RS(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS("')),t.push(e.segmentPrefix),o=o.toString(16),t.push(o),t.push('","'),t.push(e.placeholderPrefix),t.push(o),t.push('")<\/script>')}function Co(e,t){try{var r=e.completedRootSegment;if(r!==null&&e.pendingRootTasks===0){nn(e,t,r),e.completedRootSegment=null;var n=e.responseState.bootstrapChunks;for(r=0;r<n.length-1;r++)t.push(n[r]);r<n.length&&t.push(n[r])}var o=e.clientRenderedBoundaries,i;for(i=0;i<o.length;i++){var s=o[i];n=t;var a=e.responseState,l=s.id,u=s.errorDigest,f=s.errorMessage,c=s.errorComponentStack;if(n.push(a.startInlineScript),a.sentClientRenderFunction?n.push('$RX("'):(a.sentClientRenderFunction=!0,n.push('function $RX(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())};$RX("')),l===null)throw Error(_(395));if(n.push(l),n.push('"'),u||f||c){n.push(",");var m=bn(u||"");n.push(m)}if(f||c){n.push(",");var v=bn(f||"");n.push(v)}if(c){n.push(",");var p=bn(c);n.push(p)}if(!n.push(")<\/script>")){e.destination=null,i++,o.splice(0,i);return}}o.splice(0,i);var d=e.completedBoundaries;for(i=0;i<d.length;i++)if(!Gi(e,t,d[i])){e.destination=null,i++,d.splice(0,i);return}d.splice(0,i);var g=e.partialBoundaries;for(i=0;i<g.length;i++){var y=g[i];e:{o=e,s=t;var b=y.completedSegments;for(a=0;a<b.length;a++)if(!dl(o,s,y,b[a])){a++,b.splice(0,a);var w=!1;break e}b.splice(0,a),w=!0}if(!w){e.destination=null,i++,g.splice(0,i);return}}g.splice(0,i);var E=e.completedBoundaries;for(i=0;i<E.length;i++)if(!Gi(e,t,E[i])){e.destination=null,i++,E.splice(0,i);return}E.splice(0,i)}finally{e.allPendingTasks===0&&e.pingedTasks.length===0&&e.clientRenderedBoundaries.length===0&&e.completedBoundaries.length===0&&t.push(null)}}function Dm(e,t){try{var r=e.abortableTasks;r.forEach(function(n){return ul(n,e,t)}),r.clear(),e.destination!==null&&Co(e,e.destination)}catch(n){It(e,n),Tr(e,n)}}function Wm(){}function pl(e,t,r,n){var o=!1,i=null,s="",a={push:function(u){return u!==null&&(s+=u),!0},destroy:function(u){o=!0,i=u}},l=!1;if(e=Lm(e,km(r,t?t.identifierPrefix:void 0),{insertionMode:1,selectedValue:null},1/0,Wm,void 0,function(){l=!0},void 0,void 0),fl(e),Dm(e,n),e.status===1)e.status=2,a.destroy(e.fatalError);else if(e.status!==2&&e.destination===null){e.destination=a;try{Co(e,a)}catch(u){It(e,u),Tr(e,u)}}if(o)throw i;if(!l)throw Error(_(426));return s}gt.renderToNodeStream=function(){throw Error(_(207))};gt.renderToStaticMarkup=function(e,t){return pl(e,t,!0,'The server used "renderToStaticMarkup" which does not support Suspense. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server')};gt.renderToStaticNodeStream=function(){throw Error(_(208))};gt.renderToString=function(e,t){return pl(e,t,!1,'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server')};gt.version="18.2.0";var Ro={};/**
54
- * @license React
55
- * react-dom-server.browser.production.min.js
56
- *
57
- * Copyright (c) Facebook, Inc. and its affiliates.
58
- *
59
- * This source code is licensed under the MIT license found in the
60
- * LICENSE file in the root directory of this source tree.
61
- */var hl=h.reactExports;function T(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);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."}var ue=null,ce=0;function C(e,t){if(t.length!==0)if(512<t.length)0<ce&&(e.enqueue(new Uint8Array(ue.buffer,0,ce)),ue=new Uint8Array(512),ce=0),e.enqueue(t);else{var r=ue.length-ce;r<t.length&&(r===0?e.enqueue(ue):(ue.set(t.subarray(0,r),ce),e.enqueue(ue),t=t.subarray(r)),ue=new Uint8Array(512),ce=0),ue.set(t,ce),ce+=t.length}}function z(e,t){return C(e,t),!0}function Xi(e){ue&&0<ce&&(e.enqueue(new Uint8Array(ue.buffer,0,ce)),ue=null,ce=0)}var ml=new TextEncoder;function P(e){return ml.encode(e)}function S(e){return ml.encode(e)}function gl(e,t){typeof e.error=="function"?e.error(t):e.close()}var re=Object.prototype.hasOwnProperty,Um=/^[: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]*$/,Ji={},Yi={};function yl(e){return re.call(Yi,e)?!0:re.call(Ji,e)?!1:Um.test(e)?Yi[e]=!0:(Ji[e]=!0,!1)}function Q(e,t,r,n,o,i,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=o,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=s}var X={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){X[e]=new Q(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];X[t]=new Q(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){X[e]=new Q(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){X[e]=new Q(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){X[e]=new Q(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){X[e]=new Q(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){X[e]=new Q(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){X[e]=new Q(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){X[e]=new Q(e,5,!1,e.toLowerCase(),null,!1,!1)});var Oo=/[\-:]([a-z])/g;function _o(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Oo,_o);X[t]=new Q(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Oo,_o);X[t]=new Q(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Oo,_o);X[t]=new Q(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){X[e]=new Q(e,1,!1,e.toLowerCase(),null,!1,!1)});X.xlinkHref=new Q("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){X[e]=new Q(e,1,!1,e.toLowerCase(),null,!0,!0)});var dr={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Vm=["Webkit","ms","Moz","O"];Object.keys(dr).forEach(function(e){Vm.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),dr[t]=dr[e]})});var Hm=/["'&<>]/;function K(e){if(typeof e=="boolean"||typeof e=="number")return""+e;e=""+e;var t=Hm.exec(e);if(t){var r="",n,o=0;for(n=t.index;n<e.length;n++){switch(e.charCodeAt(n)){case 34:t="&quot;";break;case 38:t="&amp;";break;case 39:t="&#x27;";break;case 60:t="&lt;";break;case 62:t="&gt;";break;default:continue}o!==n&&(r+=e.substring(o,n)),o=n+1,r+=t}e=o!==n?r+e.substring(o,n):r}return e}var qm=/([A-Z])/g,Km=/^ms-/,Hn=Array.isArray,Gm=S("<script>"),Xm=S("<\/script>"),Jm=S('<script src="'),Ym=S('<script type="module" src="'),Zi=S('" async=""><\/script>'),Zm=/(<\/|<)(s)(cript)/gi;function Qm(e,t,r,n){return""+t+(r==="s"?"\\u0073":"\\u0053")+n}function e0(e,t,r,n,o){e=e===void 0?"":e,t=t===void 0?Gm:S('<script nonce="'+K(t)+'">');var i=[];if(r!==void 0&&i.push(t,P((""+r).replace(Zm,Qm)),Xm),n!==void 0)for(r=0;r<n.length;r++)i.push(Jm,P(K(n[r])),Zi);if(o!==void 0)for(n=0;n<o.length;n++)i.push(Ym,P(K(o[n])),Zi);return{bootstrapChunks:i,startInlineScript:t,placeholderPrefix:S(e+"P:"),segmentPrefix:S(e+"S:"),boundaryPrefix:e+"B:",idPrefix:e,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1}}function Ee(e,t){return{insertionMode:e,selectedValue:t}}function t0(e){return Ee(e==="http://www.w3.org/2000/svg"?2:e==="http://www.w3.org/1998/Math/MathML"?3:0,null)}function r0(e,t,r){switch(t){case"select":return Ee(1,r.value!=null?r.value:r.defaultValue);case"svg":return Ee(2,null);case"math":return Ee(3,null);case"foreignObject":return Ee(1,null);case"table":return Ee(4,null);case"thead":case"tbody":case"tfoot":return Ee(5,null);case"colgroup":return Ee(7,null);case"tr":return Ee(6,null)}return 4<=e.insertionMode||e.insertionMode===0?Ee(1,null):e}var To=S("<!-- -->");function Qi(e,t,r,n){return t===""?n:(n&&e.push(To),e.push(P(K(t))),!0)}var es=new Map,n0=S(' style="'),ts=S(":"),o0=S(";");function vl(e,t,r){if(typeof r!="object")throw Error(T(62));t=!0;for(var n in r)if(re.call(r,n)){var o=r[n];if(o!=null&&typeof o!="boolean"&&o!==""){if(n.indexOf("--")===0){var i=P(K(n));o=P(K((""+o).trim()))}else{i=n;var s=es.get(i);s!==void 0||(s=S(K(i.replace(qm,"-$1").toLowerCase().replace(Km,"-ms-"))),es.set(i,s)),i=s,o=typeof o=="number"?o===0||re.call(dr,n)?P(""+o):P(o+"px"):P(K((""+o).trim()))}t?(t=!1,e.push(n0,i,ts,o)):e.push(o0,i,ts,o)}}t||e.push(Ge)}var De=S(" "),it=S('="'),Ge=S('"'),rs=S('=""');function se(e,t,r,n){switch(r){case"style":vl(e,t,n);return;case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(2<r.length)||r[0]!=="o"&&r[0]!=="O"||r[1]!=="n"&&r[1]!=="N"){if(t=X.hasOwnProperty(r)?X[r]:null,t!==null){switch(typeof n){case"function":case"symbol":return;case"boolean":if(!t.acceptsBooleans)return}switch(r=P(t.attributeName),t.type){case 3:n&&e.push(De,r,rs);break;case 4:n===!0?e.push(De,r,rs):n!==!1&&e.push(De,r,it,P(K(n)),Ge);break;case 5:isNaN(n)||e.push(De,r,it,P(K(n)),Ge);break;case 6:!isNaN(n)&&1<=n&&e.push(De,r,it,P(K(n)),Ge);break;default:t.sanitizeURL&&(n=""+n),e.push(De,r,it,P(K(n)),Ge)}}else if(yl(r)){switch(typeof n){case"function":case"symbol":return;case"boolean":if(t=r.toLowerCase().slice(0,5),t!=="data-"&&t!=="aria-")return}e.push(De,P(r),it,P(K(n)),Ge)}}}var We=S(">"),ns=S("/>");function pr(e,t,r){if(t!=null){if(r!=null)throw Error(T(60));if(typeof t!="object"||!("__html"in t))throw Error(T(61));t=t.__html,t!=null&&e.push(P(""+t))}}function i0(e){var t="";return hl.Children.forEach(e,function(r){r!=null&&(t+=r)}),t}var Sn=S(' selected=""');function En(e,t,r,n){e.push(ke(r));var o=r=null,i;for(i in t)if(re.call(t,i)){var s=t[i];if(s!=null)switch(i){case"children":r=s;break;case"dangerouslySetInnerHTML":o=s;break;default:se(e,n,i,s)}}return e.push(We),pr(e,o,r),typeof r=="string"?(e.push(P(K(r))),null):r}var kn=S(`
62
- `),s0=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,os=new Map;function ke(e){var t=os.get(e);if(t===void 0){if(!s0.test(e))throw Error(T(65,e));t=S("<"+e),os.set(e,t)}return t}var a0=S("<!DOCTYPE html>");function l0(e,t,r,n,o){switch(t){case"select":e.push(ke("select"));var i=null,s=null;for(f in r)if(re.call(r,f)){var a=r[f];if(a!=null)switch(f){case"children":i=a;break;case"dangerouslySetInnerHTML":s=a;break;case"defaultValue":case"value":break;default:se(e,n,f,a)}}return e.push(We),pr(e,s,i),i;case"option":s=o.selectedValue,e.push(ke("option"));var l=a=null,u=null,f=null;for(i in r)if(re.call(r,i)){var c=r[i];if(c!=null)switch(i){case"children":a=c;break;case"selected":u=c;break;case"dangerouslySetInnerHTML":f=c;break;case"value":l=c;default:se(e,n,i,c)}}if(s!=null)if(r=l!==null?""+l:i0(a),Hn(s)){for(n=0;n<s.length;n++)if(""+s[n]===r){e.push(Sn);break}}else""+s===r&&e.push(Sn);else u&&e.push(Sn);return e.push(We),pr(e,f,a),a;case"textarea":e.push(ke("textarea")),f=s=i=null;for(a in r)if(re.call(r,a)&&(l=r[a],l!=null))switch(a){case"children":f=l;break;case"value":i=l;break;case"defaultValue":s=l;break;case"dangerouslySetInnerHTML":throw Error(T(91));default:se(e,n,a,l)}if(i===null&&s!==null&&(i=s),e.push(We),f!=null){if(i!=null)throw Error(T(92));if(Hn(f)&&1<f.length)throw Error(T(93));i=""+f}return typeof i=="string"&&i[0]===`
63
- `&&e.push(kn),i!==null&&e.push(P(K(""+i))),null;case"input":e.push(ke("input")),l=f=a=i=null;for(s in r)if(re.call(r,s)&&(u=r[s],u!=null))switch(s){case"children":case"dangerouslySetInnerHTML":throw Error(T(399,"input"));case"defaultChecked":l=u;break;case"defaultValue":a=u;break;case"checked":f=u;break;case"value":i=u;break;default:se(e,n,s,u)}return f!==null?se(e,n,"checked",f):l!==null&&se(e,n,"checked",l),i!==null?se(e,n,"value",i):a!==null&&se(e,n,"value",a),e.push(ns),null;case"menuitem":e.push(ke("menuitem"));for(var m in r)if(re.call(r,m)&&(i=r[m],i!=null))switch(m){case"children":case"dangerouslySetInnerHTML":throw Error(T(400));default:se(e,n,m,i)}return e.push(We),null;case"title":e.push(ke("title")),i=null;for(c in r)if(re.call(r,c)&&(s=r[c],s!=null))switch(c){case"children":i=s;break;case"dangerouslySetInnerHTML":throw Error(T(434));default:se(e,n,c,s)}return e.push(We),i;case"listing":case"pre":e.push(ke(t)),s=i=null;for(l in r)if(re.call(r,l)&&(a=r[l],a!=null))switch(l){case"children":i=a;break;case"dangerouslySetInnerHTML":s=a;break;default:se(e,n,l,a)}if(e.push(We),s!=null){if(i!=null)throw Error(T(60));if(typeof s!="object"||!("__html"in s))throw Error(T(61));r=s.__html,r!=null&&(typeof r=="string"&&0<r.length&&r[0]===`
64
- `?e.push(kn,P(r)):e.push(P(""+r)))}return typeof i=="string"&&i[0]===`
65
- `&&e.push(kn),i;case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":e.push(ke(t));for(var v in r)if(re.call(r,v)&&(i=r[v],i!=null))switch(v){case"children":case"dangerouslySetInnerHTML":throw Error(T(399,t));default:se(e,n,v,i)}return e.push(ns),null;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 En(e,r,t,n);case"html":return o.insertionMode===0&&e.push(a0),En(e,r,t,n);default:if(t.indexOf("-")===-1&&typeof r.is!="string")return En(e,r,t,n);e.push(ke(t)),s=i=null;for(u in r)if(re.call(r,u)&&(a=r[u],a!=null))switch(u){case"children":i=a;break;case"dangerouslySetInnerHTML":s=a;break;case"style":vl(e,n,a);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:yl(u)&&typeof a!="function"&&typeof a!="symbol"&&e.push(De,P(u),it,P(K(a)),Ge)}return e.push(We),pr(e,s,i),i}}var u0=S("</"),c0=S(">"),f0=S('<template id="'),d0=S('"></template>'),p0=S("<!--$-->"),h0=S('<!--$?--><template id="'),m0=S('"></template>'),g0=S("<!--$!-->"),y0=S("<!--/$-->"),v0=S("<template"),x0=S('"'),b0=S(' data-dgst="');S(' data-msg="');S(' data-stck="');var w0=S("></template>");function is(e,t,r){if(C(e,h0),r===null)throw Error(T(395));return C(e,r),z(e,m0)}var S0=S('<div hidden id="'),E0=S('">'),k0=S("</div>"),C0=S('<svg aria-hidden="true" style="display:none" id="'),R0=S('">'),O0=S("</svg>"),_0=S('<math aria-hidden="true" style="display:none" id="'),T0=S('">'),P0=S("</math>"),$0=S('<table hidden id="'),A0=S('">'),F0=S("</table>"),j0=S('<table hidden><tbody id="'),N0=S('">'),M0=S("</tbody></table>"),I0=S('<table hidden><tr id="'),z0=S('">'),L0=S("</tr></table>"),B0=S('<table hidden><colgroup id="'),D0=S('">'),W0=S("</colgroup></table>");function U0(e,t,r,n){switch(r.insertionMode){case 0:case 1:return C(e,S0),C(e,t.segmentPrefix),C(e,P(n.toString(16))),z(e,E0);case 2:return C(e,C0),C(e,t.segmentPrefix),C(e,P(n.toString(16))),z(e,R0);case 3:return C(e,_0),C(e,t.segmentPrefix),C(e,P(n.toString(16))),z(e,T0);case 4:return C(e,$0),C(e,t.segmentPrefix),C(e,P(n.toString(16))),z(e,A0);case 5:return C(e,j0),C(e,t.segmentPrefix),C(e,P(n.toString(16))),z(e,N0);case 6:return C(e,I0),C(e,t.segmentPrefix),C(e,P(n.toString(16))),z(e,z0);case 7:return C(e,B0),C(e,t.segmentPrefix),C(e,P(n.toString(16))),z(e,D0);default:throw Error(T(397))}}function V0(e,t){switch(t.insertionMode){case 0:case 1:return z(e,k0);case 2:return z(e,O0);case 3:return z(e,P0);case 4:return z(e,F0);case 5:return z(e,M0);case 6:return z(e,L0);case 7:return z(e,W0);default:throw Error(T(397))}}var H0=S('function $RS(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS("'),q0=S('$RS("'),K0=S('","'),G0=S('")<\/script>'),X0=S('function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d)if(0===e)break;else e--;else"$"!==d&&"$?"!==d&&"$!"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data="$";a._reactRetry&&a._reactRetry()}};$RC("'),J0=S('$RC("'),Y0=S('","'),Z0=S('")<\/script>'),Q0=S('function $RX(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())};$RX("'),eg=S('$RX("'),tg=S('"'),rg=S(")<\/script>"),Cn=S(","),ng=/[<\u2028\u2029]/g;function Rn(e){return JSON.stringify(e).replace(ng,function(t){switch(t){case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}})}var Tt=Object.assign,og=Symbol.for("react.element"),xl=Symbol.for("react.portal"),bl=Symbol.for("react.fragment"),wl=Symbol.for("react.strict_mode"),Sl=Symbol.for("react.profiler"),El=Symbol.for("react.provider"),kl=Symbol.for("react.context"),Cl=Symbol.for("react.forward_ref"),Rl=Symbol.for("react.suspense"),Ol=Symbol.for("react.suspense_list"),_l=Symbol.for("react.memo"),Po=Symbol.for("react.lazy"),ig=Symbol.for("react.scope"),sg=Symbol.for("react.debug_trace_mode"),ag=Symbol.for("react.legacy_hidden"),lg=Symbol.for("react.default_value"),ss=Symbol.iterator;function qn(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case bl:return"Fragment";case xl:return"Portal";case Sl:return"Profiler";case wl:return"StrictMode";case Rl:return"Suspense";case Ol:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case kl:return(e.displayName||"Context")+".Consumer";case El:return(e._context.displayName||"Context")+".Provider";case Cl:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case _l:return t=e.displayName||null,t!==null?t:qn(e.type)||"Memo";case Po:t=e._payload,e=e._init;try{return qn(e(t))}catch{}}return null}var Tl={};function as(e,t){if(e=e.contextTypes,!e)return Tl;var r={},n;for(n in e)r[n]=t[n];return r}var Ze=null;function on(e,t){if(e!==t){e.context._currentValue=e.parentValue,e=e.parent;var r=t.parent;if(e===null){if(r!==null)throw Error(T(401))}else{if(r===null)throw Error(T(401));on(e,r)}t.context._currentValue=t.value}}function Pl(e){e.context._currentValue=e.parentValue,e=e.parent,e!==null&&Pl(e)}function $l(e){var t=e.parent;t!==null&&$l(t),e.context._currentValue=e.value}function Al(e,t){if(e.context._currentValue=e.parentValue,e=e.parent,e===null)throw Error(T(402));e.depth===t.depth?on(e,t):Al(e,t)}function Fl(e,t){var r=t.parent;if(r===null)throw Error(T(402));e.depth===r.depth?on(e,r):Fl(e,r),t.context._currentValue=t.value}function $r(e){var t=Ze;t!==e&&(t===null?$l(e):e===null?Pl(t):t.depth===e.depth?on(t,e):t.depth>e.depth?Al(t,e):Fl(t,e),Ze=e)}var ls={isMounted:function(){return!1},enqueueSetState:function(e,t){e=e._reactInternals,e.queue!==null&&e.queue.push(t)},enqueueReplaceState:function(e,t){e=e._reactInternals,e.replace=!0,e.queue=[t]},enqueueForceUpdate:function(){}};function us(e,t,r,n){var o=e.state!==void 0?e.state:null;e.updater=ls,e.props=r,e.state=o;var i={queue:[],replace:!1};e._reactInternals=i;var s=t.contextType;if(e.context=typeof s=="object"&&s!==null?s._currentValue:n,s=t.getDerivedStateFromProps,typeof s=="function"&&(s=s(r,o),o=s==null?o:Tt({},o,s),e.state=o),typeof t.getDerivedStateFromProps!="function"&&typeof e.getSnapshotBeforeUpdate!="function"&&(typeof e.UNSAFE_componentWillMount=="function"||typeof e.componentWillMount=="function"))if(t=e.state,typeof e.componentWillMount=="function"&&e.componentWillMount(),typeof e.UNSAFE_componentWillMount=="function"&&e.UNSAFE_componentWillMount(),t!==e.state&&ls.enqueueReplaceState(e,e.state,null),i.queue!==null&&0<i.queue.length)if(t=i.queue,s=i.replace,i.queue=null,i.replace=!1,s&&t.length===1)e.state=t[0];else{for(i=s?t[0]:e.state,o=!0,s=s?1:0;s<t.length;s++){var a=t[s];a=typeof a=="function"?a.call(e,i,r,n):a,a!=null&&(o?(o=!1,i=Tt({},i,a)):Tt(i,a))}e.state=i}else i.queue=null}var ug={id:1,overflow:""};function Kn(e,t,r){var n=e.id;e=e.overflow;var o=32-hr(n)-1;n&=~(1<<o),r+=1;var i=32-hr(t)+o;if(30<i){var s=o-o%5;return i=(n&(1<<s)-1).toString(32),n>>=s,o-=s,{id:1<<32-hr(t)+o|r<<o|n,overflow:i+e}}return{id:1<<i|r<<o|n,overflow:e}}var hr=Math.clz32?Math.clz32:dg,cg=Math.log,fg=Math.LN2;function dg(e){return e>>>=0,e===0?32:31-(cg(e)/fg|0)|0}function pg(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var hg=typeof Object.is=="function"?Object.is:pg,Ne=null,$o=null,mr=null,I=null,Ct=!1,Ar=!1,zt=0,He=null,sn=0;function Xe(){if(Ne===null)throw Error(T(321));return Ne}function cs(){if(0<sn)throw Error(T(312));return{memoizedState:null,queue:null,next:null}}function Ao(){return I===null?mr===null?(Ct=!1,mr=I=cs()):(Ct=!0,I=mr):I.next===null?(Ct=!1,I=I.next=cs()):(Ct=!0,I=I.next),I}function Fo(){$o=Ne=null,Ar=!1,mr=null,sn=0,I=He=null}function jl(e,t){return typeof t=="function"?t(e):t}function fs(e,t,r){if(Ne=Xe(),I=Ao(),Ct){var n=I.queue;if(t=n.dispatch,He!==null&&(r=He.get(n),r!==void 0)){He.delete(n),n=I.memoizedState;do n=e(n,r.action),r=r.next;while(r!==null);return I.memoizedState=n,[n,t]}return[I.memoizedState,t]}return e=e===jl?typeof t=="function"?t():t:r!==void 0?r(t):t,I.memoizedState=e,e=I.queue={last:null,dispatch:null},e=e.dispatch=mg.bind(null,Ne,e),[I.memoizedState,e]}function ds(e,t){if(Ne=Xe(),I=Ao(),t=t===void 0?null:t,I!==null){var r=I.memoizedState;if(r!==null&&t!==null){var n=r[1];e:if(n===null)n=!1;else{for(var o=0;o<n.length&&o<t.length;o++)if(!hg(t[o],n[o])){n=!1;break e}n=!0}if(n)return r[0]}}return e=e(),I.memoizedState=[e,t],e}function mg(e,t,r){if(25<=sn)throw Error(T(301));if(e===Ne)if(Ar=!0,e={action:r,next:null},He===null&&(He=new Map),r=He.get(t),r===void 0)He.set(t,e);else{for(t=r;t.next!==null;)t=t.next;t.next=e}}function gg(){throw Error(T(394))}function Jt(){}var ps={readContext:function(e){return e._currentValue},useContext:function(e){return Xe(),e._currentValue},useMemo:ds,useReducer:fs,useRef:function(e){Ne=Xe(),I=Ao();var t=I.memoizedState;return t===null?(e={current:e},I.memoizedState=e):t},useState:function(e){return fs(jl,e)},useInsertionEffect:Jt,useLayoutEffect:function(){},useCallback:function(e,t){return ds(function(){return e},t)},useImperativeHandle:Jt,useEffect:Jt,useDebugValue:Jt,useDeferredValue:function(e){return Xe(),e},useTransition:function(){return Xe(),[!1,gg]},useId:function(){var e=$o.treeContext,t=e.overflow;e=e.id,e=(e&~(1<<32-hr(e)-1)).toString(32)+t;var r=gr;if(r===null)throw Error(T(404));return t=zt++,e=":"+r.idPrefix+"R"+e,0<t&&(e+="H"+t.toString(32)),e+":"},useMutableSource:function(e,t){return Xe(),t(e._source)},useSyncExternalStore:function(e,t,r){if(r===void 0)throw Error(T(407));return r()}},gr=null,On=hl.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher;function yg(e){return console.error(e),null}function Rt(){}function vg(e,t,r,n,o,i,s,a,l){var u=[],f=new Set;return t={destination:null,responseState:t,progressiveChunkSize:n===void 0?12800:n,status:0,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:f,pingedTasks:u,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:o===void 0?yg:o,onAllReady:i===void 0?Rt:i,onShellReady:s===void 0?Rt:s,onShellError:a===void 0?Rt:a,onFatalError:l===void 0?Rt:l},r=Fr(t,0,null,r,!1,!1),r.parentFlushed=!0,e=jo(t,e,null,r,f,Tl,null,ug),u.push(e),t}function jo(e,t,r,n,o,i,s,a){e.allPendingTasks++,r===null?e.pendingRootTasks++:r.pendingTasks++;var l={node:t,ping:function(){var u=e.pingedTasks;u.push(l),u.length===1&&Il(e)},blockedBoundary:r,blockedSegment:n,abortSet:o,legacyContext:i,context:s,treeContext:a};return o.add(l),l}function Fr(e,t,r,n,o,i){return{status:0,id:-1,index:t,parentFlushed:!1,chunks:[],children:[],formatContext:n,boundary:r,lastPushedText:o,textEmbedded:i}}function Lt(e,t){if(e=e.onError(t),e!=null&&typeof e!="string")throw Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof e+'" instead');return e}function jr(e,t){var r=e.onShellError;r(t),r=e.onFatalError,r(t),e.destination!==null?(e.status=2,gl(e.destination,t)):(e.status=1,e.fatalError=t)}function hs(e,t,r,n,o){for(Ne={},$o=t,zt=0,e=r(n,o);Ar;)Ar=!1,zt=0,sn+=1,I=null,e=r(n,o);return Fo(),e}function ms(e,t,r,n){var o=r.render(),i=n.childContextTypes;if(i!=null){var s=t.legacyContext;if(typeof r.getChildContext!="function")n=s;else{r=r.getChildContext();for(var a in r)if(!(a in i))throw Error(T(108,qn(n)||"Unknown",a));n=Tt({},s,r)}t.legacyContext=n,fe(e,t,o),t.legacyContext=s}else fe(e,t,o)}function gs(e,t){if(e&&e.defaultProps){t=Tt({},t),e=e.defaultProps;for(var r in e)t[r]===void 0&&(t[r]=e[r]);return t}return t}function Gn(e,t,r,n,o){if(typeof r=="function")if(r.prototype&&r.prototype.isReactComponent){o=as(r,t.legacyContext);var i=r.contextType;i=new r(n,typeof i=="object"&&i!==null?i._currentValue:o),us(i,r,n,o),ms(e,t,i,r)}else{i=as(r,t.legacyContext),o=hs(e,t,r,n,i);var s=zt!==0;if(typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0)us(o,r,n,i),ms(e,t,o,r);else if(s){n=t.treeContext,t.treeContext=Kn(n,1,0);try{fe(e,t,o)}finally{t.treeContext=n}}else fe(e,t,o)}else if(typeof r=="string"){switch(o=t.blockedSegment,i=l0(o.chunks,r,n,e.responseState,o.formatContext),o.lastPushedText=!1,s=o.formatContext,o.formatContext=r0(s,r,n),Xn(e,t,i),o.formatContext=s,r){case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"input":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":break;default:o.chunks.push(u0,P(r),c0)}o.lastPushedText=!1}else{switch(r){case ag:case sg:case wl:case Sl:case bl:fe(e,t,n.children);return;case Ol:fe(e,t,n.children);return;case ig:throw Error(T(343));case Rl:e:{r=t.blockedBoundary,o=t.blockedSegment,i=n.fallback,n=n.children,s=new Set;var a={id:null,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:s,errorDigest:null},l=Fr(e,o.chunks.length,a,o.formatContext,!1,!1);o.children.push(l),o.lastPushedText=!1;var u=Fr(e,0,null,o.formatContext,!1,!1);u.parentFlushed=!0,t.blockedBoundary=a,t.blockedSegment=u;try{if(Xn(e,t,n),u.lastPushedText&&u.textEmbedded&&u.chunks.push(To),u.status=1,Nr(a,u),a.pendingTasks===0)break e}catch(f){u.status=4,a.forceClientRender=!0,a.errorDigest=Lt(e,f)}finally{t.blockedBoundary=r,t.blockedSegment=o}t=jo(e,i,r,l,s,t.legacyContext,t.context,t.treeContext),e.pingedTasks.push(t)}return}if(typeof r=="object"&&r!==null)switch(r.$$typeof){case Cl:if(n=hs(e,t,r.render,n,o),zt!==0){r=t.treeContext,t.treeContext=Kn(r,1,0);try{fe(e,t,n)}finally{t.treeContext=r}}else fe(e,t,n);return;case _l:r=r.type,n=gs(r,n),Gn(e,t,r,n,o);return;case El:if(o=n.children,r=r._context,n=n.value,i=r._currentValue,r._currentValue=n,s=Ze,Ze=n={parent:s,depth:s===null?0:s.depth+1,context:r,parentValue:i,value:n},t.context=n,fe(e,t,o),e=Ze,e===null)throw Error(T(403));n=e.parentValue,e.context._currentValue=n===lg?e.context._defaultValue:n,e=Ze=e.parent,t.context=e;return;case kl:n=n.children,n=n(r._currentValue),fe(e,t,n);return;case Po:o=r._init,r=o(r._payload),n=gs(r,n),Gn(e,t,r,n,void 0);return}throw Error(T(130,r==null?r:typeof r,""))}}function fe(e,t,r){if(t.node=r,typeof r=="object"&&r!==null){switch(r.$$typeof){case og:Gn(e,t,r.type,r.props,r.ref);return;case xl:throw Error(T(257));case Po:var n=r._init;r=n(r._payload),fe(e,t,r);return}if(Hn(r)){ys(e,t,r);return}if(r===null||typeof r!="object"?n=null:(n=ss&&r[ss]||r["@@iterator"],n=typeof n=="function"?n:null),n&&(n=n.call(r))){if(r=n.next(),!r.done){var o=[];do o.push(r.value),r=n.next();while(!r.done);ys(e,t,o)}return}throw e=Object.prototype.toString.call(r),Error(T(31,e==="[object Object]"?"object with keys {"+Object.keys(r).join(", ")+"}":e))}typeof r=="string"?(n=t.blockedSegment,n.lastPushedText=Qi(t.blockedSegment.chunks,r,e.responseState,n.lastPushedText)):typeof r=="number"&&(n=t.blockedSegment,n.lastPushedText=Qi(t.blockedSegment.chunks,""+r,e.responseState,n.lastPushedText))}function ys(e,t,r){for(var n=r.length,o=0;o<n;o++){var i=t.treeContext;t.treeContext=Kn(i,n,o);try{Xn(e,t,r[o])}finally{t.treeContext=i}}}function Xn(e,t,r){var n=t.blockedSegment.formatContext,o=t.legacyContext,i=t.context;try{return fe(e,t,r)}catch(l){if(Fo(),typeof l=="object"&&l!==null&&typeof l.then=="function"){r=l;var s=t.blockedSegment,a=Fr(e,s.chunks.length,null,s.formatContext,s.lastPushedText,!0);s.children.push(a),s.lastPushedText=!1,e=jo(e,t.node,t.blockedBoundary,a,t.abortSet,t.legacyContext,t.context,t.treeContext).ping,r.then(e,e),t.blockedSegment.formatContext=n,t.legacyContext=o,t.context=i,$r(i)}else throw t.blockedSegment.formatContext=n,t.legacyContext=o,t.context=i,$r(i),l}}function xg(e){var t=e.blockedBoundary;e=e.blockedSegment,e.status=3,Ml(this,t,e)}function Nl(e,t,r){var n=e.blockedBoundary;e.blockedSegment.status=3,n===null?(t.allPendingTasks--,t.status!==2&&(t.status=2,t.destination!==null&&t.destination.close())):(n.pendingTasks--,n.forceClientRender||(n.forceClientRender=!0,e=r===void 0?Error(T(432)):r,n.errorDigest=t.onError(e),n.parentFlushed&&t.clientRenderedBoundaries.push(n)),n.fallbackAbortableTasks.forEach(function(o){return Nl(o,t,r)}),n.fallbackAbortableTasks.clear(),t.allPendingTasks--,t.allPendingTasks===0&&(n=t.onAllReady,n()))}function Nr(e,t){if(t.chunks.length===0&&t.children.length===1&&t.children[0].boundary===null){var r=t.children[0];r.id=t.id,r.parentFlushed=!0,r.status===1&&Nr(e,r)}else e.completedSegments.push(t)}function Ml(e,t,r){if(t===null){if(r.parentFlushed){if(e.completedRootSegment!==null)throw Error(T(389));e.completedRootSegment=r}e.pendingRootTasks--,e.pendingRootTasks===0&&(e.onShellError=Rt,t=e.onShellReady,t())}else t.pendingTasks--,t.forceClientRender||(t.pendingTasks===0?(r.parentFlushed&&r.status===1&&Nr(t,r),t.parentFlushed&&e.completedBoundaries.push(t),t.fallbackAbortableTasks.forEach(xg,e),t.fallbackAbortableTasks.clear()):r.parentFlushed&&r.status===1&&(Nr(t,r),t.completedSegments.length===1&&t.parentFlushed&&e.partialBoundaries.push(t)));e.allPendingTasks--,e.allPendingTasks===0&&(e=e.onAllReady,e())}function Il(e){if(e.status!==2){var t=Ze,r=On.current;On.current=ps;var n=gr;gr=e.responseState;try{var o=e.pingedTasks,i;for(i=0;i<o.length;i++){var s=o[i],a=e,l=s.blockedSegment;if(l.status===0){$r(s.context);try{fe(a,s,s.node),l.lastPushedText&&l.textEmbedded&&l.chunks.push(To),s.abortSet.delete(s),l.status=1,Ml(a,s.blockedBoundary,l)}catch(p){if(Fo(),typeof p=="object"&&p!==null&&typeof p.then=="function"){var u=s.ping;p.then(u,u)}else{s.abortSet.delete(s),l.status=4;var f=s.blockedBoundary,c=p,m=Lt(a,c);if(f===null?jr(a,c):(f.pendingTasks--,f.forceClientRender||(f.forceClientRender=!0,f.errorDigest=m,f.parentFlushed&&a.clientRenderedBoundaries.push(f))),a.allPendingTasks--,a.allPendingTasks===0){var v=a.onAllReady;v()}}}finally{}}}o.splice(0,i),e.destination!==null&&No(e,e.destination)}catch(p){Lt(e,p),jr(e,p)}finally{gr=n,On.current=r,r===ps&&$r(t)}}}function Yt(e,t,r){switch(r.parentFlushed=!0,r.status){case 0:var n=r.id=e.nextSegmentId++;return r.lastPushedText=!1,r.textEmbedded=!1,e=e.responseState,C(t,f0),C(t,e.placeholderPrefix),e=P(n.toString(16)),C(t,e),z(t,d0);case 1:r.status=2;var o=!0;n=r.chunks;var i=0;r=r.children;for(var s=0;s<r.length;s++){for(o=r[s];i<o.index;i++)C(t,n[i]);o=an(e,t,o)}for(;i<n.length-1;i++)C(t,n[i]);return i<n.length&&(o=z(t,n[i])),o;default:throw Error(T(390))}}function an(e,t,r){var n=r.boundary;if(n===null)return Yt(e,t,r);if(n.parentFlushed=!0,n.forceClientRender)n=n.errorDigest,z(t,g0),C(t,v0),n&&(C(t,b0),C(t,P(K(n))),C(t,x0)),z(t,w0),Yt(e,t,r);else if(0<n.pendingTasks){n.rootSegmentID=e.nextSegmentId++,0<n.completedSegments.length&&e.partialBoundaries.push(n);var o=e.responseState,i=o.nextSuspenseID++;o=S(o.boundaryPrefix+i.toString(16)),n=n.id=o,is(t,e.responseState,n),Yt(e,t,r)}else if(n.byteSize>e.progressiveChunkSize)n.rootSegmentID=e.nextSegmentId++,e.completedBoundaries.push(n),is(t,e.responseState,n.id),Yt(e,t,r);else{if(z(t,p0),r=n.completedSegments,r.length!==1)throw Error(T(391));an(e,t,r[0])}return z(t,y0)}function vs(e,t,r){return U0(t,e.responseState,r.formatContext,r.id),an(e,t,r),V0(t,r.formatContext)}function xs(e,t,r){for(var n=r.completedSegments,o=0;o<n.length;o++)zl(e,t,r,n[o]);if(n.length=0,e=e.responseState,n=r.id,r=r.rootSegmentID,C(t,e.startInlineScript),e.sentCompleteBoundaryFunction?C(t,J0):(e.sentCompleteBoundaryFunction=!0,C(t,X0)),n===null)throw Error(T(395));return r=P(r.toString(16)),C(t,n),C(t,Y0),C(t,e.segmentPrefix),C(t,r),z(t,Z0)}function zl(e,t,r,n){if(n.status===2)return!0;var o=n.id;if(o===-1){if((n.id=r.rootSegmentID)===-1)throw Error(T(392));return vs(e,t,n)}return vs(e,t,n),e=e.responseState,C(t,e.startInlineScript),e.sentCompleteSegmentFunction?C(t,q0):(e.sentCompleteSegmentFunction=!0,C(t,H0)),C(t,e.segmentPrefix),o=P(o.toString(16)),C(t,o),C(t,K0),C(t,e.placeholderPrefix),C(t,o),z(t,G0)}function No(e,t){ue=new Uint8Array(512),ce=0;try{var r=e.completedRootSegment;if(r!==null&&e.pendingRootTasks===0){an(e,t,r),e.completedRootSegment=null;var n=e.responseState.bootstrapChunks;for(r=0;r<n.length-1;r++)C(t,n[r]);r<n.length&&z(t,n[r])}var o=e.clientRenderedBoundaries,i;for(i=0;i<o.length;i++){var s=o[i];n=t;var a=e.responseState,l=s.id,u=s.errorDigest,f=s.errorMessage,c=s.errorComponentStack;if(C(n,a.startInlineScript),a.sentClientRenderFunction?C(n,eg):(a.sentClientRenderFunction=!0,C(n,Q0)),l===null)throw Error(T(395));C(n,l),C(n,tg),(u||f||c)&&(C(n,Cn),C(n,P(Rn(u||"")))),(f||c)&&(C(n,Cn),C(n,P(Rn(f||"")))),c&&(C(n,Cn),C(n,P(Rn(c)))),z(n,rg)}o.splice(0,i);var m=e.completedBoundaries;for(i=0;i<m.length;i++)xs(e,t,m[i]);m.splice(0,i),Xi(t),ue=new Uint8Array(512),ce=0;var v=e.partialBoundaries;for(i=0;i<v.length;i++){var p=v[i];e:{o=e,s=t;var d=p.completedSegments;for(a=0;a<d.length;a++)if(!zl(o,s,p,d[a])){a++,d.splice(0,a);var g=!1;break e}d.splice(0,a),g=!0}if(!g){e.destination=null,i++,v.splice(0,i);return}}v.splice(0,i);var y=e.completedBoundaries;for(i=0;i<y.length;i++)xs(e,t,y[i]);y.splice(0,i)}finally{Xi(t),e.allPendingTasks===0&&e.pingedTasks.length===0&&e.clientRenderedBoundaries.length===0&&e.completedBoundaries.length===0&&t.close()}}function bs(e,t){try{var r=e.abortableTasks;r.forEach(function(n){return Nl(n,e,t)}),r.clear(),e.destination!==null&&No(e,e.destination)}catch(n){Lt(e,n),jr(e,n)}}Ro.renderToReadableStream=function(e,t){return new Promise(function(r,n){var o,i,s=new Promise(function(f,c){i=f,o=c}),a=vg(e,e0(t?t.identifierPrefix:void 0,t?t.nonce:void 0,t?t.bootstrapScriptContent:void 0,t?t.bootstrapScripts:void 0,t?t.bootstrapModules:void 0),t0(t?t.namespaceURI:void 0),t?t.progressiveChunkSize:void 0,t?t.onError:void 0,i,function(){var f=new ReadableStream({type:"bytes",pull:function(c){if(a.status===1)a.status=2,gl(c,a.fatalError);else if(a.status!==2&&a.destination===null){a.destination=c;try{No(a,c)}catch(m){Lt(a,m),jr(a,m)}}},cancel:function(){bs(a)}},{highWaterMark:0});f.allReady=s,r(f)},function(f){s.catch(function(){}),n(f)},o);if(t&&t.signal){var l=t.signal,u=function(){bs(a,l.reason),l.removeEventListener("abort",u)};l.addEventListener("abort",u)}Il(a)})};Ro.version="18.2.0";var yt,Ll;yt=gt,Ll=Ro;yt.version;var bg=yt.renderToString;yt.renderToStaticMarkup;yt.renderToNodeStream;yt.renderToStaticNodeStream;Ll.renderToReadableStream;var wg=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Bl(e,t){return e(t={exports:{}},t.exports),t.exports}var Sg=Bl(function(e){(function(t){var r=function(g,y,b){if(!l(y)||f(y)||c(y)||m(y)||a(y))return y;var w,E=0,O=0;if(u(y))for(w=[],O=y.length;E<O;E++)w.push(r(g,y[E],b));else for(var k in w={},y)Object.prototype.hasOwnProperty.call(y,k)&&(w[g(k,b)]=r(g,y[k],b));return w},n=function(g){return v(g)?g:(g=g.replace(/[\-_\s]+(.)?/g,function(y,b){return b?b.toUpperCase():""})).substr(0,1).toLowerCase()+g.substr(1)},o=function(g){var y=n(g);return y.substr(0,1).toUpperCase()+y.substr(1)},i=function(g,y){return function(b,w){var E=(w=w||{}).separator||"_",O=w.split||/(?=[A-Z])/;return b.split(O).join(E)}(g,y).toLowerCase()},s=Object.prototype.toString,a=function(g){return typeof g=="function"},l=function(g){return g===Object(g)},u=function(g){return s.call(g)=="[object Array]"},f=function(g){return s.call(g)=="[object Date]"},c=function(g){return s.call(g)=="[object RegExp]"},m=function(g){return s.call(g)=="[object Boolean]"},v=function(g){return(g-=0)==g},p=function(g,y){var b=y&&"process"in y?y.process:y;return typeof b!="function"?g:function(w,E){return b(w,g,E)}},d={camelize:n,decamelize:i,pascalize:o,depascalize:i,camelizeKeys:function(g,y){return r(p(n,y),g)},decamelizeKeys:function(g,y){return r(p(i,y),g,y)},pascalizeKeys:function(g,y){return r(p(o,y),g)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}};e.exports?e.exports=d:t.humps=d})(wg)}).decamelize,Eg=function(e){if(Array.isArray(e))return e},kg=function(e,t){if(typeof Symbol<"u"&&Symbol.iterator in Object(e)){var r=[],n=!0,o=!1,i=void 0;try{for(var s,a=e[Symbol.iterator]();!(n=(s=a.next()).done)&&(r.push(s.value),!t||r.length!==t);n=!0);}catch(l){o=!0,i=l}finally{try{n||a.return==null||a.return()}finally{if(o)throw i}}return r}},ws=function(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n},Cg=function(e,t){if(e){if(typeof e=="string")return ws(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ws(e,t):void 0}},Rg=function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
66
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)},Og=function(e,t){return Eg(e)||kg(e,t)||Cg(e,t)||Rg()},Dl=Bl(function(e){function t(){return e.exports=t=Object.assign||function(r){for(var n=1;n<arguments.length;n++){var o=arguments[n];for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])}return r},t.apply(this,arguments)}e.exports=t}),_g=function(e,t){if(e==null)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o},Wl=function(e,t){if(e==null)return{};var r,n,o=_g(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o},Tg=h.reactExports.createContext(null);function Jn(e){var t=e.children,r=Wl(e,["children"]);return typeof t!="string"&&(t=bg(t)),h.e.createElement("template",Dl({},r,{dangerouslySetInnerHTML:{__html:t}}))}function Yn(e){var t=e.root,r=e.children;return h.reactDomExports.createPortal(r,t)}function Pg(e){var t=h.reactExports.forwardRef(function(r,n){var o,i,s=r.mode,a=r.delegatesFocus,l=r.styleSheets,u=r.ssr,f=r.children,c=Wl(r,["mode","delegatesFocus","styleSheets","ssr","children"]),m=(i=h.reactExports.useRef((o=n)&&o.current),h.reactExports.useEffect(function(){o&&(o.current=i.current)},[o]),i),v=h.reactExports.useState(null),p=Og(v,2),d=p[0],g=p[1],y="node_".concat(s).concat(a);return h.reactExports.useLayoutEffect(function(){if(m.current)try{if(typeof n=="function"&&n(m.current),u){var b=m.current.shadowRoot;return void g(b)}var w=m.current.attachShadow({mode:s,delegatesFocus:a});l.length>0&&(w.adoptedStyleSheets=l),g(w)}catch(E){(function(O){var k=O.error,R=O.styleSheets,H=O.root;switch(k.name){case"NotSupportedError":R.length>0&&(H.adoptedStyleSheets=R);break;default:throw k}})({error:E,styleSheets:l,root:d})}},[n,m,l]),h.e.createElement(h.e.Fragment,null,h.e.createElement(e.tag,Dl({key:y,ref:m},c),(d||u)&&h.e.createElement(Tg.Provider,{value:d},u?h.e.createElement(Jn,{shadowroot:s,shadowrootmode:s},e.render({root:d,ssr:u,children:f})):h.e.createElement(Yn,{root:d},e.render({root:d,ssr:u,children:f})))))});return t.propTypes={mode:ye.oneOf(["open","closed"]),delegatesFocus:ye.bool,styleSheets:ye.arrayOf(ye.instanceOf(globalThis.CSSStyleSheet)),ssr:ye.bool,children:ye.node},t.defaultProps={mode:"open",delegatesFocus:!1,styleSheets:[],ssr:!1,children:null},t}Jn.propTypes={children:ye.oneOfType([ye.string,ye.node])},Jn.defaultProps={children:""},Yn.propTypes={root:ye.object.isRequired,children:ye.node},Yn.defaultProps={children:null};var _n=new Map;function $g(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"core",r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(n){return n.children};return new Proxy(e,{get:function(n,o){var i=Sg(o,{separator:"-"}),s="".concat(t,"-").concat(i);return _n.has(s)||_n.set(s,Pg({tag:i,render:r})),_n.get(s)}})}var Ag=$g();const Fg=`@import"https://fonts.cdnfonts.com/css/tt-firs-neue-trl?styles=143111,143113,143105,143108,143110,143101,143099,143103,143097,143115";*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:TT Firs Neue Trl,sans-serif;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}
67
- `;function jg({children:e,styles:t=[]}){return h.jsxRuntimeExports.jsxs(Ag.div,{children:[[Fg,...t].map((r,n)=>h.jsxRuntimeExports.jsx("style",{type:"text/css",children:r},n)),e]})}function Ng(){return h.jsxRuntimeExports.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24",children:[h.jsxRuntimeExports.jsx("path",{stroke:"#85858A",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",d:"M22 8.27V4.23C22 2.64 21.36 2 19.77 2h-4.04c-1.59 0-2.23.64-2.23 2.23v4.04c0 1.59.64 2.23 2.23 2.23h4.04c1.59 0 2.23-.64 2.23-2.23zM10.5 8.52V3.98C10.5 2.57 9.86 2 8.27 2H4.23C2.64 2 2 2.57 2 3.98v4.53c0 1.42.64 1.98 2.23 1.98h4.04c1.59.01 2.23-.56 2.23-1.97zM10.5 19.77v-4.04c0-1.59-.64-2.23-2.23-2.23H4.23c-1.59 0-2.23.64-2.23 2.23v4.04C2 21.36 2.64 22 4.23 22h4.04c1.59 0 2.23-.64 2.23-2.23z"}),h.jsxRuntimeExports.jsx("path",{stroke:"#85858A",strokeLinecap:"round",strokeWidth:"1.5",d:"M15 15.5h6M15 19.5h6"})]})}function Mg(){return h.jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24",children:h.jsxRuntimeExports.jsx("path",{stroke:"#85858A",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",d:"M22 8.52V3.98C22 2.57 21.36 2 19.77 2h-4.04c-1.59 0-2.23.57-2.23 1.98v4.53c0 1.42.64 1.98 2.23 1.98h4.04c1.59.01 2.23-.56 2.23-1.97zM22 19.77v-4.04c0-1.59-.64-2.23-2.23-2.23h-4.04c-1.59 0-2.23.64-2.23 2.23v4.04c0 1.59.64 2.23 2.23 2.23h4.04c1.59 0 2.23-.64 2.23-2.23zM10.5 8.52V3.98C10.5 2.57 9.86 2 8.27 2H4.23C2.64 2 2 2.57 2 3.98v4.53c0 1.42.64 1.98 2.23 1.98h4.04c1.59.01 2.23-.56 2.23-1.97zM10.5 19.77v-4.04c0-1.59-.64-2.23-2.23-2.23H4.23c-1.59 0-2.23.64-2.23 2.23v4.04C2 21.36 2.64 22 4.23 22h4.04c1.59 0 2.23-.64 2.23-2.23z"})})}const Ig=`.side-bar{display:flex;flex-direction:column;max-width:18rem;height:calc(100vh - 64px);border-right:1px solid #ddd;background-color:#fafafa;transition:all .3s;padding:8px}.side-bar.expanded{width:18rem}.side-bar.collapsed{width:64px;padding-left:4px;padding-right:4px}.side-bar__menu{margin-left:-8px;margin-right:-8px;padding-left:8px;padding-right:8px}.side-bar__menu.collapsed{margin-left:-4px;margin-right:-4px;padding-left:4px;padding-right:4px}.side-bar__wrap-btn-logout,.side-bar__btn-logout{margin:40px 0}.side-bar__logout-btn__text{margin-left:12px}.side-bar__logout-btn__text.collapsed{display:none}.side-bar__wrapper-toggle-btn{display:flex;flex-direction:row;justify-content:flex-end;transition:all .3s;margin-right:-8px;margin-top:40px}.side-bar__wrapper-toggle-btn.collapsed{justify-content:center;width:100%}.side-bar__toggle-btn{margin-top:-6px}.side-bar__logout-btn{width:100%;text-align:left;display:flex;flex-direction:row;align-items:center;padding:0 16px;min-height:48px;border-radius:.375rem}.side-bar__logout-btn:hover{background-color:#919eab14}.side-bar__logout-btn.collapsed{justify-content:center}.menu-item__wrapper{display:flex;flex-direction:column;position:relative;width:100%;margin-top:4px}.menu-item__wrapper:first-child,.menu-item__wrapper.collapsed{margin-top:0}.menu-item__wrapper.collapsed.level-1{margin-top:4px}.menu-item__link{display:flex;flex-direction:row;border-radius:.375rem;align-items:center;padding:.5rem;position:relative;height:48px;cursor:pointer}.menu-item__link:hover{background-color:#919eab14}.menu-item__link.active{background-color:#009d4f1a!important;color:#009d4f!important}.menu-item__link.level-0{height:auto}.menu-item__link.menu-item__link.collapsed.level-0{display:none}.menu-item__icon{width:1.5rem;height:1.5rem;flex-shrink:0}.menu-item__icon.collapsed.level-1{width:100%}.menu-item__icon.collapsed.level-1>*{margin:0 auto}.menu-item__label{font-size:.875rem;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;width:100%;flex-shrink:1;margin-left:.5rem;padding-right:12px}.menu-item__label.collapsed{margin-left:8px;font-size:.75rem;line-height:1rem}.menu-item__label.collapsed.level-1{text-align:center;margin-left:0;display:none}.menu-item__label.level-0{color:#85858a}.menu-item__icon-arrow__wrapper{display:grid;place-items:center;position:absolute;top:50%;transform:translateY(-50%);right:-3px}.menu-item__icon-arrow__wrapper.expanded{right:0}.menu-item__icon-arrow__icon{transition:all .3s!important;color:#85858a}.menu-item__icon-arrow__icon.active{color:inherit}.menu-item__icon-arrow__icon.expanded.open{transform:rotate(90deg)!important}.menu-item__dropdown.collapsed{background-color:#fafafa;border:1px solid #ddd;box-shadow:#0000001a 0 10px 15px -3px,#0000000d 0 4px 6px -2px;border-radius:4px;width:180px;max-width:180px;padding:4px;z-index:1200}.menu-item__dropdown.collapsed .menu-item__link{height:40px}.menu-item__dropdown.collapsed .menu-item__link.level-1{height:48px}.menu-item__dropdown.collapsed.level-1{width:auto;max-width:unset;box-shadow:none;border:none;padding:0;background-color:unset}.menu-item__dropdown.expanded{margin-top:4px;overflow:hidden}.icon-btn{display:inline-flex;align-items:center;justify-content:center;padding:8px;border-radius:50%;background-color:transparent;transition:background-color .3s ease;border:none}.icon-btn:hover{background-color:var(--btn-bg-hover)}.simplebar-scrollbar:before{background-color:#0000002d}
68
- `;function zg(e){return h.jsxRuntimeExports.jsx(jg,{styles:[fm,Ig],children:h.jsxRuntimeExports.jsx(Lg,{...e})})}function Lg(e){const{baseUrl:t,menuPath:r,logout:n}=e,o=Lr(),[i,s]=h.reactExports.useState([]),[a,l]=h.reactExports.useState(!1),u=(Sa(i,o.pathname)||[]).filter(b=>b.parentKey!==0),[f,c]=h.reactExports.useState({}),m=b=>{c({...f,[b]:!f[b]})},v=()=>{l(!a)};h.reactExports.useEffect(()=>{(async()=>{const w=t+(r||"/global-menu-config/api/v1/menu-items/user"),E=await cm.get(w,{withCredentials:!0}).then(k=>k.data),O={};E.forEach(k=>{k.children&&(O[k.id]=!0)}),c(O),s(E.map(k=>({...k,parentKey:0})))})()},[t,r]);const[p,d]=h.reactExports.useState(!1),g=a?"collapsed":"expanded",y=b=>`${b} ${g}`;return h.jsxRuntimeExports.jsxs("div",{className:y("side-bar"),children:[h.jsxRuntimeExports.jsx("div",{className:y("side-bar__wrapper-toggle-btn"),children:h.jsxRuntimeExports.jsx("button",{className:"icon-btn side-bar__toggle-btn",onClick:v,children:a?h.jsxRuntimeExports.jsx(Ng,{}):h.jsxRuntimeExports.jsx(Mg,{})})}),h.jsxRuntimeExports.jsx(Ds,{className:y("side-bar__menu"),style:{marginTop:24,flex:1,overflow:"auto",height:"100%",overflowX:"hidden"},children:i.map(b=>{const w=E=>u.some(O=>O.id===E);return h.jsxRuntimeExports.jsx(wa,{item:b,isActive:w,isCollapsed:a,expanded:E=>f[E],toggleExpand:m},b.id)})}),h.jsxRuntimeExports.jsxs("div",{className:y("side-bar__wrap-btn-logout"),children:[h.jsxRuntimeExports.jsxs("button",{className:y("side-bar__logout-btn"),onClick:()=>d(!0),children:[h.jsxRuntimeExports.jsx(qp,{}),h.jsxRuntimeExports.jsx("span",{className:y("side-bar__logout-btn__text"),children:"Logout"})]}),h.jsxRuntimeExports.jsx(h.LogoutConfirmModal,{isOpen:p,onClose:()=>d(!1),onConfirm:n})]})]})}function Bg(e){return h.jsxRuntimeExports.jsx(du,{children:h.jsxRuntimeExports.jsx(zg,{...e})})}const Dg=h.s(Bg,{props:{baseUrl:"string",menuPath:"string",logout:"function"}});customElements.define("global-menu",Dg);
28
+ */function jn(){return jn=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},jn.apply(this,arguments)}function Ia(t,e){if(t==null)return{};var n={},r=Object.keys(t),s,o;for(o=0;o<r.length;o++)s=r[o],!(e.indexOf(s)>=0)&&(n[s]=t[s]);return n}function Wa(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}function Ua(t,e){return t.button===0&&(!e||e==="_self")&&!Wa(t)}const za=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],Ha="startTransition",jr=p.React[Ha];function $a(t){let{basename:e,children:n,future:r,window:s}=t,o=p.reactExports.useRef();o.current==null&&(o.current=Sa({window:s,v5Compat:!0}));let i=o.current,[a,l]=p.reactExports.useState({action:i.action,location:i.location}),{v7_startTransition:u}=r||{},f=p.reactExports.useCallback(c=>{u&&jr?jr(()=>l(c)):l(c)},[l,u]);return p.reactExports.useLayoutEffect(()=>i.listen(f),[i,f]),p.reactExports.createElement(Fa,{basename:e,children:n,location:a.location,navigationType:a.action,navigator:i,future:r})}const qa=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Ga=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Xa=p.reactExports.forwardRef(function(e,n){let{onClick:r,relative:s,reloadDocument:o,replace:i,state:a,target:l,to:u,preventScrollReset:f,unstable_viewTransition:c}=e,h=Ia(e,za),{basename:d}=p.reactExports.useContext(Kt),m,g=!1;if(typeof u=="string"&&Ga.test(u)&&(m=u,qa))try{let v=new URL(window.location.href),E=u.startsWith("//")?new URL(v.protocol+u):new URL(u),S=li(E.pathname,d);E.origin===v.origin&&S!=null?u=S+E.search+E.hash:g=!0}catch{}let y=ja(u,{relative:s}),b=Ka(u,{replace:i,state:a,target:l,preventScrollReset:f,relative:s,unstable_viewTransition:c});function w(v){r&&r(v),v.defaultPrevented||b(v)}return p.reactExports.createElement("a",jn({},h,{href:m||y,onClick:g||o?r:w,ref:n,target:l}))});var Lr;(function(t){t.UseScrollRestoration="useScrollRestoration",t.UseSubmit="useSubmit",t.UseSubmitFetcher="useSubmitFetcher",t.UseFetcher="useFetcher",t.useViewTransitionState="useViewTransitionState"})(Lr||(Lr={}));var kr;(function(t){t.UseFetcher="useFetcher",t.UseFetchers="useFetchers",t.UseScrollRestoration="useScrollRestoration"})(kr||(kr={}));function Ka(t,e){let{target:n,replace:r,state:s,preventScrollReset:o,relative:i,unstable_viewTransition:a}=e===void 0?{}:e,l=La(),u=Xe(),f=mi(t,{relative:i});return p.reactExports.useCallback(c=>{if(Ua(c,n)){c.preventDefault();let h=r!==void 0?r:Me(u)===Me(f);l(t,{replace:h,state:s,preventScrollReset:o,relative:i,unstable_viewTransition:a})}},[u,l,f,r,s,n,t,o,i,a])}var Ya=typeof global=="object"&&global&&global.Object===Object&&global;const Ja=Ya;var Za=typeof self=="object"&&self&&self.Object===Object&&self,Qa=Ja||Za||Function("return this")();const vi=Qa;var tl=vi.Symbol;const Le=tl;var xi=Object.prototype,el=xi.hasOwnProperty,nl=xi.toString,Zt=Le?Le.toStringTag:void 0;function rl(t){var e=el.call(t,Zt),n=t[Zt];try{t[Zt]=void 0;var r=!0}catch{}var s=nl.call(t);return r&&(e?t[Zt]=n:delete t[Zt]),s}var sl=Object.prototype,il=sl.toString;function ol(t){return il.call(t)}var al="[object Null]",ll="[object Undefined]",Dr=Le?Le.toStringTag:void 0;function cl(t){return t==null?t===void 0?ll:al:Dr&&Dr in Object(t)?rl(t):ol(t)}function ul(t){return t!=null&&typeof t=="object"}var fl="[object Symbol]";function hl(t){return typeof t=="symbol"||ul(t)&&cl(t)==fl}var dl=/\s/;function pl(t){for(var e=t.length;e--&&dl.test(t.charAt(e)););return e}var ml=/^\s+/;function gl(t){return t&&t.slice(0,pl(t)+1).replace(ml,"")}function ke(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var _r=0/0,yl=/^[-+]0x[0-9a-f]+$/i,vl=/^0b[01]+$/i,xl=/^0o[0-7]+$/i,bl=parseInt;function Nr(t){if(typeof t=="number")return t;if(hl(t))return _r;if(ke(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=ke(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=gl(t);var n=vl.test(t);return n||xl.test(t)?bl(t.slice(2),n?2:8):yl.test(t)?_r:+t}var wl=function(){return vi.Date.now()};const fn=wl;var El="Expected a function",Sl=Math.max,Tl=Math.min;function Pe(t,e,n){var r,s,o,i,a,l,u=0,f=!1,c=!1,h=!0;if(typeof t!="function")throw new TypeError(El);e=Nr(e)||0,ke(n)&&(f=!!n.leading,c="maxWait"in n,o=c?Sl(Nr(n.maxWait)||0,e):o,h="trailing"in n?!!n.trailing:h);function d(T){var P=r,A=s;return r=s=void 0,u=T,i=t.apply(A,P),i}function m(T){return u=T,a=setTimeout(b,e),f?d(T):i}function g(T){var P=T-l,A=T-u,R=e-P;return c?Tl(R,o-A):R}function y(T){var P=T-l,A=T-u;return l===void 0||P>=e||P<0||c&&A>=o}function b(){var T=fn();if(y(T))return w(T);a=setTimeout(b,g(T))}function w(T){return a=void 0,h&&r?d(T):(r=s=void 0,i)}function v(){a!==void 0&&clearTimeout(a),u=0,r=l=s=a=void 0}function E(){return a===void 0?i:w(fn())}function S(){var T=fn(),P=y(T);if(r=arguments,s=this,l=T,P){if(a===void 0)return m(l);if(c)return clearTimeout(a),a=setTimeout(b,e),d(l)}return a===void 0&&(a=setTimeout(b,e)),i}return S.cancel=v,S.flush=E,S}var Pl="Expected a function";function Al(t,e,n){var r=!0,s=!0;if(typeof t!="function")throw new TypeError(Pl);return ke(n)&&(r="leading"in n?!!n.leading:r,s="trailing"in n?!!n.trailing:s),Pe(t,e,{leading:r,maxWait:e,trailing:s})}var Cl=!!(typeof window<"u"&&window.document&&window.document.createElement),Rl=Cl;const bi=p.getDefaultExportFromCjs(Rl);var Wt=function(){return Wt=Object.assign||function(e){for(var n,r=1,s=arguments.length;r<s;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Wt.apply(this,arguments)},Ft=null,Br=null;bi&&window.addEventListener("resize",function(){Br!==window.devicePixelRatio&&(Br=window.devicePixelRatio,Ft=null)});function Fr(){if(Ft===null){if(typeof document>"u")return Ft=0,Ft;var t=document.body,e=document.createElement("div");e.classList.add("simplebar-hide-scrollbar"),t.appendChild(e);var n=e.getBoundingClientRect().right;t.removeChild(e),Ft=n}return Ft}function wi(t){return!t||!t.ownerDocument||!t.ownerDocument.defaultView?window:t.ownerDocument.defaultView}function Ei(t){return!t||!t.ownerDocument?document:t.ownerDocument}var Si=function(t){var e={},n=Array.prototype.reduce.call(t,function(r,s){var o=s.name.match(/data-simplebar-(.+)/);if(o){var i=o[1].replace(/\W+(.)/g,function(a,l){return l.toUpperCase()});switch(s.value){case"true":r[i]=!0;break;case"false":r[i]=!1;break;case void 0:r[i]=!0;break;default:r[i]=s.value}}return r},e);return n};function Ti(t,e){var n;t&&(n=t.classList).add.apply(n,e.split(" "))}function Pi(t,e){t&&e.split(" ").forEach(function(n){t.classList.remove(n)})}function Ai(t){return".".concat(t.split(" ").join("."))}var Ol=Object.freeze({__proto__:null,getElementWindow:wi,getElementDocument:Ei,getOptions:Si,addClasses:Ti,removeClasses:Pi,classNamesToQuery:Ai}),dt=wi,hn=Ei,Vl=Si,pt=Ti,mt=Pi,H=Ai,xe=function(){function t(e,n){n===void 0&&(n={});var r=this;if(this.removePreventClickId=null,this.minScrollbarWidth=20,this.stopScrollDelay=175,this.isScrolling=!1,this.isMouseEntering=!1,this.scrollXTicking=!1,this.scrollYTicking=!1,this.wrapperEl=null,this.contentWrapperEl=null,this.contentEl=null,this.offsetEl=null,this.maskEl=null,this.placeholderEl=null,this.heightAutoObserverWrapperEl=null,this.heightAutoObserverEl=null,this.rtlHelpers=null,this.scrollbarWidth=0,this.resizeObserver=null,this.mutationObserver=null,this.elStyles=null,this.isRtl=null,this.mouseX=0,this.mouseY=0,this.onMouseMove=function(){},this.onWindowResize=function(){},this.onStopScrolling=function(){},this.onMouseEntered=function(){},this.onScroll=function(){var s=dt(r.el);r.scrollXTicking||(s.requestAnimationFrame(r.scrollX),r.scrollXTicking=!0),r.scrollYTicking||(s.requestAnimationFrame(r.scrollY),r.scrollYTicking=!0),r.isScrolling||(r.isScrolling=!0,pt(r.el,r.classNames.scrolling)),r.showScrollbar("x"),r.showScrollbar("y"),r.onStopScrolling()},this.scrollX=function(){r.axis.x.isOverflowing&&r.positionScrollbar("x"),r.scrollXTicking=!1},this.scrollY=function(){r.axis.y.isOverflowing&&r.positionScrollbar("y"),r.scrollYTicking=!1},this._onStopScrolling=function(){mt(r.el,r.classNames.scrolling),r.options.autoHide&&(r.hideScrollbar("x"),r.hideScrollbar("y")),r.isScrolling=!1},this.onMouseEnter=function(){r.isMouseEntering||(pt(r.el,r.classNames.mouseEntered),r.showScrollbar("x"),r.showScrollbar("y"),r.isMouseEntering=!0),r.onMouseEntered()},this._onMouseEntered=function(){mt(r.el,r.classNames.mouseEntered),r.options.autoHide&&(r.hideScrollbar("x"),r.hideScrollbar("y")),r.isMouseEntering=!1},this._onMouseMove=function(s){r.mouseX=s.clientX,r.mouseY=s.clientY,(r.axis.x.isOverflowing||r.axis.x.forceVisible)&&r.onMouseMoveForAxis("x"),(r.axis.y.isOverflowing||r.axis.y.forceVisible)&&r.onMouseMoveForAxis("y")},this.onMouseLeave=function(){r.onMouseMove.cancel(),(r.axis.x.isOverflowing||r.axis.x.forceVisible)&&r.onMouseLeaveForAxis("x"),(r.axis.y.isOverflowing||r.axis.y.forceVisible)&&r.onMouseLeaveForAxis("y"),r.mouseX=-1,r.mouseY=-1},this._onWindowResize=function(){r.scrollbarWidth=r.getScrollbarWidth(),r.hideNativeScrollbar()},this.onPointerEvent=function(s){if(!(!r.axis.x.track.el||!r.axis.y.track.el||!r.axis.x.scrollbar.el||!r.axis.y.scrollbar.el)){var o,i;r.axis.x.track.rect=r.axis.x.track.el.getBoundingClientRect(),r.axis.y.track.rect=r.axis.y.track.el.getBoundingClientRect(),(r.axis.x.isOverflowing||r.axis.x.forceVisible)&&(o=r.isWithinBounds(r.axis.x.track.rect)),(r.axis.y.isOverflowing||r.axis.y.forceVisible)&&(i=r.isWithinBounds(r.axis.y.track.rect)),(o||i)&&(s.stopPropagation(),s.type==="pointerdown"&&s.pointerType!=="touch"&&(o&&(r.axis.x.scrollbar.rect=r.axis.x.scrollbar.el.getBoundingClientRect(),r.isWithinBounds(r.axis.x.scrollbar.rect)?r.onDragStart(s,"x"):r.onTrackClick(s,"x")),i&&(r.axis.y.scrollbar.rect=r.axis.y.scrollbar.el.getBoundingClientRect(),r.isWithinBounds(r.axis.y.scrollbar.rect)?r.onDragStart(s,"y"):r.onTrackClick(s,"y"))))}},this.drag=function(s){var o,i,a,l,u,f,c,h,d,m,g;if(!(!r.draggedAxis||!r.contentWrapperEl)){var y,b=r.axis[r.draggedAxis].track,w=(i=(o=b.rect)===null||o===void 0?void 0:o[r.axis[r.draggedAxis].sizeAttr])!==null&&i!==void 0?i:0,v=r.axis[r.draggedAxis].scrollbar,E=(l=(a=r.contentWrapperEl)===null||a===void 0?void 0:a[r.axis[r.draggedAxis].scrollSizeAttr])!==null&&l!==void 0?l:0,S=parseInt((f=(u=r.elStyles)===null||u===void 0?void 0:u[r.axis[r.draggedAxis].sizeAttr])!==null&&f!==void 0?f:"0px",10);s.preventDefault(),s.stopPropagation(),r.draggedAxis==="y"?y=s.pageY:y=s.pageX;var T=y-((h=(c=b.rect)===null||c===void 0?void 0:c[r.axis[r.draggedAxis].offsetAttr])!==null&&h!==void 0?h:0)-r.axis[r.draggedAxis].dragOffset;T=r.draggedAxis==="x"&&r.isRtl?((m=(d=b.rect)===null||d===void 0?void 0:d[r.axis[r.draggedAxis].sizeAttr])!==null&&m!==void 0?m:0)-v.size-T:T;var P=T/(w-v.size),A=P*(E-S);r.draggedAxis==="x"&&r.isRtl&&(A=!((g=t.getRtlHelpers())===null||g===void 0)&&g.isScrollingToNegative?-A:A),r.contentWrapperEl[r.axis[r.draggedAxis].scrollOffsetAttr]=A}},this.onEndDrag=function(s){var o=hn(r.el),i=dt(r.el);s.preventDefault(),s.stopPropagation(),mt(r.el,r.classNames.dragging),o.removeEventListener("mousemove",r.drag,!0),o.removeEventListener("mouseup",r.onEndDrag,!0),r.removePreventClickId=i.setTimeout(function(){o.removeEventListener("click",r.preventClick,!0),o.removeEventListener("dblclick",r.preventClick,!0),r.removePreventClickId=null})},this.preventClick=function(s){s.preventDefault(),s.stopPropagation()},this.el=e,this.options=Wt(Wt({},t.defaultOptions),n),this.classNames=Wt(Wt({},t.defaultOptions.classNames),n.classNames),this.axis={x:{scrollOffsetAttr:"scrollLeft",sizeAttr:"width",scrollSizeAttr:"scrollWidth",offsetSizeAttr:"offsetWidth",offsetAttr:"left",overflowAttr:"overflowX",dragOffset:0,isOverflowing:!0,forceVisible:!1,track:{size:null,el:null,rect:null,isVisible:!1},scrollbar:{size:null,el:null,rect:null,isVisible:!1}},y:{scrollOffsetAttr:"scrollTop",sizeAttr:"height",scrollSizeAttr:"scrollHeight",offsetSizeAttr:"offsetHeight",offsetAttr:"top",overflowAttr:"overflowY",dragOffset:0,isOverflowing:!0,forceVisible:!1,track:{size:null,el:null,rect:null,isVisible:!1},scrollbar:{size:null,el:null,rect:null,isVisible:!1}}},typeof this.el!="object"||!this.el.nodeName)throw new Error("Argument passed to SimpleBar must be an HTML element instead of ".concat(this.el));this.onMouseMove=Al(this._onMouseMove,64),this.onWindowResize=Pe(this._onWindowResize,64,{leading:!0}),this.onStopScrolling=Pe(this._onStopScrolling,this.stopScrollDelay),this.onMouseEntered=Pe(this._onMouseEntered,this.stopScrollDelay),this.init()}return t.getRtlHelpers=function(){if(t.rtlHelpers)return t.rtlHelpers;var e=document.createElement("div");e.innerHTML='<div class="simplebar-dummy-scrollbar-size"><div></div></div>';var n=e.firstElementChild,r=n==null?void 0:n.firstElementChild;if(!r)return null;document.body.appendChild(n),n.scrollLeft=0;var s=t.getOffset(n),o=t.getOffset(r);n.scrollLeft=-999;var i=t.getOffset(r);return document.body.removeChild(n),t.rtlHelpers={isScrollOriginAtZero:s.left!==o.left,isScrollingToNegative:o.left!==i.left},t.rtlHelpers},t.prototype.getScrollbarWidth=function(){try{return this.contentWrapperEl&&getComputedStyle(this.contentWrapperEl,"::-webkit-scrollbar").display==="none"||"scrollbarWidth"in document.documentElement.style||"-ms-overflow-style"in document.documentElement.style?0:Fr()}catch{return Fr()}},t.getOffset=function(e){var n=e.getBoundingClientRect(),r=hn(e),s=dt(e);return{top:n.top+(s.pageYOffset||r.documentElement.scrollTop),left:n.left+(s.pageXOffset||r.documentElement.scrollLeft)}},t.prototype.init=function(){bi&&(this.initDOM(),this.rtlHelpers=t.getRtlHelpers(),this.scrollbarWidth=this.getScrollbarWidth(),this.recalculate(),this.initListeners())},t.prototype.initDOM=function(){var e,n;this.wrapperEl=this.el.querySelector(H(this.classNames.wrapper)),this.contentWrapperEl=this.options.scrollableNode||this.el.querySelector(H(this.classNames.contentWrapper)),this.contentEl=this.options.contentNode||this.el.querySelector(H(this.classNames.contentEl)),this.offsetEl=this.el.querySelector(H(this.classNames.offset)),this.maskEl=this.el.querySelector(H(this.classNames.mask)),this.placeholderEl=this.findChild(this.wrapperEl,H(this.classNames.placeholder)),this.heightAutoObserverWrapperEl=this.el.querySelector(H(this.classNames.heightAutoObserverWrapperEl)),this.heightAutoObserverEl=this.el.querySelector(H(this.classNames.heightAutoObserverEl)),this.axis.x.track.el=this.findChild(this.el,"".concat(H(this.classNames.track)).concat(H(this.classNames.horizontal))),this.axis.y.track.el=this.findChild(this.el,"".concat(H(this.classNames.track)).concat(H(this.classNames.vertical))),this.axis.x.scrollbar.el=((e=this.axis.x.track.el)===null||e===void 0?void 0:e.querySelector(H(this.classNames.scrollbar)))||null,this.axis.y.scrollbar.el=((n=this.axis.y.track.el)===null||n===void 0?void 0:n.querySelector(H(this.classNames.scrollbar)))||null,this.options.autoHide||(pt(this.axis.x.scrollbar.el,this.classNames.visible),pt(this.axis.y.scrollbar.el,this.classNames.visible))},t.prototype.initListeners=function(){var e=this,n,r=dt(this.el);if(this.el.addEventListener("mouseenter",this.onMouseEnter),this.el.addEventListener("pointerdown",this.onPointerEvent,!0),this.el.addEventListener("mousemove",this.onMouseMove),this.el.addEventListener("mouseleave",this.onMouseLeave),(n=this.contentWrapperEl)===null||n===void 0||n.addEventListener("scroll",this.onScroll),r.addEventListener("resize",this.onWindowResize),!!this.contentEl){if(window.ResizeObserver){var s=!1,o=r.ResizeObserver||ResizeObserver;this.resizeObserver=new o(function(){s&&r.requestAnimationFrame(function(){e.recalculate()})}),this.resizeObserver.observe(this.el),this.resizeObserver.observe(this.contentEl),r.requestAnimationFrame(function(){s=!0})}this.mutationObserver=new r.MutationObserver(function(){r.requestAnimationFrame(function(){e.recalculate()})}),this.mutationObserver.observe(this.contentEl,{childList:!0,subtree:!0,characterData:!0})}},t.prototype.recalculate=function(){if(!(!this.heightAutoObserverEl||!this.contentEl||!this.contentWrapperEl||!this.wrapperEl||!this.placeholderEl)){var e=dt(this.el);this.elStyles=e.getComputedStyle(this.el),this.isRtl=this.elStyles.direction==="rtl";var n=this.contentEl.offsetWidth,r=this.heightAutoObserverEl.offsetHeight<=1,s=this.heightAutoObserverEl.offsetWidth<=1||n>0,o=this.contentWrapperEl.offsetWidth,i=this.elStyles.overflowX,a=this.elStyles.overflowY;this.contentEl.style.padding="".concat(this.elStyles.paddingTop," ").concat(this.elStyles.paddingRight," ").concat(this.elStyles.paddingBottom," ").concat(this.elStyles.paddingLeft),this.wrapperEl.style.margin="-".concat(this.elStyles.paddingTop," -").concat(this.elStyles.paddingRight," -").concat(this.elStyles.paddingBottom," -").concat(this.elStyles.paddingLeft);var l=this.contentEl.scrollHeight,u=this.contentEl.scrollWidth;this.contentWrapperEl.style.height=r?"auto":"100%",this.placeholderEl.style.width=s?"".concat(n||u,"px"):"auto",this.placeholderEl.style.height="".concat(l,"px");var f=this.contentWrapperEl.offsetHeight;this.axis.x.isOverflowing=n!==0&&u>n,this.axis.y.isOverflowing=l>f,this.axis.x.isOverflowing=i==="hidden"?!1:this.axis.x.isOverflowing,this.axis.y.isOverflowing=a==="hidden"?!1:this.axis.y.isOverflowing,this.axis.x.forceVisible=this.options.forceVisible==="x"||this.options.forceVisible===!0,this.axis.y.forceVisible=this.options.forceVisible==="y"||this.options.forceVisible===!0,this.hideNativeScrollbar();var c=this.axis.x.isOverflowing?this.scrollbarWidth:0,h=this.axis.y.isOverflowing?this.scrollbarWidth:0;this.axis.x.isOverflowing=this.axis.x.isOverflowing&&u>o-h,this.axis.y.isOverflowing=this.axis.y.isOverflowing&&l>f-c,this.axis.x.scrollbar.size=this.getScrollbarSize("x"),this.axis.y.scrollbar.size=this.getScrollbarSize("y"),this.axis.x.scrollbar.el&&(this.axis.x.scrollbar.el.style.width="".concat(this.axis.x.scrollbar.size,"px")),this.axis.y.scrollbar.el&&(this.axis.y.scrollbar.el.style.height="".concat(this.axis.y.scrollbar.size,"px")),this.positionScrollbar("x"),this.positionScrollbar("y"),this.toggleTrackVisibility("x"),this.toggleTrackVisibility("y")}},t.prototype.getScrollbarSize=function(e){var n,r;if(e===void 0&&(e="y"),!this.axis[e].isOverflowing||!this.contentEl)return 0;var s=this.contentEl[this.axis[e].scrollSizeAttr],o=(r=(n=this.axis[e].track.el)===null||n===void 0?void 0:n[this.axis[e].offsetSizeAttr])!==null&&r!==void 0?r:0,i=o/s,a;return a=Math.max(~~(i*o),this.options.scrollbarMinSize),this.options.scrollbarMaxSize&&(a=Math.min(a,this.options.scrollbarMaxSize)),a},t.prototype.positionScrollbar=function(e){var n,r,s;e===void 0&&(e="y");var o=this.axis[e].scrollbar;if(!(!this.axis[e].isOverflowing||!this.contentWrapperEl||!o.el||!this.elStyles)){var i=this.contentWrapperEl[this.axis[e].scrollSizeAttr],a=((n=this.axis[e].track.el)===null||n===void 0?void 0:n[this.axis[e].offsetSizeAttr])||0,l=parseInt(this.elStyles[this.axis[e].sizeAttr],10),u=this.contentWrapperEl[this.axis[e].scrollOffsetAttr];u=e==="x"&&this.isRtl&&(!((r=t.getRtlHelpers())===null||r===void 0)&&r.isScrollOriginAtZero)?-u:u,e==="x"&&this.isRtl&&(u=!((s=t.getRtlHelpers())===null||s===void 0)&&s.isScrollingToNegative?u:-u);var f=u/(i-l),c=~~((a-o.size)*f);c=e==="x"&&this.isRtl?-c+(a-o.size):c,o.el.style.transform=e==="x"?"translate3d(".concat(c,"px, 0, 0)"):"translate3d(0, ".concat(c,"px, 0)")}},t.prototype.toggleTrackVisibility=function(e){e===void 0&&(e="y");var n=this.axis[e].track.el,r=this.axis[e].scrollbar.el;!n||!r||!this.contentWrapperEl||(this.axis[e].isOverflowing||this.axis[e].forceVisible?(n.style.visibility="visible",this.contentWrapperEl.style[this.axis[e].overflowAttr]="scroll",this.el.classList.add("".concat(this.classNames.scrollable,"-").concat(e))):(n.style.visibility="hidden",this.contentWrapperEl.style[this.axis[e].overflowAttr]="hidden",this.el.classList.remove("".concat(this.classNames.scrollable,"-").concat(e))),this.axis[e].isOverflowing?r.style.display="block":r.style.display="none")},t.prototype.showScrollbar=function(e){e===void 0&&(e="y"),this.axis[e].isOverflowing&&!this.axis[e].scrollbar.isVisible&&(pt(this.axis[e].scrollbar.el,this.classNames.visible),this.axis[e].scrollbar.isVisible=!0)},t.prototype.hideScrollbar=function(e){e===void 0&&(e="y"),this.axis[e].isOverflowing&&this.axis[e].scrollbar.isVisible&&(mt(this.axis[e].scrollbar.el,this.classNames.visible),this.axis[e].scrollbar.isVisible=!1)},t.prototype.hideNativeScrollbar=function(){this.offsetEl&&(this.offsetEl.style[this.isRtl?"left":"right"]=this.axis.y.isOverflowing||this.axis.y.forceVisible?"-".concat(this.scrollbarWidth,"px"):"0px",this.offsetEl.style.bottom=this.axis.x.isOverflowing||this.axis.x.forceVisible?"-".concat(this.scrollbarWidth,"px"):"0px")},t.prototype.onMouseMoveForAxis=function(e){e===void 0&&(e="y");var n=this.axis[e];!n.track.el||!n.scrollbar.el||(n.track.rect=n.track.el.getBoundingClientRect(),n.scrollbar.rect=n.scrollbar.el.getBoundingClientRect(),this.isWithinBounds(n.track.rect)?(this.showScrollbar(e),pt(n.track.el,this.classNames.hover),this.isWithinBounds(n.scrollbar.rect)?pt(n.scrollbar.el,this.classNames.hover):mt(n.scrollbar.el,this.classNames.hover)):(mt(n.track.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(e)))},t.prototype.onMouseLeaveForAxis=function(e){e===void 0&&(e="y"),mt(this.axis[e].track.el,this.classNames.hover),mt(this.axis[e].scrollbar.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(e)},t.prototype.onDragStart=function(e,n){var r;n===void 0&&(n="y");var s=hn(this.el),o=dt(this.el),i=this.axis[n].scrollbar,a=n==="y"?e.pageY:e.pageX;this.axis[n].dragOffset=a-(((r=i.rect)===null||r===void 0?void 0:r[this.axis[n].offsetAttr])||0),this.draggedAxis=n,pt(this.el,this.classNames.dragging),s.addEventListener("mousemove",this.drag,!0),s.addEventListener("mouseup",this.onEndDrag,!0),this.removePreventClickId===null?(s.addEventListener("click",this.preventClick,!0),s.addEventListener("dblclick",this.preventClick,!0)):(o.clearTimeout(this.removePreventClickId),this.removePreventClickId=null)},t.prototype.onTrackClick=function(e,n){var r=this,s,o,i,a;n===void 0&&(n="y");var l=this.axis[n];if(!(!this.options.clickOnTrack||!l.scrollbar.el||!this.contentWrapperEl)){e.preventDefault();var u=dt(this.el);this.axis[n].scrollbar.rect=l.scrollbar.el.getBoundingClientRect();var f=this.axis[n].scrollbar,c=(o=(s=f.rect)===null||s===void 0?void 0:s[this.axis[n].offsetAttr])!==null&&o!==void 0?o:0,h=parseInt((a=(i=this.elStyles)===null||i===void 0?void 0:i[this.axis[n].sizeAttr])!==null&&a!==void 0?a:"0px",10),d=this.contentWrapperEl[this.axis[n].scrollOffsetAttr],m=n==="y"?this.mouseY-c:this.mouseX-c,g=m<0?-1:1,y=g===-1?d-h:d+h,b=40,w=function(){r.contentWrapperEl&&(g===-1?d>y&&(d-=b,r.contentWrapperEl[r.axis[n].scrollOffsetAttr]=d,u.requestAnimationFrame(w)):d<y&&(d+=b,r.contentWrapperEl[r.axis[n].scrollOffsetAttr]=d,u.requestAnimationFrame(w)))};w()}},t.prototype.getContentElement=function(){return this.contentEl},t.prototype.getScrollElement=function(){return this.contentWrapperEl},t.prototype.removeListeners=function(){var e=dt(this.el);this.el.removeEventListener("mouseenter",this.onMouseEnter),this.el.removeEventListener("pointerdown",this.onPointerEvent,!0),this.el.removeEventListener("mousemove",this.onMouseMove),this.el.removeEventListener("mouseleave",this.onMouseLeave),this.contentWrapperEl&&this.contentWrapperEl.removeEventListener("scroll",this.onScroll),e.removeEventListener("resize",this.onWindowResize),this.mutationObserver&&this.mutationObserver.disconnect(),this.resizeObserver&&this.resizeObserver.disconnect(),this.onMouseMove.cancel(),this.onWindowResize.cancel(),this.onStopScrolling.cancel(),this.onMouseEntered.cancel()},t.prototype.unMount=function(){this.removeListeners()},t.prototype.isWithinBounds=function(e){return this.mouseX>=e.left&&this.mouseX<=e.left+e.width&&this.mouseY>=e.top&&this.mouseY<=e.top+e.height},t.prototype.findChild=function(e,n){var r=e.matches||e.webkitMatchesSelector||e.mozMatchesSelector||e.msMatchesSelector;return Array.prototype.filter.call(e.children,function(s){return r.call(s,n)})[0]},t.rtlHelpers=null,t.defaultOptions={forceVisible:!1,clickOnTrack:!0,scrollbarMinSize:25,scrollbarMaxSize:0,ariaLabel:"scrollable content",classNames:{contentEl:"simplebar-content",contentWrapper:"simplebar-content-wrapper",offset:"simplebar-offset",mask:"simplebar-mask",wrapper:"simplebar-wrapper",placeholder:"simplebar-placeholder",scrollbar:"simplebar-scrollbar",track:"simplebar-track",heightAutoObserverWrapperEl:"simplebar-height-auto-observer-wrapper",heightAutoObserverEl:"simplebar-height-auto-observer",visible:"simplebar-visible",horizontal:"simplebar-horizontal",vertical:"simplebar-vertical",hover:"simplebar-hover",dragging:"simplebar-dragging",scrolling:"simplebar-scrolling",scrollable:"simplebar-scrollable",mouseEntered:"simplebar-mouse-entered"},scrollableNode:null,contentNode:null,autoHide:!0},t.getOptions=Vl,t.helpers=Ol,t}(),G=function(){return G=Object.assign||function(e){for(var n,r=1,s=arguments.length;r<s;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},G.apply(this,arguments)};function Ml(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(t);s<r.length;s++)e.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(t,r[s])&&(n[r[s]]=t[r[s]]);return n}var Ci=p.reactExports.forwardRef(function(t,e){var n=t.children,r=t.scrollableNodeProps,s=r===void 0?{}:r,o=Ml(t,["children","scrollableNodeProps"]),i=p.reactExports.useRef(),a=p.reactExports.useRef(),l=p.reactExports.useRef(),u={},f={};Object.keys(o).forEach(function(d){Object.prototype.hasOwnProperty.call(xe.defaultOptions,d)?u[d]=o[d]:f[d]=o[d]});var c=G(G({},xe.defaultOptions.classNames),u.classNames),h=G(G({},s),{className:"".concat(c.contentWrapper).concat(s.className?" ".concat(s.className):""),tabIndex:0,role:"region","aria-label":u.ariaLabel||xe.defaultOptions.ariaLabel});return p.reactExports.useEffect(function(){var d;return a.current=h.ref?h.ref.current:a.current,i.current&&(d=new xe(i.current,G(G(G({},u),a.current&&{scrollableNode:a.current}),l.current&&{contentNode:l.current})),typeof e=="function"?e(d):e&&(e.current=d)),function(){d==null||d.unMount(),d=null,typeof e=="function"&&e(null)}},[]),p.reactExports.createElement("div",G({"data-simplebar":"init",ref:i},f),p.reactExports.createElement("div",{className:c.wrapper},p.reactExports.createElement("div",{className:c.heightAutoObserverWrapperEl},p.reactExports.createElement("div",{className:c.heightAutoObserverEl})),p.reactExports.createElement("div",{className:c.mask},p.reactExports.createElement("div",{className:c.offset},typeof n=="function"?n({scrollableNodeRef:a,scrollableNodeProps:G(G({},h),{ref:a}),contentNodeRef:l,contentNodeProps:{className:c.contentEl,ref:l}}):p.reactExports.createElement("div",G({},h),p.reactExports.createElement("div",{className:c.contentEl},n)))),p.reactExports.createElement("div",{className:c.placeholder})),p.reactExports.createElement("div",{className:"".concat(c.track," simplebar-horizontal")},p.reactExports.createElement("div",{className:c.scrollbar})),p.reactExports.createElement("div",{className:"".concat(c.track," simplebar-vertical")},p.reactExports.createElement("div",{className:c.scrollbar})))});Ci.displayName="SimpleBar";const Ri=p.reactExports.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"}),Ke=p.reactExports.createContext({}),Qn=p.reactExports.createContext(null),Ye=typeof document<"u",jl=Ye?p.reactExports.useLayoutEffect:p.reactExports.useEffect,Oi=p.reactExports.createContext({strict:!1}),tr=t=>t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),Ll="framerAppearId",Vi="data-"+tr(Ll);function kl(t,e,n,r){const{visualElement:s}=p.reactExports.useContext(Ke),o=p.reactExports.useContext(Oi),i=p.reactExports.useContext(Qn),a=p.reactExports.useContext(Ri).reducedMotion,l=p.reactExports.useRef();r=r||o.renderer,!l.current&&r&&(l.current=r(t,{visualState:e,parent:s,props:n,presenceContext:i,blockInitialAnimation:i?i.initial===!1:!1,reducedMotionConfig:a}));const u=l.current;p.reactExports.useInsertionEffect(()=>{u&&u.update(n,i)});const f=p.reactExports.useRef(!!(n[Vi]&&!window.HandoffComplete));return jl(()=>{u&&(u.render(),f.current&&u.animationState&&u.animationState.animateChanges())}),p.reactExports.useEffect(()=>{u&&(u.updateFeatures(),!f.current&&u.animationState&&u.animationState.animateChanges(),f.current&&(f.current=!1,window.HandoffComplete=!0))}),u}function Ut(t){return t&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function Dl(t,e,n){return p.reactExports.useCallback(r=>{r&&t.mount&&t.mount(r),e&&(r?e.mount(r):e.unmount()),n&&(typeof n=="function"?n(r):Ut(n)&&(n.current=r))},[e])}function le(t){return typeof t=="string"||Array.isArray(t)}function Je(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}const er=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],nr=["initial",...er];function Ze(t){return Je(t.animate)||nr.some(e=>le(t[e]))}function Mi(t){return!!(Ze(t)||t.variants)}function _l(t,e){if(Ze(t)){const{initial:n,animate:r}=t;return{initial:n===!1||le(n)?n:void 0,animate:le(r)?r:void 0}}return t.inherit!==!1?e:{}}function Nl(t){const{initial:e,animate:n}=_l(t,p.reactExports.useContext(Ke));return p.reactExports.useMemo(()=>({initial:e,animate:n}),[Ir(e),Ir(n)])}function Ir(t){return Array.isArray(t)?t.join(" "):t}const Wr={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},ce={};for(const t in Wr)ce[t]={isEnabled:e=>Wr[t].some(n=>!!e[n])};function Bl(t){for(const e in t)ce[e]={...ce[e],...t[e]}}const ji=p.reactExports.createContext({}),Li=p.reactExports.createContext({}),Fl=Symbol.for("motionComponentSymbol");function Il({preloadedFeatures:t,createVisualElement:e,useRender:n,useVisualState:r,Component:s}){t&&Bl(t);function o(a,l){let u;const f={...p.reactExports.useContext(Ri),...a,layoutId:Wl(a)},{isStatic:c}=f,h=Nl(a),d=r(a,c);if(!c&&Ye){h.visualElement=kl(s,d,f,e);const m=p.reactExports.useContext(Li),g=p.reactExports.useContext(Oi).strict;h.visualElement&&(u=h.visualElement.loadFeatures(f,g,t,m))}return p.reactExports.createElement(Ke.Provider,{value:h},u&&h.visualElement?p.reactExports.createElement(u,{visualElement:h.visualElement,...f}):null,n(s,a,Dl(d,h.visualElement,l),d,c,h.visualElement))}const i=p.reactExports.forwardRef(o);return i[Fl]=s,i}function Wl({layoutId:t}){const e=p.reactExports.useContext(ji).id;return e&&t!==void 0?e+"-"+t:t}function Ul(t){function e(r,s={}){return Il(t(r,s))}if(typeof Proxy>"u")return e;const n=new Map;return new Proxy(e,{get:(r,s)=>(n.has(s)||n.set(s,e(s)),n.get(s))})}const zl=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function rr(t){return typeof t!="string"||t.includes("-")?!1:!!(zl.indexOf(t)>-1||/[A-Z]/.test(t))}const De={};function Hl(t){Object.assign(De,t)}const he=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],jt=new Set(he);function ki(t,{layout:e,layoutId:n}){return jt.has(t)||t.startsWith("origin")||(e||n!==void 0)&&(!!De[t]||t==="opacity")}const $=t=>!!(t&&t.getVelocity),$l={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},ql=he.length;function Gl(t,{enableHardwareAcceleration:e=!0,allowTransformNone:n=!0},r,s){let o="";for(let i=0;i<ql;i++){const a=he[i];if(t[a]!==void 0){const l=$l[a]||a;o+=`${l}(${t[a]}) `}}return e&&!t.z&&(o+="translateZ(0)"),o=o.trim(),s?o=s(t,r?"":o):n&&r&&(o="none"),o}const Di=t=>e=>typeof e=="string"&&e.startsWith(t),_i=Di("--"),Ln=Di("var(--"),Xl=/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,Kl=(t,e)=>e&&typeof t=="number"?e.transform(t):t,Et=(t,e,n)=>Math.min(Math.max(n,t),e),Lt={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},re={...Lt,transform:t=>Et(0,1,t)},be={...Lt,default:1},se=t=>Math.round(t*1e5)/1e5,Qe=/(-)?([\d]*\.?[\d])+/g,Ni=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,Yl=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function de(t){return typeof t=="string"}const pe=t=>({test:e=>de(e)&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),yt=pe("deg"),st=pe("%"),C=pe("px"),Jl=pe("vh"),Zl=pe("vw"),Ur={...st,parse:t=>st.parse(t)/100,transform:t=>st.transform(t*100)},zr={...Lt,transform:Math.round},Bi={borderWidth:C,borderTopWidth:C,borderRightWidth:C,borderBottomWidth:C,borderLeftWidth:C,borderRadius:C,radius:C,borderTopLeftRadius:C,borderTopRightRadius:C,borderBottomRightRadius:C,borderBottomLeftRadius:C,width:C,maxWidth:C,height:C,maxHeight:C,size:C,top:C,right:C,bottom:C,left:C,padding:C,paddingTop:C,paddingRight:C,paddingBottom:C,paddingLeft:C,margin:C,marginTop:C,marginRight:C,marginBottom:C,marginLeft:C,rotate:yt,rotateX:yt,rotateY:yt,rotateZ:yt,scale:be,scaleX:be,scaleY:be,scaleZ:be,skew:yt,skewX:yt,skewY:yt,distance:C,translateX:C,translateY:C,translateZ:C,x:C,y:C,z:C,perspective:C,transformPerspective:C,opacity:re,originX:Ur,originY:Ur,originZ:C,zIndex:zr,fillOpacity:re,strokeOpacity:re,numOctaves:zr};function sr(t,e,n,r){const{style:s,vars:o,transform:i,transformOrigin:a}=t;let l=!1,u=!1,f=!0;for(const c in e){const h=e[c];if(_i(c)){o[c]=h;continue}const d=Bi[c],m=Kl(h,d);if(jt.has(c)){if(l=!0,i[c]=m,!f)continue;h!==(d.default||0)&&(f=!1)}else c.startsWith("origin")?(u=!0,a[c]=m):s[c]=m}if(e.transform||(l||r?s.transform=Gl(t.transform,n,f,r):s.transform&&(s.transform="none")),u){const{originX:c="50%",originY:h="50%",originZ:d=0}=a;s.transformOrigin=`${c} ${h} ${d}`}}const ir=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Fi(t,e,n){for(const r in e)!$(e[r])&&!ki(r,n)&&(t[r]=e[r])}function Ql({transformTemplate:t},e,n){return p.reactExports.useMemo(()=>{const r=ir();return sr(r,e,{enableHardwareAcceleration:!n},t),Object.assign({},r.vars,r.style)},[e])}function tc(t,e,n){const r=t.style||{},s={};return Fi(s,r,t),Object.assign(s,Ql(t,e,n)),t.transformValues?t.transformValues(s):s}function ec(t,e,n){const r={},s=tc(t,e,n);return t.drag&&t.dragListener!==!1&&(r.draggable=!1,s.userSelect=s.WebkitUserSelect=s.WebkitTouchCallout="none",s.touchAction=t.drag===!0?"none":`pan-${t.drag==="x"?"y":"x"}`),t.tabIndex===void 0&&(t.onTap||t.onTapStart||t.whileTap)&&(r.tabIndex=0),r.style=s,r}const nc=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function _e(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||nc.has(t)}let Ii=t=>!_e(t);function rc(t){t&&(Ii=e=>e.startsWith("on")?!_e(e):t(e))}try{rc(require("@emotion/is-prop-valid").default)}catch{}function sc(t,e,n){const r={};for(const s in t)s==="values"&&typeof t.values=="object"||(Ii(s)||n===!0&&_e(s)||!e&&!_e(s)||t.draggable&&s.startsWith("onDrag"))&&(r[s]=t[s]);return r}function Hr(t,e,n){return typeof t=="string"?t:C.transform(e+n*t)}function ic(t,e,n){const r=Hr(e,t.x,t.width),s=Hr(n,t.y,t.height);return`${r} ${s}`}const oc={offset:"stroke-dashoffset",array:"stroke-dasharray"},ac={offset:"strokeDashoffset",array:"strokeDasharray"};function lc(t,e,n=1,r=0,s=!0){t.pathLength=1;const o=s?oc:ac;t[o.offset]=C.transform(-r);const i=C.transform(e),a=C.transform(n);t[o.array]=`${i} ${a}`}function or(t,{attrX:e,attrY:n,attrScale:r,originX:s,originY:o,pathLength:i,pathSpacing:a=1,pathOffset:l=0,...u},f,c,h){if(sr(t,u,f,h),c){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};const{attrs:d,style:m,dimensions:g}=t;d.transform&&(g&&(m.transform=d.transform),delete d.transform),g&&(s!==void 0||o!==void 0||m.transform)&&(m.transformOrigin=ic(g,s!==void 0?s:.5,o!==void 0?o:.5)),e!==void 0&&(d.x=e),n!==void 0&&(d.y=n),r!==void 0&&(d.scale=r),i!==void 0&&lc(d,i,a,l,!1)}const Wi=()=>({...ir(),attrs:{}}),ar=t=>typeof t=="string"&&t.toLowerCase()==="svg";function cc(t,e,n,r){const s=p.reactExports.useMemo(()=>{const o=Wi();return or(o,e,{enableHardwareAcceleration:!1},ar(r),t.transformTemplate),{...o.attrs,style:{...o.style}}},[e]);if(t.style){const o={};Fi(o,t.style,t),s.style={...o,...s.style}}return s}function uc(t=!1){return(n,r,s,{latestValues:o},i)=>{const l=(rr(n)?cc:ec)(r,o,i,n),f={...sc(r,typeof n=="string",t),...l,ref:s},{children:c}=r,h=p.reactExports.useMemo(()=>$(c)?c.get():c,[c]);return p.reactExports.createElement(n,{...f,children:h})}}function Ui(t,{style:e,vars:n},r,s){Object.assign(t.style,e,s&&s.getProjectionStyles(r));for(const o in n)t.style.setProperty(o,n[o])}const zi=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function Hi(t,e,n,r){Ui(t,e,void 0,r);for(const s in e.attrs)t.setAttribute(zi.has(s)?s:tr(s),e.attrs[s])}function lr(t,e){const{style:n}=t,r={};for(const s in n)($(n[s])||e.style&&$(e.style[s])||ki(s,t))&&(r[s]=n[s]);return r}function $i(t,e){const n=lr(t,e);for(const r in t)if($(t[r])||$(e[r])){const s=he.indexOf(r)!==-1?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;n[s]=t[r]}return n}function cr(t,e,n,r={},s={}){return typeof e=="function"&&(e=e(n!==void 0?n:t.custom,r,s)),typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"&&(e=e(n!==void 0?n:t.custom,r,s)),e}function fc(t){const e=p.reactExports.useRef(null);return e.current===null&&(e.current=t()),e.current}const Ne=t=>Array.isArray(t),hc=t=>!!(t&&typeof t=="object"&&t.mix&&t.toValue),dc=t=>Ne(t)?t[t.length-1]||0:t;function Ae(t){const e=$(t)?t.get():t;return hc(e)?e.toValue():e}function pc({scrapeMotionValuesFromProps:t,createRenderState:e,onMount:n},r,s,o){const i={latestValues:mc(r,s,o,t),renderState:e()};return n&&(i.mount=a=>n(r,a,i)),i}const qi=t=>(e,n)=>{const r=p.reactExports.useContext(Ke),s=p.reactExports.useContext(Qn),o=()=>pc(t,e,r,s);return n?o():fc(o)};function mc(t,e,n,r){const s={},o=r(t,{});for(const h in o)s[h]=Ae(o[h]);let{initial:i,animate:a}=t;const l=Ze(t),u=Mi(t);e&&u&&!l&&t.inherit!==!1&&(i===void 0&&(i=e.initial),a===void 0&&(a=e.animate));let f=n?n.initial===!1:!1;f=f||i===!1;const c=f?a:i;return c&&typeof c!="boolean"&&!Je(c)&&(Array.isArray(c)?c:[c]).forEach(d=>{const m=cr(t,d);if(!m)return;const{transitionEnd:g,transition:y,...b}=m;for(const w in b){let v=b[w];if(Array.isArray(v)){const E=f?v.length-1:0;v=v[E]}v!==null&&(s[w]=v)}for(const w in g)s[w]=g[w]}),s}const L=t=>t;class $r{constructor(){this.order=[],this.scheduled=new Set}add(e){if(!this.scheduled.has(e))return this.scheduled.add(e),this.order.push(e),!0}remove(e){const n=this.order.indexOf(e);n!==-1&&(this.order.splice(n,1),this.scheduled.delete(e))}clear(){this.order.length=0,this.scheduled.clear()}}function gc(t){let e=new $r,n=new $r,r=0,s=!1,o=!1;const i=new WeakSet,a={schedule:(l,u=!1,f=!1)=>{const c=f&&s,h=c?e:n;return u&&i.add(l),h.add(l)&&c&&s&&(r=e.order.length),l},cancel:l=>{n.remove(l),i.delete(l)},process:l=>{if(s){o=!0;return}if(s=!0,[e,n]=[n,e],n.clear(),r=e.order.length,r)for(let u=0;u<r;u++){const f=e.order[u];f(l),i.has(f)&&(a.schedule(f),t())}s=!1,o&&(o=!1,a.process(l))}};return a}const we=["prepare","read","update","preRender","render","postRender"],yc=40;function vc(t,e){let n=!1,r=!0;const s={delta:0,timestamp:0,isProcessing:!1},o=we.reduce((c,h)=>(c[h]=gc(()=>n=!0),c),{}),i=c=>o[c].process(s),a=()=>{const c=performance.now();n=!1,s.delta=r?1e3/60:Math.max(Math.min(c-s.timestamp,yc),1),s.timestamp=c,s.isProcessing=!0,we.forEach(i),s.isProcessing=!1,n&&e&&(r=!1,t(a))},l=()=>{n=!0,r=!0,s.isProcessing||t(a)};return{schedule:we.reduce((c,h)=>{const d=o[h];return c[h]=(m,g=!1,y=!1)=>(n||l(),d.schedule(m,g,y)),c},{}),cancel:c=>we.forEach(h=>o[h].cancel(c)),state:s,steps:o}}const{schedule:M,cancel:ft,state:U,steps:dn}=vc(typeof requestAnimationFrame<"u"?requestAnimationFrame:L,!0),xc={useVisualState:qi({scrapeMotionValuesFromProps:$i,createRenderState:Wi,onMount:(t,e,{renderState:n,latestValues:r})=>{M.read(()=>{try{n.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),M.render(()=>{or(n,r,{enableHardwareAcceleration:!1},ar(e.tagName),t.transformTemplate),Hi(e,n)})}})},bc={useVisualState:qi({scrapeMotionValuesFromProps:lr,createRenderState:ir})};function wc(t,{forwardMotionProps:e=!1},n,r){return{...rr(t)?xc:bc,preloadedFeatures:n,useRender:uc(e),createVisualElement:r,Component:t}}function at(t,e,n,r={passive:!0}){return t.addEventListener(e,n,r),()=>t.removeEventListener(e,n)}const Gi=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1;function tn(t,e="page"){return{point:{x:t[e+"X"],y:t[e+"Y"]}}}const Ec=t=>e=>Gi(e)&&t(e,tn(e));function lt(t,e,n,r){return at(t,e,Ec(n),r)}const Sc=(t,e)=>n=>e(t(n)),bt=(...t)=>t.reduce(Sc);function Xi(t){let e=null;return()=>{const n=()=>{e=null};return e===null?(e=t,n):!1}}const qr=Xi("dragHorizontal"),Gr=Xi("dragVertical");function Ki(t){let e=!1;if(t==="y")e=Gr();else if(t==="x")e=qr();else{const n=qr(),r=Gr();n&&r?e=()=>{n(),r()}:(n&&n(),r&&r())}return e}function Yi(){const t=Ki(!0);return t?(t(),!1):!0}class Tt{constructor(e){this.isMounted=!1,this.node=e}update(){}}function Xr(t,e){const n="pointer"+(e?"enter":"leave"),r="onHover"+(e?"Start":"End"),s=(o,i)=>{if(o.pointerType==="touch"||Yi())return;const a=t.getProps();t.animationState&&a.whileHover&&t.animationState.setActive("whileHover",e),a[r]&&M.update(()=>a[r](o,i))};return lt(t.current,n,s,{passive:!t.getProps()[r]})}class Tc extends Tt{mount(){this.unmount=bt(Xr(this.node,!0),Xr(this.node,!1))}unmount(){}}class Pc extends Tt{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch{e=!0}!e||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=bt(at(this.node.current,"focus",()=>this.onFocus()),at(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const Ji=(t,e)=>e?t===e?!0:Ji(t,e.parentElement):!1;function pn(t,e){if(!e)return;const n=new PointerEvent("pointer"+t);e(n,tn(n))}class Ac extends Tt{constructor(){super(...arguments),this.removeStartListeners=L,this.removeEndListeners=L,this.removeAccessibleListeners=L,this.startPointerPress=(e,n)=>{if(this.isPressing)return;this.removeEndListeners();const r=this.node.getProps(),o=lt(window,"pointerup",(a,l)=>{if(!this.checkPressEnd())return;const{onTap:u,onTapCancel:f,globalTapTarget:c}=this.node.getProps();M.update(()=>{!c&&!Ji(this.node.current,a.target)?f&&f(a,l):u&&u(a,l)})},{passive:!(r.onTap||r.onPointerUp)}),i=lt(window,"pointercancel",(a,l)=>this.cancelPress(a,l),{passive:!(r.onTapCancel||r.onPointerCancel)});this.removeEndListeners=bt(o,i),this.startPress(e,n)},this.startAccessiblePress=()=>{const e=o=>{if(o.key!=="Enter"||this.isPressing)return;const i=a=>{a.key!=="Enter"||!this.checkPressEnd()||pn("up",(l,u)=>{const{onTap:f}=this.node.getProps();f&&M.update(()=>f(l,u))})};this.removeEndListeners(),this.removeEndListeners=at(this.node.current,"keyup",i),pn("down",(a,l)=>{this.startPress(a,l)})},n=at(this.node.current,"keydown",e),r=()=>{this.isPressing&&pn("cancel",(o,i)=>this.cancelPress(o,i))},s=at(this.node.current,"blur",r);this.removeAccessibleListeners=bt(n,s)}}startPress(e,n){this.isPressing=!0;const{onTapStart:r,whileTap:s}=this.node.getProps();s&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),r&&M.update(()=>r(e,n))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!Yi()}cancelPress(e,n){if(!this.checkPressEnd())return;const{onTapCancel:r}=this.node.getProps();r&&M.update(()=>r(e,n))}mount(){const e=this.node.getProps(),n=lt(e.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(e.onTapStart||e.onPointerStart)}),r=at(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=bt(n,r)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const kn=new WeakMap,mn=new WeakMap,Cc=t=>{const e=kn.get(t.target);e&&e(t)},Rc=t=>{t.forEach(Cc)};function Oc({root:t,...e}){const n=t||document;mn.has(n)||mn.set(n,{});const r=mn.get(n),s=JSON.stringify(e);return r[s]||(r[s]=new IntersectionObserver(Rc,{root:t,...e})),r[s]}function Vc(t,e,n){const r=Oc(e);return kn.set(t,n),r.observe(t),()=>{kn.delete(t),r.unobserve(t)}}const Mc={some:0,all:1};class jc extends Tt{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:n,margin:r,amount:s="some",once:o}=e,i={root:n?n.current:void 0,rootMargin:r,threshold:typeof s=="number"?s:Mc[s]},a=l=>{const{isIntersecting:u}=l;if(this.isInView===u||(this.isInView=u,o&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:f,onViewportLeave:c}=this.node.getProps(),h=u?f:c;h&&h(l)};return Vc(this.node.current,i,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:e,prevProps:n}=this.node;["amount","margin","root"].some(Lc(e,n))&&this.startObserver()}unmount(){}}function Lc({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}const kc={inView:{Feature:jc},tap:{Feature:Ac},focus:{Feature:Pc},hover:{Feature:Tc}};function Zi(t,e){if(!Array.isArray(e))return!1;const n=e.length;if(n!==t.length)return!1;for(let r=0;r<n;r++)if(e[r]!==t[r])return!1;return!0}function Dc(t){const e={};return t.values.forEach((n,r)=>e[r]=n.get()),e}function _c(t){const e={};return t.values.forEach((n,r)=>e[r]=n.getVelocity()),e}function en(t,e,n){const r=t.getProps();return cr(r,e,n!==void 0?n:r.custom,Dc(t),_c(t))}let Nc=L,ur=L;const wt=t=>t*1e3,ct=t=>t/1e3,Bc={current:!1},Qi=t=>Array.isArray(t)&&typeof t[0]=="number";function to(t){return!!(!t||typeof t=="string"&&eo[t]||Qi(t)||Array.isArray(t)&&t.every(to))}const ne=([t,e,n,r])=>`cubic-bezier(${t}, ${e}, ${n}, ${r})`,eo={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:ne([0,.65,.55,1]),circOut:ne([.55,0,1,.45]),backIn:ne([.31,.01,.66,-.59]),backOut:ne([.33,1.53,.69,.99])};function no(t){if(t)return Qi(t)?ne(t):Array.isArray(t)?t.map(no):eo[t]}function Fc(t,e,n,{delay:r=0,duration:s,repeat:o=0,repeatType:i="loop",ease:a,times:l}={}){const u={[e]:n};l&&(u.offset=l);const f=no(a);return Array.isArray(f)&&(u.easing=f),t.animate(u,{delay:r,duration:s,easing:Array.isArray(f)?"linear":f,fill:"both",iterations:o+1,direction:i==="reverse"?"alternate":"normal"})}function Ic(t,{repeat:e,repeatType:n="loop"}){const r=e&&n!=="loop"&&e%2===1?0:t.length-1;return t[r]}const ro=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,Wc=1e-7,Uc=12;function zc(t,e,n,r,s){let o,i,a=0;do i=e+(n-e)/2,o=ro(i,r,s)-t,o>0?n=i:e=i;while(Math.abs(o)>Wc&&++a<Uc);return i}function me(t,e,n,r){if(t===e&&n===r)return L;const s=o=>zc(o,0,1,t,n);return o=>o===0||o===1?o:ro(s(o),e,r)}const Hc=me(.42,0,1,1),$c=me(0,0,.58,1),so=me(.42,0,.58,1),qc=t=>Array.isArray(t)&&typeof t[0]!="number",io=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,oo=t=>e=>1-t(1-e),fr=t=>1-Math.sin(Math.acos(t)),ao=oo(fr),Gc=io(fr),lo=me(.33,1.53,.69,.99),hr=oo(lo),Xc=io(hr),Kc=t=>(t*=2)<1?.5*hr(t):.5*(2-Math.pow(2,-10*(t-1))),Yc={linear:L,easeIn:Hc,easeInOut:so,easeOut:$c,circIn:fr,circInOut:Gc,circOut:ao,backIn:hr,backInOut:Xc,backOut:lo,anticipate:Kc},Kr=t=>{if(Array.isArray(t)){ur(t.length===4);const[e,n,r,s]=t;return me(e,n,r,s)}else if(typeof t=="string")return Yc[t];return t},dr=(t,e)=>n=>!!(de(n)&&Yl.test(n)&&n.startsWith(t)||e&&Object.prototype.hasOwnProperty.call(n,e)),co=(t,e,n)=>r=>{if(!de(r))return r;const[s,o,i,a]=r.match(Qe);return{[t]:parseFloat(s),[e]:parseFloat(o),[n]:parseFloat(i),alpha:a!==void 0?parseFloat(a):1}},Jc=t=>Et(0,255,t),gn={...Lt,transform:t=>Math.round(Jc(t))},Mt={test:dr("rgb","red"),parse:co("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:r=1})=>"rgba("+gn.transform(t)+", "+gn.transform(e)+", "+gn.transform(n)+", "+se(re.transform(r))+")"};function Zc(t){let e="",n="",r="",s="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),r=t.substring(5,7),s=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),r=t.substring(3,4),s=t.substring(4,5),e+=e,n+=n,r+=r,s+=s),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:s?parseInt(s,16)/255:1}}const Dn={test:dr("#"),parse:Zc,transform:Mt.transform},zt={test:dr("hsl","hue"),parse:co("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:r=1})=>"hsla("+Math.round(t)+", "+st.transform(se(e))+", "+st.transform(se(n))+", "+se(re.transform(r))+")"},z={test:t=>Mt.test(t)||Dn.test(t)||zt.test(t),parse:t=>Mt.test(t)?Mt.parse(t):zt.test(t)?zt.parse(t):Dn.parse(t),transform:t=>de(t)?t:t.hasOwnProperty("red")?Mt.transform(t):zt.transform(t)},j=(t,e,n)=>-n*t+n*e+t;function yn(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(e-t)*6*n:n<1/2?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function Qc({hue:t,saturation:e,lightness:n,alpha:r}){t/=360,e/=100,n/=100;let s=0,o=0,i=0;if(!e)s=o=i=n;else{const a=n<.5?n*(1+e):n+e-n*e,l=2*n-a;s=yn(l,a,t+1/3),o=yn(l,a,t),i=yn(l,a,t-1/3)}return{red:Math.round(s*255),green:Math.round(o*255),blue:Math.round(i*255),alpha:r}}const vn=(t,e,n)=>{const r=t*t;return Math.sqrt(Math.max(0,n*(e*e-r)+r))},tu=[Dn,Mt,zt],eu=t=>tu.find(e=>e.test(t));function Yr(t){const e=eu(t);let n=e.parse(t);return e===zt&&(n=Qc(n)),n}const uo=(t,e)=>{const n=Yr(t),r=Yr(e),s={...n};return o=>(s.red=vn(n.red,r.red,o),s.green=vn(n.green,r.green,o),s.blue=vn(n.blue,r.blue,o),s.alpha=j(n.alpha,r.alpha,o),Mt.transform(s))};function nu(t){var e,n;return isNaN(t)&&de(t)&&(((e=t.match(Qe))===null||e===void 0?void 0:e.length)||0)+(((n=t.match(Ni))===null||n===void 0?void 0:n.length)||0)>0}const fo={regex:Xl,countKey:"Vars",token:"${v}",parse:L},ho={regex:Ni,countKey:"Colors",token:"${c}",parse:z.parse},po={regex:Qe,countKey:"Numbers",token:"${n}",parse:Lt.parse};function xn(t,{regex:e,countKey:n,token:r,parse:s}){const o=t.tokenised.match(e);o&&(t["num"+n]=o.length,t.tokenised=t.tokenised.replace(e,r),t.values.push(...o.map(s)))}function Be(t){const e=t.toString(),n={value:e,tokenised:e,values:[],numVars:0,numColors:0,numNumbers:0};return n.value.includes("var(--")&&xn(n,fo),xn(n,ho),xn(n,po),n}function mo(t){return Be(t).values}function go(t){const{values:e,numColors:n,numVars:r,tokenised:s}=Be(t),o=e.length;return i=>{let a=s;for(let l=0;l<o;l++)l<r?a=a.replace(fo.token,i[l]):l<r+n?a=a.replace(ho.token,z.transform(i[l])):a=a.replace(po.token,se(i[l]));return a}}const ru=t=>typeof t=="number"?0:t;function su(t){const e=mo(t);return go(t)(e.map(ru))}const St={test:nu,parse:mo,createTransformer:go,getAnimatableNone:su},yo=(t,e)=>n=>`${n>0?e:t}`;function vo(t,e){return typeof t=="number"?n=>j(t,e,n):z.test(t)?uo(t,e):t.startsWith("var(")?yo(t,e):bo(t,e)}const xo=(t,e)=>{const n=[...t],r=n.length,s=t.map((o,i)=>vo(o,e[i]));return o=>{for(let i=0;i<r;i++)n[i]=s[i](o);return n}},iu=(t,e)=>{const n={...t,...e},r={};for(const s in n)t[s]!==void 0&&e[s]!==void 0&&(r[s]=vo(t[s],e[s]));return s=>{for(const o in r)n[o]=r[o](s);return n}},bo=(t,e)=>{const n=St.createTransformer(e),r=Be(t),s=Be(e);return r.numVars===s.numVars&&r.numColors===s.numColors&&r.numNumbers>=s.numNumbers?bt(xo(r.values,s.values),n):yo(t,e)},ue=(t,e,n)=>{const r=e-t;return r===0?1:(n-t)/r},Jr=(t,e)=>n=>j(t,e,n);function ou(t){return typeof t=="number"?Jr:typeof t=="string"?z.test(t)?uo:bo:Array.isArray(t)?xo:typeof t=="object"?iu:Jr}function au(t,e,n){const r=[],s=n||ou(t[0]),o=t.length-1;for(let i=0;i<o;i++){let a=s(t[i],t[i+1]);if(e){const l=Array.isArray(e)?e[i]||L:e;a=bt(l,a)}r.push(a)}return r}function wo(t,e,{clamp:n=!0,ease:r,mixer:s}={}){const o=t.length;if(ur(o===e.length),o===1)return()=>e[0];t[0]>t[o-1]&&(t=[...t].reverse(),e=[...e].reverse());const i=au(e,r,s),a=i.length,l=u=>{let f=0;if(a>1)for(;f<t.length-2&&!(u<t[f+1]);f++);const c=ue(t[f],t[f+1],u);return i[f](c)};return n?u=>l(Et(t[0],t[o-1],u)):l}function lu(t,e){const n=t[t.length-1];for(let r=1;r<=e;r++){const s=ue(0,e,r);t.push(j(n,1,s))}}function cu(t){const e=[0];return lu(e,t.length-1),e}function uu(t,e){return t.map(n=>n*e)}function fu(t,e){return t.map(()=>e||so).splice(0,t.length-1)}function Fe({duration:t=300,keyframes:e,times:n,ease:r="easeInOut"}){const s=qc(r)?r.map(Kr):Kr(r),o={done:!1,value:e[0]},i=uu(n&&n.length===e.length?n:cu(e),t),a=wo(i,e,{ease:Array.isArray(s)?s:fu(e,s)});return{calculatedDuration:t,next:l=>(o.value=a(l),o.done=l>=t,o)}}function Eo(t,e){return e?t*(1e3/e):0}const hu=5;function So(t,e,n){const r=Math.max(e-hu,0);return Eo(n-t(r),e-r)}const bn=.001,du=.01,Zr=10,pu=.05,mu=1;function gu({duration:t=800,bounce:e=.25,velocity:n=0,mass:r=1}){let s,o;Nc(t<=wt(Zr));let i=1-e;i=Et(pu,mu,i),t=Et(du,Zr,ct(t)),i<1?(s=u=>{const f=u*i,c=f*t,h=f-n,d=_n(u,i),m=Math.exp(-c);return bn-h/d*m},o=u=>{const c=u*i*t,h=c*n+n,d=Math.pow(i,2)*Math.pow(u,2)*t,m=Math.exp(-c),g=_n(Math.pow(u,2),i);return(-s(u)+bn>0?-1:1)*((h-d)*m)/g}):(s=u=>{const f=Math.exp(-u*t),c=(u-n)*t+1;return-bn+f*c},o=u=>{const f=Math.exp(-u*t),c=(n-u)*(t*t);return f*c});const a=5/t,l=vu(s,o,a);if(t=wt(t),isNaN(l))return{stiffness:100,damping:10,duration:t};{const u=Math.pow(l,2)*r;return{stiffness:u,damping:i*2*Math.sqrt(r*u),duration:t}}}const yu=12;function vu(t,e,n){let r=n;for(let s=1;s<yu;s++)r=r-t(r)/e(r);return r}function _n(t,e){return t*Math.sqrt(1-e*e)}const xu=["duration","bounce"],bu=["stiffness","damping","mass"];function Qr(t,e){return e.some(n=>t[n]!==void 0)}function wu(t){let e={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...t};if(!Qr(t,bu)&&Qr(t,xu)){const n=gu(t);e={...e,...n,mass:1},e.isResolvedFromDuration=!0}return e}function To({keyframes:t,restDelta:e,restSpeed:n,...r}){const s=t[0],o=t[t.length-1],i={done:!1,value:s},{stiffness:a,damping:l,mass:u,duration:f,velocity:c,isResolvedFromDuration:h}=wu({...r,velocity:-ct(r.velocity||0)}),d=c||0,m=l/(2*Math.sqrt(a*u)),g=o-s,y=ct(Math.sqrt(a/u)),b=Math.abs(g)<5;n||(n=b?.01:2),e||(e=b?.005:.5);let w;if(m<1){const v=_n(y,m);w=E=>{const S=Math.exp(-m*y*E);return o-S*((d+m*y*g)/v*Math.sin(v*E)+g*Math.cos(v*E))}}else if(m===1)w=v=>o-Math.exp(-y*v)*(g+(d+y*g)*v);else{const v=y*Math.sqrt(m*m-1);w=E=>{const S=Math.exp(-m*y*E),T=Math.min(v*E,300);return o-S*((d+m*y*g)*Math.sinh(T)+v*g*Math.cosh(T))/v}}return{calculatedDuration:h&&f||null,next:v=>{const E=w(v);if(h)i.done=v>=f;else{let S=d;v!==0&&(m<1?S=So(w,v,E):S=0);const T=Math.abs(S)<=n,P=Math.abs(o-E)<=e;i.done=T&&P}return i.value=i.done?o:E,i}}}function ts({keyframes:t,velocity:e=0,power:n=.8,timeConstant:r=325,bounceDamping:s=10,bounceStiffness:o=500,modifyTarget:i,min:a,max:l,restDelta:u=.5,restSpeed:f}){const c=t[0],h={done:!1,value:c},d=A=>a!==void 0&&A<a||l!==void 0&&A>l,m=A=>a===void 0?l:l===void 0||Math.abs(a-A)<Math.abs(l-A)?a:l;let g=n*e;const y=c+g,b=i===void 0?y:i(y);b!==y&&(g=b-c);const w=A=>-g*Math.exp(-A/r),v=A=>b+w(A),E=A=>{const R=w(A),B=v(A);h.done=Math.abs(R)<=u,h.value=h.done?b:B};let S,T;const P=A=>{d(h.value)&&(S=A,T=To({keyframes:[h.value,m(h.value)],velocity:So(v,A,h.value),damping:s,stiffness:o,restDelta:u,restSpeed:f}))};return P(0),{calculatedDuration:null,next:A=>{let R=!1;return!T&&S===void 0&&(R=!0,E(A),P(A)),S!==void 0&&A>S?T.next(A-S):(!R&&E(A),h)}}}const Eu=t=>{const e=({timestamp:n})=>t(n);return{start:()=>M.update(e,!0),stop:()=>ft(e),now:()=>U.isProcessing?U.timestamp:performance.now()}},es=2e4;function ns(t){let e=0;const n=50;let r=t.next(e);for(;!r.done&&e<es;)e+=n,r=t.next(e);return e>=es?1/0:e}const Su={decay:ts,inertia:ts,tween:Fe,keyframes:Fe,spring:To};function Ie({autoplay:t=!0,delay:e=0,driver:n=Eu,keyframes:r,type:s="keyframes",repeat:o=0,repeatDelay:i=0,repeatType:a="loop",onPlay:l,onStop:u,onComplete:f,onUpdate:c,...h}){let d=1,m=!1,g,y;const b=()=>{y=new Promise(V=>{g=V})};b();let w;const v=Su[s]||Fe;let E;v!==Fe&&typeof r[0]!="number"&&(E=wo([0,100],r,{clamp:!1}),r=[0,100]);const S=v({...h,keyframes:r});let T;a==="mirror"&&(T=v({...h,keyframes:[...r].reverse(),velocity:-(h.velocity||0)}));let P="idle",A=null,R=null,B=null;S.calculatedDuration===null&&o&&(S.calculatedDuration=ns(S));const{calculatedDuration:q}=S;let _=1/0,W=1/0;q!==null&&(_=q+i,W=_*(o+1)-i);let F=0;const tt=V=>{if(R===null)return;d>0&&(R=Math.min(R,V)),d<0&&(R=Math.min(V-W/d,R)),A!==null?F=A:F=Math.round(V-R)*d;const Dt=F-e*(d>=0?1:-1),_t=d>=0?Dt<0:Dt>W;F=Math.max(Dt,0),P==="finished"&&A===null&&(F=W);let ln=F,Pt=S;if(o){const Jt=Math.min(F,W)/_;let At=Math.floor(Jt),Z=Jt%1;!Z&&Jt>=1&&(Z=1),Z===1&&At--,At=Math.min(At,o+1),!!(At%2)&&(a==="reverse"?(Z=1-Z,i&&(Z-=i/_)):a==="mirror"&&(Pt=T)),ln=Et(0,1,Z)*_}const ot=_t?{done:!1,value:r[0]}:Pt.next(ln);E&&(ot.value=E(ot.value));let{done:Nt}=ot;!_t&&q!==null&&(Nt=d>=0?F>=W:F<=0);const Bt=A===null&&(P==="finished"||P==="running"&&Nt);return c&&c(ot.value),Bt&&I(),ot},N=()=>{w&&w.stop(),w=void 0},et=()=>{P="idle",N(),g(),b(),R=B=null},I=()=>{P="finished",f&&f(),N(),g()},ht=()=>{if(m)return;w||(w=n(tt));const V=w.now();l&&l(),A!==null?R=V-A:(!R||P==="finished")&&(R=V),P==="finished"&&b(),B=R,A=null,P="running",w.start()};t&&ht();const kt={then(V,Dt){return y.then(V,Dt)},get time(){return ct(F)},set time(V){V=wt(V),F=V,A!==null||!w||d===0?A=V:R=w.now()-V/d},get duration(){const V=S.calculatedDuration===null?ns(S):S.calculatedDuration;return ct(V)},get speed(){return d},set speed(V){V===d||!w||(d=V,kt.time=ct(F))},get state(){return P},play:ht,pause:()=>{P="paused",A=F},stop:()=>{m=!0,P!=="idle"&&(P="idle",u&&u(),et())},cancel:()=>{B!==null&&tt(B),et()},complete:()=>{P="finished"},sample:V=>(R=0,tt(V))};return kt}function Tu(t){let e;return()=>(e===void 0&&(e=t()),e)}const Pu=Tu(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Au=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),Ee=10,Cu=2e4,Ru=(t,e)=>e.type==="spring"||t==="backgroundColor"||!to(e.ease);function Ou(t,e,{onUpdate:n,onComplete:r,...s}){if(!(Pu()&&Au.has(e)&&!s.repeatDelay&&s.repeatType!=="mirror"&&s.damping!==0&&s.type!=="inertia"))return!1;let i=!1,a,l,u=!1;const f=()=>{l=new Promise(v=>{a=v})};f();let{keyframes:c,duration:h=300,ease:d,times:m}=s;if(Ru(e,s)){const v=Ie({...s,repeat:0,delay:0});let E={done:!1,value:c[0]};const S=[];let T=0;for(;!E.done&&T<Cu;)E=v.sample(T),S.push(E.value),T+=Ee;m=void 0,c=S,h=T-Ee,d="linear"}const g=Fc(t.owner.current,e,c,{...s,duration:h,ease:d,times:m}),y=()=>{u=!1,g.cancel()},b=()=>{u=!0,M.update(y),a(),f()};return g.onfinish=()=>{u||(t.set(Ic(c,s)),r&&r(),b())},{then(v,E){return l.then(v,E)},attachTimeline(v){return g.timeline=v,g.onfinish=null,L},get time(){return ct(g.currentTime||0)},set time(v){g.currentTime=wt(v)},get speed(){return g.playbackRate},set speed(v){g.playbackRate=v},get duration(){return ct(h)},play:()=>{i||(g.play(),ft(y))},pause:()=>g.pause(),stop:()=>{if(i=!0,g.playState==="idle")return;const{currentTime:v}=g;if(v){const E=Ie({...s,autoplay:!1});t.setWithVelocity(E.sample(v-Ee).value,E.sample(v).value,Ee)}b()},complete:()=>{u||g.finish()},cancel:b}}function Vu({keyframes:t,delay:e,onUpdate:n,onComplete:r}){const s=()=>(n&&n(t[t.length-1]),r&&r(),{time:0,speed:1,duration:0,play:L,pause:L,stop:L,then:o=>(o(),Promise.resolve()),cancel:L,complete:L});return e?Ie({keyframes:[0,1],duration:0,delay:e,onComplete:s}):s()}const Mu={type:"spring",stiffness:500,damping:25,restSpeed:10},ju=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),Lu={type:"keyframes",duration:.8},ku={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Du=(t,{keyframes:e})=>e.length>2?Lu:jt.has(t)?t.startsWith("scale")?ju(e[1]):Mu:ku,Nn=(t,e)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(St.test(e)||e==="0")&&!e.startsWith("url(")),_u=new Set(["brightness","contrast","saturate","opacity"]);function Nu(t){const[e,n]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[r]=n.match(Qe)||[];if(!r)return t;const s=n.replace(r,"");let o=_u.has(e)?1:0;return r!==n&&(o*=100),e+"("+o+s+")"}const Bu=/([a-z-]*)\(.*?\)/g,Bn={...St,getAnimatableNone:t=>{const e=t.match(Bu);return e?e.map(Nu).join(" "):t}},Fu={...Bi,color:z,backgroundColor:z,outlineColor:z,fill:z,stroke:z,borderColor:z,borderTopColor:z,borderRightColor:z,borderBottomColor:z,borderLeftColor:z,filter:Bn,WebkitFilter:Bn},pr=t=>Fu[t];function Po(t,e){let n=pr(t);return n!==Bn&&(n=St),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const Ao=t=>/^0[^.\s]+$/.test(t);function Iu(t){if(typeof t=="number")return t===0;if(t!==null)return t==="none"||t==="0"||Ao(t)}function Wu(t,e,n,r){const s=Nn(e,n);let o;Array.isArray(n)?o=[...n]:o=[null,n];const i=r.from!==void 0?r.from:t.get();let a;const l=[];for(let u=0;u<o.length;u++)o[u]===null&&(o[u]=u===0?i:o[u-1]),Iu(o[u])&&l.push(u),typeof o[u]=="string"&&o[u]!=="none"&&o[u]!=="0"&&(a=o[u]);if(s&&l.length&&a)for(let u=0;u<l.length;u++){const f=l[u];o[f]=Po(e,a)}return o}function Uu({when:t,delay:e,delayChildren:n,staggerChildren:r,staggerDirection:s,repeat:o,repeatType:i,repeatDelay:a,from:l,elapsed:u,...f}){return!!Object.keys(f).length}function mr(t,e){return t[e]||t.default||t}const zu={skipAnimations:!1},gr=(t,e,n,r={})=>s=>{const o=mr(r,t)||{},i=o.delay||r.delay||0;let{elapsed:a=0}=r;a=a-wt(i);const l=Wu(e,t,n,o),u=l[0],f=l[l.length-1],c=Nn(t,u),h=Nn(t,f);let d={keyframes:l,velocity:e.getVelocity(),ease:"easeOut",...o,delay:-a,onUpdate:m=>{e.set(m),o.onUpdate&&o.onUpdate(m)},onComplete:()=>{s(),o.onComplete&&o.onComplete()}};if(Uu(o)||(d={...d,...Du(t,d)}),d.duration&&(d.duration=wt(d.duration)),d.repeatDelay&&(d.repeatDelay=wt(d.repeatDelay)),!c||!h||Bc.current||o.type===!1||zu.skipAnimations)return Vu(d);if(!r.isHandoff&&e.owner&&e.owner.current instanceof HTMLElement&&!e.owner.getProps().onUpdate){const m=Ou(e,t,d);if(m)return m}return Ie(d)};function We(t){return!!($(t)&&t.add)}const Co=t=>/^\-?\d*\.?\d+$/.test(t);function yr(t,e){t.indexOf(e)===-1&&t.push(e)}function vr(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}class xr{constructor(){this.subscriptions=[]}add(e){return yr(this.subscriptions,e),()=>vr(this.subscriptions,e)}notify(e,n,r){const s=this.subscriptions.length;if(s)if(s===1)this.subscriptions[0](e,n,r);else for(let o=0;o<s;o++){const i=this.subscriptions[o];i&&i(e,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Hu=t=>!isNaN(parseFloat(t));class $u{constructor(e,n={}){this.version="10.18.0",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(r,s=!0)=>{this.prev=this.current,this.current=r;const{delta:o,timestamp:i}=U;this.lastUpdated!==i&&(this.timeDelta=o,this.lastUpdated=i,M.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),s&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>M.postRender(this.velocityCheck),this.velocityCheck=({timestamp:r})=>{r!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=e,this.canTrackVelocity=Hu(this.current),this.owner=n.owner}onChange(e){return this.on("change",e)}on(e,n){this.events[e]||(this.events[e]=new xr);const r=this.events[e].add(n);return e==="change"?()=>{r(),M.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,n){this.passiveEffect=e,this.stopPassiveEffect=n}set(e,n=!0){!n||!this.passiveEffect?this.updateAndNotify(e,n):this.passiveEffect(e,this.updateAndNotify)}setWithVelocity(e,n,r){this.set(n),this.prev=e,this.timeDelta=r}jump(e){this.updateAndNotify(e),this.prev=e,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?Eo(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(e){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=e(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function qt(t,e){return new $u(t,e)}const Ro=t=>e=>e.test(t),qu={test:t=>t==="auto",parse:t=>t},Oo=[Lt,C,st,yt,Zl,Jl,qu],Qt=t=>Oo.find(Ro(t)),Gu=[...Oo,z,St],Xu=t=>Gu.find(Ro(t));function Ku(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,qt(n))}function Yu(t,e){const n=en(t,e);let{transitionEnd:r={},transition:s={},...o}=n?t.makeTargetAnimatable(n,!1):{};o={...o,...r};for(const i in o){const a=dc(o[i]);Ku(t,i,a)}}function Ju(t,e,n){var r,s;const o=Object.keys(e).filter(a=>!t.hasValue(a)),i=o.length;if(i)for(let a=0;a<i;a++){const l=o[a],u=e[l];let f=null;Array.isArray(u)&&(f=u[0]),f===null&&(f=(s=(r=n[l])!==null&&r!==void 0?r:t.readValue(l))!==null&&s!==void 0?s:e[l]),f!=null&&(typeof f=="string"&&(Co(f)||Ao(f))?f=parseFloat(f):!Xu(f)&&St.test(u)&&(f=Po(l,u)),t.addValue(l,qt(f,{owner:t})),n[l]===void 0&&(n[l]=f),f!==null&&t.setBaseTarget(l,f))}}function Zu(t,e){return e?(e[t]||e.default||e).from:void 0}function Qu(t,e,n){const r={};for(const s in t){const o=Zu(s,e);if(o!==void 0)r[s]=o;else{const i=n.getValue(s);i&&(r[s]=i.get())}}return r}function tf({protectedKeys:t,needsAnimating:e},n){const r=t.hasOwnProperty(n)&&e[n]!==!0;return e[n]=!1,r}function ef(t,e){const n=t.get();if(Array.isArray(e)){for(let r=0;r<e.length;r++)if(e[r]!==n)return!0}else return n!==e}function Vo(t,e,{delay:n=0,transitionOverride:r,type:s}={}){let{transition:o=t.getDefaultTransition(),transitionEnd:i,...a}=t.makeTargetAnimatable(e);const l=t.getValue("willChange");r&&(o=r);const u=[],f=s&&t.animationState&&t.animationState.getState()[s];for(const c in a){const h=t.getValue(c),d=a[c];if(!h||d===void 0||f&&tf(f,c))continue;const m={delay:n,elapsed:0,...mr(o||{},c)};if(window.HandoffAppearAnimations){const b=t.getProps()[Vi];if(b){const w=window.HandoffAppearAnimations(b,c,h,M);w!==null&&(m.elapsed=w,m.isHandoff=!0)}}let g=!m.isHandoff&&!ef(h,d);if(m.type==="spring"&&(h.getVelocity()||m.velocity)&&(g=!1),h.animation&&(g=!1),g)continue;h.start(gr(c,h,d,t.shouldReduceMotion&&jt.has(c)?{type:!1}:m));const y=h.animation;We(l)&&(l.add(c),y.then(()=>l.remove(c))),u.push(y)}return i&&Promise.all(u).then(()=>{i&&Yu(t,i)}),u}function Fn(t,e,n={}){const r=en(t,e,n.custom);let{transition:s=t.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(s=n.transitionOverride);const o=r?()=>Promise.all(Vo(t,r,n)):()=>Promise.resolve(),i=t.variantChildren&&t.variantChildren.size?(l=0)=>{const{delayChildren:u=0,staggerChildren:f,staggerDirection:c}=s;return nf(t,e,u+l,f,c,n)}:()=>Promise.resolve(),{when:a}=s;if(a){const[l,u]=a==="beforeChildren"?[o,i]:[i,o];return l().then(()=>u())}else return Promise.all([o(),i(n.delay)])}function nf(t,e,n=0,r=0,s=1,o){const i=[],a=(t.variantChildren.size-1)*r,l=s===1?(u=0)=>u*r:(u=0)=>a-u*r;return Array.from(t.variantChildren).sort(rf).forEach((u,f)=>{u.notify("AnimationStart",e),i.push(Fn(u,e,{...o,delay:n+l(f)}).then(()=>u.notify("AnimationComplete",e)))}),Promise.all(i)}function rf(t,e){return t.sortNodePosition(e)}function sf(t,e,n={}){t.notify("AnimationStart",e);let r;if(Array.isArray(e)){const s=e.map(o=>Fn(t,o,n));r=Promise.all(s)}else if(typeof e=="string")r=Fn(t,e,n);else{const s=typeof e=="function"?en(t,e,n.custom):e;r=Promise.all(Vo(t,s,n))}return r.then(()=>t.notify("AnimationComplete",e))}const of=[...er].reverse(),af=er.length;function lf(t){return e=>Promise.all(e.map(({animation:n,options:r})=>sf(t,n,r)))}function cf(t){let e=lf(t);const n=ff();let r=!0;const s=(l,u)=>{const f=en(t,u);if(f){const{transition:c,transitionEnd:h,...d}=f;l={...l,...d,...h}}return l};function o(l){e=l(t)}function i(l,u){const f=t.getProps(),c=t.getVariantContext(!0)||{},h=[],d=new Set;let m={},g=1/0;for(let b=0;b<af;b++){const w=of[b],v=n[w],E=f[w]!==void 0?f[w]:c[w],S=le(E),T=w===u?v.isActive:null;T===!1&&(g=b);let P=E===c[w]&&E!==f[w]&&S;if(P&&r&&t.manuallyAnimateOnMount&&(P=!1),v.protectedKeys={...m},!v.isActive&&T===null||!E&&!v.prevProp||Je(E)||typeof E=="boolean")continue;let R=uf(v.prevProp,E)||w===u&&v.isActive&&!P&&S||b>g&&S,B=!1;const q=Array.isArray(E)?E:[E];let _=q.reduce(s,{});T===!1&&(_={});const{prevResolvedValues:W={}}=v,F={...W,..._},tt=N=>{R=!0,d.has(N)&&(B=!0,d.delete(N)),v.needsAnimating[N]=!0};for(const N in F){const et=_[N],I=W[N];if(m.hasOwnProperty(N))continue;let ht=!1;Ne(et)&&Ne(I)?ht=!Zi(et,I):ht=et!==I,ht?et!==void 0?tt(N):d.add(N):et!==void 0&&d.has(N)?tt(N):v.protectedKeys[N]=!0}v.prevProp=E,v.prevResolvedValues=_,v.isActive&&(m={...m,..._}),r&&t.blockInitialAnimation&&(R=!1),R&&(!P||B)&&h.push(...q.map(N=>({animation:N,options:{type:w,...l}})))}if(d.size){const b={};d.forEach(w=>{const v=t.getBaseTarget(w);v!==void 0&&(b[w]=v)}),h.push({animation:b})}let y=!!h.length;return r&&(f.initial===!1||f.initial===f.animate)&&!t.manuallyAnimateOnMount&&(y=!1),r=!1,y?e(h):Promise.resolve()}function a(l,u,f){var c;if(n[l].isActive===u)return Promise.resolve();(c=t.variantChildren)===null||c===void 0||c.forEach(d=>{var m;return(m=d.animationState)===null||m===void 0?void 0:m.setActive(l,u)}),n[l].isActive=u;const h=i(f,l);for(const d in n)n[d].protectedKeys={};return h}return{animateChanges:i,setActive:a,setAnimateFunction:o,getState:()=>n}}function uf(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!Zi(e,t):!1}function Ct(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function ff(){return{animate:Ct(!0),whileInView:Ct(),whileHover:Ct(),whileTap:Ct(),whileDrag:Ct(),whileFocus:Ct(),exit:Ct()}}class hf extends Tt{constructor(e){super(e),e.animationState||(e.animationState=cf(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();this.unmount(),Je(e)&&(this.unmount=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:n}=this.node.prevProps||{};e!==n&&this.updateAnimationControlsSubscription()}unmount(){}}let df=0;class pf extends Tt{constructor(){super(...arguments),this.id=df++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:n,custom:r}=this.node.presenceContext,{isPresent:s}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===s)return;const o=this.node.animationState.setActive("exit",!e,{custom:r??this.node.getProps().custom});n&&!e&&o.then(()=>n(this.id))}mount(){const{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}}const mf={animation:{Feature:hf},exit:{Feature:pf}},rs=(t,e)=>Math.abs(t-e);function gf(t,e){const n=rs(t.x,e.x),r=rs(t.y,e.y);return Math.sqrt(n**2+r**2)}class Mo{constructor(e,n,{transformPagePoint:r,contextWindow:s,dragSnapToOrigin:o=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const c=En(this.lastMoveEventInfo,this.history),h=this.startEvent!==null,d=gf(c.offset,{x:0,y:0})>=3;if(!h&&!d)return;const{point:m}=c,{timestamp:g}=U;this.history.push({...m,timestamp:g});const{onStart:y,onMove:b}=this.handlers;h||(y&&y(this.lastMoveEvent,c),this.startEvent=this.lastMoveEvent),b&&b(this.lastMoveEvent,c)},this.handlePointerMove=(c,h)=>{this.lastMoveEvent=c,this.lastMoveEventInfo=wn(h,this.transformPagePoint),M.update(this.updatePoint,!0)},this.handlePointerUp=(c,h)=>{this.end();const{onEnd:d,onSessionEnd:m,resumeAnimation:g}=this.handlers;if(this.dragSnapToOrigin&&g&&g(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const y=En(c.type==="pointercancel"?this.lastMoveEventInfo:wn(h,this.transformPagePoint),this.history);this.startEvent&&d&&d(c,y),m&&m(c,y)},!Gi(e))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=r,this.contextWindow=s||window;const i=tn(e),a=wn(i,this.transformPagePoint),{point:l}=a,{timestamp:u}=U;this.history=[{...l,timestamp:u}];const{onSessionStart:f}=n;f&&f(e,En(a,this.history)),this.removeListeners=bt(lt(this.contextWindow,"pointermove",this.handlePointerMove),lt(this.contextWindow,"pointerup",this.handlePointerUp),lt(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),ft(this.updatePoint)}}function wn(t,e){return e?{point:e(t.point)}:t}function ss(t,e){return{x:t.x-e.x,y:t.y-e.y}}function En({point:t},e){return{point:t,delta:ss(t,jo(e)),offset:ss(t,yf(e)),velocity:vf(e,.1)}}function yf(t){return t[0]}function jo(t){return t[t.length-1]}function vf(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,r=null;const s=jo(t);for(;n>=0&&(r=t[n],!(s.timestamp-r.timestamp>wt(e)));)n--;if(!r)return{x:0,y:0};const o=ct(s.timestamp-r.timestamp);if(o===0)return{x:0,y:0};const i={x:(s.x-r.x)/o,y:(s.y-r.y)/o};return i.x===1/0&&(i.x=0),i.y===1/0&&(i.y=0),i}function X(t){return t.max-t.min}function In(t,e=0,n=.01){return Math.abs(t-e)<=n}function is(t,e,n,r=.5){t.origin=r,t.originPoint=j(e.min,e.max,t.origin),t.scale=X(n)/X(e),(In(t.scale,1,1e-4)||isNaN(t.scale))&&(t.scale=1),t.translate=j(n.min,n.max,t.origin)-t.originPoint,(In(t.translate)||isNaN(t.translate))&&(t.translate=0)}function ie(t,e,n,r){is(t.x,e.x,n.x,r?r.originX:void 0),is(t.y,e.y,n.y,r?r.originY:void 0)}function os(t,e,n){t.min=n.min+e.min,t.max=t.min+X(e)}function xf(t,e,n){os(t.x,e.x,n.x),os(t.y,e.y,n.y)}function as(t,e,n){t.min=e.min-n.min,t.max=t.min+X(e)}function oe(t,e,n){as(t.x,e.x,n.x),as(t.y,e.y,n.y)}function bf(t,{min:e,max:n},r){return e!==void 0&&t<e?t=r?j(e,t,r.min):Math.max(t,e):n!==void 0&&t>n&&(t=r?j(n,t,r.max):Math.min(t,n)),t}function ls(t,e,n){return{min:e!==void 0?t.min+e:void 0,max:n!==void 0?t.max+n-(t.max-t.min):void 0}}function wf(t,{top:e,left:n,bottom:r,right:s}){return{x:ls(t.x,n,s),y:ls(t.y,e,r)}}function cs(t,e){let n=e.min-t.min,r=e.max-t.max;return e.max-e.min<t.max-t.min&&([n,r]=[r,n]),{min:n,max:r}}function Ef(t,e){return{x:cs(t.x,e.x),y:cs(t.y,e.y)}}function Sf(t,e){let n=.5;const r=X(t),s=X(e);return s>r?n=ue(e.min,e.max-r,t.min):r>s&&(n=ue(t.min,t.max-s,e.min)),Et(0,1,n)}function Tf(t,e){const n={};return e.min!==void 0&&(n.min=e.min-t.min),e.max!==void 0&&(n.max=e.max-t.min),n}const Wn=.35;function Pf(t=Wn){return t===!1?t=0:t===!0&&(t=Wn),{x:us(t,"left","right"),y:us(t,"top","bottom")}}function us(t,e,n){return{min:fs(t,e),max:fs(t,n)}}function fs(t,e){return typeof t=="number"?t:t[e]||0}const hs=()=>({translate:0,scale:1,origin:0,originPoint:0}),Ht=()=>({x:hs(),y:hs()}),ds=()=>({min:0,max:0}),k=()=>({x:ds(),y:ds()});function Y(t){return[t("x"),t("y")]}function Lo({top:t,left:e,right:n,bottom:r}){return{x:{min:e,max:n},y:{min:t,max:r}}}function Af({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function Cf(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),r=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function Sn(t){return t===void 0||t===1}function Un({scale:t,scaleX:e,scaleY:n}){return!Sn(t)||!Sn(e)||!Sn(n)}function Rt(t){return Un(t)||ko(t)||t.z||t.rotate||t.rotateX||t.rotateY}function ko(t){return ps(t.x)||ps(t.y)}function ps(t){return t&&t!=="0%"}function Ue(t,e,n){const r=t-n,s=e*r;return n+s}function ms(t,e,n,r,s){return s!==void 0&&(t=Ue(t,s,r)),Ue(t,n,r)+e}function zn(t,e=0,n=1,r,s){t.min=ms(t.min,e,n,r,s),t.max=ms(t.max,e,n,r,s)}function Do(t,{x:e,y:n}){zn(t.x,e.translate,e.scale,e.originPoint),zn(t.y,n.translate,n.scale,n.originPoint)}function Rf(t,e,n,r=!1){const s=n.length;if(!s)return;e.x=e.y=1;let o,i;for(let a=0;a<s;a++){o=n[a],i=o.projectionDelta;const l=o.instance;l&&l.style&&l.style.display==="contents"||(r&&o.options.layoutScroll&&o.scroll&&o!==o.root&&$t(t,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),i&&(e.x*=i.x.scale,e.y*=i.y.scale,Do(t,i)),r&&Rt(o.latestValues)&&$t(t,o.latestValues))}e.x=gs(e.x),e.y=gs(e.y)}function gs(t){return Number.isInteger(t)||t>1.0000000000001||t<.999999999999?t:1}function vt(t,e){t.min=t.min+e,t.max=t.max+e}function ys(t,e,[n,r,s]){const o=e[s]!==void 0?e[s]:.5,i=j(t.min,t.max,o);zn(t,e[n],e[r],i,e.scale)}const Of=["x","scaleX","originX"],Vf=["y","scaleY","originY"];function $t(t,e){ys(t.x,e,Of),ys(t.y,e,Vf)}function _o(t,e){return Lo(Cf(t.getBoundingClientRect(),e))}function Mf(t,e,n){const r=_o(t,n),{scroll:s}=e;return s&&(vt(r.x,s.offset.x),vt(r.y,s.offset.y)),r}const No=({current:t})=>t?t.ownerDocument.defaultView:null,jf=new WeakMap;class Lf{constructor(e){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=k(),this.visualElement=e}start(e,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const s=f=>{const{dragSnapToOrigin:c}=this.getProps();c?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(tn(f,"page").point)},o=(f,c)=>{const{drag:h,dragPropagation:d,onDragStart:m}=this.getProps();if(h&&!d&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=Ki(h),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Y(y=>{let b=this.getAxisMotionValue(y).get()||0;if(st.test(b)){const{projection:w}=this.visualElement;if(w&&w.layout){const v=w.layout.layoutBox[y];v&&(b=X(v)*(parseFloat(b)/100))}}this.originPoint[y]=b}),m&&M.update(()=>m(f,c),!1,!0);const{animationState:g}=this.visualElement;g&&g.setActive("whileDrag",!0)},i=(f,c)=>{const{dragPropagation:h,dragDirectionLock:d,onDirectionLock:m,onDrag:g}=this.getProps();if(!h&&!this.openGlobalLock)return;const{offset:y}=c;if(d&&this.currentDirection===null){this.currentDirection=kf(y),this.currentDirection!==null&&m&&m(this.currentDirection);return}this.updateAxis("x",c.point,y),this.updateAxis("y",c.point,y),this.visualElement.render(),g&&g(f,c)},a=(f,c)=>this.stop(f,c),l=()=>Y(f=>{var c;return this.getAnimationState(f)==="paused"&&((c=this.getAxisMotionValue(f).animation)===null||c===void 0?void 0:c.play())}),{dragSnapToOrigin:u}=this.getProps();this.panSession=new Mo(e,{onSessionStart:s,onStart:o,onMove:i,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,contextWindow:No(this.visualElement)})}stop(e,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:s}=n;this.startAnimation(s);const{onDragEnd:o}=this.getProps();o&&M.update(()=>o(e,n))}cancel(){this.isDragging=!1;const{projection:e,animationState:n}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(e,n,r){const{drag:s}=this.getProps();if(!r||!Se(e,s,this.currentDirection))return;const o=this.getAxisMotionValue(e);let i=this.originPoint[e]+r[e];this.constraints&&this.constraints[e]&&(i=bf(i,this.constraints[e],this.elastic[e])),o.set(i)}resolveConstraints(){var e;const{dragConstraints:n,dragElastic:r}=this.getProps(),s=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(e=this.visualElement.projection)===null||e===void 0?void 0:e.layout,o=this.constraints;n&&Ut(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&s?this.constraints=wf(s.layoutBox,n):this.constraints=!1,this.elastic=Pf(r),o!==this.constraints&&s&&this.constraints&&!this.hasMutatedConstraints&&Y(i=>{this.getAxisMotionValue(i)&&(this.constraints[i]=Tf(s.layoutBox[i],this.constraints[i]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:n}=this.getProps();if(!e||!Ut(e))return!1;const r=e.current,{projection:s}=this.visualElement;if(!s||!s.layout)return!1;const o=Mf(r,s.root,this.visualElement.getTransformPagePoint());let i=Ef(s.layout.layoutBox,o);if(n){const a=n(Af(i));this.hasMutatedConstraints=!!a,a&&(i=Lo(a))}return i}startAnimation(e){const{drag:n,dragMomentum:r,dragElastic:s,dragTransition:o,dragSnapToOrigin:i,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},u=Y(f=>{if(!Se(f,n,this.currentDirection))return;let c=l&&l[f]||{};i&&(c={min:0,max:0});const h=s?200:1e6,d=s?40:1e7,m={type:"inertia",velocity:r?e[f]:0,bounceStiffness:h,bounceDamping:d,timeConstant:750,restDelta:1,restSpeed:10,...o,...c};return this.startAxisValueAnimation(f,m)});return Promise.all(u).then(a)}startAxisValueAnimation(e,n){const r=this.getAxisMotionValue(e);return r.start(gr(e,r,0,n))}stopAnimation(){Y(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){Y(e=>{var n;return(n=this.getAxisMotionValue(e).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(e){var n;return(n=this.getAxisMotionValue(e).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(e){const n="_drag"+e.toUpperCase(),r=this.visualElement.getProps(),s=r[n];return s||this.visualElement.getValue(e,(r.initial?r.initial[e]:void 0)||0)}snapToCursor(e){Y(n=>{const{drag:r}=this.getProps();if(!Se(n,r,this.currentDirection))return;const{projection:s}=this.visualElement,o=this.getAxisMotionValue(n);if(s&&s.layout){const{min:i,max:a}=s.layout.layoutBox[n];o.set(e[n]-j(i,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Ut(n)||!r||!this.constraints)return;this.stopAnimation();const s={x:0,y:0};Y(i=>{const a=this.getAxisMotionValue(i);if(a){const l=a.get();s[i]=Sf({min:l,max:l},this.constraints[i])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Y(i=>{if(!Se(i,e,null))return;const a=this.getAxisMotionValue(i),{min:l,max:u}=this.constraints[i];a.set(j(l,u,s[i]))})}addListeners(){if(!this.visualElement.current)return;jf.set(this.visualElement,this);const e=this.visualElement.current,n=lt(e,"pointerdown",l=>{const{drag:u,dragListener:f=!0}=this.getProps();u&&f&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();Ut(l)&&(this.constraints=this.resolveRefConstraints())},{projection:s}=this.visualElement,o=s.addEventListener("measure",r);s&&!s.layout&&(s.root&&s.root.updateScroll(),s.updateLayout()),r();const i=at(window,"resize",()=>this.scalePositionWithinConstraints()),a=s.addEventListener("didUpdate",({delta:l,hasLayoutChanged:u})=>{this.isDragging&&u&&(Y(f=>{const c=this.getAxisMotionValue(f);c&&(this.originPoint[f]+=l[f].translate,c.set(c.get()+l[f].translate))}),this.visualElement.render())});return()=>{i(),n(),o(),a&&a()}}getProps(){const e=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:s=!1,dragConstraints:o=!1,dragElastic:i=Wn,dragMomentum:a=!0}=e;return{...e,drag:n,dragDirectionLock:r,dragPropagation:s,dragConstraints:o,dragElastic:i,dragMomentum:a}}}function Se(t,e,n){return(e===!0||e===t)&&(n===null||n===t)}function kf(t,e=10){let n=null;return Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x"),n}class Df extends Tt{constructor(e){super(e),this.removeGroupControls=L,this.removeListeners=L,this.controls=new Lf(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||L}unmount(){this.removeGroupControls(),this.removeListeners()}}const vs=t=>(e,n)=>{t&&M.update(()=>t(e,n))};class _f extends Tt{constructor(){super(...arguments),this.removePointerDownListener=L}onPointerDown(e){this.session=new Mo(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:No(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:n,onPan:r,onPanEnd:s}=this.node.getProps();return{onSessionStart:vs(e),onStart:vs(n),onMove:r,onEnd:(o,i)=>{delete this.session,s&&M.update(()=>s(o,i))}}}mount(){this.removePointerDownListener=lt(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}function Nf(){const t=p.reactExports.useContext(Qn);if(t===null)return[!0,null];const{isPresent:e,onExitComplete:n,register:r}=t,s=p.reactExports.useId();return p.reactExports.useEffect(()=>r(s),[]),!e&&n?[!1,()=>n&&n(s)]:[!0]}const Ce={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function xs(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const te={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(C.test(t))t=parseFloat(t);else return t;const n=xs(t,e.target.x),r=xs(t,e.target.y);return`${n}% ${r}%`}},Bf={correct:(t,{treeScale:e,projectionDelta:n})=>{const r=t,s=St.parse(t);if(s.length>5)return r;const o=St.createTransformer(t),i=typeof s[0]!="number"?1:0,a=n.x.scale*e.x,l=n.y.scale*e.y;s[0+i]/=a,s[1+i]/=l;const u=j(a,l,.5);return typeof s[2+i]=="number"&&(s[2+i]/=u),typeof s[3+i]=="number"&&(s[3+i]/=u),o(s)}};class Ff extends p.React__default.Component{componentDidMount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:r,layoutId:s}=this.props,{projection:o}=e;Hl(If),o&&(n.group&&n.group.add(o),r&&r.register&&s&&r.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),Ce.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:n,visualElement:r,drag:s,isPresent:o}=this.props,i=r.projection;return i&&(i.isPresent=o,s||e.layoutDependency!==n||n===void 0?i.willUpdate():this.safeToRemove(),e.isPresent!==o&&(o?i.promote():i.relegate()||M.postRender(()=>{const a=i.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),queueMicrotask(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:s}=e;s&&(s.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(s),r&&r.deregister&&r.deregister(s))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function Bo(t){const[e,n]=Nf(),r=p.reactExports.useContext(ji);return p.React__default.createElement(Ff,{...t,layoutGroup:r,switchLayoutGroup:p.reactExports.useContext(Li),isPresent:e,safeToRemove:n})}const If={borderRadius:{...te,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:te,borderTopRightRadius:te,borderBottomLeftRadius:te,borderBottomRightRadius:te,boxShadow:Bf},Fo=["TopLeft","TopRight","BottomLeft","BottomRight"],Wf=Fo.length,bs=t=>typeof t=="string"?parseFloat(t):t,ws=t=>typeof t=="number"||C.test(t);function Uf(t,e,n,r,s,o){s?(t.opacity=j(0,n.opacity!==void 0?n.opacity:1,zf(r)),t.opacityExit=j(e.opacity!==void 0?e.opacity:1,0,Hf(r))):o&&(t.opacity=j(e.opacity!==void 0?e.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let i=0;i<Wf;i++){const a=`border${Fo[i]}Radius`;let l=Es(e,a),u=Es(n,a);if(l===void 0&&u===void 0)continue;l||(l=0),u||(u=0),l===0||u===0||ws(l)===ws(u)?(t[a]=Math.max(j(bs(l),bs(u),r),0),(st.test(u)||st.test(l))&&(t[a]+="%")):t[a]=u}(e.rotate||n.rotate)&&(t.rotate=j(e.rotate||0,n.rotate||0,r))}function Es(t,e){return t[e]!==void 0?t[e]:t.borderRadius}const zf=Io(0,.5,ao),Hf=Io(.5,.95,L);function Io(t,e,n){return r=>r<t?0:r>e?1:n(ue(t,e,r))}function Ss(t,e){t.min=e.min,t.max=e.max}function K(t,e){Ss(t.x,e.x),Ss(t.y,e.y)}function Ts(t,e,n,r,s){return t-=e,t=Ue(t,1/n,r),s!==void 0&&(t=Ue(t,1/s,r)),t}function $f(t,e=0,n=1,r=.5,s,o=t,i=t){if(st.test(e)&&(e=parseFloat(e),e=j(i.min,i.max,e/100)-i.min),typeof e!="number")return;let a=j(o.min,o.max,r);t===o&&(a-=e),t.min=Ts(t.min,e,n,a,s),t.max=Ts(t.max,e,n,a,s)}function Ps(t,e,[n,r,s],o,i){$f(t,e[n],e[r],e[s],e.scale,o,i)}const qf=["x","scaleX","originX"],Gf=["y","scaleY","originY"];function As(t,e,n,r){Ps(t.x,e,qf,n?n.x:void 0,r?r.x:void 0),Ps(t.y,e,Gf,n?n.y:void 0,r?r.y:void 0)}function Cs(t){return t.translate===0&&t.scale===1}function Wo(t){return Cs(t.x)&&Cs(t.y)}function Xf(t,e){return t.x.min===e.x.min&&t.x.max===e.x.max&&t.y.min===e.y.min&&t.y.max===e.y.max}function Uo(t,e){return Math.round(t.x.min)===Math.round(e.x.min)&&Math.round(t.x.max)===Math.round(e.x.max)&&Math.round(t.y.min)===Math.round(e.y.min)&&Math.round(t.y.max)===Math.round(e.y.max)}function Rs(t){return X(t.x)/X(t.y)}class Kf{constructor(){this.members=[]}add(e){yr(this.members,e),e.scheduleRender()}remove(e){if(vr(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(e){const n=this.members.findIndex(s=>e===s);if(n===0)return!1;let r;for(let s=n;s>=0;s--){const o=this.members[s];if(o.isPresent!==!1){r=o;break}}return r?(this.promote(r),!0):!1}promote(e,n){const r=this.lead;if(e!==r&&(this.prevLead=r,this.lead=e,e.show(),r)){r.instance&&r.scheduleRender(),e.scheduleRender(),e.resumeFrom=r,n&&(e.resumeFrom.preserveOpacity=!0),r.snapshot&&(e.snapshot=r.snapshot,e.snapshot.latestValues=r.animationValues||r.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:s}=e.options;s===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(e=>{const{options:n,resumingFrom:r}=e;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function Os(t,e,n){let r="";const s=t.x.translate/e.x,o=t.y.translate/e.y;if((s||o)&&(r=`translate3d(${s}px, ${o}px, 0) `),(e.x!==1||e.y!==1)&&(r+=`scale(${1/e.x}, ${1/e.y}) `),n){const{rotate:l,rotateX:u,rotateY:f}=n;l&&(r+=`rotate(${l}deg) `),u&&(r+=`rotateX(${u}deg) `),f&&(r+=`rotateY(${f}deg) `)}const i=t.x.scale*e.x,a=t.y.scale*e.y;return(i!==1||a!==1)&&(r+=`scale(${i}, ${a})`),r||"none"}const Yf=(t,e)=>t.depth-e.depth;class Jf{constructor(){this.children=[],this.isDirty=!1}add(e){yr(this.children,e),this.isDirty=!0}remove(e){vr(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(Yf),this.isDirty=!1,this.children.forEach(e)}}function Zf(t,e){const n=performance.now(),r=({timestamp:s})=>{const o=s-n;o>=e&&(ft(r),t(o-e))};return M.read(r,!0),()=>ft(r)}function Qf(t){window.MotionDebug&&window.MotionDebug.record(t)}function th(t){return t instanceof SVGElement&&t.tagName!=="svg"}function eh(t,e,n){const r=$(t)?t:qt(t);return r.start(gr("",r,e,n)),r.animation}const Vs=["","X","Y","Z"],nh={visibility:"hidden"},Ms=1e3;let rh=0;const Ot={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function zo({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:r,resetTransform:s}){return class{constructor(i={},a=e==null?void 0:e()){this.id=rh++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,Ot.totalNodes=Ot.resolvedTargetDeltas=Ot.recalculatedProjection=0,this.nodes.forEach(oh),this.nodes.forEach(fh),this.nodes.forEach(hh),this.nodes.forEach(ah),Qf(Ot)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=i,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new Jf)}addEventListener(i,a){return this.eventHandlers.has(i)||this.eventHandlers.set(i,new xr),this.eventHandlers.get(i).add(a)}notifyListeners(i,...a){const l=this.eventHandlers.get(i);l&&l.notify(...a)}hasListeners(i){return this.eventHandlers.has(i)}mount(i,a=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=th(i),this.instance=i;const{layoutId:l,layout:u,visualElement:f}=this.options;if(f&&!f.current&&f.mount(i),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),a&&(u||l)&&(this.isLayoutDirty=!0),t){let c;const h=()=>this.root.updateBlockedByResize=!1;t(i,()=>{this.root.updateBlockedByResize=!0,c&&c(),c=Zf(h,250),Ce.hasAnimatedSinceResize&&(Ce.hasAnimatedSinceResize=!1,this.nodes.forEach(Ls))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&f&&(l||u)&&this.addEventListener("didUpdate",({delta:c,hasLayoutChanged:h,hasRelativeTargetChanged:d,layout:m})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const g=this.options.transition||f.getDefaultTransition()||yh,{onLayoutAnimationStart:y,onLayoutAnimationComplete:b}=f.getProps(),w=!this.targetLayout||!Uo(this.targetLayout,m)||d,v=!h&&d;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||v||h&&(w||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(c,v);const E={...mr(g,"layout"),onPlay:y,onComplete:b};(f.shouldReduceMotion||this.options.layoutRoot)&&(E.delay=0,E.type=!1),this.startAnimation(E)}else h||Ls(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=m})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const i=this.getStack();i&&i.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,ft(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(dh),this.animationId++)}getTransformTemplate(){const{visualElement:i}=this.options;return i&&i.getProps().transformTemplate}willUpdate(i=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let f=0;f<this.path.length;f++){const c=this.path[f];c.shouldResetTransform=!0,c.updateScroll("snapshot"),c.options.layoutRoot&&c.willUpdate(!1)}const{layoutId:a,layout:l}=this.options;if(a===void 0&&!l)return;const u=this.getTransformTemplate();this.prevTransformTemplateValue=u?u(this.latestValues,""):void 0,this.updateSnapshot(),i&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(js);return}this.isUpdating||this.nodes.forEach(ch),this.isUpdating=!1,this.nodes.forEach(uh),this.nodes.forEach(sh),this.nodes.forEach(ih),this.clearAllSnapshots();const a=performance.now();U.delta=Et(0,1e3/60,a-U.timestamp),U.timestamp=a,U.isProcessing=!0,dn.update.process(U),dn.preRender.process(U),dn.render.process(U),U.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,queueMicrotask(()=>this.update()))}clearAllSnapshots(){this.nodes.forEach(lh),this.sharedNodes.forEach(ph)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,M.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){M.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l<this.path.length;l++)this.path[l].updateScroll();const i=this.layout;this.layout=this.measure(!1),this.layoutCorrected=k(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:a}=this.options;a&&a.notify("LayoutMeasure",this.layout.layoutBox,i?i.layoutBox:void 0)}updateScroll(i="measure"){let a=!!(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===i&&(a=!1),a&&(this.scroll={animationId:this.root.animationId,phase:i,isRoot:r(this.instance),offset:n(this.instance)})}resetTransform(){if(!s)return;const i=this.isLayoutDirty||this.shouldResetTransform,a=this.projectionDelta&&!Wo(this.projectionDelta),l=this.getTransformTemplate(),u=l?l(this.latestValues,""):void 0,f=u!==this.prevTransformTemplateValue;i&&(a||Rt(this.latestValues)||f)&&(s(this.instance,u),this.shouldResetTransform=!1,this.scheduleRender())}measure(i=!0){const a=this.measurePageBox();let l=this.removeElementScroll(a);return i&&(l=this.removeTransform(l)),vh(l),{animationId:this.root.animationId,measuredBox:a,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:i}=this.options;if(!i)return k();const a=i.measureViewportBox(),{scroll:l}=this.root;return l&&(vt(a.x,l.offset.x),vt(a.y,l.offset.y)),a}removeElementScroll(i){const a=k();K(a,i);for(let l=0;l<this.path.length;l++){const u=this.path[l],{scroll:f,options:c}=u;if(u!==this.root&&f&&c.layoutScroll){if(f.isRoot){K(a,i);const{scroll:h}=this.root;h&&(vt(a.x,-h.offset.x),vt(a.y,-h.offset.y))}vt(a.x,f.offset.x),vt(a.y,f.offset.y)}}return a}applyTransform(i,a=!1){const l=k();K(l,i);for(let u=0;u<this.path.length;u++){const f=this.path[u];!a&&f.options.layoutScroll&&f.scroll&&f!==f.root&&$t(l,{x:-f.scroll.offset.x,y:-f.scroll.offset.y}),Rt(f.latestValues)&&$t(l,f.latestValues)}return Rt(this.latestValues)&&$t(l,this.latestValues),l}removeTransform(i){const a=k();K(a,i);for(let l=0;l<this.path.length;l++){const u=this.path[l];if(!u.instance||!Rt(u.latestValues))continue;Un(u.latestValues)&&u.updateSnapshot();const f=k(),c=u.measurePageBox();K(f,c),As(a,u.latestValues,u.snapshot?u.snapshot.layoutBox:void 0,f)}return Rt(this.latestValues)&&As(a,this.latestValues),a}setTargetDelta(i){this.targetDelta=i,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(i){this.options={...this.options,...i,crossfade:i.crossfade!==void 0?i.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==U.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(i=!1){var a;const l=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=l.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=l.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=l.isSharedProjectionDirty);const u=!!this.resumingFrom||this!==l;if(!(i||u&&this.isSharedProjectionDirty||this.isProjectionDirty||!((a=this.parent)===null||a===void 0)&&a.isProjectionDirty||this.attemptToResolveRelativeTarget))return;const{layout:c,layoutId:h}=this.options;if(!(!this.layout||!(c||h))){if(this.resolvedRelativeTargetAt=U.timestamp,!this.targetDelta&&!this.relativeTarget){const d=this.getClosestProjectingParent();d&&d.layout&&this.animationProgress!==1?(this.relativeParent=d,this.forceRelativeParentToResolveTarget(),this.relativeTarget=k(),this.relativeTargetOrigin=k(),oe(this.relativeTargetOrigin,this.layout.layoutBox,d.layout.layoutBox),K(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=k(),this.targetWithTransforms=k()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),xf(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):K(this.target,this.layout.layoutBox),Do(this.target,this.targetDelta)):K(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const d=this.getClosestProjectingParent();d&&!!d.resumingFrom==!!this.resumingFrom&&!d.options.layoutScroll&&d.target&&this.animationProgress!==1?(this.relativeParent=d,this.forceRelativeParentToResolveTarget(),this.relativeTarget=k(),this.relativeTargetOrigin=k(),oe(this.relativeTargetOrigin,this.target,d.target),K(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}Ot.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||Un(this.parent.latestValues)||ko(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var i;const a=this.getLead(),l=!!this.resumingFrom||this!==a;let u=!0;if((this.isProjectionDirty||!((i=this.parent)===null||i===void 0)&&i.isProjectionDirty)&&(u=!1),l&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(u=!1),this.resolvedRelativeTargetAt===U.timestamp&&(u=!1),u)return;const{layout:f,layoutId:c}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(f||c))return;K(this.layoutCorrected,this.layout.layoutBox);const h=this.treeScale.x,d=this.treeScale.y;Rf(this.layoutCorrected,this.treeScale,this.path,l),a.layout&&!a.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(a.target=a.layout.layoutBox);const{target:m}=a;if(!m){this.projectionTransform&&(this.projectionDelta=Ht(),this.projectionTransform="none",this.scheduleRender());return}this.projectionDelta||(this.projectionDelta=Ht(),this.projectionDeltaWithTransform=Ht());const g=this.projectionTransform;ie(this.projectionDelta,this.layoutCorrected,m,this.latestValues),this.projectionTransform=Os(this.projectionDelta,this.treeScale),(this.projectionTransform!==g||this.treeScale.x!==h||this.treeScale.y!==d)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",m)),Ot.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(i=!0){if(this.options.scheduleRender&&this.options.scheduleRender(),i){const a=this.getStack();a&&a.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(i,a=!1){const l=this.snapshot,u=l?l.latestValues:{},f={...this.latestValues},c=Ht();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const h=k(),d=l?l.source:void 0,m=this.layout?this.layout.source:void 0,g=d!==m,y=this.getStack(),b=!y||y.members.length<=1,w=!!(g&&!b&&this.options.crossfade===!0&&!this.path.some(gh));this.animationProgress=0;let v;this.mixTargetDelta=E=>{const S=E/1e3;ks(c.x,i.x,S),ks(c.y,i.y,S),this.setTargetDelta(c),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(oe(h,this.layout.layoutBox,this.relativeParent.layout.layoutBox),mh(this.relativeTarget,this.relativeTargetOrigin,h,S),v&&Xf(this.relativeTarget,v)&&(this.isProjectionDirty=!1),v||(v=k()),K(v,this.relativeTarget)),g&&(this.animationValues=f,Uf(f,u,this.latestValues,S,w,b)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=S},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(i){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(ft(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=M.update(()=>{Ce.hasAnimatedSinceResize=!0,this.currentAnimation=eh(0,Ms,{...i,onUpdate:a=>{this.mixTargetDelta(a),i.onUpdate&&i.onUpdate(a)},onComplete:()=>{i.onComplete&&i.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const i=this.getStack();i&&i.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Ms),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const i=this.getLead();let{targetWithTransforms:a,target:l,layout:u,latestValues:f}=i;if(!(!a||!l||!u)){if(this!==i&&this.layout&&u&&Ho(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||k();const c=X(this.layout.layoutBox.x);l.x.min=i.target.x.min,l.x.max=l.x.min+c;const h=X(this.layout.layoutBox.y);l.y.min=i.target.y.min,l.y.max=l.y.min+h}K(a,l),$t(a,f),ie(this.projectionDeltaWithTransform,this.layoutCorrected,a,f)}}registerSharedNode(i,a){this.sharedNodes.has(i)||this.sharedNodes.set(i,new Kf),this.sharedNodes.get(i).add(a);const u=a.options.initialPromotionConfig;a.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(a):void 0})}isLead(){const i=this.getStack();return i?i.lead===this:!0}getLead(){var i;const{layoutId:a}=this.options;return a?((i=this.getStack())===null||i===void 0?void 0:i.lead)||this:this}getPrevLead(){var i;const{layoutId:a}=this.options;return a?(i=this.getStack())===null||i===void 0?void 0:i.prevLead:void 0}getStack(){const{layoutId:i}=this.options;if(i)return this.root.sharedNodes.get(i)}promote({needsReset:i,transition:a,preserveFollowOpacity:l}={}){const u=this.getStack();u&&u.promote(this,l),i&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const i=this.getStack();return i?i.relegate(this):!1}resetRotation(){const{visualElement:i}=this.options;if(!i)return;let a=!1;const{latestValues:l}=i;if((l.rotate||l.rotateX||l.rotateY||l.rotateZ)&&(a=!0),!a)return;const u={};for(let f=0;f<Vs.length;f++){const c="rotate"+Vs[f];l[c]&&(u[c]=l[c],i.setStaticValue(c,0))}i.render();for(const f in u)i.setStaticValue(f,u[f]);i.scheduleRender()}getProjectionStyles(i){var a,l;if(!this.instance||this.isSVG)return;if(!this.isVisible)return nh;const u={visibility:""},f=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,u.opacity="",u.pointerEvents=Ae(i==null?void 0:i.pointerEvents)||"",u.transform=f?f(this.latestValues,""):"none",u;const c=this.getLead();if(!this.projectionDelta||!this.layout||!c.target){const g={};return this.options.layoutId&&(g.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,g.pointerEvents=Ae(i==null?void 0:i.pointerEvents)||""),this.hasProjected&&!Rt(this.latestValues)&&(g.transform=f?f({},""):"none",this.hasProjected=!1),g}const h=c.animationValues||c.latestValues;this.applyTransformsToTarget(),u.transform=Os(this.projectionDeltaWithTransform,this.treeScale,h),f&&(u.transform=f(h,u.transform));const{x:d,y:m}=this.projectionDelta;u.transformOrigin=`${d.origin*100}% ${m.origin*100}% 0`,c.animationValues?u.opacity=c===this?(l=(a=h.opacity)!==null&&a!==void 0?a:this.latestValues.opacity)!==null&&l!==void 0?l:1:this.preserveOpacity?this.latestValues.opacity:h.opacityExit:u.opacity=c===this?h.opacity!==void 0?h.opacity:"":h.opacityExit!==void 0?h.opacityExit:0;for(const g in De){if(h[g]===void 0)continue;const{correct:y,applyTo:b}=De[g],w=u.transform==="none"?h[g]:y(h[g],c);if(b){const v=b.length;for(let E=0;E<v;E++)u[b[E]]=w}else u[g]=w}return this.options.layoutId&&(u.pointerEvents=c===this?Ae(i==null?void 0:i.pointerEvents)||"":"none"),u}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(i=>{var a;return(a=i.currentAnimation)===null||a===void 0?void 0:a.stop()}),this.root.nodes.forEach(js),this.root.sharedNodes.clear()}}}function sh(t){t.updateLayout()}function ih(t){var e;const n=((e=t.resumeFrom)===null||e===void 0?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&n&&t.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:s}=t.layout,{animationType:o}=t.options,i=n.source!==t.layout.source;o==="size"?Y(c=>{const h=i?n.measuredBox[c]:n.layoutBox[c],d=X(h);h.min=r[c].min,h.max=h.min+d}):Ho(o,n.layoutBox,r)&&Y(c=>{const h=i?n.measuredBox[c]:n.layoutBox[c],d=X(r[c]);h.max=h.min+d,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[c].max=t.relativeTarget[c].min+d)});const a=Ht();ie(a,r,n.layoutBox);const l=Ht();i?ie(l,t.applyTransform(s,!0),n.measuredBox):ie(l,r,n.layoutBox);const u=!Wo(a);let f=!1;if(!t.resumeFrom){const c=t.getClosestProjectingParent();if(c&&!c.resumeFrom){const{snapshot:h,layout:d}=c;if(h&&d){const m=k();oe(m,n.layoutBox,h.layoutBox);const g=k();oe(g,r,d.layoutBox),Uo(m,g)||(f=!0),c.options.layoutRoot&&(t.relativeTarget=g,t.relativeTargetOrigin=m,t.relativeParent=c)}}}t.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:l,layoutDelta:a,hasLayoutChanged:u,hasRelativeTargetChanged:f})}else if(t.isLead()){const{onExitComplete:r}=t.options;r&&r()}t.options.transition=void 0}function oh(t){Ot.totalNodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function ah(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function lh(t){t.clearSnapshot()}function js(t){t.clearMeasurements()}function ch(t){t.isLayoutDirty=!1}function uh(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function Ls(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function fh(t){t.resolveTargetDelta()}function hh(t){t.calcProjection()}function dh(t){t.resetRotation()}function ph(t){t.removeLeadSnapshot()}function ks(t,e,n){t.translate=j(e.translate,0,n),t.scale=j(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function Ds(t,e,n,r){t.min=j(e.min,n.min,r),t.max=j(e.max,n.max,r)}function mh(t,e,n,r){Ds(t.x,e.x,n.x,r),Ds(t.y,e.y,n.y,r)}function gh(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const yh={duration:.45,ease:[.4,0,.1,1]},_s=t=>typeof navigator<"u"&&navigator.userAgent.toLowerCase().includes(t),Ns=_s("applewebkit/")&&!_s("chrome/")?Math.round:L;function Bs(t){t.min=Ns(t.min),t.max=Ns(t.max)}function vh(t){Bs(t.x),Bs(t.y)}function Ho(t,e,n){return t==="position"||t==="preserve-aspect"&&!In(Rs(e),Rs(n),.2)}const xh=zo({attachResizeListener:(t,e)=>at(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Tn={current:void 0},$o=zo({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!Tn.current){const t=new xh({});t.mount(window),t.setOptions({layoutScroll:!0}),Tn.current=t}return Tn.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),bh={pan:{Feature:_f},drag:{Feature:Df,ProjectionNode:$o,MeasureLayout:Bo}},wh=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function Eh(t){const e=wh.exec(t);if(!e)return[,];const[,n,r]=e;return[n,r]}function Hn(t,e,n=1){const[r,s]=Eh(t);if(!r)return;const o=window.getComputedStyle(e).getPropertyValue(r);if(o){const i=o.trim();return Co(i)?parseFloat(i):i}else return Ln(s)?Hn(s,e,n+1):s}function Sh(t,{...e},n){const r=t.current;if(!(r instanceof Element))return{target:e,transitionEnd:n};n&&(n={...n}),t.values.forEach(s=>{const o=s.get();if(!Ln(o))return;const i=Hn(o,r);i&&s.set(i)});for(const s in e){const o=e[s];if(!Ln(o))continue;const i=Hn(o,r);i&&(e[s]=i,n||(n={}),n[s]===void 0&&(n[s]=o))}return{target:e,transitionEnd:n}}const Th=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),qo=t=>Th.has(t),Ph=t=>Object.keys(t).some(qo),Fs=t=>t===Lt||t===C,Is=(t,e)=>parseFloat(t.split(", ")[e]),Ws=(t,e)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const s=r.match(/^matrix3d\((.+)\)$/);if(s)return Is(s[1],e);{const o=r.match(/^matrix\((.+)\)$/);return o?Is(o[1],t):0}},Ah=new Set(["x","y","z"]),Ch=he.filter(t=>!Ah.has(t));function Rh(t){const e=[];return Ch.forEach(n=>{const r=t.getValue(n);r!==void 0&&(e.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),e.length&&t.render(),e}const Gt={width:({x:t},{paddingLeft:e="0",paddingRight:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),height:({y:t},{paddingTop:e="0",paddingBottom:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:Ws(4,13),y:Ws(5,14)};Gt.translateX=Gt.x;Gt.translateY=Gt.y;const Oh=(t,e,n)=>{const r=e.measureViewportBox(),s=e.current,o=getComputedStyle(s),{display:i}=o,a={};i==="none"&&e.setStaticValue("display",t.display||"block"),n.forEach(u=>{a[u]=Gt[u](r,o)}),e.render();const l=e.measureViewportBox();return n.forEach(u=>{const f=e.getValue(u);f&&f.jump(a[u]),t[u]=Gt[u](l,o)}),t},Vh=(t,e,n={},r={})=>{e={...e},r={...r};const s=Object.keys(e).filter(qo);let o=[],i=!1;const a=[];if(s.forEach(l=>{const u=t.getValue(l);if(!t.hasValue(l))return;let f=n[l],c=Qt(f);const h=e[l];let d;if(Ne(h)){const m=h.length,g=h[0]===null?1:0;f=h[g],c=Qt(f);for(let y=g;y<m&&h[y]!==null;y++)d?ur(Qt(h[y])===d):d=Qt(h[y])}else d=Qt(h);if(c!==d)if(Fs(c)&&Fs(d)){const m=u.get();typeof m=="string"&&u.set(parseFloat(m)),typeof h=="string"?e[l]=parseFloat(h):Array.isArray(h)&&d===C&&(e[l]=h.map(parseFloat))}else c!=null&&c.transform&&(d!=null&&d.transform)&&(f===0||h===0)?f===0?u.set(d.transform(f)):e[l]=c.transform(h):(i||(o=Rh(t),i=!0),a.push(l),r[l]=r[l]!==void 0?r[l]:e[l],u.jump(h))}),a.length){const l=a.indexOf("height")>=0?window.pageYOffset:null,u=Oh(e,t,a);return o.length&&o.forEach(([f,c])=>{t.getValue(f).set(c)}),t.render(),Ye&&l!==null&&window.scrollTo({top:l}),{target:u,transitionEnd:r}}else return{target:e,transitionEnd:r}};function Mh(t,e,n,r){return Ph(e)?Vh(t,e,n,r):{target:e,transitionEnd:r}}const jh=(t,e,n,r)=>{const s=Sh(t,e,r);return e=s.target,r=s.transitionEnd,Mh(t,e,n,r)},$n={current:null},Go={current:!1};function Lh(){if(Go.current=!0,!!Ye)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>$n.current=t.matches;t.addListener(e),e()}else $n.current=!1}function kh(t,e,n){const{willChange:r}=e;for(const s in e){const o=e[s],i=n[s];if($(o))t.addValue(s,o),We(r)&&r.add(s);else if($(i))t.addValue(s,qt(o,{owner:t})),We(r)&&r.remove(s);else if(i!==o)if(t.hasValue(s)){const a=t.getValue(s);!a.hasAnimated&&a.set(o)}else{const a=t.getStaticValue(s);t.addValue(s,qt(a!==void 0?a:o,{owner:t}))}}for(const s in n)e[s]===void 0&&t.removeValue(s);return e}const Us=new WeakMap,Xo=Object.keys(ce),Dh=Xo.length,zs=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],_h=nr.length;class Nh{constructor({parent:e,props:n,presenceContext:r,reducedMotionConfig:s,visualState:o},i={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>M.render(this.render,!1,!0);const{latestValues:a,renderState:l}=o;this.latestValues=a,this.baseTarget={...a},this.initialValues=n.initial?{...a}:{},this.renderState=l,this.parent=e,this.props=n,this.presenceContext=r,this.depth=e?e.depth+1:0,this.reducedMotionConfig=s,this.options=i,this.isControllingVariants=Ze(n),this.isVariantNode=Mi(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:u,...f}=this.scrapeMotionValuesFromProps(n,{});for(const c in f){const h=f[c];a[c]!==void 0&&$(h)&&(h.set(a[c],!1),We(u)&&u.add(c))}}scrapeMotionValuesFromProps(e,n){return{}}mount(e){this.current=e,Us.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),Go.current||Lh(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:$n.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){Us.delete(this.current),this.projection&&this.projection.unmount(),ft(this.notifyUpdate),ft(this.render),this.valueSubscriptions.forEach(e=>e()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const e in this.events)this.events[e].clear();for(const e in this.features)this.features[e].unmount();this.current=null}bindToMotionValue(e,n){const r=jt.has(e),s=n.on("change",i=>{this.latestValues[e]=i,this.props.onUpdate&&M.update(this.notifyUpdate,!1,!0),r&&this.projection&&(this.projection.isTransformDirty=!0)}),o=n.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(e,()=>{s(),o()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}loadFeatures({children:e,...n},r,s,o){let i,a;for(let l=0;l<Dh;l++){const u=Xo[l],{isEnabled:f,Feature:c,ProjectionNode:h,MeasureLayout:d}=ce[u];h&&(i=h),f(n)&&(!this.features[u]&&c&&(this.features[u]=new c(this)),d&&(a=d))}if((this.type==="html"||this.type==="svg")&&!this.projection&&i){this.projection=new i(this.latestValues,this.parent&&this.parent.projection);const{layoutId:l,layout:u,drag:f,dragConstraints:c,layoutScroll:h,layoutRoot:d}=n;this.projection.setOptions({layoutId:l,layout:u,alwaysMeasureLayout:!!f||c&&Ut(c),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:typeof u=="string"?u:"both",initialPromotionConfig:o,layoutScroll:h,layoutRoot:d})}return a}updateFeatures(){for(const e in this.features){const n=this.features[e];n.isMounted?n.update():(n.mount(),n.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):k()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,n){this.latestValues[e]=n}makeTargetAnimatable(e,n=!0){return this.makeTargetAnimatableFromInstance(e,this.props,n)}update(e,n){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<zs.length;r++){const s=zs[r];this.propEventSubscriptions[s]&&(this.propEventSubscriptions[s](),delete this.propEventSubscriptions[s]);const o=e["on"+s];o&&(this.propEventSubscriptions[s]=this.on(s,o))}this.prevMotionValues=kh(this,this.scrapeMotionValuesFromProps(e,this.prevProps),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}getVariantContext(e=!1){if(e)return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){const r=this.parent?this.parent.getVariantContext()||{}:{};return this.props.initial!==void 0&&(r.initial=this.props.initial),r}const n={};for(let r=0;r<_h;r++){const s=nr[r],o=this.props[s];(le(o)||o===!1)&&(n[s]=o)}return n}addVariantChild(e){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(e),()=>n.variantChildren.delete(e)}addValue(e,n){n!==this.values.get(e)&&(this.removeValue(e),this.bindToMotionValue(e,n)),this.values.set(e,n),this.latestValues[e]=n.get()}removeValue(e){this.values.delete(e);const n=this.valueSubscriptions.get(e);n&&(n(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,n){if(this.props.values&&this.props.values[e])return this.props.values[e];let r=this.values.get(e);return r===void 0&&n!==void 0&&(r=qt(n,{owner:this}),this.addValue(e,r)),r}readValue(e){var n;return this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:(n=this.getBaseTargetFromProps(this.props,e))!==null&&n!==void 0?n:this.readValueFromInstance(this.current,e,this.options)}setBaseTarget(e,n){this.baseTarget[e]=n}getBaseTarget(e){var n;const{initial:r}=this.props,s=typeof r=="string"||typeof r=="object"?(n=cr(this.props,r))===null||n===void 0?void 0:n[e]:void 0;if(r&&s!==void 0)return s;const o=this.getBaseTargetFromProps(this.props,e);return o!==void 0&&!$(o)?o:this.initialValues[e]!==void 0&&s===void 0?void 0:this.baseTarget[e]}on(e,n){return this.events[e]||(this.events[e]=new xr),this.events[e].add(n)}notify(e,...n){this.events[e]&&this.events[e].notify(...n)}}class Ko extends Nh{sortInstanceNodePosition(e,n){return e.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(e,n){return e.style?e.style[n]:void 0}removeValueFromRenderState(e,{vars:n,style:r}){delete n[e],delete r[e]}makeTargetAnimatableFromInstance({transition:e,transitionEnd:n,...r},{transformValues:s},o){let i=Qu(r,e||{},this);if(s&&(n&&(n=s(n)),r&&(r=s(r)),i&&(i=s(i))),o){Ju(this,r,i);const a=jh(this,r,i,n);n=a.transitionEnd,r=a.target}return{transition:e,transitionEnd:n,...r}}}function Bh(t){return window.getComputedStyle(t)}class Fh extends Ko{constructor(){super(...arguments),this.type="html"}readValueFromInstance(e,n){if(jt.has(n)){const r=pr(n);return r&&r.default||0}else{const r=Bh(e),s=(_i(n)?r.getPropertyValue(n):r[n])||0;return typeof s=="string"?s.trim():s}}measureInstanceViewportBox(e,{transformPagePoint:n}){return _o(e,n)}build(e,n,r,s){sr(e,n,r,s.transformTemplate)}scrapeMotionValuesFromProps(e,n){return lr(e,n)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;$(e)&&(this.childSubscription=e.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}renderInstance(e,n,r,s){Ui(e,n,r,s)}}class Ih extends Ko{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}getBaseTargetFromProps(e,n){return e[n]}readValueFromInstance(e,n){if(jt.has(n)){const r=pr(n);return r&&r.default||0}return n=zi.has(n)?n:tr(n),e.getAttribute(n)}measureInstanceViewportBox(){return k()}scrapeMotionValuesFromProps(e,n){return $i(e,n)}build(e,n,r,s){or(e,n,r,this.isSVGTag,s.transformTemplate)}renderInstance(e,n,r,s){Hi(e,n,r,s)}mount(e){this.isSVGTag=ar(e.tagName),super.mount(e)}}const Wh=(t,e)=>rr(t)?new Ih(e,{enableHardwareAcceleration:!1}):new Fh(e,{enableHardwareAcceleration:!0}),Uh={layout:{ProjectionNode:$o,MeasureLayout:Bo}},zh={...mf,...kc,...bh,...Uh},Yo=Ul((t,e)=>wc(t,e,zh,Wh));function Hh(t){const{children:e,parentRef:n,onlyChild:r}=t,[s,o]=p.reactExports.useState({top:0,left:0});return p.reactExports.useLayoutEffect(()=>{if(n.current){const i=n.current.getBoundingClientRect();o({top:i.top,left:i.left+i.width})}},[n]),r?e:p.reactDomExports.createPortal(p.jsxRuntimeExports.jsx(Yo.div,{style:{position:"fixed",top:s.top,left:s.left,zIndex:1200},children:e}),n.current)}function $h(t){return p.jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",viewBox:"0 0 16 16",...t,children:p.jsxRuntimeExports.jsx("path",{fill:"currenColor",d:"M4.427 7.427l3.396 3.396a.25.25 0 00.354 0l3.396-3.396A.25.25 0 0011.396 7H4.604a.25.25 0 00-.177.427z"})})}function qh(t,e){if(t==null)return{};var n={},r=Object.keys(t),s,o;for(o=0;o<r.length;o++)s=r[o],!(e.indexOf(s)>=0)&&(n[s]=t[s]);return n}function ze(){return ze=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},ze.apply(this,arguments)}function qn(t,e){return qn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,s){return r.__proto__=s,r},qn(t,e)}function Gh(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,qn(t,e)}function Pn(t,e,n){if(n||arguments.length===2)for(var r=0,s=e.length,o;r<s;r++)(o||!(r in e))&&(o||(o=Array.prototype.slice.call(e,0,r)),o[r]=e[r]);return t.concat(o||Array.prototype.slice.call(e))}/*!
29
+ * content-type
30
+ * Copyright(c) 2015 Douglas Christopher Wilson
31
+ * MIT Licensed
32
+ */var Hs=/; *([!#$%&'*+.^_`|~0-9A-Za-z-]+) *= *("(?:[\u000b\u0020\u0021\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\u000b\u0020-\u00ff])*"|[!#$%&'*+.^_`|~0-9A-Za-z-]+) */g,Xh=/\\([\u000b\u0020-\u00ff])/g,Kh=/^[!#$%&'*+.^_`|~0-9A-Za-z-]+\/[!#$%&'*+.^_`|~0-9A-Za-z-]+$/,Yh=Jh;function Jh(t){if(!t)throw new TypeError("argument string is required");var e=typeof t=="object"?Zh(t):t;if(typeof e!="string")throw new TypeError("argument string is required to be a string");var n=e.indexOf(";"),r=n!==-1?e.slice(0,n).trim():e.trim();if(!Kh.test(r))throw new TypeError("invalid media type");var s=new Qh(r.toLowerCase());if(n!==-1){var o,i,a;for(Hs.lastIndex=n;i=Hs.exec(e);){if(i.index!==n)throw new TypeError("invalid parameter format");n+=i[0].length,o=i[1].toLowerCase(),a=i[2],a.charCodeAt(0)===34&&(a=a.slice(1,-1),a.indexOf("\\")!==-1&&(a=a.replace(Xh,"$1"))),s.parameters[o]=a}if(n!==e.length)throw new TypeError("invalid parameter format")}return s}function Zh(t){var e;if(typeof t.getHeader=="function"?e=t.getHeader("content-type"):typeof t.headers=="object"&&(e=t.headers&&t.headers["content-type"]),typeof e!="string")throw new TypeError("content-type header is missing from object");return e}function Qh(t){this.parameters=Object.create(null),this.type=t}var It=new Map,Jo=function(e){return e.cloneNode(!0)},$s=function(){return window.location.protocol==="file:"},Zo=function(e,n,r){var s=new XMLHttpRequest;s.onreadystatechange=function(){try{if(!/\.svg/i.test(e)&&s.readyState===2){var o=s.getResponseHeader("Content-Type");if(!o)throw new Error("Content type not found");var i=Yh(o).type;if(!(i==="image/svg+xml"||i==="text/plain"))throw new Error("Invalid content type: ".concat(i))}if(s.readyState===4){if(s.status===404||s.responseXML===null)throw new Error($s()?"Note: SVG injection ajax calls do not work locally without adjusting security settings in your browser. Or consider using a local webserver.":"Unable to load SVG file: "+e);if(s.status===200||$s()&&s.status===0)r(null,s);else throw new Error("There was a problem injecting the SVG: "+s.status+" "+s.statusText)}}catch(a){if(s.abort(),a instanceof Error)r(a,s);else throw a}},s.open("GET",e),s.withCredentials=n,s.overrideMimeType&&s.overrideMimeType("text/xml"),s.send()},xt={},qs=function(e,n){xt[e]=xt[e]||[],xt[e].push(n)},td=function(e){for(var n=function(i,a){setTimeout(function(){if(Array.isArray(xt[e])){var l=It.get(e),u=xt[e][i];l instanceof SVGSVGElement&&u(null,Jo(l)),l instanceof Error&&u(l),i===xt[e].length-1&&delete xt[e]}},0)},r=0,s=xt[e].length;r<s;r++)n(r)},ed=function(e,n,r){if(It.has(e)){var s=It.get(e);if(s===void 0){qs(e,r);return}if(s instanceof SVGSVGElement){r(null,Jo(s));return}}It.set(e,void 0),qs(e,r),Zo(e,n,function(o,i){var a;o?It.set(e,o):((a=i.responseXML)===null||a===void 0?void 0:a.documentElement)instanceof SVGSVGElement&&It.set(e,i.responseXML.documentElement),td(e)})},nd=function(e,n,r){Zo(e,n,function(s,o){var i;s?r(s):((i=o.responseXML)===null||i===void 0?void 0:i.documentElement)instanceof SVGSVGElement&&r(null,o.responseXML.documentElement)})},rd=0,sd=function(){return++rd},nt=[],Gs={},id="http://www.w3.org/2000/svg",An="http://www.w3.org/1999/xlink",Xs=function(e,n,r,s,o,i,a){var l=e.getAttribute("data-src")||e.getAttribute("src");if(!l){a(new Error("Invalid data-src or src attribute"));return}if(nt.indexOf(e)!==-1){nt.splice(nt.indexOf(e),1),e=null;return}nt.push(e),e.setAttribute("src","");var u=s?ed:nd;u(l,o,function(f,c){if(!c){nt.splice(nt.indexOf(e),1),e=null,a(f);return}var h=e.getAttribute("id");h&&c.setAttribute("id",h);var d=e.getAttribute("title");d&&c.setAttribute("title",d);var m=e.getAttribute("width");m&&c.setAttribute("width",m);var g=e.getAttribute("height");g&&c.setAttribute("height",g);var y=Array.from(new Set(Pn(Pn(Pn([],(c.getAttribute("class")||"").split(" "),!0),["injected-svg"],!1),(e.getAttribute("class")||"").split(" "),!0))).join(" ").trim();c.setAttribute("class",y);var b=e.getAttribute("style");b&&c.setAttribute("style",b),c.setAttribute("data-src",l);var w=[].filter.call(e.attributes,function(I){return/^data-\w[\w-]*$/.test(I.name)});if(Array.prototype.forEach.call(w,function(I){I.name&&I.value&&c.setAttribute(I.name,I.value)}),r){var v={clipPath:["clip-path"],"color-profile":["color-profile"],cursor:["cursor"],filter:["filter"],linearGradient:["fill","stroke"],marker:["marker","marker-start","marker-mid","marker-end"],mask:["mask"],path:[],pattern:["fill","stroke"],radialGradient:["fill","stroke"]},E,S,T,P,A;Object.keys(v).forEach(function(I){E=I,T=v[I],S=c.querySelectorAll(E+"[id]");for(var ht=function(_t,ln){P=S[_t].id,A=P+"-"+sd();var Pt;Array.prototype.forEach.call(T,function(cn){Pt=c.querySelectorAll("["+cn+'*="'+P+'"]');for(var ve=0,Ea=Pt.length;ve<Ea;ve++){var Rr=Pt[ve].getAttribute(cn);Rr&&!Rr.match(new RegExp('url\\("?#'+P+'"?\\)'))||Pt[ve].setAttribute(cn,"url(#"+A+")")}});for(var ot=c.querySelectorAll("[*|href]"),Nt=[],Bt=0,Jt=ot.length;Bt<Jt;Bt++){var At=ot[Bt].getAttributeNS(An,"href");At&&At.toString()==="#"+S[_t].id&&Nt.push(ot[Bt])}for(var Z=0,Cr=Nt.length;Z<Cr;Z++)Nt[Z].setAttributeNS(An,"href","#"+A);S[_t].id=A},kt=0,V=S.length;kt<V;kt++)ht(kt)})}c.removeAttribute("xmlns:a");for(var R=c.querySelectorAll("script"),B=[],q,_,W=0,F=R.length;W<F;W++)_=R[W].getAttribute("type"),(!_||_==="application/ecmascript"||_==="application/javascript"||_==="text/javascript")&&(q=R[W].innerText||R[W].textContent,q&&B.push(q),c.removeChild(R[W]));if(B.length>0&&(n==="always"||n==="once"&&!Gs[l])){for(var tt=0,N=B.length;tt<N;tt++)new Function(B[tt])(window);Gs[l]=!0}var et=c.querySelectorAll("style");if(Array.prototype.forEach.call(et,function(I){I.textContent+=""}),c.setAttribute("xmlns",id),c.setAttribute("xmlns:xlink",An),i(c),!e.parentNode){nt.splice(nt.indexOf(e),1),e=null,a(new Error("Parent node is null"));return}e.parentNode.replaceChild(c,e),nt.splice(nt.indexOf(e),1),e=null,a(null,c)})},od=function(e,n){var r=n===void 0?{}:n,s=r.afterAll,o=s===void 0?function(){}:s,i=r.afterEach,a=i===void 0?function(){}:i,l=r.beforeEach,u=l===void 0?function(){}:l,f=r.cacheRequests,c=f===void 0?!0:f,h=r.evalScripts,d=h===void 0?"never":h,m=r.httpRequestWithCredentials,g=m===void 0?!1:m,y=r.renumerateIRIElements,b=y===void 0?!0:y;if(e&&"length"in e)for(var w=0,v=0,E=e.length;v<E;v++)Xs(e[v],d,b,c,g,u,function(S,T){a(S,T),e&&"length"in e&&e.length===++w&&o(w)});else e?Xs(e,d,b,c,g,u,function(S,T){a(S,T),o(1),e=null}):o(0)},ad=function(e){var n=(e==null?void 0:e.ownerDocument)||document;return n.defaultView||window},ld=function(e,n){for(var r in e)if(!(r in n))return!0;for(var s in n)if(e[s]!==n[s])return!0;return!1},cd=["afterInjection","beforeInjection","desc","evalScripts","fallback","httpRequestWithCredentials","loading","renumerateIRIElements","src","title","useRequestCache","wrapper"],Te="http://www.w3.org/2000/svg",Ks="http://www.w3.org/1999/xlink",br=function(t){Gh(e,t);function e(){for(var r,s=arguments.length,o=new Array(s),i=0;i<s;i++)o[i]=arguments[i];return r=t.call.apply(t,[this].concat(o))||this,r.initialState={hasError:!1,isLoading:!0},r.state=r.initialState,r._isMounted=!1,r.reactWrapper=void 0,r.nonReactWrapper=void 0,r.refCallback=function(a){r.reactWrapper=a},r}var n=e.prototype;return n.renderSVG=function(){var s=this;if(this.reactWrapper instanceof ad(this.reactWrapper).Node){var o=this.props,i=o.desc,a=o.evalScripts,l=o.httpRequestWithCredentials,u=o.renumerateIRIElements,f=o.src,c=o.title,h=o.useRequestCache,d=this.props.onError,m=this.props.beforeInjection,g=this.props.afterInjection,y=this.props.wrapper,b,w;y==="svg"?(b=document.createElementNS(Te,y),b.setAttribute("xmlns",Te),b.setAttribute("xmlns:xlink",Ks),w=document.createElementNS(Te,y)):(b=document.createElement(y),w=document.createElement(y)),b.appendChild(w),w.dataset.src=f,this.nonReactWrapper=this.reactWrapper.appendChild(b);var v=function(P){if(s.removeSVG(),!s._isMounted){d(P);return}s.setState(function(){return{hasError:!0,isLoading:!1}},function(){d(P)})},E=function(P,A){if(P){v(P);return}s._isMounted&&s.setState(function(){return{isLoading:!1}},function(){try{g(A)}catch(R){v(R)}})},S=function(P){if(P.setAttribute("role","img"),i){var A=P.querySelector(":scope > desc");A&&P.removeChild(A);var R=document.createElement("desc");R.innerHTML=i,P.prepend(R)}if(c){var B=P.querySelector(":scope > title");B&&P.removeChild(B);var q=document.createElement("title");q.innerHTML=c,P.prepend(q)}try{m(P)}catch(_){v(_)}};od(w,{afterEach:E,beforeEach:S,cacheRequests:h,evalScripts:a,httpRequestWithCredentials:l,renumerateIRIElements:u})}},n.removeSVG=function(){var s;(s=this.nonReactWrapper)!=null&&s.parentNode&&(this.nonReactWrapper.parentNode.removeChild(this.nonReactWrapper),this.nonReactWrapper=null)},n.componentDidMount=function(){this._isMounted=!0,this.renderSVG()},n.componentDidUpdate=function(s){var o=this;ld(ze({},s),this.props)&&this.setState(function(){return o.initialState},function(){o.removeSVG(),o.renderSVG()})},n.componentWillUnmount=function(){this._isMounted=!1,this.removeSVG()},n.render=function(){var s=this.props;s.afterInjection,s.beforeInjection,s.desc,s.evalScripts;var o=s.fallback;s.httpRequestWithCredentials;var i=s.loading;s.renumerateIRIElements,s.src,s.title,s.useRequestCache;var a=s.wrapper,l=qh(s,cd),u=a;return p.reactExports.createElement(u,ze({},l,{ref:this.refCallback},a==="svg"?{xmlns:Te,xmlnsXlink:Ks}:{}),this.state.isLoading&&i&&p.reactExports.createElement(i,null),this.state.hasError&&o&&p.reactExports.createElement(o,null))},e}(p.reactExports.Component);br.defaultProps={afterInjection:function(){},beforeInjection:function(){},desc:"",evalScripts:"never",fallback:null,httpRequestWithCredentials:!1,loading:null,onError:function(){},renumerateIRIElements:!0,title:"",useRequestCache:!0,wrapper:"div"};br.propTypes={afterInjection:p.propTypesExports.func,beforeInjection:p.propTypesExports.func,desc:p.propTypesExports.string,evalScripts:p.propTypesExports.oneOf(["always","once","never"]),fallback:p.propTypesExports.oneOfType([p.propTypesExports.func,p.propTypesExports.object,p.propTypesExports.string]),httpRequestWithCredentials:p.propTypesExports.bool,loading:p.propTypesExports.oneOfType([p.propTypesExports.func,p.propTypesExports.object,p.propTypesExports.string]),onError:p.propTypesExports.func,renumerateIRIElements:p.propTypesExports.bool,src:p.propTypesExports.string.isRequired,title:p.propTypesExports.string,useRequestCache:p.propTypesExports.bool,wrapper:p.propTypesExports.oneOf(["div","span","svg"])};function Qo({item:t,level:e=0,...n}){var b;const{isActive:r,isCollapsed:s,expanded:o,toggleExpand:i}=n,a=`level-${e}`,l=s?"collapsed":"expanded",u=r(t.id)?"active":"",f=(w,v=a)=>`${w} ${v} ${l} ${u}`,c=!!((b=t.children)!=null&&b.length),[h,d]=p.reactExports.useState(!1),m=p.reactExports.useRef();function g(w){var T;const{level:v,hovered:E,parentRef:S}=w;return!c||s&&v>=2&&!E?null:p.jsxRuntimeExports.jsx(Hh,{parentRef:S,onlyChild:!s||s&&v<2,children:p.jsxRuntimeExports.jsx(Yo.div,{className:f("menu-item__dropdown",`level-${v}`),initial:{height:s?"auto":0},animate:{height:s||o(t.id)?"auto":0},transition:{duration:.2},children:(T=t.children)==null?void 0:T.map(P=>p.reactExports.createElement(Qo,{...n,key:P.id,item:P,level:v}))},+s)})}const y=c?"div":Xa;return p.jsxRuntimeExports.jsxs("div",{ref:m,className:f("menu-item__wrapper"),onMouseEnter:()=>s&&d(!0),onMouseLeave:()=>s&&d(!1),children:[p.jsxRuntimeExports.jsxs(y,{to:c?"#":t.path||"#",style:{paddingLeft:`${s?"0.5rem":`${e*1}rem`}`},className:f("menu-item__link"),onClick:w=>{c&&(w.preventDefault(),s||i(t.id))},children:[e!==0&&p.jsxRuntimeExports.jsx(ud,{cls:f,item:t}),p.jsxRuntimeExports.jsx("span",{className:f("menu-item__label"),children:t.name}),c&&p.jsxRuntimeExports.jsx("div",{className:f("menu-item__icon-arrow__wrapper"),children:p.jsxRuntimeExports.jsx($h,{className:f(`menu-item__icon-arrow__icon ${o(t.id)?"open":"close"}`)})})]}),g({level:e+1,hovered:h,parentRef:m})]},t.id)}function ud({item:t,cls:e}){var i,a;const[n,r]=p.reactExports.useState(!1),s=()=>{r(!0)},o=(i=t.icon)==null?void 0:i.endsWith(".svg");return p.jsxRuntimeExports.jsx("div",{className:e("menu-item__icon"),children:n?p.jsxRuntimeExports.jsx("div",{style:{width:24,height:24,backgroundColor:"#dadada",borderRadius:"5px",display:"flex",justifyContent:"center",alignItems:"center"},children:(a=t.name.trim().at(0))==null?void 0:a.toUpperCase()}):o?p.jsxRuntimeExports.jsx(br,{src:t.icon,beforeInjection:l=>{l.setAttribute("style","margin: 0 auto;"),l.querySelectorAll("path").forEach(f=>{f.setAttribute("stroke","currentColor")})}}):p.jsxRuntimeExports.jsx("img",{src:t.icon||"/",alt:" ",style:{height:24,maxHeight:24},onError:s})})}function Ys(t){for(;t.startsWith("/");)t=t.slice(1);return t}function ta(t,e,n=[]){for(const r of t){if(console.log(r.path,e,r.path===e),Ys(r.path||"")===Ys(e))return[...n,r];if(r.children){const s=ta(r.children,e,[...n,r]);if(s)return s}}return null}function fd(t){return p.jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"20",fill:"none",viewBox:"0 0 18 20",...t,children:p.jsxRuntimeExports.jsx("path",{fill:"#E01B00",fillRule:"evenodd",d:"M.179 2.875A2.375 2.375 0 012.554.5h3.393a1.018 1.018 0 010 2.036H2.554a.34.34 0 00-.34.339v14.25c0 .187.152.34.34.34h3.393a1.018 1.018 0 110 2.035H2.554a2.375 2.375 0 01-2.375-2.375V2.875zm14.167 6.107h-7.72a1.018 1.018 0 000 2.036h7.72l-2.673 2.673a1.018 1.018 0 101.44 1.44l4.41-4.411a1.018 1.018 0 000-1.44l-4.41-4.41a1.018 1.018 0 10-1.44 1.439l2.673 2.673z",clipRule:"evenodd"})})}function ea(t,e){return function(){return t.apply(e,arguments)}}const{toString:hd}=Object.prototype,{getPrototypeOf:wr}=Object,nn=(t=>e=>{const n=hd.call(e);return t[n]||(t[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),it=t=>(t=t.toLowerCase(),e=>nn(e)===t),rn=t=>e=>typeof e===t,{isArray:Yt}=Array,fe=rn("undefined");function dd(t){return t!==null&&!fe(t)&&t.constructor!==null&&!fe(t.constructor)&&J(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const na=it("ArrayBuffer");function pd(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&na(t.buffer),e}const md=rn("string"),J=rn("function"),ra=rn("number"),sn=t=>t!==null&&typeof t=="object",gd=t=>t===!0||t===!1,Re=t=>{if(nn(t)!=="object")return!1;const e=wr(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},yd=it("Date"),vd=it("File"),xd=it("Blob"),bd=it("FileList"),wd=t=>sn(t)&&J(t.pipe),Ed=t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||J(t.append)&&((e=nn(t))==="formdata"||e==="object"&&J(t.toString)&&t.toString()==="[object FormData]"))},Sd=it("URLSearchParams"),Td=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function ge(t,e,{allOwnKeys:n=!1}={}){if(t===null||typeof t>"u")return;let r,s;if(typeof t!="object"&&(t=[t]),Yt(t))for(r=0,s=t.length;r<s;r++)e.call(null,t[r],r,t);else{const o=n?Object.getOwnPropertyNames(t):Object.keys(t),i=o.length;let a;for(r=0;r<i;r++)a=o[r],e.call(null,t[a],a,t)}}function sa(t,e){e=e.toLowerCase();const n=Object.keys(t);let r=n.length,s;for(;r-- >0;)if(s=n[r],e===s.toLowerCase())return s;return null}const ia=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),oa=t=>!fe(t)&&t!==ia;function Gn(){const{caseless:t}=oa(this)&&this||{},e={},n=(r,s)=>{const o=t&&sa(e,s)||s;Re(e[o])&&Re(r)?e[o]=Gn(e[o],r):Re(r)?e[o]=Gn({},r):Yt(r)?e[o]=r.slice():e[o]=r};for(let r=0,s=arguments.length;r<s;r++)arguments[r]&&ge(arguments[r],n);return e}const Pd=(t,e,n,{allOwnKeys:r}={})=>(ge(e,(s,o)=>{n&&J(s)?t[o]=ea(s,n):t[o]=s},{allOwnKeys:r}),t),Ad=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),Cd=(t,e,n,r)=>{t.prototype=Object.create(e.prototype,r),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),n&&Object.assign(t.prototype,n)},Rd=(t,e,n,r)=>{let s,o,i;const a={};if(e=e||{},t==null)return e;do{for(s=Object.getOwnPropertyNames(t),o=s.length;o-- >0;)i=s[o],(!r||r(i,t,e))&&!a[i]&&(e[i]=t[i],a[i]=!0);t=n!==!1&&wr(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},Od=(t,e,n)=>{t=String(t),(n===void 0||n>t.length)&&(n=t.length),n-=e.length;const r=t.indexOf(e,n);return r!==-1&&r===n},Vd=t=>{if(!t)return null;if(Yt(t))return t;let e=t.length;if(!ra(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},Md=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&wr(Uint8Array)),jd=(t,e)=>{const r=(t&&t[Symbol.iterator]).call(t);let s;for(;(s=r.next())&&!s.done;){const o=s.value;e.call(t,o[0],o[1])}},Ld=(t,e)=>{let n;const r=[];for(;(n=t.exec(e))!==null;)r.push(n);return r},kd=it("HTMLFormElement"),Dd=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,s){return r.toUpperCase()+s}),Js=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),_d=it("RegExp"),aa=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),r={};ge(n,(s,o)=>{let i;(i=e(s,o,t))!==!1&&(r[o]=i||s)}),Object.defineProperties(t,r)},Nd=t=>{aa(t,(e,n)=>{if(J(t)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=t[n];if(J(r)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Bd=(t,e)=>{const n={},r=s=>{s.forEach(o=>{n[o]=!0})};return Yt(t)?r(t):r(String(t).split(e)),n},Fd=()=>{},Id=(t,e)=>(t=+t,Number.isFinite(t)?t:e),Cn="abcdefghijklmnopqrstuvwxyz",Zs="0123456789",la={DIGIT:Zs,ALPHA:Cn,ALPHA_DIGIT:Cn+Cn.toUpperCase()+Zs},Wd=(t=16,e=la.ALPHA_DIGIT)=>{let n="";const{length:r}=e;for(;t--;)n+=e[Math.random()*r|0];return n};function Ud(t){return!!(t&&J(t.append)&&t[Symbol.toStringTag]==="FormData"&&t[Symbol.iterator])}const zd=t=>{const e=new Array(10),n=(r,s)=>{if(sn(r)){if(e.indexOf(r)>=0)return;if(!("toJSON"in r)){e[s]=r;const o=Yt(r)?[]:{};return ge(r,(i,a)=>{const l=n(i,s+1);!fe(l)&&(o[a]=l)}),e[s]=void 0,o}}return r};return n(t,0)},Hd=it("AsyncFunction"),$d=t=>t&&(sn(t)||J(t))&&J(t.then)&&J(t.catch),x={isArray:Yt,isArrayBuffer:na,isBuffer:dd,isFormData:Ed,isArrayBufferView:pd,isString:md,isNumber:ra,isBoolean:gd,isObject:sn,isPlainObject:Re,isUndefined:fe,isDate:yd,isFile:vd,isBlob:xd,isRegExp:_d,isFunction:J,isStream:wd,isURLSearchParams:Sd,isTypedArray:Md,isFileList:bd,forEach:ge,merge:Gn,extend:Pd,trim:Td,stripBOM:Ad,inherits:Cd,toFlatObject:Rd,kindOf:nn,kindOfTest:it,endsWith:Od,toArray:Vd,forEachEntry:jd,matchAll:Ld,isHTMLForm:kd,hasOwnProperty:Js,hasOwnProp:Js,reduceDescriptors:aa,freezeMethods:Nd,toObjectSet:Bd,toCamelCase:Dd,noop:Fd,toFiniteNumber:Id,findKey:sa,global:ia,isContextDefined:oa,ALPHABET:la,generateString:Wd,isSpecCompliantForm:Ud,toJSONObject:zd,isAsyncFn:Hd,isThenable:$d};function O(t,e,n,r,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",e&&(this.code=e),n&&(this.config=n),r&&(this.request=r),s&&(this.response=s)}x.inherits(O,Error,{toJSON:function(){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:x.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const ca=O.prototype,ua={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(t=>{ua[t]={value:t}});Object.defineProperties(O,ua);Object.defineProperty(ca,"isAxiosError",{value:!0});O.from=(t,e,n,r,s,o)=>{const i=Object.create(ca);return x.toFlatObject(t,i,function(l){return l!==Error.prototype},a=>a!=="isAxiosError"),O.call(i,t.message,e,n,r,s),i.cause=t,i.name=t.name,o&&Object.assign(i,o),i};const qd=null;function Xn(t){return x.isPlainObject(t)||x.isArray(t)}function fa(t){return x.endsWith(t,"[]")?t.slice(0,-2):t}function Qs(t,e,n){return t?t.concat(e).map(function(s,o){return s=fa(s),!n&&o?"["+s+"]":s}).join(n?".":""):e}function Gd(t){return x.isArray(t)&&!t.some(Xn)}const Xd=x.toFlatObject(x,{},null,function(e){return/^is[A-Z]/.test(e)});function on(t,e,n){if(!x.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,n=x.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(g,y){return!x.isUndefined(y[g])});const r=n.metaTokens,s=n.visitor||f,o=n.dots,i=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&x.isSpecCompliantForm(e);if(!x.isFunction(s))throw new TypeError("visitor must be a function");function u(m){if(m===null)return"";if(x.isDate(m))return m.toISOString();if(!l&&x.isBlob(m))throw new O("Blob is not supported. Use a Buffer instead.");return x.isArrayBuffer(m)||x.isTypedArray(m)?l&&typeof Blob=="function"?new Blob([m]):Buffer.from(m):m}function f(m,g,y){let b=m;if(m&&!y&&typeof m=="object"){if(x.endsWith(g,"{}"))g=r?g:g.slice(0,-2),m=JSON.stringify(m);else if(x.isArray(m)&&Gd(m)||(x.isFileList(m)||x.endsWith(g,"[]"))&&(b=x.toArray(m)))return g=fa(g),b.forEach(function(v,E){!(x.isUndefined(v)||v===null)&&e.append(i===!0?Qs([g],E,o):i===null?g:g+"[]",u(v))}),!1}return Xn(m)?!0:(e.append(Qs(y,g,o),u(m)),!1)}const c=[],h=Object.assign(Xd,{defaultVisitor:f,convertValue:u,isVisitable:Xn});function d(m,g){if(!x.isUndefined(m)){if(c.indexOf(m)!==-1)throw Error("Circular reference detected in "+g.join("."));c.push(m),x.forEach(m,function(b,w){(!(x.isUndefined(b)||b===null)&&s.call(e,b,x.isString(w)?w.trim():w,g,h))===!0&&d(b,g?g.concat(w):[w])}),c.pop()}}if(!x.isObject(t))throw new TypeError("data must be an object");return d(t),e}function ti(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(r){return e[r]})}function Er(t,e){this._pairs=[],t&&on(t,this,e)}const ha=Er.prototype;ha.append=function(e,n){this._pairs.push([e,n])};ha.toString=function(e){const n=e?function(r){return e.call(this,r,ti)}:ti;return this._pairs.map(function(s){return n(s[0])+"="+n(s[1])},"").join("&")};function Kd(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function da(t,e,n){if(!e)return t;const r=n&&n.encode||Kd,s=n&&n.serialize;let o;if(s?o=s(e,n):o=x.isURLSearchParams(e)?e.toString():new Er(e,n).toString(r),o){const i=t.indexOf("#");i!==-1&&(t=t.slice(0,i)),t+=(t.indexOf("?")===-1?"?":"&")+o}return t}class Yd{constructor(){this.handlers=[]}use(e,n,r){return this.handlers.push({fulfilled:e,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){x.forEach(this.handlers,function(r){r!==null&&e(r)})}}const ei=Yd,pa={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Jd=typeof URLSearchParams<"u"?URLSearchParams:Er,Zd=typeof FormData<"u"?FormData:null,Qd=typeof Blob<"u"?Blob:null,tp={isBrowser:!0,classes:{URLSearchParams:Jd,FormData:Zd,Blob:Qd},protocols:["http","https","file","blob","url","data"]},ma=typeof window<"u"&&typeof document<"u",ep=(t=>ma&&["ReactNative","NativeScript","NS"].indexOf(t)<0)(typeof navigator<"u"&&navigator.product),np=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),rp=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:ma,hasStandardBrowserEnv:ep,hasStandardBrowserWebWorkerEnv:np},Symbol.toStringTag,{value:"Module"})),rt={...rp,...tp};function sp(t,e){return on(t,new rt.classes.URLSearchParams,Object.assign({visitor:function(n,r,s,o){return rt.isNode&&x.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},e))}function ip(t){return x.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function op(t){const e={},n=Object.keys(t);let r;const s=n.length;let o;for(r=0;r<s;r++)o=n[r],e[o]=t[o];return e}function ga(t){function e(n,r,s,o){let i=n[o++];if(i==="__proto__")return!0;const a=Number.isFinite(+i),l=o>=n.length;return i=!i&&x.isArray(s)?s.length:i,l?(x.hasOwnProp(s,i)?s[i]=[s[i],r]:s[i]=r,!a):((!s[i]||!x.isObject(s[i]))&&(s[i]=[]),e(n,r,s[i],o)&&x.isArray(s[i])&&(s[i]=op(s[i])),!a)}if(x.isFormData(t)&&x.isFunction(t.entries)){const n={};return x.forEachEntry(t,(r,s)=>{e(ip(r),s,n,0)}),n}return null}function ap(t,e,n){if(x.isString(t))try{return(e||JSON.parse)(t),x.trim(t)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(t)}const Sr={transitional:pa,adapter:["xhr","http"],transformRequest:[function(e,n){const r=n.getContentType()||"",s=r.indexOf("application/json")>-1,o=x.isObject(e);if(o&&x.isHTMLForm(e)&&(e=new FormData(e)),x.isFormData(e))return s&&s?JSON.stringify(ga(e)):e;if(x.isArrayBuffer(e)||x.isBuffer(e)||x.isStream(e)||x.isFile(e)||x.isBlob(e))return e;if(x.isArrayBufferView(e))return e.buffer;if(x.isURLSearchParams(e))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let a;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return sp(e,this.formSerializer).toString();if((a=x.isFileList(e))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return on(a?{"files[]":e}:e,l&&new l,this.formSerializer)}}return o||s?(n.setContentType("application/json",!1),ap(e)):e}],transformResponse:[function(e){const n=this.transitional||Sr.transitional,r=n&&n.forcedJSONParsing,s=this.responseType==="json";if(e&&x.isString(e)&&(r&&!this.responseType||s)){const i=!(n&&n.silentJSONParsing)&&s;try{return JSON.parse(e)}catch(a){if(i)throw a.name==="SyntaxError"?O.from(a,O.ERR_BAD_RESPONSE,this,null,this.response):a}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:rt.classes.FormData,Blob:rt.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};x.forEach(["delete","get","head","post","put","patch"],t=>{Sr.headers[t]={}});const Tr=Sr,lp=x.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"]),cp=t=>{const e={};let n,r,s;return t&&t.split(`
33
+ `).forEach(function(i){s=i.indexOf(":"),n=i.substring(0,s).trim().toLowerCase(),r=i.substring(s+1).trim(),!(!n||e[n]&&lp[n])&&(n==="set-cookie"?e[n]?e[n].push(r):e[n]=[r]:e[n]=e[n]?e[n]+", "+r:r)}),e},ni=Symbol("internals");function ee(t){return t&&String(t).trim().toLowerCase()}function Oe(t){return t===!1||t==null?t:x.isArray(t)?t.map(Oe):String(t)}function up(t){const e=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(t);)e[r[1]]=r[2];return e}const fp=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function Rn(t,e,n,r,s){if(x.isFunction(r))return r.call(this,e,n);if(s&&(e=n),!!x.isString(e)){if(x.isString(r))return e.indexOf(r)!==-1;if(x.isRegExp(r))return r.test(e)}}function hp(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,n,r)=>n.toUpperCase()+r)}function dp(t,e){const n=x.toCamelCase(" "+e);["get","set","has"].forEach(r=>{Object.defineProperty(t,r+n,{value:function(s,o,i){return this[r].call(this,e,s,o,i)},configurable:!0})})}class an{constructor(e){e&&this.set(e)}set(e,n,r){const s=this;function o(a,l,u){const f=ee(l);if(!f)throw new Error("header name must be a non-empty string");const c=x.findKey(s,f);(!c||s[c]===void 0||u===!0||u===void 0&&s[c]!==!1)&&(s[c||l]=Oe(a))}const i=(a,l)=>x.forEach(a,(u,f)=>o(u,f,l));return x.isPlainObject(e)||e instanceof this.constructor?i(e,n):x.isString(e)&&(e=e.trim())&&!fp(e)?i(cp(e),n):e!=null&&o(n,e,r),this}get(e,n){if(e=ee(e),e){const r=x.findKey(this,e);if(r){const s=this[r];if(!n)return s;if(n===!0)return up(s);if(x.isFunction(n))return n.call(this,s,r);if(x.isRegExp(n))return n.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,n){if(e=ee(e),e){const r=x.findKey(this,e);return!!(r&&this[r]!==void 0&&(!n||Rn(this,this[r],r,n)))}return!1}delete(e,n){const r=this;let s=!1;function o(i){if(i=ee(i),i){const a=x.findKey(r,i);a&&(!n||Rn(r,r[a],a,n))&&(delete r[a],s=!0)}}return x.isArray(e)?e.forEach(o):o(e),s}clear(e){const n=Object.keys(this);let r=n.length,s=!1;for(;r--;){const o=n[r];(!e||Rn(this,this[o],o,e,!0))&&(delete this[o],s=!0)}return s}normalize(e){const n=this,r={};return x.forEach(this,(s,o)=>{const i=x.findKey(r,o);if(i){n[i]=Oe(s),delete n[o];return}const a=e?hp(o):String(o).trim();a!==o&&delete n[o],n[a]=Oe(s),r[a]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const n=Object.create(null);return x.forEach(this,(r,s)=>{r!=null&&r!==!1&&(n[s]=e&&x.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,n])=>e+": "+n).join(`
34
+ `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...n){const r=new this(e);return n.forEach(s=>r.set(s)),r}static accessor(e){const r=(this[ni]=this[ni]={accessors:{}}).accessors,s=this.prototype;function o(i){const a=ee(i);r[a]||(dp(s,i),r[a]=!0)}return x.isArray(e)?e.forEach(o):o(e),this}}an.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);x.reduceDescriptors(an.prototype,({value:t},e)=>{let n=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(r){this[n]=r}}});x.freezeMethods(an);const ut=an;function On(t,e){const n=this||Tr,r=e||n,s=ut.from(r.headers);let o=r.data;return x.forEach(t,function(a){o=a.call(n,o,s.normalize(),e?e.status:void 0)}),s.normalize(),o}function ya(t){return!!(t&&t.__CANCEL__)}function ye(t,e,n){O.call(this,t??"canceled",O.ERR_CANCELED,e,n),this.name="CanceledError"}x.inherits(ye,O,{__CANCEL__:!0});function pp(t,e,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?t(n):e(new O("Request failed with status code "+n.status,[O.ERR_BAD_REQUEST,O.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const mp=rt.hasStandardBrowserEnv?{write(t,e,n,r,s,o){const i=[t+"="+encodeURIComponent(e)];x.isNumber(n)&&i.push("expires="+new Date(n).toGMTString()),x.isString(r)&&i.push("path="+r),x.isString(s)&&i.push("domain="+s),o===!0&&i.push("secure"),document.cookie=i.join("; ")},read(t){const e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function gp(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function yp(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}function va(t,e){return t&&!gp(e)?yp(t,e):e}const vp=rt.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function s(o){let i=o;return e&&(n.setAttribute("href",i),i=n.href),n.setAttribute("href",i),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=s(window.location.href),function(i){const a=x.isString(i)?s(i):i;return a.protocol===r.protocol&&a.host===r.host}}():function(){return function(){return!0}}();function xp(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function bp(t,e){t=t||10;const n=new Array(t),r=new Array(t);let s=0,o=0,i;return e=e!==void 0?e:1e3,function(l){const u=Date.now(),f=r[o];i||(i=u),n[s]=l,r[s]=u;let c=o,h=0;for(;c!==s;)h+=n[c++],c=c%t;if(s=(s+1)%t,s===o&&(o=(o+1)%t),u-i<e)return;const d=f&&u-f;return d?Math.round(h*1e3/d):void 0}}function ri(t,e){let n=0;const r=bp(50,250);return s=>{const o=s.loaded,i=s.lengthComputable?s.total:void 0,a=o-n,l=r(a),u=o<=i;n=o;const f={loaded:o,total:i,progress:i?o/i:void 0,bytes:a,rate:l||void 0,estimated:l&&i&&u?(i-o)/l:void 0,event:s};f[e?"download":"upload"]=!0,t(f)}}const wp=typeof XMLHttpRequest<"u",Ep=wp&&function(t){return new Promise(function(n,r){let s=t.data;const o=ut.from(t.headers).normalize();let{responseType:i,withXSRFToken:a}=t,l;function u(){t.cancelToken&&t.cancelToken.unsubscribe(l),t.signal&&t.signal.removeEventListener("abort",l)}let f;if(x.isFormData(s)){if(rt.hasStandardBrowserEnv||rt.hasStandardBrowserWebWorkerEnv)o.setContentType(!1);else if((f=o.getContentType())!==!1){const[g,...y]=f?f.split(";").map(b=>b.trim()).filter(Boolean):[];o.setContentType([g||"multipart/form-data",...y].join("; "))}}let c=new XMLHttpRequest;if(t.auth){const g=t.auth.username||"",y=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";o.set("Authorization","Basic "+btoa(g+":"+y))}const h=va(t.baseURL,t.url);c.open(t.method.toUpperCase(),da(h,t.params,t.paramsSerializer),!0),c.timeout=t.timeout;function d(){if(!c)return;const g=ut.from("getAllResponseHeaders"in c&&c.getAllResponseHeaders()),b={data:!i||i==="text"||i==="json"?c.responseText:c.response,status:c.status,statusText:c.statusText,headers:g,config:t,request:c};pp(function(v){n(v),u()},function(v){r(v),u()},b),c=null}if("onloadend"in c?c.onloadend=d:c.onreadystatechange=function(){!c||c.readyState!==4||c.status===0&&!(c.responseURL&&c.responseURL.indexOf("file:")===0)||setTimeout(d)},c.onabort=function(){c&&(r(new O("Request aborted",O.ECONNABORTED,t,c)),c=null)},c.onerror=function(){r(new O("Network Error",O.ERR_NETWORK,t,c)),c=null},c.ontimeout=function(){let y=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded";const b=t.transitional||pa;t.timeoutErrorMessage&&(y=t.timeoutErrorMessage),r(new O(y,b.clarifyTimeoutError?O.ETIMEDOUT:O.ECONNABORTED,t,c)),c=null},rt.hasStandardBrowserEnv&&(a&&x.isFunction(a)&&(a=a(t)),a||a!==!1&&vp(h))){const g=t.xsrfHeaderName&&t.xsrfCookieName&&mp.read(t.xsrfCookieName);g&&o.set(t.xsrfHeaderName,g)}s===void 0&&o.setContentType(null),"setRequestHeader"in c&&x.forEach(o.toJSON(),function(y,b){c.setRequestHeader(b,y)}),x.isUndefined(t.withCredentials)||(c.withCredentials=!!t.withCredentials),i&&i!=="json"&&(c.responseType=t.responseType),typeof t.onDownloadProgress=="function"&&c.addEventListener("progress",ri(t.onDownloadProgress,!0)),typeof t.onUploadProgress=="function"&&c.upload&&c.upload.addEventListener("progress",ri(t.onUploadProgress)),(t.cancelToken||t.signal)&&(l=g=>{c&&(r(!g||g.type?new ye(null,t,c):g),c.abort(),c=null)},t.cancelToken&&t.cancelToken.subscribe(l),t.signal&&(t.signal.aborted?l():t.signal.addEventListener("abort",l)));const m=xp(h);if(m&&rt.protocols.indexOf(m)===-1){r(new O("Unsupported protocol "+m+":",O.ERR_BAD_REQUEST,t));return}c.send(s||null)})},Kn={http:qd,xhr:Ep};x.forEach(Kn,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch{}Object.defineProperty(t,"adapterName",{value:e})}});const si=t=>`- ${t}`,Sp=t=>x.isFunction(t)||t===null||t===!1,xa={getAdapter:t=>{t=x.isArray(t)?t:[t];const{length:e}=t;let n,r;const s={};for(let o=0;o<e;o++){n=t[o];let i;if(r=n,!Sp(n)&&(r=Kn[(i=String(n)).toLowerCase()],r===void 0))throw new O(`Unknown adapter '${i}'`);if(r)break;s[i||"#"+o]=r}if(!r){const o=Object.entries(s).map(([a,l])=>`adapter ${a} `+(l===!1?"is not supported by the environment":"is not available in the build"));let i=e?o.length>1?`since :
35
+ `+o.map(si).join(`
36
+ `):" "+si(o[0]):"as no adapter specified";throw new O("There is no suitable adapter to dispatch the request "+i,"ERR_NOT_SUPPORT")}return r},adapters:Kn};function Vn(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new ye(null,t)}function ii(t){return Vn(t),t.headers=ut.from(t.headers),t.data=On.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),xa.getAdapter(t.adapter||Tr.adapter)(t).then(function(r){return Vn(t),r.data=On.call(t,t.transformResponse,r),r.headers=ut.from(r.headers),r},function(r){return ya(r)||(Vn(t),r&&r.response&&(r.response.data=On.call(t,t.transformResponse,r.response),r.response.headers=ut.from(r.response.headers))),Promise.reject(r)})}const oi=t=>t instanceof ut?t.toJSON():t;function Xt(t,e){e=e||{};const n={};function r(u,f,c){return x.isPlainObject(u)&&x.isPlainObject(f)?x.merge.call({caseless:c},u,f):x.isPlainObject(f)?x.merge({},f):x.isArray(f)?f.slice():f}function s(u,f,c){if(x.isUndefined(f)){if(!x.isUndefined(u))return r(void 0,u,c)}else return r(u,f,c)}function o(u,f){if(!x.isUndefined(f))return r(void 0,f)}function i(u,f){if(x.isUndefined(f)){if(!x.isUndefined(u))return r(void 0,u)}else return r(void 0,f)}function a(u,f,c){if(c in e)return r(u,f);if(c in t)return r(void 0,u)}const l={url:o,method:o,data:o,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:a,headers:(u,f)=>s(oi(u),oi(f),!0)};return x.forEach(Object.keys(Object.assign({},t,e)),function(f){const c=l[f]||s,h=c(t[f],e[f],f);x.isUndefined(h)&&c!==a||(n[f]=h)}),n}const ba="1.6.5",Pr={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{Pr[t]=function(r){return typeof r===t||"a"+(e<1?"n ":" ")+t}});const ai={};Pr.transitional=function(e,n,r){function s(o,i){return"[Axios v"+ba+"] Transitional option '"+o+"'"+i+(r?". "+r:"")}return(o,i,a)=>{if(e===!1)throw new O(s(i," has been removed"+(n?" in "+n:"")),O.ERR_DEPRECATED);return n&&!ai[i]&&(ai[i]=!0,console.warn(s(i," has been deprecated since v"+n+" and will be removed in the near future"))),e?e(o,i,a):!0}};function Tp(t,e,n){if(typeof t!="object")throw new O("options must be an object",O.ERR_BAD_OPTION_VALUE);const r=Object.keys(t);let s=r.length;for(;s-- >0;){const o=r[s],i=e[o];if(i){const a=t[o],l=a===void 0||i(a,o,t);if(l!==!0)throw new O("option "+o+" must be "+l,O.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new O("Unknown option "+o,O.ERR_BAD_OPTION)}}const Yn={assertOptions:Tp,validators:Pr},gt=Yn.validators;class He{constructor(e){this.defaults=e,this.interceptors={request:new ei,response:new ei}}request(e,n){typeof e=="string"?(n=n||{},n.url=e):n=e||{},n=Xt(this.defaults,n);const{transitional:r,paramsSerializer:s,headers:o}=n;r!==void 0&&Yn.assertOptions(r,{silentJSONParsing:gt.transitional(gt.boolean),forcedJSONParsing:gt.transitional(gt.boolean),clarifyTimeoutError:gt.transitional(gt.boolean)},!1),s!=null&&(x.isFunction(s)?n.paramsSerializer={serialize:s}:Yn.assertOptions(s,{encode:gt.function,serialize:gt.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i=o&&x.merge(o.common,o[n.method]);o&&x.forEach(["delete","get","head","post","put","patch","common"],m=>{delete o[m]}),n.headers=ut.concat(i,o);const a=[];let l=!0;this.interceptors.request.forEach(function(g){typeof g.runWhen=="function"&&g.runWhen(n)===!1||(l=l&&g.synchronous,a.unshift(g.fulfilled,g.rejected))});const u=[];this.interceptors.response.forEach(function(g){u.push(g.fulfilled,g.rejected)});let f,c=0,h;if(!l){const m=[ii.bind(this),void 0];for(m.unshift.apply(m,a),m.push.apply(m,u),h=m.length,f=Promise.resolve(n);c<h;)f=f.then(m[c++],m[c++]);return f}h=a.length;let d=n;for(c=0;c<h;){const m=a[c++],g=a[c++];try{d=m(d)}catch(y){g.call(this,y);break}}try{f=ii.call(this,d)}catch(m){return Promise.reject(m)}for(c=0,h=u.length;c<h;)f=f.then(u[c++],u[c++]);return f}getUri(e){e=Xt(this.defaults,e);const n=va(e.baseURL,e.url);return da(n,e.params,e.paramsSerializer)}}x.forEach(["delete","get","head","options"],function(e){He.prototype[e]=function(n,r){return this.request(Xt(r||{},{method:e,url:n,data:(r||{}).data}))}});x.forEach(["post","put","patch"],function(e){function n(r){return function(o,i,a){return this.request(Xt(a||{},{method:e,headers:r?{"Content-Type":"multipart/form-data"}:{},url:o,data:i}))}}He.prototype[e]=n(),He.prototype[e+"Form"]=n(!0)});const Ve=He;class Ar{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(o){n=o});const r=this;this.promise.then(s=>{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](s);r._listeners=null}),this.promise.then=s=>{let o;const i=new Promise(a=>{r.subscribe(a),o=a}).then(s);return i.cancel=function(){r.unsubscribe(o)},i},e(function(o,i,a){r.reason||(r.reason=new ye(o,i,a),n(r.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;const n=this._listeners.indexOf(e);n!==-1&&this._listeners.splice(n,1)}static source(){let e;return{token:new Ar(function(s){e=s}),cancel:e}}}const Pp=Ar;function Ap(t){return function(n){return t.apply(null,n)}}function Cp(t){return x.isObject(t)&&t.isAxiosError===!0}const Jn={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,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity: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};Object.entries(Jn).forEach(([t,e])=>{Jn[e]=t});const Rp=Jn;function wa(t){const e=new Ve(t),n=ea(Ve.prototype.request,e);return x.extend(n,Ve.prototype,e,{allOwnKeys:!0}),x.extend(n,e,null,{allOwnKeys:!0}),n.create=function(s){return wa(Xt(t,s))},n}const D=wa(Tr);D.Axios=Ve;D.CanceledError=ye;D.CancelToken=Pp;D.isCancel=ya;D.VERSION=ba;D.toFormData=on;D.AxiosError=O;D.Cancel=D.CanceledError;D.all=function(e){return Promise.all(e)};D.spread=Ap;D.isAxiosError=Cp;D.mergeConfig=Xt;D.AxiosHeaders=ut;D.formToJSON=t=>ga(x.isHTMLForm(t)?new FormData(t):t);D.getAdapter=xa.getAdapter;D.HttpStatusCode=Rp;D.default=D;const Op=D,Vp=`[data-simplebar]{position:relative;flex-direction:column;flex-wrap:wrap;justify-content:flex-start;align-content:flex-start;align-items:flex-start}.simplebar-wrapper{overflow:hidden;width:inherit;height:inherit;max-width:inherit;max-height:inherit}.simplebar-mask{direction:inherit;position:absolute;overflow:hidden;padding:0;margin:0;left:0;top:0;bottom:0;right:0;width:auto!important;height:auto!important;z-index:0}.simplebar-offset{direction:inherit!important;box-sizing:inherit!important;resize:none!important;position:absolute;top:0;left:0;bottom:0;right:0;padding:0;margin:0;-webkit-overflow-scrolling:touch}.simplebar-content-wrapper{direction:inherit;box-sizing:border-box!important;position:relative;display:block;height:100%;width:auto;max-width:100%;max-height:100%;overflow:auto;scrollbar-width:none;-ms-overflow-style:none}.simplebar-content-wrapper::-webkit-scrollbar,.simplebar-hide-scrollbar::-webkit-scrollbar{display:none;width:0;height:0}.simplebar-content:after,.simplebar-content:before{content:" ";display:table}.simplebar-placeholder{max-height:100%;max-width:100%;width:100%;pointer-events:none}.simplebar-height-auto-observer-wrapper{box-sizing:inherit!important;height:100%;width:100%;max-width:1px;position:relative;float:left;max-height:1px;overflow:hidden;z-index:-1;padding:0;margin:0;pointer-events:none;flex-grow:inherit;flex-shrink:0;flex-basis:0}.simplebar-height-auto-observer{box-sizing:inherit;display:block;opacity:0;position:absolute;top:0;left:0;height:1000%;width:1000%;min-height:1px;min-width:1px;overflow:hidden;pointer-events:none;z-index:-1}.simplebar-track{z-index:1;position:absolute;right:0;bottom:0;pointer-events:none;overflow:hidden}[data-simplebar].simplebar-dragging,[data-simplebar].simplebar-dragging .simplebar-content{pointer-events:none;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}[data-simplebar].simplebar-dragging .simplebar-track{pointer-events:all}.simplebar-scrollbar{position:absolute;left:0;right:0;min-height:10px}.simplebar-scrollbar:before{position:absolute;content:"";background:#000;border-radius:7px;left:2px;right:2px;opacity:0;transition:opacity .2s .5s linear}.simplebar-scrollbar.simplebar-visible:before{opacity:.5;transition-delay:0s;transition-duration:0s}.simplebar-track.simplebar-vertical{top:0;width:11px}.simplebar-scrollbar:before{top:2px;bottom:2px;left:2px;right:2px}.simplebar-track.simplebar-horizontal{left:0;height:11px}.simplebar-track.simplebar-horizontal .simplebar-scrollbar{right:auto;left:0;top:0;bottom:0;min-height:0;min-width:10px;width:auto}[data-simplebar-direction=rtl] .simplebar-track.simplebar-vertical{right:auto;left:0}.simplebar-dummy-scrollbar-size{direction:rtl;position:fixed;opacity:0;visibility:hidden;height:500px;width:500px;overflow-y:hidden;overflow-x:scroll;-ms-overflow-style:scrollbar!important}.simplebar-dummy-scrollbar-size>div{width:200%;height:200%;margin:10px 0}.simplebar-hide-scrollbar{position:fixed;left:0;visibility:hidden;overflow-y:scroll;scrollbar-width:none;-ms-overflow-style:none}
37
+ `;function Mp(){return p.jsxRuntimeExports.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24",children:[p.jsxRuntimeExports.jsx("path",{stroke:"#85858A",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",d:"M22 8.27V4.23C22 2.64 21.36 2 19.77 2h-4.04c-1.59 0-2.23.64-2.23 2.23v4.04c0 1.59.64 2.23 2.23 2.23h4.04c1.59 0 2.23-.64 2.23-2.23zM10.5 8.52V3.98C10.5 2.57 9.86 2 8.27 2H4.23C2.64 2 2 2.57 2 3.98v4.53c0 1.42.64 1.98 2.23 1.98h4.04c1.59.01 2.23-.56 2.23-1.97zM10.5 19.77v-4.04c0-1.59-.64-2.23-2.23-2.23H4.23c-1.59 0-2.23.64-2.23 2.23v4.04C2 21.36 2.64 22 4.23 22h4.04c1.59 0 2.23-.64 2.23-2.23z"}),p.jsxRuntimeExports.jsx("path",{stroke:"#85858A",strokeLinecap:"round",strokeWidth:"1.5",d:"M15 15.5h6M15 19.5h6"})]})}function jp(){return p.jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24",children:p.jsxRuntimeExports.jsx("path",{stroke:"#85858A",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",d:"M22 8.52V3.98C22 2.57 21.36 2 19.77 2h-4.04c-1.59 0-2.23.57-2.23 1.98v4.53c0 1.42.64 1.98 2.23 1.98h4.04c1.59.01 2.23-.56 2.23-1.97zM22 19.77v-4.04c0-1.59-.64-2.23-2.23-2.23h-4.04c-1.59 0-2.23.64-2.23 2.23v4.04c0 1.59.64 2.23 2.23 2.23h4.04c1.59 0 2.23-.64 2.23-2.23zM10.5 8.52V3.98C10.5 2.57 9.86 2 8.27 2H4.23C2.64 2 2 2.57 2 3.98v4.53c0 1.42.64 1.98 2.23 1.98h4.04c1.59.01 2.23-.56 2.23-1.97zM10.5 19.77v-4.04c0-1.59-.64-2.23-2.23-2.23H4.23c-1.59 0-2.23.64-2.23 2.23v4.04C2 21.36 2.64 22 4.23 22h4.04c1.59 0 2.23-.64 2.23-2.23z"})})}const Lp=`.side-bar{display:flex;flex-direction:column;max-width:18rem;height:calc(100vh - 64px);border-right:1px solid #ddd;background-color:#fafafa;transition:all .3s;padding:0 8px}.side-bar.expanded{width:18rem}.side-bar.collapsed{width:64px;padding-left:4px;padding-right:4px}.side-bar__menu{margin-left:-8px;margin-right:-8px;padding-left:8px;padding-right:8px}.side-bar__menu.collapsed{margin-left:-4px;margin-right:-4px;padding-left:4px;padding-right:4px}.side-bar__wrap-btn-logout,.side-bar__btn-logout{margin:40px 0}.side-bar__logout-btn__text{margin-left:12px}.side-bar__logout-btn__text.collapsed{display:none}.side-bar__wrapper-toggle-btn{display:flex;flex-direction:row;justify-content:flex-end;transition:all .3s;margin-right:-8px;margin-top:40px}.side-bar__wrapper-toggle-btn.collapsed{justify-content:center;width:100%}.side-bar__toggle-btn{margin-top:-6px}.side-bar__logout-btn{width:100%;text-align:left;display:flex;flex-direction:row;align-items:center;padding:0 16px;min-height:48px;border-radius:.375rem}.side-bar__logout-btn:hover{background-color:#919eab14}.side-bar__logout-btn.collapsed{justify-content:center}.menu-item__wrapper{display:flex;flex-direction:column;position:relative;width:100%;margin-top:4px}.menu-item__wrapper:first-child,.menu-item__wrapper.collapsed{margin-top:0}.menu-item__wrapper.collapsed.level-1{margin-top:4px}.menu-item__link{display:flex;flex-direction:row;border-radius:.375rem;align-items:center;padding:.5rem;position:relative;height:48px;cursor:pointer;color:#85858a}.menu-item__link:hover{background-color:#919eab14}.menu-item__link.active{background-color:#009d4f1a!important;color:#009d4f!important}.menu-item__link.level-0{height:auto}.menu-item__link.menu-item__link.collapsed.level-0{display:none}.menu-item__icon{width:1.5rem;height:1.5rem;flex-shrink:0}.menu-item__icon.collapsed.level-1{width:100%}.menu-item__icon.collapsed.level-1>*{margin:0 auto}.menu-item__label{font-size:.875rem;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;width:100%;flex-shrink:1;margin-left:12px;padding-right:12px;color:#292929}.menu-item__label.active{color:inherit}.menu-item__label.collapsed{margin-left:8px;font-size:.75rem;line-height:1rem}.menu-item__label.collapsed.level-1{text-align:center;margin-left:0;display:none}.menu-item__label.level-0{color:#85858a}.menu-item__icon-arrow__wrapper{display:grid;place-items:center;position:absolute;top:50%;transform:translateY(-50%);right:-3px}.menu-item__icon-arrow__wrapper.expanded{right:0}.menu-item__icon-arrow__icon{transition:all .3s!important;transform:rotate(-90deg)!important}.menu-item__icon-arrow__icon.active{color:inherit}.menu-item__icon-arrow__icon.expanded.open{transform:rotate(0)!important}.menu-item__dropdown.collapsed{background-color:#fafafa;border:1px solid #ddd;box-shadow:#0000001a 0 10px 15px -3px,#0000000d 0 4px 6px -2px;border-radius:4px;width:180px;max-width:180px;padding:4px;z-index:1200}.menu-item__dropdown.collapsed .menu-item__link{height:40px}.menu-item__dropdown.collapsed .menu-item__link.level-1{height:48px}.menu-item__dropdown.collapsed.level-1{width:auto;max-width:unset;box-shadow:none;border:none;padding:0;background-color:unset}.menu-item__dropdown.expanded{margin-top:4px;overflow:hidden}.icon-btn{display:inline-flex;align-items:center;justify-content:center;padding:8px;border-radius:50%;background-color:transparent;transition:background-color .3s ease;border:none}.icon-btn:hover{background-color:var(--btn-bg-hover)}.simplebar-scrollbar:before{background-color:#0000002d}
38
+ `;function kp(t){return p.jsxRuntimeExports.jsx(p.ShadowDomWrapper,{styles:[Vp,Lp],style:{zIndex:1200},children:p.jsxRuntimeExports.jsx(Dp,{...t})})}function Dp(t){const{baseUrl:e,menuPath:n,logout:r}=t,s=Xe(),[o,i]=p.reactExports.useState([]),[a,l]=p.reactExports.useState(!1),u=(ta(o,s.pathname)||[]).filter(w=>w.parentKey!==0),[f,c]=p.reactExports.useState({}),h=w=>{c({...f,[w]:!f[w]})},d=()=>{l(!a)};p.reactExports.useEffect(()=>{(async()=>{const v=e+(n||"/global-menu-config/api/v1/menu-items/user"),E=await Op.get(v,{withCredentials:!0}).then(T=>T.data),S={};E.forEach(T=>{T.children&&(S[T.id]=!0)}),c(S),i(E.map(T=>({...T,parentKey:0})))})()},[e,n]);const[m,g]=p.reactExports.useState(!1),y=a?"collapsed":"expanded",b=w=>`${w} ${y}`;return p.jsxRuntimeExports.jsxs("div",{className:b("side-bar"),children:[p.jsxRuntimeExports.jsx("div",{className:b("side-bar__wrapper-toggle-btn"),children:p.jsxRuntimeExports.jsx("button",{className:"icon-btn side-bar__toggle-btn",onClick:d,children:a?p.jsxRuntimeExports.jsx(Mp,{}):p.jsxRuntimeExports.jsx(jp,{})})}),p.jsxRuntimeExports.jsx(Ci,{className:b("side-bar__menu"),style:{marginTop:24,flex:1,overflow:"auto",height:"100%",overflowX:"hidden"},children:o.map(w=>{const v=E=>u.some(S=>S.id===E);return p.jsxRuntimeExports.jsx(Qo,{item:w,isActive:v,isCollapsed:a,expanded:E=>f[E],toggleExpand:h},w.id)})}),p.jsxRuntimeExports.jsxs("div",{className:b("side-bar__wrap-btn-logout"),children:[p.jsxRuntimeExports.jsxs("button",{className:b("side-bar__logout-btn"),onClick:()=>g(!0),children:[p.jsxRuntimeExports.jsx(fd,{}),p.jsxRuntimeExports.jsx("span",{className:b("side-bar__logout-btn__text"),children:"Logout"})]}),p.jsxRuntimeExports.jsx(p.LogoutConfirmModal,{isOpen:m,onClose:()=>g(!1),onConfirm:r})]})]})}function _p(t){return p.jsxRuntimeExports.jsx($a,{children:p.jsxRuntimeExports.jsx(kp,{...t})})}const Np=p.s(_p,{props:{baseUrl:"string",menuPath:"string",logout:"function"}});customElements.define("global-menu",Np);