@ukpc-lib/react 0.1.7 → 0.1.8

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.
@@ -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 fe(){return fe=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},fe.apply(this,arguments)}var Mt;(function(t){t.Pop="POP",t.Push="PUSH",t.Replace="REPLACE"})(Mt||(Mt={}));const Fr="popstate";function Fa(t){t===void 0&&(t={});function e(r,i){let{pathname:o,search:s,hash:a}=r.location;return Fn("",{pathname:o,search:s,hash:a},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function n(r,i){return typeof i=="string"?i:_e(i)}return Ba(e,n,null,t)}function tt(t,e){if(t===!1||t===null||typeof t>"u")throw new Error(e)}function Na(){return Math.random().toString(36).substr(2,8)}function Nr(t,e){return{usr:t.state,key:t.key,idx:e}}function Fn(t,e,n,r){return n===void 0&&(n=null),fe({pathname:typeof t=="string"?t:t.pathname,search:"",hash:""},typeof e=="string"?Je(e):e,{state:n,key:e&&e.key||r||Na()})}function _e(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 Je(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 Ba(t,e,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:o=!1}=r,s=i.history,a=Mt.Pop,l=null,u=f();u==null&&(u=0,s.replaceState(fe({},s.state,{idx:u}),""));function f(){return(s.state||{idx:null}).idx}function c(){a=Mt.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=Mt.Push;let w=Fn(g.location,y,b);n&&n(w,y),u=f()+1;let v=Nr(w,u),E=g.createHref(w);try{s.pushState(v,"",E)}catch(T){if(T instanceof DOMException&&T.name==="DataCloneError")throw T;i.location.assign(E)}o&&l&&l({action:a,location:g.location,delta:1})}function d(y,b){a=Mt.Replace;let w=Fn(g.location,y,b);n&&n(w,y),u=f();let v=Nr(w,u),E=g.createHref(w);s.replaceState(v,"",E),o&&l&&l({action:a,location:g.location,delta:0})}function m(y){let b=i.location.origin!=="null"?i.location.origin:i.location.href,w=typeof y=="string"?y:_e(y);return tt(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(i,s)},listen(y){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(Fr,c),l=y,()=>{i.removeEventListener(Fr,c),l=null}},createHref(y){return e(i,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 s.go(y)}};return g}var Br;(function(t){t.data="data",t.deferred="deferred",t.redirect="redirect",t.error="error"})(Br||(Br={}));function xs(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 Ia(t,e){e===void 0&&(e="/");let{pathname:n,search:r="",hash:i=""}=typeof t=="string"?Je(t):t;return{pathname:n?n.startsWith("/")?n:Wa(n,e):e,search:za(r),hash:Ha(i)}}function Wa(t,e){let n=e.replace(/\/+$/,"").split("/");return t.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function gn(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 Ua(t){return t.filter((e,n)=>n===0||e.route.path&&e.route.path.length>0)}function bs(t,e){let n=Ua(t);return e?n.map((r,i)=>i===t.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function ws(t,e,n,r){r===void 0&&(r=!1);let i;typeof t=="string"?i=Je(t):(i=fe({},t),tt(!i.pathname||!i.pathname.includes("?"),gn("?","pathname","search",i)),tt(!i.pathname||!i.pathname.includes("#"),gn("#","pathname","hash",i)),tt(!i.search||!i.search.includes("#"),gn("#","search","hash",i)));let o=t===""||i.pathname==="",s=o?"/":i.pathname,a;if(s==null)a=n;else{let c=e.length-1;if(!r&&s.startsWith("..")){let h=s.split("/");for(;h[0]==="..";)h.shift(),c-=1;i.pathname=h.join("/")}a=c>=0?e[c]:"/"}let l=Ia(i,a),u=s&&s!=="/"&&s.endsWith("/"),f=(o||s===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(u||f)&&(l.pathname+="/"),l}const Es=t=>t.join("/").replace(/\/\/+/g,"/"),za=t=>!t||t==="?"?"":t.startsWith("?")?t:"?"+t,Ha=t=>!t||t==="#"?"":t.startsWith("#")?t:"#"+t,Ss=["post","put","patch","delete"];new Set(Ss);const $a=["get",...Ss];new Set($a);/**
10
+ */function fe(){return fe=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},fe.apply(this,arguments)}var Mt;(function(t){t.Pop="POP",t.Push="PUSH",t.Replace="REPLACE"})(Mt||(Mt={}));const Fr="popstate";function Fa(t){t===void 0&&(t={});function e(r,i){let{pathname:o,search:s,hash:a}=r.location;return Fn("",{pathname:o,search:s,hash:a},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function n(r,i){return typeof i=="string"?i:_e(i)}return Ba(e,n,null,t)}function tt(t,e){if(t===!1||t===null||typeof t>"u")throw new Error(e)}function Na(){return Math.random().toString(36).substr(2,8)}function Nr(t,e){return{usr:t.state,key:t.key,idx:e}}function Fn(t,e,n,r){return n===void 0&&(n=null),fe({pathname:typeof t=="string"?t:t.pathname,search:"",hash:""},typeof e=="string"?Je(e):e,{state:n,key:e&&e.key||r||Na()})}function _e(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 Je(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 Ba(t,e,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:o=!1}=r,s=i.history,a=Mt.Pop,l=null,c=f();c==null&&(c=0,s.replaceState(fe({},s.state,{idx:c}),""));function f(){return(s.state||{idx:null}).idx}function u(){a=Mt.Pop;let y=f(),x=y==null?null:y-c;c=y,l&&l({action:a,location:g.location,delta:x})}function h(y,x){a=Mt.Push;let w=Fn(g.location,y,x);n&&n(w,y),c=f()+1;let v=Nr(w,c),E=g.createHref(w);try{s.pushState(v,"",E)}catch(S){if(S instanceof DOMException&&S.name==="DataCloneError")throw S;i.location.assign(E)}o&&l&&l({action:a,location:g.location,delta:1})}function d(y,x){a=Mt.Replace;let w=Fn(g.location,y,x);n&&n(w,y),c=f();let v=Nr(w,c),E=g.createHref(w);s.replaceState(v,"",E),o&&l&&l({action:a,location:g.location,delta:0})}function m(y){let x=i.location.origin!=="null"?i.location.origin:i.location.href,w=typeof y=="string"?y:_e(y);return tt(x,"No window.location.(origin|href) available to create URL for href: "+w),new URL(w,x)}let g={get action(){return a},get location(){return t(i,s)},listen(y){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(Fr,u),l=y,()=>{i.removeEventListener(Fr,u),l=null}},createHref(y){return e(i,y)},createURL:m,encodeLocation(y){let x=m(y);return{pathname:x.pathname,search:x.search,hash:x.hash}},push:h,replace:d,go(y){return s.go(y)}};return g}var Br;(function(t){t.data="data",t.deferred="deferred",t.redirect="redirect",t.error="error"})(Br||(Br={}));function xs(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 Ia(t,e){e===void 0&&(e="/");let{pathname:n,search:r="",hash:i=""}=typeof t=="string"?Je(t):t;return{pathname:n?n.startsWith("/")?n:Wa(n,e):e,search:za(r),hash:Ha(i)}}function Wa(t,e){let n=e.replace(/\/+$/,"").split("/");return t.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function gn(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 Ua(t){return t.filter((e,n)=>n===0||e.route.path&&e.route.path.length>0)}function bs(t,e){let n=Ua(t);return e?n.map((r,i)=>i===t.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function ws(t,e,n,r){r===void 0&&(r=!1);let i;typeof t=="string"?i=Je(t):(i=fe({},t),tt(!i.pathname||!i.pathname.includes("?"),gn("?","pathname","search",i)),tt(!i.pathname||!i.pathname.includes("#"),gn("#","pathname","hash",i)),tt(!i.search||!i.search.includes("#"),gn("#","search","hash",i)));let o=t===""||i.pathname==="",s=o?"/":i.pathname,a;if(s==null)a=n;else{let u=e.length-1;if(!r&&s.startsWith("..")){let h=s.split("/");for(;h[0]==="..";)h.shift(),u-=1;i.pathname=h.join("/")}a=u>=0?e[u]:"/"}let l=Ia(i,a),c=s&&s!=="/"&&s.endsWith("/"),f=(o||s===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(c||f)&&(l.pathname+="/"),l}const Es=t=>t.join("/").replace(/\/\/+/g,"/"),za=t=>!t||t==="?"?"":t.startsWith("?")?t:"?"+t,Ha=t=>!t||t==="#"?"":t.startsWith("#")?t:"#"+t,Ss=["post","put","patch","delete"];new Set(Ss);const $a=["get",...Ss];new Set($a);/**
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 Fe(){return Fe=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},Fe.apply(this,arguments)}const Ts=p.reactExports.createContext(null),Jt=p.reactExports.createContext(null),sr=p.reactExports.createContext(null),Ze=p.reactExports.createContext({outlet:null,matches:[],isDataRoute:!1});function qa(t,e){let{relative:n}=e===void 0?{}:e;Qe()||tt(!1);let{basename:r,navigator:i}=p.reactExports.useContext(Jt),{hash:o,pathname:s,search:a}=Ps(t,{relative:n}),l=s;return r!=="/"&&(l=s==="/"?r:Es([r,s])),i.createHref({pathname:l,search:a,hash:o})}function Qe(){return p.reactExports.useContext(sr)!=null}function tn(){return Qe()||tt(!1),p.reactExports.useContext(sr).location}function As(t){p.reactExports.useContext(Jt).static||p.reactExports.useLayoutEffect(t)}function Ga(){let{isDataRoute:t}=p.reactExports.useContext(Ze);return t?Za():Xa()}function Xa(){Qe()||tt(!1);let t=p.reactExports.useContext(Ts),{basename:e,future:n,navigator:r}=p.reactExports.useContext(Jt),{matches:i}=p.reactExports.useContext(Ze),{pathname:o}=tn(),s=JSON.stringify(bs(i,n.v7_relativeSplatPath)),a=p.reactExports.useRef(!1);return As(()=>{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=ws(u,JSON.parse(s),o,f.relative==="path");t==null&&e!=="/"&&(c.pathname=c.pathname==="/"?e:Es([e,c.pathname])),(f.replace?r.replace:r.push)(c,f.state,f)},[e,r,s,o,t])}function Ps(t,e){let{relative:n}=e===void 0?{}:e,{future:r}=p.reactExports.useContext(Jt),{matches:i}=p.reactExports.useContext(Ze),{pathname:o}=tn(),s=JSON.stringify(bs(i,r.v7_relativeSplatPath));return p.reactExports.useMemo(()=>ws(t,JSON.parse(s),o,n==="path"),[t,s,o,n])}var Cs=function(t){return t.UseBlocker="useBlocker",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate",t}(Cs||{}),Rs=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}(Rs||{});function Ka(t){let e=p.reactExports.useContext(Ts);return e||tt(!1),e}function Ya(t){let e=p.reactExports.useContext(Ze);return e||tt(!1),e}function Ja(t){let e=Ya(),n=e.matches[e.matches.length-1];return n.route.id||tt(!1),n.route.id}function Za(){let{router:t}=Ka(Cs.UseNavigateStable),e=Ja(Rs.UseNavigateStable),n=p.reactExports.useRef(!1);return As(()=>{n.current=!0}),p.reactExports.useCallback(function(i,o){o===void 0&&(o={}),n.current&&(typeof i=="number"?t.navigate(i):t.navigate(i,Fe({fromRouteId:e},o)))},[t,e])}function Qa(t){let{basename:e="/",children:n=null,location:r,navigationType:i=Mt.Pop,navigator:o,static:s=!1,future:a}=t;Qe()&&tt(!1);let l=e.replace(/^\/*/,"/"),u=p.reactExports.useMemo(()=>({basename:l,navigator:o,static:s,future:Fe({v7_relativeSplatPath:!1},a)}),[l,a,o,s]);typeof r=="string"&&(r=Je(r));let{pathname:f="/",search:c="",hash:h="",state:d=null,key:m="default"}=r,g=p.reactExports.useMemo(()=>{let y=xs(f,l);return y==null?null:{location:{pathname:y,search:c,hash:h,state:d,key:m},navigationType:i}},[l,f,c,h,d,m,i]);return g==null?null:p.reactExports.createElement(Jt.Provider,{value:u},p.reactExports.createElement(sr.Provider,{children:n,value:g}))}new Promise(()=>{});/**
19
+ */function Fe(){return Fe=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},Fe.apply(this,arguments)}const Ts=p.reactExports.createContext(null),Jt=p.reactExports.createContext(null),sr=p.reactExports.createContext(null),Ze=p.reactExports.createContext({outlet:null,matches:[],isDataRoute:!1});function qa(t,e){let{relative:n}=e===void 0?{}:e;Qe()||tt(!1);let{basename:r,navigator:i}=p.reactExports.useContext(Jt),{hash:o,pathname:s,search:a}=Ps(t,{relative:n}),l=s;return r!=="/"&&(l=s==="/"?r:Es([r,s])),i.createHref({pathname:l,search:a,hash:o})}function Qe(){return p.reactExports.useContext(sr)!=null}function tn(){return Qe()||tt(!1),p.reactExports.useContext(sr).location}function As(t){p.reactExports.useContext(Jt).static||p.reactExports.useLayoutEffect(t)}function Ga(){let{isDataRoute:t}=p.reactExports.useContext(Ze);return t?Za():Xa()}function Xa(){Qe()||tt(!1);let t=p.reactExports.useContext(Ts),{basename:e,future:n,navigator:r}=p.reactExports.useContext(Jt),{matches:i}=p.reactExports.useContext(Ze),{pathname:o}=tn(),s=JSON.stringify(bs(i,n.v7_relativeSplatPath)),a=p.reactExports.useRef(!1);return As(()=>{a.current=!0}),p.reactExports.useCallback(function(c,f){if(f===void 0&&(f={}),!a.current)return;if(typeof c=="number"){r.go(c);return}let u=ws(c,JSON.parse(s),o,f.relative==="path");t==null&&e!=="/"&&(u.pathname=u.pathname==="/"?e:Es([e,u.pathname])),(f.replace?r.replace:r.push)(u,f.state,f)},[e,r,s,o,t])}function Ps(t,e){let{relative:n}=e===void 0?{}:e,{future:r}=p.reactExports.useContext(Jt),{matches:i}=p.reactExports.useContext(Ze),{pathname:o}=tn(),s=JSON.stringify(bs(i,r.v7_relativeSplatPath));return p.reactExports.useMemo(()=>ws(t,JSON.parse(s),o,n==="path"),[t,s,o,n])}var Cs=function(t){return t.UseBlocker="useBlocker",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate",t}(Cs||{}),Rs=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}(Rs||{});function Ka(t){let e=p.reactExports.useContext(Ts);return e||tt(!1),e}function Ya(t){let e=p.reactExports.useContext(Ze);return e||tt(!1),e}function Ja(t){let e=Ya(),n=e.matches[e.matches.length-1];return n.route.id||tt(!1),n.route.id}function Za(){let{router:t}=Ka(Cs.UseNavigateStable),e=Ja(Rs.UseNavigateStable),n=p.reactExports.useRef(!1);return As(()=>{n.current=!0}),p.reactExports.useCallback(function(i,o){o===void 0&&(o={}),n.current&&(typeof i=="number"?t.navigate(i):t.navigate(i,Fe({fromRouteId:e},o)))},[t,e])}function Qa(t){let{basename:e="/",children:n=null,location:r,navigationType:i=Mt.Pop,navigator:o,static:s=!1,future:a}=t;Qe()&&tt(!1);let l=e.replace(/^\/*/,"/"),c=p.reactExports.useMemo(()=>({basename:l,navigator:o,static:s,future:Fe({v7_relativeSplatPath:!1},a)}),[l,a,o,s]);typeof r=="string"&&(r=Je(r));let{pathname:f="/",search:u="",hash:h="",state:d=null,key:m="default"}=r,g=p.reactExports.useMemo(()=>{let y=xs(f,l);return y==null?null:{location:{pathname:y,search:u,hash:h,state:d,key:m},navigationType:i}},[l,f,u,h,d,m,i]);return g==null?null:p.reactExports.createElement(Jt.Provider,{value:c},p.reactExports.createElement(sr.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,14 +25,14 @@
25
25
  * LICENSE.md file in the root directory of this source tree.
26
26
  *
27
27
  * @license MIT
28
- */function Nn(){return Nn=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},Nn.apply(this,arguments)}function tl(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,o;for(o=0;o<r.length;o++)i=r[o],!(e.indexOf(i)>=0)&&(n[i]=t[i]);return n}function el(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}function nl(t,e){return t.button===0&&(!e||e==="_self")&&!el(t)}const rl=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],il="startTransition",Ir=p.React[il];function sl(t){let{basename:e,children:n,future:r,window:i}=t,o=p.reactExports.useRef();o.current==null&&(o.current=Fa({window:i,v5Compat:!0}));let s=o.current,[a,l]=p.reactExports.useState({action:s.action,location:s.location}),{v7_startTransition:u}=r||{},f=p.reactExports.useCallback(c=>{u&&Ir?Ir(()=>l(c)):l(c)},[l,u]);return p.reactExports.useLayoutEffect(()=>s.listen(f),[s,f]),p.reactExports.createElement(Qa,{basename:e,children:n,location:a.location,navigationType:a.action,navigator:s,future:r})}const ol=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",al=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,ll=p.reactExports.forwardRef(function(e,n){let{onClick:r,relative:i,reloadDocument:o,replace:s,state:a,target:l,to:u,preventScrollReset:f,unstable_viewTransition:c}=e,h=tl(e,rl),{basename:d}=p.reactExports.useContext(Jt),m,g=!1;if(typeof u=="string"&&al.test(u)&&(m=u,ol))try{let v=new URL(window.location.href),E=u.startsWith("//")?new URL(v.protocol+u):new URL(u),T=xs(E.pathname,d);E.origin===v.origin&&T!=null?u=T+E.search+E.hash:g=!0}catch{}let y=qa(u,{relative:i}),b=cl(u,{replace:s,state:a,target:l,preventScrollReset:f,relative:i,unstable_viewTransition:c});function w(v){r&&r(v),v.defaultPrevented||b(v)}return p.reactExports.createElement("a",Nn({},h,{href:m||y,onClick:g||o?r:w,ref:n,target:l}))});var Wr;(function(t){t.UseScrollRestoration="useScrollRestoration",t.UseSubmit="useSubmit",t.UseSubmitFetcher="useSubmitFetcher",t.UseFetcher="useFetcher",t.useViewTransitionState="useViewTransitionState"})(Wr||(Wr={}));var Ur;(function(t){t.UseFetcher="useFetcher",t.UseFetchers="useFetchers",t.UseScrollRestoration="useScrollRestoration"})(Ur||(Ur={}));function cl(t,e){let{target:n,replace:r,state:i,preventScrollReset:o,relative:s,unstable_viewTransition:a}=e===void 0?{}:e,l=Ga(),u=tn(),f=Ps(t,{relative:s});return p.reactExports.useCallback(c=>{if(nl(c,n)){c.preventDefault();let h=r!==void 0?r:_e(u)===_e(f);l(t,{replace:h,state:i,preventScrollReset:o,relative:s,unstable_viewTransition:a})}},[u,l,f,r,i,n,t,o,s,a])}var ul=typeof global=="object"&&global&&global.Object===Object&&global;const fl=ul;var hl=typeof self=="object"&&self&&self.Object===Object&&self,dl=fl||hl||Function("return this")();const Os=dl;var pl=Os.Symbol;const Ne=pl;var Vs=Object.prototype,ml=Vs.hasOwnProperty,gl=Vs.toString,te=Ne?Ne.toStringTag:void 0;function yl(t){var e=ml.call(t,te),n=t[te];try{t[te]=void 0;var r=!0}catch{}var i=gl.call(t);return r&&(e?t[te]=n:delete t[te]),i}var vl=Object.prototype,xl=vl.toString;function bl(t){return xl.call(t)}var wl="[object Null]",El="[object Undefined]",zr=Ne?Ne.toStringTag:void 0;function Sl(t){return t==null?t===void 0?El:wl:zr&&zr in Object(t)?yl(t):bl(t)}function Tl(t){return t!=null&&typeof t=="object"}var Al="[object Symbol]";function Pl(t){return typeof t=="symbol"||Tl(t)&&Sl(t)==Al}var Cl=/\s/;function Rl(t){for(var e=t.length;e--&&Cl.test(t.charAt(e)););return e}var Ol=/^\s+/;function Vl(t){return t&&t.slice(0,Rl(t)+1).replace(Ol,"")}function Be(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var Hr=0/0,kl=/^[-+]0x[0-9a-f]+$/i,Ml=/^0b[01]+$/i,jl=/^0o[0-7]+$/i,Ll=parseInt;function $r(t){if(typeof t=="number")return t;if(Pl(t))return Hr;if(Be(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=Be(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=Vl(t);var n=Ml.test(t);return n||jl.test(t)?Ll(t.slice(2),n?2:8):kl.test(t)?Hr:+t}var Dl=function(){return Os.Date.now()};const yn=Dl;var _l="Expected a function",Fl=Math.max,Nl=Math.min;function Ve(t,e,n){var r,i,o,s,a,l,u=0,f=!1,c=!1,h=!0;if(typeof t!="function")throw new TypeError(_l);e=$r(e)||0,Be(n)&&(f=!!n.leading,c="maxWait"in n,o=c?Fl($r(n.maxWait)||0,e):o,h="trailing"in n?!!n.trailing:h);function d(S){var A=r,P=i;return r=i=void 0,u=S,s=t.apply(P,A),s}function m(S){return u=S,a=setTimeout(b,e),f?d(S):s}function g(S){var A=S-l,P=S-u,R=e-A;return c?Nl(R,o-P):R}function y(S){var A=S-l,P=S-u;return l===void 0||A>=e||A<0||c&&P>=o}function b(){var S=yn();if(y(S))return w(S);a=setTimeout(b,g(S))}function w(S){return a=void 0,h&&r?d(S):(r=i=void 0,s)}function v(){a!==void 0&&clearTimeout(a),u=0,r=l=i=a=void 0}function E(){return a===void 0?s:w(yn())}function T(){var S=yn(),A=y(S);if(r=arguments,i=this,l=S,A){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)),s}return T.cancel=v,T.flush=E,T}var Bl="Expected a function";function Il(t,e,n){var r=!0,i=!0;if(typeof t!="function")throw new TypeError(Bl);return Be(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),Ve(t,e,{leading:r,maxWait:e,trailing:i})}var Wl=!!(typeof window<"u"&&window.document&&window.document.createElement),Ul=Wl;const ks=p.getDefaultExportFromCjs(Ul);var zt=function(){return zt=Object.assign||function(e){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},zt.apply(this,arguments)},Wt=null,qr=null;ks&&window.addEventListener("resize",function(){qr!==window.devicePixelRatio&&(qr=window.devicePixelRatio,Wt=null)});function Gr(){if(Wt===null){if(typeof document>"u")return Wt=0,Wt;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),Wt=n}return Wt}function Ms(t){return!t||!t.ownerDocument||!t.ownerDocument.defaultView?window:t.ownerDocument.defaultView}function js(t){return!t||!t.ownerDocument?document:t.ownerDocument}var Ls=function(t){var e={},n=Array.prototype.reduce.call(t,function(r,i){var o=i.name.match(/data-simplebar-(.+)/);if(o){var s=o[1].replace(/\W+(.)/g,function(a,l){return l.toUpperCase()});switch(i.value){case"true":r[s]=!0;break;case"false":r[s]=!1;break;case void 0:r[s]=!0;break;default:r[s]=i.value}}return r},e);return n};function Ds(t,e){var n;t&&(n=t.classList).add.apply(n,e.split(" "))}function _s(t,e){t&&e.split(" ").forEach(function(n){t.classList.remove(n)})}function Fs(t){return".".concat(t.split(" ").join("."))}var zl=Object.freeze({__proto__:null,getElementWindow:Ms,getElementDocument:js,getOptions:Ls,addClasses:Ds,removeClasses:_s,classNamesToQuery:Fs}),mt=Ms,vn=js,Hl=Ls,gt=Ds,yt=_s,q=Fs,Se=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 i=mt(r.el);r.scrollXTicking||(i.requestAnimationFrame(r.scrollX),r.scrollXTicking=!0),r.scrollYTicking||(i.requestAnimationFrame(r.scrollY),r.scrollYTicking=!0),r.isScrolling||(r.isScrolling=!0,gt(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(){yt(r.el,r.classNames.scrolling),r.options.autoHide&&(r.hideScrollbar("x"),r.hideScrollbar("y")),r.isScrolling=!1},this.onMouseEnter=function(){r.isMouseEntering||(gt(r.el,r.classNames.mouseEntered),r.showScrollbar("x"),r.showScrollbar("y"),r.isMouseEntering=!0),r.onMouseEntered()},this._onMouseEntered=function(){yt(r.el,r.classNames.mouseEntered),r.options.autoHide&&(r.hideScrollbar("x"),r.hideScrollbar("y")),r.isMouseEntering=!1},this._onMouseMove=function(i){r.mouseX=i.clientX,r.mouseY=i.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(i){if(!(!r.axis.x.track.el||!r.axis.y.track.el||!r.axis.x.scrollbar.el||!r.axis.y.scrollbar.el)){var o,s;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)&&(s=r.isWithinBounds(r.axis.y.track.rect)),(o||s)&&(i.stopPropagation(),i.type==="pointerdown"&&i.pointerType!=="touch"&&(o&&(r.axis.x.scrollbar.rect=r.axis.x.scrollbar.el.getBoundingClientRect(),r.isWithinBounds(r.axis.x.scrollbar.rect)?r.onDragStart(i,"x"):r.onTrackClick(i,"x")),s&&(r.axis.y.scrollbar.rect=r.axis.y.scrollbar.el.getBoundingClientRect(),r.isWithinBounds(r.axis.y.scrollbar.rect)?r.onDragStart(i,"y"):r.onTrackClick(i,"y"))))}},this.drag=function(i){var o,s,a,l,u,f,c,h,d,m,g;if(!(!r.draggedAxis||!r.contentWrapperEl)){var y,b=r.axis[r.draggedAxis].track,w=(s=(o=b.rect)===null||o===void 0?void 0:o[r.axis[r.draggedAxis].sizeAttr])!==null&&s!==void 0?s: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,T=parseInt((f=(u=r.elStyles)===null||u===void 0?void 0:u[r.axis[r.draggedAxis].sizeAttr])!==null&&f!==void 0?f:"0px",10);i.preventDefault(),i.stopPropagation(),r.draggedAxis==="y"?y=i.pageY:y=i.pageX;var S=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;S=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-S:S;var A=S/(w-v.size),P=A*(E-T);r.draggedAxis==="x"&&r.isRtl&&(P=!((g=t.getRtlHelpers())===null||g===void 0)&&g.isScrollingToNegative?-P:P),r.contentWrapperEl[r.axis[r.draggedAxis].scrollOffsetAttr]=P}},this.onEndDrag=function(i){var o=vn(r.el),s=mt(r.el);i.preventDefault(),i.stopPropagation(),yt(r.el,r.classNames.dragging),o.removeEventListener("mousemove",r.drag,!0),o.removeEventListener("mouseup",r.onEndDrag,!0),r.removePreventClickId=s.setTimeout(function(){o.removeEventListener("click",r.preventClick,!0),o.removeEventListener("dblclick",r.preventClick,!0),r.removePreventClickId=null})},this.preventClick=function(i){i.preventDefault(),i.stopPropagation()},this.el=e,this.options=zt(zt({},t.defaultOptions),n),this.classNames=zt(zt({},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=Il(this._onMouseMove,64),this.onWindowResize=Ve(this._onWindowResize,64,{leading:!0}),this.onStopScrolling=Ve(this._onStopScrolling,this.stopScrollDelay),this.onMouseEntered=Ve(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 i=t.getOffset(n),o=t.getOffset(r);n.scrollLeft=-999;var s=t.getOffset(r);return document.body.removeChild(n),t.rtlHelpers={isScrollOriginAtZero:i.left!==o.left,isScrollingToNegative:o.left!==s.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:Gr()}catch{return Gr()}},t.getOffset=function(e){var n=e.getBoundingClientRect(),r=vn(e),i=mt(e);return{top:n.top+(i.pageYOffset||r.documentElement.scrollTop),left:n.left+(i.pageXOffset||r.documentElement.scrollLeft)}},t.prototype.init=function(){ks&&(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(q(this.classNames.wrapper)),this.contentWrapperEl=this.options.scrollableNode||this.el.querySelector(q(this.classNames.contentWrapper)),this.contentEl=this.options.contentNode||this.el.querySelector(q(this.classNames.contentEl)),this.offsetEl=this.el.querySelector(q(this.classNames.offset)),this.maskEl=this.el.querySelector(q(this.classNames.mask)),this.placeholderEl=this.findChild(this.wrapperEl,q(this.classNames.placeholder)),this.heightAutoObserverWrapperEl=this.el.querySelector(q(this.classNames.heightAutoObserverWrapperEl)),this.heightAutoObserverEl=this.el.querySelector(q(this.classNames.heightAutoObserverEl)),this.axis.x.track.el=this.findChild(this.el,"".concat(q(this.classNames.track)).concat(q(this.classNames.horizontal))),this.axis.y.track.el=this.findChild(this.el,"".concat(q(this.classNames.track)).concat(q(this.classNames.vertical))),this.axis.x.scrollbar.el=((e=this.axis.x.track.el)===null||e===void 0?void 0:e.querySelector(q(this.classNames.scrollbar)))||null,this.axis.y.scrollbar.el=((n=this.axis.y.track.el)===null||n===void 0?void 0:n.querySelector(q(this.classNames.scrollbar)))||null,this.options.autoHide||(gt(this.axis.x.scrollbar.el,this.classNames.visible),gt(this.axis.y.scrollbar.el,this.classNames.visible))},t.prototype.initListeners=function(){var e=this,n,r=mt(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 i=!1,o=r.ResizeObserver||ResizeObserver;this.resizeObserver=new o(function(){i&&r.requestAnimationFrame(function(){e.recalculate()})}),this.resizeObserver.observe(this.el),this.resizeObserver.observe(this.contentEl),r.requestAnimationFrame(function(){i=!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=mt(this.el);this.elStyles=e.getComputedStyle(this.el),this.isRtl=this.elStyles.direction==="rtl";var n=this.contentEl.offsetWidth,r=this.heightAutoObserverEl.offsetHeight<=1,i=this.heightAutoObserverEl.offsetWidth<=1||n>0,o=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=r?"auto":"100%",this.placeholderEl.style.width=i?"".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=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,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 i=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,s=o/i,a;return a=Math.max(~~(s*o),this.options.scrollbarMinSize),this.options.scrollbarMaxSize&&(a=Math.min(a,this.options.scrollbarMaxSize)),a},t.prototype.positionScrollbar=function(e){var n,r,i;e===void 0&&(e="y");var o=this.axis[e].scrollbar;if(!(!this.axis[e].isOverflowing||!this.contentWrapperEl||!o.el||!this.elStyles)){var s=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=!((i=t.getRtlHelpers())===null||i===void 0)&&i.isScrollingToNegative?u:-u);var f=u/(s-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&&(gt(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&&(yt(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),gt(n.track.el,this.classNames.hover),this.isWithinBounds(n.scrollbar.rect)?gt(n.scrollbar.el,this.classNames.hover):yt(n.scrollbar.el,this.classNames.hover)):(yt(n.track.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(e)))},t.prototype.onMouseLeaveForAxis=function(e){e===void 0&&(e="y"),yt(this.axis[e].track.el,this.classNames.hover),yt(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 i=vn(this.el),o=mt(this.el),s=this.axis[n].scrollbar,a=n==="y"?e.pageY:e.pageX;this.axis[n].dragOffset=a-(((r=s.rect)===null||r===void 0?void 0:r[this.axis[n].offsetAttr])||0),this.draggedAxis=n,gt(this.el,this.classNames.dragging),i.addEventListener("mousemove",this.drag,!0),i.addEventListener("mouseup",this.onEndDrag,!0),this.removePreventClickId===null?(i.addEventListener("click",this.preventClick,!0),i.addEventListener("dblclick",this.preventClick,!0)):(o.clearTimeout(this.removePreventClickId),this.removePreventClickId=null)},t.prototype.onTrackClick=function(e,n){var r=this,i,o,s,a;n===void 0&&(n="y");var l=this.axis[n];if(!(!this.options.clickOnTrack||!l.scrollbar.el||!this.contentWrapperEl)){e.preventDefault();var u=mt(this.el);this.axis[n].scrollbar.rect=l.scrollbar.el.getBoundingClientRect();var f=this.axis[n].scrollbar,c=(o=(i=f.rect)===null||i===void 0?void 0:i[this.axis[n].offsetAttr])!==null&&o!==void 0?o:0,h=parseInt((a=(s=this.elStyles)===null||s===void 0?void 0:s[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=mt(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(i){return r.call(i,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=Hl,t.helpers=zl,t}(),X=function(){return X=Object.assign||function(e){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},X.apply(this,arguments)};function $l(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 i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n}var Ns=p.reactExports.forwardRef(function(t,e){var n=t.children,r=t.scrollableNodeProps,i=r===void 0?{}:r,o=$l(t,["children","scrollableNodeProps"]),s=p.reactExports.useRef(),a=p.reactExports.useRef(),l=p.reactExports.useRef(),u={},f={};Object.keys(o).forEach(function(d){Object.prototype.hasOwnProperty.call(Se.defaultOptions,d)?u[d]=o[d]:f[d]=o[d]});var c=X(X({},Se.defaultOptions.classNames),u.classNames),h=X(X({},i),{className:"".concat(c.contentWrapper).concat(i.className?" ".concat(i.className):""),tabIndex:0,role:"region","aria-label":u.ariaLabel||Se.defaultOptions.ariaLabel});return p.reactExports.useEffect(function(){var d;return a.current=h.ref?h.ref.current:a.current,s.current&&(d=new Se(s.current,X(X(X({},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",X({"data-simplebar":"init",ref:s},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:X(X({},h),{ref:a}),contentNodeRef:l,contentNodeProps:{className:c.contentEl,ref:l}}):p.reactExports.createElement("div",X({},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})))});Ns.displayName="SimpleBar";const Bs=p.reactExports.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"}),en=p.reactExports.createContext({}),or=p.reactExports.createContext(null),nn=typeof document<"u",ql=nn?p.reactExports.useLayoutEffect:p.reactExports.useEffect,Is=p.reactExports.createContext({strict:!1}),ar=t=>t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),Gl="framerAppearId",Ws="data-"+ar(Gl);function Xl(t,e,n,r){const{visualElement:i}=p.reactExports.useContext(en),o=p.reactExports.useContext(Is),s=p.reactExports.useContext(or),a=p.reactExports.useContext(Bs).reducedMotion,l=p.reactExports.useRef();r=r||o.renderer,!l.current&&r&&(l.current=r(t,{visualState:e,parent:i,props:n,presenceContext:s,blockInitialAnimation:s?s.initial===!1:!1,reducedMotionConfig:a}));const u=l.current;p.reactExports.useInsertionEffect(()=>{u&&u.update(n,s)});const f=p.reactExports.useRef(!!(n[Ws]&&!window.HandoffComplete));return ql(()=>{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 Ht(t){return t&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function Kl(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):Ht(n)&&(n.current=r))},[e])}function he(t){return typeof t=="string"||Array.isArray(t)}function rn(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}const lr=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],cr=["initial",...lr];function sn(t){return rn(t.animate)||cr.some(e=>he(t[e]))}function Us(t){return!!(sn(t)||t.variants)}function Yl(t,e){if(sn(t)){const{initial:n,animate:r}=t;return{initial:n===!1||he(n)?n:void 0,animate:he(r)?r:void 0}}return t.inherit!==!1?e:{}}function Jl(t){const{initial:e,animate:n}=Yl(t,p.reactExports.useContext(en));return p.reactExports.useMemo(()=>({initial:e,animate:n}),[Xr(e),Xr(n)])}function Xr(t){return Array.isArray(t)?t.join(" "):t}const Kr={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"]},de={};for(const t in Kr)de[t]={isEnabled:e=>Kr[t].some(n=>!!e[n])};function Zl(t){for(const e in t)de[e]={...de[e],...t[e]}}const zs=p.reactExports.createContext({}),Hs=p.reactExports.createContext({}),Ql=Symbol.for("motionComponentSymbol");function tc({preloadedFeatures:t,createVisualElement:e,useRender:n,useVisualState:r,Component:i}){t&&Zl(t);function o(a,l){let u;const f={...p.reactExports.useContext(Bs),...a,layoutId:ec(a)},{isStatic:c}=f,h=Jl(a),d=r(a,c);if(!c&&nn){h.visualElement=Xl(i,d,f,e);const m=p.reactExports.useContext(Hs),g=p.reactExports.useContext(Is).strict;h.visualElement&&(u=h.visualElement.loadFeatures(f,g,t,m))}return p.reactExports.createElement(en.Provider,{value:h},u&&h.visualElement?p.reactExports.createElement(u,{visualElement:h.visualElement,...f}):null,n(i,a,Kl(d,h.visualElement,l),d,c,h.visualElement))}const s=p.reactExports.forwardRef(o);return s[Ql]=i,s}function ec({layoutId:t}){const e=p.reactExports.useContext(zs).id;return e&&t!==void 0?e+"-"+t:t}function nc(t){function e(r,i={}){return tc(t(r,i))}if(typeof Proxy>"u")return e;const n=new Map;return new Proxy(e,{get:(r,i)=>(n.has(i)||n.set(i,e(i)),n.get(i))})}const rc=["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 ur(t){return typeof t!="string"||t.includes("-")?!1:!!(rc.indexOf(t)>-1||/[A-Z]/.test(t))}const Ie={};function ic(t){Object.assign(Ie,t)}const ge=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Lt=new Set(ge);function $s(t,{layout:e,layoutId:n}){return Lt.has(t)||t.startsWith("origin")||(e||n!==void 0)&&(!!Ie[t]||t==="opacity")}const G=t=>!!(t&&t.getVelocity),sc={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},oc=ge.length;function ac(t,{enableHardwareAcceleration:e=!0,allowTransformNone:n=!0},r,i){let o="";for(let s=0;s<oc;s++){const a=ge[s];if(t[a]!==void 0){const l=sc[a]||a;o+=`${l}(${t[a]}) `}}return e&&!t.z&&(o+="translateZ(0)"),o=o.trim(),i?o=i(t,r?"":o):n&&r&&(o="none"),o}const qs=t=>e=>typeof e=="string"&&e.startsWith(t),Gs=qs("--"),Bn=qs("var(--"),lc=/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,cc=(t,e)=>e&&typeof t=="number"?e.transform(t):t,Tt=(t,e,n)=>Math.min(Math.max(n,t),e),Dt={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},se={...Dt,transform:t=>Tt(0,1,t)},Te={...Dt,default:1},oe=t=>Math.round(t*1e5)/1e5,on=/(-)?([\d]*\.?[\d])+/g,Xs=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,uc=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function ye(t){return typeof t=="string"}const ve=t=>({test:e=>ye(e)&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),xt=ve("deg"),ot=ve("%"),C=ve("px"),fc=ve("vh"),hc=ve("vw"),Yr={...ot,parse:t=>ot.parse(t)/100,transform:t=>ot.transform(t*100)},Jr={...Dt,transform:Math.round},Ks={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:xt,rotateX:xt,rotateY:xt,rotateZ:xt,scale:Te,scaleX:Te,scaleY:Te,scaleZ:Te,skew:xt,skewX:xt,skewY:xt,distance:C,translateX:C,translateY:C,translateZ:C,x:C,y:C,z:C,perspective:C,transformPerspective:C,opacity:se,originX:Yr,originY:Yr,originZ:C,zIndex:Jr,fillOpacity:se,strokeOpacity:se,numOctaves:Jr};function fr(t,e,n,r){const{style:i,vars:o,transform:s,transformOrigin:a}=t;let l=!1,u=!1,f=!0;for(const c in e){const h=e[c];if(Gs(c)){o[c]=h;continue}const d=Ks[c],m=cc(h,d);if(Lt.has(c)){if(l=!0,s[c]=m,!f)continue;h!==(d.default||0)&&(f=!1)}else c.startsWith("origin")?(u=!0,a[c]=m):i[c]=m}if(e.transform||(l||r?i.transform=ac(t.transform,n,f,r):i.transform&&(i.transform="none")),u){const{originX:c="50%",originY:h="50%",originZ:d=0}=a;i.transformOrigin=`${c} ${h} ${d}`}}const hr=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Ys(t,e,n){for(const r in e)!G(e[r])&&!$s(r,n)&&(t[r]=e[r])}function dc({transformTemplate:t},e,n){return p.reactExports.useMemo(()=>{const r=hr();return fr(r,e,{enableHardwareAcceleration:!n},t),Object.assign({},r.vars,r.style)},[e])}function pc(t,e,n){const r=t.style||{},i={};return Ys(i,r,t),Object.assign(i,dc(t,e,n)),t.transformValues?t.transformValues(i):i}function mc(t,e,n){const r={},i=pc(t,e,n);return t.drag&&t.dragListener!==!1&&(r.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.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=i,r}const gc=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 We(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||gc.has(t)}let Js=t=>!We(t);function yc(t){t&&(Js=e=>e.startsWith("on")?!We(e):t(e))}try{yc(require("@emotion/is-prop-valid").default)}catch{}function vc(t,e,n){const r={};for(const i in t)i==="values"&&typeof t.values=="object"||(Js(i)||n===!0&&We(i)||!e&&!We(i)||t.draggable&&i.startsWith("onDrag"))&&(r[i]=t[i]);return r}function Zr(t,e,n){return typeof t=="string"?t:C.transform(e+n*t)}function xc(t,e,n){const r=Zr(e,t.x,t.width),i=Zr(n,t.y,t.height);return`${r} ${i}`}const bc={offset:"stroke-dashoffset",array:"stroke-dasharray"},wc={offset:"strokeDashoffset",array:"strokeDasharray"};function Ec(t,e,n=1,r=0,i=!0){t.pathLength=1;const o=i?bc:wc;t[o.offset]=C.transform(-r);const s=C.transform(e),a=C.transform(n);t[o.array]=`${s} ${a}`}function dr(t,{attrX:e,attrY:n,attrScale:r,originX:i,originY:o,pathLength:s,pathSpacing:a=1,pathOffset:l=0,...u},f,c,h){if(fr(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&&(i!==void 0||o!==void 0||m.transform)&&(m.transformOrigin=xc(g,i!==void 0?i:.5,o!==void 0?o:.5)),e!==void 0&&(d.x=e),n!==void 0&&(d.y=n),r!==void 0&&(d.scale=r),s!==void 0&&Ec(d,s,a,l,!1)}const Zs=()=>({...hr(),attrs:{}}),pr=t=>typeof t=="string"&&t.toLowerCase()==="svg";function Sc(t,e,n,r){const i=p.reactExports.useMemo(()=>{const o=Zs();return dr(o,e,{enableHardwareAcceleration:!1},pr(r),t.transformTemplate),{...o.attrs,style:{...o.style}}},[e]);if(t.style){const o={};Ys(o,t.style,t),i.style={...o,...i.style}}return i}function Tc(t=!1){return(n,r,i,{latestValues:o},s)=>{const l=(ur(n)?Sc:mc)(r,o,s,n),f={...vc(r,typeof n=="string",t),...l,ref:i},{children:c}=r,h=p.reactExports.useMemo(()=>G(c)?c.get():c,[c]);return p.reactExports.createElement(n,{...f,children:h})}}function Qs(t,{style:e,vars:n},r,i){Object.assign(t.style,e,i&&i.getProjectionStyles(r));for(const o in n)t.style.setProperty(o,n[o])}const to=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 eo(t,e,n,r){Qs(t,e,void 0,r);for(const i in e.attrs)t.setAttribute(to.has(i)?i:ar(i),e.attrs[i])}function mr(t,e){const{style:n}=t,r={};for(const i in n)(G(n[i])||e.style&&G(e.style[i])||$s(i,t))&&(r[i]=n[i]);return r}function no(t,e){const n=mr(t,e);for(const r in t)if(G(t[r])||G(e[r])){const i=ge.indexOf(r)!==-1?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;n[i]=t[r]}return n}function gr(t,e,n,r={},i={}){return typeof e=="function"&&(e=e(n!==void 0?n:t.custom,r,i)),typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"&&(e=e(n!==void 0?n:t.custom,r,i)),e}function Ac(t){const e=p.reactExports.useRef(null);return e.current===null&&(e.current=t()),e.current}const Ue=t=>Array.isArray(t),Pc=t=>!!(t&&typeof t=="object"&&t.mix&&t.toValue),Cc=t=>Ue(t)?t[t.length-1]||0:t;function ke(t){const e=G(t)?t.get():t;return Pc(e)?e.toValue():e}function Rc({scrapeMotionValuesFromProps:t,createRenderState:e,onMount:n},r,i,o){const s={latestValues:Oc(r,i,o,t),renderState:e()};return n&&(s.mount=a=>n(r,a,s)),s}const ro=t=>(e,n)=>{const r=p.reactExports.useContext(en),i=p.reactExports.useContext(or),o=()=>Rc(t,e,r,i);return n?o():Ac(o)};function Oc(t,e,n,r){const i={},o=r(t,{});for(const h in o)i[h]=ke(o[h]);let{initial:s,animate:a}=t;const l=sn(t),u=Us(t);e&&u&&!l&&t.inherit!==!1&&(s===void 0&&(s=e.initial),a===void 0&&(a=e.animate));let f=n?n.initial===!1:!1;f=f||s===!1;const c=f?a:s;return c&&typeof c!="boolean"&&!rn(c)&&(Array.isArray(c)?c:[c]).forEach(d=>{const m=gr(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&&(i[w]=v)}for(const w in g)i[w]=g[w]}),i}const L=t=>t;class Qr{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 Vc(t){let e=new Qr,n=new Qr,r=0,i=!1,o=!1;const s=new WeakSet,a={schedule:(l,u=!1,f=!1)=>{const c=f&&i,h=c?e:n;return u&&s.add(l),h.add(l)&&c&&i&&(r=e.order.length),l},cancel:l=>{n.remove(l),s.delete(l)},process:l=>{if(i){o=!0;return}if(i=!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),s.has(f)&&(a.schedule(f),t())}i=!1,o&&(o=!1,a.process(l))}};return a}const Ae=["prepare","read","update","preRender","render","postRender"],kc=40;function Mc(t,e){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=Ae.reduce((c,h)=>(c[h]=Vc(()=>n=!0),c),{}),s=c=>o[c].process(i),a=()=>{const c=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(c-i.timestamp,kc),1),i.timestamp=c,i.isProcessing=!0,Ae.forEach(s),i.isProcessing=!1,n&&e&&(r=!1,t(a))},l=()=>{n=!0,r=!0,i.isProcessing||t(a)};return{schedule:Ae.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=>Ae.forEach(h=>o[h].cancel(c)),state:i,steps:o}}const{schedule:k,cancel:dt,state:H,steps:xn}=Mc(typeof requestAnimationFrame<"u"?requestAnimationFrame:L,!0),jc={useVisualState:ro({scrapeMotionValuesFromProps:no,createRenderState:Zs,onMount:(t,e,{renderState:n,latestValues:r})=>{k.read(()=>{try{n.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),k.render(()=>{dr(n,r,{enableHardwareAcceleration:!1},pr(e.tagName),t.transformTemplate),eo(e,n)})}})},Lc={useVisualState:ro({scrapeMotionValuesFromProps:mr,createRenderState:hr})};function Dc(t,{forwardMotionProps:e=!1},n,r){return{...ur(t)?jc:Lc,preloadedFeatures:n,useRender:Tc(e),createVisualElement:r,Component:t}}function ct(t,e,n,r={passive:!0}){return t.addEventListener(e,n,r),()=>t.removeEventListener(e,n)}const io=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1;function an(t,e="page"){return{point:{x:t[e+"X"],y:t[e+"Y"]}}}const _c=t=>e=>io(e)&&t(e,an(e));function ut(t,e,n,r){return ct(t,e,_c(n),r)}const Fc=(t,e)=>n=>e(t(n)),Et=(...t)=>t.reduce(Fc);function so(t){let e=null;return()=>{const n=()=>{e=null};return e===null?(e=t,n):!1}}const ti=so("dragHorizontal"),ei=so("dragVertical");function oo(t){let e=!1;if(t==="y")e=ei();else if(t==="x")e=ti();else{const n=ti(),r=ei();n&&r?e=()=>{n(),r()}:(n&&n(),r&&r())}return e}function ao(){const t=oo(!0);return t?(t(),!1):!0}class Pt{constructor(e){this.isMounted=!1,this.node=e}update(){}}function ni(t,e){const n="pointer"+(e?"enter":"leave"),r="onHover"+(e?"Start":"End"),i=(o,s)=>{if(o.pointerType==="touch"||ao())return;const a=t.getProps();t.animationState&&a.whileHover&&t.animationState.setActive("whileHover",e),a[r]&&k.update(()=>a[r](o,s))};return ut(t.current,n,i,{passive:!t.getProps()[r]})}class Nc extends Pt{mount(){this.unmount=Et(ni(this.node,!0),ni(this.node,!1))}unmount(){}}class Bc extends Pt{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=Et(ct(this.node.current,"focus",()=>this.onFocus()),ct(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const lo=(t,e)=>e?t===e?!0:lo(t,e.parentElement):!1;function bn(t,e){if(!e)return;const n=new PointerEvent("pointer"+t);e(n,an(n))}class Ic extends Pt{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=ut(window,"pointerup",(a,l)=>{if(!this.checkPressEnd())return;const{onTap:u,onTapCancel:f,globalTapTarget:c}=this.node.getProps();k.update(()=>{!c&&!lo(this.node.current,a.target)?f&&f(a,l):u&&u(a,l)})},{passive:!(r.onTap||r.onPointerUp)}),s=ut(window,"pointercancel",(a,l)=>this.cancelPress(a,l),{passive:!(r.onTapCancel||r.onPointerCancel)});this.removeEndListeners=Et(o,s),this.startPress(e,n)},this.startAccessiblePress=()=>{const e=o=>{if(o.key!=="Enter"||this.isPressing)return;const s=a=>{a.key!=="Enter"||!this.checkPressEnd()||bn("up",(l,u)=>{const{onTap:f}=this.node.getProps();f&&k.update(()=>f(l,u))})};this.removeEndListeners(),this.removeEndListeners=ct(this.node.current,"keyup",s),bn("down",(a,l)=>{this.startPress(a,l)})},n=ct(this.node.current,"keydown",e),r=()=>{this.isPressing&&bn("cancel",(o,s)=>this.cancelPress(o,s))},i=ct(this.node.current,"blur",r);this.removeAccessibleListeners=Et(n,i)}}startPress(e,n){this.isPressing=!0;const{onTapStart:r,whileTap:i}=this.node.getProps();i&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),r&&k.update(()=>r(e,n))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!ao()}cancelPress(e,n){if(!this.checkPressEnd())return;const{onTapCancel:r}=this.node.getProps();r&&k.update(()=>r(e,n))}mount(){const e=this.node.getProps(),n=ut(e.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(e.onTapStart||e.onPointerStart)}),r=ct(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=Et(n,r)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const In=new WeakMap,wn=new WeakMap,Wc=t=>{const e=In.get(t.target);e&&e(t)},Uc=t=>{t.forEach(Wc)};function zc({root:t,...e}){const n=t||document;wn.has(n)||wn.set(n,{});const r=wn.get(n),i=JSON.stringify(e);return r[i]||(r[i]=new IntersectionObserver(Uc,{root:t,...e})),r[i]}function Hc(t,e,n){const r=zc(e);return In.set(t,n),r.observe(t),()=>{In.delete(t),r.unobserve(t)}}const $c={some:0,all:1};class qc extends Pt{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:o}=e,s={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:$c[i]},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 Hc(this.node.current,s,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:e,prevProps:n}=this.node;["amount","margin","root"].some(Gc(e,n))&&this.startObserver()}unmount(){}}function Gc({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}const Xc={inView:{Feature:qc},tap:{Feature:Ic},focus:{Feature:Bc},hover:{Feature:Nc}};function co(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 Kc(t){const e={};return t.values.forEach((n,r)=>e[r]=n.get()),e}function Yc(t){const e={};return t.values.forEach((n,r)=>e[r]=n.getVelocity()),e}function ln(t,e,n){const r=t.getProps();return gr(r,e,n!==void 0?n:r.custom,Kc(t),Yc(t))}let Jc=L,yr=L;const St=t=>t*1e3,ft=t=>t/1e3,Zc={current:!1},uo=t=>Array.isArray(t)&&typeof t[0]=="number";function fo(t){return!!(!t||typeof t=="string"&&ho[t]||uo(t)||Array.isArray(t)&&t.every(fo))}const ie=([t,e,n,r])=>`cubic-bezier(${t}, ${e}, ${n}, ${r})`,ho={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:ie([0,.65,.55,1]),circOut:ie([.55,0,1,.45]),backIn:ie([.31,.01,.66,-.59]),backOut:ie([.33,1.53,.69,.99])};function po(t){if(t)return uo(t)?ie(t):Array.isArray(t)?t.map(po):ho[t]}function Qc(t,e,n,{delay:r=0,duration:i,repeat:o=0,repeatType:s="loop",ease:a,times:l}={}){const u={[e]:n};l&&(u.offset=l);const f=po(a);return Array.isArray(f)&&(u.easing=f),t.animate(u,{delay:r,duration:i,easing:Array.isArray(f)?"linear":f,fill:"both",iterations:o+1,direction:s==="reverse"?"alternate":"normal"})}function tu(t,{repeat:e,repeatType:n="loop"}){const r=e&&n!=="loop"&&e%2===1?0:t.length-1;return t[r]}const mo=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,eu=1e-7,nu=12;function ru(t,e,n,r,i){let o,s,a=0;do s=e+(n-e)/2,o=mo(s,r,i)-t,o>0?n=s:e=s;while(Math.abs(o)>eu&&++a<nu);return s}function xe(t,e,n,r){if(t===e&&n===r)return L;const i=o=>ru(o,0,1,t,n);return o=>o===0||o===1?o:mo(i(o),e,r)}const iu=xe(.42,0,1,1),su=xe(0,0,.58,1),go=xe(.42,0,.58,1),ou=t=>Array.isArray(t)&&typeof t[0]!="number",yo=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,vo=t=>e=>1-t(1-e),vr=t=>1-Math.sin(Math.acos(t)),xo=vo(vr),au=yo(vr),bo=xe(.33,1.53,.69,.99),xr=vo(bo),lu=yo(xr),cu=t=>(t*=2)<1?.5*xr(t):.5*(2-Math.pow(2,-10*(t-1))),uu={linear:L,easeIn:iu,easeInOut:go,easeOut:su,circIn:vr,circInOut:au,circOut:xo,backIn:xr,backInOut:lu,backOut:bo,anticipate:cu},ri=t=>{if(Array.isArray(t)){yr(t.length===4);const[e,n,r,i]=t;return xe(e,n,r,i)}else if(typeof t=="string")return uu[t];return t},br=(t,e)=>n=>!!(ye(n)&&uc.test(n)&&n.startsWith(t)||e&&Object.prototype.hasOwnProperty.call(n,e)),wo=(t,e,n)=>r=>{if(!ye(r))return r;const[i,o,s,a]=r.match(on);return{[t]:parseFloat(i),[e]:parseFloat(o),[n]:parseFloat(s),alpha:a!==void 0?parseFloat(a):1}},fu=t=>Tt(0,255,t),En={...Dt,transform:t=>Math.round(fu(t))},jt={test:br("rgb","red"),parse:wo("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:r=1})=>"rgba("+En.transform(t)+", "+En.transform(e)+", "+En.transform(n)+", "+oe(se.transform(r))+")"};function hu(t){let e="",n="",r="",i="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),r=t.substring(5,7),i=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),r=t.substring(3,4),i=t.substring(4,5),e+=e,n+=n,r+=r,i+=i),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const Wn={test:br("#"),parse:hu,transform:jt.transform},$t={test:br("hsl","hue"),parse:wo("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:r=1})=>"hsla("+Math.round(t)+", "+ot.transform(oe(e))+", "+ot.transform(oe(n))+", "+oe(se.transform(r))+")"},$={test:t=>jt.test(t)||Wn.test(t)||$t.test(t),parse:t=>jt.test(t)?jt.parse(t):$t.test(t)?$t.parse(t):Wn.parse(t),transform:t=>ye(t)?t:t.hasOwnProperty("red")?jt.transform(t):$t.transform(t)},j=(t,e,n)=>-n*t+n*e+t;function Sn(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 du({hue:t,saturation:e,lightness:n,alpha:r}){t/=360,e/=100,n/=100;let i=0,o=0,s=0;if(!e)i=o=s=n;else{const a=n<.5?n*(1+e):n+e-n*e,l=2*n-a;i=Sn(l,a,t+1/3),o=Sn(l,a,t),s=Sn(l,a,t-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(s*255),alpha:r}}const Tn=(t,e,n)=>{const r=t*t;return Math.sqrt(Math.max(0,n*(e*e-r)+r))},pu=[Wn,jt,$t],mu=t=>pu.find(e=>e.test(t));function ii(t){const e=mu(t);let n=e.parse(t);return e===$t&&(n=du(n)),n}const Eo=(t,e)=>{const n=ii(t),r=ii(e),i={...n};return o=>(i.red=Tn(n.red,r.red,o),i.green=Tn(n.green,r.green,o),i.blue=Tn(n.blue,r.blue,o),i.alpha=j(n.alpha,r.alpha,o),jt.transform(i))};function gu(t){var e,n;return isNaN(t)&&ye(t)&&(((e=t.match(on))===null||e===void 0?void 0:e.length)||0)+(((n=t.match(Xs))===null||n===void 0?void 0:n.length)||0)>0}const So={regex:lc,countKey:"Vars",token:"${v}",parse:L},To={regex:Xs,countKey:"Colors",token:"${c}",parse:$.parse},Ao={regex:on,countKey:"Numbers",token:"${n}",parse:Dt.parse};function An(t,{regex:e,countKey:n,token:r,parse:i}){const o=t.tokenised.match(e);o&&(t["num"+n]=o.length,t.tokenised=t.tokenised.replace(e,r),t.values.push(...o.map(i)))}function ze(t){const e=t.toString(),n={value:e,tokenised:e,values:[],numVars:0,numColors:0,numNumbers:0};return n.value.includes("var(--")&&An(n,So),An(n,To),An(n,Ao),n}function Po(t){return ze(t).values}function Co(t){const{values:e,numColors:n,numVars:r,tokenised:i}=ze(t),o=e.length;return s=>{let a=i;for(let l=0;l<o;l++)l<r?a=a.replace(So.token,s[l]):l<r+n?a=a.replace(To.token,$.transform(s[l])):a=a.replace(Ao.token,oe(s[l]));return a}}const yu=t=>typeof t=="number"?0:t;function vu(t){const e=Po(t);return Co(t)(e.map(yu))}const At={test:gu,parse:Po,createTransformer:Co,getAnimatableNone:vu},Ro=(t,e)=>n=>`${n>0?e:t}`;function Oo(t,e){return typeof t=="number"?n=>j(t,e,n):$.test(t)?Eo(t,e):t.startsWith("var(")?Ro(t,e):ko(t,e)}const Vo=(t,e)=>{const n=[...t],r=n.length,i=t.map((o,s)=>Oo(o,e[s]));return o=>{for(let s=0;s<r;s++)n[s]=i[s](o);return n}},xu=(t,e)=>{const n={...t,...e},r={};for(const i in n)t[i]!==void 0&&e[i]!==void 0&&(r[i]=Oo(t[i],e[i]));return i=>{for(const o in r)n[o]=r[o](i);return n}},ko=(t,e)=>{const n=At.createTransformer(e),r=ze(t),i=ze(e);return r.numVars===i.numVars&&r.numColors===i.numColors&&r.numNumbers>=i.numNumbers?Et(Vo(r.values,i.values),n):Ro(t,e)},pe=(t,e,n)=>{const r=e-t;return r===0?1:(n-t)/r},si=(t,e)=>n=>j(t,e,n);function bu(t){return typeof t=="number"?si:typeof t=="string"?$.test(t)?Eo:ko:Array.isArray(t)?Vo:typeof t=="object"?xu:si}function wu(t,e,n){const r=[],i=n||bu(t[0]),o=t.length-1;for(let s=0;s<o;s++){let a=i(t[s],t[s+1]);if(e){const l=Array.isArray(e)?e[s]||L:e;a=Et(l,a)}r.push(a)}return r}function Mo(t,e,{clamp:n=!0,ease:r,mixer:i}={}){const o=t.length;if(yr(o===e.length),o===1)return()=>e[0];t[0]>t[o-1]&&(t=[...t].reverse(),e=[...e].reverse());const s=wu(e,r,i),a=s.length,l=u=>{let f=0;if(a>1)for(;f<t.length-2&&!(u<t[f+1]);f++);const c=pe(t[f],t[f+1],u);return s[f](c)};return n?u=>l(Tt(t[0],t[o-1],u)):l}function Eu(t,e){const n=t[t.length-1];for(let r=1;r<=e;r++){const i=pe(0,e,r);t.push(j(n,1,i))}}function Su(t){const e=[0];return Eu(e,t.length-1),e}function Tu(t,e){return t.map(n=>n*e)}function Au(t,e){return t.map(()=>e||go).splice(0,t.length-1)}function He({duration:t=300,keyframes:e,times:n,ease:r="easeInOut"}){const i=ou(r)?r.map(ri):ri(r),o={done:!1,value:e[0]},s=Tu(n&&n.length===e.length?n:Su(e),t),a=Mo(s,e,{ease:Array.isArray(i)?i:Au(e,i)});return{calculatedDuration:t,next:l=>(o.value=a(l),o.done=l>=t,o)}}function jo(t,e){return e?t*(1e3/e):0}const Pu=5;function Lo(t,e,n){const r=Math.max(e-Pu,0);return jo(n-t(r),e-r)}const Pn=.001,Cu=.01,oi=10,Ru=.05,Ou=1;function Vu({duration:t=800,bounce:e=.25,velocity:n=0,mass:r=1}){let i,o;Jc(t<=St(oi));let s=1-e;s=Tt(Ru,Ou,s),t=Tt(Cu,oi,ft(t)),s<1?(i=u=>{const f=u*s,c=f*t,h=f-n,d=Un(u,s),m=Math.exp(-c);return Pn-h/d*m},o=u=>{const c=u*s*t,h=c*n+n,d=Math.pow(s,2)*Math.pow(u,2)*t,m=Math.exp(-c),g=Un(Math.pow(u,2),s);return(-i(u)+Pn>0?-1:1)*((h-d)*m)/g}):(i=u=>{const f=Math.exp(-u*t),c=(u-n)*t+1;return-Pn+f*c},o=u=>{const f=Math.exp(-u*t),c=(n-u)*(t*t);return f*c});const a=5/t,l=Mu(i,o,a);if(t=St(t),isNaN(l))return{stiffness:100,damping:10,duration:t};{const u=Math.pow(l,2)*r;return{stiffness:u,damping:s*2*Math.sqrt(r*u),duration:t}}}const ku=12;function Mu(t,e,n){let r=n;for(let i=1;i<ku;i++)r=r-t(r)/e(r);return r}function Un(t,e){return t*Math.sqrt(1-e*e)}const ju=["duration","bounce"],Lu=["stiffness","damping","mass"];function ai(t,e){return e.some(n=>t[n]!==void 0)}function Du(t){let e={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...t};if(!ai(t,Lu)&&ai(t,ju)){const n=Vu(t);e={...e,...n,mass:1},e.isResolvedFromDuration=!0}return e}function Do({keyframes:t,restDelta:e,restSpeed:n,...r}){const i=t[0],o=t[t.length-1],s={done:!1,value:i},{stiffness:a,damping:l,mass:u,duration:f,velocity:c,isResolvedFromDuration:h}=Du({...r,velocity:-ft(r.velocity||0)}),d=c||0,m=l/(2*Math.sqrt(a*u)),g=o-i,y=ft(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=Un(y,m);w=E=>{const T=Math.exp(-m*y*E);return o-T*((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 T=Math.exp(-m*y*E),S=Math.min(v*E,300);return o-T*((d+m*y*g)*Math.sinh(S)+v*g*Math.cosh(S))/v}}return{calculatedDuration:h&&f||null,next:v=>{const E=w(v);if(h)s.done=v>=f;else{let T=d;v!==0&&(m<1?T=Lo(w,v,E):T=0);const S=Math.abs(T)<=n,A=Math.abs(o-E)<=e;s.done=S&&A}return s.value=s.done?o:E,s}}}function li({keyframes:t,velocity:e=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:s,min:a,max:l,restDelta:u=.5,restSpeed:f}){const c=t[0],h={done:!1,value:c},d=P=>a!==void 0&&P<a||l!==void 0&&P>l,m=P=>a===void 0?l:l===void 0||Math.abs(a-P)<Math.abs(l-P)?a:l;let g=n*e;const y=c+g,b=s===void 0?y:s(y);b!==y&&(g=b-c);const w=P=>-g*Math.exp(-P/r),v=P=>b+w(P),E=P=>{const R=w(P),D=v(P);h.done=Math.abs(R)<=u,h.value=h.done?b:D};let T,S;const A=P=>{d(h.value)&&(T=P,S=Do({keyframes:[h.value,m(h.value)],velocity:Lo(v,P,h.value),damping:i,stiffness:o,restDelta:u,restSpeed:f}))};return A(0),{calculatedDuration:null,next:P=>{let R=!1;return!S&&T===void 0&&(R=!0,E(P),A(P)),T!==void 0&&P>T?S.next(P-T):(!R&&E(P),h)}}}const _u=t=>{const e=({timestamp:n})=>t(n);return{start:()=>k.update(e,!0),stop:()=>dt(e),now:()=>H.isProcessing?H.timestamp:performance.now()}},ci=2e4;function ui(t){let e=0;const n=50;let r=t.next(e);for(;!r.done&&e<ci;)e+=n,r=t.next(e);return e>=ci?1/0:e}const Fu={decay:li,inertia:li,tween:He,keyframes:He,spring:Do};function $e({autoplay:t=!0,delay:e=0,driver:n=_u,keyframes:r,type:i="keyframes",repeat:o=0,repeatDelay:s=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=Fu[i]||He;let E;v!==He&&typeof r[0]!="number"&&(E=Mo([0,100],r,{clamp:!1}),r=[0,100]);const T=v({...h,keyframes:r});let S;a==="mirror"&&(S=v({...h,keyframes:[...r].reverse(),velocity:-(h.velocity||0)}));let A="idle",P=null,R=null,D=null;T.calculatedDuration===null&&o&&(T.calculatedDuration=ui(T));const{calculatedDuration:U}=T;let N=1/0,z=1/0;U!==null&&(N=U+s,z=N*(o+1)-s);let I=0;const et=V=>{if(R===null)return;d>0&&(R=Math.min(R,V)),d<0&&(R=Math.min(V-z/d,R)),P!==null?I=P:I=Math.round(V-R)*d;const Ft=I-e*(d>=0?1:-1),Nt=d>=0?Ft<0:Ft>z;I=Math.max(Ft,0),A==="finished"&&P===null&&(I=z);let pn=I,Ct=T;if(o){const Qt=Math.min(I,z)/N;let Rt=Math.floor(Qt),Q=Qt%1;!Q&&Qt>=1&&(Q=1),Q===1&&Rt--,Rt=Math.min(Rt,o+1),!!(Rt%2)&&(a==="reverse"?(Q=1-Q,s&&(Q-=s/N)):a==="mirror"&&(Ct=S)),pn=Tt(0,1,Q)*N}const lt=Nt?{done:!1,value:r[0]}:Ct.next(pn);E&&(lt.value=E(lt.value));let{done:Bt}=lt;!Nt&&U!==null&&(Bt=d>=0?I>=z:I<=0);const It=P===null&&(A==="finished"||A==="running"&&Bt);return c&&c(lt.value),It&&W(),lt},B=()=>{w&&w.stop(),w=void 0},nt=()=>{A="idle",B(),g(),b(),R=D=null},W=()=>{A="finished",f&&f(),B(),g()},pt=()=>{if(m)return;w||(w=n(et));const V=w.now();l&&l(),P!==null?R=V-P:(!R||A==="finished")&&(R=V),A==="finished"&&b(),D=R,P=null,A="running",w.start()};t&&pt();const _t={then(V,Ft){return y.then(V,Ft)},get time(){return ft(I)},set time(V){V=St(V),I=V,P!==null||!w||d===0?P=V:R=w.now()-V/d},get duration(){const V=T.calculatedDuration===null?ui(T):T.calculatedDuration;return ft(V)},get speed(){return d},set speed(V){V===d||!w||(d=V,_t.time=ft(I))},get state(){return A},play:pt,pause:()=>{A="paused",P=I},stop:()=>{m=!0,A!=="idle"&&(A="idle",u&&u(),nt())},cancel:()=>{D!==null&&et(D),nt()},complete:()=>{A="finished"},sample:V=>(R=0,et(V))};return _t}function Nu(t){let e;return()=>(e===void 0&&(e=t()),e)}const Bu=Nu(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Iu=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),Pe=10,Wu=2e4,Uu=(t,e)=>e.type==="spring"||t==="backgroundColor"||!fo(e.ease);function zu(t,e,{onUpdate:n,onComplete:r,...i}){if(!(Bu()&&Iu.has(e)&&!i.repeatDelay&&i.repeatType!=="mirror"&&i.damping!==0&&i.type!=="inertia"))return!1;let s=!1,a,l,u=!1;const f=()=>{l=new Promise(v=>{a=v})};f();let{keyframes:c,duration:h=300,ease:d,times:m}=i;if(Uu(e,i)){const v=$e({...i,repeat:0,delay:0});let E={done:!1,value:c[0]};const T=[];let S=0;for(;!E.done&&S<Wu;)E=v.sample(S),T.push(E.value),S+=Pe;m=void 0,c=T,h=S-Pe,d="linear"}const g=Qc(t.owner.current,e,c,{...i,duration:h,ease:d,times:m}),y=()=>{u=!1,g.cancel()},b=()=>{u=!0,k.update(y),a(),f()};return g.onfinish=()=>{u||(t.set(tu(c,i)),r&&r(),b())},{then(v,E){return l.then(v,E)},attachTimeline(v){return g.timeline=v,g.onfinish=null,L},get time(){return ft(g.currentTime||0)},set time(v){g.currentTime=St(v)},get speed(){return g.playbackRate},set speed(v){g.playbackRate=v},get duration(){return ft(h)},play:()=>{s||(g.play(),dt(y))},pause:()=>g.pause(),stop:()=>{if(s=!0,g.playState==="idle")return;const{currentTime:v}=g;if(v){const E=$e({...i,autoplay:!1});t.setWithVelocity(E.sample(v-Pe).value,E.sample(v).value,Pe)}b()},complete:()=>{u||g.finish()},cancel:b}}function Hu({keyframes:t,delay:e,onUpdate:n,onComplete:r}){const i=()=>(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?$e({keyframes:[0,1],duration:0,delay:e,onComplete:i}):i()}const $u={type:"spring",stiffness:500,damping:25,restSpeed:10},qu=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),Gu={type:"keyframes",duration:.8},Xu={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Ku=(t,{keyframes:e})=>e.length>2?Gu:Lt.has(t)?t.startsWith("scale")?qu(e[1]):$u:Xu,zn=(t,e)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(At.test(e)||e==="0")&&!e.startsWith("url(")),Yu=new Set(["brightness","contrast","saturate","opacity"]);function Ju(t){const[e,n]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[r]=n.match(on)||[];if(!r)return t;const i=n.replace(r,"");let o=Yu.has(e)?1:0;return r!==n&&(o*=100),e+"("+o+i+")"}const Zu=/([a-z-]*)\(.*?\)/g,Hn={...At,getAnimatableNone:t=>{const e=t.match(Zu);return e?e.map(Ju).join(" "):t}},Qu={...Ks,color:$,backgroundColor:$,outlineColor:$,fill:$,stroke:$,borderColor:$,borderTopColor:$,borderRightColor:$,borderBottomColor:$,borderLeftColor:$,filter:Hn,WebkitFilter:Hn},wr=t=>Qu[t];function _o(t,e){let n=wr(t);return n!==Hn&&(n=At),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const Fo=t=>/^0[^.\s]+$/.test(t);function tf(t){if(typeof t=="number")return t===0;if(t!==null)return t==="none"||t==="0"||Fo(t)}function ef(t,e,n,r){const i=zn(e,n);let o;Array.isArray(n)?o=[...n]:o=[null,n];const s=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?s:o[u-1]),tf(o[u])&&l.push(u),typeof o[u]=="string"&&o[u]!=="none"&&o[u]!=="0"&&(a=o[u]);if(i&&l.length&&a)for(let u=0;u<l.length;u++){const f=l[u];o[f]=_o(e,a)}return o}function nf({when:t,delay:e,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:s,repeatDelay:a,from:l,elapsed:u,...f}){return!!Object.keys(f).length}function Er(t,e){return t[e]||t.default||t}const rf={skipAnimations:!1},Sr=(t,e,n,r={})=>i=>{const o=Er(r,t)||{},s=o.delay||r.delay||0;let{elapsed:a=0}=r;a=a-St(s);const l=ef(e,t,n,o),u=l[0],f=l[l.length-1],c=zn(t,u),h=zn(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:()=>{i(),o.onComplete&&o.onComplete()}};if(nf(o)||(d={...d,...Ku(t,d)}),d.duration&&(d.duration=St(d.duration)),d.repeatDelay&&(d.repeatDelay=St(d.repeatDelay)),!c||!h||Zc.current||o.type===!1||rf.skipAnimations)return Hu(d);if(!r.isHandoff&&e.owner&&e.owner.current instanceof HTMLElement&&!e.owner.getProps().onUpdate){const m=zu(e,t,d);if(m)return m}return $e(d)};function qe(t){return!!(G(t)&&t.add)}const No=t=>/^\-?\d*\.?\d+$/.test(t);function Tr(t,e){t.indexOf(e)===-1&&t.push(e)}function Ar(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}class Pr{constructor(){this.subscriptions=[]}add(e){return Tr(this.subscriptions,e),()=>Ar(this.subscriptions,e)}notify(e,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](e,n,r);else for(let o=0;o<i;o++){const s=this.subscriptions[o];s&&s(e,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const sf=t=>!isNaN(parseFloat(t));class of{constructor(e,n={}){this.version="10.18.0",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(r,i=!0)=>{this.prev=this.current,this.current=r;const{delta:o,timestamp:s}=H;this.lastUpdated!==s&&(this.timeDelta=o,this.lastUpdated=s,k.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()),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>k.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=sf(this.current),this.owner=n.owner}onChange(e){return this.on("change",e)}on(e,n){this.events[e]||(this.events[e]=new Pr);const r=this.events[e].add(n);return e==="change"?()=>{r(),k.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?jo(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 Xt(t,e){return new of(t,e)}const Bo=t=>e=>e.test(t),af={test:t=>t==="auto",parse:t=>t},Io=[Dt,C,ot,xt,hc,fc,af],ee=t=>Io.find(Bo(t)),lf=[...Io,$,At],cf=t=>lf.find(Bo(t));function uf(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,Xt(n))}function ff(t,e){const n=ln(t,e);let{transitionEnd:r={},transition:i={},...o}=n?t.makeTargetAnimatable(n,!1):{};o={...o,...r};for(const s in o){const a=Cc(o[s]);uf(t,s,a)}}function hf(t,e,n){var r,i;const o=Object.keys(e).filter(a=>!t.hasValue(a)),s=o.length;if(s)for(let a=0;a<s;a++){const l=o[a],u=e[l];let f=null;Array.isArray(u)&&(f=u[0]),f===null&&(f=(i=(r=n[l])!==null&&r!==void 0?r:t.readValue(l))!==null&&i!==void 0?i:e[l]),f!=null&&(typeof f=="string"&&(No(f)||Fo(f))?f=parseFloat(f):!cf(f)&&At.test(u)&&(f=_o(l,u)),t.addValue(l,Xt(f,{owner:t})),n[l]===void 0&&(n[l]=f),f!==null&&t.setBaseTarget(l,f))}}function df(t,e){return e?(e[t]||e.default||e).from:void 0}function pf(t,e,n){const r={};for(const i in t){const o=df(i,e);if(o!==void 0)r[i]=o;else{const s=n.getValue(i);s&&(r[i]=s.get())}}return r}function mf({protectedKeys:t,needsAnimating:e},n){const r=t.hasOwnProperty(n)&&e[n]!==!0;return e[n]=!1,r}function gf(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 Wo(t,e,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:o=t.getDefaultTransition(),transitionEnd:s,...a}=t.makeTargetAnimatable(e);const l=t.getValue("willChange");r&&(o=r);const u=[],f=i&&t.animationState&&t.animationState.getState()[i];for(const c in a){const h=t.getValue(c),d=a[c];if(!h||d===void 0||f&&mf(f,c))continue;const m={delay:n,elapsed:0,...Er(o||{},c)};if(window.HandoffAppearAnimations){const b=t.getProps()[Ws];if(b){const w=window.HandoffAppearAnimations(b,c,h,k);w!==null&&(m.elapsed=w,m.isHandoff=!0)}}let g=!m.isHandoff&&!gf(h,d);if(m.type==="spring"&&(h.getVelocity()||m.velocity)&&(g=!1),h.animation&&(g=!1),g)continue;h.start(Sr(c,h,d,t.shouldReduceMotion&&Lt.has(c)?{type:!1}:m));const y=h.animation;qe(l)&&(l.add(c),y.then(()=>l.remove(c))),u.push(y)}return s&&Promise.all(u).then(()=>{s&&ff(t,s)}),u}function $n(t,e,n={}){const r=ln(t,e,n.custom);let{transition:i=t.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);const o=r?()=>Promise.all(Wo(t,r,n)):()=>Promise.resolve(),s=t.variantChildren&&t.variantChildren.size?(l=0)=>{const{delayChildren:u=0,staggerChildren:f,staggerDirection:c}=i;return yf(t,e,u+l,f,c,n)}:()=>Promise.resolve(),{when:a}=i;if(a){const[l,u]=a==="beforeChildren"?[o,s]:[s,o];return l().then(()=>u())}else return Promise.all([o(),s(n.delay)])}function yf(t,e,n=0,r=0,i=1,o){const s=[],a=(t.variantChildren.size-1)*r,l=i===1?(u=0)=>u*r:(u=0)=>a-u*r;return Array.from(t.variantChildren).sort(vf).forEach((u,f)=>{u.notify("AnimationStart",e),s.push($n(u,e,{...o,delay:n+l(f)}).then(()=>u.notify("AnimationComplete",e)))}),Promise.all(s)}function vf(t,e){return t.sortNodePosition(e)}function xf(t,e,n={}){t.notify("AnimationStart",e);let r;if(Array.isArray(e)){const i=e.map(o=>$n(t,o,n));r=Promise.all(i)}else if(typeof e=="string")r=$n(t,e,n);else{const i=typeof e=="function"?ln(t,e,n.custom):e;r=Promise.all(Wo(t,i,n))}return r.then(()=>t.notify("AnimationComplete",e))}const bf=[...lr].reverse(),wf=lr.length;function Ef(t){return e=>Promise.all(e.map(({animation:n,options:r})=>xf(t,n,r)))}function Sf(t){let e=Ef(t);const n=Af();let r=!0;const i=(l,u)=>{const f=ln(t,u);if(f){const{transition:c,transitionEnd:h,...d}=f;l={...l,...d,...h}}return l};function o(l){e=l(t)}function s(l,u){const f=t.getProps(),c=t.getVariantContext(!0)||{},h=[],d=new Set;let m={},g=1/0;for(let b=0;b<wf;b++){const w=bf[b],v=n[w],E=f[w]!==void 0?f[w]:c[w],T=he(E),S=w===u?v.isActive:null;S===!1&&(g=b);let A=E===c[w]&&E!==f[w]&&T;if(A&&r&&t.manuallyAnimateOnMount&&(A=!1),v.protectedKeys={...m},!v.isActive&&S===null||!E&&!v.prevProp||rn(E)||typeof E=="boolean")continue;let R=Tf(v.prevProp,E)||w===u&&v.isActive&&!A&&T||b>g&&T,D=!1;const U=Array.isArray(E)?E:[E];let N=U.reduce(i,{});S===!1&&(N={});const{prevResolvedValues:z={}}=v,I={...z,...N},et=B=>{R=!0,d.has(B)&&(D=!0,d.delete(B)),v.needsAnimating[B]=!0};for(const B in I){const nt=N[B],W=z[B];if(m.hasOwnProperty(B))continue;let pt=!1;Ue(nt)&&Ue(W)?pt=!co(nt,W):pt=nt!==W,pt?nt!==void 0?et(B):d.add(B):nt!==void 0&&d.has(B)?et(B):v.protectedKeys[B]=!0}v.prevProp=E,v.prevResolvedValues=N,v.isActive&&(m={...m,...N}),r&&t.blockInitialAnimation&&(R=!1),R&&(!A||D)&&h.push(...U.map(B=>({animation:B,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=s(f,l);for(const d in n)n[d].protectedKeys={};return h}return{animateChanges:s,setActive:a,setAnimateFunction:o,getState:()=>n}}function Tf(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!co(e,t):!1}function Ot(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Af(){return{animate:Ot(!0),whileInView:Ot(),whileHover:Ot(),whileTap:Ot(),whileDrag:Ot(),whileFocus:Ot(),exit:Ot()}}class Pf extends Pt{constructor(e){super(e),e.animationState||(e.animationState=Sf(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();this.unmount(),rn(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 Cf=0;class Rf extends Pt{constructor(){super(...arguments),this.id=Cf++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:n,custom:r}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===i)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 Of={animation:{Feature:Pf},exit:{Feature:Rf}},fi=(t,e)=>Math.abs(t-e);function Vf(t,e){const n=fi(t.x,e.x),r=fi(t.y,e.y);return Math.sqrt(n**2+r**2)}class Uo{constructor(e,n,{transformPagePoint:r,contextWindow:i,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=Rn(this.lastMoveEventInfo,this.history),h=this.startEvent!==null,d=Vf(c.offset,{x:0,y:0})>=3;if(!h&&!d)return;const{point:m}=c,{timestamp:g}=H;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=Cn(h,this.transformPagePoint),k.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=Rn(c.type==="pointercancel"?this.lastMoveEventInfo:Cn(h,this.transformPagePoint),this.history);this.startEvent&&d&&d(c,y),m&&m(c,y)},!io(e))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=r,this.contextWindow=i||window;const s=an(e),a=Cn(s,this.transformPagePoint),{point:l}=a,{timestamp:u}=H;this.history=[{...l,timestamp:u}];const{onSessionStart:f}=n;f&&f(e,Rn(a,this.history)),this.removeListeners=Et(ut(this.contextWindow,"pointermove",this.handlePointerMove),ut(this.contextWindow,"pointerup",this.handlePointerUp),ut(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),dt(this.updatePoint)}}function Cn(t,e){return e?{point:e(t.point)}:t}function hi(t,e){return{x:t.x-e.x,y:t.y-e.y}}function Rn({point:t},e){return{point:t,delta:hi(t,zo(e)),offset:hi(t,kf(e)),velocity:Mf(e,.1)}}function kf(t){return t[0]}function zo(t){return t[t.length-1]}function Mf(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,r=null;const i=zo(t);for(;n>=0&&(r=t[n],!(i.timestamp-r.timestamp>St(e)));)n--;if(!r)return{x:0,y:0};const o=ft(i.timestamp-r.timestamp);if(o===0)return{x:0,y:0};const s={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function K(t){return t.max-t.min}function qn(t,e=0,n=.01){return Math.abs(t-e)<=n}function di(t,e,n,r=.5){t.origin=r,t.originPoint=j(e.min,e.max,t.origin),t.scale=K(n)/K(e),(qn(t.scale,1,1e-4)||isNaN(t.scale))&&(t.scale=1),t.translate=j(n.min,n.max,t.origin)-t.originPoint,(qn(t.translate)||isNaN(t.translate))&&(t.translate=0)}function ae(t,e,n,r){di(t.x,e.x,n.x,r?r.originX:void 0),di(t.y,e.y,n.y,r?r.originY:void 0)}function pi(t,e,n){t.min=n.min+e.min,t.max=t.min+K(e)}function jf(t,e,n){pi(t.x,e.x,n.x),pi(t.y,e.y,n.y)}function mi(t,e,n){t.min=e.min-n.min,t.max=t.min+K(e)}function le(t,e,n){mi(t.x,e.x,n.x),mi(t.y,e.y,n.y)}function Lf(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 gi(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 Df(t,{top:e,left:n,bottom:r,right:i}){return{x:gi(t.x,n,i),y:gi(t.y,e,r)}}function yi(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 _f(t,e){return{x:yi(t.x,e.x),y:yi(t.y,e.y)}}function Ff(t,e){let n=.5;const r=K(t),i=K(e);return i>r?n=pe(e.min,e.max-r,t.min):r>i&&(n=pe(t.min,t.max-i,e.min)),Tt(0,1,n)}function Nf(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 Gn=.35;function Bf(t=Gn){return t===!1?t=0:t===!0&&(t=Gn),{x:vi(t,"left","right"),y:vi(t,"top","bottom")}}function vi(t,e,n){return{min:xi(t,e),max:xi(t,n)}}function xi(t,e){return typeof t=="number"?t:t[e]||0}const bi=()=>({translate:0,scale:1,origin:0,originPoint:0}),qt=()=>({x:bi(),y:bi()}),wi=()=>({min:0,max:0}),_=()=>({x:wi(),y:wi()});function J(t){return[t("x"),t("y")]}function Ho({top:t,left:e,right:n,bottom:r}){return{x:{min:e,max:n},y:{min:t,max:r}}}function If({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function Wf(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 On(t){return t===void 0||t===1}function Xn({scale:t,scaleX:e,scaleY:n}){return!On(t)||!On(e)||!On(n)}function Vt(t){return Xn(t)||$o(t)||t.z||t.rotate||t.rotateX||t.rotateY}function $o(t){return Ei(t.x)||Ei(t.y)}function Ei(t){return t&&t!=="0%"}function Ge(t,e,n){const r=t-n,i=e*r;return n+i}function Si(t,e,n,r,i){return i!==void 0&&(t=Ge(t,i,r)),Ge(t,n,r)+e}function Kn(t,e=0,n=1,r,i){t.min=Si(t.min,e,n,r,i),t.max=Si(t.max,e,n,r,i)}function qo(t,{x:e,y:n}){Kn(t.x,e.translate,e.scale,e.originPoint),Kn(t.y,n.translate,n.scale,n.originPoint)}function Uf(t,e,n,r=!1){const i=n.length;if(!i)return;e.x=e.y=1;let o,s;for(let a=0;a<i;a++){o=n[a],s=o.projectionDelta;const l=o.instance;l&&l.style&&l.style.display==="contents"||(r&&o.options.layoutScroll&&o.scroll&&o!==o.root&&Gt(t,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),s&&(e.x*=s.x.scale,e.y*=s.y.scale,qo(t,s)),r&&Vt(o.latestValues)&&Gt(t,o.latestValues))}e.x=Ti(e.x),e.y=Ti(e.y)}function Ti(t){return Number.isInteger(t)||t>1.0000000000001||t<.999999999999?t:1}function bt(t,e){t.min=t.min+e,t.max=t.max+e}function Ai(t,e,[n,r,i]){const o=e[i]!==void 0?e[i]:.5,s=j(t.min,t.max,o);Kn(t,e[n],e[r],s,e.scale)}const zf=["x","scaleX","originX"],Hf=["y","scaleY","originY"];function Gt(t,e){Ai(t.x,e,zf),Ai(t.y,e,Hf)}function Go(t,e){return Ho(Wf(t.getBoundingClientRect(),e))}function $f(t,e,n){const r=Go(t,n),{scroll:i}=e;return i&&(bt(r.x,i.offset.x),bt(r.y,i.offset.y)),r}const Xo=({current:t})=>t?t.ownerDocument.defaultView:null,qf=new WeakMap;class Gf{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=_(),this.visualElement=e}start(e,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const i=f=>{const{dragSnapToOrigin:c}=this.getProps();c?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(an(f,"page").point)},o=(f,c)=>{const{drag:h,dragPropagation:d,onDragStart:m}=this.getProps();if(h&&!d&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=oo(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),J(y=>{let b=this.getAxisMotionValue(y).get()||0;if(ot.test(b)){const{projection:w}=this.visualElement;if(w&&w.layout){const v=w.layout.layoutBox[y];v&&(b=K(v)*(parseFloat(b)/100))}}this.originPoint[y]=b}),m&&k.update(()=>m(f,c),!1,!0);const{animationState:g}=this.visualElement;g&&g.setActive("whileDrag",!0)},s=(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=Xf(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=()=>J(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 Uo(e,{onSessionStart:i,onStart:o,onMove:s,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,contextWindow:Xo(this.visualElement)})}stop(e,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:o}=this.getProps();o&&k.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:i}=this.getProps();if(!r||!Ce(e,i,this.currentDirection))return;const o=this.getAxisMotionValue(e);let s=this.originPoint[e]+r[e];this.constraints&&this.constraints[e]&&(s=Lf(s,this.constraints[e],this.elastic[e])),o.set(s)}resolveConstraints(){var e;const{dragConstraints:n,dragElastic:r}=this.getProps(),i=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&&Ht(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=Df(i.layoutBox,n):this.constraints=!1,this.elastic=Bf(r),o!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&J(s=>{this.getAxisMotionValue(s)&&(this.constraints[s]=Nf(i.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:n}=this.getProps();if(!e||!Ht(e))return!1;const r=e.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const o=$f(r,i.root,this.visualElement.getTransformPagePoint());let s=_f(i.layout.layoutBox,o);if(n){const a=n(If(s));this.hasMutatedConstraints=!!a,a&&(s=Ho(a))}return s}startAnimation(e){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:o,dragSnapToOrigin:s,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},u=J(f=>{if(!Ce(f,n,this.currentDirection))return;let c=l&&l[f]||{};s&&(c={min:0,max:0});const h=i?200:1e6,d=i?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(Sr(e,r,0,n))}stopAnimation(){J(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){J(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(),i=r[n];return i||this.visualElement.getValue(e,(r.initial?r.initial[e]:void 0)||0)}snapToCursor(e){J(n=>{const{drag:r}=this.getProps();if(!Ce(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(n);if(i&&i.layout){const{min:s,max:a}=i.layout.layoutBox[n];o.set(e[n]-j(s,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Ht(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};J(s=>{const a=this.getAxisMotionValue(s);if(a){const l=a.get();i[s]=Ff({min:l,max:l},this.constraints[s])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),J(s=>{if(!Ce(s,e,null))return;const a=this.getAxisMotionValue(s),{min:l,max:u}=this.constraints[s];a.set(j(l,u,i[s]))})}addListeners(){if(!this.visualElement.current)return;qf.set(this.visualElement,this);const e=this.visualElement.current,n=ut(e,"pointerdown",l=>{const{drag:u,dragListener:f=!0}=this.getProps();u&&f&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();Ht(l)&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,o=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),r();const s=ct(window,"resize",()=>this.scalePositionWithinConstraints()),a=i.addEventListener("didUpdate",({delta:l,hasLayoutChanged:u})=>{this.isDragging&&u&&(J(f=>{const c=this.getAxisMotionValue(f);c&&(this.originPoint[f]+=l[f].translate,c.set(c.get()+l[f].translate))}),this.visualElement.render())});return()=>{s(),n(),o(),a&&a()}}getProps(){const e=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:s=Gn,dragMomentum:a=!0}=e;return{...e,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:o,dragElastic:s,dragMomentum:a}}}function Ce(t,e,n){return(e===!0||e===t)&&(n===null||n===t)}function Xf(t,e=10){let n=null;return Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x"),n}class Kf extends Pt{constructor(e){super(e),this.removeGroupControls=L,this.removeListeners=L,this.controls=new Gf(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 Pi=t=>(e,n)=>{t&&k.update(()=>t(e,n))};class Yf extends Pt{constructor(){super(...arguments),this.removePointerDownListener=L}onPointerDown(e){this.session=new Uo(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Xo(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:Pi(e),onStart:Pi(n),onMove:r,onEnd:(o,s)=>{delete this.session,i&&k.update(()=>i(o,s))}}}mount(){this.removePointerDownListener=ut(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 Jf(){const t=p.reactExports.useContext(or);if(t===null)return[!0,null];const{isPresent:e,onExitComplete:n,register:r}=t,i=p.reactExports.useId();return p.reactExports.useEffect(()=>r(i),[]),!e&&n?[!1,()=>n&&n(i)]:[!0]}const Me={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Ci(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const ne={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(C.test(t))t=parseFloat(t);else return t;const n=Ci(t,e.target.x),r=Ci(t,e.target.y);return`${n}% ${r}%`}},Zf={correct:(t,{treeScale:e,projectionDelta:n})=>{const r=t,i=At.parse(t);if(i.length>5)return r;const o=At.createTransformer(t),s=typeof i[0]!="number"?1:0,a=n.x.scale*e.x,l=n.y.scale*e.y;i[0+s]/=a,i[1+s]/=l;const u=j(a,l,.5);return typeof i[2+s]=="number"&&(i[2+s]/=u),typeof i[3+s]=="number"&&(i[3+s]/=u),o(i)}};class Qf extends p.e.Component{componentDidMount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:o}=e;ic(th),o&&(n.group&&n.group.add(o),r&&r.register&&i&&r.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),Me.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:n,visualElement:r,drag:i,isPresent:o}=this.props,s=r.projection;return s&&(s.isPresent=o,i||e.layoutDependency!==n||n===void 0?s.willUpdate():this.safeToRemove(),e.isPresent!==o&&(o?s.promote():s.relegate()||k.postRender(()=>{const a=s.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:i}=e;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function Ko(t){const[e,n]=Jf(),r=p.reactExports.useContext(zs);return p.e.createElement(Qf,{...t,layoutGroup:r,switchLayoutGroup:p.reactExports.useContext(Hs),isPresent:e,safeToRemove:n})}const th={borderRadius:{...ne,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:ne,borderTopRightRadius:ne,borderBottomLeftRadius:ne,borderBottomRightRadius:ne,boxShadow:Zf},Yo=["TopLeft","TopRight","BottomLeft","BottomRight"],eh=Yo.length,Ri=t=>typeof t=="string"?parseFloat(t):t,Oi=t=>typeof t=="number"||C.test(t);function nh(t,e,n,r,i,o){i?(t.opacity=j(0,n.opacity!==void 0?n.opacity:1,rh(r)),t.opacityExit=j(e.opacity!==void 0?e.opacity:1,0,ih(r))):o&&(t.opacity=j(e.opacity!==void 0?e.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let s=0;s<eh;s++){const a=`border${Yo[s]}Radius`;let l=Vi(e,a),u=Vi(n,a);if(l===void 0&&u===void 0)continue;l||(l=0),u||(u=0),l===0||u===0||Oi(l)===Oi(u)?(t[a]=Math.max(j(Ri(l),Ri(u),r),0),(ot.test(u)||ot.test(l))&&(t[a]+="%")):t[a]=u}(e.rotate||n.rotate)&&(t.rotate=j(e.rotate||0,n.rotate||0,r))}function Vi(t,e){return t[e]!==void 0?t[e]:t.borderRadius}const rh=Jo(0,.5,xo),ih=Jo(.5,.95,L);function Jo(t,e,n){return r=>r<t?0:r>e?1:n(pe(t,e,r))}function ki(t,e){t.min=e.min,t.max=e.max}function Y(t,e){ki(t.x,e.x),ki(t.y,e.y)}function Mi(t,e,n,r,i){return t-=e,t=Ge(t,1/n,r),i!==void 0&&(t=Ge(t,1/i,r)),t}function sh(t,e=0,n=1,r=.5,i,o=t,s=t){if(ot.test(e)&&(e=parseFloat(e),e=j(s.min,s.max,e/100)-s.min),typeof e!="number")return;let a=j(o.min,o.max,r);t===o&&(a-=e),t.min=Mi(t.min,e,n,a,i),t.max=Mi(t.max,e,n,a,i)}function ji(t,e,[n,r,i],o,s){sh(t,e[n],e[r],e[i],e.scale,o,s)}const oh=["x","scaleX","originX"],ah=["y","scaleY","originY"];function Li(t,e,n,r){ji(t.x,e,oh,n?n.x:void 0,r?r.x:void 0),ji(t.y,e,ah,n?n.y:void 0,r?r.y:void 0)}function Di(t){return t.translate===0&&t.scale===1}function Zo(t){return Di(t.x)&&Di(t.y)}function lh(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 Qo(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 _i(t){return K(t.x)/K(t.y)}class ch{constructor(){this.members=[]}add(e){Tr(this.members,e),e.scheduleRender()}remove(e){if(Ar(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(i=>e===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const o=this.members[i];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:i}=e.options;i===!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 Fi(t,e,n){let r="";const i=t.x.translate/e.x,o=t.y.translate/e.y;if((i||o)&&(r=`translate3d(${i}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 s=t.x.scale*e.x,a=t.y.scale*e.y;return(s!==1||a!==1)&&(r+=`scale(${s}, ${a})`),r||"none"}const uh=(t,e)=>t.depth-e.depth;class fh{constructor(){this.children=[],this.isDirty=!1}add(e){Tr(this.children,e),this.isDirty=!0}remove(e){Ar(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(uh),this.isDirty=!1,this.children.forEach(e)}}function hh(t,e){const n=performance.now(),r=({timestamp:i})=>{const o=i-n;o>=e&&(dt(r),t(o-e))};return k.read(r,!0),()=>dt(r)}function dh(t){window.MotionDebug&&window.MotionDebug.record(t)}function ph(t){return t instanceof SVGElement&&t.tagName!=="svg"}function mh(t,e,n){const r=G(t)?t:Xt(t);return r.start(Sr("",r,e,n)),r.animation}const Ni=["","X","Y","Z"],gh={visibility:"hidden"},Bi=1e3;let yh=0;const kt={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function ta({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(s={},a=e==null?void 0:e()){this.id=yh++,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,kt.totalNodes=kt.resolvedTargetDeltas=kt.recalculatedProjection=0,this.nodes.forEach(bh),this.nodes.forEach(Ah),this.nodes.forEach(Ph),this.nodes.forEach(wh),dh(kt)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,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 fh)}addEventListener(s,a){return this.eventHandlers.has(s)||this.eventHandlers.set(s,new Pr),this.eventHandlers.get(s).add(a)}notifyListeners(s,...a){const l=this.eventHandlers.get(s);l&&l.notify(...a)}hasListeners(s){return this.eventHandlers.has(s)}mount(s,a=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=ph(s),this.instance=s;const{layoutId:l,layout:u,visualElement:f}=this.options;if(f&&!f.current&&f.mount(s),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(s,()=>{this.root.updateBlockedByResize=!0,c&&c(),c=hh(h,250),Me.hasAnimatedSinceResize&&(Me.hasAnimatedSinceResize=!1,this.nodes.forEach(Wi))})}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()||kh,{onLayoutAnimationStart:y,onLayoutAnimationComplete:b}=f.getProps(),w=!this.targetLayout||!Qo(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={...Er(g,"layout"),onPlay:y,onComplete:b};(f.shouldReduceMotion||this.options.layoutRoot)&&(E.delay=0,E.type=!1),this.startAnimation(E)}else h||Wi(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=m})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const s=this.getStack();s&&s.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,dt(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(Ch),this.animationId++)}getTransformTemplate(){const{visualElement:s}=this.options;return s&&s.getProps().transformTemplate}willUpdate(s=!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(),s&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Ii);return}this.isUpdating||this.nodes.forEach(Sh),this.isUpdating=!1,this.nodes.forEach(Th),this.nodes.forEach(vh),this.nodes.forEach(xh),this.clearAllSnapshots();const a=performance.now();H.delta=Tt(0,1e3/60,a-H.timestamp),H.timestamp=a,H.isProcessing=!0,xn.update.process(H),xn.preRender.process(H),xn.render.process(H),H.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,queueMicrotask(()=>this.update()))}clearAllSnapshots(){this.nodes.forEach(Eh),this.sharedNodes.forEach(Rh)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,k.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){k.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 s=this.layout;this.layout=this.measure(!1),this.layoutCorrected=_(),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,s?s.layoutBox:void 0)}updateScroll(s="measure"){let a=!!(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===s&&(a=!1),a&&(this.scroll={animationId:this.root.animationId,phase:s,isRoot:r(this.instance),offset:n(this.instance)})}resetTransform(){if(!i)return;const s=this.isLayoutDirty||this.shouldResetTransform,a=this.projectionDelta&&!Zo(this.projectionDelta),l=this.getTransformTemplate(),u=l?l(this.latestValues,""):void 0,f=u!==this.prevTransformTemplateValue;s&&(a||Vt(this.latestValues)||f)&&(i(this.instance,u),this.shouldResetTransform=!1,this.scheduleRender())}measure(s=!0){const a=this.measurePageBox();let l=this.removeElementScroll(a);return s&&(l=this.removeTransform(l)),Mh(l),{animationId:this.root.animationId,measuredBox:a,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:s}=this.options;if(!s)return _();const a=s.measureViewportBox(),{scroll:l}=this.root;return l&&(bt(a.x,l.offset.x),bt(a.y,l.offset.y)),a}removeElementScroll(s){const a=_();Y(a,s);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){Y(a,s);const{scroll:h}=this.root;h&&(bt(a.x,-h.offset.x),bt(a.y,-h.offset.y))}bt(a.x,f.offset.x),bt(a.y,f.offset.y)}}return a}applyTransform(s,a=!1){const l=_();Y(l,s);for(let u=0;u<this.path.length;u++){const f=this.path[u];!a&&f.options.layoutScroll&&f.scroll&&f!==f.root&&Gt(l,{x:-f.scroll.offset.x,y:-f.scroll.offset.y}),Vt(f.latestValues)&&Gt(l,f.latestValues)}return Vt(this.latestValues)&&Gt(l,this.latestValues),l}removeTransform(s){const a=_();Y(a,s);for(let l=0;l<this.path.length;l++){const u=this.path[l];if(!u.instance||!Vt(u.latestValues))continue;Xn(u.latestValues)&&u.updateSnapshot();const f=_(),c=u.measurePageBox();Y(f,c),Li(a,u.latestValues,u.snapshot?u.snapshot.layoutBox:void 0,f)}return Vt(this.latestValues)&&Li(a,this.latestValues),a}setTargetDelta(s){this.targetDelta=s,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(s){this.options={...this.options,...s,crossfade:s.crossfade!==void 0?s.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!==H.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(s=!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(!(s||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=H.timestamp,!this.targetDelta&&!this.relativeTarget){const d=this.getClosestProjectingParent();d&&d.layout&&this.animationProgress!==1?(this.relativeParent=d,this.forceRelativeParentToResolveTarget(),this.relativeTarget=_(),this.relativeTargetOrigin=_(),le(this.relativeTargetOrigin,this.layout.layoutBox,d.layout.layoutBox),Y(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=_(),this.targetWithTransforms=_()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),jf(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Y(this.target,this.layout.layoutBox),qo(this.target,this.targetDelta)):Y(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=_(),this.relativeTargetOrigin=_(),le(this.relativeTargetOrigin,this.target,d.target),Y(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}kt.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||Xn(this.parent.latestValues)||$o(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 s;const a=this.getLead(),l=!!this.resumingFrom||this!==a;let u=!0;if((this.isProjectionDirty||!((s=this.parent)===null||s===void 0)&&s.isProjectionDirty)&&(u=!1),l&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(u=!1),this.resolvedRelativeTargetAt===H.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;Y(this.layoutCorrected,this.layout.layoutBox);const h=this.treeScale.x,d=this.treeScale.y;Uf(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=qt(),this.projectionTransform="none",this.scheduleRender());return}this.projectionDelta||(this.projectionDelta=qt(),this.projectionDeltaWithTransform=qt());const g=this.projectionTransform;ae(this.projectionDelta,this.layoutCorrected,m,this.latestValues),this.projectionTransform=Fi(this.projectionDelta,this.treeScale),(this.projectionTransform!==g||this.treeScale.x!==h||this.treeScale.y!==d)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",m)),kt.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(s=!0){if(this.options.scheduleRender&&this.options.scheduleRender(),s){const a=this.getStack();a&&a.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(s,a=!1){const l=this.snapshot,u=l?l.latestValues:{},f={...this.latestValues},c=qt();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const h=_(),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(Vh));this.animationProgress=0;let v;this.mixTargetDelta=E=>{const T=E/1e3;Ui(c.x,s.x,T),Ui(c.y,s.y,T),this.setTargetDelta(c),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(le(h,this.layout.layoutBox,this.relativeParent.layout.layoutBox),Oh(this.relativeTarget,this.relativeTargetOrigin,h,T),v&&lh(this.relativeTarget,v)&&(this.isProjectionDirty=!1),v||(v=_()),Y(v,this.relativeTarget)),g&&(this.animationValues=f,nh(f,u,this.latestValues,T,w,b)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=T},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(dt(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=k.update(()=>{Me.hasAnimatedSinceResize=!0,this.currentAnimation=mh(0,Bi,{...s,onUpdate:a=>{this.mixTargetDelta(a),s.onUpdate&&s.onUpdate(a)},onComplete:()=>{s.onComplete&&s.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 s=this.getStack();s&&s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Bi),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:a,target:l,layout:u,latestValues:f}=s;if(!(!a||!l||!u)){if(this!==s&&this.layout&&u&&ea(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||_();const c=K(this.layout.layoutBox.x);l.x.min=s.target.x.min,l.x.max=l.x.min+c;const h=K(this.layout.layoutBox.y);l.y.min=s.target.y.min,l.y.max=l.y.min+h}Y(a,l),Gt(a,f),ae(this.projectionDeltaWithTransform,this.layoutCorrected,a,f)}}registerSharedNode(s,a){this.sharedNodes.has(s)||this.sharedNodes.set(s,new ch),this.sharedNodes.get(s).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 s=this.getStack();return s?s.lead===this:!0}getLead(){var s;const{layoutId:a}=this.options;return a?((s=this.getStack())===null||s===void 0?void 0:s.lead)||this:this}getPrevLead(){var s;const{layoutId:a}=this.options;return a?(s=this.getStack())===null||s===void 0?void 0:s.prevLead:void 0}getStack(){const{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:a,preserveFollowOpacity:l}={}){const u=this.getStack();u&&u.promote(this,l),s&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const s=this.getStack();return s?s.relegate(this):!1}resetRotation(){const{visualElement:s}=this.options;if(!s)return;let a=!1;const{latestValues:l}=s;if((l.rotate||l.rotateX||l.rotateY||l.rotateZ)&&(a=!0),!a)return;const u={};for(let f=0;f<Ni.length;f++){const c="rotate"+Ni[f];l[c]&&(u[c]=l[c],s.setStaticValue(c,0))}s.render();for(const f in u)s.setStaticValue(f,u[f]);s.scheduleRender()}getProjectionStyles(s){var a,l;if(!this.instance||this.isSVG)return;if(!this.isVisible)return gh;const u={visibility:""},f=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,u.opacity="",u.pointerEvents=ke(s==null?void 0:s.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=ke(s==null?void 0:s.pointerEvents)||""),this.hasProjected&&!Vt(this.latestValues)&&(g.transform=f?f({},""):"none",this.hasProjected=!1),g}const h=c.animationValues||c.latestValues;this.applyTransformsToTarget(),u.transform=Fi(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 Ie){if(h[g]===void 0)continue;const{correct:y,applyTo:b}=Ie[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?ke(s==null?void 0:s.pointerEvents)||"":"none"),u}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(s=>{var a;return(a=s.currentAnimation)===null||a===void 0?void 0:a.stop()}),this.root.nodes.forEach(Ii),this.root.sharedNodes.clear()}}}function vh(t){t.updateLayout()}function xh(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:i}=t.layout,{animationType:o}=t.options,s=n.source!==t.layout.source;o==="size"?J(c=>{const h=s?n.measuredBox[c]:n.layoutBox[c],d=K(h);h.min=r[c].min,h.max=h.min+d}):ea(o,n.layoutBox,r)&&J(c=>{const h=s?n.measuredBox[c]:n.layoutBox[c],d=K(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=qt();ae(a,r,n.layoutBox);const l=qt();s?ae(l,t.applyTransform(i,!0),n.measuredBox):ae(l,r,n.layoutBox);const u=!Zo(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=_();le(m,n.layoutBox,h.layoutBox);const g=_();le(g,r,d.layoutBox),Qo(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 bh(t){kt.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 wh(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function Eh(t){t.clearSnapshot()}function Ii(t){t.clearMeasurements()}function Sh(t){t.isLayoutDirty=!1}function Th(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function Wi(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function Ah(t){t.resolveTargetDelta()}function Ph(t){t.calcProjection()}function Ch(t){t.resetRotation()}function Rh(t){t.removeLeadSnapshot()}function Ui(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 zi(t,e,n,r){t.min=j(e.min,n.min,r),t.max=j(e.max,n.max,r)}function Oh(t,e,n,r){zi(t.x,e.x,n.x,r),zi(t.y,e.y,n.y,r)}function Vh(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const kh={duration:.45,ease:[.4,0,.1,1]},Hi=t=>typeof navigator<"u"&&navigator.userAgent.toLowerCase().includes(t),$i=Hi("applewebkit/")&&!Hi("chrome/")?Math.round:L;function qi(t){t.min=$i(t.min),t.max=$i(t.max)}function Mh(t){qi(t.x),qi(t.y)}function ea(t,e,n){return t==="position"||t==="preserve-aspect"&&!qn(_i(e),_i(n),.2)}const jh=ta({attachResizeListener:(t,e)=>ct(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Vn={current:void 0},na=ta({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!Vn.current){const t=new jh({});t.mount(window),t.setOptions({layoutScroll:!0}),Vn.current=t}return Vn.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),Lh={pan:{Feature:Yf},drag:{Feature:Kf,ProjectionNode:na,MeasureLayout:Ko}},Dh=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function _h(t){const e=Dh.exec(t);if(!e)return[,];const[,n,r]=e;return[n,r]}function Yn(t,e,n=1){const[r,i]=_h(t);if(!r)return;const o=window.getComputedStyle(e).getPropertyValue(r);if(o){const s=o.trim();return No(s)?parseFloat(s):s}else return Bn(i)?Yn(i,e,n+1):i}function Fh(t,{...e},n){const r=t.current;if(!(r instanceof Element))return{target:e,transitionEnd:n};n&&(n={...n}),t.values.forEach(i=>{const o=i.get();if(!Bn(o))return;const s=Yn(o,r);s&&i.set(s)});for(const i in e){const o=e[i];if(!Bn(o))continue;const s=Yn(o,r);s&&(e[i]=s,n||(n={}),n[i]===void 0&&(n[i]=o))}return{target:e,transitionEnd:n}}const Nh=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),ra=t=>Nh.has(t),Bh=t=>Object.keys(t).some(ra),Gi=t=>t===Dt||t===C,Xi=(t,e)=>parseFloat(t.split(", ")[e]),Ki=(t,e)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/);if(i)return Xi(i[1],e);{const o=r.match(/^matrix\((.+)\)$/);return o?Xi(o[1],t):0}},Ih=new Set(["x","y","z"]),Wh=ge.filter(t=>!Ih.has(t));function Uh(t){const e=[];return Wh.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 Kt={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:Ki(4,13),y:Ki(5,14)};Kt.translateX=Kt.x;Kt.translateY=Kt.y;const zh=(t,e,n)=>{const r=e.measureViewportBox(),i=e.current,o=getComputedStyle(i),{display:s}=o,a={};s==="none"&&e.setStaticValue("display",t.display||"block"),n.forEach(u=>{a[u]=Kt[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]=Kt[u](l,o)}),t},Hh=(t,e,n={},r={})=>{e={...e},r={...r};const i=Object.keys(e).filter(ra);let o=[],s=!1;const a=[];if(i.forEach(l=>{const u=t.getValue(l);if(!t.hasValue(l))return;let f=n[l],c=ee(f);const h=e[l];let d;if(Ue(h)){const m=h.length,g=h[0]===null?1:0;f=h[g],c=ee(f);for(let y=g;y<m&&h[y]!==null;y++)d?yr(ee(h[y])===d):d=ee(h[y])}else d=ee(h);if(c!==d)if(Gi(c)&&Gi(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):(s||(o=Uh(t),s=!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=zh(e,t,a);return o.length&&o.forEach(([f,c])=>{t.getValue(f).set(c)}),t.render(),nn&&l!==null&&window.scrollTo({top:l}),{target:u,transitionEnd:r}}else return{target:e,transitionEnd:r}};function $h(t,e,n,r){return Bh(e)?Hh(t,e,n,r):{target:e,transitionEnd:r}}const qh=(t,e,n,r)=>{const i=Fh(t,e,r);return e=i.target,r=i.transitionEnd,$h(t,e,n,r)},Jn={current:null},ia={current:!1};function Gh(){if(ia.current=!0,!!nn)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>Jn.current=t.matches;t.addListener(e),e()}else Jn.current=!1}function Xh(t,e,n){const{willChange:r}=e;for(const i in e){const o=e[i],s=n[i];if(G(o))t.addValue(i,o),qe(r)&&r.add(i);else if(G(s))t.addValue(i,Xt(o,{owner:t})),qe(r)&&r.remove(i);else if(s!==o)if(t.hasValue(i)){const a=t.getValue(i);!a.hasAnimated&&a.set(o)}else{const a=t.getStaticValue(i);t.addValue(i,Xt(a!==void 0?a:o,{owner:t}))}}for(const i in n)e[i]===void 0&&t.removeValue(i);return e}const Yi=new WeakMap,sa=Object.keys(de),Kh=sa.length,Ji=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],Yh=cr.length;class Jh{constructor({parent:e,props:n,presenceContext:r,reducedMotionConfig:i,visualState:o},s={}){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=()=>k.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=i,this.options=s,this.isControllingVariants=sn(n),this.isVariantNode=Us(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&&G(h)&&(h.set(a[c],!1),qe(u)&&u.add(c))}}scrapeMotionValuesFromProps(e,n){return{}}mount(e){this.current=e,Yi.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)),ia.current||Gh(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Jn.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){Yi.delete(this.current),this.projection&&this.projection.unmount(),dt(this.notifyUpdate),dt(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=Lt.has(e),i=n.on("change",s=>{this.latestValues[e]=s,this.props.onUpdate&&k.update(this.notifyUpdate,!1,!0),r&&this.projection&&(this.projection.isTransformDirty=!0)}),o=n.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(e,()=>{i(),o()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}loadFeatures({children:e,...n},r,i,o){let s,a;for(let l=0;l<Kh;l++){const u=sa[l],{isEnabled:f,Feature:c,ProjectionNode:h,MeasureLayout:d}=de[u];h&&(s=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&&s){this.projection=new s(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&&Ht(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):_()}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<Ji.length;r++){const i=Ji[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const o=e["on"+i];o&&(this.propEventSubscriptions[i]=this.on(i,o))}this.prevMotionValues=Xh(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<Yh;r++){const i=cr[r],o=this.props[i];(he(o)||o===!1)&&(n[i]=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=Xt(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,i=typeof r=="string"||typeof r=="object"?(n=gr(this.props,r))===null||n===void 0?void 0:n[e]:void 0;if(r&&i!==void 0)return i;const o=this.getBaseTargetFromProps(this.props,e);return o!==void 0&&!G(o)?o:this.initialValues[e]!==void 0&&i===void 0?void 0:this.baseTarget[e]}on(e,n){return this.events[e]||(this.events[e]=new Pr),this.events[e].add(n)}notify(e,...n){this.events[e]&&this.events[e].notify(...n)}}class oa extends Jh{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:i},o){let s=pf(r,e||{},this);if(i&&(n&&(n=i(n)),r&&(r=i(r)),s&&(s=i(s))),o){hf(this,r,s);const a=qh(this,r,s,n);n=a.transitionEnd,r=a.target}return{transition:e,transitionEnd:n,...r}}}function Zh(t){return window.getComputedStyle(t)}class Qh extends oa{constructor(){super(...arguments),this.type="html"}readValueFromInstance(e,n){if(Lt.has(n)){const r=wr(n);return r&&r.default||0}else{const r=Zh(e),i=(Gs(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(e,{transformPagePoint:n}){return Go(e,n)}build(e,n,r,i){fr(e,n,r,i.transformTemplate)}scrapeMotionValuesFromProps(e,n){return mr(e,n)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;G(e)&&(this.childSubscription=e.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}renderInstance(e,n,r,i){Qs(e,n,r,i)}}class td extends oa{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}getBaseTargetFromProps(e,n){return e[n]}readValueFromInstance(e,n){if(Lt.has(n)){const r=wr(n);return r&&r.default||0}return n=to.has(n)?n:ar(n),e.getAttribute(n)}measureInstanceViewportBox(){return _()}scrapeMotionValuesFromProps(e,n){return no(e,n)}build(e,n,r,i){dr(e,n,r,this.isSVGTag,i.transformTemplate)}renderInstance(e,n,r,i){eo(e,n,r,i)}mount(e){this.isSVGTag=pr(e.tagName),super.mount(e)}}const ed=(t,e)=>ur(t)?new td(e,{enableHardwareAcceleration:!1}):new Qh(e,{enableHardwareAcceleration:!0}),nd={layout:{ProjectionNode:na,MeasureLayout:Ko}},rd={...Of,...Xc,...Lh,...nd},aa=nc((t,e)=>Dc(t,e,rd,ed));function id(t){const{children:e,parentRef:n,onlyChild:r}=t,[i,o]=p.reactExports.useState({top:0,left:0});return p.reactExports.useLayoutEffect(()=>{if(n.current){const s=n.current.getBoundingClientRect();o({top:s.top,left:s.left+s.width})}},[n]),r?e:p.reactDomExports.createPortal(p.jsxRuntimeExports.jsx(aa.div,{style:{position:"fixed",top:i.top,left:i.left,zIndex:1200},children:e}),n.current)}function sd(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 od(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,o;for(o=0;o<r.length;o++)i=r[o],!(e.indexOf(i)>=0)&&(n[i]=t[i]);return n}function Xe(){return Xe=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},Xe.apply(this,arguments)}function Zn(t,e){return Zn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Zn(t,e)}function ad(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,Zn(t,e)}function kn(t,e,n){if(n||arguments.length===2)for(var r=0,i=e.length,o;r<i;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))}/*!
28
+ */function Nn(){return Nn=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},Nn.apply(this,arguments)}function tl(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,o;for(o=0;o<r.length;o++)i=r[o],!(e.indexOf(i)>=0)&&(n[i]=t[i]);return n}function el(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}function nl(t,e){return t.button===0&&(!e||e==="_self")&&!el(t)}const rl=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],il="startTransition",Ir=p.React[il];function sl(t){let{basename:e,children:n,future:r,window:i}=t,o=p.reactExports.useRef();o.current==null&&(o.current=Fa({window:i,v5Compat:!0}));let s=o.current,[a,l]=p.reactExports.useState({action:s.action,location:s.location}),{v7_startTransition:c}=r||{},f=p.reactExports.useCallback(u=>{c&&Ir?Ir(()=>l(u)):l(u)},[l,c]);return p.reactExports.useLayoutEffect(()=>s.listen(f),[s,f]),p.reactExports.createElement(Qa,{basename:e,children:n,location:a.location,navigationType:a.action,navigator:s,future:r})}const ol=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",al=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,ll=p.reactExports.forwardRef(function(e,n){let{onClick:r,relative:i,reloadDocument:o,replace:s,state:a,target:l,to:c,preventScrollReset:f,unstable_viewTransition:u}=e,h=tl(e,rl),{basename:d}=p.reactExports.useContext(Jt),m,g=!1;if(typeof c=="string"&&al.test(c)&&(m=c,ol))try{let v=new URL(window.location.href),E=c.startsWith("//")?new URL(v.protocol+c):new URL(c),S=xs(E.pathname,d);E.origin===v.origin&&S!=null?c=S+E.search+E.hash:g=!0}catch{}let y=qa(c,{relative:i}),x=cl(c,{replace:s,state:a,target:l,preventScrollReset:f,relative:i,unstable_viewTransition:u});function w(v){r&&r(v),v.defaultPrevented||x(v)}return p.reactExports.createElement("a",Nn({},h,{href:m||y,onClick:g||o?r:w,ref:n,target:l}))});var Wr;(function(t){t.UseScrollRestoration="useScrollRestoration",t.UseSubmit="useSubmit",t.UseSubmitFetcher="useSubmitFetcher",t.UseFetcher="useFetcher",t.useViewTransitionState="useViewTransitionState"})(Wr||(Wr={}));var Ur;(function(t){t.UseFetcher="useFetcher",t.UseFetchers="useFetchers",t.UseScrollRestoration="useScrollRestoration"})(Ur||(Ur={}));function cl(t,e){let{target:n,replace:r,state:i,preventScrollReset:o,relative:s,unstable_viewTransition:a}=e===void 0?{}:e,l=Ga(),c=tn(),f=Ps(t,{relative:s});return p.reactExports.useCallback(u=>{if(nl(u,n)){u.preventDefault();let h=r!==void 0?r:_e(c)===_e(f);l(t,{replace:h,state:i,preventScrollReset:o,relative:s,unstable_viewTransition:a})}},[c,l,f,r,i,n,t,o,s,a])}var ul=typeof global=="object"&&global&&global.Object===Object&&global;const fl=ul;var hl=typeof self=="object"&&self&&self.Object===Object&&self,dl=fl||hl||Function("return this")();const Os=dl;var pl=Os.Symbol;const Ne=pl;var Vs=Object.prototype,ml=Vs.hasOwnProperty,gl=Vs.toString,te=Ne?Ne.toStringTag:void 0;function yl(t){var e=ml.call(t,te),n=t[te];try{t[te]=void 0;var r=!0}catch{}var i=gl.call(t);return r&&(e?t[te]=n:delete t[te]),i}var vl=Object.prototype,xl=vl.toString;function bl(t){return xl.call(t)}var wl="[object Null]",El="[object Undefined]",zr=Ne?Ne.toStringTag:void 0;function Sl(t){return t==null?t===void 0?El:wl:zr&&zr in Object(t)?yl(t):bl(t)}function Tl(t){return t!=null&&typeof t=="object"}var Al="[object Symbol]";function Pl(t){return typeof t=="symbol"||Tl(t)&&Sl(t)==Al}var Cl=/\s/;function Rl(t){for(var e=t.length;e--&&Cl.test(t.charAt(e)););return e}var Ol=/^\s+/;function Vl(t){return t&&t.slice(0,Rl(t)+1).replace(Ol,"")}function Be(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var Hr=0/0,kl=/^[-+]0x[0-9a-f]+$/i,Ml=/^0b[01]+$/i,jl=/^0o[0-7]+$/i,Ll=parseInt;function $r(t){if(typeof t=="number")return t;if(Pl(t))return Hr;if(Be(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=Be(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=Vl(t);var n=Ml.test(t);return n||jl.test(t)?Ll(t.slice(2),n?2:8):kl.test(t)?Hr:+t}var Dl=function(){return Os.Date.now()};const yn=Dl;var _l="Expected a function",Fl=Math.max,Nl=Math.min;function Ve(t,e,n){var r,i,o,s,a,l,c=0,f=!1,u=!1,h=!0;if(typeof t!="function")throw new TypeError(_l);e=$r(e)||0,Be(n)&&(f=!!n.leading,u="maxWait"in n,o=u?Fl($r(n.maxWait)||0,e):o,h="trailing"in n?!!n.trailing:h);function d(T){var A=r,P=i;return r=i=void 0,c=T,s=t.apply(P,A),s}function m(T){return c=T,a=setTimeout(x,e),f?d(T):s}function g(T){var A=T-l,P=T-c,R=e-A;return u?Nl(R,o-P):R}function y(T){var A=T-l,P=T-c;return l===void 0||A>=e||A<0||u&&P>=o}function x(){var T=yn();if(y(T))return w(T);a=setTimeout(x,g(T))}function w(T){return a=void 0,h&&r?d(T):(r=i=void 0,s)}function v(){a!==void 0&&clearTimeout(a),c=0,r=l=i=a=void 0}function E(){return a===void 0?s:w(yn())}function S(){var T=yn(),A=y(T);if(r=arguments,i=this,l=T,A){if(a===void 0)return m(l);if(u)return clearTimeout(a),a=setTimeout(x,e),d(l)}return a===void 0&&(a=setTimeout(x,e)),s}return S.cancel=v,S.flush=E,S}var Bl="Expected a function";function Il(t,e,n){var r=!0,i=!0;if(typeof t!="function")throw new TypeError(Bl);return Be(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),Ve(t,e,{leading:r,maxWait:e,trailing:i})}var Wl=!!(typeof window<"u"&&window.document&&window.document.createElement),Ul=Wl;const ks=p.getDefaultExportFromCjs(Ul);var zt=function(){return zt=Object.assign||function(e){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},zt.apply(this,arguments)},Wt=null,qr=null;ks&&window.addEventListener("resize",function(){qr!==window.devicePixelRatio&&(qr=window.devicePixelRatio,Wt=null)});function Gr(){if(Wt===null){if(typeof document>"u")return Wt=0,Wt;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),Wt=n}return Wt}function Ms(t){return!t||!t.ownerDocument||!t.ownerDocument.defaultView?window:t.ownerDocument.defaultView}function js(t){return!t||!t.ownerDocument?document:t.ownerDocument}var Ls=function(t){var e={},n=Array.prototype.reduce.call(t,function(r,i){var o=i.name.match(/data-simplebar-(.+)/);if(o){var s=o[1].replace(/\W+(.)/g,function(a,l){return l.toUpperCase()});switch(i.value){case"true":r[s]=!0;break;case"false":r[s]=!1;break;case void 0:r[s]=!0;break;default:r[s]=i.value}}return r},e);return n};function Ds(t,e){var n;t&&(n=t.classList).add.apply(n,e.split(" "))}function _s(t,e){t&&e.split(" ").forEach(function(n){t.classList.remove(n)})}function Fs(t){return".".concat(t.split(" ").join("."))}var zl=Object.freeze({__proto__:null,getElementWindow:Ms,getElementDocument:js,getOptions:Ls,addClasses:Ds,removeClasses:_s,classNamesToQuery:Fs}),mt=Ms,vn=js,Hl=Ls,gt=Ds,yt=_s,q=Fs,Se=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 i=mt(r.el);r.scrollXTicking||(i.requestAnimationFrame(r.scrollX),r.scrollXTicking=!0),r.scrollYTicking||(i.requestAnimationFrame(r.scrollY),r.scrollYTicking=!0),r.isScrolling||(r.isScrolling=!0,gt(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(){yt(r.el,r.classNames.scrolling),r.options.autoHide&&(r.hideScrollbar("x"),r.hideScrollbar("y")),r.isScrolling=!1},this.onMouseEnter=function(){r.isMouseEntering||(gt(r.el,r.classNames.mouseEntered),r.showScrollbar("x"),r.showScrollbar("y"),r.isMouseEntering=!0),r.onMouseEntered()},this._onMouseEntered=function(){yt(r.el,r.classNames.mouseEntered),r.options.autoHide&&(r.hideScrollbar("x"),r.hideScrollbar("y")),r.isMouseEntering=!1},this._onMouseMove=function(i){r.mouseX=i.clientX,r.mouseY=i.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(i){if(!(!r.axis.x.track.el||!r.axis.y.track.el||!r.axis.x.scrollbar.el||!r.axis.y.scrollbar.el)){var o,s;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)&&(s=r.isWithinBounds(r.axis.y.track.rect)),(o||s)&&(i.stopPropagation(),i.type==="pointerdown"&&i.pointerType!=="touch"&&(o&&(r.axis.x.scrollbar.rect=r.axis.x.scrollbar.el.getBoundingClientRect(),r.isWithinBounds(r.axis.x.scrollbar.rect)?r.onDragStart(i,"x"):r.onTrackClick(i,"x")),s&&(r.axis.y.scrollbar.rect=r.axis.y.scrollbar.el.getBoundingClientRect(),r.isWithinBounds(r.axis.y.scrollbar.rect)?r.onDragStart(i,"y"):r.onTrackClick(i,"y"))))}},this.drag=function(i){var o,s,a,l,c,f,u,h,d,m,g;if(!(!r.draggedAxis||!r.contentWrapperEl)){var y,x=r.axis[r.draggedAxis].track,w=(s=(o=x.rect)===null||o===void 0?void 0:o[r.axis[r.draggedAxis].sizeAttr])!==null&&s!==void 0?s: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=(c=r.elStyles)===null||c===void 0?void 0:c[r.axis[r.draggedAxis].sizeAttr])!==null&&f!==void 0?f:"0px",10);i.preventDefault(),i.stopPropagation(),r.draggedAxis==="y"?y=i.pageY:y=i.pageX;var T=y-((h=(u=x.rect)===null||u===void 0?void 0:u[r.axis[r.draggedAxis].offsetAttr])!==null&&h!==void 0?h:0)-r.axis[r.draggedAxis].dragOffset;T=r.draggedAxis==="x"&&r.isRtl?((m=(d=x.rect)===null||d===void 0?void 0:d[r.axis[r.draggedAxis].sizeAttr])!==null&&m!==void 0?m:0)-v.size-T:T;var A=T/(w-v.size),P=A*(E-S);r.draggedAxis==="x"&&r.isRtl&&(P=!((g=t.getRtlHelpers())===null||g===void 0)&&g.isScrollingToNegative?-P:P),r.contentWrapperEl[r.axis[r.draggedAxis].scrollOffsetAttr]=P}},this.onEndDrag=function(i){var o=vn(r.el),s=mt(r.el);i.preventDefault(),i.stopPropagation(),yt(r.el,r.classNames.dragging),o.removeEventListener("mousemove",r.drag,!0),o.removeEventListener("mouseup",r.onEndDrag,!0),r.removePreventClickId=s.setTimeout(function(){o.removeEventListener("click",r.preventClick,!0),o.removeEventListener("dblclick",r.preventClick,!0),r.removePreventClickId=null})},this.preventClick=function(i){i.preventDefault(),i.stopPropagation()},this.el=e,this.options=zt(zt({},t.defaultOptions),n),this.classNames=zt(zt({},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=Il(this._onMouseMove,64),this.onWindowResize=Ve(this._onWindowResize,64,{leading:!0}),this.onStopScrolling=Ve(this._onStopScrolling,this.stopScrollDelay),this.onMouseEntered=Ve(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 i=t.getOffset(n),o=t.getOffset(r);n.scrollLeft=-999;var s=t.getOffset(r);return document.body.removeChild(n),t.rtlHelpers={isScrollOriginAtZero:i.left!==o.left,isScrollingToNegative:o.left!==s.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:Gr()}catch{return Gr()}},t.getOffset=function(e){var n=e.getBoundingClientRect(),r=vn(e),i=mt(e);return{top:n.top+(i.pageYOffset||r.documentElement.scrollTop),left:n.left+(i.pageXOffset||r.documentElement.scrollLeft)}},t.prototype.init=function(){ks&&(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(q(this.classNames.wrapper)),this.contentWrapperEl=this.options.scrollableNode||this.el.querySelector(q(this.classNames.contentWrapper)),this.contentEl=this.options.contentNode||this.el.querySelector(q(this.classNames.contentEl)),this.offsetEl=this.el.querySelector(q(this.classNames.offset)),this.maskEl=this.el.querySelector(q(this.classNames.mask)),this.placeholderEl=this.findChild(this.wrapperEl,q(this.classNames.placeholder)),this.heightAutoObserverWrapperEl=this.el.querySelector(q(this.classNames.heightAutoObserverWrapperEl)),this.heightAutoObserverEl=this.el.querySelector(q(this.classNames.heightAutoObserverEl)),this.axis.x.track.el=this.findChild(this.el,"".concat(q(this.classNames.track)).concat(q(this.classNames.horizontal))),this.axis.y.track.el=this.findChild(this.el,"".concat(q(this.classNames.track)).concat(q(this.classNames.vertical))),this.axis.x.scrollbar.el=((e=this.axis.x.track.el)===null||e===void 0?void 0:e.querySelector(q(this.classNames.scrollbar)))||null,this.axis.y.scrollbar.el=((n=this.axis.y.track.el)===null||n===void 0?void 0:n.querySelector(q(this.classNames.scrollbar)))||null,this.options.autoHide||(gt(this.axis.x.scrollbar.el,this.classNames.visible),gt(this.axis.y.scrollbar.el,this.classNames.visible))},t.prototype.initListeners=function(){var e=this,n,r=mt(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 i=!1,o=r.ResizeObserver||ResizeObserver;this.resizeObserver=new o(function(){i&&r.requestAnimationFrame(function(){e.recalculate()})}),this.resizeObserver.observe(this.el),this.resizeObserver.observe(this.contentEl),r.requestAnimationFrame(function(){i=!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=mt(this.el);this.elStyles=e.getComputedStyle(this.el),this.isRtl=this.elStyles.direction==="rtl";var n=this.contentEl.offsetWidth,r=this.heightAutoObserverEl.offsetHeight<=1,i=this.heightAutoObserverEl.offsetWidth<=1||n>0,o=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,c=this.contentEl.scrollWidth;this.contentWrapperEl.style.height=r?"auto":"100%",this.placeholderEl.style.width=i?"".concat(n||c,"px"):"auto",this.placeholderEl.style.height="".concat(l,"px");var f=this.contentWrapperEl.offsetHeight;this.axis.x.isOverflowing=n!==0&&c>n,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 u=this.axis.x.isOverflowing?this.scrollbarWidth:0,h=this.axis.y.isOverflowing?this.scrollbarWidth:0;this.axis.x.isOverflowing=this.axis.x.isOverflowing&&c>o-h,this.axis.y.isOverflowing=this.axis.y.isOverflowing&&l>f-u,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 i=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,s=o/i,a;return a=Math.max(~~(s*o),this.options.scrollbarMinSize),this.options.scrollbarMaxSize&&(a=Math.min(a,this.options.scrollbarMaxSize)),a},t.prototype.positionScrollbar=function(e){var n,r,i;e===void 0&&(e="y");var o=this.axis[e].scrollbar;if(!(!this.axis[e].isOverflowing||!this.contentWrapperEl||!o.el||!this.elStyles)){var s=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),c=this.contentWrapperEl[this.axis[e].scrollOffsetAttr];c=e==="x"&&this.isRtl&&(!((r=t.getRtlHelpers())===null||r===void 0)&&r.isScrollOriginAtZero)?-c:c,e==="x"&&this.isRtl&&(c=!((i=t.getRtlHelpers())===null||i===void 0)&&i.isScrollingToNegative?c:-c);var f=c/(s-l),u=~~((a-o.size)*f);u=e==="x"&&this.isRtl?-u+(a-o.size):u,o.el.style.transform=e==="x"?"translate3d(".concat(u,"px, 0, 0)"):"translate3d(0, ".concat(u,"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&&(gt(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&&(yt(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),gt(n.track.el,this.classNames.hover),this.isWithinBounds(n.scrollbar.rect)?gt(n.scrollbar.el,this.classNames.hover):yt(n.scrollbar.el,this.classNames.hover)):(yt(n.track.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(e)))},t.prototype.onMouseLeaveForAxis=function(e){e===void 0&&(e="y"),yt(this.axis[e].track.el,this.classNames.hover),yt(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 i=vn(this.el),o=mt(this.el),s=this.axis[n].scrollbar,a=n==="y"?e.pageY:e.pageX;this.axis[n].dragOffset=a-(((r=s.rect)===null||r===void 0?void 0:r[this.axis[n].offsetAttr])||0),this.draggedAxis=n,gt(this.el,this.classNames.dragging),i.addEventListener("mousemove",this.drag,!0),i.addEventListener("mouseup",this.onEndDrag,!0),this.removePreventClickId===null?(i.addEventListener("click",this.preventClick,!0),i.addEventListener("dblclick",this.preventClick,!0)):(o.clearTimeout(this.removePreventClickId),this.removePreventClickId=null)},t.prototype.onTrackClick=function(e,n){var r=this,i,o,s,a;n===void 0&&(n="y");var l=this.axis[n];if(!(!this.options.clickOnTrack||!l.scrollbar.el||!this.contentWrapperEl)){e.preventDefault();var c=mt(this.el);this.axis[n].scrollbar.rect=l.scrollbar.el.getBoundingClientRect();var f=this.axis[n].scrollbar,u=(o=(i=f.rect)===null||i===void 0?void 0:i[this.axis[n].offsetAttr])!==null&&o!==void 0?o:0,h=parseInt((a=(s=this.elStyles)===null||s===void 0?void 0:s[this.axis[n].sizeAttr])!==null&&a!==void 0?a:"0px",10),d=this.contentWrapperEl[this.axis[n].scrollOffsetAttr],m=n==="y"?this.mouseY-u:this.mouseX-u,g=m<0?-1:1,y=g===-1?d-h:d+h,x=40,w=function(){r.contentWrapperEl&&(g===-1?d>y&&(d-=x,r.contentWrapperEl[r.axis[n].scrollOffsetAttr]=d,c.requestAnimationFrame(w)):d<y&&(d+=x,r.contentWrapperEl[r.axis[n].scrollOffsetAttr]=d,c.requestAnimationFrame(w)))};w()}},t.prototype.getContentElement=function(){return this.contentEl},t.prototype.getScrollElement=function(){return this.contentWrapperEl},t.prototype.removeListeners=function(){var e=mt(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(i){return r.call(i,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=Hl,t.helpers=zl,t}(),X=function(){return X=Object.assign||function(e){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},X.apply(this,arguments)};function $l(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 i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n}var Ns=p.reactExports.forwardRef(function(t,e){var n=t.children,r=t.scrollableNodeProps,i=r===void 0?{}:r,o=$l(t,["children","scrollableNodeProps"]),s=p.reactExports.useRef(),a=p.reactExports.useRef(),l=p.reactExports.useRef(),c={},f={};Object.keys(o).forEach(function(d){Object.prototype.hasOwnProperty.call(Se.defaultOptions,d)?c[d]=o[d]:f[d]=o[d]});var u=X(X({},Se.defaultOptions.classNames),c.classNames),h=X(X({},i),{className:"".concat(u.contentWrapper).concat(i.className?" ".concat(i.className):""),tabIndex:0,role:"region","aria-label":c.ariaLabel||Se.defaultOptions.ariaLabel});return p.reactExports.useEffect(function(){var d;return a.current=h.ref?h.ref.current:a.current,s.current&&(d=new Se(s.current,X(X(X({},c),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",X({"data-simplebar":"init",ref:s},f),p.reactExports.createElement("div",{className:u.wrapper},p.reactExports.createElement("div",{className:u.heightAutoObserverWrapperEl},p.reactExports.createElement("div",{className:u.heightAutoObserverEl})),p.reactExports.createElement("div",{className:u.mask},p.reactExports.createElement("div",{className:u.offset},typeof n=="function"?n({scrollableNodeRef:a,scrollableNodeProps:X(X({},h),{ref:a}),contentNodeRef:l,contentNodeProps:{className:u.contentEl,ref:l}}):p.reactExports.createElement("div",X({},h),p.reactExports.createElement("div",{className:u.contentEl},n)))),p.reactExports.createElement("div",{className:u.placeholder})),p.reactExports.createElement("div",{className:"".concat(u.track," simplebar-horizontal")},p.reactExports.createElement("div",{className:u.scrollbar})),p.reactExports.createElement("div",{className:"".concat(u.track," simplebar-vertical")},p.reactExports.createElement("div",{className:u.scrollbar})))});Ns.displayName="SimpleBar";const Bs=p.reactExports.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"}),en=p.reactExports.createContext({}),or=p.reactExports.createContext(null),nn=typeof document<"u",ql=nn?p.reactExports.useLayoutEffect:p.reactExports.useEffect,Is=p.reactExports.createContext({strict:!1}),ar=t=>t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),Gl="framerAppearId",Ws="data-"+ar(Gl);function Xl(t,e,n,r){const{visualElement:i}=p.reactExports.useContext(en),o=p.reactExports.useContext(Is),s=p.reactExports.useContext(or),a=p.reactExports.useContext(Bs).reducedMotion,l=p.reactExports.useRef();r=r||o.renderer,!l.current&&r&&(l.current=r(t,{visualState:e,parent:i,props:n,presenceContext:s,blockInitialAnimation:s?s.initial===!1:!1,reducedMotionConfig:a}));const c=l.current;p.reactExports.useInsertionEffect(()=>{c&&c.update(n,s)});const f=p.reactExports.useRef(!!(n[Ws]&&!window.HandoffComplete));return ql(()=>{c&&(c.render(),f.current&&c.animationState&&c.animationState.animateChanges())}),p.reactExports.useEffect(()=>{c&&(c.updateFeatures(),!f.current&&c.animationState&&c.animationState.animateChanges(),f.current&&(f.current=!1,window.HandoffComplete=!0))}),c}function Ht(t){return t&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function Kl(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):Ht(n)&&(n.current=r))},[e])}function he(t){return typeof t=="string"||Array.isArray(t)}function rn(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}const lr=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],cr=["initial",...lr];function sn(t){return rn(t.animate)||cr.some(e=>he(t[e]))}function Us(t){return!!(sn(t)||t.variants)}function Yl(t,e){if(sn(t)){const{initial:n,animate:r}=t;return{initial:n===!1||he(n)?n:void 0,animate:he(r)?r:void 0}}return t.inherit!==!1?e:{}}function Jl(t){const{initial:e,animate:n}=Yl(t,p.reactExports.useContext(en));return p.reactExports.useMemo(()=>({initial:e,animate:n}),[Xr(e),Xr(n)])}function Xr(t){return Array.isArray(t)?t.join(" "):t}const Kr={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"]},de={};for(const t in Kr)de[t]={isEnabled:e=>Kr[t].some(n=>!!e[n])};function Zl(t){for(const e in t)de[e]={...de[e],...t[e]}}const zs=p.reactExports.createContext({}),Hs=p.reactExports.createContext({}),Ql=Symbol.for("motionComponentSymbol");function tc({preloadedFeatures:t,createVisualElement:e,useRender:n,useVisualState:r,Component:i}){t&&Zl(t);function o(a,l){let c;const f={...p.reactExports.useContext(Bs),...a,layoutId:ec(a)},{isStatic:u}=f,h=Jl(a),d=r(a,u);if(!u&&nn){h.visualElement=Xl(i,d,f,e);const m=p.reactExports.useContext(Hs),g=p.reactExports.useContext(Is).strict;h.visualElement&&(c=h.visualElement.loadFeatures(f,g,t,m))}return p.reactExports.createElement(en.Provider,{value:h},c&&h.visualElement?p.reactExports.createElement(c,{visualElement:h.visualElement,...f}):null,n(i,a,Kl(d,h.visualElement,l),d,u,h.visualElement))}const s=p.reactExports.forwardRef(o);return s[Ql]=i,s}function ec({layoutId:t}){const e=p.reactExports.useContext(zs).id;return e&&t!==void 0?e+"-"+t:t}function nc(t){function e(r,i={}){return tc(t(r,i))}if(typeof Proxy>"u")return e;const n=new Map;return new Proxy(e,{get:(r,i)=>(n.has(i)||n.set(i,e(i)),n.get(i))})}const rc=["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 ur(t){return typeof t!="string"||t.includes("-")?!1:!!(rc.indexOf(t)>-1||/[A-Z]/.test(t))}const Ie={};function ic(t){Object.assign(Ie,t)}const ge=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Lt=new Set(ge);function $s(t,{layout:e,layoutId:n}){return Lt.has(t)||t.startsWith("origin")||(e||n!==void 0)&&(!!Ie[t]||t==="opacity")}const G=t=>!!(t&&t.getVelocity),sc={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},oc=ge.length;function ac(t,{enableHardwareAcceleration:e=!0,allowTransformNone:n=!0},r,i){let o="";for(let s=0;s<oc;s++){const a=ge[s];if(t[a]!==void 0){const l=sc[a]||a;o+=`${l}(${t[a]}) `}}return e&&!t.z&&(o+="translateZ(0)"),o=o.trim(),i?o=i(t,r?"":o):n&&r&&(o="none"),o}const qs=t=>e=>typeof e=="string"&&e.startsWith(t),Gs=qs("--"),Bn=qs("var(--"),lc=/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,cc=(t,e)=>e&&typeof t=="number"?e.transform(t):t,Tt=(t,e,n)=>Math.min(Math.max(n,t),e),Dt={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},se={...Dt,transform:t=>Tt(0,1,t)},Te={...Dt,default:1},oe=t=>Math.round(t*1e5)/1e5,on=/(-)?([\d]*\.?[\d])+/g,Xs=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,uc=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function ye(t){return typeof t=="string"}const ve=t=>({test:e=>ye(e)&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),xt=ve("deg"),ot=ve("%"),C=ve("px"),fc=ve("vh"),hc=ve("vw"),Yr={...ot,parse:t=>ot.parse(t)/100,transform:t=>ot.transform(t*100)},Jr={...Dt,transform:Math.round},Ks={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:xt,rotateX:xt,rotateY:xt,rotateZ:xt,scale:Te,scaleX:Te,scaleY:Te,scaleZ:Te,skew:xt,skewX:xt,skewY:xt,distance:C,translateX:C,translateY:C,translateZ:C,x:C,y:C,z:C,perspective:C,transformPerspective:C,opacity:se,originX:Yr,originY:Yr,originZ:C,zIndex:Jr,fillOpacity:se,strokeOpacity:se,numOctaves:Jr};function fr(t,e,n,r){const{style:i,vars:o,transform:s,transformOrigin:a}=t;let l=!1,c=!1,f=!0;for(const u in e){const h=e[u];if(Gs(u)){o[u]=h;continue}const d=Ks[u],m=cc(h,d);if(Lt.has(u)){if(l=!0,s[u]=m,!f)continue;h!==(d.default||0)&&(f=!1)}else u.startsWith("origin")?(c=!0,a[u]=m):i[u]=m}if(e.transform||(l||r?i.transform=ac(t.transform,n,f,r):i.transform&&(i.transform="none")),c){const{originX:u="50%",originY:h="50%",originZ:d=0}=a;i.transformOrigin=`${u} ${h} ${d}`}}const hr=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Ys(t,e,n){for(const r in e)!G(e[r])&&!$s(r,n)&&(t[r]=e[r])}function dc({transformTemplate:t},e,n){return p.reactExports.useMemo(()=>{const r=hr();return fr(r,e,{enableHardwareAcceleration:!n},t),Object.assign({},r.vars,r.style)},[e])}function pc(t,e,n){const r=t.style||{},i={};return Ys(i,r,t),Object.assign(i,dc(t,e,n)),t.transformValues?t.transformValues(i):i}function mc(t,e,n){const r={},i=pc(t,e,n);return t.drag&&t.dragListener!==!1&&(r.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.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=i,r}const gc=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 We(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||gc.has(t)}let Js=t=>!We(t);function yc(t){t&&(Js=e=>e.startsWith("on")?!We(e):t(e))}try{yc(require("@emotion/is-prop-valid").default)}catch{}function vc(t,e,n){const r={};for(const i in t)i==="values"&&typeof t.values=="object"||(Js(i)||n===!0&&We(i)||!e&&!We(i)||t.draggable&&i.startsWith("onDrag"))&&(r[i]=t[i]);return r}function Zr(t,e,n){return typeof t=="string"?t:C.transform(e+n*t)}function xc(t,e,n){const r=Zr(e,t.x,t.width),i=Zr(n,t.y,t.height);return`${r} ${i}`}const bc={offset:"stroke-dashoffset",array:"stroke-dasharray"},wc={offset:"strokeDashoffset",array:"strokeDasharray"};function Ec(t,e,n=1,r=0,i=!0){t.pathLength=1;const o=i?bc:wc;t[o.offset]=C.transform(-r);const s=C.transform(e),a=C.transform(n);t[o.array]=`${s} ${a}`}function dr(t,{attrX:e,attrY:n,attrScale:r,originX:i,originY:o,pathLength:s,pathSpacing:a=1,pathOffset:l=0,...c},f,u,h){if(fr(t,c,f,h),u){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&&(i!==void 0||o!==void 0||m.transform)&&(m.transformOrigin=xc(g,i!==void 0?i:.5,o!==void 0?o:.5)),e!==void 0&&(d.x=e),n!==void 0&&(d.y=n),r!==void 0&&(d.scale=r),s!==void 0&&Ec(d,s,a,l,!1)}const Zs=()=>({...hr(),attrs:{}}),pr=t=>typeof t=="string"&&t.toLowerCase()==="svg";function Sc(t,e,n,r){const i=p.reactExports.useMemo(()=>{const o=Zs();return dr(o,e,{enableHardwareAcceleration:!1},pr(r),t.transformTemplate),{...o.attrs,style:{...o.style}}},[e]);if(t.style){const o={};Ys(o,t.style,t),i.style={...o,...i.style}}return i}function Tc(t=!1){return(n,r,i,{latestValues:o},s)=>{const l=(ur(n)?Sc:mc)(r,o,s,n),f={...vc(r,typeof n=="string",t),...l,ref:i},{children:u}=r,h=p.reactExports.useMemo(()=>G(u)?u.get():u,[u]);return p.reactExports.createElement(n,{...f,children:h})}}function Qs(t,{style:e,vars:n},r,i){Object.assign(t.style,e,i&&i.getProjectionStyles(r));for(const o in n)t.style.setProperty(o,n[o])}const to=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 eo(t,e,n,r){Qs(t,e,void 0,r);for(const i in e.attrs)t.setAttribute(to.has(i)?i:ar(i),e.attrs[i])}function mr(t,e){const{style:n}=t,r={};for(const i in n)(G(n[i])||e.style&&G(e.style[i])||$s(i,t))&&(r[i]=n[i]);return r}function no(t,e){const n=mr(t,e);for(const r in t)if(G(t[r])||G(e[r])){const i=ge.indexOf(r)!==-1?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;n[i]=t[r]}return n}function gr(t,e,n,r={},i={}){return typeof e=="function"&&(e=e(n!==void 0?n:t.custom,r,i)),typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"&&(e=e(n!==void 0?n:t.custom,r,i)),e}function Ac(t){const e=p.reactExports.useRef(null);return e.current===null&&(e.current=t()),e.current}const Ue=t=>Array.isArray(t),Pc=t=>!!(t&&typeof t=="object"&&t.mix&&t.toValue),Cc=t=>Ue(t)?t[t.length-1]||0:t;function ke(t){const e=G(t)?t.get():t;return Pc(e)?e.toValue():e}function Rc({scrapeMotionValuesFromProps:t,createRenderState:e,onMount:n},r,i,o){const s={latestValues:Oc(r,i,o,t),renderState:e()};return n&&(s.mount=a=>n(r,a,s)),s}const ro=t=>(e,n)=>{const r=p.reactExports.useContext(en),i=p.reactExports.useContext(or),o=()=>Rc(t,e,r,i);return n?o():Ac(o)};function Oc(t,e,n,r){const i={},o=r(t,{});for(const h in o)i[h]=ke(o[h]);let{initial:s,animate:a}=t;const l=sn(t),c=Us(t);e&&c&&!l&&t.inherit!==!1&&(s===void 0&&(s=e.initial),a===void 0&&(a=e.animate));let f=n?n.initial===!1:!1;f=f||s===!1;const u=f?a:s;return u&&typeof u!="boolean"&&!rn(u)&&(Array.isArray(u)?u:[u]).forEach(d=>{const m=gr(t,d);if(!m)return;const{transitionEnd:g,transition:y,...x}=m;for(const w in x){let v=x[w];if(Array.isArray(v)){const E=f?v.length-1:0;v=v[E]}v!==null&&(i[w]=v)}for(const w in g)i[w]=g[w]}),i}const L=t=>t;class Qr{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 Vc(t){let e=new Qr,n=new Qr,r=0,i=!1,o=!1;const s=new WeakSet,a={schedule:(l,c=!1,f=!1)=>{const u=f&&i,h=u?e:n;return c&&s.add(l),h.add(l)&&u&&i&&(r=e.order.length),l},cancel:l=>{n.remove(l),s.delete(l)},process:l=>{if(i){o=!0;return}if(i=!0,[e,n]=[n,e],n.clear(),r=e.order.length,r)for(let c=0;c<r;c++){const f=e.order[c];f(l),s.has(f)&&(a.schedule(f),t())}i=!1,o&&(o=!1,a.process(l))}};return a}const Ae=["prepare","read","update","preRender","render","postRender"],kc=40;function Mc(t,e){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=Ae.reduce((u,h)=>(u[h]=Vc(()=>n=!0),u),{}),s=u=>o[u].process(i),a=()=>{const u=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(u-i.timestamp,kc),1),i.timestamp=u,i.isProcessing=!0,Ae.forEach(s),i.isProcessing=!1,n&&e&&(r=!1,t(a))},l=()=>{n=!0,r=!0,i.isProcessing||t(a)};return{schedule:Ae.reduce((u,h)=>{const d=o[h];return u[h]=(m,g=!1,y=!1)=>(n||l(),d.schedule(m,g,y)),u},{}),cancel:u=>Ae.forEach(h=>o[h].cancel(u)),state:i,steps:o}}const{schedule:k,cancel:dt,state:H,steps:xn}=Mc(typeof requestAnimationFrame<"u"?requestAnimationFrame:L,!0),jc={useVisualState:ro({scrapeMotionValuesFromProps:no,createRenderState:Zs,onMount:(t,e,{renderState:n,latestValues:r})=>{k.read(()=>{try{n.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),k.render(()=>{dr(n,r,{enableHardwareAcceleration:!1},pr(e.tagName),t.transformTemplate),eo(e,n)})}})},Lc={useVisualState:ro({scrapeMotionValuesFromProps:mr,createRenderState:hr})};function Dc(t,{forwardMotionProps:e=!1},n,r){return{...ur(t)?jc:Lc,preloadedFeatures:n,useRender:Tc(e),createVisualElement:r,Component:t}}function ct(t,e,n,r={passive:!0}){return t.addEventListener(e,n,r),()=>t.removeEventListener(e,n)}const io=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1;function an(t,e="page"){return{point:{x:t[e+"X"],y:t[e+"Y"]}}}const _c=t=>e=>io(e)&&t(e,an(e));function ut(t,e,n,r){return ct(t,e,_c(n),r)}const Fc=(t,e)=>n=>e(t(n)),Et=(...t)=>t.reduce(Fc);function so(t){let e=null;return()=>{const n=()=>{e=null};return e===null?(e=t,n):!1}}const ti=so("dragHorizontal"),ei=so("dragVertical");function oo(t){let e=!1;if(t==="y")e=ei();else if(t==="x")e=ti();else{const n=ti(),r=ei();n&&r?e=()=>{n(),r()}:(n&&n(),r&&r())}return e}function ao(){const t=oo(!0);return t?(t(),!1):!0}class Pt{constructor(e){this.isMounted=!1,this.node=e}update(){}}function ni(t,e){const n="pointer"+(e?"enter":"leave"),r="onHover"+(e?"Start":"End"),i=(o,s)=>{if(o.pointerType==="touch"||ao())return;const a=t.getProps();t.animationState&&a.whileHover&&t.animationState.setActive("whileHover",e),a[r]&&k.update(()=>a[r](o,s))};return ut(t.current,n,i,{passive:!t.getProps()[r]})}class Nc extends Pt{mount(){this.unmount=Et(ni(this.node,!0),ni(this.node,!1))}unmount(){}}class Bc extends Pt{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=Et(ct(this.node.current,"focus",()=>this.onFocus()),ct(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const lo=(t,e)=>e?t===e?!0:lo(t,e.parentElement):!1;function bn(t,e){if(!e)return;const n=new PointerEvent("pointer"+t);e(n,an(n))}class Ic extends Pt{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=ut(window,"pointerup",(a,l)=>{if(!this.checkPressEnd())return;const{onTap:c,onTapCancel:f,globalTapTarget:u}=this.node.getProps();k.update(()=>{!u&&!lo(this.node.current,a.target)?f&&f(a,l):c&&c(a,l)})},{passive:!(r.onTap||r.onPointerUp)}),s=ut(window,"pointercancel",(a,l)=>this.cancelPress(a,l),{passive:!(r.onTapCancel||r.onPointerCancel)});this.removeEndListeners=Et(o,s),this.startPress(e,n)},this.startAccessiblePress=()=>{const e=o=>{if(o.key!=="Enter"||this.isPressing)return;const s=a=>{a.key!=="Enter"||!this.checkPressEnd()||bn("up",(l,c)=>{const{onTap:f}=this.node.getProps();f&&k.update(()=>f(l,c))})};this.removeEndListeners(),this.removeEndListeners=ct(this.node.current,"keyup",s),bn("down",(a,l)=>{this.startPress(a,l)})},n=ct(this.node.current,"keydown",e),r=()=>{this.isPressing&&bn("cancel",(o,s)=>this.cancelPress(o,s))},i=ct(this.node.current,"blur",r);this.removeAccessibleListeners=Et(n,i)}}startPress(e,n){this.isPressing=!0;const{onTapStart:r,whileTap:i}=this.node.getProps();i&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),r&&k.update(()=>r(e,n))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!ao()}cancelPress(e,n){if(!this.checkPressEnd())return;const{onTapCancel:r}=this.node.getProps();r&&k.update(()=>r(e,n))}mount(){const e=this.node.getProps(),n=ut(e.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(e.onTapStart||e.onPointerStart)}),r=ct(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=Et(n,r)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const In=new WeakMap,wn=new WeakMap,Wc=t=>{const e=In.get(t.target);e&&e(t)},Uc=t=>{t.forEach(Wc)};function zc({root:t,...e}){const n=t||document;wn.has(n)||wn.set(n,{});const r=wn.get(n),i=JSON.stringify(e);return r[i]||(r[i]=new IntersectionObserver(Uc,{root:t,...e})),r[i]}function Hc(t,e,n){const r=zc(e);return In.set(t,n),r.observe(t),()=>{In.delete(t),r.unobserve(t)}}const $c={some:0,all:1};class qc extends Pt{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:o}=e,s={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:$c[i]},a=l=>{const{isIntersecting:c}=l;if(this.isInView===c||(this.isInView=c,o&&!c&&this.hasEnteredView))return;c&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",c);const{onViewportEnter:f,onViewportLeave:u}=this.node.getProps(),h=c?f:u;h&&h(l)};return Hc(this.node.current,s,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:e,prevProps:n}=this.node;["amount","margin","root"].some(Gc(e,n))&&this.startObserver()}unmount(){}}function Gc({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}const Xc={inView:{Feature:qc},tap:{Feature:Ic},focus:{Feature:Bc},hover:{Feature:Nc}};function co(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 Kc(t){const e={};return t.values.forEach((n,r)=>e[r]=n.get()),e}function Yc(t){const e={};return t.values.forEach((n,r)=>e[r]=n.getVelocity()),e}function ln(t,e,n){const r=t.getProps();return gr(r,e,n!==void 0?n:r.custom,Kc(t),Yc(t))}let Jc=L,yr=L;const St=t=>t*1e3,ft=t=>t/1e3,Zc={current:!1},uo=t=>Array.isArray(t)&&typeof t[0]=="number";function fo(t){return!!(!t||typeof t=="string"&&ho[t]||uo(t)||Array.isArray(t)&&t.every(fo))}const ie=([t,e,n,r])=>`cubic-bezier(${t}, ${e}, ${n}, ${r})`,ho={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:ie([0,.65,.55,1]),circOut:ie([.55,0,1,.45]),backIn:ie([.31,.01,.66,-.59]),backOut:ie([.33,1.53,.69,.99])};function po(t){if(t)return uo(t)?ie(t):Array.isArray(t)?t.map(po):ho[t]}function Qc(t,e,n,{delay:r=0,duration:i,repeat:o=0,repeatType:s="loop",ease:a,times:l}={}){const c={[e]:n};l&&(c.offset=l);const f=po(a);return Array.isArray(f)&&(c.easing=f),t.animate(c,{delay:r,duration:i,easing:Array.isArray(f)?"linear":f,fill:"both",iterations:o+1,direction:s==="reverse"?"alternate":"normal"})}function tu(t,{repeat:e,repeatType:n="loop"}){const r=e&&n!=="loop"&&e%2===1?0:t.length-1;return t[r]}const mo=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,eu=1e-7,nu=12;function ru(t,e,n,r,i){let o,s,a=0;do s=e+(n-e)/2,o=mo(s,r,i)-t,o>0?n=s:e=s;while(Math.abs(o)>eu&&++a<nu);return s}function xe(t,e,n,r){if(t===e&&n===r)return L;const i=o=>ru(o,0,1,t,n);return o=>o===0||o===1?o:mo(i(o),e,r)}const iu=xe(.42,0,1,1),su=xe(0,0,.58,1),go=xe(.42,0,.58,1),ou=t=>Array.isArray(t)&&typeof t[0]!="number",yo=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,vo=t=>e=>1-t(1-e),vr=t=>1-Math.sin(Math.acos(t)),xo=vo(vr),au=yo(vr),bo=xe(.33,1.53,.69,.99),xr=vo(bo),lu=yo(xr),cu=t=>(t*=2)<1?.5*xr(t):.5*(2-Math.pow(2,-10*(t-1))),uu={linear:L,easeIn:iu,easeInOut:go,easeOut:su,circIn:vr,circInOut:au,circOut:xo,backIn:xr,backInOut:lu,backOut:bo,anticipate:cu},ri=t=>{if(Array.isArray(t)){yr(t.length===4);const[e,n,r,i]=t;return xe(e,n,r,i)}else if(typeof t=="string")return uu[t];return t},br=(t,e)=>n=>!!(ye(n)&&uc.test(n)&&n.startsWith(t)||e&&Object.prototype.hasOwnProperty.call(n,e)),wo=(t,e,n)=>r=>{if(!ye(r))return r;const[i,o,s,a]=r.match(on);return{[t]:parseFloat(i),[e]:parseFloat(o),[n]:parseFloat(s),alpha:a!==void 0?parseFloat(a):1}},fu=t=>Tt(0,255,t),En={...Dt,transform:t=>Math.round(fu(t))},jt={test:br("rgb","red"),parse:wo("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:r=1})=>"rgba("+En.transform(t)+", "+En.transform(e)+", "+En.transform(n)+", "+oe(se.transform(r))+")"};function hu(t){let e="",n="",r="",i="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),r=t.substring(5,7),i=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),r=t.substring(3,4),i=t.substring(4,5),e+=e,n+=n,r+=r,i+=i),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const Wn={test:br("#"),parse:hu,transform:jt.transform},$t={test:br("hsl","hue"),parse:wo("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:r=1})=>"hsla("+Math.round(t)+", "+ot.transform(oe(e))+", "+ot.transform(oe(n))+", "+oe(se.transform(r))+")"},$={test:t=>jt.test(t)||Wn.test(t)||$t.test(t),parse:t=>jt.test(t)?jt.parse(t):$t.test(t)?$t.parse(t):Wn.parse(t),transform:t=>ye(t)?t:t.hasOwnProperty("red")?jt.transform(t):$t.transform(t)},j=(t,e,n)=>-n*t+n*e+t;function Sn(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 du({hue:t,saturation:e,lightness:n,alpha:r}){t/=360,e/=100,n/=100;let i=0,o=0,s=0;if(!e)i=o=s=n;else{const a=n<.5?n*(1+e):n+e-n*e,l=2*n-a;i=Sn(l,a,t+1/3),o=Sn(l,a,t),s=Sn(l,a,t-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(s*255),alpha:r}}const Tn=(t,e,n)=>{const r=t*t;return Math.sqrt(Math.max(0,n*(e*e-r)+r))},pu=[Wn,jt,$t],mu=t=>pu.find(e=>e.test(t));function ii(t){const e=mu(t);let n=e.parse(t);return e===$t&&(n=du(n)),n}const Eo=(t,e)=>{const n=ii(t),r=ii(e),i={...n};return o=>(i.red=Tn(n.red,r.red,o),i.green=Tn(n.green,r.green,o),i.blue=Tn(n.blue,r.blue,o),i.alpha=j(n.alpha,r.alpha,o),jt.transform(i))};function gu(t){var e,n;return isNaN(t)&&ye(t)&&(((e=t.match(on))===null||e===void 0?void 0:e.length)||0)+(((n=t.match(Xs))===null||n===void 0?void 0:n.length)||0)>0}const So={regex:lc,countKey:"Vars",token:"${v}",parse:L},To={regex:Xs,countKey:"Colors",token:"${c}",parse:$.parse},Ao={regex:on,countKey:"Numbers",token:"${n}",parse:Dt.parse};function An(t,{regex:e,countKey:n,token:r,parse:i}){const o=t.tokenised.match(e);o&&(t["num"+n]=o.length,t.tokenised=t.tokenised.replace(e,r),t.values.push(...o.map(i)))}function ze(t){const e=t.toString(),n={value:e,tokenised:e,values:[],numVars:0,numColors:0,numNumbers:0};return n.value.includes("var(--")&&An(n,So),An(n,To),An(n,Ao),n}function Po(t){return ze(t).values}function Co(t){const{values:e,numColors:n,numVars:r,tokenised:i}=ze(t),o=e.length;return s=>{let a=i;for(let l=0;l<o;l++)l<r?a=a.replace(So.token,s[l]):l<r+n?a=a.replace(To.token,$.transform(s[l])):a=a.replace(Ao.token,oe(s[l]));return a}}const yu=t=>typeof t=="number"?0:t;function vu(t){const e=Po(t);return Co(t)(e.map(yu))}const At={test:gu,parse:Po,createTransformer:Co,getAnimatableNone:vu},Ro=(t,e)=>n=>`${n>0?e:t}`;function Oo(t,e){return typeof t=="number"?n=>j(t,e,n):$.test(t)?Eo(t,e):t.startsWith("var(")?Ro(t,e):ko(t,e)}const Vo=(t,e)=>{const n=[...t],r=n.length,i=t.map((o,s)=>Oo(o,e[s]));return o=>{for(let s=0;s<r;s++)n[s]=i[s](o);return n}},xu=(t,e)=>{const n={...t,...e},r={};for(const i in n)t[i]!==void 0&&e[i]!==void 0&&(r[i]=Oo(t[i],e[i]));return i=>{for(const o in r)n[o]=r[o](i);return n}},ko=(t,e)=>{const n=At.createTransformer(e),r=ze(t),i=ze(e);return r.numVars===i.numVars&&r.numColors===i.numColors&&r.numNumbers>=i.numNumbers?Et(Vo(r.values,i.values),n):Ro(t,e)},pe=(t,e,n)=>{const r=e-t;return r===0?1:(n-t)/r},si=(t,e)=>n=>j(t,e,n);function bu(t){return typeof t=="number"?si:typeof t=="string"?$.test(t)?Eo:ko:Array.isArray(t)?Vo:typeof t=="object"?xu:si}function wu(t,e,n){const r=[],i=n||bu(t[0]),o=t.length-1;for(let s=0;s<o;s++){let a=i(t[s],t[s+1]);if(e){const l=Array.isArray(e)?e[s]||L:e;a=Et(l,a)}r.push(a)}return r}function Mo(t,e,{clamp:n=!0,ease:r,mixer:i}={}){const o=t.length;if(yr(o===e.length),o===1)return()=>e[0];t[0]>t[o-1]&&(t=[...t].reverse(),e=[...e].reverse());const s=wu(e,r,i),a=s.length,l=c=>{let f=0;if(a>1)for(;f<t.length-2&&!(c<t[f+1]);f++);const u=pe(t[f],t[f+1],c);return s[f](u)};return n?c=>l(Tt(t[0],t[o-1],c)):l}function Eu(t,e){const n=t[t.length-1];for(let r=1;r<=e;r++){const i=pe(0,e,r);t.push(j(n,1,i))}}function Su(t){const e=[0];return Eu(e,t.length-1),e}function Tu(t,e){return t.map(n=>n*e)}function Au(t,e){return t.map(()=>e||go).splice(0,t.length-1)}function He({duration:t=300,keyframes:e,times:n,ease:r="easeInOut"}){const i=ou(r)?r.map(ri):ri(r),o={done:!1,value:e[0]},s=Tu(n&&n.length===e.length?n:Su(e),t),a=Mo(s,e,{ease:Array.isArray(i)?i:Au(e,i)});return{calculatedDuration:t,next:l=>(o.value=a(l),o.done=l>=t,o)}}function jo(t,e){return e?t*(1e3/e):0}const Pu=5;function Lo(t,e,n){const r=Math.max(e-Pu,0);return jo(n-t(r),e-r)}const Pn=.001,Cu=.01,oi=10,Ru=.05,Ou=1;function Vu({duration:t=800,bounce:e=.25,velocity:n=0,mass:r=1}){let i,o;Jc(t<=St(oi));let s=1-e;s=Tt(Ru,Ou,s),t=Tt(Cu,oi,ft(t)),s<1?(i=c=>{const f=c*s,u=f*t,h=f-n,d=Un(c,s),m=Math.exp(-u);return Pn-h/d*m},o=c=>{const u=c*s*t,h=u*n+n,d=Math.pow(s,2)*Math.pow(c,2)*t,m=Math.exp(-u),g=Un(Math.pow(c,2),s);return(-i(c)+Pn>0?-1:1)*((h-d)*m)/g}):(i=c=>{const f=Math.exp(-c*t),u=(c-n)*t+1;return-Pn+f*u},o=c=>{const f=Math.exp(-c*t),u=(n-c)*(t*t);return f*u});const a=5/t,l=Mu(i,o,a);if(t=St(t),isNaN(l))return{stiffness:100,damping:10,duration:t};{const c=Math.pow(l,2)*r;return{stiffness:c,damping:s*2*Math.sqrt(r*c),duration:t}}}const ku=12;function Mu(t,e,n){let r=n;for(let i=1;i<ku;i++)r=r-t(r)/e(r);return r}function Un(t,e){return t*Math.sqrt(1-e*e)}const ju=["duration","bounce"],Lu=["stiffness","damping","mass"];function ai(t,e){return e.some(n=>t[n]!==void 0)}function Du(t){let e={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...t};if(!ai(t,Lu)&&ai(t,ju)){const n=Vu(t);e={...e,...n,mass:1},e.isResolvedFromDuration=!0}return e}function Do({keyframes:t,restDelta:e,restSpeed:n,...r}){const i=t[0],o=t[t.length-1],s={done:!1,value:i},{stiffness:a,damping:l,mass:c,duration:f,velocity:u,isResolvedFromDuration:h}=Du({...r,velocity:-ft(r.velocity||0)}),d=u||0,m=l/(2*Math.sqrt(a*c)),g=o-i,y=ft(Math.sqrt(a/c)),x=Math.abs(g)<5;n||(n=x?.01:2),e||(e=x?.005:.5);let w;if(m<1){const v=Un(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)s.done=v>=f;else{let S=d;v!==0&&(m<1?S=Lo(w,v,E):S=0);const T=Math.abs(S)<=n,A=Math.abs(o-E)<=e;s.done=T&&A}return s.value=s.done?o:E,s}}}function li({keyframes:t,velocity:e=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:s,min:a,max:l,restDelta:c=.5,restSpeed:f}){const u=t[0],h={done:!1,value:u},d=P=>a!==void 0&&P<a||l!==void 0&&P>l,m=P=>a===void 0?l:l===void 0||Math.abs(a-P)<Math.abs(l-P)?a:l;let g=n*e;const y=u+g,x=s===void 0?y:s(y);x!==y&&(g=x-u);const w=P=>-g*Math.exp(-P/r),v=P=>x+w(P),E=P=>{const R=w(P),D=v(P);h.done=Math.abs(R)<=c,h.value=h.done?x:D};let S,T;const A=P=>{d(h.value)&&(S=P,T=Do({keyframes:[h.value,m(h.value)],velocity:Lo(v,P,h.value),damping:i,stiffness:o,restDelta:c,restSpeed:f}))};return A(0),{calculatedDuration:null,next:P=>{let R=!1;return!T&&S===void 0&&(R=!0,E(P),A(P)),S!==void 0&&P>S?T.next(P-S):(!R&&E(P),h)}}}const _u=t=>{const e=({timestamp:n})=>t(n);return{start:()=>k.update(e,!0),stop:()=>dt(e),now:()=>H.isProcessing?H.timestamp:performance.now()}},ci=2e4;function ui(t){let e=0;const n=50;let r=t.next(e);for(;!r.done&&e<ci;)e+=n,r=t.next(e);return e>=ci?1/0:e}const Fu={decay:li,inertia:li,tween:He,keyframes:He,spring:Do};function $e({autoplay:t=!0,delay:e=0,driver:n=_u,keyframes:r,type:i="keyframes",repeat:o=0,repeatDelay:s=0,repeatType:a="loop",onPlay:l,onStop:c,onComplete:f,onUpdate:u,...h}){let d=1,m=!1,g,y;const x=()=>{y=new Promise(V=>{g=V})};x();let w;const v=Fu[i]||He;let E;v!==He&&typeof r[0]!="number"&&(E=Mo([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 A="idle",P=null,R=null,D=null;S.calculatedDuration===null&&o&&(S.calculatedDuration=ui(S));const{calculatedDuration:U}=S;let N=1/0,z=1/0;U!==null&&(N=U+s,z=N*(o+1)-s);let I=0;const et=V=>{if(R===null)return;d>0&&(R=Math.min(R,V)),d<0&&(R=Math.min(V-z/d,R)),P!==null?I=P:I=Math.round(V-R)*d;const Ft=I-e*(d>=0?1:-1),Nt=d>=0?Ft<0:Ft>z;I=Math.max(Ft,0),A==="finished"&&P===null&&(I=z);let pn=I,Ct=S;if(o){const Qt=Math.min(I,z)/N;let Rt=Math.floor(Qt),Q=Qt%1;!Q&&Qt>=1&&(Q=1),Q===1&&Rt--,Rt=Math.min(Rt,o+1),!!(Rt%2)&&(a==="reverse"?(Q=1-Q,s&&(Q-=s/N)):a==="mirror"&&(Ct=T)),pn=Tt(0,1,Q)*N}const lt=Nt?{done:!1,value:r[0]}:Ct.next(pn);E&&(lt.value=E(lt.value));let{done:Bt}=lt;!Nt&&U!==null&&(Bt=d>=0?I>=z:I<=0);const It=P===null&&(A==="finished"||A==="running"&&Bt);return u&&u(lt.value),It&&W(),lt},B=()=>{w&&w.stop(),w=void 0},nt=()=>{A="idle",B(),g(),x(),R=D=null},W=()=>{A="finished",f&&f(),B(),g()},pt=()=>{if(m)return;w||(w=n(et));const V=w.now();l&&l(),P!==null?R=V-P:(!R||A==="finished")&&(R=V),A==="finished"&&x(),D=R,P=null,A="running",w.start()};t&&pt();const _t={then(V,Ft){return y.then(V,Ft)},get time(){return ft(I)},set time(V){V=St(V),I=V,P!==null||!w||d===0?P=V:R=w.now()-V/d},get duration(){const V=S.calculatedDuration===null?ui(S):S.calculatedDuration;return ft(V)},get speed(){return d},set speed(V){V===d||!w||(d=V,_t.time=ft(I))},get state(){return A},play:pt,pause:()=>{A="paused",P=I},stop:()=>{m=!0,A!=="idle"&&(A="idle",c&&c(),nt())},cancel:()=>{D!==null&&et(D),nt()},complete:()=>{A="finished"},sample:V=>(R=0,et(V))};return _t}function Nu(t){let e;return()=>(e===void 0&&(e=t()),e)}const Bu=Nu(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Iu=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),Pe=10,Wu=2e4,Uu=(t,e)=>e.type==="spring"||t==="backgroundColor"||!fo(e.ease);function zu(t,e,{onUpdate:n,onComplete:r,...i}){if(!(Bu()&&Iu.has(e)&&!i.repeatDelay&&i.repeatType!=="mirror"&&i.damping!==0&&i.type!=="inertia"))return!1;let s=!1,a,l,c=!1;const f=()=>{l=new Promise(v=>{a=v})};f();let{keyframes:u,duration:h=300,ease:d,times:m}=i;if(Uu(e,i)){const v=$e({...i,repeat:0,delay:0});let E={done:!1,value:u[0]};const S=[];let T=0;for(;!E.done&&T<Wu;)E=v.sample(T),S.push(E.value),T+=Pe;m=void 0,u=S,h=T-Pe,d="linear"}const g=Qc(t.owner.current,e,u,{...i,duration:h,ease:d,times:m}),y=()=>{c=!1,g.cancel()},x=()=>{c=!0,k.update(y),a(),f()};return g.onfinish=()=>{c||(t.set(tu(u,i)),r&&r(),x())},{then(v,E){return l.then(v,E)},attachTimeline(v){return g.timeline=v,g.onfinish=null,L},get time(){return ft(g.currentTime||0)},set time(v){g.currentTime=St(v)},get speed(){return g.playbackRate},set speed(v){g.playbackRate=v},get duration(){return ft(h)},play:()=>{s||(g.play(),dt(y))},pause:()=>g.pause(),stop:()=>{if(s=!0,g.playState==="idle")return;const{currentTime:v}=g;if(v){const E=$e({...i,autoplay:!1});t.setWithVelocity(E.sample(v-Pe).value,E.sample(v).value,Pe)}x()},complete:()=>{c||g.finish()},cancel:x}}function Hu({keyframes:t,delay:e,onUpdate:n,onComplete:r}){const i=()=>(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?$e({keyframes:[0,1],duration:0,delay:e,onComplete:i}):i()}const $u={type:"spring",stiffness:500,damping:25,restSpeed:10},qu=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),Gu={type:"keyframes",duration:.8},Xu={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Ku=(t,{keyframes:e})=>e.length>2?Gu:Lt.has(t)?t.startsWith("scale")?qu(e[1]):$u:Xu,zn=(t,e)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(At.test(e)||e==="0")&&!e.startsWith("url(")),Yu=new Set(["brightness","contrast","saturate","opacity"]);function Ju(t){const[e,n]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[r]=n.match(on)||[];if(!r)return t;const i=n.replace(r,"");let o=Yu.has(e)?1:0;return r!==n&&(o*=100),e+"("+o+i+")"}const Zu=/([a-z-]*)\(.*?\)/g,Hn={...At,getAnimatableNone:t=>{const e=t.match(Zu);return e?e.map(Ju).join(" "):t}},Qu={...Ks,color:$,backgroundColor:$,outlineColor:$,fill:$,stroke:$,borderColor:$,borderTopColor:$,borderRightColor:$,borderBottomColor:$,borderLeftColor:$,filter:Hn,WebkitFilter:Hn},wr=t=>Qu[t];function _o(t,e){let n=wr(t);return n!==Hn&&(n=At),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const Fo=t=>/^0[^.\s]+$/.test(t);function tf(t){if(typeof t=="number")return t===0;if(t!==null)return t==="none"||t==="0"||Fo(t)}function ef(t,e,n,r){const i=zn(e,n);let o;Array.isArray(n)?o=[...n]:o=[null,n];const s=r.from!==void 0?r.from:t.get();let a;const l=[];for(let c=0;c<o.length;c++)o[c]===null&&(o[c]=c===0?s:o[c-1]),tf(o[c])&&l.push(c),typeof o[c]=="string"&&o[c]!=="none"&&o[c]!=="0"&&(a=o[c]);if(i&&l.length&&a)for(let c=0;c<l.length;c++){const f=l[c];o[f]=_o(e,a)}return o}function nf({when:t,delay:e,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:s,repeatDelay:a,from:l,elapsed:c,...f}){return!!Object.keys(f).length}function Er(t,e){return t[e]||t.default||t}const rf={skipAnimations:!1},Sr=(t,e,n,r={})=>i=>{const o=Er(r,t)||{},s=o.delay||r.delay||0;let{elapsed:a=0}=r;a=a-St(s);const l=ef(e,t,n,o),c=l[0],f=l[l.length-1],u=zn(t,c),h=zn(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:()=>{i(),o.onComplete&&o.onComplete()}};if(nf(o)||(d={...d,...Ku(t,d)}),d.duration&&(d.duration=St(d.duration)),d.repeatDelay&&(d.repeatDelay=St(d.repeatDelay)),!u||!h||Zc.current||o.type===!1||rf.skipAnimations)return Hu(d);if(!r.isHandoff&&e.owner&&e.owner.current instanceof HTMLElement&&!e.owner.getProps().onUpdate){const m=zu(e,t,d);if(m)return m}return $e(d)};function qe(t){return!!(G(t)&&t.add)}const No=t=>/^\-?\d*\.?\d+$/.test(t);function Tr(t,e){t.indexOf(e)===-1&&t.push(e)}function Ar(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}class Pr{constructor(){this.subscriptions=[]}add(e){return Tr(this.subscriptions,e),()=>Ar(this.subscriptions,e)}notify(e,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](e,n,r);else for(let o=0;o<i;o++){const s=this.subscriptions[o];s&&s(e,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const sf=t=>!isNaN(parseFloat(t));class of{constructor(e,n={}){this.version="10.18.0",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(r,i=!0)=>{this.prev=this.current,this.current=r;const{delta:o,timestamp:s}=H;this.lastUpdated!==s&&(this.timeDelta=o,this.lastUpdated=s,k.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()),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>k.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=sf(this.current),this.owner=n.owner}onChange(e){return this.on("change",e)}on(e,n){this.events[e]||(this.events[e]=new Pr);const r=this.events[e].add(n);return e==="change"?()=>{r(),k.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?jo(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 Xt(t,e){return new of(t,e)}const Bo=t=>e=>e.test(t),af={test:t=>t==="auto",parse:t=>t},Io=[Dt,C,ot,xt,hc,fc,af],ee=t=>Io.find(Bo(t)),lf=[...Io,$,At],cf=t=>lf.find(Bo(t));function uf(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,Xt(n))}function ff(t,e){const n=ln(t,e);let{transitionEnd:r={},transition:i={},...o}=n?t.makeTargetAnimatable(n,!1):{};o={...o,...r};for(const s in o){const a=Cc(o[s]);uf(t,s,a)}}function hf(t,e,n){var r,i;const o=Object.keys(e).filter(a=>!t.hasValue(a)),s=o.length;if(s)for(let a=0;a<s;a++){const l=o[a],c=e[l];let f=null;Array.isArray(c)&&(f=c[0]),f===null&&(f=(i=(r=n[l])!==null&&r!==void 0?r:t.readValue(l))!==null&&i!==void 0?i:e[l]),f!=null&&(typeof f=="string"&&(No(f)||Fo(f))?f=parseFloat(f):!cf(f)&&At.test(c)&&(f=_o(l,c)),t.addValue(l,Xt(f,{owner:t})),n[l]===void 0&&(n[l]=f),f!==null&&t.setBaseTarget(l,f))}}function df(t,e){return e?(e[t]||e.default||e).from:void 0}function pf(t,e,n){const r={};for(const i in t){const o=df(i,e);if(o!==void 0)r[i]=o;else{const s=n.getValue(i);s&&(r[i]=s.get())}}return r}function mf({protectedKeys:t,needsAnimating:e},n){const r=t.hasOwnProperty(n)&&e[n]!==!0;return e[n]=!1,r}function gf(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 Wo(t,e,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:o=t.getDefaultTransition(),transitionEnd:s,...a}=t.makeTargetAnimatable(e);const l=t.getValue("willChange");r&&(o=r);const c=[],f=i&&t.animationState&&t.animationState.getState()[i];for(const u in a){const h=t.getValue(u),d=a[u];if(!h||d===void 0||f&&mf(f,u))continue;const m={delay:n,elapsed:0,...Er(o||{},u)};if(window.HandoffAppearAnimations){const x=t.getProps()[Ws];if(x){const w=window.HandoffAppearAnimations(x,u,h,k);w!==null&&(m.elapsed=w,m.isHandoff=!0)}}let g=!m.isHandoff&&!gf(h,d);if(m.type==="spring"&&(h.getVelocity()||m.velocity)&&(g=!1),h.animation&&(g=!1),g)continue;h.start(Sr(u,h,d,t.shouldReduceMotion&&Lt.has(u)?{type:!1}:m));const y=h.animation;qe(l)&&(l.add(u),y.then(()=>l.remove(u))),c.push(y)}return s&&Promise.all(c).then(()=>{s&&ff(t,s)}),c}function $n(t,e,n={}){const r=ln(t,e,n.custom);let{transition:i=t.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);const o=r?()=>Promise.all(Wo(t,r,n)):()=>Promise.resolve(),s=t.variantChildren&&t.variantChildren.size?(l=0)=>{const{delayChildren:c=0,staggerChildren:f,staggerDirection:u}=i;return yf(t,e,c+l,f,u,n)}:()=>Promise.resolve(),{when:a}=i;if(a){const[l,c]=a==="beforeChildren"?[o,s]:[s,o];return l().then(()=>c())}else return Promise.all([o(),s(n.delay)])}function yf(t,e,n=0,r=0,i=1,o){const s=[],a=(t.variantChildren.size-1)*r,l=i===1?(c=0)=>c*r:(c=0)=>a-c*r;return Array.from(t.variantChildren).sort(vf).forEach((c,f)=>{c.notify("AnimationStart",e),s.push($n(c,e,{...o,delay:n+l(f)}).then(()=>c.notify("AnimationComplete",e)))}),Promise.all(s)}function vf(t,e){return t.sortNodePosition(e)}function xf(t,e,n={}){t.notify("AnimationStart",e);let r;if(Array.isArray(e)){const i=e.map(o=>$n(t,o,n));r=Promise.all(i)}else if(typeof e=="string")r=$n(t,e,n);else{const i=typeof e=="function"?ln(t,e,n.custom):e;r=Promise.all(Wo(t,i,n))}return r.then(()=>t.notify("AnimationComplete",e))}const bf=[...lr].reverse(),wf=lr.length;function Ef(t){return e=>Promise.all(e.map(({animation:n,options:r})=>xf(t,n,r)))}function Sf(t){let e=Ef(t);const n=Af();let r=!0;const i=(l,c)=>{const f=ln(t,c);if(f){const{transition:u,transitionEnd:h,...d}=f;l={...l,...d,...h}}return l};function o(l){e=l(t)}function s(l,c){const f=t.getProps(),u=t.getVariantContext(!0)||{},h=[],d=new Set;let m={},g=1/0;for(let x=0;x<wf;x++){const w=bf[x],v=n[w],E=f[w]!==void 0?f[w]:u[w],S=he(E),T=w===c?v.isActive:null;T===!1&&(g=x);let A=E===u[w]&&E!==f[w]&&S;if(A&&r&&t.manuallyAnimateOnMount&&(A=!1),v.protectedKeys={...m},!v.isActive&&T===null||!E&&!v.prevProp||rn(E)||typeof E=="boolean")continue;let R=Tf(v.prevProp,E)||w===c&&v.isActive&&!A&&S||x>g&&S,D=!1;const U=Array.isArray(E)?E:[E];let N=U.reduce(i,{});T===!1&&(N={});const{prevResolvedValues:z={}}=v,I={...z,...N},et=B=>{R=!0,d.has(B)&&(D=!0,d.delete(B)),v.needsAnimating[B]=!0};for(const B in I){const nt=N[B],W=z[B];if(m.hasOwnProperty(B))continue;let pt=!1;Ue(nt)&&Ue(W)?pt=!co(nt,W):pt=nt!==W,pt?nt!==void 0?et(B):d.add(B):nt!==void 0&&d.has(B)?et(B):v.protectedKeys[B]=!0}v.prevProp=E,v.prevResolvedValues=N,v.isActive&&(m={...m,...N}),r&&t.blockInitialAnimation&&(R=!1),R&&(!A||D)&&h.push(...U.map(B=>({animation:B,options:{type:w,...l}})))}if(d.size){const x={};d.forEach(w=>{const v=t.getBaseTarget(w);v!==void 0&&(x[w]=v)}),h.push({animation:x})}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,c,f){var u;if(n[l].isActive===c)return Promise.resolve();(u=t.variantChildren)===null||u===void 0||u.forEach(d=>{var m;return(m=d.animationState)===null||m===void 0?void 0:m.setActive(l,c)}),n[l].isActive=c;const h=s(f,l);for(const d in n)n[d].protectedKeys={};return h}return{animateChanges:s,setActive:a,setAnimateFunction:o,getState:()=>n}}function Tf(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!co(e,t):!1}function Ot(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Af(){return{animate:Ot(!0),whileInView:Ot(),whileHover:Ot(),whileTap:Ot(),whileDrag:Ot(),whileFocus:Ot(),exit:Ot()}}class Pf extends Pt{constructor(e){super(e),e.animationState||(e.animationState=Sf(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();this.unmount(),rn(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 Cf=0;class Rf extends Pt{constructor(){super(...arguments),this.id=Cf++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:n,custom:r}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===i)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 Of={animation:{Feature:Pf},exit:{Feature:Rf}},fi=(t,e)=>Math.abs(t-e);function Vf(t,e){const n=fi(t.x,e.x),r=fi(t.y,e.y);return Math.sqrt(n**2+r**2)}class Uo{constructor(e,n,{transformPagePoint:r,contextWindow:i,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 u=Rn(this.lastMoveEventInfo,this.history),h=this.startEvent!==null,d=Vf(u.offset,{x:0,y:0})>=3;if(!h&&!d)return;const{point:m}=u,{timestamp:g}=H;this.history.push({...m,timestamp:g});const{onStart:y,onMove:x}=this.handlers;h||(y&&y(this.lastMoveEvent,u),this.startEvent=this.lastMoveEvent),x&&x(this.lastMoveEvent,u)},this.handlePointerMove=(u,h)=>{this.lastMoveEvent=u,this.lastMoveEventInfo=Cn(h,this.transformPagePoint),k.update(this.updatePoint,!0)},this.handlePointerUp=(u,h)=>{this.end();const{onEnd:d,onSessionEnd:m,resumeAnimation:g}=this.handlers;if(this.dragSnapToOrigin&&g&&g(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const y=Rn(u.type==="pointercancel"?this.lastMoveEventInfo:Cn(h,this.transformPagePoint),this.history);this.startEvent&&d&&d(u,y),m&&m(u,y)},!io(e))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=r,this.contextWindow=i||window;const s=an(e),a=Cn(s,this.transformPagePoint),{point:l}=a,{timestamp:c}=H;this.history=[{...l,timestamp:c}];const{onSessionStart:f}=n;f&&f(e,Rn(a,this.history)),this.removeListeners=Et(ut(this.contextWindow,"pointermove",this.handlePointerMove),ut(this.contextWindow,"pointerup",this.handlePointerUp),ut(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),dt(this.updatePoint)}}function Cn(t,e){return e?{point:e(t.point)}:t}function hi(t,e){return{x:t.x-e.x,y:t.y-e.y}}function Rn({point:t},e){return{point:t,delta:hi(t,zo(e)),offset:hi(t,kf(e)),velocity:Mf(e,.1)}}function kf(t){return t[0]}function zo(t){return t[t.length-1]}function Mf(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,r=null;const i=zo(t);for(;n>=0&&(r=t[n],!(i.timestamp-r.timestamp>St(e)));)n--;if(!r)return{x:0,y:0};const o=ft(i.timestamp-r.timestamp);if(o===0)return{x:0,y:0};const s={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function K(t){return t.max-t.min}function qn(t,e=0,n=.01){return Math.abs(t-e)<=n}function di(t,e,n,r=.5){t.origin=r,t.originPoint=j(e.min,e.max,t.origin),t.scale=K(n)/K(e),(qn(t.scale,1,1e-4)||isNaN(t.scale))&&(t.scale=1),t.translate=j(n.min,n.max,t.origin)-t.originPoint,(qn(t.translate)||isNaN(t.translate))&&(t.translate=0)}function ae(t,e,n,r){di(t.x,e.x,n.x,r?r.originX:void 0),di(t.y,e.y,n.y,r?r.originY:void 0)}function pi(t,e,n){t.min=n.min+e.min,t.max=t.min+K(e)}function jf(t,e,n){pi(t.x,e.x,n.x),pi(t.y,e.y,n.y)}function mi(t,e,n){t.min=e.min-n.min,t.max=t.min+K(e)}function le(t,e,n){mi(t.x,e.x,n.x),mi(t.y,e.y,n.y)}function Lf(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 gi(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 Df(t,{top:e,left:n,bottom:r,right:i}){return{x:gi(t.x,n,i),y:gi(t.y,e,r)}}function yi(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 _f(t,e){return{x:yi(t.x,e.x),y:yi(t.y,e.y)}}function Ff(t,e){let n=.5;const r=K(t),i=K(e);return i>r?n=pe(e.min,e.max-r,t.min):r>i&&(n=pe(t.min,t.max-i,e.min)),Tt(0,1,n)}function Nf(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 Gn=.35;function Bf(t=Gn){return t===!1?t=0:t===!0&&(t=Gn),{x:vi(t,"left","right"),y:vi(t,"top","bottom")}}function vi(t,e,n){return{min:xi(t,e),max:xi(t,n)}}function xi(t,e){return typeof t=="number"?t:t[e]||0}const bi=()=>({translate:0,scale:1,origin:0,originPoint:0}),qt=()=>({x:bi(),y:bi()}),wi=()=>({min:0,max:0}),_=()=>({x:wi(),y:wi()});function J(t){return[t("x"),t("y")]}function Ho({top:t,left:e,right:n,bottom:r}){return{x:{min:e,max:n},y:{min:t,max:r}}}function If({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function Wf(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 On(t){return t===void 0||t===1}function Xn({scale:t,scaleX:e,scaleY:n}){return!On(t)||!On(e)||!On(n)}function Vt(t){return Xn(t)||$o(t)||t.z||t.rotate||t.rotateX||t.rotateY}function $o(t){return Ei(t.x)||Ei(t.y)}function Ei(t){return t&&t!=="0%"}function Ge(t,e,n){const r=t-n,i=e*r;return n+i}function Si(t,e,n,r,i){return i!==void 0&&(t=Ge(t,i,r)),Ge(t,n,r)+e}function Kn(t,e=0,n=1,r,i){t.min=Si(t.min,e,n,r,i),t.max=Si(t.max,e,n,r,i)}function qo(t,{x:e,y:n}){Kn(t.x,e.translate,e.scale,e.originPoint),Kn(t.y,n.translate,n.scale,n.originPoint)}function Uf(t,e,n,r=!1){const i=n.length;if(!i)return;e.x=e.y=1;let o,s;for(let a=0;a<i;a++){o=n[a],s=o.projectionDelta;const l=o.instance;l&&l.style&&l.style.display==="contents"||(r&&o.options.layoutScroll&&o.scroll&&o!==o.root&&Gt(t,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),s&&(e.x*=s.x.scale,e.y*=s.y.scale,qo(t,s)),r&&Vt(o.latestValues)&&Gt(t,o.latestValues))}e.x=Ti(e.x),e.y=Ti(e.y)}function Ti(t){return Number.isInteger(t)||t>1.0000000000001||t<.999999999999?t:1}function bt(t,e){t.min=t.min+e,t.max=t.max+e}function Ai(t,e,[n,r,i]){const o=e[i]!==void 0?e[i]:.5,s=j(t.min,t.max,o);Kn(t,e[n],e[r],s,e.scale)}const zf=["x","scaleX","originX"],Hf=["y","scaleY","originY"];function Gt(t,e){Ai(t.x,e,zf),Ai(t.y,e,Hf)}function Go(t,e){return Ho(Wf(t.getBoundingClientRect(),e))}function $f(t,e,n){const r=Go(t,n),{scroll:i}=e;return i&&(bt(r.x,i.offset.x),bt(r.y,i.offset.y)),r}const Xo=({current:t})=>t?t.ownerDocument.defaultView:null,qf=new WeakMap;class Gf{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=_(),this.visualElement=e}start(e,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const i=f=>{const{dragSnapToOrigin:u}=this.getProps();u?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(an(f,"page").point)},o=(f,u)=>{const{drag:h,dragPropagation:d,onDragStart:m}=this.getProps();if(h&&!d&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=oo(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),J(y=>{let x=this.getAxisMotionValue(y).get()||0;if(ot.test(x)){const{projection:w}=this.visualElement;if(w&&w.layout){const v=w.layout.layoutBox[y];v&&(x=K(v)*(parseFloat(x)/100))}}this.originPoint[y]=x}),m&&k.update(()=>m(f,u),!1,!0);const{animationState:g}=this.visualElement;g&&g.setActive("whileDrag",!0)},s=(f,u)=>{const{dragPropagation:h,dragDirectionLock:d,onDirectionLock:m,onDrag:g}=this.getProps();if(!h&&!this.openGlobalLock)return;const{offset:y}=u;if(d&&this.currentDirection===null){this.currentDirection=Xf(y),this.currentDirection!==null&&m&&m(this.currentDirection);return}this.updateAxis("x",u.point,y),this.updateAxis("y",u.point,y),this.visualElement.render(),g&&g(f,u)},a=(f,u)=>this.stop(f,u),l=()=>J(f=>{var u;return this.getAnimationState(f)==="paused"&&((u=this.getAxisMotionValue(f).animation)===null||u===void 0?void 0:u.play())}),{dragSnapToOrigin:c}=this.getProps();this.panSession=new Uo(e,{onSessionStart:i,onStart:o,onMove:s,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:c,contextWindow:Xo(this.visualElement)})}stop(e,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:o}=this.getProps();o&&k.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:i}=this.getProps();if(!r||!Ce(e,i,this.currentDirection))return;const o=this.getAxisMotionValue(e);let s=this.originPoint[e]+r[e];this.constraints&&this.constraints[e]&&(s=Lf(s,this.constraints[e],this.elastic[e])),o.set(s)}resolveConstraints(){var e;const{dragConstraints:n,dragElastic:r}=this.getProps(),i=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&&Ht(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=Df(i.layoutBox,n):this.constraints=!1,this.elastic=Bf(r),o!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&J(s=>{this.getAxisMotionValue(s)&&(this.constraints[s]=Nf(i.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:n}=this.getProps();if(!e||!Ht(e))return!1;const r=e.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const o=$f(r,i.root,this.visualElement.getTransformPagePoint());let s=_f(i.layout.layoutBox,o);if(n){const a=n(If(s));this.hasMutatedConstraints=!!a,a&&(s=Ho(a))}return s}startAnimation(e){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:o,dragSnapToOrigin:s,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},c=J(f=>{if(!Ce(f,n,this.currentDirection))return;let u=l&&l[f]||{};s&&(u={min:0,max:0});const h=i?200:1e6,d=i?40:1e7,m={type:"inertia",velocity:r?e[f]:0,bounceStiffness:h,bounceDamping:d,timeConstant:750,restDelta:1,restSpeed:10,...o,...u};return this.startAxisValueAnimation(f,m)});return Promise.all(c).then(a)}startAxisValueAnimation(e,n){const r=this.getAxisMotionValue(e);return r.start(Sr(e,r,0,n))}stopAnimation(){J(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){J(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(),i=r[n];return i||this.visualElement.getValue(e,(r.initial?r.initial[e]:void 0)||0)}snapToCursor(e){J(n=>{const{drag:r}=this.getProps();if(!Ce(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(n);if(i&&i.layout){const{min:s,max:a}=i.layout.layoutBox[n];o.set(e[n]-j(s,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Ht(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};J(s=>{const a=this.getAxisMotionValue(s);if(a){const l=a.get();i[s]=Ff({min:l,max:l},this.constraints[s])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),J(s=>{if(!Ce(s,e,null))return;const a=this.getAxisMotionValue(s),{min:l,max:c}=this.constraints[s];a.set(j(l,c,i[s]))})}addListeners(){if(!this.visualElement.current)return;qf.set(this.visualElement,this);const e=this.visualElement.current,n=ut(e,"pointerdown",l=>{const{drag:c,dragListener:f=!0}=this.getProps();c&&f&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();Ht(l)&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,o=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),r();const s=ct(window,"resize",()=>this.scalePositionWithinConstraints()),a=i.addEventListener("didUpdate",({delta:l,hasLayoutChanged:c})=>{this.isDragging&&c&&(J(f=>{const u=this.getAxisMotionValue(f);u&&(this.originPoint[f]+=l[f].translate,u.set(u.get()+l[f].translate))}),this.visualElement.render())});return()=>{s(),n(),o(),a&&a()}}getProps(){const e=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:s=Gn,dragMomentum:a=!0}=e;return{...e,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:o,dragElastic:s,dragMomentum:a}}}function Ce(t,e,n){return(e===!0||e===t)&&(n===null||n===t)}function Xf(t,e=10){let n=null;return Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x"),n}class Kf extends Pt{constructor(e){super(e),this.removeGroupControls=L,this.removeListeners=L,this.controls=new Gf(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 Pi=t=>(e,n)=>{t&&k.update(()=>t(e,n))};class Yf extends Pt{constructor(){super(...arguments),this.removePointerDownListener=L}onPointerDown(e){this.session=new Uo(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Xo(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:Pi(e),onStart:Pi(n),onMove:r,onEnd:(o,s)=>{delete this.session,i&&k.update(()=>i(o,s))}}}mount(){this.removePointerDownListener=ut(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 Jf(){const t=p.reactExports.useContext(or);if(t===null)return[!0,null];const{isPresent:e,onExitComplete:n,register:r}=t,i=p.reactExports.useId();return p.reactExports.useEffect(()=>r(i),[]),!e&&n?[!1,()=>n&&n(i)]:[!0]}const Me={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Ci(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const ne={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(C.test(t))t=parseFloat(t);else return t;const n=Ci(t,e.target.x),r=Ci(t,e.target.y);return`${n}% ${r}%`}},Zf={correct:(t,{treeScale:e,projectionDelta:n})=>{const r=t,i=At.parse(t);if(i.length>5)return r;const o=At.createTransformer(t),s=typeof i[0]!="number"?1:0,a=n.x.scale*e.x,l=n.y.scale*e.y;i[0+s]/=a,i[1+s]/=l;const c=j(a,l,.5);return typeof i[2+s]=="number"&&(i[2+s]/=c),typeof i[3+s]=="number"&&(i[3+s]/=c),o(i)}};class Qf extends p.e.Component{componentDidMount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:o}=e;ic(th),o&&(n.group&&n.group.add(o),r&&r.register&&i&&r.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),Me.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:n,visualElement:r,drag:i,isPresent:o}=this.props,s=r.projection;return s&&(s.isPresent=o,i||e.layoutDependency!==n||n===void 0?s.willUpdate():this.safeToRemove(),e.isPresent!==o&&(o?s.promote():s.relegate()||k.postRender(()=>{const a=s.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:i}=e;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function Ko(t){const[e,n]=Jf(),r=p.reactExports.useContext(zs);return p.e.createElement(Qf,{...t,layoutGroup:r,switchLayoutGroup:p.reactExports.useContext(Hs),isPresent:e,safeToRemove:n})}const th={borderRadius:{...ne,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:ne,borderTopRightRadius:ne,borderBottomLeftRadius:ne,borderBottomRightRadius:ne,boxShadow:Zf},Yo=["TopLeft","TopRight","BottomLeft","BottomRight"],eh=Yo.length,Ri=t=>typeof t=="string"?parseFloat(t):t,Oi=t=>typeof t=="number"||C.test(t);function nh(t,e,n,r,i,o){i?(t.opacity=j(0,n.opacity!==void 0?n.opacity:1,rh(r)),t.opacityExit=j(e.opacity!==void 0?e.opacity:1,0,ih(r))):o&&(t.opacity=j(e.opacity!==void 0?e.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let s=0;s<eh;s++){const a=`border${Yo[s]}Radius`;let l=Vi(e,a),c=Vi(n,a);if(l===void 0&&c===void 0)continue;l||(l=0),c||(c=0),l===0||c===0||Oi(l)===Oi(c)?(t[a]=Math.max(j(Ri(l),Ri(c),r),0),(ot.test(c)||ot.test(l))&&(t[a]+="%")):t[a]=c}(e.rotate||n.rotate)&&(t.rotate=j(e.rotate||0,n.rotate||0,r))}function Vi(t,e){return t[e]!==void 0?t[e]:t.borderRadius}const rh=Jo(0,.5,xo),ih=Jo(.5,.95,L);function Jo(t,e,n){return r=>r<t?0:r>e?1:n(pe(t,e,r))}function ki(t,e){t.min=e.min,t.max=e.max}function Y(t,e){ki(t.x,e.x),ki(t.y,e.y)}function Mi(t,e,n,r,i){return t-=e,t=Ge(t,1/n,r),i!==void 0&&(t=Ge(t,1/i,r)),t}function sh(t,e=0,n=1,r=.5,i,o=t,s=t){if(ot.test(e)&&(e=parseFloat(e),e=j(s.min,s.max,e/100)-s.min),typeof e!="number")return;let a=j(o.min,o.max,r);t===o&&(a-=e),t.min=Mi(t.min,e,n,a,i),t.max=Mi(t.max,e,n,a,i)}function ji(t,e,[n,r,i],o,s){sh(t,e[n],e[r],e[i],e.scale,o,s)}const oh=["x","scaleX","originX"],ah=["y","scaleY","originY"];function Li(t,e,n,r){ji(t.x,e,oh,n?n.x:void 0,r?r.x:void 0),ji(t.y,e,ah,n?n.y:void 0,r?r.y:void 0)}function Di(t){return t.translate===0&&t.scale===1}function Zo(t){return Di(t.x)&&Di(t.y)}function lh(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 Qo(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 _i(t){return K(t.x)/K(t.y)}class ch{constructor(){this.members=[]}add(e){Tr(this.members,e),e.scheduleRender()}remove(e){if(Ar(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(i=>e===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const o=this.members[i];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:i}=e.options;i===!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 Fi(t,e,n){let r="";const i=t.x.translate/e.x,o=t.y.translate/e.y;if((i||o)&&(r=`translate3d(${i}px, ${o}px, 0) `),(e.x!==1||e.y!==1)&&(r+=`scale(${1/e.x}, ${1/e.y}) `),n){const{rotate:l,rotateX:c,rotateY:f}=n;l&&(r+=`rotate(${l}deg) `),c&&(r+=`rotateX(${c}deg) `),f&&(r+=`rotateY(${f}deg) `)}const s=t.x.scale*e.x,a=t.y.scale*e.y;return(s!==1||a!==1)&&(r+=`scale(${s}, ${a})`),r||"none"}const uh=(t,e)=>t.depth-e.depth;class fh{constructor(){this.children=[],this.isDirty=!1}add(e){Tr(this.children,e),this.isDirty=!0}remove(e){Ar(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(uh),this.isDirty=!1,this.children.forEach(e)}}function hh(t,e){const n=performance.now(),r=({timestamp:i})=>{const o=i-n;o>=e&&(dt(r),t(o-e))};return k.read(r,!0),()=>dt(r)}function dh(t){window.MotionDebug&&window.MotionDebug.record(t)}function ph(t){return t instanceof SVGElement&&t.tagName!=="svg"}function mh(t,e,n){const r=G(t)?t:Xt(t);return r.start(Sr("",r,e,n)),r.animation}const Ni=["","X","Y","Z"],gh={visibility:"hidden"},Bi=1e3;let yh=0;const kt={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function ta({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(s={},a=e==null?void 0:e()){this.id=yh++,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,kt.totalNodes=kt.resolvedTargetDeltas=kt.recalculatedProjection=0,this.nodes.forEach(bh),this.nodes.forEach(Ah),this.nodes.forEach(Ph),this.nodes.forEach(wh),dh(kt)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,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 fh)}addEventListener(s,a){return this.eventHandlers.has(s)||this.eventHandlers.set(s,new Pr),this.eventHandlers.get(s).add(a)}notifyListeners(s,...a){const l=this.eventHandlers.get(s);l&&l.notify(...a)}hasListeners(s){return this.eventHandlers.has(s)}mount(s,a=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=ph(s),this.instance=s;const{layoutId:l,layout:c,visualElement:f}=this.options;if(f&&!f.current&&f.mount(s),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),a&&(c||l)&&(this.isLayoutDirty=!0),t){let u;const h=()=>this.root.updateBlockedByResize=!1;t(s,()=>{this.root.updateBlockedByResize=!0,u&&u(),u=hh(h,250),Me.hasAnimatedSinceResize&&(Me.hasAnimatedSinceResize=!1,this.nodes.forEach(Wi))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&f&&(l||c)&&this.addEventListener("didUpdate",({delta:u,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()||kh,{onLayoutAnimationStart:y,onLayoutAnimationComplete:x}=f.getProps(),w=!this.targetLayout||!Qo(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(u,v);const E={...Er(g,"layout"),onPlay:y,onComplete:x};(f.shouldReduceMotion||this.options.layoutRoot)&&(E.delay=0,E.type=!1),this.startAnimation(E)}else h||Wi(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=m})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const s=this.getStack();s&&s.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,dt(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(Ch),this.animationId++)}getTransformTemplate(){const{visualElement:s}=this.options;return s&&s.getProps().transformTemplate}willUpdate(s=!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 u=this.path[f];u.shouldResetTransform=!0,u.updateScroll("snapshot"),u.options.layoutRoot&&u.willUpdate(!1)}const{layoutId:a,layout:l}=this.options;if(a===void 0&&!l)return;const c=this.getTransformTemplate();this.prevTransformTemplateValue=c?c(this.latestValues,""):void 0,this.updateSnapshot(),s&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Ii);return}this.isUpdating||this.nodes.forEach(Sh),this.isUpdating=!1,this.nodes.forEach(Th),this.nodes.forEach(vh),this.nodes.forEach(xh),this.clearAllSnapshots();const a=performance.now();H.delta=Tt(0,1e3/60,a-H.timestamp),H.timestamp=a,H.isProcessing=!0,xn.update.process(H),xn.preRender.process(H),xn.render.process(H),H.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,queueMicrotask(()=>this.update()))}clearAllSnapshots(){this.nodes.forEach(Eh),this.sharedNodes.forEach(Rh)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,k.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){k.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 s=this.layout;this.layout=this.measure(!1),this.layoutCorrected=_(),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,s?s.layoutBox:void 0)}updateScroll(s="measure"){let a=!!(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===s&&(a=!1),a&&(this.scroll={animationId:this.root.animationId,phase:s,isRoot:r(this.instance),offset:n(this.instance)})}resetTransform(){if(!i)return;const s=this.isLayoutDirty||this.shouldResetTransform,a=this.projectionDelta&&!Zo(this.projectionDelta),l=this.getTransformTemplate(),c=l?l(this.latestValues,""):void 0,f=c!==this.prevTransformTemplateValue;s&&(a||Vt(this.latestValues)||f)&&(i(this.instance,c),this.shouldResetTransform=!1,this.scheduleRender())}measure(s=!0){const a=this.measurePageBox();let l=this.removeElementScroll(a);return s&&(l=this.removeTransform(l)),Mh(l),{animationId:this.root.animationId,measuredBox:a,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:s}=this.options;if(!s)return _();const a=s.measureViewportBox(),{scroll:l}=this.root;return l&&(bt(a.x,l.offset.x),bt(a.y,l.offset.y)),a}removeElementScroll(s){const a=_();Y(a,s);for(let l=0;l<this.path.length;l++){const c=this.path[l],{scroll:f,options:u}=c;if(c!==this.root&&f&&u.layoutScroll){if(f.isRoot){Y(a,s);const{scroll:h}=this.root;h&&(bt(a.x,-h.offset.x),bt(a.y,-h.offset.y))}bt(a.x,f.offset.x),bt(a.y,f.offset.y)}}return a}applyTransform(s,a=!1){const l=_();Y(l,s);for(let c=0;c<this.path.length;c++){const f=this.path[c];!a&&f.options.layoutScroll&&f.scroll&&f!==f.root&&Gt(l,{x:-f.scroll.offset.x,y:-f.scroll.offset.y}),Vt(f.latestValues)&&Gt(l,f.latestValues)}return Vt(this.latestValues)&&Gt(l,this.latestValues),l}removeTransform(s){const a=_();Y(a,s);for(let l=0;l<this.path.length;l++){const c=this.path[l];if(!c.instance||!Vt(c.latestValues))continue;Xn(c.latestValues)&&c.updateSnapshot();const f=_(),u=c.measurePageBox();Y(f,u),Li(a,c.latestValues,c.snapshot?c.snapshot.layoutBox:void 0,f)}return Vt(this.latestValues)&&Li(a,this.latestValues),a}setTargetDelta(s){this.targetDelta=s,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(s){this.options={...this.options,...s,crossfade:s.crossfade!==void 0?s.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!==H.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(s=!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 c=!!this.resumingFrom||this!==l;if(!(s||c&&this.isSharedProjectionDirty||this.isProjectionDirty||!((a=this.parent)===null||a===void 0)&&a.isProjectionDirty||this.attemptToResolveRelativeTarget))return;const{layout:u,layoutId:h}=this.options;if(!(!this.layout||!(u||h))){if(this.resolvedRelativeTargetAt=H.timestamp,!this.targetDelta&&!this.relativeTarget){const d=this.getClosestProjectingParent();d&&d.layout&&this.animationProgress!==1?(this.relativeParent=d,this.forceRelativeParentToResolveTarget(),this.relativeTarget=_(),this.relativeTargetOrigin=_(),le(this.relativeTargetOrigin,this.layout.layoutBox,d.layout.layoutBox),Y(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=_(),this.targetWithTransforms=_()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),jf(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Y(this.target,this.layout.layoutBox),qo(this.target,this.targetDelta)):Y(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=_(),this.relativeTargetOrigin=_(),le(this.relativeTargetOrigin,this.target,d.target),Y(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}kt.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||Xn(this.parent.latestValues)||$o(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 s;const a=this.getLead(),l=!!this.resumingFrom||this!==a;let c=!0;if((this.isProjectionDirty||!((s=this.parent)===null||s===void 0)&&s.isProjectionDirty)&&(c=!1),l&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(c=!1),this.resolvedRelativeTargetAt===H.timestamp&&(c=!1),c)return;const{layout:f,layoutId:u}=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||u))return;Y(this.layoutCorrected,this.layout.layoutBox);const h=this.treeScale.x,d=this.treeScale.y;Uf(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=qt(),this.projectionTransform="none",this.scheduleRender());return}this.projectionDelta||(this.projectionDelta=qt(),this.projectionDeltaWithTransform=qt());const g=this.projectionTransform;ae(this.projectionDelta,this.layoutCorrected,m,this.latestValues),this.projectionTransform=Fi(this.projectionDelta,this.treeScale),(this.projectionTransform!==g||this.treeScale.x!==h||this.treeScale.y!==d)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",m)),kt.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(s=!0){if(this.options.scheduleRender&&this.options.scheduleRender(),s){const a=this.getStack();a&&a.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(s,a=!1){const l=this.snapshot,c=l?l.latestValues:{},f={...this.latestValues},u=qt();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const h=_(),d=l?l.source:void 0,m=this.layout?this.layout.source:void 0,g=d!==m,y=this.getStack(),x=!y||y.members.length<=1,w=!!(g&&!x&&this.options.crossfade===!0&&!this.path.some(Vh));this.animationProgress=0;let v;this.mixTargetDelta=E=>{const S=E/1e3;Ui(u.x,s.x,S),Ui(u.y,s.y,S),this.setTargetDelta(u),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(le(h,this.layout.layoutBox,this.relativeParent.layout.layoutBox),Oh(this.relativeTarget,this.relativeTargetOrigin,h,S),v&&lh(this.relativeTarget,v)&&(this.isProjectionDirty=!1),v||(v=_()),Y(v,this.relativeTarget)),g&&(this.animationValues=f,nh(f,c,this.latestValues,S,w,x)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=S},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(dt(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=k.update(()=>{Me.hasAnimatedSinceResize=!0,this.currentAnimation=mh(0,Bi,{...s,onUpdate:a=>{this.mixTargetDelta(a),s.onUpdate&&s.onUpdate(a)},onComplete:()=>{s.onComplete&&s.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 s=this.getStack();s&&s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Bi),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:a,target:l,layout:c,latestValues:f}=s;if(!(!a||!l||!c)){if(this!==s&&this.layout&&c&&ea(this.options.animationType,this.layout.layoutBox,c.layoutBox)){l=this.target||_();const u=K(this.layout.layoutBox.x);l.x.min=s.target.x.min,l.x.max=l.x.min+u;const h=K(this.layout.layoutBox.y);l.y.min=s.target.y.min,l.y.max=l.y.min+h}Y(a,l),Gt(a,f),ae(this.projectionDeltaWithTransform,this.layoutCorrected,a,f)}}registerSharedNode(s,a){this.sharedNodes.has(s)||this.sharedNodes.set(s,new ch),this.sharedNodes.get(s).add(a);const c=a.options.initialPromotionConfig;a.promote({transition:c?c.transition:void 0,preserveFollowOpacity:c&&c.shouldPreserveFollowOpacity?c.shouldPreserveFollowOpacity(a):void 0})}isLead(){const s=this.getStack();return s?s.lead===this:!0}getLead(){var s;const{layoutId:a}=this.options;return a?((s=this.getStack())===null||s===void 0?void 0:s.lead)||this:this}getPrevLead(){var s;const{layoutId:a}=this.options;return a?(s=this.getStack())===null||s===void 0?void 0:s.prevLead:void 0}getStack(){const{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:a,preserveFollowOpacity:l}={}){const c=this.getStack();c&&c.promote(this,l),s&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const s=this.getStack();return s?s.relegate(this):!1}resetRotation(){const{visualElement:s}=this.options;if(!s)return;let a=!1;const{latestValues:l}=s;if((l.rotate||l.rotateX||l.rotateY||l.rotateZ)&&(a=!0),!a)return;const c={};for(let f=0;f<Ni.length;f++){const u="rotate"+Ni[f];l[u]&&(c[u]=l[u],s.setStaticValue(u,0))}s.render();for(const f in c)s.setStaticValue(f,c[f]);s.scheduleRender()}getProjectionStyles(s){var a,l;if(!this.instance||this.isSVG)return;if(!this.isVisible)return gh;const c={visibility:""},f=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,c.opacity="",c.pointerEvents=ke(s==null?void 0:s.pointerEvents)||"",c.transform=f?f(this.latestValues,""):"none",c;const u=this.getLead();if(!this.projectionDelta||!this.layout||!u.target){const g={};return this.options.layoutId&&(g.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,g.pointerEvents=ke(s==null?void 0:s.pointerEvents)||""),this.hasProjected&&!Vt(this.latestValues)&&(g.transform=f?f({},""):"none",this.hasProjected=!1),g}const h=u.animationValues||u.latestValues;this.applyTransformsToTarget(),c.transform=Fi(this.projectionDeltaWithTransform,this.treeScale,h),f&&(c.transform=f(h,c.transform));const{x:d,y:m}=this.projectionDelta;c.transformOrigin=`${d.origin*100}% ${m.origin*100}% 0`,u.animationValues?c.opacity=u===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:c.opacity=u===this?h.opacity!==void 0?h.opacity:"":h.opacityExit!==void 0?h.opacityExit:0;for(const g in Ie){if(h[g]===void 0)continue;const{correct:y,applyTo:x}=Ie[g],w=c.transform==="none"?h[g]:y(h[g],u);if(x){const v=x.length;for(let E=0;E<v;E++)c[x[E]]=w}else c[g]=w}return this.options.layoutId&&(c.pointerEvents=u===this?ke(s==null?void 0:s.pointerEvents)||"":"none"),c}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(s=>{var a;return(a=s.currentAnimation)===null||a===void 0?void 0:a.stop()}),this.root.nodes.forEach(Ii),this.root.sharedNodes.clear()}}}function vh(t){t.updateLayout()}function xh(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:i}=t.layout,{animationType:o}=t.options,s=n.source!==t.layout.source;o==="size"?J(u=>{const h=s?n.measuredBox[u]:n.layoutBox[u],d=K(h);h.min=r[u].min,h.max=h.min+d}):ea(o,n.layoutBox,r)&&J(u=>{const h=s?n.measuredBox[u]:n.layoutBox[u],d=K(r[u]);h.max=h.min+d,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[u].max=t.relativeTarget[u].min+d)});const a=qt();ae(a,r,n.layoutBox);const l=qt();s?ae(l,t.applyTransform(i,!0),n.measuredBox):ae(l,r,n.layoutBox);const c=!Zo(a);let f=!1;if(!t.resumeFrom){const u=t.getClosestProjectingParent();if(u&&!u.resumeFrom){const{snapshot:h,layout:d}=u;if(h&&d){const m=_();le(m,n.layoutBox,h.layoutBox);const g=_();le(g,r,d.layoutBox),Qo(m,g)||(f=!0),u.options.layoutRoot&&(t.relativeTarget=g,t.relativeTargetOrigin=m,t.relativeParent=u)}}}t.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:l,layoutDelta:a,hasLayoutChanged:c,hasRelativeTargetChanged:f})}else if(t.isLead()){const{onExitComplete:r}=t.options;r&&r()}t.options.transition=void 0}function bh(t){kt.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 wh(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function Eh(t){t.clearSnapshot()}function Ii(t){t.clearMeasurements()}function Sh(t){t.isLayoutDirty=!1}function Th(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function Wi(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function Ah(t){t.resolveTargetDelta()}function Ph(t){t.calcProjection()}function Ch(t){t.resetRotation()}function Rh(t){t.removeLeadSnapshot()}function Ui(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 zi(t,e,n,r){t.min=j(e.min,n.min,r),t.max=j(e.max,n.max,r)}function Oh(t,e,n,r){zi(t.x,e.x,n.x,r),zi(t.y,e.y,n.y,r)}function Vh(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const kh={duration:.45,ease:[.4,0,.1,1]},Hi=t=>typeof navigator<"u"&&navigator.userAgent.toLowerCase().includes(t),$i=Hi("applewebkit/")&&!Hi("chrome/")?Math.round:L;function qi(t){t.min=$i(t.min),t.max=$i(t.max)}function Mh(t){qi(t.x),qi(t.y)}function ea(t,e,n){return t==="position"||t==="preserve-aspect"&&!qn(_i(e),_i(n),.2)}const jh=ta({attachResizeListener:(t,e)=>ct(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Vn={current:void 0},na=ta({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!Vn.current){const t=new jh({});t.mount(window),t.setOptions({layoutScroll:!0}),Vn.current=t}return Vn.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),Lh={pan:{Feature:Yf},drag:{Feature:Kf,ProjectionNode:na,MeasureLayout:Ko}},Dh=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function _h(t){const e=Dh.exec(t);if(!e)return[,];const[,n,r]=e;return[n,r]}function Yn(t,e,n=1){const[r,i]=_h(t);if(!r)return;const o=window.getComputedStyle(e).getPropertyValue(r);if(o){const s=o.trim();return No(s)?parseFloat(s):s}else return Bn(i)?Yn(i,e,n+1):i}function Fh(t,{...e},n){const r=t.current;if(!(r instanceof Element))return{target:e,transitionEnd:n};n&&(n={...n}),t.values.forEach(i=>{const o=i.get();if(!Bn(o))return;const s=Yn(o,r);s&&i.set(s)});for(const i in e){const o=e[i];if(!Bn(o))continue;const s=Yn(o,r);s&&(e[i]=s,n||(n={}),n[i]===void 0&&(n[i]=o))}return{target:e,transitionEnd:n}}const Nh=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),ra=t=>Nh.has(t),Bh=t=>Object.keys(t).some(ra),Gi=t=>t===Dt||t===C,Xi=(t,e)=>parseFloat(t.split(", ")[e]),Ki=(t,e)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/);if(i)return Xi(i[1],e);{const o=r.match(/^matrix\((.+)\)$/);return o?Xi(o[1],t):0}},Ih=new Set(["x","y","z"]),Wh=ge.filter(t=>!Ih.has(t));function Uh(t){const e=[];return Wh.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 Kt={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:Ki(4,13),y:Ki(5,14)};Kt.translateX=Kt.x;Kt.translateY=Kt.y;const zh=(t,e,n)=>{const r=e.measureViewportBox(),i=e.current,o=getComputedStyle(i),{display:s}=o,a={};s==="none"&&e.setStaticValue("display",t.display||"block"),n.forEach(c=>{a[c]=Kt[c](r,o)}),e.render();const l=e.measureViewportBox();return n.forEach(c=>{const f=e.getValue(c);f&&f.jump(a[c]),t[c]=Kt[c](l,o)}),t},Hh=(t,e,n={},r={})=>{e={...e},r={...r};const i=Object.keys(e).filter(ra);let o=[],s=!1;const a=[];if(i.forEach(l=>{const c=t.getValue(l);if(!t.hasValue(l))return;let f=n[l],u=ee(f);const h=e[l];let d;if(Ue(h)){const m=h.length,g=h[0]===null?1:0;f=h[g],u=ee(f);for(let y=g;y<m&&h[y]!==null;y++)d?yr(ee(h[y])===d):d=ee(h[y])}else d=ee(h);if(u!==d)if(Gi(u)&&Gi(d)){const m=c.get();typeof m=="string"&&c.set(parseFloat(m)),typeof h=="string"?e[l]=parseFloat(h):Array.isArray(h)&&d===C&&(e[l]=h.map(parseFloat))}else u!=null&&u.transform&&(d!=null&&d.transform)&&(f===0||h===0)?f===0?c.set(d.transform(f)):e[l]=u.transform(h):(s||(o=Uh(t),s=!0),a.push(l),r[l]=r[l]!==void 0?r[l]:e[l],c.jump(h))}),a.length){const l=a.indexOf("height")>=0?window.pageYOffset:null,c=zh(e,t,a);return o.length&&o.forEach(([f,u])=>{t.getValue(f).set(u)}),t.render(),nn&&l!==null&&window.scrollTo({top:l}),{target:c,transitionEnd:r}}else return{target:e,transitionEnd:r}};function $h(t,e,n,r){return Bh(e)?Hh(t,e,n,r):{target:e,transitionEnd:r}}const qh=(t,e,n,r)=>{const i=Fh(t,e,r);return e=i.target,r=i.transitionEnd,$h(t,e,n,r)},Jn={current:null},ia={current:!1};function Gh(){if(ia.current=!0,!!nn)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>Jn.current=t.matches;t.addListener(e),e()}else Jn.current=!1}function Xh(t,e,n){const{willChange:r}=e;for(const i in e){const o=e[i],s=n[i];if(G(o))t.addValue(i,o),qe(r)&&r.add(i);else if(G(s))t.addValue(i,Xt(o,{owner:t})),qe(r)&&r.remove(i);else if(s!==o)if(t.hasValue(i)){const a=t.getValue(i);!a.hasAnimated&&a.set(o)}else{const a=t.getStaticValue(i);t.addValue(i,Xt(a!==void 0?a:o,{owner:t}))}}for(const i in n)e[i]===void 0&&t.removeValue(i);return e}const Yi=new WeakMap,sa=Object.keys(de),Kh=sa.length,Ji=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],Yh=cr.length;class Jh{constructor({parent:e,props:n,presenceContext:r,reducedMotionConfig:i,visualState:o},s={}){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=()=>k.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=i,this.options=s,this.isControllingVariants=sn(n),this.isVariantNode=Us(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:c,...f}=this.scrapeMotionValuesFromProps(n,{});for(const u in f){const h=f[u];a[u]!==void 0&&G(h)&&(h.set(a[u],!1),qe(c)&&c.add(u))}}scrapeMotionValuesFromProps(e,n){return{}}mount(e){this.current=e,Yi.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)),ia.current||Gh(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Jn.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){Yi.delete(this.current),this.projection&&this.projection.unmount(),dt(this.notifyUpdate),dt(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=Lt.has(e),i=n.on("change",s=>{this.latestValues[e]=s,this.props.onUpdate&&k.update(this.notifyUpdate,!1,!0),r&&this.projection&&(this.projection.isTransformDirty=!0)}),o=n.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(e,()=>{i(),o()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}loadFeatures({children:e,...n},r,i,o){let s,a;for(let l=0;l<Kh;l++){const c=sa[l],{isEnabled:f,Feature:u,ProjectionNode:h,MeasureLayout:d}=de[c];h&&(s=h),f(n)&&(!this.features[c]&&u&&(this.features[c]=new u(this)),d&&(a=d))}if((this.type==="html"||this.type==="svg")&&!this.projection&&s){this.projection=new s(this.latestValues,this.parent&&this.parent.projection);const{layoutId:l,layout:c,drag:f,dragConstraints:u,layoutScroll:h,layoutRoot:d}=n;this.projection.setOptions({layoutId:l,layout:c,alwaysMeasureLayout:!!f||u&&Ht(u),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:typeof c=="string"?c:"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):_()}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<Ji.length;r++){const i=Ji[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const o=e["on"+i];o&&(this.propEventSubscriptions[i]=this.on(i,o))}this.prevMotionValues=Xh(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<Yh;r++){const i=cr[r],o=this.props[i];(he(o)||o===!1)&&(n[i]=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=Xt(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,i=typeof r=="string"||typeof r=="object"?(n=gr(this.props,r))===null||n===void 0?void 0:n[e]:void 0;if(r&&i!==void 0)return i;const o=this.getBaseTargetFromProps(this.props,e);return o!==void 0&&!G(o)?o:this.initialValues[e]!==void 0&&i===void 0?void 0:this.baseTarget[e]}on(e,n){return this.events[e]||(this.events[e]=new Pr),this.events[e].add(n)}notify(e,...n){this.events[e]&&this.events[e].notify(...n)}}class oa extends Jh{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:i},o){let s=pf(r,e||{},this);if(i&&(n&&(n=i(n)),r&&(r=i(r)),s&&(s=i(s))),o){hf(this,r,s);const a=qh(this,r,s,n);n=a.transitionEnd,r=a.target}return{transition:e,transitionEnd:n,...r}}}function Zh(t){return window.getComputedStyle(t)}class Qh extends oa{constructor(){super(...arguments),this.type="html"}readValueFromInstance(e,n){if(Lt.has(n)){const r=wr(n);return r&&r.default||0}else{const r=Zh(e),i=(Gs(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(e,{transformPagePoint:n}){return Go(e,n)}build(e,n,r,i){fr(e,n,r,i.transformTemplate)}scrapeMotionValuesFromProps(e,n){return mr(e,n)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;G(e)&&(this.childSubscription=e.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}renderInstance(e,n,r,i){Qs(e,n,r,i)}}class td extends oa{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}getBaseTargetFromProps(e,n){return e[n]}readValueFromInstance(e,n){if(Lt.has(n)){const r=wr(n);return r&&r.default||0}return n=to.has(n)?n:ar(n),e.getAttribute(n)}measureInstanceViewportBox(){return _()}scrapeMotionValuesFromProps(e,n){return no(e,n)}build(e,n,r,i){dr(e,n,r,this.isSVGTag,i.transformTemplate)}renderInstance(e,n,r,i){eo(e,n,r,i)}mount(e){this.isSVGTag=pr(e.tagName),super.mount(e)}}const ed=(t,e)=>ur(t)?new td(e,{enableHardwareAcceleration:!1}):new Qh(e,{enableHardwareAcceleration:!0}),nd={layout:{ProjectionNode:na,MeasureLayout:Ko}},rd={...Of,...Xc,...Lh,...nd},aa=nc((t,e)=>Dc(t,e,rd,ed));function id(t){const{children:e,parentRef:n,onlyChild:r}=t,[i,o]=p.reactExports.useState({top:0,left:0});return p.reactExports.useLayoutEffect(()=>{if(n.current){const s=n.current.getBoundingClientRect();o({top:s.top,left:s.left+s.width})}},[n]),r?e:p.reactDomExports.createPortal(p.jsxRuntimeExports.jsx(aa.div,{style:{position:"fixed",top:i.top,left:i.left,zIndex:1200},children:e}),n.current)}function sd(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 od(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,o;for(o=0;o<r.length;o++)i=r[o],!(e.indexOf(i)>=0)&&(n[i]=t[i]);return n}function Xe(){return Xe=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},Xe.apply(this,arguments)}function Zn(t,e){return Zn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Zn(t,e)}function ad(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,Zn(t,e)}function kn(t,e,n){if(n||arguments.length===2)for(var r=0,i=e.length,o;r<i;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
29
  * content-type
30
30
  * Copyright(c) 2015 Douglas Christopher Wilson
31
31
  * MIT Licensed
32
- */var Zi=/; *([!#$%&'*+.^_`|~0-9A-Za-z-]+) *= *("(?:[\u000b\u0020\u0021\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\u000b\u0020-\u00ff])*"|[!#$%&'*+.^_`|~0-9A-Za-z-]+) */g,ld=/\\([\u000b\u0020-\u00ff])/g,cd=/^[!#$%&'*+.^_`|~0-9A-Za-z-]+\/[!#$%&'*+.^_`|~0-9A-Za-z-]+$/,ud=fd;function fd(t){if(!t)throw new TypeError("argument string is required");var e=typeof t=="object"?hd(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(!cd.test(r))throw new TypeError("invalid media type");var i=new dd(r.toLowerCase());if(n!==-1){var o,s,a;for(Zi.lastIndex=n;s=Zi.exec(e);){if(s.index!==n)throw new TypeError("invalid parameter format");n+=s[0].length,o=s[1].toLowerCase(),a=s[2],a.charCodeAt(0)===34&&(a=a.slice(1,-1),a.indexOf("\\")!==-1&&(a=a.replace(ld,"$1"))),i.parameters[o]=a}if(n!==e.length)throw new TypeError("invalid parameter format")}return i}function hd(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 dd(t){this.parameters=Object.create(null),this.type=t}var Ut=new Map,la=function(e){return e.cloneNode(!0)},Qi=function(){return window.location.protocol==="file:"},ca=function(e,n,r){var i=new XMLHttpRequest;i.onreadystatechange=function(){try{if(!/\.svg/i.test(e)&&i.readyState===2){var o=i.getResponseHeader("Content-Type");if(!o)throw new Error("Content type not found");var s=ud(o).type;if(!(s==="image/svg+xml"||s==="text/plain"))throw new Error("Invalid content type: ".concat(s))}if(i.readyState===4){if(i.status===404||i.responseXML===null)throw new Error(Qi()?"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(i.status===200||Qi()&&i.status===0)r(null,i);else throw new Error("There was a problem injecting the SVG: "+i.status+" "+i.statusText)}}catch(a){if(i.abort(),a instanceof Error)r(a,i);else throw a}},i.open("GET",e),i.withCredentials=n,i.overrideMimeType&&i.overrideMimeType("text/xml"),i.send()},wt={},ts=function(e,n){wt[e]=wt[e]||[],wt[e].push(n)},pd=function(e){for(var n=function(s,a){setTimeout(function(){if(Array.isArray(wt[e])){var l=Ut.get(e),u=wt[e][s];l instanceof SVGSVGElement&&u(null,la(l)),l instanceof Error&&u(l),s===wt[e].length-1&&delete wt[e]}},0)},r=0,i=wt[e].length;r<i;r++)n(r)},md=function(e,n,r){if(Ut.has(e)){var i=Ut.get(e);if(i===void 0){ts(e,r);return}if(i instanceof SVGSVGElement){r(null,la(i));return}}Ut.set(e,void 0),ts(e,r),ca(e,n,function(o,s){var a;o?Ut.set(e,o):((a=s.responseXML)===null||a===void 0?void 0:a.documentElement)instanceof SVGSVGElement&&Ut.set(e,s.responseXML.documentElement),pd(e)})},gd=function(e,n,r){ca(e,n,function(i,o){var s;i?r(i):((s=o.responseXML)===null||s===void 0?void 0:s.documentElement)instanceof SVGSVGElement&&r(null,o.responseXML.documentElement)})},yd=0,vd=function(){return++yd},rt=[],es={},xd="http://www.w3.org/2000/svg",Mn="http://www.w3.org/1999/xlink",ns=function(e,n,r,i,o,s,a){var l=e.getAttribute("data-src")||e.getAttribute("src");if(!l){a(new Error("Invalid data-src or src attribute"));return}if(rt.indexOf(e)!==-1){rt.splice(rt.indexOf(e),1),e=null;return}rt.push(e),e.setAttribute("src","");var u=i?md:gd;u(l,o,function(f,c){if(!c){rt.splice(rt.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(kn(kn(kn([],(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(W){return/^data-\w[\w-]*$/.test(W.name)});if(Array.prototype.forEach.call(w,function(W){W.name&&W.value&&c.setAttribute(W.name,W.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,T,S,A,P;Object.keys(v).forEach(function(W){E=W,S=v[W],T=c.querySelectorAll(E+"[id]");for(var pt=function(Nt,pn){A=T[Nt].id,P=A+"-"+vd();var Ct;Array.prototype.forEach.call(S,function(mn){Ct=c.querySelectorAll("["+mn+'*="'+A+'"]');for(var Ee=0,_a=Ct.length;Ee<_a;Ee++){var _r=Ct[Ee].getAttribute(mn);_r&&!_r.match(new RegExp('url\\("?#'+A+'"?\\)'))||Ct[Ee].setAttribute(mn,"url(#"+P+")")}});for(var lt=c.querySelectorAll("[*|href]"),Bt=[],It=0,Qt=lt.length;It<Qt;It++){var Rt=lt[It].getAttributeNS(Mn,"href");Rt&&Rt.toString()==="#"+T[Nt].id&&Bt.push(lt[It])}for(var Q=0,Dr=Bt.length;Q<Dr;Q++)Bt[Q].setAttributeNS(Mn,"href","#"+P);T[Nt].id=P},_t=0,V=T.length;_t<V;_t++)pt(_t)})}c.removeAttribute("xmlns:a");for(var R=c.querySelectorAll("script"),D=[],U,N,z=0,I=R.length;z<I;z++)N=R[z].getAttribute("type"),(!N||N==="application/ecmascript"||N==="application/javascript"||N==="text/javascript")&&(U=R[z].innerText||R[z].textContent,U&&D.push(U),c.removeChild(R[z]));if(D.length>0&&(n==="always"||n==="once"&&!es[l])){for(var et=0,B=D.length;et<B;et++)new Function(D[et])(window);es[l]=!0}var nt=c.querySelectorAll("style");if(Array.prototype.forEach.call(nt,function(W){W.textContent+=""}),c.setAttribute("xmlns",xd),c.setAttribute("xmlns:xlink",Mn),s(c),!e.parentNode){rt.splice(rt.indexOf(e),1),e=null,a(new Error("Parent node is null"));return}e.parentNode.replaceChild(c,e),rt.splice(rt.indexOf(e),1),e=null,a(null,c)})},bd=function(e,n){var r=n===void 0?{}:n,i=r.afterAll,o=i===void 0?function(){}:i,s=r.afterEach,a=s===void 0?function(){}:s,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++)ns(e[v],d,b,c,g,u,function(T,S){a(T,S),e&&"length"in e&&e.length===++w&&o(w)});else e?ns(e,d,b,c,g,u,function(T,S){a(T,S),o(1),e=null}):o(0)},wd=function(e){var n=(e==null?void 0:e.ownerDocument)||document;return n.defaultView||window},Ed=function(e,n){for(var r in e)if(!(r in n))return!0;for(var i in n)if(e[i]!==n[i])return!0;return!1},Sd=["afterInjection","beforeInjection","desc","evalScripts","fallback","httpRequestWithCredentials","loading","renumerateIRIElements","src","title","useRequestCache","wrapper"],Re="http://www.w3.org/2000/svg",rs="http://www.w3.org/1999/xlink",Cr=function(t){ad(e,t);function e(){for(var r,i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];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 i=this;if(this.reactWrapper instanceof wd(this.reactWrapper).Node){var o=this.props,s=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(Re,y),b.setAttribute("xmlns",Re),b.setAttribute("xmlns:xlink",rs),w=document.createElementNS(Re,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(A){if(i.removeSVG(),!i._isMounted){d(A);return}i.setState(function(){return{hasError:!0,isLoading:!1}},function(){d(A)})},E=function(A,P){if(A){v(A);return}i._isMounted&&i.setState(function(){return{isLoading:!1}},function(){try{g(P)}catch(R){v(R)}})},T=function(A){if(A.setAttribute("role","img"),s){var P=A.querySelector(":scope > desc");P&&A.removeChild(P);var R=document.createElement("desc");R.innerHTML=s,A.prepend(R)}if(c){var D=A.querySelector(":scope > title");D&&A.removeChild(D);var U=document.createElement("title");U.innerHTML=c,A.prepend(U)}try{m(A)}catch(N){v(N)}};bd(w,{afterEach:E,beforeEach:T,cacheRequests:h,evalScripts:a,httpRequestWithCredentials:l,renumerateIRIElements:u})}},n.removeSVG=function(){var i;(i=this.nonReactWrapper)!=null&&i.parentNode&&(this.nonReactWrapper.parentNode.removeChild(this.nonReactWrapper),this.nonReactWrapper=null)},n.componentDidMount=function(){this._isMounted=!0,this.renderSVG()},n.componentDidUpdate=function(i){var o=this;Ed(Xe({},i),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 i=this.props;i.afterInjection,i.beforeInjection,i.desc,i.evalScripts;var o=i.fallback;i.httpRequestWithCredentials;var s=i.loading;i.renumerateIRIElements,i.src,i.title,i.useRequestCache;var a=i.wrapper,l=od(i,Sd),u=a;return p.reactExports.createElement(u,Xe({},l,{ref:this.refCallback},a==="svg"?{xmlns:Re,xmlnsXlink:rs}:{}),this.state.isLoading&&s&&p.reactExports.createElement(s,null),this.state.hasError&&o&&p.reactExports.createElement(o,null))},e}(p.reactExports.Component);Cr.defaultProps={afterInjection:function(){},beforeInjection:function(){},desc:"",evalScripts:"never",fallback:null,httpRequestWithCredentials:!1,loading:null,onError:function(){},renumerateIRIElements:!0,title:"",useRequestCache:!0,wrapper:"div"};Cr.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 ua({item:t,level:e=0,...n}){var T;const{isActive:r,isCollapsed:i,expanded:o,toggleExpand:s}=n,a=`level-${e}`,l=i?"collapsed":"expanded",u=r(t.id)?"active":"",f=(S,A=a)=>`${S} ${A} ${l} ${u}`,c=!!((T=t.children)!=null&&T.length),[h,d]=p.reactExports.useState(!1),m=p.reactExports.useRef();function g(S){var D;const{level:A,hovered:P,parentRef:R}=S;return!c||i&&A>=2&&!P?null:p.jsxRuntimeExports.jsx(id,{parentRef:R,onlyChild:!i||i&&A<2,children:p.jsxRuntimeExports.jsx(aa.div,{className:f("menu-item__dropdown",`level-${A}`),initial:{height:i?"auto":0},animate:{height:i||o(t.id)?"auto":0},transition:{duration:.2},children:(D=t.children)==null?void 0:D.map(U=>p.reactExports.createElement(ua,{...n,key:U.id,item:U,level:A}))},+i)})}const y=c?"#":t.path||"#",b=window.location.pathname.split("/")[1],w=y.split("/")[1],v=b!==w&&y!=="#"?window.location.origin+y:y,E=c?"div":v.includes("https")?"a":ll;return p.jsxRuntimeExports.jsxs("div",{ref:m,className:f("menu-item__wrapper"),onMouseEnter:()=>i&&d(!0),onMouseLeave:()=>i&&d(!1),children:[p.jsxRuntimeExports.jsxs(E,{...E==="a"?{href:v}:E==="div"?{}:{to:v},style:{paddingLeft:`${i?"0.5rem":`${e*1}rem`}`},className:f("menu-item__link"),onClick:S=>{c&&(S.preventDefault(),i||s(t.id))},children:[e!==0&&p.jsxRuntimeExports.jsx(Td,{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(sd,{className:f(`menu-item__icon-arrow__icon ${o(t.id)?"open":"close"}`)})})]}),g({level:e+1,hovered:h,parentRef:m})]},t.id)}function Td({item:t,cls:e}){var s,a;const[n,r]=p.reactExports.useState(!1),i=()=>{r(!0)},o=(s=t.icon)==null?void 0:s.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(Cr,{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:i})})}function is(t){for(;t.startsWith("/");)t=t.slice(1);return t}function fa(t,e,n=[]){for(const r of t){if(console.log(r.path,e,r.path===e),is(r.path||"")===is(e))return[...n,r];if(r.children){const i=fa(r.children,e,[...n,r]);if(i)return i}}return null}function Ad(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 ha(t,e){return function(){return t.apply(e,arguments)}}const{toString:Pd}=Object.prototype,{getPrototypeOf:Rr}=Object,cn=(t=>e=>{const n=Pd.call(e);return t[n]||(t[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),at=t=>(t=t.toLowerCase(),e=>cn(e)===t),un=t=>e=>typeof e===t,{isArray:Zt}=Array,me=un("undefined");function Cd(t){return t!==null&&!me(t)&&t.constructor!==null&&!me(t.constructor)&&Z(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const da=at("ArrayBuffer");function Rd(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&da(t.buffer),e}const Od=un("string"),Z=un("function"),pa=un("number"),fn=t=>t!==null&&typeof t=="object",Vd=t=>t===!0||t===!1,je=t=>{if(cn(t)!=="object")return!1;const e=Rr(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},kd=at("Date"),Md=at("File"),jd=at("Blob"),Ld=at("FileList"),Dd=t=>fn(t)&&Z(t.pipe),_d=t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||Z(t.append)&&((e=cn(t))==="formdata"||e==="object"&&Z(t.toString)&&t.toString()==="[object FormData]"))},Fd=at("URLSearchParams"),Nd=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function be(t,e,{allOwnKeys:n=!1}={}){if(t===null||typeof t>"u")return;let r,i;if(typeof t!="object"&&(t=[t]),Zt(t))for(r=0,i=t.length;r<i;r++)e.call(null,t[r],r,t);else{const o=n?Object.getOwnPropertyNames(t):Object.keys(t),s=o.length;let a;for(r=0;r<s;r++)a=o[r],e.call(null,t[a],a,t)}}function ma(t,e){e=e.toLowerCase();const n=Object.keys(t);let r=n.length,i;for(;r-- >0;)if(i=n[r],e===i.toLowerCase())return i;return null}const ga=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),ya=t=>!me(t)&&t!==ga;function Qn(){const{caseless:t}=ya(this)&&this||{},e={},n=(r,i)=>{const o=t&&ma(e,i)||i;je(e[o])&&je(r)?e[o]=Qn(e[o],r):je(r)?e[o]=Qn({},r):Zt(r)?e[o]=r.slice():e[o]=r};for(let r=0,i=arguments.length;r<i;r++)arguments[r]&&be(arguments[r],n);return e}const Bd=(t,e,n,{allOwnKeys:r}={})=>(be(e,(i,o)=>{n&&Z(i)?t[o]=ha(i,n):t[o]=i},{allOwnKeys:r}),t),Id=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),Wd=(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)},Ud=(t,e,n,r)=>{let i,o,s;const a={};if(e=e||{},t==null)return e;do{for(i=Object.getOwnPropertyNames(t),o=i.length;o-- >0;)s=i[o],(!r||r(s,t,e))&&!a[s]&&(e[s]=t[s],a[s]=!0);t=n!==!1&&Rr(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},zd=(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},Hd=t=>{if(!t)return null;if(Zt(t))return t;let e=t.length;if(!pa(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},$d=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&Rr(Uint8Array)),qd=(t,e)=>{const r=(t&&t[Symbol.iterator]).call(t);let i;for(;(i=r.next())&&!i.done;){const o=i.value;e.call(t,o[0],o[1])}},Gd=(t,e)=>{let n;const r=[];for(;(n=t.exec(e))!==null;)r.push(n);return r},Xd=at("HTMLFormElement"),Kd=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),ss=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),Yd=at("RegExp"),va=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),r={};be(n,(i,o)=>{let s;(s=e(i,o,t))!==!1&&(r[o]=s||i)}),Object.defineProperties(t,r)},Jd=t=>{va(t,(e,n)=>{if(Z(t)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=t[n];if(Z(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+"'")})}})},Zd=(t,e)=>{const n={},r=i=>{i.forEach(o=>{n[o]=!0})};return Zt(t)?r(t):r(String(t).split(e)),n},Qd=()=>{},tp=(t,e)=>(t=+t,Number.isFinite(t)?t:e),jn="abcdefghijklmnopqrstuvwxyz",os="0123456789",xa={DIGIT:os,ALPHA:jn,ALPHA_DIGIT:jn+jn.toUpperCase()+os},ep=(t=16,e=xa.ALPHA_DIGIT)=>{let n="";const{length:r}=e;for(;t--;)n+=e[Math.random()*r|0];return n};function np(t){return!!(t&&Z(t.append)&&t[Symbol.toStringTag]==="FormData"&&t[Symbol.iterator])}const rp=t=>{const e=new Array(10),n=(r,i)=>{if(fn(r)){if(e.indexOf(r)>=0)return;if(!("toJSON"in r)){e[i]=r;const o=Zt(r)?[]:{};return be(r,(s,a)=>{const l=n(s,i+1);!me(l)&&(o[a]=l)}),e[i]=void 0,o}}return r};return n(t,0)},ip=at("AsyncFunction"),sp=t=>t&&(fn(t)||Z(t))&&Z(t.then)&&Z(t.catch),x={isArray:Zt,isArrayBuffer:da,isBuffer:Cd,isFormData:_d,isArrayBufferView:Rd,isString:Od,isNumber:pa,isBoolean:Vd,isObject:fn,isPlainObject:je,isUndefined:me,isDate:kd,isFile:Md,isBlob:jd,isRegExp:Yd,isFunction:Z,isStream:Dd,isURLSearchParams:Fd,isTypedArray:$d,isFileList:Ld,forEach:be,merge:Qn,extend:Bd,trim:Nd,stripBOM:Id,inherits:Wd,toFlatObject:Ud,kindOf:cn,kindOfTest:at,endsWith:zd,toArray:Hd,forEachEntry:qd,matchAll:Gd,isHTMLForm:Xd,hasOwnProperty:ss,hasOwnProp:ss,reduceDescriptors:va,freezeMethods:Jd,toObjectSet:Zd,toCamelCase:Kd,noop:Qd,toFiniteNumber:tp,findKey:ma,global:ga,isContextDefined:ya,ALPHABET:xa,generateString:ep,isSpecCompliantForm:np,toJSONObject:rp,isAsyncFn:ip,isThenable:sp};function O(t,e,n,r,i){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),i&&(this.response=i)}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 ba=O.prototype,wa={};["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=>{wa[t]={value:t}});Object.defineProperties(O,wa);Object.defineProperty(ba,"isAxiosError",{value:!0});O.from=(t,e,n,r,i,o)=>{const s=Object.create(ba);return x.toFlatObject(t,s,function(l){return l!==Error.prototype},a=>a!=="isAxiosError"),O.call(s,t.message,e,n,r,i),s.cause=t,s.name=t.name,o&&Object.assign(s,o),s};const op=null;function tr(t){return x.isPlainObject(t)||x.isArray(t)}function Ea(t){return x.endsWith(t,"[]")?t.slice(0,-2):t}function as(t,e,n){return t?t.concat(e).map(function(i,o){return i=Ea(i),!n&&o?"["+i+"]":i}).join(n?".":""):e}function ap(t){return x.isArray(t)&&!t.some(tr)}const lp=x.toFlatObject(x,{},null,function(e){return/^is[A-Z]/.test(e)});function hn(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,i=n.visitor||f,o=n.dots,s=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&x.isSpecCompliantForm(e);if(!x.isFunction(i))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)&&ap(m)||(x.isFileList(m)||x.endsWith(g,"[]"))&&(b=x.toArray(m)))return g=Ea(g),b.forEach(function(v,E){!(x.isUndefined(v)||v===null)&&e.append(s===!0?as([g],E,o):s===null?g:g+"[]",u(v))}),!1}return tr(m)?!0:(e.append(as(y,g,o),u(m)),!1)}const c=[],h=Object.assign(lp,{defaultVisitor:f,convertValue:u,isVisitable:tr});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)&&i.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 ls(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(r){return e[r]})}function Or(t,e){this._pairs=[],t&&hn(t,this,e)}const Sa=Or.prototype;Sa.append=function(e,n){this._pairs.push([e,n])};Sa.toString=function(e){const n=e?function(r){return e.call(this,r,ls)}:ls;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function cp(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Ta(t,e,n){if(!e)return t;const r=n&&n.encode||cp,i=n&&n.serialize;let o;if(i?o=i(e,n):o=x.isURLSearchParams(e)?e.toString():new Or(e,n).toString(r),o){const s=t.indexOf("#");s!==-1&&(t=t.slice(0,s)),t+=(t.indexOf("?")===-1?"?":"&")+o}return t}class up{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 cs=up,Aa={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},fp=typeof URLSearchParams<"u"?URLSearchParams:Or,hp=typeof FormData<"u"?FormData:null,dp=typeof Blob<"u"?Blob:null,pp={isBrowser:!0,classes:{URLSearchParams:fp,FormData:hp,Blob:dp},protocols:["http","https","file","blob","url","data"]},Pa=typeof window<"u"&&typeof document<"u",mp=(t=>Pa&&["ReactNative","NativeScript","NS"].indexOf(t)<0)(typeof navigator<"u"&&navigator.product),gp=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),yp=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Pa,hasStandardBrowserEnv:mp,hasStandardBrowserWebWorkerEnv:gp},Symbol.toStringTag,{value:"Module"})),st={...yp,...pp};function vp(t,e){return hn(t,new st.classes.URLSearchParams,Object.assign({visitor:function(n,r,i,o){return st.isNode&&x.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},e))}function xp(t){return x.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function bp(t){const e={},n=Object.keys(t);let r;const i=n.length;let o;for(r=0;r<i;r++)o=n[r],e[o]=t[o];return e}function Ca(t){function e(n,r,i,o){let s=n[o++];if(s==="__proto__")return!0;const a=Number.isFinite(+s),l=o>=n.length;return s=!s&&x.isArray(i)?i.length:s,l?(x.hasOwnProp(i,s)?i[s]=[i[s],r]:i[s]=r,!a):((!i[s]||!x.isObject(i[s]))&&(i[s]=[]),e(n,r,i[s],o)&&x.isArray(i[s])&&(i[s]=bp(i[s])),!a)}if(x.isFormData(t)&&x.isFunction(t.entries)){const n={};return x.forEachEntry(t,(r,i)=>{e(xp(r),i,n,0)}),n}return null}function wp(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 Vr={transitional:Aa,adapter:["xhr","http"],transformRequest:[function(e,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,o=x.isObject(e);if(o&&x.isHTMLForm(e)&&(e=new FormData(e)),x.isFormData(e))return i&&i?JSON.stringify(Ca(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 vp(e,this.formSerializer).toString();if((a=x.isFileList(e))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return hn(a?{"files[]":e}:e,l&&new l,this.formSerializer)}}return o||i?(n.setContentType("application/json",!1),wp(e)):e}],transformResponse:[function(e){const n=this.transitional||Vr.transitional,r=n&&n.forcedJSONParsing,i=this.responseType==="json";if(e&&x.isString(e)&&(r&&!this.responseType||i)){const s=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(e)}catch(a){if(s)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:st.classes.FormData,Blob:st.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=>{Vr.headers[t]={}});const kr=Vr,Ep=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"]),Sp=t=>{const e={};let n,r,i;return t&&t.split(`
33
- `).forEach(function(s){i=s.indexOf(":"),n=s.substring(0,i).trim().toLowerCase(),r=s.substring(i+1).trim(),!(!n||e[n]&&Ep[n])&&(n==="set-cookie"?e[n]?e[n].push(r):e[n]=[r]:e[n]=e[n]?e[n]+", "+r:r)}),e},us=Symbol("internals");function re(t){return t&&String(t).trim().toLowerCase()}function Le(t){return t===!1||t==null?t:x.isArray(t)?t.map(Le):String(t)}function Tp(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 Ap=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function Ln(t,e,n,r,i){if(x.isFunction(r))return r.call(this,e,n);if(i&&(e=n),!!x.isString(e)){if(x.isString(r))return e.indexOf(r)!==-1;if(x.isRegExp(r))return r.test(e)}}function Pp(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,n,r)=>n.toUpperCase()+r)}function Cp(t,e){const n=x.toCamelCase(" "+e);["get","set","has"].forEach(r=>{Object.defineProperty(t,r+n,{value:function(i,o,s){return this[r].call(this,e,i,o,s)},configurable:!0})})}class dn{constructor(e){e&&this.set(e)}set(e,n,r){const i=this;function o(a,l,u){const f=re(l);if(!f)throw new Error("header name must be a non-empty string");const c=x.findKey(i,f);(!c||i[c]===void 0||u===!0||u===void 0&&i[c]!==!1)&&(i[c||l]=Le(a))}const s=(a,l)=>x.forEach(a,(u,f)=>o(u,f,l));return x.isPlainObject(e)||e instanceof this.constructor?s(e,n):x.isString(e)&&(e=e.trim())&&!Ap(e)?s(Sp(e),n):e!=null&&o(n,e,r),this}get(e,n){if(e=re(e),e){const r=x.findKey(this,e);if(r){const i=this[r];if(!n)return i;if(n===!0)return Tp(i);if(x.isFunction(n))return n.call(this,i,r);if(x.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,n){if(e=re(e),e){const r=x.findKey(this,e);return!!(r&&this[r]!==void 0&&(!n||Ln(this,this[r],r,n)))}return!1}delete(e,n){const r=this;let i=!1;function o(s){if(s=re(s),s){const a=x.findKey(r,s);a&&(!n||Ln(r,r[a],a,n))&&(delete r[a],i=!0)}}return x.isArray(e)?e.forEach(o):o(e),i}clear(e){const n=Object.keys(this);let r=n.length,i=!1;for(;r--;){const o=n[r];(!e||Ln(this,this[o],o,e,!0))&&(delete this[o],i=!0)}return i}normalize(e){const n=this,r={};return x.forEach(this,(i,o)=>{const s=x.findKey(r,o);if(s){n[s]=Le(i),delete n[o];return}const a=e?Pp(o):String(o).trim();a!==o&&delete n[o],n[a]=Le(i),r[a]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const n=Object.create(null);return x.forEach(this,(r,i)=>{r!=null&&r!==!1&&(n[i]=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(i=>r.set(i)),r}static accessor(e){const r=(this[us]=this[us]={accessors:{}}).accessors,i=this.prototype;function o(s){const a=re(s);r[a]||(Cp(i,s),r[a]=!0)}return x.isArray(e)?e.forEach(o):o(e),this}}dn.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);x.reduceDescriptors(dn.prototype,({value:t},e)=>{let n=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(r){this[n]=r}}});x.freezeMethods(dn);const ht=dn;function Dn(t,e){const n=this||kr,r=e||n,i=ht.from(r.headers);let o=r.data;return x.forEach(t,function(a){o=a.call(n,o,i.normalize(),e?e.status:void 0)}),i.normalize(),o}function Ra(t){return!!(t&&t.__CANCEL__)}function we(t,e,n){O.call(this,t??"canceled",O.ERR_CANCELED,e,n),this.name="CanceledError"}x.inherits(we,O,{__CANCEL__:!0});function Rp(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 Op=st.hasStandardBrowserEnv?{write(t,e,n,r,i,o){const s=[t+"="+encodeURIComponent(e)];x.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),x.isString(r)&&s.push("path="+r),x.isString(i)&&s.push("domain="+i),o===!0&&s.push("secure"),document.cookie=s.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 Vp(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function kp(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}function Oa(t,e){return t&&!Vp(e)?kp(t,e):e}const Mp=st.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function i(o){let s=o;return e&&(n.setAttribute("href",s),s=n.href),n.setAttribute("href",s),{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=i(window.location.href),function(s){const a=x.isString(s)?i(s):s;return a.protocol===r.protocol&&a.host===r.host}}():function(){return function(){return!0}}();function jp(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function Lp(t,e){t=t||10;const n=new Array(t),r=new Array(t);let i=0,o=0,s;return e=e!==void 0?e:1e3,function(l){const u=Date.now(),f=r[o];s||(s=u),n[i]=l,r[i]=u;let c=o,h=0;for(;c!==i;)h+=n[c++],c=c%t;if(i=(i+1)%t,i===o&&(o=(o+1)%t),u-s<e)return;const d=f&&u-f;return d?Math.round(h*1e3/d):void 0}}function fs(t,e){let n=0;const r=Lp(50,250);return i=>{const o=i.loaded,s=i.lengthComputable?i.total:void 0,a=o-n,l=r(a),u=o<=s;n=o;const f={loaded:o,total:s,progress:s?o/s:void 0,bytes:a,rate:l||void 0,estimated:l&&s&&u?(s-o)/l:void 0,event:i};f[e?"download":"upload"]=!0,t(f)}}const Dp=typeof XMLHttpRequest<"u",_p=Dp&&function(t){return new Promise(function(n,r){let i=t.data;const o=ht.from(t.headers).normalize();let{responseType:s,withXSRFToken:a}=t,l;function u(){t.cancelToken&&t.cancelToken.unsubscribe(l),t.signal&&t.signal.removeEventListener("abort",l)}let f;if(x.isFormData(i)){if(st.hasStandardBrowserEnv||st.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=Oa(t.baseURL,t.url);c.open(t.method.toUpperCase(),Ta(h,t.params,t.paramsSerializer),!0),c.timeout=t.timeout;function d(){if(!c)return;const g=ht.from("getAllResponseHeaders"in c&&c.getAllResponseHeaders()),b={data:!s||s==="text"||s==="json"?c.responseText:c.response,status:c.status,statusText:c.statusText,headers:g,config:t,request:c};Rp(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||Aa;t.timeoutErrorMessage&&(y=t.timeoutErrorMessage),r(new O(y,b.clarifyTimeoutError?O.ETIMEDOUT:O.ECONNABORTED,t,c)),c=null},st.hasStandardBrowserEnv&&(a&&x.isFunction(a)&&(a=a(t)),a||a!==!1&&Mp(h))){const g=t.xsrfHeaderName&&t.xsrfCookieName&&Op.read(t.xsrfCookieName);g&&o.set(t.xsrfHeaderName,g)}i===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),s&&s!=="json"&&(c.responseType=t.responseType),typeof t.onDownloadProgress=="function"&&c.addEventListener("progress",fs(t.onDownloadProgress,!0)),typeof t.onUploadProgress=="function"&&c.upload&&c.upload.addEventListener("progress",fs(t.onUploadProgress)),(t.cancelToken||t.signal)&&(l=g=>{c&&(r(!g||g.type?new we(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=jp(h);if(m&&st.protocols.indexOf(m)===-1){r(new O("Unsupported protocol "+m+":",O.ERR_BAD_REQUEST,t));return}c.send(i||null)})},er={http:op,xhr:_p};x.forEach(er,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch{}Object.defineProperty(t,"adapterName",{value:e})}});const hs=t=>`- ${t}`,Fp=t=>x.isFunction(t)||t===null||t===!1,Va={getAdapter:t=>{t=x.isArray(t)?t:[t];const{length:e}=t;let n,r;const i={};for(let o=0;o<e;o++){n=t[o];let s;if(r=n,!Fp(n)&&(r=er[(s=String(n)).toLowerCase()],r===void 0))throw new O(`Unknown adapter '${s}'`);if(r)break;i[s||"#"+o]=r}if(!r){const o=Object.entries(i).map(([a,l])=>`adapter ${a} `+(l===!1?"is not supported by the environment":"is not available in the build"));let s=e?o.length>1?`since :
32
+ */var Zi=/; *([!#$%&'*+.^_`|~0-9A-Za-z-]+) *= *("(?:[\u000b\u0020\u0021\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\u000b\u0020-\u00ff])*"|[!#$%&'*+.^_`|~0-9A-Za-z-]+) */g,ld=/\\([\u000b\u0020-\u00ff])/g,cd=/^[!#$%&'*+.^_`|~0-9A-Za-z-]+\/[!#$%&'*+.^_`|~0-9A-Za-z-]+$/,ud=fd;function fd(t){if(!t)throw new TypeError("argument string is required");var e=typeof t=="object"?hd(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(!cd.test(r))throw new TypeError("invalid media type");var i=new dd(r.toLowerCase());if(n!==-1){var o,s,a;for(Zi.lastIndex=n;s=Zi.exec(e);){if(s.index!==n)throw new TypeError("invalid parameter format");n+=s[0].length,o=s[1].toLowerCase(),a=s[2],a.charCodeAt(0)===34&&(a=a.slice(1,-1),a.indexOf("\\")!==-1&&(a=a.replace(ld,"$1"))),i.parameters[o]=a}if(n!==e.length)throw new TypeError("invalid parameter format")}return i}function hd(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 dd(t){this.parameters=Object.create(null),this.type=t}var Ut=new Map,la=function(e){return e.cloneNode(!0)},Qi=function(){return window.location.protocol==="file:"},ca=function(e,n,r){var i=new XMLHttpRequest;i.onreadystatechange=function(){try{if(!/\.svg/i.test(e)&&i.readyState===2){var o=i.getResponseHeader("Content-Type");if(!o)throw new Error("Content type not found");var s=ud(o).type;if(!(s==="image/svg+xml"||s==="text/plain"))throw new Error("Invalid content type: ".concat(s))}if(i.readyState===4){if(i.status===404||i.responseXML===null)throw new Error(Qi()?"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(i.status===200||Qi()&&i.status===0)r(null,i);else throw new Error("There was a problem injecting the SVG: "+i.status+" "+i.statusText)}}catch(a){if(i.abort(),a instanceof Error)r(a,i);else throw a}},i.open("GET",e),i.withCredentials=n,i.overrideMimeType&&i.overrideMimeType("text/xml"),i.send()},wt={},ts=function(e,n){wt[e]=wt[e]||[],wt[e].push(n)},pd=function(e){for(var n=function(s,a){setTimeout(function(){if(Array.isArray(wt[e])){var l=Ut.get(e),c=wt[e][s];l instanceof SVGSVGElement&&c(null,la(l)),l instanceof Error&&c(l),s===wt[e].length-1&&delete wt[e]}},0)},r=0,i=wt[e].length;r<i;r++)n(r)},md=function(e,n,r){if(Ut.has(e)){var i=Ut.get(e);if(i===void 0){ts(e,r);return}if(i instanceof SVGSVGElement){r(null,la(i));return}}Ut.set(e,void 0),ts(e,r),ca(e,n,function(o,s){var a;o?Ut.set(e,o):((a=s.responseXML)===null||a===void 0?void 0:a.documentElement)instanceof SVGSVGElement&&Ut.set(e,s.responseXML.documentElement),pd(e)})},gd=function(e,n,r){ca(e,n,function(i,o){var s;i?r(i):((s=o.responseXML)===null||s===void 0?void 0:s.documentElement)instanceof SVGSVGElement&&r(null,o.responseXML.documentElement)})},yd=0,vd=function(){return++yd},rt=[],es={},xd="http://www.w3.org/2000/svg",Mn="http://www.w3.org/1999/xlink",ns=function(e,n,r,i,o,s,a){var l=e.getAttribute("data-src")||e.getAttribute("src");if(!l){a(new Error("Invalid data-src or src attribute"));return}if(rt.indexOf(e)!==-1){rt.splice(rt.indexOf(e),1),e=null;return}rt.push(e),e.setAttribute("src","");var c=i?md:gd;c(l,o,function(f,u){if(!u){rt.splice(rt.indexOf(e),1),e=null,a(f);return}var h=e.getAttribute("id");h&&u.setAttribute("id",h);var d=e.getAttribute("title");d&&u.setAttribute("title",d);var m=e.getAttribute("width");m&&u.setAttribute("width",m);var g=e.getAttribute("height");g&&u.setAttribute("height",g);var y=Array.from(new Set(kn(kn(kn([],(u.getAttribute("class")||"").split(" "),!0),["injected-svg"],!1),(e.getAttribute("class")||"").split(" "),!0))).join(" ").trim();u.setAttribute("class",y);var x=e.getAttribute("style");x&&u.setAttribute("style",x),u.setAttribute("data-src",l);var w=[].filter.call(e.attributes,function(W){return/^data-\w[\w-]*$/.test(W.name)});if(Array.prototype.forEach.call(w,function(W){W.name&&W.value&&u.setAttribute(W.name,W.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,A,P;Object.keys(v).forEach(function(W){E=W,T=v[W],S=u.querySelectorAll(E+"[id]");for(var pt=function(Nt,pn){A=S[Nt].id,P=A+"-"+vd();var Ct;Array.prototype.forEach.call(T,function(mn){Ct=u.querySelectorAll("["+mn+'*="'+A+'"]');for(var Ee=0,_a=Ct.length;Ee<_a;Ee++){var _r=Ct[Ee].getAttribute(mn);_r&&!_r.match(new RegExp('url\\("?#'+A+'"?\\)'))||Ct[Ee].setAttribute(mn,"url(#"+P+")")}});for(var lt=u.querySelectorAll("[*|href]"),Bt=[],It=0,Qt=lt.length;It<Qt;It++){var Rt=lt[It].getAttributeNS(Mn,"href");Rt&&Rt.toString()==="#"+S[Nt].id&&Bt.push(lt[It])}for(var Q=0,Dr=Bt.length;Q<Dr;Q++)Bt[Q].setAttributeNS(Mn,"href","#"+P);S[Nt].id=P},_t=0,V=S.length;_t<V;_t++)pt(_t)})}u.removeAttribute("xmlns:a");for(var R=u.querySelectorAll("script"),D=[],U,N,z=0,I=R.length;z<I;z++)N=R[z].getAttribute("type"),(!N||N==="application/ecmascript"||N==="application/javascript"||N==="text/javascript")&&(U=R[z].innerText||R[z].textContent,U&&D.push(U),u.removeChild(R[z]));if(D.length>0&&(n==="always"||n==="once"&&!es[l])){for(var et=0,B=D.length;et<B;et++)new Function(D[et])(window);es[l]=!0}var nt=u.querySelectorAll("style");if(Array.prototype.forEach.call(nt,function(W){W.textContent+=""}),u.setAttribute("xmlns",xd),u.setAttribute("xmlns:xlink",Mn),s(u),!e.parentNode){rt.splice(rt.indexOf(e),1),e=null,a(new Error("Parent node is null"));return}e.parentNode.replaceChild(u,e),rt.splice(rt.indexOf(e),1),e=null,a(null,u)})},bd=function(e,n){var r=n===void 0?{}:n,i=r.afterAll,o=i===void 0?function(){}:i,s=r.afterEach,a=s===void 0?function(){}:s,l=r.beforeEach,c=l===void 0?function(){}:l,f=r.cacheRequests,u=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,x=y===void 0?!0:y;if(e&&"length"in e)for(var w=0,v=0,E=e.length;v<E;v++)ns(e[v],d,x,u,g,c,function(S,T){a(S,T),e&&"length"in e&&e.length===++w&&o(w)});else e?ns(e,d,x,u,g,c,function(S,T){a(S,T),o(1),e=null}):o(0)},wd=function(e){var n=(e==null?void 0:e.ownerDocument)||document;return n.defaultView||window},Ed=function(e,n){for(var r in e)if(!(r in n))return!0;for(var i in n)if(e[i]!==n[i])return!0;return!1},Sd=["afterInjection","beforeInjection","desc","evalScripts","fallback","httpRequestWithCredentials","loading","renumerateIRIElements","src","title","useRequestCache","wrapper"],Re="http://www.w3.org/2000/svg",rs="http://www.w3.org/1999/xlink",Cr=function(t){ad(e,t);function e(){for(var r,i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];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 i=this;if(this.reactWrapper instanceof wd(this.reactWrapper).Node){var o=this.props,s=o.desc,a=o.evalScripts,l=o.httpRequestWithCredentials,c=o.renumerateIRIElements,f=o.src,u=o.title,h=o.useRequestCache,d=this.props.onError,m=this.props.beforeInjection,g=this.props.afterInjection,y=this.props.wrapper,x,w;y==="svg"?(x=document.createElementNS(Re,y),x.setAttribute("xmlns",Re),x.setAttribute("xmlns:xlink",rs),w=document.createElementNS(Re,y)):(x=document.createElement(y),w=document.createElement(y)),x.appendChild(w),w.dataset.src=f,this.nonReactWrapper=this.reactWrapper.appendChild(x);var v=function(A){if(i.removeSVG(),!i._isMounted){d(A);return}i.setState(function(){return{hasError:!0,isLoading:!1}},function(){d(A)})},E=function(A,P){if(A){v(A);return}i._isMounted&&i.setState(function(){return{isLoading:!1}},function(){try{g(P)}catch(R){v(R)}})},S=function(A){if(A.setAttribute("role","img"),s){var P=A.querySelector(":scope > desc");P&&A.removeChild(P);var R=document.createElement("desc");R.innerHTML=s,A.prepend(R)}if(u){var D=A.querySelector(":scope > title");D&&A.removeChild(D);var U=document.createElement("title");U.innerHTML=u,A.prepend(U)}try{m(A)}catch(N){v(N)}};bd(w,{afterEach:E,beforeEach:S,cacheRequests:h,evalScripts:a,httpRequestWithCredentials:l,renumerateIRIElements:c})}},n.removeSVG=function(){var i;(i=this.nonReactWrapper)!=null&&i.parentNode&&(this.nonReactWrapper.parentNode.removeChild(this.nonReactWrapper),this.nonReactWrapper=null)},n.componentDidMount=function(){this._isMounted=!0,this.renderSVG()},n.componentDidUpdate=function(i){var o=this;Ed(Xe({},i),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 i=this.props;i.afterInjection,i.beforeInjection,i.desc,i.evalScripts;var o=i.fallback;i.httpRequestWithCredentials;var s=i.loading;i.renumerateIRIElements,i.src,i.title,i.useRequestCache;var a=i.wrapper,l=od(i,Sd),c=a;return p.reactExports.createElement(c,Xe({},l,{ref:this.refCallback},a==="svg"?{xmlns:Re,xmlnsXlink:rs}:{}),this.state.isLoading&&s&&p.reactExports.createElement(s,null),this.state.hasError&&o&&p.reactExports.createElement(o,null))},e}(p.reactExports.Component);Cr.defaultProps={afterInjection:function(){},beforeInjection:function(){},desc:"",evalScripts:"never",fallback:null,httpRequestWithCredentials:!1,loading:null,onError:function(){},renumerateIRIElements:!0,title:"",useRequestCache:!0,wrapper:"div"};Cr.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 ua({item:t,level:e=0,...n}){var S;const{isActive:r,isCollapsed:i,expanded:o,toggleExpand:s}=n,a=`level-${e}`,l=i?"collapsed":"expanded",c=r(t.id)?"active":"",f=(T,A=a)=>`${T} ${A} ${l} ${c}`,u=!!((S=t.children)!=null&&S.length),[h,d]=p.reactExports.useState(!1),m=p.reactExports.useRef();function g(T){var D;const{level:A,hovered:P,parentRef:R}=T;return!u||i&&A>=2&&!P?null:p.jsxRuntimeExports.jsx(id,{parentRef:R,onlyChild:!i||i&&A<2,children:p.jsxRuntimeExports.jsx(aa.div,{className:f("menu-item__dropdown",`level-${A}`),initial:{height:i?"auto":0},animate:{height:i||o(t.id)?"auto":0},transition:{duration:.2},children:(D=t.children)==null?void 0:D.map(U=>p.reactExports.createElement(ua,{...n,key:U.id,item:U,level:A}))},+i)})}const y=u?"#":t.path||"#",x=window.location.pathname.split("/")[1],w=y.split("/")[1],v=x!==w&&y!=="#"?window.location.origin+y:y,E=u?"div":v.includes("https")?"a":ll;return p.jsxRuntimeExports.jsxs("div",{ref:m,className:f("menu-item__wrapper"),onMouseEnter:()=>i&&d(!0),onMouseLeave:()=>i&&d(!1),children:[p.jsxRuntimeExports.jsxs(E,{...E==="a"?{href:v}:E==="div"?{}:{to:v},style:{paddingLeft:`${i?"0.5rem":`${e*1}rem`}`},className:f("menu-item__link"),onClick:T=>{u&&(T.preventDefault(),i||s(t.id))},children:[e!==0&&p.jsxRuntimeExports.jsx(Td,{cls:f,item:t}),p.jsxRuntimeExports.jsx("span",{className:f("menu-item__label"),children:t.name}),u&&p.jsxRuntimeExports.jsx("div",{className:f("menu-item__icon-arrow__wrapper"),children:p.jsxRuntimeExports.jsx(sd,{className:f(`menu-item__icon-arrow__icon ${o(t.id)?"open":"close"}`)})})]}),g({level:e+1,hovered:h,parentRef:m})]},t.id)}function Td({item:t,cls:e}){var s,a;const[n,r]=p.reactExports.useState(!1),i=()=>{r(!0)},o=(s=t.icon)==null?void 0:s.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(Cr,{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:i})})}function is(t){for(;t.startsWith("/");)t=t.slice(1);return t}function fa(t,e,n=[]){for(const r of t){if(console.log(r.path,e,r.path===e),is(r.path||"")===is(e))return[...n,r];if(r.children){const i=fa(r.children,e,[...n,r]);if(i)return i}}return null}function Ad(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 ha(t,e){return function(){return t.apply(e,arguments)}}const{toString:Pd}=Object.prototype,{getPrototypeOf:Rr}=Object,cn=(t=>e=>{const n=Pd.call(e);return t[n]||(t[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),at=t=>(t=t.toLowerCase(),e=>cn(e)===t),un=t=>e=>typeof e===t,{isArray:Zt}=Array,me=un("undefined");function Cd(t){return t!==null&&!me(t)&&t.constructor!==null&&!me(t.constructor)&&Z(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const da=at("ArrayBuffer");function Rd(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&da(t.buffer),e}const Od=un("string"),Z=un("function"),pa=un("number"),fn=t=>t!==null&&typeof t=="object",Vd=t=>t===!0||t===!1,je=t=>{if(cn(t)!=="object")return!1;const e=Rr(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},kd=at("Date"),Md=at("File"),jd=at("Blob"),Ld=at("FileList"),Dd=t=>fn(t)&&Z(t.pipe),_d=t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||Z(t.append)&&((e=cn(t))==="formdata"||e==="object"&&Z(t.toString)&&t.toString()==="[object FormData]"))},Fd=at("URLSearchParams"),Nd=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function be(t,e,{allOwnKeys:n=!1}={}){if(t===null||typeof t>"u")return;let r,i;if(typeof t!="object"&&(t=[t]),Zt(t))for(r=0,i=t.length;r<i;r++)e.call(null,t[r],r,t);else{const o=n?Object.getOwnPropertyNames(t):Object.keys(t),s=o.length;let a;for(r=0;r<s;r++)a=o[r],e.call(null,t[a],a,t)}}function ma(t,e){e=e.toLowerCase();const n=Object.keys(t);let r=n.length,i;for(;r-- >0;)if(i=n[r],e===i.toLowerCase())return i;return null}const ga=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),ya=t=>!me(t)&&t!==ga;function Qn(){const{caseless:t}=ya(this)&&this||{},e={},n=(r,i)=>{const o=t&&ma(e,i)||i;je(e[o])&&je(r)?e[o]=Qn(e[o],r):je(r)?e[o]=Qn({},r):Zt(r)?e[o]=r.slice():e[o]=r};for(let r=0,i=arguments.length;r<i;r++)arguments[r]&&be(arguments[r],n);return e}const Bd=(t,e,n,{allOwnKeys:r}={})=>(be(e,(i,o)=>{n&&Z(i)?t[o]=ha(i,n):t[o]=i},{allOwnKeys:r}),t),Id=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),Wd=(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)},Ud=(t,e,n,r)=>{let i,o,s;const a={};if(e=e||{},t==null)return e;do{for(i=Object.getOwnPropertyNames(t),o=i.length;o-- >0;)s=i[o],(!r||r(s,t,e))&&!a[s]&&(e[s]=t[s],a[s]=!0);t=n!==!1&&Rr(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},zd=(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},Hd=t=>{if(!t)return null;if(Zt(t))return t;let e=t.length;if(!pa(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},$d=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&Rr(Uint8Array)),qd=(t,e)=>{const r=(t&&t[Symbol.iterator]).call(t);let i;for(;(i=r.next())&&!i.done;){const o=i.value;e.call(t,o[0],o[1])}},Gd=(t,e)=>{let n;const r=[];for(;(n=t.exec(e))!==null;)r.push(n);return r},Xd=at("HTMLFormElement"),Kd=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),ss=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),Yd=at("RegExp"),va=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),r={};be(n,(i,o)=>{let s;(s=e(i,o,t))!==!1&&(r[o]=s||i)}),Object.defineProperties(t,r)},Jd=t=>{va(t,(e,n)=>{if(Z(t)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=t[n];if(Z(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+"'")})}})},Zd=(t,e)=>{const n={},r=i=>{i.forEach(o=>{n[o]=!0})};return Zt(t)?r(t):r(String(t).split(e)),n},Qd=()=>{},tp=(t,e)=>(t=+t,Number.isFinite(t)?t:e),jn="abcdefghijklmnopqrstuvwxyz",os="0123456789",xa={DIGIT:os,ALPHA:jn,ALPHA_DIGIT:jn+jn.toUpperCase()+os},ep=(t=16,e=xa.ALPHA_DIGIT)=>{let n="";const{length:r}=e;for(;t--;)n+=e[Math.random()*r|0];return n};function np(t){return!!(t&&Z(t.append)&&t[Symbol.toStringTag]==="FormData"&&t[Symbol.iterator])}const rp=t=>{const e=new Array(10),n=(r,i)=>{if(fn(r)){if(e.indexOf(r)>=0)return;if(!("toJSON"in r)){e[i]=r;const o=Zt(r)?[]:{};return be(r,(s,a)=>{const l=n(s,i+1);!me(l)&&(o[a]=l)}),e[i]=void 0,o}}return r};return n(t,0)},ip=at("AsyncFunction"),sp=t=>t&&(fn(t)||Z(t))&&Z(t.then)&&Z(t.catch),b={isArray:Zt,isArrayBuffer:da,isBuffer:Cd,isFormData:_d,isArrayBufferView:Rd,isString:Od,isNumber:pa,isBoolean:Vd,isObject:fn,isPlainObject:je,isUndefined:me,isDate:kd,isFile:Md,isBlob:jd,isRegExp:Yd,isFunction:Z,isStream:Dd,isURLSearchParams:Fd,isTypedArray:$d,isFileList:Ld,forEach:be,merge:Qn,extend:Bd,trim:Nd,stripBOM:Id,inherits:Wd,toFlatObject:Ud,kindOf:cn,kindOfTest:at,endsWith:zd,toArray:Hd,forEachEntry:qd,matchAll:Gd,isHTMLForm:Xd,hasOwnProperty:ss,hasOwnProp:ss,reduceDescriptors:va,freezeMethods:Jd,toObjectSet:Zd,toCamelCase:Kd,noop:Qd,toFiniteNumber:tp,findKey:ma,global:ga,isContextDefined:ya,ALPHABET:xa,generateString:ep,isSpecCompliantForm:np,toJSONObject:rp,isAsyncFn:ip,isThenable:sp};function O(t,e,n,r,i){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),i&&(this.response=i)}b.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:b.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const ba=O.prototype,wa={};["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=>{wa[t]={value:t}});Object.defineProperties(O,wa);Object.defineProperty(ba,"isAxiosError",{value:!0});O.from=(t,e,n,r,i,o)=>{const s=Object.create(ba);return b.toFlatObject(t,s,function(l){return l!==Error.prototype},a=>a!=="isAxiosError"),O.call(s,t.message,e,n,r,i),s.cause=t,s.name=t.name,o&&Object.assign(s,o),s};const op=null;function tr(t){return b.isPlainObject(t)||b.isArray(t)}function Ea(t){return b.endsWith(t,"[]")?t.slice(0,-2):t}function as(t,e,n){return t?t.concat(e).map(function(i,o){return i=Ea(i),!n&&o?"["+i+"]":i}).join(n?".":""):e}function ap(t){return b.isArray(t)&&!t.some(tr)}const lp=b.toFlatObject(b,{},null,function(e){return/^is[A-Z]/.test(e)});function hn(t,e,n){if(!b.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,n=b.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(g,y){return!b.isUndefined(y[g])});const r=n.metaTokens,i=n.visitor||f,o=n.dots,s=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&b.isSpecCompliantForm(e);if(!b.isFunction(i))throw new TypeError("visitor must be a function");function c(m){if(m===null)return"";if(b.isDate(m))return m.toISOString();if(!l&&b.isBlob(m))throw new O("Blob is not supported. Use a Buffer instead.");return b.isArrayBuffer(m)||b.isTypedArray(m)?l&&typeof Blob=="function"?new Blob([m]):Buffer.from(m):m}function f(m,g,y){let x=m;if(m&&!y&&typeof m=="object"){if(b.endsWith(g,"{}"))g=r?g:g.slice(0,-2),m=JSON.stringify(m);else if(b.isArray(m)&&ap(m)||(b.isFileList(m)||b.endsWith(g,"[]"))&&(x=b.toArray(m)))return g=Ea(g),x.forEach(function(v,E){!(b.isUndefined(v)||v===null)&&e.append(s===!0?as([g],E,o):s===null?g:g+"[]",c(v))}),!1}return tr(m)?!0:(e.append(as(y,g,o),c(m)),!1)}const u=[],h=Object.assign(lp,{defaultVisitor:f,convertValue:c,isVisitable:tr});function d(m,g){if(!b.isUndefined(m)){if(u.indexOf(m)!==-1)throw Error("Circular reference detected in "+g.join("."));u.push(m),b.forEach(m,function(x,w){(!(b.isUndefined(x)||x===null)&&i.call(e,x,b.isString(w)?w.trim():w,g,h))===!0&&d(x,g?g.concat(w):[w])}),u.pop()}}if(!b.isObject(t))throw new TypeError("data must be an object");return d(t),e}function ls(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(r){return e[r]})}function Or(t,e){this._pairs=[],t&&hn(t,this,e)}const Sa=Or.prototype;Sa.append=function(e,n){this._pairs.push([e,n])};Sa.toString=function(e){const n=e?function(r){return e.call(this,r,ls)}:ls;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function cp(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Ta(t,e,n){if(!e)return t;const r=n&&n.encode||cp,i=n&&n.serialize;let o;if(i?o=i(e,n):o=b.isURLSearchParams(e)?e.toString():new Or(e,n).toString(r),o){const s=t.indexOf("#");s!==-1&&(t=t.slice(0,s)),t+=(t.indexOf("?")===-1?"?":"&")+o}return t}class up{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){b.forEach(this.handlers,function(r){r!==null&&e(r)})}}const cs=up,Aa={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},fp=typeof URLSearchParams<"u"?URLSearchParams:Or,hp=typeof FormData<"u"?FormData:null,dp=typeof Blob<"u"?Blob:null,pp={isBrowser:!0,classes:{URLSearchParams:fp,FormData:hp,Blob:dp},protocols:["http","https","file","blob","url","data"]},Pa=typeof window<"u"&&typeof document<"u",mp=(t=>Pa&&["ReactNative","NativeScript","NS"].indexOf(t)<0)(typeof navigator<"u"&&navigator.product),gp=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),yp=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Pa,hasStandardBrowserEnv:mp,hasStandardBrowserWebWorkerEnv:gp},Symbol.toStringTag,{value:"Module"})),st={...yp,...pp};function vp(t,e){return hn(t,new st.classes.URLSearchParams,Object.assign({visitor:function(n,r,i,o){return st.isNode&&b.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},e))}function xp(t){return b.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function bp(t){const e={},n=Object.keys(t);let r;const i=n.length;let o;for(r=0;r<i;r++)o=n[r],e[o]=t[o];return e}function Ca(t){function e(n,r,i,o){let s=n[o++];if(s==="__proto__")return!0;const a=Number.isFinite(+s),l=o>=n.length;return s=!s&&b.isArray(i)?i.length:s,l?(b.hasOwnProp(i,s)?i[s]=[i[s],r]:i[s]=r,!a):((!i[s]||!b.isObject(i[s]))&&(i[s]=[]),e(n,r,i[s],o)&&b.isArray(i[s])&&(i[s]=bp(i[s])),!a)}if(b.isFormData(t)&&b.isFunction(t.entries)){const n={};return b.forEachEntry(t,(r,i)=>{e(xp(r),i,n,0)}),n}return null}function wp(t,e,n){if(b.isString(t))try{return(e||JSON.parse)(t),b.trim(t)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(t)}const Vr={transitional:Aa,adapter:["xhr","http"],transformRequest:[function(e,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,o=b.isObject(e);if(o&&b.isHTMLForm(e)&&(e=new FormData(e)),b.isFormData(e))return i&&i?JSON.stringify(Ca(e)):e;if(b.isArrayBuffer(e)||b.isBuffer(e)||b.isStream(e)||b.isFile(e)||b.isBlob(e))return e;if(b.isArrayBufferView(e))return e.buffer;if(b.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 vp(e,this.formSerializer).toString();if((a=b.isFileList(e))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return hn(a?{"files[]":e}:e,l&&new l,this.formSerializer)}}return o||i?(n.setContentType("application/json",!1),wp(e)):e}],transformResponse:[function(e){const n=this.transitional||Vr.transitional,r=n&&n.forcedJSONParsing,i=this.responseType==="json";if(e&&b.isString(e)&&(r&&!this.responseType||i)){const s=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(e)}catch(a){if(s)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:st.classes.FormData,Blob:st.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};b.forEach(["delete","get","head","post","put","patch"],t=>{Vr.headers[t]={}});const kr=Vr,Ep=b.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"]),Sp=t=>{const e={};let n,r,i;return t&&t.split(`
33
+ `).forEach(function(s){i=s.indexOf(":"),n=s.substring(0,i).trim().toLowerCase(),r=s.substring(i+1).trim(),!(!n||e[n]&&Ep[n])&&(n==="set-cookie"?e[n]?e[n].push(r):e[n]=[r]:e[n]=e[n]?e[n]+", "+r:r)}),e},us=Symbol("internals");function re(t){return t&&String(t).trim().toLowerCase()}function Le(t){return t===!1||t==null?t:b.isArray(t)?t.map(Le):String(t)}function Tp(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 Ap=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function Ln(t,e,n,r,i){if(b.isFunction(r))return r.call(this,e,n);if(i&&(e=n),!!b.isString(e)){if(b.isString(r))return e.indexOf(r)!==-1;if(b.isRegExp(r))return r.test(e)}}function Pp(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,n,r)=>n.toUpperCase()+r)}function Cp(t,e){const n=b.toCamelCase(" "+e);["get","set","has"].forEach(r=>{Object.defineProperty(t,r+n,{value:function(i,o,s){return this[r].call(this,e,i,o,s)},configurable:!0})})}class dn{constructor(e){e&&this.set(e)}set(e,n,r){const i=this;function o(a,l,c){const f=re(l);if(!f)throw new Error("header name must be a non-empty string");const u=b.findKey(i,f);(!u||i[u]===void 0||c===!0||c===void 0&&i[u]!==!1)&&(i[u||l]=Le(a))}const s=(a,l)=>b.forEach(a,(c,f)=>o(c,f,l));return b.isPlainObject(e)||e instanceof this.constructor?s(e,n):b.isString(e)&&(e=e.trim())&&!Ap(e)?s(Sp(e),n):e!=null&&o(n,e,r),this}get(e,n){if(e=re(e),e){const r=b.findKey(this,e);if(r){const i=this[r];if(!n)return i;if(n===!0)return Tp(i);if(b.isFunction(n))return n.call(this,i,r);if(b.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,n){if(e=re(e),e){const r=b.findKey(this,e);return!!(r&&this[r]!==void 0&&(!n||Ln(this,this[r],r,n)))}return!1}delete(e,n){const r=this;let i=!1;function o(s){if(s=re(s),s){const a=b.findKey(r,s);a&&(!n||Ln(r,r[a],a,n))&&(delete r[a],i=!0)}}return b.isArray(e)?e.forEach(o):o(e),i}clear(e){const n=Object.keys(this);let r=n.length,i=!1;for(;r--;){const o=n[r];(!e||Ln(this,this[o],o,e,!0))&&(delete this[o],i=!0)}return i}normalize(e){const n=this,r={};return b.forEach(this,(i,o)=>{const s=b.findKey(r,o);if(s){n[s]=Le(i),delete n[o];return}const a=e?Pp(o):String(o).trim();a!==o&&delete n[o],n[a]=Le(i),r[a]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const n=Object.create(null);return b.forEach(this,(r,i)=>{r!=null&&r!==!1&&(n[i]=e&&b.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(i=>r.set(i)),r}static accessor(e){const r=(this[us]=this[us]={accessors:{}}).accessors,i=this.prototype;function o(s){const a=re(s);r[a]||(Cp(i,s),r[a]=!0)}return b.isArray(e)?e.forEach(o):o(e),this}}dn.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);b.reduceDescriptors(dn.prototype,({value:t},e)=>{let n=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(r){this[n]=r}}});b.freezeMethods(dn);const ht=dn;function Dn(t,e){const n=this||kr,r=e||n,i=ht.from(r.headers);let o=r.data;return b.forEach(t,function(a){o=a.call(n,o,i.normalize(),e?e.status:void 0)}),i.normalize(),o}function Ra(t){return!!(t&&t.__CANCEL__)}function we(t,e,n){O.call(this,t??"canceled",O.ERR_CANCELED,e,n),this.name="CanceledError"}b.inherits(we,O,{__CANCEL__:!0});function Rp(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 Op=st.hasStandardBrowserEnv?{write(t,e,n,r,i,o){const s=[t+"="+encodeURIComponent(e)];b.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),b.isString(r)&&s.push("path="+r),b.isString(i)&&s.push("domain="+i),o===!0&&s.push("secure"),document.cookie=s.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 Vp(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function kp(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}function Oa(t,e){return t&&!Vp(e)?kp(t,e):e}const Mp=st.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function i(o){let s=o;return e&&(n.setAttribute("href",s),s=n.href),n.setAttribute("href",s),{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=i(window.location.href),function(s){const a=b.isString(s)?i(s):s;return a.protocol===r.protocol&&a.host===r.host}}():function(){return function(){return!0}}();function jp(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function Lp(t,e){t=t||10;const n=new Array(t),r=new Array(t);let i=0,o=0,s;return e=e!==void 0?e:1e3,function(l){const c=Date.now(),f=r[o];s||(s=c),n[i]=l,r[i]=c;let u=o,h=0;for(;u!==i;)h+=n[u++],u=u%t;if(i=(i+1)%t,i===o&&(o=(o+1)%t),c-s<e)return;const d=f&&c-f;return d?Math.round(h*1e3/d):void 0}}function fs(t,e){let n=0;const r=Lp(50,250);return i=>{const o=i.loaded,s=i.lengthComputable?i.total:void 0,a=o-n,l=r(a),c=o<=s;n=o;const f={loaded:o,total:s,progress:s?o/s:void 0,bytes:a,rate:l||void 0,estimated:l&&s&&c?(s-o)/l:void 0,event:i};f[e?"download":"upload"]=!0,t(f)}}const Dp=typeof XMLHttpRequest<"u",_p=Dp&&function(t){return new Promise(function(n,r){let i=t.data;const o=ht.from(t.headers).normalize();let{responseType:s,withXSRFToken:a}=t,l;function c(){t.cancelToken&&t.cancelToken.unsubscribe(l),t.signal&&t.signal.removeEventListener("abort",l)}let f;if(b.isFormData(i)){if(st.hasStandardBrowserEnv||st.hasStandardBrowserWebWorkerEnv)o.setContentType(!1);else if((f=o.getContentType())!==!1){const[g,...y]=f?f.split(";").map(x=>x.trim()).filter(Boolean):[];o.setContentType([g||"multipart/form-data",...y].join("; "))}}let u=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=Oa(t.baseURL,t.url);u.open(t.method.toUpperCase(),Ta(h,t.params,t.paramsSerializer),!0),u.timeout=t.timeout;function d(){if(!u)return;const g=ht.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders()),x={data:!s||s==="text"||s==="json"?u.responseText:u.response,status:u.status,statusText:u.statusText,headers:g,config:t,request:u};Rp(function(v){n(v),c()},function(v){r(v),c()},x),u=null}if("onloadend"in u?u.onloadend=d:u.onreadystatechange=function(){!u||u.readyState!==4||u.status===0&&!(u.responseURL&&u.responseURL.indexOf("file:")===0)||setTimeout(d)},u.onabort=function(){u&&(r(new O("Request aborted",O.ECONNABORTED,t,u)),u=null)},u.onerror=function(){r(new O("Network Error",O.ERR_NETWORK,t,u)),u=null},u.ontimeout=function(){let y=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded";const x=t.transitional||Aa;t.timeoutErrorMessage&&(y=t.timeoutErrorMessage),r(new O(y,x.clarifyTimeoutError?O.ETIMEDOUT:O.ECONNABORTED,t,u)),u=null},st.hasStandardBrowserEnv&&(a&&b.isFunction(a)&&(a=a(t)),a||a!==!1&&Mp(h))){const g=t.xsrfHeaderName&&t.xsrfCookieName&&Op.read(t.xsrfCookieName);g&&o.set(t.xsrfHeaderName,g)}i===void 0&&o.setContentType(null),"setRequestHeader"in u&&b.forEach(o.toJSON(),function(y,x){u.setRequestHeader(x,y)}),b.isUndefined(t.withCredentials)||(u.withCredentials=!!t.withCredentials),s&&s!=="json"&&(u.responseType=t.responseType),typeof t.onDownloadProgress=="function"&&u.addEventListener("progress",fs(t.onDownloadProgress,!0)),typeof t.onUploadProgress=="function"&&u.upload&&u.upload.addEventListener("progress",fs(t.onUploadProgress)),(t.cancelToken||t.signal)&&(l=g=>{u&&(r(!g||g.type?new we(null,t,u):g),u.abort(),u=null)},t.cancelToken&&t.cancelToken.subscribe(l),t.signal&&(t.signal.aborted?l():t.signal.addEventListener("abort",l)));const m=jp(h);if(m&&st.protocols.indexOf(m)===-1){r(new O("Unsupported protocol "+m+":",O.ERR_BAD_REQUEST,t));return}u.send(i||null)})},er={http:op,xhr:_p};b.forEach(er,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch{}Object.defineProperty(t,"adapterName",{value:e})}});const hs=t=>`- ${t}`,Fp=t=>b.isFunction(t)||t===null||t===!1,Va={getAdapter:t=>{t=b.isArray(t)?t:[t];const{length:e}=t;let n,r;const i={};for(let o=0;o<e;o++){n=t[o];let s;if(r=n,!Fp(n)&&(r=er[(s=String(n)).toLowerCase()],r===void 0))throw new O(`Unknown adapter '${s}'`);if(r)break;i[s||"#"+o]=r}if(!r){const o=Object.entries(i).map(([a,l])=>`adapter ${a} `+(l===!1?"is not supported by the environment":"is not available in the build"));let s=e?o.length>1?`since :
35
35
  `+o.map(hs).join(`
36
- `):" "+hs(o[0]):"as no adapter specified";throw new O("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return r},adapters:er};function _n(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new we(null,t)}function ds(t){return _n(t),t.headers=ht.from(t.headers),t.data=Dn.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),Va.getAdapter(t.adapter||kr.adapter)(t).then(function(r){return _n(t),r.data=Dn.call(t,t.transformResponse,r),r.headers=ht.from(r.headers),r},function(r){return Ra(r)||(_n(t),r&&r.response&&(r.response.data=Dn.call(t,t.transformResponse,r.response),r.response.headers=ht.from(r.response.headers))),Promise.reject(r)})}const ps=t=>t instanceof ht?t.toJSON():t;function Yt(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 i(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 s(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: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)=>i(ps(u),ps(f),!0)};return x.forEach(Object.keys(Object.assign({},t,e)),function(f){const c=l[f]||i,h=c(t[f],e[f],f);x.isUndefined(h)&&c!==a||(n[f]=h)}),n}const ka="1.6.5",Mr={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{Mr[t]=function(r){return typeof r===t||"a"+(e<1?"n ":" ")+t}});const ms={};Mr.transitional=function(e,n,r){function i(o,s){return"[Axios v"+ka+"] Transitional option '"+o+"'"+s+(r?". "+r:"")}return(o,s,a)=>{if(e===!1)throw new O(i(s," has been removed"+(n?" in "+n:"")),O.ERR_DEPRECATED);return n&&!ms[s]&&(ms[s]=!0,console.warn(i(s," has been deprecated since v"+n+" and will be removed in the near future"))),e?e(o,s,a):!0}};function Np(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 i=r.length;for(;i-- >0;){const o=r[i],s=e[o];if(s){const a=t[o],l=a===void 0||s(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 nr={assertOptions:Np,validators:Mr},vt=nr.validators;class Ke{constructor(e){this.defaults=e,this.interceptors={request:new cs,response:new cs}}request(e,n){typeof e=="string"?(n=n||{},n.url=e):n=e||{},n=Yt(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:o}=n;r!==void 0&&nr.assertOptions(r,{silentJSONParsing:vt.transitional(vt.boolean),forcedJSONParsing:vt.transitional(vt.boolean),clarifyTimeoutError:vt.transitional(vt.boolean)},!1),i!=null&&(x.isFunction(i)?n.paramsSerializer={serialize:i}:nr.assertOptions(i,{encode:vt.function,serialize:vt.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let s=o&&x.merge(o.common,o[n.method]);o&&x.forEach(["delete","get","head","post","put","patch","common"],m=>{delete o[m]}),n.headers=ht.concat(s,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=[ds.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=ds.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=Yt(this.defaults,e);const n=Oa(e.baseURL,e.url);return Ta(n,e.params,e.paramsSerializer)}}x.forEach(["delete","get","head","options"],function(e){Ke.prototype[e]=function(n,r){return this.request(Yt(r||{},{method:e,url:n,data:(r||{}).data}))}});x.forEach(["post","put","patch"],function(e){function n(r){return function(o,s,a){return this.request(Yt(a||{},{method:e,headers:r?{"Content-Type":"multipart/form-data"}:{},url:o,data:s}))}}Ke.prototype[e]=n(),Ke.prototype[e+"Form"]=n(!0)});const De=Ke;class jr{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(i=>{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](i);r._listeners=null}),this.promise.then=i=>{let o;const s=new Promise(a=>{r.subscribe(a),o=a}).then(i);return s.cancel=function(){r.unsubscribe(o)},s},e(function(o,s,a){r.reason||(r.reason=new we(o,s,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 jr(function(i){e=i}),cancel:e}}}const Bp=jr;function Ip(t){return function(n){return t.apply(null,n)}}function Wp(t){return x.isObject(t)&&t.isAxiosError===!0}const rr={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(rr).forEach(([t,e])=>{rr[e]=t});const Up=rr;function Ma(t){const e=new De(t),n=ha(De.prototype.request,e);return x.extend(n,De.prototype,e,{allOwnKeys:!0}),x.extend(n,e,null,{allOwnKeys:!0}),n.create=function(i){return Ma(Yt(t,i))},n}const F=Ma(kr);F.Axios=De;F.CanceledError=we;F.CancelToken=Bp;F.isCancel=Ra;F.VERSION=ka;F.toFormData=hn;F.AxiosError=O;F.Cancel=F.CanceledError;F.all=function(e){return Promise.all(e)};F.spread=Ip;F.isAxiosError=Wp;F.mergeConfig=Yt;F.AxiosHeaders=ht;F.formToJSON=t=>Ca(x.isHTMLForm(t)?new FormData(t):t);F.getAdapter=Va.getAdapter;F.HttpStatusCode=Up;F.default=F;const zp=F,Hp=`[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}
36
+ `):" "+hs(o[0]):"as no adapter specified";throw new O("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return r},adapters:er};function _n(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new we(null,t)}function ds(t){return _n(t),t.headers=ht.from(t.headers),t.data=Dn.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),Va.getAdapter(t.adapter||kr.adapter)(t).then(function(r){return _n(t),r.data=Dn.call(t,t.transformResponse,r),r.headers=ht.from(r.headers),r},function(r){return Ra(r)||(_n(t),r&&r.response&&(r.response.data=Dn.call(t,t.transformResponse,r.response),r.response.headers=ht.from(r.response.headers))),Promise.reject(r)})}const ps=t=>t instanceof ht?t.toJSON():t;function Yt(t,e){e=e||{};const n={};function r(c,f,u){return b.isPlainObject(c)&&b.isPlainObject(f)?b.merge.call({caseless:u},c,f):b.isPlainObject(f)?b.merge({},f):b.isArray(f)?f.slice():f}function i(c,f,u){if(b.isUndefined(f)){if(!b.isUndefined(c))return r(void 0,c,u)}else return r(c,f,u)}function o(c,f){if(!b.isUndefined(f))return r(void 0,f)}function s(c,f){if(b.isUndefined(f)){if(!b.isUndefined(c))return r(void 0,c)}else return r(void 0,f)}function a(c,f,u){if(u in e)return r(c,f);if(u in t)return r(void 0,c)}const l={url:o,method:o,data:o,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:(c,f)=>i(ps(c),ps(f),!0)};return b.forEach(Object.keys(Object.assign({},t,e)),function(f){const u=l[f]||i,h=u(t[f],e[f],f);b.isUndefined(h)&&u!==a||(n[f]=h)}),n}const ka="1.6.5",Mr={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{Mr[t]=function(r){return typeof r===t||"a"+(e<1?"n ":" ")+t}});const ms={};Mr.transitional=function(e,n,r){function i(o,s){return"[Axios v"+ka+"] Transitional option '"+o+"'"+s+(r?". "+r:"")}return(o,s,a)=>{if(e===!1)throw new O(i(s," has been removed"+(n?" in "+n:"")),O.ERR_DEPRECATED);return n&&!ms[s]&&(ms[s]=!0,console.warn(i(s," has been deprecated since v"+n+" and will be removed in the near future"))),e?e(o,s,a):!0}};function Np(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 i=r.length;for(;i-- >0;){const o=r[i],s=e[o];if(s){const a=t[o],l=a===void 0||s(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 nr={assertOptions:Np,validators:Mr},vt=nr.validators;class Ke{constructor(e){this.defaults=e,this.interceptors={request:new cs,response:new cs}}request(e,n){typeof e=="string"?(n=n||{},n.url=e):n=e||{},n=Yt(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:o}=n;r!==void 0&&nr.assertOptions(r,{silentJSONParsing:vt.transitional(vt.boolean),forcedJSONParsing:vt.transitional(vt.boolean),clarifyTimeoutError:vt.transitional(vt.boolean)},!1),i!=null&&(b.isFunction(i)?n.paramsSerializer={serialize:i}:nr.assertOptions(i,{encode:vt.function,serialize:vt.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let s=o&&b.merge(o.common,o[n.method]);o&&b.forEach(["delete","get","head","post","put","patch","common"],m=>{delete o[m]}),n.headers=ht.concat(s,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 c=[];this.interceptors.response.forEach(function(g){c.push(g.fulfilled,g.rejected)});let f,u=0,h;if(!l){const m=[ds.bind(this),void 0];for(m.unshift.apply(m,a),m.push.apply(m,c),h=m.length,f=Promise.resolve(n);u<h;)f=f.then(m[u++],m[u++]);return f}h=a.length;let d=n;for(u=0;u<h;){const m=a[u++],g=a[u++];try{d=m(d)}catch(y){g.call(this,y);break}}try{f=ds.call(this,d)}catch(m){return Promise.reject(m)}for(u=0,h=c.length;u<h;)f=f.then(c[u++],c[u++]);return f}getUri(e){e=Yt(this.defaults,e);const n=Oa(e.baseURL,e.url);return Ta(n,e.params,e.paramsSerializer)}}b.forEach(["delete","get","head","options"],function(e){Ke.prototype[e]=function(n,r){return this.request(Yt(r||{},{method:e,url:n,data:(r||{}).data}))}});b.forEach(["post","put","patch"],function(e){function n(r){return function(o,s,a){return this.request(Yt(a||{},{method:e,headers:r?{"Content-Type":"multipart/form-data"}:{},url:o,data:s}))}}Ke.prototype[e]=n(),Ke.prototype[e+"Form"]=n(!0)});const De=Ke;class jr{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(i=>{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](i);r._listeners=null}),this.promise.then=i=>{let o;const s=new Promise(a=>{r.subscribe(a),o=a}).then(i);return s.cancel=function(){r.unsubscribe(o)},s},e(function(o,s,a){r.reason||(r.reason=new we(o,s,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 jr(function(i){e=i}),cancel:e}}}const Bp=jr;function Ip(t){return function(n){return t.apply(null,n)}}function Wp(t){return b.isObject(t)&&t.isAxiosError===!0}const rr={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(rr).forEach(([t,e])=>{rr[e]=t});const Up=rr;function Ma(t){const e=new De(t),n=ha(De.prototype.request,e);return b.extend(n,De.prototype,e,{allOwnKeys:!0}),b.extend(n,e,null,{allOwnKeys:!0}),n.create=function(i){return Ma(Yt(t,i))},n}const F=Ma(kr);F.Axios=De;F.CanceledError=we;F.CancelToken=Bp;F.isCancel=Ra;F.VERSION=ka;F.toFormData=hn;F.AxiosError=O;F.Cancel=F.CanceledError;F.all=function(e){return Promise.all(e)};F.spread=Ip;F.isAxiosError=Wp;F.mergeConfig=Yt;F.AxiosHeaders=ht;F.formToJSON=t=>Ca(b.isHTMLForm(t)?new FormData(t):t);F.getAdapter=Va.getAdapter;F.HttpStatusCode=Up;F.default=F;const zp=F,Hp=`[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
37
  `;function $p(){return p.jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"22",fill:"currentColor",stroke:"currentColor",strokeWidth:"0",viewBox:"0 0 24 24",children:p.jsxRuntimeExports.jsx("path",{d:"M21 18v2H3v-2h18zM6.596 3.903L8.01 5.318 4.828 8.5 8.01 11.68l-1.414 1.415L2 8.5l4.596-4.597zM21 11v2h-9v-2h9zm0-7v2h-9V4h9z"})})}function qp(){return p.jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"22",fill:"currentColor",stroke:"currentColor",strokeWidth:"0",viewBox:"0 0 24 24",children:p.jsxRuntimeExports.jsx("path",{d:"M3 4h18v2H3V4zm0 7h18v2H3v-2zm0 7h18v2H3v-2z"})})}const Gp=`.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;color:#85858a}.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
- `,Lr=t=>typeof t=="number"&&!isNaN(t),ce=t=>typeof t=="string",ja=t=>typeof t=="function",Xp=t=>p.reactExports.isValidElement(t)||ce(t)||ja(t)||Lr(t),it=new Map;let ir=[];const gs=new Set,La=()=>it.size>0;function Kp(t,e){var n;if(e)return!((n=it.get(e))==null||!n.isToastActive(t));let r=!1;return it.forEach(i=>{i.isToastActive(t)&&(r=!0)}),r}function Yp(t,e){Xp(t)&&(La()||ir.push({content:t,options:e}),it.forEach(n=>{n.buildToast(t,e)}))}function ys(t,e){it.forEach(n=>{e!=null&&e!=null&&e.containerId?(e==null?void 0:e.containerId)===n.id&&n.toggle(t,e==null?void 0:e.id):n.toggle(t,e==null?void 0:e.id)})}let Jp=1;const Da=()=>""+Jp++;function Zp(t){return t&&(ce(t.toastId)||Lr(t.toastId))?t.toastId:Da()}function ue(t,e){return Yp(t,e),e.toastId}function Ye(t,e){return{...e,type:e&&e.type||t,toastId:Zp(e)}}function Oe(t){return(e,n)=>ue(e,Ye(t,n))}function M(t,e){return ue(t,Ye("default",e))}M.loading=(t,e)=>ue(t,Ye("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...e})),M.promise=function(t,e,n){let r,{pending:i,error:o,success:s}=e;i&&(r=ce(i)?M.loading(i,n):M.loading(i.render,{...n,...i}));const a={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},l=(f,c,h)=>{if(c==null)return void M.dismiss(r);const d={type:f,...a,...n,data:h},m=ce(c)?{render:c}:c;return r?M.update(r,{...d,...m}):M(m.render,{...d,...m}),h},u=ja(t)?t():t;return u.then(f=>l("success",s,f)).catch(f=>l("error",o,f)),u},M.success=Oe("success"),M.info=Oe("info"),M.error=Oe("error"),M.warning=Oe("warning"),M.warn=M.warning,M.dark=(t,e)=>ue(t,Ye("default",{theme:"dark",...e})),M.dismiss=function(t){(function(e){var n;if(La()){if(e==null||ce(n=e)||Lr(n))it.forEach(i=>{i.removeToast(e)});else if(e&&("containerId"in e||"id"in e)){var r;(r=it.get(e.containerId))!=null&&r.removeToast(e.id)||it.forEach(i=>{i.removeToast(e.id)})}}else ir=ir.filter(i=>e!=null&&i.options.toastId!==e)})(t)},M.clearWaitingQueue=function(t){t===void 0&&(t={}),it.forEach(e=>{!e.props.limit||t.containerId&&e.id!==t.containerId||e.clearQueue()})},M.isActive=Kp,M.update=function(t,e){e===void 0&&(e={});const n=((r,i)=>{var o;let{containerId:s}=i;return(o=it.get(s||1))==null?void 0:o.toasts.get(r)})(t,e);if(n){const{props:r,content:i}=n,o={delay:100,...r,...e,toastId:e.toastId||t,updateId:Da()};o.toastId!==t&&(o.staleId=t);const s=o.render||i;delete o.render,ue(s,o)}},M.done=t=>{M.update(t,{progress:1})},M.onChange=function(t){return gs.add(t),()=>{gs.delete(t)}},M.play=t=>ys(!0,t),M.pause=t=>ys(!1,t);const vs={primary:"#93D500",secondary:"#007BFF",textPrimary:"#000000",textSecondary:"#101010",priText:"#009D4F",lightPrimary:"#E8F5E9",darkPrimary:"#2E7D32",lightSecondary:"#E8F5E9",darkSecondary:"#339790",danger:"#E01B00",darkDanger:"#BE1700",warning:"#FFB600",success:"#009D4F",error:"#E9645B",successChip:"#F4FBE5",errorChip:"#E01B001A",warningChip:"#FFB8001A",secondaryChip:"#E5F2FF",appBarColor:"#000000",white:"#FFFFFF",grey100:"#FAFAFA",grey200:"#EEEEEE",grey300:"#DDDDDD",grey400:"#C5C5C5",grey600:"#85858A",gold100:"#FFFBE6",gold200:"#FFF1B8",gold300:"#FFE58F",gold600:"#FAAD14",gold700:"#D48806",outlinedButton:"#009D4F",containedButtonString:"#000000",pink:"#E81F76"};function Qp(){return p.jsxRuntimeExports.jsxs("svg",{width:"22",height:"22",viewBox:"0 0 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[p.jsxRuntimeExports.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11 1C16.5222 1 21 5.47676 21 11C21 16.5222 16.5222 21 11 21C5.47676 21 1 16.5222 1 11C1 5.47676 5.47676 1 11 1Z",stroke:"#E01B00",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),p.jsxRuntimeExports.jsx("path",{d:"M10.9942 6.89636V11.6737",stroke:"#E01B00",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),p.jsxRuntimeExports.jsx("path",{d:"M10.9941 15.1038H11.0049",stroke:"#E01B00",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})}const tm={paddingLeft:"16px",borderLeft:"2px solid",boxShadow:"none",fontFamily:"inherit"},em=t=>{M.error(t,{icon:p.jsxRuntimeExports.jsx(Qp,{}),position:"bottom-right",style:{...tm,background:"#F7E4E1",borderColor:vs.danger,color:vs.danger}})};function nm(t){return p.jsxRuntimeExports.jsx(p.ShadowDomWrapper,{styles:[Hp,Gp],style:{zIndex:1200},children:p.jsxRuntimeExports.jsx(rm,{...t})})}function rm(t){const{baseUrl:e,menuPath:n,logout:r}=t,i=tn(),[o,s]=p.reactExports.useState([]),[a,l]=p.reactExports.useState(!1),u=(fa(o,i.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 zp.get(v,{withCredentials:!0}).then(S=>S.data).catch(S=>{var A,P;em(((P=(A=S.response)==null?void 0:A.data)==null?void 0:P.errorMessage)||"Have error when get menu items")}),T={};E.forEach(S=>{S.children&&(T[S.id]=!0)}),c(T),s(E.map(S=>({...S,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(qp,{}):p.jsxRuntimeExports.jsx($p,{})})}),p.jsxRuntimeExports.jsx(Ns,{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(T=>T.id===E);return p.jsxRuntimeExports.jsx(ua,{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(Ad,{}),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 im(t){return p.jsxRuntimeExports.jsx(sl,{children:p.jsxRuntimeExports.jsx(nm,{...t})})}const sm=p.s(im,{props:{baseUrl:"string",menuPath:"string",logout:"function"}});customElements.define("global-menu",sm);
38
+ `,Lr=t=>typeof t=="number"&&!isNaN(t),ce=t=>typeof t=="string",ja=t=>typeof t=="function",Xp=t=>p.reactExports.isValidElement(t)||ce(t)||ja(t)||Lr(t),it=new Map;let ir=[];const gs=new Set,La=()=>it.size>0;function Kp(t,e){var n;if(e)return!((n=it.get(e))==null||!n.isToastActive(t));let r=!1;return it.forEach(i=>{i.isToastActive(t)&&(r=!0)}),r}function Yp(t,e){Xp(t)&&(La()||ir.push({content:t,options:e}),it.forEach(n=>{n.buildToast(t,e)}))}function ys(t,e){it.forEach(n=>{e!=null&&e!=null&&e.containerId?(e==null?void 0:e.containerId)===n.id&&n.toggle(t,e==null?void 0:e.id):n.toggle(t,e==null?void 0:e.id)})}let Jp=1;const Da=()=>""+Jp++;function Zp(t){return t&&(ce(t.toastId)||Lr(t.toastId))?t.toastId:Da()}function ue(t,e){return Yp(t,e),e.toastId}function Ye(t,e){return{...e,type:e&&e.type||t,toastId:Zp(e)}}function Oe(t){return(e,n)=>ue(e,Ye(t,n))}function M(t,e){return ue(t,Ye("default",e))}M.loading=(t,e)=>ue(t,Ye("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...e})),M.promise=function(t,e,n){let r,{pending:i,error:o,success:s}=e;i&&(r=ce(i)?M.loading(i,n):M.loading(i.render,{...n,...i}));const a={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},l=(f,u,h)=>{if(u==null)return void M.dismiss(r);const d={type:f,...a,...n,data:h},m=ce(u)?{render:u}:u;return r?M.update(r,{...d,...m}):M(m.render,{...d,...m}),h},c=ja(t)?t():t;return c.then(f=>l("success",s,f)).catch(f=>l("error",o,f)),c},M.success=Oe("success"),M.info=Oe("info"),M.error=Oe("error"),M.warning=Oe("warning"),M.warn=M.warning,M.dark=(t,e)=>ue(t,Ye("default",{theme:"dark",...e})),M.dismiss=function(t){(function(e){var n;if(La()){if(e==null||ce(n=e)||Lr(n))it.forEach(i=>{i.removeToast(e)});else if(e&&("containerId"in e||"id"in e)){var r;(r=it.get(e.containerId))!=null&&r.removeToast(e.id)||it.forEach(i=>{i.removeToast(e.id)})}}else ir=ir.filter(i=>e!=null&&i.options.toastId!==e)})(t)},M.clearWaitingQueue=function(t){t===void 0&&(t={}),it.forEach(e=>{!e.props.limit||t.containerId&&e.id!==t.containerId||e.clearQueue()})},M.isActive=Kp,M.update=function(t,e){e===void 0&&(e={});const n=((r,i)=>{var o;let{containerId:s}=i;return(o=it.get(s||1))==null?void 0:o.toasts.get(r)})(t,e);if(n){const{props:r,content:i}=n,o={delay:100,...r,...e,toastId:e.toastId||t,updateId:Da()};o.toastId!==t&&(o.staleId=t);const s=o.render||i;delete o.render,ue(s,o)}},M.done=t=>{M.update(t,{progress:1})},M.onChange=function(t){return gs.add(t),()=>{gs.delete(t)}},M.play=t=>ys(!0,t),M.pause=t=>ys(!1,t);const vs={primary:"#93D500",secondary:"#007BFF",textPrimary:"#000000",textSecondary:"#101010",priText:"#009D4F",lightPrimary:"#E8F5E9",darkPrimary:"#2E7D32",lightSecondary:"#E8F5E9",darkSecondary:"#339790",danger:"#E01B00",darkDanger:"#BE1700",warning:"#FFB600",success:"#009D4F",error:"#E9645B",successChip:"#F4FBE5",errorChip:"#E01B001A",warningChip:"#FFB8001A",secondaryChip:"#E5F2FF",appBarColor:"#000000",white:"#FFFFFF",grey100:"#FAFAFA",grey200:"#EEEEEE",grey300:"#DDDDDD",grey400:"#C5C5C5",grey600:"#85858A",gold100:"#FFFBE6",gold200:"#FFF1B8",gold300:"#FFE58F",gold600:"#FAAD14",gold700:"#D48806",outlinedButton:"#009D4F",containedButtonString:"#000000",pink:"#E81F76"};function Qp(){return p.jsxRuntimeExports.jsxs("svg",{width:"22",height:"22",viewBox:"0 0 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[p.jsxRuntimeExports.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11 1C16.5222 1 21 5.47676 21 11C21 16.5222 16.5222 21 11 21C5.47676 21 1 16.5222 1 11C1 5.47676 5.47676 1 11 1Z",stroke:"#E01B00",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),p.jsxRuntimeExports.jsx("path",{d:"M10.9942 6.89636V11.6737",stroke:"#E01B00",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),p.jsxRuntimeExports.jsx("path",{d:"M10.9941 15.1038H11.0049",stroke:"#E01B00",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})}const tm={paddingLeft:"16px",borderLeft:"2px solid",boxShadow:"none",fontFamily:"inherit"},em=t=>{M.error(t,{icon:p.jsxRuntimeExports.jsx(Qp,{}),position:"bottom-right",style:{...tm,background:"#F7E4E1",borderColor:vs.danger,color:vs.danger}})},nm=t=>{window.location.href=`${t}/authentication/logout?callbackUrl=${window.location.href}`};function rm(t){return p.jsxRuntimeExports.jsx(p.ShadowDomWrapper,{styles:[Hp,Gp],style:{zIndex:1200},children:p.jsxRuntimeExports.jsx(im,{...t})})}function im(t){const{baseUrl:e,menuPath:n}=t,r=tn(),[i,o]=p.reactExports.useState([]),[s,a]=p.reactExports.useState(!1),l=(fa(i,r.pathname)||[]).filter(x=>x.parentKey!==0),[c,f]=p.reactExports.useState({}),u=x=>{f({...c,[x]:!c[x]})},h=()=>{a(!s)};p.reactExports.useEffect(()=>{(async()=>{const w=e+(n||"/global-menu-config/api/v1/menu-items/user"),v=await zp.get(w,{withCredentials:!0}).then(S=>S.data).catch(S=>{var T,A;em(((A=(T=S.response)==null?void 0:T.data)==null?void 0:A.errorMessage)||"Have error when get menu items")}),E={};v.forEach(S=>{S.children&&(E[S.id]=!0)}),f(E),o(v.map(S=>({...S,parentKey:0})))})()},[e,n]);const[d,m]=p.reactExports.useState(!1),g=s?"collapsed":"expanded",y=x=>`${x} ${g}`;return p.jsxRuntimeExports.jsxs("div",{className:y("side-bar"),children:[p.jsxRuntimeExports.jsx("div",{className:y("side-bar__wrapper-toggle-btn"),children:p.jsxRuntimeExports.jsx("button",{className:"icon-btn side-bar__toggle-btn",onClick:h,children:s?p.jsxRuntimeExports.jsx(qp,{}):p.jsxRuntimeExports.jsx($p,{})})}),p.jsxRuntimeExports.jsx(Ns,{className:y("side-bar__menu"),style:{marginTop:24,flex:1,overflow:"auto",height:"100%",overflowX:"hidden"},children:i.map(x=>{const w=v=>l.some(E=>E.id===v);return p.jsxRuntimeExports.jsx(ua,{item:x,isActive:w,isCollapsed:s,expanded:v=>c[v],toggleExpand:u},x.id)})}),p.jsxRuntimeExports.jsxs("div",{className:y("side-bar__wrap-btn-logout"),children:[p.jsxRuntimeExports.jsxs("button",{className:y("side-bar__logout-btn"),onClick:()=>m(!0),children:[p.jsxRuntimeExports.jsx(Ad,{}),p.jsxRuntimeExports.jsx("span",{className:y("side-bar__logout-btn__text"),children:"Logout"})]}),p.jsxRuntimeExports.jsx(p.LogoutConfirmModal,{isOpen:d,onClose:()=>m(!1),onConfirm:()=>t.logout?t.logout():nm(t.baseUrl)})]})]})}function sm(t){return p.jsxRuntimeExports.jsx(sl,{children:p.jsxRuntimeExports.jsx(rm,{...t})})}const om=p.s(sm,{props:{baseUrl:"string",menuPath:"string",logout:"function"}});customElements.define("global-menu",om);