@wasp.sh/wasp-cli-darwin-arm64-unknown 0.20.2 → 0.21.0-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/data/Cli/starters/basic/README.md +1 -1
- package/data/Cli/starters/basic/package.json +10 -7
- package/data/Cli/starters/basic/src/App.css +30 -12
- package/data/Cli/starters/basic/src/App.tsx +1 -1
- package/data/Cli/starters/basic/src/auth/AuthLayout.tsx +3 -1
- package/data/Cli/starters/basic/src/auth/email/EmailVerificationPage.tsx +2 -2
- package/data/Cli/starters/basic/src/auth/email/LoginPage.tsx +3 -3
- package/data/Cli/starters/basic/src/auth/email/PasswordResetPage.tsx +2 -2
- package/data/Cli/starters/basic/src/auth/email/SignupPage.tsx +2 -2
- package/data/Cli/starters/basic/src/shared/components/Button.tsx +3 -2
- package/data/Cli/starters/basic/src/shared/components/Dialog.tsx +23 -41
- package/data/Cli/starters/basic/src/shared/components/Header.tsx +2 -2
- package/data/Cli/starters/basic/src/shared/components/Input.tsx +25 -28
- package/data/Cli/starters/basic/src/tags/components/ColorRadioButton.tsx +8 -9
- package/data/Cli/starters/basic/src/tags/components/CreateTagDialog.tsx +29 -29
- package/data/Cli/starters/basic/src/tags/components/CreateTagForm.tsx +6 -8
- package/data/Cli/starters/basic/src/tasks/components/CreateTaskForm.tsx +2 -2
- package/data/Cli/starters/basic/src/tasks/components/TaskListItem.tsx +3 -2
- package/data/Cli/starters/basic/vite.config.ts +3 -0
- package/data/Cli/starters/minimal/package.json +2 -3
- package/data/Cli/starters/minimal/vite.config.ts +2 -0
- package/data/Cli/starters/skeleton/src/vite-env.d.ts +2 -6
- package/data/Generator/libs/auth/wasp.sh-lib-auth-0.21.0.tgz +0 -0
- package/data/Generator/templates/Dockerfile +13 -12
- package/data/Generator/templates/sdk/wasp/auth/forms/Auth.tsx +2 -11
- package/data/Generator/templates/sdk/wasp/auth/forms/internal/common/LoginSignupForm.tsx +10 -4
- package/data/Generator/templates/sdk/wasp/auth/forms/internal/email/ForgotPasswordForm.tsx +4 -3
- package/data/Generator/templates/sdk/wasp/auth/forms/internal/email/ResetPasswordForm.tsx +4 -4
- package/data/Generator/templates/sdk/wasp/auth/forms/internal/email/VerifyEmailForm.tsx +3 -4
- package/data/Generator/templates/sdk/wasp/auth/forms/internal/social/SocialIcons.tsx +11 -0
- package/data/Generator/templates/sdk/wasp/auth/forms/types.ts +0 -6
- package/data/Generator/templates/sdk/wasp/auth/jwt.ts +9 -16
- package/data/Generator/templates/sdk/wasp/auth/password.ts +1 -36
- package/data/Generator/templates/sdk/wasp/auth/utils.ts +2 -0
- package/data/Generator/templates/{react-app/src → sdk/wasp/client/app}/components/DefaultRootErrorBoundary.tsx +1 -1
- package/data/Generator/templates/sdk/wasp/client/app/components/WaspApp.tsx +45 -0
- package/data/Generator/templates/sdk/wasp/client/app/index.tsx +26 -0
- package/data/Generator/templates/{react-app/src/auth → sdk/wasp/client/app}/pages/OAuthCallback.tsx +9 -8
- package/data/Generator/templates/{react-app/src/auth → sdk/wasp/client/app}/pages/createAuthRequiredPage.jsx +7 -9
- package/data/Generator/templates/sdk/wasp/client/app/router/router.tsx +47 -0
- package/data/Generator/templates/sdk/wasp/client/auth/index.ts +3 -0
- package/data/Generator/templates/sdk/wasp/client/auth/microsoft.ts +2 -0
- package/data/Generator/templates/sdk/wasp/client/auth/ui.ts +3 -0
- package/data/Generator/templates/sdk/wasp/client/router/Link.tsx +2 -2
- package/data/Generator/templates/sdk/wasp/client/test/vitest/helpers.tsx +10 -12
- package/data/Generator/templates/sdk/wasp/client/vite/index.ts +1 -0
- package/data/Generator/templates/sdk/wasp/client/vite/plugins/detectServerImports.ts +50 -0
- package/data/Generator/templates/sdk/wasp/client/vite/plugins/envFile.ts +112 -0
- package/data/Generator/templates/sdk/wasp/client/vite/plugins/html/build.ts +38 -0
- package/data/Generator/templates/sdk/wasp/client/vite/plugins/html/dev.ts +35 -0
- package/data/Generator/templates/sdk/wasp/client/vite/plugins/typescriptCheck.ts +32 -0
- package/data/Generator/templates/{react-app/vite → sdk/wasp/client/vite/plugins}/validateEnv.ts +17 -7
- package/data/Generator/templates/sdk/wasp/client/vite/plugins/virtualModules.ts +29 -0
- package/data/Generator/templates/sdk/wasp/client/vite/plugins/wasp.ts +36 -0
- package/data/Generator/templates/sdk/wasp/client/vite/plugins/waspConfig.ts +56 -0
- package/data/Generator/templates/{react-app → sdk/wasp/client/vite/virtual-files/files}/index.html +1 -2
- package/data/Generator/templates/sdk/wasp/client/vite/virtual-files/files/index.tsx +34 -0
- package/data/Generator/templates/sdk/wasp/client/vite/virtual-files/files/routes.tsx +17 -0
- package/data/Generator/templates/sdk/wasp/client/vite/virtual-files/index.ts +20 -0
- package/data/Generator/templates/sdk/wasp/client/vite/virtual-files/resolver.ts +28 -0
- package/data/Generator/templates/sdk/wasp/package.json +6 -4
- package/data/Generator/templates/sdk/wasp/scripts/copy-assets.js +67 -7
- package/data/Generator/templates/sdk/wasp/server/auth/hooks.ts +3 -0
- package/data/Generator/templates/sdk/wasp/server/auth/oauth/index.ts +4 -0
- package/data/Generator/templates/sdk/wasp/server/auth/oauth/providers/microsoft.ts +23 -0
- package/data/Generator/templates/sdk/wasp/server/auth/user.ts +6 -0
- package/data/Generator/templates/sdk/wasp/server/env.ts +11 -0
- package/data/Generator/templates/sdk/wasp/tsconfig.json +5 -1
- package/data/Generator/templates/server/src/auth/providers/config/microsoft.ts +65 -0
- package/data/Generator/templates/server/src/auth/providers/oauth/cookies.ts +1 -1
- package/data/packages/deploy/dist/common/clientApp.js +4 -11
- package/data/packages/deploy/dist/common/terminal.js +7 -0
- package/data/packages/deploy/dist/common/waspProject.js +11 -7
- package/data/packages/deploy/dist/providers/fly/CommonOps.js +3 -3
- package/data/packages/deploy/dist/providers/fly/commands/cmd/cmd.js +1 -1
- package/data/packages/deploy/dist/providers/fly/commands/deploy/deploy.js +6 -5
- package/data/packages/deploy/dist/providers/fly/commands/setup/setup.js +3 -3
- package/data/packages/deploy/dist/providers/fly/index.js +5 -0
- package/data/packages/deploy/dist/providers/railway/commands/deploy/client.js +2 -1
- package/data/packages/deploy/dist/providers/railway/commands/setup/setup.js +21 -10
- package/data/packages/deploy/dist/providers/railway/index.js +5 -0
- package/data/packages/deploy/dist/providers/railway/jsonOutputSchemas.js +9 -3
- package/data/packages/deploy/dist/providers/railway/railwayService/url.js +8 -1
- package/data/packages/studio/dist/public/assets/Flow-_d98T2dd.js +26 -0
- package/data/packages/studio/dist/public/assets/index-B6X8EdJH.js +21 -0
- package/data/packages/studio/dist/public/assets/index-CXlD_bzV.js +1 -0
- package/data/packages/studio/dist/public/assets/index-IWX3d-Jz.css +1 -0
- package/data/packages/studio/dist/public/index.html +2 -3
- package/package.json +1 -1
- package/wasp-bin +0 -0
- package/data/Cli/starters/basic/postcss.config.js +0 -6
- package/data/Cli/starters/basic/src/shared/components/Portal.tsx +0 -26
- package/data/Cli/starters/basic/tailwind.config.js +0 -30
- package/data/Generator/templates/react-app/README.md +0 -21
- package/data/Generator/templates/react-app/gitignore +0 -23
- package/data/Generator/templates/react-app/netlify.toml +0 -8
- package/data/Generator/templates/react-app/npmrc +0 -1
- package/data/Generator/templates/react-app/package.json +0 -31
- package/data/Generator/templates/react-app/public/manifest.json +0 -15
- package/data/Generator/templates/react-app/src/index.tsx +0 -47
- package/data/Generator/templates/react-app/src/logo.png +0 -0
- package/data/Generator/templates/react-app/src/router.tsx +0 -59
- package/data/Generator/templates/react-app/src/utils.js +0 -3
- package/data/Generator/templates/react-app/src/vite-env.d.ts +0 -1
- package/data/Generator/templates/react-app/tsconfig.app.json +0 -28
- package/data/Generator/templates/react-app/tsconfig.json +0 -11
- package/data/Generator/templates/react-app/tsconfig.vite.json +0 -16
- package/data/Generator/templates/react-app/vite/detectServerImports.ts +0 -53
- package/data/Generator/templates/react-app/vite.config.ts +0 -74
- package/data/Generator/templates/sdk/wasp/dev/index.ts +0 -19
- package/data/packages/studio/dist/public/assets/Flow-b5112d3d.js +0 -26
- package/data/packages/studio/dist/public/assets/index-17ce6ed4.css +0 -1
- package/data/packages/studio/dist/public/assets/index-62a9d21a.js +0 -120
- /package/data/Generator/templates/{react-app/src → sdk/wasp/client/app}/components/FullPageWrapper.tsx +0 -0
- /package/data/Generator/templates/{react-app/src → sdk/wasp/client/app}/components/Loader.module.css +0 -0
- /package/data/Generator/templates/{react-app/src → sdk/wasp/client/app}/components/Loader.tsx +0 -0
- /package/data/Generator/templates/{react-app/src → sdk/wasp/client/app}/components/Message.tsx +0 -0
- /package/data/Generator/templates/{react-app/src/test/vitest → sdk/wasp/client/test}/setup.ts +0 -0
|
@@ -1,120 +0,0 @@
|
|
|
1
|
-
(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const s of i.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();var wO=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function od(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var My={exports:{}},Al={},Ry={exports:{}},ne={};/**
|
|
2
|
-
* @license React
|
|
3
|
-
* react.production.min.js
|
|
4
|
-
*
|
|
5
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
6
|
-
*
|
|
7
|
-
* This source code is licensed under the MIT license found in the
|
|
8
|
-
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var ps=Symbol.for("react.element"),nb=Symbol.for("react.portal"),rb=Symbol.for("react.fragment"),ob=Symbol.for("react.strict_mode"),ib=Symbol.for("react.profiler"),sb=Symbol.for("react.provider"),ab=Symbol.for("react.context"),lb=Symbol.for("react.forward_ref"),ub=Symbol.for("react.suspense"),cb=Symbol.for("react.memo"),fb=Symbol.for("react.lazy"),Jh=Symbol.iterator;function db(e){return e===null||typeof e!="object"?null:(e=Jh&&e[Jh]||e["@@iterator"],typeof e=="function"?e:null)}var $y={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Ly=Object.assign,Dy={};function Wo(e,t,n){this.props=e,this.context=t,this.refs=Dy,this.updater=n||$y}Wo.prototype.isReactComponent={};Wo.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Wo.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Oy(){}Oy.prototype=Wo.prototype;function id(e,t,n){this.props=e,this.context=t,this.refs=Dy,this.updater=n||$y}var sd=id.prototype=new Oy;sd.constructor=id;Ly(sd,Wo.prototype);sd.isPureReactComponent=!0;var ep=Array.isArray,Vy=Object.prototype.hasOwnProperty,ad={current:null},Iy={key:!0,ref:!0,__self:!0,__source:!0};function zy(e,t,n){var r,o={},i=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(i=""+t.key),t)Vy.call(t,r)&&!Iy.hasOwnProperty(r)&&(o[r]=t[r]);var a=arguments.length-2;if(a===1)o.children=n;else if(1<a){for(var l=Array(a),u=0;u<a;u++)l[u]=arguments[u+2];o.children=l}if(e&&e.defaultProps)for(r in a=e.defaultProps,a)o[r]===void 0&&(o[r]=a[r]);return{$$typeof:ps,type:e,key:i,ref:s,props:o,_owner:ad.current}}function hb(e,t){return{$$typeof:ps,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function ld(e){return typeof e=="object"&&e!==null&&e.$$typeof===ps}function pb(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var tp=/\/+/g;function mu(e,t){return typeof e=="object"&&e!==null&&e.key!=null?pb(""+e.key):t.toString(36)}function ha(e,t,n,r,o){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var s=!1;if(e===null)s=!0;else switch(i){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case ps:case nb:s=!0}}if(s)return s=e,o=o(s),e=r===""?"."+mu(s,0):r,ep(o)?(n="",e!=null&&(n=e.replace(tp,"$&/")+"/"),ha(o,t,n,"",function(u){return u})):o!=null&&(ld(o)&&(o=hb(o,n+(!o.key||s&&s.key===o.key?"":(""+o.key).replace(tp,"$&/")+"/")+e)),t.push(o)),1;if(s=0,r=r===""?".":r+":",ep(e))for(var a=0;a<e.length;a++){i=e[a];var l=r+mu(i,a);s+=ha(i,t,n,l,o)}else if(l=db(e),typeof l=="function")for(e=l.call(e),a=0;!(i=e.next()).done;)i=i.value,l=r+mu(i,a++),s+=ha(i,t,n,l,o);else if(i==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return s}function As(e,t,n){if(e==null)return e;var r=[],o=0;return ha(e,r,"","",function(i){return t.call(n,i,o++)}),r}function mb(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var qe={current:null},pa={transition:null},gb={ReactCurrentDispatcher:qe,ReactCurrentBatchConfig:pa,ReactCurrentOwner:ad};ne.Children={map:As,forEach:function(e,t,n){As(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return As(e,function(){t++}),t},toArray:function(e){return As(e,function(t){return t})||[]},only:function(e){if(!ld(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};ne.Component=Wo;ne.Fragment=rb;ne.Profiler=ib;ne.PureComponent=id;ne.StrictMode=ob;ne.Suspense=ub;ne.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=gb;ne.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=Ly({},e.props),o=e.key,i=e.ref,s=e._owner;if(t!=null){if(t.ref!==void 0&&(i=t.ref,s=ad.current),t.key!==void 0&&(o=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(l in t)Vy.call(t,l)&&!Iy.hasOwnProperty(l)&&(r[l]=t[l]===void 0&&a!==void 0?a[l]:t[l])}var l=arguments.length-2;if(l===1)r.children=n;else if(1<l){a=Array(l);for(var u=0;u<l;u++)a[u]=arguments[u+2];r.children=a}return{$$typeof:ps,type:e.type,key:o,ref:i,props:r,_owner:s}};ne.createContext=function(e){return e={$$typeof:ab,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:sb,_context:e},e.Consumer=e};ne.createElement=zy;ne.createFactory=function(e){var t=zy.bind(null,e);return t.type=e,t};ne.createRef=function(){return{current:null}};ne.forwardRef=function(e){return{$$typeof:lb,render:e}};ne.isValidElement=ld;ne.lazy=function(e){return{$$typeof:fb,_payload:{_status:-1,_result:e},_init:mb}};ne.memo=function(e,t){return{$$typeof:cb,type:e,compare:t===void 0?null:t}};ne.startTransition=function(e){var t=pa.transition;pa.transition={};try{e()}finally{pa.transition=t}};ne.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")};ne.useCallback=function(e,t){return qe.current.useCallback(e,t)};ne.useContext=function(e){return qe.current.useContext(e)};ne.useDebugValue=function(){};ne.useDeferredValue=function(e){return qe.current.useDeferredValue(e)};ne.useEffect=function(e,t){return qe.current.useEffect(e,t)};ne.useId=function(){return qe.current.useId()};ne.useImperativeHandle=function(e,t,n){return qe.current.useImperativeHandle(e,t,n)};ne.useInsertionEffect=function(e,t){return qe.current.useInsertionEffect(e,t)};ne.useLayoutEffect=function(e,t){return qe.current.useLayoutEffect(e,t)};ne.useMemo=function(e,t){return qe.current.useMemo(e,t)};ne.useReducer=function(e,t,n){return qe.current.useReducer(e,t,n)};ne.useRef=function(e){return qe.current.useRef(e)};ne.useState=function(e){return qe.current.useState(e)};ne.useSyncExternalStore=function(e,t,n){return qe.current.useSyncExternalStore(e,t,n)};ne.useTransition=function(){return qe.current.useTransition()};ne.version="18.2.0";Ry.exports=ne;var S=Ry.exports;const se=od(S);/**
|
|
10
|
-
* @license React
|
|
11
|
-
* react-jsx-runtime.production.min.js
|
|
12
|
-
*
|
|
13
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
14
|
-
*
|
|
15
|
-
* This source code is licensed under the MIT license found in the
|
|
16
|
-
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var yb=S,vb=Symbol.for("react.element"),wb=Symbol.for("react.fragment"),xb=Object.prototype.hasOwnProperty,Sb=yb.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,bb={key:!0,ref:!0,__self:!0,__source:!0};function By(e,t,n){var r,o={},i=null,s=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(s=t.ref);for(r in t)xb.call(t,r)&&!bb.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)o[r]===void 0&&(o[r]=t[r]);return{$$typeof:vb,type:e,key:i,ref:s,props:o,_owner:Sb.current}}Al.Fragment=wb;Al.jsx=By;Al.jsxs=By;My.exports=Al;var I=My.exports;const Va={prefix:String(Math.round(Math.random()*1e10)),current:0},Fy=se.createContext(Va),Eb=se.createContext(!1);let _b=!!(typeof window<"u"&&window.document&&window.document.createElement),gu=new WeakMap;function Cb(e=!1){let t=S.useContext(Fy),n=S.useRef(null);if(n.current===null&&!e){var r,o;let i=(r=se.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||r===void 0||(o=r.ReactCurrentOwner)===null||o===void 0?void 0:o.current;if(i){let s=gu.get(i);s==null?gu.set(i,{id:t.current,state:i.memoizedState}):i.memoizedState!==s.state&&(t.current=s.id,gu.delete(i))}n.current=++t.current}return n.current}function kb(e){let t=S.useContext(Fy);t===Va&&!_b&&console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");let n=Cb(!!e),r=`react-aria${t.prefix}`;return e||`${r}-${n}`}function Tb(e){let t=se.useId(),[n]=S.useState(ud()),r=n?"react-aria":`react-aria${Va.prefix}`;return e||`${r}-${t}`}se.useId;function Pb(){return!1}function Nb(){return!0}function Ab(e){return()=>{}}function ud(){return typeof se.useSyncExternalStore=="function"?se.useSyncExternalStore(Ab,Pb,Nb):S.useContext(Eb)}function Mb(e,t,n){let[r,o]=S.useState(e||t),i=S.useRef(e!==void 0),s=e!==void 0;S.useEffect(()=>{let u=i.current;u!==s&&console.warn(`WARN: A component changed from ${u?"controlled":"uncontrolled"} to ${s?"controlled":"uncontrolled"}.`),i.current=s},[s]);let a=s?e:r,l=S.useCallback((u,...c)=>{let f=(d,...h)=>{n&&(Object.is(a,d)||n(d,...h)),s||(a=d)};typeof u=="function"?(console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"),o((h,...g)=>{let v=u(s?a:h,...g);return f(v,...c),s?h:v})):(s||o(u),f(u,...c))},[s,a,n]);return[a,l]}function jy(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=jy(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function Rb(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=jy(e))&&(r&&(r+=" "),r+=t);return r}const an=typeof document<"u"?se.useLayoutEffect:()=>{};let np=new Map;function $b(e,t){if(e===t)return e;let n=np.get(e);if(n)return n(t),t;let r=np.get(t);return r?(r(e),e):t}function Lb(...e){return(...t)=>{for(let n of e)typeof n=="function"&&n(...t)}}function cd(...e){let t={...e[0]};for(let n=1;n<e.length;n++){let r=e[n];for(let o in r){let i=t[o],s=r[o];typeof i=="function"&&typeof s=="function"&&o[0]==="o"&&o[1]==="n"&&o.charCodeAt(2)>=65&&o.charCodeAt(2)<=90?t[o]=Lb(i,s):(o==="className"||o==="UNSAFE_className")&&typeof i=="string"&&typeof s=="string"?t[o]=Rb(i,s):o==="id"&&i&&s?t.id=$b(i,s):t[o]=s!==void 0?s:i}}return t}function rp(e){if(Db())e.focus({preventScroll:!0});else{let t=Ob(e);e.focus(),Vb(t)}}let Ms=null;function Db(){if(Ms==null){Ms=!1;try{var e=document.createElement("div");e.focus({get preventScroll(){return Ms=!0,!0}})}catch{}}return Ms}function Ob(e){for(var t=e.parentNode,n=[],r=document.scrollingElement||document.documentElement;t instanceof HTMLElement&&t!==r;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&n.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return r instanceof HTMLElement&&n.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft}),n}function Vb(e){for(let{element:t,scrollTop:n,scrollLeft:r}of e)t.scrollTop=n,t.scrollLeft=r}let to=new Map,vc=new Set;function op(){if(typeof window>"u")return;let e=n=>{let r=to.get(n.target);r||(r=new Set,to.set(n.target,r),n.target.addEventListener("transitioncancel",t)),r.add(n.propertyName)},t=n=>{let r=to.get(n.target);if(r&&(r.delete(n.propertyName),r.size===0&&(n.target.removeEventListener("transitioncancel",t),to.delete(n.target)),to.size===0)){for(let o of vc)o();vc.clear()}};document.body.addEventListener("transitionrun",e),document.body.addEventListener("transitionend",t)}typeof document<"u"&&(document.readyState!=="loading"?op():document.addEventListener("DOMContentLoaded",op));function Ib(e){requestAnimationFrame(()=>{to.size===0?e():vc.add(e)})}function zb(){return typeof window.ResizeObserver<"u"}function Bb(e){const{ref:t,onResize:n}=e;S.useEffect(()=>{let r=t==null?void 0:t.current;if(r)if(zb()){const o=new window.ResizeObserver(i=>{i.length&&n()});return o.observe(r),()=>{r&&o.unobserve(r)}}else return window.addEventListener("resize",n,!1),()=>{window.removeEventListener("resize",n,!1)}},[n,t])}function Fb(e){var t;return typeof window>"u"||window.navigator==null?!1:((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands.some(n=>e.test(n.brand)))||e.test(window.navigator.userAgent)}function jb(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function Ub(){return jb(/^Mac/i)}function Hb(){return Fb(/Android/i)}function Wb(e){return e.mozInputSource===0&&e.isTrusted?!0:Hb()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}const Gb=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),Kb=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function Uy(e){if(Intl.Locale){let n=new Intl.Locale(e).maximize().script;return Gb.has(n)}let t=e.split("-")[0];return Kb.has(t)}function Hy(){let e=typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:Uy(e)?"rtl":"ltr"}}let wc=Hy(),vi=new Set;function ip(){wc=Hy();for(let e of vi)e(wc)}function Yb(){let e=ud(),[t,n]=S.useState(wc);return S.useEffect(()=>(vi.size===0&&window.addEventListener("languagechange",ip),vi.add(n),()=>{vi.delete(n),vi.size===0&&window.removeEventListener("languagechange",ip)}),[]),e?{locale:"en-US",direction:"ltr"}:t}const Xb=se.createContext(null);function qb(e){let{locale:t,children:n}=e,r=Yb(),o=t?{locale:t,direction:Uy(t)?"rtl":"ltr"}:r;return se.createElement(Xb.Provider,{value:o},n)}var Ut=function(){return Ut=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},Ut.apply(this,arguments)};function Wy(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function Zb(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,i;r<o;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}const Qb=se.createContext(null);Qb.displayName="PressResponderContext";let ms=null,Jb=new Set,sp=!1,Mr=!1,xc=!1;function fd(e,t){for(let n of Jb)n(e,t)}function eE(e){return!(e.metaKey||!Ub()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function ap(e){Mr=!0,eE(e)&&(ms="keyboard",fd("keyboard",e))}function Kr(e){ms="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(Mr=!0,fd("pointer",e))}function tE(e){Wb(e)&&(Mr=!0,ms="virtual")}function nE(e){e.target===window||e.target===document||(!Mr&&!xc&&(ms="virtual",fd("virtual",e)),Mr=!1,xc=!1)}function rE(){Mr=!1,xc=!0}function lp(){if(typeof window>"u"||sp)return;let e=HTMLElement.prototype.focus;HTMLElement.prototype.focus=function(){Mr=!0,e.apply(this,arguments)},document.addEventListener("keydown",ap,!0),document.addEventListener("keyup",ap,!0),document.addEventListener("click",tE,!0),window.addEventListener("focus",nE,!0),window.addEventListener("blur",rE,!1),typeof PointerEvent<"u"?(document.addEventListener("pointerdown",Kr,!0),document.addEventListener("pointermove",Kr,!0),document.addEventListener("pointerup",Kr,!0)):(document.addEventListener("mousedown",Kr,!0),document.addEventListener("mousemove",Kr,!0),document.addEventListener("mouseup",Kr,!0)),sp=!0}typeof document<"u"&&(document.readyState!=="loading"?lp():document.addEventListener("DOMContentLoaded",lp));function oE(){return ms}function iE(e){if(oE()==="virtual"){let t=document.activeElement;Ib(()=>{document.activeElement===t&&document.contains(e)&&rp(e)})}else rp(e)}function sE(e){if(!(e instanceof HTMLElement)&&!(e instanceof SVGElement))return!1;let{display:t,visibility:n}=e.style,r=t!=="none"&&n!=="hidden"&&n!=="collapse";if(r){const{getComputedStyle:o}=e.ownerDocument.defaultView;let{display:i,visibility:s}=o(e);r=i!=="none"&&s!=="hidden"&&s!=="collapse"}return r}function aE(e,t){return!e.hasAttribute("hidden")&&(e.nodeName==="DETAILS"&&t&&t.nodeName!=="SUMMARY"?e.hasAttribute("open"):!0)}function Gy(e,t){return e.nodeName!=="#comment"&&sE(e)&&aE(e,t)&&(!e.parentElement||Gy(e.parentElement,e))}const up=se.createContext(null);let he=null;function lE(e){let{children:t,contain:n,restoreFocus:r,autoFocus:o}=e,i=S.useRef(),s=S.useRef(),a=S.useRef([]),{parentNode:l}=S.useContext(up)||{},u=S.useMemo(()=>new bc({scopeRef:a}),[a]);an(()=>{let d=l||be.root;if(be.getTreeNode(d.scopeRef)&&he&&!Ia(he,d.scopeRef)){let h=be.getTreeNode(he);h&&(d=h)}d.addChild(u),be.addNode(u)},[u,l]),an(()=>{let d=be.getTreeNode(a);d.contain=n},[n]),an(()=>{let d=i.current.nextSibling,h=[];for(;d&&d!==s.current;)h.push(d),d=d.nextSibling;a.current=h},[t]),pE(a,r,n),dE(a,n),gE(a,r,n),hE(a,o),S.useEffect(()=>{if(a){let d=document.activeElement,h=null;if(Ue(d,a.current)){for(let g of be.traverse())Ue(d,g.scopeRef.current)&&(h=g);h===be.getTreeNode(a)&&(he=h.scopeRef)}return()=>{let g=be.getTreeNode(a).parent.scopeRef;(a===he||Ia(a,he))&&(!g||be.getTreeNode(g))&&(he=g),be.removeTreeNode(a)}}},[a]);let c=S.useMemo(()=>uE(a),[]),f=S.useMemo(()=>({focusManager:c,parentNode:u}),[u,c]);return se.createElement(up.Provider,{value:f},se.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:i}),t,se.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:s}))}function uE(e){return{focusNext(t={}){let n=e.current,{from:r,tabbable:o,wrap:i,accept:s}=t,a=r||document.activeElement,l=n[0].previousElementSibling,u=Ln(wr(n),{tabbable:o,accept:s},n);u.currentNode=Ue(a,n)?a:l;let c=u.nextNode();return!c&&i&&(u.currentNode=l,c=u.nextNode()),c&&tn(c,!0),c},focusPrevious(t={}){let n=e.current,{from:r,tabbable:o,wrap:i,accept:s}=t,a=r||document.activeElement,l=n[n.length-1].nextElementSibling,u=Ln(wr(n),{tabbable:o,accept:s},n);u.currentNode=Ue(a,n)?a:l;let c=u.previousNode();return!c&&i&&(u.currentNode=l,c=u.previousNode()),c&&tn(c,!0),c},focusFirst(t={}){let n=e.current,{tabbable:r,accept:o}=t,i=Ln(wr(n),{tabbable:r,accept:o},n);i.currentNode=n[0].previousElementSibling;let s=i.nextNode();return s&&tn(s,!0),s},focusLast(t={}){let n=e.current,{tabbable:r,accept:o}=t,i=Ln(wr(n),{tabbable:r,accept:o},n);i.currentNode=n[n.length-1].nextElementSibling;let s=i.previousNode();return s&&tn(s,!0),s}}}const dd=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[contenteditable]"],cE=dd.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";dd.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const fE=dd.join(':not([hidden]):not([tabindex="-1"]),');function wr(e){return e[0].parentElement}function wi(e){let t=be.getTreeNode(he);for(;t&&t.scopeRef!==e;){if(t.contain)return!1;t=t.parent}return!0}function dE(e,t){let n=S.useRef(),r=S.useRef(null);an(()=>{let o=e.current;if(!t){r.current&&(cancelAnimationFrame(r.current),r.current=null);return}let i=l=>{if(l.key!=="Tab"||l.altKey||l.ctrlKey||l.metaKey||!wi(e))return;let u=document.activeElement,c=e.current;if(!Ue(u,c))return;let f=Ln(wr(c),{tabbable:!0},c);f.currentNode=u;let d=l.shiftKey?f.previousNode():f.nextNode();d||(f.currentNode=l.shiftKey?c[c.length-1].nextElementSibling:c[0].previousElementSibling,d=l.shiftKey?f.previousNode():f.nextNode()),l.preventDefault(),d&&tn(d,!0)},s=l=>{(!he||Ia(he,e))&&Ue(l.target,e.current)?(he=e,n.current=l.target):wi(e)&&!Sc(l.target,e)?n.current?n.current.focus():he&&za(he.current):wi(e)&&(n.current=l.target)},a=l=>{r.current&&cancelAnimationFrame(r.current),r.current=requestAnimationFrame(()=>{wi(e)&&!Sc(document.activeElement,e)&&(he=e,document.body.contains(l.target)?(n.current=l.target,n.current.focus()):he&&za(he.current))})};return document.addEventListener("keydown",i,!1),document.addEventListener("focusin",s,!1),o.forEach(l=>l.addEventListener("focusin",s,!1)),o.forEach(l=>l.addEventListener("focusout",a,!1)),()=>{document.removeEventListener("keydown",i,!1),document.removeEventListener("focusin",s,!1),o.forEach(l=>l.removeEventListener("focusin",s,!1)),o.forEach(l=>l.removeEventListener("focusout",a,!1))}},[e,t]),an(()=>()=>{r.current&&cancelAnimationFrame(r.current)},[r])}function Ky(e){return Sc(e)}function Ue(e,t){return t.some(n=>n.contains(e))}function Sc(e,t=null){if(e instanceof Element&&e.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:n}of be.traverse(be.getTreeNode(t)))if(Ue(e,n.current))return!0;return!1}function Ia(e,t){var n;let r=(n=be.getTreeNode(t))===null||n===void 0?void 0:n.parent;for(;r;){if(r.scopeRef===e)return!0;r=r.parent}return!1}function tn(e,t=!1){if(e!=null&&!t)try{iE(e)}catch{}else if(e!=null)try{e.focus()}catch{}}function za(e,t=!0){let n=e[0].previousElementSibling,r=Ln(wr(e),{tabbable:t},e);r.currentNode=n;let o=r.nextNode();t&&!o&&(r=Ln(wr(e),{tabbable:!1},e),r.currentNode=n,o=r.nextNode()),tn(o)}function hE(e,t){const n=se.useRef(t);S.useEffect(()=>{n.current&&(he=e,Ue(document.activeElement,he.current)||za(e.current)),n.current=!1},[e])}function pE(e,t,n){an(()=>{if(t||n)return;let r=e.current,o=i=>{let s=i.target;Ue(s,e.current)?he=e:Ky(s)||(he=null)};return document.addEventListener("focusin",o,!1),r.forEach(i=>i.addEventListener("focusin",o,!1)),()=>{document.removeEventListener("focusin",o,!1),r.forEach(i=>i.removeEventListener("focusin",o,!1))}},[e,t,n])}function mE(e){let t=be.getTreeNode(he);for(;t&&t.scopeRef!==e;){if(t.nodeToRestore)return!1;t=t.parent}return(t==null?void 0:t.scopeRef)===e}function gE(e,t,n){const r=S.useRef(typeof document<"u"?document.activeElement:null);an(()=>{let o=e.current;if(!t||n)return;let i=()=>{(!he||Ia(he,e))&&Ue(document.activeElement,e.current)&&(he=e)};return document.addEventListener("focusin",i,!1),o.forEach(s=>s.addEventListener("focusin",i,!1)),()=>{document.removeEventListener("focusin",i,!1),o.forEach(s=>s.removeEventListener("focusin",i,!1))}},[e,n]),an(()=>{if(!t)return;let o=i=>{if(i.key!=="Tab"||i.altKey||i.ctrlKey||i.metaKey||!wi(e))return;let s=document.activeElement;if(!Ue(s,e.current))return;let a=be.getTreeNode(e).nodeToRestore,l=Ln(document.body,{tabbable:!0});l.currentNode=s;let u=i.shiftKey?l.previousNode():l.nextNode();if((!document.body.contains(a)||a===document.body)&&(a=null,be.getTreeNode(e).nodeToRestore=null),(!u||!Ue(u,e.current))&&a){l.currentNode=a;do u=i.shiftKey?l.previousNode():l.nextNode();while(Ue(u,e.current));i.preventDefault(),i.stopPropagation(),u?tn(u,!0):Ky(a)?tn(a,!0):s.blur()}};return n||document.addEventListener("keydown",o,!0),()=>{n||document.removeEventListener("keydown",o,!0)}},[e,t,n]),an(()=>{if(t)return be.getTreeNode(e).nodeToRestore=r.current,()=>{let o=be.getTreeNode(e).nodeToRestore;if(t&&o&&(Ue(document.activeElement,e.current)||document.activeElement===document.body&&mE(e))){let i=be.clone();requestAnimationFrame(()=>{if(document.activeElement===document.body){let s=i.getTreeNode(e);for(;s;){if(s.nodeToRestore&&document.body.contains(s.nodeToRestore)){tn(s.nodeToRestore);return}s=s.parent}for(s=i.getTreeNode(e);s;){if(s.scopeRef&&be.getTreeNode(s.scopeRef)){za(s.scopeRef.current,!0);return}s=s.parent}}})}}},[e,t])}function Ln(e,t,n){let r=t!=null&&t.tabbable?fE:cE,o=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode(i){var s;return!(t==null||(s=t.from)===null||s===void 0)&&s.contains(i)?NodeFilter.FILTER_REJECT:i.matches(r)&&Gy(i)&&(!n||Ue(i,n))&&(!(t!=null&&t.accept)||t.accept(i))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return t!=null&&t.from&&(o.currentNode=t.from),o}class hd{get size(){return this.fastMap.size}getTreeNode(t){return this.fastMap.get(t)}addTreeNode(t,n,r){let o=this.fastMap.get(n??null),i=new bc({scopeRef:t});o.addChild(i),i.parent=o,this.fastMap.set(t,i),r&&(i.nodeToRestore=r)}addNode(t){this.fastMap.set(t.scopeRef,t)}removeTreeNode(t){if(t===null)return;let n=this.fastMap.get(t),r=n.parent;for(let i of this.traverse())i!==n&&n.nodeToRestore&&i.nodeToRestore&&n.scopeRef.current&&Ue(i.nodeToRestore,n.scopeRef.current)&&(i.nodeToRestore=n.nodeToRestore);let o=n.children;r.removeChild(n),o.size>0&&o.forEach(i=>r.addChild(i)),this.fastMap.delete(n.scopeRef)}*traverse(t=this.root){if(t.scopeRef!=null&&(yield t),t.children.size>0)for(let n of t.children)yield*this.traverse(n)}clone(){let t=new hd;for(let n of this.traverse())t.addTreeNode(n.scopeRef,n.parent.scopeRef,n.nodeToRestore);return t}constructor(){this.fastMap=new Map,this.root=new bc({scopeRef:null}),this.fastMap.set(null,this.root)}}class bc{addChild(t){this.children.add(t),t.parent=this}removeChild(t){this.children.delete(t),t.parent=void 0}constructor(t){this.children=new Set,this.contain=!1,this.scopeRef=t.scopeRef}}let be=new hd;var Yy={exports:{}},mt={},Xy={exports:{}},qy={};/**
|
|
18
|
-
* @license React
|
|
19
|
-
* scheduler.production.min.js
|
|
20
|
-
*
|
|
21
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
22
|
-
*
|
|
23
|
-
* This source code is licensed under the MIT license found in the
|
|
24
|
-
* LICENSE file in the root directory of this source tree.
|
|
25
|
-
*/(function(e){function t(P,C){var $=P.length;P.push(C);e:for(;0<$;){var x=$-1>>>1,R=P[x];if(0<o(R,C))P[x]=C,P[$]=R,$=x;else break e}}function n(P){return P.length===0?null:P[0]}function r(P){if(P.length===0)return null;var C=P[0],$=P.pop();if($!==C){P[0]=$;e:for(var x=0,R=P.length,F=R>>>1;x<F;){var U=2*(x+1)-1,H=P[U],W=U+1,K=P[W];if(0>o(H,$))W<R&&0>o(K,H)?(P[x]=K,P[W]=$,x=W):(P[x]=H,P[U]=$,x=U);else if(W<R&&0>o(K,$))P[x]=K,P[W]=$,x=W;else break e}}return C}function o(P,C){var $=P.sortIndex-C.sortIndex;return $!==0?$:P.id-C.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var s=Date,a=s.now();e.unstable_now=function(){return s.now()-a}}var l=[],u=[],c=1,f=null,d=3,h=!1,g=!1,v=!1,b=typeof setTimeout=="function"?setTimeout:null,m=typeof clearTimeout=="function"?clearTimeout:null,p=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function y(P){for(var C=n(u);C!==null;){if(C.callback===null)r(u);else if(C.startTime<=P)r(u),C.sortIndex=C.expirationTime,t(l,C);else break;C=n(u)}}function w(P){if(v=!1,y(P),!g)if(n(l)!==null)g=!0,k(_);else{var C=n(u);C!==null&&V(w,C.startTime-P)}}function _(P,C){g=!1,v&&(v=!1,m(A),A=-1),h=!0;var $=d;try{for(y(C),f=n(l);f!==null&&(!(f.expirationTime>C)||P&&!D());){var x=f.callback;if(typeof x=="function"){f.callback=null,d=f.priorityLevel;var R=x(f.expirationTime<=C);C=e.unstable_now(),typeof R=="function"?f.callback=R:f===n(l)&&r(l),y(C)}else r(l);f=n(l)}if(f!==null)var F=!0;else{var U=n(u);U!==null&&V(w,U.startTime-C),F=!1}return F}finally{f=null,d=$,h=!1}}var T=!1,N=null,A=-1,z=5,B=-1;function D(){return!(e.unstable_now()-B<z)}function O(){if(N!==null){var P=e.unstable_now();B=P;var C=!0;try{C=N(!0,P)}finally{C?L():(T=!1,N=null)}}else T=!1}var L;if(typeof p=="function")L=function(){p(O)};else if(typeof MessageChannel<"u"){var E=new MessageChannel,M=E.port2;E.port1.onmessage=O,L=function(){M.postMessage(null)}}else L=function(){b(O,0)};function k(P){N=P,T||(T=!0,L())}function V(P,C){A=b(function(){P(e.unstable_now())},C)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(P){P.callback=null},e.unstable_continueExecution=function(){g||h||(g=!0,k(_))},e.unstable_forceFrameRate=function(P){0>P||125<P?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):z=0<P?Math.floor(1e3/P):5},e.unstable_getCurrentPriorityLevel=function(){return d},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(P){switch(d){case 1:case 2:case 3:var C=3;break;default:C=d}var $=d;d=C;try{return P()}finally{d=$}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(P,C){switch(P){case 1:case 2:case 3:case 4:case 5:break;default:P=3}var $=d;d=P;try{return C()}finally{d=$}},e.unstable_scheduleCallback=function(P,C,$){var x=e.unstable_now();switch(typeof $=="object"&&$!==null?($=$.delay,$=typeof $=="number"&&0<$?x+$:x):$=x,P){case 1:var R=-1;break;case 2:R=250;break;case 5:R=1073741823;break;case 4:R=1e4;break;default:R=5e3}return R=$+R,P={id:c++,callback:C,priorityLevel:P,startTime:$,expirationTime:R,sortIndex:-1},$>x?(P.sortIndex=$,t(u,P),n(l)===null&&P===n(u)&&(v?(m(A),A=-1):v=!0,V(w,$-x))):(P.sortIndex=R,t(l,P),g||h||(g=!0,k(_))),P},e.unstable_shouldYield=D,e.unstable_wrapCallback=function(P){var C=d;return function(){var $=d;d=C;try{return P.apply(this,arguments)}finally{d=$}}}})(qy);Xy.exports=qy;var yE=Xy.exports;/**
|
|
26
|
-
* @license React
|
|
27
|
-
* react-dom.production.min.js
|
|
28
|
-
*
|
|
29
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
30
|
-
*
|
|
31
|
-
* This source code is licensed under the MIT license found in the
|
|
32
|
-
* LICENSE file in the root directory of this source tree.
|
|
33
|
-
*/var Zy=S,dt=yE;function j(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var Qy=new Set,Fi={};function zr(e,t){Ro(e,t),Ro(e+"Capture",t)}function Ro(e,t){for(Fi[e]=t,e=0;e<t.length;e++)Qy.add(t[e])}var fn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ec=Object.prototype.hasOwnProperty,vE=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,cp={},fp={};function wE(e){return Ec.call(fp,e)?!0:Ec.call(cp,e)?!1:vE.test(e)?fp[e]=!0:(cp[e]=!0,!1)}function xE(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function SE(e,t,n,r){if(t===null||typeof t>"u"||xE(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Ze(e,t,n,r,o,i,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=s}var Ve={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Ve[e]=new Ze(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Ve[t]=new Ze(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ve[e]=new Ze(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ve[e]=new Ze(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Ve[e]=new Ze(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Ve[e]=new Ze(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Ve[e]=new Ze(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Ve[e]=new Ze(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Ve[e]=new Ze(e,5,!1,e.toLowerCase(),null,!1,!1)});var pd=/[\-:]([a-z])/g;function md(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(pd,md);Ve[t]=new Ze(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(pd,md);Ve[t]=new Ze(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(pd,md);Ve[t]=new Ze(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Ve[e]=new Ze(e,1,!1,e.toLowerCase(),null,!1,!1)});Ve.xlinkHref=new Ze("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Ve[e]=new Ze(e,1,!1,e.toLowerCase(),null,!0,!0)});function gd(e,t,n,r){var o=Ve.hasOwnProperty(t)?Ve[t]:null;(o!==null?o.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(SE(t,n,o,r)&&(n=null),r||o===null?wE(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=n===null?o.type===3?!1:"":n:(t=o.attributeName,r=o.attributeNamespace,n===null?e.removeAttribute(t):(o=o.type,n=o===3||o===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var vn=Zy.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Rs=Symbol.for("react.element"),ro=Symbol.for("react.portal"),oo=Symbol.for("react.fragment"),yd=Symbol.for("react.strict_mode"),_c=Symbol.for("react.profiler"),Jy=Symbol.for("react.provider"),e0=Symbol.for("react.context"),vd=Symbol.for("react.forward_ref"),Cc=Symbol.for("react.suspense"),kc=Symbol.for("react.suspense_list"),wd=Symbol.for("react.memo"),kn=Symbol.for("react.lazy"),t0=Symbol.for("react.offscreen"),dp=Symbol.iterator;function Jo(e){return e===null||typeof e!="object"?null:(e=dp&&e[dp]||e["@@iterator"],typeof e=="function"?e:null)}var ve=Object.assign,yu;function xi(e){if(yu===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);yu=t&&t[1]||""}return`
|
|
34
|
-
`+yu+e}var vu=!1;function wu(e,t){if(!e||vu)return"";vu=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}catch(u){if(u&&r&&typeof u.stack=="string"){for(var o=u.stack.split(`
|
|
35
|
-
`),i=r.stack.split(`
|
|
36
|
-
`),s=o.length-1,a=i.length-1;1<=s&&0<=a&&o[s]!==i[a];)a--;for(;1<=s&&0<=a;s--,a--)if(o[s]!==i[a]){if(s!==1||a!==1)do if(s--,a--,0>a||o[s]!==i[a]){var l=`
|
|
37
|
-
`+o[s].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=s&&0<=a);break}}}finally{vu=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?xi(e):""}function bE(e){switch(e.tag){case 5:return xi(e.type);case 16:return xi("Lazy");case 13:return xi("Suspense");case 19:return xi("SuspenseList");case 0:case 2:case 15:return e=wu(e.type,!1),e;case 11:return e=wu(e.type.render,!1),e;case 1:return e=wu(e.type,!0),e;default:return""}}function Tc(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case oo:return"Fragment";case ro:return"Portal";case _c:return"Profiler";case yd:return"StrictMode";case Cc:return"Suspense";case kc:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case e0:return(e.displayName||"Context")+".Consumer";case Jy:return(e._context.displayName||"Context")+".Provider";case vd:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case wd:return t=e.displayName||null,t!==null?t:Tc(e.type)||"Memo";case kn:t=e._payload,e=e._init;try{return Tc(e(t))}catch{}}return null}function EE(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Tc(t);case 8:return t===yd?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function qn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function n0(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function _E(e){var t=n0(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(s){r=""+s,i.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function $s(e){e._valueTracker||(e._valueTracker=_E(e))}function r0(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=n0(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Ba(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Pc(e,t){var n=t.checked;return ve({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function hp(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=qn(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function o0(e,t){t=t.checked,t!=null&&gd(e,"checked",t,!1)}function Nc(e,t){o0(e,t);var n=qn(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Ac(e,t.type,n):t.hasOwnProperty("defaultValue")&&Ac(e,t.type,qn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function pp(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Ac(e,t,n){(t!=="number"||Ba(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Si=Array.isArray;function So(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+qn(n),t=null,o=0;o<e.length;o++){if(e[o].value===n){e[o].selected=!0,r&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function Mc(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(j(91));return ve({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function mp(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(j(92));if(Si(n)){if(1<n.length)throw Error(j(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:qn(n)}}function i0(e,t){var n=qn(t.value),r=qn(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function gp(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function s0(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Rc(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?s0(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Ls,a0=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,o){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,o)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Ls=Ls||document.createElement("div"),Ls.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Ls.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function ji(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Pi={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},CE=["Webkit","ms","Moz","O"];Object.keys(Pi).forEach(function(e){CE.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Pi[t]=Pi[e]})});function l0(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Pi.hasOwnProperty(e)&&Pi[e]?(""+t).trim():t+"px"}function u0(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=l0(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var kE=ve({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function $c(e,t){if(t){if(kE[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(j(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(j(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(j(61))}if(t.style!=null&&typeof t.style!="object")throw Error(j(62))}}function Lc(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Dc=null;function xd(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Oc=null,bo=null,Eo=null;function yp(e){if(e=vs(e)){if(typeof Oc!="function")throw Error(j(280));var t=e.stateNode;t&&(t=Dl(t),Oc(e.stateNode,e.type,t))}}function c0(e){bo?Eo?Eo.push(e):Eo=[e]:bo=e}function f0(){if(bo){var e=bo,t=Eo;if(Eo=bo=null,yp(e),t)for(e=0;e<t.length;e++)yp(t[e])}}function d0(e,t){return e(t)}function h0(){}var xu=!1;function p0(e,t,n){if(xu)return e(t,n);xu=!0;try{return d0(e,t,n)}finally{xu=!1,(bo!==null||Eo!==null)&&(h0(),f0())}}function Ui(e,t){var n=e.stateNode;if(n===null)return null;var r=Dl(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(j(231,t,typeof n));return n}var Vc=!1;if(fn)try{var ei={};Object.defineProperty(ei,"passive",{get:function(){Vc=!0}}),window.addEventListener("test",ei,ei),window.removeEventListener("test",ei,ei)}catch{Vc=!1}function TE(e,t,n,r,o,i,s,a,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(c){this.onError(c)}}var Ni=!1,Fa=null,ja=!1,Ic=null,PE={onError:function(e){Ni=!0,Fa=e}};function NE(e,t,n,r,o,i,s,a,l){Ni=!1,Fa=null,TE.apply(PE,arguments)}function AE(e,t,n,r,o,i,s,a,l){if(NE.apply(this,arguments),Ni){if(Ni){var u=Fa;Ni=!1,Fa=null}else throw Error(j(198));ja||(ja=!0,Ic=u)}}function Br(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function m0(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function vp(e){if(Br(e)!==e)throw Error(j(188))}function ME(e){var t=e.alternate;if(!t){if(t=Br(e),t===null)throw Error(j(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(o===null)break;var i=o.alternate;if(i===null){if(r=o.return,r!==null){n=r;continue}break}if(o.child===i.child){for(i=o.child;i;){if(i===n)return vp(o),e;if(i===r)return vp(o),t;i=i.sibling}throw Error(j(188))}if(n.return!==r.return)n=o,r=i;else{for(var s=!1,a=o.child;a;){if(a===n){s=!0,n=o,r=i;break}if(a===r){s=!0,r=o,n=i;break}a=a.sibling}if(!s){for(a=i.child;a;){if(a===n){s=!0,n=i,r=o;break}if(a===r){s=!0,r=i,n=o;break}a=a.sibling}if(!s)throw Error(j(189))}}if(n.alternate!==r)throw Error(j(190))}if(n.tag!==3)throw Error(j(188));return n.stateNode.current===n?e:t}function g0(e){return e=ME(e),e!==null?y0(e):null}function y0(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=y0(e);if(t!==null)return t;e=e.sibling}return null}var v0=dt.unstable_scheduleCallback,wp=dt.unstable_cancelCallback,RE=dt.unstable_shouldYield,$E=dt.unstable_requestPaint,Ee=dt.unstable_now,LE=dt.unstable_getCurrentPriorityLevel,Sd=dt.unstable_ImmediatePriority,w0=dt.unstable_UserBlockingPriority,Ua=dt.unstable_NormalPriority,DE=dt.unstable_LowPriority,x0=dt.unstable_IdlePriority,Ml=null,Wt=null;function OE(e){if(Wt&&typeof Wt.onCommitFiberRoot=="function")try{Wt.onCommitFiberRoot(Ml,e,void 0,(e.current.flags&128)===128)}catch{}}var Dt=Math.clz32?Math.clz32:zE,VE=Math.log,IE=Math.LN2;function zE(e){return e>>>=0,e===0?32:31-(VE(e)/IE|0)|0}var Ds=64,Os=4194304;function bi(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Ha(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,s=n&268435455;if(s!==0){var a=s&~o;a!==0?r=bi(a):(i&=s,i!==0&&(r=bi(i)))}else s=n&~o,s!==0?r=bi(s):i!==0&&(r=bi(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-Dt(t),o=1<<n,r|=e[n],t&=~o;return r}function BE(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function FE(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,i=e.pendingLanes;0<i;){var s=31-Dt(i),a=1<<s,l=o[s];l===-1?(!(a&n)||a&r)&&(o[s]=BE(a,t)):l<=t&&(e.expiredLanes|=a),i&=~a}}function zc(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function S0(){var e=Ds;return Ds<<=1,!(Ds&4194240)&&(Ds=64),e}function Su(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function gs(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Dt(t),e[t]=n}function jE(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-Dt(n),i=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~i}}function bd(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Dt(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var ie=0;function b0(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var E0,Ed,_0,C0,k0,Bc=!1,Vs=[],Vn=null,In=null,zn=null,Hi=new Map,Wi=new Map,Mn=[],UE="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function xp(e,t){switch(e){case"focusin":case"focusout":Vn=null;break;case"dragenter":case"dragleave":In=null;break;case"mouseover":case"mouseout":zn=null;break;case"pointerover":case"pointerout":Hi.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Wi.delete(t.pointerId)}}function ti(e,t,n,r,o,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[o]},t!==null&&(t=vs(t),t!==null&&Ed(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function HE(e,t,n,r,o){switch(t){case"focusin":return Vn=ti(Vn,e,t,n,r,o),!0;case"dragenter":return In=ti(In,e,t,n,r,o),!0;case"mouseover":return zn=ti(zn,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return Hi.set(i,ti(Hi.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,Wi.set(i,ti(Wi.get(i)||null,e,t,n,r,o)),!0}return!1}function T0(e){var t=xr(e.target);if(t!==null){var n=Br(t);if(n!==null){if(t=n.tag,t===13){if(t=m0(n),t!==null){e.blockedOn=t,k0(e.priority,function(){_0(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function ma(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Fc(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Dc=r,n.target.dispatchEvent(r),Dc=null}else return t=vs(n),t!==null&&Ed(t),e.blockedOn=n,!1;t.shift()}return!0}function Sp(e,t,n){ma(e)&&n.delete(t)}function WE(){Bc=!1,Vn!==null&&ma(Vn)&&(Vn=null),In!==null&&ma(In)&&(In=null),zn!==null&&ma(zn)&&(zn=null),Hi.forEach(Sp),Wi.forEach(Sp)}function ni(e,t){e.blockedOn===t&&(e.blockedOn=null,Bc||(Bc=!0,dt.unstable_scheduleCallback(dt.unstable_NormalPriority,WE)))}function Gi(e){function t(o){return ni(o,e)}if(0<Vs.length){ni(Vs[0],e);for(var n=1;n<Vs.length;n++){var r=Vs[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Vn!==null&&ni(Vn,e),In!==null&&ni(In,e),zn!==null&&ni(zn,e),Hi.forEach(t),Wi.forEach(t),n=0;n<Mn.length;n++)r=Mn[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Mn.length&&(n=Mn[0],n.blockedOn===null);)T0(n),n.blockedOn===null&&Mn.shift()}var _o=vn.ReactCurrentBatchConfig,Wa=!0;function GE(e,t,n,r){var o=ie,i=_o.transition;_o.transition=null;try{ie=1,_d(e,t,n,r)}finally{ie=o,_o.transition=i}}function KE(e,t,n,r){var o=ie,i=_o.transition;_o.transition=null;try{ie=4,_d(e,t,n,r)}finally{ie=o,_o.transition=i}}function _d(e,t,n,r){if(Wa){var o=Fc(e,t,n,r);if(o===null)Mu(e,t,r,Ga,n),xp(e,r);else if(HE(o,e,t,n,r))r.stopPropagation();else if(xp(e,r),t&4&&-1<UE.indexOf(e)){for(;o!==null;){var i=vs(o);if(i!==null&&E0(i),i=Fc(e,t,n,r),i===null&&Mu(e,t,r,Ga,n),i===o)break;o=i}o!==null&&r.stopPropagation()}else Mu(e,t,r,null,n)}}var Ga=null;function Fc(e,t,n,r){if(Ga=null,e=xd(r),e=xr(e),e!==null)if(t=Br(e),t===null)e=null;else if(n=t.tag,n===13){if(e=m0(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Ga=e,null}function P0(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(LE()){case Sd:return 1;case w0:return 4;case Ua:case DE:return 16;case x0:return 536870912;default:return 16}default:return 16}}var Dn=null,Cd=null,ga=null;function N0(){if(ga)return ga;var e,t=Cd,n=t.length,r,o="value"in Dn?Dn.value:Dn.textContent,i=o.length;for(e=0;e<n&&t[e]===o[e];e++);var s=n-e;for(r=1;r<=s&&t[n-r]===o[i-r];r++);return ga=o.slice(e,1<r?1-r:void 0)}function ya(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Is(){return!0}function bp(){return!1}function gt(e){function t(n,r,o,i,s){this._reactName=n,this._targetInst=o,this.type=r,this.nativeEvent=i,this.target=s,this.currentTarget=null;for(var a in e)e.hasOwnProperty(a)&&(n=e[a],this[a]=n?n(i):i[a]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?Is:bp,this.isPropagationStopped=bp,this}return ve(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Is)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Is)},persist:function(){},isPersistent:Is}),t}var Go={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},kd=gt(Go),ys=ve({},Go,{view:0,detail:0}),YE=gt(ys),bu,Eu,ri,Rl=ve({},ys,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Td,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==ri&&(ri&&e.type==="mousemove"?(bu=e.screenX-ri.screenX,Eu=e.screenY-ri.screenY):Eu=bu=0,ri=e),bu)},movementY:function(e){return"movementY"in e?e.movementY:Eu}}),Ep=gt(Rl),XE=ve({},Rl,{dataTransfer:0}),qE=gt(XE),ZE=ve({},ys,{relatedTarget:0}),_u=gt(ZE),QE=ve({},Go,{animationName:0,elapsedTime:0,pseudoElement:0}),JE=gt(QE),e_=ve({},Go,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),t_=gt(e_),n_=ve({},Go,{data:0}),_p=gt(n_),r_={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},o_={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},i_={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function s_(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=i_[e])?!!t[e]:!1}function Td(){return s_}var a_=ve({},ys,{key:function(e){if(e.key){var t=r_[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=ya(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?o_[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Td,charCode:function(e){return e.type==="keypress"?ya(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?ya(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),l_=gt(a_),u_=ve({},Rl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Cp=gt(u_),c_=ve({},ys,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Td}),f_=gt(c_),d_=ve({},Go,{propertyName:0,elapsedTime:0,pseudoElement:0}),h_=gt(d_),p_=ve({},Rl,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),m_=gt(p_),g_=[9,13,27,32],Pd=fn&&"CompositionEvent"in window,Ai=null;fn&&"documentMode"in document&&(Ai=document.documentMode);var y_=fn&&"TextEvent"in window&&!Ai,A0=fn&&(!Pd||Ai&&8<Ai&&11>=Ai),kp=String.fromCharCode(32),Tp=!1;function M0(e,t){switch(e){case"keyup":return g_.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function R0(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var io=!1;function v_(e,t){switch(e){case"compositionend":return R0(t);case"keypress":return t.which!==32?null:(Tp=!0,kp);case"textInput":return e=t.data,e===kp&&Tp?null:e;default:return null}}function w_(e,t){if(io)return e==="compositionend"||!Pd&&M0(e,t)?(e=N0(),ga=Cd=Dn=null,io=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return A0&&t.locale!=="ko"?null:t.data;default:return null}}var x_={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Pp(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!x_[e.type]:t==="textarea"}function $0(e,t,n,r){c0(r),t=Ka(t,"onChange"),0<t.length&&(n=new kd("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Mi=null,Ki=null;function S_(e){H0(e,0)}function $l(e){var t=lo(e);if(r0(t))return e}function b_(e,t){if(e==="change")return t}var L0=!1;if(fn){var Cu;if(fn){var ku="oninput"in document;if(!ku){var Np=document.createElement("div");Np.setAttribute("oninput","return;"),ku=typeof Np.oninput=="function"}Cu=ku}else Cu=!1;L0=Cu&&(!document.documentMode||9<document.documentMode)}function Ap(){Mi&&(Mi.detachEvent("onpropertychange",D0),Ki=Mi=null)}function D0(e){if(e.propertyName==="value"&&$l(Ki)){var t=[];$0(t,Ki,e,xd(e)),p0(S_,t)}}function E_(e,t,n){e==="focusin"?(Ap(),Mi=t,Ki=n,Mi.attachEvent("onpropertychange",D0)):e==="focusout"&&Ap()}function __(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return $l(Ki)}function C_(e,t){if(e==="click")return $l(t)}function k_(e,t){if(e==="input"||e==="change")return $l(t)}function T_(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Vt=typeof Object.is=="function"?Object.is:T_;function Yi(e,t){if(Vt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!Ec.call(t,o)||!Vt(e[o],t[o]))return!1}return!0}function Mp(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Rp(e,t){var n=Mp(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Mp(n)}}function O0(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?O0(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function V0(){for(var e=window,t=Ba();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Ba(e.document)}return t}function Nd(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function P_(e){var t=V0(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&O0(n.ownerDocument.documentElement,n)){if(r!==null&&Nd(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=Rp(n,i);var s=Rp(n,r);o&&s&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var N_=fn&&"documentMode"in document&&11>=document.documentMode,so=null,jc=null,Ri=null,Uc=!1;function $p(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Uc||so==null||so!==Ba(r)||(r=so,"selectionStart"in r&&Nd(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Ri&&Yi(Ri,r)||(Ri=r,r=Ka(jc,"onSelect"),0<r.length&&(t=new kd("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=so)))}function zs(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var ao={animationend:zs("Animation","AnimationEnd"),animationiteration:zs("Animation","AnimationIteration"),animationstart:zs("Animation","AnimationStart"),transitionend:zs("Transition","TransitionEnd")},Tu={},I0={};fn&&(I0=document.createElement("div").style,"AnimationEvent"in window||(delete ao.animationend.animation,delete ao.animationiteration.animation,delete ao.animationstart.animation),"TransitionEvent"in window||delete ao.transitionend.transition);function Ll(e){if(Tu[e])return Tu[e];if(!ao[e])return e;var t=ao[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in I0)return Tu[e]=t[n];return e}var z0=Ll("animationend"),B0=Ll("animationiteration"),F0=Ll("animationstart"),j0=Ll("transitionend"),U0=new Map,Lp="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function er(e,t){U0.set(e,t),zr(t,[e])}for(var Pu=0;Pu<Lp.length;Pu++){var Nu=Lp[Pu],A_=Nu.toLowerCase(),M_=Nu[0].toUpperCase()+Nu.slice(1);er(A_,"on"+M_)}er(z0,"onAnimationEnd");er(B0,"onAnimationIteration");er(F0,"onAnimationStart");er("dblclick","onDoubleClick");er("focusin","onFocus");er("focusout","onBlur");er(j0,"onTransitionEnd");Ro("onMouseEnter",["mouseout","mouseover"]);Ro("onMouseLeave",["mouseout","mouseover"]);Ro("onPointerEnter",["pointerout","pointerover"]);Ro("onPointerLeave",["pointerout","pointerover"]);zr("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));zr("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));zr("onBeforeInput",["compositionend","keypress","textInput","paste"]);zr("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));zr("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));zr("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ei="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),R_=new Set("cancel close invalid load scroll toggle".split(" ").concat(Ei));function Dp(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,AE(r,t,void 0,e),e.currentTarget=null}function H0(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var s=r.length-1;0<=s;s--){var a=r[s],l=a.instance,u=a.currentTarget;if(a=a.listener,l!==i&&o.isPropagationStopped())break e;Dp(o,a,u),i=l}else for(s=0;s<r.length;s++){if(a=r[s],l=a.instance,u=a.currentTarget,a=a.listener,l!==i&&o.isPropagationStopped())break e;Dp(o,a,u),i=l}}}if(ja)throw e=Ic,ja=!1,Ic=null,e}function ce(e,t){var n=t[Yc];n===void 0&&(n=t[Yc]=new Set);var r=e+"__bubble";n.has(r)||(W0(t,e,2,!1),n.add(r))}function Au(e,t,n){var r=0;t&&(r|=4),W0(n,e,r,t)}var Bs="_reactListening"+Math.random().toString(36).slice(2);function Xi(e){if(!e[Bs]){e[Bs]=!0,Qy.forEach(function(n){n!=="selectionchange"&&(R_.has(n)||Au(n,!1,e),Au(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Bs]||(t[Bs]=!0,Au("selectionchange",!1,t))}}function W0(e,t,n,r){switch(P0(t)){case 1:var o=GE;break;case 4:o=KE;break;default:o=_d}n=o.bind(null,t,n,e),o=void 0,!Vc||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),r?o!==void 0?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):o!==void 0?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function Mu(e,t,n,r,o){var i=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var s=r.tag;if(s===3||s===4){var a=r.stateNode.containerInfo;if(a===o||a.nodeType===8&&a.parentNode===o)break;if(s===4)for(s=r.return;s!==null;){var l=s.tag;if((l===3||l===4)&&(l=s.stateNode.containerInfo,l===o||l.nodeType===8&&l.parentNode===o))return;s=s.return}for(;a!==null;){if(s=xr(a),s===null)return;if(l=s.tag,l===5||l===6){r=i=s;continue e}a=a.parentNode}}r=r.return}p0(function(){var u=i,c=xd(n),f=[];e:{var d=U0.get(e);if(d!==void 0){var h=kd,g=e;switch(e){case"keypress":if(ya(n)===0)break e;case"keydown":case"keyup":h=l_;break;case"focusin":g="focus",h=_u;break;case"focusout":g="blur",h=_u;break;case"beforeblur":case"afterblur":h=_u;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":h=Ep;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":h=qE;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":h=f_;break;case z0:case B0:case F0:h=JE;break;case j0:h=h_;break;case"scroll":h=YE;break;case"wheel":h=m_;break;case"copy":case"cut":case"paste":h=t_;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":h=Cp}var v=(t&4)!==0,b=!v&&e==="scroll",m=v?d!==null?d+"Capture":null:d;v=[];for(var p=u,y;p!==null;){y=p;var w=y.stateNode;if(y.tag===5&&w!==null&&(y=w,m!==null&&(w=Ui(p,m),w!=null&&v.push(qi(p,w,y)))),b)break;p=p.return}0<v.length&&(d=new h(d,g,null,n,c),f.push({event:d,listeners:v}))}}if(!(t&7)){e:{if(d=e==="mouseover"||e==="pointerover",h=e==="mouseout"||e==="pointerout",d&&n!==Dc&&(g=n.relatedTarget||n.fromElement)&&(xr(g)||g[dn]))break e;if((h||d)&&(d=c.window===c?c:(d=c.ownerDocument)?d.defaultView||d.parentWindow:window,h?(g=n.relatedTarget||n.toElement,h=u,g=g?xr(g):null,g!==null&&(b=Br(g),g!==b||g.tag!==5&&g.tag!==6)&&(g=null)):(h=null,g=u),h!==g)){if(v=Ep,w="onMouseLeave",m="onMouseEnter",p="mouse",(e==="pointerout"||e==="pointerover")&&(v=Cp,w="onPointerLeave",m="onPointerEnter",p="pointer"),b=h==null?d:lo(h),y=g==null?d:lo(g),d=new v(w,p+"leave",h,n,c),d.target=b,d.relatedTarget=y,w=null,xr(c)===u&&(v=new v(m,p+"enter",g,n,c),v.target=y,v.relatedTarget=b,w=v),b=w,h&&g)t:{for(v=h,m=g,p=0,y=v;y;y=Yr(y))p++;for(y=0,w=m;w;w=Yr(w))y++;for(;0<p-y;)v=Yr(v),p--;for(;0<y-p;)m=Yr(m),y--;for(;p--;){if(v===m||m!==null&&v===m.alternate)break t;v=Yr(v),m=Yr(m)}v=null}else v=null;h!==null&&Op(f,d,h,v,!1),g!==null&&b!==null&&Op(f,b,g,v,!0)}}e:{if(d=u?lo(u):window,h=d.nodeName&&d.nodeName.toLowerCase(),h==="select"||h==="input"&&d.type==="file")var _=b_;else if(Pp(d))if(L0)_=k_;else{_=__;var T=E_}else(h=d.nodeName)&&h.toLowerCase()==="input"&&(d.type==="checkbox"||d.type==="radio")&&(_=C_);if(_&&(_=_(e,u))){$0(f,_,n,c);break e}T&&T(e,d,u),e==="focusout"&&(T=d._wrapperState)&&T.controlled&&d.type==="number"&&Ac(d,"number",d.value)}switch(T=u?lo(u):window,e){case"focusin":(Pp(T)||T.contentEditable==="true")&&(so=T,jc=u,Ri=null);break;case"focusout":Ri=jc=so=null;break;case"mousedown":Uc=!0;break;case"contextmenu":case"mouseup":case"dragend":Uc=!1,$p(f,n,c);break;case"selectionchange":if(N_)break;case"keydown":case"keyup":$p(f,n,c)}var N;if(Pd)e:{switch(e){case"compositionstart":var A="onCompositionStart";break e;case"compositionend":A="onCompositionEnd";break e;case"compositionupdate":A="onCompositionUpdate";break e}A=void 0}else io?M0(e,n)&&(A="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(A="onCompositionStart");A&&(A0&&n.locale!=="ko"&&(io||A!=="onCompositionStart"?A==="onCompositionEnd"&&io&&(N=N0()):(Dn=c,Cd="value"in Dn?Dn.value:Dn.textContent,io=!0)),T=Ka(u,A),0<T.length&&(A=new _p(A,e,null,n,c),f.push({event:A,listeners:T}),N?A.data=N:(N=R0(n),N!==null&&(A.data=N)))),(N=y_?v_(e,n):w_(e,n))&&(u=Ka(u,"onBeforeInput"),0<u.length&&(c=new _p("onBeforeInput","beforeinput",null,n,c),f.push({event:c,listeners:u}),c.data=N))}H0(f,t)})}function qi(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Ka(e,t){for(var n=t+"Capture",r=[];e!==null;){var o=e,i=o.stateNode;o.tag===5&&i!==null&&(o=i,i=Ui(e,n),i!=null&&r.unshift(qi(e,i,o)),i=Ui(e,t),i!=null&&r.push(qi(e,i,o))),e=e.return}return r}function Yr(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Op(e,t,n,r,o){for(var i=t._reactName,s=[];n!==null&&n!==r;){var a=n,l=a.alternate,u=a.stateNode;if(l!==null&&l===r)break;a.tag===5&&u!==null&&(a=u,o?(l=Ui(n,i),l!=null&&s.unshift(qi(n,l,a))):o||(l=Ui(n,i),l!=null&&s.push(qi(n,l,a)))),n=n.return}s.length!==0&&e.push({event:t,listeners:s})}var $_=/\r\n?/g,L_=/\u0000|\uFFFD/g;function Vp(e){return(typeof e=="string"?e:""+e).replace($_,`
|
|
38
|
-
`).replace(L_,"")}function Fs(e,t,n){if(t=Vp(t),Vp(e)!==t&&n)throw Error(j(425))}function Ya(){}var Hc=null,Wc=null;function Gc(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Kc=typeof setTimeout=="function"?setTimeout:void 0,D_=typeof clearTimeout=="function"?clearTimeout:void 0,Ip=typeof Promise=="function"?Promise:void 0,O_=typeof queueMicrotask=="function"?queueMicrotask:typeof Ip<"u"?function(e){return Ip.resolve(null).then(e).catch(V_)}:Kc;function V_(e){setTimeout(function(){throw e})}function Ru(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&o.nodeType===8)if(n=o.data,n==="/$"){if(r===0){e.removeChild(o),Gi(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=o}while(n);Gi(t)}function Bn(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function zp(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var Ko=Math.random().toString(36).slice(2),Ht="__reactFiber$"+Ko,Zi="__reactProps$"+Ko,dn="__reactContainer$"+Ko,Yc="__reactEvents$"+Ko,I_="__reactListeners$"+Ko,z_="__reactHandles$"+Ko;function xr(e){var t=e[Ht];if(t)return t;for(var n=e.parentNode;n;){if(t=n[dn]||n[Ht]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=zp(e);e!==null;){if(n=e[Ht])return n;e=zp(e)}return t}e=n,n=e.parentNode}return null}function vs(e){return e=e[Ht]||e[dn],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function lo(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(j(33))}function Dl(e){return e[Zi]||null}var Xc=[],uo=-1;function tr(e){return{current:e}}function fe(e){0>uo||(e.current=Xc[uo],Xc[uo]=null,uo--)}function ae(e,t){uo++,Xc[uo]=e.current,e.current=t}var Zn={},He=tr(Zn),nt=tr(!1),Rr=Zn;function $o(e,t){var n=e.type.contextTypes;if(!n)return Zn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function rt(e){return e=e.childContextTypes,e!=null}function Xa(){fe(nt),fe(He)}function Bp(e,t,n){if(He.current!==Zn)throw Error(j(168));ae(He,t),ae(nt,n)}function G0(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(j(108,EE(e)||"Unknown",o));return ve({},n,r)}function qa(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Zn,Rr=He.current,ae(He,e),ae(nt,nt.current),!0}function Fp(e,t,n){var r=e.stateNode;if(!r)throw Error(j(169));n?(e=G0(e,t,Rr),r.__reactInternalMemoizedMergedChildContext=e,fe(nt),fe(He),ae(He,e)):fe(nt),ae(nt,n)}var en=null,Ol=!1,$u=!1;function K0(e){en===null?en=[e]:en.push(e)}function B_(e){Ol=!0,K0(e)}function nr(){if(!$u&&en!==null){$u=!0;var e=0,t=ie;try{var n=en;for(ie=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}en=null,Ol=!1}catch(o){throw en!==null&&(en=en.slice(e+1)),v0(Sd,nr),o}finally{ie=t,$u=!1}}return null}var co=[],fo=0,Za=null,Qa=0,vt=[],wt=0,$r=null,nn=1,rn="";function pr(e,t){co[fo++]=Qa,co[fo++]=Za,Za=e,Qa=t}function Y0(e,t,n){vt[wt++]=nn,vt[wt++]=rn,vt[wt++]=$r,$r=e;var r=nn;e=rn;var o=32-Dt(r)-1;r&=~(1<<o),n+=1;var i=32-Dt(t)+o;if(30<i){var s=o-o%5;i=(r&(1<<s)-1).toString(32),r>>=s,o-=s,nn=1<<32-Dt(t)+o|n<<o|r,rn=i+e}else nn=1<<i|n<<o|r,rn=e}function Ad(e){e.return!==null&&(pr(e,1),Y0(e,1,0))}function Md(e){for(;e===Za;)Za=co[--fo],co[fo]=null,Qa=co[--fo],co[fo]=null;for(;e===$r;)$r=vt[--wt],vt[wt]=null,rn=vt[--wt],vt[wt]=null,nn=vt[--wt],vt[wt]=null}var ft=null,ct=null,pe=!1,Rt=null;function X0(e,t){var n=St(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function jp(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,ft=e,ct=Bn(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,ft=e,ct=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=$r!==null?{id:nn,overflow:rn}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=St(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,ft=e,ct=null,!0):!1;default:return!1}}function qc(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Zc(e){if(pe){var t=ct;if(t){var n=t;if(!jp(e,t)){if(qc(e))throw Error(j(418));t=Bn(n.nextSibling);var r=ft;t&&jp(e,t)?X0(r,n):(e.flags=e.flags&-4097|2,pe=!1,ft=e)}}else{if(qc(e))throw Error(j(418));e.flags=e.flags&-4097|2,pe=!1,ft=e}}}function Up(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;ft=e}function js(e){if(e!==ft)return!1;if(!pe)return Up(e),pe=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Gc(e.type,e.memoizedProps)),t&&(t=ct)){if(qc(e))throw q0(),Error(j(418));for(;t;)X0(e,t),t=Bn(t.nextSibling)}if(Up(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(j(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){ct=Bn(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}ct=null}}else ct=ft?Bn(e.stateNode.nextSibling):null;return!0}function q0(){for(var e=ct;e;)e=Bn(e.nextSibling)}function Lo(){ct=ft=null,pe=!1}function Rd(e){Rt===null?Rt=[e]:Rt.push(e)}var F_=vn.ReactCurrentBatchConfig;function Nt(e,t){if(e&&e.defaultProps){t=ve({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}var Ja=tr(null),el=null,ho=null,$d=null;function Ld(){$d=ho=el=null}function Dd(e){var t=Ja.current;fe(Ja),e._currentValue=t}function Qc(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Co(e,t){el=e,$d=ho=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(et=!0),e.firstContext=null)}function _t(e){var t=e._currentValue;if($d!==e)if(e={context:e,memoizedValue:t,next:null},ho===null){if(el===null)throw Error(j(308));ho=e,el.dependencies={lanes:0,firstContext:e}}else ho=ho.next=e;return t}var Sr=null;function Od(e){Sr===null?Sr=[e]:Sr.push(e)}function Z0(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,Od(t)):(n.next=o.next,o.next=n),t.interleaved=n,hn(e,r)}function hn(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Tn=!1;function Vd(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Q0(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function ln(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Fn(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,oe&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,hn(e,n)}return o=r.interleaved,o===null?(t.next=t,Od(r)):(t.next=o.next,o.next=t),r.interleaved=t,hn(e,n)}function va(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,bd(e,n)}}function Hp(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?o=i=s:i=i.next=s,n=n.next}while(n!==null);i===null?o=i=t:i=i.next=t}else o=i=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function tl(e,t,n,r){var o=e.updateQueue;Tn=!1;var i=o.firstBaseUpdate,s=o.lastBaseUpdate,a=o.shared.pending;if(a!==null){o.shared.pending=null;var l=a,u=l.next;l.next=null,s===null?i=u:s.next=u,s=l;var c=e.alternate;c!==null&&(c=c.updateQueue,a=c.lastBaseUpdate,a!==s&&(a===null?c.firstBaseUpdate=u:a.next=u,c.lastBaseUpdate=l))}if(i!==null){var f=o.baseState;s=0,c=u=l=null,a=i;do{var d=a.lane,h=a.eventTime;if((r&d)===d){c!==null&&(c=c.next={eventTime:h,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var g=e,v=a;switch(d=t,h=n,v.tag){case 1:if(g=v.payload,typeof g=="function"){f=g.call(h,f,d);break e}f=g;break e;case 3:g.flags=g.flags&-65537|128;case 0:if(g=v.payload,d=typeof g=="function"?g.call(h,f,d):g,d==null)break e;f=ve({},f,d);break e;case 2:Tn=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,d=o.effects,d===null?o.effects=[a]:d.push(a))}else h={eventTime:h,lane:d,tag:a.tag,payload:a.payload,callback:a.callback,next:null},c===null?(u=c=h,l=f):c=c.next=h,s|=d;if(a=a.next,a===null){if(a=o.shared.pending,a===null)break;d=a,a=d.next,d.next=null,o.lastBaseUpdate=d,o.shared.pending=null}}while(1);if(c===null&&(l=f),o.baseState=l,o.firstBaseUpdate=u,o.lastBaseUpdate=c,t=o.shared.interleaved,t!==null){o=t;do s|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);Dr|=s,e.lanes=s,e.memoizedState=f}}function Wp(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(o!==null){if(r.callback=null,r=n,typeof o!="function")throw Error(j(191,o));o.call(r)}}}var J0=new Zy.Component().refs;function Jc(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:ve({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Vl={isMounted:function(e){return(e=e._reactInternals)?Br(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Xe(),o=Un(e),i=ln(r,o);i.payload=t,n!=null&&(i.callback=n),t=Fn(e,i,o),t!==null&&(Ot(t,e,o,r),va(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Xe(),o=Un(e),i=ln(r,o);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=Fn(e,i,o),t!==null&&(Ot(t,e,o,r),va(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Xe(),r=Un(e),o=ln(n,r);o.tag=2,t!=null&&(o.callback=t),t=Fn(e,o,r),t!==null&&(Ot(t,e,r,n),va(t,e,r))}};function Gp(e,t,n,r,o,i,s){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,i,s):t.prototype&&t.prototype.isPureReactComponent?!Yi(n,r)||!Yi(o,i):!0}function ev(e,t,n){var r=!1,o=Zn,i=t.contextType;return typeof i=="object"&&i!==null?i=_t(i):(o=rt(t)?Rr:He.current,r=t.contextTypes,i=(r=r!=null)?$o(e,o):Zn),t=new t(n,i),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Vl,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function Kp(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Vl.enqueueReplaceState(t,t.state,null)}function ef(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs=J0,Vd(e);var i=t.contextType;typeof i=="object"&&i!==null?o.context=_t(i):(i=rt(t)?Rr:He.current,o.context=$o(e,i)),o.state=e.memoizedState,i=t.getDerivedStateFromProps,typeof i=="function"&&(Jc(e,t,i,n),o.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(t=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),t!==o.state&&Vl.enqueueReplaceState(o,o.state,null),tl(e,n,o,r),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4194308)}function oi(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(j(309));var r=n.stateNode}if(!r)throw Error(j(147,e));var o=r,i=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===i?t.ref:(t=function(s){var a=o.refs;a===J0&&(a=o.refs={}),s===null?delete a[i]:a[i]=s},t._stringRef=i,t)}if(typeof e!="string")throw Error(j(284));if(!n._owner)throw Error(j(290,e))}return e}function Us(e,t){throw e=Object.prototype.toString.call(t),Error(j(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Yp(e){var t=e._init;return t(e._payload)}function tv(e){function t(m,p){if(e){var y=m.deletions;y===null?(m.deletions=[p],m.flags|=16):y.push(p)}}function n(m,p){if(!e)return null;for(;p!==null;)t(m,p),p=p.sibling;return null}function r(m,p){for(m=new Map;p!==null;)p.key!==null?m.set(p.key,p):m.set(p.index,p),p=p.sibling;return m}function o(m,p){return m=Hn(m,p),m.index=0,m.sibling=null,m}function i(m,p,y){return m.index=y,e?(y=m.alternate,y!==null?(y=y.index,y<p?(m.flags|=2,p):y):(m.flags|=2,p)):(m.flags|=1048576,p)}function s(m){return e&&m.alternate===null&&(m.flags|=2),m}function a(m,p,y,w){return p===null||p.tag!==6?(p=Bu(y,m.mode,w),p.return=m,p):(p=o(p,y),p.return=m,p)}function l(m,p,y,w){var _=y.type;return _===oo?c(m,p,y.props.children,w,y.key):p!==null&&(p.elementType===_||typeof _=="object"&&_!==null&&_.$$typeof===kn&&Yp(_)===p.type)?(w=o(p,y.props),w.ref=oi(m,p,y),w.return=m,w):(w=_a(y.type,y.key,y.props,null,m.mode,w),w.ref=oi(m,p,y),w.return=m,w)}function u(m,p,y,w){return p===null||p.tag!==4||p.stateNode.containerInfo!==y.containerInfo||p.stateNode.implementation!==y.implementation?(p=Fu(y,m.mode,w),p.return=m,p):(p=o(p,y.children||[]),p.return=m,p)}function c(m,p,y,w,_){return p===null||p.tag!==7?(p=Pr(y,m.mode,w,_),p.return=m,p):(p=o(p,y),p.return=m,p)}function f(m,p,y){if(typeof p=="string"&&p!==""||typeof p=="number")return p=Bu(""+p,m.mode,y),p.return=m,p;if(typeof p=="object"&&p!==null){switch(p.$$typeof){case Rs:return y=_a(p.type,p.key,p.props,null,m.mode,y),y.ref=oi(m,null,p),y.return=m,y;case ro:return p=Fu(p,m.mode,y),p.return=m,p;case kn:var w=p._init;return f(m,w(p._payload),y)}if(Si(p)||Jo(p))return p=Pr(p,m.mode,y,null),p.return=m,p;Us(m,p)}return null}function d(m,p,y,w){var _=p!==null?p.key:null;if(typeof y=="string"&&y!==""||typeof y=="number")return _!==null?null:a(m,p,""+y,w);if(typeof y=="object"&&y!==null){switch(y.$$typeof){case Rs:return y.key===_?l(m,p,y,w):null;case ro:return y.key===_?u(m,p,y,w):null;case kn:return _=y._init,d(m,p,_(y._payload),w)}if(Si(y)||Jo(y))return _!==null?null:c(m,p,y,w,null);Us(m,y)}return null}function h(m,p,y,w,_){if(typeof w=="string"&&w!==""||typeof w=="number")return m=m.get(y)||null,a(p,m,""+w,_);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case Rs:return m=m.get(w.key===null?y:w.key)||null,l(p,m,w,_);case ro:return m=m.get(w.key===null?y:w.key)||null,u(p,m,w,_);case kn:var T=w._init;return h(m,p,y,T(w._payload),_)}if(Si(w)||Jo(w))return m=m.get(y)||null,c(p,m,w,_,null);Us(p,w)}return null}function g(m,p,y,w){for(var _=null,T=null,N=p,A=p=0,z=null;N!==null&&A<y.length;A++){N.index>A?(z=N,N=null):z=N.sibling;var B=d(m,N,y[A],w);if(B===null){N===null&&(N=z);break}e&&N&&B.alternate===null&&t(m,N),p=i(B,p,A),T===null?_=B:T.sibling=B,T=B,N=z}if(A===y.length)return n(m,N),pe&&pr(m,A),_;if(N===null){for(;A<y.length;A++)N=f(m,y[A],w),N!==null&&(p=i(N,p,A),T===null?_=N:T.sibling=N,T=N);return pe&&pr(m,A),_}for(N=r(m,N);A<y.length;A++)z=h(N,m,A,y[A],w),z!==null&&(e&&z.alternate!==null&&N.delete(z.key===null?A:z.key),p=i(z,p,A),T===null?_=z:T.sibling=z,T=z);return e&&N.forEach(function(D){return t(m,D)}),pe&&pr(m,A),_}function v(m,p,y,w){var _=Jo(y);if(typeof _!="function")throw Error(j(150));if(y=_.call(y),y==null)throw Error(j(151));for(var T=_=null,N=p,A=p=0,z=null,B=y.next();N!==null&&!B.done;A++,B=y.next()){N.index>A?(z=N,N=null):z=N.sibling;var D=d(m,N,B.value,w);if(D===null){N===null&&(N=z);break}e&&N&&D.alternate===null&&t(m,N),p=i(D,p,A),T===null?_=D:T.sibling=D,T=D,N=z}if(B.done)return n(m,N),pe&&pr(m,A),_;if(N===null){for(;!B.done;A++,B=y.next())B=f(m,B.value,w),B!==null&&(p=i(B,p,A),T===null?_=B:T.sibling=B,T=B);return pe&&pr(m,A),_}for(N=r(m,N);!B.done;A++,B=y.next())B=h(N,m,A,B.value,w),B!==null&&(e&&B.alternate!==null&&N.delete(B.key===null?A:B.key),p=i(B,p,A),T===null?_=B:T.sibling=B,T=B);return e&&N.forEach(function(O){return t(m,O)}),pe&&pr(m,A),_}function b(m,p,y,w){if(typeof y=="object"&&y!==null&&y.type===oo&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case Rs:e:{for(var _=y.key,T=p;T!==null;){if(T.key===_){if(_=y.type,_===oo){if(T.tag===7){n(m,T.sibling),p=o(T,y.props.children),p.return=m,m=p;break e}}else if(T.elementType===_||typeof _=="object"&&_!==null&&_.$$typeof===kn&&Yp(_)===T.type){n(m,T.sibling),p=o(T,y.props),p.ref=oi(m,T,y),p.return=m,m=p;break e}n(m,T);break}else t(m,T);T=T.sibling}y.type===oo?(p=Pr(y.props.children,m.mode,w,y.key),p.return=m,m=p):(w=_a(y.type,y.key,y.props,null,m.mode,w),w.ref=oi(m,p,y),w.return=m,m=w)}return s(m);case ro:e:{for(T=y.key;p!==null;){if(p.key===T)if(p.tag===4&&p.stateNode.containerInfo===y.containerInfo&&p.stateNode.implementation===y.implementation){n(m,p.sibling),p=o(p,y.children||[]),p.return=m,m=p;break e}else{n(m,p);break}else t(m,p);p=p.sibling}p=Fu(y,m.mode,w),p.return=m,m=p}return s(m);case kn:return T=y._init,b(m,p,T(y._payload),w)}if(Si(y))return g(m,p,y,w);if(Jo(y))return v(m,p,y,w);Us(m,y)}return typeof y=="string"&&y!==""||typeof y=="number"?(y=""+y,p!==null&&p.tag===6?(n(m,p.sibling),p=o(p,y),p.return=m,m=p):(n(m,p),p=Bu(y,m.mode,w),p.return=m,m=p),s(m)):n(m,p)}return b}var Do=tv(!0),nv=tv(!1),ws={},Gt=tr(ws),Qi=tr(ws),Ji=tr(ws);function br(e){if(e===ws)throw Error(j(174));return e}function Id(e,t){switch(ae(Ji,t),ae(Qi,e),ae(Gt,ws),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Rc(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Rc(t,e)}fe(Gt),ae(Gt,t)}function Oo(){fe(Gt),fe(Qi),fe(Ji)}function rv(e){br(Ji.current);var t=br(Gt.current),n=Rc(t,e.type);t!==n&&(ae(Qi,e),ae(Gt,n))}function zd(e){Qi.current===e&&(fe(Gt),fe(Qi))}var me=tr(0);function nl(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Lu=[];function Bd(){for(var e=0;e<Lu.length;e++)Lu[e]._workInProgressVersionPrimary=null;Lu.length=0}var wa=vn.ReactCurrentDispatcher,Du=vn.ReactCurrentBatchConfig,Lr=0,ye=null,Ne=null,$e=null,rl=!1,$i=!1,es=0,j_=0;function Be(){throw Error(j(321))}function Fd(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Vt(e[n],t[n]))return!1;return!0}function jd(e,t,n,r,o,i){if(Lr=i,ye=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,wa.current=e===null||e.memoizedState===null?G_:K_,e=n(r,o),$i){i=0;do{if($i=!1,es=0,25<=i)throw Error(j(301));i+=1,$e=Ne=null,t.updateQueue=null,wa.current=Y_,e=n(r,o)}while($i)}if(wa.current=ol,t=Ne!==null&&Ne.next!==null,Lr=0,$e=Ne=ye=null,rl=!1,t)throw Error(j(300));return e}function Ud(){var e=es!==0;return es=0,e}function Bt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return $e===null?ye.memoizedState=$e=e:$e=$e.next=e,$e}function Ct(){if(Ne===null){var e=ye.alternate;e=e!==null?e.memoizedState:null}else e=Ne.next;var t=$e===null?ye.memoizedState:$e.next;if(t!==null)$e=t,Ne=e;else{if(e===null)throw Error(j(310));Ne=e,e={memoizedState:Ne.memoizedState,baseState:Ne.baseState,baseQueue:Ne.baseQueue,queue:Ne.queue,next:null},$e===null?ye.memoizedState=$e=e:$e=$e.next=e}return $e}function ts(e,t){return typeof t=="function"?t(e):t}function Ou(e){var t=Ct(),n=t.queue;if(n===null)throw Error(j(311));n.lastRenderedReducer=e;var r=Ne,o=r.baseQueue,i=n.pending;if(i!==null){if(o!==null){var s=o.next;o.next=i.next,i.next=s}r.baseQueue=o=i,n.pending=null}if(o!==null){i=o.next,r=r.baseState;var a=s=null,l=null,u=i;do{var c=u.lane;if((Lr&c)===c)l!==null&&(l=l.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var f={lane:c,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};l===null?(a=l=f,s=r):l=l.next=f,ye.lanes|=c,Dr|=c}u=u.next}while(u!==null&&u!==i);l===null?s=r:l.next=a,Vt(r,t.memoizedState)||(et=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=l,n.lastRenderedState=r}if(e=n.interleaved,e!==null){o=e;do i=o.lane,ye.lanes|=i,Dr|=i,o=o.next;while(o!==e)}else o===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Vu(e){var t=Ct(),n=t.queue;if(n===null)throw Error(j(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,i=t.memoizedState;if(o!==null){n.pending=null;var s=o=o.next;do i=e(i,s.action),s=s.next;while(s!==o);Vt(i,t.memoizedState)||(et=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function ov(){}function iv(e,t){var n=ye,r=Ct(),o=t(),i=!Vt(r.memoizedState,o);if(i&&(r.memoizedState=o,et=!0),r=r.queue,Hd(lv.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||$e!==null&&$e.memoizedState.tag&1){if(n.flags|=2048,ns(9,av.bind(null,n,r,o,t),void 0,null),Le===null)throw Error(j(349));Lr&30||sv(n,t,o)}return o}function sv(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=ye.updateQueue,t===null?(t={lastEffect:null,stores:null},ye.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function av(e,t,n,r){t.value=n,t.getSnapshot=r,uv(t)&&cv(e)}function lv(e,t,n){return n(function(){uv(t)&&cv(e)})}function uv(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Vt(e,n)}catch{return!0}}function cv(e){var t=hn(e,1);t!==null&&Ot(t,e,1,-1)}function Xp(e){var t=Bt();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:ts,lastRenderedState:e},t.queue=e,e=e.dispatch=W_.bind(null,ye,e),[t.memoizedState,e]}function ns(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=ye.updateQueue,t===null?(t={lastEffect:null,stores:null},ye.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function fv(){return Ct().memoizedState}function xa(e,t,n,r){var o=Bt();ye.flags|=e,o.memoizedState=ns(1|t,n,void 0,r===void 0?null:r)}function Il(e,t,n,r){var o=Ct();r=r===void 0?null:r;var i=void 0;if(Ne!==null){var s=Ne.memoizedState;if(i=s.destroy,r!==null&&Fd(r,s.deps)){o.memoizedState=ns(t,n,i,r);return}}ye.flags|=e,o.memoizedState=ns(1|t,n,i,r)}function qp(e,t){return xa(8390656,8,e,t)}function Hd(e,t){return Il(2048,8,e,t)}function dv(e,t){return Il(4,2,e,t)}function hv(e,t){return Il(4,4,e,t)}function pv(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function mv(e,t,n){return n=n!=null?n.concat([e]):null,Il(4,4,pv.bind(null,t,e),n)}function Wd(){}function gv(e,t){var n=Ct();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Fd(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function yv(e,t){var n=Ct();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Fd(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function vv(e,t,n){return Lr&21?(Vt(n,t)||(n=S0(),ye.lanes|=n,Dr|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,et=!0),e.memoizedState=n)}function U_(e,t){var n=ie;ie=n!==0&&4>n?n:4,e(!0);var r=Du.transition;Du.transition={};try{e(!1),t()}finally{ie=n,Du.transition=r}}function wv(){return Ct().memoizedState}function H_(e,t,n){var r=Un(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},xv(e))Sv(t,n);else if(n=Z0(e,t,n,r),n!==null){var o=Xe();Ot(n,e,r,o),bv(n,t,r)}}function W_(e,t,n){var r=Un(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(xv(e))Sv(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var s=t.lastRenderedState,a=i(s,n);if(o.hasEagerState=!0,o.eagerState=a,Vt(a,s)){var l=t.interleaved;l===null?(o.next=o,Od(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}finally{}n=Z0(e,t,o,r),n!==null&&(o=Xe(),Ot(n,e,r,o),bv(n,t,r))}}function xv(e){var t=e.alternate;return e===ye||t!==null&&t===ye}function Sv(e,t){$i=rl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function bv(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,bd(e,n)}}var ol={readContext:_t,useCallback:Be,useContext:Be,useEffect:Be,useImperativeHandle:Be,useInsertionEffect:Be,useLayoutEffect:Be,useMemo:Be,useReducer:Be,useRef:Be,useState:Be,useDebugValue:Be,useDeferredValue:Be,useTransition:Be,useMutableSource:Be,useSyncExternalStore:Be,useId:Be,unstable_isNewReconciler:!1},G_={readContext:_t,useCallback:function(e,t){return Bt().memoizedState=[e,t===void 0?null:t],e},useContext:_t,useEffect:qp,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,xa(4194308,4,pv.bind(null,t,e),n)},useLayoutEffect:function(e,t){return xa(4194308,4,e,t)},useInsertionEffect:function(e,t){return xa(4,2,e,t)},useMemo:function(e,t){var n=Bt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Bt();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=H_.bind(null,ye,e),[r.memoizedState,e]},useRef:function(e){var t=Bt();return e={current:e},t.memoizedState=e},useState:Xp,useDebugValue:Wd,useDeferredValue:function(e){return Bt().memoizedState=e},useTransition:function(){var e=Xp(!1),t=e[0];return e=U_.bind(null,e[1]),Bt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ye,o=Bt();if(pe){if(n===void 0)throw Error(j(407));n=n()}else{if(n=t(),Le===null)throw Error(j(349));Lr&30||sv(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,qp(lv.bind(null,r,i,e),[e]),r.flags|=2048,ns(9,av.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Bt(),t=Le.identifierPrefix;if(pe){var n=rn,r=nn;n=(r&~(1<<32-Dt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=es++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=j_++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},K_={readContext:_t,useCallback:gv,useContext:_t,useEffect:Hd,useImperativeHandle:mv,useInsertionEffect:dv,useLayoutEffect:hv,useMemo:yv,useReducer:Ou,useRef:fv,useState:function(){return Ou(ts)},useDebugValue:Wd,useDeferredValue:function(e){var t=Ct();return vv(t,Ne.memoizedState,e)},useTransition:function(){var e=Ou(ts)[0],t=Ct().memoizedState;return[e,t]},useMutableSource:ov,useSyncExternalStore:iv,useId:wv,unstable_isNewReconciler:!1},Y_={readContext:_t,useCallback:gv,useContext:_t,useEffect:Hd,useImperativeHandle:mv,useInsertionEffect:dv,useLayoutEffect:hv,useMemo:yv,useReducer:Vu,useRef:fv,useState:function(){return Vu(ts)},useDebugValue:Wd,useDeferredValue:function(e){var t=Ct();return Ne===null?t.memoizedState=e:vv(t,Ne.memoizedState,e)},useTransition:function(){var e=Vu(ts)[0],t=Ct().memoizedState;return[e,t]},useMutableSource:ov,useSyncExternalStore:iv,useId:wv,unstable_isNewReconciler:!1};function Vo(e,t){try{var n="",r=t;do n+=bE(r),r=r.return;while(r);var o=n}catch(i){o=`
|
|
39
|
-
Error generating stack: `+i.message+`
|
|
40
|
-
`+i.stack}return{value:e,source:t,stack:o,digest:null}}function Iu(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function tf(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var X_=typeof WeakMap=="function"?WeakMap:Map;function Ev(e,t,n){n=ln(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){sl||(sl=!0,df=r),tf(e,t)},n}function _v(e,t,n){n=ln(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){tf(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){tf(e,t),typeof r!="function"&&(jn===null?jn=new Set([this]):jn.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),n}function Zp(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new X_;var o=new Set;r.set(t,o)}else o=r.get(t),o===void 0&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=uC.bind(null,e,t,n),t.then(e,e))}function Qp(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Jp(e,t,n,r,o){return e.mode&1?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=ln(-1,1),t.tag=2,Fn(n,t,1))),n.lanes|=1),e)}var q_=vn.ReactCurrentOwner,et=!1;function Ye(e,t,n,r){t.child=e===null?nv(t,null,n,r):Do(t,e.child,n,r)}function em(e,t,n,r,o){n=n.render;var i=t.ref;return Co(t,o),r=jd(e,t,n,r,i,o),n=Ud(),e!==null&&!et?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,pn(e,t,o)):(pe&&n&&Ad(t),t.flags|=1,Ye(e,t,r,o),t.child)}function tm(e,t,n,r,o){if(e===null){var i=n.type;return typeof i=="function"&&!Jd(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,Cv(e,t,i,r,o)):(e=_a(n.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!(e.lanes&o)){var s=i.memoizedProps;if(n=n.compare,n=n!==null?n:Yi,n(s,r)&&e.ref===t.ref)return pn(e,t,o)}return t.flags|=1,e=Hn(i,r),e.ref=t.ref,e.return=t,t.child=e}function Cv(e,t,n,r,o){if(e!==null){var i=e.memoizedProps;if(Yi(i,r)&&e.ref===t.ref)if(et=!1,t.pendingProps=r=i,(e.lanes&o)!==0)e.flags&131072&&(et=!0);else return t.lanes=e.lanes,pn(e,t,o)}return nf(e,t,n,r,o)}function kv(e,t,n){var r=t.pendingProps,o=r.children,i=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},ae(mo,ut),ut|=n;else{if(!(n&1073741824))return e=i!==null?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,ae(mo,ut),ut|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,ae(mo,ut),ut|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,ae(mo,ut),ut|=r;return Ye(e,t,o,n),t.child}function Tv(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function nf(e,t,n,r,o){var i=rt(n)?Rr:He.current;return i=$o(t,i),Co(t,o),n=jd(e,t,n,r,i,o),r=Ud(),e!==null&&!et?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,pn(e,t,o)):(pe&&r&&Ad(t),t.flags|=1,Ye(e,t,n,o),t.child)}function nm(e,t,n,r,o){if(rt(n)){var i=!0;qa(t)}else i=!1;if(Co(t,o),t.stateNode===null)Sa(e,t),ev(t,n,r),ef(t,n,r,o),r=!0;else if(e===null){var s=t.stateNode,a=t.memoizedProps;s.props=a;var l=s.context,u=n.contextType;typeof u=="object"&&u!==null?u=_t(u):(u=rt(n)?Rr:He.current,u=$o(t,u));var c=n.getDerivedStateFromProps,f=typeof c=="function"||typeof s.getSnapshotBeforeUpdate=="function";f||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==r||l!==u)&&Kp(t,s,r,u),Tn=!1;var d=t.memoizedState;s.state=d,tl(t,r,s,o),l=t.memoizedState,a!==r||d!==l||nt.current||Tn?(typeof c=="function"&&(Jc(t,n,c,r),l=t.memoizedState),(a=Tn||Gp(t,n,a,r,d,l,u))?(f||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),s.props=r,s.state=l,s.context=u,r=a):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{s=t.stateNode,Q0(e,t),a=t.memoizedProps,u=t.type===t.elementType?a:Nt(t.type,a),s.props=u,f=t.pendingProps,d=s.context,l=n.contextType,typeof l=="object"&&l!==null?l=_t(l):(l=rt(n)?Rr:He.current,l=$o(t,l));var h=n.getDerivedStateFromProps;(c=typeof h=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==f||d!==l)&&Kp(t,s,r,l),Tn=!1,d=t.memoizedState,s.state=d,tl(t,r,s,o);var g=t.memoizedState;a!==f||d!==g||nt.current||Tn?(typeof h=="function"&&(Jc(t,n,h,r),g=t.memoizedState),(u=Tn||Gp(t,n,u,r,d,g,l)||!1)?(c||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(r,g,l),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(r,g,l)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=g),s.props=r,s.state=g,s.context=l,r=u):(typeof s.componentDidUpdate!="function"||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),r=!1)}return rf(e,t,n,r,i,o)}function rf(e,t,n,r,o,i){Tv(e,t);var s=(t.flags&128)!==0;if(!r&&!s)return o&&Fp(t,n,!1),pn(e,t,i);r=t.stateNode,q_.current=t;var a=s&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&s?(t.child=Do(t,e.child,null,i),t.child=Do(t,null,a,i)):Ye(e,t,a,i),t.memoizedState=r.state,o&&Fp(t,n,!0),t.child}function Pv(e){var t=e.stateNode;t.pendingContext?Bp(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Bp(e,t.context,!1),Id(e,t.containerInfo)}function rm(e,t,n,r,o){return Lo(),Rd(o),t.flags|=256,Ye(e,t,n,r),t.child}var of={dehydrated:null,treeContext:null,retryLane:0};function sf(e){return{baseLanes:e,cachePool:null,transitions:null}}function Nv(e,t,n){var r=t.pendingProps,o=me.current,i=!1,s=(t.flags&128)!==0,a;if((a=s)||(a=e!==null&&e.memoizedState===null?!1:(o&2)!==0),a?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),ae(me,o&1),e===null)return Zc(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(s=r.children,e=r.fallback,i?(r=t.mode,i=t.child,s={mode:"hidden",children:s},!(r&1)&&i!==null?(i.childLanes=0,i.pendingProps=s):i=Fl(s,r,0,null),e=Pr(e,r,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=sf(n),t.memoizedState=of,e):Gd(t,s));if(o=e.memoizedState,o!==null&&(a=o.dehydrated,a!==null))return Z_(e,t,s,r,a,o,n);if(i){i=r.fallback,s=t.mode,o=e.child,a=o.sibling;var l={mode:"hidden",children:r.children};return!(s&1)&&t.child!==o?(r=t.child,r.childLanes=0,r.pendingProps=l,t.deletions=null):(r=Hn(o,l),r.subtreeFlags=o.subtreeFlags&14680064),a!==null?i=Hn(a,i):(i=Pr(i,s,n,null),i.flags|=2),i.return=t,r.return=t,r.sibling=i,t.child=r,r=i,i=t.child,s=e.child.memoizedState,s=s===null?sf(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},i.memoizedState=s,i.childLanes=e.childLanes&~n,t.memoizedState=of,r}return i=e.child,e=i.sibling,r=Hn(i,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function Gd(e,t){return t=Fl({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Hs(e,t,n,r){return r!==null&&Rd(r),Do(t,e.child,null,n),e=Gd(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Z_(e,t,n,r,o,i,s){if(n)return t.flags&256?(t.flags&=-257,r=Iu(Error(j(422))),Hs(e,t,s,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=r.fallback,o=t.mode,r=Fl({mode:"visible",children:r.children},o,0,null),i=Pr(i,o,s,null),i.flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,t.mode&1&&Do(t,e.child,null,s),t.child.memoizedState=sf(s),t.memoizedState=of,i);if(!(t.mode&1))return Hs(e,t,s,null);if(o.data==="$!"){if(r=o.nextSibling&&o.nextSibling.dataset,r)var a=r.dgst;return r=a,i=Error(j(419)),r=Iu(i,r,void 0),Hs(e,t,s,r)}if(a=(s&e.childLanes)!==0,et||a){if(r=Le,r!==null){switch(s&-s){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}o=o&(r.suspendedLanes|s)?0:o,o!==0&&o!==i.retryLane&&(i.retryLane=o,hn(e,o),Ot(r,e,o,-1))}return Qd(),r=Iu(Error(j(421))),Hs(e,t,s,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=cC.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,ct=Bn(o.nextSibling),ft=t,pe=!0,Rt=null,e!==null&&(vt[wt++]=nn,vt[wt++]=rn,vt[wt++]=$r,nn=e.id,rn=e.overflow,$r=t),t=Gd(t,r.children),t.flags|=4096,t)}function om(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Qc(e.return,t,n)}function zu(e,t,n,r,o){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function Av(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(Ye(e,t,r.children,n),r=me.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&om(e,n,t);else if(e.tag===19)om(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(ae(me,r),!(t.mode&1))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;n!==null;)e=n.alternate,e!==null&&nl(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),zu(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&nl(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}zu(t,!0,n,null,i);break;case"together":zu(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Sa(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function pn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Dr|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(j(153));if(t.child!==null){for(e=t.child,n=Hn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Hn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Q_(e,t,n){switch(t.tag){case 3:Pv(t),Lo();break;case 5:rv(t);break;case 1:rt(t.type)&&qa(t);break;case 4:Id(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;ae(Ja,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(ae(me,me.current&1),t.flags|=128,null):n&t.child.childLanes?Nv(e,t,n):(ae(me,me.current&1),e=pn(e,t,n),e!==null?e.sibling:null);ae(me,me.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return Av(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),ae(me,me.current),r)break;return null;case 22:case 23:return t.lanes=0,kv(e,t,n)}return pn(e,t,n)}var Mv,af,Rv,$v;Mv=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};af=function(){};Rv=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,br(Gt.current);var i=null;switch(n){case"input":o=Pc(e,o),r=Pc(e,r),i=[];break;case"select":o=ve({},o,{value:void 0}),r=ve({},r,{value:void 0}),i=[];break;case"textarea":o=Mc(e,o),r=Mc(e,r),i=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Ya)}$c(n,r);var s;n=null;for(u in o)if(!r.hasOwnProperty(u)&&o.hasOwnProperty(u)&&o[u]!=null)if(u==="style"){var a=o[u];for(s in a)a.hasOwnProperty(s)&&(n||(n={}),n[s]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(Fi.hasOwnProperty(u)?i||(i=[]):(i=i||[]).push(u,null));for(u in r){var l=r[u];if(a=o!=null?o[u]:void 0,r.hasOwnProperty(u)&&l!==a&&(l!=null||a!=null))if(u==="style")if(a){for(s in a)!a.hasOwnProperty(s)||l&&l.hasOwnProperty(s)||(n||(n={}),n[s]="");for(s in l)l.hasOwnProperty(s)&&a[s]!==l[s]&&(n||(n={}),n[s]=l[s])}else n||(i||(i=[]),i.push(u,n)),n=l;else u==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,a=a?a.__html:void 0,l!=null&&a!==l&&(i=i||[]).push(u,l)):u==="children"?typeof l!="string"&&typeof l!="number"||(i=i||[]).push(u,""+l):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(Fi.hasOwnProperty(u)?(l!=null&&u==="onScroll"&&ce("scroll",e),i||a===l||(i=[])):(i=i||[]).push(u,l))}n&&(i=i||[]).push("style",n);var u=i;(t.updateQueue=u)&&(t.flags|=4)}};$v=function(e,t,n,r){n!==r&&(t.flags|=4)};function ii(e,t){if(!pe)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Fe(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags&14680064,r|=o.flags&14680064,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function J_(e,t,n){var r=t.pendingProps;switch(Md(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Fe(t),null;case 1:return rt(t.type)&&Xa(),Fe(t),null;case 3:return r=t.stateNode,Oo(),fe(nt),fe(He),Bd(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(js(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Rt!==null&&(mf(Rt),Rt=null))),af(e,t),Fe(t),null;case 5:zd(t);var o=br(Ji.current);if(n=t.type,e!==null&&t.stateNode!=null)Rv(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(j(166));return Fe(t),null}if(e=br(Gt.current),js(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[Ht]=t,r[Zi]=i,e=(t.mode&1)!==0,n){case"dialog":ce("cancel",r),ce("close",r);break;case"iframe":case"object":case"embed":ce("load",r);break;case"video":case"audio":for(o=0;o<Ei.length;o++)ce(Ei[o],r);break;case"source":ce("error",r);break;case"img":case"image":case"link":ce("error",r),ce("load",r);break;case"details":ce("toggle",r);break;case"input":hp(r,i),ce("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},ce("invalid",r);break;case"textarea":mp(r,i),ce("invalid",r)}$c(n,i),o=null;for(var s in i)if(i.hasOwnProperty(s)){var a=i[s];s==="children"?typeof a=="string"?r.textContent!==a&&(i.suppressHydrationWarning!==!0&&Fs(r.textContent,a,e),o=["children",a]):typeof a=="number"&&r.textContent!==""+a&&(i.suppressHydrationWarning!==!0&&Fs(r.textContent,a,e),o=["children",""+a]):Fi.hasOwnProperty(s)&&a!=null&&s==="onScroll"&&ce("scroll",r)}switch(n){case"input":$s(r),pp(r,i,!0);break;case"textarea":$s(r),gp(r);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(r.onclick=Ya)}r=o,t.updateQueue=r,r!==null&&(t.flags|=4)}else{s=o.nodeType===9?o:o.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=s0(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=s.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[Ht]=t,e[Zi]=r,Mv(e,t,!1,!1),t.stateNode=e;e:{switch(s=Lc(n,r),n){case"dialog":ce("cancel",e),ce("close",e),o=r;break;case"iframe":case"object":case"embed":ce("load",e),o=r;break;case"video":case"audio":for(o=0;o<Ei.length;o++)ce(Ei[o],e);o=r;break;case"source":ce("error",e),o=r;break;case"img":case"image":case"link":ce("error",e),ce("load",e),o=r;break;case"details":ce("toggle",e),o=r;break;case"input":hp(e,r),o=Pc(e,r),ce("invalid",e);break;case"option":o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=ve({},r,{value:void 0}),ce("invalid",e);break;case"textarea":mp(e,r),o=Mc(e,r),ce("invalid",e);break;default:o=r}$c(n,o),a=o;for(i in a)if(a.hasOwnProperty(i)){var l=a[i];i==="style"?u0(e,l):i==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&a0(e,l)):i==="children"?typeof l=="string"?(n!=="textarea"||l!=="")&&ji(e,l):typeof l=="number"&&ji(e,""+l):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(Fi.hasOwnProperty(i)?l!=null&&i==="onScroll"&&ce("scroll",e):l!=null&&gd(e,i,l,s))}switch(n){case"input":$s(e),pp(e,r,!1);break;case"textarea":$s(e),gp(e);break;case"option":r.value!=null&&e.setAttribute("value",""+qn(r.value));break;case"select":e.multiple=!!r.multiple,i=r.value,i!=null?So(e,!!r.multiple,i,!1):r.defaultValue!=null&&So(e,!!r.multiple,r.defaultValue,!0);break;default:typeof o.onClick=="function"&&(e.onclick=Ya)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return Fe(t),null;case 6:if(e&&t.stateNode!=null)$v(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(j(166));if(n=br(Ji.current),br(Gt.current),js(t)){if(r=t.stateNode,n=t.memoizedProps,r[Ht]=t,(i=r.nodeValue!==n)&&(e=ft,e!==null))switch(e.tag){case 3:Fs(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Fs(r.nodeValue,n,(e.mode&1)!==0)}i&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Ht]=t,t.stateNode=r}return Fe(t),null;case 13:if(fe(me),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(pe&&ct!==null&&t.mode&1&&!(t.flags&128))q0(),Lo(),t.flags|=98560,i=!1;else if(i=js(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(j(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(j(317));i[Ht]=t}else Lo(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Fe(t),i=!1}else Rt!==null&&(mf(Rt),Rt=null),i=!0;if(!i)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||me.current&1?Ae===0&&(Ae=3):Qd())),t.updateQueue!==null&&(t.flags|=4),Fe(t),null);case 4:return Oo(),af(e,t),e===null&&Xi(t.stateNode.containerInfo),Fe(t),null;case 10:return Dd(t.type._context),Fe(t),null;case 17:return rt(t.type)&&Xa(),Fe(t),null;case 19:if(fe(me),i=t.memoizedState,i===null)return Fe(t),null;if(r=(t.flags&128)!==0,s=i.rendering,s===null)if(r)ii(i,!1);else{if(Ae!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(s=nl(e),s!==null){for(t.flags|=128,ii(i,!1),r=s.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)i=n,e=r,i.flags&=14680066,s=i.alternate,s===null?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=s.childLanes,i.lanes=s.lanes,i.child=s.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=s.memoizedProps,i.memoizedState=s.memoizedState,i.updateQueue=s.updateQueue,i.type=s.type,e=s.dependencies,i.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return ae(me,me.current&1|2),t.child}e=e.sibling}i.tail!==null&&Ee()>Io&&(t.flags|=128,r=!0,ii(i,!1),t.lanes=4194304)}else{if(!r)if(e=nl(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),ii(i,!0),i.tail===null&&i.tailMode==="hidden"&&!s.alternate&&!pe)return Fe(t),null}else 2*Ee()-i.renderingStartTime>Io&&n!==1073741824&&(t.flags|=128,r=!0,ii(i,!1),t.lanes=4194304);i.isBackwards?(s.sibling=t.child,t.child=s):(n=i.last,n!==null?n.sibling=s:t.child=s,i.last=s)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Ee(),t.sibling=null,n=me.current,ae(me,r?n&1|2:n&1),t):(Fe(t),null);case 22:case 23:return Zd(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?ut&1073741824&&(Fe(t),t.subtreeFlags&6&&(t.flags|=8192)):Fe(t),null;case 24:return null;case 25:return null}throw Error(j(156,t.tag))}function eC(e,t){switch(Md(t),t.tag){case 1:return rt(t.type)&&Xa(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Oo(),fe(nt),fe(He),Bd(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return zd(t),null;case 13:if(fe(me),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(j(340));Lo()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return fe(me),null;case 4:return Oo(),null;case 10:return Dd(t.type._context),null;case 22:case 23:return Zd(),null;case 24:return null;default:return null}}var Ws=!1,je=!1,tC=typeof WeakSet=="function"?WeakSet:Set,G=null;function po(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){xe(e,t,r)}else n.current=null}function lf(e,t,n){try{n()}catch(r){xe(e,t,r)}}var im=!1;function nC(e,t){if(Hc=Wa,e=V0(),Nd(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var s=0,a=-1,l=-1,u=0,c=0,f=e,d=null;t:for(;;){for(var h;f!==n||o!==0&&f.nodeType!==3||(a=s+o),f!==i||r!==0&&f.nodeType!==3||(l=s+r),f.nodeType===3&&(s+=f.nodeValue.length),(h=f.firstChild)!==null;)d=f,f=h;for(;;){if(f===e)break t;if(d===n&&++u===o&&(a=s),d===i&&++c===r&&(l=s),(h=f.nextSibling)!==null)break;f=d,d=f.parentNode}f=h}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(Wc={focusedElem:e,selectionRange:n},Wa=!1,G=t;G!==null;)if(t=G,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,G=e;else for(;G!==null;){t=G;try{var g=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(g!==null){var v=g.memoizedProps,b=g.memoizedState,m=t.stateNode,p=m.getSnapshotBeforeUpdate(t.elementType===t.type?v:Nt(t.type,v),b);m.__reactInternalSnapshotBeforeUpdate=p}break;case 3:var y=t.stateNode.containerInfo;y.nodeType===1?y.textContent="":y.nodeType===9&&y.documentElement&&y.removeChild(y.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(j(163))}}catch(w){xe(t,t.return,w)}if(e=t.sibling,e!==null){e.return=t.return,G=e;break}G=t.return}return g=im,im=!1,g}function Li(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&lf(t,n,i)}o=o.next}while(o!==r)}}function zl(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function uf(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Lv(e){var t=e.alternate;t!==null&&(e.alternate=null,Lv(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Ht],delete t[Zi],delete t[Yc],delete t[I_],delete t[z_])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Dv(e){return e.tag===5||e.tag===3||e.tag===4}function sm(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Dv(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function cf(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Ya));else if(r!==4&&(e=e.child,e!==null))for(cf(e,t,n),e=e.sibling;e!==null;)cf(e,t,n),e=e.sibling}function ff(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(ff(e,t,n),e=e.sibling;e!==null;)ff(e,t,n),e=e.sibling}var De=null,At=!1;function bn(e,t,n){for(n=n.child;n!==null;)Ov(e,t,n),n=n.sibling}function Ov(e,t,n){if(Wt&&typeof Wt.onCommitFiberUnmount=="function")try{Wt.onCommitFiberUnmount(Ml,n)}catch{}switch(n.tag){case 5:je||po(n,t);case 6:var r=De,o=At;De=null,bn(e,t,n),De=r,At=o,De!==null&&(At?(e=De,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):De.removeChild(n.stateNode));break;case 18:De!==null&&(At?(e=De,n=n.stateNode,e.nodeType===8?Ru(e.parentNode,n):e.nodeType===1&&Ru(e,n),Gi(e)):Ru(De,n.stateNode));break;case 4:r=De,o=At,De=n.stateNode.containerInfo,At=!0,bn(e,t,n),De=r,At=o;break;case 0:case 11:case 14:case 15:if(!je&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,s=i.destroy;i=i.tag,s!==void 0&&(i&2||i&4)&&lf(n,t,s),o=o.next}while(o!==r)}bn(e,t,n);break;case 1:if(!je&&(po(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){xe(n,t,a)}bn(e,t,n);break;case 21:bn(e,t,n);break;case 22:n.mode&1?(je=(r=je)||n.memoizedState!==null,bn(e,t,n),je=r):bn(e,t,n);break;default:bn(e,t,n)}}function am(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new tC),t.forEach(function(r){var o=fC.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function Tt(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var o=n[r];try{var i=e,s=t,a=s;e:for(;a!==null;){switch(a.tag){case 5:De=a.stateNode,At=!1;break e;case 3:De=a.stateNode.containerInfo,At=!0;break e;case 4:De=a.stateNode.containerInfo,At=!0;break e}a=a.return}if(De===null)throw Error(j(160));Ov(i,s,o),De=null,At=!1;var l=o.alternate;l!==null&&(l.return=null),o.return=null}catch(u){xe(o,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Vv(t,e),t=t.sibling}function Vv(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Tt(t,e),zt(e),r&4){try{Li(3,e,e.return),zl(3,e)}catch(v){xe(e,e.return,v)}try{Li(5,e,e.return)}catch(v){xe(e,e.return,v)}}break;case 1:Tt(t,e),zt(e),r&512&&n!==null&&po(n,n.return);break;case 5:if(Tt(t,e),zt(e),r&512&&n!==null&&po(n,n.return),e.flags&32){var o=e.stateNode;try{ji(o,"")}catch(v){xe(e,e.return,v)}}if(r&4&&(o=e.stateNode,o!=null)){var i=e.memoizedProps,s=n!==null?n.memoizedProps:i,a=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{a==="input"&&i.type==="radio"&&i.name!=null&&o0(o,i),Lc(a,s);var u=Lc(a,i);for(s=0;s<l.length;s+=2){var c=l[s],f=l[s+1];c==="style"?u0(o,f):c==="dangerouslySetInnerHTML"?a0(o,f):c==="children"?ji(o,f):gd(o,c,f,u)}switch(a){case"input":Nc(o,i);break;case"textarea":i0(o,i);break;case"select":var d=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!i.multiple;var h=i.value;h!=null?So(o,!!i.multiple,h,!1):d!==!!i.multiple&&(i.defaultValue!=null?So(o,!!i.multiple,i.defaultValue,!0):So(o,!!i.multiple,i.multiple?[]:"",!1))}o[Zi]=i}catch(v){xe(e,e.return,v)}}break;case 6:if(Tt(t,e),zt(e),r&4){if(e.stateNode===null)throw Error(j(162));o=e.stateNode,i=e.memoizedProps;try{o.nodeValue=i}catch(v){xe(e,e.return,v)}}break;case 3:if(Tt(t,e),zt(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Gi(t.containerInfo)}catch(v){xe(e,e.return,v)}break;case 4:Tt(t,e),zt(e);break;case 13:Tt(t,e),zt(e),o=e.child,o.flags&8192&&(i=o.memoizedState!==null,o.stateNode.isHidden=i,!i||o.alternate!==null&&o.alternate.memoizedState!==null||(Xd=Ee())),r&4&&am(e);break;case 22:if(c=n!==null&&n.memoizedState!==null,e.mode&1?(je=(u=je)||c,Tt(t,e),je=u):Tt(t,e),zt(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!c&&e.mode&1)for(G=e,c=e.child;c!==null;){for(f=G=c;G!==null;){switch(d=G,h=d.child,d.tag){case 0:case 11:case 14:case 15:Li(4,d,d.return);break;case 1:po(d,d.return);var g=d.stateNode;if(typeof g.componentWillUnmount=="function"){r=d,n=d.return;try{t=r,g.props=t.memoizedProps,g.state=t.memoizedState,g.componentWillUnmount()}catch(v){xe(r,n,v)}}break;case 5:po(d,d.return);break;case 22:if(d.memoizedState!==null){um(f);continue}}h!==null?(h.return=d,G=h):um(f)}c=c.sibling}e:for(c=null,f=e;;){if(f.tag===5){if(c===null){c=f;try{o=f.stateNode,u?(i=o.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"):(a=f.stateNode,l=f.memoizedProps.style,s=l!=null&&l.hasOwnProperty("display")?l.display:null,a.style.display=l0("display",s))}catch(v){xe(e,e.return,v)}}}else if(f.tag===6){if(c===null)try{f.stateNode.nodeValue=u?"":f.memoizedProps}catch(v){xe(e,e.return,v)}}else if((f.tag!==22&&f.tag!==23||f.memoizedState===null||f===e)&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;f.sibling===null;){if(f.return===null||f.return===e)break e;c===f&&(c=null),f=f.return}c===f&&(c=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:Tt(t,e),zt(e),r&4&&am(e);break;case 21:break;default:Tt(t,e),zt(e)}}function zt(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(Dv(n)){var r=n;break e}n=n.return}throw Error(j(160))}switch(r.tag){case 5:var o=r.stateNode;r.flags&32&&(ji(o,""),r.flags&=-33);var i=sm(e);ff(e,i,o);break;case 3:case 4:var s=r.stateNode.containerInfo,a=sm(e);cf(e,a,s);break;default:throw Error(j(161))}}catch(l){xe(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function rC(e,t,n){G=e,Iv(e)}function Iv(e,t,n){for(var r=(e.mode&1)!==0;G!==null;){var o=G,i=o.child;if(o.tag===22&&r){var s=o.memoizedState!==null||Ws;if(!s){var a=o.alternate,l=a!==null&&a.memoizedState!==null||je;a=Ws;var u=je;if(Ws=s,(je=l)&&!u)for(G=o;G!==null;)s=G,l=s.child,s.tag===22&&s.memoizedState!==null?cm(o):l!==null?(l.return=s,G=l):cm(o);for(;i!==null;)G=i,Iv(i),i=i.sibling;G=o,Ws=a,je=u}lm(e)}else o.subtreeFlags&8772&&i!==null?(i.return=o,G=i):lm(e)}}function lm(e){for(;G!==null;){var t=G;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:je||zl(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!je)if(n===null)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:Nt(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;i!==null&&Wp(t,i,r);break;case 3:var s=t.updateQueue;if(s!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}Wp(t,s,n)}break;case 5:var a=t.stateNode;if(n===null&&t.flags&4){n=a;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break;case"img":l.src&&(n.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var c=u.memoizedState;if(c!==null){var f=c.dehydrated;f!==null&&Gi(f)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(j(163))}je||t.flags&512&&uf(t)}catch(d){xe(t,t.return,d)}}if(t===e){G=null;break}if(n=t.sibling,n!==null){n.return=t.return,G=n;break}G=t.return}}function um(e){for(;G!==null;){var t=G;if(t===e){G=null;break}var n=t.sibling;if(n!==null){n.return=t.return,G=n;break}G=t.return}}function cm(e){for(;G!==null;){var t=G;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{zl(4,t)}catch(l){xe(t,n,l)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var o=t.return;try{r.componentDidMount()}catch(l){xe(t,o,l)}}var i=t.return;try{uf(t)}catch(l){xe(t,i,l)}break;case 5:var s=t.return;try{uf(t)}catch(l){xe(t,s,l)}}}catch(l){xe(t,t.return,l)}if(t===e){G=null;break}var a=t.sibling;if(a!==null){a.return=t.return,G=a;break}G=t.return}}var oC=Math.ceil,il=vn.ReactCurrentDispatcher,Kd=vn.ReactCurrentOwner,Et=vn.ReactCurrentBatchConfig,oe=0,Le=null,Te=null,Oe=0,ut=0,mo=tr(0),Ae=0,rs=null,Dr=0,Bl=0,Yd=0,Di=null,Je=null,Xd=0,Io=1/0,Jt=null,sl=!1,df=null,jn=null,Gs=!1,On=null,al=0,Oi=0,hf=null,ba=-1,Ea=0;function Xe(){return oe&6?Ee():ba!==-1?ba:ba=Ee()}function Un(e){return e.mode&1?oe&2&&Oe!==0?Oe&-Oe:F_.transition!==null?(Ea===0&&(Ea=S0()),Ea):(e=ie,e!==0||(e=window.event,e=e===void 0?16:P0(e.type)),e):1}function Ot(e,t,n,r){if(50<Oi)throw Oi=0,hf=null,Error(j(185));gs(e,n,r),(!(oe&2)||e!==Le)&&(e===Le&&(!(oe&2)&&(Bl|=n),Ae===4&&Rn(e,Oe)),ot(e,r),n===1&&oe===0&&!(t.mode&1)&&(Io=Ee()+500,Ol&&nr()))}function ot(e,t){var n=e.callbackNode;FE(e,t);var r=Ha(e,e===Le?Oe:0);if(r===0)n!==null&&wp(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&wp(n),t===1)e.tag===0?B_(fm.bind(null,e)):K0(fm.bind(null,e)),O_(function(){!(oe&6)&&nr()}),n=null;else{switch(b0(r)){case 1:n=Sd;break;case 4:n=w0;break;case 16:n=Ua;break;case 536870912:n=x0;break;default:n=Ua}n=Gv(n,zv.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function zv(e,t){if(ba=-1,Ea=0,oe&6)throw Error(j(327));var n=e.callbackNode;if(ko()&&e.callbackNode!==n)return null;var r=Ha(e,e===Le?Oe:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=ll(e,r);else{t=r;var o=oe;oe|=2;var i=Fv();(Le!==e||Oe!==t)&&(Jt=null,Io=Ee()+500,Tr(e,t));do try{aC();break}catch(a){Bv(e,a)}while(1);Ld(),il.current=i,oe=o,Te!==null?t=0:(Le=null,Oe=0,t=Ae)}if(t!==0){if(t===2&&(o=zc(e),o!==0&&(r=o,t=pf(e,o))),t===1)throw n=rs,Tr(e,0),Rn(e,r),ot(e,Ee()),n;if(t===6)Rn(e,r);else{if(o=e.current.alternate,!(r&30)&&!iC(o)&&(t=ll(e,r),t===2&&(i=zc(e),i!==0&&(r=i,t=pf(e,i))),t===1))throw n=rs,Tr(e,0),Rn(e,r),ot(e,Ee()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(j(345));case 2:mr(e,Je,Jt);break;case 3:if(Rn(e,r),(r&130023424)===r&&(t=Xd+500-Ee(),10<t)){if(Ha(e,0)!==0)break;if(o=e.suspendedLanes,(o&r)!==r){Xe(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=Kc(mr.bind(null,e,Je,Jt),t);break}mr(e,Je,Jt);break;case 4:if(Rn(e,r),(r&4194240)===r)break;for(t=e.eventTimes,o=-1;0<r;){var s=31-Dt(r);i=1<<s,s=t[s],s>o&&(o=s),r&=~i}if(r=o,r=Ee()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*oC(r/1960))-r,10<r){e.timeoutHandle=Kc(mr.bind(null,e,Je,Jt),r);break}mr(e,Je,Jt);break;case 5:mr(e,Je,Jt);break;default:throw Error(j(329))}}}return ot(e,Ee()),e.callbackNode===n?zv.bind(null,e):null}function pf(e,t){var n=Di;return e.current.memoizedState.isDehydrated&&(Tr(e,t).flags|=256),e=ll(e,t),e!==2&&(t=Je,Je=n,t!==null&&mf(t)),e}function mf(e){Je===null?Je=e:Je.push.apply(Je,e)}function iC(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var o=n[r],i=o.getSnapshot;o=o.value;try{if(!Vt(i(),o))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Rn(e,t){for(t&=~Yd,t&=~Bl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Dt(t),r=1<<n;e[n]=-1,t&=~r}}function fm(e){if(oe&6)throw Error(j(327));ko();var t=Ha(e,0);if(!(t&1))return ot(e,Ee()),null;var n=ll(e,t);if(e.tag!==0&&n===2){var r=zc(e);r!==0&&(t=r,n=pf(e,r))}if(n===1)throw n=rs,Tr(e,0),Rn(e,t),ot(e,Ee()),n;if(n===6)throw Error(j(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,mr(e,Je,Jt),ot(e,Ee()),null}function qd(e,t){var n=oe;oe|=1;try{return e(t)}finally{oe=n,oe===0&&(Io=Ee()+500,Ol&&nr())}}function Or(e){On!==null&&On.tag===0&&!(oe&6)&&ko();var t=oe;oe|=1;var n=Et.transition,r=ie;try{if(Et.transition=null,ie=1,e)return e()}finally{ie=r,Et.transition=n,oe=t,!(oe&6)&&nr()}}function Zd(){ut=mo.current,fe(mo)}function Tr(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,D_(n)),Te!==null)for(n=Te.return;n!==null;){var r=n;switch(Md(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Xa();break;case 3:Oo(),fe(nt),fe(He),Bd();break;case 5:zd(r);break;case 4:Oo();break;case 13:fe(me);break;case 19:fe(me);break;case 10:Dd(r.type._context);break;case 22:case 23:Zd()}n=n.return}if(Le=e,Te=e=Hn(e.current,null),Oe=ut=t,Ae=0,rs=null,Yd=Bl=Dr=0,Je=Di=null,Sr!==null){for(t=0;t<Sr.length;t++)if(n=Sr[t],r=n.interleaved,r!==null){n.interleaved=null;var o=r.next,i=n.pending;if(i!==null){var s=i.next;i.next=o,r.next=s}n.pending=r}Sr=null}return e}function Bv(e,t){do{var n=Te;try{if(Ld(),wa.current=ol,rl){for(var r=ye.memoizedState;r!==null;){var o=r.queue;o!==null&&(o.pending=null),r=r.next}rl=!1}if(Lr=0,$e=Ne=ye=null,$i=!1,es=0,Kd.current=null,n===null||n.return===null){Ae=1,rs=t,Te=null;break}e:{var i=e,s=n.return,a=n,l=t;if(t=Oe,a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var u=l,c=a,f=c.tag;if(!(c.mode&1)&&(f===0||f===11||f===15)){var d=c.alternate;d?(c.updateQueue=d.updateQueue,c.memoizedState=d.memoizedState,c.lanes=d.lanes):(c.updateQueue=null,c.memoizedState=null)}var h=Qp(s);if(h!==null){h.flags&=-257,Jp(h,s,a,i,t),h.mode&1&&Zp(i,u,t),t=h,l=u;var g=t.updateQueue;if(g===null){var v=new Set;v.add(l),t.updateQueue=v}else g.add(l);break e}else{if(!(t&1)){Zp(i,u,t),Qd();break e}l=Error(j(426))}}else if(pe&&a.mode&1){var b=Qp(s);if(b!==null){!(b.flags&65536)&&(b.flags|=256),Jp(b,s,a,i,t),Rd(Vo(l,a));break e}}i=l=Vo(l,a),Ae!==4&&(Ae=2),Di===null?Di=[i]:Di.push(i),i=s;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t;var m=Ev(i,l,t);Hp(i,m);break e;case 1:a=l;var p=i.type,y=i.stateNode;if(!(i.flags&128)&&(typeof p.getDerivedStateFromError=="function"||y!==null&&typeof y.componentDidCatch=="function"&&(jn===null||!jn.has(y)))){i.flags|=65536,t&=-t,i.lanes|=t;var w=_v(i,a,t);Hp(i,w);break e}}i=i.return}while(i!==null)}Uv(n)}catch(_){t=_,Te===n&&n!==null&&(Te=n=n.return);continue}break}while(1)}function Fv(){var e=il.current;return il.current=ol,e===null?ol:e}function Qd(){(Ae===0||Ae===3||Ae===2)&&(Ae=4),Le===null||!(Dr&268435455)&&!(Bl&268435455)||Rn(Le,Oe)}function ll(e,t){var n=oe;oe|=2;var r=Fv();(Le!==e||Oe!==t)&&(Jt=null,Tr(e,t));do try{sC();break}catch(o){Bv(e,o)}while(1);if(Ld(),oe=n,il.current=r,Te!==null)throw Error(j(261));return Le=null,Oe=0,Ae}function sC(){for(;Te!==null;)jv(Te)}function aC(){for(;Te!==null&&!RE();)jv(Te)}function jv(e){var t=Wv(e.alternate,e,ut);e.memoizedProps=e.pendingProps,t===null?Uv(e):Te=t,Kd.current=null}function Uv(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=eC(n,t),n!==null){n.flags&=32767,Te=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Ae=6,Te=null;return}}else if(n=J_(n,t,ut),n!==null){Te=n;return}if(t=t.sibling,t!==null){Te=t;return}Te=t=e}while(t!==null);Ae===0&&(Ae=5)}function mr(e,t,n){var r=ie,o=Et.transition;try{Et.transition=null,ie=1,lC(e,t,n,r)}finally{Et.transition=o,ie=r}return null}function lC(e,t,n,r){do ko();while(On!==null);if(oe&6)throw Error(j(327));n=e.finishedWork;var o=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(j(177));e.callbackNode=null,e.callbackPriority=0;var i=n.lanes|n.childLanes;if(jE(e,i),e===Le&&(Te=Le=null,Oe=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Gs||(Gs=!0,Gv(Ua,function(){return ko(),null})),i=(n.flags&15990)!==0,n.subtreeFlags&15990||i){i=Et.transition,Et.transition=null;var s=ie;ie=1;var a=oe;oe|=4,Kd.current=null,nC(e,n),Vv(n,e),P_(Wc),Wa=!!Hc,Wc=Hc=null,e.current=n,rC(n),$E(),oe=a,ie=s,Et.transition=i}else e.current=n;if(Gs&&(Gs=!1,On=e,al=o),i=e.pendingLanes,i===0&&(jn=null),OE(n.stateNode),ot(e,Ee()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)o=t[n],r(o.value,{componentStack:o.stack,digest:o.digest});if(sl)throw sl=!1,e=df,df=null,e;return al&1&&e.tag!==0&&ko(),i=e.pendingLanes,i&1?e===hf?Oi++:(Oi=0,hf=e):Oi=0,nr(),null}function ko(){if(On!==null){var e=b0(al),t=Et.transition,n=ie;try{if(Et.transition=null,ie=16>e?16:e,On===null)var r=!1;else{if(e=On,On=null,al=0,oe&6)throw Error(j(331));var o=oe;for(oe|=4,G=e.current;G!==null;){var i=G,s=i.child;if(G.flags&16){var a=i.deletions;if(a!==null){for(var l=0;l<a.length;l++){var u=a[l];for(G=u;G!==null;){var c=G;switch(c.tag){case 0:case 11:case 15:Li(8,c,i)}var f=c.child;if(f!==null)f.return=c,G=f;else for(;G!==null;){c=G;var d=c.sibling,h=c.return;if(Lv(c),c===u){G=null;break}if(d!==null){d.return=h,G=d;break}G=h}}}var g=i.alternate;if(g!==null){var v=g.child;if(v!==null){g.child=null;do{var b=v.sibling;v.sibling=null,v=b}while(v!==null)}}G=i}}if(i.subtreeFlags&2064&&s!==null)s.return=i,G=s;else e:for(;G!==null;){if(i=G,i.flags&2048)switch(i.tag){case 0:case 11:case 15:Li(9,i,i.return)}var m=i.sibling;if(m!==null){m.return=i.return,G=m;break e}G=i.return}}var p=e.current;for(G=p;G!==null;){s=G;var y=s.child;if(s.subtreeFlags&2064&&y!==null)y.return=s,G=y;else e:for(s=p;G!==null;){if(a=G,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:zl(9,a)}}catch(_){xe(a,a.return,_)}if(a===s){G=null;break e}var w=a.sibling;if(w!==null){w.return=a.return,G=w;break e}G=a.return}}if(oe=o,nr(),Wt&&typeof Wt.onPostCommitFiberRoot=="function")try{Wt.onPostCommitFiberRoot(Ml,e)}catch{}r=!0}return r}finally{ie=n,Et.transition=t}}return!1}function dm(e,t,n){t=Vo(n,t),t=Ev(e,t,1),e=Fn(e,t,1),t=Xe(),e!==null&&(gs(e,1,t),ot(e,t))}function xe(e,t,n){if(e.tag===3)dm(e,e,n);else for(;t!==null;){if(t.tag===3){dm(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(jn===null||!jn.has(r))){e=Vo(n,e),e=_v(t,e,1),t=Fn(t,e,1),e=Xe(),t!==null&&(gs(t,1,e),ot(t,e));break}}t=t.return}}function uC(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Xe(),e.pingedLanes|=e.suspendedLanes&n,Le===e&&(Oe&n)===n&&(Ae===4||Ae===3&&(Oe&130023424)===Oe&&500>Ee()-Xd?Tr(e,0):Yd|=n),ot(e,t)}function Hv(e,t){t===0&&(e.mode&1?(t=Os,Os<<=1,!(Os&130023424)&&(Os=4194304)):t=1);var n=Xe();e=hn(e,t),e!==null&&(gs(e,t,n),ot(e,n))}function cC(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Hv(e,n)}function fC(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(j(314))}r!==null&&r.delete(t),Hv(e,n)}var Wv;Wv=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||nt.current)et=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return et=!1,Q_(e,t,n);et=!!(e.flags&131072)}else et=!1,pe&&t.flags&1048576&&Y0(t,Qa,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Sa(e,t),e=t.pendingProps;var o=$o(t,He.current);Co(t,n),o=jd(null,t,r,e,o,n);var i=Ud();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,rt(r)?(i=!0,qa(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Vd(t),o.updater=Vl,t.stateNode=o,o._reactInternals=t,ef(t,r,e,n),t=rf(null,t,r,!0,i,n)):(t.tag=0,pe&&i&&Ad(t),Ye(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Sa(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=hC(r),e=Nt(r,e),o){case 0:t=nf(null,t,r,e,n);break e;case 1:t=nm(null,t,r,e,n);break e;case 11:t=em(null,t,r,e,n);break e;case 14:t=tm(null,t,r,Nt(r.type,e),n);break e}throw Error(j(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Nt(r,o),nf(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Nt(r,o),nm(e,t,r,o,n);case 3:e:{if(Pv(t),e===null)throw Error(j(387));r=t.pendingProps,i=t.memoizedState,o=i.element,Q0(e,t),tl(t,r,null,n);var s=t.memoizedState;if(r=s.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=Vo(Error(j(423)),t),t=rm(e,t,r,n,o);break e}else if(r!==o){o=Vo(Error(j(424)),t),t=rm(e,t,r,n,o);break e}else for(ct=Bn(t.stateNode.containerInfo.firstChild),ft=t,pe=!0,Rt=null,n=nv(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Lo(),r===o){t=pn(e,t,n);break e}Ye(e,t,r,n)}t=t.child}return t;case 5:return rv(t),e===null&&Zc(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,s=o.children,Gc(r,o)?s=null:i!==null&&Gc(r,i)&&(t.flags|=32),Tv(e,t),Ye(e,t,s,n),t.child;case 6:return e===null&&Zc(t),null;case 13:return Nv(e,t,n);case 4:return Id(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Do(t,null,r,n):Ye(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Nt(r,o),em(e,t,r,o,n);case 7:return Ye(e,t,t.pendingProps,n),t.child;case 8:return Ye(e,t,t.pendingProps.children,n),t.child;case 12:return Ye(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,s=o.value,ae(Ja,r._currentValue),r._currentValue=s,i!==null)if(Vt(i.value,s)){if(i.children===o.children&&!nt.current){t=pn(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var a=i.dependencies;if(a!==null){s=i.child;for(var l=a.firstContext;l!==null;){if(l.context===r){if(i.tag===1){l=ln(-1,n&-n),l.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?l.next=l:(l.next=c.next,c.next=l),u.pending=l}}i.lanes|=n,l=i.alternate,l!==null&&(l.lanes|=n),Qc(i.return,n,t),a.lanes|=n;break}l=l.next}}else if(i.tag===10)s=i.type===t.type?null:i.child;else if(i.tag===18){if(s=i.return,s===null)throw Error(j(341));s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),Qc(s,n,t),s=i.sibling}else s=i.child;if(s!==null)s.return=i;else for(s=i;s!==null;){if(s===t){s=null;break}if(i=s.sibling,i!==null){i.return=s.return,s=i;break}s=s.return}i=s}Ye(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Co(t,n),o=_t(o),r=r(o),t.flags|=1,Ye(e,t,r,n),t.child;case 14:return r=t.type,o=Nt(r,t.pendingProps),o=Nt(r.type,o),tm(e,t,r,o,n);case 15:return Cv(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Nt(r,o),Sa(e,t),t.tag=1,rt(r)?(e=!0,qa(t)):e=!1,Co(t,n),ev(t,r,o),ef(t,r,o,n),rf(null,t,r,!0,e,n);case 19:return Av(e,t,n);case 22:return kv(e,t,n)}throw Error(j(156,t.tag))};function Gv(e,t){return v0(e,t)}function dC(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function St(e,t,n,r){return new dC(e,t,n,r)}function Jd(e){return e=e.prototype,!(!e||!e.isReactComponent)}function hC(e){if(typeof e=="function")return Jd(e)?1:0;if(e!=null){if(e=e.$$typeof,e===vd)return 11;if(e===wd)return 14}return 2}function Hn(e,t){var n=e.alternate;return n===null?(n=St(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function _a(e,t,n,r,o,i){var s=2;if(r=e,typeof e=="function")Jd(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case oo:return Pr(n.children,o,i,t);case yd:s=8,o|=8;break;case _c:return e=St(12,n,t,o|2),e.elementType=_c,e.lanes=i,e;case Cc:return e=St(13,n,t,o),e.elementType=Cc,e.lanes=i,e;case kc:return e=St(19,n,t,o),e.elementType=kc,e.lanes=i,e;case t0:return Fl(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Jy:s=10;break e;case e0:s=9;break e;case vd:s=11;break e;case wd:s=14;break e;case kn:s=16,r=null;break e}throw Error(j(130,e==null?e:typeof e,""))}return t=St(s,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function Pr(e,t,n,r){return e=St(7,e,r,t),e.lanes=n,e}function Fl(e,t,n,r){return e=St(22,e,r,t),e.elementType=t0,e.lanes=n,e.stateNode={isHidden:!1},e}function Bu(e,t,n){return e=St(6,e,null,t),e.lanes=n,e}function Fu(e,t,n){return t=St(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function pC(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Su(0),this.expirationTimes=Su(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Su(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function eh(e,t,n,r,o,i,s,a,l){return e=new pC(e,t,n,a,l),t===1?(t=1,i===!0&&(t|=8)):t=0,i=St(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Vd(i),e}function mC(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:ro,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function Kv(e){if(!e)return Zn;e=e._reactInternals;e:{if(Br(e)!==e||e.tag!==1)throw Error(j(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(rt(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(j(171))}if(e.tag===1){var n=e.type;if(rt(n))return G0(e,n,t)}return t}function Yv(e,t,n,r,o,i,s,a,l){return e=eh(n,r,!0,e,o,i,s,a,l),e.context=Kv(null),n=e.current,r=Xe(),o=Un(n),i=ln(r,o),i.callback=t??null,Fn(n,i,o),e.current.lanes=o,gs(e,o,r),ot(e,r),e}function jl(e,t,n,r){var o=t.current,i=Xe(),s=Un(o);return n=Kv(n),t.context===null?t.context=n:t.pendingContext=n,t=ln(i,s),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Fn(o,t,s),e!==null&&(Ot(e,o,s,i),va(e,o,s)),s}function ul(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function hm(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function th(e,t){hm(e,t),(e=e.alternate)&&hm(e,t)}function gC(){return null}var Xv=typeof reportError=="function"?reportError:function(e){console.error(e)};function nh(e){this._internalRoot=e}Ul.prototype.render=nh.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(j(409));jl(e,t,null,null)};Ul.prototype.unmount=nh.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Or(function(){jl(null,e,null,null)}),t[dn]=null}};function Ul(e){this._internalRoot=e}Ul.prototype.unstable_scheduleHydration=function(e){if(e){var t=C0();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Mn.length&&t!==0&&t<Mn[n].priority;n++);Mn.splice(n,0,e),n===0&&T0(e)}};function rh(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Hl(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function pm(){}function yC(e,t,n,r,o){if(o){if(typeof r=="function"){var i=r;r=function(){var u=ul(s);i.call(u)}}var s=Yv(t,r,e,0,null,!1,!1,"",pm);return e._reactRootContainer=s,e[dn]=s.current,Xi(e.nodeType===8?e.parentNode:e),Or(),s}for(;o=e.lastChild;)e.removeChild(o);if(typeof r=="function"){var a=r;r=function(){var u=ul(l);a.call(u)}}var l=eh(e,0,!1,null,null,!1,!1,"",pm);return e._reactRootContainer=l,e[dn]=l.current,Xi(e.nodeType===8?e.parentNode:e),Or(function(){jl(t,l,n,r)}),l}function Wl(e,t,n,r,o){var i=n._reactRootContainer;if(i){var s=i;if(typeof o=="function"){var a=o;o=function(){var l=ul(s);a.call(l)}}jl(t,s,e,o)}else s=yC(n,t,e,o,r);return ul(s)}E0=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=bi(t.pendingLanes);n!==0&&(bd(t,n|1),ot(t,Ee()),!(oe&6)&&(Io=Ee()+500,nr()))}break;case 13:Or(function(){var r=hn(e,1);if(r!==null){var o=Xe();Ot(r,e,1,o)}}),th(e,1)}};Ed=function(e){if(e.tag===13){var t=hn(e,134217728);if(t!==null){var n=Xe();Ot(t,e,134217728,n)}th(e,134217728)}};_0=function(e){if(e.tag===13){var t=Un(e),n=hn(e,t);if(n!==null){var r=Xe();Ot(n,e,t,r)}th(e,t)}};C0=function(){return ie};k0=function(e,t){var n=ie;try{return ie=e,t()}finally{ie=n}};Oc=function(e,t,n){switch(t){case"input":if(Nc(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=Dl(r);if(!o)throw Error(j(90));r0(r),Nc(r,o)}}}break;case"textarea":i0(e,n);break;case"select":t=n.value,t!=null&&So(e,!!n.multiple,t,!1)}};d0=qd;h0=Or;var vC={usingClientEntryPoint:!1,Events:[vs,lo,Dl,c0,f0,qd]},si={findFiberByHostInstance:xr,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},wC={bundleType:si.bundleType,version:si.version,rendererPackageName:si.rendererPackageName,rendererConfig:si.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:vn.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=g0(e),e===null?null:e.stateNode},findFiberByHostInstance:si.findFiberByHostInstance||gC,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Ks=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ks.isDisabled&&Ks.supportsFiber)try{Ml=Ks.inject(wC),Wt=Ks}catch{}}mt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=vC;mt.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!rh(t))throw Error(j(200));return mC(e,t,null,n)};mt.createRoot=function(e,t){if(!rh(e))throw Error(j(299));var n=!1,r="",o=Xv;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=eh(e,1,!1,null,null,n,!1,r,o),e[dn]=t.current,Xi(e.nodeType===8?e.parentNode:e),new nh(t)};mt.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(j(188)):(e=Object.keys(e).join(","),Error(j(268,e)));return e=g0(t),e=e===null?null:e.stateNode,e};mt.flushSync=function(e){return Or(e)};mt.hydrate=function(e,t,n){if(!Hl(t))throw Error(j(200));return Wl(null,e,t,!0,n)};mt.hydrateRoot=function(e,t,n){if(!rh(e))throw Error(j(405));var r=n!=null&&n.hydratedSources||null,o=!1,i="",s=Xv;if(n!=null&&(n.unstable_strictMode===!0&&(o=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onRecoverableError!==void 0&&(s=n.onRecoverableError)),t=Yv(t,null,e,1,n??null,o,!1,i,s),e[dn]=t.current,Xi(e),r)for(e=0;e<r.length;e++)n=r[e],o=n._getVersion,o=o(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new Ul(t)};mt.render=function(e,t,n){if(!Hl(t))throw Error(j(200));return Wl(null,e,t,!1,n)};mt.unmountComponentAtNode=function(e){if(!Hl(e))throw Error(j(40));return e._reactRootContainer?(Or(function(){Wl(null,null,e,!1,function(){e._reactRootContainer=null,e[dn]=null})}),!0):!1};mt.unstable_batchedUpdates=qd;mt.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Hl(n))throw Error(j(200));if(e==null||e._reactInternals===void 0)throw Error(j(38));return Wl(e,t,n,!1,r)};mt.version="18.2.0-next-9e3b772b8-20220608";function qv(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(qv)}catch(e){console.error(e)}}qv(),Yy.exports=mt;var Zv=Yy.exports;const xC=od(Zv),gf=se.createContext(null);function SC(e){let{children:t}=e,n=S.useContext(gf),[r,o]=S.useState(0),i=S.useMemo(()=>({parent:n,modalCount:r,addModal(){o(s=>s+1),n&&n.addModal()},removeModal(){o(s=>s-1),n&&n.removeModal()}}),[n,r]);return se.createElement(gf.Provider,{value:i},t)}function bC(){let e=S.useContext(gf);return{modalProviderProps:{"aria-hidden":e&&e.modalCount>0?!0:null}}}function EC(e){let{modalProviderProps:t}=bC();return se.createElement("div",{"data-overlay-container":!0,...e,...t})}function _C(e){return se.createElement(SC,null,se.createElement(EC,e))}const mm=se.createContext(null);function CC(e){let t=ud(),{portalContainer:n=t?null:document.body,isExiting:r}=e,[o,i]=S.useState(!1),s=S.useMemo(()=>({contain:o,setContain:i}),[o,i]);if(!n)return null;let a;return e.disableFocusManagement?a=se.createElement(mm.Provider,{value:s},e.children):a=se.createElement(mm.Provider,{value:s},se.createElement(lE,{restoreFocus:!0,contain:o&&!r},e.children)),xC.createPortal(a,n)}var kC=({children:e,locale:t="en-US",...n})=>I.jsx(qb,{locale:t,children:I.jsx(_C,{...n,children:e})});function xs(e){return S.forwardRef(e)}var TC=(e,t,n=!0)=>{if(!t)return[e,{}];const r=t.reduce((o,i)=>i in e?{...o,[i]:e[i]}:o,{});return n?[Object.keys(e).filter(i=>!t.includes(i)).reduce((i,s)=>({...i,[s]:e[s]}),{}),r]:[e,r]},gm=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Ge=e=>!e||typeof e!="object"||Object.keys(e).length===0,PC=(e,t)=>JSON.stringify(e)===JSON.stringify(t);function Qv(e,t){e.forEach(function(n){Array.isArray(n)?Qv(n,t):t.push(n)})}function Jv(e){let t=[];return Qv(e,t),t}var NC=(...e)=>Jv(e).filter(Boolean),ew=(e,t)=>{let n={},r=Object.keys(e),o=Object.keys(t);for(let i of r)if(o.includes(i)){let s=e[i],a=t[i];typeof s=="object"&&typeof a=="object"?n[i]=ew(s,a):n[i]=a+" "+s}else n[i]=e[i];for(let i of o)r.includes(i)||(n[i]=t[i]);return n},ym=e=>!e||typeof e!="string"?e:e.replace(/\s+/g," ").trim();function AC(){for(var e=0,t,n,r="";e<arguments.length;)(t=arguments[e++])&&(n=tw(t))&&(r&&(r+=" "),r+=n);return r}function tw(e){if(typeof e=="string")return e;for(var t,n="",r=0;r<e.length;r++)e[r]&&(t=tw(e[r]))&&(n&&(n+=" "),n+=t);return n}var oh="-";function MC(e){var t=$C(e),n=e.conflictingClassGroups,r=e.conflictingClassGroupModifiers,o=r===void 0?{}:r;function i(a){var l=a.split(oh);return l[0]===""&&l.length!==1&&l.shift(),nw(l,t)||RC(a)}function s(a,l){var u=n[a]||[];return l&&o[a]?[].concat(u,o[a]):u}return{getClassGroupId:i,getConflictingClassGroupIds:s}}function nw(e,t){var s;if(e.length===0)return t.classGroupId;var n=e[0],r=t.nextPart.get(n),o=r?nw(e.slice(1),r):void 0;if(o)return o;if(t.validators.length!==0){var i=e.join(oh);return(s=t.validators.find(function(a){var l=a.validator;return l(i)}))==null?void 0:s.classGroupId}}var vm=/^\[(.+)\]$/;function RC(e){if(vm.test(e)){var t=vm.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}}function $C(e){var t=e.theme,n=e.prefix,r={nextPart:new Map,validators:[]},o=DC(Object.entries(e.classGroups),n);return o.forEach(function(i){var s=i[0],a=i[1];yf(a,r,s,t)}),r}function yf(e,t,n,r){e.forEach(function(o){if(typeof o=="string"){var i=o===""?t:wm(t,o);i.classGroupId=n;return}if(typeof o=="function"){if(LC(o)){yf(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(function(s){var a=s[0],l=s[1];yf(l,wm(t,a),n,r)})})}function wm(e,t){var n=e;return t.split(oh).forEach(function(r){n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n}function LC(e){return e.isThemeGetter}function DC(e,t){return t?e.map(function(n){var r=n[0],o=n[1],i=o.map(function(s){return typeof s=="string"?t+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(function(a){var l=a[0],u=a[1];return[t+l,u]})):s});return[r,i]}):e}function OC(e){if(e<1)return{get:function(){},set:function(){}};var t=0,n=new Map,r=new Map;function o(i,s){n.set(i,s),t++,t>e&&(t=0,r=n,n=new Map)}return{get:function(s){var a=n.get(s);if(a!==void 0)return a;if((a=r.get(s))!==void 0)return o(s,a),a},set:function(s,a){n.has(s)?n.set(s,a):o(s,a)}}}var rw="!";function VC(e){var t=e.separator||":",n=t.length===1,r=t[0],o=t.length;return function(s){for(var a=[],l=0,u=0,c,f=0;f<s.length;f++){var d=s[f];if(l===0){if(d===r&&(n||s.slice(f,f+o)===t)){a.push(s.slice(u,f)),u=f+o;continue}if(d==="/"){c=f;continue}}d==="["?l++:d==="]"&&l--}var h=a.length===0?s:s.substring(u),g=h.startsWith(rw),v=g?h.substring(1):h,b=c&&c>u?c-u:void 0;return{modifiers:a,hasImportantModifier:g,baseClassName:v,maybePostfixModifierPosition:b}}}function IC(e){if(e.length<=1)return e;var t=[],n=[];return e.forEach(function(r){var o=r[0]==="[";o?(t.push.apply(t,n.sort().concat([r])),n=[]):n.push(r)}),t.push.apply(t,n.sort()),t}function zC(e){return{cache:OC(e.cacheSize),splitModifiers:VC(e),...MC(e)}}var BC=/\s+/;function FC(e,t){var n=t.splitModifiers,r=t.getClassGroupId,o=t.getConflictingClassGroupIds,i=new Set;return e.trim().split(BC).map(function(s){var a=n(s),l=a.modifiers,u=a.hasImportantModifier,c=a.baseClassName,f=a.maybePostfixModifierPosition,d=r(f?c.substring(0,f):c),h=!!f;if(!d){if(!f)return{isTailwindClass:!1,originalClassName:s};if(d=r(c),!d)return{isTailwindClass:!1,originalClassName:s};h=!1}var g=IC(l).join(":"),v=u?g+rw:g;return{isTailwindClass:!0,modifierId:v,classGroupId:d,originalClassName:s,hasPostfixModifier:h}}).reverse().filter(function(s){if(!s.isTailwindClass)return!0;var a=s.modifierId,l=s.classGroupId,u=s.hasPostfixModifier,c=a+l;return i.has(c)?!1:(i.add(c),o(l,u).forEach(function(f){return i.add(a+f)}),!0)}).reverse().map(function(s){return s.originalClassName}).join(" ")}function vf(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r,o,i,s=a;function a(u){var c=t[0],f=t.slice(1),d=f.reduce(function(h,g){return g(h)},c());return r=zC(d),o=r.cache.get,i=r.cache.set,s=l,l(u)}function l(u){var c=o(u);if(c)return c;var f=FC(u,r);return i(u,f),f}return function(){return s(AC.apply(null,arguments))}}function ue(e){var t=function(r){return r[e]||[]};return t.isThemeGetter=!0,t}var ow=/^\[(?:([a-z-]+):)?(.+)\]$/i,jC=/^\d+\/\d+$/,UC=new Set(["px","full","screen"]),HC=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,WC=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,GC=/^-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/;function Pt(e){return Er(e)||UC.has(e)||jC.test(e)||wf(e)}function wf(e){return Fr(e,"length",QC)}function KC(e){return Fr(e,"size",iw)}function YC(e){return Fr(e,"position",iw)}function XC(e){return Fr(e,"url",JC)}function Ys(e){return Fr(e,"number",Er)}function Er(e){return!Number.isNaN(Number(e))}function qC(e){return e.endsWith("%")&&Er(e.slice(0,-1))}function ai(e){return xm(e)||Fr(e,"number",xm)}function te(e){return ow.test(e)}function li(){return!0}function En(e){return HC.test(e)}function ZC(e){return Fr(e,"",ek)}function Fr(e,t,n){var r=ow.exec(e);return r?r[1]?r[1]===t:n(r[2]):!1}function QC(e){return WC.test(e)}function iw(){return!1}function JC(e){return e.startsWith("url(")}function xm(e){return Number.isInteger(Number(e))}function ek(e){return GC.test(e)}function xf(){var e=ue("colors"),t=ue("spacing"),n=ue("blur"),r=ue("brightness"),o=ue("borderColor"),i=ue("borderRadius"),s=ue("borderSpacing"),a=ue("borderWidth"),l=ue("contrast"),u=ue("grayscale"),c=ue("hueRotate"),f=ue("invert"),d=ue("gap"),h=ue("gradientColorStops"),g=ue("gradientColorStopPositions"),v=ue("inset"),b=ue("margin"),m=ue("opacity"),p=ue("padding"),y=ue("saturate"),w=ue("scale"),_=ue("sepia"),T=ue("skew"),N=ue("space"),A=ue("translate"),z=function(){return["auto","contain","none"]},B=function(){return["auto","hidden","clip","visible","scroll"]},D=function(){return["auto",te,t]},O=function(){return[te,t]},L=function(){return["",Pt]},E=function(){return["auto",Er,te]},M=function(){return["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"]},k=function(){return["solid","dashed","dotted","double","none"]},V=function(){return["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter"]},P=function(){return["start","end","center","between","around","evenly","stretch"]},C=function(){return["","0",te]},$=function(){return["auto","avoid","all","avoid-page","page","left","right","column"]},x=function(){return[Er,Ys]},R=function(){return[Er,te]};return{cacheSize:500,theme:{colors:[li],spacing:[Pt],blur:["none","",En,te],brightness:x(),borderColor:[e],borderRadius:["none","","full",En,te],borderSpacing:O(),borderWidth:L(),contrast:x(),grayscale:C(),hueRotate:R(),invert:C(),gap:O(),gradientColorStops:[e],gradientColorStopPositions:[qC,wf],inset:D(),margin:D(),opacity:x(),padding:O(),saturate:x(),scale:x(),sepia:C(),skew:R(),space:O(),translate:O()},classGroups:{aspect:[{aspect:["auto","square","video",te]}],container:["container"],columns:[{columns:[En]}],"break-after":[{"break-after":$()}],"break-before":[{"break-before":$()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none"]}],clear:[{clear:["left","right","both","none"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[].concat(M(),[te])}],overflow:[{overflow:B()}],"overflow-x":[{"overflow-x":B()}],"overflow-y":[{"overflow-y":B()}],overscroll:[{overscroll:z()}],"overscroll-x":[{"overscroll-x":z()}],"overscroll-y":[{"overscroll-y":z()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[v]}],"inset-x":[{"inset-x":[v]}],"inset-y":[{"inset-y":[v]}],start:[{start:[v]}],end:[{end:[v]}],top:[{top:[v]}],right:[{right:[v]}],bottom:[{bottom:[v]}],left:[{left:[v]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",ai]}],basis:[{basis:D()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",te]}],grow:[{grow:C()}],shrink:[{shrink:C()}],order:[{order:["first","last","none",ai]}],"grid-cols":[{"grid-cols":[li]}],"col-start-end":[{col:["auto",{span:["full",ai]},te]}],"col-start":[{"col-start":E()}],"col-end":[{"col-end":E()}],"grid-rows":[{"grid-rows":[li]}],"row-start-end":[{row:["auto",{span:[ai]},te]}],"row-start":[{"row-start":E()}],"row-end":[{"row-end":E()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",te]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",te]}],gap:[{gap:[d]}],"gap-x":[{"gap-x":[d]}],"gap-y":[{"gap-y":[d]}],"justify-content":[{justify:["normal"].concat(P())}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal"].concat(P(),["baseline"])}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[].concat(P(),["baseline"])}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[p]}],px:[{px:[p]}],py:[{py:[p]}],ps:[{ps:[p]}],pe:[{pe:[p]}],pt:[{pt:[p]}],pr:[{pr:[p]}],pb:[{pb:[p]}],pl:[{pl:[p]}],m:[{m:[b]}],mx:[{mx:[b]}],my:[{my:[b]}],ms:[{ms:[b]}],me:[{me:[b]}],mt:[{mt:[b]}],mr:[{mr:[b]}],mb:[{mb:[b]}],ml:[{ml:[b]}],"space-x":[{"space-x":[N]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[N]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit",te,t]}],"min-w":[{"min-w":["min","max","fit",te,Pt]}],"max-w":[{"max-w":["0","none","full","min","max","fit","prose",{screen:[En]},En,te]}],h:[{h:[te,t,"auto","min","max","fit"]}],"min-h":[{"min-h":["min","max","fit",te,Pt]}],"max-h":[{"max-h":[te,t,"min","max","fit"]}],"font-size":[{text:["base",En,wf]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Ys]}],"font-family":[{font:[li]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",te]}],"line-clamp":[{"line-clamp":["none",Er,Ys]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",te,Pt]}],"list-image":[{"list-image":["none",te]}],"list-style-type":[{list:["none","disc","decimal",te]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[m]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[m]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[].concat(k(),["wavy"])}],"text-decoration-thickness":[{decoration:["auto","from-font",Pt]}],"underline-offset":[{"underline-offset":["auto",te,Pt]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],indent:[{indent:O()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",te]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",te]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[m]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[].concat(M(),[YC])}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",KC]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},XC]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[g]}],"gradient-via-pos":[{via:[g]}],"gradient-to-pos":[{to:[g]}],"gradient-from":[{from:[h]}],"gradient-via":[{via:[h]}],"gradient-to":[{to:[h]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-y":[{"border-y":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[m]}],"border-style":[{border:[].concat(k(),["hidden"])}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[a]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[m]}],"divide-style":[{divide:k()}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:[""].concat(k())}],"outline-offset":[{"outline-offset":[te,Pt]}],"outline-w":[{outline:[Pt]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:L()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[m]}],"ring-offset-w":[{"ring-offset":[Pt]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",En,ZC]}],"shadow-color":[{shadow:[li]}],opacity:[{opacity:[m]}],"mix-blend":[{"mix-blend":V()}],"bg-blend":[{"bg-blend":V()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",En,te]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[f]}],saturate:[{saturate:[y]}],sepia:[{sepia:[_]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[c]}],"backdrop-invert":[{"backdrop-invert":[f]}],"backdrop-opacity":[{"backdrop-opacity":[m]}],"backdrop-saturate":[{"backdrop-saturate":[y]}],"backdrop-sepia":[{"backdrop-sepia":[_]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[s]}],"border-spacing-x":[{"border-spacing-x":[s]}],"border-spacing-y":[{"border-spacing-y":[s]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",te]}],duration:[{duration:R()}],ease:[{ease:["linear","in","out","in-out",te]}],delay:[{delay:R()}],animate:[{animate:["none","spin","ping","pulse","bounce",te]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[w]}],"scale-x":[{"scale-x":[w]}],"scale-y":[{"scale-y":[w]}],rotate:[{rotate:[ai,te]}],"translate-x":[{"translate-x":[A]}],"translate-y":[{"translate-y":[A]}],"skew-x":[{"skew-x":[T]}],"skew-y":[{"skew-y":[T]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",te]}],accent:[{accent:["auto",e]}],appearance:["appearance-none"],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",te]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":O()}],"scroll-mx":[{"scroll-mx":O()}],"scroll-my":[{"scroll-my":O()}],"scroll-ms":[{"scroll-ms":O()}],"scroll-me":[{"scroll-me":O()}],"scroll-mt":[{"scroll-mt":O()}],"scroll-mr":[{"scroll-mr":O()}],"scroll-mb":[{"scroll-mb":O()}],"scroll-ml":[{"scroll-ml":O()}],"scroll-p":[{"scroll-p":O()}],"scroll-px":[{"scroll-px":O()}],"scroll-py":[{"scroll-py":O()}],"scroll-ps":[{"scroll-ps":O()}],"scroll-pe":[{"scroll-pe":O()}],"scroll-pt":[{"scroll-pt":O()}],"scroll-pr":[{"scroll-pr":O()}],"scroll-pb":[{"scroll-pb":O()}],"scroll-pl":[{"scroll-pl":O()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","pinch-zoom","manipulation",{pan:["x","left","right","y","up","down"]}]}],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",te]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Pt,Ys]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}function tk(e,t){for(var n in t)sw(e,n,t[n]);return e}var nk=Object.prototype.hasOwnProperty,rk=new Set(["string","number","boolean"]);function sw(e,t,n){if(!nk.call(e,t)||rk.has(typeof n)||n===null){e[t]=n;return}if(Array.isArray(n)&&Array.isArray(e[t])){e[t]=e[t].concat(n);return}if(typeof n=="object"&&typeof e[t]=="object"){if(e[t]===null){e[t]=n;return}for(var r in n)sw(e[t],r,n[r])}}function ok(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return typeof e=="function"?vf.apply(void 0,[xf,e].concat(n)):vf.apply(void 0,[function(){return tk(xf(),e)}].concat(n))}var ik=vf(xf),sk={twMerge:!0,twMergeConfig:{},responsiveVariants:!1},aw=e=>e||void 0,cl=(...e)=>aw(Jv(e).filter(Boolean).join(" ")),ju=null,fl={},Sf=!1,ui=(...e)=>t=>t.twMerge?((!ju||Sf)&&(Sf=!1,ju=Ge(fl)?ik:ok(fl)),aw(ju(cl(e)))):cl(e),Sm=(e,t)=>{for(let n in t)e.hasOwnProperty(n)?e[n]=cl(e[n],t[n]):e[n]=t[n];return e},ak=(e,t)=>{let{extend:n=null,slots:r={},variants:o={},compoundVariants:i=[],compoundSlots:s=[],defaultVariants:a={}}=e,l={...sk,...t},u=n!=null&&n.base?cl(n.base,e==null?void 0:e.base):e==null?void 0:e.base,c=n!=null&&n.variants&&!Ge(n.variants)?ew(o,n.variants):o,f=n!=null&&n.defaultVariants&&!Ge(n.defaultVariants)?{...n.defaultVariants,...a}:a;!Ge(l.twMergeConfig)&&!PC(l.twMergeConfig,fl)&&(Sf=!0,fl=l.twMergeConfig);let d=Ge(r)?{}:{base:e==null?void 0:e.base,...r},h=Ge(n==null?void 0:n.slots)?d:Sm(n==null?void 0:n.slots,Ge(d)?{base:e==null?void 0:e.base}:d),g=b=>{if(Ge(c)&&Ge(r)&&Ge(n==null?void 0:n.slots))return ui(u,b==null?void 0:b.class,b==null?void 0:b.className)(l);if(i&&!Array.isArray(i))throw new TypeError(`The "compoundVariants" prop must be an array. Received: ${typeof i}`);if(s&&!Array.isArray(s))throw new TypeError(`The "compoundSlots" prop must be an array. Received: ${typeof s}`);let m=(D,O,L=[],E)=>{let M=L;if(typeof O=="string")M=M.concat(ym(O).split(" ").map(k=>`${D}:${k}`));else if(Array.isArray(O))M=M.concat(O.reduce((k,V)=>k.concat(`${D}:${V}`),[]));else if(typeof O=="object"&&typeof E=="string"){for(let k in O)if(O.hasOwnProperty(k)&&k===E){let V=O[k];if(V&&typeof V=="string"){let P=ym(V);M[E]?M[E]=M[E].concat(P.split(" ").map(C=>`${D}:${C}`)):M[E]=P.split(" ").map(C=>`${D}:${C}`)}else Array.isArray(V)&&V.length>0&&(M[E]=V.reduce((P,C)=>P.concat(`${D}:${C}`),[]))}}return M},p=(D,O=c,L=null,E=null)=>{var M;let k=O[D];if(!k||Ge(k))return null;let V=(M=E==null?void 0:E[D])!=null?M:b==null?void 0:b[D];if(V===null)return null;let P=gm(V),C=Array.isArray(l.responsiveVariants)&&l.responsiveVariants.length>0||l.responsiveVariants===!0,$=f==null?void 0:f[D],x=[];if(typeof P=="object"&&C)for(let[F,U]of Object.entries(P)){let H=k[U];if(F==="initial"){$=U;continue}Array.isArray(l.responsiveVariants)&&!l.responsiveVariants.includes(F)||(x=m(F,H,x,L))}let R=k[P]||k[gm($)];return typeof x=="object"&&typeof L=="string"&&x[L]?Sm(x,R):x.length>0?(x.push(R),x):R},y=()=>c?Object.keys(c).map(D=>p(D,c)):null,w=(D,O)=>{if(!c||typeof c!="object")return null;let L=new Array;for(let E in c){let M=p(E,c,D,O),k=D==="base"&&typeof M=="string"?M:M&&M[D];k&&(L[L.length]=k)}return L},_={};for(let D in b)b[D]!==void 0&&(_[D]=b[D]);let T=(D,O)=>{var L;let E=typeof(b==null?void 0:b[D])=="object"?{[D]:(L=b[D])==null?void 0:L.initial}:{};return{...f,..._,...E,...O}},N=(D=[],O)=>{let L=[];for(let{class:E,className:M,...k}of D){let V=!0;for(let[P,C]of Object.entries(k)){let $=T(P,O);if(Array.isArray(C)){if(!C.includes($[P])){V=!1;break}}else if($[P]!==C){V=!1;break}}V&&(E&&L.push(E),M&&L.push(M))}return L},A=D=>{let O=N(i,D),L=N(n==null?void 0:n.compoundVariants,D);return NC(L,O)},z=D=>{let O=A(D);if(!Array.isArray(O))return O;let L={};for(let E of O)if(typeof E=="string"&&(L.base=ui(L.base,E)(l)),typeof E=="object")for(let[M,k]of Object.entries(E))L[M]=ui(L[M],k)(l);return L},B=D=>{if(s.length<1)return null;let O={};for(let{slots:L=[],class:E,className:M,...k}of s){if(!Ge(k)){let V=!0;for(let P of Object.keys(k)){let C=T(P,D)[P];if(C===void 0||C!==k[P]){V=!1;break}}if(!V)continue}for(let V of L)O[V]=O[V]||[],O[V].push([E,M])}return O};if(!Ge(r)||!Ge(n==null?void 0:n.slots)){let D={};if(typeof h=="object"&&!Ge(h))for(let O of Object.keys(h))D[O]=L=>{var E,M;return ui(h[O],w(O,L),((E=z(L))!=null?E:[])[O],((M=B(L))!=null?M:[])[O],L==null?void 0:L.class,L==null?void 0:L.className)(l)};return D}return ui(u,y(),A(),b==null?void 0:b.class,b==null?void 0:b.className)(l)},v=()=>{if(!(!c||typeof c!="object"))return Object.keys(c)};return g.variantKeys=v(),g.extend=n,g.base=u,g.slots=h,g.variants=c,g.defaultVariants=f,g.compoundSlots=s,g.compoundVariants=i,g},lk=["0","xs","sm","md","lg","xl","2xl","3xl","4xl","5xl","6xl","7xl","8xl","9xl","1","2","3","3.5","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","20","24","28","32","36","40","44","48","52","56","60","64","72","80","96"],Uu=lk.map(e=>`unit-${e}`),Xs=["small","medium","large"],uk=(e,t)=>{var n,r,o;return ak(e,{...t,twMerge:(n=t==null?void 0:t.twMerge)!=null?n:!0,twMergeConfig:{...t==null?void 0:t.twMergeConfig,theme:{...(r=t==null?void 0:t.twMergeConfig)==null?void 0:r.theme,opacity:["disabled"],spacing:["divider","unit",...Uu],borderWidth:Xs,borderRadius:Xs},classGroups:{...(o=t==null?void 0:t.twMergeConfig)==null?void 0:o.classGroups,shadow:[{shadow:Xs}],"font-size":[{text:["tiny",...Xs]}],"bg-image":["bg-stripe-gradient"],"min-w":[{"min-w":["unit",...Uu]}],"min-h":[{"min-h":["unit",...Uu]}]}}})},ck=["outline-none","data-[focus-visible=true]:z-10","data-[focus-visible=true]:outline-2","data-[focus-visible=true]:outline-focus","data-[focus-visible=true]:outline-offset-2"],bm=uk({slots:{base:["flex","z-40","w-full","h-auto","items-center","justify-center","data-[menu-open=true]:border-none"],wrapper:["z-40","flex","px-6","gap-4","w-full","flex-row","relative","flex-nowrap","items-center","justify-between","h-[var(--navbar-height)]"],toggle:["group","flex","items-center","justify-center","w-6","h-full","outline-none","rounded-small","tap-highlight-transparent",...ck],srOnly:["sr-only"],toggleIcon:["w-full","h-full","pointer-events-none","flex","flex-col","items-center","justify-center","text-inherit","group-data-[pressed=true]:opacity-70","transition-opacity","before:content-['']","before:block","before:h-px","before:w-6","before:bg-current","before:transition-transform","before:duration-150","before:-translate-y-1","before:rotate-0","group-data-[open=true]:before:translate-y-px","group-data-[open=true]:before:rotate-45","after:content-['']","after:block","after:h-px","after:w-6","after:bg-current","after:transition-transform","after:duration-150","after:translate-y-1","after:rotate-0","group-data-[open=true]:after:translate-y-0","group-data-[open=true]:after:-rotate-45"],brand:["flex","basis-0","flex-row","flex-grow","flex-nowrap","justify-start","bg-transparent","items-center","no-underline","text-medium","whitespace-nowrap","box-border"],content:["flex","gap-4","h-full","flex-row","flex-nowrap","items-center","data-[justify=start]:justify-start","data-[justify=start]:flex-grow","data-[justify=start]:basis-0","data-[justify=center]:justify-center","data-[justify=end]:justify-end","data-[justify=end]:flex-grow","data-[justify=end]:basis-0"],item:["text-medium","whitespace-nowrap","box-border","list-none","data-[active=true]:font-semibold"],menu:["z-30","px-6","pt-2","fixed","flex","max-w-full","top-[var(--navbar-height)]","inset-x-0","bottom-0","w-screen","flex-col","gap-2","overflow-y-auto"],menuItem:["text-large"]},variants:{position:{static:{base:"static"},sticky:{base:"sticky top-0 inset-x-0"}},maxWidth:{sm:{wrapper:"max-w-[640px]"},md:{wrapper:"max-w-[768px]"},lg:{wrapper:"max-w-[1024px]"},xl:{wrapper:"max-w-[1280px]"},"2xl":{wrapper:"max-w-[1536px]"},full:{wrapper:"max-w-full"}},hideOnScroll:{true:{base:["sticky","top-0","inset-x-0"]}},isBordered:{true:{base:["border-b","border-divider"]}},isBlurred:{false:{base:"bg-background",menu:"bg-background"},true:{base:["backdrop-blur-lg","data-[menu-open=true]:backdrop-blur-xl","backdrop-saturate-150","bg-background/70"],menu:["backdrop-blur-xl","backdrop-saturate-150","bg-background/70"]}},disableAnimation:{true:{menu:["hidden","h-[calc(100dvh_-_var(--navbar-height)_-_1px)]","data-[open=true]:flex"]}}},defaultVariants:{maxWidth:"lg",position:"sticky",isBlurred:!0}});function lw(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=lw(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function Nr(...e){for(var t=0,n,r,o="";t<e.length;)(n=e[t++])&&(r=lw(n))&&(o&&(o+=" "),o+=r);return o}var To=e=>e?"true":void 0;function fk(e={}){const{strict:t=!0,errorMessage:n="useContext: `context` is undefined. Seems you forgot to wrap component within the Provider",name:r}=e,o=S.createContext(void 0);o.displayName=r;function i(){var s;const a=S.useContext(o);if(!a&&t){const l=new Error(n);throw l.name="ContextError",(s=Error.captureStackTrace)==null||s.call(Error,l,i),l}return a}return[o.Provider,i,o]}function Ss(e){const t=S.useRef(null);return S.useImperativeHandle(e,()=>t.current),t}var dk=Object.create,uw=Object.defineProperty,hk=Object.getOwnPropertyDescriptor,cw=Object.getOwnPropertyNames,pk=Object.getPrototypeOf,mk=Object.prototype.hasOwnProperty,fw=(e,t)=>function(){return t||(0,e[cw(e)[0]])((t={exports:{}}).exports,t),t.exports},gk=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of cw(t))!mk.call(e,o)&&o!==n&&uw(e,o,{get:()=>t[o],enumerable:!(r=hk(t,o))||r.enumerable});return e},yk=(e,t,n)=>(n=e!=null?dk(pk(e)):{},gk(t||!e||!e.__esModule?uw(n,"default",{value:e,enumerable:!0}):n,e)),vk=fw({"../../../node_modules/.pnpm/react@18.2.0/node_modules/react/cjs/react.production.min.js"(e){var t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),a=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),c=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),d=Symbol.iterator;function h(x){return x===null||typeof x!="object"?null:(x=d&&x[d]||x["@@iterator"],typeof x=="function"?x:null)}var g={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},v=Object.assign,b={};function m(x,R,F){this.props=x,this.context=R,this.refs=b,this.updater=F||g}m.prototype.isReactComponent={},m.prototype.setState=function(x,R){if(typeof x!="object"&&typeof x!="function"&&x!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,x,R,"setState")},m.prototype.forceUpdate=function(x){this.updater.enqueueForceUpdate(this,x,"forceUpdate")};function p(){}p.prototype=m.prototype;function y(x,R,F){this.props=x,this.context=R,this.refs=b,this.updater=F||g}var w=y.prototype=new p;w.constructor=y,v(w,m.prototype),w.isPureReactComponent=!0;var _=Array.isArray,T=Object.prototype.hasOwnProperty,N={current:null},A={key:!0,ref:!0,__self:!0,__source:!0};function z(x,R,F){var U,H={},W=null,K=null;if(R!=null)for(U in R.ref!==void 0&&(K=R.ref),R.key!==void 0&&(W=""+R.key),R)T.call(R,U)&&!A.hasOwnProperty(U)&&(H[U]=R[U]);var X=arguments.length-2;if(X===1)H.children=F;else if(1<X){for(var Z=Array(X),J=0;J<X;J++)Z[J]=arguments[J+2];H.children=Z}if(x&&x.defaultProps)for(U in X=x.defaultProps,X)H[U]===void 0&&(H[U]=X[U]);return{$$typeof:t,type:x,key:W,ref:K,props:H,_owner:N.current}}function B(x,R){return{$$typeof:t,type:x.type,key:R,ref:x.ref,props:x.props,_owner:x._owner}}function D(x){return typeof x=="object"&&x!==null&&x.$$typeof===t}function O(x){var R={"=":"=0",":":"=2"};return"$"+x.replace(/[=:]/g,function(F){return R[F]})}var L=/\/+/g;function E(x,R){return typeof x=="object"&&x!==null&&x.key!=null?O(""+x.key):R.toString(36)}function M(x,R,F,U,H){var W=typeof x;(W==="undefined"||W==="boolean")&&(x=null);var K=!1;if(x===null)K=!0;else switch(W){case"string":case"number":K=!0;break;case"object":switch(x.$$typeof){case t:case n:K=!0}}if(K)return K=x,H=H(K),x=U===""?"."+E(K,0):U,_(H)?(F="",x!=null&&(F=x.replace(L,"$&/")+"/"),M(H,R,F,"",function(J){return J})):H!=null&&(D(H)&&(H=B(H,F+(!H.key||K&&K.key===H.key?"":(""+H.key).replace(L,"$&/")+"/")+x)),R.push(H)),1;if(K=0,U=U===""?".":U+":",_(x))for(var X=0;X<x.length;X++){W=x[X];var Z=U+E(W,X);K+=M(W,R,F,Z,H)}else if(Z=h(x),typeof Z=="function")for(x=Z.call(x),X=0;!(W=x.next()).done;)W=W.value,Z=U+E(W,X++),K+=M(W,R,F,Z,H);else if(W==="object")throw R=String(x),Error("Objects are not valid as a React child (found: "+(R==="[object Object]"?"object with keys {"+Object.keys(x).join(", ")+"}":R)+"). If you meant to render a collection of children, use an array instead.");return K}function k(x,R,F){if(x==null)return x;var U=[],H=0;return M(x,U,"","",function(W){return R.call(F,W,H++)}),U}function V(x){if(x._status===-1){var R=x._result;R=R(),R.then(function(F){(x._status===0||x._status===-1)&&(x._status=1,x._result=F)},function(F){(x._status===0||x._status===-1)&&(x._status=2,x._result=F)}),x._status===-1&&(x._status=0,x._result=R)}if(x._status===1)return x._result.default;throw x._result}var P={current:null},C={transition:null},$={ReactCurrentDispatcher:P,ReactCurrentBatchConfig:C,ReactCurrentOwner:N};e.Children={map:k,forEach:function(x,R,F){k(x,function(){R.apply(this,arguments)},F)},count:function(x){var R=0;return k(x,function(){R++}),R},toArray:function(x){return k(x,function(R){return R})||[]},only:function(x){if(!D(x))throw Error("React.Children.only expected to receive a single React element child.");return x}},e.Component=m,e.Fragment=r,e.Profiler=i,e.PureComponent=y,e.StrictMode=o,e.Suspense=u,e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=$,e.cloneElement=function(x,R,F){if(x==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+x+".");var U=v({},x.props),H=x.key,W=x.ref,K=x._owner;if(R!=null){if(R.ref!==void 0&&(W=R.ref,K=N.current),R.key!==void 0&&(H=""+R.key),x.type&&x.type.defaultProps)var X=x.type.defaultProps;for(Z in R)T.call(R,Z)&&!A.hasOwnProperty(Z)&&(U[Z]=R[Z]===void 0&&X!==void 0?X[Z]:R[Z])}var Z=arguments.length-2;if(Z===1)U.children=F;else if(1<Z){X=Array(Z);for(var J=0;J<Z;J++)X[J]=arguments[J+2];U.children=X}return{$$typeof:t,type:x.type,key:H,ref:W,props:U,_owner:K}},e.createContext=function(x){return x={$$typeof:a,_currentValue:x,_currentValue2:x,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},x.Provider={$$typeof:s,_context:x},x.Consumer=x},e.createElement=z,e.createFactory=function(x){var R=z.bind(null,x);return R.type=x,R},e.createRef=function(){return{current:null}},e.forwardRef=function(x){return{$$typeof:l,render:x}},e.isValidElement=D,e.lazy=function(x){return{$$typeof:f,_payload:{_status:-1,_result:x},_init:V}},e.memo=function(x,R){return{$$typeof:c,type:x,compare:R===void 0?null:R}},e.startTransition=function(x){var R=C.transition;C.transition={};try{x()}finally{C.transition=R}},e.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},e.useCallback=function(x,R){return P.current.useCallback(x,R)},e.useContext=function(x){return P.current.useContext(x)},e.useDebugValue=function(){},e.useDeferredValue=function(x){return P.current.useDeferredValue(x)},e.useEffect=function(x,R){return P.current.useEffect(x,R)},e.useId=function(){return P.current.useId()},e.useImperativeHandle=function(x,R,F){return P.current.useImperativeHandle(x,R,F)},e.useInsertionEffect=function(x,R){return P.current.useInsertionEffect(x,R)},e.useLayoutEffect=function(x,R){return P.current.useLayoutEffect(x,R)},e.useMemo=function(x,R){return P.current.useMemo(x,R)},e.useReducer=function(x,R,F){return P.current.useReducer(x,R,F)},e.useRef=function(x){return P.current.useRef(x)},e.useState=function(x){return P.current.useState(x)},e.useSyncExternalStore=function(x,R,F){return P.current.useSyncExternalStore(x,R,F)},e.useTransition=function(){return P.current.useTransition()},e.version="18.2.0"}}),wk=fw({"../../../node_modules/.pnpm/react@18.2.0/node_modules/react/index.js"(e,t){t.exports=vk()}}),Em=yk(wk()),xk=(e,t)=>{let n=[];const r=Em.Children.map(e,i=>(0,Em.isValidElement)(i)&&i.type===t?(n.push(i),null):i),o=n.length>=0?n:void 0;return[r,o]};/**
|
|
41
|
-
* @license React
|
|
42
|
-
* react.development.js
|
|
43
|
-
*
|
|
44
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
45
|
-
*
|
|
46
|
-
* This source code is licensed under the MIT license found in the
|
|
47
|
-
* LICENSE file in the root directory of this source tree.
|
|
48
|
-
*//**
|
|
49
|
-
* @license React
|
|
50
|
-
* react.production.min.js
|
|
51
|
-
*
|
|
52
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
53
|
-
*
|
|
54
|
-
* This source code is licensed under the MIT license found in the
|
|
55
|
-
* LICENSE file in the root directory of this source tree.
|
|
56
|
-
*/const dw=S.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),Gl=S.createContext({}),Kl=S.createContext(null),Yl=typeof document<"u",ih=Yl?S.useLayoutEffect:S.useEffect,hw=S.createContext({strict:!1});function Sk(e,t,n,r){const{visualElement:o}=S.useContext(Gl),i=S.useContext(hw),s=S.useContext(Kl),a=S.useContext(dw).reducedMotion,l=S.useRef();r=r||i.renderer,!l.current&&r&&(l.current=r(e,{visualState:t,parent:o,props:n,presenceContext:s,blockInitialAnimation:s?s.initial===!1:!1,reducedMotionConfig:a}));const u=l.current;S.useInsertionEffect(()=>{u&&u.update(n,s)});const c=S.useRef(!!window.HandoffAppearAnimations);return ih(()=>{u&&(u.render(),c.current&&u.animationState&&u.animationState.animateChanges())}),S.useEffect(()=>{u&&(u.updateFeatures(),!c.current&&u.animationState&&u.animationState.animateChanges(),window.HandoffAppearAnimations=void 0,c.current=!1)}),u}function go(e){return typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function bk(e,t,n){return S.useCallback(r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):go(n)&&(n.current=r))},[t])}function os(e){return typeof e=="string"||Array.isArray(e)}function Xl(e){return typeof e=="object"&&typeof e.start=="function"}const sh=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],ah=["initial",...sh];function ql(e){return Xl(e.animate)||ah.some(t=>os(e[t]))}function pw(e){return!!(ql(e)||e.variants)}function Ek(e,t){if(ql(e)){const{initial:n,animate:r}=e;return{initial:n===!1||os(n)?n:void 0,animate:os(r)?r:void 0}}return e.inherit!==!1?t:{}}function _k(e){const{initial:t,animate:n}=Ek(e,S.useContext(Gl));return S.useMemo(()=>({initial:t,animate:n}),[_m(t),_m(n)])}function _m(e){return Array.isArray(e)?e.join(" "):e}const Cm={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"]},is={};for(const e in Cm)is[e]={isEnabled:t=>Cm[e].some(n=>!!t[n])};function Ck(e){for(const t in e)is[t]={...is[t],...e[t]}}const lh=S.createContext({}),mw=S.createContext({}),kk=Symbol.for("motionComponentSymbol");function Tk({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:o}){e&&Ck(e);function i(a,l){let u;const c={...S.useContext(dw),...a,layoutId:Pk(a)},{isStatic:f}=c,d=_k(a),h=r(a,f);if(!f&&Yl){d.visualElement=Sk(o,h,c,t);const g=S.useContext(mw),v=S.useContext(hw).strict;d.visualElement&&(u=d.visualElement.loadFeatures(c,v,e,g))}return S.createElement(Gl.Provider,{value:d},u&&d.visualElement?S.createElement(u,{visualElement:d.visualElement,...c}):null,n(o,a,bk(h,d.visualElement,l),h,f,d.visualElement))}const s=S.forwardRef(i);return s[kk]=o,s}function Pk({layoutId:e}){const t=S.useContext(lh).id;return t&&e!==void 0?t+"-"+e:e}function Nk(e){function t(r,o={}){return Tk(e(r,o))}if(typeof Proxy>"u")return t;const n=new Map;return new Proxy(t,{get:(r,o)=>(n.has(o)||n.set(o,t(o)),n.get(o))})}const Ak=["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 uh(e){return typeof e!="string"||e.includes("-")?!1:!!(Ak.indexOf(e)>-1||/[A-Z]/.test(e))}const dl={};function Mk(e){Object.assign(dl,e)}const bs=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],jr=new Set(bs);function gw(e,{layout:t,layoutId:n}){return jr.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!dl[e]||e==="opacity")}const it=e=>!!(e&&e.getVelocity),Rk={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},$k=bs.length;function Lk(e,{enableHardwareAcceleration:t=!0,allowTransformNone:n=!0},r,o){let i="";for(let s=0;s<$k;s++){const a=bs[s];if(e[a]!==void 0){const l=Rk[a]||a;i+=`${l}(${e[a]}) `}}return t&&!e.z&&(i+="translateZ(0)"),i=i.trim(),o?i=o(e,r?"":i):n&&r&&(i="none"),i}const yw=e=>t=>typeof t=="string"&&t.startsWith(e),vw=yw("--"),bf=yw("var(--"),Dk=/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,Ok=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Qn=(e,t,n)=>Math.min(Math.max(n,e),t),Ur={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Vi={...Ur,transform:e=>Qn(0,1,e)},qs={...Ur,default:1},Ii=e=>Math.round(e*1e5)/1e5,Zl=/(-)?([\d]*\.?[\d])+/g,ww=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,Vk=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function Es(e){return typeof e=="string"}const _s=e=>({test:t=>Es(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Cn=_s("deg"),Kt=_s("%"),q=_s("px"),Ik=_s("vh"),zk=_s("vw"),km={...Kt,parse:e=>Kt.parse(e)/100,transform:e=>Kt.transform(e*100)},Tm={...Ur,transform:Math.round},xw={borderWidth:q,borderTopWidth:q,borderRightWidth:q,borderBottomWidth:q,borderLeftWidth:q,borderRadius:q,radius:q,borderTopLeftRadius:q,borderTopRightRadius:q,borderBottomRightRadius:q,borderBottomLeftRadius:q,width:q,maxWidth:q,height:q,maxHeight:q,size:q,top:q,right:q,bottom:q,left:q,padding:q,paddingTop:q,paddingRight:q,paddingBottom:q,paddingLeft:q,margin:q,marginTop:q,marginRight:q,marginBottom:q,marginLeft:q,rotate:Cn,rotateX:Cn,rotateY:Cn,rotateZ:Cn,scale:qs,scaleX:qs,scaleY:qs,scaleZ:qs,skew:Cn,skewX:Cn,skewY:Cn,distance:q,translateX:q,translateY:q,translateZ:q,x:q,y:q,z:q,perspective:q,transformPerspective:q,opacity:Vi,originX:km,originY:km,originZ:q,zIndex:Tm,fillOpacity:Vi,strokeOpacity:Vi,numOctaves:Tm};function ch(e,t,n,r){const{style:o,vars:i,transform:s,transformOrigin:a}=e;let l=!1,u=!1,c=!0;for(const f in t){const d=t[f];if(vw(f)){i[f]=d;continue}const h=xw[f],g=Ok(d,h);if(jr.has(f)){if(l=!0,s[f]=g,!c)continue;d!==(h.default||0)&&(c=!1)}else f.startsWith("origin")?(u=!0,a[f]=g):o[f]=g}if(t.transform||(l||r?o.transform=Lk(e.transform,n,c,r):o.transform&&(o.transform="none")),u){const{originX:f="50%",originY:d="50%",originZ:h=0}=a;o.transformOrigin=`${f} ${d} ${h}`}}const fh=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Sw(e,t,n){for(const r in t)!it(t[r])&&!gw(r,n)&&(e[r]=t[r])}function Bk({transformTemplate:e},t,n){return S.useMemo(()=>{const r=fh();return ch(r,t,{enableHardwareAcceleration:!n},e),Object.assign({},r.vars,r.style)},[t])}function Fk(e,t,n){const r=e.style||{},o={};return Sw(o,r,e),Object.assign(o,Bk(e,t,n)),e.transformValues?e.transformValues(o):o}function jk(e,t,n){const r={},o=Fk(e,t,n);return e.drag&&e.dragListener!==!1&&(r.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=o,r}const Uk=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","ignoreStrict","viewport"]);function hl(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||Uk.has(e)}let bw=e=>!hl(e);function Hk(e){e&&(bw=t=>t.startsWith("on")?!hl(t):e(t))}try{Hk(require("@emotion/is-prop-valid").default)}catch{}function Wk(e,t,n){const r={};for(const o in e)o==="values"&&typeof e.values=="object"||(bw(o)||n===!0&&hl(o)||!t&&!hl(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}function Pm(e,t,n){return typeof e=="string"?e:q.transform(t+n*e)}function Gk(e,t,n){const r=Pm(t,e.x,e.width),o=Pm(n,e.y,e.height);return`${r} ${o}`}const Kk={offset:"stroke-dashoffset",array:"stroke-dasharray"},Yk={offset:"strokeDashoffset",array:"strokeDasharray"};function Xk(e,t,n=1,r=0,o=!0){e.pathLength=1;const i=o?Kk:Yk;e[i.offset]=q.transform(-r);const s=q.transform(t),a=q.transform(n);e[i.array]=`${s} ${a}`}function dh(e,{attrX:t,attrY:n,attrScale:r,originX:o,originY:i,pathLength:s,pathSpacing:a=1,pathOffset:l=0,...u},c,f,d){if(ch(e,u,c,d),f){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:h,style:g,dimensions:v}=e;h.transform&&(v&&(g.transform=h.transform),delete h.transform),v&&(o!==void 0||i!==void 0||g.transform)&&(g.transformOrigin=Gk(v,o!==void 0?o:.5,i!==void 0?i:.5)),t!==void 0&&(h.x=t),n!==void 0&&(h.y=n),r!==void 0&&(h.scale=r),s!==void 0&&Xk(h,s,a,l,!1)}const Ew=()=>({...fh(),attrs:{}}),hh=e=>typeof e=="string"&&e.toLowerCase()==="svg";function qk(e,t,n,r){const o=S.useMemo(()=>{const i=Ew();return dh(i,t,{enableHardwareAcceleration:!1},hh(r),e.transformTemplate),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};Sw(i,e.style,e),o.style={...i,...o.style}}return o}function Zk(e=!1){return(n,r,o,{latestValues:i},s)=>{const l=(uh(n)?qk:jk)(r,i,s,n),c={...Wk(r,typeof n=="string",e),...l,ref:o},{children:f}=r,d=S.useMemo(()=>it(f)?f.get():f,[f]);return S.createElement(n,{...c,children:d})}}const ph=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();function _w(e,{style:t,vars:n},r,o){Object.assign(e.style,t,o&&o.getProjectionStyles(r));for(const i in n)e.style.setProperty(i,n[i])}const Cw=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 kw(e,t,n,r){_w(e,t,void 0,r);for(const o in t.attrs)e.setAttribute(Cw.has(o)?o:ph(o),t.attrs[o])}function mh(e,t){const{style:n}=e,r={};for(const o in n)(it(n[o])||t.style&&it(t.style[o])||gw(o,e))&&(r[o]=n[o]);return r}function Tw(e,t){const n=mh(e,t);for(const r in e)if(it(e[r])||it(t[r])){const o=bs.indexOf(r)!==-1?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;n[o]=e[r]}return n}function gh(e,t,n,r={},o={}){return typeof t=="function"&&(t=t(n!==void 0?n:e.custom,r,o)),typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"&&(t=t(n!==void 0?n:e.custom,r,o)),t}function Pw(e){const t=S.useRef(null);return t.current===null&&(t.current=e()),t.current}const pl=e=>Array.isArray(e),Qk=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),Jk=e=>pl(e)?e[e.length-1]||0:e;function Ca(e){const t=it(e)?e.get():e;return Qk(t)?t.toValue():t}function eT({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,o,i){const s={latestValues:tT(r,o,i,e),renderState:t()};return n&&(s.mount=a=>n(r,a,s)),s}const Nw=e=>(t,n)=>{const r=S.useContext(Gl),o=S.useContext(Kl),i=()=>eT(e,t,r,o);return n?i():Pw(i)};function tT(e,t,n,r){const o={},i=r(e,{});for(const d in i)o[d]=Ca(i[d]);let{initial:s,animate:a}=e;const l=ql(e),u=pw(e);t&&u&&!l&&e.inherit!==!1&&(s===void 0&&(s=t.initial),a===void 0&&(a=t.animate));let c=n?n.initial===!1:!1;c=c||s===!1;const f=c?a:s;return f&&typeof f!="boolean"&&!Xl(f)&&(Array.isArray(f)?f:[f]).forEach(h=>{const g=gh(e,h);if(!g)return;const{transitionEnd:v,transition:b,...m}=g;for(const p in m){let y=m[p];if(Array.isArray(y)){const w=c?y.length-1:0;y=y[w]}y!==null&&(o[p]=y)}for(const p in v)o[p]=v[p]}),o}const Se=e=>e;class Nm{constructor(){this.order=[],this.scheduled=new Set}add(t){if(!this.scheduled.has(t))return this.scheduled.add(t),this.order.push(t),!0}remove(t){const n=this.order.indexOf(t);n!==-1&&(this.order.splice(n,1),this.scheduled.delete(t))}clear(){this.order.length=0,this.scheduled.clear()}}function nT(e){let t=new Nm,n=new Nm,r=0,o=!1,i=!1;const s=new WeakSet,a={schedule:(l,u=!1,c=!1)=>{const f=c&&o,d=f?t:n;return u&&s.add(l),d.add(l)&&f&&o&&(r=t.order.length),l},cancel:l=>{n.remove(l),s.delete(l)},process:l=>{if(o){i=!0;return}if(o=!0,[t,n]=[n,t],n.clear(),r=t.order.length,r)for(let u=0;u<r;u++){const c=t.order[u];c(l),s.has(c)&&(a.schedule(c),e())}o=!1,i&&(i=!1,a.process(l))}};return a}const Zs=["prepare","read","update","preRender","render","postRender"],rT=40;function oT(e,t){let n=!1,r=!0;const o={delta:0,timestamp:0,isProcessing:!1},i=Zs.reduce((f,d)=>(f[d]=nT(()=>n=!0),f),{}),s=f=>i[f].process(o),a=()=>{const f=performance.now();n=!1,o.delta=r?1e3/60:Math.max(Math.min(f-o.timestamp,rT),1),o.timestamp=f,o.isProcessing=!0,Zs.forEach(s),o.isProcessing=!1,n&&t&&(r=!1,e(a))},l=()=>{n=!0,r=!0,o.isProcessing||e(a)};return{schedule:Zs.reduce((f,d)=>{const h=i[d];return f[d]=(g,v=!1,b=!1)=>(n||l(),h.schedule(g,v,b)),f},{}),cancel:f=>Zs.forEach(d=>i[d].cancel(f)),state:o,steps:i}}const{schedule:le,cancel:mn,state:Re,steps:Hu}=oT(typeof requestAnimationFrame<"u"?requestAnimationFrame:Se,!0),iT={useVisualState:Nw({scrapeMotionValuesFromProps:Tw,createRenderState:Ew,onMount:(e,t,{renderState:n,latestValues:r})=>{le.read(()=>{try{n.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),le.render(()=>{dh(n,r,{enableHardwareAcceleration:!1},hh(t.tagName),e.transformTemplate),kw(t,n)})}})},sT={useVisualState:Nw({scrapeMotionValuesFromProps:mh,createRenderState:fh})};function aT(e,{forwardMotionProps:t=!1},n,r){return{...uh(e)?iT:sT,preloadedFeatures:n,useRender:Zk(t),createVisualElement:r,Component:e}}function on(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const Aw=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function Ql(e,t="page"){return{point:{x:e[t+"X"],y:e[t+"Y"]}}}const lT=e=>t=>Aw(t)&&e(t,Ql(t));function un(e,t,n,r){return on(e,t,lT(n),r)}const uT=(e,t)=>n=>t(e(n)),Wn=(...e)=>e.reduce(uT);function Mw(e){let t=null;return()=>{const n=()=>{t=null};return t===null?(t=e,n):!1}}const Am=Mw("dragHorizontal"),Mm=Mw("dragVertical");function Rw(e){let t=!1;if(e==="y")t=Mm();else if(e==="x")t=Am();else{const n=Am(),r=Mm();n&&r?t=()=>{n(),r()}:(n&&n(),r&&r())}return t}function $w(){const e=Rw(!0);return e?(e(),!1):!0}class rr{constructor(t){this.isMounted=!1,this.node=t}update(){}}function Rm(e,t){const n="pointer"+(t?"enter":"leave"),r="onHover"+(t?"Start":"End"),o=(i,s)=>{if(i.type==="touch"||$w())return;const a=e.getProps();e.animationState&&a.whileHover&&e.animationState.setActive("whileHover",t),a[r]&&le.update(()=>a[r](i,s))};return un(e.current,n,o,{passive:!e.getProps()[r]})}class cT extends rr{mount(){this.unmount=Wn(Rm(this.node,!0),Rm(this.node,!1))}unmount(){}}class fT extends rr{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!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=Wn(on(this.node.current,"focus",()=>this.onFocus()),on(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const Lw=(e,t)=>t?e===t?!0:Lw(e,t.parentElement):!1;function Wu(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,Ql(n))}class dT extends rr{constructor(){super(...arguments),this.removeStartListeners=Se,this.removeEndListeners=Se,this.removeAccessibleListeners=Se,this.startPointerPress=(t,n)=>{if(this.removeEndListeners(),this.isPressing)return;const r=this.node.getProps(),i=un(window,"pointerup",(a,l)=>{if(!this.checkPressEnd())return;const{onTap:u,onTapCancel:c}=this.node.getProps();le.update(()=>{Lw(this.node.current,a.target)?u&&u(a,l):c&&c(a,l)})},{passive:!(r.onTap||r.onPointerUp)}),s=un(window,"pointercancel",(a,l)=>this.cancelPress(a,l),{passive:!(r.onTapCancel||r.onPointerCancel)});this.removeEndListeners=Wn(i,s),this.startPress(t,n)},this.startAccessiblePress=()=>{const t=i=>{if(i.key!=="Enter"||this.isPressing)return;const s=a=>{a.key!=="Enter"||!this.checkPressEnd()||Wu("up",(l,u)=>{const{onTap:c}=this.node.getProps();c&&le.update(()=>c(l,u))})};this.removeEndListeners(),this.removeEndListeners=on(this.node.current,"keyup",s),Wu("down",(a,l)=>{this.startPress(a,l)})},n=on(this.node.current,"keydown",t),r=()=>{this.isPressing&&Wu("cancel",(i,s)=>this.cancelPress(i,s))},o=on(this.node.current,"blur",r);this.removeAccessibleListeners=Wn(n,o)}}startPress(t,n){this.isPressing=!0;const{onTapStart:r,whileTap:o}=this.node.getProps();o&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),r&&le.update(()=>r(t,n))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!$w()}cancelPress(t,n){if(!this.checkPressEnd())return;const{onTapCancel:r}=this.node.getProps();r&&le.update(()=>r(t,n))}mount(){const t=this.node.getProps(),n=un(this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),r=on(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=Wn(n,r)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const Ef=new WeakMap,Gu=new WeakMap,hT=e=>{const t=Ef.get(e.target);t&&t(e)},pT=e=>{e.forEach(hT)};function mT({root:e,...t}){const n=e||document;Gu.has(n)||Gu.set(n,{});const r=Gu.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(pT,{root:e,...t})),r[o]}function gT(e,t,n){const r=mT(t);return Ef.set(e,n),r.observe(e),()=>{Ef.delete(e),r.unobserve(e)}}const yT={some:0,all:1};class vT extends rr{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:o="some",once:i}=t,s={root:n?n.current:void 0,rootMargin:r,threshold:typeof o=="number"?o:yT[o]},a=l=>{const{isIntersecting:u}=l;if(this.isInView===u||(this.isInView=u,i&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:c,onViewportLeave:f}=this.node.getProps(),d=u?c:f;d&&d(l)};return gT(this.node.current,s,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(wT(t,n))&&this.startObserver()}unmount(){}}function wT({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const xT={inView:{Feature:vT},tap:{Feature:dT},focus:{Feature:fT},hover:{Feature:cT}};function Dw(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function ST(e){const t={};return e.values.forEach((n,r)=>t[r]=n.get()),t}function bT(e){const t={};return e.values.forEach((n,r)=>t[r]=n.getVelocity()),t}function Jl(e,t,n){const r=e.getProps();return gh(r,t,n!==void 0?n:r.custom,ST(e),bT(e))}const ET="framerAppearId",_T="data-"+ph(ET);let CT=Se,yh=Se;const Gn=e=>e*1e3,cn=e=>e/1e3,kT={current:!1},Ow=e=>Array.isArray(e)&&typeof e[0]=="number";function Vw(e){return!!(!e||typeof e=="string"&&Iw[e]||Ow(e)||Array.isArray(e)&&e.every(Vw))}const _i=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Iw={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:_i([0,.65,.55,1]),circOut:_i([.55,0,1,.45]),backIn:_i([.31,.01,.66,-.59]),backOut:_i([.33,1.53,.69,.99])};function zw(e){if(e)return Ow(e)?_i(e):Array.isArray(e)?e.map(zw):Iw[e]}function TT(e,t,n,{delay:r=0,duration:o,repeat:i=0,repeatType:s="loop",ease:a,times:l}={}){const u={[t]:n};l&&(u.offset=l);const c=zw(a);return Array.isArray(c)&&(u.easing=c),e.animate(u,{delay:r,duration:o,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:i+1,direction:s==="reverse"?"alternate":"normal"})}function PT(e,{repeat:t,repeatType:n="loop"}){const r=t&&n!=="loop"&&t%2===1?0:e.length-1;return e[r]}const Bw=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,NT=1e-7,AT=12;function MT(e,t,n,r,o){let i,s,a=0;do s=t+(n-t)/2,i=Bw(s,r,o)-e,i>0?n=s:t=s;while(Math.abs(i)>NT&&++a<AT);return s}function Cs(e,t,n,r){if(e===t&&n===r)return Se;const o=i=>MT(i,0,1,e,n);return i=>i===0||i===1?i:Bw(o(i),t,r)}const RT=Cs(.42,0,1,1),$T=Cs(0,0,.58,1),Fw=Cs(.42,0,.58,1),LT=e=>Array.isArray(e)&&typeof e[0]!="number",jw=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Uw=e=>t=>1-e(1-t),Hw=e=>1-Math.sin(Math.acos(e)),vh=Uw(Hw),DT=jw(vh),Ww=Cs(.33,1.53,.69,.99),wh=Uw(Ww),OT=jw(wh),VT=e=>(e*=2)<1?.5*wh(e):.5*(2-Math.pow(2,-10*(e-1))),IT={linear:Se,easeIn:RT,easeInOut:Fw,easeOut:$T,circIn:Hw,circInOut:DT,circOut:vh,backIn:wh,backInOut:OT,backOut:Ww,anticipate:VT},$m=e=>{if(Array.isArray(e)){yh(e.length===4);const[t,n,r,o]=e;return Cs(t,n,r,o)}else if(typeof e=="string")return IT[e];return e},xh=(e,t)=>n=>!!(Es(n)&&Vk.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),Gw=(e,t,n)=>r=>{if(!Es(r))return r;const[o,i,s,a]=r.match(Zl);return{[e]:parseFloat(o),[t]:parseFloat(i),[n]:parseFloat(s),alpha:a!==void 0?parseFloat(a):1}},zT=e=>Qn(0,255,e),Ku={...Ur,transform:e=>Math.round(zT(e))},_r={test:xh("rgb","red"),parse:Gw("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Ku.transform(e)+", "+Ku.transform(t)+", "+Ku.transform(n)+", "+Ii(Vi.transform(r))+")"};function BT(e){let t="",n="",r="",o="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),o=e.substring(4,5),t+=t,n+=n,r+=r,o+=o),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}}const _f={test:xh("#"),parse:BT,transform:_r.transform},yo={test:xh("hsl","hue"),parse:Gw("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Kt.transform(Ii(t))+", "+Kt.transform(Ii(n))+", "+Ii(Vi.transform(r))+")"},Ke={test:e=>_r.test(e)||_f.test(e)||yo.test(e),parse:e=>_r.test(e)?_r.parse(e):yo.test(e)?yo.parse(e):_f.parse(e),transform:e=>Es(e)?e:e.hasOwnProperty("red")?_r.transform(e):yo.transform(e)},ge=(e,t,n)=>-n*e+n*t+e;function Yu(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function FT({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let o=0,i=0,s=0;if(!t)o=i=s=n;else{const a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;o=Yu(l,a,e+1/3),i=Yu(l,a,e),s=Yu(l,a,e-1/3)}return{red:Math.round(o*255),green:Math.round(i*255),blue:Math.round(s*255),alpha:r}}const Xu=(e,t,n)=>{const r=e*e;return Math.sqrt(Math.max(0,n*(t*t-r)+r))},jT=[_f,_r,yo],UT=e=>jT.find(t=>t.test(e));function Lm(e){const t=UT(e);let n=t.parse(e);return t===yo&&(n=FT(n)),n}const Kw=(e,t)=>{const n=Lm(e),r=Lm(t),o={...n};return i=>(o.red=Xu(n.red,r.red,i),o.green=Xu(n.green,r.green,i),o.blue=Xu(n.blue,r.blue,i),o.alpha=ge(n.alpha,r.alpha,i),_r.transform(o))};function HT(e){var t,n;return isNaN(e)&&Es(e)&&(((t=e.match(Zl))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(ww))===null||n===void 0?void 0:n.length)||0)>0}const Yw={regex:Dk,countKey:"Vars",token:"${v}",parse:Se},Xw={regex:ww,countKey:"Colors",token:"${c}",parse:Ke.parse},qw={regex:Zl,countKey:"Numbers",token:"${n}",parse:Ur.parse};function qu(e,{regex:t,countKey:n,token:r,parse:o}){const i=e.tokenised.match(t);i&&(e["num"+n]=i.length,e.tokenised=e.tokenised.replace(t,r),e.values.push(...i.map(o)))}function ml(e){const t=e.toString(),n={value:t,tokenised:t,values:[],numVars:0,numColors:0,numNumbers:0};return n.value.includes("var(--")&&qu(n,Yw),qu(n,Xw),qu(n,qw),n}function Zw(e){return ml(e).values}function Qw(e){const{values:t,numColors:n,numVars:r,tokenised:o}=ml(e),i=t.length;return s=>{let a=o;for(let l=0;l<i;l++)l<r?a=a.replace(Yw.token,s[l]):l<r+n?a=a.replace(Xw.token,Ke.transform(s[l])):a=a.replace(qw.token,Ii(s[l]));return a}}const WT=e=>typeof e=="number"?0:e;function GT(e){const t=Zw(e);return Qw(e)(t.map(WT))}const Jn={test:HT,parse:Zw,createTransformer:Qw,getAnimatableNone:GT},Jw=(e,t)=>n=>`${n>0?t:e}`;function e1(e,t){return typeof e=="number"?n=>ge(e,t,n):Ke.test(e)?Kw(e,t):e.startsWith("var(")?Jw(e,t):n1(e,t)}const t1=(e,t)=>{const n=[...e],r=n.length,o=e.map((i,s)=>e1(i,t[s]));return i=>{for(let s=0;s<r;s++)n[s]=o[s](i);return n}},KT=(e,t)=>{const n={...e,...t},r={};for(const o in n)e[o]!==void 0&&t[o]!==void 0&&(r[o]=e1(e[o],t[o]));return o=>{for(const i in r)n[i]=r[i](o);return n}},n1=(e,t)=>{const n=Jn.createTransformer(t),r=ml(e),o=ml(t);return r.numVars===o.numVars&&r.numColors===o.numColors&&r.numNumbers>=o.numNumbers?Wn(t1(r.values,o.values),n):Jw(e,t)},ss=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},Dm=(e,t)=>n=>ge(e,t,n);function YT(e){return typeof e=="number"?Dm:typeof e=="string"?Ke.test(e)?Kw:n1:Array.isArray(e)?t1:typeof e=="object"?KT:Dm}function XT(e,t,n){const r=[],o=n||YT(e[0]),i=e.length-1;for(let s=0;s<i;s++){let a=o(e[s],e[s+1]);if(t){const l=Array.isArray(t)?t[s]||Se:t;a=Wn(l,a)}r.push(a)}return r}function r1(e,t,{clamp:n=!0,ease:r,mixer:o}={}){const i=e.length;if(yh(i===t.length),i===1)return()=>t[0];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const s=XT(t,r,o),a=s.length,l=u=>{let c=0;if(a>1)for(;c<e.length-2&&!(u<e[c+1]);c++);const f=ss(e[c],e[c+1],u);return s[c](f)};return n?u=>l(Qn(e[0],e[i-1],u)):l}function qT(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const o=ss(0,t,r);e.push(ge(n,1,o))}}function ZT(e){const t=[0];return qT(t,e.length-1),t}function QT(e,t){return e.map(n=>n*t)}function JT(e,t){return e.map(()=>t||Fw).splice(0,e.length-1)}function gl({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const o=LT(r)?r.map($m):$m(r),i={done:!1,value:t[0]},s=QT(n&&n.length===t.length?n:ZT(t),e),a=r1(s,t,{ease:Array.isArray(o)?o:JT(t,o)});return{calculatedDuration:e,next:l=>(i.value=a(l),i.done=l>=e,i)}}function o1(e,t){return t?e*(1e3/t):0}const eP=5;function i1(e,t,n){const r=Math.max(t-eP,0);return o1(n-e(r),t-r)}const Zu=.001,tP=.01,Om=10,nP=.05,rP=1;function oP({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let o,i;CT(e<=Gn(Om));let s=1-t;s=Qn(nP,rP,s),e=Qn(tP,Om,cn(e)),s<1?(o=u=>{const c=u*s,f=c*e,d=c-n,h=Cf(u,s),g=Math.exp(-f);return Zu-d/h*g},i=u=>{const f=u*s*e,d=f*n+n,h=Math.pow(s,2)*Math.pow(u,2)*e,g=Math.exp(-f),v=Cf(Math.pow(u,2),s);return(-o(u)+Zu>0?-1:1)*((d-h)*g)/v}):(o=u=>{const c=Math.exp(-u*e),f=(u-n)*e+1;return-Zu+c*f},i=u=>{const c=Math.exp(-u*e),f=(n-u)*(e*e);return c*f});const a=5/e,l=sP(o,i,a);if(e=Gn(e),isNaN(l))return{stiffness:100,damping:10,duration:e};{const u=Math.pow(l,2)*r;return{stiffness:u,damping:s*2*Math.sqrt(r*u),duration:e}}}const iP=12;function sP(e,t,n){let r=n;for(let o=1;o<iP;o++)r=r-e(r)/t(r);return r}function Cf(e,t){return e*Math.sqrt(1-t*t)}const aP=["duration","bounce"],lP=["stiffness","damping","mass"];function Vm(e,t){return t.some(n=>e[n]!==void 0)}function uP(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!Vm(e,lP)&&Vm(e,aP)){const n=oP(e);t={...t,...n,velocity:0,mass:1},t.isResolvedFromDuration=!0}return t}function s1({keyframes:e,restDelta:t,restSpeed:n,...r}){const o=e[0],i=e[e.length-1],s={done:!1,value:o},{stiffness:a,damping:l,mass:u,velocity:c,duration:f,isResolvedFromDuration:d}=uP(r),h=c?-cn(c):0,g=l/(2*Math.sqrt(a*u)),v=i-o,b=cn(Math.sqrt(a/u)),m=Math.abs(v)<5;n||(n=m?.01:2),t||(t=m?.005:.5);let p;if(g<1){const y=Cf(b,g);p=w=>{const _=Math.exp(-g*b*w);return i-_*((h+g*b*v)/y*Math.sin(y*w)+v*Math.cos(y*w))}}else if(g===1)p=y=>i-Math.exp(-b*y)*(v+(h+b*v)*y);else{const y=b*Math.sqrt(g*g-1);p=w=>{const _=Math.exp(-g*b*w),T=Math.min(y*w,300);return i-_*((h+g*b*v)*Math.sinh(T)+y*v*Math.cosh(T))/y}}return{calculatedDuration:d&&f||null,next:y=>{const w=p(y);if(d)s.done=y>=f;else{let _=h;y!==0&&(g<1?_=i1(p,y,w):_=0);const T=Math.abs(_)<=n,N=Math.abs(i-w)<=t;s.done=T&&N}return s.value=s.done?i:w,s}}}function Im({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:o=10,bounceStiffness:i=500,modifyTarget:s,min:a,max:l,restDelta:u=.5,restSpeed:c}){const f=e[0],d={done:!1,value:f},h=A=>a!==void 0&&A<a||l!==void 0&&A>l,g=A=>a===void 0?l:l===void 0||Math.abs(a-A)<Math.abs(l-A)?a:l;let v=n*t;const b=f+v,m=s===void 0?b:s(b);m!==b&&(v=m-f);const p=A=>-v*Math.exp(-A/r),y=A=>m+p(A),w=A=>{const z=p(A),B=y(A);d.done=Math.abs(z)<=u,d.value=d.done?m:B};let _,T;const N=A=>{h(d.value)&&(_=A,T=s1({keyframes:[d.value,g(d.value)],velocity:i1(y,A,d.value),damping:o,stiffness:i,restDelta:u,restSpeed:c}))};return N(0),{calculatedDuration:null,next:A=>{let z=!1;return!T&&_===void 0&&(z=!0,w(A),N(A)),_!==void 0&&A>_?T.next(A-_):(!z&&w(A),d)}}}const cP=e=>{const t=({timestamp:n})=>e(n);return{start:()=>le.update(t,!0),stop:()=>mn(t),now:()=>Re.isProcessing?Re.timestamp:performance.now()}},zm=2e4;function Bm(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<zm;)t+=n,r=e.next(t);return t>=zm?1/0:t}const fP={decay:Im,inertia:Im,tween:gl,keyframes:gl,spring:s1};function yl({autoplay:e=!0,delay:t=0,driver:n=cP,keyframes:r,type:o="keyframes",repeat:i=0,repeatDelay:s=0,repeatType:a="loop",onPlay:l,onStop:u,onComplete:c,onUpdate:f,...d}){let h=1,g=!1,v,b;const m=()=>{b=new Promise(x=>{v=x})};m();let p;const y=fP[o]||gl;let w;y!==gl&&typeof r[0]!="number"&&(w=r1([0,100],r,{clamp:!1}),r=[0,100]);const _=y({...d,keyframes:r});let T;a==="mirror"&&(T=y({...d,keyframes:[...r].reverse(),velocity:-(d.velocity||0)}));let N="idle",A=null,z=null,B=null;_.calculatedDuration===null&&i&&(_.calculatedDuration=Bm(_));const{calculatedDuration:D}=_;let O=1/0,L=1/0;D!==null&&(O=D+s,L=O*(i+1)-s);let E=0;const M=x=>{if(z===null)return;h>0&&(z=Math.min(z,x)),h<0&&(z=Math.min(x-L/h,z)),A!==null?E=A:E=Math.round(x-z)*h;const R=E-t*(h>=0?1:-1),F=h>=0?R<0:R>L;E=Math.max(R,0),N==="finished"&&A===null&&(E=L);let U=E,H=_;if(i){const Z=E/O;let J=Math.floor(Z),we=Z%1;!we&&Z>=1&&(we=1),we===1&&J--,J=Math.min(J,i+1);const Qe=!!(J%2);Qe&&(a==="reverse"?(we=1-we,s&&(we-=s/O)):a==="mirror"&&(H=T));let at=Qn(0,1,we);E>L&&(at=a==="reverse"&&Qe?1:0),U=at*O}const W=F?{done:!1,value:r[0]}:H.next(U);w&&(W.value=w(W.value));let{done:K}=W;!F&&D!==null&&(K=h>=0?E>=L:E<=0);const X=A===null&&(N==="finished"||N==="running"&&K);return f&&f(W.value),X&&P(),W},k=()=>{p&&p.stop(),p=void 0},V=()=>{N="idle",k(),v(),m(),z=B=null},P=()=>{N="finished",c&&c(),k(),v()},C=()=>{if(g)return;p||(p=n(M));const x=p.now();l&&l(),A!==null?z=x-A:(!z||N==="finished")&&(z=x),N==="finished"&&m(),B=z,A=null,N="running",p.start()};e&&C();const $={then(x,R){return b.then(x,R)},get time(){return cn(E)},set time(x){x=Gn(x),E=x,A!==null||!p||h===0?A=x:z=p.now()-x/h},get duration(){const x=_.calculatedDuration===null?Bm(_):_.calculatedDuration;return cn(x)},get speed(){return h},set speed(x){x===h||!p||(h=x,$.time=cn(E))},get state(){return N},play:C,pause:()=>{N="paused",A=E},stop:()=>{g=!0,N!=="idle"&&(N="idle",u&&u(),V())},cancel:()=>{B!==null&&M(B),V()},complete:()=>{N="finished"},sample:x=>(z=0,M(x))};return $}function dP(e){let t;return()=>(t===void 0&&(t=e()),t)}const hP=dP(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),pP=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),Qs=10,mP=2e4,gP=(e,t)=>t.type==="spring"||e==="backgroundColor"||!Vw(t.ease);function yP(e,t,{onUpdate:n,onComplete:r,...o}){if(!(hP()&&pP.has(t)&&!o.repeatDelay&&o.repeatType!=="mirror"&&o.damping!==0&&o.type!=="inertia"))return!1;let s=!1,a,l;const u=()=>{l=new Promise(p=>{a=p})};u();let{keyframes:c,duration:f=300,ease:d,times:h}=o;if(gP(t,o)){const p=yl({...o,repeat:0,delay:0});let y={done:!1,value:c[0]};const w=[];let _=0;for(;!y.done&&_<mP;)y=p.sample(_),w.push(y.value),_+=Qs;h=void 0,c=w,f=_-Qs,d="linear"}const g=TT(e.owner.current,t,c,{...o,duration:f,ease:d,times:h});o.syncStart&&(g.startTime=Re.isProcessing?Re.timestamp:document.timeline?document.timeline.currentTime:performance.now());const v=()=>g.cancel(),b=()=>{le.update(v),a(),u()};return g.onfinish=()=>{e.set(PT(c,o)),r&&r(),b()},{then(p,y){return l.then(p,y)},attachTimeline(p){return g.timeline=p,g.onfinish=null,Se},get time(){return cn(g.currentTime||0)},set time(p){g.currentTime=Gn(p)},get speed(){return g.playbackRate},set speed(p){g.playbackRate=p},get duration(){return cn(f)},play:()=>{s||(g.play(),mn(v))},pause:()=>g.pause(),stop:()=>{if(s=!0,g.playState==="idle")return;const{currentTime:p}=g;if(p){const y=yl({...o,autoplay:!1});e.setWithVelocity(y.sample(p-Qs).value,y.sample(p).value,Qs)}b()},complete:()=>g.finish(),cancel:b}}function vP({keyframes:e,delay:t,onUpdate:n,onComplete:r}){const o=()=>(n&&n(e[e.length-1]),r&&r(),{time:0,speed:1,duration:0,play:Se,pause:Se,stop:Se,then:i=>(i(),Promise.resolve()),cancel:Se,complete:Se});return t?yl({keyframes:[0,1],duration:0,delay:t,onComplete:o}):o()}const wP={type:"spring",stiffness:500,damping:25,restSpeed:10},xP=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),SP={type:"keyframes",duration:.8},bP={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},EP=(e,{keyframes:t})=>t.length>2?SP:jr.has(e)?e.startsWith("scale")?xP(t[1]):wP:bP,kf=(e,t)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(Jn.test(t)||t==="0")&&!t.startsWith("url(")),_P=new Set(["brightness","contrast","saturate","opacity"]);function CP(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Zl)||[];if(!r)return e;const o=n.replace(r,"");let i=_P.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+o+")"}const kP=/([a-z-]*)\(.*?\)/g,Tf={...Jn,getAnimatableNone:e=>{const t=e.match(kP);return t?t.map(CP).join(" "):e}},TP={...xw,color:Ke,backgroundColor:Ke,outlineColor:Ke,fill:Ke,stroke:Ke,borderColor:Ke,borderTopColor:Ke,borderRightColor:Ke,borderBottomColor:Ke,borderLeftColor:Ke,filter:Tf,WebkitFilter:Tf},Sh=e=>TP[e];function a1(e,t){let n=Sh(e);return n!==Tf&&(n=Jn),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const l1=e=>/^0[^.\s]+$/.test(e);function PP(e){if(typeof e=="number")return e===0;if(e!==null)return e==="none"||e==="0"||l1(e)}function NP(e,t,n,r){const o=kf(t,n);let i;Array.isArray(n)?i=[...n]:i=[null,n];const s=r.from!==void 0?r.from:e.get();let a;const l=[];for(let u=0;u<i.length;u++)i[u]===null&&(i[u]=u===0?s:i[u-1]),PP(i[u])&&l.push(u),typeof i[u]=="string"&&i[u]!=="none"&&i[u]!=="0"&&(a=i[u]);if(o&&l.length&&a)for(let u=0;u<l.length;u++){const c=l[u];i[c]=a1(t,a)}return i}function AP({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:o,repeat:i,repeatType:s,repeatDelay:a,from:l,elapsed:u,...c}){return!!Object.keys(c).length}function u1(e,t){return e[t]||e.default||e}const bh=(e,t,n,r={})=>o=>{const i=u1(r,e)||{},s=i.delay||r.delay||0;let{elapsed:a=0}=r;a=a-Gn(s);const l=NP(t,e,n,i),u=l[0],c=l[l.length-1],f=kf(e,u),d=kf(e,c);let h={keyframes:l,velocity:t.getVelocity(),ease:"easeOut",...i,delay:-a,onUpdate:g=>{t.set(g),i.onUpdate&&i.onUpdate(g)},onComplete:()=>{o(),i.onComplete&&i.onComplete()}};if(AP(i)||(h={...h,...EP(e,h)}),h.duration&&(h.duration=Gn(h.duration)),h.repeatDelay&&(h.repeatDelay=Gn(h.repeatDelay)),!f||!d||kT.current||i.type===!1)return vP(h);if(t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate){const g=yP(t,e,h);if(g)return g}return yl(h)};function vl(e){return!!(it(e)&&e.add)}const c1=e=>/^\-?\d*\.?\d+$/.test(e);function Eh(e,t){e.indexOf(t)===-1&&e.push(t)}function _h(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Ch{constructor(){this.subscriptions=[]}add(t){return Eh(this.subscriptions,t),()=>_h(this.subscriptions,t)}notify(t,n,r){const o=this.subscriptions.length;if(o)if(o===1)this.subscriptions[0](t,n,r);else for(let i=0;i<o;i++){const s=this.subscriptions[i];s&&s(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const MP=e=>!isNaN(parseFloat(e));class RP{constructor(t,n={}){this.version="10.16.4",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(r,o=!0)=>{this.prev=this.current,this.current=r;const{delta:i,timestamp:s}=Re;this.lastUpdated!==s&&(this.timeDelta=i,this.lastUpdated=s,le.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()),o&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>le.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=t,this.canTrackVelocity=MP(this.current),this.owner=n.owner}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new Ch);const r=this.events[t].add(n);return t==="change"?()=>{r(),le.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=t,this.timeDelta=r}jump(t){this.updateAndNotify(t),this.prev=t,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?o1(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(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 zo(e,t){return new RP(e,t)}const f1=e=>t=>t.test(e),$P={test:e=>e==="auto",parse:e=>e},d1=[Ur,q,Kt,Cn,zk,Ik,$P],ci=e=>d1.find(f1(e)),LP=[...d1,Ke,Jn],DP=e=>LP.find(f1(e));function OP(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,zo(n))}function VP(e,t){const n=Jl(e,t);let{transitionEnd:r={},transition:o={},...i}=n?e.makeTargetAnimatable(n,!1):{};i={...i,...r};for(const s in i){const a=Jk(i[s]);OP(e,s,a)}}function IP(e,t,n){var r,o;const i=Object.keys(t).filter(a=>!e.hasValue(a)),s=i.length;if(s)for(let a=0;a<s;a++){const l=i[a],u=t[l];let c=null;Array.isArray(u)&&(c=u[0]),c===null&&(c=(o=(r=n[l])!==null&&r!==void 0?r:e.readValue(l))!==null&&o!==void 0?o:t[l]),c!=null&&(typeof c=="string"&&(c1(c)||l1(c))?c=parseFloat(c):!DP(c)&&Jn.test(u)&&(c=a1(l,u)),e.addValue(l,zo(c,{owner:e})),n[l]===void 0&&(n[l]=c),c!==null&&e.setBaseTarget(l,c))}}function zP(e,t){return t?(t[e]||t.default||t).from:void 0}function BP(e,t,n){const r={};for(const o in e){const i=zP(o,t);if(i!==void 0)r[o]=i;else{const s=n.getValue(o);s&&(r[o]=s.get())}}return r}function FP({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function h1(e,t,{delay:n=0,transitionOverride:r,type:o}={}){let{transition:i=e.getDefaultTransition(),transitionEnd:s,...a}=e.makeTargetAnimatable(t);const l=e.getValue("willChange");r&&(i=r);const u=[],c=o&&e.animationState&&e.animationState.getState()[o];for(const f in a){const d=e.getValue(f),h=a[f];if(!d||h===void 0||c&&FP(c,f))continue;const g={delay:n,elapsed:0,...i};if(window.HandoffAppearAnimations&&!d.hasAnimated){const b=e.getProps()[_T];b&&(g.elapsed=window.HandoffAppearAnimations(b,f,d,le),g.syncStart=!0)}d.start(bh(f,d,h,e.shouldReduceMotion&&jr.has(f)?{type:!1}:g));const v=d.animation;vl(l)&&(l.add(f),v.then(()=>l.remove(f))),u.push(v)}return s&&Promise.all(u).then(()=>{s&&VP(e,s)}),u}function Pf(e,t,n={}){const r=Jl(e,t,n.custom);let{transition:o=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(o=n.transitionOverride);const i=r?()=>Promise.all(h1(e,r,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(l=0)=>{const{delayChildren:u=0,staggerChildren:c,staggerDirection:f}=o;return jP(e,t,u+l,c,f,n)}:()=>Promise.resolve(),{when:a}=o;if(a){const[l,u]=a==="beforeChildren"?[i,s]:[s,i];return l().then(()=>u())}else return Promise.all([i(),s(n.delay)])}function jP(e,t,n=0,r=0,o=1,i){const s=[],a=(e.variantChildren.size-1)*r,l=o===1?(u=0)=>u*r:(u=0)=>a-u*r;return Array.from(e.variantChildren).sort(UP).forEach((u,c)=>{u.notify("AnimationStart",t),s.push(Pf(u,t,{...i,delay:n+l(c)}).then(()=>u.notify("AnimationComplete",t)))}),Promise.all(s)}function UP(e,t){return e.sortNodePosition(t)}function HP(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const o=t.map(i=>Pf(e,i,n));r=Promise.all(o)}else if(typeof t=="string")r=Pf(e,t,n);else{const o=typeof t=="function"?Jl(e,t,n.custom):t;r=Promise.all(h1(e,o,n))}return r.then(()=>e.notify("AnimationComplete",t))}const WP=[...sh].reverse(),GP=sh.length;function KP(e){return t=>Promise.all(t.map(({animation:n,options:r})=>HP(e,n,r)))}function YP(e){let t=KP(e);const n=qP();let r=!0;const o=(l,u)=>{const c=Jl(e,u);if(c){const{transition:f,transitionEnd:d,...h}=c;l={...l,...h,...d}}return l};function i(l){t=l(e)}function s(l,u){const c=e.getProps(),f=e.getVariantContext(!0)||{},d=[],h=new Set;let g={},v=1/0;for(let m=0;m<GP;m++){const p=WP[m],y=n[p],w=c[p]!==void 0?c[p]:f[p],_=os(w),T=p===u?y.isActive:null;T===!1&&(v=m);let N=w===f[p]&&w!==c[p]&&_;if(N&&r&&e.manuallyAnimateOnMount&&(N=!1),y.protectedKeys={...g},!y.isActive&&T===null||!w&&!y.prevProp||Xl(w)||typeof w=="boolean")continue;const A=XP(y.prevProp,w);let z=A||p===u&&y.isActive&&!N&&_||m>v&&_;const B=Array.isArray(w)?w:[w];let D=B.reduce(o,{});T===!1&&(D={});const{prevResolvedValues:O={}}=y,L={...O,...D},E=M=>{z=!0,h.delete(M),y.needsAnimating[M]=!0};for(const M in L){const k=D[M],V=O[M];g.hasOwnProperty(M)||(k!==V?pl(k)&&pl(V)?!Dw(k,V)||A?E(M):y.protectedKeys[M]=!0:k!==void 0?E(M):h.add(M):k!==void 0&&h.has(M)?E(M):y.protectedKeys[M]=!0)}y.prevProp=w,y.prevResolvedValues=D,y.isActive&&(g={...g,...D}),r&&e.blockInitialAnimation&&(z=!1),z&&!N&&d.push(...B.map(M=>({animation:M,options:{type:p,...l}})))}if(h.size){const m={};h.forEach(p=>{const y=e.getBaseTarget(p);y!==void 0&&(m[p]=y)}),d.push({animation:m})}let b=!!d.length;return r&&c.initial===!1&&!e.manuallyAnimateOnMount&&(b=!1),r=!1,b?t(d):Promise.resolve()}function a(l,u,c){var f;if(n[l].isActive===u)return Promise.resolve();(f=e.variantChildren)===null||f===void 0||f.forEach(h=>{var g;return(g=h.animationState)===null||g===void 0?void 0:g.setActive(l,u)}),n[l].isActive=u;const d=s(c,l);for(const h in n)n[h].protectedKeys={};return d}return{animateChanges:s,setActive:a,setAnimateFunction:i,getState:()=>n}}function XP(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Dw(t,e):!1}function dr(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function qP(){return{animate:dr(!0),whileInView:dr(),whileHover:dr(),whileTap:dr(),whileDrag:dr(),whileFocus:dr(),exit:dr()}}class ZP extends rr{constructor(t){super(t),t.animationState||(t.animationState=YP(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();this.unmount(),Xl(t)&&(this.unmount=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){}}let QP=0;class JP extends rr{constructor(){super(...arguments),this.id=QP++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n,custom:r}=this.node.presenceContext,{isPresent:o}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===o)return;const i=this.node.animationState.setActive("exit",!t,{custom:r??this.node.getProps().custom});n&&!t&&i.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const e2={animation:{Feature:ZP},exit:{Feature:JP}},Fm=(e,t)=>Math.abs(e-t);function t2(e,t){const n=Fm(e.x,t.x),r=Fm(e.y,t.y);return Math.sqrt(n**2+r**2)}class p1{constructor(t,n,{transformPagePoint:r}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const u=Ju(this.lastMoveEventInfo,this.history),c=this.startEvent!==null,f=t2(u.offset,{x:0,y:0})>=3;if(!c&&!f)return;const{point:d}=u,{timestamp:h}=Re;this.history.push({...d,timestamp:h});const{onStart:g,onMove:v}=this.handlers;c||(g&&g(this.lastMoveEvent,u),this.startEvent=this.lastMoveEvent),v&&v(this.lastMoveEvent,u)},this.handlePointerMove=(u,c)=>{this.lastMoveEvent=u,this.lastMoveEventInfo=Qu(c,this.transformPagePoint),le.update(this.updatePoint,!0)},this.handlePointerUp=(u,c)=>{if(this.end(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const{onEnd:f,onSessionEnd:d}=this.handlers,h=Ju(u.type==="pointercancel"?this.lastMoveEventInfo:Qu(c,this.transformPagePoint),this.history);this.startEvent&&f&&f(u,h),d&&d(u,h)},!Aw(t))return;this.handlers=n,this.transformPagePoint=r;const o=Ql(t),i=Qu(o,this.transformPagePoint),{point:s}=i,{timestamp:a}=Re;this.history=[{...s,timestamp:a}];const{onSessionStart:l}=n;l&&l(t,Ju(i,this.history)),this.removeListeners=Wn(un(window,"pointermove",this.handlePointerMove),un(window,"pointerup",this.handlePointerUp),un(window,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),mn(this.updatePoint)}}function Qu(e,t){return t?{point:t(e.point)}:e}function jm(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Ju({point:e},t){return{point:e,delta:jm(e,m1(t)),offset:jm(e,n2(t)),velocity:r2(t,.1)}}function n2(e){return e[0]}function m1(e){return e[e.length-1]}function r2(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const o=m1(e);for(;n>=0&&(r=e[n],!(o.timestamp-r.timestamp>Gn(t)));)n--;if(!r)return{x:0,y:0};const i=cn(o.timestamp-r.timestamp);if(i===0)return{x:0,y:0};const s={x:(o.x-r.x)/i,y:(o.y-r.y)/i};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function ht(e){return e.max-e.min}function Nf(e,t=0,n=.01){return Math.abs(e-t)<=n}function Um(e,t,n,r=.5){e.origin=r,e.originPoint=ge(t.min,t.max,e.origin),e.scale=ht(n)/ht(t),(Nf(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=ge(n.min,n.max,e.origin)-e.originPoint,(Nf(e.translate)||isNaN(e.translate))&&(e.translate=0)}function zi(e,t,n,r){Um(e.x,t.x,n.x,r?r.originX:void 0),Um(e.y,t.y,n.y,r?r.originY:void 0)}function Hm(e,t,n){e.min=n.min+t.min,e.max=e.min+ht(t)}function o2(e,t,n){Hm(e.x,t.x,n.x),Hm(e.y,t.y,n.y)}function Wm(e,t,n){e.min=t.min-n.min,e.max=e.min+ht(t)}function Bi(e,t,n){Wm(e.x,t.x,n.x),Wm(e.y,t.y,n.y)}function i2(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?ge(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?ge(n,e,r.max):Math.min(e,n)),e}function Gm(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function s2(e,{top:t,left:n,bottom:r,right:o}){return{x:Gm(e.x,n,o),y:Gm(e.y,t,r)}}function Km(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function a2(e,t){return{x:Km(e.x,t.x),y:Km(e.y,t.y)}}function l2(e,t){let n=.5;const r=ht(e),o=ht(t);return o>r?n=ss(t.min,t.max-r,e.min):r>o&&(n=ss(e.min,e.max-o,t.min)),Qn(0,1,n)}function u2(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const Af=.35;function c2(e=Af){return e===!1?e=0:e===!0&&(e=Af),{x:Ym(e,"left","right"),y:Ym(e,"top","bottom")}}function Ym(e,t,n){return{min:Xm(e,t),max:Xm(e,n)}}function Xm(e,t){return typeof e=="number"?e:e[t]||0}const qm=()=>({translate:0,scale:1,origin:0,originPoint:0}),vo=()=>({x:qm(),y:qm()}),Zm=()=>({min:0,max:0}),ke=()=>({x:Zm(),y:Zm()});function Ft(e){return[e("x"),e("y")]}function g1({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function f2({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function d2(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function ec(e){return e===void 0||e===1}function Mf({scale:e,scaleX:t,scaleY:n}){return!ec(e)||!ec(t)||!ec(n)}function gr(e){return Mf(e)||y1(e)||e.z||e.rotate||e.rotateX||e.rotateY}function y1(e){return Qm(e.x)||Qm(e.y)}function Qm(e){return e&&e!=="0%"}function wl(e,t,n){const r=e-n,o=t*r;return n+o}function Jm(e,t,n,r,o){return o!==void 0&&(e=wl(e,o,r)),wl(e,n,r)+t}function Rf(e,t=0,n=1,r,o){e.min=Jm(e.min,t,n,r,o),e.max=Jm(e.max,t,n,r,o)}function v1(e,{x:t,y:n}){Rf(e.x,t.translate,t.scale,t.originPoint),Rf(e.y,n.translate,n.scale,n.originPoint)}function h2(e,t,n,r=!1){const o=n.length;if(!o)return;t.x=t.y=1;let i,s;for(let a=0;a<o;a++){i=n[a],s=i.projectionDelta;const l=i.instance;l&&l.style&&l.style.display==="contents"||(r&&i.options.layoutScroll&&i.scroll&&i!==i.root&&wo(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),s&&(t.x*=s.x.scale,t.y*=s.y.scale,v1(e,s)),r&&gr(i.latestValues)&&wo(e,i.latestValues))}t.x=eg(t.x),t.y=eg(t.y)}function eg(e){return Number.isInteger(e)||e>1.0000000000001||e<.999999999999?e:1}function Pn(e,t){e.min=e.min+t,e.max=e.max+t}function tg(e,t,[n,r,o]){const i=t[o]!==void 0?t[o]:.5,s=ge(e.min,e.max,i);Rf(e,t[n],t[r],s,t.scale)}const p2=["x","scaleX","originX"],m2=["y","scaleY","originY"];function wo(e,t){tg(e.x,t,p2),tg(e.y,t,m2)}function w1(e,t){return g1(d2(e.getBoundingClientRect(),t))}function g2(e,t,n){const r=w1(e,n),{scroll:o}=t;return o&&(Pn(r.x,o.offset.x),Pn(r.y,o.offset.y)),r}const y2=new WeakMap;class v2{constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=ke(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const o=l=>{this.stopAnimation(),n&&this.snapToCursor(Ql(l,"page").point)},i=(l,u)=>{const{drag:c,dragPropagation:f,onDragStart:d}=this.getProps();if(c&&!f&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=Rw(c),!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),Ft(g=>{let v=this.getAxisMotionValue(g).get()||0;if(Kt.test(v)){const{projection:b}=this.visualElement;if(b&&b.layout){const m=b.layout.layoutBox[g];m&&(v=ht(m)*(parseFloat(v)/100))}}this.originPoint[g]=v}),d&&le.update(()=>d(l,u),!1,!0);const{animationState:h}=this.visualElement;h&&h.setActive("whileDrag",!0)},s=(l,u)=>{const{dragPropagation:c,dragDirectionLock:f,onDirectionLock:d,onDrag:h}=this.getProps();if(!c&&!this.openGlobalLock)return;const{offset:g}=u;if(f&&this.currentDirection===null){this.currentDirection=w2(g),this.currentDirection!==null&&d&&d(this.currentDirection);return}this.updateAxis("x",u.point,g),this.updateAxis("y",u.point,g),this.visualElement.render(),h&&h(l,u)},a=(l,u)=>this.stop(l,u);this.panSession=new p1(t,{onSessionStart:o,onStart:i,onMove:s,onSessionEnd:a},{transformPagePoint:this.visualElement.getTransformPagePoint()})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:o}=n;this.startAnimation(o);const{onDragEnd:i}=this.getProps();i&&le.update(()=>i(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.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(t,n,r){const{drag:o}=this.getProps();if(!r||!Js(t,o,this.currentDirection))return;const i=this.getAxisMotionValue(t);let s=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(s=i2(s,this.constraints[t],this.elastic[t])),i.set(s)}resolveConstraints(){const{dragConstraints:t,dragElastic:n}=this.getProps(),{layout:r}=this.visualElement.projection||{},o=this.constraints;t&&go(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=s2(r.layoutBox,t):this.constraints=!1,this.elastic=c2(n),o!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&Ft(i=>{this.getAxisMotionValue(i)&&(this.constraints[i]=u2(r.layoutBox[i],this.constraints[i]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!go(t))return!1;const r=t.current,{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const i=g2(r,o.root,this.visualElement.getTransformPagePoint());let s=a2(o.layout.layoutBox,i);if(n){const a=n(f2(s));this.hasMutatedConstraints=!!a,a&&(s=g1(a))}return s}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:o,dragTransition:i,dragSnapToOrigin:s,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},u=Ft(c=>{if(!Js(c,n,this.currentDirection))return;let f=l&&l[c]||{};s&&(f={min:0,max:0});const d=o?200:1e6,h=o?40:1e7,g={type:"inertia",velocity:r?t[c]:0,bounceStiffness:d,bounceDamping:h,timeConstant:750,restDelta:1,restSpeed:10,...i,...f};return this.startAxisValueAnimation(c,g)});return Promise.all(u).then(a)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return r.start(bh(t,r,0,n))}stopAnimation(){Ft(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){const n="_drag"+t.toUpperCase(),r=this.visualElement.getProps(),o=r[n];return o||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){Ft(n=>{const{drag:r}=this.getProps();if(!Js(n,r,this.currentDirection))return;const{projection:o}=this.visualElement,i=this.getAxisMotionValue(n);if(o&&o.layout){const{min:s,max:a}=o.layout.layoutBox[n];i.set(t[n]-ge(s,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!go(n)||!r||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};Ft(s=>{const a=this.getAxisMotionValue(s);if(a){const l=a.get();o[s]=l2({min:l,max:l},this.constraints[s])}});const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Ft(s=>{if(!Js(s,t,null))return;const a=this.getAxisMotionValue(s),{min:l,max:u}=this.constraints[s];a.set(ge(l,u,o[s]))})}addListeners(){if(!this.visualElement.current)return;y2.set(this.visualElement,this);const t=this.visualElement.current,n=un(t,"pointerdown",l=>{const{drag:u,dragListener:c=!0}=this.getProps();u&&c&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();go(l)&&(this.constraints=this.resolveRefConstraints())},{projection:o}=this.visualElement,i=o.addEventListener("measure",r);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),r();const s=on(window,"resize",()=>this.scalePositionWithinConstraints()),a=o.addEventListener("didUpdate",({delta:l,hasLayoutChanged:u})=>{this.isDragging&&u&&(Ft(c=>{const f=this.getAxisMotionValue(c);f&&(this.originPoint[c]+=l[c].translate,f.set(f.get()+l[c].translate))}),this.visualElement.render())});return()=>{s(),n(),i(),a&&a()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:o=!1,dragConstraints:i=!1,dragElastic:s=Af,dragMomentum:a=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:o,dragConstraints:i,dragElastic:s,dragMomentum:a}}}function Js(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function w2(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class x2 extends rr{constructor(t){super(t),this.removeGroupControls=Se,this.removeListeners=Se,this.controls=new v2(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Se}unmount(){this.removeGroupControls(),this.removeListeners()}}const ng=e=>(t,n)=>{e&&le.update(()=>e(t,n))};class S2 extends rr{constructor(){super(...arguments),this.removePointerDownListener=Se}onPointerDown(t){this.session=new p1(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint()})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:o}=this.node.getProps();return{onSessionStart:ng(t),onStart:ng(n),onMove:r,onEnd:(i,s)=>{delete this.session,o&&le.update(()=>o(i,s))}}}mount(){this.removePointerDownListener=un(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}function b2(){const e=S.useContext(Kl);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:n,register:r}=e,o=S.useId();return S.useEffect(()=>r(o),[]),!t&&n?[!1,()=>n&&n(o)]:[!0]}const ka={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function rg(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const fi={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(q.test(e))e=parseFloat(e);else return e;const n=rg(e,t.target.x),r=rg(e,t.target.y);return`${n}% ${r}%`}},E2={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,o=Jn.parse(e);if(o.length>5)return r;const i=Jn.createTransformer(e),s=typeof o[0]!="number"?1:0,a=n.x.scale*t.x,l=n.y.scale*t.y;o[0+s]/=a,o[1+s]/=l;const u=ge(a,l,.5);return typeof o[2+s]=="number"&&(o[2+s]/=u),typeof o[3+s]=="number"&&(o[3+s]/=u),i(o)}};class _2 extends se.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:o}=this.props,{projection:i}=t;Mk(C2),i&&(n.group&&n.group.add(i),r&&r.register&&o&&r.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),ka.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:o,isPresent:i}=this.props,s=r.projection;return s&&(s.isPresent=i,o||t.layoutDependency!==n||n===void 0?s.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?s.promote():s.relegate()||le.postRender(()=>{const a=s.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),queueMicrotask(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:o}=t;o&&(o.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(o),r&&r.deregister&&r.deregister(o))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function x1(e){const[t,n]=b2(),r=S.useContext(lh);return se.createElement(_2,{...e,layoutGroup:r,switchLayoutGroup:S.useContext(mw),isPresent:t,safeToRemove:n})}const C2={borderRadius:{...fi,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:fi,borderTopRightRadius:fi,borderBottomLeftRadius:fi,borderBottomRightRadius:fi,boxShadow:E2},S1=["TopLeft","TopRight","BottomLeft","BottomRight"],k2=S1.length,og=e=>typeof e=="string"?parseFloat(e):e,ig=e=>typeof e=="number"||q.test(e);function T2(e,t,n,r,o,i){o?(e.opacity=ge(0,n.opacity!==void 0?n.opacity:1,P2(r)),e.opacityExit=ge(t.opacity!==void 0?t.opacity:1,0,N2(r))):i&&(e.opacity=ge(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let s=0;s<k2;s++){const a=`border${S1[s]}Radius`;let l=sg(t,a),u=sg(n,a);if(l===void 0&&u===void 0)continue;l||(l=0),u||(u=0),l===0||u===0||ig(l)===ig(u)?(e[a]=Math.max(ge(og(l),og(u),r),0),(Kt.test(u)||Kt.test(l))&&(e[a]+="%")):e[a]=u}(t.rotate||n.rotate)&&(e.rotate=ge(t.rotate||0,n.rotate||0,r))}function sg(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const P2=b1(0,.5,vh),N2=b1(.5,.95,Se);function b1(e,t,n){return r=>r<e?0:r>t?1:n(ss(e,t,r))}function ag(e,t){e.min=t.min,e.max=t.max}function yt(e,t){ag(e.x,t.x),ag(e.y,t.y)}function lg(e,t,n,r,o){return e-=t,e=wl(e,1/n,r),o!==void 0&&(e=wl(e,1/o,r)),e}function A2(e,t=0,n=1,r=.5,o,i=e,s=e){if(Kt.test(t)&&(t=parseFloat(t),t=ge(s.min,s.max,t/100)-s.min),typeof t!="number")return;let a=ge(i.min,i.max,r);e===i&&(a-=t),e.min=lg(e.min,t,n,a,o),e.max=lg(e.max,t,n,a,o)}function ug(e,t,[n,r,o],i,s){A2(e,t[n],t[r],t[o],t.scale,i,s)}const M2=["x","scaleX","originX"],R2=["y","scaleY","originY"];function cg(e,t,n,r){ug(e.x,t,M2,n?n.x:void 0,r?r.x:void 0),ug(e.y,t,R2,n?n.y:void 0,r?r.y:void 0)}function fg(e){return e.translate===0&&e.scale===1}function E1(e){return fg(e.x)&&fg(e.y)}function $2(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}function _1(e,t){return Math.round(e.x.min)===Math.round(t.x.min)&&Math.round(e.x.max)===Math.round(t.x.max)&&Math.round(e.y.min)===Math.round(t.y.min)&&Math.round(e.y.max)===Math.round(t.y.max)}function dg(e){return ht(e.x)/ht(e.y)}class L2{constructor(){this.members=[]}add(t){Eh(this.members,t),t.scheduleRender()}remove(t){if(_h(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(o=>t===o);if(n===0)return!1;let r;for(let o=n;o>=0;o--){const i=this.members[o];if(i.isPresent!==!1){r=i;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:o}=t.options;o===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function hg(e,t,n){let r="";const o=e.x.translate/t.x,i=e.y.translate/t.y;if((o||i)&&(r=`translate3d(${o}px, ${i}px, 0) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{rotate:l,rotateX:u,rotateY:c}=n;l&&(r+=`rotate(${l}deg) `),u&&(r+=`rotateX(${u}deg) `),c&&(r+=`rotateY(${c}deg) `)}const s=e.x.scale*t.x,a=e.y.scale*t.y;return(s!==1||a!==1)&&(r+=`scale(${s}, ${a})`),r||"none"}const D2=(e,t)=>e.depth-t.depth;class O2{constructor(){this.children=[],this.isDirty=!1}add(t){Eh(this.children,t),this.isDirty=!0}remove(t){_h(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(D2),this.isDirty=!1,this.children.forEach(t)}}function V2(e,t){const n=performance.now(),r=({timestamp:o})=>{const i=o-n;i>=t&&(mn(r),e(i-t))};return le.read(r,!0),()=>mn(r)}function I2(e){window.MotionDebug&&window.MotionDebug.record(e)}function z2(e){return e instanceof SVGElement&&e.tagName!=="svg"}function B2(e,t,n){const r=it(e)?e:zo(e);return r.start(bh("",r,t,n)),r.animation}const pg=["","X","Y","Z"],mg=1e3;let F2=0;const yr={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function C1({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(s={},a=t==null?void 0:t()){this.id=F2++,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.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{yr.totalNodes=yr.resolvedTargetDeltas=yr.recalculatedProjection=0,this.nodes.forEach(H2),this.nodes.forEach(X2),this.nodes.forEach(q2),this.nodes.forEach(W2),I2(yr)},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 O2)}addEventListener(s,a){return this.eventHandlers.has(s)||this.eventHandlers.set(s,new Ch),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=z2(s),this.instance=s;const{layoutId:l,layout:u,visualElement:c}=this.options;if(c&&!c.current&&c.mount(s),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),a&&(u||l)&&(this.isLayoutDirty=!0),e){let f;const d=()=>this.root.updateBlockedByResize=!1;e(s,()=>{this.root.updateBlockedByResize=!0,f&&f(),f=V2(d,250),ka.hasAnimatedSinceResize&&(ka.hasAnimatedSinceResize=!1,this.nodes.forEach(yg))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&c&&(l||u)&&this.addEventListener("didUpdate",({delta:f,hasLayoutChanged:d,hasRelativeTargetChanged:h,layout:g})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const v=this.options.transition||c.getDefaultTransition()||tN,{onLayoutAnimationStart:b,onLayoutAnimationComplete:m}=c.getProps(),p=!this.targetLayout||!_1(this.targetLayout,g)||h,y=!d&&h;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||y||d&&(p||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(f,y);const w={...u1(v,"layout"),onPlay:b,onComplete:m};(c.shouldReduceMotion||this.options.layoutRoot)&&(w.delay=0,w.type=!1),this.startAnimation(w)}else d||yg(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=g})}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,mn(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(Z2),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 c=0;c<this.path.length;c++){const f=this.path[c];f.shouldResetTransform=!0,f.updateScroll("snapshot"),f.options.layoutRoot&&f.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(gg);return}this.isUpdating||this.nodes.forEach(K2),this.isUpdating=!1,this.nodes.forEach(Y2),this.nodes.forEach(j2),this.nodes.forEach(U2),this.clearAllSnapshots();const a=performance.now();Re.delta=Qn(0,1e3/60,a-Re.timestamp),Re.timestamp=a,Re.isProcessing=!0,Hu.update.process(Re),Hu.preRender.process(Re),Hu.render.process(Re),Re.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,queueMicrotask(()=>this.update()))}clearAllSnapshots(){this.nodes.forEach(G2),this.sharedNodes.forEach(Q2)}scheduleUpdateProjection(){le.preRender(this.updateProjection,!1,!0)}scheduleCheckAfterUnmount(){le.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=ke(),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(!o)return;const s=this.isLayoutDirty||this.shouldResetTransform,a=this.projectionDelta&&!E1(this.projectionDelta),l=this.getTransformTemplate(),u=l?l(this.latestValues,""):void 0,c=u!==this.prevTransformTemplateValue;s&&(a||gr(this.latestValues)||c)&&(o(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)),nN(l),{animationId:this.root.animationId,measuredBox:a,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:s}=this.options;if(!s)return ke();const a=s.measureViewportBox(),{scroll:l}=this.root;return l&&(Pn(a.x,l.offset.x),Pn(a.y,l.offset.y)),a}removeElementScroll(s){const a=ke();yt(a,s);for(let l=0;l<this.path.length;l++){const u=this.path[l],{scroll:c,options:f}=u;if(u!==this.root&&c&&f.layoutScroll){if(c.isRoot){yt(a,s);const{scroll:d}=this.root;d&&(Pn(a.x,-d.offset.x),Pn(a.y,-d.offset.y))}Pn(a.x,c.offset.x),Pn(a.y,c.offset.y)}}return a}applyTransform(s,a=!1){const l=ke();yt(l,s);for(let u=0;u<this.path.length;u++){const c=this.path[u];!a&&c.options.layoutScroll&&c.scroll&&c!==c.root&&wo(l,{x:-c.scroll.offset.x,y:-c.scroll.offset.y}),gr(c.latestValues)&&wo(l,c.latestValues)}return gr(this.latestValues)&&wo(l,this.latestValues),l}removeTransform(s){const a=ke();yt(a,s);for(let l=0;l<this.path.length;l++){const u=this.path[l];if(!u.instance||!gr(u.latestValues))continue;Mf(u.latestValues)&&u.updateSnapshot();const c=ke(),f=u.measurePageBox();yt(c,f),cg(a,u.latestValues,u.snapshot?u.snapshot.layoutBox:void 0,c)}return gr(this.latestValues)&&cg(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!==Re.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:f,layoutId:d}=this.options;if(!(!this.layout||!(f||d))){if(this.resolvedRelativeTargetAt=Re.timestamp,!this.targetDelta&&!this.relativeTarget){const h=this.getClosestProjectingParent();h&&h.layout&&this.animationProgress!==1?(this.relativeParent=h,this.forceRelativeParentToResolveTarget(),this.relativeTarget=ke(),this.relativeTargetOrigin=ke(),Bi(this.relativeTargetOrigin,this.layout.layoutBox,h.layout.layoutBox),yt(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=ke(),this.targetWithTransforms=ke()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),o2(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):yt(this.target,this.layout.layoutBox),v1(this.target,this.targetDelta)):yt(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const h=this.getClosestProjectingParent();h&&!!h.resumingFrom==!!this.resumingFrom&&!h.options.layoutScroll&&h.target&&this.animationProgress!==1?(this.relativeParent=h,this.forceRelativeParentToResolveTarget(),this.relativeTarget=ke(),this.relativeTargetOrigin=ke(),Bi(this.relativeTargetOrigin,this.target,h.target),yt(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}yr.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||Mf(this.parent.latestValues)||y1(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===Re.timestamp&&(u=!1),u)return;const{layout:c,layoutId:f}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(c||f))return;yt(this.layoutCorrected,this.layout.layoutBox);const d=this.treeScale.x,h=this.treeScale.y;h2(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:g}=a;if(!g){this.projectionTransform&&(this.projectionDelta=vo(),this.projectionTransform="none",this.scheduleRender());return}this.projectionDelta||(this.projectionDelta=vo(),this.projectionDeltaWithTransform=vo());const v=this.projectionTransform;zi(this.projectionDelta,this.layoutCorrected,g,this.latestValues),this.projectionTransform=hg(this.projectionDelta,this.treeScale),(this.projectionTransform!==v||this.treeScale.x!==d||this.treeScale.y!==h)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",g)),yr.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:{},c={...this.latestValues},f=vo();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const d=ke(),h=l?l.source:void 0,g=this.layout?this.layout.source:void 0,v=h!==g,b=this.getStack(),m=!b||b.members.length<=1,p=!!(v&&!m&&this.options.crossfade===!0&&!this.path.some(eN));this.animationProgress=0;let y;this.mixTargetDelta=w=>{const _=w/1e3;vg(f.x,s.x,_),vg(f.y,s.y,_),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Bi(d,this.layout.layoutBox,this.relativeParent.layout.layoutBox),J2(this.relativeTarget,this.relativeTargetOrigin,d,_),y&&$2(this.relativeTarget,y)&&(this.isProjectionDirty=!1),y||(y=ke()),yt(y,this.relativeTarget)),v&&(this.animationValues=c,T2(c,u,this.latestValues,_,p,m)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=_},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&&(mn(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=le.update(()=>{ka.hasAnimatedSinceResize=!0,this.currentAnimation=B2(0,mg,{...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(mg),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:a,target:l,layout:u,latestValues:c}=s;if(!(!a||!l||!u)){if(this!==s&&this.layout&&u&&k1(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||ke();const f=ht(this.layout.layoutBox.x);l.x.min=s.target.x.min,l.x.max=l.x.min+f;const d=ht(this.layout.layoutBox.y);l.y.min=s.target.y.min,l.y.max=l.y.min+d}yt(a,l),wo(a,c),zi(this.projectionDeltaWithTransform,this.layoutCorrected,a,c)}}registerSharedNode(s,a){this.sharedNodes.has(s)||this.sharedNodes.set(s,new L2),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 c=0;c<pg.length;c++){const f="rotate"+pg[c];l[f]&&(u[f]=l[f],s.setStaticValue(f,0))}s.render();for(const c in u)s.setStaticValue(c,u[c]);s.scheduleRender()}getProjectionStyles(s={}){var a,l;const u={};if(!this.instance||this.isSVG)return u;if(this.isVisible)u.visibility="";else return{visibility:"hidden"};const c=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,u.opacity="",u.pointerEvents=Ca(s.pointerEvents)||"",u.transform=c?c(this.latestValues,""):"none",u;const f=this.getLead();if(!this.projectionDelta||!this.layout||!f.target){const v={};return this.options.layoutId&&(v.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,v.pointerEvents=Ca(s.pointerEvents)||""),this.hasProjected&&!gr(this.latestValues)&&(v.transform=c?c({},""):"none",this.hasProjected=!1),v}const d=f.animationValues||f.latestValues;this.applyTransformsToTarget(),u.transform=hg(this.projectionDeltaWithTransform,this.treeScale,d),c&&(u.transform=c(d,u.transform));const{x:h,y:g}=this.projectionDelta;u.transformOrigin=`${h.origin*100}% ${g.origin*100}% 0`,f.animationValues?u.opacity=f===this?(l=(a=d.opacity)!==null&&a!==void 0?a:this.latestValues.opacity)!==null&&l!==void 0?l:1:this.preserveOpacity?this.latestValues.opacity:d.opacityExit:u.opacity=f===this?d.opacity!==void 0?d.opacity:"":d.opacityExit!==void 0?d.opacityExit:0;for(const v in dl){if(d[v]===void 0)continue;const{correct:b,applyTo:m}=dl[v],p=u.transform==="none"?d[v]:b(d[v],f);if(m){const y=m.length;for(let w=0;w<y;w++)u[m[w]]=p}else u[v]=p}return this.options.layoutId&&(u.pointerEvents=f===this?Ca(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(gg),this.root.sharedNodes.clear()}}}function j2(e){e.updateLayout()}function U2(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:o}=e.layout,{animationType:i}=e.options,s=n.source!==e.layout.source;i==="size"?Ft(f=>{const d=s?n.measuredBox[f]:n.layoutBox[f],h=ht(d);d.min=r[f].min,d.max=d.min+h}):k1(i,n.layoutBox,r)&&Ft(f=>{const d=s?n.measuredBox[f]:n.layoutBox[f],h=ht(r[f]);d.max=d.min+h,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[f].max=e.relativeTarget[f].min+h)});const a=vo();zi(a,r,n.layoutBox);const l=vo();s?zi(l,e.applyTransform(o,!0),n.measuredBox):zi(l,r,n.layoutBox);const u=!E1(a);let c=!1;if(!e.resumeFrom){const f=e.getClosestProjectingParent();if(f&&!f.resumeFrom){const{snapshot:d,layout:h}=f;if(d&&h){const g=ke();Bi(g,n.layoutBox,d.layoutBox);const v=ke();Bi(v,r,h.layoutBox),_1(g,v)||(c=!0),f.options.layoutRoot&&(e.relativeTarget=v,e.relativeTargetOrigin=g,e.relativeParent=f)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:l,layoutDelta:a,hasLayoutChanged:u,hasRelativeTargetChanged:c})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function H2(e){yr.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function W2(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function G2(e){e.clearSnapshot()}function gg(e){e.clearMeasurements()}function K2(e){e.isLayoutDirty=!1}function Y2(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function yg(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function X2(e){e.resolveTargetDelta()}function q2(e){e.calcProjection()}function Z2(e){e.resetRotation()}function Q2(e){e.removeLeadSnapshot()}function vg(e,t,n){e.translate=ge(t.translate,0,n),e.scale=ge(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function wg(e,t,n,r){e.min=ge(t.min,n.min,r),e.max=ge(t.max,n.max,r)}function J2(e,t,n,r){wg(e.x,t.x,n.x,r),wg(e.y,t.y,n.y,r)}function eN(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const tN={duration:.45,ease:[.4,0,.1,1]},xg=e=>typeof navigator<"u"&&navigator.userAgent.toLowerCase().includes(e),Sg=xg("applewebkit/")&&!xg("chrome/")?Math.round:Se;function bg(e){e.min=Sg(e.min),e.max=Sg(e.max)}function nN(e){bg(e.x),bg(e.y)}function k1(e,t,n){return e==="position"||e==="preserve-aspect"&&!Nf(dg(t),dg(n),.2)}const rN=C1({attachResizeListener:(e,t)=>on(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),tc={current:void 0},T1=C1({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!tc.current){const e=new rN({});e.mount(window),e.setOptions({layoutScroll:!0}),tc.current=e}return tc.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),oN={pan:{Feature:S2},drag:{Feature:x2,ProjectionNode:T1,MeasureLayout:x1}},iN=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function sN(e){const t=iN.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]}function $f(e,t,n=1){const[r,o]=sN(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);if(i){const s=i.trim();return c1(s)?parseFloat(s):s}else return bf(o)?$f(o,t,n+1):o}function aN(e,{...t},n){const r=e.current;if(!(r instanceof Element))return{target:t,transitionEnd:n};n&&(n={...n}),e.values.forEach(o=>{const i=o.get();if(!bf(i))return;const s=$f(i,r);s&&o.set(s)});for(const o in t){const i=t[o];if(!bf(i))continue;const s=$f(i,r);s&&(t[o]=s,n||(n={}),n[o]===void 0&&(n[o]=i))}return{target:t,transitionEnd:n}}const lN=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),P1=e=>lN.has(e),uN=e=>Object.keys(e).some(P1),Eg=e=>e===Ur||e===q,_g=(e,t)=>parseFloat(e.split(", ")[t]),Cg=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const o=r.match(/^matrix3d\((.+)\)$/);if(o)return _g(o[1],t);{const i=r.match(/^matrix\((.+)\)$/);return i?_g(i[1],e):0}},cN=new Set(["x","y","z"]),fN=bs.filter(e=>!cN.has(e));function dN(e){const t=[];return fN.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t.length&&e.render(),t}const Bo={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:Cg(4,13),y:Cg(5,14)};Bo.translateX=Bo.x;Bo.translateY=Bo.y;const hN=(e,t,n)=>{const r=t.measureViewportBox(),o=t.current,i=getComputedStyle(o),{display:s}=i,a={};s==="none"&&t.setStaticValue("display",e.display||"block"),n.forEach(u=>{a[u]=Bo[u](r,i)}),t.render();const l=t.measureViewportBox();return n.forEach(u=>{const c=t.getValue(u);c&&c.jump(a[u]),e[u]=Bo[u](l,i)}),e},pN=(e,t,n={},r={})=>{t={...t},r={...r};const o=Object.keys(t).filter(P1);let i=[],s=!1;const a=[];if(o.forEach(l=>{const u=e.getValue(l);if(!e.hasValue(l))return;let c=n[l],f=ci(c);const d=t[l];let h;if(pl(d)){const g=d.length,v=d[0]===null?1:0;c=d[v],f=ci(c);for(let b=v;b<g&&d[b]!==null;b++)h?yh(ci(d[b])===h):h=ci(d[b])}else h=ci(d);if(f!==h)if(Eg(f)&&Eg(h)){const g=u.get();typeof g=="string"&&u.set(parseFloat(g)),typeof d=="string"?t[l]=parseFloat(d):Array.isArray(d)&&h===q&&(t[l]=d.map(parseFloat))}else f!=null&&f.transform&&(h!=null&&h.transform)&&(c===0||d===0)?c===0?u.set(h.transform(c)):t[l]=f.transform(d):(s||(i=dN(e),s=!0),a.push(l),r[l]=r[l]!==void 0?r[l]:t[l],u.jump(d))}),a.length){const l=a.indexOf("height")>=0?window.pageYOffset:null,u=hN(t,e,a);return i.length&&i.forEach(([c,f])=>{e.getValue(c).set(f)}),e.render(),Yl&&l!==null&&window.scrollTo({top:l}),{target:u,transitionEnd:r}}else return{target:t,transitionEnd:r}};function mN(e,t,n,r){return uN(t)?pN(e,t,n,r):{target:t,transitionEnd:r}}const gN=(e,t,n,r)=>{const o=aN(e,t,r);return t=o.target,r=o.transitionEnd,mN(e,t,n,r)},Lf={current:null},N1={current:!1};function yN(){if(N1.current=!0,!!Yl)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Lf.current=e.matches;e.addListener(t),t()}else Lf.current=!1}function vN(e,t,n){const{willChange:r}=t;for(const o in t){const i=t[o],s=n[o];if(it(i))e.addValue(o,i),vl(r)&&r.add(o);else if(it(s))e.addValue(o,zo(i,{owner:e})),vl(r)&&r.remove(o);else if(s!==i)if(e.hasValue(o)){const a=e.getValue(o);!a.hasAnimated&&a.set(i)}else{const a=e.getStaticValue(o);e.addValue(o,zo(a!==void 0?a:i,{owner:e}))}}for(const o in n)t[o]===void 0&&e.removeValue(o);return t}const kg=new WeakMap,A1=Object.keys(is),wN=A1.length,Tg=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],xN=ah.length;class SN{constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:o,visualState:i},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=()=>le.render(this.render,!1,!0);const{latestValues:a,renderState:l}=i;this.latestValues=a,this.baseTarget={...a},this.initialValues=n.initial?{...a}:{},this.renderState=l,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=o,this.options=s,this.isControllingVariants=ql(n),this.isVariantNode=pw(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:u,...c}=this.scrapeMotionValuesFromProps(n,{});for(const f in c){const d=c[f];a[f]!==void 0&&it(d)&&(d.set(a[f],!1),vl(u)&&u.add(f))}}scrapeMotionValuesFromProps(t,n){return{}}mount(t){this.current=t,kg.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),N1.current||yN(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Lf.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){kg.delete(this.current),this.projection&&this.projection.unmount(),mn(this.notifyUpdate),mn(this.render),this.valueSubscriptions.forEach(t=>t()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features)this.features[t].unmount();this.current=null}bindToMotionValue(t,n){const r=jr.has(t),o=n.on("change",s=>{this.latestValues[t]=s,this.props.onUpdate&&le.update(this.notifyUpdate,!1,!0),r&&this.projection&&(this.projection.isTransformDirty=!0)}),i=n.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,()=>{o(),i()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}loadFeatures({children:t,...n},r,o,i){let s,a;for(let l=0;l<wN;l++){const u=A1[l],{isEnabled:c,Feature:f,ProjectionNode:d,MeasureLayout:h}=is[u];d&&(s=d),c(n)&&(!this.features[u]&&f&&(this.features[u]=new f(this)),h&&(a=h))}if(!this.projection&&s){this.projection=new s(this.latestValues,this.parent&&this.parent.projection);const{layoutId:l,layout:u,drag:c,dragConstraints:f,layoutScroll:d,layoutRoot:h}=n;this.projection.setOptions({layoutId:l,layout:u,alwaysMeasureLayout:!!c||f&&go(f),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:typeof u=="string"?u:"both",initialPromotionConfig:i,layoutScroll:d,layoutRoot:h})}return a}updateFeatures(){for(const t in this.features){const n=this.features[t];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):ke()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}makeTargetAnimatable(t,n=!0){return this.makeTargetAnimatableFromInstance(t,this.props,n)}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<Tg.length;r++){const o=Tg[r];this.propEventSubscriptions[o]&&(this.propEventSubscriptions[o](),delete this.propEventSubscriptions[o]);const i=t["on"+o];i&&(this.propEventSubscriptions[o]=this.on(o,i))}this.prevMotionValues=vN(this,this.scrapeMotionValuesFromProps(t,this.prevProps),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]: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(t=!1){if(t)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<xN;r++){const o=ah[r],i=this.props[o];(os(i)||i===!1)&&(n[o]=i)}return n}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){n!==this.values.get(t)&&(this.removeValue(t),this.bindToMotionValue(t,n)),this.values.set(t,n),this.latestValues[t]=n.get()}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=zo(n,{owner:this}),this.addValue(t,r)),r}readValue(t){var n;return this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(n=this.getBaseTargetFromProps(this.props,t))!==null&&n!==void 0?n:this.readValueFromInstance(this.current,t,this.options)}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props,o=typeof r=="string"||typeof r=="object"?(n=gh(this.props,r))===null||n===void 0?void 0:n[t]:void 0;if(r&&o!==void 0)return o;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!it(i)?i:this.initialValues[t]!==void 0&&o===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Ch),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class M1 extends SN{sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}makeTargetAnimatableFromInstance({transition:t,transitionEnd:n,...r},{transformValues:o},i){let s=BP(r,t||{},this);if(o&&(n&&(n=o(n)),r&&(r=o(r)),s&&(s=o(s))),i){IP(this,r,s);const a=gN(this,r,s,n);n=a.transitionEnd,r=a.target}return{transition:t,transitionEnd:n,...r}}}function bN(e){return window.getComputedStyle(e)}class EN extends M1{readValueFromInstance(t,n){if(jr.has(n)){const r=Sh(n);return r&&r.default||0}else{const r=bN(t),o=(vw(n)?r.getPropertyValue(n):r[n])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:n}){return w1(t,n)}build(t,n,r,o){ch(t,n,r,o.transformTemplate)}scrapeMotionValuesFromProps(t,n){return mh(t,n)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;it(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}renderInstance(t,n,r,o){_w(t,n,r,o)}}class _N extends M1{constructor(){super(...arguments),this.isSVGTag=!1}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(jr.has(n)){const r=Sh(n);return r&&r.default||0}return n=Cw.has(n)?n:ph(n),t.getAttribute(n)}measureInstanceViewportBox(){return ke()}scrapeMotionValuesFromProps(t,n){return Tw(t,n)}build(t,n,r,o){dh(t,n,r,this.isSVGTag,o.transformTemplate)}renderInstance(t,n,r,o){kw(t,n,r,o)}mount(t){this.isSVGTag=hh(t.tagName),super.mount(t)}}const CN=(e,t)=>uh(e)?new _N(t,{enableHardwareAcceleration:!1}):new EN(t,{enableHardwareAcceleration:!0}),kN={layout:{ProjectionNode:T1,MeasureLayout:x1}},TN={...e2,...xT,...oN,...kN},R1=Nk((e,t)=>aT(e,t,TN,CN));function $1(){const e=S.useRef(!1);return ih(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function PN(){const e=$1(),[t,n]=S.useState(0),r=S.useCallback(()=>{e.current&&n(t+1)},[t]);return[S.useCallback(()=>le.postRender(r),[r]),t]}class NN extends S.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=this.props.sizeRef.current;r.height=n.offsetHeight||0,r.width=n.offsetWidth||0,r.top=n.offsetTop,r.left=n.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function AN({children:e,isPresent:t}){const n=S.useId(),r=S.useRef(null),o=S.useRef({width:0,height:0,top:0,left:0});return S.useInsertionEffect(()=>{const{width:i,height:s,top:a,left:l}=o.current;if(t||!r.current||!i||!s)return;r.current.dataset.motionPopId=n;const u=document.createElement("style");return document.head.appendChild(u),u.sheet&&u.sheet.insertRule(`
|
|
57
|
-
[data-motion-pop-id="${n}"] {
|
|
58
|
-
position: absolute !important;
|
|
59
|
-
width: ${i}px !important;
|
|
60
|
-
height: ${s}px !important;
|
|
61
|
-
top: ${a}px !important;
|
|
62
|
-
left: ${l}px !important;
|
|
63
|
-
}
|
|
64
|
-
`),()=>{document.head.removeChild(u)}},[t]),S.createElement(NN,{isPresent:t,childRef:r,sizeRef:o},S.cloneElement(e,{ref:r}))}const nc=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:o,presenceAffectsLayout:i,mode:s})=>{const a=Pw(MN),l=S.useId(),u=S.useMemo(()=>({id:l,initial:t,isPresent:n,custom:o,onExitComplete:c=>{a.set(c,!0);for(const f of a.values())if(!f)return;r&&r()},register:c=>(a.set(c,!1),()=>a.delete(c))}),i?void 0:[n]);return S.useMemo(()=>{a.forEach((c,f)=>a.set(f,!1))},[n]),S.useEffect(()=>{!n&&!a.size&&r&&r()},[n]),s==="popLayout"&&(e=S.createElement(AN,{isPresent:n},e)),S.createElement(Kl.Provider,{value:u},e)};function MN(){return new Map}function RN(e){return S.useEffect(()=>()=>e(),[])}const no=e=>e.key||"";function $N(e,t){e.forEach(n=>{const r=no(n);t.set(r,n)})}function LN(e){const t=[];return S.Children.forEach(e,n=>{S.isValidElement(n)&&t.push(n)}),t}const DN=({children:e,custom:t,initial:n=!0,onExitComplete:r,exitBeforeEnter:o,presenceAffectsLayout:i=!0,mode:s="sync"})=>{const a=S.useContext(lh).forceRender||PN()[0],l=$1(),u=LN(e);let c=u;const f=S.useRef(new Map).current,d=S.useRef(c),h=S.useRef(new Map).current,g=S.useRef(!0);if(ih(()=>{g.current=!1,$N(u,h),d.current=c}),RN(()=>{g.current=!0,h.clear(),f.clear()}),g.current)return S.createElement(S.Fragment,null,c.map(p=>S.createElement(nc,{key:no(p),isPresent:!0,initial:n?void 0:!1,presenceAffectsLayout:i,mode:s},p)));c=[...c];const v=d.current.map(no),b=u.map(no),m=v.length;for(let p=0;p<m;p++){const y=v[p];b.indexOf(y)===-1&&!f.has(y)&&f.set(y,void 0)}return s==="wait"&&f.size&&(c=[]),f.forEach((p,y)=>{if(b.indexOf(y)!==-1)return;const w=h.get(y);if(!w)return;const _=v.indexOf(y);let T=p;if(!T){const N=()=>{h.delete(y),f.delete(y);const A=d.current.findIndex(z=>z.key===y);if(d.current.splice(A,1),!f.size){if(d.current=u,l.current===!1)return;a(),r&&r()}};T=S.createElement(nc,{key:no(w),isPresent:!1,onExitComplete:N,custom:t,presenceAffectsLayout:i,mode:s},w),f.set(y,T)}c.splice(_,0,T)}),c=c.map(p=>{const y=p.key;return f.has(y)?p:S.createElement(nc,{key:no(p),isPresent:!0,presenceAffectsLayout:i,mode:s},p)}),S.createElement(S.Fragment,null,f.size?c:c.map(p=>S.cloneElement(p)))};var Pg={ease:[.36,.66,.4,1],easeIn:[.4,0,1,1],easeOut:[0,0,.2,1],easeInOut:[.4,0,.2,1],spring:[.155,1.105,.295,1.12],springOut:[.57,-.15,.62,.07],softSpring:[.16,1.11,.3,1.02]},Ta="right-scroll-bar-position",Pa="width-before-scroll-bar",ON="with-scroll-bars-hidden",VN="--removed-body-scroll-bar-size";function IN(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function zN(e,t){var n=S.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}function BN(e,t){return zN(t||null,function(n){return e.forEach(function(r){return IN(r,n)})})}function FN(e){return e}function jN(e,t){t===void 0&&(t=FN);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(i){var s=t(i,r);return n.push(s),function(){n=n.filter(function(a){return a!==s})}},assignSyncMedium:function(i){for(r=!0;n.length;){var s=n;n=[],s.forEach(i)}n={push:function(a){return i(a)},filter:function(){return n}}},assignMedium:function(i){r=!0;var s=[];if(n.length){var a=n;n=[],a.forEach(i),s=n}var l=function(){var c=s;s=[],c.forEach(i)},u=function(){return Promise.resolve().then(l)};u(),n={push:function(c){s.push(c),u()},filter:function(c){return s=s.filter(c),n}}}};return o}function UN(e){e===void 0&&(e={});var t=jN(null);return t.options=Ut({async:!0,ssr:!1},e),t}var L1=function(e){var t=e.sideCar,n=Wy(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return S.createElement(r,Ut({},n))};L1.isSideCarExport=!0;function HN(e,t){return e.useMedium(t),L1}var D1=UN(),rc=function(){},eu=S.forwardRef(function(e,t){var n=S.useRef(null),r=S.useState({onScrollCapture:rc,onWheelCapture:rc,onTouchMoveCapture:rc}),o=r[0],i=r[1],s=e.forwardProps,a=e.children,l=e.className,u=e.removeScrollBar,c=e.enabled,f=e.shards,d=e.sideCar,h=e.noIsolation,g=e.inert,v=e.allowPinchZoom,b=e.as,m=b===void 0?"div":b,p=e.gapMode,y=Wy(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),w=d,_=BN([n,t]),T=Ut(Ut({},y),o);return S.createElement(S.Fragment,null,c&&S.createElement(w,{sideCar:D1,removeScrollBar:u,shards:f,noIsolation:h,inert:g,setCallbacks:i,allowPinchZoom:!!v,lockRef:n,gapMode:p}),s?S.cloneElement(S.Children.only(a),Ut(Ut({},T),{ref:_})):S.createElement(m,Ut({},T,{className:l,ref:_}),a))});eu.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};eu.classNames={fullWidth:Pa,zeroRight:Ta};var Ng,WN=function(){if(Ng)return Ng;if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function GN(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=WN();return t&&e.setAttribute("nonce",t),e}function KN(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function YN(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var XN=function(){var e=0,t=null;return{add:function(n){e==0&&(t=GN())&&(KN(t,n),YN(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},qN=function(){var e=XN();return function(t,n){S.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},O1=function(){var e=qN(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},ZN={left:0,top:0,right:0,gap:0},oc=function(e){return parseInt(e||"",10)||0},QN=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[oc(n),oc(r),oc(o)]},JN=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return ZN;var t=QN(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},eA=O1(),tA=function(e,t,n,r){var o=e.left,i=e.top,s=e.right,a=e.gap;return n===void 0&&(n="margin"),`
|
|
65
|
-
.`.concat(ON,` {
|
|
66
|
-
overflow: hidden `).concat(r,`;
|
|
67
|
-
padding-right: `).concat(a,"px ").concat(r,`;
|
|
68
|
-
}
|
|
69
|
-
body {
|
|
70
|
-
overflow: hidden `).concat(r,`;
|
|
71
|
-
overscroll-behavior: contain;
|
|
72
|
-
`).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
|
|
73
|
-
padding-left: `.concat(o,`px;
|
|
74
|
-
padding-top: `).concat(i,`px;
|
|
75
|
-
padding-right: `).concat(s,`px;
|
|
76
|
-
margin-left:0;
|
|
77
|
-
margin-top:0;
|
|
78
|
-
margin-right: `).concat(a,"px ").concat(r,`;
|
|
79
|
-
`),n==="padding"&&"padding-right: ".concat(a,"px ").concat(r,";")].filter(Boolean).join(""),`
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
.`).concat(Ta,` {
|
|
83
|
-
right: `).concat(a,"px ").concat(r,`;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
.`).concat(Pa,` {
|
|
87
|
-
margin-right: `).concat(a,"px ").concat(r,`;
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
.`).concat(Ta," .").concat(Ta,` {
|
|
91
|
-
right: 0 `).concat(r,`;
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
.`).concat(Pa," .").concat(Pa,` {
|
|
95
|
-
margin-right: 0 `).concat(r,`;
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
body {
|
|
99
|
-
`).concat(VN,": ").concat(a,`px;
|
|
100
|
-
}
|
|
101
|
-
`)},nA=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r,i=S.useMemo(function(){return JN(o)},[o]);return S.createElement(eA,{styles:tA(i,!t,o,n?"":"!important")})},Df=!1;if(typeof window<"u")try{var ea=Object.defineProperty({},"passive",{get:function(){return Df=!0,!0}});window.addEventListener("test",ea,ea),window.removeEventListener("test",ea,ea)}catch{Df=!1}var Xr=Df?{passive:!1}:!1,rA=function(e){return e.tagName==="TEXTAREA"},V1=function(e,t){var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!rA(e)&&n[t]==="visible")},oA=function(e){return V1(e,"overflowY")},iA=function(e){return V1(e,"overflowX")},Ag=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=I1(e,r);if(o){var i=z1(e,r),s=i[1],a=i[2];if(s>a)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},sA=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},aA=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},I1=function(e,t){return e==="v"?oA(t):iA(t)},z1=function(e,t){return e==="v"?sA(t):aA(t)},lA=function(e,t){return e==="h"&&t==="rtl"?-1:1},uA=function(e,t,n,r,o){var i=lA(e,window.getComputedStyle(t).direction),s=i*r,a=n.target,l=t.contains(a),u=!1,c=s>0,f=0,d=0;do{var h=z1(e,a),g=h[0],v=h[1],b=h[2],m=v-b-i*g;(g||m)&&I1(e,a)&&(f+=m,d+=g),a=a.parentNode}while(!l&&a!==document.body||l&&(t.contains(a)||t===a));return(c&&(o&&f===0||!o&&s>f)||!c&&(o&&d===0||!o&&-s>d))&&(u=!0),u},ta=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Mg=function(e){return[e.deltaX,e.deltaY]},Rg=function(e){return e&&"current"in e?e.current:e},cA=function(e,t){return e[0]===t[0]&&e[1]===t[1]},fA=function(e){return`
|
|
102
|
-
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
103
|
-
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
104
|
-
`)},dA=0,qr=[];function hA(e){var t=S.useRef([]),n=S.useRef([0,0]),r=S.useRef(),o=S.useState(dA++)[0],i=S.useState(O1)[0],s=S.useRef(e);S.useEffect(function(){s.current=e},[e]),S.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var v=Zb([e.lockRef.current],(e.shards||[]).map(Rg),!0).filter(Boolean);return v.forEach(function(b){return b.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),v.forEach(function(b){return b.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var a=S.useCallback(function(v,b){if("touches"in v&&v.touches.length===2)return!s.current.allowPinchZoom;var m=ta(v),p=n.current,y="deltaX"in v?v.deltaX:p[0]-m[0],w="deltaY"in v?v.deltaY:p[1]-m[1],_,T=v.target,N=Math.abs(y)>Math.abs(w)?"h":"v";if("touches"in v&&N==="h"&&T.type==="range")return!1;var A=Ag(N,T);if(!A)return!0;if(A?_=N:(_=N==="v"?"h":"v",A=Ag(N,T)),!A)return!1;if(!r.current&&"changedTouches"in v&&(y||w)&&(r.current=_),!_)return!0;var z=r.current||_;return uA(z,b,v,z==="h"?y:w,!0)},[]),l=S.useCallback(function(v){var b=v;if(!(!qr.length||qr[qr.length-1]!==i)){var m="deltaY"in b?Mg(b):ta(b),p=t.current.filter(function(_){return _.name===b.type&&_.target===b.target&&cA(_.delta,m)})[0];if(p&&p.should){b.cancelable&&b.preventDefault();return}if(!p){var y=(s.current.shards||[]).map(Rg).filter(Boolean).filter(function(_){return _.contains(b.target)}),w=y.length>0?a(b,y[0]):!s.current.noIsolation;w&&b.cancelable&&b.preventDefault()}}},[]),u=S.useCallback(function(v,b,m,p){var y={name:v,delta:b,target:m,should:p};t.current.push(y),setTimeout(function(){t.current=t.current.filter(function(w){return w!==y})},1)},[]),c=S.useCallback(function(v){n.current=ta(v),r.current=void 0},[]),f=S.useCallback(function(v){u(v.type,Mg(v),v.target,a(v,e.lockRef.current))},[]),d=S.useCallback(function(v){u(v.type,ta(v),v.target,a(v,e.lockRef.current))},[]);S.useEffect(function(){return qr.push(i),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:d}),document.addEventListener("wheel",l,Xr),document.addEventListener("touchmove",l,Xr),document.addEventListener("touchstart",c,Xr),function(){qr=qr.filter(function(v){return v!==i}),document.removeEventListener("wheel",l,Xr),document.removeEventListener("touchmove",l,Xr),document.removeEventListener("touchstart",c,Xr)}},[]);var h=e.removeScrollBar,g=e.inert;return S.createElement(S.Fragment,null,g?S.createElement(i,{styles:fA(o)}):null,h?S.createElement(nA,{gapMode:e.gapMode}):null)}const pA=HN(D1,hA);var B1=S.forwardRef(function(e,t){return S.createElement(eu,Ut({},e,{ref:t,sideCar:pA}))});B1.classNames=eu.classNames;const mA=B1;var[gA,tu]=fk({name:"NavbarContext",strict:!0,errorMessage:"useNavbarContext: `context` is undefined. Seems you forgot to wrap component within <Navbar />"}),yA={enter:{height:"calc(100vh - var(--navbar-height) - 1px)",transition:{duration:.3,easings:"easeOut"}},exit:{height:0,transition:{duration:.25,easings:"easeIn"}}},F1=xs((e,t)=>{var n,r;const{className:o,children:i,portalContainer:s,motionProps:a,style:l,...u}=e,c=Ss(t),{slots:f,isMenuOpen:d,height:h,disableAnimation:g,classNames:v}=tu(),b=Nr(v==null?void 0:v.menu,o),m=S.useCallback(({children:y})=>I.jsx(mA,{forwardProps:!0,enabled:d,removeScrollBar:!1,children:y}),[d]),p=g?I.jsx(m,{children:I.jsx("ul",{ref:c,className:(n=f.menu)==null?void 0:n.call(f,{class:b}),"data-open":To(d),style:{"--navbar-height":h},...u,children:i})}):I.jsx(DN,{mode:"wait",children:d?I.jsx(m,{children:I.jsx(R1.ul,{ref:c,layoutScroll:!0,animate:"enter",className:(r=f.menu)==null?void 0:r.call(f,{class:b}),"data-open":To(d),exit:"exit",initial:"exit",style:{"--navbar-height":h,...l},variants:yA,...cd(a,u),children:i})}):null});return I.jsx(CC,{portalContainer:s,children:p})});F1.displayName="NextUI.NavbarMenu";var vA=F1,wA={visible:{y:0,transition:{ease:Pg.easeOut}},hidden:{y:"-100%",transition:{ease:Pg.easeIn}}},xA=typeof window<"u";function $g(e){return xA?e?{x:e.scrollLeft,y:e.scrollTop}:{x:window.scrollX,y:window.scrollY}:{x:0,y:0}}var SA=e=>{const{elementRef:t,delay:n=30,callback:r,isEnabled:o}=e,i=S.useRef(o?$g(t==null?void 0:t.current):{x:0,y:0});let s=null;const a=()=>{const l=$g(t==null?void 0:t.current);typeof r=="function"&&r({prevPos:i.current,currPos:l}),i.current=l,s=null};return S.useEffect(()=>{if(!o)return;const l=()=>{n?s===null&&(s=setTimeout(a,n)):a()},u=(t==null?void 0:t.current)||window;return u.addEventListener("scroll",l),()=>u.removeEventListener("scroll",l)},[t==null?void 0:t.current,n,o]),i.current};function bA(e){var t;const[n,r]=TC(e,bm.variantKeys),{ref:o,as:i,parentRef:s,height:a="4rem",shouldHideOnScroll:l=!1,disableScrollHandler:u=!1,onScrollPositionChange:c,isMenuOpen:f,isMenuDefaultOpen:d,onMenuOpenChange:h=()=>{},motionProps:g,className:v,classNames:b,...m}=n,p=i||"nav",y=Ss(o),w=S.useRef(0),_=S.useRef(0),[T,N]=S.useState(!1),A=S.useCallback(k=>{h(k||!1)},[h]),[z,B]=Mb(f,d,A),D=()=>{if(y.current){const k=y.current.offsetWidth;k!==w.current&&(w.current=k)}};Bb({ref:y,onResize:()=>{var k;((k=y.current)==null?void 0:k.offsetWidth)!==w.current&&(D(),B(!1))}}),S.useEffect(()=>{var k;D(),_.current=((k=y.current)==null?void 0:k.offsetHeight)||0},[]);const O=S.useMemo(()=>bm({...r,hideOnScroll:l}),[...Object.values(r),l]),L=Nr(b==null?void 0:b.base,v);SA({elementRef:s,isEnabled:l||!u,callback:({prevPos:k,currPos:V})=>{c==null||c(V.y),l&&N(P=>{const C=V.y>k.y&&V.y>_.current;return C!==P?C:P})}});const E=(k={})=>({...cd(m,k),"data-hidden":To(T),"data-menu-open":To(z),ref:y,className:O.base({class:Nr(L,k==null?void 0:k.className)}),style:{"--navbar-height":a,...k==null?void 0:k.style}}),M=(k={})=>({...k,"data-menu-open":To(z),className:O.wrapper({class:Nr(b==null?void 0:b.wrapper,k==null?void 0:k.className)})});return{Component:p,slots:O,domRef:y,height:a,isHidden:T,disableAnimation:(t=e.disableAnimation)!=null?t:!1,shouldHideOnScroll:l,isMenuOpen:z,classNames:b,setIsMenuOpen:B,motionProps:g,getBaseProps:E,getWrapperProps:M}}var j1=xs((e,t)=>{const{children:n,...r}=e,o=bA({...r,ref:t}),i=o.Component,[s,a]=xk(n,vA),l=I.jsxs(I.Fragment,{children:[I.jsx("header",{...o.getWrapperProps(),children:s}),a]});return I.jsx(gA,{value:o,children:o.shouldHideOnScroll?I.jsx(R1.nav,{animate:o.isHidden?"hidden":"visible",initial:!1,variants:wA,...cd(o.getBaseProps(),o.motionProps),children:l}):I.jsx(i,{...o.getBaseProps(),children:l})})});j1.displayName="NextUI.Navbar";var EA=j1,U1=xs((e,t)=>{var n;const{as:r,className:o,children:i,...s}=e,a=r||"div",l=Ss(t),{slots:u,classNames:c}=tu(),f=Nr(c==null?void 0:c.brand,o);return I.jsx(a,{ref:l,className:(n=u.brand)==null?void 0:n.call(u,{class:f}),...s,children:i})});U1.displayName="NextUI.NavbarBrand";var _A=U1,H1=xs((e,t)=>{var n;const{as:r,className:o,children:i,justify:s="start",...a}=e,l=r||"ul",u=Ss(t),{slots:c,classNames:f}=tu(),d=Nr(f==null?void 0:f.content,o);return I.jsx(l,{ref:u,className:(n=c.content)==null?void 0:n.call(c,{class:d}),"data-justify":s,...a,children:i})});H1.displayName="NextUI.NavbarContent";var CA=H1,W1=xs((e,t)=>{var n;const{as:r,className:o,children:i,isActive:s,...a}=e,l=r||"li",u=Ss(t),{slots:c,classNames:f}=tu(),d=Nr(f==null?void 0:f.item,o);return I.jsx(l,{ref:u,className:(n=c.item)==null?void 0:n.call(c,{class:d}),"data-active":To(s),...a,children:i})});W1.displayName="NextUI.NavbarItem";var kA=W1,Of={},Lg=Zv;Of.createRoot=Lg.createRoot,Of.hydrateRoot=Lg.hydrateRoot;function kt(e){if(typeof e=="string"||typeof e=="number")return""+e;let t="";if(Array.isArray(e))for(let n=0,r;n<e.length;n++)(r=kt(e[n]))!==""&&(t+=(t&&" ")+r);else for(let n in e)e[n]&&(t+=(t&&" ")+n);return t}var G1={exports:{}},K1={},Y1={exports:{}},X1={};/**
|
|
105
|
-
* @license React
|
|
106
|
-
* use-sync-external-store-shim.production.min.js
|
|
107
|
-
*
|
|
108
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
109
|
-
*
|
|
110
|
-
* This source code is licensed under the MIT license found in the
|
|
111
|
-
* LICENSE file in the root directory of this source tree.
|
|
112
|
-
*/var Fo=S;function TA(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var PA=typeof Object.is=="function"?Object.is:TA,NA=Fo.useState,AA=Fo.useEffect,MA=Fo.useLayoutEffect,RA=Fo.useDebugValue;function $A(e,t){var n=t(),r=NA({inst:{value:n,getSnapshot:t}}),o=r[0].inst,i=r[1];return MA(function(){o.value=n,o.getSnapshot=t,ic(o)&&i({inst:o})},[e,n,t]),AA(function(){return ic(o)&&i({inst:o}),e(function(){ic(o)&&i({inst:o})})},[e]),RA(n),n}function ic(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!PA(e,n)}catch{return!0}}function LA(e,t){return t()}var DA=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?LA:$A;X1.useSyncExternalStore=Fo.useSyncExternalStore!==void 0?Fo.useSyncExternalStore:DA;Y1.exports=X1;var OA=Y1.exports;/**
|
|
113
|
-
* @license React
|
|
114
|
-
* use-sync-external-store-shim/with-selector.production.min.js
|
|
115
|
-
*
|
|
116
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
117
|
-
*
|
|
118
|
-
* This source code is licensed under the MIT license found in the
|
|
119
|
-
* LICENSE file in the root directory of this source tree.
|
|
120
|
-
*/var nu=S,VA=OA;function IA(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var zA=typeof Object.is=="function"?Object.is:IA,BA=VA.useSyncExternalStore,FA=nu.useRef,jA=nu.useEffect,UA=nu.useMemo,HA=nu.useDebugValue;K1.useSyncExternalStoreWithSelector=function(e,t,n,r,o){var i=FA(null);if(i.current===null){var s={hasValue:!1,value:null};i.current=s}else s=i.current;i=UA(function(){function l(h){if(!u){if(u=!0,c=h,h=r(h),o!==void 0&&s.hasValue){var g=s.value;if(o(g,h))return f=g}return f=h}if(g=f,zA(c,h))return g;var v=r(h);return o!==void 0&&o(g,v)?g:(c=h,f=v)}var u=!1,c,f,d=n===void 0?null:n;return[function(){return l(t())},d===null?void 0:function(){return l(d())}]},[t,n,r,o]);var a=BA(e,i[0],i[1]);return jA(function(){s.hasValue=!0,s.value=a},[a]),HA(a),a};G1.exports=K1;var WA=G1.exports;const GA=od(WA),Dg=e=>{let t;const n=new Set,r=(l,u)=>{const c=typeof l=="function"?l(t):l;if(!Object.is(c,t)){const f=t;t=u??typeof c!="object"?c:Object.assign({},t,c),n.forEach(d=>d(t,f))}},o=()=>t,a={setState:r,getState:o,subscribe:l=>(n.add(l),()=>n.delete(l)),destroy:()=>{n.clear()}};return t=e(r,o,a),a},KA=e=>e?Dg(e):Dg,{useSyncExternalStoreWithSelector:YA}=GA;function q1(e,t=e.getState,n){const r=YA(e.subscribe,e.getState,e.getServerState||e.getState,t,n);return S.useDebugValue(r),r}const Og=(e,t)=>{const n=KA(e),r=(o,i=t)=>q1(n,o,i);return Object.assign(r,n),r},XA=(e,t)=>e?Og(e,t):Og;function st(e,t){if(Object.is(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(const[r,o]of e)if(!Object.is(o,t.get(r)))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(const r of e)if(!t.has(r))return!1;return!0}const n=Object.keys(e);if(n.length!==Object.keys(t).length)return!1;for(let r=0;r<n.length;r++)if(!Object.prototype.hasOwnProperty.call(t,n[r])||!Object.is(e[n[r]],t[n[r]]))return!1;return!0}var qA={value:()=>{}};function ru(){for(var e=0,t=arguments.length,n={},r;e<t;++e){if(!(r=arguments[e]+"")||r in n||/[\s.]/.test(r))throw new Error("illegal type: "+r);n[r]=[]}return new Na(n)}function Na(e){this._=e}function ZA(e,t){return e.trim().split(/^|\s+/).map(function(n){var r="",o=n.indexOf(".");if(o>=0&&(r=n.slice(o+1),n=n.slice(0,o)),n&&!t.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:r}})}Na.prototype=ru.prototype={constructor:Na,on:function(e,t){var n=this._,r=ZA(e+"",n),o,i=-1,s=r.length;if(arguments.length<2){for(;++i<s;)if((o=(e=r[i]).type)&&(o=QA(n[o],e.name)))return o;return}if(t!=null&&typeof t!="function")throw new Error("invalid callback: "+t);for(;++i<s;)if(o=(e=r[i]).type)n[o]=Vg(n[o],e.name,t);else if(t==null)for(o in n)n[o]=Vg(n[o],e.name,null);return this},copy:function(){var e={},t=this._;for(var n in t)e[n]=t[n].slice();return new Na(e)},call:function(e,t){if((o=arguments.length-2)>0)for(var n=new Array(o),r=0,o,i;r<o;++r)n[r]=arguments[r+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(i=this._[e],r=0,o=i.length;r<o;++r)i[r].value.apply(t,n)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var r=this._[e],o=0,i=r.length;o<i;++o)r[o].value.apply(t,n)}};function QA(e,t){for(var n=0,r=e.length,o;n<r;++n)if((o=e[n]).name===t)return o.value}function Vg(e,t,n){for(var r=0,o=e.length;r<o;++r)if(e[r].name===t){e[r]=qA,e=e.slice(0,r).concat(e.slice(r+1));break}return n!=null&&e.push({name:t,value:n}),e}var Vf="http://www.w3.org/1999/xhtml";const Ig={svg:"http://www.w3.org/2000/svg",xhtml:Vf,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function ou(e){var t=e+="",n=t.indexOf(":");return n>=0&&(t=e.slice(0,n))!=="xmlns"&&(e=e.slice(n+1)),Ig.hasOwnProperty(t)?{space:Ig[t],local:e}:e}function JA(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===Vf&&t.documentElement.namespaceURI===Vf?t.createElement(e):t.createElementNS(n,e)}}function eM(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function Z1(e){var t=ou(e);return(t.local?eM:JA)(t)}function tM(){}function kh(e){return e==null?tM:function(){return this.querySelector(e)}}function nM(e){typeof e!="function"&&(e=kh(e));for(var t=this._groups,n=t.length,r=new Array(n),o=0;o<n;++o)for(var i=t[o],s=i.length,a=r[o]=new Array(s),l,u,c=0;c<s;++c)(l=i[c])&&(u=e.call(l,l.__data__,c,i))&&("__data__"in l&&(u.__data__=l.__data__),a[c]=u);return new pt(r,this._parents)}function rM(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function oM(){return[]}function Q1(e){return e==null?oM:function(){return this.querySelectorAll(e)}}function iM(e){return function(){return rM(e.apply(this,arguments))}}function sM(e){typeof e=="function"?e=iM(e):e=Q1(e);for(var t=this._groups,n=t.length,r=[],o=[],i=0;i<n;++i)for(var s=t[i],a=s.length,l,u=0;u<a;++u)(l=s[u])&&(r.push(e.call(l,l.__data__,u,s)),o.push(l));return new pt(r,o)}function J1(e){return function(){return this.matches(e)}}function ex(e){return function(t){return t.matches(e)}}var aM=Array.prototype.find;function lM(e){return function(){return aM.call(this.children,e)}}function uM(){return this.firstElementChild}function cM(e){return this.select(e==null?uM:lM(typeof e=="function"?e:ex(e)))}var fM=Array.prototype.filter;function dM(){return Array.from(this.children)}function hM(e){return function(){return fM.call(this.children,e)}}function pM(e){return this.selectAll(e==null?dM:hM(typeof e=="function"?e:ex(e)))}function mM(e){typeof e!="function"&&(e=J1(e));for(var t=this._groups,n=t.length,r=new Array(n),o=0;o<n;++o)for(var i=t[o],s=i.length,a=r[o]=[],l,u=0;u<s;++u)(l=i[u])&&e.call(l,l.__data__,u,i)&&a.push(l);return new pt(r,this._parents)}function tx(e){return new Array(e.length)}function gM(){return new pt(this._enter||this._groups.map(tx),this._parents)}function xl(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}xl.prototype={constructor:xl,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};function yM(e){return function(){return e}}function vM(e,t,n,r,o,i){for(var s=0,a,l=t.length,u=i.length;s<u;++s)(a=t[s])?(a.__data__=i[s],r[s]=a):n[s]=new xl(e,i[s]);for(;s<l;++s)(a=t[s])&&(o[s]=a)}function wM(e,t,n,r,o,i,s){var a,l,u=new Map,c=t.length,f=i.length,d=new Array(c),h;for(a=0;a<c;++a)(l=t[a])&&(d[a]=h=s.call(l,l.__data__,a,t)+"",u.has(h)?o[a]=l:u.set(h,l));for(a=0;a<f;++a)h=s.call(e,i[a],a,i)+"",(l=u.get(h))?(r[a]=l,l.__data__=i[a],u.delete(h)):n[a]=new xl(e,i[a]);for(a=0;a<c;++a)(l=t[a])&&u.get(d[a])===l&&(o[a]=l)}function xM(e){return e.__data__}function SM(e,t){if(!arguments.length)return Array.from(this,xM);var n=t?wM:vM,r=this._parents,o=this._groups;typeof e!="function"&&(e=yM(e));for(var i=o.length,s=new Array(i),a=new Array(i),l=new Array(i),u=0;u<i;++u){var c=r[u],f=o[u],d=f.length,h=bM(e.call(c,c&&c.__data__,u,r)),g=h.length,v=a[u]=new Array(g),b=s[u]=new Array(g),m=l[u]=new Array(d);n(c,f,v,b,m,h,t);for(var p=0,y=0,w,_;p<g;++p)if(w=v[p]){for(p>=y&&(y=p+1);!(_=b[y])&&++y<g;);w._next=_||null}}return s=new pt(s,r),s._enter=a,s._exit=l,s}function bM(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function EM(){return new pt(this._exit||this._groups.map(tx),this._parents)}function _M(e,t,n){var r=this.enter(),o=this,i=this.exit();return typeof e=="function"?(r=e(r),r&&(r=r.selection())):r=r.append(e+""),t!=null&&(o=t(o),o&&(o=o.selection())),n==null?i.remove():n(i),r&&o?r.merge(o).order():o}function CM(e){for(var t=e.selection?e.selection():e,n=this._groups,r=t._groups,o=n.length,i=r.length,s=Math.min(o,i),a=new Array(o),l=0;l<s;++l)for(var u=n[l],c=r[l],f=u.length,d=a[l]=new Array(f),h,g=0;g<f;++g)(h=u[g]||c[g])&&(d[g]=h);for(;l<o;++l)a[l]=n[l];return new pt(a,this._parents)}function kM(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var r=e[t],o=r.length-1,i=r[o],s;--o>=0;)(s=r[o])&&(i&&s.compareDocumentPosition(i)^4&&i.parentNode.insertBefore(s,i),i=s);return this}function TM(e){e||(e=PM);function t(f,d){return f&&d?e(f.__data__,d.__data__):!f-!d}for(var n=this._groups,r=n.length,o=new Array(r),i=0;i<r;++i){for(var s=n[i],a=s.length,l=o[i]=new Array(a),u,c=0;c<a;++c)(u=s[c])&&(l[c]=u);l.sort(t)}return new pt(o,this._parents).order()}function PM(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function NM(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function AM(){return Array.from(this)}function MM(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],o=0,i=r.length;o<i;++o){var s=r[o];if(s)return s}return null}function RM(){let e=0;for(const t of this)++e;return e}function $M(){return!this.node()}function LM(e){for(var t=this._groups,n=0,r=t.length;n<r;++n)for(var o=t[n],i=0,s=o.length,a;i<s;++i)(a=o[i])&&e.call(a,a.__data__,i,o);return this}function DM(e){return function(){this.removeAttribute(e)}}function OM(e){return function(){this.removeAttributeNS(e.space,e.local)}}function VM(e,t){return function(){this.setAttribute(e,t)}}function IM(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function zM(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttribute(e):this.setAttribute(e,n)}}function BM(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function FM(e,t){var n=ou(e);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((t==null?n.local?OM:DM:typeof t=="function"?n.local?BM:zM:n.local?IM:VM)(n,t))}function nx(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function jM(e){return function(){this.style.removeProperty(e)}}function UM(e,t,n){return function(){this.style.setProperty(e,t,n)}}function HM(e,t,n){return function(){var r=t.apply(this,arguments);r==null?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function WM(e,t,n){return arguments.length>1?this.each((t==null?jM:typeof t=="function"?HM:UM)(e,t,n??"")):jo(this.node(),e)}function jo(e,t){return e.style.getPropertyValue(t)||nx(e).getComputedStyle(e,null).getPropertyValue(t)}function GM(e){return function(){delete this[e]}}function KM(e,t){return function(){this[e]=t}}function YM(e,t){return function(){var n=t.apply(this,arguments);n==null?delete this[e]:this[e]=n}}function XM(e,t){return arguments.length>1?this.each((t==null?GM:typeof t=="function"?YM:KM)(e,t)):this.node()[e]}function rx(e){return e.trim().split(/^|\s+/)}function Th(e){return e.classList||new ox(e)}function ox(e){this._node=e,this._names=rx(e.getAttribute("class")||"")}ox.prototype={add:function(e){var t=this._names.indexOf(e);t<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};function ix(e,t){for(var n=Th(e),r=-1,o=t.length;++r<o;)n.add(t[r])}function sx(e,t){for(var n=Th(e),r=-1,o=t.length;++r<o;)n.remove(t[r])}function qM(e){return function(){ix(this,e)}}function ZM(e){return function(){sx(this,e)}}function QM(e,t){return function(){(t.apply(this,arguments)?ix:sx)(this,e)}}function JM(e,t){var n=rx(e+"");if(arguments.length<2){for(var r=Th(this.node()),o=-1,i=n.length;++o<i;)if(!r.contains(n[o]))return!1;return!0}return this.each((typeof t=="function"?QM:t?qM:ZM)(n,t))}function eR(){this.textContent=""}function tR(e){return function(){this.textContent=e}}function nR(e){return function(){var t=e.apply(this,arguments);this.textContent=t??""}}function rR(e){return arguments.length?this.each(e==null?eR:(typeof e=="function"?nR:tR)(e)):this.node().textContent}function oR(){this.innerHTML=""}function iR(e){return function(){this.innerHTML=e}}function sR(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??""}}function aR(e){return arguments.length?this.each(e==null?oR:(typeof e=="function"?sR:iR)(e)):this.node().innerHTML}function lR(){this.nextSibling&&this.parentNode.appendChild(this)}function uR(){return this.each(lR)}function cR(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function fR(){return this.each(cR)}function dR(e){var t=typeof e=="function"?e:Z1(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function hR(){return null}function pR(e,t){var n=typeof e=="function"?e:Z1(e),r=t==null?hR:typeof t=="function"?t:kh(t);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})}function mR(){var e=this.parentNode;e&&e.removeChild(this)}function gR(){return this.each(mR)}function yR(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function vR(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function wR(e){return this.select(e?vR:yR)}function xR(e){return arguments.length?this.property("__data__",e):this.node().__data__}function SR(e){return function(t){e.call(this,t,this.__data__)}}function bR(e){return e.trim().split(/^|\s+/).map(function(t){var n="",r=t.indexOf(".");return r>=0&&(n=t.slice(r+1),t=t.slice(0,r)),{type:t,name:n}})}function ER(e){return function(){var t=this.__on;if(t){for(var n=0,r=-1,o=t.length,i;n<o;++n)i=t[n],(!e.type||i.type===e.type)&&i.name===e.name?this.removeEventListener(i.type,i.listener,i.options):t[++r]=i;++r?t.length=r:delete this.__on}}}function _R(e,t,n){return function(){var r=this.__on,o,i=SR(t);if(r){for(var s=0,a=r.length;s<a;++s)if((o=r[s]).type===e.type&&o.name===e.name){this.removeEventListener(o.type,o.listener,o.options),this.addEventListener(o.type,o.listener=i,o.options=n),o.value=t;return}}this.addEventListener(e.type,i,n),o={type:e.type,name:e.name,value:t,listener:i,options:n},r?r.push(o):this.__on=[o]}}function CR(e,t,n){var r=bR(e+""),o,i=r.length,s;if(arguments.length<2){var a=this.node().__on;if(a){for(var l=0,u=a.length,c;l<u;++l)for(o=0,c=a[l];o<i;++o)if((s=r[o]).type===c.type&&s.name===c.name)return c.value}return}for(a=t?_R:ER,o=0;o<i;++o)this.each(a(r[o],t,n));return this}function ax(e,t,n){var r=nx(e),o=r.CustomEvent;typeof o=="function"?o=new o(t,n):(o=r.document.createEvent("Event"),n?(o.initEvent(t,n.bubbles,n.cancelable),o.detail=n.detail):o.initEvent(t,!1,!1)),e.dispatchEvent(o)}function kR(e,t){return function(){return ax(this,e,t)}}function TR(e,t){return function(){return ax(this,e,t.apply(this,arguments))}}function PR(e,t){return this.each((typeof t=="function"?TR:kR)(e,t))}function*NR(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],o=0,i=r.length,s;o<i;++o)(s=r[o])&&(yield s)}var lx=[null];function pt(e,t){this._groups=e,this._parents=t}function ks(){return new pt([[document.documentElement]],lx)}function AR(){return this}pt.prototype=ks.prototype={constructor:pt,select:nM,selectAll:sM,selectChild:cM,selectChildren:pM,filter:mM,data:SM,enter:gM,exit:EM,join:_M,merge:CM,selection:AR,order:kM,sort:TM,call:NM,nodes:AM,node:MM,size:RM,empty:$M,each:LM,attr:FM,style:WM,property:XM,classed:JM,text:rR,html:aR,raise:uR,lower:fR,append:dR,insert:pR,remove:gR,clone:wR,datum:xR,on:CR,dispatch:PR,[Symbol.iterator]:NR};function $t(e){return typeof e=="string"?new pt([[document.querySelector(e)]],[document.documentElement]):new pt([[e]],lx)}function MR(e){let t;for(;t=e.sourceEvent;)e=t;return e}function jt(e,t){if(e=MR(e),t===void 0&&(t=e.currentTarget),t){var n=t.ownerSVGElement||t;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=e.clientX,r.y=e.clientY,r=r.matrixTransform(t.getScreenCTM().inverse()),[r.x,r.y]}if(t.getBoundingClientRect){var o=t.getBoundingClientRect();return[e.clientX-o.left-t.clientLeft,e.clientY-o.top-t.clientTop]}}return[e.pageX,e.pageY]}const RR={passive:!1},as={capture:!0,passive:!1};function sc(e){e.stopImmediatePropagation()}function Po(e){e.preventDefault(),e.stopImmediatePropagation()}function ux(e){var t=e.document.documentElement,n=$t(e).on("dragstart.drag",Po,as);"onselectstart"in t?n.on("selectstart.drag",Po,as):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}function cx(e,t){var n=e.document.documentElement,r=$t(e).on("dragstart.drag",null);t&&(r.on("click.drag",Po,as),setTimeout(function(){r.on("click.drag",null)},0)),"onselectstart"in n?r.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}const na=e=>()=>e;function If(e,{sourceEvent:t,subject:n,target:r,identifier:o,active:i,x:s,y:a,dx:l,dy:u,dispatch:c}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},subject:{value:n,enumerable:!0,configurable:!0},target:{value:r,enumerable:!0,configurable:!0},identifier:{value:o,enumerable:!0,configurable:!0},active:{value:i,enumerable:!0,configurable:!0},x:{value:s,enumerable:!0,configurable:!0},y:{value:a,enumerable:!0,configurable:!0},dx:{value:l,enumerable:!0,configurable:!0},dy:{value:u,enumerable:!0,configurable:!0},_:{value:c}})}If.prototype.on=function(){var e=this._.on.apply(this._,arguments);return e===this._?this:e};function $R(e){return!e.ctrlKey&&!e.button}function LR(){return this.parentNode}function DR(e,t){return t??{x:e.x,y:e.y}}function OR(){return navigator.maxTouchPoints||"ontouchstart"in this}function VR(){var e=$R,t=LR,n=DR,r=OR,o={},i=ru("start","drag","end"),s=0,a,l,u,c,f=0;function d(w){w.on("mousedown.drag",h).filter(r).on("touchstart.drag",b).on("touchmove.drag",m,RR).on("touchend.drag touchcancel.drag",p).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function h(w,_){if(!(c||!e.call(this,w,_))){var T=y(this,t.call(this,w,_),w,_,"mouse");T&&($t(w.view).on("mousemove.drag",g,as).on("mouseup.drag",v,as),ux(w.view),sc(w),u=!1,a=w.clientX,l=w.clientY,T("start",w))}}function g(w){if(Po(w),!u){var _=w.clientX-a,T=w.clientY-l;u=_*_+T*T>f}o.mouse("drag",w)}function v(w){$t(w.view).on("mousemove.drag mouseup.drag",null),cx(w.view,u),Po(w),o.mouse("end",w)}function b(w,_){if(e.call(this,w,_)){var T=w.changedTouches,N=t.call(this,w,_),A=T.length,z,B;for(z=0;z<A;++z)(B=y(this,N,w,_,T[z].identifier,T[z]))&&(sc(w),B("start",w,T[z]))}}function m(w){var _=w.changedTouches,T=_.length,N,A;for(N=0;N<T;++N)(A=o[_[N].identifier])&&(Po(w),A("drag",w,_[N]))}function p(w){var _=w.changedTouches,T=_.length,N,A;for(c&&clearTimeout(c),c=setTimeout(function(){c=null},500),N=0;N<T;++N)(A=o[_[N].identifier])&&(sc(w),A("end",w,_[N]))}function y(w,_,T,N,A,z){var B=i.copy(),D=jt(z||T,_),O,L,E;if((E=n.call(w,new If("beforestart",{sourceEvent:T,target:d,identifier:A,active:s,x:D[0],y:D[1],dx:0,dy:0,dispatch:B}),N))!=null)return O=E.x-D[0]||0,L=E.y-D[1]||0,function M(k,V,P){var C=D,$;switch(k){case"start":o[A]=M,$=s++;break;case"end":delete o[A],--s;case"drag":D=jt(P||V,_),$=s;break}B.call(k,w,new If(k,{sourceEvent:V,subject:E,target:d,identifier:A,active:$,x:D[0]+O,y:D[1]+L,dx:D[0]-C[0],dy:D[1]-C[1],dispatch:B}),N)}}return d.filter=function(w){return arguments.length?(e=typeof w=="function"?w:na(!!w),d):e},d.container=function(w){return arguments.length?(t=typeof w=="function"?w:na(w),d):t},d.subject=function(w){return arguments.length?(n=typeof w=="function"?w:na(w),d):n},d.touchable=function(w){return arguments.length?(r=typeof w=="function"?w:na(!!w),d):r},d.on=function(){var w=i.on.apply(i,arguments);return w===i?d:w},d.clickDistance=function(w){return arguments.length?(f=(w=+w)*w,d):Math.sqrt(f)},d}function Ph(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function fx(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Ts(){}var ls=.7,Sl=1/ls,No="\\s*([+-]?\\d+)\\s*",us="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Yt="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",IR=/^#([0-9a-f]{3,8})$/,zR=new RegExp(`^rgb\\(${No},${No},${No}\\)$`),BR=new RegExp(`^rgb\\(${Yt},${Yt},${Yt}\\)$`),FR=new RegExp(`^rgba\\(${No},${No},${No},${us}\\)$`),jR=new RegExp(`^rgba\\(${Yt},${Yt},${Yt},${us}\\)$`),UR=new RegExp(`^hsl\\(${us},${Yt},${Yt}\\)$`),HR=new RegExp(`^hsla\\(${us},${Yt},${Yt},${us}\\)$`),zg={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};Ph(Ts,cs,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Bg,formatHex:Bg,formatHex8:WR,formatHsl:GR,formatRgb:Fg,toString:Fg});function Bg(){return this.rgb().formatHex()}function WR(){return this.rgb().formatHex8()}function GR(){return dx(this).formatHsl()}function Fg(){return this.rgb().formatRgb()}function cs(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=IR.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?jg(t):n===3?new tt(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?ra(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?ra(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=zR.exec(e))?new tt(t[1],t[2],t[3],1):(t=BR.exec(e))?new tt(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=FR.exec(e))?ra(t[1],t[2],t[3],t[4]):(t=jR.exec(e))?ra(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=UR.exec(e))?Wg(t[1],t[2]/100,t[3]/100,1):(t=HR.exec(e))?Wg(t[1],t[2]/100,t[3]/100,t[4]):zg.hasOwnProperty(e)?jg(zg[e]):e==="transparent"?new tt(NaN,NaN,NaN,0):null}function jg(e){return new tt(e>>16&255,e>>8&255,e&255,1)}function ra(e,t,n,r){return r<=0&&(e=t=n=NaN),new tt(e,t,n,r)}function KR(e){return e instanceof Ts||(e=cs(e)),e?(e=e.rgb(),new tt(e.r,e.g,e.b,e.opacity)):new tt}function zf(e,t,n,r){return arguments.length===1?KR(e):new tt(e,t,n,r??1)}function tt(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}Ph(tt,zf,fx(Ts,{brighter(e){return e=e==null?Sl:Math.pow(Sl,e),new tt(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?ls:Math.pow(ls,e),new tt(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new tt(Ar(this.r),Ar(this.g),Ar(this.b),bl(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Ug,formatHex:Ug,formatHex8:YR,formatRgb:Hg,toString:Hg}));function Ug(){return`#${Cr(this.r)}${Cr(this.g)}${Cr(this.b)}`}function YR(){return`#${Cr(this.r)}${Cr(this.g)}${Cr(this.b)}${Cr((isNaN(this.opacity)?1:this.opacity)*255)}`}function Hg(){const e=bl(this.opacity);return`${e===1?"rgb(":"rgba("}${Ar(this.r)}, ${Ar(this.g)}, ${Ar(this.b)}${e===1?")":`, ${e})`}`}function bl(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Ar(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Cr(e){return e=Ar(e),(e<16?"0":"")+e.toString(16)}function Wg(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Lt(e,t,n,r)}function dx(e){if(e instanceof Lt)return new Lt(e.h,e.s,e.l,e.opacity);if(e instanceof Ts||(e=cs(e)),!e)return new Lt;if(e instanceof Lt)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),i=Math.max(t,n,r),s=NaN,a=i-o,l=(i+o)/2;return a?(t===i?s=(n-r)/a+(n<r)*6:n===i?s=(r-t)/a+2:s=(t-n)/a+4,a/=l<.5?i+o:2-i-o,s*=60):a=l>0&&l<1?0:s,new Lt(s,a,l,e.opacity)}function XR(e,t,n,r){return arguments.length===1?dx(e):new Lt(e,t,n,r??1)}function Lt(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}Ph(Lt,XR,fx(Ts,{brighter(e){return e=e==null?Sl:Math.pow(Sl,e),new Lt(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?ls:Math.pow(ls,e),new Lt(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new tt(ac(e>=240?e-240:e+120,o,r),ac(e,o,r),ac(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new Lt(Gg(this.h),oa(this.s),oa(this.l),bl(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=bl(this.opacity);return`${e===1?"hsl(":"hsla("}${Gg(this.h)}, ${oa(this.s)*100}%, ${oa(this.l)*100}%${e===1?")":`, ${e})`}`}}));function Gg(e){return e=(e||0)%360,e<0?e+360:e}function oa(e){return Math.max(0,Math.min(1,e||0))}function ac(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const hx=e=>()=>e;function qR(e,t){return function(n){return e+n*t}}function ZR(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}function QR(e){return(e=+e)==1?px:function(t,n){return n-t?ZR(t,n,e):hx(isNaN(t)?n:t)}}function px(e,t){var n=t-e;return n?qR(e,n):hx(isNaN(e)?t:e)}const Kg=function e(t){var n=QR(t);function r(o,i){var s=n((o=zf(o)).r,(i=zf(i)).r),a=n(o.g,i.g),l=n(o.b,i.b),u=px(o.opacity,i.opacity);return function(c){return o.r=s(c),o.g=a(c),o.b=l(c),o.opacity=u(c),o+""}}return r.gamma=e,r}(1);function Nn(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}var Bf=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,lc=new RegExp(Bf.source,"g");function JR(e){return function(){return e}}function e$(e){return function(t){return e(t)+""}}function t$(e,t){var n=Bf.lastIndex=lc.lastIndex=0,r,o,i,s=-1,a=[],l=[];for(e=e+"",t=t+"";(r=Bf.exec(e))&&(o=lc.exec(t));)(i=o.index)>n&&(i=t.slice(n,i),a[s]?a[s]+=i:a[++s]=i),(r=r[0])===(o=o[0])?a[s]?a[s]+=o:a[++s]=o:(a[++s]=null,l.push({i:s,x:Nn(r,o)})),n=lc.lastIndex;return n<t.length&&(i=t.slice(n),a[s]?a[s]+=i:a[++s]=i),a.length<2?l[0]?e$(l[0].x):JR(t):(t=l.length,function(u){for(var c=0,f;c<t;++c)a[(f=l[c]).i]=f.x(u);return a.join("")})}var Yg=180/Math.PI,Ff={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function mx(e,t,n,r,o,i){var s,a,l;return(s=Math.sqrt(e*e+t*t))&&(e/=s,t/=s),(l=e*n+t*r)&&(n-=e*l,r-=t*l),(a=Math.sqrt(n*n+r*r))&&(n/=a,r/=a,l/=a),e*r<t*n&&(e=-e,t=-t,l=-l,s=-s),{translateX:o,translateY:i,rotate:Math.atan2(t,e)*Yg,skewX:Math.atan(l)*Yg,scaleX:s,scaleY:a}}var ia;function n$(e){const t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?Ff:mx(t.a,t.b,t.c,t.d,t.e,t.f)}function r$(e){return e==null||(ia||(ia=document.createElementNS("http://www.w3.org/2000/svg","g")),ia.setAttribute("transform",e),!(e=ia.transform.baseVal.consolidate()))?Ff:(e=e.matrix,mx(e.a,e.b,e.c,e.d,e.e,e.f))}function gx(e,t,n,r){function o(u){return u.length?u.pop()+" ":""}function i(u,c,f,d,h,g){if(u!==f||c!==d){var v=h.push("translate(",null,t,null,n);g.push({i:v-4,x:Nn(u,f)},{i:v-2,x:Nn(c,d)})}else(f||d)&&h.push("translate("+f+t+d+n)}function s(u,c,f,d){u!==c?(u-c>180?c+=360:c-u>180&&(u+=360),d.push({i:f.push(o(f)+"rotate(",null,r)-2,x:Nn(u,c)})):c&&f.push(o(f)+"rotate("+c+r)}function a(u,c,f,d){u!==c?d.push({i:f.push(o(f)+"skewX(",null,r)-2,x:Nn(u,c)}):c&&f.push(o(f)+"skewX("+c+r)}function l(u,c,f,d,h,g){if(u!==f||c!==d){var v=h.push(o(h)+"scale(",null,",",null,")");g.push({i:v-4,x:Nn(u,f)},{i:v-2,x:Nn(c,d)})}else(f!==1||d!==1)&&h.push(o(h)+"scale("+f+","+d+")")}return function(u,c){var f=[],d=[];return u=e(u),c=e(c),i(u.translateX,u.translateY,c.translateX,c.translateY,f,d),s(u.rotate,c.rotate,f,d),a(u.skewX,c.skewX,f,d),l(u.scaleX,u.scaleY,c.scaleX,c.scaleY,f,d),u=c=null,function(h){for(var g=-1,v=d.length,b;++g<v;)f[(b=d[g]).i]=b.x(h);return f.join("")}}}var o$=gx(n$,"px, ","px)","deg)"),i$=gx(r$,", ",")",")"),s$=1e-12;function Xg(e){return((e=Math.exp(e))+1/e)/2}function a$(e){return((e=Math.exp(e))-1/e)/2}function l$(e){return((e=Math.exp(2*e))-1)/(e+1)}const u$=function e(t,n,r){function o(i,s){var a=i[0],l=i[1],u=i[2],c=s[0],f=s[1],d=s[2],h=c-a,g=f-l,v=h*h+g*g,b,m;if(v<s$)m=Math.log(d/u)/t,b=function(N){return[a+N*h,l+N*g,u*Math.exp(t*N*m)]};else{var p=Math.sqrt(v),y=(d*d-u*u+r*v)/(2*u*n*p),w=(d*d-u*u-r*v)/(2*d*n*p),_=Math.log(Math.sqrt(y*y+1)-y),T=Math.log(Math.sqrt(w*w+1)-w);m=(T-_)/t,b=function(N){var A=N*m,z=Xg(_),B=u/(n*p)*(z*l$(t*A+_)-a$(_));return[a+B*h,l+B*g,u*z/Xg(t*A+_)]}}return b.duration=m*1e3*t/Math.SQRT2,b}return o.rho=function(i){var s=Math.max(.001,+i),a=s*s,l=a*a;return e(s,a,l)},o}(Math.SQRT2,2,4);var Uo=0,Ci=0,di=0,yx=1e3,El,ki,_l=0,Vr=0,iu=0,fs=typeof performance=="object"&&performance.now?performance:Date,vx=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function Nh(){return Vr||(vx(c$),Vr=fs.now()+iu)}function c$(){Vr=0}function Cl(){this._call=this._time=this._next=null}Cl.prototype=wx.prototype={constructor:Cl,restart:function(e,t,n){if(typeof e!="function")throw new TypeError("callback is not a function");n=(n==null?Nh():+n)+(t==null?0:+t),!this._next&&ki!==this&&(ki?ki._next=this:El=this,ki=this),this._call=e,this._time=n,jf()},stop:function(){this._call&&(this._call=null,this._time=1/0,jf())}};function wx(e,t,n){var r=new Cl;return r.restart(e,t,n),r}function f$(){Nh(),++Uo;for(var e=El,t;e;)(t=Vr-e._time)>=0&&e._call.call(void 0,t),e=e._next;--Uo}function qg(){Vr=(_l=fs.now())+iu,Uo=Ci=0;try{f$()}finally{Uo=0,h$(),Vr=0}}function d$(){var e=fs.now(),t=e-_l;t>yx&&(iu-=t,_l=e)}function h$(){for(var e,t=El,n,r=1/0;t;)t._call?(r>t._time&&(r=t._time),e=t,t=t._next):(n=t._next,t._next=null,t=e?e._next=n:El=n);ki=e,jf(r)}function jf(e){if(!Uo){Ci&&(Ci=clearTimeout(Ci));var t=e-Vr;t>24?(e<1/0&&(Ci=setTimeout(qg,e-fs.now()-iu)),di&&(di=clearInterval(di))):(di||(_l=fs.now(),di=setInterval(d$,yx)),Uo=1,vx(qg))}}function Zg(e,t,n){var r=new Cl;return t=t==null?0:+t,r.restart(o=>{r.stop(),e(o+t)},t,n),r}var p$=ru("start","end","cancel","interrupt"),m$=[],xx=0,Qg=1,Uf=2,Aa=3,Jg=4,Hf=5,Ma=6;function su(e,t,n,r,o,i){var s=e.__transition;if(!s)e.__transition={};else if(n in s)return;g$(e,n,{name:t,index:r,group:o,on:p$,tween:m$,time:i.time,delay:i.delay,duration:i.duration,ease:i.ease,timer:null,state:xx})}function Ah(e,t){var n=It(e,t);if(n.state>xx)throw new Error("too late; already scheduled");return n}function Zt(e,t){var n=It(e,t);if(n.state>Aa)throw new Error("too late; already running");return n}function It(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw new Error("transition not found");return n}function g$(e,t,n){var r=e.__transition,o;r[t]=n,n.timer=wx(i,0,n.time);function i(u){n.state=Qg,n.timer.restart(s,n.delay,n.time),n.delay<=u&&s(u-n.delay)}function s(u){var c,f,d,h;if(n.state!==Qg)return l();for(c in r)if(h=r[c],h.name===n.name){if(h.state===Aa)return Zg(s);h.state===Jg?(h.state=Ma,h.timer.stop(),h.on.call("interrupt",e,e.__data__,h.index,h.group),delete r[c]):+c<t&&(h.state=Ma,h.timer.stop(),h.on.call("cancel",e,e.__data__,h.index,h.group),delete r[c])}if(Zg(function(){n.state===Aa&&(n.state=Jg,n.timer.restart(a,n.delay,n.time),a(u))}),n.state=Uf,n.on.call("start",e,e.__data__,n.index,n.group),n.state===Uf){for(n.state=Aa,o=new Array(d=n.tween.length),c=0,f=-1;c<d;++c)(h=n.tween[c].value.call(e,e.__data__,n.index,n.group))&&(o[++f]=h);o.length=f+1}}function a(u){for(var c=u<n.duration?n.ease.call(null,u/n.duration):(n.timer.restart(l),n.state=Hf,1),f=-1,d=o.length;++f<d;)o[f].call(e,c);n.state===Hf&&(n.on.call("end",e,e.__data__,n.index,n.group),l())}function l(){n.state=Ma,n.timer.stop(),delete r[t];for(var u in r)return;delete e.__transition}}function Ra(e,t){var n=e.__transition,r,o,i=!0,s;if(n){t=t==null?null:t+"";for(s in n){if((r=n[s]).name!==t){i=!1;continue}o=r.state>Uf&&r.state<Hf,r.state=Ma,r.timer.stop(),r.on.call(o?"interrupt":"cancel",e,e.__data__,r.index,r.group),delete n[s]}i&&delete e.__transition}}function y$(e){return this.each(function(){Ra(this,e)})}function v$(e,t){var n,r;return function(){var o=Zt(this,e),i=o.tween;if(i!==n){r=n=i;for(var s=0,a=r.length;s<a;++s)if(r[s].name===t){r=r.slice(),r.splice(s,1);break}}o.tween=r}}function w$(e,t,n){var r,o;if(typeof n!="function")throw new Error;return function(){var i=Zt(this,e),s=i.tween;if(s!==r){o=(r=s).slice();for(var a={name:t,value:n},l=0,u=o.length;l<u;++l)if(o[l].name===t){o[l]=a;break}l===u&&o.push(a)}i.tween=o}}function x$(e,t){var n=this._id;if(e+="",arguments.length<2){for(var r=It(this.node(),n).tween,o=0,i=r.length,s;o<i;++o)if((s=r[o]).name===e)return s.value;return null}return this.each((t==null?v$:w$)(n,e,t))}function Mh(e,t,n){var r=e._id;return e.each(function(){var o=Zt(this,r);(o.value||(o.value={}))[t]=n.apply(this,arguments)}),function(o){return It(o,r).value[t]}}function Sx(e,t){var n;return(typeof t=="number"?Nn:t instanceof cs?Kg:(n=cs(t))?(t=n,Kg):t$)(e,t)}function S$(e){return function(){this.removeAttribute(e)}}function b$(e){return function(){this.removeAttributeNS(e.space,e.local)}}function E$(e,t,n){var r,o=n+"",i;return function(){var s=this.getAttribute(e);return s===o?null:s===r?i:i=t(r=s,n)}}function _$(e,t,n){var r,o=n+"",i;return function(){var s=this.getAttributeNS(e.space,e.local);return s===o?null:s===r?i:i=t(r=s,n)}}function C$(e,t,n){var r,o,i;return function(){var s,a=n(this),l;return a==null?void this.removeAttribute(e):(s=this.getAttribute(e),l=a+"",s===l?null:s===r&&l===o?i:(o=l,i=t(r=s,a)))}}function k$(e,t,n){var r,o,i;return function(){var s,a=n(this),l;return a==null?void this.removeAttributeNS(e.space,e.local):(s=this.getAttributeNS(e.space,e.local),l=a+"",s===l?null:s===r&&l===o?i:(o=l,i=t(r=s,a)))}}function T$(e,t){var n=ou(e),r=n==="transform"?i$:Sx;return this.attrTween(e,typeof t=="function"?(n.local?k$:C$)(n,r,Mh(this,"attr."+e,t)):t==null?(n.local?b$:S$)(n):(n.local?_$:E$)(n,r,t))}function P$(e,t){return function(n){this.setAttribute(e,t.call(this,n))}}function N$(e,t){return function(n){this.setAttributeNS(e.space,e.local,t.call(this,n))}}function A$(e,t){var n,r;function o(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&N$(e,i)),n}return o._value=t,o}function M$(e,t){var n,r;function o(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&P$(e,i)),n}return o._value=t,o}function R$(e,t){var n="attr."+e;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(t==null)return this.tween(n,null);if(typeof t!="function")throw new Error;var r=ou(e);return this.tween(n,(r.local?A$:M$)(r,t))}function $$(e,t){return function(){Ah(this,e).delay=+t.apply(this,arguments)}}function L$(e,t){return t=+t,function(){Ah(this,e).delay=t}}function D$(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?$$:L$)(t,e)):It(this.node(),t).delay}function O$(e,t){return function(){Zt(this,e).duration=+t.apply(this,arguments)}}function V$(e,t){return t=+t,function(){Zt(this,e).duration=t}}function I$(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?O$:V$)(t,e)):It(this.node(),t).duration}function z$(e,t){if(typeof t!="function")throw new Error;return function(){Zt(this,e).ease=t}}function B$(e){var t=this._id;return arguments.length?this.each(z$(t,e)):It(this.node(),t).ease}function F$(e,t){return function(){var n=t.apply(this,arguments);if(typeof n!="function")throw new Error;Zt(this,e).ease=n}}function j$(e){if(typeof e!="function")throw new Error;return this.each(F$(this._id,e))}function U$(e){typeof e!="function"&&(e=J1(e));for(var t=this._groups,n=t.length,r=new Array(n),o=0;o<n;++o)for(var i=t[o],s=i.length,a=r[o]=[],l,u=0;u<s;++u)(l=i[u])&&e.call(l,l.__data__,u,i)&&a.push(l);return new gn(r,this._parents,this._name,this._id)}function H$(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,n=e._groups,r=t.length,o=n.length,i=Math.min(r,o),s=new Array(r),a=0;a<i;++a)for(var l=t[a],u=n[a],c=l.length,f=s[a]=new Array(c),d,h=0;h<c;++h)(d=l[h]||u[h])&&(f[h]=d);for(;a<r;++a)s[a]=t[a];return new gn(s,this._parents,this._name,this._id)}function W$(e){return(e+"").trim().split(/^|\s+/).every(function(t){var n=t.indexOf(".");return n>=0&&(t=t.slice(0,n)),!t||t==="start"})}function G$(e,t,n){var r,o,i=W$(t)?Ah:Zt;return function(){var s=i(this,e),a=s.on;a!==r&&(o=(r=a).copy()).on(t,n),s.on=o}}function K$(e,t){var n=this._id;return arguments.length<2?It(this.node(),n).on.on(e):this.each(G$(n,e,t))}function Y$(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}function X$(){return this.on("end.remove",Y$(this._id))}function q$(e){var t=this._name,n=this._id;typeof e!="function"&&(e=kh(e));for(var r=this._groups,o=r.length,i=new Array(o),s=0;s<o;++s)for(var a=r[s],l=a.length,u=i[s]=new Array(l),c,f,d=0;d<l;++d)(c=a[d])&&(f=e.call(c,c.__data__,d,a))&&("__data__"in c&&(f.__data__=c.__data__),u[d]=f,su(u[d],t,n,d,u,It(c,n)));return new gn(i,this._parents,t,n)}function Z$(e){var t=this._name,n=this._id;typeof e!="function"&&(e=Q1(e));for(var r=this._groups,o=r.length,i=[],s=[],a=0;a<o;++a)for(var l=r[a],u=l.length,c,f=0;f<u;++f)if(c=l[f]){for(var d=e.call(c,c.__data__,f,l),h,g=It(c,n),v=0,b=d.length;v<b;++v)(h=d[v])&&su(h,t,n,v,d,g);i.push(d),s.push(c)}return new gn(i,s,t,n)}var Q$=ks.prototype.constructor;function J$(){return new Q$(this._groups,this._parents)}function eL(e,t){var n,r,o;return function(){var i=jo(this,e),s=(this.style.removeProperty(e),jo(this,e));return i===s?null:i===n&&s===r?o:o=t(n=i,r=s)}}function bx(e){return function(){this.style.removeProperty(e)}}function tL(e,t,n){var r,o=n+"",i;return function(){var s=jo(this,e);return s===o?null:s===r?i:i=t(r=s,n)}}function nL(e,t,n){var r,o,i;return function(){var s=jo(this,e),a=n(this),l=a+"";return a==null&&(l=a=(this.style.removeProperty(e),jo(this,e))),s===l?null:s===r&&l===o?i:(o=l,i=t(r=s,a))}}function rL(e,t){var n,r,o,i="style."+t,s="end."+i,a;return function(){var l=Zt(this,e),u=l.on,c=l.value[i]==null?a||(a=bx(t)):void 0;(u!==n||o!==c)&&(r=(n=u).copy()).on(s,o=c),l.on=r}}function oL(e,t,n){var r=(e+="")=="transform"?o$:Sx;return t==null?this.styleTween(e,eL(e,r)).on("end.style."+e,bx(e)):typeof t=="function"?this.styleTween(e,nL(e,r,Mh(this,"style."+e,t))).each(rL(this._id,e)):this.styleTween(e,tL(e,r,t),n).on("end.style."+e,null)}function iL(e,t,n){return function(r){this.style.setProperty(e,t.call(this,r),n)}}function sL(e,t,n){var r,o;function i(){var s=t.apply(this,arguments);return s!==o&&(r=(o=s)&&iL(e,s,n)),r}return i._value=t,i}function aL(e,t,n){var r="style."+(e+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(t==null)return this.tween(r,null);if(typeof t!="function")throw new Error;return this.tween(r,sL(e,t,n??""))}function lL(e){return function(){this.textContent=e}}function uL(e){return function(){var t=e(this);this.textContent=t??""}}function cL(e){return this.tween("text",typeof e=="function"?uL(Mh(this,"text",e)):lL(e==null?"":e+""))}function fL(e){return function(t){this.textContent=e.call(this,t)}}function dL(e){var t,n;function r(){var o=e.apply(this,arguments);return o!==n&&(t=(n=o)&&fL(o)),t}return r._value=e,r}function hL(e){var t="text";if(arguments.length<1)return(t=this.tween(t))&&t._value;if(e==null)return this.tween(t,null);if(typeof e!="function")throw new Error;return this.tween(t,dL(e))}function pL(){for(var e=this._name,t=this._id,n=Ex(),r=this._groups,o=r.length,i=0;i<o;++i)for(var s=r[i],a=s.length,l,u=0;u<a;++u)if(l=s[u]){var c=It(l,t);su(l,e,n,u,s,{time:c.time+c.delay+c.duration,delay:0,duration:c.duration,ease:c.ease})}return new gn(r,this._parents,e,n)}function mL(){var e,t,n=this,r=n._id,o=n.size();return new Promise(function(i,s){var a={value:s},l={value:function(){--o===0&&i()}};n.each(function(){var u=Zt(this,r),c=u.on;c!==e&&(t=(e=c).copy(),t._.cancel.push(a),t._.interrupt.push(a),t._.end.push(l)),u.on=t}),o===0&&i()})}var gL=0;function gn(e,t,n,r){this._groups=e,this._parents=t,this._name=n,this._id=r}function Ex(){return++gL}var Qt=ks.prototype;gn.prototype={constructor:gn,select:q$,selectAll:Z$,selectChild:Qt.selectChild,selectChildren:Qt.selectChildren,filter:U$,merge:H$,selection:J$,transition:pL,call:Qt.call,nodes:Qt.nodes,node:Qt.node,size:Qt.size,empty:Qt.empty,each:Qt.each,on:K$,attr:T$,attrTween:R$,style:oL,styleTween:aL,text:cL,textTween:hL,remove:X$,tween:x$,delay:D$,duration:I$,ease:B$,easeVarying:j$,end:mL,[Symbol.iterator]:Qt[Symbol.iterator]};function yL(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var vL={time:null,delay:0,duration:250,ease:yL};function wL(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))throw new Error(`transition ${t} not found`);return n}function xL(e){var t,n;e instanceof gn?(t=e._id,e=e._name):(t=Ex(),(n=vL).time=Nh(),e=e==null?null:e+"");for(var r=this._groups,o=r.length,i=0;i<o;++i)for(var s=r[i],a=s.length,l,u=0;u<a;++u)(l=s[u])&&su(l,e,t,u,s,n||wL(l,t));return new gn(r,this._parents,e,t)}ks.prototype.interrupt=y$;ks.prototype.transition=xL;const sa=e=>()=>e;function SL(e,{sourceEvent:t,target:n,transform:r,dispatch:o}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},transform:{value:r,enumerable:!0,configurable:!0},_:{value:o}})}function sn(e,t,n){this.k=e,this.x=t,this.y=n}sn.prototype={constructor:sn,scale:function(e){return e===1?this:new sn(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new sn(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var Kn=new sn(1,0,0);sn.prototype;function uc(e){e.stopImmediatePropagation()}function hi(e){e.preventDefault(),e.stopImmediatePropagation()}function bL(e){return(!e.ctrlKey||e.type==="wheel")&&!e.button}function EL(){var e=this;return e instanceof SVGElement?(e=e.ownerSVGElement||e,e.hasAttribute("viewBox")?(e=e.viewBox.baseVal,[[e.x,e.y],[e.x+e.width,e.y+e.height]]):[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]):[[0,0],[e.clientWidth,e.clientHeight]]}function ey(){return this.__zoom||Kn}function _L(e){return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function CL(){return navigator.maxTouchPoints||"ontouchstart"in this}function kL(e,t,n){var r=e.invertX(t[0][0])-n[0][0],o=e.invertX(t[1][0])-n[1][0],i=e.invertY(t[0][1])-n[0][1],s=e.invertY(t[1][1])-n[1][1];return e.translate(o>r?(r+o)/2:Math.min(0,r)||Math.max(0,o),s>i?(i+s)/2:Math.min(0,i)||Math.max(0,s))}function TL(){var e=bL,t=EL,n=kL,r=_L,o=CL,i=[0,1/0],s=[[-1/0,-1/0],[1/0,1/0]],a=250,l=u$,u=ru("start","zoom","end"),c,f,d,h=500,g=150,v=0,b=10;function m(E){E.property("__zoom",ey).on("wheel.zoom",A,{passive:!1}).on("mousedown.zoom",z).on("dblclick.zoom",B).filter(o).on("touchstart.zoom",D).on("touchmove.zoom",O).on("touchend.zoom touchcancel.zoom",L).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}m.transform=function(E,M,k,V){var P=E.selection?E.selection():E;P.property("__zoom",ey),E!==P?_(E,M,k,V):P.interrupt().each(function(){T(this,arguments).event(V).start().zoom(null,typeof M=="function"?M.apply(this,arguments):M).end()})},m.scaleBy=function(E,M,k,V){m.scaleTo(E,function(){var P=this.__zoom.k,C=typeof M=="function"?M.apply(this,arguments):M;return P*C},k,V)},m.scaleTo=function(E,M,k,V){m.transform(E,function(){var P=t.apply(this,arguments),C=this.__zoom,$=k==null?w(P):typeof k=="function"?k.apply(this,arguments):k,x=C.invert($),R=typeof M=="function"?M.apply(this,arguments):M;return n(y(p(C,R),$,x),P,s)},k,V)},m.translateBy=function(E,M,k,V){m.transform(E,function(){return n(this.__zoom.translate(typeof M=="function"?M.apply(this,arguments):M,typeof k=="function"?k.apply(this,arguments):k),t.apply(this,arguments),s)},null,V)},m.translateTo=function(E,M,k,V,P){m.transform(E,function(){var C=t.apply(this,arguments),$=this.__zoom,x=V==null?w(C):typeof V=="function"?V.apply(this,arguments):V;return n(Kn.translate(x[0],x[1]).scale($.k).translate(typeof M=="function"?-M.apply(this,arguments):-M,typeof k=="function"?-k.apply(this,arguments):-k),C,s)},V,P)};function p(E,M){return M=Math.max(i[0],Math.min(i[1],M)),M===E.k?E:new sn(M,E.x,E.y)}function y(E,M,k){var V=M[0]-k[0]*E.k,P=M[1]-k[1]*E.k;return V===E.x&&P===E.y?E:new sn(E.k,V,P)}function w(E){return[(+E[0][0]+ +E[1][0])/2,(+E[0][1]+ +E[1][1])/2]}function _(E,M,k,V){E.on("start.zoom",function(){T(this,arguments).event(V).start()}).on("interrupt.zoom end.zoom",function(){T(this,arguments).event(V).end()}).tween("zoom",function(){var P=this,C=arguments,$=T(P,C).event(V),x=t.apply(P,C),R=k==null?w(x):typeof k=="function"?k.apply(P,C):k,F=Math.max(x[1][0]-x[0][0],x[1][1]-x[0][1]),U=P.__zoom,H=typeof M=="function"?M.apply(P,C):M,W=l(U.invert(R).concat(F/U.k),H.invert(R).concat(F/H.k));return function(K){if(K===1)K=H;else{var X=W(K),Z=F/X[2];K=new sn(Z,R[0]-X[0]*Z,R[1]-X[1]*Z)}$.zoom(null,K)}})}function T(E,M,k){return!k&&E.__zooming||new N(E,M)}function N(E,M){this.that=E,this.args=M,this.active=0,this.sourceEvent=null,this.extent=t.apply(E,M),this.taps=0}N.prototype={event:function(E){return E&&(this.sourceEvent=E),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(E,M){return this.mouse&&E!=="mouse"&&(this.mouse[1]=M.invert(this.mouse[0])),this.touch0&&E!=="touch"&&(this.touch0[1]=M.invert(this.touch0[0])),this.touch1&&E!=="touch"&&(this.touch1[1]=M.invert(this.touch1[0])),this.that.__zoom=M,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(E){var M=$t(this.that).datum();u.call(E,this.that,new SL(E,{sourceEvent:this.sourceEvent,target:m,type:E,transform:this.that.__zoom,dispatch:u}),M)}};function A(E,...M){if(!e.apply(this,arguments))return;var k=T(this,M).event(E),V=this.__zoom,P=Math.max(i[0],Math.min(i[1],V.k*Math.pow(2,r.apply(this,arguments)))),C=jt(E);if(k.wheel)(k.mouse[0][0]!==C[0]||k.mouse[0][1]!==C[1])&&(k.mouse[1]=V.invert(k.mouse[0]=C)),clearTimeout(k.wheel);else{if(V.k===P)return;k.mouse=[C,V.invert(C)],Ra(this),k.start()}hi(E),k.wheel=setTimeout($,g),k.zoom("mouse",n(y(p(V,P),k.mouse[0],k.mouse[1]),k.extent,s));function $(){k.wheel=null,k.end()}}function z(E,...M){if(d||!e.apply(this,arguments))return;var k=E.currentTarget,V=T(this,M,!0).event(E),P=$t(E.view).on("mousemove.zoom",R,!0).on("mouseup.zoom",F,!0),C=jt(E,k),$=E.clientX,x=E.clientY;ux(E.view),uc(E),V.mouse=[C,this.__zoom.invert(C)],Ra(this),V.start();function R(U){if(hi(U),!V.moved){var H=U.clientX-$,W=U.clientY-x;V.moved=H*H+W*W>v}V.event(U).zoom("mouse",n(y(V.that.__zoom,V.mouse[0]=jt(U,k),V.mouse[1]),V.extent,s))}function F(U){P.on("mousemove.zoom mouseup.zoom",null),cx(U.view,V.moved),hi(U),V.event(U).end()}}function B(E,...M){if(e.apply(this,arguments)){var k=this.__zoom,V=jt(E.changedTouches?E.changedTouches[0]:E,this),P=k.invert(V),C=k.k*(E.shiftKey?.5:2),$=n(y(p(k,C),V,P),t.apply(this,M),s);hi(E),a>0?$t(this).transition().duration(a).call(_,$,V,E):$t(this).call(m.transform,$,V,E)}}function D(E,...M){if(e.apply(this,arguments)){var k=E.touches,V=k.length,P=T(this,M,E.changedTouches.length===V).event(E),C,$,x,R;for(uc(E),$=0;$<V;++$)x=k[$],R=jt(x,this),R=[R,this.__zoom.invert(R),x.identifier],P.touch0?!P.touch1&&P.touch0[2]!==R[2]&&(P.touch1=R,P.taps=0):(P.touch0=R,C=!0,P.taps=1+!!c);c&&(c=clearTimeout(c)),C&&(P.taps<2&&(f=R[0],c=setTimeout(function(){c=null},h)),Ra(this),P.start())}}function O(E,...M){if(this.__zooming){var k=T(this,M).event(E),V=E.changedTouches,P=V.length,C,$,x,R;for(hi(E),C=0;C<P;++C)$=V[C],x=jt($,this),k.touch0&&k.touch0[2]===$.identifier?k.touch0[0]=x:k.touch1&&k.touch1[2]===$.identifier&&(k.touch1[0]=x);if($=k.that.__zoom,k.touch1){var F=k.touch0[0],U=k.touch0[1],H=k.touch1[0],W=k.touch1[1],K=(K=H[0]-F[0])*K+(K=H[1]-F[1])*K,X=(X=W[0]-U[0])*X+(X=W[1]-U[1])*X;$=p($,Math.sqrt(K/X)),x=[(F[0]+H[0])/2,(F[1]+H[1])/2],R=[(U[0]+W[0])/2,(U[1]+W[1])/2]}else if(k.touch0)x=k.touch0[0],R=k.touch0[1];else return;k.zoom("touch",n(y($,x,R),k.extent,s))}}function L(E,...M){if(this.__zooming){var k=T(this,M).event(E),V=E.changedTouches,P=V.length,C,$;for(uc(E),d&&clearTimeout(d),d=setTimeout(function(){d=null},h),C=0;C<P;++C)$=V[C],k.touch0&&k.touch0[2]===$.identifier?delete k.touch0:k.touch1&&k.touch1[2]===$.identifier&&delete k.touch1;if(k.touch1&&!k.touch0&&(k.touch0=k.touch1,delete k.touch1),k.touch0)k.touch0[1]=this.__zoom.invert(k.touch0[0]);else if(k.end(),k.taps===2&&($=jt($,this),Math.hypot(f[0]-$[0],f[1]-$[1])<b)){var x=$t(this).on("dblclick.zoom");x&&x.apply(this,arguments)}}}return m.wheelDelta=function(E){return arguments.length?(r=typeof E=="function"?E:sa(+E),m):r},m.filter=function(E){return arguments.length?(e=typeof E=="function"?E:sa(!!E),m):e},m.touchable=function(E){return arguments.length?(o=typeof E=="function"?E:sa(!!E),m):o},m.extent=function(E){return arguments.length?(t=typeof E=="function"?E:sa([[+E[0][0],+E[0][1]],[+E[1][0],+E[1][1]]]),m):t},m.scaleExtent=function(E){return arguments.length?(i[0]=+E[0],i[1]=+E[1],m):[i[0],i[1]]},m.translateExtent=function(E){return arguments.length?(s[0][0]=+E[0][0],s[1][0]=+E[1][0],s[0][1]=+E[0][1],s[1][1]=+E[1][1],m):[[s[0][0],s[0][1]],[s[1][0],s[1][1]]]},m.constrain=function(E){return arguments.length?(n=E,m):n},m.duration=function(E){return arguments.length?(a=+E,m):a},m.interpolate=function(E){return arguments.length?(l=E,m):l},m.on=function(){var E=u.on.apply(u,arguments);return E===u?m:E},m.clickDistance=function(E){return arguments.length?(v=(E=+E)*E,m):Math.sqrt(v)},m.tapDistance=function(E){return arguments.length?(b=+E,m):b},m}const au=S.createContext(null),PL=au.Provider,yn={error001:()=>"[React Flow]: Seems like you have not used zustand provider as an ancestor. Help: https://reactflow.dev/error#001",error002:()=>"It looks like you've created a new nodeTypes or edgeTypes object. If this wasn't on purpose please define the nodeTypes/edgeTypes outside of the component or memoize them.",error003:e=>`Node type "${e}" not found. Using fallback type "default".`,error004:()=>"The React Flow parent container needs a width and a height to render the graph.",error005:()=>"Only child nodes can use a parent extent.",error006:()=>"Can't create edge. An edge needs a source and a target.",error007:e=>`The old edge with id=${e} does not exist.`,error009:e=>`Marker type "${e}" doesn't exist.`,error008:(e,t)=>`Couldn't create edge for ${e?"target":"source"} handle id: "${e?t.targetHandle:t.sourceHandle}", edge id: ${t.id}.`,error010:()=>"Handle: No node id found. Make sure to only use a Handle inside a custom Node.",error011:e=>`Edge type "${e}" not found. Using fallback type "default".`,error012:e=>`Node with id "${e}" does not exist, it may have been removed. This can happen when a node is deleted before the "onNodeClick" handler is called.`},_x=yn.error001();function _e(e,t){const n=S.useContext(au);if(n===null)throw new Error(_x);return q1(n,e,t)}const Ie=()=>{const e=S.useContext(au);if(e===null)throw new Error(_x);return S.useMemo(()=>({getState:e.getState,setState:e.setState,subscribe:e.subscribe,destroy:e.destroy}),[e])},NL=e=>e.userSelectionActive?"none":"all";function AL({position:e,children:t,className:n,style:r,...o}){const i=_e(NL),s=`${e}`.split("-");return I.jsx("div",{className:kt(["react-flow__panel",n,...s]),style:{...r,pointerEvents:i},...o,children:t})}function ML({proOptions:e,position:t="bottom-right"}){return e!=null&&e.hideAttribution?null:I.jsx(AL,{position:t,className:"react-flow__attribution","data-message":"Please only hide this attribution when you are subscribed to React Flow Pro: https://pro.reactflow.dev",children:I.jsx("a",{href:"https://reactflow.dev",target:"_blank",rel:"noopener noreferrer","aria-label":"React Flow attribution",children:"React Flow"})})}const RL=({x:e,y:t,label:n,labelStyle:r={},labelShowBg:o=!0,labelBgStyle:i={},labelBgPadding:s=[2,4],labelBgBorderRadius:a=2,children:l,className:u,...c})=>{const f=S.useRef(null),[d,h]=S.useState({x:0,y:0,width:0,height:0}),g=kt(["react-flow__edge-textwrapper",u]);return S.useEffect(()=>{if(f.current){const v=f.current.getBBox();h({x:v.x,y:v.y,width:v.width,height:v.height})}},[n]),typeof n>"u"||!n?null:I.jsxs("g",{transform:`translate(${e-d.width/2} ${t-d.height/2})`,className:g,visibility:d.width?"visible":"hidden",...c,children:[o&&I.jsx("rect",{width:d.width+2*s[0],x:-s[0],y:-s[1],height:d.height+2*s[1],className:"react-flow__edge-textbg",style:i,rx:a,ry:a}),I.jsx("text",{className:"react-flow__edge-text",y:d.height/2,dy:"0.3em",ref:f,style:r,children:n}),l]})};var $L=S.memo(RL);const Rh=e=>({width:e.offsetWidth,height:e.offsetHeight}),Ho=(e,t=0,n=1)=>Math.min(Math.max(e,t),n),$h=(e={x:0,y:0},t)=>({x:Ho(e.x,t[0][0],t[1][0]),y:Ho(e.y,t[0][1],t[1][1])}),ty=(e,t,n)=>e<t?Ho(Math.abs(e-t),1,50)/50:e>n?-Ho(Math.abs(e-n),1,50)/50:0,Cx=(e,t)=>{const n=ty(e.x,35,t.width-35)*20,r=ty(e.y,35,t.height-35)*20;return[n,r]},kx=e=>{var t;return((t=e.getRootNode)==null?void 0:t.call(e))||(window==null?void 0:window.document)},LL=(e,t)=>({x:Math.min(e.x,t.x),y:Math.min(e.y,t.y),x2:Math.max(e.x2,t.x2),y2:Math.max(e.y2,t.y2)}),Lh=({x:e,y:t,width:n,height:r})=>({x:e,y:t,x2:e+n,y2:t+r}),DL=({x:e,y:t,x2:n,y2:r})=>({x:e,y:t,width:n-e,height:r-t}),ny=e=>({...e.positionAbsolute||{x:0,y:0},width:e.width||0,height:e.height||0}),Wf=(e,t)=>{const n=Math.max(0,Math.min(e.x+e.width,t.x+t.width)-Math.max(e.x,t.x)),r=Math.max(0,Math.min(e.y+e.height,t.y+t.height)-Math.max(e.y,t.y));return Math.ceil(n*r)},OL=e=>bt(e.width)&&bt(e.height)&&bt(e.x)&&bt(e.y),bt=e=>!isNaN(e)&&isFinite(e),Me=Symbol.for("internals"),Tx=["Enter"," ","Escape"],VL=(e,t)=>{},IL=e=>"nativeEvent"in e;function Gf(e){var o,i;const t=IL(e)?e.nativeEvent:e,n=((i=(o=t.composedPath)==null?void 0:o.call(t))==null?void 0:i[0])||e.target;return["INPUT","SELECT","TEXTAREA"].includes(n==null?void 0:n.nodeName)||(n==null?void 0:n.hasAttribute("contenteditable"))||!!(n!=null&&n.closest(".nokey"))}const Px=e=>"clientX"in e,Yn=(e,t)=>{var i,s;const n=Px(e),r=n?e.clientX:(i=e.touches)==null?void 0:i[0].clientX,o=n?e.clientY:(s=e.touches)==null?void 0:s[0].clientY;return{x:r-((t==null?void 0:t.left)??0),y:o-((t==null?void 0:t.top)??0)}},kl=()=>{var e;return typeof navigator<"u"&&((e=navigator==null?void 0:navigator.userAgent)==null?void 0:e.indexOf("Mac"))>=0},Ps=({id:e,path:t,labelX:n,labelY:r,label:o,labelStyle:i,labelShowBg:s,labelBgStyle:a,labelBgPadding:l,labelBgBorderRadius:u,style:c,markerEnd:f,markerStart:d,interactionWidth:h=20})=>I.jsxs(I.Fragment,{children:[I.jsx("path",{id:e,style:c,d:t,fill:"none",className:"react-flow__edge-path",markerEnd:f,markerStart:d}),h&&I.jsx("path",{d:t,fill:"none",strokeOpacity:0,strokeWidth:h,className:"react-flow__edge-interaction"}),o&&bt(n)&&bt(r)?I.jsx($L,{x:n,y:r,label:o,labelStyle:i,labelShowBg:s,labelBgStyle:a,labelBgPadding:l,labelBgBorderRadius:u}):null]});Ps.displayName="BaseEdge";function pi(e,t,n){return n===void 0?n:r=>{const o=t().edges.find(i=>i.id===e);o&&n(r,{...o})}}function Nx({sourceX:e,sourceY:t,targetX:n,targetY:r}){const o=Math.abs(n-e)/2,i=n<e?n+o:n-o,s=Math.abs(r-t)/2,a=r<t?r+s:r-s;return[i,a,o,s]}function Ax({sourceX:e,sourceY:t,targetX:n,targetY:r,sourceControlX:o,sourceControlY:i,targetControlX:s,targetControlY:a}){const l=e*.125+o*.375+s*.375+n*.125,u=t*.125+i*.375+a*.375+r*.125,c=Math.abs(l-e),f=Math.abs(u-t);return[l,u,c,f]}var Ir;(function(e){e.Strict="strict",e.Loose="loose"})(Ir||(Ir={}));var kr;(function(e){e.Free="free",e.Vertical="vertical",e.Horizontal="horizontal"})(kr||(kr={}));var ds;(function(e){e.Partial="partial",e.Full="full"})(ds||(ds={}));var $n;(function(e){e.Bezier="default",e.Straight="straight",e.Step="step",e.SmoothStep="smoothstep",e.SimpleBezier="simplebezier"})($n||($n={}));var Tl;(function(e){e.Arrow="arrow",e.ArrowClosed="arrowclosed"})(Tl||(Tl={}));var Y;(function(e){e.Left="left",e.Top="top",e.Right="right",e.Bottom="bottom"})(Y||(Y={}));function ry({pos:e,x1:t,y1:n,x2:r,y2:o}){return e===Y.Left||e===Y.Right?[.5*(t+r),n]:[t,.5*(n+o)]}function Mx({sourceX:e,sourceY:t,sourcePosition:n=Y.Bottom,targetX:r,targetY:o,targetPosition:i=Y.Top}){const[s,a]=ry({pos:n,x1:e,y1:t,x2:r,y2:o}),[l,u]=ry({pos:i,x1:r,y1:o,x2:e,y2:t}),[c,f,d,h]=Ax({sourceX:e,sourceY:t,targetX:r,targetY:o,sourceControlX:s,sourceControlY:a,targetControlX:l,targetControlY:u});return[`M${e},${t} C${s},${a} ${l},${u} ${r},${o}`,c,f,d,h]}const Dh=S.memo(({sourceX:e,sourceY:t,targetX:n,targetY:r,sourcePosition:o=Y.Bottom,targetPosition:i=Y.Top,label:s,labelStyle:a,labelShowBg:l,labelBgStyle:u,labelBgPadding:c,labelBgBorderRadius:f,style:d,markerEnd:h,markerStart:g,interactionWidth:v})=>{const[b,m,p]=Mx({sourceX:e,sourceY:t,sourcePosition:o,targetX:n,targetY:r,targetPosition:i});return I.jsx(Ps,{path:b,labelX:m,labelY:p,label:s,labelStyle:a,labelShowBg:l,labelBgStyle:u,labelBgPadding:c,labelBgBorderRadius:f,style:d,markerEnd:h,markerStart:g,interactionWidth:v})});Dh.displayName="SimpleBezierEdge";const oy={[Y.Left]:{x:-1,y:0},[Y.Right]:{x:1,y:0},[Y.Top]:{x:0,y:-1},[Y.Bottom]:{x:0,y:1}},zL=({source:e,sourcePosition:t=Y.Bottom,target:n})=>t===Y.Left||t===Y.Right?e.x<n.x?{x:1,y:0}:{x:-1,y:0}:e.y<n.y?{x:0,y:1}:{x:0,y:-1},iy=(e,t)=>Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2));function BL({source:e,sourcePosition:t=Y.Bottom,target:n,targetPosition:r=Y.Top,center:o,offset:i}){const s=oy[t],a=oy[r],l={x:e.x+s.x*i,y:e.y+s.y*i},u={x:n.x+a.x*i,y:n.y+a.y*i},c=zL({source:l,sourcePosition:t,target:u}),f=c.x!==0?"x":"y",d=c[f];let h=[],g,v;const b={x:0,y:0},m={x:0,y:0},[p,y,w,_]=Nx({sourceX:e.x,sourceY:e.y,targetX:n.x,targetY:n.y});if(s[f]*a[f]===-1){g=o.x||p,v=o.y||y;const N=[{x:g,y:l.y},{x:g,y:u.y}],A=[{x:l.x,y:v},{x:u.x,y:v}];s[f]===d?h=f==="x"?N:A:h=f==="x"?A:N}else{const N=[{x:l.x,y:u.y}],A=[{x:u.x,y:l.y}];if(f==="x"?h=s.x===d?A:N:h=s.y===d?N:A,t===r){const L=Math.abs(e[f]-n[f]);if(L<=i){const E=Math.min(i-1,i-L);s[f]===d?b[f]=(l[f]>e[f]?-1:1)*E:m[f]=(u[f]>n[f]?-1:1)*E}}if(t!==r){const L=f==="x"?"y":"x",E=s[f]===a[L],M=l[L]>u[L],k=l[L]<u[L];(s[f]===1&&(!E&&M||E&&k)||s[f]!==1&&(!E&&k||E&&M))&&(h=f==="x"?N:A)}const z={x:l.x+b.x,y:l.y+b.y},B={x:u.x+m.x,y:u.y+m.y},D=Math.max(Math.abs(z.x-h[0].x),Math.abs(B.x-h[0].x)),O=Math.max(Math.abs(z.y-h[0].y),Math.abs(B.y-h[0].y));D>=O?(g=(z.x+B.x)/2,v=h[0].y):(g=h[0].x,v=(z.y+B.y)/2)}return[[e,{x:l.x+b.x,y:l.y+b.y},...h,{x:u.x+m.x,y:u.y+m.y},n],g,v,w,_]}function FL(e,t,n,r){const o=Math.min(iy(e,t)/2,iy(t,n)/2,r),{x:i,y:s}=t;if(e.x===i&&i===n.x||e.y===s&&s===n.y)return`L${i} ${s}`;if(e.y===s){const u=e.x<n.x?-1:1,c=e.y<n.y?1:-1;return`L ${i+o*u},${s}Q ${i},${s} ${i},${s+o*c}`}const a=e.x<n.x?1:-1,l=e.y<n.y?-1:1;return`L ${i},${s+o*l}Q ${i},${s} ${i+o*a},${s}`}function Kf({sourceX:e,sourceY:t,sourcePosition:n=Y.Bottom,targetX:r,targetY:o,targetPosition:i=Y.Top,borderRadius:s=5,centerX:a,centerY:l,offset:u=20}){const[c,f,d,h,g]=BL({source:{x:e,y:t},sourcePosition:n,target:{x:r,y:o},targetPosition:i,center:{x:a,y:l},offset:u});return[c.reduce((b,m,p)=>{let y="";return p>0&&p<c.length-1?y=FL(c[p-1],m,c[p+1],s):y=`${p===0?"M":"L"}${m.x} ${m.y}`,b+=y,b},""),f,d,h,g]}const lu=S.memo(({sourceX:e,sourceY:t,targetX:n,targetY:r,label:o,labelStyle:i,labelShowBg:s,labelBgStyle:a,labelBgPadding:l,labelBgBorderRadius:u,style:c,sourcePosition:f=Y.Bottom,targetPosition:d=Y.Top,markerEnd:h,markerStart:g,pathOptions:v,interactionWidth:b})=>{const[m,p,y]=Kf({sourceX:e,sourceY:t,sourcePosition:f,targetX:n,targetY:r,targetPosition:d,borderRadius:v==null?void 0:v.borderRadius,offset:v==null?void 0:v.offset});return I.jsx(Ps,{path:m,labelX:p,labelY:y,label:o,labelStyle:i,labelShowBg:s,labelBgStyle:a,labelBgPadding:l,labelBgBorderRadius:u,style:c,markerEnd:h,markerStart:g,interactionWidth:b})});lu.displayName="SmoothStepEdge";const Oh=S.memo(e=>{var t;return I.jsx(lu,{...e,pathOptions:S.useMemo(()=>{var n;return{borderRadius:0,offset:(n=e.pathOptions)==null?void 0:n.offset}},[(t=e.pathOptions)==null?void 0:t.offset])})});Oh.displayName="StepEdge";function jL({sourceX:e,sourceY:t,targetX:n,targetY:r}){const[o,i,s,a]=Nx({sourceX:e,sourceY:t,targetX:n,targetY:r});return[`M ${e},${t}L ${n},${r}`,o,i,s,a]}const Vh=S.memo(({sourceX:e,sourceY:t,targetX:n,targetY:r,label:o,labelStyle:i,labelShowBg:s,labelBgStyle:a,labelBgPadding:l,labelBgBorderRadius:u,style:c,markerEnd:f,markerStart:d,interactionWidth:h})=>{const[g,v,b]=jL({sourceX:e,sourceY:t,targetX:n,targetY:r});return I.jsx(Ps,{path:g,labelX:v,labelY:b,label:o,labelStyle:i,labelShowBg:s,labelBgStyle:a,labelBgPadding:l,labelBgBorderRadius:u,style:c,markerEnd:f,markerStart:d,interactionWidth:h})});Vh.displayName="StraightEdge";function aa(e,t){return e>=0?.5*e:t*25*Math.sqrt(-e)}function sy({pos:e,x1:t,y1:n,x2:r,y2:o,c:i}){switch(e){case Y.Left:return[t-aa(t-r,i),n];case Y.Right:return[t+aa(r-t,i),n];case Y.Top:return[t,n-aa(n-o,i)];case Y.Bottom:return[t,n+aa(o-n,i)]}}function Rx({sourceX:e,sourceY:t,sourcePosition:n=Y.Bottom,targetX:r,targetY:o,targetPosition:i=Y.Top,curvature:s=.25}){const[a,l]=sy({pos:n,x1:e,y1:t,x2:r,y2:o,c:s}),[u,c]=sy({pos:i,x1:r,y1:o,x2:e,y2:t,c:s}),[f,d,h,g]=Ax({sourceX:e,sourceY:t,targetX:r,targetY:o,sourceControlX:a,sourceControlY:l,targetControlX:u,targetControlY:c});return[`M${e},${t} C${a},${l} ${u},${c} ${r},${o}`,f,d,h,g]}const Pl=S.memo(({sourceX:e,sourceY:t,targetX:n,targetY:r,sourcePosition:o=Y.Bottom,targetPosition:i=Y.Top,label:s,labelStyle:a,labelShowBg:l,labelBgStyle:u,labelBgPadding:c,labelBgBorderRadius:f,style:d,markerEnd:h,markerStart:g,pathOptions:v,interactionWidth:b})=>{const[m,p,y]=Rx({sourceX:e,sourceY:t,sourcePosition:o,targetX:n,targetY:r,targetPosition:i,curvature:v==null?void 0:v.curvature});return I.jsx(Ps,{path:m,labelX:p,labelY:y,label:s,labelStyle:a,labelShowBg:l,labelBgStyle:u,labelBgPadding:c,labelBgBorderRadius:f,style:d,markerEnd:h,markerStart:g,interactionWidth:b})});Pl.displayName="BezierEdge";const Ih=S.createContext(null),UL=Ih.Provider;Ih.Consumer;const HL=()=>S.useContext(Ih),WL=e=>"id"in e&&"source"in e&&"target"in e,GL=({source:e,sourceHandle:t,target:n,targetHandle:r})=>`reactflow__edge-${e}${t||""}-${n}${r||""}`,Yf=(e,t)=>typeof e>"u"?"":typeof e=="string"?e:`${t?`${t}__`:""}${Object.keys(e).sort().map(r=>`${r}=${e[r]}`).join("&")}`,KL=(e,t)=>t.some(n=>n.source===e.source&&n.target===e.target&&(n.sourceHandle===e.sourceHandle||!n.sourceHandle&&!e.sourceHandle)&&(n.targetHandle===e.targetHandle||!n.targetHandle&&!e.targetHandle)),YL=(e,t)=>{if(!e.source||!e.target)return t;let n;return WL(e)?n={...e}:n={...e,id:GL(e)},KL(n,t)?t:t.concat(n)},$x=({x:e,y:t},[n,r,o],i,[s,a])=>{const l={x:(e-n)/o,y:(t-r)/o};return i?{x:s*Math.round(l.x/s),y:a*Math.round(l.y/a)}:l},XL=({x:e,y:t},[n,r,o])=>({x:e*o+n,y:t*o+r}),Ao=(e,t=[0,0])=>{if(!e)return{x:0,y:0,positionAbsolute:{x:0,y:0}};const n=(e.width??0)*t[0],r=(e.height??0)*t[1],o={x:e.position.x-n,y:e.position.y-r};return{...o,positionAbsolute:e.positionAbsolute?{x:e.positionAbsolute.x-n,y:e.positionAbsolute.y-r}:o}},zh=(e,t=[0,0])=>{if(e.length===0)return{x:0,y:0,width:0,height:0};const n=e.reduce((r,o)=>{const{x:i,y:s}=Ao(o,t).positionAbsolute;return LL(r,Lh({x:i,y:s,width:o.width||0,height:o.height||0}))},{x:1/0,y:1/0,x2:-1/0,y2:-1/0});return DL(n)},Lx=(e,t,[n,r,o]=[0,0,1],i=!1,s=!1,a=[0,0])=>{const l={x:(t.x-n)/o,y:(t.y-r)/o,width:t.width/o,height:t.height/o},u=[];return e.forEach(c=>{const{width:f,height:d,selectable:h=!0,hidden:g=!1}=c;if(s&&!h||g)return!1;const{positionAbsolute:v}=Ao(c,a),b={x:v.x,y:v.y,width:f||0,height:d||0},m=Wf(l,b),p=typeof f>"u"||typeof d>"u"||f===null||d===null,y=i&&m>0,w=(f||0)*(d||0);(p||y||m>=w||c.dragging)&&u.push(c)}),u},Dx=(e,t)=>{const n=e.map(r=>r.id);return t.filter(r=>n.includes(r.source)||n.includes(r.target))},Ox=(e,t,n,r,o,i=.1)=>{const s=t/(e.width*(1+i)),a=n/(e.height*(1+i)),l=Math.min(s,a),u=Ho(l,r,o),c=e.x+e.width/2,f=e.y+e.height/2,d=t/2-c*u,h=n/2-f*u;return[d,h,u]},vr=(e,t=0)=>e.transition().duration(t);function ay(e,t,n,r){return(t[n]||[]).reduce((o,i)=>{var s,a;return`${e.id}-${i.id}-${n}`!==r&&o.push({id:i.id||null,type:n,nodeId:e.id,x:(((s=e.positionAbsolute)==null?void 0:s.x)??0)+i.x+i.width/2,y:(((a=e.positionAbsolute)==null?void 0:a.y)??0)+i.y+i.height/2}),o},[])}function qL(e,t,n,r,o,i){const{x:s,y:a}=Yn(e),u=t.elementsFromPoint(s,a).find(g=>g.classList.contains("react-flow__handle"));if(u){const g=u.getAttribute("data-nodeid");if(g){const v=Bh(void 0,u),b=u.getAttribute("data-handleid"),m=i({nodeId:g,id:b,type:v});if(m)return{handle:{id:b,type:v,nodeId:g,x:n.x,y:n.y},validHandleResult:m}}}let c=[],f=1/0;if(o.forEach(g=>{const v=Math.sqrt((g.x-n.x)**2+(g.y-n.y)**2);if(v<=r){const b=i(g);v<=f&&(v<f?c=[{handle:g,validHandleResult:b}]:v===f&&c.push({handle:g,validHandleResult:b}),f=v)}}),!c.length)return{handle:null,validHandleResult:Vx()};if(c.length===1)return c[0];const d=c.some(({validHandleResult:g})=>g.isValid),h=c.some(({handle:g})=>g.type==="target");return c.find(({handle:g,validHandleResult:v})=>h?g.type==="target":d?v.isValid:!0)||c[0]}const ZL={source:null,target:null,sourceHandle:null,targetHandle:null},Vx=()=>({handleDomNode:null,isValid:!1,connection:ZL,endHandle:null});function Ix(e,t,n,r,o,i,s){const a=o==="target",l=s.querySelector(`.react-flow__handle[data-id="${e==null?void 0:e.nodeId}-${e==null?void 0:e.id}-${e==null?void 0:e.type}"]`),u={...Vx(),handleDomNode:l};if(l){const c=Bh(void 0,l),f=l.getAttribute("data-nodeid"),d=l.getAttribute("data-handleid"),h=l.classList.contains("connectable"),g=l.classList.contains("connectableend"),v={source:a?f:n,sourceHandle:a?d:r,target:a?n:f,targetHandle:a?r:d};u.connection=v,h&&g&&(t===Ir.Strict?a&&c==="source"||!a&&c==="target":f!==n||d!==r)&&(u.endHandle={nodeId:f,handleId:d,type:c},u.isValid=i(v))}return u}function QL({nodes:e,nodeId:t,handleId:n,handleType:r}){return e.reduce((o,i)=>{if(i[Me]){const{handleBounds:s}=i[Me];let a=[],l=[];s&&(a=ay(i,s,"source",`${t}-${n}-${r}`),l=ay(i,s,"target",`${t}-${n}-${r}`)),o.push(...a,...l)}return o},[])}function Bh(e,t){return e||(t!=null&&t.classList.contains("target")?"target":t!=null&&t.classList.contains("source")?"source":null)}function cc(e){e==null||e.classList.remove("valid","connecting","react-flow__handle-valid","react-flow__handle-connecting")}function JL(e,t){let n=null;return t?n="valid":e&&!t&&(n="invalid"),n}function zx({event:e,handleId:t,nodeId:n,onConnect:r,isTarget:o,getState:i,setState:s,isValidConnection:a,edgeUpdaterType:l,onEdgeUpdateEnd:u}){const c=kx(e.target),{connectionMode:f,domNode:d,autoPanOnConnect:h,connectionRadius:g,onConnectStart:v,panBy:b,getNodes:m,cancelConnection:p}=i();let y=0,w;const{x:_,y:T}=Yn(e),N=c==null?void 0:c.elementFromPoint(_,T),A=Bh(l,N),z=d==null?void 0:d.getBoundingClientRect();if(!z||!A)return;let B,D=Yn(e,z),O=!1,L=null,E=!1,M=null;const k=QL({nodes:m(),nodeId:n,handleId:t,handleType:A}),V=()=>{if(!h)return;const[$,x]=Cx(D,z);b({x:$,y:x}),y=requestAnimationFrame(V)};s({connectionPosition:D,connectionStatus:null,connectionNodeId:n,connectionHandleId:t,connectionHandleType:A,connectionStartHandle:{nodeId:n,handleId:t,type:A},connectionEndHandle:null}),v==null||v(e,{nodeId:n,handleId:t,handleType:A});function P($){const{transform:x}=i();D=Yn($,z);const{handle:R,validHandleResult:F}=qL($,c,$x(D,x,!1,[1,1]),g,k,U=>Ix(U,f,n,t,o?"target":"source",a,c));if(w=R,O||(V(),O=!0),M=F.handleDomNode,L=F.connection,E=F.isValid,s({connectionPosition:w&&E?XL({x:w.x,y:w.y},x):D,connectionStatus:JL(!!w,E),connectionEndHandle:F.endHandle}),!w&&!E&&!M)return cc(B);L.source!==L.target&&M&&(cc(B),B=M,M.classList.add("connecting","react-flow__handle-connecting"),M.classList.toggle("valid",E),M.classList.toggle("react-flow__handle-valid",E))}function C($){var x,R;(w||M)&&L&&E&&(r==null||r(L)),(R=(x=i()).onConnectEnd)==null||R.call(x,$),l&&(u==null||u($)),cc(B),p(),cancelAnimationFrame(y),O=!1,E=!1,L=null,M=null,c.removeEventListener("mousemove",P),c.removeEventListener("mouseup",C),c.removeEventListener("touchmove",P),c.removeEventListener("touchend",C)}c.addEventListener("mousemove",P),c.addEventListener("mouseup",C),c.addEventListener("touchmove",P),c.addEventListener("touchend",C)}const ly=()=>!0,e3=e=>({connectionStartHandle:e.connectionStartHandle,connectOnClick:e.connectOnClick,noPanClassName:e.noPanClassName}),t3=(e,t,n)=>r=>{const{connectionStartHandle:o,connectionEndHandle:i,connectionClickStartHandle:s}=r;return{connecting:(o==null?void 0:o.nodeId)===e&&(o==null?void 0:o.handleId)===t&&(o==null?void 0:o.type)===n||(i==null?void 0:i.nodeId)===e&&(i==null?void 0:i.handleId)===t&&(i==null?void 0:i.type)===n,clickConnecting:(s==null?void 0:s.nodeId)===e&&(s==null?void 0:s.handleId)===t&&(s==null?void 0:s.type)===n}},Bx=S.forwardRef(({type:e="source",position:t=Y.Top,isValidConnection:n,isConnectable:r=!0,isConnectableStart:o=!0,isConnectableEnd:i=!0,id:s,onConnect:a,children:l,className:u,onMouseDown:c,onTouchStart:f,...d},h)=>{var z,B;const g=s||null,v=e==="target",b=Ie(),m=HL(),{connectOnClick:p,noPanClassName:y}=_e(e3,st),{connecting:w,clickConnecting:_}=_e(t3(m,g,e),st);m||(B=(z=b.getState()).onError)==null||B.call(z,"010",yn.error010());const T=D=>{const{defaultEdgeOptions:O,onConnect:L,hasDefaultEdges:E}=b.getState(),M={...O,...D};if(E){const{edges:k,setEdges:V}=b.getState();V(YL(M,k))}L==null||L(M),a==null||a(M)},N=D=>{if(!m)return;const O=Px(D);o&&(O&&D.button===0||!O)&&zx({event:D,handleId:g,nodeId:m,onConnect:T,isTarget:v,getState:b.getState,setState:b.setState,isValidConnection:n||b.getState().isValidConnection||ly}),O?c==null||c(D):f==null||f(D)},A=D=>{const{onClickConnectStart:O,onClickConnectEnd:L,connectionClickStartHandle:E,connectionMode:M,isValidConnection:k}=b.getState();if(!m||!E&&!o)return;if(!E){O==null||O(D,{nodeId:m,handleId:g,handleType:e}),b.setState({connectionClickStartHandle:{nodeId:m,type:e,handleId:g}});return}const V=kx(D.target),P=n||k||ly,{connection:C,isValid:$}=Ix({nodeId:m,id:g,type:e},M,E.nodeId,E.handleId||null,E.type,P,V);$&&T(C),L==null||L(D),b.setState({connectionClickStartHandle:null})};return I.jsx("div",{"data-handleid":g,"data-nodeid":m,"data-handlepos":t,"data-id":`${m}-${g}-${e}`,className:kt(["react-flow__handle",`react-flow__handle-${t}`,"nodrag",y,u,{source:!v,target:v,connectable:r,connectablestart:o,connectableend:i,connecting:_,connectionindicator:r&&(o&&!w||i&&w)}]),onMouseDown:N,onTouchStart:N,onClick:p?A:void 0,ref:h,...d,children:l})});Bx.displayName="Handle";var Nl=S.memo(Bx);const Fx=({data:e,isConnectable:t,targetPosition:n=Y.Top,sourcePosition:r=Y.Bottom})=>I.jsxs(I.Fragment,{children:[I.jsx(Nl,{type:"target",position:n,isConnectable:t}),e==null?void 0:e.label,I.jsx(Nl,{type:"source",position:r,isConnectable:t})]});Fx.displayName="DefaultNode";var Xf=S.memo(Fx);const jx=({data:e,isConnectable:t,sourcePosition:n=Y.Bottom})=>I.jsxs(I.Fragment,{children:[e==null?void 0:e.label,I.jsx(Nl,{type:"source",position:n,isConnectable:t})]});jx.displayName="InputNode";var Ux=S.memo(jx);const Hx=({data:e,isConnectable:t,targetPosition:n=Y.Top})=>I.jsxs(I.Fragment,{children:[I.jsx(Nl,{type:"target",position:n,isConnectable:t}),e==null?void 0:e.label]});Hx.displayName="OutputNode";var Wx=S.memo(Hx);const Fh=()=>null;Fh.displayName="GroupNode";const n3=e=>({selectedNodes:e.getNodes().filter(t=>t.selected),selectedEdges:e.edges.filter(t=>t.selected)}),la=e=>e.id;function r3(e,t){return st(e.selectedNodes.map(la),t.selectedNodes.map(la))&&st(e.selectedEdges.map(la),t.selectedEdges.map(la))}const Gx=S.memo(({onSelectionChange:e})=>{const t=Ie(),{selectedNodes:n,selectedEdges:r}=_e(n3,r3);return S.useEffect(()=>{var i,s;const o={nodes:n,edges:r};e==null||e(o),(s=(i=t.getState()).onSelectionChange)==null||s.call(i,o)},[n,r,e]),null});Gx.displayName="SelectionListener";const o3=e=>!!e.onSelectionChange;function i3({onSelectionChange:e}){const t=_e(o3);return e||t?I.jsx(Gx,{onSelectionChange:e}):null}const s3=e=>({setNodes:e.setNodes,setEdges:e.setEdges,setDefaultNodesAndEdges:e.setDefaultNodesAndEdges,setMinZoom:e.setMinZoom,setMaxZoom:e.setMaxZoom,setTranslateExtent:e.setTranslateExtent,setNodeExtent:e.setNodeExtent,reset:e.reset});function Zr(e,t){S.useEffect(()=>{typeof e<"u"&&t(e)},[e])}function ee(e,t,n){S.useEffect(()=>{typeof t<"u"&&n({[e]:t})},[t])}const a3=({nodes:e,edges:t,defaultNodes:n,defaultEdges:r,onConnect:o,onConnectStart:i,onConnectEnd:s,onClickConnectStart:a,onClickConnectEnd:l,nodesDraggable:u,nodesConnectable:c,nodesFocusable:f,edgesFocusable:d,edgesUpdatable:h,elevateNodesOnSelect:g,minZoom:v,maxZoom:b,nodeExtent:m,onNodesChange:p,onEdgesChange:y,elementsSelectable:w,connectionMode:_,snapGrid:T,snapToGrid:N,translateExtent:A,connectOnClick:z,defaultEdgeOptions:B,fitView:D,fitViewOptions:O,onNodesDelete:L,onEdgesDelete:E,onNodeDrag:M,onNodeDragStart:k,onNodeDragStop:V,onSelectionDrag:P,onSelectionDragStart:C,onSelectionDragStop:$,noPanClassName:x,nodeOrigin:R,rfId:F,autoPanOnConnect:U,autoPanOnNodeDrag:H,onError:W,connectionRadius:K,isValidConnection:X})=>{const{setNodes:Z,setEdges:J,setDefaultNodesAndEdges:we,setMinZoom:Qe,setMaxZoom:at,setTranslateExtent:Ce,setNodeExtent:de,reset:We}=_e(s3,st),Q=Ie();return S.useEffect(()=>{const wn=r==null?void 0:r.map(or=>({...or,...B}));return we(n,wn),()=>{We()}},[]),ee("defaultEdgeOptions",B,Q.setState),ee("connectionMode",_,Q.setState),ee("onConnect",o,Q.setState),ee("onConnectStart",i,Q.setState),ee("onConnectEnd",s,Q.setState),ee("onClickConnectStart",a,Q.setState),ee("onClickConnectEnd",l,Q.setState),ee("nodesDraggable",u,Q.setState),ee("nodesConnectable",c,Q.setState),ee("nodesFocusable",f,Q.setState),ee("edgesFocusable",d,Q.setState),ee("edgesUpdatable",h,Q.setState),ee("elementsSelectable",w,Q.setState),ee("elevateNodesOnSelect",g,Q.setState),ee("snapToGrid",N,Q.setState),ee("snapGrid",T,Q.setState),ee("onNodesChange",p,Q.setState),ee("onEdgesChange",y,Q.setState),ee("connectOnClick",z,Q.setState),ee("fitViewOnInit",D,Q.setState),ee("fitViewOnInitOptions",O,Q.setState),ee("onNodesDelete",L,Q.setState),ee("onEdgesDelete",E,Q.setState),ee("onNodeDrag",M,Q.setState),ee("onNodeDragStart",k,Q.setState),ee("onNodeDragStop",V,Q.setState),ee("onSelectionDrag",P,Q.setState),ee("onSelectionDragStart",C,Q.setState),ee("onSelectionDragStop",$,Q.setState),ee("noPanClassName",x,Q.setState),ee("nodeOrigin",R,Q.setState),ee("rfId",F,Q.setState),ee("autoPanOnConnect",U,Q.setState),ee("autoPanOnNodeDrag",H,Q.setState),ee("onError",W,Q.setState),ee("connectionRadius",K,Q.setState),ee("isValidConnection",X,Q.setState),Zr(e,Z),Zr(t,J),Zr(v,Qe),Zr(b,at),Zr(A,Ce),Zr(m,de),null},uy={display:"none"},l3={position:"absolute",width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0px, 0px, 0px, 0px)",clipPath:"inset(100%)"},Kx="react-flow__node-desc",Yx="react-flow__edge-desc",u3="react-flow__aria-live",c3=e=>e.ariaLiveMessage;function f3({rfId:e}){const t=_e(c3);return I.jsx("div",{id:`${u3}-${e}`,"aria-live":"assertive","aria-atomic":"true",style:l3,children:t})}function d3({rfId:e,disableKeyboardA11y:t}){return I.jsxs(I.Fragment,{children:[I.jsxs("div",{id:`${Kx}-${e}`,style:uy,children:["Press enter or space to select a node.",!t&&"You can then use the arrow keys to move the node around."," Press delete to remove it and escape to cancel."," "]}),I.jsx("div",{id:`${Yx}-${e}`,style:uy,children:"Press enter or space to select an edge. You can then press delete to remove it or escape to cancel."}),!t&&I.jsx(f3,{rfId:e})]})}const h3=typeof document<"u"?document:null;var hs=(e=null,t={target:h3})=>{const[n,r]=S.useState(!1),o=S.useRef(!1),i=S.useRef(new Set([])),[s,a]=S.useMemo(()=>{if(e!==null){const u=(Array.isArray(e)?e:[e]).filter(f=>typeof f=="string").map(f=>f.split("+")),c=u.reduce((f,d)=>f.concat(...d),[]);return[u,c]}return[[],[]]},[e]);return S.useEffect(()=>{var l,u;if(e!==null){const c=h=>{if(o.current=h.ctrlKey||h.metaKey||h.shiftKey,!o.current&&Gf(h))return!1;const g=fy(h.code,a);i.current.add(h[g]),cy(s,i.current,!1)&&(h.preventDefault(),r(!0))},f=h=>{if(!o.current&&Gf(h))return!1;const g=fy(h.code,a);cy(s,i.current,!0)?(r(!1),i.current.clear()):i.current.delete(h[g]),h.key==="Meta"&&i.current.clear(),o.current=!1},d=()=>{i.current.clear(),r(!1)};return(l=t==null?void 0:t.target)==null||l.addEventListener("keydown",c),(u=t==null?void 0:t.target)==null||u.addEventListener("keyup",f),window.addEventListener("blur",d),()=>{var h,g;(h=t==null?void 0:t.target)==null||h.removeEventListener("keydown",c),(g=t==null?void 0:t.target)==null||g.removeEventListener("keyup",f),window.removeEventListener("blur",d)}}},[e,r]),n};function cy(e,t,n){return e.filter(r=>n||r.length===t.size).some(r=>r.every(o=>t.has(o)))}function fy(e,t){return t.includes(e)?"code":"key"}function Xx(e,t,n,r){var s,a;if(!e.parentNode)return n;const o=t.get(e.parentNode),i=Ao(o,r);return Xx(o,t,{x:(n.x??0)+i.x,y:(n.y??0)+i.y,z:(((s=o[Me])==null?void 0:s.z)??0)>(n.z??0)?((a=o[Me])==null?void 0:a.z)??0:n.z??0},r)}function qx(e,t,n){e.forEach(r=>{var o;if(r.parentNode&&!e.has(r.parentNode))throw new Error(`Parent node ${r.parentNode} not found`);if(r.parentNode||n!=null&&n[r.id]){const{x:i,y:s,z:a}=Xx(r,e,{...r.position,z:((o=r[Me])==null?void 0:o.z)??0},t);r.positionAbsolute={x:i,y:s},r[Me].z=a,n!=null&&n[r.id]&&(r[Me].isParent=!0)}})}function fc(e,t,n,r){const o=new Map,i={},s=r?1e3:0;return e.forEach(a=>{var f;const l=(bt(a.zIndex)?a.zIndex:0)+(a.selected?s:0),u=t.get(a.id),c={width:u==null?void 0:u.width,height:u==null?void 0:u.height,...a,positionAbsolute:{x:a.position.x,y:a.position.y}};a.parentNode&&(c.parentNode=a.parentNode,i[a.parentNode]=!0),Object.defineProperty(c,Me,{enumerable:!1,value:{handleBounds:(f=u==null?void 0:u[Me])==null?void 0:f.handleBounds,z:l}}),o.set(a.id,c)}),qx(o,n,i),o}function Zx(e,t={}){const{getNodes:n,width:r,height:o,minZoom:i,maxZoom:s,d3Zoom:a,d3Selection:l,fitViewOnInitDone:u,fitViewOnInit:c,nodeOrigin:f}=e(),d=t.initial&&!u&&c;if(a&&l&&(d||!t.initial)){const g=n().filter(b=>{var p;const m=t.includeHiddenNodes?b.width&&b.height:!b.hidden;return(p=t.nodes)!=null&&p.length?m&&t.nodes.some(y=>y.id===b.id):m}),v=g.every(b=>b.width&&b.height);if(g.length>0&&v){const b=zh(g,f),[m,p,y]=Ox(b,r,o,t.minZoom??i,t.maxZoom??s,t.padding??.1),w=Kn.translate(m,p).scale(y);return typeof t.duration=="number"&&t.duration>0?a.transform(vr(l,t.duration),w):a.transform(l,w),!0}}return!1}function p3(e,t){return e.forEach(n=>{const r=t.get(n.id);r&&t.set(r.id,{...r,[Me]:r[Me],selected:n.selected})}),new Map(t)}function m3(e,t){return t.map(n=>{const r=e.find(o=>o.id===n.id);return r&&(n.selected=r.selected),n})}function ua({changedNodes:e,changedEdges:t,get:n,set:r}){const{nodeInternals:o,edges:i,onNodesChange:s,onEdgesChange:a,hasDefaultNodes:l,hasDefaultEdges:u}=n();e!=null&&e.length&&(l&&r({nodeInternals:p3(e,o)}),s==null||s(e)),t!=null&&t.length&&(u&&r({edges:m3(t,i)}),a==null||a(t))}const Qr=()=>{},g3={zoomIn:Qr,zoomOut:Qr,zoomTo:Qr,getZoom:()=>1,setViewport:Qr,getViewport:()=>({x:0,y:0,zoom:1}),fitView:()=>!1,setCenter:Qr,fitBounds:Qr,project:e=>e,viewportInitialized:!1},y3=e=>({d3Zoom:e.d3Zoom,d3Selection:e.d3Selection}),v3=()=>{const e=Ie(),{d3Zoom:t,d3Selection:n}=_e(y3,st);return S.useMemo(()=>n&&t?{zoomIn:o=>t.scaleBy(vr(n,o==null?void 0:o.duration),1.2),zoomOut:o=>t.scaleBy(vr(n,o==null?void 0:o.duration),1/1.2),zoomTo:(o,i)=>t.scaleTo(vr(n,i==null?void 0:i.duration),o),getZoom:()=>e.getState().transform[2],setViewport:(o,i)=>{const[s,a,l]=e.getState().transform,u=Kn.translate(o.x??s,o.y??a).scale(o.zoom??l);t.transform(vr(n,i==null?void 0:i.duration),u)},getViewport:()=>{const[o,i,s]=e.getState().transform;return{x:o,y:i,zoom:s}},fitView:o=>Zx(e.getState,o),setCenter:(o,i,s)=>{const{width:a,height:l,maxZoom:u}=e.getState(),c=typeof(s==null?void 0:s.zoom)<"u"?s.zoom:u,f=a/2-o*c,d=l/2-i*c,h=Kn.translate(f,d).scale(c);t.transform(vr(n,s==null?void 0:s.duration),h)},fitBounds:(o,i)=>{const{width:s,height:a,minZoom:l,maxZoom:u}=e.getState(),[c,f,d]=Ox(o,s,a,l,u,(i==null?void 0:i.padding)??.1),h=Kn.translate(c,f).scale(d);t.transform(vr(n,i==null?void 0:i.duration),h)},project:o=>{const{transform:i,snapToGrid:s,snapGrid:a}=e.getState();return $x(o,i,s,a)},viewportInitialized:!0}:g3,[t,n])};function Qx(){const e=v3(),t=Ie(),n=S.useCallback(()=>t.getState().getNodes().map(v=>({...v})),[]),r=S.useCallback(v=>t.getState().nodeInternals.get(v),[]),o=S.useCallback(()=>{const{edges:v=[]}=t.getState();return v.map(b=>({...b}))},[]),i=S.useCallback(v=>{const{edges:b=[]}=t.getState();return b.find(m=>m.id===v)},[]),s=S.useCallback(v=>{const{getNodes:b,setNodes:m,hasDefaultNodes:p,onNodesChange:y}=t.getState(),w=b(),_=typeof v=="function"?v(w):v;if(p)m(_);else if(y){const T=_.length===0?w.map(N=>({type:"remove",id:N.id})):_.map(N=>({item:N,type:"reset"}));y(T)}},[]),a=S.useCallback(v=>{const{edges:b=[],setEdges:m,hasDefaultEdges:p,onEdgesChange:y}=t.getState(),w=typeof v=="function"?v(b):v;if(p)m(w);else if(y){const _=w.length===0?b.map(T=>({type:"remove",id:T.id})):w.map(T=>({item:T,type:"reset"}));y(_)}},[]),l=S.useCallback(v=>{const b=Array.isArray(v)?v:[v],{getNodes:m,setNodes:p,hasDefaultNodes:y,onNodesChange:w}=t.getState();if(y){const T=[...m(),...b];p(T)}else if(w){const _=b.map(T=>({item:T,type:"add"}));w(_)}},[]),u=S.useCallback(v=>{const b=Array.isArray(v)?v:[v],{edges:m=[],setEdges:p,hasDefaultEdges:y,onEdgesChange:w}=t.getState();if(y)p([...m,...b]);else if(w){const _=b.map(T=>({item:T,type:"add"}));w(_)}},[]),c=S.useCallback(()=>{const{getNodes:v,edges:b=[],transform:m}=t.getState(),[p,y,w]=m;return{nodes:v().map(_=>({..._})),edges:b.map(_=>({..._})),viewport:{x:p,y,zoom:w}}},[]),f=S.useCallback(({nodes:v,edges:b})=>{const{nodeInternals:m,getNodes:p,edges:y,hasDefaultNodes:w,hasDefaultEdges:_,onNodesDelete:T,onEdgesDelete:N,onNodesChange:A,onEdgesChange:z}=t.getState(),B=(v||[]).map(M=>M.id),D=(b||[]).map(M=>M.id),O=p().reduce((M,k)=>{const V=!B.includes(k.id)&&k.parentNode&&M.find(C=>C.id===k.parentNode);return(typeof k.deletable=="boolean"?k.deletable:!0)&&(B.includes(k.id)||V)&&M.push(k),M},[]),L=y.filter(M=>typeof M.deletable=="boolean"?M.deletable:!0),E=L.filter(M=>D.includes(M.id));if(O||E){const M=Dx(O,L),k=[...E,...M],V=k.reduce((P,C)=>(P.includes(C.id)||P.push(C.id),P),[]);if((_||w)&&(_&&t.setState({edges:y.filter(P=>!V.includes(P.id))}),w&&(O.forEach(P=>{m.delete(P.id)}),t.setState({nodeInternals:new Map(m)}))),V.length>0&&(N==null||N(k),z&&z(V.map(P=>({id:P,type:"remove"})))),O.length>0&&(T==null||T(O),A)){const P=O.map(C=>({id:C.id,type:"remove"}));A(P)}}},[]),d=S.useCallback(v=>{const b=OL(v),m=b?null:t.getState().nodeInternals.get(v.id);return[b?v:ny(m),m,b]},[]),h=S.useCallback((v,b=!0,m)=>{const[p,y,w]=d(v);return p?(m||t.getState().getNodes()).filter(_=>{if(!w&&(_.id===y.id||!_.positionAbsolute))return!1;const T=ny(_),N=Wf(T,p);return b&&N>0||N>=v.width*v.height}):[]},[]),g=S.useCallback((v,b,m=!0)=>{const[p]=d(v);if(!p)return!1;const y=Wf(p,b);return m&&y>0||y>=v.width*v.height},[]);return S.useMemo(()=>({...e,getNodes:n,getNode:r,getEdges:o,getEdge:i,setNodes:s,setEdges:a,addNodes:l,addEdges:u,toObject:c,deleteElements:f,getIntersectingNodes:h,isNodeIntersecting:g}),[e,n,r,o,i,s,a,l,u,c,f,h,g])}var w3=({deleteKeyCode:e,multiSelectionKeyCode:t})=>{const n=Ie(),{deleteElements:r}=Qx(),o=hs(e),i=hs(t);S.useEffect(()=>{if(o){const{edges:s,getNodes:a}=n.getState(),l=a().filter(c=>c.selected),u=s.filter(c=>c.selected);r({nodes:l,edges:u}),n.setState({nodesSelectionActive:!1})}},[o]),S.useEffect(()=>{n.setState({multiSelectionActive:i})},[i])};function x3(e){const t=Ie();S.useEffect(()=>{let n;const r=()=>{var i,s;if(!e.current)return;const o=Rh(e.current);(o.height===0||o.width===0)&&((s=(i=t.getState()).onError)==null||s.call(i,"004",yn.error004())),t.setState({width:o.width||500,height:o.height||500})};return r(),window.addEventListener("resize",r),e.current&&(n=new ResizeObserver(()=>r()),n.observe(e.current)),()=>{window.removeEventListener("resize",r),n&&e.current&&n.unobserve(e.current)}},[])}const jh={position:"absolute",width:"100%",height:"100%",top:0,left:0},S3=(e,t)=>e.x!==t.x||e.y!==t.y||e.zoom!==t.k,ca=e=>({x:e.x,y:e.y,zoom:e.k}),Jr=(e,t)=>e.target.closest(`.${t}`),dy=(e,t)=>t===2&&Array.isArray(e)&&e.includes(2),hy=e=>{const t=e.ctrlKey&&kl()?10:1;return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*t},b3=e=>({d3Zoom:e.d3Zoom,d3Selection:e.d3Selection,d3ZoomHandler:e.d3ZoomHandler,userSelectionActive:e.userSelectionActive}),E3=({onMove:e,onMoveStart:t,onMoveEnd:n,onPaneContextMenu:r,zoomOnScroll:o=!0,zoomOnPinch:i=!0,panOnScroll:s=!1,panOnScrollSpeed:a=.5,panOnScrollMode:l=kr.Free,zoomOnDoubleClick:u=!0,elementsSelectable:c,panOnDrag:f=!0,defaultViewport:d,translateExtent:h,minZoom:g,maxZoom:v,zoomActivationKeyCode:b,preventScrolling:m=!0,children:p,noWheelClassName:y,noPanClassName:w})=>{const _=S.useRef(),T=Ie(),N=S.useRef(!1),A=S.useRef(!1),z=S.useRef(null),B=S.useRef({x:0,y:0,zoom:0}),{d3Zoom:D,d3Selection:O,d3ZoomHandler:L,userSelectionActive:E}=_e(b3,st),M=hs(b),k=S.useRef(0),V=S.useRef(!1),P=S.useRef();return x3(z),S.useEffect(()=>{if(z.current){const C=z.current.getBoundingClientRect(),$=TL().scaleExtent([g,v]).translateExtent(h),x=$t(z.current).call($),R=Kn.translate(d.x,d.y).scale(Ho(d.zoom,g,v)),F=[[0,0],[C.width,C.height]],U=$.constrain()(R,F,h);$.transform(x,U),$.wheelDelta(hy),T.setState({d3Zoom:$,d3Selection:x,d3ZoomHandler:x.on("wheel.zoom"),transform:[U.x,U.y,U.k],domNode:z.current.closest(".react-flow")})}},[]),S.useEffect(()=>{O&&D&&(s&&!M&&!E?O.on("wheel.zoom",C=>{if(Jr(C,y))return!1;C.preventDefault(),C.stopImmediatePropagation();const $=O.property("__zoom").k||1,x=kl();if(C.ctrlKey&&i&&x){const Z=jt(C),J=hy(C),we=$*Math.pow(2,J);D.scaleTo(O,we,Z,C);return}const R=C.deltaMode===1?20:1;let F=l===kr.Vertical?0:C.deltaX*R,U=l===kr.Horizontal?0:C.deltaY*R;!x&&C.shiftKey&&l!==kr.Vertical&&(F=C.deltaY*R,U=0),D.translateBy(O,-(F/$)*a,-(U/$)*a,{internal:!0});const H=ca(O.property("__zoom")),{onViewportChangeStart:W,onViewportChange:K,onViewportChangeEnd:X}=T.getState();clearTimeout(P.current),V.current||(V.current=!0,t==null||t(C,H),W==null||W(H)),V.current&&(e==null||e(C,H),K==null||K(H),P.current=setTimeout(()=>{n==null||n(C,H),X==null||X(H),V.current=!1},150))},{passive:!1}):typeof L<"u"&&O.on("wheel.zoom",function(C,$){if(!m||Jr(C,y))return null;C.preventDefault(),L.call(this,C,$)},{passive:!1}))},[E,s,l,O,D,L,M,i,m,y,t,e,n]),S.useEffect(()=>{D&&D.on("start",C=>{var R,F;if(!C.sourceEvent||C.sourceEvent.internal)return null;k.current=(R=C.sourceEvent)==null?void 0:R.button;const{onViewportChangeStart:$}=T.getState(),x=ca(C.transform);N.current=!0,B.current=x,((F=C.sourceEvent)==null?void 0:F.type)==="mousedown"&&T.setState({paneDragging:!0}),$==null||$(x),t==null||t(C.sourceEvent,x)})},[D,t]),S.useEffect(()=>{D&&(E&&!N.current?D.on("zoom",null):E||D.on("zoom",C=>{var x;const{onViewportChange:$}=T.getState();if(T.setState({transform:[C.transform.x,C.transform.y,C.transform.k]}),A.current=!!(r&&dy(f,k.current??0)),(e||$)&&!((x=C.sourceEvent)!=null&&x.internal)){const R=ca(C.transform);$==null||$(R),e==null||e(C.sourceEvent,R)}}))},[E,D,e,f,r]),S.useEffect(()=>{D&&D.on("end",C=>{if(!C.sourceEvent||C.sourceEvent.internal)return null;const{onViewportChangeEnd:$}=T.getState();if(N.current=!1,T.setState({paneDragging:!1}),r&&dy(f,k.current??0)&&!A.current&&r(C.sourceEvent),A.current=!1,(n||$)&&S3(B.current,C.transform)){const x=ca(C.transform);B.current=x,clearTimeout(_.current),_.current=setTimeout(()=>{$==null||$(x),n==null||n(C.sourceEvent,x)},s?150:0)}})},[D,s,f,n,r]),S.useEffect(()=>{D&&D.filter(C=>{const $=M||o,x=i&&C.ctrlKey;if(C.button===1&&C.type==="mousedown"&&(Jr(C,"react-flow__node")||Jr(C,"react-flow__edge")))return!0;if(!f&&!$&&!s&&!u&&!i||E||!u&&C.type==="dblclick"||Jr(C,y)&&C.type==="wheel"||Jr(C,w)&&C.type!=="wheel"||!i&&C.ctrlKey&&C.type==="wheel"||!$&&!s&&!x&&C.type==="wheel"||!f&&(C.type==="mousedown"||C.type==="touchstart")||Array.isArray(f)&&!f.includes(C.button)&&(C.type==="mousedown"||C.type==="touchstart"))return!1;const R=Array.isArray(f)&&f.includes(C.button)||!C.button||C.button<=1;return(!C.ctrlKey||C.type==="wheel")&&R})},[E,D,o,i,s,u,f,c,M]),I.jsx("div",{className:"react-flow__renderer",ref:z,style:jh,children:p})},_3=e=>({userSelectionActive:e.userSelectionActive,userSelectionRect:e.userSelectionRect});function C3(){const{userSelectionActive:e,userSelectionRect:t}=_e(_3,st);return e&&t?I.jsx("div",{className:"react-flow__selection react-flow__container",style:{width:t.width,height:t.height,transform:`translate(${t.x}px, ${t.y}px)`}}):null}function py(e,t){const n=e.find(r=>r.id===t.parentNode);if(n){const r=t.position.x+t.width-n.width,o=t.position.y+t.height-n.height;if(r>0||o>0||t.position.x<0||t.position.y<0){if(n.style={...n.style},n.style.width=n.style.width??n.width,n.style.height=n.style.height??n.height,r>0&&(n.style.width+=r),o>0&&(n.style.height+=o),t.position.x<0){const i=Math.abs(t.position.x);n.position.x=n.position.x-i,n.style.width+=i,t.position.x=0}if(t.position.y<0){const i=Math.abs(t.position.y);n.position.y=n.position.y-i,n.style.height+=i,t.position.y=0}n.width=n.style.width,n.height=n.style.height}}}function Jx(e,t){if(e.some(r=>r.type==="reset"))return e.filter(r=>r.type==="reset").map(r=>r.item);const n=e.filter(r=>r.type==="add").map(r=>r.item);return t.reduce((r,o)=>{const i=e.filter(a=>a.id===o.id);if(i.length===0)return r.push(o),r;const s={...o};for(const a of i)if(a)switch(a.type){case"select":{s.selected=a.selected;break}case"position":{typeof a.position<"u"&&(s.position=a.position),typeof a.positionAbsolute<"u"&&(s.positionAbsolute=a.positionAbsolute),typeof a.dragging<"u"&&(s.dragging=a.dragging),s.expandParent&&py(r,s);break}case"dimensions":{typeof a.dimensions<"u"&&(s.width=a.dimensions.width,s.height=a.dimensions.height),typeof a.updateStyle<"u"&&(s.style={...s.style||{},...a.dimensions}),typeof a.resizing=="boolean"&&(s.resizing=a.resizing),s.expandParent&&py(r,s);break}case"remove":return r}return r.push(s),r},n)}function eS(e,t){return Jx(e,t)}function k3(e,t){return Jx(e,t)}const An=(e,t)=>({id:e,type:"select",selected:t});function xo(e,t){return e.reduce((n,r)=>{const o=t.includes(r.id);return!r.selected&&o?(r.selected=!0,n.push(An(r.id,!0))):r.selected&&!o&&(r.selected=!1,n.push(An(r.id,!1))),n},[])}const dc=(e,t)=>n=>{n.target===t.current&&(e==null||e(n))},T3=e=>({userSelectionActive:e.userSelectionActive,elementsSelectable:e.elementsSelectable,dragging:e.paneDragging}),tS=S.memo(({isSelecting:e,selectionMode:t=ds.Full,panOnDrag:n,onSelectionStart:r,onSelectionEnd:o,onPaneClick:i,onPaneContextMenu:s,onPaneScroll:a,onPaneMouseEnter:l,onPaneMouseMove:u,onPaneMouseLeave:c,children:f})=>{const d=S.useRef(null),h=Ie(),g=S.useRef(0),v=S.useRef(0),b=S.useRef(),{userSelectionActive:m,elementsSelectable:p,dragging:y}=_e(T3,st),w=()=>{h.setState({userSelectionActive:!1,userSelectionRect:null}),g.current=0,v.current=0},_=L=>{i==null||i(L),h.getState().resetSelectedElements(),h.setState({nodesSelectionActive:!1})},T=L=>{if(Array.isArray(n)&&(n!=null&&n.includes(2))){L.preventDefault();return}s==null||s(L)},N=a?L=>a(L):void 0,A=L=>{const{resetSelectedElements:E,domNode:M}=h.getState();if(b.current=M==null?void 0:M.getBoundingClientRect(),!p||!e||L.button!==0||L.target!==d.current||!b.current)return;const{x:k,y:V}=Yn(L,b.current);E(),h.setState({userSelectionRect:{width:0,height:0,startX:k,startY:V,x:k,y:V}}),r==null||r(L)},z=L=>{const{userSelectionRect:E,nodeInternals:M,edges:k,transform:V,onNodesChange:P,onEdgesChange:C,nodeOrigin:$,getNodes:x}=h.getState();if(!e||!b.current||!E)return;h.setState({userSelectionActive:!0,nodesSelectionActive:!1});const R=Yn(L,b.current),F=E.startX??0,U=E.startY??0,H={...E,x:R.x<F?R.x:F,y:R.y<U?R.y:U,width:Math.abs(R.x-F),height:Math.abs(R.y-U)},W=x(),K=Lx(M,H,V,t===ds.Partial,!0,$),X=Dx(K,k).map(J=>J.id),Z=K.map(J=>J.id);if(g.current!==Z.length){g.current=Z.length;const J=xo(W,Z);J.length&&(P==null||P(J))}if(v.current!==X.length){v.current=X.length;const J=xo(k,X);J.length&&(C==null||C(J))}h.setState({userSelectionRect:H})},B=L=>{if(L.button!==0)return;const{userSelectionRect:E}=h.getState();!m&&E&&L.target===d.current&&(_==null||_(L)),h.setState({nodesSelectionActive:g.current>0}),w(),o==null||o(L)},D=L=>{m&&(h.setState({nodesSelectionActive:g.current>0}),o==null||o(L)),w()},O=p&&(e||m);return I.jsxs("div",{className:kt(["react-flow__pane",{dragging:y,selection:e}]),onClick:O?void 0:dc(_,d),onContextMenu:dc(T,d),onWheel:dc(N,d),onMouseEnter:O?void 0:l,onMouseDown:O?A:void 0,onMouseMove:O?z:u,onMouseUp:O?B:void 0,onMouseLeave:O?D:c,ref:d,style:jh,children:[f,I.jsx(C3,{})]})});tS.displayName="Pane";function nS(e,t){if(!e.parentNode)return!1;const n=t.get(e.parentNode);return n?n.selected?!0:nS(n,t):!1}function my(e,t,n){let r=e;do{if(r!=null&&r.matches(t))return!0;if(r===n.current)return!1;r=r.parentElement}while(r);return!1}function P3(e,t,n,r){return Array.from(e.values()).filter(o=>(o.selected||o.id===r)&&(!o.parentNode||!nS(o,e))&&(o.draggable||t&&typeof o.draggable>"u")).map(o=>{var i,s;return{id:o.id,position:o.position||{x:0,y:0},positionAbsolute:o.positionAbsolute||{x:0,y:0},distance:{x:n.x-(((i=o.positionAbsolute)==null?void 0:i.x)??0),y:n.y-(((s=o.positionAbsolute)==null?void 0:s.y)??0)},delta:{x:0,y:0},extent:o.extent,parentNode:o.parentNode,width:o.width,height:o.height}})}function N3(e,t){return!t||t==="parent"?t:[t[0],[t[1][0]-(e.width||0),t[1][1]-(e.height||0)]]}function rS(e,t,n,r,o=[0,0],i){const s=N3(e,e.extent||r);let a=s;if(e.extent==="parent")if(e.parentNode&&e.width&&e.height){const c=n.get(e.parentNode),{x:f,y:d}=Ao(c,o).positionAbsolute;a=c&&bt(f)&&bt(d)&&bt(c.width)&&bt(c.height)?[[f+e.width*o[0],d+e.height*o[1]],[f+c.width-e.width+e.width*o[0],d+c.height-e.height+e.height*o[1]]]:a}else i==null||i("005",yn.error005()),a=s;else if(e.extent&&e.parentNode){const c=n.get(e.parentNode),{x:f,y:d}=Ao(c,o).positionAbsolute;a=[[e.extent[0][0]+f,e.extent[0][1]+d],[e.extent[1][0]+f,e.extent[1][1]+d]]}let l={x:0,y:0};if(e.parentNode){const c=n.get(e.parentNode);l=Ao(c,o).positionAbsolute}const u=a&&a!=="parent"?$h(t,a):t;return{position:{x:u.x-l.x,y:u.y-l.y},positionAbsolute:u}}function hc({nodeId:e,dragItems:t,nodeInternals:n}){const r=t.map(o=>({...n.get(o.id),position:o.position,positionAbsolute:o.positionAbsolute}));return[e?r.find(o=>o.id===e):r[0],r]}const gy=(e,t,n,r)=>{const o=t.querySelectorAll(e);if(!o||!o.length)return null;const i=Array.from(o),s=t.getBoundingClientRect(),a={x:s.width*r[0],y:s.height*r[1]};return i.map(l=>{const u=l.getBoundingClientRect();return{id:l.getAttribute("data-handleid"),position:l.getAttribute("data-handlepos"),x:(u.left-s.left-a.x)/n,y:(u.top-s.top-a.y)/n,...Rh(l)}})};function mi(e,t,n){return n===void 0?n:r=>{const o=t().nodeInternals.get(e);o&&n(r,{...o})}}function qf({id:e,store:t,unselect:n=!1,nodeRef:r}){const{addSelectedNodes:o,unselectNodesAndEdges:i,multiSelectionActive:s,nodeInternals:a,onError:l}=t.getState(),u=a.get(e);if(!u){l==null||l("012",yn.error012(e));return}t.setState({nodesSelectionActive:!1}),u.selected?(n||u.selected&&s)&&(i({nodes:[u]}),requestAnimationFrame(()=>{var c;return(c=r==null?void 0:r.current)==null?void 0:c.blur()})):o([e])}function A3(){const e=Ie();return S.useCallback(({sourceEvent:n})=>{const{transform:r,snapGrid:o,snapToGrid:i}=e.getState(),s=n.touches?n.touches[0].clientX:n.clientX,a=n.touches?n.touches[0].clientY:n.clientY,l={x:(s-r[0])/r[2],y:(a-r[1])/r[2]};return{xSnapped:i?o[0]*Math.round(l.x/o[0]):l.x,ySnapped:i?o[1]*Math.round(l.y/o[1]):l.y,...l}},[])}function pc(e){return(t,n,r)=>e==null?void 0:e(t,r)}function oS({nodeRef:e,disabled:t=!1,noDragClassName:n,handleSelector:r,nodeId:o,isSelectable:i,selectNodesOnDrag:s}){const a=Ie(),[l,u]=S.useState(!1),c=S.useRef([]),f=S.useRef({x:null,y:null}),d=S.useRef(0),h=S.useRef(null),g=S.useRef({x:0,y:0}),v=S.useRef(null),b=S.useRef(!1),m=A3();return S.useEffect(()=>{if(e!=null&&e.current){const p=$t(e.current),y=({x:_,y:T})=>{const{nodeInternals:N,onNodeDrag:A,onSelectionDrag:z,updateNodePositions:B,nodeExtent:D,snapGrid:O,snapToGrid:L,nodeOrigin:E,onError:M}=a.getState();f.current={x:_,y:T};let k=!1,V={x:0,y:0,x2:0,y2:0};if(c.current.length>1&&D){const C=zh(c.current,E);V=Lh(C)}if(c.current=c.current.map(C=>{const $={x:_-C.distance.x,y:T-C.distance.y};L&&($.x=O[0]*Math.round($.x/O[0]),$.y=O[1]*Math.round($.y/O[1]));const x=[[D[0][0],D[0][1]],[D[1][0],D[1][1]]];c.current.length>1&&D&&!C.extent&&(x[0][0]=C.positionAbsolute.x-V.x+D[0][0],x[1][0]=C.positionAbsolute.x+(C.width??0)-V.x2+D[1][0],x[0][1]=C.positionAbsolute.y-V.y+D[0][1],x[1][1]=C.positionAbsolute.y+(C.height??0)-V.y2+D[1][1]);const R=rS(C,$,N,x,E,M);return k=k||C.position.x!==R.position.x||C.position.y!==R.position.y,C.position=R.position,C.positionAbsolute=R.positionAbsolute,C}),!k)return;B(c.current,!0,!0),u(!0);const P=o?A:pc(z);if(P&&v.current){const[C,$]=hc({nodeId:o,dragItems:c.current,nodeInternals:N});P(v.current,C,$)}},w=()=>{if(!h.current)return;const[_,T]=Cx(g.current,h.current);if(_!==0||T!==0){const{transform:N,panBy:A}=a.getState();f.current.x=(f.current.x??0)-_/N[2],f.current.y=(f.current.y??0)-T/N[2],A({x:_,y:T})&&y(f.current)}d.current=requestAnimationFrame(w)};if(t)p.on(".drag",null);else{const _=VR().on("start",T=>{var k;const{nodeInternals:N,multiSelectionActive:A,domNode:z,nodesDraggable:B,unselectNodesAndEdges:D,onNodeDragStart:O,onSelectionDragStart:L}=a.getState(),E=o?O:pc(L);!s&&!A&&o&&((k=N.get(o))!=null&&k.selected||D()),o&&i&&s&&qf({id:o,store:a,nodeRef:e});const M=m(T);if(f.current=M,c.current=P3(N,B,M,o),E&&c.current){const[V,P]=hc({nodeId:o,dragItems:c.current,nodeInternals:N});E(T.sourceEvent,V,P)}h.current=(z==null?void 0:z.getBoundingClientRect())||null,g.current=Yn(T.sourceEvent,h.current)}).on("drag",T=>{const N=m(T),{autoPanOnNodeDrag:A}=a.getState();!b.current&&A&&(b.current=!0,w()),(f.current.x!==N.xSnapped||f.current.y!==N.ySnapped)&&c.current&&(v.current=T.sourceEvent,g.current=Yn(T.sourceEvent,h.current),y(N))}).on("end",T=>{if(u(!1),b.current=!1,cancelAnimationFrame(d.current),c.current){const{updateNodePositions:N,nodeInternals:A,onNodeDragStop:z,onSelectionDragStop:B}=a.getState(),D=o?z:pc(B);if(N(c.current,!1,!1),D){const[O,L]=hc({nodeId:o,dragItems:c.current,nodeInternals:A});D(T.sourceEvent,O,L)}}}).filter(T=>{const N=T.target;return!T.button&&(!n||!my(N,`.${n}`,e))&&(!r||my(N,r,e))});return p.call(_),()=>{p.on(".drag",null)}}}},[e,t,n,r,i,a,o,s,m]),l}function iS(){const e=Ie();return S.useCallback(n=>{const{nodeInternals:r,nodeExtent:o,updateNodePositions:i,getNodes:s,snapToGrid:a,snapGrid:l,onError:u,nodesDraggable:c}=e.getState(),f=s().filter(p=>p.selected&&(p.draggable||c&&typeof p.draggable>"u")),d=a?l[0]:5,h=a?l[1]:5,g=n.isShiftPressed?4:1,v=n.x*d*g,b=n.y*h*g,m=f.map(p=>{if(p.positionAbsolute){const y={x:p.positionAbsolute.x+v,y:p.positionAbsolute.y+b};a&&(y.x=l[0]*Math.round(y.x/l[0]),y.y=l[1]*Math.round(y.y/l[1]));const{positionAbsolute:w,position:_}=rS(p,y,r,o,void 0,u);p.position=_,p.positionAbsolute=w}return p});i(m,!0,!1)},[])}const Mo={ArrowUp:{x:0,y:-1},ArrowDown:{x:0,y:1},ArrowLeft:{x:-1,y:0},ArrowRight:{x:1,y:0}};var gi=e=>{const t=({id:n,type:r,data:o,xPos:i,yPos:s,xPosOrigin:a,yPosOrigin:l,selected:u,onClick:c,onMouseEnter:f,onMouseMove:d,onMouseLeave:h,onContextMenu:g,onDoubleClick:v,style:b,className:m,isDraggable:p,isSelectable:y,isConnectable:w,isFocusable:_,selectNodesOnDrag:T,sourcePosition:N,targetPosition:A,hidden:z,resizeObserver:B,dragHandle:D,zIndex:O,isParent:L,noDragClassName:E,noPanClassName:M,initialized:k,disableKeyboardA11y:V,ariaLabel:P,rfId:C})=>{const $=Ie(),x=S.useRef(null),R=S.useRef(N),F=S.useRef(A),U=S.useRef(r),H=y||p||c||f||d||h,W=iS(),K=mi(n,$.getState,f),X=mi(n,$.getState,d),Z=mi(n,$.getState,h),J=mi(n,$.getState,g),we=mi(n,$.getState,v),Qe=de=>{if(y&&(!T||!p)&&qf({id:n,store:$,nodeRef:x}),c){const We=$.getState().nodeInternals.get(n);We&&c(de,{...We})}},at=de=>{if(!Gf(de))if(Tx.includes(de.key)&&y){const We=de.key==="Escape";qf({id:n,store:$,unselect:We,nodeRef:x})}else!V&&p&&u&&Object.prototype.hasOwnProperty.call(Mo,de.key)&&($.setState({ariaLiveMessage:`Moved selected node ${de.key.replace("Arrow","").toLowerCase()}. New position, x: ${~~i}, y: ${~~s}`}),W({x:Mo[de.key].x,y:Mo[de.key].y,isShiftPressed:de.shiftKey}))};S.useEffect(()=>{if(x.current&&!z){const de=x.current;return B==null||B.observe(de),()=>B==null?void 0:B.unobserve(de)}},[z]),S.useEffect(()=>{const de=U.current!==r,We=R.current!==N,Q=F.current!==A;x.current&&(de||We||Q)&&(de&&(U.current=r),We&&(R.current=N),Q&&(F.current=A),$.getState().updateNodeDimensions([{id:n,nodeElement:x.current,forceUpdate:!0}]))},[n,r,N,A]);const Ce=oS({nodeRef:x,disabled:z||!p,noDragClassName:E,handleSelector:D,nodeId:n,isSelectable:y,selectNodesOnDrag:T});return z?null:I.jsx("div",{className:kt(["react-flow__node",`react-flow__node-${r}`,{[M]:p},m,{selected:u,selectable:y,parent:L,dragging:Ce}]),ref:x,style:{zIndex:O,transform:`translate(${a}px,${l}px)`,pointerEvents:H?"all":"none",visibility:k?"visible":"hidden",...b},"data-id":n,"data-testid":`rf__node-${n}`,onMouseEnter:K,onMouseMove:X,onMouseLeave:Z,onContextMenu:J,onClick:Qe,onDoubleClick:we,onKeyDown:_?at:void 0,tabIndex:_?0:void 0,role:_?"button":void 0,"aria-describedby":V?void 0:`${Kx}-${C}`,"aria-label":P,children:I.jsx(UL,{value:n,children:I.jsx(e,{id:n,data:o,type:r,xPos:i,yPos:s,selected:u,isConnectable:w,sourcePosition:N,targetPosition:A,dragging:Ce,dragHandle:D,zIndex:O})})})};return t.displayName="NodeWrapper",S.memo(t)};const M3=e=>{const t=e.getNodes().filter(n=>n.selected);return{...zh(t,e.nodeOrigin),transformString:`translate(${e.transform[0]}px,${e.transform[1]}px) scale(${e.transform[2]})`,userSelectionActive:e.userSelectionActive}};function R3({onSelectionContextMenu:e,noPanClassName:t,disableKeyboardA11y:n}){const r=Ie(),{width:o,height:i,x:s,y:a,transformString:l,userSelectionActive:u}=_e(M3,st),c=iS(),f=S.useRef(null);if(S.useEffect(()=>{var g;n||(g=f.current)==null||g.focus({preventScroll:!0})},[n]),oS({nodeRef:f}),u||!o||!i)return null;const d=e?g=>{const v=r.getState().getNodes().filter(b=>b.selected);e(g,v)}:void 0,h=g=>{Object.prototype.hasOwnProperty.call(Mo,g.key)&&c({x:Mo[g.key].x,y:Mo[g.key].y,isShiftPressed:g.shiftKey})};return I.jsx("div",{className:kt(["react-flow__nodesselection","react-flow__container",t]),style:{transform:l},children:I.jsx("div",{ref:f,className:"react-flow__nodesselection-rect",onContextMenu:d,tabIndex:n?void 0:-1,onKeyDown:n?void 0:h,style:{width:o,height:i,top:a,left:s}})})}var $3=S.memo(R3);const L3=e=>e.nodesSelectionActive,sS=({children:e,onPaneClick:t,onPaneMouseEnter:n,onPaneMouseMove:r,onPaneMouseLeave:o,onPaneContextMenu:i,onPaneScroll:s,deleteKeyCode:a,onMove:l,onMoveStart:u,onMoveEnd:c,selectionKeyCode:f,selectionOnDrag:d,selectionMode:h,onSelectionStart:g,onSelectionEnd:v,multiSelectionKeyCode:b,panActivationKeyCode:m,zoomActivationKeyCode:p,elementsSelectable:y,zoomOnScroll:w,zoomOnPinch:_,panOnScroll:T,panOnScrollSpeed:N,panOnScrollMode:A,zoomOnDoubleClick:z,panOnDrag:B,defaultViewport:D,translateExtent:O,minZoom:L,maxZoom:E,preventScrolling:M,onSelectionContextMenu:k,noWheelClassName:V,noPanClassName:P,disableKeyboardA11y:C})=>{const $=_e(L3),x=hs(f),F=hs(m)||B,U=x||d&&F!==!0;return w3({deleteKeyCode:a,multiSelectionKeyCode:b}),I.jsx(E3,{onMove:l,onMoveStart:u,onMoveEnd:c,onPaneContextMenu:i,elementsSelectable:y,zoomOnScroll:w,zoomOnPinch:_,panOnScroll:T,panOnScrollSpeed:N,panOnScrollMode:A,zoomOnDoubleClick:z,panOnDrag:!x&&F,defaultViewport:D,translateExtent:O,minZoom:L,maxZoom:E,zoomActivationKeyCode:p,preventScrolling:M,noWheelClassName:V,noPanClassName:P,children:I.jsxs(tS,{onSelectionStart:g,onSelectionEnd:v,onPaneClick:t,onPaneMouseEnter:n,onPaneMouseMove:r,onPaneMouseLeave:o,onPaneContextMenu:i,onPaneScroll:s,panOnDrag:F,isSelecting:!!U,selectionMode:h,children:[e,$&&I.jsx($3,{onSelectionContextMenu:k,noPanClassName:P,disableKeyboardA11y:C})]})})};sS.displayName="FlowRenderer";var D3=S.memo(sS);function O3(e){return _e(S.useCallback(n=>e?Lx(n.nodeInternals,{x:0,y:0,width:n.width,height:n.height},n.transform,!0):n.getNodes(),[e]))}function V3(e){const t={input:gi(e.input||Ux),default:gi(e.default||Xf),output:gi(e.output||Wx),group:gi(e.group||Fh)},n={},r=Object.keys(e).filter(o=>!["input","default","output","group"].includes(o)).reduce((o,i)=>(o[i]=gi(e[i]||Xf),o),n);return{...t,...r}}const I3=({x:e,y:t,width:n,height:r,origin:o})=>!n||!r?{x:e,y:t}:o[0]<0||o[1]<0||o[0]>1||o[1]>1?{x:e,y:t}:{x:e-n*o[0],y:t-r*o[1]},z3=e=>({nodesDraggable:e.nodesDraggable,nodesConnectable:e.nodesConnectable,nodesFocusable:e.nodesFocusable,elementsSelectable:e.elementsSelectable,updateNodeDimensions:e.updateNodeDimensions,onError:e.onError}),aS=e=>{const{nodesDraggable:t,nodesConnectable:n,nodesFocusable:r,elementsSelectable:o,updateNodeDimensions:i,onError:s}=_e(z3,st),a=O3(e.onlyRenderVisibleElements),l=S.useRef(),u=S.useMemo(()=>{if(typeof ResizeObserver>"u")return null;const c=new ResizeObserver(f=>{const d=f.map(h=>({id:h.target.getAttribute("data-id"),nodeElement:h.target,forceUpdate:!0}));i(d)});return l.current=c,c},[]);return S.useEffect(()=>()=>{var c;(c=l==null?void 0:l.current)==null||c.disconnect()},[]),I.jsx("div",{className:"react-flow__nodes",style:jh,children:a.map(c=>{var _,T;let f=c.type||"default";e.nodeTypes[f]||(s==null||s("003",yn.error003(f)),f="default");const d=e.nodeTypes[f]||e.nodeTypes.default,h=!!(c.draggable||t&&typeof c.draggable>"u"),g=!!(c.selectable||o&&typeof c.selectable>"u"),v=!!(c.connectable||n&&typeof c.connectable>"u"),b=!!(c.focusable||r&&typeof c.focusable>"u"),m=e.nodeExtent?$h(c.positionAbsolute,e.nodeExtent):c.positionAbsolute,p=(m==null?void 0:m.x)??0,y=(m==null?void 0:m.y)??0,w=I3({x:p,y,width:c.width??0,height:c.height??0,origin:e.nodeOrigin});return I.jsx(d,{id:c.id,className:c.className,style:c.style,type:f,data:c.data,sourcePosition:c.sourcePosition||Y.Bottom,targetPosition:c.targetPosition||Y.Top,hidden:c.hidden,xPos:p,yPos:y,xPosOrigin:w.x,yPosOrigin:w.y,selectNodesOnDrag:e.selectNodesOnDrag,onClick:e.onNodeClick,onMouseEnter:e.onNodeMouseEnter,onMouseMove:e.onNodeMouseMove,onMouseLeave:e.onNodeMouseLeave,onContextMenu:e.onNodeContextMenu,onDoubleClick:e.onNodeDoubleClick,selected:!!c.selected,isDraggable:h,isSelectable:g,isConnectable:v,isFocusable:b,resizeObserver:u,dragHandle:c.dragHandle,zIndex:((_=c[Me])==null?void 0:_.z)??0,isParent:!!((T=c[Me])!=null&&T.isParent),noDragClassName:e.noDragClassName,noPanClassName:e.noPanClassName,initialized:!!c.width&&!!c.height,rfId:e.rfId,disableKeyboardA11y:e.disableKeyboardA11y,ariaLabel:c.ariaLabel},c.id)})})};aS.displayName="NodeRenderer";var B3=S.memo(aS);const F3=(e,t,n)=>n===Y.Left?e-t:n===Y.Right?e+t:e,j3=(e,t,n)=>n===Y.Top?e-t:n===Y.Bottom?e+t:e,yy="react-flow__edgeupdater",vy=({position:e,centerX:t,centerY:n,radius:r=10,onMouseDown:o,onMouseEnter:i,onMouseOut:s,type:a})=>I.jsx("circle",{onMouseDown:o,onMouseEnter:i,onMouseOut:s,className:kt([yy,`${yy}-${a}`]),cx:F3(t,r,e),cy:j3(n,r,e),r,stroke:"transparent",fill:"transparent"}),U3=()=>!0;var eo=e=>{const t=({id:n,className:r,type:o,data:i,onClick:s,onEdgeDoubleClick:a,selected:l,animated:u,label:c,labelStyle:f,labelShowBg:d,labelBgStyle:h,labelBgPadding:g,labelBgBorderRadius:v,style:b,source:m,target:p,sourceX:y,sourceY:w,targetX:_,targetY:T,sourcePosition:N,targetPosition:A,elementsSelectable:z,hidden:B,sourceHandleId:D,targetHandleId:O,onContextMenu:L,onMouseEnter:E,onMouseMove:M,onMouseLeave:k,edgeUpdaterRadius:V,onEdgeUpdate:P,onEdgeUpdateStart:C,onEdgeUpdateEnd:$,markerEnd:x,markerStart:R,rfId:F,ariaLabel:U,isFocusable:H,isUpdatable:W,pathOptions:K,interactionWidth:X})=>{const Z=S.useRef(null),[J,we]=S.useState(!1),[Qe,at]=S.useState(!1),Ce=Ie(),de=S.useMemo(()=>`url(#${Yf(R,F)})`,[R,F]),We=S.useMemo(()=>`url(#${Yf(x,F)})`,[x,F]);if(B)return null;const Q=ze=>{const{edges:lt,addSelectedEdges:ar}=Ce.getState();if(z&&(Ce.setState({nodesSelectionActive:!1}),ar([n])),s){const lr=lt.find(ur=>ur.id===n);s(ze,lr)}},wn=pi(n,Ce.getState,a),or=pi(n,Ce.getState,L),Xo=pi(n,Ce.getState,E),qo=pi(n,Ce.getState,M),Hr=pi(n,Ce.getState,k),ir=(ze,lt)=>{if(ze.button!==0)return;const{edges:ar,isValidConnection:lr}=Ce.getState(),ur=lt?p:m,Ns=(lt?O:D)||null,cr=lt?"target":"source",fu=lr||U3,du=lt,Qo=ar.find(fr=>fr.id===n);at(!0),C==null||C(ze,Qo,cr);const hu=fr=>{at(!1),$==null||$(fr,Qo,cr)};zx({event:ze,handleId:Ns,nodeId:ur,onConnect:fr=>P==null?void 0:P(Qo,fr),isTarget:du,getState:Ce.getState,setState:Ce.setState,isValidConnection:fu,edgeUpdaterType:cr,onEdgeUpdateEnd:hu})},xn=ze=>ir(ze,!0),Wr=ze=>ir(ze,!1),Sn=()=>we(!0),sr=()=>we(!1),Zo=!z&&!s,Gr=ze=>{var lt;if(Tx.includes(ze.key)&&z){const{unselectNodesAndEdges:ar,addSelectedEdges:lr,edges:ur}=Ce.getState();ze.key==="Escape"?((lt=Z.current)==null||lt.blur(),ar({edges:[ur.find(cr=>cr.id===n)]})):lr([n])}};return I.jsxs("g",{className:kt(["react-flow__edge",`react-flow__edge-${o}`,r,{selected:l,animated:u,inactive:Zo,updating:J}]),onClick:Q,onDoubleClick:wn,onContextMenu:or,onMouseEnter:Xo,onMouseMove:qo,onMouseLeave:Hr,onKeyDown:H?Gr:void 0,tabIndex:H?0:void 0,role:H?"button":"img","data-testid":`rf__edge-${n}`,"aria-label":U===null?void 0:U||`Edge from ${m} to ${p}`,"aria-describedby":H?`${Yx}-${F}`:void 0,ref:Z,children:[!Qe&&I.jsx(e,{id:n,source:m,target:p,selected:l,animated:u,label:c,labelStyle:f,labelShowBg:d,labelBgStyle:h,labelBgPadding:g,labelBgBorderRadius:v,data:i,style:b,sourceX:y,sourceY:w,targetX:_,targetY:T,sourcePosition:N,targetPosition:A,sourceHandleId:D,targetHandleId:O,markerStart:de,markerEnd:We,pathOptions:K,interactionWidth:X}),W&&I.jsxs(I.Fragment,{children:[(W==="source"||W===!0)&&I.jsx(vy,{position:N,centerX:y,centerY:w,radius:V,onMouseDown:xn,onMouseEnter:Sn,onMouseOut:sr,type:"source"}),(W==="target"||W===!0)&&I.jsx(vy,{position:A,centerX:_,centerY:T,radius:V,onMouseDown:Wr,onMouseEnter:Sn,onMouseOut:sr,type:"target"})]})]})};return t.displayName="EdgeWrapper",S.memo(t)};function H3(e){const t={default:eo(e.default||Pl),straight:eo(e.bezier||Vh),step:eo(e.step||Oh),smoothstep:eo(e.step||lu),simplebezier:eo(e.simplebezier||Dh)},n={},r=Object.keys(e).filter(o=>!["default","bezier"].includes(o)).reduce((o,i)=>(o[i]=eo(e[i]||Pl),o),n);return{...t,...r}}function wy(e,t,n=null){const r=((n==null?void 0:n.x)||0)+t.x,o=((n==null?void 0:n.y)||0)+t.y,i=(n==null?void 0:n.width)||t.width,s=(n==null?void 0:n.height)||t.height;switch(e){case Y.Top:return{x:r+i/2,y:o};case Y.Right:return{x:r+i,y:o+s/2};case Y.Bottom:return{x:r+i/2,y:o+s};case Y.Left:return{x:r,y:o+s/2}}}function xy(e,t){return e?e.length===1||!t?e[0]:t&&e.find(n=>n.id===t)||null:null}const W3=(e,t,n,r,o,i)=>{const s=wy(n,e,t),a=wy(i,r,o);return{sourceX:s.x,sourceY:s.y,targetX:a.x,targetY:a.y}};function G3({sourcePos:e,targetPos:t,sourceWidth:n,sourceHeight:r,targetWidth:o,targetHeight:i,width:s,height:a,transform:l}){const u={x:Math.min(e.x,t.x),y:Math.min(e.y,t.y),x2:Math.max(e.x+n,t.x+o),y2:Math.max(e.y+r,t.y+i)};u.x===u.x2&&(u.x2+=1),u.y===u.y2&&(u.y2+=1);const c=Lh({x:(0-l[0])/l[2],y:(0-l[1])/l[2],width:s/l[2],height:a/l[2]}),f=Math.max(0,Math.min(c.x2,u.x2)-Math.max(c.x,u.x)),d=Math.max(0,Math.min(c.y2,u.y2)-Math.max(c.y,u.y));return Math.ceil(f*d)>0}function Sy(e){var r,o,i,s,a;const t=((r=e==null?void 0:e[Me])==null?void 0:r.handleBounds)||null,n=t&&(e==null?void 0:e.width)&&(e==null?void 0:e.height)&&typeof((o=e==null?void 0:e.positionAbsolute)==null?void 0:o.x)<"u"&&typeof((i=e==null?void 0:e.positionAbsolute)==null?void 0:i.y)<"u";return[{x:((s=e==null?void 0:e.positionAbsolute)==null?void 0:s.x)||0,y:((a=e==null?void 0:e.positionAbsolute)==null?void 0:a.y)||0,width:(e==null?void 0:e.width)||0,height:(e==null?void 0:e.height)||0},t,!!n]}const K3=[{level:0,isMaxLevel:!0,edges:[]}];function Y3(e,t,n=!1){let r=-1;const o=e.reduce((s,a)=>{var c,f;const l=bt(a.zIndex);let u=l?a.zIndex:0;if(n){const d=t.get(a.target),h=t.get(a.source),g=a.selected||(d==null?void 0:d.selected)||(h==null?void 0:h.selected),v=Math.max(((c=h==null?void 0:h[Me])==null?void 0:c.z)||0,((f=d==null?void 0:d[Me])==null?void 0:f.z)||0,1e3);u=(l?a.zIndex:0)+(g?v:0)}return s[u]?s[u].push(a):s[u]=[a],r=u>r?u:r,s},{}),i=Object.entries(o).map(([s,a])=>{const l=+s;return{edges:a,level:l,isMaxLevel:l===r}});return i.length===0?K3:i}function X3(e,t,n){const r=_e(S.useCallback(o=>e?o.edges.filter(i=>{const s=t.get(i.source),a=t.get(i.target);return(s==null?void 0:s.width)&&(s==null?void 0:s.height)&&(a==null?void 0:a.width)&&(a==null?void 0:a.height)&&G3({sourcePos:s.positionAbsolute||{x:0,y:0},targetPos:a.positionAbsolute||{x:0,y:0},sourceWidth:s.width,sourceHeight:s.height,targetWidth:a.width,targetHeight:a.height,width:o.width,height:o.height,transform:o.transform})}):o.edges,[e,t]));return Y3(r,t,n)}const q3=({color:e="none",strokeWidth:t=1})=>I.jsx("polyline",{stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:t,fill:"none",points:"-5,-4 0,0 -5,4"}),Z3=({color:e="none",strokeWidth:t=1})=>I.jsx("polyline",{stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:t,fill:e,points:"-5,-4 0,0 -5,4 -5,-4"}),by={[Tl.Arrow]:q3,[Tl.ArrowClosed]:Z3};function Q3(e){const t=Ie();return S.useMemo(()=>{var o,i;return Object.prototype.hasOwnProperty.call(by,e)?by[e]:((i=(o=t.getState()).onError)==null||i.call(o,"009",yn.error009(e)),null)},[e])}const J3=({id:e,type:t,color:n,width:r=12.5,height:o=12.5,markerUnits:i="strokeWidth",strokeWidth:s,orient:a="auto-start-reverse"})=>{const l=Q3(t);return l?I.jsx("marker",{className:"react-flow__arrowhead",id:e,markerWidth:`${r}`,markerHeight:`${o}`,viewBox:"-10 -10 20 20",markerUnits:i,orient:a,refX:"0",refY:"0",children:I.jsx(l,{color:n,strokeWidth:s})}):null},eD=({defaultColor:e,rfId:t})=>n=>{const r=[];return n.edges.reduce((o,i)=>([i.markerStart,i.markerEnd].forEach(s=>{if(s&&typeof s=="object"){const a=Yf(s,t);r.includes(a)||(o.push({id:a,color:s.color||e,...s}),r.push(a))}}),o),[]).sort((o,i)=>o.id.localeCompare(i.id))},lS=({defaultColor:e,rfId:t})=>{const n=_e(S.useCallback(eD({defaultColor:e,rfId:t}),[e,t]),(r,o)=>!(r.length!==o.length||r.some((i,s)=>i.id!==o[s].id)));return I.jsx("defs",{children:n.map(r=>I.jsx(J3,{id:r.id,type:r.type,color:r.color,width:r.width,height:r.height,markerUnits:r.markerUnits,strokeWidth:r.strokeWidth,orient:r.orient},r.id))})};lS.displayName="MarkerDefinitions";var tD=S.memo(lS);const nD=e=>({nodesConnectable:e.nodesConnectable,edgesFocusable:e.edgesFocusable,edgesUpdatable:e.edgesUpdatable,elementsSelectable:e.elementsSelectable,width:e.width,height:e.height,connectionMode:e.connectionMode,nodeInternals:e.nodeInternals,onError:e.onError}),uS=({defaultMarkerColor:e,onlyRenderVisibleElements:t,elevateEdgesOnSelect:n,rfId:r,edgeTypes:o,noPanClassName:i,onEdgeUpdate:s,onEdgeContextMenu:a,onEdgeMouseEnter:l,onEdgeMouseMove:u,onEdgeMouseLeave:c,onEdgeClick:f,edgeUpdaterRadius:d,onEdgeDoubleClick:h,onEdgeUpdateStart:g,onEdgeUpdateEnd:v,children:b})=>{const{edgesFocusable:m,edgesUpdatable:p,elementsSelectable:y,width:w,height:_,connectionMode:T,nodeInternals:N,onError:A}=_e(nD,st),z=X3(t,N,n);return w?I.jsxs(I.Fragment,{children:[z.map(({level:B,edges:D,isMaxLevel:O})=>I.jsxs("svg",{style:{zIndex:B},width:w,height:_,className:"react-flow__edges react-flow__container",children:[O&&I.jsx(tD,{defaultColor:e,rfId:r}),I.jsx("g",{children:D.map(L=>{const[E,M,k]=Sy(N.get(L.source)),[V,P,C]=Sy(N.get(L.target));if(!k||!C)return null;let $=L.type||"default";o[$]||(A==null||A("011",yn.error011($)),$="default");const x=o[$]||o.default,R=T===Ir.Strict?P.target:(P.target??[]).concat(P.source??[]),F=xy(M.source,L.sourceHandle),U=xy(R,L.targetHandle),H=(F==null?void 0:F.position)||Y.Bottom,W=(U==null?void 0:U.position)||Y.Top,K=!!(L.focusable||m&&typeof L.focusable>"u"),X=typeof s<"u"&&(L.updatable||p&&typeof L.updatable>"u");if(!F||!U)return A==null||A("008",yn.error008(F,L)),null;const{sourceX:Z,sourceY:J,targetX:we,targetY:Qe}=W3(E,F,H,V,U,W);return I.jsx(x,{id:L.id,className:kt([L.className,i]),type:$,data:L.data,selected:!!L.selected,animated:!!L.animated,hidden:!!L.hidden,label:L.label,labelStyle:L.labelStyle,labelShowBg:L.labelShowBg,labelBgStyle:L.labelBgStyle,labelBgPadding:L.labelBgPadding,labelBgBorderRadius:L.labelBgBorderRadius,style:L.style,source:L.source,target:L.target,sourceHandleId:L.sourceHandle,targetHandleId:L.targetHandle,markerEnd:L.markerEnd,markerStart:L.markerStart,sourceX:Z,sourceY:J,targetX:we,targetY:Qe,sourcePosition:H,targetPosition:W,elementsSelectable:y,onEdgeUpdate:s,onContextMenu:a,onMouseEnter:l,onMouseMove:u,onMouseLeave:c,onClick:f,edgeUpdaterRadius:d,onEdgeDoubleClick:h,onEdgeUpdateStart:g,onEdgeUpdateEnd:v,rfId:r,ariaLabel:L.ariaLabel,isFocusable:K,isUpdatable:X,pathOptions:"pathOptions"in L?L.pathOptions:void 0,interactionWidth:L.interactionWidth},L.id)})})]},B)),b]}):null};uS.displayName="EdgeRenderer";var rD=S.memo(uS);const oD=e=>`translate(${e.transform[0]}px,${e.transform[1]}px) scale(${e.transform[2]})`;function iD({children:e}){const t=_e(oD);return I.jsx("div",{className:"react-flow__viewport react-flow__container",style:{transform:t},children:e})}function sD(e){const t=Qx(),n=S.useRef(!1);S.useEffect(()=>{!n.current&&t.viewportInitialized&&e&&(setTimeout(()=>e(t),1),n.current=!0)},[e,t.viewportInitialized])}const aD={[Y.Left]:Y.Right,[Y.Right]:Y.Left,[Y.Top]:Y.Bottom,[Y.Bottom]:Y.Top},cS=({nodeId:e,handleType:t,style:n,type:r=$n.Bezier,CustomComponent:o,connectionStatus:i})=>{var T,N,A;const{fromNode:s,handleId:a,toX:l,toY:u,connectionMode:c}=_e(S.useCallback(z=>({fromNode:z.nodeInternals.get(e),handleId:z.connectionHandleId,toX:(z.connectionPosition.x-z.transform[0])/z.transform[2],toY:(z.connectionPosition.y-z.transform[1])/z.transform[2],connectionMode:z.connectionMode}),[e]),st),f=(T=s==null?void 0:s[Me])==null?void 0:T.handleBounds;let d=f==null?void 0:f[t];if(c===Ir.Loose&&(d=d||(f==null?void 0:f[t==="source"?"target":"source"])),!s||!d)return null;const h=a?d.find(z=>z.id===a):d[0],g=h?h.x+h.width/2:(s.width??0)/2,v=h?h.y+h.height/2:s.height??0,b=(((N=s.positionAbsolute)==null?void 0:N.x)??0)+g,m=(((A=s.positionAbsolute)==null?void 0:A.y)??0)+v,p=h==null?void 0:h.position,y=p?aD[p]:null;if(!p||!y)return null;if(o)return I.jsx(o,{connectionLineType:r,connectionLineStyle:n,fromNode:s,fromHandle:h,fromX:b,fromY:m,toX:l,toY:u,fromPosition:p,toPosition:y,connectionStatus:i});let w="";const _={sourceX:b,sourceY:m,sourcePosition:p,targetX:l,targetY:u,targetPosition:y};return r===$n.Bezier?[w]=Rx(_):r===$n.Step?[w]=Kf({..._,borderRadius:0}):r===$n.SmoothStep?[w]=Kf(_):r===$n.SimpleBezier?[w]=Mx(_):w=`M${b},${m} ${l},${u}`,I.jsx("path",{d:w,fill:"none",className:"react-flow__connection-path",style:n})};cS.displayName="ConnectionLine";const lD=e=>({nodeId:e.connectionNodeId,handleType:e.connectionHandleType,nodesConnectable:e.nodesConnectable,connectionStatus:e.connectionStatus,width:e.width,height:e.height});function uD({containerStyle:e,style:t,type:n,component:r}){const{nodeId:o,handleType:i,nodesConnectable:s,width:a,height:l,connectionStatus:u}=_e(lD,st);return!(o&&i&&a&&s)?null:I.jsx("svg",{style:e,width:a,height:l,className:"react-flow__edges react-flow__connectionline react-flow__container",children:I.jsx("g",{className:kt(["react-flow__connection",u]),children:I.jsx(cS,{nodeId:o,handleType:i,style:t,type:n,CustomComponent:r,connectionStatus:u})})})}function Ey(e,t){return S.useRef(null),Ie(),S.useMemo(()=>t(e),[e])}const fS=({nodeTypes:e,edgeTypes:t,onMove:n,onMoveStart:r,onMoveEnd:o,onInit:i,onNodeClick:s,onEdgeClick:a,onNodeDoubleClick:l,onEdgeDoubleClick:u,onNodeMouseEnter:c,onNodeMouseMove:f,onNodeMouseLeave:d,onNodeContextMenu:h,onSelectionContextMenu:g,onSelectionStart:v,onSelectionEnd:b,connectionLineType:m,connectionLineStyle:p,connectionLineComponent:y,connectionLineContainerStyle:w,selectionKeyCode:_,selectionOnDrag:T,selectionMode:N,multiSelectionKeyCode:A,panActivationKeyCode:z,zoomActivationKeyCode:B,deleteKeyCode:D,onlyRenderVisibleElements:O,elementsSelectable:L,selectNodesOnDrag:E,defaultViewport:M,translateExtent:k,minZoom:V,maxZoom:P,preventScrolling:C,defaultMarkerColor:$,zoomOnScroll:x,zoomOnPinch:R,panOnScroll:F,panOnScrollSpeed:U,panOnScrollMode:H,zoomOnDoubleClick:W,panOnDrag:K,onPaneClick:X,onPaneMouseEnter:Z,onPaneMouseMove:J,onPaneMouseLeave:we,onPaneScroll:Qe,onPaneContextMenu:at,onEdgeUpdate:Ce,onEdgeContextMenu:de,onEdgeMouseEnter:We,onEdgeMouseMove:Q,onEdgeMouseLeave:wn,edgeUpdaterRadius:or,onEdgeUpdateStart:Xo,onEdgeUpdateEnd:qo,noDragClassName:Hr,noWheelClassName:ir,noPanClassName:xn,elevateEdgesOnSelect:Wr,disableKeyboardA11y:Sn,nodeOrigin:sr,nodeExtent:Zo,rfId:Gr})=>{const ze=Ey(e,V3),lt=Ey(t,H3);return sD(i),I.jsx(D3,{onPaneClick:X,onPaneMouseEnter:Z,onPaneMouseMove:J,onPaneMouseLeave:we,onPaneContextMenu:at,onPaneScroll:Qe,deleteKeyCode:D,selectionKeyCode:_,selectionOnDrag:T,selectionMode:N,onSelectionStart:v,onSelectionEnd:b,multiSelectionKeyCode:A,panActivationKeyCode:z,zoomActivationKeyCode:B,elementsSelectable:L,onMove:n,onMoveStart:r,onMoveEnd:o,zoomOnScroll:x,zoomOnPinch:R,zoomOnDoubleClick:W,panOnScroll:F,panOnScrollSpeed:U,panOnScrollMode:H,panOnDrag:K,defaultViewport:M,translateExtent:k,minZoom:V,maxZoom:P,onSelectionContextMenu:g,preventScrolling:C,noDragClassName:Hr,noWheelClassName:ir,noPanClassName:xn,disableKeyboardA11y:Sn,children:I.jsxs(iD,{children:[I.jsx(rD,{edgeTypes:lt,onEdgeClick:a,onEdgeDoubleClick:u,onEdgeUpdate:Ce,onlyRenderVisibleElements:O,onEdgeContextMenu:de,onEdgeMouseEnter:We,onEdgeMouseMove:Q,onEdgeMouseLeave:wn,onEdgeUpdateStart:Xo,onEdgeUpdateEnd:qo,edgeUpdaterRadius:or,defaultMarkerColor:$,noPanClassName:xn,elevateEdgesOnSelect:!!Wr,disableKeyboardA11y:Sn,rfId:Gr,children:I.jsx(uD,{style:p,type:m,component:y,containerStyle:w})}),I.jsx("div",{className:"react-flow__edgelabel-renderer"}),I.jsx(B3,{nodeTypes:ze,onNodeClick:s,onNodeDoubleClick:l,onNodeMouseEnter:c,onNodeMouseMove:f,onNodeMouseLeave:d,onNodeContextMenu:h,selectNodesOnDrag:E,onlyRenderVisibleElements:O,noPanClassName:xn,noDragClassName:Hr,disableKeyboardA11y:Sn,nodeOrigin:sr,nodeExtent:Zo,rfId:Gr})]})})};fS.displayName="GraphView";var cD=S.memo(fS);const Zf=[[Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY],[Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY]],_n={rfId:"1",width:0,height:0,transform:[0,0,1],nodeInternals:new Map,edges:[],onNodesChange:null,onEdgesChange:null,hasDefaultNodes:!1,hasDefaultEdges:!1,d3Zoom:null,d3Selection:null,d3ZoomHandler:void 0,minZoom:.5,maxZoom:2,translateExtent:Zf,nodeExtent:Zf,nodesSelectionActive:!1,userSelectionActive:!1,userSelectionRect:null,connectionNodeId:null,connectionHandleId:null,connectionHandleType:"source",connectionPosition:{x:0,y:0},connectionStatus:null,connectionMode:Ir.Strict,domNode:null,paneDragging:!1,noPanClassName:"nopan",nodeOrigin:[0,0],snapGrid:[15,15],snapToGrid:!1,nodesDraggable:!0,nodesConnectable:!0,nodesFocusable:!0,edgesFocusable:!0,edgesUpdatable:!0,elementsSelectable:!0,elevateNodesOnSelect:!0,fitViewOnInit:!1,fitViewOnInitDone:!1,fitViewOnInitOptions:void 0,multiSelectionActive:!1,connectionStartHandle:null,connectionEndHandle:null,connectionClickStartHandle:null,connectOnClick:!0,ariaLiveMessage:"",autoPanOnConnect:!0,autoPanOnNodeDrag:!0,connectionRadius:20,onError:VL,isValidConnection:void 0},fD=()=>XA((e,t)=>({..._n,setNodes:n=>{const{nodeInternals:r,nodeOrigin:o,elevateNodesOnSelect:i}=t();e({nodeInternals:fc(n,r,o,i)})},getNodes:()=>Array.from(t().nodeInternals.values()),setEdges:n=>{const{defaultEdgeOptions:r={}}=t();e({edges:n.map(o=>({...r,...o}))})},setDefaultNodesAndEdges:(n,r)=>{const o=typeof n<"u",i=typeof r<"u",s=o?fc(n,new Map,t().nodeOrigin,t().elevateNodesOnSelect):new Map;e({nodeInternals:s,edges:i?r:[],hasDefaultNodes:o,hasDefaultEdges:i})},updateNodeDimensions:n=>{const{onNodesChange:r,nodeInternals:o,fitViewOnInit:i,fitViewOnInitDone:s,fitViewOnInitOptions:a,domNode:l,nodeOrigin:u}=t(),c=l==null?void 0:l.querySelector(".react-flow__viewport");if(!c)return;const f=window.getComputedStyle(c),{m22:d}=new window.DOMMatrixReadOnly(f.transform),h=n.reduce((v,b)=>{const m=o.get(b.id);if(m){const p=Rh(b.nodeElement);!!(p.width&&p.height&&(m.width!==p.width||m.height!==p.height||b.forceUpdate))&&(o.set(m.id,{...m,[Me]:{...m[Me],handleBounds:{source:gy(".source",b.nodeElement,d,u),target:gy(".target",b.nodeElement,d,u)}},...p}),v.push({id:m.id,type:"dimensions",dimensions:p}))}return v},[]);qx(o,u);const g=s||i&&!s&&Zx(t,{initial:!0,...a});e({nodeInternals:new Map(o),fitViewOnInitDone:g}),(h==null?void 0:h.length)>0&&(r==null||r(h))},updateNodePositions:(n,r=!0,o=!1)=>{const{triggerNodeChanges:i}=t(),s=n.map(a=>{const l={id:a.id,type:"position",dragging:o};return r&&(l.positionAbsolute=a.positionAbsolute,l.position=a.position),l});i(s)},triggerNodeChanges:n=>{const{onNodesChange:r,nodeInternals:o,hasDefaultNodes:i,nodeOrigin:s,getNodes:a,elevateNodesOnSelect:l}=t();if(n!=null&&n.length){if(i){const u=eS(n,a()),c=fc(u,o,s,l);e({nodeInternals:c})}r==null||r(n)}},addSelectedNodes:n=>{const{multiSelectionActive:r,edges:o,getNodes:i}=t();let s,a=null;r?s=n.map(l=>An(l,!0)):(s=xo(i(),n),a=xo(o,[])),ua({changedNodes:s,changedEdges:a,get:t,set:e})},addSelectedEdges:n=>{const{multiSelectionActive:r,edges:o,getNodes:i}=t();let s,a=null;r?s=n.map(l=>An(l,!0)):(s=xo(o,n),a=xo(i(),[])),ua({changedNodes:a,changedEdges:s,get:t,set:e})},unselectNodesAndEdges:({nodes:n,edges:r}={})=>{const{edges:o,getNodes:i}=t(),s=n||i(),a=r||o,l=s.map(c=>(c.selected=!1,An(c.id,!1))),u=a.map(c=>An(c.id,!1));ua({changedNodes:l,changedEdges:u,get:t,set:e})},setMinZoom:n=>{const{d3Zoom:r,maxZoom:o}=t();r==null||r.scaleExtent([n,o]),e({minZoom:n})},setMaxZoom:n=>{const{d3Zoom:r,minZoom:o}=t();r==null||r.scaleExtent([o,n]),e({maxZoom:n})},setTranslateExtent:n=>{var r;(r=t().d3Zoom)==null||r.translateExtent(n),e({translateExtent:n})},resetSelectedElements:()=>{const{edges:n,getNodes:r}=t(),i=r().filter(a=>a.selected).map(a=>An(a.id,!1)),s=n.filter(a=>a.selected).map(a=>An(a.id,!1));ua({changedNodes:i,changedEdges:s,get:t,set:e})},setNodeExtent:n=>{const{nodeInternals:r}=t();r.forEach(o=>{o.positionAbsolute=$h(o.position,n)}),e({nodeExtent:n,nodeInternals:new Map(r)})},panBy:n=>{const{transform:r,width:o,height:i,d3Zoom:s,d3Selection:a,translateExtent:l}=t();if(!s||!a||!n.x&&!n.y)return!1;const u=Kn.translate(r[0]+n.x,r[1]+n.y).scale(r[2]),c=[[0,0],[o,i]],f=s==null?void 0:s.constrain()(u,c,l);return s.transform(a,f),r[0]!==f.x||r[1]!==f.y||r[2]!==f.k},cancelConnection:()=>e({connectionNodeId:_n.connectionNodeId,connectionHandleId:_n.connectionHandleId,connectionHandleType:_n.connectionHandleType,connectionStatus:_n.connectionStatus,connectionStartHandle:_n.connectionStartHandle,connectionEndHandle:_n.connectionEndHandle}),reset:()=>e({..._n})}),Object.is),Uh=({children:e})=>{const t=S.useRef(null);return t.current||(t.current=fD()),I.jsx(PL,{value:t.current,children:e})};Uh.displayName="ReactFlowProvider";const dS=({children:e})=>S.useContext(au)?I.jsx(I.Fragment,{children:e}):I.jsx(Uh,{children:e});dS.displayName="ReactFlowWrapper";const dD={input:Ux,default:Xf,output:Wx,group:Fh},hD={default:Pl,straight:Vh,step:Oh,smoothstep:lu,simplebezier:Dh},pD=[0,0],mD=[15,15],gD={x:0,y:0,zoom:1},yD={width:"100%",height:"100%",overflow:"hidden",position:"relative",zIndex:0},vD=S.forwardRef(({nodes:e,edges:t,defaultNodes:n,defaultEdges:r,className:o,nodeTypes:i=dD,edgeTypes:s=hD,onNodeClick:a,onEdgeClick:l,onInit:u,onMove:c,onMoveStart:f,onMoveEnd:d,onConnect:h,onConnectStart:g,onConnectEnd:v,onClickConnectStart:b,onClickConnectEnd:m,onNodeMouseEnter:p,onNodeMouseMove:y,onNodeMouseLeave:w,onNodeContextMenu:_,onNodeDoubleClick:T,onNodeDragStart:N,onNodeDrag:A,onNodeDragStop:z,onNodesDelete:B,onEdgesDelete:D,onSelectionChange:O,onSelectionDragStart:L,onSelectionDrag:E,onSelectionDragStop:M,onSelectionContextMenu:k,onSelectionStart:V,onSelectionEnd:P,connectionMode:C=Ir.Strict,connectionLineType:$=$n.Bezier,connectionLineStyle:x,connectionLineComponent:R,connectionLineContainerStyle:F,deleteKeyCode:U="Backspace",selectionKeyCode:H="Shift",selectionOnDrag:W=!1,selectionMode:K=ds.Full,panActivationKeyCode:X="Space",multiSelectionKeyCode:Z=kl()?"Meta":"Control",zoomActivationKeyCode:J=kl()?"Meta":"Control",snapToGrid:we=!1,snapGrid:Qe=mD,onlyRenderVisibleElements:at=!1,selectNodesOnDrag:Ce=!0,nodesDraggable:de,nodesConnectable:We,nodesFocusable:Q,nodeOrigin:wn=pD,edgesFocusable:or,edgesUpdatable:Xo,elementsSelectable:qo,defaultViewport:Hr=gD,minZoom:ir=.5,maxZoom:xn=2,translateExtent:Wr=Zf,preventScrolling:Sn=!0,nodeExtent:sr,defaultMarkerColor:Zo="#b1b1b7",zoomOnScroll:Gr=!0,zoomOnPinch:ze=!0,panOnScroll:lt=!1,panOnScrollSpeed:ar=.5,panOnScrollMode:lr=kr.Free,zoomOnDoubleClick:ur=!0,panOnDrag:Ns=!0,onPaneClick:cr,onPaneMouseEnter:fu,onPaneMouseMove:du,onPaneMouseLeave:Qo,onPaneScroll:hu,onPaneContextMenu:Xh,children:fr,onEdgeUpdate:TS,onEdgeContextMenu:PS,onEdgeDoubleClick:NS,onEdgeMouseEnter:AS,onEdgeMouseMove:MS,onEdgeMouseLeave:RS,onEdgeUpdateStart:$S,onEdgeUpdateEnd:LS,edgeUpdaterRadius:DS=10,onNodesChange:OS,onEdgesChange:VS,noDragClassName:IS="nodrag",noWheelClassName:zS="nowheel",noPanClassName:qh="nopan",fitView:BS=!1,fitViewOptions:FS,connectOnClick:jS=!0,attributionPosition:US,proOptions:HS,defaultEdgeOptions:WS,elevateNodesOnSelect:GS=!0,elevateEdgesOnSelect:KS=!1,disableKeyboardA11y:Zh=!1,autoPanOnConnect:YS=!0,autoPanOnNodeDrag:XS=!0,connectionRadius:qS=20,isValidConnection:ZS,onError:QS,style:JS,id:Qh,...eb},tb)=>{const pu=Qh||"1";return I.jsx("div",{...eb,style:{...JS,...yD},ref:tb,className:kt(["react-flow",o]),"data-testid":"rf__wrapper",id:Qh,children:I.jsxs(dS,{children:[I.jsx(cD,{onInit:u,onMove:c,onMoveStart:f,onMoveEnd:d,onNodeClick:a,onEdgeClick:l,onNodeMouseEnter:p,onNodeMouseMove:y,onNodeMouseLeave:w,onNodeContextMenu:_,onNodeDoubleClick:T,nodeTypes:i,edgeTypes:s,connectionLineType:$,connectionLineStyle:x,connectionLineComponent:R,connectionLineContainerStyle:F,selectionKeyCode:H,selectionOnDrag:W,selectionMode:K,deleteKeyCode:U,multiSelectionKeyCode:Z,panActivationKeyCode:X,zoomActivationKeyCode:J,onlyRenderVisibleElements:at,selectNodesOnDrag:Ce,defaultViewport:Hr,translateExtent:Wr,minZoom:ir,maxZoom:xn,preventScrolling:Sn,zoomOnScroll:Gr,zoomOnPinch:ze,zoomOnDoubleClick:ur,panOnScroll:lt,panOnScrollSpeed:ar,panOnScrollMode:lr,panOnDrag:Ns,onPaneClick:cr,onPaneMouseEnter:fu,onPaneMouseMove:du,onPaneMouseLeave:Qo,onPaneScroll:hu,onPaneContextMenu:Xh,onSelectionContextMenu:k,onSelectionStart:V,onSelectionEnd:P,onEdgeUpdate:TS,onEdgeContextMenu:PS,onEdgeDoubleClick:NS,onEdgeMouseEnter:AS,onEdgeMouseMove:MS,onEdgeMouseLeave:RS,onEdgeUpdateStart:$S,onEdgeUpdateEnd:LS,edgeUpdaterRadius:DS,defaultMarkerColor:Zo,noDragClassName:IS,noWheelClassName:zS,noPanClassName:qh,elevateEdgesOnSelect:KS,rfId:pu,disableKeyboardA11y:Zh,nodeOrigin:wn,nodeExtent:sr}),I.jsx(a3,{nodes:e,edges:t,defaultNodes:n,defaultEdges:r,onConnect:h,onConnectStart:g,onConnectEnd:v,onClickConnectStart:b,onClickConnectEnd:m,nodesDraggable:de,nodesConnectable:We,nodesFocusable:Q,edgesFocusable:or,edgesUpdatable:Xo,elementsSelectable:qo,elevateNodesOnSelect:GS,minZoom:ir,maxZoom:xn,nodeExtent:sr,onNodesChange:OS,onEdgesChange:VS,snapToGrid:we,snapGrid:Qe,connectionMode:C,translateExtent:Wr,connectOnClick:jS,defaultEdgeOptions:WS,fitView:BS,fitViewOptions:FS,onNodesDelete:B,onEdgesDelete:D,onNodeDragStart:N,onNodeDrag:A,onNodeDragStop:z,onSelectionDrag:E,onSelectionDragStart:L,onSelectionDragStop:M,noPanClassName:qh,nodeOrigin:wn,rfId:pu,autoPanOnConnect:YS,autoPanOnNodeDrag:XS,onError:QS,connectionRadius:qS,isValidConnection:ZS}),I.jsx(i3,{onSelectionChange:O}),fr,I.jsx(ML,{proOptions:HS,position:US}),I.jsx(d3,{rfId:pu,disableKeyboardA11y:Zh})]})})});vD.displayName="ReactFlow";function hS(e){return t=>{const[n,r]=S.useState(t),o=S.useCallback(i=>r(s=>e(i,s)),[]);return[n,r,o]}}const SO=hS(eS),bO=hS(k3),wD="modulepreload",xD=function(e){return"/"+e},_y={},SD=function(t,n,r){if(!n||n.length===0)return t();const o=document.getElementsByTagName("link");return Promise.all(n.map(i=>{if(i=xD(i),i in _y)return;_y[i]=!0;const s=i.endsWith(".css"),a=s?'[rel="stylesheet"]':"";if(!!r)for(let c=o.length-1;c>=0;c--){const f=o[c];if(f.href===i&&(!s||f.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${i}"]${a}`))return;const u=document.createElement("link");if(u.rel=s?"stylesheet":wD,s||(u.as="script",u.crossOrigin=""),u.href=i,document.head.appendChild(u),s)return new Promise((c,f)=>{u.addEventListener("load",c),u.addEventListener("error",()=>f(new Error(`Unable to preload CSS for ${i}`)))})})).then(()=>t()).catch(i=>{const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=i,window.dispatchEvent(s),!s.defaultPrevented)throw i})};function bD(e){return I.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 161 161",width:"1em",height:"1em",...e,children:[I.jsx("defs",{children:I.jsx("style",{children:".cls-2{fill-rule:evenodd}"})}),I.jsx("g",{children:I.jsxs("g",{children:[I.jsx("circle",{cx:80.5,cy:80.5,r:79,style:{fill:"#f5cc05"}}),I.jsxs("g",{children:[I.jsxs("g",{children:[I.jsx("path",{d:"M88.67 114.33h2.91q6 0 7.87-1.89c1.22-1.25 1.83-3.9 1.83-7.93V93.89c0-4.46.65-7.7 1.93-9.73s3.51-3.43 6.67-4.2q-4.69-1.08-6.65-4.12c-1.3-2-2-5.28-2-9.77V55.44q0-6-1.83-7.93t-7.87-1.88h-2.86V39.5h2.65q10.65 0 14.24 3.15t3.59 12.62v10.29c0 4.28.77 7.24 2.29 8.87s4.3 2.44 8.32 2.44h2.74V83h-2.74q-6 0-8.32 2.49c-1.52 1.65-2.29 4.64-2.29 9v10.25q0 9.47-3.59 12.64t-14.24 3.12h-2.65Z",className:"cls-2"}),I.jsx("path",{d:"M88.67 114.33h2.91q6 0 7.87-1.89c1.22-1.25 1.83-3.9 1.83-7.93V93.89c0-4.46.65-7.7 1.93-9.73s3.51-3.43 6.67-4.2q-4.69-1.08-6.65-4.12c-1.3-2-2-5.28-2-9.77V55.44q0-6-1.83-7.93t-7.87-1.88h-2.86V39.5h2.65q10.65 0 14.24 3.15t3.59 12.62v10.29c0 4.28.77 7.24 2.29 8.87s4.3 2.44 8.32 2.44h2.74V83h-2.74q-6 0-8.32 2.49c-1.52 1.65-2.29 4.64-2.29 9v10.25q0 9.47-3.59 12.64t-14.24 3.12h-2.65Z",className:"cls-2"})]}),I.jsx("g",{children:I.jsxs("g",{children:[I.jsx("path",{d:"M38.5 85.15h37.33v7.58H38.5Zm0-17.88h37.33v7.49H38.5Z",className:"cls-2"}),I.jsx("path",{d:"M38.5 85.15h37.33v7.58H38.5Zm0-17.88h37.33v7.49H38.5Z",className:"cls-2"})]})})]})]})})]})}const qt=Object.create(null);qt.open="0";qt.close="1";qt.ping="2";qt.pong="3";qt.message="4";qt.upgrade="5";qt.noop="6";const $a=Object.create(null);Object.keys(qt).forEach(e=>{$a[qt[e]]=e});const Qf={type:"error",data:"parser error"},pS=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",mS=typeof ArrayBuffer=="function",gS=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,Hh=({type:e,data:t},n,r)=>pS&&t instanceof Blob?n?r(t):Cy(t,r):mS&&(t instanceof ArrayBuffer||gS(t))?n?r(t):Cy(new Blob([t]),r):r(qt[e]+(t||"")),Cy=(e,t)=>{const n=new FileReader;return n.onload=function(){const r=n.result.split(",")[1];t("b"+(r||""))},n.readAsDataURL(e)};function ky(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}let mc;function ED(e,t){if(pS&&e.data instanceof Blob)return e.data.arrayBuffer().then(ky).then(t);if(mS&&(e.data instanceof ArrayBuffer||gS(e.data)))return t(ky(e.data));Hh(e,!1,n=>{mc||(mc=new TextEncoder),t(mc.encode(n))})}const Ty="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ti=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let e=0;e<Ty.length;e++)Ti[Ty.charCodeAt(e)]=e;const _D=e=>{let t=e.length*.75,n=e.length,r,o=0,i,s,a,l;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);const u=new ArrayBuffer(t),c=new Uint8Array(u);for(r=0;r<n;r+=4)i=Ti[e.charCodeAt(r)],s=Ti[e.charCodeAt(r+1)],a=Ti[e.charCodeAt(r+2)],l=Ti[e.charCodeAt(r+3)],c[o++]=i<<2|s>>4,c[o++]=(s&15)<<4|a>>2,c[o++]=(a&3)<<6|l&63;return u},CD=typeof ArrayBuffer=="function",Wh=(e,t)=>{if(typeof e!="string")return{type:"message",data:yS(e,t)};const n=e.charAt(0);return n==="b"?{type:"message",data:kD(e.substring(1),t)}:$a[n]?e.length>1?{type:$a[n],data:e.substring(1)}:{type:$a[n]}:Qf},kD=(e,t)=>{if(CD){const n=_D(e);return yS(n,t)}else return{base64:!0,data:e}},yS=(e,t)=>{switch(t){case"blob":return e instanceof Blob?e:new Blob([e]);case"arraybuffer":default:return e instanceof ArrayBuffer?e:e.buffer}},vS=String.fromCharCode(30),TD=(e,t)=>{const n=e.length,r=new Array(n);let o=0;e.forEach((i,s)=>{Hh(i,!1,a=>{r[s]=a,++o===n&&t(r.join(vS))})})},PD=(e,t)=>{const n=e.split(vS),r=[];for(let o=0;o<n.length;o++){const i=Wh(n[o],t);if(r.push(i),i.type==="error")break}return r};function ND(){return new TransformStream({transform(e,t){ED(e,n=>{const r=n.length;let o;if(r<126)o=new Uint8Array(1),new DataView(o.buffer).setUint8(0,r);else if(r<65536){o=new Uint8Array(3);const i=new DataView(o.buffer);i.setUint8(0,126),i.setUint16(1,r)}else{o=new Uint8Array(9);const i=new DataView(o.buffer);i.setUint8(0,127),i.setBigUint64(1,BigInt(r))}e.data&&typeof e.data!="string"&&(o[0]|=128),t.enqueue(o),t.enqueue(n)})}})}let gc;function fa(e){return e.reduce((t,n)=>t+n.length,0)}function da(e,t){if(e[0].length===t)return e.shift();const n=new Uint8Array(t);let r=0;for(let o=0;o<t;o++)n[o]=e[0][r++],r===e[0].length&&(e.shift(),r=0);return e.length&&r<e[0].length&&(e[0]=e[0].slice(r)),n}function AD(e,t){gc||(gc=new TextDecoder);const n=[];let r=0,o=-1,i=!1;return new TransformStream({transform(s,a){for(n.push(s);;){if(r===0){if(fa(n)<1)break;const l=da(n,1);i=(l[0]&128)===128,o=l[0]&127,o<126?r=3:o===126?r=1:r=2}else if(r===1){if(fa(n)<2)break;const l=da(n,2);o=new DataView(l.buffer,l.byteOffset,l.length).getUint16(0),r=3}else if(r===2){if(fa(n)<8)break;const l=da(n,8),u=new DataView(l.buffer,l.byteOffset,l.length),c=u.getUint32(0);if(c>Math.pow(2,53-32)-1){a.enqueue(Qf);break}o=c*Math.pow(2,32)+u.getUint32(4),r=3}else{if(fa(n)<o)break;const l=da(n,o);a.enqueue(Wh(i?l:gc.decode(l),t)),r=0}if(o===0||o>e){a.enqueue(Qf);break}}}})}const wS=4;function Pe(e){if(e)return MD(e)}function MD(e){for(var t in Pe.prototype)e[t]=Pe.prototype[t];return e}Pe.prototype.on=Pe.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this};Pe.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this};Pe.prototype.off=Pe.prototype.removeListener=Pe.prototype.removeAllListeners=Pe.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var n=this._callbacks["$"+e];if(!n)return this;if(arguments.length==1)return delete this._callbacks["$"+e],this;for(var r,o=0;o<n.length;o++)if(r=n[o],r===t||r.fn===t){n.splice(o,1);break}return n.length===0&&delete this._callbacks["$"+e],this};Pe.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),n=this._callbacks["$"+e],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(n){n=n.slice(0);for(var r=0,o=n.length;r<o;++r)n[r].apply(this,t)}return this};Pe.prototype.emitReserved=Pe.prototype.emit;Pe.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]};Pe.prototype.hasListeners=function(e){return!!this.listeners(e).length};const uu=(()=>typeof Promise=="function"&&typeof Promise.resolve=="function"?t=>Promise.resolve().then(t):(t,n)=>n(t,0))(),xt=(()=>typeof self<"u"?self:typeof window<"u"?window:Function("return this")())(),RD="arraybuffer";function xS(e,...t){return t.reduce((n,r)=>(e.hasOwnProperty(r)&&(n[r]=e[r]),n),{})}const $D=xt.setTimeout,LD=xt.clearTimeout;function cu(e,t){t.useNativeTimers?(e.setTimeoutFn=$D.bind(xt),e.clearTimeoutFn=LD.bind(xt)):(e.setTimeoutFn=xt.setTimeout.bind(xt),e.clearTimeoutFn=xt.clearTimeout.bind(xt))}const DD=1.33;function OD(e){return typeof e=="string"?VD(e):Math.ceil((e.byteLength||e.size)*DD)}function VD(e){let t=0,n=0;for(let r=0,o=e.length;r<o;r++)t=e.charCodeAt(r),t<128?n+=1:t<2048?n+=2:t<55296||t>=57344?n+=3:(r++,n+=4);return n}function SS(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function ID(e){let t="";for(let n in e)e.hasOwnProperty(n)&&(t.length&&(t+="&"),t+=encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t}function zD(e){let t={},n=e.split("&");for(let r=0,o=n.length;r<o;r++){let i=n[r].split("=");t[decodeURIComponent(i[0])]=decodeURIComponent(i[1])}return t}class BD extends Error{constructor(t,n,r){super(t),this.description=n,this.context=r,this.type="TransportError"}}class Gh extends Pe{constructor(t){super(),this.writable=!1,cu(this,t),this.opts=t,this.query=t.query,this.socket=t.socket,this.supportsBinary=!t.forceBase64}onError(t,n,r){return super.emitReserved("error",new BD(t,n,r)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(t){this.readyState==="open"&&this.write(t)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(t){const n=Wh(t,this.socket.binaryType);this.onPacket(n)}onPacket(t){super.emitReserved("packet",t)}onClose(t){this.readyState="closed",super.emitReserved("close",t)}pause(t){}createUri(t,n={}){return t+"://"+this._hostname()+this._port()+this.opts.path+this._query(n)}_hostname(){const t=this.opts.hostname;return t.indexOf(":")===-1?t:"["+t+"]"}_port(){return this.opts.port&&(this.opts.secure&&+(this.opts.port!==443)||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(t){const n=ID(t);return n.length?"?"+n:""}}class FD extends Gh{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(t){this.readyState="pausing";const n=()=>{this.readyState="paused",t()};if(this._polling||!this.writable){let r=0;this._polling&&(r++,this.once("pollComplete",function(){--r||n()})),this.writable||(r++,this.once("drain",function(){--r||n()}))}else n()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(t){const n=r=>{if(this.readyState==="opening"&&r.type==="open"&&this.onOpen(),r.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(r)};PD(t,this.socket.binaryType).forEach(n),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this._poll())}doClose(){const t=()=>{this.write([{type:"close"}])};this.readyState==="open"?t():this.once("open",t)}write(t){this.writable=!1,TD(t,n=>{this.doWrite(n,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const t=this.opts.secure?"https":"http",n=this.query||{};return this.opts.timestampRequests!==!1&&(n[this.opts.timestampParam]=SS()),!this.supportsBinary&&!n.sid&&(n.b64=1),this.createUri(t,n)}}let bS=!1;try{bS=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const jD=bS;function UD(){}class HD extends FD{constructor(t){if(super(t),typeof location<"u"){const n=location.protocol==="https:";let r=location.port;r||(r=n?"443":"80"),this.xd=typeof location<"u"&&t.hostname!==location.hostname||r!==t.port}}doWrite(t,n){const r=this.request({method:"POST",data:t});r.on("success",n),r.on("error",(o,i)=>{this.onError("xhr post error",o,i)})}doPoll(){const t=this.request();t.on("data",this.onData.bind(this)),t.on("error",(n,r)=>{this.onError("xhr poll error",n,r)}),this.pollXhr=t}}class Xt extends Pe{constructor(t,n,r){super(),this.createRequest=t,cu(this,r),this._opts=r,this._method=r.method||"GET",this._uri=n,this._data=r.data!==void 0?r.data:null,this._create()}_create(){var t;const n=xS(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");n.xdomain=!!this._opts.xd;const r=this._xhr=this.createRequest(n);try{r.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){r.setDisableHeaderCheck&&r.setDisableHeaderCheck(!0);for(let o in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(o)&&r.setRequestHeader(o,this._opts.extraHeaders[o])}}catch{}if(this._method==="POST")try{r.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{r.setRequestHeader("Accept","*/*")}catch{}(t=this._opts.cookieJar)===null||t===void 0||t.addCookies(r),"withCredentials"in r&&(r.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(r.timeout=this._opts.requestTimeout),r.onreadystatechange=()=>{var o;r.readyState===3&&((o=this._opts.cookieJar)===null||o===void 0||o.parseCookies(r.getResponseHeader("set-cookie"))),r.readyState===4&&(r.status===200||r.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof r.status=="number"?r.status:0)},0))},r.send(this._data)}catch(o){this.setTimeoutFn(()=>{this._onError(o)},0);return}typeof document<"u"&&(this._index=Xt.requestsCount++,Xt.requests[this._index]=this)}_onError(t){this.emitReserved("error",t,this._xhr),this._cleanup(!0)}_cleanup(t){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=UD,t)try{this._xhr.abort()}catch{}typeof document<"u"&&delete Xt.requests[this._index],this._xhr=null}}_onLoad(){const t=this._xhr.responseText;t!==null&&(this.emitReserved("data",t),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}}Xt.requestsCount=0;Xt.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",Py);else if(typeof addEventListener=="function"){const e="onpagehide"in xt?"pagehide":"unload";addEventListener(e,Py,!1)}}function Py(){for(let e in Xt.requests)Xt.requests.hasOwnProperty(e)&&Xt.requests[e].abort()}const WD=function(){const e=ES({xdomain:!1});return e&&e.responseType!==null}();class GD extends HD{constructor(t){super(t);const n=t&&t.forceBase64;this.supportsBinary=WD&&!n}request(t={}){return Object.assign(t,{xd:this.xd},this.opts),new Xt(ES,this.uri(),t)}}function ES(e){const t=e.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!t||jD))return new XMLHttpRequest}catch{}if(!t)try{return new xt[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}const _S=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class KD extends Gh{get name(){return"websocket"}doOpen(){const t=this.uri(),n=this.opts.protocols,r=_S?{}:xS(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(r.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(t,n,r)}catch(o){return this.emitReserved("error",o)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=t=>this.onClose({description:"websocket connection closed",context:t}),this.ws.onmessage=t=>this.onData(t.data),this.ws.onerror=t=>this.onError("websocket error",t)}write(t){this.writable=!1;for(let n=0;n<t.length;n++){const r=t[n],o=n===t.length-1;Hh(r,this.supportsBinary,i=>{try{this.doWrite(r,i)}catch{}o&&uu(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){const t=this.opts.secure?"wss":"ws",n=this.query||{};return this.opts.timestampRequests&&(n[this.opts.timestampParam]=SS()),this.supportsBinary||(n.b64=1),this.createUri(t,n)}}const yc=xt.WebSocket||xt.MozWebSocket;class YD extends KD{createSocket(t,n,r){return _S?new yc(t,n,r):n?new yc(t,n):new yc(t)}doWrite(t,n){this.ws.send(n)}}class XD extends Gh{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(t){return this.emitReserved("error",t)}this._transport.closed.then(()=>{this.onClose()}).catch(t=>{this.onError("webtransport error",t)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(t=>{const n=AD(Number.MAX_SAFE_INTEGER,this.socket.binaryType),r=t.readable.pipeThrough(n).getReader(),o=ND();o.readable.pipeTo(t.writable),this._writer=o.writable.getWriter();const i=()=>{r.read().then(({done:a,value:l})=>{a||(this.onPacket(l),i())}).catch(a=>{})};i();const s={type:"open"};this.query.sid&&(s.data=`{"sid":"${this.query.sid}"}`),this._writer.write(s).then(()=>this.onOpen())})})}write(t){this.writable=!1;for(let n=0;n<t.length;n++){const r=t[n],o=n===t.length-1;this._writer.write(r).then(()=>{o&&uu(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var t;(t=this._transport)===null||t===void 0||t.close()}}const qD={websocket:YD,webtransport:XD,polling:GD},ZD=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,QD=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function Jf(e){if(e.length>8e3)throw"URI too long";const t=e,n=e.indexOf("["),r=e.indexOf("]");n!=-1&&r!=-1&&(e=e.substring(0,n)+e.substring(n,r).replace(/:/g,";")+e.substring(r,e.length));let o=ZD.exec(e||""),i={},s=14;for(;s--;)i[QD[s]]=o[s]||"";return n!=-1&&r!=-1&&(i.source=t,i.host=i.host.substring(1,i.host.length-1).replace(/;/g,":"),i.authority=i.authority.replace("[","").replace("]","").replace(/;/g,":"),i.ipv6uri=!0),i.pathNames=JD(i,i.path),i.queryKey=eO(i,i.query),i}function JD(e,t){const n=/\/{2,9}/g,r=t.replace(n,"/").split("/");return(t.slice(0,1)=="/"||t.length===0)&&r.splice(0,1),t.slice(-1)=="/"&&r.splice(r.length-1,1),r}function eO(e,t){const n={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(r,o,i){o&&(n[o]=i)}),n}const ed=typeof addEventListener=="function"&&typeof removeEventListener=="function",La=[];ed&&addEventListener("offline",()=>{La.forEach(e=>e())},!1);class Xn extends Pe{constructor(t,n){if(super(),this.binaryType=RD,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,t&&typeof t=="object"&&(n=t,t=null),t){const r=Jf(t);n.hostname=r.host,n.secure=r.protocol==="https"||r.protocol==="wss",n.port=r.port,r.query&&(n.query=r.query)}else n.host&&(n.hostname=Jf(n.host).host);cu(this,n),this.secure=n.secure!=null?n.secure:typeof location<"u"&&location.protocol==="https:",n.hostname&&!n.port&&(n.port=this.secure?"443":"80"),this.hostname=n.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=n.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},n.transports.forEach(r=>{const o=r.prototype.name;this.transports.push(o),this._transportsByName[o]=r}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},n),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=zD(this.opts.query)),ed&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this._beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this._offlineEventListener=()=>{this._onClose("transport close",{description:"network connection lost"})},La.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(t){const n=Object.assign({},this.opts.query);n.EIO=wS,n.transport=t,this.id&&(n.sid=this.id);const r=Object.assign({},this.opts,{query:n,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[t]);return new this._transportsByName[t](r)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}const t=this.opts.rememberUpgrade&&Xn.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";const n=this.createTransport(t);n.open(),this.setTransport(n)}setTransport(t){this.transport&&this.transport.removeAllListeners(),this.transport=t,t.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",n=>this._onClose("transport close",n))}onOpen(){this.readyState="open",Xn.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(t){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",t),this.emitReserved("heartbeat"),t.type){case"open":this.onHandshake(JSON.parse(t.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":const n=new Error("server error");n.code=t.data,this._onError(n);break;case"message":this.emitReserved("data",t.data),this.emitReserved("message",t.data);break}}onHandshake(t){this.emitReserved("handshake",t),this.id=t.sid,this.transport.query.sid=t.sid,this._pingInterval=t.pingInterval,this._pingTimeout=t.pingTimeout,this._maxPayload=t.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);const t=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+t,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},t),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const t=this._getWritablePackets();this.transport.send(t),this._prevBufferLen=t.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let n=1;for(let r=0;r<this.writeBuffer.length;r++){const o=this.writeBuffer[r].data;if(o&&(n+=OD(o)),r>0&&n>this._maxPayload)return this.writeBuffer.slice(0,r);n+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;const t=Date.now()>this._pingTimeoutTime;return t&&(this._pingTimeoutTime=0,uu(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),t}write(t,n,r){return this._sendPacket("message",t,n,r),this}send(t,n,r){return this._sendPacket("message",t,n,r),this}_sendPacket(t,n,r,o){if(typeof n=="function"&&(o=n,n=void 0),typeof r=="function"&&(o=r,r=null),this.readyState==="closing"||this.readyState==="closed")return;r=r||{},r.compress=r.compress!==!1;const i={type:t,data:n,options:r};this.emitReserved("packetCreate",i),this.writeBuffer.push(i),o&&this.once("flush",o),this.flush()}close(){const t=()=>{this._onClose("forced close"),this.transport.close()},n=()=>{this.off("upgrade",n),this.off("upgradeError",n),t()},r=()=>{this.once("upgrade",n),this.once("upgradeError",n)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?r():t()}):this.upgrading?r():t()),this}_onError(t){if(Xn.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",t),this._onClose("transport error",t)}_onClose(t,n){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),ed&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const r=La.indexOf(this._offlineEventListener);r!==-1&&La.splice(r,1)}this.readyState="closed",this.id=null,this.emitReserved("close",t,n),this.writeBuffer=[],this._prevBufferLen=0}}}Xn.protocol=wS;class tO extends Xn{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let t=0;t<this._upgrades.length;t++)this._probe(this._upgrades[t])}_probe(t){let n=this.createTransport(t),r=!1;Xn.priorWebsocketSuccess=!1;const o=()=>{r||(n.send([{type:"ping",data:"probe"}]),n.once("packet",f=>{if(!r)if(f.type==="pong"&&f.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",n),!n)return;Xn.priorWebsocketSuccess=n.name==="websocket",this.transport.pause(()=>{r||this.readyState!=="closed"&&(c(),this.setTransport(n),n.send([{type:"upgrade"}]),this.emitReserved("upgrade",n),n=null,this.upgrading=!1,this.flush())})}else{const d=new Error("probe error");d.transport=n.name,this.emitReserved("upgradeError",d)}}))};function i(){r||(r=!0,c(),n.close(),n=null)}const s=f=>{const d=new Error("probe error: "+f);d.transport=n.name,i(),this.emitReserved("upgradeError",d)};function a(){s("transport closed")}function l(){s("socket closed")}function u(f){n&&f.name!==n.name&&i()}const c=()=>{n.removeListener("open",o),n.removeListener("error",s),n.removeListener("close",a),this.off("close",l),this.off("upgrading",u)};n.once("open",o),n.once("error",s),n.once("close",a),this.once("close",l),this.once("upgrading",u),this._upgrades.indexOf("webtransport")!==-1&&t!=="webtransport"?this.setTimeoutFn(()=>{r||n.open()},200):n.open()}onHandshake(t){this._upgrades=this._filterUpgrades(t.upgrades),super.onHandshake(t)}_filterUpgrades(t){const n=[];for(let r=0;r<t.length;r++)~this.transports.indexOf(t[r])&&n.push(t[r]);return n}}let nO=class extends tO{constructor(t,n={}){const r=typeof t=="object"?t:n;(!r.transports||r.transports&&typeof r.transports[0]=="string")&&(r.transports=(r.transports||["polling","websocket","webtransport"]).map(o=>qD[o]).filter(o=>!!o)),super(t,r)}};function rO(e,t="",n){let r=e;n=n||typeof location<"u"&&location,e==null&&(e=n.protocol+"//"+n.host),typeof e=="string"&&(e.charAt(0)==="/"&&(e.charAt(1)==="/"?e=n.protocol+e:e=n.host+e),/^(https?|wss?):\/\//.test(e)||(typeof n<"u"?e=n.protocol+"//"+e:e="https://"+e),r=Jf(e)),r.port||(/^(http|ws)$/.test(r.protocol)?r.port="80":/^(http|ws)s$/.test(r.protocol)&&(r.port="443")),r.path=r.path||"/";const i=r.host.indexOf(":")!==-1?"["+r.host+"]":r.host;return r.id=r.protocol+"://"+i+":"+r.port+t,r.href=r.protocol+"://"+i+(n&&n.port===r.port?"":":"+r.port),r}const oO=typeof ArrayBuffer=="function",iO=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,CS=Object.prototype.toString,sO=typeof Blob=="function"||typeof Blob<"u"&&CS.call(Blob)==="[object BlobConstructor]",aO=typeof File=="function"||typeof File<"u"&&CS.call(File)==="[object FileConstructor]";function Kh(e){return oO&&(e instanceof ArrayBuffer||iO(e))||sO&&e instanceof Blob||aO&&e instanceof File}function Da(e,t){if(!e||typeof e!="object")return!1;if(Array.isArray(e)){for(let n=0,r=e.length;n<r;n++)if(Da(e[n]))return!0;return!1}if(Kh(e))return!0;if(e.toJSON&&typeof e.toJSON=="function"&&arguments.length===1)return Da(e.toJSON(),!0);for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&Da(e[n]))return!0;return!1}function lO(e){const t=[],n=e.data,r=e;return r.data=td(n,t),r.attachments=t.length,{packet:r,buffers:t}}function td(e,t){if(!e)return e;if(Kh(e)){const n={_placeholder:!0,num:t.length};return t.push(e),n}else if(Array.isArray(e)){const n=new Array(e.length);for(let r=0;r<e.length;r++)n[r]=td(e[r],t);return n}else if(typeof e=="object"&&!(e instanceof Date)){const n={};for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=td(e[r],t));return n}return e}function uO(e,t){return e.data=nd(e.data,t),delete e.attachments,e}function nd(e,t){if(!e)return e;if(e&&e._placeholder===!0){if(typeof e.num=="number"&&e.num>=0&&e.num<t.length)return t[e.num];throw new Error("illegal attachments")}else if(Array.isArray(e))for(let n=0;n<e.length;n++)e[n]=nd(e[n],t);else if(typeof e=="object")for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(e[n]=nd(e[n],t));return e}const cO=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],fO=5;var re;(function(e){e[e.CONNECT=0]="CONNECT",e[e.DISCONNECT=1]="DISCONNECT",e[e.EVENT=2]="EVENT",e[e.ACK=3]="ACK",e[e.CONNECT_ERROR=4]="CONNECT_ERROR",e[e.BINARY_EVENT=5]="BINARY_EVENT",e[e.BINARY_ACK=6]="BINARY_ACK"})(re||(re={}));class dO{constructor(t){this.replacer=t}encode(t){return(t.type===re.EVENT||t.type===re.ACK)&&Da(t)?this.encodeAsBinary({type:t.type===re.EVENT?re.BINARY_EVENT:re.BINARY_ACK,nsp:t.nsp,data:t.data,id:t.id}):[this.encodeAsString(t)]}encodeAsString(t){let n=""+t.type;return(t.type===re.BINARY_EVENT||t.type===re.BINARY_ACK)&&(n+=t.attachments+"-"),t.nsp&&t.nsp!=="/"&&(n+=t.nsp+","),t.id!=null&&(n+=t.id),t.data!=null&&(n+=JSON.stringify(t.data,this.replacer)),n}encodeAsBinary(t){const n=lO(t),r=this.encodeAsString(n.packet),o=n.buffers;return o.unshift(r),o}}function Ny(e){return Object.prototype.toString.call(e)==="[object Object]"}class Yh extends Pe{constructor(t){super(),this.reviver=t}add(t){let n;if(typeof t=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");n=this.decodeString(t);const r=n.type===re.BINARY_EVENT;r||n.type===re.BINARY_ACK?(n.type=r?re.EVENT:re.ACK,this.reconstructor=new hO(n),n.attachments===0&&super.emitReserved("decoded",n)):super.emitReserved("decoded",n)}else if(Kh(t)||t.base64)if(this.reconstructor)n=this.reconstructor.takeBinaryData(t),n&&(this.reconstructor=null,super.emitReserved("decoded",n));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+t)}decodeString(t){let n=0;const r={type:Number(t.charAt(0))};if(re[r.type]===void 0)throw new Error("unknown packet type "+r.type);if(r.type===re.BINARY_EVENT||r.type===re.BINARY_ACK){const i=n+1;for(;t.charAt(++n)!=="-"&&n!=t.length;);const s=t.substring(i,n);if(s!=Number(s)||t.charAt(n)!=="-")throw new Error("Illegal attachments");r.attachments=Number(s)}if(t.charAt(n+1)==="/"){const i=n+1;for(;++n&&!(t.charAt(n)===","||n===t.length););r.nsp=t.substring(i,n)}else r.nsp="/";const o=t.charAt(n+1);if(o!==""&&Number(o)==o){const i=n+1;for(;++n;){const s=t.charAt(n);if(s==null||Number(s)!=s){--n;break}if(n===t.length)break}r.id=Number(t.substring(i,n+1))}if(t.charAt(++n)){const i=this.tryParse(t.substr(n));if(Yh.isPayloadValid(r.type,i))r.data=i;else throw new Error("invalid payload")}return r}tryParse(t){try{return JSON.parse(t,this.reviver)}catch{return!1}}static isPayloadValid(t,n){switch(t){case re.CONNECT:return Ny(n);case re.DISCONNECT:return n===void 0;case re.CONNECT_ERROR:return typeof n=="string"||Ny(n);case re.EVENT:case re.BINARY_EVENT:return Array.isArray(n)&&(typeof n[0]=="number"||typeof n[0]=="string"&&cO.indexOf(n[0])===-1);case re.ACK:case re.BINARY_ACK:return Array.isArray(n)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class hO{constructor(t){this.packet=t,this.buffers=[],this.reconPack=t}takeBinaryData(t){if(this.buffers.push(t),this.buffers.length===this.reconPack.attachments){const n=uO(this.reconPack,this.buffers);return this.finishedReconstruction(),n}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}const pO=Object.freeze(Object.defineProperty({__proto__:null,Decoder:Yh,Encoder:dO,get PacketType(){return re},protocol:fO},Symbol.toStringTag,{value:"Module"}));function Mt(e,t,n){return e.on(t,n),function(){e.off(t,n)}}const mO=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class kS extends Pe{constructor(t,n,r){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=t,this.nsp=n,r&&r.auth&&(this.auth=r.auth),this._opts=Object.assign({},r),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const t=this.io;this.subs=[Mt(t,"open",this.onopen.bind(this)),Mt(t,"packet",this.onpacket.bind(this)),Mt(t,"error",this.onerror.bind(this)),Mt(t,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...t){return t.unshift("message"),this.emit.apply(this,t),this}emit(t,...n){var r,o,i;if(mO.hasOwnProperty(t))throw new Error('"'+t.toString()+'" is a reserved event name');if(n.unshift(t),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(n),this;const s={type:re.EVENT,data:n};if(s.options={},s.options.compress=this.flags.compress!==!1,typeof n[n.length-1]=="function"){const c=this.ids++,f=n.pop();this._registerAckCallback(c,f),s.id=c}const a=(o=(r=this.io.engine)===null||r===void 0?void 0:r.transport)===null||o===void 0?void 0:o.writable,l=this.connected&&!(!((i=this.io.engine)===null||i===void 0)&&i._hasPingExpired());return this.flags.volatile&&!a||(l?(this.notifyOutgoingListeners(s),this.packet(s)):this.sendBuffer.push(s)),this.flags={},this}_registerAckCallback(t,n){var r;const o=(r=this.flags.timeout)!==null&&r!==void 0?r:this._opts.ackTimeout;if(o===void 0){this.acks[t]=n;return}const i=this.io.setTimeoutFn(()=>{delete this.acks[t];for(let a=0;a<this.sendBuffer.length;a++)this.sendBuffer[a].id===t&&this.sendBuffer.splice(a,1);n.call(this,new Error("operation has timed out"))},o),s=(...a)=>{this.io.clearTimeoutFn(i),n.apply(this,a)};s.withError=!0,this.acks[t]=s}emitWithAck(t,...n){return new Promise((r,o)=>{const i=(s,a)=>s?o(s):r(a);i.withError=!0,n.push(i),this.emit(t,...n)})}_addToQueue(t){let n;typeof t[t.length-1]=="function"&&(n=t.pop());const r={id:this._queueSeq++,tryCount:0,pending:!1,args:t,flags:Object.assign({fromQueue:!0},this.flags)};t.push((o,...i)=>r!==this._queue[0]?void 0:(o!==null?r.tryCount>this._opts.retries&&(this._queue.shift(),n&&n(o)):(this._queue.shift(),n&&n(null,...i)),r.pending=!1,this._drainQueue())),this._queue.push(r),this._drainQueue()}_drainQueue(t=!1){if(!this.connected||this._queue.length===0)return;const n=this._queue[0];n.pending&&!t||(n.pending=!0,n.tryCount++,this.flags=n.flags,this.emit.apply(this,n.args))}packet(t){t.nsp=this.nsp,this.io._packet(t)}onopen(){typeof this.auth=="function"?this.auth(t=>{this._sendConnectPacket(t)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(t){this.packet({type:re.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},t):t})}onerror(t){this.connected||this.emitReserved("connect_error",t)}onclose(t,n){this.connected=!1,delete this.id,this.emitReserved("disconnect",t,n),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(t=>{if(!this.sendBuffer.some(r=>String(r.id)===t)){const r=this.acks[t];delete this.acks[t],r.withError&&r.call(this,new Error("socket has been disconnected"))}})}onpacket(t){if(t.nsp===this.nsp)switch(t.type){case re.CONNECT:t.data&&t.data.sid?this.onconnect(t.data.sid,t.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case re.EVENT:case re.BINARY_EVENT:this.onevent(t);break;case re.ACK:case re.BINARY_ACK:this.onack(t);break;case re.DISCONNECT:this.ondisconnect();break;case re.CONNECT_ERROR:this.destroy();const r=new Error(t.data.message);r.data=t.data.data,this.emitReserved("connect_error",r);break}}onevent(t){const n=t.data||[];t.id!=null&&n.push(this.ack(t.id)),this.connected?this.emitEvent(n):this.receiveBuffer.push(Object.freeze(n))}emitEvent(t){if(this._anyListeners&&this._anyListeners.length){const n=this._anyListeners.slice();for(const r of n)r.apply(this,t)}super.emit.apply(this,t),this._pid&&t.length&&typeof t[t.length-1]=="string"&&(this._lastOffset=t[t.length-1])}ack(t){const n=this;let r=!1;return function(...o){r||(r=!0,n.packet({type:re.ACK,id:t,data:o}))}}onack(t){const n=this.acks[t.id];typeof n=="function"&&(delete this.acks[t.id],n.withError&&t.data.unshift(null),n.apply(this,t.data))}onconnect(t,n){this.id=t,this.recovered=n&&this._pid===n,this._pid=n,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(t=>this.emitEvent(t)),this.receiveBuffer=[],this.sendBuffer.forEach(t=>{this.notifyOutgoingListeners(t),this.packet(t)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(t=>t()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:re.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(t){return this.flags.compress=t,this}get volatile(){return this.flags.volatile=!0,this}timeout(t){return this.flags.timeout=t,this}onAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(t),this}prependAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(t),this}offAny(t){if(!this._anyListeners)return this;if(t){const n=this._anyListeners;for(let r=0;r<n.length;r++)if(t===n[r])return n.splice(r,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(t),this}prependAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(t),this}offAnyOutgoing(t){if(!this._anyOutgoingListeners)return this;if(t){const n=this._anyOutgoingListeners;for(let r=0;r<n.length;r++)if(t===n[r])return n.splice(r,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(t){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const n=this._anyOutgoingListeners.slice();for(const r of n)r.apply(this,t.data)}}}function Yo(e){e=e||{},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}Yo.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),n=Math.floor(t*this.jitter*e);e=Math.floor(t*10)&1?e+n:e-n}return Math.min(e,this.max)|0};Yo.prototype.reset=function(){this.attempts=0};Yo.prototype.setMin=function(e){this.ms=e};Yo.prototype.setMax=function(e){this.max=e};Yo.prototype.setJitter=function(e){this.jitter=e};class rd extends Pe{constructor(t,n){var r;super(),this.nsps={},this.subs=[],t&&typeof t=="object"&&(n=t,t=void 0),n=n||{},n.path=n.path||"/socket.io",this.opts=n,cu(this,n),this.reconnection(n.reconnection!==!1),this.reconnectionAttempts(n.reconnectionAttempts||1/0),this.reconnectionDelay(n.reconnectionDelay||1e3),this.reconnectionDelayMax(n.reconnectionDelayMax||5e3),this.randomizationFactor((r=n.randomizationFactor)!==null&&r!==void 0?r:.5),this.backoff=new Yo({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(n.timeout==null?2e4:n.timeout),this._readyState="closed",this.uri=t;const o=n.parser||pO;this.encoder=new o.Encoder,this.decoder=new o.Decoder,this._autoConnect=n.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(t){return arguments.length?(this._reconnection=!!t,t||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(t){return t===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=t,this)}reconnectionDelay(t){var n;return t===void 0?this._reconnectionDelay:(this._reconnectionDelay=t,(n=this.backoff)===null||n===void 0||n.setMin(t),this)}randomizationFactor(t){var n;return t===void 0?this._randomizationFactor:(this._randomizationFactor=t,(n=this.backoff)===null||n===void 0||n.setJitter(t),this)}reconnectionDelayMax(t){var n;return t===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=t,(n=this.backoff)===null||n===void 0||n.setMax(t),this)}timeout(t){return arguments.length?(this._timeout=t,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(t){if(~this._readyState.indexOf("open"))return this;this.engine=new nO(this.uri,this.opts);const n=this.engine,r=this;this._readyState="opening",this.skipReconnect=!1;const o=Mt(n,"open",function(){r.onopen(),t&&t()}),i=a=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",a),t?t(a):this.maybeReconnectOnOpen()},s=Mt(n,"error",i);if(this._timeout!==!1){const a=this._timeout,l=this.setTimeoutFn(()=>{o(),i(new Error("timeout")),n.close()},a);this.opts.autoUnref&&l.unref(),this.subs.push(()=>{this.clearTimeoutFn(l)})}return this.subs.push(o),this.subs.push(s),this}connect(t){return this.open(t)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const t=this.engine;this.subs.push(Mt(t,"ping",this.onping.bind(this)),Mt(t,"data",this.ondata.bind(this)),Mt(t,"error",this.onerror.bind(this)),Mt(t,"close",this.onclose.bind(this)),Mt(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(t){try{this.decoder.add(t)}catch(n){this.onclose("parse error",n)}}ondecoded(t){uu(()=>{this.emitReserved("packet",t)},this.setTimeoutFn)}onerror(t){this.emitReserved("error",t)}socket(t,n){let r=this.nsps[t];return r?this._autoConnect&&!r.active&&r.connect():(r=new kS(this,t,n),this.nsps[t]=r),r}_destroy(t){const n=Object.keys(this.nsps);for(const r of n)if(this.nsps[r].active)return;this._close()}_packet(t){const n=this.encoder.encode(t);for(let r=0;r<n.length;r++)this.engine.write(n[r],t.options)}cleanup(){this.subs.forEach(t=>t()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(t,n){var r;this.cleanup(),(r=this.engine)===null||r===void 0||r.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",t,n),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const t=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const n=this.backoff.duration();this._reconnecting=!0;const r=this.setTimeoutFn(()=>{t.skipReconnect||(this.emitReserved("reconnect_attempt",t.backoff.attempts),!t.skipReconnect&&t.open(o=>{o?(t._reconnecting=!1,t.reconnect(),this.emitReserved("reconnect_error",o)):t.onreconnect()}))},n);this.opts.autoUnref&&r.unref(),this.subs.push(()=>{this.clearTimeoutFn(r)})}}onreconnect(){const t=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",t)}}const yi={};function Oa(e,t){typeof e=="object"&&(t=e,e=void 0),t=t||{};const n=rO(e,t.path||"/socket.io"),r=n.source,o=n.id,i=n.path,s=yi[o]&&i in yi[o].nsps,a=t.forceNew||t["force new connection"]||t.multiplex===!1||s;let l;return a?l=new rd(r,t):(yi[o]||(yi[o]=new rd(r,t)),l=yi[o]),n.query&&!t.query&&(t.query=n.queryKey),l.socket(n.path,t)}Object.assign(Oa,{Manager:rd,Socket:kS,io:Oa,connect:Oa});const hr=Oa("http://localhost:4000");function gO(){const[e,t]=S.useState(!1),[n,r]=S.useState(null);function o(a){try{r(JSON.parse(a))}catch(l){console.error(l)}}function i(){t(!0)}function s(){t(!1)}return S.useEffect(()=>(hr.on("connect",i),hr.on("disconnect",s),hr.on("data",o),()=>{hr.off("data",o),hr.off("connect",i),hr.off("disconnect",s)}),[]),{data:n,socket:hr,isConnected:e}}const yO=S.lazy(()=>SD(()=>import("./Flow-b5112d3d.js"),[]));function vO(){const{data:e,isConnected:t}=gO();return I.jsxs("div",{className:"h-full",children:[I.jsxs(EA,{position:"static",children:[I.jsxs(_A,{children:[I.jsx(bD,{className:"h-8 w-8"}),I.jsx("p",{className:"ml-4 font-bold text-inherit",children:e==null?void 0:e.app.name})]}),I.jsx(CA,{justify:"end",children:I.jsx(kA,{children:I.jsx("div",{className:"w-35 p-2 text-sm",children:t?I.jsxs("span",{className:"flex items-center",children:["Connected",I.jsx("span",{className:"ml-2 inline-block h-2 w-2 rounded-full bg-green-500"})]}):I.jsxs("span",{className:"flex items-center",children:["Connecting",I.jsx("span",{className:"ml-2 inline-block h-2 w-2 rounded-full bg-yellow-500"})]})})})})]}),I.jsx("div",{className:"flow-container",children:I.jsx(S.Suspense,{fallback:I.jsx(Ay,{}),children:e?I.jsx(yO,{data:e}):I.jsx(Ay,{})})})]})}function Ay(){return I.jsx("div",{className:"flex h-full items-center justify-center",children:I.jsx("p",{className:"text-2xl text-gray-500",children:"Loading..."})})}Of.createRoot(document.getElementById("root")).render(I.jsx(se.StrictMode,{children:I.jsx(Uh,{children:I.jsx(kC,{children:I.jsx("div",{className:"text-foreground bg-background dark",children:I.jsx(vO,{})})})})}));export{Nl as H,Y as P,vD as R,wO as a,SO as b,kt as c,bO as d,Qx as e,od as g,I as j,S as r,st as s,_e as u};
|