shopify-chatbot-widget 0.0.4 → 0.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/jaweb-chatbot.css +1 -0
- package/dist/jaweb-chatbot.iife.js +685 -0
- package/dist/vite.svg +1 -0
- package/package.json +1 -1
- package/src/App.css +0 -42
- package/src/App.tsx +0 -13
- package/src/Chatbot/Chatbot.css +0 -154
- package/src/Chatbot/Chatbot.tsx +0 -207
- package/src/Chatbot/components/ChatInput.css +0 -127
- package/src/Chatbot/components/ChatInput.tsx +0 -262
- package/src/Chatbot/components/Messages/Addcart.tsx +0 -70
- package/src/Chatbot/components/Messages/AgentStatus.tsx +0 -37
- package/src/Chatbot/components/Messages/AssistantMesage.tsx +0 -316
- package/src/Chatbot/components/Messages/AudioMessage.tsx +0 -123
- package/src/Chatbot/components/Messages/CartWidget.tsx +0 -116
- package/src/Chatbot/components/Messages/ChatImage.tsx +0 -46
- package/src/Chatbot/components/Messages/ChatImageText.tsx +0 -74
- package/src/Chatbot/components/Messages/ChatImageTextAssis.tsx +0 -72
- package/src/Chatbot/components/Messages/ChatMessages.css +0 -5
- package/src/Chatbot/components/Messages/ChatMessages.tsx +0 -284
- package/src/Chatbot/components/Messages/Support.tsx +0 -177
- package/src/Chatbot/components/Messages/Typing.css +0 -27
- package/src/Chatbot/components/Messages/Typing.tsx +0 -14
- package/src/Chatbot/components/Messages/ZidAssistantMesage.tsx +0 -142
- package/src/Chatbot/components/Messenger/Messenger.tsx +0 -521
- package/src/Chatbot/components/Notification.tsx +0 -27
- package/src/Chatbot/components/Powered.css +0 -16
- package/src/Chatbot/components/Powered.tsx +0 -13
- package/src/Chatbot/components/Sessions/CreateSession.tsx +0 -139
- package/src/Chatbot/components/Sessions/RenderList.tsx +0 -202
- package/src/Chatbot/components/Suggestions.css +0 -34
- package/src/Chatbot/components/Suggestions.tsx +0 -28
- package/src/assets/react.svg +0 -1
- package/src/chatbot-widget/index.tsx +0 -14
- package/src/hooks/config.tsx +0 -13
- package/src/hooks/useCart.tsx +0 -99
- package/src/hooks/useChatbotAPI.tsx +0 -160
- package/src/hooks/useChatbotData.tsx +0 -129
- package/src/hooks/useSessionMessages.tsx +0 -51
- package/src/hooks/useWebsocke.tsx +0 -45
- package/src/i18n.tsx +0 -30
- package/src/index.css +0 -1
- package/src/main.tsx +0 -10
- package/src/types/chatbot.ts +0 -38
- package/src/utils/cookies.tsx +0 -14
- package/src/vite-env.d.ts +0 -1
|
@@ -0,0 +1,685 @@
|
|
|
1
|
+
(function(){"use strict";function fM(e,t){for(var a=0;a<t.length;a++){const r=t[a];if(typeof r!="string"&&!Array.isArray(r)){for(const l in r)if(l!=="default"&&!(l in e)){const c=Object.getOwnPropertyDescriptor(r,l);c&&Object.defineProperty(e,l,c.get?c:{enumerable:!0,get:()=>r[l]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}function bv(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var CS={exports:{}},Sv={};/**
|
|
2
|
+
* @license React
|
|
3
|
+
* react-jsx-runtime.production.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Meta Platforms, Inc. and 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 dM;function l8(){if(dM)return Sv;dM=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function a(r,l,c){var f=null;if(c!==void 0&&(f=""+c),l.key!==void 0&&(f=""+l.key),"key"in l){c={};for(var m in l)m!=="key"&&(c[m]=l[m])}else c=l;return l=c.ref,{$$typeof:e,type:r,key:f,ref:l!==void 0?l:null,props:c}}return Sv.Fragment=t,Sv.jsx=a,Sv.jsxs=a,Sv}var Cv={},xS={exports:{}},wn={};/**
|
|
10
|
+
* @license React
|
|
11
|
+
* react.production.js
|
|
12
|
+
*
|
|
13
|
+
* Copyright (c) Meta Platforms, Inc. and 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 hM;function s8(){if(hM)return wn;hM=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),c=Symbol.for("react.consumer"),f=Symbol.for("react.context"),m=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),S=Symbol.iterator;function E(U){return U===null||typeof U!="object"?null:(U=S&&U[S]||U["@@iterator"],typeof U=="function"?U:null)}var T={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},O=Object.assign,M={};function A(U,F,ne){this.props=U,this.context=F,this.refs=M,this.updater=ne||T}A.prototype.isReactComponent={},A.prototype.setState=function(U,F){if(typeof U!="object"&&typeof U!="function"&&U!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,U,F,"setState")},A.prototype.forceUpdate=function(U){this.updater.enqueueForceUpdate(this,U,"forceUpdate")};function D(){}D.prototype=A.prototype;function _(U,F,ne){this.props=U,this.context=F,this.refs=M,this.updater=ne||T}var z=_.prototype=new D;z.constructor=_,O(z,A.prototype),z.isPureReactComponent=!0;var j=Array.isArray,$={H:null,A:null,T:null,S:null,V:null},V=Object.prototype.hasOwnProperty;function H(U,F,ne,ae,oe,fe){return ne=fe.ref,{$$typeof:e,type:U,key:F,ref:ne!==void 0?ne:null,props:fe}}function P(U,F){return H(U.type,F,void 0,void 0,void 0,U.props)}function q(U){return typeof U=="object"&&U!==null&&U.$$typeof===e}function Y(U){var F={"=":"=0",":":"=2"};return"$"+U.replace(/[=:]/g,function(ne){return F[ne]})}var te=/\/+/g;function G(U,F){return typeof U=="object"&&U!==null&&U.key!=null?Y(""+U.key):F.toString(36)}function K(){}function J(U){switch(U.status){case"fulfilled":return U.value;case"rejected":throw U.reason;default:switch(typeof U.status=="string"?U.then(K,K):(U.status="pending",U.then(function(F){U.status==="pending"&&(U.status="fulfilled",U.value=F)},function(F){U.status==="pending"&&(U.status="rejected",U.reason=F)})),U.status){case"fulfilled":return U.value;case"rejected":throw U.reason}}throw U}function ie(U,F,ne,ae,oe){var fe=typeof U;(fe==="undefined"||fe==="boolean")&&(U=null);var ye=!1;if(U===null)ye=!0;else switch(fe){case"bigint":case"string":case"number":ye=!0;break;case"object":switch(U.$$typeof){case e:case t:ye=!0;break;case y:return ye=U._init,ie(ye(U._payload),F,ne,ae,oe)}}if(ye)return oe=oe(U),ye=ae===""?"."+G(U,0):ae,j(oe)?(ne="",ye!=null&&(ne=ye.replace(te,"$&/")+"/"),ie(oe,F,ne,"",function(Fe){return Fe})):oe!=null&&(q(oe)&&(oe=P(oe,ne+(oe.key==null||U&&U.key===oe.key?"":(""+oe.key).replace(te,"$&/")+"/")+ye)),F.push(oe)),1;ye=0;var $e=ae===""?".":ae+":";if(j(U))for(var ze=0;ze<U.length;ze++)ae=U[ze],fe=$e+G(ae,ze),ye+=ie(ae,F,ne,fe,oe);else if(ze=E(U),typeof ze=="function")for(U=ze.call(U),ze=0;!(ae=U.next()).done;)ae=ae.value,fe=$e+G(ae,ze++),ye+=ie(ae,F,ne,fe,oe);else if(fe==="object"){if(typeof U.then=="function")return ie(J(U),F,ne,ae,oe);throw F=String(U),Error("Objects are not valid as a React child (found: "+(F==="[object Object]"?"object with keys {"+Object.keys(U).join(", ")+"}":F)+"). If you meant to render a collection of children, use an array instead.")}return ye}function k(U,F,ne){if(U==null)return U;var ae=[],oe=0;return ie(U,ae,"","",function(fe){return F.call(ne,fe,oe++)}),ae}function X(U){if(U._status===-1){var F=U._result;F=F(),F.then(function(ne){(U._status===0||U._status===-1)&&(U._status=1,U._result=ne)},function(ne){(U._status===0||U._status===-1)&&(U._status=2,U._result=ne)}),U._status===-1&&(U._status=0,U._result=F)}if(U._status===1)return U._result.default;throw U._result}var Q=typeof reportError=="function"?reportError:function(U){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var F=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof U=="object"&&U!==null&&typeof U.message=="string"?String(U.message):String(U),error:U});if(!window.dispatchEvent(F))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",U);return}console.error(U)};function le(){}return wn.Children={map:k,forEach:function(U,F,ne){k(U,function(){F.apply(this,arguments)},ne)},count:function(U){var F=0;return k(U,function(){F++}),F},toArray:function(U){return k(U,function(F){return F})||[]},only:function(U){if(!q(U))throw Error("React.Children.only expected to receive a single React element child.");return U}},wn.Component=A,wn.Fragment=a,wn.Profiler=l,wn.PureComponent=_,wn.StrictMode=r,wn.Suspense=g,wn.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=$,wn.__COMPILER_RUNTIME={__proto__:null,c:function(U){return $.H.useMemoCache(U)}},wn.cache=function(U){return function(){return U.apply(null,arguments)}},wn.cloneElement=function(U,F,ne){if(U==null)throw Error("The argument must be a React element, but you passed "+U+".");var ae=O({},U.props),oe=U.key,fe=void 0;if(F!=null)for(ye in F.ref!==void 0&&(fe=void 0),F.key!==void 0&&(oe=""+F.key),F)!V.call(F,ye)||ye==="key"||ye==="__self"||ye==="__source"||ye==="ref"&&F.ref===void 0||(ae[ye]=F[ye]);var ye=arguments.length-2;if(ye===1)ae.children=ne;else if(1<ye){for(var $e=Array(ye),ze=0;ze<ye;ze++)$e[ze]=arguments[ze+2];ae.children=$e}return H(U.type,oe,void 0,void 0,fe,ae)},wn.createContext=function(U){return U={$$typeof:f,_currentValue:U,_currentValue2:U,_threadCount:0,Provider:null,Consumer:null},U.Provider=U,U.Consumer={$$typeof:c,_context:U},U},wn.createElement=function(U,F,ne){var ae,oe={},fe=null;if(F!=null)for(ae in F.key!==void 0&&(fe=""+F.key),F)V.call(F,ae)&&ae!=="key"&&ae!=="__self"&&ae!=="__source"&&(oe[ae]=F[ae]);var ye=arguments.length-2;if(ye===1)oe.children=ne;else if(1<ye){for(var $e=Array(ye),ze=0;ze<ye;ze++)$e[ze]=arguments[ze+2];oe.children=$e}if(U&&U.defaultProps)for(ae in ye=U.defaultProps,ye)oe[ae]===void 0&&(oe[ae]=ye[ae]);return H(U,fe,void 0,void 0,null,oe)},wn.createRef=function(){return{current:null}},wn.forwardRef=function(U){return{$$typeof:m,render:U}},wn.isValidElement=q,wn.lazy=function(U){return{$$typeof:y,_payload:{_status:-1,_result:U},_init:X}},wn.memo=function(U,F){return{$$typeof:p,type:U,compare:F===void 0?null:F}},wn.startTransition=function(U){var F=$.T,ne={};$.T=ne;try{var ae=U(),oe=$.S;oe!==null&&oe(ne,ae),typeof ae=="object"&&ae!==null&&typeof ae.then=="function"&&ae.then(le,Q)}catch(fe){Q(fe)}finally{$.T=F}},wn.unstable_useCacheRefresh=function(){return $.H.useCacheRefresh()},wn.use=function(U){return $.H.use(U)},wn.useActionState=function(U,F,ne){return $.H.useActionState(U,F,ne)},wn.useCallback=function(U,F){return $.H.useCallback(U,F)},wn.useContext=function(U){return $.H.useContext(U)},wn.useDebugValue=function(){},wn.useDeferredValue=function(U,F){return $.H.useDeferredValue(U,F)},wn.useEffect=function(U,F,ne){var ae=$.H;if(typeof ne=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return ae.useEffect(U,F)},wn.useId=function(){return $.H.useId()},wn.useImperativeHandle=function(U,F,ne){return $.H.useImperativeHandle(U,F,ne)},wn.useInsertionEffect=function(U,F){return $.H.useInsertionEffect(U,F)},wn.useLayoutEffect=function(U,F){return $.H.useLayoutEffect(U,F)},wn.useMemo=function(U,F){return $.H.useMemo(U,F)},wn.useOptimistic=function(U,F){return $.H.useOptimistic(U,F)},wn.useReducer=function(U,F,ne){return $.H.useReducer(U,F,ne)},wn.useRef=function(U){return $.H.useRef(U)},wn.useState=function(U){return $.H.useState(U)},wn.useSyncExternalStore=function(U,F,ne){return $.H.useSyncExternalStore(U,F,ne)},wn.useTransition=function(){return $.H.useTransition()},wn.version="19.1.0",wn}var xv={exports:{}};xv.exports;var mM;function u8(){return mM||(mM=1,function(e,t){var a={};/**
|
|
18
|
+
* @license React
|
|
19
|
+
* react.development.js
|
|
20
|
+
*
|
|
21
|
+
* Copyright (c) Meta Platforms, Inc. and 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
|
+
*/a.NODE_ENV!=="production"&&function(){function r(I,he){Object.defineProperty(f.prototype,I,{get:function(){console.warn("%s(...) is deprecated in plain JavaScript React classes. %s",he[0],he[1])}})}function l(I){return I===null||typeof I!="object"?null:(I=me&&I[me]||I["@@iterator"],typeof I=="function"?I:null)}function c(I,he){I=(I=I.constructor)&&(I.displayName||I.name)||"ReactClass";var Qe=I+"."+he;Re[Qe]||(console.error("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",he,I),Re[Qe]=!0)}function f(I,he,Qe){this.props=I,this.context=he,this.refs=Ce,this.updater=Qe||Pe}function m(){}function g(I,he,Qe){this.props=I,this.context=he,this.refs=Ce,this.updater=Qe||Pe}function p(I){return""+I}function y(I){try{p(I);var he=!1}catch{he=!0}if(he){he=console;var Qe=he.error,Je=typeof Symbol=="function"&&Symbol.toStringTag&&I[Symbol.toStringTag]||I.constructor.name||"Object";return Qe.call(he,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",Je),p(I)}}function S(I){if(I==null)return null;if(typeof I=="function")return I.$$typeof===nt?null:I.displayName||I.name||null;if(typeof I=="string")return I;switch(I){case F:return"Fragment";case ae:return"Profiler";case ne:return"StrictMode";case $e:return"Suspense";case ze:return"SuspenseList";case Oe:return"Activity"}if(typeof I=="object")switch(typeof I.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),I.$$typeof){case U:return"Portal";case fe:return(I.displayName||"Context")+".Provider";case oe:return(I._context.displayName||"Context")+".Consumer";case ye:var he=I.render;return I=I.displayName,I||(I=he.displayName||he.name||"",I=I!==""?"ForwardRef("+I+")":"ForwardRef"),I;case Fe:return he=I.displayName||null,he!==null?he:S(I.type)||"Memo";case Ke:he=I._payload,I=I._init;try{return S(I(he))}catch{}}return null}function E(I){if(I===F)return"<>";if(typeof I=="object"&&I!==null&&I.$$typeof===Ke)return"<...>";try{var he=S(I);return he?"<"+he+">":"<...>"}catch{return"<...>"}}function T(){var I=We.A;return I===null?null:I.getOwner()}function O(){return Error("react-stack-top-frame")}function M(I){if(it.call(I,"key")){var he=Object.getOwnPropertyDescriptor(I,"key").get;if(he&&he.isReactWarning)return!1}return I.key!==void 0}function A(I,he){function Qe(){Ge||(Ge=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",he))}Qe.isReactWarning=!0,Object.defineProperty(I,"key",{get:Qe,configurable:!0})}function D(){var I=S(this.type);return wt[I]||(wt[I]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),I=this.props.ref,I!==void 0?I:null}function _(I,he,Qe,Je,ft,Ft,_t,Dt){return Qe=Ft.ref,I={$$typeof:le,type:I,key:he,props:Ft,_owner:ft},(Qe!==void 0?Qe:null)!==null?Object.defineProperty(I,"ref",{enumerable:!1,get:D}):Object.defineProperty(I,"ref",{enumerable:!1,value:null}),I._store={},Object.defineProperty(I._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(I,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(I,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:_t}),Object.defineProperty(I,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:Dt}),Object.freeze&&(Object.freeze(I.props),Object.freeze(I)),I}function z(I,he){return he=_(I.type,he,void 0,void 0,I._owner,I.props,I._debugStack,I._debugTask),I._store&&(he._store.validated=I._store.validated),he}function j(I){return typeof I=="object"&&I!==null&&I.$$typeof===le}function $(I){var he={"=":"=0",":":"=2"};return"$"+I.replace(/[=:]/g,function(Qe){return he[Qe]})}function V(I,he){return typeof I=="object"&&I!==null&&I.key!=null?(y(I.key),$(""+I.key)):he.toString(36)}function H(){}function P(I){switch(I.status){case"fulfilled":return I.value;case"rejected":throw I.reason;default:switch(typeof I.status=="string"?I.then(H,H):(I.status="pending",I.then(function(he){I.status==="pending"&&(I.status="fulfilled",I.value=he)},function(he){I.status==="pending"&&(I.status="rejected",I.reason=he)})),I.status){case"fulfilled":return I.value;case"rejected":throw I.reason}}throw I}function q(I,he,Qe,Je,ft){var Ft=typeof I;(Ft==="undefined"||Ft==="boolean")&&(I=null);var _t=!1;if(I===null)_t=!0;else switch(Ft){case"bigint":case"string":case"number":_t=!0;break;case"object":switch(I.$$typeof){case le:case U:_t=!0;break;case Ke:return _t=I._init,q(_t(I._payload),he,Qe,Je,ft)}}if(_t){_t=I,ft=ft(_t);var Dt=Je===""?"."+V(_t,0):Je;return Ue(ft)?(Qe="",Dt!=null&&(Qe=Dt.replace(kt,"$&/")+"/"),q(ft,he,Qe,"",function(vt){return vt})):ft!=null&&(j(ft)&&(ft.key!=null&&(_t&&_t.key===ft.key||y(ft.key)),Qe=z(ft,Qe+(ft.key==null||_t&&_t.key===ft.key?"":(""+ft.key).replace(kt,"$&/")+"/")+Dt),Je!==""&&_t!=null&&j(_t)&&_t.key==null&&_t._store&&!_t._store.validated&&(Qe._store.validated=2),ft=Qe),he.push(ft)),1}if(_t=0,Dt=Je===""?".":Je+":",Ue(I))for(var dt=0;dt<I.length;dt++)Je=I[dt],Ft=Dt+V(Je,dt),_t+=q(Je,he,Qe,Ft,ft);else if(dt=l(I),typeof dt=="function")for(dt===I.entries&&(ht||console.warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),ht=!0),I=dt.call(I),dt=0;!(Je=I.next()).done;)Je=Je.value,Ft=Dt+V(Je,dt++),_t+=q(Je,he,Qe,Ft,ft);else if(Ft==="object"){if(typeof I.then=="function")return q(P(I),he,Qe,Je,ft);throw he=String(I),Error("Objects are not valid as a React child (found: "+(he==="[object Object]"?"object with keys {"+Object.keys(I).join(", ")+"}":he)+"). If you meant to render a collection of children, use an array instead.")}return _t}function Y(I,he,Qe){if(I==null)return I;var Je=[],ft=0;return q(I,Je,"","",function(Ft){return he.call(Qe,Ft,ft++)}),Je}function te(I){if(I._status===-1){var he=I._result;he=he(),he.then(function(Qe){(I._status===0||I._status===-1)&&(I._status=1,I._result=Qe)},function(Qe){(I._status===0||I._status===-1)&&(I._status=2,I._result=Qe)}),I._status===-1&&(I._status=0,I._result=he)}if(I._status===1)return he=I._result,he===void 0&&console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
26
|
+
|
|
27
|
+
Your code should look like:
|
|
28
|
+
const MyComponent = lazy(() => import('./MyComponent'))
|
|
29
|
+
|
|
30
|
+
Did you accidentally put curly braces around the import?`,he),"default"in he||console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
31
|
+
|
|
32
|
+
Your code should look like:
|
|
33
|
+
const MyComponent = lazy(() => import('./MyComponent'))`,he),he.default;throw I._result}function G(){var I=We.H;return I===null&&console.error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
|
|
34
|
+
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
35
|
+
2. You might be breaking the Rules of Hooks
|
|
36
|
+
3. You might have more than one copy of React in the same app
|
|
37
|
+
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),I}function K(){}function J(I){if(Tt===null)try{var he=("require"+Math.random()).slice(0,7);Tt=(e&&e[he]).call(e,"timers").setImmediate}catch{Tt=function(Je){Wt===!1&&(Wt=!0,typeof MessageChannel>"u"&&console.error("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));var ft=new MessageChannel;ft.port1.onmessage=Je,ft.port2.postMessage(void 0)}}return Tt(I)}function ie(I){return 1<I.length&&typeof AggregateError=="function"?new AggregateError(I):I[0]}function k(I,he){he!==ut-1&&console.error("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),ut=he}function X(I,he,Qe){var Je=We.actQueue;if(Je!==null)if(Je.length!==0)try{Q(Je),J(function(){return X(I,he,Qe)});return}catch(ft){We.thrownErrors.push(ft)}else We.actQueue=null;0<We.thrownErrors.length?(Je=ie(We.thrownErrors),We.thrownErrors.length=0,Qe(Je)):he(I)}function Q(I){if(!et){et=!0;var he=0;try{for(;he<I.length;he++){var Qe=I[he];do{We.didUsePromise=!1;var Je=Qe(!1);if(Je!==null){if(We.didUsePromise){I[he]=Qe,I.splice(0,he);return}Qe=Je}else break}while(!0)}I.length=0}catch(ft){I.splice(0,he+1),We.thrownErrors.push(ft)}finally{et=!1}}}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var le=Symbol.for("react.transitional.element"),U=Symbol.for("react.portal"),F=Symbol.for("react.fragment"),ne=Symbol.for("react.strict_mode"),ae=Symbol.for("react.profiler"),oe=Symbol.for("react.consumer"),fe=Symbol.for("react.context"),ye=Symbol.for("react.forward_ref"),$e=Symbol.for("react.suspense"),ze=Symbol.for("react.suspense_list"),Fe=Symbol.for("react.memo"),Ke=Symbol.for("react.lazy"),Oe=Symbol.for("react.activity"),me=Symbol.iterator,Re={},Pe={isMounted:function(){return!1},enqueueForceUpdate:function(I){c(I,"forceUpdate")},enqueueReplaceState:function(I){c(I,"replaceState")},enqueueSetState:function(I){c(I,"setState")}},be=Object.assign,Ce={};Object.freeze(Ce),f.prototype.isReactComponent={},f.prototype.setState=function(I,he){if(typeof I!="object"&&typeof I!="function"&&I!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,I,he,"setState")},f.prototype.forceUpdate=function(I){this.updater.enqueueForceUpdate(this,I,"forceUpdate")};var _e={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]},je;for(je in _e)_e.hasOwnProperty(je)&&r(je,_e[je]);m.prototype=f.prototype,_e=g.prototype=new m,_e.constructor=g,be(_e,f.prototype),_e.isPureReactComponent=!0;var Ue=Array.isArray,nt=Symbol.for("react.client.reference"),We={H:null,A:null,T:null,S:null,V:null,actQueue:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1,didUsePromise:!1,thrownErrors:[],getCurrentStack:null,recentlyCreatedOwnerStacks:0},it=Object.prototype.hasOwnProperty,rt=console.createTask?console.createTask:function(){return null};_e={"react-stack-bottom-frame":function(I){return I()}};var Ge,Rt,wt={},At=_e["react-stack-bottom-frame"].bind(_e,O)(),$t=rt(E(O)),ht=!1,kt=/\/+/g,Vt=typeof reportError=="function"?reportError:function(I){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var he=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof I=="object"&&I!==null&&typeof I.message=="string"?String(I.message):String(I),error:I});if(!window.dispatchEvent(he))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",I);return}console.error(I)},Wt=!1,Tt=null,ut=0,St=!1,et=!1,lt=typeof queueMicrotask=="function"?function(I){queueMicrotask(function(){return queueMicrotask(I)})}:J;_e=Object.freeze({__proto__:null,c:function(I){return G().useMemoCache(I)}}),t.Children={map:Y,forEach:function(I,he,Qe){Y(I,function(){he.apply(this,arguments)},Qe)},count:function(I){var he=0;return Y(I,function(){he++}),he},toArray:function(I){return Y(I,function(he){return he})||[]},only:function(I){if(!j(I))throw Error("React.Children.only expected to receive a single React element child.");return I}},t.Component=f,t.Fragment=F,t.Profiler=ae,t.PureComponent=g,t.StrictMode=ne,t.Suspense=$e,t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=We,t.__COMPILER_RUNTIME=_e,t.act=function(I){var he=We.actQueue,Qe=ut;ut++;var Je=We.actQueue=he!==null?he:[],ft=!1;try{var Ft=I()}catch(dt){We.thrownErrors.push(dt)}if(0<We.thrownErrors.length)throw k(he,Qe),I=ie(We.thrownErrors),We.thrownErrors.length=0,I;if(Ft!==null&&typeof Ft=="object"&&typeof Ft.then=="function"){var _t=Ft;return lt(function(){ft||St||(St=!0,console.error("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"))}),{then:function(dt,vt){ft=!0,_t.then(function(Mt){if(k(he,Qe),Qe===0){try{Q(Je),J(function(){return X(Mt,dt,vt)})}catch(Ht){We.thrownErrors.push(Ht)}if(0<We.thrownErrors.length){var mt=ie(We.thrownErrors);We.thrownErrors.length=0,vt(mt)}}else dt(Mt)},function(Mt){k(he,Qe),0<We.thrownErrors.length&&(Mt=ie(We.thrownErrors),We.thrownErrors.length=0),vt(Mt)})}}}var Dt=Ft;if(k(he,Qe),Qe===0&&(Q(Je),Je.length!==0&<(function(){ft||St||(St=!0,console.error("A component suspended inside an `act` scope, but the `act` call was not awaited. When testing React components that depend on asynchronous data, you must await the result:\n\nawait act(() => ...)"))}),We.actQueue=null),0<We.thrownErrors.length)throw I=ie(We.thrownErrors),We.thrownErrors.length=0,I;return{then:function(dt,vt){ft=!0,Qe===0?(We.actQueue=Je,J(function(){return X(Dt,dt,vt)})):dt(Dt)}}},t.cache=function(I){return function(){return I.apply(null,arguments)}},t.captureOwnerStack=function(){var I=We.getCurrentStack;return I===null?null:I()},t.cloneElement=function(I,he,Qe){if(I==null)throw Error("The argument must be a React element, but you passed "+I+".");var Je=be({},I.props),ft=I.key,Ft=I._owner;if(he!=null){var _t;e:{if(it.call(he,"ref")&&(_t=Object.getOwnPropertyDescriptor(he,"ref").get)&&_t.isReactWarning){_t=!1;break e}_t=he.ref!==void 0}_t&&(Ft=T()),M(he)&&(y(he.key),ft=""+he.key);for(Dt in he)!it.call(he,Dt)||Dt==="key"||Dt==="__self"||Dt==="__source"||Dt==="ref"&&he.ref===void 0||(Je[Dt]=he[Dt])}var Dt=arguments.length-2;if(Dt===1)Je.children=Qe;else if(1<Dt){_t=Array(Dt);for(var dt=0;dt<Dt;dt++)_t[dt]=arguments[dt+2];Je.children=_t}for(Je=_(I.type,ft,void 0,void 0,Ft,Je,I._debugStack,I._debugTask),ft=2;ft<arguments.length;ft++)Ft=arguments[ft],j(Ft)&&Ft._store&&(Ft._store.validated=1);return Je},t.createContext=function(I){return I={$$typeof:fe,_currentValue:I,_currentValue2:I,_threadCount:0,Provider:null,Consumer:null},I.Provider=I,I.Consumer={$$typeof:oe,_context:I},I._currentRenderer=null,I._currentRenderer2=null,I},t.createElement=function(I,he,Qe){for(var Je=2;Je<arguments.length;Je++){var ft=arguments[Je];j(ft)&&ft._store&&(ft._store.validated=1)}if(Je={},ft=null,he!=null)for(dt in Rt||!("__self"in he)||"key"in he||(Rt=!0,console.warn("Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform")),M(he)&&(y(he.key),ft=""+he.key),he)it.call(he,dt)&&dt!=="key"&&dt!=="__self"&&dt!=="__source"&&(Je[dt]=he[dt]);var Ft=arguments.length-2;if(Ft===1)Je.children=Qe;else if(1<Ft){for(var _t=Array(Ft),Dt=0;Dt<Ft;Dt++)_t[Dt]=arguments[Dt+2];Object.freeze&&Object.freeze(_t),Je.children=_t}if(I&&I.defaultProps)for(dt in Ft=I.defaultProps,Ft)Je[dt]===void 0&&(Je[dt]=Ft[dt]);ft&&A(Je,typeof I=="function"?I.displayName||I.name||"Unknown":I);var dt=1e4>We.recentlyCreatedOwnerStacks++;return _(I,ft,void 0,void 0,T(),Je,dt?Error("react-stack-top-frame"):At,dt?rt(E(I)):$t)},t.createRef=function(){var I={current:null};return Object.seal(I),I},t.forwardRef=function(I){I!=null&&I.$$typeof===Fe?console.error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof I!="function"?console.error("forwardRef requires a render function but was given %s.",I===null?"null":typeof I):I.length!==0&&I.length!==2&&console.error("forwardRef render functions accept exactly two parameters: props and ref. %s",I.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),I!=null&&I.defaultProps!=null&&console.error("forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?");var he={$$typeof:ye,render:I},Qe;return Object.defineProperty(he,"displayName",{enumerable:!1,configurable:!0,get:function(){return Qe},set:function(Je){Qe=Je,I.name||I.displayName||(Object.defineProperty(I,"name",{value:Je}),I.displayName=Je)}}),he},t.isValidElement=j,t.lazy=function(I){return{$$typeof:Ke,_payload:{_status:-1,_result:I},_init:te}},t.memo=function(I,he){I==null&&console.error("memo: The first argument must be a component. Instead received: %s",I===null?"null":typeof I),he={$$typeof:Fe,type:I,compare:he===void 0?null:he};var Qe;return Object.defineProperty(he,"displayName",{enumerable:!1,configurable:!0,get:function(){return Qe},set:function(Je){Qe=Je,I.name||I.displayName||(Object.defineProperty(I,"name",{value:Je}),I.displayName=Je)}}),he},t.startTransition=function(I){var he=We.T,Qe={};We.T=Qe,Qe._updatedFibers=new Set;try{var Je=I(),ft=We.S;ft!==null&&ft(Qe,Je),typeof Je=="object"&&Je!==null&&typeof Je.then=="function"&&Je.then(K,Vt)}catch(Ft){Vt(Ft)}finally{he===null&&Qe._updatedFibers&&(I=Qe._updatedFibers.size,Qe._updatedFibers.clear(),10<I&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table.")),We.T=he}},t.unstable_useCacheRefresh=function(){return G().useCacheRefresh()},t.use=function(I){return G().use(I)},t.useActionState=function(I,he,Qe){return G().useActionState(I,he,Qe)},t.useCallback=function(I,he){return G().useCallback(I,he)},t.useContext=function(I){var he=G();return I.$$typeof===oe&&console.error("Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"),he.useContext(I)},t.useDebugValue=function(I,he){return G().useDebugValue(I,he)},t.useDeferredValue=function(I,he){return G().useDeferredValue(I,he)},t.useEffect=function(I,he,Qe){I==null&&console.warn("React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?");var Je=G();if(typeof Qe=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return Je.useEffect(I,he)},t.useId=function(){return G().useId()},t.useImperativeHandle=function(I,he,Qe){return G().useImperativeHandle(I,he,Qe)},t.useInsertionEffect=function(I,he){return I==null&&console.warn("React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"),G().useInsertionEffect(I,he)},t.useLayoutEffect=function(I,he){return I==null&&console.warn("React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"),G().useLayoutEffect(I,he)},t.useMemo=function(I,he){return G().useMemo(I,he)},t.useOptimistic=function(I,he){return G().useOptimistic(I,he)},t.useReducer=function(I,he,Qe){return G().useReducer(I,he,Qe)},t.useRef=function(I){return G().useRef(I)},t.useState=function(I){return G().useState(I)},t.useSyncExternalStore=function(I,he,Qe){return G().useSyncExternalStore(I,he,Qe)},t.useTransition=function(){return G().useTransition()},t.version="19.1.0",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()}(xv,xv.exports)),xv.exports}var pM;function ym(){if(pM)return xS.exports;pM=1;var e={};return e.NODE_ENV==="production"?xS.exports=s8():xS.exports=u8(),xS.exports}var gM;function c8(){if(gM)return Cv;gM=1;var e={};/**
|
|
38
|
+
* @license React
|
|
39
|
+
* react-jsx-runtime.development.js
|
|
40
|
+
*
|
|
41
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
42
|
+
*
|
|
43
|
+
* This source code is licensed under the MIT license found in the
|
|
44
|
+
* LICENSE file in the root directory of this source tree.
|
|
45
|
+
*/return e.NODE_ENV!=="production"&&function(){function t(F){if(F==null)return null;if(typeof F=="function")return F.$$typeof===te?null:F.displayName||F.name||null;if(typeof F=="string")return F;switch(F){case A:return"Fragment";case _:return"Profiler";case D:return"StrictMode";case V:return"Suspense";case H:return"SuspenseList";case Y:return"Activity"}if(typeof F=="object")switch(typeof F.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),F.$$typeof){case M:return"Portal";case j:return(F.displayName||"Context")+".Provider";case z:return(F._context.displayName||"Context")+".Consumer";case $:var ne=F.render;return F=F.displayName,F||(F=ne.displayName||ne.name||"",F=F!==""?"ForwardRef("+F+")":"ForwardRef"),F;case P:return ne=F.displayName||null,ne!==null?ne:t(F.type)||"Memo";case q:ne=F._payload,F=F._init;try{return t(F(ne))}catch{}}return null}function a(F){return""+F}function r(F){try{a(F);var ne=!1}catch{ne=!0}if(ne){ne=console;var ae=ne.error,oe=typeof Symbol=="function"&&Symbol.toStringTag&&F[Symbol.toStringTag]||F.constructor.name||"Object";return ae.call(ne,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",oe),a(F)}}function l(F){if(F===A)return"<>";if(typeof F=="object"&&F!==null&&F.$$typeof===q)return"<...>";try{var ne=t(F);return ne?"<"+ne+">":"<...>"}catch{return"<...>"}}function c(){var F=G.A;return F===null?null:F.getOwner()}function f(){return Error("react-stack-top-frame")}function m(F){if(K.call(F,"key")){var ne=Object.getOwnPropertyDescriptor(F,"key").get;if(ne&&ne.isReactWarning)return!1}return F.key!==void 0}function g(F,ne){function ae(){k||(k=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",ne))}ae.isReactWarning=!0,Object.defineProperty(F,"key",{get:ae,configurable:!0})}function p(){var F=t(this.type);return X[F]||(X[F]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),F=this.props.ref,F!==void 0?F:null}function y(F,ne,ae,oe,fe,ye,$e,ze){return ae=ye.ref,F={$$typeof:O,type:F,key:ne,props:ye,_owner:fe},(ae!==void 0?ae:null)!==null?Object.defineProperty(F,"ref",{enumerable:!1,get:p}):Object.defineProperty(F,"ref",{enumerable:!1,value:null}),F._store={},Object.defineProperty(F._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(F,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(F,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:$e}),Object.defineProperty(F,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:ze}),Object.freeze&&(Object.freeze(F.props),Object.freeze(F)),F}function S(F,ne,ae,oe,fe,ye,$e,ze){var Fe=ne.children;if(Fe!==void 0)if(oe)if(J(Fe)){for(oe=0;oe<Fe.length;oe++)E(Fe[oe]);Object.freeze&&Object.freeze(Fe)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else E(Fe);if(K.call(ne,"key")){Fe=t(F);var Ke=Object.keys(ne).filter(function(me){return me!=="key"});oe=0<Ke.length?"{key: someKey, "+Ke.join(": ..., ")+": ...}":"{key: someKey}",U[Fe+oe]||(Ke=0<Ke.length?"{"+Ke.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
|
|
46
|
+
let props = %s;
|
|
47
|
+
<%s {...props} />
|
|
48
|
+
React keys must be passed directly to JSX without using spread:
|
|
49
|
+
let props = %s;
|
|
50
|
+
<%s key={someKey} {...props} />`,oe,Fe,Ke,Fe),U[Fe+oe]=!0)}if(Fe=null,ae!==void 0&&(r(ae),Fe=""+ae),m(ne)&&(r(ne.key),Fe=""+ne.key),"key"in ne){ae={};for(var Oe in ne)Oe!=="key"&&(ae[Oe]=ne[Oe])}else ae=ne;return Fe&&g(ae,typeof F=="function"?F.displayName||F.name||"Unknown":F),y(F,Fe,ye,fe,c(),ae,$e,ze)}function E(F){typeof F=="object"&&F!==null&&F.$$typeof===O&&F._store&&(F._store.validated=1)}var T=ym(),O=Symbol.for("react.transitional.element"),M=Symbol.for("react.portal"),A=Symbol.for("react.fragment"),D=Symbol.for("react.strict_mode"),_=Symbol.for("react.profiler"),z=Symbol.for("react.consumer"),j=Symbol.for("react.context"),$=Symbol.for("react.forward_ref"),V=Symbol.for("react.suspense"),H=Symbol.for("react.suspense_list"),P=Symbol.for("react.memo"),q=Symbol.for("react.lazy"),Y=Symbol.for("react.activity"),te=Symbol.for("react.client.reference"),G=T.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,K=Object.prototype.hasOwnProperty,J=Array.isArray,ie=console.createTask?console.createTask:function(){return null};T={"react-stack-bottom-frame":function(F){return F()}};var k,X={},Q=T["react-stack-bottom-frame"].bind(T,f)(),le=ie(l(f)),U={};Cv.Fragment=A,Cv.jsx=function(F,ne,ae,oe,fe){var ye=1e4>G.recentlyCreatedOwnerStacks++;return S(F,ne,ae,!1,oe,fe,ye?Error("react-stack-top-frame"):Q,ye?ie(l(F)):le)},Cv.jsxs=function(F,ne,ae,oe,fe){var ye=1e4>G.recentlyCreatedOwnerStacks++;return S(F,ne,ae,!0,oe,fe,ye?Error("react-stack-top-frame"):Q,ye?ie(l(F)):le)}}(),Cv}var vM;function f8(){if(vM)return CS.exports;vM=1;var e={};return e.NODE_ENV==="production"?CS.exports=l8():CS.exports=c8(),CS.exports}var re=f8(),ES={exports:{}},Ev={},wS={exports:{}},sE={};/**
|
|
51
|
+
* @license React
|
|
52
|
+
* scheduler.production.js
|
|
53
|
+
*
|
|
54
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
55
|
+
*
|
|
56
|
+
* This source code is licensed under the MIT license found in the
|
|
57
|
+
* LICENSE file in the root directory of this source tree.
|
|
58
|
+
*/var yM;function d8(){return yM||(yM=1,function(e){function t(k,X){var Q=k.length;k.push(X);e:for(;0<Q;){var le=Q-1>>>1,U=k[le];if(0<l(U,X))k[le]=X,k[Q]=U,Q=le;else break e}}function a(k){return k.length===0?null:k[0]}function r(k){if(k.length===0)return null;var X=k[0],Q=k.pop();if(Q!==X){k[0]=Q;e:for(var le=0,U=k.length,F=U>>>1;le<F;){var ne=2*(le+1)-1,ae=k[ne],oe=ne+1,fe=k[oe];if(0>l(ae,Q))oe<U&&0>l(fe,ae)?(k[le]=fe,k[oe]=Q,le=oe):(k[le]=ae,k[ne]=Q,le=ne);else if(oe<U&&0>l(fe,Q))k[le]=fe,k[oe]=Q,le=oe;else break e}}return X}function l(k,X){var Q=k.sortIndex-X.sortIndex;return Q!==0?Q:k.id-X.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var c=performance;e.unstable_now=function(){return c.now()}}else{var f=Date,m=f.now();e.unstable_now=function(){return f.now()-m}}var g=[],p=[],y=1,S=null,E=3,T=!1,O=!1,M=!1,A=!1,D=typeof setTimeout=="function"?setTimeout:null,_=typeof clearTimeout=="function"?clearTimeout:null,z=typeof setImmediate<"u"?setImmediate:null;function j(k){for(var X=a(p);X!==null;){if(X.callback===null)r(p);else if(X.startTime<=k)r(p),X.sortIndex=X.expirationTime,t(g,X);else break;X=a(p)}}function $(k){if(M=!1,j(k),!O)if(a(g)!==null)O=!0,V||(V=!0,G());else{var X=a(p);X!==null&&ie($,X.startTime-k)}}var V=!1,H=-1,P=5,q=-1;function Y(){return A?!0:!(e.unstable_now()-q<P)}function te(){if(A=!1,V){var k=e.unstable_now();q=k;var X=!0;try{e:{O=!1,M&&(M=!1,_(H),H=-1),T=!0;var Q=E;try{t:{for(j(k),S=a(g);S!==null&&!(S.expirationTime>k&&Y());){var le=S.callback;if(typeof le=="function"){S.callback=null,E=S.priorityLevel;var U=le(S.expirationTime<=k);if(k=e.unstable_now(),typeof U=="function"){S.callback=U,j(k),X=!0;break t}S===a(g)&&r(g),j(k)}else r(g);S=a(g)}if(S!==null)X=!0;else{var F=a(p);F!==null&&ie($,F.startTime-k),X=!1}}break e}finally{S=null,E=Q,T=!1}X=void 0}}finally{X?G():V=!1}}}var G;if(typeof z=="function")G=function(){z(te)};else if(typeof MessageChannel<"u"){var K=new MessageChannel,J=K.port2;K.port1.onmessage=te,G=function(){J.postMessage(null)}}else G=function(){D(te,0)};function ie(k,X){H=D(function(){k(e.unstable_now())},X)}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(k){k.callback=null},e.unstable_forceFrameRate=function(k){0>k||125<k?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):P=0<k?Math.floor(1e3/k):5},e.unstable_getCurrentPriorityLevel=function(){return E},e.unstable_next=function(k){switch(E){case 1:case 2:case 3:var X=3;break;default:X=E}var Q=E;E=X;try{return k()}finally{E=Q}},e.unstable_requestPaint=function(){A=!0},e.unstable_runWithPriority=function(k,X){switch(k){case 1:case 2:case 3:case 4:case 5:break;default:k=3}var Q=E;E=k;try{return X()}finally{E=Q}},e.unstable_scheduleCallback=function(k,X,Q){var le=e.unstable_now();switch(typeof Q=="object"&&Q!==null?(Q=Q.delay,Q=typeof Q=="number"&&0<Q?le+Q:le):Q=le,k){case 1:var U=-1;break;case 2:U=250;break;case 5:U=1073741823;break;case 4:U=1e4;break;default:U=5e3}return U=Q+U,k={id:y++,callback:X,priorityLevel:k,startTime:Q,expirationTime:U,sortIndex:-1},Q>le?(k.sortIndex=Q,t(p,k),a(g)===null&&k===a(p)&&(M?(_(H),H=-1):M=!0,ie($,Q-le))):(k.sortIndex=U,t(g,k),O||T||(O=!0,V||(V=!0,G()))),k},e.unstable_shouldYield=Y,e.unstable_wrapCallback=function(k){var X=E;return function(){var Q=E;E=X;try{return k.apply(this,arguments)}finally{E=Q}}}}(sE)),sE}var uE={},bM;function h8(){return bM||(bM=1,function(e){var t={};/**
|
|
59
|
+
* @license React
|
|
60
|
+
* scheduler.development.js
|
|
61
|
+
*
|
|
62
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
63
|
+
*
|
|
64
|
+
* This source code is licensed under the MIT license found in the
|
|
65
|
+
* LICENSE file in the root directory of this source tree.
|
|
66
|
+
*/t.NODE_ENV!=="production"&&function(){function a(){if(V=!1,Y){var X=e.unstable_now();K=X;var Q=!0;try{e:{j=!1,$&&($=!1,P(te),te=-1),z=!0;var le=_;try{t:{for(m(X),D=l(O);D!==null&&!(D.expirationTime>X&&p());){var U=D.callback;if(typeof U=="function"){D.callback=null,_=D.priorityLevel;var F=U(D.expirationTime<=X);if(X=e.unstable_now(),typeof F=="function"){D.callback=F,m(X),Q=!0;break t}D===l(O)&&c(O),m(X)}else c(O);D=l(O)}if(D!==null)Q=!0;else{var ne=l(M);ne!==null&&y(g,ne.startTime-X),Q=!1}}break e}finally{D=null,_=le,z=!1}Q=void 0}}finally{Q?J():Y=!1}}}function r(X,Q){var le=X.length;X.push(Q);e:for(;0<le;){var U=le-1>>>1,F=X[U];if(0<f(F,Q))X[U]=Q,X[le]=F,le=U;else break e}}function l(X){return X.length===0?null:X[0]}function c(X){if(X.length===0)return null;var Q=X[0],le=X.pop();if(le!==Q){X[0]=le;e:for(var U=0,F=X.length,ne=F>>>1;U<ne;){var ae=2*(U+1)-1,oe=X[ae],fe=ae+1,ye=X[fe];if(0>f(oe,le))fe<F&&0>f(ye,oe)?(X[U]=ye,X[fe]=le,U=fe):(X[U]=oe,X[ae]=le,U=ae);else if(fe<F&&0>f(ye,le))X[U]=ye,X[fe]=le,U=fe;else break e}}return Q}function f(X,Q){var le=X.sortIndex-Q.sortIndex;return le!==0?le:X.id-Q.id}function m(X){for(var Q=l(M);Q!==null;){if(Q.callback===null)c(M);else if(Q.startTime<=X)c(M),Q.sortIndex=Q.expirationTime,r(O,Q);else break;Q=l(M)}}function g(X){if($=!1,m(X),!j)if(l(O)!==null)j=!0,Y||(Y=!0,J());else{var Q=l(M);Q!==null&&y(g,Q.startTime-X)}}function p(){return V?!0:!(e.unstable_now()-K<G)}function y(X,Q){te=H(function(){X(e.unstable_now())},Q)}if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error()),e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var S=performance;e.unstable_now=function(){return S.now()}}else{var E=Date,T=E.now();e.unstable_now=function(){return E.now()-T}}var O=[],M=[],A=1,D=null,_=3,z=!1,j=!1,$=!1,V=!1,H=typeof setTimeout=="function"?setTimeout:null,P=typeof clearTimeout=="function"?clearTimeout:null,q=typeof setImmediate<"u"?setImmediate:null,Y=!1,te=-1,G=5,K=-1;if(typeof q=="function")var J=function(){q(a)};else if(typeof MessageChannel<"u"){var ie=new MessageChannel,k=ie.port2;ie.port1.onmessage=a,J=function(){k.postMessage(null)}}else J=function(){H(a,0)};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(X){X.callback=null},e.unstable_forceFrameRate=function(X){0>X||125<X?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):G=0<X?Math.floor(1e3/X):5},e.unstable_getCurrentPriorityLevel=function(){return _},e.unstable_next=function(X){switch(_){case 1:case 2:case 3:var Q=3;break;default:Q=_}var le=_;_=Q;try{return X()}finally{_=le}},e.unstable_requestPaint=function(){V=!0},e.unstable_runWithPriority=function(X,Q){switch(X){case 1:case 2:case 3:case 4:case 5:break;default:X=3}var le=_;_=X;try{return Q()}finally{_=le}},e.unstable_scheduleCallback=function(X,Q,le){var U=e.unstable_now();switch(typeof le=="object"&&le!==null?(le=le.delay,le=typeof le=="number"&&0<le?U+le:U):le=U,X){case 1:var F=-1;break;case 2:F=250;break;case 5:F=1073741823;break;case 4:F=1e4;break;default:F=5e3}return F=le+F,X={id:A++,callback:Q,priorityLevel:X,startTime:le,expirationTime:F,sortIndex:-1},le>U?(X.sortIndex=le,r(M,X),l(O)===null&&X===l(M)&&($?(P(te),te=-1):$=!0,y(g,le-U))):(X.sortIndex=F,r(O,X),j||z||(j=!0,Y||(Y=!0,J()))),X},e.unstable_shouldYield=p,e.unstable_wrapCallback=function(X){var Q=_;return function(){var le=_;_=Q;try{return X.apply(this,arguments)}finally{_=le}}},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()}(uE)),uE}var SM;function CM(){if(SM)return wS.exports;SM=1;var e={};return e.NODE_ENV==="production"?wS.exports=d8():wS.exports=h8(),wS.exports}var TS={exports:{}},gi={};/**
|
|
67
|
+
* @license React
|
|
68
|
+
* react-dom.production.js
|
|
69
|
+
*
|
|
70
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
71
|
+
*
|
|
72
|
+
* This source code is licensed under the MIT license found in the
|
|
73
|
+
* LICENSE file in the root directory of this source tree.
|
|
74
|
+
*/var xM;function m8(){if(xM)return gi;xM=1;var e=ym();function t(g){var p="https://react.dev/errors/"+g;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var y=2;y<arguments.length;y++)p+="&args[]="+encodeURIComponent(arguments[y])}return"Minified React error #"+g+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function a(){}var r={d:{f:a,r:function(){throw Error(t(522))},D:a,C:a,L:a,m:a,X:a,S:a,M:a},p:0,findDOMNode:null},l=Symbol.for("react.portal");function c(g,p,y){var S=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:l,key:S==null?null:""+S,children:g,containerInfo:p,implementation:y}}var f=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function m(g,p){if(g==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return gi.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,gi.createPortal=function(g,p){var y=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(t(299));return c(g,p,null,y)},gi.flushSync=function(g){var p=f.T,y=r.p;try{if(f.T=null,r.p=2,g)return g()}finally{f.T=p,r.p=y,r.d.f()}},gi.preconnect=function(g,p){typeof g=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,r.d.C(g,p))},gi.prefetchDNS=function(g){typeof g=="string"&&r.d.D(g)},gi.preinit=function(g,p){if(typeof g=="string"&&p&&typeof p.as=="string"){var y=p.as,S=m(y,p.crossOrigin),E=typeof p.integrity=="string"?p.integrity:void 0,T=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;y==="style"?r.d.S(g,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:S,integrity:E,fetchPriority:T}):y==="script"&&r.d.X(g,{crossOrigin:S,integrity:E,fetchPriority:T,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},gi.preinitModule=function(g,p){if(typeof g=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var y=m(p.as,p.crossOrigin);r.d.M(g,{crossOrigin:y,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&r.d.M(g)},gi.preload=function(g,p){if(typeof g=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var y=p.as,S=m(y,p.crossOrigin);r.d.L(g,y,{crossOrigin:S,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,type:typeof p.type=="string"?p.type:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0,referrerPolicy:typeof p.referrerPolicy=="string"?p.referrerPolicy:void 0,imageSrcSet:typeof p.imageSrcSet=="string"?p.imageSrcSet:void 0,imageSizes:typeof p.imageSizes=="string"?p.imageSizes:void 0,media:typeof p.media=="string"?p.media:void 0})}},gi.preloadModule=function(g,p){if(typeof g=="string")if(p){var y=m(p.as,p.crossOrigin);r.d.m(g,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:y,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else r.d.m(g)},gi.requestFormReset=function(g){r.d.r(g)},gi.unstable_batchedUpdates=function(g,p){return g(p)},gi.useFormState=function(g,p,y){return f.H.useFormState(g,p,y)},gi.useFormStatus=function(){return f.H.useHostTransitionStatus()},gi.version="19.1.0",gi}var vi={},EM;function p8(){if(EM)return vi;EM=1;var e={};/**
|
|
75
|
+
* @license React
|
|
76
|
+
* react-dom.development.js
|
|
77
|
+
*
|
|
78
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
79
|
+
*
|
|
80
|
+
* This source code is licensed under the MIT license found in the
|
|
81
|
+
* LICENSE file in the root directory of this source tree.
|
|
82
|
+
*/return e.NODE_ENV!=="production"&&function(){function t(){}function a(E){return""+E}function r(E,T,O){var M=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;try{a(M);var A=!1}catch{A=!0}return A&&(console.error("The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",typeof Symbol=="function"&&Symbol.toStringTag&&M[Symbol.toStringTag]||M.constructor.name||"Object"),a(M)),{$$typeof:y,key:M==null?null:""+M,children:E,containerInfo:T,implementation:O}}function l(E,T){if(E==="font")return"";if(typeof T=="string")return T==="use-credentials"?T:""}function c(E){return E===null?"`null`":E===void 0?"`undefined`":E===""?"an empty string":'something with type "'+typeof E+'"'}function f(E){return E===null?"`null`":E===void 0?"`undefined`":E===""?"an empty string":typeof E=="string"?JSON.stringify(E):typeof E=="number"?"`"+E+"`":'something with type "'+typeof E+'"'}function m(){var E=S.H;return E===null&&console.error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
|
|
83
|
+
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
84
|
+
2. You might be breaking the Rules of Hooks
|
|
85
|
+
3. You might have more than one copy of React in the same app
|
|
86
|
+
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),E}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var g=ym(),p={d:{f:t,r:function(){throw Error("Invalid form element. requestFormReset must be passed a form that was rendered by React.")},D:t,C:t,L:t,m:t,X:t,S:t,M:t},p:0,findDOMNode:null},y=Symbol.for("react.portal"),S=g.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;typeof Map=="function"&&Map.prototype!=null&&typeof Map.prototype.forEach=="function"&&typeof Set=="function"&&Set.prototype!=null&&typeof Set.prototype.clear=="function"&&typeof Set.prototype.forEach=="function"||console.error("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),vi.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=p,vi.createPortal=function(E,T){var O=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!T||T.nodeType!==1&&T.nodeType!==9&&T.nodeType!==11)throw Error("Target container is not a DOM element.");return r(E,T,null,O)},vi.flushSync=function(E){var T=S.T,O=p.p;try{if(S.T=null,p.p=2,E)return E()}finally{S.T=T,p.p=O,p.d.f()&&console.error("flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task.")}},vi.preconnect=function(E,T){typeof E=="string"&&E?T!=null&&typeof T!="object"?console.error("ReactDOM.preconnect(): Expected the `options` argument (second) to be an object but encountered %s instead. The only supported option at this time is `crossOrigin` which accepts a string.",f(T)):T!=null&&typeof T.crossOrigin!="string"&&console.error("ReactDOM.preconnect(): Expected the `crossOrigin` option (second argument) to be a string but encountered %s instead. Try removing this option or passing a string value instead.",c(T.crossOrigin)):console.error("ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",c(E)),typeof E=="string"&&(T?(T=T.crossOrigin,T=typeof T=="string"?T==="use-credentials"?T:"":void 0):T=null,p.d.C(E,T))},vi.prefetchDNS=function(E){if(typeof E!="string"||!E)console.error("ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",c(E));else if(1<arguments.length){var T=arguments[1];typeof T=="object"&&T.hasOwnProperty("crossOrigin")?console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. It looks like the you are attempting to set a crossOrigin property for this DNS lookup hint. Browsers do not perform DNS queries using CORS and setting this attribute on the resource hint has no effect. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",f(T)):console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",f(T))}typeof E=="string"&&p.d.D(E)},vi.preinit=function(E,T){if(typeof E=="string"&&E?T==null||typeof T!="object"?console.error("ReactDOM.preinit(): Expected the `options` argument (second) to be an object with an `as` property describing the type of resource to be preinitialized but encountered %s instead.",f(T)):T.as!=="style"&&T.as!=="script"&&console.error('ReactDOM.preinit(): Expected the `as` property in the `options` argument (second) to contain a valid value describing the type of resource to be preinitialized but encountered %s instead. Valid values for `as` are "style" and "script".',f(T.as)):console.error("ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",c(E)),typeof E=="string"&&T&&typeof T.as=="string"){var O=T.as,M=l(O,T.crossOrigin),A=typeof T.integrity=="string"?T.integrity:void 0,D=typeof T.fetchPriority=="string"?T.fetchPriority:void 0;O==="style"?p.d.S(E,typeof T.precedence=="string"?T.precedence:void 0,{crossOrigin:M,integrity:A,fetchPriority:D}):O==="script"&&p.d.X(E,{crossOrigin:M,integrity:A,fetchPriority:D,nonce:typeof T.nonce=="string"?T.nonce:void 0})}},vi.preinitModule=function(E,T){var O="";if(typeof E=="string"&&E||(O+=" The `href` argument encountered was "+c(E)+"."),T!==void 0&&typeof T!="object"?O+=" The `options` argument encountered was "+c(T)+".":T&&"as"in T&&T.as!=="script"&&(O+=" The `as` option encountered was "+f(T.as)+"."),O)console.error("ReactDOM.preinitModule(): Expected up to two arguments, a non-empty `href` string and, optionally, an `options` object with a valid `as` property.%s",O);else switch(O=T&&typeof T.as=="string"?T.as:"script",O){case"script":break;default:O=f(O),console.error('ReactDOM.preinitModule(): Currently the only supported "as" type for this function is "script" but received "%s" instead. This warning was generated for `href` "%s". In the future other module types will be supported, aligning with the import-attributes proposal. Learn more here: (https://github.com/tc39/proposal-import-attributes)',O,E)}typeof E=="string"&&(typeof T=="object"&&T!==null?(T.as==null||T.as==="script")&&(O=l(T.as,T.crossOrigin),p.d.M(E,{crossOrigin:O,integrity:typeof T.integrity=="string"?T.integrity:void 0,nonce:typeof T.nonce=="string"?T.nonce:void 0})):T==null&&p.d.M(E))},vi.preload=function(E,T){var O="";if(typeof E=="string"&&E||(O+=" The `href` argument encountered was "+c(E)+"."),T==null||typeof T!="object"?O+=" The `options` argument encountered was "+c(T)+".":typeof T.as=="string"&&T.as||(O+=" The `as` option encountered was "+c(T.as)+"."),O&&console.error('ReactDOM.preload(): Expected two arguments, a non-empty `href` string and an `options` object with an `as` property valid for a `<link rel="preload" as="..." />` tag.%s',O),typeof E=="string"&&typeof T=="object"&&T!==null&&typeof T.as=="string"){O=T.as;var M=l(O,T.crossOrigin);p.d.L(E,O,{crossOrigin:M,integrity:typeof T.integrity=="string"?T.integrity:void 0,nonce:typeof T.nonce=="string"?T.nonce:void 0,type:typeof T.type=="string"?T.type:void 0,fetchPriority:typeof T.fetchPriority=="string"?T.fetchPriority:void 0,referrerPolicy:typeof T.referrerPolicy=="string"?T.referrerPolicy:void 0,imageSrcSet:typeof T.imageSrcSet=="string"?T.imageSrcSet:void 0,imageSizes:typeof T.imageSizes=="string"?T.imageSizes:void 0,media:typeof T.media=="string"?T.media:void 0})}},vi.preloadModule=function(E,T){var O="";typeof E=="string"&&E||(O+=" The `href` argument encountered was "+c(E)+"."),T!==void 0&&typeof T!="object"?O+=" The `options` argument encountered was "+c(T)+".":T&&"as"in T&&typeof T.as!="string"&&(O+=" The `as` option encountered was "+c(T.as)+"."),O&&console.error('ReactDOM.preloadModule(): Expected two arguments, a non-empty `href` string and, optionally, an `options` object with an `as` property valid for a `<link rel="modulepreload" as="..." />` tag.%s',O),typeof E=="string"&&(T?(O=l(T.as,T.crossOrigin),p.d.m(E,{as:typeof T.as=="string"&&T.as!=="script"?T.as:void 0,crossOrigin:O,integrity:typeof T.integrity=="string"?T.integrity:void 0})):p.d.m(E))},vi.requestFormReset=function(E){p.d.r(E)},vi.unstable_batchedUpdates=function(E,T){return E(T)},vi.useFormState=function(E,T,O){return m().useFormState(E,T,O)},vi.useFormStatus=function(){return m().useHostTransitionStatus()},vi.version="19.1.0",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}(),vi}var wM;function cE(){if(wM)return TS.exports;wM=1;var e={};function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function")){if(e.NODE_ENV!=="production")throw new Error("^_^");try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(a){console.error(a)}}}return e.NODE_ENV==="production"?(t(),TS.exports=m8()):TS.exports=p8(),TS.exports}/**
|
|
87
|
+
* @license React
|
|
88
|
+
* react-dom-client.production.js
|
|
89
|
+
*
|
|
90
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
91
|
+
*
|
|
92
|
+
* This source code is licensed under the MIT license found in the
|
|
93
|
+
* LICENSE file in the root directory of this source tree.
|
|
94
|
+
*/var TM;function g8(){if(TM)return Ev;TM=1;var e=CM(),t=ym(),a=cE();function r(o){var u="https://react.dev/errors/"+o;if(1<arguments.length){u+="?args[]="+encodeURIComponent(arguments[1]);for(var d=2;d<arguments.length;d++)u+="&args[]="+encodeURIComponent(arguments[d])}return"Minified React error #"+o+"; visit "+u+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function l(o){return!(!o||o.nodeType!==1&&o.nodeType!==9&&o.nodeType!==11)}function c(o){var u=o,d=o;if(o.alternate)for(;u.return;)u=u.return;else{o=u;do u=o,(u.flags&4098)!==0&&(d=u.return),o=u.return;while(o)}return u.tag===3?d:null}function f(o){if(o.tag===13){var u=o.memoizedState;if(u===null&&(o=o.alternate,o!==null&&(u=o.memoizedState)),u!==null)return u.dehydrated}return null}function m(o){if(c(o)!==o)throw Error(r(188))}function g(o){var u=o.alternate;if(!u){if(u=c(o),u===null)throw Error(r(188));return u!==o?null:o}for(var d=o,v=u;;){var w=d.return;if(w===null)break;var R=w.alternate;if(R===null){if(v=w.return,v!==null){d=v;continue}break}if(w.child===R.child){for(R=w.child;R;){if(R===d)return m(w),o;if(R===v)return m(w),u;R=R.sibling}throw Error(r(188))}if(d.return!==v.return)d=w,v=R;else{for(var B=!1,W=w.child;W;){if(W===d){B=!0,d=w,v=R;break}if(W===v){B=!0,v=w,d=R;break}W=W.sibling}if(!B){for(W=R.child;W;){if(W===d){B=!0,d=R,v=w;break}if(W===v){B=!0,v=R,d=w;break}W=W.sibling}if(!B)throw Error(r(189))}}if(d.alternate!==v)throw Error(r(190))}if(d.tag!==3)throw Error(r(188));return d.stateNode.current===d?o:u}function p(o){var u=o.tag;if(u===5||u===26||u===27||u===6)return o;for(o=o.child;o!==null;){if(u=p(o),u!==null)return u;o=o.sibling}return null}var y=Object.assign,S=Symbol.for("react.element"),E=Symbol.for("react.transitional.element"),T=Symbol.for("react.portal"),O=Symbol.for("react.fragment"),M=Symbol.for("react.strict_mode"),A=Symbol.for("react.profiler"),D=Symbol.for("react.provider"),_=Symbol.for("react.consumer"),z=Symbol.for("react.context"),j=Symbol.for("react.forward_ref"),$=Symbol.for("react.suspense"),V=Symbol.for("react.suspense_list"),H=Symbol.for("react.memo"),P=Symbol.for("react.lazy"),q=Symbol.for("react.activity"),Y=Symbol.for("react.memo_cache_sentinel"),te=Symbol.iterator;function G(o){return o===null||typeof o!="object"?null:(o=te&&o[te]||o["@@iterator"],typeof o=="function"?o:null)}var K=Symbol.for("react.client.reference");function J(o){if(o==null)return null;if(typeof o=="function")return o.$$typeof===K?null:o.displayName||o.name||null;if(typeof o=="string")return o;switch(o){case O:return"Fragment";case A:return"Profiler";case M:return"StrictMode";case $:return"Suspense";case V:return"SuspenseList";case q:return"Activity"}if(typeof o=="object")switch(o.$$typeof){case T:return"Portal";case z:return(o.displayName||"Context")+".Provider";case _:return(o._context.displayName||"Context")+".Consumer";case j:var u=o.render;return o=o.displayName,o||(o=u.displayName||u.name||"",o=o!==""?"ForwardRef("+o+")":"ForwardRef"),o;case H:return u=o.displayName||null,u!==null?u:J(o.type)||"Memo";case P:u=o._payload,o=o._init;try{return J(o(u))}catch{}}return null}var ie=Array.isArray,k=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,X=a.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Q={pending:!1,data:null,method:null,action:null},le=[],U=-1;function F(o){return{current:o}}function ne(o){0>U||(o.current=le[U],le[U]=null,U--)}function ae(o,u){U++,le[U]=o.current,o.current=u}var oe=F(null),fe=F(null),ye=F(null),$e=F(null);function ze(o,u){switch(ae(ye,u),ae(fe,o),ae(oe,null),u.nodeType){case 9:case 11:o=(o=u.documentElement)&&(o=o.namespaceURI)?_l(o):0;break;default:if(o=u.tagName,u=u.namespaceURI)u=_l(u),o=$s(u,o);else switch(o){case"svg":o=1;break;case"math":o=2;break;default:o=0}}ne(oe),ae(oe,o)}function Fe(){ne(oe),ne(fe),ne(ye)}function Ke(o){o.memoizedState!==null&&ae($e,o);var u=oe.current,d=$s(u,o.type);u!==d&&(ae(fe,o),ae(oe,d))}function Oe(o){fe.current===o&&(ne(oe),ne(fe)),$e.current===o&&(ne($e),Gr._currentValue=Q)}var me=Object.prototype.hasOwnProperty,Re=e.unstable_scheduleCallback,Pe=e.unstable_cancelCallback,be=e.unstable_shouldYield,Ce=e.unstable_requestPaint,_e=e.unstable_now,je=e.unstable_getCurrentPriorityLevel,Ue=e.unstable_ImmediatePriority,nt=e.unstable_UserBlockingPriority,We=e.unstable_NormalPriority,it=e.unstable_LowPriority,rt=e.unstable_IdlePriority,Ge=e.log,Rt=e.unstable_setDisableYieldValue,wt=null,At=null;function $t(o){if(typeof Ge=="function"&&Rt(o),At&&typeof At.setStrictMode=="function")try{At.setStrictMode(wt,o)}catch{}}var ht=Math.clz32?Math.clz32:Wt,kt=Math.log,Vt=Math.LN2;function Wt(o){return o>>>=0,o===0?32:31-(kt(o)/Vt|0)|0}var Tt=256,ut=4194304;function St(o){var u=o&42;if(u!==0)return u;switch(o&-o){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return o&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return o&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return o}}function et(o,u,d){var v=o.pendingLanes;if(v===0)return 0;var w=0,R=o.suspendedLanes,B=o.pingedLanes;o=o.warmLanes;var W=v&134217727;return W!==0?(v=W&~R,v!==0?w=St(v):(B&=W,B!==0?w=St(B):d||(d=W&~o,d!==0&&(w=St(d))))):(W=v&~R,W!==0?w=St(W):B!==0?w=St(B):d||(d=v&~o,d!==0&&(w=St(d)))),w===0?0:u!==0&&u!==w&&(u&R)===0&&(R=w&-w,d=u&-u,R>=d||R===32&&(d&4194048)!==0)?u:w}function lt(o,u){return(o.pendingLanes&~(o.suspendedLanes&~o.pingedLanes)&u)===0}function I(o,u){switch(o){case 1:case 2:case 4:case 8:case 64:return u+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return u+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function he(){var o=Tt;return Tt<<=1,(Tt&4194048)===0&&(Tt=256),o}function Qe(){var o=ut;return ut<<=1,(ut&62914560)===0&&(ut=4194304),o}function Je(o){for(var u=[],d=0;31>d;d++)u.push(o);return u}function ft(o,u){o.pendingLanes|=u,u!==268435456&&(o.suspendedLanes=0,o.pingedLanes=0,o.warmLanes=0)}function Ft(o,u,d,v,w,R){var B=o.pendingLanes;o.pendingLanes=d,o.suspendedLanes=0,o.pingedLanes=0,o.warmLanes=0,o.expiredLanes&=d,o.entangledLanes&=d,o.errorRecoveryDisabledLanes&=d,o.shellSuspendCounter=0;var W=o.entanglements,se=o.expirationTimes,xe=o.hiddenUpdates;for(d=B&~d;0<d;){var qe=31-ht(d),Ze=1<<qe;W[qe]=0,se[qe]=-1;var Te=xe[qe];if(Te!==null)for(xe[qe]=null,qe=0;qe<Te.length;qe++){var Ne=Te[qe];Ne!==null&&(Ne.lane&=-536870913)}d&=~Ze}v!==0&&_t(o,v,0),R!==0&&w===0&&o.tag!==0&&(o.suspendedLanes|=R&~(B&~u))}function _t(o,u,d){o.pendingLanes|=u,o.suspendedLanes&=~u;var v=31-ht(u);o.entangledLanes|=u,o.entanglements[v]=o.entanglements[v]|1073741824|d&4194090}function Dt(o,u){var d=o.entangledLanes|=u;for(o=o.entanglements;d;){var v=31-ht(d),w=1<<v;w&u|o[v]&u&&(o[v]|=u),d&=~w}}function dt(o){switch(o){case 2:o=1;break;case 8:o=4;break;case 32:o=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:o=128;break;case 268435456:o=134217728;break;default:o=0}return o}function vt(o){return o&=-o,2<o?8<o?(o&134217727)!==0?32:268435456:8:2}function Mt(){var o=X.p;return o!==0?o:(o=window.event,o===void 0?32:Ex(o.type))}function mt(o,u){var d=X.p;try{return X.p=o,u()}finally{X.p=d}}var Ht=Math.random().toString(36).slice(2),It="__reactFiber$"+Ht,ct="__reactProps$"+Ht,tt="__reactContainer$"+Ht,gt="__reactEvents$"+Ht,bt="__reactListeners$"+Ht,Ot="__reactHandles$"+Ht,Bt="__reactResources$"+Ht,En="__reactMarker$"+Ht;function ot(o){delete o[It],delete o[ct],delete o[gt],delete o[bt],delete o[Ot]}function On(o){var u=o[It];if(u)return u;for(var d=o.parentNode;d;){if(u=d[tt]||d[It]){if(d=u.alternate,u.child!==null||d!==null&&d.child!==null)for(o=_c(o);o!==null;){if(d=o[It])return d;o=_c(o)}return u}o=d,d=o.parentNode}return null}function Jt(o){if(o=o[It]||o[tt]){var u=o.tag;if(u===5||u===6||u===13||u===26||u===27||u===3)return o}return null}function zn(o){var u=o.tag;if(u===5||u===26||u===27||u===6)return o.stateNode;throw Error(r(33))}function Rn(o){var u=o[Bt];return u||(u=o[Bt]={hoistableStyles:new Map,hoistableScripts:new Map}),u}function vn(o){o[En]=!0}var nr=new Set,Un={};function nn(o,u){pt(o,u),pt(o+"Capture",u)}function pt(o,u){for(Un[o]=u,o=0;o<u.length;o++)nr.add(u[o])}var xt=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),Kt={},fn={};function Ln(o){return me.call(fn,o)?!0:me.call(Kt,o)?!1:xt.test(o)?fn[o]=!0:(Kt[o]=!0,!1)}function Qa(o,u,d){if(Ln(u))if(d===null)o.removeAttribute(u);else{switch(typeof d){case"undefined":case"function":case"symbol":o.removeAttribute(u);return;case"boolean":var v=u.toLowerCase().slice(0,5);if(v!=="data-"&&v!=="aria-"){o.removeAttribute(u);return}}o.setAttribute(u,""+d)}}function sa(o,u,d){if(d===null)o.removeAttribute(u);else{switch(typeof d){case"undefined":case"function":case"symbol":case"boolean":o.removeAttribute(u);return}o.setAttribute(u,""+d)}}function ga(o,u,d,v){if(v===null)o.removeAttribute(d);else{switch(typeof v){case"undefined":case"function":case"symbol":case"boolean":o.removeAttribute(d);return}o.setAttributeNS(u,d,""+v)}}var jr,hr;function zt(o){if(jr===void 0)try{throw Error()}catch(d){var u=d.stack.trim().match(/\n( *(at )?)/);jr=u&&u[1]||"",hr=-1<d.stack.indexOf(`
|
|
95
|
+
at`)?" (<anonymous>)":-1<d.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
96
|
+
`+jr+o+hr}var ln=!1;function an(o,u){if(!o||ln)return"";ln=!0;var d=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var v={DetermineComponentFrameRoot:function(){try{if(u){var Ze=function(){throw Error()};if(Object.defineProperty(Ze.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Ze,[])}catch(Ne){var Te=Ne}Reflect.construct(o,[],Ze)}else{try{Ze.call()}catch(Ne){Te=Ne}o.call(Ze.prototype)}}else{try{throw Error()}catch(Ne){Te=Ne}(Ze=o())&&typeof Ze.catch=="function"&&Ze.catch(function(){})}}catch(Ne){if(Ne&&Te&&typeof Ne.stack=="string")return[Ne.stack,Te.stack]}return[null,null]}};v.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var w=Object.getOwnPropertyDescriptor(v.DetermineComponentFrameRoot,"name");w&&w.configurable&&Object.defineProperty(v.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var R=v.DetermineComponentFrameRoot(),B=R[0],W=R[1];if(B&&W){var se=B.split(`
|
|
97
|
+
`),xe=W.split(`
|
|
98
|
+
`);for(w=v=0;v<se.length&&!se[v].includes("DetermineComponentFrameRoot");)v++;for(;w<xe.length&&!xe[w].includes("DetermineComponentFrameRoot");)w++;if(v===se.length||w===xe.length)for(v=se.length-1,w=xe.length-1;1<=v&&0<=w&&se[v]!==xe[w];)w--;for(;1<=v&&0<=w;v--,w--)if(se[v]!==xe[w]){if(v!==1||w!==1)do if(v--,w--,0>w||se[v]!==xe[w]){var qe=`
|
|
99
|
+
`+se[v].replace(" at new "," at ");return o.displayName&&qe.includes("<anonymous>")&&(qe=qe.replace("<anonymous>",o.displayName)),qe}while(1<=v&&0<=w);break}}}finally{ln=!1,Error.prepareStackTrace=d}return(d=o?o.displayName||o.name:"")?zt(d):""}function za(o){switch(o.tag){case 26:case 27:case 5:return zt(o.type);case 16:return zt("Lazy");case 13:return zt("Suspense");case 19:return zt("SuspenseList");case 0:case 15:return an(o.type,!1);case 11:return an(o.type.render,!1);case 1:return an(o.type,!0);case 31:return zt("Activity");default:return""}}function ja(o){try{var u="";do u+=za(o),o=o.return;while(o);return u}catch(d){return`
|
|
100
|
+
Error generating stack: `+d.message+`
|
|
101
|
+
`+d.stack}}function va(o){switch(typeof o){case"bigint":case"boolean":case"number":case"string":case"undefined":return o;case"object":return o;default:return""}}function Lr(o){var u=o.type;return(o=o.nodeName)&&o.toLowerCase()==="input"&&(u==="checkbox"||u==="radio")}function oi(o){var u=Lr(o)?"checked":"value",d=Object.getOwnPropertyDescriptor(o.constructor.prototype,u),v=""+o[u];if(!o.hasOwnProperty(u)&&typeof d<"u"&&typeof d.get=="function"&&typeof d.set=="function"){var w=d.get,R=d.set;return Object.defineProperty(o,u,{configurable:!0,get:function(){return w.call(this)},set:function(B){v=""+B,R.call(this,B)}}),Object.defineProperty(o,u,{enumerable:d.enumerable}),{getValue:function(){return v},setValue:function(B){v=""+B},stopTracking:function(){o._valueTracker=null,delete o[u]}}}}function Vr(o){o._valueTracker||(o._valueTracker=oi(o))}function li(o){if(!o)return!1;var u=o._valueTracker;if(!u)return!0;var d=u.getValue(),v="";return o&&(v=Lr(o)?o.checked?"true":"false":o.value),o=v,o!==d?(u.setValue(o),!0):!1}function Hr(o){if(o=o||(typeof document<"u"?document:void 0),typeof o>"u")return null;try{return o.activeElement||o.body}catch{return o.body}}var dn=/[\n"\\]/g;function Gt(o){return o.replace(dn,function(u){return"\\"+u.charCodeAt(0).toString(16)+" "})}function La(o,u,d,v,w,R,B,W){o.name="",B!=null&&typeof B!="function"&&typeof B!="symbol"&&typeof B!="boolean"?o.type=B:o.removeAttribute("type"),u!=null?B==="number"?(u===0&&o.value===""||o.value!=u)&&(o.value=""+va(u)):o.value!==""+va(u)&&(o.value=""+va(u)):B!=="submit"&&B!=="reset"||o.removeAttribute("value"),u!=null?ea(o,B,va(u)):d!=null?ea(o,B,va(d)):v!=null&&o.removeAttribute("value"),w==null&&R!=null&&(o.defaultChecked=!!R),w!=null&&(o.checked=w&&typeof w!="function"&&typeof w!="symbol"),W!=null&&typeof W!="function"&&typeof W!="symbol"&&typeof W!="boolean"?o.name=""+va(W):o.removeAttribute("name")}function Ia(o,u,d,v,w,R,B,W){if(R!=null&&typeof R!="function"&&typeof R!="symbol"&&typeof R!="boolean"&&(o.type=R),u!=null||d!=null){if(!(R!=="submit"&&R!=="reset"||u!=null))return;d=d!=null?""+va(d):"",u=u!=null?""+va(u):d,W||u===o.value||(o.value=u),o.defaultValue=u}v=v??w,v=typeof v!="function"&&typeof v!="symbol"&&!!v,o.checked=W?o.checked:!!v,o.defaultChecked=!!v,B!=null&&typeof B!="function"&&typeof B!="symbol"&&typeof B!="boolean"&&(o.name=B)}function ea(o,u,d){u==="number"&&Hr(o.ownerDocument)===o||o.defaultValue===""+d||(o.defaultValue=""+d)}function Kn(o,u,d,v){if(o=o.options,u){u={};for(var w=0;w<d.length;w++)u["$"+d[w]]=!0;for(d=0;d<o.length;d++)w=u.hasOwnProperty("$"+o[d].value),o[d].selected!==w&&(o[d].selected=w),w&&v&&(o[d].defaultSelected=!0)}else{for(d=""+va(d),u=null,w=0;w<o.length;w++){if(o[w].value===d){o[w].selected=!0,v&&(o[w].defaultSelected=!0);return}u!==null||o[w].disabled||(u=o[w])}u!==null&&(u.selected=!0)}}function Br(o,u,d){if(u!=null&&(u=""+va(u),u!==o.value&&(o.value=u),d==null)){o.defaultValue!==u&&(o.defaultValue=u);return}o.defaultValue=d!=null?""+va(d):""}function xr(o,u,d,v){if(u==null){if(v!=null){if(d!=null)throw Error(r(92));if(ie(v)){if(1<v.length)throw Error(r(93));v=v[0]}d=v}d==null&&(d=""),u=d}d=va(u),o.defaultValue=d,v=o.textContent,v===d&&v!==""&&v!==null&&(o.value=v)}function ar(o,u){if(u){var d=o.firstChild;if(d&&d===o.lastChild&&d.nodeType===3){d.nodeValue=u;return}}o.textContent=u}var yo=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function si(o,u,d){var v=u.indexOf("--")===0;d==null||typeof d=="boolean"||d===""?v?o.setProperty(u,""):u==="float"?o.cssFloat="":o[u]="":v?o.setProperty(u,d):typeof d!="number"||d===0||yo.has(u)?u==="float"?o.cssFloat=d:o[u]=(""+d).trim():o[u]=d+"px"}function Wi(o,u,d){if(u!=null&&typeof u!="object")throw Error(r(62));if(o=o.style,d!=null){for(var v in d)!d.hasOwnProperty(v)||u!=null&&u.hasOwnProperty(v)||(v.indexOf("--")===0?o.setProperty(v,""):v==="float"?o.cssFloat="":o[v]="");for(var w in u)v=u[w],u.hasOwnProperty(w)&&d[w]!==v&&si(o,w,v)}else for(var R in u)u.hasOwnProperty(R)&&si(o,R,u[R])}function Fa(o){if(o.indexOf("-")===-1)return!1;switch(o){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 Po=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),kd=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Er(o){return kd.test(""+o)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":o}var Uo=null;function Zi(o){return o=o.target||o.srcElement||window,o.correspondingUseElement&&(o=o.correspondingUseElement),o.nodeType===3?o.parentNode:o}var Pr=null,Ti=null;function Ju(o){var u=Jt(o);if(u&&(o=u.stateNode)){var d=o[ct]||null;e:switch(o=u.stateNode,u.type){case"input":if(La(o,d.value,d.defaultValue,d.defaultValue,d.checked,d.defaultChecked,d.type,d.name),u=d.name,d.type==="radio"&&u!=null){for(d=o;d.parentNode;)d=d.parentNode;for(d=d.querySelectorAll('input[name="'+Gt(""+u)+'"][type="radio"]'),u=0;u<d.length;u++){var v=d[u];if(v!==o&&v.form===o.form){var w=v[ct]||null;if(!w)throw Error(r(90));La(v,w.value,w.defaultValue,w.defaultValue,w.checked,w.defaultChecked,w.type,w.name)}}for(u=0;u<d.length;u++)v=d[u],v.form===o.form&&li(v)}break e;case"textarea":Br(o,d.value,d.defaultValue);break e;case"select":u=d.value,u!=null&&Kn(o,!!d.multiple,u,!1)}}}var nu=!1;function uf(o,u,d){if(nu)return o(u,d);nu=!0;try{var v=o(u);return v}finally{if(nu=!1,(Pr!==null||Ti!==null)&&($h(),Pr&&(u=Pr,o=Ti,Ti=Pr=null,Ju(u),o)))for(u=0;u<o.length;u++)Ju(o[u])}}function Ki(o,u){var d=o.stateNode;if(d===null)return null;var v=d[ct]||null;if(v===null)return null;d=v[u];e:switch(u){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(v=!v.disabled)||(o=o.type,v=!(o==="button"||o==="input"||o==="select"||o==="textarea")),o=!v;break e;default:o=!1}if(o)return null;if(d&&typeof d!="function")throw Error(r(231,u,typeof d));return d}var Et=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Qt=!1;if(Et)try{var qn={};Object.defineProperty(qn,"passive",{get:function(){Qt=!0}}),window.addEventListener("test",qn,qn),window.removeEventListener("test",qn,qn)}catch{Qt=!1}var Bn=null,ya=null,bo=null;function us(){if(bo)return bo;var o,u=ya,d=u.length,v,w="value"in Bn?Bn.value:Bn.textContent,R=w.length;for(o=0;o<d&&u[o]===w[o];o++);var B=d-o;for(v=1;v<=B&&u[d-v]===w[R-v];v++);return bo=w.slice(o,1<v?1-v:void 0)}function au(o){var u=o.keyCode;return"charCode"in o?(o=o.charCode,o===0&&u===13&&(o=13)):o=u,o===10&&(o=13),32<=o||o===13?o:0}function ka(){return!0}function EC(){return!1}function Kr(o){function u(d,v,w,R,B){this._reactName=d,this._targetInst=w,this.type=v,this.nativeEvent=R,this.target=B,this.currentTarget=null;for(var W in o)o.hasOwnProperty(W)&&(d=o[W],this[W]=d?d(R):R[W]);return this.isDefaultPrevented=(R.defaultPrevented!=null?R.defaultPrevented:R.returnValue===!1)?ka:EC,this.isPropagationStopped=EC,this}return y(u.prototype,{preventDefault:function(){this.defaultPrevented=!0;var d=this.nativeEvent;d&&(d.preventDefault?d.preventDefault():typeof d.returnValue!="unknown"&&(d.returnValue=!1),this.isDefaultPrevented=ka)},stopPropagation:function(){var d=this.nativeEvent;d&&(d.stopPropagation?d.stopPropagation():typeof d.cancelBubble!="unknown"&&(d.cancelBubble=!0),this.isPropagationStopped=ka)},persist:function(){},isPersistent:ka}),u}var ru={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(o){return o.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Gd=Kr(ru),qd=y({},ru,{view:0,detail:0}),XR=Kr(qd),dp,U0,cf,hp=y({},qd,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:mp,button:0,buttons:0,relatedTarget:function(o){return o.relatedTarget===void 0?o.fromElement===o.srcElement?o.toElement:o.fromElement:o.relatedTarget},movementX:function(o){return"movementX"in o?o.movementX:(o!==cf&&(cf&&o.type==="mousemove"?(dp=o.screenX-cf.screenX,U0=o.screenY-cf.screenY):U0=dp=0,cf=o),dp)},movementY:function(o){return"movementY"in o?o.movementY:U0}}),Yd=Kr(hp),wC=y({},hp,{dataTransfer:0}),TC=Kr(wC),OC=y({},qd,{relatedTarget:0}),I0=Kr(OC),WR=y({},ru,{animationName:0,elapsedTime:0,pseudoElement:0}),ZR=Kr(WR),KR=y({},ru,{clipboardData:function(o){return"clipboardData"in o?o.clipboardData:window.clipboardData}}),QR=Kr(KR),Xd=y({},ru,{data:0}),F0=Kr(Xd),RC={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},AC={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"},MC={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function k0(o){var u=this.nativeEvent;return u.getModifierState?u.getModifierState(o):(o=MC[o])?!!u[o]:!1}function mp(){return k0}var ec=y({},qd,{key:function(o){if(o.key){var u=RC[o.key]||o.key;if(u!=="Unidentified")return u}return o.type==="keypress"?(o=au(o),o===13?"Enter":String.fromCharCode(o)):o.type==="keydown"||o.type==="keyup"?AC[o.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:mp,charCode:function(o){return o.type==="keypress"?au(o):0},keyCode:function(o){return o.type==="keydown"||o.type==="keyup"?o.keyCode:0},which:function(o){return o.type==="keypress"?au(o):o.type==="keydown"||o.type==="keyup"?o.keyCode:0}}),tc=Kr(ec),Io=y({},hp,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Oi=Kr(Io),pp=y({},qd,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:mp}),gp=Kr(pp),G0=y({},ru,{propertyName:0,elapsedTime:0,pseudoElement:0}),Ri=Kr(G0),_C=y({},hp,{deltaX:function(o){return"deltaX"in o?o.deltaX:"wheelDeltaX"in o?-o.wheelDeltaX:0},deltaY:function(o){return"deltaY"in o?o.deltaY:"wheelDeltaY"in o?-o.wheelDeltaY:"wheelDelta"in o?-o.wheelDelta:0},deltaZ:0,deltaMode:0}),vp=Kr(_C),nc=y({},ru,{newState:0,oldState:0}),q0=Kr(nc),DC=[9,13,27,32],yp=Et&&"CompositionEvent"in window,ac=null;Et&&"documentMode"in document&&(ac=document.documentMode);var JR=Et&&"TextEvent"in window&&!ac,bp=Et&&(!yp||ac&&8<ac&&11>=ac),El=" ",Y0=!1;function Sp(o,u){switch(o){case"keyup":return DC.indexOf(u.keyCode)!==-1;case"keydown":return u.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Wd(o){return o=o.detail,typeof o=="object"&&"data"in o?o.data:null}var So=!1;function X0(o,u){switch(o){case"compositionend":return Wd(u);case"keypress":return u.which!==32?null:(Y0=!0,El);case"textInput":return o=u.data,o===El&&Y0?null:o;default:return null}}function W0(o,u){if(So)return o==="compositionend"||!yp&&Sp(o,u)?(o=us(),bo=ya=Bn=null,So=!1,o):null;switch(o){case"paste":return null;case"keypress":if(!(u.ctrlKey||u.altKey||u.metaKey)||u.ctrlKey&&u.altKey){if(u.char&&1<u.char.length)return u.char;if(u.which)return String.fromCharCode(u.which)}return null;case"compositionend":return bp&&u.locale!=="ko"?null:u.data;default:return null}}var rc={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 Z0(o){var u=o&&o.nodeName&&o.nodeName.toLowerCase();return u==="input"?!!rc[o.type]:u==="textarea"}function Cp(o,u,d,v){Pr?Ti?Ti.push(v):Ti=[v]:Pr=v,u=Nu(u,"onChange"),0<u.length&&(d=new Gd("onChange","change",null,d,v),o.push({event:d,listeners:u}))}var ic=null,Fo=null;function oc(o){Ns(o,0)}function ff(o){var u=zn(o);if(li(u))return o}function iu(o,u){if(o==="change")return u}var K0=!1;if(Et){var xp;if(Et){var lc="oninput"in document;if(!lc){var df=document.createElement("div");df.setAttribute("oninput","return;"),lc=typeof df.oninput=="function"}xp=lc}else xp=!1;K0=xp&&(!document.documentMode||9<document.documentMode)}function Q0(){ic&&(ic.detachEvent("onpropertychange",hf),Fo=ic=null)}function hf(o){if(o.propertyName==="value"&&ff(Fo)){var u=[];Cp(u,Fo,o,Zi(o)),uf(oc,u)}}function NC(o,u,d){o==="focusin"?(Q0(),ic=u,Fo=d,ic.attachEvent("onpropertychange",hf)):o==="focusout"&&Q0()}function Ep(o){if(o==="selectionchange"||o==="keyup"||o==="keydown")return ff(Fo)}function ou(o,u){if(o==="click")return ff(u)}function cs(o,u){if(o==="input"||o==="change")return ff(u)}function J0(o,u){return o===u&&(o!==0||1/o===1/u)||o!==o&&u!==u}var ui=typeof Object.is=="function"?Object.is:J0;function fs(o,u){if(ui(o,u))return!0;if(typeof o!="object"||o===null||typeof u!="object"||u===null)return!1;var d=Object.keys(o),v=Object.keys(u);if(d.length!==v.length)return!1;for(v=0;v<d.length;v++){var w=d[v];if(!me.call(u,w)||!ui(o[w],u[w]))return!1}return!0}function Zd(o){for(;o&&o.firstChild;)o=o.firstChild;return o}function lu(o,u){var d=Zd(o);o=0;for(var v;d;){if(d.nodeType===3){if(v=o+d.textContent.length,o<=u&&v>=u)return{node:d,offset:u-o};o=v}e:{for(;d;){if(d.nextSibling){d=d.nextSibling;break e}d=d.parentNode}d=void 0}d=Zd(d)}}function Ea(o,u){return o&&u?o===u?!0:o&&o.nodeType===3?!1:u&&u.nodeType===3?Ea(o,u.parentNode):"contains"in o?o.contains(u):o.compareDocumentPosition?!!(o.compareDocumentPosition(u)&16):!1:!1}function Kd(o){o=o!=null&&o.ownerDocument!=null&&o.ownerDocument.defaultView!=null?o.ownerDocument.defaultView:window;for(var u=Hr(o.document);u instanceof o.HTMLIFrameElement;){try{var d=typeof u.contentWindow.location.href=="string"}catch{d=!1}if(d)o=u.contentWindow;else break;u=Hr(o.document)}return u}function wp(o){var u=o&&o.nodeName&&o.nodeName.toLowerCase();return u&&(u==="input"&&(o.type==="text"||o.type==="search"||o.type==="tel"||o.type==="url"||o.type==="password")||u==="textarea"||o.contentEditable==="true")}var ey=Et&&"documentMode"in document&&11>=document.documentMode,Co=null,sc=null,Qi=null,mf=!1;function pf(o,u,d){var v=d.window===d?d.document:d.nodeType===9?d:d.ownerDocument;mf||Co==null||Co!==Hr(v)||(v=Co,"selectionStart"in v&&wp(v)?v={start:v.selectionStart,end:v.selectionEnd}:(v=(v.ownerDocument&&v.ownerDocument.defaultView||window).getSelection(),v={anchorNode:v.anchorNode,anchorOffset:v.anchorOffset,focusNode:v.focusNode,focusOffset:v.focusOffset}),Qi&&fs(Qi,v)||(Qi=v,v=Nu(sc,"onSelect"),0<v.length&&(u=new Gd("onSelect","select",null,u,d),o.push({event:u,listeners:v}),u.target=Co)))}function ds(o,u){var d={};return d[o.toLowerCase()]=u.toLowerCase(),d["Webkit"+o]="webkit"+u,d["Moz"+o]="moz"+u,d}var su={animationend:ds("Animation","AnimationEnd"),animationiteration:ds("Animation","AnimationIteration"),animationstart:ds("Animation","AnimationStart"),transitionrun:ds("Transition","TransitionRun"),transitionstart:ds("Transition","TransitionStart"),transitioncancel:ds("Transition","TransitionCancel"),transitionend:ds("Transition","TransitionEnd")},Tp={},ko={};Et&&(ko=document.createElement("div").style,"AnimationEvent"in window||(delete su.animationend.animation,delete su.animationiteration.animation,delete su.animationstart.animation),"TransitionEvent"in window||delete su.transitionend.transition);function Qr(o){if(Tp[o])return Tp[o];if(!su[o])return o;var u=su[o],d;for(d in u)if(u.hasOwnProperty(d)&&d in ko)return Tp[o]=u[d];return o}var Qd=Qr("animationend"),$C=Qr("animationiteration"),ty=Qr("animationstart"),eA=Qr("transitionrun"),ny=Qr("transitionstart"),Op=Qr("transitioncancel"),ay=Qr("transitionend"),ry=new Map,Rp="abort auxClick beforeToggle 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(" ");Rp.push("scrollEnd");function Ai(o,u){ry.set(o,u),nn(u,[o])}var iy=new WeakMap;function Ji(o,u){if(typeof o=="object"&&o!==null){var d=iy.get(o);return d!==void 0?d:(u={value:o,source:u,stack:ja(u)},iy.set(o,u),u)}return{value:o,source:u,stack:ja(u)}}var eo=[],uu=0,Jd=0;function Go(){for(var o=uu,u=Jd=uu=0;u<o;){var d=eo[u];eo[u++]=null;var v=eo[u];eo[u++]=null;var w=eo[u];eo[u++]=null;var R=eo[u];if(eo[u++]=null,v!==null&&w!==null){var B=v.pending;B===null?w.next=w:(w.next=B.next,B.next=w),v.pending=w}R!==0&&gf(d,w,R)}}function qo(o,u,d,v){eo[uu++]=o,eo[uu++]=u,eo[uu++]=d,eo[uu++]=v,Jd|=v,o.lanes|=v,o=o.alternate,o!==null&&(o.lanes|=v)}function uc(o,u,d,v){return qo(o,u,d,v),cu(o)}function hs(o,u){return qo(o,null,null,u),cu(o)}function gf(o,u,d){o.lanes|=d;var v=o.alternate;v!==null&&(v.lanes|=d);for(var w=!1,R=o.return;R!==null;)R.childLanes|=d,v=R.alternate,v!==null&&(v.childLanes|=d),R.tag===22&&(o=R.stateNode,o===null||o._visibility&1||(w=!0)),o=R,R=R.return;return o.tag===3?(R=o.stateNode,w&&u!==null&&(w=31-ht(d),o=R.hiddenUpdates,v=o[w],v===null?o[w]=[u]:v.push(u),u.lane=d|536870912),R):null}function cu(o){if(50<Wf)throw Wf=0,mg=null,Error(r(185));for(var u=o.return;u!==null;)o=u,u=o.return;return o.tag===3?o.stateNode:null}var cc={};function tA(o,u,d,v){this.tag=o,this.key=d,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=u,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=v,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Mi(o,u,d,v){return new tA(o,u,d,v)}function Ap(o){return o=o.prototype,!(!o||!o.isReactComponent)}function Yo(o,u){var d=o.alternate;return d===null?(d=Mi(o.tag,u,o.key,o.mode),d.elementType=o.elementType,d.type=o.type,d.stateNode=o.stateNode,d.alternate=o,o.alternate=d):(d.pendingProps=u,d.type=o.type,d.flags=0,d.subtreeFlags=0,d.deletions=null),d.flags=o.flags&65011712,d.childLanes=o.childLanes,d.lanes=o.lanes,d.child=o.child,d.memoizedProps=o.memoizedProps,d.memoizedState=o.memoizedState,d.updateQueue=o.updateQueue,u=o.dependencies,d.dependencies=u===null?null:{lanes:u.lanes,firstContext:u.firstContext},d.sibling=o.sibling,d.index=o.index,d.ref=o.ref,d.refCleanup=o.refCleanup,d}function Mp(o,u){o.flags&=65011714;var d=o.alternate;return d===null?(o.childLanes=0,o.lanes=u,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=d.childLanes,o.lanes=d.lanes,o.child=d.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=d.memoizedProps,o.memoizedState=d.memoizedState,o.updateQueue=d.updateQueue,o.type=d.type,u=d.dependencies,o.dependencies=u===null?null:{lanes:u.lanes,firstContext:u.firstContext}),o}function yn(o,u,d,v,w,R){var B=0;if(v=o,typeof o=="function")Ap(o)&&(B=1);else if(typeof o=="string")B=gx(o,d,oe.current)?26:o==="html"||o==="head"||o==="body"?27:5;else e:switch(o){case q:return o=Mi(31,d,u,w),o.elementType=q,o.lanes=R,o;case O:return at(d.children,w,R,u);case M:B=8,w|=24;break;case A:return o=Mi(12,d,u,w|2),o.elementType=A,o.lanes=R,o;case $:return o=Mi(13,d,u,w),o.elementType=$,o.lanes=R,o;case V:return o=Mi(19,d,u,w),o.elementType=V,o.lanes=R,o;default:if(typeof o=="object"&&o!==null)switch(o.$$typeof){case D:case z:B=10;break e;case _:B=9;break e;case j:B=11;break e;case H:B=14;break e;case P:B=16,v=null;break e}B=29,d=Error(r(130,o===null?"null":typeof o,"")),v=null}return u=Mi(B,d,u,w),u.elementType=o,u.type=v,u.lanes=R,u}function at(o,u,d,v){return o=Mi(7,o,v,u),o.lanes=d,o}function fu(o,u,d){return o=Mi(6,o,null,u),o.lanes=d,o}function vf(o,u,d){return u=Mi(4,o.children!==null?o.children:[],o.key,u),u.lanes=d,u.stateNode={containerInfo:o.containerInfo,pendingChildren:null,implementation:o.implementation},u}var Sa=[],du=0,yf=null,eh=0,_i=[],xo=0,ms=null,Xo=1,Wo="";function rr(o,u){Sa[du++]=eh,Sa[du++]=yf,yf=o,eh=u}function Qn(o,u,d){_i[xo++]=Xo,_i[xo++]=Wo,_i[xo++]=ms,ms=o;var v=Xo;o=Wo;var w=32-ht(v)-1;v&=~(1<<w),d+=1;var R=32-ht(u)+w;if(30<R){var B=w-w%5;R=(v&(1<<B)-1).toString(32),v>>=B,w-=B,Xo=1<<32-ht(u)+w|d<<w|v,Wo=R+o}else Xo=1<<R|d<<w|v,Wo=o}function th(o){o.return!==null&&(rr(o,1),Qn(o,1,0))}function fc(o){for(;o===yf;)yf=Sa[--du],Sa[du]=null,eh=Sa[--du],Sa[du]=null;for(;o===ms;)ms=_i[--xo],_i[xo]=null,Wo=_i[--xo],_i[xo]=null,Xo=_i[--xo],_i[xo]=null}var Ga=null,ua=null,bn=!1,ps=null,ci=!1,nh=Error(r(519));function Zo(o){var u=Error(r(418,""));throw Cf(Ji(u,o)),nh}function _p(o){var u=o.stateNode,d=o.type,v=o.memoizedProps;switch(u[It]=o,u[ct]=v,d){case"dialog":mn("cancel",u),mn("close",u);break;case"iframe":case"object":case"embed":mn("load",u);break;case"video":case"audio":for(d=0;d<un.length;d++)mn(un[d],u);break;case"source":mn("error",u);break;case"img":case"image":case"link":mn("error",u),mn("load",u);break;case"details":mn("toggle",u);break;case"input":mn("invalid",u),Ia(u,v.value,v.defaultValue,v.checked,v.defaultChecked,v.type,v.name,!0),Vr(u);break;case"select":mn("invalid",u);break;case"textarea":mn("invalid",u),xr(u,v.value,v.defaultValue,v.children),Vr(u)}d=v.children,typeof d!="string"&&typeof d!="number"&&typeof d!="bigint"||u.textContent===""+d||v.suppressHydrationWarning===!0||hx(u.textContent,d)?(v.popover!=null&&(mn("beforetoggle",u),mn("toggle",u)),v.onScroll!=null&&mn("scroll",u),v.onScrollEnd!=null&&mn("scrollend",u),v.onClick!=null&&(u.onclick=Uh),u=!0):u=!1,u||Zo(o)}function ah(o){for(Ga=o.return;Ga;)switch(Ga.tag){case 5:case 13:ci=!1;return;case 27:case 3:ci=!0;return;default:Ga=Ga.return}}function bf(o){if(o!==Ga)return!1;if(!bn)return ah(o),bn=!0,!1;var u=o.tag,d;if((d=u!==3&&u!==27)&&((d=u===5)&&(d=o.type,d=!(d!=="form"&&d!=="button")||Mc(o.type,o.memoizedProps)),d=!d),d&&ua&&Zo(o),ah(o),u===13){if(o=o.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(r(317));e:{for(o=o.nextSibling,u=0;o;){if(o.nodeType===8)if(d=o.data,d==="/$"){if(u===0){ua=ul(o.nextSibling);break e}u--}else d!=="$"&&d!=="$!"&&d!=="$?"||u++;o=o.nextSibling}ua=null}}else u===27?(u=ua,Fr(o.type)?(o=Tb,Tb=null,ua=o):ua=u):ua=Ga?ul(o.stateNode.nextSibling):null;return!0}function Sf(){ua=Ga=null,bn=!1}function oy(){var o=ps;return o!==null&&(di===null?di=o:di.push.apply(di,o),ps=null),o}function Cf(o){ps===null?ps=[o]:ps.push(o)}var Dp=F(null),gs=null,Ko=null;function wl(o,u,d){ae(Dp,u._currentValue),u._currentValue=d}function Tl(o){o._currentValue=Dp.current,ne(Dp)}function Np(o,u,d){for(;o!==null;){var v=o.alternate;if((o.childLanes&u)!==u?(o.childLanes|=u,v!==null&&(v.childLanes|=u)):v!==null&&(v.childLanes&u)!==u&&(v.childLanes|=u),o===d)break;o=o.return}}function $p(o,u,d,v){var w=o.child;for(w!==null&&(w.return=o);w!==null;){var R=w.dependencies;if(R!==null){var B=w.child;R=R.firstContext;e:for(;R!==null;){var W=R;R=w;for(var se=0;se<u.length;se++)if(W.context===u[se]){R.lanes|=d,W=R.alternate,W!==null&&(W.lanes|=d),Np(R.return,d,o),v||(B=null);break e}R=W.next}}else if(w.tag===18){if(B=w.return,B===null)throw Error(r(341));B.lanes|=d,R=B.alternate,R!==null&&(R.lanes|=d),Np(B,d,o),B=null}else B=w.child;if(B!==null)B.return=w;else for(B=w;B!==null;){if(B===o){B=null;break}if(w=B.sibling,w!==null){w.return=B.return,B=w;break}B=B.return}w=B}}function rh(o,u,d,v){o=null;for(var w=u,R=!1;w!==null;){if(!R){if((w.flags&524288)!==0)R=!0;else if((w.flags&262144)!==0)break}if(w.tag===10){var B=w.alternate;if(B===null)throw Error(r(387));if(B=B.memoizedProps,B!==null){var W=w.type;ui(w.pendingProps.value,B.value)||(o!==null?o.push(W):o=[W])}}else if(w===$e.current){if(B=w.alternate,B===null)throw Error(r(387));B.memoizedState.memoizedState!==w.memoizedState.memoizedState&&(o!==null?o.push(Gr):o=[Gr])}w=w.return}o!==null&&$p(u,o,d,v),u.flags|=262144}function ih(o){for(o=o.firstContext;o!==null;){if(!ui(o.context._currentValue,o.memoizedValue))return!0;o=o.next}return!1}function hu(o){gs=o,Ko=null,o=o.dependencies,o!==null&&(o.firstContext=null)}function Ur(o){return ly(gs,o)}function xf(o,u){return gs===null&&hu(o),ly(o,u)}function ly(o,u){var d=u._currentValue;if(u={context:u,memoizedValue:d,next:null},Ko===null){if(o===null)throw Error(r(308));Ko=u,o.dependencies={lanes:0,firstContext:u},o.flags|=524288}else Ko=Ko.next=u;return d}var zC=typeof AbortController<"u"?AbortController:function(){var o=[],u=this.signal={aborted:!1,addEventListener:function(d,v){o.push(v)}};this.abort=function(){u.aborted=!0,o.forEach(function(d){return d()})}},Ef=e.unstable_scheduleCallback,zp=e.unstable_NormalPriority,ir={$$typeof:z,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function sy(){return{controller:new zC,data:new Map,refCount:0}}function mu(o){o.refCount--,o.refCount===0&&Ef(zp,function(){o.controller.abort()})}var Ol=null,wf=0,pu=0,Eo=null;function Di(o,u){if(Ol===null){var d=Ol=[];wf=0,pu=wg(),Eo={status:"pending",value:void 0,then:function(v){d.push(v)}}}return wf++,u.then(oh,oh),u}function oh(){if(--wf===0&&Ol!==null){Eo!==null&&(Eo.status="fulfilled");var o=Ol;Ol=null,pu=0,Eo=null;for(var u=0;u<o.length;u++)(0,o[u])()}}function uy(o,u){var d=[],v={status:"pending",value:null,reason:null,then:function(w){d.push(w)}};return o.then(function(){v.status="fulfilled",v.value=u;for(var w=0;w<d.length;w++)(0,d[w])(u)},function(w){for(v.status="rejected",v.reason=w,w=0;w<d.length;w++)(0,d[w])(void 0)}),v}var cy=k.S;k.S=function(o,u){typeof u=="object"&&u!==null&&typeof u.then=="function"&&Di(o,u),cy!==null&&cy(o,u)};var vs=F(null);function Tf(){var o=vs.current;return o!==null?o:fa.pooledCache}function Of(o,u){u===null?ae(vs,vs.current):ae(vs,u.pool)}function lh(){var o=Tf();return o===null?null:{parent:ir._currentValue,pool:o}}var dc=Error(r(460)),sh=Error(r(474)),Rf=Error(r(542)),jp={then:function(){}};function fy(o){return o=o.status,o==="fulfilled"||o==="rejected"}function Af(){}function dy(o,u,d){switch(d=o[d],d===void 0?o.push(u):d!==u&&(u.then(Af,Af),u=d),u.status){case"fulfilled":return u.value;case"rejected":throw o=u.reason,hy(o),o;default:if(typeof u.status=="string")u.then(Af,Af);else{if(o=fa,o!==null&&100<o.shellSuspendCounter)throw Error(r(482));o=u,o.status="pending",o.then(function(v){if(u.status==="pending"){var w=u;w.status="fulfilled",w.value=v}},function(v){if(u.status==="pending"){var w=u;w.status="rejected",w.reason=v}})}switch(u.status){case"fulfilled":return u.value;case"rejected":throw o=u.reason,hy(o),o}throw Mf=u,dc}}var Mf=null;function Lp(){if(Mf===null)throw Error(r(459));var o=Mf;return Mf=null,o}function hy(o){if(o===dc||o===Rf)throw Error(r(483))}var ys=!1;function uh(o){o.updateQueue={baseState:o.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Vp(o,u){o=o.updateQueue,u.updateQueue===o&&(u.updateQueue={baseState:o.baseState,firstBaseUpdate:o.firstBaseUpdate,lastBaseUpdate:o.lastBaseUpdate,shared:o.shared,callbacks:null})}function bs(o){return{lane:o,tag:0,payload:null,callback:null,next:null}}function Ni(o,u,d){var v=o.updateQueue;if(v===null)return null;if(v=v.shared,(Jn&2)!==0){var w=v.pending;return w===null?u.next=u:(u.next=w.next,w.next=u),v.pending=u,u=cu(o),gf(o,null,d),u}return qo(o,v,u,d),cu(o)}function hc(o,u,d){if(u=u.updateQueue,u!==null&&(u=u.shared,(d&4194048)!==0)){var v=u.lanes;v&=o.pendingLanes,d|=v,u.lanes=d,Dt(o,d)}}function ch(o,u){var d=o.updateQueue,v=o.alternate;if(v!==null&&(v=v.updateQueue,d===v)){var w=null,R=null;if(d=d.firstBaseUpdate,d!==null){do{var B={lane:d.lane,tag:d.tag,payload:d.payload,callback:null,next:null};R===null?w=R=B:R=R.next=B,d=d.next}while(d!==null);R===null?w=R=u:R=R.next=u}else w=R=u;d={baseState:v.baseState,firstBaseUpdate:w,lastBaseUpdate:R,shared:v.shared,callbacks:v.callbacks},o.updateQueue=d;return}o=d.lastBaseUpdate,o===null?d.firstBaseUpdate=u:o.next=u,d.lastBaseUpdate=u}var my=!1;function fh(){if(my){var o=Eo;if(o!==null)throw o}}function _f(o,u,d,v){my=!1;var w=o.updateQueue;ys=!1;var R=w.firstBaseUpdate,B=w.lastBaseUpdate,W=w.shared.pending;if(W!==null){w.shared.pending=null;var se=W,xe=se.next;se.next=null,B===null?R=xe:B.next=xe,B=se;var qe=o.alternate;qe!==null&&(qe=qe.updateQueue,W=qe.lastBaseUpdate,W!==B&&(W===null?qe.firstBaseUpdate=xe:W.next=xe,qe.lastBaseUpdate=se))}if(R!==null){var Ze=w.baseState;B=0,qe=xe=se=null,W=R;do{var Te=W.lane&-536870913,Ne=Te!==W.lane;if(Ne?(Pn&Te)===Te:(v&Te)===Te){Te!==0&&Te===pu&&(my=!0),qe!==null&&(qe=qe.next={lane:0,tag:W.tag,payload:W.payload,callback:null,next:null});e:{var en=o,Yt=W;Te=u;var Wn=d;switch(Yt.tag){case 1:if(en=Yt.payload,typeof en=="function"){Ze=en.call(Wn,Ze,Te);break e}Ze=en;break e;case 3:en.flags=en.flags&-65537|128;case 0:if(en=Yt.payload,Te=typeof en=="function"?en.call(Wn,Ze,Te):en,Te==null)break e;Ze=y({},Ze,Te);break e;case 2:ys=!0}}Te=W.callback,Te!==null&&(o.flags|=64,Ne&&(o.flags|=8192),Ne=w.callbacks,Ne===null?w.callbacks=[Te]:Ne.push(Te))}else Ne={lane:Te,tag:W.tag,payload:W.payload,callback:W.callback,next:null},qe===null?(xe=qe=Ne,se=Ze):qe=qe.next=Ne,B|=Te;if(W=W.next,W===null){if(W=w.shared.pending,W===null)break;Ne=W,W=Ne.next,Ne.next=null,w.lastBaseUpdate=Ne,w.shared.pending=null}}while(!0);qe===null&&(se=Ze),w.baseState=se,w.firstBaseUpdate=xe,w.lastBaseUpdate=qe,R===null&&(w.shared.lanes=0),Tu|=B,o.lanes=B,o.memoizedState=Ze}}function Df(o,u){if(typeof o!="function")throw Error(r(191,o));o.call(u)}function Hp(o,u){var d=o.callbacks;if(d!==null)for(o.callbacks=null,o=0;o<d.length;o++)Df(d[o],u)}var Ss=F(null),dh=F(0);function py(o,u){o=Ms,ae(dh,o),ae(Ss,u),Ms=o|u.baseLanes}function mr(){ae(dh,Ms),ae(Ss,Ss.current)}function Nf(){Ms=dh.current,ne(Ss),ne(dh)}var Qo=0,hn=null,Yn=null,Va=null,mc=!1,pc=!1,$i=!1,hh=0,wo=0,zi=null,Bp=0;function Ha(){throw Error(r(321))}function mh(o,u){if(u===null)return!1;for(var d=0;d<u.length&&d<o.length;d++)if(!ui(o[d],u[d]))return!1;return!0}function Pp(o,u,d,v,w,R){return Qo=R,hn=u,u.memoizedState=null,u.updateQueue=null,u.lanes=0,k.H=o===null||o.memoizedState===null?IC:zy,$i=!1,R=d(v,w),$i=!1,pc&&(R=gu(u,d,v,w)),gy(o),R}function gy(o){k.H=wh;var u=Yn!==null&&Yn.next!==null;if(Qo=0,Va=Yn=hn=null,mc=!1,wo=0,zi=null,u)throw Error(r(300));o===null||An||(o=o.dependencies,o!==null&&ih(o)&&(An=!0))}function gu(o,u,d,v){hn=o;var w=0;do{if(pc&&(zi=null),wo=0,pc=!1,25<=w)throw Error(r(301));if(w+=1,Va=Yn=null,o.updateQueue!=null){var R=o.updateQueue;R.lastEffect=null,R.events=null,R.stores=null,R.memoCache!=null&&(R.memoCache.index=0)}k.H=FC,R=u(d,v)}while(pc);return R}function jC(){var o=k.H,u=o.useState()[0];return u=typeof u.then=="function"?gc(u):u,o=o.useState()[0],(Yn!==null?Yn.memoizedState:null)!==o&&(hn.flags|=1024),u}function Up(){var o=hh!==0;return hh=0,o}function Ip(o,u,d){u.updateQueue=o.updateQueue,u.flags&=-2053,o.lanes&=~d}function $f(o){if(mc){for(o=o.memoizedState;o!==null;){var u=o.queue;u!==null&&(u.pending=null),o=o.next}mc=!1}Qo=0,Va=Yn=hn=null,pc=!1,wo=hh=0,zi=null}function fi(){var o={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Va===null?hn.memoizedState=Va=o:Va=Va.next=o,Va}function qa(){if(Yn===null){var o=hn.alternate;o=o!==null?o.memoizedState:null}else o=Yn.next;var u=Va===null?hn.memoizedState:Va.next;if(u!==null)Va=u,Yn=o;else{if(o===null)throw hn.alternate===null?Error(r(467)):Error(r(310));Yn=o,o={memoizedState:Yn.memoizedState,baseState:Yn.baseState,baseQueue:Yn.baseQueue,queue:Yn.queue,next:null},Va===null?hn.memoizedState=Va=o:Va=Va.next=o}return Va}function ph(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function gc(o){var u=wo;return wo+=1,zi===null&&(zi=[]),o=dy(zi,o,u),u=hn,(Va===null?u.memoizedState:Va.next)===null&&(u=u.alternate,k.H=u===null||u.memoizedState===null?IC:zy),o}function Fp(o){if(o!==null&&typeof o=="object"){if(typeof o.then=="function")return gc(o);if(o.$$typeof===z)return Ur(o)}throw Error(r(438,String(o)))}function pr(o){var u=null,d=hn.updateQueue;if(d!==null&&(u=d.memoCache),u==null){var v=hn.alternate;v!==null&&(v=v.updateQueue,v!==null&&(v=v.memoCache,v!=null&&(u={data:v.data.map(function(w){return w.slice()}),index:0})))}if(u==null&&(u={data:[],index:0}),d===null&&(d=ph(),hn.updateQueue=d),d.memoCache=u,d=u.data[u.index],d===void 0)for(d=u.data[u.index]=Array(o),v=0;v<o;v++)d[v]=Y;return u.index++,d}function Rl(o,u){return typeof u=="function"?u(o):u}function gh(o){var u=qa();return kp(u,Yn,o)}function kp(o,u,d){var v=o.queue;if(v===null)throw Error(r(311));v.lastRenderedReducer=d;var w=o.baseQueue,R=v.pending;if(R!==null){if(w!==null){var B=w.next;w.next=R.next,R.next=B}u.baseQueue=w=R,v.pending=null}if(R=o.baseState,w===null)o.memoizedState=R;else{u=w.next;var W=B=null,se=null,xe=u,qe=!1;do{var Ze=xe.lane&-536870913;if(Ze!==xe.lane?(Pn&Ze)===Ze:(Qo&Ze)===Ze){var Te=xe.revertLane;if(Te===0)se!==null&&(se=se.next={lane:0,revertLane:0,action:xe.action,hasEagerState:xe.hasEagerState,eagerState:xe.eagerState,next:null}),Ze===pu&&(qe=!0);else if((Qo&Te)===Te){xe=xe.next,Te===pu&&(qe=!0);continue}else Ze={lane:0,revertLane:xe.revertLane,action:xe.action,hasEagerState:xe.hasEagerState,eagerState:xe.eagerState,next:null},se===null?(W=se=Ze,B=R):se=se.next=Ze,hn.lanes|=Te,Tu|=Te;Ze=xe.action,$i&&d(R,Ze),R=xe.hasEagerState?xe.eagerState:d(R,Ze)}else Te={lane:Ze,revertLane:xe.revertLane,action:xe.action,hasEagerState:xe.hasEagerState,eagerState:xe.eagerState,next:null},se===null?(W=se=Te,B=R):se=se.next=Te,hn.lanes|=Ze,Tu|=Ze;xe=xe.next}while(xe!==null&&xe!==u);if(se===null?B=R:se.next=W,!ui(R,o.memoizedState)&&(An=!0,qe&&(d=Eo,d!==null)))throw d;o.memoizedState=R,o.baseState=B,o.baseQueue=se,v.lastRenderedState=R}return w===null&&(v.lanes=0),[o.memoizedState,v.dispatch]}function Gp(o){var u=qa(),d=u.queue;if(d===null)throw Error(r(311));d.lastRenderedReducer=o;var v=d.dispatch,w=d.pending,R=u.memoizedState;if(w!==null){d.pending=null;var B=w=w.next;do R=o(R,B.action),B=B.next;while(B!==w);ui(R,u.memoizedState)||(An=!0),u.memoizedState=R,u.baseQueue===null&&(u.baseState=R),d.lastRenderedState=R}return[R,v]}function vy(o,u,d){var v=hn,w=qa(),R=bn;if(R){if(d===void 0)throw Error(r(407));d=d()}else d=u();var B=!ui((Yn||w).memoizedState,d);B&&(w.memoizedState=d,An=!0),w=w.queue;var W=yy.bind(null,v,w,o);if(Cs(2048,8,W,[o]),w.getSnapshot!==u||B||Va!==null&&Va.memoizedState.tag&1){if(v.flags|=2048,vu(9,To(),qp.bind(null,v,w,d,u),null),fa===null)throw Error(r(349));R||(Qo&124)!==0||vh(v,u,d)}return d}function vh(o,u,d){o.flags|=16384,o={getSnapshot:u,value:d},u=hn.updateQueue,u===null?(u=ph(),hn.updateQueue=u,u.stores=[o]):(d=u.stores,d===null?u.stores=[o]:d.push(o))}function qp(o,u,d,v){u.value=d,u.getSnapshot=v,by(u)&&Sy(o)}function yy(o,u,d){return d(function(){by(u)&&Sy(o)})}function by(o){var u=o.getSnapshot;o=o.value;try{var d=u();return!ui(o,d)}catch{return!0}}function Sy(o){var u=hs(o,2);u!==null&&Ii(u,o,2)}function yh(o){var u=fi();if(typeof o=="function"){var d=o;if(o=d(),$i){$t(!0);try{d()}finally{$t(!1)}}}return u.memoizedState=u.baseState=o,u.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Rl,lastRenderedState:o},u}function Yp(o,u,d,v){return o.baseState=d,kp(o,Yn,typeof v=="function"?v:Rl)}function Cy(o,u,d,v,w){if(Lf(o))throw Error(r(485));if(o=u.action,o!==null){var R={payload:w,action:o,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(B){R.listeners.push(B)}};k.T!==null?d(!0):R.isTransition=!1,v(R),d=u.pending,d===null?(R.next=u.pending=R,xy(u,R)):(R.next=d.next,u.pending=d.next=R)}}function xy(o,u){var d=u.action,v=u.payload,w=o.state;if(u.isTransition){var R=k.T,B={};k.T=B;try{var W=d(w,v),se=k.S;se!==null&&se(B,W),Xp(o,u,W)}catch(xe){Sh(o,u,xe)}finally{k.T=R}}else try{R=d(w,v),Xp(o,u,R)}catch(xe){Sh(o,u,xe)}}function Xp(o,u,d){d!==null&&typeof d=="object"&&typeof d.then=="function"?d.then(function(v){bh(o,u,v)},function(v){return Sh(o,u,v)}):bh(o,u,d)}function bh(o,u,d){u.status="fulfilled",u.value=d,Ey(u),o.state=d,u=o.pending,u!==null&&(d=u.next,d===u?o.pending=null:(d=d.next,u.next=d,xy(o,d)))}function Sh(o,u,d){var v=o.pending;if(o.pending=null,v!==null){v=v.next;do u.status="rejected",u.reason=d,Ey(u),u=u.next;while(u!==v)}o.action=null}function Ey(o){o=o.listeners;for(var u=0;u<o.length;u++)(0,o[u])()}function wy(o,u){return u}function Wp(o,u){if(bn){var d=fa.formState;if(d!==null){e:{var v=hn;if(bn){if(ua){t:{for(var w=ua,R=ci;w.nodeType!==8;){if(!R){w=null;break t}if(w=ul(w.nextSibling),w===null){w=null;break t}}R=w.data,w=R==="F!"||R==="F"?w:null}if(w){ua=ul(w.nextSibling),v=w.data==="F!";break e}}Zo(v)}v=!1}v&&(u=d[0])}}return d=fi(),d.memoizedState=d.baseState=u,v={pending:null,lanes:0,dispatch:null,lastRenderedReducer:wy,lastRenderedState:u},d.queue=v,d=Qp.bind(null,hn,v),v.dispatch=d,v=yh(!1),R=xh.bind(null,hn,!1,v.queue),v=fi(),w={state:u,dispatch:null,action:o,pending:null},v.queue=w,d=Cy.bind(null,hn,w,R,d),w.dispatch=d,v.memoizedState=o,[u,d,!1]}function Ty(o){var u=qa();return Al(u,Yn,o)}function Al(o,u,d){if(u=kp(o,u,wy)[0],o=gh(Rl)[0],typeof u=="object"&&u!==null&&typeof u.then=="function")try{var v=gc(u)}catch(B){throw B===dc?Rf:B}else v=u;u=qa();var w=u.queue,R=w.dispatch;return d!==u.memoizedState&&(hn.flags|=2048,vu(9,To(),Oy.bind(null,w,d),null)),[v,R,o]}function Oy(o,u){o.action=u}function LC(o){var u=qa(),d=Yn;if(d!==null)return Al(u,d,o);qa(),u=u.memoizedState,d=qa();var v=d.queue.dispatch;return d.memoizedState=o,[u,v,!1]}function vu(o,u,d,v){return o={tag:o,create:d,deps:v,inst:u,next:null},u=hn.updateQueue,u===null&&(u=ph(),hn.updateQueue=u),d=u.lastEffect,d===null?u.lastEffect=o.next=o:(v=d.next,d.next=o,o.next=v,u.lastEffect=o),o}function To(){return{destroy:void 0,resource:void 0}}function Ry(){return qa().memoizedState}function vc(o,u,d,v){var w=fi();v=v===void 0?null:v,hn.flags|=o,w.memoizedState=vu(1|u,To(),d,v)}function Cs(o,u,d,v){var w=qa();v=v===void 0?null:v;var R=w.memoizedState.inst;Yn!==null&&v!==null&&mh(v,Yn.memoizedState.deps)?w.memoizedState=vu(u,R,d,v):(hn.flags|=o,w.memoizedState=vu(1|u,R,d,v))}function wa(o,u){vc(8390656,8,o,u)}function VC(o,u){Cs(2048,8,o,u)}function HC(o,u){return Cs(4,2,o,u)}function Ay(o,u){return Cs(4,4,o,u)}function Jo(o,u){if(typeof u=="function"){o=o();var d=u(o);return function(){typeof d=="function"?d():u(null)}}if(u!=null)return o=o(),u.current=o,function(){u.current=null}}function My(o,u,d){d=d!=null?d.concat([o]):null,Cs(4,4,Jo.bind(null,u,o),d)}function Ch(){}function zf(o,u){var d=qa();u=u===void 0?null:u;var v=d.memoizedState;return u!==null&&mh(u,v[1])?v[0]:(d.memoizedState=[o,u],o)}function yc(o,u){var d=qa();u=u===void 0?null:u;var v=d.memoizedState;if(u!==null&&mh(u,v[1]))return v[0];if(v=o(),$i){$t(!0);try{o()}finally{$t(!1)}}return d.memoizedState=[v,u],v}function Zp(o,u,d){return d===void 0||(Qo&1073741824)!==0?o.memoizedState=u:(o.memoizedState=d,o=tx(),hn.lanes|=o,Tu|=o,d)}function Kp(o,u,d,v){return ui(d,u)?d:Ss.current!==null?(o=Zp(o,d,v),ui(o,u)||(An=!0),o):(Qo&42)===0?(An=!0,o.memoizedState=d):(o=tx(),hn.lanes|=o,Tu|=o,u)}function _y(o,u,d,v,w){var R=X.p;X.p=R!==0&&8>R?R:8;var B=k.T,W={};k.T=W,xh(o,!1,u,d);try{var se=w(),xe=k.S;if(xe!==null&&xe(W,se),se!==null&&typeof se=="object"&&typeof se.then=="function"){var qe=uy(se,v);jf(o,u,qe,io(o))}else jf(o,u,v,io(o))}catch(Ze){jf(o,u,{then:function(){},status:"rejected",reason:Ze},io())}finally{X.p=R,k.T=B}}function nA(){}function Dy(o,u,d,v){if(o.tag!==5)throw Error(r(476));var w=Ny(o).queue;_y(o,w,u,Q,d===null?nA:function(){return BC(o),d(v)})}function Ny(o){var u=o.memoizedState;if(u!==null)return u;u={memoizedState:Q,baseState:Q,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Rl,lastRenderedState:Q},next:null};var d={};return u.next={memoizedState:d,baseState:d,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Rl,lastRenderedState:d},next:null},o.memoizedState=u,o=o.alternate,o!==null&&(o.memoizedState=u),u}function BC(o){var u=Ny(o).next.queue;jf(o,u,{},io())}function bc(){return Ur(Gr)}function el(){return qa().memoizedState}function $y(){return qa().memoizedState}function aA(o){for(var u=o.return;u!==null;){switch(u.tag){case 24:case 3:var d=io();o=bs(d);var v=Ni(u,o,d);v!==null&&(Ii(v,u,d),hc(v,u,d)),u={cache:sy()},o.payload=u;return}u=u.return}}function PC(o,u,d){var v=io();d={lane:v,revertLane:0,action:d,hasEagerState:!1,eagerState:null,next:null},Lf(o)?Eh(u,d):(d=uc(o,u,d,v),d!==null&&(Ii(d,o,v),UC(d,u,v)))}function Qp(o,u,d){var v=io();jf(o,u,d,v)}function jf(o,u,d,v){var w={lane:v,revertLane:0,action:d,hasEagerState:!1,eagerState:null,next:null};if(Lf(o))Eh(u,w);else{var R=o.alternate;if(o.lanes===0&&(R===null||R.lanes===0)&&(R=u.lastRenderedReducer,R!==null))try{var B=u.lastRenderedState,W=R(B,d);if(w.hasEagerState=!0,w.eagerState=W,ui(W,B))return qo(o,u,w,0),fa===null&&Go(),!1}catch{}finally{}if(d=uc(o,u,w,v),d!==null)return Ii(d,o,v),UC(d,u,v),!0}return!1}function xh(o,u,d,v){if(v={lane:2,revertLane:wg(),action:v,hasEagerState:!1,eagerState:null,next:null},Lf(o)){if(u)throw Error(r(479))}else u=uc(o,d,v,2),u!==null&&Ii(u,o,2)}function Lf(o){var u=o.alternate;return o===hn||u!==null&&u===hn}function Eh(o,u){pc=mc=!0;var d=o.pending;d===null?u.next=u:(u.next=d.next,d.next=u),o.pending=u}function UC(o,u,d){if((d&4194048)!==0){var v=u.lanes;v&=o.pendingLanes,d|=v,u.lanes=d,Dt(o,d)}}var wh={readContext:Ur,use:Fp,useCallback:Ha,useContext:Ha,useEffect:Ha,useImperativeHandle:Ha,useLayoutEffect:Ha,useInsertionEffect:Ha,useMemo:Ha,useReducer:Ha,useRef:Ha,useState:Ha,useDebugValue:Ha,useDeferredValue:Ha,useTransition:Ha,useSyncExternalStore:Ha,useId:Ha,useHostTransitionStatus:Ha,useFormState:Ha,useActionState:Ha,useOptimistic:Ha,useMemoCache:Ha,useCacheRefresh:Ha},IC={readContext:Ur,use:Fp,useCallback:function(o,u){return fi().memoizedState=[o,u===void 0?null:u],o},useContext:Ur,useEffect:wa,useImperativeHandle:function(o,u,d){d=d!=null?d.concat([o]):null,vc(4194308,4,Jo.bind(null,u,o),d)},useLayoutEffect:function(o,u){return vc(4194308,4,o,u)},useInsertionEffect:function(o,u){vc(4,2,o,u)},useMemo:function(o,u){var d=fi();u=u===void 0?null:u;var v=o();if($i){$t(!0);try{o()}finally{$t(!1)}}return d.memoizedState=[v,u],v},useReducer:function(o,u,d){var v=fi();if(d!==void 0){var w=d(u);if($i){$t(!0);try{d(u)}finally{$t(!1)}}}else w=u;return v.memoizedState=v.baseState=w,o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:o,lastRenderedState:w},v.queue=o,o=o.dispatch=PC.bind(null,hn,o),[v.memoizedState,o]},useRef:function(o){var u=fi();return o={current:o},u.memoizedState=o},useState:function(o){o=yh(o);var u=o.queue,d=Qp.bind(null,hn,u);return u.dispatch=d,[o.memoizedState,d]},useDebugValue:Ch,useDeferredValue:function(o,u){var d=fi();return Zp(d,o,u)},useTransition:function(){var o=yh(!1);return o=_y.bind(null,hn,o.queue,!0,!1),fi().memoizedState=o,[!1,o]},useSyncExternalStore:function(o,u,d){var v=hn,w=fi();if(bn){if(d===void 0)throw Error(r(407));d=d()}else{if(d=u(),fa===null)throw Error(r(349));(Pn&124)!==0||vh(v,u,d)}w.memoizedState=d;var R={value:d,getSnapshot:u};return w.queue=R,wa(yy.bind(null,v,R,o),[o]),v.flags|=2048,vu(9,To(),qp.bind(null,v,R,d,u),null),d},useId:function(){var o=fi(),u=fa.identifierPrefix;if(bn){var d=Wo,v=Xo;d=(v&~(1<<32-ht(v)-1)).toString(32)+d,u="«"+u+"R"+d,d=hh++,0<d&&(u+="H"+d.toString(32)),u+="»"}else d=Bp++,u="«"+u+"r"+d.toString(32)+"»";return o.memoizedState=u},useHostTransitionStatus:bc,useFormState:Wp,useActionState:Wp,useOptimistic:function(o){var u=fi();u.memoizedState=u.baseState=o;var d={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return u.queue=d,u=xh.bind(null,hn,!0,d),d.dispatch=u,[o,u]},useMemoCache:pr,useCacheRefresh:function(){return fi().memoizedState=aA.bind(null,hn)}},zy={readContext:Ur,use:Fp,useCallback:zf,useContext:Ur,useEffect:VC,useImperativeHandle:My,useInsertionEffect:HC,useLayoutEffect:Ay,useMemo:yc,useReducer:gh,useRef:Ry,useState:function(){return gh(Rl)},useDebugValue:Ch,useDeferredValue:function(o,u){var d=qa();return Kp(d,Yn.memoizedState,o,u)},useTransition:function(){var o=gh(Rl)[0],u=qa().memoizedState;return[typeof o=="boolean"?o:gc(o),u]},useSyncExternalStore:vy,useId:el,useHostTransitionStatus:bc,useFormState:Ty,useActionState:Ty,useOptimistic:function(o,u){var d=qa();return Yp(d,Yn,o,u)},useMemoCache:pr,useCacheRefresh:$y},FC={readContext:Ur,use:Fp,useCallback:zf,useContext:Ur,useEffect:VC,useImperativeHandle:My,useInsertionEffect:HC,useLayoutEffect:Ay,useMemo:yc,useReducer:Gp,useRef:Ry,useState:function(){return Gp(Rl)},useDebugValue:Ch,useDeferredValue:function(o,u){var d=qa();return Yn===null?Zp(d,o,u):Kp(d,Yn.memoizedState,o,u)},useTransition:function(){var o=Gp(Rl)[0],u=qa().memoizedState;return[typeof o=="boolean"?o:gc(o),u]},useSyncExternalStore:vy,useId:el,useHostTransitionStatus:bc,useFormState:LC,useActionState:LC,useOptimistic:function(o,u){var d=qa();return Yn!==null?Yp(d,Yn,o,u):(d.baseState=o,[o,d.queue.dispatch])},useMemoCache:pr,useCacheRefresh:$y},ji=null,Vf=0;function Th(o){var u=Vf;return Vf+=1,ji===null&&(ji=[]),dy(ji,o,u)}function Oh(o,u){u=u.props.ref,o.ref=u!==void 0?u:null}function Hf(o,u){throw u.$$typeof===S?Error(r(525)):(o=Object.prototype.toString.call(u),Error(r(31,o==="[object Object]"?"object with keys {"+Object.keys(u).join(", ")+"}":o)))}function Li(o){var u=o._init;return u(o._payload)}function jy(o){function u(Se,ve){if(o){var Ee=Se.deletions;Ee===null?(Se.deletions=[ve],Se.flags|=16):Ee.push(ve)}}function d(Se,ve){if(!o)return null;for(;ve!==null;)u(Se,ve),ve=ve.sibling;return null}function v(Se){for(var ve=new Map;Se!==null;)Se.key!==null?ve.set(Se.key,Se):ve.set(Se.index,Se),Se=Se.sibling;return ve}function w(Se,ve){return Se=Yo(Se,ve),Se.index=0,Se.sibling=null,Se}function R(Se,ve,Ee){return Se.index=Ee,o?(Ee=Se.alternate,Ee!==null?(Ee=Ee.index,Ee<ve?(Se.flags|=67108866,ve):Ee):(Se.flags|=67108866,ve)):(Se.flags|=1048576,ve)}function B(Se){return o&&Se.alternate===null&&(Se.flags|=67108866),Se}function W(Se,ve,Ee,Xe){return ve===null||ve.tag!==6?(ve=fu(Ee,Se.mode,Xe),ve.return=Se,ve):(ve=w(ve,Ee),ve.return=Se,ve)}function se(Se,ve,Ee,Xe){var Lt=Ee.type;return Lt===O?qe(Se,ve,Ee.props.children,Xe,Ee.key):ve!==null&&(ve.elementType===Lt||typeof Lt=="object"&&Lt!==null&&Lt.$$typeof===P&&Li(Lt)===ve.type)?(ve=w(ve,Ee.props),Oh(ve,Ee),ve.return=Se,ve):(ve=yn(Ee.type,Ee.key,Ee.props,null,Se.mode,Xe),Oh(ve,Ee),ve.return=Se,ve)}function xe(Se,ve,Ee,Xe){return ve===null||ve.tag!==4||ve.stateNode.containerInfo!==Ee.containerInfo||ve.stateNode.implementation!==Ee.implementation?(ve=vf(Ee,Se.mode,Xe),ve.return=Se,ve):(ve=w(ve,Ee.children||[]),ve.return=Se,ve)}function qe(Se,ve,Ee,Xe,Lt){return ve===null||ve.tag!==7?(ve=at(Ee,Se.mode,Xe,Lt),ve.return=Se,ve):(ve=w(ve,Ee),ve.return=Se,ve)}function Ze(Se,ve,Ee){if(typeof ve=="string"&&ve!==""||typeof ve=="number"||typeof ve=="bigint")return ve=fu(""+ve,Se.mode,Ee),ve.return=Se,ve;if(typeof ve=="object"&&ve!==null){switch(ve.$$typeof){case E:return Ee=yn(ve.type,ve.key,ve.props,null,Se.mode,Ee),Oh(Ee,ve),Ee.return=Se,Ee;case T:return ve=vf(ve,Se.mode,Ee),ve.return=Se,ve;case P:var Xe=ve._init;return ve=Xe(ve._payload),Ze(Se,ve,Ee)}if(ie(ve)||G(ve))return ve=at(ve,Se.mode,Ee,null),ve.return=Se,ve;if(typeof ve.then=="function")return Ze(Se,Th(ve),Ee);if(ve.$$typeof===z)return Ze(Se,xf(Se,ve),Ee);Hf(Se,ve)}return null}function Te(Se,ve,Ee,Xe){var Lt=ve!==null?ve.key:null;if(typeof Ee=="string"&&Ee!==""||typeof Ee=="number"||typeof Ee=="bigint")return Lt!==null?null:W(Se,ve,""+Ee,Xe);if(typeof Ee=="object"&&Ee!==null){switch(Ee.$$typeof){case E:return Ee.key===Lt?se(Se,ve,Ee,Xe):null;case T:return Ee.key===Lt?xe(Se,ve,Ee,Xe):null;case P:return Lt=Ee._init,Ee=Lt(Ee._payload),Te(Se,ve,Ee,Xe)}if(ie(Ee)||G(Ee))return Lt!==null?null:qe(Se,ve,Ee,Xe,null);if(typeof Ee.then=="function")return Te(Se,ve,Th(Ee),Xe);if(Ee.$$typeof===z)return Te(Se,ve,xf(Se,Ee),Xe);Hf(Se,Ee)}return null}function Ne(Se,ve,Ee,Xe,Lt){if(typeof Xe=="string"&&Xe!==""||typeof Xe=="number"||typeof Xe=="bigint")return Se=Se.get(Ee)||null,W(ve,Se,""+Xe,Lt);if(typeof Xe=="object"&&Xe!==null){switch(Xe.$$typeof){case E:return Se=Se.get(Xe.key===null?Ee:Xe.key)||null,se(ve,Se,Xe,Lt);case T:return Se=Se.get(Xe.key===null?Ee:Xe.key)||null,xe(ve,Se,Xe,Lt);case P:var Sn=Xe._init;return Xe=Sn(Xe._payload),Ne(Se,ve,Ee,Xe,Lt)}if(ie(Xe)||G(Xe))return Se=Se.get(Ee)||null,qe(ve,Se,Xe,Lt,null);if(typeof Xe.then=="function")return Ne(Se,ve,Ee,Th(Xe),Lt);if(Xe.$$typeof===z)return Ne(Se,ve,Ee,xf(ve,Xe),Lt);Hf(ve,Xe)}return null}function en(Se,ve,Ee,Xe){for(var Lt=null,Sn=null,qt=ve,tn=ve=0,Mr=null;qt!==null&&tn<Ee.length;tn++){qt.index>tn?(Mr=qt,qt=null):Mr=qt.sibling;var kn=Te(Se,qt,Ee[tn],Xe);if(kn===null){qt===null&&(qt=Mr);break}o&&qt&&kn.alternate===null&&u(Se,qt),ve=R(kn,ve,tn),Sn===null?Lt=kn:Sn.sibling=kn,Sn=kn,qt=Mr}if(tn===Ee.length)return d(Se,qt),bn&&rr(Se,tn),Lt;if(qt===null){for(;tn<Ee.length;tn++)qt=Ze(Se,Ee[tn],Xe),qt!==null&&(ve=R(qt,ve,tn),Sn===null?Lt=qt:Sn.sibling=qt,Sn=qt);return bn&&rr(Se,tn),Lt}for(qt=v(qt);tn<Ee.length;tn++)Mr=Ne(qt,Se,tn,Ee[tn],Xe),Mr!==null&&(o&&Mr.alternate!==null&&qt.delete(Mr.key===null?tn:Mr.key),ve=R(Mr,ve,tn),Sn===null?Lt=Mr:Sn.sibling=Mr,Sn=Mr);return o&&qt.forEach(function(Vl){return u(Se,Vl)}),bn&&rr(Se,tn),Lt}function Yt(Se,ve,Ee,Xe){if(Ee==null)throw Error(r(151));for(var Lt=null,Sn=null,qt=ve,tn=ve=0,Mr=null,kn=Ee.next();qt!==null&&!kn.done;tn++,kn=Ee.next()){qt.index>tn?(Mr=qt,qt=null):Mr=qt.sibling;var Vl=Te(Se,qt,kn.value,Xe);if(Vl===null){qt===null&&(qt=Mr);break}o&&qt&&Vl.alternate===null&&u(Se,qt),ve=R(Vl,ve,tn),Sn===null?Lt=Vl:Sn.sibling=Vl,Sn=Vl,qt=Mr}if(kn.done)return d(Se,qt),bn&&rr(Se,tn),Lt;if(qt===null){for(;!kn.done;tn++,kn=Ee.next())kn=Ze(Se,kn.value,Xe),kn!==null&&(ve=R(kn,ve,tn),Sn===null?Lt=kn:Sn.sibling=kn,Sn=kn);return bn&&rr(Se,tn),Lt}for(qt=v(qt);!kn.done;tn++,kn=Ee.next())kn=Ne(qt,Se,tn,kn.value,Xe),kn!==null&&(o&&kn.alternate!==null&&qt.delete(kn.key===null?tn:kn.key),ve=R(kn,ve,tn),Sn===null?Lt=kn:Sn.sibling=kn,Sn=kn);return o&&qt.forEach(function(hA){return u(Se,hA)}),bn&&rr(Se,tn),Lt}function Wn(Se,ve,Ee,Xe){if(typeof Ee=="object"&&Ee!==null&&Ee.type===O&&Ee.key===null&&(Ee=Ee.props.children),typeof Ee=="object"&&Ee!==null){switch(Ee.$$typeof){case E:e:{for(var Lt=Ee.key;ve!==null;){if(ve.key===Lt){if(Lt=Ee.type,Lt===O){if(ve.tag===7){d(Se,ve.sibling),Xe=w(ve,Ee.props.children),Xe.return=Se,Se=Xe;break e}}else if(ve.elementType===Lt||typeof Lt=="object"&&Lt!==null&&Lt.$$typeof===P&&Li(Lt)===ve.type){d(Se,ve.sibling),Xe=w(ve,Ee.props),Oh(Xe,Ee),Xe.return=Se,Se=Xe;break e}d(Se,ve);break}else u(Se,ve);ve=ve.sibling}Ee.type===O?(Xe=at(Ee.props.children,Se.mode,Xe,Ee.key),Xe.return=Se,Se=Xe):(Xe=yn(Ee.type,Ee.key,Ee.props,null,Se.mode,Xe),Oh(Xe,Ee),Xe.return=Se,Se=Xe)}return B(Se);case T:e:{for(Lt=Ee.key;ve!==null;){if(ve.key===Lt)if(ve.tag===4&&ve.stateNode.containerInfo===Ee.containerInfo&&ve.stateNode.implementation===Ee.implementation){d(Se,ve.sibling),Xe=w(ve,Ee.children||[]),Xe.return=Se,Se=Xe;break e}else{d(Se,ve);break}else u(Se,ve);ve=ve.sibling}Xe=vf(Ee,Se.mode,Xe),Xe.return=Se,Se=Xe}return B(Se);case P:return Lt=Ee._init,Ee=Lt(Ee._payload),Wn(Se,ve,Ee,Xe)}if(ie(Ee))return en(Se,ve,Ee,Xe);if(G(Ee)){if(Lt=G(Ee),typeof Lt!="function")throw Error(r(150));return Ee=Lt.call(Ee),Yt(Se,ve,Ee,Xe)}if(typeof Ee.then=="function")return Wn(Se,ve,Th(Ee),Xe);if(Ee.$$typeof===z)return Wn(Se,ve,xf(Se,Ee),Xe);Hf(Se,Ee)}return typeof Ee=="string"&&Ee!==""||typeof Ee=="number"||typeof Ee=="bigint"?(Ee=""+Ee,ve!==null&&ve.tag===6?(d(Se,ve.sibling),Xe=w(ve,Ee),Xe.return=Se,Se=Xe):(d(Se,ve),Xe=fu(Ee,Se.mode,Xe),Xe.return=Se,Se=Xe),B(Se)):d(Se,ve)}return function(Se,ve,Ee,Xe){try{Vf=0;var Lt=Wn(Se,ve,Ee,Xe);return ji=null,Lt}catch(qt){if(qt===dc||qt===Rf)throw qt;var Sn=Mi(29,qt,null,Se.mode);return Sn.lanes=Xe,Sn.return=Se,Sn}finally{}}}var wr=jy(!0),Ly=jy(!1),or=F(null),tl=null;function Vi(o){var u=o.alternate;ae(Ja,Ja.current&1),ae(or,o),tl===null&&(u===null||Ss.current!==null||u.memoizedState!==null)&&(tl=o)}function Vy(o){if(o.tag===22){if(ae(Ja,Ja.current),ae(or,o),tl===null){var u=o.alternate;u!==null&&u.memoizedState!==null&&(tl=o)}}else Jr()}function Jr(){ae(Ja,Ja.current),ae(or,or.current)}function nl(o){ne(or),tl===o&&(tl=null),ne(Ja)}var Ja=F(0);function to(o){for(var u=o;u!==null;){if(u.tag===13){var d=u.memoizedState;if(d!==null&&(d=d.dehydrated,d===null||d.data==="$?"||Eb(d)))return u}else if(u.tag===19&&u.memoizedProps.revealOrder!==void 0){if((u.flags&128)!==0)return u}else if(u.child!==null){u.child.return=u,u=u.child;continue}if(u===o)break;for(;u.sibling===null;){if(u.return===null||u.return===o)return null;u=u.return}u.sibling.return=u.return,u=u.sibling}return null}function Jp(o,u,d,v){u=o.memoizedState,d=d(v,u),d=d==null?u:y({},u,d),o.memoizedState=d,o.lanes===0&&(o.updateQueue.baseState=d)}var yu={enqueueSetState:function(o,u,d){o=o._reactInternals;var v=io(),w=bs(v);w.payload=u,d!=null&&(w.callback=d),u=Ni(o,w,v),u!==null&&(Ii(u,o,v),hc(u,o,v))},enqueueReplaceState:function(o,u,d){o=o._reactInternals;var v=io(),w=bs(v);w.tag=1,w.payload=u,d!=null&&(w.callback=d),u=Ni(o,w,v),u!==null&&(Ii(u,o,v),hc(u,o,v))},enqueueForceUpdate:function(o,u){o=o._reactInternals;var d=io(),v=bs(d);v.tag=2,u!=null&&(v.callback=u),u=Ni(o,v,d),u!==null&&(Ii(u,o,d),hc(u,o,d))}};function Hy(o,u,d,v,w,R,B){return o=o.stateNode,typeof o.shouldComponentUpdate=="function"?o.shouldComponentUpdate(v,R,B):u.prototype&&u.prototype.isPureReactComponent?!fs(d,v)||!fs(w,R):!0}function Bf(o,u,d,v){o=u.state,typeof u.componentWillReceiveProps=="function"&&u.componentWillReceiveProps(d,v),typeof u.UNSAFE_componentWillReceiveProps=="function"&&u.UNSAFE_componentWillReceiveProps(d,v),u.state!==o&&yu.enqueueReplaceState(u,u.state,null)}function Oo(o,u){var d=u;if("ref"in u){d={};for(var v in u)v!=="ref"&&(d[v]=u[v])}if(o=o.defaultProps){d===u&&(d=y({},d));for(var w in o)d[w]===void 0&&(d[w]=o[w])}return d}var Rh=typeof reportError=="function"?reportError:function(o){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var u=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof o=="object"&&o!==null&&typeof o.message=="string"?String(o.message):String(o),error:o});if(!window.dispatchEvent(u))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",o);return}console.error(o)};function By(o){Rh(o)}function Pf(o){console.error(o)}function Py(o){Rh(o)}function Sc(o,u){try{var d=o.onUncaughtError;d(u.value,{componentStack:u.stack})}catch(v){setTimeout(function(){throw v})}}function Uy(o,u,d){try{var v=o.onCaughtError;v(d.value,{componentStack:d.stack,errorBoundary:u.tag===1?u.stateNode:null})}catch(w){setTimeout(function(){throw w})}}function eg(o,u,d){return d=bs(d),d.tag=3,d.payload={element:null},d.callback=function(){Sc(o,u)},d}function kC(o){return o=bs(o),o.tag=3,o}function Iy(o,u,d,v){var w=d.type.getDerivedStateFromError;if(typeof w=="function"){var R=v.value;o.payload=function(){return w(R)},o.callback=function(){Uy(u,d,v)}}var B=d.stateNode;B!==null&&typeof B.componentDidCatch=="function"&&(o.callback=function(){Uy(u,d,v),typeof w!="function"&&(Ml===null?Ml=new Set([this]):Ml.add(this));var W=v.stack;this.componentDidCatch(v.value,{componentStack:W!==null?W:""})})}function no(o,u,d,v,w){if(d.flags|=32768,v!==null&&typeof v=="object"&&typeof v.then=="function"){if(u=d.alternate,u!==null&&rh(u,d,w,!0),d=or.current,d!==null){switch(d.tag){case 13:return tl===null?Mu():d.alternate===null&&Xa===0&&(Xa=3),d.flags&=-257,d.flags|=65536,d.lanes=w,v===jp?d.flags|=16384:(u=d.updateQueue,u===null?d.updateQueue=new Set([v]):u.add(v),jh(o,v,w)),!1;case 22:return d.flags|=65536,v===jp?d.flags|=16384:(u=d.updateQueue,u===null?(u={transitions:null,markerInstances:null,retryQueue:new Set([v])},d.updateQueue=u):(d=u.retryQueue,d===null?u.retryQueue=new Set([v]):d.add(v)),jh(o,v,w)),!1}throw Error(r(435,d.tag))}return jh(o,v,w),Mu(),!1}if(bn)return u=or.current,u!==null?((u.flags&65536)===0&&(u.flags|=256),u.flags|=65536,u.lanes=w,v!==nh&&(o=Error(r(422),{cause:v}),Cf(Ji(o,d)))):(v!==nh&&(u=Error(r(423),{cause:v}),Cf(Ji(u,d))),o=o.current.alternate,o.flags|=65536,w&=-w,o.lanes|=w,v=Ji(v,d),w=eg(o.stateNode,v,w),ch(o,w),Xa!==4&&(Xa=2)),!1;var R=Error(r(520),{cause:v});if(R=Ji(R,d),Nh===null?Nh=[R]:Nh.push(R),Xa!==4&&(Xa=2),u===null)return!0;v=Ji(v,d),d=u;do{switch(d.tag){case 3:return d.flags|=65536,o=w&-w,d.lanes|=o,o=eg(d.stateNode,v,o),ch(d,o),!1;case 1:if(u=d.type,R=d.stateNode,(d.flags&128)===0&&(typeof u.getDerivedStateFromError=="function"||R!==null&&typeof R.componentDidCatch=="function"&&(Ml===null||!Ml.has(R))))return d.flags|=65536,w&=-w,d.lanes|=w,w=kC(w),Iy(w,o,d,v),ch(d,w),!1}d=d.return}while(d!==null);return!1}var Fy=Error(r(461)),An=!1;function Tr(o,u,d,v){u.child=o===null?Ly(u,null,d,v):wr(u,o.child,d,v)}function ky(o,u,d,v,w){d=d.render;var R=u.ref;if("ref"in v){var B={};for(var W in v)W!=="ref"&&(B[W]=v[W])}else B=v;return hu(u),v=Pp(o,u,d,B,R,w),W=Up(),o!==null&&!An?(Ip(o,u,w),al(o,u,w)):(bn&&W&&th(u),u.flags|=1,Tr(o,u,v,w),u.child)}function GC(o,u,d,v,w){if(o===null){var R=d.type;return typeof R=="function"&&!Ap(R)&&R.defaultProps===void 0&&d.compare===null?(u.tag=15,u.type=R,xs(o,u,R,v,w)):(o=yn(d.type,null,v,u,u.mode,w),o.ref=u.ref,o.return=u,u.child=o)}if(R=o.child,!og(o,w)){var B=R.memoizedProps;if(d=d.compare,d=d!==null?d:fs,d(B,v)&&o.ref===u.ref)return al(o,u,w)}return u.flags|=1,o=Yo(R,v),o.ref=u.ref,o.return=u,u.child=o}function xs(o,u,d,v,w){if(o!==null){var R=o.memoizedProps;if(fs(R,v)&&o.ref===u.ref)if(An=!1,u.pendingProps=v=R,og(o,w))(o.flags&131072)!==0&&(An=!0);else return u.lanes=o.lanes,al(o,u,w)}return ng(o,u,d,v,w)}function Cc(o,u,d){var v=u.pendingProps,w=v.children,R=o!==null?o.memoizedState:null;if(v.mode==="hidden"){if((u.flags&128)!==0){if(v=R!==null?R.baseLanes|d:d,o!==null){for(w=u.child=o.child,R=0;w!==null;)R=R|w.lanes|w.childLanes,w=w.sibling;u.childLanes=R&~v}else u.childLanes=0,u.child=null;return tg(o,u,v,d)}if((d&536870912)!==0)u.memoizedState={baseLanes:0,cachePool:null},o!==null&&Of(u,R!==null?R.cachePool:null),R!==null?py(u,R):mr(),Vy(u);else return u.lanes=u.childLanes=536870912,tg(o,u,R!==null?R.baseLanes|d:d,d)}else R!==null?(Of(u,R.cachePool),py(u,R),Jr(),u.memoizedState=null):(o!==null&&Of(u,null),mr(),Jr());return Tr(o,u,w,d),u.child}function tg(o,u,d,v){var w=Tf();return w=w===null?null:{parent:ir._currentValue,pool:w},u.memoizedState={baseLanes:d,cachePool:w},o!==null&&Of(u,null),mr(),Vy(u),o!==null&&rh(o,u,v,!0),null}function Es(o,u){var d=u.ref;if(d===null)o!==null&&o.ref!==null&&(u.flags|=4194816);else{if(typeof d!="function"&&typeof d!="object")throw Error(r(284));(o===null||o.ref!==d)&&(u.flags|=4194816)}}function ng(o,u,d,v,w){return hu(u),d=Pp(o,u,d,v,void 0,w),v=Up(),o!==null&&!An?(Ip(o,u,w),al(o,u,w)):(bn&&v&&th(u),u.flags|=1,Tr(o,u,d,w),u.child)}function Gy(o,u,d,v,w,R){return hu(u),u.updateQueue=null,d=gu(u,v,d,w),gy(o),v=Up(),o!==null&&!An?(Ip(o,u,R),al(o,u,R)):(bn&&v&&th(u),u.flags|=1,Tr(o,u,d,R),u.child)}function qy(o,u,d,v,w){if(hu(u),u.stateNode===null){var R=cc,B=d.contextType;typeof B=="object"&&B!==null&&(R=Ur(B)),R=new d(v,R),u.memoizedState=R.state!==null&&R.state!==void 0?R.state:null,R.updater=yu,u.stateNode=R,R._reactInternals=u,R=u.stateNode,R.props=v,R.state=u.memoizedState,R.refs={},uh(u),B=d.contextType,R.context=typeof B=="object"&&B!==null?Ur(B):cc,R.state=u.memoizedState,B=d.getDerivedStateFromProps,typeof B=="function"&&(Jp(u,d,B,v),R.state=u.memoizedState),typeof d.getDerivedStateFromProps=="function"||typeof R.getSnapshotBeforeUpdate=="function"||typeof R.UNSAFE_componentWillMount!="function"&&typeof R.componentWillMount!="function"||(B=R.state,typeof R.componentWillMount=="function"&&R.componentWillMount(),typeof R.UNSAFE_componentWillMount=="function"&&R.UNSAFE_componentWillMount(),B!==R.state&&yu.enqueueReplaceState(R,R.state,null),_f(u,v,R,w),fh(),R.state=u.memoizedState),typeof R.componentDidMount=="function"&&(u.flags|=4194308),v=!0}else if(o===null){R=u.stateNode;var W=u.memoizedProps,se=Oo(d,W);R.props=se;var xe=R.context,qe=d.contextType;B=cc,typeof qe=="object"&&qe!==null&&(B=Ur(qe));var Ze=d.getDerivedStateFromProps;qe=typeof Ze=="function"||typeof R.getSnapshotBeforeUpdate=="function",W=u.pendingProps!==W,qe||typeof R.UNSAFE_componentWillReceiveProps!="function"&&typeof R.componentWillReceiveProps!="function"||(W||xe!==B)&&Bf(u,R,v,B),ys=!1;var Te=u.memoizedState;R.state=Te,_f(u,v,R,w),fh(),xe=u.memoizedState,W||Te!==xe||ys?(typeof Ze=="function"&&(Jp(u,d,Ze,v),xe=u.memoizedState),(se=ys||Hy(u,d,se,v,Te,xe,B))?(qe||typeof R.UNSAFE_componentWillMount!="function"&&typeof R.componentWillMount!="function"||(typeof R.componentWillMount=="function"&&R.componentWillMount(),typeof R.UNSAFE_componentWillMount=="function"&&R.UNSAFE_componentWillMount()),typeof R.componentDidMount=="function"&&(u.flags|=4194308)):(typeof R.componentDidMount=="function"&&(u.flags|=4194308),u.memoizedProps=v,u.memoizedState=xe),R.props=v,R.state=xe,R.context=B,v=se):(typeof R.componentDidMount=="function"&&(u.flags|=4194308),v=!1)}else{R=u.stateNode,Vp(o,u),B=u.memoizedProps,qe=Oo(d,B),R.props=qe,Ze=u.pendingProps,Te=R.context,xe=d.contextType,se=cc,typeof xe=="object"&&xe!==null&&(se=Ur(xe)),W=d.getDerivedStateFromProps,(xe=typeof W=="function"||typeof R.getSnapshotBeforeUpdate=="function")||typeof R.UNSAFE_componentWillReceiveProps!="function"&&typeof R.componentWillReceiveProps!="function"||(B!==Ze||Te!==se)&&Bf(u,R,v,se),ys=!1,Te=u.memoizedState,R.state=Te,_f(u,v,R,w),fh();var Ne=u.memoizedState;B!==Ze||Te!==Ne||ys||o!==null&&o.dependencies!==null&&ih(o.dependencies)?(typeof W=="function"&&(Jp(u,d,W,v),Ne=u.memoizedState),(qe=ys||Hy(u,d,qe,v,Te,Ne,se)||o!==null&&o.dependencies!==null&&ih(o.dependencies))?(xe||typeof R.UNSAFE_componentWillUpdate!="function"&&typeof R.componentWillUpdate!="function"||(typeof R.componentWillUpdate=="function"&&R.componentWillUpdate(v,Ne,se),typeof R.UNSAFE_componentWillUpdate=="function"&&R.UNSAFE_componentWillUpdate(v,Ne,se)),typeof R.componentDidUpdate=="function"&&(u.flags|=4),typeof R.getSnapshotBeforeUpdate=="function"&&(u.flags|=1024)):(typeof R.componentDidUpdate!="function"||B===o.memoizedProps&&Te===o.memoizedState||(u.flags|=4),typeof R.getSnapshotBeforeUpdate!="function"||B===o.memoizedProps&&Te===o.memoizedState||(u.flags|=1024),u.memoizedProps=v,u.memoizedState=Ne),R.props=v,R.state=Ne,R.context=se,v=qe):(typeof R.componentDidUpdate!="function"||B===o.memoizedProps&&Te===o.memoizedState||(u.flags|=4),typeof R.getSnapshotBeforeUpdate!="function"||B===o.memoizedProps&&Te===o.memoizedState||(u.flags|=1024),v=!1)}return R=v,Es(o,u),v=(u.flags&128)!==0,R||v?(R=u.stateNode,d=v&&typeof d.getDerivedStateFromError!="function"?null:R.render(),u.flags|=1,o!==null&&v?(u.child=wr(u,o.child,null,w),u.child=wr(u,null,d,w)):Tr(o,u,d,w),u.memoizedState=R.state,o=u.child):o=al(o,u,w),o}function ag(o,u,d,v){return Sf(),u.flags|=256,Tr(o,u,d,v),u.child}var Ah={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function rg(o){return{baseLanes:o,cachePool:lh()}}function Yy(o,u,d){return o=o!==null?o.childLanes&~d:0,u&&(o|=gr),o}function qC(o,u,d){var v=u.pendingProps,w=!1,R=(u.flags&128)!==0,B;if((B=R)||(B=o!==null&&o.memoizedState===null?!1:(Ja.current&2)!==0),B&&(w=!0,u.flags&=-129),B=(u.flags&32)!==0,u.flags&=-33,o===null){if(bn){if(w?Vi(u):Jr(),bn){var W=ua,se;if(se=W){e:{for(se=W,W=ci;se.nodeType!==8;){if(!W){W=null;break e}if(se=ul(se.nextSibling),se===null){W=null;break e}}W=se}W!==null?(u.memoizedState={dehydrated:W,treeContext:ms!==null?{id:Xo,overflow:Wo}:null,retryLane:536870912,hydrationErrors:null},se=Mi(18,null,null,0),se.stateNode=W,se.return=u,u.child=se,Ga=u,ua=null,se=!0):se=!1}se||Zo(u)}if(W=u.memoizedState,W!==null&&(W=W.dehydrated,W!==null))return Eb(W)?u.lanes=32:u.lanes=536870912,null;nl(u)}return W=v.children,v=v.fallback,w?(Jr(),w=u.mode,W=Mh({mode:"hidden",children:W},w),v=at(v,w,d,null),W.return=u,v.return=u,W.sibling=v,u.child=W,w=u.child,w.memoizedState=rg(d),w.childLanes=Yy(o,B,d),u.memoizedState=Ah,v):(Vi(u),ig(u,W))}if(se=o.memoizedState,se!==null&&(W=se.dehydrated,W!==null)){if(R)u.flags&256?(Vi(u),u.flags&=-257,u=Xy(o,u,d)):u.memoizedState!==null?(Jr(),u.child=o.child,u.flags|=128,u=null):(Jr(),w=v.fallback,W=u.mode,v=Mh({mode:"visible",children:v.children},W),w=at(w,W,d,null),w.flags|=2,v.return=u,w.return=u,v.sibling=w,u.child=v,wr(u,o.child,null,d),v=u.child,v.memoizedState=rg(d),v.childLanes=Yy(o,B,d),u.memoizedState=Ah,u=w);else if(Vi(u),Eb(W)){if(B=W.nextSibling&&W.nextSibling.dataset,B)var xe=B.dgst;B=xe,v=Error(r(419)),v.stack="",v.digest=B,Cf({value:v,source:null,stack:null}),u=Xy(o,u,d)}else if(An||rh(o,u,d,!1),B=(d&o.childLanes)!==0,An||B){if(B=fa,B!==null&&(v=d&-d,v=(v&42)!==0?1:dt(v),v=(v&(B.suspendedLanes|d))!==0?0:v,v!==0&&v!==se.retryLane))throw se.retryLane=v,hs(o,v),Ii(B,o,v),Fy;W.data==="$?"||Mu(),u=Xy(o,u,d)}else W.data==="$?"?(u.flags|=192,u.child=o.child,u=null):(o=se.treeContext,ua=ul(W.nextSibling),Ga=u,bn=!0,ps=null,ci=!1,o!==null&&(_i[xo++]=Xo,_i[xo++]=Wo,_i[xo++]=ms,Xo=o.id,Wo=o.overflow,ms=u),u=ig(u,v.children),u.flags|=4096);return u}return w?(Jr(),w=v.fallback,W=u.mode,se=o.child,xe=se.sibling,v=Yo(se,{mode:"hidden",children:v.children}),v.subtreeFlags=se.subtreeFlags&65011712,xe!==null?w=Yo(xe,w):(w=at(w,W,d,null),w.flags|=2),w.return=u,v.return=u,v.sibling=w,u.child=v,v=w,w=u.child,W=o.child.memoizedState,W===null?W=rg(d):(se=W.cachePool,se!==null?(xe=ir._currentValue,se=se.parent!==xe?{parent:xe,pool:xe}:se):se=lh(),W={baseLanes:W.baseLanes|d,cachePool:se}),w.memoizedState=W,w.childLanes=Yy(o,B,d),u.memoizedState=Ah,v):(Vi(u),d=o.child,o=d.sibling,d=Yo(d,{mode:"visible",children:v.children}),d.return=u,d.sibling=null,o!==null&&(B=u.deletions,B===null?(u.deletions=[o],u.flags|=16):B.push(o)),u.child=d,u.memoizedState=null,d)}function ig(o,u){return u=Mh({mode:"visible",children:u},o.mode),u.return=o,o.child=u}function Mh(o,u){return o=Mi(22,o,null,u),o.lanes=0,o.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},o}function Xy(o,u,d){return wr(u,o.child,null,d),o=ig(u,u.pendingProps.children),o.flags|=2,u.memoizedState=null,o}function xc(o,u,d){o.lanes|=u;var v=o.alternate;v!==null&&(v.lanes|=u),Np(o.return,u,d)}function Uf(o,u,d,v,w){var R=o.memoizedState;R===null?o.memoizedState={isBackwards:u,rendering:null,renderingStartTime:0,last:v,tail:d,tailMode:w}:(R.isBackwards=u,R.rendering=null,R.renderingStartTime=0,R.last=v,R.tail=d,R.tailMode=w)}function Wy(o,u,d){var v=u.pendingProps,w=v.revealOrder,R=v.tail;if(Tr(o,u,v.children,d),v=Ja.current,(v&2)!==0)v=v&1|2,u.flags|=128;else{if(o!==null&&(o.flags&128)!==0)e:for(o=u.child;o!==null;){if(o.tag===13)o.memoizedState!==null&&xc(o,d,u);else if(o.tag===19)xc(o,d,u);else if(o.child!==null){o.child.return=o,o=o.child;continue}if(o===u)break e;for(;o.sibling===null;){if(o.return===null||o.return===u)break e;o=o.return}o.sibling.return=o.return,o=o.sibling}v&=1}switch(ae(Ja,v),w){case"forwards":for(d=u.child,w=null;d!==null;)o=d.alternate,o!==null&&to(o)===null&&(w=d),d=d.sibling;d=w,d===null?(w=u.child,u.child=null):(w=d.sibling,d.sibling=null),Uf(u,!1,w,d,R);break;case"backwards":for(d=null,w=u.child,u.child=null;w!==null;){if(o=w.alternate,o!==null&&to(o)===null){u.child=w;break}o=w.sibling,w.sibling=d,d=w,w=o}Uf(u,!0,d,null,R);break;case"together":Uf(u,!1,null,null,void 0);break;default:u.memoizedState=null}return u.child}function al(o,u,d){if(o!==null&&(u.dependencies=o.dependencies),Tu|=u.lanes,(d&u.childLanes)===0)if(o!==null){if(rh(o,u,d,!1),(d&u.childLanes)===0)return null}else return null;if(o!==null&&u.child!==o.child)throw Error(r(153));if(u.child!==null){for(o=u.child,d=Yo(o,o.pendingProps),u.child=d,d.return=u;o.sibling!==null;)o=o.sibling,d=d.sibling=Yo(o,o.pendingProps),d.return=u;d.sibling=null}return u.child}function og(o,u){return(o.lanes&u)!==0?!0:(o=o.dependencies,!!(o!==null&&ih(o)))}function YC(o,u,d){switch(u.tag){case 3:ze(u,u.stateNode.containerInfo),wl(u,ir,o.memoizedState.cache),Sf();break;case 27:case 5:Ke(u);break;case 4:ze(u,u.stateNode.containerInfo);break;case 10:wl(u,u.type,u.memoizedProps.value);break;case 13:var v=u.memoizedState;if(v!==null)return v.dehydrated!==null?(Vi(u),u.flags|=128,null):(d&u.child.childLanes)!==0?qC(o,u,d):(Vi(u),o=al(o,u,d),o!==null?o.sibling:null);Vi(u);break;case 19:var w=(o.flags&128)!==0;if(v=(d&u.childLanes)!==0,v||(rh(o,u,d,!1),v=(d&u.childLanes)!==0),w){if(v)return Wy(o,u,d);u.flags|=128}if(w=u.memoizedState,w!==null&&(w.rendering=null,w.tail=null,w.lastEffect=null),ae(Ja,Ja.current),v)break;return null;case 22:case 23:return u.lanes=0,Cc(o,u,d);case 24:wl(u,ir,o.memoizedState.cache)}return al(o,u,d)}function Zy(o,u,d){if(o!==null)if(o.memoizedProps!==u.pendingProps)An=!0;else{if(!og(o,d)&&(u.flags&128)===0)return An=!1,YC(o,u,d);An=(o.flags&131072)!==0}else An=!1,bn&&(u.flags&1048576)!==0&&Qn(u,eh,u.index);switch(u.lanes=0,u.tag){case 16:e:{o=u.pendingProps;var v=u.elementType,w=v._init;if(v=w(v._payload),u.type=v,typeof v=="function")Ap(v)?(o=Oo(v,o),u.tag=1,u=qy(null,u,v,o,d)):(u.tag=0,u=ng(null,u,v,o,d));else{if(v!=null){if(w=v.$$typeof,w===j){u.tag=11,u=ky(null,u,v,o,d);break e}else if(w===H){u.tag=14,u=GC(null,u,v,o,d);break e}}throw u=J(v)||v,Error(r(306,u,""))}}return u;case 0:return ng(o,u,u.type,u.pendingProps,d);case 1:return v=u.type,w=Oo(v,u.pendingProps),qy(o,u,v,w,d);case 3:e:{if(ze(u,u.stateNode.containerInfo),o===null)throw Error(r(387));v=u.pendingProps;var R=u.memoizedState;w=R.element,Vp(o,u),_f(u,v,null,d);var B=u.memoizedState;if(v=B.cache,wl(u,ir,v),v!==R.cache&&$p(u,[ir],d,!0),fh(),v=B.element,R.isDehydrated)if(R={element:v,isDehydrated:!1,cache:B.cache},u.updateQueue.baseState=R,u.memoizedState=R,u.flags&256){u=ag(o,u,v,d);break e}else if(v!==w){w=Ji(Error(r(424)),u),Cf(w),u=ag(o,u,v,d);break e}else{switch(o=u.stateNode.containerInfo,o.nodeType){case 9:o=o.body;break;default:o=o.nodeName==="HTML"?o.ownerDocument.body:o}for(ua=ul(o.firstChild),Ga=u,bn=!0,ps=null,ci=!0,d=Ly(u,null,v,d),u.child=d;d;)d.flags=d.flags&-3|4096,d=d.sibling}else{if(Sf(),v===w){u=al(o,u,d);break e}Tr(o,u,v,d)}u=u.child}return u;case 26:return Es(o,u),o===null?(d=zg(u.type,null,u.pendingProps,null))?u.memoizedState=d:bn||(d=u.type,o=u.pendingProps,v=nd(ye.current).createElement(d),v[It]=u,v[ct]=o,Me(v,d,o),vn(v),u.stateNode=v):u.memoizedState=zg(u.type,o.memoizedProps,u.pendingProps,o.memoizedState),null;case 27:return Ke(u),o===null&&bn&&(v=u.stateNode=kr(u.type,u.pendingProps,ye.current),Ga=u,ci=!0,w=ua,Fr(u.type)?(Tb=w,ua=ul(v.firstChild)):ua=w),Tr(o,u,u.pendingProps.children,d),Es(o,u),o===null&&(u.flags|=4194304),u.child;case 5:return o===null&&bn&&((w=v=ua)&&(v=xb(v,u.type,u.pendingProps,ci),v!==null?(u.stateNode=v,Ga=u,ua=ul(v.firstChild),ci=!1,w=!0):w=!1),w||Zo(u)),Ke(u),w=u.type,R=u.pendingProps,B=o!==null?o.memoizedProps:null,v=R.children,Mc(w,R)?v=null:B!==null&&Mc(w,B)&&(u.flags|=32),u.memoizedState!==null&&(w=Pp(o,u,jC,null,null,d),Gr._currentValue=w),Es(o,u),Tr(o,u,v,d),u.child;case 6:return o===null&&bn&&((o=d=ua)&&(d=ad(d,u.pendingProps,ci),d!==null?(u.stateNode=d,Ga=u,ua=null,o=!0):o=!1),o||Zo(u)),null;case 13:return qC(o,u,d);case 4:return ze(u,u.stateNode.containerInfo),v=u.pendingProps,o===null?u.child=wr(u,null,v,d):Tr(o,u,v,d),u.child;case 11:return ky(o,u,u.type,u.pendingProps,d);case 7:return Tr(o,u,u.pendingProps,d),u.child;case 8:return Tr(o,u,u.pendingProps.children,d),u.child;case 12:return Tr(o,u,u.pendingProps.children,d),u.child;case 10:return v=u.pendingProps,wl(u,u.type,v.value),Tr(o,u,v.children,d),u.child;case 9:return w=u.type._context,v=u.pendingProps.children,hu(u),w=Ur(w),v=v(w),u.flags|=1,Tr(o,u,v,d),u.child;case 14:return GC(o,u,u.type,u.pendingProps,d);case 15:return xs(o,u,u.type,u.pendingProps,d);case 19:return Wy(o,u,d);case 31:return v=u.pendingProps,d=u.mode,v={mode:v.mode,children:v.children},o===null?(d=Mh(v,d),d.ref=u.ref,u.child=d,d.return=u,u=d):(d=Yo(o.child,v),d.ref=u.ref,u.child=d,d.return=u,u=d),u;case 22:return Cc(o,u,d);case 24:return hu(u),v=Ur(ir),o===null?(w=Tf(),w===null&&(w=fa,R=sy(),w.pooledCache=R,R.refCount++,R!==null&&(w.pooledCacheLanes|=d),w=R),u.memoizedState={parent:v,cache:w},uh(u),wl(u,ir,w)):((o.lanes&d)!==0&&(Vp(o,u),_f(u,null,null,d),fh()),w=o.memoizedState,R=u.memoizedState,w.parent!==v?(w={parent:v,cache:v},u.memoizedState=w,u.lanes===0&&(u.memoizedState=u.updateQueue.baseState=w),wl(u,ir,v)):(v=R.cache,wl(u,ir,v),v!==w.cache&&$p(u,[ir],d,!0))),Tr(o,u,u.pendingProps.children,d),u.child;case 29:throw u.pendingProps}throw Error(r(156,u.tag))}function ws(o){o.flags|=4}function Ky(o,u){if(u.type!=="stylesheet"||(u.state.loading&4)!==0)o.flags&=-16777217;else if(o.flags|=16777216,!Mb(u)){if(u=or.current,u!==null&&((Pn&4194048)===Pn?tl!==null:(Pn&62914560)!==Pn&&(Pn&536870912)===0||u!==tl))throw Mf=jp,sh;o.flags|=8192}}function bu(o,u){u!==null&&(o.flags|=4),o.flags&16384&&(u=o.tag!==22?Qe():536870912,o.lanes|=u,Yf|=u)}function If(o,u){if(!bn)switch(o.tailMode){case"hidden":u=o.tail;for(var d=null;u!==null;)u.alternate!==null&&(d=u),u=u.sibling;d===null?o.tail=null:d.sibling=null;break;case"collapsed":d=o.tail;for(var v=null;d!==null;)d.alternate!==null&&(v=d),d=d.sibling;v===null?u||o.tail===null?o.tail=null:o.tail.sibling=null:v.sibling=null}}function _a(o){var u=o.alternate!==null&&o.alternate.child===o.child,d=0,v=0;if(u)for(var w=o.child;w!==null;)d|=w.lanes|w.childLanes,v|=w.subtreeFlags&65011712,v|=w.flags&65011712,w.return=o,w=w.sibling;else for(w=o.child;w!==null;)d|=w.lanes|w.childLanes,v|=w.subtreeFlags,v|=w.flags,w.return=o,w=w.sibling;return o.subtreeFlags|=v,o.childLanes=d,u}function ca(o,u,d){var v=u.pendingProps;switch(fc(u),u.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return _a(u),null;case 1:return _a(u),null;case 3:return d=u.stateNode,v=null,o!==null&&(v=o.memoizedState.cache),u.memoizedState.cache!==v&&(u.flags|=2048),Tl(ir),Fe(),d.pendingContext&&(d.context=d.pendingContext,d.pendingContext=null),(o===null||o.child===null)&&(bf(u)?ws(u):o===null||o.memoizedState.isDehydrated&&(u.flags&256)===0||(u.flags|=1024,oy())),_a(u),null;case 26:return d=u.memoizedState,o===null?(ws(u),d!==null?(_a(u),Ky(u,d)):(_a(u),u.flags&=-16777217)):d?d!==o.memoizedState?(ws(u),_a(u),Ky(u,d)):(_a(u),u.flags&=-16777217):(o.memoizedProps!==v&&ws(u),_a(u),u.flags&=-16777217),null;case 27:Oe(u),d=ye.current;var w=u.type;if(o!==null&&u.stateNode!=null)o.memoizedProps!==v&&ws(u);else{if(!v){if(u.stateNode===null)throw Error(r(166));return _a(u),null}o=oe.current,bf(u)?_p(u):(o=kr(w,v,d),u.stateNode=o,ws(u))}return _a(u),null;case 5:if(Oe(u),d=u.type,o!==null&&u.stateNode!=null)o.memoizedProps!==v&&ws(u);else{if(!v){if(u.stateNode===null)throw Error(r(166));return _a(u),null}if(o=oe.current,bf(u))_p(u);else{switch(w=nd(ye.current),o){case 1:o=w.createElementNS("http://www.w3.org/2000/svg",d);break;case 2:o=w.createElementNS("http://www.w3.org/1998/Math/MathML",d);break;default:switch(d){case"svg":o=w.createElementNS("http://www.w3.org/2000/svg",d);break;case"math":o=w.createElementNS("http://www.w3.org/1998/Math/MathML",d);break;case"script":o=w.createElement("div"),o.innerHTML="<script><\/script>",o=o.removeChild(o.firstChild);break;case"select":o=typeof v.is=="string"?w.createElement("select",{is:v.is}):w.createElement("select"),v.multiple?o.multiple=!0:v.size&&(o.size=v.size);break;default:o=typeof v.is=="string"?w.createElement(d,{is:v.is}):w.createElement(d)}}o[It]=u,o[ct]=v;e:for(w=u.child;w!==null;){if(w.tag===5||w.tag===6)o.appendChild(w.stateNode);else if(w.tag!==4&&w.tag!==27&&w.child!==null){w.child.return=w,w=w.child;continue}if(w===u)break e;for(;w.sibling===null;){if(w.return===null||w.return===u)break e;w=w.return}w.sibling.return=w.return,w=w.sibling}u.stateNode=o;e:switch(Me(o,d,v),d){case"button":case"input":case"select":case"textarea":o=!!v.autoFocus;break e;case"img":o=!0;break e;default:o=!1}o&&ws(u)}}return _a(u),u.flags&=-16777217,null;case 6:if(o&&u.stateNode!=null)o.memoizedProps!==v&&ws(u);else{if(typeof v!="string"&&u.stateNode===null)throw Error(r(166));if(o=ye.current,bf(u)){if(o=u.stateNode,d=u.memoizedProps,v=null,w=Ga,w!==null)switch(w.tag){case 27:case 5:v=w.memoizedProps}o[It]=u,o=!!(o.nodeValue===d||v!==null&&v.suppressHydrationWarning===!0||hx(o.nodeValue,d)),o||Zo(u)}else o=nd(o).createTextNode(v),o[It]=u,u.stateNode=o}return _a(u),null;case 13:if(v=u.memoizedState,o===null||o.memoizedState!==null&&o.memoizedState.dehydrated!==null){if(w=bf(u),v!==null&&v.dehydrated!==null){if(o===null){if(!w)throw Error(r(318));if(w=u.memoizedState,w=w!==null?w.dehydrated:null,!w)throw Error(r(317));w[It]=u}else Sf(),(u.flags&128)===0&&(u.memoizedState=null),u.flags|=4;_a(u),w=!1}else w=oy(),o!==null&&o.memoizedState!==null&&(o.memoizedState.hydrationErrors=w),w=!0;if(!w)return u.flags&256?(nl(u),u):(nl(u),null)}if(nl(u),(u.flags&128)!==0)return u.lanes=d,u;if(d=v!==null,o=o!==null&&o.memoizedState!==null,d){v=u.child,w=null,v.alternate!==null&&v.alternate.memoizedState!==null&&v.alternate.memoizedState.cachePool!==null&&(w=v.alternate.memoizedState.cachePool.pool);var R=null;v.memoizedState!==null&&v.memoizedState.cachePool!==null&&(R=v.memoizedState.cachePool.pool),R!==w&&(v.flags|=2048)}return d!==o&&d&&(u.child.flags|=8192),bu(u,u.updateQueue),_a(u),null;case 4:return Fe(),o===null&&Bh(u.stateNode.containerInfo),_a(u),null;case 10:return Tl(u.type),_a(u),null;case 19:if(ne(Ja),w=u.memoizedState,w===null)return _a(u),null;if(v=(u.flags&128)!==0,R=w.rendering,R===null)if(v)If(w,!1);else{if(Xa!==0||o!==null&&(o.flags&128)!==0)for(o=u.child;o!==null;){if(R=to(o),R!==null){for(u.flags|=128,If(w,!1),o=R.updateQueue,u.updateQueue=o,bu(u,o),u.subtreeFlags=0,o=d,d=u.child;d!==null;)Mp(d,o),d=d.sibling;return ae(Ja,Ja.current&1|2),u.child}o=o.sibling}w.tail!==null&&_e()>fg&&(u.flags|=128,v=!0,If(w,!1),u.lanes=4194304)}else{if(!v)if(o=to(R),o!==null){if(u.flags|=128,v=!0,o=o.updateQueue,u.updateQueue=o,bu(u,o),If(w,!0),w.tail===null&&w.tailMode==="hidden"&&!R.alternate&&!bn)return _a(u),null}else 2*_e()-w.renderingStartTime>fg&&d!==536870912&&(u.flags|=128,v=!0,If(w,!1),u.lanes=4194304);w.isBackwards?(R.sibling=u.child,u.child=R):(o=w.last,o!==null?o.sibling=R:u.child=R,w.last=R)}return w.tail!==null?(u=w.tail,w.rendering=u,w.tail=u.sibling,w.renderingStartTime=_e(),u.sibling=null,o=Ja.current,ae(Ja,v?o&1|2:o&1),u):(_a(u),null);case 22:case 23:return nl(u),Nf(),v=u.memoizedState!==null,o!==null?o.memoizedState!==null!==v&&(u.flags|=8192):v&&(u.flags|=8192),v?(d&536870912)!==0&&(u.flags&128)===0&&(_a(u),u.subtreeFlags&6&&(u.flags|=8192)):_a(u),d=u.updateQueue,d!==null&&bu(u,d.retryQueue),d=null,o!==null&&o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(d=o.memoizedState.cachePool.pool),v=null,u.memoizedState!==null&&u.memoizedState.cachePool!==null&&(v=u.memoizedState.cachePool.pool),v!==d&&(u.flags|=2048),o!==null&&ne(vs),null;case 24:return d=null,o!==null&&(d=o.memoizedState.cache),u.memoizedState.cache!==d&&(u.flags|=2048),Tl(ir),_a(u),null;case 25:return null;case 30:return null}throw Error(r(156,u.tag))}function Qy(o,u){switch(fc(u),u.tag){case 1:return o=u.flags,o&65536?(u.flags=o&-65537|128,u):null;case 3:return Tl(ir),Fe(),o=u.flags,(o&65536)!==0&&(o&128)===0?(u.flags=o&-65537|128,u):null;case 26:case 27:case 5:return Oe(u),null;case 13:if(nl(u),o=u.memoizedState,o!==null&&o.dehydrated!==null){if(u.alternate===null)throw Error(r(340));Sf()}return o=u.flags,o&65536?(u.flags=o&-65537|128,u):null;case 19:return ne(Ja),null;case 4:return Fe(),null;case 10:return Tl(u.type),null;case 22:case 23:return nl(u),Nf(),o!==null&&ne(vs),o=u.flags,o&65536?(u.flags=o&-65537|128,u):null;case 24:return Tl(ir),null;case 25:return null;default:return null}}function XC(o,u){switch(fc(u),u.tag){case 3:Tl(ir),Fe();break;case 26:case 27:case 5:Oe(u);break;case 4:Fe();break;case 13:nl(u);break;case 19:ne(Ja);break;case 10:Tl(u.type);break;case 22:case 23:nl(u),Nf(),o!==null&&ne(vs);break;case 24:Tl(ir)}}function Ff(o,u){try{var d=u.updateQueue,v=d!==null?d.lastEffect:null;if(v!==null){var w=v.next;d=w;do{if((d.tag&o)===o){v=void 0;var R=d.create,B=d.inst;v=R(),B.destroy=v}d=d.next}while(d!==w)}}catch(W){da(u,u.return,W)}}function Su(o,u,d){try{var v=u.updateQueue,w=v!==null?v.lastEffect:null;if(w!==null){var R=w.next;v=R;do{if((v.tag&o)===o){var B=v.inst,W=B.destroy;if(W!==void 0){B.destroy=void 0,w=u;var se=d,xe=W;try{xe()}catch(qe){da(w,se,qe)}}}v=v.next}while(v!==R)}}catch(qe){da(u,u.return,qe)}}function WC(o){var u=o.updateQueue;if(u!==null){var d=o.stateNode;try{Hp(u,d)}catch(v){da(o,o.return,v)}}}function lg(o,u,d){d.props=Oo(o.type,o.memoizedProps),d.state=o.memoizedState;try{d.componentWillUnmount()}catch(v){da(o,u,v)}}function kf(o,u){try{var d=o.ref;if(d!==null){switch(o.tag){case 26:case 27:case 5:var v=o.stateNode;break;case 30:v=o.stateNode;break;default:v=o.stateNode}typeof d=="function"?o.refCleanup=d(v):d.current=v}}catch(w){da(o,u,w)}}function rl(o,u){var d=o.ref,v=o.refCleanup;if(d!==null)if(typeof v=="function")try{v()}catch(w){da(o,u,w)}finally{o.refCleanup=null,o=o.alternate,o!=null&&(o.refCleanup=null)}else if(typeof d=="function")try{d(null)}catch(w){da(o,u,w)}else d.current=null}function Jy(o){var u=o.type,d=o.memoizedProps,v=o.stateNode;try{e:switch(u){case"button":case"input":case"select":case"textarea":d.autoFocus&&v.focus();break e;case"img":d.src?v.src=d.src:d.srcSet&&(v.srcset=d.srcSet)}}catch(w){da(o,o.return,w)}}function Ec(o,u,d){try{var v=o.stateNode;Xn(v,o.type,d,u),v[ct]=u}catch(w){da(o,o.return,w)}}function ZC(o){return o.tag===5||o.tag===3||o.tag===26||o.tag===27&&Fr(o.type)||o.tag===4}function eb(o){e:for(;;){for(;o.sibling===null;){if(o.return===null||ZC(o.return))return null;o=o.return}for(o.sibling.return=o.return,o=o.sibling;o.tag!==5&&o.tag!==6&&o.tag!==18;){if(o.tag===27&&Fr(o.type)||o.flags&2||o.child===null||o.tag===4)continue e;o.child.return=o,o=o.child}if(!(o.flags&2))return o.stateNode}}function Ro(o,u,d){var v=o.tag;if(v===5||v===6)o=o.stateNode,u?(d.nodeType===9?d.body:d.nodeName==="HTML"?d.ownerDocument.body:d).insertBefore(o,u):(u=d.nodeType===9?d.body:d.nodeName==="HTML"?d.ownerDocument.body:d,u.appendChild(o),d=d._reactRootContainer,d!=null||u.onclick!==null||(u.onclick=Uh));else if(v!==4&&(v===27&&Fr(o.type)&&(d=o.stateNode,u=null),o=o.child,o!==null))for(Ro(o,u,d),o=o.sibling;o!==null;)Ro(o,u,d),o=o.sibling}function Cu(o,u,d){var v=o.tag;if(v===5||v===6)o=o.stateNode,u?d.insertBefore(o,u):d.appendChild(o);else if(v!==4&&(v===27&&Fr(o.type)&&(d=o.stateNode),o=o.child,o!==null))for(Cu(o,u,d),o=o.sibling;o!==null;)Cu(o,u,d),o=o.sibling}function KC(o){var u=o.stateNode,d=o.memoizedProps;try{for(var v=o.type,w=u.attributes;w.length;)u.removeAttributeNode(w[0]);Me(u,v,d),u[It]=o,u[ct]=d}catch(R){da(o,o.return,R)}}var il=!1,Ya=!1,sg=!1,tb=typeof WeakSet=="function"?WeakSet:Set,lr=null;function QC(o,u){if(o=o.containerInfo,Sb=Wh,o=Kd(o),wp(o)){if("selectionStart"in o)var d={start:o.selectionStart,end:o.selectionEnd};else e:{d=(d=o.ownerDocument)&&d.defaultView||window;var v=d.getSelection&&d.getSelection();if(v&&v.rangeCount!==0){d=v.anchorNode;var w=v.anchorOffset,R=v.focusNode;v=v.focusOffset;try{d.nodeType,R.nodeType}catch{d=null;break e}var B=0,W=-1,se=-1,xe=0,qe=0,Ze=o,Te=null;t:for(;;){for(var Ne;Ze!==d||w!==0&&Ze.nodeType!==3||(W=B+w),Ze!==R||v!==0&&Ze.nodeType!==3||(se=B+v),Ze.nodeType===3&&(B+=Ze.nodeValue.length),(Ne=Ze.firstChild)!==null;)Te=Ze,Ze=Ne;for(;;){if(Ze===o)break t;if(Te===d&&++xe===w&&(W=B),Te===R&&++qe===v&&(se=B),(Ne=Ze.nextSibling)!==null)break;Ze=Te,Te=Ze.parentNode}Ze=Ne}d=W===-1||se===-1?null:{start:W,end:se}}else d=null}d=d||{start:0,end:0}}else d=null;for(Ih={focusedElem:o,selectionRange:d},Wh=!1,lr=u;lr!==null;)if(u=lr,o=u.child,(u.subtreeFlags&1024)!==0&&o!==null)o.return=u,lr=o;else for(;lr!==null;){switch(u=lr,R=u.alternate,o=u.flags,u.tag){case 0:break;case 11:case 15:break;case 1:if((o&1024)!==0&&R!==null){o=void 0,d=u,w=R.memoizedProps,R=R.memoizedState,v=d.stateNode;try{var en=Oo(d.type,w,d.elementType===d.type);o=v.getSnapshotBeforeUpdate(en,R),v.__reactInternalSnapshotBeforeUpdate=o}catch(Yt){da(d,d.return,Yt)}}break;case 3:if((o&1024)!==0){if(o=u.stateNode.containerInfo,d=o.nodeType,d===9)Fh(o);else if(d===1)switch(o.nodeName){case"HEAD":case"HTML":case"BODY":Fh(o);break;default:o.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((o&1024)!==0)throw Error(r(163))}if(o=u.sibling,o!==null){o.return=u.return,lr=o;break}lr=u.return}}function ug(o,u,d){var v=d.flags;switch(d.tag){case 0:case 11:case 15:Ts(o,d),v&4&&Ff(5,d);break;case 1:if(Ts(o,d),v&4)if(o=d.stateNode,u===null)try{o.componentDidMount()}catch(B){da(d,d.return,B)}else{var w=Oo(d.type,u.memoizedProps);u=u.memoizedState;try{o.componentDidUpdate(w,u,o.__reactInternalSnapshotBeforeUpdate)}catch(B){da(d,d.return,B)}}v&64&&WC(d),v&512&&kf(d,d.return);break;case 3:if(Ts(o,d),v&64&&(o=d.updateQueue,o!==null)){if(u=null,d.child!==null)switch(d.child.tag){case 27:case 5:u=d.child.stateNode;break;case 1:u=d.child.stateNode}try{Hp(o,u)}catch(B){da(d,d.return,B)}}break;case 27:u===null&&v&4&&KC(d);case 26:case 5:Ts(o,d),u===null&&v&4&&Jy(d),v&512&&kf(d,d.return);break;case 12:Ts(o,d);break;case 13:Ts(o,d),v&4&&Mn(o,d),v&64&&(o=d.memoizedState,o!==null&&(o=o.dehydrated,o!==null&&(d=cx.bind(null,d),wb(o,d))));break;case 22:if(v=d.memoizedState!==null||il,!v){u=u!==null&&u.memoizedState!==null||Ya,w=il;var R=Ya;il=v,(Ya=u)&&!R?Oa(o,d,(d.subtreeFlags&8772)!==0):Ts(o,d),il=w,Ya=R}break;case 30:break;default:Ts(o,d)}}function nb(o){var u=o.alternate;u!==null&&(o.alternate=null,nb(u)),o.child=null,o.deletions=null,o.sibling=null,o.tag===5&&(u=o.stateNode,u!==null&&ot(u)),o.stateNode=null,o.return=null,o.dependencies=null,o.memoizedProps=null,o.memoizedState=null,o.pendingProps=null,o.stateNode=null,o.updateQueue=null}var Ta=null,Hi=!1;function Ao(o,u,d){for(d=d.child;d!==null;)ab(o,u,d),d=d.sibling}function ab(o,u,d){if(At&&typeof At.onCommitFiberUnmount=="function")try{At.onCommitFiberUnmount(wt,d)}catch{}switch(d.tag){case 26:Ya||rl(d,u),Ao(o,u,d),d.memoizedState?d.memoizedState.count--:d.stateNode&&(d=d.stateNode,d.parentNode.removeChild(d));break;case 27:Ya||rl(d,u);var v=Ta,w=Hi;Fr(d.type)&&(Ta=d.stateNode,Hi=!1),Ao(o,u,d),Ct(d.stateNode),Ta=v,Hi=w;break;case 5:Ya||rl(d,u);case 6:if(v=Ta,w=Hi,Ta=null,Ao(o,u,d),Ta=v,Hi=w,Ta!==null)if(Hi)try{(Ta.nodeType===9?Ta.body:Ta.nodeName==="HTML"?Ta.ownerDocument.body:Ta).removeChild(d.stateNode)}catch(R){da(d,u,R)}else try{Ta.removeChild(d.stateNode)}catch(R){da(d,u,R)}break;case 18:Ta!==null&&(Hi?(o=Ta,px(o.nodeType===9?o.body:o.nodeName==="HTML"?o.ownerDocument.body:o,d.stateNode),ud(o)):px(Ta,d.stateNode));break;case 4:v=Ta,w=Hi,Ta=d.stateNode.containerInfo,Hi=!0,Ao(o,u,d),Ta=v,Hi=w;break;case 0:case 11:case 14:case 15:Ya||Su(2,d,u),Ya||Su(4,d,u),Ao(o,u,d);break;case 1:Ya||(rl(d,u),v=d.stateNode,typeof v.componentWillUnmount=="function"&&lg(d,u,v)),Ao(o,u,d);break;case 21:Ao(o,u,d);break;case 22:Ya=(v=Ya)||d.memoizedState!==null,Ao(o,u,d),Ya=v;break;default:Ao(o,u,d)}}function Mn(o,u){if(u.memoizedState===null&&(o=u.alternate,o!==null&&(o=o.memoizedState,o!==null&&(o=o.dehydrated,o!==null))))try{ud(o)}catch(d){da(u,u.return,d)}}function rb(o){switch(o.tag){case 13:case 19:var u=o.stateNode;return u===null&&(u=o.stateNode=new tb),u;case 22:return o=o.stateNode,u=o._retryCache,u===null&&(u=o._retryCache=new tb),u;default:throw Error(r(435,o.tag))}}function _h(o,u){var d=rb(o);u.forEach(function(v){var w=rA.bind(null,o,v);d.has(v)||(d.add(v),v.then(w,w))})}function Bi(o,u){var d=u.deletions;if(d!==null)for(var v=0;v<d.length;v++){var w=d[v],R=o,B=u,W=B;e:for(;W!==null;){switch(W.tag){case 27:if(Fr(W.type)){Ta=W.stateNode,Hi=!1;break e}break;case 5:Ta=W.stateNode,Hi=!1;break e;case 3:case 4:Ta=W.stateNode.containerInfo,Hi=!0;break e}W=W.return}if(Ta===null)throw Error(r(160));ab(R,B,w),Ta=null,Hi=!1,R=w.alternate,R!==null&&(R.return=null),w.return=null}if(u.subtreeFlags&13878)for(u=u.child;u!==null;)Gf(u,o),u=u.sibling}var ao=null;function Gf(o,u){var d=o.alternate,v=o.flags;switch(o.tag){case 0:case 11:case 14:case 15:Bi(u,o),ei(o),v&4&&(Su(3,o,o.return),Ff(3,o),Su(5,o,o.return));break;case 1:Bi(u,o),ei(o),v&512&&(Ya||d===null||rl(d,d.return)),v&64&&il&&(o=o.updateQueue,o!==null&&(v=o.callbacks,v!==null&&(d=o.shared.hiddenCallbacks,o.shared.hiddenCallbacks=d===null?v:d.concat(v))));break;case 26:var w=ao;if(Bi(u,o),ei(o),v&512&&(Ya||d===null||rl(d,d.return)),v&4){var R=d!==null?d.memoizedState:null;if(v=o.memoizedState,d===null)if(v===null)if(o.stateNode===null){e:{v=o.type,d=o.memoizedProps,w=w.ownerDocument||w;t:switch(v){case"title":R=w.getElementsByTagName("title")[0],(!R||R[En]||R[It]||R.namespaceURI==="http://www.w3.org/2000/svg"||R.hasAttribute("itemprop"))&&(R=w.createElement(v),w.head.insertBefore(R,w.querySelector("head > title"))),Me(R,v,d),R[It]=o,vn(R),v=R;break e;case"link":var B=id("link","href",w).get(v+(d.href||""));if(B){for(var W=0;W<B.length;W++)if(R=B[W],R.getAttribute("href")===(d.href==null||d.href===""?null:d.href)&&R.getAttribute("rel")===(d.rel==null?null:d.rel)&&R.getAttribute("title")===(d.title==null?null:d.title)&&R.getAttribute("crossorigin")===(d.crossOrigin==null?null:d.crossOrigin)){B.splice(W,1);break t}}R=w.createElement(v),Me(R,v,d),w.head.appendChild(R);break;case"meta":if(B=id("meta","content",w).get(v+(d.content||""))){for(W=0;W<B.length;W++)if(R=B[W],R.getAttribute("content")===(d.content==null?null:""+d.content)&&R.getAttribute("name")===(d.name==null?null:d.name)&&R.getAttribute("property")===(d.property==null?null:d.property)&&R.getAttribute("http-equiv")===(d.httpEquiv==null?null:d.httpEquiv)&&R.getAttribute("charset")===(d.charSet==null?null:d.charSet)){B.splice(W,1);break t}}R=w.createElement(v),Me(R,v,d),w.head.appendChild(R);break;default:throw Error(r(468,v))}R[It]=o,vn(R),v=R}o.stateNode=v}else Ab(w,o.type,o.stateNode);else o.stateNode=jg(w,v,o.memoizedProps);else R!==v?(R===null?d.stateNode!==null&&(d=d.stateNode,d.parentNode.removeChild(d)):R.count--,v===null?Ab(w,o.type,o.stateNode):jg(w,v,o.memoizedProps)):v===null&&o.stateNode!==null&&Ec(o,o.memoizedProps,d.memoizedProps)}break;case 27:Bi(u,o),ei(o),v&512&&(Ya||d===null||rl(d,d.return)),d!==null&&v&4&&Ec(o,o.memoizedProps,d.memoizedProps);break;case 5:if(Bi(u,o),ei(o),v&512&&(Ya||d===null||rl(d,d.return)),o.flags&32){w=o.stateNode;try{ar(w,"")}catch(Ne){da(o,o.return,Ne)}}v&4&&o.stateNode!=null&&(w=o.memoizedProps,Ec(o,w,d!==null?d.memoizedProps:w)),v&1024&&(sg=!0);break;case 6:if(Bi(u,o),ei(o),v&4){if(o.stateNode===null)throw Error(r(162));v=o.memoizedProps,d=o.stateNode;try{d.nodeValue=v}catch(Ne){da(o,o.return,Ne)}}break;case 3:if(qh=null,w=ao,ao=Rr(u.containerInfo),Bi(u,o),ao=w,ei(o),v&4&&d!==null&&d.memoizedState.isDehydrated)try{ud(u.containerInfo)}catch(Ne){da(o,o.return,Ne)}sg&&(sg=!1,wc(o));break;case 4:v=ao,ao=Rr(o.stateNode.containerInfo),Bi(u,o),ei(o),ao=v;break;case 12:Bi(u,o),ei(o);break;case 13:Bi(u,o),ei(o),o.child.flags&8192&&o.memoizedState!==null!=(d!==null&&d.memoizedState!==null)&&(cb=_e()),v&4&&(v=o.updateQueue,v!==null&&(o.updateQueue=null,_h(o,v)));break;case 22:w=o.memoizedState!==null;var se=d!==null&&d.memoizedState!==null,xe=il,qe=Ya;if(il=xe||w,Ya=qe||se,Bi(u,o),Ya=qe,il=xe,ei(o),v&8192)e:for(u=o.stateNode,u._visibility=w?u._visibility&-2:u._visibility|1,w&&(d===null||se||il||Ya||Os(o)),d=null,u=o;;){if(u.tag===5||u.tag===26){if(d===null){se=d=u;try{if(R=se.stateNode,w)B=R.style,typeof B.setProperty=="function"?B.setProperty("display","none","important"):B.display="none";else{W=se.stateNode;var Ze=se.memoizedProps.style,Te=Ze!=null&&Ze.hasOwnProperty("display")?Ze.display:null;W.style.display=Te==null||typeof Te=="boolean"?"":(""+Te).trim()}}catch(Ne){da(se,se.return,Ne)}}}else if(u.tag===6){if(d===null){se=u;try{se.stateNode.nodeValue=w?"":se.memoizedProps}catch(Ne){da(se,se.return,Ne)}}}else if((u.tag!==22&&u.tag!==23||u.memoizedState===null||u===o)&&u.child!==null){u.child.return=u,u=u.child;continue}if(u===o)break e;for(;u.sibling===null;){if(u.return===null||u.return===o)break e;d===u&&(d=null),u=u.return}d===u&&(d=null),u.sibling.return=u.return,u=u.sibling}v&4&&(v=o.updateQueue,v!==null&&(d=v.retryQueue,d!==null&&(v.retryQueue=null,_h(o,d))));break;case 19:Bi(u,o),ei(o),v&4&&(v=o.updateQueue,v!==null&&(o.updateQueue=null,_h(o,v)));break;case 30:break;case 21:break;default:Bi(u,o),ei(o)}}function ei(o){var u=o.flags;if(u&2){try{for(var d,v=o.return;v!==null;){if(ZC(v)){d=v;break}v=v.return}if(d==null)throw Error(r(160));switch(d.tag){case 27:var w=d.stateNode,R=eb(o);Cu(o,R,w);break;case 5:var B=d.stateNode;d.flags&32&&(ar(B,""),d.flags&=-33);var W=eb(o);Cu(o,W,B);break;case 3:case 4:var se=d.stateNode.containerInfo,xe=eb(o);Ro(o,xe,se);break;default:throw Error(r(161))}}catch(qe){da(o,o.return,qe)}o.flags&=-3}u&4096&&(o.flags&=-4097)}function wc(o){if(o.subtreeFlags&1024)for(o=o.child;o!==null;){var u=o;wc(u),u.tag===5&&u.flags&1024&&u.stateNode.reset(),o=o.sibling}}function Ts(o,u){if(u.subtreeFlags&8772)for(u=u.child;u!==null;)ug(o,u.alternate,u),u=u.sibling}function Os(o){for(o=o.child;o!==null;){var u=o;switch(u.tag){case 0:case 11:case 14:case 15:Su(4,u,u.return),Os(u);break;case 1:rl(u,u.return);var d=u.stateNode;typeof d.componentWillUnmount=="function"&&lg(u,u.return,d),Os(u);break;case 27:Ct(u.stateNode);case 26:case 5:rl(u,u.return),Os(u);break;case 22:u.memoizedState===null&&Os(u);break;case 30:Os(u);break;default:Os(u)}o=o.sibling}}function Oa(o,u,d){for(d=d&&(u.subtreeFlags&8772)!==0,u=u.child;u!==null;){var v=u.alternate,w=o,R=u,B=R.flags;switch(R.tag){case 0:case 11:case 15:Oa(w,R,d),Ff(4,R);break;case 1:if(Oa(w,R,d),v=R,w=v.stateNode,typeof w.componentDidMount=="function")try{w.componentDidMount()}catch(xe){da(v,v.return,xe)}if(v=R,w=v.updateQueue,w!==null){var W=v.stateNode;try{var se=w.shared.hiddenCallbacks;if(se!==null)for(w.shared.hiddenCallbacks=null,w=0;w<se.length;w++)Df(se[w],W)}catch(xe){da(v,v.return,xe)}}d&&B&64&&WC(R),kf(R,R.return);break;case 27:KC(R);case 26:case 5:Oa(w,R,d),d&&v===null&&B&4&&Jy(R),kf(R,R.return);break;case 12:Oa(w,R,d);break;case 13:Oa(w,R,d),d&&B&4&&Mn(w,R);break;case 22:R.memoizedState===null&&Oa(w,R,d),kf(R,R.return);break;case 30:break;default:Oa(w,R,d)}u=u.sibling}}function ib(o,u){var d=null;o!==null&&o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(d=o.memoizedState.cachePool.pool),o=null,u.memoizedState!==null&&u.memoizedState.cachePool!==null&&(o=u.memoizedState.cachePool.pool),o!==d&&(o!=null&&o.refCount++,d!=null&&mu(d))}function Mo(o,u){o=null,u.alternate!==null&&(o=u.alternate.memoizedState.cache),u=u.memoizedState.cache,u!==o&&(u.refCount++,o!=null&&mu(o))}function ol(o,u,d,v){if(u.subtreeFlags&10256)for(u=u.child;u!==null;)Rs(o,u,d,v),u=u.sibling}function Rs(o,u,d,v){var w=u.flags;switch(u.tag){case 0:case 11:case 15:ol(o,u,d,v),w&2048&&Ff(9,u);break;case 1:ol(o,u,d,v);break;case 3:ol(o,u,d,v),w&2048&&(o=null,u.alternate!==null&&(o=u.alternate.memoizedState.cache),u=u.memoizedState.cache,u!==o&&(u.refCount++,o!=null&&mu(o)));break;case 12:if(w&2048){ol(o,u,d,v),o=u.stateNode;try{var R=u.memoizedProps,B=R.id,W=R.onPostCommit;typeof W=="function"&&W(B,u.alternate===null?"mount":"update",o.passiveEffectDuration,-0)}catch(se){da(u,u.return,se)}}else ol(o,u,d,v);break;case 13:ol(o,u,d,v);break;case 23:break;case 22:R=u.stateNode,B=u.alternate,u.memoizedState!==null?R._visibility&2?ol(o,u,d,v):xu(o,u):R._visibility&2?ol(o,u,d,v):(R._visibility|=2,Tc(o,u,d,v,(u.subtreeFlags&10256)!==0)),w&2048&&ib(B,u);break;case 24:ol(o,u,d,v),w&2048&&Mo(u.alternate,u);break;default:ol(o,u,d,v)}}function Tc(o,u,d,v,w){for(w=w&&(u.subtreeFlags&10256)!==0,u=u.child;u!==null;){var R=o,B=u,W=d,se=v,xe=B.flags;switch(B.tag){case 0:case 11:case 15:Tc(R,B,W,se,w),Ff(8,B);break;case 23:break;case 22:var qe=B.stateNode;B.memoizedState!==null?qe._visibility&2?Tc(R,B,W,se,w):xu(R,B):(qe._visibility|=2,Tc(R,B,W,se,w)),w&&xe&2048&&ib(B.alternate,B);break;case 24:Tc(R,B,W,se,w),w&&xe&2048&&Mo(B.alternate,B);break;default:Tc(R,B,W,se,w)}u=u.sibling}}function xu(o,u){if(u.subtreeFlags&10256)for(u=u.child;u!==null;){var d=o,v=u,w=v.flags;switch(v.tag){case 22:xu(d,v),w&2048&&ib(v.alternate,v);break;case 24:xu(d,v),w&2048&&Mo(v.alternate,v);break;default:xu(d,v)}u=u.sibling}}var In=8192;function Eu(o){if(o.subtreeFlags&In)for(o=o.child;o!==null;)Or(o),o=o.sibling}function Or(o){switch(o.tag){case 26:Eu(o),o.flags&In&&o.memoizedState!==null&&yx(ao,o.memoizedState,o.memoizedProps);break;case 5:Eu(o);break;case 3:case 4:var u=ao;ao=Rr(o.stateNode.containerInfo),Eu(o),ao=u;break;case 22:o.memoizedState===null&&(u=o.alternate,u!==null&&u.memoizedState!==null?(u=In,In=16777216,Eu(o),In=u):Eu(o));break;default:Eu(o)}}function JC(o){var u=o.alternate;if(u!==null&&(o=u.child,o!==null)){u.child=null;do u=o.sibling,o.sibling=null,o=u;while(o!==null)}}function qf(o){var u=o.deletions;if((o.flags&16)!==0){if(u!==null)for(var d=0;d<u.length;d++){var v=u[d];lr=v,ro(v,o)}JC(o)}if(o.subtreeFlags&10256)for(o=o.child;o!==null;)cg(o),o=o.sibling}function cg(o){switch(o.tag){case 0:case 11:case 15:qf(o),o.flags&2048&&Su(9,o,o.return);break;case 3:qf(o);break;case 12:qf(o);break;case 22:var u=o.stateNode;o.memoizedState!==null&&u._visibility&2&&(o.return===null||o.return.tag!==13)?(u._visibility&=-3,Dh(o)):qf(o);break;default:qf(o)}}function Dh(o){var u=o.deletions;if((o.flags&16)!==0){if(u!==null)for(var d=0;d<u.length;d++){var v=u[d];lr=v,ro(v,o)}JC(o)}for(o=o.child;o!==null;){switch(u=o,u.tag){case 0:case 11:case 15:Su(8,u,u.return),Dh(u);break;case 22:d=u.stateNode,d._visibility&2&&(d._visibility&=-3,Dh(u));break;default:Dh(u)}o=o.sibling}}function ro(o,u){for(;lr!==null;){var d=lr;switch(d.tag){case 0:case 11:case 15:Su(8,d,u);break;case 23:case 22:if(d.memoizedState!==null&&d.memoizedState.cachePool!==null){var v=d.memoizedState.cachePool.pool;v!=null&&v.refCount++}break;case 24:mu(d.memoizedState.cache)}if(v=d.child,v!==null)v.return=d,lr=v;else e:for(d=o;lr!==null;){v=lr;var w=v.sibling,R=v.return;if(nb(v),v===d){lr=null;break e}if(w!==null){w.return=R,lr=w;break e}lr=R}}}var ex={getCacheForType:function(o){var u=Ur(ir),d=u.data.get(o);return d===void 0&&(d=o(),u.data.set(o,d)),d}},ob=typeof WeakMap=="function"?WeakMap:Map,Jn=0,fa=null,_n=null,Pn=0,Fn=0,Pi=null,As=!1,wu=!1,lb=!1,Ms=0,Xa=0,Tu=0,Ou=0,sb=0,gr=0,Yf=0,Nh=null,di=null,ub=!1,cb=0,fg=1/0,dg=null,Ml=null,Ir=0,Ru=null,Au=null,Xf=0,Ui=0,hg=null,fb=null,Wf=0,mg=null;function io(){if((Jn&2)!==0&&Pn!==0)return Pn&-Pn;if(k.T!==null){var o=pu;return o!==0?o:wg()}return Mt()}function tx(){gr===0&&(gr=(Pn&536870912)===0||bn?he():536870912);var o=or.current;return o!==null&&(o.flags|=32),gr}function Ii(o,u,d){(o===fa&&(Fn===2||Fn===9)||o.cancelPendingCommit!==null)&&(ll(o,0),_s(o,Pn,gr,!1)),ft(o,d),((Jn&2)===0||o!==fa)&&(o===fa&&((Jn&2)===0&&(Ou|=d),Xa===4&&_s(o,Pn,gr,!1)),sl(o))}function nx(o,u,d){if((Jn&6)!==0)throw Error(r(327));var v=!d&&(u&124)===0&&(u&o.expiredLanes)===0||lt(o,u),w=v?gg(o,u):Oc(o,u,!0),R=v;do{if(w===0){wu&&!v&&_s(o,u,0,!1);break}else{if(d=o.current.alternate,R&&!pg(d)){w=Oc(o,u,!1),R=!1;continue}if(w===2){if(R=u,o.errorRecoveryDisabledLanes&R)var B=0;else B=o.pendingLanes&-536870913,B=B!==0?B:B&536870912?536870912:0;if(B!==0){u=B;e:{var W=o;w=Nh;var se=W.current.memoizedState.isDehydrated;if(se&&(ll(W,B).flags|=256),B=Oc(W,B,!1),B!==2){if(lb&&!se){W.errorRecoveryDisabledLanes|=R,Ou|=R,w=4;break e}R=di,di=w,R!==null&&(di===null?di=R:di.push.apply(di,R))}w=B}if(R=!1,w!==2)continue}}if(w===1){ll(o,0),_s(o,u,0,!0);break}e:{switch(v=o,R=w,R){case 0:case 1:throw Error(r(345));case 4:if((u&4194048)!==u)break;case 6:_s(v,u,gr,!As);break e;case 2:di=null;break;case 3:case 5:break;default:throw Error(r(329))}if((u&62914560)===u&&(w=cb+300-_e(),10<w)){if(_s(v,u,gr,!As),et(v,0,!0)!==0)break e;v.timeoutHandle=Nl(Zf.bind(null,v,d,di,dg,ub,u,gr,Ou,Yf,As,R,2,-0,0),w);break e}Zf(v,d,di,dg,ub,u,gr,Ou,Yf,As,R,0,-0,0)}}break}while(!0);sl(o)}function Zf(o,u,d,v,w,R,B,W,se,xe,qe,Ze,Te,Ne){if(o.timeoutHandle=-1,Ze=u.subtreeFlags,(Ze&8192||(Ze&16785408)===16785408)&&(od={stylesheets:null,count:0,unsuspend:vx},Or(u),Ze=bx(),Ze!==null)){o.cancelPendingCommit=Ze(ix.bind(null,o,u,R,d,v,w,B,W,se,qe,1,Te,Ne)),_s(o,R,B,!xe);return}ix(o,u,R,d,v,w,B,W,se)}function pg(o){for(var u=o;;){var d=u.tag;if((d===0||d===11||d===15)&&u.flags&16384&&(d=u.updateQueue,d!==null&&(d=d.stores,d!==null)))for(var v=0;v<d.length;v++){var w=d[v],R=w.getSnapshot;w=w.value;try{if(!ui(R(),w))return!1}catch{return!1}}if(d=u.child,u.subtreeFlags&16384&&d!==null)d.return=u,u=d;else{if(u===o)break;for(;u.sibling===null;){if(u.return===null||u.return===o)return!0;u=u.return}u.sibling.return=u.return,u=u.sibling}}return!0}function _s(o,u,d,v){u&=~sb,u&=~Ou,o.suspendedLanes|=u,o.pingedLanes&=~u,v&&(o.warmLanes|=u),v=o.expirationTimes;for(var w=u;0<w;){var R=31-ht(w),B=1<<R;v[R]=-1,w&=~B}d!==0&&_t(o,d,u)}function $h(){return(Jn&6)===0?(Ds(0),!1):!0}function Kf(){if(_n!==null){if(Fn===0)var o=_n.return;else o=_n,Ko=gs=null,$f(o),ji=null,Vf=0,o=_n;for(;o!==null;)XC(o.alternate,o),o=o.return;_n=null}}function ll(o,u){var d=o.timeoutHandle;d!==-1&&(o.timeoutHandle=-1,Cb(d)),d=o.cancelPendingCommit,d!==null&&(o.cancelPendingCommit=null,d()),Kf(),fa=o,_n=d=Yo(o.current,null),Pn=u,Fn=0,Pi=null,As=!1,wu=lt(o,u),lb=!1,Yf=gr=sb=Ou=Tu=Xa=0,di=Nh=null,ub=!1,(u&8)!==0&&(u|=u&32);var v=o.entangledLanes;if(v!==0)for(o=o.entanglements,v&=u;0<v;){var w=31-ht(v),R=1<<w;u|=o[w],v&=~R}return Ms=u,Go(),d}function Qf(o,u){hn=null,k.H=wh,u===dc||u===Rf?(u=Lp(),Fn=3):u===sh?(u=Lp(),Fn=4):Fn=u===Fy?8:u!==null&&typeof u=="object"&&typeof u.then=="function"?6:1,Pi=u,_n===null&&(Xa=1,Sc(o,Ji(u,o.current)))}function db(){var o=k.H;return k.H=wh,o===null?wh:o}function ax(){var o=k.A;return k.A=ex,o}function Mu(){Xa=4,As||(Pn&4194048)!==Pn&&or.current!==null||(wu=!0),(Tu&134217727)===0&&(Ou&134217727)===0||fa===null||_s(fa,Pn,gr,!1)}function Oc(o,u,d){var v=Jn;Jn|=2;var w=db(),R=ax();(fa!==o||Pn!==u)&&(dg=null,ll(o,u)),u=!1;var B=Xa;e:do try{if(Fn!==0&&_n!==null){var W=_n,se=Pi;switch(Fn){case 8:Kf(),B=6;break e;case 3:case 2:case 9:case 6:or.current===null&&(u=!0);var xe=Fn;if(Fn=0,Pi=null,Rc(o,W,se,xe),d&&wu){B=0;break e}break;default:xe=Fn,Fn=0,Pi=null,Rc(o,W,se,xe)}}rx(),B=Xa;break}catch(qe){Qf(o,qe)}while(!0);return u&&o.shellSuspendCounter++,Ko=gs=null,Jn=v,k.H=w,k.A=R,_n===null&&(fa=null,Pn=0,Go()),B}function rx(){for(;_n!==null;)vg(_n)}function gg(o,u){var d=Jn;Jn|=2;var v=db(),w=ax();fa!==o||Pn!==u?(dg=null,fg=_e()+500,ll(o,u)):wu=lt(o,u);e:do try{if(Fn!==0&&_n!==null){u=_n;var R=Pi;t:switch(Fn){case 1:Fn=0,Pi=null,Rc(o,u,R,1);break;case 2:case 9:if(fy(R)){Fn=0,Pi=null,mb(u);break}u=function(){Fn!==2&&Fn!==9||fa!==o||(Fn=7),sl(o)},R.then(u,u);break e;case 3:Fn=7;break e;case 4:Fn=5;break e;case 7:fy(R)?(Fn=0,Pi=null,mb(u)):(Fn=0,Pi=null,Rc(o,u,R,7));break;case 5:var B=null;switch(_n.tag){case 26:B=_n.memoizedState;case 5:case 27:var W=_n;if(!B||Mb(B)){Fn=0,Pi=null;var se=W.sibling;if(se!==null)_n=se;else{var xe=W.return;xe!==null?(_n=xe,yg(xe)):_n=null}break t}}Fn=0,Pi=null,Rc(o,u,R,5);break;case 6:Fn=0,Pi=null,Rc(o,u,R,6);break;case 8:Kf(),Xa=6;break e;default:throw Error(r(462))}}hb();break}catch(qe){Qf(o,qe)}while(!0);return Ko=gs=null,k.H=v,k.A=w,Jn=d,_n!==null?0:(fa=null,Pn=0,Go(),Xa)}function hb(){for(;_n!==null&&!be();)vg(_n)}function vg(o){var u=Zy(o.alternate,o,Ms);o.memoizedProps=o.pendingProps,u===null?yg(o):_n=u}function mb(o){var u=o,d=u.alternate;switch(u.tag){case 15:case 0:u=Gy(d,u,u.pendingProps,u.type,void 0,Pn);break;case 11:u=Gy(d,u,u.pendingProps,u.type.render,u.ref,Pn);break;case 5:$f(u);default:XC(d,u),u=_n=Mp(u,Ms),u=Zy(d,u,Ms)}o.memoizedProps=o.pendingProps,u===null?yg(o):_n=u}function Rc(o,u,d,v){Ko=gs=null,$f(u),ji=null,Vf=0;var w=u.return;try{if(no(o,w,u,d,Pn)){Xa=1,Sc(o,Ji(d,o.current)),_n=null;return}}catch(R){if(w!==null)throw _n=w,R;Xa=1,Sc(o,Ji(d,o.current)),_n=null;return}u.flags&32768?(bn||v===1?o=!0:wu||(Pn&536870912)!==0?o=!1:(As=o=!0,(v===2||v===9||v===3||v===6)&&(v=or.current,v!==null&&v.tag===13&&(v.flags|=16384))),pb(u,o)):yg(u)}function yg(o){var u=o;do{if((u.flags&32768)!==0){pb(u,As);return}o=u.return;var d=ca(u.alternate,u,Ms);if(d!==null){_n=d;return}if(u=u.sibling,u!==null){_n=u;return}_n=u=o}while(u!==null);Xa===0&&(Xa=5)}function pb(o,u){do{var d=Qy(o.alternate,o);if(d!==null){d.flags&=32767,_n=d;return}if(d=o.return,d!==null&&(d.flags|=32768,d.subtreeFlags=0,d.deletions=null),!u&&(o=o.sibling,o!==null)){_n=o;return}_n=o=d}while(o!==null);Xa=6,_n=null}function ix(o,u,d,v,w,R,B,W,se){o.cancelPendingCommit=null;do Sg();while(Ir!==0);if((Jn&6)!==0)throw Error(r(327));if(u!==null){if(u===o.current)throw Error(r(177));if(R=u.lanes|u.childLanes,R|=Jd,Ft(o,d,R,B,W,se),o===fa&&(_n=fa=null,Pn=0),Au=u,Ru=o,Xf=d,Ui=R,hg=w,fb=v,(u.subtreeFlags&10256)!==0||(u.flags&10256)!==0?(o.callbackNode=null,o.callbackPriority=0,iA(We,function(){return sx(),null})):(o.callbackNode=null,o.callbackPriority=0),v=(u.flags&13878)!==0,(u.subtreeFlags&13878)!==0||v){v=k.T,k.T=null,w=X.p,X.p=2,B=Jn,Jn|=4;try{QC(o,u,d)}finally{Jn=B,X.p=w,k.T=v}}Ir=1,ox(),lx(),zh()}}function ox(){if(Ir===1){Ir=0;var o=Ru,u=Au,d=(u.flags&13878)!==0;if((u.subtreeFlags&13878)!==0||d){d=k.T,k.T=null;var v=X.p;X.p=2;var w=Jn;Jn|=4;try{Gf(u,o);var R=Ih,B=Kd(o.containerInfo),W=R.focusedElem,se=R.selectionRange;if(B!==W&&W&&W.ownerDocument&&Ea(W.ownerDocument.documentElement,W)){if(se!==null&&wp(W)){var xe=se.start,qe=se.end;if(qe===void 0&&(qe=xe),"selectionStart"in W)W.selectionStart=xe,W.selectionEnd=Math.min(qe,W.value.length);else{var Ze=W.ownerDocument||document,Te=Ze&&Ze.defaultView||window;if(Te.getSelection){var Ne=Te.getSelection(),en=W.textContent.length,Yt=Math.min(se.start,en),Wn=se.end===void 0?Yt:Math.min(se.end,en);!Ne.extend&&Yt>Wn&&(B=Wn,Wn=Yt,Yt=B);var Se=lu(W,Yt),ve=lu(W,Wn);if(Se&&ve&&(Ne.rangeCount!==1||Ne.anchorNode!==Se.node||Ne.anchorOffset!==Se.offset||Ne.focusNode!==ve.node||Ne.focusOffset!==ve.offset)){var Ee=Ze.createRange();Ee.setStart(Se.node,Se.offset),Ne.removeAllRanges(),Yt>Wn?(Ne.addRange(Ee),Ne.extend(ve.node,ve.offset)):(Ee.setEnd(ve.node,ve.offset),Ne.addRange(Ee))}}}}for(Ze=[],Ne=W;Ne=Ne.parentNode;)Ne.nodeType===1&&Ze.push({element:Ne,left:Ne.scrollLeft,top:Ne.scrollTop});for(typeof W.focus=="function"&&W.focus(),W=0;W<Ze.length;W++){var Xe=Ze[W];Xe.element.scrollLeft=Xe.left,Xe.element.scrollTop=Xe.top}}Wh=!!Sb,Ih=Sb=null}finally{Jn=w,X.p=v,k.T=d}}o.current=u,Ir=2}}function lx(){if(Ir===2){Ir=0;var o=Ru,u=Au,d=(u.flags&8772)!==0;if((u.subtreeFlags&8772)!==0||d){d=k.T,k.T=null;var v=X.p;X.p=2;var w=Jn;Jn|=4;try{ug(o,u.alternate,u)}finally{Jn=w,X.p=v,k.T=d}}Ir=3}}function zh(){if(Ir===4||Ir===3){Ir=0,Ce();var o=Ru,u=Au,d=Xf,v=fb;(u.subtreeFlags&10256)!==0||(u.flags&10256)!==0?Ir=5:(Ir=0,Au=Ru=null,bg(o,o.pendingLanes));var w=o.pendingLanes;if(w===0&&(Ml=null),vt(d),u=u.stateNode,At&&typeof At.onCommitFiberRoot=="function")try{At.onCommitFiberRoot(wt,u,void 0,(u.current.flags&128)===128)}catch{}if(v!==null){u=k.T,w=X.p,X.p=2,k.T=null;try{for(var R=o.onRecoverableError,B=0;B<v.length;B++){var W=v[B];R(W.value,{componentStack:W.stack})}}finally{k.T=u,X.p=w}}(Xf&3)!==0&&Sg(),sl(o),w=o.pendingLanes,(d&4194090)!==0&&(w&42)!==0?o===mg?Wf++:(Wf=0,mg=o):Wf=0,Ds(0)}}function bg(o,u){(o.pooledCacheLanes&=u)===0&&(u=o.pooledCache,u!=null&&(o.pooledCache=null,mu(u)))}function Sg(o){return ox(),lx(),zh(),sx()}function sx(){if(Ir!==5)return!1;var o=Ru,u=Ui;Ui=0;var d=vt(Xf),v=k.T,w=X.p;try{X.p=32>d?32:d,k.T=null,d=hg,hg=null;var R=Ru,B=Xf;if(Ir=0,Au=Ru=null,Xf=0,(Jn&6)!==0)throw Error(r(331));var W=Jn;if(Jn|=4,cg(R.current),Rs(R,R.current,B,d),Jn=W,Ds(0,!1),At&&typeof At.onPostCommitFiberRoot=="function")try{At.onPostCommitFiberRoot(wt,R)}catch{}return!0}finally{X.p=w,k.T=v,bg(o,u)}}function gb(o,u,d){u=Ji(d,u),u=eg(o.stateNode,u,2),o=Ni(o,u,2),o!==null&&(ft(o,2),sl(o))}function da(o,u,d){if(o.tag===3)gb(o,o,d);else for(;u!==null;){if(u.tag===3){gb(u,o,d);break}else if(u.tag===1){var v=u.stateNode;if(typeof u.type.getDerivedStateFromError=="function"||typeof v.componentDidCatch=="function"&&(Ml===null||!Ml.has(v))){o=Ji(d,o),d=kC(2),v=Ni(u,d,2),v!==null&&(Iy(d,v,u,o),ft(v,2),sl(v));break}}u=u.return}}function jh(o,u,d){var v=o.pingCache;if(v===null){v=o.pingCache=new ob;var w=new Set;v.set(u,w)}else w=v.get(u),w===void 0&&(w=new Set,v.set(u,w));w.has(d)||(lb=!0,w.add(d),o=ux.bind(null,o,u,d),u.then(o,o))}function ux(o,u,d){var v=o.pingCache;v!==null&&v.delete(u),o.pingedLanes|=o.suspendedLanes&d,o.warmLanes&=~d,fa===o&&(Pn&d)===d&&(Xa===4||Xa===3&&(Pn&62914560)===Pn&&300>_e()-cb?(Jn&2)===0&&ll(o,0):sb|=d,Yf===Pn&&(Yf=0)),sl(o)}function Cg(o,u){u===0&&(u=Qe()),o=hs(o,u),o!==null&&(ft(o,u),sl(o))}function cx(o){var u=o.memoizedState,d=0;u!==null&&(d=u.retryLane),Cg(o,d)}function rA(o,u){var d=0;switch(o.tag){case 13:var v=o.stateNode,w=o.memoizedState;w!==null&&(d=w.retryLane);break;case 19:v=o.stateNode;break;case 22:v=o.stateNode._retryCache;break;default:throw Error(r(314))}v!==null&&v.delete(u),Cg(o,d)}function iA(o,u){return Re(o,u)}var xg=null,Jf=null,Lh=!1,ed=!1,Vh=!1,_u=0;function sl(o){o!==Jf&&o.next===null&&(Jf===null?xg=Jf=o:Jf=Jf.next=o),ed=!0,Lh||(Lh=!0,Eg())}function Ds(o,u){if(!Vh&&ed){Vh=!0;do for(var d=!1,v=xg;v!==null;){if(o!==0){var w=v.pendingLanes;if(w===0)var R=0;else{var B=v.suspendedLanes,W=v.pingedLanes;R=(1<<31-ht(42|o)+1)-1,R&=w&~(B&~W),R=R&201326741?R&201326741|1:R?R|2:0}R!==0&&(d=!0,fx(v,R))}else R=Pn,R=et(v,v===fa?R:0,v.cancelPendingCommit!==null||v.timeoutHandle!==-1),(R&3)===0||lt(v,R)||(d=!0,fx(v,R));v=v.next}while(d);Vh=!1}}function oA(){vb()}function vb(){ed=Lh=!1;var o=0;_u!==0&&(Dg()&&(o=_u),_u=0);for(var u=_e(),d=null,v=xg;v!==null;){var w=v.next,R=Hh(v,u);R===0?(v.next=null,d===null?xg=w:d.next=w,w===null&&(Jf=d)):(d=v,(o!==0||(R&3)!==0)&&(ed=!0)),v=w}Ds(o)}function Hh(o,u){for(var d=o.suspendedLanes,v=o.pingedLanes,w=o.expirationTimes,R=o.pendingLanes&-62914561;0<R;){var B=31-ht(R),W=1<<B,se=w[B];se===-1?((W&d)===0||(W&v)!==0)&&(w[B]=I(W,u)):se<=u&&(o.expiredLanes|=W),R&=~W}if(u=fa,d=Pn,d=et(o,o===u?d:0,o.cancelPendingCommit!==null||o.timeoutHandle!==-1),v=o.callbackNode,d===0||o===u&&(Fn===2||Fn===9)||o.cancelPendingCommit!==null)return v!==null&&v!==null&&Pe(v),o.callbackNode=null,o.callbackPriority=0;if((d&3)===0||lt(o,d)){if(u=d&-d,u===o.callbackPriority)return u;switch(v!==null&&Pe(v),vt(d)){case 2:case 8:d=nt;break;case 32:d=We;break;case 268435456:d=rt;break;default:d=We}return v=yb.bind(null,o),d=Re(d,v),o.callbackPriority=u,o.callbackNode=d,u}return v!==null&&v!==null&&Pe(v),o.callbackPriority=2,o.callbackNode=null,2}function yb(o,u){if(Ir!==0&&Ir!==5)return o.callbackNode=null,o.callbackPriority=0,null;var d=o.callbackNode;if(Sg()&&o.callbackNode!==d)return null;var v=Pn;return v=et(o,o===fa?v:0,o.cancelPendingCommit!==null||o.timeoutHandle!==-1),v===0?null:(nx(o,v,u),Hh(o,_e()),o.callbackNode!=null&&o.callbackNode===d?yb.bind(null,o):null)}function fx(o,u){if(Sg())return null;nx(o,u,!0)}function Eg(){uA(function(){(Jn&6)!==0?Re(Ue,oA):vb()})}function wg(){return _u===0&&(_u=he()),_u}function td(o){return o==null||typeof o=="symbol"||typeof o=="boolean"?null:typeof o=="function"?o:Er(""+o)}function Tg(o,u){var d=u.ownerDocument.createElement("input");return d.name=u.name,d.value=u.value,o.id&&d.setAttribute("form",o.id),u.parentNode.insertBefore(d,u),o=new FormData(o),d.parentNode.removeChild(d),o}function Og(o,u,d,v,w){if(u==="submit"&&d&&d.stateNode===w){var R=td((w[ct]||null).action),B=v.submitter;B&&(u=(u=B[ct]||null)?td(u.formAction):B.getAttribute("formAction"),u!==null&&(R=u,B=null));var W=new Gd("action","action",null,v,w);o.push({event:W,listeners:[{instance:null,listener:function(){if(v.defaultPrevented){if(_u!==0){var se=B?Tg(w,B):new FormData(w);Dy(d,{pending:!0,data:se,method:w.method,action:R},null,se)}}else typeof R=="function"&&(W.preventDefault(),se=B?Tg(w,B):new FormData(w),Dy(d,{pending:!0,data:se,method:w.method,action:R},R,se))},currentTarget:w}]})}}for(var Rg=0;Rg<Rp.length;Rg++){var Wa=Rp[Rg],bb=Wa.toLowerCase(),lA=Wa[0].toUpperCase()+Wa.slice(1);Ai(bb,"on"+lA)}Ai(Qd,"onAnimationEnd"),Ai($C,"onAnimationIteration"),Ai(ty,"onAnimationStart"),Ai("dblclick","onDoubleClick"),Ai("focusin","onFocus"),Ai("focusout","onBlur"),Ai(eA,"onTransitionRun"),Ai(ny,"onTransitionStart"),Ai(Op,"onTransitionCancel"),Ai(ay,"onTransitionEnd"),pt("onMouseEnter",["mouseout","mouseover"]),pt("onMouseLeave",["mouseout","mouseover"]),pt("onPointerEnter",["pointerout","pointerover"]),pt("onPointerLeave",["pointerout","pointerover"]),nn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),nn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),nn("onBeforeInput",["compositionend","keypress","textInput","paste"]),nn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),nn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),nn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var un="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(" "),sA=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(un));function Ns(o,u){u=(u&4)!==0;for(var d=0;d<o.length;d++){var v=o[d],w=v.event;v=v.listeners;e:{var R=void 0;if(u)for(var B=v.length-1;0<=B;B--){var W=v[B],se=W.instance,xe=W.currentTarget;if(W=W.listener,se!==R&&w.isPropagationStopped())break e;R=W,w.currentTarget=xe;try{R(w)}catch(qe){Rh(qe)}w.currentTarget=null,R=se}else for(B=0;B<v.length;B++){if(W=v[B],se=W.instance,xe=W.currentTarget,W=W.listener,se!==R&&w.isPropagationStopped())break e;R=W,w.currentTarget=xe;try{R(w)}catch(qe){Rh(qe)}w.currentTarget=null,R=se}}}}function mn(o,u){var d=u[gt];d===void 0&&(d=u[gt]=new Set);var v=o+"__bubble";d.has(v)||(dx(u,o,2,!1),d.add(v))}function Du(o,u,d){var v=0;u&&(v|=4),dx(d,o,v,u)}var Ac="_reactListening"+Math.random().toString(36).slice(2);function Bh(o){if(!o[Ac]){o[Ac]=!0,nr.forEach(function(d){d!=="selectionchange"&&(sA.has(d)||Du(d,!1,o),Du(d,!0,o))});var u=o.nodeType===9?o:o.ownerDocument;u===null||u[Ac]||(u[Ac]=!0,Du("selectionchange",!1,u))}}function dx(o,u,d,v){switch(Ex(u)){case 2:var w=Cx;break;case 8:w=xx;break;default:w=Bg}d=w.bind(null,u,d,o),w=void 0,!Qt||u!=="touchstart"&&u!=="touchmove"&&u!=="wheel"||(w=!0),v?w!==void 0?o.addEventListener(u,d,{capture:!0,passive:w}):o.addEventListener(u,d,!0):w!==void 0?o.addEventListener(u,d,{passive:w}):o.addEventListener(u,d,!1)}function Ph(o,u,d,v,w){var R=v;if((u&1)===0&&(u&2)===0&&v!==null)e:for(;;){if(v===null)return;var B=v.tag;if(B===3||B===4){var W=v.stateNode.containerInfo;if(W===w)break;if(B===4)for(B=v.return;B!==null;){var se=B.tag;if((se===3||se===4)&&B.stateNode.containerInfo===w)return;B=B.return}for(;W!==null;){if(B=On(W),B===null)return;if(se=B.tag,se===5||se===6||se===26||se===27){v=R=B;continue e}W=W.parentNode}}v=v.return}uf(function(){var xe=R,qe=Zi(d),Ze=[];e:{var Te=ry.get(o);if(Te!==void 0){var Ne=Gd,en=o;switch(o){case"keypress":if(au(d)===0)break e;case"keydown":case"keyup":Ne=tc;break;case"focusin":en="focus",Ne=I0;break;case"focusout":en="blur",Ne=I0;break;case"beforeblur":case"afterblur":Ne=I0;break;case"click":if(d.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Ne=Yd;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Ne=TC;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Ne=gp;break;case Qd:case $C:case ty:Ne=ZR;break;case ay:Ne=Ri;break;case"scroll":case"scrollend":Ne=XR;break;case"wheel":Ne=vp;break;case"copy":case"cut":case"paste":Ne=QR;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Ne=Oi;break;case"toggle":case"beforetoggle":Ne=q0}var Yt=(u&4)!==0,Wn=!Yt&&(o==="scroll"||o==="scrollend"),Se=Yt?Te!==null?Te+"Capture":null:Te;Yt=[];for(var ve=xe,Ee;ve!==null;){var Xe=ve;if(Ee=Xe.stateNode,Xe=Xe.tag,Xe!==5&&Xe!==26&&Xe!==27||Ee===null||Se===null||(Xe=Ki(ve,Se),Xe!=null&&Yt.push(Fi(ve,Xe,Ee))),Wn)break;ve=ve.return}0<Yt.length&&(Te=new Ne(Te,en,null,d,qe),Ze.push({event:Te,listeners:Yt}))}}if((u&7)===0){e:{if(Te=o==="mouseover"||o==="pointerover",Ne=o==="mouseout"||o==="pointerout",Te&&d!==Uo&&(en=d.relatedTarget||d.fromElement)&&(On(en)||en[tt]))break e;if((Ne||Te)&&(Te=qe.window===qe?qe:(Te=qe.ownerDocument)?Te.defaultView||Te.parentWindow:window,Ne?(en=d.relatedTarget||d.toElement,Ne=xe,en=en?On(en):null,en!==null&&(Wn=c(en),Yt=en.tag,en!==Wn||Yt!==5&&Yt!==27&&Yt!==6)&&(en=null)):(Ne=null,en=xe),Ne!==en)){if(Yt=Yd,Xe="onMouseLeave",Se="onMouseEnter",ve="mouse",(o==="pointerout"||o==="pointerover")&&(Yt=Oi,Xe="onPointerLeave",Se="onPointerEnter",ve="pointer"),Wn=Ne==null?Te:zn(Ne),Ee=en==null?Te:zn(en),Te=new Yt(Xe,ve+"leave",Ne,d,qe),Te.target=Wn,Te.relatedTarget=Ee,Xe=null,On(qe)===xe&&(Yt=new Yt(Se,ve+"enter",en,d,qe),Yt.target=Ee,Yt.relatedTarget=Wn,Xe=Yt),Wn=Xe,Ne&&en)t:{for(Yt=Ne,Se=en,ve=0,Ee=Yt;Ee;Ee=$u(Ee))ve++;for(Ee=0,Xe=Se;Xe;Xe=$u(Xe))Ee++;for(;0<ve-Ee;)Yt=$u(Yt),ve--;for(;0<Ee-ve;)Se=$u(Se),Ee--;for(;ve--;){if(Yt===Se||Se!==null&&Yt===Se.alternate)break t;Yt=$u(Yt),Se=$u(Se)}Yt=null}else Yt=null;Ne!==null&&Ag(Ze,Te,Ne,Yt,!1),en!==null&&Wn!==null&&Ag(Ze,Wn,en,Yt,!0)}}e:{if(Te=xe?zn(xe):window,Ne=Te.nodeName&&Te.nodeName.toLowerCase(),Ne==="select"||Ne==="input"&&Te.type==="file")var Lt=iu;else if(Z0(Te))if(K0)Lt=cs;else{Lt=Ep;var Sn=NC}else Ne=Te.nodeName,!Ne||Ne.toLowerCase()!=="input"||Te.type!=="checkbox"&&Te.type!=="radio"?xe&&Fa(xe.elementType)&&(Lt=iu):Lt=ou;if(Lt&&(Lt=Lt(o,xe))){Cp(Ze,Lt,d,qe);break e}Sn&&Sn(o,Te,xe),o==="focusout"&&xe&&Te.type==="number"&&xe.memoizedProps.value!=null&&ea(Te,"number",Te.value)}switch(Sn=xe?zn(xe):window,o){case"focusin":(Z0(Sn)||Sn.contentEditable==="true")&&(Co=Sn,sc=xe,Qi=null);break;case"focusout":Qi=sc=Co=null;break;case"mousedown":mf=!0;break;case"contextmenu":case"mouseup":case"dragend":mf=!1,pf(Ze,d,qe);break;case"selectionchange":if(ey)break;case"keydown":case"keyup":pf(Ze,d,qe)}var qt;if(yp)e:{switch(o){case"compositionstart":var tn="onCompositionStart";break e;case"compositionend":tn="onCompositionEnd";break e;case"compositionupdate":tn="onCompositionUpdate";break e}tn=void 0}else So?Sp(o,d)&&(tn="onCompositionEnd"):o==="keydown"&&d.keyCode===229&&(tn="onCompositionStart");tn&&(bp&&d.locale!=="ko"&&(So||tn!=="onCompositionStart"?tn==="onCompositionEnd"&&So&&(qt=us()):(Bn=qe,ya="value"in Bn?Bn.value:Bn.textContent,So=!0)),Sn=Nu(xe,tn),0<Sn.length&&(tn=new F0(tn,o,null,d,qe),Ze.push({event:tn,listeners:Sn}),qt?tn.data=qt:(qt=Wd(d),qt!==null&&(tn.data=qt)))),(qt=JR?X0(o,d):W0(o,d))&&(tn=Nu(xe,"onBeforeInput"),0<tn.length&&(Sn=new F0("onBeforeInput","beforeinput",null,d,qe),Ze.push({event:Sn,listeners:tn}),Sn.data=qt)),Og(Ze,o,xe,d,qe)}Ns(Ze,u)})}function Fi(o,u,d){return{instance:o,listener:u,currentTarget:d}}function Nu(o,u){for(var d=u+"Capture",v=[];o!==null;){var w=o,R=w.stateNode;if(w=w.tag,w!==5&&w!==26&&w!==27||R===null||(w=Ki(o,d),w!=null&&v.unshift(Fi(o,w,R)),w=Ki(o,u),w!=null&&v.push(Fi(o,w,R))),o.tag===3)return v;o=o.return}return[]}function $u(o){if(o===null)return null;do o=o.return;while(o&&o.tag!==5&&o.tag!==27);return o||null}function Ag(o,u,d,v,w){for(var R=u._reactName,B=[];d!==null&&d!==v;){var W=d,se=W.alternate,xe=W.stateNode;if(W=W.tag,se!==null&&se===v)break;W!==5&&W!==26&&W!==27||xe===null||(se=xe,w?(xe=Ki(d,R),xe!=null&&B.unshift(Fi(d,xe,se))):w||(xe=Ki(d,R),xe!=null&&B.push(Fi(d,xe,se)))),d=d.return}B.length!==0&&o.push({event:u,listeners:B})}var Mg=/\r\n?/g,oo=/\u0000|\uFFFD/g;function _g(o){return(typeof o=="string"?o:""+o).replace(Mg,`
|
|
102
|
+
`).replace(oo,"")}function hx(o,u){return u=_g(u),_g(o)===u}function Uh(){}function ha(o,u,d,v,w,R){switch(d){case"children":typeof v=="string"?u==="body"||u==="textarea"&&v===""||ar(o,v):(typeof v=="number"||typeof v=="bigint")&&u!=="body"&&ar(o,""+v);break;case"className":sa(o,"class",v);break;case"tabIndex":sa(o,"tabindex",v);break;case"dir":case"role":case"viewBox":case"width":case"height":sa(o,d,v);break;case"style":Wi(o,v,R);break;case"data":if(u!=="object"){sa(o,"data",v);break}case"src":case"href":if(v===""&&(u!=="a"||d!=="href")){o.removeAttribute(d);break}if(v==null||typeof v=="function"||typeof v=="symbol"||typeof v=="boolean"){o.removeAttribute(d);break}v=Er(""+v),o.setAttribute(d,v);break;case"action":case"formAction":if(typeof v=="function"){o.setAttribute(d,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof R=="function"&&(d==="formAction"?(u!=="input"&&ha(o,u,"name",w.name,w,null),ha(o,u,"formEncType",w.formEncType,w,null),ha(o,u,"formMethod",w.formMethod,w,null),ha(o,u,"formTarget",w.formTarget,w,null)):(ha(o,u,"encType",w.encType,w,null),ha(o,u,"method",w.method,w,null),ha(o,u,"target",w.target,w,null)));if(v==null||typeof v=="symbol"||typeof v=="boolean"){o.removeAttribute(d);break}v=Er(""+v),o.setAttribute(d,v);break;case"onClick":v!=null&&(o.onclick=Uh);break;case"onScroll":v!=null&&mn("scroll",o);break;case"onScrollEnd":v!=null&&mn("scrollend",o);break;case"dangerouslySetInnerHTML":if(v!=null){if(typeof v!="object"||!("__html"in v))throw Error(r(61));if(d=v.__html,d!=null){if(w.children!=null)throw Error(r(60));o.innerHTML=d}}break;case"multiple":o.multiple=v&&typeof v!="function"&&typeof v!="symbol";break;case"muted":o.muted=v&&typeof v!="function"&&typeof v!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(v==null||typeof v=="function"||typeof v=="boolean"||typeof v=="symbol"){o.removeAttribute("xlink:href");break}d=Er(""+v),o.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",d);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":v!=null&&typeof v!="function"&&typeof v!="symbol"?o.setAttribute(d,""+v):o.removeAttribute(d);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":v&&typeof v!="function"&&typeof v!="symbol"?o.setAttribute(d,""):o.removeAttribute(d);break;case"capture":case"download":v===!0?o.setAttribute(d,""):v!==!1&&v!=null&&typeof v!="function"&&typeof v!="symbol"?o.setAttribute(d,v):o.removeAttribute(d);break;case"cols":case"rows":case"size":case"span":v!=null&&typeof v!="function"&&typeof v!="symbol"&&!isNaN(v)&&1<=v?o.setAttribute(d,v):o.removeAttribute(d);break;case"rowSpan":case"start":v==null||typeof v=="function"||typeof v=="symbol"||isNaN(v)?o.removeAttribute(d):o.setAttribute(d,v);break;case"popover":mn("beforetoggle",o),mn("toggle",o),Qa(o,"popover",v);break;case"xlinkActuate":ga(o,"http://www.w3.org/1999/xlink","xlink:actuate",v);break;case"xlinkArcrole":ga(o,"http://www.w3.org/1999/xlink","xlink:arcrole",v);break;case"xlinkRole":ga(o,"http://www.w3.org/1999/xlink","xlink:role",v);break;case"xlinkShow":ga(o,"http://www.w3.org/1999/xlink","xlink:show",v);break;case"xlinkTitle":ga(o,"http://www.w3.org/1999/xlink","xlink:title",v);break;case"xlinkType":ga(o,"http://www.w3.org/1999/xlink","xlink:type",v);break;case"xmlBase":ga(o,"http://www.w3.org/XML/1998/namespace","xml:base",v);break;case"xmlLang":ga(o,"http://www.w3.org/XML/1998/namespace","xml:lang",v);break;case"xmlSpace":ga(o,"http://www.w3.org/XML/1998/namespace","xml:space",v);break;case"is":Qa(o,"is",v);break;case"innerText":case"textContent":break;default:(!(2<d.length)||d[0]!=="o"&&d[0]!=="O"||d[1]!=="n"&&d[1]!=="N")&&(d=Po.get(d)||d,Qa(o,d,v))}}function vr(o,u,d,v,w,R){switch(d){case"style":Wi(o,v,R);break;case"dangerouslySetInnerHTML":if(v!=null){if(typeof v!="object"||!("__html"in v))throw Error(r(61));if(d=v.__html,d!=null){if(w.children!=null)throw Error(r(60));o.innerHTML=d}}break;case"children":typeof v=="string"?ar(o,v):(typeof v=="number"||typeof v=="bigint")&&ar(o,""+v);break;case"onScroll":v!=null&&mn("scroll",o);break;case"onScrollEnd":v!=null&&mn("scrollend",o);break;case"onClick":v!=null&&(o.onclick=Uh);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Un.hasOwnProperty(d))e:{if(d[0]==="o"&&d[1]==="n"&&(w=d.endsWith("Capture"),u=d.slice(2,w?d.length-7:void 0),R=o[ct]||null,R=R!=null?R[d]:null,typeof R=="function"&&o.removeEventListener(u,R,w),typeof v=="function")){typeof R!="function"&&R!==null&&(d in o?o[d]=null:o.hasAttribute(d)&&o.removeAttribute(d)),o.addEventListener(u,v,w);break e}d in o?o[d]=v:v===!0?o.setAttribute(d,""):Qa(o,d,v)}}}function Me(o,u,d){switch(u){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":mn("error",o),mn("load",o);var v=!1,w=!1,R;for(R in d)if(d.hasOwnProperty(R)){var B=d[R];if(B!=null)switch(R){case"src":v=!0;break;case"srcSet":w=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,u));default:ha(o,u,R,B,d,null)}}w&&ha(o,u,"srcSet",d.srcSet,d,null),v&&ha(o,u,"src",d.src,d,null);return;case"input":mn("invalid",o);var W=R=B=w=null,se=null,xe=null;for(v in d)if(d.hasOwnProperty(v)){var qe=d[v];if(qe!=null)switch(v){case"name":w=qe;break;case"type":B=qe;break;case"checked":se=qe;break;case"defaultChecked":xe=qe;break;case"value":R=qe;break;case"defaultValue":W=qe;break;case"children":case"dangerouslySetInnerHTML":if(qe!=null)throw Error(r(137,u));break;default:ha(o,u,v,qe,d,null)}}Ia(o,R,W,se,xe,B,w,!1),Vr(o);return;case"select":mn("invalid",o),v=B=R=null;for(w in d)if(d.hasOwnProperty(w)&&(W=d[w],W!=null))switch(w){case"value":R=W;break;case"defaultValue":B=W;break;case"multiple":v=W;default:ha(o,u,w,W,d,null)}u=R,d=B,o.multiple=!!v,u!=null?Kn(o,!!v,u,!1):d!=null&&Kn(o,!!v,d,!0);return;case"textarea":mn("invalid",o),R=w=v=null;for(B in d)if(d.hasOwnProperty(B)&&(W=d[B],W!=null))switch(B){case"value":v=W;break;case"defaultValue":w=W;break;case"children":R=W;break;case"dangerouslySetInnerHTML":if(W!=null)throw Error(r(91));break;default:ha(o,u,B,W,d,null)}xr(o,v,w,R),Vr(o);return;case"option":for(se in d)if(d.hasOwnProperty(se)&&(v=d[se],v!=null))switch(se){case"selected":o.selected=v&&typeof v!="function"&&typeof v!="symbol";break;default:ha(o,u,se,v,d,null)}return;case"dialog":mn("beforetoggle",o),mn("toggle",o),mn("cancel",o),mn("close",o);break;case"iframe":case"object":mn("load",o);break;case"video":case"audio":for(v=0;v<un.length;v++)mn(un[v],o);break;case"image":mn("error",o),mn("load",o);break;case"details":mn("toggle",o);break;case"embed":case"source":case"link":mn("error",o),mn("load",o);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(xe in d)if(d.hasOwnProperty(xe)&&(v=d[xe],v!=null))switch(xe){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,u));default:ha(o,u,xe,v,d,null)}return;default:if(Fa(u)){for(qe in d)d.hasOwnProperty(qe)&&(v=d[qe],v!==void 0&&vr(o,u,qe,v,d,void 0));return}}for(W in d)d.hasOwnProperty(W)&&(v=d[W],v!=null&&ha(o,u,W,v,d,null))}function Xn(o,u,d,v){switch(u){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var w=null,R=null,B=null,W=null,se=null,xe=null,qe=null;for(Ne in d){var Ze=d[Ne];if(d.hasOwnProperty(Ne)&&Ze!=null)switch(Ne){case"checked":break;case"value":break;case"defaultValue":se=Ze;default:v.hasOwnProperty(Ne)||ha(o,u,Ne,null,v,Ze)}}for(var Te in v){var Ne=v[Te];if(Ze=d[Te],v.hasOwnProperty(Te)&&(Ne!=null||Ze!=null))switch(Te){case"type":R=Ne;break;case"name":w=Ne;break;case"checked":xe=Ne;break;case"defaultChecked":qe=Ne;break;case"value":B=Ne;break;case"defaultValue":W=Ne;break;case"children":case"dangerouslySetInnerHTML":if(Ne!=null)throw Error(r(137,u));break;default:Ne!==Ze&&ha(o,u,Te,Ne,v,Ze)}}La(o,B,W,se,xe,qe,R,w);return;case"select":Ne=B=W=Te=null;for(R in d)if(se=d[R],d.hasOwnProperty(R)&&se!=null)switch(R){case"value":break;case"multiple":Ne=se;default:v.hasOwnProperty(R)||ha(o,u,R,null,v,se)}for(w in v)if(R=v[w],se=d[w],v.hasOwnProperty(w)&&(R!=null||se!=null))switch(w){case"value":Te=R;break;case"defaultValue":W=R;break;case"multiple":B=R;default:R!==se&&ha(o,u,w,R,v,se)}u=W,d=B,v=Ne,Te!=null?Kn(o,!!d,Te,!1):!!v!=!!d&&(u!=null?Kn(o,!!d,u,!0):Kn(o,!!d,d?[]:"",!1));return;case"textarea":Ne=Te=null;for(W in d)if(w=d[W],d.hasOwnProperty(W)&&w!=null&&!v.hasOwnProperty(W))switch(W){case"value":break;case"children":break;default:ha(o,u,W,null,v,w)}for(B in v)if(w=v[B],R=d[B],v.hasOwnProperty(B)&&(w!=null||R!=null))switch(B){case"value":Te=w;break;case"defaultValue":Ne=w;break;case"children":break;case"dangerouslySetInnerHTML":if(w!=null)throw Error(r(91));break;default:w!==R&&ha(o,u,B,w,v,R)}Br(o,Te,Ne);return;case"option":for(var en in d)if(Te=d[en],d.hasOwnProperty(en)&&Te!=null&&!v.hasOwnProperty(en))switch(en){case"selected":o.selected=!1;break;default:ha(o,u,en,null,v,Te)}for(se in v)if(Te=v[se],Ne=d[se],v.hasOwnProperty(se)&&Te!==Ne&&(Te!=null||Ne!=null))switch(se){case"selected":o.selected=Te&&typeof Te!="function"&&typeof Te!="symbol";break;default:ha(o,u,se,Te,v,Ne)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var Yt in d)Te=d[Yt],d.hasOwnProperty(Yt)&&Te!=null&&!v.hasOwnProperty(Yt)&&ha(o,u,Yt,null,v,Te);for(xe in v)if(Te=v[xe],Ne=d[xe],v.hasOwnProperty(xe)&&Te!==Ne&&(Te!=null||Ne!=null))switch(xe){case"children":case"dangerouslySetInnerHTML":if(Te!=null)throw Error(r(137,u));break;default:ha(o,u,xe,Te,v,Ne)}return;default:if(Fa(u)){for(var Wn in d)Te=d[Wn],d.hasOwnProperty(Wn)&&Te!==void 0&&!v.hasOwnProperty(Wn)&&vr(o,u,Wn,void 0,v,Te);for(qe in v)Te=v[qe],Ne=d[qe],!v.hasOwnProperty(qe)||Te===Ne||Te===void 0&&Ne===void 0||vr(o,u,qe,Te,v,Ne);return}}for(var Se in d)Te=d[Se],d.hasOwnProperty(Se)&&Te!=null&&!v.hasOwnProperty(Se)&&ha(o,u,Se,null,v,Te);for(Ze in v)Te=v[Ze],Ne=d[Ze],!v.hasOwnProperty(Ze)||Te===Ne||Te==null&&Ne==null||ha(o,u,Ze,Te,v,Ne)}var Sb=null,Ih=null;function nd(o){return o.nodeType===9?o:o.ownerDocument}function _l(o){switch(o){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function $s(o,u){if(o===0)switch(u){case"svg":return 1;case"math":return 2;default:return 0}return o===1&&u==="foreignObject"?0:o}function Mc(o,u){return o==="textarea"||o==="noscript"||typeof u.children=="string"||typeof u.children=="number"||typeof u.children=="bigint"||typeof u.dangerouslySetInnerHTML=="object"&&u.dangerouslySetInnerHTML!==null&&u.dangerouslySetInnerHTML.__html!=null}var Dl=null;function Dg(){var o=window.event;return o&&o.type==="popstate"?o===Dl?!1:(Dl=o,!0):(Dl=null,!1)}var Nl=typeof setTimeout=="function"?setTimeout:void 0,Cb=typeof clearTimeout=="function"?clearTimeout:void 0,mx=typeof Promise=="function"?Promise:void 0,uA=typeof queueMicrotask=="function"?queueMicrotask:typeof mx<"u"?function(o){return mx.resolve(null).then(o).catch(cA)}:Nl;function cA(o){setTimeout(function(){throw o})}function Fr(o){return o==="head"}function px(o,u){var d=u,v=0,w=0;do{var R=d.nextSibling;if(o.removeChild(d),R&&R.nodeType===8)if(d=R.data,d==="/$"){if(0<v&&8>v){d=v;var B=o.ownerDocument;if(d&1&&Ct(B.documentElement),d&2&&Ct(B.body),d&4)for(d=B.head,Ct(d),B=d.firstChild;B;){var W=B.nextSibling,se=B.nodeName;B[En]||se==="SCRIPT"||se==="STYLE"||se==="LINK"&&B.rel.toLowerCase()==="stylesheet"||d.removeChild(B),B=W}}if(w===0){o.removeChild(R),ud(u);return}w--}else d==="$"||d==="$?"||d==="$!"?w++:v=d.charCodeAt(0)-48;else v=0;d=R}while(d);ud(u)}function Fh(o){var u=o.firstChild;for(u&&u.nodeType===10&&(u=u.nextSibling);u;){var d=u;switch(u=u.nextSibling,d.nodeName){case"HTML":case"HEAD":case"BODY":Fh(d),ot(d);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(d.rel.toLowerCase()==="stylesheet")continue}o.removeChild(d)}}function xb(o,u,d,v){for(;o.nodeType===1;){var w=d;if(o.nodeName.toLowerCase()!==u.toLowerCase()){if(!v&&(o.nodeName!=="INPUT"||o.type!=="hidden"))break}else if(v){if(!o[En])switch(u){case"meta":if(!o.hasAttribute("itemprop"))break;return o;case"link":if(R=o.getAttribute("rel"),R==="stylesheet"&&o.hasAttribute("data-precedence"))break;if(R!==w.rel||o.getAttribute("href")!==(w.href==null||w.href===""?null:w.href)||o.getAttribute("crossorigin")!==(w.crossOrigin==null?null:w.crossOrigin)||o.getAttribute("title")!==(w.title==null?null:w.title))break;return o;case"style":if(o.hasAttribute("data-precedence"))break;return o;case"script":if(R=o.getAttribute("src"),(R!==(w.src==null?null:w.src)||o.getAttribute("type")!==(w.type==null?null:w.type)||o.getAttribute("crossorigin")!==(w.crossOrigin==null?null:w.crossOrigin))&&R&&o.hasAttribute("async")&&!o.hasAttribute("itemprop"))break;return o;default:return o}}else if(u==="input"&&o.type==="hidden"){var R=w.name==null?null:""+w.name;if(w.type==="hidden"&&o.getAttribute("name")===R)return o}else return o;if(o=ul(o.nextSibling),o===null)break}return null}function ad(o,u,d){if(u==="")return null;for(;o.nodeType!==3;)if((o.nodeType!==1||o.nodeName!=="INPUT"||o.type!=="hidden")&&!d||(o=ul(o.nextSibling),o===null))return null;return o}function Eb(o){return o.data==="$!"||o.data==="$?"&&o.ownerDocument.readyState==="complete"}function wb(o,u){var d=o.ownerDocument;if(o.data!=="$?"||d.readyState==="complete")u();else{var v=function(){u(),d.removeEventListener("DOMContentLoaded",v)};d.addEventListener("DOMContentLoaded",v),o._reactRetry=v}}function ul(o){for(;o!=null;o=o.nextSibling){var u=o.nodeType;if(u===1||u===3)break;if(u===8){if(u=o.data,u==="$"||u==="$!"||u==="$?"||u==="F!"||u==="F")break;if(u==="/$")return null}}return o}var Tb=null;function _c(o){o=o.previousSibling;for(var u=0;o;){if(o.nodeType===8){var d=o.data;if(d==="$"||d==="$!"||d==="$?"){if(u===0)return o;u--}else d==="/$"&&u++}o=o.previousSibling}return null}function kr(o,u,d){switch(u=nd(d),o){case"html":if(o=u.documentElement,!o)throw Error(r(452));return o;case"head":if(o=u.head,!o)throw Error(r(453));return o;case"body":if(o=u.body,!o)throw Error(r(454));return o;default:throw Error(r(451))}}function Ct(o){for(var u=o.attributes;u.length;)o.removeAttributeNode(u[0]);ot(o)}var er=new Map,_o=new Set;function Rr(o){return typeof o.getRootNode=="function"?o.getRootNode():o.nodeType===9?o:o.ownerDocument}var zs=X.d;X.d={f:fA,r:Ng,D:$l,C:Ls,L:$g,m:zu,X:ki,S:ti,M:ju};function fA(){var o=zs.f(),u=$h();return o||u}function Ng(o){var u=Jt(o);u!==null&&u.tag===5&&u.type==="form"?BC(u):zs.r(o)}var js=typeof document>"u"?null:document;function lo(o,u,d){var v=js;if(v&&typeof u=="string"&&u){var w=Gt(u);w='link[rel="'+o+'"][href="'+w+'"]',typeof d=="string"&&(w+='[crossorigin="'+d+'"]'),_o.has(w)||(_o.add(w),o={rel:o,crossOrigin:d,href:u},v.querySelector(w)===null&&(u=v.createElement("link"),Me(u,"link",o),vn(u),v.head.appendChild(u)))}}function $l(o){zs.D(o),lo("dns-prefetch",o,null)}function Ls(o,u){zs.C(o,u),lo("preconnect",o,u)}function $g(o,u,d){zs.L(o,u,d);var v=js;if(v&&o&&u){var w='link[rel="preload"][as="'+Gt(u)+'"]';u==="image"&&d&&d.imageSrcSet?(w+='[imagesrcset="'+Gt(d.imageSrcSet)+'"]',typeof d.imageSizes=="string"&&(w+='[imagesizes="'+Gt(d.imageSizes)+'"]')):w+='[href="'+Gt(o)+'"]';var R=w;switch(u){case"style":R=rd(o);break;case"script":R=Dc(o)}er.has(R)||(o=y({rel:"preload",href:u==="image"&&d&&d.imageSrcSet?void 0:o,as:u},d),er.set(R,o),v.querySelector(w)!==null||u==="style"&&v.querySelector(kh(R))||u==="script"&&v.querySelector(cl(R))||(u=v.createElement("link"),Me(u,"link",o),vn(u),v.head.appendChild(u)))}}function zu(o,u){zs.m(o,u);var d=js;if(d&&o){var v=u&&typeof u.as=="string"?u.as:"script",w='link[rel="modulepreload"][as="'+Gt(v)+'"][href="'+Gt(o)+'"]',R=w;switch(v){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":R=Dc(o)}if(!er.has(R)&&(o=y({rel:"modulepreload",href:o},u),er.set(R,o),d.querySelector(w)===null)){switch(v){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(d.querySelector(cl(R)))return}v=d.createElement("link"),Me(v,"link",o),vn(v),d.head.appendChild(v)}}}function ti(o,u,d){zs.S(o,u,d);var v=js;if(v&&o){var w=Rn(v).hoistableStyles,R=rd(o);u=u||"default";var B=w.get(R);if(!B){var W={loading:0,preload:null};if(B=v.querySelector(kh(R)))W.loading=5;else{o=y({rel:"stylesheet",href:o,"data-precedence":u},d),(d=er.get(R))&&Rb(o,d);var se=B=v.createElement("link");vn(se),Me(se,"link",o),se._p=new Promise(function(xe,qe){se.onload=xe,se.onerror=qe}),se.addEventListener("load",function(){W.loading|=1}),se.addEventListener("error",function(){W.loading|=2}),W.loading|=4,Lg(B,u,v)}B={type:"stylesheet",instance:B,count:1,state:W},w.set(R,B)}}}function ki(o,u){zs.X(o,u);var d=js;if(d&&o){var v=Rn(d).hoistableScripts,w=Dc(o),R=v.get(w);R||(R=d.querySelector(cl(w)),R||(o=y({src:o,async:!0},u),(u=er.get(w))&&Vg(o,u),R=d.createElement("script"),vn(R),Me(R,"link",o),d.head.appendChild(R)),R={type:"script",instance:R,count:1,state:null},v.set(w,R))}}function ju(o,u){zs.M(o,u);var d=js;if(d&&o){var v=Rn(d).hoistableScripts,w=Dc(o),R=v.get(w);R||(R=d.querySelector(cl(w)),R||(o=y({src:o,async:!0,type:"module"},u),(u=er.get(w))&&Vg(o,u),R=d.createElement("script"),vn(R),Me(R,"link",o),d.head.appendChild(R)),R={type:"script",instance:R,count:1,state:null},v.set(w,R))}}function zg(o,u,d,v){var w=(w=ye.current)?Rr(w):null;if(!w)throw Error(r(446));switch(o){case"meta":case"title":return null;case"style":return typeof d.precedence=="string"&&typeof d.href=="string"?(u=rd(d.href),d=Rn(w).hoistableStyles,v=d.get(u),v||(v={type:"style",instance:null,count:0,state:null},d.set(u,v)),v):{type:"void",instance:null,count:0,state:null};case"link":if(d.rel==="stylesheet"&&typeof d.href=="string"&&typeof d.precedence=="string"){o=rd(d.href);var R=Rn(w).hoistableStyles,B=R.get(o);if(B||(w=w.ownerDocument||w,B={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},R.set(o,B),(R=w.querySelector(kh(o)))&&!R._p&&(B.instance=R,B.state.loading=5),er.has(o)||(d={rel:"preload",as:"style",href:d.href,crossOrigin:d.crossOrigin,integrity:d.integrity,media:d.media,hrefLang:d.hrefLang,referrerPolicy:d.referrerPolicy},er.set(o,d),R||Gh(w,o,d,B.state))),u&&v===null)throw Error(r(528,""));return B}if(u&&v!==null)throw Error(r(529,""));return null;case"script":return u=d.async,d=d.src,typeof d=="string"&&u&&typeof u!="function"&&typeof u!="symbol"?(u=Dc(d),d=Rn(w).hoistableScripts,v=d.get(u),v||(v={type:"script",instance:null,count:0,state:null},d.set(u,v)),v):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,o))}}function rd(o){return'href="'+Gt(o)+'"'}function kh(o){return'link[rel="stylesheet"]['+o+"]"}function Ob(o){return y({},o,{"data-precedence":o.precedence,precedence:null})}function Gh(o,u,d,v){o.querySelector('link[rel="preload"][as="style"]['+u+"]")?v.loading=1:(u=o.createElement("link"),v.preload=u,u.addEventListener("load",function(){return v.loading|=1}),u.addEventListener("error",function(){return v.loading|=2}),Me(u,"link",d),vn(u),o.head.appendChild(u))}function Dc(o){return'[src="'+Gt(o)+'"]'}function cl(o){return"script[async]"+o}function jg(o,u,d){if(u.count++,u.instance===null)switch(u.type){case"style":var v=o.querySelector('style[data-href~="'+Gt(d.href)+'"]');if(v)return u.instance=v,vn(v),v;var w=y({},d,{"data-href":d.href,"data-precedence":d.precedence,href:null,precedence:null});return v=(o.ownerDocument||o).createElement("style"),vn(v),Me(v,"style",w),Lg(v,d.precedence,o),u.instance=v;case"stylesheet":w=rd(d.href);var R=o.querySelector(kh(w));if(R)return u.state.loading|=4,u.instance=R,vn(R),R;v=Ob(d),(w=er.get(w))&&Rb(v,w),R=(o.ownerDocument||o).createElement("link"),vn(R);var B=R;return B._p=new Promise(function(W,se){B.onload=W,B.onerror=se}),Me(R,"link",v),u.state.loading|=4,Lg(R,d.precedence,o),u.instance=R;case"script":return R=Dc(d.src),(w=o.querySelector(cl(R)))?(u.instance=w,vn(w),w):(v=d,(w=er.get(R))&&(v=y({},d),Vg(v,w)),o=o.ownerDocument||o,w=o.createElement("script"),vn(w),Me(w,"link",v),o.head.appendChild(w),u.instance=w);case"void":return null;default:throw Error(r(443,u.type))}else u.type==="stylesheet"&&(u.state.loading&4)===0&&(v=u.instance,u.state.loading|=4,Lg(v,d.precedence,o));return u.instance}function Lg(o,u,d){for(var v=d.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),w=v.length?v[v.length-1]:null,R=w,B=0;B<v.length;B++){var W=v[B];if(W.dataset.precedence===u)R=W;else if(R!==w)break}R?R.parentNode.insertBefore(o,R.nextSibling):(u=d.nodeType===9?d.head:d,u.insertBefore(o,u.firstChild))}function Rb(o,u){o.crossOrigin==null&&(o.crossOrigin=u.crossOrigin),o.referrerPolicy==null&&(o.referrerPolicy=u.referrerPolicy),o.title==null&&(o.title=u.title)}function Vg(o,u){o.crossOrigin==null&&(o.crossOrigin=u.crossOrigin),o.referrerPolicy==null&&(o.referrerPolicy=u.referrerPolicy),o.integrity==null&&(o.integrity=u.integrity)}var qh=null;function id(o,u,d){if(qh===null){var v=new Map,w=qh=new Map;w.set(d,v)}else w=qh,v=w.get(d),v||(v=new Map,w.set(d,v));if(v.has(o))return v;for(v.set(o,null),d=d.getElementsByTagName(o),w=0;w<d.length;w++){var R=d[w];if(!(R[En]||R[It]||o==="link"&&R.getAttribute("rel")==="stylesheet")&&R.namespaceURI!=="http://www.w3.org/2000/svg"){var B=R.getAttribute(u)||"";B=o+B;var W=v.get(B);W?W.push(R):v.set(B,[R])}}return v}function Ab(o,u,d){o=o.ownerDocument||o,o.head.insertBefore(d,u==="title"?o.querySelector("head > title"):null)}function gx(o,u,d){if(d===1||u.itemProp!=null)return!1;switch(o){case"meta":case"title":return!0;case"style":if(typeof u.precedence!="string"||typeof u.href!="string"||u.href==="")break;return!0;case"link":if(typeof u.rel!="string"||typeof u.href!="string"||u.href===""||u.onLoad||u.onError)break;switch(u.rel){case"stylesheet":return o=u.disabled,typeof u.precedence=="string"&&o==null;default:return!0}case"script":if(u.async&&typeof u.async!="function"&&typeof u.async!="symbol"&&!u.onLoad&&!u.onError&&u.src&&typeof u.src=="string")return!0}return!1}function Mb(o){return!(o.type==="stylesheet"&&(o.state.loading&3)===0)}var od=null;function vx(){}function yx(o,u,d){if(od===null)throw Error(r(475));var v=od;if(u.type==="stylesheet"&&(typeof d.media!="string"||matchMedia(d.media).matches!==!1)&&(u.state.loading&4)===0){if(u.instance===null){var w=rd(d.href),R=o.querySelector(kh(w));if(R){o=R._p,o!==null&&typeof o=="object"&&typeof o.then=="function"&&(v.count++,v=ld.bind(v),o.then(v,v)),u.state.loading|=4,u.instance=R,vn(R);return}R=o.ownerDocument||o,d=Ob(d),(w=er.get(w))&&Rb(d,w),R=R.createElement("link"),vn(R);var B=R;B._p=new Promise(function(W,se){B.onload=W,B.onerror=se}),Me(R,"link",d),u.instance=R}v.stylesheets===null&&(v.stylesheets=new Map),v.stylesheets.set(u,o),(o=u.state.preload)&&(u.state.loading&3)===0&&(v.count++,u=ld.bind(v),o.addEventListener("load",u),o.addEventListener("error",u))}}function bx(){if(od===null)throw Error(r(475));var o=od;return o.stylesheets&&o.count===0&&Xh(o,o.stylesheets),0<o.count?function(u){var d=setTimeout(function(){if(o.stylesheets&&Xh(o,o.stylesheets),o.unsuspend){var v=o.unsuspend;o.unsuspend=null,v()}},6e4);return o.unsuspend=u,function(){o.unsuspend=null,clearTimeout(d)}}:null}function ld(){if(this.count--,this.count===0){if(this.stylesheets)Xh(this,this.stylesheets);else if(this.unsuspend){var o=this.unsuspend;this.unsuspend=null,o()}}}var Yh=null;function Xh(o,u){o.stylesheets=null,o.unsuspend!==null&&(o.count++,Yh=new Map,u.forEach(_b,o),Yh=null,ld.call(o))}function _b(o,u){if(!(u.state.loading&4)){var d=Yh.get(o);if(d)var v=d.get(null);else{d=new Map,Yh.set(o,d);for(var w=o.querySelectorAll("link[data-precedence],style[data-precedence]"),R=0;R<w.length;R++){var B=w[R];(B.nodeName==="LINK"||B.getAttribute("media")!=="not all")&&(d.set(B.dataset.precedence,B),v=B)}v&&d.set(null,v)}w=u.instance,B=w.getAttribute("data-precedence"),R=d.get(B)||v,R===v&&d.set(null,w),d.set(B,w),this.count++,v=ld.bind(this),w.addEventListener("load",v),w.addEventListener("error",v),R?R.parentNode.insertBefore(w,R.nextSibling):(o=o.nodeType===9?o.head:o,o.insertBefore(w,o.firstChild)),u.state.loading|=4}}var Gr={$$typeof:z,Provider:null,Consumer:null,_currentValue:Q,_currentValue2:Q,_threadCount:0};function zl(o,u,d,v,w,R,B,W){this.tag=1,this.containerInfo=o,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Je(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Je(0),this.hiddenUpdates=Je(null),this.identifierPrefix=v,this.onUncaughtError=w,this.onCaughtError=R,this.onRecoverableError=B,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=W,this.incompleteTransitions=new Map}function Sx(o,u,d,v,w,R,B,W,se,xe,qe,Ze){return o=new zl(o,u,d,B,W,se,xe,Ze),u=1,R===!0&&(u|=24),R=Mi(3,null,null,u),o.current=R,R.stateNode=o,u=sy(),u.refCount++,o.pooledCache=u,u.refCount++,R.memoizedState={element:v,isDehydrated:d,cache:u},uh(R),o}function Db(o){return o?(o=cc,o):cc}function Nb(o,u,d,v,w,R){w=Db(w),v.context===null?v.context=w:v.pendingContext=w,v=bs(u),v.payload={element:d},R=R===void 0?null:R,R!==null&&(v.callback=R),d=Ni(o,v,u),d!==null&&(Ii(d,o,u),hc(d,o,u))}function $b(o,u){if(o=o.memoizedState,o!==null&&o.dehydrated!==null){var d=o.retryLane;o.retryLane=d!==0&&d<u?d:u}}function Hg(o,u){$b(o,u),(o=o.alternate)&&$b(o,u)}function zb(o){if(o.tag===13){var u=hs(o,67108864);u!==null&&Ii(u,o,67108864),Hg(o,67108864)}}var Wh=!0;function Cx(o,u,d,v){var w=k.T;k.T=null;var R=X.p;try{X.p=2,Bg(o,u,d,v)}finally{X.p=R,k.T=w}}function xx(o,u,d,v){var w=k.T;k.T=null;var R=X.p;try{X.p=8,Bg(o,u,d,v)}finally{X.p=R,k.T=w}}function Bg(o,u,d,v){if(Wh){var w=jb(v);if(w===null)Ph(o,u,v,Zh,d),Vb(o,v);else if(Hb(w,o,u,d,v))v.stopPropagation();else if(Vb(o,v),u&4&&-1<dA.indexOf(o)){for(;w!==null;){var R=Jt(w);if(R!==null)switch(R.tag){case 3:if(R=R.stateNode,R.current.memoizedState.isDehydrated){var B=St(R.pendingLanes);if(B!==0){var W=R;for(W.pendingLanes|=2,W.entangledLanes|=2;B;){var se=1<<31-ht(B);W.entanglements[1]|=se,B&=~se}sl(R),(Jn&6)===0&&(fg=_e()+500,Ds(0))}}break;case 13:W=hs(R,2),W!==null&&Ii(W,R,2),$h(),Hg(R,2)}if(R=jb(v),R===null&&Ph(o,u,v,Zh,d),R===w)break;w=R}w!==null&&v.stopPropagation()}else Ph(o,u,v,null,d)}}function jb(o){return o=Zi(o),Lb(o)}var Zh=null;function Lb(o){if(Zh=null,o=On(o),o!==null){var u=c(o);if(u===null)o=null;else{var d=u.tag;if(d===13){if(o=f(u),o!==null)return o;o=null}else if(d===3){if(u.stateNode.current.memoizedState.isDehydrated)return u.tag===3?u.stateNode.containerInfo:null;o=null}else u!==o&&(o=null)}}return Zh=o,null}function Ex(o){switch(o){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(je()){case Ue:return 2;case nt:return 8;case We:case it:return 32;case rt:return 268435456;default:return 32}default:return 32}}var Pg=!1,fl=null,jl=null,Vs=null,sd=new Map,Kh=new Map,Lu=[],dA="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function Vb(o,u){switch(o){case"focusin":case"focusout":fl=null;break;case"dragenter":case"dragleave":jl=null;break;case"mouseover":case"mouseout":Vs=null;break;case"pointerover":case"pointerout":sd.delete(u.pointerId);break;case"gotpointercapture":case"lostpointercapture":Kh.delete(u.pointerId)}}function Ll(o,u,d,v,w,R){return o===null||o.nativeEvent!==R?(o={blockedOn:u,domEventName:d,eventSystemFlags:v,nativeEvent:R,targetContainers:[w]},u!==null&&(u=Jt(u),u!==null&&zb(u)),o):(o.eventSystemFlags|=v,u=o.targetContainers,w!==null&&u.indexOf(w)===-1&&u.push(w),o)}function Hb(o,u,d,v,w){switch(u){case"focusin":return fl=Ll(fl,o,u,d,v,w),!0;case"dragenter":return jl=Ll(jl,o,u,d,v,w),!0;case"mouseover":return Vs=Ll(Vs,o,u,d,v,w),!0;case"pointerover":var R=w.pointerId;return sd.set(R,Ll(sd.get(R)||null,o,u,d,v,w)),!0;case"gotpointercapture":return R=w.pointerId,Kh.set(R,Ll(Kh.get(R)||null,o,u,d,v,w)),!0}return!1}function Bb(o){var u=On(o.target);if(u!==null){var d=c(u);if(d!==null){if(u=d.tag,u===13){if(u=f(d),u!==null){o.blockedOn=u,mt(o.priority,function(){if(d.tag===13){var v=io();v=dt(v);var w=hs(d,v);w!==null&&Ii(w,d,v),Hg(d,v)}});return}}else if(u===3&&d.stateNode.current.memoizedState.isDehydrated){o.blockedOn=d.tag===3?d.stateNode.containerInfo:null;return}}}o.blockedOn=null}function Qh(o){if(o.blockedOn!==null)return!1;for(var u=o.targetContainers;0<u.length;){var d=jb(o.nativeEvent);if(d===null){d=o.nativeEvent;var v=new d.constructor(d.type,d);Uo=v,d.target.dispatchEvent(v),Uo=null}else return u=Jt(d),u!==null&&zb(u),o.blockedOn=d,!1;u.shift()}return!0}function Pb(o,u,d){Qh(o)&&d.delete(u)}function Ug(){Pg=!1,fl!==null&&Qh(fl)&&(fl=null),jl!==null&&Qh(jl)&&(jl=null),Vs!==null&&Qh(Vs)&&(Vs=null),sd.forEach(Pb),Kh.forEach(Pb)}function Hs(o,u){o.blockedOn===u&&(o.blockedOn=null,Pg||(Pg=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,Ug)))}var Ig=null;function Jh(o){Ig!==o&&(Ig=o,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){Ig===o&&(Ig=null);for(var u=0;u<o.length;u+=3){var d=o[u],v=o[u+1],w=o[u+2];if(typeof v!="function"){if(Lb(v||d)===null)continue;break}var R=Jt(d);R!==null&&(o.splice(u,3),u-=3,Dy(R,{pending:!0,data:w,method:d.method,action:v},v,w))}}))}function ud(o){function u(se){return Hs(se,o)}fl!==null&&Hs(fl,o),jl!==null&&Hs(jl,o),Vs!==null&&Hs(Vs,o),sd.forEach(u),Kh.forEach(u);for(var d=0;d<Lu.length;d++){var v=Lu[d];v.blockedOn===o&&(v.blockedOn=null)}for(;0<Lu.length&&(d=Lu[0],d.blockedOn===null);)Bb(d),d.blockedOn===null&&Lu.shift();if(d=(o.ownerDocument||o).$$reactFormReplay,d!=null)for(v=0;v<d.length;v+=3){var w=d[v],R=d[v+1],B=w[ct]||null;if(typeof R=="function")B||Jh(d);else if(B){var W=null;if(R&&R.hasAttribute("formAction")){if(w=R,B=R[ct]||null)W=B.formAction;else if(Lb(w)!==null)continue}else W=B.action;typeof W=="function"?d[v+1]=W:(d.splice(v,3),v-=3),Jh(d)}}}function Vu(o){this._internalRoot=o}Fg.prototype.render=Vu.prototype.render=function(o){var u=this._internalRoot;if(u===null)throw Error(r(409));var d=u.current,v=io();Nb(d,v,o,u,null,null)},Fg.prototype.unmount=Vu.prototype.unmount=function(){var o=this._internalRoot;if(o!==null){this._internalRoot=null;var u=o.containerInfo;Nb(o.current,2,null,o,null,null),$h(),u[tt]=null}};function Fg(o){this._internalRoot=o}Fg.prototype.unstable_scheduleHydration=function(o){if(o){var u=Mt();o={blockedOn:null,target:o,priority:u};for(var d=0;d<Lu.length&&u!==0&&u<Lu[d].priority;d++);Lu.splice(d,0,o),d===0&&Bb(o)}};var wx=t.version;if(wx!=="19.1.0")throw Error(r(527,wx,"19.1.0"));X.findDOMNode=function(o){var u=o._reactInternals;if(u===void 0)throw typeof o.render=="function"?Error(r(188)):(o=Object.keys(o).join(","),Error(r(268,o)));return o=g(u),o=o!==null?p(o):null,o=o===null?null:o.stateNode,o};var Tx={bundleType:0,version:"19.1.0",rendererPackageName:"react-dom",currentDispatcherRef:k,reconcilerVersion:"19.1.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Ar=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ar.isDisabled&&Ar.supportsFiber)try{wt=Ar.inject(Tx),At=Ar}catch{}}return Ev.createRoot=function(o,u){if(!l(o))throw Error(r(299));var d=!1,v="",w=By,R=Pf,B=Py,W=null;return u!=null&&(u.unstable_strictMode===!0&&(d=!0),u.identifierPrefix!==void 0&&(v=u.identifierPrefix),u.onUncaughtError!==void 0&&(w=u.onUncaughtError),u.onCaughtError!==void 0&&(R=u.onCaughtError),u.onRecoverableError!==void 0&&(B=u.onRecoverableError),u.unstable_transitionCallbacks!==void 0&&(W=u.unstable_transitionCallbacks)),u=Sx(o,1,!1,null,null,d,v,w,R,B,W,null),o[tt]=u.current,Bh(o),new Vu(u)},Ev.hydrateRoot=function(o,u,d){if(!l(o))throw Error(r(299));var v=!1,w="",R=By,B=Pf,W=Py,se=null,xe=null;return d!=null&&(d.unstable_strictMode===!0&&(v=!0),d.identifierPrefix!==void 0&&(w=d.identifierPrefix),d.onUncaughtError!==void 0&&(R=d.onUncaughtError),d.onCaughtError!==void 0&&(B=d.onCaughtError),d.onRecoverableError!==void 0&&(W=d.onRecoverableError),d.unstable_transitionCallbacks!==void 0&&(se=d.unstable_transitionCallbacks),d.formState!==void 0&&(xe=d.formState)),u=Sx(o,1,!0,u,d??null,v,w,R,B,W,se,xe),u.context=Db(null),d=u.current,v=io(),v=dt(v),w=bs(v),w.callback=null,Ni(d,w,v),d=v,u.current.lanes=d,ft(u,d),sl(u),o[tt]=u.current,Bh(o),new Fg(u)},Ev.version="19.1.0",Ev}var wv={},OM;function v8(){if(OM)return wv;OM=1;var e={};/**
|
|
103
|
+
* @license React
|
|
104
|
+
* react-dom-client.development.js
|
|
105
|
+
*
|
|
106
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
107
|
+
*
|
|
108
|
+
* This source code is licensed under the MIT license found in the
|
|
109
|
+
* LICENSE file in the root directory of this source tree.
|
|
110
|
+
*/return e.NODE_ENV!=="production"&&function(){function t(n,i){for(n=n.memoizedState;n!==null&&0<i;)n=n.next,i--;return n}function a(n,i,s,h){if(s>=i.length)return h;var b=i[s],x=vr(n)?n.slice():un({},n);return x[b]=a(n[b],i,s+1,h),x}function r(n,i,s){if(i.length!==s.length)console.warn("copyWithRename() expects paths of the same length");else{for(var h=0;h<s.length-1;h++)if(i[h]!==s[h]){console.warn("copyWithRename() expects paths to be the same except for the deepest key");return}return l(n,i,s,0)}}function l(n,i,s,h){var b=i[h],x=vr(n)?n.slice():un({},n);return h+1===i.length?(x[s[h]]=x[b],vr(x)?x.splice(b,1):delete x[b]):x[b]=l(n[b],i,s,h+1),x}function c(n,i,s){var h=i[s],b=vr(n)?n.slice():un({},n);return s+1===i.length?(vr(b)?b.splice(h,1):delete b[h],b):(b[h]=c(n[h],i,s+1),b)}function f(){return!1}function m(){return null}function g(){}function p(){console.error("Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://react.dev/link/rules-of-hooks")}function y(){console.error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().")}function S(){}function E(n){var i=[];return n.forEach(function(s){i.push(s)}),i.sort().join(", ")}function T(n,i,s,h){return new JR(n,i,s,h)}function O(n,i){n.context===cd&&(jh(n.current,2,i,n,null,null),Cc())}function M(n,i){if(Bl!==null){var s=i.staleFamilies;i=i.updatedFamilies,bu(),ac(n.current,i,s),Cc()}}function A(n){Bl=n}function D(n){return!(!n||n.nodeType!==1&&n.nodeType!==9&&n.nodeType!==11)}function _(n){var i=n,s=n;if(n.alternate)for(;i.return;)i=i.return;else{n=i;do i=n,(i.flags&4098)!==0&&(s=i.return),n=i.return;while(n)}return i.tag===3?s:null}function z(n){if(n.tag===13){var i=n.memoizedState;if(i===null&&(n=n.alternate,n!==null&&(i=n.memoizedState)),i!==null)return i.dehydrated}return null}function j(n){if(_(n)!==n)throw Error("Unable to find node on an unmounted component.")}function $(n){var i=n.alternate;if(!i){if(i=_(n),i===null)throw Error("Unable to find node on an unmounted component.");return i!==n?null:n}for(var s=n,h=i;;){var b=s.return;if(b===null)break;var x=b.alternate;if(x===null){if(h=b.return,h!==null){s=h;continue}break}if(b.child===x.child){for(x=b.child;x;){if(x===s)return j(b),n;if(x===h)return j(b),i;x=x.sibling}throw Error("Unable to find node on an unmounted component.")}if(s.return!==h.return)s=b,h=x;else{for(var N=!1,L=b.child;L;){if(L===s){N=!0,s=b,h=x;break}if(L===h){N=!0,h=b,s=x;break}L=L.sibling}if(!N){for(L=x.child;L;){if(L===s){N=!0,s=x,h=b;break}if(L===h){N=!0,h=x,s=b;break}L=L.sibling}if(!N)throw Error("Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue.")}}if(s.alternate!==h)throw Error("Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue.")}if(s.tag!==3)throw Error("Unable to find node on an unmounted component.");return s.stateNode.current===s?n:i}function V(n){var i=n.tag;if(i===5||i===26||i===27||i===6)return n;for(n=n.child;n!==null;){if(i=V(n),i!==null)return i;n=n.sibling}return null}function H(n){return n===null||typeof n!="object"?null:(n=Uh&&n[Uh]||n["@@iterator"],typeof n=="function"?n:null)}function P(n){if(n==null)return null;if(typeof n=="function")return n.$$typeof===ha?null:n.displayName||n.name||null;if(typeof n=="string")return n;switch(n){case Du:return"Fragment";case Bh:return"Profiler";case Ac:return"StrictMode";case $u:return"Suspense";case Ag:return"SuspenseList";case _g:return"Activity"}if(typeof n=="object")switch(typeof n.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),n.$$typeof){case mn:return"Portal";case Fi:return(n.displayName||"Context")+".Provider";case Ph:return(n._context.displayName||"Context")+".Consumer";case Nu:var i=n.render;return n=n.displayName,n||(n=i.displayName||i.name||"",n=n!==""?"ForwardRef("+n+")":"ForwardRef"),n;case Mg:return i=n.displayName||null,i!==null?i:P(n.type)||"Memo";case oo:i=n._payload,n=n._init;try{return P(n(i))}catch{}}return null}function q(n){return typeof n.tag=="number"?Y(n):typeof n.name=="string"?n.name:null}function Y(n){var i=n.type;switch(n.tag){case 31:return"Activity";case 24:return"Cache";case 9:return(i._context.displayName||"Context")+".Consumer";case 10:return(i.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return n=i.render,n=n.displayName||n.name||"",i.displayName||(n!==""?"ForwardRef("+n+")":"ForwardRef");case 7:return"Fragment";case 26:case 27:case 5:return i;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return P(i);case 8:return i===Ac?"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 14:case 15:if(typeof i=="function")return i.displayName||i.name||null;if(typeof i=="string")return i;break;case 29:if(i=n._debugInfo,i!=null){for(var s=i.length-1;0<=s;s--)if(typeof i[s].name=="string")return i[s].name}if(n.return!==null)return Y(n.return)}return null}function te(n){return{current:n}}function G(n,i){0>_l?console.error("Unexpected pop."):(i!==nd[_l]&&console.error("Unexpected Fiber popped."),n.current=Ih[_l],Ih[_l]=null,nd[_l]=null,_l--)}function K(n,i,s){_l++,Ih[_l]=n.current,nd[_l]=s,n.current=i}function J(n){return n===null&&console.error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue."),n}function ie(n,i){K(Dl,i,n),K(Mc,n,n),K($s,null,n);var s=i.nodeType;switch(s){case 9:case 11:s=s===9?"#document":"#fragment",i=(i=i.documentElement)&&(i=i.namespaceURI)?Pi(i):Uc;break;default:if(s=i.tagName,i=i.namespaceURI)i=Pi(i),i=As(i,s);else switch(s){case"svg":i=vv;break;case"math":i=tE;break;default:i=Uc}}s=s.toLowerCase(),s=xr(null,s),s={context:i,ancestorInfo:s},G($s,n),K($s,s,n)}function k(n){G($s,n),G(Mc,n),G(Dl,n)}function X(){return J($s.current)}function Q(n){n.memoizedState!==null&&K(Dg,n,n);var i=J($s.current),s=n.type,h=As(i.context,s);s=xr(i.ancestorInfo,s),h={context:h,ancestorInfo:s},i!==h&&(K(Mc,n,n),K($s,h,n))}function le(n){Mc.current===n&&(G($s,n),G(Mc,n)),Dg.current===n&&(G(Dg,n),yS._currentValue=vm)}function U(n){return typeof Symbol=="function"&&Symbol.toStringTag&&n[Symbol.toStringTag]||n.constructor.name||"Object"}function F(n){try{return ne(n),!1}catch{return!0}}function ne(n){return""+n}function ae(n,i){if(F(n))return console.error("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before using it here.",i,U(n)),ne(n)}function oe(n,i){if(F(n))return console.error("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before using it here.",i,U(n)),ne(n)}function fe(n){if(F(n))return console.error("Form field values (value, checked, defaultValue, or defaultChecked props) must be strings, not %s. This value must be coerced to a string before using it here.",U(n)),ne(n)}function ye(n){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")return!1;var i=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(i.isDisabled)return!0;if(!i.supportsFiber)return console.error("The installed version of React DevTools is too old and will not work with the current version of React. Please update React DevTools. https://react.dev/link/react-devtools"),!0;try{_c=i.inject(n),kr=i}catch(s){console.error("React instrumentation encountered an error: %s.",s)}return!!i.checkDCE}function $e(n){if(typeof ul=="function"&&Tb(n),kr&&typeof kr.setStrictMode=="function")try{kr.setStrictMode(_c,n)}catch(i){er||(er=!0,console.error("React instrumentation encountered an error: %s",i))}}function ze(n){Ct=n}function Fe(){Ct!==null&&typeof Ct.markCommitStopped=="function"&&Ct.markCommitStopped()}function Ke(n){Ct!==null&&typeof Ct.markComponentRenderStarted=="function"&&Ct.markComponentRenderStarted(n)}function Oe(){Ct!==null&&typeof Ct.markComponentRenderStopped=="function"&&Ct.markComponentRenderStopped()}function me(n){Ct!==null&&typeof Ct.markRenderStarted=="function"&&Ct.markRenderStarted(n)}function Re(){Ct!==null&&typeof Ct.markRenderStopped=="function"&&Ct.markRenderStopped()}function Pe(n,i){Ct!==null&&typeof Ct.markStateUpdateScheduled=="function"&&Ct.markStateUpdateScheduled(n,i)}function be(n){return n>>>=0,n===0?32:31-(zs(n)/fA|0)|0}function Ce(n){if(n&1)return"SyncHydrationLane";if(n&2)return"Sync";if(n&4)return"InputContinuousHydration";if(n&8)return"InputContinuous";if(n&16)return"DefaultHydration";if(n&32)return"Default";if(n&128)return"TransitionHydration";if(n&4194048)return"Transition";if(n&62914560)return"Retry";if(n&67108864)return"SelectiveHydration";if(n&134217728)return"IdleHydration";if(n&268435456)return"Idle";if(n&536870912)return"Offscreen";if(n&1073741824)return"Deferred"}function _e(n){var i=n&42;if(i!==0)return i;switch(n&-n){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return n&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return n&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return console.error("Should have found matching lanes. This is a bug in React."),n}}function je(n,i,s){var h=n.pendingLanes;if(h===0)return 0;var b=0,x=n.suspendedLanes,N=n.pingedLanes;n=n.warmLanes;var L=h&134217727;return L!==0?(h=L&~x,h!==0?b=_e(h):(N&=L,N!==0?b=_e(N):s||(s=L&~n,s!==0&&(b=_e(s))))):(L=h&~x,L!==0?b=_e(L):N!==0?b=_e(N):s||(s=h&~n,s!==0&&(b=_e(s)))),b===0?0:i!==0&&i!==b&&(i&x)===0&&(x=b&-b,s=i&-i,x>=s||x===32&&(s&4194048)!==0)?i:b}function Ue(n,i){return(n.pendingLanes&~(n.suspendedLanes&~n.pingedLanes)&i)===0}function nt(n,i){switch(n){case 1:case 2:case 4:case 8:case 64:return i+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return i+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return console.error("Should have found matching lanes. This is a bug in React."),-1}}function We(){var n=Ng;return Ng<<=1,(Ng&4194048)===0&&(Ng=256),n}function it(){var n=js;return js<<=1,(js&62914560)===0&&(js=4194304),n}function rt(n){for(var i=[],s=0;31>s;s++)i.push(n);return i}function Ge(n,i){n.pendingLanes|=i,i!==268435456&&(n.suspendedLanes=0,n.pingedLanes=0,n.warmLanes=0)}function Rt(n,i,s,h,b,x){var N=n.pendingLanes;n.pendingLanes=s,n.suspendedLanes=0,n.pingedLanes=0,n.warmLanes=0,n.expiredLanes&=s,n.entangledLanes&=s,n.errorRecoveryDisabledLanes&=s,n.shellSuspendCounter=0;var L=n.entanglements,Z=n.expirationTimes,ee=n.hiddenUpdates;for(s=N&~s;0<s;){var De=31-Rr(s),Ve=1<<De;L[De]=0,Z[De]=-1;var Ae=ee[De];if(Ae!==null)for(ee[De]=null,De=0;De<Ae.length;De++){var Ie=Ae[De];Ie!==null&&(Ie.lane&=-536870913)}s&=~Ve}h!==0&&wt(n,h,0),x!==0&&b===0&&n.tag!==0&&(n.suspendedLanes|=x&~(N&~i))}function wt(n,i,s){n.pendingLanes|=i,n.suspendedLanes&=~i;var h=31-Rr(i);n.entangledLanes|=i,n.entanglements[h]=n.entanglements[h]|1073741824|s&4194090}function At(n,i){var s=n.entangledLanes|=i;for(n=n.entanglements;s;){var h=31-Rr(s),b=1<<h;b&i|n[h]&i&&(n[h]|=i),s&=~b}}function $t(n){switch(n){case 2:n=1;break;case 8:n=4;break;case 32:n=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:n=128;break;case 268435456:n=134217728;break;default:n=0}return n}function ht(n,i,s){if(_o)for(n=n.pendingUpdatersLaneMap;0<s;){var h=31-Rr(s),b=1<<h;n[h].add(i),s&=~b}}function kt(n,i){if(_o)for(var s=n.pendingUpdatersLaneMap,h=n.memoizedUpdaters;0<i;){var b=31-Rr(i);n=1<<b,b=s[b],0<b.size&&(b.forEach(function(x){var N=x.alternate;N!==null&&h.has(N)||h.add(x)}),b.clear()),i&=~n}}function Vt(n){return n&=-n,lo<n?$l<n?(n&134217727)!==0?Ls:$g:$l:lo}function Wt(){var n=Xn.p;return n!==0?n:(n=window.event,n===void 0?Ls:_u(n.type))}function Tt(n,i){var s=Xn.p;try{return Xn.p=n,i()}finally{Xn.p=s}}function ut(n){delete n[ti],delete n[ki],delete n[zg],delete n[rd],delete n[kh]}function St(n){var i=n[ti];if(i)return i;for(var s=n.parentNode;s;){if(i=s[ju]||s[ti]){if(s=i.alternate,i.child!==null||s!==null&&s.child!==null)for(n=mg(n);n!==null;){if(s=n[ti])return s;n=mg(n)}return i}n=s,s=n.parentNode}return null}function et(n){if(n=n[ti]||n[ju]){var i=n.tag;if(i===5||i===6||i===13||i===26||i===27||i===3)return n}return null}function lt(n){var i=n.tag;if(i===5||i===26||i===27||i===6)return n.stateNode;throw Error("getNodeFromInstance: Invalid argument.")}function I(n){var i=n[Ob];return i||(i=n[Ob]={hoistableStyles:new Map,hoistableScripts:new Map}),i}function he(n){n[Gh]=!0}function Qe(n,i){Je(n,i),Je(n+"Capture",i)}function Je(n,i){cl[n]&&console.error("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",n),cl[n]=i;var s=n.toLowerCase();for(jg[s]=n,n==="onDoubleClick"&&(jg.ondblclick=n),n=0;n<i.length;n++)Dc.add(i[n])}function ft(n,i){Lg[i.type]||i.onChange||i.onInput||i.readOnly||i.disabled||i.value==null||console.error(n==="select"?"You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set `onChange`.":"You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`."),i.onChange||i.readOnly||i.disabled||i.checked==null||console.error("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")}function Ft(n){return Nl.call(qh,n)?!0:Nl.call(Vg,n)?!1:Rb.test(n)?qh[n]=!0:(Vg[n]=!0,console.error("Invalid attribute name: `%s`",n),!1)}function _t(n,i,s){if(Ft(i)){if(!n.hasAttribute(i)){switch(typeof s){case"symbol":case"object":return s;case"function":return s;case"boolean":if(s===!1)return s}return s===void 0?void 0:null}return n=n.getAttribute(i),n===""&&s===!0?!0:(ae(s,i),n===""+s?s:n)}}function Dt(n,i,s){if(Ft(i))if(s===null)n.removeAttribute(i);else{switch(typeof s){case"undefined":case"function":case"symbol":n.removeAttribute(i);return;case"boolean":var h=i.toLowerCase().slice(0,5);if(h!=="data-"&&h!=="aria-"){n.removeAttribute(i);return}}ae(s,i),n.setAttribute(i,""+s)}}function dt(n,i,s){if(s===null)n.removeAttribute(i);else{switch(typeof s){case"undefined":case"function":case"symbol":case"boolean":n.removeAttribute(i);return}ae(s,i),n.setAttribute(i,""+s)}}function vt(n,i,s,h){if(h===null)n.removeAttribute(s);else{switch(typeof h){case"undefined":case"function":case"symbol":case"boolean":n.removeAttribute(s);return}ae(h,s),n.setAttributeNS(i,s,""+h)}}function Mt(){}function mt(){if(id===0){Ab=console.log,gx=console.info,Mb=console.warn,od=console.error,vx=console.group,yx=console.groupCollapsed,bx=console.groupEnd;var n={configurable:!0,enumerable:!0,value:Mt,writable:!0};Object.defineProperties(console,{info:n,log:n,warn:n,error:n,group:n,groupCollapsed:n,groupEnd:n})}id++}function Ht(){if(id--,id===0){var n={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:un({},n,{value:Ab}),info:un({},n,{value:gx}),warn:un({},n,{value:Mb}),error:un({},n,{value:od}),group:un({},n,{value:vx}),groupCollapsed:un({},n,{value:yx}),groupEnd:un({},n,{value:bx})})}0>id&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}function It(n){if(ld===void 0)try{throw Error()}catch(s){var i=s.stack.trim().match(/\n( *(at )?)/);ld=i&&i[1]||"",Yh=-1<s.stack.indexOf(`
|
|
111
|
+
at`)?" (<anonymous>)":-1<s.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
112
|
+
`+ld+n+Yh}function ct(n,i){if(!n||Xh)return"";var s=_b.get(n);if(s!==void 0)return s;Xh=!0,s=Error.prepareStackTrace,Error.prepareStackTrace=void 0;var h=null;h=Me.H,Me.H=null,mt();try{var b={DetermineComponentFrameRoot:function(){try{if(i){var Ae=function(){throw Error()};if(Object.defineProperty(Ae.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Ae,[])}catch(Pt){var Ie=Pt}Reflect.construct(n,[],Ae)}else{try{Ae.call()}catch(Pt){Ie=Pt}n.call(Ae.prototype)}}else{try{throw Error()}catch(Pt){Ie=Pt}(Ae=n())&&typeof Ae.catch=="function"&&Ae.catch(function(){})}}catch(Pt){if(Pt&&Ie&&typeof Pt.stack=="string")return[Pt.stack,Ie.stack]}return[null,null]}};b.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var x=Object.getOwnPropertyDescriptor(b.DetermineComponentFrameRoot,"name");x&&x.configurable&&Object.defineProperty(b.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var N=b.DetermineComponentFrameRoot(),L=N[0],Z=N[1];if(L&&Z){var ee=L.split(`
|
|
113
|
+
`),De=Z.split(`
|
|
114
|
+
`);for(N=x=0;x<ee.length&&!ee[x].includes("DetermineComponentFrameRoot");)x++;for(;N<De.length&&!De[N].includes("DetermineComponentFrameRoot");)N++;if(x===ee.length||N===De.length)for(x=ee.length-1,N=De.length-1;1<=x&&0<=N&&ee[x]!==De[N];)N--;for(;1<=x&&0<=N;x--,N--)if(ee[x]!==De[N]){if(x!==1||N!==1)do if(x--,N--,0>N||ee[x]!==De[N]){var Ve=`
|
|
115
|
+
`+ee[x].replace(" at new "," at ");return n.displayName&&Ve.includes("<anonymous>")&&(Ve=Ve.replace("<anonymous>",n.displayName)),typeof n=="function"&&_b.set(n,Ve),Ve}while(1<=x&&0<=N);break}}}finally{Xh=!1,Me.H=h,Ht(),Error.prepareStackTrace=s}return ee=(ee=n?n.displayName||n.name:"")?It(ee):"",typeof n=="function"&&_b.set(n,ee),ee}function tt(n){var i=Error.prepareStackTrace;if(Error.prepareStackTrace=void 0,n=n.stack,Error.prepareStackTrace=i,n.startsWith(`Error: react-stack-top-frame
|
|
116
|
+
`)&&(n=n.slice(29)),i=n.indexOf(`
|
|
117
|
+
`),i!==-1&&(n=n.slice(i+1)),i=n.indexOf("react-stack-bottom-frame"),i!==-1&&(i=n.lastIndexOf(`
|
|
118
|
+
`,i)),i!==-1)n=n.slice(0,i);else return"";return n}function gt(n){switch(n.tag){case 26:case 27:case 5:return It(n.type);case 16:return It("Lazy");case 13:return It("Suspense");case 19:return It("SuspenseList");case 0:case 15:return ct(n.type,!1);case 11:return ct(n.type.render,!1);case 1:return ct(n.type,!0);case 31:return It("Activity");default:return""}}function bt(n){try{var i="";do{i+=gt(n);var s=n._debugInfo;if(s)for(var h=s.length-1;0<=h;h--){var b=s[h];if(typeof b.name=="string"){var x=i,N=b.env,L=It(b.name+(N?" ["+N+"]":""));i=x+L}}n=n.return}while(n);return i}catch(Z){return`
|
|
119
|
+
Error generating stack: `+Z.message+`
|
|
120
|
+
`+Z.stack}}function Ot(n){return(n=n?n.displayName||n.name:"")?It(n):""}function Bt(){if(Gr===null)return null;var n=Gr._debugOwner;return n!=null?q(n):null}function En(){if(Gr===null)return"";var n=Gr;try{var i="";switch(n.tag===6&&(n=n.return),n.tag){case 26:case 27:case 5:i+=It(n.type);break;case 13:i+=It("Suspense");break;case 19:i+=It("SuspenseList");break;case 31:i+=It("Activity");break;case 30:case 0:case 15:case 1:n._debugOwner||i!==""||(i+=Ot(n.type));break;case 11:n._debugOwner||i!==""||(i+=Ot(n.type.render))}for(;n;)if(typeof n.tag=="number"){var s=n;n=s._debugOwner;var h=s._debugStack;n&&h&&(typeof h!="string"&&(s._debugStack=h=tt(h)),h!==""&&(i+=`
|
|
121
|
+
`+h))}else if(n.debugStack!=null){var b=n.debugStack;(n=n.owner)&&b&&(i+=`
|
|
122
|
+
`+tt(b))}else break;var x=i}catch(N){x=`
|
|
123
|
+
Error generating stack: `+N.message+`
|
|
124
|
+
`+N.stack}return x}function ot(n,i,s,h,b,x,N){var L=Gr;On(n);try{return n!==null&&n._debugTask?n._debugTask.run(i.bind(null,s,h,b,x,N)):i(s,h,b,x,N)}finally{On(L)}throw Error("runWithFiberInDEV should never be called in production. This is a bug in React.")}function On(n){Me.getCurrentStack=n===null?null:En,zl=!1,Gr=n}function Jt(n){switch(typeof n){case"bigint":case"boolean":case"number":case"string":case"undefined":return n;case"object":return fe(n),n;default:return""}}function zn(n){var i=n.type;return(n=n.nodeName)&&n.toLowerCase()==="input"&&(i==="checkbox"||i==="radio")}function Rn(n){var i=zn(n)?"checked":"value",s=Object.getOwnPropertyDescriptor(n.constructor.prototype,i);fe(n[i]);var h=""+n[i];if(!n.hasOwnProperty(i)&&typeof s<"u"&&typeof s.get=="function"&&typeof s.set=="function"){var b=s.get,x=s.set;return Object.defineProperty(n,i,{configurable:!0,get:function(){return b.call(this)},set:function(N){fe(N),h=""+N,x.call(this,N)}}),Object.defineProperty(n,i,{enumerable:s.enumerable}),{getValue:function(){return h},setValue:function(N){fe(N),h=""+N},stopTracking:function(){n._valueTracker=null,delete n[i]}}}}function vn(n){n._valueTracker||(n._valueTracker=Rn(n))}function nr(n){if(!n)return!1;var i=n._valueTracker;if(!i)return!0;var s=i.getValue(),h="";return n&&(h=zn(n)?n.checked?"true":"false":n.value),n=h,n!==s?(i.setValue(n),!0):!1}function Un(n){if(n=n||(typeof document<"u"?document:void 0),typeof n>"u")return null;try{return n.activeElement||n.body}catch{return n.body}}function nn(n){return n.replace(Sx,function(i){return"\\"+i.charCodeAt(0).toString(16)+" "})}function pt(n,i){i.checked===void 0||i.defaultChecked===void 0||Nb||(console.error("%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components",Bt()||"A component",i.type),Nb=!0),i.value===void 0||i.defaultValue===void 0||Db||(console.error("%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components",Bt()||"A component",i.type),Db=!0)}function xt(n,i,s,h,b,x,N,L){n.name="",N!=null&&typeof N!="function"&&typeof N!="symbol"&&typeof N!="boolean"?(ae(N,"type"),n.type=N):n.removeAttribute("type"),i!=null?N==="number"?(i===0&&n.value===""||n.value!=i)&&(n.value=""+Jt(i)):n.value!==""+Jt(i)&&(n.value=""+Jt(i)):N!=="submit"&&N!=="reset"||n.removeAttribute("value"),i!=null?fn(n,N,Jt(i)):s!=null?fn(n,N,Jt(s)):h!=null&&n.removeAttribute("value"),b==null&&x!=null&&(n.defaultChecked=!!x),b!=null&&(n.checked=b&&typeof b!="function"&&typeof b!="symbol"),L!=null&&typeof L!="function"&&typeof L!="symbol"&&typeof L!="boolean"?(ae(L,"name"),n.name=""+Jt(L)):n.removeAttribute("name")}function Kt(n,i,s,h,b,x,N,L){if(x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"&&(ae(x,"type"),n.type=x),i!=null||s!=null){if(!(x!=="submit"&&x!=="reset"||i!=null))return;s=s!=null?""+Jt(s):"",i=i!=null?""+Jt(i):s,L||i===n.value||(n.value=i),n.defaultValue=i}h=h??b,h=typeof h!="function"&&typeof h!="symbol"&&!!h,n.checked=L?n.checked:!!h,n.defaultChecked=!!h,N!=null&&typeof N!="function"&&typeof N!="symbol"&&typeof N!="boolean"&&(ae(N,"name"),n.name=N)}function fn(n,i,s){i==="number"&&Un(n.ownerDocument)===n||n.defaultValue===""+s||(n.defaultValue=""+s)}function Ln(n,i){i.value==null&&(typeof i.children=="object"&&i.children!==null?bb.Children.forEach(i.children,function(s){s==null||typeof s=="string"||typeof s=="number"||typeof s=="bigint"||Hg||(Hg=!0,console.error("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>."))}):i.dangerouslySetInnerHTML==null||zb||(zb=!0,console.error("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),i.selected==null||$b||(console.error("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),$b=!0)}function Qa(){var n=Bt();return n?`
|
|
125
|
+
|
|
126
|
+
Check the render method of \``+n+"`.":""}function sa(n,i,s,h){if(n=n.options,i){i={};for(var b=0;b<s.length;b++)i["$"+s[b]]=!0;for(s=0;s<n.length;s++)b=i.hasOwnProperty("$"+n[s].value),n[s].selected!==b&&(n[s].selected=b),b&&h&&(n[s].defaultSelected=!0)}else{for(s=""+Jt(s),i=null,b=0;b<n.length;b++){if(n[b].value===s){n[b].selected=!0,h&&(n[b].defaultSelected=!0);return}i!==null||n[b].disabled||(i=n[b])}i!==null&&(i.selected=!0)}}function ga(n,i){for(n=0;n<Cx.length;n++){var s=Cx[n];if(i[s]!=null){var h=vr(i[s]);i.multiple&&!h?console.error("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",s,Qa()):!i.multiple&&h&&console.error("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",s,Qa())}}i.value===void 0||i.defaultValue===void 0||Wh||(console.error("Select elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled select element and remove one of these props. More info: https://react.dev/link/controlled-components"),Wh=!0)}function jr(n,i){i.value===void 0||i.defaultValue===void 0||xx||(console.error("%s contains a textarea with both value and defaultValue props. Textarea elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled textarea and remove one of these props. More info: https://react.dev/link/controlled-components",Bt()||"A component"),xx=!0),i.children!=null&&i.value==null&&console.error("Use the `defaultValue` or `value` props instead of setting children on <textarea>.")}function hr(n,i,s){if(i!=null&&(i=""+Jt(i),i!==n.value&&(n.value=i),s==null)){n.defaultValue!==i&&(n.defaultValue=i);return}n.defaultValue=s!=null?""+Jt(s):""}function zt(n,i,s,h){if(i==null){if(h!=null){if(s!=null)throw Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(vr(h)){if(1<h.length)throw Error("<textarea> can only have at most one child.");h=h[0]}s=h}s==null&&(s=""),i=s}s=Jt(i),n.defaultValue=s,h=n.textContent,h===s&&h!==""&&h!==null&&(n.value=h)}function ln(n,i){return n.serverProps===void 0&&n.serverTail.length===0&&n.children.length===1&&3<n.distanceFromLeaf&&n.distanceFromLeaf>15-i?ln(n.children[0],i):n}function an(n){return" "+" ".repeat(n)}function za(n){return"+ "+" ".repeat(n)}function ja(n){return"- "+" ".repeat(n)}function va(n){switch(n.tag){case 26:case 27:case 5:return n.type;case 16:return"Lazy";case 13:return"Suspense";case 19:return"SuspenseList";case 0:case 15:return n=n.type,n.displayName||n.name||null;case 11:return n=n.type.render,n.displayName||n.name||null;case 1:return n=n.type,n.displayName||n.name||null;default:return null}}function Lr(n,i){return Bg.test(n)?(n=JSON.stringify(n),n.length>i-2?8>i?'{"..."}':"{"+n.slice(0,i-7)+'..."}':"{"+n+"}"):n.length>i?5>i?'{"..."}':n.slice(0,i-3)+"...":n}function oi(n,i,s){var h=120-2*s;if(i===null)return za(s)+Lr(n,h)+`
|
|
127
|
+
`;if(typeof i=="string"){for(var b=0;b<i.length&&b<n.length&&i.charCodeAt(b)===n.charCodeAt(b);b++);return b>h-8&&10<b&&(n="..."+n.slice(b-8),i="..."+i.slice(b-8)),za(s)+Lr(n,h)+`
|
|
128
|
+
`+ja(s)+Lr(i,h)+`
|
|
129
|
+
`}return an(s)+Lr(n,h)+`
|
|
130
|
+
`}function Vr(n){return Object.prototype.toString.call(n).replace(/^\[object (.*)\]$/,function(i,s){return s})}function li(n,i){switch(typeof n){case"string":return n=JSON.stringify(n),n.length>i?5>i?'"..."':n.slice(0,i-4)+'..."':n;case"object":if(n===null)return"null";if(vr(n))return"[...]";if(n.$$typeof===Ns)return(i=P(n.type))?"<"+i+">":"<...>";var s=Vr(n);if(s==="Object"){s="",i-=2;for(var h in n)if(n.hasOwnProperty(h)){var b=JSON.stringify(h);if(b!=='"'+h+'"'&&(h=b),i-=h.length-2,b=li(n[h],15>i?i:15),i-=b.length,0>i){s+=s===""?"...":", ...";break}s+=(s===""?"":",")+h+":"+b}return"{"+s+"}"}return s;case"function":return(i=n.displayName||n.name)?"function "+i:"function";default:return String(n)}}function Hr(n,i){return typeof n!="string"||Bg.test(n)?"{"+li(n,i-2)+"}":n.length>i-2?5>i?'"..."':'"'+n.slice(0,i-5)+'..."':'"'+n+'"'}function dn(n,i,s){var h=120-s.length-n.length,b=[],x;for(x in i)if(i.hasOwnProperty(x)&&x!=="children"){var N=Hr(i[x],120-s.length-x.length-1);h-=x.length+N.length+2,b.push(x+"="+N)}return b.length===0?s+"<"+n+`>
|
|
131
|
+
`:0<h?s+"<"+n+" "+b.join(" ")+`>
|
|
132
|
+
`:s+"<"+n+`
|
|
133
|
+
`+s+" "+b.join(`
|
|
134
|
+
`+s+" ")+`
|
|
135
|
+
`+s+`>
|
|
136
|
+
`}function Gt(n,i,s){var h="",b=un({},i),x;for(x in n)if(n.hasOwnProperty(x)){delete b[x];var N=120-2*s-x.length-2,L=li(n[x],N);i.hasOwnProperty(x)?(N=li(i[x],N),h+=za(s)+x+": "+L+`
|
|
137
|
+
`,h+=ja(s)+x+": "+N+`
|
|
138
|
+
`):h+=za(s)+x+": "+L+`
|
|
139
|
+
`}for(var Z in b)b.hasOwnProperty(Z)&&(n=li(b[Z],120-2*s-Z.length-2),h+=ja(s)+Z+": "+n+`
|
|
140
|
+
`);return h}function La(n,i,s,h){var b="",x=new Map;for(ee in s)s.hasOwnProperty(ee)&&x.set(ee.toLowerCase(),ee);if(x.size===1&&x.has("children"))b+=dn(n,i,an(h));else{for(var N in i)if(i.hasOwnProperty(N)&&N!=="children"){var L=120-2*(h+1)-N.length-1,Z=x.get(N.toLowerCase());if(Z!==void 0){x.delete(N.toLowerCase());var ee=i[N];Z=s[Z];var De=Hr(ee,L);L=Hr(Z,L),typeof ee=="object"&&ee!==null&&typeof Z=="object"&&Z!==null&&Vr(ee)==="Object"&&Vr(Z)==="Object"&&(2<Object.keys(ee).length||2<Object.keys(Z).length||-1<De.indexOf("...")||-1<L.indexOf("..."))?b+=an(h+1)+N+`={{
|
|
141
|
+
`+Gt(ee,Z,h+2)+an(h+1)+`}}
|
|
142
|
+
`:(b+=za(h+1)+N+"="+De+`
|
|
143
|
+
`,b+=ja(h+1)+N+"="+L+`
|
|
144
|
+
`)}else b+=an(h+1)+N+"="+Hr(i[N],L)+`
|
|
145
|
+
`}x.forEach(function(Ve){if(Ve!=="children"){var Ae=120-2*(h+1)-Ve.length-1;b+=ja(h+1)+Ve+"="+Hr(s[Ve],Ae)+`
|
|
146
|
+
`}}),b=b===""?an(h)+"<"+n+`>
|
|
147
|
+
`:an(h)+"<"+n+`
|
|
148
|
+
`+b+an(h)+`>
|
|
149
|
+
`}return n=s.children,i=i.children,typeof n=="string"||typeof n=="number"||typeof n=="bigint"?(x="",(typeof i=="string"||typeof i=="number"||typeof i=="bigint")&&(x=""+i),b+=oi(x,""+n,h+1)):(typeof i=="string"||typeof i=="number"||typeof i=="bigint")&&(b=n==null?b+oi(""+i,null,h+1):b+oi(""+i,void 0,h+1)),b}function Ia(n,i){var s=va(n);if(s===null){for(s="",n=n.child;n;)s+=Ia(n,i),n=n.sibling;return s}return an(i)+"<"+s+`>
|
|
150
|
+
`}function ea(n,i){var s=ln(n,i);if(s!==n&&(n.children.length!==1||n.children[0]!==s))return an(i)+`...
|
|
151
|
+
`+ea(s,i+1);s="";var h=n.fiber._debugInfo;if(h)for(var b=0;b<h.length;b++){var x=h[b].name;typeof x=="string"&&(s+=an(i)+"<"+x+`>
|
|
152
|
+
`,i++)}if(h="",b=n.fiber.pendingProps,n.fiber.tag===6)h=oi(b,n.serverProps,i),i++;else if(x=va(n.fiber),x!==null)if(n.serverProps===void 0){h=i;var N=120-2*h-x.length-2,L="";for(ee in b)if(b.hasOwnProperty(ee)&&ee!=="children"){var Z=Hr(b[ee],15);if(N-=ee.length+Z.length+2,0>N){L+=" ...";break}L+=" "+ee+"="+Z}h=an(h)+"<"+x+L+`>
|
|
153
|
+
`,i++}else n.serverProps===null?(h=dn(x,b,za(i)),i++):typeof n.serverProps=="string"?console.error("Should not have matched a non HostText fiber to a Text node. This is a bug in React."):(h=La(x,b,n.serverProps,i),i++);var ee="";for(b=n.fiber.child,x=0;b&&x<n.children.length;)N=n.children[x],N.fiber===b?(ee+=ea(N,i),x++):ee+=Ia(b,i),b=b.sibling;for(b&&0<n.children.length&&(ee+=an(i)+`...
|
|
154
|
+
`),b=n.serverTail,n.serverProps===null&&i--,n=0;n<b.length;n++)x=b[n],ee=typeof x=="string"?ee+(ja(i)+Lr(x,120-2*i)+`
|
|
155
|
+
`):ee+dn(x.type,x.props,ja(i));return s+h+ee}function Kn(n){try{return`
|
|
156
|
+
|
|
157
|
+
`+ea(n,0)}catch{return""}}function Br(n,i,s){for(var h=i,b=null,x=0;h;)h===n&&(x=0),b={fiber:h,children:b!==null?[b]:[],serverProps:h===i?s:h===n?null:void 0,serverTail:[],distanceFromLeaf:x},x++,h=h.return;return b!==null?Kn(b).replaceAll(/^[+-]/gm,">"):""}function xr(n,i){var s=un({},n||Pg),h={tag:i};return Zh.indexOf(i)!==-1&&(s.aTagInScope=null,s.buttonTagInScope=null,s.nobrTagInScope=null),Lb.indexOf(i)!==-1&&(s.pTagInButtonScope=null),jb.indexOf(i)!==-1&&i!=="address"&&i!=="div"&&i!=="p"&&(s.listItemTagAutoclosing=null,s.dlItemTagAutoclosing=null),s.current=h,i==="form"&&(s.formTag=h),i==="a"&&(s.aTagInScope=h),i==="button"&&(s.buttonTagInScope=h),i==="nobr"&&(s.nobrTagInScope=h),i==="p"&&(s.pTagInButtonScope=h),i==="li"&&(s.listItemTagAutoclosing=h),(i==="dd"||i==="dt")&&(s.dlItemTagAutoclosing=h),i==="#document"||i==="html"?s.containerTagInScope=null:s.containerTagInScope||(s.containerTagInScope=h),n!==null||i!=="#document"&&i!=="html"&&i!=="body"?s.implicitRootScope===!0&&(s.implicitRootScope=!1):s.implicitRootScope=!0,s}function ar(n,i,s){switch(i){case"select":return n==="hr"||n==="option"||n==="optgroup"||n==="script"||n==="template"||n==="#text";case"optgroup":return n==="option"||n==="#text";case"option":return n==="#text";case"tr":return n==="th"||n==="td"||n==="style"||n==="script"||n==="template";case"tbody":case"thead":case"tfoot":return n==="tr"||n==="style"||n==="script"||n==="template";case"colgroup":return n==="col"||n==="template";case"table":return n==="caption"||n==="colgroup"||n==="tbody"||n==="tfoot"||n==="thead"||n==="style"||n==="script"||n==="template";case"head":return n==="base"||n==="basefont"||n==="bgsound"||n==="link"||n==="meta"||n==="title"||n==="noscript"||n==="noframes"||n==="style"||n==="script"||n==="template";case"html":if(s)break;return n==="head"||n==="body"||n==="frameset";case"frameset":return n==="frame";case"#document":if(!s)return n==="html"}switch(n){case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return i!=="h1"&&i!=="h2"&&i!=="h3"&&i!=="h4"&&i!=="h5"&&i!=="h6";case"rp":case"rt":return Ex.indexOf(i)===-1;case"caption":case"col":case"colgroup":case"frameset":case"frame":case"tbody":case"td":case"tfoot":case"th":case"thead":case"tr":return i==null;case"head":return s||i===null;case"html":return s&&i==="#document"||i===null;case"body":return s&&(i==="#document"||i==="html")||i===null}return!0}function yo(n,i){switch(n){case"address":case"article":case"aside":case"blockquote":case"center":case"details":case"dialog":case"dir":case"div":case"dl":case"fieldset":case"figcaption":case"figure":case"footer":case"header":case"hgroup":case"main":case"menu":case"nav":case"ol":case"p":case"section":case"summary":case"ul":case"pre":case"listing":case"table":case"hr":case"xmp":case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return i.pTagInButtonScope;case"form":return i.formTag||i.pTagInButtonScope;case"li":return i.listItemTagAutoclosing;case"dd":case"dt":return i.dlItemTagAutoclosing;case"button":return i.buttonTagInScope;case"a":return i.aTagInScope;case"nobr":return i.nobrTagInScope}return null}function si(n,i){for(;n;){switch(n.tag){case 5:case 26:case 27:if(n.type===i)return n}n=n.return}return null}function Wi(n,i){i=i||Pg;var s=i.current;if(i=(s=ar(n,s&&s.tag,i.implicitRootScope)?null:s)?null:yo(n,i),i=s||i,!i)return!0;var h=i.tag;if(i=String(!!s)+"|"+n+"|"+h,fl[i])return!1;fl[i]=!0;var b=(i=Gr)?si(i.return,h):null,x=i!==null&&b!==null?Br(b,i,null):"",N="<"+n+">";return s?(s="",h==="table"&&n==="tr"&&(s+=" Add a <tbody>, <thead> or <tfoot> to your code to match the DOM tree generated by the browser."),console.error(`In HTML, %s cannot be a child of <%s>.%s
|
|
158
|
+
This will cause a hydration error.%s`,N,h,s,x)):console.error(`In HTML, %s cannot be a descendant of <%s>.
|
|
159
|
+
This will cause a hydration error.%s`,N,h,x),i&&(n=i.return,b===null||n===null||b===n&&n._debugOwner===i._debugOwner||ot(b,function(){console.error(`<%s> cannot contain a nested %s.
|
|
160
|
+
See this log for the ancestor stack trace.`,h,N)})),!1}function Fa(n,i,s){if(s||ar("#text",i,!1))return!0;if(s="#text|"+i,fl[s])return!1;fl[s]=!0;var h=(s=Gr)?si(s,i):null;return s=s!==null&&h!==null?Br(h,s,s.tag!==6?{children:null}:null):"",/\S/.test(n)?console.error(`In HTML, text nodes cannot be a child of <%s>.
|
|
161
|
+
This will cause a hydration error.%s`,i,s):console.error(`In HTML, whitespace text nodes cannot be a child of <%s>. Make sure you don't have any extra whitespace between tags on each line of your source code.
|
|
162
|
+
This will cause a hydration error.%s`,i,s),!1}function Po(n,i){if(i){var s=n.firstChild;if(s&&s===n.lastChild&&s.nodeType===3){s.nodeValue=i;return}}n.textContent=i}function kd(n){return n.replace(dA,function(i,s){return s.toUpperCase()})}function Er(n,i,s){var h=i.indexOf("--")===0;h||(-1<i.indexOf("-")?Ll.hasOwnProperty(i)&&Ll[i]||(Ll[i]=!0,console.error("Unsupported style property %s. Did you mean %s?",i,kd(i.replace(Lu,"ms-")))):Kh.test(i)?Ll.hasOwnProperty(i)&&Ll[i]||(Ll[i]=!0,console.error("Unsupported vendor-prefixed style property %s. Did you mean %s?",i,i.charAt(0).toUpperCase()+i.slice(1))):!Vb.test(s)||Hb.hasOwnProperty(s)&&Hb[s]||(Hb[s]=!0,console.error(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,i,s.replace(Vb,""))),typeof s=="number"&&(isNaN(s)?Bb||(Bb=!0,console.error("`NaN` is an invalid value for the `%s` css style property.",i)):isFinite(s)||Qh||(Qh=!0,console.error("`Infinity` is an invalid value for the `%s` css style property.",i)))),s==null||typeof s=="boolean"||s===""?h?n.setProperty(i,""):i==="float"?n.cssFloat="":n[i]="":h?n.setProperty(i,s):typeof s!="number"||s===0||Pb.has(i)?i==="float"?n.cssFloat=s:(oe(s,i),n[i]=(""+s).trim()):n[i]=s+"px"}function Uo(n,i,s){if(i!=null&&typeof i!="object")throw Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");if(i&&Object.freeze(i),n=n.style,s!=null){if(i){var h={};if(s){for(var b in s)if(s.hasOwnProperty(b)&&!i.hasOwnProperty(b))for(var x=jl[b]||[b],N=0;N<x.length;N++)h[x[N]]=b}for(var L in i)if(i.hasOwnProperty(L)&&(!s||s[L]!==i[L]))for(b=jl[L]||[L],x=0;x<b.length;x++)h[b[x]]=L;L={};for(var Z in i)for(b=jl[Z]||[Z],x=0;x<b.length;x++)L[b[x]]=Z;Z={};for(var ee in h)if(b=h[ee],(x=L[ee])&&b!==x&&(N=b+","+x,!Z[N])){Z[N]=!0,N=console;var De=i[b];N.error.call(N,"%s a style property during rerender (%s) when a conflicting property is set (%s) can lead to styling bugs. To avoid this, don't mix shorthand and non-shorthand properties for the same value; instead, replace the shorthand with separate values.",De==null||typeof De=="boolean"||De===""?"Removing":"Updating",b,x)}}for(var Ve in s)!s.hasOwnProperty(Ve)||i!=null&&i.hasOwnProperty(Ve)||(Ve.indexOf("--")===0?n.setProperty(Ve,""):Ve==="float"?n.cssFloat="":n[Ve]="");for(var Ae in i)ee=i[Ae],i.hasOwnProperty(Ae)&&s[Ae]!==ee&&Er(n,Ae,ee)}else for(h in i)i.hasOwnProperty(h)&&Er(n,h,i[h])}function Zi(n){if(n.indexOf("-")===-1)return!1;switch(n){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}}function Pr(n){return Ig.get(n)||n}function Ti(n,i){if(Nl.call(Vu,i)&&Vu[i])return!0;if(wx.test(i)){if(n="aria-"+i.slice(4).toLowerCase(),n=ud.hasOwnProperty(n)?n:null,n==null)return console.error("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",i),Vu[i]=!0;if(i!==n)return console.error("Invalid ARIA attribute `%s`. Did you mean `%s`?",i,n),Vu[i]=!0}if(Fg.test(i)){if(n=i.toLowerCase(),n=ud.hasOwnProperty(n)?n:null,n==null)return Vu[i]=!0,!1;i!==n&&(console.error("Unknown ARIA attribute `%s`. Did you mean `%s`?",i,n),Vu[i]=!0)}return!0}function Ju(n,i){var s=[],h;for(h in i)Ti(n,h)||s.push(h);i=s.map(function(b){return"`"+b+"`"}).join(", "),s.length===1?console.error("Invalid aria prop %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",i,n):1<s.length&&console.error("Invalid aria props %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",i,n)}function nu(n,i,s,h){if(Nl.call(Ar,i)&&Ar[i])return!0;var b=i.toLowerCase();if(b==="onfocusin"||b==="onfocusout")return console.error("React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React."),Ar[i]=!0;if(typeof s=="function"&&(n==="form"&&i==="action"||n==="input"&&i==="formAction"||n==="button"&&i==="formAction"))return!0;if(h!=null){if(n=h.possibleRegistrationNames,h.registrationNameDependencies.hasOwnProperty(i))return!0;if(h=n.hasOwnProperty(b)?n[b]:null,h!=null)return console.error("Invalid event handler property `%s`. Did you mean `%s`?",i,h),Ar[i]=!0;if(o.test(i))return console.error("Unknown event handler property `%s`. It will be ignored.",i),Ar[i]=!0}else if(o.test(i))return u.test(i)&&console.error("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",i),Ar[i]=!0;if(d.test(i)||v.test(i))return!0;if(b==="innerhtml")return console.error("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),Ar[i]=!0;if(b==="aria")return console.error("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),Ar[i]=!0;if(b==="is"&&s!==null&&s!==void 0&&typeof s!="string")return console.error("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof s),Ar[i]=!0;if(typeof s=="number"&&isNaN(s))return console.error("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",i),Ar[i]=!0;if(Jh.hasOwnProperty(b)){if(b=Jh[b],b!==i)return console.error("Invalid DOM property `%s`. Did you mean `%s`?",i,b),Ar[i]=!0}else if(i!==b)return console.error("React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.",i,b),Ar[i]=!0;switch(i){case"dangerouslySetInnerHTML":case"children":case"style":case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":return!0;case"innerText":case"textContent":return!0}switch(typeof s){case"boolean":switch(i){case"autoFocus":case"checked":case"multiple":case"muted":case"selected":case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":case"capture":case"download":case"inert":return!0;default:return b=i.toLowerCase().slice(0,5),b==="data-"||b==="aria-"?!0:(s?console.error('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.',s,i,i,s,i):console.error('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.',s,i,i,s,i,i,i),Ar[i]=!0)}case"function":case"symbol":return Ar[i]=!0,!1;case"string":if(s==="false"||s==="true"){switch(i){case"checked":case"selected":case"multiple":case"muted":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":case"inert":break;default:return!0}console.error("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",s,i,s==="false"?"The browser will interpret it as a truthy value.":'Although this works, it will not work as expected if you pass the string "false".',i,s),Ar[i]=!0}}return!0}function uf(n,i,s){var h=[],b;for(b in i)nu(n,b,i[b],s)||h.push(b);i=h.map(function(x){return"`"+x+"`"}).join(", "),h.length===1?console.error("Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://react.dev/link/attribute-behavior ",i,n):1<h.length&&console.error("Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://react.dev/link/attribute-behavior ",i,n)}function Ki(n){return w.test(""+n)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":n}function Et(n){return n=n.target||n.srcElement||window,n.correspondingUseElement&&(n=n.correspondingUseElement),n.nodeType===3?n.parentNode:n}function Qt(n){var i=et(n);if(i&&(n=i.stateNode)){var s=n[ki]||null;e:switch(n=i.stateNode,i.type){case"input":if(xt(n,s.value,s.defaultValue,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name),i=s.name,s.type==="radio"&&i!=null){for(s=n;s.parentNode;)s=s.parentNode;for(ae(i,"name"),s=s.querySelectorAll('input[name="'+nn(""+i)+'"][type="radio"]'),i=0;i<s.length;i++){var h=s[i];if(h!==n&&h.form===n.form){var b=h[ki]||null;if(!b)throw Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");xt(h,b.value,b.defaultValue,b.defaultValue,b.checked,b.defaultChecked,b.type,b.name)}}for(i=0;i<s.length;i++)h=s[i],h.form===n.form&&nr(h)}break e;case"textarea":hr(n,s.value,s.defaultValue);break e;case"select":i=s.value,i!=null&&sa(n,!!s.multiple,i,!1)}}}function qn(n,i,s){if(se)return n(i,s);se=!0;try{var h=n(i);return h}finally{if(se=!1,(B!==null||W!==null)&&(Cc(),B&&(i=B,n=W,W=B=null,Qt(i),n)))for(i=0;i<n.length;i++)Qt(n[i])}}function Bn(n,i){var s=n.stateNode;if(s===null)return null;var h=s[ki]||null;if(h===null)return null;s=h[i];e:switch(i){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(h=!h.disabled)||(n=n.type,h=!(n==="button"||n==="input"||n==="select"||n==="textarea")),n=!h;break e;default:n=!1}if(n)return null;if(s&&typeof s!="function")throw Error("Expected `"+i+"` listener to be a function, instead got a value of `"+typeof s+"` type.");return s}function ya(){if(en)return en;var n,i=Ne,s=i.length,h,b="value"in Te?Te.value:Te.textContent,x=b.length;for(n=0;n<s&&i[n]===b[n];n++);var N=s-n;for(h=1;h<=N&&i[s-h]===b[x-h];h++);return en=b.slice(n,1<h?1-h:void 0)}function bo(n){var i=n.keyCode;return"charCode"in n?(n=n.charCode,n===0&&i===13&&(n=13)):n=i,n===10&&(n=13),32<=n||n===13?n:0}function us(){return!0}function au(){return!1}function ka(n){function i(s,h,b,x,N){this._reactName=s,this._targetInst=b,this.type=h,this.nativeEvent=x,this.target=N,this.currentTarget=null;for(var L in n)n.hasOwnProperty(L)&&(s=n[L],this[L]=s?s(x):x[L]);return this.isDefaultPrevented=(x.defaultPrevented!=null?x.defaultPrevented:x.returnValue===!1)?us:au,this.isPropagationStopped=au,this}return un(i.prototype,{preventDefault:function(){this.defaultPrevented=!0;var s=this.nativeEvent;s&&(s.preventDefault?s.preventDefault():typeof s.returnValue!="unknown"&&(s.returnValue=!1),this.isDefaultPrevented=us)},stopPropagation:function(){var s=this.nativeEvent;s&&(s.stopPropagation?s.stopPropagation():typeof s.cancelBubble!="unknown"&&(s.cancelBubble=!0),this.isPropagationStopped=us)},persist:function(){},isPersistent:us}),i}function EC(n){var i=this.nativeEvent;return i.getModifierState?i.getModifierState(n):(n=xre[n])?!!i[n]:!1}function Kr(){return EC}function ru(n,i){switch(n){case"keyup":return zre.indexOf(i.keyCode)!==-1;case"keydown":return i.keyCode!==cL;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Gd(n){return n=n.detail,typeof n=="object"&&"data"in n?n.data:null}function qd(n,i){switch(n){case"compositionend":return Gd(i);case"keypress":return i.which!==dL?null:(mL=!0,hL);case"textInput":return n=i.data,n===hL&&mL?null:n;default:return null}}function XR(n,i){if(kg)return n==="compositionend"||!mA&&ru(n,i)?(n=ya(),en=Ne=Te=null,kg=!1,n):null;switch(n){case"paste":return null;case"keypress":if(!(i.ctrlKey||i.altKey||i.metaKey)||i.ctrlKey&&i.altKey){if(i.char&&1<i.char.length)return i.char;if(i.which)return String.fromCharCode(i.which)}return null;case"compositionend":return fL&&i.locale!=="ko"?null:i.data;default:return null}}function dp(n){var i=n&&n.nodeName&&n.nodeName.toLowerCase();return i==="input"?!!Lre[n.type]:i==="textarea"}function U0(n){if(!xe)return!1;n="on"+n;var i=n in document;return i||(i=document.createElement("div"),i.setAttribute(n,"return;"),i=typeof i[n]=="function"),i}function cf(n,i,s,h){B?W?W.push(h):W=[h]:B=h,i=ei(i,"onChange"),0<i.length&&(s=new Wn("onChange","change",null,s,h),n.push({event:s,listeners:i}))}function hp(n){ab(n,0)}function Yd(n){var i=lt(n);if(nr(i))return n}function wC(n,i){if(n==="change")return i}function TC(){Ib&&(Ib.detachEvent("onpropertychange",OC),Fb=Ib=null)}function OC(n){if(n.propertyName==="value"&&Yd(Fb)){var i=[];cf(i,Fb,n,Et(n)),qn(hp,i)}}function I0(n,i,s){n==="focusin"?(TC(),Ib=i,Fb=s,Ib.attachEvent("onpropertychange",OC)):n==="focusout"&&TC()}function WR(n){if(n==="selectionchange"||n==="keyup"||n==="keydown")return Yd(Fb)}function ZR(n,i){if(n==="click")return Yd(i)}function KR(n,i){if(n==="input"||n==="change")return Yd(i)}function QR(n,i){return n===i&&(n!==0||1/n===1/i)||n!==n&&i!==i}function Xd(n,i){if(so(n,i))return!0;if(typeof n!="object"||n===null||typeof i!="object"||i===null)return!1;var s=Object.keys(n),h=Object.keys(i);if(s.length!==h.length)return!1;for(h=0;h<s.length;h++){var b=s[h];if(!Nl.call(i,b)||!so(n[b],i[b]))return!1}return!0}function F0(n){for(;n&&n.firstChild;)n=n.firstChild;return n}function RC(n,i){var s=F0(n);n=0;for(var h;s;){if(s.nodeType===3){if(h=n+s.textContent.length,n<=i&&h>=i)return{node:s,offset:i-n};n=h}e:{for(;s;){if(s.nextSibling){s=s.nextSibling;break e}s=s.parentNode}s=void 0}s=F0(s)}}function AC(n,i){return n&&i?n===i?!0:n&&n.nodeType===3?!1:i&&i.nodeType===3?AC(n,i.parentNode):"contains"in n?n.contains(i):n.compareDocumentPosition?!!(n.compareDocumentPosition(i)&16):!1:!1}function MC(n){n=n!=null&&n.ownerDocument!=null&&n.ownerDocument.defaultView!=null?n.ownerDocument.defaultView:window;for(var i=Un(n.document);i instanceof n.HTMLIFrameElement;){try{var s=typeof i.contentWindow.location.href=="string"}catch{s=!1}if(s)n=i.contentWindow;else break;i=Un(n.document)}return i}function k0(n){var i=n&&n.nodeName&&n.nodeName.toLowerCase();return i&&(i==="input"&&(n.type==="text"||n.type==="search"||n.type==="tel"||n.type==="url"||n.type==="password")||i==="textarea"||n.contentEditable==="true")}function mp(n,i,s){var h=s.window===s?s.document:s.nodeType===9?s:s.ownerDocument;gA||Gg==null||Gg!==Un(h)||(h=Gg,"selectionStart"in h&&k0(h)?h={start:h.selectionStart,end:h.selectionEnd}:(h=(h.ownerDocument&&h.ownerDocument.defaultView||window).getSelection(),h={anchorNode:h.anchorNode,anchorOffset:h.anchorOffset,focusNode:h.focusNode,focusOffset:h.focusOffset}),kb&&Xd(kb,h)||(kb=h,h=ei(pA,"onSelect"),0<h.length&&(i=new Wn("onSelect","select",null,i,s),n.push({event:i,listeners:h}),i.target=Gg)))}function ec(n,i){var s={};return s[n.toLowerCase()]=i.toLowerCase(),s["Webkit"+n]="webkit"+i,s["Moz"+n]="moz"+i,s}function tc(n){if(vA[n])return vA[n];if(!qg[n])return n;var i=qg[n],s;for(s in i)if(i.hasOwnProperty(s)&&s in gL)return vA[n]=i[s];return n}function Io(n,i){CL.set(n,i),Qe(i,[n])}function Oi(n,i){if(typeof n=="object"&&n!==null){var s=bA.get(n);return s!==void 0?s:(i={value:n,source:i,stack:bt(i)},bA.set(n,i),i)}return{value:n,source:i,stack:bt(i)}}function pp(){for(var n=Yg,i=SA=Yg=0;i<n;){var s=Hl[i];Hl[i++]=null;var h=Hl[i];Hl[i++]=null;var b=Hl[i];Hl[i++]=null;var x=Hl[i];if(Hl[i++]=null,h!==null&&b!==null){var N=h.pending;N===null?b.next=b:(b.next=N.next,N.next=b),h.pending=b}x!==0&&_C(s,b,x)}}function gp(n,i,s,h){Hl[Yg++]=n,Hl[Yg++]=i,Hl[Yg++]=s,Hl[Yg++]=h,SA|=h,n.lanes|=h,n=n.alternate,n!==null&&(n.lanes|=h)}function G0(n,i,s,h){return gp(n,i,s,h),vp(n)}function Ri(n,i){return gp(n,null,null,i),vp(n)}function _C(n,i,s){n.lanes|=s;var h=n.alternate;h!==null&&(h.lanes|=s);for(var b=!1,x=n.return;x!==null;)x.childLanes|=s,h=x.alternate,h!==null&&(h.childLanes|=s),x.tag===22&&(n=x.stateNode,n===null||n._visibility&Ox||(b=!0)),n=x,x=x.return;return n.tag===3?(x=n.stateNode,b&&i!==null&&(b=31-Rr(s),n=x.hiddenUpdates,h=n[b],h===null?n[b]=[i]:h.push(i),i.lane=s|536870912),x):null}function vp(n){if(dS>iie)throw dm=dS=0,hS=ZA=null,Error("Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops.");dm>oie&&(dm=0,hS=null,console.error("Maximum update depth exceeded. This can happen when a component calls setState inside useEffect, but useEffect either doesn't have a dependency array, or one of the dependencies changes on every render.")),n.alternate===null&&(n.flags&4098)!==0&&Jy(n);for(var i=n,s=i.return;s!==null;)i.alternate===null&&(i.flags&4098)!==0&&Jy(n),i=s,s=i.return;return i.tag===3?i.stateNode:null}function nc(n){if(Bl===null)return n;var i=Bl(n);return i===void 0?n:i.current}function q0(n){if(Bl===null)return n;var i=Bl(n);return i===void 0?n!=null&&typeof n.render=="function"&&(i=nc(n.render),n.render!==i)?(i={$$typeof:Nu,render:i},n.displayName!==void 0&&(i.displayName=n.displayName),i):n:i.current}function DC(n,i){if(Bl===null)return!1;var s=n.elementType;i=i.type;var h=!1,b=typeof i=="object"&&i!==null?i.$$typeof:null;switch(n.tag){case 1:typeof i=="function"&&(h=!0);break;case 0:(typeof i=="function"||b===oo)&&(h=!0);break;case 11:(b===Nu||b===oo)&&(h=!0);break;case 14:case 15:(b===Mg||b===oo)&&(h=!0);break;default:return!1}return!!(h&&(n=Bl(s),n!==void 0&&n===Bl(i)))}function yp(n){Bl!==null&&typeof WeakSet=="function"&&(Xg===null&&(Xg=new WeakSet),Xg.add(n))}function ac(n,i,s){var h=n.alternate,b=n.child,x=n.sibling,N=n.tag,L=n.type,Z=null;switch(N){case 0:case 15:case 1:Z=L;break;case 11:Z=L.render}if(Bl===null)throw Error("Expected resolveFamily to be set during hot reload.");var ee=!1;L=!1,Z!==null&&(Z=Bl(Z),Z!==void 0&&(s.has(Z)?L=!0:i.has(Z)&&(N===1?L=!0:ee=!0))),Xg!==null&&(Xg.has(n)||h!==null&&Xg.has(h))&&(L=!0),L&&(n._debugNeedsRemount=!0),(L||ee)&&(h=Ri(n,2),h!==null&&An(h,n,2)),b===null||L||ac(b,i,s),x!==null&&ac(x,i,s)}function JR(n,i,s,h){this.tag=n,this.key=s,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=i,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=h,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null,this.actualDuration=-0,this.actualStartTime=-1.1,this.treeBaseDuration=this.selfBaseDuration=-0,this._debugTask=this._debugStack=this._debugOwner=this._debugInfo=null,this._debugNeedsRemount=!1,this._debugHookTypes=null,EL||typeof Object.preventExtensions!="function"||Object.preventExtensions(this)}function bp(n){return n=n.prototype,!(!n||!n.isReactComponent)}function El(n,i){var s=n.alternate;switch(s===null?(s=T(n.tag,i,n.key,n.mode),s.elementType=n.elementType,s.type=n.type,s.stateNode=n.stateNode,s._debugOwner=n._debugOwner,s._debugStack=n._debugStack,s._debugTask=n._debugTask,s._debugHookTypes=n._debugHookTypes,s.alternate=n,n.alternate=s):(s.pendingProps=i,s.type=n.type,s.flags=0,s.subtreeFlags=0,s.deletions=null,s.actualDuration=-0,s.actualStartTime=-1.1),s.flags=n.flags&65011712,s.childLanes=n.childLanes,s.lanes=n.lanes,s.child=n.child,s.memoizedProps=n.memoizedProps,s.memoizedState=n.memoizedState,s.updateQueue=n.updateQueue,i=n.dependencies,s.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext,_debugThenableState:i._debugThenableState},s.sibling=n.sibling,s.index=n.index,s.ref=n.ref,s.refCleanup=n.refCleanup,s.selfBaseDuration=n.selfBaseDuration,s.treeBaseDuration=n.treeBaseDuration,s._debugInfo=n._debugInfo,s._debugNeedsRemount=n._debugNeedsRemount,s.tag){case 0:case 15:s.type=nc(n.type);break;case 1:s.type=nc(n.type);break;case 11:s.type=q0(n.type)}return s}function Y0(n,i){n.flags&=65011714;var s=n.alternate;return s===null?(n.childLanes=0,n.lanes=i,n.child=null,n.subtreeFlags=0,n.memoizedProps=null,n.memoizedState=null,n.updateQueue=null,n.dependencies=null,n.stateNode=null,n.selfBaseDuration=0,n.treeBaseDuration=0):(n.childLanes=s.childLanes,n.lanes=s.lanes,n.child=s.child,n.subtreeFlags=0,n.deletions=null,n.memoizedProps=s.memoizedProps,n.memoizedState=s.memoizedState,n.updateQueue=s.updateQueue,n.type=s.type,i=s.dependencies,n.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext,_debugThenableState:i._debugThenableState},n.selfBaseDuration=s.selfBaseDuration,n.treeBaseDuration=s.treeBaseDuration),n}function Sp(n,i,s,h,b,x){var N=0,L=n;if(typeof n=="function")bp(n)&&(N=1),L=nc(L);else if(typeof n=="string")N=X(),N=yg(n,s,N)?26:n==="html"||n==="head"||n==="body"?27:5;else e:switch(n){case _g:return i=T(31,s,i,b),i.elementType=_g,i.lanes=x,i;case Du:return So(s.children,b,x,i);case Ac:N=8,b|=Gi,b|=Bs;break;case Bh:return n=s,h=b,typeof n.id!="string"&&console.error('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.',typeof n.id),i=T(12,n,i,h|hi),i.elementType=Bh,i.lanes=x,i.stateNode={effectDuration:0,passiveEffectDuration:0},i;case $u:return i=T(13,s,i,b),i.elementType=$u,i.lanes=x,i;case Ag:return i=T(19,s,i,b),i.elementType=Ag,i.lanes=x,i;default:if(typeof n=="object"&&n!==null)switch(n.$$typeof){case dx:case Fi:N=10;break e;case Ph:N=9;break e;case Nu:N=11,L=q0(L);break e;case Mg:N=14;break e;case oo:N=16,L=null;break e}L="",(n===void 0||typeof n=="object"&&n!==null&&Object.keys(n).length===0)&&(L+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),n===null?s="null":vr(n)?s="array":n!==void 0&&n.$$typeof===Ns?(s="<"+(P(n.type)||"Unknown")+" />",L=" Did you accidentally export a JSX literal instead of a component?"):s=typeof n,(N=h?q(h):null)&&(L+=`
|
|
163
|
+
|
|
164
|
+
Check the render method of \``+N+"`."),N=29,s=Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: "+(s+"."+L)),L=null}return i=T(N,s,i,b),i.elementType=n,i.type=L,i.lanes=x,i._debugOwner=h,i}function Wd(n,i,s){return i=Sp(n.type,n.key,n.props,n._owner,i,s),i._debugOwner=n._owner,i._debugStack=n._debugStack,i._debugTask=n._debugTask,i}function So(n,i,s,h){return n=T(7,n,h,i),n.lanes=s,n}function X0(n,i,s){return n=T(6,n,null,i),n.lanes=s,n}function W0(n,i,s){return i=T(4,n.children!==null?n.children:[],n.key,i),i.lanes=s,i.stateNode={containerInfo:n.containerInfo,pendingChildren:null,implementation:n.implementation},i}function rc(n,i){Fo(),Wg[Zg++]=Ax,Wg[Zg++]=Rx,Rx=n,Ax=i}function Z0(n,i,s){Fo(),Pl[Ul++]=$c,Pl[Ul++]=zc,Pl[Ul++]=em,em=n;var h=$c;n=zc;var b=32-Rr(h)-1;h&=~(1<<b),s+=1;var x=32-Rr(i)+b;if(30<x){var N=b-b%5;x=(h&(1<<N)-1).toString(32),h>>=N,b-=N,$c=1<<32-Rr(i)+b|s<<b|h,zc=x+n}else $c=1<<x|s<<b|h,zc=n}function Cp(n){Fo(),n.return!==null&&(rc(n,1),Z0(n,1,0))}function ic(n){for(;n===Rx;)Rx=Wg[--Zg],Wg[Zg]=null,Ax=Wg[--Zg],Wg[Zg]=null;for(;n===em;)em=Pl[--Ul],Pl[Ul]=null,zc=Pl[--Ul],Pl[Ul]=null,$c=Pl[--Ul],Pl[Ul]=null}function Fo(){Gn||console.error("Expected to be hydrating. This is a bug in React. Please file an issue.")}function oc(n,i){if(n.return===null){if(Il===null)Il={fiber:n,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:i};else{if(Il.fiber!==n)throw Error("Saw multiple hydration diff roots in a pass. This is a bug in React.");Il.distanceFromLeaf>i&&(Il.distanceFromLeaf=i)}return Il}var s=oc(n.return,i+1).children;return 0<s.length&&s[s.length-1].fiber===n?(s=s[s.length-1],s.distanceFromLeaf>i&&(s.distanceFromLeaf=i),s):(i={fiber:n,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:i},s.push(i),i)}function ff(n,i){jc||(n=oc(n,0),n.serverProps=null,i!==null&&(i=hg(i),n.serverTail.push(i)))}function iu(n){var i="",s=Il;throw s!==null&&(Il=null,i=Kn(s)),hf(Oi(Error(`Hydration failed because the server rendered HTML didn't match the client. As a result this tree will be regenerated on the client. This can happen if a SSR-ed Client Component used:
|
|
165
|
+
|
|
166
|
+
- A server/client branch \`if (typeof window !== 'undefined')\`.
|
|
167
|
+
- Variable input such as \`Date.now()\` or \`Math.random()\` which changes each time it's called.
|
|
168
|
+
- Date formatting in a user's locale which doesn't match the server.
|
|
169
|
+
- External changing data without sending a snapshot of it along with the HTML.
|
|
170
|
+
- Invalid HTML tag nesting.
|
|
171
|
+
|
|
172
|
+
It can also happen if the client has a browser extension installed which messes with the HTML before React loaded.
|
|
173
|
+
|
|
174
|
+
https://react.dev/link/hydration-mismatch`+i),n)),CA}function K0(n){var i=n.stateNode,s=n.type,h=n.memoizedProps;switch(i[ti]=n,i[ki]=h,Os(s,h),s){case"dialog":Mn("cancel",i),Mn("close",i);break;case"iframe":case"object":case"embed":Mn("load",i);break;case"video":case"audio":for(s=0;s<mS.length;s++)Mn(mS[s],i);break;case"source":Mn("error",i);break;case"img":case"image":case"link":Mn("error",i),Mn("load",i);break;case"details":Mn("toggle",i);break;case"input":ft("input",h),Mn("invalid",i),pt(i,h),Kt(i,h.value,h.defaultValue,h.checked,h.defaultChecked,h.type,h.name,!0),vn(i);break;case"option":Ln(i,h);break;case"select":ft("select",h),Mn("invalid",i),ga(i,h);break;case"textarea":ft("textarea",h),Mn("invalid",i),jr(i,h),zt(i,h.value,h.defaultValue,h.children),vn(i)}s=h.children,typeof s!="string"&&typeof s!="number"&&typeof s!="bigint"||i.textContent===""+s||h.suppressHydrationWarning===!0||Tc(i.textContent,s)?(h.popover!=null&&(Mn("beforetoggle",i),Mn("toggle",i)),h.onScroll!=null&&Mn("scroll",i),h.onScrollEnd!=null&&Mn("scrollend",i),h.onClick!=null&&(i.onclick=xu),i=!0):i=!1,i||iu(n)}function xp(n){for(uo=n.return;uo;)switch(uo.tag){case 5:case 13:Hu=!1;return;case 27:case 3:Hu=!0;return;default:uo=uo.return}}function lc(n){if(n!==uo)return!1;if(!Gn)return xp(n),Gn=!0,!1;var i=n.tag,s;if((s=i!==3&&i!==27)&&((s=i===5)&&(s=n.type,s=!(s!=="form"&&s!=="button")||wu(n.type,n.memoizedProps)),s=!s),s&&sr){for(s=sr;s;){var h=oc(n,0),b=hg(s);h.serverTail.push(b),s=b.type==="Suspense"?Wf(s):Ui(s.nextSibling)}iu(n)}if(xp(n),i===13){if(n=n.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");sr=Wf(n)}else i===27?(i=sr,gr(n.type)?(n=sM,sM=null,sr=n):sr=i):sr=uo?Ui(n.stateNode.nextSibling):null;return!0}function df(){sr=uo=null,jc=Gn=!1}function Q0(){var n=tm;return n!==null&&(ho===null?ho=n:ho.push.apply(ho,n),tm=null),n}function hf(n){tm===null?tm=[n]:tm.push(n)}function NC(){var n=Il;if(n!==null){Il=null;for(var i=Kn(n);0<n.children.length;)n=n.children[0];ot(n.fiber,function(){console.error(`A tree hydrated but some attributes of the server rendered HTML didn't match the client properties. This won't be patched up. This can happen if a SSR-ed Client Component used:
|
|
175
|
+
|
|
176
|
+
- A server/client branch \`if (typeof window !== 'undefined')\`.
|
|
177
|
+
- Variable input such as \`Date.now()\` or \`Math.random()\` which changes each time it's called.
|
|
178
|
+
- Date formatting in a user's locale which doesn't match the server.
|
|
179
|
+
- External changing data without sending a snapshot of it along with the HTML.
|
|
180
|
+
- Invalid HTML tag nesting.
|
|
181
|
+
|
|
182
|
+
It can also happen if the client has a browser extension installed which messes with the HTML before React loaded.
|
|
183
|
+
|
|
184
|
+
%s%s`,"https://react.dev/link/hydration-mismatch",i)})}}function Ep(){Kg=Mx=null,Qg=!1}function ou(n,i,s){K(xA,i._currentValue,n),i._currentValue=s,K(EA,i._currentRenderer,n),i._currentRenderer!==void 0&&i._currentRenderer!==null&&i._currentRenderer!==RL&&console.error("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),i._currentRenderer=RL}function cs(n,i){n._currentValue=xA.current;var s=EA.current;G(EA,i),n._currentRenderer=s,G(xA,i)}function J0(n,i,s){for(;n!==null;){var h=n.alternate;if((n.childLanes&i)!==i?(n.childLanes|=i,h!==null&&(h.childLanes|=i)):h!==null&&(h.childLanes&i)!==i&&(h.childLanes|=i),n===s)break;n=n.return}n!==s&&console.error("Expected to find the propagation root when scheduling context work. This error is likely caused by a bug in React. Please file an issue.")}function ui(n,i,s,h){var b=n.child;for(b!==null&&(b.return=n);b!==null;){var x=b.dependencies;if(x!==null){var N=b.child;x=x.firstContext;e:for(;x!==null;){var L=x;x=b;for(var Z=0;Z<i.length;Z++)if(L.context===i[Z]){x.lanes|=s,L=x.alternate,L!==null&&(L.lanes|=s),J0(x.return,s,n),h||(N=null);break e}x=L.next}}else if(b.tag===18){if(N=b.return,N===null)throw Error("We just came from a parent so we must have had a parent. This is a bug in React.");N.lanes|=s,x=N.alternate,x!==null&&(x.lanes|=s),J0(N,s,n),N=null}else N=b.child;if(N!==null)N.return=b;else for(N=b;N!==null;){if(N===n){N=null;break}if(b=N.sibling,b!==null){b.return=N.return,N=b;break}N=N.return}b=N}}function fs(n,i,s,h){n=null;for(var b=i,x=!1;b!==null;){if(!x){if((b.flags&524288)!==0)x=!0;else if((b.flags&262144)!==0)break}if(b.tag===10){var N=b.alternate;if(N===null)throw Error("Should have a current fiber. This is a bug in React.");if(N=N.memoizedProps,N!==null){var L=b.type;so(b.pendingProps.value,N.value)||(n!==null?n.push(L):n=[L])}}else if(b===Dg.current){if(N=b.alternate,N===null)throw Error("Should have a current fiber. This is a bug in React.");N.memoizedState.memoizedState!==b.memoizedState.memoizedState&&(n!==null?n.push(yS):n=[yS])}b=b.return}n!==null&&ui(i,n,s,h),i.flags|=262144}function Zd(n){for(n=n.firstContext;n!==null;){if(!so(n.context._currentValue,n.memoizedValue))return!0;n=n.next}return!1}function lu(n){Mx=n,Kg=null,n=n.dependencies,n!==null&&(n.firstContext=null)}function Ea(n){return Qg&&console.error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo()."),wp(Mx,n)}function Kd(n,i){return Mx===null&&lu(n),wp(n,i)}function wp(n,i){var s=i._currentValue;if(i={context:i,memoizedValue:s,next:null},Kg===null){if(n===null)throw Error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().");Kg=i,n.dependencies={lanes:0,firstContext:i,_debugThenableState:null},n.flags|=524288}else Kg=Kg.next=i;return s}function ey(){return{controller:new kre,data:new Map,refCount:0}}function Co(n){n.controller.signal.aborted&&console.warn("A cache instance was retained after it was already freed. This likely indicates a bug in React."),n.refCount++}function sc(n){n.refCount--,0>n.refCount&&console.warn("A cache instance was released after it was already freed. This likely indicates a bug in React."),n.refCount===0&&Gre(qre,function(){n.controller.abort()})}function Qi(){var n=nm;return nm=0,n}function mf(n){var i=nm;return nm=n,i}function pf(n){var i=nm;return nm+=n,i}function ds(n){Do=Jg(),0>n.actualStartTime&&(n.actualStartTime=Do)}function su(n){if(0<=Do){var i=Jg()-Do;n.actualDuration+=i,n.selfBaseDuration=i,Do=-1}}function Tp(n){if(0<=Do){var i=Jg()-Do;n.actualDuration+=i,Do=-1}}function ko(){if(0<=Do){var n=Jg()-Do;Do=-1,nm+=n}}function Qr(){Do=Jg()}function Qd(n){for(var i=n.child;i;)n.actualDuration+=i.actualDuration,i=i.sibling}function $C(n,i){if(Gb===null){var s=Gb=[];wA=0,am=ug(),ev={status:"pending",value:void 0,then:function(h){s.push(h)}}}return wA++,i.then(ty,ty),i}function ty(){if(--wA===0&&Gb!==null){ev!==null&&(ev.status="fulfilled");var n=Gb;Gb=null,am=0,ev=null;for(var i=0;i<n.length;i++)(0,n[i])()}}function eA(n,i){var s=[],h={status:"pending",value:null,reason:null,then:function(b){s.push(b)}};return n.then(function(){h.status="fulfilled",h.value=i;for(var b=0;b<s.length;b++)(0,s[b])(i)},function(b){for(h.status="rejected",h.reason=b,b=0;b<s.length;b++)(0,s[b])(void 0)}),h}function ny(){var n=rm.current;return n!==null?n:Ra.pooledCache}function Op(n,i){i===null?K(rm,rm.current,n):K(rm,i.pool,n)}function ay(){var n=ny();return n===null?null:{parent:qr._currentValue,pool:n}}function ry(){return{didWarnAboutUncachedPromise:!1,thenables:[]}}function Rp(n){return n=n.status,n==="fulfilled"||n==="rejected"}function Ai(){}function iy(n,i,s){Me.actQueue!==null&&(Me.didUsePromise=!0);var h=n.thenables;switch(s=h[s],s===void 0?h.push(i):s!==i&&(n.didWarnAboutUncachedPromise||(n.didWarnAboutUncachedPromise=!0,console.error("A component was suspended by an uncached promise. Creating promises inside a Client Component or hook is not yet supported, except via a Suspense-compatible library or framework.")),i.then(Ai,Ai),i=s),i.status){case"fulfilled":return i.value;case"rejected":throw n=i.reason,eo(n),n;default:if(typeof i.status=="string")i.then(Ai,Ai);else{if(n=Ra,n!==null&&100<n.shellSuspendCounter)throw Error("An unknown Component is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.");n=i,n.status="pending",n.then(function(b){if(i.status==="pending"){var x=i;x.status="fulfilled",x.value=b}},function(b){if(i.status==="pending"){var x=i;x.status="rejected",x.reason=b}})}switch(i.status){case"fulfilled":return i.value;case"rejected":throw n=i.reason,eo(n),n}throw Jb=i,jx=!0,Qb}}function Ji(){if(Jb===null)throw Error("Expected a suspended thenable. This is a bug in React. Please file an issue.");var n=Jb;return Jb=null,jx=!1,n}function eo(n){if(n===Qb||n===zx)throw Error("Hooks are not supported inside an async component. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.")}function uu(n){n.updateQueue={baseState:n.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Jd(n,i){n=n.updateQueue,i.updateQueue===n&&(i.updateQueue={baseState:n.baseState,firstBaseUpdate:n.firstBaseUpdate,lastBaseUpdate:n.lastBaseUpdate,shared:n.shared,callbacks:null})}function Go(n){return{lane:n,tag:NL,payload:null,callback:null,next:null}}function qo(n,i,s){var h=n.updateQueue;if(h===null)return null;if(h=h.shared,RA===h&&!jL){var b=Y(n);console.error(`An update (setState, replaceState, or forceUpdate) was scheduled from inside an update function. Update functions should be pure, with zero side-effects. Consider using componentDidUpdate or a callback.
|
|
185
|
+
|
|
186
|
+
Please update the following component: %s`,b),jL=!0}return(ta&fo)!==dl?(b=h.pending,b===null?i.next=i:(i.next=b.next,b.next=i),h.pending=i,i=vp(n),_C(n,null,s),i):(gp(n,h,i,s),vp(n))}function uc(n,i,s){if(i=i.updateQueue,i!==null&&(i=i.shared,(s&4194048)!==0)){var h=i.lanes;h&=n.pendingLanes,s|=h,i.lanes=s,At(n,s)}}function hs(n,i){var s=n.updateQueue,h=n.alternate;if(h!==null&&(h=h.updateQueue,s===h)){var b=null,x=null;if(s=s.firstBaseUpdate,s!==null){do{var N={lane:s.lane,tag:s.tag,payload:s.payload,callback:null,next:null};x===null?b=x=N:x=x.next=N,s=s.next}while(s!==null);x===null?b=x=i:x=x.next=i}else b=x=i;s={baseState:h.baseState,firstBaseUpdate:b,lastBaseUpdate:x,shared:h.shared,callbacks:h.callbacks},n.updateQueue=s;return}n=s.lastBaseUpdate,n===null?s.firstBaseUpdate=i:n.next=i,s.lastBaseUpdate=i}function gf(){if(AA){var n=ev;if(n!==null)throw n}}function cu(n,i,s,h){AA=!1;var b=n.updateQueue;fd=!1,RA=b.shared;var x=b.firstBaseUpdate,N=b.lastBaseUpdate,L=b.shared.pending;if(L!==null){b.shared.pending=null;var Z=L,ee=Z.next;Z.next=null,N===null?x=ee:N.next=ee,N=Z;var De=n.alternate;De!==null&&(De=De.updateQueue,L=De.lastBaseUpdate,L!==N&&(L===null?De.firstBaseUpdate=ee:L.next=ee,De.lastBaseUpdate=Z))}if(x!==null){var Ve=b.baseState;N=0,De=ee=Z=null,L=x;do{var Ae=L.lane&-536870913,Ie=Ae!==L.lane;if(Ie?(jn&Ae)===Ae:(h&Ae)===Ae){Ae!==0&&Ae===am&&(AA=!0),De!==null&&(De=De.next={lane:0,tag:L.tag,payload:L.payload,callback:null,next:null});e:{Ae=n;var Pt=L,rn=i,Aa=s;switch(Pt.tag){case $L:if(Pt=Pt.payload,typeof Pt=="function"){Qg=!0;var Vn=Pt.call(Aa,Ve,rn);if(Ae.mode&Gi){$e(!0);try{Pt.call(Aa,Ve,rn)}finally{$e(!1)}}Qg=!1,Ve=Vn;break e}Ve=Pt;break e;case OA:Ae.flags=Ae.flags&-65537|128;case NL:if(Vn=Pt.payload,typeof Vn=="function"){if(Qg=!0,Pt=Vn.call(Aa,Ve,rn),Ae.mode&Gi){$e(!0);try{Vn.call(Aa,Ve,rn)}finally{$e(!1)}}Qg=!1}else Pt=Vn;if(Pt==null)break e;Ve=un({},Ve,Pt);break e;case zL:fd=!0}}Ae=L.callback,Ae!==null&&(n.flags|=64,Ie&&(n.flags|=8192),Ie=b.callbacks,Ie===null?b.callbacks=[Ae]:Ie.push(Ae))}else Ie={lane:Ae,tag:L.tag,payload:L.payload,callback:L.callback,next:null},De===null?(ee=De=Ie,Z=Ve):De=De.next=Ie,N|=Ae;if(L=L.next,L===null){if(L=b.shared.pending,L===null)break;Ie=L,L=Ie.next,Ie.next=null,b.lastBaseUpdate=Ie,b.shared.pending=null}}while(!0);De===null&&(Z=Ve),b.baseState=Z,b.firstBaseUpdate=ee,b.lastBaseUpdate=De,x===null&&(b.shared.lanes=0),pd|=N,n.lanes=N,n.memoizedState=Ve}RA=null}function cc(n,i){if(typeof n!="function")throw Error("Invalid argument passed as callback. Expected a function. Instead received: "+n);n.call(i)}function tA(n,i){var s=n.shared.hiddenCallbacks;if(s!==null)for(n.shared.hiddenCallbacks=null,n=0;n<s.length;n++)cc(s[n],i)}function Mi(n,i){var s=n.callbacks;if(s!==null)for(n.callbacks=null,n=0;n<s.length;n++)cc(s[n],i)}function Ap(n,i){var s=Uu;K(Lx,s,n),K(tv,i,n),Uu=s|i.baseLanes}function Yo(n){K(Lx,Uu,n),K(tv,tv.current,n)}function Mp(n){Uu=Lx.current,G(tv,n),G(Lx,n)}function yn(){var n=Le;Gl===null?Gl=[n]:Gl.push(n)}function at(){var n=Le;if(Gl!==null&&(Vc++,Gl[Vc]!==n)){var i=Y(cn);if(!LL.has(i)&&(LL.add(i),Gl!==null)){for(var s="",h=0;h<=Vc;h++){var b=Gl[h],x=h===Vc?n:b;for(b=h+1+". "+b;30>b.length;)b+=" ";b+=x+`
|
|
187
|
+
`,s+=b}console.error(`React has detected a change in the order of Hooks called by %s. This will lead to bugs and errors if not fixed. For more information, read the Rules of Hooks: https://react.dev/link/rules-of-hooks
|
|
188
|
+
|
|
189
|
+
Previous render Next render
|
|
190
|
+
------------------------------------------------------
|
|
191
|
+
%s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
192
|
+
`,i,s)}}}function fu(n){n==null||vr(n)||console.error("%s received a final argument that is not an array (instead, received `%s`). When specified, the final argument must be an array.",Le,typeof n)}function vf(){var n=Y(cn);HL.has(n)||(HL.add(n),console.error("ReactDOM.useFormState has been renamed to React.useActionState. Please update %s to use React.useActionState.",n))}function Sa(){throw Error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
|
|
193
|
+
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
194
|
+
2. You might be breaking the Rules of Hooks
|
|
195
|
+
3. You might have more than one copy of React in the same app
|
|
196
|
+
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`)}function du(n,i){if(tS)return!1;if(i===null)return console.error("%s received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.",Le),!1;n.length!==i.length&&console.error(`The final argument passed to %s changed size between renders. The order and size of this array must remain constant.
|
|
197
|
+
|
|
198
|
+
Previous: %s
|
|
199
|
+
Incoming: %s`,Le,"["+i.join(", ")+"]","["+n.join(", ")+"]");for(var s=0;s<i.length&&s<n.length;s++)if(!so(n[s],i[s]))return!1;return!0}function yf(n,i,s,h,b,x){dd=x,cn=i,Gl=n!==null?n._debugHookTypes:null,Vc=-1,tS=n!==null&&n.type!==i.type,(Object.prototype.toString.call(s)==="[object AsyncFunction]"||Object.prototype.toString.call(s)==="[object AsyncGeneratorFunction]")&&(x=Y(cn),MA.has(x)||(MA.add(x),console.error("%s is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.",x===null?"An unknown Component":"<"+x+">"))),i.memoizedState=null,i.updateQueue=null,i.lanes=0,Me.H=n!==null&&n.memoizedState!==null?DA:Gl!==null?BL:_A,om=x=(i.mode&Gi)!==Da;var N=NA(s,h,b);if(om=!1,av&&(N=_i(i,s,h,b)),x){$e(!0);try{N=_i(i,s,h,b)}finally{$e(!1)}}return eh(n,i),N}function eh(n,i){i._debugHookTypes=Gl,i.dependencies===null?Lc!==null&&(i.dependencies={lanes:0,firstContext:null,_debugThenableState:Lc}):i.dependencies._debugThenableState=Lc,Me.H=Bx;var s=Ca!==null&&Ca.next!==null;if(dd=0,Gl=Le=_r=Ca=cn=null,Vc=-1,n!==null&&(n.flags&65011712)!==(i.flags&65011712)&&console.error("Internal React error: Expected static flag was missing. Please notify the React team."),Vx=!1,eS=0,Lc=null,s)throw Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");n===null||ni||(n=n.dependencies,n!==null&&Zd(n)&&(ni=!0)),jx?(jx=!1,n=!0):n=!1,n&&(i=Y(i)||"Unknown",VL.has(i)||MA.has(i)||(VL.add(i),console.error("`use` was called from inside a try/catch block. This is not allowed and can lead to unexpected behavior. To handle errors triggered by `use`, wrap your component in a error boundary.")))}function _i(n,i,s,h){cn=n;var b=0;do{if(av&&(Lc=null),eS=0,av=!1,b>=Xre)throw Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(b+=1,tS=!1,_r=Ca=null,n.updateQueue!=null){var x=n.updateQueue;x.lastEffect=null,x.events=null,x.stores=null,x.memoCache!=null&&(x.memoCache.index=0)}Vc=-1,Me.H=PL,x=NA(i,s,h)}while(av);return x}function xo(){var n=Me.H,i=n.useState()[0];return i=typeof i.then=="function"?fc(i):i,n=n.useState()[0],(Ca!==null?Ca.memoizedState:null)!==n&&(cn.flags|=1024),i}function ms(){var n=Hx!==0;return Hx=0,n}function Xo(n,i,s){i.updateQueue=n.updateQueue,i.flags=(i.mode&Bs)!==Da?i.flags&-402655237:i.flags&-2053,n.lanes&=~s}function Wo(n){if(Vx){for(n=n.memoizedState;n!==null;){var i=n.queue;i!==null&&(i.pending=null),n=n.next}Vx=!1}dd=0,Gl=_r=Ca=cn=null,Vc=-1,Le=null,av=!1,eS=Hx=0,Lc=null}function rr(){var n={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return _r===null?cn.memoizedState=_r=n:_r=_r.next=n,_r}function Qn(){if(Ca===null){var n=cn.alternate;n=n!==null?n.memoizedState:null}else n=Ca.next;var i=_r===null?cn.memoizedState:_r.next;if(i!==null)_r=i,Ca=n;else{if(n===null)throw cn.alternate===null?Error("Update hook called on initial render. This is likely a bug in React. Please file an issue."):Error("Rendered more hooks than during the previous render.");Ca=n,n={memoizedState:Ca.memoizedState,baseState:Ca.baseState,baseQueue:Ca.baseQueue,queue:Ca.queue,next:null},_r===null?cn.memoizedState=_r=n:_r=_r.next=n}return _r}function th(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function fc(n){var i=eS;return eS+=1,Lc===null&&(Lc=ry()),n=iy(Lc,n,i),i=cn,(_r===null?i.memoizedState:_r.next)===null&&(i=i.alternate,Me.H=i!==null&&i.memoizedState!==null?DA:_A),n}function Ga(n){if(n!==null&&typeof n=="object"){if(typeof n.then=="function")return fc(n);if(n.$$typeof===Fi)return Ea(n)}throw Error("An unsupported type was passed to use(): "+String(n))}function ua(n){var i=null,s=cn.updateQueue;if(s!==null&&(i=s.memoCache),i==null){var h=cn.alternate;h!==null&&(h=h.updateQueue,h!==null&&(h=h.memoCache,h!=null&&(i={data:h.data.map(function(b){return b.slice()}),index:0})))}if(i==null&&(i={data:[],index:0}),s===null&&(s=th(),cn.updateQueue=s),s.memoCache=i,s=i.data[i.index],s===void 0||tS)for(s=i.data[i.index]=Array(n),h=0;h<n;h++)s[h]=hx;else s.length!==n&&console.error("Expected a constant size argument for each invocation of useMemoCache. The previous cache was allocated with size %s but size %s was requested.",s.length,n);return i.index++,s}function bn(n,i){return typeof i=="function"?i(n):i}function ps(n,i,s){var h=rr();if(s!==void 0){var b=s(i);if(om){$e(!0);try{s(i)}finally{$e(!1)}}}else b=i;return h.memoizedState=h.baseState=b,n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:n,lastRenderedState:b},h.queue=n,n=n.dispatch=fh.bind(null,cn,n),[h.memoizedState,n]}function ci(n){var i=Qn();return nh(i,Ca,n)}function nh(n,i,s){var h=n.queue;if(h===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");h.lastRenderedReducer=s;var b=n.baseQueue,x=h.pending;if(x!==null){if(b!==null){var N=b.next;b.next=x.next,x.next=N}i.baseQueue!==b&&console.error("Internal error: Expected work-in-progress queue to be a clone. This is a bug in React."),i.baseQueue=b=x,h.pending=null}if(x=n.baseState,b===null)n.memoizedState=x;else{i=b.next;var L=N=null,Z=null,ee=i,De=!1;do{var Ve=ee.lane&-536870913;if(Ve!==ee.lane?(jn&Ve)===Ve:(dd&Ve)===Ve){var Ae=ee.revertLane;if(Ae===0)Z!==null&&(Z=Z.next={lane:0,revertLane:0,action:ee.action,hasEagerState:ee.hasEagerState,eagerState:ee.eagerState,next:null}),Ve===am&&(De=!0);else if((dd&Ae)===Ae){ee=ee.next,Ae===am&&(De=!0);continue}else Ve={lane:0,revertLane:ee.revertLane,action:ee.action,hasEagerState:ee.hasEagerState,eagerState:ee.eagerState,next:null},Z===null?(L=Z=Ve,N=x):Z=Z.next=Ve,cn.lanes|=Ae,pd|=Ae;Ve=ee.action,om&&s(x,Ve),x=ee.hasEagerState?ee.eagerState:s(x,Ve)}else Ae={lane:Ve,revertLane:ee.revertLane,action:ee.action,hasEagerState:ee.hasEagerState,eagerState:ee.eagerState,next:null},Z===null?(L=Z=Ae,N=x):Z=Z.next=Ae,cn.lanes|=Ve,pd|=Ve;ee=ee.next}while(ee!==null&&ee!==i);if(Z===null?N=x:Z.next=L,!so(x,n.memoizedState)&&(ni=!0,De&&(s=ev,s!==null)))throw s;n.memoizedState=x,n.baseState=N,n.baseQueue=Z,h.lastRenderedState=x}return b===null&&(h.lanes=0),[n.memoizedState,h.dispatch]}function Zo(n){var i=Qn(),s=i.queue;if(s===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");s.lastRenderedReducer=n;var h=s.dispatch,b=s.pending,x=i.memoizedState;if(b!==null){s.pending=null;var N=b=b.next;do x=n(x,N.action),N=N.next;while(N!==b);so(x,i.memoizedState)||(ni=!0),i.memoizedState=x,i.baseQueue===null&&(i.baseState=x),s.lastRenderedState=x}return[x,h]}function _p(n,i,s){var h=cn,b=rr();if(Gn){if(s===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");var x=s();nv||x===s()||(console.error("The result of getServerSnapshot should be cached to avoid an infinite loop"),nv=!0)}else{if(x=i(),nv||(s=i(),so(x,s)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),nv=!0)),Ra===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");(jn&124)!==0||bf(h,i,x)}return b.memoizedState=x,s={value:x,getSnapshot:i},b.queue=s,oh(oy.bind(null,h,s,n),[n]),h.flags|=2048,Ol(kl|Yr,wf(),Sf.bind(null,h,s,x,i),null),x}function ah(n,i,s){var h=cn,b=Qn(),x=Gn;if(x){if(s===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");s=s()}else if(s=i(),!nv){var N=i();so(s,N)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),nv=!0)}(N=!so((Ca||b).memoizedState,s))&&(b.memoizedState=s,ni=!0),b=b.queue;var L=oy.bind(null,h,b,n);if(Di(2048,Yr,L,[n]),b.getSnapshot!==i||N||_r!==null&&_r.memoizedState.tag&kl){if(h.flags|=2048,Ol(kl|Yr,wf(),Sf.bind(null,h,b,s,i),null),Ra===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");x||(dd&124)!==0||bf(h,i,s)}return s}function bf(n,i,s){n.flags|=16384,n={getSnapshot:i,value:s},i=cn.updateQueue,i===null?(i=th(),cn.updateQueue=i,i.stores=[n]):(s=i.stores,s===null?i.stores=[n]:s.push(n))}function Sf(n,i,s,h){i.value=s,i.getSnapshot=h,Cf(i)&&Dp(n)}function oy(n,i,s){return s(function(){Cf(i)&&Dp(n)})}function Cf(n){var i=n.getSnapshot;n=n.value;try{var s=i();return!so(n,s)}catch{return!0}}function Dp(n){var i=Ri(n,2);i!==null&&An(i,n,2)}function gs(n){var i=rr();if(typeof n=="function"){var s=n;if(n=s(),om){$e(!0);try{s()}finally{$e(!1)}}}return i.memoizedState=i.baseState=n,i.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:bn,lastRenderedState:n},i}function Ko(n){n=gs(n);var i=n.queue,s=_f.bind(null,cn,i);return i.dispatch=s,[n.memoizedState,s]}function wl(n){var i=rr();i.memoizedState=i.baseState=n;var s={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return i.queue=s,i=Hp.bind(null,cn,!0,s),s.dispatch=i,[n,i]}function Tl(n,i){var s=Qn();return Np(s,Ca,n,i)}function Np(n,i,s,h){return n.baseState=s,nh(n,Ca,typeof h=="function"?h:bn)}function $p(n,i){var s=Qn();return Ca!==null?Np(s,Ca,n,i):(s.baseState=n,[n,s.queue.dispatch])}function rh(n,i,s,h,b){if(Ss(n))throw Error("Cannot update form state while rendering.");if(n=i.action,n!==null){var x={payload:b,action:n,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(N){x.listeners.push(N)}};Me.T!==null?s(!0):x.isTransition=!1,h(x),s=i.pending,s===null?(x.next=i.pending=x,ih(i,x)):(x.next=s.next,i.pending=s.next=x)}}function ih(n,i){var s=i.action,h=i.payload,b=n.state;if(i.isTransition){var x=Me.T,N={};Me.T=N,Me.T._updatedFibers=new Set;try{var L=s(b,h),Z=Me.S;Z!==null&&Z(N,L),hu(n,i,L)}catch(ee){xf(n,i,ee)}finally{Me.T=x,x===null&&N._updatedFibers&&(n=N._updatedFibers.size,N._updatedFibers.clear(),10<n&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."))}}else try{N=s(b,h),hu(n,i,N)}catch(ee){xf(n,i,ee)}}function hu(n,i,s){s!==null&&typeof s=="object"&&typeof s.then=="function"?(s.then(function(h){Ur(n,i,h)},function(h){return xf(n,i,h)}),i.isTransition||console.error("An async function with useActionState was called outside of a transition. This is likely not what you intended (for example, isPending will not update correctly). Either call the returned function inside startTransition, or pass it to an `action` or `formAction` prop.")):Ur(n,i,s)}function Ur(n,i,s){i.status="fulfilled",i.value=s,ly(i),n.state=s,i=n.pending,i!==null&&(s=i.next,s===i?n.pending=null:(s=s.next,i.next=s,ih(n,s)))}function xf(n,i,s){var h=n.pending;if(n.pending=null,h!==null){h=h.next;do i.status="rejected",i.reason=s,ly(i),i=i.next;while(i!==h)}n.action=null}function ly(n){n=n.listeners;for(var i=0;i<n.length;i++)(0,n[i])()}function zC(n,i){return i}function Ef(n,i){if(Gn){var s=Ra.formState;if(s!==null){e:{var h=cn;if(Gn){if(sr){t:{for(var b=sr,x=Hu;b.nodeType!==8;){if(!x){b=null;break t}if(b=Ui(b.nextSibling),b===null){b=null;break t}}x=b.data,b=x===rM||x===H2?b:null}if(b){sr=Ui(b.nextSibling),h=b.data===rM;break e}}iu(h)}h=!1}h&&(i=s[0])}}return s=rr(),s.memoizedState=s.baseState=i,h={pending:null,lanes:0,dispatch:null,lastRenderedReducer:zC,lastRenderedState:i},s.queue=h,s=_f.bind(null,cn,h),h.dispatch=s,h=gs(!1),x=Hp.bind(null,cn,!1,h.queue),h=rr(),b={state:i,dispatch:null,action:n,pending:null},h.queue=b,s=rh.bind(null,cn,b,x,s),b.dispatch=s,h.memoizedState=n,[i,s,!1]}function zp(n){var i=Qn();return ir(i,Ca,n)}function ir(n,i,s){if(i=nh(n,i,zC)[0],n=ci(bn)[0],typeof i=="object"&&i!==null&&typeof i.then=="function")try{var h=fc(i)}catch(N){throw N===Qb?zx:N}else h=i;i=Qn();var b=i.queue,x=b.dispatch;return s!==i.memoizedState&&(cn.flags|=2048,Ol(kl|Yr,wf(),sy.bind(null,b,s),null)),[h,x,n]}function sy(n,i){n.action=i}function mu(n){var i=Qn(),s=Ca;if(s!==null)return ir(i,s,n);Qn(),i=i.memoizedState,s=Qn();var h=s.queue.dispatch;return s.memoizedState=n,[i,h,!1]}function Ol(n,i,s,h){return n={tag:n,create:s,deps:h,inst:i,next:null},i=cn.updateQueue,i===null&&(i=th(),cn.updateQueue=i),s=i.lastEffect,s===null?i.lastEffect=n.next=n:(h=s.next,s.next=n,n.next=h,i.lastEffect=n),n}function wf(){return{destroy:void 0,resource:void 0}}function pu(n){var i=rr();return n={current:n},i.memoizedState=n}function Eo(n,i,s,h){var b=rr();h=h===void 0?null:h,cn.flags|=n,b.memoizedState=Ol(kl|i,wf(),s,h)}function Di(n,i,s,h){var b=Qn();h=h===void 0?null:h;var x=b.memoizedState.inst;Ca!==null&&h!==null&&du(h,Ca.memoizedState.deps)?b.memoizedState=Ol(i,x,s,h):(cn.flags|=n,b.memoizedState=Ol(kl|i,x,s,h))}function oh(n,i){(cn.mode&Bs)!==Da&&(cn.mode&xL)===Da?Eo(276826112,Yr,n,i):Eo(8390656,Yr,n,i)}function uy(n,i){var s=4194308;return(cn.mode&Bs)!==Da&&(s|=134217728),Eo(s,mi,n,i)}function cy(n,i){if(typeof i=="function"){n=n();var s=i(n);return function(){typeof s=="function"?s():i(null)}}if(i!=null)return i.hasOwnProperty("current")||console.error("Expected useImperativeHandle() first argument to either be a ref callback or React.createRef() object. Instead received: %s.","an object with keys {"+Object.keys(i).join(", ")+"}"),n=n(),i.current=n,function(){i.current=null}}function vs(n,i,s){typeof i!="function"&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",i!==null?typeof i:"null"),s=s!=null?s.concat([n]):null;var h=4194308;(cn.mode&Bs)!==Da&&(h|=134217728),Eo(h,mi,cy.bind(null,i,n),s)}function Tf(n,i,s){typeof i!="function"&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",i!==null?typeof i:"null"),s=s!=null?s.concat([n]):null,Di(4,mi,cy.bind(null,i,n),s)}function Of(n,i){return rr().memoizedState=[n,i===void 0?null:i],n}function lh(n,i){var s=Qn();i=i===void 0?null:i;var h=s.memoizedState;return i!==null&&du(i,h[1])?h[0]:(s.memoizedState=[n,i],n)}function dc(n,i){var s=rr();i=i===void 0?null:i;var h=n();if(om){$e(!0);try{n()}finally{$e(!1)}}return s.memoizedState=[h,i],h}function sh(n,i){var s=Qn();i=i===void 0?null:i;var h=s.memoizedState;if(i!==null&&du(i,h[1]))return h[0];if(h=n(),om){$e(!0);try{n()}finally{$e(!1)}}return s.memoizedState=[h,i],h}function Rf(n,i){var s=rr();return Af(s,n,i)}function jp(n,i){var s=Qn();return dy(s,Ca.memoizedState,n,i)}function fy(n,i){var s=Qn();return Ca===null?Af(s,n,i):dy(s,Ca.memoizedState,n,i)}function Af(n,i,s){return s===void 0||(dd&1073741824)!==0?n.memoizedState=i:(n.memoizedState=s,n=Fy(),cn.lanes|=n,pd|=n,s)}function dy(n,i,s,h){return so(s,i)?s:tv.current!==null?(n=Af(n,s,h),so(n,i)||(ni=!0),n):(dd&42)===0?(ni=!0,n.memoizedState=s):(n=Fy(),cn.lanes|=n,pd|=n,i)}function Mf(n,i,s,h,b){var x=Xn.p;Xn.p=x!==0&&x<$l?x:$l;var N=Me.T,L={};Me.T=L,Hp(n,!1,i,s),L._updatedFibers=new Set;try{var Z=b(),ee=Me.S;if(ee!==null&&ee(L,Z),Z!==null&&typeof Z=="object"&&typeof Z.then=="function"){var De=eA(Z,h);Df(n,i,De,no(n))}else Df(n,i,h,no(n))}catch(Ve){Df(n,i,{then:function(){},status:"rejected",reason:Ve},no(n))}finally{Xn.p=x,Me.T=N,N===null&&L._updatedFibers&&(n=L._updatedFibers.size,L._updatedFibers.clear(),10<n&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."))}}function Lp(n,i,s,h){if(n.tag!==5)throw Error("Expected the form instance to be a HostComponent. This is a bug in React.");var b=hy(n).queue;Mf(n,b,i,vm,s===null?S:function(){return ys(n),s(h)})}function hy(n){var i=n.memoizedState;if(i!==null)return i;i={memoizedState:vm,baseState:vm,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:bn,lastRenderedState:vm},next:null};var s={};return i.next={memoizedState:s,baseState:s,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:bn,lastRenderedState:s},next:null},n.memoizedState=i,n=n.alternate,n!==null&&(n.memoizedState=i),i}function ys(n){Me.T===null&&console.error("requestFormReset was called outside a transition or action. To fix, move to an action, or wrap with startTransition.");var i=hy(n).next.queue;Df(n,i,{},no(n))}function uh(){var n=gs(!1);return n=Mf.bind(null,cn,n.queue,!0,!1),rr().memoizedState=n,[!1,n]}function Vp(){var n=ci(bn)[0],i=Qn().memoizedState;return[typeof n=="boolean"?n:fc(n),i]}function bs(){var n=Zo(bn)[0],i=Qn().memoizedState;return[typeof n=="boolean"?n:fc(n),i]}function Ni(){return Ea(yS)}function hc(){var n=rr(),i=Ra.identifierPrefix;if(Gn){var s=zc,h=$c;s=(h&~(1<<32-Rr(h)-1)).toString(32)+s,i="«"+i+"R"+s,s=Hx++,0<s&&(i+="H"+s.toString(32)),i+="»"}else s=Yre++,i="«"+i+"r"+s.toString(32)+"»";return n.memoizedState=i}function ch(){return rr().memoizedState=my.bind(null,cn)}function my(n,i){for(var s=n.return;s!==null;){switch(s.tag){case 24:case 3:var h=no(s);n=Go(h);var b=qo(s,n,h);b!==null&&(An(b,s,h),uc(b,s,h)),s=ey(),i!=null&&b!==null&&console.error("The seed argument is not enabled outside experimental channels."),n.payload={cache:s};return}s=s.return}}function fh(n,i,s){var h=arguments;typeof h[3]=="function"&&console.error("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect()."),h=no(n);var b={lane:h,revertLane:0,action:s,hasEagerState:!1,eagerState:null,next:null};Ss(n)?dh(i,b):(b=G0(n,i,b,h),b!==null&&(An(b,n,h),py(b,i,h))),Pe(n,h)}function _f(n,i,s){var h=arguments;typeof h[3]=="function"&&console.error("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect()."),h=no(n),Df(n,i,s,h),Pe(n,h)}function Df(n,i,s,h){var b={lane:h,revertLane:0,action:s,hasEagerState:!1,eagerState:null,next:null};if(Ss(n))dh(i,b);else{var x=n.alternate;if(n.lanes===0&&(x===null||x.lanes===0)&&(x=i.lastRenderedReducer,x!==null)){var N=Me.H;Me.H=Us;try{var L=i.lastRenderedState,Z=x(L,s);if(b.hasEagerState=!0,b.eagerState=Z,so(Z,L))return gp(n,i,b,0),Ra===null&&pp(),!1}catch{}finally{Me.H=N}}if(s=G0(n,i,b,h),s!==null)return An(s,n,h),py(s,i,h),!0}return!1}function Hp(n,i,s,h){if(Me.T===null&&am===0&&console.error("An optimistic state update occurred outside a transition or action. To fix, move the update to an action, or wrap with startTransition."),h={lane:2,revertLane:ug(),action:h,hasEagerState:!1,eagerState:null,next:null},Ss(n)){if(i)throw Error("Cannot update optimistic state while rendering.");console.error("Cannot call startTransition while rendering.")}else i=G0(n,s,h,2),i!==null&&An(i,n,2);Pe(n,2)}function Ss(n){var i=n.alternate;return n===cn||i!==null&&i===cn}function dh(n,i){av=Vx=!0;var s=n.pending;s===null?i.next=i:(i.next=s.next,s.next=i),n.pending=i}function py(n,i,s){if((s&4194048)!==0){var h=i.lanes;h&=n.pendingLanes,s|=h,i.lanes=s,At(n,s)}}function mr(n){var i=Tn;return n!=null&&(Tn=i===null?n:i.concat(n)),i}function Nf(n,i,s){for(var h=Object.keys(n.props),b=0;b<h.length;b++){var x=h[b];if(x!=="children"&&x!=="key"){i===null&&(i=Wd(n,s.mode,0),i._debugInfo=Tn,i.return=s),ot(i,function(N){console.error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",N)},x);break}}}function Qo(n){var i=nS;return nS+=1,rv===null&&(rv=ry()),iy(rv,n,i)}function hn(n,i){i=i.props.ref,n.ref=i!==void 0?i:null}function Yn(n,i){throw i.$$typeof===sA?Error(`A React Element from an older version of React was rendered. This is not supported. It can happen if:
|
|
200
|
+
- Multiple copies of the "react" package is used.
|
|
201
|
+
- A library pre-bundled an old copy of "react" or "react/jsx-runtime".
|
|
202
|
+
- A compiler tries to "inline" JSX instead of using the runtime.`):(n=Object.prototype.toString.call(i),Error("Objects are not valid as a React child (found: "+(n==="[object Object]"?"object with keys {"+Object.keys(i).join(", ")+"}":n)+"). If you meant to render a collection of children, use an array instead."))}function Va(n,i){var s=Y(n)||"Component";t2[s]||(t2[s]=!0,i=i.displayName||i.name||"Component",n.tag===3?console.error(`Functions are not valid as a React child. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.
|
|
203
|
+
root.render(%s)`,i,i,i):console.error(`Functions are not valid as a React child. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.
|
|
204
|
+
<%s>{%s}</%s>`,i,i,s,i,s))}function mc(n,i){var s=Y(n)||"Component";n2[s]||(n2[s]=!0,i=String(i),n.tag===3?console.error(`Symbols are not valid as a React child.
|
|
205
|
+
root.render(%s)`,i):console.error(`Symbols are not valid as a React child.
|
|
206
|
+
<%s>%s</%s>`,s,i,s))}function pc(n){function i(ue,ce){if(n){var pe=ue.deletions;pe===null?(ue.deletions=[ce],ue.flags|=16):pe.push(ce)}}function s(ue,ce){if(!n)return null;for(;ce!==null;)i(ue,ce),ce=ce.sibling;return null}function h(ue){for(var ce=new Map;ue!==null;)ue.key!==null?ce.set(ue.key,ue):ce.set(ue.index,ue),ue=ue.sibling;return ce}function b(ue,ce){return ue=El(ue,ce),ue.index=0,ue.sibling=null,ue}function x(ue,ce,pe){return ue.index=pe,n?(pe=ue.alternate,pe!==null?(pe=pe.index,pe<ce?(ue.flags|=67108866,ce):pe):(ue.flags|=67108866,ce)):(ue.flags|=1048576,ce)}function N(ue){return n&&ue.alternate===null&&(ue.flags|=67108866),ue}function L(ue,ce,pe,ke){return ce===null||ce.tag!==6?(ce=X0(pe,ue.mode,ke),ce.return=ue,ce._debugOwner=ue,ce._debugTask=ue._debugTask,ce._debugInfo=Tn,ce):(ce=b(ce,pe),ce.return=ue,ce._debugInfo=Tn,ce)}function Z(ue,ce,pe,ke){var yt=pe.type;return yt===Du?(ce=De(ue,ce,pe.props.children,ke,pe.key),Nf(pe,ce,ue),ce):ce!==null&&(ce.elementType===yt||DC(ce,pe)||typeof yt=="object"&&yt!==null&&yt.$$typeof===oo&&hd(yt)===ce.type)?(ce=b(ce,pe.props),hn(ce,pe),ce.return=ue,ce._debugOwner=pe._owner,ce._debugInfo=Tn,ce):(ce=Wd(pe,ue.mode,ke),hn(ce,pe),ce.return=ue,ce._debugInfo=Tn,ce)}function ee(ue,ce,pe,ke){return ce===null||ce.tag!==4||ce.stateNode.containerInfo!==pe.containerInfo||ce.stateNode.implementation!==pe.implementation?(ce=W0(pe,ue.mode,ke),ce.return=ue,ce._debugInfo=Tn,ce):(ce=b(ce,pe.children||[]),ce.return=ue,ce._debugInfo=Tn,ce)}function De(ue,ce,pe,ke,yt){return ce===null||ce.tag!==7?(ce=So(pe,ue.mode,ke,yt),ce.return=ue,ce._debugOwner=ue,ce._debugTask=ue._debugTask,ce._debugInfo=Tn,ce):(ce=b(ce,pe),ce.return=ue,ce._debugInfo=Tn,ce)}function Ve(ue,ce,pe){if(typeof ce=="string"&&ce!==""||typeof ce=="number"||typeof ce=="bigint")return ce=X0(""+ce,ue.mode,pe),ce.return=ue,ce._debugOwner=ue,ce._debugTask=ue._debugTask,ce._debugInfo=Tn,ce;if(typeof ce=="object"&&ce!==null){switch(ce.$$typeof){case Ns:return pe=Wd(ce,ue.mode,pe),hn(pe,ce),pe.return=ue,ue=mr(ce._debugInfo),pe._debugInfo=Tn,Tn=ue,pe;case mn:return ce=W0(ce,ue.mode,pe),ce.return=ue,ce._debugInfo=Tn,ce;case oo:var ke=mr(ce._debugInfo);return ce=hd(ce),ue=Ve(ue,ce,pe),Tn=ke,ue}if(vr(ce)||H(ce))return pe=So(ce,ue.mode,pe,null),pe.return=ue,pe._debugOwner=ue,pe._debugTask=ue._debugTask,ue=mr(ce._debugInfo),pe._debugInfo=Tn,Tn=ue,pe;if(typeof ce.then=="function")return ke=mr(ce._debugInfo),ue=Ve(ue,Qo(ce),pe),Tn=ke,ue;if(ce.$$typeof===Fi)return Ve(ue,Kd(ue,ce),pe);Yn(ue,ce)}return typeof ce=="function"&&Va(ue,ce),typeof ce=="symbol"&&mc(ue,ce),null}function Ae(ue,ce,pe,ke){var yt=ce!==null?ce.key:null;if(typeof pe=="string"&&pe!==""||typeof pe=="number"||typeof pe=="bigint")return yt!==null?null:L(ue,ce,""+pe,ke);if(typeof pe=="object"&&pe!==null){switch(pe.$$typeof){case Ns:return pe.key===yt?(yt=mr(pe._debugInfo),ue=Z(ue,ce,pe,ke),Tn=yt,ue):null;case mn:return pe.key===yt?ee(ue,ce,pe,ke):null;case oo:return yt=mr(pe._debugInfo),pe=hd(pe),ue=Ae(ue,ce,pe,ke),Tn=yt,ue}if(vr(pe)||H(pe))return yt!==null?null:(yt=mr(pe._debugInfo),ue=De(ue,ce,pe,ke,null),Tn=yt,ue);if(typeof pe.then=="function")return yt=mr(pe._debugInfo),ue=Ae(ue,ce,Qo(pe),ke),Tn=yt,ue;if(pe.$$typeof===Fi)return Ae(ue,ce,Kd(ue,pe),ke);Yn(ue,pe)}return typeof pe=="function"&&Va(ue,pe),typeof pe=="symbol"&&mc(ue,pe),null}function Ie(ue,ce,pe,ke,yt){if(typeof ke=="string"&&ke!==""||typeof ke=="number"||typeof ke=="bigint")return ue=ue.get(pe)||null,L(ce,ue,""+ke,yt);if(typeof ke=="object"&&ke!==null){switch(ke.$$typeof){case Ns:return pe=ue.get(ke.key===null?pe:ke.key)||null,ue=mr(ke._debugInfo),ce=Z(ce,pe,ke,yt),Tn=ue,ce;case mn:return ue=ue.get(ke.key===null?pe:ke.key)||null,ee(ce,ue,ke,yt);case oo:var pn=mr(ke._debugInfo);return ke=hd(ke),ce=Ie(ue,ce,pe,ke,yt),Tn=pn,ce}if(vr(ke)||H(ke))return pe=ue.get(pe)||null,ue=mr(ke._debugInfo),ce=De(ce,pe,ke,yt,null),Tn=ue,ce;if(typeof ke.then=="function")return pn=mr(ke._debugInfo),ce=Ie(ue,ce,pe,Qo(ke),yt),Tn=pn,ce;if(ke.$$typeof===Fi)return Ie(ue,ce,pe,Kd(ce,ke),yt);Yn(ce,ke)}return typeof ke=="function"&&Va(ce,ke),typeof ke=="symbol"&&mc(ce,ke),null}function Pt(ue,ce,pe,ke){if(typeof pe!="object"||pe===null)return ke;switch(pe.$$typeof){case Ns:case mn:g(ue,ce,pe);var yt=pe.key;if(typeof yt!="string")break;if(ke===null){ke=new Set,ke.add(yt);break}if(!ke.has(yt)){ke.add(yt);break}ot(ce,function(){console.error("Encountered two children with the same key, `%s`. Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be duplicated and/or omitted — the behavior is unsupported and could change in a future version.",yt)});break;case oo:pe=hd(pe),Pt(ue,ce,pe,ke)}return ke}function rn(ue,ce,pe,ke){for(var yt=null,pn=null,Ut=null,gn=ce,Cn=ce=0,Na=null;gn!==null&&Cn<pe.length;Cn++){gn.index>Cn?(Na=gn,gn=null):Na=gn.sibling;var br=Ae(ue,gn,pe[Cn],ke);if(br===null){gn===null&&(gn=Na);break}yt=Pt(ue,br,pe[Cn],yt),n&&gn&&br.alternate===null&&i(ue,gn),ce=x(br,ce,Cn),Ut===null?pn=br:Ut.sibling=br,Ut=br,gn=Na}if(Cn===pe.length)return s(ue,gn),Gn&&rc(ue,Cn),pn;if(gn===null){for(;Cn<pe.length;Cn++)gn=Ve(ue,pe[Cn],ke),gn!==null&&(yt=Pt(ue,gn,pe[Cn],yt),ce=x(gn,ce,Cn),Ut===null?pn=gn:Ut.sibling=gn,Ut=gn);return Gn&&rc(ue,Cn),pn}for(gn=h(gn);Cn<pe.length;Cn++)Na=Ie(gn,ue,Cn,pe[Cn],ke),Na!==null&&(yt=Pt(ue,Na,pe[Cn],yt),n&&Na.alternate!==null&&gn.delete(Na.key===null?Cn:Na.key),ce=x(Na,ce,Cn),Ut===null?pn=Na:Ut.sibling=Na,Ut=Na);return n&&gn.forEach(function(Fc){return i(ue,Fc)}),Gn&&rc(ue,Cn),pn}function Aa(ue,ce,pe,ke){if(pe==null)throw Error("An iterable object provided no iterator.");for(var yt=null,pn=null,Ut=ce,gn=ce=0,Cn=null,Na=null,br=pe.next();Ut!==null&&!br.done;gn++,br=pe.next()){Ut.index>gn?(Cn=Ut,Ut=null):Cn=Ut.sibling;var Fc=Ae(ue,Ut,br.value,ke);if(Fc===null){Ut===null&&(Ut=Cn);break}Na=Pt(ue,Fc,br.value,Na),n&&Ut&&Fc.alternate===null&&i(ue,Ut),ce=x(Fc,ce,gn),pn===null?yt=Fc:pn.sibling=Fc,pn=Fc,Ut=Cn}if(br.done)return s(ue,Ut),Gn&&rc(ue,gn),yt;if(Ut===null){for(;!br.done;gn++,br=pe.next())Ut=Ve(ue,br.value,ke),Ut!==null&&(Na=Pt(ue,Ut,br.value,Na),ce=x(Ut,ce,gn),pn===null?yt=Ut:pn.sibling=Ut,pn=Ut);return Gn&&rc(ue,gn),yt}for(Ut=h(Ut);!br.done;gn++,br=pe.next())Cn=Ie(Ut,ue,gn,br.value,ke),Cn!==null&&(Na=Pt(ue,Cn,br.value,Na),n&&Cn.alternate!==null&&Ut.delete(Cn.key===null?gn:Cn.key),ce=x(Cn,ce,gn),pn===null?yt=Cn:pn.sibling=Cn,pn=Cn);return n&&Ut.forEach(function(Sie){return i(ue,Sie)}),Gn&&rc(ue,gn),yt}function Vn(ue,ce,pe,ke){if(typeof pe=="object"&&pe!==null&&pe.type===Du&&pe.key===null&&(Nf(pe,null,ue),pe=pe.props.children),typeof pe=="object"&&pe!==null){switch(pe.$$typeof){case Ns:var yt=mr(pe._debugInfo);e:{for(var pn=pe.key;ce!==null;){if(ce.key===pn){if(pn=pe.type,pn===Du){if(ce.tag===7){s(ue,ce.sibling),ke=b(ce,pe.props.children),ke.return=ue,ke._debugOwner=pe._owner,ke._debugInfo=Tn,Nf(pe,ke,ue),ue=ke;break e}}else if(ce.elementType===pn||DC(ce,pe)||typeof pn=="object"&&pn!==null&&pn.$$typeof===oo&&hd(pn)===ce.type){s(ue,ce.sibling),ke=b(ce,pe.props),hn(ke,pe),ke.return=ue,ke._debugOwner=pe._owner,ke._debugInfo=Tn,ue=ke;break e}s(ue,ce);break}else i(ue,ce);ce=ce.sibling}pe.type===Du?(ke=So(pe.props.children,ue.mode,ke,pe.key),ke.return=ue,ke._debugOwner=ue,ke._debugTask=ue._debugTask,ke._debugInfo=Tn,Nf(pe,ke,ue),ue=ke):(ke=Wd(pe,ue.mode,ke),hn(ke,pe),ke.return=ue,ke._debugInfo=Tn,ue=ke)}return ue=N(ue),Tn=yt,ue;case mn:e:{for(yt=pe,pe=yt.key;ce!==null;){if(ce.key===pe)if(ce.tag===4&&ce.stateNode.containerInfo===yt.containerInfo&&ce.stateNode.implementation===yt.implementation){s(ue,ce.sibling),ke=b(ce,yt.children||[]),ke.return=ue,ue=ke;break e}else{s(ue,ce);break}else i(ue,ce);ce=ce.sibling}ke=W0(yt,ue.mode,ke),ke.return=ue,ue=ke}return N(ue);case oo:return yt=mr(pe._debugInfo),pe=hd(pe),ue=Vn(ue,ce,pe,ke),Tn=yt,ue}if(vr(pe))return yt=mr(pe._debugInfo),ue=rn(ue,ce,pe,ke),Tn=yt,ue;if(H(pe)){if(yt=mr(pe._debugInfo),pn=H(pe),typeof pn!="function")throw Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.");var Ut=pn.call(pe);return Ut===pe?(ue.tag!==0||Object.prototype.toString.call(ue.type)!=="[object GeneratorFunction]"||Object.prototype.toString.call(Ut)!=="[object Generator]")&&(JL||console.error("Using Iterators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. You can also use an Iterable that can iterate multiple times over the same items."),JL=!0):pe.entries!==pn||zA||(console.error("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),zA=!0),ue=Aa(ue,ce,Ut,ke),Tn=yt,ue}if(typeof pe.then=="function")return yt=mr(pe._debugInfo),ue=Vn(ue,ce,Qo(pe),ke),Tn=yt,ue;if(pe.$$typeof===Fi)return Vn(ue,ce,Kd(ue,pe),ke);Yn(ue,pe)}return typeof pe=="string"&&pe!==""||typeof pe=="number"||typeof pe=="bigint"?(yt=""+pe,ce!==null&&ce.tag===6?(s(ue,ce.sibling),ke=b(ce,yt),ke.return=ue,ue=ke):(s(ue,ce),ke=X0(yt,ue.mode,ke),ke.return=ue,ke._debugOwner=ue,ke._debugTask=ue._debugTask,ke._debugInfo=Tn,ue=ke),N(ue)):(typeof pe=="function"&&Va(ue,pe),typeof pe=="symbol"&&mc(ue,pe),s(ue,ce))}return function(ue,ce,pe,ke){var yt=Tn;Tn=null;try{nS=0;var pn=Vn(ue,ce,pe,ke);return rv=null,pn}catch(Na){if(Na===Qb||Na===zx)throw Na;var Ut=T(29,Na,null,ue.mode);Ut.lanes=ke,Ut.return=ue;var gn=Ut._debugInfo=Tn;if(Ut._debugOwner=ue._debugOwner,Ut._debugTask=ue._debugTask,gn!=null){for(var Cn=gn.length-1;0<=Cn;Cn--)if(typeof gn[Cn].stack=="string"){Ut._debugOwner=gn[Cn],Ut._debugTask=gn[Cn].debugTask;break}}return Ut}finally{Tn=yt}}}function $i(n){var i=n.alternate;K(Xr,Xr.current&ov,n),K(ql,n,n),Pu===null&&(i===null||tv.current!==null||i.memoizedState!==null)&&(Pu=n)}function hh(n){if(n.tag===22){if(K(Xr,Xr.current,n),K(ql,n,n),Pu===null){var i=n.alternate;i!==null&&i.memoizedState!==null&&(Pu=n)}}else wo(n)}function wo(n){K(Xr,Xr.current,n),K(ql,ql.current,n)}function zi(n){G(ql,n),Pu===n&&(Pu=null),G(Xr,n)}function Bp(n){for(var i=n;i!==null;){if(i.tag===13){var s=i.memoizedState;if(s!==null&&(s=s.dehydrated,s===null||s.data===Pc||Au(s)))return i}else if(i.tag===19&&i.memoizedProps.revealOrder!==void 0){if((i.flags&128)!==0)return i}else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===n)break;for(;i.sibling===null;){if(i.return===null||i.return===n)return null;i=i.return}i.sibling.return=i.return,i=i.sibling}return null}function Ha(n){if(n!==null&&typeof n!="function"){var i=String(n);m2.has(i)||(m2.add(i),console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",n))}}function mh(n,i,s,h){var b=n.memoizedState,x=s(h,b);if(n.mode&Gi){$e(!0);try{x=s(h,b)}finally{$e(!1)}}x===void 0&&(i=P(i)||"Component",c2.has(i)||(c2.add(i),console.error("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",i))),b=x==null?b:un({},b,x),n.memoizedState=b,n.lanes===0&&(n.updateQueue.baseState=b)}function Pp(n,i,s,h,b,x,N){var L=n.stateNode;if(typeof L.shouldComponentUpdate=="function"){if(s=L.shouldComponentUpdate(h,x,N),n.mode&Gi){$e(!0);try{s=L.shouldComponentUpdate(h,x,N)}finally{$e(!1)}}return s===void 0&&console.error("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",P(i)||"Component"),s}return i.prototype&&i.prototype.isPureReactComponent?!Xd(s,h)||!Xd(b,x):!0}function gy(n,i,s,h){var b=i.state;typeof i.componentWillReceiveProps=="function"&&i.componentWillReceiveProps(s,h),typeof i.UNSAFE_componentWillReceiveProps=="function"&&i.UNSAFE_componentWillReceiveProps(s,h),i.state!==b&&(n=Y(n)||"Component",i2.has(n)||(i2.add(n),console.error("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",n)),jA.enqueueReplaceState(i,i.state,null))}function gu(n,i){var s=i;if("ref"in i){s={};for(var h in i)h!=="ref"&&(s[h]=i[h])}if(n=n.defaultProps){s===i&&(s=un({},s));for(var b in n)s[b]===void 0&&(s[b]=n[b])}return s}function jC(n){LA(n),console.warn(`%s
|
|
207
|
+
|
|
208
|
+
%s
|
|
209
|
+
`,lv?"An error occurred in the <"+lv+"> component.":"An error occurred in one of your React components.",`Consider adding an error boundary to your tree to customize error handling behavior.
|
|
210
|
+
Visit https://react.dev/link/error-boundaries to learn more about error boundaries.`)}function Up(n){var i=lv?"The above error occurred in the <"+lv+"> component.":"The above error occurred in one of your React components.",s="React will try to recreate this component tree from scratch using the error boundary you provided, "+((VA||"Anonymous")+".");if(typeof n=="object"&&n!==null&&typeof n.environmentName=="string"){var h=n.environmentName;n=[`%o
|
|
211
|
+
|
|
212
|
+
%s
|
|
213
|
+
|
|
214
|
+
%s
|
|
215
|
+
`,n,i,s].slice(0),typeof n[0]=="string"?n.splice(0,1,q2+n[0],Y2,rE+h+rE,X2):n.splice(0,0,q2,Y2,rE+h+rE,X2),n.unshift(console),h=yie.apply(console.error,n),h()}else console.error(`%o
|
|
216
|
+
|
|
217
|
+
%s
|
|
218
|
+
|
|
219
|
+
%s
|
|
220
|
+
`,n,i,s)}function Ip(n){LA(n)}function $f(n,i){try{lv=i.source?Y(i.source):null,VA=null;var s=i.value;if(Me.actQueue!==null)Me.thrownErrors.push(s);else{var h=n.onUncaughtError;h(s,{componentStack:i.stack})}}catch(b){setTimeout(function(){throw b})}}function fi(n,i,s){try{lv=s.source?Y(s.source):null,VA=Y(i);var h=n.onCaughtError;h(s.value,{componentStack:s.stack,errorBoundary:i.tag===1?i.stateNode:null})}catch(b){setTimeout(function(){throw b})}}function qa(n,i,s){return s=Go(s),s.tag=OA,s.payload={element:null},s.callback=function(){ot(i.source,$f,n,i)},s}function ph(n){return n=Go(n),n.tag=OA,n}function gc(n,i,s,h){var b=s.type.getDerivedStateFromError;if(typeof b=="function"){var x=h.value;n.payload=function(){return b(x)},n.callback=function(){yp(s),ot(h.source,fi,i,s,h)}}var N=s.stateNode;N!==null&&typeof N.componentDidCatch=="function"&&(n.callback=function(){yp(s),ot(h.source,fi,i,s,h),typeof b!="function"&&(vd===null?vd=new Set([this]):vd.add(this)),Wre(this,h),typeof b=="function"||(s.lanes&2)===0&&console.error("%s: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI.",Y(s)||"Unknown")})}function Fp(n,i,s,h,b){if(s.flags|=32768,_o&&Ec(n,b),h!==null&&typeof h=="object"&&typeof h.then=="function"){if(i=s.alternate,i!==null&&fs(i,s,b,!0),Gn&&(jc=!0),s=ql.current,s!==null){switch(s.tag){case 13:return Pu===null?ag():s.alternate===null&&ur===Bc&&(ur=UA),s.flags&=-257,s.flags|=65536,s.lanes=b,h===TA?s.flags|=16384:(i=s.updateQueue,i===null?s.updateQueue=new Set([h]):i.add(h),Qy(n,h,b)),!1;case 22:return s.flags|=65536,h===TA?s.flags|=16384:(i=s.updateQueue,i===null?(i={transitions:null,markerInstances:null,retryQueue:new Set([h])},s.updateQueue=i):(s=i.retryQueue,s===null?i.retryQueue=new Set([h]):s.add(h)),Qy(n,h,b)),!1}throw Error("Unexpected Suspense handler tag ("+s.tag+"). This is a bug in React.")}return Qy(n,h,b),ag(),!1}if(Gn)return jc=!0,i=ql.current,i!==null?((i.flags&65536)===0&&(i.flags|=256),i.flags|=65536,i.lanes=b,h!==CA&&hf(Oi(Error("There was an error while hydrating but React was able to recover by instead client rendering from the nearest Suspense boundary.",{cause:h}),s))):(h!==CA&&hf(Oi(Error("There was an error while hydrating but React was able to recover by instead client rendering the entire root.",{cause:h}),s)),n=n.current.alternate,n.flags|=65536,b&=-b,n.lanes|=b,h=Oi(h,s),b=qa(n.stateNode,h,b),hs(n,b),ur!==lm&&(ur=fv)),!1;var x=Oi(Error("There was an error during concurrent rendering but React was able to recover by instead synchronously rendering the entire root.",{cause:h}),s);if(cS===null?cS=[x]:cS.push(x),ur!==lm&&(ur=fv),i===null)return!0;h=Oi(h,s),s=i;do{switch(s.tag){case 3:return s.flags|=65536,n=b&-b,s.lanes|=n,n=qa(s.stateNode,h,n),hs(s,n),!1;case 1:if(i=s.type,x=s.stateNode,(s.flags&128)===0&&(typeof i.getDerivedStateFromError=="function"||x!==null&&typeof x.componentDidCatch=="function"&&(vd===null||!vd.has(x))))return s.flags|=65536,b&=-b,s.lanes|=b,b=ph(b),gc(b,n,s,h),hs(s,b),!1}s=s.return}while(s!==null);return!1}function pr(n,i,s,h){i.child=n===null?a2(i,null,s,h):iv(i,n.child,s,h)}function Rl(n,i,s,h,b){s=s.render;var x=i.ref;if("ref"in h){var N={};for(var L in h)L!=="ref"&&(N[L]=h[L])}else N=h;return lu(i),Ke(i),h=yf(n,i,s,N,x,b),L=ms(),Oe(),n!==null&&!ni?(Xo(n,i,b),Al(n,i,b)):(Gn&&L&&Cp(i),i.flags|=1,pr(n,i,h,b),i.child)}function gh(n,i,s,h,b){if(n===null){var x=s.type;return typeof x=="function"&&!bp(x)&&x.defaultProps===void 0&&s.compare===null?(s=nc(x),i.tag=15,i.type=s,yh(i,x),kp(n,i,s,h,b)):(n=Sp(s.type,null,h,i,i.mode,b),n.ref=i.ref,n.return=i,i.child=n)}if(x=n.child,!Oy(n,b)){var N=x.memoizedProps;if(s=s.compare,s=s!==null?s:Xd,s(N,h)&&n.ref===i.ref)return Al(n,i,b)}return i.flags|=1,n=El(x,h),n.ref=i.ref,n.return=i,i.child=n}function kp(n,i,s,h,b){if(n!==null){var x=n.memoizedProps;if(Xd(x,h)&&n.ref===i.ref&&i.type===n.type)if(ni=!1,i.pendingProps=h=x,Oy(n,b))(n.flags&131072)!==0&&(ni=!0);else return i.lanes=n.lanes,Al(n,i,b)}return qp(n,i,s,h,b)}function Gp(n,i,s){var h=i.pendingProps,b=h.children,x=n!==null?n.memoizedState:null;if(h.mode==="hidden"){if((i.flags&128)!==0){if(h=x!==null?x.baseLanes|s:s,n!==null){for(b=i.child=n.child,x=0;b!==null;)x=x|b.lanes|b.childLanes,b=b.sibling;i.childLanes=x&~h}else i.childLanes=0,i.child=null;return vy(n,i,h,s)}if((s&536870912)!==0)i.memoizedState={baseLanes:0,cachePool:null},n!==null&&Op(i,x!==null?x.cachePool:null),x!==null?Ap(i,x):Yo(i),hh(i);else return i.lanes=i.childLanes=536870912,vy(n,i,x!==null?x.baseLanes|s:s,s)}else x!==null?(Op(i,x.cachePool),Ap(i,x),wo(i),i.memoizedState=null):(n!==null&&Op(i,null),Yo(i),wo(i));return pr(n,i,b,s),i.child}function vy(n,i,s,h){var b=ny();return b=b===null?null:{parent:qr._currentValue,pool:b},i.memoizedState={baseLanes:s,cachePool:b},n!==null&&Op(i,null),Yo(i),hh(i),n!==null&&fs(n,i,h,!0),null}function vh(n,i){var s=i.ref;if(s===null)n!==null&&n.ref!==null&&(i.flags|=4194816);else{if(typeof s!="function"&&typeof s!="object")throw Error("Expected ref to be a function, an object returned by React.createRef(), or undefined/null.");(n===null||n.ref!==s)&&(i.flags|=4194816)}}function qp(n,i,s,h,b){if(s.prototype&&typeof s.prototype.render=="function"){var x=P(s)||"Unknown";g2[x]||(console.error("The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.",x,x),g2[x]=!0)}return i.mode&Gi&&Ps.recordLegacyContextWarning(i,null),n===null&&(yh(i,i.type),s.contextTypes&&(x=P(s)||"Unknown",y2[x]||(y2[x]=!0,console.error("%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with React.useContext() instead. (https://react.dev/link/legacy-context)",x)))),lu(i),Ke(i),s=yf(n,i,s,h,void 0,b),h=ms(),Oe(),n!==null&&!ni?(Xo(n,i,b),Al(n,i,b)):(Gn&&h&&Cp(i),i.flags|=1,pr(n,i,s,b),i.child)}function yy(n,i,s,h,b,x){return lu(i),Ke(i),Vc=-1,tS=n!==null&&n.type!==i.type,i.updateQueue=null,s=_i(i,h,s,b),eh(n,i),h=ms(),Oe(),n!==null&&!ni?(Xo(n,i,x),Al(n,i,x)):(Gn&&h&&Cp(i),i.flags|=1,pr(n,i,s,x),i.child)}function by(n,i,s,h,b){switch(m(i)){case!1:var x=i.stateNode,N=new i.type(i.memoizedProps,x.context).state;x.updater.enqueueSetState(x,N,null);break;case!0:i.flags|=128,i.flags|=65536,x=Error("Simulated error coming from DevTools");var L=b&-b;if(i.lanes|=L,N=Ra,N===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");L=ph(L),gc(L,N,i,Oi(x,i)),hs(i,L)}if(lu(i),i.stateNode===null){if(N=cd,x=s.contextType,"contextType"in s&&x!==null&&(x===void 0||x.$$typeof!==Fi)&&!h2.has(s)&&(h2.add(s),L=x===void 0?" However, it is set to undefined. This can be caused by a typo or by mixing up named and default imports. This can also happen due to a circular dependency, so try moving the createContext() call to a separate file.":typeof x!="object"?" However, it is set to a "+typeof x+".":x.$$typeof===Ph?" Did you accidentally pass the Context.Consumer instead?":" However, it is set to an object with keys {"+Object.keys(x).join(", ")+"}.",console.error("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",P(s)||"Component",L)),typeof x=="object"&&x!==null&&(N=Ea(x)),x=new s(h,N),i.mode&Gi){$e(!0);try{x=new s(h,N)}finally{$e(!1)}}if(N=i.memoizedState=x.state!==null&&x.state!==void 0?x.state:null,x.updater=jA,i.stateNode=x,x._reactInternals=i,x._reactInternalInstance=r2,typeof s.getDerivedStateFromProps=="function"&&N===null&&(N=P(s)||"Component",o2.has(N)||(o2.add(N),console.error("`%s` uses `getDerivedStateFromProps` but its initial state is %s. This is not recommended. Instead, define the initial state by assigning an object to `this.state` in the constructor of `%s`. This ensures that `getDerivedStateFromProps` arguments have a consistent shape.",N,x.state===null?"null":"undefined",N))),typeof s.getDerivedStateFromProps=="function"||typeof x.getSnapshotBeforeUpdate=="function"){var Z=L=N=null;if(typeof x.componentWillMount=="function"&&x.componentWillMount.__suppressDeprecationWarning!==!0?N="componentWillMount":typeof x.UNSAFE_componentWillMount=="function"&&(N="UNSAFE_componentWillMount"),typeof x.componentWillReceiveProps=="function"&&x.componentWillReceiveProps.__suppressDeprecationWarning!==!0?L="componentWillReceiveProps":typeof x.UNSAFE_componentWillReceiveProps=="function"&&(L="UNSAFE_componentWillReceiveProps"),typeof x.componentWillUpdate=="function"&&x.componentWillUpdate.__suppressDeprecationWarning!==!0?Z="componentWillUpdate":typeof x.UNSAFE_componentWillUpdate=="function"&&(Z="UNSAFE_componentWillUpdate"),N!==null||L!==null||Z!==null){x=P(s)||"Component";var ee=typeof s.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";s2.has(x)||(s2.add(x),console.error(`Unsafe legacy lifecycles will not be called for components using new component APIs.
|
|
221
|
+
|
|
222
|
+
%s uses %s but also contains the following legacy lifecycles:%s%s%s
|
|
223
|
+
|
|
224
|
+
The above lifecycles should be removed. Learn more about this warning here:
|
|
225
|
+
https://react.dev/link/unsafe-component-lifecycles`,x,ee,N!==null?`
|
|
226
|
+
`+N:"",L!==null?`
|
|
227
|
+
`+L:"",Z!==null?`
|
|
228
|
+
`+Z:""))}}x=i.stateNode,N=P(s)||"Component",x.render||(s.prototype&&typeof s.prototype.render=="function"?console.error("No `render` method found on the %s instance: did you accidentally return an object from the constructor?",N):console.error("No `render` method found on the %s instance: you may have forgotten to define `render`.",N)),!x.getInitialState||x.getInitialState.isReactClassApproved||x.state||console.error("getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?",N),x.getDefaultProps&&!x.getDefaultProps.isReactClassApproved&&console.error("getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.",N),x.contextType&&console.error("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",N),s.childContextTypes&&!d2.has(s)&&(d2.add(s),console.error("%s uses the legacy childContextTypes API which was removed in React 19. Use React.createContext() instead. (https://react.dev/link/legacy-context)",N)),s.contextTypes&&!f2.has(s)&&(f2.add(s),console.error("%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with static contextType instead. (https://react.dev/link/legacy-context)",N)),typeof x.componentShouldUpdate=="function"&&console.error("%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.",N),s.prototype&&s.prototype.isPureReactComponent&&typeof x.shouldComponentUpdate<"u"&&console.error("%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.",P(s)||"A pure component"),typeof x.componentDidUnmount=="function"&&console.error("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",N),typeof x.componentDidReceiveProps=="function"&&console.error("%s has a method called componentDidReceiveProps(). But there is no such lifecycle method. If you meant to update the state in response to changing props, use componentWillReceiveProps(). If you meant to fetch data or run side-effects or mutations after React has updated the UI, use componentDidUpdate().",N),typeof x.componentWillRecieveProps=="function"&&console.error("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",N),typeof x.UNSAFE_componentWillRecieveProps=="function"&&console.error("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",N),L=x.props!==h,x.props!==void 0&&L&&console.error("When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",N),x.defaultProps&&console.error("Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.",N,N),typeof x.getSnapshotBeforeUpdate!="function"||typeof x.componentDidUpdate=="function"||l2.has(s)||(l2.add(s),console.error("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",P(s))),typeof x.getDerivedStateFromProps=="function"&&console.error("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",N),typeof x.getDerivedStateFromError=="function"&&console.error("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",N),typeof s.getSnapshotBeforeUpdate=="function"&&console.error("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",N),(L=x.state)&&(typeof L!="object"||vr(L))&&console.error("%s.state: must be set to an object or null",N),typeof x.getChildContext=="function"&&typeof s.childContextTypes!="object"&&console.error("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",N),x=i.stateNode,x.props=h,x.state=i.memoizedState,x.refs={},uu(i),N=s.contextType,x.context=typeof N=="object"&&N!==null?Ea(N):cd,x.state===h&&(N=P(s)||"Component",u2.has(N)||(u2.add(N),console.error("%s: It is not recommended to assign props directly to state because updates to props won't be reflected in state. In most cases, it is better to use props directly.",N))),i.mode&Gi&&Ps.recordLegacyContextWarning(i,x),Ps.recordUnsafeLifecycleWarnings(i,x),x.state=i.memoizedState,N=s.getDerivedStateFromProps,typeof N=="function"&&(mh(i,s,N,h),x.state=i.memoizedState),typeof s.getDerivedStateFromProps=="function"||typeof x.getSnapshotBeforeUpdate=="function"||typeof x.UNSAFE_componentWillMount!="function"&&typeof x.componentWillMount!="function"||(N=x.state,typeof x.componentWillMount=="function"&&x.componentWillMount(),typeof x.UNSAFE_componentWillMount=="function"&&x.UNSAFE_componentWillMount(),N!==x.state&&(console.error("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",Y(i)||"Component"),jA.enqueueReplaceState(x,x.state,null)),cu(i,h,x,b),gf(),x.state=i.memoizedState),typeof x.componentDidMount=="function"&&(i.flags|=4194308),(i.mode&Bs)!==Da&&(i.flags|=134217728),x=!0}else if(n===null){x=i.stateNode;var De=i.memoizedProps;L=gu(s,De),x.props=L;var Ve=x.context;Z=s.contextType,N=cd,typeof Z=="object"&&Z!==null&&(N=Ea(Z)),ee=s.getDerivedStateFromProps,Z=typeof ee=="function"||typeof x.getSnapshotBeforeUpdate=="function",De=i.pendingProps!==De,Z||typeof x.UNSAFE_componentWillReceiveProps!="function"&&typeof x.componentWillReceiveProps!="function"||(De||Ve!==N)&&gy(i,x,h,N),fd=!1;var Ae=i.memoizedState;x.state=Ae,cu(i,h,x,b),gf(),Ve=i.memoizedState,De||Ae!==Ve||fd?(typeof ee=="function"&&(mh(i,s,ee,h),Ve=i.memoizedState),(L=fd||Pp(i,s,L,h,Ae,Ve,N))?(Z||typeof x.UNSAFE_componentWillMount!="function"&&typeof x.componentWillMount!="function"||(typeof x.componentWillMount=="function"&&x.componentWillMount(),typeof x.UNSAFE_componentWillMount=="function"&&x.UNSAFE_componentWillMount()),typeof x.componentDidMount=="function"&&(i.flags|=4194308),(i.mode&Bs)!==Da&&(i.flags|=134217728)):(typeof x.componentDidMount=="function"&&(i.flags|=4194308),(i.mode&Bs)!==Da&&(i.flags|=134217728),i.memoizedProps=h,i.memoizedState=Ve),x.props=h,x.state=Ve,x.context=N,x=L):(typeof x.componentDidMount=="function"&&(i.flags|=4194308),(i.mode&Bs)!==Da&&(i.flags|=134217728),x=!1)}else{x=i.stateNode,Jd(n,i),N=i.memoizedProps,Z=gu(s,N),x.props=Z,ee=i.pendingProps,Ae=x.context,Ve=s.contextType,L=cd,typeof Ve=="object"&&Ve!==null&&(L=Ea(Ve)),De=s.getDerivedStateFromProps,(Ve=typeof De=="function"||typeof x.getSnapshotBeforeUpdate=="function")||typeof x.UNSAFE_componentWillReceiveProps!="function"&&typeof x.componentWillReceiveProps!="function"||(N!==ee||Ae!==L)&&gy(i,x,h,L),fd=!1,Ae=i.memoizedState,x.state=Ae,cu(i,h,x,b),gf();var Ie=i.memoizedState;N!==ee||Ae!==Ie||fd||n!==null&&n.dependencies!==null&&Zd(n.dependencies)?(typeof De=="function"&&(mh(i,s,De,h),Ie=i.memoizedState),(Z=fd||Pp(i,s,Z,h,Ae,Ie,L)||n!==null&&n.dependencies!==null&&Zd(n.dependencies))?(Ve||typeof x.UNSAFE_componentWillUpdate!="function"&&typeof x.componentWillUpdate!="function"||(typeof x.componentWillUpdate=="function"&&x.componentWillUpdate(h,Ie,L),typeof x.UNSAFE_componentWillUpdate=="function"&&x.UNSAFE_componentWillUpdate(h,Ie,L)),typeof x.componentDidUpdate=="function"&&(i.flags|=4),typeof x.getSnapshotBeforeUpdate=="function"&&(i.flags|=1024)):(typeof x.componentDidUpdate!="function"||N===n.memoizedProps&&Ae===n.memoizedState||(i.flags|=4),typeof x.getSnapshotBeforeUpdate!="function"||N===n.memoizedProps&&Ae===n.memoizedState||(i.flags|=1024),i.memoizedProps=h,i.memoizedState=Ie),x.props=h,x.state=Ie,x.context=L,x=Z):(typeof x.componentDidUpdate!="function"||N===n.memoizedProps&&Ae===n.memoizedState||(i.flags|=4),typeof x.getSnapshotBeforeUpdate!="function"||N===n.memoizedProps&&Ae===n.memoizedState||(i.flags|=1024),x=!1)}if(L=x,vh(n,i),N=(i.flags&128)!==0,L||N){if(L=i.stateNode,On(i),N&&typeof s.getDerivedStateFromError!="function")s=null,Do=-1;else{if(Ke(i),s=FL(L),i.mode&Gi){$e(!0);try{FL(L)}finally{$e(!1)}}Oe()}i.flags|=1,n!==null&&N?(i.child=iv(i,n.child,null,b),i.child=iv(i,null,s,b)):pr(n,i,s,b),i.memoizedState=L.state,n=i.child}else n=Al(n,i,b);return b=i.stateNode,x&&b.props!==h&&(sv||console.error("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",Y(i)||"a component"),sv=!0),n}function Sy(n,i,s,h){return df(),i.flags|=256,pr(n,i,s,h),i.child}function yh(n,i){i&&i.childContextTypes&&console.error(`childContextTypes cannot be defined on a function component.
|
|
229
|
+
%s.childContextTypes = ...`,i.displayName||i.name||"Component"),typeof i.getDerivedStateFromProps=="function"&&(n=P(i)||"Unknown",b2[n]||(console.error("%s: Function components do not support getDerivedStateFromProps.",n),b2[n]=!0)),typeof i.contextType=="object"&&i.contextType!==null&&(i=P(i)||"Unknown",v2[i]||(console.error("%s: Function components do not support contextType.",i),v2[i]=!0))}function Yp(n){return{baseLanes:n,cachePool:ay()}}function Cy(n,i,s){return n=n!==null?n.childLanes&~s:0,i&&(n|=ml),n}function xy(n,i,s){var h,b=i.pendingProps;f(i)&&(i.flags|=128);var x=!1,N=(i.flags&128)!==0;if((h=N)||(h=n!==null&&n.memoizedState===null?!1:(Xr.current&aS)!==0),h&&(x=!0,i.flags&=-129),h=(i.flags&32)!==0,i.flags&=-33,n===null){if(Gn){if(x?$i(i):wo(i),Gn){var L=sr,Z;if(!(Z=!L)){e:{var ee=L;for(Z=Hu;ee.nodeType!==8;){if(!Z){Z=null;break e}if(ee=Ui(ee.nextSibling),ee===null){Z=null;break e}}Z=ee}Z!==null?(Fo(),i.memoizedState={dehydrated:Z,treeContext:em!==null?{id:$c,overflow:zc}:null,retryLane:536870912,hydrationErrors:null},ee=T(18,null,null,Da),ee.stateNode=Z,ee.return=i,i.child=ee,uo=i,sr=null,Z=!0):Z=!1,Z=!Z}Z&&(ff(i,L),iu(i))}if(L=i.memoizedState,L!==null&&(L=L.dehydrated,L!==null))return Au(L)?i.lanes=32:i.lanes=536870912,null;zi(i)}return L=b.children,b=b.fallback,x?(wo(i),x=i.mode,L=bh({mode:"hidden",children:L},x),b=So(b,x,s,null),L.return=i,b.return=i,L.sibling=b,i.child=L,x=i.child,x.memoizedState=Yp(s),x.childLanes=Cy(n,h,s),i.memoizedState=BA,b):($i(i),Xp(i,L))}var De=n.memoizedState;if(De!==null&&(L=De.dehydrated,L!==null)){if(N)i.flags&256?($i(i),i.flags&=-257,i=Sh(n,i,s)):i.memoizedState!==null?(wo(i),i.child=n.child,i.flags|=128,i=null):(wo(i),x=b.fallback,L=i.mode,b=bh({mode:"visible",children:b.children},L),x=So(x,L,s,null),x.flags|=2,b.return=i,x.return=i,b.sibling=x,i.child=b,iv(i,n.child,null,s),b=i.child,b.memoizedState=Yp(s),b.childLanes=Cy(n,h,s),i.memoizedState=BA,i=x);else if($i(i),Gn&&console.error("We should not be hydrating here. This is a bug in React. Please file a bug."),Au(L)){if(h=L.nextSibling&&L.nextSibling.dataset,h){Z=h.dgst;var Ve=h.msg;ee=h.stck;var Ae=h.cstck}L=Ve,h=Z,b=ee,Z=x=Ae,x=Error(L||"The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering."),x.stack=b||"",x.digest=h,h=Z===void 0?null:Z,b={value:x,source:null,stack:h},typeof h=="string"&&bA.set(x,b),hf(b),i=Sh(n,i,s)}else if(ni||fs(n,i,s,!1),h=(s&n.childLanes)!==0,ni||h){if(h=Ra,h!==null&&(b=s&-s,b=(b&42)!==0?1:$t(b),b=(b&(h.suspendedLanes|s))!==0?0:b,b!==0&&b!==De.retryLane))throw De.retryLane=b,Ri(n,b),An(h,n,b),p2;L.data===Pc||ag(),i=Sh(n,i,s)}else L.data===Pc?(i.flags|=192,i.child=n.child,i=null):(n=De.treeContext,sr=Ui(L.nextSibling),uo=i,Gn=!0,tm=null,jc=!1,Il=null,Hu=!1,n!==null&&(Fo(),Pl[Ul++]=$c,Pl[Ul++]=zc,Pl[Ul++]=em,$c=n.id,zc=n.overflow,em=i),i=Xp(i,b.children),i.flags|=4096);return i}return x?(wo(i),x=b.fallback,L=i.mode,Z=n.child,ee=Z.sibling,b=El(Z,{mode:"hidden",children:b.children}),b.subtreeFlags=Z.subtreeFlags&65011712,ee!==null?x=El(ee,x):(x=So(x,L,s,null),x.flags|=2),x.return=i,b.return=i,b.sibling=x,i.child=b,b=x,x=i.child,L=n.child.memoizedState,L===null?L=Yp(s):(Z=L.cachePool,Z!==null?(ee=qr._currentValue,Z=Z.parent!==ee?{parent:ee,pool:ee}:Z):Z=ay(),L={baseLanes:L.baseLanes|s,cachePool:Z}),x.memoizedState=L,x.childLanes=Cy(n,h,s),i.memoizedState=BA,b):($i(i),s=n.child,n=s.sibling,s=El(s,{mode:"visible",children:b.children}),s.return=i,s.sibling=null,n!==null&&(h=i.deletions,h===null?(i.deletions=[n],i.flags|=16):h.push(n)),i.child=s,i.memoizedState=null,s)}function Xp(n,i){return i=bh({mode:"visible",children:i},n.mode),i.return=n,n.child=i}function bh(n,i){return n=T(22,n,null,i),n.lanes=0,n.stateNode={_visibility:Ox,_pendingMarkers:null,_retryCache:null,_transitions:null},n}function Sh(n,i,s){return iv(i,n.child,null,s),n=Xp(i,i.pendingProps.children),n.flags|=2,i.memoizedState=null,n}function Ey(n,i,s){n.lanes|=i;var h=n.alternate;h!==null&&(h.lanes|=i),J0(n.return,i,s)}function wy(n,i){var s=vr(n);return n=!s&&typeof H(n)=="function",s||n?(s=s?"array":"iterable",console.error("A nested %s was passed to row #%s in <SuspenseList />. Wrap it in an additional SuspenseList to configure its revealOrder: <SuspenseList revealOrder=...> ... <SuspenseList revealOrder=...>{%s}</SuspenseList> ... </SuspenseList>",s,i,s),!1):!0}function Wp(n,i,s,h,b){var x=n.memoizedState;x===null?n.memoizedState={isBackwards:i,rendering:null,renderingStartTime:0,last:h,tail:s,tailMode:b}:(x.isBackwards=i,x.rendering=null,x.renderingStartTime=0,x.last=h,x.tail=s,x.tailMode=b)}function Ty(n,i,s){var h=i.pendingProps,b=h.revealOrder,x=h.tail;if(h=h.children,b!==void 0&&b!=="forwards"&&b!=="backwards"&&b!=="together"&&!S2[b])if(S2[b]=!0,typeof b=="string")switch(b.toLowerCase()){case"together":case"forwards":case"backwards":console.error('"%s" is not a valid value for revealOrder on <SuspenseList />. Use lowercase "%s" instead.',b,b.toLowerCase());break;case"forward":case"backward":console.error('"%s" is not a valid value for revealOrder on <SuspenseList />. React uses the -s suffix in the spelling. Use "%ss" instead.',b,b.toLowerCase());break;default:console.error('"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',b)}else console.error('%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',b);x===void 0||HA[x]||(x!=="collapsed"&&x!=="hidden"?(HA[x]=!0,console.error('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "collapsed" or "hidden"?',x)):b!=="forwards"&&b!=="backwards"&&(HA[x]=!0,console.error('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',x)));e:if((b==="forwards"||b==="backwards")&&h!==void 0&&h!==null&&h!==!1)if(vr(h)){for(var N=0;N<h.length;N++)if(!wy(h[N],N))break e}else if(N=H(h),typeof N=="function"){if(N=N.call(h))for(var L=N.next(),Z=0;!L.done;L=N.next()){if(!wy(L.value,Z))break e;Z++}}else console.error('A single row was passed to a <SuspenseList revealOrder="%s" />. This is not useful since it needs multiple rows. Did you mean to pass multiple children or an array?',b);if(pr(n,i,h,s),h=Xr.current,(h&aS)!==0)h=h&ov|aS,i.flags|=128;else{if(n!==null&&(n.flags&128)!==0)e:for(n=i.child;n!==null;){if(n.tag===13)n.memoizedState!==null&&Ey(n,s,i);else if(n.tag===19)Ey(n,s,i);else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===i)break e;for(;n.sibling===null;){if(n.return===null||n.return===i)break e;n=n.return}n.sibling.return=n.return,n=n.sibling}h&=ov}switch(K(Xr,h,i),b){case"forwards":for(s=i.child,b=null;s!==null;)n=s.alternate,n!==null&&Bp(n)===null&&(b=s),s=s.sibling;s=b,s===null?(b=i.child,i.child=null):(b=s.sibling,s.sibling=null),Wp(i,!1,b,s,x);break;case"backwards":for(s=null,b=i.child,i.child=null;b!==null;){if(n=b.alternate,n!==null&&Bp(n)===null){i.child=b;break}n=b.sibling,b.sibling=s,s=b,b=n}Wp(i,!0,s,null,x);break;case"together":Wp(i,!1,null,null,void 0);break;default:i.memoizedState=null}return i.child}function Al(n,i,s){if(n!==null&&(i.dependencies=n.dependencies),Do=-1,pd|=i.lanes,(s&i.childLanes)===0)if(n!==null){if(fs(n,i,s,!1),(s&i.childLanes)===0)return null}else return null;if(n!==null&&i.child!==n.child)throw Error("Resuming work not yet implemented.");if(i.child!==null){for(n=i.child,s=El(n,n.pendingProps),i.child=s,s.return=i;n.sibling!==null;)n=n.sibling,s=s.sibling=El(n,n.pendingProps),s.return=i;s.sibling=null}return i.child}function Oy(n,i){return(n.lanes&i)!==0?!0:(n=n.dependencies,!!(n!==null&&Zd(n)))}function LC(n,i,s){switch(i.tag){case 3:ie(i,i.stateNode.containerInfo),ou(i,qr,n.memoizedState.cache),df();break;case 27:case 5:Q(i);break;case 4:ie(i,i.stateNode.containerInfo);break;case 10:ou(i,i.type,i.memoizedProps.value);break;case 12:(s&i.childLanes)!==0&&(i.flags|=4),i.flags|=2048;var h=i.stateNode;h.effectDuration=-0,h.passiveEffectDuration=-0;break;case 13:if(h=i.memoizedState,h!==null)return h.dehydrated!==null?($i(i),i.flags|=128,null):(s&i.child.childLanes)!==0?xy(n,i,s):($i(i),n=Al(n,i,s),n!==null?n.sibling:null);$i(i);break;case 19:var b=(n.flags&128)!==0;if(h=(s&i.childLanes)!==0,h||(fs(n,i,s,!1),h=(s&i.childLanes)!==0),b){if(h)return Ty(n,i,s);i.flags|=128}if(b=i.memoizedState,b!==null&&(b.rendering=null,b.tail=null,b.lastEffect=null),K(Xr,Xr.current,i),h)break;return null;case 22:case 23:return i.lanes=0,Gp(n,i,s);case 24:ou(i,qr,n.memoizedState.cache)}return Al(n,i,s)}function vu(n,i,s){if(i._debugNeedsRemount&&n!==null){s=Sp(i.type,i.key,i.pendingProps,i._debugOwner||null,i.mode,i.lanes),s._debugStack=i._debugStack,s._debugTask=i._debugTask;var h=i.return;if(h===null)throw Error("Cannot swap the root fiber.");if(n.alternate=null,i.alternate=null,s.index=i.index,s.sibling=i.sibling,s.return=i.return,s.ref=i.ref,s._debugInfo=i._debugInfo,i===h.child)h.child=s;else{var b=h.child;if(b===null)throw Error("Expected parent to have a child.");for(;b.sibling!==i;)if(b=b.sibling,b===null)throw Error("Expected to find the previous sibling.");b.sibling=s}return i=h.deletions,i===null?(h.deletions=[n],h.flags|=16):i.push(n),s.flags|=2,s}if(n!==null)if(n.memoizedProps!==i.pendingProps||i.type!==n.type)ni=!0;else{if(!Oy(n,s)&&(i.flags&128)===0)return ni=!1,LC(n,i,s);ni=(n.flags&131072)!==0}else ni=!1,(h=Gn)&&(Fo(),h=(i.flags&1048576)!==0),h&&(h=i.index,Fo(),Z0(i,Ax,h));switch(i.lanes=0,i.tag){case 16:e:if(h=i.pendingProps,n=hd(i.elementType),i.type=n,typeof n=="function")bp(n)?(h=gu(n,h),i.tag=1,i.type=n=nc(n),i=by(null,i,n,h,s)):(i.tag=0,yh(i,n),i.type=n=nc(n),i=qp(null,i,n,h,s));else{if(n!=null){if(b=n.$$typeof,b===Nu){i.tag=11,i.type=n=q0(n),i=Rl(null,i,n,h,s);break e}else if(b===Mg){i.tag=14,i=gh(null,i,n,h,s);break e}}throw i="",n!==null&&typeof n=="object"&&n.$$typeof===oo&&(i=" Did you wrap a component in React.lazy() more than once?"),n=P(n)||n,Error("Element type is invalid. Received a promise that resolves to: "+n+". Lazy element type must resolve to a class or function."+i)}return i;case 0:return qp(n,i,i.type,i.pendingProps,s);case 1:return h=i.type,b=gu(h,i.pendingProps),by(n,i,h,b,s);case 3:e:{if(ie(i,i.stateNode.containerInfo),n===null)throw Error("Should have a current fiber. This is a bug in React.");h=i.pendingProps;var x=i.memoizedState;b=x.element,Jd(n,i),cu(i,h,null,s);var N=i.memoizedState;if(h=N.cache,ou(i,qr,h),h!==x.cache&&ui(i,[qr],s,!0),gf(),h=N.element,x.isDehydrated)if(x={element:h,isDehydrated:!1,cache:N.cache},i.updateQueue.baseState=x,i.memoizedState=x,i.flags&256){i=Sy(n,i,h,s);break e}else if(h!==b){b=Oi(Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),i),hf(b),i=Sy(n,i,h,s);break e}else{switch(n=i.stateNode.containerInfo,n.nodeType){case 9:n=n.body;break;default:n=n.nodeName==="HTML"?n.ownerDocument.body:n}for(sr=Ui(n.firstChild),uo=i,Gn=!0,tm=null,jc=!1,Il=null,Hu=!0,n=a2(i,null,h,s),i.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(df(),h===b){i=Al(n,i,s);break e}pr(n,i,h,s)}i=i.child}return i;case 26:return vh(n,i),n===null?(n=$h(i.type,null,i.pendingProps,null))?i.memoizedState=n:Gn||(n=i.type,s=i.pendingProps,h=J(Dl.current),h=Fn(h).createElement(n),h[ti]=i,h[ki]=s,Or(h,n,s),he(h),i.stateNode=h):i.memoizedState=$h(i.type,n.memoizedProps,i.pendingProps,n.memoizedState),null;case 27:return Q(i),n===null&&Gn&&(h=J(Dl.current),b=X(),h=i.stateNode=Ii(i.type,i.pendingProps,h,b,!1),jc||(b=_n(h,i.type,i.pendingProps,b),b!==null&&(oc(i,0).serverProps=b)),uo=i,Hu=!0,b=sr,gr(i.type)?(sM=b,sr=Ui(h.firstChild)):sr=b),pr(n,i,i.pendingProps.children,s),vh(n,i),n===null&&(i.flags|=4194304),i.child;case 5:return n===null&&Gn&&(x=X(),h=Wi(i.type,x.ancestorInfo),b=sr,(N=!b)||(N=Ir(b,i.type,i.pendingProps,Hu),N!==null?(i.stateNode=N,jc||(x=_n(N,i.type,i.pendingProps,x),x!==null&&(oc(i,0).serverProps=x)),uo=i,sr=Ui(N.firstChild),Hu=!1,x=!0):x=!1,N=!x),N&&(h&&ff(i,b),iu(i))),Q(i),b=i.type,x=i.pendingProps,N=n!==null?n.memoizedProps:null,h=x.children,wu(b,x)?h=null:N!==null&&wu(b,N)&&(i.flags|=32),i.memoizedState!==null&&(b=yf(n,i,xo,null,null,s),yS._currentValue=b),vh(n,i),pr(n,i,h,s),i.child;case 6:return n===null&&Gn&&(n=i.pendingProps,s=X(),h=s.ancestorInfo.current,n=h!=null?Fa(n,h.tag,s.ancestorInfo.implicitRootScope):!0,s=sr,(h=!s)||(h=Ru(s,i.pendingProps,Hu),h!==null?(i.stateNode=h,uo=i,sr=null,h=!0):h=!1,h=!h),h&&(n&&ff(i,s),iu(i))),null;case 13:return xy(n,i,s);case 4:return ie(i,i.stateNode.containerInfo),h=i.pendingProps,n===null?i.child=iv(i,null,h,s):pr(n,i,h,s),i.child;case 11:return Rl(n,i,i.type,i.pendingProps,s);case 7:return pr(n,i,i.pendingProps,s),i.child;case 8:return pr(n,i,i.pendingProps.children,s),i.child;case 12:return i.flags|=4,i.flags|=2048,h=i.stateNode,h.effectDuration=-0,h.passiveEffectDuration=-0,pr(n,i,i.pendingProps.children,s),i.child;case 10:return h=i.type,b=i.pendingProps,x=b.value,"value"in b||C2||(C2=!0,console.error("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?")),ou(i,h,x),pr(n,i,b.children,s),i.child;case 9:return b=i.type._context,h=i.pendingProps.children,typeof h!="function"&&console.error("A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it."),lu(i),b=Ea(b),Ke(i),h=NA(h,b,void 0),Oe(),i.flags|=1,pr(n,i,h,s),i.child;case 14:return gh(n,i,i.type,i.pendingProps,s);case 15:return kp(n,i,i.type,i.pendingProps,s);case 19:return Ty(n,i,s);case 31:return h=i.pendingProps,s=i.mode,h={mode:h.mode,children:h.children},n===null?(n=bh(h,s),n.ref=i.ref,i.child=n,n.return=i,i=n):(n=El(n.child,h),n.ref=i.ref,i.child=n,n.return=i,i=n),i;case 22:return Gp(n,i,s);case 24:return lu(i),h=Ea(qr),n===null?(b=ny(),b===null&&(b=Ra,x=ey(),b.pooledCache=x,Co(x),x!==null&&(b.pooledCacheLanes|=s),b=x),i.memoizedState={parent:h,cache:b},uu(i),ou(i,qr,b)):((n.lanes&s)!==0&&(Jd(n,i),cu(i,null,null,s),gf()),b=n.memoizedState,x=i.memoizedState,b.parent!==h?(b={parent:h,cache:h},i.memoizedState=b,i.lanes===0&&(i.memoizedState=i.updateQueue.baseState=b),ou(i,qr,h)):(h=x.cache,ou(i,qr,h),h!==b.cache&&ui(i,[qr],s,!0))),pr(n,i,i.pendingProps.children,s),i.child;case 29:throw i.pendingProps}throw Error("Unknown unit of work tag ("+i.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function To(n){n.flags|=4}function Ry(n,i){if(i.type!=="stylesheet"||(i.state.loading&Yl)!==gm)n.flags&=-16777217;else if(n.flags|=16777216,!pb(i)){if(i=ql.current,i!==null&&((jn&4194048)===jn?Pu!==null:(jn&62914560)!==jn&&(jn&536870912)===0||i!==Pu))throw Jb=TA,DL;n.flags|=8192}}function vc(n,i){i!==null&&(n.flags|=4),n.flags&16384&&(i=n.tag!==22?it():536870912,n.lanes|=i,cm|=i)}function Cs(n,i){if(!Gn)switch(n.tailMode){case"hidden":i=n.tail;for(var s=null;i!==null;)i.alternate!==null&&(s=i),i=i.sibling;s===null?n.tail=null:s.sibling=null;break;case"collapsed":s=n.tail;for(var h=null;s!==null;)s.alternate!==null&&(h=s),s=s.sibling;h===null?i||n.tail===null?n.tail=null:n.tail.sibling=null:h.sibling=null}}function wa(n){var i=n.alternate!==null&&n.alternate.child===n.child,s=0,h=0;if(i)if((n.mode&hi)!==Da){for(var b=n.selfBaseDuration,x=n.child;x!==null;)s|=x.lanes|x.childLanes,h|=x.subtreeFlags&65011712,h|=x.flags&65011712,b+=x.treeBaseDuration,x=x.sibling;n.treeBaseDuration=b}else for(b=n.child;b!==null;)s|=b.lanes|b.childLanes,h|=b.subtreeFlags&65011712,h|=b.flags&65011712,b.return=n,b=b.sibling;else if((n.mode&hi)!==Da){b=n.actualDuration,x=n.selfBaseDuration;for(var N=n.child;N!==null;)s|=N.lanes|N.childLanes,h|=N.subtreeFlags,h|=N.flags,b+=N.actualDuration,x+=N.treeBaseDuration,N=N.sibling;n.actualDuration=b,n.treeBaseDuration=x}else for(b=n.child;b!==null;)s|=b.lanes|b.childLanes,h|=b.subtreeFlags,h|=b.flags,b.return=n,b=b.sibling;return n.subtreeFlags|=h,n.childLanes=s,i}function VC(n,i,s){var h=i.pendingProps;switch(ic(i),i.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return wa(i),null;case 1:return wa(i),null;case 3:return s=i.stateNode,h=null,n!==null&&(h=n.memoizedState.cache),i.memoizedState.cache!==h&&(i.flags|=2048),cs(qr,i),k(i),s.pendingContext&&(s.context=s.pendingContext,s.pendingContext=null),(n===null||n.child===null)&&(lc(i)?(NC(),To(i)):n===null||n.memoizedState.isDehydrated&&(i.flags&256)===0||(i.flags|=1024,Q0())),wa(i),null;case 26:return s=i.memoizedState,n===null?(To(i),s!==null?(wa(i),Ry(i,s)):(wa(i),i.flags&=-16777217)):s?s!==n.memoizedState?(To(i),wa(i),Ry(i,s)):(wa(i),i.flags&=-16777217):(n.memoizedProps!==h&&To(i),wa(i),i.flags&=-16777217),null;case 27:le(i),s=J(Dl.current);var b=i.type;if(n!==null&&i.stateNode!=null)n.memoizedProps!==h&&To(i);else{if(!h){if(i.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return wa(i),null}n=X(),lc(i)?K0(i):(n=Ii(b,h,s,n,!0),i.stateNode=n,To(i))}return wa(i),null;case 5:if(le(i),s=i.type,n!==null&&i.stateNode!=null)n.memoizedProps!==h&&To(i);else{if(!h){if(i.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return wa(i),null}if(b=X(),lc(i))K0(i);else{switch(n=J(Dl.current),Wi(s,b.ancestorInfo),b=b.context,n=Fn(n),b){case vv:n=n.createElementNS(Hs,s);break;case tE:n=n.createElementNS(Ug,s);break;default:switch(s){case"svg":n=n.createElementNS(Hs,s);break;case"math":n=n.createElementNS(Ug,s);break;case"script":n=n.createElement("div"),n.innerHTML="<script><\/script>",n=n.removeChild(n.firstChild);break;case"select":n=typeof h.is=="string"?n.createElement("select",{is:h.is}):n.createElement("select"),h.multiple?n.multiple=!0:h.size&&(n.size=h.size);break;default:n=typeof h.is=="string"?n.createElement(s,{is:h.is}):n.createElement(s),s.indexOf("-")===-1&&(s!==s.toLowerCase()&&console.error("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",s),Object.prototype.toString.call(n)!=="[object HTMLUnknownElement]"||Nl.call(P2,s)||(P2[s]=!0,console.error("The tag <%s> is unrecognized in this browser. If you meant to render a React component, start its name with an uppercase letter.",s)))}}n[ti]=i,n[ki]=h;e:for(b=i.child;b!==null;){if(b.tag===5||b.tag===6)n.appendChild(b.stateNode);else if(b.tag!==4&&b.tag!==27&&b.child!==null){b.child.return=b,b=b.child;continue}if(b===i)break e;for(;b.sibling===null;){if(b.return===null||b.return===i)break e;b=b.return}b.sibling.return=b.return,b=b.sibling}i.stateNode=n;e:switch(Or(n,s,h),s){case"button":case"input":case"select":case"textarea":n=!!h.autoFocus;break e;case"img":n=!0;break e;default:n=!1}n&&To(i)}}return wa(i),i.flags&=-16777217,null;case 6:if(n&&i.stateNode!=null)n.memoizedProps!==h&&To(i);else{if(typeof h!="string"&&i.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");if(n=J(Dl.current),s=X(),lc(i)){n=i.stateNode,s=i.memoizedProps,b=!jc,h=null;var x=uo;if(x!==null)switch(x.tag){case 3:b&&(b=fb(n,s,h),b!==null&&(oc(i,0).serverProps=b));break;case 27:case 5:h=x.memoizedProps,b&&(b=fb(n,s,h),b!==null&&(oc(i,0).serverProps=b))}n[ti]=i,n=!!(n.nodeValue===s||h!==null&&h.suppressHydrationWarning===!0||Tc(n.nodeValue,s)),n||iu(i)}else b=s.ancestorInfo.current,b!=null&&Fa(h,b.tag,s.ancestorInfo.implicitRootScope),n=Fn(n).createTextNode(h),n[ti]=i,i.stateNode=n}return wa(i),null;case 13:if(h=i.memoizedState,n===null||n.memoizedState!==null&&n.memoizedState.dehydrated!==null){if(b=lc(i),h!==null&&h.dehydrated!==null){if(n===null){if(!b)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(b=i.memoizedState,b=b!==null?b.dehydrated:null,!b)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");b[ti]=i,wa(i),(i.mode&hi)!==Da&&h!==null&&(b=i.child,b!==null&&(i.treeBaseDuration-=b.treeBaseDuration))}else NC(),df(),(i.flags&128)===0&&(i.memoizedState=null),i.flags|=4,wa(i),(i.mode&hi)!==Da&&h!==null&&(b=i.child,b!==null&&(i.treeBaseDuration-=b.treeBaseDuration));b=!1}else b=Q0(),n!==null&&n.memoizedState!==null&&(n.memoizedState.hydrationErrors=b),b=!0;if(!b)return i.flags&256?(zi(i),i):(zi(i),null)}return zi(i),(i.flags&128)!==0?(i.lanes=s,(i.mode&hi)!==Da&&Qd(i),i):(s=h!==null,n=n!==null&&n.memoizedState!==null,s&&(h=i.child,b=null,h.alternate!==null&&h.alternate.memoizedState!==null&&h.alternate.memoizedState.cachePool!==null&&(b=h.alternate.memoizedState.cachePool.pool),x=null,h.memoizedState!==null&&h.memoizedState.cachePool!==null&&(x=h.memoizedState.cachePool.pool),x!==b&&(h.flags|=2048)),s!==n&&s&&(i.child.flags|=8192),vc(i,i.updateQueue),wa(i),(i.mode&hi)!==Da&&s&&(n=i.child,n!==null&&(i.treeBaseDuration-=n.treeBaseDuration)),null);case 4:return k(i),n===null&&_h(i.stateNode.containerInfo),wa(i),null;case 10:return cs(i.type,i),wa(i),null;case 19:if(G(Xr,i),b=i.memoizedState,b===null)return wa(i),null;if(h=(i.flags&128)!==0,x=b.rendering,x===null)if(h)Cs(b,!1);else{if(ur!==Bc||n!==null&&(n.flags&128)!==0)for(n=i.child;n!==null;){if(x=Bp(n),x!==null){for(i.flags|=128,Cs(b,!1),n=x.updateQueue,i.updateQueue=n,vc(i,n),i.subtreeFlags=0,n=s,s=i.child;s!==null;)Y0(s,n),s=s.sibling;return K(Xr,Xr.current&ov|aS,i),i.child}n=n.sibling}b.tail!==null&&Fr()>Fx&&(i.flags|=128,h=!0,Cs(b,!1),i.lanes=4194304)}else{if(!h)if(n=Bp(x),n!==null){if(i.flags|=128,h=!0,n=n.updateQueue,i.updateQueue=n,vc(i,n),Cs(b,!0),b.tail===null&&b.tailMode==="hidden"&&!x.alternate&&!Gn)return wa(i),null}else 2*Fr()-b.renderingStartTime>Fx&&s!==536870912&&(i.flags|=128,h=!0,Cs(b,!1),i.lanes=4194304);b.isBackwards?(x.sibling=i.child,i.child=x):(n=b.last,n!==null?n.sibling=x:i.child=x,b.last=x)}return b.tail!==null?(n=b.tail,b.rendering=n,b.tail=n.sibling,b.renderingStartTime=Fr(),n.sibling=null,s=Xr.current,s=h?s&ov|aS:s&ov,K(Xr,s,i),n):(wa(i),null);case 22:case 23:return zi(i),Mp(i),h=i.memoizedState!==null,n!==null?n.memoizedState!==null!==h&&(i.flags|=8192):h&&(i.flags|=8192),h?(s&536870912)!==0&&(i.flags&128)===0&&(wa(i),i.subtreeFlags&6&&(i.flags|=8192)):wa(i),s=i.updateQueue,s!==null&&vc(i,s.retryQueue),s=null,n!==null&&n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(s=n.memoizedState.cachePool.pool),h=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(h=i.memoizedState.cachePool.pool),h!==s&&(i.flags|=2048),n!==null&&G(rm,i),null;case 24:return s=null,n!==null&&(s=n.memoizedState.cache),i.memoizedState.cache!==s&&(i.flags|=2048),cs(qr,i),wa(i),null;case 25:return null;case 30:return null}throw Error("Unknown unit of work tag ("+i.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function HC(n,i){switch(ic(i),i.tag){case 1:return n=i.flags,n&65536?(i.flags=n&-65537|128,(i.mode&hi)!==Da&&Qd(i),i):null;case 3:return cs(qr,i),k(i),n=i.flags,(n&65536)!==0&&(n&128)===0?(i.flags=n&-65537|128,i):null;case 26:case 27:case 5:return le(i),null;case 13:if(zi(i),n=i.memoizedState,n!==null&&n.dehydrated!==null){if(i.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");df()}return n=i.flags,n&65536?(i.flags=n&-65537|128,(i.mode&hi)!==Da&&Qd(i),i):null;case 19:return G(Xr,i),null;case 4:return k(i),null;case 10:return cs(i.type,i),null;case 22:case 23:return zi(i),Mp(i),n!==null&&G(rm,i),n=i.flags,n&65536?(i.flags=n&-65537|128,(i.mode&hi)!==Da&&Qd(i),i):null;case 24:return cs(qr,i),null;case 25:return null;default:return null}}function Ay(n,i){switch(ic(i),i.tag){case 3:cs(qr,i),k(i);break;case 26:case 27:case 5:le(i);break;case 4:k(i);break;case 13:zi(i);break;case 19:G(Xr,i);break;case 10:cs(i.type,i);break;case 22:case 23:zi(i),Mp(i),n!==null&&G(rm,i);break;case 24:cs(qr,i)}}function Jo(n){return(n.mode&hi)!==Da}function My(n,i){Jo(n)?(Qr(),zf(i,n),ko()):zf(i,n)}function Ch(n,i,s){Jo(n)?(Qr(),yc(s,n,i),ko()):yc(s,n,i)}function zf(n,i){try{var s=i.updateQueue,h=s!==null?s.lastEffect:null;if(h!==null){var b=h.next;s=b;do{if((s.tag&n)===n&&((n&Yr)!==Fl?Ct!==null&&typeof Ct.markComponentPassiveEffectMountStarted=="function"&&Ct.markComponentPassiveEffectMountStarted(i):(n&mi)!==Fl&&Ct!==null&&typeof Ct.markComponentLayoutEffectMountStarted=="function"&&Ct.markComponentLayoutEffectMountStarted(i),h=void 0,(n&co)!==Fl&&(pv=!0),h=ot(i,Zre,s),(n&co)!==Fl&&(pv=!1),(n&Yr)!==Fl?Ct!==null&&typeof Ct.markComponentPassiveEffectMountStopped=="function"&&Ct.markComponentPassiveEffectMountStopped():(n&mi)!==Fl&&Ct!==null&&typeof Ct.markComponentLayoutEffectMountStopped=="function"&&Ct.markComponentLayoutEffectMountStopped(),h!==void 0&&typeof h!="function")){var x=void 0;x=(s.tag&mi)!==0?"useLayoutEffect":(s.tag&co)!==0?"useInsertionEffect":"useEffect";var N=void 0;N=h===null?" You returned null. If your effect does not require clean up, return undefined (or nothing).":typeof h.then=="function"?`
|
|
230
|
+
|
|
231
|
+
It looks like you wrote `+x+`(async () => ...) or returned a Promise. Instead, write the async function inside your effect and call it immediately:
|
|
232
|
+
|
|
233
|
+
`+x+`(() => {
|
|
234
|
+
async function fetchData() {
|
|
235
|
+
// You can await here
|
|
236
|
+
const response = await MyAPI.getData(someId);
|
|
237
|
+
// ...
|
|
238
|
+
}
|
|
239
|
+
fetchData();
|
|
240
|
+
}, [someId]); // Or [] if effect doesn't need props or state
|
|
241
|
+
|
|
242
|
+
Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fetching`:" You returned: "+h,ot(i,function(L,Z){console.error("%s must not return anything besides a function, which is used for clean-up.%s",L,Z)},x,N)}s=s.next}while(s!==b)}}catch(L){ca(i,i.return,L)}}function yc(n,i,s){try{var h=i.updateQueue,b=h!==null?h.lastEffect:null;if(b!==null){var x=b.next;h=x;do{if((h.tag&n)===n){var N=h.inst,L=N.destroy;L!==void 0&&(N.destroy=void 0,(n&Yr)!==Fl?Ct!==null&&typeof Ct.markComponentPassiveEffectUnmountStarted=="function"&&Ct.markComponentPassiveEffectUnmountStarted(i):(n&mi)!==Fl&&Ct!==null&&typeof Ct.markComponentLayoutEffectUnmountStarted=="function"&&Ct.markComponentLayoutEffectUnmountStarted(i),(n&co)!==Fl&&(pv=!0),b=i,ot(b,Kre,b,s,L),(n&co)!==Fl&&(pv=!1),(n&Yr)!==Fl?Ct!==null&&typeof Ct.markComponentPassiveEffectUnmountStopped=="function"&&Ct.markComponentPassiveEffectUnmountStopped():(n&mi)!==Fl&&Ct!==null&&typeof Ct.markComponentLayoutEffectUnmountStopped=="function"&&Ct.markComponentLayoutEffectUnmountStopped())}h=h.next}while(h!==x)}}catch(Z){ca(i,i.return,Z)}}function Zp(n,i){Jo(n)?(Qr(),zf(i,n),ko()):zf(i,n)}function Kp(n,i,s){Jo(n)?(Qr(),yc(s,n,i),ko()):yc(s,n,i)}function _y(n){var i=n.updateQueue;if(i!==null){var s=n.stateNode;n.type.defaultProps||"ref"in n.memoizedProps||sv||(s.props!==n.memoizedProps&&console.error("Expected %s props to match memoized props before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",Y(n)||"instance"),s.state!==n.memoizedState&&console.error("Expected %s state to match memoized state before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",Y(n)||"instance"));try{ot(n,Mi,i,s)}catch(h){ca(n,n.return,h)}}}function nA(n,i,s){return n.getSnapshotBeforeUpdate(i,s)}function Dy(n,i){var s=i.memoizedProps,h=i.memoizedState;i=n.stateNode,n.type.defaultProps||"ref"in n.memoizedProps||sv||(i.props!==n.memoizedProps&&console.error("Expected %s props to match memoized props before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",Y(n)||"instance"),i.state!==n.memoizedState&&console.error("Expected %s state to match memoized state before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",Y(n)||"instance"));try{var b=gu(n.type,s,n.elementType===n.type),x=ot(n,nA,i,b,h);s=x2,x!==void 0||s.has(n.type)||(s.add(n.type),ot(n,function(){console.error("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",Y(n))})),i.__reactInternalSnapshotBeforeUpdate=x}catch(N){ca(n,n.return,N)}}function Ny(n,i,s){s.props=gu(n.type,n.memoizedProps),s.state=n.memoizedState,Jo(n)?(Qr(),ot(n,WL,n,i,s),ko()):ot(n,WL,n,i,s)}function BC(n){var i=n.ref;if(i!==null){switch(n.tag){case 26:case 27:case 5:var s=n.stateNode;break;case 30:s=n.stateNode;break;default:s=n.stateNode}if(typeof i=="function")if(Jo(n))try{Qr(),n.refCleanup=i(s)}finally{ko()}else n.refCleanup=i(s);else typeof i=="string"?console.error("String refs are no longer supported."):i.hasOwnProperty("current")||console.error("Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",Y(n)),i.current=s}}function bc(n,i){try{ot(n,BC,n)}catch(s){ca(n,i,s)}}function el(n,i){var s=n.ref,h=n.refCleanup;if(s!==null)if(typeof h=="function")try{if(Jo(n))try{Qr(),ot(n,h)}finally{ko(n)}else ot(n,h)}catch(b){ca(n,i,b)}finally{n.refCleanup=null,n=n.alternate,n!=null&&(n.refCleanup=null)}else if(typeof s=="function")try{if(Jo(n))try{Qr(),ot(n,s,null)}finally{ko(n)}else ot(n,s,null)}catch(b){ca(n,i,b)}else s.current=null}function $y(n,i,s,h){var b=n.memoizedProps,x=b.id,N=b.onCommit;b=b.onRender,i=i===null?"mount":"update",Dx&&(i="nested-update"),typeof b=="function"&&b(x,i,n.actualDuration,n.treeBaseDuration,n.actualStartTime,s),typeof N=="function"&&N(n.memoizedProps.id,i,h,s)}function aA(n,i,s,h){var b=n.memoizedProps;n=b.id,b=b.onPostCommit,i=i===null?"mount":"update",Dx&&(i="nested-update"),typeof b=="function"&&b(n,i,h,s)}function PC(n){var i=n.type,s=n.memoizedProps,h=n.stateNode;try{ot(n,Xa,h,i,s,n)}catch(b){ca(n,n.return,b)}}function Qp(n,i,s){try{ot(n,Tu,n.stateNode,n.type,s,i,n)}catch(h){ca(n,n.return,h)}}function jf(n){return n.tag===5||n.tag===3||n.tag===26||n.tag===27&&gr(n.type)||n.tag===4}function xh(n){e:for(;;){for(;n.sibling===null;){if(n.return===null||jf(n.return))return null;n=n.return}for(n.sibling.return=n.return,n=n.sibling;n.tag!==5&&n.tag!==6&&n.tag!==18;){if(n.tag===27&&gr(n.type)||n.flags&2||n.child===null||n.tag===4)continue e;n.child.return=n,n=n.child}if(!(n.flags&2))return n.stateNode}}function Lf(n,i,s){var h=n.tag;if(h===5||h===6)n=n.stateNode,i?(s.nodeType===9?s.body:s.nodeName==="HTML"?s.ownerDocument.body:s).insertBefore(n,i):(i=s.nodeType===9?s.body:s.nodeName==="HTML"?s.ownerDocument.body:s,i.appendChild(n),s=s._reactRootContainer,s!=null||i.onclick!==null||(i.onclick=xu));else if(h!==4&&(h===27&&gr(n.type)&&(s=n.stateNode,i=null),n=n.child,n!==null))for(Lf(n,i,s),n=n.sibling;n!==null;)Lf(n,i,s),n=n.sibling}function Eh(n,i,s){var h=n.tag;if(h===5||h===6)n=n.stateNode,i?s.insertBefore(n,i):s.appendChild(n);else if(h!==4&&(h===27&&gr(n.type)&&(s=n.stateNode),n=n.child,n!==null))for(Eh(n,i,s),n=n.sibling;n!==null;)Eh(n,i,s),n=n.sibling}function UC(n){for(var i,s=n.return;s!==null;){if(jf(s)){i=s;break}s=s.return}if(i==null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");switch(i.tag){case 27:i=i.stateNode,s=xh(n),Eh(n,s,i);break;case 5:s=i.stateNode,i.flags&32&&(Ou(s),i.flags&=-33),i=xh(n),Eh(n,i,s);break;case 3:case 4:i=i.stateNode.containerInfo,s=xh(n),Lf(n,s,i);break;default:throw Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.")}}function wh(n){var i=n.stateNode,s=n.memoizedProps;try{ot(n,nx,n.type,s,i,n)}catch(h){ca(n,n.return,h)}}function IC(n,i){if(n=n.containerInfo,iM=iE,n=MC(n),k0(n)){if("selectionStart"in n)var s={start:n.selectionStart,end:n.selectionEnd};else e:{s=(s=n.ownerDocument)&&s.defaultView||window;var h=s.getSelection&&s.getSelection();if(h&&h.rangeCount!==0){s=h.anchorNode;var b=h.anchorOffset,x=h.focusNode;h=h.focusOffset;try{s.nodeType,x.nodeType}catch{s=null;break e}var N=0,L=-1,Z=-1,ee=0,De=0,Ve=n,Ae=null;t:for(;;){for(var Ie;Ve!==s||b!==0&&Ve.nodeType!==3||(L=N+b),Ve!==x||h!==0&&Ve.nodeType!==3||(Z=N+h),Ve.nodeType===3&&(N+=Ve.nodeValue.length),(Ie=Ve.firstChild)!==null;)Ae=Ve,Ve=Ie;for(;;){if(Ve===n)break t;if(Ae===s&&++ee===b&&(L=N),Ae===x&&++De===h&&(Z=N),(Ie=Ve.nextSibling)!==null)break;Ve=Ae,Ae=Ve.parentNode}Ve=Ie}s=L===-1||Z===-1?null:{start:L,end:Z}}else s=null}s=s||{start:0,end:0}}else s=null;for(oM={focusedElem:n,selectionRange:s},iE=!1,ai=i;ai!==null;)if(i=ai,n=i.child,(i.subtreeFlags&1024)!==0&&n!==null)n.return=i,ai=n;else for(;ai!==null;){switch(n=i=ai,s=n.alternate,b=n.flags,n.tag){case 0:break;case 11:case 15:break;case 1:(b&1024)!==0&&s!==null&&Dy(n,s);break;case 3:if((b&1024)!==0){if(n=n.stateNode.containerInfo,s=n.nodeType,s===9)Ml(n);else if(s===1)switch(n.nodeName){case"HEAD":case"HTML":case"BODY":Ml(n);break;default:n.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((b&1024)!==0)throw Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}if(n=i.sibling,n!==null){n.return=i.return,ai=n;break}ai=i.return}}function zy(n,i,s){var h=s.flags;switch(s.tag){case 0:case 11:case 15:or(n,s),h&4&&My(s,mi|kl);break;case 1:if(or(n,s),h&4)if(n=s.stateNode,i===null)s.type.defaultProps||"ref"in s.memoizedProps||sv||(n.props!==s.memoizedProps&&console.error("Expected %s props to match memoized props before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",Y(s)||"instance"),n.state!==s.memoizedState&&console.error("Expected %s state to match memoized state before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",Y(s)||"instance")),Jo(s)?(Qr(),ot(s,$A,s,n),ko()):ot(s,$A,s,n);else{var b=gu(s.type,i.memoizedProps);i=i.memoizedState,s.type.defaultProps||"ref"in s.memoizedProps||sv||(n.props!==s.memoizedProps&&console.error("Expected %s props to match memoized props before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",Y(s)||"instance"),n.state!==s.memoizedState&&console.error("Expected %s state to match memoized state before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",Y(s)||"instance")),Jo(s)?(Qr(),ot(s,qL,s,n,b,i,n.__reactInternalSnapshotBeforeUpdate),ko()):ot(s,qL,s,n,b,i,n.__reactInternalSnapshotBeforeUpdate)}h&64&&_y(s),h&512&&bc(s,s.return);break;case 3:if(i=Qi(),or(n,s),h&64&&(h=s.updateQueue,h!==null)){if(b=null,s.child!==null)switch(s.child.tag){case 27:case 5:b=s.child.stateNode;break;case 1:b=s.child.stateNode}try{ot(s,Mi,h,b)}catch(N){ca(s,s.return,N)}}n.effectDuration+=mf(i);break;case 27:i===null&&h&4&&wh(s);case 26:case 5:or(n,s),i===null&&h&4&&PC(s),h&512&&bc(s,s.return);break;case 12:if(h&4){h=Qi(),or(n,s),n=s.stateNode,n.effectDuration+=pf(h);try{ot(s,$y,s,i,_x,n.effectDuration)}catch(N){ca(s,s.return,N)}}else or(n,s);break;case 13:or(n,s),h&4&&Th(n,s),h&64&&(n=s.memoizedState,n!==null&&(n=n.dehydrated,n!==null&&(s=Su.bind(null,s),Xf(n,s))));break;case 22:if(h=s.memoizedState!==null||Hc,!h){i=i!==null&&i.memoizedState!==null||yr,b=Hc;var x=yr;Hc=h,(yr=i)&&!x?Jr(n,s,(s.subtreeFlags&8772)!==0):or(n,s),Hc=b,yr=x}break;case 30:break;default:or(n,s)}}function FC(n){var i=n.alternate;i!==null&&(n.alternate=null,FC(i)),n.child=null,n.deletions=null,n.sibling=null,n.tag===5&&(i=n.stateNode,i!==null&&ut(i)),n.stateNode=null,n._debugOwner=null,n.return=null,n.dependencies=null,n.memoizedProps=null,n.memoizedState=null,n.pendingProps=null,n.stateNode=null,n.updateQueue=null}function ji(n,i,s){for(s=s.child;s!==null;)Vf(n,i,s),s=s.sibling}function Vf(n,i,s){if(kr&&typeof kr.onCommitFiberUnmount=="function")try{kr.onCommitFiberUnmount(_c,s)}catch(x){er||(er=!0,console.error("React instrumentation encountered an error: %s",x))}switch(s.tag){case 26:yr||el(s,i),ji(n,i,s),s.memoizedState?s.memoizedState.count--:s.stateNode&&(s=s.stateNode,s.parentNode.removeChild(s));break;case 27:yr||el(s,i);var h=Dr,b=No;gr(s.type)&&(Dr=s.stateNode,No=!1),ji(n,i,s),ot(s,Zf,s.stateNode),Dr=h,No=b;break;case 5:yr||el(s,i);case 6:if(h=Dr,b=No,Dr=null,ji(n,i,s),Dr=h,No=b,Dr!==null)if(No)try{ot(s,Nh,Dr,s.stateNode)}catch(x){ca(s,i,x)}else try{ot(s,Yf,Dr,s.stateNode)}catch(x){ca(s,i,x)}break;case 18:Dr!==null&&(No?(n=Dr,di(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,s.stateNode),td(n)):di(Dr,s.stateNode));break;case 4:h=Dr,b=No,Dr=s.stateNode.containerInfo,No=!0,ji(n,i,s),Dr=h,No=b;break;case 0:case 11:case 14:case 15:yr||yc(co,s,i),yr||Ch(s,i,mi),ji(n,i,s);break;case 1:yr||(el(s,i),h=s.stateNode,typeof h.componentWillUnmount=="function"&&Ny(s,i,h)),ji(n,i,s);break;case 21:ji(n,i,s);break;case 22:yr=(h=yr)||s.memoizedState!==null,ji(n,i,s),yr=h;break;default:ji(n,i,s)}}function Th(n,i){if(i.memoizedState===null&&(n=i.alternate,n!==null&&(n=n.memoizedState,n!==null&&(n=n.dehydrated,n!==null))))try{ot(i,tx,n)}catch(s){ca(i,i.return,s)}}function Oh(n){switch(n.tag){case 13:case 19:var i=n.stateNode;return i===null&&(i=n.stateNode=new E2),i;case 22:return n=n.stateNode,i=n._retryCache,i===null&&(i=n._retryCache=new E2),i;default:throw Error("Unexpected Suspense handler tag ("+n.tag+"). This is a bug in React.")}}function Hf(n,i){var s=Oh(n);i.forEach(function(h){var b=WC.bind(null,n,h);if(!s.has(h)){if(s.add(h),_o)if(uv!==null&&cv!==null)Ec(cv,uv);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");h.then(b,b)}})}function Li(n,i){var s=i.deletions;if(s!==null)for(var h=0;h<s.length;h++){var b=n,x=i,N=s[h],L=x;e:for(;L!==null;){switch(L.tag){case 27:if(gr(L.type)){Dr=L.stateNode,No=!1;break e}break;case 5:Dr=L.stateNode,No=!1;break e;case 3:case 4:Dr=L.stateNode.containerInfo,No=!0;break e}L=L.return}if(Dr===null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");Vf(b,x,N),Dr=null,No=!1,b=N,x=b.alternate,x!==null&&(x.return=null),b.return=null}if(i.subtreeFlags&13878)for(i=i.child;i!==null;)jy(i,n),i=i.sibling}function jy(n,i){var s=n.alternate,h=n.flags;switch(n.tag){case 0:case 11:case 14:case 15:Li(i,n),wr(n),h&4&&(yc(co|kl,n,n.return),zf(co|kl,n),Ch(n,n.return,mi|kl));break;case 1:Li(i,n),wr(n),h&512&&(yr||s===null||el(s,s.return)),h&64&&Hc&&(n=n.updateQueue,n!==null&&(h=n.callbacks,h!==null&&(s=n.shared.hiddenCallbacks,n.shared.hiddenCallbacks=s===null?h:s.concat(h))));break;case 26:var b=Is;if(Li(i,n),wr(n),h&512&&(yr||s===null||el(s,s.return)),h&4)if(i=s!==null?s.memoizedState:null,h=n.memoizedState,s===null)if(h===null)if(n.stateNode===null){e:{h=n.type,s=n.memoizedProps,i=b.ownerDocument||b;t:switch(h){case"title":b=i.getElementsByTagName("title")[0],(!b||b[Gh]||b[ti]||b.namespaceURI===Hs||b.hasAttribute("itemprop"))&&(b=i.createElement(h),i.head.insertBefore(b,i.querySelector("head > title"))),Or(b,h,s),b[ti]=n,he(b),h=b;break e;case"link":var x=mb("link","href",i).get(h+(s.href||""));if(x){for(var N=0;N<x.length;N++)if(b=x[N],b.getAttribute("href")===(s.href==null||s.href===""?null:s.href)&&b.getAttribute("rel")===(s.rel==null?null:s.rel)&&b.getAttribute("title")===(s.title==null?null:s.title)&&b.getAttribute("crossorigin")===(s.crossOrigin==null?null:s.crossOrigin)){x.splice(N,1);break t}}b=i.createElement(h),Or(b,h,s),i.head.appendChild(b);break;case"meta":if(x=mb("meta","content",i).get(h+(s.content||""))){for(N=0;N<x.length;N++)if(b=x[N],ae(s.content,"content"),b.getAttribute("content")===(s.content==null?null:""+s.content)&&b.getAttribute("name")===(s.name==null?null:s.name)&&b.getAttribute("property")===(s.property==null?null:s.property)&&b.getAttribute("http-equiv")===(s.httpEquiv==null?null:s.httpEquiv)&&b.getAttribute("charset")===(s.charSet==null?null:s.charSet)){x.splice(N,1);break t}}b=i.createElement(h),Or(b,h,s),i.head.appendChild(b);break;default:throw Error('getNodesForType encountered a type it did not expect: "'+h+'". This is a bug in React.')}b[ti]=n,he(b),h=b}n.stateNode=h}else Rc(b,n.type,n.stateNode);else n.stateNode=rx(b,h,n.memoizedProps);else i!==h?(i===null?s.stateNode!==null&&(s=s.stateNode,s.parentNode.removeChild(s)):i.count--,h===null?Rc(b,n.type,n.stateNode):rx(b,h,n.memoizedProps)):h===null&&n.stateNode!==null&&Qp(n,n.memoizedProps,s.memoizedProps);break;case 27:Li(i,n),wr(n),h&512&&(yr||s===null||el(s,s.return)),s!==null&&h&4&&Qp(n,n.memoizedProps,s.memoizedProps);break;case 5:if(Li(i,n),wr(n),h&512&&(yr||s===null||el(s,s.return)),n.flags&32){i=n.stateNode;try{ot(n,Ou,i)}catch(De){ca(n,n.return,De)}}h&4&&n.stateNode!=null&&(i=n.memoizedProps,Qp(n,i,s!==null?s.memoizedProps:i)),h&1024&&(PA=!0,n.type!=="form"&&console.error("Unexpected host component type. Expected a form. This is a bug in React."));break;case 6:if(Li(i,n),wr(n),h&4){if(n.stateNode===null)throw Error("This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue.");h=n.memoizedProps,s=s!==null?s.memoizedProps:h,i=n.stateNode;try{ot(n,sb,i,s,h)}catch(De){ca(n,n.return,De)}}break;case 3:if(b=Qi(),nE=null,x=Is,Is=pg(i.containerInfo),Li(i,n),Is=x,wr(n),h&4&&s!==null&&s.memoizedState.isDehydrated)try{ot(n,io,i.containerInfo)}catch(De){ca(n,n.return,De)}PA&&(PA=!1,Ly(n)),i.effectDuration+=mf(b);break;case 4:h=Is,Is=pg(n.stateNode.containerInfo),Li(i,n),wr(n),Is=h;break;case 12:h=Qi(),Li(i,n),wr(n),n.stateNode.effectDuration+=pf(h);break;case 13:Li(i,n),wr(n),n.child.flags&8192&&n.memoizedState!==null!=(s!==null&&s.memoizedState!==null)&&(qA=Fr()),h&4&&(h=n.updateQueue,h!==null&&(n.updateQueue=null,Hf(n,h)));break;case 22:b=n.memoizedState!==null;var L=s!==null&&s.memoizedState!==null,Z=Hc,ee=yr;if(Hc=Z||b,yr=ee||L,Li(i,n),yr=ee,Hc=Z,wr(n),h&8192)e:for(i=n.stateNode,i._visibility=b?i._visibility&~Ox:i._visibility|Ox,b&&(s===null||L||Hc||yr||Vi(n)),s=null,i=n;;){if(i.tag===5||i.tag===26){if(s===null){L=s=i;try{x=L.stateNode,b?ot(L,ub,x):ot(L,fg,L.stateNode,L.memoizedProps)}catch(De){ca(L,L.return,De)}}}else if(i.tag===6){if(s===null){L=i;try{N=L.stateNode,b?ot(L,cb,N):ot(L,dg,N,L.memoizedProps)}catch(De){ca(L,L.return,De)}}}else if((i.tag!==22&&i.tag!==23||i.memoizedState===null||i===n)&&i.child!==null){i.child.return=i,i=i.child;continue}if(i===n)break e;for(;i.sibling===null;){if(i.return===null||i.return===n)break e;s===i&&(s=null),i=i.return}s===i&&(s=null),i.sibling.return=i.return,i=i.sibling}h&4&&(h=n.updateQueue,h!==null&&(s=h.retryQueue,s!==null&&(h.retryQueue=null,Hf(n,s))));break;case 19:Li(i,n),wr(n),h&4&&(h=n.updateQueue,h!==null&&(n.updateQueue=null,Hf(n,h)));break;case 30:break;case 21:break;default:Li(i,n),wr(n)}}function wr(n){var i=n.flags;if(i&2){try{ot(n,UC,n)}catch(s){ca(n,n.return,s)}n.flags&=-3}i&4096&&(n.flags&=-4097)}function Ly(n){if(n.subtreeFlags&1024)for(n=n.child;n!==null;){var i=n;Ly(i),i.tag===5&&i.flags&1024&&i.stateNode.reset(),n=n.sibling}}function or(n,i){if(i.subtreeFlags&8772)for(i=i.child;i!==null;)zy(n,i.alternate,i),i=i.sibling}function tl(n){switch(n.tag){case 0:case 11:case 14:case 15:Ch(n,n.return,mi),Vi(n);break;case 1:el(n,n.return);var i=n.stateNode;typeof i.componentWillUnmount=="function"&&Ny(n,n.return,i),Vi(n);break;case 27:ot(n,Zf,n.stateNode);case 26:case 5:el(n,n.return),Vi(n);break;case 22:n.memoizedState===null&&Vi(n);break;case 30:Vi(n);break;default:Vi(n)}}function Vi(n){for(n=n.child;n!==null;)tl(n),n=n.sibling}function Vy(n,i,s,h){var b=s.flags;switch(s.tag){case 0:case 11:case 15:Jr(n,s,h),My(s,mi);break;case 1:if(Jr(n,s,h),i=s.stateNode,typeof i.componentDidMount=="function"&&ot(s,$A,s,i),i=s.updateQueue,i!==null){n=s.stateNode;try{ot(s,tA,i,n)}catch(x){ca(s,s.return,x)}}h&&b&64&&_y(s),bc(s,s.return);break;case 27:wh(s);case 26:case 5:Jr(n,s,h),h&&i===null&&b&4&&PC(s),bc(s,s.return);break;case 12:if(h&&b&4){b=Qi(),Jr(n,s,h),h=s.stateNode,h.effectDuration+=pf(b);try{ot(s,$y,s,i,_x,h.effectDuration)}catch(x){ca(s,s.return,x)}}else Jr(n,s,h);break;case 13:Jr(n,s,h),h&&b&4&&Th(n,s);break;case 22:s.memoizedState===null&&Jr(n,s,h),bc(s,s.return);break;case 30:break;default:Jr(n,s,h)}}function Jr(n,i,s){for(s=s&&(i.subtreeFlags&8772)!==0,i=i.child;i!==null;)Vy(n,i.alternate,i,s),i=i.sibling}function nl(n,i){var s=null;n!==null&&n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(s=n.memoizedState.cachePool.pool),n=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(n=i.memoizedState.cachePool.pool),n!==s&&(n!=null&&Co(n),s!=null&&sc(s))}function Ja(n,i){n=null,i.alternate!==null&&(n=i.alternate.memoizedState.cache),i=i.memoizedState.cache,i!==n&&(Co(i),n!=null&&sc(n))}function to(n,i,s,h){if(i.subtreeFlags&10256)for(i=i.child;i!==null;)Jp(n,i,s,h),i=i.sibling}function Jp(n,i,s,h){var b=i.flags;switch(i.tag){case 0:case 11:case 15:to(n,i,s,h),b&2048&&Zp(i,Yr|kl);break;case 1:to(n,i,s,h);break;case 3:var x=Qi();to(n,i,s,h),b&2048&&(s=null,i.alternate!==null&&(s=i.alternate.memoizedState.cache),i=i.memoizedState.cache,i!==s&&(Co(i),s!=null&&sc(s))),n.passiveEffectDuration+=mf(x);break;case 12:if(b&2048){b=Qi(),to(n,i,s,h),n=i.stateNode,n.passiveEffectDuration+=pf(b);try{ot(i,aA,i,i.alternate,_x,n.passiveEffectDuration)}catch(L){ca(i,i.return,L)}}else to(n,i,s,h);break;case 13:to(n,i,s,h);break;case 23:break;case 22:x=i.stateNode;var N=i.alternate;i.memoizedState!==null?x._visibility&Nc?to(n,i,s,h):Bf(n,i):x._visibility&Nc?to(n,i,s,h):(x._visibility|=Nc,yu(n,i,s,h,(i.subtreeFlags&10256)!==0)),b&2048&&nl(N,i);break;case 24:to(n,i,s,h),b&2048&&Ja(i.alternate,i);break;default:to(n,i,s,h)}}function yu(n,i,s,h,b){for(b=b&&(i.subtreeFlags&10256)!==0,i=i.child;i!==null;)Hy(n,i,s,h,b),i=i.sibling}function Hy(n,i,s,h,b){var x=i.flags;switch(i.tag){case 0:case 11:case 15:yu(n,i,s,h,b),Zp(i,Yr);break;case 23:break;case 22:var N=i.stateNode;i.memoizedState!==null?N._visibility&Nc?yu(n,i,s,h,b):Bf(n,i):(N._visibility|=Nc,yu(n,i,s,h,b)),b&&x&2048&&nl(i.alternate,i);break;case 24:yu(n,i,s,h,b),b&&x&2048&&Ja(i.alternate,i);break;default:yu(n,i,s,h,b)}}function Bf(n,i){if(i.subtreeFlags&10256)for(i=i.child;i!==null;){var s=n,h=i,b=h.flags;switch(h.tag){case 22:Bf(s,h),b&2048&&nl(h.alternate,h);break;case 24:Bf(s,h),b&2048&&Ja(h.alternate,h);break;default:Bf(s,h)}i=i.sibling}}function Oo(n){if(n.subtreeFlags&rS)for(n=n.child;n!==null;)Rh(n),n=n.sibling}function Rh(n){switch(n.tag){case 26:Oo(n),n.flags&rS&&n.memoizedState!==null&&ox(Is,n.memoizedState,n.memoizedProps);break;case 5:Oo(n);break;case 3:case 4:var i=Is;Is=pg(n.stateNode.containerInfo),Oo(n),Is=i;break;case 22:n.memoizedState===null&&(i=n.alternate,i!==null&&i.memoizedState!==null?(i=rS,rS=16777216,Oo(n),rS=i):Oo(n));break;default:Oo(n)}}function By(n){var i=n.alternate;if(i!==null&&(n=i.child,n!==null)){i.child=null;do i=n.sibling,n.sibling=null,n=i;while(n!==null)}}function Pf(n){var i=n.deletions;if((n.flags&16)!==0){if(i!==null)for(var s=0;s<i.length;s++){var h=i[s];ai=h,eg(h,n)}By(n)}if(n.subtreeFlags&10256)for(n=n.child;n!==null;)Py(n),n=n.sibling}function Py(n){switch(n.tag){case 0:case 11:case 15:Pf(n),n.flags&2048&&Kp(n,n.return,Yr|kl);break;case 3:var i=Qi();Pf(n),n.stateNode.passiveEffectDuration+=mf(i);break;case 12:i=Qi(),Pf(n),n.stateNode.passiveEffectDuration+=pf(i);break;case 22:i=n.stateNode,n.memoizedState!==null&&i._visibility&Nc&&(n.return===null||n.return.tag!==13)?(i._visibility&=~Nc,Sc(n)):Pf(n);break;default:Pf(n)}}function Sc(n){var i=n.deletions;if((n.flags&16)!==0){if(i!==null)for(var s=0;s<i.length;s++){var h=i[s];ai=h,eg(h,n)}By(n)}for(n=n.child;n!==null;)Uy(n),n=n.sibling}function Uy(n){switch(n.tag){case 0:case 11:case 15:Kp(n,n.return,Yr),Sc(n);break;case 22:var i=n.stateNode;i._visibility&Nc&&(i._visibility&=~Nc,Sc(n));break;default:Sc(n)}}function eg(n,i){for(;ai!==null;){var s=ai,h=s;switch(h.tag){case 0:case 11:case 15:Kp(h,i,Yr);break;case 23:case 22:h.memoizedState!==null&&h.memoizedState.cachePool!==null&&(h=h.memoizedState.cachePool.pool,h!=null&&Co(h));break;case 24:sc(h.memoizedState.cache)}if(h=s.child,h!==null)h.return=s,ai=h;else e:for(s=n;ai!==null;){h=ai;var b=h.sibling,x=h.return;if(FC(h),h===s){ai=null;break e}if(b!==null){b.return=x,ai=b;break e}ai=x}}}function kC(){Jre.forEach(function(n){return n()})}function Iy(){var n=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0;return n||Me.actQueue===null||console.error("The current testing environment is not configured to support act(...)"),n}function no(n){if((ta&fo)!==dl&&jn!==0)return jn&-jn;var i=Me.T;return i!==null?(i._updatedFibers||(i._updatedFibers=new Set),i._updatedFibers.add(n),n=am,n!==0?n:ug()):Wt()}function Fy(){ml===0&&(ml=(jn&536870912)===0||Gn?We():536870912);var n=ql.current;return n!==null&&(n.flags|=32),ml}function An(n,i,s){if(pv&&console.error("useInsertionEffect must not schedule updates."),KA&&(kx=!0),(n===Ra&&(ma===sm||ma===um)||n.cancelPendingCommit!==null)&&(Es(n,0),xs(n,jn,ml,!1)),Ge(n,s),(ta&fo)!==0&&n===Ra){if(zl)switch(i.tag){case 0:case 11:case 15:n=$n&&Y($n)||"Unknown",$2.has(n)||($2.add(n),i=Y(i)||"Unknown",console.error("Cannot update a component (`%s`) while rendering a different component (`%s`). To locate the bad setState() call inside `%s`, follow the stack trace as described in https://react.dev/link/setstate-in-render",i,n,n));break;case 1:N2||(console.error("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),N2=!0)}}else _o&&ht(n,i,s),eb(i),n===Ra&&((ta&fo)===dl&&(gd|=s),ur===lm&&xs(n,jn,ml,!1)),Ro(n)}function Tr(n,i,s){if((ta&(fo|Fs))!==dl)throw Error("Should not already be working.");var h=!s&&(i&124)===0&&(i&n.expiredLanes)===0||Ue(n,i),b=h?Yy(n,i):Ah(n,i,!0),x=h;do{if(b===Bc){hv&&!h&&xs(n,i,0,!1);break}else{if(s=n.current.alternate,x&&!GC(s)){b=Ah(n,i,!1),x=!1;continue}if(b===fv){if(x=i,n.errorRecoveryDisabledLanes&x)var N=0;else N=n.pendingLanes&-536870913,N=N!==0?N:N&536870912?536870912:0;if(N!==0){i=N;e:{b=n;var L=N;N=cS;var Z=b.current.memoizedState.isDehydrated;if(Z&&(Es(b,L).flags|=256),L=Ah(b,L,!1),L!==fv){if(kA&&!Z){b.errorRecoveryDisabledLanes|=x,gd|=x,b=lm;break e}b=ho,ho=N,b!==null&&(ho===null?ho=b:ho.push.apply(ho,b))}b=L}if(x=!1,b!==fv)continue}}if(b===oS){Es(n,0),xs(n,i,0,!0);break}e:{switch(h=n,b){case Bc:case oS:throw Error("Root did not complete. This is a bug in React.");case lm:if((i&4194048)!==i)break;case Ux:xs(h,i,ml,!md);break e;case fv:ho=null;break;case UA:case w2:break;default:throw Error("Unknown root exit status.")}if(Me.actQueue!==null)al(h,s,i,ho,fS,Ix,ml,gd,cm);else{if((i&62914560)===i&&(x=qA+O2-Fr(),10<x)){if(xs(h,i,ml,!md),je(h,0,!0)!==0)break e;h.timeoutHandle=U2(ky.bind(null,h,s,ho,fS,Ix,i,ml,gd,cm,md,b,aie,AL,0),x);break e}ky(h,s,ho,fS,Ix,i,ml,gd,cm,md,b,tie,AL,0)}}}break}while(!0);Ro(n)}function ky(n,i,s,h,b,x,N,L,Z,ee,De,Ve,Ae,Ie){if(n.timeoutHandle=pm,Ve=i.subtreeFlags,(Ve&8192||(Ve&16785408)===16785408)&&(vS={stylesheets:null,count:0,unsuspend:ix},Rh(i),Ve=lx(),Ve!==null)){n.cancelPendingCommit=Ve(al.bind(null,n,i,x,s,h,b,N,L,Z,De,nie,Ae,Ie)),xs(n,x,N,!ee);return}al(n,i,x,s,h,b,N,L,Z)}function GC(n){for(var i=n;;){var s=i.tag;if((s===0||s===11||s===15)&&i.flags&16384&&(s=i.updateQueue,s!==null&&(s=s.stores,s!==null)))for(var h=0;h<s.length;h++){var b=s[h],x=b.getSnapshot;b=b.value;try{if(!so(x(),b))return!1}catch{return!1}}if(s=i.child,i.subtreeFlags&16384&&s!==null)s.return=i,i=s;else{if(i===n)break;for(;i.sibling===null;){if(i.return===null||i.return===n)return!0;i=i.return}i.sibling.return=i.return,i=i.sibling}}return!0}function xs(n,i,s,h){i&=~GA,i&=~gd,n.suspendedLanes|=i,n.pingedLanes&=~i,h&&(n.warmLanes|=i),h=n.expirationTimes;for(var b=i;0<b;){var x=31-Rr(b),N=1<<x;h[x]=-1,b&=~N}s!==0&&wt(n,s,i)}function Cc(){return(ta&(fo|Fs))===dl?(Cu(0),!1):!0}function tg(){if($n!==null){if(ma===$o)var n=$n.return;else n=$n,Ep(),Wo(n),rv=null,nS=0,n=$n;for(;n!==null;)Ay(n.alternate,n),n=n.return;$n=null}}function Es(n,i){var s=n.timeoutHandle;s!==pm&&(n.timeoutHandle=pm,gie(s)),s=n.cancelPendingCommit,s!==null&&(n.cancelPendingCommit=null,s()),tg(),Ra=n,$n=s=El(n.current,null),jn=i,ma=$o,hl=null,md=!1,hv=Ue(n,i),kA=!1,ur=Bc,cm=ml=GA=gd=pd=0,ho=cS=null,Ix=!1,(i&8)!==0&&(i|=i&32);var h=n.entangledLanes;if(h!==0)for(n=n.entanglements,h&=i;0<h;){var b=31-Rr(h),x=1<<b;i|=n[b],h&=~x}return Uu=i,pp(),i=OL(),1e3<i-TL&&(Me.recentlyCreatedOwnerStacks=0,TL=i),Ps.discardPendingWarnings(),s}function ng(n,i){cn=null,Me.H=Bx,Me.getCurrentStack=null,zl=!1,Gr=null,i===Qb||i===zx?(i=Ji(),ma=sS):i===DL?(i=Ji(),ma=T2):ma=i===p2?FA:i!==null&&typeof i=="object"&&typeof i.then=="function"?dv:lS,hl=i;var s=$n;if(s===null)ur=oS,$f(n,Oi(i,n.current));else switch(s.mode&hi&&su(s),Oe(),ma){case lS:Ct!==null&&typeof Ct.markComponentErrored=="function"&&Ct.markComponentErrored(s,i,jn);break;case sm:case um:case sS:case dv:case uS:Ct!==null&&typeof Ct.markComponentSuspended=="function"&&Ct.markComponentSuspended(s,i,jn)}}function Gy(){var n=Me.H;return Me.H=Bx,n===null?Bx:n}function qy(){var n=Me.A;return Me.A=Qre,n}function ag(){ur=lm,md||(jn&4194048)!==jn&&ql.current!==null||(hv=!0),(pd&134217727)===0&&(gd&134217727)===0||Ra===null||xs(Ra,jn,ml,!1)}function Ah(n,i,s){var h=ta;ta|=fo;var b=Gy(),x=qy();if(Ra!==n||jn!==i){if(_o){var N=n.memoizedUpdaters;0<N.size&&(Ec(n,jn),N.clear()),kt(n,i)}fS=null,Es(n,i)}me(i),i=!1,N=ur;e:do try{if(ma!==$o&&$n!==null){var L=$n,Z=hl;switch(ma){case FA:tg(),N=Ux;break e;case sS:case sm:case um:case dv:ql.current===null&&(i=!0);var ee=ma;if(ma=$o,hl=null,xc(n,L,Z,ee),s&&hv){N=Bc;break e}break;default:ee=ma,ma=$o,hl=null,xc(n,L,Z,ee)}}rg(),N=ur;break}catch(De){ng(n,De)}while(!0);return i&&n.shellSuspendCounter++,Ep(),ta=h,Me.H=b,Me.A=x,Re(),$n===null&&(Ra=null,jn=0,pp()),N}function rg(){for(;$n!==null;)ig($n)}function Yy(n,i){var s=ta;ta|=fo;var h=Gy(),b=qy();if(Ra!==n||jn!==i){if(_o){var x=n.memoizedUpdaters;0<x.size&&(Ec(n,jn),x.clear()),kt(n,i)}fS=null,Fx=Fr()+R2,Es(n,i)}else hv=Ue(n,i);me(i);e:do try{if(ma!==$o&&$n!==null)t:switch(i=$n,x=hl,ma){case lS:ma=$o,hl=null,xc(n,i,x,lS);break;case sm:case um:if(Rp(x)){ma=$o,hl=null,Mh(i);break}i=function(){ma!==sm&&ma!==um||Ra!==n||(ma=uS),Ro(n)},x.then(i,i);break e;case sS:ma=uS;break e;case T2:ma=IA;break e;case uS:Rp(x)?(ma=$o,hl=null,Mh(i)):(ma=$o,hl=null,xc(n,i,x,uS));break;case IA:var N=null;switch($n.tag){case 26:N=$n.memoizedState;case 5:case 27:var L=$n;if(!N||pb(N)){ma=$o,hl=null;var Z=L.sibling;if(Z!==null)$n=Z;else{var ee=L.return;ee!==null?($n=ee,Uf(ee)):$n=null}break t}break;default:console.error("Unexpected type of fiber triggered a suspensey commit. This is a bug in React.")}ma=$o,hl=null,xc(n,i,x,IA);break;case dv:ma=$o,hl=null,xc(n,i,x,dv);break;case FA:tg(),ur=Ux;break e;default:throw Error("Unexpected SuspendedReason. This is a bug in React.")}Me.actQueue!==null?rg():qC();break}catch(De){ng(n,De)}while(!0);return Ep(),Me.H=h,Me.A=b,ta=s,$n!==null?(Ct!==null&&typeof Ct.markRenderYielded=="function"&&Ct.markRenderYielded(),Bc):(Re(),Ra=null,jn=0,pp(),ur)}function qC(){for(;$n!==null&&!uA();)ig($n)}function ig(n){var i=n.alternate;(n.mode&hi)!==Da?(ds(n),i=ot(n,vu,i,n,Uu),su(n)):i=ot(n,vu,i,n,Uu),n.memoizedProps=n.pendingProps,i===null?Uf(n):$n=i}function Mh(n){var i=ot(n,Xy,n);n.memoizedProps=n.pendingProps,i===null?Uf(n):$n=i}function Xy(n){var i=n.alternate,s=(n.mode&hi)!==Da;switch(s&&ds(n),n.tag){case 15:case 0:i=yy(i,n,n.pendingProps,n.type,void 0,jn);break;case 11:i=yy(i,n,n.pendingProps,n.type.render,n.ref,jn);break;case 5:Wo(n);default:Ay(i,n),n=$n=Y0(n,Uu),i=vu(i,n,Uu)}return s&&su(n),i}function xc(n,i,s,h){Ep(),Wo(i),rv=null,nS=0;var b=i.return;try{if(Fp(n,b,i,s,jn)){ur=oS,$f(n,Oi(s,n.current)),$n=null;return}}catch(x){if(b!==null)throw $n=b,x;ur=oS,$f(n,Oi(s,n.current)),$n=null;return}i.flags&32768?(Gn||h===lS?n=!0:hv||(jn&536870912)!==0?n=!1:(md=n=!0,(h===sm||h===um||h===sS||h===dv)&&(h=ql.current,h!==null&&h.tag===13&&(h.flags|=16384))),Wy(i,n)):Uf(i)}function Uf(n){var i=n;do{if((i.flags&32768)!==0){Wy(i,md);return}var s=i.alternate;if(n=i.return,ds(i),s=ot(i,VC,s,i,Uu),(i.mode&hi)!==Da&&Tp(i),s!==null){$n=s;return}if(i=i.sibling,i!==null){$n=i;return}$n=i=n}while(i!==null);ur===Bc&&(ur=w2)}function Wy(n,i){do{var s=HC(n.alternate,n);if(s!==null){s.flags&=32767,$n=s;return}if((n.mode&hi)!==Da){Tp(n),s=n.actualDuration;for(var h=n.child;h!==null;)s+=h.actualDuration,h=h.sibling;n.actualDuration=s}if(s=n.return,s!==null&&(s.flags|=32768,s.subtreeFlags=0,s.deletions=null),!i&&(n=n.sibling,n!==null)){$n=n;return}$n=n=s}while(n!==null);ur=Ux,$n=null}function al(n,i,s,h,b,x,N,L,Z){n.cancelPendingCommit=null;do bu();while(pi!==fm);if(Ps.flushLegacyContextWarning(),Ps.flushPendingUnsafeLifecycleWarnings(),(ta&(fo|Fs))!==dl)throw Error("Should not already be working.");if(Ct!==null&&typeof Ct.markCommitStarted=="function"&&Ct.markCommitStarted(s),i===null)Fe();else{if(s===0&&console.error("finishedLanes should not be empty during a commit. This is a bug in React."),i===n.current)throw Error("Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue.");if(x=i.lanes|i.childLanes,x|=SA,Rt(n,s,x,N,L,Z),n===Ra&&($n=Ra=null,jn=0),mv=i,yd=n,bd=s,XA=x,WA=b,D2=h,(i.subtreeFlags&10256)!==0||(i.flags&10256)!==0?(n.callbackNode=null,n.callbackPriority=0,ZC(ad,function(){return If(),null})):(n.callbackNode=null,n.callbackPriority=0),_x=Jg(),h=(i.flags&13878)!==0,(i.subtreeFlags&13878)!==0||h){h=Me.T,Me.T=null,b=Xn.p,Xn.p=lo,N=ta,ta|=Fs;try{IC(n,i,s)}finally{ta=N,Xn.p=b,Me.T=h}}pi=A2,og(),YC(),Zy()}}function og(){if(pi===A2){pi=fm;var n=yd,i=mv,s=bd,h=(i.flags&13878)!==0;if((i.subtreeFlags&13878)!==0||h){h=Me.T,Me.T=null;var b=Xn.p;Xn.p=lo;var x=ta;ta|=Fs;try{uv=s,cv=n,jy(i,n),cv=uv=null,s=oM;var N=MC(n.containerInfo),L=s.focusedElem,Z=s.selectionRange;if(N!==L&&L&&L.ownerDocument&&AC(L.ownerDocument.documentElement,L)){if(Z!==null&&k0(L)){var ee=Z.start,De=Z.end;if(De===void 0&&(De=ee),"selectionStart"in L)L.selectionStart=ee,L.selectionEnd=Math.min(De,L.value.length);else{var Ve=L.ownerDocument||document,Ae=Ve&&Ve.defaultView||window;if(Ae.getSelection){var Ie=Ae.getSelection(),Pt=L.textContent.length,rn=Math.min(Z.start,Pt),Aa=Z.end===void 0?rn:Math.min(Z.end,Pt);!Ie.extend&&rn>Aa&&(N=Aa,Aa=rn,rn=N);var Vn=RC(L,rn),ue=RC(L,Aa);if(Vn&&ue&&(Ie.rangeCount!==1||Ie.anchorNode!==Vn.node||Ie.anchorOffset!==Vn.offset||Ie.focusNode!==ue.node||Ie.focusOffset!==ue.offset)){var ce=Ve.createRange();ce.setStart(Vn.node,Vn.offset),Ie.removeAllRanges(),rn>Aa?(Ie.addRange(ce),Ie.extend(ue.node,ue.offset)):(ce.setEnd(ue.node,ue.offset),Ie.addRange(ce))}}}}for(Ve=[],Ie=L;Ie=Ie.parentNode;)Ie.nodeType===1&&Ve.push({element:Ie,left:Ie.scrollLeft,top:Ie.scrollTop});for(typeof L.focus=="function"&&L.focus(),L=0;L<Ve.length;L++){var pe=Ve[L];pe.element.scrollLeft=pe.left,pe.element.scrollTop=pe.top}}iE=!!iM,oM=iM=null}finally{ta=x,Xn.p=b,Me.T=h}}n.current=i,pi=M2}}function YC(){if(pi===M2){pi=fm;var n=yd,i=mv,s=bd,h=(i.flags&8772)!==0;if((i.subtreeFlags&8772)!==0||h){h=Me.T,Me.T=null;var b=Xn.p;Xn.p=lo;var x=ta;ta|=Fs;try{Ct!==null&&typeof Ct.markLayoutEffectsStarted=="function"&&Ct.markLayoutEffectsStarted(s),uv=s,cv=n,zy(n,i.alternate,i),cv=uv=null,Ct!==null&&typeof Ct.markLayoutEffectsStopped=="function"&&Ct.markLayoutEffectsStopped()}finally{ta=x,Xn.p=b,Me.T=h}}pi=_2}}function Zy(){if(pi===rie||pi===_2){pi=fm,cA();var n=yd,i=mv,s=bd,h=D2,b=(i.subtreeFlags&10256)!==0||(i.flags&10256)!==0;b?pi=YA:(pi=fm,mv=yd=null,Ky(n,n.pendingLanes),dm=0,hS=null);var x=n.pendingLanes;if(x===0&&(vd=null),b||rl(n),b=Vt(s),i=i.stateNode,kr&&typeof kr.onCommitFiberRoot=="function")try{var N=(i.current.flags&128)===128;switch(b){case lo:var L=Fh;break;case $l:L=xb;break;case Ls:L=ad;break;case $g:L=wb;break;default:L=ad}kr.onCommitFiberRoot(_c,i,L,N)}catch(Ve){er||(er=!0,console.error("React instrumentation encountered an error: %s",Ve))}if(_o&&n.memoizedUpdaters.clear(),kC(),h!==null){N=Me.T,L=Xn.p,Xn.p=lo,Me.T=null;try{var Z=n.onRecoverableError;for(i=0;i<h.length;i++){var ee=h[i],De=ws(ee.stack);ot(ee.source,Z,ee.value,De)}}finally{Me.T=N,Xn.p=L}}(bd&3)!==0&&bu(),Ro(n),x=n.pendingLanes,(s&4194090)!==0&&(x&42)!==0?(Nx=!0,n===ZA?dS++:(dS=0,ZA=n)):dS=0,Cu(0),Fe()}}function ws(n){return n={componentStack:n},Object.defineProperty(n,"digest",{get:function(){console.error('You are accessing "digest" from the errorInfo object passed to onRecoverableError. This property is no longer provided as part of errorInfo but can be accessed as a property of the Error instance itself.')}}),n}function Ky(n,i){(n.pooledCacheLanes&=i)===0&&(i=n.pooledCache,i!=null&&(n.pooledCache=null,sc(i)))}function bu(n){return og(),YC(),Zy(),If()}function If(){if(pi!==YA)return!1;var n=yd,i=XA;XA=0;var s=Vt(bd),h=Ls>s?Ls:s;s=Me.T;var b=Xn.p;try{Xn.p=h,Me.T=null,h=WA,WA=null;var x=yd,N=bd;if(pi=fm,mv=yd=null,bd=0,(ta&(fo|Fs))!==dl)throw Error("Cannot flush passive effects while already rendering.");KA=!0,kx=!1,Ct!==null&&typeof Ct.markPassiveEffectsStarted=="function"&&Ct.markPassiveEffectsStarted(N);var L=ta;if(ta|=Fs,Py(x.current),Jp(x,x.current,N,h),Ct!==null&&typeof Ct.markPassiveEffectsStopped=="function"&&Ct.markPassiveEffectsStopped(),rl(x),ta=L,Cu(0,!1),kx?x===hS?dm++:(dm=0,hS=x):dm=0,kx=KA=!1,kr&&typeof kr.onPostCommitFiberRoot=="function")try{kr.onPostCommitFiberRoot(_c,x)}catch(ee){er||(er=!0,console.error("React instrumentation encountered an error: %s",ee))}var Z=x.current.stateNode;return Z.effectDuration=0,Z.passiveEffectDuration=0,!0}finally{Xn.p=b,Me.T=s,Ky(n,i)}}function _a(n,i,s){i=Oi(s,i),i=qa(n.stateNode,i,2),n=qo(n,i,2),n!==null&&(Ge(n,2),Ro(n))}function ca(n,i,s){if(pv=!1,n.tag===3)_a(n,n,s);else{for(;i!==null;){if(i.tag===3){_a(i,n,s);return}if(i.tag===1){var h=i.stateNode;if(typeof i.type.getDerivedStateFromError=="function"||typeof h.componentDidCatch=="function"&&(vd===null||!vd.has(h))){n=Oi(s,n),s=ph(2),h=qo(i,s,2),h!==null&&(gc(s,h,i,n),Ge(h,2),Ro(h));return}}i=i.return}console.error(`Internal React error: Attempted to capture a commit phase error inside a detached tree. This indicates a bug in React. Potential causes include deleting the same fiber more than once, committing an already-finished tree, or an inconsistent return pointer.
|
|
243
|
+
|
|
244
|
+
Error message:
|
|
245
|
+
|
|
246
|
+
%s`,s)}}function Qy(n,i,s){var h=n.pingCache;if(h===null){h=n.pingCache=new eie;var b=new Set;h.set(i,b)}else b=h.get(i),b===void 0&&(b=new Set,h.set(i,b));b.has(s)||(kA=!0,b.add(s),h=XC.bind(null,n,i,s),_o&&Ec(n,s),i.then(h,h))}function XC(n,i,s){var h=n.pingCache;h!==null&&h.delete(i),n.pingedLanes|=n.suspendedLanes&s,n.warmLanes&=~s,Iy()&&Me.actQueue===null&&console.error(`A suspended resource finished loading inside a test, but the event was not wrapped in act(...).
|
|
247
|
+
|
|
248
|
+
When testing, code that resolves suspended data should be wrapped into act(...):
|
|
249
|
+
|
|
250
|
+
act(() => {
|
|
251
|
+
/* finish loading suspended data */
|
|
252
|
+
});
|
|
253
|
+
/* assert on the output */
|
|
254
|
+
|
|
255
|
+
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act`),Ra===n&&(jn&s)===s&&(ur===lm||ur===UA&&(jn&62914560)===jn&&Fr()-qA<O2?(ta&fo)===dl&&Es(n,0):GA|=s,cm===jn&&(cm=0)),Ro(n)}function Ff(n,i){i===0&&(i=it()),n=Ri(n,i),n!==null&&(Ge(n,i),Ro(n))}function Su(n){var i=n.memoizedState,s=0;i!==null&&(s=i.retryLane),Ff(n,s)}function WC(n,i){var s=0;switch(n.tag){case 13:var h=n.stateNode,b=n.memoizedState;b!==null&&(s=b.retryLane);break;case 19:h=n.stateNode;break;case 22:h=n.stateNode._retryCache;break;default:throw Error("Pinged unknown suspense boundary type. This is probably a bug in React.")}h!==null&&h.delete(i),Ff(n,s)}function lg(n,i,s){if((i.subtreeFlags&67117056)!==0)for(i=i.child;i!==null;){var h=n,b=i,x=b.type===Ac;x=s||x,b.tag!==22?b.flags&67108864?x&&ot(b,kf,h,b,(b.mode&xL)===Da):lg(h,b,x):b.memoizedState===null&&(x&&b.flags&8192?ot(b,kf,h,b):b.subtreeFlags&67108864&&ot(b,lg,h,b,x)),i=i.sibling}}function kf(n,i){var s=2<arguments.length&&arguments[2]!==void 0?arguments[2]:!0;$e(!0);try{tl(i),s&&Uy(i),Vy(n,i.alternate,i,!1),s&&Hy(n,i,0,null,!1,0)}finally{$e(!1)}}function rl(n){var i=!0;n.current.mode&(Gi|Bs)||(i=!1),lg(n,n.current,i)}function Jy(n){if((ta&fo)===dl){var i=n.tag;if(i===3||i===1||i===0||i===11||i===14||i===15){if(i=Y(n)||"ReactComponent",Gx!==null){if(Gx.has(i))return;Gx.add(i)}else Gx=new Set([i]);ot(n,function(){console.error("Can't perform a React state update on a component that hasn't mounted yet. This indicates that you have a side-effect in your render function that asynchronously later calls tries to update the component. Move this work to useEffect instead.")})}}}function Ec(n,i){_o&&n.memoizedUpdaters.forEach(function(s){ht(n,s,i)})}function ZC(n,i){var s=Me.actQueue;return s!==null?(s.push(i),lie):Cb(n,i)}function eb(n){Iy()&&Me.actQueue===null&&ot(n,function(){console.error(`An update to %s inside a test was not wrapped in act(...).
|
|
256
|
+
|
|
257
|
+
When testing, code that causes React state updates should be wrapped into act(...):
|
|
258
|
+
|
|
259
|
+
act(() => {
|
|
260
|
+
/* fire events that update state */
|
|
261
|
+
});
|
|
262
|
+
/* assert on the output */
|
|
263
|
+
|
|
264
|
+
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act`,Y(n))})}function Ro(n){n!==gv&&n.next===null&&(gv===null?qx=gv=n:gv=gv.next=n),Yx=!0,Me.actQueue!==null?JA||(JA=!0,QC()):QA||(QA=!0,QC())}function Cu(n,i){if(!eM&&Yx){eM=!0;do for(var s=!1,h=qx;h!==null;){if(n!==0){var b=h.pendingLanes;if(b===0)var x=0;else{var N=h.suspendedLanes,L=h.pingedLanes;x=(1<<31-Rr(42|n)+1)-1,x&=b&~(N&~L),x=x&201326741?x&201326741|1:x?x|2:0}x!==0&&(s=!0,tb(h,x))}else x=jn,x=je(h,h===Ra?x:0,h.cancelPendingCommit!==null||h.timeoutHandle!==pm),(x&3)===0||Ue(h,x)||(s=!0,tb(h,x));h=h.next}while(s);eM=!1}}function KC(){il()}function il(){Yx=JA=QA=!1;var n=0;hm!==0&&(lb()&&(n=hm),hm=0);for(var i=Fr(),s=null,h=qx;h!==null;){var b=h.next,x=Ya(h,i);x===0?(h.next=null,s===null?qx=b:s.next=b,b===null&&(gv=s)):(s=h,(n!==0||(x&3)!==0)&&(Yx=!0)),h=b}Cu(n)}function Ya(n,i){for(var s=n.suspendedLanes,h=n.pingedLanes,b=n.expirationTimes,x=n.pendingLanes&-62914561;0<x;){var N=31-Rr(x),L=1<<N,Z=b[N];Z===-1?((L&s)===0||(L&h)!==0)&&(b[N]=nt(L,i)):Z<=i&&(n.expiredLanes|=L),x&=~L}if(i=Ra,s=jn,s=je(n,n===i?s:0,n.cancelPendingCommit!==null||n.timeoutHandle!==pm),h=n.callbackNode,s===0||n===i&&(ma===sm||ma===um)||n.cancelPendingCommit!==null)return h!==null&&lr(h),n.callbackNode=null,n.callbackPriority=0;if((s&3)===0||Ue(n,s)){if(i=s&-s,i!==n.callbackPriority||Me.actQueue!==null&&h!==tM)lr(h);else return i;switch(Vt(s)){case lo:case $l:s=xb;break;case Ls:s=ad;break;case $g:s=wb;break;default:s=ad}return h=sg.bind(null,n),Me.actQueue!==null?(Me.actQueue.push(h),s=tM):s=Cb(s,h),n.callbackPriority=i,n.callbackNode=s,i}return h!==null&&lr(h),n.callbackPriority=2,n.callbackNode=null,2}function sg(n,i){if(Nx=Dx=!1,pi!==fm&&pi!==YA)return n.callbackNode=null,n.callbackPriority=0,null;var s=n.callbackNode;if(bu()&&n.callbackNode!==s)return null;var h=jn;return h=je(n,n===Ra?h:0,n.cancelPendingCommit!==null||n.timeoutHandle!==pm),h===0?null:(Tr(n,h,i),Ya(n,Fr()),n.callbackNode!=null&&n.callbackNode===s?sg.bind(null,n):null)}function tb(n,i){if(bu())return null;Dx=Nx,Nx=!1,Tr(n,i,!0)}function lr(n){n!==tM&&n!==null&&mx(n)}function QC(){Me.actQueue!==null&&Me.actQueue.push(function(){return il(),null}),vie(function(){(ta&(fo|Fs))!==dl?Cb(Fh,KC):il()})}function ug(){return hm===0&&(hm=We()),hm}function nb(n){return n==null||typeof n=="symbol"||typeof n=="boolean"?null:typeof n=="function"?n:(ae(n,"action"),Ki(""+n))}function Ta(n,i){var s=i.ownerDocument.createElement("input");return s.name=i.name,s.value=i.value,n.id&&s.setAttribute("form",n.id),i.parentNode.insertBefore(s,i),n=new FormData(n),s.parentNode.removeChild(s),n}function Hi(n,i,s,h,b){if(i==="submit"&&s&&s.stateNode===b){var x=nb((b[ki]||null).action),N=h.submitter;N&&(i=(i=N[ki]||null)?nb(i.formAction):N.getAttribute("formAction"),i!==null&&(x=i,N=null));var L=new Wn("action","action",null,h,b);n.push({event:L,listeners:[{instance:null,listener:function(){if(h.defaultPrevented){if(hm!==0){var Z=N?Ta(b,N):new FormData(b),ee={pending:!0,data:Z,method:b.method,action:x};Object.freeze(ee),Lp(s,ee,null,Z)}}else typeof x=="function"&&(L.preventDefault(),Z=N?Ta(b,N):new FormData(b),ee={pending:!0,data:Z,method:b.method,action:x},Object.freeze(ee),Lp(s,ee,x,Z))},currentTarget:b}]})}}function Ao(n,i,s){n.currentTarget=s;try{i(n)}catch(h){LA(h)}n.currentTarget=null}function ab(n,i){i=(i&4)!==0;for(var s=0;s<n.length;s++){var h=n[s];e:{var b=void 0,x=h.event;if(h=h.listeners,i)for(var N=h.length-1;0<=N;N--){var L=h[N],Z=L.instance,ee=L.currentTarget;if(L=L.listener,Z!==b&&x.isPropagationStopped())break e;Z!==null?ot(Z,Ao,x,L,ee):Ao(x,L,ee),b=Z}else for(N=0;N<h.length;N++){if(L=h[N],Z=L.instance,ee=L.currentTarget,L=L.listener,Z!==b&&x.isPropagationStopped())break e;Z!==null?ot(Z,Ao,x,L,ee):Ao(x,L,ee),b=Z}}}}function Mn(n,i){nM.has(n)||console.error('Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.',n);var s=i[zg];s===void 0&&(s=i[zg]=new Set);var h=n+"__bubble";s.has(h)||(Bi(i,n,2,!1),s.add(h))}function rb(n,i,s){nM.has(n)&&!i&&console.error('Did not expect a listenToNativeEvent() call for "%s" in the bubble phase. This is a bug in React. Please file an issue.',n);var h=0;i&&(h|=4),Bi(s,n,h,i)}function _h(n){if(!n[Xx]){n[Xx]=!0,Dc.forEach(function(s){s!=="selectionchange"&&(nM.has(s)||rb(s,!1,n),rb(s,!0,n))});var i=n.nodeType===9?n:n.ownerDocument;i===null||i[Xx]||(i[Xx]=!0,rb("selectionchange",!1,i))}}function Bi(n,i,s,h){switch(_u(i)){case lo:var b=xg;break;case $l:b=Jf;break;default:b=Lh}s=b.bind(null,i,s,n),b=void 0,!qe||i!=="touchstart"&&i!=="touchmove"&&i!=="wheel"||(b=!0),h?b!==void 0?n.addEventListener(i,s,{capture:!0,passive:b}):n.addEventListener(i,s,!0):b!==void 0?n.addEventListener(i,s,{passive:b}):n.addEventListener(i,s,!1)}function ao(n,i,s,h,b){var x=h;if((i&1)===0&&(i&2)===0&&h!==null)e:for(;;){if(h===null)return;var N=h.tag;if(N===3||N===4){var L=h.stateNode.containerInfo;if(L===b)break;if(N===4)for(N=h.return;N!==null;){var Z=N.tag;if((Z===3||Z===4)&&N.stateNode.containerInfo===b)return;N=N.return}for(;L!==null;){if(N=St(L),N===null)return;if(Z=N.tag,Z===5||Z===6||Z===26||Z===27){h=x=N;continue e}L=L.parentNode}}h=h.return}qn(function(){var ee=x,De=Et(s),Ve=[];e:{var Ae=CL.get(n);if(Ae!==void 0){var Ie=Wn,Pt=n;switch(n){case"keypress":if(bo(s)===0)break e;case"keydown":case"keyup":Ie=wre;break;case"focusin":Pt="focus",Ie=Vl;break;case"focusout":Pt="blur",Ie=Vl;break;case"beforeblur":case"afterblur":Ie=Vl;break;case"click":if(s.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Ie=qt;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Ie=Mr;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Ie=Rre;break;case vL:case yL:case bL:Ie=pre;break;case SL:Ie=Mre;break;case"scroll":case"scrollend":Ie=ve;break;case"wheel":Ie=Dre;break;case"copy":case"cut":case"paste":Ie=vre;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Ie=uL;break;case"toggle":case"beforetoggle":Ie=$re}var rn=(i&4)!==0,Aa=!rn&&(n==="scroll"||n==="scrollend"),Vn=rn?Ae!==null?Ae+"Capture":null:Ae;rn=[];for(var ue=ee,ce;ue!==null;){var pe=ue;if(ce=pe.stateNode,pe=pe.tag,pe!==5&&pe!==26&&pe!==27||ce===null||Vn===null||(pe=Bn(ue,Vn),pe!=null&&rn.push(Gf(ue,pe,ce))),Aa)break;ue=ue.return}0<rn.length&&(Ae=new Ie(Ae,Pt,null,s,De),Ve.push({event:Ae,listeners:rn}))}}if((i&7)===0){e:{if(Ae=n==="mouseover"||n==="pointerover",Ie=n==="mouseout"||n==="pointerout",Ae&&s!==R&&(Pt=s.relatedTarget||s.fromElement)&&(St(Pt)||Pt[ju]))break e;if((Ie||Ae)&&(Ae=De.window===De?De:(Ae=De.ownerDocument)?Ae.defaultView||Ae.parentWindow:window,Ie?(Pt=s.relatedTarget||s.toElement,Ie=ee,Pt=Pt?St(Pt):null,Pt!==null&&(Aa=_(Pt),rn=Pt.tag,Pt!==Aa||rn!==5&&rn!==27&&rn!==6)&&(Pt=null)):(Ie=null,Pt=ee),Ie!==Pt)){if(rn=qt,pe="onMouseLeave",Vn="onMouseEnter",ue="mouse",(n==="pointerout"||n==="pointerover")&&(rn=uL,pe="onPointerLeave",Vn="onPointerEnter",ue="pointer"),Aa=Ie==null?Ae:lt(Ie),ce=Pt==null?Ae:lt(Pt),Ae=new rn(pe,ue+"leave",Ie,s,De),Ae.target=Aa,Ae.relatedTarget=ce,pe=null,St(De)===ee&&(rn=new rn(Vn,ue+"enter",Pt,s,De),rn.target=ce,rn.relatedTarget=Aa,pe=rn),Aa=pe,Ie&&Pt)t:{for(rn=Ie,Vn=Pt,ue=0,ce=rn;ce;ce=wc(ce))ue++;for(ce=0,pe=Vn;pe;pe=wc(pe))ce++;for(;0<ue-ce;)rn=wc(rn),ue--;for(;0<ce-ue;)Vn=wc(Vn),ce--;for(;ue--;){if(rn===Vn||Vn!==null&&rn===Vn.alternate)break t;rn=wc(rn),Vn=wc(Vn)}rn=null}else rn=null;Ie!==null&&Ts(Ve,Ae,Ie,rn,!1),Pt!==null&&Aa!==null&&Ts(Ve,Aa,Pt,rn,!0)}}e:{if(Ae=ee?lt(ee):window,Ie=Ae.nodeName&&Ae.nodeName.toLowerCase(),Ie==="select"||Ie==="input"&&Ae.type==="file")var ke=wC;else if(dp(Ae))if(pL)ke=KR;else{ke=WR;var yt=I0}else Ie=Ae.nodeName,!Ie||Ie.toLowerCase()!=="input"||Ae.type!=="checkbox"&&Ae.type!=="radio"?ee&&Zi(ee.elementType)&&(ke=wC):ke=ZR;if(ke&&(ke=ke(n,ee))){cf(Ve,ke,s,De);break e}yt&&yt(n,Ae,ee),n==="focusout"&&ee&&Ae.type==="number"&&ee.memoizedProps.value!=null&&fn(Ae,"number",Ae.value)}switch(yt=ee?lt(ee):window,n){case"focusin":(dp(yt)||yt.contentEditable==="true")&&(Gg=yt,pA=ee,kb=null);break;case"focusout":kb=pA=Gg=null;break;case"mousedown":gA=!0;break;case"contextmenu":case"mouseup":case"dragend":gA=!1,mp(Ve,s,De);break;case"selectionchange":if(Vre)break;case"keydown":case"keyup":mp(Ve,s,De)}var pn;if(mA)e:{switch(n){case"compositionstart":var Ut="onCompositionStart";break e;case"compositionend":Ut="onCompositionEnd";break e;case"compositionupdate":Ut="onCompositionUpdate";break e}Ut=void 0}else kg?ru(n,s)&&(Ut="onCompositionEnd"):n==="keydown"&&s.keyCode===cL&&(Ut="onCompositionStart");Ut&&(fL&&s.locale!=="ko"&&(kg||Ut!=="onCompositionStart"?Ut==="onCompositionEnd"&&kg&&(pn=ya()):(Te=De,Ne="value"in Te?Te.value:Te.textContent,kg=!0)),yt=ei(ee,Ut),0<yt.length&&(Ut=new sL(Ut,n,null,s,De),Ve.push({event:Ut,listeners:yt}),pn?Ut.data=pn:(pn=Gd(s),pn!==null&&(Ut.data=pn)))),(pn=jre?qd(n,s):XR(n,s))&&(Ut=ei(ee,"onBeforeInput"),0<Ut.length&&(yt=new bre("onBeforeInput","beforeinput",null,s,De),Ve.push({event:yt,listeners:Ut}),yt.data=pn)),Hi(Ve,n,ee,s,De)}ab(Ve,i)})}function Gf(n,i,s){return{instance:n,listener:i,currentTarget:s}}function ei(n,i){for(var s=i+"Capture",h=[];n!==null;){var b=n,x=b.stateNode;if(b=b.tag,b!==5&&b!==26&&b!==27||x===null||(b=Bn(n,s),b!=null&&h.unshift(Gf(n,b,x)),b=Bn(n,i),b!=null&&h.push(Gf(n,b,x))),n.tag===3)return h;n=n.return}return[]}function wc(n){if(n===null)return null;do n=n.return;while(n&&n.tag!==5&&n.tag!==27);return n||null}function Ts(n,i,s,h,b){for(var x=i._reactName,N=[];s!==null&&s!==h;){var L=s,Z=L.alternate,ee=L.stateNode;if(L=L.tag,Z!==null&&Z===h)break;L!==5&&L!==26&&L!==27||ee===null||(Z=ee,b?(ee=Bn(s,x),ee!=null&&N.unshift(Gf(s,ee,Z))):b||(ee=Bn(s,x),ee!=null&&N.push(Gf(s,ee,Z)))),s=s.return}N.length!==0&&n.push({event:i,listeners:N})}function Os(n,i){Ju(n,i),n!=="input"&&n!=="textarea"&&n!=="select"||i==null||i.value!==null||Tx||(Tx=!0,n==="select"&&i.multiple?console.error("`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.",n):console.error("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",n));var s={registrationNameDependencies:cl,possibleRegistrationNames:jg};Zi(n)||typeof i.is=="string"||uf(n,i,s),i.contentEditable&&!i.suppressContentEditableWarning&&i.children!=null&&console.error("A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional.")}function Oa(n,i,s,h){i!==s&&(s=Rs(s),Rs(i)!==s&&(h[n]=i))}function ib(n,i,s){i.forEach(function(h){s[qf(h)]=h==="style"?cg(n):n.getAttribute(h)})}function Mo(n,i){i===!1?console.error("Expected `%s` listener to be a function, instead got `false`.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.",n,n,n):console.error("Expected `%s` listener to be a function, instead got a value of `%s` type.",n,typeof i)}function ol(n,i){return n=n.namespaceURI===Ug||n.namespaceURI===Hs?n.ownerDocument.createElementNS(n.namespaceURI,n.tagName):n.ownerDocument.createElement(n.tagName),n.innerHTML=i,n.innerHTML}function Rs(n){return F(n)&&(console.error("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before using it here.",U(n)),ne(n)),(typeof n=="string"?n:""+n).replace(sie,`
|
|
265
|
+
`).replace(uie,"")}function Tc(n,i){return i=Rs(i),Rs(n)===i}function xu(){}function In(n,i,s,h,b,x){switch(s){case"children":typeof h=="string"?(Fa(h,i,!1),i==="body"||i==="textarea"&&h===""||Po(n,h)):(typeof h=="number"||typeof h=="bigint")&&(Fa(""+h,i,!1),i!=="body"&&Po(n,""+h));break;case"className":dt(n,"class",h);break;case"tabIndex":dt(n,"tabindex",h);break;case"dir":case"role":case"viewBox":case"width":case"height":dt(n,s,h);break;case"style":Uo(n,h,x);break;case"data":if(i!=="object"){dt(n,"data",h);break}case"src":case"href":if(h===""&&(i!=="a"||s!=="href")){console.error(s==="src"?'An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.':'An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',s,s),n.removeAttribute(s);break}if(h==null||typeof h=="function"||typeof h=="symbol"||typeof h=="boolean"){n.removeAttribute(s);break}ae(h,s),h=Ki(""+h),n.setAttribute(s,h);break;case"action":case"formAction":if(h!=null&&(i==="form"?s==="formAction"?console.error("You can only pass the formAction prop to <input> or <button>. Use the action prop on <form>."):typeof h=="function"&&(b.encType==null&&b.method==null||Kx||(Kx=!0,console.error("Cannot specify a encType or method for a form that specifies a function as the action. React provides those automatically. They will get overridden.")),b.target==null||Zx||(Zx=!0,console.error("Cannot specify a target for a form that specifies a function as the action. The function will always be executed in the same window."))):i==="input"||i==="button"?s==="action"?console.error("You can only pass the action prop to <form>. Use the formAction prop on <input> or <button>."):i!=="input"||b.type==="submit"||b.type==="image"||Wx?i!=="button"||b.type==null||b.type==="submit"||Wx?typeof h=="function"&&(b.name==null||L2||(L2=!0,console.error('Cannot specify a "name" prop for a button that specifies a function as a formAction. React needs it to encode which action should be invoked. It will get overridden.')),b.formEncType==null&&b.formMethod==null||Kx||(Kx=!0,console.error("Cannot specify a formEncType or formMethod for a button that specifies a function as a formAction. React provides those automatically. They will get overridden.")),b.formTarget==null||Zx||(Zx=!0,console.error("Cannot specify a formTarget for a button that specifies a function as a formAction. The function will always be executed in the same window."))):(Wx=!0,console.error('A button can only specify a formAction along with type="submit" or no type.')):(Wx=!0,console.error('An input can only specify a formAction along with type="submit" or type="image".')):console.error(s==="action"?"You can only pass the action prop to <form>.":"You can only pass the formAction prop to <input> or <button>.")),typeof h=="function"){n.setAttribute(s,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof x=="function"&&(s==="formAction"?(i!=="input"&&In(n,i,"name",b.name,b,null),In(n,i,"formEncType",b.formEncType,b,null),In(n,i,"formMethod",b.formMethod,b,null),In(n,i,"formTarget",b.formTarget,b,null)):(In(n,i,"encType",b.encType,b,null),In(n,i,"method",b.method,b,null),In(n,i,"target",b.target,b,null)));if(h==null||typeof h=="symbol"||typeof h=="boolean"){n.removeAttribute(s);break}ae(h,s),h=Ki(""+h),n.setAttribute(s,h);break;case"onClick":h!=null&&(typeof h!="function"&&Mo(s,h),n.onclick=xu);break;case"onScroll":h!=null&&(typeof h!="function"&&Mo(s,h),Mn("scroll",n));break;case"onScrollEnd":h!=null&&(typeof h!="function"&&Mo(s,h),Mn("scrollend",n));break;case"dangerouslySetInnerHTML":if(h!=null){if(typeof h!="object"||!("__html"in h))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(s=h.__html,s!=null){if(b.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");n.innerHTML=s}}break;case"multiple":n.multiple=h&&typeof h!="function"&&typeof h!="symbol";break;case"muted":n.muted=h&&typeof h!="function"&&typeof h!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(h==null||typeof h=="function"||typeof h=="boolean"||typeof h=="symbol"){n.removeAttribute("xlink:href");break}ae(h,s),s=Ki(""+h),n.setAttributeNS(mm,"xlink:href",s);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":h!=null&&typeof h!="function"&&typeof h!="symbol"?(ae(h,s),n.setAttribute(s,""+h)):n.removeAttribute(s);break;case"inert":h!==""||Qx[s]||(Qx[s]=!0,console.error("Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.",s));case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":h&&typeof h!="function"&&typeof h!="symbol"?n.setAttribute(s,""):n.removeAttribute(s);break;case"capture":case"download":h===!0?n.setAttribute(s,""):h!==!1&&h!=null&&typeof h!="function"&&typeof h!="symbol"?(ae(h,s),n.setAttribute(s,h)):n.removeAttribute(s);break;case"cols":case"rows":case"size":case"span":h!=null&&typeof h!="function"&&typeof h!="symbol"&&!isNaN(h)&&1<=h?(ae(h,s),n.setAttribute(s,h)):n.removeAttribute(s);break;case"rowSpan":case"start":h==null||typeof h=="function"||typeof h=="symbol"||isNaN(h)?n.removeAttribute(s):(ae(h,s),n.setAttribute(s,h));break;case"popover":Mn("beforetoggle",n),Mn("toggle",n),Dt(n,"popover",h);break;case"xlinkActuate":vt(n,mm,"xlink:actuate",h);break;case"xlinkArcrole":vt(n,mm,"xlink:arcrole",h);break;case"xlinkRole":vt(n,mm,"xlink:role",h);break;case"xlinkShow":vt(n,mm,"xlink:show",h);break;case"xlinkTitle":vt(n,mm,"xlink:title",h);break;case"xlinkType":vt(n,mm,"xlink:type",h);break;case"xmlBase":vt(n,aM,"xml:base",h);break;case"xmlLang":vt(n,aM,"xml:lang",h);break;case"xmlSpace":vt(n,aM,"xml:space",h);break;case"is":x!=null&&console.error('Cannot update the "is" prop after it has been initialized.'),Dt(n,"is",h);break;case"innerText":case"textContent":break;case"popoverTarget":V2||h==null||typeof h!="object"||(V2=!0,console.error("The `popoverTarget` prop expects the ID of an Element as a string. Received %s instead.",h));default:!(2<s.length)||s[0]!=="o"&&s[0]!=="O"||s[1]!=="n"&&s[1]!=="N"?(s=Pr(s),Dt(n,s,h)):cl.hasOwnProperty(s)&&h!=null&&typeof h!="function"&&Mo(s,h)}}function Eu(n,i,s,h,b,x){switch(s){case"style":Uo(n,h,x);break;case"dangerouslySetInnerHTML":if(h!=null){if(typeof h!="object"||!("__html"in h))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(s=h.__html,s!=null){if(b.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");n.innerHTML=s}}break;case"children":typeof h=="string"?Po(n,h):(typeof h=="number"||typeof h=="bigint")&&Po(n,""+h);break;case"onScroll":h!=null&&(typeof h!="function"&&Mo(s,h),Mn("scroll",n));break;case"onScrollEnd":h!=null&&(typeof h!="function"&&Mo(s,h),Mn("scrollend",n));break;case"onClick":h!=null&&(typeof h!="function"&&Mo(s,h),n.onclick=xu);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(cl.hasOwnProperty(s))h!=null&&typeof h!="function"&&Mo(s,h);else e:{if(s[0]==="o"&&s[1]==="n"&&(b=s.endsWith("Capture"),i=s.slice(2,b?s.length-7:void 0),x=n[ki]||null,x=x!=null?x[s]:null,typeof x=="function"&&n.removeEventListener(i,x,b),typeof h=="function")){typeof x!="function"&&x!==null&&(s in n?n[s]=null:n.hasAttribute(s)&&n.removeAttribute(s)),n.addEventListener(i,h,b);break e}s in n?n[s]=h:h===!0?n.setAttribute(s,""):Dt(n,s,h)}}}function Or(n,i,s){switch(Os(i,s),i){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Mn("error",n),Mn("load",n);var h=!1,b=!1,x;for(x in s)if(s.hasOwnProperty(x)){var N=s[x];if(N!=null)switch(x){case"src":h=!0;break;case"srcSet":b=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(i+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:In(n,i,x,N,s,null)}}b&&In(n,i,"srcSet",s.srcSet,s,null),h&&In(n,i,"src",s.src,s,null);return;case"input":ft("input",s),Mn("invalid",n);var L=x=N=b=null,Z=null,ee=null;for(h in s)if(s.hasOwnProperty(h)){var De=s[h];if(De!=null)switch(h){case"name":b=De;break;case"type":N=De;break;case"checked":Z=De;break;case"defaultChecked":ee=De;break;case"value":x=De;break;case"defaultValue":L=De;break;case"children":case"dangerouslySetInnerHTML":if(De!=null)throw Error(i+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:In(n,i,h,De,s,null)}}pt(n,s),Kt(n,x,L,Z,ee,N,b,!1),vn(n);return;case"select":ft("select",s),Mn("invalid",n),h=N=x=null;for(b in s)if(s.hasOwnProperty(b)&&(L=s[b],L!=null))switch(b){case"value":x=L;break;case"defaultValue":N=L;break;case"multiple":h=L;default:In(n,i,b,L,s,null)}ga(n,s),i=x,s=N,n.multiple=!!h,i!=null?sa(n,!!h,i,!1):s!=null&&sa(n,!!h,s,!0);return;case"textarea":ft("textarea",s),Mn("invalid",n),x=b=h=null;for(N in s)if(s.hasOwnProperty(N)&&(L=s[N],L!=null))switch(N){case"value":h=L;break;case"defaultValue":b=L;break;case"children":x=L;break;case"dangerouslySetInnerHTML":if(L!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:In(n,i,N,L,s,null)}jr(n,s),zt(n,h,b,x),vn(n);return;case"option":Ln(n,s);for(Z in s)if(s.hasOwnProperty(Z)&&(h=s[Z],h!=null))switch(Z){case"selected":n.selected=h&&typeof h!="function"&&typeof h!="symbol";break;default:In(n,i,Z,h,s,null)}return;case"dialog":Mn("beforetoggle",n),Mn("toggle",n),Mn("cancel",n),Mn("close",n);break;case"iframe":case"object":Mn("load",n);break;case"video":case"audio":for(h=0;h<mS.length;h++)Mn(mS[h],n);break;case"image":Mn("error",n),Mn("load",n);break;case"details":Mn("toggle",n);break;case"embed":case"source":case"link":Mn("error",n),Mn("load",n);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(ee in s)if(s.hasOwnProperty(ee)&&(h=s[ee],h!=null))switch(ee){case"children":case"dangerouslySetInnerHTML":throw Error(i+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:In(n,i,ee,h,s,null)}return;default:if(Zi(i)){for(De in s)s.hasOwnProperty(De)&&(h=s[De],h!==void 0&&Eu(n,i,De,h,s,void 0));return}}for(L in s)s.hasOwnProperty(L)&&(h=s[L],h!=null&&In(n,i,L,h,s,null))}function JC(n,i,s,h){switch(Os(i,h),i){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var b=null,x=null,N=null,L=null,Z=null,ee=null,De=null;for(Ie in s){var Ve=s[Ie];if(s.hasOwnProperty(Ie)&&Ve!=null)switch(Ie){case"checked":break;case"value":break;case"defaultValue":Z=Ve;default:h.hasOwnProperty(Ie)||In(n,i,Ie,null,h,Ve)}}for(var Ae in h){var Ie=h[Ae];if(Ve=s[Ae],h.hasOwnProperty(Ae)&&(Ie!=null||Ve!=null))switch(Ae){case"type":x=Ie;break;case"name":b=Ie;break;case"checked":ee=Ie;break;case"defaultChecked":De=Ie;break;case"value":N=Ie;break;case"defaultValue":L=Ie;break;case"children":case"dangerouslySetInnerHTML":if(Ie!=null)throw Error(i+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:Ie!==Ve&&In(n,i,Ae,Ie,h,Ve)}}i=s.type==="checkbox"||s.type==="radio"?s.checked!=null:s.value!=null,h=h.type==="checkbox"||h.type==="radio"?h.checked!=null:h.value!=null,i||!h||j2||(console.error("A component is changing an uncontrolled input to be controlled. This is likely caused by the value changing from undefined to a defined value, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://react.dev/link/controlled-components"),j2=!0),!i||h||z2||(console.error("A component is changing a controlled input to be uncontrolled. This is likely caused by the value changing from a defined to undefined, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://react.dev/link/controlled-components"),z2=!0),xt(n,N,L,Z,ee,De,x,b);return;case"select":Ie=N=L=Ae=null;for(x in s)if(Z=s[x],s.hasOwnProperty(x)&&Z!=null)switch(x){case"value":break;case"multiple":Ie=Z;default:h.hasOwnProperty(x)||In(n,i,x,null,h,Z)}for(b in h)if(x=h[b],Z=s[b],h.hasOwnProperty(b)&&(x!=null||Z!=null))switch(b){case"value":Ae=x;break;case"defaultValue":L=x;break;case"multiple":N=x;default:x!==Z&&In(n,i,b,x,h,Z)}h=L,i=N,s=Ie,Ae!=null?sa(n,!!i,Ae,!1):!!s!=!!i&&(h!=null?sa(n,!!i,h,!0):sa(n,!!i,i?[]:"",!1));return;case"textarea":Ie=Ae=null;for(L in s)if(b=s[L],s.hasOwnProperty(L)&&b!=null&&!h.hasOwnProperty(L))switch(L){case"value":break;case"children":break;default:In(n,i,L,null,h,b)}for(N in h)if(b=h[N],x=s[N],h.hasOwnProperty(N)&&(b!=null||x!=null))switch(N){case"value":Ae=b;break;case"defaultValue":Ie=b;break;case"children":break;case"dangerouslySetInnerHTML":if(b!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:b!==x&&In(n,i,N,b,h,x)}hr(n,Ae,Ie);return;case"option":for(var Pt in s)if(Ae=s[Pt],s.hasOwnProperty(Pt)&&Ae!=null&&!h.hasOwnProperty(Pt))switch(Pt){case"selected":n.selected=!1;break;default:In(n,i,Pt,null,h,Ae)}for(Z in h)if(Ae=h[Z],Ie=s[Z],h.hasOwnProperty(Z)&&Ae!==Ie&&(Ae!=null||Ie!=null))switch(Z){case"selected":n.selected=Ae&&typeof Ae!="function"&&typeof Ae!="symbol";break;default:In(n,i,Z,Ae,h,Ie)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var rn in s)Ae=s[rn],s.hasOwnProperty(rn)&&Ae!=null&&!h.hasOwnProperty(rn)&&In(n,i,rn,null,h,Ae);for(ee in h)if(Ae=h[ee],Ie=s[ee],h.hasOwnProperty(ee)&&Ae!==Ie&&(Ae!=null||Ie!=null))switch(ee){case"children":case"dangerouslySetInnerHTML":if(Ae!=null)throw Error(i+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:In(n,i,ee,Ae,h,Ie)}return;default:if(Zi(i)){for(var Aa in s)Ae=s[Aa],s.hasOwnProperty(Aa)&&Ae!==void 0&&!h.hasOwnProperty(Aa)&&Eu(n,i,Aa,void 0,h,Ae);for(De in h)Ae=h[De],Ie=s[De],!h.hasOwnProperty(De)||Ae===Ie||Ae===void 0&&Ie===void 0||Eu(n,i,De,Ae,h,Ie);return}}for(var Vn in s)Ae=s[Vn],s.hasOwnProperty(Vn)&&Ae!=null&&!h.hasOwnProperty(Vn)&&In(n,i,Vn,null,h,Ae);for(Ve in h)Ae=h[Ve],Ie=s[Ve],!h.hasOwnProperty(Ve)||Ae===Ie||Ae==null&&Ie==null||In(n,i,Ve,Ae,h,Ie)}function qf(n){switch(n){case"class":return"className";case"for":return"htmlFor";default:return n}}function cg(n){var i={};n=n.style;for(var s=0;s<n.length;s++){var h=n[s];i[h]=n.getPropertyValue(h)}return i}function Dh(n,i,s){if(i!=null&&typeof i!="object")console.error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");else{var h,b=h="",x;for(x in i)if(i.hasOwnProperty(x)){var N=i[x];N!=null&&typeof N!="boolean"&&N!==""&&(x.indexOf("--")===0?(oe(N,x),h+=b+x+":"+(""+N).trim()):typeof N!="number"||N===0||Pb.has(x)?(oe(N,x),h+=b+x.replace(Vs,"-$1").toLowerCase().replace(sd,"-ms-")+":"+(""+N).trim()):h+=b+x.replace(Vs,"-$1").toLowerCase().replace(sd,"-ms-")+":"+N+"px",b=";")}h=h||null,i=n.getAttribute("style"),i!==h&&(h=Rs(h),Rs(i)!==h&&(s.style=cg(n)))}}function ro(n,i,s,h,b,x){if(b.delete(s),n=n.getAttribute(s),n===null)switch(typeof h){case"undefined":case"function":case"symbol":case"boolean":return}else if(h!=null)switch(typeof h){case"function":case"symbol":case"boolean":break;default:if(ae(h,i),n===""+h)return}Oa(i,n,h,x)}function ex(n,i,s,h,b,x){if(b.delete(s),n=n.getAttribute(s),n===null){switch(typeof h){case"function":case"symbol":return}if(!h)return}else switch(typeof h){case"function":case"symbol":break;default:if(h)return}Oa(i,n,h,x)}function ob(n,i,s,h,b,x){if(b.delete(s),n=n.getAttribute(s),n===null)switch(typeof h){case"undefined":case"function":case"symbol":return}else if(h!=null)switch(typeof h){case"function":case"symbol":break;default:if(ae(h,s),n===""+h)return}Oa(i,n,h,x)}function Jn(n,i,s,h,b,x){if(b.delete(s),n=n.getAttribute(s),n===null)switch(typeof h){case"undefined":case"function":case"symbol":case"boolean":return;default:if(isNaN(h))return}else if(h!=null)switch(typeof h){case"function":case"symbol":case"boolean":break;default:if(!isNaN(h)&&(ae(h,i),n===""+h))return}Oa(i,n,h,x)}function fa(n,i,s,h,b,x){if(b.delete(s),n=n.getAttribute(s),n===null)switch(typeof h){case"undefined":case"function":case"symbol":case"boolean":return}else if(h!=null)switch(typeof h){case"function":case"symbol":case"boolean":break;default:if(ae(h,i),s=Ki(""+h),n===s)return}Oa(i,n,h,x)}function _n(n,i,s,h){for(var b={},x=new Set,N=n.attributes,L=0;L<N.length;L++)switch(N[L].name.toLowerCase()){case"value":break;case"checked":break;case"selected":break;default:x.add(N[L].name)}if(Zi(i)){for(var Z in s)if(s.hasOwnProperty(Z)){var ee=s[Z];if(ee!=null){if(cl.hasOwnProperty(Z))typeof ee!="function"&&Mo(Z,ee);else if(s.suppressHydrationWarning!==!0)switch(Z){case"children":typeof ee!="string"&&typeof ee!="number"||Oa("children",n.textContent,ee,b);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":N=n.innerHTML,ee=ee?ee.__html:void 0,ee!=null&&(ee=ol(n,ee),Oa(Z,N,ee,b));continue;case"style":x.delete(Z),Dh(n,ee,b);continue;case"offsetParent":case"offsetTop":case"offsetLeft":case"offsetWidth":case"offsetHeight":case"isContentEditable":case"outerText":case"outerHTML":x.delete(Z.toLowerCase()),console.error("Assignment to read-only property will result in a no-op: `%s`",Z);continue;case"className":x.delete("class"),N=_t(n,"class",ee),Oa("className",N,ee,b);continue;default:h.context===Uc&&i!=="svg"&&i!=="math"?x.delete(Z.toLowerCase()):x.delete(Z),N=_t(n,Z,ee),Oa(Z,N,ee,b)}}}}else for(ee in s)if(s.hasOwnProperty(ee)&&(Z=s[ee],Z!=null)){if(cl.hasOwnProperty(ee))typeof Z!="function"&&Mo(ee,Z);else if(s.suppressHydrationWarning!==!0)switch(ee){case"children":typeof Z!="string"&&typeof Z!="number"||Oa("children",n.textContent,Z,b);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"value":case"checked":case"selected":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":N=n.innerHTML,Z=Z?Z.__html:void 0,Z!=null&&(Z=ol(n,Z),N!==Z&&(b[ee]={__html:N}));continue;case"className":ro(n,ee,"class",Z,x,b);continue;case"tabIndex":ro(n,ee,"tabindex",Z,x,b);continue;case"style":x.delete(ee),Dh(n,Z,b);continue;case"multiple":x.delete(ee),Oa(ee,n.multiple,Z,b);continue;case"muted":x.delete(ee),Oa(ee,n.muted,Z,b);continue;case"autoFocus":x.delete("autofocus"),Oa(ee,n.autofocus,Z,b);continue;case"data":if(i!=="object"){x.delete(ee),N=n.getAttribute("data"),Oa(ee,N,Z,b);continue}case"src":case"href":if(!(Z!==""||i==="a"&&ee==="href"||i==="object"&&ee==="data")){console.error(ee==="src"?'An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.':'An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',ee,ee);continue}fa(n,ee,ee,Z,x,b);continue;case"action":case"formAction":if(N=n.getAttribute(ee),typeof Z=="function"){x.delete(ee.toLowerCase()),ee==="formAction"?(x.delete("name"),x.delete("formenctype"),x.delete("formmethod"),x.delete("formtarget")):(x.delete("enctype"),x.delete("method"),x.delete("target"));continue}else if(N===cie){x.delete(ee.toLowerCase()),Oa(ee,"function",Z,b);continue}fa(n,ee,ee.toLowerCase(),Z,x,b);continue;case"xlinkHref":fa(n,ee,"xlink:href",Z,x,b);continue;case"contentEditable":ob(n,ee,"contenteditable",Z,x,b);continue;case"spellCheck":ob(n,ee,"spellcheck",Z,x,b);continue;case"draggable":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":ob(n,ee,ee,Z,x,b);continue;case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":ex(n,ee,ee.toLowerCase(),Z,x,b);continue;case"capture":case"download":e:{L=n;var De=N=ee,Ve=b;if(x.delete(De),L=L.getAttribute(De),L===null)switch(typeof Z){case"undefined":case"function":case"symbol":break e;default:if(Z===!1)break e}else if(Z!=null)switch(typeof Z){case"function":case"symbol":break;case"boolean":if(Z===!0&&L==="")break e;break;default:if(ae(Z,N),L===""+Z)break e}Oa(N,L,Z,Ve)}continue;case"cols":case"rows":case"size":case"span":e:{if(L=n,De=N=ee,Ve=b,x.delete(De),L=L.getAttribute(De),L===null)switch(typeof Z){case"undefined":case"function":case"symbol":case"boolean":break e;default:if(isNaN(Z)||1>Z)break e}else if(Z!=null)switch(typeof Z){case"function":case"symbol":case"boolean":break;default:if(!(isNaN(Z)||1>Z)&&(ae(Z,N),L===""+Z))break e}Oa(N,L,Z,Ve)}continue;case"rowSpan":Jn(n,ee,"rowspan",Z,x,b);continue;case"start":Jn(n,ee,ee,Z,x,b);continue;case"xHeight":ro(n,ee,"x-height",Z,x,b);continue;case"xlinkActuate":ro(n,ee,"xlink:actuate",Z,x,b);continue;case"xlinkArcrole":ro(n,ee,"xlink:arcrole",Z,x,b);continue;case"xlinkRole":ro(n,ee,"xlink:role",Z,x,b);continue;case"xlinkShow":ro(n,ee,"xlink:show",Z,x,b);continue;case"xlinkTitle":ro(n,ee,"xlink:title",Z,x,b);continue;case"xlinkType":ro(n,ee,"xlink:type",Z,x,b);continue;case"xmlBase":ro(n,ee,"xml:base",Z,x,b);continue;case"xmlLang":ro(n,ee,"xml:lang",Z,x,b);continue;case"xmlSpace":ro(n,ee,"xml:space",Z,x,b);continue;case"inert":Z!==""||Qx[ee]||(Qx[ee]=!0,console.error("Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.",ee)),ex(n,ee,ee,Z,x,b);continue;default:if(!(2<ee.length)||ee[0]!=="o"&&ee[0]!=="O"||ee[1]!=="n"&&ee[1]!=="N"){L=Pr(ee),N=!1,h.context===Uc&&i!=="svg"&&i!=="math"?x.delete(L.toLowerCase()):(De=ee.toLowerCase(),De=Jh.hasOwnProperty(De)&&Jh[De]||null,De!==null&&De!==ee&&(N=!0,x.delete(De)),x.delete(L));e:if(De=n,Ve=L,L=Z,Ft(Ve))if(De.hasAttribute(Ve))De=De.getAttribute(Ve),ae(L,Ve),L=De===""+L?L:De;else{switch(typeof L){case"function":case"symbol":break e;case"boolean":if(De=Ve.toLowerCase().slice(0,5),De!=="data-"&&De!=="aria-")break e}L=L===void 0?void 0:null}else L=void 0;N||Oa(ee,L,Z,b)}}}return 0<x.size&&s.suppressHydrationWarning!==!0&&ib(n,x,b),Object.keys(b).length===0?null:b}function Pn(n,i){switch(n.length){case 0:return"";case 1:return n[0];case 2:return n[0]+" "+i+" "+n[1];default:return n.slice(0,-1).join(", ")+", "+i+" "+n[n.length-1]}}function Fn(n){return n.nodeType===9?n:n.ownerDocument}function Pi(n){switch(n){case Hs:return vv;case Ug:return tE;default:return Uc}}function As(n,i){if(n===Uc)switch(i){case"svg":return vv;case"math":return tE;default:return Uc}return n===vv&&i==="foreignObject"?Uc:n}function wu(n,i){return n==="textarea"||n==="noscript"||typeof i.children=="string"||typeof i.children=="number"||typeof i.children=="bigint"||typeof i.dangerouslySetInnerHTML=="object"&&i.dangerouslySetInnerHTML!==null&&i.dangerouslySetInnerHTML.__html!=null}function lb(){var n=window.event;return n&&n.type==="popstate"?n===lM?!1:(lM=n,!0):(lM=null,!1)}function Ms(n){setTimeout(function(){throw n})}function Xa(n,i,s){switch(i){case"button":case"input":case"select":case"textarea":s.autoFocus&&n.focus();break;case"img":s.src?n.src=s.src:s.srcSet&&(n.srcset=s.srcSet)}}function Tu(n,i,s,h){JC(n,i,s,h),n[ki]=h}function Ou(n){Po(n,"")}function sb(n,i,s){n.nodeValue=s}function gr(n){return n==="head"}function Yf(n,i){n.removeChild(i)}function Nh(n,i){(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).removeChild(i)}function di(n,i){var s=i,h=0,b=0;do{var x=s.nextSibling;if(n.removeChild(s),x&&x.nodeType===8)if(s=x.data,s===eE){if(0<h&&8>h){s=h;var N=n.ownerDocument;if(s&die&&Zf(N.documentElement),s&hie&&Zf(N.body),s&mie)for(s=N.head,Zf(s),N=s.firstChild;N;){var L=N.nextSibling,Z=N.nodeName;N[Gh]||Z==="SCRIPT"||Z==="STYLE"||Z==="LINK"&&N.rel.toLowerCase()==="stylesheet"||s.removeChild(N),N=L}}if(b===0){n.removeChild(x),td(i);return}b--}else s===Jx||s===Pc||s===pS?b++:h=s.charCodeAt(0)-48;else h=0;s=x}while(s);td(i)}function ub(n){n=n.style,typeof n.setProperty=="function"?n.setProperty("display","none","important"):n.display="none"}function cb(n){n.nodeValue=""}function fg(n,i){i=i[pie],i=i!=null&&i.hasOwnProperty("display")?i.display:null,n.style.display=i==null||typeof i=="boolean"?"":(""+i).trim()}function dg(n,i){n.nodeValue=i}function Ml(n){var i=n.firstChild;for(i&&i.nodeType===10&&(i=i.nextSibling);i;){var s=i;switch(i=i.nextSibling,s.nodeName){case"HTML":case"HEAD":case"BODY":Ml(s),ut(s);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(s.rel.toLowerCase()==="stylesheet")continue}n.removeChild(s)}}function Ir(n,i,s,h){for(;n.nodeType===1;){var b=s;if(n.nodeName.toLowerCase()!==i.toLowerCase()){if(!h&&(n.nodeName!=="INPUT"||n.type!=="hidden"))break}else if(h){if(!n[Gh])switch(i){case"meta":if(!n.hasAttribute("itemprop"))break;return n;case"link":if(x=n.getAttribute("rel"),x==="stylesheet"&&n.hasAttribute("data-precedence"))break;if(x!==b.rel||n.getAttribute("href")!==(b.href==null||b.href===""?null:b.href)||n.getAttribute("crossorigin")!==(b.crossOrigin==null?null:b.crossOrigin)||n.getAttribute("title")!==(b.title==null?null:b.title))break;return n;case"style":if(n.hasAttribute("data-precedence"))break;return n;case"script":if(x=n.getAttribute("src"),(x!==(b.src==null?null:b.src)||n.getAttribute("type")!==(b.type==null?null:b.type)||n.getAttribute("crossorigin")!==(b.crossOrigin==null?null:b.crossOrigin))&&x&&n.hasAttribute("async")&&!n.hasAttribute("itemprop"))break;return n;default:return n}}else if(i==="input"&&n.type==="hidden"){ae(b.name,"name");var x=b.name==null?null:""+b.name;if(b.type==="hidden"&&n.getAttribute("name")===x)return n}else return n;if(n=Ui(n.nextSibling),n===null)break}return null}function Ru(n,i,s){if(i==="")return null;for(;n.nodeType!==3;)if((n.nodeType!==1||n.nodeName!=="INPUT"||n.type!=="hidden")&&!s||(n=Ui(n.nextSibling),n===null))return null;return n}function Au(n){return n.data===pS||n.data===Pc&&n.ownerDocument.readyState===B2}function Xf(n,i){var s=n.ownerDocument;if(n.data!==Pc||s.readyState===B2)i();else{var h=function(){i(),s.removeEventListener("DOMContentLoaded",h)};s.addEventListener("DOMContentLoaded",h),n._reactRetry=h}}function Ui(n){for(;n!=null;n=n.nextSibling){var i=n.nodeType;if(i===1||i===3)break;if(i===8){if(i=n.data,i===Jx||i===pS||i===Pc||i===rM||i===H2)break;if(i===eE)return null}}return n}function hg(n){if(n.nodeType===1){for(var i=n.nodeName.toLowerCase(),s={},h=n.attributes,b=0;b<h.length;b++){var x=h[b];s[qf(x.name)]=x.name.toLowerCase()==="style"?cg(n):x.value}return{type:i,props:s}}return n.nodeType===8?{type:"Suspense",props:{}}:n.nodeValue}function fb(n,i,s){return s===null||s[fie]!==!0?(n.nodeValue===i?n=null:(i=Rs(i),n=Rs(n.nodeValue)===i?null:n.nodeValue),n):null}function Wf(n){n=n.nextSibling;for(var i=0;n;){if(n.nodeType===8){var s=n.data;if(s===eE){if(i===0)return Ui(n.nextSibling);i--}else s!==Jx&&s!==pS&&s!==Pc||i++}n=n.nextSibling}return null}function mg(n){n=n.previousSibling;for(var i=0;n;){if(n.nodeType===8){var s=n.data;if(s===Jx||s===pS||s===Pc){if(i===0)return n;i--}else s===eE&&i++}n=n.previousSibling}return null}function io(n){td(n)}function tx(n){td(n)}function Ii(n,i,s,h,b){switch(b&&Wi(n,h.ancestorInfo),i=Fn(s),n){case"html":if(n=i.documentElement,!n)throw Error("React expected an <html> element (document.documentElement) to exist in the Document but one was not found. React never removes the documentElement for any Document it renders into so the cause is likely in some other script running on this page.");return n;case"head":if(n=i.head,!n)throw Error("React expected a <head> element (document.head) to exist in the Document but one was not found. React never removes the head for any Document it renders into so the cause is likely in some other script running on this page.");return n;case"body":if(n=i.body,!n)throw Error("React expected a <body> element (document.body) to exist in the Document but one was not found. React never removes the body for any Document it renders into so the cause is likely in some other script running on this page.");return n;default:throw Error("resolveSingletonInstance was called with an element type that is not supported. This is a bug in React.")}}function nx(n,i,s,h){if(!s[ju]&&et(s)){var b=s.tagName.toLowerCase();console.error("You are mounting a new %s component when a previous one has not first unmounted. It is an error to render more than one %s component at a time and attributes and children of these components will likely fail in unpredictable ways. Please only render a single instance of <%s> and if you need to mount a new one, ensure any previous ones have unmounted first.",b,b,b)}switch(n){case"html":case"head":case"body":break;default:console.error("acquireSingletonInstance was called with an element type that is not supported. This is a bug in React.")}for(b=s.attributes;b.length;)s.removeAttributeNode(b[0]);Or(s,n,i),s[ti]=h,s[ki]=i}function Zf(n){for(var i=n.attributes;i.length;)n.removeAttributeNode(i[0]);ut(n)}function pg(n){return typeof n.getRootNode=="function"?n.getRootNode():n.nodeType===9?n:n.ownerDocument}function _s(n,i,s){var h=yv;if(h&&typeof i=="string"&&i){var b=nn(i);b='link[rel="'+n+'"][href="'+b+'"]',typeof s=="string"&&(b+='[crossorigin="'+s+'"]'),G2.has(b)||(G2.add(b),n={rel:n,crossOrigin:s,href:i},h.querySelector(b)===null&&(i=h.createElement("link"),Or(i,"link",n),he(i),h.head.appendChild(i)))}}function $h(n,i,s,h){var b=(b=Dl.current)?pg(b):null;if(!b)throw Error('"resourceRoot" was expected to exist. This is a bug in React.');switch(n){case"meta":case"title":return null;case"style":return typeof s.precedence=="string"&&typeof s.href=="string"?(s=ll(s.href),i=I(b).hoistableStyles,h=i.get(s),h||(h={type:"style",instance:null,count:0,state:null},i.set(s,h)),h):{type:"void",instance:null,count:0,state:null};case"link":if(s.rel==="stylesheet"&&typeof s.href=="string"&&typeof s.precedence=="string"){n=ll(s.href);var x=I(b).hoistableStyles,N=x.get(n);if(!N&&(b=b.ownerDocument||b,N={type:"stylesheet",instance:null,count:0,state:{loading:gm,preload:null}},x.set(n,N),(x=b.querySelector(Qf(n)))&&!x._p&&(N.instance=x,N.state.loading=gS|Yl),!Xl.has(n))){var L={rel:"preload",as:"style",href:s.href,crossOrigin:s.crossOrigin,integrity:s.integrity,media:s.media,hrefLang:s.hrefLang,referrerPolicy:s.referrerPolicy};Xl.set(n,L),x||ax(b,n,L,N.state)}if(i&&h===null)throw s=`
|
|
266
|
+
|
|
267
|
+
- `+Kf(i)+`
|
|
268
|
+
+ `+Kf(s),Error("Expected <link> not to update to be updated to a stylesheet with precedence. Check the `rel`, `href`, and `precedence` props of this component. Alternatively, check whether two different <link> components render in the same slot or share the same key."+s);return N}if(i&&h!==null)throw s=`
|
|
269
|
+
|
|
270
|
+
- `+Kf(i)+`
|
|
271
|
+
+ `+Kf(s),Error("Expected stylesheet with precedence to not be updated to a different kind of <link>. Check the `rel`, `href`, and `precedence` props of this component. Alternatively, check whether two different <link> components render in the same slot or share the same key."+s);return null;case"script":return i=s.async,s=s.src,typeof s=="string"&&i&&typeof i!="function"&&typeof i!="symbol"?(s=Mu(s),i=I(b).hoistableScripts,h=i.get(s),h||(h={type:"script",instance:null,count:0,state:null},i.set(s,h)),h):{type:"void",instance:null,count:0,state:null};default:throw Error('getResource encountered a type it did not expect: "'+n+'". this is a bug in React.')}}function Kf(n){var i=0,s="<link";return typeof n.rel=="string"?(i++,s+=' rel="'+n.rel+'"'):Nl.call(n,"rel")&&(i++,s+=' rel="'+(n.rel===null?"null":"invalid type "+typeof n.rel)+'"'),typeof n.href=="string"?(i++,s+=' href="'+n.href+'"'):Nl.call(n,"href")&&(i++,s+=' href="'+(n.href===null?"null":"invalid type "+typeof n.href)+'"'),typeof n.precedence=="string"?(i++,s+=' precedence="'+n.precedence+'"'):Nl.call(n,"precedence")&&(i++,s+=" precedence={"+(n.precedence===null?"null":"invalid type "+typeof n.precedence)+"}"),Object.getOwnPropertyNames(n).length>i&&(s+=" ..."),s+" />"}function ll(n){return'href="'+nn(n)+'"'}function Qf(n){return'link[rel="stylesheet"]['+n+"]"}function db(n){return un({},n,{"data-precedence":n.precedence,precedence:null})}function ax(n,i,s,h){n.querySelector('link[rel="preload"][as="style"]['+i+"]")?h.loading=gS:(i=n.createElement("link"),h.preload=i,i.addEventListener("load",function(){return h.loading|=gS}),i.addEventListener("error",function(){return h.loading|=F2}),Or(i,"link",s),he(i),n.head.appendChild(i))}function Mu(n){return'[src="'+nn(n)+'"]'}function Oc(n){return"script[async]"+n}function rx(n,i,s){if(i.count++,i.instance===null)switch(i.type){case"style":var h=n.querySelector('style[data-href~="'+nn(s.href)+'"]');if(h)return i.instance=h,he(h),h;var b=un({},s,{"data-href":s.href,"data-precedence":s.precedence,href:null,precedence:null});return h=(n.ownerDocument||n).createElement("style"),he(h),Or(h,"style",b),gg(h,s.precedence,n),i.instance=h;case"stylesheet":b=ll(s.href);var x=n.querySelector(Qf(b));if(x)return i.state.loading|=Yl,i.instance=x,he(x),x;h=db(s),(b=Xl.get(b))&&hb(h,b),x=(n.ownerDocument||n).createElement("link"),he(x);var N=x;return N._p=new Promise(function(L,Z){N.onload=L,N.onerror=Z}),Or(x,"link",h),i.state.loading|=Yl,gg(x,s.precedence,n),i.instance=x;case"script":return x=Mu(s.src),(b=n.querySelector(Oc(x)))?(i.instance=b,he(b),b):(h=s,(b=Xl.get(x))&&(h=un({},s),vg(h,b)),n=n.ownerDocument||n,b=n.createElement("script"),he(b),Or(b,"link",h),n.head.appendChild(b),i.instance=b);case"void":return null;default:throw Error('acquireResource encountered a resource type it did not expect: "'+i.type+'". this is a bug in React.')}else i.type==="stylesheet"&&(i.state.loading&Yl)===gm&&(h=i.instance,i.state.loading|=Yl,gg(h,s.precedence,n));return i.instance}function gg(n,i,s){for(var h=s.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),b=h.length?h[h.length-1]:null,x=b,N=0;N<h.length;N++){var L=h[N];if(L.dataset.precedence===i)x=L;else if(x!==b)break}x?x.parentNode.insertBefore(n,x.nextSibling):(i=s.nodeType===9?s.head:s,i.insertBefore(n,i.firstChild))}function hb(n,i){n.crossOrigin==null&&(n.crossOrigin=i.crossOrigin),n.referrerPolicy==null&&(n.referrerPolicy=i.referrerPolicy),n.title==null&&(n.title=i.title)}function vg(n,i){n.crossOrigin==null&&(n.crossOrigin=i.crossOrigin),n.referrerPolicy==null&&(n.referrerPolicy=i.referrerPolicy),n.integrity==null&&(n.integrity=i.integrity)}function mb(n,i,s){if(nE===null){var h=new Map,b=nE=new Map;b.set(s,h)}else b=nE,h=b.get(s),h||(h=new Map,b.set(s,h));if(h.has(n))return h;for(h.set(n,null),s=s.getElementsByTagName(n),b=0;b<s.length;b++){var x=s[b];if(!(x[Gh]||x[ti]||n==="link"&&x.getAttribute("rel")==="stylesheet")&&x.namespaceURI!==Hs){var N=x.getAttribute(i)||"";N=n+N;var L=h.get(N);L?L.push(x):h.set(N,[x])}}return h}function Rc(n,i,s){n=n.ownerDocument||n,n.head.insertBefore(s,i==="title"?n.querySelector("head > title"):null)}function yg(n,i,s){var h=!s.ancestorInfo.containerTagInScope;if(s.context===vv||i.itemProp!=null)return!h||i.itemProp==null||n!=="meta"&&n!=="title"&&n!=="style"&&n!=="link"&&n!=="script"||console.error("Cannot render a <%s> outside the main document if it has an `itemProp` prop. `itemProp` suggests the tag belongs to an `itemScope` which can appear anywhere in the DOM. If you were intending for React to hoist this <%s> remove the `itemProp` prop. Otherwise, try moving this tag into the <head> or <body> of the Document.",n,n),!1;switch(n){case"meta":case"title":return!0;case"style":if(typeof i.precedence!="string"||typeof i.href!="string"||i.href===""){h&&console.error('Cannot render a <style> outside the main document without knowing its precedence and a unique href key. React can hoist and deduplicate <style> tags if you provide a `precedence` prop along with an `href` prop that does not conflict with the `href` values used in any other hoisted <style> or <link rel="stylesheet" ...> tags. Note that hoisting <style> tags is considered an advanced feature that most will not use directly. Consider moving the <style> tag to the <head> or consider adding a `precedence="default"` and `href="some unique resource identifier"`.');break}return!0;case"link":if(typeof i.rel!="string"||typeof i.href!="string"||i.href===""||i.onLoad||i.onError){if(i.rel==="stylesheet"&&typeof i.precedence=="string"){n=i.href;var b=i.onError,x=i.disabled;s=[],i.onLoad&&s.push("`onLoad`"),b&&s.push("`onError`"),x!=null&&s.push("`disabled`"),b=Pn(s,"and"),b+=s.length===1?" prop":" props",x=s.length===1?"an "+b:"the "+b,s.length&&console.error('React encountered a <link rel="stylesheet" href="%s" ... /> with a `precedence` prop that also included %s. The presence of loading and error handlers indicates an intent to manage the stylesheet loading state from your from your Component code and React will not hoist or deduplicate this stylesheet. If your intent was to have React hoist and deduplciate this stylesheet using the `precedence` prop remove the %s, otherwise remove the `precedence` prop.',n,x,b)}h&&(typeof i.rel!="string"||typeof i.href!="string"||i.href===""?console.error("Cannot render a <link> outside the main document without a `rel` and `href` prop. Try adding a `rel` and/or `href` prop to this <link> or moving the link into the <head> tag"):(i.onError||i.onLoad)&&console.error("Cannot render a <link> with onLoad or onError listeners outside the main document. Try removing onLoad={...} and onError={...} or moving it into the root <head> tag or somewhere in the <body>."));break}switch(i.rel){case"stylesheet":return n=i.precedence,i=i.disabled,typeof n!="string"&&h&&console.error('Cannot render a <link rel="stylesheet" /> outside the main document without knowing its precedence. Consider adding precedence="default" or moving it into the root <head> tag.'),typeof n=="string"&&i==null;default:return!0}case"script":if(n=i.async&&typeof i.async!="function"&&typeof i.async!="symbol",!n||i.onLoad||i.onError||!i.src||typeof i.src!="string"){h&&(n?i.onLoad||i.onError?console.error("Cannot render a <script> with onLoad or onError listeners outside the main document. Try removing onLoad={...} and onError={...} or moving it into the root <head> tag or somewhere in the <body>."):console.error("Cannot render a <script> outside the main document without `async={true}` and a non-empty `src` prop. Ensure there is a valid `src` and either make the script async or move it into the root <head> tag or somewhere in the <body>."):console.error('Cannot render a sync or defer <script> outside the main document without knowing its order. Try adding async="" or moving it into the root <head> tag.'));break}return!0;case"noscript":case"template":h&&console.error("Cannot render <%s> outside the main document. Try moving it into the root <head> tag.",n)}return!1}function pb(n){return!(n.type==="stylesheet"&&(n.state.loading&k2)===gm)}function ix(){}function ox(n,i,s){if(vS===null)throw Error("Internal React Error: suspendedState null when it was expected to exists. Please report this as a React bug.");var h=vS;if(i.type==="stylesheet"&&(typeof s.media!="string"||matchMedia(s.media).matches!==!1)&&(i.state.loading&Yl)===gm){if(i.instance===null){var b=ll(s.href),x=n.querySelector(Qf(b));if(x){n=x._p,n!==null&&typeof n=="object"&&typeof n.then=="function"&&(h.count++,h=zh.bind(h),n.then(h,h)),i.state.loading|=Yl,i.instance=x,he(x);return}x=n.ownerDocument||n,s=db(s),(b=Xl.get(b))&&hb(s,b),x=x.createElement("link"),he(x);var N=x;N._p=new Promise(function(L,Z){N.onload=L,N.onerror=Z}),Or(x,"link",s),i.instance=x}h.stylesheets===null&&(h.stylesheets=new Map),h.stylesheets.set(i,n),(n=i.state.preload)&&(i.state.loading&k2)===gm&&(h.count++,i=zh.bind(h),n.addEventListener("load",i),n.addEventListener("error",i))}}function lx(){if(vS===null)throw Error("Internal React Error: suspendedState null when it was expected to exists. Please report this as a React bug.");var n=vS;return n.stylesheets&&n.count===0&&bg(n,n.stylesheets),0<n.count?function(i){var s=setTimeout(function(){if(n.stylesheets&&bg(n,n.stylesheets),n.unsuspend){var h=n.unsuspend;n.unsuspend=null,h()}},6e4);return n.unsuspend=i,function(){n.unsuspend=null,clearTimeout(s)}}:null}function zh(){if(this.count--,this.count===0){if(this.stylesheets)bg(this,this.stylesheets);else if(this.unsuspend){var n=this.unsuspend;this.unsuspend=null,n()}}}function bg(n,i){n.stylesheets=null,n.unsuspend!==null&&(n.count++,aE=new Map,i.forEach(Sg,n),aE=null,zh.call(n))}function Sg(n,i){if(!(i.state.loading&Yl)){var s=aE.get(n);if(s)var h=s.get(uM);else{s=new Map,aE.set(n,s);for(var b=n.querySelectorAll("link[data-precedence],style[data-precedence]"),x=0;x<b.length;x++){var N=b[x];(N.nodeName==="LINK"||N.getAttribute("media")!=="not all")&&(s.set(N.dataset.precedence,N),h=N)}h&&s.set(uM,h)}b=i.instance,N=b.getAttribute("data-precedence"),x=s.get(N)||h,x===h&&s.set(uM,b),s.set(N,b),this.count++,h=zh.bind(this),b.addEventListener("load",h),b.addEventListener("error",h),x?x.parentNode.insertBefore(b,x.nextSibling):(n=n.nodeType===9?n.head:n,n.insertBefore(b,n.firstChild)),i.state.loading|=Yl}}function sx(n,i,s,h,b,x,N,L){for(this.tag=1,this.containerInfo=n,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=pm,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=rt(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=rt(0),this.hiddenUpdates=rt(null),this.identifierPrefix=h,this.onUncaughtError=b,this.onCaughtError=x,this.onRecoverableError=N,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=L,this.incompleteTransitions=new Map,this.passiveEffectDuration=this.effectDuration=-0,this.memoizedUpdaters=new Set,n=this.pendingUpdatersLaneMap=[],i=0;31>i;i++)n.push(new Set);this._debugRootType=s?"hydrateRoot()":"createRoot()"}function gb(n,i,s,h,b,x,N,L,Z,ee,De,Ve){return n=new sx(n,i,s,N,L,Z,ee,Ve),i=Ure,x===!0&&(i|=Gi|Bs),_o&&(i|=hi),x=T(3,null,null,i),n.current=x,x.stateNode=n,i=ey(),Co(i),n.pooledCache=i,Co(i),x.memoizedState={element:h,isDehydrated:s,cache:i},uu(x),n}function da(n){return n?(n=cd,n):cd}function jh(n,i,s,h,b,x){if(kr&&typeof kr.onScheduleFiberRoot=="function")try{kr.onScheduleFiberRoot(_c,h,s)}catch(N){er||(er=!0,console.error("React instrumentation encountered an error: %s",N))}Ct!==null&&typeof Ct.markRenderScheduled=="function"&&Ct.markRenderScheduled(i),b=da(b),h.context===null?h.context=b:h.pendingContext=b,zl&&Gr!==null&&!W2&&(W2=!0,console.error(`Render methods should be a pure function of props and state; triggering nested component updates from render is not allowed. If necessary, trigger nested updates in componentDidUpdate.
|
|
272
|
+
|
|
273
|
+
Check the render method of %s.`,Y(Gr)||"Unknown")),h=Go(i),h.payload={element:s},x=x===void 0?null:x,x!==null&&(typeof x!="function"&&console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",x),h.callback=x),s=qo(n,h,i),s!==null&&(An(s,n,i),uc(s,n,i))}function ux(n,i){if(n=n.memoizedState,n!==null&&n.dehydrated!==null){var s=n.retryLane;n.retryLane=s!==0&&s<i?s:i}}function Cg(n,i){ux(n,i),(n=n.alternate)&&ux(n,i)}function cx(n){if(n.tag===13){var i=Ri(n,67108864);i!==null&&An(i,n,67108864),Cg(n,67108864)}}function rA(){return Gr}function iA(){for(var n=new Map,i=1,s=0;31>s;s++){var h=Ce(i);n.set(i,h),i*=2}return n}function xg(n,i,s,h){var b=Me.T;Me.T=null;var x=Xn.p;try{Xn.p=lo,Lh(n,i,s,h)}finally{Xn.p=x,Me.T=b}}function Jf(n,i,s,h){var b=Me.T;Me.T=null;var x=Xn.p;try{Xn.p=$l,Lh(n,i,s,h)}finally{Xn.p=x,Me.T=b}}function Lh(n,i,s,h){if(iE){var b=ed(h);if(b===null)ao(n,i,h,oE,s),sl(n,h);else if(oA(b,n,i,s,h))h.stopPropagation();else if(sl(n,h),i&4&&-1<bie.indexOf(n)){for(;b!==null;){var x=et(b);if(x!==null)switch(x.tag){case 3:if(x=x.stateNode,x.current.memoizedState.isDehydrated){var N=_e(x.pendingLanes);if(N!==0){var L=x;for(L.pendingLanes|=2,L.entangledLanes|=2;N;){var Z=1<<31-Rr(N);L.entanglements[1]|=Z,N&=~Z}Ro(x),(ta&(fo|Fs))===dl&&(Fx=Fr()+R2,Cu(0))}}break;case 13:L=Ri(x,2),L!==null&&An(L,x,2),Cc(),Cg(x,2)}if(x=ed(h),x===null&&ao(n,i,h,oE,s),x===b)break;b=x}b!==null&&h.stopPropagation()}else ao(n,i,h,null,s)}}function ed(n){return n=Et(n),Vh(n)}function Vh(n){if(oE=null,n=St(n),n!==null){var i=_(n);if(i===null)n=null;else{var s=i.tag;if(s===13){if(n=z(i),n!==null)return n;n=null}else if(s===3){if(i.stateNode.current.memoizedState.isDehydrated)return i.tag===3?i.stateNode.containerInfo:null;n=null}else i!==n&&(n=null)}}return oE=n,null}function _u(n){switch(n){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return lo;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"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return $l;case"message":switch(px()){case Fh:return lo;case xb:return $l;case ad:case Eb:return Ls;case wb:return $g;default:return Ls}default:return Ls}}function sl(n,i){switch(n){case"focusin":case"focusout":Sd=null;break;case"dragenter":case"dragleave":Cd=null;break;case"mouseover":case"mouseout":xd=null;break;case"pointerover":case"pointerout":bS.delete(i.pointerId);break;case"gotpointercapture":case"lostpointercapture":SS.delete(i.pointerId)}}function Ds(n,i,s,h,b,x){return n===null||n.nativeEvent!==x?(n={blockedOn:i,domEventName:s,eventSystemFlags:h,nativeEvent:x,targetContainers:[b]},i!==null&&(i=et(i),i!==null&&cx(i)),n):(n.eventSystemFlags|=h,i=n.targetContainers,b!==null&&i.indexOf(b)===-1&&i.push(b),n)}function oA(n,i,s,h,b){switch(i){case"focusin":return Sd=Ds(Sd,n,i,s,h,b),!0;case"dragenter":return Cd=Ds(Cd,n,i,s,h,b),!0;case"mouseover":return xd=Ds(xd,n,i,s,h,b),!0;case"pointerover":var x=b.pointerId;return bS.set(x,Ds(bS.get(x)||null,n,i,s,h,b)),!0;case"gotpointercapture":return x=b.pointerId,SS.set(x,Ds(SS.get(x)||null,n,i,s,h,b)),!0}return!1}function vb(n){var i=St(n.target);if(i!==null){var s=_(i);if(s!==null){if(i=s.tag,i===13){if(i=z(s),i!==null){n.blockedOn=i,Tt(n.priority,function(){if(s.tag===13){var h=no(s);h=$t(h);var b=Ri(s,h);b!==null&&An(b,s,h),Cg(s,h)}});return}}else if(i===3&&s.stateNode.current.memoizedState.isDehydrated){n.blockedOn=s.tag===3?s.stateNode.containerInfo:null;return}}}n.blockedOn=null}function Hh(n){if(n.blockedOn!==null)return!1;for(var i=n.targetContainers;0<i.length;){var s=ed(n.nativeEvent);if(s===null){s=n.nativeEvent;var h=new s.constructor(s.type,s),b=h;R!==null&&console.error("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."),R=b,s.target.dispatchEvent(h),R===null&&console.error("Expected currently replaying event to not be null. This error is likely caused by a bug in React. Please file an issue."),R=null}else return i=et(s),i!==null&&cx(i),n.blockedOn=s,!1;i.shift()}return!0}function yb(n,i,s){Hh(n)&&s.delete(i)}function fx(){cM=!1,Sd!==null&&Hh(Sd)&&(Sd=null),Cd!==null&&Hh(Cd)&&(Cd=null),xd!==null&&Hh(xd)&&(xd=null),bS.forEach(yb),SS.forEach(yb)}function Eg(n,i){n.blockedOn===i&&(n.blockedOn=null,cM||(cM=!0,Wa.unstable_scheduleCallback(Wa.unstable_NormalPriority,fx)))}function wg(n){lE!==n&&(lE=n,Wa.unstable_scheduleCallback(Wa.unstable_NormalPriority,function(){lE===n&&(lE=null);for(var i=0;i<n.length;i+=3){var s=n[i],h=n[i+1],b=n[i+2];if(typeof h!="function"){if(Vh(h||s)===null)continue;break}var x=et(s);x!==null&&(n.splice(i,3),i-=3,s={pending:!0,data:b,method:s.method,action:h},Object.freeze(s),Lp(x,s,h,b))}}))}function td(n){function i(Z){return Eg(Z,n)}Sd!==null&&Eg(Sd,n),Cd!==null&&Eg(Cd,n),xd!==null&&Eg(xd,n),bS.forEach(i),SS.forEach(i);for(var s=0;s<Ed.length;s++){var h=Ed[s];h.blockedOn===n&&(h.blockedOn=null)}for(;0<Ed.length&&(s=Ed[0],s.blockedOn===null);)vb(s),s.blockedOn===null&&Ed.shift();if(s=(n.ownerDocument||n).$$reactFormReplay,s!=null)for(h=0;h<s.length;h+=3){var b=s[h],x=s[h+1],N=b[ki]||null;if(typeof x=="function")N||wg(s);else if(N){var L=null;if(x&&x.hasAttribute("formAction")){if(b=x,N=x[ki]||null)L=N.formAction;else if(Vh(b)!==null)continue}else L=N.action;typeof L=="function"?s[h+1]=L:(s.splice(h,3),h-=3),wg(s)}}}function Tg(n){this._internalRoot=n}function Og(n){this._internalRoot=n}function Rg(n){n[ju]&&(n._reactRootContainer?console.error("You are calling ReactDOMClient.createRoot() on a container that was previously passed to ReactDOM.render(). This is not supported."):console.error("You are calling ReactDOMClient.createRoot() on a container that has already been passed to createRoot() before. Instead, call root.render() on the existing root instead if you want to update it."))}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var Wa=CM(),bb=ym(),lA=cE(),un=Object.assign,sA=Symbol.for("react.element"),Ns=Symbol.for("react.transitional.element"),mn=Symbol.for("react.portal"),Du=Symbol.for("react.fragment"),Ac=Symbol.for("react.strict_mode"),Bh=Symbol.for("react.profiler"),dx=Symbol.for("react.provider"),Ph=Symbol.for("react.consumer"),Fi=Symbol.for("react.context"),Nu=Symbol.for("react.forward_ref"),$u=Symbol.for("react.suspense"),Ag=Symbol.for("react.suspense_list"),Mg=Symbol.for("react.memo"),oo=Symbol.for("react.lazy"),_g=Symbol.for("react.activity"),hx=Symbol.for("react.memo_cache_sentinel"),Uh=Symbol.iterator,ha=Symbol.for("react.client.reference"),vr=Array.isArray,Me=bb.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Xn=lA.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Sb=Object.freeze({pending:!1,data:null,method:null,action:null}),Ih=[],nd=[],_l=-1,$s=te(null),Mc=te(null),Dl=te(null),Dg=te(null),Nl=Object.prototype.hasOwnProperty,Cb=Wa.unstable_scheduleCallback,mx=Wa.unstable_cancelCallback,uA=Wa.unstable_shouldYield,cA=Wa.unstable_requestPaint,Fr=Wa.unstable_now,px=Wa.unstable_getCurrentPriorityLevel,Fh=Wa.unstable_ImmediatePriority,xb=Wa.unstable_UserBlockingPriority,ad=Wa.unstable_NormalPriority,Eb=Wa.unstable_LowPriority,wb=Wa.unstable_IdlePriority,ul=Wa.log,Tb=Wa.unstable_setDisableYieldValue,_c=null,kr=null,Ct=null,er=!1,_o=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u",Rr=Math.clz32?Math.clz32:be,zs=Math.log,fA=Math.LN2,Ng=256,js=4194304,lo=2,$l=8,Ls=32,$g=268435456,zu=Math.random().toString(36).slice(2),ti="__reactFiber$"+zu,ki="__reactProps$"+zu,ju="__reactContainer$"+zu,zg="__reactEvents$"+zu,rd="__reactListeners$"+zu,kh="__reactHandles$"+zu,Ob="__reactResources$"+zu,Gh="__reactMarker$"+zu,Dc=new Set,cl={},jg={},Lg={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0},Rb=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),Vg={},qh={},id=0,Ab,gx,Mb,od,vx,yx,bx;Mt.__reactDisabledLog=!0;var ld,Yh,Xh=!1,_b=new(typeof WeakMap=="function"?WeakMap:Map),Gr=null,zl=!1,Sx=/[\n"\\]/g,Db=!1,Nb=!1,$b=!1,Hg=!1,zb=!1,Wh=!1,Cx=["value","defaultValue"],xx=!1,Bg=/["'&<>\n\t]|^\s|\s$/,jb="address applet area article aside base basefont bgsound blockquote body br button caption center col colgroup dd details dir div dl dt embed fieldset figcaption figure footer form frame frameset h1 h2 h3 h4 h5 h6 head header hgroup hr html iframe img input isindex li link listing main marquee menu menuitem meta nav noembed noframes noscript object ol p param plaintext pre script section select source style summary table tbody td template textarea tfoot th thead title tr track ul wbr xmp".split(" "),Zh="applet caption html table td th marquee object template foreignObject desc title".split(" "),Lb=Zh.concat(["button"]),Ex="dd dt li option optgroup p rp rt".split(" "),Pg={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null,containerTagInScope:null,implicitRootScope:!1},fl={},jl={animation:"animationDelay animationDirection animationDuration animationFillMode animationIterationCount animationName animationPlayState animationTimingFunction".split(" "),background:"backgroundAttachment backgroundClip backgroundColor backgroundImage backgroundOrigin backgroundPositionX backgroundPositionY backgroundRepeat backgroundSize".split(" "),backgroundPosition:["backgroundPositionX","backgroundPositionY"],border:"borderBottomColor borderBottomStyle borderBottomWidth borderImageOutset borderImageRepeat borderImageSlice borderImageSource borderImageWidth borderLeftColor borderLeftStyle borderLeftWidth borderRightColor borderRightStyle borderRightWidth borderTopColor borderTopStyle borderTopWidth".split(" "),borderBlockEnd:["borderBlockEndColor","borderBlockEndStyle","borderBlockEndWidth"],borderBlockStart:["borderBlockStartColor","borderBlockStartStyle","borderBlockStartWidth"],borderBottom:["borderBottomColor","borderBottomStyle","borderBottomWidth"],borderColor:["borderBottomColor","borderLeftColor","borderRightColor","borderTopColor"],borderImage:["borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth"],borderInlineEnd:["borderInlineEndColor","borderInlineEndStyle","borderInlineEndWidth"],borderInlineStart:["borderInlineStartColor","borderInlineStartStyle","borderInlineStartWidth"],borderLeft:["borderLeftColor","borderLeftStyle","borderLeftWidth"],borderRadius:["borderBottomLeftRadius","borderBottomRightRadius","borderTopLeftRadius","borderTopRightRadius"],borderRight:["borderRightColor","borderRightStyle","borderRightWidth"],borderStyle:["borderBottomStyle","borderLeftStyle","borderRightStyle","borderTopStyle"],borderTop:["borderTopColor","borderTopStyle","borderTopWidth"],borderWidth:["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth"],columnRule:["columnRuleColor","columnRuleStyle","columnRuleWidth"],columns:["columnCount","columnWidth"],flex:["flexBasis","flexGrow","flexShrink"],flexFlow:["flexDirection","flexWrap"],font:"fontFamily fontFeatureSettings fontKerning fontLanguageOverride fontSize fontSizeAdjust fontStretch fontStyle fontVariant fontVariantAlternates fontVariantCaps fontVariantEastAsian fontVariantLigatures fontVariantNumeric fontVariantPosition fontWeight lineHeight".split(" "),fontVariant:"fontVariantAlternates fontVariantCaps fontVariantEastAsian fontVariantLigatures fontVariantNumeric fontVariantPosition".split(" "),gap:["columnGap","rowGap"],grid:"gridAutoColumns gridAutoFlow gridAutoRows gridTemplateAreas gridTemplateColumns gridTemplateRows".split(" "),gridArea:["gridColumnEnd","gridColumnStart","gridRowEnd","gridRowStart"],gridColumn:["gridColumnEnd","gridColumnStart"],gridColumnGap:["columnGap"],gridGap:["columnGap","rowGap"],gridRow:["gridRowEnd","gridRowStart"],gridRowGap:["rowGap"],gridTemplate:["gridTemplateAreas","gridTemplateColumns","gridTemplateRows"],listStyle:["listStyleImage","listStylePosition","listStyleType"],margin:["marginBottom","marginLeft","marginRight","marginTop"],marker:["markerEnd","markerMid","markerStart"],mask:"maskClip maskComposite maskImage maskMode maskOrigin maskPositionX maskPositionY maskRepeat maskSize".split(" "),maskPosition:["maskPositionX","maskPositionY"],outline:["outlineColor","outlineStyle","outlineWidth"],overflow:["overflowX","overflowY"],padding:["paddingBottom","paddingLeft","paddingRight","paddingTop"],placeContent:["alignContent","justifyContent"],placeItems:["alignItems","justifyItems"],placeSelf:["alignSelf","justifySelf"],textDecoration:["textDecorationColor","textDecorationLine","textDecorationStyle"],textEmphasis:["textEmphasisColor","textEmphasisStyle"],transition:["transitionDelay","transitionDuration","transitionProperty","transitionTimingFunction"],wordWrap:["overflowWrap"]},Vs=/([A-Z])/g,sd=/^ms-/,Kh=/^(?:webkit|moz|o)[A-Z]/,Lu=/^-ms-/,dA=/-(.)/g,Vb=/;\s*$/,Ll={},Hb={},Bb=!1,Qh=!1,Pb=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" ")),Ug="http://www.w3.org/1998/Math/MathML",Hs="http://www.w3.org/2000/svg",Ig=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),Jh={accept:"accept",acceptcharset:"acceptCharset","accept-charset":"acceptCharset",accesskey:"accessKey",action:"action",allowfullscreen:"allowFullScreen",alt:"alt",as:"as",async:"async",autocapitalize:"autoCapitalize",autocomplete:"autoComplete",autocorrect:"autoCorrect",autofocus:"autoFocus",autoplay:"autoPlay",autosave:"autoSave",capture:"capture",cellpadding:"cellPadding",cellspacing:"cellSpacing",challenge:"challenge",charset:"charSet",checked:"checked",children:"children",cite:"cite",class:"className",classid:"classID",classname:"className",cols:"cols",colspan:"colSpan",content:"content",contenteditable:"contentEditable",contextmenu:"contextMenu",controls:"controls",controlslist:"controlsList",coords:"coords",crossorigin:"crossOrigin",dangerouslysetinnerhtml:"dangerouslySetInnerHTML",data:"data",datetime:"dateTime",default:"default",defaultchecked:"defaultChecked",defaultvalue:"defaultValue",defer:"defer",dir:"dir",disabled:"disabled",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback",download:"download",draggable:"draggable",enctype:"encType",enterkeyhint:"enterKeyHint",fetchpriority:"fetchPriority",for:"htmlFor",form:"form",formmethod:"formMethod",formaction:"formAction",formenctype:"formEncType",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hrefLang",htmlfor:"htmlFor",httpequiv:"httpEquiv","http-equiv":"httpEquiv",icon:"icon",id:"id",imagesizes:"imageSizes",imagesrcset:"imageSrcSet",inert:"inert",innerhtml:"innerHTML",inputmode:"inputMode",integrity:"integrity",is:"is",itemid:"itemID",itemprop:"itemProp",itemref:"itemRef",itemscope:"itemScope",itemtype:"itemType",keyparams:"keyParams",keytype:"keyType",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginwidth:"marginWidth",marginheight:"marginHeight",max:"max",maxlength:"maxLength",media:"media",mediagroup:"mediaGroup",method:"method",min:"min",minlength:"minLength",multiple:"multiple",muted:"muted",name:"name",nomodule:"noModule",nonce:"nonce",novalidate:"noValidate",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",playsinline:"playsInline",poster:"poster",preload:"preload",profile:"profile",radiogroup:"radioGroup",readonly:"readOnly",referrerpolicy:"referrerPolicy",rel:"rel",required:"required",reversed:"reversed",role:"role",rows:"rows",rowspan:"rowSpan",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellCheck",src:"src",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabIndex",target:"target",title:"title",type:"type",usemap:"useMap",value:"value",width:"width",wmode:"wmode",wrap:"wrap",about:"about",accentheight:"accentHeight","accent-height":"accentHeight",accumulate:"accumulate",additive:"additive",alignmentbaseline:"alignmentBaseline","alignment-baseline":"alignmentBaseline",allowreorder:"allowReorder",alphabetic:"alphabetic",amplitude:"amplitude",arabicform:"arabicForm","arabic-form":"arabicForm",ascent:"ascent",attributename:"attributeName",attributetype:"attributeType",autoreverse:"autoReverse",azimuth:"azimuth",basefrequency:"baseFrequency",baselineshift:"baselineShift","baseline-shift":"baselineShift",baseprofile:"baseProfile",bbox:"bbox",begin:"begin",bias:"bias",by:"by",calcmode:"calcMode",capheight:"capHeight","cap-height":"capHeight",clip:"clip",clippath:"clipPath","clip-path":"clipPath",clippathunits:"clipPathUnits",cliprule:"clipRule","clip-rule":"clipRule",color:"color",colorinterpolation:"colorInterpolation","color-interpolation":"colorInterpolation",colorinterpolationfilters:"colorInterpolationFilters","color-interpolation-filters":"colorInterpolationFilters",colorprofile:"colorProfile","color-profile":"colorProfile",colorrendering:"colorRendering","color-rendering":"colorRendering",contentscripttype:"contentScriptType",contentstyletype:"contentStyleType",cursor:"cursor",cx:"cx",cy:"cy",d:"d",datatype:"datatype",decelerate:"decelerate",descent:"descent",diffuseconstant:"diffuseConstant",direction:"direction",display:"display",divisor:"divisor",dominantbaseline:"dominantBaseline","dominant-baseline":"dominantBaseline",dur:"dur",dx:"dx",dy:"dy",edgemode:"edgeMode",elevation:"elevation",enablebackground:"enableBackground","enable-background":"enableBackground",end:"end",exponent:"exponent",externalresourcesrequired:"externalResourcesRequired",fill:"fill",fillopacity:"fillOpacity","fill-opacity":"fillOpacity",fillrule:"fillRule","fill-rule":"fillRule",filter:"filter",filterres:"filterRes",filterunits:"filterUnits",floodopacity:"floodOpacity","flood-opacity":"floodOpacity",floodcolor:"floodColor","flood-color":"floodColor",focusable:"focusable",fontfamily:"fontFamily","font-family":"fontFamily",fontsize:"fontSize","font-size":"fontSize",fontsizeadjust:"fontSizeAdjust","font-size-adjust":"fontSizeAdjust",fontstretch:"fontStretch","font-stretch":"fontStretch",fontstyle:"fontStyle","font-style":"fontStyle",fontvariant:"fontVariant","font-variant":"fontVariant",fontweight:"fontWeight","font-weight":"fontWeight",format:"format",from:"from",fx:"fx",fy:"fy",g1:"g1",g2:"g2",glyphname:"glyphName","glyph-name":"glyphName",glyphorientationhorizontal:"glyphOrientationHorizontal","glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphorientationvertical:"glyphOrientationVertical","glyph-orientation-vertical":"glyphOrientationVertical",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",hanging:"hanging",horizadvx:"horizAdvX","horiz-adv-x":"horizAdvX",horizoriginx:"horizOriginX","horiz-origin-x":"horizOriginX",ideographic:"ideographic",imagerendering:"imageRendering","image-rendering":"imageRendering",in2:"in2",in:"in",inlist:"inlist",intercept:"intercept",k1:"k1",k2:"k2",k3:"k3",k4:"k4",k:"k",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",kerning:"kerning",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",letterspacing:"letterSpacing","letter-spacing":"letterSpacing",lightingcolor:"lightingColor","lighting-color":"lightingColor",limitingconeangle:"limitingConeAngle",local:"local",markerend:"markerEnd","marker-end":"markerEnd",markerheight:"markerHeight",markermid:"markerMid","marker-mid":"markerMid",markerstart:"markerStart","marker-start":"markerStart",markerunits:"markerUnits",markerwidth:"markerWidth",mask:"mask",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",mathematical:"mathematical",mode:"mode",numoctaves:"numOctaves",offset:"offset",opacity:"opacity",operator:"operator",order:"order",orient:"orient",orientation:"orientation",origin:"origin",overflow:"overflow",overlineposition:"overlinePosition","overline-position":"overlinePosition",overlinethickness:"overlineThickness","overline-thickness":"overlineThickness",paintorder:"paintOrder","paint-order":"paintOrder",panose1:"panose1","panose-1":"panose1",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointerevents:"pointerEvents","pointer-events":"pointerEvents",points:"points",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",popover:"popover",popovertarget:"popoverTarget",popovertargetaction:"popoverTargetAction",prefix:"prefix",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",property:"property",r:"r",radius:"radius",refx:"refX",refy:"refY",renderingintent:"renderingIntent","rendering-intent":"renderingIntent",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",resource:"resource",restart:"restart",result:"result",results:"results",rotate:"rotate",rx:"rx",ry:"ry",scale:"scale",security:"security",seed:"seed",shaperendering:"shapeRendering","shape-rendering":"shapeRendering",slope:"slope",spacing:"spacing",specularconstant:"specularConstant",specularexponent:"specularExponent",speed:"speed",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stemh:"stemh",stemv:"stemv",stitchtiles:"stitchTiles",stopcolor:"stopColor","stop-color":"stopColor",stopopacity:"stopOpacity","stop-opacity":"stopOpacity",strikethroughposition:"strikethroughPosition","strikethrough-position":"strikethroughPosition",strikethroughthickness:"strikethroughThickness","strikethrough-thickness":"strikethroughThickness",string:"string",stroke:"stroke",strokedasharray:"strokeDasharray","stroke-dasharray":"strokeDasharray",strokedashoffset:"strokeDashoffset","stroke-dashoffset":"strokeDashoffset",strokelinecap:"strokeLinecap","stroke-linecap":"strokeLinecap",strokelinejoin:"strokeLinejoin","stroke-linejoin":"strokeLinejoin",strokemiterlimit:"strokeMiterlimit","stroke-miterlimit":"strokeMiterlimit",strokewidth:"strokeWidth","stroke-width":"strokeWidth",strokeopacity:"strokeOpacity","stroke-opacity":"strokeOpacity",suppresscontenteditablewarning:"suppressContentEditableWarning",suppresshydrationwarning:"suppressHydrationWarning",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textanchor:"textAnchor","text-anchor":"textAnchor",textdecoration:"textDecoration","text-decoration":"textDecoration",textlength:"textLength",textrendering:"textRendering","text-rendering":"textRendering",to:"to",transform:"transform",transformorigin:"transformOrigin","transform-origin":"transformOrigin",typeof:"typeof",u1:"u1",u2:"u2",underlineposition:"underlinePosition","underline-position":"underlinePosition",underlinethickness:"underlineThickness","underline-thickness":"underlineThickness",unicode:"unicode",unicodebidi:"unicodeBidi","unicode-bidi":"unicodeBidi",unicoderange:"unicodeRange","unicode-range":"unicodeRange",unitsperem:"unitsPerEm","units-per-em":"unitsPerEm",unselectable:"unselectable",valphabetic:"vAlphabetic","v-alphabetic":"vAlphabetic",values:"values",vectoreffect:"vectorEffect","vector-effect":"vectorEffect",version:"version",vertadvy:"vertAdvY","vert-adv-y":"vertAdvY",vertoriginx:"vertOriginX","vert-origin-x":"vertOriginX",vertoriginy:"vertOriginY","vert-origin-y":"vertOriginY",vhanging:"vHanging","v-hanging":"vHanging",videographic:"vIdeographic","v-ideographic":"vIdeographic",viewbox:"viewBox",viewtarget:"viewTarget",visibility:"visibility",vmathematical:"vMathematical","v-mathematical":"vMathematical",vocab:"vocab",widths:"widths",wordspacing:"wordSpacing","word-spacing":"wordSpacing",writingmode:"writingMode","writing-mode":"writingMode",x1:"x1",x2:"x2",x:"x",xchannelselector:"xChannelSelector",xheight:"xHeight","x-height":"xHeight",xlinkactuate:"xlinkActuate","xlink:actuate":"xlinkActuate",xlinkarcrole:"xlinkArcrole","xlink:arcrole":"xlinkArcrole",xlinkhref:"xlinkHref","xlink:href":"xlinkHref",xlinkrole:"xlinkRole","xlink:role":"xlinkRole",xlinkshow:"xlinkShow","xlink:show":"xlinkShow",xlinktitle:"xlinkTitle","xlink:title":"xlinkTitle",xlinktype:"xlinkType","xlink:type":"xlinkType",xmlbase:"xmlBase","xml:base":"xmlBase",xmllang:"xmlLang","xml:lang":"xmlLang",xmlns:"xmlns","xml:space":"xmlSpace",xmlnsxlink:"xmlnsXlink","xmlns:xlink":"xmlnsXlink",xmlspace:"xmlSpace",y1:"y1",y2:"y2",y:"y",ychannelselector:"yChannelSelector",z:"z",zoomandpan:"zoomAndPan"},ud={"aria-current":0,"aria-description":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0},Vu={},Fg=RegExp("^(aria)-[: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]*$"),wx=RegExp("^(aria)[A-Z][: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]*$"),Tx=!1,Ar={},o=/^on./,u=/^on[^A-Z]/,d=RegExp("^(aria)-[: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]*$"),v=RegExp("^(aria)[A-Z][: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]*$"),w=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i,R=null,B=null,W=null,se=!1,xe=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),qe=!1;if(xe)try{var Ze={};Object.defineProperty(Ze,"passive",{get:function(){qe=!0}}),window.addEventListener("test",Ze,Ze),window.removeEventListener("test",Ze,Ze)}catch{qe=!1}var Te=null,Ne=null,en=null,Yt={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(n){return n.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Wn=ka(Yt),Se=un({},Yt,{view:0,detail:0}),ve=ka(Se),Ee,Xe,Lt,Sn=un({},Se,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Kr,button:0,buttons:0,relatedTarget:function(n){return n.relatedTarget===void 0?n.fromElement===n.srcElement?n.toElement:n.fromElement:n.relatedTarget},movementX:function(n){return"movementX"in n?n.movementX:(n!==Lt&&(Lt&&n.type==="mousemove"?(Ee=n.screenX-Lt.screenX,Xe=n.screenY-Lt.screenY):Xe=Ee=0,Lt=n),Ee)},movementY:function(n){return"movementY"in n?n.movementY:Xe}}),qt=ka(Sn),tn=un({},Sn,{dataTransfer:0}),Mr=ka(tn),kn=un({},Se,{relatedTarget:0}),Vl=ka(kn),hA=un({},Yt,{animationName:0,elapsedTime:0,pseudoElement:0}),pre=ka(hA),gre=un({},Yt,{clipboardData:function(n){return"clipboardData"in n?n.clipboardData:window.clipboardData}}),vre=ka(gre),yre=un({},Yt,{data:0}),sL=ka(yre),bre=sL,Sre={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Cre={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"},xre={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"},Ere=un({},Se,{key:function(n){if(n.key){var i=Sre[n.key]||n.key;if(i!=="Unidentified")return i}return n.type==="keypress"?(n=bo(n),n===13?"Enter":String.fromCharCode(n)):n.type==="keydown"||n.type==="keyup"?Cre[n.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Kr,charCode:function(n){return n.type==="keypress"?bo(n):0},keyCode:function(n){return n.type==="keydown"||n.type==="keyup"?n.keyCode:0},which:function(n){return n.type==="keypress"?bo(n):n.type==="keydown"||n.type==="keyup"?n.keyCode:0}}),wre=ka(Ere),Tre=un({},Sn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),uL=ka(Tre),Ore=un({},Se,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Kr}),Rre=ka(Ore),Are=un({},Yt,{propertyName:0,elapsedTime:0,pseudoElement:0}),Mre=ka(Are),_re=un({},Sn,{deltaX:function(n){return"deltaX"in n?n.deltaX:"wheelDeltaX"in n?-n.wheelDeltaX:0},deltaY:function(n){return"deltaY"in n?n.deltaY:"wheelDeltaY"in n?-n.wheelDeltaY:"wheelDelta"in n?-n.wheelDelta:0},deltaZ:0,deltaMode:0}),Dre=ka(_re),Nre=un({},Yt,{newState:0,oldState:0}),$re=ka(Nre),zre=[9,13,27,32],cL=229,mA=xe&&"CompositionEvent"in window,Ub=null;xe&&"documentMode"in document&&(Ub=document.documentMode);var jre=xe&&"TextEvent"in window&&!Ub,fL=xe&&(!mA||Ub&&8<Ub&&11>=Ub),dL=32,hL=String.fromCharCode(dL),mL=!1,kg=!1,Lre={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},Ib=null,Fb=null,pL=!1;xe&&(pL=U0("input")&&(!document.documentMode||9<document.documentMode));var so=typeof Object.is=="function"?Object.is:QR,Vre=xe&&"documentMode"in document&&11>=document.documentMode,Gg=null,pA=null,kb=null,gA=!1,qg={animationend:ec("Animation","AnimationEnd"),animationiteration:ec("Animation","AnimationIteration"),animationstart:ec("Animation","AnimationStart"),transitionrun:ec("Transition","TransitionRun"),transitionstart:ec("Transition","TransitionStart"),transitioncancel:ec("Transition","TransitionCancel"),transitionend:ec("Transition","TransitionEnd")},vA={},gL={};xe&&(gL=document.createElement("div").style,"AnimationEvent"in window||(delete qg.animationend.animation,delete qg.animationiteration.animation,delete qg.animationstart.animation),"TransitionEvent"in window||delete qg.transitionend.transition);var vL=tc("animationend"),yL=tc("animationiteration"),bL=tc("animationstart"),Hre=tc("transitionrun"),Bre=tc("transitionstart"),Pre=tc("transitioncancel"),SL=tc("transitionend"),CL=new Map,yA="abort auxClick beforeToggle 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(" ");yA.push("scrollEnd");var bA=new WeakMap,Ox=1,Nc=2,Hl=[],Yg=0,SA=0,cd={};Object.freeze(cd);var Bl=null,Xg=null,Da=0,Ure=1,hi=2,Gi=8,Bs=16,xL=64,EL=!1;try{var wL=Object.preventExtensions({})}catch{EL=!0}var Wg=[],Zg=0,Rx=null,Ax=0,Pl=[],Ul=0,em=null,$c=1,zc="",uo=null,sr=null,Gn=!1,jc=!1,Il=null,tm=null,Hu=!1,CA=Error("Hydration Mismatch Exception: This is not a real error, and should not leak into userspace. If you're seeing this, it's likely a bug in React."),TL=0;if(typeof performance=="object"&&typeof performance.now=="function")var Ire=performance,OL=function(){return Ire.now()};else{var Fre=Date;OL=function(){return Fre.now()}}var xA=te(null),EA=te(null),RL={},Mx=null,Kg=null,Qg=!1,kre=typeof AbortController<"u"?AbortController:function(){var n=[],i=this.signal={aborted:!1,addEventListener:function(s,h){n.push(h)}};this.abort=function(){i.aborted=!0,n.forEach(function(s){return s()})}},Gre=Wa.unstable_scheduleCallback,qre=Wa.unstable_NormalPriority,qr={$$typeof:Fi,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0,_currentRenderer:null,_currentRenderer2:null},Jg=Wa.unstable_now,AL=-0,_x=-0,Do=-1.1,nm=-0,Dx=!1,Nx=!1,Gb=null,wA=0,am=0,ev=null,ML=Me.S;Me.S=function(n,i){typeof i=="object"&&i!==null&&typeof i.then=="function"&&$C(n,i),ML!==null&&ML(n,i)};var rm=te(null),Ps={recordUnsafeLifecycleWarnings:function(){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}},qb=[],Yb=[],Xb=[],Wb=[],Zb=[],Kb=[],im=new Set;Ps.recordUnsafeLifecycleWarnings=function(n,i){im.has(n.type)||(typeof i.componentWillMount=="function"&&i.componentWillMount.__suppressDeprecationWarning!==!0&&qb.push(n),n.mode&Gi&&typeof i.UNSAFE_componentWillMount=="function"&&Yb.push(n),typeof i.componentWillReceiveProps=="function"&&i.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&Xb.push(n),n.mode&Gi&&typeof i.UNSAFE_componentWillReceiveProps=="function"&&Wb.push(n),typeof i.componentWillUpdate=="function"&&i.componentWillUpdate.__suppressDeprecationWarning!==!0&&Zb.push(n),n.mode&Gi&&typeof i.UNSAFE_componentWillUpdate=="function"&&Kb.push(n))},Ps.flushPendingUnsafeLifecycleWarnings=function(){var n=new Set;0<qb.length&&(qb.forEach(function(L){n.add(Y(L)||"Component"),im.add(L.type)}),qb=[]);var i=new Set;0<Yb.length&&(Yb.forEach(function(L){i.add(Y(L)||"Component"),im.add(L.type)}),Yb=[]);var s=new Set;0<Xb.length&&(Xb.forEach(function(L){s.add(Y(L)||"Component"),im.add(L.type)}),Xb=[]);var h=new Set;0<Wb.length&&(Wb.forEach(function(L){h.add(Y(L)||"Component"),im.add(L.type)}),Wb=[]);var b=new Set;0<Zb.length&&(Zb.forEach(function(L){b.add(Y(L)||"Component"),im.add(L.type)}),Zb=[]);var x=new Set;if(0<Kb.length&&(Kb.forEach(function(L){x.add(Y(L)||"Component"),im.add(L.type)}),Kb=[]),0<i.size){var N=E(i);console.error(`Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
274
|
+
|
|
275
|
+
* Move code with side effects to componentDidMount, and set initial state in the constructor.
|
|
276
|
+
|
|
277
|
+
Please update the following components: %s`,N)}0<h.size&&(N=E(h),console.error(`Using UNSAFE_componentWillReceiveProps in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
278
|
+
|
|
279
|
+
* Move data fetching code or side effects to componentDidUpdate.
|
|
280
|
+
* If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://react.dev/link/derived-state
|
|
281
|
+
|
|
282
|
+
Please update the following components: %s`,N)),0<x.size&&(N=E(x),console.error(`Using UNSAFE_componentWillUpdate in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
283
|
+
|
|
284
|
+
* Move data fetching code or side effects to componentDidUpdate.
|
|
285
|
+
|
|
286
|
+
Please update the following components: %s`,N)),0<n.size&&(N=E(n),console.warn(`componentWillMount has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
287
|
+
|
|
288
|
+
* Move code with side effects to componentDidMount, and set initial state in the constructor.
|
|
289
|
+
* Rename componentWillMount to UNSAFE_componentWillMount to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
|
|
290
|
+
|
|
291
|
+
Please update the following components: %s`,N)),0<s.size&&(N=E(s),console.warn(`componentWillReceiveProps has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
292
|
+
|
|
293
|
+
* Move data fetching code or side effects to componentDidUpdate.
|
|
294
|
+
* If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://react.dev/link/derived-state
|
|
295
|
+
* Rename componentWillReceiveProps to UNSAFE_componentWillReceiveProps to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
|
|
296
|
+
|
|
297
|
+
Please update the following components: %s`,N)),0<b.size&&(N=E(b),console.warn(`componentWillUpdate has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
298
|
+
|
|
299
|
+
* Move data fetching code or side effects to componentDidUpdate.
|
|
300
|
+
* Rename componentWillUpdate to UNSAFE_componentWillUpdate to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
|
|
301
|
+
|
|
302
|
+
Please update the following components: %s`,N))};var $x=new Map,_L=new Set;Ps.recordLegacyContextWarning=function(n,i){for(var s=null,h=n;h!==null;)h.mode&Gi&&(s=h),h=h.return;s===null?console.error("Expected to find a StrictMode component in a strict mode tree. This error is likely caused by a bug in React. Please file an issue."):!_L.has(n.type)&&(h=$x.get(s),n.type.contextTypes!=null||n.type.childContextTypes!=null||i!==null&&typeof i.getChildContext=="function")&&(h===void 0&&(h=[],$x.set(s,h)),h.push(n))},Ps.flushLegacyContextWarning=function(){$x.forEach(function(n){if(n.length!==0){var i=n[0],s=new Set;n.forEach(function(b){s.add(Y(b)||"Component"),_L.add(b.type)});var h=E(s);ot(i,function(){console.error(`Legacy context API has been detected within a strict-mode tree.
|
|
303
|
+
|
|
304
|
+
The old API will be supported in all 16.x releases, but applications using it should migrate to the new version.
|
|
305
|
+
|
|
306
|
+
Please update the following components: %s
|
|
307
|
+
|
|
308
|
+
Learn more about this warning here: https://react.dev/link/legacy-context`,h)})}})},Ps.discardPendingWarnings=function(){qb=[],Yb=[],Xb=[],Wb=[],Zb=[],Kb=[],$x=new Map};var Qb=Error("Suspense Exception: This is not a real error! It's an implementation detail of `use` to interrupt the current render. You must either rethrow it immediately, or move the `use` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary, or call the promise's `.catch` method and pass the result to `use`."),DL=Error("Suspense Exception: This is not a real error, and should not leak into userspace. If you're seeing this, it's likely a bug in React."),zx=Error("Suspense Exception: This is not a real error! It's an implementation detail of `useActionState` to interrupt the current render. You must either rethrow it immediately, or move the `useActionState` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary."),TA={then:function(){console.error('Internal React error: A listener was unexpectedly attached to a "noop" thenable. This is a bug in React. Please file an issue.')}},Jb=null,jx=!1,Fl=0,kl=1,co=2,mi=4,Yr=8,NL=0,$L=1,zL=2,OA=3,fd=!1,jL=!1,RA=null,AA=!1,tv=te(null),Lx=te(0),nv,LL=new Set,VL=new Set,MA=new Set,HL=new Set,dd=0,cn=null,Ca=null,_r=null,Vx=!1,av=!1,om=!1,Hx=0,eS=0,Lc=null,Yre=0,Xre=25,Le=null,Gl=null,Vc=-1,tS=!1,Bx={readContext:Ea,use:Ga,useCallback:Sa,useContext:Sa,useEffect:Sa,useImperativeHandle:Sa,useLayoutEffect:Sa,useInsertionEffect:Sa,useMemo:Sa,useReducer:Sa,useRef:Sa,useState:Sa,useDebugValue:Sa,useDeferredValue:Sa,useTransition:Sa,useSyncExternalStore:Sa,useId:Sa,useHostTransitionStatus:Sa,useFormState:Sa,useActionState:Sa,useOptimistic:Sa,useMemoCache:Sa,useCacheRefresh:Sa},_A=null,BL=null,DA=null,PL=null,Bu=null,Us=null,Px=null;_A={readContext:function(n){return Ea(n)},use:Ga,useCallback:function(n,i){return Le="useCallback",yn(),fu(i),Of(n,i)},useContext:function(n){return Le="useContext",yn(),Ea(n)},useEffect:function(n,i){return Le="useEffect",yn(),fu(i),oh(n,i)},useImperativeHandle:function(n,i,s){return Le="useImperativeHandle",yn(),fu(s),vs(n,i,s)},useInsertionEffect:function(n,i){Le="useInsertionEffect",yn(),fu(i),Eo(4,co,n,i)},useLayoutEffect:function(n,i){return Le="useLayoutEffect",yn(),fu(i),uy(n,i)},useMemo:function(n,i){Le="useMemo",yn(),fu(i);var s=Me.H;Me.H=Bu;try{return dc(n,i)}finally{Me.H=s}},useReducer:function(n,i,s){Le="useReducer",yn();var h=Me.H;Me.H=Bu;try{return ps(n,i,s)}finally{Me.H=h}},useRef:function(n){return Le="useRef",yn(),pu(n)},useState:function(n){Le="useState",yn();var i=Me.H;Me.H=Bu;try{return Ko(n)}finally{Me.H=i}},useDebugValue:function(){Le="useDebugValue",yn()},useDeferredValue:function(n,i){return Le="useDeferredValue",yn(),Rf(n,i)},useTransition:function(){return Le="useTransition",yn(),uh()},useSyncExternalStore:function(n,i,s){return Le="useSyncExternalStore",yn(),_p(n,i,s)},useId:function(){return Le="useId",yn(),hc()},useFormState:function(n,i){return Le="useFormState",yn(),vf(),Ef(n,i)},useActionState:function(n,i){return Le="useActionState",yn(),Ef(n,i)},useOptimistic:function(n){return Le="useOptimistic",yn(),wl(n)},useHostTransitionStatus:Ni,useMemoCache:ua,useCacheRefresh:function(){return Le="useCacheRefresh",yn(),ch()}},BL={readContext:function(n){return Ea(n)},use:Ga,useCallback:function(n,i){return Le="useCallback",at(),Of(n,i)},useContext:function(n){return Le="useContext",at(),Ea(n)},useEffect:function(n,i){return Le="useEffect",at(),oh(n,i)},useImperativeHandle:function(n,i,s){return Le="useImperativeHandle",at(),vs(n,i,s)},useInsertionEffect:function(n,i){Le="useInsertionEffect",at(),Eo(4,co,n,i)},useLayoutEffect:function(n,i){return Le="useLayoutEffect",at(),uy(n,i)},useMemo:function(n,i){Le="useMemo",at();var s=Me.H;Me.H=Bu;try{return dc(n,i)}finally{Me.H=s}},useReducer:function(n,i,s){Le="useReducer",at();var h=Me.H;Me.H=Bu;try{return ps(n,i,s)}finally{Me.H=h}},useRef:function(n){return Le="useRef",at(),pu(n)},useState:function(n){Le="useState",at();var i=Me.H;Me.H=Bu;try{return Ko(n)}finally{Me.H=i}},useDebugValue:function(){Le="useDebugValue",at()},useDeferredValue:function(n,i){return Le="useDeferredValue",at(),Rf(n,i)},useTransition:function(){return Le="useTransition",at(),uh()},useSyncExternalStore:function(n,i,s){return Le="useSyncExternalStore",at(),_p(n,i,s)},useId:function(){return Le="useId",at(),hc()},useActionState:function(n,i){return Le="useActionState",at(),Ef(n,i)},useFormState:function(n,i){return Le="useFormState",at(),vf(),Ef(n,i)},useOptimistic:function(n){return Le="useOptimistic",at(),wl(n)},useHostTransitionStatus:Ni,useMemoCache:ua,useCacheRefresh:function(){return Le="useCacheRefresh",at(),ch()}},DA={readContext:function(n){return Ea(n)},use:Ga,useCallback:function(n,i){return Le="useCallback",at(),lh(n,i)},useContext:function(n){return Le="useContext",at(),Ea(n)},useEffect:function(n,i){Le="useEffect",at(),Di(2048,Yr,n,i)},useImperativeHandle:function(n,i,s){return Le="useImperativeHandle",at(),Tf(n,i,s)},useInsertionEffect:function(n,i){return Le="useInsertionEffect",at(),Di(4,co,n,i)},useLayoutEffect:function(n,i){return Le="useLayoutEffect",at(),Di(4,mi,n,i)},useMemo:function(n,i){Le="useMemo",at();var s=Me.H;Me.H=Us;try{return sh(n,i)}finally{Me.H=s}},useReducer:function(n,i,s){Le="useReducer",at();var h=Me.H;Me.H=Us;try{return ci(n,i,s)}finally{Me.H=h}},useRef:function(){return Le="useRef",at(),Qn().memoizedState},useState:function(){Le="useState",at();var n=Me.H;Me.H=Us;try{return ci(bn)}finally{Me.H=n}},useDebugValue:function(){Le="useDebugValue",at()},useDeferredValue:function(n,i){return Le="useDeferredValue",at(),jp(n,i)},useTransition:function(){return Le="useTransition",at(),Vp()},useSyncExternalStore:function(n,i,s){return Le="useSyncExternalStore",at(),ah(n,i,s)},useId:function(){return Le="useId",at(),Qn().memoizedState},useFormState:function(n){return Le="useFormState",at(),vf(),zp(n)},useActionState:function(n){return Le="useActionState",at(),zp(n)},useOptimistic:function(n,i){return Le="useOptimistic",at(),Tl(n,i)},useHostTransitionStatus:Ni,useMemoCache:ua,useCacheRefresh:function(){return Le="useCacheRefresh",at(),Qn().memoizedState}},PL={readContext:function(n){return Ea(n)},use:Ga,useCallback:function(n,i){return Le="useCallback",at(),lh(n,i)},useContext:function(n){return Le="useContext",at(),Ea(n)},useEffect:function(n,i){Le="useEffect",at(),Di(2048,Yr,n,i)},useImperativeHandle:function(n,i,s){return Le="useImperativeHandle",at(),Tf(n,i,s)},useInsertionEffect:function(n,i){return Le="useInsertionEffect",at(),Di(4,co,n,i)},useLayoutEffect:function(n,i){return Le="useLayoutEffect",at(),Di(4,mi,n,i)},useMemo:function(n,i){Le="useMemo",at();var s=Me.H;Me.H=Px;try{return sh(n,i)}finally{Me.H=s}},useReducer:function(n,i,s){Le="useReducer",at();var h=Me.H;Me.H=Px;try{return Zo(n,i,s)}finally{Me.H=h}},useRef:function(){return Le="useRef",at(),Qn().memoizedState},useState:function(){Le="useState",at();var n=Me.H;Me.H=Px;try{return Zo(bn)}finally{Me.H=n}},useDebugValue:function(){Le="useDebugValue",at()},useDeferredValue:function(n,i){return Le="useDeferredValue",at(),fy(n,i)},useTransition:function(){return Le="useTransition",at(),bs()},useSyncExternalStore:function(n,i,s){return Le="useSyncExternalStore",at(),ah(n,i,s)},useId:function(){return Le="useId",at(),Qn().memoizedState},useFormState:function(n){return Le="useFormState",at(),vf(),mu(n)},useActionState:function(n){return Le="useActionState",at(),mu(n)},useOptimistic:function(n,i){return Le="useOptimistic",at(),$p(n,i)},useHostTransitionStatus:Ni,useMemoCache:ua,useCacheRefresh:function(){return Le="useCacheRefresh",at(),Qn().memoizedState}},Bu={readContext:function(n){return y(),Ea(n)},use:function(n){return p(),Ga(n)},useCallback:function(n,i){return Le="useCallback",p(),yn(),Of(n,i)},useContext:function(n){return Le="useContext",p(),yn(),Ea(n)},useEffect:function(n,i){return Le="useEffect",p(),yn(),oh(n,i)},useImperativeHandle:function(n,i,s){return Le="useImperativeHandle",p(),yn(),vs(n,i,s)},useInsertionEffect:function(n,i){Le="useInsertionEffect",p(),yn(),Eo(4,co,n,i)},useLayoutEffect:function(n,i){return Le="useLayoutEffect",p(),yn(),uy(n,i)},useMemo:function(n,i){Le="useMemo",p(),yn();var s=Me.H;Me.H=Bu;try{return dc(n,i)}finally{Me.H=s}},useReducer:function(n,i,s){Le="useReducer",p(),yn();var h=Me.H;Me.H=Bu;try{return ps(n,i,s)}finally{Me.H=h}},useRef:function(n){return Le="useRef",p(),yn(),pu(n)},useState:function(n){Le="useState",p(),yn();var i=Me.H;Me.H=Bu;try{return Ko(n)}finally{Me.H=i}},useDebugValue:function(){Le="useDebugValue",p(),yn()},useDeferredValue:function(n,i){return Le="useDeferredValue",p(),yn(),Rf(n,i)},useTransition:function(){return Le="useTransition",p(),yn(),uh()},useSyncExternalStore:function(n,i,s){return Le="useSyncExternalStore",p(),yn(),_p(n,i,s)},useId:function(){return Le="useId",p(),yn(),hc()},useFormState:function(n,i){return Le="useFormState",p(),yn(),Ef(n,i)},useActionState:function(n,i){return Le="useActionState",p(),yn(),Ef(n,i)},useOptimistic:function(n){return Le="useOptimistic",p(),yn(),wl(n)},useMemoCache:function(n){return p(),ua(n)},useHostTransitionStatus:Ni,useCacheRefresh:function(){return Le="useCacheRefresh",yn(),ch()}},Us={readContext:function(n){return y(),Ea(n)},use:function(n){return p(),Ga(n)},useCallback:function(n,i){return Le="useCallback",p(),at(),lh(n,i)},useContext:function(n){return Le="useContext",p(),at(),Ea(n)},useEffect:function(n,i){Le="useEffect",p(),at(),Di(2048,Yr,n,i)},useImperativeHandle:function(n,i,s){return Le="useImperativeHandle",p(),at(),Tf(n,i,s)},useInsertionEffect:function(n,i){return Le="useInsertionEffect",p(),at(),Di(4,co,n,i)},useLayoutEffect:function(n,i){return Le="useLayoutEffect",p(),at(),Di(4,mi,n,i)},useMemo:function(n,i){Le="useMemo",p(),at();var s=Me.H;Me.H=Us;try{return sh(n,i)}finally{Me.H=s}},useReducer:function(n,i,s){Le="useReducer",p(),at();var h=Me.H;Me.H=Us;try{return ci(n,i,s)}finally{Me.H=h}},useRef:function(){return Le="useRef",p(),at(),Qn().memoizedState},useState:function(){Le="useState",p(),at();var n=Me.H;Me.H=Us;try{return ci(bn)}finally{Me.H=n}},useDebugValue:function(){Le="useDebugValue",p(),at()},useDeferredValue:function(n,i){return Le="useDeferredValue",p(),at(),jp(n,i)},useTransition:function(){return Le="useTransition",p(),at(),Vp()},useSyncExternalStore:function(n,i,s){return Le="useSyncExternalStore",p(),at(),ah(n,i,s)},useId:function(){return Le="useId",p(),at(),Qn().memoizedState},useFormState:function(n){return Le="useFormState",p(),at(),zp(n)},useActionState:function(n){return Le="useActionState",p(),at(),zp(n)},useOptimistic:function(n,i){return Le="useOptimistic",p(),at(),Tl(n,i)},useMemoCache:function(n){return p(),ua(n)},useHostTransitionStatus:Ni,useCacheRefresh:function(){return Le="useCacheRefresh",at(),Qn().memoizedState}},Px={readContext:function(n){return y(),Ea(n)},use:function(n){return p(),Ga(n)},useCallback:function(n,i){return Le="useCallback",p(),at(),lh(n,i)},useContext:function(n){return Le="useContext",p(),at(),Ea(n)},useEffect:function(n,i){Le="useEffect",p(),at(),Di(2048,Yr,n,i)},useImperativeHandle:function(n,i,s){return Le="useImperativeHandle",p(),at(),Tf(n,i,s)},useInsertionEffect:function(n,i){return Le="useInsertionEffect",p(),at(),Di(4,co,n,i)},useLayoutEffect:function(n,i){return Le="useLayoutEffect",p(),at(),Di(4,mi,n,i)},useMemo:function(n,i){Le="useMemo",p(),at();var s=Me.H;Me.H=Us;try{return sh(n,i)}finally{Me.H=s}},useReducer:function(n,i,s){Le="useReducer",p(),at();var h=Me.H;Me.H=Us;try{return Zo(n,i,s)}finally{Me.H=h}},useRef:function(){return Le="useRef",p(),at(),Qn().memoizedState},useState:function(){Le="useState",p(),at();var n=Me.H;Me.H=Us;try{return Zo(bn)}finally{Me.H=n}},useDebugValue:function(){Le="useDebugValue",p(),at()},useDeferredValue:function(n,i){return Le="useDeferredValue",p(),at(),fy(n,i)},useTransition:function(){return Le="useTransition",p(),at(),bs()},useSyncExternalStore:function(n,i,s){return Le="useSyncExternalStore",p(),at(),ah(n,i,s)},useId:function(){return Le="useId",p(),at(),Qn().memoizedState},useFormState:function(n){return Le="useFormState",p(),at(),mu(n)},useActionState:function(n){return Le="useActionState",p(),at(),mu(n)},useOptimistic:function(n,i){return Le="useOptimistic",p(),at(),$p(n,i)},useMemoCache:function(n){return p(),ua(n)},useHostTransitionStatus:Ni,useCacheRefresh:function(){return Le="useCacheRefresh",at(),Qn().memoizedState}};var UL={"react-stack-bottom-frame":function(n,i,s){var h=zl;zl=!0;try{return n(i,s)}finally{zl=h}}},NA=UL["react-stack-bottom-frame"].bind(UL),IL={"react-stack-bottom-frame":function(n){var i=zl;zl=!0;try{return n.render()}finally{zl=i}}},FL=IL["react-stack-bottom-frame"].bind(IL),kL={"react-stack-bottom-frame":function(n,i){try{i.componentDidMount()}catch(s){ca(n,n.return,s)}}},$A=kL["react-stack-bottom-frame"].bind(kL),GL={"react-stack-bottom-frame":function(n,i,s,h,b){try{i.componentDidUpdate(s,h,b)}catch(x){ca(n,n.return,x)}}},qL=GL["react-stack-bottom-frame"].bind(GL),YL={"react-stack-bottom-frame":function(n,i){var s=i.stack;n.componentDidCatch(i.value,{componentStack:s!==null?s:""})}},Wre=YL["react-stack-bottom-frame"].bind(YL),XL={"react-stack-bottom-frame":function(n,i,s){try{s.componentWillUnmount()}catch(h){ca(n,i,h)}}},WL=XL["react-stack-bottom-frame"].bind(XL),ZL={"react-stack-bottom-frame":function(n){n.resourceKind!=null&&console.error("Expected only SimpleEffects when enableUseEffectCRUDOverload is disabled, got %s",n.resourceKind);var i=n.create;return n=n.inst,i=i(),n.destroy=i}},Zre=ZL["react-stack-bottom-frame"].bind(ZL),KL={"react-stack-bottom-frame":function(n,i,s){try{s()}catch(h){ca(n,i,h)}}},Kre=KL["react-stack-bottom-frame"].bind(KL),QL={"react-stack-bottom-frame":function(n){var i=n._init;return i(n._payload)}},hd=QL["react-stack-bottom-frame"].bind(QL),rv=null,nS=0,Tn=null,zA,JL=zA=!1,e2={},t2={},n2={};g=function(n,i,s){if(s!==null&&typeof s=="object"&&s._store&&(!s._store.validated&&s.key==null||s._store.validated===2)){if(typeof s._store!="object")throw Error("React Component in warnForMissingKey should have a _store. This error is likely caused by a bug in React. Please file an issue.");s._store.validated=1;var h=Y(n),b=h||"null";if(!e2[b]){e2[b]=!0,s=s._owner,n=n._debugOwner;var x="";n&&typeof n.tag=="number"&&(b=Y(n))&&(x=`
|
|
309
|
+
|
|
310
|
+
Check the render method of \``+b+"`."),x||h&&(x=`
|
|
311
|
+
|
|
312
|
+
Check the top-level render call using <`+h+">.");var N="";s!=null&&n!==s&&(h=null,typeof s.tag=="number"?h=Y(s):typeof s.name=="string"&&(h=s.name),h&&(N=" It was passed a child from "+h+".")),ot(i,function(){console.error('Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',x,N)})}}};var iv=pc(!0),a2=pc(!1),ql=te(null),Pu=null,ov=1,aS=2,Xr=te(0),r2={},i2=new Set,o2=new Set,l2=new Set,s2=new Set,u2=new Set,c2=new Set,f2=new Set,d2=new Set,h2=new Set,m2=new Set;Object.freeze(r2);var jA={enqueueSetState:function(n,i,s){n=n._reactInternals;var h=no(n),b=Go(h);b.payload=i,s!=null&&(Ha(s),b.callback=s),i=qo(n,b,h),i!==null&&(An(i,n,h),uc(i,n,h)),Pe(n,h)},enqueueReplaceState:function(n,i,s){n=n._reactInternals;var h=no(n),b=Go(h);b.tag=$L,b.payload=i,s!=null&&(Ha(s),b.callback=s),i=qo(n,b,h),i!==null&&(An(i,n,h),uc(i,n,h)),Pe(n,h)},enqueueForceUpdate:function(n,i){n=n._reactInternals;var s=no(n),h=Go(s);h.tag=zL,i!=null&&(Ha(i),h.callback=i),i=qo(n,h,s),i!==null&&(An(i,n,s),uc(i,n,s)),Ct!==null&&typeof Ct.markForceUpdateScheduled=="function"&&Ct.markForceUpdateScheduled(n,s)}},LA=typeof reportError=="function"?reportError:function(n){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var i=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof n=="object"&&n!==null&&typeof n.message=="string"?String(n.message):String(n),error:n});if(!window.dispatchEvent(i))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",n);return}console.error(n)},lv=null,VA=null,p2=Error("This is not a real error. It's an implementation detail of React's selective hydration feature. If this leaks into userspace, it's a bug in React. Please file an issue."),ni=!1,g2={},v2={},y2={},b2={},sv=!1,S2={},HA={},BA={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null},C2=!1,x2=null;x2=new Set;var Hc=!1,yr=!1,PA=!1,E2=typeof WeakSet=="function"?WeakSet:Set,ai=null,uv=null,cv=null,Dr=null,No=!1,Is=null,rS=8192,Qre={getCacheForType:function(n){var i=Ea(qr),s=i.data.get(n);return s===void 0&&(s=n(),i.data.set(n,s)),s},getOwner:function(){return Gr}};if(typeof Symbol=="function"&&Symbol.for){var iS=Symbol.for;iS("selector.component"),iS("selector.has_pseudo_class"),iS("selector.role"),iS("selector.test_id"),iS("selector.text")}var Jre=[],eie=typeof WeakMap=="function"?WeakMap:Map,dl=0,fo=2,Fs=4,Bc=0,oS=1,fv=2,UA=3,lm=4,Ux=6,w2=5,ta=dl,Ra=null,$n=null,jn=0,$o=0,lS=1,sm=2,sS=3,T2=4,IA=5,dv=6,uS=7,FA=8,um=9,ma=$o,hl=null,md=!1,hv=!1,kA=!1,Uu=0,ur=Bc,pd=0,gd=0,GA=0,ml=0,cm=0,cS=null,ho=null,Ix=!1,qA=0,O2=300,Fx=1/0,R2=500,fS=null,vd=null,tie=0,nie=1,aie=2,fm=0,A2=1,M2=2,_2=3,rie=4,YA=5,pi=0,yd=null,mv=null,bd=0,XA=0,WA=null,D2=null,iie=50,dS=0,ZA=null,KA=!1,kx=!1,oie=50,dm=0,hS=null,pv=!1,Gx=null,N2=!1,$2=new Set,lie={},qx=null,gv=null,QA=!1,JA=!1,Yx=!1,eM=!1,hm=0,tM={};(function(){for(var n=0;n<yA.length;n++){var i=yA[n],s=i.toLowerCase();i=i[0].toUpperCase()+i.slice(1),Io(s,"on"+i)}Io(vL,"onAnimationEnd"),Io(yL,"onAnimationIteration"),Io(bL,"onAnimationStart"),Io("dblclick","onDoubleClick"),Io("focusin","onFocus"),Io("focusout","onBlur"),Io(Hre,"onTransitionRun"),Io(Bre,"onTransitionStart"),Io(Pre,"onTransitionCancel"),Io(SL,"onTransitionEnd")})(),Je("onMouseEnter",["mouseout","mouseover"]),Je("onMouseLeave",["mouseout","mouseover"]),Je("onPointerEnter",["pointerout","pointerover"]),Je("onPointerLeave",["pointerout","pointerover"]),Qe("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Qe("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Qe("onBeforeInput",["compositionend","keypress","textInput","paste"]),Qe("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Qe("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Qe("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var mS="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(" "),nM=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(mS)),Xx="_reactListening"+Math.random().toString(36).slice(2),z2=!1,j2=!1,Wx=!1,L2=!1,Zx=!1,Kx=!1,V2=!1,Qx={},sie=/\r\n?/g,uie=/\u0000|\uFFFD/g,mm="http://www.w3.org/1999/xlink",aM="http://www.w3.org/XML/1998/namespace",cie="javascript:throw new Error('React form unexpectedly submitted.')",fie="suppressHydrationWarning",Jx="$",eE="/$",Pc="$?",pS="$!",die=1,hie=2,mie=4,rM="F!",H2="F",B2="complete",pie="style",Uc=0,vv=1,tE=2,iM=null,oM=null,P2={dialog:!0,webview:!0},lM=null,U2=typeof setTimeout=="function"?setTimeout:void 0,gie=typeof clearTimeout=="function"?clearTimeout:void 0,pm=-1,I2=typeof Promise=="function"?Promise:void 0,vie=typeof queueMicrotask=="function"?queueMicrotask:typeof I2<"u"?function(n){return I2.resolve(null).then(n).catch(Ms)}:U2,sM=null,gm=0,gS=1,F2=2,k2=3,Yl=4,Xl=new Map,G2=new Set,Ic=Xn.d;Xn.d={f:function(){var n=Ic.f(),i=Cc();return n||i},r:function(n){var i=et(n);i!==null&&i.tag===5&&i.type==="form"?ys(i):Ic.r(n)},D:function(n){Ic.D(n),_s("dns-prefetch",n,null)},C:function(n,i){Ic.C(n,i),_s("preconnect",n,i)},L:function(n,i,s){Ic.L(n,i,s);var h=yv;if(h&&n&&i){var b='link[rel="preload"][as="'+nn(i)+'"]';i==="image"&&s&&s.imageSrcSet?(b+='[imagesrcset="'+nn(s.imageSrcSet)+'"]',typeof s.imageSizes=="string"&&(b+='[imagesizes="'+nn(s.imageSizes)+'"]')):b+='[href="'+nn(n)+'"]';var x=b;switch(i){case"style":x=ll(n);break;case"script":x=Mu(n)}Xl.has(x)||(n=un({rel:"preload",href:i==="image"&&s&&s.imageSrcSet?void 0:n,as:i},s),Xl.set(x,n),h.querySelector(b)!==null||i==="style"&&h.querySelector(Qf(x))||i==="script"&&h.querySelector(Oc(x))||(i=h.createElement("link"),Or(i,"link",n),he(i),h.head.appendChild(i)))}},m:function(n,i){Ic.m(n,i);var s=yv;if(s&&n){var h=i&&typeof i.as=="string"?i.as:"script",b='link[rel="modulepreload"][as="'+nn(h)+'"][href="'+nn(n)+'"]',x=b;switch(h){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":x=Mu(n)}if(!Xl.has(x)&&(n=un({rel:"modulepreload",href:n},i),Xl.set(x,n),s.querySelector(b)===null)){switch(h){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(s.querySelector(Oc(x)))return}h=s.createElement("link"),Or(h,"link",n),he(h),s.head.appendChild(h)}}},X:function(n,i){Ic.X(n,i);var s=yv;if(s&&n){var h=I(s).hoistableScripts,b=Mu(n),x=h.get(b);x||(x=s.querySelector(Oc(b)),x||(n=un({src:n,async:!0},i),(i=Xl.get(b))&&vg(n,i),x=s.createElement("script"),he(x),Or(x,"link",n),s.head.appendChild(x)),x={type:"script",instance:x,count:1,state:null},h.set(b,x))}},S:function(n,i,s){Ic.S(n,i,s);var h=yv;if(h&&n){var b=I(h).hoistableStyles,x=ll(n);i=i||"default";var N=b.get(x);if(!N){var L={loading:gm,preload:null};if(N=h.querySelector(Qf(x)))L.loading=gS|Yl;else{n=un({rel:"stylesheet",href:n,"data-precedence":i},s),(s=Xl.get(x))&&hb(n,s);var Z=N=h.createElement("link");he(Z),Or(Z,"link",n),Z._p=new Promise(function(ee,De){Z.onload=ee,Z.onerror=De}),Z.addEventListener("load",function(){L.loading|=gS}),Z.addEventListener("error",function(){L.loading|=F2}),L.loading|=Yl,gg(N,i,h)}N={type:"stylesheet",instance:N,count:1,state:L},b.set(x,N)}}},M:function(n,i){Ic.M(n,i);var s=yv;if(s&&n){var h=I(s).hoistableScripts,b=Mu(n),x=h.get(b);x||(x=s.querySelector(Oc(b)),x||(n=un({src:n,async:!0,type:"module"},i),(i=Xl.get(b))&&vg(n,i),x=s.createElement("script"),he(x),Or(x,"link",n),s.head.appendChild(x)),x={type:"script",instance:x,count:1,state:null},h.set(b,x))}}};var yv=typeof document>"u"?null:document,nE=null,vS=null,uM=null,aE=null,vm=Sb,yS={$$typeof:Fi,Provider:null,Consumer:null,_currentValue:vm,_currentValue2:vm,_threadCount:0},q2="%c%s%c ",Y2="background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px",X2="",rE=" ",yie=Function.prototype.bind,W2=!1,Z2=null,K2=null,Q2=null,J2=null,e8=null,t8=null,n8=null,a8=null,r8=null;Z2=function(n,i,s,h){i=t(n,i),i!==null&&(s=a(i.memoizedState,s,0,h),i.memoizedState=s,i.baseState=s,n.memoizedProps=un({},n.memoizedProps),s=Ri(n,2),s!==null&&An(s,n,2))},K2=function(n,i,s){i=t(n,i),i!==null&&(s=c(i.memoizedState,s,0),i.memoizedState=s,i.baseState=s,n.memoizedProps=un({},n.memoizedProps),s=Ri(n,2),s!==null&&An(s,n,2))},Q2=function(n,i,s,h){i=t(n,i),i!==null&&(s=r(i.memoizedState,s,h),i.memoizedState=s,i.baseState=s,n.memoizedProps=un({},n.memoizedProps),s=Ri(n,2),s!==null&&An(s,n,2))},J2=function(n,i,s){n.pendingProps=a(n.memoizedProps,i,0,s),n.alternate&&(n.alternate.pendingProps=n.pendingProps),i=Ri(n,2),i!==null&&An(i,n,2)},e8=function(n,i){n.pendingProps=c(n.memoizedProps,i,0),n.alternate&&(n.alternate.pendingProps=n.pendingProps),i=Ri(n,2),i!==null&&An(i,n,2)},t8=function(n,i,s){n.pendingProps=r(n.memoizedProps,i,s),n.alternate&&(n.alternate.pendingProps=n.pendingProps),i=Ri(n,2),i!==null&&An(i,n,2)},n8=function(n){var i=Ri(n,2);i!==null&&An(i,n,2)},a8=function(n){m=n},r8=function(n){f=n};var iE=!0,oE=null,cM=!1,Sd=null,Cd=null,xd=null,bS=new Map,SS=new Map,Ed=[],bie="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" "),lE=null;if(Og.prototype.render=Tg.prototype.render=function(n){var i=this._internalRoot;if(i===null)throw Error("Cannot update an unmounted root.");var s=arguments;typeof s[1]=="function"?console.error("does not support the second callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."):D(s[1])?console.error("You passed a container to the second argument of root.render(...). You don't need to pass it again since you already passed it to create the root."):typeof s[1]<"u"&&console.error("You passed a second argument to root.render(...) but it only accepts one argument."),s=n;var h=i.current,b=no(h);jh(h,b,s,i,null,null)},Og.prototype.unmount=Tg.prototype.unmount=function(){var n=arguments;if(typeof n[0]=="function"&&console.error("does not support a callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."),n=this._internalRoot,n!==null){this._internalRoot=null;var i=n.containerInfo;(ta&(fo|Fs))!==dl&&console.error("Attempted to synchronously unmount a root while React was already rendering. React cannot finish unmounting the root until the current render has completed, which may lead to a race condition."),jh(n.current,2,null,n,null,null),Cc(),i[ju]=null}},Og.prototype.unstable_scheduleHydration=function(n){if(n){var i=Wt();n={blockedOn:null,target:n,priority:i};for(var s=0;s<Ed.length&&i!==0&&i<Ed[s].priority;s++);Ed.splice(s,0,n),s===0&&vb(n)}},function(){var n=bb.version;if(n!=="19.1.0")throw Error(`Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:
|
|
313
|
+
- react: `+(n+`
|
|
314
|
+
- react-dom: 19.1.0
|
|
315
|
+
Learn more: https://react.dev/warnings/version-mismatch`))}(),typeof Map=="function"&&Map.prototype!=null&&typeof Map.prototype.forEach=="function"&&typeof Set=="function"&&Set.prototype!=null&&typeof Set.prototype.clear=="function"&&typeof Set.prototype.forEach=="function"||console.error("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://react.dev/link/react-polyfills"),Xn.findDOMNode=function(n){var i=n._reactInternals;if(i===void 0)throw typeof n.render=="function"?Error("Unable to find node on an unmounted component."):(n=Object.keys(n).join(","),Error("Argument appears to not be a ReactComponent. Keys: "+n));return n=$(i),n=n!==null?V(n):null,n=n===null?null:n.stateNode,n},!function(){var n={bundleType:1,version:"19.1.0",rendererPackageName:"react-dom",currentDispatcherRef:Me,reconcilerVersion:"19.1.0"};return n.overrideHookState=Z2,n.overrideHookStateDeletePath=K2,n.overrideHookStateRenamePath=Q2,n.overrideProps=J2,n.overridePropsDeletePath=e8,n.overridePropsRenamePath=t8,n.scheduleUpdate=n8,n.setErrorHandler=a8,n.setSuspenseHandler=r8,n.scheduleRefresh=M,n.scheduleRoot=O,n.setRefreshHandler=A,n.getCurrentFiber=rA,n.getLaneLabelMap=iA,n.injectProfilingHooks=ze,ye(n)}()&&xe&&window.top===window.self&&(-1<navigator.userAgent.indexOf("Chrome")&&navigator.userAgent.indexOf("Edge")===-1||-1<navigator.userAgent.indexOf("Firefox"))){var i8=window.location.protocol;/^(https?|file):$/.test(i8)&&console.info("%cDownload the React DevTools for a better development experience: https://react.dev/link/react-devtools"+(i8==="file:"?`
|
|
316
|
+
You might need to use a local HTTP server (instead of file://): https://react.dev/link/react-devtools-faq`:""),"font-weight:bold")}wv.createRoot=function(n,i){if(!D(n))throw Error("Target container is not a DOM element.");Rg(n);var s=!1,h="",b=jC,x=Up,N=Ip,L=null;return i!=null&&(i.hydrate?console.warn("hydrate through createRoot is deprecated. Use ReactDOMClient.hydrateRoot(container, <App />) instead."):typeof i=="object"&&i!==null&&i.$$typeof===Ns&&console.error(`You passed a JSX element to createRoot. You probably meant to call root.render instead. Example usage:
|
|
317
|
+
|
|
318
|
+
let root = createRoot(domContainer);
|
|
319
|
+
root.render(<App />);`),i.unstable_strictMode===!0&&(s=!0),i.identifierPrefix!==void 0&&(h=i.identifierPrefix),i.onUncaughtError!==void 0&&(b=i.onUncaughtError),i.onCaughtError!==void 0&&(x=i.onCaughtError),i.onRecoverableError!==void 0&&(N=i.onRecoverableError),i.unstable_transitionCallbacks!==void 0&&(L=i.unstable_transitionCallbacks)),i=gb(n,1,!1,null,null,s,h,b,x,N,L,null),n[ju]=i.current,_h(n),new Tg(i)},wv.hydrateRoot=function(n,i,s){if(!D(n))throw Error("Target container is not a DOM element.");Rg(n),i===void 0&&console.error("Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)");var h=!1,b="",x=jC,N=Up,L=Ip,Z=null,ee=null;return s!=null&&(s.unstable_strictMode===!0&&(h=!0),s.identifierPrefix!==void 0&&(b=s.identifierPrefix),s.onUncaughtError!==void 0&&(x=s.onUncaughtError),s.onCaughtError!==void 0&&(N=s.onCaughtError),s.onRecoverableError!==void 0&&(L=s.onRecoverableError),s.unstable_transitionCallbacks!==void 0&&(Z=s.unstable_transitionCallbacks),s.formState!==void 0&&(ee=s.formState)),i=gb(n,1,!0,i,s??null,h,b,x,N,L,Z,ee),i.context=da(null),s=i.current,h=no(s),h=$t(h),b=Go(h),b.callback=null,qo(s,b,h),s=h,i.current.lanes=s,Ge(i,s),Ro(i),n[ju]=i.current,_h(n),new Og(i)},wv.version="19.1.0",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}(),wv}var RM;function y8(){if(RM)return ES.exports;RM=1;var e={};function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function")){if(e.NODE_ENV!=="production")throw new Error("^_^");try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(a){console.error(a)}}}return e.NODE_ENV==="production"?(t(),ES.exports=g8()):ES.exports=v8(),ES.exports}var b8=y8();const S8=bv(b8);var C=ym();const we=bv(C),OS=fM({__proto__:null,default:we},[C]);var fE={exports:{}};/*!
|
|
320
|
+
Copyright (c) 2018 Jed Watson.
|
|
321
|
+
Licensed under the MIT License (MIT), see
|
|
322
|
+
http://jedwatson.github.io/classnames
|
|
323
|
+
*/var AM;function C8(){return AM||(AM=1,function(e){(function(){var t={}.hasOwnProperty;function a(){for(var c="",f=0;f<arguments.length;f++){var m=arguments[f];m&&(c=l(c,r(m)))}return c}function r(c){if(typeof c=="string"||typeof c=="number")return c;if(typeof c!="object")return"";if(Array.isArray(c))return a.apply(null,c);if(c.toString!==Object.prototype.toString&&!c.toString.toString().includes("[native code]"))return c.toString();var f="";for(var m in c)t.call(c,m)&&c[m]&&(f=l(f,m));return f}function l(c,f){return f?c?c+" "+f:c+f:c}e.exports?(a.default=a,e.exports=a):window.classNames=a})()}(fE)),fE.exports}var x8=C8();const Ye=bv(x8);function jt(){return jt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)({}).hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},jt.apply(null,arguments)}function Xt(e){"@babel/helpers - typeof";return Xt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Xt(e)}var E8=Symbol.for("react.element"),w8=Symbol.for("react.transitional.element"),T8=Symbol.for("react.fragment");function MM(e){return e&&Xt(e)==="object"&&(e.$$typeof===E8||e.$$typeof===w8)&&e.type===T8}function ks(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=[];return we.Children.forEach(e,function(r){r==null&&!t.keepEmpty||(Array.isArray(r)?a=a.concat(ks(r)):MM(r)&&r.props?a=a.concat(ks(r.props.children,t)):a.push(r))}),a}var _M={},dE={},hE=[],O8=function(t){hE.push(t)};function wd(e,t){if(_M.NODE_ENV!=="production"&&!e&&console!==void 0){var a=hE.reduce(function(r,l){return l(r??"","warning")},t);a&&console.error("Warning: ".concat(a))}}function R8(e,t){if(_M.NODE_ENV!=="production"&&!e&&console!==void 0){var a=hE.reduce(function(r,l){return l(r??"","note")},t);a&&console.warn("Note: ".concat(a))}}function DM(){dE={}}function NM(e,t,a){!t&&!dE[a]&&(e(!1,a),dE[a]=!0)}function Dn(e,t){NM(wd,e,t)}function mE(e,t){NM(R8,e,t)}Dn.preMessage=O8,Dn.resetWarned=DM,Dn.noteOnce=mE;function A8(e,t){if(Xt(e)!="object"||!e)return e;var a=e[Symbol.toPrimitive];if(a!==void 0){var r=a.call(e,t);if(Xt(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function $M(e){var t=A8(e,"string");return Xt(t)=="symbol"?t:t+""}function de(e,t,a){return(t=$M(t))in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function zM(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),a.push.apply(a,r)}return a}function ge(e){for(var t=1;t<arguments.length;t++){var a=arguments[t]!=null?arguments[t]:{};t%2?zM(Object(a),!0).forEach(function(r){de(e,r,a[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):zM(Object(a)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(a,r))})}return e}var bm=cE();const pE=bv(bm),jM=fM({__proto__:null,default:pE},[bm]);function Tv(e){return e instanceof HTMLElement||e instanceof SVGElement}function M8(e){return e&&Xt(e)==="object"&&Tv(e.nativeElement)?e.nativeElement:Tv(e)?e:null}function RS(e){var t=M8(e);if(t)return t;if(e instanceof we.Component){var a;return(a=pE.findDOMNode)===null||a===void 0?void 0:a.call(pE,e)}return null}var AS={exports:{}},na={};/**
|
|
324
|
+
* @license React
|
|
325
|
+
* react-is.production.min.js
|
|
326
|
+
*
|
|
327
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
328
|
+
*
|
|
329
|
+
* This source code is licensed under the MIT license found in the
|
|
330
|
+
* LICENSE file in the root directory of this source tree.
|
|
331
|
+
*/var LM;function _8(){if(LM)return na;LM=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),c=Symbol.for("react.provider"),f=Symbol.for("react.context"),m=Symbol.for("react.server_context"),g=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),y=Symbol.for("react.suspense_list"),S=Symbol.for("react.memo"),E=Symbol.for("react.lazy"),T=Symbol.for("react.offscreen"),O;O=Symbol.for("react.module.reference");function M(A){if(typeof A=="object"&&A!==null){var D=A.$$typeof;switch(D){case e:switch(A=A.type,A){case a:case l:case r:case p:case y:return A;default:switch(A=A&&A.$$typeof,A){case m:case f:case g:case E:case S:case c:return A;default:return D}}case t:return D}}}return na.ContextConsumer=f,na.ContextProvider=c,na.Element=e,na.ForwardRef=g,na.Fragment=a,na.Lazy=E,na.Memo=S,na.Portal=t,na.Profiler=l,na.StrictMode=r,na.Suspense=p,na.SuspenseList=y,na.isAsyncMode=function(){return!1},na.isConcurrentMode=function(){return!1},na.isContextConsumer=function(A){return M(A)===f},na.isContextProvider=function(A){return M(A)===c},na.isElement=function(A){return typeof A=="object"&&A!==null&&A.$$typeof===e},na.isForwardRef=function(A){return M(A)===g},na.isFragment=function(A){return M(A)===a},na.isLazy=function(A){return M(A)===E},na.isMemo=function(A){return M(A)===S},na.isPortal=function(A){return M(A)===t},na.isProfiler=function(A){return M(A)===l},na.isStrictMode=function(A){return M(A)===r},na.isSuspense=function(A){return M(A)===p},na.isSuspenseList=function(A){return M(A)===y},na.isValidElementType=function(A){return typeof A=="string"||typeof A=="function"||A===a||A===l||A===r||A===p||A===y||A===T||typeof A=="object"&&A!==null&&(A.$$typeof===E||A.$$typeof===S||A.$$typeof===c||A.$$typeof===f||A.$$typeof===g||A.$$typeof===O||A.getModuleId!==void 0)},na.typeOf=M,na}var aa={},VM;function D8(){if(VM)return aa;VM=1;var e={};/**
|
|
332
|
+
* @license React
|
|
333
|
+
* react-is.development.js
|
|
334
|
+
*
|
|
335
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
336
|
+
*
|
|
337
|
+
* This source code is licensed under the MIT license found in the
|
|
338
|
+
* LICENSE file in the root directory of this source tree.
|
|
339
|
+
*/return e.NODE_ENV!=="production"&&function(){var t=Symbol.for("react.element"),a=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),l=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),f=Symbol.for("react.provider"),m=Symbol.for("react.context"),g=Symbol.for("react.server_context"),p=Symbol.for("react.forward_ref"),y=Symbol.for("react.suspense"),S=Symbol.for("react.suspense_list"),E=Symbol.for("react.memo"),T=Symbol.for("react.lazy"),O=Symbol.for("react.offscreen"),M=!1,A=!1,D=!1,_=!1,z=!1,j;j=Symbol.for("react.module.reference");function $(be){return!!(typeof be=="string"||typeof be=="function"||be===r||be===c||z||be===l||be===y||be===S||_||be===O||M||A||D||typeof be=="object"&&be!==null&&(be.$$typeof===T||be.$$typeof===E||be.$$typeof===f||be.$$typeof===m||be.$$typeof===p||be.$$typeof===j||be.getModuleId!==void 0))}function V(be){if(typeof be=="object"&&be!==null){var Ce=be.$$typeof;switch(Ce){case t:var _e=be.type;switch(_e){case r:case c:case l:case y:case S:return _e;default:var je=_e&&_e.$$typeof;switch(je){case g:case m:case p:case T:case E:case f:return je;default:return Ce}}case a:return Ce}}}var H=m,P=f,q=t,Y=p,te=r,G=T,K=E,J=a,ie=c,k=l,X=y,Q=S,le=!1,U=!1;function F(be){return le||(le=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function ne(be){return U||(U=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function ae(be){return V(be)===m}function oe(be){return V(be)===f}function fe(be){return typeof be=="object"&&be!==null&&be.$$typeof===t}function ye(be){return V(be)===p}function $e(be){return V(be)===r}function ze(be){return V(be)===T}function Fe(be){return V(be)===E}function Ke(be){return V(be)===a}function Oe(be){return V(be)===c}function me(be){return V(be)===l}function Re(be){return V(be)===y}function Pe(be){return V(be)===S}aa.ContextConsumer=H,aa.ContextProvider=P,aa.Element=q,aa.ForwardRef=Y,aa.Fragment=te,aa.Lazy=G,aa.Memo=K,aa.Portal=J,aa.Profiler=ie,aa.StrictMode=k,aa.Suspense=X,aa.SuspenseList=Q,aa.isAsyncMode=F,aa.isConcurrentMode=ne,aa.isContextConsumer=ae,aa.isContextProvider=oe,aa.isElement=fe,aa.isForwardRef=ye,aa.isFragment=$e,aa.isLazy=ze,aa.isMemo=Fe,aa.isPortal=Ke,aa.isProfiler=Oe,aa.isStrictMode=me,aa.isSuspense=Re,aa.isSuspenseList=Pe,aa.isValidElementType=$,aa.typeOf=V}(),aa}var HM;function N8(){if(HM)return AS.exports;HM=1;var e={};return e.NODE_ENV==="production"?AS.exports=_8():AS.exports=D8(),AS.exports}var gE=N8();function MS(e,t,a){var r=C.useRef({});return(!("value"in r.current)||a(r.current.condition,t))&&(r.current.value=e(),r.current.condition=t),r.current.value}var $8=Number(C.version.split(".")[0]),vE=function(t,a){typeof t=="function"?t(a):Xt(t)==="object"&&t&&"current"in t&&(t.current=a)},Wl=function(){for(var t=arguments.length,a=new Array(t),r=0;r<t;r++)a[r]=arguments[r];var l=a.filter(Boolean);return l.length<=1?l[0]:function(c){a.forEach(function(f){vE(f,c)})}},Ov=function(){for(var t=arguments.length,a=new Array(t),r=0;r<t;r++)a[r]=arguments[r];return MS(function(){return Wl.apply(void 0,a)},a,function(l,c){return l.length!==c.length||l.every(function(f,m){return f!==c[m]})})},Rv=function(t){var a,r;if(!t)return!1;if(BM(t)&&$8>=19)return!0;var l=gE.isMemo(t)?t.type.type:t.type;return!(typeof l=="function"&&!((a=l.prototype)!==null&&a!==void 0&&a.render)&&l.$$typeof!==gE.ForwardRef||typeof t=="function"&&!((r=t.prototype)!==null&&r!==void 0&&r.render)&&t.$$typeof!==gE.ForwardRef)};function BM(e){return C.isValidElement(e)&&!MM(e)}var _S=function(t){if(t&&BM(t)){var a=t;return a.props.propertyIsEnumerable("ref")?a.props.ref:a.ref}return null},yE=C.createContext(null);function z8(e){var t=e.children,a=e.onBatchResize,r=C.useRef(0),l=C.useRef([]),c=C.useContext(yE),f=C.useCallback(function(m,g,p){r.current+=1;var y=r.current;l.current.push({size:m,element:g,data:p}),Promise.resolve().then(function(){y===r.current&&(a?.(l.current),l.current=[])}),c?.(m,g,p)},[a,c]);return C.createElement(yE.Provider,{value:f},t)}var PM=function(){if(typeof Map<"u")return Map;function e(t,a){var r=-1;return t.some(function(l,c){return l[0]===a?(r=c,!0):!1}),r}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(a){var r=e(this.__entries__,a),l=this.__entries__[r];return l&&l[1]},t.prototype.set=function(a,r){var l=e(this.__entries__,a);~l?this.__entries__[l][1]=r:this.__entries__.push([a,r])},t.prototype.delete=function(a){var r=this.__entries__,l=e(r,a);~l&&r.splice(l,1)},t.prototype.has=function(a){return!!~e(this.__entries__,a)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(a,r){r===void 0&&(r=null);for(var l=0,c=this.__entries__;l<c.length;l++){var f=c[l];a.call(r,f[1],f[0])}},t}()}(),bE=typeof window<"u"&&typeof document<"u"&&window.document===document,DS=function(){return typeof global<"u"&&global.Math===Math?global:typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")()}(),j8=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(DS):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}}(),L8=2;function V8(e,t){var a=!1,r=!1,l=0;function c(){a&&(a=!1,e()),r&&m()}function f(){j8(c)}function m(){var g=Date.now();if(a){if(g-l<L8)return;r=!0}else a=!0,r=!1,setTimeout(f,t);l=g}return m}var H8=20,B8=["top","right","bottom","left","width","height","size","weight"],P8=typeof MutationObserver<"u",U8=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=V8(this.refresh.bind(this),H8)}return e.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},e.prototype.removeObserver=function(t){var a=this.observers_,r=a.indexOf(t);~r&&a.splice(r,1),!a.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){var t=this.updateObservers_();t&&this.refresh()},e.prototype.updateObservers_=function(){var t=this.observers_.filter(function(a){return a.gatherActive(),a.hasActive()});return t.forEach(function(a){return a.broadcastActive()}),t.length>0},e.prototype.connect_=function(){!bE||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),P8?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){!bE||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(t){var a=t.propertyName,r=a===void 0?"":a,l=B8.some(function(c){return!!~r.indexOf(c)});l&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),UM=function(e,t){for(var a=0,r=Object.keys(t);a<r.length;a++){var l=r[a];Object.defineProperty(e,l,{value:t[l],enumerable:!1,writable:!1,configurable:!0})}return e},Sm=function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||DS},IM=$S(0,0,0,0);function NS(e){return parseFloat(e)||0}function FM(e){for(var t=[],a=1;a<arguments.length;a++)t[a-1]=arguments[a];return t.reduce(function(r,l){var c=e["border-"+l+"-width"];return r+NS(c)},0)}function I8(e){for(var t=["top","right","bottom","left"],a={},r=0,l=t;r<l.length;r++){var c=l[r],f=e["padding-"+c];a[c]=NS(f)}return a}function F8(e){var t=e.getBBox();return $S(0,0,t.width,t.height)}function k8(e){var t=e.clientWidth,a=e.clientHeight;if(!t&&!a)return IM;var r=Sm(e).getComputedStyle(e),l=I8(r),c=l.left+l.right,f=l.top+l.bottom,m=NS(r.width),g=NS(r.height);if(r.boxSizing==="border-box"&&(Math.round(m+c)!==t&&(m-=FM(r,"left","right")+c),Math.round(g+f)!==a&&(g-=FM(r,"top","bottom")+f)),!q8(e)){var p=Math.round(m+c)-t,y=Math.round(g+f)-a;Math.abs(p)!==1&&(m-=p),Math.abs(y)!==1&&(g-=y)}return $S(l.left,l.top,m,g)}var G8=function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof Sm(e).SVGGraphicsElement}:function(e){return e instanceof Sm(e).SVGElement&&typeof e.getBBox=="function"}}();function q8(e){return e===Sm(e).document.documentElement}function Y8(e){return bE?G8(e)?F8(e):k8(e):IM}function X8(e){var t=e.x,a=e.y,r=e.width,l=e.height,c=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,f=Object.create(c.prototype);return UM(f,{x:t,y:a,width:r,height:l,top:a,right:t+r,bottom:l+a,left:t}),f}function $S(e,t,a,r){return{x:e,y:t,width:a,height:r}}var W8=function(){function e(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=$S(0,0,0,0),this.target=t}return e.prototype.isActive=function(){var t=Y8(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},e}(),Z8=function(){function e(t,a){var r=X8(a);UM(this,{target:t,contentRect:r})}return e}(),K8=function(){function e(t,a,r){if(this.activeObservations_=[],this.observations_=new PM,typeof t!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=a,this.callbackCtx_=r}return e.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof Sm(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var a=this.observations_;a.has(t)||(a.set(t,new W8(t)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof Sm(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var a=this.observations_;a.has(t)&&(a.delete(t),a.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(a){a.isActive()&&t.activeObservations_.push(a)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,a=this.activeObservations_.map(function(r){return new Z8(r.target,r.broadcastRect())});this.callback_.call(t,a,t),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),kM=typeof WeakMap<"u"?new WeakMap:new PM,GM=function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var a=U8.getInstance(),r=new K8(t,a,this);kM.set(this,r)}return e}();["observe","unobserve","disconnect"].forEach(function(e){GM.prototype[e]=function(){var t;return(t=kM.get(this))[e].apply(t,arguments)}});var Q8=function(){return typeof DS.ResizeObserver<"u"?DS.ResizeObserver:GM}(),kc=new Map;function J8(e){e.forEach(function(t){var a,r=t.target;(a=kc.get(r))===null||a===void 0||a.forEach(function(l){return l(r)})})}var qM=new Q8(J8);function eV(e,t){kc.has(e)||(kc.set(e,new Set),qM.observe(e)),kc.get(e).add(t)}function tV(e,t){kc.has(e)&&(kc.get(e).delete(t),kc.get(e).size||(qM.unobserve(e),kc.delete(e)))}function Nr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function YM(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,$M(r.key),r)}}function $r(e,t,a){return t&&YM(e.prototype,t),a&&YM(e,a),Object.defineProperty(e,"prototype",{writable:!1}),e}function Av(e,t){return Av=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(a,r){return a.__proto__=r,a},Av(e,t)}function Gc(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Av(e,t)}function Mv(e){return Mv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Mv(e)}function SE(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(SE=function(){return!!e})()}function Nn(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function nV(e,t){if(t&&(Xt(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Nn(e)}function qc(e){var t=SE();return function(){var a,r=Mv(e);if(t){var l=Mv(this).constructor;a=Reflect.construct(r,arguments,l)}else a=r.apply(this,arguments);return nV(this,a)}}var aV=function(e){Gc(a,e);var t=qc(a);function a(){return Nr(this,a),t.apply(this,arguments)}return $r(a,[{key:"render",value:function(){return this.props.children}}]),a}(C.Component),rV={};function iV(e,t){var a=e.children,r=e.disabled,l=C.useRef(null),c=C.useRef(null),f=C.useContext(yE),m=typeof a=="function",g=m?a(l):a,p=C.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),y=!m&&C.isValidElement(g)&&Rv(g),S=y?_S(g):null,E=Ov(S,l),T=function(){var D;return RS(l.current)||(l.current&&Xt(l.current)==="object"?RS((D=l.current)===null||D===void 0?void 0:D.nativeElement):null)||RS(c.current)};C.useImperativeHandle(t,function(){return T()});var O=C.useRef(e);O.current=e;var M=C.useCallback(function(A){var D=O.current,_=D.onResize,z=D.data,j=A.getBoundingClientRect(),$=j.width,V=j.height,H=A.offsetWidth,P=A.offsetHeight,q=Math.floor($),Y=Math.floor(V);if(p.current.width!==q||p.current.height!==Y||p.current.offsetWidth!==H||p.current.offsetHeight!==P){var te={width:q,height:Y,offsetWidth:H,offsetHeight:P};p.current=te;var G=H===Math.round($)?$:H,K=P===Math.round(V)?V:P,J=ge(ge({},te),{},{offsetWidth:G,offsetHeight:K});f?.(J,A,z),_&&Promise.resolve().then(function(){_(J,A)})}},[]);return C.useEffect(function(){var A=T();return A&&!r&&eV(A,M),function(){return tV(A,M)}},[l.current,r]),C.createElement(aV,{ref:c},y?C.cloneElement(g,{ref:E}):g)}var XM=C.forwardRef(iV);rV.NODE_ENV!=="production"&&(XM.displayName="SingleObserver");var WM={},oV="rc-observer-key";function lV(e,t){var a=e.children,r=typeof a=="function"?[a]:ks(a);return WM.NODE_ENV!=="production"&&(r.length>1?wd(!1,"Find more than one child node with `children` in ResizeObserver. Please use ResizeObserver.Collection instead."):r.length===0&&wd(!1,"`children` of ResizeObserver is empty. Nothing is in observe.")),r.map(function(l,c){var f=l?.key||"".concat(oV,"-").concat(c);return C.createElement(XM,jt({},e,{key:f,ref:c===0?t:void 0}),l)})}var Zl=C.forwardRef(lV);WM.NODE_ENV!=="production"&&(Zl.displayName="ResizeObserver"),Zl.Collection=z8;function CE(e,t){(t==null||t>e.length)&&(t=e.length);for(var a=0,r=Array(t);a<t;a++)r[a]=e[a];return r}function sV(e){if(Array.isArray(e))return CE(e)}function ZM(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function xE(e,t){if(e){if(typeof e=="string")return CE(e,t);var a={}.toString.call(e).slice(8,-1);return a==="Object"&&e.constructor&&(a=e.constructor.name),a==="Map"||a==="Set"?Array.from(e):a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?CE(e,t):void 0}}function uV(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
340
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Nt(e){return sV(e)||ZM(e)||xE(e)||uV()}var cV={},KM=function(t){return+setTimeout(t,16)},QM=function(t){return clearTimeout(t)};typeof window<"u"&&"requestAnimationFrame"in window&&(KM=function(t){return window.requestAnimationFrame(t)},QM=function(t){return window.cancelAnimationFrame(t)});var JM=0,zS=new Map;function e_(e){zS.delete(e)}var tr=function(t){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;JM+=1;var r=JM;function l(c){if(c===0)e_(r),t();else{var f=KM(function(){l(c-1)});zS.set(r,f)}}return l(a),r};tr.cancel=function(e){var t=zS.get(e);return e_(e),QM(t)},cV.NODE_ENV!=="production"&&(tr.ids=function(){return zS});function t_(e){if(Array.isArray(e))return e}function fV(e,t){var a=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(a!=null){var r,l,c,f,m=[],g=!0,p=!1;try{if(c=(a=a.call(e)).next,t===0){if(Object(a)!==a)return;g=!1}else for(;!(g=(r=c.call(a)).done)&&(m.push(r.value),m.length!==t);g=!0);}catch(y){p=!0,l=y}finally{try{if(!g&&a.return!=null&&(f=a.return(),Object(f)!==f))return}finally{if(p)throw l}}return m}}function n_(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
341
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Be(e,t){return t_(e)||fV(e,t)||xE(e,t)||n_()}function _v(e){for(var t=0,a,r=0,l=e.length;l>=4;++r,l-=4)a=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,a=(a&65535)*1540483477+((a>>>16)*59797<<16),a^=a>>>24,t=(a&65535)*1540483477+((a>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(l){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}function yi(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function dV(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var a=t;a;){if(a===e)return!0;a=a.parentNode}return!1}var a_="data-rc-order",r_="data-rc-priority",hV="rc-util-key",EE=new Map;function i_(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):hV}function jS(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function mV(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function wE(e){return Array.from((EE.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function o_(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!yi())return null;var a=t.csp,r=t.prepend,l=t.priority,c=l===void 0?0:l,f=mV(r),m=f==="prependQueue",g=document.createElement("style");g.setAttribute(a_,f),m&&c&&g.setAttribute(r_,"".concat(c)),a!=null&&a.nonce&&(g.nonce=a?.nonce),g.innerHTML=e;var p=jS(t),y=p.firstChild;if(r){if(m){var S=(t.styles||wE(p)).filter(function(E){if(!["prepend","prependQueue"].includes(E.getAttribute(a_)))return!1;var T=Number(E.getAttribute(r_)||0);return c>=T});if(S.length)return p.insertBefore(g,S[S.length-1].nextSibling),g}p.insertBefore(g,y)}else p.appendChild(g);return g}function l_(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=jS(t);return(t.styles||wE(a)).find(function(r){return r.getAttribute(i_(t))===e})}function Dv(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=l_(e,t);if(a){var r=jS(t);r.removeChild(a)}}function pV(e,t){var a=EE.get(e);if(!a||!dV(document,a)){var r=o_("",t),l=r.parentNode;EE.set(e,l),e.removeChild(r)}}function Iu(e,t){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=jS(a),l=wE(r),c=ge(ge({},a),{},{styles:l});pV(r,c);var f=l_(t,c);if(f){var m,g;if((m=c.csp)!==null&&m!==void 0&&m.nonce&&f.nonce!==((g=c.csp)===null||g===void 0?void 0:g.nonce)){var p;f.nonce=(p=c.csp)===null||p===void 0?void 0:p.nonce}return f.innerHTML!==e&&(f.innerHTML=e),f}var y=o_(e,c);return y.setAttribute(i_(c),t),y}function gV(e,t){if(e==null)return{};var a={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;a[r]=e[r]}return a}function pa(e,t){if(e==null)return{};var a,r,l=gV(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(r=0;r<c.length;r++)a=c[r],t.indexOf(a)===-1&&{}.propertyIsEnumerable.call(e,a)&&(l[a]=e[a])}return l}function TE(e,t){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=new Set;function l(c,f){var m=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,g=r.has(c);if(Dn(!g,"Warning: There may be circular references"),g)return!1;if(c===f)return!0;if(a&&m>1)return!1;r.add(c);var p=m+1;if(Array.isArray(c)){if(!Array.isArray(f)||c.length!==f.length)return!1;for(var y=0;y<c.length;y++)if(!l(c[y],f[y],p))return!1;return!0}if(c&&f&&Xt(c)==="object"&&Xt(f)==="object"){var S=Object.keys(c);return S.length!==Object.keys(f).length?!1:S.every(function(E){return l(c[E],f[E],p)})}return!1}return l(e,t)}var vV="%";function OE(e){return e.join(vV)}var yV=function(){function e(t){Nr(this,e),de(this,"instanceId",void 0),de(this,"cache",new Map),this.instanceId=t}return $r(e,[{key:"get",value:function(a){return this.opGet(OE(a))}},{key:"opGet",value:function(a){return this.cache.get(a)||null}},{key:"update",value:function(a,r){return this.opUpdate(OE(a),r)}},{key:"opUpdate",value:function(a,r){var l=this.cache.get(a),c=r(l);c===null?this.cache.delete(a):this.cache.set(a,c)}}]),e}(),Cm="data-token-hash",Kl="data-css-hash",bV="data-cache-path",Yc="__cssinjs_instance__";function SV(){var e=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(Kl,"]"))||[],a=document.head.firstChild;Array.from(t).forEach(function(l){l[Yc]=l[Yc]||e,l[Yc]===e&&document.head.insertBefore(l,a)});var r={};Array.from(document.querySelectorAll("style[".concat(Kl,"]"))).forEach(function(l){var c=l.getAttribute(Kl);if(r[c]){if(l[Yc]===e){var f;(f=l.parentNode)===null||f===void 0||f.removeChild(l)}}else r[c]=!0})}return new yV(e)}var Nv=C.createContext({hashPriority:"low",cache:SV(),defaultCache:!0});function CV(e,t){if(e.length!==t.length)return!1;for(var a=0;a<e.length;a++)if(e[a]!==t[a])return!1;return!0}var RE=function(){function e(){Nr(this,e),de(this,"cache",void 0),de(this,"keys",void 0),de(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return $r(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(a){var r,l,c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,f={map:this.cache};return a.forEach(function(m){if(!f)f=void 0;else{var g;f=(g=f)===null||g===void 0||(g=g.map)===null||g===void 0?void 0:g.get(m)}}),(r=f)!==null&&r!==void 0&&r.value&&c&&(f.value[1]=this.cacheCallTimes++),(l=f)===null||l===void 0?void 0:l.value}},{key:"get",value:function(a){var r;return(r=this.internalGet(a,!0))===null||r===void 0?void 0:r[0]}},{key:"has",value:function(a){return!!this.internalGet(a)}},{key:"set",value:function(a,r){var l=this;if(!this.has(a)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var c=this.keys.reduce(function(p,y){var S=Be(p,2),E=S[1];return l.internalGet(y)[1]<E?[y,l.internalGet(y)[1]]:p},[this.keys[0],this.cacheCallTimes]),f=Be(c,1),m=f[0];this.delete(m)}this.keys.push(a)}var g=this.cache;a.forEach(function(p,y){if(y===a.length-1)g.set(p,{value:[r,l.cacheCallTimes++]});else{var S=g.get(p);S?S.map||(S.map=new Map):g.set(p,{map:new Map}),g=g.get(p).map}})}},{key:"deleteByPath",value:function(a,r){var l=a.get(r[0]);if(r.length===1){var c;return l.map?a.set(r[0],{map:l.map}):a.delete(r[0]),(c=l.value)===null||c===void 0?void 0:c[0]}var f=this.deleteByPath(l.map,r.slice(1));return(!l.map||l.map.size===0)&&!l.value&&a.delete(r[0]),f}},{key:"delete",value:function(a){if(this.has(a))return this.keys=this.keys.filter(function(r){return!CV(r,a)}),this.deleteByPath(this.cache,a)}}]),e}();de(RE,"MAX_CACHE_SIZE",20),de(RE,"MAX_CACHE_OFFSET",5);var s_=0,u_=function(){function e(t){Nr(this,e),de(this,"derivatives",void 0),de(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=s_,t.length===0&&wd(t.length>0,"[Ant Design CSS-in-JS] Theme should have at least one derivative function."),s_+=1}return $r(e,[{key:"getDerivativeToken",value:function(a){return this.derivatives.reduce(function(r,l){return l(a,r)},void 0)}}]),e}(),AE=new RE;function ME(e){var t=Array.isArray(e)?e:[e];return AE.has(t)||AE.set(t,new u_(t)),AE.get(t)}var xV=new WeakMap,_E={};function EV(e,t){for(var a=xV,r=0;r<t.length;r+=1){var l=t[r];a.has(l)||a.set(l,new WeakMap),a=a.get(l)}return a.has(_E)||a.set(_E,e()),a.get(_E)}var c_=new WeakMap;function $v(e){var t=c_.get(e)||"";return t||(Object.keys(e).forEach(function(a){var r=e[a];t+=a,r instanceof u_?t+=r.id:r&&Xt(r)==="object"?t+=$v(r):t+=r}),t=_v(t),c_.set(e,t)),t}function f_(e,t){return _v("".concat(t,"_").concat($v(e)))}var DE=yi();function st(e){return typeof e=="number"?"".concat(e,"px"):e}function LS(e,t,a){var r,l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},c=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(c)return e;var f=ge(ge({},l),{},(r={},de(r,Cm,t),de(r,Kl,a),r)),m=Object.keys(f).map(function(g){var p=f[g];return p?"".concat(g,'="').concat(p,'"'):null}).filter(function(g){return g}).join(" ");return"<style ".concat(m,">").concat(e,"</style>")}var VS=function(t){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return"--".concat(a?"".concat(a,"-"):"").concat(t).replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1-$2").replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase()},wV=function(t,a,r){return Object.keys(t).length?".".concat(a).concat(r!=null&&r.scope?".".concat(r.scope):"","{").concat(Object.entries(t).map(function(l){var c=Be(l,2),f=c[0],m=c[1];return"".concat(f,":").concat(m,";")}).join(""),"}"):""},d_=function(t,a,r){var l={},c={};return Object.entries(t).forEach(function(f){var m,g,p=Be(f,2),y=p[0],S=p[1];if(r!=null&&(m=r.preserve)!==null&&m!==void 0&&m[y])c[y]=S;else if((typeof S=="string"||typeof S=="number")&&!(r!=null&&(g=r.ignore)!==null&&g!==void 0&&g[y])){var E,T=VS(y,r?.prefix);l[T]=typeof S=="number"&&!(r!=null&&(E=r.unitless)!==null&&E!==void 0&&E[y])?"".concat(S,"px"):String(S),c[y]="var(".concat(T,")")}}),[c,wV(l,a,{scope:r?.scope})]},TV={},h_=TV.NODE_ENV!=="test"&&yi()?C.useLayoutEffect:C.useEffect,Zn=function(t,a){var r=C.useRef(!0);h_(function(){return t(r.current)},a),h_(function(){return r.current=!1,function(){r.current=!0}},[])},m_=function(t,a){Zn(function(r){if(!r)return t()},a)},OV=ge({},OS),p_=OV.useInsertionEffect,RV=function(t,a,r){C.useMemo(t,r),Zn(function(){return a(!0)},r)},AV=p_?function(e,t,a){return p_(function(){return e(),t()},a)}:RV,MV={},_V=ge({},OS),DV=_V.useInsertionEffect,NV=function(t){var a=[],r=!1;function l(c){if(r){MV.NODE_ENV!=="production"&&wd(!1,"[Ant Design CSS-in-JS] You are registering a cleanup function after unmount, which will not have any effect.");return}a.push(c)}return C.useEffect(function(){return r=!1,function(){r=!0,a.length&&a.forEach(function(c){return c()})}},t),l},$V=function(){return function(t){t()}},zV=typeof DV<"u"?NV:$V,g_={};function jV(){return!1}var NE=!1;function LV(){return NE}const VV=g_.NODE_ENV==="production"?jV:LV;if(g_.NODE_ENV!=="production"&&typeof module<"u"&&module&&module.hot&&typeof window<"u"){var HS=typeof globalThis<"u"?globalThis:typeof window<"u"?window:null;if(HS&&typeof HS.webpackHotUpdate=="function"){var HV=HS.webpackHotUpdate;HS.webpackHotUpdate=function(){return NE=!0,setTimeout(function(){NE=!1},0),HV.apply(void 0,arguments)}}}var v_={};function $E(e,t,a,r,l){var c=C.useContext(Nv),f=c.cache,m=[e].concat(Nt(t)),g=OE(m),p=zV([g]),y=VV(),S=function(M){f.opUpdate(g,function(A){var D=A||[void 0,void 0],_=Be(D,2),z=_[0],j=z===void 0?0:z,$=_[1],V=$;v_.NODE_ENV!=="production"&&$&&y&&(r?.(V,y),V=null);var H=V||a(),P=[j,H];return M?M(P):P})};C.useMemo(function(){S()},[g]);var E=f.opGet(g);v_.NODE_ENV!=="production"&&!E&&(S(),E=f.opGet(g));var T=E[1];return AV(function(){l?.(T)},function(O){return S(function(M){var A=Be(M,2),D=A[0],_=A[1];return O&&D===0&&l?.(T),[D+1,_]}),function(){f.opUpdate(g,function(M){var A=M||[],D=Be(A,2),_=D[0],z=_===void 0?0:_,j=D[1],$=z-1;return $===0?(p(function(){(O||!f.opGet(g))&&r?.(j,!1)}),null):[z-1,j]})}},[g]),T}var BV={},PV={},UV=BV.NODE_ENV!=="production"?"css-dev-only-do-not-override":"css",Td=new Map;function IV(e){Td.set(e,(Td.get(e)||0)+1)}function FV(e,t){if(typeof document<"u"){var a=document.querySelectorAll("style[".concat(Cm,'="').concat(e,'"]'));a.forEach(function(r){if(r[Yc]===t){var l;(l=r.parentNode)===null||l===void 0||l.removeChild(r)}})}}var kV=0;function GV(e,t){Td.set(e,(Td.get(e)||0)-1);var a=Array.from(Td.keys()),r=a.filter(function(l){var c=Td.get(l)||0;return c<=0});a.length-r.length>kV&&r.forEach(function(l){FV(l,t),Td.delete(l)})}var qV=function(t,a,r,l){var c=r.getDerivativeToken(t),f=ge(ge({},c),a);return l&&(f=l(f)),f},y_="token";function YV(e,t){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=C.useContext(Nv),l=r.cache.instanceId,c=r.container,f=a.salt,m=f===void 0?"":f,g=a.override,p=g===void 0?PV:g,y=a.formatToken,S=a.getComputedToken,E=a.cssVar,T=EV(function(){return Object.assign.apply(Object,[{}].concat(Nt(t)))},t),O=$v(T),M=$v(p),A=E?$v(E):"",D=$E(y_,[m,e.id,O,M,A],function(){var _,z=S?S(T,p,e):qV(T,p,e,y),j=ge({},z),$="";if(E){var V=d_(z,E.key,{prefix:E.prefix,ignore:E.ignore,unitless:E.unitless,preserve:E.preserve}),H=Be(V,2);z=H[0],$=H[1]}var P=f_(z,m);z._tokenKey=P,j._tokenKey=f_(j,m);var q=(_=E?.key)!==null&&_!==void 0?_:P;z._themeKey=q,IV(q);var Y="".concat(UV,"-").concat(_v(P));return z._hashId=Y,[z,Y,j,$,E?.key||""]},function(_){GV(_[0]._themeKey,l)},function(_){var z=Be(_,4),j=z[0],$=z[3];if(E&&$){var V=Iu($,_v("css-variables-".concat(j._themeKey)),{mark:Kl,prepend:"queue",attachTo:c,priority:-999});V[Yc]=l,V.setAttribute(Cm,j._themeKey)}});return D}var XV=function(t,a,r){var l=Be(t,5),c=l[2],f=l[3],m=l[4],g=r||{},p=g.plain;if(!f)return null;var y=c._tokenKey,S=-999,E={"data-rc-order":"prependQueue","data-rc-priority":"".concat(S)},T=LS(f,m,y,E,p);return[S,y,T]},WV={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},b_="comm",S_="rule",C_="decl",ZV="@import",KV="@namespace",QV="@keyframes",JV="@layer",x_=Math.abs,zE=String.fromCharCode;function E_(e){return e.trim()}function BS(e,t,a){return e.replace(t,a)}function eH(e,t,a){return e.indexOf(t,a)}function xm(e,t){return e.charCodeAt(t)|0}function Em(e,t,a){return e.slice(t,a)}function Gs(e){return e.length}function tH(e){return e.length}function PS(e,t){return t.push(e),e}var US=1,wm=1,w_=0,pl=0,Sr=0,Tm="";function jE(e,t,a,r,l,c,f,m){return{value:e,root:t,parent:a,type:r,props:l,children:c,line:US,column:wm,length:f,return:"",siblings:m}}function nH(){return Sr}function aH(){return Sr=pl>0?xm(Tm,--pl):0,wm--,Sr===10&&(wm=1,US--),Sr}function Ql(){return Sr=pl<w_?xm(Tm,pl++):0,wm++,Sr===10&&(wm=1,US++),Sr}function Xc(){return xm(Tm,pl)}function IS(){return pl}function FS(e,t){return Em(Tm,e,t)}function zv(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function rH(e){return US=wm=1,w_=Gs(Tm=e),pl=0,[]}function iH(e){return Tm="",e}function LE(e){return E_(FS(pl-1,VE(e===91?e+2:e===40?e+1:e)))}function oH(e){for(;(Sr=Xc())&&Sr<33;)Ql();return zv(e)>2||zv(Sr)>3?"":" "}function lH(e,t){for(;--t&&Ql()&&!(Sr<48||Sr>102||Sr>57&&Sr<65||Sr>70&&Sr<97););return FS(e,IS()+(t<6&&Xc()==32&&Ql()==32))}function VE(e){for(;Ql();)switch(Sr){case e:return pl;case 34:case 39:e!==34&&e!==39&&VE(Sr);break;case 40:e===41&&VE(e);break;case 92:Ql();break}return pl}function sH(e,t){for(;Ql()&&e+Sr!==57;)if(e+Sr===84&&Xc()===47)break;return"/*"+FS(t,pl-1)+"*"+zE(e===47?e:Ql())}function uH(e){for(;!zv(Xc());)Ql();return FS(e,pl)}function cH(e){return iH(kS("",null,null,null,[""],e=rH(e),0,[0],e))}function kS(e,t,a,r,l,c,f,m,g){for(var p=0,y=0,S=f,E=0,T=0,O=0,M=1,A=1,D=1,_=0,z="",j=l,$=c,V=r,H=z;A;)switch(O=_,_=Ql()){case 40:if(O!=108&&xm(H,S-1)==58){eH(H+=BS(LE(_),"&","&\f"),"&\f",x_(p?m[p-1]:0))!=-1&&(D=-1);break}case 34:case 39:case 91:H+=LE(_);break;case 9:case 10:case 13:case 32:H+=oH(O);break;case 92:H+=lH(IS()-1,7);continue;case 47:switch(Xc()){case 42:case 47:PS(fH(sH(Ql(),IS()),t,a,g),g),(zv(O||1)==5||zv(Xc()||1)==5)&&Gs(H)&&Em(H,-1,void 0)!==" "&&(H+=" ");break;default:H+="/"}break;case 123*M:m[p++]=Gs(H)*D;case 125*M:case 59:case 0:switch(_){case 0:case 125:A=0;case 59+y:D==-1&&(H=BS(H,/\f/g,"")),T>0&&(Gs(H)-S||M===0&&O===47)&&PS(T>32?O_(H+";",r,a,S-1,g):O_(BS(H," ","")+";",r,a,S-2,g),g);break;case 59:H+=";";default:if(PS(V=T_(H,t,a,p,y,l,m,z,j=[],$=[],S,c),c),_===123)if(y===0)kS(H,t,V,V,j,c,S,m,$);else{switch(E){case 99:if(xm(H,3)===110)break;case 108:if(xm(H,2)===97)break;default:y=0;case 100:case 109:case 115:}y?kS(e,V,V,r&&PS(T_(e,V,V,0,0,l,m,z,l,j=[],S,$),$),l,$,S,m,r?j:$):kS(H,V,V,V,[""],$,0,m,$)}}p=y=T=0,M=D=1,z=H="",S=f;break;case 58:S=1+Gs(H),T=O;default:if(M<1){if(_==123)--M;else if(_==125&&M++==0&&aH()==125)continue}switch(H+=zE(_),_*M){case 38:D=y>0?1:(H+="\f",-1);break;case 44:m[p++]=(Gs(H)-1)*D,D=1;break;case 64:Xc()===45&&(H+=LE(Ql())),E=Xc(),y=S=Gs(z=H+=uH(IS())),_++;break;case 45:O===45&&Gs(H)==2&&(M=0)}}return c}function T_(e,t,a,r,l,c,f,m,g,p,y,S){for(var E=l-1,T=l===0?c:[""],O=tH(T),M=0,A=0,D=0;M<r;++M)for(var _=0,z=Em(e,E+1,E=x_(A=f[M])),j=e;_<O;++_)(j=E_(A>0?T[_]+" "+z:BS(z,/&\f/g,T[_])))&&(g[D++]=j);return jE(e,t,a,l===0?S_:m,g,p,y,S)}function fH(e,t,a,r){return jE(e,t,a,b_,zE(nH()),Em(e,2,-2),0,r)}function O_(e,t,a,r,l){return jE(e,t,a,C_,Em(e,0,r),Em(e,r+1,-1),r,l)}function HE(e,t){for(var a="",r=0;r<e.length;r++)a+=t(e[r],r,e,t)||"";return a}function dH(e,t,a,r){switch(e.type){case JV:if(e.children.length)break;case ZV:case KV:case C_:return e.return=e.return||e.value;case b_:return"";case QV:return e.return=e.value+"{"+HE(e.children,r)+"}";case S_:if(!Gs(e.value=e.props.join(",")))return""}return Gs(a=HE(e.children,r))?e.return=e.value+"{"+a+"}":""}function R_(e,t){var a=t.path,r=t.parentSelectors;Dn(!1,"[Ant Design CSS-in-JS] ".concat(a?"Error in ".concat(a,": "):"").concat(e).concat(r.length?" Selector: ".concat(r.join(" | ")):""))}var hH=function(t,a,r){if(t==="content"){var l=/(attr|counters?|url|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,c=["normal","none","initial","inherit","unset"];(typeof a!="string"||c.indexOf(a)===-1&&!l.test(a)&&(a.charAt(0)!==a.charAt(a.length-1)||a.charAt(0)!=='"'&&a.charAt(0)!=="'"))&&R_("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\"".concat(a,"\"'`."),r)}},mH=function(t,a,r){t==="animation"&&r.hashId&&a!=="none"&&R_("You seem to be using hashed animation '".concat(a,"', in which case 'animationName' with Keyframe as value is recommended."),r)},A_="data-ant-cssinjs-cache-path",M_="_FILE_STYLE__",Od,__=!0;function pH(){if(!Od&&(Od={},yi())){var e=document.createElement("div");e.className=A_,e.style.position="fixed",e.style.visibility="hidden",e.style.top="-9999px",document.body.appendChild(e);var t=getComputedStyle(e).content||"";t=t.replace(/^"/,"").replace(/"$/,""),t.split(";").forEach(function(l){var c=l.split(":"),f=Be(c,2),m=f[0],g=f[1];Od[m]=g});var a=document.querySelector("style[".concat(A_,"]"));if(a){var r;__=!1,(r=a.parentNode)===null||r===void 0||r.removeChild(a)}document.body.removeChild(e)}}function gH(e){return pH(),!!Od[e]}function vH(e){var t=Od[e],a=null;if(t&&yi())if(__)a=M_;else{var r=document.querySelector("style[".concat(Kl,'="').concat(Od[e],'"]'));r?a=r.innerHTML:delete Od[e]}return[a,t]}var BE={},D_="_skip_check_",N_="_multi_value_";function GS(e){var t=HE(cH(e),dH);return t.replace(/\{%%%\:[^;];}/g,";")}function yH(e){return Xt(e)==="object"&&e&&(D_ in e||N_ in e)}function $_(e,t,a){if(!t)return e;var r=".".concat(t),l=a==="low"?":where(".concat(r,")"):r,c=e.split(",").map(function(f){var m,g=f.trim().split(/\s+/),p=g[0]||"",y=((m=p.match(/^\w+/))===null||m===void 0?void 0:m[0])||"";return p="".concat(y).concat(l).concat(p.slice(y.length)),[p].concat(Nt(g.slice(1))).join(" ")});return c.join(",")}var bH=function e(t){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]},l=r.root,c=r.injectHash,f=r.parentSelectors,m=a.hashId,g=a.layer,p=a.path,y=a.hashPriority,S=a.transformers,E=S===void 0?[]:S,T=a.linters,O=T===void 0?[]:T,M="",A={};function D(j){var $=j.getName(m);if(!A[$]){var V=e(j.style,a,{root:!1,parentSelectors:f}),H=Be(V,1),P=H[0];A[$]="@keyframes ".concat(j.getName(m)).concat(P)}}function _(j){var $=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return j.forEach(function(V){Array.isArray(V)?_(V,$):V&&$.push(V)}),$}var z=_(Array.isArray(t)?t:[t]);return z.forEach(function(j){var $=typeof j=="string"&&!l?{}:j;if(typeof $=="string")M+="".concat($,`
|
|
342
|
+
`);else if($._keyframe)D($);else{var V=E.reduce(function(H,P){var q;return(P==null||(q=P.visit)===null||q===void 0?void 0:q.call(P,H))||H},$);Object.keys(V).forEach(function(H){var P=V[H];if(Xt(P)==="object"&&P&&(H!=="animationName"||!P._keyframe)&&!yH(P)){var q=!1,Y=H.trim(),te=!1;(l||c)&&m?Y.startsWith("@")?q=!0:Y==="&"?Y=$_("",m,y):Y=$_(H,m,y):l&&!m&&(Y==="&"||Y==="")&&(Y="",te=!0);var G=e(P,a,{root:te,injectHash:q,parentSelectors:[].concat(Nt(f),[Y])}),K=Be(G,2),J=K[0],ie=K[1];A=ge(ge({},A),ie),M+="".concat(Y).concat(J)}else{let Q=function(le,U){BE.NODE_ENV!=="production"&&(Xt(P)!=="object"||!(P!=null&&P[D_]))&&[hH,mH].concat(Nt(O)).forEach(function(ae){return ae(le,U,{path:p,hashId:m,parentSelectors:f})});var F=le.replace(/[A-Z]/g,function(ae){return"-".concat(ae.toLowerCase())}),ne=U;!WV[le]&&typeof ne=="number"&&ne!==0&&(ne="".concat(ne,"px")),le==="animationName"&&U!==null&&U!==void 0&&U._keyframe&&(D(U),ne=U.getName(m)),M+="".concat(F,":").concat(ne,";")};var k,X=(k=P?.value)!==null&&k!==void 0?k:P;Xt(P)==="object"&&P!==null&&P!==void 0&&P[N_]&&Array.isArray(X)?X.forEach(function(le){Q(H,le)}):Q(H,X)}})}}),l?g&&(M&&(M="@layer ".concat(g.name," {").concat(M,"}")),g.dependencies&&(A["@layer ".concat(g.name)]=g.dependencies.map(function(j){return"@layer ".concat(j,", ").concat(g.name,";")}).join(`
|
|
343
|
+
`))):M="{".concat(M,"}"),[M,A]};function z_(e,t){return _v("".concat(e.join("%")).concat(t))}function SH(){return null}var j_="style";function PE(e,t){var a=e.token,r=e.path,l=e.hashId,c=e.layer,f=e.nonce,m=e.clientOnly,g=e.order,p=g===void 0?0:g,y=C.useContext(Nv),S=y.autoClear,E=y.mock,T=y.defaultCache,O=y.hashPriority,M=y.container,A=y.ssrInline,D=y.transformers,_=y.linters,z=y.cache,j=y.layer,$=a._tokenKey,V=[$];j&&V.push("layer"),V.push.apply(V,Nt(r));var H=DE;BE.NODE_ENV!=="production"&&E!==void 0&&(H=E==="client");var P=$E(j_,V,function(){var K=V.join("|");if(gH(K)){var J=vH(K),ie=Be(J,2),k=ie[0],X=ie[1];if(k)return[k,$,X,{},m,p]}var Q=t(),le=bH(Q,{hashId:l,hashPriority:O,layer:j?c:void 0,path:r.join("-"),transformers:D,linters:_}),U=Be(le,2),F=U[0],ne=U[1],ae=GS(F),oe=z_(V,ae);return[ae,$,oe,ne,m,p]},function(K,J){var ie=Be(K,3),k=ie[2];(J||S)&&DE&&Dv(k,{mark:Kl})},function(K){var J=Be(K,4),ie=J[0];J[1];var k=J[2],X=J[3];if(H&&ie!==M_){var Q={mark:Kl,prepend:j?!1:"queue",attachTo:M,priority:p},le=typeof f=="function"?f():f;le&&(Q.csp={nonce:le});var U=[],F=[];Object.keys(X).forEach(function(ae){ae.startsWith("@layer")?U.push(ae):F.push(ae)}),U.forEach(function(ae){Iu(GS(X[ae]),"_layer-".concat(ae),ge(ge({},Q),{},{prepend:!0}))});var ne=Iu(ie,k,Q);ne[Yc]=z.instanceId,ne.setAttribute(Cm,$),BE.NODE_ENV!=="production"&&ne.setAttribute(bV,V.join("|")),F.forEach(function(ae){Iu(GS(X[ae]),"_effect-".concat(ae),Q)})}}),q=Be(P,3),Y=q[0],te=q[1],G=q[2];return function(K){var J;if(!A||H||!T)J=C.createElement(SH,null);else{var ie;J=C.createElement("style",jt({},(ie={},de(ie,Cm,te),de(ie,Kl,G),ie),{dangerouslySetInnerHTML:{__html:Y}}))}return C.createElement(C.Fragment,null,J,K)}}var CH=function(t,a,r){var l=Be(t,6),c=l[0],f=l[1],m=l[2],g=l[3],p=l[4],y=l[5],S=r||{},E=S.plain;if(p)return null;var T=c,O={"data-rc-order":"prependQueue","data-rc-priority":"".concat(y)};return T=LS(c,f,m,O,E),g&&Object.keys(g).forEach(function(M){if(!a[M]){a[M]=!0;var A=GS(g[M]),D=LS(A,f,"_effect-".concat(M),O,E);M.startsWith("@layer")?T=D+T:T+=D}}),[y,m,T]},L_="cssVar",xH=function(t,a){var r=t.key,l=t.prefix,c=t.unitless,f=t.ignore,m=t.token,g=t.scope,p=g===void 0?"":g,y=C.useContext(Nv),S=y.cache.instanceId,E=y.container,T=m._tokenKey,O=[].concat(Nt(t.path),[r,p,T]),M=$E(L_,O,function(){var A=a(),D=d_(A,r,{prefix:l,unitless:c,ignore:f,scope:p}),_=Be(D,2),z=_[0],j=_[1],$=z_(O,j);return[z,j,$,r]},function(A){var D=Be(A,3),_=D[2];DE&&Dv(_,{mark:Kl})},function(A){var D=Be(A,3),_=D[1],z=D[2];if(_){var j=Iu(_,z,{mark:Kl,prepend:"queue",attachTo:E,priority:-999});j[Yc]=S,j.setAttribute(Cm,r)}});return M},EH=function(t,a,r){var l=Be(t,4),c=l[1],f=l[2],m=l[3],g=r||{},p=g.plain;if(!c)return null;var y=-999,S={"data-rc-order":"prependQueue","data-rc-priority":"".concat(y)},E=LS(c,m,f,S,p);return[y,f,E]},jv;jv={},de(jv,j_,CH),de(jv,y_,XV),de(jv,L_,EH);var ra=function(){function e(t,a){Nr(this,e),de(this,"name",void 0),de(this,"style",void 0),de(this,"_keyframe",!0),this.name=t,this.style=a}return $r(e,[{key:"getName",value:function(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return a?"".concat(a,"-").concat(this.name):this.name}}]),e}();function Om(e){return e.notSplit=!0,e}Om(["borderTop","borderBottom"]),Om(["borderTop"]),Om(["borderBottom"]),Om(["borderLeft","borderRight"]),Om(["borderLeft"]),Om(["borderRight"]);var UE=C.createContext({});function V_(e){return t_(e)||ZM(e)||xE(e)||n_()}function qs(e,t){for(var a=e,r=0;r<t.length;r+=1){if(a==null)return;a=a[t[r]]}return a}function H_(e,t,a,r){if(!t.length)return a;var l=V_(t),c=l[0],f=l.slice(1),m;return!e&&typeof c=="number"?m=[]:Array.isArray(e)?m=Nt(e):m=ge({},e),r&&a===void 0&&f.length===1?delete m[c][f[0]]:m[c]=H_(m[c],f,a,r),m}function Jl(e,t,a){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&r&&a===void 0&&!qs(e,t.slice(0,-1))?e:H_(e,t,a,r)}function wH(e){return Xt(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function B_(e){return Array.isArray(e)?[]:{}}var TH=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function Rm(){for(var e=arguments.length,t=new Array(e),a=0;a<e;a++)t[a]=arguments[a];var r=B_(t[0]);return t.forEach(function(l){function c(f,m){var g=new Set(m),p=qs(l,f),y=Array.isArray(p);if(y||wH(p)){if(!g.has(p)){g.add(p);var S=qs(r,f);y?r=Jl(r,f,[]):(!S||Xt(S)!=="object")&&(r=Jl(r,f,B_(p))),TH(p).forEach(function(E){c([].concat(Nt(f),[E]),g)})}}else r=Jl(r,f,p)}c([])}),r}var qS={};function P_(){}let Fu=null;function OH(){Fu=null,DM()}let U_=P_;qS.NODE_ENV!=="production"&&(U_=(e,t,a)=>{Dn(e,`[antd: ${t}] ${a}`),qS.NODE_ENV==="test"&&OH()});const Lv=U_,I_=C.createContext({}),Ba=qS.NODE_ENV!=="production"?e=>{const{strict:t}=C.useContext(I_),a=(r,l,c)=>{if(!r)if(t===!1&&l==="deprecated"){const f=Fu;Fu||(Fu={}),Fu[e]=Fu[e]||[],Fu[e].includes(c||"")||Fu[e].push(c||""),f||console.warn("[antd] There exists deprecated usage in your code:",Fu)}else qS.NODE_ENV!=="production"&&Lv(r,e,c)};return a.deprecated=(r,l,c,f)=>{a(r,"deprecated",`\`${l}\` is deprecated. Please use \`${c}\` instead.${f?` ${f}`:""}`)},a}:()=>{const e=()=>{};return e.deprecated=P_,e},RH=C.createContext(void 0);var F_={items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"Page",prev_page:"Previous Page",next_page:"Next Page",prev_5:"Previous 5 Pages",next_5:"Next 5 Pages",prev_3:"Previous 3 Pages",next_3:"Next 3 Pages",page_size:"Page Size"},AH={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0},MH=ge(ge({},AH),{},{locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",week:"Week",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",dateFormat:"M/D/YYYY",dateTimeFormat:"M/D/YYYY HH:mm:ss",previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"});const k_={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},G_={lang:Object.assign({placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"]},MH),timePickerLocale:Object.assign({},k_)},zo="${label} is not a valid ${type}",Am={locale:"en",Pagination:F_,DatePicker:G_,TimePicker:k_,Calendar:G_,global:{placeholder:"Please select",close:"Close"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckAll:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",deselectAll:"Deselect all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand",collapse:"Collapse"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:zo,method:zo,array:zo,object:zo,number:zo,date:zo,boolean:zo,integer:zo,float:zo,regexp:zo,email:zo,url:zo,hex:zo},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"},QRCode:{expired:"QR code expired",refresh:"Refresh",scanned:"Scanned"},ColorPicker:{presetEmpty:"Empty",transparent:"Transparent",singleColor:"Single",gradientColor:"Gradient"}};Object.assign({},Am.Modal);let YS=[];const q_=()=>YS.reduce((e,t)=>Object.assign(Object.assign({},e),t),Am.Modal);function _H(e){if(e){const t=Object.assign({},e);return YS.push(t),q_(),()=>{YS=YS.filter(a=>a!==t),q_()}}Object.assign({},Am.Modal)}const IE=C.createContext(void 0),Vv=(e,t)=>{const a=C.useContext(IE),r=C.useMemo(()=>{var c;const f=t||Am[e],m=(c=a?.[e])!==null&&c!==void 0?c:{};return Object.assign(Object.assign({},typeof f=="function"?f():f),m||{})},[e,t,a]),l=C.useMemo(()=>{const c=a?.locale;return a?.exist&&!c?Am.locale:c},[a]);return[r,l]};var FE={};const Y_="internalMark",X_=e=>{const{locale:t={},children:a,_ANT_MARK__:r}=e;if(FE.NODE_ENV!=="production"){const c=Ba("LocaleProvider");FE.NODE_ENV!=="production"&&c(r===Y_,"deprecated","`LocaleProvider` is deprecated. Please use `locale` with `ConfigProvider` instead: http://u.ant.design/locale")}C.useEffect(()=>_H(t?.Modal),[t]);const l=C.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return C.createElement(IE.Provider,{value:l},a)};FE.NODE_ENV!=="production"&&(X_.displayName="LocaleProvider");const W_={blue:"#1677FF",purple:"#722ED1",cyan:"#13C2C2",green:"#52C41A",magenta:"#EB2F96",pink:"#EB2F96",red:"#F5222D",orange:"#FA8C16",yellow:"#FADB14",volcano:"#FA541C",geekblue:"#2F54EB",gold:"#FAAD14",lime:"#A0D911"},Hv=Object.assign(Object.assign({},W_),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
|
|
344
|
+
'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
|
|
345
|
+
'Noto Color Emoji'`,fontFamilyCode:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1,motion:!0}),Wr=Math.round;function kE(e,t){const a=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],r=a.map(l=>parseFloat(l));for(let l=0;l<3;l+=1)r[l]=t(r[l]||0,a[l]||"",l);return a[3]?r[3]=a[3].includes("%")?r[3]/100:r[3]:r[3]=1,r}const Z_=(e,t,a)=>a===0?e:e/100;function Bv(e,t){const a=t||255;return e>a?a:e<0?0:e}class xa{constructor(t){de(this,"isValid",!0),de(this,"r",0),de(this,"g",0),de(this,"b",0),de(this,"a",1),de(this,"_h",void 0),de(this,"_s",void 0),de(this,"_l",void 0),de(this,"_v",void 0),de(this,"_max",void 0),de(this,"_min",void 0),de(this,"_brightness",void 0);function a(r){return r[0]in t&&r[1]in t&&r[2]in t}if(t)if(typeof t=="string"){let l=function(c){return r.startsWith(c)};const r=t.trim();/^#?[A-F\d]{3,8}$/i.test(r)?this.fromHexString(r):l("rgb")?this.fromRgbString(r):l("hsl")?this.fromHslString(r):(l("hsv")||l("hsb"))&&this.fromHsvString(r)}else if(t instanceof xa)this.r=t.r,this.g=t.g,this.b=t.b,this.a=t.a,this._h=t._h,this._s=t._s,this._l=t._l,this._v=t._v;else if(a("rgb"))this.r=Bv(t.r),this.g=Bv(t.g),this.b=Bv(t.b),this.a=typeof t.a=="number"?Bv(t.a,1):1;else if(a("hsl"))this.fromHsl(t);else if(a("hsv"))this.fromHsv(t);else throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(t))}setR(t){return this._sc("r",t)}setG(t){return this._sc("g",t)}setB(t){return this._sc("b",t)}setA(t){return this._sc("a",t,1)}setHue(t){const a=this.toHsv();return a.h=t,this._c(a)}getLuminance(){function t(c){const f=c/255;return f<=.03928?f/12.92:Math.pow((f+.055)/1.055,2.4)}const a=t(this.r),r=t(this.g),l=t(this.b);return .2126*a+.7152*r+.0722*l}getHue(){if(typeof this._h>"u"){const t=this.getMax()-this.getMin();t===0?this._h=0:this._h=Wr(60*(this.r===this.getMax()?(this.g-this.b)/t+(this.g<this.b?6:0):this.g===this.getMax()?(this.b-this.r)/t+2:(this.r-this.g)/t+4))}return this._h}getSaturation(){if(typeof this._s>"u"){const t=this.getMax()-this.getMin();t===0?this._s=0:this._s=t/this.getMax()}return this._s}getLightness(){return typeof this._l>"u"&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return typeof this._v>"u"&&(this._v=this.getMax()/255),this._v}getBrightness(){return typeof this._brightness>"u"&&(this._brightness=(this.r*299+this.g*587+this.b*114)/1e3),this._brightness}darken(t=10){const a=this.getHue(),r=this.getSaturation();let l=this.getLightness()-t/100;return l<0&&(l=0),this._c({h:a,s:r,l,a:this.a})}lighten(t=10){const a=this.getHue(),r=this.getSaturation();let l=this.getLightness()+t/100;return l>1&&(l=1),this._c({h:a,s:r,l,a:this.a})}mix(t,a=50){const r=this._c(t),l=a/100,c=m=>(r[m]-this[m])*l+this[m],f={r:Wr(c("r")),g:Wr(c("g")),b:Wr(c("b")),a:Wr(c("a")*100)/100};return this._c(f)}tint(t=10){return this.mix({r:255,g:255,b:255,a:1},t)}shade(t=10){return this.mix({r:0,g:0,b:0,a:1},t)}onBackground(t){const a=this._c(t),r=this.a+a.a*(1-this.a),l=c=>Wr((this[c]*this.a+a[c]*a.a*(1-this.a))/r);return this._c({r:l("r"),g:l("g"),b:l("b"),a:r})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(t){return this.r===t.r&&this.g===t.g&&this.b===t.b&&this.a===t.a}clone(){return this._c(this)}toHexString(){let t="#";const a=(this.r||0).toString(16);t+=a.length===2?a:"0"+a;const r=(this.g||0).toString(16);t+=r.length===2?r:"0"+r;const l=(this.b||0).toString(16);if(t+=l.length===2?l:"0"+l,typeof this.a=="number"&&this.a>=0&&this.a<1){const c=Wr(this.a*255).toString(16);t+=c.length===2?c:"0"+c}return t}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const t=this.getHue(),a=Wr(this.getSaturation()*100),r=Wr(this.getLightness()*100);return this.a!==1?`hsla(${t},${a}%,${r}%,${this.a})`:`hsl(${t},${a}%,${r}%)`}toHsv(){return{h:this.getHue(),s:this.getSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return this.a!==1?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(t,a,r){const l=this.clone();return l[t]=Bv(a,r),l}_c(t){return new this.constructor(t)}getMax(){return typeof this._max>"u"&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return typeof this._min>"u"&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(t){const a=t.replace("#","");function r(l,c){return parseInt(a[l]+a[c||l],16)}a.length<6?(this.r=r(0),this.g=r(1),this.b=r(2),this.a=a[3]?r(3)/255:1):(this.r=r(0,1),this.g=r(2,3),this.b=r(4,5),this.a=a[6]?r(6,7)/255:1)}fromHsl({h:t,s:a,l:r,a:l}){if(this._h=t%360,this._s=a,this._l=r,this.a=typeof l=="number"?l:1,a<=0){const E=Wr(r*255);this.r=E,this.g=E,this.b=E}let c=0,f=0,m=0;const g=t/60,p=(1-Math.abs(2*r-1))*a,y=p*(1-Math.abs(g%2-1));g>=0&&g<1?(c=p,f=y):g>=1&&g<2?(c=y,f=p):g>=2&&g<3?(f=p,m=y):g>=3&&g<4?(f=y,m=p):g>=4&&g<5?(c=y,m=p):g>=5&&g<6&&(c=p,m=y);const S=r-p/2;this.r=Wr((c+S)*255),this.g=Wr((f+S)*255),this.b=Wr((m+S)*255)}fromHsv({h:t,s:a,v:r,a:l}){this._h=t%360,this._s=a,this._v=r,this.a=typeof l=="number"?l:1;const c=Wr(r*255);if(this.r=c,this.g=c,this.b=c,a<=0)return;const f=t/60,m=Math.floor(f),g=f-m,p=Wr(r*(1-a)*255),y=Wr(r*(1-a*g)*255),S=Wr(r*(1-a*(1-g))*255);switch(m){case 0:this.g=S,this.b=p;break;case 1:this.r=y,this.b=p;break;case 2:this.r=p,this.b=S;break;case 3:this.r=p,this.g=y;break;case 4:this.r=S,this.g=p;break;case 5:default:this.g=p,this.b=y;break}}fromHsvString(t){const a=kE(t,Z_);this.fromHsv({h:a[0],s:a[1],v:a[2],a:a[3]})}fromHslString(t){const a=kE(t,Z_);this.fromHsl({h:a[0],s:a[1],l:a[2],a:a[3]})}fromRgbString(t){const a=kE(t,(r,l)=>l.includes("%")?Wr(r/100*255):r);this.r=a[0],this.g=a[1],this.b=a[2],this.a=a[3]}}var XS=2,K_=.16,DH=.05,NH=.05,$H=.15,Q_=5,J_=4,zH=[{index:7,amount:15},{index:6,amount:25},{index:5,amount:30},{index:5,amount:45},{index:5,amount:65},{index:5,amount:85},{index:4,amount:90},{index:3,amount:95},{index:2,amount:97},{index:1,amount:98}];function eD(e,t,a){var r;return Math.round(e.h)>=60&&Math.round(e.h)<=240?r=a?Math.round(e.h)-XS*t:Math.round(e.h)+XS*t:r=a?Math.round(e.h)+XS*t:Math.round(e.h)-XS*t,r<0?r+=360:r>=360&&(r-=360),r}function tD(e,t,a){if(e.h===0&&e.s===0)return e.s;var r;return a?r=e.s-K_*t:t===J_?r=e.s+K_:r=e.s+DH*t,r>1&&(r=1),a&&t===Q_&&r>.1&&(r=.1),r<.06&&(r=.06),Math.round(r*100)/100}function nD(e,t,a){var r;return a?r=e.v+NH*t:r=e.v-$H*t,r=Math.max(0,Math.min(1,r)),Math.round(r*100)/100}function Pv(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=[],r=new xa(e),l=r.toHsv(),c=Q_;c>0;c-=1){var f=new xa({h:eD(l,c,!0),s:tD(l,c,!0),v:nD(l,c,!0)});a.push(f)}a.push(r);for(var m=1;m<=J_;m+=1){var g=new xa({h:eD(l,m),s:tD(l,m),v:nD(l,m)});a.push(g)}return t.theme==="dark"?zH.map(function(p){var y=p.index,S=p.amount;return new xa(t.backgroundColor||"#141414").mix(a[y],S).toHexString()}):a.map(function(p){return p.toHexString()})}var GE={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1677FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},qE=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];qE.primary=qE[5];var YE=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];YE.primary=YE[5];var XE=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];XE.primary=XE[5];var WS=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];WS.primary=WS[5];var WE=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];WE.primary=WE[5];var ZE=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];ZE.primary=ZE[5];var KE=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];KE.primary=KE[5];var QE=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];QE.primary=QE[5];var ZS=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];ZS.primary=ZS[5];var JE=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];JE.primary=JE[5];var ew=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];ew.primary=ew[5];var tw=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];tw.primary=tw[5];var nw=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];nw.primary=nw[5];var aw={red:qE,volcano:YE,orange:XE,gold:WS,yellow:WE,lime:ZE,green:KE,cyan:QE,blue:ZS,geekblue:JE,purple:ew,magenta:tw,grey:nw};function jH(e,{generateColorPalettes:t,generateNeutralColorPalettes:a}){const{colorSuccess:r,colorWarning:l,colorError:c,colorInfo:f,colorPrimary:m,colorBgBase:g,colorTextBase:p}=e,y=t(m),S=t(r),E=t(l),T=t(c),O=t(f),M=a(g,p),A=e.colorLink||e.colorInfo,D=t(A),_=new xa(T[1]).mix(new xa(T[3]),50).toHexString();return Object.assign(Object.assign({},M),{colorPrimaryBg:y[1],colorPrimaryBgHover:y[2],colorPrimaryBorder:y[3],colorPrimaryBorderHover:y[4],colorPrimaryHover:y[5],colorPrimary:y[6],colorPrimaryActive:y[7],colorPrimaryTextHover:y[8],colorPrimaryText:y[9],colorPrimaryTextActive:y[10],colorSuccessBg:S[1],colorSuccessBgHover:S[2],colorSuccessBorder:S[3],colorSuccessBorderHover:S[4],colorSuccessHover:S[4],colorSuccess:S[6],colorSuccessActive:S[7],colorSuccessTextHover:S[8],colorSuccessText:S[9],colorSuccessTextActive:S[10],colorErrorBg:T[1],colorErrorBgHover:T[2],colorErrorBgFilledHover:_,colorErrorBgActive:T[3],colorErrorBorder:T[3],colorErrorBorderHover:T[4],colorErrorHover:T[5],colorError:T[6],colorErrorActive:T[7],colorErrorTextHover:T[8],colorErrorText:T[9],colorErrorTextActive:T[10],colorWarningBg:E[1],colorWarningBgHover:E[2],colorWarningBorder:E[3],colorWarningBorderHover:E[4],colorWarningHover:E[4],colorWarning:E[6],colorWarningActive:E[7],colorWarningTextHover:E[8],colorWarningText:E[9],colorWarningTextActive:E[10],colorInfoBg:O[1],colorInfoBgHover:O[2],colorInfoBorder:O[3],colorInfoBorderHover:O[4],colorInfoHover:O[4],colorInfo:O[6],colorInfoActive:O[7],colorInfoTextHover:O[8],colorInfoText:O[9],colorInfoTextActive:O[10],colorLinkHover:D[4],colorLink:D[6],colorLinkActive:D[7],colorBgMask:new xa("#000").setA(.45).toRgbString(),colorWhite:"#fff"})}const LH=e=>{let t=e,a=e,r=e,l=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?a=4:e<8&&e>=7?a=5:e<14&&e>=8?a=6:e<16&&e>=14?a=7:e>=16&&(a=8),e<6&&e>=2?r=1:e>=6&&(r=2),e>4&&e<8?l=4:e>=8&&(l=6),{borderRadius:e,borderRadiusXS:r,borderRadiusSM:a,borderRadiusLG:t,borderRadiusOuter:l}};function VH(e){const{motionUnit:t,motionBase:a,borderRadius:r,lineWidth:l}=e;return Object.assign({motionDurationFast:`${(a+t).toFixed(1)}s`,motionDurationMid:`${(a+t*2).toFixed(1)}s`,motionDurationSlow:`${(a+t*3).toFixed(1)}s`,lineWidthBold:l+1},LH(r))}const HH=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}};function KS(e){return(e+8)/e}function BH(e){const t=Array.from({length:10}).map((a,r)=>{const l=r-1,c=e*Math.pow(Math.E,l/5),f=r>1?Math.floor(c):Math.ceil(c);return Math.floor(f/2)*2});return t[1]=e,t.map(a=>({size:a,lineHeight:KS(a)}))}const PH=e=>{const t=BH(e),a=t.map(y=>y.size),r=t.map(y=>y.lineHeight),l=a[1],c=a[0],f=a[2],m=r[1],g=r[0],p=r[2];return{fontSizeSM:c,fontSize:l,fontSizeLG:f,fontSizeXL:a[3],fontSizeHeading1:a[6],fontSizeHeading2:a[5],fontSizeHeading3:a[4],fontSizeHeading4:a[3],fontSizeHeading5:a[2],lineHeight:m,lineHeightLG:p,lineHeightSM:g,fontHeight:Math.round(m*l),fontHeightLG:Math.round(p*f),fontHeightSM:Math.round(g*c),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};function UH(e){const{sizeUnit:t,sizeStep:a}=e;return{sizeXXL:t*(a+8),sizeXL:t*(a+4),sizeLG:t*(a+2),sizeMD:t*(a+1),sizeMS:t*a,size:t*a,sizeSM:t*(a-1),sizeXS:t*(a-2),sizeXXS:t*(a-3)}}const gl=(e,t)=>new xa(e).setA(t).toRgbString(),Uv=(e,t)=>new xa(e).darken(t).toHexString(),IH=e=>{const t=Pv(e);return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[4],6:t[5],7:t[6],8:t[4],9:t[5],10:t[6]}},FH=(e,t)=>{const a=e||"#fff",r=t||"#000";return{colorBgBase:a,colorTextBase:r,colorText:gl(r,.88),colorTextSecondary:gl(r,.65),colorTextTertiary:gl(r,.45),colorTextQuaternary:gl(r,.25),colorFill:gl(r,.15),colorFillSecondary:gl(r,.06),colorFillTertiary:gl(r,.04),colorFillQuaternary:gl(r,.02),colorBgSolid:gl(r,1),colorBgSolidHover:gl(r,.75),colorBgSolidActive:gl(r,.95),colorBgLayout:Uv(a,4),colorBgContainer:Uv(a,0),colorBgElevated:Uv(a,0),colorBgSpotlight:gl(r,.85),colorBgBlur:"transparent",colorBorder:Uv(a,15),colorBorderSecondary:Uv(a,6)}};function kH(e){GE.pink=GE.magenta,aw.pink=aw.magenta;const t=Object.keys(W_).map(a=>{const r=e[a]===GE[a]?aw[a]:Pv(e[a]);return Array.from({length:10},()=>1).reduce((l,c,f)=>(l[`${a}-${f+1}`]=r[f],l[`${a}${f+1}`]=r[f],l),{})}).reduce((a,r)=>(a=Object.assign(Object.assign({},a),r),a),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),jH(e,{generateColorPalettes:IH,generateNeutralColorPalettes:FH})),PH(e.fontSize)),UH(e)),HH(e)),VH(e))}const aD=ME(kH),rw={token:Hv,override:{override:Hv},hashed:!0},rD=we.createContext(rw),QS="ant",iw="anticon",GH=["outlined","borderless","filled","underlined"],qH=(e,t)=>t||(e?`${QS}-${e}`:QS),ia=C.createContext({getPrefixCls:qH,iconPrefixCls:iw}),{Consumer:Cie}=ia,iD={};function es(e){const t=C.useContext(ia),{getPrefixCls:a,direction:r,getPopupContainer:l}=t,c=t[e];return Object.assign(Object.assign({classNames:iD,styles:iD},c),{getPrefixCls:a,direction:r,getPopupContainer:l})}var YH={};const XH=`-ant-${Date.now()}-${Math.random()}`;function WH(e,t){const a={},r=(f,m)=>{let g=f.clone();return g=m?.(g)||g,g.toRgbString()},l=(f,m)=>{const g=new xa(f),p=Pv(g.toRgbString());a[`${m}-color`]=r(g),a[`${m}-color-disabled`]=p[1],a[`${m}-color-hover`]=p[4],a[`${m}-color-active`]=p[6],a[`${m}-color-outline`]=g.clone().setA(.2).toRgbString(),a[`${m}-color-deprecated-bg`]=p[0],a[`${m}-color-deprecated-border`]=p[2]};if(t.primaryColor){l(t.primaryColor,"primary");const f=new xa(t.primaryColor),m=Pv(f.toRgbString());m.forEach((p,y)=>{a[`primary-${y+1}`]=p}),a["primary-color-deprecated-l-35"]=r(f,p=>p.lighten(35)),a["primary-color-deprecated-l-20"]=r(f,p=>p.lighten(20)),a["primary-color-deprecated-t-20"]=r(f,p=>p.tint(20)),a["primary-color-deprecated-t-50"]=r(f,p=>p.tint(50)),a["primary-color-deprecated-f-12"]=r(f,p=>p.setA(p.a*.12));const g=new xa(m[0]);a["primary-color-active-deprecated-f-30"]=r(g,p=>p.setA(p.a*.3)),a["primary-color-active-deprecated-d-02"]=r(g,p=>p.darken(2))}return t.successColor&&l(t.successColor,"success"),t.warningColor&&l(t.warningColor,"warning"),t.errorColor&&l(t.errorColor,"error"),t.infoColor&&l(t.infoColor,"info"),`
|
|
346
|
+
:root {
|
|
347
|
+
${Object.keys(a).map(f=>`--${e}-${f}: ${a[f]};`).join(`
|
|
348
|
+
`)}
|
|
349
|
+
}
|
|
350
|
+
`.trim()}function ZH(e,t){const a=WH(e,t);yi()?Iu(a,`${XH}-dynamic-theme`):YH.NODE_ENV!=="production"&&Lv(!1,"ConfigProvider","SSR do not support dynamic theme with css variables.")}const Wc=C.createContext(!1),KH=({children:e,disabled:t})=>{const a=C.useContext(Wc);return C.createElement(Wc.Provider,{value:t??a},e)},Mm=C.createContext(void 0),QH=({children:e,size:t})=>{const a=C.useContext(Mm);return C.createElement(Mm.Provider,{value:t||a},e)};function JH(){const e=C.useContext(Wc),t=C.useContext(Mm);return{componentDisabled:e,componentSize:t}}var oD=$r(function e(){Nr(this,e)}),lD="CALC_UNIT",eB=new RegExp(lD,"g");function ow(e){return typeof e=="number"?"".concat(e).concat(lD):e}var tB=function(e){Gc(a,e);var t=qc(a);function a(r,l){var c;Nr(this,a),c=t.call(this),de(Nn(c),"result",""),de(Nn(c),"unitlessCssVar",void 0),de(Nn(c),"lowPriority",void 0);var f=Xt(r);return c.unitlessCssVar=l,r instanceof a?c.result="(".concat(r.result,")"):f==="number"?c.result=ow(r):f==="string"&&(c.result=r),c}return $r(a,[{key:"add",value:function(l){return l instanceof a?this.result="".concat(this.result," + ").concat(l.getResult()):(typeof l=="number"||typeof l=="string")&&(this.result="".concat(this.result," + ").concat(ow(l))),this.lowPriority=!0,this}},{key:"sub",value:function(l){return l instanceof a?this.result="".concat(this.result," - ").concat(l.getResult()):(typeof l=="number"||typeof l=="string")&&(this.result="".concat(this.result," - ").concat(ow(l))),this.lowPriority=!0,this}},{key:"mul",value:function(l){return this.lowPriority&&(this.result="(".concat(this.result,")")),l instanceof a?this.result="".concat(this.result," * ").concat(l.getResult(!0)):(typeof l=="number"||typeof l=="string")&&(this.result="".concat(this.result," * ").concat(l)),this.lowPriority=!1,this}},{key:"div",value:function(l){return this.lowPriority&&(this.result="(".concat(this.result,")")),l instanceof a?this.result="".concat(this.result," / ").concat(l.getResult(!0)):(typeof l=="number"||typeof l=="string")&&(this.result="".concat(this.result," / ").concat(l)),this.lowPriority=!1,this}},{key:"getResult",value:function(l){return this.lowPriority||l?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(l){var c=this,f=l||{},m=f.unit,g=!0;return typeof m=="boolean"?g=m:Array.from(this.unitlessCssVar).some(function(p){return c.result.includes(p)})&&(g=!1),this.result=this.result.replace(eB,g?"px":""),typeof this.lowPriority<"u"?"calc(".concat(this.result,")"):this.result}}]),a}(oD),nB=function(e){Gc(a,e);var t=qc(a);function a(r){var l;return Nr(this,a),l=t.call(this),de(Nn(l),"result",0),r instanceof a?l.result=r.result:typeof r=="number"&&(l.result=r),l}return $r(a,[{key:"add",value:function(l){return l instanceof a?this.result+=l.result:typeof l=="number"&&(this.result+=l),this}},{key:"sub",value:function(l){return l instanceof a?this.result-=l.result:typeof l=="number"&&(this.result-=l),this}},{key:"mul",value:function(l){return l instanceof a?this.result*=l.result:typeof l=="number"&&(this.result*=l),this}},{key:"div",value:function(l){return l instanceof a?this.result/=l.result:typeof l=="number"&&(this.result/=l),this}},{key:"equal",value:function(){return this.result}}]),a}(oD),aB=function(t,a){var r=t==="css"?tB:nB;return function(l){return new r(l,a)}},sD=function(t,a){return"".concat([a,t.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-"))};function cr(e){var t=C.useRef();t.current=e;var a=C.useCallback(function(){for(var r,l=arguments.length,c=new Array(l),f=0;f<l;f++)c[f]=arguments[f];return(r=t.current)===null||r===void 0?void 0:r.call.apply(r,[t].concat(c))},[]);return a}function Iv(e){var t=C.useRef(!1),a=C.useState(e),r=Be(a,2),l=r[0],c=r[1];C.useEffect(function(){return t.current=!1,function(){t.current=!0}},[]);function f(m,g){g&&t.current||c(m)}return[l,f]}function lw(e){return e!==void 0}function mo(e,t){var a=t||{},r=a.defaultValue,l=a.value,c=a.onChange,f=a.postState,m=Iv(function(){return lw(l)?l:lw(r)?typeof r=="function"?r():r:typeof e=="function"?e():e}),g=Be(m,2),p=g[0],y=g[1],S=l!==void 0?l:p,E=f?f(S):S,T=cr(c),O=Iv([S]),M=Be(O,2),A=M[0],D=M[1];m_(function(){var z=A[0];p!==z&&T(p,z)},[A]),m_(function(){lw(l)||y(l)},[l]);var _=cr(function(z,j){y(z,j),D([S],j)});return[E,_]}var rB={};function uD(e,t,a,r){var l=ge({},t[e]);if(r!=null&&r.deprecatedTokens){var c=r.deprecatedTokens;c.forEach(function(m){var g=Be(m,2),p=g[0],y=g[1];if(rB.NODE_ENV!=="production"&&Dn(!(l!=null&&l[p]),"Component Token `".concat(String(p),"` of ").concat(String(e)," is deprecated. Please use `").concat(String(y),"` instead.")),l!=null&&l[p]||l!=null&&l[y]){var S;(S=l[y])!==null&&S!==void 0||(l[y]=l?.[p])}})}var f=ge(ge({},a),l);return Object.keys(f).forEach(function(m){f[m]===t[m]&&delete f[m]}),f}var iB={},cD=iB.NODE_ENV!=="production"||typeof CSSINJS_STATISTIC<"u",sw=!0;function Ma(){for(var e=arguments.length,t=new Array(e),a=0;a<e;a++)t[a]=arguments[a];if(!cD)return Object.assign.apply(Object,[{}].concat(t));sw=!1;var r={};return t.forEach(function(l){if(Xt(l)==="object"){var c=Object.keys(l);c.forEach(function(f){Object.defineProperty(r,f,{configurable:!0,enumerable:!0,get:function(){return l[f]}})})}}),sw=!0,r}var fD={};function oB(){}var lB=function(t){var a,r=t,l=oB;return cD&&typeof Proxy<"u"&&(a=new Set,r=new Proxy(t,{get:function(f,m){if(sw){var g;(g=a)===null||g===void 0||g.add(m)}return f[m]}}),l=function(f,m){var g;fD[f]={global:Array.from(a),component:ge(ge({},(g=fD[f])===null||g===void 0?void 0:g.component),m)}}),{token:r,keys:a,flush:l}};function dD(e,t,a){if(typeof a=="function"){var r;return a(Ma(t,(r=t[e])!==null&&r!==void 0?r:{}))}return a??{}}function sB(e){return e==="js"?{max:Math.max,min:Math.min}:{max:function(){for(var a=arguments.length,r=new Array(a),l=0;l<a;l++)r[l]=arguments[l];return"max(".concat(r.map(function(c){return st(c)}).join(","),")")},min:function(){for(var a=arguments.length,r=new Array(a),l=0;l<a;l++)r[l]=arguments[l];return"min(".concat(r.map(function(c){return st(c)}).join(","),")")}}}var uB=1e3*60*10,cB=function(){function e(){Nr(this,e),de(this,"map",new Map),de(this,"objectIDMap",new WeakMap),de(this,"nextID",0),de(this,"lastAccessBeat",new Map),de(this,"accessBeat",0)}return $r(e,[{key:"set",value:function(a,r){this.clear();var l=this.getCompositeKey(a);this.map.set(l,r),this.lastAccessBeat.set(l,Date.now())}},{key:"get",value:function(a){var r=this.getCompositeKey(a),l=this.map.get(r);return this.lastAccessBeat.set(r,Date.now()),this.accessBeat+=1,l}},{key:"getCompositeKey",value:function(a){var r=this,l=a.map(function(c){return c&&Xt(c)==="object"?"obj_".concat(r.getObjectID(c)):"".concat(Xt(c),"_").concat(c)});return l.join("|")}},{key:"getObjectID",value:function(a){if(this.objectIDMap.has(a))return this.objectIDMap.get(a);var r=this.nextID;return this.objectIDMap.set(a,r),this.nextID+=1,r}},{key:"clear",value:function(){var a=this;if(this.accessBeat>1e4){var r=Date.now();this.lastAccessBeat.forEach(function(l,c){r-l>uB&&(a.map.delete(c),a.lastAccessBeat.delete(c))}),this.accessBeat=0}}}]),e}(),hD=new cB;function fB(e,t){return we.useMemo(function(){var a=hD.get(t);if(a)return a;var r=e();return hD.set(t,r),r},t)}var dB=function(){return{}},hB={};function mB(e){var t=e.useCSP,a=t===void 0?dB:t,r=e.useToken,l=e.usePrefix,c=e.getResetStyles,f=e.getCommonStyle,m=e.getCompUnitless;function g(E,T,O,M){var A=Array.isArray(E)?E[0]:E;function D(P){return"".concat(String(A)).concat(P.slice(0,1).toUpperCase()).concat(P.slice(1))}var _=M?.unitless||{},z=typeof m=="function"?m(E):{},j=ge(ge({},z),{},de({},D("zIndexPopup"),!0));Object.keys(_).forEach(function(P){j[D(P)]=_[P]});var $=ge(ge({},M),{},{unitless:j,prefixToken:D}),V=y(E,T,O,$),H=p(A,O,$);return function(P){var q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:P,Y=V(P,q),te=Be(Y,2),G=te[1],K=H(q),J=Be(K,2),ie=J[0],k=J[1];return[ie,G,k]}}function p(E,T,O){var M=O.unitless,A=O.injectStyle,D=A===void 0?!0:A,_=O.prefixToken,z=O.ignore,j=function(H){var P=H.rootCls,q=H.cssVar,Y=q===void 0?{}:q,te=r(),G=te.realToken;return xH({path:[E],prefix:Y.prefix,key:Y.key,unitless:M,ignore:z,token:G,scope:P},function(){var K=dD(E,G,T),J=uD(E,G,K,{deprecatedTokens:O?.deprecatedTokens});return Object.keys(K).forEach(function(ie){J[_(ie)]=J[ie],delete J[ie]}),J}),null},$=function(H){var P=r(),q=P.cssVar;return[function(Y){return D&&q?we.createElement(we.Fragment,null,we.createElement(j,{rootCls:H,cssVar:q,component:E}),Y):Y},q?.key]};return $}function y(E,T,O){var M=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},A=Array.isArray(E)?E:[E,E],D=Be(A,1),_=D[0],z=A.join("-"),j=e.layer||{name:"antd"};return function($){var V=arguments.length>1&&arguments[1]!==void 0?arguments[1]:$,H=r(),P=H.theme,q=H.realToken,Y=H.hashId,te=H.token,G=H.cssVar,K=l(),J=K.rootPrefixCls,ie=K.iconPrefixCls,k=a(),X=G?"css":"js",Q=fB(function(){var oe=new Set;return G&&Object.keys(M.unitless||{}).forEach(function(fe){oe.add(VS(fe,G.prefix)),oe.add(VS(fe,sD(_,G.prefix)))}),aB(X,oe)},[X,_,G?.prefix]),le=sB(X),U=le.max,F=le.min,ne={theme:P,token:te,hashId:Y,nonce:function(){return k.nonce},clientOnly:M.clientOnly,layer:j,order:M.order||-999};typeof c=="function"&&PE(ge(ge({},ne),{},{clientOnly:!1,path:["Shared",J]}),function(){return c(te,{prefix:{rootPrefixCls:J,iconPrefixCls:ie},csp:k})});var ae=PE(ge(ge({},ne),{},{path:[z,$,ie]}),function(){if(M.injectStyle===!1)return[];var oe=lB(te),fe=oe.token,ye=oe.flush,$e=dD(_,q,O),ze=".".concat($),Fe=uD(_,q,$e,{deprecatedTokens:M.deprecatedTokens});G&&$e&&Xt($e)==="object"&&Object.keys($e).forEach(function(Re){$e[Re]="var(".concat(VS(Re,sD(_,G.prefix)),")")});var Ke=Ma(fe,{componentCls:ze,prefixCls:$,iconCls:".".concat(ie),antCls:".".concat(J),calc:Q,max:U,min:F},G?$e:Fe),Oe=T(Ke,{hashId:Y,prefixCls:$,rootPrefixCls:J,iconPrefixCls:ie});ye(_,Fe);var me=typeof f=="function"?f(Ke,$,V,M.resetFont):null;return[M.resetStyle===!1?null:me,Oe]});return[ae,Y]}}function S(E,T,O){var M=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},A=y(E,T,O,ge({resetStyle:!1,order:-998},M)),D=function(z){var j=z.prefixCls,$=z.rootCls,V=$===void 0?j:$;return A(j,V),null};return hB.NODE_ENV!=="production"&&(D.displayName="SubStyle_".concat(String(Array.isArray(E)?E.join("."):E))),D}return{genStyleHooks:g,genSubStyleComponent:S,genComponentStyleHook:y}}const Zc=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],pB="5.26.4";function uw(e){return e>=0&&e<=255}function Fv(e,t){const{r:a,g:r,b:l,a:c}=new xa(e).toRgb();if(c<1)return e;const{r:f,g:m,b:g}=new xa(t).toRgb();for(let p=.01;p<=1;p+=.01){const y=Math.round((a-f*(1-p))/p),S=Math.round((r-m*(1-p))/p),E=Math.round((l-g*(1-p))/p);if(uw(y)&&uw(S)&&uw(E))return new xa({r:y,g:S,b:E,a:Math.round(p*100)/100}).toRgbString()}return new xa({r:a,g:r,b:l,a:1}).toRgbString()}var gB=function(e,t){var a={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(a[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,r=Object.getOwnPropertySymbols(e);l<r.length;l++)t.indexOf(r[l])<0&&Object.prototype.propertyIsEnumerable.call(e,r[l])&&(a[r[l]]=e[r[l]]);return a};function mD(e){const{override:t}=e,a=gB(e,["override"]),r=Object.assign({},t);Object.keys(Hv).forEach(E=>{delete r[E]});const l=Object.assign(Object.assign({},a),r),c=480,f=576,m=768,g=992,p=1200,y=1600;if(l.motion===!1){const E="0s";l.motionDurationFast=E,l.motionDurationMid=E,l.motionDurationSlow=E}return Object.assign(Object.assign(Object.assign({},l),{colorFillContent:l.colorFillSecondary,colorFillContentHover:l.colorFill,colorFillAlter:l.colorFillQuaternary,colorBgContainerDisabled:l.colorFillTertiary,colorBorderBg:l.colorBgContainer,colorSplit:Fv(l.colorBorderSecondary,l.colorBgContainer),colorTextPlaceholder:l.colorTextQuaternary,colorTextDisabled:l.colorTextQuaternary,colorTextHeading:l.colorText,colorTextLabel:l.colorTextSecondary,colorTextDescription:l.colorTextTertiary,colorTextLightSolid:l.colorWhite,colorHighlight:l.colorError,colorBgTextHover:l.colorFillSecondary,colorBgTextActive:l.colorFill,colorIcon:l.colorTextTertiary,colorIconHover:l.colorText,colorErrorOutline:Fv(l.colorErrorBg,l.colorBgContainer),colorWarningOutline:Fv(l.colorWarningBg,l.colorBgContainer),fontSizeIcon:l.fontSizeSM,lineWidthFocus:l.lineWidth*3,lineWidth:l.lineWidth,controlOutlineWidth:l.lineWidth*2,controlInteractiveSize:l.controlHeight/2,controlItemBgHover:l.colorFillTertiary,controlItemBgActive:l.colorPrimaryBg,controlItemBgActiveHover:l.colorPrimaryBgHover,controlItemBgActiveDisabled:l.colorFill,controlTmpOutline:l.colorFillQuaternary,controlOutline:Fv(l.colorPrimaryBg,l.colorBgContainer),lineType:l.lineType,borderRadius:l.borderRadius,borderRadiusXS:l.borderRadiusXS,borderRadiusSM:l.borderRadiusSM,borderRadiusLG:l.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:l.sizeXXS,paddingXS:l.sizeXS,paddingSM:l.sizeSM,padding:l.size,paddingMD:l.sizeMD,paddingLG:l.sizeLG,paddingXL:l.sizeXL,paddingContentHorizontalLG:l.sizeLG,paddingContentVerticalLG:l.sizeMS,paddingContentHorizontal:l.sizeMS,paddingContentVertical:l.sizeSM,paddingContentHorizontalSM:l.size,paddingContentVerticalSM:l.sizeXS,marginXXS:l.sizeXXS,marginXS:l.sizeXS,marginSM:l.sizeSM,margin:l.size,marginMD:l.sizeMD,marginLG:l.sizeLG,marginXL:l.sizeXL,marginXXL:l.sizeXXL,boxShadow:`
|
|
351
|
+
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
352
|
+
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
353
|
+
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
354
|
+
`,boxShadowSecondary:`
|
|
355
|
+
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
356
|
+
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
357
|
+
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
358
|
+
`,boxShadowTertiary:`
|
|
359
|
+
0 1px 2px 0 rgba(0, 0, 0, 0.03),
|
|
360
|
+
0 1px 6px -1px rgba(0, 0, 0, 0.02),
|
|
361
|
+
0 2px 4px 0 rgba(0, 0, 0, 0.02)
|
|
362
|
+
`,screenXS:c,screenXSMin:c,screenXSMax:f-1,screenSM:f,screenSMMin:f,screenSMMax:m-1,screenMD:m,screenMDMin:m,screenMDMax:g-1,screenLG:g,screenLGMin:g,screenLGMax:p-1,screenXL:p,screenXLMin:p,screenXLMax:y-1,screenXXL:y,screenXXLMin:y,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`
|
|
363
|
+
0 1px 2px -2px ${new xa("rgba(0, 0, 0, 0.16)").toRgbString()},
|
|
364
|
+
0 3px 6px 0 ${new xa("rgba(0, 0, 0, 0.12)").toRgbString()},
|
|
365
|
+
0 5px 12px 4px ${new xa("rgba(0, 0, 0, 0.09)").toRgbString()}
|
|
366
|
+
`,boxShadowDrawerRight:`
|
|
367
|
+
-6px 0 16px 0 rgba(0, 0, 0, 0.08),
|
|
368
|
+
-3px 0 6px -4px rgba(0, 0, 0, 0.12),
|
|
369
|
+
-9px 0 28px 8px rgba(0, 0, 0, 0.05)
|
|
370
|
+
`,boxShadowDrawerLeft:`
|
|
371
|
+
6px 0 16px 0 rgba(0, 0, 0, 0.08),
|
|
372
|
+
3px 0 6px -4px rgba(0, 0, 0, 0.12),
|
|
373
|
+
9px 0 28px 8px rgba(0, 0, 0, 0.05)
|
|
374
|
+
`,boxShadowDrawerUp:`
|
|
375
|
+
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
376
|
+
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
377
|
+
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
378
|
+
`,boxShadowDrawerDown:`
|
|
379
|
+
0 -6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
380
|
+
0 -3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
381
|
+
0 -9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
382
|
+
`,boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),r)}var pD=function(e,t){var a={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(a[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,r=Object.getOwnPropertySymbols(e);l<r.length;l++)t.indexOf(r[l])<0&&Object.prototype.propertyIsEnumerable.call(e,r[l])&&(a[r[l]]=e[r[l]]);return a};const gD={lineHeight:!0,lineHeightSM:!0,lineHeightLG:!0,lineHeightHeading1:!0,lineHeightHeading2:!0,lineHeightHeading3:!0,lineHeightHeading4:!0,lineHeightHeading5:!0,opacityLoading:!0,fontWeightStrong:!0,zIndexPopupBase:!0,zIndexBase:!0,opacityImage:!0},vB={size:!0,sizeSM:!0,sizeLG:!0,sizeMD:!0,sizeXS:!0,sizeXXS:!0,sizeMS:!0,sizeXL:!0,sizeXXL:!0,sizeUnit:!0,sizeStep:!0,motionBase:!0,motionUnit:!0},yB={screenXS:!0,screenXSMin:!0,screenXSMax:!0,screenSM:!0,screenSMMin:!0,screenSMMax:!0,screenMD:!0,screenMDMin:!0,screenMDMax:!0,screenLG:!0,screenLGMin:!0,screenLGMax:!0,screenXL:!0,screenXLMin:!0,screenXLMax:!0,screenXXL:!0,screenXXLMin:!0},vD=(e,t,a)=>{const r=a.getDerivativeToken(e),{override:l}=t,c=pD(t,["override"]);let f=Object.assign(Object.assign({},r),{override:l});return f=mD(f),c&&Object.entries(c).forEach(([m,g])=>{const{theme:p}=g,y=pD(g,["theme"]);let S=y;p&&(S=vD(Object.assign(Object.assign({},f),y),{override:y},p)),f[m]=S}),f};function jo(){const{token:e,hashed:t,theme:a,override:r,cssVar:l}=we.useContext(rD),c=`${pB}-${t||""}`,f=a||aD,[m,g,p]=YV(f,[Hv,e],{salt:c,override:r,getComputedToken:vD,formatToken:mD,cssVar:l&&{prefix:l.prefix,key:l.key,unitless:gD,ignore:vB,preserve:yB}});return[f,p,t?g:"",m,l]}const cw={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},ts=(e,t=!1)=>({boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:t?"inherit":e.fontFamily}),JS=()=>({display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),bB=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),SB=e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},"&:active, &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),CB=(e,t,a,r)=>{const l=`[class^="${t}"], [class*=" ${t}"]`,c=a?`.${a}`:l,f={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let m={};return r!==!1&&(m={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[c]:Object.assign(Object.assign(Object.assign({},m),f),{[l]:f})}},fw=(e,t)=>({outline:`${st(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:t??1,transition:"outline-offset 0s, outline 0s"}),dw=(e,t)=>({"&:focus-visible":Object.assign({},fw(e,t))}),yD=e=>({[`.${e}`]:Object.assign(Object.assign({},JS()),{[`.${e} .${e}-icon`]:{display:"block"}})}),bD=e=>Object.assign(Object.assign({color:e.colorLink,textDecoration:e.linkDecoration,outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,border:0,padding:0,background:"none",userSelect:"none"},dw(e)),{"&:focus, &:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive}}),{genStyleHooks:bi,genComponentStyleHook:xB,genSubStyleComponent:SD}=mB({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=C.useContext(ia);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,a,r,l]=jo();return{theme:e,realToken:t,hashId:a,token:r,cssVar:l}},useCSP:()=>{const{csp:e}=C.useContext(ia);return e??{}},getResetStyles:(e,t)=>{var a;const r=SB(e);return[r,{"&":r},yD((a=t?.prefix.iconPrefixCls)!==null&&a!==void 0?a:iw)]},getCommonStyle:CB,getCompUnitless:()=>gD});function EB(e,t){return Zc.reduce((a,r)=>{const l=e[`${r}1`],c=e[`${r}3`],f=e[`${r}6`],m=e[`${r}7`];return Object.assign(Object.assign({},a),t(r,{lightColor:l,lightBorderColor:c,darkColor:f,textColor:m}))},{})}const wB=(e,t)=>{const[a,r]=jo();return PE({token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>t?.nonce,layer:{name:"antd"}},()=>[yD(e)])},TB=Object.assign({},OS),{useId:CD}=TB,OB=typeof CD>"u"?()=>"":CD;var xD={};function RB(e,t,a){var r,l;const c=Ba("ConfigProvider"),f=e||{},m=f.inherit===!1||!t?Object.assign(Object.assign({},rw),{hashed:(r=t?.hashed)!==null&&r!==void 0?r:rw.hashed,cssVar:t?.cssVar}):t,g=OB();if(xD.NODE_ENV!=="production"){const p=f.cssVar||m.cssVar,y=!!(typeof f.cssVar=="object"&&(!((l=f.cssVar)===null||l===void 0)&&l.key)||g);xD.NODE_ENV!=="production"&&c(!p||y,"breaking","Missing key in `cssVar` config. Please upgrade to React 18 or set `cssVar.key` manually in each ConfigProvider inside `cssVar` enabled ConfigProvider.")}return MS(()=>{var p,y;if(!e)return t;const S=Object.assign({},m.components);Object.keys(e.components||{}).forEach(O=>{S[O]=Object.assign(Object.assign({},S[O]),e.components[O])});const E=`css-var-${g.replace(/:/g,"")}`,T=((p=f.cssVar)!==null&&p!==void 0?p:m.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:a?.prefixCls},typeof m.cssVar=="object"?m.cssVar:{}),typeof f.cssVar=="object"?f.cssVar:{}),{key:typeof f.cssVar=="object"&&((y=f.cssVar)===null||y===void 0?void 0:y.key)||E});return Object.assign(Object.assign(Object.assign({},m),f),{token:Object.assign(Object.assign({},m.token),f.token),components:S,cssVar:T})},[f,m],(p,y)=>p.some((S,E)=>{const T=y[E];return!TE(S,T,!0)}))}var AB=["children"],ED=C.createContext({});function MB(e){var t=e.children,a=pa(e,AB);return C.createElement(ED.Provider,{value:a},t)}var _B=function(e){Gc(a,e);var t=qc(a);function a(){return Nr(this,a),t.apply(this,arguments)}return $r(a,[{key:"render",value:function(){return this.props.children}}]),a}(C.Component);function DB(e){var t=C.useReducer(function(m){return m+1},0),a=Be(t,2),r=a[1],l=C.useRef(e),c=cr(function(){return l.current}),f=cr(function(m){l.current=typeof m=="function"?m(l.current):m,r()});return[c,f]}var Kc="none",e1="appear",t1="enter",n1="leave",wD="none",ns="prepare",_m="start",Dm="active",hw="end",TD="prepared";function OD(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit".concat(e)]="webkit".concat(t),a["Moz".concat(e)]="moz".concat(t),a["ms".concat(e)]="MS".concat(t),a["O".concat(e)]="o".concat(t.toLowerCase()),a}function NB(e,t){var a={animationend:OD("Animation","AnimationEnd"),transitionend:OD("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete a.animationend.animation,"TransitionEvent"in t||delete a.transitionend.transition),a}var $B=NB(yi(),typeof window<"u"?window:{}),RD={};if(yi()){var zB=document.createElement("div");RD=zB.style}var a1={};function AD(e){if(a1[e])return a1[e];var t=$B[e];if(t)for(var a=Object.keys(t),r=a.length,l=0;l<r;l+=1){var c=a[l];if(Object.prototype.hasOwnProperty.call(t,c)&&c in RD)return a1[e]=t[c],a1[e]}return""}var MD=AD("animationend"),_D=AD("transitionend"),DD=!!(MD&&_D),ND=MD||"animationend",$D=_D||"transitionend";function zD(e,t){if(!e)return null;if(Xt(e)==="object"){var a=t.replace(/-\w/g,function(r){return r[1].toUpperCase()});return e[a]}return"".concat(e,"-").concat(t)}const jB=function(e){var t=C.useRef();function a(l){l&&(l.removeEventListener($D,e),l.removeEventListener(ND,e))}function r(l){t.current&&t.current!==l&&a(t.current),l&&l!==t.current&&(l.addEventListener($D,e),l.addEventListener(ND,e),t.current=l)}return C.useEffect(function(){return function(){a(t.current)}},[]),[r,a]};var jD=yi()?C.useLayoutEffect:C.useEffect;const LB=function(){var e=C.useRef(null);function t(){tr.cancel(e.current)}function a(r){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;t();var c=tr(function(){l<=1?r({isCanceled:function(){return c!==e.current}}):a(r,l-1)});e.current=c}return C.useEffect(function(){return function(){t()}},[]),[a,t]};var VB=[ns,_m,Dm,hw],HB=[ns,TD],LD=!1,BB=!0;function VD(e){return e===Dm||e===hw}const PB=function(e,t,a){var r=Iv(wD),l=Be(r,2),c=l[0],f=l[1],m=LB(),g=Be(m,2),p=g[0],y=g[1];function S(){f(ns,!0)}var E=t?HB:VB;return jD(function(){if(c!==wD&&c!==hw){var T=E.indexOf(c),O=E[T+1],M=a(c);M===LD?f(O,!0):O&&p(function(A){function D(){A.isCanceled()||f(O,!0)}M===!0?D():Promise.resolve(M).then(D)})}},[e,c]),C.useEffect(function(){return function(){y()}},[]),[S,c]};function UB(e,t,a,r){var l=r.motionEnter,c=l===void 0?!0:l,f=r.motionAppear,m=f===void 0?!0:f,g=r.motionLeave,p=g===void 0?!0:g,y=r.motionDeadline,S=r.motionLeaveImmediately,E=r.onAppearPrepare,T=r.onEnterPrepare,O=r.onLeavePrepare,M=r.onAppearStart,A=r.onEnterStart,D=r.onLeaveStart,_=r.onAppearActive,z=r.onEnterActive,j=r.onLeaveActive,$=r.onAppearEnd,V=r.onEnterEnd,H=r.onLeaveEnd,P=r.onVisibleChanged,q=Iv(),Y=Be(q,2),te=Y[0],G=Y[1],K=DB(Kc),J=Be(K,2),ie=J[0],k=J[1],X=Iv(null),Q=Be(X,2),le=Q[0],U=Q[1],F=ie(),ne=C.useRef(!1),ae=C.useRef(null);function oe(){return a()}var fe=C.useRef(!1);function ye(){k(Kc),U(null,!0)}var $e=cr(function(We){var it=ie();if(it!==Kc){var rt=oe();if(!(We&&!We.deadline&&We.target!==rt)){var Ge=fe.current,Rt;it===e1&&Ge?Rt=$?.(rt,We):it===t1&&Ge?Rt=V?.(rt,We):it===n1&&Ge&&(Rt=H?.(rt,We)),Ge&&Rt!==!1&&ye()}}}),ze=jB($e),Fe=Be(ze,1),Ke=Fe[0],Oe=function(it){switch(it){case e1:return de(de(de({},ns,E),_m,M),Dm,_);case t1:return de(de(de({},ns,T),_m,A),Dm,z);case n1:return de(de(de({},ns,O),_m,D),Dm,j);default:return{}}},me=C.useMemo(function(){return Oe(F)},[F]),Re=PB(F,!e,function(We){if(We===ns){var it=me[ns];return it?it(oe()):LD}if(Ce in me){var rt;U(((rt=me[Ce])===null||rt===void 0?void 0:rt.call(me,oe(),null))||null)}return Ce===Dm&&F!==Kc&&(Ke(oe()),y>0&&(clearTimeout(ae.current),ae.current=setTimeout(function(){$e({deadline:!0})},y))),Ce===TD&&ye(),BB}),Pe=Be(Re,2),be=Pe[0],Ce=Pe[1],_e=VD(Ce);fe.current=_e;var je=C.useRef(null);jD(function(){if(!(ne.current&&je.current===t)){G(t);var We=ne.current;ne.current=!0;var it;!We&&t&&m&&(it=e1),We&&t&&c&&(it=t1),(We&&!t&&p||!We&&S&&!t&&p)&&(it=n1);var rt=Oe(it);it&&(e||rt[ns])?(k(it),be()):k(Kc),je.current=t}},[t]),C.useEffect(function(){(F===e1&&!m||F===t1&&!c||F===n1&&!p)&&k(Kc)},[m,c,p]),C.useEffect(function(){return function(){ne.current=!1,clearTimeout(ae.current)}},[]);var Ue=C.useRef(!1);C.useEffect(function(){te&&(Ue.current=!0),te!==void 0&&F===Kc&&((Ue.current||te)&&P?.(te),Ue.current=!0)},[te,F]);var nt=le;return me[ns]&&Ce===_m&&(nt=ge({transition:"none"},nt)),[F,Ce,nt,te??t]}function IB(e){var t=e;Xt(e)==="object"&&(t=e.transitionSupport);function a(l,c){return!!(l.motionName&&t&&c!==!1)}var r=C.forwardRef(function(l,c){var f=l.visible,m=f===void 0?!0:f,g=l.removeOnLeave,p=g===void 0?!0:g,y=l.forceRender,S=l.children,E=l.motionName,T=l.leavedClassName,O=l.eventProps,M=C.useContext(ED),A=M.motion,D=a(l,A),_=C.useRef(),z=C.useRef();function j(){try{return _.current instanceof HTMLElement?_.current:RS(z.current)}catch{return null}}var $=UB(D,m,j,l),V=Be($,4),H=V[0],P=V[1],q=V[2],Y=V[3],te=C.useRef(Y);Y&&(te.current=!0);var G=C.useCallback(function(Q){_.current=Q,vE(c,Q)},[c]),K,J=ge(ge({},O),{},{visible:m});if(!S)K=null;else if(H===Kc)Y?K=S(ge({},J),G):!p&&te.current&&T?K=S(ge(ge({},J),{},{className:T}),G):y||!p&&!T?K=S(ge(ge({},J),{},{style:{display:"none"}}),G):K=null;else{var ie;P===ns?ie="prepare":VD(P)?ie="active":P===_m&&(ie="start");var k=zD(E,"".concat(H,"-").concat(ie));K=S(ge(ge({},J),{},{className:Ye(zD(E,H),de(de({},k,k&&ie),E,typeof E=="string")),style:q}),G)}if(C.isValidElement(K)&&Rv(K)){var X=_S(K);X||(K=C.cloneElement(K,{ref:G}))}return C.createElement(_B,{ref:z},K)});return r.displayName="CSSMotion",r}const kv=IB(DD);var mw="add",pw="keep",gw="remove",vw="removed";function FB(e){var t;return e&&Xt(e)==="object"&&"key"in e?t=e:t={key:e},ge(ge({},t),{},{key:String(t.key)})}function yw(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(FB)}function kB(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],a=[],r=0,l=t.length,c=yw(e),f=yw(t);c.forEach(function(p){for(var y=!1,S=r;S<l;S+=1){var E=f[S];if(E.key===p.key){r<S&&(a=a.concat(f.slice(r,S).map(function(T){return ge(ge({},T),{},{status:mw})})),r=S),a.push(ge(ge({},E),{},{status:pw})),r+=1,y=!0;break}}y||a.push(ge(ge({},p),{},{status:gw}))}),r<l&&(a=a.concat(f.slice(r).map(function(p){return ge(ge({},p),{},{status:mw})})));var m={};a.forEach(function(p){var y=p.key;m[y]=(m[y]||0)+1});var g=Object.keys(m).filter(function(p){return m[p]>1});return g.forEach(function(p){a=a.filter(function(y){var S=y.key,E=y.status;return S!==p||E!==gw}),a.forEach(function(y){y.key===p&&(y.status=pw)})}),a}var GB=["component","children","onVisibleChanged","onAllRemoved"],qB=["status"],YB=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function XB(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:kv,a=function(r){Gc(c,r);var l=qc(c);function c(){var f;Nr(this,c);for(var m=arguments.length,g=new Array(m),p=0;p<m;p++)g[p]=arguments[p];return f=l.call.apply(l,[this].concat(g)),de(Nn(f),"state",{keyEntities:[]}),de(Nn(f),"removeKey",function(y){f.setState(function(S){var E=S.keyEntities.map(function(T){return T.key!==y?T:ge(ge({},T),{},{status:vw})});return{keyEntities:E}},function(){var S=f.state.keyEntities,E=S.filter(function(T){var O=T.status;return O!==vw}).length;E===0&&f.props.onAllRemoved&&f.props.onAllRemoved()})}),f}return $r(c,[{key:"render",value:function(){var m=this,g=this.state.keyEntities,p=this.props,y=p.component,S=p.children,E=p.onVisibleChanged;p.onAllRemoved;var T=pa(p,GB),O=y||C.Fragment,M={};return YB.forEach(function(A){M[A]=T[A],delete T[A]}),delete T.keys,C.createElement(O,T,g.map(function(A,D){var _=A.status,z=pa(A,qB),j=_===mw||_===pw;return C.createElement(t,jt({},M,{key:z.key,visible:j,eventProps:z,onVisibleChanged:function(V){E?.(V,{key:z.key}),V||m.removeKey(z.key)}}),function($,V){return S(ge(ge({},$),{},{index:D}),V)})}))}}],[{key:"getDerivedStateFromProps",value:function(m,g){var p=m.keys,y=g.keyEntities,S=yw(p),E=kB(y,S);return{keyEntities:E.filter(function(T){var O=y.find(function(M){var A=M.key;return T.key===A});return!(O&&O.status===vw&&T.status===gw)})}}}]),c}(C.Component);return de(a,"defaultProps",{component:"div"}),a}XB(DD);var WB={};const bw=C.createContext(!0);WB.NODE_ENV!=="production"&&(bw.displayName="MotionCacheContext");function ZB(e){const t=C.useContext(bw),{children:a}=e,[,r]=jo(),{motion:l}=r,c=C.useRef(!1);return c.current||(c.current=t!==l),c.current?C.createElement(bw.Provider,{value:l},C.createElement(MB,{motion:l},a)):a}var HD={};const BD=C.memo(({dropdownMatchSelectWidth:e})=>(Ba("ConfigProvider").deprecated(e===void 0,"dropdownMatchSelectWidth","popupMatchSelectWidth"),null));HD.NODE_ENV!=="production"&&(BD.displayName="PropWarning");const KB=HD.NODE_ENV!=="production"?BD:()=>null;var r1={},QB=function(e,t){var a={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(a[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,r=Object.getOwnPropertySymbols(e);l<r.length;l++)t.indexOf(r[l])<0&&Object.prototype.propertyIsEnumerable.call(e,r[l])&&(a[r[l]]=e[r[l]]);return a};const JB=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];let PD;function eP(){return PD||QS}function tP(e){return Object.keys(e).some(t=>t.endsWith("Color"))}const nP=e=>{const{prefixCls:t,iconPrefixCls:a,theme:r,holderRender:l}=e;t!==void 0&&(PD=t),r&&tP(r)&&(r1.NODE_ENV!=="production"&&Lv(!1,"ConfigProvider","`config` of css variable theme is not work in v5. Please use new `theme` config instead."),ZH(eP(),r))},aP=e=>{const{children:t,csp:a,autoInsertSpaceInButton:r,alert:l,anchor:c,form:f,locale:m,componentSize:g,direction:p,space:y,splitter:S,virtual:E,dropdownMatchSelectWidth:T,popupMatchSelectWidth:O,popupOverflow:M,legacyLocale:A,parentContext:D,iconPrefixCls:_,theme:z,componentDisabled:j,segmented:$,statistic:V,spin:H,calendar:P,carousel:q,cascader:Y,collapse:te,typography:G,checkbox:K,descriptions:J,divider:ie,drawer:k,skeleton:X,steps:Q,image:le,layout:U,list:F,mentions:ne,modal:ae,progress:oe,result:fe,slider:ye,breadcrumb:$e,menu:ze,pagination:Fe,input:Ke,textArea:Oe,empty:me,badge:Re,radio:Pe,rate:be,switch:Ce,transfer:_e,avatar:je,message:Ue,tag:nt,table:We,card:it,tabs:rt,timeline:Ge,timePicker:Rt,upload:wt,notification:At,tree:$t,colorPicker:ht,datePicker:kt,rangePicker:Vt,flex:Wt,wave:Tt,dropdown:ut,warning:St,tour:et,tooltip:lt,popover:I,popconfirm:he,floatButtonGroup:Qe,variant:Je,inputNumber:ft,treeSelect:Ft}=e,_t=C.useCallback((Ot,Bt)=>{const{prefixCls:En}=e;if(Bt)return Bt;const ot=En||D.getPrefixCls("");return Ot?`${ot}-${Ot}`:ot},[D.getPrefixCls,e.prefixCls]),Dt=_||D.iconPrefixCls||iw,dt=a||D.csp;wB(Dt,dt);const vt=RB(z,D.theme,{prefixCls:_t("")}),Mt={csp:dt,autoInsertSpaceInButton:r,alert:l,anchor:c,locale:m||A,direction:p,space:y,splitter:S,virtual:E,popupMatchSelectWidth:O??T,popupOverflow:M,getPrefixCls:_t,iconPrefixCls:Dt,theme:vt,segmented:$,statistic:V,spin:H,calendar:P,carousel:q,cascader:Y,collapse:te,typography:G,checkbox:K,descriptions:J,divider:ie,drawer:k,skeleton:X,steps:Q,image:le,input:Ke,textArea:Oe,layout:U,list:F,mentions:ne,modal:ae,progress:oe,result:fe,slider:ye,breadcrumb:$e,menu:ze,pagination:Fe,empty:me,badge:Re,radio:Pe,rate:be,switch:Ce,transfer:_e,avatar:je,message:Ue,tag:nt,table:We,card:it,tabs:rt,timeline:Ge,timePicker:Rt,upload:wt,notification:At,tree:$t,colorPicker:ht,datePicker:kt,rangePicker:Vt,flex:Wt,wave:Tt,dropdown:ut,warning:St,tour:et,tooltip:lt,popover:I,popconfirm:he,floatButtonGroup:Qe,variant:Je,inputNumber:ft,treeSelect:Ft};r1.NODE_ENV!=="production"&&Ba("ConfigProvider")(!("autoInsertSpaceInButton"in e),"deprecated","`autoInsertSpaceInButton` is deprecated. Please use `{ button: { autoInsertSpace: boolean }}` instead.");const mt=Object.assign({},D);Object.keys(Mt).forEach(Ot=>{Mt[Ot]!==void 0&&(mt[Ot]=Mt[Ot])}),JB.forEach(Ot=>{const Bt=e[Ot];Bt&&(mt[Ot]=Bt)}),typeof r<"u"&&(mt.button=Object.assign({autoInsertSpace:r},mt.button));const Ht=MS(()=>mt,mt,(Ot,Bt)=>{const En=Object.keys(Ot),ot=Object.keys(Bt);return En.length!==ot.length||En.some(On=>Ot[On]!==Bt[On])}),{layer:It}=C.useContext(Nv),ct=C.useMemo(()=>({prefixCls:Dt,csp:dt,layer:It?"antd":void 0}),[Dt,dt,It]);let tt=C.createElement(C.Fragment,null,C.createElement(KB,{dropdownMatchSelectWidth:T}),t);const gt=C.useMemo(()=>{var Ot,Bt,En,ot;return Rm(((Ot=Am.Form)===null||Ot===void 0?void 0:Ot.defaultValidateMessages)||{},((En=(Bt=Ht.locale)===null||Bt===void 0?void 0:Bt.Form)===null||En===void 0?void 0:En.defaultValidateMessages)||{},((ot=Ht.form)===null||ot===void 0?void 0:ot.validateMessages)||{},f?.validateMessages||{})},[Ht,f?.validateMessages]);Object.keys(gt).length>0&&(tt=C.createElement(RH.Provider,{value:gt},tt)),m&&(tt=C.createElement(X_,{locale:m,_ANT_MARK__:Y_},tt)),tt=C.createElement(UE.Provider,{value:ct},tt),g&&(tt=C.createElement(QH,{size:g},tt)),tt=C.createElement(ZB,null,tt);const bt=C.useMemo(()=>{const Ot=vt||{},{algorithm:Bt,token:En,components:ot,cssVar:On}=Ot,Jt=QB(Ot,["algorithm","token","components","cssVar"]),zn=Bt&&(!Array.isArray(Bt)||Bt.length>0)?ME(Bt):aD,Rn={};Object.entries(ot||{}).forEach(([nr,Un])=>{const nn=Object.assign({},Un);"algorithm"in nn&&(nn.algorithm===!0?nn.theme=zn:(Array.isArray(nn.algorithm)||typeof nn.algorithm=="function")&&(nn.theme=ME(nn.algorithm)),delete nn.algorithm),Rn[nr]=nn});const vn=Object.assign(Object.assign({},Hv),En);return Object.assign(Object.assign({},Jt),{theme:zn,token:vn,components:Rn,override:Object.assign({override:vn},Rn),cssVar:On})},[vt]);return z&&(tt=C.createElement(rD.Provider,{value:bt},tt)),Ht.warning&&(tt=C.createElement(I_.Provider,{value:Ht.warning},tt)),j!==void 0&&(tt=C.createElement(KH,{disabled:j},tt)),C.createElement(ia.Provider,{value:Ht},tt)},Rd=e=>{const t=C.useContext(ia),a=C.useContext(IE);return C.createElement(aP,Object.assign({parentContext:t,legacyLocale:a},e))};Rd.ConfigContext=ia,Rd.SizeContext=Mm,Rd.config=nP,Rd.useConfig=JH,Object.defineProperty(Rd,"SizeContext",{get:()=>(r1.NODE_ENV!=="production"&&Lv(!1,"ConfigProvider","ConfigProvider.SizeContext is deprecated. Please use `ConfigProvider.useConfig().componentSize` instead."),Mm)}),r1.NODE_ENV!=="production"&&(Rd.displayName="ConfigProvider");function UD(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function rP(e){return UD(e)instanceof ShadowRoot}function i1(e){return rP(e)?UD(e):null}function iP(e){return e.replace(/-(.)/g,function(t,a){return a.toUpperCase()})}function oP(e,t){Dn(e,"[@ant-design/icons] ".concat(t))}function ID(e){return Xt(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(Xt(e.icon)==="object"||typeof e.icon=="function")}function FD(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(e).reduce(function(t,a){var r=e[a];switch(a){case"class":t.className=r,delete t.class;break;default:delete t[a],t[iP(a)]=r}return t},{})}function Sw(e,t,a){return a?we.createElement(e.tag,ge(ge({key:t},FD(e.attrs)),a),(e.children||[]).map(function(r,l){return Sw(r,"".concat(t,"-").concat(e.tag,"-").concat(l))})):we.createElement(e.tag,ge({key:t},FD(e.attrs)),(e.children||[]).map(function(r,l){return Sw(r,"".concat(t,"-").concat(e.tag,"-").concat(l))}))}function kD(e){return Pv(e)[0]}function GD(e){return e?Array.isArray(e)?e:[e]:[]}var lP=`
|
|
383
|
+
.anticon {
|
|
384
|
+
display: inline-flex;
|
|
385
|
+
align-items: center;
|
|
386
|
+
color: inherit;
|
|
387
|
+
font-style: normal;
|
|
388
|
+
line-height: 0;
|
|
389
|
+
text-align: center;
|
|
390
|
+
text-transform: none;
|
|
391
|
+
vertical-align: -0.125em;
|
|
392
|
+
text-rendering: optimizeLegibility;
|
|
393
|
+
-webkit-font-smoothing: antialiased;
|
|
394
|
+
-moz-osx-font-smoothing: grayscale;
|
|
395
|
+
}
|
|
396
|
+
|
|
397
|
+
.anticon > * {
|
|
398
|
+
line-height: 1;
|
|
399
|
+
}
|
|
400
|
+
|
|
401
|
+
.anticon svg {
|
|
402
|
+
display: inline-block;
|
|
403
|
+
}
|
|
404
|
+
|
|
405
|
+
.anticon::before {
|
|
406
|
+
display: none;
|
|
407
|
+
}
|
|
408
|
+
|
|
409
|
+
.anticon .anticon-icon {
|
|
410
|
+
display: block;
|
|
411
|
+
}
|
|
412
|
+
|
|
413
|
+
.anticon[tabindex] {
|
|
414
|
+
cursor: pointer;
|
|
415
|
+
}
|
|
416
|
+
|
|
417
|
+
.anticon-spin::before,
|
|
418
|
+
.anticon-spin {
|
|
419
|
+
display: inline-block;
|
|
420
|
+
-webkit-animation: loadingCircle 1s infinite linear;
|
|
421
|
+
animation: loadingCircle 1s infinite linear;
|
|
422
|
+
}
|
|
423
|
+
|
|
424
|
+
@-webkit-keyframes loadingCircle {
|
|
425
|
+
100% {
|
|
426
|
+
-webkit-transform: rotate(360deg);
|
|
427
|
+
transform: rotate(360deg);
|
|
428
|
+
}
|
|
429
|
+
}
|
|
430
|
+
|
|
431
|
+
@keyframes loadingCircle {
|
|
432
|
+
100% {
|
|
433
|
+
-webkit-transform: rotate(360deg);
|
|
434
|
+
transform: rotate(360deg);
|
|
435
|
+
}
|
|
436
|
+
}
|
|
437
|
+
`,sP=function(t){var a=C.useContext(UE),r=a.csp,l=a.prefixCls,c=a.layer,f=lP;l&&(f=f.replace(/anticon/g,l)),c&&(f="@layer ".concat(c,` {
|
|
438
|
+
`).concat(f,`
|
|
439
|
+
}`)),C.useEffect(function(){var m=t.current,g=i1(m);Iu(f,"@ant-design-icons",{prepend:!c,csp:r,attachTo:g})},[])},uP=["icon","className","onClick","style","primaryColor","secondaryColor"],Gv={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function cP(e){var t=e.primaryColor,a=e.secondaryColor;Gv.primaryColor=t,Gv.secondaryColor=a||kD(t),Gv.calculated=!!a}function fP(){return ge({},Gv)}var Nm=function(t){var a=t.icon,r=t.className,l=t.onClick,c=t.style,f=t.primaryColor,m=t.secondaryColor,g=pa(t,uP),p=C.useRef(),y=Gv;if(f&&(y={primaryColor:f,secondaryColor:m||kD(f)}),sP(p),oP(ID(a),"icon should be icon definiton, but got ".concat(a)),!ID(a))return null;var S=a;return S&&typeof S.icon=="function"&&(S=ge(ge({},S),{},{icon:S.icon(y.primaryColor,y.secondaryColor)})),Sw(S.icon,"svg-".concat(S.name),ge(ge({className:r,onClick:l,style:c,"data-icon":S.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},g),{},{ref:p}))};Nm.displayName="IconReact",Nm.getTwoToneColors=fP,Nm.setTwoToneColors=cP;function qD(e){var t=GD(e),a=Be(t,2),r=a[0],l=a[1];return Nm.setTwoToneColors({primaryColor:r,secondaryColor:l})}function dP(){var e=Nm.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var hP=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];qD(ZS.primary);var oa=C.forwardRef(function(e,t){var a=e.className,r=e.icon,l=e.spin,c=e.rotate,f=e.tabIndex,m=e.onClick,g=e.twoToneColor,p=pa(e,hP),y=C.useContext(UE),S=y.prefixCls,E=S===void 0?"anticon":S,T=y.rootClassName,O=Ye(T,E,de(de({},"".concat(E,"-").concat(r.name),!!r.name),"".concat(E,"-spin"),!!l||r.name==="loading"),a),M=f;M===void 0&&m&&(M=-1);var A=c?{msTransform:"rotate(".concat(c,"deg)"),transform:"rotate(".concat(c,"deg)")}:void 0,D=GD(g),_=Be(D,2),z=_[0],j=_[1];return C.createElement("span",jt({role:"img","aria-label":r.name},p,{ref:t,tabIndex:M,onClick:m,className:O}),C.createElement(Nm,{icon:r,primaryColor:z,secondaryColor:j,style:A}))});oa.displayName="AntdIcon",oa.getTwoToneColor=dP,oa.setTwoToneColor=qD;var mP={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z"}}]},name:"close-circle",theme:"filled"},pP={},gP=function(t,a){return C.createElement(oa,jt({},t,{ref:a,icon:mP}))},Cw=C.forwardRef(gP);pP.NODE_ENV!=="production"&&(Cw.displayName="CloseCircleFilled");var vP={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"},yP={},bP=function(t,a){return C.createElement(oa,jt({},t,{ref:a,icon:vP}))},qv=C.forwardRef(bP);yP.NODE_ENV!=="production"&&(qv.displayName="CloseOutlined");var SP=`accept acceptCharset accessKey action allowFullScreen allowTransparency
|
|
440
|
+
alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
|
|
441
|
+
charSet checked classID className colSpan cols content contentEditable contextMenu
|
|
442
|
+
controls coords crossOrigin data dateTime default defer dir disabled download draggable
|
|
443
|
+
encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
|
|
444
|
+
headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
|
|
445
|
+
is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
|
|
446
|
+
mediaGroup method min minLength multiple muted name noValidate nonce open
|
|
447
|
+
optimum pattern placeholder poster preload radioGroup readOnly rel required
|
|
448
|
+
reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
|
|
449
|
+
shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
|
|
450
|
+
summary tabIndex target title type useMap value width wmode wrap`,CP=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
|
|
451
|
+
onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
|
|
452
|
+
onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
|
|
453
|
+
onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
|
|
454
|
+
onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
|
|
455
|
+
onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
|
|
456
|
+
onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,xP="".concat(SP," ").concat(CP).split(/[\s\n]+/),EP="aria-",wP="data-";function YD(e,t){return e.indexOf(t)===0}function $m(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,a;t===!1?a={aria:!0,data:!0,attr:!0}:t===!0?a={aria:!0}:a=ge({},t);var r={};return Object.keys(e).forEach(function(l){(a.aria&&(l==="role"||YD(l,EP))||a.data&&YD(l,wP)||a.attr&&xP.includes(l))&&(r[l]=e[l])}),r}function XD(e){return e&&we.isValidElement(e)&&e.type===we.Fragment}const TP=(e,t,a)=>we.isValidElement(e)?we.cloneElement(e,typeof a=="function"?a(e.props||{}):a):t;function Ys(e,t){return TP(e,e,t)}const Yv=e=>{const[,,,,t]=jo();return t?`${e}-css-var`:""};var Zt={BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,CAPS_LOCK:20,ESC:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,N:78,P:80,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,SEMICOLON:186,EQUALS:187,WIN_KEY:224},OP={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"},RP={},AP=function(t,a){return C.createElement(oa,jt({},t,{ref:a,icon:OP}))},ku=C.forwardRef(AP);RP.NODE_ENV!=="production"&&(ku.displayName="LoadingOutlined");var MP={};const xw=we.createContext(void 0);MP.NODE_ENV!=="production"&&(xw.displayName="zIndexContext");var WD={};const Gu=100,_P=Gu*10+Gu,ZD={Modal:Gu,Drawer:Gu,Popover:Gu,Popconfirm:Gu,Tooltip:Gu,Tour:Gu,FloatButton:Gu},DP={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function NP(e){return e in ZD}const KD=(e,t)=>{const[,a]=jo(),r=we.useContext(xw),l=NP(e);let c;if(t!==void 0)c=[t,t];else{let f=r??0;l?f+=(r?0:a.zIndexPopupBase)+ZD[e]:f+=DP[e],c=[r===void 0?t:f,f]}if(WD.NODE_ENV!=="production"){const f=Ba(e),m=a.zIndexPopupBase+_P,g=c[0]||0;WD.NODE_ENV!=="production"&&f(t!==void 0||g<=m,"usage","`zIndex` is over design token `zIndexPopupBase` too much. It may cause unexpected override.")}return c};function QD(e,t){this.v=e,this.k=t}function Si(e,t,a,r){var l=Object.defineProperty;try{l({},"",{})}catch{l=0}Si=function(f,m,g,p){if(m)l?l(f,m,{value:g,enumerable:!p,configurable:!p,writable:!p}):f[m]=g;else{var y=function(E,T){Si(f,E,function(O){return this._invoke(E,T,O)})};y("next",0),y("throw",1),y("return",2)}},Si(e,t,a,r)}function Ew(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,a=typeof Symbol=="function"?Symbol:{},r=a.iterator||"@@iterator",l=a.toStringTag||"@@toStringTag";function c(T,O,M,A){var D=O&&O.prototype instanceof m?O:m,_=Object.create(D.prototype);return Si(_,"_invoke",function(z,j,$){var V,H,P,q=0,Y=$||[],te=!1,G={p:0,n:0,v:e,a:K,f:K.bind(e,4),d:function(ie,k){return V=ie,H=0,P=e,G.n=k,f}};function K(J,ie){for(H=J,P=ie,t=0;!te&&q&&!k&&t<Y.length;t++){var k,X=Y[t],Q=G.p,le=X[2];J>3?(k=le===ie)&&(P=X[(H=X[4])?5:(H=3,3)],X[4]=X[5]=e):X[0]<=Q&&((k=J<2&&Q<X[1])?(H=0,G.v=ie,G.n=X[1]):Q<le&&(k=J<3||X[0]>ie||ie>le)&&(X[4]=J,X[5]=ie,G.n=le,H=0))}if(k||J>1)return f;throw te=!0,ie}return function(J,ie,k){if(q>1)throw TypeError("Generator is already running");for(te&&ie===1&&K(ie,k),H=ie,P=k;(t=H<2?e:P)||!te;){V||(H?H<3?(H>1&&(G.n=-1),K(H,P)):G.n=P:G.v=P);try{if(q=2,V){if(H||(J="next"),t=V[J]){if(!(t=t.call(V,P)))throw TypeError("iterator result is not an object");if(!t.done)return t;P=t.value,H<2&&(H=0)}else H===1&&(t=V.return)&&t.call(V),H<2&&(P=TypeError("The iterator does not provide a '"+J+"' method"),H=1);V=e}else if((t=(te=G.n<0)?P:z.call(j,G))!==f)break}catch(X){V=e,H=1,P=X}finally{q=1}}return{value:t,done:te}}}(T,M,A),!0),_}var f={};function m(){}function g(){}function p(){}t=Object.getPrototypeOf;var y=[][r]?t(t([][r]())):(Si(t={},r,function(){return this}),t),S=p.prototype=m.prototype=Object.create(y);function E(T){return Object.setPrototypeOf?Object.setPrototypeOf(T,p):(T.__proto__=p,Si(T,l,"GeneratorFunction")),T.prototype=Object.create(S),T}return g.prototype=p,Si(S,"constructor",p),Si(p,"constructor",g),g.displayName="GeneratorFunction",Si(p,l,"GeneratorFunction"),Si(S),Si(S,l,"Generator"),Si(S,r,function(){return this}),Si(S,"toString",function(){return"[object Generator]"}),(Ew=function(){return{w:c,m:E}})()}function o1(e,t){function a(l,c,f,m){try{var g=e[l](c),p=g.value;return p instanceof QD?t.resolve(p.v).then(function(y){a("next",y,f,m)},function(y){a("throw",y,f,m)}):t.resolve(p).then(function(y){g.value=y,f(g)},function(y){return a("throw",y,f,m)})}catch(y){m(y)}}var r;this.next||(Si(o1.prototype),Si(o1.prototype,typeof Symbol=="function"&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),Si(this,"_invoke",function(l,c,f){function m(){return new t(function(g,p){a(l,f,g,p)})}return r=r?r.then(m,m):m()},!0)}function JD(e,t,a,r,l){return new o1(Ew().w(e,t,a,r),l||Promise)}function $P(e,t,a,r,l){var c=JD(e,t,a,r,l);return c.next().then(function(f){return f.done?f.value:c.next()})}function zP(e){var t=Object(e),a=[];for(var r in t)a.unshift(r);return function l(){for(;a.length;)if((r=a.pop())in t)return l.value=r,l.done=!1,l;return l.done=!0,l}}function eN(e){if(e!=null){var t=e[typeof Symbol=="function"&&Symbol.iterator||"@@iterator"],a=0;if(t)return t.call(e);if(typeof e.next=="function")return e;if(!isNaN(e.length))return{next:function(){return e&&a>=e.length&&(e=void 0),{value:e&&e[a++],done:!e}}}}throw new TypeError(Xt(e)+" is not iterable")}function Ci(){var e=Ew(),t=e.m(Ci),a=(Object.getPrototypeOf?Object.getPrototypeOf(t):t.__proto__).constructor;function r(f){var m=typeof f=="function"&&f.constructor;return!!m&&(m===a||(m.displayName||m.name)==="GeneratorFunction")}var l={throw:1,return:2,break:3,continue:3};function c(f){var m,g;return function(p){m||(m={stop:function(){return g(p.a,2)},catch:function(){return p.v},abrupt:function(S,E){return g(p.a,l[S],E)},delegateYield:function(S,E,T){return m.resultName=E,g(p.d,eN(S),T)},finish:function(S){return g(p.f,S)}},g=function(S,E,T){p.p=m.prev,p.n=m.next;try{return S(E,T)}finally{m.next=p.n}}),m.resultName&&(m[m.resultName]=p.v,m.resultName=void 0),m.sent=p.v,m.next=p.n;try{return f.call(this,m)}finally{p.p=m.prev,p.n=m.next}}}return(Ci=function(){return{wrap:function(g,p,y,S){return e.w(c(g),p,y,S&&S.reverse())},isGeneratorFunction:r,mark:e.m,awrap:function(g,p){return new QD(g,p)},AsyncIterator:o1,async:function(g,p,y,S,E){return(r(p)?JD:$P)(c(g),p,y,S,E)},keys:zP,values:eN}})()}function tN(e,t,a,r,l,c,f){try{var m=e[c](f),g=m.value}catch(p){return void a(p)}m.done?t(g):Promise.resolve(g).then(r,l)}function Ad(e){return function(){var t=this,a=arguments;return new Promise(function(r,l){var c=e.apply(t,a);function f(g){tN(c,r,l,f,m,"next",g)}function m(g){tN(c,r,l,f,m,"throw",g)}f(void 0)})}}var Xv=ge({},jM),jP=Xv.version,ww=Xv.render,LP=Xv.unmountComponentAtNode,l1;try{var VP=Number((jP||"").split(".")[0]);VP>=18&&(l1=Xv.createRoot)}catch{}function nN(e){var t=Xv.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&Xt(t)==="object"&&(t.usingClientEntryPoint=e)}var s1="__rc_react_root__";function HP(e,t){nN(!0);var a=t[s1]||l1(t);nN(!1),a.render(e),t[s1]=a}function BP(e,t){ww?.(e,t)}function PP(e,t){if(l1){HP(e,t);return}BP(e,t)}function UP(e){return Tw.apply(this,arguments)}function Tw(){return Tw=Ad(Ci().mark(function e(t){return Ci().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.resolve().then(function(){var l;(l=t[s1])===null||l===void 0||l.unmount(),delete t[s1]}));case 1:case"end":return r.stop()}},e)})),Tw.apply(this,arguments)}function IP(e){LP(e)}function FP(e){return Ow.apply(this,arguments)}function Ow(){return Ow=Ad(Ci().mark(function e(t){return Ci().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(l1===void 0){r.next=2;break}return r.abrupt("return",UP(t));case 2:IP(t);case 3:case"end":return r.stop()}},e)})),Ow.apply(this,arguments)}var aN={};let kP=(e,t)=>{if(aN.NODE_ENV!=="production"){const a=parseInt(C.version.split(".")[0],10),r=Object.keys(jM);aN.NODE_ENV!=="production"&&Lv(a<19||r.includes("createRoot"),"compatible","antd v5 support React is 16 ~ 18. see https://u.ant.design/v5-for-19 for compatible.")}return PP(e,t),()=>FP(t)};function GP(e){return kP}const Rw=(e,t,a)=>a!==void 0?a:`${e}-${t}`;function Md(e,t){var a=Object.assign({},e);return Array.isArray(t)&&t.forEach(function(r){delete a[r]}),a}const rN=function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),a=t.width,r=t.height;if(a||r)return!0}if(e.getBoundingClientRect){var l=e.getBoundingClientRect(),c=l.width,f=l.height;if(c||f)return!0}}return!1},qP=e=>{const{componentCls:t,colorPrimary:a}=e;return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${a})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s ${e.motionEaseOutCirc}`,`opacity 2s ${e.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:[`box-shadow ${e.motionDurationSlow} ${e.motionEaseInOut}`,`opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`].join(",")}}}}},YP=xB("Wave",e=>[qP(e)]),iN=`${QS}-wave-target`;function Aw(e){return e&&e!=="#fff"&&e!=="#ffffff"&&e!=="rgb(255, 255, 255)"&&e!=="rgba(255, 255, 255, 1)"&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&e!=="transparent"}function XP(e){const{borderTopColor:t,borderColor:a,backgroundColor:r}=getComputedStyle(e);return Aw(t)?t:Aw(a)?a:Aw(r)?r:null}function Mw(e){return Number.isNaN(e)?0:e}const WP=e=>{const{className:t,target:a,component:r,registerUnmount:l}=e,c=C.useRef(null),f=C.useRef(null);C.useEffect(()=>{f.current=l()},[]);const[m,g]=C.useState(null),[p,y]=C.useState([]),[S,E]=C.useState(0),[T,O]=C.useState(0),[M,A]=C.useState(0),[D,_]=C.useState(0),[z,j]=C.useState(!1),$={left:S,top:T,width:M,height:D,borderRadius:p.map(P=>`${P}px`).join(" ")};m&&($["--wave-color"]=m);function V(){const P=getComputedStyle(a);g(XP(a));const q=P.position==="static",{borderLeftWidth:Y,borderTopWidth:te}=P;E(q?a.offsetLeft:Mw(-parseFloat(Y))),O(q?a.offsetTop:Mw(-parseFloat(te))),A(a.offsetWidth),_(a.offsetHeight);const{borderTopLeftRadius:G,borderTopRightRadius:K,borderBottomLeftRadius:J,borderBottomRightRadius:ie}=P;y([G,K,ie,J].map(k=>Mw(parseFloat(k))))}if(C.useEffect(()=>{if(a){const P=tr(()=>{V(),j(!0)});let q;return typeof ResizeObserver<"u"&&(q=new ResizeObserver(V),q.observe(a)),()=>{tr.cancel(P),q?.disconnect()}}},[]),!z)return null;const H=(r==="Checkbox"||r==="Radio")&&a?.classList.contains(iN);return C.createElement(kv,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(P,q)=>{var Y,te;if(q.deadline||q.propertyName==="opacity"){const G=(Y=c.current)===null||Y===void 0?void 0:Y.parentElement;(te=f.current)===null||te===void 0||te.call(f).then(()=>{G?.remove()})}return!1}},({className:P},q)=>C.createElement("div",{ref:Wl(c,q),className:Ye(t,P,{"wave-quick":H}),style:$}))},ZP=(e,t)=>{var a;const{component:r}=t;if(r==="Checkbox"&&!(!((a=e.querySelector("input"))===null||a===void 0)&&a.checked))return;const l=document.createElement("div");l.style.position="absolute",l.style.left="0px",l.style.top="0px",e?.insertBefore(l,e?.firstChild);const c=GP();let f=null;function m(){return f}f=c(C.createElement(WP,Object.assign({},t,{target:e,registerUnmount:m})),l)},KP=(e,t,a)=>{const{wave:r}=C.useContext(ia),[,l,c]=jo(),f=cr(p=>{const y=e.current;if(r?.disabled||!y)return;const S=y.querySelector(`.${iN}`)||y,{showEffect:E}=r||{};(E||ZP)(S,{className:t,token:l,component:a,event:p,hashId:c})}),m=C.useRef(null);return p=>{tr.cancel(m.current),m.current=tr(()=>{f(p)})}};var QP={};const oN=e=>{const{children:t,disabled:a,component:r}=e,{getPrefixCls:l}=C.useContext(ia),c=C.useRef(null),f=l("wave"),[,m]=YP(f),g=KP(c,Ye(f,m),r);if(we.useEffect(()=>{const y=c.current;if(!y||y.nodeType!==1||a)return;const S=E=>{!rN(E.target)||!y.getAttribute||y.getAttribute("disabled")||y.disabled||y.className.includes("disabled")||y.className.includes("-leave")||g(E)};return y.addEventListener("click",S,!0),()=>{y.removeEventListener("click",S,!0)}},[a]),!we.isValidElement(t))return t??null;const p=Rv(t)?Wl(_S(t),c):c;return Ys(t,{ref:p})};QP.NODE_ENV!=="production"&&(oN.displayName="Wave");const qu=e=>{const t=we.useContext(Mm);return we.useMemo(()=>e?typeof e=="string"?e??t:typeof e=="function"?e(t):t:t,[e,t])},lN=C.createContext(null),Wv=(e,t)=>{const a=C.useContext(lN),r=C.useMemo(()=>{if(!a)return"";const{compactDirection:l,isFirstItem:c,isLastItem:f}=a,m=l==="vertical"?"-vertical-":"-";return Ye(`${e}-compact${m}item`,{[`${e}-compact${m}first-item`]:c,[`${e}-compact${m}last-item`]:f,[`${e}-compact${m}item-rtl`]:t==="rtl"})},[e,t,a]);return{compactSize:a?.compactSize,compactDirection:a?.compactDirection,compactItemClassnames:r}},JP=e=>{const{children:t}=e;return C.createElement(lN.Provider,{value:null},t)};var sN={},e7=function(e,t){var a={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(a[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,r=Object.getOwnPropertySymbols(e);l<r.length;l++)t.indexOf(r[l])<0&&Object.prototype.propertyIsEnumerable.call(e,r[l])&&(a[r[l]]=e[r[l]]);return a};const uN=C.createContext(void 0),t7=e=>{const{getPrefixCls:t,direction:a}=C.useContext(ia),{prefixCls:r,size:l,className:c}=e,f=e7(e,["prefixCls","size","className"]),m=t("btn-group",r),[,,g]=jo(),p=C.useMemo(()=>{switch(l){case"large":return"lg";case"small":return"sm";default:return""}},[l]);if(sN.NODE_ENV!=="production"){const S=Ba("Button.Group");S.deprecated(!1,"Button.Group","Space.Compact"),sN.NODE_ENV!=="production"&&S(!l||["large","small","middle"].includes(l),"usage","Invalid prop `size`.")}const y=Ye(m,{[`${m}-${p}`]:p,[`${m}-rtl`]:a==="rtl"},c,g);return C.createElement(uN.Provider,{value:l},C.createElement("div",Object.assign({},f,{className:y})))},cN=/^[\u4E00-\u9FA5]{2}$/,_w=cN.test.bind(cN);function fN(e){return typeof e=="string"}function u1(e){return e==="text"||e==="link"}function n7(e,t){if(e==null)return;const a=t?" ":"";return typeof e!="string"&&typeof e!="number"&&fN(e.type)&&_w(e.props.children)?Ys(e,{children:e.props.children.split("").join(a)}):fN(e)?_w(e)?we.createElement("span",null,e.split("").join(a)):we.createElement("span",null,e):XD(e)?we.createElement("span",null,e):e}function a7(e,t){let a=!1;const r=[];return we.Children.forEach(e,l=>{const c=typeof l,f=c==="string"||c==="number";if(a&&f){const m=r.length-1,g=r[m];r[m]=`${g}${l}`}else r.push(l);a=f}),we.Children.map(r,l=>n7(l,t))}["default","primary","danger"].concat(Nt(Zc));const Dw=C.forwardRef((e,t)=>{const{className:a,style:r,children:l,prefixCls:c}=e,f=Ye(`${c}-icon`,a);return we.createElement("span",{ref:t,className:f,style:r},l)}),dN=C.forwardRef((e,t)=>{const{prefixCls:a,className:r,style:l,iconClassName:c}=e,f=Ye(`${a}-loading-icon`,r);return we.createElement(Dw,{prefixCls:a,className:f,style:l,ref:t},we.createElement(ku,{className:c}))}),Nw=()=>({width:0,opacity:0,transform:"scale(0)"}),$w=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),r7=e=>{const{prefixCls:t,loading:a,existIcon:r,className:l,style:c,mount:f}=e,m=!!a;return r?we.createElement(dN,{prefixCls:t,className:l,style:c}):we.createElement(kv,{visible:m,motionName:`${t}-loading-icon-motion`,motionAppear:!f,motionEnter:!f,motionLeave:!f,removeOnLeave:!0,onAppearStart:Nw,onAppearActive:$w,onEnterStart:Nw,onEnterActive:$w,onLeaveStart:$w,onLeaveActive:Nw},({className:g,style:p},y)=>{const S=Object.assign(Object.assign({},c),p);return we.createElement(dN,{prefixCls:t,className:Ye(l,g),style:S,ref:y})})},hN=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),i7=e=>{const{componentCls:t,fontSize:a,lineWidth:r,groupBorderColor:l,colorErrorHover:c}=e;return{[`${t}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:e.calc(r).mul(-1).equal(),[`&, & > ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:"relative",zIndex:1,"&:hover, &:focus, &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:a}},hN(`${t}-primary`,l),hN(`${t}-danger`,c)]}};var o7=["b"],l7=["v"],zw=function(t){return Math.round(Number(t||0))},s7=function(t){if(t instanceof xa)return t;if(t&&Xt(t)==="object"&&"h"in t&&"b"in t){var a=t,r=a.b,l=pa(a,o7);return ge(ge({},l),{},{v:r})}return typeof t=="string"&&/hsb/.test(t)?t.replace(/hsb/,"hsv"):t},Yu=function(e){Gc(a,e);var t=qc(a);function a(r){return Nr(this,a),t.call(this,s7(r))}return $r(a,[{key:"toHsbString",value:function(){var l=this.toHsb(),c=zw(l.s*100),f=zw(l.b*100),m=zw(l.h),g=l.a,p="hsb(".concat(m,", ").concat(c,"%, ").concat(f,"%)"),y="hsba(".concat(m,", ").concat(c,"%, ").concat(f,"%, ").concat(g.toFixed(g===0?0:2),")");return g===1?p:y}},{key:"toHsb",value:function(){var l=this.toHsv(),c=l.v,f=pa(l,l7);return ge(ge({},f),{},{b:c,a:this.a})}}]),a}(xa),u7="rc-color-picker",zm=function(t){return t instanceof Yu?t:new Yu(t)},c7=zm("#1677ff"),mN=function(t){var a=t.offset,r=t.targetRef,l=t.containerRef,c=t.color,f=t.type,m=l.current.getBoundingClientRect(),g=m.width,p=m.height,y=r.current.getBoundingClientRect(),S=y.width,E=y.height,T=S/2,O=E/2,M=(a.x+T)/g,A=1-(a.y+O)/p,D=c.toHsb(),_=M,z=(a.x+T)/g*360;if(f)switch(f){case"hue":return zm(ge(ge({},D),{},{h:z<=0?0:z}));case"alpha":return zm(ge(ge({},D),{},{a:_<=0?0:_}))}return zm({h:D.h,s:M<=0?0:M,b:A>=1?1:A,a:D.a})},pN=function(t,a){var r=t.toHsb();switch(a){case"hue":return{x:r.h/360*100,y:50};case"alpha":return{x:t.a*100,y:50};default:return{x:r.s*100,y:(1-r.b)*100}}},f7=function(t){var a=t.color,r=t.prefixCls,l=t.className,c=t.style,f=t.onClick,m="".concat(r,"-color-block");return we.createElement("div",{className:Ye(m,l),style:c,onClick:f},we.createElement("div",{className:"".concat(m,"-inner"),style:{background:a}}))};function d7(e){var t="touches"in e?e.touches[0]:e,a=document.documentElement.scrollLeft||document.body.scrollLeft||window.pageXOffset,r=document.documentElement.scrollTop||document.body.scrollTop||window.pageYOffset;return{pageX:t.pageX-a,pageY:t.pageY-r}}function gN(e){var t=e.targetRef,a=e.containerRef,r=e.direction,l=e.onDragChange,c=e.onDragChangeComplete,f=e.calculate,m=e.color,g=e.disabledDrag,p=C.useState({x:0,y:0}),y=Be(p,2),S=y[0],E=y[1],T=C.useRef(null),O=C.useRef(null);C.useEffect(function(){E(f())},[m]),C.useEffect(function(){return function(){document.removeEventListener("mousemove",T.current),document.removeEventListener("mouseup",O.current),document.removeEventListener("touchmove",T.current),document.removeEventListener("touchend",O.current),T.current=null,O.current=null}},[]);var M=function(j){var $=d7(j),V=$.pageX,H=$.pageY,P=a.current.getBoundingClientRect(),q=P.x,Y=P.y,te=P.width,G=P.height,K=t.current.getBoundingClientRect(),J=K.width,ie=K.height,k=J/2,X=ie/2,Q=Math.max(0,Math.min(V-q,te))-k,le=Math.max(0,Math.min(H-Y,G))-X,U={x:Q,y:r==="x"?S.y:le};if(J===0&&ie===0||J!==ie)return!1;l?.(U)},A=function(j){j.preventDefault(),M(j)},D=function(j){j.preventDefault(),document.removeEventListener("mousemove",T.current),document.removeEventListener("mouseup",O.current),document.removeEventListener("touchmove",T.current),document.removeEventListener("touchend",O.current),T.current=null,O.current=null,c?.()},_=function(j){document.removeEventListener("mousemove",T.current),document.removeEventListener("mouseup",O.current),!g&&(M(j),document.addEventListener("mousemove",A),document.addEventListener("mouseup",D),document.addEventListener("touchmove",A),document.addEventListener("touchend",D),T.current=A,O.current=D)};return[S,_]}var vN=function(t){var a=t.size,r=a===void 0?"default":a,l=t.color,c=t.prefixCls;return we.createElement("div",{className:Ye("".concat(c,"-handler"),de({},"".concat(c,"-handler-sm"),r==="small")),style:{backgroundColor:l}})},yN=function(t){var a=t.children,r=t.style,l=t.prefixCls;return we.createElement("div",{className:"".concat(l,"-palette"),style:ge({position:"relative"},r)},a)},bN=C.forwardRef(function(e,t){var a=e.children,r=e.x,l=e.y;return we.createElement("div",{ref:t,style:{position:"absolute",left:"".concat(r,"%"),top:"".concat(l,"%"),zIndex:1,transform:"translate(-50%, -50%)"}},a)}),h7=function(t){var a=t.color,r=t.onChange,l=t.prefixCls,c=t.onChangeComplete,f=t.disabled,m=C.useRef(),g=C.useRef(),p=C.useRef(a),y=cr(function(M){var A=mN({offset:M,targetRef:g,containerRef:m,color:a});p.current=A,r(A)}),S=gN({color:a,containerRef:m,targetRef:g,calculate:function(){return pN(a)},onDragChange:y,onDragChangeComplete:function(){return c?.(p.current)},disabledDrag:f}),E=Be(S,2),T=E[0],O=E[1];return we.createElement("div",{ref:m,className:"".concat(l,"-select"),onMouseDown:O,onTouchStart:O},we.createElement(yN,{prefixCls:l},we.createElement(bN,{x:T.x,y:T.y,ref:g},we.createElement(vN,{color:a.toRgbString(),prefixCls:l})),we.createElement("div",{className:"".concat(l,"-saturation"),style:{backgroundColor:"hsl(".concat(a.toHsb().h,",100%, 50%)"),backgroundImage:"linear-gradient(0deg, #000, transparent),linear-gradient(90deg, #fff, hsla(0, 0%, 100%, 0))"}})))},m7=function(t,a){var r=mo(t,{value:a}),l=Be(r,2),c=l[0],f=l[1],m=C.useMemo(function(){return zm(c)},[c]);return[m,f]},p7=function(t){var a=t.colors,r=t.children,l=t.direction,c=l===void 0?"to right":l,f=t.type,m=t.prefixCls,g=C.useMemo(function(){return a.map(function(p,y){var S=zm(p);return f==="alpha"&&y===a.length-1&&(S=new Yu(S.setA(1))),S.toRgbString()}).join(",")},[a,f]);return we.createElement("div",{className:"".concat(m,"-gradient"),style:{position:"absolute",inset:0,background:"linear-gradient(".concat(c,", ").concat(g,")")}},r)},g7=function(t){var a=t.prefixCls,r=t.colors,l=t.disabled,c=t.onChange,f=t.onChangeComplete,m=t.color,g=t.type,p=C.useRef(),y=C.useRef(),S=C.useRef(m),E=function($){return g==="hue"?$.getHue():$.a*100},T=cr(function(j){var $=mN({offset:j,targetRef:y,containerRef:p,color:m,type:g});S.current=$,c(E($))}),O=gN({color:m,targetRef:y,containerRef:p,calculate:function(){return pN(m,g)},onDragChange:T,onDragChangeComplete:function(){f(E(S.current))},direction:"x",disabledDrag:l}),M=Be(O,2),A=M[0],D=M[1],_=we.useMemo(function(){if(g==="hue"){var j=m.toHsb();j.s=1,j.b=1,j.a=1;var $=new Yu(j);return $}return m},[m,g]),z=we.useMemo(function(){return r.map(function(j){return"".concat(j.color," ").concat(j.percent,"%")})},[r]);return we.createElement("div",{ref:p,className:Ye("".concat(a,"-slider"),"".concat(a,"-slider-").concat(g)),onMouseDown:D,onTouchStart:D},we.createElement(yN,{prefixCls:a},we.createElement(bN,{x:A.x,y:A.y,ref:y},we.createElement(vN,{size:"small",color:_.toHexString(),prefixCls:a})),we.createElement(p7,{colors:z,type:g,prefixCls:a})))};function v7(e){return C.useMemo(function(){var t=e||{},a=t.slider;return[a||g7]},[e])}var y7={},b7=[{color:"rgb(255, 0, 0)",percent:0},{color:"rgb(255, 255, 0)",percent:17},{color:"rgb(0, 255, 0)",percent:33},{color:"rgb(0, 255, 255)",percent:50},{color:"rgb(0, 0, 255)",percent:67},{color:"rgb(255, 0, 255)",percent:83},{color:"rgb(255, 0, 0)",percent:100}],S7=C.forwardRef(function(e,t){var a=e.value,r=e.defaultValue,l=e.prefixCls,c=l===void 0?u7:l,f=e.onChange,m=e.onChangeComplete,g=e.className,p=e.style,y=e.panelRender,S=e.disabledAlpha,E=S===void 0?!1:S,T=e.disabled,O=T===void 0?!1:T,M=e.components,A=v7(M),D=Be(A,1),_=D[0],z=m7(r||c7,a),j=Be(z,2),$=j[0],V=j[1],H=C.useMemo(function(){return $.setA(1).toRgbString()},[$]),P=function(le,U){a||V(le),f?.(le,U)},q=function(le){return new Yu($.setHue(le))},Y=function(le){return new Yu($.setA(le/100))},te=function(le){P(q(le),{type:"hue",value:le})},G=function(le){P(Y(le),{type:"alpha",value:le})},K=function(le){m&&m(q(le))},J=function(le){m&&m(Y(le))},ie=Ye("".concat(c,"-panel"),g,de({},"".concat(c,"-panel-disabled"),O)),k={prefixCls:c,disabled:O,color:$},X=we.createElement(we.Fragment,null,we.createElement(h7,jt({onChange:P},k,{onChangeComplete:m})),we.createElement("div",{className:"".concat(c,"-slider-container")},we.createElement("div",{className:Ye("".concat(c,"-slider-group"),de({},"".concat(c,"-slider-group-disabled-alpha"),E))},we.createElement(_,jt({},k,{type:"hue",colors:b7,min:0,max:359,value:$.getHue(),onChange:te,onChangeComplete:K})),!E&&we.createElement(_,jt({},k,{type:"alpha",colors:[{percent:0,color:"rgba(255, 0, 4, 0)"},{percent:100,color:H}],min:0,max:100,value:$.a*100,onChange:G,onChangeComplete:J}))),we.createElement(f7,{color:$.toRgbString(),prefixCls:c})));return we.createElement("div",{className:ie,style:p,ref:t},typeof y=="function"?y(X):X)});y7.NODE_ENV!=="production"&&(S7.displayName="ColorPicker");const C7=(e,t)=>e?.replace(/[^\w/]/g,"").slice(0,t?8:6)||"",x7=(e,t)=>e?C7(e,t):"";let E7=function(){function e(t){Nr(this,e);var a;if(this.cleared=!1,t instanceof e){this.metaColor=t.metaColor.clone(),this.colors=(a=t.colors)===null||a===void 0?void 0:a.map(l=>({color:new e(l.color),percent:l.percent})),this.cleared=t.cleared;return}const r=Array.isArray(t);r&&t.length?(this.colors=t.map(({color:l,percent:c})=>({color:new e(l),percent:c})),this.metaColor=new Yu(this.colors[0].color.metaColor)):this.metaColor=new Yu(r?"":t),(!t||r&&!this.colors)&&(this.metaColor=this.metaColor.setA(0),this.cleared=!0)}return $r(e,[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return x7(this.toHexString(),this.metaColor.a<1)}},{key:"toHexString",value:function(){return this.metaColor.toHexString()}},{key:"toRgb",value:function(){return this.metaColor.toRgb()}},{key:"toRgbString",value:function(){return this.metaColor.toRgbString()}},{key:"isGradient",value:function(){return!!this.colors&&!this.cleared}},{key:"getColors",value:function(){return this.colors||[{color:this,percent:0}]}},{key:"toCssString",value:function(){const{colors:a}=this;return a?`linear-gradient(90deg, ${a.map(l=>`${l.color.toRgbString()} ${l.percent}%`).join(", ")})`:this.metaColor.toRgbString()}},{key:"equals",value:function(a){return!a||this.isGradient()!==a.isGradient()?!1:this.isGradient()?this.colors.length===a.colors.length&&this.colors.every((r,l)=>{const c=a.colors[l];return r.percent===c.percent&&r.color.equals(c.color)}):this.toHexString()===a.toHexString()}}])}();var w7={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"},T7={},O7=function(t,a){return C.createElement(oa,jt({},t,{ref:a,icon:w7}))},jw=C.forwardRef(O7);T7.NODE_ENV!=="production"&&(jw.displayName="RightOutlined");const R7=e=>({animationDuration:e,animationFillMode:"both"}),A7=e=>({animationDuration:e,animationFillMode:"both"}),Lw=(e,t,a,r,l=!1)=>{const c=l?"&":"";return{[`
|
|
457
|
+
${c}${e}-enter,
|
|
458
|
+
${c}${e}-appear
|
|
459
|
+
`]:Object.assign(Object.assign({},R7(r)),{animationPlayState:"paused"}),[`${c}${e}-leave`]:Object.assign(Object.assign({},A7(r)),{animationPlayState:"paused"}),[`
|
|
460
|
+
${c}${e}-enter${e}-enter-active,
|
|
461
|
+
${c}${e}-appear${e}-appear-active
|
|
462
|
+
`]:{animationName:t,animationPlayState:"running"},[`${c}${e}-leave${e}-leave-active`]:{animationName:a,animationPlayState:"running",pointerEvents:"none"}}},M7=new ra("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),_7=new ra("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),D7=new ra("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),N7=new ra("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),$7=new ra("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),z7=new ra("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),j7=new ra("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),L7=new ra("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),V7={"move-up":{inKeyframes:j7,outKeyframes:L7},"move-down":{inKeyframes:M7,outKeyframes:_7},"move-left":{inKeyframes:D7,outKeyframes:N7},"move-right":{inKeyframes:$7,outKeyframes:z7}},SN=(e,t)=>{const{antCls:a}=e,r=`${a}-${t}`,{inKeyframes:l,outKeyframes:c}=V7[t];return[Lw(r,l,c,e.motionDurationMid),{[`
|
|
463
|
+
${r}-enter,
|
|
464
|
+
${r}-appear
|
|
465
|
+
`]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},CN=new ra("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),xN=new ra("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),EN=new ra("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),wN=new ra("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),H7=new ra("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),B7=new ra("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),P7=new ra("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),U7=new ra("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),I7={"slide-up":{inKeyframes:CN,outKeyframes:xN},"slide-down":{inKeyframes:EN,outKeyframes:wN},"slide-left":{inKeyframes:H7,outKeyframes:B7},"slide-right":{inKeyframes:P7,outKeyframes:U7}},TN=(e,t)=>{const{antCls:a}=e,r=`${a}-${t}`,{inKeyframes:l,outKeyframes:c}=I7[t];return[Lw(r,l,c,e.motionDurationMid),{[`
|
|
466
|
+
${r}-enter,
|
|
467
|
+
${r}-appear
|
|
468
|
+
`]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},F7=new ra("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),k7=new ra("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),ON=new ra("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),RN=new ra("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),G7=new ra("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),q7=new ra("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),Y7=new ra("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),X7=new ra("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),W7=new ra("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),Z7=new ra("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),K7=new ra("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),Q7=new ra("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),J7={zoom:{inKeyframes:F7,outKeyframes:k7},"zoom-big":{inKeyframes:ON,outKeyframes:RN},"zoom-big-fast":{inKeyframes:ON,outKeyframes:RN},"zoom-left":{inKeyframes:Y7,outKeyframes:X7},"zoom-right":{inKeyframes:W7,outKeyframes:Z7},"zoom-up":{inKeyframes:G7,outKeyframes:q7},"zoom-down":{inKeyframes:K7,outKeyframes:Q7}},AN=(e,t)=>{const{antCls:a}=e,r=`${a}-${t}`,{inKeyframes:l,outKeyframes:c}=J7[t];return[Lw(r,l,c,t==="zoom-big-fast"?e.motionDurationFast:e.motionDurationMid),{[`
|
|
469
|
+
${r}-enter,
|
|
470
|
+
${r}-appear
|
|
471
|
+
`]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},e9=(e,t)=>{const{r:a,g:r,b:l,a:c}=e.toRgb(),f=new Yu(e.toRgbString()).onBackground(t).toHsv();return c<=.5?f.v>.5:a*.299+r*.587+l*.114>192},MN=e=>{const{paddingInline:t,onlyIconSize:a}=e;return Ma(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:0,buttonIconOnlyFontSize:a})},_N=e=>{var t,a,r,l,c,f;const m=(t=e.contentFontSize)!==null&&t!==void 0?t:e.fontSize,g=(a=e.contentFontSizeSM)!==null&&a!==void 0?a:e.fontSize,p=(r=e.contentFontSizeLG)!==null&&r!==void 0?r:e.fontSizeLG,y=(l=e.contentLineHeight)!==null&&l!==void 0?l:KS(m),S=(c=e.contentLineHeightSM)!==null&&c!==void 0?c:KS(g),E=(f=e.contentLineHeightLG)!==null&&f!==void 0?f:KS(p),T=e9(new E7(e.colorBgSolid),"#fff")?"#000":"#fff",O=Zc.reduce((M,A)=>Object.assign(Object.assign({},M),{[`${A}ShadowColor`]:`0 ${st(e.controlOutlineWidth)} 0 ${Fv(e[`${A}1`],e.colorBgContainer)}`}),{});return Object.assign(Object.assign({},O),{fontWeight:400,defaultShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`,primaryShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`,dangerShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`,primaryColor:e.colorTextLightSolid,dangerColor:e.colorTextLightSolid,borderColorDisabled:e.colorBorder,defaultGhostColor:e.colorBgContainer,ghostBg:"transparent",defaultGhostBorderColor:e.colorBgContainer,paddingInline:e.paddingContentHorizontal-e.lineWidth,paddingInlineLG:e.paddingContentHorizontal-e.lineWidth,paddingInlineSM:8-e.lineWidth,onlyIconSize:"inherit",onlyIconSizeSM:"inherit",onlyIconSizeLG:"inherit",groupBorderColor:e.colorPrimaryHover,linkHoverBg:"transparent",textTextColor:e.colorText,textTextHoverColor:e.colorText,textTextActiveColor:e.colorText,textHoverBg:e.colorFillTertiary,defaultColor:e.colorText,defaultBg:e.colorBgContainer,defaultBorderColor:e.colorBorder,defaultBorderColorDisabled:e.colorBorder,defaultHoverBg:e.colorBgContainer,defaultHoverColor:e.colorPrimaryHover,defaultHoverBorderColor:e.colorPrimaryHover,defaultActiveBg:e.colorBgContainer,defaultActiveColor:e.colorPrimaryActive,defaultActiveBorderColor:e.colorPrimaryActive,solidTextColor:T,contentFontSize:m,contentFontSizeSM:g,contentFontSizeLG:p,contentLineHeight:y,contentLineHeightSM:S,contentLineHeightLG:E,paddingBlock:Math.max((e.controlHeight-m*y)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-g*S)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-p*E)/2-e.lineWidth,0)})},t9=e=>{const{componentCls:t,iconCls:a,fontWeight:r,opacityLoading:l,motionDurationSlow:c,motionEaseInOut:f,marginXS:m,calc:g}=e;return{[t]:{outline:"none",position:"relative",display:"inline-flex",gap:e.marginXS,alignItems:"center",justifyContent:"center",fontWeight:r,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:`${st(e.lineWidth)} ${e.lineType} transparent`,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",color:e.colorText,"&:disabled > *":{pointerEvents:"none"},[`${t}-icon > svg`]:JS(),"> a":{color:"currentColor"},"&:not(:disabled)":dw(e),[`&${t}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${t}-two-chinese-chars > *:not(${a})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},[`&${t}-icon-only`]:{paddingInline:0,[`&${t}-compact-item`]:{flex:"none"},[`&${t}-round`]:{width:"auto"}},[`&${t}-loading`]:{opacity:l,cursor:"default"},[`${t}-loading-icon`]:{transition:["width","opacity","margin"].map(p=>`${p} ${c} ${f}`).join(",")},[`&:not(${t}-icon-end)`]:{[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineEnd:g(m).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineEnd:0},"&-leave-start":{marginInlineEnd:0},"&-leave-active":{marginInlineEnd:g(m).mul(-1).equal()}}},"&-icon-end":{flexDirection:"row-reverse",[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineStart:g(m).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineStart:0},"&-leave-start":{marginInlineStart:0},"&-leave-active":{marginInlineStart:g(m).mul(-1).equal()}}}}}},DN=(e,t,a)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":a}}),n9=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),a9=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.calc(e.controlHeight).div(2).equal(),paddingInlineEnd:e.calc(e.controlHeight).div(2).equal()}),r9=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),c1=(e,t,a,r,l,c,f,m)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:a||void 0,background:t,borderColor:r||void 0,boxShadow:"none"},DN(e,Object.assign({background:t},f),Object.assign({background:t},m))),{"&:disabled":{cursor:"not-allowed",color:l||void 0,borderColor:c||void 0}})}),i9=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},r9(e))}),o9=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),f1=(e,t,a,r)=>{const c=r&&["link","text"].includes(r)?o9:i9;return Object.assign(Object.assign({},c(e)),DN(e.componentCls,t,a))},d1=(e,t,a,r,l)=>({[`&${e.componentCls}-variant-solid`]:Object.assign({color:t,background:a},f1(e,r,l))}),h1=(e,t,a,r,l)=>({[`&${e.componentCls}-variant-outlined, &${e.componentCls}-variant-dashed`]:Object.assign({borderColor:t,background:a},f1(e,r,l))}),m1=e=>({[`&${e.componentCls}-variant-dashed`]:{borderStyle:"dashed"}}),p1=(e,t,a,r)=>({[`&${e.componentCls}-variant-filled`]:Object.assign({boxShadow:"none",background:t},f1(e,a,r))}),Xs=(e,t,a,r,l)=>({[`&${e.componentCls}-variant-${a}`]:Object.assign({color:t,boxShadow:"none"},f1(e,r,l,a))}),l9=e=>{const{componentCls:t}=e;return Zc.reduce((a,r)=>{const l=e[`${r}6`],c=e[`${r}1`],f=e[`${r}5`],m=e[`${r}2`],g=e[`${r}3`],p=e[`${r}7`];return Object.assign(Object.assign({},a),{[`&${t}-color-${r}`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:l,boxShadow:e[`${r}ShadowColor`]},d1(e,e.colorTextLightSolid,l,{background:f},{background:p})),h1(e,l,e.colorBgContainer,{color:f,borderColor:f,background:e.colorBgContainer},{color:p,borderColor:p,background:e.colorBgContainer})),m1(e)),p1(e,c,{background:m},{background:g})),Xs(e,l,"link",{color:f},{color:p})),Xs(e,l,"text",{color:f,background:c},{color:p,background:g}))})},{})},s9=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.defaultColor,boxShadow:e.defaultShadow},d1(e,e.solidTextColor,e.colorBgSolid,{color:e.solidTextColor,background:e.colorBgSolidHover},{color:e.solidTextColor,background:e.colorBgSolidActive})),m1(e)),p1(e,e.colorFillTertiary,{background:e.colorFillSecondary},{background:e.colorFill})),c1(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)),Xs(e,e.textTextColor,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),u9=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorPrimary,boxShadow:e.primaryShadow},h1(e,e.colorPrimary,e.colorBgContainer,{color:e.colorPrimaryTextHover,borderColor:e.colorPrimaryHover,background:e.colorBgContainer},{color:e.colorPrimaryTextActive,borderColor:e.colorPrimaryActive,background:e.colorBgContainer})),m1(e)),p1(e,e.colorPrimaryBg,{background:e.colorPrimaryBgHover},{background:e.colorPrimaryBorder})),Xs(e,e.colorPrimaryText,"text",{color:e.colorPrimaryTextHover,background:e.colorPrimaryBg},{color:e.colorPrimaryTextActive,background:e.colorPrimaryBorder})),Xs(e,e.colorPrimaryText,"link",{color:e.colorPrimaryTextHover,background:e.linkHoverBg},{color:e.colorPrimaryTextActive})),c1(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),c9=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorError,boxShadow:e.dangerShadow},d1(e,e.dangerColor,e.colorError,{background:e.colorErrorHover},{background:e.colorErrorActive})),h1(e,e.colorError,e.colorBgContainer,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),m1(e)),p1(e,e.colorErrorBg,{background:e.colorErrorBgFilledHover},{background:e.colorErrorBgActive})),Xs(e,e.colorError,"text",{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBgActive})),Xs(e,e.colorError,"link",{color:e.colorErrorHover},{color:e.colorErrorActive})),c1(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),f9=e=>Object.assign(Object.assign({},Xs(e,e.colorLink,"link",{color:e.colorLinkHover},{color:e.colorLinkActive})),c1(e.componentCls,e.ghostBg,e.colorInfo,e.colorInfo,e.colorTextDisabled,e.colorBorder,{color:e.colorInfoHover,borderColor:e.colorInfoHover},{color:e.colorInfoActive,borderColor:e.colorInfoActive})),d9=e=>{const{componentCls:t}=e;return Object.assign({[`${t}-color-default`]:s9(e),[`${t}-color-primary`]:u9(e),[`${t}-color-dangerous`]:c9(e),[`${t}-color-link`]:f9(e)},l9(e))},h9=e=>Object.assign(Object.assign(Object.assign(Object.assign({},h1(e,e.defaultBorderColor,e.defaultBg,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg})),Xs(e,e.textTextColor,"text",{color:e.textTextHoverColor,background:e.textHoverBg},{color:e.textTextActiveColor,background:e.colorBgTextActive})),d1(e,e.primaryColor,e.colorPrimary,{background:e.colorPrimaryHover,color:e.primaryColor},{background:e.colorPrimaryActive,color:e.primaryColor})),Xs(e,e.colorLink,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),Vw=(e,t="")=>{const{componentCls:a,controlHeight:r,fontSize:l,borderRadius:c,buttonPaddingHorizontal:f,iconCls:m,buttonPaddingVertical:g,buttonIconOnlyFontSize:p}=e;return[{[t]:{fontSize:l,height:r,padding:`${st(g)} ${st(f)}`,borderRadius:c,[`&${a}-icon-only`]:{width:r,[m]:{fontSize:p}}}},{[`${a}${a}-circle${t}`]:n9(e)},{[`${a}${a}-round${t}`]:a9(e)}]},m9=e=>{const t=Ma(e,{fontSize:e.contentFontSize});return Vw(t,e.componentCls)},p9=e=>{const t=Ma(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:0,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return Vw(t,`${e.componentCls}-sm`)},g9=e=>{const t=Ma(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:0,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return Vw(t,`${e.componentCls}-lg`)},v9=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},y9=bi("Button",e=>{const t=MN(e);return[t9(t),m9(t),p9(t),g9(t),v9(t),d9(t),h9(t),i7(t)]},_N,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function b9(e,t,a){const{focusElCls:r,focus:l,borderElCls:c}=a,f=c?"> *":"",m=["hover",l?"focus":null,"active"].filter(Boolean).map(g=>`&:${g} ${f}`).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},"&-item":Object.assign(Object.assign({[m]:{zIndex:2}},r?{[`&${r}`]:{zIndex:2}}:{}),{[`&[disabled] ${f}`]:{zIndex:0}})}}function S9(e,t,a){const{borderElCls:r}=a,l=r?`> ${r}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${l}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${l}, &${e}-sm ${l}, &${e}-lg ${l}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${l}, &${e}-sm ${l}, &${e}-lg ${l}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function Hw(e,t={focus:!0}){const{componentCls:a}=e,r=`${a}-compact`;return{[r]:Object.assign(Object.assign({},b9(e,r,t)),S9(a,r,t))}}function C9(e,t){return{[`&-item:not(${t}-last-item)`]:{marginBottom:e.calc(e.lineWidth).mul(-1).equal()},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function x9(e,t){return{[`&-item:not(${t}-first-item):not(${t}-last-item)`]:{borderRadius:0},[`&-item${t}-first-item:not(${t}-last-item)`]:{[`&, &${e}-sm, &${e}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${t}-last-item:not(${t}-first-item)`]:{[`&, &${e}-sm, &${e}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}}function E9(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},C9(e,t)),x9(e.componentCls,t))}}const w9=e=>{const{componentCls:t,colorPrimaryHover:a,lineWidth:r,calc:l}=e,c=l(r).mul(-1).equal(),f=m=>{const g=`${t}-compact${m?"-vertical":""}-item${t}-primary:not([disabled])`;return{[`${g} + ${g}::before`]:{position:"absolute",top:m?c:0,insetInlineStart:m?0:c,backgroundColor:a,content:'""',width:m?"100%":r,height:m?r:"100%"}}};return Object.assign(Object.assign({},f()),f(!0))},T9=SD(["Button","compact"],e=>{const t=MN(e);return[Hw(t),E9(t),w9(t)]},_N);var g1={},O9=function(e,t){var a={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(a[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,r=Object.getOwnPropertySymbols(e);l<r.length;l++)t.indexOf(r[l])<0&&Object.prototype.propertyIsEnumerable.call(e,r[l])&&(a[r[l]]=e[r[l]]);return a};function R9(e){if(typeof e=="object"&&e){let t=e?.delay;return t=!Number.isNaN(t)&&typeof t=="number"?t:0,{loading:t<=0,delay:t}}return{loading:!!e,delay:0}}const A9={default:["default","outlined"],primary:["primary","solid"],dashed:["default","dashed"],link:["link","link"],text:["default","text"]},as=we.forwardRef((e,t)=>{var a,r;const{loading:l=!1,prefixCls:c,color:f,variant:m,type:g,danger:p=!1,shape:y="default",size:S,styles:E,disabled:T,className:O,rootClassName:M,children:A,icon:D,iconPosition:_="start",ghost:z=!1,block:j=!1,htmlType:$="button",classNames:V,style:H={},autoInsertSpace:P,autoFocus:q}=e,Y=O9(e,["loading","prefixCls","color","variant","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","iconPosition","ghost","block","htmlType","classNames","style","autoInsertSpace","autoFocus"]),te=g||"default",{button:G}=we.useContext(ia),[K,J]=C.useMemo(()=>{if(f&&m)return[f,m];if(g||p){const et=A9[te]||[];return p?["danger",et[1]]:et}return G?.color&&G?.variant?[G.color,G.variant]:["default","outlined"]},[g,f,m,p,G?.variant,G?.color]),k=K==="danger"?"dangerous":K,{getPrefixCls:X,direction:Q,autoInsertSpace:le,className:U,style:F,classNames:ne,styles:ae}=es("button"),oe=(a=P??le)!==null&&a!==void 0?a:!0,fe=X("btn",c),[ye,$e,ze]=y9(fe),Fe=C.useContext(Wc),Ke=T??Fe,Oe=C.useContext(uN),me=C.useMemo(()=>R9(l),[l]),[Re,Pe]=C.useState(me.loading),[be,Ce]=C.useState(!1),_e=C.useRef(null),je=Ov(t,_e),Ue=C.Children.count(A)===1&&!D&&!u1(J),nt=C.useRef(!0);we.useEffect(()=>(nt.current=!1,()=>{nt.current=!0}),[]),C.useLayoutEffect(()=>{let et=null;me.delay>0?et=setTimeout(()=>{et=null,Pe(!0)},me.delay):Pe(me.loading);function lt(){et&&(clearTimeout(et),et=null)}return lt},[me.delay,me.loading]),C.useEffect(()=>{if(!_e.current||!oe)return;const et=_e.current.textContent||"";Ue&&_w(et)?be||Ce(!0):be&&Ce(!1)}),C.useEffect(()=>{q&&_e.current&&_e.current.focus()},[]);const We=we.useCallback(et=>{var lt;if(Re||Ke){et.preventDefault();return}(lt=e.onClick)===null||lt===void 0||lt.call(e,("href"in e,et))},[e.onClick,Re,Ke]);if(g1.NODE_ENV!=="production"){const et=Ba("Button");g1.NODE_ENV!=="production"&&et(!(typeof D=="string"&&D.length>2),"breaking",`\`icon\` is using ReactNode instead of string naming in v4. Please check \`${D}\` at https://ant.design/components/icon`),g1.NODE_ENV!=="production"&&et(!(z&&u1(J)),"usage","`link` or `text` button can't be a `ghost` button.")}const{compactSize:it,compactItemClassnames:rt}=Wv(fe,Q),Ge={large:"lg",small:"sm",middle:void 0},Rt=qu(et=>{var lt,I;return(I=(lt=S??it)!==null&<!==void 0?lt:Oe)!==null&&I!==void 0?I:et}),wt=Rt&&(r=Ge[Rt])!==null&&r!==void 0?r:"",At=Re?"loading":D,$t=Md(Y,["navigate"]),ht=Ye(fe,$e,ze,{[`${fe}-${y}`]:y!=="default"&&y,[`${fe}-${te}`]:te,[`${fe}-dangerous`]:p,[`${fe}-color-${k}`]:k,[`${fe}-variant-${J}`]:J,[`${fe}-${wt}`]:wt,[`${fe}-icon-only`]:!A&&A!==0&&!!At,[`${fe}-background-ghost`]:z&&!u1(J),[`${fe}-loading`]:Re,[`${fe}-two-chinese-chars`]:be&&oe&&!Re,[`${fe}-block`]:j,[`${fe}-rtl`]:Q==="rtl",[`${fe}-icon-end`]:_==="end"},rt,O,M,U),kt=Object.assign(Object.assign({},F),H),Vt=Ye(V?.icon,ne.icon),Wt=Object.assign(Object.assign({},E?.icon||{}),ae.icon||{}),Tt=D&&!Re?we.createElement(Dw,{prefixCls:fe,className:Vt,style:Wt},D):l&&typeof l=="object"&&l.icon?we.createElement(Dw,{prefixCls:fe,className:Vt,style:Wt},l.icon):we.createElement(r7,{existIcon:!!D,prefixCls:fe,loading:Re,mount:nt.current}),ut=A||A===0?a7(A,Ue&&oe):null;if($t.href!==void 0)return ye(we.createElement("a",Object.assign({},$t,{className:Ye(ht,{[`${fe}-disabled`]:Ke}),href:Ke?void 0:$t.href,style:kt,onClick:We,ref:je,tabIndex:Ke?-1:0}),Tt,ut));let St=we.createElement("button",Object.assign({},Y,{type:$,className:ht,style:kt,onClick:We,disabled:Ke,ref:je}),Tt,ut,rt&&we.createElement(T9,{prefixCls:fe}));return u1(J)||(St=we.createElement(oN,{component:"Button",disabled:Re},St)),ye(St)});as.Group=t7,as.__ANT_BUTTON=!0,g1.NODE_ENV!=="production"&&(as.displayName="Button");var NN=C.createContext(null),M9={},$N=[];function _9(e,t){var a=C.useState(function(){if(!yi())return null;var O=document.createElement("div");return M9.NODE_ENV!=="production"&&t&&O.setAttribute("data-debug",t),O}),r=Be(a,1),l=r[0],c=C.useRef(!1),f=C.useContext(NN),m=C.useState($N),g=Be(m,2),p=g[0],y=g[1],S=f||(c.current?void 0:function(O){y(function(M){var A=[O].concat(Nt(M));return A})});function E(){l.parentElement||document.body.appendChild(l),c.current=!0}function T(){var O;(O=l.parentElement)===null||O===void 0||O.removeChild(l),c.current=!1}return Zn(function(){return e?f?f(E):E():T(),T},[e]),Zn(function(){p.length&&(p.forEach(function(O){return O()}),y($N))},[p]),[l,S]}function D9(e){var t="rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)),a=document.createElement("div");a.id=t;var r=a.style;r.position="absolute",r.left="0",r.top="0",r.width="100px",r.height="100px",r.overflow="scroll";var l,c;if(e){var f=getComputedStyle(e);r.scrollbarColor=f.scrollbarColor,r.scrollbarWidth=f.scrollbarWidth;var m=getComputedStyle(e,"::-webkit-scrollbar"),g=parseInt(m.width,10),p=parseInt(m.height,10);try{var y=g?"width: ".concat(m.width,";"):"",S=p?"height: ".concat(m.height,";"):"";Iu(`
|
|
472
|
+
#`.concat(t,`::-webkit-scrollbar {
|
|
473
|
+
`).concat(y,`
|
|
474
|
+
`).concat(S,`
|
|
475
|
+
}`),t)}catch(O){console.error(O),l=g,c=p}}document.body.appendChild(a);var E=e&&l&&!isNaN(l)?l:a.offsetWidth-a.clientWidth,T=e&&c&&!isNaN(c)?c:a.offsetHeight-a.clientHeight;return document.body.removeChild(a),Dv(t),{width:E,height:T}}function N9(e){return typeof document>"u"||!e||!(e instanceof Element)?{width:0,height:0}:D9(e)}function $9(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var z9="rc-util-locker-".concat(Date.now()),zN=0;function j9(e){var t=!!e,a=C.useState(function(){return zN+=1,"".concat(z9,"_").concat(zN)}),r=Be(a,1),l=r[0];Zn(function(){if(t){var c=N9(document.body).width,f=$9();Iu(`
|
|
476
|
+
html body {
|
|
477
|
+
overflow-y: hidden;
|
|
478
|
+
`.concat(f?"width: calc(100% - ".concat(c,"px);"):"",`
|
|
479
|
+
}`),l)}else Dv(l);return function(){Dv(l)}},[t,l])}var L9=!1;function V9(e){return L9}var jN={},LN=function(t){return t===!1?!1:!yi()||!t?null:typeof t=="string"?document.querySelector(t):typeof t=="function"?t():t},Bw=C.forwardRef(function(e,t){var a=e.open,r=e.autoLock,l=e.getContainer,c=e.debug,f=e.autoDestroy,m=f===void 0?!0:f,g=e.children,p=C.useState(a),y=Be(p,2),S=y[0],E=y[1],T=S||a;jN.NODE_ENV!=="production"&&Dn(yi()||!a,"Portal only work in client side. Please call 'useEffect' to show Portal instead default render in SSR."),C.useEffect(function(){(m||a)&&E(a)},[a,m]);var O=C.useState(function(){return LN(l)}),M=Be(O,2),A=M[0],D=M[1];C.useEffect(function(){var G=LN(l);D(G??null)});var _=_9(T&&!A,c),z=Be(_,2),j=z[0],$=z[1],V=A??j;j9(r&&a&&yi()&&(V===j||V===document.body));var H=null;if(g&&Rv(g)&&t){var P=g;H=P.ref}var q=Ov(H,t);if(!T||!yi()||A===void 0)return null;var Y=V===!1||V9(),te=g;return t&&(te=C.cloneElement(g,{ref:q})),C.createElement(NN.Provider,{value:$},Y?te:bm.createPortal(te,V))});jN.NODE_ENV!=="production"&&(Bw.displayName="Portal");var VN={};function H9(){var e=ge({},OS);return e.useId}var HN=0,BN=H9();const PN=BN?function(t){var a=BN();return t||(VN.NODE_ENV==="test"?"test-id":a)}:function(t){var a=C.useState("ssr-id"),r=Be(a,2),l=r[0],c=r[1];return C.useEffect(function(){var f=HN;HN+=1,c("rc_unique_".concat(f))},[]),t||(VN.NODE_ENV==="test"?"test-id":l)};var _d="RC_FORM_INTERNAL_HOOKS",ba=function(){Dn(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},jm=C.createContext({getFieldValue:ba,getFieldsValue:ba,getFieldError:ba,getFieldWarning:ba,getFieldsError:ba,isFieldsTouched:ba,isFieldTouched:ba,isFieldValidating:ba,isFieldsValidating:ba,resetFields:ba,setFields:ba,setFieldValue:ba,setFieldsValue:ba,validateFields:ba,submit:ba,getInternalHooks:function(){return ba(),{dispatch:ba,initEntityValue:ba,registerField:ba,useSubscribe:ba,setInitialValues:ba,destroyForm:ba,setCallbacks:ba,registerWatch:ba,getFields:ba,setValidateMessages:ba,setPreserve:ba,getInitialValue:ba}}}),v1=C.createContext(null);function Pw(e){return e==null?[]:Array.isArray(e)?e:[e]}function B9(e){return e&&!!e._init}function Uw(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var Iw=Uw();function P9(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function U9(e,t,a){if(SE())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var l=new(e.bind.apply(e,r));return a&&Av(l,a.prototype),l}function Fw(e){var t=typeof Map=="function"?new Map:void 0;return Fw=function(r){if(r===null||!P9(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(t!==void 0){if(t.has(r))return t.get(r);t.set(r,l)}function l(){return U9(r,arguments,Mv(this).constructor)}return l.prototype=Object.create(r.prototype,{constructor:{value:l,enumerable:!1,writable:!0,configurable:!0}}),Av(l,r)},Fw(e)}var UN={},I9=/%[sdj%]/g,IN=function(){};typeof process<"u"&&UN&&UN.NODE_ENV!=="production"&&typeof window<"u"&&typeof document<"u"&&(IN=function(t,a){typeof console<"u"&&console.warn&&typeof ASYNC_VALIDATOR_NO_WARNING>"u"&&a.every(function(r){return typeof r=="string"})&&console.warn(t,a)});function kw(e){if(!e||!e.length)return null;var t={};return e.forEach(function(a){var r=a.field;t[r]=t[r]||[],t[r].push(a)}),t}function Lo(e){for(var t=arguments.length,a=new Array(t>1?t-1:0),r=1;r<t;r++)a[r-1]=arguments[r];var l=0,c=a.length;if(typeof e=="function")return e.apply(null,a);if(typeof e=="string"){var f=e.replace(I9,function(m){if(m==="%%")return"%";if(l>=c)return m;switch(m){case"%s":return String(a[l++]);case"%d":return Number(a[l++]);case"%j":try{return JSON.stringify(a[l++])}catch{return"[Circular]"}break;default:return m}});return f}return e}function F9(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function zr(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||F9(t)&&typeof e=="string"&&!e)}function k9(e,t,a){var r=[],l=0,c=e.length;function f(m){r.push.apply(r,Nt(m||[])),l++,l===c&&a(r)}e.forEach(function(m){t(m,f)})}function FN(e,t,a){var r=0,l=e.length;function c(f){if(f&&f.length){a(f);return}var m=r;r=r+1,m<l?t(e[m],c):a([])}c([])}function G9(e){var t=[];return Object.keys(e).forEach(function(a){t.push.apply(t,Nt(e[a]||[]))}),t}var kN=function(e){Gc(a,e);var t=qc(a);function a(r,l){var c;return Nr(this,a),c=t.call(this,"Async Validation Error"),de(Nn(c),"errors",void 0),de(Nn(c),"fields",void 0),c.errors=r,c.fields=l,c}return $r(a)}(Fw(Error));function q9(e,t,a,r,l){if(t.first){var c=new Promise(function(E,T){var O=function(D){return r(D),D.length?T(new kN(D,kw(D))):E(l)},M=G9(e);FN(M,a,O)});return c.catch(function(E){return E}),c}var f=t.firstFields===!0?Object.keys(e):t.firstFields||[],m=Object.keys(e),g=m.length,p=0,y=[],S=new Promise(function(E,T){var O=function(A){if(y.push.apply(y,A),p++,p===g)return r(y),y.length?T(new kN(y,kw(y))):E(l)};m.length||(r(y),E(l)),m.forEach(function(M){var A=e[M];f.indexOf(M)!==-1?FN(A,a,O):k9(A,a,O)})});return S.catch(function(E){return E}),S}function Y9(e){return!!(e&&e.message!==void 0)}function X9(e,t){for(var a=e,r=0;r<t.length;r++){if(a==null)return a;a=a[t[r]]}return a}function GN(e,t){return function(a){var r;return e.fullFields?r=X9(t,e.fullFields):r=t[a.field||e.fullField],Y9(a)?(a.field=a.field||e.fullField,a.fieldValue=r,a):{message:typeof a=="function"?a():a,fieldValue:r,field:a.field||e.fullField}}}function qN(e,t){if(t){for(var a in t)if(t.hasOwnProperty(a)){var r=t[a];Xt(r)==="object"&&Xt(e[a])==="object"?e[a]=ge(ge({},e[a]),r):e[a]=r}}return e}var Lm="enum",W9=function(t,a,r,l,c){t[Lm]=Array.isArray(t[Lm])?t[Lm]:[],t[Lm].indexOf(a)===-1&&l.push(Lo(c.messages[Lm],t.fullField,t[Lm].join(", ")))},Z9=function(t,a,r,l,c){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(a)||l.push(Lo(c.messages.pattern.mismatch,t.fullField,a,t.pattern));else if(typeof t.pattern=="string"){var f=new RegExp(t.pattern);f.test(a)||l.push(Lo(c.messages.pattern.mismatch,t.fullField,a,t.pattern))}}},K9=function(t,a,r,l,c){var f=typeof t.len=="number",m=typeof t.min=="number",g=typeof t.max=="number",p=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,y=a,S=null,E=typeof a=="number",T=typeof a=="string",O=Array.isArray(a);if(E?S="number":T?S="string":O&&(S="array"),!S)return!1;O&&(y=a.length),T&&(y=a.replace(p,"_").length),f?y!==t.len&&l.push(Lo(c.messages[S].len,t.fullField,t.len)):m&&!g&&y<t.min?l.push(Lo(c.messages[S].min,t.fullField,t.min)):g&&!m&&y>t.max?l.push(Lo(c.messages[S].max,t.fullField,t.max)):m&&g&&(y<t.min||y>t.max)&&l.push(Lo(c.messages[S].range,t.fullField,t.min,t.max))},YN=function(t,a,r,l,c,f){t.required&&(!r.hasOwnProperty(t.field)||zr(a,f||t.type))&&l.push(Lo(c.messages.required,t.fullField))},y1;const Q9=function(){if(y1)return y1;var e="[a-fA-F\\d:]",t=function(V){return V&&V.includeBoundaries?"(?:(?<=\\s|^)(?=".concat(e,")|(?<=").concat(e,")(?=\\s|$))"):""},a="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",r="[a-fA-F\\d]{1,4}",l=["(?:".concat(r,":){7}(?:").concat(r,"|:)"),"(?:".concat(r,":){6}(?:").concat(a,"|:").concat(r,"|:)"),"(?:".concat(r,":){5}(?::").concat(a,"|(?::").concat(r,"){1,2}|:)"),"(?:".concat(r,":){4}(?:(?::").concat(r,"){0,1}:").concat(a,"|(?::").concat(r,"){1,3}|:)"),"(?:".concat(r,":){3}(?:(?::").concat(r,"){0,2}:").concat(a,"|(?::").concat(r,"){1,4}|:)"),"(?:".concat(r,":){2}(?:(?::").concat(r,"){0,3}:").concat(a,"|(?::").concat(r,"){1,5}|:)"),"(?:".concat(r,":){1}(?:(?::").concat(r,"){0,4}:").concat(a,"|(?::").concat(r,"){1,6}|:)"),"(?::(?:(?::".concat(r,"){0,5}:").concat(a,"|(?::").concat(r,"){1,7}|:))")],c="(?:%[0-9a-zA-Z]{1,})?",f="(?:".concat(l.join("|"),")").concat(c),m=new RegExp("(?:^".concat(a,"$)|(?:^").concat(f,"$)")),g=new RegExp("^".concat(a,"$")),p=new RegExp("^".concat(f,"$")),y=function(V){return V&&V.exact?m:new RegExp("(?:".concat(t(V)).concat(a).concat(t(V),")|(?:").concat(t(V)).concat(f).concat(t(V),")"),"g")};y.v4=function($){return $&&$.exact?g:new RegExp("".concat(t($)).concat(a).concat(t($)),"g")},y.v6=function($){return $&&$.exact?p:new RegExp("".concat(t($)).concat(f).concat(t($)),"g")};var S="(?:(?:[a-z]+:)?//)",E="(?:\\S+(?::\\S*)?@)?",T=y.v4().source,O=y.v6().source,M="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",A="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",D="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",_="(?::\\d{2,5})?",z='(?:[/?#][^\\s"]*)?',j="(?:".concat(S,"|www\\.)").concat(E,"(?:localhost|").concat(T,"|").concat(O,"|").concat(M).concat(A).concat(D,")").concat(_).concat(z);return y1=new RegExp("(?:^".concat(j,"$)"),"i"),y1};var XN={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},Zv={integer:function(t){return Zv.number(t)&&parseInt(t,10)===t},float:function(t){return Zv.number(t)&&!Zv.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch{return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return Xt(t)==="object"&&!Zv.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(XN.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(Q9())},hex:function(t){return typeof t=="string"&&!!t.match(XN.hex)}},J9=function(t,a,r,l,c){if(t.required&&a===void 0){YN(t,a,r,l,c);return}var f=["integer","float","array","regexp","object","method","email","number","date","url","hex"],m=t.type;f.indexOf(m)>-1?Zv[m](a)||l.push(Lo(c.messages.types[m],t.fullField,t.type)):m&&Xt(a)!==t.type&&l.push(Lo(c.messages.types[m],t.fullField,t.type))},eU=function(t,a,r,l,c){(/^\s+$/.test(a)||a==="")&&l.push(Lo(c.messages.whitespace,t.fullField))};const Hn={required:YN,whitespace:eU,type:J9,range:K9,enum:W9,pattern:Z9};var tU=function(t,a,r,l,c){var f=[],m=t.required||!t.required&&l.hasOwnProperty(t.field);if(m){if(zr(a)&&!t.required)return r();Hn.required(t,a,l,f,c)}r(f)},nU=function(t,a,r,l,c){var f=[],m=t.required||!t.required&&l.hasOwnProperty(t.field);if(m){if(a==null&&!t.required)return r();Hn.required(t,a,l,f,c,"array"),a!=null&&(Hn.type(t,a,l,f,c),Hn.range(t,a,l,f,c))}r(f)},aU=function(t,a,r,l,c){var f=[],m=t.required||!t.required&&l.hasOwnProperty(t.field);if(m){if(zr(a)&&!t.required)return r();Hn.required(t,a,l,f,c),a!==void 0&&Hn.type(t,a,l,f,c)}r(f)},rU=function(t,a,r,l,c){var f=[],m=t.required||!t.required&&l.hasOwnProperty(t.field);if(m){if(zr(a,"date")&&!t.required)return r();if(Hn.required(t,a,l,f,c),!zr(a,"date")){var g;a instanceof Date?g=a:g=new Date(a),Hn.type(t,g,l,f,c),g&&Hn.range(t,g.getTime(),l,f,c)}}r(f)},iU="enum",oU=function(t,a,r,l,c){var f=[],m=t.required||!t.required&&l.hasOwnProperty(t.field);if(m){if(zr(a)&&!t.required)return r();Hn.required(t,a,l,f,c),a!==void 0&&Hn[iU](t,a,l,f,c)}r(f)},lU=function(t,a,r,l,c){var f=[],m=t.required||!t.required&&l.hasOwnProperty(t.field);if(m){if(zr(a)&&!t.required)return r();Hn.required(t,a,l,f,c),a!==void 0&&(Hn.type(t,a,l,f,c),Hn.range(t,a,l,f,c))}r(f)},sU=function(t,a,r,l,c){var f=[],m=t.required||!t.required&&l.hasOwnProperty(t.field);if(m){if(zr(a)&&!t.required)return r();Hn.required(t,a,l,f,c),a!==void 0&&(Hn.type(t,a,l,f,c),Hn.range(t,a,l,f,c))}r(f)},uU=function(t,a,r,l,c){var f=[],m=t.required||!t.required&&l.hasOwnProperty(t.field);if(m){if(zr(a)&&!t.required)return r();Hn.required(t,a,l,f,c),a!==void 0&&Hn.type(t,a,l,f,c)}r(f)},cU=function(t,a,r,l,c){var f=[],m=t.required||!t.required&&l.hasOwnProperty(t.field);if(m){if(a===""&&(a=void 0),zr(a)&&!t.required)return r();Hn.required(t,a,l,f,c),a!==void 0&&(Hn.type(t,a,l,f,c),Hn.range(t,a,l,f,c))}r(f)},fU=function(t,a,r,l,c){var f=[],m=t.required||!t.required&&l.hasOwnProperty(t.field);if(m){if(zr(a)&&!t.required)return r();Hn.required(t,a,l,f,c),a!==void 0&&Hn.type(t,a,l,f,c)}r(f)},dU=function(t,a,r,l,c){var f=[],m=t.required||!t.required&&l.hasOwnProperty(t.field);if(m){if(zr(a,"string")&&!t.required)return r();Hn.required(t,a,l,f,c),zr(a,"string")||Hn.pattern(t,a,l,f,c)}r(f)},hU=function(t,a,r,l,c){var f=[],m=t.required||!t.required&&l.hasOwnProperty(t.field);if(m){if(zr(a)&&!t.required)return r();Hn.required(t,a,l,f,c),zr(a)||Hn.type(t,a,l,f,c)}r(f)},mU=function(t,a,r,l,c){var f=[],m=Array.isArray(a)?"array":Xt(a);Hn.required(t,a,l,f,c,m),r(f)},pU=function(t,a,r,l,c){var f=[],m=t.required||!t.required&&l.hasOwnProperty(t.field);if(m){if(zr(a,"string")&&!t.required)return r();Hn.required(t,a,l,f,c,"string"),zr(a,"string")||(Hn.type(t,a,l,f,c),Hn.range(t,a,l,f,c),Hn.pattern(t,a,l,f,c),t.whitespace===!0&&Hn.whitespace(t,a,l,f,c))}r(f)},Gw=function(t,a,r,l,c){var f=t.type,m=[],g=t.required||!t.required&&l.hasOwnProperty(t.field);if(g){if(zr(a,f)&&!t.required)return r();Hn.required(t,a,l,m,c,f),zr(a,f)||Hn.type(t,a,l,m,c)}r(m)};const Kv={string:pU,method:uU,number:cU,boolean:aU,regexp:hU,integer:sU,float:lU,array:nU,object:fU,enum:oU,pattern:dU,date:rU,url:Gw,hex:Gw,email:Gw,required:mU,any:tU};var Qv=function(){function e(t){Nr(this,e),de(this,"rules",null),de(this,"_messages",Iw),this.define(t)}return $r(e,[{key:"define",value:function(a){var r=this;if(!a)throw new Error("Cannot configure a schema with no rules");if(Xt(a)!=="object"||Array.isArray(a))throw new Error("Rules must be an object");this.rules={},Object.keys(a).forEach(function(l){var c=a[l];r.rules[l]=Array.isArray(c)?c:[c]})}},{key:"messages",value:function(a){return a&&(this._messages=qN(Uw(),a)),this._messages}},{key:"validate",value:function(a){var r=this,l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},f=a,m=l,g=c;if(typeof m=="function"&&(g=m,m={}),!this.rules||Object.keys(this.rules).length===0)return g&&g(null,f),Promise.resolve(f);function p(O){var M=[],A={};function D(z){if(Array.isArray(z)){var j;M=(j=M).concat.apply(j,Nt(z))}else M.push(z)}for(var _=0;_<O.length;_++)D(O[_]);M.length?(A=kw(M),g(M,A)):g(null,f)}if(m.messages){var y=this.messages();y===Iw&&(y=Uw()),qN(y,m.messages),m.messages=y}else m.messages=this.messages();var S={},E=m.keys||Object.keys(this.rules);E.forEach(function(O){var M=r.rules[O],A=f[O];M.forEach(function(D){var _=D;typeof _.transform=="function"&&(f===a&&(f=ge({},f)),A=f[O]=_.transform(A),A!=null&&(_.type=_.type||(Array.isArray(A)?"array":Xt(A)))),typeof _=="function"?_={validator:_}:_=ge({},_),_.validator=r.getValidationMethod(_),_.validator&&(_.field=O,_.fullField=_.fullField||O,_.type=r.getType(_),S[O]=S[O]||[],S[O].push({rule:_,value:A,source:f,field:O}))})});var T={};return q9(S,m,function(O,M){var A=O.rule,D=(A.type==="object"||A.type==="array")&&(Xt(A.fields)==="object"||Xt(A.defaultField)==="object");D=D&&(A.required||!A.required&&O.value),A.field=O.field;function _(H,P){return ge(ge({},P),{},{fullField:"".concat(A.fullField,".").concat(H),fullFields:A.fullFields?[].concat(Nt(A.fullFields),[H]):[H]})}function z(){var H=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],P=Array.isArray(H)?H:[H];!m.suppressWarning&&P.length&&e.warning("async-validator:",P),P.length&&A.message!==void 0&&(P=[].concat(A.message));var q=P.map(GN(A,f));if(m.first&&q.length)return T[A.field]=1,M(q);if(!D)M(q);else{if(A.required&&!O.value)return A.message!==void 0?q=[].concat(A.message).map(GN(A,f)):m.error&&(q=[m.error(A,Lo(m.messages.required,A.field))]),M(q);var Y={};A.defaultField&&Object.keys(O.value).map(function(K){Y[K]=A.defaultField}),Y=ge(ge({},Y),O.rule.fields);var te={};Object.keys(Y).forEach(function(K){var J=Y[K],ie=Array.isArray(J)?J:[J];te[K]=ie.map(_.bind(null,K))});var G=new e(te);G.messages(m.messages),O.rule.options&&(O.rule.options.messages=m.messages,O.rule.options.error=m.error),G.validate(O.value,O.rule.options||m,function(K){var J=[];q&&q.length&&J.push.apply(J,Nt(q)),K&&K.length&&J.push.apply(J,Nt(K)),M(J.length?J:null)})}}var j;if(A.asyncValidator)j=A.asyncValidator(A,O.value,z,O.source,m);else if(A.validator){try{j=A.validator(A,O.value,z,O.source,m)}catch(H){var $,V;($=(V=console).error)===null||$===void 0||$.call(V,H),m.suppressValidatorError||setTimeout(function(){throw H},0),z(H.message)}j===!0?z():j===!1?z(typeof A.message=="function"?A.message(A.fullField||A.field):A.message||"".concat(A.fullField||A.field," fails")):j instanceof Array?z(j):j instanceof Error&&z(j.message)}j&&j.then&&j.then(function(){return z()},function(H){return z(H)})},function(O){p(O)},f)}},{key:"getType",value:function(a){if(a.type===void 0&&a.pattern instanceof RegExp&&(a.type="pattern"),typeof a.validator!="function"&&a.type&&!Kv.hasOwnProperty(a.type))throw new Error(Lo("Unknown rule type %s",a.type));return a.type||"string"}},{key:"getValidationMethod",value:function(a){if(typeof a.validator=="function")return a.validator;var r=Object.keys(a),l=r.indexOf("message");return l!==-1&&r.splice(l,1),r.length===1&&r[0]==="required"?Kv.required:Kv[this.getType(a)]||void 0}}]),e}();de(Qv,"register",function(t,a){if(typeof a!="function")throw new Error("Cannot register a validator by type, validator is not a function");Kv[t]=a}),de(Qv,"warning",IN),de(Qv,"messages",Iw),de(Qv,"validators",Kv);var Vo="'${name}' is not a valid ${type}",WN={default:"Validation error on field '${name}'",required:"'${name}' is required",enum:"'${name}' must be one of [${enum}]",whitespace:"'${name}' cannot be empty",date:{format:"'${name}' is invalid for format date",parse:"'${name}' could not be parsed as date",invalid:"'${name}' is invalid date"},types:{string:Vo,method:Vo,array:Vo,object:Vo,number:Vo,date:Vo,boolean:Vo,integer:Vo,float:Vo,regexp:Vo,email:Vo,url:Vo,hex:Vo},string:{len:"'${name}' must be exactly ${len} characters",min:"'${name}' must be at least ${min} characters",max:"'${name}' cannot be longer than ${max} characters",range:"'${name}' must be between ${min} and ${max} characters"},number:{len:"'${name}' must equal ${len}",min:"'${name}' cannot be less than ${min}",max:"'${name}' cannot be greater than ${max}",range:"'${name}' must be between ${min} and ${max}"},array:{len:"'${name}' must be exactly ${len} in length",min:"'${name}' cannot be less than ${min} in length",max:"'${name}' cannot be greater than ${max} in length",range:"'${name}' must be between ${min} and ${max} in length"},pattern:{mismatch:"'${name}' does not match pattern ${pattern}"}},ZN=Qv;function gU(e,t){return e.replace(/\\?\$\{\w+\}/g,function(a){if(a.startsWith("\\"))return a.slice(1);var r=a.slice(2,-1);return t[r]})}var KN="CODE_LOGIC_ERROR";function qw(e,t,a,r,l){return Yw.apply(this,arguments)}function Yw(){return Yw=Ad(Ci().mark(function e(t,a,r,l,c){var f,m,g,p,y,S,E,T,O;return Ci().wrap(function(A){for(;;)switch(A.prev=A.next){case 0:return f=ge({},r),delete f.ruleIndex,ZN.warning=function(){},f.validator&&(m=f.validator,f.validator=function(){try{return m.apply(void 0,arguments)}catch(D){return console.error(D),Promise.reject(KN)}}),g=null,f&&f.type==="array"&&f.defaultField&&(g=f.defaultField,delete f.defaultField),p=new ZN(de({},t,[f])),y=Rm(WN,l.validateMessages),p.messages(y),S=[],A.prev=10,A.next=13,Promise.resolve(p.validate(de({},t,a),ge({},l)));case 13:A.next=18;break;case 15:A.prev=15,A.t0=A.catch(10),A.t0.errors&&(S=A.t0.errors.map(function(D,_){var z=D.message,j=z===KN?y.default:z;return C.isValidElement(j)?C.cloneElement(j,{key:"error_".concat(_)}):j}));case 18:if(!(!S.length&&g)){A.next=23;break}return A.next=21,Promise.all(a.map(function(D,_){return qw("".concat(t,".").concat(_),D,g,l,c)}));case 21:return E=A.sent,A.abrupt("return",E.reduce(function(D,_){return[].concat(Nt(D),Nt(_))},[]));case 23:return T=ge(ge({},r),{},{name:t,enum:(r.enum||[]).join(", ")},c),O=S.map(function(D){return typeof D=="string"?gU(D,T):D}),A.abrupt("return",O);case 26:case"end":return A.stop()}},e,null,[[10,15]])})),Yw.apply(this,arguments)}function vU(e,t,a,r,l,c){var f=e.join("."),m=a.map(function(y,S){var E=y.validator,T=ge(ge({},y),{},{ruleIndex:S});return E&&(T.validator=function(O,M,A){var D=!1,_=function(){for(var $=arguments.length,V=new Array($),H=0;H<$;H++)V[H]=arguments[H];Promise.resolve().then(function(){Dn(!D,"Your validator function has already return a promise. `callback` will be ignored."),D||A.apply(void 0,V)})},z=E(O,M,_);D=z&&typeof z.then=="function"&&typeof z.catch=="function",Dn(D,"`callback` is deprecated. Please return a promise instead."),D&&z.then(function(){A()}).catch(function(j){A(j||" ")})}),T}).sort(function(y,S){var E=y.warningOnly,T=y.ruleIndex,O=S.warningOnly,M=S.ruleIndex;return!!E==!!O?T-M:E?1:-1}),g;if(l===!0)g=new Promise(function(){var y=Ad(Ci().mark(function S(E,T){var O,M,A;return Ci().wrap(function(_){for(;;)switch(_.prev=_.next){case 0:O=0;case 1:if(!(O<m.length)){_.next=12;break}return M=m[O],_.next=5,qw(f,t,M,r,c);case 5:if(A=_.sent,!A.length){_.next=9;break}return T([{errors:A,rule:M}]),_.abrupt("return");case 9:O+=1,_.next=1;break;case 12:E([]);case 13:case"end":return _.stop()}},S)}));return function(S,E){return y.apply(this,arguments)}}());else{var p=m.map(function(y){return qw(f,t,y,r,c).then(function(S){return{errors:S,rule:y}})});g=(l?bU(p):yU(p)).then(function(y){return Promise.reject(y)})}return g.catch(function(y){return y}),g}function yU(e){return Xw.apply(this,arguments)}function Xw(){return Xw=Ad(Ci().mark(function e(t){return Ci().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.all(t).then(function(l){var c,f=(c=[]).concat.apply(c,Nt(l));return f}));case 1:case"end":return r.stop()}},e)})),Xw.apply(this,arguments)}function bU(e){return Ww.apply(this,arguments)}function Ww(){return Ww=Ad(Ci().mark(function e(t){var a;return Ci().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return a=0,l.abrupt("return",new Promise(function(c){t.forEach(function(f){f.then(function(m){m.errors.length&&c([m]),a+=1,a===t.length&&c([])})})}));case 2:case"end":return l.stop()}},e)})),Ww.apply(this,arguments)}function fr(e){return Pw(e)}function QN(e,t){var a={};return t.forEach(function(r){var l=qs(e,r);a=Jl(a,r,l)}),a}function Vm(e,t){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return e&&e.some(function(r){return JN(t,r,a)})}function JN(e,t){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return!e||!t||!a&&e.length!==t.length?!1:t.every(function(r,l){return e[l]===r})}function SU(e,t){if(e===t)return!0;if(!e&&t||e&&!t||!e||!t||Xt(e)!=="object"||Xt(t)!=="object")return!1;var a=Object.keys(e),r=Object.keys(t),l=new Set([].concat(a,r));return Nt(l).every(function(c){var f=e[c],m=t[c];return typeof f=="function"&&typeof m=="function"?!0:f===m})}function CU(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&Xt(t.target)==="object"&&e in t.target?t.target[e]:t}function e3(e,t,a){var r=e.length;if(t<0||t>=r||a<0||a>=r)return e;var l=e[t],c=t-a;return c>0?[].concat(Nt(e.slice(0,a)),[l],Nt(e.slice(a,t)),Nt(e.slice(t+1,r))):c<0?[].concat(Nt(e.slice(0,t)),Nt(e.slice(t+1,a+1)),[l],Nt(e.slice(a+1,r))):e}var t3={},xU=["name"],vl=[];function Zw(e,t,a,r,l,c){return typeof e=="function"?e(t,a,"source"in c?{source:c.source}:{}):r!==l}var Kw=function(e){Gc(a,e);var t=qc(a);function a(r){var l;if(Nr(this,a),l=t.call(this,r),de(Nn(l),"state",{resetCount:0}),de(Nn(l),"cancelRegisterFunc",null),de(Nn(l),"mounted",!1),de(Nn(l),"touched",!1),de(Nn(l),"dirty",!1),de(Nn(l),"validatePromise",void 0),de(Nn(l),"prevValidating",void 0),de(Nn(l),"errors",vl),de(Nn(l),"warnings",vl),de(Nn(l),"cancelRegister",function(){var g=l.props,p=g.preserve,y=g.isListField,S=g.name;l.cancelRegisterFunc&&l.cancelRegisterFunc(y,p,fr(S)),l.cancelRegisterFunc=null}),de(Nn(l),"getNamePath",function(){var g=l.props,p=g.name,y=g.fieldContext,S=y.prefixName,E=S===void 0?[]:S;return p!==void 0?[].concat(Nt(E),Nt(p)):[]}),de(Nn(l),"getRules",function(){var g=l.props,p=g.rules,y=p===void 0?[]:p,S=g.fieldContext;return y.map(function(E){return typeof E=="function"?E(S):E})}),de(Nn(l),"refresh",function(){l.mounted&&l.setState(function(g){var p=g.resetCount;return{resetCount:p+1}})}),de(Nn(l),"metaCache",null),de(Nn(l),"triggerMetaEvent",function(g){var p=l.props.onMetaChange;if(p){var y=ge(ge({},l.getMeta()),{},{destroy:g});TE(l.metaCache,y)||p(y),l.metaCache=y}else l.metaCache=null}),de(Nn(l),"onStoreChange",function(g,p,y){var S=l.props,E=S.shouldUpdate,T=S.dependencies,O=T===void 0?[]:T,M=S.onReset,A=y.store,D=l.getNamePath(),_=l.getValue(g),z=l.getValue(A),j=p&&Vm(p,D);switch(y.type==="valueUpdate"&&y.source==="external"&&!TE(_,z)&&(l.touched=!0,l.dirty=!0,l.validatePromise=null,l.errors=vl,l.warnings=vl,l.triggerMetaEvent()),y.type){case"reset":if(!p||j){l.touched=!1,l.dirty=!1,l.validatePromise=void 0,l.errors=vl,l.warnings=vl,l.triggerMetaEvent(),M?.(),l.refresh();return}break;case"remove":{if(E&&Zw(E,g,A,_,z,y)){l.reRender();return}break}case"setField":{var $=y.data;if(j){"touched"in $&&(l.touched=$.touched),"validating"in $&&!("originRCField"in $)&&(l.validatePromise=$.validating?Promise.resolve([]):null),"errors"in $&&(l.errors=$.errors||vl),"warnings"in $&&(l.warnings=$.warnings||vl),l.dirty=!0,l.triggerMetaEvent(),l.reRender();return}else if("value"in $&&Vm(p,D,!0)){l.reRender();return}if(E&&!D.length&&Zw(E,g,A,_,z,y)){l.reRender();return}break}case"dependenciesUpdate":{var V=O.map(fr);if(V.some(function(H){return Vm(y.relatedFields,H)})){l.reRender();return}break}default:if(j||(!O.length||D.length||E)&&Zw(E,g,A,_,z,y)){l.reRender();return}break}E===!0&&l.reRender()}),de(Nn(l),"validateRules",function(g){var p=l.getNamePath(),y=l.getValue(),S=g||{},E=S.triggerName,T=S.validateOnly,O=T===void 0?!1:T,M=Promise.resolve().then(Ad(Ci().mark(function A(){var D,_,z,j,$,V,H;return Ci().wrap(function(q){for(;;)switch(q.prev=q.next){case 0:if(l.mounted){q.next=2;break}return q.abrupt("return",[]);case 2:if(D=l.props,_=D.validateFirst,z=_===void 0?!1:_,j=D.messageVariables,$=D.validateDebounce,V=l.getRules(),E&&(V=V.filter(function(Y){return Y}).filter(function(Y){var te=Y.validateTrigger;if(!te)return!0;var G=Pw(te);return G.includes(E)})),!($&&E)){q.next=10;break}return q.next=8,new Promise(function(Y){setTimeout(Y,$)});case 8:if(l.validatePromise===M){q.next=10;break}return q.abrupt("return",[]);case 10:return H=vU(p,y,V,g,z,j),H.catch(function(Y){return Y}).then(function(){var Y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:vl;if(l.validatePromise===M){var te;l.validatePromise=null;var G=[],K=[];(te=Y.forEach)===null||te===void 0||te.call(Y,function(J){var ie=J.rule.warningOnly,k=J.errors,X=k===void 0?vl:k;ie?K.push.apply(K,Nt(X)):G.push.apply(G,Nt(X))}),l.errors=G,l.warnings=K,l.triggerMetaEvent(),l.reRender()}}),q.abrupt("return",H);case 13:case"end":return q.stop()}},A)})));return O||(l.validatePromise=M,l.dirty=!0,l.errors=vl,l.warnings=vl,l.triggerMetaEvent(),l.reRender()),M}),de(Nn(l),"isFieldValidating",function(){return!!l.validatePromise}),de(Nn(l),"isFieldTouched",function(){return l.touched}),de(Nn(l),"isFieldDirty",function(){if(l.dirty||l.props.initialValue!==void 0)return!0;var g=l.props.fieldContext,p=g.getInternalHooks(_d),y=p.getInitialValue;return y(l.getNamePath())!==void 0}),de(Nn(l),"getErrors",function(){return l.errors}),de(Nn(l),"getWarnings",function(){return l.warnings}),de(Nn(l),"isListField",function(){return l.props.isListField}),de(Nn(l),"isList",function(){return l.props.isList}),de(Nn(l),"isPreserve",function(){return l.props.preserve}),de(Nn(l),"getMeta",function(){l.prevValidating=l.isFieldValidating();var g={touched:l.isFieldTouched(),validating:l.prevValidating,errors:l.errors,warnings:l.warnings,name:l.getNamePath(),validated:l.validatePromise===null};return g}),de(Nn(l),"getOnlyChild",function(g){if(typeof g=="function"){var p=l.getMeta();return ge(ge({},l.getOnlyChild(g(l.getControlled(),p,l.props.fieldContext))),{},{isFunction:!0})}var y=ks(g);return y.length!==1||!C.isValidElement(y[0])?{child:y,isFunction:!1}:{child:y[0],isFunction:!1}}),de(Nn(l),"getValue",function(g){var p=l.props.fieldContext.getFieldsValue,y=l.getNamePath();return qs(g||p(!0),y)}),de(Nn(l),"getControlled",function(){var g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},p=l.props,y=p.name,S=p.trigger,E=p.validateTrigger,T=p.getValueFromEvent,O=p.normalize,M=p.valuePropName,A=p.getValueProps,D=p.fieldContext,_=E!==void 0?E:D.validateTrigger,z=l.getNamePath(),j=D.getInternalHooks,$=D.getFieldsValue,V=j(_d),H=V.dispatch,P=l.getValue(),q=A||function(J){return de({},M,J)},Y=g[S],te=y!==void 0?q(P):{};t3.NODE_ENV!=="production"&&te&&Object.keys(te).forEach(function(J){Dn(typeof te[J]!="function","It's not recommended to generate dynamic function prop by `getValueProps`. Please pass it to child component directly (prop: ".concat(J,")"))});var G=ge(ge({},g),te);G[S]=function(){l.touched=!0,l.dirty=!0,l.triggerMetaEvent();for(var J,ie=arguments.length,k=new Array(ie),X=0;X<ie;X++)k[X]=arguments[X];T?J=T.apply(void 0,k):J=CU.apply(void 0,[M].concat(k)),O&&(J=O(J,P,$(!0))),J!==P&&H({type:"updateValue",namePath:z,value:J}),Y&&Y.apply(void 0,k)};var K=Pw(_||[]);return K.forEach(function(J){var ie=G[J];G[J]=function(){ie&&ie.apply(void 0,arguments);var k=l.props.rules;k&&k.length&&H({type:"validateField",namePath:z,triggerName:J})}}),G}),r.fieldContext){var c=r.fieldContext.getInternalHooks,f=c(_d),m=f.initEntityValue;m(Nn(l))}return l}return $r(a,[{key:"componentDidMount",value:function(){var l=this.props,c=l.shouldUpdate,f=l.fieldContext;if(this.mounted=!0,f){var m=f.getInternalHooks,g=m(_d),p=g.registerField;this.cancelRegisterFunc=p(this)}c===!0&&this.reRender()}},{key:"componentWillUnmount",value:function(){this.cancelRegister(),this.triggerMetaEvent(!0),this.mounted=!1}},{key:"reRender",value:function(){this.mounted&&this.forceUpdate()}},{key:"render",value:function(){var l=this.state.resetCount,c=this.props.children,f=this.getOnlyChild(c),m=f.child,g=f.isFunction,p;return g?p=m:C.isValidElement(m)?p=C.cloneElement(m,this.getControlled(m.props)):(Dn(!m,"`children` of Field is not validate ReactElement."),p=m),C.createElement(C.Fragment,{key:l},p)}}]),a}(C.Component);de(Kw,"contextType",jm),de(Kw,"defaultProps",{trigger:"onChange",valuePropName:"value"});function n3(e){var t,a=e.name,r=pa(e,xU),l=C.useContext(jm),c=C.useContext(v1),f=a!==void 0?fr(a):void 0,m=(t=r.isListField)!==null&&t!==void 0?t:!!c,g="keep";return m||(g="_".concat((f||[]).join("_"))),t3.NODE_ENV!=="production"&&r.preserve===!1&&m&&f.length<=1&&Dn(!1,"`preserve` should not apply on Form.List fields."),C.createElement(Kw,jt({key:g,name:f,isListField:m},r,{fieldContext:l}))}var a3={};function EU(e){var t=e.name,a=e.initialValue,r=e.children,l=e.rules,c=e.validateTrigger,f=e.isListField,m=C.useContext(jm),g=C.useContext(v1),p=C.useRef({keys:[],id:0}),y=p.current,S=C.useMemo(function(){var M=fr(m.prefixName)||[];return[].concat(Nt(M),Nt(fr(t)))},[m.prefixName,t]),E=C.useMemo(function(){return ge(ge({},m),{},{prefixName:S})},[m,S]),T=C.useMemo(function(){return{getKey:function(A){var D=S.length,_=A[D];return[y.keys[_],A.slice(D+1)]}}},[S]);if(typeof r!="function")return Dn(!1,"Form.List only accepts function as children."),null;var O=function(A,D,_){var z=_.source;return z==="internal"?!1:A!==D};return C.createElement(v1.Provider,{value:T},C.createElement(jm.Provider,{value:E},C.createElement(n3,{name:[],shouldUpdate:O,rules:l,validateTrigger:c,initialValue:a,isList:!0,isListField:f??!!g},function(M,A){var D=M.value,_=D===void 0?[]:D,z=M.onChange,j=m.getFieldValue,$=function(){var q=j(S||[]);return q||[]},V={add:function(q,Y){var te=$();Y>=0&&Y<=te.length?(y.keys=[].concat(Nt(y.keys.slice(0,Y)),[y.id],Nt(y.keys.slice(Y))),z([].concat(Nt(te.slice(0,Y)),[q],Nt(te.slice(Y))))):(a3.NODE_ENV!=="production"&&(Y<0||Y>te.length)&&Dn(!1,"The second parameter of the add function should be a valid positive number."),y.keys=[].concat(Nt(y.keys),[y.id]),z([].concat(Nt(te),[q]))),y.id+=1},remove:function(q){var Y=$(),te=new Set(Array.isArray(q)?q:[q]);te.size<=0||(y.keys=y.keys.filter(function(G,K){return!te.has(K)}),z(Y.filter(function(G,K){return!te.has(K)})))},move:function(q,Y){if(q!==Y){var te=$();q<0||q>=te.length||Y<0||Y>=te.length||(y.keys=e3(y.keys,q,Y),z(e3(te,q,Y)))}}},H=_||[];return Array.isArray(H)||(H=[],a3.NODE_ENV!=="production"&&Dn(!1,"Current value of '".concat(S.join(" > "),"' is not an array type."))),r(H.map(function(P,q){var Y=y.keys[q];return Y===void 0&&(y.keys[q]=y.id,Y=y.keys[q],y.id+=1),{name:q,key:Y,isListField:!0}}),V,A)})))}function wU(e){var t=!1,a=e.length,r=[];return e.length?new Promise(function(l,c){e.forEach(function(f,m){f.catch(function(g){return t=!0,g}).then(function(g){a-=1,r[m]=g,!(a>0)&&(t&&c(r),l(r))})})}):Promise.resolve([])}var r3="__@field_split__";function Qw(e){return e.map(function(t){return"".concat(Xt(t),":").concat(t)}).join(r3)}var Hm=function(){function e(){Nr(this,e),de(this,"kvs",new Map)}return $r(e,[{key:"set",value:function(a,r){this.kvs.set(Qw(a),r)}},{key:"get",value:function(a){return this.kvs.get(Qw(a))}},{key:"update",value:function(a,r){var l=this.get(a),c=r(l);c?this.set(a,c):this.delete(a)}},{key:"delete",value:function(a){this.kvs.delete(Qw(a))}},{key:"map",value:function(a){return Nt(this.kvs.entries()).map(function(r){var l=Be(r,2),c=l[0],f=l[1],m=c.split(r3);return a({key:m.map(function(g){var p=g.match(/^([^:]*):(.*)$/),y=Be(p,3),S=y[1],E=y[2];return S==="number"?Number(E):E}),value:f})})}},{key:"toJSON",value:function(){var a={};return this.map(function(r){var l=r.key,c=r.value;return a[l.join(".")]=c,null}),a}}]),e}(),TU={},OU=["name"],RU=$r(function e(t){var a=this;Nr(this,e),de(this,"formHooked",!1),de(this,"forceRootUpdate",void 0),de(this,"subscribable",!0),de(this,"store",{}),de(this,"fieldEntities",[]),de(this,"initialValues",{}),de(this,"callbacks",{}),de(this,"validateMessages",null),de(this,"preserve",null),de(this,"lastValidatePromise",null),de(this,"getForm",function(){return{getFieldValue:a.getFieldValue,getFieldsValue:a.getFieldsValue,getFieldError:a.getFieldError,getFieldWarning:a.getFieldWarning,getFieldsError:a.getFieldsError,isFieldsTouched:a.isFieldsTouched,isFieldTouched:a.isFieldTouched,isFieldValidating:a.isFieldValidating,isFieldsValidating:a.isFieldsValidating,resetFields:a.resetFields,setFields:a.setFields,setFieldValue:a.setFieldValue,setFieldsValue:a.setFieldsValue,validateFields:a.validateFields,submit:a.submit,_init:!0,getInternalHooks:a.getInternalHooks}}),de(this,"getInternalHooks",function(r){return r===_d?(a.formHooked=!0,{dispatch:a.dispatch,initEntityValue:a.initEntityValue,registerField:a.registerField,useSubscribe:a.useSubscribe,setInitialValues:a.setInitialValues,destroyForm:a.destroyForm,setCallbacks:a.setCallbacks,setValidateMessages:a.setValidateMessages,getFields:a.getFields,setPreserve:a.setPreserve,getInitialValue:a.getInitialValue,registerWatch:a.registerWatch}):(Dn(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),de(this,"useSubscribe",function(r){a.subscribable=r}),de(this,"prevWithoutPreserves",null),de(this,"setInitialValues",function(r,l){if(a.initialValues=r||{},l){var c,f=Rm(r,a.store);(c=a.prevWithoutPreserves)===null||c===void 0||c.map(function(m){var g=m.key;f=Jl(f,g,qs(r,g))}),a.prevWithoutPreserves=null,a.updateStore(f)}}),de(this,"destroyForm",function(r){if(r)a.updateStore({});else{var l=new Hm;a.getFieldEntities(!0).forEach(function(c){a.isMergedPreserve(c.isPreserve())||l.set(c.getNamePath(),!0)}),a.prevWithoutPreserves=l}}),de(this,"getInitialValue",function(r){var l=qs(a.initialValues,r);return r.length?Rm(l):l}),de(this,"setCallbacks",function(r){a.callbacks=r}),de(this,"setValidateMessages",function(r){a.validateMessages=r}),de(this,"setPreserve",function(r){a.preserve=r}),de(this,"watchList",[]),de(this,"registerWatch",function(r){return a.watchList.push(r),function(){a.watchList=a.watchList.filter(function(l){return l!==r})}}),de(this,"notifyWatch",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(a.watchList.length){var l=a.getFieldsValue(),c=a.getFieldsValue(!0);a.watchList.forEach(function(f){f(l,c,r)})}}),de(this,"timeoutId",null),de(this,"warningUnhooked",function(){TU.NODE_ENV!=="production"&&!a.timeoutId&&typeof window<"u"&&(a.timeoutId=setTimeout(function(){a.timeoutId=null,a.formHooked||Dn(!1,"Instance created by `useForm` is not connected to any Form element. Forget to pass `form` prop?")}))}),de(this,"updateStore",function(r){a.store=r}),de(this,"getFieldEntities",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return r?a.fieldEntities.filter(function(l){return l.getNamePath().length}):a.fieldEntities}),de(this,"getFieldsMap",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,l=new Hm;return a.getFieldEntities(r).forEach(function(c){var f=c.getNamePath();l.set(f,c)}),l}),de(this,"getFieldEntitiesForNamePathList",function(r){if(!r)return a.getFieldEntities(!0);var l=a.getFieldsMap(!0);return r.map(function(c){var f=fr(c);return l.get(f)||{INVALIDATE_NAME_PATH:fr(c)}})}),de(this,"getFieldsValue",function(r,l){a.warningUnhooked();var c,f,m;if(r===!0||Array.isArray(r)?(c=r,f=l):r&&Xt(r)==="object"&&(m=r.strict,f=r.filter),c===!0&&!f)return a.store;var g=a.getFieldEntitiesForNamePathList(Array.isArray(c)?c:null),p=[];return g.forEach(function(y){var S,E,T="INVALIDATE_NAME_PATH"in y?y.INVALIDATE_NAME_PATH:y.getNamePath();if(m){var O,M;if((O=(M=y).isList)!==null&&O!==void 0&&O.call(M))return}else if(!c&&(S=(E=y).isListField)!==null&&S!==void 0&&S.call(E))return;if(!f)p.push(T);else{var A="getMeta"in y?y.getMeta():null;f(A)&&p.push(T)}}),QN(a.store,p.map(fr))}),de(this,"getFieldValue",function(r){a.warningUnhooked();var l=fr(r);return qs(a.store,l)}),de(this,"getFieldsError",function(r){a.warningUnhooked();var l=a.getFieldEntitiesForNamePathList(r);return l.map(function(c,f){return c&&!("INVALIDATE_NAME_PATH"in c)?{name:c.getNamePath(),errors:c.getErrors(),warnings:c.getWarnings()}:{name:fr(r[f]),errors:[],warnings:[]}})}),de(this,"getFieldError",function(r){a.warningUnhooked();var l=fr(r),c=a.getFieldsError([l])[0];return c.errors}),de(this,"getFieldWarning",function(r){a.warningUnhooked();var l=fr(r),c=a.getFieldsError([l])[0];return c.warnings}),de(this,"isFieldsTouched",function(){a.warningUnhooked();for(var r=arguments.length,l=new Array(r),c=0;c<r;c++)l[c]=arguments[c];var f=l[0],m=l[1],g,p=!1;l.length===0?g=null:l.length===1?Array.isArray(f)?(g=f.map(fr),p=!1):(g=null,p=f):(g=f.map(fr),p=m);var y=a.getFieldEntities(!0),S=function(A){return A.isFieldTouched()};if(!g)return p?y.every(function(M){return S(M)||M.isList()}):y.some(S);var E=new Hm;g.forEach(function(M){E.set(M,[])}),y.forEach(function(M){var A=M.getNamePath();g.forEach(function(D){D.every(function(_,z){return A[z]===_})&&E.update(D,function(_){return[].concat(Nt(_),[M])})})});var T=function(A){return A.some(S)},O=E.map(function(M){var A=M.value;return A});return p?O.every(T):O.some(T)}),de(this,"isFieldTouched",function(r){return a.warningUnhooked(),a.isFieldsTouched([r])}),de(this,"isFieldsValidating",function(r){a.warningUnhooked();var l=a.getFieldEntities();if(!r)return l.some(function(f){return f.isFieldValidating()});var c=r.map(fr);return l.some(function(f){var m=f.getNamePath();return Vm(c,m)&&f.isFieldValidating()})}),de(this,"isFieldValidating",function(r){return a.warningUnhooked(),a.isFieldsValidating([r])}),de(this,"resetWithFieldInitialValue",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},l=new Hm,c=a.getFieldEntities(!0);c.forEach(function(g){var p=g.props.initialValue,y=g.getNamePath();if(p!==void 0){var S=l.get(y)||new Set;S.add({entity:g,value:p}),l.set(y,S)}});var f=function(p){p.forEach(function(y){var S=y.props.initialValue;if(S!==void 0){var E=y.getNamePath(),T=a.getInitialValue(E);if(T!==void 0)Dn(!1,"Form already set 'initialValues' with path '".concat(E.join("."),"'. Field can not overwrite it."));else{var O=l.get(E);if(O&&O.size>1)Dn(!1,"Multiple Field with path '".concat(E.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(O){var M=a.getFieldValue(E),A=y.isListField();!A&&(!r.skipExist||M===void 0)&&a.updateStore(Jl(a.store,E,Nt(O)[0].value))}}}})},m;r.entities?m=r.entities:r.namePathList?(m=[],r.namePathList.forEach(function(g){var p=l.get(g);if(p){var y;(y=m).push.apply(y,Nt(Nt(p).map(function(S){return S.entity})))}})):m=c,f(m)}),de(this,"resetFields",function(r){a.warningUnhooked();var l=a.store;if(!r){a.updateStore(Rm(a.initialValues)),a.resetWithFieldInitialValue(),a.notifyObservers(l,null,{type:"reset"}),a.notifyWatch();return}var c=r.map(fr);c.forEach(function(f){var m=a.getInitialValue(f);a.updateStore(Jl(a.store,f,m))}),a.resetWithFieldInitialValue({namePathList:c}),a.notifyObservers(l,c,{type:"reset"}),a.notifyWatch(c)}),de(this,"setFields",function(r){a.warningUnhooked();var l=a.store,c=[];r.forEach(function(f){var m=f.name,g=pa(f,OU),p=fr(m);c.push(p),"value"in g&&a.updateStore(Jl(a.store,p,g.value)),a.notifyObservers(l,[p],{type:"setField",data:f})}),a.notifyWatch(c)}),de(this,"getFields",function(){var r=a.getFieldEntities(!0),l=r.map(function(c){var f=c.getNamePath(),m=c.getMeta(),g=ge(ge({},m),{},{name:f,value:a.getFieldValue(f)});return Object.defineProperty(g,"originRCField",{value:!0}),g});return l}),de(this,"initEntityValue",function(r){var l=r.props.initialValue;if(l!==void 0){var c=r.getNamePath(),f=qs(a.store,c);f===void 0&&a.updateStore(Jl(a.store,c,l))}}),de(this,"isMergedPreserve",function(r){var l=r!==void 0?r:a.preserve;return l??!0}),de(this,"registerField",function(r){a.fieldEntities.push(r);var l=r.getNamePath();if(a.notifyWatch([l]),r.props.initialValue!==void 0){var c=a.store;a.resetWithFieldInitialValue({entities:[r],skipExist:!0}),a.notifyObservers(c,[r.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(f,m){var g=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(a.fieldEntities=a.fieldEntities.filter(function(S){return S!==r}),!a.isMergedPreserve(m)&&(!f||g.length>1)){var p=f?void 0:a.getInitialValue(l);if(l.length&&a.getFieldValue(l)!==p&&a.fieldEntities.every(function(S){return!JN(S.getNamePath(),l)})){var y=a.store;a.updateStore(Jl(y,l,p,!0)),a.notifyObservers(y,[l],{type:"remove"}),a.triggerDependenciesUpdate(y,l)}}a.notifyWatch([l])}}),de(this,"dispatch",function(r){switch(r.type){case"updateValue":{var l=r.namePath,c=r.value;a.updateValue(l,c);break}case"validateField":{var f=r.namePath,m=r.triggerName;a.validateFields([f],{triggerName:m});break}}}),de(this,"notifyObservers",function(r,l,c){if(a.subscribable){var f=ge(ge({},c),{},{store:a.getFieldsValue(!0)});a.getFieldEntities().forEach(function(m){var g=m.onStoreChange;g(r,l,f)})}else a.forceRootUpdate()}),de(this,"triggerDependenciesUpdate",function(r,l){var c=a.getDependencyChildrenFields(l);return c.length&&a.validateFields(c),a.notifyObservers(r,c,{type:"dependenciesUpdate",relatedFields:[l].concat(Nt(c))}),c}),de(this,"updateValue",function(r,l){var c=fr(r),f=a.store;a.updateStore(Jl(a.store,c,l)),a.notifyObservers(f,[c],{type:"valueUpdate",source:"internal"}),a.notifyWatch([c]);var m=a.triggerDependenciesUpdate(f,c),g=a.callbacks.onValuesChange;if(g){var p=QN(a.store,[c]);g(p,a.getFieldsValue())}a.triggerOnFieldsChange([c].concat(Nt(m)))}),de(this,"setFieldsValue",function(r){a.warningUnhooked();var l=a.store;if(r){var c=Rm(a.store,r);a.updateStore(c)}a.notifyObservers(l,null,{type:"valueUpdate",source:"external"}),a.notifyWatch()}),de(this,"setFieldValue",function(r,l){a.setFields([{name:r,value:l,errors:[],warnings:[]}])}),de(this,"getDependencyChildrenFields",function(r){var l=new Set,c=[],f=new Hm;a.getFieldEntities().forEach(function(g){var p=g.props.dependencies;(p||[]).forEach(function(y){var S=fr(y);f.update(S,function(){var E=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return E.add(g),E})})});var m=function g(p){var y=f.get(p)||new Set;y.forEach(function(S){if(!l.has(S)){l.add(S);var E=S.getNamePath();S.isFieldDirty()&&E.length&&(c.push(E),g(E))}})};return m(r),c}),de(this,"triggerOnFieldsChange",function(r,l){var c=a.callbacks.onFieldsChange;if(c){var f=a.getFields();if(l){var m=new Hm;l.forEach(function(p){var y=p.name,S=p.errors;m.set(y,S)}),f.forEach(function(p){p.errors=m.get(p.name)||p.errors})}var g=f.filter(function(p){var y=p.name;return Vm(r,y)});g.length&&c(g,f)}}),de(this,"validateFields",function(r,l){a.warningUnhooked();var c,f;Array.isArray(r)||typeof r=="string"||typeof l=="string"?(c=r,f=l):f=r;var m=!!c,g=m?c.map(fr):[],p=[],y=String(Date.now()),S=new Set,E=f||{},T=E.recursive,O=E.dirty;a.getFieldEntities(!0).forEach(function(_){if(m||g.push(_.getNamePath()),!(!_.props.rules||!_.props.rules.length)&&!(O&&!_.isFieldDirty())){var z=_.getNamePath();if(S.add(z.join(y)),!m||Vm(g,z,T)){var j=_.validateRules(ge({validateMessages:ge(ge({},WN),a.validateMessages)},f));p.push(j.then(function(){return{name:z,errors:[],warnings:[]}}).catch(function($){var V,H=[],P=[];return(V=$.forEach)===null||V===void 0||V.call($,function(q){var Y=q.rule.warningOnly,te=q.errors;Y?P.push.apply(P,Nt(te)):H.push.apply(H,Nt(te))}),H.length?Promise.reject({name:z,errors:H,warnings:P}):{name:z,errors:H,warnings:P}}))}}});var M=wU(p);a.lastValidatePromise=M,M.catch(function(_){return _}).then(function(_){var z=_.map(function(j){var $=j.name;return $});a.notifyObservers(a.store,z,{type:"validateFinish"}),a.triggerOnFieldsChange(z,_)});var A=M.then(function(){return a.lastValidatePromise===M?Promise.resolve(a.getFieldsValue(g)):Promise.reject([])}).catch(function(_){var z=_.filter(function(j){return j&&j.errors.length});return Promise.reject({values:a.getFieldsValue(g),errorFields:z,outOfDate:a.lastValidatePromise!==M})});A.catch(function(_){return _});var D=g.filter(function(_){return S.has(_.join(y))});return a.triggerOnFieldsChange(D),A}),de(this,"submit",function(){a.warningUnhooked(),a.validateFields().then(function(r){var l=a.callbacks.onFinish;if(l)try{l(r)}catch(c){console.error(c)}}).catch(function(r){var l=a.callbacks.onFinishFailed;l&&l(r)})}),this.forceRootUpdate=t});function i3(e){var t=C.useRef(),a=C.useState({}),r=Be(a,2),l=r[1];if(!t.current)if(e)t.current=e;else{var c=function(){l({})},f=new RU(c);t.current=f.getForm()}return[t.current]}var Jw=C.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),AU=function(t){var a=t.validateMessages,r=t.onFormChange,l=t.onFormFinish,c=t.children,f=C.useContext(Jw),m=C.useRef({});return C.createElement(Jw.Provider,{value:ge(ge({},f),{},{validateMessages:ge(ge({},f.validateMessages),a),triggerFormChange:function(p,y){r&&r(p,{changedFields:y,forms:m.current}),f.triggerFormChange(p,y)},triggerFormFinish:function(p,y){l&&l(p,{values:y,forms:m.current}),f.triggerFormFinish(p,y)},registerForm:function(p,y){p&&(m.current=ge(ge({},m.current),{},de({},p,y))),f.registerForm(p,y)},unregisterForm:function(p){var y=ge({},m.current);delete y[p],m.current=y,f.unregisterForm(p)}})},c)},MU=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"],_U=function(t,a){var r=t.name,l=t.initialValues,c=t.fields,f=t.form,m=t.preserve,g=t.children,p=t.component,y=p===void 0?"form":p,S=t.validateMessages,E=t.validateTrigger,T=E===void 0?"onChange":E,O=t.onValuesChange,M=t.onFieldsChange,A=t.onFinish,D=t.onFinishFailed,_=t.clearOnDestroy,z=pa(t,MU),j=C.useRef(null),$=C.useContext(Jw),V=i3(f),H=Be(V,1),P=H[0],q=P.getInternalHooks(_d),Y=q.useSubscribe,te=q.setInitialValues,G=q.setCallbacks,K=q.setValidateMessages,J=q.setPreserve,ie=q.destroyForm;C.useImperativeHandle(a,function(){return ge(ge({},P),{},{nativeElement:j.current})}),C.useEffect(function(){return $.registerForm(r,P),function(){$.unregisterForm(r)}},[$,P,r]),K(ge(ge({},$.validateMessages),S)),G({onValuesChange:O,onFieldsChange:function(oe){if($.triggerFormChange(r,oe),M){for(var fe=arguments.length,ye=new Array(fe>1?fe-1:0),$e=1;$e<fe;$e++)ye[$e-1]=arguments[$e];M.apply(void 0,[oe].concat(ye))}},onFinish:function(oe){$.triggerFormFinish(r,oe),A&&A(oe)},onFinishFailed:D}),J(m);var k=C.useRef(null);te(l,!k.current),k.current||(k.current=!0),C.useEffect(function(){return function(){return ie(_)}},[]);var X,Q=typeof g=="function";if(Q){var le=P.getFieldsValue(!0);X=g(le,P)}else X=g;Y(!Q);var U=C.useRef();C.useEffect(function(){SU(U.current||[],c||[])||P.setFields(c||[]),U.current=c},[c,P]);var F=C.useMemo(function(){return ge(ge({},P),{},{validateTrigger:T})},[P,T]),ne=C.createElement(v1.Provider,{value:null},C.createElement(jm.Provider,{value:F},X));return y===!1?ne:C.createElement(y,jt({},z,{ref:j,onSubmit:function(oe){oe.preventDefault(),oe.stopPropagation(),P.submit()},onReset:function(oe){var fe;oe.preventDefault(),P.resetFields(),(fe=z.onReset)===null||fe===void 0||fe.call(z,oe)}}),ne)},o3={};function l3(e){try{return JSON.stringify(e)}catch{return Math.random()}}var DU=o3.NODE_ENV!=="production"?function(e){var t=e.join("__RC_FIELD_FORM_SPLIT__"),a=C.useRef(t);Dn(a.current===t,"`useWatch` is not support dynamic `namePath`. Please provide static instead.")}:function(){};function NU(){for(var e=arguments.length,t=new Array(e),a=0;a<e;a++)t[a]=arguments[a];var r=t[0],l=t[1],c=l===void 0?{}:l,f=B9(c)?{form:c}:c,m=f.form,g=C.useState(),p=Be(g,2),y=p[0],S=p[1],E=C.useMemo(function(){return l3(y)},[y]),T=C.useRef(E);T.current=E;var O=C.useContext(jm),M=m||O,A=M&&M._init;o3.NODE_ENV!=="production"&&Dn(t.length===2?m?A:!0:A,"useWatch requires a form instance since it can not auto detect from context.");var D=fr(r),_=C.useRef(D);return _.current=D,DU(D),C.useEffect(function(){if(A){var z=M.getFieldsValue,j=M.getInternalHooks,$=j(_d),V=$.registerWatch,H=function(te,G){var K=f.preserve?G:te;return typeof r=="function"?r(K):qs(K,_.current)},P=V(function(Y,te){var G=H(Y,te),K=l3(G);T.current!==K&&(T.current=K,S(G))}),q=H(z(),z(!0));return y!==q&&S(q),P}},[A]),y}var $U=C.forwardRef(_U),Jv=$U;Jv.FormProvider=AU,Jv.Field=n3,Jv.List=EU,Jv.useForm=i3,Jv.useWatch=NU;var zU={};const Ws=C.createContext({});zU.NODE_ENV!=="production"&&(Ws.displayName="FormItemInputContext");const jU=({children:e,status:t,override:a})=>{const r=C.useContext(Ws),l=C.useMemo(()=>{const c=Object.assign({},r);return a&&delete c.isFormItemInput,t&&(delete c.status,delete c.hasFeedback,delete c.feedbackIcon),c},[t,a,r]);return C.createElement(Ws.Provider,{value:l},e)},LU=C.createContext(void 0),eT=e=>{const{space:t,form:a,children:r}=e;if(r==null)return null;let l=r;return a&&(l=we.createElement(jU,{override:!0,status:!0},l)),t&&(l=we.createElement(JP,null,l)),l};function VU(...e){const t={};return e.forEach(a=>{a&&Object.keys(a).forEach(r=>{a[r]!==void 0&&(t[r]=a[r])})}),t}var HU=function(t){if(yi()&&window.document.documentElement){var a=Array.isArray(t)?t:[t],r=window.document.documentElement;return a.some(function(l){return l in r.style})}return!1};function s3(e,t){return HU(e)}const BU=e=>{const{componentCls:t}=e;return{[t]:{display:"flex",flexFlow:"row wrap",minWidth:0,"&::before, &::after":{display:"flex"},"&-no-wrap":{flexWrap:"nowrap"},"&-start":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"flex-end"},"&-space-between":{justifyContent:"space-between"},"&-space-around":{justifyContent:"space-around"},"&-space-evenly":{justifyContent:"space-evenly"},"&-top":{alignItems:"flex-start"},"&-middle":{alignItems:"center"},"&-bottom":{alignItems:"flex-end"}}}},PU=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},UU=(e,t)=>{const{prefixCls:a,componentCls:r,gridColumns:l}=e,c={};for(let f=l;f>=0;f--)f===0?(c[`${r}${t}-${f}`]={display:"none"},c[`${r}-push-${f}`]={insetInlineStart:"auto"},c[`${r}-pull-${f}`]={insetInlineEnd:"auto"},c[`${r}${t}-push-${f}`]={insetInlineStart:"auto"},c[`${r}${t}-pull-${f}`]={insetInlineEnd:"auto"},c[`${r}${t}-offset-${f}`]={marginInlineStart:0},c[`${r}${t}-order-${f}`]={order:0}):(c[`${r}${t}-${f}`]=[{"--ant-display":"block",display:"block"},{display:"var(--ant-display)",flex:`0 0 ${f/l*100}%`,maxWidth:`${f/l*100}%`}],c[`${r}${t}-push-${f}`]={insetInlineStart:`${f/l*100}%`},c[`${r}${t}-pull-${f}`]={insetInlineEnd:`${f/l*100}%`},c[`${r}${t}-offset-${f}`]={marginInlineStart:`${f/l*100}%`},c[`${r}${t}-order-${f}`]={order:f});return c[`${r}${t}-flex`]={flex:`var(--${a}${t}-flex)`},c},tT=(e,t)=>UU(e,t),IU=(e,t,a)=>({[`@media (min-width: ${st(t)})`]:Object.assign({},tT(e,a))}),FU=()=>({}),kU=()=>({}),GU=bi("Grid",BU,FU),qU=e=>({xs:e.screenXSMin,sm:e.screenSMMin,md:e.screenMDMin,lg:e.screenLGMin,xl:e.screenXLMin,xxl:e.screenXXLMin}),YU=bi("Grid",e=>{const t=Ma(e,{gridColumns:24}),a=qU(t);return delete a.xs,[PU(t),tT(t,""),tT(t,"-xs"),Object.keys(a).map(r=>IU(t,a[r],`-${r}`)).reduce((r,l)=>Object.assign(Object.assign({},r),l),{})]},kU);function XU(e){return t=>C.createElement(Rd,{theme:{token:{motion:!1,zIndexPopupBase:0}}},C.createElement(e,Object.assign({},t)))}const WU=(e,t,a,r,l)=>XU(f=>{const{prefixCls:m,style:g}=f,p=C.useRef(null),[y,S]=C.useState(0),[E,T]=C.useState(0),[O,M]=mo(!1,{value:f.open}),{getPrefixCls:A}=C.useContext(ia),D=A("select",m);C.useEffect(()=>{if(M(!0),typeof ResizeObserver<"u"){const j=new ResizeObserver(V=>{const H=V[0].target;S(H.offsetHeight+8),T(H.offsetWidth)}),$=setInterval(()=>{var V;const H=`.${D}-dropdown`,P=(V=p.current)===null||V===void 0?void 0:V.querySelector(H);P&&(clearInterval($),j.observe(P))},10);return()=>{clearInterval($),j.disconnect()}}},[]);let _=Object.assign(Object.assign({},f),{style:Object.assign(Object.assign({},g),{margin:0}),open:O,visible:O,getPopupContainer:()=>p.current});Object.assign(_,{[t]:{overflow:{adjustX:!1,adjustY:!1}}});const z={paddingBottom:y,position:"relative",minWidth:E};return C.createElement("div",{ref:p,style:z},C.createElement(e,Object.assign({},_)))}),u3=function(){if(typeof navigator>"u"||typeof window>"u")return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(e?.substr(0,4))};var b1=function(t){var a=t.className,r=t.customizeIcon,l=t.customizeIconProps,c=t.children,f=t.onMouseDown,m=t.onClick,g=typeof r=="function"?r(l):r;return C.createElement("span",{className:a,onMouseDown:function(y){y.preventDefault(),f?.(y)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:m,"aria-hidden":!0},g!==void 0?g:C.createElement("span",{className:Ye(a.split(/\s+/).map(function(p){return"".concat(p,"-icon")}))},c))},ZU=function(t,a,r,l,c){var f=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,m=arguments.length>6?arguments[6]:void 0,g=arguments.length>7?arguments[7]:void 0,p=we.useMemo(function(){if(Xt(l)==="object")return l.clearIcon;if(c)return c},[l,c]),y=we.useMemo(function(){return!!(!f&&l&&(r.length||m)&&!(g==="combobox"&&m===""))},[l,f,r.length,m,g]);return{allowClear:y,clearIcon:we.createElement(b1,{className:"".concat(t,"-clear"),onMouseDown:a,customizeIcon:p},"×")}},c3=C.createContext(null);function KU(){return C.useContext(c3)}function QU(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,t=C.useState(!1),a=Be(t,2),r=a[0],l=a[1],c=C.useRef(null),f=function(){window.clearTimeout(c.current)};C.useEffect(function(){return f},[]);var m=function(p,y){f(),c.current=window.setTimeout(function(){l(p),y&&y()},e)};return[r,m,f]}function f3(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,t=C.useRef(null),a=C.useRef(null);C.useEffect(function(){return function(){window.clearTimeout(a.current)}},[]);function r(l){(l||t.current===null)&&(t.current=l),window.clearTimeout(a.current),a.current=window.setTimeout(function(){t.current=null},e)}return[function(){return t.current},r]}function JU(e,t,a,r){var l=C.useRef(null);l.current={open:t,triggerOpen:a,customizedTrigger:r},C.useEffect(function(){function c(f){var m;if(!((m=l.current)!==null&&m!==void 0&&m.customizedTrigger)){var g=f.target;g.shadowRoot&&f.composed&&(g=f.composedPath()[0]||g),l.current.open&&e().filter(function(p){return p}).every(function(p){return!p.contains(g)&&p!==g})&&l.current.triggerOpen(!1)}}return window.addEventListener("mousedown",c),function(){return window.removeEventListener("mousedown",c)}},[])}function eI(e){return e&&![Zt.ESC,Zt.SHIFT,Zt.BACKSPACE,Zt.TAB,Zt.WIN_KEY,Zt.ALT,Zt.META,Zt.WIN_KEY_RIGHT,Zt.CTRL,Zt.SEMICOLON,Zt.EQUALS,Zt.CAPS_LOCK,Zt.CONTEXT_MENU,Zt.F1,Zt.F2,Zt.F3,Zt.F4,Zt.F5,Zt.F6,Zt.F7,Zt.F8,Zt.F9,Zt.F10,Zt.F11,Zt.F12].includes(e)}var tI=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],Bm=void 0;function nI(e,t){var a=e.prefixCls,r=e.invalidate,l=e.item,c=e.renderItem,f=e.responsive,m=e.responsiveDisabled,g=e.registerSize,p=e.itemKey,y=e.className,S=e.style,E=e.children,T=e.display,O=e.order,M=e.component,A=M===void 0?"div":M,D=pa(e,tI),_=f&&!T;function z(P){g(p,P)}C.useEffect(function(){return function(){z(null)}},[]);var j=c&&l!==Bm?c(l,{index:O}):E,$;r||($={opacity:_?0:1,height:_?0:Bm,overflowY:_?"hidden":Bm,order:f?O:Bm,pointerEvents:_?"none":Bm,position:_?"absolute":Bm});var V={};_&&(V["aria-hidden"]=!0);var H=C.createElement(A,jt({className:Ye(!r&&a,y),style:ge(ge({},$),S)},V,D,{ref:t}),j);return f&&(H=C.createElement(Zl,{onResize:function(q){var Y=q.offsetWidth;z(Y)},disabled:m},H)),H}var e0=C.forwardRef(nI);e0.displayName="Item";function aI(e){if(typeof MessageChannel>"u")tr(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}function rI(){var e=C.useRef(null),t=function(r){e.current||(e.current=[],aI(function(){bm.unstable_batchedUpdates(function(){e.current.forEach(function(l){l()}),e.current=null})})),e.current.push(r)};return t}function t0(e,t){var a=C.useState(t),r=Be(a,2),l=r[0],c=r[1],f=cr(function(m){e(function(){c(m)})});return[l,f]}var S1=we.createContext(null),iI=["component"],oI=["className"],lI=["className"],sI=function(t,a){var r=C.useContext(S1);if(!r){var l=t.component,c=l===void 0?"div":l,f=pa(t,iI);return C.createElement(c,jt({},f,{ref:a}))}var m=r.className,g=pa(r,oI),p=t.className,y=pa(t,lI);return C.createElement(S1.Provider,{value:null},C.createElement(e0,jt({ref:a,className:Ye(m,p)},g,y)))},d3=C.forwardRef(sI);d3.displayName="RawItem";var uI=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],h3="responsive",m3="invalidate";function cI(e){return"+ ".concat(e.length," ...")}function fI(e,t){var a=e.prefixCls,r=a===void 0?"rc-overflow":a,l=e.data,c=l===void 0?[]:l,f=e.renderItem,m=e.renderRawItem,g=e.itemKey,p=e.itemWidth,y=p===void 0?10:p,S=e.ssr,E=e.style,T=e.className,O=e.maxCount,M=e.renderRest,A=e.renderRawRest,D=e.suffix,_=e.component,z=_===void 0?"div":_,j=e.itemComponent,$=e.onVisibleChange,V=pa(e,uI),H=S==="full",P=rI(),q=t0(P,null),Y=Be(q,2),te=Y[0],G=Y[1],K=te||0,J=t0(P,new Map),ie=Be(J,2),k=ie[0],X=ie[1],Q=t0(P,0),le=Be(Q,2),U=le[0],F=le[1],ne=t0(P,0),ae=Be(ne,2),oe=ae[0],fe=ae[1],ye=t0(P,0),$e=Be(ye,2),ze=$e[0],Fe=$e[1],Ke=C.useState(null),Oe=Be(Ke,2),me=Oe[0],Re=Oe[1],Pe=C.useState(null),be=Be(Pe,2),Ce=be[0],_e=be[1],je=C.useMemo(function(){return Ce===null&&H?Number.MAX_SAFE_INTEGER:Ce||0},[Ce,te]),Ue=C.useState(!1),nt=Be(Ue,2),We=nt[0],it=nt[1],rt="".concat(r,"-item"),Ge=Math.max(U,oe),Rt=O===h3,wt=c.length&&Rt,At=O===m3,$t=wt||typeof O=="number"&&c.length>O,ht=C.useMemo(function(){var vt=c;return wt?te===null&&H?vt=c:vt=c.slice(0,Math.min(c.length,K/y)):typeof O=="number"&&(vt=c.slice(0,O)),vt},[c,y,te,O,wt]),kt=C.useMemo(function(){return wt?c.slice(je+1):c.slice(ht.length)},[c,ht,wt,je]),Vt=C.useCallback(function(vt,Mt){var mt;return typeof g=="function"?g(vt):(mt=g&&vt?.[g])!==null&&mt!==void 0?mt:Mt},[g]),Wt=C.useCallback(f||function(vt){return vt},[f]);function Tt(vt,Mt,mt){Ce===vt&&(Mt===void 0||Mt===me)||(_e(vt),mt||(it(vt<c.length-1),$?.(vt)),Mt!==void 0&&Re(Mt))}function ut(vt,Mt){G(Mt.clientWidth)}function St(vt,Mt){X(function(mt){var Ht=new Map(mt);return Mt===null?Ht.delete(vt):Ht.set(vt,Mt),Ht})}function et(vt,Mt){fe(Mt),F(oe)}function lt(vt,Mt){Fe(Mt)}function I(vt){return k.get(Vt(ht[vt],vt))}Zn(function(){if(K&&typeof Ge=="number"&&ht){var vt=ze,Mt=ht.length,mt=Mt-1;if(!Mt){Tt(0,null);return}for(var Ht=0;Ht<Mt;Ht+=1){var It=I(Ht);if(H&&(It=It||0),It===void 0){Tt(Ht-1,void 0,!0);break}if(vt+=It,mt===0&&vt<=K||Ht===mt-1&&vt+I(mt)<=K){Tt(mt,null);break}else if(vt+Ge>K){Tt(Ht-1,vt-It-ze+oe);break}}D&&I(0)+ze>K&&Re(null)}},[K,k,oe,ze,Vt,ht]);var he=We&&!!kt.length,Qe={};me!==null&&wt&&(Qe={position:"absolute",left:me,top:0});var Je={prefixCls:rt,responsive:wt,component:j,invalidate:At},ft=m?function(vt,Mt){var mt=Vt(vt,Mt);return C.createElement(S1.Provider,{key:mt,value:ge(ge({},Je),{},{order:Mt,item:vt,itemKey:mt,registerSize:St,display:Mt<=je})},m(vt,Mt))}:function(vt,Mt){var mt=Vt(vt,Mt);return C.createElement(e0,jt({},Je,{order:Mt,key:mt,item:vt,renderItem:Wt,itemKey:mt,registerSize:St,display:Mt<=je}))},Ft={order:he?je:Number.MAX_SAFE_INTEGER,className:"".concat(rt,"-rest"),registerSize:et,display:he},_t=M||cI,Dt=A?C.createElement(S1.Provider,{value:ge(ge({},Je),Ft)},A(kt)):C.createElement(e0,jt({},Je,Ft),typeof _t=="function"?_t(kt):_t),dt=C.createElement(z,jt({className:Ye(!At&&r,T),style:E,ref:t},V),ht.map(ft),$t?Dt:null,D&&C.createElement(e0,jt({},Je,{responsive:Rt,responsiveDisabled:!wt,order:je,className:"".concat(rt,"-suffix"),registerSize:lt,display:!0,style:Qe}),D));return Rt?C.createElement(Zl,{onResize:ut,disabled:!wt},dt):dt}var n0=C.forwardRef(fI);n0.displayName="Overflow",n0.Item=d3,n0.RESPONSIVE=h3,n0.INVALIDATE=m3;function dI(e,t,a){var r=ge(ge({},e),t);return Object.keys(t).forEach(function(l){var c=t[l];typeof c=="function"&&(r[l]=function(){for(var f,m=arguments.length,g=new Array(m),p=0;p<m;p++)g[p]=arguments[p];return c.apply(void 0,g),(f=e[l])===null||f===void 0?void 0:f.call.apply(f,[e].concat(g))})}),r}var hI={},mI=["prefixCls","id","inputElement","autoFocus","autoComplete","editable","activeDescendantId","value","open","attrs"],pI=function(t,a){var r=t.prefixCls,l=t.id,c=t.inputElement,f=t.autoFocus,m=t.autoComplete,g=t.editable,p=t.activeDescendantId,y=t.value,S=t.open,E=t.attrs,T=pa(t,mI),O=c||C.createElement("input",null),M=O,A=M.ref,D=M.props;return wd(!("maxLength"in O.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),O=C.cloneElement(O,ge(ge(ge({type:"search"},dI(T,D)),{},{id:l,ref:Wl(a,A),autoComplete:m||"off",autoFocus:f,className:Ye("".concat(r,"-selection-search-input"),D?.className),role:"combobox","aria-expanded":S||!1,"aria-haspopup":"listbox","aria-owns":"".concat(l,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(l,"_list"),"aria-activedescendant":S?p:void 0},E),{},{value:g?y:"",readOnly:!g,unselectable:g?null:"on",style:ge(ge({},D.style),{},{opacity:g?null:0})})),O},nT=C.forwardRef(pI);hI.NODE_ENV!=="production"&&(nT.displayName="Input");var gI={};function aT(e){return Array.isArray(e)?e:e!==void 0?[e]:[]}var vI=typeof window<"u"&&window.document&&window.document.documentElement,yI=gI.NODE_ENV!=="test"&&vI;function bI(e){return e!=null}function SI(e){return!e&&e!==0}function p3(e){return["string","number"].includes(Xt(e))}function g3(e){var t=void 0;return e&&(p3(e.title)?t=e.title.toString():p3(e.label)&&(t=e.label.toString())),t}function CI(e,t){yI?C.useLayoutEffect(e,t):C.useEffect(e,t)}function xI(e){var t;return(t=e.key)!==null&&t!==void 0?t:e.value}var v3=function(t){t.preventDefault(),t.stopPropagation()},EI=function(t){var a=t.id,r=t.prefixCls,l=t.values,c=t.open,f=t.searchValue,m=t.autoClearSearchValue,g=t.inputRef,p=t.placeholder,y=t.disabled,S=t.mode,E=t.showSearch,T=t.autoFocus,O=t.autoComplete,M=t.activeDescendantId,A=t.tabIndex,D=t.removeIcon,_=t.maxTagCount,z=t.maxTagTextLength,j=t.maxTagPlaceholder,$=j===void 0?function(Pe){return"+ ".concat(Pe.length," ...")}:j,V=t.tagRender,H=t.onToggleOpen,P=t.onRemove,q=t.onInputChange,Y=t.onInputPaste,te=t.onInputKeyDown,G=t.onInputMouseDown,K=t.onInputCompositionStart,J=t.onInputCompositionEnd,ie=t.onInputBlur,k=C.useRef(null),X=C.useState(0),Q=Be(X,2),le=Q[0],U=Q[1],F=C.useState(!1),ne=Be(F,2),ae=ne[0],oe=ne[1],fe="".concat(r,"-selection"),ye=c||S==="multiple"&&m===!1||S==="tags"?f:"",$e=S==="tags"||S==="multiple"&&m===!1||E&&(c||ae);CI(function(){U(k.current.scrollWidth)},[ye]);var ze=function(be,Ce,_e,je,Ue){return C.createElement("span",{title:g3(be),className:Ye("".concat(fe,"-item"),de({},"".concat(fe,"-item-disabled"),_e))},C.createElement("span",{className:"".concat(fe,"-item-content")},Ce),je&&C.createElement(b1,{className:"".concat(fe,"-item-remove"),onMouseDown:v3,onClick:Ue,customizeIcon:D},"×"))},Fe=function(be,Ce,_e,je,Ue,nt){var We=function(rt){v3(rt),H(!c)};return C.createElement("span",{onMouseDown:We},V({label:Ce,value:be,disabled:_e,closable:je,onClose:Ue,isMaxTag:!!nt}))},Ke=function(be){var Ce=be.disabled,_e=be.label,je=be.value,Ue=!y&&!Ce,nt=_e;if(typeof z=="number"&&(typeof _e=="string"||typeof _e=="number")){var We=String(nt);We.length>z&&(nt="".concat(We.slice(0,z),"..."))}var it=function(Ge){Ge&&Ge.stopPropagation(),P(be)};return typeof V=="function"?Fe(je,nt,Ce,Ue,it):ze(be,nt,Ce,Ue,it)},Oe=function(be){if(!l.length)return null;var Ce=typeof $=="function"?$(be):$;return typeof V=="function"?Fe(void 0,Ce,!1,!1,void 0,!0):ze({title:Ce},Ce,!1)},me=C.createElement("div",{className:"".concat(fe,"-search"),style:{width:le},onFocus:function(){oe(!0)},onBlur:function(){oe(!1)}},C.createElement(nT,{ref:g,open:c,prefixCls:r,id:a,inputElement:null,disabled:y,autoFocus:T,autoComplete:O,editable:$e,activeDescendantId:M,value:ye,onKeyDown:te,onMouseDown:G,onChange:q,onPaste:Y,onCompositionStart:K,onCompositionEnd:J,onBlur:ie,tabIndex:A,attrs:$m(t,!0)}),C.createElement("span",{ref:k,className:"".concat(fe,"-search-mirror"),"aria-hidden":!0},ye," ")),Re=C.createElement(n0,{prefixCls:"".concat(fe,"-overflow"),data:l,renderItem:Ke,renderRest:Oe,suffix:me,itemKey:xI,maxCount:_});return C.createElement("span",{className:"".concat(fe,"-wrap")},Re,!l.length&&!ye&&C.createElement("span",{className:"".concat(fe,"-placeholder")},p))},wI=function(t){var a=t.inputElement,r=t.prefixCls,l=t.id,c=t.inputRef,f=t.disabled,m=t.autoFocus,g=t.autoComplete,p=t.activeDescendantId,y=t.mode,S=t.open,E=t.values,T=t.placeholder,O=t.tabIndex,M=t.showSearch,A=t.searchValue,D=t.activeValue,_=t.maxLength,z=t.onInputKeyDown,j=t.onInputMouseDown,$=t.onInputChange,V=t.onInputPaste,H=t.onInputCompositionStart,P=t.onInputCompositionEnd,q=t.onInputBlur,Y=t.title,te=C.useState(!1),G=Be(te,2),K=G[0],J=G[1],ie=y==="combobox",k=ie||M,X=E[0],Q=A||"";ie&&D&&!K&&(Q=D),C.useEffect(function(){ie&&J(!1)},[ie,D]);var le=y!=="combobox"&&!S&&!M?!1:!!Q,U=Y===void 0?g3(X):Y,F=C.useMemo(function(){return X?null:C.createElement("span",{className:"".concat(r,"-selection-placeholder"),style:le?{visibility:"hidden"}:void 0},T)},[X,le,T,r]);return C.createElement("span",{className:"".concat(r,"-selection-wrap")},C.createElement("span",{className:"".concat(r,"-selection-search")},C.createElement(nT,{ref:c,prefixCls:r,id:l,open:S,inputElement:a,disabled:f,autoFocus:m,autoComplete:g,editable:k,activeDescendantId:p,value:Q,onKeyDown:z,onMouseDown:j,onChange:function(ae){J(!0),$(ae)},onPaste:V,onCompositionStart:H,onCompositionEnd:P,onBlur:q,tabIndex:O,attrs:$m(t,!0),maxLength:ie?_:void 0})),!ie&&X?C.createElement("span",{className:"".concat(r,"-selection-item"),title:U,style:le?{visibility:"hidden"}:void 0},X.label):null,F)},TI={},OI=function(t,a){var r=C.useRef(null),l=C.useRef(!1),c=t.prefixCls,f=t.open,m=t.mode,g=t.showSearch,p=t.tokenWithEnter,y=t.disabled,S=t.prefix,E=t.autoClearSearchValue,T=t.onSearch,O=t.onSearchSubmit,M=t.onToggleOpen,A=t.onInputKeyDown,D=t.onInputBlur,_=t.domRef;C.useImperativeHandle(a,function(){return{focus:function(U){r.current.focus(U)},blur:function(){r.current.blur()}}});var z=f3(0),j=Be(z,2),$=j[0],V=j[1],H=function(U){var F=U.which,ne=r.current instanceof HTMLTextAreaElement;!ne&&f&&(F===Zt.UP||F===Zt.DOWN)&&U.preventDefault(),A&&A(U),F===Zt.ENTER&&m==="tags"&&!l.current&&!f&&O?.(U.target.value),!(ne&&!f&&~[Zt.UP,Zt.DOWN,Zt.LEFT,Zt.RIGHT].indexOf(F))&&eI(F)&&M(!0)},P=function(){V(!0)},q=C.useRef(null),Y=function(U){T(U,!0,l.current)!==!1&&M(!0)},te=function(){l.current=!0},G=function(U){l.current=!1,m!=="combobox"&&Y(U.target.value)},K=function(U){var F=U.target.value;if(p&&q.current&&/[\r\n]/.test(q.current)){var ne=q.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");F=F.replace(ne,q.current)}q.current=null,Y(F)},J=function(U){var F=U.clipboardData,ne=F?.getData("text");q.current=ne||""},ie=function(U){var F=U.target;if(F!==r.current){var ne=document.body.style.msTouchAction!==void 0;ne?setTimeout(function(){r.current.focus()}):r.current.focus()}},k=function(U){var F=$();U.target!==r.current&&!F&&!(m==="combobox"&&y)&&U.preventDefault(),(m!=="combobox"&&(!g||!F)||!f)&&(f&&E!==!1&&T("",!0,!1),M())},X={inputRef:r,onInputKeyDown:H,onInputMouseDown:P,onInputChange:K,onInputPaste:J,onInputCompositionStart:te,onInputCompositionEnd:G,onInputBlur:D},Q=m==="multiple"||m==="tags"?C.createElement(EI,jt({},t,X)):C.createElement(wI,jt({},t,X));return C.createElement("div",{ref:_,className:"".concat(c,"-selector"),onClick:ie,onMouseDown:k},S&&C.createElement("div",{className:"".concat(c,"-prefix")},S),Q)},y3=C.forwardRef(OI);TI.NODE_ENV!=="production"&&(y3.displayName="Selector");function RI(e){var t=e.prefixCls,a=e.align,r=e.arrow,l=e.arrowPos,c=r||{},f=c.className,m=c.content,g=l.x,p=g===void 0?0:g,y=l.y,S=y===void 0?0:y,E=C.useRef();if(!a||!a.points)return null;var T={position:"absolute"};if(a.autoArrow!==!1){var O=a.points[0],M=a.points[1],A=O[0],D=O[1],_=M[0],z=M[1];A===_||!["t","b"].includes(A)?T.top=S:A==="t"?T.top=0:T.bottom=0,D===z||!["l","r"].includes(D)?T.left=p:D==="l"?T.left=0:T.right=0}return C.createElement("div",{ref:E,className:Ye("".concat(t,"-arrow"),f),style:T},m)}function AI(e){var t=e.prefixCls,a=e.open,r=e.zIndex,l=e.mask,c=e.motion;return l?C.createElement(kv,jt({},c,{motionAppear:!0,visible:a,removeOnLeave:!0}),function(f){var m=f.className;return C.createElement("div",{style:{zIndex:r},className:Ye("".concat(t,"-mask"),m)})}):null}var MI={},b3=C.memo(function(e){var t=e.children;return t},function(e,t){return t.cache});MI.NODE_ENV!=="production"&&(b3.displayName="PopupContent");var _I={},S3=C.forwardRef(function(e,t){var a=e.popup,r=e.className,l=e.prefixCls,c=e.style,f=e.target,m=e.onVisibleChanged,g=e.open,p=e.keepDom,y=e.fresh,S=e.onClick,E=e.mask,T=e.arrow,O=e.arrowPos,M=e.align,A=e.motion,D=e.maskMotion,_=e.forceRender,z=e.getPopupContainer,j=e.autoDestroy,$=e.portal,V=e.zIndex,H=e.onMouseEnter,P=e.onMouseLeave,q=e.onPointerEnter,Y=e.onPointerDownCapture,te=e.ready,G=e.offsetX,K=e.offsetY,J=e.offsetR,ie=e.offsetB,k=e.onAlign,X=e.onPrepare,Q=e.stretch,le=e.targetWidth,U=e.targetHeight,F=typeof a=="function"?a():a,ne=g||p,ae=z?.length>0,oe=C.useState(!z||!ae),fe=Be(oe,2),ye=fe[0],$e=fe[1];if(Zn(function(){!ye&&ae&&f&&$e(!0)},[ye,ae,f]),!ye)return null;var ze="auto",Fe={left:"-1000vw",top:"-1000vh",right:ze,bottom:ze};if(te||!g){var Ke,Oe=M.points,me=M.dynamicInset||((Ke=M._experimental)===null||Ke===void 0?void 0:Ke.dynamicInset),Re=me&&Oe[0][1]==="r",Pe=me&&Oe[0][0]==="b";Re?(Fe.right=J,Fe.left=ze):(Fe.left=G,Fe.right=ze),Pe?(Fe.bottom=ie,Fe.top=ze):(Fe.top=K,Fe.bottom=ze)}var be={};return Q&&(Q.includes("height")&&U?be.height=U:Q.includes("minHeight")&&U&&(be.minHeight=U),Q.includes("width")&&le?be.width=le:Q.includes("minWidth")&&le&&(be.minWidth=le)),g||(be.pointerEvents="none"),C.createElement($,{open:_||ne,getContainer:z&&function(){return z(f)},autoDestroy:j},C.createElement(AI,{prefixCls:l,open:g,zIndex:V,mask:E,motion:D}),C.createElement(Zl,{onResize:k,disabled:!g},function(Ce){return C.createElement(kv,jt({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:_,leavedClassName:"".concat(l,"-hidden")},A,{onAppearPrepare:X,onEnterPrepare:X,visible:g,onVisibleChanged:function(je){var Ue;A==null||(Ue=A.onVisibleChanged)===null||Ue===void 0||Ue.call(A,je),m(je)}}),function(_e,je){var Ue=_e.className,nt=_e.style,We=Ye(l,Ue,r);return C.createElement("div",{ref:Wl(Ce,t,je),className:We,style:ge(ge(ge(ge({"--arrow-x":"".concat(O.x||0,"px"),"--arrow-y":"".concat(O.y||0,"px")},Fe),be),nt),{},{boxSizing:"border-box",zIndex:V},c),onMouseEnter:H,onMouseLeave:P,onPointerEnter:q,onClick:S,onPointerDownCapture:Y},T&&C.createElement(RI,{prefixCls:l,arrow:T,arrowPos:O,align:M}),C.createElement(b3,{cache:!g&&!y},F))})}))});_I.NODE_ENV!=="production"&&(S3.displayName="Popup");var DI={},C3=C.forwardRef(function(e,t){var a=e.children,r=e.getTriggerDOMNode,l=Rv(a),c=C.useCallback(function(m){vE(t,r?r(m):m)},[r]),f=Ov(c,_S(a));return l?C.cloneElement(a,{ref:f}):a});DI.NODE_ENV!=="production"&&(C3.displayName="TriggerWrapper");var x3=C.createContext(null);function E3(e){return e?Array.isArray(e)?e:[e]:[]}function NI(e,t,a,r){return C.useMemo(function(){var l=E3(a??t),c=E3(r??t),f=new Set(l),m=new Set(c);return e&&(f.has("hover")&&(f.delete("hover"),f.add("click")),m.has("hover")&&(m.delete("hover"),m.add("click"))),[f,m]},[e,t,a,r])}function $I(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],a=arguments.length>2?arguments[2]:void 0;return a?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function zI(e,t,a,r){for(var l=a.points,c=Object.keys(e),f=0;f<c.length;f+=1){var m,g=c[f];if($I((m=e[g])===null||m===void 0?void 0:m.points,l,r))return"".concat(t,"-placement-").concat(g)}return""}function w3(e,t,a,r){return t||(a?{motionName:"".concat(e,"-").concat(a)}:r?{motionName:r}:null)}function a0(e){return e.ownerDocument.defaultView}function rT(e){for(var t=[],a=e?.parentElement,r=["hidden","scroll","clip","auto"];a;){var l=a0(a).getComputedStyle(a),c=l.overflowX,f=l.overflowY,m=l.overflow;[c,f,m].some(function(g){return r.includes(g)})&&t.push(a),a=a.parentElement}return t}function r0(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?t:e}function i0(e){return r0(parseFloat(e),0)}function T3(e,t){var a=ge({},e);return(t||[]).forEach(function(r){if(!(r instanceof HTMLBodyElement||r instanceof HTMLHtmlElement)){var l=a0(r).getComputedStyle(r),c=l.overflow,f=l.overflowClipMargin,m=l.borderTopWidth,g=l.borderBottomWidth,p=l.borderLeftWidth,y=l.borderRightWidth,S=r.getBoundingClientRect(),E=r.offsetHeight,T=r.clientHeight,O=r.offsetWidth,M=r.clientWidth,A=i0(m),D=i0(g),_=i0(p),z=i0(y),j=r0(Math.round(S.width/O*1e3)/1e3),$=r0(Math.round(S.height/E*1e3)/1e3),V=(O-M-_-z)*j,H=(E-T-A-D)*$,P=A*$,q=D*$,Y=_*j,te=z*j,G=0,K=0;if(c==="clip"){var J=i0(f);G=J*j,K=J*$}var ie=S.x+Y-G,k=S.y+P-K,X=ie+S.width+2*G-Y-te-V,Q=k+S.height+2*K-P-q-H;a.left=Math.max(a.left,ie),a.top=Math.max(a.top,k),a.right=Math.min(a.right,X),a.bottom=Math.min(a.bottom,Q)}}),a}function O3(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a="".concat(t),r=a.match(/^(.*)\%$/);return r?e*(parseFloat(r[1])/100):parseFloat(a)}function R3(e,t){var a=t||[],r=Be(a,2),l=r[0],c=r[1];return[O3(e.width,l),O3(e.height,c)]}function A3(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[e[0],e[1]]}function Pm(e,t){var a=t[0],r=t[1],l,c;return a==="t"?c=e.y:a==="b"?c=e.y+e.height:c=e.y+e.height/2,r==="l"?l=e.x:r==="r"?l=e.x+e.width:l=e.x+e.width/2,{x:l,y:c}}function Qc(e,t){var a={t:"b",b:"t",l:"r",r:"l"};return e.map(function(r,l){return l===t?a[r]||"c":r}).join("")}function jI(e,t,a,r,l,c,f){var m=C.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:l[r]||{}}),g=Be(m,2),p=g[0],y=g[1],S=C.useRef(0),E=C.useMemo(function(){return t?rT(t):[]},[t]),T=C.useRef({}),O=function(){T.current={}};e||O();var M=cr(function(){if(t&&a&&e){let Er=function(Zi,Pr){var Ti=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Rt,Ju=ne.x+Zi,nu=ne.y+Pr,uf=Ju+Pe,Ki=nu+Re,Et=Math.max(Ju,Ti.left),Qt=Math.max(nu,Ti.top),qn=Math.min(uf,Ti.right),Bn=Math.min(Ki,Ti.bottom);return Math.max(0,(qn-Et)*(Bn-Qt))},Uo=function(){Rn=ne.y+Ht,vn=Rn+Re,nr=ne.x+mt,Un=nr+Pe};var _,z,j,$,V=t,H=V.ownerDocument,P=a0(V),q=P.getComputedStyle(V),Y=q.position,te=V.style.left,G=V.style.top,K=V.style.right,J=V.style.bottom,ie=V.style.overflow,k=ge(ge({},l[r]),c),X=H.createElement("div");(_=V.parentElement)===null||_===void 0||_.appendChild(X),X.style.left="".concat(V.offsetLeft,"px"),X.style.top="".concat(V.offsetTop,"px"),X.style.position=Y,X.style.height="".concat(V.offsetHeight,"px"),X.style.width="".concat(V.offsetWidth,"px"),V.style.left="0",V.style.top="0",V.style.right="auto",V.style.bottom="auto",V.style.overflow="hidden";var Q;if(Array.isArray(a))Q={x:a[0],y:a[1],width:0,height:0};else{var le,U,F=a.getBoundingClientRect();F.x=(le=F.x)!==null&&le!==void 0?le:F.left,F.y=(U=F.y)!==null&&U!==void 0?U:F.top,Q={x:F.x,y:F.y,width:F.width,height:F.height}}var ne=V.getBoundingClientRect(),ae=P.getComputedStyle(V),oe=ae.height,fe=ae.width;ne.x=(z=ne.x)!==null&&z!==void 0?z:ne.left,ne.y=(j=ne.y)!==null&&j!==void 0?j:ne.top;var ye=H.documentElement,$e=ye.clientWidth,ze=ye.clientHeight,Fe=ye.scrollWidth,Ke=ye.scrollHeight,Oe=ye.scrollTop,me=ye.scrollLeft,Re=ne.height,Pe=ne.width,be=Q.height,Ce=Q.width,_e={left:0,top:0,right:$e,bottom:ze},je={left:-me,top:-Oe,right:Fe-me,bottom:Ke-Oe},Ue=k.htmlRegion,nt="visible",We="visibleFirst";Ue!=="scroll"&&Ue!==We&&(Ue=nt);var it=Ue===We,rt=T3(je,E),Ge=T3(_e,E),Rt=Ue===nt?Ge:rt,wt=it?Ge:Rt;V.style.left="auto",V.style.top="auto",V.style.right="0",V.style.bottom="0";var At=V.getBoundingClientRect();V.style.left=te,V.style.top=G,V.style.right=K,V.style.bottom=J,V.style.overflow=ie,($=V.parentElement)===null||$===void 0||$.removeChild(X);var $t=r0(Math.round(Pe/parseFloat(fe)*1e3)/1e3),ht=r0(Math.round(Re/parseFloat(oe)*1e3)/1e3);if($t===0||ht===0||Tv(a)&&!rN(a))return;var kt=k.offset,Vt=k.targetOffset,Wt=R3(ne,kt),Tt=Be(Wt,2),ut=Tt[0],St=Tt[1],et=R3(Q,Vt),lt=Be(et,2),I=lt[0],he=lt[1];Q.x-=I,Q.y-=he;var Qe=k.points||[],Je=Be(Qe,2),ft=Je[0],Ft=Je[1],_t=A3(Ft),Dt=A3(ft),dt=Pm(Q,_t),vt=Pm(ne,Dt),Mt=ge({},k),mt=dt.x-vt.x+ut,Ht=dt.y-vt.y+St,It=Er(mt,Ht),ct=Er(mt,Ht,Ge),tt=Pm(Q,["t","l"]),gt=Pm(ne,["t","l"]),bt=Pm(Q,["b","r"]),Ot=Pm(ne,["b","r"]),Bt=k.overflow||{},En=Bt.adjustX,ot=Bt.adjustY,On=Bt.shiftX,Jt=Bt.shiftY,zn=function(Pr){return typeof Pr=="boolean"?Pr:Pr>=0},Rn,vn,nr,Un;Uo();var nn=zn(ot),pt=Dt[0]===_t[0];if(nn&&Dt[0]==="t"&&(vn>wt.bottom||T.current.bt)){var xt=Ht;pt?xt-=Re-be:xt=tt.y-Ot.y-St;var Kt=Er(mt,xt),fn=Er(mt,xt,Ge);Kt>It||Kt===It&&(!it||fn>=ct)?(T.current.bt=!0,Ht=xt,St=-St,Mt.points=[Qc(Dt,0),Qc(_t,0)]):T.current.bt=!1}if(nn&&Dt[0]==="b"&&(Rn<wt.top||T.current.tb)){var Ln=Ht;pt?Ln+=Re-be:Ln=bt.y-gt.y-St;var Qa=Er(mt,Ln),sa=Er(mt,Ln,Ge);Qa>It||Qa===It&&(!it||sa>=ct)?(T.current.tb=!0,Ht=Ln,St=-St,Mt.points=[Qc(Dt,0),Qc(_t,0)]):T.current.tb=!1}var ga=zn(En),jr=Dt[1]===_t[1];if(ga&&Dt[1]==="l"&&(Un>wt.right||T.current.rl)){var hr=mt;jr?hr-=Pe-Ce:hr=tt.x-Ot.x-ut;var zt=Er(hr,Ht),ln=Er(hr,Ht,Ge);zt>It||zt===It&&(!it||ln>=ct)?(T.current.rl=!0,mt=hr,ut=-ut,Mt.points=[Qc(Dt,1),Qc(_t,1)]):T.current.rl=!1}if(ga&&Dt[1]==="r"&&(nr<wt.left||T.current.lr)){var an=mt;jr?an+=Pe-Ce:an=bt.x-gt.x-ut;var za=Er(an,Ht),ja=Er(an,Ht,Ge);za>It||za===It&&(!it||ja>=ct)?(T.current.lr=!0,mt=an,ut=-ut,Mt.points=[Qc(Dt,1),Qc(_t,1)]):T.current.lr=!1}Uo();var va=On===!0?0:On;typeof va=="number"&&(nr<Ge.left&&(mt-=nr-Ge.left-ut,Q.x+Ce<Ge.left+va&&(mt+=Q.x-Ge.left+Ce-va)),Un>Ge.right&&(mt-=Un-Ge.right-ut,Q.x>Ge.right-va&&(mt+=Q.x-Ge.right+va)));var Lr=Jt===!0?0:Jt;typeof Lr=="number"&&(Rn<Ge.top&&(Ht-=Rn-Ge.top-St,Q.y+be<Ge.top+Lr&&(Ht+=Q.y-Ge.top+be-Lr)),vn>Ge.bottom&&(Ht-=vn-Ge.bottom-St,Q.y>Ge.bottom-Lr&&(Ht+=Q.y-Ge.bottom+Lr)));var oi=ne.x+mt,Vr=oi+Pe,li=ne.y+Ht,Hr=li+Re,dn=Q.x,Gt=dn+Ce,La=Q.y,Ia=La+be,ea=Math.max(oi,dn),Kn=Math.min(Vr,Gt),Br=(ea+Kn)/2,xr=Br-oi,ar=Math.max(li,La),yo=Math.min(Hr,Ia),si=(ar+yo)/2,Wi=si-li;f?.(t,Mt);var Fa=At.right-ne.x-(mt+ne.width),Po=At.bottom-ne.y-(Ht+ne.height);$t===1&&(mt=Math.round(mt),Fa=Math.round(Fa)),ht===1&&(Ht=Math.round(Ht),Po=Math.round(Po));var kd={ready:!0,offsetX:mt/$t,offsetY:Ht/ht,offsetR:Fa/$t,offsetB:Po/ht,arrowX:xr/$t,arrowY:Wi/ht,scaleX:$t,scaleY:ht,align:Mt};y(kd)}}),A=function(){S.current+=1;var z=S.current;Promise.resolve().then(function(){S.current===z&&M()})},D=function(){y(function(z){return ge(ge({},z),{},{ready:!1})})};return Zn(D,[r]),Zn(function(){e||D()},[e]),[p.ready,p.offsetX,p.offsetY,p.offsetR,p.offsetB,p.arrowX,p.arrowY,p.scaleX,p.scaleY,p.align,A]}function LI(e,t,a,r,l){Zn(function(){if(e&&t&&a){let S=function(){r(),l()};var c=t,f=a,m=rT(c),g=rT(f),p=a0(f),y=new Set([p].concat(Nt(m),Nt(g)));return y.forEach(function(E){E.addEventListener("scroll",S,{passive:!0})}),p.addEventListener("resize",S,{passive:!0}),r(),function(){y.forEach(function(E){E.removeEventListener("scroll",S),p.removeEventListener("resize",S)})}}},[e,t,a])}var VI={};function HI(e,t,a,r,l,c,f,m){var g=C.useRef(e);g.current=e;var p=C.useRef(!1);C.useEffect(function(){if(t&&r&&(!l||c)){var S=function(){p.current=!1},E=function(j){var $;g.current&&!f((($=j.composedPath)===null||$===void 0||($=$.call(j))===null||$===void 0?void 0:$[0])||j.target)&&!p.current&&m(!1)},T=a0(r);T.addEventListener("pointerdown",S,!0),T.addEventListener("mousedown",E,!0),T.addEventListener("contextmenu",E,!0);var O=i1(a);if(O&&(O.addEventListener("mousedown",E,!0),O.addEventListener("contextmenu",E,!0)),VI.NODE_ENV!=="production"){var M,A,D=a==null||(M=a.getRootNode)===null||M===void 0?void 0:M.call(a),_=(A=r.getRootNode)===null||A===void 0?void 0:A.call(r);wd(D===_,"trigger element and popup element should in same shadow root.")}return function(){T.removeEventListener("pointerdown",S,!0),T.removeEventListener("mousedown",E,!0),T.removeEventListener("contextmenu",E,!0),O&&(O.removeEventListener("mousedown",E,!0),O.removeEventListener("contextmenu",E,!0))}}},[t,a,r,l,c]);function y(){p.current=!0}return y}var BI={},PI=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];function UI(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Bw,t=C.forwardRef(function(a,r){var l=a.prefixCls,c=l===void 0?"rc-trigger-popup":l,f=a.children,m=a.action,g=m===void 0?"hover":m,p=a.showAction,y=a.hideAction,S=a.popupVisible,E=a.defaultPopupVisible,T=a.onPopupVisibleChange,O=a.afterPopupVisibleChange,M=a.mouseEnterDelay,A=a.mouseLeaveDelay,D=A===void 0?.1:A,_=a.focusDelay,z=a.blurDelay,j=a.mask,$=a.maskClosable,V=$===void 0?!0:$,H=a.getPopupContainer,P=a.forceRender,q=a.autoDestroy,Y=a.destroyPopupOnHide,te=a.popup,G=a.popupClassName,K=a.popupStyle,J=a.popupPlacement,ie=a.builtinPlacements,k=ie===void 0?{}:ie,X=a.popupAlign,Q=a.zIndex,le=a.stretch,U=a.getPopupClassNameFromAlign,F=a.fresh,ne=a.alignPoint,ae=a.onPopupClick,oe=a.onPopupAlign,fe=a.arrow,ye=a.popupMotion,$e=a.maskMotion,ze=a.popupTransitionName,Fe=a.popupAnimation,Ke=a.maskTransitionName,Oe=a.maskAnimation,me=a.className,Re=a.getTriggerDOMNode,Pe=pa(a,PI),be=q||Y||!1,Ce=C.useState(!1),_e=Be(Ce,2),je=_e[0],Ue=_e[1];Zn(function(){Ue(u3())},[]);var nt=C.useRef({}),We=C.useContext(x3),it=C.useMemo(function(){return{registerSubPopup:function(Qt,qn){nt.current[Qt]=qn,We?.registerSubPopup(Qt,qn)}}},[We]),rt=PN(),Ge=C.useState(null),Rt=Be(Ge,2),wt=Rt[0],At=Rt[1],$t=C.useRef(null),ht=cr(function(Et){$t.current=Et,Tv(Et)&&wt!==Et&&At(Et),We?.registerSubPopup(rt,Et)}),kt=C.useState(null),Vt=Be(kt,2),Wt=Vt[0],Tt=Vt[1],ut=C.useRef(null),St=cr(function(Et){Tv(Et)&&Wt!==Et&&(Tt(Et),ut.current=Et)}),et=C.Children.only(f),lt=et?.props||{},I={},he=cr(function(Et){var Qt,qn,Bn=Wt;return Bn?.contains(Et)||((Qt=i1(Bn))===null||Qt===void 0?void 0:Qt.host)===Et||Et===Bn||wt?.contains(Et)||((qn=i1(wt))===null||qn===void 0?void 0:qn.host)===Et||Et===wt||Object.values(nt.current).some(function(ya){return ya?.contains(Et)||Et===ya})}),Qe=w3(c,ye,Fe,ze),Je=w3(c,$e,Oe,Ke),ft=C.useState(E||!1),Ft=Be(ft,2),_t=Ft[0],Dt=Ft[1],dt=S??_t,vt=cr(function(Et){S===void 0&&Dt(Et)});Zn(function(){Dt(S||!1)},[S]);var Mt=C.useRef(dt);Mt.current=dt;var mt=C.useRef([]);mt.current=[];var Ht=cr(function(Et){var Qt;vt(Et),((Qt=mt.current[mt.current.length-1])!==null&&Qt!==void 0?Qt:dt)!==Et&&(mt.current.push(Et),T?.(Et))}),It=C.useRef(),ct=function(){clearTimeout(It.current)},tt=function(Qt){var qn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;ct(),qn===0?Ht(Qt):It.current=setTimeout(function(){Ht(Qt)},qn*1e3)};C.useEffect(function(){return ct},[]);var gt=C.useState(!1),bt=Be(gt,2),Ot=bt[0],Bt=bt[1];Zn(function(Et){(!Et||dt)&&Bt(!0)},[dt]);var En=C.useState(null),ot=Be(En,2),On=ot[0],Jt=ot[1],zn=C.useState(null),Rn=Be(zn,2),vn=Rn[0],nr=Rn[1],Un=function(Qt){nr([Qt.clientX,Qt.clientY])},nn=jI(dt,wt,ne&&vn!==null?vn:Wt,J,k,X,oe),pt=Be(nn,11),xt=pt[0],Kt=pt[1],fn=pt[2],Ln=pt[3],Qa=pt[4],sa=pt[5],ga=pt[6],jr=pt[7],hr=pt[8],zt=pt[9],ln=pt[10],an=NI(je,g,p,y),za=Be(an,2),ja=za[0],va=za[1],Lr=ja.has("click"),oi=va.has("click")||va.has("contextMenu"),Vr=cr(function(){Ot||ln()}),li=function(){Mt.current&&ne&&oi&&tt(!1)};LI(dt,Wt,wt,Vr,li),Zn(function(){Vr()},[vn,J]),Zn(function(){dt&&!(k!=null&&k[J])&&Vr()},[JSON.stringify(X)]);var Hr=C.useMemo(function(){var Et=zI(k,c,zt,ne);return Ye(Et,U?.(zt))},[zt,U,k,c,ne]);C.useImperativeHandle(r,function(){return{nativeElement:ut.current,popupElement:$t.current,forceAlign:Vr}});var dn=C.useState(0),Gt=Be(dn,2),La=Gt[0],Ia=Gt[1],ea=C.useState(0),Kn=Be(ea,2),Br=Kn[0],xr=Kn[1],ar=function(){if(le&&Wt){var Qt=Wt.getBoundingClientRect();Ia(Qt.width),xr(Qt.height)}},yo=function(){ar(),Vr()},si=function(Qt){Bt(!1),ln(),O?.(Qt)},Wi=function(){return new Promise(function(Qt){ar(),Jt(function(){return Qt})})};Zn(function(){On&&(ln(),On(),Jt(null))},[On]);function Fa(Et,Qt,qn,Bn){I[Et]=function(ya){var bo;Bn?.(ya),tt(Qt,qn);for(var us=arguments.length,au=new Array(us>1?us-1:0),ka=1;ka<us;ka++)au[ka-1]=arguments[ka];(bo=lt[Et])===null||bo===void 0||bo.call.apply(bo,[lt,ya].concat(au))}}(Lr||oi)&&(I.onClick=function(Et){var Qt;Mt.current&&oi?tt(!1):!Mt.current&&Lr&&(Un(Et),tt(!0));for(var qn=arguments.length,Bn=new Array(qn>1?qn-1:0),ya=1;ya<qn;ya++)Bn[ya-1]=arguments[ya];(Qt=lt.onClick)===null||Qt===void 0||Qt.call.apply(Qt,[lt,Et].concat(Bn))});var Po=HI(dt,oi,Wt,wt,j,V,he,tt),kd=ja.has("hover"),Er=va.has("hover"),Uo,Zi;kd&&(Fa("onMouseEnter",!0,M,function(Et){Un(Et)}),Fa("onPointerEnter",!0,M,function(Et){Un(Et)}),Uo=function(Qt){(dt||Ot)&&wt!==null&&wt!==void 0&&wt.contains(Qt.target)&&tt(!0,M)},ne&&(I.onMouseMove=function(Et){var Qt;(Qt=lt.onMouseMove)===null||Qt===void 0||Qt.call(lt,Et)})),Er&&(Fa("onMouseLeave",!1,D),Fa("onPointerLeave",!1,D),Zi=function(){tt(!1,D)}),ja.has("focus")&&Fa("onFocus",!0,_),va.has("focus")&&Fa("onBlur",!1,z),ja.has("contextMenu")&&(I.onContextMenu=function(Et){var Qt;Mt.current&&va.has("contextMenu")?tt(!1):(Un(Et),tt(!0)),Et.preventDefault();for(var qn=arguments.length,Bn=new Array(qn>1?qn-1:0),ya=1;ya<qn;ya++)Bn[ya-1]=arguments[ya];(Qt=lt.onContextMenu)===null||Qt===void 0||Qt.call.apply(Qt,[lt,Et].concat(Bn))}),me&&(I.className=Ye(lt.className,me));var Pr=ge(ge({},lt),I),Ti={},Ju=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];Ju.forEach(function(Et){Pe[Et]&&(Ti[Et]=function(){for(var Qt,qn=arguments.length,Bn=new Array(qn),ya=0;ya<qn;ya++)Bn[ya]=arguments[ya];(Qt=Pr[Et])===null||Qt===void 0||Qt.call.apply(Qt,[Pr].concat(Bn)),Pe[Et].apply(Pe,Bn)})});var nu=C.cloneElement(et,ge(ge({},Pr),Ti)),uf={x:sa,y:ga},Ki=fe?ge({},fe!==!0?fe:{}):null;return C.createElement(C.Fragment,null,C.createElement(Zl,{disabled:!dt,ref:St,onResize:yo},C.createElement(C3,{getTriggerDOMNode:Re},nu)),C.createElement(x3.Provider,{value:it},C.createElement(S3,{portal:e,ref:ht,prefixCls:c,popup:te,className:Ye(G,Hr),style:K,target:Wt,onMouseEnter:Uo,onMouseLeave:Zi,onPointerEnter:Uo,zIndex:Q,open:dt,keepDom:Ot,fresh:F,onClick:ae,onPointerDownCapture:Po,mask:j,motion:Qe,maskMotion:Je,onVisibleChanged:si,onPrepare:Wi,forceRender:P,autoDestroy:be,getPopupContainer:H,align:zt,arrow:Ki,arrowPos:uf,ready:xt,offsetX:Kt,offsetY:fn,offsetR:Ln,offsetB:Qa,onAlign:Vr,stretch:le,targetWidth:La/jr,targetHeight:Br/hr})))});return BI.NODE_ENV!=="production"&&(t.displayName="Trigger"),t}const M3=UI(Bw);var II={},FI=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],kI=function(t){var a=t===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:a,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:a,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:a,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:a,adjustY:1},htmlRegion:"scroll"}}},GI=function(t,a){var r=t.prefixCls;t.disabled;var l=t.visible,c=t.children,f=t.popupElement,m=t.animation,g=t.transitionName,p=t.dropdownStyle,y=t.dropdownClassName,S=t.direction,E=S===void 0?"ltr":S,T=t.placement,O=t.builtinPlacements,M=t.dropdownMatchSelectWidth,A=t.dropdownRender,D=t.dropdownAlign,_=t.getPopupContainer,z=t.empty,j=t.getTriggerDOMNode,$=t.onPopupVisibleChange,V=t.onPopupMouseEnter,H=pa(t,FI),P="".concat(r,"-dropdown"),q=f;A&&(q=A(f));var Y=C.useMemo(function(){return O||kI(M)},[O,M]),te=m?"".concat(P,"-").concat(m):g,G=typeof M=="number",K=C.useMemo(function(){return G?null:M===!1?"minWidth":"width"},[M,G]),J=p;G&&(J=ge(ge({},J),{},{width:M}));var ie=C.useRef(null);return C.useImperativeHandle(a,function(){return{getPopupElement:function(){var X;return(X=ie.current)===null||X===void 0?void 0:X.popupElement}}}),C.createElement(M3,jt({},H,{showAction:$?["click"]:[],hideAction:$?["click"]:[],popupPlacement:T||(E==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:Y,prefixCls:P,popupTransitionName:te,popup:C.createElement("div",{onMouseEnter:V},q),ref:ie,stretch:K,popupAlign:D,popupVisible:l,getPopupContainer:_,popupClassName:Ye(y,de({},"".concat(P,"-empty"),z)),popupStyle:J,getTriggerDOMNode:j,onPopupVisibleChange:$}),c)},_3=C.forwardRef(GI);II.NODE_ENV!=="production"&&(_3.displayName="SelectTrigger");function D3(e,t){var a=e.key,r;return"value"in e&&(r=e.value),a??(r!==void 0?r:"rc-index-key-".concat(t))}function iT(e){return typeof e<"u"&&!Number.isNaN(e)}function N3(e,t){var a=e||{},r=a.label,l=a.value,c=a.options,f=a.groupLabel,m=r||(t?"children":"label");return{label:m,value:l||"value",options:c||"options",groupLabel:f||m}}function qI(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=t.fieldNames,r=t.childrenAsData,l=[],c=N3(a,!1),f=c.label,m=c.value,g=c.options,p=c.groupLabel;function y(S,E){Array.isArray(S)&&S.forEach(function(T){if(E||!(g in T)){var O=T[m];l.push({key:D3(T,l.length),groupOption:E,data:T,label:T[f],value:O})}else{var M=T[p];M===void 0&&r&&(M=T.label),l.push({key:D3(T,l.length),group:!0,data:T,label:M}),y(T[g],!0)}})}return y(e,!1),l}function oT(e){var t=ge({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return Dn(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}var YI=function(t,a,r){if(!a||!a.length)return null;var l=!1,c=function m(g,p){var y=V_(p),S=y[0],E=y.slice(1);if(!S)return[g];var T=g.split(S);return l=l||T.length>1,T.reduce(function(O,M){return[].concat(Nt(O),Nt(m(M,E)))},[]).filter(Boolean)},f=c(t,a);return l?typeof r<"u"?f.slice(0,r):f:null},lT=C.createContext(null);function XI(e){var t=e.visible,a=e.values;if(!t)return null;var r=50;return C.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(a.slice(0,r).map(function(l){var c=l.label,f=l.value;return["number","string"].includes(Xt(c))?c:f}).join(", ")),a.length>r?", ...":null)}var WI={},ZI=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","prefix","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],KI=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],C1=function(t){return t==="tags"||t==="multiple"},$3=C.forwardRef(function(e,t){var a,r=e.id,l=e.prefixCls,c=e.className,f=e.showSearch,m=e.tagRender,g=e.direction,p=e.omitDomProps,y=e.displayValues,S=e.onDisplayValuesChange,E=e.emptyOptions,T=e.notFoundContent,O=T===void 0?"Not Found":T,M=e.onClear,A=e.mode,D=e.disabled,_=e.loading,z=e.getInputElement,j=e.getRawInputElement,$=e.open,V=e.defaultOpen,H=e.onDropdownVisibleChange,P=e.activeValue,q=e.onActiveValueChange,Y=e.activeDescendantId,te=e.searchValue,G=e.autoClearSearchValue,K=e.onSearch,J=e.onSearchSplit,ie=e.tokenSeparators,k=e.allowClear,X=e.prefix,Q=e.suffixIcon,le=e.clearIcon,U=e.OptionList,F=e.animation,ne=e.transitionName,ae=e.dropdownStyle,oe=e.dropdownClassName,fe=e.dropdownMatchSelectWidth,ye=e.dropdownRender,$e=e.dropdownAlign,ze=e.placement,Fe=e.builtinPlacements,Ke=e.getPopupContainer,Oe=e.showAction,me=Oe===void 0?[]:Oe,Re=e.onFocus,Pe=e.onBlur,be=e.onKeyUp,Ce=e.onKeyDown,_e=e.onMouseDown,je=pa(e,ZI),Ue=C1(A),nt=(f!==void 0?f:Ue)||A==="combobox",We=ge({},je);KI.forEach(function(dn){delete We[dn]}),p?.forEach(function(dn){delete We[dn]});var it=C.useState(!1),rt=Be(it,2),Ge=rt[0],Rt=rt[1];C.useEffect(function(){Rt(u3())},[]);var wt=C.useRef(null),At=C.useRef(null),$t=C.useRef(null),ht=C.useRef(null),kt=C.useRef(null),Vt=C.useRef(!1),Wt=QU(),Tt=Be(Wt,3),ut=Tt[0],St=Tt[1],et=Tt[2];C.useImperativeHandle(t,function(){var dn,Gt;return{focus:(dn=ht.current)===null||dn===void 0?void 0:dn.focus,blur:(Gt=ht.current)===null||Gt===void 0?void 0:Gt.blur,scrollTo:function(Ia){var ea;return(ea=kt.current)===null||ea===void 0?void 0:ea.scrollTo(Ia)},nativeElement:wt.current||At.current}});var lt=C.useMemo(function(){var dn;if(A!=="combobox")return te;var Gt=(dn=y[0])===null||dn===void 0?void 0:dn.value;return typeof Gt=="string"||typeof Gt=="number"?String(Gt):""},[te,A,y]),I=A==="combobox"&&typeof z=="function"&&z()||null,he=typeof j=="function"&&j(),Qe=Ov(At,he==null||(a=he.props)===null||a===void 0?void 0:a.ref),Je=C.useState(!1),ft=Be(Je,2),Ft=ft[0],_t=ft[1];Zn(function(){_t(!0)},[]);var Dt=mo(!1,{defaultValue:V,value:$}),dt=Be(Dt,2),vt=dt[0],Mt=dt[1],mt=Ft?vt:!1,Ht=!O&&E;(D||Ht&&mt&&A==="combobox")&&(mt=!1);var It=Ht?!1:mt,ct=C.useCallback(function(dn){var Gt=dn!==void 0?dn:!mt;D||(Mt(Gt),mt!==Gt&&H?.(Gt))},[D,mt,Mt,H]),tt=C.useMemo(function(){return(ie||[]).some(function(dn){return[`
|
|
480
|
+
`,`\r
|
|
481
|
+
`].includes(dn)})},[ie]),gt=C.useContext(lT)||{},bt=gt.maxCount,Ot=gt.rawValues,Bt=function(Gt,La,Ia){if(!(Ue&&iT(bt)&&Ot?.size>=bt)){var ea=!0,Kn=Gt;q?.(null);var Br=YI(Gt,ie,iT(bt)?bt-Ot.size:void 0),xr=Ia?null:Br;return A!=="combobox"&&xr&&(Kn="",J?.(xr),ct(!1),ea=!1),K&<!==Kn&&K(Kn,{source:La?"typing":"effect"}),ea}},En=function(Gt){!Gt||!Gt.trim()||K(Gt,{source:"submit"})};C.useEffect(function(){!mt&&!Ue&&A!=="combobox"&&Bt("",!1,!1)},[mt]),C.useEffect(function(){vt&&D&&Mt(!1),D&&!Vt.current&&St(!1)},[D]);var ot=f3(),On=Be(ot,2),Jt=On[0],zn=On[1],Rn=C.useRef(!1),vn=function(Gt){var La=Jt(),Ia=Gt.key,ea=Ia==="Enter";if(ea&&(A!=="combobox"&&Gt.preventDefault(),mt||ct(!0)),zn(!!lt),Ia==="Backspace"&&!La&&Ue&&!lt&&y.length){for(var Kn=Nt(y),Br=null,xr=Kn.length-1;xr>=0;xr-=1){var ar=Kn[xr];if(!ar.disabled){Kn.splice(xr,1),Br=ar;break}}Br&&S(Kn,{type:"remove",values:[Br]})}for(var yo=arguments.length,si=new Array(yo>1?yo-1:0),Wi=1;Wi<yo;Wi++)si[Wi-1]=arguments[Wi];if(mt&&(!ea||!Rn.current)){var Fa;ea&&(Rn.current=!0),(Fa=kt.current)===null||Fa===void 0||Fa.onKeyDown.apply(Fa,[Gt].concat(si))}Ce?.apply(void 0,[Gt].concat(si))},nr=function(Gt){for(var La=arguments.length,Ia=new Array(La>1?La-1:0),ea=1;ea<La;ea++)Ia[ea-1]=arguments[ea];if(mt){var Kn;(Kn=kt.current)===null||Kn===void 0||Kn.onKeyUp.apply(Kn,[Gt].concat(Ia))}Gt.key==="Enter"&&(Rn.current=!1),be?.apply(void 0,[Gt].concat(Ia))},Un=function(Gt){var La=y.filter(function(Ia){return Ia!==Gt});S(La,{type:"remove",values:[Gt]})},nn=function(){Rn.current=!1},pt=C.useRef(!1),xt=function(){St(!0),D||(Re&&!pt.current&&Re.apply(void 0,arguments),me.includes("focus")&&ct(!0)),pt.current=!0},Kt=function(){Vt.current=!0,St(!1,function(){pt.current=!1,Vt.current=!1,ct(!1)}),!D&&(lt&&(A==="tags"?K(lt,{source:"submit"}):A==="multiple"&&K("",{source:"blur"})),Pe&&Pe.apply(void 0,arguments))},fn=[];C.useEffect(function(){return function(){fn.forEach(function(dn){return clearTimeout(dn)}),fn.splice(0,fn.length)}},[]);var Ln=function(Gt){var La,Ia=Gt.target,ea=(La=$t.current)===null||La===void 0?void 0:La.getPopupElement();if(ea&&ea.contains(Ia)){var Kn=setTimeout(function(){var yo=fn.indexOf(Kn);if(yo!==-1&&fn.splice(yo,1),et(),!Ge&&!ea.contains(document.activeElement)){var si;(si=ht.current)===null||si===void 0||si.focus()}});fn.push(Kn)}for(var Br=arguments.length,xr=new Array(Br>1?Br-1:0),ar=1;ar<Br;ar++)xr[ar-1]=arguments[ar];_e?.apply(void 0,[Gt].concat(xr))},Qa=C.useState({}),sa=Be(Qa,2),ga=sa[1];function jr(){ga({})}var hr;he&&(hr=function(Gt){ct(Gt)}),JU(function(){var dn;return[wt.current,(dn=$t.current)===null||dn===void 0?void 0:dn.getPopupElement()]},It,ct,!!he);var zt=C.useMemo(function(){return ge(ge({},e),{},{notFoundContent:O,open:mt,triggerOpen:It,id:r,showSearch:nt,multiple:Ue,toggleOpen:ct})},[e,O,It,mt,r,nt,Ue,ct]),ln=!!Q||_,an;ln&&(an=C.createElement(b1,{className:Ye("".concat(l,"-arrow"),de({},"".concat(l,"-arrow-loading"),_)),customizeIcon:Q,customizeIconProps:{loading:_,searchValue:lt,open:mt,focused:ut,showSearch:nt}}));var za=function(){var Gt;M?.(),(Gt=ht.current)===null||Gt===void 0||Gt.focus(),S([],{type:"clear",values:y}),Bt("",!1,!1)},ja=ZU(l,za,y,k,le,D,lt,A),va=ja.allowClear,Lr=ja.clearIcon,oi=C.createElement(U,{ref:kt}),Vr=Ye(l,c,de(de(de(de(de(de(de(de(de(de({},"".concat(l,"-focused"),ut),"".concat(l,"-multiple"),Ue),"".concat(l,"-single"),!Ue),"".concat(l,"-allow-clear"),k),"".concat(l,"-show-arrow"),ln),"".concat(l,"-disabled"),D),"".concat(l,"-loading"),_),"".concat(l,"-open"),mt),"".concat(l,"-customize-input"),I),"".concat(l,"-show-search"),nt)),li=C.createElement(_3,{ref:$t,disabled:D,prefixCls:l,visible:It,popupElement:oi,animation:F,transitionName:ne,dropdownStyle:ae,dropdownClassName:oe,direction:g,dropdownMatchSelectWidth:fe,dropdownRender:ye,dropdownAlign:$e,placement:ze,builtinPlacements:Fe,getPopupContainer:Ke,empty:E,getTriggerDOMNode:function(Gt){return At.current||Gt},onPopupVisibleChange:hr,onPopupMouseEnter:jr},he?C.cloneElement(he,{ref:Qe}):C.createElement(y3,jt({},e,{domRef:At,prefixCls:l,inputElement:I,ref:ht,id:r,prefix:X,showSearch:nt,autoClearSearchValue:G,mode:A,activeDescendantId:Y,tagRender:m,values:y,open:mt,onToggleOpen:ct,activeValue:P,searchValue:lt,onSearch:Bt,onSearchSubmit:En,onRemove:Un,tokenWithEnter:tt,onInputBlur:nn}))),Hr;return he?Hr=li:Hr=C.createElement("div",jt({className:Vr},We,{ref:wt,onMouseDown:Ln,onKeyDown:vn,onKeyUp:nr,onFocus:xt,onBlur:Kt}),C.createElement(XI,{visible:ut&&!mt,values:y}),li,an,va&&Lr),C.createElement(c3.Provider,{value:zt},Hr)});WI.NODE_ENV!=="production"&&($3.displayName="BaseSelect");var sT=function(){return null};sT.isSelectOptGroup=!0;var uT=function(){return null};uT.isSelectOption=!0;var z3=C.forwardRef(function(e,t){var a=e.height,r=e.offsetY,l=e.offsetX,c=e.children,f=e.prefixCls,m=e.onInnerResize,g=e.innerProps,p=e.rtl,y=e.extra,S={},E={display:"flex",flexDirection:"column"};return r!==void 0&&(S={height:a,position:"relative",overflow:"hidden"},E=ge(ge({},E),{},de(de(de(de(de({transform:"translateY(".concat(r,"px)")},p?"marginRight":"marginLeft",-l),"position","absolute"),"left",0),"right",0),"top",0))),C.createElement("div",{style:S},C.createElement(Zl,{onResize:function(O){var M=O.offsetHeight;M&&m&&m()}},C.createElement("div",jt({style:E,className:Ye(de({},"".concat(f,"-holder-inner"),f)),ref:t},g),c,y)))});z3.displayName="Filler";function QI(e){var t=e.children,a=e.setRef,r=C.useCallback(function(l){a(l)},[]);return C.cloneElement(t,{ref:r})}function JI(e,t,a,r,l,c,f,m){var g=m.getKey;return e.slice(t,a+1).map(function(p,y){var S=t+y,E=f(p,S,{style:{width:r},offsetX:l}),T=g(p);return C.createElement(QI,{key:T,setRef:function(M){return c(p,M)}},E)})}function eF(e,t,a){var r=e.length,l=t.length,c,f;if(r===0&&l===0)return null;r<l?(c=e,f=t):(c=t,f=e);var m={__EMPTY_ITEM__:!0};function g(O){return O!==void 0?a(O):m}for(var p=null,y=Math.abs(r-l)!==1,S=0;S<f.length;S+=1){var E=g(c[S]),T=g(f[S]);if(E!==T){p=S,y=y||E!==g(f[S+1]);break}}return p===null?null:{index:p,multiple:y}}function tF(e,t,a){var r=C.useState(e),l=Be(r,2),c=l[0],f=l[1],m=C.useState(null),g=Be(m,2),p=g[0],y=g[1];return C.useEffect(function(){var S=eF(c||[],e||[],t);S?.index!==void 0&&y(e[S.index]),f(e)},[e]),[p]}var j3=(typeof navigator>"u"?"undefined":Xt(navigator))==="object"&&/Firefox/i.test(navigator.userAgent);const L3=function(e,t,a,r){var l=C.useRef(!1),c=C.useRef(null);function f(){clearTimeout(c.current),l.current=!0,c.current=setTimeout(function(){l.current=!1},50)}var m=C.useRef({top:e,bottom:t,left:a,right:r});return m.current.top=e,m.current.bottom=t,m.current.left=a,m.current.right=r,function(g,p){var y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,S=g?p<0&&m.current.left||p>0&&m.current.right:p<0&&m.current.top||p>0&&m.current.bottom;return y&&S?(clearTimeout(c.current),l.current=!1):(!S||l.current)&&f(),!l.current&&S}};function nF(e,t,a,r,l,c,f){var m=C.useRef(0),g=C.useRef(null),p=C.useRef(null),y=C.useRef(!1),S=L3(t,a,r,l);function E(_,z){if(tr.cancel(g.current),!S(!1,z)){var j=_;if(!j._virtualHandled)j._virtualHandled=!0;else return;m.current+=z,p.current=z,j3||j.preventDefault(),g.current=tr(function(){var $=y.current?10:1;f(m.current*$,!1),m.current=0})}}function T(_,z){f(z,!0),j3||_.preventDefault()}var O=C.useRef(null),M=C.useRef(null);function A(_){if(e){tr.cancel(M.current),M.current=tr(function(){O.current=null},2);var z=_.deltaX,j=_.deltaY,$=_.shiftKey,V=z,H=j;(O.current==="sx"||!O.current&&$&&j&&!z)&&(V=j,H=0,O.current="sx");var P=Math.abs(V),q=Math.abs(H);O.current===null&&(O.current=c&&P>q?"x":"y"),O.current==="y"?E(_,H):T(_,V)}}function D(_){e&&(y.current=_.detail===p.current)}return[A,D]}function aF(e,t,a,r){var l=C.useMemo(function(){return[new Map,[]]},[e,a.id,r]),c=Be(l,2),f=c[0],m=c[1],g=function(y){var S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:y,E=f.get(y),T=f.get(S);if(E===void 0||T===void 0)for(var O=e.length,M=m.length;M<O;M+=1){var A,D=e[M],_=t(D);f.set(_,M);var z=(A=a.get(_))!==null&&A!==void 0?A:r;if(m[M]=(m[M-1]||0)+z,_===y&&(E=M),_===S&&(T=M),E!==void 0&&T!==void 0)break}return{top:m[E-1]||0,bottom:m[T]}};return g}var rF=function(){function e(){Nr(this,e),de(this,"maps",void 0),de(this,"id",0),de(this,"diffRecords",new Map),this.maps=Object.create(null)}return $r(e,[{key:"set",value:function(a,r){this.diffRecords.set(a,this.maps[a]),this.maps[a]=r,this.id+=1}},{key:"get",value:function(a){return this.maps[a]}},{key:"resetRecord",value:function(){this.diffRecords.clear()}},{key:"getRecord",value:function(){return this.diffRecords}}]),e}();function V3(e){var t=parseFloat(e);return isNaN(t)?0:t}function iF(e,t,a){var r=C.useState(0),l=Be(r,2),c=l[0],f=l[1],m=C.useRef(new Map),g=C.useRef(new rF),p=C.useRef(0);function y(){p.current+=1}function S(){var T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;y();var O=function(){var D=!1;m.current.forEach(function(_,z){if(_&&_.offsetParent){var j=_.offsetHeight,$=getComputedStyle(_),V=$.marginTop,H=$.marginBottom,P=V3(V),q=V3(H),Y=j+P+q;g.current.get(z)!==Y&&(g.current.set(z,Y),D=!0)}}),D&&f(function(_){return _+1})};if(T)O();else{p.current+=1;var M=p.current;Promise.resolve().then(function(){M===p.current&&O()})}}function E(T,O){var M=e(T);m.current.get(M),O?(m.current.set(M,O),S()):m.current.delete(M)}return C.useEffect(function(){return y},[]),[E,S,g.current,c]}var H3=14/15;function oF(e,t,a){var r=C.useRef(!1),l=C.useRef(0),c=C.useRef(0),f=C.useRef(null),m=C.useRef(null),g,p=function(T){if(r.current){var O=Math.ceil(T.touches[0].pageX),M=Math.ceil(T.touches[0].pageY),A=l.current-O,D=c.current-M,_=Math.abs(A)>Math.abs(D);_?l.current=O:c.current=M;var z=a(_,_?A:D,!1,T);z&&T.preventDefault(),clearInterval(m.current),z&&(m.current=setInterval(function(){_?A*=H3:D*=H3;var j=Math.floor(_?A:D);(!a(_,j,!0)||Math.abs(j)<=.1)&&clearInterval(m.current)},16))}},y=function(){r.current=!1,g()},S=function(T){g(),T.touches.length===1&&!r.current&&(r.current=!0,l.current=Math.ceil(T.touches[0].pageX),c.current=Math.ceil(T.touches[0].pageY),f.current=T.target,f.current.addEventListener("touchmove",p,{passive:!1}),f.current.addEventListener("touchend",y,{passive:!0}))};g=function(){f.current&&(f.current.removeEventListener("touchmove",p),f.current.removeEventListener("touchend",y))},Zn(function(){return e&&t.current.addEventListener("touchstart",S,{passive:!0}),function(){var E;(E=t.current)===null||E===void 0||E.removeEventListener("touchstart",S),g(),clearInterval(m.current)}},[e])}function B3(e){return Math.floor(Math.pow(e,.5))}function cT(e,t){var a="touches"in e?e.touches[0]:e;return a[t?"pageX":"pageY"]-window[t?"scrollX":"scrollY"]}function lF(e,t,a){C.useEffect(function(){var r=t.current;if(e&&r){var l=!1,c,f,m=function(){tr.cancel(c)},g=function E(){m(),c=tr(function(){a(f),E()})},p=function(T){if(!(T.target.draggable||T.button!==0)){var O=T;O._virtualHandled||(O._virtualHandled=!0,l=!0)}},y=function(){l=!1,m()},S=function(T){if(l){var O=cT(T,!1),M=r.getBoundingClientRect(),A=M.top,D=M.bottom;if(O<=A){var _=A-O;f=-B3(_),g()}else if(O>=D){var z=O-D;f=B3(z),g()}else m()}};return r.addEventListener("mousedown",p),r.ownerDocument.addEventListener("mouseup",y),r.ownerDocument.addEventListener("mousemove",S),function(){r.removeEventListener("mousedown",p),r.ownerDocument.removeEventListener("mouseup",y),r.ownerDocument.removeEventListener("mousemove",S),m()}}},[e])}var sF={},P3=10;function uF(e,t,a,r,l,c,f,m){var g=C.useRef(),p=C.useState(null),y=Be(p,2),S=y[0],E=y[1];return Zn(function(){if(S&&S.times<P3){if(!e.current){E(function(le){return ge({},le)});return}c();var T=S.targetAlign,O=S.originAlign,M=S.index,A=S.offset,D=e.current.clientHeight,_=!1,z=T,j=null;if(D){for(var $=T||O,V=0,H=0,P=0,q=Math.min(t.length-1,M),Y=0;Y<=q;Y+=1){var te=l(t[Y]);H=V;var G=a.get(te);P=H+(G===void 0?r:G),V=P}for(var K=$==="top"?A:D-A,J=q;J>=0;J-=1){var ie=l(t[J]),k=a.get(ie);if(k===void 0){_=!0;break}if(K-=k,K<=0)break}switch($){case"top":j=H-A;break;case"bottom":j=P-D+A;break;default:{var X=e.current.scrollTop,Q=X+D;H<X?z="top":P>Q&&(z="bottom")}}j!==null&&f(j),j!==S.lastTop&&(_=!0)}_&&E(ge(ge({},S),{},{times:S.times+1,targetAlign:z,lastTop:j}))}else sF.NODE_ENV!=="production"&&S?.times===P3&&Dn(!1,"Seems `scrollTo` with `rc-virtual-list` reach the max limitation. Please fire issue for us. Thanks.")},[S,e.current]),function(T){if(T==null){m();return}if(tr.cancel(g.current),typeof T=="number")f(T);else if(T&&Xt(T)==="object"){var O,M=T.align;"index"in T?O=T.index:O=t.findIndex(function(_){return l(_)===T.key});var A=T.offset,D=A===void 0?0:A;E({times:0,index:O,offset:D,originAlign:M})}}}var cF={},fT=C.forwardRef(function(e,t){var a=e.prefixCls,r=e.rtl,l=e.scrollOffset,c=e.scrollRange,f=e.onStartMove,m=e.onStopMove,g=e.onScroll,p=e.horizontal,y=e.spinSize,S=e.containerSize,E=e.style,T=e.thumbStyle,O=e.showScrollBar,M=C.useState(!1),A=Be(M,2),D=A[0],_=A[1],z=C.useState(null),j=Be(z,2),$=j[0],V=j[1],H=C.useState(null),P=Be(H,2),q=P[0],Y=P[1],te=!r,G=C.useRef(),K=C.useRef(),J=C.useState(O),ie=Be(J,2),k=ie[0],X=ie[1],Q=C.useRef(),le=function(){O===!0||O===!1||(clearTimeout(Q.current),X(!0),Q.current=setTimeout(function(){X(!1)},3e3))},U=c-S||0,F=S-y||0,ne=C.useMemo(function(){if(l===0||U===0)return 0;var Oe=l/U;return Oe*F},[l,U,F]),ae=function(me){me.stopPropagation(),me.preventDefault()},oe=C.useRef({top:ne,dragging:D,pageY:$,startTop:q});oe.current={top:ne,dragging:D,pageY:$,startTop:q};var fe=function(me){_(!0),V(cT(me,p)),Y(oe.current.top),f(),me.stopPropagation(),me.preventDefault()};C.useEffect(function(){var Oe=function(be){be.preventDefault()},me=G.current,Re=K.current;return me.addEventListener("touchstart",Oe,{passive:!1}),Re.addEventListener("touchstart",fe,{passive:!1}),function(){me.removeEventListener("touchstart",Oe),Re.removeEventListener("touchstart",fe)}},[]);var ye=C.useRef();ye.current=U;var $e=C.useRef();$e.current=F,C.useEffect(function(){if(D){var Oe,me=function(be){var Ce=oe.current,_e=Ce.dragging,je=Ce.pageY,Ue=Ce.startTop;tr.cancel(Oe);var nt=G.current.getBoundingClientRect(),We=S/(p?nt.width:nt.height);if(_e){var it=(cT(be,p)-je)*We,rt=Ue;!te&&p?rt-=it:rt+=it;var Ge=ye.current,Rt=$e.current,wt=Rt?rt/Rt:0,At=Math.ceil(wt*Ge);At=Math.max(At,0),At=Math.min(At,Ge),Oe=tr(function(){g(At,p)})}},Re=function(){_(!1),m()};return window.addEventListener("mousemove",me,{passive:!0}),window.addEventListener("touchmove",me,{passive:!0}),window.addEventListener("mouseup",Re,{passive:!0}),window.addEventListener("touchend",Re,{passive:!0}),function(){window.removeEventListener("mousemove",me),window.removeEventListener("touchmove",me),window.removeEventListener("mouseup",Re),window.removeEventListener("touchend",Re),tr.cancel(Oe)}}},[D]),C.useEffect(function(){return le(),function(){clearTimeout(Q.current)}},[l]),C.useImperativeHandle(t,function(){return{delayHidden:le}});var ze="".concat(a,"-scrollbar"),Fe={position:"absolute",visibility:k?null:"hidden"},Ke={position:"absolute",borderRadius:99,background:"var(--rc-virtual-list-scrollbar-bg, rgba(0, 0, 0, 0.5))",cursor:"pointer",userSelect:"none"};return p?(Object.assign(Fe,{height:8,left:0,right:0,bottom:0}),Object.assign(Ke,de({height:"100%",width:y},te?"left":"right",ne))):(Object.assign(Fe,de({width:8,top:0,bottom:0},te?"right":"left",0)),Object.assign(Ke,{width:"100%",height:y,top:ne})),C.createElement("div",{ref:G,className:Ye(ze,de(de(de({},"".concat(ze,"-horizontal"),p),"".concat(ze,"-vertical"),!p),"".concat(ze,"-visible"),k)),style:ge(ge({},Fe),E),onMouseDown:ae,onMouseMove:le},C.createElement("div",{ref:K,className:Ye("".concat(ze,"-thumb"),de({},"".concat(ze,"-thumb-moving"),D)),style:ge(ge({},Ke),T),onMouseDown:fe}))});cF.NODE_ENV!=="production"&&(fT.displayName="ScrollBar");var fF=20;function U3(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=e/t*e;return isNaN(a)&&(a=0),a=Math.max(a,fF),Math.floor(a)}var dF=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],hF=[],mF={overflowY:"auto",overflowAnchor:"none"};function pF(e,t){var a=e.prefixCls,r=a===void 0?"rc-virtual-list":a,l=e.className,c=e.height,f=e.itemHeight,m=e.fullHeight,g=m===void 0?!0:m,p=e.style,y=e.data,S=e.children,E=e.itemKey,T=e.virtual,O=e.direction,M=e.scrollWidth,A=e.component,D=A===void 0?"div":A,_=e.onScroll,z=e.onVirtualScroll,j=e.onVisibleChange,$=e.innerProps,V=e.extraRender,H=e.styles,P=e.showScrollBar,q=P===void 0?"optional":P,Y=pa(e,dF),te=C.useCallback(function(pt){return typeof E=="function"?E(pt):pt?.[E]},[E]),G=iF(te),K=Be(G,4),J=K[0],ie=K[1],k=K[2],X=K[3],Q=!!(T!==!1&&c&&f),le=C.useMemo(function(){return Object.values(k.maps).reduce(function(pt,xt){return pt+xt},0)},[k.id,k.maps]),U=Q&&y&&(Math.max(f*y.length,le)>c||!!M),F=O==="rtl",ne=Ye(r,de({},"".concat(r,"-rtl"),F),l),ae=y||hF,oe=C.useRef(),fe=C.useRef(),ye=C.useRef(),$e=C.useState(0),ze=Be($e,2),Fe=ze[0],Ke=ze[1],Oe=C.useState(0),me=Be(Oe,2),Re=me[0],Pe=me[1],be=C.useState(!1),Ce=Be(be,2),_e=Ce[0],je=Ce[1],Ue=function(){je(!0)},nt=function(){je(!1)},We={getKey:te};function it(pt){Ke(function(xt){var Kt;typeof pt=="function"?Kt=pt(xt):Kt=pt;var fn=_t(Kt);return oe.current.scrollTop=fn,fn})}var rt=C.useRef({start:0,end:ae.length}),Ge=C.useRef(),Rt=tF(ae,te),wt=Be(Rt,1),At=wt[0];Ge.current=At;var $t=C.useMemo(function(){if(!Q)return{scrollHeight:void 0,start:0,end:ae.length-1,offset:void 0};if(!U){var pt;return{scrollHeight:((pt=fe.current)===null||pt===void 0?void 0:pt.offsetHeight)||0,start:0,end:ae.length-1,offset:void 0}}for(var xt=0,Kt,fn,Ln,Qa=ae.length,sa=0;sa<Qa;sa+=1){var ga=ae[sa],jr=te(ga),hr=k.get(jr),zt=xt+(hr===void 0?f:hr);zt>=Fe&&Kt===void 0&&(Kt=sa,fn=xt),zt>Fe+c&&Ln===void 0&&(Ln=sa),xt=zt}return Kt===void 0&&(Kt=0,fn=0,Ln=Math.ceil(c/f)),Ln===void 0&&(Ln=ae.length-1),Ln=Math.min(Ln+1,ae.length-1),{scrollHeight:xt,start:Kt,end:Ln,offset:fn}},[U,Q,Fe,ae,X,c]),ht=$t.scrollHeight,kt=$t.start,Vt=$t.end,Wt=$t.offset;rt.current.start=kt,rt.current.end=Vt,C.useLayoutEffect(function(){var pt=k.getRecord();if(pt.size===1){var xt=Array.from(pt.keys())[0],Kt=pt.get(xt),fn=ae[kt];if(fn&&Kt===void 0){var Ln=te(fn);if(Ln===xt){var Qa=k.get(xt),sa=Qa-f;it(function(ga){return ga+sa})}}}k.resetRecord()},[ht]);var Tt=C.useState({width:0,height:c}),ut=Be(Tt,2),St=ut[0],et=ut[1],lt=function(xt){et({width:xt.offsetWidth,height:xt.offsetHeight})},I=C.useRef(),he=C.useRef(),Qe=C.useMemo(function(){return U3(St.width,M)},[St.width,M]),Je=C.useMemo(function(){return U3(St.height,ht)},[St.height,ht]),ft=ht-c,Ft=C.useRef(ft);Ft.current=ft;function _t(pt){var xt=pt;return Number.isNaN(Ft.current)||(xt=Math.min(xt,Ft.current)),xt=Math.max(xt,0),xt}var Dt=Fe<=0,dt=Fe>=ft,vt=Re<=0,Mt=Re>=M,mt=L3(Dt,dt,vt,Mt),Ht=function(){return{x:F?-Re:Re,y:Fe}},It=C.useRef(Ht()),ct=cr(function(pt){if(z){var xt=ge(ge({},Ht()),pt);(It.current.x!==xt.x||It.current.y!==xt.y)&&(z(xt),It.current=xt)}});function tt(pt,xt){var Kt=pt;xt?(bm.flushSync(function(){Pe(Kt)}),ct()):it(Kt)}function gt(pt){var xt=pt.currentTarget.scrollTop;xt!==Fe&&it(xt),_?.(pt),ct()}var bt=function(xt){var Kt=xt,fn=M?M-St.width:0;return Kt=Math.max(Kt,0),Kt=Math.min(Kt,fn),Kt},Ot=cr(function(pt,xt){xt?(bm.flushSync(function(){Pe(function(Kt){var fn=Kt+(F?-pt:pt);return bt(fn)})}),ct()):it(function(Kt){var fn=Kt+pt;return fn})}),Bt=nF(Q,Dt,dt,vt,Mt,!!M,Ot),En=Be(Bt,2),ot=En[0],On=En[1];oF(Q,oe,function(pt,xt,Kt,fn){var Ln=fn;return mt(pt,xt,Kt)?!1:!Ln||!Ln._virtualHandled?(Ln&&(Ln._virtualHandled=!0),ot({preventDefault:function(){},deltaX:pt?xt:0,deltaY:pt?0:xt}),!0):!1}),lF(U,oe,function(pt){it(function(xt){return xt+pt})}),Zn(function(){function pt(Kt){var fn=Dt&&Kt.detail<0,Ln=dt&&Kt.detail>0;Q&&!fn&&!Ln&&Kt.preventDefault()}var xt=oe.current;return xt.addEventListener("wheel",ot,{passive:!1}),xt.addEventListener("DOMMouseScroll",On,{passive:!0}),xt.addEventListener("MozMousePixelScroll",pt,{passive:!1}),function(){xt.removeEventListener("wheel",ot),xt.removeEventListener("DOMMouseScroll",On),xt.removeEventListener("MozMousePixelScroll",pt)}},[Q,Dt,dt]),Zn(function(){if(M){var pt=bt(Re);Pe(pt),ct({x:pt})}},[St.width,M]);var Jt=function(){var xt,Kt;(xt=I.current)===null||xt===void 0||xt.delayHidden(),(Kt=he.current)===null||Kt===void 0||Kt.delayHidden()},zn=uF(oe,ae,k,f,te,function(){return ie(!0)},it,Jt);C.useImperativeHandle(t,function(){return{nativeElement:ye.current,getScrollInfo:Ht,scrollTo:function(xt){function Kt(fn){return fn&&Xt(fn)==="object"&&("left"in fn||"top"in fn)}Kt(xt)?(xt.left!==void 0&&Pe(bt(xt.left)),zn(xt.top)):zn(xt)}}}),Zn(function(){if(j){var pt=ae.slice(kt,Vt+1);j(pt,ae)}},[kt,Vt,ae]);var Rn=aF(ae,te,k,f),vn=V?.({start:kt,end:Vt,virtual:U,offsetX:Re,offsetY:Wt,rtl:F,getSize:Rn}),nr=JI(ae,kt,Vt,M,Re,J,S,We),Un=null;c&&(Un=ge(de({},g?"height":"maxHeight",c),mF),Q&&(Un.overflowY="hidden",M&&(Un.overflowX="hidden"),_e&&(Un.pointerEvents="none")));var nn={};return F&&(nn.dir="rtl"),C.createElement("div",jt({ref:ye,style:ge(ge({},p),{},{position:"relative"}),className:ne},nn,Y),C.createElement(Zl,{onResize:lt},C.createElement(D,{className:"".concat(r,"-holder"),style:Un,ref:oe,onScroll:gt,onMouseEnter:Jt},C.createElement(z3,{prefixCls:r,height:ht,offsetX:Re,offsetY:Wt,scrollWidth:M,onInnerResize:ie,ref:fe,innerProps:$,rtl:F,extra:vn},nr))),U&&ht>c&&C.createElement(fT,{ref:I,prefixCls:r,scrollOffset:Fe,scrollRange:ht,rtl:F,onScroll:tt,onStartMove:Ue,onStopMove:nt,spinSize:Je,containerSize:St.height,style:H?.verticalScrollBar,thumbStyle:H?.verticalScrollBarThumb,showScrollBar:q}),U&&M>St.width&&C.createElement(fT,{ref:he,prefixCls:r,scrollOffset:Re,scrollRange:M,rtl:F,onScroll:tt,onStartMove:Ue,onStopMove:nt,spinSize:Qe,containerSize:St.width,horizontal:!0,style:H?.horizontalScrollBar,thumbStyle:H?.horizontalScrollBarThumb,showScrollBar:q}))}var I3=C.forwardRef(pF);I3.displayName="List";function gF(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var vF={},yF=["disabled","title","children","style","className"];function F3(e){return typeof e=="string"||typeof e=="number"}var bF=function(t,a){var r=KU(),l=r.prefixCls,c=r.id,f=r.open,m=r.multiple,g=r.mode,p=r.searchValue,y=r.toggleOpen,S=r.notFoundContent,E=r.onPopupScroll,T=C.useContext(lT),O=T.maxCount,M=T.flattenOptions,A=T.onActiveValue,D=T.defaultActiveFirstOption,_=T.onSelect,z=T.menuItemSelectedIcon,j=T.rawValues,$=T.fieldNames,V=T.virtual,H=T.direction,P=T.listHeight,q=T.listItemHeight,Y=T.optionRender,te="".concat(l,"-item"),G=MS(function(){return M},[f,M],function(Oe,me){return me[0]&&Oe[1]!==me[1]}),K=C.useRef(null),J=C.useMemo(function(){return m&&iT(O)&&j?.size>=O},[m,O,j?.size]),ie=function(me){me.preventDefault()},k=function(me){var Re;(Re=K.current)===null||Re===void 0||Re.scrollTo(typeof me=="number"?{index:me}:me)},X=C.useCallback(function(Oe){return g==="combobox"?!1:j.has(Oe)},[g,Nt(j).toString(),j.size]),Q=function(me){for(var Re=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,Pe=G.length,be=0;be<Pe;be+=1){var Ce=(me+be*Re+Pe)%Pe,_e=G[Ce]||{},je=_e.group,Ue=_e.data;if(!je&&!(Ue!=null&&Ue.disabled)&&(X(Ue.value)||!J))return Ce}return-1},le=C.useState(function(){return Q(0)}),U=Be(le,2),F=U[0],ne=U[1],ae=function(me){var Re=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;ne(me);var Pe={source:Re?"keyboard":"mouse"},be=G[me];if(!be){A(null,-1,Pe);return}A(be.value,me,Pe)};C.useEffect(function(){ae(D!==!1?Q(0):-1)},[G.length,p]);var oe=C.useCallback(function(Oe){return g==="combobox"?String(Oe).toLowerCase()===p.toLowerCase():j.has(Oe)},[g,p,Nt(j).toString(),j.size]);C.useEffect(function(){var Oe=setTimeout(function(){if(!m&&f&&j.size===1){var Re=Array.from(j)[0],Pe=G.findIndex(function(be){var Ce=be.data;return p?String(Ce.value).startsWith(p):Ce.value===Re});Pe!==-1&&(ae(Pe),k(Pe))}});if(f){var me;(me=K.current)===null||me===void 0||me.scrollTo(void 0)}return function(){return clearTimeout(Oe)}},[f,p]);var fe=function(me){me!==void 0&&_(me,{selected:!j.has(me)}),m||y(!1)};if(C.useImperativeHandle(a,function(){return{onKeyDown:function(me){var Re=me.which,Pe=me.ctrlKey;switch(Re){case Zt.N:case Zt.P:case Zt.UP:case Zt.DOWN:{var be=0;if(Re===Zt.UP?be=-1:Re===Zt.DOWN?be=1:gF()&&Pe&&(Re===Zt.N?be=1:Re===Zt.P&&(be=-1)),be!==0){var Ce=Q(F+be,be);k(Ce),ae(Ce,!0)}break}case Zt.TAB:case Zt.ENTER:{var _e,je=G[F];je&&!(je!=null&&(_e=je.data)!==null&&_e!==void 0&&_e.disabled)&&!J?fe(je.value):fe(void 0),f&&me.preventDefault();break}case Zt.ESC:y(!1),f&&me.stopPropagation()}},onKeyUp:function(){},scrollTo:function(me){k(me)}}}),G.length===0)return C.createElement("div",{role:"listbox",id:"".concat(c,"_list"),className:"".concat(te,"-empty"),onMouseDown:ie},S);var ye=Object.keys($).map(function(Oe){return $[Oe]}),$e=function(me){return me.label};function ze(Oe,me){var Re=Oe.group;return{role:Re?"presentation":"option",id:"".concat(c,"_list_").concat(me)}}var Fe=function(me){var Re=G[me];if(!Re)return null;var Pe=Re.data||{},be=Pe.value,Ce=Re.group,_e=$m(Pe,!0),je=$e(Re);return Re?C.createElement("div",jt({"aria-label":typeof je=="string"&&!Ce?je:null},_e,{key:me},ze(Re,me),{"aria-selected":oe(be)}),be):null},Ke={role:"listbox",id:"".concat(c,"_list")};return C.createElement(C.Fragment,null,V&&C.createElement("div",jt({},Ke,{style:{height:0,width:0,overflow:"hidden"}}),Fe(F-1),Fe(F),Fe(F+1)),C.createElement(I3,{itemKey:"key",ref:K,data:G,height:P,itemHeight:q,fullHeight:!1,onMouseDown:ie,onScroll:E,virtual:V,direction:H,innerProps:V?null:Ke},function(Oe,me){var Re=Oe.group,Pe=Oe.groupOption,be=Oe.data,Ce=Oe.label,_e=Oe.value,je=be.key;if(Re){var Ue,nt=(Ue=be.title)!==null&&Ue!==void 0?Ue:F3(Ce)?Ce.toString():void 0;return C.createElement("div",{className:Ye(te,"".concat(te,"-group"),be.className),title:nt},Ce!==void 0?Ce:je)}var We=be.disabled,it=be.title;be.children;var rt=be.style,Ge=be.className,Rt=pa(be,yF),wt=Md(Rt,ye),At=X(_e),$t=We||!At&&J,ht="".concat(te,"-option"),kt=Ye(te,ht,Ge,de(de(de(de({},"".concat(ht,"-grouped"),Pe),"".concat(ht,"-active"),F===me&&!$t),"".concat(ht,"-disabled"),$t),"".concat(ht,"-selected"),At)),Vt=$e(Oe),Wt=!z||typeof z=="function"||At,Tt=typeof Vt=="number"?Vt:Vt||_e,ut=F3(Tt)?Tt.toString():void 0;return it!==void 0&&(ut=it),C.createElement("div",jt({},$m(wt),V?{}:ze(Oe,me),{"aria-selected":oe(_e),className:kt,title:ut,onMouseMove:function(){F===me||$t||ae(me)},onClick:function(){$t||fe(_e)},style:rt}),C.createElement("div",{className:"".concat(ht,"-content")},typeof Y=="function"?Y(Oe,{index:me}):Tt),C.isValidElement(z)||At,Wt&&C.createElement(b1,{className:"".concat(te,"-option-state"),customizeIcon:z,customizeIconProps:{value:_e,disabled:$t,isSelected:At}},At?"✓":null))}))},k3=C.forwardRef(bF);vF.NODE_ENV!=="production"&&(k3.displayName="OptionList");const SF=function(e,t){var a=C.useRef({values:new Map,options:new Map}),r=C.useMemo(function(){var c=a.current,f=c.values,m=c.options,g=e.map(function(S){if(S.label===void 0){var E;return ge(ge({},S),{},{label:(E=f.get(S.value))===null||E===void 0?void 0:E.label})}return S}),p=new Map,y=new Map;return g.forEach(function(S){p.set(S.value,S),y.set(S.value,t.get(S.value)||m.get(S.value))}),a.current.values=p,a.current.options=y,g},[e,t]),l=C.useCallback(function(c){return t.get(c)||a.current.options.get(c)},[t]);return[r,l]};function dT(e,t){return aT(e).join("").toUpperCase().includes(t)}const CF=function(e,t,a,r,l){return C.useMemo(function(){if(!a||r===!1)return e;var c=t.options,f=t.label,m=t.value,g=[],p=typeof r=="function",y=a.toUpperCase(),S=p?r:function(T,O){return l?dT(O[l],y):O[c]?dT(O[f!=="children"?f:"label"],y):dT(O[m],y)},E=p?function(T){return oT(T)}:function(T){return T};return e.forEach(function(T){if(T[c]){var O=S(a,E(T));if(O)g.push(T);else{var M=T[c].filter(function(A){return S(a,E(A))});M.length&&g.push(ge(ge({},T),{},de({},c,M)))}return}S(a,E(T))&&g.push(T)}),g},[e,r,l,a,t])};var xF={},G3=0,EF=xF.NODE_ENV!=="test"&&yi();function wF(){var e;return EF?(e=G3,G3+=1):e="TEST_OR_SSR",e}function TF(e){var t=C.useState(),a=Be(t,2),r=a[0],l=a[1];return C.useEffect(function(){l("rc_select_".concat(wF()))},[]),e||r}var OF=["children","value"],RF=["children"];function AF(e){var t=e,a=t.key,r=t.props,l=r.children,c=r.value,f=pa(r,OF);return ge({key:a,value:c!==void 0?c:a,children:l},f)}function hT(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return ks(e).map(function(a,r){if(!C.isValidElement(a)||!a.type)return null;var l=a,c=l.type.isSelectOptGroup,f=l.key,m=l.props,g=m.children,p=pa(m,RF);return t||!c?AF(a):ge(ge({key:"__RC_SELECT_GRP__".concat(f===null?r:f,"__"),label:f},p),{},{options:hT(g)})}).filter(function(a){return a})}var MF=function(t,a,r,l,c){return C.useMemo(function(){var f=t,m=!t;m&&(f=hT(a));var g=new Map,p=new Map,y=function(T,O,M){M&&typeof M=="string"&&T.set(O[M],O)},S=function E(T){for(var O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,M=0;M<T.length;M+=1){var A=T[M];!A[r.options]||O?(g.set(A[r.value],A),y(p,A,r.label),y(p,A,l),y(p,A,c)):E(A[r.options],!0)}};return S(f),{options:f,valueOptions:g,labelOptions:p}},[t,a,r,l,c])};function q3(e){var t=C.useRef();t.current=e;var a=C.useCallback(function(){return t.current.apply(t,arguments)},[]);return a}function _F(e){var t=e.mode,a=e.options,r=e.children,l=e.backfill,c=e.allowClear,f=e.placeholder,m=e.getInputElement,g=e.showSearch,p=e.onSearch,y=e.defaultOpen,S=e.autoFocus,E=e.labelInValue,T=e.value,O=e.inputValue,M=e.optionLabelProp,A=C1(t),D=g!==void 0?g:A||t==="combobox",_=a||hT(r);if(Dn(t!=="tags"||_.every(function(V){return!V.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),t==="tags"||t==="combobox"){var z=_.some(function(V){return V.options?V.options.some(function(H){return typeof("value"in H?H.value:H.key)=="number"}):typeof("value"in V?V.value:V.key)=="number"});Dn(!z,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Dn(t!=="combobox"||!M,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Dn(t==="combobox"||!l,"`backfill` only works with `combobox` mode."),Dn(t==="combobox"||!m,"`getInputElement` only work with `combobox` mode."),mE(t!=="combobox"||!m||!c||!f,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),p&&!D&&t!=="combobox"&&t!=="tags"&&Dn(!1,"`onSearch` should work with `showSearch` instead of use alone."),mE(!y||S,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),T!=null){var j=aT(T);Dn(!E||j.every(function(V){return Xt(V)==="object"&&("key"in V||"value"in V)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Dn(!A||Array.isArray(T),"`value` should be array when `mode` is `multiple` or `tags`")}if(r){var $=null;ks(r).some(function(V){if(!C.isValidElement(V)||!V.type)return!1;var H=V,P=H.type;if(P.isSelectOption)return!1;if(P.isSelectOptGroup){var q=ks(V.props.children).every(function(Y){return!C.isValidElement(Y)||!V.type||Y.type.isSelectOption?!0:($=Y.type,!1)});return!q}return $=P,!0}),$&&Dn(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat($.displayName||$.name||$,"`.")),Dn(O===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function DF(e,t){if(e){var a=function r(l){for(var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,f=0;f<l.length;f++){var m=l[f];if(m[t?.value]===null)return Dn(!1,"`value` in Select options should not be `null`."),!0;if(!c&&Array.isArray(m[t?.options])&&r(m[t?.options],!0))break}};a(e)}}var mT={},NF=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","optionRender","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","direction","listHeight","listItemHeight","labelRender","value","defaultValue","labelInValue","onChange","maxCount"],$F=["inputValue"];function zF(e){return!e||Xt(e)!=="object"}var Y3=C.forwardRef(function(e,t){var a=e.id,r=e.mode,l=e.prefixCls,c=l===void 0?"rc-select":l,f=e.backfill,m=e.fieldNames,g=e.inputValue,p=e.searchValue,y=e.onSearch,S=e.autoClearSearchValue,E=S===void 0?!0:S,T=e.onSelect,O=e.onDeselect,M=e.dropdownMatchSelectWidth,A=M===void 0?!0:M,D=e.filterOption,_=e.filterSort,z=e.optionFilterProp,j=e.optionLabelProp,$=e.options,V=e.optionRender,H=e.children,P=e.defaultActiveFirstOption,q=e.menuItemSelectedIcon,Y=e.virtual,te=e.direction,G=e.listHeight,K=G===void 0?200:G,J=e.listItemHeight,ie=J===void 0?20:J,k=e.labelRender,X=e.value,Q=e.defaultValue,le=e.labelInValue,U=e.onChange,F=e.maxCount,ne=pa(e,NF),ae=TF(a),oe=C1(r),fe=!!(!$&&H),ye=C.useMemo(function(){return D===void 0&&r==="combobox"?!1:D},[D,r]),$e=C.useMemo(function(){return N3(m,fe)},[JSON.stringify(m),fe]),ze=mo("",{value:p!==void 0?p:g,postState:function(tt){return tt||""}}),Fe=Be(ze,2),Ke=Fe[0],Oe=Fe[1],me=MF($,H,$e,z,j),Re=me.valueOptions,Pe=me.labelOptions,be=me.options,Ce=C.useCallback(function(ct){var tt=aT(ct);return tt.map(function(gt){var bt,Ot,Bt,En,ot;if(zF(gt))bt=gt;else{var On;Bt=gt.key,Ot=gt.label,bt=(On=gt.value)!==null&&On!==void 0?On:Bt}var Jt=Re.get(bt);if(Jt){var zn;if(Ot===void 0&&(Ot=Jt?.[j||$e.label]),Bt===void 0&&(Bt=(zn=Jt?.key)!==null&&zn!==void 0?zn:bt),En=Jt?.disabled,ot=Jt?.title,mT.NODE_ENV!=="production"&&!j){var Rn=Jt?.[$e.label];Rn!==void 0&&!C.isValidElement(Rn)&&!C.isValidElement(Ot)&&Rn!==Ot&&Dn(!1,"`label` of `value` is not same as `label` in Select options.")}}return{label:Ot,value:bt,key:Bt,disabled:En,title:ot}})},[$e,j,Re]),_e=mo(Q,{value:X}),je=Be(_e,2),Ue=je[0],nt=je[1],We=C.useMemo(function(){var ct,tt=oe&&Ue===null?[]:Ue,gt=Ce(tt);return r==="combobox"&&SI((ct=gt[0])===null||ct===void 0?void 0:ct.value)?[]:gt},[Ue,Ce,r,oe]),it=SF(We,Re),rt=Be(it,2),Ge=rt[0],Rt=rt[1],wt=C.useMemo(function(){if(!r&&Ge.length===1){var ct=Ge[0];if(ct.value===null&&(ct.label===null||ct.label===void 0))return[]}return Ge.map(function(tt){var gt;return ge(ge({},tt),{},{label:(gt=typeof k=="function"?k(tt):tt.label)!==null&>!==void 0?gt:tt.value})})},[r,Ge,k]),At=C.useMemo(function(){return new Set(Ge.map(function(ct){return ct.value}))},[Ge]);C.useEffect(function(){if(r==="combobox"){var ct,tt=(ct=Ge[0])===null||ct===void 0?void 0:ct.value;Oe(bI(tt)?String(tt):"")}},[Ge]);var $t=q3(function(ct,tt){var gt=tt??ct;return de(de({},$e.value,ct),$e.label,gt)}),ht=C.useMemo(function(){if(r!=="tags")return be;var ct=Nt(be),tt=function(bt){return Re.has(bt)};return Nt(Ge).sort(function(gt,bt){return gt.value<bt.value?-1:1}).forEach(function(gt){var bt=gt.value;tt(bt)||ct.push($t(bt,gt.label))}),ct},[$t,be,Re,Ge,r]),kt=CF(ht,$e,Ke,ye,z),Vt=C.useMemo(function(){return r!=="tags"||!Ke||kt.some(function(ct){return ct[z||"value"]===Ke})||kt.some(function(ct){return ct[$e.value]===Ke})?kt:[$t(Ke)].concat(Nt(kt))},[$t,z,r,kt,Ke,$e]),Wt=function ct(tt){var gt=Nt(tt).sort(function(bt,Ot){return _(bt,Ot,{searchValue:Ke})});return gt.map(function(bt){return Array.isArray(bt.options)?ge(ge({},bt),{},{options:bt.options.length>0?ct(bt.options):bt.options}):bt})},Tt=C.useMemo(function(){return _?Wt(Vt):Vt},[Vt,_,Ke]),ut=C.useMemo(function(){return qI(Tt,{fieldNames:$e,childrenAsData:fe})},[Tt,$e,fe]),St=function(tt){var gt=Ce(tt);if(nt(gt),U&&(gt.length!==Ge.length||gt.some(function(Bt,En){var ot;return((ot=Ge[En])===null||ot===void 0?void 0:ot.value)!==Bt?.value}))){var bt=le?gt:gt.map(function(Bt){return Bt.value}),Ot=gt.map(function(Bt){return oT(Rt(Bt.value))});U(oe?bt:bt[0],oe?Ot:Ot[0])}},et=C.useState(null),lt=Be(et,2),I=lt[0],he=lt[1],Qe=C.useState(0),Je=Be(Qe,2),ft=Je[0],Ft=Je[1],_t=P!==void 0?P:r!=="combobox",Dt=C.useCallback(function(ct,tt){var gt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},bt=gt.source,Ot=bt===void 0?"keyboard":bt;Ft(tt),f&&r==="combobox"&&ct!==null&&Ot==="keyboard"&&he(String(ct))},[f,r]),dt=function(tt,gt,bt){var Ot=function(){var Un,nn=Rt(tt);return[le?{label:nn?.[$e.label],value:tt,key:(Un=nn?.key)!==null&&Un!==void 0?Un:tt}:tt,oT(nn)]};if(gt&&T){var Bt=Ot(),En=Be(Bt,2),ot=En[0],On=En[1];T(ot,On)}else if(!gt&&O&&bt!=="clear"){var Jt=Ot(),zn=Be(Jt,2),Rn=zn[0],vn=zn[1];O(Rn,vn)}},vt=q3(function(ct,tt){var gt,bt=oe?tt.selected:!0;bt?gt=oe?[].concat(Nt(Ge),[ct]):[ct]:gt=Ge.filter(function(Ot){return Ot.value!==ct}),St(gt),dt(ct,bt),r==="combobox"?he(""):(!C1||E)&&(Oe(""),he(""))}),Mt=function(tt,gt){St(tt);var bt=gt.type,Ot=gt.values;(bt==="remove"||bt==="clear")&&Ot.forEach(function(Bt){dt(Bt.value,!1,bt)})},mt=function(tt,gt){if(Oe(tt),he(null),gt.source==="submit"){var bt=(tt||"").trim();if(bt){var Ot=Array.from(new Set([].concat(Nt(At),[bt])));St(Ot),dt(bt,!0),Oe("")}return}gt.source!=="blur"&&(r==="combobox"&&St(tt),y?.(tt))},Ht=function(tt){var gt=tt;r!=="tags"&&(gt=tt.map(function(Ot){var Bt=Pe.get(Ot);return Bt?.value}).filter(function(Ot){return Ot!==void 0}));var bt=Array.from(new Set([].concat(Nt(At),Nt(gt))));St(bt),bt.forEach(function(Ot){dt(Ot,!0)})},It=C.useMemo(function(){var ct=Y!==!1&&A!==!1;return ge(ge({},me),{},{flattenOptions:ut,onActiveValue:Dt,defaultActiveFirstOption:_t,onSelect:vt,menuItemSelectedIcon:q,rawValues:At,fieldNames:$e,virtual:ct,direction:te,listHeight:K,listItemHeight:ie,childrenAsData:fe,maxCount:F,optionRender:V})},[F,me,ut,Dt,_t,vt,q,At,$e,Y,A,te,K,ie,fe,V]);return mT.NODE_ENV!=="production"&&(_F(e),DF(be,$e)),C.createElement(lT.Provider,{value:It},C.createElement($3,jt({},ne,{id:ae,prefixCls:c,ref:t,omitDomProps:$F,mode:r,displayValues:wt,onDisplayValuesChange:Mt,direction:te,searchValue:Ke,onSearch:mt,autoClearSearchValue:E,onSearchSplit:Ht,dropdownMatchSelectWidth:A,OptionList:k3,emptyOptions:!ut.length,activeValue:I,activeDescendantId:"".concat(ae,"_list_").concat(ft)})))});mT.NODE_ENV!=="production"&&(Y3.displayName="Select");var pT=Y3;pT.Option=uT,pT.OptGroup=sT;function x1(e,t,a){return Ye({[`${e}-status-success`]:t==="success",[`${e}-status-warning`]:t==="warning",[`${e}-status-error`]:t==="error",[`${e}-status-validating`]:t==="validating",[`${e}-has-feedback`]:a})}const E1=(e,t)=>t||e;var jF={};const X3=()=>{const[,e]=jo(),[t]=Vv("Empty"),r=new xa(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return C.createElement("svg",{style:r,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},C.createElement("title",null,t?.description||"Empty"),C.createElement("g",{fill:"none",fillRule:"evenodd"},C.createElement("g",{transform:"translate(24 31.67)"},C.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),C.createElement("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"}),C.createElement("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}),C.createElement("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"}),C.createElement("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"})),C.createElement("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"}),C.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},C.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),C.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))};jF.NODE_ENV!=="production"&&(X3.displayName="EmptyImage");var LF={};const W3=()=>{const[,e]=jo(),[t]=Vv("Empty"),{colorFill:a,colorFillTertiary:r,colorFillQuaternary:l,colorBgContainer:c}=e,{borderColor:f,shadowColor:m,contentColor:g}=C.useMemo(()=>({borderColor:new xa(a).onBackground(c).toHexString(),shadowColor:new xa(r).onBackground(c).toHexString(),contentColor:new xa(l).onBackground(c).toHexString()}),[a,r,l,c]);return C.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},C.createElement("title",null,t?.description||"Empty"),C.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},C.createElement("ellipse",{fill:m,cx:"32",cy:"33",rx:"32",ry:"7"}),C.createElement("g",{fillRule:"nonzero",stroke:f},C.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),C.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:g}))))};LF.NODE_ENV!=="production"&&(W3.displayName="SimpleImage");const VF=e=>{const{componentCls:t,margin:a,marginXS:r,marginXL:l,fontSize:c,lineHeight:f}=e;return{[t]:{marginInline:r,fontSize:c,lineHeight:f,textAlign:"center",[`${t}-image`]:{height:e.emptyImgHeight,marginBottom:r,opacity:e.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${t}-description`]:{color:e.colorTextDescription},[`${t}-footer`]:{marginTop:a},"&-normal":{marginBlock:l,color:e.colorTextDescription,[`${t}-description`]:{color:e.colorTextDescription},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:r,color:e.colorTextDescription,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}},HF=bi("Empty",e=>{const{componentCls:t,controlHeightLG:a,calc:r}=e,l=Ma(e,{emptyImgCls:`${t}-img`,emptyImgHeight:r(a).mul(2.5).equal(),emptyImgHeightMD:a,emptyImgHeightSM:r(a).mul(.875).equal()});return[VF(l)]});var Z3={},BF=function(e,t){var a={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(a[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,r=Object.getOwnPropertySymbols(e);l<r.length;l++)t.indexOf(r[l])<0&&Object.prototype.propertyIsEnumerable.call(e,r[l])&&(a[r[l]]=e[r[l]]);return a};const K3=C.createElement(X3,null),Q3=C.createElement(W3,null),Jc=e=>{const{className:t,rootClassName:a,prefixCls:r,image:l=K3,description:c,children:f,imageStyle:m,style:g,classNames:p,styles:y}=e,S=BF(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style","classNames","styles"]),{getPrefixCls:E,direction:T,className:O,style:M,classNames:A,styles:D}=es("empty"),_=E("empty",r),[z,j,$]=HF(_),[V]=Vv("Empty"),H=typeof c<"u"?c:V?.description,P=typeof H=="string"?H:"empty";let q=null;if(typeof l=="string"?q=C.createElement("img",{alt:P,src:l}):q=l,Z3.NODE_ENV!=="production"){const Y=Ba("Empty");[["imageStyle","styles: { image: {} }"]].forEach(([te,G])=>{Y.deprecated(!(te in e),te,G)})}return z(C.createElement("div",Object.assign({className:Ye(j,$,_,O,{[`${_}-normal`]:l===Q3,[`${_}-rtl`]:T==="rtl"},t,a,A.root,p?.root),style:Object.assign(Object.assign(Object.assign(Object.assign({},D.root),M),y?.root),g)},S),C.createElement("div",{className:Ye(`${_}-image`,A.image,p?.image),style:Object.assign(Object.assign(Object.assign({},m),D.image),y?.image)},q),H&&C.createElement("div",{className:Ye(`${_}-description`,A.description,p?.description),style:Object.assign(Object.assign({},D.description),y?.description)},H),f&&C.createElement("div",{className:Ye(`${_}-footer`,A.footer,p?.footer),style:Object.assign(Object.assign({},D.footer),y?.footer)},f)))};Jc.PRESENTED_IMAGE_DEFAULT=K3,Jc.PRESENTED_IMAGE_SIMPLE=Q3,Z3.NODE_ENV!=="production"&&(Jc.displayName="Empty");const J3=e=>{const{componentName:t}=e,{getPrefixCls:a}=C.useContext(ia),r=a("empty");switch(t){case"Table":case"List":return we.createElement(Jc,{image:Jc.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return we.createElement(Jc,{image:Jc.PRESENTED_IMAGE_SIMPLE,className:`${r}-small`});case"Table.filter":return null;default:return we.createElement(Jc,null)}},gT=(e,t,a=void 0)=>{var r,l;const{variant:c,[e]:f}=C.useContext(ia),m=C.useContext(LU),g=f?.variant;let p;typeof t<"u"?p=t:a===!1?p="borderless":p=(l=(r=m??g)!==null&&r!==void 0?r:c)!==null&&l!==void 0?l:"outlined";const y=GH.includes(p);return[p,y]},PF=e=>{const a={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:e==="scroll"?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},a),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},a),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},a),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},a),{points:["br","tr"],offset:[0,-4]})}};function UF(e,t){return e||PF(t)}const e$=e=>{const{optionHeight:t,optionFontSize:a,optionLineHeight:r,optionPadding:l}=e;return{position:"relative",display:"block",minHeight:t,padding:l,color:e.colorText,fontWeight:"normal",fontSize:a,lineHeight:r,boxSizing:"border-box"}},IF=e=>{const{antCls:t,componentCls:a}=e,r=`${a}-item`,l=`&${t}-slide-up-enter${t}-slide-up-enter-active`,c=`&${t}-slide-up-appear${t}-slide-up-appear-active`,f=`&${t}-slide-up-leave${t}-slide-up-leave-active`,m=`${a}-dropdown-placement-`,g=`${r}-option-selected`;return[{[`${a}-dropdown`]:Object.assign(Object.assign({},ts(e)),{position:"absolute",top:-9999,zIndex:e.zIndexPopup,boxSizing:"border-box",padding:e.paddingXXS,overflow:"hidden",fontSize:e.fontSize,fontVariant:"initial",backgroundColor:e.colorBgElevated,borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,[`
|
|
482
|
+
${l}${m}bottomLeft,
|
|
483
|
+
${c}${m}bottomLeft
|
|
484
|
+
`]:{animationName:CN},[`
|
|
485
|
+
${l}${m}topLeft,
|
|
486
|
+
${c}${m}topLeft,
|
|
487
|
+
${l}${m}topRight,
|
|
488
|
+
${c}${m}topRight
|
|
489
|
+
`]:{animationName:EN},[`${f}${m}bottomLeft`]:{animationName:xN},[`
|
|
490
|
+
${f}${m}topLeft,
|
|
491
|
+
${f}${m}topRight
|
|
492
|
+
`]:{animationName:wN},"&-hidden":{display:"none"},[r]:Object.assign(Object.assign({},e$(e)),{cursor:"pointer",transition:`background ${e.motionDurationSlow} ease`,borderRadius:e.borderRadiusSM,"&-group":{color:e.colorTextDescription,fontSize:e.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},cw),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${r}-option-disabled)`]:{backgroundColor:e.optionActiveBg},[`&-selected:not(${r}-option-disabled)`]:{color:e.optionSelectedColor,fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg,[`${r}-option-state`]:{color:e.colorPrimary}},"&-disabled":{[`&${r}-option-selected`]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:e.calc(e.controlPaddingHorizontal).mul(2).equal()}},"&-empty":Object.assign(Object.assign({},e$(e)),{color:e.colorTextDisabled})}),[`${g}:has(+ ${g})`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${g}`]:{borderStartStartRadius:0,borderStartEndRadius:0}},"&-rtl":{direction:"rtl"}})},TN(e,"slide-up"),TN(e,"slide-down"),SN(e,"move-up"),SN(e,"move-down")]},FF=e=>{const{multipleSelectItemHeight:t,paddingXXS:a,lineWidth:r,INTERNAL_FIXED_ITEM_MARGIN:l}=e,c=e.max(e.calc(a).sub(r).equal(),0),f=e.max(e.calc(c).sub(l).equal(),0);return{basePadding:c,containerPadding:f,itemHeight:st(t),itemLineHeight:st(e.calc(t).sub(e.calc(e.lineWidth).mul(2)).equal())}},kF=e=>{const{multipleSelectItemHeight:t,selectHeight:a,lineWidth:r}=e;return e.calc(a).sub(t).div(2).sub(r).equal()},GF=e=>{const{componentCls:t,iconCls:a,borderRadiusSM:r,motionDurationSlow:l,paddingXS:c,multipleItemColorDisabled:f,multipleItemBorderColorDisabled:m,colorIcon:g,colorIconHover:p,INTERNAL_FIXED_ITEM_MARGIN:y}=e;return{[`${t}-selection-overflow`]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"calc(100% - 4px)",display:"inline-flex"},[`${t}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",marginBlock:y,borderRadius:r,cursor:"default",transition:`font-size ${l}, line-height ${l}, height ${l}`,marginInlineEnd:e.calc(y).mul(2).equal(),paddingInlineStart:c,paddingInlineEnd:e.calc(c).div(2).equal(),[`${t}-disabled&`]:{color:f,borderColor:m,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.calc(c).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},JS()),{display:"inline-flex",alignItems:"center",color:g,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${a}`]:{verticalAlign:"-0.2em"},"&:hover":{color:p}})}}}},qF=(e,t)=>{const{componentCls:a,INTERNAL_FIXED_ITEM_MARGIN:r}=e,l=`${a}-selection-overflow`,c=e.multipleSelectItemHeight,f=kF(e),m=t?`${a}-${t}`:"",g=FF(e);return{[`${a}-multiple${m}`]:Object.assign(Object.assign({},GF(e)),{[`${a}-selector`]:{display:"flex",alignItems:"center",width:"100%",height:"100%",paddingInline:g.basePadding,paddingBlock:g.containerPadding,borderRadius:e.borderRadius,[`${a}-disabled&`]:{background:e.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${st(r)} 0`,lineHeight:st(c),visibility:"hidden",content:'"\\a0"'}},[`${a}-selection-item`]:{height:g.itemHeight,lineHeight:st(g.itemLineHeight)},[`${a}-selection-wrap`]:{alignSelf:"flex-start","&:after":{lineHeight:st(c),marginBlock:r}},[`${a}-prefix`]:{marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(g.basePadding).equal()},[`${l}-item + ${l}-item,
|
|
493
|
+
${a}-prefix + ${a}-selection-wrap
|
|
494
|
+
`]:{[`${a}-selection-search`]:{marginInlineStart:0},[`${a}-selection-placeholder`]:{insetInlineStart:0}},[`${l}-item-suffix`]:{minHeight:g.itemHeight,marginBlock:r},[`${a}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(f).equal(),"\n &-input,\n &-mirror\n ":{height:c,fontFamily:e.fontFamily,lineHeight:st(c),transition:`all ${e.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${a}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(g.basePadding).equal(),insetInlineEnd:e.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`}})}};function vT(e,t){const{componentCls:a}=e,r=t?`${a}-${t}`:"",l={[`${a}-multiple${r}`]:{fontSize:e.fontSize,[`${a}-selector`]:{[`${a}-show-search&`]:{cursor:"text"}},[`
|
|
495
|
+
&${a}-show-arrow ${a}-selector,
|
|
496
|
+
&${a}-allow-clear ${a}-selector
|
|
497
|
+
`]:{paddingInlineEnd:e.calc(e.fontSizeIcon).add(e.controlPaddingHorizontal).equal()}}};return[qF(e,t),l]}const YF=e=>{const{componentCls:t}=e,a=Ma(e,{selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),r=Ma(e,{fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius});return[vT(e),vT(a,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal()},[`${t}-selection-search`]:{marginInlineStart:2}}},vT(r,"lg")]};function yT(e,t){const{componentCls:a,inputPaddingHorizontalBase:r,borderRadius:l}=e,c=e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),f=t?`${a}-${t}`:"";return{[`${a}-single${f}`]:{fontSize:e.fontSize,height:e.controlHeight,[`${a}-selector`]:Object.assign(Object.assign({},ts(e,!0)),{display:"flex",borderRadius:l,flex:"1 1 auto",[`${a}-selection-wrap:after`]:{lineHeight:st(c)},[`${a}-selection-search`]:{position:"absolute",inset:0,width:"100%","&-input":{width:"100%",WebkitAppearance:"textfield"}},[`
|
|
498
|
+
${a}-selection-item,
|
|
499
|
+
${a}-selection-placeholder
|
|
500
|
+
`]:{display:"block",padding:0,lineHeight:st(c),transition:`all ${e.motionDurationSlow}, visibility 0s`,alignSelf:"center"},[`${a}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${a}-selection-item:empty:after`,`${a}-selection-placeholder:empty:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`
|
|
501
|
+
&${a}-show-arrow ${a}-selection-item,
|
|
502
|
+
&${a}-show-arrow ${a}-selection-search,
|
|
503
|
+
&${a}-show-arrow ${a}-selection-placeholder
|
|
504
|
+
`]:{paddingInlineEnd:e.showArrowPaddingInlineEnd},[`&${a}-open ${a}-selection-item`]:{color:e.colorTextPlaceholder},[`&:not(${a}-customize-input)`]:{[`${a}-selector`]:{width:"100%",height:"100%",alignItems:"center",padding:`0 ${st(r)}`,[`${a}-selection-search-input`]:{height:c,fontSize:e.fontSize},"&:after":{lineHeight:st(c)}}},[`&${a}-customize-input`]:{[`${a}-selector`]:{"&:after":{display:"none"},[`${a}-selection-search`]:{position:"static",width:"100%"},[`${a}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${st(r)}`,"&:after":{display:"none"}}}}}}}function XF(e){const{componentCls:t}=e,a=e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal();return[yT(e),yT(Ma(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{[`${t}-single${t}-sm`]:{[`&:not(${t}-customize-input)`]:{[`${t}-selector`]:{padding:`0 ${st(a)}`},[`&${t}-show-arrow ${t}-selection-search`]:{insetInlineEnd:e.calc(a).add(e.calc(e.fontSize).mul(1.5)).equal()},[`
|
|
505
|
+
&${t}-show-arrow ${t}-selection-item,
|
|
506
|
+
&${t}-show-arrow ${t}-selection-placeholder
|
|
507
|
+
`]:{paddingInlineEnd:e.calc(e.fontSize).mul(1.5).equal()}}}},yT(Ma(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}const WF=e=>{const{fontSize:t,lineHeight:a,lineWidth:r,controlHeight:l,controlHeightSM:c,controlHeightLG:f,paddingXXS:m,controlPaddingHorizontal:g,zIndexPopupBase:p,colorText:y,fontWeightStrong:S,controlItemBgActive:E,controlItemBgHover:T,colorBgContainer:O,colorFillSecondary:M,colorBgContainerDisabled:A,colorTextDisabled:D,colorPrimaryHover:_,colorPrimary:z,controlOutline:j}=e,$=m*2,V=r*2,H=Math.min(l-$,l-V),P=Math.min(c-$,c-V),q=Math.min(f-$,f-V);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(m/2),zIndexPopup:p+50,optionSelectedColor:y,optionSelectedFontWeight:S,optionSelectedBg:E,optionActiveBg:T,optionPadding:`${(l-t*a)/2}px ${g}px`,optionFontSize:t,optionLineHeight:a,optionHeight:l,selectorBg:O,clearBg:O,singleItemHeightLG:f,multipleItemBg:M,multipleItemBorderColor:"transparent",multipleItemHeight:H,multipleItemHeightSM:P,multipleItemHeightLG:q,multipleSelectorBgDisabled:A,multipleItemColorDisabled:D,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(e.fontSize*1.25),hoverBorderColor:_,activeBorderColor:z,activeOutlineColor:j,selectAffixPadding:m}},t$=(e,t)=>{const{componentCls:a,antCls:r,controlOutlineWidth:l}=e;return{[`&:not(${a}-customize-input) ${a}-selector`]:{border:`${st(e.lineWidth)} ${e.lineType} ${t.borderColor}`,background:e.selectorBg},[`&:not(${a}-disabled):not(${a}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${a}-selector`]:{borderColor:t.hoverBorderHover},[`${a}-focused& ${a}-selector`]:{borderColor:t.activeBorderColor,boxShadow:`0 0 0 ${st(l)} ${t.activeOutlineColor}`,outline:0},[`${a}-prefix`]:{color:t.color}}}},n$=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},t$(e,t))}),ZF=e=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},t$(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeOutlineColor:e.activeOutlineColor,color:e.colorText})),n$(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeOutlineColor:e.colorErrorOutline,color:e.colorError})),n$(e,{status:"warning",borderColor:e.colorWarning,hoverBorderHover:e.colorWarningHover,activeBorderColor:e.colorWarning,activeOutlineColor:e.colorWarningOutline,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${st(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),a$=(e,t)=>{const{componentCls:a,antCls:r}=e;return{[`&:not(${a}-customize-input) ${a}-selector`]:{background:t.bg,border:`${st(e.lineWidth)} ${e.lineType} transparent`,color:t.color},[`&:not(${a}-disabled):not(${a}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${a}-selector`]:{background:t.hoverBg},[`${a}-focused& ${a}-selector`]:{background:e.selectorBg,borderColor:t.activeBorderColor,outline:0}}}},r$=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},a$(e,t))}),KF=e=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},a$(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor,color:e.colorText})),r$(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,color:e.colorError})),r$(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{borderColor:e.colorBorder,background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.colorBgContainer,border:`${st(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}})}),QF=e=>({"&-borderless":{[`${e.componentCls}-selector`]:{background:"transparent",border:`${st(e.lineWidth)} ${e.lineType} transparent`},[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${st(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`},[`&${e.componentCls}-status-error`]:{[`${e.componentCls}-prefix, ${e.componentCls}-selection-item`]:{color:e.colorError}},[`&${e.componentCls}-status-warning`]:{[`${e.componentCls}-prefix, ${e.componentCls}-selection-item`]:{color:e.colorWarning}}}}),i$=(e,t)=>{const{componentCls:a,antCls:r}=e;return{[`&:not(${a}-customize-input) ${a}-selector`]:{borderWidth:`0 0 ${st(e.lineWidth)} 0`,borderStyle:`none none ${e.lineType} none`,borderColor:t.borderColor,background:e.selectorBg,borderRadius:0},[`&:not(${a}-disabled):not(${a}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${a}-selector`]:{borderColor:t.hoverBorderHover},[`${a}-focused& ${a}-selector`]:{borderColor:t.activeBorderColor,outline:0},[`${a}-prefix`]:{color:t.color}}}},o$=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},i$(e,t))}),JF=e=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign({},i$(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeOutlineColor:e.activeOutlineColor,color:e.colorText})),o$(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeOutlineColor:e.colorErrorOutline,color:e.colorError})),o$(e,{status:"warning",borderColor:e.colorWarning,hoverBorderHover:e.colorWarningHover,activeBorderColor:e.colorWarning,activeOutlineColor:e.colorWarningOutline,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${st(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),ek=e=>({[e.componentCls]:Object.assign(Object.assign(Object.assign(Object.assign({},ZF(e)),KF(e)),QF(e)),JF(e))}),tk=e=>{const{componentCls:t}=e;return{position:"relative",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,input:{cursor:"pointer"},[`${t}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},[`${t}-disabled&`]:{cursor:"not-allowed",input:{cursor:"not-allowed"}}}},nk=e=>{const{componentCls:t}=e;return{[`${t}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none",fontFamily:"inherit","&::-webkit-search-cancel-button":{display:"none",appearance:"none"}}}},ak=e=>{const{antCls:t,componentCls:a,inputPaddingHorizontalBase:r,iconCls:l}=e,c={[`${a}-clear`]:{opacity:1,background:e.colorBgBase,borderRadius:"50%"}};return{[a]:Object.assign(Object.assign({},ts(e)),{position:"relative",display:"inline-flex",cursor:"pointer",[`&:not(${a}-customize-input) ${a}-selector`]:Object.assign(Object.assign({},tk(e)),nk(e)),[`${a}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},cw),{[`> ${t}-typography`]:{display:"inline"}}),[`${a}-selection-placeholder`]:Object.assign(Object.assign({},cw),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${a}-arrow`]:Object.assign(Object.assign({},JS()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",transition:`opacity ${e.motionDurationSlow} ease`,[l]:{verticalAlign:"top",transition:`transform ${e.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${a}-suffix)`]:{pointerEvents:"auto"}},[`${a}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${a}-selection-wrap`]:{display:"flex",width:"100%",position:"relative",minWidth:0,"&:after":{content:'"\\a0"',width:0,overflow:"hidden"}},[`${a}-prefix`]:{flex:"none",marginInlineEnd:e.selectAffixPadding},[`${a}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,zIndex:1,display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",cursor:"pointer",opacity:0,transition:`color ${e.motionDurationMid} ease, opacity ${e.motionDurationSlow} ease`,textRendering:"auto",transform:"translateZ(0)","&:before":{display:"block"},"&:hover":{color:e.colorIcon}},"@media(hover:none)":c,"&:hover":c}),[`${a}-status`]:{"&-error, &-warning, &-success, &-validating":{[`&${a}-has-feedback`]:{[`${a}-clear`]:{insetInlineEnd:e.calc(r).add(e.fontSize).add(e.paddingXS).equal()}}}}}},rk=e=>{const{componentCls:t}=e;return[{[t]:{[`&${t}-in-form-item`]:{width:"100%"}}},ak(e),XF(e),YF(e),IF(e),{[`${t}-rtl`]:{direction:"rtl"}},Hw(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},ik=bi("Select",(e,{rootPrefixCls:t})=>{const a=Ma(e,{rootPrefixCls:t,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[rk(a),ek(a)]},WF,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}});var ok={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"},lk={},sk=function(t,a){return C.createElement(oa,jt({},t,{ref:a,icon:ok}))},bT=C.forwardRef(sk);lk.NODE_ENV!=="production"&&(bT.displayName="CheckOutlined");var uk={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"},ck={},fk=function(t,a){return C.createElement(oa,jt({},t,{ref:a,icon:uk}))},l$=C.forwardRef(fk);ck.NODE_ENV!=="production"&&(l$.displayName="DownOutlined");var dk={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"},hk={},mk=function(t,a){return C.createElement(oa,jt({},t,{ref:a,icon:dk}))},ST=C.forwardRef(mk);hk.NODE_ENV!=="production"&&(ST.displayName="SearchOutlined");var pk={};function gk({suffixIcon:e,clearIcon:t,menuItemSelectedIcon:a,removeIcon:r,loading:l,multiple:c,hasFeedback:f,prefixCls:m,showSuffixIcon:g,feedbackIcon:p,showArrow:y,componentName:S}){pk.NODE_ENV!=="production"&&Ba(S).deprecated(!t,"clearIcon","allowClear={{ clearIcon: React.ReactNode }}");const E=t??C.createElement(Cw,null),T=D=>e===null&&!f&&!y?null:C.createElement(C.Fragment,null,g!==!1&&D,f&&p);let O=null;if(e!==void 0)O=T(e);else if(l)O=T(C.createElement(ku,{spin:!0}));else{const D=`${m}-suffix`;O=({open:_,showSearch:z})=>T(_&&z?C.createElement(ST,{className:D}):C.createElement(l$,{className:D}))}let M=null;a!==void 0?M=a:c?M=C.createElement(bT,null):M=null;let A=null;return r!==void 0?A=r:A=C.createElement(qv,null),{clearIcon:E,suffixIcon:O,itemIcon:M,removeIcon:A}}function vk(e,t){return t!==void 0?t:e!==null}var o0={},yk=function(e,t){var a={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(a[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,r=Object.getOwnPropertySymbols(e);l<r.length;l++)t.indexOf(r[l])<0&&Object.prototype.propertyIsEnumerable.call(e,r[l])&&(a[r[l]]=e[r[l]]);return a};const s$="SECRET_COMBOBOX_MODE_DO_NOT_USE",u$=(e,t)=>{var a,r,l,c,f;const{prefixCls:m,bordered:g,className:p,rootClassName:y,getPopupContainer:S,popupClassName:E,dropdownClassName:T,listHeight:O=256,placement:M,listItemHeight:A,size:D,disabled:_,notFoundContent:z,status:j,builtinPlacements:$,dropdownMatchSelectWidth:V,popupMatchSelectWidth:H,direction:P,style:q,allowClear:Y,variant:te,dropdownStyle:G,transitionName:K,tagRender:J,maxCount:ie,prefix:k,dropdownRender:X,popupRender:Q,onDropdownVisibleChange:le,onOpenChange:U,styles:F,classNames:ne}=e,ae=yk(e,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear","variant","dropdownStyle","transitionName","tagRender","maxCount","prefix","dropdownRender","popupRender","onDropdownVisibleChange","onOpenChange","styles","classNames"]),{getPopupContainer:oe,getPrefixCls:fe,renderEmpty:ye,direction:$e,virtual:ze,popupMatchSelectWidth:Fe,popupOverflow:Ke}=C.useContext(ia),{showSearch:Oe,style:me,styles:Re,className:Pe,classNames:be}=es("select"),[,Ce]=jo(),_e=A??Ce?.controlHeight,je=fe("select",m),Ue=fe(),nt=P??$e,{compactSize:We,compactItemClassnames:it}=Wv(je,nt),[rt,Ge]=gT("select",te,g),Rt=Yv(je),[wt,At,$t]=ik(je,Rt),ht=C.useMemo(()=>{const{mode:bt}=e;if(bt!=="combobox")return bt===s$?"combobox":bt},[e.mode]),kt=ht==="multiple"||ht==="tags",Vt=vk(e.suffixIcon,e.showArrow),Wt=(a=H??V)!==null&&a!==void 0?a:Fe,Tt=((r=F?.popup)===null||r===void 0?void 0:r.root)||((l=Re.popup)===null||l===void 0?void 0:l.root)||G,ut=Q||X,St=U||le,{status:et,hasFeedback:lt,isFormItemInput:I,feedbackIcon:he}=C.useContext(Ws),Qe=E1(et,j);let Je;z!==void 0?Je=z:ht==="combobox"?Je=null:Je=ye?.("Select")||C.createElement(J3,{componentName:"Select"});const{suffixIcon:ft,itemIcon:Ft,removeIcon:_t,clearIcon:Dt}=gk(Object.assign(Object.assign({},ae),{multiple:kt,hasFeedback:lt,feedbackIcon:he,showSuffixIcon:Vt,prefixCls:je,componentName:"Select"})),dt=Y===!0?{clearIcon:Dt}:Y,vt=Md(ae,["suffixIcon","itemIcon"]),Mt=Ye(((c=ne?.popup)===null||c===void 0?void 0:c.root)||((f=be?.popup)===null||f===void 0?void 0:f.root)||E||T,{[`${je}-dropdown-${nt}`]:nt==="rtl"},y,be.root,ne?.root,$t,Rt,At),mt=qu(bt=>{var Ot;return(Ot=D??We)!==null&&Ot!==void 0?Ot:bt}),Ht=C.useContext(Wc),It=_??Ht,ct=Ye({[`${je}-lg`]:mt==="large",[`${je}-sm`]:mt==="small",[`${je}-rtl`]:nt==="rtl",[`${je}-${rt}`]:Ge,[`${je}-in-form-item`]:I},x1(je,Qe,lt),it,Pe,p,be.root,ne?.root,y,$t,Rt,At),tt=C.useMemo(()=>M!==void 0?M:nt==="rtl"?"bottomRight":"bottomLeft",[M,nt]);if(o0.NODE_ENV!=="production"){const bt=Ba("Select");Object.entries({dropdownMatchSelectWidth:"popupMatchSelectWidth",dropdownStyle:"styles.popup.root",dropdownClassName:"classNames.popup.root",popupClassName:"classNames.popup.root",dropdownRender:"popupRender",onDropdownVisibleChange:"onOpenChange",bordered:"variant"}).forEach(([Bt,En])=>{bt.deprecated(!(Bt in e),Bt,En)}),o0.NODE_ENV!=="production"&&bt(!("showArrow"in e),"deprecated","`showArrow` is deprecated which will be removed in next major version. It will be a default behavior, you can hide it by setting `suffixIcon` to null."),o0.NODE_ENV!=="production"&&bt(!(typeof ie<"u"&&!kt),"usage","`maxCount` only works with mode `multiple` or `tags`")}const[gt]=KD("SelectLike",Tt?.zIndex);return wt(C.createElement(pT,Object.assign({ref:t,virtual:ze,showSearch:Oe},vt,{style:Object.assign(Object.assign(Object.assign(Object.assign({},Re.root),F?.root),me),q),dropdownMatchSelectWidth:Wt,transitionName:Rw(Ue,"slide-up",K),builtinPlacements:UF($,Ke),listHeight:O,listItemHeight:_e,mode:ht,prefixCls:je,placement:tt,direction:nt,prefix:k,suffixIcon:ft,menuItemSelectedIcon:Ft,removeIcon:_t,allowClear:dt,notFoundContent:Je,className:ct,getPopupContainer:S||oe,dropdownClassName:Mt,disabled:It,dropdownStyle:Object.assign(Object.assign({},Tt),{zIndex:gt}),maxCount:kt?ie:void 0,tagRender:kt?J:void 0,dropdownRender:ut,onDropdownVisibleChange:St})))};o0.NODE_ENV!=="production"&&(u$.displayName="Select");const Dd=C.forwardRef(u$),bk=WU(Dd,"dropdownAlign");Dd.SECRET_COMBOBOX_MODE_DO_NOT_USE=s$,Dd.Option=uT,Dd.OptGroup=sT,Dd._InternalPanelDoNotUseOrYouWillBeFired=bk,o0.NODE_ENV!=="production"&&(Dd.displayName="Select");const Sk=(e,t)=>{typeof e?.addEventListener<"u"?e.addEventListener("change",t):typeof e?.addListener<"u"&&e.addListener(t)},Ck=(e,t)=>{typeof e?.removeEventListener<"u"?e.removeEventListener("change",t):typeof e?.removeListener<"u"&&e.removeListener(t)},ef=["xxl","xl","lg","md","sm","xs"],xk=e=>({xs:`(max-width: ${e.screenXSMax}px)`,sm:`(min-width: ${e.screenSM}px)`,md:`(min-width: ${e.screenMD}px)`,lg:`(min-width: ${e.screenLG}px)`,xl:`(min-width: ${e.screenXL}px)`,xxl:`(min-width: ${e.screenXXL}px)`}),Ek=e=>{const t=e,a=[].concat(ef).reverse();return a.forEach((r,l)=>{const c=r.toUpperCase(),f=`screen${c}Min`,m=`screen${c}`;if(!(t[f]<=t[m]))throw new Error(`${f}<=${m} fails : !(${t[f]}<=${t[m]})`);if(l<a.length-1){const g=`screen${c}Max`;if(!(t[m]<=t[g]))throw new Error(`${m}<=${g} fails : !(${t[m]}<=${t[g]})`);const y=`screen${a[l+1].toUpperCase()}Min`;if(!(t[g]<=t[y]))throw new Error(`${g}<=${y} fails : !(${t[g]}<=${t[y]})`)}}),e},wk=()=>{const[,e]=jo(),t=xk(Ek(e));return we.useMemo(()=>{const a=new Map;let r=-1,l={};return{responsiveMap:t,matchHandlers:{},dispatch(c){return l=c,a.forEach(f=>f(l)),a.size>=1},subscribe(c){return a.size||this.register(),r+=1,a.set(r,c),c(l),r},unsubscribe(c){a.delete(c),a.size||this.unregister()},register(){Object.entries(t).forEach(([c,f])=>{const m=({matches:p})=>{this.dispatch(Object.assign(Object.assign({},l),{[c]:p}))},g=window.matchMedia(f);Sk(g,m),this.matchHandlers[f]={mql:g,listener:m},m(g)})},unregister(){Object.values(t).forEach(c=>{const f=this.matchHandlers[c];Ck(f?.mql,f?.listener)}),a.clear()}}},[e])};function Tk(){const[,e]=C.useReducer(t=>t+1,0);return e}function w1(e=!0,t={}){const a=C.useRef(t),r=Tk(),l=wk();return Zn(()=>{const c=l.subscribe(f=>{a.current=f,e&&r()});return()=>l.unsubscribe(c)},[]),a.current}const CT=C.createContext({}),Ok=e=>{const{antCls:t,componentCls:a,iconCls:r,avatarBg:l,avatarColor:c,containerSize:f,containerSizeLG:m,containerSizeSM:g,textFontSize:p,textFontSizeLG:y,textFontSizeSM:S,borderRadius:E,borderRadiusLG:T,borderRadiusSM:O,lineWidth:M,lineType:A}=e,D=(_,z,j)=>({width:_,height:_,borderRadius:"50%",[`&${a}-square`]:{borderRadius:j},[`&${a}-icon`]:{fontSize:z,[`> ${r}`]:{margin:0}}});return{[a]:Object.assign(Object.assign(Object.assign(Object.assign({},ts(e)),{position:"relative",display:"inline-flex",justifyContent:"center",alignItems:"center",overflow:"hidden",color:c,whiteSpace:"nowrap",textAlign:"center",verticalAlign:"middle",background:l,border:`${st(M)} ${A} transparent`,"&-image":{background:"transparent"},[`${t}-image-img`]:{display:"block"}}),D(f,p,E)),{"&-lg":Object.assign({},D(m,y,T)),"&-sm":Object.assign({},D(g,S,O)),"> img":{display:"block",width:"100%",height:"100%",objectFit:"cover"}})}},Rk=e=>{const{componentCls:t,groupBorderColor:a,groupOverlapping:r,groupSpace:l}=e;return{[`${t}-group`]:{display:"inline-flex",[t]:{borderColor:a},"> *:not(:first-child)":{marginInlineStart:r}},[`${t}-group-popover`]:{[`${t} + ${t}`]:{marginInlineStart:l}}}},c$=bi("Avatar",e=>{const{colorTextLightSolid:t,colorTextPlaceholder:a}=e,r=Ma(e,{avatarBg:a,avatarColor:t});return[Ok(r),Rk(r)]},e=>{const{controlHeight:t,controlHeightLG:a,controlHeightSM:r,fontSize:l,fontSizeLG:c,fontSizeXL:f,fontSizeHeading3:m,marginXS:g,marginXXS:p,colorBorderBg:y}=e;return{containerSize:t,containerSizeLG:a,containerSizeSM:r,textFontSize:Math.round((c+f)/2),textFontSizeLG:m,textFontSizeSM:l,groupSpace:p,groupOverlapping:-g,groupBorderColor:y}});var xT={},Ak=function(e,t){var a={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(a[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,r=Object.getOwnPropertySymbols(e);l<r.length;l++)t.indexOf(r[l])<0&&Object.prototype.propertyIsEnumerable.call(e,r[l])&&(a[r[l]]=e[r[l]]);return a};const ET=C.forwardRef((e,t)=>{const{prefixCls:a,shape:r,size:l,src:c,srcSet:f,icon:m,className:g,rootClassName:p,style:y,alt:S,draggable:E,children:T,crossOrigin:O,gap:M=4,onError:A}=e,D=Ak(e,["prefixCls","shape","size","src","srcSet","icon","className","rootClassName","style","alt","draggable","children","crossOrigin","gap","onError"]),[_,z]=C.useState(1),[j,$]=C.useState(!1),[V,H]=C.useState(!0),P=C.useRef(null),q=C.useRef(null),Y=Wl(t,P),{getPrefixCls:te,avatar:G}=C.useContext(ia),K=C.useContext(CT),J=()=>{if(!q.current||!P.current)return;const Oe=q.current.offsetWidth,me=P.current.offsetWidth;Oe!==0&&me!==0&&M*2<me&&z(me-M*2<Oe?(me-M*2)/Oe:1)};C.useEffect(()=>{$(!0)},[]),C.useEffect(()=>{H(!0),z(1)},[c]),C.useEffect(J,[M]);const ie=()=>{A?.()!==!1&&H(!1)},k=qu(Oe=>{var me,Re;return(Re=(me=l??K?.size)!==null&&me!==void 0?me:Oe)!==null&&Re!==void 0?Re:"default"}),X=Object.keys(typeof k=="object"?k||{}:{}).some(Oe=>["xs","sm","md","lg","xl","xxl"].includes(Oe)),Q=w1(X),le=C.useMemo(()=>{if(typeof k!="object")return{};const Oe=ef.find(Re=>Q[Re]),me=k[Oe];return me?{width:me,height:me,fontSize:me&&(m||T)?me/2:18}:{}},[Q,k]);if(xT.NODE_ENV!=="production"){const Oe=Ba("Avatar");xT.NODE_ENV!=="production"&&Oe(!(typeof m=="string"&&m.length>2),"breaking",`\`icon\` is using ReactNode instead of string naming in v4. Please check \`${m}\` at https://ant.design/components/icon`)}const U=te("avatar",a),F=Yv(U),[ne,ae,oe]=c$(U,F),fe=Ye({[`${U}-lg`]:k==="large",[`${U}-sm`]:k==="small"}),ye=C.isValidElement(c),$e=r||K?.shape||"circle",ze=Ye(U,fe,G?.className,`${U}-${$e}`,{[`${U}-image`]:ye||c&&V,[`${U}-icon`]:!!m},oe,F,g,p,ae),Fe=typeof k=="number"?{width:k,height:k,fontSize:m?k/2:18}:{};let Ke;if(typeof c=="string"&&V)Ke=C.createElement("img",{src:c,draggable:E,srcSet:f,onError:ie,alt:S,crossOrigin:O});else if(ye)Ke=c;else if(m)Ke=m;else if(j||_!==1){const Oe=`scale(${_})`,me={msTransform:Oe,WebkitTransform:Oe,transform:Oe};Ke=C.createElement(Zl,{onResize:J},C.createElement("span",{className:`${U}-string`,ref:q,style:Object.assign({},me)},T))}else Ke=C.createElement("span",{className:`${U}-string`,style:{opacity:0},ref:q},T);return ne(C.createElement("span",Object.assign({},D,{style:Object.assign(Object.assign(Object.assign(Object.assign({},Fe),le),G?.style),y),className:ze,ref:Y}),Ke))});xT.NODE_ENV!=="production"&&(ET.displayName="Avatar");const T1=e=>e?typeof e=="function"?e():e:null;function wT(e){var t=e.children,a=e.prefixCls,r=e.id,l=e.overlayInnerStyle,c=e.bodyClassName,f=e.className,m=e.style;return C.createElement("div",{className:Ye("".concat(a,"-content"),f),style:m},C.createElement("div",{className:Ye("".concat(a,"-inner"),c),id:r,role:"tooltip",style:l},typeof t=="function"?t():t))}var Um={shiftX:64,adjustY:1},Im={adjustX:1,shiftY:!0},yl=[0,0],Mk={left:{points:["cr","cl"],overflow:Im,offset:[-4,0],targetOffset:yl},right:{points:["cl","cr"],overflow:Im,offset:[4,0],targetOffset:yl},top:{points:["bc","tc"],overflow:Um,offset:[0,-4],targetOffset:yl},bottom:{points:["tc","bc"],overflow:Um,offset:[0,4],targetOffset:yl},topLeft:{points:["bl","tl"],overflow:Um,offset:[0,-4],targetOffset:yl},leftTop:{points:["tr","tl"],overflow:Im,offset:[-4,0],targetOffset:yl},topRight:{points:["br","tr"],overflow:Um,offset:[0,-4],targetOffset:yl},rightTop:{points:["tl","tr"],overflow:Im,offset:[4,0],targetOffset:yl},bottomRight:{points:["tr","br"],overflow:Um,offset:[0,4],targetOffset:yl},rightBottom:{points:["bl","br"],overflow:Im,offset:[4,0],targetOffset:yl},bottomLeft:{points:["tl","bl"],overflow:Um,offset:[0,4],targetOffset:yl},leftBottom:{points:["br","bl"],overflow:Im,offset:[-4,0],targetOffset:yl}},_k=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow","classNames","styles"],Dk=function(t,a){var r=t.overlayClassName,l=t.trigger,c=l===void 0?["hover"]:l,f=t.mouseEnterDelay,m=f===void 0?0:f,g=t.mouseLeaveDelay,p=g===void 0?.1:g,y=t.overlayStyle,S=t.prefixCls,E=S===void 0?"rc-tooltip":S,T=t.children,O=t.onVisibleChange,M=t.afterVisibleChange,A=t.transitionName,D=t.animation,_=t.motion,z=t.placement,j=z===void 0?"right":z,$=t.align,V=$===void 0?{}:$,H=t.destroyTooltipOnHide,P=H===void 0?!1:H,q=t.defaultVisible,Y=t.getTooltipContainer,te=t.overlayInnerStyle;t.arrowContent;var G=t.overlay,K=t.id,J=t.showArrow,ie=J===void 0?!0:J,k=t.classNames,X=t.styles,Q=pa(t,_k),le=PN(K),U=C.useRef(null);C.useImperativeHandle(a,function(){return U.current});var F=ge({},Q);"visible"in t&&(F.popupVisible=t.visible);var ne=function(){return C.createElement(wT,{key:"content",prefixCls:E,id:le,bodyClassName:k?.body,overlayInnerStyle:ge(ge({},te),X?.body)},G)},ae=function(){var fe=C.Children.only(T),ye=fe?.props||{},$e=ge(ge({},ye),{},{"aria-describedby":G?le:null});return C.cloneElement(T,$e)};return C.createElement(M3,jt({popupClassName:Ye(r,k?.root),prefixCls:E,popup:ne,action:c,builtinPlacements:Mk,popupPlacement:j,ref:U,popupAlign:V,getPopupContainer:Y,onPopupVisibleChange:O,afterPopupVisibleChange:M,popupTransitionName:A,popupAnimation:D,popupMotion:_,defaultPopupVisible:q,autoDestroy:P,mouseLeaveDelay:p,popupStyle:ge(ge({},y),X?.root),mouseEnterDelay:m,arrow:ie},F),ae())};const Nk=C.forwardRef(Dk);function f$(e){const{sizePopupArrow:t,borderRadiusXS:a,borderRadiusOuter:r}=e,l=t/2,c=0,f=l,m=r*1/Math.sqrt(2),g=l-r*(1-1/Math.sqrt(2)),p=l-a*(1/Math.sqrt(2)),y=r*(Math.sqrt(2)-1)+a*(1/Math.sqrt(2)),S=2*l-p,E=y,T=2*l-m,O=g,M=2*l-c,A=f,D=l*Math.sqrt(2)+r*(Math.sqrt(2)-2),_=r*(Math.sqrt(2)-1),z=`polygon(${_}px 100%, 50% ${_}px, ${2*l-_}px 100%, ${_}px 100%)`,j=`path('M ${c} ${f} A ${r} ${r} 0 0 0 ${m} ${g} L ${p} ${y} A ${a} ${a} 0 0 1 ${S} ${E} L ${T} ${O} A ${r} ${r} 0 0 0 ${M} ${A} Z')`;return{arrowShadowWidth:D,arrowPath:j,arrowPolygon:z}}const $k=(e,t,a)=>{const{sizePopupArrow:r,arrowPolygon:l,arrowPath:c,arrowShadowWidth:f,borderRadiusXS:m,calc:g}=e;return{pointerEvents:"none",width:r,height:r,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:r,height:g(r).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[l,c]},content:'""'},"&::after":{content:'""',position:"absolute",width:f,height:f,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${st(m)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:a,zIndex:0,background:"transparent"}}},d$=8;function TT(e){const{contentRadius:t,limitVerticalRadius:a}=e,r=t>12?t+2:12;return{arrowOffsetHorizontal:r,arrowOffsetVertical:a?d$:r}}function O1(e,t){return e?t:{}}function h$(e,t,a){const{componentCls:r,boxShadowPopoverArrow:l,arrowOffsetVertical:c,arrowOffsetHorizontal:f}=e,{arrowDistance:m=0,arrowPlacement:g={left:!0,right:!0,top:!0,bottom:!0}}={};return{[r]:Object.assign(Object.assign(Object.assign(Object.assign({[`${r}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},$k(e,t,l)),{"&:before":{background:t}})]},O1(!!g.top,{[[`&-placement-top > ${r}-arrow`,`&-placement-topLeft > ${r}-arrow`,`&-placement-topRight > ${r}-arrow`].join(",")]:{bottom:m,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},"&-placement-topLeft":{"--arrow-offset-horizontal":f,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:f}}},"&-placement-topRight":{"--arrow-offset-horizontal":`calc(100% - ${st(f)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:f}}}})),O1(!!g.bottom,{[[`&-placement-bottom > ${r}-arrow`,`&-placement-bottomLeft > ${r}-arrow`,`&-placement-bottomRight > ${r}-arrow`].join(",")]:{top:m,transform:"translateY(-100%)"},[`&-placement-bottom > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{"--arrow-offset-horizontal":f,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:f}}},"&-placement-bottomRight":{"--arrow-offset-horizontal":`calc(100% - ${st(f)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:f}}}})),O1(!!g.left,{[[`&-placement-left > ${r}-arrow`,`&-placement-leftTop > ${r}-arrow`,`&-placement-leftBottom > ${r}-arrow`].join(",")]:{right:{_skip_check_:!0,value:m},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${r}-arrow`]:{top:c},[`&-placement-leftBottom > ${r}-arrow`]:{bottom:c}})),O1(!!g.right,{[[`&-placement-right > ${r}-arrow`,`&-placement-rightTop > ${r}-arrow`,`&-placement-rightBottom > ${r}-arrow`].join(",")]:{left:{_skip_check_:!0,value:m},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${r}-arrow`]:{top:c},[`&-placement-rightBottom > ${r}-arrow`]:{bottom:c}}))}}function zk(e,t,a,r){if(r===!1)return{adjustX:!1,adjustY:!1};const l=r&&typeof r=="object"?r:{},c={};switch(e){case"top":case"bottom":c.shiftX=t.arrowOffsetHorizontal*2+a,c.shiftY=!0,c.adjustY=!0;break;case"left":case"right":c.shiftY=t.arrowOffsetVertical*2+a,c.shiftX=!0,c.adjustX=!0;break}const f=Object.assign(Object.assign({},c),l);return f.shiftX||(f.adjustX=!0),f.shiftY||(f.adjustY=!0),f}const m$={left:{points:["cr","cl"]},right:{points:["cl","cr"]},top:{points:["bc","tc"]},bottom:{points:["tc","bc"]},topLeft:{points:["bl","tl"]},leftTop:{points:["tr","tl"]},topRight:{points:["br","tr"]},rightTop:{points:["tl","tr"]},bottomRight:{points:["tr","br"]},rightBottom:{points:["bl","br"]},bottomLeft:{points:["tl","bl"]},leftBottom:{points:["br","bl"]}},jk={topLeft:{points:["bl","tc"]},leftTop:{points:["tr","cl"]},topRight:{points:["br","tc"]},rightTop:{points:["tl","cr"]},bottomRight:{points:["tr","bc"]},rightBottom:{points:["bl","cr"]},bottomLeft:{points:["tl","bc"]},leftBottom:{points:["br","cl"]}},Lk=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function Vk(e){const{arrowWidth:t,autoAdjustOverflow:a,arrowPointAtCenter:r,offset:l,borderRadius:c}=e,f=t/2,m={};return Object.keys(m$).forEach(g=>{const p=r&&jk[g]||m$[g],y=Object.assign(Object.assign({},p),{offset:[0,0],dynamicInset:!0});switch(m[g]=y,Lk.has(g)&&(y.autoArrow=!1),g){case"top":case"topLeft":case"topRight":y.offset[1]=-f-l;break;case"bottom":case"bottomLeft":case"bottomRight":y.offset[1]=f+l;break;case"left":case"leftTop":case"leftBottom":y.offset[0]=-f-l;break;case"right":case"rightTop":case"rightBottom":y.offset[0]=f+l;break}const S=TT({contentRadius:c,limitVerticalRadius:!0});if(r)switch(g){case"topLeft":case"bottomLeft":y.offset[0]=-S.arrowOffsetHorizontal-f;break;case"topRight":case"bottomRight":y.offset[0]=S.arrowOffsetHorizontal+f;break;case"leftTop":case"rightTop":y.offset[1]=-S.arrowOffsetHorizontal*2+f;break;case"leftBottom":case"rightBottom":y.offset[1]=S.arrowOffsetHorizontal*2-f;break}y.overflow=zk(g,S,t,a),y.htmlRegion="visibleFirst"}),m}const Hk=e=>{const{calc:t,componentCls:a,tooltipMaxWidth:r,tooltipColor:l,tooltipBg:c,tooltipBorderRadius:f,zIndexPopup:m,controlHeight:g,boxShadowSecondary:p,paddingSM:y,paddingXS:S,arrowOffsetHorizontal:E,sizePopupArrow:T}=e,O=t(f).add(T).add(E).equal(),M=t(f).mul(2).add(T).equal();return[{[a]:Object.assign(Object.assign(Object.assign(Object.assign({},ts(e)),{position:"absolute",zIndex:m,display:"block",width:"max-content",maxWidth:r,visibility:"visible","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"&-hidden":{display:"none"},"--antd-arrow-background-color":c,[`${a}-inner`]:{minWidth:M,minHeight:g,padding:`${st(e.calc(y).div(2).equal())} ${st(S)}`,color:l,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:c,borderRadius:f,boxShadow:p,boxSizing:"border-box"},[["&-placement-topLeft","&-placement-topRight","&-placement-bottomLeft","&-placement-bottomRight"].join(",")]:{minWidth:O},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${a}-inner`]:{borderRadius:e.min(f,d$)}},[`${a}-content`]:{position:"relative"}}),EB(e,(A,{darkColor:D})=>({[`&${a}-${A}`]:{[`${a}-inner`]:{backgroundColor:D},[`${a}-arrow`]:{"--antd-arrow-background-color":D}}}))),{"&-rtl":{direction:"rtl"}})},h$(e,"var(--antd-arrow-background-color)"),{[`${a}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},Bk=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},TT({contentRadius:e.borderRadius,limitVerticalRadius:!0})),f$(Ma(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),p$=(e,t=!0)=>bi("Tooltip",r=>{const{borderRadius:l,colorTextLightSolid:c,colorBgSpotlight:f}=r,m=Ma(r,{tooltipMaxWidth:250,tooltipColor:c,tooltipBorderRadius:l,tooltipBg:f});return[Hk(m),AN(r,"zoom-big-fast")]},Bk,{resetStyle:!1,injectStyle:t})(e),Pk=Zc.map(e=>`${e}-inverse`);function Uk(e,t=!0){return t?[].concat(Nt(Pk),Nt(Zc)).includes(e):Zc.includes(e)}function g$(e,t){const a=Uk(t),r=Ye({[`${e}-${t}`]:t&&a}),l={},c={};return t&&!a&&(l.background=t,c["--antd-arrow-background-color"]=t),{className:r,overlayStyle:l,arrowStyle:c}}const Ik=e=>{const{prefixCls:t,className:a,placement:r="top",title:l,color:c,overlayInnerStyle:f}=e,{getPrefixCls:m}=C.useContext(ia),g=m("tooltip",t),[p,y,S]=p$(g),E=g$(g,c),T=E.arrowStyle,O=Object.assign(Object.assign({},f),E.overlayStyle),M=Ye(y,S,g,`${g}-pure`,`${g}-placement-${r}`,a,E.className);return p(C.createElement("div",{className:M,style:T},C.createElement("div",{className:`${g}-arrow`}),C.createElement(wT,Object.assign({},e,{className:y,prefixCls:g,overlayInnerStyle:O}),l)))};var R1={},Fk=function(e,t){var a={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(a[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,r=Object.getOwnPropertySymbols(e);l<r.length;l++)t.indexOf(r[l])<0&&Object.prototype.propertyIsEnumerable.call(e,r[l])&&(a[r[l]]=e[r[l]]);return a};const Nd=C.forwardRef((e,t)=>{var a,r;const{prefixCls:l,openClassName:c,getTooltipContainer:f,color:m,overlayInnerStyle:g,children:p,afterOpenChange:y,afterVisibleChange:S,destroyTooltipOnHide:E,destroyOnHidden:T,arrow:O=!0,title:M,overlay:A,builtinPlacements:D,arrowPointAtCenter:_=!1,autoAdjustOverflow:z=!0,motion:j,getPopupContainer:$,placement:V="top",mouseEnterDelay:H=.1,mouseLeaveDelay:P=.1,overlayStyle:q,rootClassName:Y,overlayClassName:te,styles:G,classNames:K}=e,J=Fk(e,["prefixCls","openClassName","getTooltipContainer","color","overlayInnerStyle","children","afterOpenChange","afterVisibleChange","destroyTooltipOnHide","destroyOnHidden","arrow","title","overlay","builtinPlacements","arrowPointAtCenter","autoAdjustOverflow","motion","getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName","overlayClassName","styles","classNames"]),ie=!!O,[,k]=jo(),{getPopupContainer:X,getPrefixCls:Q,direction:le,className:U,style:F,classNames:ne,styles:ae}=es("tooltip"),oe=Ba("Tooltip"),fe=C.useRef(null),ye=()=>{var Vt;(Vt=fe.current)===null||Vt===void 0||Vt.forceAlign()};C.useImperativeHandle(t,()=>{var Vt,Wt;return{forceAlign:ye,forcePopupAlign:()=>{oe.deprecated(!1,"forcePopupAlign","forceAlign"),ye()},nativeElement:(Vt=fe.current)===null||Vt===void 0?void 0:Vt.nativeElement,popupElement:(Wt=fe.current)===null||Wt===void 0?void 0:Wt.popupElement}}),R1.NODE_ENV!=="production"&&([["visible","open"],["defaultVisible","defaultOpen"],["onVisibleChange","onOpenChange"],["afterVisibleChange","afterOpenChange"],["destroyTooltipOnHide","destroyOnHidden"],["arrowPointAtCenter","arrow={{ pointAtCenter: true }}"],["overlayStyle","styles={{ root: {} }}"],["overlayInnerStyle","styles={{ body: {} }}"],["overlayClassName",'classNames={{ root: "" }}']].forEach(([Vt,Wt])=>{oe.deprecated(!(Vt in e),Vt,Wt)}),R1.NODE_ENV!=="production"&&oe(!E||typeof E=="boolean","usage","`destroyTooltipOnHide` no need config `keepParent` anymore. Please use `boolean` value directly."),R1.NODE_ENV!=="production"&&oe(!O||typeof O=="boolean"||!("arrowPointAtCenter"in O),"deprecated","`arrowPointAtCenter` in `arrow` is deprecated. Please use `pointAtCenter` instead."));const[$e,ze]=mo(!1,{value:(a=e.open)!==null&&a!==void 0?a:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),Fe=!M&&!A&&M!==0,Ke=Vt=>{var Wt,Tt;ze(Fe?!1:Vt),Fe||((Wt=e.onOpenChange)===null||Wt===void 0||Wt.call(e,Vt),(Tt=e.onVisibleChange)===null||Tt===void 0||Tt.call(e,Vt))},Oe=C.useMemo(()=>{var Vt,Wt;let Tt=_;return typeof O=="object"&&(Tt=(Wt=(Vt=O.pointAtCenter)!==null&&Vt!==void 0?Vt:O.arrowPointAtCenter)!==null&&Wt!==void 0?Wt:_),D||Vk({arrowPointAtCenter:Tt,autoAdjustOverflow:z,arrowWidth:ie?k.sizePopupArrow:0,borderRadius:k.borderRadius,offset:k.marginXXS})},[_,O,D,k]),me=C.useMemo(()=>M===0?M:A||M||"",[A,M]),Re=C.createElement(eT,{space:!0},typeof me=="function"?me():me),Pe=Q("tooltip",l),be=Q(),Ce=e["data-popover-inject"];let _e=$e;!("open"in e)&&!("visible"in e)&&Fe&&(_e=!1);const je=C.isValidElement(p)&&!XD(p)?p:C.createElement("span",null,p),Ue=je.props,nt=!Ue.className||typeof Ue.className=="string"?Ye(Ue.className,c||`${Pe}-open`):Ue.className,[We,it,rt]=p$(Pe,!Ce),Ge=g$(Pe,m),Rt=Ge.arrowStyle,wt=Ye(te,{[`${Pe}-rtl`]:le==="rtl"},Ge.className,Y,it,rt,U,ne.root,K?.root),At=Ye(ne.body,K?.body),[$t,ht]=KD("Tooltip",J.zIndex),kt=C.createElement(Nk,Object.assign({},J,{zIndex:$t,showArrow:ie,placement:V,mouseEnterDelay:H,mouseLeaveDelay:P,prefixCls:Pe,classNames:{root:wt,body:At},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Rt),ae.root),F),q),G?.root),body:Object.assign(Object.assign(Object.assign(Object.assign({},ae.body),g),G?.body),Ge.overlayStyle)},getTooltipContainer:$||f||X,ref:fe,builtinPlacements:Oe,overlay:Re,visible:_e,onVisibleChange:Ke,afterVisibleChange:y??S,arrowContent:C.createElement("span",{className:`${Pe}-arrow-content`}),motion:{motionName:Rw(be,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:T??!!E}),_e?Ys(je,{className:nt}):je);return We(C.createElement(xw.Provider,{value:ht},kt))});R1.NODE_ENV!=="production"&&(Nd.displayName="Tooltip"),Nd._InternalPanelDoNotUseOrYouWillBeFired=Ik;const kk=e=>{const{componentCls:t,popoverColor:a,titleMinWidth:r,fontWeightStrong:l,innerPadding:c,boxShadowSecondary:f,colorTextHeading:m,borderRadiusLG:g,zIndexPopup:p,titleMarginBottom:y,colorBgElevated:S,popoverBg:E,titleBorderBottom:T,innerContentPadding:O,titlePadding:M}=e;return[{[t]:Object.assign(Object.assign({},ts(e)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:p,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"--antd-arrow-background-color":S,width:"max-content",maxWidth:"100vw","&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-inner`]:{backgroundColor:E,backgroundClip:"padding-box",borderRadius:g,boxShadow:f,padding:c},[`${t}-title`]:{minWidth:r,marginBottom:y,color:m,fontWeight:l,borderBottom:T,padding:M},[`${t}-inner-content`]:{color:a,padding:O}})},h$(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block",[`${t}-content`]:{display:"inline-block"}}}]},Gk=e=>{const{componentCls:t}=e;return{[t]:Zc.map(a=>{const r=e[`${a}6`];return{[`&${t}-${a}`]:{"--antd-arrow-background-color":r,[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{background:"transparent"}}}})}},v$=bi("Popover",e=>{const{colorBgElevated:t,colorText:a}=e,r=Ma(e,{popoverBg:t,popoverColor:a});return[kk(r),Gk(r),AN(r,"zoom-big")]},e=>{const{lineWidth:t,controlHeight:a,fontHeight:r,padding:l,wireframe:c,zIndexPopupBase:f,borderRadiusLG:m,marginXS:g,lineType:p,colorSplit:y,paddingSM:S}=e,E=a-r,T=E/2,O=E/2-t,M=l;return Object.assign(Object.assign(Object.assign({titleMinWidth:177,zIndexPopup:f+30},f$(e)),TT({contentRadius:m,limitVerticalRadius:!0})),{innerPadding:c?0:12,titleMarginBottom:c?0:g,titlePadding:c?`${T}px ${M}px ${O}px`:0,titleBorderBottom:c?`${t}px ${p} ${y}`:"none",innerContentPadding:c?`${S}px ${M}px`:0})},{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]});var qk=function(e,t){var a={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(a[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,r=Object.getOwnPropertySymbols(e);l<r.length;l++)t.indexOf(r[l])<0&&Object.prototype.propertyIsEnumerable.call(e,r[l])&&(a[r[l]]=e[r[l]]);return a};const y$=({title:e,content:t,prefixCls:a})=>!e&&!t?null:C.createElement(C.Fragment,null,e&&C.createElement("div",{className:`${a}-title`},e),t&&C.createElement("div",{className:`${a}-inner-content`},t)),Yk=e=>{const{hashId:t,prefixCls:a,className:r,style:l,placement:c="top",title:f,content:m,children:g}=e,p=T1(f),y=T1(m),S=Ye(t,a,`${a}-pure`,`${a}-placement-${c}`,r);return C.createElement("div",{className:S,style:l},C.createElement("div",{className:`${a}-arrow`}),C.createElement(wT,Object.assign({},e,{className:t,prefixCls:a}),g||C.createElement(y$,{prefixCls:a,title:p,content:y})))},Xk=e=>{const{prefixCls:t,className:a}=e,r=qk(e,["prefixCls","className"]),{getPrefixCls:l}=C.useContext(ia),c=l("popover",t),[f,m,g]=v$(c);return f(C.createElement(Yk,Object.assign({},r,{prefixCls:c,hashId:m,className:Ye(a,g)})))};var Wk={},Zk=function(e,t){var a={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(a[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,r=Object.getOwnPropertySymbols(e);l<r.length;l++)t.indexOf(r[l])<0&&Object.prototype.propertyIsEnumerable.call(e,r[l])&&(a[r[l]]=e[r[l]]);return a};const OT=C.forwardRef((e,t)=>{var a,r;const{prefixCls:l,title:c,content:f,overlayClassName:m,placement:g="top",trigger:p="hover",children:y,mouseEnterDelay:S=.1,mouseLeaveDelay:E=.1,onOpenChange:T,overlayStyle:O={},styles:M,classNames:A}=e,D=Zk(e,["prefixCls","title","content","overlayClassName","placement","trigger","children","mouseEnterDelay","mouseLeaveDelay","onOpenChange","overlayStyle","styles","classNames"]),{getPrefixCls:_,className:z,style:j,classNames:$,styles:V}=es("popover"),H=_("popover",l),[P,q,Y]=v$(H),te=_(),G=Ye(m,q,Y,z,$.root,A?.root),K=Ye($.body,A?.body),[J,ie]=mo(!1,{value:(a=e.open)!==null&&a!==void 0?a:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),k=(F,ne)=>{ie(F,!0),T?.(F,ne)},X=F=>{F.keyCode===Zt.ESC&&k(!1,F)},Q=F=>{k(F)},le=T1(c),U=T1(f);return P(C.createElement(Nd,Object.assign({placement:g,trigger:p,mouseEnterDelay:S,mouseLeaveDelay:E},D,{prefixCls:H,classNames:{root:G,body:K},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign({},V.root),j),O),M?.root),body:Object.assign(Object.assign({},V.body),M?.body)},ref:t,open:J,onOpenChange:Q,overlay:le||U?C.createElement(y$,{prefixCls:H,title:le,content:U}):null,transitionName:Rw(te,"zoom-big",D.transitionName),"data-popover-inject":!0}),Ys(y,{onKeyDown:F=>{var ne,ae;C.isValidElement(y)&&((ae=y==null?void 0:(ne=y.props).onKeyDown)===null||ae===void 0||ae.call(ne,F)),X(F)}})))});OT._InternalPanelDoNotUseOrYouWillBeFired=Xk,Wk.NODE_ENV!=="production"&&(OT.displayName="Popover");var Kk={};const b$=e=>{const{size:t,shape:a}=C.useContext(CT),r=C.useMemo(()=>({size:e.size||t,shape:e.shape||a}),[e.size,e.shape,t,a]);return C.createElement(CT.Provider,{value:r},e.children)},Qk=e=>{var t,a,r,l;const{getPrefixCls:c,direction:f}=C.useContext(ia),{prefixCls:m,className:g,rootClassName:p,style:y,maxCount:S,maxStyle:E,size:T,shape:O,maxPopoverPlacement:M,maxPopoverTrigger:A,children:D,max:_}=e;if(Kk.NODE_ENV!=="production"){const K=Ba("Avatar.Group");[["maxCount","max={{ count: number }}"],["maxStyle","max={{ style: CSSProperties }}"],["maxPopoverPlacement","max={{ popover: PopoverProps }}"],["maxPopoverTrigger","max={{ popover: PopoverProps }}"]].forEach(([J,ie])=>{K.deprecated(!(J in e),J,ie)})}const z=c("avatar",m),j=`${z}-group`,$=Yv(z),[V,H,P]=c$(z,$),q=Ye(j,{[`${j}-rtl`]:f==="rtl"},P,$,g,p,H),Y=ks(D).map((K,J)=>Ys(K,{key:`avatar-key-${J}`})),te=_?.count||S,G=Y.length;if(te&&te<G){const K=Y.slice(0,te),J=Y.slice(te,G),ie=_?.style||E,k=((t=_?.popover)===null||t===void 0?void 0:t.trigger)||A||"hover",X=((a=_?.popover)===null||a===void 0?void 0:a.placement)||M||"top",Q=Object.assign(Object.assign({content:J},_?.popover),{classNames:{root:Ye(`${j}-popover`,(l=(r=_?.popover)===null||r===void 0?void 0:r.classNames)===null||l===void 0?void 0:l.root)},placement:X,trigger:k});return K.push(C.createElement(OT,Object.assign({key:"avatar-popover-key",destroyOnHidden:!0},Q),C.createElement(ET,{style:ie},`+${G-te}`))),V(C.createElement(b$,{shape:O,size:T},C.createElement("div",{className:q,style:y},K)))}return V(C.createElement(b$,{shape:O,size:T},C.createElement("div",{className:q,style:y},Y)))},RT=ET;RT.Group=Qk;var Jk={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"},eG={},tG=function(t,a){return C.createElement(oa,jt({},t,{ref:a,icon:Jk}))},AT=C.forwardRef(tG);eG.NODE_ENV!=="production"&&(AT.displayName="LeftOutlined");function l0(e){return Ma(e,{inputAffixPadding:e.paddingXXS})}const s0=e=>{const{controlHeight:t,fontSize:a,lineHeight:r,lineWidth:l,controlHeightSM:c,controlHeightLG:f,fontSizeLG:m,lineHeightLG:g,paddingSM:p,controlPaddingHorizontalSM:y,controlPaddingHorizontal:S,colorFillAlter:E,colorPrimaryHover:T,colorPrimary:O,controlOutlineWidth:M,controlOutline:A,colorErrorOutline:D,colorWarningOutline:_,colorBgContainer:z,inputFontSize:j,inputFontSizeLG:$,inputFontSizeSM:V}=e,H=j||a,P=V||H,q=$||m,Y=Math.round((t-H*r)/2*10)/10-l,te=Math.round((c-P*r)/2*10)/10-l,G=Math.ceil((f-q*g)/2*10)/10-l;return{paddingBlock:Math.max(Y,0),paddingBlockSM:Math.max(te,0),paddingBlockLG:Math.max(G,0),paddingInline:p-l,paddingInlineSM:y-l,paddingInlineLG:S-l,addonBg:E,activeBorderColor:O,hoverBorderColor:T,activeShadow:`0 0 0 ${M}px ${A}`,errorActiveShadow:`0 0 0 ${M}px ${D}`,warningActiveShadow:`0 0 0 ${M}px ${_}`,hoverBg:z,activeBg:z,inputFontSize:H,inputFontSizeLG:q,inputFontSizeSM:P}},nG=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),A1=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"input[disabled], textarea[disabled]":{cursor:"not-allowed"},"&:hover:not([disabled])":Object.assign({},nG(Ma(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),MT=(e,t)=>({background:e.colorBgContainer,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:t.borderColor,"&:hover":{borderColor:t.hoverBorderColor,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:t.activeBorderColor,boxShadow:t.activeShadow,outline:0,backgroundColor:e.activeBg}}),S$=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},MT(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),aG=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},MT(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},A1(e))}),S$(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),S$(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),C$=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),rG=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${st(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},C$(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),C$(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},A1(e))}})}),iG=(e,t)=>{const{componentCls:a}=e;return{"&-borderless":Object.assign({background:"transparent",border:"none","&:focus, &:focus-within":{outline:"none"},[`&${a}-disabled, &[disabled]`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${a}-status-error`]:{"&, & input, & textarea":{color:e.colorError}},[`&${a}-status-warning`]:{"&, & input, & textarea":{color:e.colorWarning}}},t)}},x$=(e,t)=>{var a;return{background:t.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:(a=t?.inputColor)!==null&&a!==void 0?a:"unset"},"&:hover":{background:t.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:t.activeBorderColor,backgroundColor:e.activeBg}}},E$=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},x$(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),oG=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},x$(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},A1(e))}),E$(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),E$(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),w$=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),lG=e=>({"&-filled":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group-addon`]:{background:e.colorFillTertiary,"&:last-child":{position:"static"}}},w$(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),w$(e,{status:"warning",addonBg:e.colorWarningBg,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary,color:e.colorTextDisabled},"&-addon:first-child":{borderInlineStart:`${st(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${st(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${st(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${st(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${st(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${st(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),T$=(e,t)=>({background:e.colorBgContainer,borderWidth:`${st(e.lineWidth)} 0`,borderStyle:`${e.lineType} none`,borderColor:`transparent transparent ${t.borderColor} transparent`,borderRadius:0,"&:hover":{borderColor:`transparent transparent ${t.borderColor} transparent`,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:`transparent transparent ${t.borderColor} transparent`,outline:0,backgroundColor:e.activeBg}}),O$=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},T$(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:`transparent transparent ${t.borderColor} transparent`}}),sG=(e,t)=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},T$(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:{color:e.colorTextDisabled,boxShadow:"none",cursor:"not-allowed","&:hover":{borderColor:`transparent transparent ${e.colorBorder} transparent`}},"input[disabled], textarea[disabled]":{cursor:"not-allowed"}}),O$(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),O$(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),uG=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),R$=e=>{const{paddingBlockLG:t,lineHeightLG:a,borderRadiusLG:r,paddingInlineLG:l}=e;return{padding:`${st(t)} ${st(l)}`,fontSize:e.inputFontSizeLG,lineHeight:a,borderRadius:r}},_T=e=>({padding:`${st(e.paddingBlockSM)} ${st(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),DT=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${st(e.paddingBlock)} ${st(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},uG(e.colorTextPlaceholder)),{"&-lg":Object.assign({},R$(e)),"&-sm":Object.assign({},_T(e)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),cG=e=>{const{componentCls:t,antCls:a}=e;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:e.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${t}, &-lg > ${t}-group-addon`]:Object.assign({},R$(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},_T(e)),[`&-lg ${a}-select-single ${a}-select-selector`]:{height:e.controlHeightLG},[`&-sm ${a}-select-single ${a}-select-selector`]:{height:e.controlHeightSM},[`> ${t}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${t}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${st(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${a}-select`]:{margin:`${st(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${st(e.calc(e.paddingInline).mul(-1).equal())}`,[`&${a}-select-single:not(${a}-select-customize-input):not(${a}-pagination-size-changer)`]:{[`${a}-select-selector`]:{backgroundColor:"inherit",border:`${st(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}}},[`${a}-cascader-picker`]:{margin:`-9px ${st(e.calc(e.paddingInline).mul(-1).equal())}`,backgroundColor:"transparent",[`${a}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}}},[t]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${t}-search-with-button &`]:{zIndex:0}}},[`> ${t}:first-child, ${t}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${a}-select ${a}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}-affix-wrapper`]:{[`&:not(:first-child) ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}:last-child, ${t}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${a}-select ${a}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${t}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${t}-search &`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius}},[`&:not(:first-child), ${t}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${t}-group-compact`]:Object.assign(Object.assign({display:"block"},bB()),{[`${t}-group-addon, ${t}-group-wrap, > ${t}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover, &:focus":{zIndex:1}}},"& > *":{display:"inline-flex",float:"none",verticalAlign:"top",borderRadius:0},[`
|
|
508
|
+
& > ${t}-affix-wrapper,
|
|
509
|
+
& > ${t}-number-affix-wrapper,
|
|
510
|
+
& > ${a}-picker-range
|
|
511
|
+
`]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderInlineEndWidth:e.lineWidth},[t]:{float:"none"},[`& > ${a}-select > ${a}-select-selector,
|
|
512
|
+
& > ${a}-select-auto-complete ${t},
|
|
513
|
+
& > ${a}-cascader-picker ${t},
|
|
514
|
+
& > ${t}-group-wrapper ${t}`]:{borderInlineEndWidth:e.lineWidth,borderRadius:0,"&:hover, &:focus":{zIndex:1}},[`& > ${a}-select-focused`]:{zIndex:1},[`& > ${a}-select > ${a}-select-arrow`]:{zIndex:1},[`& > *:first-child,
|
|
515
|
+
& > ${a}-select:first-child > ${a}-select-selector,
|
|
516
|
+
& > ${a}-select-auto-complete:first-child ${t},
|
|
517
|
+
& > ${a}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child,
|
|
518
|
+
& > ${a}-select:last-child > ${a}-select-selector,
|
|
519
|
+
& > ${a}-cascader-picker:last-child ${t},
|
|
520
|
+
& > ${a}-cascader-picker-focused:last-child ${t}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${a}-select-auto-complete ${t}`]:{verticalAlign:"top"},[`${t}-group-wrapper + ${t}-group-wrapper`]:{marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),[`${t}-affix-wrapper`]:{borderRadius:0}},[`${t}-group-wrapper:not(:last-child)`]:{[`&${t}-search > ${t}-group`]:{[`& > ${t}-group-addon > ${t}-search-button`]:{borderRadius:0},[`& > ${t}`]:{borderStartStartRadius:e.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:e.borderRadius}}}})}},fG=e=>{const{componentCls:t,controlHeightSM:a,lineWidth:r,calc:l}=e,f=l(a).sub(l(r).mul(2)).sub(16).div(2).equal();return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},ts(e)),DT(e)),aG(e)),oG(e)),iG(e)),sG(e)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:a,paddingTop:f,paddingBottom:f}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{appearance:"none"}})}},dG=e=>{const{componentCls:t}=e;return{[`${t}-clear-icon`]:{margin:0,padding:0,lineHeight:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${e.motionDurationSlow}`,border:"none",outline:"none",backgroundColor:"transparent","&:hover":{color:e.colorIcon},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${st(e.inputAffixPadding)}`}}}},hG=e=>{const{componentCls:t,inputAffixPadding:a,colorTextDescription:r,motionDurationSlow:l,colorIcon:c,colorIconHover:f,iconCls:m}=e,g=`${t}-affix-wrapper`,p=`${t}-affix-wrapper-disabled`;return{[g]:Object.assign(Object.assign(Object.assign(Object.assign({},DT(e)),{display:"inline-flex",[`&:not(${t}-disabled):hover`]:{zIndex:1,[`${t}-search-with-button &`]:{zIndex:0}},"&-focused, &:focus":{zIndex:1},[`> input${t}`]:{padding:0},[`> input${t}, > textarea${t}`]:{fontSize:"inherit",border:"none",borderRadius:0,outline:"none",background:"transparent",color:"inherit","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[t]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:r,direction:"ltr"},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:a},"&-suffix":{marginInlineStart:a}}}),dG(e)),{[`${m}${t}-password-icon`]:{color:c,cursor:"pointer",transition:`all ${l}`,"&:hover":{color:f}}}),[`${t}-underlined`]:{borderRadius:0},[p]:{[`${m}${t}-password-icon`]:{color:c,cursor:"not-allowed","&:hover":{color:c}}}}},mG=e=>{const{componentCls:t,borderRadiusLG:a,borderRadiusSM:r}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},ts(e)),cG(e)),{"&-rtl":{direction:"rtl"},"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${t}-group-addon`]:{borderRadius:a,fontSize:e.inputFontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:r}}},rG(e)),lG(e)),{[`&:not(${t}-compact-first-item):not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}, ${t}-group-addon`]:{borderRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-first-item`]:{[`${t}, ${t}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-last-item`]:{[`${t}, ${t}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}-affix-wrapper`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-item`]:{[`${t}-affix-wrapper`]:{borderStartStartRadius:0,borderEndStartRadius:0}}})})}},pG=e=>{const{componentCls:t,antCls:a}=e,r=`${t}-search`;return{[r]:{[t]:{"&:hover, &:focus":{[`+ ${t}-group-addon ${r}-button:not(${a}-btn-color-primary):not(${a}-btn-variant-text)`]:{borderInlineStartColor:e.colorPrimaryHover}}},[`${t}-affix-wrapper`]:{height:e.controlHeight,borderRadius:0},[`${t}-lg`]:{lineHeight:e.calc(e.lineHeightLG).sub(2e-4).equal()},[`> ${t}-group`]:{[`> ${t}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${r}-button`]:{marginInlineEnd:-1,borderStartStartRadius:0,borderEndStartRadius:0,boxShadow:"none"},[`${r}-button:not(${a}-btn-color-primary)`]:{color:e.colorTextDescription,"&:hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${a}-btn-loading::before`]:{inset:0}}}},[`${r}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},"&-large":{[`${t}-affix-wrapper, ${r}-button`]:{height:e.controlHeightLG}},"&-small":{[`${t}-affix-wrapper, ${r}-button`]:{height:e.controlHeightSM}},"&-rtl":{direction:"rtl"},[`&${t}-compact-item`]:{[`&:not(${t}-compact-last-item)`]:{[`${t}-group-addon`]:{[`${t}-search-button`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderRadius:0}}},[`&:not(${t}-compact-first-item)`]:{[`${t},${t}-affix-wrapper`]:{borderRadius:0}},[`> ${t}-group-addon ${t}-search-button,
|
|
521
|
+
> ${t},
|
|
522
|
+
${t}-affix-wrapper`]:{"&:hover, &:focus, &:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}},gG=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},A$=bi(["Input","Shared"],e=>{const t=Ma(e,l0(e));return[fG(t),hG(t)]},s0,{resetFont:!1}),M$=bi(["Input","Component"],e=>{const t=Ma(e,l0(e));return[mG(t),pG(t),gG(t),Hw(t)]},s0,{resetFont:!1});function vG(e,t,a){var r=a||{},l=r.noTrailing,c=l===void 0?!1:l,f=r.noLeading,m=f===void 0?!1:f,g=r.debounceMode,p=g===void 0?void 0:g,y,S=!1,E=0;function T(){y&&clearTimeout(y)}function O(A){var D=A||{},_=D.upcomingOnly,z=_===void 0?!1:_;T(),S=!z}function M(){for(var A=arguments.length,D=new Array(A),_=0;_<A;_++)D[_]=arguments[_];var z=this,j=Date.now()-E;if(S)return;function $(){E=Date.now(),t.apply(z,D)}function V(){y=void 0}!m&&p&&!y&&$(),T(),p===void 0&&j>e?m?(E=Date.now(),c||(y=setTimeout(p?V:$,e))):$():c!==!0&&(y=setTimeout(p?V:$,p===void 0?e-j:e))}return M.cancel=O,M}function yG(e,t,a){var r={},l=r.atBegin,c=l===void 0?!1:l;return vG(e,t,{debounceMode:c!==!1})}const _$=C.createContext({});var bG={},SG=function(e,t){var a={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(a[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,r=Object.getOwnPropertySymbols(e);l<r.length;l++)t.indexOf(r[l])<0&&Object.prototype.propertyIsEnumerable.call(e,r[l])&&(a[r[l]]=e[r[l]]);return a};function D$(e){return typeof e=="number"?`${e} ${e} auto`:/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?`0 0 ${e}`:e}const CG=["xs","sm","md","lg","xl","xxl"],N$=C.forwardRef((e,t)=>{const{getPrefixCls:a,direction:r}=C.useContext(ia),{gutter:l,wrap:c}=C.useContext(_$),{prefixCls:f,span:m,order:g,offset:p,push:y,pull:S,className:E,children:T,flex:O,style:M}=e,A=SG(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),D=a("col",f),[_,z,j]=YU(D),$={};let V={};CG.forEach(q=>{let Y={};const te=e[q];typeof te=="number"?Y.span=te:typeof te=="object"&&(Y=te||{}),delete A[q],V=Object.assign(Object.assign({},V),{[`${D}-${q}-${Y.span}`]:Y.span!==void 0,[`${D}-${q}-order-${Y.order}`]:Y.order||Y.order===0,[`${D}-${q}-offset-${Y.offset}`]:Y.offset||Y.offset===0,[`${D}-${q}-push-${Y.push}`]:Y.push||Y.push===0,[`${D}-${q}-pull-${Y.pull}`]:Y.pull||Y.pull===0,[`${D}-rtl`]:r==="rtl"}),Y.flex&&(V[`${D}-${q}-flex`]=!0,$[`--${D}-${q}-flex`]=D$(Y.flex))});const H=Ye(D,{[`${D}-${m}`]:m!==void 0,[`${D}-order-${g}`]:g,[`${D}-offset-${p}`]:p,[`${D}-push-${y}`]:y,[`${D}-pull-${S}`]:S},E,V,z,j),P={};if(l&&l[0]>0){const q=l[0]/2;P.paddingLeft=q,P.paddingRight=q}return O&&(P.flex=D$(O),c===!1&&!P.minWidth&&(P.minWidth=0)),_(C.createElement("div",Object.assign({},A,{style:Object.assign(Object.assign(Object.assign({},P),M),$),className:H,ref:t}),T))});bG.NODE_ENV!=="production"&&(N$.displayName="Col");function xG(e,t){const a=[void 0,void 0],r=Array.isArray(e)?e:[e,void 0],l=t||{xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0};return r.forEach((c,f)=>{if(typeof c=="object"&&c!==null)for(let m=0;m<ef.length;m++){const g=ef[m];if(l[g]&&c[g]!==void 0){a[f]=c[g];break}}else a[f]=c}),a}var EG={},wG=function(e,t){var a={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(a[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,r=Object.getOwnPropertySymbols(e);l<r.length;l++)t.indexOf(r[l])<0&&Object.prototype.propertyIsEnumerable.call(e,r[l])&&(a[r[l]]=e[r[l]]);return a};function $$(e,t){const[a,r]=C.useState(typeof e=="string"?e:""),l=()=>{if(typeof e=="string"&&r(e),typeof e=="object")for(let c=0;c<ef.length;c++){const f=ef[c];if(!t||!t[f])continue;const m=e[f];if(m!==void 0){r(m);return}}};return C.useEffect(()=>{l()},[JSON.stringify(e),t]),a}const z$=C.forwardRef((e,t)=>{const{prefixCls:a,justify:r,align:l,className:c,style:f,children:m,gutter:g=0,wrap:p}=e,y=wG(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:S,direction:E}=C.useContext(ia),T=w1(!0,null),O=$$(l,T),M=$$(r,T),A=S("row",a),[D,_,z]=GU(A),j=xG(g,T),$=Ye(A,{[`${A}-no-wrap`]:p===!1,[`${A}-${M}`]:M,[`${A}-${O}`]:O,[`${A}-rtl`]:E==="rtl"},c,_,z),V={},H=j[0]!=null&&j[0]>0?j[0]/-2:void 0;H&&(V.marginLeft=H,V.marginRight=H);const[P,q]=j;V.rowGap=q;const Y=C.useMemo(()=>({gutter:[P,q],wrap:p}),[P,q,p]);return D(C.createElement(_$.Provider,{value:Y},C.createElement("div",Object.assign({},y,{className:$,style:Object.assign(Object.assign({},V),f),ref:t}),m)))});EG.NODE_ENV!=="production"&&(z$.displayName="Row");function TG(e){return!!(e.addonBefore||e.addonAfter)}function OG(e){return!!(e.prefix||e.suffix||e.allowClear)}function j$(e,t,a){var r=t.cloneNode(!0),l=Object.create(e,{target:{value:r},currentTarget:{value:r}});return r.value=a,typeof t.selectionStart=="number"&&typeof t.selectionEnd=="number"&&(r.selectionStart=t.selectionStart,r.selectionEnd=t.selectionEnd),r.setSelectionRange=function(){t.setSelectionRange.apply(t,arguments)},l}function M1(e,t,a,r){if(a){var l=t;if(t.type==="click"){l=j$(t,e,""),a(l);return}if(e.type!=="file"&&r!==void 0){l=j$(t,e,r),a(l);return}a(l)}}function L$(e,t){if(e){e.focus(t);var a=t||{},r=a.cursor;if(r){var l=e.value.length;switch(r){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(l,l);break;default:e.setSelectionRange(0,l)}}}}var V$=we.forwardRef(function(e,t){var a,r,l,c=e.inputElement,f=e.children,m=e.prefixCls,g=e.prefix,p=e.suffix,y=e.addonBefore,S=e.addonAfter,E=e.className,T=e.style,O=e.disabled,M=e.readOnly,A=e.focused,D=e.triggerFocus,_=e.allowClear,z=e.value,j=e.handleReset,$=e.hidden,V=e.classes,H=e.classNames,P=e.dataAttrs,q=e.styles,Y=e.components,te=e.onClear,G=f??c,K=Y?.affixWrapper||"span",J=Y?.groupWrapper||"span",ie=Y?.wrapper||"span",k=Y?.groupAddon||"span",X=C.useRef(null),Q=function(be){var Ce;(Ce=X.current)!==null&&Ce!==void 0&&Ce.contains(be.target)&&D?.()},le=OG(e),U=C.cloneElement(G,{value:z,className:Ye((a=G.props)===null||a===void 0?void 0:a.className,!le&&H?.variant)||null}),F=C.useRef(null);if(we.useImperativeHandle(t,function(){return{nativeElement:F.current||X.current}}),le){var ne=null;if(_){var ae=!O&&!M&&z,oe="".concat(m,"-clear-icon"),fe=Xt(_)==="object"&&_!==null&&_!==void 0&&_.clearIcon?_.clearIcon:"✖";ne=we.createElement("button",{type:"button",tabIndex:-1,onClick:function(be){j?.(be),te?.()},onMouseDown:function(be){return be.preventDefault()},className:Ye(oe,de(de({},"".concat(oe,"-hidden"),!ae),"".concat(oe,"-has-suffix"),!!p))},fe)}var ye="".concat(m,"-affix-wrapper"),$e=Ye(ye,de(de(de(de(de({},"".concat(m,"-disabled"),O),"".concat(ye,"-disabled"),O),"".concat(ye,"-focused"),A),"".concat(ye,"-readonly"),M),"".concat(ye,"-input-with-clear-btn"),p&&_&&z),V?.affixWrapper,H?.affixWrapper,H?.variant),ze=(p||_)&&we.createElement("span",{className:Ye("".concat(m,"-suffix"),H?.suffix),style:q?.suffix},ne,p);U=we.createElement(K,jt({className:$e,style:q?.affixWrapper,onClick:Q},P?.affixWrapper,{ref:X}),g&&we.createElement("span",{className:Ye("".concat(m,"-prefix"),H?.prefix),style:q?.prefix},g),U,ze)}if(TG(e)){var Fe="".concat(m,"-group"),Ke="".concat(Fe,"-addon"),Oe="".concat(Fe,"-wrapper"),me=Ye("".concat(m,"-wrapper"),Fe,V?.wrapper,H?.wrapper),Re=Ye(Oe,de({},"".concat(Oe,"-disabled"),O),V?.group,H?.groupWrapper);U=we.createElement(J,{className:Re,ref:F},we.createElement(ie,{className:me},y&&we.createElement(k,{className:Ke},y),U,S&&we.createElement(k,{className:Ke},S)))}return we.cloneElement(U,{className:Ye((r=U.props)===null||r===void 0?void 0:r.className,E)||null,style:ge(ge({},(l=U.props)===null||l===void 0?void 0:l.style),T),hidden:$})}),RG=["show"];function H$(e,t){return C.useMemo(function(){var a={};t&&(a.show=Xt(t)==="object"&&t.formatter?t.formatter:!!t),a=ge(ge({},a),e);var r=a,l=r.show,c=pa(r,RG);return ge(ge({},c),{},{show:!!l,showFormatter:typeof l=="function"?l:void 0,strategy:c.strategy||function(f){return f.length}})},[e,t])}var AG=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","onKeyUp","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],MG=C.forwardRef(function(e,t){var a=e.autoComplete,r=e.onChange,l=e.onFocus,c=e.onBlur,f=e.onPressEnter,m=e.onKeyDown,g=e.onKeyUp,p=e.prefixCls,y=p===void 0?"rc-input":p,S=e.disabled,E=e.htmlSize,T=e.className,O=e.maxLength,M=e.suffix,A=e.showCount,D=e.count,_=e.type,z=_===void 0?"text":_,j=e.classes,$=e.classNames,V=e.styles,H=e.onCompositionStart,P=e.onCompositionEnd,q=pa(e,AG),Y=C.useState(!1),te=Be(Y,2),G=te[0],K=te[1],J=C.useRef(!1),ie=C.useRef(!1),k=C.useRef(null),X=C.useRef(null),Q=function(Ge){k.current&&L$(k.current,Ge)},le=mo(e.defaultValue,{value:e.value}),U=Be(le,2),F=U[0],ne=U[1],ae=F==null?"":String(F),oe=C.useState(null),fe=Be(oe,2),ye=fe[0],$e=fe[1],ze=H$(D,A),Fe=ze.max||O,Ke=ze.strategy(ae),Oe=!!Fe&&Ke>Fe;C.useImperativeHandle(t,function(){var rt;return{focus:Q,blur:function(){var Rt;(Rt=k.current)===null||Rt===void 0||Rt.blur()},setSelectionRange:function(Rt,wt,At){var $t;($t=k.current)===null||$t===void 0||$t.setSelectionRange(Rt,wt,At)},select:function(){var Rt;(Rt=k.current)===null||Rt===void 0||Rt.select()},input:k.current,nativeElement:((rt=X.current)===null||rt===void 0?void 0:rt.nativeElement)||k.current}}),C.useEffect(function(){ie.current&&(ie.current=!1),K(function(rt){return rt&&S?!1:rt})},[S]);var me=function(Ge,Rt,wt){var At=Rt;if(!J.current&&ze.exceedFormatter&&ze.max&&ze.strategy(Rt)>ze.max){if(At=ze.exceedFormatter(Rt,{max:ze.max}),Rt!==At){var $t,ht;$e([(($t=k.current)===null||$t===void 0?void 0:$t.selectionStart)||0,((ht=k.current)===null||ht===void 0?void 0:ht.selectionEnd)||0])}}else if(wt.source==="compositionEnd")return;ne(At),k.current&&M1(k.current,Ge,r,At)};C.useEffect(function(){if(ye){var rt;(rt=k.current)===null||rt===void 0||rt.setSelectionRange.apply(rt,Nt(ye))}},[ye]);var Re=function(Ge){me(Ge,Ge.target.value,{source:"change"})},Pe=function(Ge){J.current=!1,me(Ge,Ge.currentTarget.value,{source:"compositionEnd"}),P?.(Ge)},be=function(Ge){f&&Ge.key==="Enter"&&!ie.current&&(ie.current=!0,f(Ge)),m?.(Ge)},Ce=function(Ge){Ge.key==="Enter"&&(ie.current=!1),g?.(Ge)},_e=function(Ge){K(!0),l?.(Ge)},je=function(Ge){ie.current&&(ie.current=!1),K(!1),c?.(Ge)},Ue=function(Ge){ne(""),Q(),k.current&&M1(k.current,Ge,r)},nt=Oe&&"".concat(y,"-out-of-range"),We=function(){var Ge=Md(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]);return we.createElement("input",jt({autoComplete:a},Ge,{onChange:Re,onFocus:_e,onBlur:je,onKeyDown:be,onKeyUp:Ce,className:Ye(y,de({},"".concat(y,"-disabled"),S),$?.input),style:V?.input,ref:k,size:E,type:z,onCompositionStart:function(wt){J.current=!0,H?.(wt)},onCompositionEnd:Pe}))},it=function(){var Ge=Number(Fe)>0;if(M||ze.show){var Rt=ze.showFormatter?ze.showFormatter({value:ae,count:Ke,maxLength:Fe}):"".concat(Ke).concat(Ge?" / ".concat(Fe):"");return we.createElement(we.Fragment,null,ze.show&&we.createElement("span",{className:Ye("".concat(y,"-show-count-suffix"),de({},"".concat(y,"-show-count-has-suffix"),!!M),$?.count),style:ge({},V?.count)},Rt),M)}return null};return we.createElement(V$,jt({},q,{prefixCls:y,className:Ye(T,nt),handleReset:Ue,value:ae,focused:G,triggerFocus:Q,suffix:it(),disabled:S,classes:j,classNames:$,styles:V,ref:X}),We())});const B$=e=>{let t;return typeof e=="object"&&e?.clearIcon?t=e:e&&(t={clearIcon:we.createElement(Cw,null)}),t};function P$(e,t){const a=C.useRef([]),r=()=>{a.current.push(setTimeout(()=>{var l,c,f,m;!((l=e.current)===null||l===void 0)&&l.input&&((c=e.current)===null||c===void 0?void 0:c.input.getAttribute("type"))==="password"&&(!((f=e.current)===null||f===void 0)&&f.input.hasAttribute("value"))&&((m=e.current)===null||m===void 0||m.input.removeAttribute("value"))}))};return C.useEffect(()=>(t&&r(),()=>a.current.forEach(l=>{l&&clearTimeout(l)})),[]),r}function _G(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}var _1={},DG=function(e,t){var a={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(a[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,r=Object.getOwnPropertySymbols(e);l<r.length;l++)t.indexOf(r[l])<0&&Object.prototype.propertyIsEnumerable.call(e,r[l])&&(a[r[l]]=e[r[l]]);return a};const u0=C.forwardRef((e,t)=>{const{prefixCls:a,bordered:r=!0,status:l,size:c,disabled:f,onBlur:m,onFocus:g,suffix:p,allowClear:y,addonAfter:S,addonBefore:E,className:T,style:O,styles:M,rootClassName:A,onChange:D,classNames:_,variant:z}=e,j=DG(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]);if(_1.NODE_ENV!=="production"){const{deprecated:Ue}=Ba("Input");Ue(!("bordered"in e),"bordered","variant")}const{getPrefixCls:$,direction:V,allowClear:H,autoComplete:P,className:q,style:Y,classNames:te,styles:G}=es("input"),K=$("input",a),J=C.useRef(null),ie=Yv(K),[k,X,Q]=A$(K,A),[le]=M$(K,ie),{compactSize:U,compactItemClassnames:F}=Wv(K,V),ne=qu(Ue=>{var nt;return(nt=c??U)!==null&&nt!==void 0?nt:Ue}),ae=we.useContext(Wc),oe=f??ae,{status:fe,hasFeedback:ye,feedbackIcon:$e}=C.useContext(Ws),ze=E1(fe,l),Fe=_G(e)||!!ye,Ke=C.useRef(Fe);if(_1.NODE_ENV!=="production"){const Ue=Ba("Input");C.useEffect(()=>{var nt;Fe&&!Ke.current&&_1.NODE_ENV!=="production"&&Ue(document.activeElement===((nt=J.current)===null||nt===void 0?void 0:nt.input),"usage","When Input is focused, dynamic add or remove prefix / suffix will make it lose focus caused by dom structure change. Read more: https://ant.design/components/input/#FAQ"),Ke.current=Fe},[Fe])}const Oe=P$(J,!0),me=Ue=>{Oe(),m?.(Ue)},Re=Ue=>{Oe(),g?.(Ue)},Pe=Ue=>{Oe(),D?.(Ue)},be=(ye||p)&&we.createElement(we.Fragment,null,p,ye&&$e),Ce=B$(y??H),[_e,je]=gT("input",z,r);return k(le(we.createElement(MG,Object.assign({ref:Wl(t,J),prefixCls:K,autoComplete:P},j,{disabled:oe,onBlur:me,onFocus:Re,style:Object.assign(Object.assign({},Y),O),styles:Object.assign(Object.assign({},G),M),suffix:be,allowClear:Ce,className:Ye(T,A,Q,ie,F,q),onChange:Pe,addonBefore:E&&we.createElement(eT,{form:!0,space:!0},E),addonAfter:S&&we.createElement(eT,{form:!0,space:!0},S),classNames:Object.assign(Object.assign(Object.assign({},_),te),{input:Ye({[`${K}-sm`]:ne==="small",[`${K}-lg`]:ne==="large",[`${K}-rtl`]:V==="rtl"},_?.input,te.input,X),variant:Ye({[`${K}-${_e}`]:je},x1(K,ze)),affixWrapper:Ye({[`${K}-affix-wrapper-sm`]:ne==="small",[`${K}-affix-wrapper-lg`]:ne==="large",[`${K}-affix-wrapper-rtl`]:V==="rtl"},X),wrapper:Ye({[`${K}-group-rtl`]:V==="rtl"},X),groupWrapper:Ye({[`${K}-group-wrapper-sm`]:ne==="small",[`${K}-group-wrapper-lg`]:ne==="large",[`${K}-group-wrapper-rtl`]:V==="rtl",[`${K}-group-wrapper-${_e}`]:je},x1(`${K}-group-wrapper`,ze,ye),X)})}))))});_1.NODE_ENV!=="production"&&(u0.displayName="Input");var NG={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"},$G={},zG=function(t,a){return C.createElement(oa,jt({},t,{ref:a,icon:NG}))},U$=C.forwardRef(zG);$G.NODE_ENV!=="production"&&(U$.displayName="EyeOutlined");var jG={};const LG=e=>{const{getPrefixCls:t,direction:a}=C.useContext(ia),{prefixCls:r,className:l}=e,c=t("input-group",r),f=t("input"),[m,g,p]=M$(f),y=Ye(c,p,{[`${c}-lg`]:e.size==="large",[`${c}-sm`]:e.size==="small",[`${c}-compact`]:e.compact,[`${c}-rtl`]:a==="rtl"},g,l),S=C.useContext(Ws),E=C.useMemo(()=>Object.assign(Object.assign({},S),{isFormItemInput:!1}),[S]);return jG.NODE_ENV!=="production"&&Ba("Input.Group").deprecated(!1,"Input.Group","Space.Compact"),m(C.createElement("span",{className:y,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},C.createElement(Ws.Provider,{value:E},e.children)))},VG=e=>{const{componentCls:t,paddingXS:a}=e;return{[t]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:a,[`${t}-input-wrapper`]:{position:"relative",[`${t}-mask-icon`]:{position:"absolute",zIndex:"1",top:"50%",right:"50%",transform:"translate(50%, -50%)",pointerEvents:"none"},[`${t}-mask-input`]:{color:"transparent",caretColor:"var(--ant-color-text)"},[`${t}-mask-input[type=number]::-webkit-inner-spin-button`]:{"-webkit-appearance":"none",margin:0},[`${t}-mask-input[type=number]`]:{"-moz-appearance":"textfield"}},"&-rtl":{direction:"rtl"},[`${t}-input`]:{textAlign:"center",paddingInline:e.paddingXXS},[`&${t}-sm ${t}-input`]:{paddingInline:e.calc(e.paddingXXS).div(2).equal()},[`&${t}-lg ${t}-input`]:{paddingInline:e.paddingXS}}}},HG=bi(["Input","OTP"],e=>{const t=Ma(e,l0(e));return[VG(t)]},s0);var BG=function(e,t){var a={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(a[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,r=Object.getOwnPropertySymbols(e);l<r.length;l++)t.indexOf(r[l])<0&&Object.prototype.propertyIsEnumerable.call(e,r[l])&&(a[r[l]]=e[r[l]]);return a};const PG=C.forwardRef((e,t)=>{const{className:a,value:r,onChange:l,onActiveChange:c,index:f,mask:m}=e,g=BG(e,["className","value","onChange","onActiveChange","index","mask"]),{getPrefixCls:p}=C.useContext(ia),y=p("otp"),S=typeof m=="string"?m:r,E=C.useRef(null);C.useImperativeHandle(t,()=>E.current);const T=D=>{l(f,D.target.value)},O=()=>{tr(()=>{var D;const _=(D=E.current)===null||D===void 0?void 0:D.input;document.activeElement===_&&_&&_.select()})},M=D=>{const{key:_,ctrlKey:z,metaKey:j}=D;_==="ArrowLeft"?c(f-1):_==="ArrowRight"?c(f+1):_==="z"&&(z||j)&&D.preventDefault(),O()},A=D=>{D.key==="Backspace"&&!r&&c(f-1),O()};return C.createElement("span",{className:`${y}-input-wrapper`,role:"presentation"},m&&r!==""&&r!==void 0&&C.createElement("span",{className:`${y}-mask-icon`,"aria-hidden":"true"},S),C.createElement(u0,Object.assign({"aria-label":`OTP Input ${f+1}`,type:m===!0?"password":"text"},g,{ref:E,value:r,onInput:T,onFocus:O,onKeyDown:M,onKeyUp:A,onMouseDown:O,onMouseUp:O,className:Ye(a,{[`${y}-mask-input`]:m})})))});var I$={},UG=function(e,t){var a={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(a[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,r=Object.getOwnPropertySymbols(e);l<r.length;l++)t.indexOf(r[l])<0&&Object.prototype.propertyIsEnumerable.call(e,r[l])&&(a[r[l]]=e[r[l]]);return a};function D1(e){return(e||"").split("")}const IG=e=>{const{index:t,prefixCls:a,separator:r}=e,l=typeof r=="function"?r(t):r;return l?C.createElement("span",{className:`${a}-separator`},l):null},FG=C.forwardRef((e,t)=>{const{prefixCls:a,length:r=6,size:l,defaultValue:c,value:f,onChange:m,formatter:g,separator:p,variant:y,disabled:S,status:E,autoFocus:T,mask:O,type:M,onInput:A,inputMode:D}=e,_=UG(e,["prefixCls","length","size","defaultValue","value","onChange","formatter","separator","variant","disabled","status","autoFocus","mask","type","onInput","inputMode"]);if(I$.NODE_ENV!=="production"){const oe=Ba("Input.OTP");I$.NODE_ENV!=="production"&&oe(!(typeof O=="string"&&O.length>1),"usage","`mask` prop should be a single character.")}const{getPrefixCls:z,direction:j}=C.useContext(ia),$=z("otp",a),V=$m(_,{aria:!0,data:!0,attr:!0}),[H,P,q]=HG($),Y=qu(oe=>l??oe),te=C.useContext(Ws),G=E1(te.status,E),K=C.useMemo(()=>Object.assign(Object.assign({},te),{status:G,hasFeedback:!1,feedbackIcon:null}),[te,G]),J=C.useRef(null),ie=C.useRef({});C.useImperativeHandle(t,()=>({focus:()=>{var oe;(oe=ie.current[0])===null||oe===void 0||oe.focus()},blur:()=>{var oe;for(let fe=0;fe<r;fe+=1)(oe=ie.current[fe])===null||oe===void 0||oe.blur()},nativeElement:J.current}));const k=oe=>g?g(oe):oe,[X,Q]=C.useState(()=>D1(k(c||"")));C.useEffect(()=>{f!==void 0&&Q(D1(f))},[f]);const le=cr(oe=>{Q(oe),A&&A(oe),m&&oe.length===r&&oe.every(fe=>fe)&&oe.some((fe,ye)=>X[ye]!==fe)&&m(oe.join(""))}),U=cr((oe,fe)=>{let ye=Nt(X);for(let ze=0;ze<oe;ze+=1)ye[ze]||(ye[ze]="");fe.length<=1?ye[oe]=fe:ye=ye.slice(0,oe).concat(D1(fe)),ye=ye.slice(0,r);for(let ze=ye.length-1;ze>=0&&!ye[ze];ze-=1)ye.pop();const $e=k(ye.map(ze=>ze||" ").join(""));return ye=D1($e).map((ze,Fe)=>ze===" "&&!ye[Fe]?ye[Fe]:ze),ye}),F=(oe,fe)=>{var ye;const $e=U(oe,fe),ze=Math.min(oe+fe.length,r-1);ze!==oe&&$e[oe]!==void 0&&((ye=ie.current[ze])===null||ye===void 0||ye.focus()),le($e)},ne=oe=>{var fe;(fe=ie.current[oe])===null||fe===void 0||fe.focus()},ae={variant:y,disabled:S,status:G,mask:O,type:M,inputMode:D};return H(C.createElement("div",Object.assign({},V,{ref:J,className:Ye($,{[`${$}-sm`]:Y==="small",[`${$}-lg`]:Y==="large",[`${$}-rtl`]:j==="rtl"},q,P),role:"group"}),C.createElement(Ws.Provider,{value:K},Array.from({length:r}).map((oe,fe)=>{const ye=`otp-${fe}`,$e=X[fe]||"";return C.createElement(C.Fragment,{key:ye},C.createElement(PG,Object.assign({ref:ze=>{ie.current[fe]=ze},index:fe,size:Y,htmlSize:1,className:`${$}-input`,onChange:F,value:$e,onActiveChange:ne,autoFocus:fe===0&&T},ae)),fe<r-1&&C.createElement(IG,{separator:p,index:fe,prefixCls:$}))}))))});var kG={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"},GG={},qG=function(t,a){return C.createElement(oa,jt({},t,{ref:a,icon:kG}))},F$=C.forwardRef(qG);GG.NODE_ENV!=="production"&&(F$.displayName="EyeInvisibleOutlined");var YG={},XG=function(e,t){var a={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(a[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,r=Object.getOwnPropertySymbols(e);l<r.length;l++)t.indexOf(r[l])<0&&Object.prototype.propertyIsEnumerable.call(e,r[l])&&(a[r[l]]=e[r[l]]);return a};const WG=e=>e?C.createElement(U$,null):C.createElement(F$,null),ZG={click:"onClick",hover:"onMouseOver"},k$=C.forwardRef((e,t)=>{const{disabled:a,action:r="click",visibilityToggle:l=!0,iconRender:c=WG}=e,f=C.useContext(Wc),m=a??f,g=typeof l=="object"&&l.visible!==void 0,[p,y]=C.useState(()=>g?l.visible:!1),S=C.useRef(null);C.useEffect(()=>{g&&y(l.visible)},[g,l]);const E=P$(S),T=()=>{var Y;if(m)return;p&&E();const te=!p;y(te),typeof l=="object"&&((Y=l.onVisibleChange)===null||Y===void 0||Y.call(l,te))},O=Y=>{const te=ZG[r]||"",G=c(p),K={[te]:T,className:`${Y}-icon`,key:"passwordIcon",onMouseDown:J=>{J.preventDefault()},onMouseUp:J=>{J.preventDefault()}};return C.cloneElement(C.isValidElement(G)?G:C.createElement("span",null,G),K)},{className:M,prefixCls:A,inputPrefixCls:D,size:_}=e,z=XG(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:j}=C.useContext(ia),$=j("input",D),V=j("input-password",A),H=l&&O(V),P=Ye(V,M,{[`${V}-${_}`]:!!_}),q=Object.assign(Object.assign({},Md(z,["suffix","iconRender","visibilityToggle"])),{type:p?"text":"password",className:P,prefixCls:$,suffix:H});return _&&(q.size=_),C.createElement(u0,Object.assign({ref:Wl(t,S)},q))});YG.NODE_ENV!=="production"&&(k$.displayName="Input.Password");var KG={},QG=function(e,t){var a={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(a[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,r=Object.getOwnPropertySymbols(e);l<r.length;l++)t.indexOf(r[l])<0&&Object.prototype.propertyIsEnumerable.call(e,r[l])&&(a[r[l]]=e[r[l]]);return a};const G$=C.forwardRef((e,t)=>{const{prefixCls:a,inputPrefixCls:r,className:l,size:c,suffix:f,enterButton:m=!1,addonAfter:g,loading:p,disabled:y,onSearch:S,onChange:E,onCompositionStart:T,onCompositionEnd:O,variant:M,onPressEnter:A}=e,D=QG(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd","variant","onPressEnter"]),{getPrefixCls:_,direction:z}=C.useContext(ia),j=C.useRef(!1),$=_("input-search",a),V=_("input",r),{compactSize:H}=Wv($,z),P=qu(ae=>{var oe;return(oe=c??H)!==null&&oe!==void 0?oe:ae}),q=C.useRef(null),Y=ae=>{ae?.target&&ae.type==="click"&&S&&S(ae.target.value,ae,{source:"clear"}),E?.(ae)},te=ae=>{var oe;document.activeElement===((oe=q.current)===null||oe===void 0?void 0:oe.input)&&ae.preventDefault()},G=ae=>{var oe,fe;S&&S((fe=(oe=q.current)===null||oe===void 0?void 0:oe.input)===null||fe===void 0?void 0:fe.value,ae,{source:"input"})},K=ae=>{j.current||p||(A?.(ae),G(ae))},J=typeof m=="boolean"?C.createElement(ST,null):null,ie=`${$}-button`;let k;const X=m||{},Q=X.type&&X.type.__ANT_BUTTON===!0;Q||X.type==="button"?k=Ys(X,Object.assign({onMouseDown:te,onClick:ae=>{var oe,fe;(fe=(oe=X?.props)===null||oe===void 0?void 0:oe.onClick)===null||fe===void 0||fe.call(oe,ae),G(ae)},key:"enterButton"},Q?{className:ie,size:P}:{})):k=C.createElement(as,{className:ie,color:m?"primary":"default",size:P,disabled:y,key:"enterButton",onMouseDown:te,onClick:G,loading:p,icon:J,variant:M==="borderless"||M==="filled"||M==="underlined"?"text":m?"solid":void 0},m),g&&(k=[k,Ys(g,{key:"addonAfter"})]);const le=Ye($,{[`${$}-rtl`]:z==="rtl",[`${$}-${P}`]:!!P,[`${$}-with-button`]:!!m},l),U=ae=>{j.current=!0,T?.(ae)},F=ae=>{j.current=!1,O?.(ae)},ne=Object.assign(Object.assign({},D),{className:le,prefixCls:V,type:"search",size:P,variant:M,onPressEnter:K,onCompositionStart:U,onCompositionEnd:F,addonAfter:k,suffix:f,onChange:Y,disabled:y});return C.createElement(u0,Object.assign({ref:Wl(q,t)},ne))});KG.NODE_ENV!=="production"&&(G$.displayName="Search");var JG=`
|
|
523
|
+
min-height:0 !important;
|
|
524
|
+
max-height:none !important;
|
|
525
|
+
height:0 !important;
|
|
526
|
+
visibility:hidden !important;
|
|
527
|
+
overflow:hidden !important;
|
|
528
|
+
position:absolute !important;
|
|
529
|
+
z-index:-1000 !important;
|
|
530
|
+
top:0 !important;
|
|
531
|
+
right:0 !important;
|
|
532
|
+
pointer-events: none !important;
|
|
533
|
+
`,eq=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"],NT={},Ho;function tq(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,a=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&NT[a])return NT[a];var r=window.getComputedStyle(e),l=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),c=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),f=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),m=eq.map(function(p){return"".concat(p,":").concat(r.getPropertyValue(p))}).join(";"),g={sizingStyle:m,paddingSize:c,borderSize:f,boxSizing:l};return t&&a&&(NT[a]=g),g}function nq(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;Ho||(Ho=document.createElement("textarea"),Ho.setAttribute("tab-index","-1"),Ho.setAttribute("aria-hidden","true"),Ho.setAttribute("name","hiddenTextarea"),document.body.appendChild(Ho)),e.getAttribute("wrap")?Ho.setAttribute("wrap",e.getAttribute("wrap")):Ho.removeAttribute("wrap");var l=tq(e,t),c=l.paddingSize,f=l.borderSize,m=l.boxSizing,g=l.sizingStyle;Ho.setAttribute("style","".concat(g,";").concat(JG)),Ho.value=e.value||e.placeholder||"";var p=void 0,y=void 0,S,E=Ho.scrollHeight;if(m==="border-box"?E+=f:m==="content-box"&&(E-=c),a!==null||r!==null){Ho.value=" ";var T=Ho.scrollHeight-c;a!==null&&(p=T*a,m==="border-box"&&(p=p+c+f),E=Math.max(p,E)),r!==null&&(y=T*r,m==="border-box"&&(y=y+c+f),S=E>y?"":"hidden",E=Math.min(y,E))}var O={height:E,overflowY:S,resize:"none"};return p&&(O.minHeight=p),y&&(O.maxHeight=y),O}var aq={},rq=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],$T=0,zT=1,jT=2,iq=C.forwardRef(function(e,t){var a=e,r=a.prefixCls,l=a.defaultValue,c=a.value,f=a.autoSize,m=a.onResize,g=a.className,p=a.style,y=a.disabled,S=a.onChange,E=a.onInternalAutoSize,T=pa(a,rq),O=mo(l,{value:c,postState:function(fe){return fe??""}}),M=Be(O,2),A=M[0],D=M[1],_=function(fe){D(fe.target.value),S?.(fe)},z=C.useRef();C.useImperativeHandle(t,function(){return{textArea:z.current}});var j=C.useMemo(function(){return f&&Xt(f)==="object"?[f.minRows,f.maxRows]:[]},[f]),$=Be(j,2),V=$[0],H=$[1],P=!!f,q=function(){try{if(document.activeElement===z.current){var fe=z.current,ye=fe.selectionStart,$e=fe.selectionEnd,ze=fe.scrollTop;z.current.setSelectionRange(ye,$e),z.current.scrollTop=ze}}catch{}},Y=C.useState(jT),te=Be(Y,2),G=te[0],K=te[1],J=C.useState(),ie=Be(J,2),k=ie[0],X=ie[1],Q=function(){K($T),aq.NODE_ENV==="test"&&E?.()};Zn(function(){P&&Q()},[c,V,H,P]),Zn(function(){if(G===$T)K(zT);else if(G===zT){var oe=nq(z.current,!1,V,H);K(jT),X(oe)}else q()},[G]);var le=C.useRef(),U=function(){tr.cancel(le.current)},F=function(fe){G===jT&&(m?.(fe),f&&(U(),le.current=tr(function(){Q()})))};C.useEffect(function(){return U},[]);var ne=P?k:null,ae=ge(ge({},p),ne);return(G===$T||G===zT)&&(ae.overflowY="hidden",ae.overflowX="hidden"),C.createElement(Zl,{onResize:F,disabled:!(f||m)},C.createElement("textarea",jt({},T,{ref:z,style:ae,className:Ye(r,g,de({},"".concat(r,"-disabled"),y)),disabled:y,value:A,onChange:_})))}),oq=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","showCount","count","className","style","disabled","hidden","classNames","styles","onResize","onClear","onPressEnter","readOnly","autoSize","onKeyDown"],lq=we.forwardRef(function(e,t){var a,r=e.defaultValue,l=e.value,c=e.onFocus,f=e.onBlur,m=e.onChange,g=e.allowClear,p=e.maxLength,y=e.onCompositionStart,S=e.onCompositionEnd,E=e.suffix,T=e.prefixCls,O=T===void 0?"rc-textarea":T,M=e.showCount,A=e.count,D=e.className,_=e.style,z=e.disabled,j=e.hidden,$=e.classNames,V=e.styles,H=e.onResize,P=e.onClear,q=e.onPressEnter,Y=e.readOnly,te=e.autoSize,G=e.onKeyDown,K=pa(e,oq),J=mo(r,{value:l,defaultValue:r}),ie=Be(J,2),k=ie[0],X=ie[1],Q=k==null?"":String(k),le=we.useState(!1),U=Be(le,2),F=U[0],ne=U[1],ae=we.useRef(!1),oe=we.useState(null),fe=Be(oe,2),ye=fe[0],$e=fe[1],ze=C.useRef(null),Fe=C.useRef(null),Ke=function(){var ut;return(ut=Fe.current)===null||ut===void 0?void 0:ut.textArea},Oe=function(){Ke().focus()};C.useImperativeHandle(t,function(){var Tt;return{resizableTextArea:Fe.current,focus:Oe,blur:function(){Ke().blur()},nativeElement:((Tt=ze.current)===null||Tt===void 0?void 0:Tt.nativeElement)||Ke()}}),C.useEffect(function(){ne(function(Tt){return!z&&Tt})},[z]);var me=we.useState(null),Re=Be(me,2),Pe=Re[0],be=Re[1];we.useEffect(function(){if(Pe){var Tt;(Tt=Ke()).setSelectionRange.apply(Tt,Nt(Pe))}},[Pe]);var Ce=H$(A,M),_e=(a=Ce.max)!==null&&a!==void 0?a:p,je=Number(_e)>0,Ue=Ce.strategy(Q),nt=!!_e&&Ue>_e,We=function(ut,St){var et=St;!ae.current&&Ce.exceedFormatter&&Ce.max&&Ce.strategy(St)>Ce.max&&(et=Ce.exceedFormatter(St,{max:Ce.max}),St!==et&&be([Ke().selectionStart||0,Ke().selectionEnd||0])),X(et),M1(ut.currentTarget,ut,m,et)},it=function(ut){ae.current=!0,y?.(ut)},rt=function(ut){ae.current=!1,We(ut,ut.currentTarget.value),S?.(ut)},Ge=function(ut){We(ut,ut.target.value)},Rt=function(ut){ut.key==="Enter"&&q&&q(ut),G?.(ut)},wt=function(ut){ne(!0),c?.(ut)},At=function(ut){ne(!1),f?.(ut)},$t=function(ut){X(""),Oe(),M1(Ke(),ut,m)},ht=E,kt;Ce.show&&(Ce.showFormatter?kt=Ce.showFormatter({value:Q,count:Ue,maxLength:_e}):kt="".concat(Ue).concat(je?" / ".concat(_e):""),ht=we.createElement(we.Fragment,null,ht,we.createElement("span",{className:Ye("".concat(O,"-data-count"),$?.count),style:V?.count},kt)));var Vt=function(ut){var St;H?.(ut),(St=Ke())!==null&&St!==void 0&&St.style.height&&$e(!0)},Wt=!te&&!M&&!g;return we.createElement(V$,{ref:ze,value:Q,allowClear:g,handleReset:$t,suffix:ht,prefixCls:O,classNames:ge(ge({},$),{},{affixWrapper:Ye($?.affixWrapper,de(de({},"".concat(O,"-show-count"),M),"".concat(O,"-textarea-allow-clear"),g))}),disabled:z,focused:F,className:Ye(D,nt&&"".concat(O,"-out-of-range")),style:ge(ge({},_),ye&&!Wt?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof kt=="string"?kt:void 0}},hidden:j,readOnly:Y,onClear:P},we.createElement(iq,jt({},K,{autoSize:te,maxLength:p,onKeyDown:Rt,onChange:Ge,onFocus:wt,onBlur:At,onCompositionStart:it,onCompositionEnd:rt,className:Ye($?.textarea),style:ge(ge({},V?.textarea),{},{resize:_?.resize}),disabled:z,prefixCls:O,onResize:Vt,ref:Fe,readOnly:Y})))});const sq=e=>{const{componentCls:t,paddingLG:a}=e,r=`${t}-textarea`;return{[`textarea${t}`]:{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}`,resize:"vertical",[`&${t}-mouse-active`]:{transition:`all ${e.motionDurationSlow}, height 0s, width 0s`}},[`${t}-textarea-affix-wrapper-resize-dirty`]:{width:"auto"},[r]:{position:"relative","&-show-count":{[`${t}-data-count`]:{position:"absolute",bottom:e.calc(e.fontSize).mul(e.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:e.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},[`
|
|
534
|
+
&-allow-clear > ${t},
|
|
535
|
+
&-affix-wrapper${r}-has-feedback ${t}
|
|
536
|
+
`]:{paddingInlineEnd:a},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,[`> textarea${t}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent",minHeight:e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),"&:focus":{boxShadow:"none !important"}},[`${t}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${t}-clear-icon`]:{position:"absolute",insetInlineEnd:e.paddingInline,insetBlockStart:e.paddingXS},[`${r}-suffix`]:{position:"absolute",top:0,insetInlineEnd:e.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}},[`&-affix-wrapper${t}-affix-wrapper-rtl`]:{[`${t}-suffix`]:{[`${t}-data-count`]:{direction:"ltr",insetInlineStart:0}}},[`&-affix-wrapper${t}-affix-wrapper-sm`]:{[`${t}-suffix`]:{[`${t}-clear-icon`]:{insetInlineEnd:e.paddingInlineSM}}}}}},uq=bi(["Input","TextArea"],e=>{const t=Ma(e,l0(e));return[sq(t)]},s0,{resetFont:!1});var cq={},fq=function(e,t){var a={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(a[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,r=Object.getOwnPropertySymbols(e);l<r.length;l++)t.indexOf(r[l])<0&&Object.prototype.propertyIsEnumerable.call(e,r[l])&&(a[r[l]]=e[r[l]]);return a};const q$=C.forwardRef((e,t)=>{var a;const{prefixCls:r,bordered:l=!0,size:c,disabled:f,status:m,allowClear:g,classNames:p,rootClassName:y,className:S,style:E,styles:T,variant:O,showCount:M,onMouseDown:A,onResize:D}=e,_=fq(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant","showCount","onMouseDown","onResize"]);if(cq.NODE_ENV!=="production"){const{deprecated:Ce}=Ba("TextArea");Ce(!("bordered"in e),"bordered","variant")}const{getPrefixCls:z,direction:j,allowClear:$,autoComplete:V,className:H,style:P,classNames:q,styles:Y}=es("textArea"),te=C.useContext(Wc),G=f??te,{status:K,hasFeedback:J,feedbackIcon:ie}=C.useContext(Ws),k=E1(K,m),X=C.useRef(null);C.useImperativeHandle(t,()=>{var Ce;return{resizableTextArea:(Ce=X.current)===null||Ce===void 0?void 0:Ce.resizableTextArea,focus:_e=>{var je,Ue;L$((Ue=(je=X.current)===null||je===void 0?void 0:je.resizableTextArea)===null||Ue===void 0?void 0:Ue.textArea,_e)},blur:()=>{var _e;return(_e=X.current)===null||_e===void 0?void 0:_e.blur()}}});const Q=z("input",r),le=Yv(Q),[U,F,ne]=A$(Q,y),[ae]=uq(Q,le),{compactSize:oe,compactItemClassnames:fe}=Wv(Q,j),ye=qu(Ce=>{var _e;return(_e=c??oe)!==null&&_e!==void 0?_e:Ce}),[$e,ze]=gT("textArea",O,l),Fe=B$(g??$),[Ke,Oe]=C.useState(!1),[me,Re]=C.useState(!1),Pe=Ce=>{Oe(!0),A?.(Ce);const _e=()=>{Oe(!1),document.removeEventListener("mouseup",_e)};document.addEventListener("mouseup",_e)},be=Ce=>{var _e,je;if(D?.(Ce),Ke&&typeof getComputedStyle=="function"){const Ue=(je=(_e=X.current)===null||_e===void 0?void 0:_e.nativeElement)===null||je===void 0?void 0:je.querySelector("textarea");Ue&&getComputedStyle(Ue).resize==="both"&&Re(!0)}};return U(ae(C.createElement(lq,Object.assign({autoComplete:V},_,{style:Object.assign(Object.assign({},P),E),styles:Object.assign(Object.assign({},Y),T),disabled:G,allowClear:Fe,className:Ye(ne,le,S,y,fe,H,me&&`${Q}-textarea-affix-wrapper-resize-dirty`),classNames:Object.assign(Object.assign(Object.assign({},p),q),{textarea:Ye({[`${Q}-sm`]:ye==="small",[`${Q}-lg`]:ye==="large"},F,p?.textarea,q.textarea,Ke&&`${Q}-mouse-active`),variant:Ye({[`${Q}-${$e}`]:ze},x1(Q,k)),affixWrapper:Ye(`${Q}-textarea-affix-wrapper`,{[`${Q}-affix-wrapper-rtl`]:j==="rtl",[`${Q}-affix-wrapper-sm`]:ye==="small",[`${Q}-affix-wrapper-lg`]:ye==="large",[`${Q}-textarea-show-count`]:M||((a=e.count)===null||a===void 0?void 0:a.show)},F)}),prefixCls:Q,suffix:J&&C.createElement("span",{className:`${Q}-textarea-suffix`},ie),showCount:M,ref:X,onResize:be,onMouseDown:Pe}))))}),Xu=u0;Xu.Group=LG,Xu.Search=G$,Xu.TextArea=q$,Xu.Password=k$,Xu.OTP=FG;var dq={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z"}}]},name:"double-left",theme:"outlined"},hq={},mq=function(t,a){return C.createElement(oa,jt({},t,{ref:a,icon:dq}))},LT=C.forwardRef(mq);hq.NODE_ENV!=="production"&&(LT.displayName="DoubleLeftOutlined");var pq={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"}}]},name:"double-right",theme:"outlined"},gq={},vq=function(t,a){return C.createElement(oa,jt({},t,{ref:a,icon:pq}))},VT=C.forwardRef(vq);gq.NODE_ENV!=="production"&&(VT.displayName="DoubleRightOutlined");var yq={items_per_page:"条/页",jump_to:"跳至",jump_to_confirm:"确定",page:"页",prev_page:"上一页",next_page:"下一页",prev_5:"向前 5 页",next_5:"向后 5 页",prev_3:"向前 3 页",next_3:"向后 3 页",page_size:"页码"},bq={},Sq=[10,20,50,100],Y$=function(t){var a=t.pageSizeOptions,r=a===void 0?Sq:a,l=t.locale,c=t.changeSize,f=t.pageSize,m=t.goButton,g=t.quickGo,p=t.rootPrefixCls,y=t.disabled,S=t.buildOptionText,E=t.showSizeChanger,T=t.sizeChangerRender,O=we.useState(""),M=Be(O,2),A=M[0],D=M[1],_=function(){return!A||Number.isNaN(A)?void 0:Number(A)},z=typeof S=="function"?S:function(G){return"".concat(G," ").concat(l.items_per_page)},j=function(K){D(K.target.value)},$=function(K){m||A===""||(D(""),!(K.relatedTarget&&(K.relatedTarget.className.indexOf("".concat(p,"-item-link"))>=0||K.relatedTarget.className.indexOf("".concat(p,"-item"))>=0))&&g?.(_()))},V=function(K){A!==""&&(K.keyCode===Zt.ENTER||K.type==="click")&&(D(""),g?.(_()))},H=function(){return r.some(function(K){return K.toString()===f.toString()})?r:r.concat([f]).sort(function(K,J){var ie=Number.isNaN(Number(K))?0:Number(K),k=Number.isNaN(Number(J))?0:Number(J);return ie-k})},P="".concat(p,"-options");if(!E&&!g)return null;var q=null,Y=null,te=null;return E&&T&&(q=T({disabled:y,size:f,onSizeChange:function(K){c?.(Number(K))},"aria-label":l.page_size,className:"".concat(P,"-size-changer"),options:H().map(function(G){return{label:z(G),value:G}})})),g&&(m&&(te=typeof m=="boolean"?we.createElement("button",{type:"button",onClick:V,onKeyUp:V,disabled:y,className:"".concat(P,"-quick-jumper-button")},l.jump_to_confirm):we.createElement("span",{onClick:V,onKeyUp:V},m)),Y=we.createElement("div",{className:"".concat(P,"-quick-jumper")},l.jump_to,we.createElement("input",{disabled:y,type:"text",value:A,onChange:j,onKeyUp:V,onBlur:$,"aria-label":l.page}),l.page,te)),we.createElement("li",{className:P},q,Y)};bq.NODE_ENV!=="production"&&(Y$.displayName="Options");var Cq={},Fm=function(t){var a=t.rootPrefixCls,r=t.page,l=t.active,c=t.className,f=t.showTitle,m=t.onClick,g=t.onKeyPress,p=t.itemRender,y="".concat(a,"-item"),S=Ye(y,"".concat(y,"-").concat(r),de(de({},"".concat(y,"-active"),l),"".concat(y,"-disabled"),!r),c),E=function(){m(r)},T=function(A){g(A,m,r)},O=p(r,"page",we.createElement("a",{rel:"nofollow"},r));return O?we.createElement("li",{title:f?String(r):null,className:S,onClick:E,onKeyDown:T,tabIndex:0},O):null};Cq.NODE_ENV!=="production"&&(Fm.displayName="Pager");var X$={},xq=function(t,a,r){return r};function HT(){}function W$(e){var t=Number(e);return typeof t=="number"&&!Number.isNaN(t)&&isFinite(t)&&Math.floor(t)===t}function $d(e,t,a){var r=typeof e>"u"?t:e;return Math.floor((a-1)/r)+1}var Z$=function(t){var a=t.prefixCls,r=a===void 0?"rc-pagination":a,l=t.selectPrefixCls,c=l===void 0?"rc-select":l,f=t.className,m=t.current,g=t.defaultCurrent,p=g===void 0?1:g,y=t.total,S=y===void 0?0:y,E=t.pageSize,T=t.defaultPageSize,O=T===void 0?10:T,M=t.onChange,A=M===void 0?HT:M,D=t.hideOnSinglePage,_=t.align,z=t.showPrevNextJumpers,j=z===void 0?!0:z,$=t.showQuickJumper,V=t.showLessItems,H=t.showTitle,P=H===void 0?!0:H,q=t.onShowSizeChange,Y=q===void 0?HT:q,te=t.locale,G=te===void 0?yq:te,K=t.style,J=t.totalBoundaryShowSizeChanger,ie=J===void 0?50:J,k=t.disabled,X=t.simple,Q=t.showTotal,le=t.showSizeChanger,U=le===void 0?S>ie:le,F=t.sizeChangerRender,ne=t.pageSizeOptions,ae=t.itemRender,oe=ae===void 0?xq:ae,fe=t.jumpPrevIcon,ye=t.jumpNextIcon,$e=t.prevIcon,ze=t.nextIcon,Fe=we.useRef(null),Ke=mo(10,{value:E,defaultValue:O}),Oe=Be(Ke,2),me=Oe[0],Re=Oe[1],Pe=mo(1,{value:m,defaultValue:p,postState:function(ln){return Math.max(1,Math.min(ln,$d(void 0,me,S)))}}),be=Be(Pe,2),Ce=be[0],_e=be[1],je=we.useState(Ce),Ue=Be(je,2),nt=Ue[0],We=Ue[1];C.useEffect(function(){We(Ce)},[Ce]);var it=A!==HT,rt="current"in t;X$.NODE_ENV!=="production"&&Dn(rt?it:!0,"You provided a `current` prop to a Pagination component without an `onChange` handler. This will render a read-only component.");var Ge=Math.max(1,Ce-(V?3:5)),Rt=Math.min($d(void 0,me,S),Ce+(V?3:5));function wt(zt,ln){var an=zt||we.createElement("button",{type:"button","aria-label":ln,className:"".concat(r,"-item-link")});return typeof zt=="function"&&(an=we.createElement(zt,ge({},t))),an}function At(zt){var ln=zt.target.value,an=$d(void 0,me,S),za;return ln===""?za=ln:Number.isNaN(Number(ln))?za=nt:ln>=an?za=an:za=Number(ln),za}function $t(zt){return W$(zt)&&zt!==Ce&&W$(S)&&S>0}var ht=S>me?$:!1;function kt(zt){(zt.keyCode===Zt.UP||zt.keyCode===Zt.DOWN)&&zt.preventDefault()}function Vt(zt){var ln=At(zt);switch(ln!==nt&&We(ln),zt.keyCode){case Zt.ENTER:ut(ln);break;case Zt.UP:ut(ln-1);break;case Zt.DOWN:ut(ln+1);break}}function Wt(zt){ut(At(zt))}function Tt(zt){var ln=$d(zt,me,S),an=Ce>ln&&ln!==0?ln:Ce;Re(zt),We(an),Y?.(Ce,zt),_e(an),A?.(an,zt)}function ut(zt){if($t(zt)&&!k){var ln=$d(void 0,me,S),an=zt;return zt>ln?an=ln:zt<1&&(an=1),an!==nt&&We(an),_e(an),A?.(an,me),an}return Ce}var St=Ce>1,et=Ce<$d(void 0,me,S);function lt(){St&&ut(Ce-1)}function I(){et&&ut(Ce+1)}function he(){ut(Ge)}function Qe(){ut(Rt)}function Je(zt,ln){if(zt.key==="Enter"||zt.charCode===Zt.ENTER||zt.keyCode===Zt.ENTER){for(var an=arguments.length,za=new Array(an>2?an-2:0),ja=2;ja<an;ja++)za[ja-2]=arguments[ja];ln.apply(void 0,za)}}function ft(zt){Je(zt,lt)}function Ft(zt){Je(zt,I)}function _t(zt){Je(zt,he)}function Dt(zt){Je(zt,Qe)}function dt(zt){var ln=oe(zt,"prev",wt($e,"prev page"));return we.isValidElement(ln)?we.cloneElement(ln,{disabled:!St}):ln}function vt(zt){var ln=oe(zt,"next",wt(ze,"next page"));return we.isValidElement(ln)?we.cloneElement(ln,{disabled:!et}):ln}function Mt(zt){(zt.type==="click"||zt.keyCode===Zt.ENTER)&&ut(nt)}var mt=null,Ht=$m(t,{aria:!0,data:!0}),It=Q&&we.createElement("li",{className:"".concat(r,"-total-text")},Q(S,[S===0?0:(Ce-1)*me+1,Ce*me>S?S:Ce*me])),ct=null,tt=$d(void 0,me,S);if(D&&S<=me)return null;var gt=[],bt={rootPrefixCls:r,onClick:ut,onKeyPress:Je,showTitle:P,itemRender:oe,page:-1},Ot=Ce-1>0?Ce-1:0,Bt=Ce+1<tt?Ce+1:tt,En=$&&$.goButton,ot=Xt(X)==="object"?X.readOnly:!X,On=En,Jt=null;X&&(En&&(typeof En=="boolean"?On=we.createElement("button",{type:"button",onClick:Mt,onKeyUp:Mt},G.jump_to_confirm):On=we.createElement("span",{onClick:Mt,onKeyUp:Mt},En),On=we.createElement("li",{title:P?"".concat(G.jump_to).concat(Ce,"/").concat(tt):null,className:"".concat(r,"-simple-pager")},On)),Jt=we.createElement("li",{title:P?"".concat(Ce,"/").concat(tt):null,className:"".concat(r,"-simple-pager")},ot?nt:we.createElement("input",{type:"text","aria-label":G.jump_to,value:nt,disabled:k,onKeyDown:kt,onKeyUp:Vt,onChange:Vt,onBlur:Wt,size:3}),we.createElement("span",{className:"".concat(r,"-slash")},"/"),tt));var zn=V?1:2;if(tt<=3+zn*2){tt||gt.push(we.createElement(Fm,jt({},bt,{key:"noPager",page:1,className:"".concat(r,"-item-disabled")})));for(var Rn=1;Rn<=tt;Rn+=1)gt.push(we.createElement(Fm,jt({},bt,{key:Rn,page:Rn,active:Ce===Rn})))}else{var vn=V?G.prev_3:G.prev_5,nr=V?G.next_3:G.next_5,Un=oe(Ge,"jump-prev",wt(fe,"prev page")),nn=oe(Rt,"jump-next",wt(ye,"next page"));j&&(mt=Un?we.createElement("li",{title:P?vn:null,key:"prev",onClick:he,tabIndex:0,onKeyDown:_t,className:Ye("".concat(r,"-jump-prev"),de({},"".concat(r,"-jump-prev-custom-icon"),!!fe))},Un):null,ct=nn?we.createElement("li",{title:P?nr:null,key:"next",onClick:Qe,tabIndex:0,onKeyDown:Dt,className:Ye("".concat(r,"-jump-next"),de({},"".concat(r,"-jump-next-custom-icon"),!!ye))},nn):null);var pt=Math.max(1,Ce-zn),xt=Math.min(Ce+zn,tt);Ce-1<=zn&&(xt=1+zn*2),tt-Ce<=zn&&(pt=tt-zn*2);for(var Kt=pt;Kt<=xt;Kt+=1)gt.push(we.createElement(Fm,jt({},bt,{key:Kt,page:Kt,active:Ce===Kt})));if(Ce-1>=zn*2&&Ce!==3&&(gt[0]=we.cloneElement(gt[0],{className:Ye("".concat(r,"-item-after-jump-prev"),gt[0].props.className)}),gt.unshift(mt)),tt-Ce>=zn*2&&Ce!==tt-2){var fn=gt[gt.length-1];gt[gt.length-1]=we.cloneElement(fn,{className:Ye("".concat(r,"-item-before-jump-next"),fn.props.className)}),gt.push(ct)}pt!==1&>.unshift(we.createElement(Fm,jt({},bt,{key:1,page:1}))),xt!==tt&>.push(we.createElement(Fm,jt({},bt,{key:tt,page:tt})))}var Ln=dt(Ot);if(Ln){var Qa=!St||!tt;Ln=we.createElement("li",{title:P?G.prev_page:null,onClick:lt,tabIndex:Qa?null:0,onKeyDown:ft,className:Ye("".concat(r,"-prev"),de({},"".concat(r,"-disabled"),Qa)),"aria-disabled":Qa},Ln)}var sa=vt(Bt);if(sa){var ga,jr;X?(ga=!et,jr=St?0:null):(ga=!et||!tt,jr=ga?null:0),sa=we.createElement("li",{title:P?G.next_page:null,onClick:I,tabIndex:jr,onKeyDown:Ft,className:Ye("".concat(r,"-next"),de({},"".concat(r,"-disabled"),ga)),"aria-disabled":ga},sa)}var hr=Ye(r,f,de(de(de(de(de({},"".concat(r,"-start"),_==="start"),"".concat(r,"-center"),_==="center"),"".concat(r,"-end"),_==="end"),"".concat(r,"-simple"),X),"".concat(r,"-disabled"),k));return we.createElement("ul",jt({className:hr,style:K,ref:Fe},Ht),It,Ln,X?Jt:gt,sa,we.createElement(Y$,{locale:G,rootPrefixCls:r,disabled:k,selectPrefixCls:c,changeSize:Tt,pageSize:me,pageSizeOptions:ne,quickGo:ht?ut:null,goButton:On,showSizeChanger:U,sizeChangerRender:F}))};X$.NODE_ENV!=="production"&&(Z$.displayName="Pagination");const Eq=e=>{const{componentCls:t}=e;return{[`${t}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}}},[`&${t}-disabled`]:{cursor:"not-allowed",[`${t}-item`]:{cursor:"not-allowed",backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"},a:{color:e.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:e.colorBorder,backgroundColor:e.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:e.itemActiveBgDisabled},a:{color:e.itemActiveColorDisabled}}},[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${t}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${t}-simple-pager`]:{color:e.colorTextDisabled},[`${t}-jump-prev, ${t}-jump-next`]:{[`${t}-item-link-icon`]:{opacity:0},[`${t}-item-ellipsis`]:{opacity:1}}},[`&${t}-simple`]:{[`${t}-prev, ${t}-next`]:{[`&${t}-disabled ${t}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},wq=e=>{const{componentCls:t}=e;return{[`&${t}-mini ${t}-total-text, &${t}-mini ${t}-simple-pager`]:{height:e.itemSizeSM,lineHeight:st(e.itemSizeSM)},[`&${t}-mini ${t}-item`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:st(e.calc(e.itemSizeSM).sub(2).equal())},[`&${t}-mini ${t}-prev, &${t}-mini ${t}-next`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:st(e.itemSizeSM)},[`&${t}-mini:not(${t}-disabled)`]:{[`${t}-prev, ${t}-next`]:{[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover ${t}-item-link`]:{backgroundColor:"transparent"}}},[`
|
|
537
|
+
&${t}-mini ${t}-prev ${t}-item-link,
|
|
538
|
+
&${t}-mini ${t}-next ${t}-item-link
|
|
539
|
+
`]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:e.itemSizeSM,lineHeight:st(e.itemSizeSM)}},[`&${t}-mini ${t}-jump-prev, &${t}-mini ${t}-jump-next`]:{height:e.itemSizeSM,marginInlineEnd:0,lineHeight:st(e.itemSizeSM)},[`&${t}-mini ${t}-options`]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:e.miniOptionsSizeChangerTop},"&-quick-jumper":{height:e.itemSizeSM,lineHeight:st(e.itemSizeSM),input:Object.assign(Object.assign({},_T(e)),{width:e.paginationMiniQuickJumperInputWidth,height:e.controlHeightSM})}}}},Tq=e=>{const{componentCls:t}=e;return{[`
|
|
540
|
+
&${t}-simple ${t}-prev,
|
|
541
|
+
&${t}-simple ${t}-next
|
|
542
|
+
`]:{height:e.itemSizeSM,lineHeight:st(e.itemSizeSM),verticalAlign:"top",[`${t}-item-link`]:{height:e.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive},"&::after":{height:e.itemSizeSM,lineHeight:st(e.itemSizeSM)}}},[`&${t}-simple ${t}-simple-pager`]:{display:"inline-block",height:e.itemSizeSM,marginInlineEnd:e.marginXS,input:{boxSizing:"border-box",height:"100%",padding:`0 ${st(e.paginationItemPaddingInline)}`,textAlign:"center",backgroundColor:e.itemInputBg,border:`${st(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadius,outline:"none",transition:`border-color ${e.motionDurationMid}`,color:"inherit","&:hover":{borderColor:e.colorPrimary},"&:focus":{borderColor:e.colorPrimaryHover,boxShadow:`${st(e.inputOutlineOffset)} 0 ${st(e.controlOutlineWidth)} ${e.controlOutline}`},"&[disabled]":{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,cursor:"not-allowed"}}}}},Oq=e=>{const{componentCls:t}=e;return{[`${t}-jump-prev, ${t}-jump-next`]:{outline:0,[`${t}-item-container`]:{position:"relative",[`${t}-item-link-icon`]:{color:e.colorPrimary,fontSize:e.fontSizeSM,opacity:0,transition:`all ${e.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${t}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:e.colorTextDisabled,letterSpacing:e.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:e.paginationEllipsisTextIndent,opacity:1,transition:`all ${e.motionDurationMid}`}},"&:hover":{[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}}},[`
|
|
543
|
+
${t}-prev,
|
|
544
|
+
${t}-jump-prev,
|
|
545
|
+
${t}-jump-next
|
|
546
|
+
`]:{marginInlineEnd:e.marginXS},[`
|
|
547
|
+
${t}-prev,
|
|
548
|
+
${t}-next,
|
|
549
|
+
${t}-jump-prev,
|
|
550
|
+
${t}-jump-next
|
|
551
|
+
`]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,color:e.colorText,fontFamily:e.fontFamily,lineHeight:st(e.itemSize),textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:e.borderRadius,cursor:"pointer",transition:`all ${e.motionDurationMid}`},[`${t}-prev, ${t}-next`]:{outline:0,button:{color:e.colorText,cursor:"pointer",userSelect:"none"},[`${t}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:e.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${st(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:"none",transition:`all ${e.motionDurationMid}`},[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover`]:{[`${t}-item-link`]:{backgroundColor:"transparent"}}},[`${t}-slash`]:{marginInlineEnd:e.paginationSlashMarginInlineEnd,marginInlineStart:e.paginationSlashMarginInlineStart},[`${t}-options`]:{display:"inline-block",marginInlineStart:e.margin,verticalAlign:"middle","&-size-changer":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:e.controlHeight,marginInlineStart:e.marginXS,lineHeight:st(e.controlHeight),verticalAlign:"top",input:Object.assign(Object.assign(Object.assign({},DT(e)),MT(e,{borderColor:e.colorBorder,hoverBorderColor:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadow:e.activeShadow})),{"&[disabled]":Object.assign({},A1(e)),width:e.calc(e.controlHeightLG).mul(1.25).equal(),height:e.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:e.marginXS,marginInlineEnd:e.marginXS})}}}},Rq=e=>{const{componentCls:t}=e;return{[`${t}-item`]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,marginInlineEnd:e.marginXS,fontFamily:e.fontFamily,lineHeight:st(e.calc(e.itemSize).sub(2).equal()),textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:e.itemBg,border:`${st(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${st(e.paginationItemPaddingInline)}`,color:e.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${t}-item-active)`]:{"&:hover":{transition:`all ${e.motionDurationMid}`,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},"&-active":{fontWeight:e.fontWeightStrong,backgroundColor:e.itemActiveBg,borderColor:e.colorPrimary,a:{color:e.colorPrimary},"&:hover":{borderColor:e.colorPrimaryHover},"&:hover a":{color:e.colorPrimaryHover}}}}},Aq=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},ts(e)),{display:"flex","&-start":{justifyContent:"start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"end"},"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${t}-total-text`]:{display:"inline-block",height:e.itemSize,marginInlineEnd:e.marginXS,lineHeight:st(e.calc(e.itemSize).sub(2).equal()),verticalAlign:"middle"}}),Rq(e)),Oq(e)),Tq(e)),wq(e)),Eq(e)),{[`@media only screen and (max-width: ${e.screenLG}px)`]:{[`${t}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${e.screenSM}px)`]:{[`${t}-options`]:{display:"none"}}}),[`&${e.componentCls}-rtl`]:{direction:"rtl"}}},Mq=e=>{const{componentCls:t}=e;return{[`${t}:not(${t}-disabled)`]:{[`${t}-item`]:Object.assign({},dw(e)),[`${t}-jump-prev, ${t}-jump-next`]:{"&:focus-visible":Object.assign({[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}},fw(e))},[`${t}-prev, ${t}-next`]:{[`&:focus-visible ${t}-item-link`]:Object.assign({},fw(e))}}}},K$=e=>Object.assign({itemBg:e.colorBgContainer,itemSize:e.controlHeight,itemSizeSM:e.controlHeightSM,itemActiveBg:e.colorBgContainer,itemLinkBg:e.colorBgContainer,itemActiveColorDisabled:e.colorTextDisabled,itemActiveBgDisabled:e.controlItemBgActiveDisabled,itemInputBg:e.colorBgContainer,miniOptionsSizeChangerTop:0},s0(e)),Q$=e=>Ma(e,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:e.calc(e.marginXXS).div(2).equal(),paginationMiniQuickJumperInputWidth:e.calc(e.controlHeightLG).mul(1.1).equal(),paginationItemPaddingInline:e.calc(e.marginXXS).mul(1.5).equal(),paginationEllipsisLetterSpacing:e.calc(e.marginXXS).div(2).equal(),paginationSlashMarginInlineStart:e.marginSM,paginationSlashMarginInlineEnd:e.marginSM,paginationEllipsisTextIndent:"0.13em"},l0(e)),_q=bi("Pagination",e=>{const t=Q$(e);return[Aq(t),Mq(t)]},K$),Dq=e=>{const{componentCls:t}=e;return{[`${t}${t}-bordered${t}-disabled:not(${t}-mini)`]:{"&, &:hover":{[`${t}-item-link`]:{borderColor:e.colorBorder}},"&:focus-visible":{[`${t}-item-link`]:{borderColor:e.colorBorder}},[`${t}-item, ${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,[`&:hover:not(${t}-item-active)`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,a:{color:e.colorTextDisabled}},[`&${t}-item-active`]:{backgroundColor:e.itemActiveBgDisabled}},[`${t}-prev, ${t}-next`]:{"&:hover button":{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,color:e.colorTextDisabled},[`${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder}}},[`${t}${t}-bordered:not(${t}-mini)`]:{[`${t}-prev, ${t}-next`]:{"&:hover button":{borderColor:e.colorPrimaryHover,backgroundColor:e.itemBg},[`${t}-item-link`]:{backgroundColor:e.itemLinkBg,borderColor:e.colorBorder},[`&:hover ${t}-item-link`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,color:e.colorPrimary},[`&${t}-disabled`]:{[`${t}-item-link`]:{borderColor:e.colorBorder,color:e.colorTextDisabled}}},[`${t}-item`]:{backgroundColor:e.itemBg,border:`${st(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,[`&:hover:not(${t}-item-active)`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,a:{color:e.colorPrimary}},"&-active":{borderColor:e.colorPrimary}}}}},Nq=SD(["Pagination","bordered"],e=>{const t=Q$(e);return[Dq(t)]},K$);function J$(e){return C.useMemo(()=>typeof e=="boolean"?[e,{}]:e&&typeof e=="object"?[!0,e]:[void 0,void 0],[e])}var BT={},$q=function(e,t){var a={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(a[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,r=Object.getOwnPropertySymbols(e);l<r.length;l++)t.indexOf(r[l])<0&&Object.prototype.propertyIsEnumerable.call(e,r[l])&&(a[r[l]]=e[r[l]]);return a};const e4=e=>{const{align:t,prefixCls:a,selectPrefixCls:r,className:l,rootClassName:c,style:f,size:m,locale:g,responsive:p,showSizeChanger:y,selectComponentClass:S,pageSizeOptions:E}=e,T=$q(e,["align","prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","responsive","showSizeChanger","selectComponentClass","pageSizeOptions"]),{xs:O}=w1(p),[,M]=jo(),{getPrefixCls:A,direction:D,showSizeChanger:_,className:z,style:j}=es("pagination"),$=A("pagination",a),[V,H,P]=_q($),q=qu(m),Y=q==="small"||!!(O&&!q&&p),[te]=Vv("Pagination",F_),G=Object.assign(Object.assign({},te),g),[K,J]=J$(y),[ie,k]=J$(_),X=K??ie,Q=J??k,le=S||Dd,U=C.useMemo(()=>E?E.map(ye=>Number(ye)):void 0,[E]),F=ye=>{var $e;const{disabled:ze,size:Fe,onSizeChange:Ke,"aria-label":Oe,className:me,options:Re}=ye,{className:Pe,onChange:be}=Q||{},Ce=($e=Re.find(_e=>String(_e.value)===String(Fe)))===null||$e===void 0?void 0:$e.value;return C.createElement(le,Object.assign({disabled:ze,showSearch:!0,popupMatchSelectWidth:!1,getPopupContainer:_e=>_e.parentNode,"aria-label":Oe,options:Re},Q,{value:Ce,onChange:(_e,je)=>{Ke?.(_e),be?.(_e,je)},size:Y?"small":"middle",className:Ye(me,Pe)}))};if(BT.NODE_ENV!=="production"){const ye=Ba("Pagination");BT.NODE_ENV!=="production"&&ye(!S,"usage","`selectComponentClass` is not official api which will be removed.")}const ne=C.useMemo(()=>{const ye=C.createElement("span",{className:`${$}-item-ellipsis`},"•••"),$e=C.createElement("button",{className:`${$}-item-link`,type:"button",tabIndex:-1},D==="rtl"?C.createElement(jw,null):C.createElement(AT,null)),ze=C.createElement("button",{className:`${$}-item-link`,type:"button",tabIndex:-1},D==="rtl"?C.createElement(AT,null):C.createElement(jw,null)),Fe=C.createElement("a",{className:`${$}-item-link`},C.createElement("div",{className:`${$}-item-container`},D==="rtl"?C.createElement(VT,{className:`${$}-item-link-icon`}):C.createElement(LT,{className:`${$}-item-link-icon`}),ye)),Ke=C.createElement("a",{className:`${$}-item-link`},C.createElement("div",{className:`${$}-item-container`},D==="rtl"?C.createElement(LT,{className:`${$}-item-link-icon`}):C.createElement(VT,{className:`${$}-item-link-icon`}),ye));return{prevIcon:$e,nextIcon:ze,jumpPrevIcon:Fe,jumpNextIcon:Ke}},[D,$]),ae=A("select",r),oe=Ye({[`${$}-${t}`]:!!t,[`${$}-mini`]:Y,[`${$}-rtl`]:D==="rtl",[`${$}-bordered`]:M.wireframe},z,l,c,H,P),fe=Object.assign(Object.assign({},j),f);return V(C.createElement(C.Fragment,null,M.wireframe&&C.createElement(Nq,{prefixCls:$}),C.createElement(Z$,Object.assign({},ne,T,{style:fe,prefixCls:$,selectPrefixCls:ae,className:oe,locale:G,pageSizeOptions:U,showSizeChanger:X,sizeChangerRender:F}))))};BT.NODE_ENV!=="production"&&(e4.displayName="Pagination");const N1=100,t4=N1/5,n4=N1/2-t4/2,PT=n4*2*Math.PI,a4=50,r4=e=>{const{dotClassName:t,style:a,hasCircleCls:r}=e;return C.createElement("circle",{className:Ye(`${t}-circle`,{[`${t}-circle-bg`]:r}),r:n4,cx:a4,cy:a4,strokeWidth:t4,style:a})},zq=({percent:e,prefixCls:t})=>{const a=`${t}-dot`,r=`${a}-holder`,l=`${r}-hidden`,[c,f]=C.useState(!1);Zn(()=>{e!==0&&f(!0)},[e!==0]);const m=Math.max(Math.min(e,100),0);if(!c)return null;const g={strokeDashoffset:`${PT/4}`,strokeDasharray:`${PT*m/100} ${PT*(100-m)/100}`};return C.createElement("span",{className:Ye(r,`${a}-progress`,m<=0&&l)},C.createElement("svg",{viewBox:`0 0 ${N1} ${N1}`,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":m},C.createElement(r4,{dotClassName:a,hasCircleCls:!0}),C.createElement(r4,{dotClassName:a,style:g})))};function jq(e){const{prefixCls:t,percent:a=0}=e,r=`${t}-dot`,l=`${r}-holder`,c=`${l}-hidden`;return C.createElement(C.Fragment,null,C.createElement("span",{className:Ye(l,a>0&&c)},C.createElement("span",{className:Ye(r,`${t}-dot-spin`)},[1,2,3,4].map(f=>C.createElement("i",{className:`${t}-dot-item`,key:f})))),C.createElement(zq,{prefixCls:t,percent:a}))}function Lq(e){var t;const{prefixCls:a,indicator:r,percent:l}=e,c=`${a}-dot`;return r&&C.isValidElement(r)?Ys(r,{className:Ye((t=r.props)===null||t===void 0?void 0:t.className,c),percent:l}):C.createElement(jq,{prefixCls:a,percent:l})}const Vq=new ra("antSpinMove",{to:{opacity:1}}),Hq=new ra("antRotate",{to:{transform:"rotate(405deg)"}}),Bq=e=>{const{componentCls:t,calc:a}=e;return{[t]:Object.assign(Object.assign({},ts(e)),{position:"absolute",display:"none",color:e.colorPrimary,fontSize:0,textAlign:"center",verticalAlign:"middle",opacity:0,transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`,"&-spinning":{position:"relative",display:"inline-block",opacity:1},[`${t}-text`]:{fontSize:e.fontSize,paddingTop:a(a(e.dotSize).sub(e.fontSize)).div(2).add(2).equal()},"&-fullscreen":{position:"fixed",width:"100vw",height:"100vh",backgroundColor:e.colorBgMask,zIndex:e.zIndexPopupBase,inset:0,display:"flex",alignItems:"center",flexDirection:"column",justifyContent:"center",opacity:0,visibility:"hidden",transition:`all ${e.motionDurationMid}`,"&-show":{opacity:1,visibility:"visible"},[t]:{[`${t}-dot-holder`]:{color:e.colorWhite},[`${t}-text`]:{color:e.colorTextLightSolid}}},"&-nested-loading":{position:"relative",[`> div > ${t}`]:{position:"absolute",top:0,insetInlineStart:0,zIndex:4,display:"block",width:"100%",height:"100%",maxHeight:e.contentHeight,[`${t}-dot`]:{position:"absolute",top:"50%",insetInlineStart:"50%",margin:a(e.dotSize).mul(-1).div(2).equal()},[`${t}-text`]:{position:"absolute",top:"50%",width:"100%",textShadow:`0 1px 2px ${e.colorBgContainer}`},[`&${t}-show-text ${t}-dot`]:{marginTop:a(e.dotSize).div(2).mul(-1).sub(10).equal()},"&-sm":{[`${t}-dot`]:{margin:a(e.dotSizeSM).mul(-1).div(2).equal()},[`${t}-text`]:{paddingTop:a(a(e.dotSizeSM).sub(e.fontSize)).div(2).add(2).equal()},[`&${t}-show-text ${t}-dot`]:{marginTop:a(e.dotSizeSM).div(2).mul(-1).sub(10).equal()}},"&-lg":{[`${t}-dot`]:{margin:a(e.dotSizeLG).mul(-1).div(2).equal()},[`${t}-text`]:{paddingTop:a(a(e.dotSizeLG).sub(e.fontSize)).div(2).add(2).equal()},[`&${t}-show-text ${t}-dot`]:{marginTop:a(e.dotSizeLG).div(2).mul(-1).sub(10).equal()}}},[`${t}-container`]:{position:"relative",transition:`opacity ${e.motionDurationSlow}`,"&::after":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:10,width:"100%",height:"100%",background:e.colorBgContainer,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'""',pointerEvents:"none"}},[`${t}-blur`]:{clear:"both",opacity:.5,userSelect:"none",pointerEvents:"none","&::after":{opacity:.4,pointerEvents:"auto"}}},"&-tip":{color:e.spinDotDefault},[`${t}-dot-holder`]:{width:"1em",height:"1em",fontSize:e.dotSize,display:"inline-block",transition:`transform ${e.motionDurationSlow} ease, opacity ${e.motionDurationSlow} ease`,transformOrigin:"50% 50%",lineHeight:1,color:e.colorPrimary,"&-hidden":{transform:"scale(0.3)",opacity:0}},[`${t}-dot-progress`]:{position:"absolute",inset:0},[`${t}-dot`]:{position:"relative",display:"inline-block",fontSize:e.dotSize,width:"1em",height:"1em","&-item":{position:"absolute",display:"block",width:a(e.dotSize).sub(a(e.marginXXS).div(2)).div(2).equal(),height:a(e.dotSize).sub(a(e.marginXXS).div(2)).div(2).equal(),background:"currentColor",borderRadius:"100%",transform:"scale(0.75)",transformOrigin:"50% 50%",opacity:.3,animationName:Vq,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear",animationDirection:"alternate","&:nth-child(1)":{top:0,insetInlineStart:0,animationDelay:"0s"},"&:nth-child(2)":{top:0,insetInlineEnd:0,animationDelay:"0.4s"},"&:nth-child(3)":{insetInlineEnd:0,bottom:0,animationDelay:"0.8s"},"&:nth-child(4)":{bottom:0,insetInlineStart:0,animationDelay:"1.2s"}},"&-spin":{transform:"rotate(45deg)",animationName:Hq,animationDuration:"1.2s",animationIterationCount:"infinite",animationTimingFunction:"linear"},"&-circle":{strokeLinecap:"round",transition:["stroke-dashoffset","stroke-dasharray","stroke","stroke-width","opacity"].map(r=>`${r} ${e.motionDurationSlow} ease`).join(","),fillOpacity:0,stroke:"currentcolor"},"&-circle-bg":{stroke:e.colorFillSecondary}},[`&-sm ${t}-dot`]:{"&, &-holder":{fontSize:e.dotSizeSM}},[`&-sm ${t}-dot-holder`]:{i:{width:a(a(e.dotSizeSM).sub(a(e.marginXXS).div(2))).div(2).equal(),height:a(a(e.dotSizeSM).sub(a(e.marginXXS).div(2))).div(2).equal()}},[`&-lg ${t}-dot`]:{"&, &-holder":{fontSize:e.dotSizeLG}},[`&-lg ${t}-dot-holder`]:{i:{width:a(a(e.dotSizeLG).sub(e.marginXXS)).div(2).equal(),height:a(a(e.dotSizeLG).sub(e.marginXXS)).div(2).equal()}},[`&${t}-show-text ${t}-text`]:{display:"block"}})}},Pq=bi("Spin",e=>{const t=Ma(e,{spinDotDefault:e.colorTextDescription});return[Bq(t)]},e=>{const{controlHeightLG:t,controlHeight:a}=e;return{contentHeight:400,dotSize:t/2,dotSizeSM:t*.35,dotSizeLG:a}}),Uq=200,i4=[[30,.05],[70,.03],[96,.01]];function Iq(e,t){const[a,r]=C.useState(0),l=C.useRef(null),c=t==="auto";return C.useEffect(()=>(c&&e&&(r(0),l.current=setInterval(()=>{r(f=>{const m=100-f;for(let g=0;g<i4.length;g+=1){const[p,y]=i4[g];if(f<=p)return f+m*y}return f})},Uq)),()=>{clearInterval(l.current)}),[c,e]),c?a:t}var UT={},Fq=function(e,t){var a={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(a[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,r=Object.getOwnPropertySymbols(e);l<r.length;l++)t.indexOf(r[l])<0&&Object.prototype.propertyIsEnumerable.call(e,r[l])&&(a[r[l]]=e[r[l]]);return a};let o4;function kq(e,t){return!!e&&!!t&&!Number.isNaN(Number(t))}const tf=e=>{var t;const{prefixCls:a,spinning:r=!0,delay:l=0,className:c,rootClassName:f,size:m="default",tip:g,wrapperClassName:p,style:y,children:S,fullscreen:E=!1,indicator:T,percent:O}=e,M=Fq(e,["prefixCls","spinning","delay","className","rootClassName","size","tip","wrapperClassName","style","children","fullscreen","indicator","percent"]),{getPrefixCls:A,direction:D,className:_,style:z,indicator:j}=es("spin"),$=A("spin",a),[V,H,P]=Pq($),[q,Y]=C.useState(()=>r&&!kq(r,l)),te=Iq(q,O);C.useEffect(()=>{if(r){const Q=yG(l,()=>{Y(!0)});return Q(),()=>{var le;(le=Q?.cancel)===null||le===void 0||le.call(Q)}}Y(!1)},[l,r]);const G=C.useMemo(()=>typeof S<"u"&&!E,[S,E]);if(UT.NODE_ENV!=="production"){const Q=Ba("Spin");UT.NODE_ENV!=="production"&&Q(!g||G||E,"usage","`tip` only work in nest or fullscreen pattern.")}const K=Ye($,_,{[`${$}-sm`]:m==="small",[`${$}-lg`]:m==="large",[`${$}-spinning`]:q,[`${$}-show-text`]:!!g,[`${$}-rtl`]:D==="rtl"},c,!E&&f,H,P),J=Ye(`${$}-container`,{[`${$}-blur`]:q}),ie=(t=T??j)!==null&&t!==void 0?t:o4,k=Object.assign(Object.assign({},z),y),X=C.createElement("div",Object.assign({},M,{style:k,className:K,"aria-live":"polite","aria-busy":q}),C.createElement(Lq,{prefixCls:$,indicator:ie,percent:te}),g&&(G||E)?C.createElement("div",{className:`${$}-text`},g):null);return V(G?C.createElement("div",Object.assign({},M,{className:Ye(`${$}-nested-loading`,p,H,P)}),q&&C.createElement("div",{key:"loading"},X),C.createElement("div",{className:J,key:"container"},S)):E?C.createElement("div",{className:Ye(`${$}-fullscreen`,{[`${$}-fullscreen-show`]:q},f,H,P)},X):X)};tf.setDefaultIndicator=e=>{o4=e},UT.NODE_ENV!=="production"&&(tf.displayName="Spin");const IT=we.createContext({});IT.Consumer;var l4=function(e,t){var a={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(a[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,r=Object.getOwnPropertySymbols(e);l<r.length;l++)t.indexOf(r[l])<0&&Object.prototype.propertyIsEnumerable.call(e,r[l])&&(a[r[l]]=e[r[l]]);return a};const Gq=e=>{var{prefixCls:t,className:a,avatar:r,title:l,description:c}=e,f=l4(e,["prefixCls","className","avatar","title","description"]);const{getPrefixCls:m}=C.useContext(ia),g=m("list",t),p=Ye(`${g}-item-meta`,a),y=we.createElement("div",{className:`${g}-item-meta-content`},l&&we.createElement("h4",{className:`${g}-item-meta-title`},l),c&&we.createElement("div",{className:`${g}-item-meta-description`},c));return we.createElement("div",Object.assign({},f,{className:p}),r&&we.createElement("div",{className:`${g}-item-meta-avatar`},r),(l||c)&&y)},s4=we.forwardRef((e,t)=>{const{prefixCls:a,children:r,actions:l,extra:c,styles:f,className:m,classNames:g,colStyle:p}=e,y=l4(e,["prefixCls","children","actions","extra","styles","className","classNames","colStyle"]),{grid:S,itemLayout:E}=C.useContext(IT),{getPrefixCls:T,list:O}=C.useContext(ia),M=H=>{var P,q;return Ye((q=(P=O?.item)===null||P===void 0?void 0:P.classNames)===null||q===void 0?void 0:q[H],g?.[H])},A=H=>{var P,q;return Object.assign(Object.assign({},(q=(P=O?.item)===null||P===void 0?void 0:P.styles)===null||q===void 0?void 0:q[H]),f?.[H])},D=()=>{let H=!1;return C.Children.forEach(r,P=>{typeof P=="string"&&(H=!0)}),H&&C.Children.count(r)>1},_=()=>E==="vertical"?!!c:!D(),z=T("list",a),j=l&&l.length>0&&we.createElement("ul",{className:Ye(`${z}-item-action`,M("actions")),key:"actions",style:A("actions")},l.map((H,P)=>we.createElement("li",{key:`${z}-item-action-${P}`},H,P!==l.length-1&&we.createElement("em",{className:`${z}-item-action-split`})))),$=S?"div":"li",V=we.createElement($,Object.assign({},y,S?{}:{ref:t},{className:Ye(`${z}-item`,{[`${z}-item-no-flex`]:!_()},m)}),E==="vertical"&&c?[we.createElement("div",{className:`${z}-item-main`,key:"content"},r,j),we.createElement("div",{className:Ye(`${z}-item-extra`,M("extra")),key:"extra",style:A("extra")},c)]:[r,j,Ys(c,{key:"extra"})]);return S?we.createElement(N$,{ref:t,flex:1,style:p},V):V});s4.Meta=Gq;const qq=e=>{const{listBorderedCls:t,componentCls:a,paddingLG:r,margin:l,itemPaddingSM:c,itemPaddingLG:f,marginLG:m,borderRadiusLG:g}=e;return{[t]:{border:`${st(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:g,[`${a}-header,${a}-footer,${a}-item`]:{paddingInline:r},[`${a}-pagination`]:{margin:`${st(l)} ${st(m)}`}},[`${t}${a}-sm`]:{[`${a}-item,${a}-header,${a}-footer`]:{padding:c}},[`${t}${a}-lg`]:{[`${a}-item,${a}-header,${a}-footer`]:{padding:f}}}},Yq=e=>{const{componentCls:t,screenSM:a,screenMD:r,marginLG:l,marginSM:c,margin:f}=e;return{[`@media screen and (max-width:${r}px)`]:{[t]:{[`${t}-item`]:{[`${t}-item-action`]:{marginInlineStart:l}}},[`${t}-vertical`]:{[`${t}-item`]:{[`${t}-item-extra`]:{marginInlineStart:l}}}},[`@media screen and (max-width: ${a}px)`]:{[t]:{[`${t}-item`]:{flexWrap:"wrap",[`${t}-action`]:{marginInlineStart:c}}},[`${t}-vertical`]:{[`${t}-item`]:{flexWrap:"wrap-reverse",[`${t}-item-main`]:{minWidth:e.contentWidth},[`${t}-item-extra`]:{margin:`auto auto ${st(f)}`}}}}}},Xq=e=>{const{componentCls:t,antCls:a,controlHeight:r,minHeight:l,paddingSM:c,marginLG:f,padding:m,itemPadding:g,colorPrimary:p,itemPaddingSM:y,itemPaddingLG:S,paddingXS:E,margin:T,colorText:O,colorTextDescription:M,motionDurationSlow:A,lineWidth:D,headerBg:_,footerBg:z,emptyTextPadding:j,metaMarginBottom:$,avatarMarginRight:V,titleMarginBottom:H,descriptionFontSize:P}=e;return{[t]:Object.assign(Object.assign({},ts(e)),{position:"relative","--rc-virtual-list-scrollbar-bg":e.colorSplit,"*":{outline:"none"},[`${t}-header`]:{background:_},[`${t}-footer`]:{background:z},[`${t}-header, ${t}-footer`]:{paddingBlock:c},[`${t}-pagination`]:{marginBlockStart:f,[`${a}-pagination-options`]:{textAlign:"start"}},[`${t}-spin`]:{minHeight:l,textAlign:"center"},[`${t}-items`]:{margin:0,padding:0,listStyle:"none"},[`${t}-item`]:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:g,color:O,[`${t}-item-meta`]:{display:"flex",flex:1,alignItems:"flex-start",maxWidth:"100%",[`${t}-item-meta-avatar`]:{marginInlineEnd:V},[`${t}-item-meta-content`]:{flex:"1 0",width:0,color:O},[`${t}-item-meta-title`]:{margin:`0 0 ${st(e.marginXXS)} 0`,color:O,fontSize:e.fontSize,lineHeight:e.lineHeight,"> a":{color:O,transition:`all ${A}`,"&:hover":{color:p}}},[`${t}-item-meta-description`]:{color:M,fontSize:P,lineHeight:e.lineHeight}},[`${t}-item-action`]:{flex:"0 0 auto",marginInlineStart:e.marginXXL,padding:0,fontSize:0,listStyle:"none","& > li":{position:"relative",display:"inline-block",padding:`0 ${st(E)}`,color:M,fontSize:e.fontSize,lineHeight:e.lineHeight,textAlign:"center","&:first-child":{paddingInlineStart:0}},[`${t}-item-action-split`]:{position:"absolute",insetBlockStart:"50%",insetInlineEnd:0,width:D,height:e.calc(e.fontHeight).sub(e.calc(e.marginXXS).mul(2)).equal(),transform:"translateY(-50%)",backgroundColor:e.colorSplit}}},[`${t}-empty`]:{padding:`${st(m)} 0`,color:M,fontSize:e.fontSizeSM,textAlign:"center"},[`${t}-empty-text`]:{padding:j,color:e.colorTextDisabled,fontSize:e.fontSize,textAlign:"center"},[`${t}-item-no-flex`]:{display:"block"}}),[`${t}-grid ${a}-col > ${t}-item`]:{display:"block",maxWidth:"100%",marginBlockEnd:T,paddingBlock:0,borderBlockEnd:"none"},[`${t}-vertical ${t}-item`]:{alignItems:"initial",[`${t}-item-main`]:{display:"block",flex:1},[`${t}-item-extra`]:{marginInlineStart:f},[`${t}-item-meta`]:{marginBlockEnd:$,[`${t}-item-meta-title`]:{marginBlockStart:0,marginBlockEnd:H,color:O,fontSize:e.fontSizeLG,lineHeight:e.lineHeightLG}},[`${t}-item-action`]:{marginBlockStart:m,marginInlineStart:"auto","> li":{padding:`0 ${st(m)}`,"&:first-child":{paddingInlineStart:0}}}},[`${t}-split ${t}-item`]:{borderBlockEnd:`${st(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderBlockEnd:"none"}},[`${t}-split ${t}-header`]:{borderBlockEnd:`${st(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-split${t}-empty ${t}-footer`]:{borderTop:`${st(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-loading ${t}-spin-nested-loading`]:{minHeight:r},[`${t}-split${t}-something-after-last-item ${a}-spin-container > ${t}-items > ${t}-item:last-child`]:{borderBlockEnd:`${st(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-lg ${t}-item`]:{padding:S},[`${t}-sm ${t}-item`]:{padding:y},[`${t}:not(${t}-vertical)`]:{[`${t}-item-no-flex`]:{[`${t}-item-action`]:{float:"right"}}}}},Wq=bi("List",e=>{const t=Ma(e,{listBorderedCls:`${e.componentCls}-bordered`,minHeight:e.controlHeightLG});return[Xq(t),qq(t),Yq(t)]},e=>({contentWidth:220,itemPadding:`${st(e.paddingContentVertical)} 0`,itemPaddingSM:`${st(e.paddingContentVerticalSM)} ${st(e.paddingContentHorizontal)}`,itemPaddingLG:`${st(e.paddingContentVerticalLG)} ${st(e.paddingContentHorizontalLG)}`,headerBg:"transparent",footerBg:"transparent",emptyTextPadding:e.padding,metaMarginBottom:e.padding,avatarMarginRight:e.padding,titleMarginBottom:e.paddingSM,descriptionFontSize:e.fontSize}));var Zq={},Kq=function(e,t){var a={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(a[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,r=Object.getOwnPropertySymbols(e);l<r.length;l++)t.indexOf(r[l])<0&&Object.prototype.propertyIsEnumerable.call(e,r[l])&&(a[r[l]]=e[r[l]]);return a};function Qq(e,t){const{pagination:a=!1,prefixCls:r,bordered:l=!1,split:c=!0,className:f,rootClassName:m,style:g,children:p,itemLayout:y,loadMore:S,grid:E,dataSource:T=[],size:O,header:M,footer:A,loading:D=!1,rowKey:_,renderItem:z,locale:j}=e,$=Kq(e,["pagination","prefixCls","bordered","split","className","rootClassName","style","children","itemLayout","loadMore","grid","dataSource","size","header","footer","loading","rowKey","renderItem","locale"]),V=a&&typeof a=="object"?a:{},[H,P]=C.useState(V.defaultCurrent||1),[q,Y]=C.useState(V.defaultPageSize||10),{getPrefixCls:te,direction:G,className:K,style:J}=es("list"),{renderEmpty:ie}=C.useContext(ia),k={current:1,total:0,position:"bottom"},X=it=>(rt,Ge)=>{var Rt;P(rt),Y(Ge),a&&((Rt=a?.[it])===null||Rt===void 0||Rt.call(a,rt,Ge))},Q=X("onChange"),le=X("onShowSizeChange"),U=(it,rt)=>{if(!z)return null;let Ge;return typeof _=="function"?Ge=_(it):_?Ge=it[_]:Ge=it.key,Ge||(Ge=`list-item-${rt}`),C.createElement(C.Fragment,{key:Ge},z(it,rt))},F=!!(S||a||A),ne=te("list",r),[ae,oe,fe]=Wq(ne);let ye=D;typeof ye=="boolean"&&(ye={spinning:ye});const $e=!!ye?.spinning,ze=qu(O);let Fe="";switch(ze){case"large":Fe="lg";break;case"small":Fe="sm";break}const Ke=Ye(ne,{[`${ne}-vertical`]:y==="vertical",[`${ne}-${Fe}`]:Fe,[`${ne}-split`]:c,[`${ne}-bordered`]:l,[`${ne}-loading`]:$e,[`${ne}-grid`]:!!E,[`${ne}-something-after-last-item`]:F,[`${ne}-rtl`]:G==="rtl"},K,f,m,oe,fe),Oe=VU(k,{total:T.length,current:H,pageSize:q},a||{}),me=Math.ceil(Oe.total/Oe.pageSize);Oe.current=Math.min(Oe.current,me);const Re=a&&C.createElement("div",{className:Ye(`${ne}-pagination`)},C.createElement(e4,Object.assign({align:"end"},Oe,{onChange:Q,onShowSizeChange:le})));let Pe=Nt(T);a&&T.length>(Oe.current-1)*Oe.pageSize&&(Pe=Nt(T).splice((Oe.current-1)*Oe.pageSize,Oe.pageSize));const be=Object.keys(E||{}).some(it=>["xs","sm","md","lg","xl","xxl"].includes(it)),Ce=w1(be),_e=C.useMemo(()=>{for(let it=0;it<ef.length;it+=1){const rt=ef[it];if(Ce[rt])return rt}},[Ce]),je=C.useMemo(()=>{if(!E)return;const it=_e&&E[_e]?E[_e]:E.column;if(it)return{width:`${100/it}%`,maxWidth:`${100/it}%`}},[JSON.stringify(E),_e]);let Ue=$e&&C.createElement("div",{style:{minHeight:53}});if(Pe.length>0){const it=Pe.map(U);Ue=E?C.createElement(z$,{gutter:E.gutter},C.Children.map(it,rt=>C.createElement("div",{key:rt?.key,style:je},rt))):C.createElement("ul",{className:`${ne}-items`},it)}else!p&&!$e&&(Ue=C.createElement("div",{className:`${ne}-empty-text`},j?.emptyText||ie?.("List")||C.createElement(J3,{componentName:"List"})));const nt=Oe.position,We=C.useMemo(()=>({grid:E,itemLayout:y}),[JSON.stringify(E),y]);return ae(C.createElement(IT.Provider,{value:We},C.createElement("div",Object.assign({ref:t,style:Object.assign(Object.assign({},J),g),className:Ke},$),(nt==="top"||nt==="both")&&Re,M&&C.createElement("div",{className:`${ne}-header`},M),C.createElement(tf,Object.assign({},ye),Ue,p),A&&C.createElement("div",{className:`${ne}-footer`},A),S||(nt==="bottom"||nt==="both")&&Re)))}const u4=C.forwardRef(Qq);Zq.NODE_ENV!=="production"&&(u4.displayName="List");const $1=u4;$1.Item=s4;const Jq=(e,t=!1)=>t&&e==null?[]:Array.isArray(e)?e:[e];var eY={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 474H286.9l350.2-304c5.6-4.9 2.2-14-5.2-14h-88.5c-3.9 0-7.6 1.4-10.5 3.9L155 487.8a31.96 31.96 0 000 48.3L535.1 866c1.5 1.3 3.3 2 5.2 2h91.5c7.4 0 10.8-9.2 5.2-14L286.9 550H872c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"arrow-left",theme:"outlined"},tY={},nY=function(t,a){return C.createElement(oa,jt({},t,{ref:a,icon:eY}))},FT=C.forwardRef(nY);tY.NODE_ENV!=="production"&&(FT.displayName="ArrowLeftOutlined");var aY={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M842 454c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8 0 140.3-113.7 254-254 254S258 594.3 258 454c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8 0 168.7 126.6 307.9 290 327.6V884H326.7c-13.7 0-24.7 14.3-24.7 32v36c0 4.4 2.8 8 6.2 8h407.6c3.4 0 6.2-3.6 6.2-8v-36c0-17.7-11-32-24.7-32H548V782.1c165.3-18 294-158 294-328.1zM512 624c93.9 0 170-75.2 170-168V232c0-92.8-76.1-168-170-168s-170 75.2-170 168v224c0 92.8 76.1 168 170 168zm-94-392c0-50.6 41.9-92 94-92s94 41.4 94 92v224c0 50.6-41.9 92-94 92s-94-41.4-94-92V232z"}}]},name:"audio",theme:"outlined"},rY={},iY=function(t,a){return C.createElement(oa,jt({},t,{ref:a,icon:aY}))},c4=C.forwardRef(iY);rY.NODE_ENV!=="production"&&(c4.displayName="AudioOutlined");var oY={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M699 353h-46.9c-10.2 0-19.9 4.9-25.9 13.3L469 584.3l-71.2-98.8c-6-8.3-15.6-13.3-25.9-13.3H325c-6.5 0-10.3 7.4-6.5 12.7l124.6 172.8a31.8 31.8 0 0051.7 0l210.6-292c3.9-5.3.1-12.7-6.4-12.7z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"check-circle",theme:"outlined"},lY={},sY=function(t,a){return C.createElement(oa,jt({},t,{ref:a,icon:oY}))},kT=C.forwardRef(sY);lY.NODE_ENV!=="production"&&(kT.displayName="CheckCircleOutlined");var uY={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm0 76c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm128.01 198.83c.03 0 .05.01.09.06l45.02 45.01a.2.2 0 01.05.09.12.12 0 010 .07c0 .02-.01.04-.05.08L557.25 512l127.87 127.86a.27.27 0 01.05.06v.02a.12.12 0 010 .07c0 .03-.01.05-.05.09l-45.02 45.02a.2.2 0 01-.09.05.12.12 0 01-.07 0c-.02 0-.04-.01-.08-.05L512 557.25 384.14 685.12c-.04.04-.06.05-.08.05a.12.12 0 01-.07 0c-.03 0-.05-.01-.09-.05l-45.02-45.02a.2.2 0 01-.05-.09.12.12 0 010-.07c0-.02.01-.04.06-.08L466.75 512 338.88 384.14a.27.27 0 01-.05-.06l-.01-.02a.12.12 0 010-.07c0-.03.01-.05.05-.09l45.02-45.02a.2.2 0 01.09-.05.12.12 0 01.07 0c.02 0 .04.01.08.06L512 466.75l127.86-127.86c.04-.05.06-.06.08-.06a.12.12 0 01.07 0z"}}]},name:"close-circle",theme:"outlined"},cY={},fY=function(t,a){return C.createElement(oa,jt({},t,{ref:a,icon:uY}))},c0=C.forwardRef(fY);cY.NODE_ENV!=="production"&&(c0.displayName="CloseCircleOutlined");var dY={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"}}]},name:"copy",theme:"outlined"},hY={},mY=function(t,a){return C.createElement(oa,jt({},t,{ref:a,icon:dY}))},f4=C.forwardRef(mY);hY.NODE_ENV!=="production"&&(f4.displayName="CopyOutlined");var pY={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z"}}]},name:"edit",theme:"outlined"},gY={},vY=function(t,a){return C.createElement(oa,jt({},t,{ref:a,icon:pY}))},d4=C.forwardRef(vY);gY.NODE_ENV!=="production"&&(d4.displayName="EditOutlined");var yY={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 170h-60c-4.4 0-8 3.6-8 8v518H310v-73c0-6.7-7.8-10.5-13-6.3l-141.9 112a8 8 0 000 12.6l141.9 112c5.3 4.2 13 .4 13-6.3v-75h498c35.3 0 64-28.7 64-64V178c0-4.4-3.6-8-8-8z"}}]},name:"enter",theme:"outlined"},bY={},SY=function(t,a){return C.createElement(oa,jt({},t,{ref:a,icon:yY}))},h4=C.forwardRef(SY);bY.NODE_ENV!=="production"&&(h4.displayName="EnterOutlined");var CY={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372zm-88-532h-48c-4.4 0-8 3.6-8 8v304c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V360c0-4.4-3.6-8-8-8zm224 0h-48c-4.4 0-8 3.6-8 8v304c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V360c0-4.4-3.6-8-8-8z"}}]},name:"pause-circle",theme:"outlined"},xY={},EY=function(t,a){return C.createElement(oa,jt({},t,{ref:a,icon:CY}))},GT=C.forwardRef(EY);xY.NODE_ENV!=="production"&&(GT.displayName="PauseCircleOutlined");var wY={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2zM304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z"}}]},name:"picture",theme:"outlined"},TY={},OY=function(t,a){return C.createElement(oa,jt({},t,{ref:a,icon:wY}))},m4=C.forwardRef(OY);TY.NODE_ENV!=="production"&&(m4.displayName="PictureOutlined");var RY={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M719.4 499.1l-296.1-215A15.9 15.9 0 00398 297v430c0 13.1 14.8 20.5 25.3 12.9l296.1-215a15.9 15.9 0 000-25.8zm-257.6 134V390.9L628.5 512 461.8 633.1z"}}]},name:"play-circle",theme:"outlined"},AY={},MY=function(t,a){return C.createElement(oa,jt({},t,{ref:a,icon:RY}))},qT=C.forwardRef(MY);AY.NODE_ENV!=="production"&&(qT.displayName="PlayCircleOutlined");var _Y={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M931.4 498.9L94.9 79.5c-3.4-1.7-7.3-2.1-11-1.2a15.99 15.99 0 00-11.7 19.3l86.2 352.2c1.3 5.3 5.2 9.6 10.4 11.3l147.7 50.7-147.6 50.7c-5.2 1.8-9.1 6-10.3 11.3L72.2 926.5c-.9 3.7-.5 7.6 1.2 10.9 3.9 7.9 13.5 11.1 21.5 7.2l836.5-417c3.1-1.5 5.6-4.1 7.2-7.1 3.9-8 .7-17.6-7.2-21.6zM170.8 826.3l50.3-205.6 295.2-101.3c2.3-.8 4.2-2.6 5-5 1.4-4.2-.8-8.7-5-10.2L221.1 403 171 198.2l628 314.9-628.2 313.2z"}}]},name:"send",theme:"outlined"},DY={},NY=function(t,a){return C.createElement(oa,jt({},t,{ref:a,icon:_Y}))},p4=C.forwardRef(NY);DY.NODE_ENV!=="production"&&(p4.displayName="SendOutlined");var $Y={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M922.9 701.9H327.4l29.9-60.9 496.8-.9c16.8 0 31.2-12 34.2-28.6l68.8-385.1c1.8-10.1-.9-20.5-7.5-28.4a34.99 34.99 0 00-26.6-12.5l-632-2.1-5.4-25.4c-3.4-16.2-18-28-34.6-28H96.5a35.3 35.3 0 100 70.6h125.9L246 312.8l58.1 281.3-74.8 122.1a34.96 34.96 0 00-3 36.8c6 11.9 18.1 19.4 31.5 19.4h62.8a102.43 102.43 0 00-20.6 61.7c0 56.6 46 102.6 102.6 102.6s102.6-46 102.6-102.6c0-22.3-7.4-44-20.6-61.7h161.1a102.43 102.43 0 00-20.6 61.7c0 56.6 46 102.6 102.6 102.6s102.6-46 102.6-102.6c0-22.3-7.4-44-20.6-61.7H923c19.4 0 35.3-15.8 35.3-35.3a35.42 35.42 0 00-35.4-35.2zM305.7 253l575.8 1.9-56.4 315.8-452.3.8L305.7 253zm96.9 612.7c-17.4 0-31.6-14.2-31.6-31.6 0-17.4 14.2-31.6 31.6-31.6s31.6 14.2 31.6 31.6a31.6 31.6 0 01-31.6 31.6zm325.1 0c-17.4 0-31.6-14.2-31.6-31.6 0-17.4 14.2-31.6 31.6-31.6s31.6 14.2 31.6 31.6a31.6 31.6 0 01-31.6 31.6z"}}]},name:"shopping-cart",theme:"outlined"},zY={},jY=function(t,a){return C.createElement(oa,jt({},t,{ref:a,icon:$Y}))},YT=C.forwardRef(jY);zY.NODE_ENV!=="production"&&(YT.displayName="ShoppingCartOutlined");var LY={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372 0-89 31.3-170.8 83.5-234.8l523.3 523.3C682.8 852.7 601 884 512 884zm288.5-137.2L277.2 223.5C341.2 171.3 423 140 512 140c205.4 0 372 166.6 372 372 0 89-31.3 170.8-83.5 234.8z"}}]},name:"stop",theme:"outlined"},VY={},HY=function(t,a){return C.createElement(oa,jt({},t,{ref:a,icon:LY}))},g4=C.forwardRef(HY);VY.NODE_ENV!=="production"&&(g4.displayName="StopOutlined");var BY={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.5 763.6a374 374 0 00-80.6-119.5 375.63 375.63 0 00-119.5-80.6c-.4-.2-.8-.3-1.2-.5C719.5 518 760 444.7 760 362c0-137-111-248-248-248S264 225 264 362c0 82.7 40.5 156 102.8 201.1-.4.2-.8.3-1.2.5-44.8 18.9-85 46-119.5 80.6a375.63 375.63 0 00-80.6 119.5A371.7 371.7 0 00136 901.8a8 8 0 008 8.2h60c4.4 0 7.9-3.5 8-7.8 2-77.2 33-149.5 87.8-204.3 56.7-56.7 132-87.9 212.2-87.9s155.5 31.2 212.2 87.9C779 752.7 810 825 812 902.2c.1 4.4 3.6 7.8 8 7.8h60a8 8 0 008-8.2c-1-47.8-10.9-94.3-29.5-138.2zM512 534c-45.9 0-89.1-17.9-121.6-50.4S340 407.9 340 362c0-45.9 17.9-89.1 50.4-121.6S466.1 190 512 190s89.1 17.9 121.6 50.4S684 316.1 684 362c0 45.9-17.9 89.1-50.4 121.6S557.9 534 512 534z"}}]},name:"user",theme:"outlined"},PY={},UY=function(t,a){return C.createElement(oa,jt({},t,{ref:a,icon:BY}))},v4=C.forwardRef(UY);PY.NODE_ENV!=="production"&&(v4.displayName="UserOutlined");var IY={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M713.5 599.9c-10.9-5.6-65.2-32.2-75.3-35.8-10.1-3.8-17.5-5.6-24.8 5.6-7.4 11.1-28.4 35.8-35 43.3-6.4 7.4-12.9 8.3-23.8 2.8-64.8-32.4-107.3-57.8-150-131.1-11.3-19.5 11.3-18.1 32.4-60.2 3.6-7.4 1.8-13.7-1-19.3-2.8-5.6-24.8-59.8-34-81.9-8.9-21.5-18.1-18.5-24.8-18.9-6.4-.4-13.7-.4-21.1-.4-7.4 0-19.3 2.8-29.4 13.7-10.1 11.1-38.6 37.8-38.6 92s39.5 106.7 44.9 114.1c5.6 7.4 77.7 118.6 188.4 166.5 70 30.2 97.4 32.8 132.4 27.6 21.3-3.2 65.2-26.6 74.3-52.5 9.1-25.8 9.1-47.9 6.4-52.5-2.7-4.9-10.1-7.7-21-13z"}},{tag:"path",attrs:{d:"M925.2 338.4c-22.6-53.7-55-101.9-96.3-143.3a444.35 444.35 0 00-143.3-96.3C630.6 75.7 572.2 64 512 64h-2c-60.6.3-119.3 12.3-174.5 35.9a445.35 445.35 0 00-142 96.5c-40.9 41.3-73 89.3-95.2 142.8-23 55.4-34.6 114.3-34.3 174.9A449.4 449.4 0 00112 714v152a46 46 0 0046 46h152.1A449.4 449.4 0 00510 960h2.1c59.9 0 118-11.6 172.7-34.3a444.48 444.48 0 00142.8-95.2c41.3-40.9 73.8-88.7 96.5-142 23.6-55.2 35.6-113.9 35.9-174.5.3-60.9-11.5-120-34.8-175.6zm-151.1 438C704 845.8 611 884 512 884h-1.7c-60.3-.3-120.2-15.3-173.1-43.5l-8.4-4.5H188V695.2l-4.5-8.4C155.3 633.9 140.3 574 140 513.7c-.4-99.7 37.7-193.3 107.6-263.8 69.8-70.5 163.1-109.5 262.8-109.9h1.7c50 0 98.5 9.7 144.2 28.9 44.6 18.7 84.6 45.6 119 80 34.3 34.3 61.3 74.4 80 119 19.4 46.2 29.1 95.2 28.9 145.8-.6 99.6-39.7 192.9-110.1 262.7z"}}]},name:"whats-app",theme:"outlined"},FY={},kY=function(t,a){return C.createElement(oa,jt({},t,{ref:a,icon:IY}))},y4=C.forwardRef(kY);FY.NODE_ENV!=="production"&&(y4.displayName="WhatsAppOutlined");const GY=(e,t,a,r)=>{const{titleMarginBottom:l,fontWeightStrong:c}=r;return{marginBottom:l,color:a,fontWeight:c,fontSize:e,lineHeight:t}},qY=e=>{const t=[1,2,3,4,5],a={};return t.forEach(r=>{a[`
|
|
552
|
+
h${r}&,
|
|
553
|
+
div&-h${r},
|
|
554
|
+
div&-h${r} > textarea,
|
|
555
|
+
h${r}
|
|
556
|
+
`]=GY(e[`fontSizeHeading${r}`],e[`lineHeightHeading${r}`],e.colorTextHeading,e)}),a},YY=e=>{const{componentCls:t}=e;return{"a&, a":Object.assign(Object.assign({},bD(e)),{userSelect:"text",[`&[disabled], &${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:active, &:hover":{color:e.colorTextDisabled},"&:active":{pointerEvents:"none"}}})}},XY=e=>({code:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.2em 0.1em",fontSize:"85%",fontFamily:e.fontFamilyCode,background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3},kbd:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.15em 0.1em",fontSize:"90%",fontFamily:e.fontFamilyCode,background:"rgba(150, 150, 150, 0.06)",border:"1px solid rgba(100, 100, 100, 0.2)",borderBottomWidth:2,borderRadius:3},mark:{padding:0,backgroundColor:WS[2]},"u, ins":{textDecoration:"underline",textDecorationSkipInk:"auto"},"s, del":{textDecoration:"line-through"},strong:{fontWeight:e.fontWeightStrong},"ul, ol":{marginInline:0,marginBlock:"0 1em",padding:0,li:{marginInline:"20px 0",marginBlock:0,paddingInline:"4px 0",paddingBlock:0}},ul:{listStyleType:"circle",ul:{listStyleType:"disc"}},ol:{listStyleType:"decimal"},"pre, blockquote":{margin:"1em 0"},pre:{padding:"0.4em 0.6em",whiteSpace:"pre-wrap",wordWrap:"break-word",background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3,fontFamily:e.fontFamilyCode,code:{display:"inline",margin:0,padding:0,fontSize:"inherit",fontFamily:"inherit",background:"transparent",border:0}},blockquote:{paddingInline:"0.6em 0",paddingBlock:0,borderInlineStart:"4px solid rgba(100, 100, 100, 0.2)",opacity:.85}}),WY=e=>{const{componentCls:t,paddingSM:a}=e,r=a;return{"&-edit-content":{position:"relative","div&":{insetInlineStart:e.calc(e.paddingSM).mul(-1).equal(),marginTop:e.calc(r).mul(-1).equal(),marginBottom:`calc(1em - ${st(r)})`},[`${t}-edit-content-confirm`]:{position:"absolute",insetInlineEnd:e.calc(e.marginXS).add(2).equal(),insetBlockEnd:e.marginXS,color:e.colorIcon,fontWeight:"normal",fontSize:e.fontSize,fontStyle:"normal",pointerEvents:"none"},textarea:{margin:"0!important",MozTransition:"none",height:"1em"}}}},ZY=e=>({[`${e.componentCls}-copy-success`]:{"\n &,\n &:hover,\n &:focus":{color:e.colorSuccess}},[`${e.componentCls}-copy-icon-only`]:{marginInlineStart:0}}),KY=()=>({"\n a&-ellipsis,\n span&-ellipsis\n ":{display:"inline-block",maxWidth:"100%"},"&-ellipsis-single-line":{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis","a&, span&":{verticalAlign:"bottom"},"> code":{paddingBlock:0,maxWidth:"calc(100% - 1.2em)",display:"inline-block",overflow:"hidden",textOverflow:"ellipsis",verticalAlign:"bottom",boxSizing:"content-box"}},"&-ellipsis-multiple-line":{display:"-webkit-box",overflow:"hidden",WebkitLineClamp:3,WebkitBoxOrient:"vertical"}}),QY=e=>{const{componentCls:t,titleMarginTop:a}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorText,wordBreak:"break-word",lineHeight:e.lineHeight,[`&${t}-secondary`]:{color:e.colorTextDescription},[`&${t}-success`]:{color:e.colorSuccessText},[`&${t}-warning`]:{color:e.colorWarningText},[`&${t}-danger`]:{color:e.colorErrorText,"a&:active, a&:focus":{color:e.colorErrorTextActive},"a&:hover":{color:e.colorErrorTextHover}},[`&${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed",userSelect:"none"},"\n div&,\n p\n ":{marginBottom:"1em"}},qY(e)),{[`
|
|
557
|
+
& + h1${t},
|
|
558
|
+
& + h2${t},
|
|
559
|
+
& + h3${t},
|
|
560
|
+
& + h4${t},
|
|
561
|
+
& + h5${t}
|
|
562
|
+
`]:{marginTop:a},"\n div,\n ul,\n li,\n p,\n h1,\n h2,\n h3,\n h4,\n h5":{"\n + h1,\n + h2,\n + h3,\n + h4,\n + h5\n ":{marginTop:a}}}),XY(e)),YY(e)),{[`
|
|
563
|
+
${t}-expand,
|
|
564
|
+
${t}-collapse,
|
|
565
|
+
${t}-edit,
|
|
566
|
+
${t}-copy
|
|
567
|
+
`]:Object.assign(Object.assign({},bD(e)),{marginInlineStart:e.marginXXS})}),WY(e)),ZY(e)),KY()),{"&-rtl":{direction:"rtl"}})}},b4=bi("Typography",e=>[QY(e)],()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"})),JY=e=>{const{prefixCls:t,"aria-label":a,className:r,style:l,direction:c,maxLength:f,autoSize:m=!0,value:g,onSave:p,onCancel:y,onEnd:S,component:E,enterIcon:T=C.createElement(h4,null)}=e,O=C.useRef(null),M=C.useRef(!1),A=C.useRef(null),[D,_]=C.useState(g);C.useEffect(()=>{_(g)},[g]),C.useEffect(()=>{var J;if(!((J=O.current)===null||J===void 0)&&J.resizableTextArea){const{textArea:ie}=O.current.resizableTextArea;ie.focus();const{length:k}=ie.value;ie.setSelectionRange(k,k)}},[]);const z=({target:J})=>{_(J.value.replace(/[\n\r]/g,""))},j=()=>{M.current=!0},$=()=>{M.current=!1},V=({keyCode:J})=>{M.current||(A.current=J)},H=()=>{p(D.trim())},P=({keyCode:J,ctrlKey:ie,altKey:k,metaKey:X,shiftKey:Q})=>{A.current!==J||M.current||ie||k||X||Q||(J===Zt.ENTER?(H(),S?.()):J===Zt.ESC&&y())},q=()=>{H()},[Y,te,G]=b4(t),K=Ye(t,`${t}-edit-content`,{[`${t}-rtl`]:c==="rtl",[`${t}-${E}`]:!!E},r,te,G);return Y(C.createElement("div",{className:K,style:l},C.createElement(q$,{ref:O,maxLength:f,value:D,onChange:z,onKeyDown:V,onKeyUp:P,onCompositionStart:j,onCompositionEnd:$,onBlur:q,"aria-label":a,rows:1,autoSize:m}),T!==null?Ys(T,{className:`${t}-edit-content-confirm`}):null))};var XT,S4;function eX(){return S4||(S4=1,XT=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,a=[],r=0;r<e.rangeCount;r++)a.push(e.getRangeAt(r));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null;break}return e.removeAllRanges(),function(){e.type==="Caret"&&e.removeAllRanges(),e.rangeCount||a.forEach(function(l){e.addRange(l)}),t&&t.focus()}}),XT}var WT,C4;function tX(){if(C4)return WT;C4=1;var e=eX(),t={"text/plain":"Text","text/html":"Url",default:"Text"},a="Copy to clipboard: #{key}, Enter";function r(c){var f=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return c.replace(/#{\s*key\s*}/g,f)}function l(c,f){var m,g,p,y,S,E,T=!1;f||(f={}),m=f.debug||!1;try{p=e(),y=document.createRange(),S=document.getSelection(),E=document.createElement("span"),E.textContent=c,E.ariaHidden="true",E.style.all="unset",E.style.position="fixed",E.style.top=0,E.style.clip="rect(0, 0, 0, 0)",E.style.whiteSpace="pre",E.style.webkitUserSelect="text",E.style.MozUserSelect="text",E.style.msUserSelect="text",E.style.userSelect="text",E.addEventListener("copy",function(M){if(M.stopPropagation(),f.format)if(M.preventDefault(),typeof M.clipboardData>"u"){m&&console.warn("unable to use e.clipboardData"),m&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var A=t[f.format]||t.default;window.clipboardData.setData(A,c)}else M.clipboardData.clearData(),M.clipboardData.setData(f.format,c);f.onCopy&&(M.preventDefault(),f.onCopy(M.clipboardData))}),document.body.appendChild(E),y.selectNodeContents(E),S.addRange(y);var O=document.execCommand("copy");if(!O)throw new Error("copy command was unsuccessful");T=!0}catch(M){m&&console.error("unable to copy using execCommand: ",M),m&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(f.format||"text",c),f.onCopy&&f.onCopy(window.clipboardData),T=!0}catch(A){m&&console.error("unable to copy using clipboardData: ",A),m&&console.error("falling back to prompt"),g=r("message"in f?f.message:a),window.prompt(g,c)}}finally{S&&(typeof S.removeRange=="function"?S.removeRange(y):S.removeAllRanges()),E&&document.body.removeChild(E),p()}return T}return WT=l,WT}var nX=tX();const aX=bv(nX);var rX=function(e,t,a,r){function l(c){return c instanceof a?c:new a(function(f){f(c)})}return new(a||(a=Promise))(function(c,f){function m(y){try{p(r.next(y))}catch(S){f(S)}}function g(y){try{p(r.throw(y))}catch(S){f(S)}}function p(y){y.done?c(y.value):l(y.value).then(m,g)}p((r=r.apply(e,t||[])).next())})};const iX=({copyConfig:e,children:t})=>{const[a,r]=C.useState(!1),[l,c]=C.useState(!1),f=C.useRef(null),m=()=>{f.current&&clearTimeout(f.current)},g={};e.format&&(g.format=e.format),C.useEffect(()=>m,[]);const p=cr(y=>rX(void 0,void 0,void 0,function*(){var S;y?.preventDefault(),y?.stopPropagation(),c(!0);try{const E=typeof e.text=="function"?yield e.text():e.text;aX(E||Jq(t,!0).join("")||"",g),c(!1),r(!0),m(),f.current=setTimeout(()=>{r(!1)},3e3),(S=e.onCopy)===null||S===void 0||S.call(e,y)}catch(E){throw c(!1),E}}));return{copied:a,copyLoading:l,onClick:p}};function ZT(e,t){return C.useMemo(()=>{const a=!!e;return[a,Object.assign(Object.assign({},t),a&&typeof e=="object"?e:null)]},[e])}const oX=e=>{const t=C.useRef(void 0);return C.useEffect(()=>{t.current=e}),t.current},lX=(e,t,a)=>C.useMemo(()=>e===!0?{title:t??a}:C.isValidElement(e)?{title:e}:typeof e=="object"?Object.assign({title:t??a},e):{title:e},[e,t,a]);var x4={},sX=function(e,t){var a={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(a[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,r=Object.getOwnPropertySymbols(e);l<r.length;l++)t.indexOf(r[l])<0&&Object.prototype.propertyIsEnumerable.call(e,r[l])&&(a[r[l]]=e[r[l]]);return a};const KT=C.forwardRef((e,t)=>{const{prefixCls:a,component:r="article",className:l,rootClassName:c,setContentRef:f,children:m,direction:g,style:p}=e,y=sX(e,["prefixCls","component","className","rootClassName","setContentRef","children","direction","style"]),{getPrefixCls:S,direction:E,className:T,style:O}=es("typography"),M=g??E,A=f?Wl(t,f):t,D=S("typography",a);x4.NODE_ENV!=="production"&&Ba("Typography").deprecated(!f,"setContentRef","ref");const[_,z,j]=b4(D),$=Ye(D,T,{[`${D}-rtl`]:M==="rtl"},l,c,z,j),V=Object.assign(Object.assign({},O),p);return _(C.createElement(r,Object.assign({className:$,style:V,ref:A},y),m))});x4.NODE_ENV!=="production"&&(KT.displayName="Typography");var uX={};function E4(e){return e===!1?[!1,!1]:Array.isArray(e)?e:[e]}function QT(e,t,a){return e===!0||e===void 0?t:e||a&&t}function cX(e){const t=document.createElement("em");e.appendChild(t),uX.NODE_ENV!=="production"&&(t.className="ant-typography-css-ellipsis-content-measure");const a=e.getBoundingClientRect(),r=t.getBoundingClientRect();return e.removeChild(t),a.left>r.left||r.right>a.right||a.top>r.top||r.bottom>a.bottom}const JT=e=>["string","number"].includes(typeof e),fX=({prefixCls:e,copied:t,locale:a,iconOnly:r,tooltips:l,icon:c,tabIndex:f,onCopy:m,loading:g})=>{const p=E4(l),y=E4(c),{copied:S,copy:E}=a??{},T=t?S:E,O=QT(p[t?1:0],T),M=typeof O=="string"?O:T;return C.createElement(Nd,{title:O},C.createElement("button",{type:"button",className:Ye(`${e}-copy`,{[`${e}-copy-success`]:t,[`${e}-copy-icon-only`]:r}),onClick:m,"aria-label":M,tabIndex:f},t?QT(y[1],C.createElement(bT,null),!0):QT(y[0],g?C.createElement(ku,null):C.createElement(f4,null),!0)))},z1=C.forwardRef(({style:e,children:t},a)=>{const r=C.useRef(null);return C.useImperativeHandle(a,()=>({isExceed:()=>{const l=r.current;return l.scrollHeight>l.clientHeight},getHeight:()=>r.current.clientHeight})),C.createElement("span",{"aria-hidden":!0,ref:r,style:Object.assign({position:"fixed",display:"block",left:0,top:0,pointerEvents:"none",backgroundColor:"rgba(255, 0, 0, 0.65)"},e)},t)}),dX=e=>e.reduce((t,a)=>t+(JT(a)?String(a).length:1),0);function w4(e,t){let a=0;const r=[];for(let l=0;l<e.length;l+=1){if(a===t)return r;const c=e[l],m=JT(c)?String(c).length:1,g=a+m;if(g>t){const p=t-a;return r.push(String(c).slice(0,p)),r}r.push(c),a=g}return e}const eO=0,tO=1,nO=2,aO=3,T4=4,j1={display:"-webkit-box",overflow:"hidden",WebkitBoxOrient:"vertical"};function hX(e){const{enableMeasure:t,width:a,text:r,children:l,rows:c,expanded:f,miscDeps:m,onEllipsis:g}=e,p=C.useMemo(()=>ks(r),[r]),y=C.useMemo(()=>dX(p),[r]),S=C.useMemo(()=>l(p,!1),[r]),[E,T]=C.useState(null),O=C.useRef(null),M=C.useRef(null),A=C.useRef(null),D=C.useRef(null),_=C.useRef(null),[z,j]=C.useState(!1),[$,V]=C.useState(eO),[H,P]=C.useState(0),[q,Y]=C.useState(null);Zn(()=>{V(t&&a&&y?tO:eO)},[a,r,c,t,p]),Zn(()=>{var J,ie,k,X;if($===tO){V(nO);const Q=M.current&&getComputedStyle(M.current).whiteSpace;Y(Q)}else if($===nO){const Q=!!(!((J=A.current)===null||J===void 0)&&J.isExceed());V(Q?aO:T4),T(Q?[0,y]:null),j(Q);const le=((ie=A.current)===null||ie===void 0?void 0:ie.getHeight())||0,U=c===1?0:((k=D.current)===null||k===void 0?void 0:k.getHeight())||0,F=((X=_.current)===null||X===void 0?void 0:X.getHeight())||0,ne=Math.max(le,U+F);P(ne+1),g(Q)}},[$]);const te=E?Math.ceil((E[0]+E[1])/2):0;Zn(()=>{var J;const[ie,k]=E||[0,0];if(ie!==k){const Q=(((J=O.current)===null||J===void 0?void 0:J.getHeight())||0)>H;let le=te;k-ie===1&&(le=Q?ie:k),T(Q?[ie,le]:[le,k])}},[E,te]);const G=C.useMemo(()=>{if(!t)return l(p,!1);if($!==aO||!E||E[0]!==E[1]){const J=l(p,!1);return[T4,eO].includes($)?J:C.createElement("span",{style:Object.assign(Object.assign({},j1),{WebkitLineClamp:c})},J)}return l(f?p:w4(p,E[0]),z)},[f,$,E,p].concat(Nt(m))),K={width:a,margin:0,padding:0,whiteSpace:q==="nowrap"?"normal":"inherit"};return C.createElement(C.Fragment,null,G,$===nO&&C.createElement(C.Fragment,null,C.createElement(z1,{style:Object.assign(Object.assign(Object.assign({},K),j1),{WebkitLineClamp:c}),ref:A},S),C.createElement(z1,{style:Object.assign(Object.assign(Object.assign({},K),j1),{WebkitLineClamp:c-1}),ref:D},S),C.createElement(z1,{style:Object.assign(Object.assign(Object.assign({},K),j1),{WebkitLineClamp:1}),ref:_},l([],!0))),$===aO&&E&&E[0]!==E[1]&&C.createElement(z1,{style:Object.assign(Object.assign({},K),{top:400}),ref:O},l(w4(p,te),!0)),$===tO&&C.createElement("span",{style:{whiteSpace:"inherit"},ref:M}))}var mX={};const O4=({enableEllipsis:e,isEllipsis:t,children:a,tooltipProps:r})=>!r?.title||!e?a:C.createElement(Nd,Object.assign({open:t?void 0:!1},r),a);mX.NODE_ENV!=="production"&&(O4.displayName="EllipsisTooltip");var pX=function(e,t){var a={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(a[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,r=Object.getOwnPropertySymbols(e);l<r.length;l++)t.indexOf(r[l])<0&&Object.prototype.propertyIsEnumerable.call(e,r[l])&&(a[r[l]]=e[r[l]]);return a};function gX({mark:e,code:t,underline:a,delete:r,strong:l,keyboard:c,italic:f},m){let g=m;function p(y,S){S&&(g=C.createElement(y,{},g))}return p("strong",l),p("u",a),p("del",r),p("code",t),p("mark",e),p("kbd",c),p("i",f),g}const vX="...",R4=["delete","mark","code","underline","strong","keyboard","italic"],L1=C.forwardRef((e,t)=>{var a;const{prefixCls:r,className:l,style:c,type:f,disabled:m,children:g,ellipsis:p,editable:y,copyable:S,component:E,title:T}=e,O=pX(e,["prefixCls","className","style","type","disabled","children","ellipsis","editable","copyable","component","title"]),{getPrefixCls:M,direction:A}=C.useContext(ia),[D]=Vv("Text"),_=C.useRef(null),z=C.useRef(null),j=M("typography",r),$=Md(O,R4),[V,H]=ZT(y),[P,q]=mo(!1,{value:H.editing}),{triggerType:Y=["icon"]}=H,te=et=>{var lt;et&&((lt=H.onStart)===null||lt===void 0||lt.call(H)),q(et)},G=oX(P);Zn(()=>{var et;!P&&G&&((et=z.current)===null||et===void 0||et.focus())},[P]);const K=et=>{et?.preventDefault(),te(!0)},J=et=>{var lt;(lt=H.onChange)===null||lt===void 0||lt.call(H,et),te(!1)},ie=()=>{var et;(et=H.onCancel)===null||et===void 0||et.call(H),te(!1)},[k,X]=ZT(S),{copied:Q,copyLoading:le,onClick:U}=iX({copyConfig:X,children:g}),[F,ne]=C.useState(!1),[ae,oe]=C.useState(!1),[fe,ye]=C.useState(!1),[$e,ze]=C.useState(!1),[Fe,Ke]=C.useState(!0),[Oe,me]=ZT(p,{expandable:!1,symbol:et=>et?D?.collapse:D?.expand}),[Re,Pe]=mo(me.defaultExpanded||!1,{value:me.expanded}),be=Oe&&(!Re||me.expandable==="collapsible"),{rows:Ce=1}=me,_e=C.useMemo(()=>be&&(me.suffix!==void 0||me.onEllipsis||me.expandable||V||k),[be,me,V,k]);Zn(()=>{Oe&&!_e&&(ne(s3("webkitLineClamp")),oe(s3("textOverflow")))},[_e,Oe]);const[je,Ue]=C.useState(be),nt=C.useMemo(()=>_e?!1:Ce===1?ae:F,[_e,ae,F]);Zn(()=>{Ue(nt&&be)},[nt,be]);const We=be&&(je?$e:fe),it=be&&Ce===1&&je,rt=be&&Ce>1&&je,Ge=(et,lt)=>{var I;Pe(lt.expanded),(I=me.onExpand)===null||I===void 0||I.call(me,et,lt)},[Rt,wt]=C.useState(0),At=({offsetWidth:et})=>{wt(et)},$t=et=>{var lt;ye(et),fe!==et&&((lt=me.onEllipsis)===null||lt===void 0||lt.call(me,et))};C.useEffect(()=>{const et=_.current;if(Oe&&je&&et){const lt=cX(et);$e!==lt&&ze(lt)}},[Oe,je,g,rt,Fe,Rt]),C.useEffect(()=>{const et=_.current;if(typeof IntersectionObserver>"u"||!et||!je||!be)return;const lt=new IntersectionObserver(()=>{Ke(!!et.offsetParent)});return lt.observe(et),()=>{lt.disconnect()}},[je,be]);const ht=lX(me.tooltip,H.text,g),kt=C.useMemo(()=>{if(!(!Oe||je))return[H.text,g,T,ht.title].find(JT)},[Oe,je,T,ht.title,We]);if(P)return C.createElement(JY,{value:(a=H.text)!==null&&a!==void 0?a:typeof g=="string"?g:"",onSave:J,onCancel:ie,onEnd:H.onEnd,prefixCls:j,className:l,style:c,direction:A,component:E,maxLength:H.maxLength,autoSize:H.autoSize,enterIcon:H.enterIcon});const Vt=()=>{const{expandable:et,symbol:lt}=me;return et?C.createElement("button",{type:"button",key:"expand",className:`${j}-${Re?"collapse":"expand"}`,onClick:I=>Ge(I,{expanded:!Re}),"aria-label":Re?D.collapse:D?.expand},typeof lt=="function"?lt(Re):lt):null},Wt=()=>{if(!V)return;const{icon:et,tooltip:lt,tabIndex:I}=H,he=ks(lt)[0]||D?.edit,Qe=typeof he=="string"?he:"";return Y.includes("icon")?C.createElement(Nd,{key:"edit",title:lt===!1?"":he},C.createElement("button",{type:"button",ref:z,className:`${j}-edit`,onClick:K,"aria-label":Qe,tabIndex:I},et||C.createElement(d4,{role:"button"}))):null},Tt=()=>k?C.createElement(fX,Object.assign({key:"copy"},X,{prefixCls:j,copied:Q,locale:D,onCopy:U,loading:le,iconOnly:g==null})):null,ut=et=>[et&&Vt(),Wt(),Tt()],St=et=>[et&&!Re&&C.createElement("span",{"aria-hidden":!0,key:"ellipsis"},vX),me.suffix,ut(et)];return C.createElement(Zl,{onResize:At,disabled:!be},et=>C.createElement(O4,{tooltipProps:ht,enableEllipsis:be,isEllipsis:We},C.createElement(KT,Object.assign({className:Ye({[`${j}-${f}`]:f,[`${j}-disabled`]:m,[`${j}-ellipsis`]:Oe,[`${j}-ellipsis-single-line`]:it,[`${j}-ellipsis-multiple-line`]:rt},l),prefixCls:r,style:Object.assign(Object.assign({},c),{WebkitLineClamp:rt?Ce:void 0}),component:E,ref:Wl(et,_,t),direction:A,onClick:Y.includes("text")?K:void 0,"aria-label":kt?.toString(),title:T},$),C.createElement(hX,{enableMeasure:be&&!je,text:g,rows:Ce,width:Rt,onEllipsis:$t,expanded:Re,miscDeps:[Q,Re,le,V,k,D].concat(Nt(R4.map(lt=>e[lt])))},(lt,I)=>gX(e,C.createElement(C.Fragment,null,lt.length>0&&I&&!Re&&kt?C.createElement("span",{key:"show-content","aria-hidden":!0},lt):lt,St(I)))))))});var A4={},yX=function(e,t){var a={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(a[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,r=Object.getOwnPropertySymbols(e);l<r.length;l++)t.indexOf(r[l])<0&&Object.prototype.propertyIsEnumerable.call(e,r[l])&&(a[r[l]]=e[r[l]]);return a};const bX=C.forwardRef((e,t)=>{var{ellipsis:a,rel:r}=e,l=yX(e,["ellipsis","rel"]);if(A4.NODE_ENV!=="production"){const f=Ba("Typography.Link");A4.NODE_ENV!=="production"&&f(typeof a!="object","usage","`ellipsis` only supports boolean value.")}const c=Object.assign(Object.assign({},l),{rel:r===void 0&&l.target==="_blank"?"noopener noreferrer":r});return delete c.navigate,C.createElement(L1,Object.assign({},c,{ref:t,ellipsis:!!a,component:"a"}))}),SX=C.forwardRef((e,t)=>C.createElement(L1,Object.assign({ref:t},e,{component:"div"})));var M4={},CX=function(e,t){var a={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(a[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,r=Object.getOwnPropertySymbols(e);l<r.length;l++)t.indexOf(r[l])<0&&Object.prototype.propertyIsEnumerable.call(e,r[l])&&(a[r[l]]=e[r[l]]);return a};const xX=(e,t)=>{var{ellipsis:a}=e,r=CX(e,["ellipsis"]);const l=C.useMemo(()=>a&&typeof a=="object"?Md(a,["expandable","rows"]):a,[a]);if(M4.NODE_ENV!=="production"){const c=Ba("Typography.Text");M4.NODE_ENV!=="production"&&c(typeof a!="object"||!a||!("expandable"in a)&&!("rows"in a),"usage","`ellipsis` do not support `expandable` or `rows` props.")}return C.createElement(L1,Object.assign({ref:t},r,{ellipsis:l,component:"span"}))},EX=C.forwardRef(xX);var _4={},wX=function(e,t){var a={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(a[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,r=Object.getOwnPropertySymbols(e);l<r.length;l++)t.indexOf(r[l])<0&&Object.prototype.propertyIsEnumerable.call(e,r[l])&&(a[r[l]]=e[r[l]]);return a};const D4=[1,2,3,4,5],TX=C.forwardRef((e,t)=>{const{level:a=1}=e,r=wX(e,["level"]);if(_4.NODE_ENV!=="production"){const c=Ba("Typography.Title");_4.NODE_ENV!=="production"&&c(D4.includes(a),"usage","Title only accept `1 | 2 | 3 | 4 | 5` as `level` value. And `5` need 4.6.0+ version.")}const l=D4.includes(a)?`h${a}`:"h1";return C.createElement(L1,Object.assign({ref:t},r,{component:l}))}),km=KT;km.Text=EX,km.Link=bX,km.Title=TX,km.Paragraph=SX;function N4(e,t){return function(){return e.apply(t,arguments)}}const{toString:OX}=Object.prototype,{getPrototypeOf:rO}=Object,{iterator:V1,toStringTag:$4}=Symbol,H1=(e=>t=>{const a=OX.call(t);return e[a]||(e[a]=a.slice(8,-1).toLowerCase())})(Object.create(null)),rs=e=>(e=e.toLowerCase(),t=>H1(t)===e),B1=e=>t=>typeof t===e,{isArray:Gm}=Array,f0=B1("undefined");function RX(e){return e!==null&&!f0(e)&&e.constructor!==null&&!f0(e.constructor)&&po(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const z4=rs("ArrayBuffer");function AX(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&z4(e.buffer),t}const MX=B1("string"),po=B1("function"),j4=B1("number"),P1=e=>e!==null&&typeof e=="object",_X=e=>e===!0||e===!1,U1=e=>{if(H1(e)!=="object")return!1;const t=rO(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!($4 in e)&&!(V1 in e)},DX=rs("Date"),NX=rs("File"),$X=rs("Blob"),zX=rs("FileList"),jX=e=>P1(e)&&po(e.pipe),LX=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||po(e.append)&&((t=H1(e))==="formdata"||t==="object"&&po(e.toString)&&e.toString()==="[object FormData]"))},VX=rs("URLSearchParams"),[HX,BX,PX,UX]=["ReadableStream","Request","Response","Headers"].map(rs),IX=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function d0(e,t,{allOwnKeys:a=!1}={}){if(e===null||typeof e>"u")return;let r,l;if(typeof e!="object"&&(e=[e]),Gm(e))for(r=0,l=e.length;r<l;r++)t.call(null,e[r],r,e);else{const c=a?Object.getOwnPropertyNames(e):Object.keys(e),f=c.length;let m;for(r=0;r<f;r++)m=c[r],t.call(null,e[m],m,e)}}function L4(e,t){t=t.toLowerCase();const a=Object.keys(e);let r=a.length,l;for(;r-- >0;)if(l=a[r],t===l.toLowerCase())return l;return null}const zd=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,V4=e=>!f0(e)&&e!==zd;function iO(){const{caseless:e}=V4(this)&&this||{},t={},a=(r,l)=>{const c=e&&L4(t,l)||l;U1(t[c])&&U1(r)?t[c]=iO(t[c],r):U1(r)?t[c]=iO({},r):Gm(r)?t[c]=r.slice():t[c]=r};for(let r=0,l=arguments.length;r<l;r++)arguments[r]&&d0(arguments[r],a);return t}const FX=(e,t,a,{allOwnKeys:r}={})=>(d0(t,(l,c)=>{a&&po(l)?e[c]=N4(l,a):e[c]=l},{allOwnKeys:r}),e),kX=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),GX=(e,t,a,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),a&&Object.assign(e.prototype,a)},qX=(e,t,a,r)=>{let l,c,f;const m={};if(t=t||{},e==null)return t;do{for(l=Object.getOwnPropertyNames(e),c=l.length;c-- >0;)f=l[c],(!r||r(f,e,t))&&!m[f]&&(t[f]=e[f],m[f]=!0);e=a!==!1&&rO(e)}while(e&&(!a||a(e,t))&&e!==Object.prototype);return t},YX=(e,t,a)=>{e=String(e),(a===void 0||a>e.length)&&(a=e.length),a-=t.length;const r=e.indexOf(t,a);return r!==-1&&r===a},XX=e=>{if(!e)return null;if(Gm(e))return e;let t=e.length;if(!j4(t))return null;const a=new Array(t);for(;t-- >0;)a[t]=e[t];return a},WX=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&rO(Uint8Array)),ZX=(e,t)=>{const r=(e&&e[V1]).call(e);let l;for(;(l=r.next())&&!l.done;){const c=l.value;t.call(e,c[0],c[1])}},KX=(e,t)=>{let a;const r=[];for(;(a=e.exec(t))!==null;)r.push(a);return r},QX=rs("HTMLFormElement"),JX=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(a,r,l){return r.toUpperCase()+l}),H4=(({hasOwnProperty:e})=>(t,a)=>e.call(t,a))(Object.prototype),eW=rs("RegExp"),B4=(e,t)=>{const a=Object.getOwnPropertyDescriptors(e),r={};d0(a,(l,c)=>{let f;(f=t(l,c,e))!==!1&&(r[c]=f||l)}),Object.defineProperties(e,r)},tW=e=>{B4(e,(t,a)=>{if(po(e)&&["arguments","caller","callee"].indexOf(a)!==-1)return!1;const r=e[a];if(po(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+a+"'")})}})},nW=(e,t)=>{const a={},r=l=>{l.forEach(c=>{a[c]=!0})};return Gm(e)?r(e):r(String(e).split(t)),a},aW=()=>{},rW=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function iW(e){return!!(e&&po(e.append)&&e[$4]==="FormData"&&e[V1])}const oW=e=>{const t=new Array(10),a=(r,l)=>{if(P1(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[l]=r;const c=Gm(r)?[]:{};return d0(r,(f,m)=>{const g=a(f,l+1);!f0(g)&&(c[m]=g)}),t[l]=void 0,c}}return r};return a(e,0)},lW=rs("AsyncFunction"),sW=e=>e&&(P1(e)||po(e))&&po(e.then)&&po(e.catch),P4=((e,t)=>e?setImmediate:t?((a,r)=>(zd.addEventListener("message",({source:l,data:c})=>{l===zd&&c===a&&r.length&&r.shift()()},!1),l=>{r.push(l),zd.postMessage(a,"*")}))(`axios@${Math.random()}`,[]):a=>setTimeout(a))(typeof setImmediate=="function",po(zd.postMessage)),uW=typeof queueMicrotask<"u"?queueMicrotask.bind(zd):typeof process<"u"&&process.nextTick||P4,He={isArray:Gm,isArrayBuffer:z4,isBuffer:RX,isFormData:LX,isArrayBufferView:AX,isString:MX,isNumber:j4,isBoolean:_X,isObject:P1,isPlainObject:U1,isReadableStream:HX,isRequest:BX,isResponse:PX,isHeaders:UX,isUndefined:f0,isDate:DX,isFile:NX,isBlob:$X,isRegExp:eW,isFunction:po,isStream:jX,isURLSearchParams:VX,isTypedArray:WX,isFileList:zX,forEach:d0,merge:iO,extend:FX,trim:IX,stripBOM:kX,inherits:GX,toFlatObject:qX,kindOf:H1,kindOfTest:rs,endsWith:YX,toArray:XX,forEachEntry:ZX,matchAll:KX,isHTMLForm:QX,hasOwnProperty:H4,hasOwnProp:H4,reduceDescriptors:B4,freezeMethods:tW,toObjectSet:nW,toCamelCase:JX,noop:aW,toFiniteNumber:rW,findKey:L4,global:zd,isContextDefined:V4,isSpecCompliantForm:iW,toJSONObject:oW,isAsyncFn:lW,isThenable:sW,setImmediate:P4,asap:uW,isIterable:e=>e!=null&&po(e[V1])};function xn(e,t,a,r,l){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),a&&(this.config=a),r&&(this.request=r),l&&(this.response=l,this.status=l.status?l.status:null)}He.inherits(xn,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:He.toJSONObject(this.config),code:this.code,status:this.status}}});const U4=xn.prototype,I4={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{I4[e]={value:e}}),Object.defineProperties(xn,I4),Object.defineProperty(U4,"isAxiosError",{value:!0}),xn.from=(e,t,a,r,l,c)=>{const f=Object.create(U4);return He.toFlatObject(e,f,function(g){return g!==Error.prototype},m=>m!=="isAxiosError"),xn.call(f,e.message,t,a,r,l),f.cause=e,f.name=e.name,c&&Object.assign(f,c),f};const cW=null;function oO(e){return He.isPlainObject(e)||He.isArray(e)}function F4(e){return He.endsWith(e,"[]")?e.slice(0,-2):e}function k4(e,t,a){return e?e.concat(t).map(function(l,c){return l=F4(l),!a&&c?"["+l+"]":l}).join(a?".":""):t}function fW(e){return He.isArray(e)&&!e.some(oO)}const dW=He.toFlatObject(He,{},null,function(t){return/^is[A-Z]/.test(t)});function I1(e,t,a){if(!He.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,a=He.toFlatObject(a,{metaTokens:!0,dots:!1,indexes:!1},!1,function(M,A){return!He.isUndefined(A[M])});const r=a.metaTokens,l=a.visitor||y,c=a.dots,f=a.indexes,g=(a.Blob||typeof Blob<"u"&&Blob)&&He.isSpecCompliantForm(t);if(!He.isFunction(l))throw new TypeError("visitor must be a function");function p(O){if(O===null)return"";if(He.isDate(O))return O.toISOString();if(He.isBoolean(O))return O.toString();if(!g&&He.isBlob(O))throw new xn("Blob is not supported. Use a Buffer instead.");return He.isArrayBuffer(O)||He.isTypedArray(O)?g&&typeof Blob=="function"?new Blob([O]):Buffer.from(O):O}function y(O,M,A){let D=O;if(O&&!A&&typeof O=="object"){if(He.endsWith(M,"{}"))M=r?M:M.slice(0,-2),O=JSON.stringify(O);else if(He.isArray(O)&&fW(O)||(He.isFileList(O)||He.endsWith(M,"[]"))&&(D=He.toArray(O)))return M=F4(M),D.forEach(function(z,j){!(He.isUndefined(z)||z===null)&&t.append(f===!0?k4([M],j,c):f===null?M:M+"[]",p(z))}),!1}return oO(O)?!0:(t.append(k4(A,M,c),p(O)),!1)}const S=[],E=Object.assign(dW,{defaultVisitor:y,convertValue:p,isVisitable:oO});function T(O,M){if(!He.isUndefined(O)){if(S.indexOf(O)!==-1)throw Error("Circular reference detected in "+M.join("."));S.push(O),He.forEach(O,function(D,_){(!(He.isUndefined(D)||D===null)&&l.call(t,D,He.isString(_)?_.trim():_,M,E))===!0&&T(D,M?M.concat(_):[_])}),S.pop()}}if(!He.isObject(e))throw new TypeError("data must be an object");return T(e),t}function G4(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function lO(e,t){this._pairs=[],e&&I1(e,this,t)}const q4=lO.prototype;q4.append=function(t,a){this._pairs.push([t,a])},q4.toString=function(t){const a=t?function(r){return t.call(this,r,G4)}:G4;return this._pairs.map(function(l){return a(l[0])+"="+a(l[1])},"").join("&")};function hW(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Y4(e,t,a){if(!t)return e;const r=a&&a.encode||hW;He.isFunction(a)&&(a={serialize:a});const l=a&&a.serialize;let c;if(l?c=l(t,a):c=He.isURLSearchParams(t)?t.toString():new lO(t,a).toString(r),c){const f=e.indexOf("#");f!==-1&&(e=e.slice(0,f)),e+=(e.indexOf("?")===-1?"?":"&")+c}return e}class X4{constructor(){this.handlers=[]}use(t,a,r){return this.handlers.push({fulfilled:t,rejected:a,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){He.forEach(this.handlers,function(r){r!==null&&t(r)})}}const W4={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},mW={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:lO,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},sO=typeof window<"u"&&typeof document<"u",uO=typeof navigator=="object"&&navigator||void 0,pW=sO&&(!uO||["ReactNative","NativeScript","NS"].indexOf(uO.product)<0),gW=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",vW=sO&&window.location.href||"http://localhost",xi={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:sO,hasStandardBrowserEnv:pW,hasStandardBrowserWebWorkerEnv:gW,navigator:uO,origin:vW},Symbol.toStringTag,{value:"Module"})),...mW};function yW(e,t){return I1(e,new xi.classes.URLSearchParams,Object.assign({visitor:function(a,r,l,c){return xi.isNode&&He.isBuffer(a)?(this.append(r,a.toString("base64")),!1):c.defaultVisitor.apply(this,arguments)}},t))}function bW(e){return He.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function SW(e){const t={},a=Object.keys(e);let r;const l=a.length;let c;for(r=0;r<l;r++)c=a[r],t[c]=e[c];return t}function Z4(e){function t(a,r,l,c){let f=a[c++];if(f==="__proto__")return!0;const m=Number.isFinite(+f),g=c>=a.length;return f=!f&&He.isArray(l)?l.length:f,g?(He.hasOwnProp(l,f)?l[f]=[l[f],r]:l[f]=r,!m):((!l[f]||!He.isObject(l[f]))&&(l[f]=[]),t(a,r,l[f],c)&&He.isArray(l[f])&&(l[f]=SW(l[f])),!m)}if(He.isFormData(e)&&He.isFunction(e.entries)){const a={};return He.forEachEntry(e,(r,l)=>{t(bW(r),l,a,0)}),a}return null}function CW(e,t,a){if(He.isString(e))try{return(t||JSON.parse)(e),He.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(a||JSON.stringify)(e)}const h0={transitional:W4,adapter:["xhr","http","fetch"],transformRequest:[function(t,a){const r=a.getContentType()||"",l=r.indexOf("application/json")>-1,c=He.isObject(t);if(c&&He.isHTMLForm(t)&&(t=new FormData(t)),He.isFormData(t))return l?JSON.stringify(Z4(t)):t;if(He.isArrayBuffer(t)||He.isBuffer(t)||He.isStream(t)||He.isFile(t)||He.isBlob(t)||He.isReadableStream(t))return t;if(He.isArrayBufferView(t))return t.buffer;if(He.isURLSearchParams(t))return a.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let m;if(c){if(r.indexOf("application/x-www-form-urlencoded")>-1)return yW(t,this.formSerializer).toString();if((m=He.isFileList(t))||r.indexOf("multipart/form-data")>-1){const g=this.env&&this.env.FormData;return I1(m?{"files[]":t}:t,g&&new g,this.formSerializer)}}return c||l?(a.setContentType("application/json",!1),CW(t)):t}],transformResponse:[function(t){const a=this.transitional||h0.transitional,r=a&&a.forcedJSONParsing,l=this.responseType==="json";if(He.isResponse(t)||He.isReadableStream(t))return t;if(t&&He.isString(t)&&(r&&!this.responseType||l)){const f=!(a&&a.silentJSONParsing)&&l;try{return JSON.parse(t)}catch(m){if(f)throw m.name==="SyntaxError"?xn.from(m,xn.ERR_BAD_RESPONSE,this,null,this.response):m}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:xi.classes.FormData,Blob:xi.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};He.forEach(["delete","get","head","post","put","patch"],e=>{h0.headers[e]={}});const xW=He.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),EW=e=>{const t={};let a,r,l;return e&&e.split(`
|
|
568
|
+
`).forEach(function(f){l=f.indexOf(":"),a=f.substring(0,l).trim().toLowerCase(),r=f.substring(l+1).trim(),!(!a||t[a]&&xW[a])&&(a==="set-cookie"?t[a]?t[a].push(r):t[a]=[r]:t[a]=t[a]?t[a]+", "+r:r)}),t},K4=Symbol("internals");function m0(e){return e&&String(e).trim().toLowerCase()}function F1(e){return e===!1||e==null?e:He.isArray(e)?e.map(F1):String(e)}function wW(e){const t=Object.create(null),a=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=a.exec(e);)t[r[1]]=r[2];return t}const TW=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function cO(e,t,a,r,l){if(He.isFunction(r))return r.call(this,t,a);if(l&&(t=a),!!He.isString(t)){if(He.isString(r))return t.indexOf(r)!==-1;if(He.isRegExp(r))return r.test(t)}}function OW(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,a,r)=>a.toUpperCase()+r)}function RW(e,t){const a=He.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+a,{value:function(l,c,f){return this[r].call(this,t,l,c,f)},configurable:!0})})}let go=class{constructor(t){t&&this.set(t)}set(t,a,r){const l=this;function c(m,g,p){const y=m0(g);if(!y)throw new Error("header name must be a non-empty string");const S=He.findKey(l,y);(!S||l[S]===void 0||p===!0||p===void 0&&l[S]!==!1)&&(l[S||g]=F1(m))}const f=(m,g)=>He.forEach(m,(p,y)=>c(p,y,g));if(He.isPlainObject(t)||t instanceof this.constructor)f(t,a);else if(He.isString(t)&&(t=t.trim())&&!TW(t))f(EW(t),a);else if(He.isObject(t)&&He.isIterable(t)){let m={},g,p;for(const y of t){if(!He.isArray(y))throw TypeError("Object iterator must return a key-value pair");m[p=y[0]]=(g=m[p])?He.isArray(g)?[...g,y[1]]:[g,y[1]]:y[1]}f(m,a)}else t!=null&&c(a,t,r);return this}get(t,a){if(t=m0(t),t){const r=He.findKey(this,t);if(r){const l=this[r];if(!a)return l;if(a===!0)return wW(l);if(He.isFunction(a))return a.call(this,l,r);if(He.isRegExp(a))return a.exec(l);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,a){if(t=m0(t),t){const r=He.findKey(this,t);return!!(r&&this[r]!==void 0&&(!a||cO(this,this[r],r,a)))}return!1}delete(t,a){const r=this;let l=!1;function c(f){if(f=m0(f),f){const m=He.findKey(r,f);m&&(!a||cO(r,r[m],m,a))&&(delete r[m],l=!0)}}return He.isArray(t)?t.forEach(c):c(t),l}clear(t){const a=Object.keys(this);let r=a.length,l=!1;for(;r--;){const c=a[r];(!t||cO(this,this[c],c,t,!0))&&(delete this[c],l=!0)}return l}normalize(t){const a=this,r={};return He.forEach(this,(l,c)=>{const f=He.findKey(r,c);if(f){a[f]=F1(l),delete a[c];return}const m=t?OW(c):String(c).trim();m!==c&&delete a[c],a[m]=F1(l),r[m]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const a=Object.create(null);return He.forEach(this,(r,l)=>{r!=null&&r!==!1&&(a[l]=t&&He.isArray(r)?r.join(", "):r)}),a}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,a])=>t+": "+a).join(`
|
|
569
|
+
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...a){const r=new this(t);return a.forEach(l=>r.set(l)),r}static accessor(t){const r=(this[K4]=this[K4]={accessors:{}}).accessors,l=this.prototype;function c(f){const m=m0(f);r[m]||(RW(l,f),r[m]=!0)}return He.isArray(t)?t.forEach(c):c(t),this}};go.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),He.reduceDescriptors(go.prototype,({value:e},t)=>{let a=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[a]=r}}}),He.freezeMethods(go);function fO(e,t){const a=this||h0,r=t||a,l=go.from(r.headers);let c=r.data;return He.forEach(e,function(m){c=m.call(a,c,l.normalize(),t?t.status:void 0)}),l.normalize(),c}function Q4(e){return!!(e&&e.__CANCEL__)}function qm(e,t,a){xn.call(this,e??"canceled",xn.ERR_CANCELED,t,a),this.name="CanceledError"}He.inherits(qm,xn,{__CANCEL__:!0});function J4(e,t,a){const r=a.config.validateStatus;!a.status||!r||r(a.status)?e(a):t(new xn("Request failed with status code "+a.status,[xn.ERR_BAD_REQUEST,xn.ERR_BAD_RESPONSE][Math.floor(a.status/100)-4],a.config,a.request,a))}function AW(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function MW(e,t){e=e||10;const a=new Array(e),r=new Array(e);let l=0,c=0,f;return t=t!==void 0?t:1e3,function(g){const p=Date.now(),y=r[c];f||(f=p),a[l]=g,r[l]=p;let S=c,E=0;for(;S!==l;)E+=a[S++],S=S%e;if(l=(l+1)%e,l===c&&(c=(c+1)%e),p-f<t)return;const T=y&&p-y;return T?Math.round(E*1e3/T):void 0}}function _W(e,t){let a=0,r=1e3/t,l,c;const f=(p,y=Date.now())=>{a=y,l=null,c&&(clearTimeout(c),c=null),e.apply(null,p)};return[(...p)=>{const y=Date.now(),S=y-a;S>=r?f(p,y):(l=p,c||(c=setTimeout(()=>{c=null,f(l)},r-S)))},()=>l&&f(l)]}const k1=(e,t,a=3)=>{let r=0;const l=MW(50,250);return _W(c=>{const f=c.loaded,m=c.lengthComputable?c.total:void 0,g=f-r,p=l(g),y=f<=m;r=f;const S={loaded:f,total:m,progress:m?f/m:void 0,bytes:g,rate:p||void 0,estimated:p&&m&&y?(m-f)/p:void 0,event:c,lengthComputable:m!=null,[t?"download":"upload"]:!0};e(S)},a)},e6=(e,t)=>{const a=e!=null;return[r=>t[0]({lengthComputable:a,total:e,loaded:r}),t[1]]},t6=e=>(...t)=>He.asap(()=>e(...t)),DW=xi.hasStandardBrowserEnv?((e,t)=>a=>(a=new URL(a,xi.origin),e.protocol===a.protocol&&e.host===a.host&&(t||e.port===a.port)))(new URL(xi.origin),xi.navigator&&/(msie|trident)/i.test(xi.navigator.userAgent)):()=>!0,NW=xi.hasStandardBrowserEnv?{write(e,t,a,r,l,c){const f=[e+"="+encodeURIComponent(t)];He.isNumber(a)&&f.push("expires="+new Date(a).toGMTString()),He.isString(r)&&f.push("path="+r),He.isString(l)&&f.push("domain="+l),c===!0&&f.push("secure"),document.cookie=f.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function $W(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function zW(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function n6(e,t,a){let r=!$W(t);return e&&(r||a==!1)?zW(e,t):t}const a6=e=>e instanceof go?{...e}:e;function jd(e,t){t=t||{};const a={};function r(p,y,S,E){return He.isPlainObject(p)&&He.isPlainObject(y)?He.merge.call({caseless:E},p,y):He.isPlainObject(y)?He.merge({},y):He.isArray(y)?y.slice():y}function l(p,y,S,E){if(He.isUndefined(y)){if(!He.isUndefined(p))return r(void 0,p,S,E)}else return r(p,y,S,E)}function c(p,y){if(!He.isUndefined(y))return r(void 0,y)}function f(p,y){if(He.isUndefined(y)){if(!He.isUndefined(p))return r(void 0,p)}else return r(void 0,y)}function m(p,y,S){if(S in t)return r(p,y);if(S in e)return r(void 0,p)}const g={url:c,method:c,data:c,baseURL:f,transformRequest:f,transformResponse:f,paramsSerializer:f,timeout:f,timeoutMessage:f,withCredentials:f,withXSRFToken:f,adapter:f,responseType:f,xsrfCookieName:f,xsrfHeaderName:f,onUploadProgress:f,onDownloadProgress:f,decompress:f,maxContentLength:f,maxBodyLength:f,beforeRedirect:f,transport:f,httpAgent:f,httpsAgent:f,cancelToken:f,socketPath:f,responseEncoding:f,validateStatus:m,headers:(p,y,S)=>l(a6(p),a6(y),S,!0)};return He.forEach(Object.keys(Object.assign({},e,t)),function(y){const S=g[y]||l,E=S(e[y],t[y],y);He.isUndefined(E)&&S!==m||(a[y]=E)}),a}const r6=e=>{const t=jd({},e);let{data:a,withXSRFToken:r,xsrfHeaderName:l,xsrfCookieName:c,headers:f,auth:m}=t;t.headers=f=go.from(f),t.url=Y4(n6(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),m&&f.set("Authorization","Basic "+btoa((m.username||"")+":"+(m.password?unescape(encodeURIComponent(m.password)):"")));let g;if(He.isFormData(a)){if(xi.hasStandardBrowserEnv||xi.hasStandardBrowserWebWorkerEnv)f.setContentType(void 0);else if((g=f.getContentType())!==!1){const[p,...y]=g?g.split(";").map(S=>S.trim()).filter(Boolean):[];f.setContentType([p||"multipart/form-data",...y].join("; "))}}if(xi.hasStandardBrowserEnv&&(r&&He.isFunction(r)&&(r=r(t)),r||r!==!1&&DW(t.url))){const p=l&&c&&NW.read(c);p&&f.set(l,p)}return t},jW=typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(a,r){const l=r6(e);let c=l.data;const f=go.from(l.headers).normalize();let{responseType:m,onUploadProgress:g,onDownloadProgress:p}=l,y,S,E,T,O;function M(){T&&T(),O&&O(),l.cancelToken&&l.cancelToken.unsubscribe(y),l.signal&&l.signal.removeEventListener("abort",y)}let A=new XMLHttpRequest;A.open(l.method.toUpperCase(),l.url,!0),A.timeout=l.timeout;function D(){if(!A)return;const z=go.from("getAllResponseHeaders"in A&&A.getAllResponseHeaders()),$={data:!m||m==="text"||m==="json"?A.responseText:A.response,status:A.status,statusText:A.statusText,headers:z,config:e,request:A};J4(function(H){a(H),M()},function(H){r(H),M()},$),A=null}"onloadend"in A?A.onloadend=D:A.onreadystatechange=function(){!A||A.readyState!==4||A.status===0&&!(A.responseURL&&A.responseURL.indexOf("file:")===0)||setTimeout(D)},A.onabort=function(){A&&(r(new xn("Request aborted",xn.ECONNABORTED,e,A)),A=null)},A.onerror=function(){r(new xn("Network Error",xn.ERR_NETWORK,e,A)),A=null},A.ontimeout=function(){let j=l.timeout?"timeout of "+l.timeout+"ms exceeded":"timeout exceeded";const $=l.transitional||W4;l.timeoutErrorMessage&&(j=l.timeoutErrorMessage),r(new xn(j,$.clarifyTimeoutError?xn.ETIMEDOUT:xn.ECONNABORTED,e,A)),A=null},c===void 0&&f.setContentType(null),"setRequestHeader"in A&&He.forEach(f.toJSON(),function(j,$){A.setRequestHeader($,j)}),He.isUndefined(l.withCredentials)||(A.withCredentials=!!l.withCredentials),m&&m!=="json"&&(A.responseType=l.responseType),p&&([E,O]=k1(p,!0),A.addEventListener("progress",E)),g&&A.upload&&([S,T]=k1(g),A.upload.addEventListener("progress",S),A.upload.addEventListener("loadend",T)),(l.cancelToken||l.signal)&&(y=z=>{A&&(r(!z||z.type?new qm(null,e,A):z),A.abort(),A=null)},l.cancelToken&&l.cancelToken.subscribe(y),l.signal&&(l.signal.aborted?y():l.signal.addEventListener("abort",y)));const _=AW(l.url);if(_&&xi.protocols.indexOf(_)===-1){r(new xn("Unsupported protocol "+_+":",xn.ERR_BAD_REQUEST,e));return}A.send(c||null)})},LW=(e,t)=>{const{length:a}=e=e?e.filter(Boolean):[];if(t||a){let r=new AbortController,l;const c=function(p){if(!l){l=!0,m();const y=p instanceof Error?p:this.reason;r.abort(y instanceof xn?y:new qm(y instanceof Error?y.message:y))}};let f=t&&setTimeout(()=>{f=null,c(new xn(`timeout ${t} of ms exceeded`,xn.ETIMEDOUT))},t);const m=()=>{e&&(f&&clearTimeout(f),f=null,e.forEach(p=>{p.unsubscribe?p.unsubscribe(c):p.removeEventListener("abort",c)}),e=null)};e.forEach(p=>p.addEventListener("abort",c));const{signal:g}=r;return g.unsubscribe=()=>He.asap(m),g}},VW=function*(e,t){let a=e.byteLength;if(a<t){yield e;return}let r=0,l;for(;r<a;)l=r+t,yield e.slice(r,l),r=l},HW=async function*(e,t){for await(const a of BW(e))yield*VW(a,t)},BW=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:a,value:r}=await t.read();if(a)break;yield r}}finally{await t.cancel()}},i6=(e,t,a,r)=>{const l=HW(e,t);let c=0,f,m=g=>{f||(f=!0,r&&r(g))};return new ReadableStream({async pull(g){try{const{done:p,value:y}=await l.next();if(p){m(),g.close();return}let S=y.byteLength;if(a){let E=c+=S;a(E)}g.enqueue(new Uint8Array(y))}catch(p){throw m(p),p}},cancel(g){return m(g),l.return()}},{highWaterMark:2})},G1=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",o6=G1&&typeof ReadableStream=="function",PW=G1&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),l6=(e,...t)=>{try{return!!e(...t)}catch{return!1}},UW=o6&&l6(()=>{let e=!1;const t=new Request(xi.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),s6=64*1024,dO=o6&&l6(()=>He.isReadableStream(new Response("").body)),q1={stream:dO&&(e=>e.body)};G1&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!q1[t]&&(q1[t]=He.isFunction(e[t])?a=>a[t]():(a,r)=>{throw new xn(`Response type '${t}' is not supported`,xn.ERR_NOT_SUPPORT,r)})})})(new Response);const IW=async e=>{if(e==null)return 0;if(He.isBlob(e))return e.size;if(He.isSpecCompliantForm(e))return(await new Request(xi.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(He.isArrayBufferView(e)||He.isArrayBuffer(e))return e.byteLength;if(He.isURLSearchParams(e)&&(e=e+""),He.isString(e))return(await PW(e)).byteLength},FW=async(e,t)=>{const a=He.toFiniteNumber(e.getContentLength());return a??IW(t)},hO={http:cW,xhr:jW,fetch:G1&&(async e=>{let{url:t,method:a,data:r,signal:l,cancelToken:c,timeout:f,onDownloadProgress:m,onUploadProgress:g,responseType:p,headers:y,withCredentials:S="same-origin",fetchOptions:E}=r6(e);p=p?(p+"").toLowerCase():"text";let T=LW([l,c&&c.toAbortSignal()],f),O;const M=T&&T.unsubscribe&&(()=>{T.unsubscribe()});let A;try{if(g&&UW&&a!=="get"&&a!=="head"&&(A=await FW(y,r))!==0){let $=new Request(t,{method:"POST",body:r,duplex:"half"}),V;if(He.isFormData(r)&&(V=$.headers.get("content-type"))&&y.setContentType(V),$.body){const[H,P]=e6(A,k1(t6(g)));r=i6($.body,s6,H,P)}}He.isString(S)||(S=S?"include":"omit");const D="credentials"in Request.prototype;O=new Request(t,{...E,signal:T,method:a.toUpperCase(),headers:y.normalize().toJSON(),body:r,duplex:"half",credentials:D?S:void 0});let _=await fetch(O,E);const z=dO&&(p==="stream"||p==="response");if(dO&&(m||z&&M)){const $={};["status","statusText","headers"].forEach(q=>{$[q]=_[q]});const V=He.toFiniteNumber(_.headers.get("content-length")),[H,P]=m&&e6(V,k1(t6(m),!0))||[];_=new Response(i6(_.body,s6,H,()=>{P&&P(),M&&M()}),$)}p=p||"text";let j=await q1[He.findKey(q1,p)||"text"](_,e);return!z&&M&&M(),await new Promise(($,V)=>{J4($,V,{data:j,headers:go.from(_.headers),status:_.status,statusText:_.statusText,config:e,request:O})})}catch(D){throw M&&M(),D&&D.name==="TypeError"&&/Load failed|fetch/i.test(D.message)?Object.assign(new xn("Network Error",xn.ERR_NETWORK,e,O),{cause:D.cause||D}):xn.from(D,D&&D.code,e,O)}})};He.forEach(hO,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const u6=e=>`- ${e}`,kW=e=>He.isFunction(e)||e===null||e===!1,c6={getAdapter:e=>{e=He.isArray(e)?e:[e];const{length:t}=e;let a,r;const l={};for(let c=0;c<t;c++){a=e[c];let f;if(r=a,!kW(a)&&(r=hO[(f=String(a)).toLowerCase()],r===void 0))throw new xn(`Unknown adapter '${f}'`);if(r)break;l[f||"#"+c]=r}if(!r){const c=Object.entries(l).map(([m,g])=>`adapter ${m} `+(g===!1?"is not supported by the environment":"is not available in the build"));let f=t?c.length>1?`since :
|
|
570
|
+
`+c.map(u6).join(`
|
|
571
|
+
`):" "+u6(c[0]):"as no adapter specified";throw new xn("There is no suitable adapter to dispatch the request "+f,"ERR_NOT_SUPPORT")}return r},adapters:hO};function mO(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new qm(null,e)}function f6(e){return mO(e),e.headers=go.from(e.headers),e.data=fO.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),c6.getAdapter(e.adapter||h0.adapter)(e).then(function(r){return mO(e),r.data=fO.call(e,e.transformResponse,r),r.headers=go.from(r.headers),r},function(r){return Q4(r)||(mO(e),r&&r.response&&(r.response.data=fO.call(e,e.transformResponse,r.response),r.response.headers=go.from(r.response.headers))),Promise.reject(r)})}const d6="1.10.0",Y1={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Y1[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const h6={};Y1.transitional=function(t,a,r){function l(c,f){return"[Axios v"+d6+"] Transitional option '"+c+"'"+f+(r?". "+r:"")}return(c,f,m)=>{if(t===!1)throw new xn(l(f," has been removed"+(a?" in "+a:"")),xn.ERR_DEPRECATED);return a&&!h6[f]&&(h6[f]=!0,console.warn(l(f," has been deprecated since v"+a+" and will be removed in the near future"))),t?t(c,f,m):!0}},Y1.spelling=function(t){return(a,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function GW(e,t,a){if(typeof e!="object")throw new xn("options must be an object",xn.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let l=r.length;for(;l-- >0;){const c=r[l],f=t[c];if(f){const m=e[c],g=m===void 0||f(m,c,e);if(g!==!0)throw new xn("option "+c+" must be "+g,xn.ERR_BAD_OPTION_VALUE);continue}if(a!==!0)throw new xn("Unknown option "+c,xn.ERR_BAD_OPTION)}}const X1={assertOptions:GW,validators:Y1},Zs=X1.validators;let Ld=class{constructor(t){this.defaults=t||{},this.interceptors={request:new X4,response:new X4}}async request(t,a){try{return await this._request(t,a)}catch(r){if(r instanceof Error){let l={};Error.captureStackTrace?Error.captureStackTrace(l):l=new Error;const c=l.stack?l.stack.replace(/^.+\n/,""):"";try{r.stack?c&&!String(r.stack).endsWith(c.replace(/^.+\n.+\n/,""))&&(r.stack+=`
|
|
572
|
+
`+c):r.stack=c}catch{}}throw r}}_request(t,a){typeof t=="string"?(a=a||{},a.url=t):a=t||{},a=jd(this.defaults,a);const{transitional:r,paramsSerializer:l,headers:c}=a;r!==void 0&&X1.assertOptions(r,{silentJSONParsing:Zs.transitional(Zs.boolean),forcedJSONParsing:Zs.transitional(Zs.boolean),clarifyTimeoutError:Zs.transitional(Zs.boolean)},!1),l!=null&&(He.isFunction(l)?a.paramsSerializer={serialize:l}:X1.assertOptions(l,{encode:Zs.function,serialize:Zs.function},!0)),a.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?a.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:a.allowAbsoluteUrls=!0),X1.assertOptions(a,{baseUrl:Zs.spelling("baseURL"),withXsrfToken:Zs.spelling("withXSRFToken")},!0),a.method=(a.method||this.defaults.method||"get").toLowerCase();let f=c&&He.merge(c.common,c[a.method]);c&&He.forEach(["delete","get","head","post","put","patch","common"],O=>{delete c[O]}),a.headers=go.concat(f,c);const m=[];let g=!0;this.interceptors.request.forEach(function(M){typeof M.runWhen=="function"&&M.runWhen(a)===!1||(g=g&&M.synchronous,m.unshift(M.fulfilled,M.rejected))});const p=[];this.interceptors.response.forEach(function(M){p.push(M.fulfilled,M.rejected)});let y,S=0,E;if(!g){const O=[f6.bind(this),void 0];for(O.unshift.apply(O,m),O.push.apply(O,p),E=O.length,y=Promise.resolve(a);S<E;)y=y.then(O[S++],O[S++]);return y}E=m.length;let T=a;for(S=0;S<E;){const O=m[S++],M=m[S++];try{T=O(T)}catch(A){M.call(this,A);break}}try{y=f6.call(this,T)}catch(O){return Promise.reject(O)}for(S=0,E=p.length;S<E;)y=y.then(p[S++],p[S++]);return y}getUri(t){t=jd(this.defaults,t);const a=n6(t.baseURL,t.url,t.allowAbsoluteUrls);return Y4(a,t.params,t.paramsSerializer)}};He.forEach(["delete","get","head","options"],function(t){Ld.prototype[t]=function(a,r){return this.request(jd(r||{},{method:t,url:a,data:(r||{}).data}))}}),He.forEach(["post","put","patch"],function(t){function a(r){return function(c,f,m){return this.request(jd(m||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:c,data:f}))}}Ld.prototype[t]=a(),Ld.prototype[t+"Form"]=a(!0)});let qW=class o8{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let a;this.promise=new Promise(function(c){a=c});const r=this;this.promise.then(l=>{if(!r._listeners)return;let c=r._listeners.length;for(;c-- >0;)r._listeners[c](l);r._listeners=null}),this.promise.then=l=>{let c;const f=new Promise(m=>{r.subscribe(m),c=m}).then(l);return f.cancel=function(){r.unsubscribe(c)},f},t(function(c,f,m){r.reason||(r.reason=new qm(c,f,m),a(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const a=this._listeners.indexOf(t);a!==-1&&this._listeners.splice(a,1)}toAbortSignal(){const t=new AbortController,a=r=>{t.abort(r)};return this.subscribe(a),t.signal.unsubscribe=()=>this.unsubscribe(a),t.signal}static source(){let t;return{token:new o8(function(l){t=l}),cancel:t}}};function YW(e){return function(a){return e.apply(null,a)}}function XW(e){return He.isObject(e)&&e.isAxiosError===!0}const pO={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(pO).forEach(([e,t])=>{pO[t]=e});function m6(e){const t=new Ld(e),a=N4(Ld.prototype.request,t);return He.extend(a,Ld.prototype,t,{allOwnKeys:!0}),He.extend(a,t,null,{allOwnKeys:!0}),a.create=function(l){return m6(jd(e,l))},a}const $a=m6(h0);$a.Axios=Ld,$a.CanceledError=qm,$a.CancelToken=qW,$a.isCancel=Q4,$a.VERSION=d6,$a.toFormData=I1,$a.AxiosError=xn,$a.Cancel=$a.CanceledError,$a.all=function(t){return Promise.all(t)},$a.spread=YW,$a.isAxiosError=XW,$a.mergeConfig=jd,$a.AxiosHeaders=go,$a.formToJSON=e=>Z4(He.isHTMLForm(e)?new FormData(e):e),$a.getAdapter=c6.getAdapter,$a.HttpStatusCode=pO,$a.default=$a;const{Axios:Iie,AxiosError:Fie,CanceledError:kie,isCancel:Gie,CancelToken:qie,VERSION:Yie,all:Xie,Cancel:Wie,isAxiosError:Zie,spread:Kie,toFormData:Qie,AxiosHeaders:Jie,HttpStatusCode:eoe,formToJSON:toe,getAdapter:noe,mergeConfig:aoe}=$a;/*! js-cookie v3.0.5 | MIT */function W1(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)e[r]=a[r]}return e}var WW={read:function(e){return e[0]==='"'&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function gO(e,t){function a(l,c,f){if(!(typeof document>"u")){f=W1({},t,f),typeof f.expires=="number"&&(f.expires=new Date(Date.now()+f.expires*864e5)),f.expires&&(f.expires=f.expires.toUTCString()),l=encodeURIComponent(l).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var m="";for(var g in f)f[g]&&(m+="; "+g,f[g]!==!0&&(m+="="+f[g].split(";")[0]));return document.cookie=l+"="+e.write(c,l)+m}}function r(l){if(!(typeof document>"u"||arguments.length&&!l)){for(var c=document.cookie?document.cookie.split("; "):[],f={},m=0;m<c.length;m++){var g=c[m].split("="),p=g.slice(1).join("=");try{var y=decodeURIComponent(g[0]);if(f[y]=e.read(p,y),l===y)break}catch{}}return l?f[l]:f}}return Object.create({set:a,get:r,remove:function(l,c){a(l,"",W1({},c,{expires:-1}))},withAttributes:function(l){return gO(this.converter,W1({},this.attributes,l))},withConverter:function(l){return gO(W1({},this.converter,l),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var ZW=gO(WW,{path:"/"});const nf=e=>ZW.get(e),Ei={apiUrl:"https://jawebcrm.onrender.com/api/",websocketUrl:"wss://jawebcrm.onrender.com/ws"},sn=e=>typeof e=="string",p0=()=>{let e,t;const a=new Promise((r,l)=>{e=r,t=l});return a.resolve=e,a.reject=t,a},p6=e=>e==null?"":""+e,KW=(e,t,a)=>{e.forEach(r=>{t[r]&&(a[r]=t[r])})},QW=/###/g,g6=e=>e&&e.indexOf("###")>-1?e.replace(QW,"."):e,v6=e=>!e||sn(e),g0=(e,t,a)=>{const r=sn(t)?t.split("."):t;let l=0;for(;l<r.length-1;){if(v6(e))return{};const c=g6(r[l]);!e[c]&&a&&(e[c]=new a),Object.prototype.hasOwnProperty.call(e,c)?e=e[c]:e={},++l}return v6(e)?{}:{obj:e,k:g6(r[l])}},y6=(e,t,a)=>{const{obj:r,k:l}=g0(e,t,Object);if(r!==void 0||t.length===1){r[l]=a;return}let c=t[t.length-1],f=t.slice(0,t.length-1),m=g0(e,f,Object);for(;m.obj===void 0&&f.length;)c=`${f[f.length-1]}.${c}`,f=f.slice(0,f.length-1),m=g0(e,f,Object),m?.obj&&typeof m.obj[`${m.k}.${c}`]<"u"&&(m.obj=void 0);m.obj[`${m.k}.${c}`]=a},JW=(e,t,a,r)=>{const{obj:l,k:c}=g0(e,t,Object);l[c]=l[c]||[],l[c].push(a)},Z1=(e,t)=>{const{obj:a,k:r}=g0(e,t);if(a&&Object.prototype.hasOwnProperty.call(a,r))return a[r]},eZ=(e,t,a)=>{const r=Z1(e,a);return r!==void 0?r:Z1(t,a)},b6=(e,t,a)=>{for(const r in t)r!=="__proto__"&&r!=="constructor"&&(r in e?sn(e[r])||e[r]instanceof String||sn(t[r])||t[r]instanceof String?a&&(e[r]=t[r]):b6(e[r],t[r],a):e[r]=t[r]);return e},Ym=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var tZ={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};const nZ=e=>sn(e)?e.replace(/[&<>"'\/]/g,t=>tZ[t]):e;class aZ{constructor(t){this.capacity=t,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(t){const a=this.regExpMap.get(t);if(a!==void 0)return a;const r=new RegExp(t);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(t,r),this.regExpQueue.push(t),r}}const rZ=[" ",",","?","!",";"],iZ=new aZ(20),oZ=(e,t,a)=>{t=t||"",a=a||"";const r=rZ.filter(f=>t.indexOf(f)<0&&a.indexOf(f)<0);if(r.length===0)return!0;const l=iZ.getRegExp(`(${r.map(f=>f==="?"?"\\?":f).join("|")})`);let c=!l.test(e);if(!c){const f=e.indexOf(a);f>0&&!l.test(e.substring(0,f))&&(c=!0)}return c},vO=(e,t,a=".")=>{if(!e)return;if(e[t])return Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0;const r=t.split(a);let l=e;for(let c=0;c<r.length;){if(!l||typeof l!="object")return;let f,m="";for(let g=c;g<r.length;++g)if(g!==c&&(m+=a),m+=r[g],f=l[m],f!==void 0){if(["string","number","boolean"].indexOf(typeof f)>-1&&g<r.length-1)continue;c+=g-c+1;break}l=f}return l},v0=e=>e?.replace("_","-"),lZ={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console?.[e]?.apply?.(console,t)}};class K1{constructor(t,a={}){this.init(t,a)}init(t,a={}){this.prefix=a.prefix||"i18next:",this.logger=t||lZ,this.options=a,this.debug=a.debug}log(...t){return this.forward(t,"log","",!0)}warn(...t){return this.forward(t,"warn","",!0)}error(...t){return this.forward(t,"error","")}deprecate(...t){return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}forward(t,a,r,l){return l&&!this.debug?null:(sn(t[0])&&(t[0]=`${r}${this.prefix} ${t[0]}`),this.logger[a](t))}create(t){return new K1(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new K1(this.logger,t)}}var Ks=new K1;class Q1{constructor(){this.observers={}}on(t,a){return t.split(" ").forEach(r=>{this.observers[r]||(this.observers[r]=new Map);const l=this.observers[r].get(a)||0;this.observers[r].set(a,l+1)}),this}off(t,a){if(this.observers[t]){if(!a){delete this.observers[t];return}this.observers[t].delete(a)}}emit(t,...a){this.observers[t]&&Array.from(this.observers[t].entries()).forEach(([l,c])=>{for(let f=0;f<c;f++)l(...a)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(([l,c])=>{for(let f=0;f<c;f++)l.apply(l,[t,...a])})}}class S6 extends Q1{constructor(t,a={ns:["translation"],defaultNS:"translation"}){super(),this.data=t||{},this.options=a,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}removeNamespaces(t){const a=this.options.ns.indexOf(t);a>-1&&this.options.ns.splice(a,1)}getResource(t,a,r,l={}){const c=l.keySeparator!==void 0?l.keySeparator:this.options.keySeparator,f=l.ignoreJSONStructure!==void 0?l.ignoreJSONStructure:this.options.ignoreJSONStructure;let m;t.indexOf(".")>-1?m=t.split("."):(m=[t,a],r&&(Array.isArray(r)?m.push(...r):sn(r)&&c?m.push(...r.split(c)):m.push(r)));const g=Z1(this.data,m);return!g&&!a&&!r&&t.indexOf(".")>-1&&(t=m[0],a=m[1],r=m.slice(2).join(".")),g||!f||!sn(r)?g:vO(this.data?.[t]?.[a],r,c)}addResource(t,a,r,l,c={silent:!1}){const f=c.keySeparator!==void 0?c.keySeparator:this.options.keySeparator;let m=[t,a];r&&(m=m.concat(f?r.split(f):r)),t.indexOf(".")>-1&&(m=t.split("."),l=a,a=m[1]),this.addNamespaces(a),y6(this.data,m,l),c.silent||this.emit("added",t,a,r,l)}addResources(t,a,r,l={silent:!1}){for(const c in r)(sn(r[c])||Array.isArray(r[c]))&&this.addResource(t,a,c,r[c],{silent:!0});l.silent||this.emit("added",t,a,r)}addResourceBundle(t,a,r,l,c,f={silent:!1,skipCopy:!1}){let m=[t,a];t.indexOf(".")>-1&&(m=t.split("."),l=r,r=a,a=m[1]),this.addNamespaces(a);let g=Z1(this.data,m)||{};f.skipCopy||(r=JSON.parse(JSON.stringify(r))),l?b6(g,r,c):g={...g,...r},y6(this.data,m,g),f.silent||this.emit("added",t,a,r)}removeResourceBundle(t,a){this.hasResourceBundle(t,a)&&delete this.data[t][a],this.removeNamespaces(a),this.emit("removed",t,a)}hasResourceBundle(t,a){return this.getResource(t,a)!==void 0}getResourceBundle(t,a){return a||(a=this.options.defaultNS),this.getResource(t,a)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){const a=this.getDataByLanguage(t);return!!(a&&Object.keys(a)||[]).find(l=>a[l]&&Object.keys(a[l]).length>0)}toJSON(){return this.data}}var C6={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,a,r,l){return e.forEach(c=>{t=this.processors[c]?.process(t,a,r,l)??t}),t}};const x6={},E6=e=>!sn(e)&&typeof e!="boolean"&&typeof e!="number";class J1 extends Q1{constructor(t,a={}){super(),KW(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=a,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=Ks.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t,a={interpolation:{}}){const r={...a};return t==null?!1:this.resolve(t,r)?.res!==void 0}extractFromKey(t,a){let r=a.nsSeparator!==void 0?a.nsSeparator:this.options.nsSeparator;r===void 0&&(r=":");const l=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator;let c=a.ns||this.options.defaultNS||[];const f=r&&t.indexOf(r)>-1,m=!this.options.userDefinedKeySeparator&&!a.keySeparator&&!this.options.userDefinedNsSeparator&&!a.nsSeparator&&!oZ(t,r,l);if(f&&!m){const g=t.match(this.interpolator.nestingRegexp);if(g&&g.length>0)return{key:t,namespaces:sn(c)?[c]:c};const p=t.split(r);(r!==l||r===l&&this.options.ns.indexOf(p[0])>-1)&&(c=p.shift()),t=p.join(l)}return{key:t,namespaces:sn(c)?[c]:c}}translate(t,a,r){let l=typeof a=="object"?{...a}:a;if(typeof l!="object"&&this.options.overloadTranslationOptionHandler&&(l=this.options.overloadTranslationOptionHandler(arguments)),typeof options=="object"&&(l={...l}),l||(l={}),t==null)return"";Array.isArray(t)||(t=[String(t)]);const c=l.returnDetails!==void 0?l.returnDetails:this.options.returnDetails,f=l.keySeparator!==void 0?l.keySeparator:this.options.keySeparator,{key:m,namespaces:g}=this.extractFromKey(t[t.length-1],l),p=g[g.length-1];let y=l.nsSeparator!==void 0?l.nsSeparator:this.options.nsSeparator;y===void 0&&(y=":");const S=l.lng||this.language,E=l.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(S?.toLowerCase()==="cimode")return E?c?{res:`${p}${y}${m}`,usedKey:m,exactUsedKey:m,usedLng:S,usedNS:p,usedParams:this.getUsedParamsDetails(l)}:`${p}${y}${m}`:c?{res:m,usedKey:m,exactUsedKey:m,usedLng:S,usedNS:p,usedParams:this.getUsedParamsDetails(l)}:m;const T=this.resolve(t,l);let O=T?.res;const M=T?.usedKey||m,A=T?.exactUsedKey||m,D=["[object Number]","[object Function]","[object RegExp]"],_=l.joinArrays!==void 0?l.joinArrays:this.options.joinArrays,z=!this.i18nFormat||this.i18nFormat.handleAsObject,j=l.count!==void 0&&!sn(l.count),$=J1.hasDefaultValue(l),V=j?this.pluralResolver.getSuffix(S,l.count,l):"",H=l.ordinal&&j?this.pluralResolver.getSuffix(S,l.count,{ordinal:!1}):"",P=j&&!l.ordinal&&l.count===0,q=P&&l[`defaultValue${this.options.pluralSeparator}zero`]||l[`defaultValue${V}`]||l[`defaultValue${H}`]||l.defaultValue;let Y=O;z&&!O&&$&&(Y=q);const te=E6(Y),G=Object.prototype.toString.apply(Y);if(z&&Y&&te&&D.indexOf(G)<0&&!(sn(_)&&Array.isArray(Y))){if(!l.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const K=this.options.returnedObjectHandler?this.options.returnedObjectHandler(M,Y,{...l,ns:g}):`key '${m} (${this.language})' returned an object instead of string.`;return c?(T.res=K,T.usedParams=this.getUsedParamsDetails(l),T):K}if(f){const K=Array.isArray(Y),J=K?[]:{},ie=K?A:M;for(const k in Y)if(Object.prototype.hasOwnProperty.call(Y,k)){const X=`${ie}${f}${k}`;$&&!O?J[k]=this.translate(X,{...l,defaultValue:E6(q)?q[k]:void 0,joinArrays:!1,ns:g}):J[k]=this.translate(X,{...l,joinArrays:!1,ns:g}),J[k]===X&&(J[k]=Y[k])}O=J}}else if(z&&sn(_)&&Array.isArray(O))O=O.join(_),O&&(O=this.extendTranslation(O,t,l,r));else{let K=!1,J=!1;!this.isValidLookup(O)&&$&&(K=!0,O=q),this.isValidLookup(O)||(J=!0,O=m);const k=(l.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&J?void 0:O,X=$&&q!==O&&this.options.updateMissing;if(J||K||X){if(this.logger.log(X?"updateKey":"missingKey",S,p,m,X?q:O),f){const F=this.resolve(m,{...l,keySeparator:!1});F&&F.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let Q=[];const le=this.languageUtils.getFallbackCodes(this.options.fallbackLng,l.lng||this.language);if(this.options.saveMissingTo==="fallback"&&le&&le[0])for(let F=0;F<le.length;F++)Q.push(le[F]);else this.options.saveMissingTo==="all"?Q=this.languageUtils.toResolveHierarchy(l.lng||this.language):Q.push(l.lng||this.language);const U=(F,ne,ae)=>{const oe=$&&ae!==O?ae:k;this.options.missingKeyHandler?this.options.missingKeyHandler(F,p,ne,oe,X,l):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(F,p,ne,oe,X,l),this.emit("missingKey",F,p,ne,O)};this.options.saveMissing&&(this.options.saveMissingPlurals&&j?Q.forEach(F=>{const ne=this.pluralResolver.getSuffixes(F,l);P&&l[`defaultValue${this.options.pluralSeparator}zero`]&&ne.indexOf(`${this.options.pluralSeparator}zero`)<0&&ne.push(`${this.options.pluralSeparator}zero`),ne.forEach(ae=>{U([F],m+ae,l[`defaultValue${ae}`]||q)})}):U(Q,m,q))}O=this.extendTranslation(O,t,l,T,r),J&&O===m&&this.options.appendNamespaceToMissingKey&&(O=`${p}${y}${m}`),(J||K)&&this.options.parseMissingKeyHandler&&(O=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${p}${y}${m}`:m,K?O:void 0,l))}return c?(T.res=O,T.usedParams=this.getUsedParamsDetails(l),T):O}extendTranslation(t,a,r,l,c){if(this.i18nFormat?.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...r},r.lng||this.language||l.usedLng,l.usedNS,l.usedKey,{resolved:l});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init({...r,interpolation:{...this.options.interpolation,...r.interpolation}});const g=sn(t)&&(r?.interpolation?.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let p;if(g){const S=t.match(this.interpolator.nestingRegexp);p=S&&S.length}let y=r.replace&&!sn(r.replace)?r.replace:r;if(this.options.interpolation.defaultVariables&&(y={...this.options.interpolation.defaultVariables,...y}),t=this.interpolator.interpolate(t,y,r.lng||this.language||l.usedLng,r),g){const S=t.match(this.interpolator.nestingRegexp),E=S&&S.length;p<E&&(r.nest=!1)}!r.lng&&l&&l.res&&(r.lng=this.language||l.usedLng),r.nest!==!1&&(t=this.interpolator.nest(t,(...S)=>c?.[0]===S[0]&&!r.context?(this.logger.warn(`It seems you are nesting recursively key: ${S[0]} in key: ${a[0]}`),null):this.translate(...S,a),r)),r.interpolation&&this.interpolator.reset()}const f=r.postProcess||this.options.postProcess,m=sn(f)?[f]:f;return t!=null&&m?.length&&r.applyPostProcessor!==!1&&(t=C6.handle(m,t,a,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...l,usedParams:this.getUsedParamsDetails(r)},...r}:r,this)),t}resolve(t,a={}){let r,l,c,f,m;return sn(t)&&(t=[t]),t.forEach(g=>{if(this.isValidLookup(r))return;const p=this.extractFromKey(g,a),y=p.key;l=y;let S=p.namespaces;this.options.fallbackNS&&(S=S.concat(this.options.fallbackNS));const E=a.count!==void 0&&!sn(a.count),T=E&&!a.ordinal&&a.count===0,O=a.context!==void 0&&(sn(a.context)||typeof a.context=="number")&&a.context!=="",M=a.lngs?a.lngs:this.languageUtils.toResolveHierarchy(a.lng||this.language,a.fallbackLng);S.forEach(A=>{this.isValidLookup(r)||(m=A,!x6[`${M[0]}-${A}`]&&this.utils?.hasLoadedNamespace&&!this.utils?.hasLoadedNamespace(m)&&(x6[`${M[0]}-${A}`]=!0,this.logger.warn(`key "${l}" for languages "${M.join(", ")}" won't get resolved as namespace "${m}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),M.forEach(D=>{if(this.isValidLookup(r))return;f=D;const _=[y];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(_,y,D,A,a);else{let j;E&&(j=this.pluralResolver.getSuffix(D,a.count,a));const $=`${this.options.pluralSeparator}zero`,V=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(E&&(_.push(y+j),a.ordinal&&j.indexOf(V)===0&&_.push(y+j.replace(V,this.options.pluralSeparator)),T&&_.push(y+$)),O){const H=`${y}${this.options.contextSeparator}${a.context}`;_.push(H),E&&(_.push(H+j),a.ordinal&&j.indexOf(V)===0&&_.push(H+j.replace(V,this.options.pluralSeparator)),T&&_.push(H+$))}}let z;for(;z=_.pop();)this.isValidLookup(r)||(c=z,r=this.getResource(D,A,z,a))}))})}),{res:r,usedKey:l,exactUsedKey:c,usedLng:f,usedNS:m}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,a,r,l={}){return this.i18nFormat?.getResource?this.i18nFormat.getResource(t,a,r,l):this.resourceStore.getResource(t,a,r,l)}getUsedParamsDetails(t={}){const a=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],r=t.replace&&!sn(t.replace);let l=r?t.replace:t;if(r&&typeof t.count<"u"&&(l.count=t.count),this.options.interpolation.defaultVariables&&(l={...this.options.interpolation.defaultVariables,...l}),!r){l={...l};for(const c of a)delete l[c]}return l}static hasDefaultValue(t){const a="defaultValue";for(const r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&a===r.substring(0,a.length)&&t[r]!==void 0)return!0;return!1}}class w6{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Ks.create("languageUtils")}getScriptPartFromCode(t){if(t=v0(t),!t||t.indexOf("-")<0)return null;const a=t.split("-");return a.length===2||(a.pop(),a[a.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(a.join("-"))}getLanguagePartFromCode(t){if(t=v0(t),!t||t.indexOf("-")<0)return t;const a=t.split("-");return this.formatLanguageCode(a[0])}formatLanguageCode(t){if(sn(t)&&t.indexOf("-")>-1){let a;try{a=Intl.getCanonicalLocales(t)[0]}catch{}return a&&this.options.lowerCaseLng&&(a=a.toLowerCase()),a||(this.options.lowerCaseLng?t.toLowerCase():t)}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let a;return t.forEach(r=>{if(a)return;const l=this.formatLanguageCode(r);(!this.options.supportedLngs||this.isSupportedCode(l))&&(a=l)}),!a&&this.options.supportedLngs&&t.forEach(r=>{if(a)return;const l=this.getScriptPartFromCode(r);if(this.isSupportedCode(l))return a=l;const c=this.getLanguagePartFromCode(r);if(this.isSupportedCode(c))return a=c;a=this.options.supportedLngs.find(f=>{if(f===c)return f;if(!(f.indexOf("-")<0&&c.indexOf("-")<0)&&(f.indexOf("-")>0&&c.indexOf("-")<0&&f.substring(0,f.indexOf("-"))===c||f.indexOf(c)===0&&c.length>1))return f})}),a||(a=this.getFallbackCodes(this.options.fallbackLng)[0]),a}getFallbackCodes(t,a){if(!t)return[];if(typeof t=="function"&&(t=t(a)),sn(t)&&(t=[t]),Array.isArray(t))return t;if(!a)return t.default||[];let r=t[a];return r||(r=t[this.getScriptPartFromCode(a)]),r||(r=t[this.formatLanguageCode(a)]),r||(r=t[this.getLanguagePartFromCode(a)]),r||(r=t.default),r||[]}toResolveHierarchy(t,a){const r=this.getFallbackCodes((a===!1?[]:a)||this.options.fallbackLng||[],t),l=[],c=f=>{f&&(this.isSupportedCode(f)?l.push(f):this.logger.warn(`rejecting language code not found in supportedLngs: ${f}`))};return sn(t)&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&c(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&c(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&c(this.getLanguagePartFromCode(t))):sn(t)&&c(this.formatLanguageCode(t)),r.forEach(f=>{l.indexOf(f)<0&&c(this.formatLanguageCode(f))}),l}}const T6={zero:0,one:1,two:2,few:3,many:4,other:5},O6={select:e=>e===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class sZ{constructor(t,a={}){this.languageUtils=t,this.options=a,this.logger=Ks.create("pluralResolver"),this.pluralRulesCache={}}addRule(t,a){this.rules[t]=a}clearCache(){this.pluralRulesCache={}}getRule(t,a={}){const r=v0(t==="dev"?"en":t),l=a.ordinal?"ordinal":"cardinal",c=JSON.stringify({cleanedCode:r,type:l});if(c in this.pluralRulesCache)return this.pluralRulesCache[c];let f;try{f=new Intl.PluralRules(r,{type:l})}catch{if(!Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),O6;if(!t.match(/-|_/))return O6;const g=this.languageUtils.getLanguagePartFromCode(t);f=this.getRule(g,a)}return this.pluralRulesCache[c]=f,f}needsPlural(t,a={}){let r=this.getRule(t,a);return r||(r=this.getRule("dev",a)),r?.resolvedOptions().pluralCategories.length>1}getPluralFormsOfKey(t,a,r={}){return this.getSuffixes(t,r).map(l=>`${a}${l}`)}getSuffixes(t,a={}){let r=this.getRule(t,a);return r||(r=this.getRule("dev",a)),r?r.resolvedOptions().pluralCategories.sort((l,c)=>T6[l]-T6[c]).map(l=>`${this.options.prepend}${a.ordinal?`ordinal${this.options.prepend}`:""}${l}`):[]}getSuffix(t,a,r={}){const l=this.getRule(t,r);return l?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${l.select(a)}`:(this.logger.warn(`no plural rule found for: ${t}`),this.getSuffix("dev",a,r))}}const R6=(e,t,a,r=".",l=!0)=>{let c=eZ(e,t,a);return!c&&l&&sn(a)&&(c=vO(e,a,r),c===void 0&&(c=vO(t,a,r))),c},yO=e=>e.replace(/\$/g,"$$$$");class uZ{constructor(t={}){this.logger=Ks.create("interpolator"),this.options=t,this.format=t?.interpolation?.format||(a=>a),this.init(t)}init(t={}){t.interpolation||(t.interpolation={escapeValue:!0});const{escape:a,escapeValue:r,useRawValueToEscape:l,prefix:c,prefixEscaped:f,suffix:m,suffixEscaped:g,formatSeparator:p,unescapeSuffix:y,unescapePrefix:S,nestingPrefix:E,nestingPrefixEscaped:T,nestingSuffix:O,nestingSuffixEscaped:M,nestingOptionsSeparator:A,maxReplaces:D,alwaysFormat:_}=t.interpolation;this.escape=a!==void 0?a:nZ,this.escapeValue=r!==void 0?r:!0,this.useRawValueToEscape=l!==void 0?l:!1,this.prefix=c?Ym(c):f||"{{",this.suffix=m?Ym(m):g||"}}",this.formatSeparator=p||",",this.unescapePrefix=y?"":S||"-",this.unescapeSuffix=this.unescapePrefix?"":y||"",this.nestingPrefix=E?Ym(E):T||Ym("$t("),this.nestingSuffix=O?Ym(O):M||Ym(")"),this.nestingOptionsSeparator=A||",",this.maxReplaces=D||1e3,this.alwaysFormat=_!==void 0?_:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const t=(a,r)=>a?.source===r?(a.lastIndex=0,a):new RegExp(r,"g");this.regexp=t(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=t(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=t(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(t,a,r,l){let c,f,m;const g=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},p=T=>{if(T.indexOf(this.formatSeparator)<0){const D=R6(a,g,T,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(D,void 0,r,{...l,...a,interpolationkey:T}):D}const O=T.split(this.formatSeparator),M=O.shift().trim(),A=O.join(this.formatSeparator).trim();return this.format(R6(a,g,M,this.options.keySeparator,this.options.ignoreJSONStructure),A,r,{...l,...a,interpolationkey:M})};this.resetRegExp();const y=l?.missingInterpolationHandler||this.options.missingInterpolationHandler,S=l?.interpolation?.skipOnVariables!==void 0?l.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:T=>yO(T)},{regex:this.regexp,safeValue:T=>this.escapeValue?yO(this.escape(T)):yO(T)}].forEach(T=>{for(m=0;c=T.regex.exec(t);){const O=c[1].trim();if(f=p(O),f===void 0)if(typeof y=="function"){const A=y(t,c,l);f=sn(A)?A:""}else if(l&&Object.prototype.hasOwnProperty.call(l,O))f="";else if(S){f=c[0];continue}else this.logger.warn(`missed to pass in variable ${O} for interpolating ${t}`),f="";else!sn(f)&&!this.useRawValueToEscape&&(f=p6(f));const M=T.safeValue(f);if(t=t.replace(c[0],M),S?(T.regex.lastIndex+=f.length,T.regex.lastIndex-=c[0].length):T.regex.lastIndex=0,m++,m>=this.maxReplaces)break}}),t}nest(t,a,r={}){let l,c,f;const m=(g,p)=>{const y=this.nestingOptionsSeparator;if(g.indexOf(y)<0)return g;const S=g.split(new RegExp(`${y}[ ]*{`));let E=`{${S[1]}`;g=S[0],E=this.interpolate(E,f);const T=E.match(/'/g),O=E.match(/"/g);((T?.length??0)%2===0&&!O||O.length%2!==0)&&(E=E.replace(/'/g,'"'));try{f=JSON.parse(E),p&&(f={...p,...f})}catch(M){return this.logger.warn(`failed parsing options string in nesting for key ${g}`,M),`${g}${y}${E}`}return f.defaultValue&&f.defaultValue.indexOf(this.prefix)>-1&&delete f.defaultValue,g};for(;l=this.nestingRegexp.exec(t);){let g=[];f={...r},f=f.replace&&!sn(f.replace)?f.replace:f,f.applyPostProcessor=!1,delete f.defaultValue;const p=/{.*}/.test(l[1])?l[1].lastIndexOf("}")+1:l[1].indexOf(this.formatSeparator);if(p!==-1&&(g=l[1].slice(p).split(this.formatSeparator).map(y=>y.trim()).filter(Boolean),l[1]=l[1].slice(0,p)),c=a(m.call(this,l[1].trim(),f),f),c&&l[0]===t&&!sn(c))return c;sn(c)||(c=p6(c)),c||(this.logger.warn(`missed to resolve ${l[1]} for nesting ${t}`),c=""),g.length&&(c=g.reduce((y,S)=>this.format(y,S,r.lng,{...r,interpolationkey:l[1].trim()}),c.trim())),t=t.replace(l[0],c),this.regexp.lastIndex=0}return t}}const cZ=e=>{let t=e.toLowerCase().trim();const a={};if(e.indexOf("(")>-1){const r=e.split("(");t=r[0].toLowerCase().trim();const l=r[1].substring(0,r[1].length-1);t==="currency"&&l.indexOf(":")<0?a.currency||(a.currency=l.trim()):t==="relativetime"&&l.indexOf(":")<0?a.range||(a.range=l.trim()):l.split(";").forEach(f=>{if(f){const[m,...g]=f.split(":"),p=g.join(":").trim().replace(/^'+|'+$/g,""),y=m.trim();a[y]||(a[y]=p),p==="false"&&(a[y]=!1),p==="true"&&(a[y]=!0),isNaN(p)||(a[y]=parseInt(p,10))}})}return{formatName:t,formatOptions:a}},A6=e=>{const t={};return(a,r,l)=>{let c=l;l&&l.interpolationkey&&l.formatParams&&l.formatParams[l.interpolationkey]&&l[l.interpolationkey]&&(c={...c,[l.interpolationkey]:void 0});const f=r+JSON.stringify(c);let m=t[f];return m||(m=e(v0(r),l),t[f]=m),m(a)}},fZ=e=>(t,a,r)=>e(v0(a),r)(t);class dZ{constructor(t={}){this.logger=Ks.create("formatter"),this.options=t,this.init(t)}init(t,a={interpolation:{}}){this.formatSeparator=a.interpolation.formatSeparator||",";const r=a.cacheInBuiltFormats?A6:fZ;this.formats={number:r((l,c)=>{const f=new Intl.NumberFormat(l,{...c});return m=>f.format(m)}),currency:r((l,c)=>{const f=new Intl.NumberFormat(l,{...c,style:"currency"});return m=>f.format(m)}),datetime:r((l,c)=>{const f=new Intl.DateTimeFormat(l,{...c});return m=>f.format(m)}),relativetime:r((l,c)=>{const f=new Intl.RelativeTimeFormat(l,{...c});return m=>f.format(m,c.range||"day")}),list:r((l,c)=>{const f=new Intl.ListFormat(l,{...c});return m=>f.format(m)})}}add(t,a){this.formats[t.toLowerCase().trim()]=a}addCached(t,a){this.formats[t.toLowerCase().trim()]=A6(a)}format(t,a,r,l={}){const c=a.split(this.formatSeparator);if(c.length>1&&c[0].indexOf("(")>1&&c[0].indexOf(")")<0&&c.find(m=>m.indexOf(")")>-1)){const m=c.findIndex(g=>g.indexOf(")")>-1);c[0]=[c[0],...c.splice(1,m)].join(this.formatSeparator)}return c.reduce((m,g)=>{const{formatName:p,formatOptions:y}=cZ(g);if(this.formats[p]){let S=m;try{const E=l?.formatParams?.[l.interpolationkey]||{},T=E.locale||E.lng||l.locale||l.lng||r;S=this.formats[p](m,T,{...y,...l,...E})}catch(E){this.logger.warn(E)}return S}else this.logger.warn(`there was no format function for ${p}`);return m},t)}}const hZ=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)};class mZ extends Q1{constructor(t,a,r,l={}){super(),this.backend=t,this.store=a,this.services=r,this.languageUtils=r.languageUtils,this.options=l,this.logger=Ks.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=l.maxParallelReads||10,this.readingCalls=0,this.maxRetries=l.maxRetries>=0?l.maxRetries:5,this.retryTimeout=l.retryTimeout>=1?l.retryTimeout:350,this.state={},this.queue=[],this.backend?.init?.(r,l.backend,l)}queueLoad(t,a,r,l){const c={},f={},m={},g={};return t.forEach(p=>{let y=!0;a.forEach(S=>{const E=`${p}|${S}`;!r.reload&&this.store.hasResourceBundle(p,S)?this.state[E]=2:this.state[E]<0||(this.state[E]===1?f[E]===void 0&&(f[E]=!0):(this.state[E]=1,y=!1,f[E]===void 0&&(f[E]=!0),c[E]===void 0&&(c[E]=!0),g[S]===void 0&&(g[S]=!0)))}),y||(m[p]=!0)}),(Object.keys(c).length||Object.keys(f).length)&&this.queue.push({pending:f,pendingCount:Object.keys(f).length,loaded:{},errors:[],callback:l}),{toLoad:Object.keys(c),pending:Object.keys(f),toLoadLanguages:Object.keys(m),toLoadNamespaces:Object.keys(g)}}loaded(t,a,r){const l=t.split("|"),c=l[0],f=l[1];a&&this.emit("failedLoading",c,f,a),!a&&r&&this.store.addResourceBundle(c,f,r,void 0,void 0,{skipCopy:!0}),this.state[t]=a?-1:2,a&&r&&(this.state[t]=0);const m={};this.queue.forEach(g=>{JW(g.loaded,[c],f),hZ(g,t),a&&g.errors.push(a),g.pendingCount===0&&!g.done&&(Object.keys(g.loaded).forEach(p=>{m[p]||(m[p]={});const y=g.loaded[p];y.length&&y.forEach(S=>{m[p][S]===void 0&&(m[p][S]=!0)})}),g.done=!0,g.errors.length?g.callback(g.errors):g.callback())}),this.emit("loaded",m),this.queue=this.queue.filter(g=>!g.done)}read(t,a,r,l=0,c=this.retryTimeout,f){if(!t.length)return f(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:a,fcName:r,tried:l,wait:c,callback:f});return}this.readingCalls++;const m=(p,y)=>{if(this.readingCalls--,this.waitingReads.length>0){const S=this.waitingReads.shift();this.read(S.lng,S.ns,S.fcName,S.tried,S.wait,S.callback)}if(p&&y&&l<this.maxRetries){setTimeout(()=>{this.read.call(this,t,a,r,l+1,c*2,f)},c);return}f(p,y)},g=this.backend[r].bind(this.backend);if(g.length===2){try{const p=g(t,a);p&&typeof p.then=="function"?p.then(y=>m(null,y)).catch(m):m(null,p)}catch(p){m(p)}return}return g(t,a,m)}prepareLoading(t,a,r={},l){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),l&&l();sn(t)&&(t=this.languageUtils.toResolveHierarchy(t)),sn(a)&&(a=[a]);const c=this.queueLoad(t,a,r,l);if(!c.toLoad.length)return c.pending.length||l(),null;c.toLoad.forEach(f=>{this.loadOne(f)})}load(t,a,r){this.prepareLoading(t,a,{},r)}reload(t,a,r){this.prepareLoading(t,a,{reload:!0},r)}loadOne(t,a=""){const r=t.split("|"),l=r[0],c=r[1];this.read(l,c,"read",void 0,void 0,(f,m)=>{f&&this.logger.warn(`${a}loading namespace ${c} for language ${l} failed`,f),!f&&m&&this.logger.log(`${a}loaded namespace ${c} for language ${l}`,m),this.loaded(t,f,m)})}saveMissing(t,a,r,l,c,f={},m=()=>{}){if(this.services?.utils?.hasLoadedNamespace&&!this.services?.utils?.hasLoadedNamespace(a)){this.logger.warn(`did not save key "${r}" as the namespace "${a}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(r==null||r==="")){if(this.backend?.create){const g={...f,isUpdate:c},p=this.backend.create.bind(this.backend);if(p.length<6)try{let y;p.length===5?y=p(t,a,r,l,g):y=p(t,a,r,l),y&&typeof y.then=="function"?y.then(S=>m(null,S)).catch(m):m(null,y)}catch(y){m(y)}else p(t,a,r,l,m,g)}!t||!t[0]||this.store.addResource(t[0],a,r,l)}}}const M6=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if(typeof e[1]=="object"&&(t=e[1]),sn(e[1])&&(t.defaultValue=e[1]),sn(e[2])&&(t.tDescription=e[2]),typeof e[2]=="object"||typeof e[3]=="object"){const a=e[3]||e[2];Object.keys(a).forEach(r=>{t[r]=a[r]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),_6=e=>(sn(e.ns)&&(e.ns=[e.ns]),sn(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),sn(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs?.indexOf?.("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),typeof e.initImmediate=="boolean"&&(e.initAsync=e.initImmediate),e),eC=()=>{},pZ=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(a=>{typeof e[a]=="function"&&(e[a]=e[a].bind(e))})};class y0 extends Q1{constructor(t={},a){if(super(),this.options=_6(t),this.services={},this.logger=Ks,this.modules={external:[]},pZ(this),a&&!this.isInitialized&&!t.isClone){if(!this.options.initAsync)return this.init(t,a),this;setTimeout(()=>{this.init(t,a)},0)}}init(t={},a){this.isInitializing=!0,typeof t=="function"&&(a=t,t={}),t.defaultNS==null&&t.ns&&(sn(t.ns)?t.defaultNS=t.ns:t.ns.indexOf("translation")<0&&(t.defaultNS=t.ns[0]));const r=M6();this.options={...r,...this.options,..._6(t)},this.options.interpolation={...r.interpolation,...this.options.interpolation},t.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=t.keySeparator),t.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=t.nsSeparator);const l=p=>p?typeof p=="function"?new p:p:null;if(!this.options.isClone){this.modules.logger?Ks.init(l(this.modules.logger),this.options):Ks.init(null,this.options);let p;this.modules.formatter?p=this.modules.formatter:p=dZ;const y=new w6(this.options);this.store=new S6(this.options.resources,this.options);const S=this.services;S.logger=Ks,S.resourceStore=this.store,S.languageUtils=y,S.pluralResolver=new sZ(y,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),this.options.interpolation.format&&this.options.interpolation.format!==r.interpolation.format&&this.logger.warn("init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting"),p&&(!this.options.interpolation.format||this.options.interpolation.format===r.interpolation.format)&&(S.formatter=l(p),S.formatter.init&&S.formatter.init(S,this.options),this.options.interpolation.format=S.formatter.format.bind(S.formatter)),S.interpolator=new uZ(this.options),S.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},S.backendConnector=new mZ(l(this.modules.backend),S.resourceStore,S,this.options),S.backendConnector.on("*",(T,...O)=>{this.emit(T,...O)}),this.modules.languageDetector&&(S.languageDetector=l(this.modules.languageDetector),S.languageDetector.init&&S.languageDetector.init(S,this.options.detection,this.options)),this.modules.i18nFormat&&(S.i18nFormat=l(this.modules.i18nFormat),S.i18nFormat.init&&S.i18nFormat.init(this)),this.translator=new J1(this.services,this.options),this.translator.on("*",(T,...O)=>{this.emit(T,...O)}),this.modules.external.forEach(T=>{T.init&&T.init(this)})}if(this.format=this.options.interpolation.format,a||(a=eC),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const p=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);p.length>0&&p[0]!=="dev"&&(this.options.lng=p[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(p=>{this[p]=(...y)=>this.store[p](...y)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(p=>{this[p]=(...y)=>(this.store[p](...y),this)});const m=p0(),g=()=>{const p=(y,S)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),m.resolve(S),a(y,S)};if(this.languages&&!this.isInitialized)return p(null,this.t.bind(this));this.changeLanguage(this.options.lng,p)};return this.options.resources||!this.options.initAsync?g():setTimeout(g,0),m}loadResources(t,a=eC){let r=a;const l=sn(t)?t:this.language;if(typeof t=="function"&&(r=t),!this.options.resources||this.options.partialBundledLanguages){if(l?.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return r();const c=[],f=m=>{if(!m||m==="cimode")return;this.services.languageUtils.toResolveHierarchy(m).forEach(p=>{p!=="cimode"&&c.indexOf(p)<0&&c.push(p)})};l?f(l):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(g=>f(g)),this.options.preload?.forEach?.(m=>f(m)),this.services.backendConnector.load(c,this.options.ns,m=>{!m&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),r(m)})}else r(null)}reloadResources(t,a,r){const l=p0();return typeof t=="function"&&(r=t,t=void 0),typeof a=="function"&&(r=a,a=void 0),t||(t=this.languages),a||(a=this.options.ns),r||(r=eC),this.services.backendConnector.reload(t,a,c=>{l.resolve(),r(c)}),l}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return t.type==="backend"&&(this.modules.backend=t),(t.type==="logger"||t.log&&t.warn&&t.error)&&(this.modules.logger=t),t.type==="languageDetector"&&(this.modules.languageDetector=t),t.type==="i18nFormat"&&(this.modules.i18nFormat=t),t.type==="postProcessor"&&C6.addPostProcessor(t),t.type==="formatter"&&(this.modules.formatter=t),t.type==="3rdParty"&&this.modules.external.push(t),this}setResolvedLanguage(t){if(!(!t||!this.languages)&&!(["cimode","dev"].indexOf(t)>-1)){for(let a=0;a<this.languages.length;a++){const r=this.languages[a];if(!(["cimode","dev"].indexOf(r)>-1)&&this.store.hasLanguageSomeTranslations(r)){this.resolvedLanguage=r;break}}!this.resolvedLanguage&&this.languages.indexOf(t)<0&&this.store.hasLanguageSomeTranslations(t)&&(this.resolvedLanguage=t,this.languages.unshift(t))}}changeLanguage(t,a){this.isLanguageChangingTo=t;const r=p0();this.emit("languageChanging",t);const l=m=>{this.language=m,this.languages=this.services.languageUtils.toResolveHierarchy(m),this.resolvedLanguage=void 0,this.setResolvedLanguage(m)},c=(m,g)=>{g?this.isLanguageChangingTo===t&&(l(g),this.translator.changeLanguage(g),this.isLanguageChangingTo=void 0,this.emit("languageChanged",g),this.logger.log("languageChanged",g)):this.isLanguageChangingTo=void 0,r.resolve((...p)=>this.t(...p)),a&&a(m,(...p)=>this.t(...p))},f=m=>{!t&&!m&&this.services.languageDetector&&(m=[]);const g=sn(m)?m:m&&m[0],p=this.store.hasLanguageSomeTranslations(g)?g:this.services.languageUtils.getBestMatchFromCodes(sn(m)?[m]:m);p&&(this.language||l(p),this.translator.language||this.translator.changeLanguage(p),this.services.languageDetector?.cacheUserLanguage?.(p)),this.loadResources(p,y=>{c(y,p)})};return!t&&this.services.languageDetector&&!this.services.languageDetector.async?f(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(f):this.services.languageDetector.detect(f):f(t),r}getFixedT(t,a,r){const l=(c,f,...m)=>{let g;typeof f!="object"?g=this.options.overloadTranslationOptionHandler([c,f].concat(m)):g={...f},g.lng=g.lng||l.lng,g.lngs=g.lngs||l.lngs,g.ns=g.ns||l.ns,g.keyPrefix!==""&&(g.keyPrefix=g.keyPrefix||r||l.keyPrefix);const p=this.options.keySeparator||".";let y;return g.keyPrefix&&Array.isArray(c)?y=c.map(S=>`${g.keyPrefix}${p}${S}`):y=g.keyPrefix?`${g.keyPrefix}${p}${c}`:c,this.t(y,g)};return sn(t)?l.lng=t:l.lngs=t,l.ns=a,l.keyPrefix=r,l}t(...t){return this.translator?.translate(...t)}exists(...t){return this.translator?.exists(...t)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t,a={}){if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const r=a.lng||this.resolvedLanguage||this.languages[0],l=this.options?this.options.fallbackLng:!1,c=this.languages[this.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const f=(m,g)=>{const p=this.services.backendConnector.state[`${m}|${g}`];return p===-1||p===0||p===2};if(a.precheck){const m=a.precheck(this,f);if(m!==void 0)return m}return!!(this.hasResourceBundle(r,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||f(r,t)&&(!l||f(c,t)))}loadNamespaces(t,a){const r=p0();return this.options.ns?(sn(t)&&(t=[t]),t.forEach(l=>{this.options.ns.indexOf(l)<0&&this.options.ns.push(l)}),this.loadResources(l=>{r.resolve(),a&&a(l)}),r):(a&&a(),Promise.resolve())}loadLanguages(t,a){const r=p0();sn(t)&&(t=[t]);const l=this.options.preload||[],c=t.filter(f=>l.indexOf(f)<0&&this.services.languageUtils.isSupportedCode(f));return c.length?(this.options.preload=l.concat(c),this.loadResources(f=>{r.resolve(),a&&a(f)}),r):(a&&a(),Promise.resolve())}dir(t){if(t||(t=this.resolvedLanguage||(this.languages?.length>0?this.languages[0]:this.language)),!t)return"rtl";try{const l=new Intl.Locale(t);if(l&&l.getTextInfo){const c=l.getTextInfo();if(c&&c.direction)return c.direction}}catch{}const a=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],r=this.services?.languageUtils||new w6(M6());return t.toLowerCase().indexOf("-latn")>1?"ltr":a.indexOf(r.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(t={},a){return new y0(t,a)}cloneInstance(t={},a=eC){const r=t.forkResourceStore;r&&delete t.forkResourceStore;const l={...this.options,...t,isClone:!0},c=new y0(l);if((t.debug!==void 0||t.prefix!==void 0)&&(c.logger=c.logger.clone(t)),["store","services","language"].forEach(m=>{c[m]=this[m]}),c.services={...this.services},c.services.utils={hasLoadedNamespace:c.hasLoadedNamespace.bind(c)},r){const m=Object.keys(this.store.data).reduce((g,p)=>(g[p]={...this.store.data[p]},g[p]=Object.keys(g[p]).reduce((y,S)=>(y[S]={...g[p][S]},y),g[p]),g),{});c.store=new S6(m,l),c.services.resourceStore=c.store}return c.translator=new J1(c.services,l),c.translator.on("*",(m,...g)=>{c.emit(m,...g)}),c.init(l,a),c.translator.options=l,c.translator.backendConnector.services.utils={hasLoadedNamespace:c.hasLoadedNamespace.bind(c)},c}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const Zr=y0.createInstance();Zr.createInstance=y0.createInstance,Zr.createInstance,Zr.dir,Zr.init,Zr.loadResources,Zr.reloadResources,Zr.use,Zr.changeLanguage,Zr.getFixedT,Zr.t,Zr.exists,Zr.setDefaultNamespace,Zr.hasLoadedNamespace,Zr.loadNamespaces,Zr.loadLanguages;const gZ=(e,t,a,r)=>{const l=[a,{code:t,...r||{}}];if(e?.services?.logger?.forward)return e.services.logger.forward(l,"warn","react-i18next::",!0);Vd(l[0])&&(l[0]=`react-i18next:: ${l[0]}`),e?.services?.logger?.warn?e.services.logger.warn(...l):console?.warn&&console.warn(...l)},D6={},bO=(e,t,a,r)=>{Vd(a)&&D6[a]||(Vd(a)&&(D6[a]=new Date),gZ(e,t,a,r))},N6=(e,t)=>()=>{if(e.isInitialized)t();else{const a=()=>{setTimeout(()=>{e.off("initialized",a)},0),t()};e.on("initialized",a)}},SO=(e,t,a)=>{e.loadNamespaces(t,N6(e,a))},$6=(e,t,a,r)=>{if(Vd(a)&&(a=[a]),e.options.preload&&e.options.preload.indexOf(t)>-1)return SO(e,a,r);a.forEach(l=>{e.options.ns.indexOf(l)<0&&e.options.ns.push(l)}),e.loadLanguages(t,N6(e,r))},vZ=(e,t,a={})=>!t.languages||!t.languages.length?(bO(t,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:t.languages}),!0):t.hasLoadedNamespace(e,{lng:a.lng,precheck:(r,l)=>{if(a.bindI18n?.indexOf("languageChanging")>-1&&r.services.backendConnector.backend&&r.isLanguageChangingTo&&!l(r.isLanguageChangingTo,e))return!1}}),Vd=e=>typeof e=="string",yZ=e=>typeof e=="object"&&e!==null,bZ=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,SZ={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},CZ=e=>SZ[e];let CO={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:e=>e.replace(bZ,CZ)};const xZ=(e={})=>{CO={...CO,...e}},EZ=()=>CO;let z6;const wZ=e=>{z6=e},TZ=()=>z6,OZ={type:"3rdParty",init(e){xZ(e.options.react),wZ(e)}},RZ=C.createContext();class AZ{constructor(){this.usedNamespaces={}}addUsedNamespaces(t){t.forEach(a=>{this.usedNamespaces[a]||(this.usedNamespaces[a]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const MZ=(e,t)=>{const a=C.useRef();return C.useEffect(()=>{a.current=e},[e,t]),a.current},j6=(e,t,a,r)=>e.getFixedT(t,a,r),_Z=(e,t,a,r)=>C.useCallback(j6(e,t,a,r),[e,t,a,r]),DZ=(e,t={})=>{const{i18n:a}=t,{i18n:r,defaultNS:l}=C.useContext(RZ)||{},c=a||r||TZ();if(c&&!c.reportNamespaces&&(c.reportNamespaces=new AZ),!c){bO(c,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");const j=(V,H)=>Vd(H)?H:yZ(H)&&Vd(H.defaultValue)?H.defaultValue:Array.isArray(V)?V[V.length-1]:V,$=[j,{},!1];return $.t=j,$.i18n={},$.ready=!1,$}c.options.react?.wait&&bO(c,"DEPRECATED_OPTION","useTranslation: It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const f={...EZ(),...c.options.react,...t},{useSuspense:m,keyPrefix:g}=f;let p=l||c.options?.defaultNS;p=Vd(p)?[p]:p||["translation"],c.reportNamespaces.addUsedNamespaces?.(p);const y=(c.isInitialized||c.initializedStoreOnce)&&p.every(j=>vZ(j,c,f)),S=_Z(c,t.lng||null,f.nsMode==="fallback"?p:p[0],g),E=()=>S,T=()=>j6(c,t.lng||null,f.nsMode==="fallback"?p:p[0],g),[O,M]=C.useState(E);let A=p.join();t.lng&&(A=`${t.lng}${A}`);const D=MZ(A),_=C.useRef(!0);C.useEffect(()=>{const{bindI18n:j,bindI18nStore:$}=f;_.current=!0,!y&&!m&&(t.lng?$6(c,t.lng,p,()=>{_.current&&M(T)}):SO(c,p,()=>{_.current&&M(T)})),y&&D&&D!==A&&_.current&&M(T);const V=()=>{_.current&&M(T)};return j&&c?.on(j,V),$&&c?.store.on($,V),()=>{_.current=!1,c&&j?.split(" ").forEach(H=>c.off(H,V)),$&&c&&$.split(" ").forEach(H=>c.store.off(H,V))}},[c,A]),C.useEffect(()=>{_.current&&y&&M(E)},[c,g,y]);const z=[O,c,y];if(z.t=O,z.i18n=c,z.ready=y,y||!y&&!m)return z;throw new Promise(j=>{t.lng?$6(c,t.lng,p,()=>j()):SO(c,p,()=>j())})},NZ={en:{translation:{welcome:"Hi there, you’re speaking with Jaweb AI Assistant."}},ar:{translation:{welcome:"مرحبًا، أنت تتحدث إلى مساعد Jaweb AI."}}};Zr.use(OZ).init({resources:NZ,lng:"en",fallbackLng:"en",interpolation:{escapeValue:!1}});const $Z=3,zZ=3e3,jZ=()=>{const[e,t]=C.useState(!0),[a,r]=C.useState(!1),[l,c]=C.useState(""),[f,m]=C.useState(""),[g,p]=C.useState(!1),[y,S]=C.useState(!1),[E,T]=C.useState(""),[O,M]=C.useState(""),[A,D]=C.useState(""),[_,z]=C.useState(""),[j,$]=C.useState([]),[V,H]=C.useState([]),[P,q]=C.useState(""),Y=async(te=0)=>{const G=nf("company_username");t(!0);const K={headers:{"Content-Type":"application/json",Accept:"application/json"},params:{username:G}};try{const ie=(await $a.get(`${Ei.apiUrl}chatbot-details/`,K)).data.data;ie.language==="Arabic"?Zr.changeLanguage("ar"):Zr.changeLanguage("en"),r(ie.chatbot_form),c(ie.chatbot_color),m(ie.chatbot_logo),p(ie.disable_chatbot_globally),S(ie.remove_powered_by_jaweb),T(ie.chatbot_initial_msg),M(ie.status),q(ie.mode),console.log(ie),ie.calendly_link&&D(ie.calendly_link),ie.phone_number_id&&z(`+${ie.phone_number_id}`);const k=await $a.get(`${Ei.apiUrl}chatbot-plugin-suggestions/`,K);let X=[];Array.isArray(k.data.data)?X=k.data.data:Array.isArray(k.data.user_questions)&&(X=k.data.user_questions),X.length>0?($(X.slice(0,3)),H(X.slice(3))):($([]),H([])),t(!1)}catch(J){console.error("Error fetching data:",J),te<$Z?setTimeout(()=>Y(te+1),zZ):console.error("Max retries reached. Could not fetch data.")}};return C.useEffect(()=>{Y()},[]),{isFetchingDetails:e,disableForm:a,colorCode:l,chatbotLogo:f,disableChatbotGlobally:g,removePoweredByJaweb:y,initialMessageText:E,subscription:O,calendly:A,merchantPhone:_,messagesSuggestions:j,restSuggestions:V,userType:P}},{Text:LZ,Title:VZ}=km,HZ=({chatbotLogo:e,colorCode:t,onNewSession:a,visitorId:r,onSessionSelect:l,setOpen:c,Opened:f,Phone:m})=>{const[g,p]=C.useState([]),[y,S]=C.useState(!0),E=async()=>{try{S(!0);const A=(await(await fetch(`${Ei.apiUrl}get-chatlogs-by-ip/?visitor_id=${r}&company_username=${nf("company_username")}`)).json()).map(D=>({id:D.user_session_id,agentName:D.assignee||"AI Agent",createdAt:D.date,isBlurred:D.closed,agentImage:D.assignee_picture}));p(A)}catch(O){console.error("Failed to load sessions:",O)}finally{S(!1)}};C.useEffect(()=>{r&&E()},[r]);const T=re.jsx(ku,{style:{fontSize:24},spin:!0});return re.jsxs("div",{style:{maxWidth:"100%",height:"100%",border:"1px solid #f0f0f0",borderRadius:8,overflow:"hidden",display:"flex",flexDirection:"column",paddingTop:20},children:[re.jsxs("div",{style:{padding:"0 16px 10px",display:"flex"},children:[re.jsx(VZ,{level:4,style:{margin:0},children:"Conversations"}),re.jsx(qv,{onClick:()=>c(!f),className:"chatbot-close",style:{marginLeft:"auto"}})]}),re.jsx("div",{style:{flex:1,overflowY:"auto"},children:y?re.jsx("div",{style:{textAlign:"center",padding:"2rem"},children:re.jsx(tf,{indicator:T})}):g.length>0?re.jsx($1,{itemLayout:"horizontal",dataSource:g,split:!0,renderItem:O=>re.jsx($1.Item,{onClick:()=>!O.isBlurred&&l(O.id,O.agentName||"Ai Agent",O.agentImage||e),style:{padding:"12px",opacity:O.isBlurred?.5:1,cursor:O.isBlurred?"not-allowed":"pointer",borderBottom:"1px solid #f0f0f0"},children:re.jsx($1.Item.Meta,{avatar:re.jsx(RT,{size:"large",src:O.agentImage||e,icon:!O.agentImage&&!e?re.jsx(v4,{}):void 0}),title:re.jsx("span",{style:{fontWeight:600},children:O.agentName||"AI Agent"}),description:re.jsxs(re.Fragment,{children:[re.jsxs(LZ,{type:"secondary",children:["Created: ",new Date(O.createdAt).toLocaleDateString()]}),O.isBlurred&&re.jsx("div",{style:{color:"red",fontSize:"12px",marginTop:4},children:"This session is closed and cannot be reopened."})]})})},O.id)}):re.jsx("div",{style:{padding:"1rem",textAlign:"center",color:"#888"},children:"No conversations yet."})}),re.jsxs("div",{style:{padding:"12px",borderTop:"1px solid #f0f0f0",display:"flex",gap:4},children:[re.jsx(as,{type:"primary",size:"large",block:!0,style:{backgroundColor:t,color:"#fff"},onClick:a,children:"Ask a question ?"}),m?re.jsx(as,{type:"default",style:{backgroundColor:"white",color:t},className:"hover:border-black",size:"large",icon:re.jsx(y4,{style:{color:t}}),onClick:()=>{const O=`https://wa.me/${m}`;window.open(O,"_blank")},children:"Chat on WhatsApp"}):re.jsx(re.Fragment,{})]})]})},{Title:BZ,Text:xO}=km,PZ=({onBack:e,onCreate:t,colorCode:a,visitorId:r,country:l})=>{const[c,f]=C.useState(""),[m,g]=C.useState(""),[p,y]=C.useState(""),[S,E]=C.useState(!1),T=async()=>{const O={visitor_id:r,country:l,name:c,email:m,phone:p,company_username:nf("company_username")};try{E(!0);const M=await fetch(`${Ei.apiUrl}chatlog-create/`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(O)}),A=await M.json();M.ok?t({name:c,email:m,phone:p,session_id:A?.user_session_id,messages:A.messages,hasInfo:!0}):console.error("Failed to register:",A)}catch(M){console.error("Error submitting session data:",M)}finally{E(!1)}};return re.jsxs("div",{style:{padding:"1.5rem"},children:[re.jsx(as,{type:"text",icon:re.jsx(FT,{}),onClick:e,style:{marginBottom:"1rem"},children:"Back"}),re.jsx(BZ,{level:4,style:{marginBottom:"2rem"},children:"Let's create a session"}),re.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"1.5rem"},children:[re.jsxs("div",{children:[re.jsx(xO,{strong:!0,children:"👋 Please, can I have your name?"}),re.jsx(Xu,{size:"large",placeholder:"John Doe",value:c,onChange:O=>f(O.target.value),style:{marginTop:"0.5rem"}})]}),re.jsxs("div",{children:[re.jsx(xO,{strong:!0,children:"📧 What’s your email address?"}),re.jsx(Xu,{size:"large",type:"email",placeholder:"you@example.com",value:m,onChange:O=>g(O.target.value),style:{marginTop:"0.5rem"}})]}),re.jsxs("div",{children:[re.jsx(xO,{strong:!0,children:"📱 May I have your phone number?"}),re.jsx(Xu,{size:"large",placeholder:"+1 234 567 8900",value:p,onChange:O=>y(O.target.value),style:{marginTop:"0.5rem"}})]}),re.jsx(as,{type:"primary",size:"large",style:{backgroundColor:a,color:"white"},onClick:T,disabled:!c||!m||!p,children:S?re.jsx(tf,{indicator:re.jsx(ku,{style:{fontSize:20,color:"white"},spin:!0})}):"Create Session"})]})]})},UZ=e=>{const[t,a]=C.useState([]),[r,l]=C.useState(!1),c=async()=>{const f=e;if(f){l(!0);try{const m=await $a.get(`${Ei.apiUrl}chat-message-history/`,{withCredentials:!0,params:{session_id:f,username:nf("company_username")}});m.data?.messages?.length>0&&(a(m.data.messages),l(!1))}catch(m){console.error("Couldn't load history",m)}}};return C.useEffect(()=>{c()},[e]),{messages:t,setMessages:a,isFetchingMessages:r}};function ri(e,t,a,r){return new(a||(a=Promise))(function(l,c){function f(p){try{g(r.next(p))}catch(y){c(y)}}function m(p){try{g(r.throw(p))}catch(y){c(y)}}function g(p){var y;p.done?l(p.value):(y=p.value,y instanceof a?y:new a(function(S){S(y)})).then(f,m)}g((r=r.apply(e,t||[])).next())})}typeof SuppressedError=="function"&&SuppressedError;class b0{constructor(){this.listeners={}}on(t,a,r){if(this.listeners[t]||(this.listeners[t]=new Set),this.listeners[t].add(a),r?.once){const l=()=>{this.un(t,l),this.un(t,a)};return this.on(t,l),l}return()=>this.un(t,a)}un(t,a){var r;(r=this.listeners[t])===null||r===void 0||r.delete(a)}once(t,a){return this.on(t,a,{once:!0})}unAll(){this.listeners={}}emit(t,...a){this.listeners[t]&&this.listeners[t].forEach(r=>r(...a))}}const tC={decode:function(e,t){return ri(this,void 0,void 0,function*(){const a=new AudioContext({sampleRate:t});return a.decodeAudioData(e).finally(()=>a.close())})},createBuffer:function(e,t){return typeof e[0]=="number"&&(e=[e]),function(a){const r=a[0];if(r.some(l=>l>1||l<-1)){const l=r.length;let c=0;for(let f=0;f<l;f++){const m=Math.abs(r[f]);m>c&&(c=m)}for(const f of a)for(let m=0;m<l;m++)f[m]/=c}}(e),{duration:t,length:e[0].length,sampleRate:e[0].length/t,numberOfChannels:e.length,getChannelData:a=>e?.[a],copyFromChannel:AudioBuffer.prototype.copyFromChannel,copyToChannel:AudioBuffer.prototype.copyToChannel}}};function L6(e,t){const a=t.xmlns?document.createElementNS(t.xmlns,e):document.createElement(e);for(const[r,l]of Object.entries(t))if(r==="children"&&l)for(const[c,f]of Object.entries(l))f instanceof Node?a.appendChild(f):typeof f=="string"?a.appendChild(document.createTextNode(f)):a.appendChild(L6(c,f));else r==="style"?Object.assign(a.style,l):r==="textContent"?a.textContent=l:a.setAttribute(r,l.toString());return a}function V6(e,t,a){const r=L6(e,t||{});return a?.appendChild(r),r}var IZ=Object.freeze({__proto__:null,createElement:V6,default:V6});const FZ={fetchBlob:function(e,t,a){return ri(this,void 0,void 0,function*(){const r=yield fetch(e,a);if(r.status>=400)throw new Error(`Failed to fetch ${e}: ${r.status} (${r.statusText})`);return function(l,c){ri(this,void 0,void 0,function*(){if(!l.body||!l.headers)return;const f=l.body.getReader(),m=Number(l.headers.get("Content-Length"))||0;let g=0;const p=S=>ri(this,void 0,void 0,function*(){g+=S?.length||0;const E=Math.round(g/m*100);c(E)}),y=()=>ri(this,void 0,void 0,function*(){let S;try{S=yield f.read()}catch{return}S.done||(p(S.value),yield y())});y()})}(r.clone(),t),r.blob()})}};class kZ extends b0{constructor(t){super(),this.isExternalMedia=!1,t.media?(this.media=t.media,this.isExternalMedia=!0):this.media=document.createElement("audio"),t.mediaControls&&(this.media.controls=!0),t.autoplay&&(this.media.autoplay=!0),t.playbackRate!=null&&this.onMediaEvent("canplay",()=>{t.playbackRate!=null&&(this.media.playbackRate=t.playbackRate)},{once:!0})}onMediaEvent(t,a,r){return this.media.addEventListener(t,a,r),()=>this.media.removeEventListener(t,a,r)}getSrc(){return this.media.currentSrc||this.media.src||""}revokeSrc(){const t=this.getSrc();t.startsWith("blob:")&&URL.revokeObjectURL(t)}canPlayType(t){return this.media.canPlayType(t)!==""}setSrc(t,a){const r=this.getSrc();if(t&&r===t)return;this.revokeSrc();const l=a instanceof Blob&&(this.canPlayType(a.type)||!t)?URL.createObjectURL(a):t;if(r&&this.media.removeAttribute("src"),l||t)try{this.media.src=l}catch{this.media.src=t}}destroy(){this.isExternalMedia||(this.media.pause(),this.media.remove(),this.revokeSrc(),this.media.removeAttribute("src"),this.media.load())}setMediaElement(t){this.media=t}play(){return ri(this,void 0,void 0,function*(){return this.media.play()})}pause(){this.media.pause()}isPlaying(){return!this.media.paused&&!this.media.ended}setTime(t){this.media.currentTime=Math.max(0,Math.min(t,this.getDuration()))}getDuration(){return this.media.duration}getCurrentTime(){return this.media.currentTime}getVolume(){return this.media.volume}setVolume(t){this.media.volume=t}getMuted(){return this.media.muted}setMuted(t){this.media.muted=t}getPlaybackRate(){return this.media.playbackRate}isSeeking(){return this.media.seeking}setPlaybackRate(t,a){a!=null&&(this.media.preservesPitch=a),this.media.playbackRate=t}getMediaElement(){return this.media}setSinkId(t){return this.media.setSinkId(t)}}class Xm extends b0{constructor(t,a){super(),this.timeouts=[],this.isScrollable=!1,this.audioData=null,this.resizeObserver=null,this.lastContainerWidth=0,this.isDragging=!1,this.subscriptions=[],this.unsubscribeOnScroll=[],this.subscriptions=[],this.options=t;const r=this.parentFromOptionsContainer(t.container);this.parent=r;const[l,c]=this.initHtml();r.appendChild(l),this.container=l,this.scrollContainer=c.querySelector(".scroll"),this.wrapper=c.querySelector(".wrapper"),this.canvasWrapper=c.querySelector(".canvases"),this.progressWrapper=c.querySelector(".progress"),this.cursor=c.querySelector(".cursor"),a&&c.appendChild(a),this.initEvents()}parentFromOptionsContainer(t){let a;if(typeof t=="string"?a=document.querySelector(t):t instanceof HTMLElement&&(a=t),!a)throw new Error("Container not found");return a}initEvents(){const t=a=>{const r=this.wrapper.getBoundingClientRect(),l=a.clientX-r.left,c=a.clientY-r.top;return[l/r.width,c/r.height]};if(this.wrapper.addEventListener("click",a=>{const[r,l]=t(a);this.emit("click",r,l)}),this.wrapper.addEventListener("dblclick",a=>{const[r,l]=t(a);this.emit("dblclick",r,l)}),this.options.dragToSeek!==!0&&typeof this.options.dragToSeek!="object"||this.initDrag(),this.scrollContainer.addEventListener("scroll",()=>{const{scrollLeft:a,scrollWidth:r,clientWidth:l}=this.scrollContainer,c=a/r,f=(a+l)/r;this.emit("scroll",c,f,a,a+l)}),typeof ResizeObserver=="function"){const a=this.createDelay(100);this.resizeObserver=new ResizeObserver(()=>{a().then(()=>this.onContainerResize()).catch(()=>{})}),this.resizeObserver.observe(this.scrollContainer)}}onContainerResize(){const t=this.parent.clientWidth;t===this.lastContainerWidth&&this.options.height!=="auto"||(this.lastContainerWidth=t,this.reRender())}initDrag(){this.subscriptions.push(function(t,a,r,l,c=3,f=0,m=100){if(!t)return()=>{};const g=matchMedia("(pointer: coarse)").matches;let p=()=>{};const y=S=>{if(S.button!==f)return;S.preventDefault(),S.stopPropagation();let E=S.clientX,T=S.clientY,O=!1;const M=Date.now(),A=$=>{if($.preventDefault(),$.stopPropagation(),g&&Date.now()-M<m)return;const V=$.clientX,H=$.clientY,P=V-E,q=H-T;if(O||Math.abs(P)>c||Math.abs(q)>c){const Y=t.getBoundingClientRect(),{left:te,top:G}=Y;O||(r?.(E-te,T-G),O=!0),a(P,q,V-te,H-G),E=V,T=H}},D=$=>{if(O){const V=$.clientX,H=$.clientY,P=t.getBoundingClientRect(),{left:q,top:Y}=P;l?.(V-q,H-Y)}p()},_=$=>{$.relatedTarget&&$.relatedTarget!==document.documentElement||D($)},z=$=>{O&&($.stopPropagation(),$.preventDefault())},j=$=>{O&&$.preventDefault()};document.addEventListener("pointermove",A),document.addEventListener("pointerup",D),document.addEventListener("pointerout",_),document.addEventListener("pointercancel",_),document.addEventListener("touchmove",j,{passive:!1}),document.addEventListener("click",z,{capture:!0}),p=()=>{document.removeEventListener("pointermove",A),document.removeEventListener("pointerup",D),document.removeEventListener("pointerout",_),document.removeEventListener("pointercancel",_),document.removeEventListener("touchmove",j),setTimeout(()=>{document.removeEventListener("click",z,{capture:!0})},10)}};return t.addEventListener("pointerdown",y),()=>{p(),t.removeEventListener("pointerdown",y)}}(this.wrapper,(t,a,r)=>{this.emit("drag",Math.max(0,Math.min(1,r/this.wrapper.getBoundingClientRect().width)))},t=>{this.isDragging=!0,this.emit("dragstart",Math.max(0,Math.min(1,t/this.wrapper.getBoundingClientRect().width)))},t=>{this.isDragging=!1,this.emit("dragend",Math.max(0,Math.min(1,t/this.wrapper.getBoundingClientRect().width)))}))}getHeight(t,a){var r;const l=((r=this.audioData)===null||r===void 0?void 0:r.numberOfChannels)||1;if(t==null)return 128;if(!isNaN(Number(t)))return Number(t);if(t==="auto"){const c=this.parent.clientHeight||128;return a?.every(f=>!f.overlay)?c/l:c}return 128}initHtml(){const t=document.createElement("div"),a=t.attachShadow({mode:"open"}),r=this.options.cspNonce&&typeof this.options.cspNonce=="string"?this.options.cspNonce.replace(/"/g,""):"";return a.innerHTML=`
|
|
573
|
+
<style${r?` nonce="${r}"`:""}>
|
|
574
|
+
:host {
|
|
575
|
+
user-select: none;
|
|
576
|
+
min-width: 1px;
|
|
577
|
+
}
|
|
578
|
+
:host audio {
|
|
579
|
+
display: block;
|
|
580
|
+
width: 100%;
|
|
581
|
+
}
|
|
582
|
+
:host .scroll {
|
|
583
|
+
overflow-x: auto;
|
|
584
|
+
overflow-y: hidden;
|
|
585
|
+
width: 100%;
|
|
586
|
+
position: relative;
|
|
587
|
+
}
|
|
588
|
+
:host .noScrollbar {
|
|
589
|
+
scrollbar-color: transparent;
|
|
590
|
+
scrollbar-width: none;
|
|
591
|
+
}
|
|
592
|
+
:host .noScrollbar::-webkit-scrollbar {
|
|
593
|
+
display: none;
|
|
594
|
+
-webkit-appearance: none;
|
|
595
|
+
}
|
|
596
|
+
:host .wrapper {
|
|
597
|
+
position: relative;
|
|
598
|
+
overflow: visible;
|
|
599
|
+
z-index: 2;
|
|
600
|
+
}
|
|
601
|
+
:host .canvases {
|
|
602
|
+
min-height: ${this.getHeight(this.options.height,this.options.splitChannels)}px;
|
|
603
|
+
}
|
|
604
|
+
:host .canvases > div {
|
|
605
|
+
position: relative;
|
|
606
|
+
}
|
|
607
|
+
:host canvas {
|
|
608
|
+
display: block;
|
|
609
|
+
position: absolute;
|
|
610
|
+
top: 0;
|
|
611
|
+
image-rendering: pixelated;
|
|
612
|
+
}
|
|
613
|
+
:host .progress {
|
|
614
|
+
pointer-events: none;
|
|
615
|
+
position: absolute;
|
|
616
|
+
z-index: 2;
|
|
617
|
+
top: 0;
|
|
618
|
+
left: 0;
|
|
619
|
+
width: 0;
|
|
620
|
+
height: 100%;
|
|
621
|
+
overflow: hidden;
|
|
622
|
+
}
|
|
623
|
+
:host .progress > div {
|
|
624
|
+
position: relative;
|
|
625
|
+
}
|
|
626
|
+
:host .cursor {
|
|
627
|
+
pointer-events: none;
|
|
628
|
+
position: absolute;
|
|
629
|
+
z-index: 5;
|
|
630
|
+
top: 0;
|
|
631
|
+
left: 0;
|
|
632
|
+
height: 100%;
|
|
633
|
+
border-radius: 2px;
|
|
634
|
+
}
|
|
635
|
+
</style>
|
|
636
|
+
|
|
637
|
+
<div class="scroll" part="scroll">
|
|
638
|
+
<div class="wrapper" part="wrapper">
|
|
639
|
+
<div class="canvases" part="canvases"></div>
|
|
640
|
+
<div class="progress" part="progress"></div>
|
|
641
|
+
<div class="cursor" part="cursor"></div>
|
|
642
|
+
</div>
|
|
643
|
+
</div>
|
|
644
|
+
`,[t,a]}setOptions(t){if(this.options.container!==t.container){const a=this.parentFromOptionsContainer(t.container);a.appendChild(this.container),this.parent=a}t.dragToSeek!==!0&&typeof this.options.dragToSeek!="object"||this.initDrag(),this.options=t,this.reRender()}getWrapper(){return this.wrapper}getWidth(){return this.scrollContainer.clientWidth}getScroll(){return this.scrollContainer.scrollLeft}setScroll(t){this.scrollContainer.scrollLeft=t}setScrollPercentage(t){const{scrollWidth:a}=this.scrollContainer,r=a*t;this.setScroll(r)}destroy(){var t,a;this.subscriptions.forEach(r=>r()),this.container.remove(),(t=this.resizeObserver)===null||t===void 0||t.disconnect(),(a=this.unsubscribeOnScroll)===null||a===void 0||a.forEach(r=>r()),this.unsubscribeOnScroll=[]}createDelay(t=10){let a,r;const l=()=>{a&&clearTimeout(a),r&&r()};return this.timeouts.push(l),()=>new Promise((c,f)=>{l(),r=f,a=setTimeout(()=>{a=void 0,r=void 0,c()},t)})}convertColorValues(t){if(!Array.isArray(t))return t||"";if(t.length<2)return t[0]||"";const a=document.createElement("canvas"),r=a.getContext("2d"),l=a.height*(window.devicePixelRatio||1),c=r.createLinearGradient(0,0,0,l),f=1/(t.length-1);return t.forEach((m,g)=>{const p=g*f;c.addColorStop(p,m)}),c}getPixelRatio(){return Math.max(1,window.devicePixelRatio||1)}renderBarWaveform(t,a,r,l){const c=t[0],f=t[1]||t[0],m=c.length,{width:g,height:p}=r.canvas,y=p/2,S=this.getPixelRatio(),E=a.barWidth?a.barWidth*S:1,T=a.barGap?a.barGap*S:a.barWidth?E/2:0,O=a.barRadius||0,M=g/(E+T)/m,A=O&&"roundRect"in r?"roundRect":"rect";r.beginPath();let D=0,_=0,z=0;for(let j=0;j<=m;j++){const $=Math.round(j*M);if($>D){const P=Math.round(_*y*l),q=P+Math.round(z*y*l)||1;let Y=y-P;a.barAlign==="top"?Y=0:a.barAlign==="bottom"&&(Y=p-q),r[A](D*(E+T),Y,E,q,O),D=$,_=0,z=0}const V=Math.abs(c[j]||0),H=Math.abs(f[j]||0);V>_&&(_=V),H>z&&(z=H)}r.fill(),r.closePath()}renderLineWaveform(t,a,r,l){const c=f=>{const m=t[f]||t[0],g=m.length,{height:p}=r.canvas,y=p/2,S=r.canvas.width/g;r.moveTo(0,y);let E=0,T=0;for(let O=0;O<=g;O++){const M=Math.round(O*S);if(M>E){const D=y+(Math.round(T*y*l)||1)*(f===0?-1:1);r.lineTo(E,D),E=M,T=0}const A=Math.abs(m[O]||0);A>T&&(T=A)}r.lineTo(E,y)};r.beginPath(),c(0),c(1),r.fill(),r.closePath()}renderWaveform(t,a,r){if(r.fillStyle=this.convertColorValues(a.waveColor),a.renderFunction)return void a.renderFunction(t,r);let l=a.barHeight||1;if(a.normalize){const c=Array.from(t[0]).reduce((f,m)=>Math.max(f,Math.abs(m)),0);l=c?1/c:1}a.barWidth||a.barGap||a.barAlign?this.renderBarWaveform(t,a,r,l):this.renderLineWaveform(t,a,r,l)}renderSingleCanvas(t,a,r,l,c,f,m){const g=this.getPixelRatio(),p=document.createElement("canvas");p.width=Math.round(r*g),p.height=Math.round(l*g),p.style.width=`${r}px`,p.style.height=`${l}px`,p.style.left=`${Math.round(c)}px`,f.appendChild(p);const y=p.getContext("2d");if(this.renderWaveform(t,a,y),p.width>0&&p.height>0){const S=p.cloneNode(),E=S.getContext("2d");E.drawImage(p,0,0),E.globalCompositeOperation="source-in",E.fillStyle=this.convertColorValues(a.progressColor),E.fillRect(0,0,p.width,p.height),m.appendChild(S)}}renderMultiCanvas(t,a,r,l,c,f){const m=this.getPixelRatio(),{clientWidth:g}=this.scrollContainer,p=r/m;let y=Math.min(Xm.MAX_CANVAS_WIDTH,g,p),S={};if(a.barWidth||a.barGap){const A=a.barWidth||.5,D=A+(a.barGap||A/2);y%D!=0&&(y=Math.floor(y/D)*D)}if(y===0)return;const E=A=>{if(A<0||A>=T||S[A])return;S[A]=!0;const D=A*y;let _=Math.min(p-D,y);if(a.barWidth||a.barGap){const j=a.barWidth||.5,$=j+(a.barGap||j/2);_=Math.floor(_/$)*$}if(_<=0)return;const z=t.map(j=>{const $=Math.floor(D/p*j.length),V=Math.floor((D+_)/p*j.length);return j.slice($,V)});this.renderSingleCanvas(z,a,_,l,D,c,f)},T=Math.ceil(p/y);if(!this.isScrollable){for(let A=0;A<T;A++)E(A);return}const O=this.scrollContainer.scrollLeft/p,M=Math.floor(O*T);if(E(M-1),E(M),E(M+1),T>1){const A=this.on("scroll",()=>{const{scrollLeft:D}=this.scrollContainer,_=Math.floor(D/p*T);Object.keys(S).length>Xm.MAX_NODES&&(c.innerHTML="",f.innerHTML="",S={}),E(_-1),E(_),E(_+1)});this.unsubscribeOnScroll.push(A)}}renderChannel(t,a,r,l){var{overlay:c}=a,f=function(y,S){var E={};for(var T in y)Object.prototype.hasOwnProperty.call(y,T)&&S.indexOf(T)<0&&(E[T]=y[T]);if(y!=null&&typeof Object.getOwnPropertySymbols=="function"){var O=0;for(T=Object.getOwnPropertySymbols(y);O<T.length;O++)S.indexOf(T[O])<0&&Object.prototype.propertyIsEnumerable.call(y,T[O])&&(E[T[O]]=y[T[O]])}return E}(a,["overlay"]);const m=document.createElement("div"),g=this.getHeight(f.height,f.splitChannels);m.style.height=`${g}px`,c&&l>0&&(m.style.marginTop=`-${g}px`),this.canvasWrapper.style.minHeight=`${g}px`,this.canvasWrapper.appendChild(m);const p=m.cloneNode();this.progressWrapper.appendChild(p),this.renderMultiCanvas(t,f,r,g,m,p)}render(t){return ri(this,void 0,void 0,function*(){var a;this.timeouts.forEach(g=>g()),this.timeouts=[],this.canvasWrapper.innerHTML="",this.progressWrapper.innerHTML="",this.options.width!=null&&(this.scrollContainer.style.width=typeof this.options.width=="number"?`${this.options.width}px`:this.options.width);const r=this.getPixelRatio(),l=this.scrollContainer.clientWidth,c=Math.ceil(t.duration*(this.options.minPxPerSec||0));this.isScrollable=c>l;const f=this.options.fillParent&&!this.isScrollable,m=(f?l:c)*r;if(this.wrapper.style.width=f?"100%":`${c}px`,this.scrollContainer.style.overflowX=this.isScrollable?"auto":"hidden",this.scrollContainer.classList.toggle("noScrollbar",!!this.options.hideScrollbar),this.cursor.style.backgroundColor=`${this.options.cursorColor||this.options.progressColor}`,this.cursor.style.width=`${this.options.cursorWidth}px`,this.audioData=t,this.emit("render"),this.options.splitChannels)for(let g=0;g<t.numberOfChannels;g++){const p=Object.assign(Object.assign({},this.options),(a=this.options.splitChannels)===null||a===void 0?void 0:a[g]);this.renderChannel([t.getChannelData(g)],p,m,g)}else{const g=[t.getChannelData(0)];t.numberOfChannels>1&&g.push(t.getChannelData(1)),this.renderChannel(g,this.options,m,0)}Promise.resolve().then(()=>this.emit("rendered"))})}reRender(){if(this.unsubscribeOnScroll.forEach(r=>r()),this.unsubscribeOnScroll=[],!this.audioData)return;const{scrollWidth:t}=this.scrollContainer,{right:a}=this.progressWrapper.getBoundingClientRect();if(this.render(this.audioData),this.isScrollable&&t!==this.scrollContainer.scrollWidth){const{right:r}=this.progressWrapper.getBoundingClientRect();let l=r-a;l*=2,l=l<0?Math.floor(l):Math.ceil(l),l/=2,this.scrollContainer.scrollLeft+=l}}zoom(t){this.options.minPxPerSec=t,this.reRender()}scrollIntoView(t,a=!1){const{scrollLeft:r,scrollWidth:l,clientWidth:c}=this.scrollContainer,f=t*l,m=r,g=r+c,p=c/2;if(this.isDragging)f+30>g?this.scrollContainer.scrollLeft+=30:f-30<m&&(this.scrollContainer.scrollLeft-=30);else{(f<m||f>g)&&(this.scrollContainer.scrollLeft=f-(this.options.autoCenter?p:0));const y=f-r-p;a&&this.options.autoCenter&&y>0&&(this.scrollContainer.scrollLeft+=Math.min(y,10))}{const y=this.scrollContainer.scrollLeft,S=y/l,E=(y+c)/l;this.emit("scroll",S,E,y,y+c)}}renderProgress(t,a){if(isNaN(t))return;const r=100*t;this.canvasWrapper.style.clipPath=`polygon(${r}% 0%, 100% 0%, 100% 100%, ${r}% 100%)`,this.progressWrapper.style.width=`${r}%`,this.cursor.style.left=`${r}%`,this.cursor.style.transform=`translateX(-${Math.round(r)===100?this.options.cursorWidth:0}px)`,this.isScrollable&&this.options.autoScroll&&this.scrollIntoView(t,a)}exportImage(t,a,r){return ri(this,void 0,void 0,function*(){const l=this.canvasWrapper.querySelectorAll("canvas");if(!l.length)throw new Error("No waveform data");if(r==="dataURL"){const c=Array.from(l).map(f=>f.toDataURL(t,a));return Promise.resolve(c)}return Promise.all(Array.from(l).map(c=>new Promise((f,m)=>{c.toBlob(g=>{g?f(g):m(new Error("Could not export image"))},t,a)})))})}}Xm.MAX_CANVAS_WIDTH=8e3,Xm.MAX_NODES=10;class GZ extends b0{constructor(){super(...arguments),this.unsubscribe=()=>{}}start(){this.unsubscribe=this.on("tick",()=>{requestAnimationFrame(()=>{this.emit("tick")})}),this.emit("tick")}stop(){this.unsubscribe()}destroy(){this.unsubscribe()}}class EO extends b0{constructor(t=new AudioContext){super(),this.bufferNode=null,this.playStartTime=0,this.playedDuration=0,this._muted=!1,this._playbackRate=1,this._duration=void 0,this.buffer=null,this.currentSrc="",this.paused=!0,this.crossOrigin=null,this.seeking=!1,this.autoplay=!1,this.addEventListener=this.on,this.removeEventListener=this.un,this.audioContext=t,this.gainNode=this.audioContext.createGain(),this.gainNode.connect(this.audioContext.destination)}load(){return ri(this,void 0,void 0,function*(){})}get src(){return this.currentSrc}set src(t){if(this.currentSrc=t,this._duration=void 0,!t)return this.buffer=null,void this.emit("emptied");fetch(t).then(a=>{if(a.status>=400)throw new Error(`Failed to fetch ${t}: ${a.status} (${a.statusText})`);return a.arrayBuffer()}).then(a=>this.currentSrc!==t?null:this.audioContext.decodeAudioData(a)).then(a=>{this.currentSrc===t&&(this.buffer=a,this.emit("loadedmetadata"),this.emit("canplay"),this.autoplay&&this.play())})}_play(){var t;if(!this.paused)return;this.paused=!1,(t=this.bufferNode)===null||t===void 0||t.disconnect(),this.bufferNode=this.audioContext.createBufferSource(),this.buffer&&(this.bufferNode.buffer=this.buffer),this.bufferNode.playbackRate.value=this._playbackRate,this.bufferNode.connect(this.gainNode);let a=this.playedDuration*this._playbackRate;(a>=this.duration||a<0)&&(a=0,this.playedDuration=0),this.bufferNode.start(this.audioContext.currentTime,a),this.playStartTime=this.audioContext.currentTime,this.bufferNode.onended=()=>{this.currentTime>=this.duration&&(this.pause(),this.emit("ended"))}}_pause(){var t;this.paused=!0,(t=this.bufferNode)===null||t===void 0||t.stop(),this.playedDuration+=this.audioContext.currentTime-this.playStartTime}play(){return ri(this,void 0,void 0,function*(){this.paused&&(this._play(),this.emit("play"))})}pause(){this.paused||(this._pause(),this.emit("pause"))}stopAt(t){const a=t-this.currentTime,r=this.bufferNode;r?.stop(this.audioContext.currentTime+a),r?.addEventListener("ended",()=>{r===this.bufferNode&&(this.bufferNode=null,this.pause())},{once:!0})}setSinkId(t){return ri(this,void 0,void 0,function*(){return this.audioContext.setSinkId(t)})}get playbackRate(){return this._playbackRate}set playbackRate(t){this._playbackRate=t,this.bufferNode&&(this.bufferNode.playbackRate.value=t)}get currentTime(){return(this.paused?this.playedDuration:this.playedDuration+(this.audioContext.currentTime-this.playStartTime))*this._playbackRate}set currentTime(t){const a=!this.paused;a&&this._pause(),this.playedDuration=t/this._playbackRate,a&&this._play(),this.emit("seeking"),this.emit("timeupdate")}get duration(){var t,a;return(t=this._duration)!==null&&t!==void 0?t:((a=this.buffer)===null||a===void 0?void 0:a.duration)||0}set duration(t){this._duration=t}get volume(){return this.gainNode.gain.value}set volume(t){this.gainNode.gain.value=t,this.emit("volumechange")}get muted(){return this._muted}set muted(t){this._muted!==t&&(this._muted=t,this._muted?this.gainNode.disconnect():this.gainNode.connect(this.audioContext.destination))}canPlayType(t){return/^(audio|video)\//.test(t)}getGainNode(){return this.gainNode}getChannelData(){const t=[];if(!this.buffer)return t;const a=this.buffer.numberOfChannels;for(let r=0;r<a;r++)t.push(this.buffer.getChannelData(r));return t}}const qZ={waveColor:"#999",progressColor:"#555",cursorWidth:1,minPxPerSec:0,fillParent:!0,interact:!0,dragToSeek:!1,autoScroll:!0,autoCenter:!0,sampleRate:8e3};class Wm extends kZ{static create(t){return new Wm(t)}constructor(t){const a=t.media||(t.backend==="WebAudio"?new EO:void 0);super({media:a,mediaControls:t.mediaControls,autoplay:t.autoplay,playbackRate:t.audioRate}),this.plugins=[],this.decodedData=null,this.stopAtPosition=null,this.subscriptions=[],this.mediaSubscriptions=[],this.abortController=null,this.options=Object.assign({},qZ,t),this.timer=new GZ;const r=a?void 0:this.getMediaElement();this.renderer=new Xm(this.options,r),this.initPlayerEvents(),this.initRendererEvents(),this.initTimerEvents(),this.initPlugins();const l=this.options.url||this.getSrc()||"";Promise.resolve().then(()=>{this.emit("init");const{peaks:c,duration:f}=this.options;(l||c&&f)&&this.load(l,c,f).catch(()=>null)})}updateProgress(t=this.getCurrentTime()){return this.renderer.renderProgress(t/this.getDuration(),this.isPlaying()),t}initTimerEvents(){this.subscriptions.push(this.timer.on("tick",()=>{if(!this.isSeeking()){const t=this.updateProgress();this.emit("timeupdate",t),this.emit("audioprocess",t),this.stopAtPosition!=null&&this.isPlaying()&&t>=this.stopAtPosition&&this.pause()}}))}initPlayerEvents(){this.isPlaying()&&(this.emit("play"),this.timer.start()),this.mediaSubscriptions.push(this.onMediaEvent("timeupdate",()=>{const t=this.updateProgress();this.emit("timeupdate",t)}),this.onMediaEvent("play",()=>{this.emit("play"),this.timer.start()}),this.onMediaEvent("pause",()=>{this.emit("pause"),this.timer.stop(),this.stopAtPosition=null}),this.onMediaEvent("emptied",()=>{this.timer.stop(),this.stopAtPosition=null}),this.onMediaEvent("ended",()=>{this.emit("timeupdate",this.getDuration()),this.emit("finish"),this.stopAtPosition=null}),this.onMediaEvent("seeking",()=>{this.emit("seeking",this.getCurrentTime())}),this.onMediaEvent("error",()=>{var t;this.emit("error",(t=this.getMediaElement().error)!==null&&t!==void 0?t:new Error("Media error")),this.stopAtPosition=null}))}initRendererEvents(){this.subscriptions.push(this.renderer.on("click",(t,a)=>{this.options.interact&&(this.seekTo(t),this.emit("interaction",t*this.getDuration()),this.emit("click",t,a))}),this.renderer.on("dblclick",(t,a)=>{this.emit("dblclick",t,a)}),this.renderer.on("scroll",(t,a,r,l)=>{const c=this.getDuration();this.emit("scroll",t*c,a*c,r,l)}),this.renderer.on("render",()=>{this.emit("redraw")}),this.renderer.on("rendered",()=>{this.emit("redrawcomplete")}),this.renderer.on("dragstart",t=>{this.emit("dragstart",t)}),this.renderer.on("dragend",t=>{this.emit("dragend",t)}));{let t;this.subscriptions.push(this.renderer.on("drag",a=>{if(!this.options.interact)return;let r;this.renderer.renderProgress(a),clearTimeout(t),this.isPlaying()?r=0:this.options.dragToSeek===!0?r=200:typeof this.options.dragToSeek=="object"&&this.options.dragToSeek!==void 0&&(r=this.options.dragToSeek.debounceTime),t=setTimeout(()=>{this.seekTo(a)},r),this.emit("interaction",a*this.getDuration()),this.emit("drag",a)}))}}initPlugins(){var t;!((t=this.options.plugins)===null||t===void 0)&&t.length&&this.options.plugins.forEach(a=>{this.registerPlugin(a)})}unsubscribePlayerEvents(){this.mediaSubscriptions.forEach(t=>t()),this.mediaSubscriptions=[]}setOptions(t){this.options=Object.assign({},this.options,t),t.duration&&!t.peaks&&(this.decodedData=tC.createBuffer(this.exportPeaks(),t.duration)),t.peaks&&t.duration&&(this.decodedData=tC.createBuffer(t.peaks,t.duration)),this.renderer.setOptions(this.options),t.audioRate&&this.setPlaybackRate(t.audioRate),t.mediaControls!=null&&(this.getMediaElement().controls=t.mediaControls)}registerPlugin(t){t._init(this),this.plugins.push(t);const a=t.once("destroy",()=>{this.plugins=this.plugins.filter(r=>r!==t),this.subscriptions=this.subscriptions.filter(r=>r!==a)});return this.subscriptions.push(a),t}getWrapper(){return this.renderer.getWrapper()}getWidth(){return this.renderer.getWidth()}getScroll(){return this.renderer.getScroll()}setScroll(t){return this.renderer.setScroll(t)}setScrollTime(t){const a=t/this.getDuration();this.renderer.setScrollPercentage(a)}getActivePlugins(){return this.plugins}loadAudio(t,a,r,l){return ri(this,void 0,void 0,function*(){var c;if(this.emit("load",t),!this.options.media&&this.isPlaying()&&this.pause(),this.decodedData=null,this.stopAtPosition=null,!a&&!r){const m=this.options.fetchParams||{};window.AbortController&&!m.signal&&(this.abortController=new AbortController,m.signal=(c=this.abortController)===null||c===void 0?void 0:c.signal);const g=y=>this.emit("loading",y);a=yield FZ.fetchBlob(t,g,m);const p=this.options.blobMimeType;p&&(a=new Blob([a],{type:p}))}this.setSrc(t,a);const f=yield new Promise(m=>{const g=l||this.getDuration();g?m(g):this.mediaSubscriptions.push(this.onMediaEvent("loadedmetadata",()=>m(this.getDuration()),{once:!0}))});if(!t&&!a){const m=this.getMediaElement();m instanceof EO&&(m.duration=f)}if(r)this.decodedData=tC.createBuffer(r,f||0);else if(a){const m=yield a.arrayBuffer();this.decodedData=yield tC.decode(m,this.options.sampleRate)}this.decodedData&&(this.emit("decode",this.getDuration()),this.renderer.render(this.decodedData)),this.emit("ready",this.getDuration())})}load(t,a,r){return ri(this,void 0,void 0,function*(){try{return yield this.loadAudio(t,void 0,a,r)}catch(l){throw this.emit("error",l),l}})}loadBlob(t,a,r){return ri(this,void 0,void 0,function*(){try{return yield this.loadAudio("",t,a,r)}catch(l){throw this.emit("error",l),l}})}zoom(t){if(!this.decodedData)throw new Error("No audio loaded");this.renderer.zoom(t),this.emit("zoom",t)}getDecodedData(){return this.decodedData}exportPeaks({channels:t=2,maxLength:a=8e3,precision:r=1e4}={}){if(!this.decodedData)throw new Error("The audio has not been decoded yet");const l=Math.min(t,this.decodedData.numberOfChannels),c=[];for(let f=0;f<l;f++){const m=this.decodedData.getChannelData(f),g=[],p=m.length/a;for(let y=0;y<a;y++){const S=m.slice(Math.floor(y*p),Math.ceil((y+1)*p));let E=0;for(let T=0;T<S.length;T++){const O=S[T];Math.abs(O)>Math.abs(E)&&(E=O)}g.push(Math.round(E*r)/r)}c.push(g)}return c}getDuration(){let t=super.getDuration()||0;return t!==0&&t!==1/0||!this.decodedData||(t=this.decodedData.duration),t}toggleInteraction(t){this.options.interact=t}setTime(t){this.stopAtPosition=null,super.setTime(t),this.updateProgress(t),this.emit("timeupdate",t)}seekTo(t){const a=this.getDuration()*t;this.setTime(a)}play(t,a){const r=Object.create(null,{play:{get:()=>super.play}});return ri(this,void 0,void 0,function*(){t!=null&&this.setTime(t);const l=yield r.play.call(this);return a!=null&&(this.media instanceof EO?this.media.stopAt(a):this.stopAtPosition=a),l})}playPause(){return ri(this,void 0,void 0,function*(){return this.isPlaying()?this.pause():this.play()})}stop(){this.pause(),this.setTime(0)}skip(t){this.setTime(this.getCurrentTime()+t)}empty(){this.load("",[[0]],.001)}setMediaElement(t){this.unsubscribePlayerEvents(),super.setMediaElement(t),this.initPlayerEvents()}exportImage(){return ri(this,arguments,void 0,function*(t="image/png",a=1,r="dataURL"){return this.renderer.exportImage(t,a,r)})}destroy(){var t;this.emit("destroy"),(t=this.abortController)===null||t===void 0||t.abort(),this.plugins.forEach(a=>a.destroy()),this.subscriptions.forEach(a=>a()),this.unsubscribePlayerEvents(),this.timer.destroy(),this.renderer.destroy(),super.destroy()}}Wm.BasePlugin=class extends b0{constructor(e){super(),this.subscriptions=[],this.options=e}onInit(){}_init(e){this.wavesurfer=e,this.onInit()}destroy(){this.emit("destroy"),this.subscriptions.forEach(e=>e())}},Wm.dom=IZ;const YZ=({userMessage:e,setUserMessage:t,handleSendMessage:a,handleSendImage:r,handleSendVoice:l,selectedImage:c,setSelectedImage:f,audioBlob:m,setAudioBlob:g,isSending:p})=>{const{t:y}=DZ(),[S,E]=C.useState(!1),[T,O]=C.useState(!1),M=C.useRef(null),A=C.useRef(null),D=C.useRef([]),_=C.useRef(null),z=C.useRef(null),j=q=>{const Y=q.target.files?.[0];Y&&f(Y)},$=()=>{f(null)},V=async()=>{if(!navigator.mediaDevices?.getUserMedia){alert(y("chatInput.voice.notSupported"));return}if(S)M.current?.stop();else try{const q=await navigator.mediaDevices.getUserMedia({audio:!0}),Y=MediaRecorder.isTypeSupported("audio/webm")?"audio/webm":"audio/mp4",te=new MediaRecorder(q,{mimeType:Y});M.current=te,D.current=[],te.ondataavailable=G=>{G.data.size>0&&D.current.push(G.data)},te.onstop=()=>{const G=new Blob(D.current,{type:Y});g(G),E(!1),q.getTracks().forEach(K=>K.stop())},te.start(),E(!0)}catch(q){console.error(q),alert(y("chatInput.voice.permissionError"))}};C.useEffect(()=>{if(m&&_.current){z.current?.destroy();const q=URL.createObjectURL(m);z.current=Wm.create({container:_.current,waveColor:"#ccc",progressColor:"#7F28F8",cursorWidth:0,barWidth:3,barHeight:1.5,barGap:2,height:40,interact:!0}),z.current.load(q),z.current.on("finish",()=>O(!1))}},[m]);const H=()=>{z.current&&(z.current.playPause(),O(q=>!q))},P=()=>{E(!1),g(null),z.current?.destroy()};return re.jsxs("div",{style:{display:"flex",alignItems:"center",backgroundColor:"white",border:"1px solid #d1d5db",borderRadius:"9999px",padding:"0.5rem 0.75rem",boxShadow:"0 1px 3px rgba(0,0,0,0.1)",width:"95%",height:"56px"},children:[re.jsx("button",{style:{color:"#6b7280",background:"none",border:"none",margin:"0 0.5rem",cursor:"pointer"},onClick:()=>A.current?.click(),children:c?re.jsxs("div",{style:{position:"relative"},children:[re.jsx("img",{src:URL.createObjectURL(c),alt:y("chatInput.image.selectedAlt"),style:{width:"2rem",height:"2rem",borderRadius:"9999px",objectFit:"cover"}}),re.jsx(c0,{style:{position:"absolute",top:"-0.5rem",right:"-0.5rem",fontSize:"14px",color:"#ef4444",background:"white",borderRadius:"9999px",cursor:"pointer"},onClick:q=>{q.stopPropagation(),$()}})]}):re.jsx(m4,{style:{fontSize:"20px"}})}),re.jsx("input",{disabled:p,type:"file",accept:"image/*",ref:A,onChange:j,style:{display:"none"}}),re.jsx(Nd,{title:S?"Stop Recording":"Send Audio",children:re.jsx("button",{onClick:V,style:{color:S?"#ef4444":"#6b7280",background:"none",border:"none",margin:"0 0.5rem",cursor:"pointer"},children:S?re.jsx(g4,{style:{fontSize:"20px"}}):re.jsx(c4,{style:{fontSize:"20px"}})})}),re.jsx("div",{style:{flex:1,margin:"0 0.5rem",minWidth:0,maxWidth:"100%",display:"flex",alignItems:"center"},children:m?re.jsxs("div",{style:{display:"flex",alignItems:"center",width:"100%",backgroundColor:"#f3f4f6",padding:"0.5rem 1rem",borderRadius:"0.5rem"},children:[re.jsx("button",{style:{background:"none",border:"none",marginRight:"0.75rem",color:"#7f28f8",cursor:"pointer"},onClick:H,children:T?re.jsx(GT,{style:{fontSize:"24px"}}):re.jsx(qT,{style:{fontSize:"24px"}})}),re.jsx("div",{ref:_,style:{width:"100%",height:"2rem"}}),re.jsx(c0,{style:{fontSize:"18px",color:"#ef4444",marginLeft:"0.75rem",cursor:"pointer"},onClick:P})]}):S?re.jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"#f3f4f6",padding:"0.5rem 1rem",borderRadius:"0.5rem",animation:"pulse 2s infinite"},children:re.jsx("span",{children:"Recording"})}):re.jsx(Xu,{type:"text",value:e,onChange:q=>t(q.target.value),placeholder:"Message...",style:{width:"100%",border:"none",fontSize:"16px",margin:0,lineHeight:1.5,color:"#374151"},onKeyDown:q=>{q.key==="Enter"&&(q.preventDefault(),c?(r(c,e),$(),t("")):e.trim()&&(a(),t("")))}})}),re.jsx("button",{disabled:p,onClick:()=>{const q=!!c,Y=!!e.trim();q?(r(c,e),$(),t("")):!!m?(l(m),P()):Y&&a()},"aria-label":y("chatInput.send"),style:{color:"#6b7280",background:"none",border:"none",margin:"0 0.5rem",cursor:"pointer"},children:re.jsx(p4,{style:{fontSize:"20px"}})})]})};function XZ({suggestions:e,colorCode:t,sendMessageSuggestion:a}){return re.jsx("div",{style:{overflowX:"auto",overflowY:"hidden",whiteSpace:"nowrap",paddingTop:"4px",paddingBottom:"8px",width:"100%",boxSizing:"border-box",marginLeft:"4%",marginTop:"4px",marginBottom:"4px"},children:re.jsx("div",{style:{display:"inline-flex",gap:"0.5rem"},children:e?.map((r,l)=>re.jsx("button",{onClick:()=>a(r),style:{whiteSpace:"nowrap",padding:"0.5rem 1rem",border:`1px solid ${t}`,borderRadius:"9999px",backgroundColor:"white",cursor:"pointer",fontSize:"14px",color:t,flexShrink:0},onMouseEnter:c=>{c.currentTarget.style.backgroundColor="#f3f3f3"},onMouseLeave:c=>{c.currentTarget.style.backgroundColor="white"},children:r},l))})})}function WZ(){return re.jsxs("div",{className:"jawebcss-powered-container",children:[re.jsx("span",{className:"jawebcss-powered-label",children:"Powered by"}),re.jsx("a",{href:"https://jaweb.me/",target:"_blank",className:"jawebcss-powered-link",rel:"noopener noreferrer",children:"Jaweb"})]})}const ZZ=()=>re.jsxs("div",{className:"typing-animation",children:[re.jsx("span",{children:"."}),re.jsx("span",{children:"."}),re.jsx("span",{children:"."})]}),KZ=({message:e,colorCode:t,handleAddToCart:a,handleRemoveFromCart:r})=>{const[l,c]=C.useState({}),[f,m]=C.useState({}),g=T=>{const O=/(https?:\/\/[^\s]+)/g;return T?.split(O).map((M,A)=>O.test(M)?re.jsx("a",{href:M.trim(),style:{color:"#00b3bc"},target:"_blank",rel:"noopener noreferrer",className:"underline break-words",children:M},A):re.jsx("span",{children:M},A))},p=T=>{const O=T.trim();if(!O.includes("Name:")||!O.includes("VariantId"))return null;const M=O.match(/Name\s*[:\-]\s*(.+)/i),A=O.match(/Price\s*[:\-]\s*(.+)/i),D=O.match(/Link\s*[:\-]\s*(https?:\/\/[^\s]+)/i),_=O.match(/VariantId\s*[:\-]\s*(.+)/i),z=O.match(/variant_tag_name\s*[:\-]\s*(.+)/i),j=O.match(/^color\s*[:\-]\s*([^\r\n]*)$/im),$=O.match(/^size\s*[:\-]\s*([^\r\n]*)$/im);return!M||!A||!D||!_||!z?null:{name:M[1].trim(),price:A[1].trim(),link:D[1].trim(),image:"",variant_id:_[1].trim(),variant_tag_name:z[1].trim(),color:j?.[1]?.trim(),size:$?.[1]?.trim()}},y=C.useMemo(()=>{const T=e.split("|||").map(A=>A.trim()).filter(Boolean),O=[];let M=null;for(const A of T)if(A.startsWith("img - ")){const D=A.replace(/^img\s*[-:]\s*/,"").trim();if(M)M.image=D;else{const _=[...O].reverse().find(z=>z.type==="product");_&&(_.data.image=D)}}else if(A.includes("Name:")&&A.includes("VariantId")){const D=p(A);D&&(O.push({type:"product",data:D}),M=D)}else O.push({type:"text",data:A}),M=null;return O},[e]),S=C.useMemo(()=>{const T={};for(const O of y)if(O.type==="product"){const M=O.data;T[M.variant_tag_name]||(T[M.variant_tag_name]=[]),T[M.variant_tag_name].push(M)}return T},[y]),E=(T,O=22)=>T.length>O?T.slice(0,O)+"...":T;return re.jsx("div",{className:"space-y-6 mt-4",children:(()=>{const T=new Set;return y.map((O,M)=>{if(O.type==="text")return re.jsx("p",{className:"whitespace-pre-wrap break-words",children:g(O.data)},M);if(O.type==="product"){const D=O.data.variant_tag_name;if(T.has(D))return null;T.add(D);const _=S[D],z=f[D]||_[0].variant_id,j=_.find(G=>G.variant_id===z)||_[0],$=l[j.variant_id]||0,V=Array.from(new Set(_.map(G=>G.color?.trim()).filter(G=>G&&G.toLowerCase()!=="none"))),H=Array.from(new Set(_.map(G=>G.size?.trim()).filter(G=>G&&G.toLowerCase()!=="none"))),P=(G,K)=>_.some(J=>J.color===G&&J.size===K),q=(G,K)=>{const J=_.find(ie=>(!G||ie.color===G)&&(!K||ie.size===K));J&&m(ie=>({...ie,[D]:J.variant_id}))},Y=async()=>{const G=$+1;c(K=>({...K,[j.variant_id]:G})),await a(j.variant_id,j.name,1)},te=async()=>{if($===0)return;const G=$-1;c(K=>({...K,[j.variant_id]:G})),await r(j.variant_id,1)};return re.jsxs("div",{className:"product-card",children:[re.jsx("div",{className:"product-image-container",children:re.jsx("img",{src:j.image,alt:j.name,className:"product-image",onClick:()=>window.open(j.link,"_blank")})}),re.jsxs("div",{className:"product-details",children:[re.jsx("a",{href:j.link,target:"_blank",rel:"noopener noreferrer",className:"product-name",children:E(j.name)}),re.jsx("p",{className:"product-price",children:j.price}),V.length>0&&re.jsxs("div",{children:[re.jsx("p",{className:"label",children:"Color:"}),re.jsx("div",{className:"color-options",children:V.map(G=>{const K=!P(G,j.size),J=G===j.color;return re.jsx("button",{disabled:K,onClick:()=>q(G,j.size),className:`color-button ${J?"active":""} ${K?"disabled":""}`,style:J?{backgroundColor:t,color:"white"}:{},children:G==="None"?"One Color":G},G)})})]}),H.length>0&&re.jsxs("div",{children:[re.jsx("p",{className:"label",children:"Size:"}),re.jsx("div",{className:"size-options",children:H.map(G=>{const K=!P(j.color,G),J=G===j.size;return re.jsx("button",{disabled:K,onClick:()=>q(j.color,G),className:`size-button ${J?"active":""} ${K?"disabled":""}`,style:J?{backgroundColor:t,color:"white"}:{},children:G==="None"?"One size":G},G)})})]}),re.jsxs("div",{className:"cart-controls",children:[re.jsx("button",{onClick:te,className:"cart-button",children:"–"}),re.jsx("span",{className:"cart-count",children:$}),re.jsx("button",{onClick:Y,className:"cart-button increment",style:{backgroundColor:t,color:"#fff"},children:"+"})]})]})]},M)}return null})})()})},H6=({message:e})=>{const t=e.find(r=>r.type==="image_url")?.image_url?.url,a=e?.isBusiness;return re.jsx("div",{children:re.jsx("div",{children:t&&re.jsx("div",{className:"mb-2 bg-transparent text-white ",children:re.jsx("img",{src:t,alt:"Chat image",style:{width:200},className:`rounded-md bg-transparent mt-2 max-w-xs ${a?"border border-gray-300 shadow-sm":""}`})})})})},QZ=({message:e,colorCode:t})=>{const a=e.find(l=>l.type==="text")?.text,r=l=>{const c=/(https?:\/\/[^\s]+)/g;return l.split(c).map((f,m)=>c.test(f)?re.jsx("a",{href:f.trim(),style:{color:t},target:"_blank",rel:"noopener noreferrer",className:"underline break-words",children:f},m):re.jsx("span",{children:f},m))};return re.jsx(re.Fragment,{children:a&&re.jsx("div",{style:{color:"white",border:1,backgroundColor:t,paddingTop:10,paddingBottom:10,paddingInline:14,maxWidth:"85%",lineHeight:1.4,borderRadius:"16px",wordBreak:"break-word"},children:re.jsx("p",{children:r(a)})})})},JZ=({link:e,colorCode:t,transcription:a})=>{const r=C.useRef(null),l=C.useRef(null),[c,f]=C.useState(!1),[m,g]=C.useState(!1);C.useEffect(()=>{if(r.current)return l.current?.destroy(),l.current=Wm.create({container:r.current,waveColor:"white",progressColor:"white",cursorWidth:0,barWidth:3,barHeight:1.5,barGap:2,height:40,interact:!0}),l.current.load(e),l.current.on("finish",()=>f(!1)),()=>{l.current?.destroy()}},[e,t]);const p=()=>{l.current&&(l.current.playPause(),f(y=>!y))};return re.jsxs("div",{style:{backgroundColor:t,padding:"12px",borderRadius:"20px",color:"white",maxWidth:"350px",marginBottom:"16px"},children:[re.jsxs("div",{style:{display:"flex",alignItems:"center"},children:[re.jsx("button",{onClick:p,style:{background:"transparent",border:"none",color:"white",marginRight:"12px",cursor:"pointer"},children:c?re.jsx(GT,{style:{fontSize:"24px"}}):re.jsx(qT,{style:{fontSize:"24px"}})}),re.jsx("div",{ref:r,style:{width:"130px",height:"40px",overflow:"hidden",color:"white"}})]}),a&&re.jsxs("div",{style:{marginTop:"12px",fontSize:"14px",color:"rgba(255,255,255,0.85)"},children:[re.jsx("button",{onClick:()=>g(!m),style:{background:"none",border:"none",color:"white",textDecoration:"underline",fontSize:"13px",cursor:"pointer",padding:0},children:m?"Hide transcript":"Show transcript"}),m&&re.jsx("p",{style:{marginTop:"6px",lineHeight:"1.4"},children:a})]})]})},eK=({status:e,user:t})=>{if(!e||!t)return null;let a=`${t} is ${e}`;return e==="typing"?a=`${t} is typing...`:a="",re.jsx(re.Fragment,{children:a&&re.jsx("div",{className:"flex justify-center mb-2",children:re.jsx("span",{className:"px-3 py-1 bg-gray-100 text-gray-500 text-sm rounded-full",children:a})})})},tK=({message:e,colorCode:t})=>{const a=l=>{const c=/(https?:\/\/[^\s]+)/g;return l?.split(c).map((f,m)=>c.test(f)?re.jsx("a",{href:f.trim(),style:{color:t},target:"_blank",rel:"noopener noreferrer",className:"underline break-words",children:f},m):re.jsx("span",{children:f},m))};if(e?.startsWith("Add this to cart for me")&&e?.includes("name:")){const c=e?.match(/name:([^,]+)/i)?.[1]?.trim()||"Product";return re.jsxs("div",{style:{backgroundColor:"#E8F5E9",border:"1px solid #C8E6C9",borderRadius:"12px",padding:"12px 16px",color:"#2E7D32",fontWeight:500,fontSize:"15px",maxWidth:"360px",margin:"0 auto",textAlign:"center"},children:["✅ ",re.jsx("strong",{children:c})," has been added to your cart."]})}return re.jsx("p",{children:a(e)})},wO=C.createContext({});function TO(e){const t=C.useRef(null);return t.current===null&&(t.current=e()),t.current}const OO=typeof window<"u",B6=OO?C.useLayoutEffect:C.useEffect,nC=C.createContext(null);function RO(e,t){e.indexOf(t)===-1&&e.push(t)}function AO(e,t){const a=e.indexOf(t);a>-1&&e.splice(a,1)}const Wu=(e,t,a)=>a>t?t:a<e?e:a;function MO(e,t){return t?`${e}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${t}`:e}var nK={};let Zm=()=>{},Zu=()=>{};nK.NODE_ENV!=="production"&&(Zm=(e,t,a)=>{!e&&typeof console<"u"&&console.warn(MO(t,a))},Zu=(e,t,a)=>{if(!e)throw new Error(MO(t,a))});const Ku={},P6=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function U6(e){return typeof e=="object"&&e!==null}const I6=e=>/^0[^.\s]+$/u.test(e);function _O(e){let t;return()=>(t===void 0&&(t=e()),t)}const bl=e=>e,aK=(e,t)=>a=>t(e(a)),S0=(...e)=>e.reduce(aK),C0=(e,t,a)=>{const r=t-e;return r===0?1:(a-e)/r};class DO{constructor(){this.subscriptions=[]}add(t){return RO(this.subscriptions,t),()=>AO(this.subscriptions,t)}notify(t,a,r){const l=this.subscriptions.length;if(l)if(l===1)this.subscriptions[0](t,a,r);else for(let c=0;c<l;c++){const f=this.subscriptions[c];f&&f(t,a,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const is=e=>e*1e3,Qs=e=>e/1e3;function F6(e,t){return t?e*(1e3/t):0}const k6=new Set;function NO(e,t,a){e||k6.has(t)||(console.warn(MO(t,a)),k6.add(t))}const G6=(e,t,a)=>(((1-3*a+3*t)*e+(3*a-6*t))*e+3*t)*e,rK=1e-7,iK=12;function oK(e,t,a,r,l){let c,f,m=0;do f=t+(a-t)/2,c=G6(f,r,l)-e,c>0?a=f:t=f;while(Math.abs(c)>rK&&++m<iK);return f}function x0(e,t,a,r){if(e===t&&a===r)return bl;const l=c=>oK(c,0,1,e,a);return c=>c===0||c===1?c:G6(l(c),t,r)}const q6=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Y6=e=>t=>1-e(1-t),X6=x0(.33,1.53,.69,.99),$O=Y6(X6),W6=q6($O),Z6=e=>(e*=2)<1?.5*$O(e):.5*(2-Math.pow(2,-10*(e-1))),zO=e=>1-Math.sin(Math.acos(e)),K6=Y6(zO),Q6=q6(zO),lK=x0(.42,0,1,1),sK=x0(0,0,.58,1),J6=x0(.42,0,.58,1),uK=e=>Array.isArray(e)&&typeof e[0]!="number",ez=e=>Array.isArray(e)&&typeof e[0]=="number",tz={linear:bl,easeIn:lK,easeInOut:J6,easeOut:sK,circIn:zO,circInOut:Q6,circOut:K6,backIn:$O,backInOut:W6,backOut:X6,anticipate:Z6},cK=e=>typeof e=="string",nz=e=>{if(ez(e)){Zu(e.length===4,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");const[t,a,r,l]=e;return x0(t,a,r,l)}else if(cK(e))return Zu(tz[e]!==void 0,`Invalid easing type '${e}'`,"invalid-easing-type"),tz[e];return e},aC=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function fK(e,t){let a=new Set,r=new Set,l=!1,c=!1;const f=new WeakSet;let m={delta:0,timestamp:0,isProcessing:!1};function g(y){f.has(y)&&(p.schedule(y),e()),y(m)}const p={schedule:(y,S=!1,E=!1)=>{const O=E&&l?a:r;return S&&f.add(y),O.has(y)||O.add(y),y},cancel:y=>{r.delete(y),f.delete(y)},process:y=>{if(m=y,l){c=!0;return}l=!0,[a,r]=[r,a],a.forEach(g),a.clear(),l=!1,c&&(c=!1,p.process(y))}};return p}const dK=40;function az(e,t){let a=!1,r=!0;const l={delta:0,timestamp:0,isProcessing:!1},c=()=>a=!0,f=aC.reduce((z,j)=>(z[j]=fK(c),z),{}),{setup:m,read:g,resolveKeyframes:p,preUpdate:y,update:S,preRender:E,render:T,postRender:O}=f,M=()=>{const z=Ku.useManualTiming?l.timestamp:performance.now();a=!1,Ku.useManualTiming||(l.delta=r?1e3/60:Math.max(Math.min(z-l.timestamp,dK),1)),l.timestamp=z,l.isProcessing=!0,m.process(l),g.process(l),p.process(l),y.process(l),S.process(l),E.process(l),T.process(l),O.process(l),l.isProcessing=!1,a&&t&&(r=!1,e(M))},A=()=>{a=!0,r=!0,l.isProcessing||e(M)};return{schedule:aC.reduce((z,j)=>{const $=f[j];return z[j]=(V,H=!1,P=!1)=>(a||A(),$.schedule(V,H,P)),z},{}),cancel:z=>{for(let j=0;j<aC.length;j++)f[aC[j]].cancel(z)},state:l,steps:f}}const{schedule:Pa,cancel:af,state:ii,steps:jO}=az(typeof requestAnimationFrame<"u"?requestAnimationFrame:bl,!0);let rC;function hK(){rC=void 0}const vo={now:()=>(rC===void 0&&vo.set(ii.isProcessing||Ku.useManualTiming?ii.timestamp:performance.now()),rC),set:e=>{rC=e,queueMicrotask(hK)}},rz=e=>t=>typeof t=="string"&&t.startsWith(e),LO=rz("--"),mK=rz("var(--"),VO=e=>mK(e)?pK.test(e.split("/*")[0].trim()):!1,pK=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Km={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},E0={...Km,transform:e=>Wu(0,1,e)},iC={...Km,default:1},w0=e=>Math.round(e*1e5)/1e5,HO=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function gK(e){return e==null}const vK=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,BO=(e,t)=>a=>!!(typeof a=="string"&&vK.test(a)&&a.startsWith(e)||t&&!gK(a)&&Object.prototype.hasOwnProperty.call(a,t)),iz=(e,t,a)=>r=>{if(typeof r!="string")return r;const[l,c,f,m]=r.match(HO);return{[e]:parseFloat(l),[t]:parseFloat(c),[a]:parseFloat(f),alpha:m!==void 0?parseFloat(m):1}},yK=e=>Wu(0,255,e),PO={...Km,transform:e=>Math.round(yK(e))},Hd={test:BO("rgb","red"),parse:iz("red","green","blue"),transform:({red:e,green:t,blue:a,alpha:r=1})=>"rgba("+PO.transform(e)+", "+PO.transform(t)+", "+PO.transform(a)+", "+w0(E0.transform(r))+")"};function bK(e){let t="",a="",r="",l="";return e.length>5?(t=e.substring(1,3),a=e.substring(3,5),r=e.substring(5,7),l=e.substring(7,9)):(t=e.substring(1,2),a=e.substring(2,3),r=e.substring(3,4),l=e.substring(4,5),t+=t,a+=a,r+=r,l+=l),{red:parseInt(t,16),green:parseInt(a,16),blue:parseInt(r,16),alpha:l?parseInt(l,16)/255:1}}const UO={test:BO("#"),parse:bK,transform:Hd.transform},T0=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),rf=T0("deg"),Js=T0("%"),on=T0("px"),SK=T0("vh"),CK=T0("vw"),oz={...Js,parse:e=>Js.parse(e)/100,transform:e=>Js.transform(e*100)},Qm={test:BO("hsl","hue"),parse:iz("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:a,alpha:r=1})=>"hsla("+Math.round(e)+", "+Js.transform(w0(t))+", "+Js.transform(w0(a))+", "+w0(E0.transform(r))+")"},Cr={test:e=>Hd.test(e)||UO.test(e)||Qm.test(e),parse:e=>Hd.test(e)?Hd.parse(e):Qm.test(e)?Qm.parse(e):UO.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Hd.transform(e):Qm.transform(e),getAnimatableNone:e=>{const t=Cr.parse(e);return t.alpha=0,Cr.transform(t)}},xK=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function EK(e){return isNaN(e)&&typeof e=="string"&&(e.match(HO)?.length||0)+(e.match(xK)?.length||0)>0}const lz="number",sz="color",wK="var",TK="var(",uz="${}",OK=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function O0(e){const t=e.toString(),a=[],r={color:[],number:[],var:[]},l=[];let c=0;const m=t.replace(OK,g=>(Cr.test(g)?(r.color.push(c),l.push(sz),a.push(Cr.parse(g))):g.startsWith(TK)?(r.var.push(c),l.push(wK),a.push(g)):(r.number.push(c),l.push(lz),a.push(parseFloat(g))),++c,uz)).split(uz);return{values:a,split:m,indexes:r,types:l}}function cz(e){return O0(e).values}function fz(e){const{split:t,types:a}=O0(e),r=t.length;return l=>{let c="";for(let f=0;f<r;f++)if(c+=t[f],l[f]!==void 0){const m=a[f];m===lz?c+=w0(l[f]):m===sz?c+=Cr.transform(l[f]):c+=l[f]}return c}}const RK=e=>typeof e=="number"?0:Cr.test(e)?Cr.getAnimatableNone(e):e;function AK(e){const t=cz(e);return fz(e)(t.map(RK))}const of={test:EK,parse:cz,createTransformer:fz,getAnimatableNone:AK};function IO(e,t,a){return a<0&&(a+=1),a>1&&(a-=1),a<1/6?e+(t-e)*6*a:a<1/2?t:a<2/3?e+(t-e)*(2/3-a)*6:e}function MK({hue:e,saturation:t,lightness:a,alpha:r}){e/=360,t/=100,a/=100;let l=0,c=0,f=0;if(!t)l=c=f=a;else{const m=a<.5?a*(1+t):a+t-a*t,g=2*a-m;l=IO(g,m,e+1/3),c=IO(g,m,e),f=IO(g,m,e-1/3)}return{red:Math.round(l*255),green:Math.round(c*255),blue:Math.round(f*255),alpha:r}}function oC(e,t){return a=>a>0?t:e}const Za=(e,t,a)=>e+(t-e)*a,FO=(e,t,a)=>{const r=e*e,l=a*(t*t-r)+r;return l<0?0:Math.sqrt(l)},_K=[UO,Hd,Qm],DK=e=>_K.find(t=>t.test(e));function dz(e){const t=DK(e);if(Zm(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!t)return!1;let a=t.parse(e);return t===Qm&&(a=MK(a)),a}const hz=(e,t)=>{const a=dz(e),r=dz(t);if(!a||!r)return oC(e,t);const l={...a};return c=>(l.red=FO(a.red,r.red,c),l.green=FO(a.green,r.green,c),l.blue=FO(a.blue,r.blue,c),l.alpha=Za(a.alpha,r.alpha,c),Hd.transform(l))},kO=new Set(["none","hidden"]);function NK(e,t){return kO.has(e)?a=>a<=0?e:t:a=>a>=1?t:e}function $K(e,t){return a=>Za(e,t,a)}function GO(e){return typeof e=="number"?$K:typeof e=="string"?VO(e)?oC:Cr.test(e)?hz:LK:Array.isArray(e)?mz:typeof e=="object"?Cr.test(e)?hz:zK:oC}function mz(e,t){const a=[...e],r=a.length,l=e.map((c,f)=>GO(c)(c,t[f]));return c=>{for(let f=0;f<r;f++)a[f]=l[f](c);return a}}function zK(e,t){const a={...e,...t},r={};for(const l in a)e[l]!==void 0&&t[l]!==void 0&&(r[l]=GO(e[l])(e[l],t[l]));return l=>{for(const c in r)a[c]=r[c](l);return a}}function jK(e,t){const a=[],r={color:0,var:0,number:0};for(let l=0;l<t.values.length;l++){const c=t.types[l],f=e.indexes[c][r[c]],m=e.values[f]??0;a[l]=m,r[c]++}return a}const LK=(e,t)=>{const a=of.createTransformer(t),r=O0(e),l=O0(t);return r.indexes.var.length===l.indexes.var.length&&r.indexes.color.length===l.indexes.color.length&&r.indexes.number.length>=l.indexes.number.length?kO.has(e)&&!l.values.length||kO.has(t)&&!r.values.length?NK(e,t):S0(mz(jK(r,l),l.values),a):(Zm(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),oC(e,t))};function pz(e,t,a){return typeof e=="number"&&typeof t=="number"&&typeof a=="number"?Za(e,t,a):GO(e)(e,t)}const VK=e=>{const t=({timestamp:a})=>e(a);return{start:(a=!0)=>Pa.update(t,a),stop:()=>af(t),now:()=>ii.isProcessing?ii.timestamp:vo.now()}},gz=(e,t,a=10)=>{let r="";const l=Math.max(Math.round(t/a),2);for(let c=0;c<l;c++)r+=Math.round(e(c/(l-1))*1e4)/1e4+", ";return`linear(${r.substring(0,r.length-2)})`},lC=2e4;function qO(e){let t=0;const a=50;let r=e.next(t);for(;!r.done&&t<lC;)t+=a,r=e.next(t);return t>=lC?1/0:t}function HK(e,t=100,a){const r=a({...e,keyframes:[0,t]}),l=Math.min(qO(r),lC);return{type:"keyframes",ease:c=>r.next(l*c).value/t,duration:Qs(l)}}const BK=5;function vz(e,t,a){const r=Math.max(t-BK,0);return F6(a-e(r),t-r)}const Ka={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},YO=.001;function PK({duration:e=Ka.duration,bounce:t=Ka.bounce,velocity:a=Ka.velocity,mass:r=Ka.mass}){let l,c;Zm(e<=is(Ka.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let f=1-t;f=Wu(Ka.minDamping,Ka.maxDamping,f),e=Wu(Ka.minDuration,Ka.maxDuration,Qs(e)),f<1?(l=p=>{const y=p*f,S=y*e,E=y-a,T=XO(p,f),O=Math.exp(-S);return YO-E/T*O},c=p=>{const S=p*f*e,E=S*a+a,T=Math.pow(f,2)*Math.pow(p,2)*e,O=Math.exp(-S),M=XO(Math.pow(p,2),f);return(-l(p)+YO>0?-1:1)*((E-T)*O)/M}):(l=p=>{const y=Math.exp(-p*e),S=(p-a)*e+1;return-YO+y*S},c=p=>{const y=Math.exp(-p*e),S=(a-p)*(e*e);return y*S});const m=5/e,g=IK(l,c,m);if(e=is(e),isNaN(g))return{stiffness:Ka.stiffness,damping:Ka.damping,duration:e};{const p=Math.pow(g,2)*r;return{stiffness:p,damping:f*2*Math.sqrt(r*p),duration:e}}}const UK=12;function IK(e,t,a){let r=a;for(let l=1;l<UK;l++)r=r-e(r)/t(r);return r}function XO(e,t){return e*Math.sqrt(1-t*t)}const FK=["duration","bounce"],kK=["stiffness","damping","mass"];function yz(e,t){return t.some(a=>e[a]!==void 0)}function GK(e){let t={velocity:Ka.velocity,stiffness:Ka.stiffness,damping:Ka.damping,mass:Ka.mass,isResolvedFromDuration:!1,...e};if(!yz(e,kK)&&yz(e,FK))if(e.visualDuration){const a=e.visualDuration,r=2*Math.PI/(a*1.2),l=r*r,c=2*Wu(.05,1,1-(e.bounce||0))*Math.sqrt(l);t={...t,mass:Ka.mass,stiffness:l,damping:c}}else{const a=PK(e);t={...t,...a,mass:Ka.mass},t.isResolvedFromDuration=!0}return t}function sC(e=Ka.visualDuration,t=Ka.bounce){const a=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:l}=a;const c=a.keyframes[0],f=a.keyframes[a.keyframes.length-1],m={done:!1,value:c},{stiffness:g,damping:p,mass:y,duration:S,velocity:E,isResolvedFromDuration:T}=GK({...a,velocity:-Qs(a.velocity||0)}),O=E||0,M=p/(2*Math.sqrt(g*y)),A=f-c,D=Qs(Math.sqrt(g/y)),_=Math.abs(A)<5;r||(r=_?Ka.restSpeed.granular:Ka.restSpeed.default),l||(l=_?Ka.restDelta.granular:Ka.restDelta.default);let z;if(M<1){const $=XO(D,M);z=V=>{const H=Math.exp(-M*D*V);return f-H*((O+M*D*A)/$*Math.sin($*V)+A*Math.cos($*V))}}else if(M===1)z=$=>f-Math.exp(-D*$)*(A+(O+D*A)*$);else{const $=D*Math.sqrt(M*M-1);z=V=>{const H=Math.exp(-M*D*V),P=Math.min($*V,300);return f-H*((O+M*D*A)*Math.sinh(P)+$*A*Math.cosh(P))/$}}const j={calculatedDuration:T&&S||null,next:$=>{const V=z($);if(T)m.done=$>=S;else{let H=$===0?O:0;M<1&&(H=$===0?is(O):vz(z,$,V));const P=Math.abs(H)<=r,q=Math.abs(f-V)<=l;m.done=P&&q}return m.value=m.done?f:V,m},toString:()=>{const $=Math.min(qO(j),lC),V=gz(H=>j.next($*H).value,$,30);return $+"ms "+V},toTransition:()=>{}};return j}sC.applyToOptions=e=>{const t=HK(e,100,sC);return e.ease=t.ease,e.duration=is(t.duration),e.type="keyframes",e};function WO({keyframes:e,velocity:t=0,power:a=.8,timeConstant:r=325,bounceDamping:l=10,bounceStiffness:c=500,modifyTarget:f,min:m,max:g,restDelta:p=.5,restSpeed:y}){const S=e[0],E={done:!1,value:S},T=P=>m!==void 0&&P<m||g!==void 0&&P>g,O=P=>m===void 0?g:g===void 0||Math.abs(m-P)<Math.abs(g-P)?m:g;let M=a*t;const A=S+M,D=f===void 0?A:f(A);D!==A&&(M=D-S);const _=P=>-M*Math.exp(-P/r),z=P=>D+_(P),j=P=>{const q=_(P),Y=z(P);E.done=Math.abs(q)<=p,E.value=E.done?D:Y};let $,V;const H=P=>{T(E.value)&&($=P,V=sC({keyframes:[E.value,O(E.value)],velocity:vz(z,P,E.value),damping:l,stiffness:c,restDelta:p,restSpeed:y}))};return H(0),{calculatedDuration:null,next:P=>{let q=!1;return!V&&$===void 0&&(q=!0,j(P),H(P)),$!==void 0&&P>=$?V.next(P-$):(!q&&j(P),E)}}}function qK(e,t,a){const r=[],l=a||Ku.mix||pz,c=e.length-1;for(let f=0;f<c;f++){let m=l(e[f],e[f+1]);if(t){const g=Array.isArray(t)?t[f]||bl:t;m=S0(g,m)}r.push(m)}return r}function YK(e,t,{clamp:a=!0,ease:r,mixer:l}={}){const c=e.length;if(Zu(c===t.length,"Both input and output ranges must be the same length","range-length"),c===1)return()=>t[0];if(c===2&&t[0]===t[1])return()=>t[1];const f=e[0]===e[1];e[0]>e[c-1]&&(e=[...e].reverse(),t=[...t].reverse());const m=qK(t,r,l),g=m.length,p=y=>{if(f&&y<e[0])return t[0];let S=0;if(g>1)for(;S<e.length-2&&!(y<e[S+1]);S++);const E=C0(e[S],e[S+1],y);return m[S](E)};return a?y=>p(Wu(e[0],e[c-1],y)):p}function XK(e,t){const a=e[e.length-1];for(let r=1;r<=t;r++){const l=C0(0,t,r);e.push(Za(a,1,l))}}function WK(e){const t=[0];return XK(t,e.length-1),t}function ZK(e,t){return e.map(a=>a*t)}function KK(e,t){return e.map(()=>t||J6).splice(0,e.length-1)}function Jm({duration:e=300,keyframes:t,times:a,ease:r="easeInOut"}){const l=uK(r)?r.map(nz):nz(r),c={done:!1,value:t[0]},f=ZK(a&&a.length===t.length?a:WK(t),e),m=YK(f,t,{ease:Array.isArray(l)?l:KK(t,l)});return{calculatedDuration:e,next:g=>(c.value=m(g),c.done=g>=e,c)}}const QK=e=>e!==null;function ZO(e,{repeat:t,repeatType:a="loop"},r,l=1){const c=e.filter(QK),m=l<0||t&&a!=="loop"&&t%2===1?0:c.length-1;return!m||r===void 0?c[m]:r}const JK={decay:WO,inertia:WO,tween:Jm,keyframes:Jm,spring:sC};function bz(e){typeof e.type=="string"&&(e.type=JK[e.type])}class KO{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,a){return this.finished.then(t,a)}}var eQ={};const tQ=e=>e/100;class QO extends KO{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{const{motionValue:a}=this.options;a&&a.updatedAt!==vo.now()&&this.tick(vo.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;bz(t);const{type:a=Jm,repeat:r=0,repeatDelay:l=0,repeatType:c,velocity:f=0}=t;let{keyframes:m}=t;const g=a||Jm;eQ.NODE_ENV!=="production"&&g!==Jm&&Zu(m.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${m}`,"spring-two-frames"),g!==Jm&&typeof m[0]!="number"&&(this.mixKeyframes=S0(tQ,pz(m[0],m[1])),m=[0,100]);const p=g({...t,keyframes:m});c==="mirror"&&(this.mirroredGenerator=g({...t,keyframes:[...m].reverse(),velocity:-f})),p.calculatedDuration===null&&(p.calculatedDuration=qO(p));const{calculatedDuration:y}=p;this.calculatedDuration=y,this.resolvedDuration=y+l,this.totalDuration=this.resolvedDuration*(r+1)-l,this.generator=p}updateTime(t){const a=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=a}tick(t,a=!1){const{generator:r,totalDuration:l,mixKeyframes:c,mirroredGenerator:f,resolvedDuration:m,calculatedDuration:g}=this;if(this.startTime===null)return r.next(0);const{delay:p=0,keyframes:y,repeat:S,repeatType:E,repeatDelay:T,type:O,onUpdate:M,finalKeyframe:A}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-l/this.speed,this.startTime)),a?this.currentTime=t:this.updateTime(t);const D=this.currentTime-p*(this.playbackSpeed>=0?1:-1),_=this.playbackSpeed>=0?D<0:D>l;this.currentTime=Math.max(D,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=l);let z=this.currentTime,j=r;if(S){const P=Math.min(this.currentTime,l)/m;let q=Math.floor(P),Y=P%1;!Y&&P>=1&&(Y=1),Y===1&&q--,q=Math.min(q,S+1),!!(q%2)&&(E==="reverse"?(Y=1-Y,T&&(Y-=T/m)):E==="mirror"&&(j=f)),z=Wu(0,1,Y)*m}const $=_?{done:!1,value:y[0]}:j.next(z);c&&($.value=c($.value));let{done:V}=$;!_&&g!==null&&(V=this.playbackSpeed>=0?this.currentTime>=l:this.currentTime<=0);const H=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&V);return H&&O!==WO&&($.value=ZO(y,this.options,A,this.speed)),M&&M($.value),H&&this.finish(),$}then(t,a){return this.finished.then(t,a)}get duration(){return Qs(this.calculatedDuration)}get time(){return Qs(this.currentTime)}set time(t){t=is(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(vo.now());const a=this.playbackSpeed!==t;this.playbackSpeed=t,a&&(this.time=Qs(this.currentTime))}play(){if(this.isStopped)return;const{driver:t=VK,startTime:a}=this.options;this.driver||(this.driver=t(l=>this.tick(l))),this.options.onPlay?.();const r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=a??r),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(vo.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),t.observe(this)}}function nQ(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const Bd=e=>e*180/Math.PI,JO=e=>{const t=Bd(Math.atan2(e[1],e[0]));return eR(t)},aQ={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:JO,rotateZ:JO,skewX:e=>Bd(Math.atan(e[1])),skewY:e=>Bd(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},eR=e=>(e=e%360,e<0&&(e+=360),e),Sz=JO,Cz=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),xz=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),rQ={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Cz,scaleY:xz,scale:e=>(Cz(e)+xz(e))/2,rotateX:e=>eR(Bd(Math.atan2(e[6],e[5]))),rotateY:e=>eR(Bd(Math.atan2(-e[2],e[0]))),rotateZ:Sz,rotate:Sz,skewX:e=>Bd(Math.atan(e[4])),skewY:e=>Bd(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function tR(e){return e.includes("scale")?1:0}function nR(e,t){if(!e||e==="none")return tR(t);const a=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,l;if(a)r=rQ,l=a;else{const m=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=aQ,l=m}if(!l)return tR(t);const c=r[t],f=l[1].split(",").map(oQ);return typeof c=="function"?c(f):f[c]}const iQ=(e,t)=>{const{transform:a="none"}=getComputedStyle(e);return nR(a,t)};function oQ(e){return parseFloat(e.trim())}const ep=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],tp=new Set(ep),Ez=e=>e===Km||e===on,lQ=new Set(["x","y","z"]),sQ=ep.filter(e=>!lQ.has(e));function uQ(e){const t=[];return sQ.forEach(a=>{const r=e.getValue(a);r!==void 0&&(t.push([a,r.get()]),r.set(a.startsWith("scale")?1:0))}),t}const Pd={width:({x:e},{paddingLeft:t="0",paddingRight:a="0"})=>e.max-e.min-parseFloat(t)-parseFloat(a),height:({y:e},{paddingTop:t="0",paddingBottom:a="0"})=>e.max-e.min-parseFloat(t)-parseFloat(a),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:(e,{transform:t})=>nR(t,"x"),y:(e,{transform:t})=>nR(t,"y")};Pd.translateX=Pd.x,Pd.translateY=Pd.y;const Ud=new Set;let aR=!1,rR=!1,iR=!1;function wz(){if(rR){const e=Array.from(Ud).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),a=new Map;t.forEach(r=>{const l=uQ(r);l.length&&(a.set(r,l),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const l=a.get(r);l&&l.forEach(([c,f])=>{r.getValue(c)?.set(f)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}rR=!1,aR=!1,Ud.forEach(e=>e.complete(iR)),Ud.clear()}function Tz(){Ud.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(rR=!0)})}function cQ(){iR=!0,Tz(),wz(),iR=!1}class oR{constructor(t,a,r,l,c,f=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=a,this.name=r,this.motionValue=l,this.element=c,this.isAsync=f}scheduleResolve(){this.state="scheduled",this.isAsync?(Ud.add(this),aR||(aR=!0,Pa.read(Tz),Pa.resolveKeyframes(wz))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:a,element:r,motionValue:l}=this;if(t[0]===null){const c=l?.get(),f=t[t.length-1];if(c!==void 0)t[0]=c;else if(r&&a){const m=r.readValue(a,f);m!=null&&(t[0]=m)}t[0]===void 0&&(t[0]=f),l&&c===void 0&&l.set(t[0])}nQ(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),Ud.delete(this)}cancel(){this.state==="scheduled"&&(Ud.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const fQ=e=>e.startsWith("--");function dQ(e,t,a){fQ(t)?e.style.setProperty(t,a):e.style[t]=a}const hQ=_O(()=>window.ScrollTimeline!==void 0),mQ={};function pQ(e,t){const a=_O(e);return()=>mQ[t]??a()}const Oz=pQ(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),R0=([e,t,a,r])=>`cubic-bezier(${e}, ${t}, ${a}, ${r})`,Rz={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:R0([0,.65,.55,1]),circOut:R0([.55,0,1,.45]),backIn:R0([.31,.01,.66,-.59]),backOut:R0([.33,1.53,.69,.99])};function Az(e,t){if(e)return typeof e=="function"?Oz()?gz(e,t):"ease-out":ez(e)?R0(e):Array.isArray(e)?e.map(a=>Az(a,t)||Rz.easeOut):Rz[e]}function gQ(e,t,a,{delay:r=0,duration:l=300,repeat:c=0,repeatType:f="loop",ease:m="easeOut",times:g}={},p=void 0){const y={[t]:a};g&&(y.offset=g);const S=Az(m,l);Array.isArray(S)&&(y.easing=S);const E={delay:r,duration:l,easing:Array.isArray(S)?"linear":S,fill:"both",iterations:c+1,direction:f==="reverse"?"alternate":"normal"};return p&&(E.pseudoElement=p),e.animate(y,E)}function Mz(e){return typeof e=="function"&&"applyToOptions"in e}function vQ({type:e,...t}){return Mz(e)&&Oz()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class yQ extends KO{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;const{element:a,name:r,keyframes:l,pseudoElement:c,allowFlatten:f=!1,finalKeyframe:m,onComplete:g}=t;this.isPseudoElement=!!c,this.allowFlatten=f,this.options=t,Zu(typeof t.type!="string",`Mini animate() doesn't support "type" as a string.`,"mini-spring");const p=vQ(t);this.animation=gQ(a,r,l,p,c),p.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!c){const y=ZO(l,this.options,m,this.speed);this.updateMotionValue?this.updateMotionValue(y):dQ(a,r,y),this.animation.cancel()}g?.(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){const t=this.animation.effect?.getComputedTiming?.().duration||0;return Qs(Number(t))}get time(){return Qs(Number(this.animation.currentTime)||0)}set time(t){this.finishedTime=null,this.animation.currentTime=is(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(t){this.animation.startTime=t}attachTimeline({timeline:t,observe:a}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&hQ()?(this.animation.timeline=t,bl):a(this)}}const _z={anticipate:Z6,backInOut:W6,circInOut:Q6};function bQ(e){return e in _z}function SQ(e){typeof e.ease=="string"&&bQ(e.ease)&&(e.ease=_z[e.ease])}const Dz=10;class CQ extends yQ{constructor(t){SQ(t),bz(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:a,onUpdate:r,onComplete:l,element:c,...f}=this.options;if(!a)return;if(t!==void 0){a.set(t);return}const m=new QO({...f,autoplay:!1}),g=is(this.finishedTime??this.time);a.setWithVelocity(m.sample(g-Dz).value,m.sample(g).value,Dz),m.stop()}}const Nz=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(of.test(e)||e==="0")&&!e.startsWith("url("));function xQ(e){const t=e[0];if(e.length===1)return!0;for(let a=0;a<e.length;a++)if(e[a]!==t)return!0}function EQ(e,t,a,r){const l=e[0];if(l===null)return!1;if(t==="display"||t==="visibility")return!0;const c=e[e.length-1],f=Nz(l,t),m=Nz(c,t);return Zm(f===m,`You are trying to animate ${t} from "${l}" to "${c}". "${f?c:l}" is not an animatable value.`,"value-not-animatable"),!f||!m?!1:xQ(e)||(a==="spring"||Mz(a))&&r}const wQ=new Set(["opacity","clipPath","filter","transform"]),TQ=_O(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function OQ(e){const{motionValue:t,name:a,repeatDelay:r,repeatType:l,damping:c,type:f}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:g,transformTemplate:p}=t.owner.getProps();return TQ()&&a&&wQ.has(a)&&(a!=="transform"||!p)&&!g&&!r&&l!=="mirror"&&c!==0&&f!=="inertia"}const RQ=40;class AQ extends KO{constructor({autoplay:t=!0,delay:a=0,type:r="keyframes",repeat:l=0,repeatDelay:c=0,repeatType:f="loop",keyframes:m,name:g,motionValue:p,element:y,...S}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=vo.now();const E={autoplay:t,delay:a,type:r,repeat:l,repeatDelay:c,repeatType:f,name:g,motionValue:p,element:y,...S},T=y?.KeyframeResolver||oR;this.keyframeResolver=new T(m,(O,M,A)=>this.onKeyframesResolved(O,M,E,!A),g,p,y),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,a,r,l){this.keyframeResolver=void 0;const{name:c,type:f,velocity:m,delay:g,isHandoff:p,onUpdate:y}=r;this.resolvedAt=vo.now(),EQ(t,c,f,m)||((Ku.instantAnimations||!g)&&y?.(ZO(t,r,a)),t[0]=t[t.length-1],r.duration=0,r.repeat=0);const E={startTime:l?this.resolvedAt?this.resolvedAt-this.createdAt>RQ?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:a,...r,keyframes:t},T=!p&&OQ(E)?new CQ({...E,element:E.motionValue.owner.current}):new QO(E);T.finished.then(()=>this.notifyFinished()).catch(bl),this.pendingTimeline&&(this.stopTimeline=T.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=T}get finished(){return this._animation?this.animation.finished:this._finished}then(t,a){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),cQ()),this._animation}get duration(){return this.animation.duration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}const MQ=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function _Q(e){const t=MQ.exec(e);if(!t)return[,];const[,a,r,l]=t;return[`--${a??r}`,l]}const DQ=4;function $z(e,t,a=1){Zu(a<=DQ,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");const[r,l]=_Q(e);if(!r)return;const c=window.getComputedStyle(t).getPropertyValue(r);if(c){const f=c.trim();return P6(f)?parseFloat(f):f}return VO(l)?$z(l,t,a+1):l}function lR(e,t){return e?.[t]??e?.default??e}const zz=new Set(["width","height","top","left","right","bottom",...ep]),NQ={test:e=>e==="auto",parse:e=>e},jz=e=>t=>t.test(e),Lz=[Km,on,Js,rf,CK,SK,NQ],Vz=e=>Lz.find(jz(e));function $Q(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||I6(e):!0}const zQ=new Set(["brightness","contrast","saturate","opacity"]);function jQ(e){const[t,a]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=a.match(HO)||[];if(!r)return e;const l=a.replace(r,"");let c=zQ.has(t)?1:0;return r!==a&&(c*=100),t+"("+c+l+")"}const LQ=/\b([a-z-]*)\(.*?\)/gu,sR={...of,getAnimatableNone:e=>{const t=e.match(LQ);return t?t.map(jQ).join(" "):e}},Hz={...Km,transform:Math.round},uR={borderWidth:on,borderTopWidth:on,borderRightWidth:on,borderBottomWidth:on,borderLeftWidth:on,borderRadius:on,radius:on,borderTopLeftRadius:on,borderTopRightRadius:on,borderBottomRightRadius:on,borderBottomLeftRadius:on,width:on,maxWidth:on,height:on,maxHeight:on,top:on,right:on,bottom:on,left:on,padding:on,paddingTop:on,paddingRight:on,paddingBottom:on,paddingLeft:on,margin:on,marginTop:on,marginRight:on,marginBottom:on,marginLeft:on,backgroundPositionX:on,backgroundPositionY:on,...{rotate:rf,rotateX:rf,rotateY:rf,rotateZ:rf,scale:iC,scaleX:iC,scaleY:iC,scaleZ:iC,skew:rf,skewX:rf,skewY:rf,distance:on,translateX:on,translateY:on,translateZ:on,x:on,y:on,z:on,perspective:on,transformPerspective:on,opacity:E0,originX:oz,originY:oz,originZ:on},zIndex:Hz,fillOpacity:E0,strokeOpacity:E0,numOctaves:Hz},VQ={...uR,color:Cr,backgroundColor:Cr,outlineColor:Cr,fill:Cr,stroke:Cr,borderColor:Cr,borderTopColor:Cr,borderRightColor:Cr,borderBottomColor:Cr,borderLeftColor:Cr,filter:sR,WebkitFilter:sR},Bz=e=>VQ[e];function Pz(e,t){let a=Bz(e);return a!==sR&&(a=of),a.getAnimatableNone?a.getAnimatableNone(t):void 0}const HQ=new Set(["auto","none","0"]);function BQ(e,t,a){let r=0,l;for(;r<e.length&&!l;){const c=e[r];typeof c=="string"&&!HQ.has(c)&&O0(c).values.length&&(l=e[r]),r++}if(l&&a)for(const c of t)e[c]=Pz(a,l)}class PQ extends oR{constructor(t,a,r,l,c){super(t,a,r,l,c,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:a,name:r}=this;if(!a||!a.current)return;super.readKeyframes();for(let g=0;g<t.length;g++){let p=t[g];if(typeof p=="string"&&(p=p.trim(),VO(p))){const y=$z(p,a.current);y!==void 0&&(t[g]=y),g===t.length-1&&(this.finalKeyframe=p)}}if(this.resolveNoneKeyframes(),!zz.has(r)||t.length!==2)return;const[l,c]=t,f=Vz(l),m=Vz(c);if(f!==m)if(Ez(f)&&Ez(m))for(let g=0;g<t.length;g++){const p=t[g];typeof p=="string"&&(t[g]=parseFloat(p))}else Pd[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:a}=this,r=[];for(let l=0;l<t.length;l++)(t[l]===null||$Q(t[l]))&&r.push(l);r.length&&BQ(t,r,a)}measureInitialState(){const{element:t,unresolvedKeyframes:a,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Pd[r](t.measureViewportBox(),window.getComputedStyle(t.current)),a[0]=this.measuredOrigin;const l=a[a.length-1];l!==void 0&&t.getValue(r,l).jump(l,!1)}measureEndState(){const{element:t,name:a,unresolvedKeyframes:r}=this;if(!t||!t.current)return;const l=t.getValue(a);l&&l.jump(this.measuredOrigin,!1);const c=r.length-1,f=r[c];r[c]=Pd[a](t.measureViewportBox(),window.getComputedStyle(t.current)),f!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=f),this.removedTransforms?.length&&this.removedTransforms.forEach(([m,g])=>{t.getValue(m).set(g)}),this.resolveNoneKeyframes()}}function UQ(e,t,a){if(e instanceof EventTarget)return[e];if(typeof e=="string"){let r=document;const l=a?.[e]??r.querySelectorAll(e);return l?Array.from(l):[]}return Array.from(e)}const Uz=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function Iz(e){return U6(e)&&"offsetHeight"in e}var IQ={};const Fz=30,FQ=e=>!isNaN(parseFloat(e));class kQ{constructor(t,a={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,l=!0)=>{const c=vo.now();if(this.updatedAt!==c&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const f of this.dependents)f.dirty();l&&this.events.renderRequest?.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=a.owner}setCurrent(t){this.current=t,this.updatedAt=vo.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=FQ(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return IQ.NODE_ENV!=="production"&&NO(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",t)}on(t,a){this.events[t]||(this.events[t]=new DO);const r=this.events[t].add(a);return t==="change"?()=>{r(),Pa.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,a){this.passiveEffect=t,this.stopPassiveEffect=a}set(t,a=!0){!a||!this.passiveEffect?this.updateAndNotify(t,a):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,a,r){this.set(a),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,a=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,a&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=vo.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>Fz)return 0;const a=Math.min(this.updatedAt-this.prevUpdatedAt,Fz);return F6(parseFloat(this.current)-parseFloat(this.prevFrameValue),a)}start(t){return this.stop(),new Promise(a=>{this.hasAnimated=!0,this.animation=t(a),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.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function np(e,t){return new kQ(e,t)}const{schedule:cR}=az(queueMicrotask,!1),os={x:!1,y:!1};function kz(){return os.x||os.y}function GQ(e){return e==="x"||e==="y"?os[e]?null:(os[e]=!0,()=>{os[e]=!1}):os.x||os.y?null:(os.x=os.y=!0,()=>{os.x=os.y=!1})}function Gz(e,t){const a=UQ(e),r=new AbortController,l={passive:!0,...t,signal:r.signal};return[a,l,()=>r.abort()]}function qz(e){return!(e.pointerType==="touch"||kz())}function qQ(e,t,a={}){const[r,l,c]=Gz(e,a),f=m=>{if(!qz(m))return;const{target:g}=m,p=t(g,m);if(typeof p!="function"||!g)return;const y=S=>{qz(S)&&(p(S),g.removeEventListener("pointerleave",y))};g.addEventListener("pointerleave",y,l)};return r.forEach(m=>{m.addEventListener("pointerenter",f,l)}),c}const Yz=(e,t)=>t?e===t?!0:Yz(e,t.parentElement):!1,fR=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,YQ=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function XQ(e){return YQ.has(e.tagName)||e.tabIndex!==-1}const uC=new WeakSet;function Xz(e){return t=>{t.key==="Enter"&&e(t)}}function dR(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const WQ=(e,t)=>{const a=e.currentTarget;if(!a)return;const r=Xz(()=>{if(uC.has(a))return;dR(a,"down");const l=Xz(()=>{dR(a,"up")}),c=()=>dR(a,"cancel");a.addEventListener("keyup",l,t),a.addEventListener("blur",c,t)});a.addEventListener("keydown",r,t),a.addEventListener("blur",()=>a.removeEventListener("keydown",r),t)};function Wz(e){return fR(e)&&!kz()}function ZQ(e,t,a={}){const[r,l,c]=Gz(e,a),f=m=>{const g=m.currentTarget;if(!Wz(m))return;uC.add(g);const p=t(g,m),y=(T,O)=>{window.removeEventListener("pointerup",S),window.removeEventListener("pointercancel",E),uC.has(g)&&uC.delete(g),Wz(T)&&typeof p=="function"&&p(T,{success:O})},S=T=>{y(T,g===window||g===document||a.useGlobalTarget||Yz(g,T.target))},E=T=>{y(T,!1)};window.addEventListener("pointerup",S,l),window.addEventListener("pointercancel",E,l)};return r.forEach(m=>{(a.useGlobalTarget?window:m).addEventListener("pointerdown",f,l),Iz(m)&&(m.addEventListener("focus",p=>WQ(p,l)),!XQ(m)&&!m.hasAttribute("tabindex")&&(m.tabIndex=0))}),c}function Zz(e){return U6(e)&&"ownerSVGElement"in e}function KQ(e){return Zz(e)&&e.tagName==="svg"}const wi=e=>!!(e&&e.getVelocity),QQ=[...Lz,Cr,of],JQ=e=>QQ.find(jz(e)),hR=C.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});class eJ extends C.Component{getSnapshotBeforeUpdate(t){const a=this.props.childRef.current;if(a&&t.isPresent&&!this.props.isPresent){const r=a.offsetParent,l=Iz(r)&&r.offsetWidth||0,c=this.props.sizeRef.current;c.height=a.offsetHeight||0,c.width=a.offsetWidth||0,c.top=a.offsetTop,c.left=a.offsetLeft,c.right=l-c.width-c.left}return null}componentDidUpdate(){}render(){return this.props.children}}function tJ({children:e,isPresent:t,anchorX:a,root:r}){const l=C.useId(),c=C.useRef(null),f=C.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:m}=C.useContext(hR);return C.useInsertionEffect(()=>{const{width:g,height:p,top:y,left:S,right:E}=f.current;if(t||!c.current||!g||!p)return;const T=a==="left"?`left: ${S}`:`right: ${E}`;c.current.dataset.motionPopId=l;const O=document.createElement("style");m&&(O.nonce=m);const M=r??document.head;return M.appendChild(O),O.sheet&&O.sheet.insertRule(`
|
|
645
|
+
[data-motion-pop-id="${l}"] {
|
|
646
|
+
position: absolute !important;
|
|
647
|
+
width: ${g}px !important;
|
|
648
|
+
height: ${p}px !important;
|
|
649
|
+
${T}px !important;
|
|
650
|
+
top: ${y}px !important;
|
|
651
|
+
}
|
|
652
|
+
`),()=>{M.removeChild(O),M.contains(O)&&M.removeChild(O)}},[t]),re.jsx(eJ,{isPresent:t,childRef:c,sizeRef:f,children:C.cloneElement(e,{ref:c})})}const nJ=({children:e,initial:t,isPresent:a,onExitComplete:r,custom:l,presenceAffectsLayout:c,mode:f,anchorX:m,root:g})=>{const p=TO(aJ),y=C.useId();let S=!0,E=C.useMemo(()=>(S=!1,{id:y,initial:t,isPresent:a,custom:l,onExitComplete:T=>{p.set(T,!0);for(const O of p.values())if(!O)return;r&&r()},register:T=>(p.set(T,!1),()=>p.delete(T))}),[a,p,r]);return c&&S&&(E={...E}),C.useMemo(()=>{p.forEach((T,O)=>p.set(O,!1))},[a]),C.useEffect(()=>{!a&&!p.size&&r&&r()},[a]),f==="popLayout"&&(e=re.jsx(tJ,{isPresent:a,anchorX:m,root:g,children:e})),re.jsx(nC.Provider,{value:E,children:e})};function aJ(){return new Map}function Kz(e=!0){const t=C.useContext(nC);if(t===null)return[!0,null];const{isPresent:a,onExitComplete:r,register:l}=t,c=C.useId();C.useEffect(()=>{if(e)return l(c)},[e]);const f=C.useCallback(()=>e&&r&&r(c),[c,r,e]);return!a&&r?[!1,f]:[!0]}const cC=e=>e.key||"";function Qz(e){const t=[];return C.Children.forEach(e,a=>{C.isValidElement(a)&&t.push(a)}),t}var rJ={};const iJ=({children:e,custom:t,initial:a=!0,onExitComplete:r,presenceAffectsLayout:l=!0,mode:c="sync",propagate:f=!1,anchorX:m="left",root:g})=>{const[p,y]=Kz(f),S=C.useMemo(()=>Qz(e),[e]),E=f&&!p?[]:S.map(cC),T=C.useRef(!0),O=C.useRef(S),M=TO(()=>new Map),[A,D]=C.useState(S),[_,z]=C.useState(S);B6(()=>{T.current=!1,O.current=S;for(let V=0;V<_.length;V++){const H=cC(_[V]);E.includes(H)?M.delete(H):M.get(H)!==!0&&M.set(H,!1)}},[_,E.length,E.join("-")]);const j=[];if(S!==A){let V=[...S];for(let H=0;H<_.length;H++){const P=_[H],q=cC(P);E.includes(q)||(V.splice(H,0,P),j.push(P))}return c==="wait"&&j.length&&(V=j),z(Qz(V)),D(S),null}rJ.NODE_ENV!=="production"&&c==="wait"&&_.length>1&&console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`);const{forceRender:$}=C.useContext(wO);return re.jsx(re.Fragment,{children:_.map(V=>{const H=cC(V),P=f&&!p?!1:S===_||E.includes(H),q=()=>{if(M.has(H))M.set(H,!0);else return;let Y=!0;M.forEach(te=>{te||(Y=!1)}),Y&&($?.(),z(O.current),f&&y?.(),r&&r())};return re.jsx(nJ,{isPresent:P,initial:!T.current||a?void 0:!1,custom:t,presenceAffectsLayout:l,mode:c,root:g,onExitComplete:P?void 0:q,anchorX:m,children:V},H)})})},Jz=C.createContext({strict:!1}),ej={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"]},ap={};for(const e in ej)ap[e]={isEnabled:t=>ej[e].some(a=>!!t[a])};function oJ(e){for(const t in e)ap[t]={...ap[t],...e[t]}}const lJ=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function fC(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||lJ.has(e)}let tj=e=>!fC(e);function sJ(e){typeof e=="function"&&(tj=t=>t.startsWith("on")?!fC(t):e(t))}try{sJ(require("@emotion/is-prop-valid").default)}catch{}function uJ(e,t,a){const r={};for(const l in e)l==="values"&&typeof e.values=="object"||(tj(l)||a===!0&&fC(l)||!t&&!fC(l)||e.draggable&&l.startsWith("onDrag"))&&(r[l]=e[l]);return r}const dC=C.createContext({});function hC(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function A0(e){return typeof e=="string"||Array.isArray(e)}const mR=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],pR=["initial",...mR];function mC(e){return hC(e.animate)||pR.some(t=>A0(e[t]))}function nj(e){return!!(mC(e)||e.variants)}function cJ(e,t){if(mC(e)){const{initial:a,animate:r}=e;return{initial:a===!1||A0(a)?a:void 0,animate:A0(r)?r:void 0}}return e.inherit!==!1?t:{}}function fJ(e){const{initial:t,animate:a}=cJ(e,C.useContext(dC));return C.useMemo(()=>({initial:t,animate:a}),[aj(t),aj(a)])}function aj(e){return Array.isArray(e)?e.join(" "):e}const M0={};function dJ(e){for(const t in e)M0[t]=e[t],LO(t)&&(M0[t].isCSSVariable=!0)}function rj(e,{layout:t,layoutId:a}){return tp.has(e)||e.startsWith("origin")||(t||a!==void 0)&&(!!M0[e]||e==="opacity")}const hJ={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},mJ=ep.length;function pJ(e,t,a){let r="",l=!0;for(let c=0;c<mJ;c++){const f=ep[c],m=e[f];if(m===void 0)continue;let g=!0;if(typeof m=="number"?g=m===(f.startsWith("scale")?1:0):g=parseFloat(m)===0,!g||a){const p=Uz(m,uR[f]);if(!g){l=!1;const y=hJ[f]||f;r+=`${y}(${p}) `}a&&(t[f]=p)}}return r=r.trim(),a?r=a(t,l?"":r):l&&(r="none"),r}function gR(e,t,a){const{style:r,vars:l,transformOrigin:c}=e;let f=!1,m=!1;for(const g in t){const p=t[g];if(tp.has(g)){f=!0;continue}else if(LO(g)){l[g]=p;continue}else{const y=Uz(p,uR[g]);g.startsWith("origin")?(m=!0,c[g]=y):r[g]=y}}if(t.transform||(f||a?r.transform=pJ(t,e.transform,a):r.transform&&(r.transform="none")),m){const{originX:g="50%",originY:p="50%",originZ:y=0}=c;r.transformOrigin=`${g} ${p} ${y}`}}const vR=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function ij(e,t,a){for(const r in t)!wi(t[r])&&!rj(r,a)&&(e[r]=t[r])}function gJ({transformTemplate:e},t){return C.useMemo(()=>{const a=vR();return gR(a,t,e),Object.assign({},a.vars,a.style)},[t])}function vJ(e,t){const a=e.style||{},r={};return ij(r,a,e),Object.assign(r,gJ(e,t)),r}function yJ(e,t){const a={},r=vJ(e,t);return e.drag&&e.dragListener!==!1&&(a.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(a.tabIndex=0),a.style=r,a}const bJ={offset:"stroke-dashoffset",array:"stroke-dasharray"},SJ={offset:"strokeDashoffset",array:"strokeDasharray"};function CJ(e,t,a=1,r=0,l=!0){e.pathLength=1;const c=l?bJ:SJ;e[c.offset]=on.transform(-r);const f=on.transform(t),m=on.transform(a);e[c.array]=`${f} ${m}`}function oj(e,{attrX:t,attrY:a,attrScale:r,pathLength:l,pathSpacing:c=1,pathOffset:f=0,...m},g,p,y){if(gR(e,m,p),g){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:S,style:E}=e;S.transform&&(E.transform=S.transform,delete S.transform),(E.transform||S.transformOrigin)&&(E.transformOrigin=S.transformOrigin??"50% 50%",delete S.transformOrigin),E.transform&&(E.transformBox=y?.transformBox??"fill-box",delete S.transformBox),t!==void 0&&(S.x=t),a!==void 0&&(S.y=a),r!==void 0&&(S.scale=r),l!==void 0&&CJ(S,l,c,f,!1)}const lj=()=>({...vR(),attrs:{}}),sj=e=>typeof e=="string"&&e.toLowerCase()==="svg";function xJ(e,t,a,r){const l=C.useMemo(()=>{const c=lj();return oj(c,t,sj(r),e.transformTemplate,e.style),{...c.attrs,style:{...c.style}}},[t]);if(e.style){const c={};ij(c,e.style,e),l.style={...c,...l.style}}return l}const EJ=["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 yR(e){return typeof e!="string"||e.includes("-")?!1:!!(EJ.indexOf(e)>-1||/[A-Z]/u.test(e))}function wJ(e,t,a,{latestValues:r},l,c=!1){const m=(yR(e)?xJ:yJ)(t,r,l,e),g=uJ(t,typeof e=="string",c),p=e!==C.Fragment?{...g,...m,ref:a}:{},{children:y}=t,S=C.useMemo(()=>wi(y)?y.get():y,[y]);return C.createElement(e,{...p,children:S})}function uj(e){const t=[{},{}];return e?.values.forEach((a,r)=>{t[0][r]=a.get(),t[1][r]=a.getVelocity()}),t}function bR(e,t,a,r){if(typeof t=="function"){const[l,c]=uj(r);t=t(a!==void 0?a:e.custom,l,c)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[l,c]=uj(r);t=t(a!==void 0?a:e.custom,l,c)}return t}function pC(e){return wi(e)?e.get():e}function TJ({scrapeMotionValuesFromProps:e,createRenderState:t},a,r,l){return{latestValues:OJ(a,r,l,e),renderState:t()}}function OJ(e,t,a,r){const l={},c=r(e,{});for(const E in c)l[E]=pC(c[E]);let{initial:f,animate:m}=e;const g=mC(e),p=nj(e);t&&p&&!g&&e.inherit!==!1&&(f===void 0&&(f=t.initial),m===void 0&&(m=t.animate));let y=a?a.initial===!1:!1;y=y||f===!1;const S=y?m:f;if(S&&typeof S!="boolean"&&!hC(S)){const E=Array.isArray(S)?S:[S];for(let T=0;T<E.length;T++){const O=bR(e,E[T]);if(O){const{transitionEnd:M,transition:A,...D}=O;for(const _ in D){let z=D[_];if(Array.isArray(z)){const j=y?z.length-1:0;z=z[j]}z!==null&&(l[_]=z)}for(const _ in M)l[_]=M[_]}}}return l}const cj=e=>(t,a)=>{const r=C.useContext(dC),l=C.useContext(nC),c=()=>TJ(e,t,r,l);return a?c():TO(c)};function SR(e,t,a){const{style:r}=e,l={};for(const c in r)(wi(r[c])||t.style&&wi(t.style[c])||rj(c,e)||a?.getValue(c)?.liveStyle!==void 0)&&(l[c]=r[c]);return l}const RJ=cj({scrapeMotionValuesFromProps:SR,createRenderState:vR});function fj(e,t,a){const r=SR(e,t,a);for(const l in e)if(wi(e[l])||wi(t[l])){const c=ep.indexOf(l)!==-1?"attr"+l.charAt(0).toUpperCase()+l.substring(1):l;r[c]=e[l]}return r}const AJ=cj({scrapeMotionValuesFromProps:fj,createRenderState:lj}),MJ=Symbol.for("motionComponentSymbol");function rp(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function _J(e,t,a){return C.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),a&&(typeof a=="function"?a(r):rp(a)&&(a.current=r))},[t])}const CR=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),dj="data-"+CR("framerAppearId"),hj=C.createContext({});function DJ(e,t,a,r,l){const{visualElement:c}=C.useContext(dC),f=C.useContext(Jz),m=C.useContext(nC),g=C.useContext(hR).reducedMotion,p=C.useRef(null);r=r||f.renderer,!p.current&&r&&(p.current=r(e,{visualState:t,parent:c,props:a,presenceContext:m,blockInitialAnimation:m?m.initial===!1:!1,reducedMotionConfig:g}));const y=p.current,S=C.useContext(hj);y&&!y.projection&&l&&(y.type==="html"||y.type==="svg")&&NJ(p.current,a,l,S);const E=C.useRef(!1);C.useInsertionEffect(()=>{y&&E.current&&y.update(a,m)});const T=a[dj],O=C.useRef(!!T&&!window.MotionHandoffIsComplete?.(T)&&window.MotionHasOptimisedAnimation?.(T));return B6(()=>{y&&(E.current=!0,window.MotionIsMounted=!0,y.updateFeatures(),y.scheduleRenderMicrotask(),O.current&&y.animationState&&y.animationState.animateChanges())}),C.useEffect(()=>{y&&(!O.current&&y.animationState&&y.animationState.animateChanges(),O.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(T)}),O.current=!1))}),y}function NJ(e,t,a,r){const{layoutId:l,layout:c,drag:f,dragConstraints:m,layoutScroll:g,layoutRoot:p,layoutCrossfade:y}=t;e.projection=new a(e.latestValues,t["data-framer-portal-id"]?void 0:mj(e.parent)),e.projection.setOptions({layoutId:l,layout:c,alwaysMeasureLayout:!!f||m&&rp(m),visualElement:e,animationType:typeof c=="string"?c:"both",initialPromotionConfig:r,crossfade:y,layoutScroll:g,layoutRoot:p})}function mj(e){if(e)return e.options.allowProjection!==!1?e.projection:mj(e.parent)}var $J={};function xR(e,{forwardMotionProps:t=!1}={},a,r){a&&oJ(a);const l=yR(e)?AJ:RJ;function c(m,g){let p;const y={...C.useContext(hR),...m,layoutId:zJ(m)},{isStatic:S}=y,E=fJ(m),T=l(m,S);if(!S&&OO){jJ(y,a);const O=LJ(y);p=O.MeasureLayout,E.visualElement=DJ(e,T,y,r,O.ProjectionNode)}return re.jsxs(dC.Provider,{value:E,children:[p&&E.visualElement?re.jsx(p,{visualElement:E.visualElement,...y}):null,wJ(e,m,_J(T,E.visualElement,g),T,S,t)]})}c.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const f=C.forwardRef(c);return f[MJ]=e,f}function zJ({layoutId:e}){const t=C.useContext(wO).id;return t&&e!==void 0?t+"-"+e:e}function jJ(e,t){const a=C.useContext(Jz).strict;if($J.NODE_ENV!=="production"&&t&&a){const r="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";e.ignoreStrict?Zm(!1,r,"lazy-strict-mode"):Zu(!1,r,"lazy-strict-mode")}}function LJ(e){const{drag:t,layout:a}=ap;if(!t&&!a)return{};const r={...t,...a};return{MeasureLayout:t?.isEnabled(e)||a?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}var VJ={};function HJ(e,t){if(typeof Proxy>"u")return xR;const a=new Map,r=(c,f)=>xR(c,f,e,t),l=(c,f)=>(VJ.NODE_ENV!=="production"&&NO(!1,"motion() is deprecated. Use motion.create() instead."),r(c,f));return new Proxy(l,{get:(c,f)=>f==="create"?r:(a.has(f)||a.set(f,xR(f,void 0,e,t)),a.get(f))})}function pj({top:e,left:t,right:a,bottom:r}){return{x:{min:t,max:a},y:{min:e,max:r}}}function BJ({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function PJ(e,t){if(!t)return e;const a=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:a.y,left:a.x,bottom:r.y,right:r.x}}function ER(e){return e===void 0||e===1}function wR({scale:e,scaleX:t,scaleY:a}){return!ER(e)||!ER(t)||!ER(a)}function Id(e){return wR(e)||gj(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function gj(e){return vj(e.x)||vj(e.y)}function vj(e){return e&&e!=="0%"}function gC(e,t,a){const r=e-a,l=t*r;return a+l}function yj(e,t,a,r,l){return l!==void 0&&(e=gC(e,l,r)),gC(e,a,r)+t}function TR(e,t=0,a=1,r,l){e.min=yj(e.min,t,a,r,l),e.max=yj(e.max,t,a,r,l)}function bj(e,{x:t,y:a}){TR(e.x,t.translate,t.scale,t.originPoint),TR(e.y,a.translate,a.scale,a.originPoint)}const Sj=.999999999999,Cj=1.0000000000001;function UJ(e,t,a,r=!1){const l=a.length;if(!l)return;t.x=t.y=1;let c,f;for(let m=0;m<l;m++){c=a[m],f=c.projectionDelta;const{visualElement:g}=c.options;g&&g.props.style&&g.props.style.display==="contents"||(r&&c.options.layoutScroll&&c.scroll&&c!==c.root&&op(e,{x:-c.scroll.offset.x,y:-c.scroll.offset.y}),f&&(t.x*=f.x.scale,t.y*=f.y.scale,bj(e,f)),r&&Id(c.latestValues)&&op(e,c.latestValues))}t.x<Cj&&t.x>Sj&&(t.x=1),t.y<Cj&&t.y>Sj&&(t.y=1)}function ip(e,t){e.min=e.min+t,e.max=e.max+t}function xj(e,t,a,r,l=.5){const c=Za(e.min,e.max,l);TR(e,t,a,c,r)}function op(e,t){xj(e.x,t.x,t.scaleX,t.scale,t.originX),xj(e.y,t.y,t.scaleY,t.scale,t.originY)}function Ej(e,t){return pj(PJ(e.getBoundingClientRect(),t))}function IJ(e,t,a){const r=Ej(e,a),{scroll:l}=t;return l&&(ip(r.x,l.offset.x),ip(r.y,l.offset.y)),r}const wj=()=>({translate:0,scale:1,origin:0,originPoint:0}),lp=()=>({x:wj(),y:wj()}),Tj=()=>({min:0,max:0}),dr=()=>({x:Tj(),y:Tj()}),OR={current:null},Oj={current:!1};function FJ(){if(Oj.current=!0,!!OO)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>OR.current=e.matches;e.addEventListener("change",t),t()}else OR.current=!1}const kJ=new WeakMap;function GJ(e,t,a){for(const r in t){const l=t[r],c=a[r];if(wi(l))e.addValue(r,l);else if(wi(c))e.addValue(r,np(l,{owner:e}));else if(c!==l)if(e.hasValue(r)){const f=e.getValue(r);f.liveStyle===!0?f.jump(l):f.hasAnimated||f.set(l)}else{const f=e.getStaticValue(r);e.addValue(r,np(f!==void 0?f:l,{owner:e}))}}for(const r in a)t[r]===void 0&&e.removeValue(r);return t}var qJ={};const Rj=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class YJ{scrapeMotionValuesFromProps(t,a,r){return{}}constructor({parent:t,props:a,presenceContext:r,reducedMotionConfig:l,blockInitialAnimation:c,visualState:f},m={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=oR,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.renderScheduledAt=0,this.scheduleRender=()=>{const E=vo.now();this.renderScheduledAt<E&&(this.renderScheduledAt=E,Pa.render(this.render,!1,!0))};const{latestValues:g,renderState:p}=f;this.latestValues=g,this.baseTarget={...g},this.initialValues=a.initial?{...g}:{},this.renderState=p,this.parent=t,this.props=a,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=l,this.options=m,this.blockInitialAnimation=!!c,this.isControllingVariants=mC(a),this.isVariantNode=nj(a),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:y,...S}=this.scrapeMotionValuesFromProps(a,{},this);for(const E in S){const T=S[E];g[E]!==void 0&&wi(T)&&T.set(g[E],!1)}}mount(t){this.current=t,kJ.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((a,r)=>this.bindToMotionValue(r,a)),Oj.current||FJ(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:OR.current,qJ.NODE_ENV!=="production"&&NO(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected.","reduced-motion-disabled"),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),af(this.notifyUpdate),af(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),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){const a=this.features[t];a&&(a.unmount(),a.isMounted=!1)}this.current=null}bindToMotionValue(t,a){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=tp.has(t);r&&this.onBindTransform&&this.onBindTransform();const l=a.on("change",m=>{this.latestValues[t]=m,this.props.onUpdate&&Pa.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),c=a.on("renderRequest",this.scheduleRender);let f;window.MotionCheckAppearSync&&(f=window.MotionCheckAppearSync(this,t,a)),this.valueSubscriptions.set(t,()=>{l(),c(),f&&f(),a.owner&&a.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in ap){const a=ap[t];if(!a)continue;const{isEnabled:r,Feature:l}=a;if(!this.features[t]&&l&&r(this.props)&&(this.features[t]=new l(this)),this.features[t]){const c=this.features[t];c.isMounted?c.update():(c.mount(),c.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):dr()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,a){this.latestValues[t]=a}update(t,a){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=a;for(let r=0;r<Rj.length;r++){const l=Rj[r];this.propEventSubscriptions[l]&&(this.propEventSubscriptions[l](),delete this.propEventSubscriptions[l]);const c="on"+l,f=t[c];f&&(this.propEventSubscriptions[l]=this.on(l,f))}this.prevMotionValues=GJ(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),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}addVariantChild(t){const a=this.getClosestVariantNode();if(a)return a.variantChildren&&a.variantChildren.add(t),()=>a.variantChildren.delete(t)}addValue(t,a){const r=this.values.get(t);a!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,a),this.values.set(t,a),this.latestValues[t]=a.get())}removeValue(t){this.values.delete(t);const a=this.valueSubscriptions.get(t);a&&(a(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,a){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&a!==void 0&&(r=np(a===null?void 0:a,{owner:this}),this.addValue(t,r)),r}readValue(t,a){let r=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return r!=null&&(typeof r=="string"&&(P6(r)||I6(r))?r=parseFloat(r):!JQ(r)&&of.test(a)&&(r=Pz(t,a)),this.setBaseTarget(t,wi(r)?r.get():r)),wi(r)?r.get():r}setBaseTarget(t,a){this.baseTarget[t]=a}getBaseTarget(t){const{initial:a}=this.props;let r;if(typeof a=="string"||typeof a=="object"){const c=bR(this.props,a,this.presenceContext?.custom);c&&(r=c[t])}if(a&&r!==void 0)return r;const l=this.getBaseTargetFromProps(this.props,t);return l!==void 0&&!wi(l)?l:this.initialValues[t]!==void 0&&r===void 0?void 0:this.baseTarget[t]}on(t,a){return this.events[t]||(this.events[t]=new DO),this.events[t].add(a)}notify(t,...a){this.events[t]&&this.events[t].notify(...a)}scheduleRenderMicrotask(){cR.render(this.render)}}class Aj extends YJ{constructor(){super(...arguments),this.KeyframeResolver=PQ}sortInstanceNodePosition(t,a){return t.compareDocumentPosition(a)&2?1:-1}getBaseTargetFromProps(t,a){return t.style?t.style[a]:void 0}removeValueFromRenderState(t,{vars:a,style:r}){delete a[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;wi(t)&&(this.childSubscription=t.on("change",a=>{this.current&&(this.current.textContent=`${a}`)}))}}function Mj(e,{style:t,vars:a},r,l){const c=e.style;let f;for(f in t)c[f]=t[f];l?.applyProjectionStyles(c,r);for(f in a)c.setProperty(f,a[f])}function XJ(e){return window.getComputedStyle(e)}class WJ extends Aj{constructor(){super(...arguments),this.type="html",this.renderInstance=Mj}readValueFromInstance(t,a){if(tp.has(a))return this.projection?.isProjecting?tR(a):iQ(t,a);{const r=XJ(t),l=(LO(a)?r.getPropertyValue(a):r[a])||0;return typeof l=="string"?l.trim():l}}measureInstanceViewportBox(t,{transformPagePoint:a}){return Ej(t,a)}build(t,a,r){gR(t,a,r.transformTemplate)}scrapeMotionValuesFromProps(t,a,r){return SR(t,a,r)}}const _j=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 ZJ(e,t,a,r){Mj(e,t,void 0,r);for(const l in t.attrs)e.setAttribute(_j.has(l)?l:CR(l),t.attrs[l])}class KJ extends Aj{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=dr}getBaseTargetFromProps(t,a){return t[a]}readValueFromInstance(t,a){if(tp.has(a)){const r=Bz(a);return r&&r.default||0}return a=_j.has(a)?a:CR(a),t.getAttribute(a)}scrapeMotionValuesFromProps(t,a,r){return fj(t,a,r)}build(t,a,r){oj(t,a,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,a,r,l){ZJ(t,a,r,l)}mount(t){this.isSVGTag=sj(t.tagName),super.mount(t)}}const QJ=(e,t)=>yR(e)?new KJ(t):new WJ(t,{allowProjection:e!==C.Fragment});function _0(e,t,a){const r=e.getProps();return bR(r,t,a!==void 0?a:r.custom,e)}const RR=e=>Array.isArray(e);function JJ(e,t,a){e.hasValue(t)?e.getValue(t).set(a):e.addValue(t,np(a))}function eee(e){return RR(e)?e[e.length-1]||0:e}function tee(e,t){const a=_0(e,t);let{transitionEnd:r={},transition:l={},...c}=a||{};c={...c,...r};for(const f in c){const m=eee(c[f]);JJ(e,f,m)}}function nee(e){return!!(wi(e)&&e.add)}function AR(e,t){const a=e.getValue("willChange");if(nee(a))return a.add(t);if(!a&&Ku.WillChange){const r=new Ku.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function Dj(e){return e.props[dj]}const aee=e=>e!==null;function ree(e,{repeat:t,repeatType:a="loop"},r){const l=e.filter(aee),c=t&&a!=="loop"&&t%2===1?0:l.length-1;return l[c]}const iee={type:"spring",stiffness:500,damping:25,restSpeed:10},oee=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),lee={type:"keyframes",duration:.8},see={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},uee=(e,{keyframes:t})=>t.length>2?lee:tp.has(e)?e.startsWith("scale")?oee(t[1]):iee:see;function cee({when:e,delay:t,delayChildren:a,staggerChildren:r,staggerDirection:l,repeat:c,repeatType:f,repeatDelay:m,from:g,elapsed:p,...y}){return!!Object.keys(y).length}const MR=(e,t,a,r={},l,c)=>f=>{const m=lR(r,e)||{},g=m.delay||r.delay||0;let{elapsed:p=0}=r;p=p-is(g);const y={keyframes:Array.isArray(a)?a:[null,a],ease:"easeOut",velocity:t.getVelocity(),...m,delay:-p,onUpdate:E=>{t.set(E),m.onUpdate&&m.onUpdate(E)},onComplete:()=>{f(),m.onComplete&&m.onComplete()},name:e,motionValue:t,element:c?void 0:l};cee(m)||Object.assign(y,uee(e,y)),y.duration&&(y.duration=is(y.duration)),y.repeatDelay&&(y.repeatDelay=is(y.repeatDelay)),y.from!==void 0&&(y.keyframes[0]=y.from);let S=!1;if((y.type===!1||y.duration===0&&!y.repeatDelay)&&(y.duration=0,y.delay===0&&(S=!0)),(Ku.instantAnimations||Ku.skipAnimations)&&(S=!0,y.duration=0,y.delay=0),y.allowFlatten=!m.type&&!m.ease,S&&!c&&t.get()!==void 0){const E=ree(y.keyframes,m);if(E!==void 0){Pa.update(()=>{y.onUpdate(E),y.onComplete()});return}}return m.isSync?new QO(y):new AQ(y)};function fee({protectedKeys:e,needsAnimating:t},a){const r=e.hasOwnProperty(a)&&t[a]!==!0;return t[a]=!1,r}function Nj(e,t,{delay:a=0,transitionOverride:r,type:l}={}){let{transition:c=e.getDefaultTransition(),transitionEnd:f,...m}=t;r&&(c=r);const g=[],p=l&&e.animationState&&e.animationState.getState()[l];for(const y in m){const S=e.getValue(y,e.latestValues[y]??null),E=m[y];if(E===void 0||p&&fee(p,y))continue;const T={delay:a,...lR(c||{},y)},O=S.get();if(O!==void 0&&!S.isAnimating&&!Array.isArray(E)&&E===O&&!T.velocity)continue;let M=!1;if(window.MotionHandoffAnimation){const D=Dj(e);if(D){const _=window.MotionHandoffAnimation(D,y,Pa);_!==null&&(T.startTime=_,M=!0)}}AR(e,y),S.start(MR(y,S,E,e.shouldReduceMotion&&zz.has(y)?{type:!1}:T,e,M));const A=S.animation;A&&g.push(A)}return f&&Promise.all(g).then(()=>{Pa.update(()=>{f&&tee(e,f)})}),g}function _R(e,t,a={}){const r=_0(e,t,a.type==="exit"?e.presenceContext?.custom:void 0);let{transition:l=e.getDefaultTransition()||{}}=r||{};a.transitionOverride&&(l=a.transitionOverride);const c=r?()=>Promise.all(Nj(e,r,a)):()=>Promise.resolve(),f=e.variantChildren&&e.variantChildren.size?(g=0)=>{const{delayChildren:p=0,staggerChildren:y,staggerDirection:S}=l;return dee(e,t,g,p,y,S,a)}:()=>Promise.resolve(),{when:m}=l;if(m){const[g,p]=m==="beforeChildren"?[c,f]:[f,c];return g().then(()=>p())}else return Promise.all([c(),f(a.delay)])}function dee(e,t,a=0,r=0,l=0,c=1,f){const m=[],g=e.variantChildren.size,p=(g-1)*l,y=typeof r=="function",S=y?E=>r(E,g):c===1?(E=0)=>E*l:(E=0)=>p-E*l;return Array.from(e.variantChildren).sort(hee).forEach((E,T)=>{E.notify("AnimationStart",t),m.push(_R(E,t,{...f,delay:a+(y?0:r)+S(T)}).then(()=>E.notify("AnimationComplete",t)))}),Promise.all(m)}function hee(e,t){return e.sortNodePosition(t)}function mee(e,t,a={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const l=t.map(c=>_R(e,c,a));r=Promise.all(l)}else if(typeof t=="string")r=_R(e,t,a);else{const l=typeof t=="function"?_0(e,t,a.custom):t;r=Promise.all(Nj(e,l,a))}return r.then(()=>{e.notify("AnimationComplete",t)})}function $j(e,t){if(!Array.isArray(t))return!1;const a=t.length;if(a!==e.length)return!1;for(let r=0;r<a;r++)if(t[r]!==e[r])return!1;return!0}const pee=pR.length;function zj(e){if(!e)return;if(!e.isControllingVariants){const a=e.parent?zj(e.parent)||{}:{};return e.props.initial!==void 0&&(a.initial=e.props.initial),a}const t={};for(let a=0;a<pee;a++){const r=pR[a],l=e.props[r];(A0(l)||l===!1)&&(t[r]=l)}return t}const gee=[...mR].reverse(),vee=mR.length;function yee(e){return t=>Promise.all(t.map(({animation:a,options:r})=>mee(e,a,r)))}function bee(e){let t=yee(e),a=jj(),r=!0;const l=g=>(p,y)=>{const S=_0(e,y,g==="exit"?e.presenceContext?.custom:void 0);if(S){const{transition:E,transitionEnd:T,...O}=S;p={...p,...O,...T}}return p};function c(g){t=g(e)}function f(g){const{props:p}=e,y=zj(e.parent)||{},S=[],E=new Set;let T={},O=1/0;for(let A=0;A<vee;A++){const D=gee[A],_=a[D],z=p[D]!==void 0?p[D]:y[D],j=A0(z),$=D===g?_.isActive:null;$===!1&&(O=A);let V=z===y[D]&&z!==p[D]&&j;if(V&&r&&e.manuallyAnimateOnMount&&(V=!1),_.protectedKeys={...T},!_.isActive&&$===null||!z&&!_.prevProp||hC(z)||typeof z=="boolean")continue;const H=See(_.prevProp,z);let P=H||D===g&&_.isActive&&!V&&j||A>O&&j,q=!1;const Y=Array.isArray(z)?z:[z];let te=Y.reduce(l(D),{});$===!1&&(te={});const{prevResolvedValues:G={}}=_,K={...G,...te},J=X=>{P=!0,E.has(X)&&(q=!0,E.delete(X)),_.needsAnimating[X]=!0;const Q=e.getValue(X);Q&&(Q.liveStyle=!1)};for(const X in K){const Q=te[X],le=G[X];if(T.hasOwnProperty(X))continue;let U=!1;RR(Q)&&RR(le)?U=!$j(Q,le):U=Q!==le,U?Q!=null?J(X):E.add(X):Q!==void 0&&E.has(X)?J(X):_.protectedKeys[X]=!0}_.prevProp=z,_.prevResolvedValues=te,_.isActive&&(T={...T,...te}),r&&e.blockInitialAnimation&&(P=!1),P&&(!(V&&H)||q)&&S.push(...Y.map(X=>({animation:X,options:{type:D}})))}if(E.size){const A={};if(typeof p.initial!="boolean"){const D=_0(e,Array.isArray(p.initial)?p.initial[0]:p.initial);D&&D.transition&&(A.transition=D.transition)}E.forEach(D=>{const _=e.getBaseTarget(D),z=e.getValue(D);z&&(z.liveStyle=!0),A[D]=_??null}),S.push({animation:A})}let M=!!S.length;return r&&(p.initial===!1||p.initial===p.animate)&&!e.manuallyAnimateOnMount&&(M=!1),r=!1,M?t(S):Promise.resolve()}function m(g,p){if(a[g].isActive===p)return Promise.resolve();e.variantChildren?.forEach(S=>S.animationState?.setActive(g,p)),a[g].isActive=p;const y=f(g);for(const S in a)a[S].protectedKeys={};return y}return{animateChanges:f,setActive:m,setAnimateFunction:c,getState:()=>a,reset:()=>{a=jj(),r=!0}}}function See(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!$j(t,e):!1}function Fd(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function jj(){return{animate:Fd(!0),whileInView:Fd(),whileHover:Fd(),whileTap:Fd(),whileDrag:Fd(),whileFocus:Fd(),exit:Fd()}}class lf{constructor(t){this.isMounted=!1,this.node=t}update(){}}class Cee extends lf{constructor(t){super(t),t.animationState||(t.animationState=bee(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();hC(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:a}=this.node.prevProps||{};t!==a&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let xee=0;class Eee extends lf{constructor(){super(...arguments),this.id=xee++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:a}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const l=this.node.animationState.setActive("exit",!t);a&&!t&&l.then(()=>{a(this.id)})}mount(){const{register:t,onExitComplete:a}=this.node.presenceContext||{};a&&a(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const wee={animation:{Feature:Cee},exit:{Feature:Eee}};function D0(e,t,a,r={passive:!0}){return e.addEventListener(t,a,r),()=>e.removeEventListener(t,a)}function N0(e){return{point:{x:e.pageX,y:e.pageY}}}const Tee=e=>t=>fR(t)&&e(t,N0(t));function $0(e,t,a,r){return D0(e,t,Tee(a),r)}const Lj=1e-4,Oee=1-Lj,Ree=1+Lj,Vj=.01,Aee=0-Vj,Mee=0+Vj;function qi(e){return e.max-e.min}function _ee(e,t,a){return Math.abs(e-t)<=a}function Hj(e,t,a,r=.5){e.origin=r,e.originPoint=Za(t.min,t.max,e.origin),e.scale=qi(a)/qi(t),e.translate=Za(a.min,a.max,e.origin)-e.originPoint,(e.scale>=Oee&&e.scale<=Ree||isNaN(e.scale))&&(e.scale=1),(e.translate>=Aee&&e.translate<=Mee||isNaN(e.translate))&&(e.translate=0)}function z0(e,t,a,r){Hj(e.x,t.x,a.x,r?r.originX:void 0),Hj(e.y,t.y,a.y,r?r.originY:void 0)}function Bj(e,t,a){e.min=a.min+t.min,e.max=e.min+qi(t)}function Dee(e,t,a){Bj(e.x,t.x,a.x),Bj(e.y,t.y,a.y)}function Pj(e,t,a){e.min=t.min-a.min,e.max=e.min+qi(t)}function j0(e,t,a){Pj(e.x,t.x,a.x),Pj(e.y,t.y,a.y)}function Sl(e){return[e("x"),e("y")]}const Uj=({current:e})=>e?e.ownerDocument.defaultView:null,Ij=(e,t)=>Math.abs(e-t);function Nee(e,t){const a=Ij(e.x,t.x),r=Ij(e.y,t.y);return Math.sqrt(a**2+r**2)}class Fj{constructor(t,a,{transformPagePoint:r,contextWindow:l=window,dragSnapToOrigin:c=!1,distanceThreshold:f=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const E=NR(this.lastMoveEventInfo,this.history),T=this.startEvent!==null,O=Nee(E.offset,{x:0,y:0})>=this.distanceThreshold;if(!T&&!O)return;const{point:M}=E,{timestamp:A}=ii;this.history.push({...M,timestamp:A});const{onStart:D,onMove:_}=this.handlers;T||(D&&D(this.lastMoveEvent,E),this.startEvent=this.lastMoveEvent),_&&_(this.lastMoveEvent,E)},this.handlePointerMove=(E,T)=>{this.lastMoveEvent=E,this.lastMoveEventInfo=DR(T,this.transformPagePoint),Pa.update(this.updatePoint,!0)},this.handlePointerUp=(E,T)=>{this.end();const{onEnd:O,onSessionEnd:M,resumeAnimation:A}=this.handlers;if(this.dragSnapToOrigin&&A&&A(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const D=NR(E.type==="pointercancel"?this.lastMoveEventInfo:DR(T,this.transformPagePoint),this.history);this.startEvent&&O&&O(E,D),M&&M(E,D)},!fR(t))return;this.dragSnapToOrigin=c,this.handlers=a,this.transformPagePoint=r,this.distanceThreshold=f,this.contextWindow=l||window;const m=N0(t),g=DR(m,this.transformPagePoint),{point:p}=g,{timestamp:y}=ii;this.history=[{...p,timestamp:y}];const{onSessionStart:S}=a;S&&S(t,NR(g,this.history)),this.removeListeners=S0($0(this.contextWindow,"pointermove",this.handlePointerMove),$0(this.contextWindow,"pointerup",this.handlePointerUp),$0(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),af(this.updatePoint)}}function DR(e,t){return t?{point:t(e.point)}:e}function kj(e,t){return{x:e.x-t.x,y:e.y-t.y}}function NR({point:e},t){return{point:e,delta:kj(e,Gj(t)),offset:kj(e,$ee(t)),velocity:zee(t,.1)}}function $ee(e){return e[0]}function Gj(e){return e[e.length-1]}function zee(e,t){if(e.length<2)return{x:0,y:0};let a=e.length-1,r=null;const l=Gj(e);for(;a>=0&&(r=e[a],!(l.timestamp-r.timestamp>is(t)));)a--;if(!r)return{x:0,y:0};const c=Qs(l.timestamp-r.timestamp);if(c===0)return{x:0,y:0};const f={x:(l.x-r.x)/c,y:(l.y-r.y)/c};return f.x===1/0&&(f.x=0),f.y===1/0&&(f.y=0),f}function jee(e,{min:t,max:a},r){return t!==void 0&&e<t?e=r?Za(t,e,r.min):Math.max(e,t):a!==void 0&&e>a&&(e=r?Za(a,e,r.max):Math.min(e,a)),e}function qj(e,t,a){return{min:t!==void 0?e.min+t:void 0,max:a!==void 0?e.max+a-(e.max-e.min):void 0}}function Lee(e,{top:t,left:a,bottom:r,right:l}){return{x:qj(e.x,a,l),y:qj(e.y,t,r)}}function Yj(e,t){let a=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([a,r]=[r,a]),{min:a,max:r}}function Vee(e,t){return{x:Yj(e.x,t.x),y:Yj(e.y,t.y)}}function Hee(e,t){let a=.5;const r=qi(e),l=qi(t);return l>r?a=C0(t.min,t.max-r,e.min):r>l&&(a=C0(e.min,e.max-l,t.min)),Wu(0,1,a)}function Bee(e,t){const a={};return t.min!==void 0&&(a.min=t.min-e.min),t.max!==void 0&&(a.max=t.max-e.min),a}const $R=.35;function Pee(e=$R){return e===!1?e=0:e===!0&&(e=$R),{x:Xj(e,"left","right"),y:Xj(e,"top","bottom")}}function Xj(e,t,a){return{min:Wj(e,t),max:Wj(e,a)}}function Wj(e,t){return typeof e=="number"?e:e[t]||0}const Uee=new WeakMap;class Iee{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=dr(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:a=!1,distanceThreshold:r}={}){const{presenceContext:l}=this.visualElement;if(l&&l.isPresent===!1)return;const c=S=>{const{dragSnapToOrigin:E}=this.getProps();E?this.pauseAnimation():this.stopAnimation(),a&&this.snapToCursor(N0(S).point)},f=(S,E)=>{const{drag:T,dragPropagation:O,onDragStart:M}=this.getProps();if(T&&!O&&(this.openDragLock&&this.openDragLock(),this.openDragLock=GQ(T),!this.openDragLock))return;this.latestPointerEvent=S,this.latestPanInfo=E,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Sl(D=>{let _=this.getAxisMotionValue(D).get()||0;if(Js.test(_)){const{projection:z}=this.visualElement;if(z&&z.layout){const j=z.layout.layoutBox[D];j&&(_=qi(j)*(parseFloat(_)/100))}}this.originPoint[D]=_}),M&&Pa.postRender(()=>M(S,E)),AR(this.visualElement,"transform");const{animationState:A}=this.visualElement;A&&A.setActive("whileDrag",!0)},m=(S,E)=>{this.latestPointerEvent=S,this.latestPanInfo=E;const{dragPropagation:T,dragDirectionLock:O,onDirectionLock:M,onDrag:A}=this.getProps();if(!T&&!this.openDragLock)return;const{offset:D}=E;if(O&&this.currentDirection===null){this.currentDirection=Fee(D),this.currentDirection!==null&&M&&M(this.currentDirection);return}this.updateAxis("x",E.point,D),this.updateAxis("y",E.point,D),this.visualElement.render(),A&&A(S,E)},g=(S,E)=>{this.latestPointerEvent=S,this.latestPanInfo=E,this.stop(S,E),this.latestPointerEvent=null,this.latestPanInfo=null},p=()=>Sl(S=>this.getAnimationState(S)==="paused"&&this.getAxisMotionValue(S).animation?.play()),{dragSnapToOrigin:y}=this.getProps();this.panSession=new Fj(t,{onSessionStart:c,onStart:f,onMove:m,onSessionEnd:g,resumeAnimation:p},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:y,distanceThreshold:r,contextWindow:Uj(this.visualElement)})}stop(t,a){const r=t||this.latestPointerEvent,l=a||this.latestPanInfo,c=this.isDragging;if(this.cancel(),!c||!l||!r)return;const{velocity:f}=l;this.startAnimation(f);const{onDragEnd:m}=this.getProps();m&&Pa.postRender(()=>m(r,l))}cancel(){this.isDragging=!1;const{projection:t,animationState:a}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),a&&a.setActive("whileDrag",!1)}updateAxis(t,a,r){const{drag:l}=this.getProps();if(!r||!vC(t,l,this.currentDirection))return;const c=this.getAxisMotionValue(t);let f=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(f=jee(f,this.constraints[t],this.elastic[t])),c.set(f)}resolveConstraints(){const{dragConstraints:t,dragElastic:a}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,l=this.constraints;t&&rp(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=Lee(r.layoutBox,t):this.constraints=!1,this.elastic=Pee(a),l!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&Sl(c=>{this.constraints!==!1&&this.getAxisMotionValue(c)&&(this.constraints[c]=Bee(r.layoutBox[c],this.constraints[c]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:a}=this.getProps();if(!t||!rp(t))return!1;const r=t.current;Zu(r!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");const{projection:l}=this.visualElement;if(!l||!l.layout)return!1;const c=IJ(r,l.root,this.visualElement.getTransformPagePoint());let f=Vee(l.layout.layoutBox,c);if(a){const m=a(BJ(f));this.hasMutatedConstraints=!!m,m&&(f=pj(m))}return f}startAnimation(t){const{drag:a,dragMomentum:r,dragElastic:l,dragTransition:c,dragSnapToOrigin:f,onDragTransitionEnd:m}=this.getProps(),g=this.constraints||{},p=Sl(y=>{if(!vC(y,a,this.currentDirection))return;let S=g&&g[y]||{};f&&(S={min:0,max:0});const E=l?200:1e6,T=l?40:1e7,O={type:"inertia",velocity:r?t[y]:0,bounceStiffness:E,bounceDamping:T,timeConstant:750,restDelta:1,restSpeed:10,...c,...S};return this.startAxisValueAnimation(y,O)});return Promise.all(p).then(m)}startAxisValueAnimation(t,a){const r=this.getAxisMotionValue(t);return AR(this.visualElement,t),r.start(MR(t,r,0,a,this.visualElement,!1))}stopAnimation(){Sl(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Sl(t=>this.getAxisMotionValue(t).animation?.pause())}getAnimationState(t){return this.getAxisMotionValue(t).animation?.state}getAxisMotionValue(t){const a=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),l=r[a];return l||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){Sl(a=>{const{drag:r}=this.getProps();if(!vC(a,r,this.currentDirection))return;const{projection:l}=this.visualElement,c=this.getAxisMotionValue(a);if(l&&l.layout){const{min:f,max:m}=l.layout.layoutBox[a];c.set(t[a]-Za(f,m,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:a}=this.getProps(),{projection:r}=this.visualElement;if(!rp(a)||!r||!this.constraints)return;this.stopAnimation();const l={x:0,y:0};Sl(f=>{const m=this.getAxisMotionValue(f);if(m&&this.constraints!==!1){const g=m.get();l[f]=Hee({min:g,max:g},this.constraints[f])}});const{transformTemplate:c}=this.visualElement.getProps();this.visualElement.current.style.transform=c?c({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Sl(f=>{if(!vC(f,t,null))return;const m=this.getAxisMotionValue(f),{min:g,max:p}=this.constraints[f];m.set(Za(g,p,l[f]))})}addListeners(){if(!this.visualElement.current)return;Uee.set(this.visualElement,this);const t=this.visualElement.current,a=$0(t,"pointerdown",g=>{const{drag:p,dragListener:y=!0}=this.getProps();p&&y&&this.start(g)}),r=()=>{const{dragConstraints:g}=this.getProps();rp(g)&&g.current&&(this.constraints=this.resolveRefConstraints())},{projection:l}=this.visualElement,c=l.addEventListener("measure",r);l&&!l.layout&&(l.root&&l.root.updateScroll(),l.updateLayout()),Pa.read(r);const f=D0(window,"resize",()=>this.scalePositionWithinConstraints()),m=l.addEventListener("didUpdate",({delta:g,hasLayoutChanged:p})=>{this.isDragging&&p&&(Sl(y=>{const S=this.getAxisMotionValue(y);S&&(this.originPoint[y]+=g[y].translate,S.set(S.get()+g[y].translate))}),this.visualElement.render())});return()=>{f(),a(),c(),m&&m()}}getProps(){const t=this.visualElement.getProps(),{drag:a=!1,dragDirectionLock:r=!1,dragPropagation:l=!1,dragConstraints:c=!1,dragElastic:f=$R,dragMomentum:m=!0}=t;return{...t,drag:a,dragDirectionLock:r,dragPropagation:l,dragConstraints:c,dragElastic:f,dragMomentum:m}}}function vC(e,t,a){return(t===!0||t===e)&&(a===null||a===e)}function Fee(e,t=10){let a=null;return Math.abs(e.y)>t?a="y":Math.abs(e.x)>t&&(a="x"),a}class kee extends lf{constructor(t){super(t),this.removeGroupControls=bl,this.removeListeners=bl,this.controls=new Iee(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||bl}unmount(){this.removeGroupControls(),this.removeListeners()}}const Zj=e=>(t,a)=>{e&&Pa.postRender(()=>e(t,a))};class Gee extends lf{constructor(){super(...arguments),this.removePointerDownListener=bl}onPointerDown(t){this.session=new Fj(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Uj(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:a,onPan:r,onPanEnd:l}=this.node.getProps();return{onSessionStart:Zj(t),onStart:Zj(a),onMove:r,onEnd:(c,f)=>{delete this.session,l&&Pa.postRender(()=>l(c,f))}}}mount(){this.removePointerDownListener=$0(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const yC={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Kj(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const L0={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(on.test(e))e=parseFloat(e);else return e;const a=Kj(e,t.target.x),r=Kj(e,t.target.y);return`${a}% ${r}%`}},qee={correct:(e,{treeScale:t,projectionDelta:a})=>{const r=e,l=of.parse(e);if(l.length>5)return r;const c=of.createTransformer(e),f=typeof l[0]!="number"?1:0,m=a.x.scale*t.x,g=a.y.scale*t.y;l[0+f]/=m,l[1+f]/=g;const p=Za(m,g,.5);return typeof l[2+f]=="number"&&(l[2+f]/=p),typeof l[3+f]=="number"&&(l[3+f]/=p),c(l)}};let Qj=!1;class Yee extends C.Component{componentDidMount(){const{visualElement:t,layoutGroup:a,switchLayoutGroup:r,layoutId:l}=this.props,{projection:c}=t;dJ(Xee),c&&(a.group&&a.group.add(c),r&&r.register&&l&&r.register(c),Qj&&c.root.didUpdate(),c.addEventListener("animationComplete",()=>{this.safeToRemove()}),c.setOptions({...c.options,onExitComplete:()=>this.safeToRemove()})),yC.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:a,visualElement:r,drag:l,isPresent:c}=this.props,{projection:f}=r;return f&&(f.isPresent=c,Qj=!0,l||t.layoutDependency!==a||a===void 0||t.isPresent!==c?f.willUpdate():this.safeToRemove(),t.isPresent!==c&&(c?f.promote():f.relegate()||Pa.postRender(()=>{const m=f.getStack();(!m||!m.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),cR.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:a,switchLayoutGroup:r}=this.props,{projection:l}=t;l&&(l.scheduleCheckAfterUnmount(),a&&a.group&&a.group.remove(l),r&&r.deregister&&r.deregister(l))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function Jj(e){const[t,a]=Kz(),r=C.useContext(wO);return re.jsx(Yee,{...e,layoutGroup:r,switchLayoutGroup:C.useContext(hj),isPresent:t,safeToRemove:a})}const Xee={borderRadius:{...L0,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:L0,borderTopRightRadius:L0,borderBottomLeftRadius:L0,borderBottomRightRadius:L0,boxShadow:qee};function Wee(e,t,a){const r=wi(e)?e:np(e);return r.start(MR("",r,t,a)),r.animation}const Zee=(e,t)=>e.depth-t.depth;class Kee{constructor(){this.children=[],this.isDirty=!1}add(t){RO(this.children,t),this.isDirty=!0}remove(t){AO(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(Zee),this.isDirty=!1,this.children.forEach(t)}}function Qee(e,t){const a=vo.now(),r=({timestamp:l})=>{const c=l-a;c>=t&&(af(r),e(c-t))};return Pa.setup(r,!0),()=>af(r)}const e5=["TopLeft","TopRight","BottomLeft","BottomRight"],Jee=e5.length,t5=e=>typeof e=="string"?parseFloat(e):e,n5=e=>typeof e=="number"||on.test(e);function ete(e,t,a,r,l,c){l?(e.opacity=Za(0,a.opacity??1,tte(r)),e.opacityExit=Za(t.opacity??1,0,nte(r))):c&&(e.opacity=Za(t.opacity??1,a.opacity??1,r));for(let f=0;f<Jee;f++){const m=`border${e5[f]}Radius`;let g=a5(t,m),p=a5(a,m);if(g===void 0&&p===void 0)continue;g||(g=0),p||(p=0),g===0||p===0||n5(g)===n5(p)?(e[m]=Math.max(Za(t5(g),t5(p),r),0),(Js.test(p)||Js.test(g))&&(e[m]+="%")):e[m]=p}(t.rotate||a.rotate)&&(e.rotate=Za(t.rotate||0,a.rotate||0,r))}function a5(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const tte=r5(0,.5,K6),nte=r5(.5,.95,bl);function r5(e,t,a){return r=>r<e?0:r>t?1:a(C0(e,t,r))}function i5(e,t){e.min=t.min,e.max=t.max}function Cl(e,t){i5(e.x,t.x),i5(e.y,t.y)}function o5(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function l5(e,t,a,r,l){return e-=t,e=gC(e,1/a,r),l!==void 0&&(e=gC(e,1/l,r)),e}function ate(e,t=0,a=1,r=.5,l,c=e,f=e){if(Js.test(t)&&(t=parseFloat(t),t=Za(f.min,f.max,t/100)-f.min),typeof t!="number")return;let m=Za(c.min,c.max,r);e===c&&(m-=t),e.min=l5(e.min,t,a,m,l),e.max=l5(e.max,t,a,m,l)}function s5(e,t,[a,r,l],c,f){ate(e,t[a],t[r],t[l],t.scale,c,f)}const rte=["x","scaleX","originX"],ite=["y","scaleY","originY"];function u5(e,t,a,r){s5(e.x,t,rte,a?a.x:void 0,r?r.x:void 0),s5(e.y,t,ite,a?a.y:void 0,r?r.y:void 0)}function c5(e){return e.translate===0&&e.scale===1}function f5(e){return c5(e.x)&&c5(e.y)}function d5(e,t){return e.min===t.min&&e.max===t.max}function ote(e,t){return d5(e.x,t.x)&&d5(e.y,t.y)}function h5(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function m5(e,t){return h5(e.x,t.x)&&h5(e.y,t.y)}function p5(e){return qi(e.x)/qi(e.y)}function g5(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class lte{constructor(){this.members=[]}add(t){RO(this.members,t),t.scheduleRender()}remove(t){if(AO(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const a=this.members[this.members.length-1];a&&this.promote(a)}}relegate(t){const a=this.members.findIndex(l=>t===l);if(a===0)return!1;let r;for(let l=a;l>=0;l--){const c=this.members[l];if(c.isPresent!==!1){r=c;break}}return r?(this.promote(r),!0):!1}promote(t,a){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,a&&(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:l}=t.options;l===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:a,resumingFrom:r}=t;a.onExitComplete&&a.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 ste(e,t,a){let r="";const l=e.x.translate/t.x,c=e.y.translate/t.y,f=a?.z||0;if((l||c||f)&&(r=`translate3d(${l}px, ${c}px, ${f}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),a){const{transformPerspective:p,rotate:y,rotateX:S,rotateY:E,skewX:T,skewY:O}=a;p&&(r=`perspective(${p}px) ${r}`),y&&(r+=`rotate(${y}deg) `),S&&(r+=`rotateX(${S}deg) `),E&&(r+=`rotateY(${E}deg) `),T&&(r+=`skewX(${T}deg) `),O&&(r+=`skewY(${O}deg) `)}const m=e.x.scale*t.x,g=e.y.scale*t.y;return(m!==1||g!==1)&&(r+=`scale(${m}, ${g})`),r||"none"}const zR=["","X","Y","Z"],ute=1e3;let cte=0;function jR(e,t,a,r){const{latestValues:l}=t;l[e]&&(a[e]=l[e],t.setStaticValue(e,0),r&&(r[e]=0))}function v5(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const a=Dj(t);if(window.MotionHasOptimisedAnimation(a,"transform")){const{layout:l,layoutId:c}=e.options;window.MotionCancelOptimisedAnimation(a,"transform",Pa,!(l||c))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&v5(r)}function y5({attachResizeListener:e,defaultParent:t,measureScroll:a,checkIsScrollRoot:r,resetTransform:l}){return class{constructor(f={},m=t?.()){this.id=cte++,this.animationId=0,this.animationCommitId=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.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(hte),this.nodes.forEach(vte),this.nodes.forEach(yte),this.nodes.forEach(mte)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=f,this.root=m?m.root||m:this,this.path=m?[...m.path,m]:[],this.parent=m,this.depth=m?m.depth+1:0;for(let g=0;g<this.path.length;g++)this.path[g].shouldResetTransform=!0;this.root===this&&(this.nodes=new Kee)}addEventListener(f,m){return this.eventHandlers.has(f)||this.eventHandlers.set(f,new DO),this.eventHandlers.get(f).add(m)}notifyListeners(f,...m){const g=this.eventHandlers.get(f);g&&g.notify(...m)}hasListeners(f){return this.eventHandlers.has(f)}mount(f){if(this.instance)return;this.isSVG=Zz(f)&&!KQ(f),this.instance=f;const{layoutId:m,layout:g,visualElement:p}=this.options;if(p&&!p.current&&p.mount(f),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(g||m)&&(this.isLayoutDirty=!0),e){let y,S=0;const E=()=>this.root.updateBlockedByResize=!1;Pa.read(()=>{S=window.innerWidth}),e(f,()=>{const T=window.innerWidth;T!==S&&(S=T,this.root.updateBlockedByResize=!0,y&&y(),y=Qee(E,250),yC.hasAnimatedSinceResize&&(yC.hasAnimatedSinceResize=!1,this.nodes.forEach(C5)))})}m&&this.root.registerSharedNode(m,this),this.options.animate!==!1&&p&&(m||g)&&this.addEventListener("didUpdate",({delta:y,hasLayoutChanged:S,hasRelativeLayoutChanged:E,layout:T})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const O=this.options.transition||p.getDefaultTransition()||Ete,{onLayoutAnimationStart:M,onLayoutAnimationComplete:A}=p.getProps(),D=!this.targetLayout||!m5(this.targetLayout,T),_=!S&&E;if(this.options.layoutRoot||this.resumeFrom||_||S&&(D||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const z={...lR(O,"layout"),onPlay:M,onComplete:A};(p.shouldReduceMotion||this.options.layoutRoot)&&(z.delay=0,z.type=!1),this.startAnimation(z),this.setAnimationOrigin(y,_)}else S||C5(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=T})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const f=this.getStack();f&&f.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),af(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(bte),this.animationId++)}getTransformTemplate(){const{visualElement:f}=this.options;return f&&f.getProps().transformTemplate}willUpdate(f=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&v5(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let y=0;y<this.path.length;y++){const S=this.path[y];S.shouldResetTransform=!0,S.updateScroll("snapshot"),S.options.layoutRoot&&S.willUpdate(!1)}const{layoutId:m,layout:g}=this.options;if(m===void 0&&!g)return;const p=this.getTransformTemplate();this.prevTransformTemplateValue=p?p(this.latestValues,""):void 0,this.updateSnapshot(),f&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(b5);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(S5);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(gte),this.nodes.forEach(fte),this.nodes.forEach(dte)):this.nodes.forEach(S5),this.clearAllSnapshots();const m=vo.now();ii.delta=Wu(0,1e3/60,m-ii.timestamp),ii.timestamp=m,ii.isProcessing=!0,jO.update.process(ii),jO.preRender.process(ii),jO.render.process(ii),ii.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,cR.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(pte),this.sharedNodes.forEach(Ste)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Pa.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Pa.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!qi(this.snapshot.measuredBox.x)&&!qi(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let g=0;g<this.path.length;g++)this.path[g].updateScroll();const f=this.layout;this.layout=this.measure(!1),this.layoutCorrected=dr(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:m}=this.options;m&&m.notify("LayoutMeasure",this.layout.layoutBox,f?f.layoutBox:void 0)}updateScroll(f="measure"){let m=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===f&&(m=!1),m&&this.instance){const g=r(this.instance);this.scroll={animationId:this.root.animationId,phase:f,isRoot:g,offset:a(this.instance),wasRoot:this.scroll?this.scroll.isRoot:g}}}resetTransform(){if(!l)return;const f=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,m=this.projectionDelta&&!f5(this.projectionDelta),g=this.getTransformTemplate(),p=g?g(this.latestValues,""):void 0,y=p!==this.prevTransformTemplateValue;f&&this.instance&&(m||Id(this.latestValues)||y)&&(l(this.instance,p),this.shouldResetTransform=!1,this.scheduleRender())}measure(f=!0){const m=this.measurePageBox();let g=this.removeElementScroll(m);return f&&(g=this.removeTransform(g)),wte(g),{animationId:this.root.animationId,measuredBox:m,layoutBox:g,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:f}=this.options;if(!f)return dr();const m=f.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(Tte))){const{scroll:p}=this.root;p&&(ip(m.x,p.offset.x),ip(m.y,p.offset.y))}return m}removeElementScroll(f){const m=dr();if(Cl(m,f),this.scroll?.wasRoot)return m;for(let g=0;g<this.path.length;g++){const p=this.path[g],{scroll:y,options:S}=p;p!==this.root&&y&&S.layoutScroll&&(y.wasRoot&&Cl(m,f),ip(m.x,y.offset.x),ip(m.y,y.offset.y))}return m}applyTransform(f,m=!1){const g=dr();Cl(g,f);for(let p=0;p<this.path.length;p++){const y=this.path[p];!m&&y.options.layoutScroll&&y.scroll&&y!==y.root&&op(g,{x:-y.scroll.offset.x,y:-y.scroll.offset.y}),Id(y.latestValues)&&op(g,y.latestValues)}return Id(this.latestValues)&&op(g,this.latestValues),g}removeTransform(f){const m=dr();Cl(m,f);for(let g=0;g<this.path.length;g++){const p=this.path[g];if(!p.instance||!Id(p.latestValues))continue;wR(p.latestValues)&&p.updateSnapshot();const y=dr(),S=p.measurePageBox();Cl(y,S),u5(m,p.latestValues,p.snapshot?p.snapshot.layoutBox:void 0,y)}return Id(this.latestValues)&&u5(m,this.latestValues),m}setTargetDelta(f){this.targetDelta=f,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(f){this.options={...this.options,...f,crossfade:f.crossfade!==void 0?f.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!==ii.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(f=!1){const m=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=m.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=m.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=m.isSharedProjectionDirty);const g=!!this.resumingFrom||this!==m;if(!(f||g&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:y,layoutId:S}=this.options;if(!(!this.layout||!(y||S))){if(this.resolvedRelativeTargetAt=ii.timestamp,!this.targetDelta&&!this.relativeTarget){const E=this.getClosestProjectingParent();E&&E.layout&&this.animationProgress!==1?(this.relativeParent=E,this.forceRelativeParentToResolveTarget(),this.relativeTarget=dr(),this.relativeTargetOrigin=dr(),j0(this.relativeTargetOrigin,this.layout.layoutBox,E.layout.layoutBox),Cl(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=dr(),this.targetWithTransforms=dr()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Dee(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Cl(this.target,this.layout.layoutBox),bj(this.target,this.targetDelta)):Cl(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;const E=this.getClosestProjectingParent();E&&!!E.resumingFrom==!!this.resumingFrom&&!E.options.layoutScroll&&E.target&&this.animationProgress!==1?(this.relativeParent=E,this.forceRelativeParentToResolveTarget(),this.relativeTarget=dr(),this.relativeTargetOrigin=dr(),j0(this.relativeTargetOrigin,this.target,E.target),Cl(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||wR(this.parent.latestValues)||gj(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){const f=this.getLead(),m=!!this.resumingFrom||this!==f;let g=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(g=!1),m&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(g=!1),this.resolvedRelativeTargetAt===ii.timestamp&&(g=!1),g)return;const{layout:p,layoutId:y}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(p||y))return;Cl(this.layoutCorrected,this.layout.layoutBox);const S=this.treeScale.x,E=this.treeScale.y;UJ(this.layoutCorrected,this.treeScale,this.path,m),f.layout&&!f.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(f.target=f.layout.layoutBox,f.targetWithTransforms=dr());const{target:T}=f;if(!T){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(o5(this.prevProjectionDelta.x,this.projectionDelta.x),o5(this.prevProjectionDelta.y,this.projectionDelta.y)),z0(this.projectionDelta,this.layoutCorrected,T,this.latestValues),(this.treeScale.x!==S||this.treeScale.y!==E||!g5(this.projectionDelta.x,this.prevProjectionDelta.x)||!g5(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",T))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(f=!0){if(this.options.visualElement?.scheduleRender(),f){const m=this.getStack();m&&m.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=lp(),this.projectionDelta=lp(),this.projectionDeltaWithTransform=lp()}setAnimationOrigin(f,m=!1){const g=this.snapshot,p=g?g.latestValues:{},y={...this.latestValues},S=lp();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!m;const E=dr(),T=g?g.source:void 0,O=this.layout?this.layout.source:void 0,M=T!==O,A=this.getStack(),D=!A||A.members.length<=1,_=!!(M&&!D&&this.options.crossfade===!0&&!this.path.some(xte));this.animationProgress=0;let z;this.mixTargetDelta=j=>{const $=j/1e3;x5(S.x,f.x,$),x5(S.y,f.y,$),this.setTargetDelta(S),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(j0(E,this.layout.layoutBox,this.relativeParent.layout.layoutBox),Cte(this.relativeTarget,this.relativeTargetOrigin,E,$),z&&ote(this.relativeTarget,z)&&(this.isProjectionDirty=!1),z||(z=dr()),Cl(z,this.relativeTarget)),M&&(this.animationValues=y,ete(y,p,this.latestValues,$,_,D)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=$},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(f){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(af(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Pa.update(()=>{yC.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=np(0)),this.currentAnimation=Wee(this.motionValue,[0,1e3],{...f,velocity:0,isSync:!0,onUpdate:m=>{this.mixTargetDelta(m),f.onUpdate&&f.onUpdate(m)},onStop:()=>{},onComplete:()=>{f.onComplete&&f.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 f=this.getStack();f&&f.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(ute),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const f=this.getLead();let{targetWithTransforms:m,target:g,layout:p,latestValues:y}=f;if(!(!m||!g||!p)){if(this!==f&&this.layout&&p&&R5(this.options.animationType,this.layout.layoutBox,p.layoutBox)){g=this.target||dr();const S=qi(this.layout.layoutBox.x);g.x.min=f.target.x.min,g.x.max=g.x.min+S;const E=qi(this.layout.layoutBox.y);g.y.min=f.target.y.min,g.y.max=g.y.min+E}Cl(m,g),op(m,y),z0(this.projectionDeltaWithTransform,this.layoutCorrected,m,y)}}registerSharedNode(f,m){this.sharedNodes.has(f)||this.sharedNodes.set(f,new lte),this.sharedNodes.get(f).add(m);const p=m.options.initialPromotionConfig;m.promote({transition:p?p.transition:void 0,preserveFollowOpacity:p&&p.shouldPreserveFollowOpacity?p.shouldPreserveFollowOpacity(m):void 0})}isLead(){const f=this.getStack();return f?f.lead===this:!0}getLead(){const{layoutId:f}=this.options;return f?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:f}=this.options;return f?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:f}=this.options;if(f)return this.root.sharedNodes.get(f)}promote({needsReset:f,transition:m,preserveFollowOpacity:g}={}){const p=this.getStack();p&&p.promote(this,g),f&&(this.projectionDelta=void 0,this.needsReset=!0),m&&this.setOptions({transition:m})}relegate(){const f=this.getStack();return f?f.relegate(this):!1}resetSkewAndRotation(){const{visualElement:f}=this.options;if(!f)return;let m=!1;const{latestValues:g}=f;if((g.z||g.rotate||g.rotateX||g.rotateY||g.rotateZ||g.skewX||g.skewY)&&(m=!0),!m)return;const p={};g.z&&jR("z",f,p,this.animationValues);for(let y=0;y<zR.length;y++)jR(`rotate${zR[y]}`,f,p,this.animationValues),jR(`skew${zR[y]}`,f,p,this.animationValues);f.render();for(const y in p)f.setStaticValue(y,p[y]),this.animationValues&&(this.animationValues[y]=p[y]);f.scheduleRender()}applyProjectionStyles(f,m){if(!this.instance||this.isSVG)return;if(!this.isVisible){f.visibility="hidden";return}const g=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,f.visibility="",f.opacity="",f.pointerEvents=pC(m?.pointerEvents)||"",f.transform=g?g(this.latestValues,""):"none";return}const p=this.getLead();if(!this.projectionDelta||!this.layout||!p.target){this.options.layoutId&&(f.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,f.pointerEvents=pC(m?.pointerEvents)||""),this.hasProjected&&!Id(this.latestValues)&&(f.transform=g?g({},""):"none",this.hasProjected=!1);return}f.visibility="";const y=p.animationValues||p.latestValues;this.applyTransformsToTarget();let S=ste(this.projectionDeltaWithTransform,this.treeScale,y);g&&(S=g(y,S)),f.transform=S;const{x:E,y:T}=this.projectionDelta;f.transformOrigin=`${E.origin*100}% ${T.origin*100}% 0`,p.animationValues?f.opacity=p===this?y.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:y.opacityExit:f.opacity=p===this?y.opacity!==void 0?y.opacity:"":y.opacityExit!==void 0?y.opacityExit:0;for(const O in M0){if(y[O]===void 0)continue;const{correct:M,applyTo:A,isCSSVariable:D}=M0[O],_=S==="none"?y[O]:M(y[O],p);if(A){const z=A.length;for(let j=0;j<z;j++)f[A[j]]=_}else D?this.options.visualElement.renderState.vars[O]=_:f[O]=_}this.options.layoutId&&(f.pointerEvents=p===this?pC(m?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(f=>f.currentAnimation?.stop()),this.root.nodes.forEach(b5),this.root.sharedNodes.clear()}}}function fte(e){e.updateLayout()}function dte(e){const t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:a,measuredBox:r}=e.layout,{animationType:l}=e.options,c=t.source!==e.layout.source;l==="size"?Sl(y=>{const S=c?t.measuredBox[y]:t.layoutBox[y],E=qi(S);S.min=a[y].min,S.max=S.min+E}):R5(l,t.layoutBox,a)&&Sl(y=>{const S=c?t.measuredBox[y]:t.layoutBox[y],E=qi(a[y]);S.max=S.min+E,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[y].max=e.relativeTarget[y].min+E)});const f=lp();z0(f,a,t.layoutBox);const m=lp();c?z0(m,e.applyTransform(r,!0),t.measuredBox):z0(m,a,t.layoutBox);const g=!f5(f);let p=!1;if(!e.resumeFrom){const y=e.getClosestProjectingParent();if(y&&!y.resumeFrom){const{snapshot:S,layout:E}=y;if(S&&E){const T=dr();j0(T,t.layoutBox,S.layoutBox);const O=dr();j0(O,a,E.layoutBox),m5(T,O)||(p=!0),y.options.layoutRoot&&(e.relativeTarget=O,e.relativeTargetOrigin=T,e.relativeParent=y)}}}e.notifyListeners("didUpdate",{layout:a,snapshot:t,delta:m,layoutDelta:f,hasLayoutChanged:g,hasRelativeLayoutChanged:p})}else if(e.isLead()){const{onExitComplete:a}=e.options;a&&a()}e.options.transition=void 0}function hte(e){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 mte(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function pte(e){e.clearSnapshot()}function b5(e){e.clearMeasurements()}function S5(e){e.isLayoutDirty=!1}function gte(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function C5(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function vte(e){e.resolveTargetDelta()}function yte(e){e.calcProjection()}function bte(e){e.resetSkewAndRotation()}function Ste(e){e.removeLeadSnapshot()}function x5(e,t,a){e.translate=Za(t.translate,0,a),e.scale=Za(t.scale,1,a),e.origin=t.origin,e.originPoint=t.originPoint}function E5(e,t,a,r){e.min=Za(t.min,a.min,r),e.max=Za(t.max,a.max,r)}function Cte(e,t,a,r){E5(e.x,t.x,a.x,r),E5(e.y,t.y,a.y,r)}function xte(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const Ete={duration:.45,ease:[.4,0,.1,1]},w5=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),T5=w5("applewebkit/")&&!w5("chrome/")?Math.round:bl;function O5(e){e.min=T5(e.min),e.max=T5(e.max)}function wte(e){O5(e.x),O5(e.y)}function R5(e,t,a){return e==="position"||e==="preserve-aspect"&&!_ee(p5(t),p5(a),.2)}function Tte(e){return e!==e.root&&e.scroll?.wasRoot}const Ote=y5({attachResizeListener:(e,t)=>D0(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),LR={current:void 0},A5=y5({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!LR.current){const e=new Ote({});e.mount(window),e.setOptions({layoutScroll:!0}),LR.current=e}return LR.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),Rte={pan:{Feature:Gee},drag:{Feature:kee,ProjectionNode:A5,MeasureLayout:Jj}};function M5(e,t,a){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",a==="Start");const l="onHover"+a,c=r[l];c&&Pa.postRender(()=>c(t,N0(t)))}class Ate extends lf{mount(){const{current:t}=this.node;t&&(this.unmount=qQ(t,(a,r)=>(M5(this.node,r,"Start"),l=>M5(this.node,l,"End"))))}unmount(){}}class Mte extends lf{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=S0(D0(this.node.current,"focus",()=>this.onFocus()),D0(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function _5(e,t,a){const{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",a==="Start");const l="onTap"+(a==="End"?"":a),c=r[l];c&&Pa.postRender(()=>c(t,N0(t)))}class _te extends lf{mount(){const{current:t}=this.node;t&&(this.unmount=ZQ(t,(a,r)=>(_5(this.node,r,"Start"),(l,{success:c})=>_5(this.node,l,c?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const VR=new WeakMap,HR=new WeakMap,Dte=e=>{const t=VR.get(e.target);t&&t(e)},Nte=e=>{e.forEach(Dte)};function $te({root:e,...t}){const a=e||document;HR.has(a)||HR.set(a,{});const r=HR.get(a),l=JSON.stringify(t);return r[l]||(r[l]=new IntersectionObserver(Nte,{root:e,...t})),r[l]}function zte(e,t,a){const r=$te(t);return VR.set(e,a),r.observe(e),()=>{VR.delete(e),r.unobserve(e)}}const jte={some:0,all:1};class Lte extends lf{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:a,margin:r,amount:l="some",once:c}=t,f={root:a?a.current:void 0,rootMargin:r,threshold:typeof l=="number"?l:jte[l]},m=g=>{const{isIntersecting:p}=g;if(this.isInView===p||(this.isInView=p,c&&!p&&this.hasEnteredView))return;p&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",p);const{onViewportEnter:y,onViewportLeave:S}=this.node.getProps(),E=p?y:S;E&&E(g)};return zte(this.node.current,f,m)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:a}=this.node;["amount","margin","root"].some(Vte(t,a))&&this.startObserver()}unmount(){}}function Vte({viewport:e={}},{viewport:t={}}={}){return a=>e[a]!==t[a]}const Hte={...wee,...{inView:{Feature:Lte},tap:{Feature:_te},focus:{Feature:Mte},hover:{Feature:Ate}},...Rte,...{layout:{ProjectionNode:A5,MeasureLayout:Jj}}},sp=HJ(Hte,QJ);/**
|
|
653
|
+
* @license lucide-react v0.525.0 - ISC
|
|
654
|
+
*
|
|
655
|
+
* This source code is licensed under the ISC license.
|
|
656
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
657
|
+
*/const Bte=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Pte=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,a,r)=>r?r.toUpperCase():a.toLowerCase()),D5=e=>{const t=Pte(e);return t.charAt(0).toUpperCase()+t.slice(1)},N5=(...e)=>e.filter((t,a,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===a).join(" ").trim(),Ute=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};/**
|
|
658
|
+
* @license lucide-react v0.525.0 - ISC
|
|
659
|
+
*
|
|
660
|
+
* This source code is licensed under the ISC license.
|
|
661
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
662
|
+
*/var Ite={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
|
|
663
|
+
* @license lucide-react v0.525.0 - ISC
|
|
664
|
+
*
|
|
665
|
+
* This source code is licensed under the ISC license.
|
|
666
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
667
|
+
*/const Fte=C.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:a=2,absoluteStrokeWidth:r,className:l="",children:c,iconNode:f,...m},g)=>C.createElement("svg",{ref:g,...Ite,width:t,height:t,stroke:e,strokeWidth:r?Number(a)*24/Number(t):a,className:N5("lucide",l),...!c&&!Ute(m)&&{"aria-hidden":"true"},...m},[...f.map(([p,y])=>C.createElement(p,y)),...Array.isArray(c)?c:[c]]));/**
|
|
668
|
+
* @license lucide-react v0.525.0 - ISC
|
|
669
|
+
*
|
|
670
|
+
* This source code is licensed under the ISC license.
|
|
671
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
672
|
+
*/const kte=(e,t)=>{const a=C.forwardRef(({className:r,...l},c)=>C.createElement(Fte,{ref:c,iconNode:t,className:N5(`lucide-${Bte(D5(e))}`,`lucide-${e}`,r),...l}));return a.displayName=D5(e),a};/**
|
|
673
|
+
* @license lucide-react v0.525.0 - ISC
|
|
674
|
+
*
|
|
675
|
+
* This source code is licensed under the ISC license.
|
|
676
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
677
|
+
*/const Gte=kte("mail",[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]]),qte=({sessionId:e,colorCode:t="#000"})=>{const[a,r]=C.useState(null),[l,c]=C.useState({}),[f,m]=C.useState(0),g=[0,1,2];return C.useEffect(()=>{if(!e)return;const p=new WebSocket(`${Ei.websocketUrl}/support/${e}/`);return p.onmessage=({data:y})=>{const S=JSON.parse(y);r(S.stage),c(S.data||{})},p.onclose=()=>console.log("Support socket closed"),()=>p.close()},[e]),C.useEffect(()=>{let p,y;return a==="connecting"&&(y=Date.now(),m(100),p=window.setInterval(()=>{const S=(Date.now()-y)/1e3,E=Math.max(100-S/7*100,0);m(E),E<=0&&window.clearInterval(p)},100)),()=>{p&&window.clearInterval(p)}},[a]),a?re.jsx("div",{className:"bg-opacity-50 flex items-center justify-center z-50",children:re.jsxs(iJ,{children:[a==="email_sent"&&re.jsxs(sp.div,{className:"bg-white rounded-2xl shadow-xl p-6 flex flex-col items-center",initial:{scale:.9,opacity:0},animate:{scale:1,opacity:1},exit:{scale:.8,opacity:0},children:[re.jsx(Gte,{size:32,className:"mb-2",style:{color:t}}),re.jsx("p",{className:"text-lg font-semibold",children:"Sending your request to support…"}),re.jsx("div",{className:"flex space-x-2 mt-2",children:g.map((p,y)=>re.jsx(sp.span,{className:"text-2xl",style:{color:t},animate:{scale:[.7,1.3,.7]},transition:{delay:y*.2,repeat:1/0,duration:.8},children:"•"},y))})]},"email"),a==="connecting"&&re.jsxs(sp.div,{className:"bg-white rounded-2xl shadow-xl p-6 flex flex-col items-center",initial:{scale:.9,opacity:0},animate:{scale:1,opacity:1},exit:{scale:.8,opacity:0},children:[re.jsxs("div",{className:"flex items-center space-x-4",children:[re.jsx("img",{src:l.userImage,alt:"User",className:"w-12 h-12 rounded-full border-2",style:{borderColor:t}}),re.jsxs("p",{className:"text-lg",children:["Connecting you to"," ",re.jsx("span",{className:"text-indigo-600",children:l.agentName||"Support Agent"})]}),re.jsx("img",{src:l.companyImage,alt:"Company",className:"w-12 h-12 rounded-full border"})]}),re.jsx("div",{className:"flex space-x-2 mt-3",children:g.map((p,y)=>re.jsx(sp.span,{className:"text-2xl",style:{color:t},animate:{scale:[.7,1.3,.7]},transition:{delay:y*.2,repeat:1/0,duration:.8},children:"•"},y))}),re.jsx("div",{className:"w-full bg-gray-200 h-1 rounded-full mt-4 overflow-hidden",children:re.jsx(sp.div,{className:"h-full",style:{width:`${f}%`,backgroundColor:t},transition:{ease:"linear",duration:1}})})]},"connecting"),a==="auto"&&re.jsxs(sp.div,{className:"bg-white rounded-2xl shadow-xl p-6 flex items-center space-x-4",initial:{y:50,opacity:0},animate:{y:0,opacity:1},exit:{y:-50,opacity:0},children:[re.jsx("img",{src:l.agentAvatar||"https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSaC0jamaBcOGTbS86459UezKUs2Wo0lPU_mw&s",alt:"Auto Support",className:"w-12 h-12 rounded-2xl"}),re.jsxs("p",{className:"text-lg",children:["You’re now connected to"," ",re.jsx("span",{style:{color:t},children:l.agentName||"Auto-Support"})]})]},"auto")]})}):null},Yte=({message:e})=>{const t=e.find(r=>r.type==="text")?.text,a=r=>{const l=/(https?:\/\/[^\s]+)/g;return r.split(l).map((c,f)=>l.test(c)?re.jsx("a",{href:c.trim(),style:{color:"black"},target:"_blank",rel:"noopener noreferrer",className:"underline break-words",children:c},f):re.jsx("span",{children:c},f))};return re.jsx(re.Fragment,{children:t&&re.jsx("div",{style:{color:"black",border:1,paddingTop:10,paddingBottom:10,paddingInline:14,maxWidth:"85%",lineHeight:1.4,borderRadius:"16px",wordBreak:"break-word",backgroundColor:"#f0f0f0"},children:re.jsx("p",{children:a(t)})})})},Xte=({message:e,colorCode:t,handleAddToCart:a})=>{if(!e)return null;const l=e.split("|||").join(`
|
|
678
|
+
`).split(/(?=Name\s*[:\-])/g).map(m=>m.trim()).filter(Boolean),c=m=>{const g=m.trim();if(!g.startsWith("Name:")||!g.includes("Price:")||!g.includes("Link:")||!g.includes("img -")&&!g.includes("img:"))return null;const p=g.match(/Name\s*[:\-]\s*(.+)/i),y=g.match(/Price\s*[:\-]\s*(.+)/i),S=g.match(/Link\s*[:\-]\s*(https?:\/\/[^\s]+)/i),E=g.match(/img\s*[:\-]\s*(https?:\/\/[^\s]+)/i),T=g.match(/VariantId\s*[:\-]\s*(.+)/i);return!p||!y||!S||!E?null:{name:p[1].trim(),price:y[1].trim(),link:S[1].trim(),image:E[1].trim(),variant_id:T?.[1]?.trim()||""}},f=m=>{const g=/(https?:\/\/[^\s]+)/g;return m?.split(g).map((p,y)=>g.test(p)?re.jsx("a",{href:p.trim(),style:{color:"#00b3bc"},target:"_blank",rel:"noopener noreferrer",className:"underline break-words",children:p},y):re.jsx("span",{children:p},y))};return re.jsx("div",{className:"space-y-4",children:l.map((m,g)=>{const p=c(m);return p?re.jsxs("div",{className:"flex items-center bg-white shadow-lg rounded-2xl p-4 space-x-4",children:[re.jsx("div",{className:"w-32 h-32 sm:w-40 sm:h-40 relative",children:re.jsx("img",{src:p.image,alt:p.name,className:"w-full h-full object-cover rounded-xl cursor-pointer",onClick:()=>window.open(p.link,"_blank")})}),re.jsxs("div",{className:"flex-1",children:[re.jsx("a",{href:p.link,target:"_blank",rel:"noopener noreferrer",className:"text-lg font-semibold text-gray-900",children:p.name}),re.jsx("p",{className:"text-md font-medium text-gray-700",children:p.price}),re.jsxs("button",{className:"mt-3 flex items-center gap-2 px-4 py-2 rounded-lg font-semibold transition hover:opacity-90",style:{backgroundColor:t,color:"#fff"},onClick:()=>a(`name:${p.name},variantId:${p.variant_id},Link:${p.link}`),children:[re.jsx(YT,{}),re.jsx("span",{children:"+"})]})]})]},g):re.jsx("p",{className:"whitespace-pre-wrap break-words",children:f(m)},g)})})},Wte=re.jsx(ku,{style:{fontSize:24},spin:!0}),Zte=({messages:e,colorCode:t,handleAddToCart:a,handleRemoveFromCart:r,isLoading:l,agentStatus:c,sessionId:f,userType:m})=>{const g=()=>{},p=C.useRef(null);return C.useEffect(()=>{if(!p.current)return;const y=setTimeout(()=>{p.current?.scrollIntoView({behavior:"smooth"})},150);return()=>clearTimeout(y)},[e]),l||!e?re.jsx("div",{className:"loader-wrapper",style:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%"},children:re.jsx(tf,{indicator:Wte})}):re.jsxs("div",{className:"chatbot-messages space-y-4",children:[e.map((y,S)=>y.typing?re.jsx("div",{className:"chat-msg typing",children:re.jsx(ZZ,{})},S):y.isConnect?re.jsx(qte,{sessionId:f}):y.role==="assistant"?Array.isArray(y.content)?re.jsxs("div",{className:"chat-msg assistant",style:{backgroundColor:"transparent",padding:0},children:[y.image_url&&re.jsx("img",{src:y.image_url,alt:"Chat image",style:{width:200},className:"rounded-md mt-2 max-w-xs border border-green-400 shadow-sm"}),re.jsx(H6,{message:y.content}),re.jsx("div",{className:"flex justify-start",children:re.jsx(Yte,{message:y.content})})]},S):re.jsxs("div",{className:"chat-msg assistant",children:[y.image_url&&re.jsx("img",{src:y.image_url,alt:"Chat image",style:{width:200},className:"rounded-md mt-2 max-w-xs border border-green-400 shadow-sm"}),m==="shopify"?re.jsx(KZ,{message:y.content||y.text||"",colorCode:t,handleAddToCart:a,handleRemoveFromCart:r}):re.jsx(Xte,{message:y.content||y.text||"",colorCode:t,handleAddToCart:g})]},S):y?.audio_url?re.jsxs("div",{className:"chat-msg user",style:{backgroundColor:"transparent",padding:0},children:[re.jsx("div",{style:{borderRadius:12},children:re.jsx(JZ,{link:y.audio_url,transcription:y.content,colorCode:t})}),re.jsx("div",{className:"mt-1 mr-2 flex items-end justify-end",children:y.status==="uploading"?re.jsx(tf,{indicator:re.jsx(ku,{spin:!0}),size:"small"}):y.status==="delivered"?re.jsx(kT,{style:{color:"green"}}):y.status==="failed"?re.jsx(c0,{style:{color:"red"}}):null})]}):y.image_url?re.jsxs("div",{className:"chat-msg user",style:{backgroundColor:"transparent"},children:[re.jsx("img",{src:y.image_url,alt:"Chat image",style:{width:200},className:`rounded-md mt-2 max-w-xs ${y.content==="user"?"border border-gray-300 shadow-sm":"border border-green-400 shadow-sm"}`}),re.jsx("div",{className:"mt-1 mr-2 flex items-end justify-end",children:y.status==="uploading"?re.jsx(tf,{indicator:re.jsx(ku,{spin:!0}),size:"small"}):y.status==="delivered"?re.jsx(kT,{style:{color:"green"}}):y.status==="failed"?re.jsx(c0,{style:{color:"red"}}):null}),y.content&&re.jsx("div",{className:"flex justify-end mt-2",children:re.jsx("div",{style:{color:"white",border:1,backgroundColor:t,paddingTop:10,paddingBottom:10,paddingInline:14,maxWidth:"85%",lineHeight:1.4,borderRadius:"16px",wordBreak:"break-word"},children:re.jsx("span",{children:y.content})})})]},S):Array.isArray(y.content)?re.jsxs("div",{className:"chat-msg user",style:{backgroundColor:"transparent",padding:0},children:[re.jsx("div",{style:{backgroundColor:"transparent",padding:0},children:re.jsx(H6,{message:y.content})}),re.jsx("div",{className:"flex justify-end",children:re.jsx(QZ,{message:y.content,colorCode:t})},S)]},S):re.jsx("div",{className:`chat-msg ${y.role}`,style:y.role==="user"?{backgroundColor:t,color:"#fff"}:{},children:re.jsx(tK,{message:y.content,colorCode:t})},S)),re.jsx(eK,{status:c?.status,user:c?.user}),re.jsx("div",{ref:p})]})},Kte=e=>{const{disableChatbot:t,disableChatbotGlobally:a,isChatlogCreated:r,createNew:l,disableForm:c,calendlyLink:f,socket:m,newSession:g,setNewSession:p,setMessages:y}=e;return{apiCall:C.useCallback(async(E,T,O,M,A)=>{T&&(await fetch(`${Ei.apiUrl}chatlog-create/`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({visitor_id:localStorage.getItem("visitor_id"),company_username:nf("company_username"),session_id:O})}),p(!1)),!t&&!a&&y(D=>[...D,{role:"assistant",content:"typing",typing:!0}]);try{const D=await fetch(`${Ei.apiUrl}message-create/`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({message:E,isBusiness:!0,session_id:O,organization:nf("company_username"),isImage:A,image_url:M})});if(D.ok){const _=await D.json();if(_.message_history){const z=_.isConnect?{role:"assistant",content:"Your support request is on its way—please stand by!",isConnect:!0,sender:"Ai Agent",isBusiness:!1,isHtml:_.isHtml}:{role:"assistant",content:_.message,sender:"Ai Agent",isBusiness:!1,isHtml:_.isHtml};m?.readyState===WebSocket.OPEN&&m.send(JSON.stringify({message:_.message,additionalData:{isBusiness:!1,SessionId:O,sender:"AI",response:"from_ai_web"}})),y(j=>{const V=[...j.filter(H=>!H.typing),z];return _.message&&f&&/book\s?(a\s?)?meeting|schedule\s?(a\s?)?(call|meeting)|let\s?('s)?\s?meet|set\s?up\s?(a\s?)?meeting|book\s?(an\s?)?appointment/i.test(_.message)&&V.push({role:"assistant",content:"Scheduling a meeting...",isBusiness:!1,callCalendly:!0}),V})}else _.status==="success"&&y(z=>z.filter(j=>!j.typing))}else console.error("message-create failed")}catch(D){console.error("Message error:",D)}},[t,a,r,l,c,f,m,g])}};function Qte(e,t){const a=C.useRef(null),r=C.useRef(t);return C.useEffect(()=>{r.current=t},[t]),C.useEffect(()=>{if(!e)return;const l=new WebSocket(`${Ei.websocketUrl}/chat/${e}/`);a.current=l;const c=m=>{try{const g=JSON.parse(m.data);r.current(g)}catch(g){console.error("Invalid JSON",g)}};l.addEventListener("message",c);const f=()=>{};return l.addEventListener("close",f),()=>{l.removeEventListener("message",c),l.removeEventListener("close",f),l.close()}},[e]),a.current}const Jte=({message:e,onClose:t,duration:a=1e3})=>(C.useEffect(()=>{const r=setTimeout(t,a);return()=>clearTimeout(r)},[t,a]),re.jsx("div",{className:"jawebcss-notification",children:e}));function ene({items:e,loading:t,colorCode:a,sessionId:r,onRefresh:l,onRemove:c}){const[f,m]=C.useState(!1),g=C.useRef(null),[p,y]=C.useState(!1),S=async()=>{y(!0);try{const T=await fetch(`${Ei.apiUrl}checkout/shopify`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({sessionId:r,company_username:nf("company_username")})});if(!T.ok)throw new Error("Failed to initiate checkout.");const O=await T.json();O?.checkoutUrl?window.location.href=O.checkoutUrl:alert("No checkout URL returned.")}catch(T){console.error("Checkout error:",T)}finally{y(!1)}};C.useEffect(()=>{const T=O=>{g.current&&!g.current.contains(O.target)&&m(!1)};return document.addEventListener("mousedown",T),()=>document.removeEventListener("mousedown",T)},[]);const E=e.reduce((T,O)=>T+O.quantity,0);return re.jsxs("div",{className:"jawebchatbotcss-cart-widget",ref:g,children:[re.jsxs("button",{onClick:()=>m(T=>!T),className:"jawebchatbotcss-cart-button",children:[re.jsx(YT,{className:"jawebchatbotcss-cart-icon"}),re.jsxs("span",{className:"jawebchatbotcss-cart-label",children:["Cart (",E,")"]})]}),f&&re.jsxs("div",{className:"jawebchatbotcss-cart-dropdown",children:[re.jsxs("div",{className:"jawebchatbotcss-cart-header",children:[re.jsx("span",{className:"jawebchatbotcss-cart-title",children:"Your Cart"}),re.jsx("button",{onClick:l,disabled:t,className:"jawebchatbotcss-refresh-button",children:t?"Refreshing…":"Refresh"})]}),e.length===0?re.jsx("div",{className:"jawebchatbotcss-cart-empty",children:"Your cart is empty."}):re.jsx("ul",{className:"jawebchatbotcss-cart-list",children:e.map(T=>re.jsxs("li",{className:"jawebchatbotcss-cart-item",children:[re.jsx("span",{className:"jawebchatbotcss-item-name",children:T.name}),re.jsxs("div",{className:"jawebchatbotcss-item-controls",children:[re.jsxs("span",{className:"jawebchatbotcss-item-qty",children:["×",T.quantity]}),re.jsx(qv,{onClick:()=>c(T.variantId,T.quantity),className:"jawebchatbotcss-remove-icon"})]})]},T.variantId))}),e.length>0&&re.jsx("div",{className:"jawebchatbotcss-cart-footer",children:re.jsxs(as,{type:"primary",style:{backgroundColor:a},block:!0,disabled:E===0,loading:p,onClick:()=>{S()},children:["Checkout (",E,")"]})})]})]})}function tne(e){const[t,a]=C.useState([]),[r,l]=C.useState(!1),c=C.useCallback(async()=>{if(e){l(!0);try{const p=await(await fetch(`${Ei.apiUrl}cart?session_id=${e}`)).json();a(p.items||[])}catch(g){console.error("Failed to fetch cart",g)}finally{l(!1)}}},[e]),f=async(g,p,y)=>{if(e){a(S=>S.find(T=>T.variantId===g)?S.map(T=>T.variantId===g?{...T,quantity:T.quantity+y}:T):[...S,{variantId:g,name:p,quantity:y}]);try{await fetch(`${Ei.apiUrl}cart/add/`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({session_id:e,variantId:g,name:p,quantity:y})})}catch(S){console.error("Failed to sync addToCart to server",S)}await c()}},m=async(g,p)=>{if(e){a(y=>y.map(S=>S.variantId===g?{...S,quantity:S.quantity-p}:S).filter(S=>S.quantity>0));try{await fetch(`${Ei.apiUrl}cart/remove/`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({session_id:e,variantId:g,quantity:p})})}catch(y){console.error("Failed to sync removeFromCart to server",y)}await c()}};return C.useEffect(()=>{c()},[c]),{items:t,loading:r,addToCart:f,removeFromCart:m,refresh:c}}const nne=({chatbotLogo:e,agentName:t,colorCode:a,newSession:r,userType:l,setNewSession:c,messagesSuggestions:f,disableForm:m,sessionId:g,setOpen:p,Opened:y,setView:S})=>{const[E,T]=C.useState(""),[O,M]=C.useState(null),[A,D]=C.useState(null),[_,z]=C.useState(!1),[,j]=C.useState(()=>nf("new_user")==="true"),[$,V]=C.useState(!1),[,H]=C.useState(!1),[P,q]=C.useState(!1),[,Y]=C.useState(!1),{messages:te,setMessages:G}=UZ(g),[K,J]=C.useState({}),[ie,k]=C.useState(null),X=C.useCallback(me=>{if(me.status){J({status:me.status,user:me.user||"Support"});return}const{additionalData:Re={},message:Pe,image_url:be}=me;!Re.isBusiness&&Re.sender!=="AI"&&G(Ce=>[...Ce,{role:"assistant",content:Pe,isBusiness:!1,sender:Re.sender,image_url:be}])},[G]),Q=Qte(g,X),{apiCall:le}=Kte({disableChatbot:!1,disableChatbotGlobally:!1,isChatlogCreated:$,createNew:P,disableForm:m,calendlyLink:null,socket:Q,newSession:r,setMessages:G,setNewSession:c}),U=async()=>{if(!E.trim())return;let me=E;z(!0);const Re={role:"user",content:me};if(G(Pe=>[...Pe,Re]),Q&&Q.readyState===WebSocket.OPEN){const be=JSON.stringify({message:me,additionalData:{isBusiness:!0,SessionId:g}});Q.send(be)}try{await le(E,r,g)}catch(Pe){console.error(Pe)}finally{z(!1)}},F=async me=>{if(!me.trim())return;z(!0);const Re={role:"user",content:me};if(G(Pe=>[...Pe,Re]),Q&&Q.readyState===WebSocket.OPEN){const be=JSON.stringify({message:me,additionalData:{isBusiness:!0,SessionId:g}});Q.send(be)}try{await le(me,r,g)}catch(Pe){console.error("Error sending suggestion:",Pe)}finally{z(!1)}};async function ne(me,Re){const Pe=Date.now(),be=URL.createObjectURL(me);if(!me)return;const Ce={id:Pe,role:"user",content:Re||"",image_url:be,isBusiness:!0,status:"uploading"};G(je=>[...je,Ce]);let _e=null;if(me)try{const je=new FormData;je.append("image",me);const Ue=await $a.post(`${Ei.apiUrl}upload-image/`,je);Ue.status===201&&Ue.data?.image_url&&(_e=Ue.data.image_url,G(nt=>nt.map(it=>it.id===Pe&&_e?{...it,image_url:_e}:it)))}catch(je){console.error("Error uploading image:",je),G(Ue=>Ue.map(nt=>nt.id===Pe?{...nt,status:"failed"}:nt));return}try{if(Q&&Q.readyState===WebSocket.OPEN){const je={isBusiness:!0,SessionId:g},Ue=JSON.stringify({image_url:_e||null,message:E.trim()||"",additionalData:je});Q.send(Ue)}_e&&(G(je=>je.map(Ue=>Ue.id===Pe?{...Ue,status:"delivered"}:Ue)),le(Re.trim()||"",r,g,_e,!0))}catch(je){console.error("Error sending Image message:",je),G(Ue=>Ue.map(nt=>nt.id===Pe?{...nt,status:"failed"}:nt))}finally{M(null)}}const ae=async me=>{if(!me)return;const Re=URL.createObjectURL(me),Pe=Date.now(),be={id:Pe,role:"user",content:"",audio_url:Re,isBusiness:!0,status:"uploading"};G(je=>[...je,be]);let Ce,_e="";try{const je=new FormData;je.append("audio",me);const Ue=await $a.post(`${Ei.apiUrl}upload-audio/`,je);Ue.status===201&&(Ce=Ue.data.audio_url,_e=Ue.data.transcription_text||"[Audio]",G(nt=>nt.map(We=>We.id===Pe?{...We,audio_url:Ce,content:_e,status:"delivered"}:We)))}catch(je){console.error("Audio upload failed:",je),G(Ue=>Ue.map(nt=>nt.id===Pe?{...nt,status:"failed"}:nt));return}try{if(Q&&Q.readyState===WebSocket.OPEN){const je=JSON.stringify({audio_url:Ce,message:_e,additionalData:{isBusiness:!0,SessionId:g}});Q.send(je)}Ce&&le(_e,r,g,Ce,!1)}catch(je){console.error("Sending audio to API/WebSocket failed:",je),G(Ue=>Ue.map(nt=>nt.id===Pe?{...nt,status:"failed"}:nt))}finally{D(null)}},{items:oe,loading:fe,addToCart:ye,removeFromCart:$e,refresh:ze}=tne(g);function Fe(me,Re=20){return me.length>Re?`${me.slice(0,Re)}…`:me}const Ke=C.useCallback(async(me,Re,Pe=1)=>{await ye(me,Re,Pe);const be=Fe(Re,20);k(`✅ ${Pe}× ${be} added to cart`)},[ye]),Oe=C.useCallback(async(me,Re=1)=>{await $e(me,Re),k(`❌ Removed ${Re} item(s) from cart`)},[$e]);return re.jsxs("div",{className:"chatbot-box",children:[re.jsxs("div",{className:"chatbot-header",children:[re.jsx(as,{type:"text",style:{marginRight:8},onClick:()=>S("sessions"),icon:re.jsx(FT,{})}),re.jsx(RT,{src:e||"https://t4.ftcdn.net/jpg/08/90/53/75/360_F_890537572_m7EIYLzXgeTYGDNoIr7KEDOElFUTzFy0.jpg"}),re.jsx("span",{className:"chatbot-title",children:t||"Ai Assistant"}),oe.length>0&&re.jsx("div",{style:{display:"flex",justifyContent:"center",alignItems:"center"},children:re.jsx(ene,{items:oe,loading:fe,sessionId:g,onRefresh:ze,onRemove:$e,colorCode:a,sendMessage:F})}),re.jsx(qv,{onClick:()=>p(!y),className:"chatbot-close",style:{marginLeft:"auto"}})]}),ie&&re.jsx(Jte,{message:ie,onClose:()=>k(null)}),re.jsx(Zte,{messages:te,colorCode:a,isLoading:!1,handleAddToCart:Ke,agentStatus:K,sessionId:g,handleRemoveFromCart:Oe,userType:l}),re.jsxs("div",{className:"chatbot-input-area",children:[re.jsx(XZ,{sendMessageSuggestion:F,colorCode:a,suggestions:f}),re.jsx(YZ,{userMessage:E,setUserMessage:T,handleSendMessage:U,handleSendImage:ne,handleSendVoice:ae,selectedImage:O,setSelectedImage:M,audioBlob:A,setAudioBlob:D,isSending:_}),re.jsx(WZ,{})]})]})};var BR=function(){return BR=Object.assign||function(t){for(var a,r=1,l=arguments.length;r<l;r++){a=arguments[r];for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(t[c]=a[c])}return t},BR.apply(this,arguments)};function eu(e,t,a,r){function l(c){return c instanceof a?c:new a(function(f){f(c)})}return new(a||(a=Promise))(function(c,f){function m(y){try{p(r.next(y))}catch(S){f(S)}}function g(y){try{p(r.throw(y))}catch(S){f(S)}}function p(y){y.done?c(y.value):l(y.value).then(m,g)}p((r=r.apply(e,t||[])).next())})}function tu(e,t){var a={label:0,sent:function(){if(c[0]&1)throw c[1];return c[1]},trys:[],ops:[]},r,l,c,f=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return f.next=m(0),f.throw=m(1),f.return=m(2),typeof Symbol=="function"&&(f[Symbol.iterator]=function(){return this}),f;function m(p){return function(y){return g([p,y])}}function g(p){if(r)throw new TypeError("Generator is already executing.");for(;f&&(f=0,p[0]&&(a=0)),a;)try{if(r=1,l&&(c=p[0]&2?l.return:p[0]?l.throw||((c=l.return)&&c.call(l),0):l.next)&&!(c=c.call(l,p[1])).done)return c;switch(l=0,c&&(p=[p[0]&2,c.value]),p[0]){case 0:case 1:c=p;break;case 4:return a.label++,{value:p[1],done:!1};case 5:a.label++,l=p[1],p=[0];continue;case 7:p=a.ops.pop(),a.trys.pop();continue;default:if(c=a.trys,!(c=c.length>0&&c[c.length-1])&&(p[0]===6||p[0]===2)){a=0;continue}if(p[0]===3&&(!c||p[1]>c[0]&&p[1]<c[3])){a.label=p[1];break}if(p[0]===6&&a.label<c[1]){a.label=c[1],c=p;break}if(c&&a.label<c[2]){a.label=c[2],a.ops.push(p);break}c[2]&&a.ops.pop(),a.trys.pop();continue}p=t.call(e,a)}catch(y){p=[6,y],l=0}finally{r=c=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}}function $5(e,t,a){if(a||arguments.length===2)for(var r=0,l=t.length,c;r<l;r++)(c||!(r in t))&&(c||(c=Array.prototype.slice.call(t,0,r)),c[r]=t[r]);return e.concat(c||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;var z5="4.6.2";function bC(e,t){return new Promise(function(a){return setTimeout(a,e,t)})}function ane(){return new Promise(function(e){var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(null)})}function rne(e,t){t===void 0&&(t=1/0);var a=window.requestIdleCallback;return a?new Promise(function(r){return a.call(window,function(){return r()},{timeout:t})}):bC(Math.min(e,t))}function j5(e){return!!e&&typeof e.then=="function"}function L5(e,t){try{var a=e();j5(a)?a.then(function(r){return t(!0,r)},function(r){return t(!1,r)}):t(!0,a)}catch(r){t(!1,r)}}function V5(e,t,a){return a===void 0&&(a=16),eu(this,void 0,void 0,function(){var r,l,c,f;return tu(this,function(m){switch(m.label){case 0:r=Array(e.length),l=Date.now(),c=0,m.label=1;case 1:return c<e.length?(r[c]=t(e[c],c),f=Date.now(),f>=l+a?(l=f,[4,ane()]):[3,3]):[3,4];case 2:m.sent(),m.label=3;case 3:return++c,[3,1];case 4:return[2,r]}})})}function V0(e){return e.then(void 0,function(){}),e}function ine(e,t){for(var a=0,r=e.length;a<r;++a)if(e[a]===t)return!0;return!1}function one(e,t){return!ine(e,t)}function PR(e){return parseInt(e)}function ls(e){return parseFloat(e)}function Qu(e,t){return typeof e=="number"&&isNaN(e)?t:e}function Yi(e){return e.reduce(function(t,a){return t+(a?1:0)},0)}function H5(e,t){if(t===void 0&&(t=1),Math.abs(t)>=1)return Math.round(e/t)*t;var a=1/t;return Math.round(e*a)/a}function lne(e){for(var t,a,r="Unexpected syntax '".concat(e,"'"),l=/^\s*([a-z-]*)(.*)$/i.exec(e),c=l[1]||void 0,f={},m=/([.:#][\w-]+|\[.+?\])/gi,g=function(E,T){f[E]=f[E]||[],f[E].push(T)};;){var p=m.exec(l[2]);if(!p)break;var y=p[0];switch(y[0]){case".":g("class",y.slice(1));break;case"#":g("id",y.slice(1));break;case"[":{var S=/^\[([\w-]+)([~|^$*]?=("(.*?)"|([\w-]+)))?(\s+[is])?\]$/.exec(y);if(S)g(S[1],(a=(t=S[4])!==null&&t!==void 0?t:S[5])!==null&&a!==void 0?a:"");else throw new Error(r);break}default:throw new Error(r)}}return[c,f]}function sne(e){for(var t=new Uint8Array(e.length),a=0;a<e.length;a++){var r=e.charCodeAt(a);if(r>127)return new TextEncoder().encode(e);t[a]=r}return t}function sf(e,t){var a=e[0]>>>16,r=e[0]&65535,l=e[1]>>>16,c=e[1]&65535,f=t[0]>>>16,m=t[0]&65535,g=t[1]>>>16,p=t[1]&65535,y=0,S=0,E=0,T=0;T+=c+p,E+=T>>>16,T&=65535,E+=l+g,S+=E>>>16,E&=65535,S+=r+m,y+=S>>>16,S&=65535,y+=a+f,y&=65535,e[0]=y<<16|S,e[1]=E<<16|T}function xl(e,t){var a=e[0]>>>16,r=e[0]&65535,l=e[1]>>>16,c=e[1]&65535,f=t[0]>>>16,m=t[0]&65535,g=t[1]>>>16,p=t[1]&65535,y=0,S=0,E=0,T=0;T+=c*p,E+=T>>>16,T&=65535,E+=l*p,S+=E>>>16,E&=65535,E+=c*g,S+=E>>>16,E&=65535,S+=r*p,y+=S>>>16,S&=65535,S+=l*g,y+=S>>>16,S&=65535,S+=c*m,y+=S>>>16,S&=65535,y+=a*p+r*g+l*m+c*f,y&=65535,e[0]=y<<16|S,e[1]=E<<16|T}function up(e,t){var a=e[0];t%=64,t===32?(e[0]=e[1],e[1]=a):t<32?(e[0]=a<<t|e[1]>>>32-t,e[1]=e[1]<<t|a>>>32-t):(t-=32,e[0]=e[1]<<t|a>>>32-t,e[1]=a<<t|e[1]>>>32-t)}function Bo(e,t){t%=64,t!==0&&(t<32?(e[0]=e[1]>>>32-t,e[1]=e[1]<<t):(e[0]=e[1]<<t-32,e[1]=0))}function Ua(e,t){e[0]^=t[0],e[1]^=t[1]}var une=[4283543511,3981806797],cne=[3301882366,444984403];function B5(e){var t=[0,e[0]>>>1];Ua(e,t),xl(e,une),t[1]=e[0]>>>1,Ua(e,t),xl(e,cne),t[1]=e[0]>>>1,Ua(e,t)}var SC=[2277735313,289559509],CC=[1291169091,658871167],P5=[0,5],fne=[0,1390208809],dne=[0,944331445];function hne(e,t){var a=sne(e);t=t||0;var r=[0,a.length],l=r[1]%16,c=r[1]-l,f=[0,t],m=[0,t],g=[0,0],p=[0,0],y;for(y=0;y<c;y=y+16)g[0]=a[y+4]|a[y+5]<<8|a[y+6]<<16|a[y+7]<<24,g[1]=a[y]|a[y+1]<<8|a[y+2]<<16|a[y+3]<<24,p[0]=a[y+12]|a[y+13]<<8|a[y+14]<<16|a[y+15]<<24,p[1]=a[y+8]|a[y+9]<<8|a[y+10]<<16|a[y+11]<<24,xl(g,SC),up(g,31),xl(g,CC),Ua(f,g),up(f,27),sf(f,m),xl(f,P5),sf(f,fne),xl(p,CC),up(p,33),xl(p,SC),Ua(m,p),up(m,31),sf(m,f),xl(m,P5),sf(m,dne);g[0]=0,g[1]=0,p[0]=0,p[1]=0;var S=[0,0];switch(l){case 15:S[1]=a[y+14],Bo(S,48),Ua(p,S);case 14:S[1]=a[y+13],Bo(S,40),Ua(p,S);case 13:S[1]=a[y+12],Bo(S,32),Ua(p,S);case 12:S[1]=a[y+11],Bo(S,24),Ua(p,S);case 11:S[1]=a[y+10],Bo(S,16),Ua(p,S);case 10:S[1]=a[y+9],Bo(S,8),Ua(p,S);case 9:S[1]=a[y+8],Ua(p,S),xl(p,CC),up(p,33),xl(p,SC),Ua(m,p);case 8:S[1]=a[y+7],Bo(S,56),Ua(g,S);case 7:S[1]=a[y+6],Bo(S,48),Ua(g,S);case 6:S[1]=a[y+5],Bo(S,40),Ua(g,S);case 5:S[1]=a[y+4],Bo(S,32),Ua(g,S);case 4:S[1]=a[y+3],Bo(S,24),Ua(g,S);case 3:S[1]=a[y+2],Bo(S,16),Ua(g,S);case 2:S[1]=a[y+1],Bo(S,8),Ua(g,S);case 1:S[1]=a[y],Ua(g,S),xl(g,SC),up(g,31),xl(g,CC),Ua(f,g)}return Ua(f,r),Ua(m,r),sf(f,m),sf(m,f),B5(f),B5(m),sf(f,m),sf(m,f),("00000000"+(f[0]>>>0).toString(16)).slice(-8)+("00000000"+(f[1]>>>0).toString(16)).slice(-8)+("00000000"+(m[0]>>>0).toString(16)).slice(-8)+("00000000"+(m[1]>>>0).toString(16)).slice(-8)}function mne(e){var t;return BR({name:e.name,message:e.message,stack:(t=e.stack)===null||t===void 0?void 0:t.split(`
|
|
679
|
+
`)},e)}function pne(e){return/^function\s.*?\{\s*\[native code]\s*}$/.test(String(e))}function gne(e){return typeof e!="function"}function vne(e,t){var a=V0(new Promise(function(r){var l=Date.now();L5(e.bind(null,t),function(){for(var c=[],f=0;f<arguments.length;f++)c[f]=arguments[f];var m=Date.now()-l;if(!c[0])return r(function(){return{error:c[1],duration:m}});var g=c[1];if(gne(g))return r(function(){return{value:g,duration:m}});r(function(){return new Promise(function(p){var y=Date.now();L5(g,function(){for(var S=[],E=0;E<arguments.length;E++)S[E]=arguments[E];var T=m+Date.now()-y;if(!S[0])return p({error:S[1],duration:T});p({value:S[1],duration:T})})})})})}));return function(){return a.then(function(l){return l()})}}function yne(e,t,a,r){var l=Object.keys(e).filter(function(f){return one(a,f)}),c=V0(V5(l,function(f){return vne(e[f],t)},r));return function(){return eu(this,void 0,void 0,function(){var m,g,p,y,S;return tu(this,function(E){switch(E.label){case 0:return[4,c];case 1:return m=E.sent(),[4,V5(m,function(T){return V0(T())},r)];case 2:return g=E.sent(),[4,Promise.all(g)];case 3:for(p=E.sent(),y={},S=0;S<l.length;++S)y[l[S]]=p[S];return[2,y]}})})}}function U5(){var e=window,t=navigator;return Yi(["MSCSSMatrix"in e,"msSetImmediate"in e,"msIndexedDB"in e,"msMaxTouchPoints"in t,"msPointerEnabled"in t])>=4}function bne(){var e=window,t=navigator;return Yi(["msWriteProfilerMark"in e,"MSStream"in e,"msLaunchUri"in t,"msSaveBlob"in t])>=3&&!U5()}function H0(){var e=window,t=navigator;return Yi(["webkitPersistentStorage"in t,"webkitTemporaryStorage"in t,(t.vendor||"").indexOf("Google")===0,"webkitResolveLocalFileSystemURL"in e,"BatteryManager"in e,"webkitMediaStream"in e,"webkitSpeechGrammar"in e])>=5}function ss(){var e=window,t=navigator;return Yi(["ApplePayError"in e,"CSSPrimitiveValue"in e,"Counter"in e,t.vendor.indexOf("Apple")===0,"RGBColor"in e,"WebKitMediaKeys"in e])>=4}function UR(){var e=window,t=e.HTMLElement,a=e.Document;return Yi(["safari"in e,!("ongestureend"in e),!("TouchEvent"in e),!("orientation"in e),t&&!("autocapitalize"in t.prototype),a&&"pointerLockElement"in a.prototype])>=4}function B0(){var e=window;return pne(e.print)&&String(e.browser)==="[object WebPageNamespace]"}function I5(){var e,t,a=window;return Yi(["buildID"in navigator,"MozAppearance"in((t=(e=document.documentElement)===null||e===void 0?void 0:e.style)!==null&&t!==void 0?t:{}),"onmozfullscreenchange"in a,"mozInnerScreenX"in a,"CSSMozDocumentRule"in a,"CanvasCaptureMediaStream"in a])>=4}function Sne(){var e=window;return Yi([!("MediaSettingsRange"in e),"RTCEncodedAudioFrame"in e,""+e.Intl=="[object Intl]",""+e.Reflect=="[object Reflect]"])>=3}function Cne(){var e=window,t=e.URLPattern;return Yi(["union"in Set.prototype,"Iterator"in e,t&&"hasRegExpGroups"in t.prototype,"RGB8"in WebGLRenderingContext.prototype])>=3}function xne(){var e=window;return Yi(["DOMRectList"in e,"RTCPeerConnectionIceEvent"in e,"SVGGeometryElement"in e,"ontransitioncancel"in e])>=3}function P0(){var e=window,t=navigator,a=e.CSS,r=e.HTMLButtonElement;return Yi([!("getStorageUpdates"in t),r&&"popover"in r.prototype,"CSSCounterStyleRule"in e,a.supports("font-size-adjust: ex-height 0.5"),a.supports("text-transform: full-width")])>=4}function Ene(){if(navigator.platform==="iPad")return!0;var e=screen,t=e.width/e.height;return Yi(["MediaSource"in window,!!Element.prototype.webkitRequestFullscreen,t>.65&&t<1.53])>=2}function wne(){var e=document;return e.fullscreenElement||e.msFullscreenElement||e.mozFullScreenElement||e.webkitFullscreenElement||null}function Tne(){var e=document;return(e.exitFullscreen||e.msExitFullscreen||e.mozCancelFullScreen||e.webkitExitFullscreen).call(e)}function IR(){var e=H0(),t=I5(),a=window,r=navigator,l="connection";return e?Yi([!("SharedWorker"in a),r[l]&&"ontypechange"in r[l],!("sinkId"in new Audio)])>=2:t?Yi(["onorientationchange"in a,"orientation"in a,/android/i.test(r.appVersion)])>=2:!1}function One(){var e=navigator,t=window,a=Audio.prototype,r=t.visualViewport;return Yi(["srLatency"in a,"srChannelCount"in a,"devicePosture"in e,r&&"segments"in r,"getTextInformation"in Image.prototype])>=3}function Rne(){return _ne()?-4:Ane()}function Ane(){var e=window,t=e.OfflineAudioContext||e.webkitOfflineAudioContext;if(!t)return-2;if(Mne())return-1;var a=4500,r=5e3,l=new t(1,r,44100),c=l.createOscillator();c.type="triangle",c.frequency.value=1e4;var f=l.createDynamicsCompressor();f.threshold.value=-50,f.knee.value=40,f.ratio.value=12,f.attack.value=0,f.release.value=.25,c.connect(f),f.connect(l.destination),c.start(0);var m=Dne(l),g=m[0],p=m[1],y=V0(g.then(function(S){return Nne(S.getChannelData(0).subarray(a))},function(S){if(S.name==="timeout"||S.name==="suspended")return-3;throw S}));return function(){return p(),y}}function Mne(){return ss()&&!UR()&&!xne()}function _ne(){return ss()&&P0()&&B0()||H0()&&One()&&Cne()}function Dne(e){var t=3,a=500,r=500,l=5e3,c=function(){},f=new Promise(function(m,g){var p=!1,y=0,S=0;e.oncomplete=function(O){return m(O.renderedBuffer)};var E=function(){setTimeout(function(){return g(F5("timeout"))},Math.min(r,S+l-Date.now()))},T=function(){try{var O=e.startRendering();switch(j5(O)&&V0(O),e.state){case"running":S=Date.now(),p&&E();break;case"suspended":document.hidden||y++,p&&y>=t?g(F5("suspended")):setTimeout(T,a);break}}catch(M){g(M)}};T(),c=function(){p||(p=!0,S>0&&E())}});return[f,c]}function Nne(e){for(var t=0,a=0;a<e.length;++a)t+=Math.abs(e[a]);return t}function F5(e){var t=new Error(e);return t.name=e,t}function k5(e,t,a){var r,l,c;return a===void 0&&(a=50),eu(this,void 0,void 0,function(){var f,m;return tu(this,function(g){switch(g.label){case 0:f=document,g.label=1;case 1:return f.body?[3,3]:[4,bC(a)];case 2:return g.sent(),[3,1];case 3:m=f.createElement("iframe"),g.label=4;case 4:return g.trys.push([4,,10,11]),[4,new Promise(function(p,y){var S=!1,E=function(){S=!0,p()},T=function(A){S=!0,y(A)};m.onload=E,m.onerror=T;var O=m.style;O.setProperty("display","block","important"),O.position="absolute",O.top="0",O.left="0",O.visibility="hidden",t&&"srcdoc"in m?m.srcdoc=t:m.src="about:blank",f.body.appendChild(m);var M=function(){var A,D;S||(((D=(A=m.contentWindow)===null||A===void 0?void 0:A.document)===null||D===void 0?void 0:D.readyState)==="complete"?E():setTimeout(M,10))};M()})];case 5:g.sent(),g.label=6;case 6:return!((l=(r=m.contentWindow)===null||r===void 0?void 0:r.document)===null||l===void 0)&&l.body?[3,8]:[4,bC(a)];case 7:return g.sent(),[3,6];case 8:return[4,e(m,m.contentWindow)];case 9:return[2,g.sent()];case 10:return(c=m.parentNode)===null||c===void 0||c.removeChild(m),[7];case 11:return[2]}})})}function $ne(e){for(var t=lne(e),a=t[0],r=t[1],l=document.createElement(a??"div"),c=0,f=Object.keys(r);c<f.length;c++){var m=f[c],g=r[m].join(" ");m==="style"?zne(l.style,g):l.setAttribute(m,g)}return l}function zne(e,t){for(var a=0,r=t.split(";");a<r.length;a++){var l=r[a],c=/^\s*([\w-]+)\s*:\s*(.+?)(\s*!([\w-]+))?\s*$/.exec(l);if(c){var f=c[1],m=c[2],g=c[4];e.setProperty(f,m,g||"")}}}function jne(){for(var e=window;;){var t=e.parent;if(!t||t===e)return!1;try{if(t.location.origin!==e.location.origin)return!0}catch(a){if(a instanceof Error&&a.name==="SecurityError")return!0;throw a}e=t}}var Lne="mmMwWLliI0O&1",Vne="48px",cp=["monospace","sans-serif","serif"],G5=["sans-serif-thin","ARNO PRO","Agency FB","Arabic Typesetting","Arial Unicode MS","AvantGarde Bk BT","BankGothic Md BT","Batang","Bitstream Vera Sans Mono","Calibri","Century","Century Gothic","Clarendon","EUROSTILE","Franklin Gothic","Futura Bk BT","Futura Md BT","GOTHAM","Gill Sans","HELV","Haettenschweiler","Helvetica Neue","Humanst521 BT","Leelawadee","Letter Gothic","Levenim MT","Lucida Bright","Lucida Sans","Menlo","MS Mincho","MS Outlook","MS Reference Specialty","MS UI Gothic","MT Extra","MYRIAD PRO","Marlett","Meiryo UI","Microsoft Uighur","Minion Pro","Monotype Corsiva","PMingLiU","Pristina","SCRIPTINA","Segoe UI Light","Serifa","SimHei","Small Fonts","Staccato222 BT","TRAJAN PRO","Univers CE 55 Medium","Vrinda","ZWAdobeF"];function Hne(){var e=this;return k5(function(t,a){var r=a.document;return eu(e,void 0,void 0,function(){var l,c,f,m,g,p,y,S,E,T,O,M;return tu(this,function(A){for(l=r.body,l.style.fontSize=Vne,c=r.createElement("div"),c.style.setProperty("visibility","hidden","important"),f={},m={},g=function(D){var _=r.createElement("span"),z=_.style;return z.position="absolute",z.top="0",z.left="0",z.fontFamily=D,_.textContent=Lne,c.appendChild(_),_},p=function(D,_){return g("'".concat(D,"',").concat(_))},y=function(){return cp.map(g)},S=function(){for(var D={},_=function(V){D[V]=cp.map(function(H){return p(V,H)})},z=0,j=G5;z<j.length;z++){var $=j[z];_($)}return D},E=function(D){return cp.some(function(_,z){return D[z].offsetWidth!==f[_]||D[z].offsetHeight!==m[_]})},T=y(),O=S(),l.appendChild(c),M=0;M<cp.length;M++)f[cp[M]]=T[M].offsetWidth,m[cp[M]]=T[M].offsetHeight;return[2,G5.filter(function(D){return E(O[D])})]})})})}function Bne(){var e=navigator.plugins;if(e){for(var t=[],a=0;a<e.length;++a){var r=e[a];if(r){for(var l=[],c=0;c<r.length;++c){var f=r[c];l.push({type:f.type,suffixes:f.suffixes})}t.push({name:r.name,description:r.description,mimeTypes:l})}}return t}}function Pne(){return Une(Xne())}function Une(e){var t,a=!1,r,l,c=Ine(),f=c[0],m=c[1];return Fne(f,m)?(a=kne(m),e?r=l="skipped":(t=Gne(f,m),r=t[0],l=t[1])):r=l="unsupported",{winding:a,geometry:r,text:l}}function Ine(){var e=document.createElement("canvas");return e.width=1,e.height=1,[e,e.getContext("2d")]}function Fne(e,t){return!!(t&&e.toDataURL)}function kne(e){return e.rect(0,0,10,10),e.rect(2,2,6,6),!e.isPointInPath(5,5,"evenodd")}function Gne(e,t){qne(e,t);var a=FR(e),r=FR(e);if(a!==r)return["unstable","unstable"];Yne(e,t);var l=FR(e);return[l,a]}function qne(e,t){e.width=240,e.height=60,t.textBaseline="alphabetic",t.fillStyle="#f60",t.fillRect(100,1,62,20),t.fillStyle="#069",t.font='11pt "Times New Roman"';var a="Cwm fjordbank gly ".concat("😃");t.fillText(a,2,15),t.fillStyle="rgba(102, 204, 0, 0.2)",t.font="18pt Arial",t.fillText(a,4,45)}function Yne(e,t){e.width=122,e.height=110,t.globalCompositeOperation="multiply";for(var a=0,r=[["#f2f",40,40],["#2ff",80,40],["#ff2",60,80]];a<r.length;a++){var l=r[a],c=l[0],f=l[1],m=l[2];t.fillStyle=c,t.beginPath(),t.arc(f,m,40,0,Math.PI*2,!0),t.closePath(),t.fill()}t.fillStyle="#f9c",t.arc(60,60,60,0,Math.PI*2,!0),t.arc(60,60,20,0,Math.PI*2,!0),t.fill("evenodd")}function FR(e){return e.toDataURL()}function Xne(){return ss()&&P0()&&B0()}function Wne(){var e=navigator,t=0,a;e.maxTouchPoints!==void 0?t=PR(e.maxTouchPoints):e.msMaxTouchPoints!==void 0&&(t=e.msMaxTouchPoints);try{document.createEvent("TouchEvent"),a=!0}catch{a=!1}var r="ontouchstart"in window;return{maxTouchPoints:t,touchEvent:a,touchStart:r}}function Zne(){return navigator.oscpu}function Kne(){var e=navigator,t=[],a=e.language||e.userLanguage||e.browserLanguage||e.systemLanguage;if(a!==void 0&&t.push([a]),Array.isArray(e.languages))H0()&&Sne()||t.push(e.languages);else if(typeof e.languages=="string"){var r=e.languages;r&&t.push(r.split(","))}return t}function Qne(){return window.screen.colorDepth}function Jne(){return Qu(ls(navigator.deviceMemory),void 0)}function eae(){if(!(ss()&&P0()&&B0()))return tae()}function tae(){var e=screen,t=function(r){return Qu(PR(r),null)},a=[t(e.width),t(e.height)];return a.sort().reverse(),a}var nae=2500,aae=10,xC,kR;function rae(){if(kR===void 0){var e=function(){var t=GR();qR(t)?kR=setTimeout(e,nae):(xC=t,kR=void 0)};e()}}function iae(){var e=this;return rae(),function(){return eu(e,void 0,void 0,function(){var t;return tu(this,function(a){switch(a.label){case 0:return t=GR(),qR(t)?xC?[2,$5([],xC,!0)]:wne()?[4,Tne()]:[3,2]:[3,2];case 1:a.sent(),t=GR(),a.label=2;case 2:return qR(t)||(xC=t),[2,t]}})})}}function oae(){var e=this;if(ss()&&P0()&&B0())return function(){return Promise.resolve(void 0)};var t=iae();return function(){return eu(e,void 0,void 0,function(){var a,r;return tu(this,function(l){switch(l.label){case 0:return[4,t()];case 1:return a=l.sent(),r=function(c){return c===null?null:H5(c,aae)},[2,[r(a[0]),r(a[1]),r(a[2]),r(a[3])]]}})})}}function GR(){var e=screen;return[Qu(ls(e.availTop),null),Qu(ls(e.width)-ls(e.availWidth)-Qu(ls(e.availLeft),0),null),Qu(ls(e.height)-ls(e.availHeight)-Qu(ls(e.availTop),0),null),Qu(ls(e.availLeft),null)]}function qR(e){for(var t=0;t<4;++t)if(e[t])return!1;return!0}function lae(){return Qu(PR(navigator.hardwareConcurrency),void 0)}function sae(){var e,t=(e=window.Intl)===null||e===void 0?void 0:e.DateTimeFormat;if(t){var a=new t().resolvedOptions().timeZone;if(a)return a}var r=-uae();return"UTC".concat(r>=0?"+":"").concat(r)}function uae(){var e=new Date().getFullYear();return Math.max(ls(new Date(e,0,1).getTimezoneOffset()),ls(new Date(e,6,1).getTimezoneOffset()))}function cae(){try{return!!window.sessionStorage}catch{return!0}}function fae(){try{return!!window.localStorage}catch{return!0}}function dae(){if(!(U5()||bne()))try{return!!window.indexedDB}catch{return!0}}function hae(){return!!window.openDatabase}function mae(){return navigator.cpuClass}function pae(){var e=navigator.platform;return e==="MacIntel"&&ss()&&!UR()?Ene()?"iPad":"iPhone":e}function gae(){return navigator.vendor||""}function vae(){for(var e=[],t=0,a=["chrome","safari","__crWeb","__gCrWeb","yandex","__yb","__ybro","__firefox__","__edgeTrackingPreventionStatistics","webkit","oprt","samsungAr","ucweb","UCShellJava","puffinDevice"];t<a.length;t++){var r=a[t],l=window[r];l&&typeof l=="object"&&e.push(r)}return e.sort()}function yae(){var e=document;try{e.cookie="cookietest=1; SameSite=Strict;";var t=e.cookie.indexOf("cookietest=")!==-1;return e.cookie="cookietest=1; SameSite=Strict; expires=Thu, 01-Jan-1970 00:00:01 GMT",t}catch{return!1}}function bae(){var e=atob;return{abpIndo:["#Iklan-Melayang","#Kolom-Iklan-728","#SidebarIklan-wrapper",'[title="ALIENBOLA" i]',e("I0JveC1CYW5uZXItYWRz")],abpvn:[".quangcao","#mobileCatfish",e("LmNsb3NlLWFkcw=="),'[id^="bn_bottom_fixed_"]',"#pmadv"],adBlockFinland:[".mainostila",e("LnNwb25zb3JpdA=="),".ylamainos",e("YVtocmVmKj0iL2NsaWNrdGhyZ2guYXNwPyJd"),e("YVtocmVmXj0iaHR0cHM6Ly9hcHAucmVhZHBlYWsuY29tL2FkcyJd")],adBlockPersian:["#navbar_notice_50",".kadr",'TABLE[width="140px"]',"#divAgahi",e("YVtocmVmXj0iaHR0cDovL2cxLnYuZndtcm0ubmV0L2FkLyJd")],adBlockWarningRemoval:["#adblock-honeypot",".adblocker-root",".wp_adblock_detect",e("LmhlYWRlci1ibG9ja2VkLWFk"),e("I2FkX2Jsb2NrZXI=")],adGuardAnnoyances:[".hs-sosyal","#cookieconsentdiv",'div[class^="app_gdpr"]',".as-oil",'[data-cypress="soft-push-notification-modal"]'],adGuardBase:[".BetterJsPopOverlay",e("I2FkXzMwMFgyNTA="),e("I2Jhbm5lcmZsb2F0MjI="),e("I2NhbXBhaWduLWJhbm5lcg=="),e("I0FkLUNvbnRlbnQ=")],adGuardChinese:[e("LlppX2FkX2FfSA=="),e("YVtocmVmKj0iLmh0aGJldDM0LmNvbSJd"),"#widget-quan",e("YVtocmVmKj0iLzg0OTkyMDIwLnh5eiJd"),e("YVtocmVmKj0iLjE5NTZobC5jb20vIl0=")],adGuardFrench:["#pavePub",e("LmFkLWRlc2t0b3AtcmVjdGFuZ2xl"),".mobile_adhesion",".widgetadv",e("LmFkc19iYW4=")],adGuardGerman:['aside[data-portal-id="leaderboard"]'],adGuardJapanese:["#kauli_yad_1",e("YVtocmVmXj0iaHR0cDovL2FkMi50cmFmZmljZ2F0ZS5uZXQvIl0="),e("Ll9wb3BJbl9pbmZpbml0ZV9hZA=="),e("LmFkZ29vZ2xl"),e("Ll9faXNib29zdFJldHVybkFk")],adGuardMobile:[e("YW1wLWF1dG8tYWRz"),e("LmFtcF9hZA=="),'amp-embed[type="24smi"]',"#mgid_iframe1",e("I2FkX2ludmlld19hcmVh")],adGuardRussian:[e("YVtocmVmXj0iaHR0cHM6Ly9hZC5sZXRtZWFkcy5jb20vIl0="),e("LnJlY2xhbWE="),'div[id^="smi2adblock"]',e("ZGl2W2lkXj0iQWRGb3hfYmFubmVyXyJd"),"#psyduckpockeball"],adGuardSocial:[e("YVtocmVmXj0iLy93d3cuc3R1bWJsZXVwb24uY29tL3N1Ym1pdD91cmw9Il0="),e("YVtocmVmXj0iLy90ZWxlZ3JhbS5tZS9zaGFyZS91cmw/Il0="),".etsy-tweet","#inlineShare",".popup-social"],adGuardSpanishPortuguese:["#barraPublicidade","#Publicidade","#publiEspecial","#queTooltip",".cnt-publi"],adGuardTrackingProtection:["#qoo-counter",e("YVtocmVmXj0iaHR0cDovL2NsaWNrLmhvdGxvZy5ydS8iXQ=="),e("YVtocmVmXj0iaHR0cDovL2hpdGNvdW50ZXIucnUvdG9wL3N0YXQucGhwIl0="),e("YVtocmVmXj0iaHR0cDovL3RvcC5tYWlsLnJ1L2p1bXAiXQ=="),"#top100counter"],adGuardTurkish:["#backkapat",e("I3Jla2xhbWk="),e("YVtocmVmXj0iaHR0cDovL2Fkc2Vydi5vbnRlay5jb20udHIvIl0="),e("YVtocmVmXj0iaHR0cDovL2l6bGVuemkuY29tL2NhbXBhaWduLyJd"),e("YVtocmVmXj0iaHR0cDovL3d3dy5pbnN0YWxsYWRzLm5ldC8iXQ==")],bulgarian:[e("dGQjZnJlZW5ldF90YWJsZV9hZHM="),"#ea_intext_div",".lapni-pop-over","#xenium_hot_offers"],easyList:[".yb-floorad",e("LndpZGdldF9wb19hZHNfd2lkZ2V0"),e("LnRyYWZmaWNqdW5reS1hZA=="),".textad_headline",e("LnNwb25zb3JlZC10ZXh0LWxpbmtz")],easyListChina:[e("LmFwcGd1aWRlLXdyYXBbb25jbGljayo9ImJjZWJvcy5jb20iXQ=="),e("LmZyb250cGFnZUFkdk0="),"#taotaole","#aafoot.top_box",".cfa_popup"],easyListCookie:[".ezmob-footer",".cc-CookieWarning","[data-cookie-number]",e("LmF3LWNvb2tpZS1iYW5uZXI="),".sygnal24-gdpr-modal-wrap"],easyListCzechSlovak:["#onlajny-stickers",e("I3Jla2xhbW5pLWJveA=="),e("LnJla2xhbWEtbWVnYWJvYXJk"),".sklik",e("W2lkXj0ic2tsaWtSZWtsYW1hIl0=")],easyListDutch:[e("I2FkdmVydGVudGll"),e("I3ZpcEFkbWFya3RCYW5uZXJCbG9jaw=="),".adstekst",e("YVtocmVmXj0iaHR0cHM6Ly94bHR1YmUubmwvY2xpY2svIl0="),"#semilo-lrectangle"],easyListGermany:["#SSpotIMPopSlider",e("LnNwb25zb3JsaW5rZ3J1ZW4="),e("I3dlcmJ1bmdza3k="),e("I3Jla2xhbWUtcmVjaHRzLW1pdHRl"),e("YVtocmVmXj0iaHR0cHM6Ly9iZDc0Mi5jb20vIl0=")],easyListItaly:[e("LmJveF9hZHZfYW5udW5jaQ=="),".sb-box-pubbliredazionale",e("YVtocmVmXj0iaHR0cDovL2FmZmlsaWF6aW9uaWFkcy5zbmFpLml0LyJd"),e("YVtocmVmXj0iaHR0cHM6Ly9hZHNlcnZlci5odG1sLml0LyJd"),e("YVtocmVmXj0iaHR0cHM6Ly9hZmZpbGlhemlvbmlhZHMuc25haS5pdC8iXQ==")],easyListLithuania:[e("LnJla2xhbW9zX3RhcnBhcw=="),e("LnJla2xhbW9zX251b3JvZG9z"),e("aW1nW2FsdD0iUmVrbGFtaW5pcyBza3lkZWxpcyJd"),e("aW1nW2FsdD0iRGVkaWt1b3RpLmx0IHNlcnZlcmlhaSJd"),e("aW1nW2FsdD0iSG9zdGluZ2FzIFNlcnZlcmlhaS5sdCJd")],estonian:[e("QVtocmVmKj0iaHR0cDovL3BheTRyZXN1bHRzMjQuZXUiXQ==")],fanboyAnnoyances:["#ac-lre-player",".navigate-to-top","#subscribe_popup",".newsletter_holder","#back-top"],fanboyAntiFacebook:[".util-bar-module-firefly-visible"],fanboyEnhancedTrackers:[".open.pushModal","#issuem-leaky-paywall-articles-zero-remaining-nag","#sovrn_container",'div[class$="-hide"][zoompage-fontsize][style="display: block;"]',".BlockNag__Card"],fanboySocial:["#FollowUs","#meteored_share","#social_follow",".article-sharer",".community__social-desc"],frellwitSwedish:[e("YVtocmVmKj0iY2FzaW5vcHJvLnNlIl1bdGFyZ2V0PSJfYmxhbmsiXQ=="),e("YVtocmVmKj0iZG9rdG9yLXNlLm9uZWxpbmsubWUiXQ=="),"article.category-samarbete",e("ZGl2LmhvbGlkQWRz"),"ul.adsmodern"],greekAdBlock:[e("QVtocmVmKj0iYWRtYW4ub3RlbmV0LmdyL2NsaWNrPyJd"),e("QVtocmVmKj0iaHR0cDovL2F4aWFiYW5uZXJzLmV4b2R1cy5nci8iXQ=="),e("QVtocmVmKj0iaHR0cDovL2ludGVyYWN0aXZlLmZvcnRobmV0LmdyL2NsaWNrPyJd"),"DIV.agores300","TABLE.advright"],hungarian:["#cemp_doboz",".optimonk-iframe-container",e("LmFkX19tYWlu"),e("W2NsYXNzKj0iR29vZ2xlQWRzIl0="),"#hirdetesek_box"],iDontCareAboutCookies:['.alert-info[data-block-track*="CookieNotice"]',".ModuleTemplateCookieIndicator",".o--cookies--container","#cookies-policy-sticky","#stickyCookieBar"],icelandicAbp:[e("QVtocmVmXj0iL2ZyYW1ld29yay9yZXNvdXJjZXMvZm9ybXMvYWRzLmFzcHgiXQ==")],latvian:[e("YVtocmVmPSJodHRwOi8vd3d3LnNhbGlkemluaS5sdi8iXVtzdHlsZT0iZGlzcGxheTogYmxvY2s7IHdpZHRoOiAxMjBweDsgaGVpZ2h0OiA0MHB4OyBvdmVyZmxvdzogaGlkZGVuOyBwb3NpdGlvbjogcmVsYXRpdmU7Il0="),e("YVtocmVmPSJodHRwOi8vd3d3LnNhbGlkemluaS5sdi8iXVtzdHlsZT0iZGlzcGxheTogYmxvY2s7IHdpZHRoOiA4OHB4OyBoZWlnaHQ6IDMxcHg7IG92ZXJmbG93OiBoaWRkZW47IHBvc2l0aW9uOiByZWxhdGl2ZTsiXQ==")],listKr:[e("YVtocmVmKj0iLy9hZC5wbGFuYnBsdXMuY28ua3IvIl0="),e("I2xpdmVyZUFkV3JhcHBlcg=="),e("YVtocmVmKj0iLy9hZHYuaW1hZHJlcC5jby5rci8iXQ=="),e("aW5zLmZhc3R2aWV3LWFk"),".revenue_unit_item.dable"],listeAr:[e("LmdlbWluaUxCMUFk"),".right-and-left-sponsers",e("YVtocmVmKj0iLmFmbGFtLmluZm8iXQ=="),e("YVtocmVmKj0iYm9vcmFxLm9yZyJd"),e("YVtocmVmKj0iZHViaXp6bGUuY29tL2FyLz91dG1fc291cmNlPSJd")],listeFr:[e("YVtocmVmXj0iaHR0cDovL3Byb21vLnZhZG9yLmNvbS8iXQ=="),e("I2FkY29udGFpbmVyX3JlY2hlcmNoZQ=="),e("YVtocmVmKj0id2Vib3JhbWEuZnIvZmNnaS1iaW4vIl0="),".site-pub-interstitiel",'div[id^="crt-"][data-criteo-id]'],officialPolish:["#ceneo-placeholder-ceneo-12",e("W2hyZWZePSJodHRwczovL2FmZi5zZW5kaHViLnBsLyJd"),e("YVtocmVmXj0iaHR0cDovL2Fkdm1hbmFnZXIudGVjaGZ1bi5wbC9yZWRpcmVjdC8iXQ=="),e("YVtocmVmXj0iaHR0cDovL3d3dy50cml6ZXIucGwvP3V0bV9zb3VyY2UiXQ=="),e("ZGl2I3NrYXBpZWNfYWQ=")],ro:[e("YVtocmVmXj0iLy9hZmZ0cmsuYWx0ZXgucm8vQ291bnRlci9DbGljayJd"),e("YVtocmVmXj0iaHR0cHM6Ly9ibGFja2ZyaWRheXNhbGVzLnJvL3Ryay9zaG9wLyJd"),e("YVtocmVmXj0iaHR0cHM6Ly9ldmVudC4ycGVyZm9ybWFudC5jb20vZXZlbnRzL2NsaWNrIl0="),e("YVtocmVmXj0iaHR0cHM6Ly9sLnByb2ZpdHNoYXJlLnJvLyJd"),'a[href^="/url/"]'],ruAd:[e("YVtocmVmKj0iLy9mZWJyYXJlLnJ1LyJd"),e("YVtocmVmKj0iLy91dGltZy5ydS8iXQ=="),e("YVtocmVmKj0iOi8vY2hpa2lkaWtpLnJ1Il0="),"#pgeldiz",".yandex-rtb-block"],thaiAds:["a[href*=macau-uta-popup]",e("I2Fkcy1nb29nbGUtbWlkZGxlX3JlY3RhbmdsZS1ncm91cA=="),e("LmFkczMwMHM="),".bumq",".img-kosana"],webAnnoyancesUltralist:["#mod-social-share-2","#social-tools",e("LmN0cGwtZnVsbGJhbm5lcg=="),".zergnet-recommend",".yt.btn-link.btn-md.btn"]}}function Sae(e){var t=e===void 0?{}:e,a=t.debug;return eu(this,void 0,void 0,function(){var r,l,c,f,m,g;return tu(this,function(p){switch(p.label){case 0:return Cae()?(r=bae(),l=Object.keys(r),c=(g=[]).concat.apply(g,l.map(function(y){return r[y]})),[4,xae(c)]):[2,void 0];case 1:return f=p.sent(),a&&Eae(r,f),m=l.filter(function(y){var S=r[y],E=Yi(S.map(function(T){return f[T]}));return E>S.length*.6}),m.sort(),[2,m]}})})}function Cae(){return ss()||IR()}function xae(e){var t;return eu(this,void 0,void 0,function(){var a,r,l,c,g,f,m,g;return tu(this,function(p){switch(p.label){case 0:for(a=document,r=a.createElement("div"),l=new Array(e.length),c={},q5(r),g=0;g<e.length;++g)f=$ne(e[g]),f.tagName==="DIALOG"&&f.show(),m=a.createElement("div"),q5(m),m.appendChild(f),r.appendChild(m),l[g]=f;p.label=1;case 1:return a.body?[3,3]:[4,bC(50)];case 2:return p.sent(),[3,1];case 3:a.body.appendChild(r);try{for(g=0;g<e.length;++g)l[g].offsetParent||(c[e[g]]=!0)}finally{(t=r.parentNode)===null||t===void 0||t.removeChild(r)}return[2,c]}})})}function q5(e){e.style.setProperty("visibility","hidden","important"),e.style.setProperty("display","block","important")}function Eae(e,t){for(var a="DOM blockers debug:\n```",r=0,l=Object.keys(e);r<l.length;r++){var c=l[r];a+=`
|
|
680
|
+
`.concat(c,":");for(var f=0,m=e[c];f<m.length;f++){var g=m[f];a+=`
|
|
681
|
+
`.concat(t[g]?"🚫":"➡️"," ").concat(g)}}console.log("".concat(a,"\n```"))}function wae(){for(var e=0,t=["rec2020","p3","srgb"];e<t.length;e++){var a=t[e];if(matchMedia("(color-gamut: ".concat(a,")")).matches)return a}}function Tae(){if(Y5("inverted"))return!0;if(Y5("none"))return!1}function Y5(e){return matchMedia("(inverted-colors: ".concat(e,")")).matches}function Oae(){if(X5("active"))return!0;if(X5("none"))return!1}function X5(e){return matchMedia("(forced-colors: ".concat(e,")")).matches}var Rae=100;function Aae(){if(matchMedia("(min-monochrome: 0)").matches){for(var e=0;e<=Rae;++e)if(matchMedia("(max-monochrome: ".concat(e,")")).matches)return e;throw new Error("Too high value")}}function Mae(){if(fp("no-preference"))return 0;if(fp("high")||fp("more"))return 1;if(fp("low")||fp("less"))return-1;if(fp("forced"))return 10}function fp(e){return matchMedia("(prefers-contrast: ".concat(e,")")).matches}function _ae(){if(W5("reduce"))return!0;if(W5("no-preference"))return!1}function W5(e){return matchMedia("(prefers-reduced-motion: ".concat(e,")")).matches}function Dae(){if(Z5("reduce"))return!0;if(Z5("no-preference"))return!1}function Z5(e){return matchMedia("(prefers-reduced-transparency: ".concat(e,")")).matches}function Nae(){if(K5("high"))return!0;if(K5("standard"))return!1}function K5(e){return matchMedia("(dynamic-range: ".concat(e,")")).matches}var la=Math,Xi=function(){return 0};function $ae(){var e=la.acos||Xi,t=la.acosh||Xi,a=la.asin||Xi,r=la.asinh||Xi,l=la.atanh||Xi,c=la.atan||Xi,f=la.sin||Xi,m=la.sinh||Xi,g=la.cos||Xi,p=la.cosh||Xi,y=la.tan||Xi,S=la.tanh||Xi,E=la.exp||Xi,T=la.expm1||Xi,O=la.log1p||Xi,M=function(P){return la.pow(la.PI,P)},A=function(P){return la.log(P+la.sqrt(P*P-1))},D=function(P){return la.log(P+la.sqrt(P*P+1))},_=function(P){return la.log((1+P)/(1-P))/2},z=function(P){return la.exp(P)-1/la.exp(P)/2},j=function(P){return(la.exp(P)+1/la.exp(P))/2},$=function(P){return la.exp(P)-1},V=function(P){return(la.exp(2*P)-1)/(la.exp(2*P)+1)},H=function(P){return la.log(1+P)};return{acos:e(.12312423423423424),acosh:t(1e308),acoshPf:A(1e154),asin:a(.12312423423423424),asinh:r(1),asinhPf:D(1),atanh:l(.5),atanhPf:_(.5),atan:c(.5),sin:f(-1e300),sinh:m(1),sinhPf:z(1),cos:g(10.000000000123),cosh:p(1),coshPf:j(1),tan:y(-1e300),tanh:S(1),tanhPf:V(1),exp:E(1),expm1:T(1),expm1Pf:$(1),log1p:O(10),log1pPf:H(10),powPI:M(-100)}}var zae="mmMwWLliI0fiflO&1",YR={default:[],apple:[{font:"-apple-system-body"}],serif:[{fontFamily:"serif"}],sans:[{fontFamily:"sans-serif"}],mono:[{fontFamily:"monospace"}],min:[{fontSize:"1px"}],system:[{fontFamily:"system-ui"}]};function jae(){return Lae(function(e,t){for(var a={},r={},l=0,c=Object.keys(YR);l<c.length;l++){var f=c[l],m=YR[f],g=m[0],p=g===void 0?{}:g,y=m[1],S=y===void 0?zae:y,E=e.createElement("span");E.textContent=S,E.style.whiteSpace="nowrap";for(var T=0,O=Object.keys(p);T<O.length;T++){var M=O[T],A=p[M];A!==void 0&&(E.style[M]=A)}a[f]=E,t.append(e.createElement("br"),E)}for(var D=0,_=Object.keys(YR);D<_.length;D++){var f=_[D];r[f]=a[f].getBoundingClientRect().width}return r})}function Lae(e,t){return t===void 0&&(t=4e3),k5(function(a,r){var l=r.document,c=l.body,f=c.style;f.width="".concat(t,"px"),f.webkitTextSizeAdjust=f.textSizeAdjust="none",H0()?c.style.zoom="".concat(1/r.devicePixelRatio):ss()&&(c.style.zoom="reset");var m=l.createElement("div");return m.textContent=$5([],Array(t/20<<0),!0).map(function(){return"word"}).join(" "),c.appendChild(m),e(l,c)},'<!doctype html><html><head><meta name="viewport" content="width=device-width, initial-scale=1">')}function Vae(){return navigator.pdfViewerEnabled}function Hae(){var e=new Float32Array(1),t=new Uint8Array(e.buffer);return e[0]=1/0,e[0]=e[0]-e[0],t[3]}function Bae(){var e=window.ApplePaySession;if(typeof e?.canMakePayments!="function")return-1;if(Pae())return-3;try{return e.canMakePayments()?1:0}catch(t){return Uae(t)}}var Pae=jne;function Uae(e){if(e instanceof Error&&e.name==="InvalidAccessError"&&/\bfrom\b.*\binsecure\b/i.test(e.message))return-2;throw e}function Iae(){var e,t=document.createElement("a"),a=(e=t.attributionSourceId)!==null&&e!==void 0?e:t.attributionsourceid;return a===void 0?void 0:String(a)}var Q5=-1,J5=-2,Fae=new Set([10752,2849,2884,2885,2886,2928,2929,2930,2931,2932,2960,2961,2962,2963,2964,2965,2966,2967,2968,2978,3024,3042,3088,3089,3106,3107,32773,32777,32777,32823,32824,32936,32937,32938,32939,32968,32969,32970,32971,3317,33170,3333,3379,3386,33901,33902,34016,34024,34076,3408,3410,3411,3412,3413,3414,3415,34467,34816,34817,34818,34819,34877,34921,34930,35660,35661,35724,35738,35739,36003,36004,36005,36347,36348,36349,37440,37441,37443,7936,7937,7938]),kae=new Set([34047,35723,36063,34852,34853,34854,34229,36392,36795,38449]),Gae=["FRAGMENT_SHADER","VERTEX_SHADER"],qae=["LOW_FLOAT","MEDIUM_FLOAT","HIGH_FLOAT","LOW_INT","MEDIUM_INT","HIGH_INT"],eL="WEBGL_debug_renderer_info",Yae="WEBGL_polygon_mode";function Xae(e){var t,a,r,l,c,f,m=e.cache,g=tL(m);if(!g)return Q5;if(!rL(g))return J5;var p=aL()?null:g.getExtension(eL);return{version:((t=g.getParameter(g.VERSION))===null||t===void 0?void 0:t.toString())||"",vendor:((a=g.getParameter(g.VENDOR))===null||a===void 0?void 0:a.toString())||"",vendorUnmasked:p?(r=g.getParameter(p.UNMASKED_VENDOR_WEBGL))===null||r===void 0?void 0:r.toString():"",renderer:((l=g.getParameter(g.RENDERER))===null||l===void 0?void 0:l.toString())||"",rendererUnmasked:p?(c=g.getParameter(p.UNMASKED_RENDERER_WEBGL))===null||c===void 0?void 0:c.toString():"",shadingLanguageVersion:((f=g.getParameter(g.SHADING_LANGUAGE_VERSION))===null||f===void 0?void 0:f.toString())||""}}function Wae(e){var t=e.cache,a=tL(t);if(!a)return Q5;if(!rL(a))return J5;var r=a.getSupportedExtensions(),l=a.getContextAttributes(),c=[],f=[],m=[],g=[],p=[];if(l)for(var y=0,S=Object.keys(l);y<S.length;y++){var E=S[y];f.push("".concat(E,"=").concat(l[E]))}for(var T=nL(a),O=0,M=T;O<M.length;O++){var A=M[O],D=a[A];m.push("".concat(A,"=").concat(D).concat(Fae.has(D)?"=".concat(a.getParameter(D)):""))}if(r)for(var _=0,z=r;_<z.length;_++){var j=z[_];if(!(j===eL&&aL()||j===Yae&&Qae())){var $=a.getExtension(j);if(!$){c.push(j);continue}for(var V=0,H=nL($);V<H.length;V++){var A=H[V],D=$[A];g.push("".concat(A,"=").concat(D).concat(kae.has(D)?"=".concat(a.getParameter(D)):""))}}}for(var P=0,q=Gae;P<q.length;P++)for(var Y=q[P],te=0,G=qae;te<G.length;te++){var K=G[te],J=Zae(a,Y,K);p.push("".concat(Y,".").concat(K,"=").concat(J.join(",")))}return g.sort(),m.sort(),{contextAttributes:f,parameters:m,shaderPrecisions:p,extensions:r,extensionParameters:g,unsupportedExtensions:c}}function tL(e){if(e.webgl)return e.webgl.context;var t=document.createElement("canvas"),a;t.addEventListener("webglCreateContextError",function(){return a=void 0});for(var r=0,l=["webgl","experimental-webgl"];r<l.length;r++){var c=l[r];try{a=t.getContext(c)}catch{}if(a)break}return e.webgl={context:a},a}function Zae(e,t,a){var r=e.getShaderPrecisionFormat(e[t],e[a]);return r?[r.rangeMin,r.rangeMax,r.precision]:[]}function nL(e){var t=Object.keys(e.__proto__);return t.filter(Kae)}function Kae(e){return typeof e=="string"&&!e.match(/[^A-Z0-9_x]/)}function aL(){return I5()}function Qae(){return H0()||ss()}function rL(e){return typeof e.getParameter=="function"}function Jae(){var e=IR()||ss();if(!e)return-2;if(!window.AudioContext)return-1;var t=new AudioContext().baseLatency;return t==null?-1:isFinite(t)?t:-3}function ere(){if(!window.Intl)return-1;var e=window.Intl.DateTimeFormat;if(!e)return-2;var t=e().resolvedOptions().locale;return!t&&t!==""?-3:t}var tre={fonts:Hne,domBlockers:Sae,fontPreferences:jae,audio:Rne,screenFrame:oae,canvas:Pne,osCpu:Zne,languages:Kne,colorDepth:Qne,deviceMemory:Jne,screenResolution:eae,hardwareConcurrency:lae,timezone:sae,sessionStorage:cae,localStorage:fae,indexedDB:dae,openDatabase:hae,cpuClass:mae,platform:pae,plugins:Bne,touchSupport:Wne,vendor:gae,vendorFlavors:vae,cookiesEnabled:yae,colorGamut:wae,invertedColors:Tae,forcedColors:Oae,monochrome:Aae,contrast:Mae,reducedMotion:_ae,reducedTransparency:Dae,hdr:Nae,math:$ae,pdfViewerEnabled:Vae,architecture:Hae,applePay:Bae,privateClickMeasurement:Iae,audioBaseLatency:Jae,dateTimeLocale:ere,webGlBasics:Xae,webGlExtensions:Wae};function nre(e){return yne(tre,e,[])}var are="$ if upgrade to Pro: https://fpjs.dev/pro";function rre(e){var t=ire(e),a=ore(t);return{score:t,comment:are.replace(/\$/g,"".concat(a))}}function ire(e){if(IR())return .4;if(ss())return UR()&&!(P0()&&B0())?.5:.3;var t="value"in e.platform?e.platform.value:"";return/^Win/.test(t)?.6:/^Mac/.test(t)?.5:.7}function ore(e){return H5(.99+.01*e,1e-4)}function lre(e){for(var t="",a=0,r=Object.keys(e).sort();a<r.length;a++){var l=r[a],c=e[l],f="error"in c?"error":JSON.stringify(c.value);t+="".concat(t?"|":"").concat(l.replace(/([:|\\])/g,"\\$1"),":").concat(f)}return t}function iL(e){return JSON.stringify(e,function(t,a){return a instanceof Error?mne(a):a},2)}function oL(e){return hne(lre(e))}function sre(e){var t,a=rre(e);return{get visitorId(){return t===void 0&&(t=oL(this.components)),t},set visitorId(r){t=r},confidence:a,components:e,version:z5}}function ure(e){return e===void 0&&(e=50),rne(e,e*2)}function cre(e,t){var a=Date.now();return{get:function(r){return eu(this,void 0,void 0,function(){var l,c,f;return tu(this,function(m){switch(m.label){case 0:return l=Date.now(),[4,e()];case 1:return c=m.sent(),f=sre(c),(t||r?.debug)&&console.log("Copy the text below to get the debug data:\n\n```\nversion: ".concat(f.version,`
|
|
682
|
+
userAgent: `).concat(navigator.userAgent,`
|
|
683
|
+
timeBetweenLoadAndGet: `).concat(l-a,`
|
|
684
|
+
visitorId: `).concat(f.visitorId,`
|
|
685
|
+
components: `).concat(iL(c),"\n```")),[2,f]}})})}}}function fre(){if(!(window.__fpjs_d_m||Math.random()>=.001))try{var e=new XMLHttpRequest;e.open("get","https://m1.openfpcdn.io/fingerprintjs/v".concat(z5,"/npm-monitoring"),!0),e.send()}catch(t){console.error(t)}}function dre(e){var t;return e===void 0&&(e={}),eu(this,void 0,void 0,function(){var a,r,l;return tu(this,function(c){switch(c.label){case 0:return(!((t=e.monitoring)!==null&&t!==void 0)||t)&&fre(),a=e.delayFallback,r=e.debug,[4,ure(a)];case 1:return c.sent(),l=nre({cache:{},debug:r}),[2,cre(l,r)]}})})}var hre={load:dre,hashComponents:oL,componentsToDebugString:iL};const mre=()=>{const[e,t]=C.useState(!1),[a,r]=C.useState("sessions"),[l,c]=C.useState(null),[f,m]=C.useState(!1),[g,p]=C.useState(""),[y,S]=C.useState(""),[E,T]=C.useState(!1),O=window.innerWidth,{chatbotLogo:M,colorCode:A,subscription:D,messagesSuggestions:_,isFetchingDetails:z,disableForm:j,merchantPhone:$,userType:V}=jZ(),[H,P]=C.useState(null),q=()=>{if(f){const te=crypto.randomUUID();c(te),S(M),p("Ai Agent"),console.log(l),T(!0),r("messenger")}else r("create")};C.useEffect(()=>{(async()=>{try{let G=localStorage.getItem("visitor_id"),K=localStorage.getItem("ip_address"),J=localStorage.getItem("country");if(G||(G=(await(await hre.load()).get()).visitorId,localStorage.setItem("visitor_id",G)),!K||!J){const k=await(await fetch("https://ipapi.co/json")).json();K=k.ip,J=k.country_name,K&&localStorage.setItem("ip_address",K),J&&localStorage.setItem("country",J)}if(G&&K&&J){console.log("HHH"),P({visitorId:G,country:J});const k=await(await fetch(`${Ei.apiUrl}register-ip/`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({ip_address:K,country:J,visitor_id:G})})).json();m(k.has_user_info||!1)}else console.warn("Missing IP or country info after fetch")}catch(G){console.error("Failed to fetch or send visitor info",G)}})()},[]);const Y=(te,G,K)=>{c(te),p(G),S(K),T(!1),r("messenger")};return re.jsxs("div",{children:[!z&&D?re.jsx("div",{style:{bottom:O<768?"20%":0,top:O<768?"0":"5%",height:O<768?"100%":"85%",borderRadius:10,width:(O<768,"100%"),zIndex:9999},children:e&&re.jsxs("div",{className:"chatbot-box",children:[a==="sessions"&&re.jsx(HZ,{chatbotLogo:M,Phone:$||"",colorCode:A,visitorId:H?.visitorId||"",Opened:e,setOpen:t,onNewSession:q,onSessionSelect:Y}),a==="create"&&re.jsx(PZ,{colorCode:A,visitorId:H?.visitorId||"",country:H?.country||"",onBack:()=>r("sessions"),onCreate:te=>{c(te.session_id),m(te.hasInfo),r("messenger")}}),a==="messenger"&&l&&re.jsx(nne,{sessionId:l,chatbotLogo:y||M,agentName:g||"Ai Assistant",colorCode:A,messagesSuggestions:_,newSession:E,disableForm:j,setOpen:t,setNewSession:T,Opened:e,setView:()=>r("sessions"),userType:V})]})}):null,re.jsx("div",{className:"jaweb-chatbot-container",children:!z&&D?re.jsx(as,{type:"primary",shape:"circle",icon:re.jsx("img",{src:"https://jaweb.me/wp-content/uploads/2025/03/download__2_-removebg-preview.png",alt:"Chat Icon",style:{width:30,height:30}}),size:"large",style:{backgroundColor:A,width:60,height:60},className:`chat-launcher ${e?"chatbot-open":""}`,onClick:()=>t(!e)}):null})]})},lL="jaweb-chatbot-container";if(!document.getElementById(lL)){const e=document.createElement("div");e.id=lL,document.body.appendChild(e),S8.createRoot(e).render(re.jsx(mre,{}))}})();
|