@yuku123/z-frontend-common 0.2.9 → 1.0.0

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.
Files changed (57) hide show
  1. package/LICENSE +25 -0
  2. package/README.md +55 -42
  3. package/dist/index.js +1 -0
  4. package/package.json +49 -44
  5. package/src/components/ErrorBoundary/index.jsx +24 -77
  6. package/src/components/Layout/index.jsx +141 -38
  7. package/src/components/LoginPage/index.jsx +47 -21
  8. package/src/components/StatusTag/index.jsx +14 -12
  9. package/src/index.js +32 -38
  10. package/src/services/request.js +74 -4
  11. package/dist/z-frontend-common.css +0 -1
  12. package/dist/z-frontend-common.es.js +0 -51275
  13. package/dist/z-frontend-common.umd.js +0 -459
  14. package/src/components/Ctc/Layout.jsx +0 -330
  15. package/src/components/Ctc/Layout.module.css +0 -145
  16. package/src/components/Ctc/agentTeam/index.tsx +0 -308
  17. package/src/components/Ctc/login/AuthPage.module.css +0 -26
  18. package/src/components/Ctc/login/AuthPage.tsx +0 -235
  19. package/src/components/Ctc/login/index.less +0 -49
  20. package/src/components/Ctc/login/index.tsx +0 -142
  21. package/src/components/Ctc/uc/UCLogin.tsx +0 -31
  22. package/src/components/Ctc/uc/UCPhoneLogin.tsx +0 -62
  23. package/src/components/Ctc/uc/UCRegister.tsx +0 -37
  24. package/src/components/Ctc/uc/UCResetPassword.tsx +0 -69
  25. package/src/components/Ctc/uc/index.tsx +0 -15
  26. package/src/components/Ctc/userPanel/index.tsx +0 -999
  27. package/src/components/Ctc/webide/index.tsx +0 -272
  28. package/src/components/LowCode/LowCodeModel.jsx +0 -962
  29. package/src/components/LowCode/LowCodePage.jsx +0 -31
  30. package/src/components/LowCode/LowCodeRuntime.jsx +0 -335
  31. package/src/components/LowCode/MaterializePage.jsx +0 -235
  32. package/src/components/LowCode/index.js +0 -1
  33. package/src/components/MockPlatform/CurlImportModal.jsx +0 -362
  34. package/src/components/MockPlatform/EndpointsTab.jsx +0 -509
  35. package/src/components/MockPlatform/EnvironmentsTab.jsx +0 -212
  36. package/src/components/MockPlatform/MockTemplateHelper.jsx +0 -200
  37. package/src/components/MockPlatform/OpenApiImportModal.jsx +0 -305
  38. package/src/components/MockPlatform/RecordingsTab.jsx +0 -397
  39. package/src/components/MockPlatform/RequestLogsTab.jsx +0 -239
  40. package/src/components/MockPlatform/ScenariosTab.jsx +0 -236
  41. package/src/components/MockPlatform/TestCasesTab.jsx +0 -462
  42. package/src/components/MockPlatform/index.jsx +0 -127
  43. package/src/components/Overview.jsx +0 -74
  44. package/src/dev.jsx +0 -28
  45. package/src/services/agentTeam.js +0 -7
  46. package/src/services/api.js +0 -84
  47. package/src/services/ctcAc.js +0 -7
  48. package/src/services/ctcAcDomain.js +0 -7
  49. package/src/services/ctcAuthorization.js +0 -7
  50. package/src/services/ctcSurl.js +0 -7
  51. package/src/services/ctcUser.js +0 -7
  52. package/src/services/job.js +0 -7
  53. package/src/services/metaApp.js +0 -7
  54. package/src/services/privateConfig.js +0 -7
  55. package/src/services/webide.js +0 -6
  56. package/src/services/workspace.js +0 -21
  57. package/src/utils/request.ts +0 -102
@@ -1,459 +0,0 @@
1
- (function(ct,H){typeof exports=="object"&&typeof module<"u"?H(exports,require("react"),require("antd"),require("@ant-design/icons"),require("react-router-dom"),require("@ant-design/pro-components"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","antd","@ant-design/icons","react-router-dom","@ant-design/pro-components","react-dom"],H):(ct=typeof globalThis<"u"?globalThis:ct||self,H(ct.ZFrontendCommon={},ct.React,ct.antd,ct.icons,ct.ReactRouterDOM,ct.ProComponents,ct.ReactDOM))})(this,(function(ct,H,b,he,ro,Ou,ty){"use strict";var Y9=Object.defineProperty;var X9=(ct,H,b)=>H in ct?Y9(ct,H,{enumerable:!0,configurable:!0,writable:!0,value:b}):ct[H]=b;var we=(ct,H,b)=>X9(ct,typeof H!="symbol"?H+"":H,b);function _4(n){const i=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(n){for(const r in n)if(r!=="default"){const s=Object.getOwnPropertyDescriptor(n,r);Object.defineProperty(i,r,s.get?s:{enumerable:!0,get:()=>n[r]})}}return i.default=n,Object.freeze(i)}const z=_4(H);function fm(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Rv={exports:{}},ny={};/**
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 BO;function $4(){if(BO)return ny;BO=1;var n=Symbol.for("react.transitional.element"),i=Symbol.for("react.fragment");function r(s,f,p){var y=null;if(p!==void 0&&(y=""+p),f.key!==void 0&&(y=""+f.key),"key"in f){p={};for(var S in f)S!=="key"&&(p[S]=f[S])}else p=f;return f=p.ref,{$$typeof:n,type:s,key:y,ref:f!==void 0?f:null,props:p}}return ny.Fragment=i,ny.jsx=r,ny.jsxs=r,ny}var ly={};/**
10
- * @license React
11
- * react-jsx-runtime.development.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 HO;function B4(){return HO||(HO=1,process.env.NODE_ENV!=="production"&&(function(){function n(ee){if(ee==null)return null;if(typeof ee=="function")return ee.$$typeof===F?null:ee.displayName||ee.name||null;if(typeof ee=="string")return ee;switch(ee){case D:return"Fragment";case U:return"Profiler";case _:return"StrictMode";case Y:return"Suspense";case P:return"SuspenseList";case V:return"Activity"}if(typeof ee=="object")switch(typeof ee.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),ee.$$typeof){case L:return"Portal";case k:return ee.displayName||"Context";case B:return(ee._context.displayName||"Context")+".Consumer";case G:var Se=ee.render;return ee=ee.displayName,ee||(ee=Se.displayName||Se.name||"",ee=ee!==""?"ForwardRef("+ee+")":"ForwardRef"),ee;case Q:return Se=ee.displayName||null,Se!==null?Se:n(ee.type)||"Memo";case ue:Se=ee._payload,ee=ee._init;try{return n(ee(Se))}catch{}}return null}function i(ee){return""+ee}function r(ee){try{i(ee);var Se=!1}catch{Se=!0}if(Se){Se=console;var Ae=Se.error,De=typeof Symbol=="function"&&Symbol.toStringTag&&ee[Symbol.toStringTag]||ee.constructor.name||"Object";return Ae.call(Se,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",De),i(ee)}}function s(ee){if(ee===D)return"<>";if(typeof ee=="object"&&ee!==null&&ee.$$typeof===ue)return"<...>";try{var Se=n(ee);return Se?"<"+Se+">":"<...>"}catch{return"<...>"}}function f(){var ee=te.A;return ee===null?null:ee.getOwner()}function p(){return Error("react-stack-top-frame")}function y(ee){if(ae.call(ee,"key")){var Se=Object.getOwnPropertyDescriptor(ee,"key").get;if(Se&&Se.isReactWarning)return!1}return ee.key!==void 0}function S(ee,Se){function Ae(){X||(X=!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)",Se))}Ae.isReactWarning=!0,Object.defineProperty(ee,"key",{get:Ae,configurable:!0})}function T(){var ee=n(this.type);return ie[ee]||(ie[ee]=!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.")),ee=this.props.ref,ee!==void 0?ee:null}function C(ee,Se,Ae,De,Ue,Ve){var Pe=Ae.ref;return ee={$$typeof:N,type:ee,key:Se,props:Ae,_owner:De},(Pe!==void 0?Pe:null)!==null?Object.defineProperty(ee,"ref",{enumerable:!1,get:T}):Object.defineProperty(ee,"ref",{enumerable:!1,value:null}),ee._store={},Object.defineProperty(ee._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(ee,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(ee,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:Ue}),Object.defineProperty(ee,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:Ve}),Object.freeze&&(Object.freeze(ee.props),Object.freeze(ee)),ee}function j(ee,Se,Ae,De,Ue,Ve){var Pe=Se.children;if(Pe!==void 0)if(De)if(ge(Pe)){for(De=0;De<Pe.length;De++)O(Pe[De]);Object.freeze&&Object.freeze(Pe)}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 O(Pe);if(ae.call(Se,"key")){Pe=n(ee);var Ie=Object.keys(Se).filter(function(ut){return ut!=="key"});De=0<Ie.length?"{key: someKey, "+Ie.join(": ..., ")+": ...}":"{key: someKey}",ne[Pe+De]||(Ie=0<Ie.length?"{"+Ie.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
18
- let props = %s;
19
- <%s {...props} />
20
- React keys must be passed directly to JSX without using spread:
21
- let props = %s;
22
- <%s key={someKey} {...props} />`,De,Pe,Ie,Pe),ne[Pe+De]=!0)}if(Pe=null,Ae!==void 0&&(r(Ae),Pe=""+Ae),y(Se)&&(r(Se.key),Pe=""+Se.key),"key"in Se){Ae={};for(var nt in Se)nt!=="key"&&(Ae[nt]=Se[nt])}else Ae=Se;return Pe&&S(Ae,typeof ee=="function"?ee.displayName||ee.name||"Unknown":ee),C(ee,Pe,Ae,f(),Ue,Ve)}function O(ee){A(ee)?ee._store&&(ee._store.validated=1):typeof ee=="object"&&ee!==null&&ee.$$typeof===ue&&(ee._payload.status==="fulfilled"?A(ee._payload.value)&&ee._payload.value._store&&(ee._payload.value._store.validated=1):ee._store&&(ee._store.validated=1))}function A(ee){return typeof ee=="object"&&ee!==null&&ee.$$typeof===N}var R=H,N=Symbol.for("react.transitional.element"),L=Symbol.for("react.portal"),D=Symbol.for("react.fragment"),_=Symbol.for("react.strict_mode"),U=Symbol.for("react.profiler"),B=Symbol.for("react.consumer"),k=Symbol.for("react.context"),G=Symbol.for("react.forward_ref"),Y=Symbol.for("react.suspense"),P=Symbol.for("react.suspense_list"),Q=Symbol.for("react.memo"),ue=Symbol.for("react.lazy"),V=Symbol.for("react.activity"),F=Symbol.for("react.client.reference"),te=R.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ae=Object.prototype.hasOwnProperty,ge=Array.isArray,He=console.createTask?console.createTask:function(){return null};R={react_stack_bottom_frame:function(ee){return ee()}};var X,ie={},me=R.react_stack_bottom_frame.bind(R,p)(),fe=He(s(p)),ne={};ly.Fragment=D,ly.jsx=function(ee,Se,Ae){var De=1e4>te.recentlyCreatedOwnerStacks++;return j(ee,Se,Ae,!1,De?Error("react-stack-top-frame"):me,De?He(s(ee)):fe)},ly.jsxs=function(ee,Se,Ae){var De=1e4>te.recentlyCreatedOwnerStacks++;return j(ee,Se,Ae,!0,De?Error("react-stack-top-frame"):me,De?He(s(ee)):fe)}})()),ly}var UO;function H4(){return UO||(UO=1,process.env.NODE_ENV==="production"?Rv.exports=$4():Rv.exports=B4()),Rv.exports}var m=H4();const{Header:U4,Sider:L4,Content:q4}=b.Layout;function V4({menuItems:n=[],appTitle:i="One Company",appShort:r="OC",headerExtra:s,loading:f=!1}){const[p,y]=H.useState(!1),S=ro.useNavigate(),T=ro.useLocation(),C=({key:j})=>{S(j)};return m.jsxs(b.Layout,{style:{minHeight:"100vh"},children:[m.jsxs(L4,{trigger:null,collapsible:!0,collapsed:p,children:[m.jsx("div",{style:{height:64,display:"flex",alignItems:"center",justifyContent:"center",color:"white",fontSize:p?14:18,fontWeight:"bold"},children:p?r:i}),f?m.jsx("div",{style:{padding:16,textAlign:"center"},children:m.jsx(b.Spin,{size:"small"})}):m.jsx(b.Menu,{theme:"dark",mode:"inline",selectedKeys:[T.pathname],items:n,onClick:C})]}),m.jsxs(b.Layout,{children:[m.jsxs(U4,{style:{padding:"0 16px",background:"#fff",display:"flex",alignItems:"center",justifyContent:"space-between"},children:[m.jsx("span",{onClick:()=>y(!p),style:{fontSize:18,cursor:"pointer"},children:p?m.jsx(he.MenuUnfoldOutlined,{}):m.jsx(he.MenuFoldOutlined,{})}),s]}),m.jsx(q4,{style:{margin:16,padding:24,background:"#fff",minHeight:280},children:m.jsx(ro.Outlet,{})})]})]})}const LO={1:{color:"green",text:"正常"},0:{color:"red",text:"禁用"},pending:{color:"orange",text:"待处理"},approved:{color:"blue",text:"已通过"},rejected:{color:"red",text:"已拒绝"}};function F4({status:n,map:i}){const r=(i==null?void 0:i[n])||LO[n]||{color:"default",text:String(n)};return m.jsx(b.Tag,{color:r.color,children:r.text})}function qO(n,i){return function(){return n.apply(i,arguments)}}const{toString:k4}=Object.prototype,{getPrototypeOf:dm}=Object,{iterator:ay,toStringTag:VO}=Symbol,Nv=(({hasOwnProperty:n})=>(i,r)=>n.call(i,r))(Object.prototype),oy=(n,i)=>{let r=n;const s=[];for(;r!=null&&r!==Object.prototype;){if(s.indexOf(r)!==-1)return!1;if(s.push(r),Nv(r,i))return!0;r=dm(r)}return!1},I4=(n,i)=>n!=null&&oy(n,i)?n[i]:void 0,wE=(n=>i=>{const r=k4.call(i);return n[r]||(n[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),Br=n=>(n=n.toLowerCase(),i=>wE(i)===n),_v=n=>i=>typeof i===n,{isArray:fd}=Array,hm=_v("undefined");function mm(n){return n!==null&&!hm(n)&&n.constructor!==null&&!hm(n.constructor)&&$o(n.constructor.isBuffer)&&n.constructor.isBuffer(n)}const FO=Br("ArrayBuffer");function G4(n){let i;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?i=ArrayBuffer.isView(n):i=n&&n.buffer&&FO(n.buffer),i}const Y4=_v("string"),$o=_v("function"),kO=_v("number"),pm=n=>n!==null&&typeof n=="object",X4=n=>n===!0||n===!1,$v=n=>{if(!pm(n))return!1;const i=dm(n);return(i===null||i===Object.prototype||dm(i)===null)&&!oy(n,VO)&&!oy(n,ay)},P4=n=>{if(!pm(n)||mm(n))return!1;try{return Object.keys(n).length===0&&Object.getPrototypeOf(n)===Object.prototype}catch{return!1}},Q4=Br("Date"),Z4=Br("File"),J4=n=>!!(n&&typeof n.uri<"u"),K4=n=>n&&typeof n.getParts<"u",W4=Br("Blob"),eN=Br("FileList"),tN=n=>pm(n)&&$o(n.pipe);function nN(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}const IO=nN(),GO=typeof IO.FormData<"u"?IO.FormData:void 0,lN=n=>{if(!n)return!1;if(GO&&n instanceof GO)return!0;const i=dm(n);if(!i||i===Object.prototype||!$o(n.append))return!1;const r=wE(n);return r==="formdata"||r==="object"&&$o(n.toString)&&n.toString()==="[object FormData]"},aN=Br("URLSearchParams"),[oN,iN,rN,sN]=["ReadableStream","Request","Response","Headers"].map(Br),cN=n=>n.trim?n.trim():n.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function iy(n,i,{allOwnKeys:r=!1}={}){if(n===null||typeof n>"u")return;let s,f;if(typeof n!="object"&&(n=[n]),fd(n))for(s=0,f=n.length;s<f;s++)i.call(null,n[s],s,n);else{if(mm(n))return;const p=r?Object.getOwnPropertyNames(n):Object.keys(n),y=p.length;let S;for(s=0;s<y;s++)S=p[s],i.call(null,n[S],S,n)}}function YO(n,i){if(mm(n))return null;i=i.toLowerCase();const r=Object.keys(n);let s=r.length,f;for(;s-- >0;)if(f=r[s],i===f.toLowerCase())return f;return null}const dd=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,XO=n=>!hm(n)&&n!==dd;function jE(...n){const{caseless:i,skipUndefined:r}=XO(this)&&this||{},s={},f=(p,y)=>{if(y==="__proto__"||y==="constructor"||y==="prototype")return;const S=i&&typeof y=="string"&&YO(s,y)||y,T=Nv(s,S)?s[S]:void 0;$v(T)&&$v(p)?s[S]=jE(T,p):$v(p)?s[S]=jE({},p):fd(p)?s[S]=p.slice():(!r||!hm(p))&&(s[S]=p)};for(let p=0,y=n.length;p<y;p++){const S=n[p];if(!S||mm(S)||(iy(S,f),typeof S!="object"||fd(S)))continue;const T=Object.getOwnPropertySymbols(S);for(let C=0;C<T.length;C++){const j=T[C];xN.call(S,j)&&f(S[j],j)}}return s}const uN=(n,i,r,{allOwnKeys:s}={})=>(iy(i,(f,p)=>{r&&$o(f)?Object.defineProperty(n,p,{__proto__:null,value:qO(f,r),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(n,p,{__proto__:null,value:f,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:s}),n),fN=n=>(n.charCodeAt(0)===65279&&(n=n.slice(1)),n),dN=(n,i,r,s)=>{n.prototype=Object.create(i.prototype,s),Object.defineProperty(n.prototype,"constructor",{__proto__:null,value:n,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(n,"super",{__proto__:null,value:i.prototype}),r&&Object.assign(n.prototype,r)},hN=(n,i,r,s)=>{let f,p,y;const S={};if(i=i||{},n==null)return i;do{for(f=Object.getOwnPropertyNames(n),p=f.length;p-- >0;)y=f[p],(!s||s(y,n,i))&&!S[y]&&(i[y]=n[y],S[y]=!0);n=r!==!1&&dm(n)}while(n&&(!r||r(n,i))&&n!==Object.prototype);return i},mN=(n,i,r)=>{n=String(n),(r===void 0||r>n.length)&&(r=n.length),r-=i.length;const s=n.indexOf(i,r);return s!==-1&&s===r},pN=n=>{if(!n)return null;if(fd(n))return n;let i=n.length;if(!kO(i))return null;const r=new Array(i);for(;i-- >0;)r[i]=n[i];return r},gN=(n=>i=>n&&i instanceof n)(typeof Uint8Array<"u"&&dm(Uint8Array)),yN=(n,i)=>{const s=(n&&n[ay]).call(n);let f;for(;(f=s.next())&&!f.done;){const p=f.value;i.call(n,p[0],p[1])}},bN=(n,i)=>{let r;const s=[];for(;(r=n.exec(i))!==null;)s.push(r);return s},vN=Br("HTMLFormElement"),SN=n=>n.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,s,f){return s.toUpperCase()+f}),{propertyIsEnumerable:xN}=Object.prototype,EN=Br("RegExp"),PO=(n,i)=>{const r=Object.getOwnPropertyDescriptors(n),s={};iy(r,(f,p)=>{let y;(y=i(f,p,n))!==!1&&(s[p]=y||f)}),Object.defineProperties(n,s)},CN=n=>{PO(n,(i,r)=>{if($o(n)&&["arguments","caller","callee"].includes(r))return!1;const s=n[r];if($o(s)){if(i.enumerable=!1,"writable"in i){i.writable=!1;return}i.set||(i.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},TN=(n,i)=>{const r={},s=f=>{f.forEach(p=>{r[p]=!0})};return fd(n)?s(n):s(String(n).split(i)),r},ON=()=>{},wN=(n,i)=>n!=null&&Number.isFinite(n=+n)?n:i;function jN(n){return!!(n&&$o(n.append)&&n[VO]==="FormData"&&n[ay])}const AN=n=>{const i=new WeakSet,r=s=>{if(pm(s)){if(i.has(s))return;if(mm(s))return s;if(!("toJSON"in s)){i.add(s);const f=fd(s)?[]:{};return iy(s,(p,y)=>{const S=r(p);!hm(S)&&(f[y]=S)}),i.delete(s),f}}return s};return r(n)},MN=Br("AsyncFunction"),zN=n=>n&&(pm(n)||$o(n))&&$o(n.then)&&$o(n.catch),QO=((n,i)=>n?setImmediate:i?((r,s)=>(dd.addEventListener("message",({source:f,data:p})=>{f===dd&&p===r&&s.length&&s.shift()()},!1),f=>{s.push(f),dd.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",$o(dd.postMessage)),DN=typeof queueMicrotask<"u"?queueMicrotask.bind(dd):typeof process<"u"&&process.nextTick||QO,ZO=n=>n!=null&&$o(n[ay]),ce={isArray:fd,isArrayBuffer:FO,isBuffer:mm,isFormData:lN,isArrayBufferView:G4,isString:Y4,isNumber:kO,isBoolean:X4,isObject:pm,isPlainObject:$v,isEmptyObject:P4,isReadableStream:oN,isRequest:iN,isResponse:rN,isHeaders:sN,isUndefined:hm,isDate:Q4,isFile:Z4,isReactNativeBlob:J4,isReactNative:K4,isBlob:W4,isRegExp:EN,isFunction:$o,isStream:tN,isURLSearchParams:aN,isTypedArray:gN,isFileList:eN,forEach:iy,merge:jE,extend:uN,trim:cN,stripBOM:fN,inherits:dN,toFlatObject:hN,kindOf:wE,kindOfTest:Br,endsWith:mN,toArray:pN,forEachEntry:yN,matchAll:bN,isHTMLForm:vN,hasOwnProperty:Nv,hasOwnProp:Nv,hasOwnInPrototypeChain:oy,getSafeProp:I4,reduceDescriptors:PO,freezeMethods:CN,toObjectSet:TN,toCamelCase:SN,noop:ON,toFiniteNumber:wN,findKey:YO,global:dd,isContextDefined:XO,isSpecCompliantForm:jN,toJSONObject:AN,isAsyncFn:MN,isThenable:zN,setImmediate:QO,asap:DN,isIterable:ZO,isSafeIterable:n=>n!=null&&oy(n,ay)&&ZO(n)},RN=ce.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"]),NN=n=>{const i={};let r,s,f;return n&&n.split(`
23
- `).forEach(function(y){f=y.indexOf(":"),r=y.substring(0,f).trim().toLowerCase(),s=y.substring(f+1).trim(),!(!r||i[r]&&RN[r])&&(r==="set-cookie"?i[r]?i[r].push(s):i[r]=[s]:i[r]=i[r]?i[r]+", "+s:s)}),i};function _N(n){let i=0,r=n.length;for(;i<r;){const s=n.charCodeAt(i);if(s!==9&&s!==32)break;i+=1}for(;r>i;){const s=n.charCodeAt(r-1);if(s!==9&&s!==32)break;r-=1}return i===0&&r===n.length?n:n.slice(i,r)}const $N=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),BN=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function AE(n,i){return ce.isArray(n)?n.map(r=>AE(r,i)):_N(String(n).replace(i,""))}const HN=n=>AE(n,$N),UN=n=>AE(n,BN);function JO(n){const i=Object.create(null);return ce.forEach(n.toJSON(),(r,s)=>{i[s]=UN(r)}),i}const KO=Symbol("internals");function ry(n){return n&&String(n).trim().toLowerCase()}function Bv(n){return n===!1||n==null?n:ce.isArray(n)?n.map(Bv):HN(String(n))}function LN(n){const i=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let s;for(;s=r.exec(n);)i[s[1]]=s[2];return i}const qN=n=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(n.trim());function ME(n,i,r,s,f){if(ce.isFunction(s))return s.call(this,i,r);if(f&&(i=r),!!ce.isString(i)){if(ce.isString(s))return i.indexOf(s)!==-1;if(ce.isRegExp(s))return s.test(i)}}function VN(n){return n.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(i,r,s)=>r.toUpperCase()+s)}function FN(n,i){const r=ce.toCamelCase(" "+i);["get","set","has"].forEach(s=>{Object.defineProperty(n,s+r,{__proto__:null,value:function(f,p,y){return this[s].call(this,i,f,p,y)},configurable:!0})})}let Xa=class{constructor(i){i&&this.set(i)}set(i,r,s){const f=this;function p(S,T,C){const j=ry(T);if(!j)return;const O=ce.findKey(f,j);(!O||f[O]===void 0||C===!0||C===void 0&&f[O]!==!1)&&(f[O||T]=Bv(S))}const y=(S,T)=>ce.forEach(S,(C,j)=>p(C,j,T));if(ce.isPlainObject(i)||i instanceof this.constructor)y(i,r);else if(ce.isString(i)&&(i=i.trim())&&!qN(i))y(NN(i),r);else if(ce.isObject(i)&&ce.isSafeIterable(i)){let S=Object.create(null),T,C;for(const j of i){if(!ce.isArray(j))throw new TypeError("Object iterator must return a key-value pair");C=j[0],ce.hasOwnProp(S,C)?(T=S[C],S[C]=ce.isArray(T)?[...T,j[1]]:[T,j[1]]):S[C]=j[1]}y(S,r)}else i!=null&&p(r,i,s);return this}get(i,r){if(i=ry(i),i){const s=ce.findKey(this,i);if(s){const f=this[s];if(!r)return f;if(r===!0)return LN(f);if(ce.isFunction(r))return r.call(this,f,s);if(ce.isRegExp(r))return r.exec(f);throw new TypeError("parser must be boolean|regexp|function")}}}has(i,r){if(i=ry(i),i){const s=ce.findKey(this,i);return!!(s&&this[s]!==void 0&&(!r||ME(this,this[s],s,r)))}return!1}delete(i,r){const s=this;let f=!1;function p(y){if(y=ry(y),y){const S=ce.findKey(s,y);S&&(!r||ME(s,s[S],S,r))&&(delete s[S],f=!0)}}return ce.isArray(i)?i.forEach(p):p(i),f}clear(i){const r=Object.keys(this);let s=r.length,f=!1;for(;s--;){const p=r[s];(!i||ME(this,this[p],p,i,!0))&&(delete this[p],f=!0)}return f}normalize(i){const r=this,s={};return ce.forEach(this,(f,p)=>{const y=ce.findKey(s,p);if(y){r[y]=Bv(f),delete r[p];return}const S=i?VN(p):String(p).trim();S!==p&&delete r[p],r[S]=Bv(f),s[S]=!0}),this}concat(...i){return this.constructor.concat(this,...i)}toJSON(i){const r=Object.create(null);return ce.forEach(this,(s,f)=>{s!=null&&s!==!1&&(r[f]=i&&ce.isArray(s)?s.join(", "):s)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([i,r])=>i+": "+r).join(`
24
- `)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(i){return i instanceof this?i:new this(i)}static concat(i,...r){const s=new this(i);return r.forEach(f=>s.set(f)),s}static accessor(i){const s=(this[KO]=this[KO]={accessors:{}}).accessors,f=this.prototype;function p(y){const S=ry(y);s[S]||(FN(f,y),s[S]=!0)}return ce.isArray(i)?i.forEach(p):p(i),this}};Xa.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),ce.reduceDescriptors(Xa.prototype,({value:n},i)=>{let r=i[0].toUpperCase()+i.slice(1);return{get:()=>n,set(s){this[r]=s}}}),ce.freezeMethods(Xa);const kN="[REDACTED ****]";function IN(n){if(ce.hasOwnProp(n,"toJSON"))return!0;let i=Object.getPrototypeOf(n);for(;i&&i!==Object.prototype;){if(ce.hasOwnProp(i,"toJSON"))return!0;i=Object.getPrototypeOf(i)}return!1}function GN(n,i){const r=new Set(i.map(p=>String(p).toLowerCase())),s=[],f=p=>{if(p===null||typeof p!="object"||ce.isBuffer(p))return p;if(s.indexOf(p)!==-1)return;p instanceof Xa&&(p=p.toJSON()),s.push(p);let y;if(ce.isArray(p))y=[],p.forEach((S,T)=>{const C=f(S);ce.isUndefined(C)||(y[T]=C)});else{if(!ce.isPlainObject(p)&&IN(p))return s.pop(),p;y=Object.create(null);for(const[S,T]of Object.entries(p)){const C=r.has(S.toLowerCase())?kN:f(T);ce.isUndefined(C)||(y[S]=C)}}return s.pop(),y};return f(n)}let Je=class R4 extends Error{static from(i,r,s,f,p,y){const S=new R4(i.message,r||i.code,s,f,p);return S.cause=i,S.name=i.name,i.status!=null&&S.status==null&&(S.status=i.status),y&&Object.assign(S,y),S}constructor(i,r,s,f,p){super(i),Object.defineProperty(this,"message",{__proto__:null,value:i,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,r&&(this.code=r),s&&(this.config=s),f&&(this.request=f),p&&(this.response=p,this.status=p.status)}toJSON(){const i=this.config,r=i&&ce.hasOwnProp(i,"redact")?i.redact:void 0,s=ce.isArray(r)&&r.length>0?GN(i,r):ce.toJSONObject(i);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:s,code:this.code,status:this.status}}};Je.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",Je.ERR_BAD_OPTION="ERR_BAD_OPTION",Je.ECONNABORTED="ECONNABORTED",Je.ETIMEDOUT="ETIMEDOUT",Je.ECONNREFUSED="ECONNREFUSED",Je.ERR_NETWORK="ERR_NETWORK",Je.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",Je.ERR_DEPRECATED="ERR_DEPRECATED",Je.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",Je.ERR_BAD_REQUEST="ERR_BAD_REQUEST",Je.ERR_CANCELED="ERR_CANCELED",Je.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",Je.ERR_INVALID_URL="ERR_INVALID_URL",Je.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";const YN=null,WO=100;function zE(n){return ce.isPlainObject(n)||ce.isArray(n)}function ew(n){return ce.endsWith(n,"[]")?n.slice(0,-2):n}function DE(n,i,r){return n?n.concat(i).map(function(f,p){return f=ew(f),!r&&p?"["+f+"]":f}).join(r?".":""):i}function XN(n){return ce.isArray(n)&&!n.some(zE)}const PN=ce.toFlatObject(ce,{},null,function(i){return/^is[A-Z]/.test(i)});function Hv(n,i,r){if(!ce.isObject(n))throw new TypeError("target must be an object");i=i||new FormData,r=ce.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(U,B){return!ce.isUndefined(B[U])});const s=r.metaTokens,f=r.visitor||N,p=r.dots,y=r.indexes,S=r.Blob||typeof Blob<"u"&&Blob,T=r.maxDepth===void 0?WO:r.maxDepth,C=S&&ce.isSpecCompliantForm(i),j=[];if(!ce.isFunction(f))throw new TypeError("visitor must be a function");function O(_){if(_===null)return"";if(ce.isDate(_))return _.toISOString();if(ce.isBoolean(_))return _.toString();if(!C&&ce.isBlob(_))throw new Je("Blob is not supported. Use a Buffer instead.");return ce.isArrayBuffer(_)||ce.isTypedArray(_)?C&&typeof Blob=="function"?new Blob([_]):Buffer.from(_):_}function A(_){if(_>T)throw new Je("Object is too deeply nested ("+_+" levels). Max depth: "+T,Je.ERR_FORM_DATA_DEPTH_EXCEEDED)}function R(_,U){if(T===1/0)return JSON.stringify(_);const B=[];return JSON.stringify(_,function(G,Y){if(!ce.isObject(Y))return Y;for(;B.length&&B[B.length-1]!==this;)B.pop();return B.push(Y),A(U+B.length-1),Y})}function N(_,U,B){let k=_;if(ce.isReactNative(i)&&ce.isReactNativeBlob(_))return i.append(DE(B,U,p),O(_)),!1;if(_&&!B&&typeof _=="object"){if(ce.endsWith(U,"{}"))U=s?U:U.slice(0,-2),_=R(_,1);else if(ce.isArray(_)&&XN(_)||(ce.isFileList(_)||ce.endsWith(U,"[]"))&&(k=ce.toArray(_)))return U=ew(U),k.forEach(function(Y,P){!(ce.isUndefined(Y)||Y===null)&&i.append(y===!0?DE([U],P,p):y===null?U:U+"[]",O(Y))}),!1}return zE(_)?!0:(i.append(DE(B,U,p),O(_)),!1)}const L=Object.assign(PN,{defaultVisitor:N,convertValue:O,isVisitable:zE});function D(_,U,B=0){if(!ce.isUndefined(_)){if(A(B),j.indexOf(_)!==-1)throw new Error("Circular reference detected in "+U.join("."));j.push(_),ce.forEach(_,function(G,Y){(!(ce.isUndefined(G)||G===null)&&f.call(i,G,ce.isString(Y)?Y.trim():Y,U,L))===!0&&D(G,U?U.concat(Y):[Y],B+1)}),j.pop()}}if(!ce.isObject(n))throw new TypeError("data must be an object");return D(n),i}function tw(n){const i={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(n).replace(/[!'()~]|%20/g,function(s){return i[s]})}function RE(n,i){this._pairs=[],n&&Hv(n,this,i)}const nw=RE.prototype;nw.append=function(i,r){this._pairs.push([i,r])},nw.toString=function(i){const r=i?function(s){return i.call(this,s,tw)}:tw;return this._pairs.map(function(f){return r(f[0])+"="+r(f[1])},"").join("&")};function QN(n){return encodeURIComponent(n).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function lw(n,i,r){if(!i)return n;const s=ce.isFunction(r)?{serialize:r}:r,f=ce.getSafeProp(s,"encode")||QN,p=ce.getSafeProp(s,"serialize");let y;if(p?y=p(i,s):y=ce.isURLSearchParams(i)?i.toString():new RE(i,s).toString(f),y){const S=n.indexOf("#");S!==-1&&(n=n.slice(0,S)),n+=(n.indexOf("?")===-1?"?":"&")+y}return n}class aw{constructor(){this.handlers=[]}use(i,r,s){return this.handlers.push({fulfilled:i,rejected:r,synchronous:s?s.synchronous:!1,runWhen:s?s.runWhen:null}),this.handlers.length-1}eject(i){this.handlers[i]&&(this.handlers[i]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(i){ce.forEach(this.handlers,function(s){s!==null&&i(s)})}}const NE={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0},ZN={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:RE,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},_E=typeof window<"u"&&typeof document<"u",$E=typeof navigator=="object"&&navigator||void 0,JN=_E&&(!$E||["ReactNative","NativeScript","NS"].indexOf($E.product)<0),KN=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",WN=_E&&window.location.href||"http://localhost",Aa={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:_E,hasStandardBrowserEnv:JN,hasStandardBrowserWebWorkerEnv:KN,navigator:$E,origin:WN},Symbol.toStringTag,{value:"Module"})),...ZN};function e6(n,i){return Hv(n,new Aa.classes.URLSearchParams,{visitor:function(r,s,f,p){return Aa.isNode&&ce.isBuffer(r)?(this.append(s,r.toString("base64")),!1):p.defaultVisitor.apply(this,arguments)},...i})}const ow=WO;function iw(n){if(n>ow)throw new Je("FormData field is too deeply nested ("+n+" levels). Max depth: "+ow,Je.ERR_FORM_DATA_DEPTH_EXCEEDED)}function t6(n){const i=[],r=/\w+|\[(\w*)]/g;let s;for(;(s=r.exec(n))!==null;)iw(i.length),i.push(s[0]==="[]"?"":s[1]||s[0]);return i}function n6(n){const i={},r=Object.keys(n);let s;const f=r.length;let p;for(s=0;s<f;s++)p=r[s],i[p]=n[p];return i}function rw(n){function i(r,s,f,p){iw(p);let y=r[p++];if(y==="__proto__")return!0;const S=Number.isFinite(+y),T=p>=r.length;return y=!y&&ce.isArray(f)?f.length:y,T?(ce.hasOwnProp(f,y)?f[y]=ce.isArray(f[y])?f[y].concat(s):[f[y],s]:f[y]=s,!S):((!ce.hasOwnProp(f,y)||!ce.isObject(f[y]))&&(f[y]=[]),i(r,s,f[y],p)&&ce.isArray(f[y])&&(f[y]=n6(f[y])),!S)}if(ce.isFormData(n)&&ce.isFunction(n.entries)){const r={};return ce.forEachEntry(n,(s,f)=>{i(t6(s),f,r,0)}),r}return null}const gm=(n,i)=>n!=null&&ce.hasOwnProp(n,i)?n[i]:void 0;function l6(n,i,r){if(ce.isString(n))try{return(i||JSON.parse)(n),ce.trim(n)}catch(s){if(s.name!=="SyntaxError")throw s}return(r||JSON.stringify)(n)}const sy={transitional:NE,adapter:["xhr","http","fetch"],transformRequest:[function(i,r){const s=r.getContentType()||"",f=s.indexOf("application/json")>-1,p=ce.isObject(i);if(p&&ce.isHTMLForm(i)&&(i=new FormData(i)),ce.isFormData(i))return f?JSON.stringify(rw(i)):i;if(ce.isArrayBuffer(i)||ce.isBuffer(i)||ce.isStream(i)||ce.isFile(i)||ce.isBlob(i)||ce.isReadableStream(i))return i;if(ce.isArrayBufferView(i))return i.buffer;if(ce.isURLSearchParams(i))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),i.toString();let S;if(p){const T=gm(this,"formSerializer");if(s.indexOf("application/x-www-form-urlencoded")>-1)return e6(i,T).toString();if((S=ce.isFileList(i))||s.indexOf("multipart/form-data")>-1){const C=gm(this,"env"),j=C&&C.FormData;return Hv(S?{"files[]":i}:i,j&&new j,T)}}return p||f?(r.setContentType("application/json",!1),l6(i)):i}],transformResponse:[function(i){const r=gm(this,"transitional")||sy.transitional,s=r&&r.forcedJSONParsing,f=gm(this,"responseType"),p=f==="json";if(ce.isResponse(i)||ce.isReadableStream(i))return i;if(i&&ce.isString(i)&&(s&&!f||p)){const S=!(r&&r.silentJSONParsing)&&p;try{return JSON.parse(i,gm(this,"parseReviver"))}catch(T){if(S)throw T.name==="SyntaxError"?Je.from(T,Je.ERR_BAD_RESPONSE,this,null,gm(this,"response")):T}}return i}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Aa.classes.FormData,Blob:Aa.classes.Blob},validateStatus:function(i){return i>=200&&i<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};ce.forEach(["delete","get","head","post","put","patch","query"],n=>{sy.headers[n]={}});function BE(n,i){const r=this||sy,s=i||r,f=Xa.from(s.headers);let p=s.data;return ce.forEach(n,function(S){p=S.call(r,p,f.normalize(),i?i.status:void 0)}),f.normalize(),p}function sw(n){return!!(n&&n.__CANCEL__)}let cy=class extends Je{constructor(i,r,s){super(i??"canceled",Je.ERR_CANCELED,r,s),this.name="CanceledError",this.__CANCEL__=!0}};function cw(n,i,r){const s=r.config.validateStatus;!r.status||!s||s(r.status)?n(r):i(new Je("Request failed with status code "+r.status,r.status>=400&&r.status<500?Je.ERR_BAD_REQUEST:Je.ERR_BAD_RESPONSE,r.config,r.request,r))}function a6(n){const i=/^([-+\w]{1,25}):(?:\/\/)?/.exec(n);return i&&i[1]||""}function o6(n,i){n=n||10;const r=new Array(n),s=new Array(n);let f=0,p=0,y;return i=i!==void 0?i:1e3,function(T){const C=Date.now(),j=s[p];y||(y=C),r[f]=T,s[f]=C;let O=p,A=0;for(;O!==f;)A+=r[O++],O=O%n;if(f=(f+1)%n,f===p&&(p=(p+1)%n),C-y<i)return;const R=j&&C-j;return R?Math.round(A*1e3/R):void 0}}function i6(n,i){let r=0,s=1e3/i,f,p;const y=(C,j=Date.now())=>{r=j,f=null,p&&(clearTimeout(p),p=null),n(...C)};return[(...C)=>{const j=Date.now(),O=j-r;O>=s?y(C,j):(f=C,p||(p=setTimeout(()=>{p=null,y(f)},s-O)))},()=>f&&y(f)]}const Uv=(n,i,r=3)=>{let s=0;const f=o6(50,250);return i6(p=>{if(!p||typeof p.loaded!="number")return;const y=p.loaded,S=p.lengthComputable?p.total:void 0,T=S!=null?Math.min(y,S):y,C=Math.max(0,T-s),j=f(C);s=Math.max(s,T);const O={loaded:T,total:S,progress:S?T/S:void 0,bytes:C,rate:j||void 0,estimated:j&&S?(S-T)/j:void 0,event:p,lengthComputable:S!=null,[i?"download":"upload"]:!0};n(O)},r)},uw=(n,i)=>{const r=n!=null;return[s=>i[0]({lengthComputable:r,total:n,loaded:s}),i[1]]},fw=n=>(...i)=>ce.asap(()=>n(...i)),r6=Aa.hasStandardBrowserEnv?((n,i)=>r=>(r=new URL(r,Aa.origin),n.protocol===r.protocol&&n.host===r.host&&(i||n.port===r.port)))(new URL(Aa.origin),Aa.navigator&&/(msie|trident)/i.test(Aa.navigator.userAgent)):()=>!0,s6=Aa.hasStandardBrowserEnv?{write(n,i,r,s,f,p,y){if(typeof document>"u")return;const S=[`${n}=${encodeURIComponent(i)}`];ce.isNumber(r)&&S.push(`expires=${new Date(r).toUTCString()}`),ce.isString(s)&&S.push(`path=${s}`),ce.isString(f)&&S.push(`domain=${f}`),p===!0&&S.push("secure"),ce.isString(y)&&S.push(`SameSite=${y}`),document.cookie=S.join("; ")},read(n){if(typeof document>"u")return null;const i=document.cookie.split(";");for(let r=0;r<i.length;r++){const s=i[r].replace(/^\s+/,""),f=s.indexOf("=");if(f!==-1&&s.slice(0,f)===n)return decodeURIComponent(s.slice(f+1))}return null},remove(n){this.write(n,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function c6(n){return typeof n!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(n)}function u6(n,i){return i?n.replace(/\/?\/$/,"")+"/"+i.replace(/^\/+/,""):n}const f6=/^https?:(?!\/\/)/i,d6=/[\t\n\r]/g;function h6(n){let i=0;for(;i<n.length&&n.charCodeAt(i)<=32;)i++;return n.slice(i)}function m6(n){return h6(n).replace(d6,"")}function dw(n,i){if(typeof n=="string"&&f6.test(m6(n)))throw new Je('Invalid URL: missing "//" after protocol',Je.ERR_INVALID_URL,i)}function hw(n,i,r,s){dw(i,s);let f=!c6(i);return n&&(f||r===!1)?(dw(n,s),u6(n,i)):i}const mw=n=>n instanceof Xa?{...n}:n;function hd(n,i){i=i||{};const r=Object.create(null);Object.defineProperty(r,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});function s(j,O,A,R){return ce.isPlainObject(j)&&ce.isPlainObject(O)?ce.merge.call({caseless:R},j,O):ce.isPlainObject(O)?ce.merge({},O):ce.isArray(O)?O.slice():O}function f(j,O,A,R){if(ce.isUndefined(O)){if(!ce.isUndefined(j))return s(void 0,j,A,R)}else return s(j,O,A,R)}function p(j,O){if(!ce.isUndefined(O))return s(void 0,O)}function y(j,O){if(ce.isUndefined(O)){if(!ce.isUndefined(j))return s(void 0,j)}else return s(void 0,O)}function S(j){const O=ce.hasOwnProp(i,"transitional")?i.transitional:void 0;if(!ce.isUndefined(O))if(ce.isPlainObject(O)){if(ce.hasOwnProp(O,j))return O[j]}else return;const A=ce.hasOwnProp(n,"transitional")?n.transitional:void 0;if(ce.isPlainObject(A)&&ce.hasOwnProp(A,j))return A[j]}function T(j,O,A){if(ce.hasOwnProp(i,A))return s(j,O);if(ce.hasOwnProp(n,A))return s(void 0,j)}const C={url:p,method:p,data:p,baseURL:y,transformRequest:y,transformResponse:y,paramsSerializer:y,timeout:y,timeoutMessage:y,withCredentials:y,withXSRFToken:y,adapter:y,responseType:y,xsrfCookieName:y,xsrfHeaderName:y,onUploadProgress:y,onDownloadProgress:y,decompress:y,maxContentLength:y,maxBodyLength:y,beforeRedirect:y,transport:y,httpAgent:y,httpsAgent:y,cancelToken:y,socketPath:y,allowedSocketPaths:y,responseEncoding:y,validateStatus:T,headers:(j,O,A)=>f(mw(j),mw(O),A,!0)};return ce.forEach(Object.keys({...n,...i}),function(O){if(O==="__proto__"||O==="constructor"||O==="prototype")return;const A=ce.hasOwnProp(C,O)?C[O]:f,R=ce.hasOwnProp(n,O)?n[O]:void 0,N=ce.hasOwnProp(i,O)?i[O]:void 0,L=A(R,N,O);ce.isUndefined(L)&&A!==T||(r[O]=L)}),ce.hasOwnProp(i,"validateStatus")&&ce.isUndefined(i.validateStatus)&&S("validateStatusUndefinedResolves")===!1&&(ce.hasOwnProp(n,"validateStatus")?r.validateStatus=s(void 0,n.validateStatus):delete r.validateStatus),r}const p6=["content-type","content-length"];function g6(n,i,r){if(r!=="content-only"){n.set(i);return}Object.entries(i).forEach(([s,f])=>{p6.includes(s.toLowerCase())&&n.set(s,f)})}const y6=n=>encodeURIComponent(n).replace(/%([0-9A-F]{2})/gi,(i,r)=>String.fromCharCode(parseInt(r,16)));function pw(n){const i=hd({},n),r=A=>ce.hasOwnProp(i,A)?i[A]:void 0,s=r("data");let f=r("withXSRFToken");const p=r("xsrfHeaderName"),y=r("xsrfCookieName");let S=r("headers");const T=r("auth"),C=r("baseURL"),j=r("allowAbsoluteUrls"),O=r("url");if(i.headers=S=Xa.from(S),i.url=lw(hw(C,O,j,i),r("params"),r("paramsSerializer")),T){const A=ce.getSafeProp(T,"username")||"",R=ce.getSafeProp(T,"password")||"";S.set("Authorization","Basic "+btoa(A+":"+(R?y6(R):"")))}if(ce.isFormData(s)&&(Aa.hasStandardBrowserEnv||Aa.hasStandardBrowserWebWorkerEnv||ce.isReactNative(s)?S.setContentType(void 0):ce.isFunction(s.getHeaders)&&g6(S,s.getHeaders(),r("formDataHeaderPolicy"))),Aa.hasStandardBrowserEnv&&(ce.isFunction(f)&&(f=f(i)),f===!0||f==null&&r6(i.url))){const R=p&&y&&s6.read(y);R&&S.set(p,R)}return i}const b6=typeof XMLHttpRequest<"u"&&function(n){return new Promise(function(r,s){const f=pw(n);let p=f.data;const y=Xa.from(f.headers).normalize();let{responseType:S,onUploadProgress:T,onDownloadProgress:C}=f,j,O,A,R,N;function L(){R&&R(),N&&N(),f.cancelToken&&f.cancelToken.unsubscribe(j),f.signal&&f.signal.removeEventListener("abort",j)}let D=new XMLHttpRequest;D.open(f.method.toUpperCase(),f.url,!0),D.timeout=f.timeout;function _(){if(!D)return;const B=Xa.from("getAllResponseHeaders"in D&&D.getAllResponseHeaders()),G={data:!S||S==="text"||S==="json"?D.responseText:D.response,status:D.status,statusText:D.statusText,headers:B,config:n,request:D};cw(function(P){r(P),L()},function(P){s(P),L()},G),D=null}"onloadend"in D?D.onloadend=_:D.onreadystatechange=function(){!D||D.readyState!==4||D.status===0&&!(D.responseURL&&D.responseURL.startsWith("file:"))||setTimeout(_)},D.onabort=function(){D&&(s(new Je("Request aborted",Je.ECONNABORTED,n,D)),L(),D=null)},D.onerror=function(k){const G=k&&k.message?k.message:"Network Error",Y=new Je(G,Je.ERR_NETWORK,n,D);Y.event=k||null,s(Y),L(),D=null},D.ontimeout=function(){let k=f.timeout?"timeout of "+f.timeout+"ms exceeded":"timeout exceeded";const G=f.transitional||NE;f.timeoutErrorMessage&&(k=f.timeoutErrorMessage),s(new Je(k,G.clarifyTimeoutError?Je.ETIMEDOUT:Je.ECONNABORTED,n,D)),L(),D=null},p===void 0&&y.setContentType(null),"setRequestHeader"in D&&ce.forEach(JO(y),function(k,G){D.setRequestHeader(G,k)}),ce.isUndefined(f.withCredentials)||(D.withCredentials=!!f.withCredentials),S&&S!=="json"&&(D.responseType=f.responseType),C&&([A,N]=Uv(C,!0),D.addEventListener("progress",A)),T&&D.upload&&([O,R]=Uv(T),D.upload.addEventListener("progress",O),D.upload.addEventListener("loadend",R)),(f.cancelToken||f.signal)&&(j=B=>{D&&(s(!B||B.type?new cy(null,n,D):B),D.abort(),L(),D=null)},f.cancelToken&&f.cancelToken.subscribe(j),f.signal&&(f.signal.aborted?j():f.signal.addEventListener("abort",j)));const U=a6(f.url);if(U&&!Aa.protocols.includes(U)){s(new Je("Unsupported protocol "+U+":",Je.ERR_BAD_REQUEST,n));return}D.send(p||null)})},v6=(n,i)=>{if(n=n?n.filter(Boolean):[],!i&&!n.length)return;const r=new AbortController;let s=!1;const f=function(T){if(!s){s=!0,y();const C=T instanceof Error?T:this.reason;r.abort(C instanceof Je?C:new cy(C instanceof Error?C.message:C))}};let p=i&&setTimeout(()=>{p=null,f(new Je(`timeout of ${i}ms exceeded`,Je.ETIMEDOUT))},i);const y=()=>{n&&(p&&clearTimeout(p),p=null,n.forEach(T=>{T.unsubscribe?T.unsubscribe(f):T.removeEventListener("abort",f)}),n=null)};n.forEach(T=>T.addEventListener("abort",f));const{signal:S}=r;return S.unsubscribe=()=>ce.asap(y),S},S6=function*(n,i){let r=n.byteLength;if(r<i){yield n;return}let s=0,f;for(;s<r;)f=s+i,yield n.slice(s,f),s=f},x6=async function*(n,i){for await(const r of E6(n))yield*S6(r,i)},E6=async function*(n){if(n[Symbol.asyncIterator]){yield*n;return}const i=n.getReader();try{for(;;){const{done:r,value:s}=await i.read();if(r)break;yield s}}finally{await i.cancel()}},gw=(n,i,r,s)=>{const f=x6(n,i);let p=0,y,S=T=>{y||(y=!0,s&&s(T))};return new ReadableStream({async pull(T){try{const{done:C,value:j}=await f.next();if(C){S(),T.close();return}let O=j.byteLength;if(r){let A=p+=O;r(A)}T.enqueue(new Uint8Array(j))}catch(C){throw S(C),C}},cancel(T){return S(T),f.return()}},{highWaterMark:2})},Lv=n=>n>=48&&n<=57||n>=65&&n<=70||n>=97&&n<=102,C6=(n,i,r)=>i+2<r&&Lv(n.charCodeAt(i+1))&&Lv(n.charCodeAt(i+2));function T6(n){if(!n||typeof n!="string"||!n.startsWith("data:"))return 0;const i=n.indexOf(",");if(i<0)return 0;const r=n.slice(5,i),s=n.slice(i+1);if(/;base64/i.test(r)){let y=s.length;const S=s.length;for(let R=0;R<S;R++)if(s.charCodeAt(R)===37&&R+2<S){const N=s.charCodeAt(R+1),L=s.charCodeAt(R+2);Lv(N)&&Lv(L)&&(y-=2,R+=2)}let T=0,C=S-1;const j=R=>R>=2&&s.charCodeAt(R-2)===37&&s.charCodeAt(R-1)===51&&(s.charCodeAt(R)===68||s.charCodeAt(R)===100);C>=0&&(s.charCodeAt(C)===61?(T++,C--):j(C)&&(T++,C-=3)),T===1&&C>=0&&(s.charCodeAt(C)===61||j(C))&&T++;const A=Math.floor(y/4)*3-(T||0);return A>0?A:0}let p=0;for(let y=0,S=s.length;y<S;y++){const T=s.charCodeAt(y);if(T===37&&C6(s,y,S))p+=1,y+=2;else if(T<128)p+=1;else if(T<2048)p+=2;else if(T>=55296&&T<=56319&&y+1<S){const C=s.charCodeAt(y+1);C>=56320&&C<=57343?(p+=4,y++):p+=3}else p+=3}return p}const HE="1.18.0",yw=64*1024,{isFunction:qv}=ce,O6=n=>encodeURIComponent(n).replace(/%([0-9A-F]{2})/gi,(i,r)=>String.fromCharCode(parseInt(r,16))),bw=n=>{if(!ce.isString(n))return n;try{return decodeURIComponent(n)}catch{return n}},vw=(n,...i)=>{try{return!!n(...i)}catch{return!1}},w6=n=>{const i=n.indexOf("://");let r=n;return i!==-1&&(r=r.slice(i+3)),r.includes("@")||r.includes(":")},j6=n=>{const i=ce.global!==void 0&&ce.global!==null?ce.global:globalThis,{ReadableStream:r,TextEncoder:s}=i;n=ce.merge.call({skipUndefined:!0},{Request:i.Request,Response:i.Response},n);const{fetch:f,Request:p,Response:y}=n,S=f?qv(f):typeof fetch=="function",T=qv(p),C=qv(y);if(!S)return!1;const j=S&&qv(r),O=S&&(typeof s=="function"?(_=>U=>_.encode(U))(new s):async _=>new Uint8Array(await new p(_).arrayBuffer())),A=T&&j&&vw(()=>{let _=!1;const U=new p(Aa.origin,{body:new r,method:"POST",get duplex(){return _=!0,"half"}}),B=U.headers.has("Content-Type");return U.body!=null&&U.body.cancel(),_&&!B}),R=C&&j&&vw(()=>ce.isReadableStream(new y("").body)),N={stream:R&&(_=>_.body)};S&&["text","arrayBuffer","blob","formData","stream"].forEach(_=>{!N[_]&&(N[_]=(U,B)=>{let k=U&&U[_];if(k)return k.call(U);throw new Je(`Response type '${_}' is not supported`,Je.ERR_NOT_SUPPORT,B)})});const L=async _=>{if(_==null)return 0;if(ce.isBlob(_))return _.size;if(ce.isSpecCompliantForm(_))return(await new p(Aa.origin,{method:"POST",body:_}).arrayBuffer()).byteLength;if(ce.isArrayBufferView(_)||ce.isArrayBuffer(_))return _.byteLength;if(ce.isURLSearchParams(_)&&(_=_+""),ce.isString(_))return(await O(_)).byteLength},D=async(_,U)=>{const B=ce.toFiniteNumber(_.getContentLength());return B??L(U)};return async _=>{let{url:U,method:B,data:k,signal:G,cancelToken:Y,timeout:P,onDownloadProgress:Q,onUploadProgress:ue,responseType:V,headers:F,withCredentials:te="same-origin",fetchOptions:ae,maxContentLength:ge,maxBodyLength:He}=pw(_);const X=ce.isNumber(ge)&&ge>-1,ie=ce.isNumber(He)&&He>-1,me=Ve=>ce.hasOwnProp(_,Ve)?_[Ve]:void 0;let fe=f||fetch;V=V?(V+"").toLowerCase():"text";let ne=v6([G,Y&&Y.toAbortSignal()],P),ee=null;const Se=ne&&ne.unsubscribe&&(()=>{ne.unsubscribe()});let Ae,De=null;const Ue=()=>new Je("Request body larger than maxBodyLength limit",Je.ERR_BAD_REQUEST,_,ee);try{let Ve;const Pe=me("auth");if(Pe){const $e=ce.getSafeProp(Pe,"username")||"",Xe=ce.getSafeProp(Pe,"password")||"";Ve={username:$e,password:Xe}}if(w6(U)){const $e=new URL(U,Aa.origin);if(!Ve&&($e.username||$e.password)){const Xe=bw($e.username),dt=bw($e.password);Ve={username:Xe,password:dt}}($e.username||$e.password)&&($e.username="",$e.password="",U=$e.href)}if(Ve&&(F.delete("authorization"),F.set("Authorization","Basic "+btoa(O6((Ve.username||"")+":"+(Ve.password||""))))),X&&typeof U=="string"&&U.startsWith("data:")&&T6(U)>ge)throw new Je("maxContentLength size of "+ge+" exceeded",Je.ERR_BAD_RESPONSE,_,ee);if(ie&&B!=="get"&&B!=="head"){const $e=await L(k);if(typeof $e=="number"&&isFinite($e)&&(Ae=$e,$e>He))throw Ue()}const Ie=ie&&(ce.isReadableStream(k)||ce.isStream(k)),nt=($e,Xe,dt)=>gw($e,yw,Ct=>{if(ie&&Ct>He)throw De=Ue();Xe&&Xe(Ct)},dt);if(A&&B!=="get"&&B!=="head"&&(ue||Ie)){if(Ae=Ae??await D(F,k),Ae!==0||Ie){let $e=new p(U,{method:"POST",body:k,duplex:"half"}),Xe;if(ce.isFormData(k)&&(Xe=$e.headers.get("content-type"))&&F.setContentType(Xe),$e.body){const[dt,Ct]=ue&&uw(Ae,Uv(fw(ue)))||[];k=nt($e.body,dt,Ct)}}}else if(Ie&&!T&&j&&B!=="get"&&B!=="head")k=nt(k);else if(Ie&&T&&!A&&B!=="get"&&B!=="head")throw new Je("Stream request bodies are not supported by the current fetch implementation",Je.ERR_NOT_SUPPORT,_,ee);ce.isString(te)||(te=te?"include":"omit");const ut=T&&"credentials"in p.prototype;if(ce.isFormData(k)){const $e=F.getContentType();$e&&/^multipart\/form-data/i.test($e)&&!/boundary=/i.test($e)&&F.delete("content-type")}F.set("User-Agent","axios/"+HE,!1);const ze={...ae,signal:ne,method:B.toUpperCase(),headers:JO(F.normalize()),body:k,duplex:"half",credentials:ut?te:void 0};ee=T&&new p(U,ze);let Ye=await(T?fe(ee,ae):fe(U,ze));const Rt=Xa.from(Ye.headers);if(X){const $e=ce.toFiniteNumber(Rt.getContentLength());if($e!=null&&$e>ge)throw new Je("maxContentLength size of "+ge+" exceeded",Je.ERR_BAD_RESPONSE,_,ee)}const Le=R&&(V==="stream"||V==="response");if(R&&Ye.body&&(Q||X||Le&&Se)){const $e={};["status","statusText","headers"].forEach(Ke=>{$e[Ke]=Ye[Ke]});const Xe=ce.toFiniteNumber(Rt.getContentLength()),[dt,Ct]=Q&&uw(Xe,Uv(fw(Q),!0))||[];let pe=0;const Be=Ke=>{if(X&&(pe=Ke,pe>ge))throw new Je("maxContentLength size of "+ge+" exceeded",Je.ERR_BAD_RESPONSE,_,ee);dt&&dt(Ke)};Ye=new y(gw(Ye.body,yw,Be,()=>{Ct&&Ct(),Se&&Se()}),$e)}V=V||"text";let ft=await N[ce.findKey(N,V)||"text"](Ye,_);if(X&&!R&&!Le){let $e;if(ft!=null&&(typeof ft.byteLength=="number"?$e=ft.byteLength:typeof ft.size=="number"?$e=ft.size:typeof ft=="string"&&($e=typeof s=="function"?new s().encode(ft).byteLength:ft.length)),typeof $e=="number"&&$e>ge)throw new Je("maxContentLength size of "+ge+" exceeded",Je.ERR_BAD_RESPONSE,_,ee)}return!Le&&Se&&Se(),await new Promise(($e,Xe)=>{cw($e,Xe,{data:ft,headers:Xa.from(Ye.headers),status:Ye.status,statusText:Ye.statusText,config:_,request:ee})})}catch(Ve){if(Se&&Se(),ne&&ne.aborted&&ne.reason instanceof Je){const Pe=ne.reason;throw Pe.config=_,ee&&(Pe.request=ee),Ve!==Pe&&(Pe.cause=Ve),Pe}throw De?(ee&&!De.request&&(De.request=ee),De):Ve instanceof Je?(ee&&!Ve.request&&(Ve.request=ee),Ve):Ve&&Ve.name==="TypeError"&&/Load failed|fetch/i.test(Ve.message)?Object.assign(new Je("Network Error",Je.ERR_NETWORK,_,ee,Ve&&Ve.response),{cause:Ve.cause||Ve}):Je.from(Ve,Ve&&Ve.code,_,ee,Ve&&Ve.response)}}},A6=new Map,Sw=n=>{let i=n&&n.env||{};const{fetch:r,Request:s,Response:f}=i,p=[s,f,r];let y=p.length,S=y,T,C,j=A6;for(;S--;)T=p[S],C=j.get(T),C===void 0&&j.set(T,C=S?new Map:j6(i)),j=C;return C};Sw();const UE={http:YN,xhr:b6,fetch:{get:Sw}};ce.forEach(UE,(n,i)=>{if(n){try{Object.defineProperty(n,"name",{__proto__:null,value:i})}catch{}Object.defineProperty(n,"adapterName",{__proto__:null,value:i})}});const xw=n=>`- ${n}`,M6=n=>ce.isFunction(n)||n===null||n===!1;function z6(n,i){n=ce.isArray(n)?n:[n];const{length:r}=n;let s,f;const p={};for(let y=0;y<r;y++){s=n[y];let S;if(f=s,!M6(s)&&(f=UE[(S=String(s)).toLowerCase()],f===void 0))throw new Je(`Unknown adapter '${S}'`);if(f&&(ce.isFunction(f)||(f=f.get(i))))break;p[S||"#"+y]=f}if(!f){const y=Object.entries(p).map(([T,C])=>`adapter ${T} `+(C===!1?"is not supported by the environment":"is not available in the build"));let S=r?y.length>1?`since :
25
- `+y.map(xw).join(`
26
- `):" "+xw(y[0]):"as no adapter specified";throw new Je("There is no suitable adapter to dispatch the request "+S,"ERR_NOT_SUPPORT")}return f}const Ew={getAdapter:z6,adapters:UE};function LE(n){if(n.cancelToken&&n.cancelToken.throwIfRequested(),n.signal&&n.signal.aborted)throw new cy(null,n)}function Cw(n){return LE(n),n.headers=Xa.from(n.headers),n.data=BE.call(n,n.transformRequest),["post","put","patch"].indexOf(n.method)!==-1&&n.headers.setContentType("application/x-www-form-urlencoded",!1),Ew.getAdapter(n.adapter||sy.adapter,n)(n).then(function(s){LE(n),n.response=s;try{s.data=BE.call(n,n.transformResponse,s)}finally{delete n.response}return s.headers=Xa.from(s.headers),s},function(s){if(!sw(s)&&(LE(n),s&&s.response)){n.response=s.response;try{s.response.data=BE.call(n,n.transformResponse,s.response)}finally{delete n.response}s.response.headers=Xa.from(s.response.headers)}return Promise.reject(s)})}const Vv={};["object","boolean","number","function","string","symbol"].forEach((n,i)=>{Vv[n]=function(s){return typeof s===n||"a"+(i<1?"n ":" ")+n}});const Tw={};Vv.transitional=function(i,r,s){function f(p,y){return"[Axios v"+HE+"] Transitional option '"+p+"'"+y+(s?". "+s:"")}return(p,y,S)=>{if(i===!1)throw new Je(f(y," has been removed"+(r?" in "+r:"")),Je.ERR_DEPRECATED);return r&&!Tw[y]&&(Tw[y]=!0,console.warn(f(y," has been deprecated since v"+r+" and will be removed in the near future"))),i?i(p,y,S):!0}},Vv.spelling=function(i){return(r,s)=>(console.warn(`${s} is likely a misspelling of ${i}`),!0)};function D6(n,i,r){if(typeof n!="object")throw new Je("options must be an object",Je.ERR_BAD_OPTION_VALUE);const s=Object.keys(n);let f=s.length;for(;f-- >0;){const p=s[f],y=Object.prototype.hasOwnProperty.call(i,p)?i[p]:void 0;if(y){const S=n[p],T=S===void 0||y(S,p,n);if(T!==!0)throw new Je("option "+p+" must be "+T,Je.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new Je("Unknown option "+p,Je.ERR_BAD_OPTION)}}const Fv={assertOptions:D6,validators:Vv},Pa=Fv.validators;let md=class{constructor(i){this.defaults=i||{},this.interceptors={request:new aw,response:new aw}}async request(i,r){try{return await this._request(i,r)}catch(s){if(s instanceof Error){let f={};Error.captureStackTrace?Error.captureStackTrace(f):f=new Error;const p=(()=>{if(!f.stack)return"";const y=f.stack.indexOf(`
27
- `);return y===-1?"":f.stack.slice(y+1)})();try{if(!s.stack)s.stack=p;else if(p){const y=p.indexOf(`
28
- `),S=y===-1?-1:p.indexOf(`
29
- `,y+1),T=S===-1?"":p.slice(S+1);String(s.stack).endsWith(T)||(s.stack+=`
30
- `+p)}}catch{}}throw s}}_request(i,r){typeof i=="string"?(r=r||{},r.url=i):r=i||{},r=hd(this.defaults,r);const{transitional:s,paramsSerializer:f,headers:p}=r;s!==void 0&&Fv.assertOptions(s,{silentJSONParsing:Pa.transitional(Pa.boolean),forcedJSONParsing:Pa.transitional(Pa.boolean),clarifyTimeoutError:Pa.transitional(Pa.boolean),legacyInterceptorReqResOrdering:Pa.transitional(Pa.boolean),advertiseZstdAcceptEncoding:Pa.transitional(Pa.boolean),validateStatusUndefinedResolves:Pa.transitional(Pa.boolean)},!1),f!=null&&(ce.isFunction(f)?r.paramsSerializer={serialize:f}:Fv.assertOptions(f,{encode:Pa.function,serialize:Pa.function},!0)),r.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?r.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:r.allowAbsoluteUrls=!0),Fv.assertOptions(r,{baseUrl:Pa.spelling("baseURL"),withXsrfToken:Pa.spelling("withXSRFToken")},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let y=p&&ce.merge(p.common,p[r.method]);p&&ce.forEach(["delete","get","head","post","put","patch","query","common"],N=>{delete p[N]}),r.headers=Xa.concat(y,p);const S=[];let T=!0;this.interceptors.request.forEach(function(L){if(typeof L.runWhen=="function"&&L.runWhen(r)===!1)return;T=T&&L.synchronous;const D=r.transitional||NE;D&&D.legacyInterceptorReqResOrdering?S.unshift(L.fulfilled,L.rejected):S.push(L.fulfilled,L.rejected)});const C=[];this.interceptors.response.forEach(function(L){C.push(L.fulfilled,L.rejected)});let j,O=0,A;if(!T){const N=[Cw.bind(this),void 0];for(N.unshift(...S),N.push(...C),A=N.length,j=Promise.resolve(r);O<A;)j=j.then(N[O++],N[O++]);return j}A=S.length;let R=r;for(;O<A;){const N=S[O++],L=S[O++];try{R=N(R)}catch(D){L.call(this,D);break}}try{j=Cw.call(this,R)}catch(N){return Promise.reject(N)}for(O=0,A=C.length;O<A;)j=j.then(C[O++],C[O++]);return j}getUri(i){i=hd(this.defaults,i);const r=hw(i.baseURL,i.url,i.allowAbsoluteUrls,i);return lw(r,i.params,i.paramsSerializer)}};ce.forEach(["delete","get","head","options"],function(i){md.prototype[i]=function(r,s){return this.request(hd(s||{},{method:i,url:r,data:s&&ce.hasOwnProp(s,"data")?s.data:void 0}))}}),ce.forEach(["post","put","patch","query"],function(i){function r(s){return function(p,y,S){return this.request(hd(S||{},{method:i,headers:s?{"Content-Type":"multipart/form-data"}:{},url:p,data:y}))}}md.prototype[i]=r(),i!=="query"&&(md.prototype[i+"Form"]=r(!0))});let R6=class N4{constructor(i){if(typeof i!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(p){r=p});const s=this;this.promise.then(f=>{if(!s._listeners)return;let p=s._listeners.length;for(;p-- >0;)s._listeners[p](f);s._listeners=null}),this.promise.then=f=>{let p;const y=new Promise(S=>{s.subscribe(S),p=S}).then(f);return y.cancel=function(){s.unsubscribe(p)},y},i(function(p,y,S){s.reason||(s.reason=new cy(p,y,S),r(s.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(i){if(this.reason){i(this.reason);return}this._listeners?this._listeners.push(i):this._listeners=[i]}unsubscribe(i){if(!this._listeners)return;const r=this._listeners.indexOf(i);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){const i=new AbortController,r=s=>{i.abort(s)};return this.subscribe(r),i.signal.unsubscribe=()=>this.unsubscribe(r),i.signal}static source(){let i;return{token:new N4(function(f){i=f}),cancel:i}}};function N6(n){return function(r){return n.apply(null,r)}}function _6(n){return ce.isObject(n)&&n.isAxiosError===!0}const qE={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,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(qE).forEach(([n,i])=>{qE[i]=n});function Ow(n){const i=new md(n),r=qO(md.prototype.request,i);return ce.extend(r,md.prototype,i,{allOwnKeys:!0}),ce.extend(r,i,null,{allOwnKeys:!0}),r.create=function(f){return Ow(hd(n,f))},r}const Al=Ow(sy);Al.Axios=md,Al.CanceledError=cy,Al.CancelToken=R6,Al.isCancel=sw,Al.VERSION=HE,Al.toFormData=Hv,Al.AxiosError=Je,Al.Cancel=Al.CanceledError,Al.all=function(i){return Promise.all(i)},Al.spread=N6,Al.isAxiosError=_6,Al.mergeConfig=hd,Al.AxiosHeaders=Xa,Al.formToJSON=n=>rw(ce.isHTMLForm(n)?new FormData(n):n),Al.getAdapter=Ew.getAdapter,Al.HttpStatusCode=qE,Al.default=Al;const{Axios:eq,AxiosError:tq,CanceledError:nq,isCancel:lq,CancelToken:aq,VERSION:oq,all:iq,Cancel:rq,isAxiosError:sq,spread:cq,toFormData:uq,AxiosHeaders:fq,HttpStatusCode:dq,formToJSON:hq,getAdapter:mq,mergeConfig:pq,create:gq}=Al;function $6(n){if(n&&typeof n=="object"&&"code"in n&&"data"in n){const i=n;return i.code!==200?Promise.reject(new Error(i.message||"请求失败")):i.data}return n}function ww(n,i={}){const{tokenKey:r="token",userInfoKey:s="userInfo",unauthorizedRedirect:f="/login"}=i;n.interceptors.request.use(p=>{const y=localStorage.getItem(r);return y&&(p.headers.Authorization=`Bearer ${y}`),p}),n.interceptors.response.use(p=>$6(p.data),p=>{var y,S,T;return((y=p.response)==null?void 0:y.status)===401?(localStorage.removeItem(r),localStorage.removeItem(s),window.location.href=f):((S=p.response)==null?void 0:S.status)===403?console.error("没有权限访问该资源"):((T=p.response)==null?void 0:T.status)===500&&console.error("服务器内部错误"),Promise.reject(p)})}function VE(n={}){const i=Al.create({baseURL:n.baseURL??"/api",timeout:n.timeout??1e4});return ww(i,{tokenKey:n.tokenKey,userInfoKey:n.userInfoKey,unauthorizedRedirect:n.unauthorizedRedirect}),i}const _n=VE(),FE=VE();function B6({title:n="统一管理平台",loginApi:i="/auth/login",redirectUrl:r="/",onSuccess:s}){const[f,p]=H.useState(!1),y=async S=>{var T,C;p(!0);try{const j=await _n.post(i,S);j.token?(localStorage.setItem("token",j.token),localStorage.setItem("userInfo",JSON.stringify(j.user||j)),b.message.success("登录成功"),s?s(j):window.location.href=r):b.message.error("登录失败:未获取到 token")}catch(j){b.message.error(((C=(T=j.response)==null?void 0:T.data)==null?void 0:C.message)||j.message||"登录失败")}finally{p(!1)}};return m.jsx("div",{style:{height:"100vh",display:"flex",justifyContent:"center",alignItems:"center",background:"#f0f2f5"},children:m.jsx(b.Card,{title:n,style:{width:400},children:m.jsxs(b.Form,{onFinish:y,size:"large",children:[m.jsx(b.Form.Item,{name:"username",rules:[{required:!0,message:"请输入用户名"}],children:m.jsx(b.Input,{prefix:m.jsx(he.UserOutlined,{}),placeholder:"用户名"})}),m.jsx(b.Form.Item,{name:"password",rules:[{required:!0,message:"请输入密码"}],children:m.jsx(b.Input.Password,{prefix:m.jsx(he.LockOutlined,{}),placeholder:"密码"})}),m.jsx(b.Form.Item,{children:m.jsx(b.Button,{type:"primary",htmlType:"submit",loading:f,block:!0,children:"登 录"})})]})})})}class H6 extends H.Component{constructor(r){super(r);we(this,"handleReset",()=>{this.setState({hasError:!1,error:null,errorInfo:null}),typeof this.props.onReset=="function"&&this.props.onReset()});this.state={hasError:!1,error:null,errorInfo:null}}static getDerivedStateFromError(r){return{hasError:!0,error:r}}componentDidCatch(r,s){console.error("[ErrorBoundary] caught error:",r,s),this.setState({errorInfo:s})}render(){if(!this.state.hasError)return this.props.children;const{fallbackTitle:r="组件加载失败",fallbackDescription:s,showReload:f=!0}=this.props,p=this.state.error&&(this.state.error.message||String(this.state.error))||"未知错误";return m.jsxs("div",{style:{padding:24,background:"#fff2f0",border:"1px solid #ffccc7",borderRadius:8,minHeight:200},children:[m.jsx(b.Alert,{type:"error",showIcon:!0,icon:m.jsx(he.BugOutlined,{}),message:r,description:m.jsxs("div",{children:[m.jsx("div",{style:{marginBottom:8},children:s||"当前组件发生了异常,已被错误边界捕获。其他功能仍可正常使用。"}),m.jsx("div",{style:{fontFamily:"Menlo, Monaco, Consolas, monospace",fontSize:12,color:"#cf1322",background:"#fff",padding:8,borderRadius:4,border:"1px solid #ffccc7",wordBreak:"break-word",whiteSpace:"pre-wrap"},children:p})]})}),f&&m.jsx(b.Space,{style:{marginTop:16},children:m.jsx(b.Button,{icon:m.jsx(he.ReloadOutlined,{}),onClick:this.handleReset,children:"重试"})})]})}}const{Title:U6,Text:L6,Paragraph:jw}=b.Typography,q6=()=>m.jsxs("div",{style:{padding:"0"},children:[m.jsxs("div",{style:{marginBottom:24},children:[m.jsx(U6,{level:2,style:{margin:0},children:"Z-One Company 统一管理平台"}),m.jsx(L6,{type:"secondary",children:"一站式企业级应用管理平台"})]}),m.jsxs(b.Row,{gutter:16,style:{marginBottom:24},children:[m.jsx(b.Col,{span:6,children:m.jsx(b.Card,{children:m.jsx(b.Statistic,{title:"配置中心",value:0,prefix:m.jsx(he.SettingOutlined,{})})})}),m.jsx(b.Col,{span:6,children:m.jsx(b.Card,{children:m.jsx(b.Statistic,{title:"任务中心",value:0,prefix:m.jsx(he.FileTextOutlined,{})})})}),m.jsx(b.Col,{span:6,children:m.jsx(b.Card,{children:m.jsx(b.Statistic,{title:"工作流",value:0,prefix:m.jsx(he.AuditOutlined,{})})})}),m.jsx(b.Col,{span:6,children:m.jsx(b.Card,{children:m.jsx(b.Statistic,{title:"用户中心",value:0,prefix:m.jsx(he.UserOutlined,{})})})})]}),m.jsxs(b.Card,{title:"关于 Z-One Company",children:[m.jsx(jw,{children:"Z-One Company 是一站式企业级应用管理平台,整合了配置中心、任务中心、工作流、用户中心等多个模块。"}),m.jsx(jw,{children:m.jsx("strong",{children:"核心模块:"})}),m.jsxs("ul",{children:[m.jsx("li",{children:"配置中心 - 集中管理应用配置"}),m.jsx("li",{children:"任务中心 - 任务调度与执行"}),m.jsx("li",{children:"工作流 - 流程审批与管理"}),m.jsx("li",{children:"用户中心 - 统一身份认证与权限管理"}),m.jsx("li",{children:"调度中心 - 定时任务管理"}),m.jsx("li",{children:"Mist - 密钥管理"}),m.jsx("li",{children:"元数据 - API与应用管理"})]})]})]}),V6=FE,Fi={layout:"_layout_1puwg_1",header:"_header_1puwg_5",logo:"_logo_1puwg_15",logoText:"_logoText_1puwg_20",headerRight:"_headerRight_1puwg_26",userInfo:"_userInfo_1puwg_31",userName:"_userName_1puwg_38",mainLayout:"_mainLayout_1puwg_43",sider:"_sider_1puwg_48",menu:"_menu_1puwg_53",collapsedBtn:"_collapsedBtn_1puwg_57",content:"_content_1puwg_74"};let F6="/api";function Aw(){return Al.create({baseURL:F6,timeout:15e3})}const wu=Aw();Aw(),wu.interceptors.request.use(n=>{const i=localStorage.getItem("token");return i&&(n.headers.Authorization=`Bearer ${i}`),n});const k6=n=>wu.post("/ctc/auth/login",n).then(i=>i.data),I6=()=>{try{const n=localStorage.getItem("userInfo");return Promise.resolve(n?JSON.parse(n):null)}catch{return Promise.resolve(null)}};function G6(n){return{list:i=>wu.get(`/${n}/list`,{params:i}).then(r=>r.data),page:i=>wu.get(`/${n}/page`,{params:i}).then(r=>r.data),get:i=>wu.get(`/${n}/${i}`).then(r=>r.data),create:i=>wu.post(`/${n}`,i).then(r=>r.data),update:(i,r)=>wu.put(`/${n}/${i}`,r).then(s=>s.data),delete:i=>wu.delete(`/${n}/${i}`).then(r=>r.data)}}const Bt=G6("mock"),{Header:Y6,Sider:X6,Content:P6}=b.Layout,{Text:Q6}=b.Typography,Z6=({compact:n=!1,children:i}={})=>{const r=ro.useLocation(),s=ro.useNavigate(),[f,p]=H.useState(!1),[y,S]=H.useState("管理员"),[T,C]=H.useState(null),[j,O]=H.useState([]),[A,R]=H.useState([]),N=H.useRef(s);N.current=s,H.useEffect(()=>{if(!localStorage.getItem("token")){N.current("/login");return}const B=localStorage.getItem("userInfo");if(B)try{const k=JSON.parse(B);S(k.userName||"管理员"),C(k),k.tenantCode&&R([k.tenantCode])}catch{}I6().then(k=>{k&&(C(k),S(k.userName||"管理员"),localStorage.setItem("userInfo",JSON.stringify(k)))}).catch(()=>{}),O([{value:"tenant1",label:"租户1",children:[{value:"domain1-1",label:"域1-1"},{value:"domain1-2",label:"域1-2"}]},{value:"tenant2",label:"租户2",children:[{value:"domain2-1",label:"域2-1"},{value:"domain2-2",label:"域2-2"}]}])},[]);const L=()=>{var B;const U=r.pathname;if(U.includes("/user"))return["user"];if(U.includes("/role"))return["role"];if(U.includes("/permission"))return["permission"];if(U.includes("/app"))return["app"];if(U.includes("/dict"))return["dict"];if(U.includes("/audit"))return["audit"];if(U.includes("/tenant"))return["tenant"];if(U.includes("/domain"))return["domain"];if(U.includes("/org"))return["org"];if(U.includes("/dept"))return["dept"];if(U.includes("/group"))return["group"];if(U.includes("/4a/")){const k=((B=U.split("/4a/")[1])==null?void 0:B.split("/"))||[];if(k.length>0)return[`4a/${k[0]}`]}return U.includes("/webide")?["webide"]:U.includes("/agent-team")?["agent-team"]:["4a/account"]},D=[{key:"4a/account",icon:m.jsx(he.TeamOutlined,{}),label:"账号管理"},{key:"4a/role",icon:m.jsx(he.SafetyOutlined,{}),label:"角色管理"},{key:"4a/application",icon:m.jsx(he.AppstoreOutlined,{}),label:"应用管理"},{key:"4a/tenant",icon:m.jsx(he.TeamOutlined,{}),label:"租户管理"},{key:"4a/org",icon:m.jsx(he.ClusterOutlined,{}),label:"组织管理"},{key:"4a/permission",icon:m.jsx(he.SafetyCertificateOutlined,{}),label:"权限管理"},{key:"4a/surl",icon:m.jsx(he.LinkOutlined,{}),label:"短链管理"},{key:"webide",icon:m.jsx(he.CodeOutlined,{}),label:"WebIDE 容器"},{key:"agent-team",icon:m.jsx(he.RobotOutlined,{}),label:"Agent 群组 IM"},{type:"divider"},{key:"settings",icon:m.jsx(he.SettingOutlined,{}),label:"系统设置"}],_=({key:U})=>{s(`/ctc/${U}`)};return n?m.jsx(m.Fragment,{children:i}):m.jsxs(b.Layout,{className:Fi.layout,children:[m.jsxs(Y6,{className:Fi.header,children:[m.jsx("div",{className:Fi.logo,children:m.jsx("span",{className:Fi.logoText,children:"Z-CTC 统一用户中心"})}),m.jsx("div",{className:Fi.headerRight,children:m.jsx(b.Space,{size:24,children:m.jsx(b.Dropdown,{overlay:m.jsxs("div",{style:{background:"#fff",borderRadius:"8px",boxShadow:"0 6px 16px rgba(0, 0, 0, 0.12)",padding:"16px",width:"360px"},children:[m.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"12px",marginBottom:"12px"},children:[m.jsx("span",{style:{fontSize:"14px",color:"#666"},children:"租户域"}),m.jsx(b.Cascader,{value:A,onChange:U=>R(U),options:j,placeholder:"请选择租户域",style:{flex:1}})]}),m.jsx(b.Divider,{style:{margin:"12px 0"}}),m.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"8px"},children:[m.jsxs("div",{style:{display:"flex",fontSize:"14px"},children:[m.jsx("span",{style:{color:"#999",width:"70px"},children:"用户名:"}),m.jsx("span",{children:(T==null?void 0:T.userName)||"-"})]}),m.jsxs("div",{style:{display:"flex",fontSize:"14px"},children:[m.jsx("span",{style:{color:"#999",width:"70px"},children:"真实姓名:"}),m.jsx("span",{children:(T==null?void 0:T.realName)||"-"})]}),m.jsxs("div",{style:{display:"flex",fontSize:"14px"},children:[m.jsx("span",{style:{color:"#999",width:"70px"},children:"邮箱:"}),m.jsx("span",{children:(T==null?void 0:T.email)||"-"})]}),m.jsxs("div",{style:{display:"flex",fontSize:"14px"},children:[m.jsx("span",{style:{color:"#999",width:"70px"},children:"手机号:"}),m.jsx("span",{children:(T==null?void 0:T.phone)||"-"})]}),m.jsxs("div",{style:{display:"flex",fontSize:"14px"},children:[m.jsx("span",{style:{color:"#999",width:"70px"},children:"状态:"}),m.jsx("span",{children:(T==null?void 0:T.status)===1?"正常":"停用"})]})]}),m.jsx(b.Divider,{style:{margin:"12px 0"}}),m.jsxs("div",{style:{display:"flex",flexDirection:"column"},children:[m.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px",padding:"8px 12px",cursor:"pointer",borderRadius:"4px",fontSize:"14px"},onClick:()=>{},children:[m.jsx(he.UserOutlined,{})," 个人中心"]}),m.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px",padding:"8px 12px",cursor:"pointer",borderRadius:"4px",fontSize:"14px"},onClick:()=>{},children:[m.jsx(he.SettingOutlined,{})," 系统设置"]}),m.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px",padding:"8px 12px",cursor:"pointer",borderRadius:"4px",fontSize:"14px"},onClick:()=>{localStorage.removeItem("token"),localStorage.removeItem("userInfo"),s("/ctc/login")},children:[m.jsx(he.LogoutOutlined,{})," 退出登录"]})]})]}),placement:"bottomRight",trigger:["click"],children:m.jsxs("div",{className:Fi.userInfo,children:[m.jsx(b.Avatar,{icon:m.jsx(he.UserOutlined,{}),size:"small"}),m.jsx(Q6,{className:Fi.userName,children:y}),m.jsx(he.DownOutlined,{})]})})})})]}),m.jsxs(b.Layout,{className:Fi.mainLayout,children:[m.jsxs(X6,{trigger:null,collapsible:!0,collapsed:f,className:Fi.sider,width:200,children:[m.jsx(b.Menu,{mode:"inline",selectedKeys:L(),defaultOpenKeys:["user","role","permission","audit","tenant","domain","org","dept","group"],className:Fi.menu,items:D,onClick:_}),m.jsx("div",{className:Fi.collapsedBtn,onClick:()=>p(!f),children:f?m.jsx(he.MenuUnfoldOutlined,{}):m.jsx(he.MenuFoldOutlined,{})})]}),m.jsx(P6,{className:Fi.content,children:i})]})]})},kv={container:"_container_tti32_1",content:"_content_tti32_9",card:"_card_tti32_14",header:"_header_tti32_19"},{Title:J6,Text:Nq}=b.Typography,K6=n=>FE.post("/ctc/auth/login",n),W6=()=>Promise.resolve({code:0,message:"功能暂未开放"}),e3=()=>{const n=ro.useNavigate(),[i,r]=H.useState("login"),[s,f]=H.useState("account"),[p,y]=H.useState(!1),[S,T]=H.useState(0),[C]=b.Form.useForm(),j=async()=>{b.message.info("验证码功能暂未开放")},O=async N=>{try{let L;if(i==="login"&&s==="account"){if(L=await K6({identifier:N.username,password:N.password}),L&&L.token){b.message.success("登录成功!"),localStorage.setItem("token",L.token);const D=L.account||{};localStorage.setItem("userInfo",JSON.stringify({userId:D.id,userName:D.username,nickname:D.nickname,tenantCode:D.tenantCode})),n("/ctc");return}b.message.error((L==null?void 0:L.message)||"登录失败")}else{await W6(),b.message.info("该功能暂未开放");return}}catch(L){b.message.error(L.message||"操作失败,请重试")}},A=()=>{const N=[{key:"account",label:"账户密码"}];return i==="register"?(N.push({key:"phone",label:"手机注册"}),N.push({key:"email",label:"邮箱注册"})):N.push({key:"phone",label:"手机验证码"}),N},R=()=>{const N=i==="login";return m.jsxs(m.Fragment,{children:[s==="account"&&m.jsxs(m.Fragment,{children:[m.jsx(b.Form.Item,{name:"username",rules:[{required:!0,message:"请输入用户名!"}],children:m.jsx(b.Input,{size:"large",prefix:m.jsx(he.UserOutlined,{}),placeholder:"用户名"})}),m.jsx(b.Form.Item,{name:"password",rules:[{required:!0,message:"请输入密码!"}],children:m.jsx(b.Input.Password,{size:"large",prefix:m.jsx(he.LockOutlined,{}),placeholder:"密码"})})]}),(s==="phone"||s==="email")&&m.jsxs(m.Fragment,{children:[m.jsx(b.Form.Item,{name:"receiver",rules:[{required:!0,message:s==="phone"?"请输入手机号!":"请输入邮箱!"}],children:m.jsx(b.Input,{size:"large",prefix:s==="phone"?m.jsx(he.MobileOutlined,{}):m.jsx(he.MailOutlined,{}),placeholder:s==="phone"?"手机号":"邮箱",disabled:S>0})}),m.jsx(b.Form.Item,{children:m.jsxs("div",{style:{display:"flex",gap:8},children:[m.jsx(b.Input,{size:"large",prefix:m.jsx(he.LockOutlined,{}),placeholder:"验证码",style:{flex:1}}),m.jsx(b.Button,{type:"primary",onClick:j,loading:p,disabled:S>0,style:{minWidth:100},children:S>0?`${S}秒`:"获取验证码"})]})}),!N&&m.jsx(b.Form.Item,{name:"password",rules:[{required:!0,message:"请输入密码!"}],children:m.jsx(b.Input.Password,{size:"large",prefix:m.jsx(he.LockOutlined,{}),placeholder:"设置密码"})})]})]})};return m.jsx("div",{className:kv.container,children:m.jsx("div",{className:kv.content,children:m.jsxs(b.Card,{className:kv.card,children:[m.jsxs("div",{className:kv.header,style:{textAlign:"center"},children:[m.jsxs("svg",{width:"48",height:"48",viewBox:"0 0 56 56",fill:"none","aria-label":"logo",style:{marginBottom:8},children:[m.jsx("defs",{children:m.jsxs("linearGradient",{id:"brandGradAuth",x1:"0",y1:"0",x2:"56",y2:"56",gradientUnits:"userSpaceOnUse",children:[m.jsx("stop",{offset:"0%",stopColor:"#1677ff"}),m.jsx("stop",{offset:"100%",stopColor:"#0958d9"})]})}),m.jsx("rect",{x:"2",y:"2",width:"52",height:"52",rx:"14",fill:"url(#brandGradAuth)"}),m.jsx("path",{d:"M18 18 H40 L18 38 H40",stroke:"#ffffff",strokeWidth:"3.5",strokeLinecap:"round",strokeLinejoin:"round",fill:"none"})]}),m.jsx(J6,{level:4,style:{margin:0},children:i==="register"?"用户注册":"欢迎登录"})]}),m.jsxs(b.Form,{form:C,layout:"vertical",onFinish:O,initialValues:{autoLogin:!0},children:[i!=="forgot"&&m.jsx(b.Tabs,{activeKey:s,onChange:N=>f(N),centered:!0,items:A()}),R(),m.jsx(b.Form.Item,{children:m.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[i==="login"&&m.jsx(b.Form.Item,{name:"autoLogin",valuePropName:"checked",noStyle:!0,children:m.jsx(b.Checkbox,{children:"自动登录"})}),m.jsx("a",{onClick:()=>{r(i==="login"?"register":"login")},children:i==="login"?"没有账号?立即注册":"已有账号?立即登录"})]})}),m.jsx(b.Form.Item,{children:m.jsx(b.Button,{type:"primary",htmlType:"submit",block:!0,size:"large",children:i==="login"?"登录":"注册"})})]})]})})})},t3={display:"flex",flexDirection:"column",height:"100vh",overflow:"auto",background:"#f0f2f5",backgroundImage:"url('https://gw.alipayobjects.com/zos/rmsportal/TVYTbAXWheQpRcWDaDMu.svg')",backgroundRepeat:"no-repeat",backgroundPosition:"center 110px",backgroundSize:"100%"},n3={flex:1,padding:"32px 0",maxWidth:400,margin:"0 auto",width:"100%"},l3=()=>{const[n,i]=H.useState({}),[r]=H.useState("account"),[s,f]=H.useState(!1),p=ro.useNavigate(),y=async T=>{f(!0);try{const C=await k6({identifier:T.userName,password:T.password});if(C&&C.token){localStorage.setItem("token",C.token);const j=C.account||{};localStorage.setItem("userInfo",JSON.stringify({userId:j.id,userName:j.username,nickname:j.nickname,tenantCode:j.tenantCode})),b.message.success("登录成功!"),p("/");return}i(C)}catch{b.message.error("登录失败,请重试!")}finally{f(!1)}},{status:S}=n;return m.jsx("div",{style:t3,children:m.jsxs("div",{style:n3,children:[m.jsx("div",{style:{textAlign:"center",marginBottom:24},children:m.jsxs("svg",{width:"56",height:"56",viewBox:"0 0 56 56",fill:"none","aria-label":"logo",children:[m.jsx("defs",{children:m.jsxs("linearGradient",{id:"brandGrad",x1:"0",y1:"0",x2:"56",y2:"56",gradientUnits:"userSpaceOnUse",children:[m.jsx("stop",{offset:"0%",stopColor:"#1677ff"}),m.jsx("stop",{offset:"100%",stopColor:"#0958d9"})]})}),m.jsx("rect",{x:"2",y:"2",width:"52",height:"52",rx:"14",fill:"url(#brandGrad)"}),m.jsx("path",{d:"M18 18 H40 L18 38 H40",stroke:"#ffffff",strokeWidth:"3.5",strokeLinecap:"round",strokeLinejoin:"round",fill:"none"})]})}),m.jsx(b.Tabs,{activeKey:r,centered:!0,items:[{key:"account",label:"账户密码登录"}]}),S==="error"&&m.jsx(b.Alert,{title:"账户或密码错误",type:"error",showIcon:!0,style:{marginBottom:16}}),m.jsxs(b.Form,{onFinish:y,initialValues:{autoLogin:!0},layout:"vertical",children:[m.jsx(b.Form.Item,{name:"userName",rules:[{required:!0,message:"请输入用户名!"}],children:m.jsx(b.Input,{size:"large",prefix:m.jsx(he.UserOutlined,{}),placeholder:"用户名"})}),m.jsx(b.Form.Item,{name:"password",rules:[{required:!0,message:"请输入密码!"}],children:m.jsx(b.Input.Password,{size:"large",prefix:m.jsx(he.LockOutlined,{}),placeholder:"密码"})}),m.jsx(b.Form.Item,{name:"autoLogin",valuePropName:"checked",children:m.jsx(b.Checkbox,{children:"自动登录"})}),m.jsx(b.Form.Item,{children:m.jsx(b.Button,{type:"primary",htmlType:"submit",size:"large",block:!0,loading:s,children:"登录"})})]}),m.jsxs("div",{style:{textAlign:"center",marginTop:16,color:"#888",fontSize:14},children:[m.jsx(ro.Link,{to:"/uc/register",style:{marginRight:16},children:"用户注册"}),m.jsx("span",{style:{margin:"0 8px",color:"#ddd"},children:"|"}),m.jsx(ro.Link,{to:"/uc/reset-password",style:{marginRight:16},children:"找回密码"}),m.jsx("span",{style:{margin:"0 8px",color:"#ddd"},children:"|"}),m.jsx(ro.Link,{to:"/uc/login",children:"手机验证码登录"})]})]})})},Iv={health:()=>_n.get("/agentTeam/health").then(n=>n.data)},a3={LEADER:"red",WORKER:"blue",OBSERVER:"default"};function o3(){const[n,i]=H.useState([]),[r,s]=H.useState(null),[f,p]=H.useState([]),[y,S]=H.useState(!1),[T,C]=H.useState(!1),[j,O]=H.useState("disconnected"),[A,R]=H.useState([]),[N,L]=H.useState(""),[D,_]=H.useState([]),U=H.useRef(null),B=async()=>{S(!0);try{const V=await Iv.listTeams();i(V||[])}catch(V){b.message.warning("加载团队失败:"+((V==null?void 0:V.message)||"未知错误")),i([])}finally{S(!1)}},k=async V=>{C(!0);try{const F=await Iv.listMembers(V);p(F||[])}catch(F){b.message.warning("加载成员失败:"+((F==null?void 0:F.message)||"未知错误")),p([])}finally{C(!1)}},G=()=>{if(U.current){b.message.warning("已连接");return}const V=Iv.buildWsUrl();O("connecting"),R(F=>[...F,`[${new Date().toLocaleTimeString()}] 连接到 ${V}...`]);try{const F=new WebSocket(V);F.onopen=()=>{O("connected"),R(te=>[...te,`[${new Date().toLocaleTimeString()}] ✅ 连接已建立`])},F.onmessage=te=>{const ae=typeof te.data=="string"?te.data:"[binary]";R(He=>[...He,`[${new Date().toLocaleTimeString()}] ← ${ae}`]);const ge=ae.match(/^([^|]+)\|(.+)$/);ge&&_(He=>[...He,{from:ge[1],text:ge[2],time:new Date().toLocaleTimeString()}])},F.onerror=()=>{O("error"),R(te=>[...te,`[${new Date().toLocaleTimeString()}] ❌ 连接错误`])},F.onclose=()=>{O("disconnected"),R(te=>[...te,`[${new Date().toLocaleTimeString()}] 🔌 连接已关闭`]),U.current=null},U.current=F}catch(F){O("error"),b.message.error("WS 连接失败:"+((F==null?void 0:F.message)||"未知错误"))}},Y=()=>{U.current&&(U.current.close(),U.current=null)},P=()=>{if(!U.current||U.current.readyState!==WebSocket.OPEN){b.message.error("WebSocket 未连接");return}if(!N.trim())return;const V=`${localStorage.getItem("userInfo")?JSON.parse(localStorage.getItem("userInfo")).userName:"me"}|${N}`;U.current.send(V),R(F=>[...F,`[${new Date().toLocaleTimeString()}] → ${N}`]),_(F=>[...F,{from:"me",text:N,time:new Date().toLocaleTimeString()}]),L("")};H.useEffect(()=>(B(),()=>{Y()}),[]),H.useEffect(()=>{r&&k(r.teamCode)},[r]);const Q={disconnected:"default",connecting:"processing",connected:"success",error:"error"},ue={disconnected:"未连接",connecting:"连接中",connected:"已连接",error:"错误"};return m.jsxs(Ou.PageContainer,{header:{title:"Agent 群组 IM (z-agent-team)",subTitle:"团队协作 + 实时通讯",breadcrumb:{}},children:[m.jsxs("div",{style:{display:"grid",gridTemplateColumns:"300px 1fr",gap:16},children:[m.jsx(Ou.ProCard,{title:m.jsxs(b.Space,{children:[m.jsx(he.TeamOutlined,{})," 团队列表"]}),loading:y,headerBordered:!0,children:n.length===0?m.jsx(b.Empty,{image:b.Empty.PRESENTED_IMAGE_SIMPLE,description:"暂无团队",children:m.jsx(b.Button,{type:"primary",size:"small",onClick:B,children:"刷新"})}):m.jsx(b.List,{dataSource:n,renderItem:V=>m.jsx(b.List.Item,{onClick:()=>s(V),style:{cursor:"pointer",padding:"8px 12px",background:(r==null?void 0:r.teamCode)===V.teamCode?"#e6f7ff":void 0,borderRadius:4},children:m.jsx(b.List.Item.Meta,{title:V.teamName,description:m.jsxs(b.Space,{size:4,children:[m.jsx(b.Tag,{children:V.teamCode}),V.status==="ENABLE"?m.jsx(b.Tag,{color:"green",children:"启用"}):m.jsx(b.Tag,{children:"停用"})]})})})})}),m.jsxs(Ou.ProCard,{title:r?m.jsxs(b.Space,{children:[m.jsx(he.TeamOutlined,{})," ",r.teamName," (",r.teamCode,")"]}):"请选择团队",headerBordered:!0,extra:m.jsxs(b.Space,{children:[j==="connected"?m.jsx(b.Button,{icon:m.jsx(he.PoweroffOutlined,{}),onClick:Y,children:"断开"}):m.jsx(b.Button,{type:"primary",icon:m.jsx(he.CheckCircleOutlined,{}),onClick:G,children:"连接"}),m.jsx(b.Tag,{color:Q[j],children:ue[j]})]}),children:[r?m.jsxs("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:16},children:[m.jsx(Ou.ProCard,{title:"成员",loading:T,size:"small",children:m.jsx(b.List,{dataSource:f,renderItem:V=>m.jsx(b.List.Item,{children:m.jsx(b.List.Item.Meta,{title:m.jsxs(b.Space,{children:[V.appCode,m.jsx(b.Tag,{color:a3[V.role||"WORKER"],children:V.role})]}),description:`优先级: ${V.priority??0} · ${V.enabled===1?"✅ 启用":"❌ 停用"}`})})})}),m.jsxs(Ou.ProCard,{title:"实时消息",size:"small",styles:{body:{padding:0,display:"flex",flexDirection:"column",height:400}},children:[m.jsx("div",{style:{flex:1,overflow:"auto",padding:12},children:D.length===0?m.jsx(b.Empty,{image:b.Empty.PRESENTED_IMAGE_SIMPLE,description:"暂无消息"}):D.map((V,F)=>m.jsxs("div",{style:{marginBottom:8},children:[m.jsx(b.Tag,{color:V.from==="me"?"blue":"green",children:V.from}),m.jsx("span",{style:{marginLeft:8},children:V.text}),m.jsx("span",{style:{marginLeft:8,color:"#999",fontSize:11},children:V.time})]},F))}),m.jsxs("div",{style:{padding:8,borderTop:"1px solid #f0f0f0",display:"flex",gap:8},children:[m.jsx(b.Input,{value:N,onChange:V=>L(V.target.value),onPressEnter:P,placeholder:j==="connected"?"输入消息...":"请先连接 WebSocket",disabled:j!=="connected"}),m.jsx(b.Button,{type:"primary",icon:m.jsx(he.SendOutlined,{}),onClick:P,disabled:j!=="connected",children:"发送"})]})]})]}):m.jsx(b.Empty,{description:"请从左侧选择一个团队"}),A.length>0&&m.jsx(Ou.ProCard,{title:"WebSocket 日志",size:"small",style:{marginTop:16},children:m.jsx("pre",{style:{background:"#1e1e1e",color:"#d4d4d4",padding:8,borderRadius:4,fontFamily:"Menlo, monospace",fontSize:11,maxHeight:180,overflow:"auto",margin:0},children:A.join(`
31
- `)})})]})]}),m.jsx(b.Alert,{style:{marginTop:16},type:"info",showIcon:!0,title:"说明",description:m.jsxs("span",{children:["完整 STOMP 客户端 (含订阅 Topic、ACK、消息历史) 见 ",m.jsx("code",{children:"z-agent/z-agent-team/z-agent-team-frontend"}),"。 本页提供轻量级 WS 连接 + 群组管理 REST 端点示例。"]})})]})}function Mw(n){var i,r,s="";if(typeof n=="string"||typeof n=="number")s+=n;else if(typeof n=="object")if(Array.isArray(n)){var f=n.length;for(i=0;i<f;i++)n[i]&&(r=Mw(n[i]))&&(s&&(s+=" "),s+=r)}else for(r in n)n[r]&&(s&&(s+=" "),s+=r);return s}function qe(){for(var n,i,r=0,s="",f=arguments.length;r<f;r++)(n=arguments[r])&&(i=Mw(n))&&(s&&(s+=" "),s+=i);return s}const Cn=n=>{const i=z.useRef(n);return i.current=n,z.useCallback((...s)=>{var f;return(f=i.current)==null?void 0:f.call(i,...s)},[])};function Bo(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}const zw=process.env.NODE_ENV!=="test"&&Bo()?z.useLayoutEffect:z.useEffect,Ho=(n,i)=>{const r=z.useRef(!0);zw(()=>n(r.current),i),zw(()=>(r.current=!1,()=>{r.current=!0}),[])},Dw=n=>{const i=z.useRef(!1),[r,s]=z.useState(n);z.useEffect(()=>(i.current=!1,()=>{i.current=!0}),[]);function f(p,y){y&&i.current||s(p)}return[r,f]};function Rw(n,i){const[r,s]=H.useState(n),f=i!==void 0?i:r;return Ho(p=>{p||s(i)},[i]),[f,s]}function i3(){return{...z}.useId}let Nw=0;const _w=i3(),Gv=_w?function(i){const r=_w();return i||(process.env.NODE_ENV==="test"?"test-id":r)}:function(i){const[r,s]=z.useState("ssr-id");return z.useEffect(()=>{const f=Nw;Nw+=1,s(`rc_unique_${f}`)},[]),i||(process.env.NODE_ENV==="test"?"test-id":r)};function kE(n,i,r){const s=z.useRef({});return(!("value"in s.current)||r(s.current.condition,i))&&(s.current.value=n(),s.current.condition=i),s.current.value}function r3(n){const[,i]=z.useReducer(p=>p+1,0),r=z.useRef(n),s=Cn(()=>r.current),f=Cn(p=>{r.current=typeof p=="function"?p(r.current):p,i()});return[s,f]}var Yv={exports:{}},Tn={};/**
32
- * @license React
33
- * react-is.production.min.js
34
- *
35
- * Copyright (c) Facebook, Inc. and its affiliates.
36
- *
37
- * This source code is licensed under the MIT license found in the
38
- * LICENSE file in the root directory of this source tree.
39
- */var $w;function s3(){if($w)return Tn;$w=1;var n=Symbol.for("react.element"),i=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),p=Symbol.for("react.provider"),y=Symbol.for("react.context"),S=Symbol.for("react.server_context"),T=Symbol.for("react.forward_ref"),C=Symbol.for("react.suspense"),j=Symbol.for("react.suspense_list"),O=Symbol.for("react.memo"),A=Symbol.for("react.lazy"),R=Symbol.for("react.offscreen"),N;N=Symbol.for("react.module.reference");function L(D){if(typeof D=="object"&&D!==null){var _=D.$$typeof;switch(_){case n:switch(D=D.type,D){case r:case f:case s:case C:case j:return D;default:switch(D=D&&D.$$typeof,D){case S:case y:case T:case A:case O:case p:return D;default:return _}}case i:return _}}}return Tn.ContextConsumer=y,Tn.ContextProvider=p,Tn.Element=n,Tn.ForwardRef=T,Tn.Fragment=r,Tn.Lazy=A,Tn.Memo=O,Tn.Portal=i,Tn.Profiler=f,Tn.StrictMode=s,Tn.Suspense=C,Tn.SuspenseList=j,Tn.isAsyncMode=function(){return!1},Tn.isConcurrentMode=function(){return!1},Tn.isContextConsumer=function(D){return L(D)===y},Tn.isContextProvider=function(D){return L(D)===p},Tn.isElement=function(D){return typeof D=="object"&&D!==null&&D.$$typeof===n},Tn.isForwardRef=function(D){return L(D)===T},Tn.isFragment=function(D){return L(D)===r},Tn.isLazy=function(D){return L(D)===A},Tn.isMemo=function(D){return L(D)===O},Tn.isPortal=function(D){return L(D)===i},Tn.isProfiler=function(D){return L(D)===f},Tn.isStrictMode=function(D){return L(D)===s},Tn.isSuspense=function(D){return L(D)===C},Tn.isSuspenseList=function(D){return L(D)===j},Tn.isValidElementType=function(D){return typeof D=="string"||typeof D=="function"||D===r||D===f||D===s||D===C||D===j||D===R||typeof D=="object"&&D!==null&&(D.$$typeof===A||D.$$typeof===O||D.$$typeof===p||D.$$typeof===y||D.$$typeof===T||D.$$typeof===N||D.getModuleId!==void 0)},Tn.typeOf=L,Tn}var On={};/**
40
- * @license React
41
- * react-is.development.js
42
- *
43
- * Copyright (c) Facebook, Inc. and its affiliates.
44
- *
45
- * This source code is licensed under the MIT license found in the
46
- * LICENSE file in the root directory of this source tree.
47
- */var Bw;function c3(){return Bw||(Bw=1,process.env.NODE_ENV!=="production"&&(function(){var n=Symbol.for("react.element"),i=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),p=Symbol.for("react.provider"),y=Symbol.for("react.context"),S=Symbol.for("react.server_context"),T=Symbol.for("react.forward_ref"),C=Symbol.for("react.suspense"),j=Symbol.for("react.suspense_list"),O=Symbol.for("react.memo"),A=Symbol.for("react.lazy"),R=Symbol.for("react.offscreen"),N=!1,L=!1,D=!1,_=!1,U=!1,B;B=Symbol.for("react.module.reference");function k(Le){return!!(typeof Le=="string"||typeof Le=="function"||Le===r||Le===f||U||Le===s||Le===C||Le===j||_||Le===R||N||L||D||typeof Le=="object"&&Le!==null&&(Le.$$typeof===A||Le.$$typeof===O||Le.$$typeof===p||Le.$$typeof===y||Le.$$typeof===T||Le.$$typeof===B||Le.getModuleId!==void 0))}function G(Le){if(typeof Le=="object"&&Le!==null){var ft=Le.$$typeof;switch(ft){case n:var $e=Le.type;switch($e){case r:case f:case s:case C:case j:return $e;default:var Xe=$e&&$e.$$typeof;switch(Xe){case S:case y:case T:case A:case O:case p:return Xe;default:return ft}}case i:return ft}}}var Y=y,P=p,Q=n,ue=T,V=r,F=A,te=O,ae=i,ge=f,He=s,X=C,ie=j,me=!1,fe=!1;function ne(Le){return me||(me=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function ee(Le){return fe||(fe=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function Se(Le){return G(Le)===y}function Ae(Le){return G(Le)===p}function De(Le){return typeof Le=="object"&&Le!==null&&Le.$$typeof===n}function Ue(Le){return G(Le)===T}function Ve(Le){return G(Le)===r}function Pe(Le){return G(Le)===A}function Ie(Le){return G(Le)===O}function nt(Le){return G(Le)===i}function ut(Le){return G(Le)===f}function ze(Le){return G(Le)===s}function Ye(Le){return G(Le)===C}function Rt(Le){return G(Le)===j}On.ContextConsumer=Y,On.ContextProvider=P,On.Element=Q,On.ForwardRef=ue,On.Fragment=V,On.Lazy=F,On.Memo=te,On.Portal=ae,On.Profiler=ge,On.StrictMode=He,On.Suspense=X,On.SuspenseList=ie,On.isAsyncMode=ne,On.isConcurrentMode=ee,On.isContextConsumer=Se,On.isContextProvider=Ae,On.isElement=De,On.isForwardRef=Ue,On.isFragment=Ve,On.isLazy=Pe,On.isMemo=Ie,On.isPortal=nt,On.isProfiler=ut,On.isStrictMode=ze,On.isSuspense=Ye,On.isSuspenseList=Rt,On.isValidElementType=k,On.typeOf=G})()),On}var Hw;function u3(){return Hw||(Hw=1,process.env.NODE_ENV==="production"?Yv.exports=s3():Yv.exports=c3()),Yv.exports}var IE=u3();const f3=Symbol.for("react.element"),d3=Symbol.for("react.transitional.element"),h3=Symbol.for("react.fragment");function Uw(n){return n&&typeof n=="object"&&(n.$$typeof===f3||n.$$typeof===d3)&&n.type===h3}const m3=Number(H.version.split(".")[0]),p3=(n,i)=>{typeof n=="function"?n(i):typeof n=="object"&&n&&"current"in n&&(n.current=i)},ym=(...n)=>{const i=n.filter(Boolean);return i.length<=1?i[0]:r=>{n.forEach(s=>{p3(s,r)})}},bm=(...n)=>kE(()=>ym(...n),n,(i,r)=>i.length!==r.length||i.every((s,f)=>s!==r[f])),Xv=n=>{var r,s;if(!n)return!1;if(GE(n)&&m3>=19)return!0;const i=IE.isMemo(n)?n.type.type:n.type;return!(typeof i=="function"&&!((r=i.prototype)!=null&&r.render)&&i.$$typeof!==IE.ForwardRef||typeof n=="function"&&!((s=n.prototype)!=null&&s.render)&&n.$$typeof!==IE.ForwardRef)};function GE(n){return H.isValidElement(n)&&!Uw(n)}const g3=n=>GE(n)&&Xv(n),uy=n=>{if(n&&GE(n)){const i=n;return i.props.propertyIsEnumerable("ref")?i.props.ref:i.ref}return null};function YE(n,i){if(!n)return!1;if(n.contains)return n.contains(i);let r=i;for(;r;){if(r===n)return!0;r=r.parentNode}return!1}const Lw="data-rc-order",qw="data-rc-priority",y3="rc-util-key",XE=new Map;function Vw({mark:n}={}){return n?n.startsWith("data-")?n:`data-${n}`:y3}function Pv(n){return n.attachTo?n.attachTo:document.querySelector("head")||document.body}function b3(n){return n==="queue"?"prependQueue":n?"prepend":"append"}function PE(n){return Array.from((XE.get(n)||n).children).filter(i=>i.tagName==="STYLE")}function Fw(n,i={}){if(!Bo())return null;const{csp:r,prepend:s,priority:f=0}=i,p=b3(s),y=p==="prependQueue",S=document.createElement("style");S.setAttribute(Lw,p),y&&f&&S.setAttribute(qw,`${f}`),r!=null&&r.nonce&&(S.nonce=r==null?void 0:r.nonce),S.innerHTML=n;const T=Pv(i),{firstChild:C}=T;if(s){if(y){const j=(i.styles||PE(T)).filter(O=>{if(!["prepend","prependQueue"].includes(O.getAttribute(Lw)))return!1;const A=Number(O.getAttribute(qw)||0);return f>=A});if(j.length)return T.insertBefore(S,j[j.length-1].nextSibling),S}T.insertBefore(S,C)}else T.appendChild(S);return S}function kw(n,i={}){let{styles:r}=i;return r||(r=PE(Pv(i))),r.find(s=>s.getAttribute(Vw(i))===n)}function fy(n,i={}){const r=kw(n,i);r&&Pv(i).removeChild(r)}function v3(n,i){const r=XE.get(n);if(!r||!YE(document,r)){const s=Fw("",i),{parentNode:f}=s;XE.set(n,f),n.removeChild(s)}}function ju(n,i,r={}){var T,C,j;const s=Pv(r),f=PE(s),p={...r,styles:f};v3(s,p);const y=kw(i,p);if(y)return(T=p.csp)!=null&&T.nonce&&y.nonce!==((C=p.csp)==null?void 0:C.nonce)&&(y.nonce=(j=p.csp)==null?void 0:j.nonce),y.innerHTML!==n&&(y.innerHTML=n),y;const S=Fw(n,p);return S.setAttribute(Vw(p),i),S}function vm(n){return n instanceof HTMLElement||n instanceof SVGElement}function QE(n){return n&&typeof n=="object"&&vm(n.nativeElement)?n.nativeElement:vm(n)?n:null}const ZE=(n=>{if(!n)return!1;if(n instanceof Element){if(n.offsetParent)return!0;if(n.getBBox){const{width:i,height:r}=n.getBBox();if(i||r)return!0}if(n.getBoundingClientRect){const{width:i,height:r}=n.getBoundingClientRect();if(i||r)return!0}}return!1});function Iw(n,i=!1){if(ZE(n)){const r=n.nodeName.toLowerCase(),s=["input","select","textarea","button"].includes(r)||n.isContentEditable||r==="a"&&!!n.getAttribute("href"),f=n.getAttribute("tabindex"),p=Number(f);let y=null;return f&&!Number.isNaN(p)?y=p:s&&y===null&&(y=0),s&&n.disabled&&(y=null),y!==null&&(y>=0||i&&y<0)}return!1}function Gw(n,i=!1){const r=[...n.querySelectorAll("*")].filter(s=>Iw(s,i));return Iw(n,i)&&r.unshift(n),r}let Sm=null,Au=[];const JE=new Map,KE=new Map;function WE(){return Au[Au.length-1]}function S3(n){const i=WE();if(n&&i){let r;for(const[f,p]of JE.entries())if(p===i){r=f;break}const s=KE.get(r);return!!s&&(s===n||s.contains(n))}return!1}function x3(n){const{activeElement:i}=document;return n===i||n.contains(i)}function eC(){const n=WE(),{activeElement:i}=document;if(!S3(i))if(n&&!x3(n)){const r=Gw(n),s=r.includes(Sm)?Sm:r[0];s==null||s.focus({preventScroll:!0})}else Sm=i}function Yw(n){if(n.key==="Tab"){const{activeElement:i}=document,r=WE(),s=Gw(r),f=s[s.length-1];n.shiftKey&&i===s[0]?Sm=f:!n.shiftKey&&i===f&&(Sm=s[0])}}function E3(n,i){return n&&(JE.set(i,n),Au=Au.filter(r=>r!==n),Au.push(n),window.addEventListener("focusin",eC),window.addEventListener("keydown",Yw,!0),eC()),()=>{Sm=null,Au=Au.filter(r=>r!==n),JE.delete(i),KE.delete(i),Au.length===0&&(window.removeEventListener("focusin",eC),window.removeEventListener("keydown",Yw,!0))}}function C3(n,i){const r=H.useRef(0),[s,f]=H.useState(0);H.useEffect(()=>{r.current=0},i),H.useEffect(()=>{const[p,y]=n(r.current);return y||(r.current+=1,f(S=>S+1)),p},[...i,s])}function T3(n,i){const r=Gv(),s=H.useRef(i);return s.current=i,C3(y=>{if(!n)return[void 0,!0];const S=s.current();return S?[E3(S,r),!0]:[void 0,y>=1]},[r,n]),[y=>{y&&KE.set(r,y)}]}function Xw(n){var i;return(i=n==null?void 0:n.getRootNode)==null?void 0:i.call(n)}function O3(n){return Xw(n)instanceof ShadowRoot}function Qv(n){return O3(n)?Xw(n):null}function w3(n){const i=`rc-scrollbar-measure-${Math.random().toString(36).substring(7)}`,r=document.createElement("div");r.id=i;const s=r.style;s.position="absolute",s.left="0",s.top="0",s.width="100px",s.height="100px",s.overflow="scroll";let f,p;if(n){const T=getComputedStyle(n);s.scrollbarColor=T.scrollbarColor,s.scrollbarWidth=T.scrollbarWidth;const C=getComputedStyle(n,"::-webkit-scrollbar"),j=parseInt(C.width,10),O=parseInt(C.height,10);try{const A=j?`width: ${C.width};`:"",R=O?`height: ${C.height};`:"";ju(`
48
- #${i}::-webkit-scrollbar {
49
- ${A}
50
- ${R}
51
- }`,i)}catch(A){console.error(A),f=j,p=O}}document.body.appendChild(r);const y=n&&f&&!Number.isNaN(f)?f:r.offsetWidth-r.clientWidth,S=n&&p&&!Number.isNaN(p)?p:r.offsetHeight-r.clientHeight;return document.body.removeChild(r),fy(i),{width:y,height:S}}function j3(n){return typeof document>"u"||!n||!(n instanceof Element)?{width:0,height:0}:w3(n)}let tC={};const nC=[],A3=n=>{nC.push(n)};function xm(n,i){if(process.env.NODE_ENV!=="production"&&!n&&console!==void 0){const r=nC.reduce((s,f)=>f(s??"","warning"),i);r&&console.error(`Warning: ${r}`)}}function M3(n,i){if(process.env.NODE_ENV!=="production"&&!n&&console!==void 0){const r=nC.reduce((s,f)=>f(s??"","note"),i);r&&console.warn(`Note: ${r}`)}}function z3(){tC={}}function Pw(n,i,r){!i&&!tC[r]&&(n(!1,r),tC[r]=!0)}function ll(n,i){Pw(xm,n,i)}function D3(n,i){Pw(M3,n,i)}ll.preMessage=A3,ll.resetWarned=z3,ll.noteOnce=D3;function lC(n,i,r=!1){const s=new Set;function f(p,y,S=1){const T=s.has(p);if(ll(!T,"Warning: There may be circular references"),T)return!1;if(p===y)return!0;if(r&&S>1)return!1;s.add(p);const C=S+1;if(Array.isArray(p)){if(!Array.isArray(y)||p.length!==y.length)return!1;for(let j=0;j<p.length;j++)if(!f(p[j],y[j],C))return!1;return!0}if(p&&y&&typeof p=="object"&&typeof y=="object"){const j=Object.keys(p);return j.length!==Object.keys(y).length?!1:j.every(O=>f(p[O],y[O],C))}return!1}return f(n,i)}var dy={exports:{}},Qw;function R3(){if(Qw)return dy.exports;Qw=1,dy.exports=s,dy.exports.isMobile=s,dy.exports.default=s;const n=/(android|bb\d+|meego).+mobile|armv7l|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|redmi|series[46]0|samsungbrowser.*mobile|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,i=/CrOS/,r=/android|ipad|playbook|silk/i;function s(f){f||(f={});let p=f.ua;if(!p&&typeof navigator<"u"&&(p=navigator.userAgent),p&&p.headers&&typeof p.headers["user-agent"]=="string"&&(p=p.headers["user-agent"]),typeof p!="string")return!1;let y=n.test(p)&&!i.test(p)||!!f.tablet&&r.test(p);return!y&&f.tablet&&f.featureDetect&&navigator&&navigator.maxTouchPoints>1&&p.indexOf("Macintosh")!==-1&&p.indexOf("Safari")!==-1&&(y=!0),y}return dy.exports}R3();function N3(n,i){const r=Object.assign({},n);return Array.isArray(i)&&i.forEach(s=>{delete r[s]}),r}const _3=`accept acceptCharset accessKey action allowFullScreen allowTransparency
52
- alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
53
- charSet checked classID className colSpan cols content contentEditable contextMenu
54
- controls coords crossOrigin data dateTime default defer dir disabled download draggable
55
- encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
56
- headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
57
- is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
58
- mediaGroup method min minLength multiple muted name noValidate nonce open
59
- optimum pattern placeholder poster preload radioGroup readOnly rel required
60
- reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
61
- shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
62
- summary tabIndex target title type useMap value width wmode wrap onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
63
- onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
64
- onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
65
- onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
66
- onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
67
- onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
68
- onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`.split(/[\s\n]+/),$3="aria-",B3="data-";function Zw(n,i){return n.indexOf(i)===0}function Zv(n,i=!1){let r;i===!1?r={aria:!0,data:!0,attr:!0}:i===!0?r={aria:!0}:r={...i};const s={};return Object.keys(n).forEach(f=>{(r.aria&&(f==="role"||Zw(f,$3))||r.data&&Zw(f,B3)||r.attr&&_3.includes(f))&&(s[f]=n[f])}),s}let Jw=n=>+setTimeout(n,16),Kw=n=>clearTimeout(n);typeof window<"u"&&"requestAnimationFrame"in window&&(Jw=n=>window.requestAnimationFrame(n),Kw=n=>window.cancelAnimationFrame(n));let Ww=0;const Jv=new Map;function ej(n){Jv.delete(n)}const ki=(n,i=1)=>{Ww+=1;const r=Ww;function s(f){if(f===0)ej(r),n();else{const p=Jw(()=>{s(f-1)});Jv.set(r,p)}}return s(i),r};ki.cancel=n=>{const i=Jv.get(n);return ej(n),Kw(i)},process.env.NODE_ENV!=="production"&&(ki.ids=()=>Jv);function hy(n,i={}){let r=[];return H.Children.forEach(n,s=>{s==null&&!i.keepEmpty||(Array.isArray(s)?r=r.concat(hy(s)):Uw(s)&&s.props?r=r.concat(hy(s.props.children,i)):r.push(s))}),r}function tj(...n){const i={};for(const r of n)if(r)for(const s of Object.keys(r))r[s]!==void 0&&(i[s]=r[s]);return i}function Ii(n,i){let r=n;for(let s=0;s<i.length;s+=1){if(r==null)return;r=r[i[s]]}return r}function nj(n,i,r,s){if(!i.length)return r;const[f,...p]=i;let y;return!n&&typeof f=="number"?y=[]:Array.isArray(n)?y=[...n]:y={...n},s&&r===void 0&&p.length===1?delete y[f][p[0]]:y[f]=nj(y[f],p,r,s),y}function ii(n,i,r,s=!1){return i.length&&s&&r===void 0&&!Ii(n,i.slice(0,-1))?n:nj(n,i,r,s)}function H3(n){return typeof n=="object"&&n!==null&&Object.getPrototypeOf(n)===Object.prototype}function lj(n){return Array.isArray(n)?[]:{}}const U3=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function L3(n,i={}){const{prepareArray:r}=i,s=r||(()=>[]);let f=lj(n[0]);return n.forEach(p=>{function y(S,T){const C=new Set(T),j=Ii(p,S),O=Array.isArray(j);if(O||H3(j)){if(!C.has(j)){C.add(j);const A=Ii(f,S);O?f=ii(f,S,s(A,j)):(!A||typeof A!="object")&&(f=ii(f,S,lj(j))),U3(j).forEach(R=>{Object.getOwnPropertyDescriptor(j,R).enumerable&&y([...S,R],C)})}}else f=ii(f,S,j)}y([])}),f}function Em(...n){return L3(n)}var Kv={exports:{}},my={},Wv={exports:{}},aC={};/**
69
- * @license React
70
- * scheduler.production.js
71
- *
72
- * Copyright (c) Meta Platforms, Inc. and affiliates.
73
- *
74
- * This source code is licensed under the MIT license found in the
75
- * LICENSE file in the root directory of this source tree.
76
- */var aj;function q3(){return aj||(aj=1,(function(n){function i(X,ie){var me=X.length;X.push(ie);e:for(;0<me;){var fe=me-1>>>1,ne=X[fe];if(0<f(ne,ie))X[fe]=ie,X[me]=ne,me=fe;else break e}}function r(X){return X.length===0?null:X[0]}function s(X){if(X.length===0)return null;var ie=X[0],me=X.pop();if(me!==ie){X[0]=me;e:for(var fe=0,ne=X.length,ee=ne>>>1;fe<ee;){var Se=2*(fe+1)-1,Ae=X[Se],De=Se+1,Ue=X[De];if(0>f(Ae,me))De<ne&&0>f(Ue,Ae)?(X[fe]=Ue,X[De]=me,fe=De):(X[fe]=Ae,X[Se]=me,fe=Se);else if(De<ne&&0>f(Ue,me))X[fe]=Ue,X[De]=me,fe=De;else break e}}return ie}function f(X,ie){var me=X.sortIndex-ie.sortIndex;return me!==0?me:X.id-ie.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var p=performance;n.unstable_now=function(){return p.now()}}else{var y=Date,S=y.now();n.unstable_now=function(){return y.now()-S}}var T=[],C=[],j=1,O=null,A=3,R=!1,N=!1,L=!1,D=!1,_=typeof setTimeout=="function"?setTimeout:null,U=typeof clearTimeout=="function"?clearTimeout:null,B=typeof setImmediate<"u"?setImmediate:null;function k(X){for(var ie=r(C);ie!==null;){if(ie.callback===null)s(C);else if(ie.startTime<=X)s(C),ie.sortIndex=ie.expirationTime,i(T,ie);else break;ie=r(C)}}function G(X){if(L=!1,k(X),!N)if(r(T)!==null)N=!0,Y||(Y=!0,te());else{var ie=r(C);ie!==null&&He(G,ie.startTime-X)}}var Y=!1,P=-1,Q=5,ue=-1;function V(){return D?!0:!(n.unstable_now()-ue<Q)}function F(){if(D=!1,Y){var X=n.unstable_now();ue=X;var ie=!0;try{e:{N=!1,L&&(L=!1,U(P),P=-1),R=!0;var me=A;try{t:{for(k(X),O=r(T);O!==null&&!(O.expirationTime>X&&V());){var fe=O.callback;if(typeof fe=="function"){O.callback=null,A=O.priorityLevel;var ne=fe(O.expirationTime<=X);if(X=n.unstable_now(),typeof ne=="function"){O.callback=ne,k(X),ie=!0;break t}O===r(T)&&s(T),k(X)}else s(T);O=r(T)}if(O!==null)ie=!0;else{var ee=r(C);ee!==null&&He(G,ee.startTime-X),ie=!1}}break e}finally{O=null,A=me,R=!1}ie=void 0}}finally{ie?te():Y=!1}}}var te;if(typeof B=="function")te=function(){B(F)};else if(typeof MessageChannel<"u"){var ae=new MessageChannel,ge=ae.port2;ae.port1.onmessage=F,te=function(){ge.postMessage(null)}}else te=function(){_(F,0)};function He(X,ie){P=_(function(){X(n.unstable_now())},ie)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(X){X.callback=null},n.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"):Q=0<X?Math.floor(1e3/X):5},n.unstable_getCurrentPriorityLevel=function(){return A},n.unstable_next=function(X){switch(A){case 1:case 2:case 3:var ie=3;break;default:ie=A}var me=A;A=ie;try{return X()}finally{A=me}},n.unstable_requestPaint=function(){D=!0},n.unstable_runWithPriority=function(X,ie){switch(X){case 1:case 2:case 3:case 4:case 5:break;default:X=3}var me=A;A=X;try{return ie()}finally{A=me}},n.unstable_scheduleCallback=function(X,ie,me){var fe=n.unstable_now();switch(typeof me=="object"&&me!==null?(me=me.delay,me=typeof me=="number"&&0<me?fe+me:fe):me=fe,X){case 1:var ne=-1;break;case 2:ne=250;break;case 5:ne=1073741823;break;case 4:ne=1e4;break;default:ne=5e3}return ne=me+ne,X={id:j++,callback:ie,priorityLevel:X,startTime:me,expirationTime:ne,sortIndex:-1},me>fe?(X.sortIndex=me,i(C,X),r(T)===null&&X===r(C)&&(L?(U(P),P=-1):L=!0,He(G,me-fe))):(X.sortIndex=ne,i(T,X),N||R||(N=!0,Y||(Y=!0,te()))),X},n.unstable_shouldYield=V,n.unstable_wrapCallback=function(X){var ie=A;return function(){var me=A;A=ie;try{return X.apply(this,arguments)}finally{A=me}}}})(aC)),aC}var oC={};/**
77
- * @license React
78
- * scheduler.development.js
79
- *
80
- * Copyright (c) Meta Platforms, Inc. and affiliates.
81
- *
82
- * This source code is licensed under the MIT license found in the
83
- * LICENSE file in the root directory of this source tree.
84
- */var oj;function V3(){return oj||(oj=1,(function(n){process.env.NODE_ENV!=="production"&&(function(){function i(){if(G=!1,ue){var X=n.unstable_now();te=X;var ie=!0;try{e:{B=!1,k&&(k=!1,P(V),V=-1),U=!0;var me=_;try{t:{for(y(X),D=s(R);D!==null&&!(D.expirationTime>X&&T());){var fe=D.callback;if(typeof fe=="function"){D.callback=null,_=D.priorityLevel;var ne=fe(D.expirationTime<=X);if(X=n.unstable_now(),typeof ne=="function"){D.callback=ne,y(X),ie=!0;break t}D===s(R)&&f(R),y(X)}else f(R);D=s(R)}if(D!==null)ie=!0;else{var ee=s(N);ee!==null&&C(S,ee.startTime-X),ie=!1}}break e}finally{D=null,_=me,U=!1}ie=void 0}}finally{ie?ae():ue=!1}}}function r(X,ie){var me=X.length;X.push(ie);e:for(;0<me;){var fe=me-1>>>1,ne=X[fe];if(0<p(ne,ie))X[fe]=ie,X[me]=ne,me=fe;else break e}}function s(X){return X.length===0?null:X[0]}function f(X){if(X.length===0)return null;var ie=X[0],me=X.pop();if(me!==ie){X[0]=me;e:for(var fe=0,ne=X.length,ee=ne>>>1;fe<ee;){var Se=2*(fe+1)-1,Ae=X[Se],De=Se+1,Ue=X[De];if(0>p(Ae,me))De<ne&&0>p(Ue,Ae)?(X[fe]=Ue,X[De]=me,fe=De):(X[fe]=Ae,X[Se]=me,fe=Se);else if(De<ne&&0>p(Ue,me))X[fe]=Ue,X[De]=me,fe=De;else break e}}return ie}function p(X,ie){var me=X.sortIndex-ie.sortIndex;return me!==0?me:X.id-ie.id}function y(X){for(var ie=s(N);ie!==null;){if(ie.callback===null)f(N);else if(ie.startTime<=X)f(N),ie.sortIndex=ie.expirationTime,r(R,ie);else break;ie=s(N)}}function S(X){if(k=!1,y(X),!B)if(s(R)!==null)B=!0,ue||(ue=!0,ae());else{var ie=s(N);ie!==null&&C(S,ie.startTime-X)}}function T(){return G?!0:!(n.unstable_now()-te<F)}function C(X,ie){V=Y(function(){X(n.unstable_now())},ie)}if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error()),n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var j=performance;n.unstable_now=function(){return j.now()}}else{var O=Date,A=O.now();n.unstable_now=function(){return O.now()-A}}var R=[],N=[],L=1,D=null,_=3,U=!1,B=!1,k=!1,G=!1,Y=typeof setTimeout=="function"?setTimeout:null,P=typeof clearTimeout=="function"?clearTimeout:null,Q=typeof setImmediate<"u"?setImmediate:null,ue=!1,V=-1,F=5,te=-1;if(typeof Q=="function")var ae=function(){Q(i)};else if(typeof MessageChannel<"u"){var ge=new MessageChannel,He=ge.port2;ge.port1.onmessage=i,ae=function(){He.postMessage(null)}}else ae=function(){Y(i,0)};n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(X){X.callback=null},n.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"):F=0<X?Math.floor(1e3/X):5},n.unstable_getCurrentPriorityLevel=function(){return _},n.unstable_next=function(X){switch(_){case 1:case 2:case 3:var ie=3;break;default:ie=_}var me=_;_=ie;try{return X()}finally{_=me}},n.unstable_requestPaint=function(){G=!0},n.unstable_runWithPriority=function(X,ie){switch(X){case 1:case 2:case 3:case 4:case 5:break;default:X=3}var me=_;_=X;try{return ie()}finally{_=me}},n.unstable_scheduleCallback=function(X,ie,me){var fe=n.unstable_now();switch(typeof me=="object"&&me!==null?(me=me.delay,me=typeof me=="number"&&0<me?fe+me:fe):me=fe,X){case 1:var ne=-1;break;case 2:ne=250;break;case 5:ne=1073741823;break;case 4:ne=1e4;break;default:ne=5e3}return ne=me+ne,X={id:L++,callback:ie,priorityLevel:X,startTime:me,expirationTime:ne,sortIndex:-1},me>fe?(X.sortIndex=me,r(N,X),s(R)===null&&X===s(N)&&(k?(P(V),V=-1):k=!0,C(S,me-fe))):(X.sortIndex=ne,r(R,X),B||U||(B=!0,ue||(ue=!0,ae()))),X},n.unstable_shouldYield=T,n.unstable_wrapCallback=function(X){var ie=_;return function(){var me=_;_=ie;try{return X.apply(this,arguments)}finally{_=me}}},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()})(oC)),oC}var ij;function rj(){return ij||(ij=1,process.env.NODE_ENV==="production"?Wv.exports=q3():Wv.exports=V3()),Wv.exports}/**
85
- * @license React
86
- * react-dom-client.production.js
87
- *
88
- * Copyright (c) Meta Platforms, Inc. and affiliates.
89
- *
90
- * This source code is licensed under the MIT license found in the
91
- * LICENSE file in the root directory of this source tree.
92
- */var sj;function F3(){if(sj)return my;sj=1;var n=rj(),i=H,r=ty;function s(l){var o="https://react.dev/errors/"+l;if(1<arguments.length){o+="?args[]="+encodeURIComponent(arguments[1]);for(var c=2;c<arguments.length;c++)o+="&args[]="+encodeURIComponent(arguments[c])}return"Minified React error #"+l+"; visit "+o+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function f(l){return!(!l||l.nodeType!==1&&l.nodeType!==9&&l.nodeType!==11)}function p(l){var o=l,c=l;if(l.alternate)for(;o.return;)o=o.return;else{l=o;do o=l,(o.flags&4098)!==0&&(c=o.return),l=o.return;while(l)}return o.tag===3?c:null}function y(l){if(l.tag===13){var o=l.memoizedState;if(o===null&&(l=l.alternate,l!==null&&(o=l.memoizedState)),o!==null)return o.dehydrated}return null}function S(l){if(l.tag===31){var o=l.memoizedState;if(o===null&&(l=l.alternate,l!==null&&(o=l.memoizedState)),o!==null)return o.dehydrated}return null}function T(l){if(p(l)!==l)throw Error(s(188))}function C(l){var o=l.alternate;if(!o){if(o=p(l),o===null)throw Error(s(188));return o!==l?null:l}for(var c=l,d=o;;){var v=c.return;if(v===null)break;var x=v.alternate;if(x===null){if(d=v.return,d!==null){c=d;continue}break}if(v.child===x.child){for(x=v.child;x;){if(x===c)return T(v),l;if(x===d)return T(v),o;x=x.sibling}throw Error(s(188))}if(c.return!==d.return)c=v,d=x;else{for(var M=!1,I=v.child;I;){if(I===c){M=!0,c=v,d=x;break}if(I===d){M=!0,d=v,c=x;break}I=I.sibling}if(!M){for(I=x.child;I;){if(I===c){M=!0,c=x,d=v;break}if(I===d){M=!0,d=x,c=v;break}I=I.sibling}if(!M)throw Error(s(189))}}if(c.alternate!==d)throw Error(s(190))}if(c.tag!==3)throw Error(s(188));return c.stateNode.current===c?l:o}function j(l){var o=l.tag;if(o===5||o===26||o===27||o===6)return l;for(l=l.child;l!==null;){if(o=j(l),o!==null)return o;l=l.sibling}return null}var O=Object.assign,A=Symbol.for("react.element"),R=Symbol.for("react.transitional.element"),N=Symbol.for("react.portal"),L=Symbol.for("react.fragment"),D=Symbol.for("react.strict_mode"),_=Symbol.for("react.profiler"),U=Symbol.for("react.consumer"),B=Symbol.for("react.context"),k=Symbol.for("react.forward_ref"),G=Symbol.for("react.suspense"),Y=Symbol.for("react.suspense_list"),P=Symbol.for("react.memo"),Q=Symbol.for("react.lazy"),ue=Symbol.for("react.activity"),V=Symbol.for("react.memo_cache_sentinel"),F=Symbol.iterator;function te(l){return l===null||typeof l!="object"?null:(l=F&&l[F]||l["@@iterator"],typeof l=="function"?l:null)}var ae=Symbol.for("react.client.reference");function ge(l){if(l==null)return null;if(typeof l=="function")return l.$$typeof===ae?null:l.displayName||l.name||null;if(typeof l=="string")return l;switch(l){case L:return"Fragment";case _:return"Profiler";case D:return"StrictMode";case G:return"Suspense";case Y:return"SuspenseList";case ue:return"Activity"}if(typeof l=="object")switch(l.$$typeof){case N:return"Portal";case B:return l.displayName||"Context";case U:return(l._context.displayName||"Context")+".Consumer";case k:var o=l.render;return l=l.displayName,l||(l=o.displayName||o.name||"",l=l!==""?"ForwardRef("+l+")":"ForwardRef"),l;case P:return o=l.displayName||null,o!==null?o:ge(l.type)||"Memo";case Q:o=l._payload,l=l._init;try{return ge(l(o))}catch{}}return null}var He=Array.isArray,X=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ie=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,me={pending:!1,data:null,method:null,action:null},fe=[],ne=-1;function ee(l){return{current:l}}function Se(l){0>ne||(l.current=fe[ne],fe[ne]=null,ne--)}function Ae(l,o){ne++,fe[ne]=l.current,l.current=o}var De=ee(null),Ue=ee(null),Ve=ee(null),Pe=ee(null);function Ie(l,o){switch(Ae(Ve,o),Ae(Ue,l),Ae(De,null),o.nodeType){case 9:case 11:l=(l=o.documentElement)&&(l=l.namespaceURI)?y1(l):0;break;default:if(l=o.tagName,o=o.namespaceURI)o=y1(o),l=jb(o,l);else switch(l){case"svg":l=1;break;case"math":l=2;break;default:l=0}}Se(De),Ae(De,l)}function nt(){Se(De),Se(Ue),Se(Ve)}function ut(l){l.memoizedState!==null&&Ae(Pe,l);var o=De.current,c=jb(o,l.type);o!==c&&(Ae(Ue,l),Ae(De,c))}function ze(l){Ue.current===l&&(Se(De),Se(Ue)),Pe.current===l&&(Se(Pe),Uh._currentValue=me)}var Ye,Rt;function Le(l){if(Ye===void 0)try{throw Error()}catch(c){var o=c.stack.trim().match(/\n( *(at )?)/);Ye=o&&o[1]||"",Rt=-1<c.stack.indexOf(`
93
- at`)?" (<anonymous>)":-1<c.stack.indexOf("@")?"@unknown:0:0":""}return`
94
- `+Ye+l+Rt}var ft=!1;function $e(l,o){if(!l||ft)return"";ft=!0;var c=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var d={DetermineComponentFrameRoot:function(){try{if(o){var Ne=function(){throw Error()};if(Object.defineProperty(Ne.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Ne,[])}catch(Te){var ve=Te}Reflect.construct(l,[],Ne)}else{try{Ne.call()}catch(Te){ve=Te}l.call(Ne.prototype)}}else{try{throw Error()}catch(Te){ve=Te}(Ne=l())&&typeof Ne.catch=="function"&&Ne.catch(function(){})}}catch(Te){if(Te&&ve&&typeof Te.stack=="string")return[Te.stack,ve.stack]}return[null,null]}};d.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var v=Object.getOwnPropertyDescriptor(d.DetermineComponentFrameRoot,"name");v&&v.configurable&&Object.defineProperty(d.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var x=d.DetermineComponentFrameRoot(),M=x[0],I=x[1];if(M&&I){var W=M.split(`
95
- `),be=I.split(`
96
- `);for(v=d=0;d<W.length&&!W[d].includes("DetermineComponentFrameRoot");)d++;for(;v<be.length&&!be[v].includes("DetermineComponentFrameRoot");)v++;if(d===W.length||v===be.length)for(d=W.length-1,v=be.length-1;1<=d&&0<=v&&W[d]!==be[v];)v--;for(;1<=d&&0<=v;d--,v--)if(W[d]!==be[v]){if(d!==1||v!==1)do if(d--,v--,0>v||W[d]!==be[v]){var je=`
97
- `+W[d].replace(" at new "," at ");return l.displayName&&je.includes("<anonymous>")&&(je=je.replace("<anonymous>",l.displayName)),je}while(1<=d&&0<=v);break}}}finally{ft=!1,Error.prepareStackTrace=c}return(c=l?l.displayName||l.name:"")?Le(c):""}function Xe(l,o){switch(l.tag){case 26:case 27:case 5:return Le(l.type);case 16:return Le("Lazy");case 13:return l.child!==o&&o!==null?Le("Suspense Fallback"):Le("Suspense");case 19:return Le("SuspenseList");case 0:case 15:return $e(l.type,!1);case 11:return $e(l.type.render,!1);case 1:return $e(l.type,!0);case 31:return Le("Activity");default:return""}}function dt(l){try{var o="",c=null;do o+=Xe(l,c),c=l,l=l.return;while(l);return o}catch(d){return`
98
- Error generating stack: `+d.message+`
99
- `+d.stack}}var Ct=Object.prototype.hasOwnProperty,pe=n.unstable_scheduleCallback,Be=n.unstable_cancelCallback,Ke=n.unstable_shouldYield,rt=n.unstable_requestPaint,wt=n.unstable_now,yt=n.unstable_getCurrentPriorityLevel,Rn=n.unstable_ImmediatePriority,Oe=n.unstable_UserBlockingPriority,Fe=n.unstable_NormalPriority,Ht=n.unstable_LowPriority,it=n.unstable_IdlePriority,Sl=n.log,Pt=n.unstable_setDisableYieldValue,ul=null,Bn=null;function En(l){if(typeof Sl=="function"&&Pt(l),Bn&&typeof Bn.setStrictMode=="function")try{Bn.setStrictMode(ul,l)}catch{}}var jt=Math.clz32?Math.clz32:Nn,nn=Math.log,At=Math.LN2;function Nn(l){return l>>>=0,l===0?32:31-(nn(l)/At|0)|0}var gn=256,Jt=262144,Hn=4194304;function on(l){var o=l&42;if(o!==0)return o;switch(l&-l){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return l&261888;case 262144:case 524288:case 1048576:case 2097152:return l&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return l&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return l}}function rn(l,o,c){var d=l.pendingLanes;if(d===0)return 0;var v=0,x=l.suspendedLanes,M=l.pingedLanes;l=l.warmLanes;var I=d&134217727;return I!==0?(d=I&~x,d!==0?v=on(d):(M&=I,M!==0?v=on(M):c||(c=I&~l,c!==0&&(v=on(c))))):(I=d&~x,I!==0?v=on(I):M!==0?v=on(M):c||(c=d&~l,c!==0&&(v=on(c)))),v===0?0:o!==0&&o!==v&&(o&x)===0&&(x=v&-v,c=o&-o,x>=c||x===32&&(c&4194048)!==0)?o:v}function fl(l,o){return(l.pendingLanes&~(l.suspendedLanes&~l.pingedLanes)&o)===0}function Ut(l,o){switch(l){case 1:case 2:case 4:case 8:case 64:return o+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 o+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 Gl(){var l=Hn;return Hn<<=1,(Hn&62914560)===0&&(Hn=4194304),l}function ui(l){for(var o=[],c=0;31>c;c++)o.push(l);return o}function uo(l,o){l.pendingLanes|=o,o!==268435456&&(l.suspendedLanes=0,l.pingedLanes=0,l.warmLanes=0)}function fi(l,o,c,d,v,x){var M=l.pendingLanes;l.pendingLanes=c,l.suspendedLanes=0,l.pingedLanes=0,l.warmLanes=0,l.expiredLanes&=c,l.entangledLanes&=c,l.errorRecoveryDisabledLanes&=c,l.shellSuspendCounter=0;var I=l.entanglements,W=l.expirationTimes,be=l.hiddenUpdates;for(c=M&~c;0<c;){var je=31-jt(c),Ne=1<<je;I[je]=0,W[je]=-1;var ve=be[je];if(ve!==null)for(be[je]=null,je=0;je<ve.length;je++){var Te=ve[je];Te!==null&&(Te.lane&=-536870913)}c&=~Ne}d!==0&&qo(l,d,0),x!==0&&v===0&&l.tag!==0&&(l.suspendedLanes|=x&~(M&~o))}function qo(l,o,c){l.pendingLanes|=o,l.suspendedLanes&=~o;var d=31-jt(o);l.entangledLanes|=o,l.entanglements[d]=l.entanglements[d]|1073741824|c&261930}function zl(l,o){var c=l.entangledLanes|=o;for(l=l.entanglements;c;){var d=31-jt(c),v=1<<d;v&o|l[d]&o&&(l[d]|=o),c&=~v}}function dl(l,o){var c=o&-o;return c=(c&42)!==0?1:Za(c),(c&(l.suspendedLanes|o))!==0?0:c}function Za(l){switch(l){case 2:l=1;break;case 8:l=4;break;case 32:l=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:l=128;break;case 268435456:l=134217728;break;default:l=0}return l}function Vo(l){return l&=-l,2<l?8<l?(l&134217727)!==0?32:268435456:8:2}function ba(){var l=ie.p;return l!==0?l:(l=window.event,l===void 0?32:Lh(l.type))}function fo(l,o){var c=ie.p;try{return ie.p=l,o()}finally{ie.p=c}}var In=Math.random().toString(36).slice(2),Mt="__reactFiber$"+In,Un="__reactProps$"+In,ol="__reactContainer$"+In,Xn="__reactEvents$"+In,Ma="__reactListeners$"+In,Fr="__reactHandles$"+In,di="__reactResources$"+In,ln="__reactMarker$"+In;function Fo(l){delete l[Mt],delete l[Un],delete l[Xn],delete l[Ma],delete l[Fr]}function ho(l){var o=l[Mt];if(o)return o;for(var c=l.parentNode;c;){if(o=c[ol]||c[Mt]){if(c=o.alternate,o.child!==null||c!==null&&c.child!==null)for(l=_i(l);l!==null;){if(c=l[Mt])return c;l=_i(l)}return o}l=c,c=l.parentNode}return null}function Gt(l){if(l=l[Mt]||l[ol]){var o=l.tag;if(o===5||o===6||o===13||o===31||o===26||o===27||o===3)return l}return null}function Pn(l){var o=l.tag;if(o===5||o===26||o===27||o===6)return l.stateNode;throw Error(s(33))}function xl(l){var o=l[di];return o||(o=l[di]={hoistableStyles:new Map,hoistableScripts:new Map}),o}function Tt(l){l[ln]=!0}var Dl=new Set,va={};function Yl(l,o){Bl(l,o),Bl(l+"Capture",o)}function Bl(l,o){for(va[l]=o,l=0;l<o.length;l++)Dl.add(o[l])}var kr=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]*$"),Xi={},hl={};function Ja(l){return Ct.call(hl,l)?!0:Ct.call(Xi,l)?!1:kr.test(l)?hl[l]=!0:(Xi[l]=!0,!1)}function hi(l,o,c){if(Ja(o))if(c===null)l.removeAttribute(o);else{switch(typeof c){case"undefined":case"function":case"symbol":l.removeAttribute(o);return;case"boolean":var d=o.toLowerCase().slice(0,5);if(d!=="data-"&&d!=="aria-"){l.removeAttribute(o);return}}l.setAttribute(o,""+c)}}function mt(l,o,c){if(c===null)l.removeAttribute(o);else{switch(typeof c){case"undefined":case"function":case"symbol":case"boolean":l.removeAttribute(o);return}l.setAttribute(o,""+c)}}function wn(l,o,c,d){if(d===null)l.removeAttribute(c);else{switch(typeof d){case"undefined":case"function":case"symbol":case"boolean":l.removeAttribute(c);return}l.setAttributeNS(o,c,""+d)}}function dn(l){switch(typeof l){case"bigint":case"boolean":case"number":case"string":case"undefined":return l;case"object":return l;default:return""}}function Pi(l){var o=l.type;return(l=l.nodeName)&&l.toLowerCase()==="input"&&(o==="checkbox"||o==="radio")}function Sc(l,o,c){var d=Object.getOwnPropertyDescriptor(l.constructor.prototype,o);if(!l.hasOwnProperty(o)&&typeof d<"u"&&typeof d.get=="function"&&typeof d.set=="function"){var v=d.get,x=d.set;return Object.defineProperty(l,o,{configurable:!0,get:function(){return v.call(this)},set:function(M){c=""+M,x.call(this,M)}}),Object.defineProperty(l,o,{enumerable:d.enumerable}),{getValue:function(){return c},setValue:function(M){c=""+M},stopTracking:function(){l._valueTracker=null,delete l[o]}}}}function Os(l){if(!l._valueTracker){var o=Pi(l)?"checked":"value";l._valueTracker=Sc(l,o,""+l[o])}}function xc(l){if(!l)return!1;var o=l._valueTracker;if(!o)return!0;var c=o.getValue(),d="";return l&&(d=Pi(l)?l.checked?"true":"false":l.value),l=d,l!==c?(o.setValue(l),!0):!1}function Ir(l){if(l=l||(typeof document<"u"?document:void 0),typeof l>"u")return null;try{return l.activeElement||l.body}catch{return l.body}}var Qe=/[\n"\\]/g;function st(l){return l.replace(Qe,function(o){return"\\"+o.charCodeAt(0).toString(16)+" "})}function Qn(l,o,c,d,v,x,M,I){l.name="",M!=null&&typeof M!="function"&&typeof M!="symbol"&&typeof M!="boolean"?l.type=M:l.removeAttribute("type"),o!=null?M==="number"?(o===0&&l.value===""||l.value!=o)&&(l.value=""+dn(o)):l.value!==""+dn(o)&&(l.value=""+dn(o)):M!=="submit"&&M!=="reset"||l.removeAttribute("value"),o!=null?za(l,M,dn(o)):c!=null?za(l,M,dn(c)):d!=null&&l.removeAttribute("value"),v==null&&x!=null&&(l.defaultChecked=!!x),v!=null&&(l.checked=v&&typeof v!="function"&&typeof v!="symbol"),I!=null&&typeof I!="function"&&typeof I!="symbol"&&typeof I!="boolean"?l.name=""+dn(I):l.removeAttribute("name")}function ko(l,o,c,d,v,x,M,I){if(x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"&&(l.type=x),o!=null||c!=null){if(!(x!=="submit"&&x!=="reset"||o!=null)){Os(l);return}c=c!=null?""+dn(c):"",o=o!=null?""+dn(o):c,I||o===l.value||(l.value=o),l.defaultValue=o}d=d??v,d=typeof d!="function"&&typeof d!="symbol"&&!!d,l.checked=I?l.checked:!!d,l.defaultChecked=!!d,M!=null&&typeof M!="function"&&typeof M!="symbol"&&typeof M!="boolean"&&(l.name=M),Os(l)}function za(l,o,c){o==="number"&&Ir(l.ownerDocument)===l||l.defaultValue===""+c||(l.defaultValue=""+c)}function Gr(l,o,c,d){if(l=l.options,o){o={};for(var v=0;v<c.length;v++)o["$"+c[v]]=!0;for(c=0;c<l.length;c++)v=o.hasOwnProperty("$"+l[c].value),l[c].selected!==v&&(l[c].selected=v),v&&d&&(l[c].defaultSelected=!0)}else{for(c=""+dn(c),o=null,v=0;v<l.length;v++){if(l[v].value===c){l[v].selected=!0,d&&(l[v].defaultSelected=!0);return}o!==null||l[v].disabled||(o=l[v])}o!==null&&(o.selected=!0)}}function Md(l,o,c){if(o!=null&&(o=""+dn(o),o!==l.value&&(l.value=o),c==null)){l.defaultValue!==o&&(l.defaultValue=o);return}l.defaultValue=c!=null?""+dn(c):""}function Uu(l,o,c,d){if(o==null){if(d!=null){if(c!=null)throw Error(s(92));if(He(d)){if(1<d.length)throw Error(s(93));d=d[0]}c=d}c==null&&(c=""),o=c}c=dn(o),l.defaultValue=c,d=l.textContent,d===c&&d!==""&&d!==null&&(l.value=d),Os(l)}function Qi(l,o){if(o){var c=l.firstChild;if(c&&c===l.lastChild&&c.nodeType===3){c.nodeValue=o;return}}l.textContent=o}var ix=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 rx(l,o,c){var d=o.indexOf("--")===0;c==null||typeof c=="boolean"||c===""?d?l.setProperty(o,""):o==="float"?l.cssFloat="":l[o]="":d?l.setProperty(o,c):typeof c!="number"||c===0||ix.has(o)?o==="float"?l.cssFloat=c:l[o]=(""+c).trim():l[o]=c+"px"}function sx(l,o,c){if(o!=null&&typeof o!="object")throw Error(s(62));if(l=l.style,c!=null){for(var d in c)!c.hasOwnProperty(d)||o!=null&&o.hasOwnProperty(d)||(d.indexOf("--")===0?l.setProperty(d,""):d==="float"?l.cssFloat="":l[d]="");for(var v in o)d=o[v],o.hasOwnProperty(v)&&c[v]!==d&&rx(l,v,d)}else for(var x in o)o.hasOwnProperty(x)&&rx(l,x,o[x])}function Gy(l){if(l.indexOf("-")===-1)return!1;switch(l){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 d2=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"]]),zd=/^[\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 Io(l){return zd.test(""+l)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":l}function mi(){}var Gm=null;function Ym(l){return l=l.target||l.srcElement||window,l.correspondingUseElement&&(l=l.correspondingUseElement),l.nodeType===3?l.parentNode:l}var Zi=null,Ec=null;function Dd(l){var o=Gt(l);if(o&&(l=o.stateNode)){var c=l[Un]||null;e:switch(l=o.stateNode,o.type){case"input":if(Qn(l,c.value,c.defaultValue,c.defaultValue,c.checked,c.defaultChecked,c.type,c.name),o=c.name,c.type==="radio"&&o!=null){for(c=l;c.parentNode;)c=c.parentNode;for(c=c.querySelectorAll('input[name="'+st(""+o)+'"][type="radio"]'),o=0;o<c.length;o++){var d=c[o];if(d!==l&&d.form===l.form){var v=d[Un]||null;if(!v)throw Error(s(90));Qn(d,v.value,v.defaultValue,v.defaultValue,v.checked,v.defaultChecked,v.type,v.name)}}for(o=0;o<c.length;o++)d=c[o],d.form===l.form&&xc(d)}break e;case"textarea":Md(l,c.value,c.defaultValue);break e;case"select":o=c.value,o!=null&&Gr(l,!!c.multiple,o,!1)}}}var Lu=!1;function Yy(l,o,c){if(Lu)return l(o,c);Lu=!0;try{var d=l(o);return d}finally{if(Lu=!1,(Zi!==null||Ec!==null)&&(Ef(),Zi&&(o=Zi,l=Ec,Ec=Zi=null,Dd(o),l)))for(o=0;o<l.length;o++)Dd(l[o])}}function Xl(l,o){var c=l.stateNode;if(c===null)return null;var d=c[Un]||null;if(d===null)return null;c=d[o];e:switch(o){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(d=!d.disabled)||(l=l.type,d=!(l==="button"||l==="input"||l==="select"||l==="textarea")),l=!d;break e;default:l=!1}if(l)return null;if(c&&typeof c!="function")throw Error(s(231,o,typeof c));return c}var Yr=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Rd=!1;if(Yr)try{var qu={};Object.defineProperty(qu,"passive",{get:function(){Rd=!0}}),window.addEventListener("test",qu,qu),window.removeEventListener("test",qu,qu)}catch{Rd=!1}var Xr=null,Xy=null,Xm=null;function Py(){if(Xm)return Xm;var l,o=Xy,c=o.length,d,v="value"in Xr?Xr.value:Xr.textContent,x=v.length;for(l=0;l<c&&o[l]===v[l];l++);var M=c-l;for(d=1;d<=M&&o[c-d]===v[x-d];d++);return Xm=v.slice(l,1<d?1-d:void 0)}function Pm(l){var o=l.keyCode;return"charCode"in l?(l=l.charCode,l===0&&o===13&&(l=13)):l=o,l===10&&(l=13),32<=l||l===13?l:0}function Nd(){return!0}function cx(){return!1}function ua(l){function o(c,d,v,x,M){this._reactName=c,this._targetInst=v,this.type=d,this.nativeEvent=x,this.target=M,this.currentTarget=null;for(var I in l)l.hasOwnProperty(I)&&(c=l[I],this[I]=c?c(x):x[I]);return this.isDefaultPrevented=(x.defaultPrevented!=null?x.defaultPrevented:x.returnValue===!1)?Nd:cx,this.isPropagationStopped=cx,this}return O(o.prototype,{preventDefault:function(){this.defaultPrevented=!0;var c=this.nativeEvent;c&&(c.preventDefault?c.preventDefault():typeof c.returnValue!="unknown"&&(c.returnValue=!1),this.isDefaultPrevented=Nd)},stopPropagation:function(){var c=this.nativeEvent;c&&(c.stopPropagation?c.stopPropagation():typeof c.cancelBubble!="unknown"&&(c.cancelBubble=!0),this.isPropagationStopped=Nd)},persist:function(){},isPersistent:Nd}),o}var ws={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(l){return l.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},_d=ua(ws),Vu=O({},ws,{view:0,detail:0}),h2=ua(Vu),Qy,Zy,$d,Qm=O({},Vu,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Go,button:0,buttons:0,relatedTarget:function(l){return l.relatedTarget===void 0?l.fromElement===l.srcElement?l.toElement:l.fromElement:l.relatedTarget},movementX:function(l){return"movementX"in l?l.movementX:(l!==$d&&($d&&l.type==="mousemove"?(Qy=l.screenX-$d.screenX,Zy=l.screenY-$d.screenY):Zy=Qy=0,$d=l),Qy)},movementY:function(l){return"movementY"in l?l.movementY:Zy}}),Fu=ua(Qm),ux=O({},Qm,{dataTransfer:0}),fx=ua(ux),dx=O({},Vu,{relatedTarget:0}),Zm=ua(dx),Jy=O({},ws,{animationName:0,elapsedTime:0,pseudoElement:0}),hx=ua(Jy),Cc=O({},ws,{clipboardData:function(l){return"clipboardData"in l?l.clipboardData:window.clipboardData}}),Tc=ua(Cc),pi=O({},ws,{data:0}),mx=ua(pi),Ky={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Ji={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"},px={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function gi(l){var o=this.nativeEvent;return o.getModifierState?o.getModifierState(l):(l=px[l])?!!o[l]:!1}function Go(){return gi}var Jm=O({},Vu,{key:function(l){if(l.key){var o=Ky[l.key]||l.key;if(o!=="Unidentified")return o}return l.type==="keypress"?(l=Pm(l),l===13?"Enter":String.fromCharCode(l)):l.type==="keydown"||l.type==="keyup"?Ji[l.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Go,charCode:function(l){return l.type==="keypress"?Pm(l):0},keyCode:function(l){return l.type==="keydown"||l.type==="keyup"?l.keyCode:0},which:function(l){return l.type==="keypress"?Pm(l):l.type==="keydown"||l.type==="keyup"?l.keyCode:0}}),Km=ua(Jm),Wy=O({},Qm,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),yi=ua(Wy),m2=O({},Vu,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Go}),gx=ua(m2),yx=O({},ws,{propertyName:0,elapsedTime:0,pseudoElement:0}),p2=ua(yx),e0=O({},Qm,{deltaX:function(l){return"deltaX"in l?l.deltaX:"wheelDeltaX"in l?-l.wheelDeltaX:0},deltaY:function(l){return"deltaY"in l?l.deltaY:"wheelDeltaY"in l?-l.wheelDeltaY:"wheelDelta"in l?-l.wheelDelta:0},deltaZ:0,deltaMode:0}),g2=ua(e0),bx=O({},ws,{newState:0,oldState:0}),t0=ua(bx),Wm=[9,13,27,32],ku=Yr&&"CompositionEvent"in window,Oc=null;Yr&&"documentMode"in document&&(Oc=document.documentMode);var Sa=Yr&&"TextEvent"in window&&!Oc,n0=Yr&&(!ku||Oc&&8<Oc&&11>=Oc),Bd=" ",js=!1;function ep(l,o){switch(l){case"keyup":return Wm.indexOf(o.keyCode)!==-1;case"keydown":return o.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function l0(l){return l=l.detail,typeof l=="object"&&"data"in l?l.data:null}var wc=!1;function vx(l,o){switch(l){case"compositionend":return l0(o);case"keypress":return o.which!==32?null:(js=!0,Bd);case"textInput":return l=o.data,l===Bd&&js?null:l;default:return null}}function y2(l,o){if(wc)return l==="compositionend"||!ku&&ep(l,o)?(l=Py(),Xm=Xy=Xr=null,wc=!1,l):null;switch(l){case"paste":return null;case"keypress":if(!(o.ctrlKey||o.altKey||o.metaKey)||o.ctrlKey&&o.altKey){if(o.char&&1<o.char.length)return o.char;if(o.which)return String.fromCharCode(o.which)}return null;case"compositionend":return n0&&o.locale!=="ko"?null:o.data;default:return null}}var a0={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 Ki(l){var o=l&&l.nodeName&&l.nodeName.toLowerCase();return o==="input"?!!a0[l.type]:o==="textarea"}function o0(l,o,c,d){Zi?Ec?Ec.push(d):Ec=[d]:Zi=d,o=Rh(o,"onChange"),0<o.length&&(c=new _d("onChange","change",null,c,d),l.push({event:c,listeners:o}))}var jc=null,As=null;function Ac(l){m1(l,0)}function Iu(l){var o=Pn(l);if(xc(o))return l}function i0(l,o){if(l==="change")return o}var tp=!1;if(Yr){var Da;if(Yr){var bi="oninput"in document;if(!bi){var r0=document.createElement("div");r0.setAttribute("oninput","return;"),bi=typeof r0.oninput=="function"}Da=bi}else Da=!1;tp=Da&&(!document.documentMode||9<document.documentMode)}function np(){jc&&(jc.detachEvent("onpropertychange",lp),As=jc=null)}function lp(l){if(l.propertyName==="value"&&Iu(As)){var o=[];o0(o,As,l,Ym(l)),Yy(Ac,o)}}function Sx(l,o,c){l==="focusin"?(np(),jc=o,As=c,jc.attachEvent("onpropertychange",lp)):l==="focusout"&&np()}function xx(l){if(l==="selectionchange"||l==="keyup"||l==="keydown")return Iu(As)}function Ms(l,o){if(l==="click")return Iu(o)}function Mc(l,o){if(l==="input"||l==="change")return Iu(o)}function Ex(l,o){return l===o&&(l!==0||1/l===1/o)||l!==l&&o!==o}var xa=typeof Object.is=="function"?Object.is:Ex;function Yo(l,o){if(xa(l,o))return!0;if(typeof l!="object"||l===null||typeof o!="object"||o===null)return!1;var c=Object.keys(l),d=Object.keys(o);if(c.length!==d.length)return!1;for(d=0;d<c.length;d++){var v=c[d];if(!Ct.call(o,v)||!xa(l[v],o[v]))return!1}return!0}function s0(l){for(;l&&l.firstChild;)l=l.firstChild;return l}function c0(l,o){var c=s0(l);l=0;for(var d;c;){if(c.nodeType===3){if(d=l+c.textContent.length,l<=o&&d>=o)return{node:c,offset:o-l};l=d}e:{for(;c;){if(c.nextSibling){c=c.nextSibling;break e}c=c.parentNode}c=void 0}c=s0(c)}}function zc(l,o){return l&&o?l===o?!0:l&&l.nodeType===3?!1:o&&o.nodeType===3?zc(l,o.parentNode):"contains"in l?l.contains(o):l.compareDocumentPosition?!!(l.compareDocumentPosition(o)&16):!1:!1}function zs(l){l=l!=null&&l.ownerDocument!=null&&l.ownerDocument.defaultView!=null?l.ownerDocument.defaultView:window;for(var o=Ir(l.document);o instanceof l.HTMLIFrameElement;){try{var c=typeof o.contentWindow.location.href=="string"}catch{c=!1}if(c)l=o.contentWindow;else break;o=Ir(l.document)}return o}function Hd(l){var o=l&&l.nodeName&&l.nodeName.toLowerCase();return o&&(o==="input"&&(l.type==="text"||l.type==="search"||l.type==="tel"||l.type==="url"||l.type==="password")||o==="textarea"||l.contentEditable==="true")}var Ud=Yr&&"documentMode"in document&&11>=document.documentMode,Ds=null,Gu=null,Xo=null,vi=!1;function ap(l,o,c){var d=c.window===c?c.document:c.nodeType===9?c:c.ownerDocument;vi||Ds==null||Ds!==Ir(d)||(d=Ds,"selectionStart"in d&&Hd(d)?d={start:d.selectionStart,end:d.selectionEnd}:(d=(d.ownerDocument&&d.ownerDocument.defaultView||window).getSelection(),d={anchorNode:d.anchorNode,anchorOffset:d.anchorOffset,focusNode:d.focusNode,focusOffset:d.focusOffset}),Xo&&Yo(Xo,d)||(Xo=d,d=Rh(Gu,"onSelect"),0<d.length&&(o=new _d("onSelect","select",null,o,c),l.push({event:o,listeners:d}),o.target=Ds)))}function Pr(l,o){var c={};return c[l.toLowerCase()]=o.toLowerCase(),c["Webkit"+l]="webkit"+o,c["Moz"+l]="moz"+o,c}var Si={animationend:Pr("Animation","AnimationEnd"),animationiteration:Pr("Animation","AnimationIteration"),animationstart:Pr("Animation","AnimationStart"),transitionrun:Pr("Transition","TransitionRun"),transitionstart:Pr("Transition","TransitionStart"),transitioncancel:Pr("Transition","TransitionCancel"),transitionend:Pr("Transition","TransitionEnd")},Yu={},Rs={};Yr&&(Rs=document.createElement("div").style,"AnimationEvent"in window||(delete Si.animationend.animation,delete Si.animationiteration.animation,delete Si.animationstart.animation),"TransitionEvent"in window||delete Si.transitionend.transition);function hn(l){if(Yu[l])return Yu[l];if(!Si[l])return l;var o=Si[l],c;for(c in o)if(o.hasOwnProperty(c)&&c in Rs)return Yu[l]=o[c];return l}var Ld=hn("animationend"),u0=hn("animationiteration"),op=hn("animationstart"),Dc=hn("transitionrun"),qd=hn("transitionstart"),Wi=hn("transitioncancel"),Cx=hn("transitionend"),er=new Map,Xu="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(" ");Xu.push("scrollEnd");function Ra(l,o){er.set(l,o),Yl(o,[l])}var Rc=typeof reportError=="function"?reportError:function(l){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var o=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof l=="object"&&l!==null&&typeof l.message=="string"?String(l.message):String(l),error:l});if(!window.dispatchEvent(o))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",l);return}console.error(l)},Zn=[],Pl=0,Po=0;function mo(){for(var l=Pl,o=Po=Pl=0;o<l;){var c=Zn[o];Zn[o++]=null;var d=Zn[o];Zn[o++]=null;var v=Zn[o];Zn[o++]=null;var x=Zn[o];if(Zn[o++]=null,d!==null&&v!==null){var M=d.pending;M===null?v.next=v:(v.next=M.next,M.next=v),d.pending=v}x!==0&&ip(c,v,x)}}function po(l,o,c,d){Zn[Pl++]=l,Zn[Pl++]=o,Zn[Pl++]=c,Zn[Pl++]=d,Po|=d,l.lanes|=d,l=l.alternate,l!==null&&(l.lanes|=d)}function Qo(l,o,c,d){return po(l,o,c,d),Vd(l)}function Qr(l,o){return po(l,null,null,o),Vd(l)}function ip(l,o,c){l.lanes|=c;var d=l.alternate;d!==null&&(d.lanes|=c);for(var v=!1,x=l.return;x!==null;)x.childLanes|=c,d=x.alternate,d!==null&&(d.childLanes|=c),x.tag===22&&(l=x.stateNode,l===null||l._visibility&1||(v=!0)),l=x,x=x.return;return l.tag===3?(x=l.stateNode,v&&o!==null&&(v=31-jt(c),l=x.hiddenUpdates,d=l[v],d===null?l[v]=[o]:d.push(o),o.lane=c|536870912),x):null}function Vd(l){if(50<xf)throw xf=0,Ch=null,Error(s(185));for(var o=l.return;o!==null;)l=o,o=l.return;return l.tag===3?l.stateNode:null}var Na={};function Tx(l,o,c,d){this.tag=l,this.key=c,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=o,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=d,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ml(l,o,c,d){return new Tx(l,o,c,d)}function Nc(l){return l=l.prototype,!(!l||!l.isReactComponent)}function Zr(l,o){var c=l.alternate;return c===null?(c=ml(l.tag,o,l.key,l.mode),c.elementType=l.elementType,c.type=l.type,c.stateNode=l.stateNode,c.alternate=l,l.alternate=c):(c.pendingProps=o,c.type=l.type,c.flags=0,c.subtreeFlags=0,c.deletions=null),c.flags=l.flags&65011712,c.childLanes=l.childLanes,c.lanes=l.lanes,c.child=l.child,c.memoizedProps=l.memoizedProps,c.memoizedState=l.memoizedState,c.updateQueue=l.updateQueue,o=l.dependencies,c.dependencies=o===null?null:{lanes:o.lanes,firstContext:o.firstContext},c.sibling=l.sibling,c.index=l.index,c.ref=l.ref,c.refCleanup=l.refCleanup,c}function f0(l,o){l.flags&=65011714;var c=l.alternate;return c===null?(l.childLanes=0,l.lanes=o,l.child=null,l.subtreeFlags=0,l.memoizedProps=null,l.memoizedState=null,l.updateQueue=null,l.dependencies=null,l.stateNode=null):(l.childLanes=c.childLanes,l.lanes=c.lanes,l.child=c.child,l.subtreeFlags=0,l.deletions=null,l.memoizedProps=c.memoizedProps,l.memoizedState=c.memoizedState,l.updateQueue=c.updateQueue,l.type=c.type,o=c.dependencies,l.dependencies=o===null?null:{lanes:o.lanes,firstContext:o.firstContext}),l}function rp(l,o,c,d,v,x){var M=0;if(d=l,typeof l=="function")Nc(l)&&(M=1);else if(typeof l=="string")M=_b(l,c,De.current)?26:l==="html"||l==="head"||l==="body"?27:5;else e:switch(l){case ue:return l=ml(31,c,o,v),l.elementType=ue,l.lanes=x,l;case L:return Jr(c.children,v,x,o);case D:M=8,v|=24;break;case _:return l=ml(12,c,o,v|2),l.elementType=_,l.lanes=x,l;case G:return l=ml(13,c,o,v),l.elementType=G,l.lanes=x,l;case Y:return l=ml(19,c,o,v),l.elementType=Y,l.lanes=x,l;default:if(typeof l=="object"&&l!==null)switch(l.$$typeof){case B:M=10;break e;case U:M=9;break e;case k:M=11;break e;case P:M=14;break e;case Q:M=16,d=null;break e}M=29,c=Error(s(130,l===null?"null":typeof l,"")),d=null}return o=ml(M,c,o,v),o.elementType=l,o.type=d,o.lanes=x,o}function Jr(l,o,c,d){return l=ml(7,l,d,o),l.lanes=c,l}function Pu(l,o,c){return l=ml(6,l,null,o),l.lanes=c,l}function d0(l){var o=ml(18,null,null,0);return o.stateNode=l,o}function sp(l,o,c){return o=ml(4,l.children!==null?l.children:[],l.key,o),o.lanes=c,o.stateNode={containerInfo:l.containerInfo,pendingChildren:null,implementation:l.implementation},o}var h0=new WeakMap;function go(l,o){if(typeof l=="object"&&l!==null){var c=h0.get(l);return c!==void 0?c:(o={value:l,source:o,stack:dt(o)},h0.set(l,o),o)}return{value:l,source:o,stack:dt(o)}}var yo=[],_c=0,Fd=null,El=0,Ka=[],_a=0,xi=null,Wa=1,Ei="";function Zo(l,o){yo[_c++]=El,yo[_c++]=Fd,Fd=l,El=o}function m0(l,o,c){Ka[_a++]=Wa,Ka[_a++]=Ei,Ka[_a++]=xi,xi=l;var d=Wa;l=Ei;var v=32-jt(d)-1;d&=~(1<<v),c+=1;var x=32-jt(o)+v;if(30<x){var M=v-v%5;x=(d&(1<<M)-1).toString(32),d>>=M,v-=M,Wa=1<<32-jt(o)+v|c<<v|d,Ei=x+l}else Wa=1<<x|c<<v|d,Ei=l}function Qu(l){l.return!==null&&(Zo(l,1),m0(l,1,0))}function cp(l){for(;l===Fd;)Fd=yo[--_c],yo[_c]=null,El=yo[--_c],yo[_c]=null;for(;l===xi;)xi=Ka[--_a],Ka[_a]=null,Ei=Ka[--_a],Ka[_a]=null,Wa=Ka[--_a],Ka[_a]=null}function kd(l,o){Ka[_a++]=Wa,Ka[_a++]=Ei,Ka[_a++]=xi,Wa=o.id,Ei=o.overflow,xi=l}var Ql=null,Ln=null,Qt=!1,tr=null,Hl=!1,nr=Error(s(519));function Jo(l){var o=Error(s(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Ju(go(o,l)),nr}function Id(l){var o=l.stateNode,c=l.type,d=l.memoizedProps;switch(o[Mt]=l,o[Un]=d,c){case"dialog":Yt("cancel",o),Yt("close",o);break;case"iframe":case"object":case"embed":Yt("load",o);break;case"video":case"audio":for(c=0;c<jf.length;c++)Yt(jf[c],o);break;case"source":Yt("error",o);break;case"img":case"image":case"link":Yt("error",o),Yt("load",o);break;case"details":Yt("toggle",o);break;case"input":Yt("invalid",o),ko(o,d.value,d.defaultValue,d.checked,d.defaultChecked,d.type,d.name,!0);break;case"select":Yt("invalid",o);break;case"textarea":Yt("invalid",o),Uu(o,d.value,d.defaultValue,d.children)}c=d.children,typeof c!="string"&&typeof c!="number"&&typeof c!="bigint"||o.textContent===""+c||d.suppressHydrationWarning===!0||Cb(o.textContent,c)?(d.popover!=null&&(Yt("beforetoggle",o),Yt("toggle",o)),d.onScroll!=null&&Yt("scroll",o),d.onScrollEnd!=null&&Yt("scrollend",o),d.onClick!=null&&(o.onclick=mi),o=!0):o=!1,o||Jo(l,!0)}function Zu(l){for(Ql=l.return;Ql;)switch(Ql.tag){case 5:case 31:case 13:Hl=!1;return;case 27:case 3:Hl=!0;return;default:Ql=Ql.return}}function lr(l){if(l!==Ql)return!1;if(!Qt)return Zu(l),Qt=!0,!1;var o=l.tag,c;if((c=o!==3&&o!==27)&&((c=o===5)&&(c=l.type,c=!(c!=="form"&&c!=="button")||Mf(l.type,l.memoizedProps)),c=!c),c&&Ln&&Jo(l),Zu(l),o===13){if(l=l.memoizedState,l=l!==null?l.dehydrated:null,!l)throw Error(s(317));Ln=dg(l)}else if(o===31){if(l=l.memoizedState,l=l!==null?l.dehydrated:null,!l)throw Error(s(317));Ln=dg(l)}else o===27?(o=Ln,Ni(l.type)?(l=$h,$h=null,Ln=l):Ln=o):Ln=Ql?Ia(l.stateNode.nextSibling):null;return!0}function Ns(){Ln=Ql=null,Qt=!1}function p0(){var l=tr;return l!==null&&(sl===null?sl=l:sl.push.apply(sl,l),tr=null),l}function Ju(l){tr===null?tr=[l]:tr.push(l)}var up=ee(null),Kr=null,Ci=null;function $a(l,o,c){Ae(up,o._currentValue),o._currentValue=c}function Ti(l){l._currentValue=up.current,Se(up)}function fp(l,o,c){for(;l!==null;){var d=l.alternate;if((l.childLanes&o)!==o?(l.childLanes|=o,d!==null&&(d.childLanes|=o)):d!==null&&(d.childLanes&o)!==o&&(d.childLanes|=o),l===c)break;l=l.return}}function ar(l,o,c,d){var v=l.child;for(v!==null&&(v.return=l);v!==null;){var x=v.dependencies;if(x!==null){var M=v.child;x=x.firstContext;e:for(;x!==null;){var I=x;x=v;for(var W=0;W<o.length;W++)if(I.context===o[W]){x.lanes|=c,I=x.alternate,I!==null&&(I.lanes|=c),fp(x.return,c,l),d||(M=null);break e}x=I.next}}else if(v.tag===18){if(M=v.return,M===null)throw Error(s(341));M.lanes|=c,x=M.alternate,x!==null&&(x.lanes|=c),fp(M,c,l),M=null}else M=v.child;if(M!==null)M.return=v;else for(M=v;M!==null;){if(M===l){M=null;break}if(v=M.sibling,v!==null){v.return=M.return,M=v;break}M=M.return}v=M}}function Zl(l,o,c,d){l=null;for(var v=o,x=!1;v!==null;){if(!x){if((v.flags&524288)!==0)x=!0;else if((v.flags&262144)!==0)break}if(v.tag===10){var M=v.alternate;if(M===null)throw Error(s(387));if(M=M.memoizedProps,M!==null){var I=v.type;xa(v.pendingProps.value,M.value)||(l!==null?l.push(I):l=[I])}}else if(v===Pe.current){if(M=v.alternate,M===null)throw Error(s(387));M.memoizedState.memoizedState!==v.memoizedState.memoizedState&&(l!==null?l.push(Uh):l=[Uh])}v=v.return}l!==null&&ar(o,l,c,d),o.flags|=262144}function $c(l){for(l=l.firstContext;l!==null;){if(!xa(l.context._currentValue,l.memoizedValue))return!0;l=l.next}return!1}function St(l){Kr=l,Ci=null,l=l.dependencies,l!==null&&(l.firstContext=null)}function _e(l){return Gd(Kr,l)}function Wr(l,o){return Kr===null&&St(l),Gd(l,o)}function Gd(l,o){var c=o._currentValue;if(o={context:o,memoizedValue:c,next:null},Ci===null){if(l===null)throw Error(s(308));Ci=o,l.dependencies={lanes:0,firstContext:o},l.flags|=524288}else Ci=Ci.next=o;return c}var pl=typeof AbortController<"u"?AbortController:function(){var l=[],o=this.signal={aborted:!1,addEventListener:function(c,d){l.push(d)}};this.abort=function(){o.aborted=!0,l.forEach(function(c){return c()})}},g0=n.unstable_scheduleCallback,y0=n.unstable_NormalPriority,Cl={$$typeof:B,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Yd(){return{controller:new pl,data:new Map,refCount:0}}function Xd(l){l.refCount--,l.refCount===0&&g0(y0,function(){l.controller.abort()})}var Bc=null,Pd=0,_s=0,Rl=null;function yn(l,o){if(Bc===null){var c=Bc=[];Pd=0,_s=ag(),Rl={status:"pending",value:void 0,then:function(d){c.push(d)}}}return Pd++,o.then(Qd,Qd),o}function Qd(){if(--Pd===0&&Bc!==null){Rl!==null&&(Rl.status="fulfilled");var l=Bc;Bc=null,_s=0,Rl=null;for(var o=0;o<l.length;o++)(0,l[o])()}}function Zd(l,o){var c=[],d={status:"pending",value:null,reason:null,then:function(v){c.push(v)}};return l.then(function(){d.status="fulfilled",d.value=o;for(var v=0;v<c.length;v++)(0,c[v])(o)},function(v){for(d.status="rejected",d.reason=v,v=0;v<c.length;v++)(0,c[v])(void 0)}),d}var es=X.S;X.S=function(l,o){ub=wt(),typeof o=="object"&&o!==null&&typeof o.then=="function"&&yn(l,o),es!==null&&es(l,o)};var bo=ee(null);function vo(){var l=bo.current;return l!==null?l:An.pooledCache}function Ku(l,o){o===null?Ae(bo,bo.current):Ae(bo,o.pool)}function Hc(){var l=vo();return l===null?null:{parent:Cl._currentValue,pool:l}}var $s=Error(s(460)),Uc=Error(s(474)),Wu=Error(s(542)),Lc={then:function(){}};function b0(l){return l=l.status,l==="fulfilled"||l==="rejected"}function v0(l,o,c){switch(c=l[c],c===void 0?l.push(o):c!==o&&(o.then(mi,mi),o=c),o.status){case"fulfilled":return o.value;case"rejected":throw l=o.reason,dp(l),l;default:if(typeof o.status=="string")o.then(mi,mi);else{if(l=An,l!==null&&100<l.shellSuspendCounter)throw Error(s(482));l=o,l.status="pending",l.then(function(d){if(o.status==="pending"){var v=o;v.status="fulfilled",v.value=d}},function(d){if(o.status==="pending"){var v=o;v.status="rejected",v.reason=d}})}switch(o.status){case"fulfilled":return o.value;case"rejected":throw l=o.reason,dp(l),l}throw Hs=o,$s}}function Bs(l){try{var o=l._init;return o(l._payload)}catch(c){throw c!==null&&typeof c=="object"&&typeof c.then=="function"?(Hs=c,$s):c}}var Hs=null;function S0(){if(Hs===null)throw Error(s(459));var l=Hs;return Hs=null,l}function dp(l){if(l===$s||l===Wu)throw Error(s(483))}var Us=null,qc=0;function Jd(l){var o=qc;return qc+=1,Us===null&&(Us=[]),v0(Us,l,o)}function ef(l,o){o=o.props.ref,l.ref=o!==void 0?o:null}function Kd(l,o){throw o.$$typeof===A?Error(s(525)):(l=Object.prototype.toString.call(o),Error(s(31,l==="[object Object]"?"object with keys {"+Object.keys(o).join(", ")+"}":l)))}function Ox(l){function o(de,re){if(l){var ye=de.deletions;ye===null?(de.deletions=[re],de.flags|=16):ye.push(re)}}function c(de,re){if(!l)return null;for(;re!==null;)o(de,re),re=re.sibling;return null}function d(de){for(var re=new Map;de!==null;)de.key!==null?re.set(de.key,de):re.set(de.index,de),de=de.sibling;return re}function v(de,re){return de=Zr(de,re),de.index=0,de.sibling=null,de}function x(de,re,ye){return de.index=ye,l?(ye=de.alternate,ye!==null?(ye=ye.index,ye<re?(de.flags|=67108866,re):ye):(de.flags|=67108866,re)):(de.flags|=1048576,re)}function M(de){return l&&de.alternate===null&&(de.flags|=67108866),de}function I(de,re,ye,Re){return re===null||re.tag!==6?(re=Pu(ye,de.mode,Re),re.return=de,re):(re=v(re,ye),re.return=de,re)}function W(de,re,ye,Re){var lt=ye.type;return lt===L?je(de,re,ye.props.children,Re,ye.key):re!==null&&(re.elementType===lt||typeof lt=="object"&&lt!==null&&lt.$$typeof===Q&&Bs(lt)===re.type)?(re=v(re,ye.props),ef(re,ye),re.return=de,re):(re=rp(ye.type,ye.key,ye.props,null,de.mode,Re),ef(re,ye),re.return=de,re)}function be(de,re,ye,Re){return re===null||re.tag!==4||re.stateNode.containerInfo!==ye.containerInfo||re.stateNode.implementation!==ye.implementation?(re=sp(ye,de.mode,Re),re.return=de,re):(re=v(re,ye.children||[]),re.return=de,re)}function je(de,re,ye,Re,lt){return re===null||re.tag!==7?(re=Jr(ye,de.mode,Re,lt),re.return=de,re):(re=v(re,ye),re.return=de,re)}function Ne(de,re,ye){if(typeof re=="string"&&re!==""||typeof re=="number"||typeof re=="bigint")return re=Pu(""+re,de.mode,ye),re.return=de,re;if(typeof re=="object"&&re!==null){switch(re.$$typeof){case R:return ye=rp(re.type,re.key,re.props,null,de.mode,ye),ef(ye,re),ye.return=de,ye;case N:return re=sp(re,de.mode,ye),re.return=de,re;case Q:return re=Bs(re),Ne(de,re,ye)}if(He(re)||te(re))return re=Jr(re,de.mode,ye,null),re.return=de,re;if(typeof re.then=="function")return Ne(de,Jd(re),ye);if(re.$$typeof===B)return Ne(de,Wr(de,re),ye);Kd(de,re)}return null}function ve(de,re,ye,Re){var lt=re!==null?re.key:null;if(typeof ye=="string"&&ye!==""||typeof ye=="number"||typeof ye=="bigint")return lt!==null?null:I(de,re,""+ye,Re);if(typeof ye=="object"&&ye!==null){switch(ye.$$typeof){case R:return ye.key===lt?W(de,re,ye,Re):null;case N:return ye.key===lt?be(de,re,ye,Re):null;case Q:return ye=Bs(ye),ve(de,re,ye,Re)}if(He(ye)||te(ye))return lt!==null?null:je(de,re,ye,Re,null);if(typeof ye.then=="function")return ve(de,re,Jd(ye),Re);if(ye.$$typeof===B)return ve(de,re,Wr(de,ye),Re);Kd(de,ye)}return null}function Te(de,re,ye,Re,lt){if(typeof Re=="string"&&Re!==""||typeof Re=="number"||typeof Re=="bigint")return de=de.get(ye)||null,I(re,de,""+Re,lt);if(typeof Re=="object"&&Re!==null){switch(Re.$$typeof){case R:return de=de.get(Re.key===null?ye:Re.key)||null,W(re,de,Re,lt);case N:return de=de.get(Re.key===null?ye:Re.key)||null,be(re,de,Re,lt);case Q:return Re=Bs(Re),Te(de,re,ye,Re,lt)}if(He(Re)||te(Re))return de=de.get(ye)||null,je(re,de,Re,lt,null);if(typeof Re.then=="function")return Te(de,re,ye,Jd(Re),lt);if(Re.$$typeof===B)return Te(de,re,ye,Wr(re,Re),lt);Kd(re,Re)}return null}function We(de,re,ye,Re){for(var lt=null,sn=null,et=re,Ot=re=0,_t=null;et!==null&&Ot<ye.length;Ot++){et.index>Ot?(_t=et,et=null):_t=et.sibling;var fn=ve(de,et,ye[Ot],Re);if(fn===null){et===null&&(et=_t);break}l&&et&&fn.alternate===null&&o(de,et),re=x(fn,re,Ot),sn===null?lt=fn:sn.sibling=fn,sn=fn,et=_t}if(Ot===ye.length)return c(de,et),Qt&&Zo(de,Ot),lt;if(et===null){for(;Ot<ye.length;Ot++)et=Ne(de,ye[Ot],Re),et!==null&&(re=x(et,re,Ot),sn===null?lt=et:sn.sibling=et,sn=et);return Qt&&Zo(de,Ot),lt}for(et=d(et);Ot<ye.length;Ot++)_t=Te(et,de,Ot,ye[Ot],Re),_t!==null&&(l&&_t.alternate!==null&&et.delete(_t.key===null?Ot:_t.key),re=x(_t,re,Ot),sn===null?lt=_t:sn.sibling=_t,sn=_t);return l&&et.forEach(function(Bi){return o(de,Bi)}),Qt&&Zo(de,Ot),lt}function ht(de,re,ye,Re){if(ye==null)throw Error(s(151));for(var lt=null,sn=null,et=re,Ot=re=0,_t=null,fn=ye.next();et!==null&&!fn.done;Ot++,fn=ye.next()){et.index>Ot?(_t=et,et=null):_t=et.sibling;var Bi=ve(de,et,fn.value,Re);if(Bi===null){et===null&&(et=_t);break}l&&et&&Bi.alternate===null&&o(de,et),re=x(Bi,re,Ot),sn===null?lt=Bi:sn.sibling=Bi,sn=Bi,et=_t}if(fn.done)return c(de,et),Qt&&Zo(de,Ot),lt;if(et===null){for(;!fn.done;Ot++,fn=ye.next())fn=Ne(de,fn.value,Re),fn!==null&&(re=x(fn,re,Ot),sn===null?lt=fn:sn.sibling=fn,sn=fn);return Qt&&Zo(de,Ot),lt}for(et=d(et);!fn.done;Ot++,fn=ye.next())fn=Te(et,de,Ot,fn.value,Re),fn!==null&&(l&&fn.alternate!==null&&et.delete(fn.key===null?Ot:fn.key),re=x(fn,re,Ot),sn===null?lt=fn:sn.sibling=fn,sn=fn);return l&&et.forEach(function(M1){return o(de,M1)}),Qt&&Zo(de,Ot),lt}function zn(de,re,ye,Re){if(typeof ye=="object"&&ye!==null&&ye.type===L&&ye.key===null&&(ye=ye.props.children),typeof ye=="object"&&ye!==null){switch(ye.$$typeof){case R:e:{for(var lt=ye.key;re!==null;){if(re.key===lt){if(lt=ye.type,lt===L){if(re.tag===7){c(de,re.sibling),Re=v(re,ye.props.children),Re.return=de,de=Re;break e}}else if(re.elementType===lt||typeof lt=="object"&&lt!==null&&lt.$$typeof===Q&&Bs(lt)===re.type){c(de,re.sibling),Re=v(re,ye.props),ef(Re,ye),Re.return=de,de=Re;break e}c(de,re);break}else o(de,re);re=re.sibling}ye.type===L?(Re=Jr(ye.props.children,de.mode,Re,ye.key),Re.return=de,de=Re):(Re=rp(ye.type,ye.key,ye.props,null,de.mode,Re),ef(Re,ye),Re.return=de,de=Re)}return M(de);case N:e:{for(lt=ye.key;re!==null;){if(re.key===lt)if(re.tag===4&&re.stateNode.containerInfo===ye.containerInfo&&re.stateNode.implementation===ye.implementation){c(de,re.sibling),Re=v(re,ye.children||[]),Re.return=de,de=Re;break e}else{c(de,re);break}else o(de,re);re=re.sibling}Re=sp(ye,de.mode,Re),Re.return=de,de=Re}return M(de);case Q:return ye=Bs(ye),zn(de,re,ye,Re)}if(He(ye))return We(de,re,ye,Re);if(te(ye)){if(lt=te(ye),typeof lt!="function")throw Error(s(150));return ye=lt.call(ye),ht(de,re,ye,Re)}if(typeof ye.then=="function")return zn(de,re,Jd(ye),Re);if(ye.$$typeof===B)return zn(de,re,Wr(de,ye),Re);Kd(de,ye)}return typeof ye=="string"&&ye!==""||typeof ye=="number"||typeof ye=="bigint"?(ye=""+ye,re!==null&&re.tag===6?(c(de,re.sibling),Re=v(re,ye),Re.return=de,de=Re):(c(de,re),Re=Pu(ye,de.mode,Re),Re.return=de,de=Re),M(de)):c(de,re)}return function(de,re,ye,Re){try{qc=0;var lt=zn(de,re,ye,Re);return Us=null,lt}catch(et){if(et===$s||et===Wu)throw et;var sn=ml(29,et,null,de.mode);return sn.lanes=Re,sn.return=de,sn}finally{}}}var Ls=Ox(!0),x0=Ox(!1),ts=!1;function Wd(l){l.updateQueue={baseState:l.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function hp(l,o){l=l.updateQueue,o.updateQueue===l&&(o.updateQueue={baseState:l.baseState,firstBaseUpdate:l.firstBaseUpdate,lastBaseUpdate:l.lastBaseUpdate,shared:l.shared,callbacks:null})}function ns(l){return{lane:l,tag:0,payload:null,callback:null,next:null}}function So(l,o,c){var d=l.updateQueue;if(d===null)return null;if(d=d.shared,(un&2)!==0){var v=d.pending;return v===null?o.next=o:(o.next=v.next,v.next=o),d.pending=o,o=Vd(l),ip(l,null,c),o}return po(l,d,o,c),Vd(l)}function qs(l,o,c){if(o=o.updateQueue,o!==null&&(o=o.shared,(c&4194048)!==0)){var d=o.lanes;d&=l.pendingLanes,c|=d,o.lanes=c,zl(l,c)}}function mp(l,o){var c=l.updateQueue,d=l.alternate;if(d!==null&&(d=d.updateQueue,c===d)){var v=null,x=null;if(c=c.firstBaseUpdate,c!==null){do{var M={lane:c.lane,tag:c.tag,payload:c.payload,callback:null,next:null};x===null?v=x=M:x=x.next=M,c=c.next}while(c!==null);x===null?v=x=o:x=x.next=o}else v=x=o;c={baseState:d.baseState,firstBaseUpdate:v,lastBaseUpdate:x,shared:d.shared,callbacks:d.callbacks},l.updateQueue=c;return}l=c.lastBaseUpdate,l===null?c.firstBaseUpdate=o:l.next=o,c.lastBaseUpdate=o}var E0=!1;function Vs(){if(E0){var l=Rl;if(l!==null)throw l}}function or(l,o,c,d){E0=!1;var v=l.updateQueue;ts=!1;var x=v.firstBaseUpdate,M=v.lastBaseUpdate,I=v.shared.pending;if(I!==null){v.shared.pending=null;var W=I,be=W.next;W.next=null,M===null?x=be:M.next=be,M=W;var je=l.alternate;je!==null&&(je=je.updateQueue,I=je.lastBaseUpdate,I!==M&&(I===null?je.firstBaseUpdate=be:I.next=be,je.lastBaseUpdate=W))}if(x!==null){var Ne=v.baseState;M=0,je=be=W=null,I=x;do{var ve=I.lane&-536870913,Te=ve!==I.lane;if(Te?(kt&ve)===ve:(d&ve)===ve){ve!==0&&ve===_s&&(E0=!0),je!==null&&(je=je.next={lane:0,tag:I.tag,payload:I.payload,callback:null,next:null});e:{var We=l,ht=I;ve=o;var zn=c;switch(ht.tag){case 1:if(We=ht.payload,typeof We=="function"){Ne=We.call(zn,Ne,ve);break e}Ne=We;break e;case 3:We.flags=We.flags&-65537|128;case 0:if(We=ht.payload,ve=typeof We=="function"?We.call(zn,Ne,ve):We,ve==null)break e;Ne=O({},Ne,ve);break e;case 2:ts=!0}}ve=I.callback,ve!==null&&(l.flags|=64,Te&&(l.flags|=8192),Te=v.callbacks,Te===null?v.callbacks=[ve]:Te.push(ve))}else Te={lane:ve,tag:I.tag,payload:I.payload,callback:I.callback,next:null},je===null?(be=je=Te,W=Ne):je=je.next=Te,M|=ve;if(I=I.next,I===null){if(I=v.shared.pending,I===null)break;Te=I,I=Te.next,Te.next=null,v.lastBaseUpdate=Te,v.shared.pending=null}}while(!0);je===null&&(W=Ne),v.baseState=W,v.firstBaseUpdate=be,v.lastBaseUpdate=je,x===null&&(v.shared.lanes=0),Di|=M,l.lanes=M,l.memoizedState=Ne}}function pp(l,o){if(typeof l!="function")throw Error(s(191,l));l.call(o)}function Fs(l,o){var c=l.callbacks;if(c!==null)for(l.callbacks=null,l=0;l<c.length;l++)pp(c[l],o)}var Ul=ee(null),Vc=ee(0);function wx(l,o){l=zi,Ae(Vc,l),Ae(Ul,o),zi=l|o.baseLanes}function eh(){Ae(Vc,zi),Ae(Ul,Ul.current)}function tf(){zi=Vc.current,Se(Ul),Se(Vc)}var Ba=ee(null),xo=null;function ir(l){var o=l.alternate;Ae(Jn,Jn.current&1),Ae(Ba,l),xo===null&&(o===null||Ul.current!==null||o.memoizedState!==null)&&(xo=l)}function nf(l){Ae(Jn,Jn.current),Ae(Ba,l),xo===null&&(xo=l)}function gp(l){l.tag===22?(Ae(Jn,Jn.current),Ae(Ba,l),xo===null&&(xo=l)):Oi()}function Oi(){Ae(Jn,Jn.current),Ae(Ba,Ba.current)}function Ha(l){Se(Ba),xo===l&&(xo=null),Se(Jn)}var Jn=ee(0);function lf(l){for(var o=l;o!==null;){if(o.tag===13){var c=o.memoizedState;if(c!==null&&(c=c.dehydrated,c===null||ti(c)||ec(c)))return o}else if(o.tag===19&&(o.memoizedProps.revealOrder==="forwards"||o.memoizedProps.revealOrder==="backwards"||o.memoizedProps.revealOrder==="unstable_legacy-backwards"||o.memoizedProps.revealOrder==="together")){if((o.flags&128)!==0)return o}else if(o.child!==null){o.child.return=o,o=o.child;continue}if(o===l)break;for(;o.sibling===null;){if(o.return===null||o.return===l)return null;o=o.return}o.sibling.return=o.return,o=o.sibling}return null}var rr=0,zt=null,bn=null,Tl=null,Fc=!1,kc=!1,ls=!1,th=0,af=0,ks=null,jx=0;function il(){throw Error(s(321))}function as(l,o){if(o===null)return!1;for(var c=0;c<o.length&&c<l.length;c++)if(!xa(l[c],o[c]))return!1;return!0}function nh(l,o,c,d,v,x){return rr=x,zt=o,o.memoizedState=null,o.updateQueue=null,o.lanes=0,X.H=l===null||l.memoizedState===null?$x:Np,ls=!1,x=c(d,v),ls=!1,kc&&(x=Ax(o,c,d,v)),yp(l),x}function yp(l){X.H=fh;var o=bn!==null&&bn.next!==null;if(rr=0,Tl=bn=zt=null,Fc=!1,af=0,ks=null,o)throw Error(s(300));l===null||Ol||(l=l.dependencies,l!==null&&$c(l)&&(Ol=!0))}function Ax(l,o,c,d){zt=l;var v=0;do{if(kc&&(ks=null),af=0,kc=!1,25<=v)throw Error(s(301));if(v+=1,Tl=bn=null,l.updateQueue!=null){var x=l.updateQueue;x.lastEffect=null,x.events=null,x.stores=null,x.memoCache!=null&&(x.memoCache.index=0)}X.H=Bx,x=o(c,d)}while(kc);return x}function b2(){var l=X.H,o=l.useState()[0];return o=typeof o.then=="function"?Gc(o):o,l=l.useState()[0],(bn!==null?bn.memoizedState:null)!==l&&(zt.flags|=1024),o}function bp(){var l=th!==0;return th=0,l}function Ic(l,o,c){o.updateQueue=l.updateQueue,o.flags&=-2053,l.lanes&=~c}function lh(l){if(Fc){for(l=l.memoizedState;l!==null;){var o=l.queue;o!==null&&(o.pending=null),l=l.next}Fc=!1}rr=0,Tl=bn=zt=null,kc=!1,af=th=0,ks=null}function Jl(){var l={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Tl===null?zt.memoizedState=Tl=l:Tl=Tl.next=l,Tl}function gl(){if(bn===null){var l=zt.alternate;l=l!==null?l.memoizedState:null}else l=bn.next;var o=Tl===null?zt.memoizedState:Tl.next;if(o!==null)Tl=o,bn=l;else{if(l===null)throw zt.alternate===null?Error(s(467)):Error(s(310));bn=l,l={memoizedState:bn.memoizedState,baseState:bn.baseState,baseQueue:bn.baseQueue,queue:bn.queue,next:null},Tl===null?zt.memoizedState=Tl=l:Tl=Tl.next=l}return Tl}function ah(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Gc(l){var o=af;return af+=1,ks===null&&(ks=[]),l=v0(ks,l,o),o=zt,(Tl===null?o.memoizedState:Tl.next)===null&&(o=o.alternate,X.H=o===null||o.memoizedState===null?$x:Np),l}function of(l){if(l!==null&&typeof l=="object"){if(typeof l.then=="function")return Gc(l);if(l.$$typeof===B)return _e(l)}throw Error(s(438,String(l)))}function vp(l){var o=null,c=zt.updateQueue;if(c!==null&&(o=c.memoCache),o==null){var d=zt.alternate;d!==null&&(d=d.updateQueue,d!==null&&(d=d.memoCache,d!=null&&(o={data:d.data.map(function(v){return v.slice()}),index:0})))}if(o==null&&(o={data:[],index:0}),c===null&&(c=ah(),zt.updateQueue=c),c.memoCache=o,c=o.data[o.index],c===void 0)for(c=o.data[o.index]=Array(l),d=0;d<l;d++)c[d]=V;return o.index++,c}function sr(l,o){return typeof o=="function"?o(l):o}function cr(l){var o=gl();return Sp(o,bn,l)}function Sp(l,o,c){var d=l.queue;if(d===null)throw Error(s(311));d.lastRenderedReducer=c;var v=l.baseQueue,x=d.pending;if(x!==null){if(v!==null){var M=v.next;v.next=x.next,x.next=M}o.baseQueue=v=x,d.pending=null}if(x=l.baseState,v===null)l.memoizedState=x;else{o=v.next;var I=M=null,W=null,be=o,je=!1;do{var Ne=be.lane&-536870913;if(Ne!==be.lane?(kt&Ne)===Ne:(rr&Ne)===Ne){var ve=be.revertLane;if(ve===0)W!==null&&(W=W.next={lane:0,revertLane:0,gesture:null,action:be.action,hasEagerState:be.hasEagerState,eagerState:be.eagerState,next:null}),Ne===_s&&(je=!0);else if((rr&ve)===ve){be=be.next,ve===_s&&(je=!0);continue}else Ne={lane:0,revertLane:be.revertLane,gesture:null,action:be.action,hasEagerState:be.hasEagerState,eagerState:be.eagerState,next:null},W===null?(I=W=Ne,M=x):W=W.next=Ne,zt.lanes|=ve,Di|=ve;Ne=be.action,ls&&c(x,Ne),x=be.hasEagerState?be.eagerState:c(x,Ne)}else ve={lane:Ne,revertLane:be.revertLane,gesture:be.gesture,action:be.action,hasEagerState:be.hasEagerState,eagerState:be.eagerState,next:null},W===null?(I=W=ve,M=x):W=W.next=ve,zt.lanes|=Ne,Di|=Ne;be=be.next}while(be!==null&&be!==o);if(W===null?M=x:W.next=I,!xa(x,l.memoizedState)&&(Ol=!0,je&&(c=Rl,c!==null)))throw c;l.memoizedState=x,l.baseState=M,l.baseQueue=W,d.lastRenderedState=x}return v===null&&(d.lanes=0),[l.memoizedState,d.dispatch]}function xp(l){var o=gl(),c=o.queue;if(c===null)throw Error(s(311));c.lastRenderedReducer=l;var d=c.dispatch,v=c.pending,x=o.memoizedState;if(v!==null){c.pending=null;var M=v=v.next;do x=l(x,M.action),M=M.next;while(M!==v);xa(x,o.memoizedState)||(Ol=!0),o.memoizedState=x,o.baseQueue===null&&(o.baseState=x),c.lastRenderedState=x}return[x,d]}function C0(l,o,c){var d=zt,v=gl(),x=Qt;if(x){if(c===void 0)throw Error(s(407));c=c()}else c=o();var M=!xa((bn||v).memoizedState,c);if(M&&(v.memoizedState=c,Ol=!0),v=v.queue,wp(Ep.bind(null,d,v,l),[l]),v.getSnapshot!==o||M||Tl!==null&&Tl.memoizedState.tag&1){if(d.flags|=2048,Xc(9,{destroy:void 0},T0.bind(null,d,v,c,o),null),An===null)throw Error(s(349));x||(rr&127)!==0||oh(d,o,c)}return c}function oh(l,o,c){l.flags|=16384,l={getSnapshot:o,value:c},o=zt.updateQueue,o===null?(o=ah(),zt.updateQueue=o,o.stores=[l]):(c=o.stores,c===null?o.stores=[l]:c.push(l))}function T0(l,o,c,d){o.value=c,o.getSnapshot=d,Cp(o)&&Tp(l)}function Ep(l,o,c){return c(function(){Cp(o)&&Tp(l)})}function Cp(l){var o=l.getSnapshot;l=l.value;try{var c=o();return!xa(l,c)}catch{return!0}}function Tp(l){var o=Qr(l,2);o!==null&&ka(o,l,2)}function O0(l){var o=Jl();if(typeof l=="function"){var c=l;if(l=c(),ls){En(!0);try{c()}finally{En(!1)}}}return o.memoizedState=o.baseState=l,o.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:sr,lastRenderedState:l},o}function Kl(l,o,c,d){return l.baseState=c,Sp(l,bn,typeof d=="function"?d:sr)}function Mx(l,o,c,d,v){if(uh(l))throw Error(s(485));if(l=o.action,l!==null){var x={payload:v,action:l,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(M){x.listeners.push(M)}};X.T!==null?c(!0):x.isTransition=!1,d(x),c=o.pending,c===null?(x.next=o.pending=x,w0(o,x)):(x.next=c.next,o.pending=c.next=x)}}function w0(l,o){var c=o.action,d=o.payload,v=l.state;if(o.isTransition){var x=X.T,M={};X.T=M;try{var I=c(v,d),W=X.S;W!==null&&W(M,I),j0(l,o,I)}catch(be){Yc(l,o,be)}finally{x!==null&&M.types!==null&&(x.types=M.types),X.T=x}}else try{x=c(v,d),j0(l,o,x)}catch(be){Yc(l,o,be)}}function j0(l,o,c){c!==null&&typeof c=="object"&&typeof c.then=="function"?c.then(function(d){A0(l,o,d)},function(d){return Yc(l,o,d)}):A0(l,o,c)}function A0(l,o,c){o.status="fulfilled",o.value=c,M0(o),l.state=c,o=l.pending,o!==null&&(c=o.next,c===o?l.pending=null:(c=c.next,o.next=c,w0(l,c)))}function Yc(l,o,c){var d=l.pending;if(l.pending=null,d!==null){d=d.next;do o.status="rejected",o.reason=c,M0(o),o=o.next;while(o!==d)}l.action=null}function M0(l){l=l.listeners;for(var o=0;o<l.length;o++)(0,l[o])()}function ih(l,o){return o}function z0(l,o){if(Qt){var c=An.formState;if(c!==null){e:{var d=zt;if(Qt){if(Ln){t:{for(var v=Ln,x=Hl;v.nodeType!==8;){if(!x){v=null;break t}if(v=Ia(v.nextSibling),v===null){v=null;break t}}x=v.data,v=x==="F!"||x==="F"?v:null}if(v){Ln=Ia(v.nextSibling),d=v.data==="F!";break e}}Jo(d)}d=!1}d&&(o=c[0])}}return c=Jl(),c.memoizedState=c.baseState=o,d={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ih,lastRenderedState:o},c.queue=d,c=Dp.bind(null,zt,d),d.dispatch=c,d=O0(!1),x=Is.bind(null,zt,!1,d.queue),d=Jl(),v={state:o,dispatch:null,action:l,pending:null},d.queue=v,c=Mx.bind(null,zt,v,x,c),v.dispatch=c,d.memoizedState=l,[o,c,!1]}function zx(l){var o=gl();return rh(o,bn,l)}function rh(l,o,c){if(o=Sp(l,o,ih)[0],l=cr(sr)[0],typeof o=="object"&&o!==null&&typeof o.then=="function")try{var d=Gc(o)}catch(M){throw M===$s?Wu:M}else d=o;o=gl();var v=o.queue,x=v.dispatch;return c!==o.memoizedState&&(zt.flags|=2048,Xc(9,{destroy:void 0},D0.bind(null,v,c),null)),[d,x,l]}function D0(l,o){l.action=o}function R0(l){var o=gl(),c=bn;if(c!==null)return rh(o,c,l);gl(),o=o.memoizedState,c=gl();var d=c.queue.dispatch;return c.memoizedState=l,[o,d,!1]}function Xc(l,o,c,d){return l={tag:l,create:c,deps:d,inst:o,next:null},o=zt.updateQueue,o===null&&(o=ah(),zt.updateQueue=o),c=o.lastEffect,c===null?o.lastEffect=l.next=l:(d=c.next,c.next=l,l.next=d,o.lastEffect=l),l}function N0(){return gl().memoizedState}function rf(l,o,c,d){var v=Jl();zt.flags|=l,v.memoizedState=Xc(1|o,{destroy:void 0},c,d===void 0?null:d)}function sf(l,o,c,d){var v=gl();d=d===void 0?null:d;var x=v.memoizedState.inst;bn!==null&&d!==null&&as(d,bn.memoizedState.deps)?v.memoizedState=Xc(o,x,c,d):(zt.flags|=l,v.memoizedState=Xc(1|o,x,c,d))}function Op(l,o){rf(8390656,8,l,o)}function wp(l,o){sf(2048,8,l,o)}function _0(l){zt.flags|=4;var o=zt.updateQueue;if(o===null)o=ah(),zt.updateQueue=o,o.events=[l];else{var c=o.events;c===null?o.events=[l]:c.push(l)}}function sh(l){var o=gl().memoizedState;return _0({ref:o,nextImpl:l}),function(){if((un&2)!==0)throw Error(s(440));return o.impl.apply(void 0,arguments)}}function jp(l,o){return sf(4,2,l,o)}function $0(l,o){return sf(4,4,l,o)}function Ap(l,o){if(typeof o=="function"){l=l();var c=o(l);return function(){typeof c=="function"?c():o(null)}}if(o!=null)return l=l(),o.current=l,function(){o.current=null}}function B0(l,o,c){c=c!=null?c.concat([l]):null,sf(4,4,Ap.bind(null,o,l),c)}function wi(){}function Mp(l,o){var c=gl();o=o===void 0?null:o;var d=c.memoizedState;return o!==null&&as(o,d[1])?d[0]:(c.memoizedState=[l,o],l)}function Dx(l,o){var c=gl();o=o===void 0?null:o;var d=c.memoizedState;if(o!==null&&as(o,d[1]))return d[0];if(d=l(),ls){En(!0);try{l()}finally{En(!1)}}return c.memoizedState=[d,o],d}function ch(l,o,c){return c===void 0||(rr&1073741824)!==0&&(kt&261930)===0?l.memoizedState=o:(l.memoizedState=c,l=Yx(),zt.lanes|=l,Di|=l,c)}function ur(l,o,c,d){return xa(c,o)?c:Ul.current!==null?(l=ch(l,c,d),xa(l,o)||(Ol=!0),l):(rr&42)===0||(rr&1073741824)!==0&&(kt&261930)===0?(Ol=!0,l.memoizedState=c):(l=Yx(),zt.lanes|=l,Di|=l,o)}function zp(l,o,c,d,v){var x=ie.p;ie.p=x!==0&&8>x?x:8;var M=X.T,I={};X.T=I,Is(l,!1,o,c);try{var W=v(),be=X.S;if(be!==null&&be(I,W),W!==null&&typeof W=="object"&&typeof W.then=="function"){var je=Zd(W,d);os(l,o,je,lo(l))}else os(l,o,d,lo(l))}catch(Ne){os(l,o,{then:function(){},status:"rejected",reason:Ne},lo())}finally{ie.p=x,M!==null&&I.types!==null&&(M.types=I.types),X.T=M}}function Rx(){}function cf(l,o,c,d){if(l.tag!==5)throw Error(s(476));var v=uf(l).queue;zp(l,v,o,me,c===null?Rx:function(){return jn(l),c(d)})}function uf(l){var o=l.memoizedState;if(o!==null)return o;o={memoizedState:me,baseState:me,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:sr,lastRenderedState:me},next:null};var c={};return o.next={memoizedState:c,baseState:c,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:sr,lastRenderedState:c},next:null},l.memoizedState=o,l=l.alternate,l!==null&&(l.memoizedState=o),o}function jn(l){var o=uf(l);o.next===null&&(o=l.alternate.memoizedState),os(l,o.next.queue,{},lo())}function H0(){return _e(Uh)}function Nx(){return gl().memoizedState}function U0(){return gl().memoizedState}function fr(l){for(var o=l.return;o!==null;){switch(o.tag){case 24:case 3:var c=lo();l=ns(c);var d=So(o,l,c);d!==null&&(ka(d,o,c),qs(d,o,c)),o={cache:Yd()},l.payload=o;return}o=o.return}}function _x(l,o,c){var d=lo();c={lane:d,revertLane:0,gesture:null,action:c,hasEagerState:!1,eagerState:null,next:null},uh(l)?Rp(o,c):(c=Qo(l,o,c,d),c!==null&&(ka(c,l,d),L0(c,o,d)))}function Dp(l,o,c){var d=lo();os(l,o,c,d)}function os(l,o,c,d){var v={lane:d,revertLane:0,gesture:null,action:c,hasEagerState:!1,eagerState:null,next:null};if(uh(l))Rp(o,v);else{var x=l.alternate;if(l.lanes===0&&(x===null||x.lanes===0)&&(x=o.lastRenderedReducer,x!==null))try{var M=o.lastRenderedState,I=x(M,c);if(v.hasEagerState=!0,v.eagerState=I,xa(I,M))return po(l,o,v,0),An===null&&mo(),!1}catch{}finally{}if(c=Qo(l,o,v,d),c!==null)return ka(c,l,d),L0(c,o,d),!0}return!1}function Is(l,o,c,d){if(d={lane:2,revertLane:ag(),gesture:null,action:d,hasEagerState:!1,eagerState:null,next:null},uh(l)){if(o)throw Error(s(479))}else o=Qo(l,c,d,2),o!==null&&ka(o,l,2)}function uh(l){var o=l.alternate;return l===zt||o!==null&&o===zt}function Rp(l,o){kc=Fc=!0;var c=l.pending;c===null?o.next=o:(o.next=c.next,c.next=o),l.pending=o}function L0(l,o,c){if((c&4194048)!==0){var d=o.lanes;d&=l.pendingLanes,c|=d,o.lanes=c,zl(l,c)}}var fh={readContext:_e,use:of,useCallback:il,useContext:il,useEffect:il,useImperativeHandle:il,useLayoutEffect:il,useInsertionEffect:il,useMemo:il,useReducer:il,useRef:il,useState:il,useDebugValue:il,useDeferredValue:il,useTransition:il,useSyncExternalStore:il,useId:il,useHostTransitionStatus:il,useFormState:il,useActionState:il,useOptimistic:il,useMemoCache:il,useCacheRefresh:il};fh.useEffectEvent=il;var $x={readContext:_e,use:of,useCallback:function(l,o){return Jl().memoizedState=[l,o===void 0?null:o],l},useContext:_e,useEffect:Op,useImperativeHandle:function(l,o,c){c=c!=null?c.concat([l]):null,rf(4194308,4,Ap.bind(null,o,l),c)},useLayoutEffect:function(l,o){return rf(4194308,4,l,o)},useInsertionEffect:function(l,o){rf(4,2,l,o)},useMemo:function(l,o){var c=Jl();o=o===void 0?null:o;var d=l();if(ls){En(!0);try{l()}finally{En(!1)}}return c.memoizedState=[d,o],d},useReducer:function(l,o,c){var d=Jl();if(c!==void 0){var v=c(o);if(ls){En(!0);try{c(o)}finally{En(!1)}}}else v=o;return d.memoizedState=d.baseState=v,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:l,lastRenderedState:v},d.queue=l,l=l.dispatch=_x.bind(null,zt,l),[d.memoizedState,l]},useRef:function(l){var o=Jl();return l={current:l},o.memoizedState=l},useState:function(l){l=O0(l);var o=l.queue,c=Dp.bind(null,zt,o);return o.dispatch=c,[l.memoizedState,c]},useDebugValue:wi,useDeferredValue:function(l,o){var c=Jl();return ch(c,l,o)},useTransition:function(){var l=O0(!1);return l=zp.bind(null,zt,l.queue,!0,!1),Jl().memoizedState=l,[!1,l]},useSyncExternalStore:function(l,o,c){var d=zt,v=Jl();if(Qt){if(c===void 0)throw Error(s(407));c=c()}else{if(c=o(),An===null)throw Error(s(349));(kt&127)!==0||oh(d,o,c)}v.memoizedState=c;var x={value:c,getSnapshot:o};return v.queue=x,Op(Ep.bind(null,d,x,l),[l]),d.flags|=2048,Xc(9,{destroy:void 0},T0.bind(null,d,x,c,o),null),c},useId:function(){var l=Jl(),o=An.identifierPrefix;if(Qt){var c=Ei,d=Wa;c=(d&~(1<<32-jt(d)-1)).toString(32)+c,o="_"+o+"R_"+c,c=th++,0<c&&(o+="H"+c.toString(32)),o+="_"}else c=jx++,o="_"+o+"r_"+c.toString(32)+"_";return l.memoizedState=o},useHostTransitionStatus:H0,useFormState:z0,useActionState:z0,useOptimistic:function(l){var o=Jl();o.memoizedState=o.baseState=l;var c={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return o.queue=c,o=Is.bind(null,zt,!0,c),c.dispatch=o,[l,o]},useMemoCache:vp,useCacheRefresh:function(){return Jl().memoizedState=fr.bind(null,zt)},useEffectEvent:function(l){var o=Jl(),c={impl:l};return o.memoizedState=c,function(){if((un&2)!==0)throw Error(s(440));return c.impl.apply(void 0,arguments)}}},Np={readContext:_e,use:of,useCallback:Mp,useContext:_e,useEffect:wp,useImperativeHandle:B0,useInsertionEffect:jp,useLayoutEffect:$0,useMemo:Dx,useReducer:cr,useRef:N0,useState:function(){return cr(sr)},useDebugValue:wi,useDeferredValue:function(l,o){var c=gl();return ur(c,bn.memoizedState,l,o)},useTransition:function(){var l=cr(sr)[0],o=gl().memoizedState;return[typeof l=="boolean"?l:Gc(l),o]},useSyncExternalStore:C0,useId:Nx,useHostTransitionStatus:H0,useFormState:zx,useActionState:zx,useOptimistic:function(l,o){var c=gl();return Kl(c,bn,l,o)},useMemoCache:vp,useCacheRefresh:U0};Np.useEffectEvent=sh;var Bx={readContext:_e,use:of,useCallback:Mp,useContext:_e,useEffect:wp,useImperativeHandle:B0,useInsertionEffect:jp,useLayoutEffect:$0,useMemo:Dx,useReducer:xp,useRef:N0,useState:function(){return xp(sr)},useDebugValue:wi,useDeferredValue:function(l,o){var c=gl();return bn===null?ch(c,l,o):ur(c,bn.memoizedState,l,o)},useTransition:function(){var l=xp(sr)[0],o=gl().memoizedState;return[typeof l=="boolean"?l:Gc(l),o]},useSyncExternalStore:C0,useId:Nx,useHostTransitionStatus:H0,useFormState:R0,useActionState:R0,useOptimistic:function(l,o){var c=gl();return bn!==null?Kl(c,bn,l,o):(c.baseState=l,[l,c.queue.dispatch])},useMemoCache:vp,useCacheRefresh:U0};Bx.useEffectEvent=sh;function Pc(l,o,c,d){o=l.memoizedState,c=c(d,o),c=c==null?o:O({},o,c),l.memoizedState=c,l.lanes===0&&(l.updateQueue.baseState=c)}var Ko={enqueueSetState:function(l,o,c){l=l._reactInternals;var d=lo(),v=ns(d);v.payload=o,c!=null&&(v.callback=c),o=So(l,v,d),o!==null&&(ka(o,l,d),qs(o,l,d))},enqueueReplaceState:function(l,o,c){l=l._reactInternals;var d=lo(),v=ns(d);v.tag=1,v.payload=o,c!=null&&(v.callback=c),o=So(l,v,d),o!==null&&(ka(o,l,d),qs(o,l,d))},enqueueForceUpdate:function(l,o){l=l._reactInternals;var c=lo(),d=ns(c);d.tag=2,o!=null&&(d.callback=o),o=So(l,d,c),o!==null&&(ka(o,l,c),qs(o,l,c))}};function q0(l,o,c,d,v,x,M){return l=l.stateNode,typeof l.shouldComponentUpdate=="function"?l.shouldComponentUpdate(d,x,M):o.prototype&&o.prototype.isPureReactComponent?!Yo(c,d)||!Yo(v,x):!0}function Hx(l,o,c,d){l=o.state,typeof o.componentWillReceiveProps=="function"&&o.componentWillReceiveProps(c,d),typeof o.UNSAFE_componentWillReceiveProps=="function"&&o.UNSAFE_componentWillReceiveProps(c,d),o.state!==l&&Ko.enqueueReplaceState(o,o.state,null)}function Gs(l,o){var c=o;if("ref"in o){c={};for(var d in o)d!=="ref"&&(c[d]=o[d])}if(l=l.defaultProps){c===o&&(c=O({},c));for(var v in l)c[v]===void 0&&(c[v]=l[v])}return c}function _p(l){Rc(l)}function V0(l){console.error(l)}function $p(l){Rc(l)}function ff(l,o){try{var c=l.onUncaughtError;c(o.value,{componentStack:o.stack})}catch(d){setTimeout(function(){throw d})}}function dh(l,o,c){try{var d=l.onCaughtError;d(c.value,{componentStack:c.stack,errorBoundary:o.tag===1?o.stateNode:null})}catch(v){setTimeout(function(){throw v})}}function F0(l,o,c){return c=ns(c),c.tag=3,c.payload={element:null},c.callback=function(){ff(l,o)},c}function k0(l){return l=ns(l),l.tag=3,l}function I0(l,o,c,d){var v=c.type.getDerivedStateFromError;if(typeof v=="function"){var x=d.value;l.payload=function(){return v(x)},l.callback=function(){dh(o,c,d)}}var M=c.stateNode;M!==null&&typeof M.componentDidCatch=="function"&&(l.callback=function(){dh(o,c,d),typeof v!="function"&&(Kn===null?Kn=new Set([this]):Kn.add(this));var I=d.stack;this.componentDidCatch(d.value,{componentStack:I!==null?I:""})})}function v2(l,o,c,d,v){if(c.flags|=32768,d!==null&&typeof d=="object"&&typeof d.then=="function"){if(o=c.alternate,o!==null&&Zl(o,c,v,!0),c=Ba.current,c!==null){switch(c.tag){case 31:case 13:return xo===null?eg():c.alternate===null&&Vn===0&&(Vn=3),c.flags&=-257,c.flags|=65536,c.lanes=v,d===Lc?c.flags|=16384:(o=c.updateQueue,o===null?c.updateQueue=new Set([d]):o.add(d),wh(l,d,v)),!1;case 22:return c.flags|=65536,d===Lc?c.flags|=16384:(o=c.updateQueue,o===null?(o={transitions:null,markerInstances:null,retryQueue:new Set([d])},c.updateQueue=o):(c=o.retryQueue,c===null?o.retryQueue=new Set([d]):c.add(d)),wh(l,d,v)),!1}throw Error(s(435,c.tag))}return wh(l,d,v),eg(),!1}if(Qt)return o=Ba.current,o!==null?((o.flags&65536)===0&&(o.flags|=256),o.flags|=65536,o.lanes=v,d!==nr&&(l=Error(s(422),{cause:d}),Ju(go(l,c)))):(d!==nr&&(o=Error(s(423),{cause:d}),Ju(go(o,c))),l=l.current.alternate,l.flags|=65536,v&=-v,l.lanes|=v,d=go(d,c),v=F0(l.stateNode,d,v),mp(l,v),Vn!==4&&(Vn=2)),!1;var x=Error(s(520),{cause:d});if(x=go(x,c),Eh===null?Eh=[x]:Eh.push(x),Vn!==4&&(Vn=2),o===null)return!0;d=go(d,c),c=o;do{switch(c.tag){case 3:return c.flags|=65536,l=v&-v,c.lanes|=l,l=F0(c.stateNode,d,l),mp(c,l),!1;case 1:if(o=c.type,x=c.stateNode,(c.flags&128)===0&&(typeof o.getDerivedStateFromError=="function"||x!==null&&typeof x.componentDidCatch=="function"&&(Kn===null||!Kn.has(x))))return c.flags|=65536,v&=-v,c.lanes|=v,v=k0(v),I0(v,l,c,d),mp(c,v),!1}c=c.return}while(c!==null);return!1}var Bp=Error(s(461)),Ol=!1;function Gn(l,o,c,d){o.child=l===null?x0(o,null,c,d):Ls(o,l.child,c,d)}function G0(l,o,c,d,v){c=c.render;var x=o.ref;if("ref"in d){var M={};for(var I in d)I!=="ref"&&(M[I]=d[I])}else M=d;return St(o),d=nh(l,o,c,M,x,v),I=bp(),l!==null&&!Ol?(Ic(l,o,v),To(l,o,v)):(Qt&&I&&Qu(o),o.flags|=1,Gn(l,o,d,v),o.child)}function Y0(l,o,c,d,v){if(l===null){var x=c.type;return typeof x=="function"&&!Nc(x)&&x.defaultProps===void 0&&c.compare===null?(o.tag=15,o.type=x,X0(l,o,x,d,v)):(l=rp(c.type,null,d,o,o.mode,v),l.ref=o.ref,l.return=o,o.child=l)}if(x=l.child,!Lp(l,v)){var M=x.memoizedProps;if(c=c.compare,c=c!==null?c:Yo,c(M,d)&&l.ref===o.ref)return To(l,o,v)}return o.flags|=1,l=Zr(x,d),l.ref=o.ref,l.return=o,o.child=l}function X0(l,o,c,d,v){if(l!==null){var x=l.memoizedProps;if(Yo(x,d)&&l.ref===o.ref)if(Ol=!1,o.pendingProps=d=x,Lp(l,v))(l.flags&131072)!==0&&(Ol=!0);else return o.lanes=l.lanes,To(l,o,v)}return Hp(l,o,c,d,v)}function Ux(l,o,c,d){var v=d.children,x=l!==null?l.memoizedState:null;if(l===null&&o.stateNode===null&&(o.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),d.mode==="hidden"){if((o.flags&128)!==0){if(x=x!==null?x.baseLanes|c:c,l!==null){for(d=o.child=l.child,v=0;d!==null;)v=v|d.lanes|d.childLanes,d=d.sibling;d=v&~x}else d=0,o.child=null;return Ua(l,o,x,c,d)}if((c&536870912)!==0)o.memoizedState={baseLanes:0,cachePool:null},l!==null&&Ku(o,x!==null?x.cachePool:null),x!==null?wx(o,x):eh(),gp(o);else return d=o.lanes=536870912,Ua(l,o,x!==null?x.baseLanes|c:c,c,d)}else x!==null?(Ku(o,x.cachePool),wx(o,x),Oi(),o.memoizedState=null):(l!==null&&Ku(o,null),eh(),Oi());return Gn(l,o,v,c),o.child}function Ys(l,o){return l!==null&&l.tag===22||o.stateNode!==null||(o.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),o.sibling}function Ua(l,o,c,d,v){var x=vo();return x=x===null?null:{parent:Cl._currentValue,pool:x},o.memoizedState={baseLanes:c,cachePool:x},l!==null&&Ku(o,null),eh(),gp(o),l!==null&&Zl(l,o,d,!0),o.childLanes=v,null}function hh(l,o){return o=gh({mode:o.mode,children:o.children},l.mode),o.ref=l.ref,l.child=o,o.return=l,o}function La(l,o,c){return Ls(o,l.child,null,c),l=hh(o,o.pendingProps),l.flags|=2,Ha(o),o.memoizedState=null,l}function Lx(l,o,c){var d=o.pendingProps,v=(o.flags&128)!==0;if(o.flags&=-129,l===null){if(Qt){if(d.mode==="hidden")return l=hh(o,d),o.lanes=536870912,Ys(null,l);if(nf(o),(l=Ln)?(l=S1(l,Hl),l=l!==null&&l.data==="&"?l:null,l!==null&&(o.memoizedState={dehydrated:l,treeContext:xi!==null?{id:Wa,overflow:Ei}:null,retryLane:536870912,hydrationErrors:null},c=d0(l),c.return=o,o.child=c,Ql=o,Ln=null)):l=null,l===null)throw Jo(o);return o.lanes=536870912,null}return hh(o,d)}var x=l.memoizedState;if(x!==null){var M=x.dehydrated;if(nf(o),v)if(o.flags&256)o.flags&=-257,o=La(l,o,c);else if(o.memoizedState!==null)o.child=l.child,o.flags|=128,o=null;else throw Error(s(558));else if(Ol||Zl(l,o,c,!1),v=(c&l.childLanes)!==0,Ol||v){if(d=An,d!==null&&(M=dl(d,c),M!==0&&M!==x.retryLane))throw x.retryLane=M,Qr(l,M),ka(d,l,M),Bp;eg(),o=La(l,o,c)}else l=x.treeContext,Ln=Ia(M.nextSibling),Ql=o,Qt=!0,tr=null,Hl=!1,l!==null&&kd(o,l),o=hh(o,d),o.flags|=4096;return o}return l=Zr(l.child,{mode:d.mode,children:d.children}),l.ref=o.ref,o.child=l,l.return=o,l}function Eo(l,o){var c=o.ref;if(c===null)l!==null&&l.ref!==null&&(o.flags|=4194816);else{if(typeof c!="function"&&typeof c!="object")throw Error(s(284));(l===null||l.ref!==c)&&(o.flags|=4194816)}}function Hp(l,o,c,d,v){return St(o),c=nh(l,o,c,d,void 0,v),d=bp(),l!==null&&!Ol?(Ic(l,o,v),To(l,o,v)):(Qt&&d&&Qu(o),o.flags|=1,Gn(l,o,c,v),o.child)}function Xs(l,o,c,d,v,x){return St(o),o.updateQueue=null,c=Ax(o,d,c,v),yp(l),d=bp(),l!==null&&!Ol?(Ic(l,o,x),To(l,o,x)):(Qt&&d&&Qu(o),o.flags|=1,Gn(l,o,c,x),o.child)}function P0(l,o,c,d,v){if(St(o),o.stateNode===null){var x=Na,M=c.contextType;typeof M=="object"&&M!==null&&(x=_e(M)),x=new c(d,x),o.memoizedState=x.state!==null&&x.state!==void 0?x.state:null,x.updater=Ko,o.stateNode=x,x._reactInternals=o,x=o.stateNode,x.props=d,x.state=o.memoizedState,x.refs={},Wd(o),M=c.contextType,x.context=typeof M=="object"&&M!==null?_e(M):Na,x.state=o.memoizedState,M=c.getDerivedStateFromProps,typeof M=="function"&&(Pc(o,c,M,d),x.state=o.memoizedState),typeof c.getDerivedStateFromProps=="function"||typeof x.getSnapshotBeforeUpdate=="function"||typeof x.UNSAFE_componentWillMount!="function"&&typeof x.componentWillMount!="function"||(M=x.state,typeof x.componentWillMount=="function"&&x.componentWillMount(),typeof x.UNSAFE_componentWillMount=="function"&&x.UNSAFE_componentWillMount(),M!==x.state&&Ko.enqueueReplaceState(x,x.state,null),or(o,d,x,v),Vs(),x.state=o.memoizedState),typeof x.componentDidMount=="function"&&(o.flags|=4194308),d=!0}else if(l===null){x=o.stateNode;var I=o.memoizedProps,W=Gs(c,I);x.props=W;var be=x.context,je=c.contextType;M=Na,typeof je=="object"&&je!==null&&(M=_e(je));var Ne=c.getDerivedStateFromProps;je=typeof Ne=="function"||typeof x.getSnapshotBeforeUpdate=="function",I=o.pendingProps!==I,je||typeof x.UNSAFE_componentWillReceiveProps!="function"&&typeof x.componentWillReceiveProps!="function"||(I||be!==M)&&Hx(o,x,d,M),ts=!1;var ve=o.memoizedState;x.state=ve,or(o,d,x,v),Vs(),be=o.memoizedState,I||ve!==be||ts?(typeof Ne=="function"&&(Pc(o,c,Ne,d),be=o.memoizedState),(W=ts||q0(o,c,W,d,ve,be,M))?(je||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"&&(o.flags|=4194308)):(typeof x.componentDidMount=="function"&&(o.flags|=4194308),o.memoizedProps=d,o.memoizedState=be),x.props=d,x.state=be,x.context=M,d=W):(typeof x.componentDidMount=="function"&&(o.flags|=4194308),d=!1)}else{x=o.stateNode,hp(l,o),M=o.memoizedProps,je=Gs(c,M),x.props=je,Ne=o.pendingProps,ve=x.context,be=c.contextType,W=Na,typeof be=="object"&&be!==null&&(W=_e(be)),I=c.getDerivedStateFromProps,(be=typeof I=="function"||typeof x.getSnapshotBeforeUpdate=="function")||typeof x.UNSAFE_componentWillReceiveProps!="function"&&typeof x.componentWillReceiveProps!="function"||(M!==Ne||ve!==W)&&Hx(o,x,d,W),ts=!1,ve=o.memoizedState,x.state=ve,or(o,d,x,v),Vs();var Te=o.memoizedState;M!==Ne||ve!==Te||ts||l!==null&&l.dependencies!==null&&$c(l.dependencies)?(typeof I=="function"&&(Pc(o,c,I,d),Te=o.memoizedState),(je=ts||q0(o,c,je,d,ve,Te,W)||l!==null&&l.dependencies!==null&&$c(l.dependencies))?(be||typeof x.UNSAFE_componentWillUpdate!="function"&&typeof x.componentWillUpdate!="function"||(typeof x.componentWillUpdate=="function"&&x.componentWillUpdate(d,Te,W),typeof x.UNSAFE_componentWillUpdate=="function"&&x.UNSAFE_componentWillUpdate(d,Te,W)),typeof x.componentDidUpdate=="function"&&(o.flags|=4),typeof x.getSnapshotBeforeUpdate=="function"&&(o.flags|=1024)):(typeof x.componentDidUpdate!="function"||M===l.memoizedProps&&ve===l.memoizedState||(o.flags|=4),typeof x.getSnapshotBeforeUpdate!="function"||M===l.memoizedProps&&ve===l.memoizedState||(o.flags|=1024),o.memoizedProps=d,o.memoizedState=Te),x.props=d,x.state=Te,x.context=W,d=je):(typeof x.componentDidUpdate!="function"||M===l.memoizedProps&&ve===l.memoizedState||(o.flags|=4),typeof x.getSnapshotBeforeUpdate!="function"||M===l.memoizedProps&&ve===l.memoizedState||(o.flags|=1024),d=!1)}return x=d,Eo(l,o),d=(o.flags&128)!==0,x||d?(x=o.stateNode,c=d&&typeof c.getDerivedStateFromError!="function"?null:x.render(),o.flags|=1,l!==null&&d?(o.child=Ls(o,l.child,null,v),o.child=Ls(o,null,c,v)):Gn(l,o,c,v),o.memoizedState=x.state,l=o.child):l=To(l,o,v),l}function ji(l,o,c,d){return Ns(),o.flags|=256,Gn(l,o,c,d),o.child}var mh={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function ph(l){return{baseLanes:l,cachePool:Hc()}}function Co(l,o,c){return l=l!==null?l.childLanes&~c:0,o&&(l|=Fa),l}function Q0(l,o,c){var d=o.pendingProps,v=!1,x=(o.flags&128)!==0,M;if((M=x)||(M=l!==null&&l.memoizedState===null?!1:(Jn.current&2)!==0),M&&(v=!0,o.flags&=-129),M=(o.flags&32)!==0,o.flags&=-33,l===null){if(Qt){if(v?ir(o):Oi(),(l=Ln)?(l=S1(l,Hl),l=l!==null&&l.data!=="&"?l:null,l!==null&&(o.memoizedState={dehydrated:l,treeContext:xi!==null?{id:Wa,overflow:Ei}:null,retryLane:536870912,hydrationErrors:null},c=d0(l),c.return=o,o.child=c,Ql=o,Ln=null)):l=null,l===null)throw Jo(o);return ec(l)?o.lanes=32:o.lanes=536870912,null}var I=d.children;return d=d.fallback,v?(Oi(),v=o.mode,I=gh({mode:"hidden",children:I},v),d=Jr(d,v,c,null),I.return=o,d.return=o,I.sibling=d,o.child=I,d=o.child,d.memoizedState=ph(c),d.childLanes=Co(l,M,c),o.memoizedState=mh,Ys(null,d)):(ir(o),Ps(o,I))}var W=l.memoizedState;if(W!==null&&(I=W.dehydrated,I!==null)){if(x)o.flags&256?(ir(o),o.flags&=-257,o=Qc(l,o,c)):o.memoizedState!==null?(Oi(),o.child=l.child,o.flags|=128,o=null):(Oi(),I=d.fallback,v=o.mode,d=gh({mode:"visible",children:d.children},v),I=Jr(I,v,c,null),I.flags|=2,d.return=o,I.return=o,d.sibling=I,o.child=d,Ls(o,l.child,null,c),d=o.child,d.memoizedState=ph(c),d.childLanes=Co(l,M,c),o.memoizedState=mh,o=Ys(null,d));else if(ir(o),ec(I)){if(M=I.nextSibling&&I.nextSibling.dataset,M)var be=M.dgst;M=be,d=Error(s(419)),d.stack="",d.digest=M,Ju({value:d,source:null,stack:null}),o=Qc(l,o,c)}else if(Ol||Zl(l,o,c,!1),M=(c&l.childLanes)!==0,Ol||M){if(M=An,M!==null&&(d=dl(M,c),d!==0&&d!==W.retryLane))throw W.retryLane=d,Qr(l,d),ka(M,l,d),Bp;ti(I)||eg(),o=Qc(l,o,c)}else ti(I)?(o.flags|=192,o.child=l.child,o=null):(l=W.treeContext,Ln=Ia(I.nextSibling),Ql=o,Qt=!0,tr=null,Hl=!1,l!==null&&kd(o,l),o=Ps(o,d.children),o.flags|=4096);return o}return v?(Oi(),I=d.fallback,v=o.mode,W=l.child,be=W.sibling,d=Zr(W,{mode:"hidden",children:d.children}),d.subtreeFlags=W.subtreeFlags&65011712,be!==null?I=Zr(be,I):(I=Jr(I,v,c,null),I.flags|=2),I.return=o,d.return=o,d.sibling=I,o.child=d,Ys(null,d),d=o.child,I=l.child.memoizedState,I===null?I=ph(c):(v=I.cachePool,v!==null?(W=Cl._currentValue,v=v.parent!==W?{parent:W,pool:W}:v):v=Hc(),I={baseLanes:I.baseLanes|c,cachePool:v}),d.memoizedState=I,d.childLanes=Co(l,M,c),o.memoizedState=mh,Ys(l.child,d)):(ir(o),c=l.child,l=c.sibling,c=Zr(c,{mode:"visible",children:d.children}),c.return=o,c.sibling=null,l!==null&&(M=o.deletions,M===null?(o.deletions=[l],o.flags|=16):M.push(l)),o.child=c,o.memoizedState=null,c)}function Ps(l,o){return o=gh({mode:"visible",children:o},l.mode),o.return=l,l.child=o}function gh(l,o){return l=ml(22,l,null,o),l.lanes=0,l}function Qc(l,o,c){return Ls(o,l.child,null,c),l=Ps(o,o.pendingProps.children),l.flags|=2,o.memoizedState=null,l}function Zc(l,o,c){l.lanes|=o;var d=l.alternate;d!==null&&(d.lanes|=o),fp(l.return,o,c)}function Up(l,o,c,d,v,x){var M=l.memoizedState;M===null?l.memoizedState={isBackwards:o,rendering:null,renderingStartTime:0,last:d,tail:c,tailMode:v,treeForkCount:x}:(M.isBackwards=o,M.rendering=null,M.renderingStartTime=0,M.last=d,M.tail=c,M.tailMode=v,M.treeForkCount=x)}function Z0(l,o,c){var d=o.pendingProps,v=d.revealOrder,x=d.tail;d=d.children;var M=Jn.current,I=(M&2)!==0;if(I?(M=M&1|2,o.flags|=128):M&=1,Ae(Jn,M),Gn(l,o,d,c),d=Qt?El:0,!I&&l!==null&&(l.flags&128)!==0)e:for(l=o.child;l!==null;){if(l.tag===13)l.memoizedState!==null&&Zc(l,c,o);else if(l.tag===19)Zc(l,c,o);else if(l.child!==null){l.child.return=l,l=l.child;continue}if(l===o)break e;for(;l.sibling===null;){if(l.return===null||l.return===o)break e;l=l.return}l.sibling.return=l.return,l=l.sibling}switch(v){case"forwards":for(c=o.child,v=null;c!==null;)l=c.alternate,l!==null&&lf(l)===null&&(v=c),c=c.sibling;c=v,c===null?(v=o.child,o.child=null):(v=c.sibling,c.sibling=null),Up(o,!1,v,c,x,d);break;case"backwards":case"unstable_legacy-backwards":for(c=null,v=o.child,o.child=null;v!==null;){if(l=v.alternate,l!==null&&lf(l)===null){o.child=v;break}l=v.sibling,v.sibling=c,c=v,v=l}Up(o,!0,c,null,x,d);break;case"together":Up(o,!1,null,null,void 0,d);break;default:o.memoizedState=null}return o.child}function To(l,o,c){if(l!==null&&(o.dependencies=l.dependencies),Di|=o.lanes,(c&o.childLanes)===0)if(l!==null){if(Zl(l,o,c,!1),(c&o.childLanes)===0)return null}else return null;if(l!==null&&o.child!==l.child)throw Error(s(153));if(o.child!==null){for(l=o.child,c=Zr(l,l.pendingProps),o.child=c,c.return=o;l.sibling!==null;)l=l.sibling,c=c.sibling=Zr(l,l.pendingProps),c.return=o;c.sibling=null}return o.child}function Lp(l,o){return(l.lanes&o)!==0?!0:(l=l.dependencies,!!(l!==null&&$c(l)))}function qp(l,o,c){switch(o.tag){case 3:Ie(o,o.stateNode.containerInfo),$a(o,Cl,l.memoizedState.cache),Ns();break;case 27:case 5:ut(o);break;case 4:Ie(o,o.stateNode.containerInfo);break;case 10:$a(o,o.type,o.memoizedProps.value);break;case 31:if(o.memoizedState!==null)return o.flags|=128,nf(o),null;break;case 13:var d=o.memoizedState;if(d!==null)return d.dehydrated!==null?(ir(o),o.flags|=128,null):(c&o.child.childLanes)!==0?Q0(l,o,c):(ir(o),l=To(l,o,c),l!==null?l.sibling:null);ir(o);break;case 19:var v=(l.flags&128)!==0;if(d=(c&o.childLanes)!==0,d||(Zl(l,o,c,!1),d=(c&o.childLanes)!==0),v){if(d)return Z0(l,o,c);o.flags|=128}if(v=o.memoizedState,v!==null&&(v.rendering=null,v.tail=null,v.lastEffect=null),Ae(Jn,Jn.current),d)break;return null;case 22:return o.lanes=0,Ux(l,o,c,o.pendingProps);case 24:$a(o,Cl,l.memoizedState.cache)}return To(l,o,c)}function J0(l,o,c){if(l!==null)if(l.memoizedProps!==o.pendingProps)Ol=!0;else{if(!Lp(l,c)&&(o.flags&128)===0)return Ol=!1,qp(l,o,c);Ol=(l.flags&131072)!==0}else Ol=!1,Qt&&(o.flags&1048576)!==0&&m0(o,El,o.index);switch(o.lanes=0,o.tag){case 16:e:{var d=o.pendingProps;if(l=Bs(o.elementType),o.type=l,typeof l=="function")Nc(l)?(d=Gs(l,d),o.tag=1,o=P0(null,o,l,d,c)):(o.tag=0,o=Hp(null,o,l,d,c));else{if(l!=null){var v=l.$$typeof;if(v===k){o.tag=11,o=G0(null,o,l,d,c);break e}else if(v===P){o.tag=14,o=Y0(null,o,l,d,c);break e}}throw o=ge(l)||l,Error(s(306,o,""))}}return o;case 0:return Hp(l,o,o.type,o.pendingProps,c);case 1:return d=o.type,v=Gs(d,o.pendingProps),P0(l,o,d,v,c);case 3:e:{if(Ie(o,o.stateNode.containerInfo),l===null)throw Error(s(387));d=o.pendingProps;var x=o.memoizedState;v=x.element,hp(l,o),or(o,d,null,c);var M=o.memoizedState;if(d=M.cache,$a(o,Cl,d),d!==x.cache&&ar(o,[Cl],c,!0),Vs(),d=M.element,x.isDehydrated)if(x={element:d,isDehydrated:!1,cache:M.cache},o.updateQueue.baseState=x,o.memoizedState=x,o.flags&256){o=ji(l,o,d,c);break e}else if(d!==v){v=go(Error(s(424)),o),Ju(v),o=ji(l,o,d,c);break e}else{switch(l=o.stateNode.containerInfo,l.nodeType){case 9:l=l.body;break;default:l=l.nodeName==="HTML"?l.ownerDocument.body:l}for(Ln=Ia(l.firstChild),Ql=o,Qt=!0,tr=null,Hl=!0,c=x0(o,null,d,c),o.child=c;c;)c.flags=c.flags&-3|4096,c=c.sibling}else{if(Ns(),d===v){o=To(l,o,c);break e}Gn(l,o,d,c)}o=o.child}return o;case 26:return Eo(l,o),l===null?(c=Nf(o.type,null,o.pendingProps,null))?o.memoizedState=c:Qt||(c=o.type,l=o.pendingProps,d=Ws(Ve.current).createElement(c),d[Mt]=o,d[Un]=l,fa(d,c,l),Tt(d),o.stateNode=d):o.memoizedState=Nf(o.type,l.memoizedProps,o.pendingProps,l.memoizedState),null;case 27:return ut(o),l===null&&Qt&&(d=o.stateNode=Df(o.type,o.pendingProps,Ve.current),Ql=o,Hl=!0,v=Ln,Ni(o.type)?($h=v,Ln=Ia(d.firstChild)):Ln=v),Gn(l,o,o.pendingProps.children,c),Eo(l,o),l===null&&(o.flags|=4194304),o.child;case 5:return l===null&&Qt&&((v=d=Ln)&&(d=E2(d,o.type,o.pendingProps,Hl),d!==null?(o.stateNode=d,Ql=o,Ln=Ia(d.firstChild),Hl=!1,v=!0):v=!1),v||Jo(o)),ut(o),v=o.type,x=o.pendingProps,M=l!==null?l.memoizedProps:null,d=x.children,Mf(v,x)?d=null:M!==null&&Mf(v,M)&&(o.flags|=32),o.memoizedState!==null&&(v=nh(l,o,b2,null,null,c),Uh._currentValue=v),Eo(l,o),Gn(l,o,d,c),o.child;case 6:return l===null&&Qt&&((l=c=Ln)&&(c=Lt(c,o.pendingProps,Hl),c!==null?(o.stateNode=c,Ql=o,Ln=null,l=!0):l=!1),l||Jo(o)),null;case 13:return Q0(l,o,c);case 4:return Ie(o,o.stateNode.containerInfo),d=o.pendingProps,l===null?o.child=Ls(o,null,d,c):Gn(l,o,d,c),o.child;case 11:return G0(l,o,o.type,o.pendingProps,c);case 7:return Gn(l,o,o.pendingProps,c),o.child;case 8:return Gn(l,o,o.pendingProps.children,c),o.child;case 12:return Gn(l,o,o.pendingProps.children,c),o.child;case 10:return d=o.pendingProps,$a(o,o.type,d.value),Gn(l,o,d.children,c),o.child;case 9:return v=o.type._context,d=o.pendingProps.children,St(o),v=_e(v),d=d(v),o.flags|=1,Gn(l,o,d,c),o.child;case 14:return Y0(l,o,o.type,o.pendingProps,c);case 15:return X0(l,o,o.type,o.pendingProps,c);case 19:return Z0(l,o,c);case 31:return Lx(l,o,c);case 22:return Ux(l,o,c,o.pendingProps);case 24:return St(o),d=_e(Cl),l===null?(v=vo(),v===null&&(v=An,x=Yd(),v.pooledCache=x,x.refCount++,x!==null&&(v.pooledCacheLanes|=c),v=x),o.memoizedState={parent:d,cache:v},Wd(o),$a(o,Cl,v)):((l.lanes&c)!==0&&(hp(l,o),or(o,null,null,c),Vs()),v=l.memoizedState,x=o.memoizedState,v.parent!==d?(v={parent:d,cache:d},o.memoizedState=v,o.lanes===0&&(o.memoizedState=o.updateQueue.baseState=v),$a(o,Cl,d)):(d=x.cache,$a(o,Cl,d),d!==v.cache&&ar(o,[Cl],c,!0))),Gn(l,o,o.pendingProps.children,c),o.child;case 29:throw o.pendingProps}throw Error(s(156,o.tag))}function dr(l){l.flags|=4}function K0(l,o,c,d,v){if((o=(l.mode&32)!==0)&&(o=!1),o){if(l.flags|=16777216,(v&335544128)===v)if(l.stateNode.complete)l.flags|=8192;else if(Qx())l.flags|=8192;else throw Hs=Lc,Uc}else l.flags&=-16777217}function W0(l,o){if(o.type!=="stylesheet"||(o.state.loading&4)!==0)l.flags&=-16777217;else if(l.flags|=16777216,!oo(o))if(Qx())l.flags|=8192;else throw Hs=Lc,Uc}function Ea(l,o){o!==null&&(l.flags|=4),l.flags&16384&&(o=l.tag!==22?Gl():536870912,l.lanes|=o,rl|=o)}function df(l,o){if(!Qt)switch(l.tailMode){case"hidden":o=l.tail;for(var c=null;o!==null;)o.alternate!==null&&(c=o),o=o.sibling;c===null?l.tail=null:c.sibling=null;break;case"collapsed":c=l.tail;for(var d=null;c!==null;)c.alternate!==null&&(d=c),c=c.sibling;d===null?o||l.tail===null?l.tail=null:l.tail.sibling=null:d.sibling=null}}function vt(l){var o=l.alternate!==null&&l.alternate.child===l.child,c=0,d=0;if(o)for(var v=l.child;v!==null;)c|=v.lanes|v.childLanes,d|=v.subtreeFlags&65011712,d|=v.flags&65011712,v.return=l,v=v.sibling;else for(v=l.child;v!==null;)c|=v.lanes|v.childLanes,d|=v.subtreeFlags,d|=v.flags,v.return=l,v=v.sibling;return l.subtreeFlags|=d,l.childLanes=c,o}function qx(l,o,c){var d=o.pendingProps;switch(cp(o),o.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return vt(o),null;case 1:return vt(o),null;case 3:return c=o.stateNode,d=null,l!==null&&(d=l.memoizedState.cache),o.memoizedState.cache!==d&&(o.flags|=2048),Ti(Cl),nt(),c.pendingContext&&(c.context=c.pendingContext,c.pendingContext=null),(l===null||l.child===null)&&(lr(o)?dr(o):l===null||l.memoizedState.isDehydrated&&(o.flags&256)===0||(o.flags|=1024,p0())),vt(o),null;case 26:var v=o.type,x=o.memoizedState;return l===null?(dr(o),x!==null?(vt(o),W0(o,x)):(vt(o),K0(o,v,null,d,c))):x?x!==l.memoizedState?(dr(o),vt(o),W0(o,x)):(vt(o),o.flags&=-16777217):(l=l.memoizedProps,l!==d&&dr(o),vt(o),K0(o,v,l,d,c)),null;case 27:if(ze(o),c=Ve.current,v=o.type,l!==null&&o.stateNode!=null)l.memoizedProps!==d&&dr(o);else{if(!d){if(o.stateNode===null)throw Error(s(166));return vt(o),null}l=De.current,lr(o)?Id(o):(l=Df(v,d,c),o.stateNode=l,dr(o))}return vt(o),null;case 5:if(ze(o),v=o.type,l!==null&&o.stateNode!=null)l.memoizedProps!==d&&dr(o);else{if(!d){if(o.stateNode===null)throw Error(s(166));return vt(o),null}if(x=De.current,lr(o))Id(o);else{var M=Ws(Ve.current);switch(x){case 1:x=M.createElementNS("http://www.w3.org/2000/svg",v);break;case 2:x=M.createElementNS("http://www.w3.org/1998/Math/MathML",v);break;default:switch(v){case"svg":x=M.createElementNS("http://www.w3.org/2000/svg",v);break;case"math":x=M.createElementNS("http://www.w3.org/1998/Math/MathML",v);break;case"script":x=M.createElement("div"),x.innerHTML="<script><\/script>",x=x.removeChild(x.firstChild);break;case"select":x=typeof d.is=="string"?M.createElement("select",{is:d.is}):M.createElement("select"),d.multiple?x.multiple=!0:d.size&&(x.size=d.size);break;default:x=typeof d.is=="string"?M.createElement(v,{is:d.is}):M.createElement(v)}}x[Mt]=o,x[Un]=d;e:for(M=o.child;M!==null;){if(M.tag===5||M.tag===6)x.appendChild(M.stateNode);else if(M.tag!==4&&M.tag!==27&&M.child!==null){M.child.return=M,M=M.child;continue}if(M===o)break e;for(;M.sibling===null;){if(M.return===null||M.return===o)break e;M=M.return}M.sibling.return=M.return,M=M.sibling}o.stateNode=x;e:switch(fa(x,v,d),v){case"button":case"input":case"select":case"textarea":d=!!d.autoFocus;break e;case"img":d=!0;break e;default:d=!1}d&&dr(o)}}return vt(o),K0(o,o.type,l===null?null:l.memoizedProps,o.pendingProps,c),null;case 6:if(l&&o.stateNode!=null)l.memoizedProps!==d&&dr(o);else{if(typeof d!="string"&&o.stateNode===null)throw Error(s(166));if(l=Ve.current,lr(o)){if(l=o.stateNode,c=o.memoizedProps,d=null,v=Ql,v!==null)switch(v.tag){case 27:case 5:d=v.memoizedProps}l[Mt]=o,l=!!(l.nodeValue===c||d!==null&&d.suppressHydrationWarning===!0||Cb(l.nodeValue,c)),l||Jo(o,!0)}else l=Ws(l).createTextNode(d),l[Mt]=o,o.stateNode=l}return vt(o),null;case 31:if(c=o.memoizedState,l===null||l.memoizedState!==null){if(d=lr(o),c!==null){if(l===null){if(!d)throw Error(s(318));if(l=o.memoizedState,l=l!==null?l.dehydrated:null,!l)throw Error(s(557));l[Mt]=o}else Ns(),(o.flags&128)===0&&(o.memoizedState=null),o.flags|=4;vt(o),l=!1}else c=p0(),l!==null&&l.memoizedState!==null&&(l.memoizedState.hydrationErrors=c),l=!0;if(!l)return o.flags&256?(Ha(o),o):(Ha(o),null);if((o.flags&128)!==0)throw Error(s(558))}return vt(o),null;case 13:if(d=o.memoizedState,l===null||l.memoizedState!==null&&l.memoizedState.dehydrated!==null){if(v=lr(o),d!==null&&d.dehydrated!==null){if(l===null){if(!v)throw Error(s(318));if(v=o.memoizedState,v=v!==null?v.dehydrated:null,!v)throw Error(s(317));v[Mt]=o}else Ns(),(o.flags&128)===0&&(o.memoizedState=null),o.flags|=4;vt(o),v=!1}else v=p0(),l!==null&&l.memoizedState!==null&&(l.memoizedState.hydrationErrors=v),v=!0;if(!v)return o.flags&256?(Ha(o),o):(Ha(o),null)}return Ha(o),(o.flags&128)!==0?(o.lanes=c,o):(c=d!==null,l=l!==null&&l.memoizedState!==null,c&&(d=o.child,v=null,d.alternate!==null&&d.alternate.memoizedState!==null&&d.alternate.memoizedState.cachePool!==null&&(v=d.alternate.memoizedState.cachePool.pool),x=null,d.memoizedState!==null&&d.memoizedState.cachePool!==null&&(x=d.memoizedState.cachePool.pool),x!==v&&(d.flags|=2048)),c!==l&&c&&(o.child.flags|=8192),Ea(o,o.updateQueue),vt(o),null);case 4:return nt(),l===null&&Af(o.stateNode.containerInfo),vt(o),null;case 10:return Ti(o.type),vt(o),null;case 19:if(Se(Jn),d=o.memoizedState,d===null)return vt(o),null;if(v=(o.flags&128)!==0,x=d.rendering,x===null)if(v)df(d,!1);else{if(Vn!==0||l!==null&&(l.flags&128)!==0)for(l=o.child;l!==null;){if(x=lf(l),x!==null){for(o.flags|=128,df(d,!1),l=x.updateQueue,o.updateQueue=l,Ea(o,l),o.subtreeFlags=0,l=c,c=o.child;c!==null;)f0(c,l),c=c.sibling;return Ae(Jn,Jn.current&1|2),Qt&&Zo(o,d.treeForkCount),o.child}l=l.sibling}d.tail!==null&&wt()>mn&&(o.flags|=128,v=!0,df(d,!1),o.lanes=4194304)}else{if(!v)if(l=lf(x),l!==null){if(o.flags|=128,v=!0,l=l.updateQueue,o.updateQueue=l,Ea(o,l),df(d,!0),d.tail===null&&d.tailMode==="hidden"&&!x.alternate&&!Qt)return vt(o),null}else 2*wt()-d.renderingStartTime>mn&&c!==536870912&&(o.flags|=128,v=!0,df(d,!1),o.lanes=4194304);d.isBackwards?(x.sibling=o.child,o.child=x):(l=d.last,l!==null?l.sibling=x:o.child=x,d.last=x)}return d.tail!==null?(l=d.tail,d.rendering=l,d.tail=l.sibling,d.renderingStartTime=wt(),l.sibling=null,c=Jn.current,Ae(Jn,v?c&1|2:c&1),Qt&&Zo(o,d.treeForkCount),l):(vt(o),null);case 22:case 23:return Ha(o),tf(),d=o.memoizedState!==null,l!==null?l.memoizedState!==null!==d&&(o.flags|=8192):d&&(o.flags|=8192),d?(c&536870912)!==0&&(o.flags&128)===0&&(vt(o),o.subtreeFlags&6&&(o.flags|=8192)):vt(o),c=o.updateQueue,c!==null&&Ea(o,c.retryQueue),c=null,l!==null&&l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(c=l.memoizedState.cachePool.pool),d=null,o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(d=o.memoizedState.cachePool.pool),d!==c&&(o.flags|=2048),l!==null&&Se(bo),null;case 24:return c=null,l!==null&&(c=l.memoizedState.cache),o.memoizedState.cache!==c&&(o.flags|=2048),Ti(Cl),vt(o),null;case 25:return null;case 30:return null}throw Error(s(156,o.tag))}function Vx(l,o){switch(cp(o),o.tag){case 1:return l=o.flags,l&65536?(o.flags=l&-65537|128,o):null;case 3:return Ti(Cl),nt(),l=o.flags,(l&65536)!==0&&(l&128)===0?(o.flags=l&-65537|128,o):null;case 26:case 27:case 5:return ze(o),null;case 31:if(o.memoizedState!==null){if(Ha(o),o.alternate===null)throw Error(s(340));Ns()}return l=o.flags,l&65536?(o.flags=l&-65537|128,o):null;case 13:if(Ha(o),l=o.memoizedState,l!==null&&l.dehydrated!==null){if(o.alternate===null)throw Error(s(340));Ns()}return l=o.flags,l&65536?(o.flags=l&-65537|128,o):null;case 19:return Se(Jn),null;case 4:return nt(),null;case 10:return Ti(o.type),null;case 22:case 23:return Ha(o),tf(),l!==null&&Se(bo),l=o.flags,l&65536?(o.flags=l&-65537|128,o):null;case 24:return Ti(Cl),null;case 25:return null;default:return null}}function Fx(l,o){switch(cp(o),o.tag){case 3:Ti(Cl),nt();break;case 26:case 27:case 5:ze(o);break;case 4:nt();break;case 31:o.memoizedState!==null&&Ha(o);break;case 13:Ha(o);break;case 19:Se(Jn);break;case 10:Ti(o.type);break;case 22:case 23:Ha(o),tf(),l!==null&&Se(bo);break;case 24:Ti(Cl)}}function Wo(l,o){try{var c=o.updateQueue,d=c!==null?c.lastEffect:null;if(d!==null){var v=d.next;c=v;do{if((c.tag&l)===l){d=void 0;var x=c.create,M=c.inst;d=x(),M.destroy=d}c=c.next}while(c!==v)}}catch(I){Sn(o,o.return,I)}}function Oo(l,o,c){try{var d=o.updateQueue,v=d!==null?d.lastEffect:null;if(v!==null){var x=v.next;d=x;do{if((d.tag&l)===l){var M=d.inst,I=M.destroy;if(I!==void 0){M.destroy=void 0,v=o;var W=c,be=I;try{be()}catch(je){Sn(v,W,je)}}}d=d.next}while(d!==x)}}catch(je){Sn(o,o.return,je)}}function Vp(l){var o=l.updateQueue;if(o!==null){var c=l.stateNode;try{Fs(o,c)}catch(d){Sn(l,l.return,d)}}}function Qs(l,o,c){c.props=Gs(l.type,l.memoizedProps),c.state=l.memoizedState;try{c.componentWillUnmount()}catch(d){Sn(l,o,d)}}function hr(l,o){try{var c=l.ref;if(c!==null){switch(l.tag){case 26:case 27:case 5:var d=l.stateNode;break;case 30:d=l.stateNode;break;default:d=l.stateNode}typeof c=="function"?l.refCleanup=c(d):c.current=d}}catch(v){Sn(l,o,v)}}function Ai(l,o){var c=l.ref,d=l.refCleanup;if(c!==null)if(typeof d=="function")try{d()}catch(v){Sn(l,o,v)}finally{l.refCleanup=null,l=l.alternate,l!=null&&(l.refCleanup=null)}else if(typeof c=="function")try{c(null)}catch(v){Sn(l,o,v)}else c.current=null}function eb(l){var o=l.type,c=l.memoizedProps,d=l.stateNode;try{e:switch(o){case"button":case"input":case"select":case"textarea":c.autoFocus&&d.focus();break e;case"img":c.src?d.src=c.src:c.srcSet&&(d.srcset=c.srcSet)}}catch(v){Sn(l,l.return,v)}}function Fp(l,o,c){try{var d=l.stateNode;Ob(d,l.type,c,o),d[Un]=o}catch(v){Sn(l,l.return,v)}}function tb(l){return l.tag===5||l.tag===3||l.tag===26||l.tag===27&&Ni(l.type)||l.tag===4}function hf(l){e:for(;;){for(;l.sibling===null;){if(l.return===null||tb(l.return))return null;l=l.return}for(l.sibling.return=l.return,l=l.sibling;l.tag!==5&&l.tag!==6&&l.tag!==18;){if(l.tag===27&&Ni(l.type)||l.flags&2||l.child===null||l.tag===4)continue e;l.child.return=l,l=l.child}if(!(l.flags&2))return l.stateNode}}function mf(l,o,c){var d=l.tag;if(d===5||d===6)l=l.stateNode,o?(c.nodeType===9?c.body:c.nodeName==="HTML"?c.ownerDocument.body:c).insertBefore(l,o):(o=c.nodeType===9?c.body:c.nodeName==="HTML"?c.ownerDocument.body:c,o.appendChild(l),c=c._reactRootContainer,c!=null||o.onclick!==null||(o.onclick=mi));else if(d!==4&&(d===27&&Ni(l.type)&&(c=l.stateNode,o=null),l=l.child,l!==null))for(mf(l,o,c),l=l.sibling;l!==null;)mf(l,o,c),l=l.sibling}function pf(l,o,c){var d=l.tag;if(d===5||d===6)l=l.stateNode,o?c.insertBefore(l,o):c.appendChild(l);else if(d!==4&&(d===27&&Ni(l.type)&&(c=l.stateNode),l=l.child,l!==null))for(pf(l,o,c),l=l.sibling;l!==null;)pf(l,o,c),l=l.sibling}function nb(l){var o=l.stateNode,c=l.memoizedProps;try{for(var d=l.type,v=o.attributes;v.length;)o.removeAttributeNode(v[0]);fa(o,d,c),o[Mt]=l,o[Un]=c}catch(x){Sn(l,l.return,x)}}var is=!1,Nl=!1,kp=!1,lb=typeof WeakSet=="function"?WeakSet:Set,Wl=null;function gf(l,o){if(l=l.containerInfo,cg=ql,l=zs(l),Hd(l)){if("selectionStart"in l)var c={start:l.selectionStart,end:l.selectionEnd};else e:{c=(c=l.ownerDocument)&&c.defaultView||window;var d=c.getSelection&&c.getSelection();if(d&&d.rangeCount!==0){c=d.anchorNode;var v=d.anchorOffset,x=d.focusNode;d=d.focusOffset;try{c.nodeType,x.nodeType}catch{c=null;break e}var M=0,I=-1,W=-1,be=0,je=0,Ne=l,ve=null;t:for(;;){for(var Te;Ne!==c||v!==0&&Ne.nodeType!==3||(I=M+v),Ne!==x||d!==0&&Ne.nodeType!==3||(W=M+d),Ne.nodeType===3&&(M+=Ne.nodeValue.length),(Te=Ne.firstChild)!==null;)ve=Ne,Ne=Te;for(;;){if(Ne===l)break t;if(ve===c&&++be===v&&(I=M),ve===x&&++je===d&&(W=M),(Te=Ne.nextSibling)!==null)break;Ne=ve,ve=Ne.parentNode}Ne=Te}c=I===-1||W===-1?null:{start:I,end:W}}else c=null}c=c||{start:0,end:0}}else c=null;for(ug={focusedElem:l,selectionRange:c},ql=!1,Wl=o;Wl!==null;)if(o=Wl,l=o.child,(o.subtreeFlags&1028)!==0&&l!==null)l.return=o,Wl=l;else for(;Wl!==null;){switch(o=Wl,x=o.alternate,l=o.flags,o.tag){case 0:if((l&4)!==0&&(l=o.updateQueue,l=l!==null?l.events:null,l!==null))for(c=0;c<l.length;c++)v=l[c],v.ref.impl=v.nextImpl;break;case 11:case 15:break;case 1:if((l&1024)!==0&&x!==null){l=void 0,c=o,v=x.memoizedProps,x=x.memoizedState,d=c.stateNode;try{var We=Gs(c.type,v);l=d.getSnapshotBeforeUpdate(We,x),d.__reactInternalSnapshotBeforeUpdate=l}catch(ht){Sn(c,c.return,ht)}}break;case 3:if((l&1024)!==0){if(l=o.stateNode.containerInfo,c=l.nodeType,c===9)_h(l);else if(c===1)switch(l.nodeName){case"HEAD":case"HTML":case"BODY":_h(l);break;default:l.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((l&1024)!==0)throw Error(s(163))}if(l=o.sibling,l!==null){l.return=o.return,Wl=l;break}Wl=o.return}}function yh(l,o,c){var d=c.flags;switch(c.tag){case 0:case 11:case 15:rs(l,c),d&4&&Wo(5,c);break;case 1:if(rs(l,c),d&4)if(l=c.stateNode,o===null)try{l.componentDidMount()}catch(M){Sn(c,c.return,M)}else{var v=Gs(c.type,o.memoizedProps);o=o.memoizedState;try{l.componentDidUpdate(v,o,l.__reactInternalSnapshotBeforeUpdate)}catch(M){Sn(c,c.return,M)}}d&64&&Vp(c),d&512&&hr(c,c.return);break;case 3:if(rs(l,c),d&64&&(l=c.updateQueue,l!==null)){if(o=null,c.child!==null)switch(c.child.tag){case 27:case 5:o=c.child.stateNode;break;case 1:o=c.child.stateNode}try{Fs(l,o)}catch(M){Sn(c,c.return,M)}}break;case 27:o===null&&d&4&&nb(c);case 26:case 5:rs(l,c),o===null&&d&4&&eb(c),d&512&&hr(c,c.return);break;case 12:rs(l,c);break;case 31:rs(l,c),d&4&&kx(l,c);break;case 13:rs(l,c),d&4&&ib(l,c),d&64&&(l=c.memoizedState,l!==null&&(l=l.dehydrated,l!==null&&(c=wo.bind(null,c),zf(l,c))));break;case 22:if(d=c.memoizedState!==null||is,!d){o=o!==null&&o.memoizedState!==null||Nl,v=is;var x=Nl;is=d,(Nl=o)&&!x?Mi(l,c,(c.subtreeFlags&8772)!==0):rs(l,c),is=v,Nl=x}break;case 30:break;default:rs(l,c)}}function ab(l){var o=l.alternate;o!==null&&(l.alternate=null,ab(o)),l.child=null,l.deletions=null,l.sibling=null,l.tag===5&&(o=l.stateNode,o!==null&&Fo(o)),l.stateNode=null,l.return=null,l.dependencies=null,l.memoizedProps=null,l.memoizedState=null,l.pendingProps=null,l.stateNode=null,l.updateQueue=null}var qn=null,qa=!1;function mr(l,o,c){for(c=c.child;c!==null;)ob(l,o,c),c=c.sibling}function ob(l,o,c){if(Bn&&typeof Bn.onCommitFiberUnmount=="function")try{Bn.onCommitFiberUnmount(ul,c)}catch{}switch(c.tag){case 26:Nl||Ai(c,o),mr(l,o,c),c.memoizedState?c.memoizedState.count--:c.stateNode&&(c=c.stateNode,c.parentNode.removeChild(c));break;case 27:Nl||Ai(c,o);var d=qn,v=qa;Ni(c.type)&&(qn=c.stateNode,qa=!1),mr(l,o,c),au(c.stateNode),qn=d,qa=v;break;case 5:Nl||Ai(c,o);case 6:if(d=qn,v=qa,qn=null,mr(l,o,c),qn=d,qa=v,qn!==null)if(qa)try{(qn.nodeType===9?qn.body:qn.nodeName==="HTML"?qn.ownerDocument.body:qn).removeChild(c.stateNode)}catch(x){Sn(c,o,x)}else try{qn.removeChild(c.stateNode)}catch(x){Sn(c,o,x)}break;case 18:qn!==null&&(qa?(l=qn,Mb(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,c.stateNode),Vf(l)):Mb(qn,c.stateNode));break;case 4:d=qn,v=qa,qn=c.stateNode.containerInfo,qa=!0,mr(l,o,c),qn=d,qa=v;break;case 0:case 11:case 14:case 15:Oo(2,c,o),Nl||Oo(4,c,o),mr(l,o,c);break;case 1:Nl||(Ai(c,o),d=c.stateNode,typeof d.componentWillUnmount=="function"&&Qs(c,o,d)),mr(l,o,c);break;case 21:mr(l,o,c);break;case 22:Nl=(d=Nl)||c.memoizedState!==null,mr(l,o,c),Nl=d;break;default:mr(l,o,c)}}function kx(l,o){if(o.memoizedState===null&&(l=o.alternate,l!==null&&(l=l.memoizedState,l!==null))){l=l.dehydrated;try{Vf(l)}catch(c){Sn(o,o.return,c)}}}function ib(l,o){if(o.memoizedState===null&&(l=o.alternate,l!==null&&(l=l.memoizedState,l!==null&&(l=l.dehydrated,l!==null))))try{Vf(l)}catch(c){Sn(o,o.return,c)}}function bh(l){switch(l.tag){case 31:case 13:case 19:var o=l.stateNode;return o===null&&(o=l.stateNode=new lb),o;case 22:return l=l.stateNode,o=l._retryCache,o===null&&(o=l._retryCache=new lb),o;default:throw Error(s(435,l.tag))}}function vh(l,o){var c=bh(l);o.forEach(function(d){if(!c.has(d)){c.add(d);var v=u1.bind(null,l,d);d.then(v,v)}})}function Va(l,o){var c=o.deletions;if(c!==null)for(var d=0;d<c.length;d++){var v=c[d],x=l,M=o,I=M;e:for(;I!==null;){switch(I.tag){case 27:if(Ni(I.type)){qn=I.stateNode,qa=!1;break e}break;case 5:qn=I.stateNode,qa=!1;break e;case 3:case 4:qn=I.stateNode.containerInfo,qa=!0;break e}I=I.return}if(qn===null)throw Error(s(160));ob(x,M,v),qn=null,qa=!1,x=v.alternate,x!==null&&(x.return=null),v.return=null}if(o.subtreeFlags&13886)for(o=o.child;o!==null;)Ip(o,l),o=o.sibling}var Nt=null;function Ip(l,o){var c=l.alternate,d=l.flags;switch(l.tag){case 0:case 11:case 14:case 15:Va(o,l),eo(l),d&4&&(Oo(3,l,l.return),Wo(3,l),Oo(5,l,l.return));break;case 1:Va(o,l),eo(l),d&512&&(Nl||c===null||Ai(c,c.return)),d&64&&is&&(l=l.updateQueue,l!==null&&(d=l.callbacks,d!==null&&(c=l.shared.hiddenCallbacks,l.shared.hiddenCallbacks=c===null?d:c.concat(d))));break;case 26:var v=Nt;if(Va(o,l),eo(l),d&512&&(Nl||c===null||Ai(c,c.return)),d&4){var x=c!==null?c.memoizedState:null;if(d=l.memoizedState,c===null)if(d===null)if(l.stateNode===null){e:{d=l.type,c=l.memoizedProps,v=v.ownerDocument||v;t:switch(d){case"title":x=v.getElementsByTagName("title")[0],(!x||x[ln]||x[Mt]||x.namespaceURI==="http://www.w3.org/2000/svg"||x.hasAttribute("itemprop"))&&(x=v.createElement(d),v.head.insertBefore(x,v.querySelector("head > title"))),fa(x,d,c),x[Mt]=l,Tt(x),d=x;break e;case"link":var M=Nb("link","href",v).get(d+(c.href||""));if(M){for(var I=0;I<M.length;I++)if(x=M[I],x.getAttribute("href")===(c.href==null||c.href===""?null:c.href)&&x.getAttribute("rel")===(c.rel==null?null:c.rel)&&x.getAttribute("title")===(c.title==null?null:c.title)&&x.getAttribute("crossorigin")===(c.crossOrigin==null?null:c.crossOrigin)){M.splice(I,1);break t}}x=v.createElement(d),fa(x,d,c),v.head.appendChild(x);break;case"meta":if(M=Nb("meta","content",v).get(d+(c.content||""))){for(I=0;I<M.length;I++)if(x=M[I],x.getAttribute("content")===(c.content==null?null:""+c.content)&&x.getAttribute("name")===(c.name==null?null:c.name)&&x.getAttribute("property")===(c.property==null?null:c.property)&&x.getAttribute("http-equiv")===(c.httpEquiv==null?null:c.httpEquiv)&&x.getAttribute("charset")===(c.charSet==null?null:c.charSet)){M.splice(I,1);break t}}x=v.createElement(d),fa(x,d,c),v.head.appendChild(x);break;default:throw Error(s(468,d))}x[Mt]=l,Tt(x),d=x}l.stateNode=d}else pg(v,l.type,l.stateNode);else l.stateNode=Rb(v,d,l.memoizedProps);else x!==d?(x===null?c.stateNode!==null&&(c=c.stateNode,c.parentNode.removeChild(c)):x.count--,d===null?pg(v,l.type,l.stateNode):Rb(v,d,l.memoizedProps)):d===null&&l.stateNode!==null&&Fp(l,l.memoizedProps,c.memoizedProps)}break;case 27:Va(o,l),eo(l),d&512&&(Nl||c===null||Ai(c,c.return)),c!==null&&d&4&&Fp(l,l.memoizedProps,c.memoizedProps);break;case 5:if(Va(o,l),eo(l),d&512&&(Nl||c===null||Ai(c,c.return)),l.flags&32){v=l.stateNode;try{Qi(v,"")}catch(We){Sn(l,l.return,We)}}d&4&&l.stateNode!=null&&(v=l.memoizedProps,Fp(l,v,c!==null?c.memoizedProps:v)),d&1024&&(kp=!0);break;case 6:if(Va(o,l),eo(l),d&4){if(l.stateNode===null)throw Error(s(162));d=l.memoizedProps,c=l.stateNode;try{c.nodeValue=d}catch(We){Sn(l,l.return,We)}}break;case 3:if(Bf=null,v=Nt,Nt=Ca(o.containerInfo),Va(o,l),Nt=v,eo(l),d&4&&c!==null&&c.memoizedState.isDehydrated)try{Vf(o.containerInfo)}catch(We){Sn(l,l.return,We)}kp&&(kp=!1,rb(l));break;case 4:d=Nt,Nt=Ca(l.stateNode.containerInfo),Va(o,l),eo(l),Nt=d;break;case 12:Va(o,l),eo(l);break;case 31:Va(o,l),eo(l),d&4&&(d=l.updateQueue,d!==null&&(l.updateQueue=null,vh(l,d)));break;case 13:Va(o,l),eo(l),l.child.flags&8192&&l.memoizedState!==null!=(c!==null&&c.memoizedState!==null)&&(Ri=wt()),d&4&&(d=l.updateQueue,d!==null&&(l.updateQueue=null,vh(l,d)));break;case 22:v=l.memoizedState!==null;var W=c!==null&&c.memoizedState!==null,be=is,je=Nl;if(is=be||v,Nl=je||W,Va(o,l),Nl=je,is=be,eo(l),d&8192)e:for(o=l.stateNode,o._visibility=v?o._visibility&-2:o._visibility|1,v&&(c===null||W||is||Nl||Jc(l)),c=null,o=l;;){if(o.tag===5||o.tag===26){if(c===null){W=c=o;try{if(x=W.stateNode,v)M=x.style,typeof M.setProperty=="function"?M.setProperty("display","none","important"):M.display="none";else{I=W.stateNode;var Ne=W.memoizedProps.style,ve=Ne!=null&&Ne.hasOwnProperty("display")?Ne.display:null;I.style.display=ve==null||typeof ve=="boolean"?"":(""+ve).trim()}}catch(We){Sn(W,W.return,We)}}}else if(o.tag===6){if(c===null){W=o;try{W.stateNode.nodeValue=v?"":W.memoizedProps}catch(We){Sn(W,W.return,We)}}}else if(o.tag===18){if(c===null){W=o;try{var Te=W.stateNode;v?wl(Te,!0):wl(W.stateNode,!1)}catch(We){Sn(W,W.return,We)}}}else if((o.tag!==22&&o.tag!==23||o.memoizedState===null||o===l)&&o.child!==null){o.child.return=o,o=o.child;continue}if(o===l)break e;for(;o.sibling===null;){if(o.return===null||o.return===l)break e;c===o&&(c=null),o=o.return}c===o&&(c=null),o.sibling.return=o.return,o=o.sibling}d&4&&(d=l.updateQueue,d!==null&&(c=d.retryQueue,c!==null&&(d.retryQueue=null,vh(l,c))));break;case 19:Va(o,l),eo(l),d&4&&(d=l.updateQueue,d!==null&&(l.updateQueue=null,vh(l,d)));break;case 30:break;case 21:break;default:Va(o,l),eo(l)}}function eo(l){var o=l.flags;if(o&2){try{for(var c,d=l.return;d!==null;){if(tb(d)){c=d;break}d=d.return}if(c==null)throw Error(s(160));switch(c.tag){case 27:var v=c.stateNode,x=hf(l);pf(l,x,v);break;case 5:var M=c.stateNode;c.flags&32&&(Qi(M,""),c.flags&=-33);var I=hf(l);pf(l,I,M);break;case 3:case 4:var W=c.stateNode.containerInfo,be=hf(l);mf(l,be,W);break;default:throw Error(s(161))}}catch(je){Sn(l,l.return,je)}l.flags&=-3}o&4096&&(l.flags&=-4097)}function rb(l){if(l.subtreeFlags&1024)for(l=l.child;l!==null;){var o=l;rb(o),o.tag===5&&o.flags&1024&&o.stateNode.reset(),l=l.sibling}}function rs(l,o){if(o.subtreeFlags&8772)for(o=o.child;o!==null;)yh(l,o.alternate,o),o=o.sibling}function Jc(l){for(l=l.child;l!==null;){var o=l;switch(o.tag){case 0:case 11:case 14:case 15:Oo(4,o,o.return),Jc(o);break;case 1:Ai(o,o.return);var c=o.stateNode;typeof c.componentWillUnmount=="function"&&Qs(o,o.return,c),Jc(o);break;case 27:au(o.stateNode);case 26:case 5:Ai(o,o.return),Jc(o);break;case 22:o.memoizedState===null&&Jc(o);break;case 30:Jc(o);break;default:Jc(o)}l=l.sibling}}function Mi(l,o,c){for(c=c&&(o.subtreeFlags&8772)!==0,o=o.child;o!==null;){var d=o.alternate,v=l,x=o,M=x.flags;switch(x.tag){case 0:case 11:case 15:Mi(v,x,c),Wo(4,x);break;case 1:if(Mi(v,x,c),d=x,v=d.stateNode,typeof v.componentDidMount=="function")try{v.componentDidMount()}catch(be){Sn(d,d.return,be)}if(d=x,v=d.updateQueue,v!==null){var I=d.stateNode;try{var W=v.shared.hiddenCallbacks;if(W!==null)for(v.shared.hiddenCallbacks=null,v=0;v<W.length;v++)pp(W[v],I)}catch(be){Sn(d,d.return,be)}}c&&M&64&&Vp(x),hr(x,x.return);break;case 27:nb(x);case 26:case 5:Mi(v,x,c),c&&d===null&&M&4&&eb(x),hr(x,x.return);break;case 12:Mi(v,x,c);break;case 31:Mi(v,x,c),c&&M&4&&kx(v,x);break;case 13:Mi(v,x,c),c&&M&4&&ib(v,x);break;case 22:x.memoizedState===null&&Mi(v,x,c),hr(x,x.return);break;case 30:break;default:Mi(v,x,c)}o=o.sibling}}function Gp(l,o){var c=null;l!==null&&l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(c=l.memoizedState.cachePool.pool),l=null,o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(l=o.memoizedState.cachePool.pool),l!==c&&(l!=null&&l.refCount++,c!=null&&Xd(c))}function Yp(l,o){l=null,o.alternate!==null&&(l=o.alternate.memoizedState.cache),o=o.memoizedState.cache,o!==l&&(o.refCount++,l!=null&&Xd(l))}function ei(l,o,c,d){if(o.subtreeFlags&10256)for(o=o.child;o!==null;)yf(l,o,c,d),o=o.sibling}function yf(l,o,c,d){var v=o.flags;switch(o.tag){case 0:case 11:case 15:ei(l,o,c,d),v&2048&&Wo(9,o);break;case 1:ei(l,o,c,d);break;case 3:ei(l,o,c,d),v&2048&&(l=null,o.alternate!==null&&(l=o.alternate.memoizedState.cache),o=o.memoizedState.cache,o!==l&&(o.refCount++,l!=null&&Xd(l)));break;case 12:if(v&2048){ei(l,o,c,d),l=o.stateNode;try{var x=o.memoizedProps,M=x.id,I=x.onPostCommit;typeof I=="function"&&I(M,o.alternate===null?"mount":"update",l.passiveEffectDuration,-0)}catch(W){Sn(o,o.return,W)}}else ei(l,o,c,d);break;case 31:ei(l,o,c,d);break;case 13:ei(l,o,c,d);break;case 23:break;case 22:x=o.stateNode,M=o.alternate,o.memoizedState!==null?x._visibility&2?ei(l,o,c,d):Sh(l,o):x._visibility&2?ei(l,o,c,d):(x._visibility|=2,bf(l,o,c,d,(o.subtreeFlags&10256)!==0||!1)),v&2048&&Gp(M,o);break;case 24:ei(l,o,c,d),v&2048&&Yp(o.alternate,o);break;default:ei(l,o,c,d)}}function bf(l,o,c,d,v){for(v=v&&((o.subtreeFlags&10256)!==0||!1),o=o.child;o!==null;){var x=l,M=o,I=c,W=d,be=M.flags;switch(M.tag){case 0:case 11:case 15:bf(x,M,I,W,v),Wo(8,M);break;case 23:break;case 22:var je=M.stateNode;M.memoizedState!==null?je._visibility&2?bf(x,M,I,W,v):Sh(x,M):(je._visibility|=2,bf(x,M,I,W,v)),v&&be&2048&&Gp(M.alternate,M);break;case 24:bf(x,M,I,W,v),v&&be&2048&&Yp(M.alternate,M);break;default:bf(x,M,I,W,v)}o=o.sibling}}function Sh(l,o){if(o.subtreeFlags&10256)for(o=o.child;o!==null;){var c=l,d=o,v=d.flags;switch(d.tag){case 22:Sh(c,d),v&2048&&Gp(d.alternate,d);break;case 24:Sh(c,d),v&2048&&Yp(d.alternate,d);break;default:Sh(c,d)}o=o.sibling}}var to=8192;function pr(l,o,c){if(l.subtreeFlags&to)for(l=l.child;l!==null;)Ix(l,o,c),l=l.sibling}function Ix(l,o,c){switch(l.tag){case 26:pr(l,o,c),l.flags&to&&l.memoizedState!==null&&Sr(c,Nt,l.memoizedState,l.memoizedProps);break;case 5:pr(l,o,c);break;case 3:case 4:var d=Nt;Nt=Ca(l.stateNode.containerInfo),pr(l,o,c),Nt=d;break;case 22:l.memoizedState===null&&(d=l.alternate,d!==null&&d.memoizedState!==null?(d=to,to=16777216,pr(l,o,c),to=d):pr(l,o,c));break;default:pr(l,o,c)}}function Xp(l){var o=l.alternate;if(o!==null&&(l=o.child,l!==null)){o.child=null;do o=l.sibling,l.sibling=null,l=o;while(l!==null)}}function vf(l){var o=l.deletions;if((l.flags&16)!==0){if(o!==null)for(var c=0;c<o.length;c++){var d=o[c];Wl=d,Pp(d,l)}Xp(l)}if(l.subtreeFlags&10256)for(l=l.child;l!==null;)sb(l),l=l.sibling}function sb(l){switch(l.tag){case 0:case 11:case 15:vf(l),l.flags&2048&&Oo(9,l,l.return);break;case 3:vf(l);break;case 12:vf(l);break;case 22:var o=l.stateNode;l.memoizedState!==null&&o._visibility&2&&(l.return===null||l.return.tag!==13)?(o._visibility&=-3,xh(l)):vf(l);break;default:vf(l)}}function xh(l){var o=l.deletions;if((l.flags&16)!==0){if(o!==null)for(var c=0;c<o.length;c++){var d=o[c];Wl=d,Pp(d,l)}Xp(l)}for(l=l.child;l!==null;){switch(o=l,o.tag){case 0:case 11:case 15:Oo(8,o,o.return),xh(o);break;case 22:c=o.stateNode,c._visibility&2&&(c._visibility&=-3,xh(o));break;default:xh(o)}l=l.sibling}}function Pp(l,o){for(;Wl!==null;){var c=Wl;switch(c.tag){case 0:case 11:case 15:Oo(8,c,o);break;case 23:case 22:if(c.memoizedState!==null&&c.memoizedState.cachePool!==null){var d=c.memoizedState.cachePool.pool;d!=null&&d.refCount++}break;case 24:Xd(c.memoizedState.cache)}if(d=c.child,d!==null)d.return=c,Wl=d;else e:for(c=l;Wl!==null;){d=Wl;var v=d.sibling,x=d.return;if(ab(d),d===c){Wl=null;break e}if(v!==null){v.return=x,Wl=v;break e}Wl=x}}}var Gx={getCacheForType:function(l){var o=_e(Cl),c=o.data.get(l);return c===void 0&&(c=l(),o.data.set(l,c)),c},cacheSignal:function(){return _e(Cl).controller.signal}},cb=typeof WeakMap=="function"?WeakMap:Map,un=0,An=null,Zt=null,kt=0,vn=0,gt=null,gr=!1,Zs=!1,Qp=!1,zi=0,Vn=0,Di=0,Kc=0,Zp=0,Fa=0,rl=0,Eh=null,sl=null,Jp=!1,Ri=0,ub=0,mn=1/0,Sf=null,Kn=null,Ll=0,ss=null,Js=null,yr=0,no=0,Kp=null,Wp=null,xf=0,Ch=null;function lo(){return(un&2)!==0&&kt!==0?kt&-kt:X.T!==null?ag():ba()}function Yx(){if(Fa===0)if((kt&536870912)===0||Qt){var l=Jt;Jt<<=1,(Jt&3932160)===0&&(Jt=262144),Fa=l}else Fa=536870912;return l=Ba.current,l!==null&&(l.flags|=32),Fa}function ka(l,o,c){(l===An&&(vn===2||vn===9)||l.cancelPendingCommit!==null)&&(br(l,0),cs(l,kt,Fa,!1)),uo(l,c),((un&2)===0||l!==An)&&(l===An&&((un&2)===0&&(Kc|=c),Vn===4&&cs(l,kt,Fa,!1)),vr(l))}function Xx(l,o,c){if((un&6)!==0)throw Error(s(327));var d=!c&&(o&127)===0&&(o&l.expiredLanes)===0||fl(l,o),v=d?Kx(l,o):tg(l,o,!0),x=d;do{if(v===0){Zs&&!d&&cs(l,o,0,!1);break}else{if(c=l.current.alternate,x&&!Px(c)){v=tg(l,o,!1),x=!1;continue}if(v===2){if(x=o,l.errorRecoveryDisabledLanes&x)var M=0;else M=l.pendingLanes&-536870913,M=M!==0?M:M&536870912?536870912:0;if(M!==0){o=M;e:{var I=l;v=Eh;var W=I.current.memoizedState.isDehydrated;if(W&&(br(I,M).flags|=256),M=tg(I,M,!1),M!==2){if(Qp&&!W){I.errorRecoveryDisabledLanes|=x,Kc|=x,v=4;break e}x=sl,sl=v,x!==null&&(sl===null?sl=x:sl.push.apply(sl,x))}v=M}if(x=!1,v!==2)continue}}if(v===1){br(l,0),cs(l,o,0,!0);break}e:{switch(d=l,x=v,x){case 0:case 1:throw Error(s(345));case 4:if((o&4194048)!==o)break;case 6:cs(d,o,Fa,!gr);break e;case 2:sl=null;break;case 3:case 5:break;default:throw Error(s(329))}if((o&62914560)===o&&(v=Ri+300-wt(),10<v)){if(cs(d,o,Fa,!gr),rn(d,0,!0)!==0)break e;yr=o,d.timeoutHandle=Nh(Th.bind(null,d,c,sl,Sf,Jp,o,Fa,Kc,rl,gr,x,"Throttled",-0,0),v);break e}Th(d,c,sl,Sf,Jp,o,Fa,Kc,rl,gr,x,null,-0,0)}}break}while(!0);vr(l)}function Th(l,o,c,d,v,x,M,I,W,be,je,Ne,ve,Te){if(l.timeoutHandle=-1,Ne=o.subtreeFlags,Ne&8192||(Ne&16785408)===16785408){Ne={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:mi},Ix(o,x,Ne);var We=(x&62914560)===x?Ri-wt():(x&4194048)===x?ub-wt():0;if(We=$b(Ne,We),We!==null){yr=x,l.cancelPendingCommit=We(n1.bind(null,l,o,x,c,d,v,M,I,W,je,Ne,null,ve,Te)),cs(l,x,M,!be);return}}n1(l,o,x,c,d,v,M,I,W)}function Px(l){for(var o=l;;){var c=o.tag;if((c===0||c===11||c===15)&&o.flags&16384&&(c=o.updateQueue,c!==null&&(c=c.stores,c!==null)))for(var d=0;d<c.length;d++){var v=c[d],x=v.getSnapshot;v=v.value;try{if(!xa(x(),v))return!1}catch{return!1}}if(c=o.child,o.subtreeFlags&16384&&c!==null)c.return=o,o=c;else{if(o===l)break;for(;o.sibling===null;){if(o.return===null||o.return===l)return!0;o=o.return}o.sibling.return=o.return,o=o.sibling}}return!0}function cs(l,o,c,d){o&=~Zp,o&=~Kc,l.suspendedLanes|=o,l.pingedLanes&=~o,d&&(l.warmLanes|=o),d=l.expirationTimes;for(var v=o;0<v;){var x=31-jt(v),M=1<<x;d[x]=-1,v&=~M}c!==0&&qo(l,c,o)}function Ef(){return(un&6)===0?(fs(0),!1):!0}function fb(){if(Zt!==null){if(vn===0)var l=Zt.return;else l=Zt,Ci=Kr=null,lh(l),Us=null,qc=0,l=Zt;for(;l!==null;)Fx(l.alternate,l),l=l.return;Zt=null}}function br(l,o){var c=l.timeoutHandle;c!==-1&&(l.timeoutHandle=-1,b1(c)),c=l.cancelPendingCommit,c!==null&&(l.cancelPendingCommit=null,c()),yr=0,fb(),An=l,Zt=c=Zr(l.current,null),kt=o,vn=0,gt=null,gr=!1,Zs=fl(l,o),Qp=!1,rl=Fa=Zp=Kc=Di=Vn=0,sl=Eh=null,Jp=!1,(o&8)!==0&&(o|=o&32);var d=l.entangledLanes;if(d!==0)for(l=l.entanglements,d&=o;0<d;){var v=31-jt(d),x=1<<v;o|=l[v],d&=~x}return zi=o,mo(),c}function Cf(l,o){zt=null,X.H=fh,o===$s||o===Wu?(o=S0(),vn=3):o===Uc?(o=S0(),vn=4):vn=o===Bp?8:o!==null&&typeof o=="object"&&typeof o.then=="function"?6:1,gt=o,Zt===null&&(Vn=1,ff(l,go(o,l.current)))}function Qx(){var l=Ba.current;return l===null?!0:(kt&4194048)===kt?xo===null:(kt&62914560)===kt||(kt&536870912)!==0?l===xo:!1}function Zx(){var l=X.H;return X.H=fh,l===null?fh:l}function Jx(){var l=X.A;return X.A=Gx,l}function eg(){Vn=4,gr||(kt&4194048)!==kt&&Ba.current!==null||(Zs=!0),(Di&134217727)===0&&(Kc&134217727)===0||An===null||cs(An,kt,Fa,!1)}function tg(l,o,c){var d=un;un|=2;var v=Zx(),x=Jx();(An!==l||kt!==o)&&(Sf=null,br(l,o)),o=!1;var M=Vn;e:do try{if(vn!==0&&Zt!==null){var I=Zt,W=gt;switch(vn){case 8:fb(),M=6;break e;case 3:case 2:case 9:case 6:Ba.current===null&&(o=!0);var be=vn;if(vn=0,gt=null,Wc(l,I,W,be),c&&Zs){M=0;break e}break;default:be=vn,vn=0,gt=null,Wc(l,I,W,be)}}S2(),M=Vn;break}catch(je){Cf(l,je)}while(!0);return o&&l.shellSuspendCounter++,Ci=Kr=null,un=d,X.H=v,X.A=x,Zt===null&&(An=null,kt=0,mo()),M}function S2(){for(;Zt!==null;)Wx(Zt)}function Kx(l,o){var c=un;un|=2;var d=Zx(),v=Jx();An!==l||kt!==o?(Sf=null,mn=wt()+500,br(l,o)):Zs=fl(l,o);e:do try{if(vn!==0&&Zt!==null){o=Zt;var x=gt;t:switch(vn){case 1:vn=0,gt=null,Wc(l,o,x,1);break;case 2:case 9:if(b0(x)){vn=0,gt=null,e1(o);break}o=function(){vn!==2&&vn!==9||An!==l||(vn=7),vr(l)},x.then(o,o);break e;case 3:vn=7;break e;case 4:vn=5;break e;case 7:b0(x)?(vn=0,gt=null,e1(o)):(vn=0,gt=null,Wc(l,o,x,7));break;case 5:var M=null;switch(Zt.tag){case 26:M=Zt.memoizedState;case 5:case 27:var I=Zt;if(M?oo(M):I.stateNode.complete){vn=0,gt=null;var W=I.sibling;if(W!==null)Zt=W;else{var be=I.return;be!==null?(Zt=be,Oh(be)):Zt=null}break t}}vn=0,gt=null,Wc(l,o,x,5);break;case 6:vn=0,gt=null,Wc(l,o,x,6);break;case 8:fb(),Vn=6;break e;default:throw Error(s(462))}}Ks();break}catch(je){Cf(l,je)}while(!0);return Ci=Kr=null,X.H=d,X.A=v,un=c,Zt!==null?0:(An=null,kt=0,mo(),Vn)}function Ks(){for(;Zt!==null&&!Ke();)Wx(Zt)}function Wx(l){var o=J0(l.alternate,l,zi);l.memoizedProps=l.pendingProps,o===null?Oh(l):Zt=o}function e1(l){var o=l,c=o.alternate;switch(o.tag){case 15:case 0:o=Xs(c,o,o.pendingProps,o.type,void 0,kt);break;case 11:o=Xs(c,o,o.pendingProps,o.type.render,o.ref,kt);break;case 5:lh(o);default:Fx(c,o),o=Zt=f0(o,zi),o=J0(c,o,zi)}l.memoizedProps=l.pendingProps,o===null?Oh(l):Zt=o}function Wc(l,o,c,d){Ci=Kr=null,lh(o),Us=null,qc=0;var v=o.return;try{if(v2(l,v,o,c,kt)){Vn=1,ff(l,go(c,l.current)),Zt=null;return}}catch(x){if(v!==null)throw Zt=v,x;Vn=1,ff(l,go(c,l.current)),Zt=null;return}o.flags&32768?(Qt||d===1?l=!0:Zs||(kt&536870912)!==0?l=!1:(gr=l=!0,(d===2||d===9||d===3||d===6)&&(d=Ba.current,d!==null&&d.tag===13&&(d.flags|=16384))),t1(o,l)):Oh(o)}function Oh(l){var o=l;do{if((o.flags&32768)!==0){t1(o,gr);return}l=o.return;var c=qx(o.alternate,o,zi);if(c!==null){Zt=c;return}if(o=o.sibling,o!==null){Zt=o;return}Zt=o=l}while(o!==null);Vn===0&&(Vn=5)}function t1(l,o){do{var c=Vx(l.alternate,l);if(c!==null){c.flags&=32767,Zt=c;return}if(c=l.return,c!==null&&(c.flags|=32768,c.subtreeFlags=0,c.deletions=null),!o&&(l=l.sibling,l!==null)){Zt=l;return}Zt=l=c}while(l!==null);Vn=6,Zt=null}function n1(l,o,c,d,v,x,M,I,W){l.cancelPendingCommit=null;do Tf();while(Ll!==0);if((un&6)!==0)throw Error(s(327));if(o!==null){if(o===l.current)throw Error(s(177));if(x=o.lanes|o.childLanes,x|=Po,fi(l,c,x,M,I,W),l===An&&(Zt=An=null,kt=0),Js=o,ss=l,yr=c,no=x,Kp=v,Wp=d,(o.subtreeFlags&10256)!==0||(o.flags&10256)!==0?(l.callbackNode=null,l.callbackPriority=0,f1(Fe,function(){return r1(),null})):(l.callbackNode=null,l.callbackPriority=0),d=(o.flags&13878)!==0,(o.subtreeFlags&13878)!==0||d){d=X.T,X.T=null,v=ie.p,ie.p=2,M=un,un|=4;try{gf(l,o,c)}finally{un=M,ie.p=v,X.T=d}}Ll=1,l1(),a1(),o1()}}function l1(){if(Ll===1){Ll=0;var l=ss,o=Js,c=(o.flags&13878)!==0;if((o.subtreeFlags&13878)!==0||c){c=X.T,X.T=null;var d=ie.p;ie.p=2;var v=un;un|=4;try{Ip(o,l);var x=ug,M=zs(l.containerInfo),I=x.focusedElem,W=x.selectionRange;if(M!==I&&I&&I.ownerDocument&&zc(I.ownerDocument.documentElement,I)){if(W!==null&&Hd(I)){var be=W.start,je=W.end;if(je===void 0&&(je=be),"selectionStart"in I)I.selectionStart=be,I.selectionEnd=Math.min(je,I.value.length);else{var Ne=I.ownerDocument||document,ve=Ne&&Ne.defaultView||window;if(ve.getSelection){var Te=ve.getSelection(),We=I.textContent.length,ht=Math.min(W.start,We),zn=W.end===void 0?ht:Math.min(W.end,We);!Te.extend&&ht>zn&&(M=zn,zn=ht,ht=M);var de=c0(I,ht),re=c0(I,zn);if(de&&re&&(Te.rangeCount!==1||Te.anchorNode!==de.node||Te.anchorOffset!==de.offset||Te.focusNode!==re.node||Te.focusOffset!==re.offset)){var ye=Ne.createRange();ye.setStart(de.node,de.offset),Te.removeAllRanges(),ht>zn?(Te.addRange(ye),Te.extend(re.node,re.offset)):(ye.setEnd(re.node,re.offset),Te.addRange(ye))}}}}for(Ne=[],Te=I;Te=Te.parentNode;)Te.nodeType===1&&Ne.push({element:Te,left:Te.scrollLeft,top:Te.scrollTop});for(typeof I.focus=="function"&&I.focus(),I=0;I<Ne.length;I++){var Re=Ne[I];Re.element.scrollLeft=Re.left,Re.element.scrollTop=Re.top}}ql=!!cg,ug=cg=null}finally{un=v,ie.p=d,X.T=c}}l.current=o,Ll=2}}function a1(){if(Ll===2){Ll=0;var l=ss,o=Js,c=(o.flags&8772)!==0;if((o.subtreeFlags&8772)!==0||c){c=X.T,X.T=null;var d=ie.p;ie.p=2;var v=un;un|=4;try{yh(l,o.alternate,o)}finally{un=v,ie.p=d,X.T=c}}Ll=3}}function o1(){if(Ll===4||Ll===3){Ll=0,rt();var l=ss,o=Js,c=yr,d=Wp;(o.subtreeFlags&10256)!==0||(o.flags&10256)!==0?Ll=5:(Ll=0,Js=ss=null,i1(l,l.pendingLanes));var v=l.pendingLanes;if(v===0&&(Kn=null),Vo(c),o=o.stateNode,Bn&&typeof Bn.onCommitFiberRoot=="function")try{Bn.onCommitFiberRoot(ul,o,void 0,(o.current.flags&128)===128)}catch{}if(d!==null){o=X.T,v=ie.p,ie.p=2,X.T=null;try{for(var x=l.onRecoverableError,M=0;M<d.length;M++){var I=d[M];x(I.value,{componentStack:I.stack})}}finally{X.T=o,ie.p=v}}(yr&3)!==0&&Tf(),vr(l),v=l.pendingLanes,(c&261930)!==0&&(v&42)!==0?l===Ch?xf++:(xf=0,Ch=l):xf=0,fs(0)}}function i1(l,o){(l.pooledCacheLanes&=o)===0&&(o=l.pooledCache,o!=null&&(l.pooledCache=null,Xd(o)))}function Tf(){return l1(),a1(),o1(),r1()}function r1(){if(Ll!==5)return!1;var l=ss,o=no;no=0;var c=Vo(yr),d=X.T,v=ie.p;try{ie.p=32>c?32:c,X.T=null,c=Kp,Kp=null;var x=ss,M=yr;if(Ll=0,Js=ss=null,yr=0,(un&6)!==0)throw Error(s(331));var I=un;if(un|=4,sb(x.current),yf(x,x.current,M,c),un=I,fs(0,!1),Bn&&typeof Bn.onPostCommitFiberRoot=="function")try{Bn.onPostCommitFiberRoot(ul,x)}catch{}return!0}finally{ie.p=v,X.T=d,i1(l,o)}}function s1(l,o,c){o=go(c,o),o=F0(l.stateNode,o,2),l=So(l,o,2),l!==null&&(uo(l,2),vr(l))}function Sn(l,o,c){if(l.tag===3)s1(l,l,c);else for(;o!==null;){if(o.tag===3){s1(o,l,c);break}else if(o.tag===1){var d=o.stateNode;if(typeof o.type.getDerivedStateFromError=="function"||typeof d.componentDidCatch=="function"&&(Kn===null||!Kn.has(d))){l=go(c,l),c=k0(2),d=So(o,c,2),d!==null&&(I0(c,d,o,l),uo(d,2),vr(d));break}}o=o.return}}function wh(l,o,c){var d=l.pingCache;if(d===null){d=l.pingCache=new cb;var v=new Set;d.set(o,v)}else v=d.get(o),v===void 0&&(v=new Set,d.set(o,v));v.has(c)||(Qp=!0,v.add(c),l=db.bind(null,l,o,c),o.then(l,l))}function db(l,o,c){var d=l.pingCache;d!==null&&d.delete(o),l.pingedLanes|=l.suspendedLanes&c,l.warmLanes&=~c,An===l&&(kt&c)===c&&(Vn===4||Vn===3&&(kt&62914560)===kt&&300>wt()-Ri?(un&2)===0&&br(l,0):Zp|=c,rl===kt&&(rl=0)),vr(l)}function c1(l,o){o===0&&(o=Gl()),l=Qr(l,o),l!==null&&(uo(l,o),vr(l))}function wo(l){var o=l.memoizedState,c=0;o!==null&&(c=o.retryLane),c1(l,c)}function u1(l,o){var c=0;switch(l.tag){case 31:case 13:var d=l.stateNode,v=l.memoizedState;v!==null&&(c=v.retryLane);break;case 19:d=l.stateNode;break;case 22:d=l.stateNode._retryCache;break;default:throw Error(s(314))}d!==null&&d.delete(o),c1(l,c)}function f1(l,o){return pe(l,o)}var Of=null,eu=null,hb=!1,ng=!1,mb=!1,us=0;function vr(l){l!==eu&&l.next===null&&(eu===null?Of=eu=l:eu=eu.next=l),ng=!0,hb||(hb=!0,Ah())}function fs(l,o){if(!mb&&ng){mb=!0;do for(var c=!1,d=Of;d!==null;){if(l!==0){var v=d.pendingLanes;if(v===0)var x=0;else{var M=d.suspendedLanes,I=d.pingedLanes;x=(1<<31-jt(42|l)+1)-1,x&=v&~(M&~I),x=x&201326741?x&201326741|1:x?x|2:0}x!==0&&(c=!0,tu(d,x))}else x=kt,x=rn(d,d===An?x:0,d.cancelPendingCommit!==null||d.timeoutHandle!==-1),(x&3)===0||fl(d,x)||(c=!0,tu(d,x));d=d.next}while(c);mb=!1}}function lg(){pb()}function pb(){ng=hb=!1;var l=0;us!==0&&x2()&&(l=us);for(var o=wt(),c=null,d=Of;d!==null;){var v=d.next,x=gb(d,o);x===0?(d.next=null,c===null?Of=v:c.next=v,v===null&&(eu=c)):(c=d,(l!==0||(x&3)!==0)&&(ng=!0)),d=v}Ll!==0&&Ll!==5||fs(l),us!==0&&(us=0)}function gb(l,o){for(var c=l.suspendedLanes,d=l.pingedLanes,v=l.expirationTimes,x=l.pendingLanes&-62914561;0<x;){var M=31-jt(x),I=1<<M,W=v[M];W===-1?((I&c)===0||(I&d)!==0)&&(v[M]=Ut(I,o)):W<=o&&(l.expiredLanes|=I),x&=~I}if(o=An,c=kt,c=rn(l,l===o?c:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),d=l.callbackNode,c===0||l===o&&(vn===2||vn===9)||l.cancelPendingCommit!==null)return d!==null&&d!==null&&Be(d),l.callbackNode=null,l.callbackPriority=0;if((c&3)===0||fl(l,c)){if(o=c&-c,o===l.callbackPriority)return o;switch(d!==null&&Be(d),Vo(c)){case 2:case 8:c=Oe;break;case 32:c=Fe;break;case 268435456:c=it;break;default:c=Fe}return d=jh.bind(null,l),c=pe(c,d),l.callbackPriority=o,l.callbackNode=c,o}return d!==null&&d!==null&&Be(d),l.callbackPriority=2,l.callbackNode=null,2}function jh(l,o){if(Ll!==0&&Ll!==5)return l.callbackNode=null,l.callbackPriority=0,null;var c=l.callbackNode;if(Tf()&&l.callbackNode!==c)return null;var d=kt;return d=rn(l,l===An?d:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),d===0?null:(Xx(l,d,o),gb(l,wt()),l.callbackNode!=null&&l.callbackNode===c?jh.bind(null,l):null)}function tu(l,o){if(Tf())return null;Xx(l,o,!0)}function Ah(){v1(function(){(un&6)!==0?pe(Rn,lg):pb()})}function ag(){if(us===0){var l=_s;l===0&&(l=gn,gn<<=1,(gn&261888)===0&&(gn=256)),us=l}return us}function d1(l){return l==null||typeof l=="symbol"||typeof l=="boolean"?null:typeof l=="function"?l:Io(""+l)}function nu(l,o){var c=o.ownerDocument.createElement("input");return c.name=o.name,c.value=o.value,l.id&&c.setAttribute("form",l.id),o.parentNode.insertBefore(c,o),l=new FormData(l),c.parentNode.removeChild(c),l}function Mh(l,o,c,d,v){if(o==="submit"&&c&&c.stateNode===v){var x=d1((v[Un]||null).action),M=d.submitter;M&&(o=(o=M[Un]||null)?d1(o.formAction):M.getAttribute("formAction"),o!==null&&(x=o,M=null));var I=new _d("action","action",null,d,v);l.push({event:I,listeners:[{instance:null,listener:function(){if(d.defaultPrevented){if(us!==0){var W=M?nu(v,M):new FormData(v);cf(c,{pending:!0,data:W,method:v.method,action:x},null,W)}}else typeof x=="function"&&(I.preventDefault(),W=M?nu(v,M):new FormData(v),cf(c,{pending:!0,data:W,method:v.method,action:x},x,W))},currentTarget:v}]})}}for(var og=0;og<Xu.length;og++){var wf=Xu[og],yb=wf.toLowerCase(),bb=wf[0].toUpperCase()+wf.slice(1);Ra(yb,"on"+bb)}Ra(Ld,"onAnimationEnd"),Ra(u0,"onAnimationIteration"),Ra(op,"onAnimationStart"),Ra("dblclick","onDoubleClick"),Ra("focusin","onFocus"),Ra("focusout","onBlur"),Ra(Dc,"onTransitionRun"),Ra(qd,"onTransitionStart"),Ra(Wi,"onTransitionCancel"),Ra(Cx,"onTransitionEnd"),Bl("onMouseEnter",["mouseout","mouseover"]),Bl("onMouseLeave",["mouseout","mouseover"]),Bl("onPointerEnter",["pointerout","pointerover"]),Bl("onPointerLeave",["pointerout","pointerover"]),Yl("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Yl("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Yl("onBeforeInput",["compositionend","keypress","textInput","paste"]),Yl("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Yl("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Yl("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var jf="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(" "),h1=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(jf));function m1(l,o){o=(o&4)!==0;for(var c=0;c<l.length;c++){var d=l[c],v=d.event;d=d.listeners;e:{var x=void 0;if(o)for(var M=d.length-1;0<=M;M--){var I=d[M],W=I.instance,be=I.currentTarget;if(I=I.listener,W!==x&&v.isPropagationStopped())break e;x=I,v.currentTarget=be;try{x(v)}catch(je){Rc(je)}v.currentTarget=null,x=W}else for(M=0;M<d.length;M++){if(I=d[M],W=I.instance,be=I.currentTarget,I=I.listener,W!==x&&v.isPropagationStopped())break e;x=I,v.currentTarget=be;try{x(v)}catch(je){Rc(je)}v.currentTarget=null,x=W}}}}function Yt(l,o){var c=o[Xn];c===void 0&&(c=o[Xn]=new Set);var d=l+"__bubble";c.has(d)||(zh(o,l,2,!1),c.add(d))}function vb(l,o,c){var d=0;o&&(d|=4),zh(c,l,d,o)}var ig="_reactListening"+Math.random().toString(36).slice(2);function Af(l){if(!l[ig]){l[ig]=!0,Dl.forEach(function(c){c!=="selectionchange"&&(h1.has(c)||vb(c,!1,l),vb(c,!0,l))});var o=l.nodeType===9?l:l.ownerDocument;o===null||o[ig]||(o[ig]=!0,vb("selectionchange",!1,o))}}function zh(l,o,c,d){switch(Lh(o)){case 2:var v=xr;break;case 8:v=Er;break;default:v=da}c=v.bind(null,o,c,l),v=void 0,!Rd||o!=="touchstart"&&o!=="touchmove"&&o!=="wheel"||(v=!0),d?v!==void 0?l.addEventListener(o,c,{capture:!0,passive:v}):l.addEventListener(o,c,!0):v!==void 0?l.addEventListener(o,c,{passive:v}):l.addEventListener(o,c,!1)}function Sb(l,o,c,d,v){var x=d;if((o&1)===0&&(o&2)===0&&d!==null)e:for(;;){if(d===null)return;var M=d.tag;if(M===3||M===4){var I=d.stateNode.containerInfo;if(I===v)break;if(M===4)for(M=d.return;M!==null;){var W=M.tag;if((W===3||W===4)&&M.stateNode.containerInfo===v)return;M=M.return}for(;I!==null;){if(M=ho(I),M===null)return;if(W=M.tag,W===5||W===6||W===26||W===27){d=x=M;continue e}I=I.parentNode}}d=d.return}Yy(function(){var be=x,je=Ym(c),Ne=[];e:{var ve=er.get(l);if(ve!==void 0){var Te=_d,We=l;switch(l){case"keypress":if(Pm(c)===0)break e;case"keydown":case"keyup":Te=Km;break;case"focusin":We="focus",Te=Zm;break;case"focusout":We="blur",Te=Zm;break;case"beforeblur":case"afterblur":Te=Zm;break;case"click":if(c.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Te=Fu;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Te=fx;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Te=gx;break;case Ld:case u0:case op:Te=hx;break;case Cx:Te=p2;break;case"scroll":case"scrollend":Te=h2;break;case"wheel":Te=g2;break;case"copy":case"cut":case"paste":Te=Tc;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Te=yi;break;case"toggle":case"beforetoggle":Te=t0}var ht=(o&4)!==0,zn=!ht&&(l==="scroll"||l==="scrollend"),de=ht?ve!==null?ve+"Capture":null:ve;ht=[];for(var re=be,ye;re!==null;){var Re=re;if(ye=Re.stateNode,Re=Re.tag,Re!==5&&Re!==26&&Re!==27||ye===null||de===null||(Re=Xl(re,de),Re!=null&&ht.push(Dh(re,Re,ye))),zn)break;re=re.return}0<ht.length&&(ve=new Te(ve,We,null,c,je),Ne.push({event:ve,listeners:ht}))}}if((o&7)===0){e:{if(ve=l==="mouseover"||l==="pointerover",Te=l==="mouseout"||l==="pointerout",ve&&c!==Gm&&(We=c.relatedTarget||c.fromElement)&&(ho(We)||We[ol]))break e;if((Te||ve)&&(ve=je.window===je?je:(ve=je.ownerDocument)?ve.defaultView||ve.parentWindow:window,Te?(We=c.relatedTarget||c.toElement,Te=be,We=We?ho(We):null,We!==null&&(zn=p(We),ht=We.tag,We!==zn||ht!==5&&ht!==27&&ht!==6)&&(We=null)):(Te=null,We=be),Te!==We)){if(ht=Fu,Re="onMouseLeave",de="onMouseEnter",re="mouse",(l==="pointerout"||l==="pointerover")&&(ht=yi,Re="onPointerLeave",de="onPointerEnter",re="pointer"),zn=Te==null?ve:Pn(Te),ye=We==null?ve:Pn(We),ve=new ht(Re,re+"leave",Te,c,je),ve.target=zn,ve.relatedTarget=ye,Re=null,ho(je)===be&&(ht=new ht(de,re+"enter",We,c,je),ht.target=ye,ht.relatedTarget=zn,Re=ht),zn=Re,Te&&We)t:{for(ht=p1,de=Te,re=We,ye=0,Re=de;Re;Re=ht(Re))ye++;Re=0;for(var lt=re;lt;lt=ht(lt))Re++;for(;0<ye-Re;)de=ht(de),ye--;for(;0<Re-ye;)re=ht(re),Re--;for(;ye--;){if(de===re||re!==null&&de===re.alternate){ht=de;break t}de=ht(de),re=ht(re)}ht=null}else ht=null;Te!==null&&rg(Ne,ve,Te,ht,!1),We!==null&&zn!==null&&rg(Ne,zn,We,ht,!0)}}e:{if(ve=be?Pn(be):window,Te=ve.nodeName&&ve.nodeName.toLowerCase(),Te==="select"||Te==="input"&&ve.type==="file")var sn=i0;else if(Ki(ve))if(tp)sn=Mc;else{sn=xx;var et=Sx}else Te=ve.nodeName,!Te||Te.toLowerCase()!=="input"||ve.type!=="checkbox"&&ve.type!=="radio"?be&&Gy(be.elementType)&&(sn=i0):sn=Ms;if(sn&&(sn=sn(l,be))){o0(Ne,sn,c,je);break e}et&&et(l,ve,be),l==="focusout"&&be&&ve.type==="number"&&be.memoizedProps.value!=null&&za(ve,"number",ve.value)}switch(et=be?Pn(be):window,l){case"focusin":(Ki(et)||et.contentEditable==="true")&&(Ds=et,Gu=be,Xo=null);break;case"focusout":Xo=Gu=Ds=null;break;case"mousedown":vi=!0;break;case"contextmenu":case"mouseup":case"dragend":vi=!1,ap(Ne,c,je);break;case"selectionchange":if(Ud)break;case"keydown":case"keyup":ap(Ne,c,je)}var Ot;if(ku)e:{switch(l){case"compositionstart":var _t="onCompositionStart";break e;case"compositionend":_t="onCompositionEnd";break e;case"compositionupdate":_t="onCompositionUpdate";break e}_t=void 0}else wc?ep(l,c)&&(_t="onCompositionEnd"):l==="keydown"&&c.keyCode===229&&(_t="onCompositionStart");_t&&(n0&&c.locale!=="ko"&&(wc||_t!=="onCompositionStart"?_t==="onCompositionEnd"&&wc&&(Ot=Py()):(Xr=je,Xy="value"in Xr?Xr.value:Xr.textContent,wc=!0)),et=Rh(be,_t),0<et.length&&(_t=new mx(_t,l,null,c,je),Ne.push({event:_t,listeners:et}),Ot?_t.data=Ot:(Ot=l0(c),Ot!==null&&(_t.data=Ot)))),(Ot=Sa?vx(l,c):y2(l,c))&&(_t=Rh(be,"onBeforeInput"),0<_t.length&&(et=new mx("onBeforeInput","beforeinput",null,c,je),Ne.push({event:et,listeners:_t}),et.data=Ot)),Mh(Ne,l,be,c,je)}m1(Ne,o)})}function Dh(l,o,c){return{instance:l,listener:o,currentTarget:c}}function Rh(l,o){for(var c=o+"Capture",d=[];l!==null;){var v=l,x=v.stateNode;if(v=v.tag,v!==5&&v!==26&&v!==27||x===null||(v=Xl(l,c),v!=null&&d.unshift(Dh(l,v,x)),v=Xl(l,o),v!=null&&d.push(Dh(l,v,x))),l.tag===3)return d;l=l.return}return[]}function p1(l){if(l===null)return null;do l=l.return;while(l&&l.tag!==5&&l.tag!==27);return l||null}function rg(l,o,c,d,v){for(var x=o._reactName,M=[];c!==null&&c!==d;){var I=c,W=I.alternate,be=I.stateNode;if(I=I.tag,W!==null&&W===d)break;I!==5&&I!==26&&I!==27||be===null||(W=be,v?(be=Xl(c,x),be!=null&&M.unshift(Dh(c,be,W))):v||(be=Xl(c,x),be!=null&&M.push(Dh(c,be,W)))),c=c.return}M.length!==0&&l.push({event:o,listeners:M})}var g1=/\r\n?/g,xb=/\u0000|\uFFFD/g;function Eb(l){return(typeof l=="string"?l:""+l).replace(g1,`
100
- `).replace(xb,"")}function Cb(l,o){return o=Eb(o),Eb(l)===o}function Mn(l,o,c,d,v,x){switch(c){case"children":typeof d=="string"?o==="body"||o==="textarea"&&d===""||Qi(l,d):(typeof d=="number"||typeof d=="bigint")&&o!=="body"&&Qi(l,""+d);break;case"className":mt(l,"class",d);break;case"tabIndex":mt(l,"tabindex",d);break;case"dir":case"role":case"viewBox":case"width":case"height":mt(l,c,d);break;case"style":sx(l,d,x);break;case"data":if(o!=="object"){mt(l,"data",d);break}case"src":case"href":if(d===""&&(o!=="a"||c!=="href")){l.removeAttribute(c);break}if(d==null||typeof d=="function"||typeof d=="symbol"||typeof d=="boolean"){l.removeAttribute(c);break}d=Io(""+d),l.setAttribute(c,d);break;case"action":case"formAction":if(typeof d=="function"){l.setAttribute(c,"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"&&(c==="formAction"?(o!=="input"&&Mn(l,o,"name",v.name,v,null),Mn(l,o,"formEncType",v.formEncType,v,null),Mn(l,o,"formMethod",v.formMethod,v,null),Mn(l,o,"formTarget",v.formTarget,v,null)):(Mn(l,o,"encType",v.encType,v,null),Mn(l,o,"method",v.method,v,null),Mn(l,o,"target",v.target,v,null)));if(d==null||typeof d=="symbol"||typeof d=="boolean"){l.removeAttribute(c);break}d=Io(""+d),l.setAttribute(c,d);break;case"onClick":d!=null&&(l.onclick=mi);break;case"onScroll":d!=null&&Yt("scroll",l);break;case"onScrollEnd":d!=null&&Yt("scrollend",l);break;case"dangerouslySetInnerHTML":if(d!=null){if(typeof d!="object"||!("__html"in d))throw Error(s(61));if(c=d.__html,c!=null){if(v.children!=null)throw Error(s(60));l.innerHTML=c}}break;case"multiple":l.multiple=d&&typeof d!="function"&&typeof d!="symbol";break;case"muted":l.muted=d&&typeof d!="function"&&typeof d!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(d==null||typeof d=="function"||typeof d=="boolean"||typeof d=="symbol"){l.removeAttribute("xlink:href");break}c=Io(""+d),l.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",c);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":d!=null&&typeof d!="function"&&typeof d!="symbol"?l.setAttribute(c,""+d):l.removeAttribute(c);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":d&&typeof d!="function"&&typeof d!="symbol"?l.setAttribute(c,""):l.removeAttribute(c);break;case"capture":case"download":d===!0?l.setAttribute(c,""):d!==!1&&d!=null&&typeof d!="function"&&typeof d!="symbol"?l.setAttribute(c,d):l.removeAttribute(c);break;case"cols":case"rows":case"size":case"span":d!=null&&typeof d!="function"&&typeof d!="symbol"&&!isNaN(d)&&1<=d?l.setAttribute(c,d):l.removeAttribute(c);break;case"rowSpan":case"start":d==null||typeof d=="function"||typeof d=="symbol"||isNaN(d)?l.removeAttribute(c):l.setAttribute(c,d);break;case"popover":Yt("beforetoggle",l),Yt("toggle",l),hi(l,"popover",d);break;case"xlinkActuate":wn(l,"http://www.w3.org/1999/xlink","xlink:actuate",d);break;case"xlinkArcrole":wn(l,"http://www.w3.org/1999/xlink","xlink:arcrole",d);break;case"xlinkRole":wn(l,"http://www.w3.org/1999/xlink","xlink:role",d);break;case"xlinkShow":wn(l,"http://www.w3.org/1999/xlink","xlink:show",d);break;case"xlinkTitle":wn(l,"http://www.w3.org/1999/xlink","xlink:title",d);break;case"xlinkType":wn(l,"http://www.w3.org/1999/xlink","xlink:type",d);break;case"xmlBase":wn(l,"http://www.w3.org/XML/1998/namespace","xml:base",d);break;case"xmlLang":wn(l,"http://www.w3.org/XML/1998/namespace","xml:lang",d);break;case"xmlSpace":wn(l,"http://www.w3.org/XML/1998/namespace","xml:space",d);break;case"is":hi(l,"is",d);break;case"innerText":case"textContent":break;default:(!(2<c.length)||c[0]!=="o"&&c[0]!=="O"||c[1]!=="n"&&c[1]!=="N")&&(c=d2.get(c)||c,hi(l,c,d))}}function Tb(l,o,c,d,v,x){switch(c){case"style":sx(l,d,x);break;case"dangerouslySetInnerHTML":if(d!=null){if(typeof d!="object"||!("__html"in d))throw Error(s(61));if(c=d.__html,c!=null){if(v.children!=null)throw Error(s(60));l.innerHTML=c}}break;case"children":typeof d=="string"?Qi(l,d):(typeof d=="number"||typeof d=="bigint")&&Qi(l,""+d);break;case"onScroll":d!=null&&Yt("scroll",l);break;case"onScrollEnd":d!=null&&Yt("scrollend",l);break;case"onClick":d!=null&&(l.onclick=mi);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!va.hasOwnProperty(c))e:{if(c[0]==="o"&&c[1]==="n"&&(v=c.endsWith("Capture"),o=c.slice(2,v?c.length-7:void 0),x=l[Un]||null,x=x!=null?x[c]:null,typeof x=="function"&&l.removeEventListener(o,x,v),typeof d=="function")){typeof x!="function"&&x!==null&&(c in l?l[c]=null:l.hasAttribute(c)&&l.removeAttribute(c)),l.addEventListener(o,d,v);break e}c in l?l[c]=d:d===!0?l.setAttribute(c,""):hi(l,c,d)}}}function fa(l,o,c){switch(o){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Yt("error",l),Yt("load",l);var d=!1,v=!1,x;for(x in c)if(c.hasOwnProperty(x)){var M=c[x];if(M!=null)switch(x){case"src":d=!0;break;case"srcSet":v=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(s(137,o));default:Mn(l,o,x,M,c,null)}}v&&Mn(l,o,"srcSet",c.srcSet,c,null),d&&Mn(l,o,"src",c.src,c,null);return;case"input":Yt("invalid",l);var I=x=M=v=null,W=null,be=null;for(d in c)if(c.hasOwnProperty(d)){var je=c[d];if(je!=null)switch(d){case"name":v=je;break;case"type":M=je;break;case"checked":W=je;break;case"defaultChecked":be=je;break;case"value":x=je;break;case"defaultValue":I=je;break;case"children":case"dangerouslySetInnerHTML":if(je!=null)throw Error(s(137,o));break;default:Mn(l,o,d,je,c,null)}}ko(l,x,I,W,be,M,v,!1);return;case"select":Yt("invalid",l),d=M=x=null;for(v in c)if(c.hasOwnProperty(v)&&(I=c[v],I!=null))switch(v){case"value":x=I;break;case"defaultValue":M=I;break;case"multiple":d=I;default:Mn(l,o,v,I,c,null)}o=x,c=M,l.multiple=!!d,o!=null?Gr(l,!!d,o,!1):c!=null&&Gr(l,!!d,c,!0);return;case"textarea":Yt("invalid",l),x=v=d=null;for(M in c)if(c.hasOwnProperty(M)&&(I=c[M],I!=null))switch(M){case"value":d=I;break;case"defaultValue":v=I;break;case"children":x=I;break;case"dangerouslySetInnerHTML":if(I!=null)throw Error(s(91));break;default:Mn(l,o,M,I,c,null)}Uu(l,d,v,x);return;case"option":for(W in c)if(c.hasOwnProperty(W)&&(d=c[W],d!=null))switch(W){case"selected":l.selected=d&&typeof d!="function"&&typeof d!="symbol";break;default:Mn(l,o,W,d,c,null)}return;case"dialog":Yt("beforetoggle",l),Yt("toggle",l),Yt("cancel",l),Yt("close",l);break;case"iframe":case"object":Yt("load",l);break;case"video":case"audio":for(d=0;d<jf.length;d++)Yt(jf[d],l);break;case"image":Yt("error",l),Yt("load",l);break;case"details":Yt("toggle",l);break;case"embed":case"source":case"link":Yt("error",l),Yt("load",l);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(be in c)if(c.hasOwnProperty(be)&&(d=c[be],d!=null))switch(be){case"children":case"dangerouslySetInnerHTML":throw Error(s(137,o));default:Mn(l,o,be,d,c,null)}return;default:if(Gy(o)){for(je in c)c.hasOwnProperty(je)&&(d=c[je],d!==void 0&&Tb(l,o,je,d,c,void 0));return}}for(I in c)c.hasOwnProperty(I)&&(d=c[I],d!=null&&Mn(l,o,I,d,c,null))}function Ob(l,o,c,d){switch(o){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var v=null,x=null,M=null,I=null,W=null,be=null,je=null;for(Te in c){var Ne=c[Te];if(c.hasOwnProperty(Te)&&Ne!=null)switch(Te){case"checked":break;case"value":break;case"defaultValue":W=Ne;default:d.hasOwnProperty(Te)||Mn(l,o,Te,null,d,Ne)}}for(var ve in d){var Te=d[ve];if(Ne=c[ve],d.hasOwnProperty(ve)&&(Te!=null||Ne!=null))switch(ve){case"type":x=Te;break;case"name":v=Te;break;case"checked":be=Te;break;case"defaultChecked":je=Te;break;case"value":M=Te;break;case"defaultValue":I=Te;break;case"children":case"dangerouslySetInnerHTML":if(Te!=null)throw Error(s(137,o));break;default:Te!==Ne&&Mn(l,o,ve,Te,d,Ne)}}Qn(l,M,I,W,be,je,x,v);return;case"select":Te=M=I=ve=null;for(x in c)if(W=c[x],c.hasOwnProperty(x)&&W!=null)switch(x){case"value":break;case"multiple":Te=W;default:d.hasOwnProperty(x)||Mn(l,o,x,null,d,W)}for(v in d)if(x=d[v],W=c[v],d.hasOwnProperty(v)&&(x!=null||W!=null))switch(v){case"value":ve=x;break;case"defaultValue":I=x;break;case"multiple":M=x;default:x!==W&&Mn(l,o,v,x,d,W)}o=I,c=M,d=Te,ve!=null?Gr(l,!!c,ve,!1):!!d!=!!c&&(o!=null?Gr(l,!!c,o,!0):Gr(l,!!c,c?[]:"",!1));return;case"textarea":Te=ve=null;for(I in c)if(v=c[I],c.hasOwnProperty(I)&&v!=null&&!d.hasOwnProperty(I))switch(I){case"value":break;case"children":break;default:Mn(l,o,I,null,d,v)}for(M in d)if(v=d[M],x=c[M],d.hasOwnProperty(M)&&(v!=null||x!=null))switch(M){case"value":ve=v;break;case"defaultValue":Te=v;break;case"children":break;case"dangerouslySetInnerHTML":if(v!=null)throw Error(s(91));break;default:v!==x&&Mn(l,o,M,v,d,x)}Md(l,ve,Te);return;case"option":for(var We in c)if(ve=c[We],c.hasOwnProperty(We)&&ve!=null&&!d.hasOwnProperty(We))switch(We){case"selected":l.selected=!1;break;default:Mn(l,o,We,null,d,ve)}for(W in d)if(ve=d[W],Te=c[W],d.hasOwnProperty(W)&&ve!==Te&&(ve!=null||Te!=null))switch(W){case"selected":l.selected=ve&&typeof ve!="function"&&typeof ve!="symbol";break;default:Mn(l,o,W,ve,d,Te)}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 ht in c)ve=c[ht],c.hasOwnProperty(ht)&&ve!=null&&!d.hasOwnProperty(ht)&&Mn(l,o,ht,null,d,ve);for(be in d)if(ve=d[be],Te=c[be],d.hasOwnProperty(be)&&ve!==Te&&(ve!=null||Te!=null))switch(be){case"children":case"dangerouslySetInnerHTML":if(ve!=null)throw Error(s(137,o));break;default:Mn(l,o,be,ve,d,Te)}return;default:if(Gy(o)){for(var zn in c)ve=c[zn],c.hasOwnProperty(zn)&&ve!==void 0&&!d.hasOwnProperty(zn)&&Tb(l,o,zn,void 0,d,ve);for(je in d)ve=d[je],Te=c[je],!d.hasOwnProperty(je)||ve===Te||ve===void 0&&Te===void 0||Tb(l,o,je,ve,d,Te);return}}for(var de in c)ve=c[de],c.hasOwnProperty(de)&&ve!=null&&!d.hasOwnProperty(de)&&Mn(l,o,de,null,d,ve);for(Ne in d)ve=d[Ne],Te=c[Ne],!d.hasOwnProperty(Ne)||ve===Te||ve==null&&Te==null||Mn(l,o,Ne,ve,d,Te)}function sg(l){switch(l){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function wb(){if(typeof performance.getEntriesByType=="function"){for(var l=0,o=0,c=performance.getEntriesByType("resource"),d=0;d<c.length;d++){var v=c[d],x=v.transferSize,M=v.initiatorType,I=v.duration;if(x&&I&&sg(M)){for(M=0,I=v.responseEnd,d+=1;d<c.length;d++){var W=c[d],be=W.startTime;if(be>I)break;var je=W.transferSize,Ne=W.initiatorType;je&&sg(Ne)&&(W=W.responseEnd,M+=je*(W<I?1:(I-be)/(W-be)))}if(--d,o+=8*(x+M)/(v.duration/1e3),l++,10<l)break}}if(0<l)return o/l/1e6}return navigator.connection&&(l=navigator.connection.downlink,typeof l=="number")?l:5}var cg=null,ug=null;function Ws(l){return l.nodeType===9?l:l.ownerDocument}function y1(l){switch(l){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function jb(l,o){if(l===0)switch(o){case"svg":return 1;case"math":return 2;default:return 0}return l===1&&o==="foreignObject"?0:l}function Mf(l,o){return l==="textarea"||l==="noscript"||typeof o.children=="string"||typeof o.children=="number"||typeof o.children=="bigint"||typeof o.dangerouslySetInnerHTML=="object"&&o.dangerouslySetInnerHTML!==null&&o.dangerouslySetInnerHTML.__html!=null}var fg=null;function x2(){var l=window.event;return l&&l.type==="popstate"?l===fg?!1:(fg=l,!0):(fg=null,!1)}var Nh=typeof setTimeout=="function"?setTimeout:void 0,b1=typeof clearTimeout=="function"?clearTimeout:void 0,lu=typeof Promise=="function"?Promise:void 0,v1=typeof queueMicrotask=="function"?queueMicrotask:typeof lu<"u"?function(l){return lu.resolve(null).then(l).catch(Ab)}:Nh;function Ab(l){setTimeout(function(){throw l})}function Ni(l){return l==="head"}function Mb(l,o){var c=o,d=0;do{var v=c.nextSibling;if(l.removeChild(c),v&&v.nodeType===8)if(c=v.data,c==="/$"||c==="/&"){if(d===0){l.removeChild(v),Vf(o);return}d--}else if(c==="$"||c==="$?"||c==="$~"||c==="$!"||c==="&")d++;else if(c==="html")au(l.ownerDocument.documentElement);else if(c==="head"){c=l.ownerDocument.head,au(c);for(var x=c.firstChild;x;){var M=x.nextSibling,I=x.nodeName;x[ln]||I==="SCRIPT"||I==="STYLE"||I==="LINK"&&x.rel.toLowerCase()==="stylesheet"||c.removeChild(x),x=M}}else c==="body"&&au(l.ownerDocument.body);c=v}while(c);Vf(o)}function wl(l,o){var c=l;l=0;do{var d=c.nextSibling;if(c.nodeType===1?o?(c._stashedDisplay=c.style.display,c.style.display="none"):(c.style.display=c._stashedDisplay||"",c.getAttribute("style")===""&&c.removeAttribute("style")):c.nodeType===3&&(o?(c._stashedText=c.nodeValue,c.nodeValue=""):c.nodeValue=c._stashedText||""),d&&d.nodeType===8)if(c=d.data,c==="/$"){if(l===0)break;l--}else c!=="$"&&c!=="$?"&&c!=="$~"&&c!=="$!"||l++;c=d}while(c)}function _h(l){var o=l.firstChild;for(o&&o.nodeType===10&&(o=o.nextSibling);o;){var c=o;switch(o=o.nextSibling,c.nodeName){case"HTML":case"HEAD":case"BODY":_h(c),Fo(c);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(c.rel.toLowerCase()==="stylesheet")continue}l.removeChild(c)}}function E2(l,o,c,d){for(;l.nodeType===1;){var v=c;if(l.nodeName.toLowerCase()!==o.toLowerCase()){if(!d&&(l.nodeName!=="INPUT"||l.type!=="hidden"))break}else if(d){if(!l[ln])switch(o){case"meta":if(!l.hasAttribute("itemprop"))break;return l;case"link":if(x=l.getAttribute("rel"),x==="stylesheet"&&l.hasAttribute("data-precedence"))break;if(x!==v.rel||l.getAttribute("href")!==(v.href==null||v.href===""?null:v.href)||l.getAttribute("crossorigin")!==(v.crossOrigin==null?null:v.crossOrigin)||l.getAttribute("title")!==(v.title==null?null:v.title))break;return l;case"style":if(l.hasAttribute("data-precedence"))break;return l;case"script":if(x=l.getAttribute("src"),(x!==(v.src==null?null:v.src)||l.getAttribute("type")!==(v.type==null?null:v.type)||l.getAttribute("crossorigin")!==(v.crossOrigin==null?null:v.crossOrigin))&&x&&l.hasAttribute("async")&&!l.hasAttribute("itemprop"))break;return l;default:return l}}else if(o==="input"&&l.type==="hidden"){var x=v.name==null?null:""+v.name;if(v.type==="hidden"&&l.getAttribute("name")===x)return l}else return l;if(l=Ia(l.nextSibling),l===null)break}return null}function Lt(l,o,c){if(o==="")return null;for(;l.nodeType!==3;)if((l.nodeType!==1||l.nodeName!=="INPUT"||l.type!=="hidden")&&!c||(l=Ia(l.nextSibling),l===null))return null;return l}function S1(l,o){for(;l.nodeType!==8;)if((l.nodeType!==1||l.nodeName!=="INPUT"||l.type!=="hidden")&&!o||(l=Ia(l.nextSibling),l===null))return null;return l}function ti(l){return l.data==="$?"||l.data==="$~"}function ec(l){return l.data==="$!"||l.data==="$?"&&l.ownerDocument.readyState!=="loading"}function zf(l,o){var c=l.ownerDocument;if(l.data==="$~")l._reactRetry=o;else if(l.data!=="$?"||c.readyState!=="loading")o();else{var d=function(){o(),c.removeEventListener("DOMContentLoaded",d)};c.addEventListener("DOMContentLoaded",d),l._reactRetry=d}}function Ia(l){for(;l!=null;l=l.nextSibling){var o=l.nodeType;if(o===1||o===3)break;if(o===8){if(o=l.data,o==="$"||o==="$!"||o==="$?"||o==="$~"||o==="&"||o==="F!"||o==="F")break;if(o==="/$"||o==="/&")return null}}return l}var $h=null;function dg(l){l=l.nextSibling;for(var o=0;l;){if(l.nodeType===8){var c=l.data;if(c==="/$"||c==="/&"){if(o===0)return Ia(l.nextSibling);o--}else c!=="$"&&c!=="$!"&&c!=="$?"&&c!=="$~"&&c!=="&"||o++}l=l.nextSibling}return null}function _i(l){l=l.previousSibling;for(var o=0;l;){if(l.nodeType===8){var c=l.data;if(c==="$"||c==="$!"||c==="$?"||c==="$~"||c==="&"){if(o===0)return l;o--}else c!=="/$"&&c!=="/&"||o++}l=l.previousSibling}return null}function Df(l,o,c){switch(o=Ws(c),l){case"html":if(l=o.documentElement,!l)throw Error(s(452));return l;case"head":if(l=o.head,!l)throw Error(s(453));return l;case"body":if(l=o.body,!l)throw Error(s(454));return l;default:throw Error(s(451))}}function au(l){for(var o=l.attributes;o.length;)l.removeAttributeNode(o[0]);Fo(l)}var ao=new Map,Bh=new Set;function Ca(l){return typeof l.getRootNode=="function"?l.getRootNode():l.nodeType===9?l:l.ownerDocument}var $i=ie.d;ie.d={f:C2,r:x1,D:Ce,C:pn,L:T2,m:zb,X:ds,S:Db,M:tc};function C2(){var l=$i.f(),o=Ef();return l||o}function x1(l){var o=Gt(l);o!==null&&o.tag===5&&o.type==="form"?jn(o):$i.r(l)}var Rf=typeof document>"u"?null:document;function _l(l,o,c){var d=Rf;if(d&&typeof o=="string"&&o){var v=st(o);v='link[rel="'+l+'"][href="'+v+'"]',typeof c=="string"&&(v+='[crossorigin="'+c+'"]'),Bh.has(v)||(Bh.add(v),l={rel:l,crossOrigin:c,href:o},d.querySelector(v)===null&&(o=d.createElement("link"),fa(o,"link",l),Tt(o),d.head.appendChild(o)))}}function Ce(l){$i.D(l),_l("dns-prefetch",l,null)}function pn(l,o){$i.C(l,o),_l("preconnect",l,o)}function T2(l,o,c){$i.L(l,o,c);var d=Rf;if(d&&l&&o){var v='link[rel="preload"][as="'+st(o)+'"]';o==="image"&&c&&c.imageSrcSet?(v+='[imagesrcset="'+st(c.imageSrcSet)+'"]',typeof c.imageSizes=="string"&&(v+='[imagesizes="'+st(c.imageSizes)+'"]')):v+='[href="'+st(l)+'"]';var x=v;switch(o){case"style":x=jo(l);break;case"script":x=ou(l)}ao.has(x)||(l=O({rel:"preload",href:o==="image"&&c&&c.imageSrcSet?void 0:l,as:o},c),ao.set(x,l),d.querySelector(v)!==null||o==="style"&&d.querySelector(nc(x))||o==="script"&&d.querySelector($f(x))||(o=d.createElement("link"),fa(o,"link",l),Tt(o),d.head.appendChild(o)))}}function zb(l,o){$i.m(l,o);var c=Rf;if(c&&l){var d=o&&typeof o.as=="string"?o.as:"script",v='link[rel="modulepreload"][as="'+st(d)+'"][href="'+st(l)+'"]',x=v;switch(d){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":x=ou(l)}if(!ao.has(x)&&(l=O({rel:"modulepreload",href:l},o),ao.set(x,l),c.querySelector(v)===null)){switch(d){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(c.querySelector($f(x)))return}d=c.createElement("link"),fa(d,"link",l),Tt(d),c.head.appendChild(d)}}}function Db(l,o,c){$i.S(l,o,c);var d=Rf;if(d&&l){var v=xl(d).hoistableStyles,x=jo(l);o=o||"default";var M=v.get(x);if(!M){var I={loading:0,preload:null};if(M=d.querySelector(nc(x)))I.loading=5;else{l=O({rel:"stylesheet",href:l,"data-precedence":o},c),(c=ao.get(x))&&hg(l,c);var W=M=d.createElement("link");Tt(W),fa(W,"link",l),W._p=new Promise(function(be,je){W.onload=be,W.onerror=je}),W.addEventListener("load",function(){I.loading|=1}),W.addEventListener("error",function(){I.loading|=2}),I.loading|=4,Hh(M,o,d)}M={type:"stylesheet",instance:M,count:1,state:I},v.set(x,M)}}}function ds(l,o){$i.X(l,o);var c=Rf;if(c&&l){var d=xl(c).hoistableScripts,v=ou(l),x=d.get(v);x||(x=c.querySelector($f(v)),x||(l=O({src:l,async:!0},o),(o=ao.get(v))&&mg(l,o),x=c.createElement("script"),Tt(x),fa(x,"link",l),c.head.appendChild(x)),x={type:"script",instance:x,count:1,state:null},d.set(v,x))}}function tc(l,o){$i.M(l,o);var c=Rf;if(c&&l){var d=xl(c).hoistableScripts,v=ou(l),x=d.get(v);x||(x=c.querySelector($f(v)),x||(l=O({src:l,async:!0,type:"module"},o),(o=ao.get(v))&&mg(l,o),x=c.createElement("script"),Tt(x),fa(x,"link",l),c.head.appendChild(x)),x={type:"script",instance:x,count:1,state:null},d.set(v,x))}}function Nf(l,o,c,d){var v=(v=Ve.current)?Ca(v):null;if(!v)throw Error(s(446));switch(l){case"meta":case"title":return null;case"style":return typeof c.precedence=="string"&&typeof c.href=="string"?(o=jo(c.href),c=xl(v).hoistableStyles,d=c.get(o),d||(d={type:"style",instance:null,count:0,state:null},c.set(o,d)),d):{type:"void",instance:null,count:0,state:null};case"link":if(c.rel==="stylesheet"&&typeof c.href=="string"&&typeof c.precedence=="string"){l=jo(c.href);var x=xl(v).hoistableStyles,M=x.get(l);if(M||(v=v.ownerDocument||v,M={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},x.set(l,M),(x=v.querySelector(nc(l)))&&!x._p&&(M.instance=x,M.state.loading=5),ao.has(l)||(c={rel:"preload",as:"style",href:c.href,crossOrigin:c.crossOrigin,integrity:c.integrity,media:c.media,hrefLang:c.hrefLang,referrerPolicy:c.referrerPolicy},ao.set(l,c),x||E1(v,l,c,M.state))),o&&d===null)throw Error(s(528,""));return M}if(o&&d!==null)throw Error(s(529,""));return null;case"script":return o=c.async,c=c.src,typeof c=="string"&&o&&typeof o!="function"&&typeof o!="symbol"?(o=ou(c),c=xl(v).hoistableScripts,d=c.get(o),d||(d={type:"script",instance:null,count:0,state:null},c.set(o,d)),d):{type:"void",instance:null,count:0,state:null};default:throw Error(s(444,l))}}function jo(l){return'href="'+st(l)+'"'}function nc(l){return'link[rel="stylesheet"]['+l+"]"}function _f(l){return O({},l,{"data-precedence":l.precedence,precedence:null})}function E1(l,o,c,d){l.querySelector('link[rel="preload"][as="style"]['+o+"]")?d.loading=1:(o=l.createElement("link"),d.preload=o,o.addEventListener("load",function(){return d.loading|=1}),o.addEventListener("error",function(){return d.loading|=2}),fa(o,"link",c),Tt(o),l.head.appendChild(o))}function ou(l){return'[src="'+st(l)+'"]'}function $f(l){return"script[async]"+l}function Rb(l,o,c){if(o.count++,o.instance===null)switch(o.type){case"style":var d=l.querySelector('style[data-href~="'+st(c.href)+'"]');if(d)return o.instance=d,Tt(d),d;var v=O({},c,{"data-href":c.href,"data-precedence":c.precedence,href:null,precedence:null});return d=(l.ownerDocument||l).createElement("style"),Tt(d),fa(d,"style",v),Hh(d,c.precedence,l),o.instance=d;case"stylesheet":v=jo(c.href);var x=l.querySelector(nc(v));if(x)return o.state.loading|=4,o.instance=x,Tt(x),x;d=_f(c),(v=ao.get(v))&&hg(d,v),x=(l.ownerDocument||l).createElement("link"),Tt(x);var M=x;return M._p=new Promise(function(I,W){M.onload=I,M.onerror=W}),fa(x,"link",d),o.state.loading|=4,Hh(x,c.precedence,l),o.instance=x;case"script":return x=ou(c.src),(v=l.querySelector($f(x)))?(o.instance=v,Tt(v),v):(d=c,(v=ao.get(x))&&(d=O({},c),mg(d,v)),l=l.ownerDocument||l,v=l.createElement("script"),Tt(v),fa(v,"link",d),l.head.appendChild(v),o.instance=v);case"void":return null;default:throw Error(s(443,o.type))}else o.type==="stylesheet"&&(o.state.loading&4)===0&&(d=o.instance,o.state.loading|=4,Hh(d,c.precedence,l));return o.instance}function Hh(l,o,c){for(var d=c.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),v=d.length?d[d.length-1]:null,x=v,M=0;M<d.length;M++){var I=d[M];if(I.dataset.precedence===o)x=I;else if(x!==v)break}x?x.parentNode.insertBefore(l,x.nextSibling):(o=c.nodeType===9?c.head:c,o.insertBefore(l,o.firstChild))}function hg(l,o){l.crossOrigin==null&&(l.crossOrigin=o.crossOrigin),l.referrerPolicy==null&&(l.referrerPolicy=o.referrerPolicy),l.title==null&&(l.title=o.title)}function mg(l,o){l.crossOrigin==null&&(l.crossOrigin=o.crossOrigin),l.referrerPolicy==null&&(l.referrerPolicy=o.referrerPolicy),l.integrity==null&&(l.integrity=o.integrity)}var Bf=null;function Nb(l,o,c){if(Bf===null){var d=new Map,v=Bf=new Map;v.set(c,d)}else v=Bf,d=v.get(c),d||(d=new Map,v.set(c,d));if(d.has(l))return d;for(d.set(l,null),c=c.getElementsByTagName(l),v=0;v<c.length;v++){var x=c[v];if(!(x[ln]||x[Mt]||l==="link"&&x.getAttribute("rel")==="stylesheet")&&x.namespaceURI!=="http://www.w3.org/2000/svg"){var M=x.getAttribute(o)||"";M=l+M;var I=d.get(M);I?I.push(x):d.set(M,[x])}}return d}function pg(l,o,c){l=l.ownerDocument||l,l.head.insertBefore(c,o==="title"?l.querySelector("head > title"):null)}function _b(l,o,c){if(c===1||o.itemProp!=null)return!1;switch(l){case"meta":case"title":return!0;case"style":if(typeof o.precedence!="string"||typeof o.href!="string"||o.href==="")break;return!0;case"link":if(typeof o.rel!="string"||typeof o.href!="string"||o.href===""||o.onLoad||o.onError)break;switch(o.rel){case"stylesheet":return l=o.disabled,typeof o.precedence=="string"&&l==null;default:return!0}case"script":if(o.async&&typeof o.async!="function"&&typeof o.async!="symbol"&&!o.onLoad&&!o.onError&&o.src&&typeof o.src=="string")return!0}return!1}function oo(l){return!(l.type==="stylesheet"&&(l.state.loading&3)===0)}function Sr(l,o,c,d){if(c.type==="stylesheet"&&(typeof d.media!="string"||matchMedia(d.media).matches!==!1)&&(c.state.loading&4)===0){if(c.instance===null){var v=jo(d.href),x=o.querySelector(nc(v));if(x){o=x._p,o!==null&&typeof o=="object"&&typeof o.then=="function"&&(l.count++,l=gg.bind(l),o.then(l,l)),c.state.loading|=4,c.instance=x,Tt(x);return}x=o.ownerDocument||o,d=_f(d),(v=ao.get(v))&&hg(d,v),x=x.createElement("link"),Tt(x);var M=x;M._p=new Promise(function(I,W){M.onload=I,M.onerror=W}),fa(x,"link",d),c.instance=x}l.stylesheets===null&&(l.stylesheets=new Map),l.stylesheets.set(c,o),(o=c.state.preload)&&(c.state.loading&3)===0&&(l.count++,c=gg.bind(l),o.addEventListener("load",c),o.addEventListener("error",c))}}var Ao=0;function $b(l,o){return l.stylesheets&&l.count===0&&bg(l,l.stylesheets),0<l.count||0<l.imgCount?function(c){var d=setTimeout(function(){if(l.stylesheets&&bg(l,l.stylesheets),l.unsuspend){var x=l.unsuspend;l.unsuspend=null,x()}},6e4+o);0<l.imgBytes&&Ao===0&&(Ao=62500*wb());var v=setTimeout(function(){if(l.waitingForImages=!1,l.count===0&&(l.stylesheets&&bg(l,l.stylesheets),l.unsuspend)){var x=l.unsuspend;l.unsuspend=null,x()}},(l.imgBytes>Ao?50:800)+o);return l.unsuspend=c,function(){l.unsuspend=null,clearTimeout(d),clearTimeout(v)}}:null}function gg(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)bg(this,this.stylesheets);else if(this.unsuspend){var l=this.unsuspend;this.unsuspend=null,l()}}}var yg=null;function bg(l,o){l.stylesheets=null,l.unsuspend!==null&&(l.count++,yg=new Map,o.forEach(ea,l),yg=null,gg.call(l))}function ea(l,o){if(!(o.state.loading&4)){var c=yg.get(l);if(c)var d=c.get(null);else{c=new Map,yg.set(l,c);for(var v=l.querySelectorAll("link[data-precedence],style[data-precedence]"),x=0;x<v.length;x++){var M=v[x];(M.nodeName==="LINK"||M.getAttribute("media")!=="not all")&&(c.set(M.dataset.precedence,M),d=M)}d&&c.set(null,d)}v=o.instance,M=v.getAttribute("data-precedence"),x=c.get(M)||d,x===d&&c.set(null,v),c.set(M,v),this.count++,d=gg.bind(this),v.addEventListener("load",d),v.addEventListener("error",d),x?x.parentNode.insertBefore(v,x.nextSibling):(l=l.nodeType===9?l.head:l,l.insertBefore(v,l.firstChild)),o.state.loading|=4}}var Uh={$$typeof:B,Provider:null,Consumer:null,_currentValue:me,_currentValue2:me,_threadCount:0};function Bb(l,o,c,d,v,x,M,I,W){this.tag=1,this.containerInfo=l,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=ui(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ui(0),this.hiddenUpdates=ui(null),this.identifierPrefix=d,this.onUncaughtError=v,this.onCaughtError=x,this.onRecoverableError=M,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=W,this.incompleteTransitions=new Map}function vg(l,o,c,d,v,x,M,I,W,be,je,Ne){return l=new Bb(l,o,c,M,W,be,je,Ne,I),o=1,x===!0&&(o|=24),x=ml(3,null,null,o),l.current=x,x.stateNode=l,o=Yd(),o.refCount++,l.pooledCache=o,o.refCount++,x.memoizedState={element:d,isDehydrated:c,cache:o},Wd(x),l}function iu(l){return l?(l=Na,l):Na}function C1(l,o,c,d,v,x){v=iu(v),d.context===null?d.context=v:d.pendingContext=v,d=ns(o),d.payload={element:c},x=x===void 0?null:x,x!==null&&(d.callback=x),c=So(l,d,o),c!==null&&(ka(c,l,o),qs(c,l,o))}function Sg(l,o){if(l=l.memoizedState,l!==null&&l.dehydrated!==null){var c=l.retryLane;l.retryLane=c!==0&&c<o?c:o}}function Hb(l,o){Sg(l,o),(l=l.alternate)&&Sg(l,o)}function T1(l){if(l.tag===13||l.tag===31){var o=Qr(l,67108864);o!==null&&ka(o,l,67108864),Hb(l,67108864)}}function ru(l){if(l.tag===13||l.tag===31){var o=lo();o=Za(o);var c=Qr(l,o);c!==null&&ka(c,l,o),Hb(l,o)}}var ql=!0;function xr(l,o,c,d){var v=X.T;X.T=null;var x=ie.p;try{ie.p=2,da(l,o,c,d)}finally{ie.p=x,X.T=v}}function Er(l,o,c,d){var v=X.T;X.T=null;var x=ie.p;try{ie.p=8,da(l,o,c,d)}finally{ie.p=x,X.T=v}}function da(l,o,c,d){if(ql){var v=Ub(d);if(v===null)Sb(l,o,d,xg,c),hs(l,d);else if(O2(v,l,o,c,d))d.stopPropagation();else if(hs(l,d),o&4&&-1<Ga.indexOf(l)){for(;v!==null;){var x=Gt(v);if(x!==null)switch(x.tag){case 3:if(x=x.stateNode,x.current.memoizedState.isDehydrated){var M=on(x.pendingLanes);if(M!==0){var I=x;for(I.pendingLanes|=2,I.entangledLanes|=2;M;){var W=1<<31-jt(M);I.entanglements[1]|=W,M&=~W}vr(x),(un&6)===0&&(mn=wt()+500,fs(0))}}break;case 31:case 13:I=Qr(x,2),I!==null&&ka(I,x,2),Ef(),Hb(x,2)}if(x=Ub(d),x===null&&Sb(l,o,d,xg,c),x===v)break;v=x}v!==null&&d.stopPropagation()}else Sb(l,o,d,null,c)}}function Ub(l){return l=Ym(l),Hf(l)}var xg=null;function Hf(l){if(xg=null,l=ho(l),l!==null){var o=p(l);if(o===null)l=null;else{var c=o.tag;if(c===13){if(l=y(o),l!==null)return l;l=null}else if(c===31){if(l=S(o),l!==null)return l;l=null}else if(c===3){if(o.stateNode.current.memoizedState.isDehydrated)return o.tag===3?o.stateNode.containerInfo:null;l=null}else o!==l&&(l=null)}}return xg=l,null}function Lh(l){switch(l){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(yt()){case Rn:return 2;case Oe:return 8;case Fe:case Ht:return 32;case it:return 268435456;default:return 32}default:return 32}}var Uf=!1,Vl=null,ha=null,Ta=null,lc=new Map,ni=new Map,Wn=[],Ga="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 hs(l,o){switch(l){case"focusin":case"focusout":Vl=null;break;case"dragenter":case"dragleave":ha=null;break;case"mouseover":case"mouseout":Ta=null;break;case"pointerover":case"pointerout":lc.delete(o.pointerId);break;case"gotpointercapture":case"lostpointercapture":ni.delete(o.pointerId)}}function su(l,o,c,d,v,x){return l===null||l.nativeEvent!==x?(l={blockedOn:o,domEventName:c,eventSystemFlags:d,nativeEvent:x,targetContainers:[v]},o!==null&&(o=Gt(o),o!==null&&T1(o)),l):(l.eventSystemFlags|=d,o=l.targetContainers,v!==null&&o.indexOf(v)===-1&&o.push(v),l)}function O2(l,o,c,d,v){switch(o){case"focusin":return Vl=su(Vl,l,o,c,d,v),!0;case"dragenter":return ha=su(ha,l,o,c,d,v),!0;case"mouseover":return Ta=su(Ta,l,o,c,d,v),!0;case"pointerover":var x=v.pointerId;return lc.set(x,su(lc.get(x)||null,l,o,c,d,v)),!0;case"gotpointercapture":return x=v.pointerId,ni.set(x,su(ni.get(x)||null,l,o,c,d,v)),!0}return!1}function O1(l){var o=ho(l.target);if(o!==null){var c=p(o);if(c!==null){if(o=c.tag,o===13){if(o=y(c),o!==null){l.blockedOn=o,fo(l.priority,function(){ru(c)});return}}else if(o===31){if(o=S(c),o!==null){l.blockedOn=o,fo(l.priority,function(){ru(c)});return}}else if(o===3&&c.stateNode.current.memoizedState.isDehydrated){l.blockedOn=c.tag===3?c.stateNode.containerInfo:null;return}}}l.blockedOn=null}function qh(l){if(l.blockedOn!==null)return!1;for(var o=l.targetContainers;0<o.length;){var c=Ub(l.nativeEvent);if(c===null){c=l.nativeEvent;var d=new c.constructor(c.type,c);Gm=d,c.target.dispatchEvent(d),Gm=null}else return o=Gt(c),o!==null&&T1(o),l.blockedOn=c,!1;o.shift()}return!0}function Lf(l,o,c){qh(l)&&c.delete(o)}function w1(){Uf=!1,Vl!==null&&qh(Vl)&&(Vl=null),ha!==null&&qh(ha)&&(ha=null),Ta!==null&&qh(Ta)&&(Ta=null),lc.forEach(Lf),ni.forEach(Lf)}function Cr(l,o){l.blockedOn===o&&(l.blockedOn=null,Uf||(Uf=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,w1)))}var qf=null;function j1(l){qf!==l&&(qf=l,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){qf===l&&(qf=null);for(var o=0;o<l.length;o+=3){var c=l[o],d=l[o+1],v=l[o+2];if(typeof d!="function"){if(Hf(d||c)===null)continue;break}var x=Gt(c);x!==null&&(l.splice(o,3),o-=3,cf(x,{pending:!0,data:v,method:c.method,action:d},d,v))}}))}function Vf(l){function o(W){return Cr(W,l)}Vl!==null&&Cr(Vl,l),ha!==null&&Cr(ha,l),Ta!==null&&Cr(Ta,l),lc.forEach(o),ni.forEach(o);for(var c=0;c<Wn.length;c++){var d=Wn[c];d.blockedOn===l&&(d.blockedOn=null)}for(;0<Wn.length&&(c=Wn[0],c.blockedOn===null);)O1(c),c.blockedOn===null&&Wn.shift();if(c=(l.ownerDocument||l).$$reactFormReplay,c!=null)for(d=0;d<c.length;d+=3){var v=c[d],x=c[d+1],M=v[Un]||null;if(typeof x=="function")M||j1(c);else if(M){var I=null;if(x&&x.hasAttribute("formAction")){if(v=x,M=x[Un]||null)I=M.formAction;else if(Hf(v)!==null)continue}else I=M.action;typeof I=="function"?c[d+1]=I:(c.splice(d,3),d-=3),j1(c)}}}function Lb(){function l(x){x.canIntercept&&x.info==="react-transition"&&x.intercept({handler:function(){return new Promise(function(M){return v=M})},focusReset:"manual",scroll:"manual"})}function o(){v!==null&&(v(),v=null),d||setTimeout(c,20)}function c(){if(!d&&!navigation.transition){var x=navigation.currentEntry;x&&x.url!=null&&navigation.navigate(x.url,{state:x.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var d=!1,v=null;return navigation.addEventListener("navigate",l),navigation.addEventListener("navigatesuccess",o),navigation.addEventListener("navigateerror",o),setTimeout(c,100),function(){d=!0,navigation.removeEventListener("navigate",l),navigation.removeEventListener("navigatesuccess",o),navigation.removeEventListener("navigateerror",o),v!==null&&(v(),v=null)}}}function Eg(l){this._internalRoot=l}Cg.prototype.render=Eg.prototype.render=function(l){var o=this._internalRoot;if(o===null)throw Error(s(409));var c=o.current,d=lo();C1(c,d,l,o,null,null)},Cg.prototype.unmount=Eg.prototype.unmount=function(){var l=this._internalRoot;if(l!==null){this._internalRoot=null;var o=l.containerInfo;C1(l.current,2,null,l,null,null),Ef(),o[ol]=null}};function Cg(l){this._internalRoot=l}Cg.prototype.unstable_scheduleHydration=function(l){if(l){var o=ba();l={blockedOn:null,target:l,priority:o};for(var c=0;c<Wn.length&&o!==0&&o<Wn[c].priority;c++);Wn.splice(c,0,l),c===0&&O1(l)}};var qb=i.version;if(qb!=="19.2.7")throw Error(s(527,qb,"19.2.7"));ie.findDOMNode=function(l){var o=l._reactInternals;if(o===void 0)throw typeof l.render=="function"?Error(s(188)):(l=Object.keys(l).join(","),Error(s(268,l)));return l=C(o),l=l!==null?j(l):null,l=l===null?null:l.stateNode,l};var A1={bundleType:0,version:"19.2.7",rendererPackageName:"react-dom",currentDispatcherRef:X,reconcilerVersion:"19.2.7"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Vh=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Vh.isDisabled&&Vh.supportsFiber)try{ul=Vh.inject(A1),Bn=Vh}catch{}}return my.createRoot=function(l,o){if(!f(l))throw Error(s(299));var c=!1,d="",v=_p,x=V0,M=$p;return o!=null&&(o.unstable_strictMode===!0&&(c=!0),o.identifierPrefix!==void 0&&(d=o.identifierPrefix),o.onUncaughtError!==void 0&&(v=o.onUncaughtError),o.onCaughtError!==void 0&&(x=o.onCaughtError),o.onRecoverableError!==void 0&&(M=o.onRecoverableError)),o=vg(l,1,!1,null,null,c,d,null,v,x,M,Lb),l[ol]=o.current,Af(l),new Eg(o)},my.hydrateRoot=function(l,o,c){if(!f(l))throw Error(s(299));var d=!1,v="",x=_p,M=V0,I=$p,W=null;return c!=null&&(c.unstable_strictMode===!0&&(d=!0),c.identifierPrefix!==void 0&&(v=c.identifierPrefix),c.onUncaughtError!==void 0&&(x=c.onUncaughtError),c.onCaughtError!==void 0&&(M=c.onCaughtError),c.onRecoverableError!==void 0&&(I=c.onRecoverableError),c.formState!==void 0&&(W=c.formState)),o=vg(l,1,!0,o,c??null,d,v,W,x,M,I,Lb),o.context=iu(null),c=o.current,d=lo(),d=Za(d),v=ns(d),v.callback=null,So(c,v,d),c=d,o.current.lanes=c,uo(o,c),vr(o),l[ol]=o.current,Af(l),new Cg(o)},my.version="19.2.7",my}var py={};/**
101
- * @license React
102
- * react-dom-client.development.js
103
- *
104
- * Copyright (c) Meta Platforms, Inc. and affiliates.
105
- *
106
- * This source code is licensed under the MIT license found in the
107
- * LICENSE file in the root directory of this source tree.
108
- */var cj;function k3(){return cj||(cj=1,process.env.NODE_ENV!=="production"&&(function(){function n(e,t){for(e=e.memoizedState;e!==null&&0<t;)e=e.next,t--;return e}function i(e,t,a,u){if(a>=t.length)return u;var h=t[a],g=_l(e)?e.slice():Lt({},e);return g[h]=i(e[h],t,a+1,u),g}function r(e,t,a){if(t.length!==a.length)console.warn("copyWithRename() expects paths of the same length");else{for(var u=0;u<a.length-1;u++)if(t[u]!==a[u]){console.warn("copyWithRename() expects paths to be the same except for the deepest key");return}return s(e,t,a,0)}}function s(e,t,a,u){var h=t[u],g=_l(e)?e.slice():Lt({},e);return u+1===t.length?(g[a[u]]=g[h],_l(g)?g.splice(h,1):delete g[h]):g[h]=s(e[h],t,a,u+1),g}function f(e,t,a){var u=t[a],h=_l(e)?e.slice():Lt({},e);return a+1===t.length?(_l(h)?h.splice(u,1):delete h[u],h):(h[u]=f(e[u],t,a+1),h)}function p(){return!1}function y(){return null}function S(){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 T(){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 C(){}function j(){}function O(e){var t=[];return e.forEach(function(a){t.push(a)}),t.sort().join(", ")}function A(e,t,a,u){return new y2(e,t,a,u)}function R(e,t){e.context===Gf&&(rg(e.current,2,t,e,null,null),Oo())}function N(e,t){if(wr!==null){var a=t.staleFamilies;t=t.updatedFamilies,bh(),vx(e.current,t,a),Oo()}}function L(e){wr=e}function D(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function _(e){var t=e,a=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(a=t.return),e=t.return;while(e)}return t.tag===3?a:null}function U(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function B(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function k(e){if(_(e)!==e)throw Error("Unable to find node on an unmounted component.")}function G(e){var t=e.alternate;if(!t){if(t=_(e),t===null)throw Error("Unable to find node on an unmounted component.");return t!==e?null:e}for(var a=e,u=t;;){var h=a.return;if(h===null)break;var g=h.alternate;if(g===null){if(u=h.return,u!==null){a=u;continue}break}if(h.child===g.child){for(g=h.child;g;){if(g===a)return k(h),e;if(g===u)return k(h),t;g=g.sibling}throw Error("Unable to find node on an unmounted component.")}if(a.return!==u.return)a=h,u=g;else{for(var E=!1,w=h.child;w;){if(w===a){E=!0,a=h,u=g;break}if(w===u){E=!0,u=h,a=g;break}w=w.sibling}if(!E){for(w=g.child;w;){if(w===a){E=!0,a=g,u=h;break}if(w===u){E=!0,u=g,a=h;break}w=w.sibling}if(!E)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(a.alternate!==u)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(a.tag!==3)throw Error("Unable to find node on an unmounted component.");return a.stateNode.current===a?e:t}function Y(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=Y(e),t!==null)return t;e=e.sibling}return null}function P(e){return e===null||typeof e!="object"?null:(e=x1&&e[x1]||e["@@iterator"],typeof e=="function"?e:null)}function Q(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===Rf?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case zf:return"Fragment";case $h:return"Profiler";case Ia:return"StrictMode";case au:return"Suspense";case ao:return"SuspenseList";case $i:return"Activity"}if(typeof e=="object")switch(typeof e.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),e.$$typeof){case ec:return"Portal";case _i:return e.displayName||"Context";case dg:return(e._context.displayName||"Context")+".Consumer";case Df:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Bh:return t=e.displayName||null,t!==null?t:Q(e.type)||"Memo";case Ca:t=e._payload,e=e._init;try{return Q(e(t))}catch{}}return null}function ue(e){return typeof e.tag=="number"?V(e):typeof e.name=="string"?e.name:null}function V(e){var t=e.type;switch(e.tag){case 31:return"Activity";case 24:return"Cache";case 9:return(t._context.displayName||"Context")+".Consumer";case 10:return t.displayName||"Context";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 26:case 27:case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Q(t);case 8:return t===Ia?"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 t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;break;case 29:if(t=e._debugInfo,t!=null){for(var a=t.length-1;0<=a;a--)if(typeof t[a].name=="string")return t[a].name}if(e.return!==null)return V(e.return)}return null}function F(e){return{current:e}}function te(e,t){0>ds?console.error("Unexpected pop."):(t!==Db[ds]&&console.error("Unexpected Fiber popped."),e.current=zb[ds],zb[ds]=null,Db[ds]=null,ds--)}function ae(e,t,a){ds++,zb[ds]=e.current,Db[ds]=a,e.current=t}function ge(e){return e===null&&console.error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue."),e}function He(e,t){ae(jo,t,e),ae(Nf,e,e),ae(tc,null,e);var a=t.nodeType;switch(a){case 9:case 11:a=a===9?"#document":"#fragment",t=(t=t.documentElement)&&(t=t.namespaceURI)?Px(t):Eu;break;default:if(a=t.tagName,t=t.namespaceURI)t=Px(t),t=cs(t,a);else switch(a){case"svg":t=Wg;break;case"math":t=vE;break;default:t=Eu}}a=a.toLowerCase(),a=xc(null,a),a={context:t,ancestorInfo:a},te(tc,e),ae(tc,a,e)}function X(e){te(tc,e),te(Nf,e),te(jo,e)}function ie(){return ge(tc.current)}function me(e){e.memoizedState!==null&&ae(nc,e,e);var t=ge(tc.current),a=e.type,u=cs(t.context,a);a=xc(t.ancestorInfo,a),u={context:u,ancestorInfo:a},t!==u&&(ae(Nf,e,e),ae(tc,u,e))}function fe(e){Nf.current===e&&(te(tc,e),te(Nf,e)),nc.current===e&&(te(nc,e),Mv._currentValue=um)}function ne(){}function ee(){if(_f===0){E1=console.log,ou=console.info,$f=console.warn,Rb=console.error,Hh=console.group,hg=console.groupCollapsed,mg=console.groupEnd;var e={configurable:!0,enumerable:!0,value:ne,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}_f++}function Se(){if(_f--,_f===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Lt({},e,{value:E1}),info:Lt({},e,{value:ou}),warn:Lt({},e,{value:$f}),error:Lt({},e,{value:Rb}),group:Lt({},e,{value:Hh}),groupCollapsed:Lt({},e,{value:hg}),groupEnd:Lt({},e,{value:mg})})}0>_f&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}function Ae(e){var t=Error.prepareStackTrace;if(Error.prepareStackTrace=void 0,e=e.stack,Error.prepareStackTrace=t,e.startsWith(`Error: react-stack-top-frame
109
- `)&&(e=e.slice(29)),t=e.indexOf(`
110
- `),t!==-1&&(e=e.slice(t+1)),t=e.indexOf("react_stack_bottom_frame"),t!==-1&&(t=e.lastIndexOf(`
111
- `,t)),t!==-1)e=e.slice(0,t);else return"";return e}function De(e){if(Bf===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);Bf=t&&t[1]||"",Nb=-1<a.stack.indexOf(`
112
- at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
113
- `+Bf+e+Nb}function Ue(e,t){if(!e||pg)return"";var a=_b.get(e);if(a!==void 0)return a;pg=!0,a=Error.prepareStackTrace,Error.prepareStackTrace=void 0;var u=null;u=Ce.H,Ce.H=null,ee();try{var h={DetermineComponentFrameRoot:function(){try{if(t){var J=function(){throw Error()};if(Object.defineProperty(J.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(J,[])}catch(ke){var xe=ke}Reflect.construct(e,[],J)}else{try{J.call()}catch(ke){xe=ke}e.call(J.prototype)}}else{try{throw Error()}catch(ke){xe=ke}(J=e())&&typeof J.catch=="function"&&J.catch(function(){})}}catch(ke){if(ke&&xe&&typeof ke.stack=="string")return[ke.stack,xe.stack]}return[null,null]}};h.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var g=Object.getOwnPropertyDescriptor(h.DetermineComponentFrameRoot,"name");g&&g.configurable&&Object.defineProperty(h.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var E=h.DetermineComponentFrameRoot(),w=E[0],$=E[1];if(w&&$){var q=w.split(`
114
- `),oe=$.split(`
115
- `);for(E=g=0;g<q.length&&!q[g].includes("DetermineComponentFrameRoot");)g++;for(;E<oe.length&&!oe[E].includes("DetermineComponentFrameRoot");)E++;if(g===q.length||E===oe.length)for(g=q.length-1,E=oe.length-1;1<=g&&0<=E&&q[g]!==oe[E];)E--;for(;1<=g&&0<=E;g--,E--)if(q[g]!==oe[E]){if(g!==1||E!==1)do if(g--,E--,0>E||q[g]!==oe[E]){var se=`
116
- `+q[g].replace(" at new "," at ");return e.displayName&&se.includes("<anonymous>")&&(se=se.replace("<anonymous>",e.displayName)),typeof e=="function"&&_b.set(e,se),se}while(1<=g&&0<=E);break}}}finally{pg=!1,Ce.H=u,Se(),Error.prepareStackTrace=a}return q=(q=e?e.displayName||e.name:"")?De(q):"",typeof e=="function"&&_b.set(e,q),q}function Ve(e,t){switch(e.tag){case 26:case 27:case 5:return De(e.type);case 16:return De("Lazy");case 13:return e.child!==t&&t!==null?De("Suspense Fallback"):De("Suspense");case 19:return De("SuspenseList");case 0:case 15:return Ue(e.type,!1);case 11:return Ue(e.type.render,!1);case 1:return Ue(e.type,!0);case 31:return De("Activity");default:return""}}function Pe(e){try{var t="",a=null;do{t+=Ve(e,a);var u=e._debugInfo;if(u)for(var h=u.length-1;0<=h;h--){var g=u[h];if(typeof g.name=="string"){var E=t;e:{var w=g.name,$=g.env,q=g.debugLocation;if(q!=null){var oe=Ae(q),se=oe.lastIndexOf(`
117
- `),J=se===-1?oe:oe.slice(se+1);if(J.indexOf(w)!==-1){var xe=`
118
- `+J;break e}}xe=De(w+($?" ["+$+"]":""))}t=E+xe}}a=e,e=e.return}while(e);return t}catch(ke){return`
119
- Error generating stack: `+ke.message+`
120
- `+ke.stack}}function Ie(e){return(e=e?e.displayName||e.name:"")?De(e):""}function nt(){if(oo===null)return null;var e=oo._debugOwner;return e!=null?ue(e):null}function ut(){if(oo===null)return"";var e=oo;try{var t="";switch(e.tag===6&&(e=e.return),e.tag){case 26:case 27:case 5:t+=De(e.type);break;case 13:t+=De("Suspense");break;case 19:t+=De("SuspenseList");break;case 31:t+=De("Activity");break;case 30:case 0:case 15:case 1:e._debugOwner||t!==""||(t+=Ie(e.type));break;case 11:e._debugOwner||t!==""||(t+=Ie(e.type.render))}for(;e;)if(typeof e.tag=="number"){var a=e;e=a._debugOwner;var u=a._debugStack;if(e&&u){var h=Ae(u);h!==""&&(t+=`
121
- `+h)}}else if(e.debugStack!=null){var g=e.debugStack;(e=e.owner)&&g&&(t+=`
122
- `+Ae(g))}else break;var E=t}catch(w){E=`
123
- Error generating stack: `+w.message+`
124
- `+w.stack}return E}function ze(e,t,a,u,h,g,E){var w=oo;Ye(e);try{return e!==null&&e._debugTask?e._debugTask.run(t.bind(null,a,u,h,g,E)):t(a,u,h,g,E)}finally{Ye(w)}throw Error("runWithFiberInDEV should never be called in production. This is a bug in React.")}function Ye(e){Ce.getCurrentStack=e===null?null:ut,Sr=!1,oo=e}function Rt(e){return typeof Symbol=="function"&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object"}function Le(e){try{return ft(e),!1}catch{return!0}}function ft(e){return""+e}function $e(e,t){if(Le(e))return console.error("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before using it here.",t,Rt(e)),ft(e)}function Xe(e,t){if(Le(e))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.",t,Rt(e)),ft(e)}function dt(e){if(Le(e))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.",Rt(e)),ft(e)}function Ct(e){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")return!1;var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled)return!0;if(!t.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{ru=t.inject(e),ql=t}catch(a){console.error("React instrumentation encountered an error: %o.",a)}return!!t.checkDCE}function pe(e){if(typeof Hb=="function"&&T1(e),ql&&typeof ql.setStrictMode=="function")try{ql.setStrictMode(ru,e)}catch(t){xr||(xr=!0,console.error("React instrumentation encountered an error: %o",t))}}function Be(e){return e>>>=0,e===0?32:31-(Ub(e)/xg|0)|0}function Ke(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return console.error("Should have found matching lanes. This is a bug in React."),e}}function rt(e,t,a){var u=e.pendingLanes;if(u===0)return 0;var h=0,g=e.suspendedLanes,E=e.pingedLanes;e=e.warmLanes;var w=u&134217727;return w!==0?(u=w&~g,u!==0?h=Ke(u):(E&=w,E!==0?h=Ke(E):a||(a=w&~e,a!==0&&(h=Ke(a))))):(w=u&~g,w!==0?h=Ke(w):E!==0?h=Ke(E):a||(a=u&~e,a!==0&&(h=Ke(a)))),h===0?0:t!==0&&t!==h&&(t&g)===0&&(g=h&-h,a=t&-t,g>=a||g===32&&(a&4194048)!==0)?t:h}function wt(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function yt(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return console.error("Should have found matching lanes. This is a bug in React."),-1}}function Rn(){var e=Uf;return Uf<<=1,(Uf&62914560)===0&&(Uf=4194304),e}function Oe(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function Fe(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Ht(e,t,a,u,h,g){var E=e.pendingLanes;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=a,e.entangledLanes&=a,e.errorRecoveryDisabledLanes&=a,e.shellSuspendCounter=0;var w=e.entanglements,$=e.expirationTimes,q=e.hiddenUpdates;for(a=E&~a;0<a;){var oe=31-da(a),se=1<<oe;w[oe]=0,$[oe]=-1;var J=q[oe];if(J!==null)for(q[oe]=null,oe=0;oe<J.length;oe++){var xe=J[oe];xe!==null&&(xe.lane&=-536870913)}a&=~se}u!==0&&it(e,u,0),g!==0&&h===0&&e.tag!==0&&(e.suspendedLanes|=g&~(E&~t))}function it(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var u=31-da(t);e.entangledLanes|=t,e.entanglements[u]=e.entanglements[u]|1073741824|a&261930}function Sl(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var u=31-da(a),h=1<<u;h&t|e[u]&t&&(e[u]|=t),a&=~h}}function Pt(e,t){var a=t&-t;return a=(a&42)!==0?1:ul(a),(a&(e.suspendedLanes|t))!==0?0:a}function ul(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Bn(e,t,a){if(Er)for(e=e.pendingUpdatersLaneMap;0<a;){var u=31-da(a),h=1<<u;e[u].add(t),a&=~h}}function En(e,t){if(Er)for(var a=e.pendingUpdatersLaneMap,u=e.memoizedUpdaters;0<t;){var h=31-da(t);e=1<<h,h=a[h],0<h.size&&(h.forEach(function(g){var E=g.alternate;E!==null&&u.has(E)||u.add(g)}),h.clear()),t&=~e}}function jt(e){return e&=-e,Vl<e?ha<e?(e&134217727)!==0?Ta:lc:ha:Vl}function nn(){var e=pn.p;return e!==0?e:(e=window.event,e===void 0?Ta:cg(e.type))}function At(e,t){var a=pn.p;try{return pn.p=e,t()}finally{pn.p=a}}function Nn(e){delete e[Wn],delete e[Ga],delete e[su],delete e[O2],delete e[O1]}function gn(e){var t=e[Wn];if(t)return t;for(var a=e.parentNode;a;){if(t=a[hs]||a[Wn]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=eu(e);e!==null;){if(a=e[Wn])return a;e=eu(e)}return t}e=a,a=e.parentNode}return null}function Jt(e){if(e=e[Wn]||e[hs]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Hn(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error("getNodeFromInstance: Invalid argument.")}function on(e){var t=e[qh];return t||(t=e[qh]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function rn(e){e[Lf]=!0}function fl(e,t){Ut(e,t),Ut(e+"Capture",t)}function Ut(e,t){Cr[e]&&console.error("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",e),Cr[e]=t;var a=e.toLowerCase();for(qf[a]=e,e==="onDoubleClick"&&(qf.ondblclick=e),e=0;e<t.length;e++)w1.add(t[e])}function Gl(e,t){j1[t.type]||t.onChange||t.onInput||t.readOnly||t.disabled||t.value==null||console.error(e==="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`."),t.onChange||t.readOnly||t.disabled||t.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 ui(e){return Ao.call(Eg,e)?!0:Ao.call(Lb,e)?!1:Vf.test(e)?Eg[e]=!0:(Lb[e]=!0,console.error("Invalid attribute name: `%s`",e),!1)}function uo(e,t,a){if(ui(t)){if(!e.hasAttribute(t)){switch(typeof a){case"symbol":case"object":return a;case"function":return a;case"boolean":if(a===!1)return a}return a===void 0?void 0:null}return e=e.getAttribute(t),e===""&&a===!0?!0:($e(a,t),e===""+a?a:e)}}function fi(e,t,a){if(ui(t))if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var u=t.toLowerCase().slice(0,5);if(u!=="data-"&&u!=="aria-"){e.removeAttribute(t);return}}$e(a,t),e.setAttribute(t,""+a)}}function qo(e,t,a){if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}$e(a,t),e.setAttribute(t,""+a)}}function zl(e,t,a,u){if(u===null)e.removeAttribute(a);else{switch(typeof u){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}$e(u,a),e.setAttributeNS(t,a,""+u)}}function dl(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return dt(e),e;default:return""}}function Za(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Vo(e,t,a){var u=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof u<"u"&&typeof u.get=="function"&&typeof u.set=="function"){var h=u.get,g=u.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return h.call(this)},set:function(E){dt(E),a=""+E,g.call(this,E)}}),Object.defineProperty(e,t,{enumerable:u.enumerable}),{getValue:function(){return a},setValue:function(E){dt(E),a=""+E},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ba(e){if(!e._valueTracker){var t=Za(e)?"checked":"value";e._valueTracker=Vo(e,t,""+e[t])}}function fo(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),u="";return e&&(u=Za(e)?e.checked?"true":"false":e.value),e=u,e!==a?(t.setValue(e),!0):!1}function In(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Mt(e){return e.replace(Cg,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Un(e,t){t.checked===void 0||t.defaultChecked===void 0||A1||(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",nt()||"A component",t.type),A1=!0),t.value===void 0||t.defaultValue===void 0||qb||(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",nt()||"A component",t.type),qb=!0)}function ol(e,t,a,u,h,g,E,w){e.name="",E!=null&&typeof E!="function"&&typeof E!="symbol"&&typeof E!="boolean"?($e(E,"type"),e.type=E):e.removeAttribute("type"),t!=null?E==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+dl(t)):e.value!==""+dl(t)&&(e.value=""+dl(t)):E!=="submit"&&E!=="reset"||e.removeAttribute("value"),t!=null?Ma(e,E,dl(t)):a!=null?Ma(e,E,dl(a)):u!=null&&e.removeAttribute("value"),h==null&&g!=null&&(e.defaultChecked=!!g),h!=null&&(e.checked=h&&typeof h!="function"&&typeof h!="symbol"),w!=null&&typeof w!="function"&&typeof w!="symbol"&&typeof w!="boolean"?($e(w,"name"),e.name=""+dl(w)):e.removeAttribute("name")}function Xn(e,t,a,u,h,g,E,w){if(g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"&&($e(g,"type"),e.type=g),t!=null||a!=null){if(!(g!=="submit"&&g!=="reset"||t!=null)){ba(e);return}a=a!=null?""+dl(a):"",t=t!=null?""+dl(t):a,w||t===e.value||(e.value=t),e.defaultValue=t}u=u??h,u=typeof u!="function"&&typeof u!="symbol"&&!!u,e.checked=w?e.checked:!!u,e.defaultChecked=!!u,E!=null&&typeof E!="function"&&typeof E!="symbol"&&typeof E!="boolean"&&($e(E,"name"),e.name=E),ba(e)}function Ma(e,t,a){t==="number"&&In(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function Fr(e,t){t.value==null&&(typeof t.children=="object"&&t.children!==null?_h.Children.forEach(t.children,function(a){a==null||typeof a=="string"||typeof a=="number"||typeof a=="bigint"||l||(l=!0,console.error("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>."))}):t.dangerouslySetInnerHTML==null||o||(o=!0,console.error("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),t.selected==null||Vh||(console.error("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),Vh=!0)}function di(){var e=nt();return e?`
125
-
126
- Check the render method of \``+e+"`.":""}function ln(e,t,a,u){if(e=e.options,t){t={};for(var h=0;h<a.length;h++)t["$"+a[h]]=!0;for(a=0;a<e.length;a++)h=t.hasOwnProperty("$"+e[a].value),e[a].selected!==h&&(e[a].selected=h),h&&u&&(e[a].defaultSelected=!0)}else{for(a=""+dl(a),t=null,h=0;h<e.length;h++){if(e[h].value===a){e[h].selected=!0,u&&(e[h].defaultSelected=!0);return}t!==null||e[h].disabled||(t=e[h])}t!==null&&(t.selected=!0)}}function Fo(e,t){for(e=0;e<d.length;e++){var a=d[e];if(t[a]!=null){var u=_l(t[a]);t.multiple&&!u?console.error("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",a,di()):!t.multiple&&u&&console.error("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",a,di())}}t.value===void 0||t.defaultValue===void 0||c||(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"),c=!0)}function ho(e,t){t.value===void 0||t.defaultValue===void 0||v||(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",nt()||"A component"),v=!0),t.children!=null&&t.value==null&&console.error("Use the `defaultValue` or `value` props instead of setting children on <textarea>.")}function Gt(e,t,a){if(t!=null&&(t=""+dl(t),t!==e.value&&(e.value=t),a==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=a!=null?""+dl(a):""}function Pn(e,t,a,u){if(t==null){if(u!=null){if(a!=null)throw Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(_l(u)){if(1<u.length)throw Error("<textarea> can only have at most one child.");u=u[0]}a=u}a==null&&(a=""),t=a}a=dl(t),e.defaultValue=a,u=e.textContent,u===a&&u!==""&&u!==null&&(e.value=u),ba(e)}function xl(e,t){return e.serverProps===void 0&&e.serverTail.length===0&&e.children.length===1&&3<e.distanceFromLeaf&&e.distanceFromLeaf>15-t?xl(e.children[0],t):e}function Tt(e){return" "+" ".repeat(e)}function Dl(e){return"+ "+" ".repeat(e)}function va(e){return"- "+" ".repeat(e)}function Yl(e){switch(e.tag){case 26:case 27:case 5:return e.type;case 16:return"Lazy";case 31:return"Activity";case 13:return"Suspense";case 19:return"SuspenseList";case 0:case 15:return e=e.type,e.displayName||e.name||null;case 11:return e=e.type.render,e.displayName||e.name||null;case 1:return e=e.type,e.displayName||e.name||null;default:return null}}function Bl(e,t){return x.test(e)?(e=JSON.stringify(e),e.length>t-2?8>t?'{"..."}':"{"+e.slice(0,t-7)+'..."}':"{"+e+"}"):e.length>t?5>t?'{"..."}':e.slice(0,t-3)+"...":e}function kr(e,t,a){var u=120-2*a;if(t===null)return Dl(a)+Bl(e,u)+`
127
- `;if(typeof t=="string"){for(var h=0;h<t.length&&h<e.length&&t.charCodeAt(h)===e.charCodeAt(h);h++);return h>u-8&&10<h&&(e="..."+e.slice(h-8),t="..."+t.slice(h-8)),Dl(a)+Bl(e,u)+`
128
- `+va(a)+Bl(t,u)+`
129
- `}return Tt(a)+Bl(e,u)+`
130
- `}function Xi(e){return Object.prototype.toString.call(e).replace(/^\[object (.*)\]$/,function(t,a){return a})}function hl(e,t){switch(typeof e){case"string":return e=JSON.stringify(e),e.length>t?5>t?'"..."':e.slice(0,t-4)+'..."':e;case"object":if(e===null)return"null";if(_l(e))return"[...]";if(e.$$typeof===ti)return(t=Q(e.type))?"<"+t+">":"<...>";var a=Xi(e);if(a==="Object"){a="",t-=2;for(var u in e)if(e.hasOwnProperty(u)){var h=JSON.stringify(u);if(h!=='"'+u+'"'&&(u=h),t-=u.length-2,h=hl(e[u],15>t?t:15),t-=h.length,0>t){a+=a===""?"...":", ...";break}a+=(a===""?"":",")+u+":"+h}return"{"+a+"}"}return a;case"function":return(t=e.displayName||e.name)?"function "+t:"function";default:return String(e)}}function Ja(e,t){return typeof e!="string"||x.test(e)?"{"+hl(e,t-2)+"}":e.length>t-2?5>t?'"..."':'"'+e.slice(0,t-5)+'..."':'"'+e+'"'}function hi(e,t,a){var u=120-a.length-e.length,h=[],g;for(g in t)if(t.hasOwnProperty(g)&&g!=="children"){var E=Ja(t[g],120-a.length-g.length-1);u-=g.length+E.length+2,h.push(g+"="+E)}return h.length===0?a+"<"+e+`>
131
- `:0<u?a+"<"+e+" "+h.join(" ")+`>
132
- `:a+"<"+e+`
133
- `+a+" "+h.join(`
134
- `+a+" ")+`
135
- `+a+`>
136
- `}function mt(e,t,a){var u="",h=Lt({},t),g;for(g in e)if(e.hasOwnProperty(g)){delete h[g];var E=120-2*a-g.length-2,w=hl(e[g],E);t.hasOwnProperty(g)?(E=hl(t[g],E),u+=Dl(a)+g+": "+w+`
137
- `,u+=va(a)+g+": "+E+`
138
- `):u+=Dl(a)+g+": "+w+`
139
- `}for(var $ in h)h.hasOwnProperty($)&&(e=hl(h[$],120-2*a-$.length-2),u+=va(a)+$+": "+e+`
140
- `);return u}function wn(e,t,a,u){var h="",g=new Map;for(q in a)a.hasOwnProperty(q)&&g.set(q.toLowerCase(),q);if(g.size===1&&g.has("children"))h+=hi(e,t,Tt(u));else{for(var E in t)if(t.hasOwnProperty(E)&&E!=="children"){var w=120-2*(u+1)-E.length-1,$=g.get(E.toLowerCase());if($!==void 0){g.delete(E.toLowerCase());var q=t[E];$=a[$];var oe=Ja(q,w);w=Ja($,w),typeof q=="object"&&q!==null&&typeof $=="object"&&$!==null&&Xi(q)==="Object"&&Xi($)==="Object"&&(2<Object.keys(q).length||2<Object.keys($).length||-1<oe.indexOf("...")||-1<w.indexOf("..."))?h+=Tt(u+1)+E+`={{
141
- `+mt(q,$,u+2)+Tt(u+1)+`}}
142
- `:(h+=Dl(u+1)+E+"="+oe+`
143
- `,h+=va(u+1)+E+"="+w+`
144
- `)}else h+=Tt(u+1)+E+"="+Ja(t[E],w)+`
145
- `}g.forEach(function(se){if(se!=="children"){var J=120-2*(u+1)-se.length-1;h+=va(u+1)+se+"="+Ja(a[se],J)+`
146
- `}}),h=h===""?Tt(u)+"<"+e+`>
147
- `:Tt(u)+"<"+e+`
148
- `+h+Tt(u)+`>
149
- `}return e=a.children,t=t.children,typeof e=="string"||typeof e=="number"||typeof e=="bigint"?(g="",(typeof t=="string"||typeof t=="number"||typeof t=="bigint")&&(g=""+t),h+=kr(g,""+e,u+1)):(typeof t=="string"||typeof t=="number"||typeof t=="bigint")&&(h=e==null?h+kr(""+t,null,u+1):h+kr(""+t,void 0,u+1)),h}function dn(e,t){var a=Yl(e);if(a===null){for(a="",e=e.child;e;)a+=dn(e,t),e=e.sibling;return a}return Tt(t)+"<"+a+`>
150
- `}function Pi(e,t){var a=xl(e,t);if(a!==e&&(e.children.length!==1||e.children[0]!==a))return Tt(t)+`...
151
- `+Pi(a,t+1);a="";var u=e.fiber._debugInfo;if(u)for(var h=0;h<u.length;h++){var g=u[h].name;typeof g=="string"&&(a+=Tt(t)+"<"+g+`>
152
- `,t++)}if(u="",h=e.fiber.pendingProps,e.fiber.tag===6)u=kr(h,e.serverProps,t),t++;else if(g=Yl(e.fiber),g!==null)if(e.serverProps===void 0){u=t;var E=120-2*u-g.length-2,w="";for(q in h)if(h.hasOwnProperty(q)&&q!=="children"){var $=Ja(h[q],15);if(E-=q.length+$.length+2,0>E){w+=" ...";break}w+=" "+q+"="+$}u=Tt(u)+"<"+g+w+`>
153
- `,t++}else e.serverProps===null?(u=hi(g,h,Dl(t)),t++):typeof e.serverProps=="string"?console.error("Should not have matched a non HostText fiber to a Text node. This is a bug in React."):(u=wn(g,h,e.serverProps,t),t++);var q="";for(h=e.fiber.child,g=0;h&&g<e.children.length;)E=e.children[g],E.fiber===h?(q+=Pi(E,t),g++):q+=dn(h,t),h=h.sibling;for(h&&0<e.children.length&&(q+=Tt(t)+`...
154
- `),h=e.serverTail,e.serverProps===null&&t--,e=0;e<h.length;e++)g=h[e],q=typeof g=="string"?q+(va(t)+Bl(g,120-2*t)+`
155
- `):q+hi(g.type,g.props,va(t));return a+u+q}function Sc(e){try{return`
156
-
157
- `+Pi(e,0)}catch{return""}}function Os(e,t,a){for(var u=t,h=null,g=0;u;)u===e&&(g=0),h={fiber:u,children:h!==null?[h]:[],serverProps:u===t?a:u===e?null:void 0,serverTail:[],distanceFromLeaf:g},g++,u=u.return;return h!==null?Sc(h).replaceAll(/^[+-]/gm,">"):""}function xc(e,t){var a=Lt({},e||je),u={tag:t};return I.indexOf(t)!==-1&&(a.aTagInScope=null,a.buttonTagInScope=null,a.nobrTagInScope=null),W.indexOf(t)!==-1&&(a.pTagInButtonScope=null),M.indexOf(t)!==-1&&t!=="address"&&t!=="div"&&t!=="p"&&(a.listItemTagAutoclosing=null,a.dlItemTagAutoclosing=null),a.current=u,t==="form"&&(a.formTag=u),t==="a"&&(a.aTagInScope=u),t==="button"&&(a.buttonTagInScope=u),t==="nobr"&&(a.nobrTagInScope=u),t==="p"&&(a.pTagInButtonScope=u),t==="li"&&(a.listItemTagAutoclosing=u),(t==="dd"||t==="dt")&&(a.dlItemTagAutoclosing=u),t==="#document"||t==="html"?a.containerTagInScope=null:a.containerTagInScope||(a.containerTagInScope=u),e!==null||t!=="#document"&&t!=="html"&&t!=="body"?a.implicitRootScope===!0&&(a.implicitRootScope=!1):a.implicitRootScope=!0,a}function Ir(e,t,a){switch(t){case"select":return e==="hr"||e==="option"||e==="optgroup"||e==="script"||e==="template"||e==="#text";case"optgroup":return e==="option"||e==="#text";case"option":return e==="#text";case"tr":return e==="th"||e==="td"||e==="style"||e==="script"||e==="template";case"tbody":case"thead":case"tfoot":return e==="tr"||e==="style"||e==="script"||e==="template";case"colgroup":return e==="col"||e==="template";case"table":return e==="caption"||e==="colgroup"||e==="tbody"||e==="tfoot"||e==="thead"||e==="style"||e==="script"||e==="template";case"head":return e==="base"||e==="basefont"||e==="bgsound"||e==="link"||e==="meta"||e==="title"||e==="noscript"||e==="noframes"||e==="style"||e==="script"||e==="template";case"html":if(a)break;return e==="head"||e==="body"||e==="frameset";case"frameset":return e==="frame";case"#document":if(!a)return e==="html"}switch(e){case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return t!=="h1"&&t!=="h2"&&t!=="h3"&&t!=="h4"&&t!=="h5"&&t!=="h6";case"rp":case"rt":return be.indexOf(t)===-1;case"caption":case"col":case"colgroup":case"frameset":case"frame":case"tbody":case"td":case"tfoot":case"th":case"thead":case"tr":return t==null;case"head":return a||t===null;case"html":return a&&t==="#document"||t===null;case"body":return a&&(t==="#document"||t==="html")||t===null}return!0}function Qe(e,t){switch(e){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 t.pTagInButtonScope;case"form":return t.formTag||t.pTagInButtonScope;case"li":return t.listItemTagAutoclosing;case"dd":case"dt":return t.dlItemTagAutoclosing;case"button":return t.buttonTagInScope;case"a":return t.aTagInScope;case"nobr":return t.nobrTagInScope}return null}function st(e,t){for(;e;){switch(e.tag){case 5:case 26:case 27:if(e.type===t)return e}e=e.return}return null}function Qn(e,t){t=t||je;var a=t.current;if(t=(a=Ir(e,a&&a.tag,t.implicitRootScope)?null:a)?null:Qe(e,t),t=a||t,!t)return!0;var u=t.tag;if(t=String(!!a)+"|"+e+"|"+u,Ne[t])return!1;Ne[t]=!0;var h=(t=oo)?st(t.return,u):null,g=t!==null&&h!==null?Os(h,t,null):"",E="<"+e+">";return a?(a="",u==="table"&&e==="tr"&&(a+=" 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`,E,u,a,g)):console.error(`In HTML, %s cannot be a descendant of <%s>.
159
- This will cause a hydration error.%s`,E,u,g),t&&(e=t.return,h===null||e===null||h===e&&e._debugOwner===t._debugOwner||ze(h,function(){console.error(`<%s> cannot contain a nested %s.
160
- See this log for the ancestor stack trace.`,u,E)})),!1}function ko(e,t,a){if(a||Ir("#text",t,!1))return!0;if(a="#text|"+t,Ne[a])return!1;Ne[a]=!0;var u=(a=oo)?st(a,t):null;return a=a!==null&&u!==null?Os(u,a,a.tag!==6?{children:null}:null):"",/\S/.test(e)?console.error(`In HTML, text nodes cannot be a child of <%s>.
161
- This will cause a hydration error.%s`,t,a):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`,t,a),!1}function za(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}function Gr(e){return e.replace(de,function(t,a){return a.toUpperCase()})}function Md(e,t,a){var u=t.indexOf("--")===0;u||(-1<t.indexOf("-")?ye.hasOwnProperty(t)&&ye[t]||(ye[t]=!0,console.error("Unsupported style property %s. Did you mean %s?",t,Gr(t.replace(zn,"ms-")))):ht.test(t)?ye.hasOwnProperty(t)&&ye[t]||(ye[t]=!0,console.error("Unsupported vendor-prefixed style property %s. Did you mean %s?",t,t.charAt(0).toUpperCase()+t.slice(1))):!re.test(a)||Re.hasOwnProperty(a)&&Re[a]||(Re[a]=!0,console.error(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,t,a.replace(re,""))),typeof a=="number"&&(isNaN(a)?lt||(lt=!0,console.error("`NaN` is an invalid value for the `%s` css style property.",t)):isFinite(a)||sn||(sn=!0,console.error("`Infinity` is an invalid value for the `%s` css style property.",t)))),a==null||typeof a=="boolean"||a===""?u?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":u?e.setProperty(t,a):typeof a!="number"||a===0||et.has(t)?t==="float"?e.cssFloat=a:(Xe(a,t),e[t]=(""+a).trim()):e[t]=a+"px"}function Uu(e,t,a){if(t!=null&&typeof t!="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(t&&Object.freeze(t),e=e.style,a!=null){if(t){var u={};if(a){for(var h in a)if(a.hasOwnProperty(h)&&!t.hasOwnProperty(h))for(var g=ve[h]||[h],E=0;E<g.length;E++)u[g[E]]=h}for(var w in t)if(t.hasOwnProperty(w)&&(!a||a[w]!==t[w]))for(h=ve[w]||[w],g=0;g<h.length;g++)u[h[g]]=w;w={};for(var $ in t)for(h=ve[$]||[$],g=0;g<h.length;g++)w[h[g]]=$;$={};for(var q in u)if(h=u[q],(g=w[q])&&h!==g&&(E=h+","+g,!$[E])){$[E]=!0,E=console;var oe=t[h];E.error.call(E,"%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.",oe==null||typeof oe=="boolean"||oe===""?"Removing":"Updating",h,g)}}for(var se in a)!a.hasOwnProperty(se)||t!=null&&t.hasOwnProperty(se)||(se.indexOf("--")===0?e.setProperty(se,""):se==="float"?e.cssFloat="":e[se]="");for(var J in t)q=t[J],t.hasOwnProperty(J)&&a[J]!==q&&Md(e,J,q)}else for(u in t)t.hasOwnProperty(u)&&Md(e,u,t[u])}function Qi(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function ix(e){return fn.get(e)||e}function rx(e,t){if(Ao.call(Tg,t)&&Tg[t])return!0;if(O7.test(t)){if(e="aria-"+t.slice(4).toLowerCase(),e=M1.hasOwnProperty(e)?e:null,e==null)return console.error("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",t),Tg[t]=!0;if(t!==e)return console.error("Invalid ARIA attribute `%s`. Did you mean `%s`?",t,e),Tg[t]=!0}if(T7.test(t)){if(e=t.toLowerCase(),e=M1.hasOwnProperty(e)?e:null,e==null)return Tg[t]=!0,!1;t!==e&&(console.error("Unknown ARIA attribute `%s`. Did you mean `%s`?",t,e),Tg[t]=!0)}return!0}function sx(e,t){var a=[],u;for(u in t)rx(e,u)||a.push(u);t=a.map(function(h){return"`"+h+"`"}).join(", "),a.length===1?console.error("Invalid aria prop %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",t,e):1<a.length&&console.error("Invalid aria props %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",t,e)}function Gy(e,t,a,u){if(Ao.call(Mo,t)&&Mo[t])return!0;var h=t.toLowerCase();if(h==="onfocusin"||h==="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."),Mo[t]=!0;if(typeof a=="function"&&(e==="form"&&t==="action"||e==="input"&&t==="formAction"||e==="button"&&t==="formAction"))return!0;if(u!=null){if(e=u.possibleRegistrationNames,u.registrationNameDependencies.hasOwnProperty(t))return!0;if(u=e.hasOwnProperty(h)?e[h]:null,u!=null)return console.error("Invalid event handler property `%s`. Did you mean `%s`?",t,u),Mo[t]=!0;if(CD.test(t))return console.error("Unknown event handler property `%s`. It will be ignored.",t),Mo[t]=!0}else if(CD.test(t))return w7.test(t)&&console.error("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",t),Mo[t]=!0;if(j7.test(t)||A7.test(t))return!0;if(h==="innerhtml")return console.error("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),Mo[t]=!0;if(h==="aria")return console.error("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),Mo[t]=!0;if(h==="is"&&a!==null&&a!==void 0&&typeof a!="string")return console.error("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof a),Mo[t]=!0;if(typeof a=="number"&&isNaN(a))return console.error("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",t),Mo[t]=!0;if(Bi.hasOwnProperty(h)){if(h=Bi[h],h!==t)return console.error("Invalid DOM property `%s`. Did you mean `%s`?",t,h),Mo[t]=!0}else if(t!==h)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.",t,h),Mo[t]=!0;switch(t){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 a){case"boolean":switch(t){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 h=t.toLowerCase().slice(0,5),h==="data-"||h==="aria-"?!0:(a?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()}.',a,t,t,a,t):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.',a,t,t,a,t,t,t),Mo[t]=!0)}case"function":case"symbol":return Mo[t]=!0,!1;case"string":if(a==="false"||a==="true"){switch(t){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}?",a,t,a==="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".',t,a),Mo[t]=!0}}return!0}function d2(e,t,a){var u=[],h;for(h in t)Gy(e,h,t[h],a)||u.push(h);t=u.map(function(g){return"`"+g+"`"}).join(", "),u.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 ",t,e):1<u.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 ",t,e)}function zd(e){return M7.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Io(){}function mi(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}function Gm(e){var t=Jt(e);if(t&&(e=t.stateNode)){var a=e[Ga]||null;e:switch(e=t.stateNode,t.type){case"input":if(ol(e,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),t=a.name,a.type==="radio"&&t!=null){for(a=e;a.parentNode;)a=a.parentNode;for($e(t,"name"),a=a.querySelectorAll('input[name="'+Mt(""+t)+'"][type="radio"]'),t=0;t<a.length;t++){var u=a[t];if(u!==e&&u.form===e.form){var h=u[Ga]||null;if(!h)throw Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");ol(u,h.value,h.defaultValue,h.defaultValue,h.checked,h.defaultChecked,h.type,h.name)}}for(t=0;t<a.length;t++)u=a[t],u.form===e.form&&fo(u)}break e;case"textarea":Gt(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&ln(e,!!a.multiple,t,!1)}}}function Ym(e,t,a){if(w2)return e(t,a);w2=!0;try{var u=e(t);return u}finally{if(w2=!1,(Og!==null||wg!==null)&&(Oo(),Og&&(t=Og,e=wg,wg=Og=null,Gm(t),e)))for(t=0;t<e.length;t++)Gm(e[t])}}function Zi(e,t){var a=e.stateNode;if(a===null)return null;var u=a[Ga]||null;if(u===null)return null;a=u[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(u=!u.disabled)||(e=e.type,u=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!u;break e;default:e=!1}if(e)return null;if(a&&typeof a!="function")throw Error("Expected `"+t+"` listener to be a function, instead got a value of `"+typeof a+"` type.");return a}function Ec(){if(z1)return z1;var e,t=A2,a=t.length,u,h="value"in Ff?Ff.value:Ff.textContent,g=h.length;for(e=0;e<a&&t[e]===h[e];e++);var E=a-e;for(u=1;u<=E&&t[a-u]===h[g-u];u++);return z1=h.slice(e,1<u?1-u:void 0)}function Dd(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Lu(){return!0}function Yy(){return!1}function Xl(e){function t(a,u,h,g,E){this._reactName=a,this._targetInst=h,this.type=u,this.nativeEvent=g,this.target=E,this.currentTarget=null;for(var w in e)e.hasOwnProperty(w)&&(a=e[w],this[w]=a?a(g):g[w]);return this.isDefaultPrevented=(g.defaultPrevented!=null?g.defaultPrevented:g.returnValue===!1)?Lu:Yy,this.isPropagationStopped=Yy,this}return Lt(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=Lu)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=Lu)},persist:function(){},isPersistent:Lu}),t}function Yr(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=F7[e])?!!t[e]:!1}function Rd(){return Yr}function qu(e,t){switch(e){case"keyup":return e9.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==jD;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Xr(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}function Xy(e,t){switch(e){case"compositionend":return Xr(t);case"keypress":return t.which!==MD?null:(DD=!0,zD);case"textInput":return e=t.data,e===zD&&DD?null:e;default:return null}}function Xm(e,t){if(jg)return e==="compositionend"||!R2&&qu(e,t)?(e=Ec(),z1=A2=Ff=null,jg=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return AD&&t.locale!=="ko"?null:t.data;default:return null}}function Py(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!n9[e.type]:t==="textarea"}function Pm(e){if(!ac)return!1;e="on"+e;var t=e in document;return t||(t=document.createElement("div"),t.setAttribute(e,"return;"),t=typeof t[e]=="function"),t}function Nd(e,t,a,u){Og?wg?wg.push(u):wg=[u]:Og=u,t=Di(t,"onChange"),0<t.length&&(a=new D1("onChange","change",null,a,u),e.push({event:a,listeners:t}))}function cx(e){vn(e,0)}function ua(e){var t=Hn(e);if(fo(t))return e}function ws(e,t){if(e==="change")return t}function _d(){Yb&&(Yb.detachEvent("onpropertychange",Vu),Xb=Yb=null)}function Vu(e){if(e.propertyName==="value"&&ua(Xb)){var t=[];Nd(t,Xb,e,mi(e)),Ym(cx,t)}}function h2(e,t,a){e==="focusin"?(_d(),Yb=t,Xb=a,Yb.attachEvent("onpropertychange",Vu)):e==="focusout"&&_d()}function Qy(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return ua(Xb)}function Zy(e,t){if(e==="click")return ua(t)}function $d(e,t){if(e==="input"||e==="change")return ua(t)}function Qm(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}function Fu(e,t){if(zo(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var a=Object.keys(e),u=Object.keys(t);if(a.length!==u.length)return!1;for(u=0;u<a.length;u++){var h=a[u];if(!Ao.call(t,h)||!zo(e[h],t[h]))return!1}return!0}function ux(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function fx(e,t){var a=ux(e);e=0;for(var u;a;){if(a.nodeType===3){if(u=e+a.textContent.length,e<=t&&u>=t)return{node:a,offset:t-e};e=u}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=ux(a)}}function dx(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?dx(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Zm(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=In(e.document);t instanceof e.HTMLIFrameElement;){try{var a=typeof t.contentWindow.location.href=="string"}catch{a=!1}if(a)e=t.contentWindow;else break;t=In(e.document)}return t}function Jy(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function hx(e,t,a){var u=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;_2||Ag==null||Ag!==In(u)||(u=Ag,"selectionStart"in u&&Jy(u)?u={start:u.selectionStart,end:u.selectionEnd}:(u=(u.ownerDocument&&u.ownerDocument.defaultView||window).getSelection(),u={anchorNode:u.anchorNode,anchorOffset:u.anchorOffset,focusNode:u.focusNode,focusOffset:u.focusOffset}),Pb&&Fu(Pb,u)||(Pb=u,u=Di(N2,"onSelect"),0<u.length&&(t=new D1("onSelect","select",null,t,a),e.push({event:t,listeners:u}),t.target=Ag)))}function Cc(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}function Tc(e){if($2[e])return $2[e];if(!Mg[e])return e;var t=Mg[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in ND)return $2[e]=t[a];return e}function pi(e,t){UD.set(e,t),fl(t,[e])}function mx(e){for(var t=N1,a=0;a<e.length;a++){var u=e[a];if(typeof u=="object"&&u!==null)if(_l(u)&&u.length===2&&typeof u[0]=="string"){if(t!==N1&&t!==q2)return U2;t=q2}else return U2;else{if(typeof u=="function"||typeof u=="string"&&50<u.length||t!==N1&&t!==L2)return U2;t=L2}}return t}function Ky(e,t,a,u){for(var h in e)Ao.call(e,h)&&h[0]!=="_"&&Ji(h,e[h],t,a,u)}function Ji(e,t,a,u,h){switch(typeof t){case"object":if(t===null){t="null";break}else{if(t.$$typeof===ti){var g=Q(t.type)||"…",E=t.key;t=t.props;var w=Object.keys(t),$=w.length;if(E==null&&$===0){t="<"+g+" />";break}if(3>u||$===1&&w[0]==="children"&&E==null){t="<"+g+" … />";break}a.push([h+"  ".repeat(u)+e,"<"+g]),E!==null&&Ji("key",E,a,u+1,h),e=!1;for(var q in t)q==="children"?t.children!=null&&(!_l(t.children)||0<t.children.length)&&(e=!0):Ao.call(t,q)&&q[0]!=="_"&&Ji(q,t[q],a,u+1,h);a.push(["",e?">…</"+g+">":"/>"]);return}if(g=Object.prototype.toString.call(t),g=g.slice(8,g.length-1),g==="Array"){if(q=mx(t),q===L2||q===N1){t=JSON.stringify(t);break}else if(q===q2){for(a.push([h+"  ".repeat(u)+e,""]),e=0;e<t.length;e++)g=t[e],Ji(g[0],g[1],a,u+1,h);return}}if(g==="Promise"){if(t.status==="fulfilled"){if(g=a.length,Ji(e,t.value,a,u,h),a.length>g){a=a[g],a[1]="Promise<"+(a[1]||"Object")+">";return}}else if(t.status==="rejected"&&(g=a.length,Ji(e,t.reason,a,u,h),a.length>g)){a=a[g],a[1]="Rejected Promise<"+a[1]+">";return}a.push(["  ".repeat(u)+e,"Promise"]);return}g==="Object"&&(q=Object.getPrototypeOf(t))&&typeof q.constructor=="function"&&(g=q.constructor.name),a.push([h+"  ".repeat(u)+e,g==="Object"?3>u?"":"…":g]),3>u&&Ky(t,a,u+1,h);return}case"function":t=t.name===""?"() => {}":t.name+"() {}";break;case"string":t=t===c9?"…":JSON.stringify(t);break;case"undefined":t="undefined";break;case"boolean":t=t?"true":"false";break;default:t=String(t)}a.push([h+"  ".repeat(u)+e,t])}function px(e,t,a,u){var h=!0;for(E in e)E in t||(a.push([_1+"  ".repeat(u)+E,"…"]),h=!1);for(var g in t)if(g in e){var E=e[g],w=t[g];if(E!==w){if(u===0&&g==="children")h="  ".repeat(u)+g,a.push([_1+h,"…"],[$1+h,"…"]);else{if(!(3<=u)){if(typeof E=="object"&&typeof w=="object"&&E!==null&&w!==null&&E.$$typeof===w.$$typeof)if(w.$$typeof===ti){if(E.type===w.type&&E.key===w.key){E=Q(w.type)||"…",h="  ".repeat(u)+g,E="<"+E+" … />",a.push([_1+h,E],[$1+h,E]),h=!1;continue}}else{var $=Object.prototype.toString.call(E),q=Object.prototype.toString.call(w);if($===q&&(q==="[object Object]"||q==="[object Array]")){$=[VD+"  ".repeat(u)+g,q==="[object Array]"?"Array":""],a.push($),q=a.length,px(E,w,a,u+1)?q===a.length&&($[1]="Referentially unequal but deeply equal objects. Consider memoization."):h=!1;continue}}else if(typeof E=="function"&&typeof w=="function"&&E.name===w.name&&E.length===w.length&&($=Function.prototype.toString.call(E),q=Function.prototype.toString.call(w),$===q)){E=w.name===""?"() => {}":w.name+"() {}",a.push([VD+"  ".repeat(u)+g,E+" Referentially unequal function closure. Consider memoization."]);continue}}Ji(g,E,a,u,_1),Ji(g,w,a,u,$1)}h=!1}}else a.push([$1+"  ".repeat(u)+g,"…"]),h=!1;return h}function gi(e){an=e&63?"Blocking":e&64?"Gesture":e&4194176?"Transition":e&62914560?"Suspense":e&2080374784?"Idle":"Other"}function Go(e,t,a,u){el&&(If.start=t,If.end=a,cu.color="warning",cu.tooltipText=u,cu.properties=null,(e=e._debugTask)?e.run(performance.measure.bind(performance,u,If)):performance.measure(u,If))}function Jm(e,t,a){Go(e,t,a,"Reconnect")}function Km(e,t,a,u,h){var g=V(e);if(g!==null&&el){var E=e.alternate,w=e.actualDuration;if(E===null||E.child!==e.child)for(var $=e.child;$!==null;$=$.sibling)w-=$.actualDuration;u=.5>w?u?"tertiary-light":"primary-light":10>w?u?"tertiary":"primary":100>w?u?"tertiary-dark":"primary-dark":"error";var q=e.memoizedProps;w=e._debugTask,q!==null&&E!==null&&E.memoizedProps!==q?($=[u9],q=px(E.memoizedProps,q,$,0),1<$.length&&(q&&!kf&&(E.lanes&h)===0&&100<e.actualDuration?(kf=!0,$[0]=f9,cu.color="warning",cu.tooltipText=FD):(cu.color=u,cu.tooltipText=g),cu.properties=$,If.start=t,If.end=a,w!=null?w.run(performance.measure.bind(performance,"​"+g,If)):performance.measure("​"+g,If))):w!=null?w.run(console.timeStamp.bind(console,g,t,a,Tr,void 0,u)):console.timeStamp(g,t,a,Tr,void 0,u)}}function Wy(e,t,a,u){if(el){var h=V(e);if(h!==null){for(var g=null,E=[],w=0;w<u.length;w++){var $=u[w];g==null&&$.source!==null&&(g=$.source._debugTask),$=$.value,E.push(["Error",typeof $=="object"&&$!==null&&typeof $.message=="string"?String($.message):String($)])}e.key!==null&&Ji("key",e.key,E,0,""),e.memoizedProps!==null&&Ky(e.memoizedProps,E,0,""),g==null&&(g=e._debugTask),e={start:t,end:a,detail:{devtools:{color:"error",track:Tr,tooltipText:e.tag===13?"Hydration failed":"Error boundary caught an error",properties:E}}},g?g.run(performance.measure.bind(performance,"​"+h,e)):performance.measure("​"+h,e)}}}function yi(e,t,a,u,h){if(h!==null){if(el){var g=V(e);if(g!==null){u=[];for(var E=0;E<h.length;E++){var w=h[E].value;u.push(["Error",typeof w=="object"&&w!==null&&typeof w.message=="string"?String(w.message):String(w)])}e.key!==null&&Ji("key",e.key,u,0,""),e.memoizedProps!==null&&Ky(e.memoizedProps,u,0,""),t={start:t,end:a,detail:{devtools:{color:"error",track:Tr,tooltipText:"A lifecycle or effect errored",properties:u}}},(e=e._debugTask)?e.run(performance.measure.bind(performance,"​"+g,t)):performance.measure("​"+g,t)}}}else g=V(e),g!==null&&el&&(h=1>u?"secondary-light":100>u?"secondary":500>u?"secondary-dark":"error",(e=e._debugTask)?e.run(console.timeStamp.bind(console,g,t,a,Tr,void 0,h)):console.timeStamp(g,t,a,Tr,void 0,h))}function m2(e,t,a,u){if(el&&!(t<=e)){var h=(a&738197653)===a?"tertiary-dark":"primary-dark";a=(a&536870912)===a?"Prepared":(a&201326741)===a?"Hydrated":"Render",u?u.run(console.timeStamp.bind(console,a,e,t,an,Wt,h)):console.timeStamp(a,e,t,an,Wt,h)}}function gx(e,t,a,u){!el||t<=e||(a=(a&738197653)===a?"tertiary-dark":"primary-dark",u?u.run(console.timeStamp.bind(console,"Prewarm",e,t,an,Wt,a)):console.timeStamp("Prewarm",e,t,an,Wt,a))}function yx(e,t,a,u){!el||t<=e||(a=(a&738197653)===a?"tertiary-dark":"primary-dark",u?u.run(console.timeStamp.bind(console,"Suspended",e,t,an,Wt,a)):console.timeStamp("Suspended",e,t,an,Wt,a))}function p2(e,t,a,u,h,g){if(el&&!(t<=e)){a=[];for(var E=0;E<u.length;E++){var w=u[E].value;a.push(["Recoverable Error",typeof w=="object"&&w!==null&&typeof w.message=="string"?String(w.message):String(w)])}e={start:e,end:t,detail:{devtools:{color:"primary-dark",track:an,trackGroup:Wt,tooltipText:h?"Hydration Failed":"Recovered after Error",properties:a}}},g?g.run(performance.measure.bind(performance,"Recovered",e)):performance.measure("Recovered",e)}}function e0(e,t,a,u){!el||t<=e||(u?u.run(console.timeStamp.bind(console,"Errored",e,t,an,Wt,"error")):console.timeStamp("Errored",e,t,an,Wt,"error"))}function g2(e,t,a,u){!el||t<=e||(u?u.run(console.timeStamp.bind(console,a,e,t,an,Wt,"secondary-light")):console.timeStamp(a,e,t,an,Wt,"secondary-light"))}function bx(e,t,a,u,h){if(el&&!(t<=e)){for(var g=[],E=0;E<a.length;E++){var w=a[E].value;g.push(["Error",typeof w=="object"&&w!==null&&typeof w.message=="string"?String(w.message):String(w)])}e={start:e,end:t,detail:{devtools:{color:"error",track:an,trackGroup:Wt,tooltipText:u?"Remaining Effects Errored":"Commit Errored",properties:g}}},h?h.run(performance.measure.bind(performance,"Errored",e)):performance.measure("Errored",e)}}function t0(e,t,a){!el||t<=e||console.timeStamp("Animating",e,t,an,Wt,"secondary-dark")}function Wm(){for(var e=zg,t=V2=zg=0;t<e;){var a=Or[t];Or[t++]=null;var u=Or[t];Or[t++]=null;var h=Or[t];Or[t++]=null;var g=Or[t];if(Or[t++]=null,u!==null&&h!==null){var E=u.pending;E===null?h.next=h:(h.next=E.next,E.next=h),u.pending=h}g!==0&&n0(a,h,g)}}function ku(e,t,a,u){Or[zg++]=e,Or[zg++]=t,Or[zg++]=a,Or[zg++]=u,V2|=u,e.lanes|=u,e=e.alternate,e!==null&&(e.lanes|=u)}function Oc(e,t,a,u){return ku(e,t,a,u),Bd(e)}function Sa(e,t){return ku(e,null,null,t),Bd(e)}function n0(e,t,a){e.lanes|=a;var u=e.alternate;u!==null&&(u.lanes|=a);for(var h=!1,g=e.return;g!==null;)g.childLanes|=a,u=g.alternate,u!==null&&(u.childLanes|=a),g.tag===22&&(e=g.stateNode,e===null||e._visibility&Qb||(h=!0)),e=g,g=g.return;return e.tag===3?(g=e.stateNode,h&&t!==null&&(h=31-da(a),e=g.hiddenUpdates,u=e[h],u===null?e[h]=[t]:u.push(t),t.lane=a|536870912),g):null}function Bd(e){if(Ev>j9)throw am=Ev=0,Cv=SO=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.");am>A9&&(am=0,Cv=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.")),e.alternate===null&&(e.flags&4098)!==0&&ei(e);for(var t=e,a=t.return;a!==null;)t.alternate===null&&(t.flags&4098)!==0&&ei(e),t=a,a=t.return;return t.tag===3?t.stateNode:null}function js(e){if(wr===null)return e;var t=wr(e);return t===void 0?e:t.current}function ep(e){if(wr===null)return e;var t=wr(e);return t===void 0?e!=null&&typeof e.render=="function"&&(t=js(e.render),e.render!==t)?(t={$$typeof:Df,render:t},e.displayName!==void 0&&(t.displayName=e.displayName),t):e:t.current}function l0(e,t){if(wr===null)return!1;var a=e.elementType;t=t.type;var u=!1,h=typeof t=="object"&&t!==null?t.$$typeof:null;switch(e.tag){case 1:typeof t=="function"&&(u=!0);break;case 0:(typeof t=="function"||h===Ca)&&(u=!0);break;case 11:(h===Df||h===Ca)&&(u=!0);break;case 14:case 15:(h===Bh||h===Ca)&&(u=!0);break;default:return!1}return!!(u&&(e=wr(a),e!==void 0&&e===wr(t)))}function wc(e){wr!==null&&typeof WeakSet=="function"&&(Dg===null&&(Dg=new WeakSet),Dg.add(e))}function vx(e,t,a){do{var u=e,h=u.alternate,g=u.child,E=u.sibling,w=u.tag;u=u.type;var $=null;switch(w){case 0:case 15:case 1:$=u;break;case 11:$=u.render}if(wr===null)throw Error("Expected resolveFamily to be set during hot reload.");var q=!1;if(u=!1,$!==null&&($=wr($),$!==void 0&&(a.has($)?u=!0:t.has($)&&(w===1?u=!0:q=!0))),Dg!==null&&(Dg.has(e)||h!==null&&Dg.has(h))&&(u=!0),u&&(e._debugNeedsRemount=!0),(u||q)&&(h=Sa(e,2),h!==null&&vt(h,e,2)),g===null||u||vx(g,t,a),E===null)break;e=E}while(!0)}function y2(e,t,a,u){this.tag=e,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=u,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,kD||typeof Object.preventExtensions!="function"||Object.preventExtensions(this)}function a0(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Ki(e,t){var a=e.alternate;switch(a===null?(a=A(e.tag,t,e.key,e.mode),a.elementType=e.elementType,a.type=e.type,a.stateNode=e.stateNode,a._debugOwner=e._debugOwner,a._debugStack=e._debugStack,a._debugTask=e._debugTask,a._debugHookTypes=e._debugHookTypes,a.alternate=e,e.alternate=a):(a.pendingProps=t,a.type=e.type,a.flags=0,a.subtreeFlags=0,a.deletions=null,a.actualDuration=-0,a.actualStartTime=-1.1),a.flags=e.flags&65011712,a.childLanes=e.childLanes,a.lanes=e.lanes,a.child=e.child,a.memoizedProps=e.memoizedProps,a.memoizedState=e.memoizedState,a.updateQueue=e.updateQueue,t=e.dependencies,a.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext,_debugThenableState:t._debugThenableState},a.sibling=e.sibling,a.index=e.index,a.ref=e.ref,a.refCleanup=e.refCleanup,a.selfBaseDuration=e.selfBaseDuration,a.treeBaseDuration=e.treeBaseDuration,a._debugInfo=e._debugInfo,a._debugNeedsRemount=e._debugNeedsRemount,a.tag){case 0:case 15:a.type=js(e.type);break;case 1:a.type=js(e.type);break;case 11:a.type=ep(e.type)}return a}function o0(e,t){e.flags&=65011714;var a=e.alternate;return a===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null,e.selfBaseDuration=0,e.treeBaseDuration=0):(e.childLanes=a.childLanes,e.lanes=a.lanes,e.child=a.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=a.memoizedProps,e.memoizedState=a.memoizedState,e.updateQueue=a.updateQueue,e.type=a.type,t=a.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext,_debugThenableState:t._debugThenableState},e.selfBaseDuration=a.selfBaseDuration,e.treeBaseDuration=a.treeBaseDuration),e}function jc(e,t,a,u,h,g){var E=0,w=e;if(typeof e=="function")a0(e)&&(E=1),w=js(w);else if(typeof e=="string")E=ie(),E=m1(e,a,E)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case $i:return t=A(31,a,t,h),t.elementType=$i,t.lanes=g,t;case zf:return Ac(a.children,h,g,t);case Ia:E=8,h|=io,h|=ms;break;case $h:return e=a,u=h,typeof e.id!="string"&&console.error('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.',typeof e.id),t=A(12,e,t,u|qt),t.elementType=$h,t.lanes=g,t.stateNode={effectDuration:0,passiveEffectDuration:0},t;case au:return t=A(13,a,t,h),t.elementType=au,t.lanes=g,t;case ao:return t=A(19,a,t,h),t.elementType=ao,t.lanes=g,t;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case _i:E=10;break e;case dg:E=9;break e;case Df:E=11,w=ep(w);break e;case Bh:E=14;break e;case Ca:E=16,w=null;break e}w="",(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(w+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),e===null?a="null":_l(e)?a="array":e!==void 0&&e.$$typeof===ti?(a="<"+(Q(e.type)||"Unknown")+" />",w=" Did you accidentally export a JSX literal instead of a component?"):a=typeof e,(E=u?ue(u):null)&&(w+=`
163
-
164
- Check the render method of \``+E+"`."),E=29,a=Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: "+(a+"."+w)),w=null}return t=A(E,a,t,h),t.elementType=e,t.type=w,t.lanes=g,t._debugOwner=u,t}function As(e,t,a){return t=jc(e.type,e.key,e.props,e._owner,t,a),t._debugOwner=e._owner,t._debugStack=e._debugStack,t._debugTask=e._debugTask,t}function Ac(e,t,a,u){return e=A(7,e,u,t),e.lanes=a,e}function Iu(e,t,a){return e=A(6,e,null,t),e.lanes=a,e}function i0(e){var t=A(18,null,null,bt);return t.stateNode=e,t}function tp(e,t,a){return t=A(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Da(e,t){if(typeof e=="object"&&e!==null){var a=F2.get(e);return a!==void 0?a:(t={value:e,source:t,stack:Pe(t)},F2.set(e,t),t)}return{value:e,source:t,stack:Pe(t)}}function bi(e,t){Ms(),Rg[Ng++]=Zb,Rg[Ng++]=B1,B1=e,Zb=t}function r0(e,t,a){Ms(),jr[Ar++]=fu,jr[Ar++]=du,jr[Ar++]=kh,kh=e;var u=fu;e=du;var h=32-da(u)-1;u&=~(1<<h),a+=1;var g=32-da(t)+h;if(30<g){var E=h-h%5;g=(u&(1<<E)-1).toString(32),u>>=E,h-=E,fu=1<<32-da(t)+h|a<<h|u,du=g+e}else fu=1<<g|a<<h|u,du=e}function np(e){Ms(),e.return!==null&&(bi(e,1),r0(e,1,0))}function lp(e){for(;e===B1;)B1=Rg[--Ng],Rg[Ng]=null,Zb=Rg[--Ng],Rg[Ng]=null;for(;e===kh;)kh=jr[--Ar],jr[Ar]=null,du=jr[--Ar],jr[Ar]=null,fu=jr[--Ar],jr[Ar]=null}function Sx(){return Ms(),kh!==null?{id:fu,overflow:du}:null}function xx(e,t){Ms(),jr[Ar++]=fu,jr[Ar++]=du,jr[Ar++]=kh,fu=t.id,du=t.overflow,kh=e}function Ms(){Kt||console.error("Expected to be hydrating. This is a bug in React. Please file an issue.")}function Mc(e,t){if(e.return===null){if(Hi===null)Hi={fiber:e,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:t};else{if(Hi.fiber!==e)throw Error("Saw multiple hydration diff roots in a pass. This is a bug in React.");Hi.distanceFromLeaf>t&&(Hi.distanceFromLeaf=t)}return Hi}var a=Mc(e.return,t+1).children;return 0<a.length&&a[a.length-1].fiber===e?(a=a[a.length-1],a.distanceFromLeaf>t&&(a.distanceFromLeaf=t),a):(t={fiber:e,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:t},a.push(t),t)}function Ex(){Kt&&console.error("We should not be hydrating here. This is a bug in React. Please file a bug.")}function xa(e,t){oc||(e=Mc(e,0),e.serverProps=null,t!==null&&(t=u1(t),e.serverTail.push(t)))}function Yo(e){var t=1<arguments.length&&arguments[1]!==void 0?arguments[1]:!1,a="",u=Hi;throw u!==null&&(Hi=null,a=Sc(u)),Ud(Da(Error("Hydration failed because the server rendered "+(t?"text":"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`+a),e)),k2}function s0(e){var t=e.stateNode,a=e.type,u=e.memoizedProps;switch(t[Wn]=e,t[Ga]=u,Fa(a,u),a){case"dialog":gt("cancel",t),gt("close",t);break;case"iframe":case"object":case"embed":gt("load",t);break;case"video":case"audio":for(a=0;a<Tv.length;a++)gt(Tv[a],t);break;case"source":gt("error",t);break;case"img":case"image":case"link":gt("error",t),gt("load",t);break;case"details":gt("toggle",t);break;case"input":Gl("input",u),gt("invalid",t),Un(t,u),Xn(t,u.value,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name,!0);break;case"option":Fr(t,u);break;case"select":Gl("select",u),gt("invalid",t),Fo(t,u);break;case"textarea":Gl("textarea",u),gt("invalid",t),ho(t,u),Pn(t,u.value,u.defaultValue,u.children)}a=u.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||t.textContent===""+a||u.suppressHydrationWarning===!0||ub(t.textContent,a)?(u.popover!=null&&(gt("beforetoggle",t),gt("toggle",t)),u.onScroll!=null&&gt("scroll",t),u.onScrollEnd!=null&&gt("scrollend",t),u.onClick!=null&&(t.onclick=Io),t=!0):t=!1,t||Yo(e,!0)}function c0(e){for(Ya=e.return;Ya;)switch(Ya.tag){case 5:case 31:case 13:Mr=!1;return;case 27:case 3:Mr=!0;return;default:Ya=Ya.return}}function zc(e){if(e!==Ya)return!1;if(!Kt)return c0(e),Kt=!0,!1;var t=e.tag,a;if((a=t!==3&&t!==27)&&((a=t===5)&&(a=e.type,a=!(a!=="form"&&a!=="button")||Ef(e.type,e.memoizedProps)),a=!a),a&&tl){for(a=tl;a;){var u=Mc(e,0),h=u1(a);u.serverTail.push(h),a=h.type==="Suspense"?Of(a):wo(a.nextSibling)}Yo(e)}if(c0(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");tl=Of(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");tl=Of(e)}else t===27?(t=tl,Ks(e.type)?(e=RO,RO=null,tl=e):tl=t):tl=Ya?wo(e.stateNode.nextSibling):null;return!0}function zs(){tl=Ya=null,oc=Kt=!1}function Hd(){var e=Yf;return e!==null&&(_o===null?_o=e:_o.push.apply(_o,e),Yf=null),e}function Ud(e){Yf===null?Yf=[e]:Yf.push(e)}function Ds(){var e=Hi;if(e!==null){Hi=null;for(var t=Sc(e);0<e.children.length;)e=e.children[0];ze(e.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",t)})}}function Gu(){_g=H1=null,$g=!1}function Xo(e,t,a){ae(I2,t._currentValue,e),t._currentValue=a,ae(G2,t._currentRenderer,e),t._currentRenderer!==void 0&&t._currentRenderer!==null&&t._currentRenderer!==GD&&console.error("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),t._currentRenderer=GD}function vi(e,t){e._currentValue=I2.current;var a=G2.current;te(G2,t),e._currentRenderer=a,te(I2,t)}function ap(e,t,a){for(;e!==null;){var u=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,u!==null&&(u.childLanes|=t)):u!==null&&(u.childLanes&t)!==t&&(u.childLanes|=t),e===a)break;e=e.return}e!==a&&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 Pr(e,t,a,u){var h=e.child;for(h!==null&&(h.return=e);h!==null;){var g=h.dependencies;if(g!==null){var E=h.child;g=g.firstContext;e:for(;g!==null;){var w=g;g=h;for(var $=0;$<t.length;$++)if(w.context===t[$]){g.lanes|=a,w=g.alternate,w!==null&&(w.lanes|=a),ap(g.return,a,e),u||(E=null);break e}g=w.next}}else if(h.tag===18){if(E=h.return,E===null)throw Error("We just came from a parent so we must have had a parent. This is a bug in React.");E.lanes|=a,g=E.alternate,g!==null&&(g.lanes|=a),ap(E,a,e),E=null}else E=h.child;if(E!==null)E.return=h;else for(E=h;E!==null;){if(E===e){E=null;break}if(h=E.sibling,h!==null){h.return=E.return,E=h;break}E=E.return}h=E}}function Si(e,t,a,u){e=null;for(var h=t,g=!1;h!==null;){if(!g){if((h.flags&524288)!==0)g=!0;else if((h.flags&262144)!==0)break}if(h.tag===10){var E=h.alternate;if(E===null)throw Error("Should have a current fiber. This is a bug in React.");if(E=E.memoizedProps,E!==null){var w=h.type;zo(h.pendingProps.value,E.value)||(e!==null?e.push(w):e=[w])}}else if(h===nc.current){if(E=h.alternate,E===null)throw Error("Should have a current fiber. This is a bug in React.");E.memoizedState.memoizedState!==h.memoizedState.memoizedState&&(e!==null?e.push(Mv):e=[Mv])}h=h.return}e!==null&&Pr(t,e,a,u),t.flags|=262144}function Yu(e){for(e=e.firstContext;e!==null;){if(!zo(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Rs(e){H1=e,_g=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function hn(e){return $g&&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()."),u0(H1,e)}function Ld(e,t){return H1===null&&Rs(e),u0(e,t)}function u0(e,t){var a=t._currentValue;if(t={context:t,memoizedValue:a,next:null},_g===null){if(e===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().");_g=t,e.dependencies={lanes:0,firstContext:t,_debugThenableState:null},e.flags|=524288}else _g=_g.next=t;return a}function op(){return{controller:new m9,data:new Map,refCount:0}}function Dc(e){e.controller.signal.aborted&&console.warn("A cache instance was retained after it was already freed. This likely indicates a bug in React."),e.refCount++}function qd(e){e.refCount--,0>e.refCount&&console.warn("A cache instance was released after it was already freed. This likely indicates a bug in React."),e.refCount===0&&p9(g9,function(){e.controller.abort()})}function Wi(e,t,a){(e&127)!==0?0>ic&&(ic=na(),Kb=U1(t),Y2=t,a!=null&&(X2=V(a)),(cn&(pa|qi))!==ja&&(jl=!0,Pf=Jb),e=Cf(),t=br(),e!==Bg||t!==Wb?Bg=-1.1:t!==null&&(Pf=Jb),Yh=e,Wb=t):(e&4194048)!==0&&0>zr&&(zr=na(),ev=U1(t),YD=t,a!=null&&(XD=V(a)),0>gu)&&(e=Cf(),t=br(),(e!==Zf||t!==Xh)&&(Zf=-1.1),Qf=e,Xh=t)}function Cx(e){if(0>ic){ic=na(),Kb=e._debugTask!=null?e._debugTask:null,(cn&(pa|qi))!==ja&&(Pf=Jb);var t=Cf(),a=br();t!==Bg||a!==Wb?Bg=-1.1:a!==null&&(Pf=Jb),Yh=t,Wb=a}0>zr&&(zr=na(),ev=e._debugTask!=null?e._debugTask:null,0>gu)&&(e=Cf(),t=br(),(e!==Zf||t!==Xh)&&(Zf=-1.1),Qf=e,Xh=t)}function er(){var e=Ih;return Ih=0,e}function Xu(e){var t=Ih;return Ih=e,t}function Ra(e){var t=Ih;return Ih+=e,t}function Rc(){pt=ot=-1.1}function Zn(){var e=ot;return ot=-1.1,e}function Pl(e){0<=e&&(ot=e)}function Po(){var e=yl;return yl=-0,e}function mo(e){0<=e&&(yl=e)}function po(){var e=cl;return cl=null,e}function Qo(){var e=jl;return jl=!1,e}function Qr(e){Do=na(),0>e.actualStartTime&&(e.actualStartTime=Do)}function ip(e){if(0<=Do){var t=na()-Do;e.actualDuration+=t,e.selfBaseDuration=t,Do=-1}}function Vd(e){if(0<=Do){var t=na()-Do;e.actualDuration+=t,Do=-1}}function Na(){if(0<=Do){var e=na(),t=e-Do;Do=-1,Ih+=t,yl+=t,pt=e}}function Tx(e){cl===null&&(cl=[]),cl.push(e),mu===null&&(mu=[]),mu.push(e)}function ml(){Do=na(),0>ot&&(ot=Do)}function Nc(e){for(var t=e.child;t;)e.actualDuration+=t.actualDuration,t=t.sibling}function Zr(e,t){if(nv===null){var a=nv=[];Q2=0,Ph=cb(),Hg={status:"pending",value:void 0,then:function(u){a.push(u)}}}return Q2++,t.then(f0,f0),t}function f0(){if(--Q2===0&&(-1<zr||(gu=-1.1),nv!==null)){Hg!==null&&(Hg.status="fulfilled");var e=nv;nv=null,Ph=0,Hg=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function rp(e,t){var a=[],u={status:"pending",value:null,reason:null,then:function(h){a.push(h)}};return e.then(function(){u.status="fulfilled",u.value=t;for(var h=0;h<a.length;h++)(0,a[h])(t)},function(h){for(u.status="rejected",u.reason=h,h=0;h<a.length;h++)(0,a[h])(void 0)}),u}function Jr(){var e=Qh.current;return e!==null?e:kn.pooledCache}function Pu(e,t){t===null?ae(Qh,Qh.current,e):ae(Qh,t.pool,e)}function d0(){var e=Jr();return e===null?null:{parent:ta._currentValue,pool:e}}function sp(){return{didWarnAboutUncachedPromise:!1,thenables:[]}}function h0(e){return e=e.status,e==="fulfilled"||e==="rejected"}function go(e,t,a){Ce.actQueue!==null&&(Ce.didUsePromise=!0);var u=e.thenables;if(a=u[a],a===void 0?u.push(t):a!==t&&(e.didWarnAboutUncachedPromise||(e.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.")),t.then(Io,Io),t=a),t._debugInfo===void 0){e=performance.now(),u=t.displayName;var h={name:typeof u=="string"?u:"Promise",start:e,end:e,value:t};t._debugInfo=[{awaited:h}],t.status!=="fulfilled"&&t.status!=="rejected"&&(e=function(){h.end=performance.now()},t.then(e,e))}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Fd(e),e;default:if(typeof t.status=="string")t.then(Io,Io);else{if(e=kn,e!==null&&100<e.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.");e=t,e.status="pending",e.then(function(g){if(t.status==="pending"){var E=t;E.status="fulfilled",E.value=g}},function(g){if(t.status==="pending"){var E=t;E.status="rejected",E.reason=g}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Fd(e),e}throw Jh=t,cv=!0,Ug}}function yo(e){try{return x9(e)}catch(t){throw t!==null&&typeof t=="object"&&typeof t.then=="function"?(Jh=t,cv=!0,Ug):t}}function _c(){if(Jh===null)throw Error("Expected a suspended thenable. This is a bug in React. Please file an issue.");var e=Jh;return Jh=null,cv=!1,e}function Fd(e){if(e===Ug||e===Y1)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 El(e){var t=Vt;return e!=null&&(Vt=t===null?e:t.concat(e)),t}function Ka(){var e=Vt;if(e!=null){for(var t=e.length-1;0<=t;t--)if(e[t].name!=null){var a=e[t].debugTask;if(a!=null)return a}}return null}function _a(e,t,a){for(var u=Object.keys(e.props),h=0;h<u.length;h++){var g=u[h];if(g!=="children"&&g!=="key"){t===null&&(t=As(e,a.mode,0),t._debugInfo=Vt,t.return=a),ze(t,function(E){console.error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",E)},g);break}}}function xi(e){var t=uv;return uv+=1,Lg===null&&(Lg=sp()),go(Lg,e,t)}function Wa(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Ei(e,t){throw t.$$typeof===S1?Error(`A React Element from an older version of React was rendered. This is not supported. It can happen if:
185
- - Multiple copies of the "react" package is used.
186
- - A library pre-bundled an old copy of "react" or "react/jsx-runtime".
187
- - A compiler tries to "inline" JSX instead of using the runtime.`):(e=Object.prototype.toString.call(t),Error("Objects are not valid as a React child (found: "+(e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)+"). If you meant to render a collection of children, use an array instead."))}function Zo(e,t){var a=Ka();a!==null?a.run(Ei.bind(null,e,t)):Ei(e,t)}function m0(e,t){var a=V(e)||"Component";hR[a]||(hR[a]=!0,t=t.displayName||t.name||"Component",e.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.
188
- root.render(%s)`,t,t,t):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.
189
- <%s>{%s}</%s>`,t,t,a,t,a))}function Qu(e,t){var a=Ka();a!==null?a.run(m0.bind(null,e,t)):m0(e,t)}function cp(e,t){var a=V(e)||"Component";mR[a]||(mR[a]=!0,t=String(t),e.tag===3?console.error(`Symbols are not valid as a React child.
190
- root.render(%s)`,t):console.error(`Symbols are not valid as a React child.
191
- <%s>%s</%s>`,a,t,a))}function kd(e,t){var a=Ka();a!==null?a.run(cp.bind(null,e,t)):cp(e,t)}function Ql(e){function t(Z,K){if(e){var le=Z.deletions;le===null?(Z.deletions=[K],Z.flags|=16):le.push(K)}}function a(Z,K){if(!e)return null;for(;K!==null;)t(Z,K),K=K.sibling;return null}function u(Z){for(var K=new Map;Z!==null;)Z.key!==null?K.set(Z.key,Z):K.set(Z.index,Z),Z=Z.sibling;return K}function h(Z,K){return Z=Ki(Z,K),Z.index=0,Z.sibling=null,Z}function g(Z,K,le){return Z.index=le,e?(le=Z.alternate,le!==null?(le=le.index,le<K?(Z.flags|=67108866,K):le):(Z.flags|=67108866,K)):(Z.flags|=1048576,K)}function E(Z){return e&&Z.alternate===null&&(Z.flags|=67108866),Z}function w(Z,K,le,Me){return K===null||K.tag!==6?(K=Iu(le,Z.mode,Me),K.return=Z,K._debugOwner=Z,K._debugTask=Z._debugTask,K._debugInfo=Vt,K):(K=h(K,le),K.return=Z,K._debugInfo=Vt,K)}function $(Z,K,le,Me){var Ge=le.type;return Ge===zf?(K=oe(Z,K,le.props.children,Me,le.key),_a(le,K,Z),K):K!==null&&(K.elementType===Ge||l0(K,le)||typeof Ge=="object"&&Ge!==null&&Ge.$$typeof===Ca&&yo(Ge)===K.type)?(K=h(K,le.props),Wa(K,le),K.return=Z,K._debugOwner=le._owner,K._debugInfo=Vt,K):(K=As(le,Z.mode,Me),Wa(K,le),K.return=Z,K._debugInfo=Vt,K)}function q(Z,K,le,Me){return K===null||K.tag!==4||K.stateNode.containerInfo!==le.containerInfo||K.stateNode.implementation!==le.implementation?(K=tp(le,Z.mode,Me),K.return=Z,K._debugInfo=Vt,K):(K=h(K,le.children||[]),K.return=Z,K._debugInfo=Vt,K)}function oe(Z,K,le,Me,Ge){return K===null||K.tag!==7?(K=Ac(le,Z.mode,Me,Ge),K.return=Z,K._debugOwner=Z,K._debugTask=Z._debugTask,K._debugInfo=Vt,K):(K=h(K,le),K.return=Z,K._debugInfo=Vt,K)}function se(Z,K,le){if(typeof K=="string"&&K!==""||typeof K=="number"||typeof K=="bigint")return K=Iu(""+K,Z.mode,le),K.return=Z,K._debugOwner=Z,K._debugTask=Z._debugTask,K._debugInfo=Vt,K;if(typeof K=="object"&&K!==null){switch(K.$$typeof){case ti:return le=As(K,Z.mode,le),Wa(le,K),le.return=Z,Z=El(K._debugInfo),le._debugInfo=Vt,Vt=Z,le;case ec:return K=tp(K,Z.mode,le),K.return=Z,K._debugInfo=Vt,K;case Ca:var Me=El(K._debugInfo);return K=yo(K),Z=se(Z,K,le),Vt=Me,Z}if(_l(K)||P(K))return le=Ac(K,Z.mode,le,null),le.return=Z,le._debugOwner=Z,le._debugTask=Z._debugTask,Z=El(K._debugInfo),le._debugInfo=Vt,Vt=Z,le;if(typeof K.then=="function")return Me=El(K._debugInfo),Z=se(Z,xi(K),le),Vt=Me,Z;if(K.$$typeof===_i)return se(Z,Ld(Z,K),le);Zo(Z,K)}return typeof K=="function"&&Qu(Z,K),typeof K=="symbol"&&kd(Z,K),null}function J(Z,K,le,Me){var Ge=K!==null?K.key:null;if(typeof le=="string"&&le!==""||typeof le=="number"||typeof le=="bigint")return Ge!==null?null:w(Z,K,""+le,Me);if(typeof le=="object"&&le!==null){switch(le.$$typeof){case ti:return le.key===Ge?(Ge=El(le._debugInfo),Z=$(Z,K,le,Me),Vt=Ge,Z):null;case ec:return le.key===Ge?q(Z,K,le,Me):null;case Ca:return Ge=El(le._debugInfo),le=yo(le),Z=J(Z,K,le,Me),Vt=Ge,Z}if(_l(le)||P(le))return Ge!==null?null:(Ge=El(le._debugInfo),Z=oe(Z,K,le,Me,null),Vt=Ge,Z);if(typeof le.then=="function")return Ge=El(le._debugInfo),Z=J(Z,K,xi(le),Me),Vt=Ge,Z;if(le.$$typeof===_i)return J(Z,K,Ld(Z,le),Me);Zo(Z,le)}return typeof le=="function"&&Qu(Z,le),typeof le=="symbol"&&kd(Z,le),null}function xe(Z,K,le,Me,Ge){if(typeof Me=="string"&&Me!==""||typeof Me=="number"||typeof Me=="bigint")return Z=Z.get(le)||null,w(K,Z,""+Me,Ge);if(typeof Me=="object"&&Me!==null){switch(Me.$$typeof){case ti:return le=Z.get(Me.key===null?le:Me.key)||null,Z=El(Me._debugInfo),K=$(K,le,Me,Ge),Vt=Z,K;case ec:return Z=Z.get(Me.key===null?le:Me.key)||null,q(K,Z,Me,Ge);case Ca:var Et=El(Me._debugInfo);return Me=yo(Me),K=xe(Z,K,le,Me,Ge),Vt=Et,K}if(_l(Me)||P(Me))return le=Z.get(le)||null,Z=El(Me._debugInfo),K=oe(K,le,Me,Ge,null),Vt=Z,K;if(typeof Me.then=="function")return Et=El(Me._debugInfo),K=xe(Z,K,le,xi(Me),Ge),Vt=Et,K;if(Me.$$typeof===_i)return xe(Z,K,le,Ld(K,Me),Ge);Zo(K,Me)}return typeof Me=="function"&&Qu(K,Me),typeof Me=="symbol"&&kd(K,Me),null}function ke(Z,K,le,Me){if(typeof le!="object"||le===null)return Me;switch(le.$$typeof){case ti:case ec:j(Z,K,le);var Ge=le.key;if(typeof Ge!="string")break;if(Me===null){Me=new Set,Me.add(Ge);break}if(!Me.has(Ge)){Me.add(Ge);break}ze(K,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.",Ge)});break;case Ca:le=yo(le),ke(Z,K,le,Me)}return Me}function Ze(Z,K,le,Me){for(var Ge=null,Et=null,at=null,tt=K,$t=K=0,nl=null;tt!==null&&$t<le.length;$t++){tt.index>$t?(nl=tt,tt=null):nl=tt.sibling;var kl=J(Z,tt,le[$t],Me);if(kl===null){tt===null&&(tt=nl);break}Ge=ke(Z,kl,le[$t],Ge),e&&tt&&kl.alternate===null&&t(Z,tt),K=g(kl,K,$t),at===null?Et=kl:at.sibling=kl,at=kl,tt=nl}if($t===le.length)return a(Z,tt),Kt&&bi(Z,$t),Et;if(tt===null){for(;$t<le.length;$t++)tt=se(Z,le[$t],Me),tt!==null&&(Ge=ke(Z,tt,le[$t],Ge),K=g(tt,K,$t),at===null?Et=tt:at.sibling=tt,at=tt);return Kt&&bi(Z,$t),Et}for(tt=u(tt);$t<le.length;$t++)nl=xe(tt,Z,$t,le[$t],Me),nl!==null&&(Ge=ke(Z,nl,le[$t],Ge),e&&nl.alternate!==null&&tt.delete(nl.key===null?$t:nl.key),K=g(nl,K,$t),at===null?Et=nl:at.sibling=nl,at=nl);return e&&tt.forEach(function(Tu){return t(Z,Tu)}),Kt&&bi(Z,$t),Et}function Yn(Z,K,le,Me){if(le==null)throw Error("An iterable object provided no iterator.");for(var Ge=null,Et=null,at=K,tt=K=0,$t=null,nl=null,kl=le.next();at!==null&&!kl.done;tt++,kl=le.next()){at.index>tt?($t=at,at=null):$t=at.sibling;var Tu=J(Z,at,kl.value,Me);if(Tu===null){at===null&&(at=$t);break}nl=ke(Z,Tu,kl.value,nl),e&&at&&Tu.alternate===null&&t(Z,at),K=g(Tu,K,tt),Et===null?Ge=Tu:Et.sibling=Tu,Et=Tu,at=$t}if(kl.done)return a(Z,at),Kt&&bi(Z,tt),Ge;if(at===null){for(;!kl.done;tt++,kl=le.next())at=se(Z,kl.value,Me),at!==null&&(nl=ke(Z,at,kl.value,nl),K=g(at,K,tt),Et===null?Ge=at:Et.sibling=at,Et=at);return Kt&&bi(Z,tt),Ge}for(at=u(at);!kl.done;tt++,kl=le.next())$t=xe(at,Z,tt,kl.value,Me),$t!==null&&(nl=ke(Z,$t,kl.value,nl),e&&$t.alternate!==null&&at.delete($t.key===null?tt:$t.key),K=g($t,K,tt),Et===null?Ge=$t:Et.sibling=$t,Et=$t);return e&&at.forEach(function(G9){return t(Z,G9)}),Kt&&bi(Z,tt),Ge}function en(Z,K,le,Me){if(typeof le=="object"&&le!==null&&le.type===zf&&le.key===null&&(_a(le,null,Z),le=le.props.children),typeof le=="object"&&le!==null){switch(le.$$typeof){case ti:var Ge=El(le._debugInfo);e:{for(var Et=le.key;K!==null;){if(K.key===Et){if(Et=le.type,Et===zf){if(K.tag===7){a(Z,K.sibling),Me=h(K,le.props.children),Me.return=Z,Me._debugOwner=le._owner,Me._debugInfo=Vt,_a(le,Me,Z),Z=Me;break e}}else if(K.elementType===Et||l0(K,le)||typeof Et=="object"&&Et!==null&&Et.$$typeof===Ca&&yo(Et)===K.type){a(Z,K.sibling),Me=h(K,le.props),Wa(Me,le),Me.return=Z,Me._debugOwner=le._owner,Me._debugInfo=Vt,Z=Me;break e}a(Z,K);break}else t(Z,K);K=K.sibling}le.type===zf?(Me=Ac(le.props.children,Z.mode,Me,le.key),Me.return=Z,Me._debugOwner=Z,Me._debugTask=Z._debugTask,Me._debugInfo=Vt,_a(le,Me,Z),Z=Me):(Me=As(le,Z.mode,Me),Wa(Me,le),Me.return=Z,Me._debugInfo=Vt,Z=Me)}return Z=E(Z),Vt=Ge,Z;case ec:e:{for(Ge=le,le=Ge.key;K!==null;){if(K.key===le)if(K.tag===4&&K.stateNode.containerInfo===Ge.containerInfo&&K.stateNode.implementation===Ge.implementation){a(Z,K.sibling),Me=h(K,Ge.children||[]),Me.return=Z,Z=Me;break e}else{a(Z,K);break}else t(Z,K);K=K.sibling}Me=tp(Ge,Z.mode,Me),Me.return=Z,Z=Me}return E(Z);case Ca:return Ge=El(le._debugInfo),le=yo(le),Z=en(Z,K,le,Me),Vt=Ge,Z}if(_l(le))return Ge=El(le._debugInfo),Z=Ze(Z,K,le,Me),Vt=Ge,Z;if(P(le)){if(Ge=El(le._debugInfo),Et=P(le),typeof Et!="function")throw Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.");var at=Et.call(le);return at===le?(Z.tag!==0||Object.prototype.toString.call(Z.type)!=="[object GeneratorFunction]"||Object.prototype.toString.call(at)!=="[object Generator]")&&(fR||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."),fR=!0):le.entries!==Et||W2||(console.error("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),W2=!0),Z=Yn(Z,K,at,Me),Vt=Ge,Z}if(typeof le.then=="function")return Ge=El(le._debugInfo),Z=en(Z,K,xi(le),Me),Vt=Ge,Z;if(le.$$typeof===_i)return en(Z,K,Ld(Z,le),Me);Zo(Z,le)}return typeof le=="string"&&le!==""||typeof le=="number"||typeof le=="bigint"?(Ge=""+le,K!==null&&K.tag===6?(a(Z,K.sibling),Me=h(K,Ge),Me.return=Z,Z=Me):(a(Z,K),Me=Iu(Ge,Z.mode,Me),Me.return=Z,Me._debugOwner=Z,Me._debugTask=Z._debugTask,Me._debugInfo=Vt,Z=Me),E(Z)):(typeof le=="function"&&Qu(Z,le),typeof le=="symbol"&&kd(Z,le),a(Z,K))}return function(Z,K,le,Me){var Ge=Vt;Vt=null;try{uv=0;var Et=en(Z,K,le,Me);return Lg=null,Et}catch(nl){if(nl===Ug||nl===Y1)throw nl;var at=A(29,nl,null,Z.mode);at.lanes=Me,at.return=Z;var tt=at._debugInfo=Vt;if(at._debugOwner=Z._debugOwner,at._debugTask=Z._debugTask,tt!=null){for(var $t=tt.length-1;0<=$t;$t--)if(typeof tt[$t].stack=="string"){at._debugOwner=tt[$t],at._debugTask=tt[$t].debugTask;break}}return at}finally{Vt=Ge}}}function Ln(e,t){var a=_l(e);return e=!a&&typeof P(e)=="function",a||e?(a=a?"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>",a,t,a),!1):!0}function Qt(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function tr(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Hl(e){return{lane:e,tag:gR,payload:null,callback:null,next:null}}function nr(e,t,a){var u=e.updateQueue;if(u===null)return null;if(u=u.shared,tO===u&&!vR){var h=V(e);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.
192
-
193
- Please update the following component: %s`,h),vR=!0}return(cn&pa)!==ja?(h=u.pending,h===null?t.next=t:(t.next=h.next,h.next=t),u.pending=t,t=Bd(e),n0(e,null,a),t):(ku(e,u,t,a),Bd(e))}function Jo(e,t,a){if(t=t.updateQueue,t!==null&&(t=t.shared,(a&4194048)!==0)){var u=t.lanes;u&=e.pendingLanes,a|=u,t.lanes=a,Sl(e,a)}}function Id(e,t){var a=e.updateQueue,u=e.alternate;if(u!==null&&(u=u.updateQueue,a===u)){var h=null,g=null;if(a=a.firstBaseUpdate,a!==null){do{var E={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};g===null?h=g=E:g=g.next=E,a=a.next}while(a!==null);g===null?h=g=t:g=g.next=t}else h=g=t;a={baseState:u.baseState,firstBaseUpdate:h,lastBaseUpdate:g,shared:u.shared,callbacks:u.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=t:e.next=t,a.lastBaseUpdate=t}function Zu(){if(nO){var e=Hg;if(e!==null)throw e}}function lr(e,t,a,u){nO=!1;var h=e.updateQueue;Jf=!1,tO=h.shared;var g=h.firstBaseUpdate,E=h.lastBaseUpdate,w=h.shared.pending;if(w!==null){h.shared.pending=null;var $=w,q=$.next;$.next=null,E===null?g=q:E.next=q,E=$;var oe=e.alternate;oe!==null&&(oe=oe.updateQueue,w=oe.lastBaseUpdate,w!==E&&(w===null?oe.firstBaseUpdate=q:w.next=q,oe.lastBaseUpdate=$))}if(g!==null){var se=h.baseState;E=0,oe=q=$=null,w=g;do{var J=w.lane&-536870913,xe=J!==w.lane;if(xe?(Ft&J)===J:(u&J)===J){J!==0&&J===Ph&&(nO=!0),oe!==null&&(oe=oe.next={lane:0,tag:w.tag,payload:w.payload,callback:null,next:null});e:{J=e;var ke=w,Ze=t,Yn=a;switch(ke.tag){case yR:if(ke=ke.payload,typeof ke=="function"){$g=!0;var en=ke.call(Yn,se,Ze);if(J.mode&io){pe(!0);try{ke.call(Yn,se,Ze)}finally{pe(!1)}}$g=!1,se=en;break e}se=ke;break e;case eO:J.flags=J.flags&-65537|128;case gR:if(en=ke.payload,typeof en=="function"){if($g=!0,ke=en.call(Yn,se,Ze),J.mode&io){pe(!0);try{en.call(Yn,se,Ze)}finally{pe(!1)}}$g=!1}else ke=en;if(ke==null)break e;se=Lt({},se,ke);break e;case bR:Jf=!0}}J=w.callback,J!==null&&(e.flags|=64,xe&&(e.flags|=8192),xe=h.callbacks,xe===null?h.callbacks=[J]:xe.push(J))}else xe={lane:J,tag:w.tag,payload:w.payload,callback:w.callback,next:null},oe===null?(q=oe=xe,$=se):oe=oe.next=xe,E|=J;if(w=w.next,w===null){if(w=h.shared.pending,w===null)break;xe=w,w=xe.next,xe.next=null,h.lastBaseUpdate=xe,h.shared.pending=null}}while(!0);oe===null&&($=se),h.baseState=$,h.firstBaseUpdate=q,h.lastBaseUpdate=oe,g===null&&(h.shared.lanes=0),ed|=E,e.lanes=E,e.memoizedState=se}tO=null}function Ns(e,t){if(typeof e!="function")throw Error("Invalid argument passed as callback. Expected a function. Instead received: "+e);e.call(t)}function p0(e,t){var a=e.shared.hiddenCallbacks;if(a!==null)for(e.shared.hiddenCallbacks=null,e=0;e<a.length;e++)Ns(a[e],t)}function Ju(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)Ns(a[e],t)}function up(e,t){var a=sc;ae(P1,a,e),ae(qg,t,e),sc=a|t.baseLanes}function Kr(e){ae(P1,sc,e),ae(qg,qg.current,e)}function Ci(e){sc=P1.current,te(qg,e),te(P1,e)}function $a(e){var t=e.alternate;ae(Fl,Fl.current&Vg,e),ae(Ui,e,e),Dr===null&&(t===null||qg.current!==null||t.memoizedState!==null)&&(Dr=e)}function Ti(e){ae(Fl,Fl.current,e),ae(Ui,e,e),Dr===null&&(Dr=e)}function fp(e){e.tag===22?(ae(Fl,Fl.current,e),ae(Ui,e,e),Dr===null&&(Dr=e)):ar(e)}function ar(e){ae(Fl,Fl.current,e),ae(Ui,Ui.current,e)}function Zl(e){te(Ui,e),Dr===e&&(Dr=null),te(Fl,e)}function $c(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||wh(a)||db(a)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function St(){var e=Ee;Nr===null?Nr=[e]:Nr.push(e)}function _e(){var e=Ee;if(Nr!==null&&(vu++,Nr[vu]!==e)){var t=V(xt);if(!SR.has(t)&&(SR.add(t),Nr!==null)){for(var a="",u=0;u<=vu;u++){var h=Nr[u],g=u===vu?e:h;for(h=u+1+". "+h;30>h.length;)h+=" ";h+=g+`
194
- `,a+=h}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
195
-
196
- Previous render Next render
197
- ------------------------------------------------------
198
- %s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
199
- `,t,a)}}}function Wr(e){e==null||_l(e)||console.error("%s received a final argument that is not an array (instead, received `%s`). When specified, the final argument must be an array.",Ee,typeof e)}function Gd(){var e=V(xt);ER.has(e)||(ER.add(e),console.error("ReactDOM.useFormState has been renamed to React.useActionState. Please update %s to use React.useActionState.",e))}function pl(){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:
200
- 1. You might have mismatching versions of React and the renderer (such as React DOM)
201
- 2. You might be breaking the Rules of Hooks
202
- 3. You might have more than one copy of React in the same app
203
- See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`)}function g0(e,t){if(hv)return!1;if(t===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.",Ee),!1;e.length!==t.length&&console.error(`The final argument passed to %s changed size between renders. The order and size of this array must remain constant.
204
-
205
- Previous: %s
206
- Incoming: %s`,Ee,"["+t.join(", ")+"]","["+e.join(", ")+"]");for(var a=0;a<t.length&&a<e.length;a++)if(!zo(e[a],t[a]))return!1;return!0}function y0(e,t,a,u,h,g){yu=g,xt=t,Nr=e!==null?e._debugHookTypes:null,vu=-1,hv=e!==null&&e.type!==t.type,(Object.prototype.toString.call(a)==="[object AsyncFunction]"||Object.prototype.toString.call(a)==="[object AsyncGeneratorFunction]")&&(g=V(xt),lO.has(g)||(lO.add(g),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.",g===null?"An unknown Component":"<"+g+">"))),t.memoizedState=null,t.updateQueue=null,t.lanes=0,Ce.H=e!==null&&e.memoizedState!==null?oO:Nr!==null?CR:aO,Wh=g=(t.mode&io)!==bt;var E=Z2(a,u,h);if(Wh=!1,kg&&(E=Yd(t,a,u,h)),g){pe(!0);try{E=Yd(t,a,u,h)}finally{pe(!1)}}return Cl(e,t),E}function Cl(e,t){t._debugHookTypes=Nr,t.dependencies===null?bu!==null&&(t.dependencies={lanes:0,firstContext:null,_debugThenableState:bu}):t.dependencies._debugThenableState=bu,Ce.H=mv;var a=Fn!==null&&Fn.next!==null;if(yu=0,Nr=Ee=la=Fn=xt=null,vu=-1,e!==null&&(e.flags&65011712)!==(t.flags&65011712)&&console.error("Internal React error: Expected static flag was missing. Please notify the React team."),Z1=!1,dv=0,bu=null,a)throw Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");e===null||aa||(e=e.dependencies,e!==null&&Yu(e)&&(aa=!0)),cv?(cv=!1,e=!0):e=!1,e&&(t=V(t)||"Unknown",xR.has(t)||lO.has(t)||(xR.add(t),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 Yd(e,t,a,u){xt=e;var h=0;do{if(kg&&(bu=null),dv=0,kg=!1,h>=C9)throw Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(h+=1,hv=!1,la=Fn=null,e.updateQueue!=null){var g=e.updateQueue;g.lastEffect=null,g.events=null,g.stores=null,g.memoCache!=null&&(g.memoCache.index=0)}vu=-1,Ce.H=TR,g=Z2(t,a,u)}while(kg);return g}function Xd(){var e=Ce.H,t=e.useState()[0];return t=typeof t.then=="function"?Zd(t):t,e=e.useState()[0],(Fn!==null?Fn.memoizedState:null)!==e&&(xt.flags|=1024),t}function Bc(){var e=J1!==0;return J1=0,e}function Pd(e,t,a){t.updateQueue=e.updateQueue,t.flags=(t.mode&ms)!==bt?t.flags&-402655237:t.flags&-2053,e.lanes&=~a}function _s(e){if(Z1){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Z1=!1}yu=0,Nr=la=Fn=xt=null,vu=-1,Ee=null,kg=!1,dv=J1=0,bu=null}function Rl(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return la===null?xt.memoizedState=la=e:la=la.next=e,la}function yn(){if(Fn===null){var e=xt.alternate;e=e!==null?e.memoizedState:null}else e=Fn.next;var t=la===null?xt.memoizedState:la.next;if(t!==null)la=t,Fn=e;else{if(e===null)throw xt.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.");Fn=e,e={memoizedState:Fn.memoizedState,baseState:Fn.baseState,baseQueue:Fn.baseQueue,queue:Fn.queue,next:null},la===null?xt.memoizedState=la=e:la=la.next=e}return la}function Qd(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Zd(e){var t=dv;return dv+=1,bu===null&&(bu=sp()),e=go(bu,e,t),t=xt,(la===null?t.memoizedState:la.next)===null&&(t=t.alternate,Ce.H=t!==null&&t.memoizedState!==null?oO:aO),e}function es(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Zd(e);if(e.$$typeof===_i)return hn(e)}throw Error("An unsupported type was passed to use(): "+String(e))}function bo(e){var t=null,a=xt.updateQueue;if(a!==null&&(t=a.memoCache),t==null){var u=xt.alternate;u!==null&&(u=u.updateQueue,u!==null&&(u=u.memoCache,u!=null&&(t={data:u.data.map(function(h){return h.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),a===null&&(a=Qd(),xt.updateQueue=a),a.memoCache=t,a=t.data[t.index],a===void 0||hv)for(a=t.data[t.index]=Array(e),u=0;u<e;u++)a[u]=C2;else a.length!==e&&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.",a.length,e);return t.index++,a}function vo(e,t){return typeof t=="function"?t(e):t}function Ku(e,t,a){var u=Rl();if(a!==void 0){var h=a(t);if(Wh){pe(!0);try{a(t)}finally{pe(!1)}}}else h=t;return u.memoizedState=u.baseState=h,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:h},u.queue=e,e=e.dispatch=b2.bind(null,xt,e),[u.memoizedState,e]}function Hc(e){var t=yn();return $s(t,Fn,e)}function $s(e,t,a){var u=e.queue;if(u===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");u.lastRenderedReducer=a;var h=e.baseQueue,g=u.pending;if(g!==null){if(h!==null){var E=h.next;h.next=g.next,g.next=E}t.baseQueue!==h&&console.error("Internal error: Expected work-in-progress queue to be a clone. This is a bug in React."),t.baseQueue=h=g,u.pending=null}if(g=e.baseState,h===null)e.memoizedState=g;else{t=h.next;var w=E=null,$=null,q=t,oe=!1;do{var se=q.lane&-536870913;if(se!==q.lane?(Ft&se)===se:(yu&se)===se){var J=q.revertLane;if(J===0)$!==null&&($=$.next={lane:0,revertLane:0,gesture:null,action:q.action,hasEagerState:q.hasEagerState,eagerState:q.eagerState,next:null}),se===Ph&&(oe=!0);else if((yu&J)===J){q=q.next,J===Ph&&(oe=!0);continue}else se={lane:0,revertLane:q.revertLane,gesture:null,action:q.action,hasEagerState:q.hasEagerState,eagerState:q.eagerState,next:null},$===null?(w=$=se,E=g):$=$.next=se,xt.lanes|=J,ed|=J;se=q.action,Wh&&a(g,se),g=q.hasEagerState?q.eagerState:a(g,se)}else J={lane:se,revertLane:q.revertLane,gesture:q.gesture,action:q.action,hasEagerState:q.hasEagerState,eagerState:q.eagerState,next:null},$===null?(w=$=J,E=g):$=$.next=J,xt.lanes|=se,ed|=se;q=q.next}while(q!==null&&q!==t);if($===null?E=g:$.next=w,!zo(g,e.memoizedState)&&(aa=!0,oe&&(a=Hg,a!==null)))throw a;e.memoizedState=g,e.baseState=E,e.baseQueue=$,u.lastRenderedState=g}return h===null&&(u.lanes=0),[e.memoizedState,u.dispatch]}function Uc(e){var t=yn(),a=t.queue;if(a===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");a.lastRenderedReducer=e;var u=a.dispatch,h=a.pending,g=t.memoizedState;if(h!==null){a.pending=null;var E=h=h.next;do g=e(g,E.action),E=E.next;while(E!==h);zo(g,t.memoizedState)||(aa=!0),t.memoizedState=g,t.baseQueue===null&&(t.baseState=g),a.lastRenderedState=g}return[g,u]}function Wu(e,t,a){var u=xt,h=Rl();if(Kt){if(a===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");var g=a();Fg||g===a()||(console.error("The result of getServerSnapshot should be cached to avoid an infinite loop"),Fg=!0)}else{if(g=t(),Fg||(a=t(),zo(g,a)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),Fg=!0)),kn===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");(Ft&127)!==0||b0(u,t,g)}return h.memoizedState=g,a={value:g,getSnapshot:t},h.queue=a,Vc(Bs.bind(null,u,a,e),[e]),u.flags|=2048,or(Rr|No,{destroy:void 0},v0.bind(null,u,a,g,t),null),g}function Lc(e,t,a){var u=xt,h=yn(),g=Kt;if(g){if(a===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");a=a()}else if(a=t(),!Fg){var E=t();zo(a,E)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),Fg=!0)}(E=!zo((Fn||h).memoizedState,a))&&(h.memoizedState=a,aa=!0),h=h.queue;var w=Bs.bind(null,u,h,e);if(Ul(2048,No,w,[e]),h.getSnapshot!==t||E||la!==null&&la.memoizedState.tag&Rr){if(u.flags|=2048,or(Rr|No,{destroy:void 0},v0.bind(null,u,h,a,t),null),kn===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");g||(yu&127)!==0||b0(u,t,a)}return a}function b0(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=xt.updateQueue,t===null?(t=Qd(),xt.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function v0(e,t,a,u){t.value=a,t.getSnapshot=u,Hs(t)&&S0(e)}function Bs(e,t,a){return a(function(){Hs(t)&&(Wi(2,"updateSyncExternalStore()",e),S0(e))})}function Hs(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!zo(e,a)}catch{return!0}}function S0(e){var t=Sa(e,2);t!==null&&vt(t,e,2)}function dp(e){var t=Rl();if(typeof e=="function"){var a=e;if(e=a(),Wh){pe(!0);try{a()}finally{pe(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:vo,lastRenderedState:e},t}function Us(e){e=dp(e);var t=e.queue,a=bp.bind(null,xt,t);return t.dispatch=a,[e.memoizedState,a]}function qc(e){var t=Rl();t.memoizedState=t.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=a,t=lh.bind(null,xt,!0,a),a.dispatch=t,[e,t]}function Jd(e,t){var a=yn();return ef(a,Fn,e,t)}function ef(e,t,a,u){return e.baseState=a,$s(e,Fn,typeof u=="function"?u:vo)}function Kd(e,t){var a=yn();return Fn!==null?ef(a,Fn,e,t):(a.baseState=e,[e,a.queue.dispatch])}function Ox(e,t,a,u,h){if(Jl(e))throw Error("Cannot update form state while rendering.");if(e=t.action,e!==null){var g={payload:h,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(E){g.listeners.push(E)}};Ce.T!==null?a(!0):g.isTransition=!1,u(g),a=t.pending,a===null?(g.next=t.pending=g,Ls(t,g)):(g.next=a.next,t.pending=a.next=g)}}function Ls(e,t){var a=t.action,u=t.payload,h=e.state;if(t.isTransition){var g=Ce.T,E={};E._updatedFibers=new Set,Ce.T=E;try{var w=a(h,u),$=Ce.S;$!==null&&$(E,w),x0(e,t,w)}catch(q){Wd(e,t,q)}finally{g!==null&&E.types!==null&&(g.types!==null&&g.types!==E.types&&console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."),g.types=E.types),Ce.T=g,g===null&&E._updatedFibers&&(e=E._updatedFibers.size,E._updatedFibers.clear(),10<e&&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{E=a(h,u),x0(e,t,E)}catch(q){Wd(e,t,q)}}function x0(e,t,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?(Ce.asyncTransitions++,a.then(Fc,Fc),a.then(function(u){ts(e,t,u)},function(u){return Wd(e,t,u)}),t.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.")):ts(e,t,a)}function ts(e,t,a){t.status="fulfilled",t.value=a,hp(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,Ls(e,a)))}function Wd(e,t,a){var u=e.pending;if(e.pending=null,u!==null){u=u.next;do t.status="rejected",t.reason=a,hp(t),t=t.next;while(t!==u)}e.action=null}function hp(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function ns(e,t){return t}function So(e,t){if(Kt){var a=kn.formState;if(a!==null){e:{var u=xt;if(Kt){if(tl){t:{for(var h=tl,g=Mr;h.nodeType!==8;){if(!g){h=null;break t}if(h=wo(h.nextSibling),h===null){h=null;break t}}g=h.data,h=g===AO||g===c4?h:null}if(h){tl=wo(h.nextSibling),u=h.data===AO;break e}}Yo(u)}u=!1}u&&(t=a[0])}}return a=Rl(),a.memoizedState=a.baseState=t,u={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ns,lastRenderedState:t},a.queue=u,a=bp.bind(null,xt,u),u.dispatch=a,u=dp(!1),g=lh.bind(null,xt,!1,u.queue),u=Rl(),h={state:t,dispatch:null,action:e,pending:null},u.queue=h,a=Ox.bind(null,xt,h,g,a),h.dispatch=a,u.memoizedState=e,[t,a,!1]}function qs(e){var t=yn();return mp(t,Fn,e)}function mp(e,t,a){if(t=$s(e,t,ns)[0],e=Hc(vo)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var u=Zd(t)}catch(E){throw E===Ug?Y1:E}else u=t;t=yn();var h=t.queue,g=h.dispatch;return a!==t.memoizedState&&(xt.flags|=2048,or(Rr|No,{destroy:void 0},E0.bind(null,h,a),null)),[u,g,e]}function E0(e,t){e.action=t}function Vs(e){var t=yn(),a=Fn;if(a!==null)return mp(t,a,e);yn(),t=t.memoizedState,a=yn();var u=a.queue.dispatch;return a.memoizedState=e,[t,u,!1]}function or(e,t,a,u){return e={tag:e,create:a,deps:u,inst:t,next:null},t=xt.updateQueue,t===null&&(t=Qd(),xt.updateQueue=t),a=t.lastEffect,a===null?t.lastEffect=e.next=e:(u=a.next,a.next=e,e.next=u,t.lastEffect=e),e}function pp(e){var t=Rl();return e={current:e},t.memoizedState=e}function Fs(e,t,a,u){var h=Rl();xt.flags|=e,h.memoizedState=or(Rr|t,{destroy:void 0},a,u===void 0?null:u)}function Ul(e,t,a,u){var h=yn();u=u===void 0?null:u;var g=h.memoizedState.inst;Fn!==null&&u!==null&&g0(u,Fn.memoizedState.deps)?h.memoizedState=or(t,g,a,u):(xt.flags|=e,h.memoizedState=or(Rr|t,g,a,u))}function Vc(e,t){(xt.mode&ms)!==bt?Fs(276826112,No,e,t):Fs(8390656,No,e,t)}function wx(e){xt.flags|=4;var t=xt.updateQueue;if(t===null)t=Qd(),xt.updateQueue=t,t.events=[e];else{var a=t.events;a===null?t.events=[e]:a.push(e)}}function eh(e){var t=Rl(),a={impl:e};return t.memoizedState=a,function(){if((cn&pa)!==ja)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return a.impl.apply(void 0,arguments)}}function tf(e){var t=yn().memoizedState;return wx({ref:t,nextImpl:e}),function(){if((cn&pa)!==ja)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return t.impl.apply(void 0,arguments)}}function Ba(e,t){var a=4194308;return(xt.mode&ms)!==bt&&(a|=134217728),Fs(a,Li,e,t)}function xo(e,t){if(typeof t=="function"){e=e();var a=t(e);return function(){typeof a=="function"?a():t(null)}}if(t!=null)return t.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(t).join(", ")+"}"),e=e(),t.current=e,function(){t.current=null}}function ir(e,t,a){typeof t!="function"&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",t!==null?typeof t:"null"),a=a!=null?a.concat([e]):null;var u=4194308;(xt.mode&ms)!==bt&&(u|=134217728),Fs(u,Li,xo.bind(null,t,e),a)}function nf(e,t,a){typeof t!="function"&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",t!==null?typeof t:"null"),a=a!=null?a.concat([e]):null,Ul(4,Li,xo.bind(null,t,e),a)}function gp(e,t){return Rl().memoizedState=[e,t===void 0?null:t],e}function Oi(e,t){var a=yn();t=t===void 0?null:t;var u=a.memoizedState;return t!==null&&g0(t,u[1])?u[0]:(a.memoizedState=[e,t],e)}function Ha(e,t){var a=Rl();t=t===void 0?null:t;var u=e();if(Wh){pe(!0);try{e()}finally{pe(!1)}}return a.memoizedState=[u,t],u}function Jn(e,t){var a=yn();t=t===void 0?null:t;var u=a.memoizedState;if(t!==null&&g0(t,u[1]))return u[0];if(u=e(),Wh){pe(!0);try{e()}finally{pe(!1)}}return a.memoizedState=[u,t],u}function lf(e,t){var a=Rl();return bn(a,e,t)}function rr(e,t){var a=yn();return Tl(a,Fn.memoizedState,e,t)}function zt(e,t){var a=yn();return Fn===null?bn(a,e,t):Tl(a,Fn.memoizedState,e,t)}function bn(e,t,a){return a===void 0||(yu&1073741824)!==0&&(Ft&261930)===0?e.memoizedState=t:(e.memoizedState=a,e=df(),xt.lanes|=e,ed|=e,a)}function Tl(e,t,a,u){return zo(a,t)?a:qg.current!==null?(e=bn(e,a,u),zo(e,t)||(aa=!0),e):(yu&42)===0||(yu&1073741824)!==0&&(Ft&261930)===0?(aa=!0,e.memoizedState=a):(e=df(),xt.lanes|=e,ed|=e,t)}function Fc(){Ce.asyncTransitions--}function kc(e,t,a,u,h){var g=pn.p;pn.p=g!==0&&g<ha?g:ha;var E=Ce.T,w={};w._updatedFibers=new Set,Ce.T=w,lh(e,!1,t,a);try{var $=h(),q=Ce.S;if(q!==null&&q(w,$),$!==null&&typeof $=="object"&&typeof $.then=="function"){Ce.asyncTransitions++,$.then(Fc,Fc);var oe=rp($,u);Ic(e,t,oe,Ea(e))}else Ic(e,t,u,Ea(e))}catch(se){Ic(e,t,{then:function(){},status:"rejected",reason:se},Ea(e))}finally{pn.p=g,E!==null&&w.types!==null&&(E.types!==null&&E.types!==w.types&&console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."),E.types=w.types),Ce.T=E,E===null&&w._updatedFibers&&(e=w._updatedFibers.size,w._updatedFibers.clear(),10<e&&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 ls(e,t,a,u){if(e.tag!==5)throw Error("Expected the form instance to be a HostComponent. This is a bug in React.");var h=th(e).queue;Cx(e),kc(e,h,t,um,a===null?C:function(){return af(e),a(u)})}function th(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:um,baseState:um,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:vo,lastRenderedState:um},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:vo,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function af(e){Ce.T===null&&console.error("requestFormReset was called outside a transition or action. To fix, move to an action, or wrap with startTransition.");var t=th(e);t.next===null&&(t=e.alternate.memoizedState),Ic(e,t.next.queue,{},Ea(e))}function ks(){var e=dp(!1);return e=kc.bind(null,xt,e.queue,!0,!1),Rl().memoizedState=e,[!1,e]}function jx(){var e=Hc(vo)[0],t=yn().memoizedState;return[typeof e=="boolean"?e:Zd(e),t]}function il(){var e=Uc(vo)[0],t=yn().memoizedState;return[typeof e=="boolean"?e:Zd(e),t]}function as(){return hn(Mv)}function nh(){var e=Rl(),t=kn.identifierPrefix;if(Kt){var a=du,u=fu;a=(u&~(1<<32-da(u)-1)).toString(32)+a,t="_"+t+"R_"+a,a=J1++,0<a&&(t+="H"+a.toString(32)),t+="_"}else a=E9++,t="_"+t+"r_"+a.toString(32)+"_";return e.memoizedState=t}function yp(){return Rl().memoizedState=Ax.bind(null,xt)}function Ax(e,t){for(var a=e.return;a!==null;){switch(a.tag){case 24:case 3:var u=Ea(a),h=Hl(u),g=nr(a,h,u);g!==null&&(Wi(u,"refresh()",e),vt(g,a,u),Jo(g,a,u)),e=op(),t!=null&&g!==null&&console.error("The seed argument is not enabled outside experimental channels."),h.payload={cache:e};return}a=a.return}}function b2(e,t,a){var u=arguments;typeof u[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()."),u=Ea(e);var h={lane:u,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};Jl(e)?gl(t,h):(h=Oc(e,t,h,u),h!==null&&(Wi(u,"dispatch()",e),vt(h,e,u),ah(h,t,u)))}function bp(e,t,a){var u=arguments;typeof u[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()."),u=Ea(e),Ic(e,t,a,u)&&Wi(u,"setState()",e)}function Ic(e,t,a,u){var h={lane:u,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(Jl(e))gl(t,h);else{var g=e.alternate;if(e.lanes===0&&(g===null||g.lanes===0)&&(g=t.lastRenderedReducer,g!==null)){var E=Ce.H;Ce.H=gs;try{var w=t.lastRenderedState,$=g(w,a);if(h.hasEagerState=!0,h.eagerState=$,zo($,w))return ku(e,t,h,0),kn===null&&Wm(),!1}catch{}finally{Ce.H=E}}if(a=Oc(e,t,h,u),a!==null)return vt(a,e,u),ah(a,t,u),!0}return!1}function lh(e,t,a,u){if(Ce.T===null&&Ph===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."),u={lane:2,revertLane:cb(),gesture:null,action:u,hasEagerState:!1,eagerState:null,next:null},Jl(e)){if(t)throw Error("Cannot update optimistic state while rendering.");console.error("Cannot call startTransition while rendering.")}else t=Oc(e,a,u,2),t!==null&&(Wi(2,"setOptimistic()",e),vt(t,e,2))}function Jl(e){var t=e.alternate;return e===xt||t!==null&&t===xt}function gl(e,t){kg=Z1=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function ah(e,t,a){if((a&4194048)!==0){var u=t.lanes;u&=e.pendingLanes,a|=u,t.lanes=a,Sl(e,a)}}function Gc(e){if(e!==null&&typeof e!="function"){var t=String(e);$R.has(t)||($R.add(t),console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",e))}}function of(e,t,a,u){var h=e.memoizedState,g=a(u,h);if(e.mode&io){pe(!0);try{g=a(u,h)}finally{pe(!1)}}g===void 0&&(t=Q(t)||"Component",DR.has(t)||(DR.add(t),console.error("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",t))),h=g==null?h:Lt({},h,g),e.memoizedState=h,e.lanes===0&&(e.updateQueue.baseState=h)}function vp(e,t,a,u,h,g,E){var w=e.stateNode;if(typeof w.shouldComponentUpdate=="function"){if(a=w.shouldComponentUpdate(u,g,E),e.mode&io){pe(!0);try{a=w.shouldComponentUpdate(u,g,E)}finally{pe(!1)}}return a===void 0&&console.error("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",Q(t)||"Component"),a}return t.prototype&&t.prototype.isPureReactComponent?!Fu(a,u)||!Fu(h,g):!0}function sr(e,t,a,u){var h=t.state;typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(a,u),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(a,u),t.state!==h&&(e=V(e)||"Component",wR.has(e)||(wR.add(e),console.error("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",e)),iO.enqueueReplaceState(t,t.state,null))}function cr(e,t){var a=t;if("ref"in t){a={};for(var u in t)u!=="ref"&&(a[u]=t[u])}if(e=e.defaultProps){a===t&&(a=Lt({},a));for(var h in e)a[h]===void 0&&(a[h]=e[h])}return a}function Sp(e){H2(e),console.warn(`%s
207
-
208
- %s
209
- `,Ig?"An error occurred in the <"+Ig+"> 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 xp(e){var t=Ig?"The above error occurred in the <"+Ig+"> component.":"The above error occurred in one of your React components.",a="React will try to recreate this component tree from scratch using the error boundary you provided, "+((rO||"Anonymous")+".");if(typeof e=="object"&&e!==null&&typeof e.environmentName=="string"){var u=e.environmentName;e=[`%o
211
-
212
- %s
213
-
214
- %s
215
- `,e,t,a].slice(0),typeof e[0]=="string"?e.splice(0,1,y4+" "+e[0],b4,EE+u+EE,v4):e.splice(0,0,y4,b4,EE+u+EE,v4),e.unshift(console),u=k9.apply(console.error,e),u()}else console.error(`%o
216
-
217
- %s
218
-
219
- %s
220
- `,e,t,a)}function C0(e){H2(e)}function oh(e,t){try{Ig=t.source?V(t.source):null,rO=null;var a=t.value;if(Ce.actQueue!==null)Ce.thrownErrors.push(a);else{var u=e.onUncaughtError;u(a,{componentStack:t.stack})}}catch(h){setTimeout(function(){throw h})}}function T0(e,t,a){try{Ig=a.source?V(a.source):null,rO=V(t);var u=e.onCaughtError;u(a.value,{componentStack:a.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(h){setTimeout(function(){throw h})}}function Ep(e,t,a){return a=Hl(a),a.tag=eO,a.payload={element:null},a.callback=function(){ze(t.source,oh,e,t)},a}function Cp(e){return e=Hl(e),e.tag=eO,e}function Tp(e,t,a,u){var h=a.type.getDerivedStateFromError;if(typeof h=="function"){var g=u.value;e.payload=function(){return h(g)},e.callback=function(){wc(a),ze(u.source,T0,t,a,u)}}var E=a.stateNode;E!==null&&typeof E.componentDidCatch=="function"&&(e.callback=function(){wc(a),ze(u.source,T0,t,a,u),typeof h!="function"&&(nd===null?nd=new Set([this]):nd.add(this)),b9(this,u),typeof h=="function"||(a.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.",V(a)||"Unknown")})}function O0(e,t,a,u,h){if(a.flags|=32768,Er&&yf(e,h),u!==null&&typeof u=="object"&&typeof u.then=="function"){if(t=a.alternate,t!==null&&Si(t,a,h,!0),Kt&&(oc=!0),a=Ui.current,a!==null){switch(a.tag){case 31:case 13:return Dr===null?mf():a.alternate===null&&bl===xu&&(bl=eE),a.flags&=-257,a.flags|=65536,a.lanes=h,u===X1?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([u]):t.add(u),Ip(e,u,h)),!1;case 22:return a.flags|=65536,u===X1?a.flags|=16384:(t=a.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([u])},a.updateQueue=t):(a=t.retryQueue,a===null?t.retryQueue=new Set([u]):a.add(u)),Ip(e,u,h)),!1}throw Error("Unexpected Suspense handler tag ("+a.tag+"). This is a bug in React.")}return Ip(e,u,h),mf(),!1}if(Kt)return oc=!0,t=Ui.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=h,u!==k2&&Ud(Da(Error("There was an error while hydrating but React was able to recover by instead client rendering from the nearest Suspense boundary.",{cause:u}),a))):(u!==k2&&Ud(Da(Error("There was an error while hydrating but React was able to recover by instead client rendering the entire root.",{cause:u}),a)),e=e.current.alternate,e.flags|=65536,h&=-h,e.lanes|=h,u=Da(u,a),h=Ep(e.stateNode,u,h),Id(e,h),bl!==Kf&&(bl=em)),!1;var g=Da(Error("There was an error during concurrent rendering but React was able to recover by instead synchronously rendering the entire root.",{cause:u}),a);if(Sv===null?Sv=[g]:Sv.push(g),bl!==Kf&&(bl=em),t===null)return!0;u=Da(u,a),a=t;do{switch(a.tag){case 3:return a.flags|=65536,e=h&-h,a.lanes|=e,e=Ep(a.stateNode,u,e),Id(a,e),!1;case 1:if(t=a.type,g=a.stateNode,(a.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||g!==null&&typeof g.componentDidCatch=="function"&&(nd===null||!nd.has(g))))return a.flags|=65536,h&=-h,a.lanes|=h,h=Cp(h),Tp(h,e,a,u),Id(a,h),!1}a=a.return}while(a!==null);return!1}function Kl(e,t,a,u){t.child=e===null?pR(t,null,a,u):Kh(t,e.child,a,u)}function Mx(e,t,a,u,h){a=a.render;var g=t.ref;if("ref"in u){var E={};for(var w in u)w!=="ref"&&(E[w]=u[w])}else E=u;return Rs(t),u=y0(e,t,a,E,g,h),w=Bc(),e!==null&&!aa?(Pd(e,t,h),wi(e,t,h)):(Kt&&w&&np(t),t.flags|=1,Kl(e,t,u,h),t.child)}function w0(e,t,a,u,h){if(e===null){var g=a.type;return typeof g=="function"&&!a0(g)&&g.defaultProps===void 0&&a.compare===null?(a=js(g),t.tag=15,t.type=a,rf(t,g),j0(e,t,a,u,h)):(e=jc(a.type,null,u,t,t.mode,h),e.ref=t.ref,e.return=t,t.child=e)}if(g=e.child,!Mp(e,h)){var E=g.memoizedProps;if(a=a.compare,a=a!==null?a:Fu,a(E,u)&&e.ref===t.ref)return wi(e,t,h)}return t.flags|=1,e=Ki(g,u),e.ref=t.ref,e.return=t,t.child=e}function j0(e,t,a,u,h){if(e!==null){var g=e.memoizedProps;if(Fu(g,u)&&e.ref===t.ref&&t.type===e.type)if(aa=!1,t.pendingProps=u=g,Mp(e,h))(e.flags&131072)!==0&&(aa=!0);else return t.lanes=e.lanes,wi(e,t,h)}return D0(e,t,a,u,h)}function A0(e,t,a,u){var h=u.children,g=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:Qb,_pendingMarkers:null,_retryCache:null,_transitions:null}),u.mode==="hidden"){if((t.flags&128)!==0){if(g=g!==null?g.baseLanes|a:a,e!==null){for(u=t.child=e.child,h=0;u!==null;)h=h|u.lanes|u.childLanes,u=u.sibling;u=h&~g}else u=0,t.child=null;return M0(e,t,g,a,u)}if((a&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Pu(t,g!==null?g.cachePool:null),g!==null?up(t,g):Kr(t),fp(t);else return u=t.lanes=536870912,M0(e,t,g!==null?g.baseLanes|a:a,a,u)}else g!==null?(Pu(t,g.cachePool),up(t,g),ar(t),t.memoizedState=null):(e!==null&&Pu(t,null),Kr(t),ar(t));return Kl(e,t,h,a),t.child}function Yc(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:Qb,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function M0(e,t,a,u,h){var g=Jr();return g=g===null?null:{parent:ta._currentValue,pool:g},t.memoizedState={baseLanes:a,cachePool:g},e!==null&&Pu(t,null),Kr(t),fp(t),e!==null&&Si(e,t,u,!0),t.childLanes=h,null}function ih(e,t){var a=t.hidden;return a!==void 0&&console.error(`<Activity> doesn't accept a hidden prop. Use mode="hidden" instead.
221
- - <Activity %s>
222
- + <Activity %s>`,a===!0?"hidden":a===!1?"hidden={false}":"hidden={...}",a?'mode="hidden"':'mode="visible"'),t=sh({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function z0(e,t,a){return Kh(t,e.child,null,a),e=ih(t,t.pendingProps),e.flags|=2,Zl(t),t.memoizedState=null,e}function zx(e,t,a){var u=t.pendingProps,h=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Kt){if(u.mode==="hidden")return e=ih(t,u),t.lanes=536870912,Yc(null,e);if(Ti(t),(e=tl)?(a=Sn(e,Mr),a=a!==null&&a.data===im?a:null,a!==null&&(u={dehydrated:a,treeContext:Sx(),retryLane:536870912,hydrationErrors:null},t.memoizedState=u,u=i0(a),u.return=t,t.child=u,Ya=t,tl=null)):a=null,a===null)throw xa(t,e),Yo(t);return t.lanes=536870912,null}return ih(t,u)}var g=e.memoizedState;if(g!==null){var E=g.dehydrated;if(Ti(t),h)if(t.flags&256)t.flags&=-257,t=z0(e,t,a);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error("Client rendering an Activity suspended it again. This is a bug in React.");else if(Ex(),(a&536870912)!==0&&hf(t),aa||Si(e,t,a,!1),h=(a&e.childLanes)!==0,aa||h){if(u=kn,u!==null&&(E=Pt(u,a),E!==0&&E!==g.retryLane))throw g.retryLane=E,Sa(e,E),vt(u,e,E),sO;mf(),t=z0(e,t,a)}else e=g.treeContext,tl=wo(E.nextSibling),Ya=t,Kt=!0,Yf=null,oc=!1,Hi=null,Mr=!1,e!==null&&xx(t,e),t=ih(t,u),t.flags|=4096;return t}return g=e.child,u={mode:u.mode,children:u.children},(a&536870912)!==0&&(a&e.lanes)!==0&&hf(t),e=Ki(g,u),e.ref=t.ref,t.child=e,e.return=t,e}function rh(e,t){var a=t.ref;if(a===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error("Expected ref to be a function, an object returned by React.createRef(), or undefined/null.");(e===null||e.ref!==a)&&(t.flags|=4194816)}}function D0(e,t,a,u,h){if(a.prototype&&typeof a.prototype.render=="function"){var g=Q(a)||"Unknown";BR[g]||(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.",g,g),BR[g]=!0)}return t.mode&io&&ps.recordLegacyContextWarning(t,null),e===null&&(rf(t,t.type),a.contextTypes&&(g=Q(a)||"Unknown",UR[g]||(UR[g]=!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)",g)))),Rs(t),a=y0(e,t,a,u,void 0,h),u=Bc(),e!==null&&!aa?(Pd(e,t,h),wi(e,t,h)):(Kt&&u&&np(t),t.flags|=1,Kl(e,t,a,h),t.child)}function R0(e,t,a,u,h,g){return Rs(t),vu=-1,hv=e!==null&&e.type!==t.type,t.updateQueue=null,a=Yd(t,u,a,h),Cl(e,t),u=Bc(),e!==null&&!aa?(Pd(e,t,g),wi(e,t,g)):(Kt&&u&&np(t),t.flags|=1,Kl(e,t,a,g),t.child)}function Xc(e,t,a,u,h){switch(y(t)){case!1:var g=t.stateNode,E=new t.type(t.memoizedProps,g.context).state;g.updater.enqueueSetState(g,E,null);break;case!0:t.flags|=128,t.flags|=65536,g=Error("Simulated error coming from DevTools");var w=h&-h;if(t.lanes|=w,E=kn,E===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");w=Cp(w),Tp(w,E,t,Da(g,t)),Id(t,w)}if(Rs(t),t.stateNode===null){if(E=Gf,g=a.contextType,"contextType"in a&&g!==null&&(g===void 0||g.$$typeof!==_i)&&!_R.has(a)&&(_R.add(a),w=g===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 g!="object"?" However, it is set to a "+typeof g+".":g.$$typeof===dg?" Did you accidentally pass the Context.Consumer instead?":" However, it is set to an object with keys {"+Object.keys(g).join(", ")+"}.",console.error("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",Q(a)||"Component",w)),typeof g=="object"&&g!==null&&(E=hn(g)),g=new a(u,E),t.mode&io){pe(!0);try{g=new a(u,E)}finally{pe(!1)}}if(E=t.memoizedState=g.state!==null&&g.state!==void 0?g.state:null,g.updater=iO,t.stateNode=g,g._reactInternals=t,g._reactInternalInstance=OR,typeof a.getDerivedStateFromProps=="function"&&E===null&&(E=Q(a)||"Component",jR.has(E)||(jR.add(E),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.",E,g.state===null?"null":"undefined",E))),typeof a.getDerivedStateFromProps=="function"||typeof g.getSnapshotBeforeUpdate=="function"){var $=w=E=null;if(typeof g.componentWillMount=="function"&&g.componentWillMount.__suppressDeprecationWarning!==!0?E="componentWillMount":typeof g.UNSAFE_componentWillMount=="function"&&(E="UNSAFE_componentWillMount"),typeof g.componentWillReceiveProps=="function"&&g.componentWillReceiveProps.__suppressDeprecationWarning!==!0?w="componentWillReceiveProps":typeof g.UNSAFE_componentWillReceiveProps=="function"&&(w="UNSAFE_componentWillReceiveProps"),typeof g.componentWillUpdate=="function"&&g.componentWillUpdate.__suppressDeprecationWarning!==!0?$="componentWillUpdate":typeof g.UNSAFE_componentWillUpdate=="function"&&($="UNSAFE_componentWillUpdate"),E!==null||w!==null||$!==null){g=Q(a)||"Component";var q=typeof a.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";MR.has(g)||(MR.add(g),console.error(`Unsafe legacy lifecycles will not be called for components using new component APIs.
223
-
224
- %s uses %s but also contains the following legacy lifecycles:%s%s%s
225
-
226
- The above lifecycles should be removed. Learn more about this warning here:
227
- https://react.dev/link/unsafe-component-lifecycles`,g,q,E!==null?`
228
- `+E:"",w!==null?`
229
- `+w:"",$!==null?`
230
- `+$:""))}}g=t.stateNode,E=Q(a)||"Component",g.render||(a.prototype&&typeof a.prototype.render=="function"?console.error("No `render` method found on the %s instance: did you accidentally return an object from the constructor?",E):console.error("No `render` method found on the %s instance: you may have forgotten to define `render`.",E)),!g.getInitialState||g.getInitialState.isReactClassApproved||g.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?",E),g.getDefaultProps&&!g.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.",E),g.contextType&&console.error("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",E),a.childContextTypes&&!NR.has(a)&&(NR.add(a),console.error("%s uses the legacy childContextTypes API which was removed in React 19. Use React.createContext() instead. (https://react.dev/link/legacy-context)",E)),a.contextTypes&&!RR.has(a)&&(RR.add(a),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)",E)),typeof g.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.",E),a.prototype&&a.prototype.isPureReactComponent&&typeof g.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.",Q(a)||"A pure component"),typeof g.componentDidUnmount=="function"&&console.error("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",E),typeof g.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().",E),typeof g.componentWillRecieveProps=="function"&&console.error("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",E),typeof g.UNSAFE_componentWillRecieveProps=="function"&&console.error("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",E),w=g.props!==u,g.props!==void 0&&w&&console.error("When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",E),g.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.",E,E),typeof g.getSnapshotBeforeUpdate!="function"||typeof g.componentDidUpdate=="function"||AR.has(a)||(AR.add(a),console.error("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",Q(a))),typeof g.getDerivedStateFromProps=="function"&&console.error("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",E),typeof g.getDerivedStateFromError=="function"&&console.error("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",E),typeof a.getSnapshotBeforeUpdate=="function"&&console.error("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",E),(w=g.state)&&(typeof w!="object"||_l(w))&&console.error("%s.state: must be set to an object or null",E),typeof g.getChildContext=="function"&&typeof a.childContextTypes!="object"&&console.error("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",E),g=t.stateNode,g.props=u,g.state=t.memoizedState,g.refs={},Qt(t),E=a.contextType,g.context=typeof E=="object"&&E!==null?hn(E):Gf,g.state===u&&(E=Q(a)||"Component",zR.has(E)||(zR.add(E),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.",E))),t.mode&io&&ps.recordLegacyContextWarning(t,g),ps.recordUnsafeLifecycleWarnings(t,g),g.state=t.memoizedState,E=a.getDerivedStateFromProps,typeof E=="function"&&(of(t,a,E,u),g.state=t.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof g.getSnapshotBeforeUpdate=="function"||typeof g.UNSAFE_componentWillMount!="function"&&typeof g.componentWillMount!="function"||(E=g.state,typeof g.componentWillMount=="function"&&g.componentWillMount(),typeof g.UNSAFE_componentWillMount=="function"&&g.UNSAFE_componentWillMount(),E!==g.state&&(console.error("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",V(t)||"Component"),iO.enqueueReplaceState(g,g.state,null)),lr(t,u,g,h),Zu(),g.state=t.memoizedState),typeof g.componentDidMount=="function"&&(t.flags|=4194308),(t.mode&ms)!==bt&&(t.flags|=134217728),g=!0}else if(e===null){g=t.stateNode;var oe=t.memoizedProps;w=cr(a,oe),g.props=w;var se=g.context;$=a.contextType,E=Gf,typeof $=="object"&&$!==null&&(E=hn($)),q=a.getDerivedStateFromProps,$=typeof q=="function"||typeof g.getSnapshotBeforeUpdate=="function",oe=t.pendingProps!==oe,$||typeof g.UNSAFE_componentWillReceiveProps!="function"&&typeof g.componentWillReceiveProps!="function"||(oe||se!==E)&&sr(t,g,u,E),Jf=!1;var J=t.memoizedState;g.state=J,lr(t,u,g,h),Zu(),se=t.memoizedState,oe||J!==se||Jf?(typeof q=="function"&&(of(t,a,q,u),se=t.memoizedState),(w=Jf||vp(t,a,w,u,J,se,E))?($||typeof g.UNSAFE_componentWillMount!="function"&&typeof g.componentWillMount!="function"||(typeof g.componentWillMount=="function"&&g.componentWillMount(),typeof g.UNSAFE_componentWillMount=="function"&&g.UNSAFE_componentWillMount()),typeof g.componentDidMount=="function"&&(t.flags|=4194308),(t.mode&ms)!==bt&&(t.flags|=134217728)):(typeof g.componentDidMount=="function"&&(t.flags|=4194308),(t.mode&ms)!==bt&&(t.flags|=134217728),t.memoizedProps=u,t.memoizedState=se),g.props=u,g.state=se,g.context=E,g=w):(typeof g.componentDidMount=="function"&&(t.flags|=4194308),(t.mode&ms)!==bt&&(t.flags|=134217728),g=!1)}else{g=t.stateNode,tr(e,t),E=t.memoizedProps,$=cr(a,E),g.props=$,q=t.pendingProps,J=g.context,se=a.contextType,w=Gf,typeof se=="object"&&se!==null&&(w=hn(se)),oe=a.getDerivedStateFromProps,(se=typeof oe=="function"||typeof g.getSnapshotBeforeUpdate=="function")||typeof g.UNSAFE_componentWillReceiveProps!="function"&&typeof g.componentWillReceiveProps!="function"||(E!==q||J!==w)&&sr(t,g,u,w),Jf=!1,J=t.memoizedState,g.state=J,lr(t,u,g,h),Zu();var xe=t.memoizedState;E!==q||J!==xe||Jf||e!==null&&e.dependencies!==null&&Yu(e.dependencies)?(typeof oe=="function"&&(of(t,a,oe,u),xe=t.memoizedState),($=Jf||vp(t,a,$,u,J,xe,w)||e!==null&&e.dependencies!==null&&Yu(e.dependencies))?(se||typeof g.UNSAFE_componentWillUpdate!="function"&&typeof g.componentWillUpdate!="function"||(typeof g.componentWillUpdate=="function"&&g.componentWillUpdate(u,xe,w),typeof g.UNSAFE_componentWillUpdate=="function"&&g.UNSAFE_componentWillUpdate(u,xe,w)),typeof g.componentDidUpdate=="function"&&(t.flags|=4),typeof g.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof g.componentDidUpdate!="function"||E===e.memoizedProps&&J===e.memoizedState||(t.flags|=4),typeof g.getSnapshotBeforeUpdate!="function"||E===e.memoizedProps&&J===e.memoizedState||(t.flags|=1024),t.memoizedProps=u,t.memoizedState=xe),g.props=u,g.state=xe,g.context=w,g=$):(typeof g.componentDidUpdate!="function"||E===e.memoizedProps&&J===e.memoizedState||(t.flags|=4),typeof g.getSnapshotBeforeUpdate!="function"||E===e.memoizedProps&&J===e.memoizedState||(t.flags|=1024),g=!1)}if(w=g,rh(e,t),E=(t.flags&128)!==0,w||E){if(w=t.stateNode,Ye(t),E&&typeof a.getDerivedStateFromError!="function")a=null,Do=-1;else if(a=tR(w),t.mode&io){pe(!0);try{tR(w)}finally{pe(!1)}}t.flags|=1,e!==null&&E?(t.child=Kh(t,e.child,null,h),t.child=Kh(t,null,a,h)):Kl(e,t,a,h),t.memoizedState=w.state,e=t.child}else e=wi(e,t,h);return h=t.stateNode,g&&h.props!==u&&(Gg||console.error("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",V(t)||"a component"),Gg=!0),e}function N0(e,t,a,u){return zs(),t.flags|=256,Kl(e,t,a,u),t.child}function rf(e,t){t&&t.childContextTypes&&console.error(`childContextTypes cannot be defined on a function component.
231
- %s.childContextTypes = ...`,t.displayName||t.name||"Component"),typeof t.getDerivedStateFromProps=="function"&&(e=Q(t)||"Unknown",LR[e]||(console.error("%s: Function components do not support getDerivedStateFromProps.",e),LR[e]=!0)),typeof t.contextType=="object"&&t.contextType!==null&&(t=Q(t)||"Unknown",HR[t]||(console.error("%s: Function components do not support contextType.",t),HR[t]=!0))}function sf(e){return{baseLanes:e,cachePool:d0()}}function Op(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=oi),e}function wp(e,t,a){var u,h=t.pendingProps;p(t)&&(t.flags|=128);var g=!1,E=(t.flags&128)!==0;if((u=E)||(u=e!==null&&e.memoizedState===null?!1:(Fl.current&fv)!==0),u&&(g=!0,t.flags&=-129),u=(t.flags&32)!==0,t.flags&=-33,e===null){if(Kt){if(g?$a(t):ar(t),(e=tl)?(a=Sn(e,Mr),a=a!==null&&a.data!==im?a:null,a!==null&&(u={dehydrated:a,treeContext:Sx(),retryLane:536870912,hydrationErrors:null},t.memoizedState=u,u=i0(a),u.return=t,t.child=u,Ya=t,tl=null)):a=null,a===null)throw xa(t,e),Yo(t);return db(a)?t.lanes=32:t.lanes=536870912,null}var w=h.children;if(h=h.fallback,g){ar(t);var $=t.mode;return w=sh({mode:"hidden",children:w},$),h=Ac(h,$,a,null),w.return=t,h.return=t,w.sibling=h,t.child=w,h=t.child,h.memoizedState=sf(a),h.childLanes=Op(e,u,a),t.memoizedState=cO,Yc(null,h)}return $a(t),_0(t,w)}var q=e.memoizedState;if(q!==null){var oe=q.dehydrated;if(oe!==null){if(E)t.flags&256?($a(t),t.flags&=-257,t=jp(e,t,a)):t.memoizedState!==null?(ar(t),t.child=e.child,t.flags|=128,t=null):(ar(t),w=h.fallback,$=t.mode,h=sh({mode:"visible",children:h.children},$),w=Ac(w,$,a,null),w.flags|=2,h.return=t,w.return=t,h.sibling=w,t.child=h,Kh(t,e.child,null,a),h=t.child,h.memoizedState=sf(a),h.childLanes=Op(e,u,a),t.memoizedState=cO,t=Yc(null,h));else if($a(t),Ex(),(a&536870912)!==0&&hf(t),db(oe)){if(u=oe.nextSibling&&oe.nextSibling.dataset,u){w=u.dgst;var se=u.msg;$=u.stck;var J=u.cstck}g=se,u=w,h=$,oe=J,w=g,$=oe,w=Error(w||"The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering."),w.stack=h||"",w.digest=u,u=$===void 0?null:$,h={value:w,source:null,stack:u},typeof u=="string"&&F2.set(w,h),Ud(h),t=jp(e,t,a)}else if(aa||Si(e,t,a,!1),u=(a&e.childLanes)!==0,aa||u){if(u=kn,u!==null&&(h=Pt(u,a),h!==0&&h!==q.retryLane))throw q.retryLane=h,Sa(e,h),vt(u,e,h),sO;wh(oe)||mf(),t=jp(e,t,a)}else wh(oe)?(t.flags|=192,t.child=e.child,t=null):(e=q.treeContext,tl=wo(oe.nextSibling),Ya=t,Kt=!0,Yf=null,oc=!1,Hi=null,Mr=!1,e!==null&&xx(t,e),t=_0(t,h.children),t.flags|=4096);return t}}return g?(ar(t),w=h.fallback,$=t.mode,J=e.child,oe=J.sibling,h=Ki(J,{mode:"hidden",children:h.children}),h.subtreeFlags=J.subtreeFlags&65011712,oe!==null?w=Ki(oe,w):(w=Ac(w,$,a,null),w.flags|=2),w.return=t,h.return=t,h.sibling=w,t.child=h,Yc(null,h),h=t.child,w=e.child.memoizedState,w===null?w=sf(a):($=w.cachePool,$!==null?(J=ta._currentValue,$=$.parent!==J?{parent:J,pool:J}:$):$=d0(),w={baseLanes:w.baseLanes|a,cachePool:$}),h.memoizedState=w,h.childLanes=Op(e,u,a),t.memoizedState=cO,Yc(e.child,h)):(q!==null&&(a&62914560)===a&&(a&e.lanes)!==0&&hf(t),$a(t),a=e.child,e=a.sibling,a=Ki(a,{mode:"visible",children:h.children}),a.return=t,a.sibling=null,e!==null&&(u=t.deletions,u===null?(t.deletions=[e],t.flags|=16):u.push(e)),t.child=a,t.memoizedState=null,a)}function _0(e,t){return t=sh({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function sh(e,t){return e=A(22,e,null,t),e.lanes=0,e}function jp(e,t,a){return Kh(t,e.child,null,a),e=_0(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function $0(e,t,a){e.lanes|=t;var u=e.alternate;u!==null&&(u.lanes|=t),ap(e.return,t,a)}function Ap(e,t,a,u,h,g){var E=e.memoizedState;E===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:u,tail:a,tailMode:h,treeForkCount:g}:(E.isBackwards=t,E.rendering=null,E.renderingStartTime=0,E.last=u,E.tail=a,E.tailMode=h,E.treeForkCount=g)}function B0(e,t,a){var u=t.pendingProps,h=u.revealOrder,g=u.tail,E=u.children,w=Fl.current;if((u=(w&fv)!==0)?(w=w&Vg|fv,t.flags|=128):w&=Vg,ae(Fl,w,t),w=h??"null",h!=="forwards"&&h!=="unstable_legacy-backwards"&&h!=="together"&&h!=="independent"&&!qR[w])if(qR[w]=!0,h==null)console.error('The default for the <SuspenseList revealOrder="..."> prop is changing. To be future compatible you must explictly specify either "independent" (the current default), "together", "forwards" or "legacy_unstable-backwards".');else if(h==="backwards")console.error('The rendering order of <SuspenseList revealOrder="backwards"> is changing. To be future compatible you must specify revealOrder="legacy_unstable-backwards" instead.');else if(typeof h=="string")switch(h.toLowerCase()){case"together":case"forwards":case"backwards":case"independent":console.error('"%s" is not a valid value for revealOrder on <SuspenseList />. Use lowercase "%s" instead.',h,h.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.',h,h.toLowerCase());break;default:console.error('"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?',h)}else console.error('%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?',h);w=g??"null",W1[w]||(g==null?(h==="forwards"||h==="backwards"||h==="unstable_legacy-backwards")&&(W1[w]=!0,console.error('The default for the <SuspenseList tail="..."> prop is changing. To be future compatible you must explictly specify either "visible" (the current default), "collapsed" or "hidden".')):g!=="visible"&&g!=="collapsed"&&g!=="hidden"?(W1[w]=!0,console.error('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "visible", "collapsed" or "hidden"?',g)):h!=="forwards"&&h!=="backwards"&&h!=="unstable_legacy-backwards"&&(W1[w]=!0,console.error('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',g)));e:if((h==="forwards"||h==="backwards"||h==="unstable_legacy-backwards")&&E!==void 0&&E!==null&&E!==!1)if(_l(E)){for(w=0;w<E.length;w++)if(!Ln(E[w],w))break e}else if(w=P(E),typeof w=="function"){if(w=w.call(E))for(var $=w.next(),q=0;!$.done;$=w.next()){if(!Ln($.value,q))break e;q++}}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?',h);if(Kl(e,t,E,a),Kt?(Ms(),E=Zb):E=0,!u&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&$0(e,a,t);else if(e.tag===19)$0(e,a,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(h){case"forwards":for(a=t.child,h=null;a!==null;)e=a.alternate,e!==null&&$c(e)===null&&(h=a),a=a.sibling;a=h,a===null?(h=t.child,t.child=null):(h=a.sibling,a.sibling=null),Ap(t,!1,h,a,g,E);break;case"backwards":case"unstable_legacy-backwards":for(a=null,h=t.child,t.child=null;h!==null;){if(e=h.alternate,e!==null&&$c(e)===null){t.child=h;break}e=h.sibling,h.sibling=a,a=h,h=e}Ap(t,!0,a,null,g,E);break;case"together":Ap(t,!1,null,null,void 0,E);break;default:t.memoizedState=null}return t.child}function wi(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),Do=-1,ed|=t.lanes,(a&t.childLanes)===0)if(e!==null){if(Si(e,t,a,!1),(a&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error("Resuming work not yet implemented.");if(t.child!==null){for(e=t.child,a=Ki(e,e.pendingProps),t.child=a,a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=Ki(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function Mp(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Yu(e)))}function Dx(e,t,a){switch(t.tag){case 3:He(t,t.stateNode.containerInfo),Xo(t,ta,e.memoizedState.cache),zs();break;case 27:case 5:me(t);break;case 4:He(t,t.stateNode.containerInfo);break;case 10:Xo(t,t.type,t.memoizedProps.value);break;case 12:(a&t.childLanes)!==0&&(t.flags|=4),t.flags|=2048;var u=t.stateNode;u.effectDuration=-0,u.passiveEffectDuration=-0;break;case 31:if(t.memoizedState!==null)return t.flags|=128,Ti(t),null;break;case 13:if(u=t.memoizedState,u!==null)return u.dehydrated!==null?($a(t),t.flags|=128,null):(a&t.child.childLanes)!==0?wp(e,t,a):($a(t),e=wi(e,t,a),e!==null?e.sibling:null);$a(t);break;case 19:var h=(e.flags&128)!==0;if(u=(a&t.childLanes)!==0,u||(Si(e,t,a,!1),u=(a&t.childLanes)!==0),h){if(u)return B0(e,t,a);t.flags|=128}if(h=t.memoizedState,h!==null&&(h.rendering=null,h.tail=null,h.lastEffect=null),ae(Fl,Fl.current,t),u)break;return null;case 22:return t.lanes=0,A0(e,t,a,t.pendingProps);case 24:Xo(t,ta,e.memoizedState.cache)}return wi(e,t,a)}function ch(e,t,a){if(t._debugNeedsRemount&&e!==null){a=jc(t.type,t.key,t.pendingProps,t._debugOwner||null,t.mode,t.lanes),a._debugStack=t._debugStack,a._debugTask=t._debugTask;var u=t.return;if(u===null)throw Error("Cannot swap the root fiber.");if(e.alternate=null,t.alternate=null,a.index=t.index,a.sibling=t.sibling,a.return=t.return,a.ref=t.ref,a._debugInfo=t._debugInfo,t===u.child)u.child=a;else{var h=u.child;if(h===null)throw Error("Expected parent to have a child.");for(;h.sibling!==t;)if(h=h.sibling,h===null)throw Error("Expected to find the previous sibling.");h.sibling=a}return t=u.deletions,t===null?(u.deletions=[e],u.flags|=16):t.push(e),a.flags|=2,a}if(e!==null)if(e.memoizedProps!==t.pendingProps||t.type!==e.type)aa=!0;else{if(!Mp(e,a)&&(t.flags&128)===0)return aa=!1,Dx(e,t,a);aa=(e.flags&131072)!==0}else aa=!1,(u=Kt)&&(Ms(),u=(t.flags&1048576)!==0),u&&(u=t.index,Ms(),r0(t,Zb,u));switch(t.lanes=0,t.tag){case 16:e:if(u=t.pendingProps,e=yo(t.elementType),t.type=e,typeof e=="function")a0(e)?(u=cr(e,u),t.tag=1,t.type=e=js(e),t=Xc(null,t,e,u,a)):(t.tag=0,rf(t,e),t.type=e=js(e),t=D0(null,t,e,u,a));else{if(e!=null){if(h=e.$$typeof,h===Df){t.tag=11,t.type=e=ep(e),t=Mx(null,t,e,u,a);break e}else if(h===Bh){t.tag=14,t=w0(null,t,e,u,a);break e}}throw t="",e!==null&&typeof e=="object"&&e.$$typeof===Ca&&(t=" Did you wrap a component in React.lazy() more than once?"),a=Q(e)||e,Error("Element type is invalid. Received a promise that resolves to: "+a+". Lazy element type must resolve to a class or function."+t)}return t;case 0:return D0(e,t,t.type,t.pendingProps,a);case 1:return u=t.type,h=cr(u,t.pendingProps),Xc(e,t,u,h,a);case 3:e:{if(He(t,t.stateNode.containerInfo),e===null)throw Error("Should have a current fiber. This is a bug in React.");u=t.pendingProps;var g=t.memoizedState;h=g.element,tr(e,t),lr(t,u,null,a);var E=t.memoizedState;if(u=E.cache,Xo(t,ta,u),u!==g.cache&&Pr(t,[ta],a,!0),Zu(),u=E.element,g.isDehydrated)if(g={element:u,isDehydrated:!1,cache:E.cache},t.updateQueue.baseState=g,t.memoizedState=g,t.flags&256){t=N0(e,t,u,a);break e}else if(u!==h){h=Da(Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),t),Ud(h),t=N0(e,t,u,a);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(tl=wo(e.firstChild),Ya=t,Kt=!0,Yf=null,oc=!1,Hi=null,Mr=!0,a=pR(t,null,u,a),t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if(zs(),u===h){t=wi(e,t,a);break e}Kl(e,t,u,a)}t=t.child}return t;case 26:return rh(e,t),e===null?(a=gb(t.type,null,t.pendingProps,null))?t.memoizedState=a:Kt||(a=t.type,e=t.pendingProps,u=ge(jo.current),u=Th(u).createElement(a),u[Wn]=t,u[Ga]=e,Kn(u,a,e),rn(u),t.stateNode=u):t.memoizedState=gb(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return me(t),e===null&&Kt&&(u=ge(jo.current),h=ie(),u=t.stateNode=us(t.type,t.pendingProps,u,h,!1),oc||(h=lo(u,t.type,t.pendingProps,h),h!==null&&(Mc(t,0).serverProps=h)),Ya=t,Mr=!0,h=tl,Ks(t.type)?(RO=h,tl=wo(u.firstChild)):tl=h),Kl(e,t,t.pendingProps.children,a),rh(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Kt&&(g=ie(),u=Qn(t.type,g.ancestorInfo),h=tl,(E=!h)||(E=r1(h,t.type,t.pendingProps,Mr),E!==null?(t.stateNode=E,oc||(g=lo(E,t.type,t.pendingProps,g),g!==null&&(Mc(t,0).serverProps=g)),Ya=t,tl=wo(E.firstChild),Mr=!1,g=!0):g=!1,E=!g),E&&(u&&xa(t,h),Yo(t))),me(t),h=t.type,g=t.pendingProps,E=e!==null?e.memoizedProps:null,u=g.children,Ef(h,g)?u=null:E!==null&&Ef(h,E)&&(t.flags|=32),t.memoizedState!==null&&(h=y0(e,t,Xd,null,null,a),Mv._currentValue=h),rh(e,t),Kl(e,t,u,a),t.child;case 6:return e===null&&Kt&&(a=t.pendingProps,e=ie(),u=e.ancestorInfo.current,a=u!=null?ko(a,u.tag,e.ancestorInfo.implicitRootScope):!0,e=tl,(u=!e)||(u=s1(e,t.pendingProps,Mr),u!==null?(t.stateNode=u,Ya=t,tl=null,u=!0):u=!1,u=!u),u&&(a&&xa(t,e),Yo(t))),null;case 13:return wp(e,t,a);case 4:return He(t,t.stateNode.containerInfo),u=t.pendingProps,e===null?t.child=Kh(t,null,u,a):Kl(e,t,u,a),t.child;case 11:return Mx(e,t,t.type,t.pendingProps,a);case 7:return Kl(e,t,t.pendingProps,a),t.child;case 8:return Kl(e,t,t.pendingProps.children,a),t.child;case 12:return t.flags|=4,t.flags|=2048,u=t.stateNode,u.effectDuration=-0,u.passiveEffectDuration=-0,Kl(e,t,t.pendingProps.children,a),t.child;case 10:return u=t.type,h=t.pendingProps,g=h.value,"value"in h||VR||(VR=!0,console.error("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?")),Xo(t,u,g),Kl(e,t,h.children,a),t.child;case 9:return h=t.type._context,u=t.pendingProps.children,typeof u!="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."),Rs(t),h=hn(h),u=Z2(u,h,void 0),t.flags|=1,Kl(e,t,u,a),t.child;case 14:return w0(e,t,t.type,t.pendingProps,a);case 15:return j0(e,t,t.type,t.pendingProps,a);case 19:return B0(e,t,a);case 31:return zx(e,t,a);case 22:return A0(e,t,a,t.pendingProps);case 24:return Rs(t),u=hn(ta),e===null?(h=Jr(),h===null&&(h=kn,g=op(),h.pooledCache=g,Dc(g),g!==null&&(h.pooledCacheLanes|=a),h=g),t.memoizedState={parent:u,cache:h},Qt(t),Xo(t,ta,h)):((e.lanes&a)!==0&&(tr(e,t),lr(t,null,null,a),Zu()),h=e.memoizedState,g=t.memoizedState,h.parent!==u?(h={parent:u,cache:u},t.memoizedState=h,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=h),Xo(t,ta,u)):(u=g.cache,Xo(t,ta,u),u!==h.cache&&Pr(t,[ta],a,!0))),Kl(e,t,t.pendingProps.children,a),t.child;case 29:throw t.pendingProps}throw Error("Unknown unit of work tag ("+t.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function ur(e){e.flags|=4}function zp(e,t,a,u,h){if((t=(e.mode&h9)!==bt)&&(t=!1),t){if(e.flags|=16777216,(h&335544128)===h)if(e.stateNode.complete)e.flags|=8192;else if(eb())e.flags|=8192;else throw Jh=X1,K2}else e.flags&=-16777217}function Rx(e,t){if(t.type!=="stylesheet"||(t.state.loading&_r)!==cm)e.flags&=-16777217;else if(e.flags|=16777216,!Yt(t))if(eb())e.flags|=8192;else throw Jh=X1,K2}function cf(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Rn():536870912,e.lanes|=t,lm|=t)}function uf(e,t){if(!Kt)switch(e.tailMode){case"hidden":t=e.tail;for(var a=null;t!==null;)t.alternate!==null&&(a=t),t=t.sibling;a===null?e.tail=null:a.sibling=null;break;case"collapsed":a=e.tail;for(var u=null;a!==null;)a.alternate!==null&&(u=a),a=a.sibling;u===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:u.sibling=null}}function jn(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=0,u=0;if(t)if((e.mode&qt)!==bt){for(var h=e.selfBaseDuration,g=e.child;g!==null;)a|=g.lanes|g.childLanes,u|=g.subtreeFlags&65011712,u|=g.flags&65011712,h+=g.treeBaseDuration,g=g.sibling;e.treeBaseDuration=h}else for(h=e.child;h!==null;)a|=h.lanes|h.childLanes,u|=h.subtreeFlags&65011712,u|=h.flags&65011712,h.return=e,h=h.sibling;else if((e.mode&qt)!==bt){h=e.actualDuration,g=e.selfBaseDuration;for(var E=e.child;E!==null;)a|=E.lanes|E.childLanes,u|=E.subtreeFlags,u|=E.flags,h+=E.actualDuration,g+=E.treeBaseDuration,E=E.sibling;e.actualDuration=h,e.treeBaseDuration=g}else for(h=e.child;h!==null;)a|=h.lanes|h.childLanes,u|=h.subtreeFlags,u|=h.flags,h.return=e,h=h.sibling;return e.subtreeFlags|=u,e.childLanes=a,t}function H0(e,t,a){var u=t.pendingProps;switch(lp(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return jn(t),null;case 1:return jn(t),null;case 3:return a=t.stateNode,u=null,e!==null&&(u=e.memoizedState.cache),t.memoizedState.cache!==u&&(t.flags|=2048),vi(ta,t),X(t),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(zc(t)?(Ds(),ur(t)):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Hd())),jn(t),null;case 26:var h=t.type,g=t.memoizedState;return e===null?(ur(t),g!==null?(jn(t),Rx(t,g)):(jn(t),zp(t,h,null,u,a))):g?g!==e.memoizedState?(ur(t),jn(t),Rx(t,g)):(jn(t),t.flags&=-16777217):(e=e.memoizedProps,e!==u&&ur(t),jn(t),zp(t,h,e,u,a)),null;case 27:if(fe(t),a=ge(jo.current),h=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==u&&ur(t);else{if(!u){if(t.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 jn(t),null}e=ie(),zc(t)?s0(t):(e=us(h,u,a,e,!0),t.stateNode=e,ur(t))}return jn(t),null;case 5:if(fe(t),h=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==u&&ur(t);else{if(!u){if(t.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 jn(t),null}var E=ie();if(zc(t))s0(t);else{switch(g=ge(jo.current),Qn(h,E.ancestorInfo),E=E.context,g=Th(g),E){case Wg:g=g.createElementNS(_t,h);break;case vE:g=g.createElementNS(Ot,h);break;default:switch(h){case"svg":g=g.createElementNS(_t,h);break;case"math":g=g.createElementNS(Ot,h);break;case"script":g=g.createElement("div"),g.innerHTML="<script><\/script>",g=g.removeChild(g.firstChild);break;case"select":g=typeof u.is=="string"?g.createElement("select",{is:u.is}):g.createElement("select"),u.multiple?g.multiple=!0:u.size&&(g.size=u.size);break;default:g=typeof u.is=="string"?g.createElement(h,{is:u.is}):g.createElement(h),h.indexOf("-")===-1&&(h!==h.toLowerCase()&&console.error("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",h),Object.prototype.toString.call(g)!=="[object HTMLUnknownElement]"||Ao.call(f4,h)||(f4[h]=!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.",h)))}}g[Wn]=t,g[Ga]=u;e:for(E=t.child;E!==null;){if(E.tag===5||E.tag===6)g.appendChild(E.stateNode);else if(E.tag!==4&&E.tag!==27&&E.child!==null){E.child.return=E,E=E.child;continue}if(E===t)break e;for(;E.sibling===null;){if(E.return===null||E.return===t)break e;E=E.return}E.sibling.return=E.return,E=E.sibling}t.stateNode=g;e:switch(Kn(g,h,u),h){case"button":case"input":case"select":case"textarea":u=!!u.autoFocus;break e;case"img":u=!0;break e;default:u=!1}u&&ur(t)}}return jn(t),zp(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,a),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==u&&ur(t);else{if(typeof u!="string"&&t.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(e=ge(jo.current),a=ie(),zc(t)){if(e=t.stateNode,a=t.memoizedProps,h=!oc,u=null,g=Ya,g!==null)switch(g.tag){case 3:h&&(h=f1(e,a,u),h!==null&&(Mc(t,0).serverProps=h));break;case 27:case 5:u=g.memoizedProps,h&&(h=f1(e,a,u),h!==null&&(Mc(t,0).serverProps=h))}e[Wn]=t,e=!!(e.nodeValue===a||u!==null&&u.suppressHydrationWarning===!0||ub(e.nodeValue,a)),e||Yo(t,!0)}else h=a.ancestorInfo.current,h!=null&&ko(u,h.tag,a.ancestorInfo.implicitRootScope),e=Th(e).createTextNode(u),e[Wn]=t,t.stateNode=e}return jn(t),null;case 31:if(a=t.memoizedState,e===null||e.memoizedState!==null){if(u=zc(t),a!==null){if(e===null){if(!u)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error("Expected to have a hydrated activity instance. This error is likely caused by a bug in React. Please file an issue.");e[Wn]=t,jn(t),(t.mode&qt)!==bt&&a!==null&&(e=t.child,e!==null&&(t.treeBaseDuration-=e.treeBaseDuration))}else Ds(),zs(),(t.flags&128)===0&&(a=t.memoizedState=null),t.flags|=4,jn(t),(t.mode&qt)!==bt&&a!==null&&(e=t.child,e!==null&&(t.treeBaseDuration-=e.treeBaseDuration));e=!1}else a=Hd(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e)return t.flags&256?(Zl(t),t):(Zl(t),null);if((t.flags&128)!==0)throw Error("Client rendering an Activity suspended it again. This is a bug in React.")}return jn(t),null;case 13:if(u=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(h=u,g=zc(t),h!==null&&h.dehydrated!==null){if(e===null){if(!g)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(g=t.memoizedState,g=g!==null?g.dehydrated:null,!g)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");g[Wn]=t,jn(t),(t.mode&qt)!==bt&&h!==null&&(h=t.child,h!==null&&(t.treeBaseDuration-=h.treeBaseDuration))}else Ds(),zs(),(t.flags&128)===0&&(h=t.memoizedState=null),t.flags|=4,jn(t),(t.mode&qt)!==bt&&h!==null&&(h=t.child,h!==null&&(t.treeBaseDuration-=h.treeBaseDuration));h=!1}else h=Hd(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=h),h=!0;if(!h)return t.flags&256?(Zl(t),t):(Zl(t),null)}return Zl(t),(t.flags&128)!==0?(t.lanes=a,(t.mode&qt)!==bt&&Nc(t),t):(a=u!==null,e=e!==null&&e.memoizedState!==null,a&&(u=t.child,h=null,u.alternate!==null&&u.alternate.memoizedState!==null&&u.alternate.memoizedState.cachePool!==null&&(h=u.alternate.memoizedState.cachePool.pool),g=null,u.memoizedState!==null&&u.memoizedState.cachePool!==null&&(g=u.memoizedState.cachePool.pool),g!==h&&(u.flags|=2048)),a!==e&&a&&(t.child.flags|=8192),cf(t,t.updateQueue),jn(t),(t.mode&qt)!==bt&&a&&(e=t.child,e!==null&&(t.treeBaseDuration-=e.treeBaseDuration)),null);case 4:return X(t),e===null&&Zs(t.stateNode.containerInfo),jn(t),null;case 10:return vi(t.type,t),jn(t),null;case 19:if(te(Fl,t),u=t.memoizedState,u===null)return jn(t),null;if(h=(t.flags&128)!==0,g=u.rendering,g===null)if(h)uf(u,!1);else{if(bl!==xu||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(g=$c(e),g!==null){for(t.flags|=128,uf(u,!1),e=g.updateQueue,t.updateQueue=e,cf(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)o0(a,e),a=a.sibling;return ae(Fl,Fl.current&Vg|fv,t),Kt&&bi(t,u.treeForkCount),t.child}e=e.sibling}u.tail!==null&&ea()>iE&&(t.flags|=128,h=!0,uf(u,!1),t.lanes=4194304)}else{if(!h)if(e=$c(g),e!==null){if(t.flags|=128,h=!0,e=e.updateQueue,t.updateQueue=e,cf(t,e),uf(u,!0),u.tail===null&&u.tailMode==="hidden"&&!g.alternate&&!Kt)return jn(t),null}else 2*ea()-u.renderingStartTime>iE&&a!==536870912&&(t.flags|=128,h=!0,uf(u,!1),t.lanes=4194304);u.isBackwards?(g.sibling=t.child,t.child=g):(e=u.last,e!==null?e.sibling=g:t.child=g,u.last=g)}return u.tail!==null?(e=u.tail,u.rendering=e,u.tail=e.sibling,u.renderingStartTime=ea(),e.sibling=null,a=Fl.current,a=h?a&Vg|fv:a&Vg,ae(Fl,a,t),Kt&&bi(t,u.treeForkCount),e):(jn(t),null);case 22:case 23:return Zl(t),Ci(t),u=t.memoizedState!==null,e!==null?e.memoizedState!==null!==u&&(t.flags|=8192):u&&(t.flags|=8192),u?(a&536870912)!==0&&(t.flags&128)===0&&(jn(t),t.subtreeFlags&6&&(t.flags|=8192)):jn(t),a=t.updateQueue,a!==null&&cf(t,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),u=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(u=t.memoizedState.cachePool.pool),u!==a&&(t.flags|=2048),e!==null&&te(Qh,t),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),vi(ta,t),jn(t),null;case 25:return null;case 30:return null}throw Error("Unknown unit of work tag ("+t.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function Nx(e,t){switch(lp(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&qt)!==bt&&Nc(t),t):null;case 3:return vi(ta,t),X(t),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return fe(t),null;case 31:if(t.memoizedState!==null){if(Zl(t),t.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");zs()}return e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&qt)!==bt&&Nc(t),t):null;case 13:if(Zl(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");zs()}return e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&qt)!==bt&&Nc(t),t):null;case 19:return te(Fl,t),null;case 4:return X(t),null;case 10:return vi(t.type,t),null;case 22:case 23:return Zl(t),Ci(t),e!==null&&te(Qh,t),e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&qt)!==bt&&Nc(t),t):null;case 24:return vi(ta,t),null;case 25:return null;default:return null}}function U0(e,t){switch(lp(t),t.tag){case 3:vi(ta,t),X(t);break;case 26:case 27:case 5:fe(t);break;case 4:X(t);break;case 31:t.memoizedState!==null&&Zl(t);break;case 13:Zl(t);break;case 19:te(Fl,t);break;case 10:vi(t.type,t);break;case 22:case 23:Zl(t),Ci(t),e!==null&&te(Qh,t);break;case 24:vi(ta,t)}}function fr(e){return(e.mode&qt)!==bt}function _x(e,t){fr(e)?(ml(),os(t,e),Na()):os(t,e)}function Dp(e,t,a){fr(e)?(ml(),Is(a,e,t),Na()):Is(a,e,t)}function os(e,t){try{var a=t.updateQueue,u=a!==null?a.lastEffect:null;if(u!==null){var h=u.next;a=h;do{if((a.tag&e)===e&&(u=void 0,(e&Ro)!==Q1&&(Zg=!0),u=ze(t,v9,a),(e&Ro)!==Q1&&(Zg=!1),u!==void 0&&typeof u!="function")){var g=void 0;g=(a.tag&Li)!==0?"useLayoutEffect":(a.tag&Ro)!==0?"useInsertionEffect":"useEffect";var E=void 0;E=u===null?" You returned null. If your effect does not require clean up, return undefined (or nothing).":typeof u.then=="function"?`
232
-
233
- It looks like you wrote `+g+`(async () => ...) or returned a Promise. Instead, write the async function inside your effect and call it immediately:
234
-
235
- `+g+`(() => {
236
- async function fetchData() {
237
- // You can await here
238
- const response = await MyAPI.getData(someId);
239
- // ...
240
- }
241
- fetchData();
242
- }, [someId]); // Or [] if effect doesn't need props or state
243
-
244
- Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fetching`:" You returned: "+u,ze(t,function(w,$){console.error("%s must not return anything besides a function, which is used for clean-up.%s",w,$)},g,E)}a=a.next}while(a!==h)}}catch(w){Nt(t,t.return,w)}}function Is(e,t,a){try{var u=t.updateQueue,h=u!==null?u.lastEffect:null;if(h!==null){var g=h.next;u=g;do{if((u.tag&e)===e){var E=u.inst,w=E.destroy;w!==void 0&&(E.destroy=void 0,(e&Ro)!==Q1&&(Zg=!0),h=t,ze(h,S9,h,a,w),(e&Ro)!==Q1&&(Zg=!1))}u=u.next}while(u!==g)}}catch($){Nt(t,t.return,$)}}function uh(e,t){fr(e)?(ml(),os(t,e),Na()):os(t,e)}function Rp(e,t,a){fr(e)?(ml(),Is(a,e,t),Na()):Is(a,e,t)}function L0(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;e.type.defaultProps||"ref"in e.memoizedProps||Gg||(a.props!==e.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.",V(e)||"instance"),a.state!==e.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.",V(e)||"instance"));try{ze(e,Ju,t,a)}catch(u){Nt(e,e.return,u)}}}function fh(e,t,a){return e.getSnapshotBeforeUpdate(t,a)}function $x(e,t){var a=t.memoizedProps,u=t.memoizedState;t=e.stateNode,e.type.defaultProps||"ref"in e.memoizedProps||Gg||(t.props!==e.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.",V(e)||"instance"),t.state!==e.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.",V(e)||"instance"));try{var h=cr(e.type,a),g=ze(e,fh,t,h,u);a=FR,g!==void 0||a.has(e.type)||(a.add(e.type),ze(e,function(){console.error("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",V(e))})),t.__reactInternalSnapshotBeforeUpdate=g}catch(E){Nt(e,e.return,E)}}function Np(e,t,a){a.props=cr(e.type,e.memoizedProps),a.state=e.memoizedState,fr(e)?(ml(),ze(e,rR,e,t,a),Na()):ze(e,rR,e,t,a)}function Bx(e){var t=e.ref;if(t!==null){switch(e.tag){case 26:case 27:case 5:var a=e.stateNode;break;case 30:a=e.stateNode;break;default:a=e.stateNode}if(typeof t=="function")if(fr(e))try{ml(),e.refCleanup=t(a)}finally{Na()}else e.refCleanup=t(a);else typeof t=="string"?console.error("String refs are no longer supported."):t.hasOwnProperty("current")||console.error("Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",V(e)),t.current=a}}function Pc(e,t){try{ze(e,Bx,e)}catch(a){Nt(e,t,a)}}function Ko(e,t){var a=e.ref,u=e.refCleanup;if(a!==null)if(typeof u=="function")try{if(fr(e))try{ml(),ze(e,u)}finally{Na(e)}else ze(e,u)}catch(h){Nt(e,t,h)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a=="function")try{if(fr(e))try{ml(),ze(e,a,null)}finally{Na(e)}else ze(e,a,null)}catch(h){Nt(e,t,h)}else a.current=null}function q0(e,t,a,u){var h=e.memoizedProps,g=h.id,E=h.onCommit;h=h.onRender,t=t===null?"mount":"update",k1&&(t="nested-update"),typeof h=="function"&&h(g,t,e.actualDuration,e.treeBaseDuration,e.actualStartTime,a),typeof E=="function"&&E(g,t,u,a)}function Hx(e,t,a,u){var h=e.memoizedProps;e=h.id,h=h.onPostCommit,t=t===null?"mount":"update",k1&&(t="nested-update"),typeof h=="function"&&h(e,t,u,a)}function Gs(e){var t=e.type,a=e.memoizedProps,u=e.stateNode;try{ze(e,Zx,u,t,a,e)}catch(h){Nt(e,e.return,h)}}function _p(e,t,a){try{ze(e,eg,e.stateNode,e.type,a,t,e)}catch(u){Nt(e,e.return,u)}}function V0(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Ks(e.type)||e.tag===4}function $p(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||V0(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Ks(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function ff(e,t,a){var u=e.tag;if(u===5||u===6)e=e.stateNode,t?(Kx(a),(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(e,t)):(Kx(a),t=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,t.appendChild(e),a=a._reactRootContainer,a!=null||t.onclick!==null||(t.onclick=Io));else if(u!==4&&(u===27&&Ks(e.type)&&(a=e.stateNode,t=null),e=e.child,e!==null))for(ff(e,t,a),e=e.sibling;e!==null;)ff(e,t,a),e=e.sibling}function dh(e,t,a){var u=e.tag;if(u===5||u===6)e=e.stateNode,t?a.insertBefore(e,t):a.appendChild(e);else if(u!==4&&(u===27&&Ks(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(dh(e,t,a),e=e.sibling;e!==null;)dh(e,t,a),e=e.sibling}function F0(e){for(var t,a=e.return;a!==null;){if(V0(a)){t=a;break}a=a.return}if(t==null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");switch(t.tag){case 27:t=t.stateNode,a=$p(e),dh(e,a,t);break;case 5:a=t.stateNode,t.flags&32&&(tg(a),t.flags&=-33),t=$p(e),dh(e,t,a);break;case 3:case 4:t=t.stateNode.containerInfo,a=$p(e),ff(e,a,t);break;default:throw Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.")}}function k0(e){var t=e.stateNode,a=e.memoizedProps;try{ze(e,vr,e.type,a,t,e)}catch(u){Nt(e,e.return,u)}}function I0(e,t){return t.tag===31?(t=t.memoizedState,e.memoizedState!==null&&t===null):t.tag===13?(e=e.memoizedState,t=t.memoizedState,e!==null&&e.dehydrated!==null&&(t===null||t.dehydrated===null)):t.tag===3?e.memoizedState.isDehydrated&&(t.flags&256)===0:!1}function v2(e,t){if(e=e.containerInfo,MO=CE,e=Zm(e),Jy(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var u=a.getSelection&&a.getSelection();if(u&&u.rangeCount!==0){a=u.anchorNode;var h=u.anchorOffset,g=u.focusNode;u=u.focusOffset;try{a.nodeType,g.nodeType}catch{a=null;break e}var E=0,w=-1,$=-1,q=0,oe=0,se=e,J=null;t:for(;;){for(var xe;se!==a||h!==0&&se.nodeType!==3||(w=E+h),se!==g||u!==0&&se.nodeType!==3||($=E+u),se.nodeType===3&&(E+=se.nodeValue.length),(xe=se.firstChild)!==null;)J=se,se=xe;for(;;){if(se===e)break t;if(J===a&&++q===h&&(w=E),J===g&&++oe===u&&($=E),(xe=se.nextSibling)!==null)break;se=J,J=se.parentNode}se=xe}a=w===-1||$===-1?null:{start:w,end:$}}else a=null}a=a||{start:0,end:0}}else a=null;for(zO={focusedElem:e,selectionRange:a},CE=!1,wa=t;wa!==null;)if(t=wa,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,wa=e;else for(;wa!==null;){switch(e=t=wa,a=e.alternate,h=e.flags,e.tag){case 0:if((h&4)!==0&&(e=e.updateQueue,e=e!==null?e.events:null,e!==null))for(a=0;a<e.length;a++)h=e[a],h.ref.impl=h.nextImpl;break;case 11:case 15:break;case 1:(h&1024)!==0&&a!==null&&$x(e,a);break;case 3:if((h&1024)!==0){if(e=e.stateNode.containerInfo,a=e.nodeType,a===9)Tf(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Tf(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((h&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(e=t.sibling,e!==null){e.return=t.return,wa=e;break}wa=t.return}}function Bp(e,t,a){var u=Zn(),h=Po(),g=po(),E=Qo(),w=a.flags;switch(a.tag){case 0:case 11:case 15:Eo(e,a),w&4&&_x(a,Li|Rr);break;case 1:if(Eo(e,a),w&4)if(e=a.stateNode,t===null)a.type.defaultProps||"ref"in a.memoizedProps||Gg||(e.props!==a.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.",V(a)||"instance"),e.state!==a.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.",V(a)||"instance")),fr(a)?(ml(),ze(a,J2,a,e),Na()):ze(a,J2,a,e);else{var $=cr(a.type,t.memoizedProps);t=t.memoizedState,a.type.defaultProps||"ref"in a.memoizedProps||Gg||(e.props!==a.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.",V(a)||"instance"),e.state!==a.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.",V(a)||"instance")),fr(a)?(ml(),ze(a,aR,a,e,$,t,e.__reactInternalSnapshotBeforeUpdate),Na()):ze(a,aR,a,e,$,t,e.__reactInternalSnapshotBeforeUpdate)}w&64&&L0(a),w&512&&Pc(a,a.return);break;case 3:if(t=er(),Eo(e,a),w&64&&(w=a.updateQueue,w!==null)){if($=null,a.child!==null)switch(a.child.tag){case 27:case 5:$=a.child.stateNode;break;case 1:$=a.child.stateNode}try{ze(a,Ju,w,$)}catch(oe){Nt(a,a.return,oe)}}e.effectDuration+=Xu(t);break;case 27:t===null&&w&4&&k0(a);case 26:case 5:if(Eo(e,a),t===null){if(w&4)Gs(a);else if(w&64){e=a.type,t=a.memoizedProps,$=a.stateNode;try{ze(a,Jx,$,e,t,a)}catch(oe){Nt(a,a.return,oe)}}}w&512&&Pc(a,a.return);break;case 12:if(w&4){w=er(),Eo(e,a),e=a.stateNode,e.effectDuration+=Ra(w);try{ze(a,q0,a,t,Xf,e.effectDuration)}catch(oe){Nt(a,a.return,oe)}}else Eo(e,a);break;case 31:Eo(e,a),w&4&&Y0(e,a);break;case 13:Eo(e,a),w&4&&X0(e,a),w&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(w=rs.bind(null,a),c1(e,w))));break;case 22:if(w=a.memoizedState!==null||Su,!w){t=t!==null&&t.memoizedState!==null||oa,$=Su;var q=oa;Su=w,(oa=t)&&!q?(ji(e,a,(a.subtreeFlags&8772)!==0),(a.mode&qt)!==bt&&0<=ot&&0<=pt&&.05<pt-ot&&Jm(a,ot,pt)):Eo(e,a),Su=$,oa=q}break;case 30:break;default:Eo(e,a)}(a.mode&qt)!==bt&&0<=ot&&0<=pt&&((jl||.05<yl)&&yi(a,ot,pt,yl,cl),a.alternate===null&&a.return!==null&&a.return.alternate!==null&&.05<pt-ot&&(I0(a.return.alternate,a.return)||Go(a,ot,pt,"Mount"))),Pl(u),mo(h),cl=g,jl=E}function Ol(e){var t=e.alternate;t!==null&&(e.alternate=null,Ol(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Nn(t)),e.stateNode=null,e._debugOwner=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Gn(e,t,a){for(a=a.child;a!==null;)G0(e,t,a),a=a.sibling}function G0(e,t,a){if(ql&&typeof ql.onCommitFiberUnmount=="function")try{ql.onCommitFiberUnmount(ru,a)}catch(q){xr||(xr=!0,console.error("React instrumentation encountered an error: %o",q))}var u=Zn(),h=Po(),g=po(),E=Qo();switch(a.tag){case 26:oa||Ko(a,t),Gn(e,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(e=a.stateNode,e.parentNode.removeChild(e));break;case 27:oa||Ko(a,t);var w=ia,$=li;Ks(a.type)&&(ia=a.stateNode,li=!1),Gn(e,t,a),ze(a,fs,a.stateNode),ia=w,li=$;break;case 5:oa||Ko(a,t);case 6:if(w=ia,$=li,ia=null,Gn(e,t,a),ia=w,li=$,ia!==null)if(li)try{ze(a,e1,ia,a.stateNode)}catch(q){Nt(a,t,q)}else try{ze(a,Wx,ia,a.stateNode)}catch(q){Nt(a,t,q)}break;case 18:ia!==null&&(li?(e=ia,Wc(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),lu(e)):Wc(ia,a.stateNode));break;case 4:w=ia,$=li,ia=a.stateNode.containerInfo,li=!0,Gn(e,t,a),ia=w,li=$;break;case 0:case 11:case 14:case 15:Is(Ro,a,t),oa||Dp(a,t,Li),Gn(e,t,a);break;case 1:oa||(Ko(a,t),w=a.stateNode,typeof w.componentWillUnmount=="function"&&Np(a,t,w)),Gn(e,t,a);break;case 21:Gn(e,t,a);break;case 22:oa=(w=oa)||a.memoizedState!==null,Gn(e,t,a),oa=w;break;default:Gn(e,t,a)}(a.mode&qt)!==bt&&0<=ot&&0<=pt&&(jl||.05<yl)&&yi(a,ot,pt,yl,cl),Pl(u),mo(h),cl=g,jl=E}function Y0(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{ze(t,ng,e)}catch(a){Nt(t,t.return,a)}}}function X0(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{ze(t,mb,e)}catch(a){Nt(t,t.return,a)}}function Ux(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new kR),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new kR),t;default:throw Error("Unexpected Suspense handler tag ("+e.tag+"). This is a bug in React.")}}function Ys(e,t){var a=Ux(e);t.forEach(function(u){if(!a.has(u)){if(a.add(u),Er)if(Yg!==null&&Xg!==null)yf(Xg,Yg);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");var h=Jc.bind(null,e,u);u.then(h,h)}})}function Ua(e,t){var a=t.deletions;if(a!==null)for(var u=0;u<a.length;u++){var h=e,g=t,E=a[u],w=Zn(),$=g;e:for(;$!==null;){switch($.tag){case 27:if(Ks($.type)){ia=$.stateNode,li=!1;break e}break;case 5:ia=$.stateNode,li=!1;break e;case 3:case 4:ia=$.stateNode.containerInfo,li=!0;break e}$=$.return}if(ia===null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");G0(h,g,E),ia=null,li=!1,(E.mode&qt)!==bt&&0<=ot&&0<=pt&&.05<pt-ot&&Go(E,ot,pt,"Unmount"),Pl(w),h=E,g=h.alternate,g!==null&&(g.return=null),h.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)hh(t,e),t=t.sibling}function hh(e,t){var a=Zn(),u=Po(),h=po(),g=Qo(),E=e.alternate,w=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Ua(t,e),La(e),w&4&&(Is(Ro|Rr,e,e.return),os(Ro|Rr,e),Dp(e,e.return,Li|Rr));break;case 1:if(Ua(t,e),La(e),w&512&&(oa||E===null||Ko(E,E.return)),w&64&&Su&&(w=e.updateQueue,w!==null&&(E=w.callbacks,E!==null))){var $=w.shared.hiddenCallbacks;w.shared.hiddenCallbacks=$===null?E:$.concat(E)}break;case 26:if($=ys,Ua(t,e),La(e),w&512&&(oa||E===null||Ko(E,E.return)),w&4){var q=E!==null?E.memoizedState:null;if(w=e.memoizedState,E===null)if(w===null)if(e.stateNode===null){e:{w=e.type,E=e.memoizedProps,$=$.ownerDocument||$;t:switch(w){case"title":q=$.getElementsByTagName("title")[0],(!q||q[Lf]||q[Wn]||q.namespaceURI===_t||q.hasAttribute("itemprop"))&&(q=$.createElement(w),$.head.insertBefore(q,$.querySelector("head > title"))),Kn(q,w,E),q[Wn]=e,rn(q),w=q;break e;case"link":var oe=jf("link","href",$).get(w+(E.href||""));if(oe){for(var se=0;se<oe.length;se++)if(q=oe[se],q.getAttribute("href")===(E.href==null||E.href===""?null:E.href)&&q.getAttribute("rel")===(E.rel==null?null:E.rel)&&q.getAttribute("title")===(E.title==null?null:E.title)&&q.getAttribute("crossorigin")===(E.crossOrigin==null?null:E.crossOrigin)){oe.splice(se,1);break t}}q=$.createElement(w),Kn(q,w,E),$.head.appendChild(q);break;case"meta":if(oe=jf("meta","content",$).get(w+(E.content||""))){for(se=0;se<oe.length;se++)if(q=oe[se],$e(E.content,"content"),q.getAttribute("content")===(E.content==null?null:""+E.content)&&q.getAttribute("name")===(E.name==null?null:E.name)&&q.getAttribute("property")===(E.property==null?null:E.property)&&q.getAttribute("http-equiv")===(E.httpEquiv==null?null:E.httpEquiv)&&q.getAttribute("charset")===(E.charSet==null?null:E.charSet)){oe.splice(se,1);break t}}q=$.createElement(w),Kn(q,w,E),$.head.appendChild(q);break;default:throw Error('getNodesForType encountered a type it did not expect: "'+w+'". This is a bug in React.')}q[Wn]=e,rn(q),w=q}e.stateNode=w}else h1($,e.type,e.stateNode);else e.stateNode=og($,w,e.memoizedProps);else q!==w?(q===null?E.stateNode!==null&&(E=E.stateNode,E.parentNode.removeChild(E)):q.count--,w===null?h1($,e.type,e.stateNode):og($,w,e.memoizedProps)):w===null&&e.stateNode!==null&&_p(e,e.memoizedProps,E.memoizedProps)}break;case 27:Ua(t,e),La(e),w&512&&(oa||E===null||Ko(E,E.return)),E!==null&&w&4&&_p(e,e.memoizedProps,E.memoizedProps);break;case 5:if(Ua(t,e),La(e),w&512&&(oa||E===null||Ko(E,E.return)),e.flags&32){$=e.stateNode;try{ze(e,tg,$)}catch(Ze){Nt(e,e.return,Ze)}}w&4&&e.stateNode!=null&&($=e.memoizedProps,_p(e,$,E!==null?E.memoizedProps:$)),w&1024&&(uO=!0,e.type!=="form"&&console.error("Unexpected host component type. Expected a form. This is a bug in React."));break;case 6:if(Ua(t,e),La(e),w&4){if(e.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.");w=e.memoizedProps,E=E!==null?E.memoizedProps:w,$=e.stateNode;try{ze(e,S2,$,E,w)}catch(Ze){Nt(e,e.return,Ze)}}break;case 3:if($=er(),SE=null,q=ys,ys=lg(t.containerInfo),Ua(t,e),ys=q,La(e),w&4&&E!==null&&E.memoizedState.isDehydrated)try{ze(e,hb,t.containerInfo)}catch(Ze){Nt(e,e.return,Ze)}uO&&(uO=!1,Lx(e)),t.effectDuration+=Xu($);break;case 4:w=ys,ys=lg(e.stateNode.containerInfo),Ua(t,e),La(e),ys=w;break;case 12:w=er(),Ua(t,e),La(e),e.stateNode.effectDuration+=Ra(w);break;case 31:Ua(t,e),La(e),w&4&&(w=e.updateQueue,w!==null&&(e.updateQueue=null,Ys(e,w)));break;case 13:Ua(t,e),La(e),e.child.flags&8192&&e.memoizedState!==null!=(E!==null&&E.memoizedState!==null)&&(oE=ea()),w&4&&(w=e.updateQueue,w!==null&&(e.updateQueue=null,Ys(e,w)));break;case 22:$=e.memoizedState!==null;var J=E!==null&&E.memoizedState!==null,xe=Su,ke=oa;if(Su=xe||$,oa=ke||J,Ua(t,e),oa=ke,Su=xe,J&&!$&&!xe&&!ke&&(e.mode&qt)!==bt&&0<=ot&&0<=pt&&.05<pt-ot&&Jm(e,ot,pt),La(e),w&8192)e:for(t=e.stateNode,t._visibility=$?t._visibility&~Qb:t._visibility|Qb,!$||E===null||J||Su||oa||(Xs(e),(e.mode&qt)!==bt&&0<=ot&&0<=pt&&.05<pt-ot&&Go(e,ot,pt,"Disconnect")),E=null,t=e;;){if(t.tag===5||t.tag===26){if(E===null){J=E=t;try{q=J.stateNode,$?ze(J,n1,q):ze(J,o1,J.stateNode,J.memoizedProps)}catch(Ze){Nt(J,J.return,Ze)}}}else if(t.tag===6){if(E===null){J=t;try{oe=J.stateNode,$?ze(J,l1,oe):ze(J,i1,oe,J.memoizedProps)}catch(Ze){Nt(J,J.return,Ze)}}}else if(t.tag===18){if(E===null){J=t;try{se=J.stateNode,$?ze(J,t1,se):ze(J,a1,J.stateNode)}catch(Ze){Nt(J,J.return,Ze)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;E===t&&(E=null),t=t.return}E===t&&(E=null),t.sibling.return=t.return,t=t.sibling}w&4&&(w=e.updateQueue,w!==null&&(E=w.retryQueue,E!==null&&(w.retryQueue=null,Ys(e,E))));break;case 19:Ua(t,e),La(e),w&4&&(w=e.updateQueue,w!==null&&(e.updateQueue=null,Ys(e,w)));break;case 30:break;case 21:break;default:Ua(t,e),La(e)}(e.mode&qt)!==bt&&0<=ot&&0<=pt&&((jl||.05<yl)&&yi(e,ot,pt,yl,cl),e.alternate===null&&e.return!==null&&e.return.alternate!==null&&.05<pt-ot&&(I0(e.return.alternate,e.return)||Go(e,ot,pt,"Mount"))),Pl(a),mo(u),cl=h,jl=g}function La(e){var t=e.flags;if(t&2){try{ze(e,F0,e)}catch(a){Nt(e,e.return,a)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Lx(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Lx(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Eo(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Bp(e,t.alternate,t),t=t.sibling}function Hp(e){var t=Zn(),a=Po(),u=po(),h=Qo();switch(e.tag){case 0:case 11:case 14:case 15:Dp(e,e.return,Li),Xs(e);break;case 1:Ko(e,e.return);var g=e.stateNode;typeof g.componentWillUnmount=="function"&&Np(e,e.return,g),Xs(e);break;case 27:ze(e,fs,e.stateNode);case 26:case 5:Ko(e,e.return),Xs(e);break;case 22:e.memoizedState===null&&Xs(e);break;case 30:Xs(e);break;default:Xs(e)}(e.mode&qt)!==bt&&0<=ot&&0<=pt&&(jl||.05<yl)&&yi(e,ot,pt,yl,cl),Pl(t),mo(a),cl=u,jl=h}function Xs(e){for(e=e.child;e!==null;)Hp(e),e=e.sibling}function P0(e,t,a,u){var h=Zn(),g=Po(),E=po(),w=Qo(),$=a.flags;switch(a.tag){case 0:case 11:case 15:ji(e,a,u),_x(a,Li);break;case 1:if(ji(e,a,u),t=a.stateNode,typeof t.componentDidMount=="function"&&ze(a,J2,a,t),t=a.updateQueue,t!==null){e=a.stateNode;try{ze(a,p0,t,e)}catch(q){Nt(a,a.return,q)}}u&&$&64&&L0(a),Pc(a,a.return);break;case 27:k0(a);case 26:case 5:ji(e,a,u),u&&t===null&&$&4&&Gs(a),Pc(a,a.return);break;case 12:if(u&&$&4){$=er(),ji(e,a,u),u=a.stateNode,u.effectDuration+=Ra($);try{ze(a,q0,a,t,Xf,u.effectDuration)}catch(q){Nt(a,a.return,q)}}else ji(e,a,u);break;case 31:ji(e,a,u),u&&$&4&&Y0(e,a);break;case 13:ji(e,a,u),u&&$&4&&X0(e,a);break;case 22:a.memoizedState===null&&ji(e,a,u),Pc(a,a.return);break;case 30:break;default:ji(e,a,u)}(a.mode&qt)!==bt&&0<=ot&&0<=pt&&(jl||.05<yl)&&yi(a,ot,pt,yl,cl),Pl(h),mo(g),cl=E,jl=w}function ji(e,t,a){for(a=a&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;)P0(e,t.alternate,t,a),t=t.sibling}function mh(e,t){var a=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==a&&(e!=null&&Dc(e),a!=null&&qd(a))}function ph(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(Dc(t),e!=null&&qd(e))}function Co(e,t,a,u,h){if(t.subtreeFlags&10256||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child))for(t=t.child;t!==null;){var g=t.sibling;Q0(e,t,a,u,g!==null?g.actualStartTime:h),t=g}}function Q0(e,t,a,u,h){var g=Zn(),E=Po(),w=po(),$=Qo(),q=kf,oe=t.flags;switch(t.tag){case 0:case 11:case 15:(t.mode&qt)!==bt&&0<t.actualStartTime&&(t.flags&1)!==0&&Km(t,t.actualStartTime,h,ma,a),Co(e,t,a,u,h),oe&2048&&uh(t,No|Rr);break;case 1:(t.mode&qt)!==bt&&0<t.actualStartTime&&((t.flags&128)!==0?Wy(t,t.actualStartTime,h,[]):(t.flags&1)!==0&&Km(t,t.actualStartTime,h,ma,a)),Co(e,t,a,u,h);break;case 3:var se=er(),J=ma;ma=t.alternate!==null&&t.alternate.memoizedState.isDehydrated&&(t.flags&256)===0,Co(e,t,a,u,h),ma=J,oe&2048&&(a=null,t.alternate!==null&&(a=t.alternate.memoizedState.cache),u=t.memoizedState.cache,u!==a&&(Dc(u),a!=null&&qd(a))),e.passiveEffectDuration+=Xu(se);break;case 12:if(oe&2048){oe=er(),Co(e,t,a,u,h),e=t.stateNode,e.passiveEffectDuration+=Ra(oe);try{ze(t,Hx,t,t.alternate,Xf,e.passiveEffectDuration)}catch(xe){Nt(t,t.return,xe)}}else Co(e,t,a,u,h);break;case 31:oe=ma,se=t.alternate!==null?t.alternate.memoizedState:null,J=t.memoizedState,se!==null&&J===null?(J=t.deletions,J!==null&&0<J.length&&J[0].tag===18?(ma=!1,se=se.hydrationErrors,se!==null&&Wy(t,t.actualStartTime,h,se)):ma=!0):ma=!1,Co(e,t,a,u,h),ma=oe;break;case 13:oe=ma,se=t.alternate!==null?t.alternate.memoizedState:null,J=t.memoizedState,se===null||se.dehydrated===null||J!==null&&J.dehydrated!==null?ma=!1:(J=t.deletions,J!==null&&0<J.length&&J[0].tag===18?(ma=!1,se=se.hydrationErrors,se!==null&&Wy(t,t.actualStartTime,h,se)):ma=!0),Co(e,t,a,u,h),ma=oe;break;case 23:break;case 22:J=t.stateNode,se=t.alternate,t.memoizedState!==null?J._visibility&uu?Co(e,t,a,u,h):Qc(e,t,a,u,h):J._visibility&uu?Co(e,t,a,u,h):(J._visibility|=uu,Ps(e,t,a,u,(t.subtreeFlags&10256)!==0||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child),h),(t.mode&qt)===bt||ma||(e=t.actualStartTime,0<=e&&.05<h-e&&Jm(t,e,h),0<=ot&&0<=pt&&.05<pt-ot&&Jm(t,ot,pt))),oe&2048&&mh(se,t);break;case 24:Co(e,t,a,u,h),oe&2048&&ph(t.alternate,t);break;default:Co(e,t,a,u,h)}(t.mode&qt)!==bt&&((e=!ma&&t.alternate===null&&t.return!==null&&t.return.alternate!==null)&&(a=t.actualStartTime,0<=a&&.05<h-a&&Go(t,a,h,"Mount")),0<=ot&&0<=pt&&((jl||.05<yl)&&yi(t,ot,pt,yl,cl),e&&.05<pt-ot&&Go(t,ot,pt,"Mount"))),Pl(g),mo(E),cl=w,jl=$,kf=q}function Ps(e,t,a,u,h,g){for(h=h&&((t.subtreeFlags&10256)!==0||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child)),t=t.child;t!==null;){var E=t.sibling;gh(e,t,a,u,h,E!==null?E.actualStartTime:g),t=E}}function gh(e,t,a,u,h,g){var E=Zn(),w=Po(),$=po(),q=Qo(),oe=kf;h&&(t.mode&qt)!==bt&&0<t.actualStartTime&&(t.flags&1)!==0&&Km(t,t.actualStartTime,g,ma,a);var se=t.flags;switch(t.tag){case 0:case 11:case 15:Ps(e,t,a,u,h,g),uh(t,No);break;case 23:break;case 22:var J=t.stateNode;t.memoizedState!==null?J._visibility&uu?Ps(e,t,a,u,h,g):Qc(e,t,a,u,g):(J._visibility|=uu,Ps(e,t,a,u,h,g)),h&&se&2048&&mh(t.alternate,t);break;case 24:Ps(e,t,a,u,h,g),h&&se&2048&&ph(t.alternate,t);break;default:Ps(e,t,a,u,h,g)}(t.mode&qt)!==bt&&0<=ot&&0<=pt&&(jl||.05<yl)&&yi(t,ot,pt,yl,cl),Pl(E),mo(w),cl=$,jl=q,kf=oe}function Qc(e,t,a,u,h){if(t.subtreeFlags&10256||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child))for(var g=t.child;g!==null;){t=g.sibling;var E=e,w=a,$=u,q=t!==null?t.actualStartTime:h,oe=kf;(g.mode&qt)!==bt&&0<g.actualStartTime&&(g.flags&1)!==0&&Km(g,g.actualStartTime,q,ma,w);var se=g.flags;switch(g.tag){case 22:Qc(E,g,w,$,q),se&2048&&mh(g.alternate,g);break;case 24:Qc(E,g,w,$,q),se&2048&&ph(g.alternate,g);break;default:Qc(E,g,w,$,q)}kf=oe,g=t}}function Zc(e,t,a){if(e.subtreeFlags&pv)for(e=e.child;e!==null;)Up(e,t,a),e=e.sibling}function Up(e,t,a){switch(e.tag){case 26:Zc(e,t,a),e.flags&pv&&e.memoizedState!==null&&vb(a,ys,e.memoizedState,e.memoizedProps);break;case 5:Zc(e,t,a);break;case 3:case 4:var u=ys;ys=lg(e.stateNode.containerInfo),Zc(e,t,a),ys=u;break;case 22:e.memoizedState===null&&(u=e.alternate,u!==null&&u.memoizedState!==null?(u=pv,pv=16777216,Zc(e,t,a),pv=u):Zc(e,t,a));break;default:Zc(e,t,a)}}function Z0(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function To(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var u=t[a],h=Zn();wa=u,dr(u,e),(u.mode&qt)!==bt&&0<=ot&&0<=pt&&.05<pt-ot&&Go(u,ot,pt,"Unmount"),Pl(h)}Z0(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Lp(e),e=e.sibling}function Lp(e){var t=Zn(),a=Po(),u=po(),h=Qo();switch(e.tag){case 0:case 11:case 15:To(e),e.flags&2048&&Rp(e,e.return,No|Rr);break;case 3:var g=er();To(e),e.stateNode.passiveEffectDuration+=Xu(g);break;case 12:g=er(),To(e),e.stateNode.passiveEffectDuration+=Ra(g);break;case 22:g=e.stateNode,e.memoizedState!==null&&g._visibility&uu&&(e.return===null||e.return.tag!==13)?(g._visibility&=~uu,qp(e),(e.mode&qt)!==bt&&0<=ot&&0<=pt&&.05<pt-ot&&Go(e,ot,pt,"Disconnect")):To(e);break;default:To(e)}(e.mode&qt)!==bt&&0<=ot&&0<=pt&&(jl||.05<yl)&&yi(e,ot,pt,yl,cl),Pl(t),mo(a),jl=h,cl=u}function qp(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var u=t[a],h=Zn();wa=u,dr(u,e),(u.mode&qt)!==bt&&0<=ot&&0<=pt&&.05<pt-ot&&Go(u,ot,pt,"Unmount"),Pl(h)}Z0(e)}for(e=e.child;e!==null;)J0(e),e=e.sibling}function J0(e){var t=Zn(),a=Po(),u=po(),h=Qo();switch(e.tag){case 0:case 11:case 15:Rp(e,e.return,No),qp(e);break;case 22:var g=e.stateNode;g._visibility&uu&&(g._visibility&=~uu,qp(e));break;default:qp(e)}(e.mode&qt)!==bt&&0<=ot&&0<=pt&&(jl||.05<yl)&&yi(e,ot,pt,yl,cl),Pl(t),mo(a),jl=h,cl=u}function dr(e,t){for(;wa!==null;){var a=wa,u=a,h=t,g=Zn(),E=Po(),w=po(),$=Qo();switch(u.tag){case 0:case 11:case 15:Rp(u,h,No);break;case 23:case 22:u.memoizedState!==null&&u.memoizedState.cachePool!==null&&(h=u.memoizedState.cachePool.pool,h!=null&&Dc(h));break;case 24:qd(u.memoizedState.cache)}if((u.mode&qt)!==bt&&0<=ot&&0<=pt&&(jl||.05<yl)&&yi(u,ot,pt,yl,cl),Pl(g),mo(E),jl=$,cl=w,u=a.child,u!==null)u.return=a,wa=u;else e:for(a=e;wa!==null;){if(u=wa,g=u.sibling,E=u.return,Ol(u),u===a){wa=null;break e}if(g!==null){g.return=E,wa=g;break e}wa=E}}}function K0(){O9.forEach(function(e){return e()})}function W0(){var e=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0;return e||Ce.actQueue===null||console.error("The current testing environment is not configured to support act(...)"),e}function Ea(e){if((cn&pa)!==ja&&Ft!==0)return Ft&-Ft;var t=Ce.T;return t!==null?(t._updatedFibers||(t._updatedFibers=new Set),t._updatedFibers.add(e),cb()):nn()}function df(){if(oi===0)if((Ft&536870912)===0||Kt){var e=Lh;Lh<<=1,(Lh&3932160)===0&&(Lh=262144),oi=e}else oi=536870912;return e=Ui.current,e!==null&&(e.flags|=32),oi}function vt(e,t,a){if(Zg&&console.error("useInsertionEffect must not schedule updates."),xO&&(cE=!0),(e===kn&&(Dn===tm||Dn===nm)||e.cancelPendingCommit!==null)&&(hr(e,0),Wo(e,Ft,oi,!1)),Fe(e,a),(cn&pa)!==ja&&e===kn){if(Sr)switch(t.tag){case 0:case 11:case 15:e=It&&V(It)||"Unknown",a4.has(e)||(a4.add(e),t=V(t)||"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",t,e,e));break;case 1:l4||(console.error("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),l4=!0)}}else Er&&Bn(e,t,a),Sh(t),e===kn&&((cn&pa)===ja&&(td|=a),bl===Kf&&Wo(e,Ft,oi,!1)),to(e)}function qx(e,t,a){if((cn&(pa|qi))!==ja)throw Error("Should not already be working.");if(Ft!==0&&It!==null){var u=It,h=ea();switch(ZD){case bv:case tm:var g=tv;el&&((u=u._debugTask)?u.run(console.timeStamp.bind(console,"Suspended",g,h,Tr,void 0,"primary-light")):console.timeStamp("Suspended",g,h,Tr,void 0,"primary-light"));break;case nm:g=tv,el&&((u=u._debugTask)?u.run(console.timeStamp.bind(console,"Action",g,h,Tr,void 0,"primary-light")):console.timeStamp("Action",g,h,Tr,void 0,"primary-light"));break;default:el&&(u=h-tv,3>u||console.timeStamp("Blocked",tv,h,Tr,void 0,5>u?"primary-light":10>u?"primary":100>u?"primary-dark":"error"))}}g=(a=!a&&(t&127)===0&&(t&e.expiredLanes)===0||wt(e,t))?is(e,t):pf(e,t,!0);var E=a;do{if(g===xu){Pg&&!a&&Wo(e,t,0,!1),t=Dn,tv=na(),ZD=t;break}else{if(u=ea(),h=e.current.alternate,E&&!Fx(h)){gi(t),h=Oa,g=u,!el||g<=h||($l?$l.run(console.timeStamp.bind(console,"Teared Render",h,g,an,Wt,"error")):console.timeStamp("Teared Render",h,g,an,Wt,"error")),Qs(t,u),g=pf(e,t,!1),E=!1;continue}if(g===em){if(E=t,e.errorRecoveryDisabledLanes&E)var w=0;else w=e.pendingLanes&-536870913,w=w!==0?w:w&536870912?536870912:0;if(w!==0){gi(t),e0(Oa,u,t,$l),Qs(t,u),t=w;e:{u=e,g=E,E=Sv;var $=u.current.memoizedState.isDehydrated;if($&&(hr(u,w).flags|=256),w=pf(u,w,!1),w!==em){if(hO&&!$){u.errorRecoveryDisabledLanes|=g,td|=g,g=Kf;break e}u=_o,_o=E,u!==null&&(_o===null?_o=u:_o.push.apply(_o,u))}g=w}if(E=!1,g!==em)continue;u=ea()}}if(g===yv){gi(t),e0(Oa,u,t,$l),Qs(t,u),hr(e,0),Wo(e,t,0,!0);break}e:{switch(a=e,g){case xu:case yv:throw Error("Root did not complete. This is a bug in React.");case Kf:if((t&4194048)!==t)break;case tE:gi(t),gx(Oa,u,t,$l),Qs(t,u),h=t,(h&127)!==0?q1=u:(h&4194048)!==0&&(V1=u),Wo(a,t,oi,!Wf);break e;case em:_o=null;break;case eE:case IR:break;default:throw Error("Unknown root exit status.")}if(Ce.actQueue!==null)qn(a,h,t,_o,xv,aE,oi,td,lm,g,null,null,Oa,u);else{if((t&62914560)===t&&(E=oE+XR-ea(),10<E)){if(Wo(a,t,oi,!Wf),rt(a,0,!0)!==0)break e;bs=t,a.timeoutHandle=d4(Vx.bind(null,a,h,_o,xv,aE,t,oi,td,lm,Wf,g,"Throttled",Oa,u),E);break e}Vx(a,h,_o,xv,aE,t,oi,td,lm,Wf,g,null,Oa,u)}}}break}while(!0);to(e)}function Vx(e,t,a,u,h,g,E,w,$,q,oe,se,J,xe){e.timeoutHandle=sm;var ke=t.subtreeFlags,Ze=null;if((ke&8192||(ke&16785408)===16785408)&&(Ze={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Io},Up(t,g,Ze),ke=(g&62914560)===g?oE-ea():(g&4194048)===g?YR-ea():0,ke=ig(Ze,ke),ke!==null)){bs=g,e.cancelPendingCommit=ke(qn.bind(null,e,t,g,a,u,h,E,w,$,oe,Ze,Ze.waitingForViewTransition?"Waiting for the previous Animation":0<Ze.count?0<Ze.imgCount?"Suspended on CSS and Images":"Suspended on CSS":Ze.imgCount===1?"Suspended on an Image":0<Ze.imgCount?"Suspended on Images":null,J,xe)),Wo(e,g,E,!q);return}qn(e,t,g,a,u,h,E,w,$,oe,Ze,se,J,xe)}function Fx(e){for(var t=e;;){var a=t.tag;if((a===0||a===11||a===15)&&t.flags&16384&&(a=t.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var u=0;u<a.length;u++){var h=a[u],g=h.getSnapshot;h=h.value;try{if(!zo(g(),h))return!1}catch{return!1}}if(a=t.child,t.subtreeFlags&16384&&a!==null)a.return=t,t=a;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Wo(e,t,a,u){t&=~mO,t&=~td,e.suspendedLanes|=t,e.pingedLanes&=~t,u&&(e.warmLanes|=t),u=e.expirationTimes;for(var h=t;0<h;){var g=31-da(h),E=1<<g;u[g]=-1,h&=~E}a!==0&&it(e,a,t)}function Oo(){return(cn&(pa|qi))===ja?(pr(0),!1):!0}function Vp(){if(It!==null){if(Dn===ai)var e=It.return;else e=It,Gu(),_s(e),Lg=null,uv=0,e=It;for(;e!==null;)U0(e.alternate,e),e=e.return;It=null}}function Qs(e,t){(e&127)!==0&&(Gh=t),(e&4194048)!==0&&(pu=t),(e&62914560)!==0&&(PD=t),(e&2080374784)!==0&&(QD=t)}function hr(e,t){el&&(console.timeStamp("Blocking Track",.003,.003,"Blocking",Wt,"primary-light"),console.timeStamp("Transition Track",.003,.003,"Transition",Wt,"primary-light"),console.timeStamp("Suspense Track",.003,.003,"Suspense",Wt,"primary-light"),console.timeStamp("Idle Track",.003,.003,"Idle",Wt,"primary-light"));var a=Oa;if(Oa=na(),Ft!==0&&0<a){if(gi(Ft),bl===eE||bl===Kf)gx(a,Oa,t,$l);else{var u=Oa,h=$l;if(el&&!(u<=a)){var g=(t&738197653)===t?"tertiary-dark":"primary-dark",E=(t&536870912)===t?"Prewarm":(t&201326741)===t?"Interrupted Hydration":"Interrupted Render";h?h.run(console.timeStamp.bind(console,E,a,u,an,Wt,g)):console.timeStamp(E,a,u,an,Wt,g)}}Qs(Ft,Oa)}if(a=$l,$l=null,(t&127)!==0){$l=Kb,h=0<=ic&&ic<Gh?Gh:ic,u=0<=Yh&&Yh<Gh?Gh:Yh,g=0<=u?u:0<=h?h:Oa,0<=q1?(gi(2),yx(q1,g,t,a)):F1&127,a=h;var w=u,$=Wb,q=0<Bg,oe=Pf===Jb,se=Pf===L1;if(h=Oa,u=Kb,g=Y2,E=X2,el){if(an="Blocking",0<a?a>h&&(a=h):a=h,0<w?w>a&&(w=a):w=a,$!==null&&a>w){var J=q?"secondary-light":"warning";u?u.run(console.timeStamp.bind(console,q?"Consecutive":"Event: "+$,w,a,an,Wt,J)):console.timeStamp(q?"Consecutive":"Event: "+$,w,a,an,Wt,J)}h>a&&(w=oe?"error":(t&738197653)===t?"tertiary-light":"primary-light",oe=se?"Promise Resolved":oe?"Cascading Update":5<h-a?"Update Blocked":"Update",se=[],E!=null&&se.push(["Component name",E]),g!=null&&se.push(["Method name",g]),a={start:a,end:h,detail:{devtools:{properties:se,track:an,trackGroup:Wt,color:w}}},u?u.run(performance.measure.bind(performance,oe,a)):performance.measure(oe,a))}ic=-1.1,Pf=0,X2=Y2=null,q1=-1.1,Bg=Yh,Yh=-1.1,Gh=na()}if((t&4194048)!==0&&($l=ev,h=0<=gu&&gu<pu?pu:gu,a=0<=zr&&zr<pu?pu:zr,u=0<=Qf&&Qf<pu?pu:Qf,g=0<=u?u:0<=a?a:Oa,0<=V1?(gi(256),yx(V1,g,t,$l)):F1&4194048,se=u,w=Xh,$=0<Zf,q=P2===L1,g=Oa,u=ev,E=YD,oe=XD,el&&(an="Transition",0<a?a>g&&(a=g):a=g,0<h?h>a&&(h=a):h=a,0<se?se>h&&(se=h):se=h,h>se&&w!==null&&(J=$?"secondary-light":"warning",u?u.run(console.timeStamp.bind(console,$?"Consecutive":"Event: "+w,se,h,an,Wt,J)):console.timeStamp($?"Consecutive":"Event: "+w,se,h,an,Wt,J)),a>h&&(u?u.run(console.timeStamp.bind(console,"Action",h,a,an,Wt,"primary-dark")):console.timeStamp("Action",h,a,an,Wt,"primary-dark")),g>a&&(h=q?"Promise Resolved":5<g-a?"Update Blocked":"Update",se=[],oe!=null&&se.push(["Component name",oe]),E!=null&&se.push(["Method name",E]),a={start:a,end:g,detail:{devtools:{properties:se,track:an,trackGroup:Wt,color:"primary-light"}}},u?u.run(performance.measure.bind(performance,h,a)):performance.measure(h,a))),zr=gu=-1.1,P2=0,V1=-1.1,Zf=Qf,Qf=-1.1,pu=na()),(t&62914560)!==0&&(F1&62914560)!==0&&(gi(4194304),t0(PD,Oa)),(t&2080374784)!==0&&(F1&2080374784)!==0&&(gi(268435456),t0(QD,Oa)),a=e.timeoutHandle,a!==sm&&(e.timeoutHandle=sm,U9(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),bs=0,Vp(),kn=e,It=a=Ki(e.current,null),Ft=t,Dn=ai,Vi=null,Wf=!1,Pg=wt(e,t),hO=!1,bl=xu,lm=oi=mO=td=ed=0,_o=Sv=null,aE=!1,(t&8)!==0&&(t|=t&32),u=e.entangledLanes,u!==0)for(e=e.entanglements,u&=t;0<u;)h=31-da(u),g=1<<h,t|=e[h],u&=~g;return sc=t,Wm(),e=qD(),1e3<e-LD&&(Ce.recentlyCreatedOwnerStacks=0,LD=e),ps.discardPendingWarnings(),a}function Ai(e,t){xt=null,Ce.H=mv,Ce.getCurrentStack=null,Sr=!1,oo=null,t===Ug||t===Y1?(t=_c(),Dn=bv):t===K2?(t=_c(),Dn=GR):Dn=t===sO?dO:t!==null&&typeof t=="object"&&typeof t.then=="function"?vv:nE,Vi=t;var a=It;a===null?(bl=yv,oh(e,Da(t,e.current))):a.mode&qt&&ip(a)}function eb(){var e=Ui.current;return e===null?!0:(Ft&4194048)===Ft?Dr===null:(Ft&62914560)===Ft||(Ft&536870912)!==0?e===Dr:!1}function Fp(){var e=Ce.H;return Ce.H=mv,e===null?mv:e}function tb(){var e=Ce.A;return Ce.A=T9,e}function hf(e){$l===null&&($l=e._debugTask==null?null:e._debugTask)}function mf(){bl=Kf,Wf||(Ft&4194048)!==Ft&&Ui.current!==null||(Pg=!0),(ed&134217727)===0&&(td&134217727)===0||kn===null||Wo(kn,Ft,oi,!1)}function pf(e,t,a){var u=cn;cn|=pa;var h=Fp(),g=tb();if(kn!==e||Ft!==t){if(Er){var E=e.memoizedUpdaters;0<E.size&&(yf(e,Ft),E.clear()),En(e,t)}xv=null,hr(e,t)}t=!1,E=bl;e:do try{if(Dn!==ai&&It!==null){var w=It,$=Vi;switch(Dn){case dO:Vp(),E=tE;break e;case bv:case tm:case nm:case vv:Ui.current===null&&(t=!0);var q=Dn;if(Dn=ai,Vi=null,gf(e,w,$,q),a&&Pg){E=xu;break e}break;default:q=Dn,Dn=ai,Vi=null,gf(e,w,$,q)}}nb(),E=bl;break}catch(oe){Ai(e,oe)}while(!0);return t&&e.shellSuspendCounter++,Gu(),cn=u,Ce.H=h,Ce.A=g,It===null&&(kn=null,Ft=0,Wm()),E}function nb(){for(;It!==null;)kp(It)}function is(e,t){var a=cn;cn|=pa;var u=Fp(),h=tb();if(kn!==e||Ft!==t){if(Er){var g=e.memoizedUpdaters;0<g.size&&(yf(e,Ft),g.clear()),En(e,t)}xv=null,iE=ea()+PR,hr(e,t)}else Pg=wt(e,t);e:do try{if(Dn!==ai&&It!==null)t:switch(t=It,g=Vi,Dn){case nE:Dn=ai,Vi=null,gf(e,t,g,nE);break;case tm:case nm:if(h0(g)){Dn=ai,Vi=null,lb(t);break}t=function(){Dn!==tm&&Dn!==nm||kn!==e||(Dn=lE),to(e)},g.then(t,t);break e;case bv:Dn=lE;break e;case GR:Dn=fO;break e;case lE:h0(g)?(Dn=ai,Vi=null,lb(t)):(Dn=ai,Vi=null,gf(e,t,g,lE));break;case fO:var E=null;switch(It.tag){case 26:E=It.memoizedState;case 5:case 27:var w=It;if(E?Yt(E):w.stateNode.complete){Dn=ai,Vi=null;var $=w.sibling;if($!==null)It=$;else{var q=w.return;q!==null?(It=q,yh(q)):It=null}break t}break;default:console.error("Unexpected type of fiber triggered a suspensey commit. This is a bug in React.")}Dn=ai,Vi=null,gf(e,t,g,fO);break;case vv:Dn=ai,Vi=null,gf(e,t,g,vv);break;case dO:Vp(),bl=tE;break e;default:throw Error("Unexpected SuspendedReason. This is a bug in React.")}Ce.actQueue!==null?nb():Nl();break}catch(oe){Ai(e,oe)}while(!0);return Gu(),Ce.H=u,Ce.A=h,cn=a,It!==null?xu:(kn=null,Ft=0,Wm(),bl)}function Nl(){for(;It!==null&&!yg();)kp(It)}function kp(e){var t=e.alternate;(e.mode&qt)!==bt?(Qr(e),t=ze(e,ch,t,e,sc),ip(e)):t=ze(e,ch,t,e,sc),e.memoizedProps=e.pendingProps,t===null?yh(e):It=t}function lb(e){var t=ze(e,Wl,e);e.memoizedProps=e.pendingProps,t===null?yh(e):It=t}function Wl(e){var t=e.alternate,a=(e.mode&qt)!==bt;switch(a&&Qr(e),e.tag){case 15:case 0:t=R0(t,e,e.pendingProps,e.type,void 0,Ft);break;case 11:t=R0(t,e,e.pendingProps,e.type.render,e.ref,Ft);break;case 5:_s(e);default:U0(t,e),e=It=o0(e,sc),t=ch(t,e,sc)}return a&&ip(e),t}function gf(e,t,a,u){Gu(),_s(t),Lg=null,uv=0;var h=t.return;try{if(O0(e,h,t,a,Ft)){bl=yv,oh(e,Da(a,e.current)),It=null;return}}catch(g){if(h!==null)throw It=h,g;bl=yv,oh(e,Da(a,e.current)),It=null;return}t.flags&32768?(Kt||u===nE?e=!0:Pg||(Ft&536870912)!==0?e=!1:(Wf=e=!0,(u===tm||u===nm||u===bv||u===vv)&&(u=Ui.current,u!==null&&u.tag===13&&(u.flags|=16384))),ab(t,e)):yh(t)}function yh(e){var t=e;do{if((t.flags&32768)!==0){ab(t,Wf);return}var a=t.alternate;if(e=t.return,Qr(t),a=ze(t,H0,a,t,sc),(t.mode&qt)!==bt&&Vd(t),a!==null){It=a;return}if(t=t.sibling,t!==null){It=t;return}It=t=e}while(t!==null);bl===xu&&(bl=IR)}function ab(e,t){do{var a=Nx(e.alternate,e);if(a!==null){a.flags&=32767,It=a;return}if((e.mode&qt)!==bt){Vd(e),a=e.actualDuration;for(var u=e.child;u!==null;)a+=u.actualDuration,u=u.sibling;e.actualDuration=a}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!t&&(e=e.sibling,e!==null)){It=e;return}It=e=a}while(e!==null);bl=tE,It=null}function qn(e,t,a,u,h,g,E,w,$,q,oe,se,J,xe){e.cancelPendingCommit=null;do bh();while(ra!==ld);if(ps.flushLegacyContextWarning(),ps.flushPendingUnsafeLifecycleWarnings(),(cn&(pa|qi))!==ja)throw Error("Should not already be working.");if(gi(a),q===em?e0(J,xe,a,$l):u!==null?p2(J,xe,a,u,t!==null&&t.alternate!==null&&t.alternate.memoizedState.isDehydrated&&(t.flags&256)!==0,$l):m2(J,xe,a,$l),t!==null){if(a===0&&console.error("finishedLanes should not be empty during a commit. This is a bug in React."),t===e.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(g=t.lanes|t.childLanes,g|=V2,Ht(e,a,g,E,w,$),e===kn&&(It=kn=null,Ft=0),Qg=t,ad=e,bs=a,yO=g,vO=h,e4=u,bO=xe,t4=se,vs=rE,n4=null,t.actualDuration!==0||(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,bf(iu,function(){return jv=window.event,vs===rE&&(vs=gO),vh(),null})):(e.callbackNode=null,e.callbackPriority=0),mu=null,Xf=na(),se!==null&&g2(xe,Xf,se,$l),u=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||u){u=Ce.T,Ce.T=null,h=pn.p,pn.p=Vl,E=cn,cn|=qi;try{v2(e,t,a)}finally{cn=E,pn.p=h,Ce.T=u}}ra=ZR,qa(),mr(),ob()}}function qa(){if(ra===ZR){ra=ld;var e=ad,t=Qg,a=bs,u=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||u){u=Ce.T,Ce.T=null;var h=pn.p;pn.p=Vl;var g=cn;cn|=qi;try{Yg=a,Xg=e,Rc(),hh(t,e),Xg=Yg=null,a=zO;var E=Zm(e.containerInfo),w=a.focusedElem,$=a.selectionRange;if(E!==w&&w&&w.ownerDocument&&dx(w.ownerDocument.documentElement,w)){if($!==null&&Jy(w)){var q=$.start,oe=$.end;if(oe===void 0&&(oe=q),"selectionStart"in w)w.selectionStart=q,w.selectionEnd=Math.min(oe,w.value.length);else{var se=w.ownerDocument||document,J=se&&se.defaultView||window;if(J.getSelection){var xe=J.getSelection(),ke=w.textContent.length,Ze=Math.min($.start,ke),Yn=$.end===void 0?Ze:Math.min($.end,ke);!xe.extend&&Ze>Yn&&(E=Yn,Yn=Ze,Ze=E);var en=fx(w,Ze),Z=fx(w,Yn);if(en&&Z&&(xe.rangeCount!==1||xe.anchorNode!==en.node||xe.anchorOffset!==en.offset||xe.focusNode!==Z.node||xe.focusOffset!==Z.offset)){var K=se.createRange();K.setStart(en.node,en.offset),xe.removeAllRanges(),Ze>Yn?(xe.addRange(K),xe.extend(Z.node,Z.offset)):(K.setEnd(Z.node,Z.offset),xe.addRange(K))}}}}for(se=[],xe=w;xe=xe.parentNode;)xe.nodeType===1&&se.push({element:xe,left:xe.scrollLeft,top:xe.scrollTop});for(typeof w.focus=="function"&&w.focus(),w=0;w<se.length;w++){var le=se[w];le.element.scrollLeft=le.left,le.element.scrollTop=le.top}}CE=!!MO,zO=MO=null}finally{cn=g,pn.p=h,Ce.T=u}}e.current=t,ra=JR}}function mr(){if(ra===JR){ra=ld;var e=n4;if(e!==null){Xf=na();var t=hu,a=Xf;!el||a<=t||console.timeStamp(e,t,a,an,Wt,"secondary-light")}e=ad,t=Qg,a=bs;var u=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||u){u=Ce.T,Ce.T=null;var h=pn.p;pn.p=Vl;var g=cn;cn|=qi;try{Yg=a,Xg=e,Rc(),Bp(e,t.alternate,t),Xg=Yg=null}finally{cn=g,pn.p=h,Ce.T=u}}e=bO,t=t4,hu=na(),e=t===null?e:Xf,t=hu,a=vs===pO,u=$l,mu!==null?bx(e,t,mu,!1,u):!el||t<=e||(u?u.run(console.timeStamp.bind(console,a?"Commit Interrupted View Transition":"Commit",e,t,an,Wt,a?"error":"secondary-dark")):console.timeStamp(a?"Commit Interrupted View Transition":"Commit",e,t,an,Wt,a?"error":"secondary-dark")),ra=KR}}function ob(){if(ra===WR||ra===KR){if(ra===WR){var e=hu;hu=na();var t=hu,a=vs===pO;!el||t<=e||console.timeStamp(a?"Interrupted View Transition":"Starting Animation",e,t,an,Wt,a?" error":"secondary-light"),vs!==pO&&(vs=QR)}ra=ld,bg(),e=ad;var u=Qg;t=bs,a=e4;var h=u.actualDuration!==0||(u.subtreeFlags&10256)!==0||(u.flags&10256)!==0;h?ra=sE:(ra=ld,Qg=ad=null,ib(e,e.pendingLanes),am=0,Cv=null);var g=e.pendingLanes;if(g===0&&(nd=null),h||Yp(e),g=jt(t),u=u.stateNode,ql&&typeof ql.onCommitFiberRoot=="function")try{var E=(u.current.flags&128)===128;switch(g){case Vl:var w=Bb;break;case ha:w=vg;break;case Ta:w=iu;break;case lc:w=Sg;break;default:w=iu}ql.onCommitFiberRoot(ru,u,w,E)}catch(se){xr||(xr=!0,console.error("React instrumentation encountered an error: %o",se))}if(Er&&e.memoizedUpdaters.clear(),K0(),a!==null){E=Ce.T,w=pn.p,pn.p=Vl,Ce.T=null;try{var $=e.onRecoverableError;for(u=0;u<a.length;u++){var q=a[u],oe=kx(q.stack);ze(q.source,$,q.value,oe)}}finally{Ce.T=E,pn.p=w}}(bs&3)!==0&&bh(),to(e),g=e.pendingLanes,(t&261930)!==0&&(g&42)!==0?(I1=!0,e===SO?Ev++:(Ev=0,SO=e)):Ev=0,h||Qs(t,hu),pr(0)}}function kx(e){return e={componentStack:e},Object.defineProperty(e,"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.')}}),e}function ib(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,qd(t)))}function bh(){return qa(),mr(),ob(),vh()}function vh(){if(ra!==sE)return!1;var e=ad,t=yO;yO=0;var a=jt(bs),u=Ta>a?Ta:a;a=Ce.T;var h=pn.p;try{pn.p=u,Ce.T=null;var g=vO;vO=null,u=ad;var E=bs;if(ra=ld,Qg=ad=null,bs=0,(cn&(pa|qi))!==ja)throw Error("Cannot flush passive effects while already rendering.");gi(E),xO=!0,cE=!1;var w=0;if(mu=null,w=ea(),vs===QR)t0(hu,w,y9);else{var $=hu,q=w,oe=vs===gO;!el||q<=$||($l?$l.run(console.timeStamp.bind(console,oe?"Waiting for Paint":"Waiting",$,q,an,Wt,"secondary-light")):console.timeStamp(oe?"Waiting for Paint":"Waiting",$,q,an,Wt,"secondary-light"))}$=cn,cn|=qi;var se=u.current;Rc(),Lp(se);var J=u.current;se=bO,Rc(),Q0(u,J,E,g,se),Yp(u),cn=$;var xe=ea();if(J=w,se=$l,mu!==null?bx(J,xe,mu,!0,se):!el||xe<=J||(se?se.run(console.timeStamp.bind(console,"Remaining Effects",J,xe,an,Wt,"secondary-dark")):console.timeStamp("Remaining Effects",J,xe,an,Wt,"secondary-dark")),Qs(E,xe),pr(0,!1),cE?u===Cv?am++:(am=0,Cv=u):am=0,cE=xO=!1,ql&&typeof ql.onPostCommitFiberRoot=="function")try{ql.onPostCommitFiberRoot(ru,u)}catch(Ze){xr||(xr=!0,console.error("React instrumentation encountered an error: %o",Ze))}var ke=u.current.stateNode;return ke.effectDuration=0,ke.passiveEffectDuration=0,!0}finally{pn.p=h,Ce.T=a,ib(e,t)}}function Va(e,t,a){t=Da(a,t),Tx(t),t=Ep(e.stateNode,t,2),e=nr(e,t,2),e!==null&&(Fe(e,2),to(e))}function Nt(e,t,a){if(Zg=!1,e.tag===3)Va(e,e,a);else{for(;t!==null;){if(t.tag===3){Va(t,e,a);return}if(t.tag===1){var u=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof u.componentDidCatch=="function"&&(nd===null||!nd.has(u))){e=Da(a,e),Tx(e),a=Cp(2),u=nr(t,a,2),u!==null&&(Tp(a,u,t,e),Fe(u,2),to(u));return}}t=t.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.
245
-
246
- Error message:
247
-
248
- %s`,a)}}function Ip(e,t,a){var u=e.pingCache;if(u===null){u=e.pingCache=new w9;var h=new Set;u.set(t,h)}else h=u.get(t),h===void 0&&(h=new Set,u.set(t,h));h.has(a)||(hO=!0,h.add(a),u=eo.bind(null,e,t,a),Er&&yf(e,a),t.then(u,u))}function eo(e,t,a){var u=e.pingCache;u!==null&&u.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,(a&127)!==0?0>ic&&(Gh=ic=na(),Kb=U1("Promise Resolved"),Pf=L1):(a&4194048)!==0&&0>zr&&(pu=zr=na(),ev=U1("Promise Resolved"),P2=L1),W0()&&Ce.actQueue===null&&console.error(`A suspended resource finished loading inside a test, but the event was not wrapped in act(...).
249
-
250
- When testing, code that resolves suspended data should be wrapped into act(...):
251
-
252
- act(() => {
253
- /* finish loading suspended data */
254
- });
255
- /* assert on the output */
256
-
257
- 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`),kn===e&&(Ft&a)===a&&(bl===Kf||bl===eE&&(Ft&62914560)===Ft&&ea()-oE<XR?(cn&pa)===ja&&hr(e,0):mO|=a,lm===Ft&&(lm=0)),to(e)}function rb(e,t){t===0&&(t=Rn()),e=Sa(e,t),e!==null&&(Fe(e,t),to(e))}function rs(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),rb(e,a)}function Jc(e,t){var a=0;switch(e.tag){case 31:case 13:var u=e.stateNode,h=e.memoizedState;h!==null&&(a=h.retryLane);break;case 19:u=e.stateNode;break;case 22:u=e.stateNode._retryCache;break;default:throw Error("Pinged unknown suspense boundary type. This is probably a bug in React.")}u!==null&&u.delete(t),rb(e,a)}function Mi(e,t,a){if((t.subtreeFlags&67117056)!==0)for(t=t.child;t!==null;){var u=e,h=t,g=h.type===Ia;g=a||g,h.tag!==22?h.flags&67108864?g&&ze(h,Gp,u,h):Mi(u,h,g):h.memoizedState===null&&(g&&h.flags&8192?ze(h,Gp,u,h):h.subtreeFlags&67108864&&ze(h,Mi,u,h,g)),t=t.sibling}}function Gp(e,t){pe(!0);try{Hp(t),J0(t),P0(e,t.alternate,t,!1),gh(e,t,0,null,!1,0)}finally{pe(!1)}}function Yp(e){var t=!0;e.current.mode&(io|ms)||(t=!1),Mi(e,e.current,t)}function ei(e){if((cn&pa)===ja){var t=e.tag;if(t===3||t===1||t===0||t===11||t===14||t===15){if(t=V(e)||"ReactComponent",uE!==null){if(uE.has(t))return;uE.add(t)}else uE=new Set([t]);ze(e,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 tries to update the component. Move this work to useEffect instead.")})}}}function yf(e,t){Er&&e.memoizedUpdaters.forEach(function(a){Bn(e,a,t)})}function bf(e,t){var a=Ce.actQueue;return a!==null?(a.push(t),M9):$b(e,t)}function Sh(e){W0()&&Ce.actQueue===null&&ze(e,function(){console.error(`An update to %s inside a test was not wrapped in act(...).
258
-
259
- When testing, code that causes React state updates should be wrapped into act(...):
260
-
261
- act(() => {
262
- /* fire events that update state */
263
- });
264
- /* assert on the output */
265
-
266
- 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`,V(e))})}function to(e){e!==Jg&&e.next===null&&(Jg===null?fE=Jg=e:Jg=Jg.next=e),dE=!0,Ce.actQueue!==null?CO||(CO=!0,Gx()):EO||(EO=!0,Gx())}function pr(e,t){if(!TO&&dE){TO=!0;do for(var a=!1,u=fE;u!==null;){if(e!==0){var h=u.pendingLanes;if(h===0)var g=0;else{var E=u.suspendedLanes,w=u.pingedLanes;g=(1<<31-da(42|e)+1)-1,g&=h&~(E&~w),g=g&201326741?g&201326741|1:g?g|2:0}g!==0&&(a=!0,xh(u,g))}else g=Ft,g=rt(u,u===kn?g:0,u.cancelPendingCommit!==null||u.timeoutHandle!==sm),(g&3)===0||wt(u,g)||(a=!0,xh(u,g));u=u.next}while(a);TO=!1}}function Ix(){jv=window.event,Xp()}function Xp(){dE=CO=EO=!1;var e=0;od!==0&&fb()&&(e=od);for(var t=ea(),a=null,u=fE;u!==null;){var h=u.next,g=vf(u,t);g===0?(u.next=null,a===null?fE=h:a.next=h,h===null&&(Jg=a)):(a=u,(e!==0||(g&3)!==0)&&(dE=!0)),u=h}ra!==ld&&ra!==sE||pr(e),od!==0&&(od=0)}function vf(e,t){for(var a=e.suspendedLanes,u=e.pingedLanes,h=e.expirationTimes,g=e.pendingLanes&-62914561;0<g;){var E=31-da(g),w=1<<E,$=h[E];$===-1?((w&a)===0||(w&u)!==0)&&(h[E]=yt(w,t)):$<=t&&(e.expiredLanes|=w),g&=~w}if(t=kn,a=Ft,a=rt(e,e===t?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==sm),u=e.callbackNode,a===0||e===t&&(Dn===tm||Dn===nm)||e.cancelPendingCommit!==null)return u!==null&&Pp(u),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||wt(e,a)){if(t=a&-a,t!==e.callbackPriority||Ce.actQueue!==null&&u!==OO)Pp(u);else return t;switch(jt(a)){case Vl:case ha:a=vg;break;case Ta:a=iu;break;case lc:a=Sg;break;default:a=iu}return u=sb.bind(null,e),Ce.actQueue!==null?(Ce.actQueue.push(u),a=OO):a=$b(a,u),e.callbackPriority=t,e.callbackNode=a,t}return u!==null&&Pp(u),e.callbackPriority=2,e.callbackNode=null,2}function sb(e,t){if(I1=k1=!1,jv=window.event,ra!==ld&&ra!==sE)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(vs===rE&&(vs=gO),bh()&&e.callbackNode!==a)return null;var u=Ft;return u=rt(e,e===kn?u:0,e.cancelPendingCommit!==null||e.timeoutHandle!==sm),u===0?null:(qx(e,u,t),vf(e,ea()),e.callbackNode!=null&&e.callbackNode===a?sb.bind(null,e):null)}function xh(e,t){if(bh())return null;k1=I1,I1=!1,qx(e,t,!0)}function Pp(e){e!==OO&&e!==null&&gg(e)}function Gx(){Ce.actQueue!==null&&Ce.actQueue.push(function(){return Xp(),null}),L9(function(){(cn&(pa|qi))!==ja?$b(Bb,Ix):Xp()})}function cb(){if(od===0){var e=Ph;e===0&&(e=Hf,Hf<<=1,(Hf&261888)===0&&(Hf=256)),od=e}return od}function un(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:($e(e,"action"),zd(""+e))}function An(e,t){var a=t.ownerDocument.createElement("input");return a.name=t.name,a.value=t.value,e.id&&a.setAttribute("form",e.id),t.parentNode.insertBefore(a,t),e=new FormData(e),a.parentNode.removeChild(a),e}function Zt(e,t,a,u,h){if(t==="submit"&&a&&a.stateNode===h){var g=un((h[Ga]||null).action),E=u.submitter;E&&(t=(t=E[Ga]||null)?un(t.formAction):E.getAttribute("formAction"),t!==null&&(g=t,E=null));var w=new D1("action","action",null,u,h);e.push({event:w,listeners:[{instance:null,listener:function(){if(u.defaultPrevented){if(od!==0){var $=E?An(h,E):new FormData(h),q={pending:!0,data:$,method:h.method,action:g};Object.freeze(q),ls(a,q,null,$)}}else typeof g=="function"&&(w.preventDefault(),$=E?An(h,E):new FormData(h),q={pending:!0,data:$,method:h.method,action:g},Object.freeze(q),ls(a,q,g,$))},currentTarget:h}]})}}function kt(e,t,a){e.currentTarget=a;try{t(e)}catch(u){H2(u)}e.currentTarget=null}function vn(e,t){t=(t&4)!==0;for(var a=0;a<e.length;a++){var u=e[a];e:{var h=void 0,g=u.event;if(u=u.listeners,t)for(var E=u.length-1;0<=E;E--){var w=u[E],$=w.instance,q=w.currentTarget;if(w=w.listener,$!==h&&g.isPropagationStopped())break e;$!==null?ze($,kt,g,w,q):kt(g,w,q),h=$}else for(E=0;E<u.length;E++){if(w=u[E],$=w.instance,q=w.currentTarget,w=w.listener,$!==h&&g.isPropagationStopped())break e;$!==null?ze($,kt,g,w,q):kt(g,w,q),h=$}}}}function gt(e,t){wO.has(e)||console.error('Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.',e);var a=t[su];a===void 0&&(a=t[su]=new Set);var u=e+"__bubble";a.has(u)||(Qp(t,e,2,!1),a.add(u))}function gr(e,t,a){wO.has(e)&&!t&&console.error('Did not expect a listenToNativeEvent() call for "%s" in the bubble phase. This is a bug in React. Please file an issue.',e);var u=0;t&&(u|=4),Qp(a,e,u,t)}function Zs(e){if(!e[hE]){e[hE]=!0,w1.forEach(function(a){a!=="selectionchange"&&(wO.has(a)||gr(a,!1,e),gr(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[hE]||(t[hE]=!0,gr("selectionchange",!1,t))}}function Qp(e,t,a,u){switch(cg(t)){case Vl:var h=Tb;break;case ha:h=fa;break;default:h=Ob}a=h.bind(null,t,a,e),h=void 0,!j2||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(h=!0),u?h!==void 0?e.addEventListener(t,a,{capture:!0,passive:h}):e.addEventListener(t,a,!0):h!==void 0?e.addEventListener(t,a,{passive:h}):e.addEventListener(t,a,!1)}function zi(e,t,a,u,h){var g=u;if((t&1)===0&&(t&2)===0&&u!==null)e:for(;;){if(u===null)return;var E=u.tag;if(E===3||E===4){var w=u.stateNode.containerInfo;if(w===h)break;if(E===4)for(E=u.return;E!==null;){var $=E.tag;if(($===3||$===4)&&E.stateNode.containerInfo===h)return;E=E.return}for(;w!==null;){if(E=gn(w),E===null)return;if($=E.tag,$===5||$===6||$===26||$===27){u=g=E;continue e}w=w.parentNode}}u=u.return}Ym(function(){var q=g,oe=mi(a),se=[];e:{var J=UD.get(e);if(J!==void 0){var xe=D1,ke=e;switch(e){case"keypress":if(Dd(a)===0)break e;case"keydown":case"keyup":xe=I7;break;case"focusin":ke="focus",xe=D2;break;case"focusout":ke="blur",xe=D2;break;case"beforeblur":case"afterblur":xe=D2;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":xe=TD;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":xe=R7;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":xe=X7;break;case _D:case $D:case BD:xe=$7;break;case HD:xe=Q7;break;case"scroll":case"scrollend":xe=z7;break;case"wheel":xe=J7;break;case"copy":case"cut":case"paste":xe=H7;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":xe=wD;break;case"toggle":case"beforetoggle":xe=W7}var Ze=(t&4)!==0,Yn=!Ze&&(e==="scroll"||e==="scrollend"),en=Ze?J!==null?J+"Capture":null:J;Ze=[];for(var Z=q,K;Z!==null;){var le=Z;if(K=le.stateNode,le=le.tag,le!==5&&le!==26&&le!==27||K===null||en===null||(le=Zi(Z,en),le!=null&&Ze.push(Vn(Z,le,K))),Yn)break;Z=Z.return}0<Ze.length&&(J=new xe(J,ke,null,a,oe),se.push({event:J,listeners:Ze}))}}if((t&7)===0){e:{if(J=e==="mouseover"||e==="pointerover",xe=e==="mouseout"||e==="pointerout",J&&a!==Vb&&(ke=a.relatedTarget||a.fromElement)&&(gn(ke)||ke[hs]))break e;if((xe||J)&&(J=oe.window===oe?oe:(J=oe.ownerDocument)?J.defaultView||J.parentWindow:window,xe?(ke=a.relatedTarget||a.toElement,xe=q,ke=ke?gn(ke):null,ke!==null&&(Yn=_(ke),Ze=ke.tag,ke!==Yn||Ze!==5&&Ze!==27&&Ze!==6)&&(ke=null)):(xe=null,ke=q),xe!==ke)){if(Ze=TD,le="onMouseLeave",en="onMouseEnter",Z="mouse",(e==="pointerout"||e==="pointerover")&&(Ze=wD,le="onPointerLeave",en="onPointerEnter",Z="pointer"),Yn=xe==null?J:Hn(xe),K=ke==null?J:Hn(ke),J=new Ze(le,Z+"leave",xe,a,oe),J.target=Yn,J.relatedTarget=K,le=null,gn(oe)===q&&(Ze=new Ze(en,Z+"enter",ke,a,oe),Ze.target=K,Ze.relatedTarget=Yn,le=Ze),Yn=le,xe&&ke)t:{for(Ze=Kc,en=xe,Z=ke,K=0,le=en;le;le=Ze(le))K++;le=0;for(var Me=Z;Me;Me=Ze(Me))le++;for(;0<K-le;)en=Ze(en),K--;for(;0<le-K;)Z=Ze(Z),le--;for(;K--;){if(en===Z||Z!==null&&en===Z.alternate){Ze=en;break t}en=Ze(en),Z=Ze(Z)}Ze=null}else Ze=null;xe!==null&&Zp(se,J,xe,Ze,!1),ke!==null&&Yn!==null&&Zp(se,Yn,ke,Ze,!0)}}e:{if(J=q?Hn(q):window,xe=J.nodeName&&J.nodeName.toLowerCase(),xe==="select"||xe==="input"&&J.type==="file")var Ge=ws;else if(Py(J))if(RD)Ge=$d;else{Ge=Qy;var Et=h2}else xe=J.nodeName,!xe||xe.toLowerCase()!=="input"||J.type!=="checkbox"&&J.type!=="radio"?q&&Qi(q.elementType)&&(Ge=ws):Ge=Zy;if(Ge&&(Ge=Ge(e,q))){Nd(se,Ge,a,oe);break e}Et&&Et(e,J,q),e==="focusout"&&q&&J.type==="number"&&q.memoizedProps.value!=null&&Ma(J,"number",J.value)}switch(Et=q?Hn(q):window,e){case"focusin":(Py(Et)||Et.contentEditable==="true")&&(Ag=Et,N2=q,Pb=null);break;case"focusout":Pb=N2=Ag=null;break;case"mousedown":_2=!0;break;case"contextmenu":case"mouseup":case"dragend":_2=!1,hx(se,a,oe);break;case"selectionchange":if(l9)break;case"keydown":case"keyup":hx(se,a,oe)}var at;if(R2)e:{switch(e){case"compositionstart":var tt="onCompositionStart";break e;case"compositionend":tt="onCompositionEnd";break e;case"compositionupdate":tt="onCompositionUpdate";break e}tt=void 0}else jg?qu(e,a)&&(tt="onCompositionEnd"):e==="keydown"&&a.keyCode===jD&&(tt="onCompositionStart");tt&&(AD&&a.locale!=="ko"&&(jg||tt!=="onCompositionStart"?tt==="onCompositionEnd"&&jg&&(at=Ec()):(Ff=oe,A2="value"in Ff?Ff.value:Ff.textContent,jg=!0)),Et=Di(q,tt),0<Et.length&&(tt=new OD(tt,e,null,a,oe),se.push({event:tt,listeners:Et}),at?tt.data=at:(at=Xr(a),at!==null&&(tt.data=at)))),(at=t9?Xy(e,a):Xm(e,a))&&(tt=Di(q,"onBeforeInput"),0<tt.length&&(Et=new L7("onBeforeInput","beforeinput",null,a,oe),se.push({event:Et,listeners:tt}),Et.data=at)),Zt(se,e,q,a,oe)}vn(se,t)})}function Vn(e,t,a){return{instance:e,listener:t,currentTarget:a}}function Di(e,t){for(var a=t+"Capture",u=[];e!==null;){var h=e,g=h.stateNode;if(h=h.tag,h!==5&&h!==26&&h!==27||g===null||(h=Zi(e,a),h!=null&&u.unshift(Vn(e,h,g)),h=Zi(e,t),h!=null&&u.push(Vn(e,h,g))),e.tag===3)return u;e=e.return}return[]}function Kc(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Zp(e,t,a,u,h){for(var g=t._reactName,E=[];a!==null&&a!==u;){var w=a,$=w.alternate,q=w.stateNode;if(w=w.tag,$!==null&&$===u)break;w!==5&&w!==26&&w!==27||q===null||($=q,h?(q=Zi(a,g),q!=null&&E.unshift(Vn(a,q,$))):h||(q=Zi(a,g),q!=null&&E.push(Vn(a,q,$)))),a=a.return}E.length!==0&&e.push({event:t,listeners:E})}function Fa(e,t){sx(e,t),e!=="input"&&e!=="textarea"&&e!=="select"||t==null||t.value!==null||ED||(ED=!0,e==="select"&&t.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.",e):console.error("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",e));var a={registrationNameDependencies:Cr,possibleRegistrationNames:qf};Qi(e)||typeof t.is=="string"||d2(e,t,a),t.contentEditable&&!t.suppressContentEditableWarning&&t.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 rl(e,t,a,u){t!==a&&(a=Ri(a),Ri(t)!==a&&(u[e]=t))}function Eh(e,t,a){t.forEach(function(u){a[ss(u)]=u==="style"?Js(e):e.getAttribute(u)})}function sl(e,t){t===!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.",e,e,e):console.error("Expected `%s` listener to be a function, instead got a value of `%s` type.",e,typeof t)}function Jp(e,t){return e=e.namespaceURI===Ot||e.namespaceURI===_t?e.ownerDocument.createElementNS(e.namespaceURI,e.tagName):e.ownerDocument.createElement(e.tagName),e.innerHTML=t,e.innerHTML}function Ri(e){return Le(e)&&(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.",Rt(e)),ft(e)),(typeof e=="string"?e:""+e).replace(z9,`
267
- `).replace(D9,"")}function ub(e,t){return t=Ri(t),Ri(e)===t}function mn(e,t,a,u,h,g){switch(a){case"children":typeof u=="string"?(ko(u,t,!1),t==="body"||t==="textarea"&&u===""||za(e,u)):(typeof u=="number"||typeof u=="bigint")&&(ko(""+u,t,!1),t!=="body"&&za(e,""+u));break;case"className":qo(e,"class",u);break;case"tabIndex":qo(e,"tabindex",u);break;case"dir":case"role":case"viewBox":case"width":case"height":qo(e,a,u);break;case"style":Uu(e,u,g);break;case"data":if(t!=="object"){qo(e,"data",u);break}case"src":case"href":if(u===""&&(t!=="a"||a!=="href")){console.error(a==="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.',a,a),e.removeAttribute(a);break}if(u==null||typeof u=="function"||typeof u=="symbol"||typeof u=="boolean"){e.removeAttribute(a);break}$e(u,a),u=zd(""+u),e.setAttribute(a,u);break;case"action":case"formAction":if(u!=null&&(t==="form"?a==="formAction"?console.error("You can only pass the formAction prop to <input> or <button>. Use the action prop on <form>."):typeof u=="function"&&(h.encType==null&&h.method==null||gE||(gE=!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.")),h.target==null||pE||(pE=!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."))):t==="input"||t==="button"?a==="action"?console.error("You can only pass the action prop to <form>. Use the formAction prop on <input> or <button>."):t!=="input"||h.type==="submit"||h.type==="image"||mE?t!=="button"||h.type==null||h.type==="submit"||mE?typeof u=="function"&&(h.name==null||r4||(r4=!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.')),h.formEncType==null&&h.formMethod==null||gE||(gE=!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.")),h.formTarget==null||pE||(pE=!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."))):(mE=!0,console.error('A button can only specify a formAction along with type="submit" or no type.')):(mE=!0,console.error('An input can only specify a formAction along with type="submit" or type="image".')):console.error(a==="action"?"You can only pass the action prop to <form>.":"You can only pass the formAction prop to <input> or <button>.")),typeof u=="function"){e.setAttribute(a,"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 g=="function"&&(a==="formAction"?(t!=="input"&&mn(e,t,"name",h.name,h,null),mn(e,t,"formEncType",h.formEncType,h,null),mn(e,t,"formMethod",h.formMethod,h,null),mn(e,t,"formTarget",h.formTarget,h,null)):(mn(e,t,"encType",h.encType,h,null),mn(e,t,"method",h.method,h,null),mn(e,t,"target",h.target,h,null)));if(u==null||typeof u=="symbol"||typeof u=="boolean"){e.removeAttribute(a);break}$e(u,a),u=zd(""+u),e.setAttribute(a,u);break;case"onClick":u!=null&&(typeof u!="function"&&sl(a,u),e.onclick=Io);break;case"onScroll":u!=null&&(typeof u!="function"&&sl(a,u),gt("scroll",e));break;case"onScrollEnd":u!=null&&(typeof u!="function"&&sl(a,u),gt("scrollend",e));break;case"dangerouslySetInnerHTML":if(u!=null){if(typeof u!="object"||!("__html"in u))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(a=u.__html,a!=null){if(h.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");e.innerHTML=a}}break;case"multiple":e.multiple=u&&typeof u!="function"&&typeof u!="symbol";break;case"muted":e.muted=u&&typeof u!="function"&&typeof u!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(u==null||typeof u=="function"||typeof u=="boolean"||typeof u=="symbol"){e.removeAttribute("xlink:href");break}$e(u,a),a=zd(""+u),e.setAttributeNS(om,"xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":u!=null&&typeof u!="function"&&typeof u!="symbol"?($e(u,a),e.setAttribute(a,""+u)):e.removeAttribute(a);break;case"inert":u!==""||yE[a]||(yE[a]=!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.",a));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":u&&typeof u!="function"&&typeof u!="symbol"?e.setAttribute(a,""):e.removeAttribute(a);break;case"capture":case"download":u===!0?e.setAttribute(a,""):u!==!1&&u!=null&&typeof u!="function"&&typeof u!="symbol"?($e(u,a),e.setAttribute(a,u)):e.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":u!=null&&typeof u!="function"&&typeof u!="symbol"&&!isNaN(u)&&1<=u?($e(u,a),e.setAttribute(a,u)):e.removeAttribute(a);break;case"rowSpan":case"start":u==null||typeof u=="function"||typeof u=="symbol"||isNaN(u)?e.removeAttribute(a):($e(u,a),e.setAttribute(a,u));break;case"popover":gt("beforetoggle",e),gt("toggle",e),fi(e,"popover",u);break;case"xlinkActuate":zl(e,om,"xlink:actuate",u);break;case"xlinkArcrole":zl(e,om,"xlink:arcrole",u);break;case"xlinkRole":zl(e,om,"xlink:role",u);break;case"xlinkShow":zl(e,om,"xlink:show",u);break;case"xlinkTitle":zl(e,om,"xlink:title",u);break;case"xlinkType":zl(e,om,"xlink:type",u);break;case"xmlBase":zl(e,jO,"xml:base",u);break;case"xmlLang":zl(e,jO,"xml:lang",u);break;case"xmlSpace":zl(e,jO,"xml:space",u);break;case"is":g!=null&&console.error('Cannot update the "is" prop after it has been initialized.'),fi(e,"is",u);break;case"innerText":case"textContent":break;case"popoverTarget":s4||u==null||typeof u!="object"||(s4=!0,console.error("The `popoverTarget` prop expects the ID of an Element as a string. Received %s instead.",u));default:!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N"?(a=ix(a),fi(e,a,u)):Cr.hasOwnProperty(a)&&u!=null&&typeof u!="function"&&sl(a,u)}}function Sf(e,t,a,u,h,g){switch(a){case"style":Uu(e,u,g);break;case"dangerouslySetInnerHTML":if(u!=null){if(typeof u!="object"||!("__html"in u))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(a=u.__html,a!=null){if(h.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");e.innerHTML=a}}break;case"children":typeof u=="string"?za(e,u):(typeof u=="number"||typeof u=="bigint")&&za(e,""+u);break;case"onScroll":u!=null&&(typeof u!="function"&&sl(a,u),gt("scroll",e));break;case"onScrollEnd":u!=null&&(typeof u!="function"&&sl(a,u),gt("scrollend",e));break;case"onClick":u!=null&&(typeof u!="function"&&sl(a,u),e.onclick=Io);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(Cr.hasOwnProperty(a))u!=null&&typeof u!="function"&&sl(a,u);else e:{if(a[0]==="o"&&a[1]==="n"&&(h=a.endsWith("Capture"),t=a.slice(2,h?a.length-7:void 0),g=e[Ga]||null,g=g!=null?g[a]:null,typeof g=="function"&&e.removeEventListener(t,g,h),typeof u=="function")){typeof g!="function"&&g!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(t,u,h);break e}a in e?e[a]=u:u===!0?e.setAttribute(a,""):fi(e,a,u)}}}function Kn(e,t,a){switch(Fa(t,a),t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":gt("error",e),gt("load",e);var u=!1,h=!1,g;for(g in a)if(a.hasOwnProperty(g)){var E=a[g];if(E!=null)switch(g){case"src":u=!0;break;case"srcSet":h=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:mn(e,t,g,E,a,null)}}h&&mn(e,t,"srcSet",a.srcSet,a,null),u&&mn(e,t,"src",a.src,a,null);return;case"input":Gl("input",a),gt("invalid",e);var w=g=E=h=null,$=null,q=null;for(u in a)if(a.hasOwnProperty(u)){var oe=a[u];if(oe!=null)switch(u){case"name":h=oe;break;case"type":E=oe;break;case"checked":$=oe;break;case"defaultChecked":q=oe;break;case"value":g=oe;break;case"defaultValue":w=oe;break;case"children":case"dangerouslySetInnerHTML":if(oe!=null)throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:mn(e,t,u,oe,a,null)}}Un(e,a),Xn(e,g,w,$,q,E,h,!1);return;case"select":Gl("select",a),gt("invalid",e),u=E=g=null;for(h in a)if(a.hasOwnProperty(h)&&(w=a[h],w!=null))switch(h){case"value":g=w;break;case"defaultValue":E=w;break;case"multiple":u=w;default:mn(e,t,h,w,a,null)}Fo(e,a),t=g,a=E,e.multiple=!!u,t!=null?ln(e,!!u,t,!1):a!=null&&ln(e,!!u,a,!0);return;case"textarea":Gl("textarea",a),gt("invalid",e),g=h=u=null;for(E in a)if(a.hasOwnProperty(E)&&(w=a[E],w!=null))switch(E){case"value":u=w;break;case"defaultValue":h=w;break;case"children":g=w;break;case"dangerouslySetInnerHTML":if(w!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:mn(e,t,E,w,a,null)}ho(e,a),Pn(e,u,h,g);return;case"option":Fr(e,a);for($ in a)if(a.hasOwnProperty($)&&(u=a[$],u!=null))switch($){case"selected":e.selected=u&&typeof u!="function"&&typeof u!="symbol";break;default:mn(e,t,$,u,a,null)}return;case"dialog":gt("beforetoggle",e),gt("toggle",e),gt("cancel",e),gt("close",e);break;case"iframe":case"object":gt("load",e);break;case"video":case"audio":for(u=0;u<Tv.length;u++)gt(Tv[u],e);break;case"image":gt("error",e),gt("load",e);break;case"details":gt("toggle",e);break;case"embed":case"source":case"link":gt("error",e),gt("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(q in a)if(a.hasOwnProperty(q)&&(u=a[q],u!=null))switch(q){case"children":case"dangerouslySetInnerHTML":throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:mn(e,t,q,u,a,null)}return;default:if(Qi(t)){for(oe in a)a.hasOwnProperty(oe)&&(u=a[oe],u!==void 0&&Sf(e,t,oe,u,a,void 0));return}}for(w in a)a.hasOwnProperty(w)&&(u=a[w],u!=null&&mn(e,t,w,u,a,null))}function Ll(e,t,a,u){switch(Fa(t,u),t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var h=null,g=null,E=null,w=null,$=null,q=null,oe=null;for(xe in a){var se=a[xe];if(a.hasOwnProperty(xe)&&se!=null)switch(xe){case"checked":break;case"value":break;case"defaultValue":$=se;default:u.hasOwnProperty(xe)||mn(e,t,xe,null,u,se)}}for(var J in u){var xe=u[J];if(se=a[J],u.hasOwnProperty(J)&&(xe!=null||se!=null))switch(J){case"type":g=xe;break;case"name":h=xe;break;case"checked":q=xe;break;case"defaultChecked":oe=xe;break;case"value":E=xe;break;case"defaultValue":w=xe;break;case"children":case"dangerouslySetInnerHTML":if(xe!=null)throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:xe!==se&&mn(e,t,J,xe,u,se)}}t=a.type==="checkbox"||a.type==="radio"?a.checked!=null:a.value!=null,u=u.type==="checkbox"||u.type==="radio"?u.checked!=null:u.value!=null,t||!u||i4||(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"),i4=!0),!t||u||o4||(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"),o4=!0),ol(e,E,w,$,q,oe,g,h);return;case"select":xe=E=w=J=null;for(g in a)if($=a[g],a.hasOwnProperty(g)&&$!=null)switch(g){case"value":break;case"multiple":xe=$;default:u.hasOwnProperty(g)||mn(e,t,g,null,u,$)}for(h in u)if(g=u[h],$=a[h],u.hasOwnProperty(h)&&(g!=null||$!=null))switch(h){case"value":J=g;break;case"defaultValue":w=g;break;case"multiple":E=g;default:g!==$&&mn(e,t,h,g,u,$)}u=w,t=E,a=xe,J!=null?ln(e,!!t,J,!1):!!a!=!!t&&(u!=null?ln(e,!!t,u,!0):ln(e,!!t,t?[]:"",!1));return;case"textarea":xe=J=null;for(w in a)if(h=a[w],a.hasOwnProperty(w)&&h!=null&&!u.hasOwnProperty(w))switch(w){case"value":break;case"children":break;default:mn(e,t,w,null,u,h)}for(E in u)if(h=u[E],g=a[E],u.hasOwnProperty(E)&&(h!=null||g!=null))switch(E){case"value":J=h;break;case"defaultValue":xe=h;break;case"children":break;case"dangerouslySetInnerHTML":if(h!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:h!==g&&mn(e,t,E,h,u,g)}Gt(e,J,xe);return;case"option":for(var ke in a)if(J=a[ke],a.hasOwnProperty(ke)&&J!=null&&!u.hasOwnProperty(ke))switch(ke){case"selected":e.selected=!1;break;default:mn(e,t,ke,null,u,J)}for($ in u)if(J=u[$],xe=a[$],u.hasOwnProperty($)&&J!==xe&&(J!=null||xe!=null))switch($){case"selected":e.selected=J&&typeof J!="function"&&typeof J!="symbol";break;default:mn(e,t,$,J,u,xe)}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 Ze in a)J=a[Ze],a.hasOwnProperty(Ze)&&J!=null&&!u.hasOwnProperty(Ze)&&mn(e,t,Ze,null,u,J);for(q in u)if(J=u[q],xe=a[q],u.hasOwnProperty(q)&&J!==xe&&(J!=null||xe!=null))switch(q){case"children":case"dangerouslySetInnerHTML":if(J!=null)throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:mn(e,t,q,J,u,xe)}return;default:if(Qi(t)){for(var Yn in a)J=a[Yn],a.hasOwnProperty(Yn)&&J!==void 0&&!u.hasOwnProperty(Yn)&&Sf(e,t,Yn,void 0,u,J);for(oe in u)J=u[oe],xe=a[oe],!u.hasOwnProperty(oe)||J===xe||J===void 0&&xe===void 0||Sf(e,t,oe,J,u,xe);return}}for(var en in a)J=a[en],a.hasOwnProperty(en)&&J!=null&&!u.hasOwnProperty(en)&&mn(e,t,en,null,u,J);for(se in u)J=u[se],xe=a[se],!u.hasOwnProperty(se)||J===xe||J==null&&xe==null||mn(e,t,se,J,u,xe)}function ss(e){switch(e){case"class":return"className";case"for":return"htmlFor";default:return e}}function Js(e){var t={};e=e.style;for(var a=0;a<e.length;a++){var u=e[a];t[u]=e.getPropertyValue(u)}return t}function yr(e,t,a){if(t!=null&&typeof t!="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 u,h=u="",g;for(g in t)if(t.hasOwnProperty(g)){var E=t[g];E!=null&&typeof E!="boolean"&&E!==""&&(g.indexOf("--")===0?(Xe(E,g),u+=h+g+":"+(""+E).trim()):typeof E!="number"||E===0||et.has(g)?(Xe(E,g),u+=h+g.replace(Te,"-$1").toLowerCase().replace(We,"-ms-")+":"+(""+E).trim()):u+=h+g.replace(Te,"-$1").toLowerCase().replace(We,"-ms-")+":"+E+"px",h=";")}u=u||null,t=e.getAttribute("style"),t!==u&&(u=Ri(u),Ri(t)!==u&&(a.style=Js(e)))}}function no(e,t,a,u,h,g){if(h.delete(a),e=e.getAttribute(a),e===null)switch(typeof u){case"undefined":case"function":case"symbol":case"boolean":return}else if(u!=null)switch(typeof u){case"function":case"symbol":case"boolean":break;default:if($e(u,t),e===""+u)return}rl(t,e,u,g)}function Kp(e,t,a,u,h,g){if(h.delete(a),e=e.getAttribute(a),e===null){switch(typeof u){case"function":case"symbol":return}if(!u)return}else switch(typeof u){case"function":case"symbol":break;default:if(u)return}rl(t,e,u,g)}function Wp(e,t,a,u,h,g){if(h.delete(a),e=e.getAttribute(a),e===null)switch(typeof u){case"undefined":case"function":case"symbol":return}else if(u!=null)switch(typeof u){case"function":case"symbol":break;default:if($e(u,a),e===""+u)return}rl(t,e,u,g)}function xf(e,t,a,u,h,g){if(h.delete(a),e=e.getAttribute(a),e===null)switch(typeof u){case"undefined":case"function":case"symbol":case"boolean":return;default:if(isNaN(u))return}else if(u!=null)switch(typeof u){case"function":case"symbol":case"boolean":break;default:if(!isNaN(u)&&($e(u,t),e===""+u))return}rl(t,e,u,g)}function Ch(e,t,a,u,h,g){if(h.delete(a),e=e.getAttribute(a),e===null)switch(typeof u){case"undefined":case"function":case"symbol":case"boolean":return}else if(u!=null)switch(typeof u){case"function":case"symbol":case"boolean":break;default:if($e(u,t),a=zd(""+u),e===a)return}rl(t,e,u,g)}function lo(e,t,a,u){for(var h={},g=new Set,E=e.attributes,w=0;w<E.length;w++)switch(E[w].name.toLowerCase()){case"value":break;case"checked":break;case"selected":break;default:g.add(E[w].name)}if(Qi(t)){for(var $ in a)if(a.hasOwnProperty($)){var q=a[$];if(q!=null){if(Cr.hasOwnProperty($))typeof q!="function"&&sl($,q);else if(a.suppressHydrationWarning!==!0)switch($){case"children":typeof q!="string"&&typeof q!="number"||rl("children",e.textContent,q,h);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":E=e.innerHTML,q=q?q.__html:void 0,q!=null&&(q=Jp(e,q),rl($,E,q,h));continue;case"style":g.delete($),yr(e,q,h);continue;case"offsetParent":case"offsetTop":case"offsetLeft":case"offsetWidth":case"offsetHeight":case"isContentEditable":case"outerText":case"outerHTML":g.delete($.toLowerCase()),console.error("Assignment to read-only property will result in a no-op: `%s`",$);continue;case"className":g.delete("class"),E=uo(e,"class",q),rl("className",E,q,h);continue;default:u.context===Eu&&t!=="svg"&&t!=="math"?g.delete($.toLowerCase()):g.delete($),E=uo(e,$,q),rl($,E,q,h)}}}}else for(q in a)if(a.hasOwnProperty(q)&&($=a[q],$!=null)){if(Cr.hasOwnProperty(q))typeof $!="function"&&sl(q,$);else if(a.suppressHydrationWarning!==!0)switch(q){case"children":typeof $!="string"&&typeof $!="number"||rl("children",e.textContent,$,h);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"value":case"checked":case"selected":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":E=e.innerHTML,$=$?$.__html:void 0,$!=null&&($=Jp(e,$),E!==$&&(h[q]={__html:E}));continue;case"className":no(e,q,"class",$,g,h);continue;case"tabIndex":no(e,q,"tabindex",$,g,h);continue;case"style":g.delete(q),yr(e,$,h);continue;case"multiple":g.delete(q),rl(q,e.multiple,$,h);continue;case"muted":g.delete(q),rl(q,e.muted,$,h);continue;case"autoFocus":g.delete("autofocus"),rl(q,e.autofocus,$,h);continue;case"data":if(t!=="object"){g.delete(q),E=e.getAttribute("data"),rl(q,E,$,h);continue}case"src":case"href":if(!($!==""||t==="a"&&q==="href"||t==="object"&&q==="data")){console.error(q==="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.',q,q);continue}Ch(e,q,q,$,g,h);continue;case"action":case"formAction":if(E=e.getAttribute(q),typeof $=="function"){g.delete(q.toLowerCase()),q==="formAction"?(g.delete("name"),g.delete("formenctype"),g.delete("formmethod"),g.delete("formtarget")):(g.delete("enctype"),g.delete("method"),g.delete("target"));continue}else if(E===R9){g.delete(q.toLowerCase()),rl(q,"function",$,h);continue}Ch(e,q,q.toLowerCase(),$,g,h);continue;case"xlinkHref":Ch(e,q,"xlink:href",$,g,h);continue;case"contentEditable":Wp(e,q,"contenteditable",$,g,h);continue;case"spellCheck":Wp(e,q,"spellcheck",$,g,h);continue;case"draggable":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":Wp(e,q,q,$,g,h);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":Kp(e,q,q.toLowerCase(),$,g,h);continue;case"capture":case"download":e:{w=e;var oe=E=q,se=h;if(g.delete(oe),w=w.getAttribute(oe),w===null)switch(typeof $){case"undefined":case"function":case"symbol":break e;default:if($===!1)break e}else if($!=null)switch(typeof $){case"function":case"symbol":break;case"boolean":if($===!0&&w==="")break e;break;default:if($e($,E),w===""+$)break e}rl(E,w,$,se)}continue;case"cols":case"rows":case"size":case"span":e:{if(w=e,oe=E=q,se=h,g.delete(oe),w=w.getAttribute(oe),w===null)switch(typeof $){case"undefined":case"function":case"symbol":case"boolean":break e;default:if(isNaN($)||1>$)break e}else if($!=null)switch(typeof $){case"function":case"symbol":case"boolean":break;default:if(!(isNaN($)||1>$)&&($e($,E),w===""+$))break e}rl(E,w,$,se)}continue;case"rowSpan":xf(e,q,"rowspan",$,g,h);continue;case"start":xf(e,q,q,$,g,h);continue;case"xHeight":no(e,q,"x-height",$,g,h);continue;case"xlinkActuate":no(e,q,"xlink:actuate",$,g,h);continue;case"xlinkArcrole":no(e,q,"xlink:arcrole",$,g,h);continue;case"xlinkRole":no(e,q,"xlink:role",$,g,h);continue;case"xlinkShow":no(e,q,"xlink:show",$,g,h);continue;case"xlinkTitle":no(e,q,"xlink:title",$,g,h);continue;case"xlinkType":no(e,q,"xlink:type",$,g,h);continue;case"xmlBase":no(e,q,"xml:base",$,g,h);continue;case"xmlLang":no(e,q,"xml:lang",$,g,h);continue;case"xmlSpace":no(e,q,"xml:space",$,g,h);continue;case"inert":$!==""||yE[q]||(yE[q]=!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.",q)),Kp(e,q,q,$,g,h);continue;default:if(!(2<q.length)||q[0]!=="o"&&q[0]!=="O"||q[1]!=="n"&&q[1]!=="N"){w=ix(q),E=!1,u.context===Eu&&t!=="svg"&&t!=="math"?g.delete(w.toLowerCase()):(oe=q.toLowerCase(),oe=Bi.hasOwnProperty(oe)&&Bi[oe]||null,oe!==null&&oe!==q&&(E=!0,g.delete(oe)),g.delete(w));e:if(oe=e,se=w,w=$,ui(se))if(oe.hasAttribute(se))oe=oe.getAttribute(se),$e(w,se),w=oe===""+w?w:oe;else{switch(typeof w){case"function":case"symbol":break e;case"boolean":if(oe=se.toLowerCase().slice(0,5),oe!=="data-"&&oe!=="aria-")break e}w=w===void 0?void 0:null}else w=void 0;E||rl(q,w,$,h)}}}return 0<g.size&&a.suppressHydrationWarning!==!0&&Eh(e,g,h),Object.keys(h).length===0?null:h}function Yx(e,t){switch(e.length){case 0:return"";case 1:return e[0];case 2:return e[0]+" "+t+" "+e[1];default:return e.slice(0,-1).join(", ")+", "+t+" "+e[e.length-1]}}function ka(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Xx(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,a=performance.getEntriesByType("resource"),u=0;u<a.length;u++){var h=a[u],g=h.transferSize,E=h.initiatorType,w=h.duration;if(g&&w&&ka(E)){for(E=0,w=h.responseEnd,u+=1;u<a.length;u++){var $=a[u],q=$.startTime;if(q>w)break;var oe=$.transferSize,se=$.initiatorType;oe&&ka(se)&&($=$.responseEnd,E+=oe*($<w?1:(w-q)/($-q)))}if(--u,t+=8*(g+E)/(h.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}function Th(e){return e.nodeType===9?e:e.ownerDocument}function Px(e){switch(e){case _t:return Wg;case Ot:return vE;default:return Eu}}function cs(e,t){if(e===Eu)switch(t){case"svg":return Wg;case"math":return vE;default:return Eu}return e===Wg&&t==="foreignObject"?Eu:e}function Ef(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}function fb(){var e=window.event;return e&&e.type==="popstate"?e===DO?!1:(DO=e,!0):(DO=null,!1)}function br(){var e=window.event;return e&&e!==jv?e.type:null}function Cf(){var e=window.event;return e&&e!==jv?e.timeStamp:-1.1}function Qx(e){setTimeout(function(){throw e})}function Zx(e,t,a){switch(t){case"button":case"input":case"select":case"textarea":a.autoFocus&&e.focus();break;case"img":a.src?e.src=a.src:a.srcSet&&(e.srcset=a.srcSet)}}function Jx(){}function eg(e,t,a,u){Ll(e,t,a,u),e[Ga]=u}function tg(e){za(e,"")}function S2(e,t,a){e.nodeValue=a}function Kx(e){if(!e.__reactWarnedAboutChildrenConflict){var t=e[Ga]||null;if(t!==null){var a=Jt(e);a!==null&&(typeof t.children=="string"||typeof t.children=="number"?(e.__reactWarnedAboutChildrenConflict=!0,ze(a,function(){console.error('Cannot use a ref on a React element as a container to `createRoot` or `createPortal` if that element also sets "children" text content using React. It should be a leaf with no children. Otherwise it\'s ambiguous which children should be used.')})):t.dangerouslySetInnerHTML!=null&&(e.__reactWarnedAboutChildrenConflict=!0,ze(a,function(){console.error('Cannot use a ref on a React element as a container to `createRoot` or `createPortal` if that element also sets "dangerouslySetInnerHTML" using React. It should be a leaf with no children. Otherwise it\'s ambiguous which children should be used.')})))}}}function Ks(e){return e==="head"}function Wx(e,t){e.removeChild(t)}function e1(e,t){(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e).removeChild(t)}function Wc(e,t){var a=t,u=0;do{var h=a.nextSibling;if(e.removeChild(a),h&&h.nodeType===8)if(a=h.data,a===wv||a===bE){if(u===0){e.removeChild(h),lu(t);return}u--}else if(a===Ov||a===id||a===rm||a===Kg||a===im)u++;else if(a===_9)fs(e.ownerDocument.documentElement);else if(a===B9){a=e.ownerDocument.head,fs(a);for(var g=a.firstChild;g;){var E=g.nextSibling,w=g.nodeName;g[Lf]||w==="SCRIPT"||w==="STYLE"||w==="LINK"&&g.rel.toLowerCase()==="stylesheet"||a.removeChild(g),g=E}}else a===$9&&fs(e.ownerDocument.body);a=h}while(a);lu(t)}function Oh(e,t){var a=e;e=0;do{var u=a.nextSibling;if(a.nodeType===1?t?(a._stashedDisplay=a.style.display,a.style.display="none"):(a.style.display=a._stashedDisplay||"",a.getAttribute("style")===""&&a.removeAttribute("style")):a.nodeType===3&&(t?(a._stashedText=a.nodeValue,a.nodeValue=""):a.nodeValue=a._stashedText||""),u&&u.nodeType===8)if(a=u.data,a===wv){if(e===0)break;e--}else a!==Ov&&a!==id&&a!==rm&&a!==Kg||e++;a=u}while(a)}function t1(e){Oh(e,!0)}function n1(e){e=e.style,typeof e.setProperty=="function"?e.setProperty("display","none","important"):e.display="none"}function l1(e){e.nodeValue=""}function a1(e){Oh(e,!1)}function o1(e,t){t=t[H9],t=t!=null&&t.hasOwnProperty("display")?t.display:null,e.style.display=t==null||typeof t=="boolean"?"":(""+t).trim()}function i1(e,t){e.nodeValue=t}function Tf(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var a=t;switch(t=t.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":Tf(a),Nn(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function r1(e,t,a,u){for(;e.nodeType===1;){var h=a;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!u&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(u){if(!e[Lf])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(g=e.getAttribute("rel"),g==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(g!==h.rel||e.getAttribute("href")!==(h.href==null||h.href===""?null:h.href)||e.getAttribute("crossorigin")!==(h.crossOrigin==null?null:h.crossOrigin)||e.getAttribute("title")!==(h.title==null?null:h.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(g=e.getAttribute("src"),(g!==(h.src==null?null:h.src)||e.getAttribute("type")!==(h.type==null?null:h.type)||e.getAttribute("crossorigin")!==(h.crossOrigin==null?null:h.crossOrigin))&&g&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){$e(h.name,"name");var g=h.name==null?null:""+h.name;if(h.type==="hidden"&&e.getAttribute("name")===g)return e}else return e;if(e=wo(e.nextSibling),e===null)break}return null}function s1(e,t,a){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=wo(e.nextSibling),e===null))return null;return e}function Sn(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=wo(e.nextSibling),e===null))return null;return e}function wh(e){return e.data===id||e.data===rm}function db(e){return e.data===Kg||e.data===id&&e.ownerDocument.readyState!==u4}function c1(e,t){var a=e.ownerDocument;if(e.data===rm)e._reactRetry=t;else if(e.data!==id||a.readyState!==u4)t();else{var u=function(){t(),a.removeEventListener("DOMContentLoaded",u)};a.addEventListener("DOMContentLoaded",u),e._reactRetry=u}}function wo(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t===Ov||t===Kg||t===id||t===rm||t===im||t===AO||t===c4)break;if(t===wv||t===bE)return null}}return e}function u1(e){if(e.nodeType===1){for(var t=e.nodeName.toLowerCase(),a={},u=e.attributes,h=0;h<u.length;h++){var g=u[h];a[ss(g.name)]=g.name.toLowerCase()==="style"?Js(e):g.value}return{type:t,props:a}}return e.nodeType===8?e.data===im?{type:"Activity",props:{}}:{type:"Suspense",props:{}}:e.nodeValue}function f1(e,t,a){return a===null||a[N9]!==!0?(e.nodeValue===t?e=null:(t=Ri(t),e=Ri(e.nodeValue)===t?null:e.nodeValue),e):null}function Of(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a===wv||a===bE){if(t===0)return wo(e.nextSibling);t--}else a!==Ov&&a!==Kg&&a!==id&&a!==rm&&a!==im||t++}e=e.nextSibling}return null}function eu(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a===Ov||a===Kg||a===id||a===rm||a===im){if(t===0)return e;t--}else a!==wv&&a!==bE||t++}e=e.previousSibling}return null}function hb(e){lu(e)}function ng(e){lu(e)}function mb(e){lu(e)}function us(e,t,a,u,h){switch(h&&Qn(e,u.ancestorInfo),t=Th(a),e){case"html":if(e=t.documentElement,!e)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 e;case"head":if(e=t.head,!e)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 e;case"body":if(e=t.body,!e)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 e;default:throw Error("resolveSingletonInstance was called with an element type that is not supported. This is a bug in React.")}}function vr(e,t,a,u){if(!a[hs]&&Jt(a)){var h=a.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.",h,h,h)}switch(e){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(h=a.attributes;h.length;)a.removeAttributeNode(h[0]);Kn(a,e,t),a[Wn]=u,a[Ga]=t}function fs(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Nn(e)}function lg(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}function pb(e,t,a){var u=ey;if(u&&typeof t=="string"&&t){var h=Mt(t);h='link[rel="'+e+'"][href="'+h+'"]',typeof a=="string"&&(h+='[crossorigin="'+a+'"]'),g4.has(h)||(g4.add(h),e={rel:e,crossOrigin:a,href:t},u.querySelector(h)===null&&(t=u.createElement("link"),Kn(t,"link",e),rn(t),u.head.appendChild(t)))}}function gb(e,t,a,u){var h=(h=jo.current)?lg(h):null;if(!h)throw Error('"resourceRoot" was expected to exist. This is a bug in React.');switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(a=tu(a.href),t=on(h).hoistableStyles,u=t.get(a),u||(u={type:"style",instance:null,count:0,state:null},t.set(a,u)),u):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){e=tu(a.href);var g=on(h).hoistableStyles,E=g.get(e);if(!E&&(h=h.ownerDocument||h,E={type:"stylesheet",instance:null,count:0,state:{loading:cm,preload:null}},g.set(e,E),(g=h.querySelector(Ah(e)))&&!g._p&&(E.instance=g,E.state.loading=Av|_r),!$r.has(e))){var w={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy};$r.set(e,w),g||d1(h,e,w,E.state)}if(t&&u===null)throw a=`
268
-
269
- - `+jh(t)+`
270
- + `+jh(a),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."+a);return E}if(t&&u!==null)throw a=`
271
-
272
- - `+jh(t)+`
273
- + `+jh(a),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."+a);return null;case"script":return t=a.async,a=a.src,typeof a=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(a=nu(a),t=on(h).hoistableScripts,u=t.get(a),u||(u={type:"script",instance:null,count:0,state:null},t.set(a,u)),u):{type:"void",instance:null,count:0,state:null};default:throw Error('getResource encountered a type it did not expect: "'+e+'". this is a bug in React.')}}function jh(e){var t=0,a="<link";return typeof e.rel=="string"?(t++,a+=' rel="'+e.rel+'"'):Ao.call(e,"rel")&&(t++,a+=' rel="'+(e.rel===null?"null":"invalid type "+typeof e.rel)+'"'),typeof e.href=="string"?(t++,a+=' href="'+e.href+'"'):Ao.call(e,"href")&&(t++,a+=' href="'+(e.href===null?"null":"invalid type "+typeof e.href)+'"'),typeof e.precedence=="string"?(t++,a+=' precedence="'+e.precedence+'"'):Ao.call(e,"precedence")&&(t++,a+=" precedence={"+(e.precedence===null?"null":"invalid type "+typeof e.precedence)+"}"),Object.getOwnPropertyNames(e).length>t&&(a+=" ..."),a+" />"}function tu(e){return'href="'+Mt(e)+'"'}function Ah(e){return'link[rel="stylesheet"]['+e+"]"}function ag(e){return Lt({},e,{"data-precedence":e.precedence,precedence:null})}function d1(e,t,a,u){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?u.loading=Av:(t=e.createElement("link"),u.preload=t,t.addEventListener("load",function(){return u.loading|=Av}),t.addEventListener("error",function(){return u.loading|=m4}),Kn(t,"link",a),rn(t),e.head.appendChild(t))}function nu(e){return'[src="'+Mt(e)+'"]'}function Mh(e){return"script[async]"+e}function og(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var u=e.querySelector('style[data-href~="'+Mt(a.href)+'"]');if(u)return t.instance=u,rn(u),u;var h=Lt({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return u=(e.ownerDocument||e).createElement("style"),rn(u),Kn(u,"style",h),wf(u,a.precedence,e),t.instance=u;case"stylesheet":h=tu(a.href);var g=e.querySelector(Ah(h));if(g)return t.state.loading|=_r,t.instance=g,rn(g),g;u=ag(a),(h=$r.get(h))&&yb(u,h),g=(e.ownerDocument||e).createElement("link"),rn(g);var E=g;return E._p=new Promise(function(w,$){E.onload=w,E.onerror=$}),Kn(g,"link",u),t.state.loading|=_r,wf(g,a.precedence,e),t.instance=g;case"script":return g=nu(a.src),(h=e.querySelector(Mh(g)))?(t.instance=h,rn(h),h):(u=a,(h=$r.get(g))&&(u=Lt({},a),bb(u,h)),e=e.ownerDocument||e,h=e.createElement("script"),rn(h),Kn(h,"link",u),e.head.appendChild(h),t.instance=h);case"void":return null;default:throw Error('acquireResource encountered a resource type it did not expect: "'+t.type+'". this is a bug in React.')}else t.type==="stylesheet"&&(t.state.loading&_r)===cm&&(u=t.instance,t.state.loading|=_r,wf(u,a.precedence,e));return t.instance}function wf(e,t,a){for(var u=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),h=u.length?u[u.length-1]:null,g=h,E=0;E<u.length;E++){var w=u[E];if(w.dataset.precedence===t)g=w;else if(g!==h)break}g?g.parentNode.insertBefore(e,g.nextSibling):(t=a.nodeType===9?a.head:a,t.insertBefore(e,t.firstChild))}function yb(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function bb(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}function jf(e,t,a){if(SE===null){var u=new Map,h=SE=new Map;h.set(a,u)}else h=SE,u=h.get(a),u||(u=new Map,h.set(a,u));if(u.has(e))return u;for(u.set(e,null),a=a.getElementsByTagName(e),h=0;h<a.length;h++){var g=a[h];if(!(g[Lf]||g[Wn]||e==="link"&&g.getAttribute("rel")==="stylesheet")&&g.namespaceURI!==_t){var E=g.getAttribute(t)||"";E=e+E;var w=u.get(E);w?w.push(g):u.set(E,[g])}}return u}function h1(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function m1(e,t,a){var u=!a.ancestorInfo.containerTagInScope;if(a.context===Wg||t.itemProp!=null)return!u||t.itemProp==null||e!=="meta"&&e!=="title"&&e!=="style"&&e!=="link"&&e!=="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.",e,e),!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href===""){u&&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 t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError){if(t.rel==="stylesheet"&&typeof t.precedence=="string"){e=t.href;var h=t.onError,g=t.disabled;a=[],t.onLoad&&a.push("`onLoad`"),h&&a.push("`onError`"),g!=null&&a.push("`disabled`"),h=Yx(a,"and"),h+=a.length===1?" prop":" props",g=a.length===1?"an "+h:"the "+h,a.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.',e,g,h)}u&&(typeof t.rel!="string"||typeof t.href!="string"||t.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"):(t.onError||t.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(t.rel){case"stylesheet":return e=t.precedence,t=t.disabled,typeof e!="string"&&u&&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 e=="string"&&t==null;default:return!0}case"script":if(e=t.async&&typeof t.async!="function"&&typeof t.async!="symbol",!e||t.onLoad||t.onError||!t.src||typeof t.src!="string"){u&&(e?t.onLoad||t.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":u&&console.error("Cannot render <%s> outside the main document. Try moving it into the root <head> tag.",e)}return!1}function Yt(e){return!(e.type==="stylesheet"&&(e.state.loading&p4)===cm)}function vb(e,t,a,u){if(a.type==="stylesheet"&&(typeof u.media!="string"||matchMedia(u.media).matches!==!1)&&(a.state.loading&_r)===cm){if(a.instance===null){var h=tu(u.href),g=t.querySelector(Ah(h));if(g){t=g._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Af.bind(e),t.then(e,e)),a.state.loading|=_r,a.instance=g,rn(g);return}g=t.ownerDocument||t,u=ag(u),(h=$r.get(h))&&yb(u,h),g=g.createElement("link"),rn(g);var E=g;E._p=new Promise(function(w,$){E.onload=w,E.onerror=$}),Kn(g,"link",u),a.instance=g}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(a,t),(t=a.state.preload)&&(a.state.loading&p4)===cm&&(e.count++,a=Af.bind(e),t.addEventListener("load",a),t.addEventListener("error",a))}}function ig(e,t){return e.stylesheets&&e.count===0&&zh(e,e.stylesheets),0<e.count||0<e.imgCount?function(a){var u=setTimeout(function(){if(e.stylesheets&&zh(e,e.stylesheets),e.unsuspend){var g=e.unsuspend;e.unsuspend=null,g()}},q9+t);0<e.imgBytes&&NO===0&&(NO=125*Xx()*F9);var h=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&zh(e,e.stylesheets),e.unsuspend)){var g=e.unsuspend;e.unsuspend=null,g()}},(e.imgBytes>NO?50:V9)+t);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(u),clearTimeout(h)}}:null}function Af(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)zh(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}function zh(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,xE=new Map,t.forEach(Sb,e),xE=null,Af.call(e))}function Sb(e,t){if(!(t.state.loading&_r)){var a=xE.get(e);if(a)var u=a.get(_O);else{a=new Map,xE.set(e,a);for(var h=e.querySelectorAll("link[data-precedence],style[data-precedence]"),g=0;g<h.length;g++){var E=h[g];(E.nodeName==="LINK"||E.getAttribute("media")!=="not all")&&(a.set(E.dataset.precedence,E),u=E)}u&&a.set(_O,u)}h=t.instance,E=h.getAttribute("data-precedence"),g=a.get(E)||u,g===u&&a.set(_O,h),a.set(E,h),this.count++,u=Af.bind(this),h.addEventListener("load",u),h.addEventListener("error",u),g?g.parentNode.insertBefore(h,g.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(h,e.firstChild)),t.state.loading|=_r}}function Dh(e,t,a,u,h,g,E,w,$){for(this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=sm,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Oe(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Oe(0),this.hiddenUpdates=Oe(null),this.identifierPrefix=u,this.onUncaughtError=h,this.onCaughtError=g,this.onRecoverableError=E,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=$,this.incompleteTransitions=new Map,this.passiveEffectDuration=this.effectDuration=-0,this.memoizedUpdaters=new Set,e=this.pendingUpdatersLaneMap=[],t=0;31>t;t++)e.push(new Set);this._debugRootType=a?"hydrateRoot()":"createRoot()"}function Rh(e,t,a,u,h,g,E,w,$,q,oe,se){return e=new Dh(e,t,a,E,$,q,oe,se,w),t=d9,g===!0&&(t|=io|ms),t|=qt,g=A(3,null,null,t),e.current=g,g.stateNode=e,t=op(),Dc(t),e.pooledCache=t,Dc(t),g.memoizedState={element:u,isDehydrated:a,cache:t},Qt(g),e}function p1(e){return e?(e=Gf,e):Gf}function rg(e,t,a,u,h,g){if(ql&&typeof ql.onScheduleFiberRoot=="function")try{ql.onScheduleFiberRoot(ru,u,a)}catch(E){xr||(xr=!0,console.error("React instrumentation encountered an error: %o",E))}h=p1(h),u.context===null?u.context=h:u.pendingContext=h,Sr&&oo!==null&&!S4&&(S4=!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.
274
-
275
- Check the render method of %s.`,V(oo)||"Unknown")),u=Hl(t),u.payload={element:a},g=g===void 0?null:g,g!==null&&(typeof g!="function"&&console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",g),u.callback=g),a=nr(e,u,t),a!==null&&(Wi(t,"root.render()",null),vt(a,e,t),Jo(a,e,t))}function g1(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function xb(e,t){g1(e,t),(e=e.alternate)&&g1(e,t)}function Eb(e){if(e.tag===13||e.tag===31){var t=Sa(e,67108864);t!==null&&vt(t,e,67108864),xb(e,67108864)}}function Cb(e){if(e.tag===13||e.tag===31){var t=Ea(e);t=ul(t);var a=Sa(e,t);a!==null&&vt(a,e,t),xb(e,t)}}function Mn(){return oo}function Tb(e,t,a,u){var h=Ce.T;Ce.T=null;var g=pn.p;try{pn.p=Vl,Ob(e,t,a,u)}finally{pn.p=g,Ce.T=h}}function fa(e,t,a,u){var h=Ce.T;Ce.T=null;var g=pn.p;try{pn.p=ha,Ob(e,t,a,u)}finally{pn.p=g,Ce.T=h}}function Ob(e,t,a,u){if(CE){var h=sg(u);if(h===null)zi(e,t,u,TE,a),ug(e,u);else if(y1(h,e,t,a,u))u.stopPropagation();else if(ug(e,u),t&4&&-1<I9.indexOf(e)){for(;h!==null;){var g=Jt(h);if(g!==null)switch(g.tag){case 3:if(g=g.stateNode,g.current.memoizedState.isDehydrated){var E=Ke(g.pendingLanes);if(E!==0){var w=g;for(w.pendingLanes|=2,w.entangledLanes|=2;E;){var $=1<<31-da(E);w.entanglements[1]|=$,E&=~$}to(g),(cn&(pa|qi))===ja&&(iE=ea()+PR,pr(0))}}break;case 31:case 13:w=Sa(g,2),w!==null&&vt(w,g,2),Oo(),xb(g,2)}if(g=sg(u),g===null&&zi(e,t,u,TE,a),g===h)break;h=g}h!==null&&u.stopPropagation()}else zi(e,t,u,null,a)}}function sg(e){return e=mi(e),wb(e)}function wb(e){if(TE=null,e=gn(e),e!==null){var t=_(e);if(t===null)e=null;else{var a=t.tag;if(a===13){if(e=U(t),e!==null)return e;e=null}else if(a===31){if(e=B(t),e!==null)return e;e=null}else if(a===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return TE=e,null}function cg(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"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 Vl;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 ha;case"message":switch(Uh()){case Bb:return Vl;case vg:return ha;case iu:case C1:return Ta;case Sg:return lc;default:return Ta}default:return Ta}}function ug(e,t){switch(e){case"focusin":case"focusout":rd=null;break;case"dragenter":case"dragleave":sd=null;break;case"mouseover":case"mouseout":cd=null;break;case"pointerover":case"pointerout":zv.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Dv.delete(t.pointerId)}}function Ws(e,t,a,u,h,g){return e===null||e.nativeEvent!==g?(e={blockedOn:t,domEventName:a,eventSystemFlags:u,nativeEvent:g,targetContainers:[h]},t!==null&&(t=Jt(t),t!==null&&Eb(t)),e):(e.eventSystemFlags|=u,t=e.targetContainers,h!==null&&t.indexOf(h)===-1&&t.push(h),e)}function y1(e,t,a,u,h){switch(t){case"focusin":return rd=Ws(rd,e,t,a,u,h),!0;case"dragenter":return sd=Ws(sd,e,t,a,u,h),!0;case"mouseover":return cd=Ws(cd,e,t,a,u,h),!0;case"pointerover":var g=h.pointerId;return zv.set(g,Ws(zv.get(g)||null,e,t,a,u,h)),!0;case"gotpointercapture":return g=h.pointerId,Dv.set(g,Ws(Dv.get(g)||null,e,t,a,u,h)),!0}return!1}function jb(e){var t=gn(e.target);if(t!==null){var a=_(t);if(a!==null){if(t=a.tag,t===13){if(t=U(a),t!==null){e.blockedOn=t,At(e.priority,function(){Cb(a)});return}}else if(t===31){if(t=B(a),t!==null){e.blockedOn=t,At(e.priority,function(){Cb(a)});return}}else if(t===3&&a.stateNode.current.memoizedState.isDehydrated){e.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Mf(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=sg(e.nativeEvent);if(a===null){a=e.nativeEvent;var u=new a.constructor(a.type,a),h=u;Vb!==null&&console.error("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."),Vb=h,a.target.dispatchEvent(u),Vb===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."),Vb=null}else return t=Jt(a),t!==null&&Eb(t),e.blockedOn=a,!1;t.shift()}return!0}function fg(e,t,a){Mf(e)&&a.delete(t)}function x2(){$O=!1,rd!==null&&Mf(rd)&&(rd=null),sd!==null&&Mf(sd)&&(sd=null),cd!==null&&Mf(cd)&&(cd=null),zv.forEach(fg),Dv.forEach(fg)}function Nh(e,t){e.blockedOn===t&&(e.blockedOn=null,$O||($O=!0,wl.unstable_scheduleCallback(wl.unstable_NormalPriority,x2)))}function b1(e){OE!==e&&(OE=e,wl.unstable_scheduleCallback(wl.unstable_NormalPriority,function(){OE===e&&(OE=null);for(var t=0;t<e.length;t+=3){var a=e[t],u=e[t+1],h=e[t+2];if(typeof u!="function"){if(wb(u||a)===null)continue;break}var g=Jt(a);g!==null&&(e.splice(t,3),t-=3,a={pending:!0,data:h,method:a.method,action:u},Object.freeze(a),ls(g,a,u,h))}}))}function lu(e){function t($){return Nh($,e)}rd!==null&&Nh(rd,e),sd!==null&&Nh(sd,e),cd!==null&&Nh(cd,e),zv.forEach(t),Dv.forEach(t);for(var a=0;a<ud.length;a++){var u=ud[a];u.blockedOn===e&&(u.blockedOn=null)}for(;0<ud.length&&(a=ud[0],a.blockedOn===null);)jb(a),a.blockedOn===null&&ud.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(u=0;u<a.length;u+=3){var h=a[u],g=a[u+1],E=h[Ga]||null;if(typeof g=="function")E||b1(a);else if(E){var w=null;if(g&&g.hasAttribute("formAction")){if(h=g,E=g[Ga]||null)w=E.formAction;else if(wb(h)!==null)continue}else w=E.action;typeof w=="function"?a[u+1]=w:(a.splice(u,3),u-=3),b1(a)}}}function v1(){function e(g){g.canIntercept&&g.info==="react-transition"&&g.intercept({handler:function(){return new Promise(function(E){return h=E})},focusReset:"manual",scroll:"manual"})}function t(){h!==null&&(h(),h=null),u||setTimeout(a,20)}function a(){if(!u&&!navigation.transition){var g=navigation.currentEntry;g&&g.url!=null&&navigation.navigate(g.url,{state:g.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var u=!1,h=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(a,100),function(){u=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),h!==null&&(h(),h=null)}}}function Ab(e){this._internalRoot=e}function Ni(e){this._internalRoot=e}function Mb(e){e[hs]&&(e._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 wl=rj(),_h=H,E2=ty,Lt=Object.assign,S1=Symbol.for("react.element"),ti=Symbol.for("react.transitional.element"),ec=Symbol.for("react.portal"),zf=Symbol.for("react.fragment"),Ia=Symbol.for("react.strict_mode"),$h=Symbol.for("react.profiler"),dg=Symbol.for("react.consumer"),_i=Symbol.for("react.context"),Df=Symbol.for("react.forward_ref"),au=Symbol.for("react.suspense"),ao=Symbol.for("react.suspense_list"),Bh=Symbol.for("react.memo"),Ca=Symbol.for("react.lazy"),$i=Symbol.for("react.activity"),C2=Symbol.for("react.memo_cache_sentinel"),x1=Symbol.iterator,Rf=Symbol.for("react.client.reference"),_l=Array.isArray,Ce=_h.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,pn=E2.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,T2=Object.freeze({pending:!1,data:null,method:null,action:null}),zb=[],Db=[],ds=-1,tc=F(null),Nf=F(null),jo=F(null),nc=F(null),_f=0,E1,ou,$f,Rb,Hh,hg,mg;ne.__reactDisabledLog=!0;var Bf,Nb,pg=!1,_b=new(typeof WeakMap=="function"?WeakMap:Map),oo=null,Sr=!1,Ao=Object.prototype.hasOwnProperty,$b=wl.unstable_scheduleCallback,gg=wl.unstable_cancelCallback,yg=wl.unstable_shouldYield,bg=wl.unstable_requestPaint,ea=wl.unstable_now,Uh=wl.unstable_getCurrentPriorityLevel,Bb=wl.unstable_ImmediatePriority,vg=wl.unstable_UserBlockingPriority,iu=wl.unstable_NormalPriority,C1=wl.unstable_LowPriority,Sg=wl.unstable_IdlePriority,Hb=wl.log,T1=wl.unstable_setDisableYieldValue,ru=null,ql=null,xr=!1,Er=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u",da=Math.clz32?Math.clz32:Be,Ub=Math.log,xg=Math.LN2,Hf=256,Lh=262144,Uf=4194304,Vl=2,ha=8,Ta=32,lc=268435456,ni=Math.random().toString(36).slice(2),Wn="__reactFiber$"+ni,Ga="__reactProps$"+ni,hs="__reactContainer$"+ni,su="__reactEvents$"+ni,O2="__reactListeners$"+ni,O1="__reactHandles$"+ni,qh="__reactResources$"+ni,Lf="__reactMarker$"+ni,w1=new Set,Cr={},qf={},j1={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0},Vf=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]*$"),Lb={},Eg={},Cg=/[\n"\\]/g,qb=!1,A1=!1,Vh=!1,l=!1,o=!1,c=!1,d=["value","defaultValue"],v=!1,x=/["'&<>\n\t]|^\s|\s$/,M="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(" "),I="applet caption html table td th marquee object template foreignObject desc title".split(" "),W=I.concat(["button"]),be="dd dt li option optgroup p rp rt".split(" "),je={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null,containerTagInScope:null,implicitRootScope:!1},Ne={},ve={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"]},Te=/([A-Z])/g,We=/^ms-/,ht=/^(?:webkit|moz|o)[A-Z]/,zn=/^-ms-/,de=/-(.)/g,re=/;\s*$/,ye={},Re={},lt=!1,sn=!1,et=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(" ")),Ot="http://www.w3.org/1998/Math/MathML",_t="http://www.w3.org/2000/svg",fn=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"]]),Bi={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"},M1={"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,"aria-braillelabel":0,"aria-brailleroledescription":0,"aria-colindextext":0,"aria-rowindextext":0},Tg={},T7=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]*$"),O7=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]*$"),ED=!1,Mo={},CD=/^on./,w7=/^on[^A-Z]/,j7=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]*$"),A7=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]*$"),M7=/^[\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,Vb=null,Og=null,wg=null,w2=!1,ac=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),j2=!1;if(ac)try{var Fb={};Object.defineProperty(Fb,"passive",{get:function(){j2=!0}}),window.addEventListener("test",Fb,Fb),window.removeEventListener("test",Fb,Fb)}catch{j2=!1}var Ff=null,A2=null,z1=null,Fh={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},D1=Xl(Fh),kb=Lt({},Fh,{view:0,detail:0}),z7=Xl(kb),M2,z2,Ib,R1=Lt({},kb,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Rd,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Ib&&(Ib&&e.type==="mousemove"?(M2=e.screenX-Ib.screenX,z2=e.screenY-Ib.screenY):z2=M2=0,Ib=e),M2)},movementY:function(e){return"movementY"in e?e.movementY:z2}}),TD=Xl(R1),D7=Lt({},R1,{dataTransfer:0}),R7=Xl(D7),N7=Lt({},kb,{relatedTarget:0}),D2=Xl(N7),_7=Lt({},Fh,{animationName:0,elapsedTime:0,pseudoElement:0}),$7=Xl(_7),B7=Lt({},Fh,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),H7=Xl(B7),U7=Lt({},Fh,{data:0}),OD=Xl(U7),L7=OD,q7={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},V7={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"},F7={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"},k7=Lt({},kb,{key:function(e){if(e.key){var t=q7[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Dd(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?V7[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Rd,charCode:function(e){return e.type==="keypress"?Dd(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Dd(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),I7=Xl(k7),G7=Lt({},R1,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),wD=Xl(G7),Y7=Lt({},kb,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Rd}),X7=Xl(Y7),P7=Lt({},Fh,{propertyName:0,elapsedTime:0,pseudoElement:0}),Q7=Xl(P7),Z7=Lt({},R1,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),J7=Xl(Z7),K7=Lt({},Fh,{newState:0,oldState:0}),W7=Xl(K7),e9=[9,13,27,32],jD=229,R2=ac&&"CompositionEvent"in window,Gb=null;ac&&"documentMode"in document&&(Gb=document.documentMode);var t9=ac&&"TextEvent"in window&&!Gb,AD=ac&&(!R2||Gb&&8<Gb&&11>=Gb),MD=32,zD=String.fromCharCode(MD),DD=!1,jg=!1,n9={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},Yb=null,Xb=null,RD=!1;ac&&(RD=Pm("input")&&(!document.documentMode||9<document.documentMode));var zo=typeof Object.is=="function"?Object.is:Qm,l9=ac&&"documentMode"in document&&11>=document.documentMode,Ag=null,N2=null,Pb=null,_2=!1,Mg={animationend:Cc("Animation","AnimationEnd"),animationiteration:Cc("Animation","AnimationIteration"),animationstart:Cc("Animation","AnimationStart"),transitionrun:Cc("Transition","TransitionRun"),transitionstart:Cc("Transition","TransitionStart"),transitioncancel:Cc("Transition","TransitionCancel"),transitionend:Cc("Transition","TransitionEnd")},$2={},ND={};ac&&(ND=document.createElement("div").style,"AnimationEvent"in window||(delete Mg.animationend.animation,delete Mg.animationiteration.animation,delete Mg.animationstart.animation),"TransitionEvent"in window||delete Mg.transitionend.transition);var _D=Tc("animationend"),$D=Tc("animationiteration"),BD=Tc("animationstart"),a9=Tc("transitionrun"),o9=Tc("transitionstart"),i9=Tc("transitioncancel"),HD=Tc("transitionend"),UD=new Map,B2="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(" ");B2.push("scrollEnd");var LD=0;if(typeof performance=="object"&&typeof performance.now=="function")var r9=performance,qD=function(){return r9.now()};else{var s9=Date;qD=function(){return s9.now()}}var H2=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},c9="This object has been omitted by React in the console log to avoid sending too much data from the server. Try logging smaller or more specific objects.",N1=0,U2=1,L2=2,q2=3,_1="– ",$1="+ ",VD="  ",el=typeof console<"u"&&typeof console.timeStamp=="function"&&typeof performance<"u"&&typeof performance.measure=="function",Tr="Components ⚛",Wt="Scheduler ⚛",an="Blocking",kf=!1,cu={color:"primary",properties:null,tooltipText:"",track:Tr},If={start:-0,end:-0,detail:{devtools:cu}},u9=["Changed Props",""],FD="This component received deeply equal props. It might benefit from useMemo or the React Compiler in its owner.",f9=["Changed Props",FD],Qb=1,uu=2,Or=[],zg=0,V2=0,Gf={};Object.freeze(Gf);var wr=null,Dg=null,bt=0,d9=1,qt=2,io=8,ms=16,h9=32,kD=!1;try{var ID=Object.preventExtensions({})}catch{kD=!0}var F2=new WeakMap,Rg=[],Ng=0,B1=null,Zb=0,jr=[],Ar=0,kh=null,fu=1,du="",Ya=null,tl=null,Kt=!1,oc=!1,Hi=null,Yf=null,Mr=!1,k2=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."),I2=F(null),G2=F(null),GD={},H1=null,_g=null,$g=!1,m9=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(a,u){e.push(u)}};this.abort=function(){t.aborted=!0,e.forEach(function(a){return a()})}},p9=wl.unstable_scheduleCallback,g9=wl.unstable_NormalPriority,ta={$$typeof:_i,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0,_currentRenderer:null,_currentRenderer2:null},na=wl.unstable_now,U1=console.createTask?console.createTask:function(){return null},Jb=1,L1=2,Oa=-0,Xf=-0,hu=-0,mu=null,Do=-1.1,Ih=-0,yl=-0,ot=-1.1,pt=-1.1,cl=null,jl=!1,Gh=-0,ic=-1.1,Kb=null,Pf=0,Y2=null,X2=null,Yh=-1.1,Wb=null,Bg=-1.1,q1=-1.1,pu=-0,gu=-1.1,zr=-1.1,P2=0,ev=null,YD=null,XD=null,Qf=-1.1,Xh=null,Zf=-1.1,V1=-1.1,PD=-0,QD=-0,F1=0,y9=null,ZD=0,tv=-1.1,k1=!1,I1=!1,nv=null,Q2=0,Ph=0,Hg=null,JD=Ce.S;Ce.S=function(e,t){if(YR=ea(),typeof t=="object"&&t!==null&&typeof t.then=="function"){if(0>gu&&0>zr){gu=na();var a=Cf(),u=br();(a!==Zf||u!==Xh)&&(Zf=-1.1),Qf=a,Xh=u}Zr(e,t)}JD!==null&&JD(e,t)};var Qh=F(null),ps={recordUnsafeLifecycleWarnings:function(){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}},lv=[],av=[],ov=[],iv=[],rv=[],sv=[],Zh=new Set;ps.recordUnsafeLifecycleWarnings=function(e,t){Zh.has(e.type)||(typeof t.componentWillMount=="function"&&t.componentWillMount.__suppressDeprecationWarning!==!0&&lv.push(e),e.mode&io&&typeof t.UNSAFE_componentWillMount=="function"&&av.push(e),typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&ov.push(e),e.mode&io&&typeof t.UNSAFE_componentWillReceiveProps=="function"&&iv.push(e),typeof t.componentWillUpdate=="function"&&t.componentWillUpdate.__suppressDeprecationWarning!==!0&&rv.push(e),e.mode&io&&typeof t.UNSAFE_componentWillUpdate=="function"&&sv.push(e))},ps.flushPendingUnsafeLifecycleWarnings=function(){var e=new Set;0<lv.length&&(lv.forEach(function(w){e.add(V(w)||"Component"),Zh.add(w.type)}),lv=[]);var t=new Set;0<av.length&&(av.forEach(function(w){t.add(V(w)||"Component"),Zh.add(w.type)}),av=[]);var a=new Set;0<ov.length&&(ov.forEach(function(w){a.add(V(w)||"Component"),Zh.add(w.type)}),ov=[]);var u=new Set;0<iv.length&&(iv.forEach(function(w){u.add(V(w)||"Component"),Zh.add(w.type)}),iv=[]);var h=new Set;0<rv.length&&(rv.forEach(function(w){h.add(V(w)||"Component"),Zh.add(w.type)}),rv=[]);var g=new Set;if(0<sv.length&&(sv.forEach(function(w){g.add(V(w)||"Component"),Zh.add(w.type)}),sv=[]),0<t.size){var E=O(t);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.
276
-
277
- * Move code with side effects to componentDidMount, and set initial state in the constructor.
278
-
279
- Please update the following components: %s`,E)}0<u.size&&(E=O(u),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.
280
-
281
- * Move data fetching code or side effects to componentDidUpdate.
282
- * 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
283
-
284
- Please update the following components: %s`,E)),0<g.size&&(E=O(g),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.
285
-
286
- * Move data fetching code or side effects to componentDidUpdate.
287
-
288
- Please update the following components: %s`,E)),0<e.size&&(E=O(e),console.warn(`componentWillMount has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
289
-
290
- * Move code with side effects to componentDidMount, and set initial state in the constructor.
291
- * 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.
292
-
293
- Please update the following components: %s`,E)),0<a.size&&(E=O(a),console.warn(`componentWillReceiveProps has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
294
-
295
- * Move data fetching code or side effects to componentDidUpdate.
296
- * 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
297
- * 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.
298
-
299
- Please update the following components: %s`,E)),0<h.size&&(E=O(h),console.warn(`componentWillUpdate has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
300
-
301
- * Move data fetching code or side effects to componentDidUpdate.
302
- * 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.
303
-
304
- Please update the following components: %s`,E))};var G1=new Map,KD=new Set;ps.recordLegacyContextWarning=function(e,t){for(var a=null,u=e;u!==null;)u.mode&io&&(a=u),u=u.return;a===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."):!KD.has(e.type)&&(u=G1.get(a),e.type.contextTypes!=null||e.type.childContextTypes!=null||t!==null&&typeof t.getChildContext=="function")&&(u===void 0&&(u=[],G1.set(a,u)),u.push(e))},ps.flushLegacyContextWarning=function(){G1.forEach(function(e){if(e.length!==0){var t=e[0],a=new Set;e.forEach(function(h){a.add(V(h)||"Component"),KD.add(h.type)});var u=O(a);ze(t,function(){console.error(`Legacy context API has been detected within a strict-mode tree.
305
-
306
- The old API will be supported in all 16.x releases, but applications using it should migrate to the new version.
307
-
308
- Please update the following components: %s
309
-
310
- Learn more about this warning here: https://react.dev/link/legacy-context`,u)})}})},ps.discardPendingWarnings=function(){lv=[],av=[],ov=[],iv=[],rv=[],sv=[],G1=new Map};var WD={react_stack_bottom_frame:function(e,t,a){var u=Sr;Sr=!0;try{return e(t,a)}finally{Sr=u}}},Z2=WD.react_stack_bottom_frame.bind(WD),eR={react_stack_bottom_frame:function(e){var t=Sr;Sr=!0;try{return e.render()}finally{Sr=t}}},tR=eR.react_stack_bottom_frame.bind(eR),nR={react_stack_bottom_frame:function(e,t){try{t.componentDidMount()}catch(a){Nt(e,e.return,a)}}},J2=nR.react_stack_bottom_frame.bind(nR),lR={react_stack_bottom_frame:function(e,t,a,u,h){try{t.componentDidUpdate(a,u,h)}catch(g){Nt(e,e.return,g)}}},aR=lR.react_stack_bottom_frame.bind(lR),oR={react_stack_bottom_frame:function(e,t){var a=t.stack;e.componentDidCatch(t.value,{componentStack:a!==null?a:""})}},b9=oR.react_stack_bottom_frame.bind(oR),iR={react_stack_bottom_frame:function(e,t,a){try{a.componentWillUnmount()}catch(u){Nt(e,t,u)}}},rR=iR.react_stack_bottom_frame.bind(iR),sR={react_stack_bottom_frame:function(e){var t=e.create;return e=e.inst,t=t(),e.destroy=t}},v9=sR.react_stack_bottom_frame.bind(sR),cR={react_stack_bottom_frame:function(e,t,a){try{a()}catch(u){Nt(e,t,u)}}},S9=cR.react_stack_bottom_frame.bind(cR),uR={react_stack_bottom_frame:function(e){var t=e._init;return t(e._payload)}},x9=uR.react_stack_bottom_frame.bind(uR),Ug=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`."),K2=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."),Y1=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."),X1={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.')}},Jh=null,cv=!1,Lg=null,uv=0,Vt=null,W2,fR=W2=!1,dR={},hR={},mR={};j=function(e,t,a){if(a!==null&&typeof a=="object"&&a._store&&(!a._store.validated&&a.key==null||a._store.validated===2)){if(typeof a._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.");a._store.validated=1;var u=V(e),h=u||"null";if(!dR[h]){dR[h]=!0,a=a._owner,e=e._debugOwner;var g="";e&&typeof e.tag=="number"&&(h=V(e))&&(g=`
311
-
312
- Check the render method of \``+h+"`."),g||u&&(g=`
313
-
314
- Check the top-level render call using <`+u+">.");var E="";a!=null&&e!==a&&(u=null,typeof a.tag=="number"?u=V(a):typeof a.name=="string"&&(u=a.name),u&&(E=" It was passed a child from "+u+".")),ze(t,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.',g,E)})}}};var Kh=Ql(!0),pR=Ql(!1),gR=0,yR=1,bR=2,eO=3,Jf=!1,vR=!1,tO=null,nO=!1,qg=F(null),P1=F(0),Ui=F(null),Dr=null,Vg=1,fv=2,Fl=F(0),Q1=0,Rr=1,Ro=2,Li=4,No=8,Fg,SR=new Set,xR=new Set,lO=new Set,ER=new Set,yu=0,xt=null,Fn=null,la=null,Z1=!1,kg=!1,Wh=!1,J1=0,dv=0,bu=null,E9=0,C9=25,Ee=null,Nr=null,vu=-1,hv=!1,mv={readContext:hn,use:es,useCallback:pl,useContext:pl,useEffect:pl,useImperativeHandle:pl,useLayoutEffect:pl,useInsertionEffect:pl,useMemo:pl,useReducer:pl,useRef:pl,useState:pl,useDebugValue:pl,useDeferredValue:pl,useTransition:pl,useSyncExternalStore:pl,useId:pl,useHostTransitionStatus:pl,useFormState:pl,useActionState:pl,useOptimistic:pl,useMemoCache:pl,useCacheRefresh:pl};mv.useEffectEvent=pl;var aO=null,CR=null,oO=null,TR=null,rc=null,gs=null,K1=null;aO={readContext:function(e){return hn(e)},use:es,useCallback:function(e,t){return Ee="useCallback",St(),Wr(t),gp(e,t)},useContext:function(e){return Ee="useContext",St(),hn(e)},useEffect:function(e,t){return Ee="useEffect",St(),Wr(t),Vc(e,t)},useImperativeHandle:function(e,t,a){return Ee="useImperativeHandle",St(),Wr(a),ir(e,t,a)},useInsertionEffect:function(e,t){Ee="useInsertionEffect",St(),Wr(t),Fs(4,Ro,e,t)},useLayoutEffect:function(e,t){return Ee="useLayoutEffect",St(),Wr(t),Ba(e,t)},useMemo:function(e,t){Ee="useMemo",St(),Wr(t);var a=Ce.H;Ce.H=rc;try{return Ha(e,t)}finally{Ce.H=a}},useReducer:function(e,t,a){Ee="useReducer",St();var u=Ce.H;Ce.H=rc;try{return Ku(e,t,a)}finally{Ce.H=u}},useRef:function(e){return Ee="useRef",St(),pp(e)},useState:function(e){Ee="useState",St();var t=Ce.H;Ce.H=rc;try{return Us(e)}finally{Ce.H=t}},useDebugValue:function(){Ee="useDebugValue",St()},useDeferredValue:function(e,t){return Ee="useDeferredValue",St(),lf(e,t)},useTransition:function(){return Ee="useTransition",St(),ks()},useSyncExternalStore:function(e,t,a){return Ee="useSyncExternalStore",St(),Wu(e,t,a)},useId:function(){return Ee="useId",St(),nh()},useFormState:function(e,t){return Ee="useFormState",St(),Gd(),So(e,t)},useActionState:function(e,t){return Ee="useActionState",St(),So(e,t)},useOptimistic:function(e){return Ee="useOptimistic",St(),qc(e)},useHostTransitionStatus:as,useMemoCache:bo,useCacheRefresh:function(){return Ee="useCacheRefresh",St(),yp()},useEffectEvent:function(e){return Ee="useEffectEvent",St(),eh(e)}},CR={readContext:function(e){return hn(e)},use:es,useCallback:function(e,t){return Ee="useCallback",_e(),gp(e,t)},useContext:function(e){return Ee="useContext",_e(),hn(e)},useEffect:function(e,t){return Ee="useEffect",_e(),Vc(e,t)},useImperativeHandle:function(e,t,a){return Ee="useImperativeHandle",_e(),ir(e,t,a)},useInsertionEffect:function(e,t){Ee="useInsertionEffect",_e(),Fs(4,Ro,e,t)},useLayoutEffect:function(e,t){return Ee="useLayoutEffect",_e(),Ba(e,t)},useMemo:function(e,t){Ee="useMemo",_e();var a=Ce.H;Ce.H=rc;try{return Ha(e,t)}finally{Ce.H=a}},useReducer:function(e,t,a){Ee="useReducer",_e();var u=Ce.H;Ce.H=rc;try{return Ku(e,t,a)}finally{Ce.H=u}},useRef:function(e){return Ee="useRef",_e(),pp(e)},useState:function(e){Ee="useState",_e();var t=Ce.H;Ce.H=rc;try{return Us(e)}finally{Ce.H=t}},useDebugValue:function(){Ee="useDebugValue",_e()},useDeferredValue:function(e,t){return Ee="useDeferredValue",_e(),lf(e,t)},useTransition:function(){return Ee="useTransition",_e(),ks()},useSyncExternalStore:function(e,t,a){return Ee="useSyncExternalStore",_e(),Wu(e,t,a)},useId:function(){return Ee="useId",_e(),nh()},useActionState:function(e,t){return Ee="useActionState",_e(),So(e,t)},useFormState:function(e,t){return Ee="useFormState",_e(),Gd(),So(e,t)},useOptimistic:function(e){return Ee="useOptimistic",_e(),qc(e)},useHostTransitionStatus:as,useMemoCache:bo,useCacheRefresh:function(){return Ee="useCacheRefresh",_e(),yp()},useEffectEvent:function(e){return Ee="useEffectEvent",_e(),eh(e)}},oO={readContext:function(e){return hn(e)},use:es,useCallback:function(e,t){return Ee="useCallback",_e(),Oi(e,t)},useContext:function(e){return Ee="useContext",_e(),hn(e)},useEffect:function(e,t){Ee="useEffect",_e(),Ul(2048,No,e,t)},useImperativeHandle:function(e,t,a){return Ee="useImperativeHandle",_e(),nf(e,t,a)},useInsertionEffect:function(e,t){return Ee="useInsertionEffect",_e(),Ul(4,Ro,e,t)},useLayoutEffect:function(e,t){return Ee="useLayoutEffect",_e(),Ul(4,Li,e,t)},useMemo:function(e,t){Ee="useMemo",_e();var a=Ce.H;Ce.H=gs;try{return Jn(e,t)}finally{Ce.H=a}},useReducer:function(e,t,a){Ee="useReducer",_e();var u=Ce.H;Ce.H=gs;try{return Hc(e,t,a)}finally{Ce.H=u}},useRef:function(){return Ee="useRef",_e(),yn().memoizedState},useState:function(){Ee="useState",_e();var e=Ce.H;Ce.H=gs;try{return Hc(vo)}finally{Ce.H=e}},useDebugValue:function(){Ee="useDebugValue",_e()},useDeferredValue:function(e,t){return Ee="useDeferredValue",_e(),rr(e,t)},useTransition:function(){return Ee="useTransition",_e(),jx()},useSyncExternalStore:function(e,t,a){return Ee="useSyncExternalStore",_e(),Lc(e,t,a)},useId:function(){return Ee="useId",_e(),yn().memoizedState},useFormState:function(e){return Ee="useFormState",_e(),Gd(),qs(e)},useActionState:function(e){return Ee="useActionState",_e(),qs(e)},useOptimistic:function(e,t){return Ee="useOptimistic",_e(),Jd(e,t)},useHostTransitionStatus:as,useMemoCache:bo,useCacheRefresh:function(){return Ee="useCacheRefresh",_e(),yn().memoizedState},useEffectEvent:function(e){return Ee="useEffectEvent",_e(),tf(e)}},TR={readContext:function(e){return hn(e)},use:es,useCallback:function(e,t){return Ee="useCallback",_e(),Oi(e,t)},useContext:function(e){return Ee="useContext",_e(),hn(e)},useEffect:function(e,t){Ee="useEffect",_e(),Ul(2048,No,e,t)},useImperativeHandle:function(e,t,a){return Ee="useImperativeHandle",_e(),nf(e,t,a)},useInsertionEffect:function(e,t){return Ee="useInsertionEffect",_e(),Ul(4,Ro,e,t)},useLayoutEffect:function(e,t){return Ee="useLayoutEffect",_e(),Ul(4,Li,e,t)},useMemo:function(e,t){Ee="useMemo",_e();var a=Ce.H;Ce.H=K1;try{return Jn(e,t)}finally{Ce.H=a}},useReducer:function(e,t,a){Ee="useReducer",_e();var u=Ce.H;Ce.H=K1;try{return Uc(e,t,a)}finally{Ce.H=u}},useRef:function(){return Ee="useRef",_e(),yn().memoizedState},useState:function(){Ee="useState",_e();var e=Ce.H;Ce.H=K1;try{return Uc(vo)}finally{Ce.H=e}},useDebugValue:function(){Ee="useDebugValue",_e()},useDeferredValue:function(e,t){return Ee="useDeferredValue",_e(),zt(e,t)},useTransition:function(){return Ee="useTransition",_e(),il()},useSyncExternalStore:function(e,t,a){return Ee="useSyncExternalStore",_e(),Lc(e,t,a)},useId:function(){return Ee="useId",_e(),yn().memoizedState},useFormState:function(e){return Ee="useFormState",_e(),Gd(),Vs(e)},useActionState:function(e){return Ee="useActionState",_e(),Vs(e)},useOptimistic:function(e,t){return Ee="useOptimistic",_e(),Kd(e,t)},useHostTransitionStatus:as,useMemoCache:bo,useCacheRefresh:function(){return Ee="useCacheRefresh",_e(),yn().memoizedState},useEffectEvent:function(e){return Ee="useEffectEvent",_e(),tf(e)}},rc={readContext:function(e){return T(),hn(e)},use:function(e){return S(),es(e)},useCallback:function(e,t){return Ee="useCallback",S(),St(),gp(e,t)},useContext:function(e){return Ee="useContext",S(),St(),hn(e)},useEffect:function(e,t){return Ee="useEffect",S(),St(),Vc(e,t)},useImperativeHandle:function(e,t,a){return Ee="useImperativeHandle",S(),St(),ir(e,t,a)},useInsertionEffect:function(e,t){Ee="useInsertionEffect",S(),St(),Fs(4,Ro,e,t)},useLayoutEffect:function(e,t){return Ee="useLayoutEffect",S(),St(),Ba(e,t)},useMemo:function(e,t){Ee="useMemo",S(),St();var a=Ce.H;Ce.H=rc;try{return Ha(e,t)}finally{Ce.H=a}},useReducer:function(e,t,a){Ee="useReducer",S(),St();var u=Ce.H;Ce.H=rc;try{return Ku(e,t,a)}finally{Ce.H=u}},useRef:function(e){return Ee="useRef",S(),St(),pp(e)},useState:function(e){Ee="useState",S(),St();var t=Ce.H;Ce.H=rc;try{return Us(e)}finally{Ce.H=t}},useDebugValue:function(){Ee="useDebugValue",S(),St()},useDeferredValue:function(e,t){return Ee="useDeferredValue",S(),St(),lf(e,t)},useTransition:function(){return Ee="useTransition",S(),St(),ks()},useSyncExternalStore:function(e,t,a){return Ee="useSyncExternalStore",S(),St(),Wu(e,t,a)},useId:function(){return Ee="useId",S(),St(),nh()},useFormState:function(e,t){return Ee="useFormState",S(),St(),So(e,t)},useActionState:function(e,t){return Ee="useActionState",S(),St(),So(e,t)},useOptimistic:function(e){return Ee="useOptimistic",S(),St(),qc(e)},useMemoCache:function(e){return S(),bo(e)},useHostTransitionStatus:as,useCacheRefresh:function(){return Ee="useCacheRefresh",St(),yp()},useEffectEvent:function(e){return Ee="useEffectEvent",S(),St(),eh(e)}},gs={readContext:function(e){return T(),hn(e)},use:function(e){return S(),es(e)},useCallback:function(e,t){return Ee="useCallback",S(),_e(),Oi(e,t)},useContext:function(e){return Ee="useContext",S(),_e(),hn(e)},useEffect:function(e,t){Ee="useEffect",S(),_e(),Ul(2048,No,e,t)},useImperativeHandle:function(e,t,a){return Ee="useImperativeHandle",S(),_e(),nf(e,t,a)},useInsertionEffect:function(e,t){return Ee="useInsertionEffect",S(),_e(),Ul(4,Ro,e,t)},useLayoutEffect:function(e,t){return Ee="useLayoutEffect",S(),_e(),Ul(4,Li,e,t)},useMemo:function(e,t){Ee="useMemo",S(),_e();var a=Ce.H;Ce.H=gs;try{return Jn(e,t)}finally{Ce.H=a}},useReducer:function(e,t,a){Ee="useReducer",S(),_e();var u=Ce.H;Ce.H=gs;try{return Hc(e,t,a)}finally{Ce.H=u}},useRef:function(){return Ee="useRef",S(),_e(),yn().memoizedState},useState:function(){Ee="useState",S(),_e();var e=Ce.H;Ce.H=gs;try{return Hc(vo)}finally{Ce.H=e}},useDebugValue:function(){Ee="useDebugValue",S(),_e()},useDeferredValue:function(e,t){return Ee="useDeferredValue",S(),_e(),rr(e,t)},useTransition:function(){return Ee="useTransition",S(),_e(),jx()},useSyncExternalStore:function(e,t,a){return Ee="useSyncExternalStore",S(),_e(),Lc(e,t,a)},useId:function(){return Ee="useId",S(),_e(),yn().memoizedState},useFormState:function(e){return Ee="useFormState",S(),_e(),qs(e)},useActionState:function(e){return Ee="useActionState",S(),_e(),qs(e)},useOptimistic:function(e,t){return Ee="useOptimistic",S(),_e(),Jd(e,t)},useMemoCache:function(e){return S(),bo(e)},useHostTransitionStatus:as,useCacheRefresh:function(){return Ee="useCacheRefresh",_e(),yn().memoizedState},useEffectEvent:function(e){return Ee="useEffectEvent",S(),_e(),tf(e)}},K1={readContext:function(e){return T(),hn(e)},use:function(e){return S(),es(e)},useCallback:function(e,t){return Ee="useCallback",S(),_e(),Oi(e,t)},useContext:function(e){return Ee="useContext",S(),_e(),hn(e)},useEffect:function(e,t){Ee="useEffect",S(),_e(),Ul(2048,No,e,t)},useImperativeHandle:function(e,t,a){return Ee="useImperativeHandle",S(),_e(),nf(e,t,a)},useInsertionEffect:function(e,t){return Ee="useInsertionEffect",S(),_e(),Ul(4,Ro,e,t)},useLayoutEffect:function(e,t){return Ee="useLayoutEffect",S(),_e(),Ul(4,Li,e,t)},useMemo:function(e,t){Ee="useMemo",S(),_e();var a=Ce.H;Ce.H=gs;try{return Jn(e,t)}finally{Ce.H=a}},useReducer:function(e,t,a){Ee="useReducer",S(),_e();var u=Ce.H;Ce.H=gs;try{return Uc(e,t,a)}finally{Ce.H=u}},useRef:function(){return Ee="useRef",S(),_e(),yn().memoizedState},useState:function(){Ee="useState",S(),_e();var e=Ce.H;Ce.H=gs;try{return Uc(vo)}finally{Ce.H=e}},useDebugValue:function(){Ee="useDebugValue",S(),_e()},useDeferredValue:function(e,t){return Ee="useDeferredValue",S(),_e(),zt(e,t)},useTransition:function(){return Ee="useTransition",S(),_e(),il()},useSyncExternalStore:function(e,t,a){return Ee="useSyncExternalStore",S(),_e(),Lc(e,t,a)},useId:function(){return Ee="useId",S(),_e(),yn().memoizedState},useFormState:function(e){return Ee="useFormState",S(),_e(),Vs(e)},useActionState:function(e){return Ee="useActionState",S(),_e(),Vs(e)},useOptimistic:function(e,t){return Ee="useOptimistic",S(),_e(),Kd(e,t)},useMemoCache:function(e){return S(),bo(e)},useHostTransitionStatus:as,useCacheRefresh:function(){return Ee="useCacheRefresh",_e(),yn().memoizedState},useEffectEvent:function(e){return Ee="useEffectEvent",S(),_e(),tf(e)}};var OR={},wR=new Set,jR=new Set,AR=new Set,MR=new Set,zR=new Set,DR=new Set,RR=new Set,NR=new Set,_R=new Set,$R=new Set;Object.freeze(OR);var iO={enqueueSetState:function(e,t,a){e=e._reactInternals;var u=Ea(e),h=Hl(u);h.payload=t,a!=null&&(Gc(a),h.callback=a),t=nr(e,h,u),t!==null&&(Wi(u,"this.setState()",e),vt(t,e,u),Jo(t,e,u))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var u=Ea(e),h=Hl(u);h.tag=yR,h.payload=t,a!=null&&(Gc(a),h.callback=a),t=nr(e,h,u),t!==null&&(Wi(u,"this.replaceState()",e),vt(t,e,u),Jo(t,e,u))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=Ea(e),u=Hl(a);u.tag=bR,t!=null&&(Gc(t),u.callback=t),t=nr(e,u,a),t!==null&&(Wi(a,"this.forceUpdate()",e),vt(t,e,a),Jo(t,e,a))}},Ig=null,rO=null,sO=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."),aa=!1,BR={},HR={},UR={},LR={},Gg=!1,qR={},W1={},cO={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null},VR=!1,FR=null;FR=new Set;var Su=!1,oa=!1,uO=!1,kR=typeof WeakSet=="function"?WeakSet:Set,wa=null,Yg=null,Xg=null,ia=null,li=!1,ys=null,ma=!1,pv=8192,T9={getCacheForType:function(e){var t=hn(ta),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a},cacheSignal:function(){return hn(ta).controller.signal},getOwner:function(){return oo}};if(typeof Symbol=="function"&&Symbol.for){var gv=Symbol.for;gv("selector.component"),gv("selector.has_pseudo_class"),gv("selector.role"),gv("selector.test_id"),gv("selector.text")}var O9=[],w9=typeof WeakMap=="function"?WeakMap:Map,ja=0,pa=2,qi=4,xu=0,yv=1,em=2,eE=3,Kf=4,tE=6,IR=5,cn=ja,kn=null,It=null,Ft=0,ai=0,nE=1,tm=2,bv=3,GR=4,fO=5,vv=6,lE=7,dO=8,nm=9,Dn=ai,Vi=null,Wf=!1,Pg=!1,hO=!1,sc=0,bl=xu,ed=0,td=0,mO=0,oi=0,lm=0,Sv=null,_o=null,aE=!1,oE=0,YR=0,XR=300,iE=1/0,PR=500,xv=null,$l=null,nd=null,rE=0,pO=1,gO=2,QR=3,ld=0,ZR=1,JR=2,KR=3,WR=4,sE=5,ra=0,ad=null,Qg=null,bs=0,yO=0,bO=-0,vO=null,e4=null,t4=null,vs=rE,n4=null,j9=50,Ev=0,SO=null,xO=!1,cE=!1,A9=50,am=0,Cv=null,Zg=!1,uE=null,l4=!1,a4=new Set,M9={},fE=null,Jg=null,EO=!1,CO=!1,dE=!1,TO=!1,od=0,OO={};(function(){for(var e=0;e<B2.length;e++){var t=B2[e],a=t.toLowerCase();t=t[0].toUpperCase()+t.slice(1),pi(a,"on"+t)}pi(_D,"onAnimationEnd"),pi($D,"onAnimationIteration"),pi(BD,"onAnimationStart"),pi("dblclick","onDoubleClick"),pi("focusin","onFocus"),pi("focusout","onBlur"),pi(a9,"onTransitionRun"),pi(o9,"onTransitionStart"),pi(i9,"onTransitionCancel"),pi(HD,"onTransitionEnd")})(),Ut("onMouseEnter",["mouseout","mouseover"]),Ut("onMouseLeave",["mouseout","mouseover"]),Ut("onPointerEnter",["pointerout","pointerover"]),Ut("onPointerLeave",["pointerout","pointerover"]),fl("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),fl("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),fl("onBeforeInput",["compositionend","keypress","textInput","paste"]),fl("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),fl("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),fl("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Tv="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(" "),wO=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Tv)),hE="_reactListening"+Math.random().toString(36).slice(2),o4=!1,i4=!1,mE=!1,r4=!1,pE=!1,gE=!1,s4=!1,yE={},z9=/\r\n?/g,D9=/\u0000|\uFFFD/g,om="http://www.w3.org/1999/xlink",jO="http://www.w3.org/XML/1998/namespace",R9="javascript:throw new Error('React form unexpectedly submitted.')",N9="suppressHydrationWarning",im="&",bE="/&",Ov="$",wv="/$",id="$?",rm="$~",Kg="$!",_9="html",$9="body",B9="head",AO="F!",c4="F",u4="loading",H9="style",Eu=0,Wg=1,vE=2,MO=null,zO=null,f4={dialog:!0,webview:!0},DO=null,jv=void 0,d4=typeof setTimeout=="function"?setTimeout:void 0,U9=typeof clearTimeout=="function"?clearTimeout:void 0,sm=-1,h4=typeof Promise=="function"?Promise:void 0,L9=typeof queueMicrotask=="function"?queueMicrotask:typeof h4<"u"?function(e){return h4.resolve(null).then(e).catch(Qx)}:d4,RO=null,cm=0,Av=1,m4=2,p4=3,_r=4,$r=new Map,g4=new Set,Cu=pn.d;pn.d={f:function(){var e=Cu.f(),t=Oo();return e||t},r:function(e){var t=Jt(e);t!==null&&t.tag===5&&t.type==="form"?af(t):Cu.r(e)},D:function(e){Cu.D(e),pb("dns-prefetch",e,null)},C:function(e,t){Cu.C(e,t),pb("preconnect",e,t)},L:function(e,t,a){Cu.L(e,t,a);var u=ey;if(u&&e&&t){var h='link[rel="preload"][as="'+Mt(t)+'"]';t==="image"&&a&&a.imageSrcSet?(h+='[imagesrcset="'+Mt(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(h+='[imagesizes="'+Mt(a.imageSizes)+'"]')):h+='[href="'+Mt(e)+'"]';var g=h;switch(t){case"style":g=tu(e);break;case"script":g=nu(e)}$r.has(g)||(e=Lt({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),$r.set(g,e),u.querySelector(h)!==null||t==="style"&&u.querySelector(Ah(g))||t==="script"&&u.querySelector(Mh(g))||(t=u.createElement("link"),Kn(t,"link",e),rn(t),u.head.appendChild(t)))}},m:function(e,t){Cu.m(e,t);var a=ey;if(a&&e){var u=t&&typeof t.as=="string"?t.as:"script",h='link[rel="modulepreload"][as="'+Mt(u)+'"][href="'+Mt(e)+'"]',g=h;switch(u){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":g=nu(e)}if(!$r.has(g)&&(e=Lt({rel:"modulepreload",href:e},t),$r.set(g,e),a.querySelector(h)===null)){switch(u){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(Mh(g)))return}u=a.createElement("link"),Kn(u,"link",e),rn(u),a.head.appendChild(u)}}},X:function(e,t){Cu.X(e,t);var a=ey;if(a&&e){var u=on(a).hoistableScripts,h=nu(e),g=u.get(h);g||(g=a.querySelector(Mh(h)),g||(e=Lt({src:e,async:!0},t),(t=$r.get(h))&&bb(e,t),g=a.createElement("script"),rn(g),Kn(g,"link",e),a.head.appendChild(g)),g={type:"script",instance:g,count:1,state:null},u.set(h,g))}},S:function(e,t,a){Cu.S(e,t,a);var u=ey;if(u&&e){var h=on(u).hoistableStyles,g=tu(e);t=t||"default";var E=h.get(g);if(!E){var w={loading:cm,preload:null};if(E=u.querySelector(Ah(g)))w.loading=Av|_r;else{e=Lt({rel:"stylesheet",href:e,"data-precedence":t},a),(a=$r.get(g))&&yb(e,a);var $=E=u.createElement("link");rn($),Kn($,"link",e),$._p=new Promise(function(q,oe){$.onload=q,$.onerror=oe}),$.addEventListener("load",function(){w.loading|=Av}),$.addEventListener("error",function(){w.loading|=m4}),w.loading|=_r,wf(E,t,u)}E={type:"stylesheet",instance:E,count:1,state:w},h.set(g,E)}}},M:function(e,t){Cu.M(e,t);var a=ey;if(a&&e){var u=on(a).hoistableScripts,h=nu(e),g=u.get(h);g||(g=a.querySelector(Mh(h)),g||(e=Lt({src:e,async:!0,type:"module"},t),(t=$r.get(h))&&bb(e,t),g=a.createElement("script"),rn(g),Kn(g,"link",e),a.head.appendChild(g)),g={type:"script",instance:g,count:1,state:null},u.set(h,g))}}};var ey=typeof document>"u"?null:document,SE=null,q9=6e4,V9=800,F9=500,NO=0,_O=null,xE=null,um=T2,Mv={$$typeof:_i,Provider:null,Consumer:null,_currentValue:um,_currentValue2:um,_threadCount:0},y4="%c%s%c",b4="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",v4="",EE=" ",k9=Function.prototype.bind,S4=!1,x4=null,E4=null,C4=null,T4=null,O4=null,w4=null,j4=null,A4=null,M4=null,z4=null;x4=function(e,t,a,u){t=n(e,t),t!==null&&(a=i(t.memoizedState,a,0,u),t.memoizedState=a,t.baseState=a,e.memoizedProps=Lt({},e.memoizedProps),a=Sa(e,2),a!==null&&vt(a,e,2))},E4=function(e,t,a){t=n(e,t),t!==null&&(a=f(t.memoizedState,a,0),t.memoizedState=a,t.baseState=a,e.memoizedProps=Lt({},e.memoizedProps),a=Sa(e,2),a!==null&&vt(a,e,2))},C4=function(e,t,a,u){t=n(e,t),t!==null&&(a=r(t.memoizedState,a,u),t.memoizedState=a,t.baseState=a,e.memoizedProps=Lt({},e.memoizedProps),a=Sa(e,2),a!==null&&vt(a,e,2))},T4=function(e,t,a){e.pendingProps=i(e.memoizedProps,t,0,a),e.alternate&&(e.alternate.pendingProps=e.pendingProps),t=Sa(e,2),t!==null&&vt(t,e,2)},O4=function(e,t){e.pendingProps=f(e.memoizedProps,t,0),e.alternate&&(e.alternate.pendingProps=e.pendingProps),t=Sa(e,2),t!==null&&vt(t,e,2)},w4=function(e,t,a){e.pendingProps=r(e.memoizedProps,t,a),e.alternate&&(e.alternate.pendingProps=e.pendingProps),t=Sa(e,2),t!==null&&vt(t,e,2)},j4=function(e){var t=Sa(e,2);t!==null&&vt(t,e,2)},A4=function(e){var t=Rn(),a=Sa(e,t);a!==null&&vt(a,e,t)},M4=function(e){y=e},z4=function(e){p=e};var CE=!0,TE=null,$O=!1,rd=null,sd=null,cd=null,zv=new Map,Dv=new Map,ud=[],I9="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(" "),OE=null;if(Ni.prototype.render=Ab.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error("Cannot update an unmounted root.");var a=arguments;typeof a[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(a[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 a[1]<"u"&&console.error("You passed a second argument to root.render(...) but it only accepts one argument."),a=e;var u=t.current,h=Ea(u);rg(u,h,a,t,null,null)},Ni.prototype.unmount=Ab.prototype.unmount=function(){var e=arguments;if(typeof e[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()."),e=this._internalRoot,e!==null){this._internalRoot=null;var t=e.containerInfo;(cn&(pa|qi))!==ja&&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."),rg(e.current,2,null,e,null,null),Oo(),t[hs]=null}},Ni.prototype.unstable_scheduleHydration=function(e){if(e){var t=nn();e={blockedOn:null,target:e,priority:t};for(var a=0;a<ud.length&&t!==0&&t<ud[a].priority;a++);ud.splice(a,0,e),a===0&&jb(e)}},(function(){var e=_h.version;if(e!=="19.2.7")throw Error(`Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:
315
- - react: `+(e+`
316
- - react-dom: 19.2.7
317
- 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"),pn.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error("Unable to find node on an unmounted component."):(e=Object.keys(e).join(","),Error("Argument appears to not be a ReactComponent. Keys: "+e));return e=G(t),e=e!==null?Y(e):null,e=e===null?null:e.stateNode,e},!(function(){var e={bundleType:1,version:"19.2.7",rendererPackageName:"react-dom",currentDispatcherRef:Ce,reconcilerVersion:"19.2.7"};return e.overrideHookState=x4,e.overrideHookStateDeletePath=E4,e.overrideHookStateRenamePath=C4,e.overrideProps=T4,e.overridePropsDeletePath=O4,e.overridePropsRenamePath=w4,e.scheduleUpdate=j4,e.scheduleRetry=A4,e.setErrorHandler=M4,e.setSuspenseHandler=z4,e.scheduleRefresh=N,e.scheduleRoot=R,e.setRefreshHandler=L,e.getCurrentFiber=Mn,Ct(e)})()&&ac&&window.top===window.self&&(-1<navigator.userAgent.indexOf("Chrome")&&navigator.userAgent.indexOf("Edge")===-1||-1<navigator.userAgent.indexOf("Firefox"))){var D4=window.location.protocol;/^(https?|file):$/.test(D4)&&console.info("%cDownload the React DevTools for a better development experience: https://react.dev/link/react-devtools"+(D4==="file:"?`
318
- You might need to use a local HTTP server (instead of file://): https://react.dev/link/react-devtools-faq`:""),"font-weight:bold")}py.createRoot=function(e,t){if(!D(e))throw Error("Target container is not a DOM element.");Mb(e);var a=!1,u="",h=Sp,g=xp,E=C0;return t!=null&&(t.hydrate?console.warn("hydrate through createRoot is deprecated. Use ReactDOMClient.hydrateRoot(container, <App />) instead."):typeof t=="object"&&t!==null&&t.$$typeof===ti&&console.error(`You passed a JSX element to createRoot. You probably meant to call root.render instead. Example usage:
319
-
320
- let root = createRoot(domContainer);
321
- root.render(<App />);`),t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(u=t.identifierPrefix),t.onUncaughtError!==void 0&&(h=t.onUncaughtError),t.onCaughtError!==void 0&&(g=t.onCaughtError),t.onRecoverableError!==void 0&&(E=t.onRecoverableError)),t=Rh(e,1,!1,null,null,a,u,null,h,g,E,v1),e[hs]=t.current,Zs(e),new Ab(t)},py.hydrateRoot=function(e,t,a){if(!D(e))throw Error("Target container is not a DOM element.");Mb(e),t===void 0&&console.error("Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)");var u=!1,h="",g=Sp,E=xp,w=C0,$=null;return a!=null&&(a.unstable_strictMode===!0&&(u=!0),a.identifierPrefix!==void 0&&(h=a.identifierPrefix),a.onUncaughtError!==void 0&&(g=a.onUncaughtError),a.onCaughtError!==void 0&&(E=a.onCaughtError),a.onRecoverableError!==void 0&&(w=a.onRecoverableError),a.formState!==void 0&&($=a.formState)),t=Rh(e,1,!0,t,a??null,u,h,$,g,E,w,v1),t.context=p1(null),a=t.current,u=Ea(a),u=ul(u),h=Hl(u),h.callback=null,nr(a,h,u),Wi(u,"hydrateRoot()",null),a=u,t.current.lanes=a,Fe(t,a),to(t),e[hs]=t.current,Zs(e),new Ni(t)},py.version="19.2.7",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),py}var uj;function I3(){if(uj)return Kv.exports;uj=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function")){if(process.env.NODE_ENV!=="production")throw new Error("^_^");try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(i){console.error(i)}}}return process.env.NODE_ENV==="production"?(n(),Kv.exports=F3()):Kv.exports=k3(),Kv.exports}var G3=I3();const eS="__rc_react_root__";function Y3(n,i){const r=i[eS]||G3.createRoot(i);r.render(n),i[eS]=r}async function X3(n){return Promise.resolve().then(()=>{var i;(i=n[eS])==null||i.unmount(),delete n[eS]})}function fj(){}const{resetWarned:P3}=ll;let cc=null;function Q3(){cc=null,P3()}let dj=fj;process.env.NODE_ENV!=="production"&&(dj=(n,i,r)=>{ll(n,`[antd: ${i}] ${r}`),process.env.NODE_ENV==="test"&&Q3()});const iC=dj,hj=z.createContext({}),so=process.env.NODE_ENV!=="production"?n=>{const{strict:i}=z.useContext(hj),r=(s,f,p)=>{if(!s)if(i===!1&&f==="deprecated"){const y=cc;cc||(cc={}),cc[n]=cc[n]||[],cc[n].includes(p||"")||cc[n].push(p||""),y||console.warn("[antd] There exists deprecated usage in your code:",cc)}else process.env.NODE_ENV!=="production"&&iC(s,n,p)};return r.deprecated=(s,f,p,y="")=>{r(s,"deprecated",`\`${f}\` is deprecated. Please use \`${p}\` instead.${y?` ${y}`:""}`)},r}:()=>{const n=()=>{};return n.deprecated=fj,n},rC="ant",sC="anticon",Z3=(n,i)=>i||(n?`${rC}-${n}`:rC),vl=z.createContext({getPrefixCls:Z3,iconPrefixCls:sC}),{Consumer:Bq}=vl,mj={};function Mu(n){const i=z.useContext(vl),{getPrefixCls:r,direction:s,getPopupContainer:f,renderEmpty:p}=i,y=i[n];return{classNames:mj,styles:mj,...y,getPrefixCls:r,direction:s,getPopupContainer:f,renderEmpty:p}}const pj=z.createContext({}),J3=n=>{const{children:i,...r}=n,s=z.useMemo(()=>({motion:r.motion}),[r.motion]);return z.createElement(pj.Provider,{value:s},i)},Ss="none",tS="appear",nS="enter",lS="leave",gj="none",Hr="prepare",pd="start",gd="active",cC="end",yj="prepared";function bj(n,i){const r={};return r[n.toLowerCase()]=i.toLowerCase(),r[`Webkit${n}`]=`webkit${i}`,r[`Moz${n}`]=`moz${i}`,r[`ms${n}`]=`MS${i}`,r[`O${n}`]=`o${i.toLowerCase()}`,r}function K3(n,i){const r={animationend:bj("Animation","AnimationEnd"),transitionend:bj("Transition","TransitionEnd")};return n&&("AnimationEvent"in i||delete r.animationend.animation,"TransitionEvent"in i||delete r.transitionend.transition),r}const W3=K3(Bo(),typeof window<"u"?window:{});let vj={};Bo()&&({style:vj}=document.createElement("div"));const aS={};function Sj(n){if(aS[n])return aS[n];const i=W3[n];if(i){const r=Object.keys(i),s=r.length;for(let f=0;f<s;f+=1){const p=r[f];if(Object.prototype.hasOwnProperty.call(i,p)&&p in vj)return aS[n]=i[p],aS[n]}}return""}const xj=Sj("animationend"),Ej=Sj("transitionend"),e_=!!(xj&&Ej),Cj=xj||"animationend",Tj=Ej||"transitionend";function Oj(n,i){if(!n)return null;if(typeof n=="object"){const r=i.replace(/-\w/g,s=>s[1].toUpperCase());return n[r]}return`${n}-${i}`}const t_=(n=>{const i=H.useRef();function r(f){f&&(f.removeEventListener(Tj,n),f.removeEventListener(Cj,n))}function s(f){i.current&&i.current!==f&&r(i.current),f&&f!==i.current&&(f.addEventListener(Tj,n),f.addEventListener(Cj,n),i.current=f)}return z.useEffect(()=>()=>{r(i.current),i.current=null},[]),[s,r]}),wj=Bo()?H.useLayoutEffect:H.useEffect,n_=(()=>{const n=z.useRef(null);function i(){ki.cancel(n.current)}function r(s,f=2){i();const p=ki(()=>{f<=1?s({isCanceled:()=>p!==n.current}):r(s,f-1)});n.current=p}return z.useEffect(()=>()=>{i()},[]),[r,i]}),l_=[Hr,pd,gd,cC],a_=[Hr,yj],jj=!1,o_=!0;function Aj(n){return n===gd||n===cC}const i_=((n,i,r)=>{const[s,f]=Dw(gj),[p,y]=n_();function S(){f(Hr,!0)}const T=i?a_:l_;return wj(()=>{if(s!==gj&&s!==cC){const C=T.indexOf(s),j=T[C+1],O=r(s);O===jj?f(j,!0):j&&p(A=>{function R(){A.isCanceled()||f(j,!0)}O===!0?R():Promise.resolve(O).then(R)})}},[n,s]),z.useEffect(()=>()=>{y()},[]),[S,s]});function r_(n,i,r,{motionEnter:s=!0,motionAppear:f=!0,motionLeave:p=!0,motionDeadline:y,motionLeaveImmediately:S,onAppearPrepare:T,onEnterPrepare:C,onLeavePrepare:j,onAppearStart:O,onEnterStart:A,onLeaveStart:R,onAppearActive:N,onEnterActive:L,onLeaveActive:D,onAppearEnd:_,onEnterEnd:U,onLeaveEnd:B,onVisibleChanged:k}){const[G,Y]=z.useState(),[P,Q]=r3(Ss),[ue,V]=z.useState([null,null]),F=P(),te=H.useRef(!1),ae=H.useRef(null);function ge(){return r()}const He=H.useRef(!1);function X(){Q(Ss),V([null,null])}const ie=Cn(Ie=>{const nt=P();if(nt===Ss)return;const ut=ge();if(Ie&&!Ie.deadline&&Ie.target!==ut)return;const ze=He.current;let Ye;nt===tS&&ze?Ye=_==null?void 0:_(ut,Ie):nt===nS&&ze?Ye=U==null?void 0:U(ut,Ie):nt===lS&&ze&&(Ye=B==null?void 0:B(ut,Ie)),ze&&Ye!==!1&&X()}),[me]=t_(ie),fe=Ie=>{switch(Ie){case tS:return{[Hr]:T,[pd]:O,[gd]:N};case nS:return{[Hr]:C,[pd]:A,[gd]:L};case lS:return{[Hr]:j,[pd]:R,[gd]:D};default:return{}}},ne=z.useMemo(()=>fe(F),[F]),[ee,Se]=i_(F,!n,Ie=>{var nt;if(Ie===Hr){const ut=ne[Hr];return ut?ut(ge()):jj}return Ie in ne&&V([((nt=ne[Ie])==null?void 0:nt.call(ne,ge(),null))||null,Ie]),Ie===gd&&F!==Ss&&(me(ge()),y>0&&(clearTimeout(ae.current),ae.current=setTimeout(()=>{ie({deadline:!0})},y))),Ie===yj&&X(),o_}),Ae=Aj(Se);He.current=Ae;const De=H.useRef(null);wj(()=>{if(te.current&&De.current===i)return;Y(i);const Ie=te.current;te.current=!0;let nt;!Ie&&i&&f&&(nt=tS),Ie&&i&&s&&(nt=nS),(Ie&&!i&&p||!Ie&&S&&!i&&p)&&(nt=lS);const ut=fe(nt);nt&&(n||ut[Hr])?(Q(nt),ee()):Q(Ss),De.current=i},[i]),H.useEffect(()=>{(F===tS&&!f||F===nS&&!s||F===lS&&!p)&&Q(Ss)},[f,s,p]),H.useEffect(()=>()=>{te.current=!1,clearTimeout(ae.current)},[]);const Ue=z.useRef(!1);H.useEffect(()=>{G&&(Ue.current=!0),G!==void 0&&F===Ss&&((Ue.current||G)&&(k==null||k(G)),Ue.current=!0)},[G,F]);let Ve=ue[0];ne[Hr]&&Se===pd&&(Ve={transition:"none",...Ve});const Pe=ue[1];return[P,Se,Ve,G??i,!te.current&&F===Ss&&n&&f?"NONE":Se===pd||Se===gd?Pe===Se:!0]}function Mj(n){return(n==null?void 0:n.length)<2}function s_(n){let i=n;typeof n=="object"&&({transitionSupport:i}=n);function r(f,p){return!!(f.motionName&&i&&p!==!1)}const s=z.forwardRef((f,p)=>{const{visible:y=!0,removeOnLeave:S=!0,forceRender:T,children:C,motionName:j,leavedClassName:O,eventProps:A}=f,{motion:R}=z.useContext(pj),N=r(f,R),L=H.useRef();function D(){return QE(L.current)}const[_,U,B,k,G]=r_(N,y,D,f),Y=_(),P=z.useRef(k);k&&(P.current=!0);const Q=z.useMemo(()=>{const F={};return Object.defineProperties(F,{nativeElement:{enumerable:!0,get:D},inMotion:{enumerable:!0,get:()=>()=>_()!==Ss},enableMotion:{enumerable:!0,get:()=>()=>N}}),F},[]);z.useImperativeHandle(p,()=>Q,[]);const ue=z.useRef(0);G&&(ue.current+=1);const V=z.useMemo(()=>{if(G==="NONE")return null;let F;const te={...A,visible:y};if(!C)F=null;else if(Y===Ss)k?F=C({...te},L):!S&&P.current&&O?F=C({...te,className:O},L):T||!S&&!O?F=C({...te,style:{display:"none"}},L):F=null;else{let ae;U===Hr?ae="prepare":Aj(U)?ae="active":U===pd&&(ae="start");const ge=Oj(j,`${Y}-${ae}`);F=C({...te,className:qe(Oj(j,Y),{[ge]:ge&&ae,[j]:typeof j=="string"}),style:B},L)}return F},[ue.current]);if(Mj(C)&&g3(V)){const F=uy(V);if(F!==L)return z.cloneElement(V,{ref:ym(F,L)})}return V});return s.displayName="CSSMotion",s}const uc=s_(e_),uC="add",fC="keep",dC="remove",hC="removed";function c_(n){let i;return n&&typeof n=="object"&&"key"in n?i=n:i={key:n},{...i,key:String(i.key)}}function mC(n=[]){return n.map(c_)}function u_(n=[],i=[]){let r=[],s=0;const f=i.length,p=mC(n),y=mC(i);p.forEach(C=>{let j=!1;for(let O=s;O<f;O+=1){const A=y[O];if(A.key===C.key){s<O&&(r=r.concat(y.slice(s,O).map(R=>({...R,status:uC}))),s=O),r.push({...A,status:fC}),s+=1,j=!0;break}}j||r.push({...C,status:dC})}),s<f&&(r=r.concat(y.slice(s).map(C=>({...C,status:uC}))));const S={};return r.forEach(({key:C})=>{S[C]=(S[C]||0)+1}),Object.keys(S).filter(C=>S[C]>1).forEach(C=>{r=r.filter(({key:j,status:O})=>j!==C||O!==dC),r.forEach(j=>{j.key===C&&(j.status=fC)})}),r}function pC(){return pC=Object.assign?Object.assign.bind():function(n){for(var i=1;i<arguments.length;i++){var r=arguments[i];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(n[s]=r[s])}return n},pC.apply(this,arguments)}const f_=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function d_(n,i=uc){class r extends z.Component{constructor(){super(...arguments);we(this,"state",{keyEntities:[]});we(this,"removeKey",p=>{this.setState(y=>({keyEntities:y.keyEntities.map(T=>T.key!==p?T:{...T,status:hC})}),()=>{const{keyEntities:y}=this.state;y.filter(({status:T})=>T!==hC).length===0&&this.props.onAllRemoved&&this.props.onAllRemoved()})})}static getDerivedStateFromProps({keys:p},{keyEntities:y}){const S=mC(p);return{keyEntities:u_(y,S).filter(C=>{const j=y.find(({key:O})=>C.key===O);return!(j&&j.status===hC&&C.status===dC)})}}render(){const{keyEntities:p}=this.state,{component:y,children:S,onVisibleChanged:T,onAllRemoved:C,...j}=this.props,O=y||z.Fragment,A={};return f_.forEach(R=>{A[R]=j[R],delete j[R]}),delete j.keys,z.createElement(O,j,p.map(({status:R,...N},L)=>{const D=R===uC||R===fC;return z.createElement(i,pC({},A,{key:N.key,visible:D,eventProps:N,onVisibleChanged:_=>{T==null||T(_,{key:N.key}),_||this.removeKey(N.key)}}),Mj(S)?_=>S({..._,index:L}):(_,U)=>S({..._,index:L},U))}))}}return we(r,"defaultProps",{component:"div"}),r}const h_=d_();function m_(){const[n,i]=z.useState({}),r=z.useCallback((s,f)=>{if(!f){i(y=>{if(!(s in y))return y;const S={...y};return delete S[s],S});return}const p={width:f.offsetWidth,height:f.offsetHeight};i(y=>{const S=y[s];return S&&S.width===p.width&&S.height===p.height?y:{...y,[s]:p}})},[]);return[n,r]}function p_(n,i,r=0){const[s,f]=m_(),[p,y,S,T]=z.useMemo(()=>{let C=0,j=0;const O=(i==null?void 0:i.threshold)??0,A=new Map;let R,N;return n.slice().reverse().forEach((L,D)=>{var k,G;const _=String(L.key),U=((k=s[_])==null?void 0:k.height)??0,B=i&&D>0?C+(i.offset??0)-U:C;A.set(_,B),D===0&&(R=U,N=((G=s[_])==null?void 0:G.width)??0),(!i||D<O)&&(j=Math.max(j,B+U)),i?C=B+U:C+=U+r}),[A,j,R,N]},[n,r,s,i]);return[p,f,y,S,T]}const zj=8,Dj=3,g_=n=>{const i={offset:zj,threshold:Dj};return n&&typeof n=="object"&&(i.offset=n.offset??zj,i.threshold=n.threshold??Dj),[!!n,i]};function y_(n,i,r){const f=Math.max(typeof n=="number"?n:0,0)*1e3,p=Cn(i),y=Cn(r),[S,T]=z.useState(f>0),C=z.useRef(0),j=z.useRef(null);function O(){const N=Date.now(),L=j.current;L!==null&&(C.current+=N-L),j.current=N}const A=z.useCallback(()=>{O(),T(!1)},[]),R=z.useCallback(()=>{f>0?(j.current=Date.now(),T(!0)):y(0)},[f]);return z.useEffect(()=>{C.current=0,T(f>0)},[f]),z.useEffect(()=>{if(!S)return;let N=null;function L(){O(),C.current>=f?(y(1),p()):(y(Math.min(C.current/f,1)),N=ki(L))}return L(),()=>{ki.cancel(N)}},[f,S]),[R,A]}function b_(n){const i=z.useMemo(()=>n===!1?{closeIcon:null,disabled:!0}:typeof n=="object"&&n!==null?n:{},[n]),r=z.useMemo(()=>({...i,closeIcon:"closeIcon"in i?i.closeIcon:"×",disabled:i.disabled??!1}),[i]),s=z.useMemo(()=>Zv(r,!0),[r]);return[!!n,r,s]}const v_=({className:n,style:i,percent:r})=>z.createElement("progress",{className:n,max:"100",value:r,style:i});function oS(){return oS=Object.assign?Object.assign.bind():function(n){for(var i=1;i<arguments.length;i++){var r=arguments[i];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(n[s]=r[s])}return n},oS.apply(this,arguments)}const Rj=z.forwardRef((n,i)=>{const{prefixCls:r,className:s,style:f,classNames:p,styles:y,components:S,title:T,description:C,icon:j,actions:O,role:A,closable:R,offset:N,notificationIndex:L,stackInThreshold:D,props:_,duration:U=4.5,showProgress:B,hovering:k,pauseOnHover:G=!0,onClick:Y,onMouseEnter:P,onMouseLeave:Q,onClose:ue}=n,[V,F]=z.useState(0),te=`${r}-notice`,[ae,ge,He]=b_(R),X=Cn(()=>{var dt;(dt=ge.onClose)==null||dt.call(ge),ue==null||ue()}),[ie,me]=z.useState(!1),[fe,ne]=y_(U,X,F),ee=100-Math.min(Math.max(V*100,0),100),Se=(S==null?void 0:S.progress)||v_;z.useEffect(()=>{G&&(k?ne():ie||fe())},[k,ie,ne,fe,G]);function Ae(dt){me(!0),G&&ne(),P==null||P(dt)}function De(dt){me(!1),G&&!k&&fe(),Q==null||Q(dt)}function Ue(dt){dt.preventDefault(),dt.stopPropagation(),X()}const Ve=z.useRef(N);N!==void 0&&(Ve.current=N);const Pe=z.useRef(L);L!==void 0&&(Pe.current=L);const Ie=N??Ve.current,nt=L??Pe.current??0,ut=T!=null?z.createElement("div",{className:qe(`${te}-title`,p==null?void 0:p.title),style:y==null?void 0:y.title},T):null,ze=C!=null?z.createElement("div",{className:qe(`${te}-description`,p==null?void 0:p.description),style:y==null?void 0:y.description},C):null,Ye=ut!==null,Rt=ze!==null;let Le=null;Ye&&Rt?Le=z.createElement("div",{className:qe(`${te}-section`,p==null?void 0:p.section),style:y==null?void 0:y.section},ut,ze):Le=ut||ze,j!=null&&(Le=z.createElement("div",{className:qe(`${te}-wrapper`,p==null?void 0:p.wrapper),style:y==null?void 0:y.wrapper},z.createElement("div",{className:qe(`${te}-icon`,p==null?void 0:p.icon),style:y==null?void 0:y.icon},j),Le));const ft=O?z.createElement("div",{className:qe(`${te}-actions`,p==null?void 0:p.actions),style:y==null?void 0:y.actions},O):null,$e={"--notification-index":nt,...y==null?void 0:y.root,...f};Ie!==void 0&&($e["--notification-y"]=`${Ie}px`);const Xe=A??(_==null?void 0:_.role)??"alert";return z.createElement("div",oS({},_,{ref:i,role:Xe,"data-notification-index":nt,className:qe(te,s,p==null?void 0:p.root,{[`${te}-closable`]:ae,[`${te}-stack-in-threshold`]:D}),style:$e,onClick:Y,onMouseEnter:Ae,onMouseLeave:De}),Le,ft,ae&&z.createElement("button",oS({className:qe(`${te}-close`,p==null?void 0:p.close),"aria-label":"Close"},He,{style:y==null?void 0:y.close,onClick:Ue}),ge.closeIcon),B&&typeof U=="number"&&U>0&&z.createElement(Se,{className:qe(`${te}-progress`,p==null?void 0:p.progress),percent:ee,style:y==null?void 0:y.progress}))});process.env.NODE_ENV!=="production"&&(Rj.displayName="Notification");const Nj=z.createContext({}),_j=({children:n,classNames:i})=>{const r=z.useMemo(()=>({classNames:i}),[i]);return z.createElement(Nj.Provider,{value:r},n)};function gC(){return gC=Object.assign?Object.assign.bind():function(n){for(var i=1;i<arguments.length;i++){var r=arguments[i];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(n[s]=r[s])}return n},gC.apply(this,arguments)}const $j=z.forwardRef((n,i)=>{const{listPrefixCls:r,height:s,topNoticeHeight:f=0,topNoticeWidth:p=0,className:y,style:S,...T}=n,C=`${r}-content`,j=z.useRef(s),O=j.current,A=s<O?"decrease":"increase";j.current=s;const R={...S,height:s,"--top-notificiation-height":`${f}px`,"--top-notificiation-width":`${p}px`};return z.createElement("div",gC({},T,{className:qe(C,`${C}-${A}`,y),style:R,ref:i}))});process.env.NODE_ENV!=="production"&&($j.displayName="NotificationListContent");function iS(){return iS=Object.assign?Object.assign.bind():function(n){for(var i=1;i<arguments.length;i++){var r=arguments[i];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(n[s]=r[s])}return n},iS.apply(this,arguments)}const Bj=["wrapper","root","icon","section","title","description","actions","close","progress"];function S_(n){return Bj.reduce((i,r)=>(i[r]=qe(...n.map(s=>s==null?void 0:s[r])),i),{})}function x_(n){return Bj.reduce((i,r)=>(i[r]=Object.assign({},...n.map(s=>s==null?void 0:s[r])),i),{})}function E_(n,i){const r=String(i),s=n.findIndex(f=>f.key===r);if(s!==-1)return n.length-s-1}const C_=n=>{const{config:i,components:r,contextClassNames:s,classNames:f,styles:p,className:y,style:S,nodeRef:T,listHovering:C,stackEnabled:j,pauseOnHover:O,setNodeSize:A,onNoticeClose:R,...N}=n,{key:L,placement:D,..._}=i,U=String(L),B=z.useCallback(G=>{A(U,G)},[A,U]),k=bm(T,B);return z.createElement(Rj,iS({},_,N,{ref:k,className:qe(s==null?void 0:s.notice,i.className,y),style:{...S,...i.style},classNames:S_([f,i.classNames]),styles:x_([p,i.styles]),components:{...r,...i.components},hovering:j&&C,pauseOnHover:i.pauseOnHover??O,onClose:()=>{var G;(G=i.onClose)==null||G.call(i),R==null||R(L)}}))},T_=n=>{const{configList:i=[],prefixCls:r="rc-notification",pauseOnHover:s,classNames:f,styles:p,components:y,stack:S,motion:T,placement:C,className:j,style:O,onNoticeClose:A,onAllRemoved:R}=n,{classNames:N}=z.useContext(Nj),L=z.useMemo(()=>i.map(me=>({config:me,key:String(me.key)})),[i]),D=typeof T=="function"?T(C):T,[_,{offset:U,threshold:B}]=g_(S),[k,G]=z.useState(!1),Y=_&&(k||L.length<=B),P=z.useMemo(()=>{if(!(!_||Y))return{offset:U,threshold:B}},[Y,U,_,B]),[Q,ue]=z.useState(0),V=z.useRef(null),[F,te,ae,ge,He]=p_(i,P,Q),X=!!i.length;z.useEffect(()=>{const me=V.current;if(!me)return;const{gap:fe,rowGap:ne}=window.getComputedStyle(me),ee=parseFloat(ne||fe)||0;ue(Se=>Se===ee?Se:ee)},[X]);const ie=`${r}-list`;return z.createElement("div",{className:qe(r,ie,`${r}-${C}`,N==null?void 0:N.list,j,f==null?void 0:f.list,{[`${r}-stack`]:_,[`${r}-stack-expanded`]:Y,[`${ie}-hovered`]:k}),onMouseEnter:()=>{G(!0)},onMouseLeave:()=>{G(!1)},style:{...p==null?void 0:p.list,...O}},z.createElement($j,{listPrefixCls:ie,height:ae,topNoticeHeight:ge,topNoticeWidth:He,className:f==null?void 0:f.listContent,style:p==null?void 0:p.listContent,ref:V},z.createElement(h_,iS({component:!1,keys:L,motionAppear:!0},D,{onAllRemoved:()=>{C&&(R==null||R(C))}}),({config:me,className:fe,style:ne},ee)=>{const{key:Se}=me,Ae=String(Se),De=E_(L,Se),Ue=_&&De!==void 0&&De<B;return z.createElement(C_,{key:Se,config:me,components:y,contextClassNames:N,classNames:f,styles:p,className:fe,style:ne,nodeRef:ee,prefixCls:r,offset:F.get(Ae),notificationIndex:De,stackInThreshold:Ue,listHovering:k,stackEnabled:_,pauseOnHover:s,setNodeSize:te,onNoticeClose:A})})))},Hj=z.forwardRef((n,i)=>{const{prefixCls:r="rc-notification",container:s,motion:f,maxCount:p,pauseOnHover:y,classNames:S,styles:T,components:C,className:j,style:O,onAllRemoved:A,stack:R,renderNotifications:N}=n,[L,D]=z.useState([]),[_,U]=z.useState({}),B=z.useRef(!1);z.useImperativeHandle(i,()=>({open:Y=>{D(P=>{var F;let Q=[...P];const ue=Q.findIndex(te=>te.key===Y.key),V={...Y};return ue>=0?(V.times=(((F=P[ue])==null?void 0:F.times)??0)+1,Q[ue]=V):(V.times=0,Q.push(V)),p&&p>0&&Q.length>p&&(Q=Q.slice(-p)),Q})},close:Y=>{D(P=>P.filter(Q=>Q.key!==Y))},destroy:()=>{D([])}})),z.useEffect(()=>{const Y={};L.forEach(P=>{const Q=P.placement??"topRight";Y[Q]=Y[Q]||[],Y[Q].push(P)}),Object.keys(_).forEach(P=>{Y[P]=Y[P]||[]}),U(Y)},[L]);const k=Cn(Y=>{U(P=>{const Q={...P};return(Q[Y]||[]).length||delete Q[Y],Q})});if(z.useEffect(()=>{Object.keys(_).length>0?B.current=!0:B.current&&(A==null||A(),B.current=!1)},[_,A]),!s)return null;const G=Object.keys(_);return ty.createPortal(z.createElement(z.Fragment,null,G.map(Y=>{const P=z.createElement(T_,{key:Y,configList:_[Y],placement:Y,prefixCls:r,pauseOnHover:y,classNames:S,styles:T,components:C,className:j==null?void 0:j(Y),style:O==null?void 0:O(Y),motion:f,stack:R,onNoticeClose:Q=>{D(ue=>ue.filter(V=>V.key!==Q))},onAllRemoved:k});return N?z.cloneElement(N(P,{prefixCls:r,key:Y}),{key:Y}):P})),s)});process.env.NODE_ENV!=="production"&&(Hj.displayName="Notifications");const O_=()=>document.body;let Uj=0;function w_(...n){const i={};return n.forEach(r=>{r&&Object.keys(r).forEach(s=>{const f=r[s];f!==void 0&&(i[s]=f)})}),i}function Lj(n={}){const{getContainer:i=O_,motion:r,prefixCls:s,placement:f,closable:p,duration:y,showProgress:S,pauseOnHover:T,classNames:C,styles:j,components:O,maxCount:A,className:R,style:N,onAllRemoved:L,stack:D,renderNotifications:_}=n,U={placement:f,closable:p,duration:y,showProgress:S},[B,k]=z.useState(),G=z.useRef(null),[Y,P]=z.useState([]),Q=z.createElement(Hj,{container:B,ref:G,prefixCls:s,motion:r,maxCount:A,pauseOnHover:T,classNames:C,styles:j,components:O,className:R,style:N,onAllRemoved:L,stack:D,renderNotifications:_}),ue=Cn(F=>{const te=w_(U,F);(te.key===null||te.key===void 0)&&(te.key=`rc-notification-${Uj}`,Uj+=1),P(ae=>[...ae,{type:"open",config:te}])}),V=z.useMemo(()=>({open:ue,close:F=>{P(te=>[...te,{type:"close",key:F}])},destroy:()=>{P(F=>[...F,{type:"destroy"}])}}),[]);return z.useEffect(()=>{k(i())}),z.useEffect(()=>{G.current&&Y.length&&(Y.forEach(F=>{var te,ae,ge;switch(F.type){case"open":(te=G.current)==null||te.open(F.config);break;case"close":(ae=G.current)==null||ae.close(F.key);break;case"destroy":(ge=G.current)==null||ge.destroy();break}}),P(F=>{const te=F.filter(ae=>!Y.includes(ae));return te.length===F.length?F:te}))},[Y]),[V,Q]}function yC(n,i){(i==null||i>n.length)&&(i=n.length);for(var r=0,s=Array(i);r<i;r++)s[r]=n[r];return s}function j_(n){if(Array.isArray(n))return yC(n)}function A_(n){if(typeof Symbol<"u"&&n[Symbol.iterator]!=null||n["@@iterator"]!=null)return Array.from(n)}function qj(n,i){if(n){if(typeof n=="string")return yC(n,i);var r={}.toString.call(n).slice(8,-1);return r==="Object"&&n.constructor&&(r=n.constructor.name),r==="Map"||r==="Set"?Array.from(n):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?yC(n,i):void 0}}function M_(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
322
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function xs(n){return j_(n)||A_(n)||qj(n)||M_()}const Es=n=>n!=null,Cm=n=>Es(n)&&n!==!1&&n!=="",Tm=n=>typeof n=="number"&&!Number.isNaN(n),yd=n=>typeof n=="string",co=n=>n!==null&&typeof n=="object",ri=n=>typeof n=="function",bC=n=>Es(n)&&ri(n.then),z_=n=>co(n)&&"propertyName"in n&&yd(n.propertyName),Vj=(n={},...i)=>i.filter(r=>!!r).reduce((r,s)=>(Object.keys(s).forEach(f=>{const p=n[f],y=s[f];if(p)if(co(y))r[f]=Vj(p,r[f],y);else{const{_default:S}=p;S&&(r[f]=r[f]||{},r[f][S]=qe(r[f][S],y))}else r[f]=qe(r[f],y)}),r),{}),D_=(n,...i)=>z.useMemo(()=>Vj.apply(void 0,[n].concat(i)),[n].concat(i)),R_=(...n)=>n.filter(i=>!!i).reduce((i,r={})=>(Object.keys(r).forEach(s=>{i[s]={...i[s],...r[s]}}),i),{}),N_=(...n)=>z.useMemo(()=>R_.apply(void 0,n),[].concat(n)),Om=(n,i)=>ri(n)?n(i):n,gy=(n,i,r,s)=>{const f=n.map(T=>T?Om(T,r):void 0),p=i.map(T=>T?Om(T,r):void 0),y=D_.apply(void 0,[s].concat(xs(f))),S=N_.apply(void 0,xs(p));return z.useMemo(()=>[y,S],[y,S,s])};function yy(n){for(var i=0,r,s=0,f=n.length;f>=4;++s,f-=4)r=n.charCodeAt(s)&255|(n.charCodeAt(++s)&255)<<8|(n.charCodeAt(++s)&255)<<16|(n.charCodeAt(++s)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,i=(r&65535)*1540483477+((r>>>16)*59797<<16)^(i&65535)*1540483477+((i>>>16)*59797<<16);switch(f){case 3:i^=(n.charCodeAt(s+2)&255)<<16;case 2:i^=(n.charCodeAt(s+1)&255)<<8;case 1:i^=n.charCodeAt(s)&255,i=(i&65535)*1540483477+((i>>>16)*59797<<16)}return i^=i>>>13,i=(i&65535)*1540483477+((i>>>16)*59797<<16),((i^i>>>15)>>>0).toString(36)}const __="%";function vC(n){return n.join(__)}let Fj=0;class $_{constructor(i){we(this,"instanceId");we(this,"cache",new Map);we(this,"updateTimes",new Map);we(this,"extracted",new Set);this.instanceId=i}get(i){return this.opGet(vC(i))}opGet(i){return this.cache.get(i)||null}update(i,r){return this.opUpdate(vC(i),r)}opUpdate(i,r){const s=this.cache.get(i),f=r(s);f===null?(this.cache.delete(i),this.updateTimes.delete(i)):(this.cache.set(i,f),this.updateTimes.set(i,Fj),Fj+=1)}}const SC="data-token-hash",fc="data-css-hash",B_="data-cache-path",dc="__cssinjs_instance__";function H_(){const n=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){const i=document.body.querySelectorAll(`style[${fc}]`)||[],{firstChild:r}=document.head;Array.from(i).forEach(f=>{f[dc]||(f[dc]=n),f[dc]===n&&document.head.insertBefore(f,r)});const s={};Array.from(document.querySelectorAll(`style[${fc}]`)).forEach(f=>{var y;const p=f.getAttribute(fc);s[p]?f[dc]===n&&((y=f.parentNode)==null||y.removeChild(f)):s[p]=!0})}return new $_(n)}const by=z.createContext({hashPriority:"low",cache:H_(),defaultCache:!0,autoPrefix:!1});function U_(n,i){if(n.length!==i.length)return!1;for(let r=0;r<n.length;r++)if(n[r]!==i[r])return!1;return!0}const Im=class Im{constructor(){we(this,"cache");we(this,"keys");we(this,"cacheCallTimes");this.cache=new Map,this.keys=[],this.cacheCallTimes=0}size(){return this.keys.length}internalGet(i,r=!1){let s={map:this.cache};return i.forEach(f=>{var p;s?s=(p=s==null?void 0:s.map)==null?void 0:p.get(f):s=void 0}),s!=null&&s.value&&r&&(s.value[1]=this.cacheCallTimes++),s==null?void 0:s.value}get(i){var r;return(r=this.internalGet(i,!0))==null?void 0:r[0]}has(i){return!!this.internalGet(i)}set(i,r){if(!this.has(i)){if(this.size()+1>Im.MAX_CACHE_SIZE+Im.MAX_CACHE_OFFSET){const[f]=this.keys.reduce((p,y)=>{const[,S]=p;return this.internalGet(y)[1]<S?[y,this.internalGet(y)[1]]:p},[this.keys[0],this.cacheCallTimes]);this.delete(f)}this.keys.push(i)}let s=this.cache;i.forEach((f,p)=>{if(p===i.length-1)s.set(f,{value:[r,this.cacheCallTimes++]});else{const y=s.get(f);y?y.map||(y.map=new Map):s.set(f,{map:new Map}),s=s.get(f).map}})}deleteByPath(i,r){var p;const s=i.get(r[0]);if(r.length===1)return s.map?i.set(r[0],{map:s.map}):i.delete(r[0]),(p=s.value)==null?void 0:p[0];const f=this.deleteByPath(s.map,r.slice(1));return(!s.map||s.map.size===0)&&!s.value&&i.delete(r[0]),f}delete(i){if(this.has(i))return this.keys=this.keys.filter(r=>!U_(r,i)),this.deleteByPath(this.cache,i)}};we(Im,"MAX_CACHE_SIZE",20),we(Im,"MAX_CACHE_OFFSET",5);let xC=Im,kj=0;class Ij{constructor(i){we(this,"derivatives");we(this,"id");this.derivatives=Array.isArray(i)?i:[i],this.id=kj,i.length===0&&xm(i.length>0,"[Ant Design CSS-in-JS] Theme should have at least one derivative function."),kj+=1}getDerivativeToken(i){return this.derivatives.reduce((r,s)=>s(i,r),void 0)}}const EC=new xC;function CC(n){const i=Array.isArray(n)?n:[n];return EC.has(i)||EC.set(i,new Ij(i)),EC.get(i)}const L_=new WeakMap,TC={};function q_(n,i){let r=L_;for(let s=0;s<i.length;s+=1){const f=i[s];r.has(f)||r.set(f,new WeakMap),r=r.get(f)}return r.has(TC)||r.set(TC,n()),r.get(TC)}const Gj=new WeakMap;function vy(n){let i=Gj.get(n)||"";return i||(Object.keys(n).forEach(r=>{const s=n[r];i+=r,s instanceof Ij?i+=s.id:s&&typeof s=="object"?i+=vy(s):i+=s}),i=yy(i),Gj.set(n,i)),i}function V_(n,i){return yy(`${i}_${vy(n)}`)}const OC=Bo();function Dt(n){return typeof n=="number"?`${n}px`:n}function Yj(n){const{hashCls:i,hashPriority:r="low"}=n||{};if(!i)return"";const s=`.${i}`;return r==="low"?`:where(${s})`:s}const F_=n=>n!=null;function wC(n,i){const r=typeof i=="function"?i():i;return r?{...n,csp:{...n.csp,nonce:r}}:n}const rS=(n,i="")=>`--${i?`${i}-`:""}${n}`.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(),k_=(n,i,r)=>{const{hashCls:s,hashPriority:f="low",scope:p}=r||{};if(!Object.keys(n).length)return"";const y=`${Yj({hashCls:s,hashPriority:f})}.${i}`,S=[p].flat().filter(Boolean);return`${S.length?S.map(C=>`${y}.${C}`).join(", "):y}{${Object.entries(n).map(([C,j])=>`${C}:${j};`).join("")}}`},Xj=(n,i,r)=>{const{hashCls:s,hashPriority:f="low",prefix:p,unitless:y,ignore:S,preserve:T}=r||{},C={},j={};return Object.entries(n).forEach(([O,A])=>{if(T!=null&&T[O])j[O]=A;else if((typeof A=="string"||typeof A=="number")&&!(S!=null&&S[O])){const R=rS(O,p);C[R]=typeof A=="number"&&!(y!=null&&y[O])?`${A}px`:String(A),j[O]=`var(${R})`}}),[j,k_(C,i,{scope:r==null?void 0:r.scope,hashCls:s,hashPriority:f})]};function I_(){return!1}let jC=!1;function G_(){return jC}const Y_=process.env.NODE_ENV==="production"?I_:G_;if(process.env.NODE_ENV!=="production"&&typeof module<"u"&&module&&module.hot&&typeof window<"u"){const n=typeof globalThis<"u"?globalThis:typeof window<"u"?window:null;if(n&&typeof n.webpackHotUpdate=="function"){const i=n.webpackHotUpdate;n.webpackHotUpdate=(...r)=>(jC=!0,setTimeout(()=>{jC=!1},0),i(...r))}}const sS=new Map;function AC(n,i,r,s,f){const{cache:p}=z.useContext(by),y=[n,...i],S=vC(y),T=Y_(),C=A=>{p.opUpdate(S,R=>{const[N=0,L]=R||[void 0,void 0];let D=L;process.env.NODE_ENV!=="production"&&L&&T&&(s==null||s(D,T),D=null);const _=D||r(),U=[N,_];return A?A(U):U})};z.useMemo(()=>{C()},[S]);let j=p.opGet(S);process.env.NODE_ENV!=="production"&&!j&&(C(),j=p.opGet(S));const O=j[1];return H.useInsertionEffect(()=>(C(([A,R])=>[A+1,R]),sS.has(S)||(f==null||f(O),sS.set(S,!0),Promise.resolve().then(()=>{sS.delete(S)})),()=>{p.opUpdate(S,A=>{const[R=0,N]=A||[];return R-1===0?(s==null||s(N,!1),sS.delete(S),null):[R-1,N]})}),[S]),O}const X_={},P_=process.env.NODE_ENV!=="production"?"css-dev-only-do-not-override":"css",bd=new Map;function Q_(n){bd.set(n,(bd.get(n)||0)+1)}function Z_(n,i){typeof document<"u"&&document.querySelectorAll(`style[${SC}="${n}"]`).forEach(s=>{var f;s[dc]===i&&((f=s.parentNode)==null||f.removeChild(s))})}const J_=-1;function K_(n,i){bd.set(n,(bd.get(n)||0)-1);const r=new Set;bd.forEach((s,f)=>{s<=0&&r.add(f)}),bd.size-r.size>J_&&r.forEach(s=>{Z_(s,i),bd.delete(s)})}const W_=(n,i,r,s)=>{let p={...r.getDerivativeToken(n),...i};return s&&(p=s(p)),p},e5="token";function t5(n,i,r){const{cache:{instanceId:s},container:f,hashPriority:p}=H.useContext(by),{salt:y="",override:S=X_,formatToken:T,getComputedToken:C,cssVar:j,nonce:O}=r,A=q_(()=>Object.assign({},...i),i),R=vy(A),N=vy(S),L=vy(j);return AC(e5,[y,n.id,R,N,L],()=>{const _=C?C(A,S,n):W_(A,S,n,T),U={..._},B=`${y}_${j.prefix}`,k=yy(B),G=`${P_}-${k}`;U._tokenKey=V_(U,B);const[Y,P]=Xj(_,j.key,{prefix:j.prefix,ignore:j.ignore,unitless:j.unitless,preserve:j.preserve,hashPriority:p,hashCls:j.hashed?G:void 0});return Y._hashId=k,Q_(j.key),[Y,G,U,P,j.key]},([,,,,_])=>{K_(_,s)},([,,,_,U])=>{if(!_)return;let B={mark:fc,prepend:"queue",attachTo:f,priority:-999};B=wC(B,O);const k=ju(_,yy(`css-var-${U}`),B);k[dc]=s,k.setAttribute(SC,U)})}var n5={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},al="-ms-",Sy="-moz-",xn="-webkit-",Pj="comm",MC="rule",zC="decl",l5="@import",a5="@namespace",Qj="@keyframes",o5="@layer",i5=Math.abs,xy=String.fromCharCode,DC=Object.assign;function r5(n,i){return sa(n,0)^45?(((i<<2^sa(n,0))<<2^sa(n,1))<<2^sa(n,2))<<2^sa(n,3):0}function Zj(n){return n.trim()}function hc(n,i){return(n=i.exec(n))?n[0]:n}function Xt(n,i,r){return n.replace(i,r)}function RC(n,i){return n.indexOf(i)}function sa(n,i){return n.charCodeAt(i)|0}function vd(n,i,r){return n.slice(i,r)}function Ur(n){return n.length}function Jj(n){return n.length}function Ey(n,i){return i.push(n),n}function s5(n,i){return n.map(i).join("")}function Kj(n,i){return n.filter(function(r){return!hc(r,i)})}var cS=1,wm=1,Wj=0,Gi=0,Il=0,jm="";function uS(n,i,r,s,f,p,y,S){return{value:n,root:i,parent:r,type:s,props:f,children:p,line:cS,column:wm,length:y,return:"",siblings:S}}function zu(n,i){return DC(uS("",null,null,"",null,null,0,n.siblings),n,{length:-n.length},i)}function Am(n){for(;n.root;)n=zu(n.root,{children:[n]});Ey(n,n.siblings)}function c5(){return Il}function u5(){return Il=Gi>0?sa(jm,--Gi):0,wm--,Il===10&&(wm=1,cS--),Il}function Lr(){return Il=Gi<Wj?sa(jm,Gi++):0,wm++,Il===10&&(wm=1,cS++),Il}function Du(){return sa(jm,Gi)}function fS(){return Gi}function dS(n,i){return vd(jm,n,i)}function Cy(n){switch(n){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 f5(n){return cS=wm=1,Wj=Ur(jm=n),Gi=0,[]}function d5(n){return jm="",n}function NC(n){return Zj(dS(Gi-1,_C(n===91?n+2:n===40?n+1:n)))}function h5(n){for(;(Il=Du())&&Il<33;)Lr();return Cy(n)>2||Cy(Il)>3?"":" "}function m5(n,i){for(;--i&&Lr()&&!(Il<48||Il>102||Il>57&&Il<65||Il>70&&Il<97););return dS(n,fS()+(i<6&&Du()==32&&Lr()==32))}function _C(n){for(;Lr();)switch(Il){case n:return Gi;case 34:case 39:n!==34&&n!==39&&_C(Il);break;case 40:n===41&&_C(n);break;case 92:Lr();break}return Gi}function p5(n,i){for(;Lr()&&n+Il!==57;)if(n+Il===84&&Du()===47)break;return"/*"+dS(i,Gi-1)+"*"+xy(n===47?n:Lr())}function g5(n){for(;!Cy(Du());)Lr();return dS(n,Gi)}function eA(n){return d5(hS("",null,null,null,[""],n=f5(n),0,[0],n))}function hS(n,i,r,s,f,p,y,S,T){for(var C=0,j=0,O=y,A=0,R=0,N=0,L=1,D=1,_=1,U=0,B=0,k="",G=f,Y=p,P=s,Q=k;D;)switch(N=B,B=Lr()){case 40:N!=108&&sa(Q,O-1)==58?(U++,Q+="("):Q+=NC(B);break;case 41:U--,Q+=")";break;case 34:case 39:case 91:Q+=NC(B);break;case 9:case 10:case 13:case 32:if(U>0){Q+=xy(B);break}Q+=h5(N);break;case 92:Q+=m5(fS()-1,7);continue;case 47:switch(Du()){case 42:case 47:Ey(y5(p5(Lr(),fS()),i,r,T),T),(Cy(N||1)==5||Cy(Du()||1)==5)&&Ur(Q)&&vd(Q,-1,void 0)!==" "&&(Q+=" ");break;default:Q+="/"}break;case 123*L:S[C++]=Ur(Q)*_;case 125*L:case 59:case 0:if(U>0&&B){Q+=xy(B);break}switch(B){case 0:case 125:D=0;case 59+j:_==-1&&(Q=Xt(Q,/\f/g,"")),R>0&&(Ur(Q)-O||L===0)&&Ey(R>32?nA(Q+";",s,r,O-1,T):nA(Xt(Q," ","")+";",s,r,O-2,T),T);break;case 59:Q+=";";default:if(Ey(P=tA(Q,i,r,C,j,f,S,k,G=[],Y=[],O,p),p),B===123)if(j===0)hS(Q,i,P,P,G,p,O,S,Y);else{switch(A){case 99:if(sa(Q,3)===110)break;case 108:if(sa(Q,2)===97)break;default:j=0;case 100:case 109:case 115:}j?hS(n,P,P,s&&Ey(tA(n,P,P,0,0,f,S,k,f,G=[],O,Y),Y),f,Y,O,S,s?G:Y):hS(Q,P,P,P,[""],Y,0,S,Y)}}C=j=R=0,L=_=1,k=Q="",O=y;break;case 58:O=1+Ur(Q),R=N;default:if(L<1){if(B==123)--L;else if(B==125&&L++==0&&u5()==125)continue}switch(Q+=xy(B),B*L){case 38:_=j>0?1:(Q+="\f",-1);break;case 44:if(U>0)break;S[C++]=(Ur(Q)-1)*_,_=1;break;case 64:Du()===45&&(Q+=NC(Lr())),A=Du(),j=O=Ur(k=Q+=g5(fS())),B++;break;case 45:N===45&&Ur(Q)==2&&(L=0)}}return p}function tA(n,i,r,s,f,p,y,S,T,C,j,O){for(var A=f-1,R=f===0?p:[""],N=Jj(R),L=0,D=0,_=0;L<s;++L)for(var U=0,B=vd(n,A+1,A=i5(D=y[L])),k=n;U<N;++U)(k=Zj(D>0?R[U]+" "+B:Xt(B,/&\f/g,R[U])))&&(T[_++]=k);return uS(n,i,r,f===0?MC:S,T,C,j,O)}function y5(n,i,r,s){return uS(n,i,r,Pj,xy(c5()),vd(n,2,-2),0,s)}function nA(n,i,r,s,f){return uS(n,i,r,zC,vd(n,0,s),vd(n,s+1,-1),s,f)}function lA(n,i,r){switch(r5(n,i)){case 5103:return xn+"print-"+n+n;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:case 6391:case 5879:case 5623:case 6135:case 4599:return xn+n+n;case 4855:return xn+n.replace("add","source-over").replace("substract","source-out").replace("intersect","source-in").replace("exclude","xor")+n;case 4789:return Sy+n+n;case 5349:case 4246:case 4810:case 6968:case 2756:return xn+n+Sy+n+al+n+n;case 5936:switch(sa(n,i+11)){case 114:return xn+n+al+Xt(n,/[svh]\w+-[tblr]{2}/,"tb")+n;case 108:return xn+n+al+Xt(n,/[svh]\w+-[tblr]{2}/,"tb-rl")+n;case 45:return xn+n+al+Xt(n,/[svh]\w+-[tblr]{2}/,"lr")+n}case 6828:case 4268:case 2903:return xn+n+al+n+n;case 6165:return xn+n+al+"flex-"+n+n;case 5187:return xn+n+Xt(n,/(\w+).+(:[^]+)/,xn+"box-$1$2"+al+"flex-$1$2")+n;case 5443:return xn+n+al+"flex-item-"+Xt(n,/flex-|-self/g,"")+(hc(n,/flex-|baseline/)?"":al+"grid-row-"+Xt(n,/flex-|-self/g,""))+n;case 4675:return xn+n+al+"flex-line-pack"+Xt(n,/align-content|flex-|-self/g,"")+n;case 5548:return xn+n+al+Xt(n,"shrink","negative")+n;case 5292:return xn+n+al+Xt(n,"basis","preferred-size")+n;case 6060:return xn+"box-"+Xt(n,"-grow","")+xn+n+al+Xt(n,"grow","positive")+n;case 4554:return xn+Xt(n,/([^-])(transform)/g,"$1"+xn+"$2")+n;case 6187:return Xt(Xt(Xt(n,/(zoom-|grab)/,xn+"$1"),/(image-set)/,xn+"$1"),n,"")+n;case 5495:case 3959:return Xt(n,/(image-set\([^]*)/,xn+"$1$`$1");case 4968:return Xt(Xt(n,/(.+:)(flex-)?(.*)/,xn+"box-pack:$3"+al+"flex-pack:$3"),/space-between/,"justify")+xn+n+n;case 4200:if(!hc(n,/flex-|baseline/))return al+"grid-column-align"+vd(n,i)+n;break;case 2592:case 3360:return al+Xt(n,"template-","")+n;case 4384:case 3616:return r&&r.some(function(s,f){return i=f,hc(s.props,/grid-\w+-end/)})?~RC(n+(r=r[i].value),"span")?n:al+Xt(n,"-start","")+n+al+"grid-row-span:"+(~RC(r,"span")?hc(r,/\d+/):+hc(r,/\d+/)-+hc(n,/\d+/))+";":al+Xt(n,"-start","")+n;case 4896:case 4128:return r&&r.some(function(s){return hc(s.props,/grid-\w+-start/)})?n:al+Xt(Xt(n,"-end","-span"),"span ","")+n;case 4095:case 3583:case 4068:case 2532:return Xt(n,/(.+)-inline(.+)/,xn+"$1$2")+n;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Ur(n)-1-i>6)switch(sa(n,i+1)){case 109:if(sa(n,i+4)!==45)break;case 102:return Xt(n,/(.+:)(.+)-([^]+)/,"$1"+xn+"$2-$3$1"+Sy+(sa(n,i+3)==108?"$3":"$2-$3"))+n;case 115:return~RC(n,"stretch")?lA(Xt(n,"stretch","fill-available"),i,r)+n:n}break;case 5152:case 5920:return Xt(n,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(s,f,p,y,S,T,C){return al+f+":"+p+C+(y?al+f+"-span:"+(S?T:+T-+p)+C:"")+n});case 4949:if(sa(n,i+6)===121)return Xt(n,":",":"+xn)+n;break;case 6444:switch(sa(n,sa(n,14)===45?18:11)){case 120:return Xt(n,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+xn+(sa(n,14)===45?"inline-":"")+"box$3$1"+xn+"$2$3$1"+al+"$2box$3")+n;case 100:return Xt(n,":",":"+al)+n}break;case 5719:case 2647:case 2135:case 3927:case 2391:return Xt(n,"scroll-","scroll-snap-")+n}return n}function Ty(n,i){for(var r="",s=0;s<n.length;s++)r+=i(n[s],s,n,i)||"";return r}function aA(n,i,r,s){switch(n.type){case o5:if(n.children.length)break;case l5:case a5:case zC:return n.return=n.return||n.value;case Pj:return"";case Qj:return n.return=n.value+"{"+Ty(n.children,s)+"}";case MC:if(!Ur(n.value=n.props.join(",")))return""}return Ur(r=Ty(n.children,s))?n.return=n.value+"{"+r+"}":""}function b5(n){var i=Jj(n);return function(r,s,f,p){for(var y="",S=0;S<i;S++)y+=n[S](r,s,f,p)||"";return y}}function v5(n,i,r,s){if(n.length>-1&&!n.return)switch(n.type){case zC:n.return=lA(n.value,n.length,r);return;case Qj:return Ty([zu(n,{value:Xt(n.value,"@","@"+xn)})],s);case MC:if(n.length)return s5(r=n.props,function(f){switch(hc(f,s=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":Am(zu(n,{props:[Xt(f,/:(read-\w+)/,":"+Sy+"$1")]})),Am(zu(n,{props:[f]})),DC(n,{props:Kj(r,s)});break;case"::placeholder":Am(zu(n,{props:[Xt(f,/:(plac\w+)/,":"+xn+"input-$1")]})),Am(zu(n,{props:[Xt(f,/:(plac\w+)/,":"+Sy+"$1")]})),Am(zu(n,{props:[Xt(f,/:(plac\w+)/,al+"input-$1")]})),Am(zu(n,{props:[f]})),DC(n,{props:Kj(r,s)});break}return""})}}function oA(n,i){const{path:r,parentSelectors:s}=i;ll(!1,`[Ant Design CSS-in-JS] ${r?`Error in ${r}: `:""}${n}${s.length?` Selector: ${s.join(" | ")}`:""}`)}const S5=(n,i,r)=>{if(n==="content"){const s=/(attr|counters?|url|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/;(typeof i!="string"||["normal","none","initial","inherit","unset"].indexOf(i)===-1&&!s.test(i)&&!i.startsWith("var(")&&(i.charAt(0)!==i.charAt(i.length-1)||i.charAt(0)!=='"'&&i.charAt(0)!=="'"))&&oA(`You seem to be using a value for 'content' without quotes, try replacing it with \`content: '"${i}"'\`.`,r)}},x5=(n,i,r)=>{n==="animation"&&r.hashId&&i!=="none"&&oA(`You seem to be using hashed animation '${i}', in which case 'animationName' with Keyframe as value is recommended.`,r)},iA="data-ant-cssinjs-cache-path",rA="_FILE_STYLE__";let Sd,sA=!0;function E5(){var n;if(!Sd&&(Sd={},Bo())){const i=document.createElement("div");i.className=iA,i.style.position="fixed",i.style.visibility="hidden",i.style.top="-9999px",document.body.appendChild(i);let r=getComputedStyle(i).content||"";r=r.replace(/^"/,"").replace(/"$/,""),r.split(";").forEach(f=>{const[p,y]=f.split(":");Sd[p]=y});const s=document.querySelector(`style[${iA}]`);s&&(sA=!1,(n=s.parentNode)==null||n.removeChild(s)),document.body.removeChild(i)}}function C5(n){return E5(),!!Sd[n]}function T5(n){const i=Sd[n];let r=null;if(i&&Bo())if(sA)r=rA;else{const s=document.querySelector(`style[${fc}="${Sd[n]}"]`);s?r=s.innerHTML:delete Sd[n]}return[r,i]}const cA="_skip_check_",uA="_multi_value_";function $C(n,i){return(i?Ty(eA(n),b5([v5,aA])):Ty(eA(n),aA)).replace(/\{%%%\:[^;];}/g,";")}function O5(n){return typeof n=="object"&&n&&(cA in n||uA in n)}function fA(n,i,r="high"){if(!i)return n;const s=Yj({hashCls:i,hashPriority:r});return n.split(",").map(p=>{var C;const y=p.trim().split(/\s+/);let S=y[0]||"";const T=((C=S.match(/^\w+/))==null?void 0:C[0])||"";return S=`${T}${s}${S.slice(T.length)}`,[S,...y.slice(1)].join(" ")}).join(",")}const BC=(n,i={},{root:r,injectHash:s,parentSelectors:f}={root:!0,parentSelectors:[]})=>{const{hashId:p,layer:y,path:S,hashPriority:T,transformers:C=[],linters:j=[]}=i;let O="",A={};function R(D){const _=D.getName(p);if(!A[_]){const[U]=BC(D.style,i,{root:!1,parentSelectors:f});A[_]=`@keyframes ${D.getName(p)}${U}`}}function N(D,_=[]){return D.forEach(U=>{Array.isArray(U)?N(U,_):U&&_.push(U)}),_}return N(Array.isArray(n)?n:[n]).forEach(D=>{const _=typeof D=="string"&&!r?{}:D;if(typeof _=="string")O+=`${_}
323
- `;else if(_._keyframe)R(_);else{const U=C.reduce((B,k)=>{var G;return((G=k==null?void 0:k.visit)==null?void 0:G.call(k,B))||B},_);Object.keys(U).forEach(B=>{const k=U[B];if(typeof k=="object"&&k&&(B!=="animationName"||!k._keyframe)&&!O5(k)){let G=!1,Y=B.trim(),P=!1;(r||s)&&p?Y.startsWith("@")?G=!0:Y==="&"?Y=fA("",p,T):Y=fA(B,p,T):r&&!p&&(Y==="&"||Y==="")&&(Y="",P=!0);const[Q,ue]=BC(k,i,{root:P,injectHash:G,parentSelectors:[...f,Y]});A={...A,...ue},O+=`${Y}${Q}`}else{let G=function(P,Q){process.env.NODE_ENV!=="production"&&(typeof k!="object"||!(k!=null&&k[cA]))&&[S5,x5,...j].forEach(F=>F(P,Q,{path:S,hashId:p,parentSelectors:f}));const ue=P.replace(/[A-Z]/g,F=>`-${F.toLowerCase()}`);let V=Q;!n5[P]&&typeof V=="number"&&V!==0&&(V=`${V}px`),P==="animationName"&&(Q!=null&&Q._keyframe)&&(R(Q),V=Q.getName(p)),O+=`${ue}:${V};`};const Y=(k==null?void 0:k.value)??k;typeof k=="object"&&(k!=null&&k[uA])&&Array.isArray(Y)?Y.forEach(P=>{G(B,P)}):F_(Y)&&G(B,Y)}})}}),r?y&&(O&&(O=`@layer ${y.name} {${O}}`),y.dependencies&&(A[`@layer ${y.name}`]=y.dependencies.map(D=>`@layer ${D}, ${y.name};`).join(`
324
- `))):O=`{${O}}`,[O,A]};function dA(n,i){return yy(`${n.join("%")}${i}`)}const w5="style";function HC(n,i){const{path:r,hashId:s,layer:f,nonce:p,clientOnly:y,order:S=0}=n,{mock:T,hashPriority:C,container:j,transformers:O,linters:A,cache:R,layer:N,autoPrefix:L}=z.useContext(by),D=[s||""];N&&D.push("layer"),D.push(...r);let _=OC;process.env.NODE_ENV!=="production"&&T!==void 0&&(_=T==="client"),AC(w5,D,()=>{const U=D.join("|");if(C5(U)){const[Q,ue]=T5(U);if(Q)return[Q,ue,{},y,S]}const B=i(),[k,G]=BC(B,{hashId:s,hashPriority:C,layer:N?f:void 0,path:r.join("-"),transformers:O,linters:A}),Y=$C(k,L||!1),P=dA(D,Y);return[Y,P,G,y,S]},(U,B)=>{const[,k]=U;B&&OC&&fy(k,{mark:fc,attachTo:j})},U=>{const[B,k,G,,Y]=U;if(_&&B!==rA){let P={mark:fc,prepend:N?!1:"queue",attachTo:j,priority:Y};P=wC(P,p);const Q=[],ue=[];Object.keys(G).forEach(F=>{F.startsWith("@layer")?Q.push(F):ue.push(F)}),Q.forEach(F=>{ju($C(G[F],L||!1),`_layer-${F}`,{...P,prepend:!0})});const V=ju(B,k,P);V[dc]=R.instanceId,process.env.NODE_ENV!=="production"&&V.setAttribute(B_,D.join("|")),ue.forEach(F=>{ju($C(G[F],L||!1),`_effect-${F}`,P)})}})}const j5="cssVar",A5=(n,i)=>{const{key:r,prefix:s,unitless:f,ignore:p,token:y,hashId:S,scope:T,nonce:C}=n,{cache:{instanceId:j},container:O,hashPriority:A}=H.useContext(by),{_tokenKey:R}=y,N=Array.isArray(T)?T.join("@@"):T,L=[...n.path,r,N,R];return AC(j5,L,()=>{const _=i(),[U,B]=Xj(_,r,{prefix:s,unitless:f,ignore:p,scope:T,hashPriority:A,hashCls:S}),k=dA(L,B);return[U,B,k,r]},([,,_])=>{OC&&fy(_,{mark:fc,attachTo:O})},([,_,U])=>{if(!_)return;let B={mark:fc,prepend:"queue",attachTo:O,priority:-999};B=wC(B,C);const k=ju(_,U,B);k[dc]=j,k.setAttribute(SC,r)})};class Qa{constructor(i,r){we(this,"name");we(this,"style");we(this,"_keyframe",!0);this.name=i,this.style=r}getName(i=""){return i?`${i}-${this.name}`:this.name}}function Mm(n){return n.notSplit=!0,n}Mm(["borderTop","borderBottom"]),Mm(["borderTop"]),Mm(["borderBottom"]),Mm(["borderLeft","borderRight"]),Mm(["borderLeft"]),Mm(["borderRight"]);const UC=H.createContext({}),M5=H.createContext(void 0),z5={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"};var D5={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0};function Oy(n){"@babel/helpers - typeof";return Oy=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},Oy(n)}function hA(n,i){var r=Object.keys(n);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(n);i&&(s=s.filter(function(f){return Object.getOwnPropertyDescriptor(n,f).enumerable})),r.push.apply(r,s)}return r}function mA(n){for(var i=1;i<arguments.length;i++){var r=arguments[i]!=null?arguments[i]:{};i%2?hA(Object(r),!0).forEach(function(s){R5(n,s,r[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(r)):hA(Object(r)).forEach(function(s){Object.defineProperty(n,s,Object.getOwnPropertyDescriptor(r,s))})}return n}function R5(n,i,r){return i=N5(i),i in n?Object.defineProperty(n,i,{value:r,enumerable:!0,configurable:!0,writable:!0}):n[i]=r,n}function N5(n){var i=_5(n,"string");return Oy(i)=="symbol"?i:String(i)}function _5(n,i){if(Oy(n)!="object"||!n)return n;var r=n[Symbol.toPrimitive];if(r!==void 0){var s=r.call(n,i);if(Oy(s)!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(i==="string"?String:Number)(n)}var $5=mA(mA({},D5),{},{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",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 pA={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},gA={lang:{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"],...$5},timePickerLocale:{...pA}},si="${label} is not a valid ${type}",Ru={locale:"en",Pagination:z5,DatePicker:gA,TimePicker:pA,Calendar:gA,global:{placeholder:"Please select",close:"Close",sortable:"sortable",show:"Show",hide:"Hide"},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:si,method:si,array:si,object:si,number:si,date:si,boolean:si,integer:si,float:si,regexp:si,email:si,url:si,hex:si},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}"}}},QRCode:{expired:"QR code expired",refresh:"Refresh",scanned:"Scanned"},ColorPicker:{presetEmpty:"Empty",transparent:"Transparent",singleColor:"Single",gradientColor:"Gradient"}};let mS={...Ru.Modal},pS=[];const yA=()=>pS.reduce((n,i)=>({...n,...i}),Ru.Modal);function B5(n){if(n){const i={...n};return pS.push(i),mS=yA(),()=>{pS=pS.filter(r=>r!==i),mS=yA()}}mS={...Ru.Modal}}function H5(){return mS}const LC=H.createContext(void 0),gS=(n,i)=>{const r=z.useContext(LC),s=z.useMemo(()=>{const p=i||Ru[n],y=(r==null?void 0:r[n])??{};return{...ri(p)?p():p,...y||{}}},[n,i,r]),f=z.useMemo(()=>{const p=r==null?void 0:r.locale;return r!=null&&r.exist&&!p?Ru.locale:p},[r]);return[s,f]},bA="internalMark",vA=n=>{const{locale:i={},children:r,_ANT_MARK__:s}=n;if(process.env.NODE_ENV!=="production"){const p=so("LocaleProvider");process.env.NODE_ENV!=="production"&&p(s===bA,"deprecated","`LocaleProvider` is deprecated. Please use `locale` with `ConfigProvider` instead: http://u.ant.design/locale")}z.useEffect(()=>B5(i==null?void 0:i.Modal),[i]);const f=z.useMemo(()=>({...i,exist:!0}),[i]);return z.createElement(LC.Provider,{value:f},r)};process.env.NODE_ENV!=="production"&&(vA.displayName="LocaleProvider");const SA={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"},wy={...SA,colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
325
- 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
326
- '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},U5={aliceblue:"9ehhb",antiquewhite:"9sgk7",aqua:"1ekf",aquamarine:"4zsno",azure:"9eiv3",beige:"9lhp8",bisque:"9zg04",black:"0",blanchedalmond:"9zhe5",blue:"73",blueviolet:"5e31e",brown:"6g016",burlywood:"8ouiv",cadetblue:"3qba8",chartreuse:"4zshs",chocolate:"87k0u",coral:"9yvyo",cornflowerblue:"3xael",cornsilk:"9zjz0",crimson:"8l4xo",cyan:"1ekf",darkblue:"3v",darkcyan:"rkb",darkgoldenrod:"776yz",darkgray:"6mbhl",darkgreen:"jr4",darkgrey:"6mbhl",darkkhaki:"7ehkb",darkmagenta:"5f91n",darkolivegreen:"3bzfz",darkorange:"9yygw",darkorchid:"5z6x8",darkred:"5f8xs",darksalmon:"9441m",darkseagreen:"5lwgf",darkslateblue:"2th1n",darkslategray:"1ugcv",darkslategrey:"1ugcv",darkturquoise:"14up",darkviolet:"5rw7n",deeppink:"9yavn",deepskyblue:"11xb",dimgray:"442g9",dimgrey:"442g9",dodgerblue:"16xof",firebrick:"6y7tu",floralwhite:"9zkds",forestgreen:"1cisi",fuchsia:"9y70f",gainsboro:"8m8kc",ghostwhite:"9pq0v",goldenrod:"8j4f4",gold:"9zda8",gray:"50i2o",green:"pa8",greenyellow:"6senj",grey:"50i2o",honeydew:"9eiuo",hotpink:"9yrp0",indianred:"80gnw",indigo:"2xcoy",ivory:"9zldc",khaki:"9edu4",lavenderblush:"9ziet",lavender:"90c8q",lawngreen:"4vk74",lemonchiffon:"9zkct",lightblue:"6s73a",lightcoral:"9dtog",lightcyan:"8s1rz",lightgoldenrodyellow:"9sjiq",lightgray:"89jo3",lightgreen:"5nkwg",lightgrey:"89jo3",lightpink:"9z6wx",lightsalmon:"9z2ii",lightseagreen:"19xgq",lightskyblue:"5arju",lightslategray:"4nwk9",lightslategrey:"4nwk9",lightsteelblue:"6wau6",lightyellow:"9zlcw",lime:"1edc",limegreen:"1zcxe",linen:"9shk6",magenta:"9y70f",maroon:"4zsow",mediumaquamarine:"40eju",mediumblue:"5p",mediumorchid:"79qkz",mediumpurple:"5r3rv",mediumseagreen:"2d9ip",mediumslateblue:"4tcku",mediumspringgreen:"1di2",mediumturquoise:"2uabw",mediumvioletred:"7rn9h",midnightblue:"z980",mintcream:"9ljp6",mistyrose:"9zg0x",moccasin:"9zfzp",navajowhite:"9zest",navy:"3k",oldlace:"9wq92",olive:"50hz4",olivedrab:"472ub",orange:"9z3eo",orangered:"9ykg0",orchid:"8iu3a",palegoldenrod:"9bl4a",palegreen:"5yw0o",paleturquoise:"6v4ku",palevioletred:"8k8lv",papayawhip:"9zi6t",peachpuff:"9ze0p",peru:"80oqn",pink:"9z8wb",plum:"8nba5",powderblue:"6wgdi",purple:"4zssg",rebeccapurple:"3zk49",red:"9y6tc",rosybrown:"7cv4f",royalblue:"2jvtt",saddlebrown:"5fmkz",salmon:"9rvci",sandybrown:"9jn1c",seagreen:"1tdnb",seashell:"9zje6",sienna:"6973h",silver:"7ir40",skyblue:"5arjf",slateblue:"45e4t",slategray:"4e100",slategrey:"4e100",snow:"9zke2",springgreen:"1egv",steelblue:"2r1kk",tan:"87yx8",teal:"pds",thistle:"8ggk8",tomato:"9yqfb",turquoise:"2j4r4",violet:"9b10u",wheat:"9ld4j",white:"9zldr",whitesmoke:"9lhpx",yellow:"9zl6o",yellowgreen:"61fzm"},ga=Math.round;function qC(n,i){const r=n.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],s=r.map(f=>parseFloat(f));for(let f=0;f<3;f+=1)s[f]=i(s[f]||0,r[f]||"",f);return r[3]?s[3]=r[3].includes("%")?s[3]/100:s[3]:s[3]=1,s}const xA=(n,i,r)=>r===0?n:n/100;function jy(n,i){const r=i||255;return n>r?r:n<0?0:n}class ya{constructor(i){we(this,"isValid",!0);we(this,"r",0);we(this,"g",0);we(this,"b",0);we(this,"a",1);we(this,"_h");we(this,"_hsl_s");we(this,"_hsv_s");we(this,"_l");we(this,"_v");we(this,"_max");we(this,"_min");we(this,"_brightness");function r(s){return s[0]in i&&s[1]in i&&s[2]in i}if(i)if(typeof i=="string"){let f=function(p){return s.startsWith(p)};const s=i.trim();if(/^#?[A-F\d]{3,8}$/i.test(s))this.fromHexString(s);else if(f("rgb"))this.fromRgbString(s);else if(f("hsl"))this.fromHslString(s);else if(f("hsv")||f("hsb"))this.fromHsvString(s);else{const p=U5[s.toLowerCase()];p&&this.fromHexString(parseInt(p,36).toString(16).padStart(6,"0"))}}else if(i instanceof ya)this.r=i.r,this.g=i.g,this.b=i.b,this.a=i.a,this._h=i._h,this._hsl_s=i._hsl_s,this._hsv_s=i._hsv_s,this._l=i._l,this._v=i._v;else if(r("rgb"))this.r=jy(i.r),this.g=jy(i.g),this.b=jy(i.b),this.a=typeof i.a=="number"?jy(i.a,1):1;else if(r("hsl"))this.fromHsl(i);else if(r("hsv"))this.fromHsv(i);else throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(i))}setR(i){return this._sc("r",i)}setG(i){return this._sc("g",i)}setB(i){return this._sc("b",i)}setA(i){return this._sc("a",i,1)}setHue(i){const r=this.toHsv();return r.h=i,this._c(r)}getLuminance(){function i(p){const y=p/255;return y<=.03928?y/12.92:Math.pow((y+.055)/1.055,2.4)}const r=i(this.r),s=i(this.g),f=i(this.b);return .2126*r+.7152*s+.0722*f}getHue(){if(typeof this._h>"u"){const i=this.getMax()-this.getMin();i===0?this._h=0:this._h=ga(60*(this.r===this.getMax()?(this.g-this.b)/i+(this.g<this.b?6:0):this.g===this.getMax()?(this.b-this.r)/i+2:(this.r-this.g)/i+4))}return this._h}getSaturation(){return this.getHSVSaturation()}getHSVSaturation(){if(typeof this._hsv_s>"u"){const i=this.getMax()-this.getMin();i===0?this._hsv_s=0:this._hsv_s=i/this.getMax()}return this._hsv_s}getHSLSaturation(){if(typeof this._hsl_s>"u"){const i=this.getMax()-this.getMin();if(i===0)this._hsl_s=0;else{const r=this.getLightness();this._hsl_s=i/255/(1-Math.abs(2*r-1))}}return this._hsl_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(i=10){const r=this.getHue(),s=this.getSaturation();let f=this.getLightness()-i/100;return f<0&&(f=0),this._c({h:r,s,l:f,a:this.a})}lighten(i=10){const r=this.getHue(),s=this.getSaturation();let f=this.getLightness()+i/100;return f>1&&(f=1),this._c({h:r,s,l:f,a:this.a})}mix(i,r=50){const s=this._c(i),f=r/100,p=S=>(s[S]-this[S])*f+this[S],y={r:ga(p("r")),g:ga(p("g")),b:ga(p("b")),a:ga(p("a")*100)/100};return this._c(y)}tint(i=10){return this.mix({r:255,g:255,b:255,a:1},i)}shade(i=10){return this.mix({r:0,g:0,b:0,a:1},i)}onBackground(i){const r=this._c(i),s=this.a+r.a*(1-this.a),f=p=>ga((this[p]*this.a+r[p]*r.a*(1-this.a))/s);return this._c({r:f("r"),g:f("g"),b:f("b"),a:s})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(i){return this.r===i.r&&this.g===i.g&&this.b===i.b&&this.a===i.a}clone(){return this._c(this)}toHexString(){let i="#";const r=(this.r||0).toString(16);i+=r.length===2?r:"0"+r;const s=(this.g||0).toString(16);i+=s.length===2?s:"0"+s;const f=(this.b||0).toString(16);if(i+=f.length===2?f:"0"+f,typeof this.a=="number"&&this.a>=0&&this.a<1){const p=ga(this.a*255).toString(16);i+=p.length===2?p:"0"+p}return i}toHsl(){return{h:this.getHue(),s:this.getHSLSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const i=this.getHue(),r=ga(this.getHSLSaturation()*100),s=ga(this.getLightness()*100);return this.a!==1?`hsla(${i},${r}%,${s}%,${this.a})`:`hsl(${i},${r}%,${s}%)`}toHsv(){return{h:this.getHue(),s:this.getHSVSaturation(),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(i,r,s){const f=this.clone();return f[i]=jy(r,s),f}_c(i){return new this.constructor(i)}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(i){const r=i.replace("#","");function s(f,p){return parseInt(r[f]+r[p||f],16)}r.length<6?(this.r=s(0),this.g=s(1),this.b=s(2),this.a=r[3]?s(3)/255:1):(this.r=s(0,1),this.g=s(2,3),this.b=s(4,5),this.a=r[6]?s(6,7)/255:1)}fromHsl({h:i,s:r,l:s,a:f}){const p=(i%360+360)%360;if(this._h=p,this._hsl_s=r,this._l=s,this.a=typeof f=="number"?f:1,r<=0){const R=ga(s*255);this.r=R,this.g=R,this.b=R;return}let y=0,S=0,T=0;const C=p/60,j=(1-Math.abs(2*s-1))*r,O=j*(1-Math.abs(C%2-1));C>=0&&C<1?(y=j,S=O):C>=1&&C<2?(y=O,S=j):C>=2&&C<3?(S=j,T=O):C>=3&&C<4?(S=O,T=j):C>=4&&C<5?(y=O,T=j):C>=5&&C<6&&(y=j,T=O);const A=s-j/2;this.r=ga((y+A)*255),this.g=ga((S+A)*255),this.b=ga((T+A)*255)}fromHsv({h:i,s:r,v:s,a:f}){const p=(i%360+360)%360;this._h=p,this._hsv_s=r,this._v=s,this.a=typeof f=="number"?f:1;const y=ga(s*255);if(this.r=y,this.g=y,this.b=y,r<=0)return;const S=p/60,T=Math.floor(S),C=S-T,j=ga(s*(1-r)*255),O=ga(s*(1-r*C)*255),A=ga(s*(1-r*(1-C))*255);switch(T){case 0:this.g=A,this.b=j;break;case 1:this.r=O,this.b=j;break;case 2:this.r=j,this.b=A;break;case 3:this.r=j,this.g=O;break;case 4:this.r=A,this.g=j;break;case 5:default:this.g=j,this.b=O;break}}fromHsvString(i){const r=qC(i,xA);this.fromHsv({h:r[0],s:r[1],v:r[2],a:r[3]})}fromHslString(i){const r=qC(i,xA);this.fromHsl({h:r[0],s:r[1],l:r[2],a:r[3]})}fromRgbString(i){const r=qC(i,(s,f)=>f.includes("%")?ga(s/100*255):s);this.r=r[0],this.g=r[1],this.b=r[2],this.a=r[3]}}const yS=2,EA=.16,L5=.05,q5=.05,V5=.15,CA=5,TA=4,F5=[{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 OA(n,i,r){let s;return Math.round(n.h)>=60&&Math.round(n.h)<=240?s=r?Math.round(n.h)-yS*i:Math.round(n.h)+yS*i:s=r?Math.round(n.h)+yS*i:Math.round(n.h)-yS*i,s<0?s+=360:s>=360&&(s-=360),s}function wA(n,i,r){if(n.h===0&&n.s===0)return n.s;let s;return r?s=n.s-EA*i:i===TA?s=n.s+EA:s=n.s+L5*i,s>1&&(s=1),r&&i===CA&&s>.1&&(s=.1),s<.06&&(s=.06),Math.round(s*100)/100}function jA(n,i,r){let s;return r?s=n.v+q5*i:s=n.v-V5*i,s=Math.max(0,Math.min(1,s)),Math.round(s*100)/100}function VC(n,i={}){const r=[],s=new ya(n),f=s.toHsv();for(let p=CA;p>0;p-=1){const y=new ya({h:OA(f,p,!0),s:wA(f,p,!0),v:jA(f,p,!0)});r.push(y)}r.push(s);for(let p=1;p<=TA;p+=1){const y=new ya({h:OA(f,p),s:wA(f,p),v:jA(f,p)});r.push(y)}return i.theme==="dark"?F5.map(({index:p,amount:y})=>new ya(i.backgroundColor||"#141414").mix(r[p],y).toHexString()):r.map(p=>p.toHexString())}const FC={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"},kC=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];kC.primary=kC[5];const IC=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];IC.primary=IC[5];const GC=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];GC.primary=GC[5];const YC=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];YC.primary=YC[5];const XC=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];XC.primary=XC[5];const PC=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];PC.primary=PC[5];const QC=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];QC.primary=QC[5];const ZC=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];ZC.primary=ZC[5];const bS=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];bS.primary=bS[5];const JC=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];JC.primary=JC[5];const KC=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];KC.primary=KC[5];const WC=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];WC.primary=WC[5];const eT=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];eT.primary=eT[5];const tT={red:kC,volcano:IC,orange:GC,gold:YC,yellow:XC,lime:PC,green:QC,cyan:ZC,blue:bS,geekblue:JC,purple:KC,magenta:WC,grey:eT},vS=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"];function k5(n,{generateColorPalettes:i,generateNeutralColorPalettes:r}){const{colorSuccess:s,colorWarning:f,colorError:p,colorInfo:y,colorPrimary:S,colorBgBase:T,colorTextBase:C}=n,j=i(S),O=i(s),A=i(f),R=i(p),N=i(y),L=r(T,C),D=n.colorLink||n.colorInfo,_=i(D),U=new ya(R[1]).mix(new ya(R[3]),50).toHexString(),B={};return vS.forEach(k=>{const G=n[k];if(G){const Y=i(G);B[`${k}Hover`]=Y[5],B[`${k}Active`]=Y[7]}}),{...L,colorPrimaryBg:j[1],colorPrimaryBgHover:j[2],colorPrimaryBorder:j[3],colorPrimaryBorderHover:j[4],colorPrimaryHover:j[5],colorPrimary:j[6],colorPrimaryActive:j[7],colorPrimaryTextHover:j[8],colorPrimaryText:j[9],colorPrimaryTextActive:j[10],colorSuccessBg:O[1],colorSuccessBgHover:O[2],colorSuccessBorder:O[3],colorSuccessBorderHover:O[4],colorSuccessHover:O[4],colorSuccess:O[6],colorSuccessActive:O[7],colorSuccessTextHover:O[8],colorSuccessText:O[9],colorSuccessTextActive:O[10],colorErrorBg:R[1],colorErrorBgHover:R[2],colorErrorBgFilledHover:U,colorErrorBgActive:R[3],colorErrorBorder:R[3],colorErrorBorderHover:R[4],colorErrorHover:R[5],colorError:R[6],colorErrorActive:R[7],colorErrorTextHover:R[8],colorErrorText:R[9],colorErrorTextActive:R[10],colorWarningBg:A[1],colorWarningBgHover:A[2],colorWarningBorder:A[3],colorWarningBorderHover:A[4],colorWarningHover:A[4],colorWarning:A[6],colorWarningActive:A[7],colorWarningTextHover:A[8],colorWarningText:A[9],colorWarningTextActive:A[10],colorInfoBg:N[1],colorInfoBgHover:N[2],colorInfoBorder:N[3],colorInfoBorderHover:N[4],colorInfoHover:N[4],colorInfo:N[6],colorInfoActive:N[7],colorInfoTextHover:N[8],colorInfoText:N[9],colorInfoTextActive:N[10],colorLinkHover:_[4],colorLink:_[6],colorLinkActive:_[7],...B,colorBgMask:new ya("#000").setA(.45).toRgbString(),colorWhite:"#fff"}}const I5=n=>{let i=n,r=n,s=n,f=n;return n<6&&n>=5?i=n+1:n<16&&n>=6?i=n+2:n>=16&&(i=16),n<7&&n>=5?r=4:n<8&&n>=7?r=5:n<14&&n>=8?r=6:n<16&&n>=14?r=7:n>=16&&(r=8),n<6&&n>=2?s=1:n>=6&&(s=2),n>4&&n<8?f=4:n>=8&&(f=6),{borderRadius:n,borderRadiusXS:s,borderRadiusSM:r,borderRadiusLG:i,borderRadiusOuter:f}};function G5(n){const{motionUnit:i,motionBase:r,borderRadius:s,lineWidth:f}=n;return{motionDurationFast:`${(r+i).toFixed(1)}s`,motionDurationMid:`${(r+i*2).toFixed(1)}s`,motionDurationSlow:`${(r+i*3).toFixed(1)}s`,lineWidthBold:f+1,...I5(s)}}const Y5=n=>{const{controlHeight:i}=n;return{controlHeightSM:i*.75,controlHeightXS:i*.5,controlHeightLG:i*1.25}};function SS(n){return(n+8)/n}function X5(n){const i=Array.from({length:10}).map((r,s)=>{const f=s-1,p=n*Math.E**(f/5),y=s>1?Math.floor(p):Math.ceil(p);return Math.floor(y/2)*2});return i[1]=n,i.map(r=>({size:r,lineHeight:SS(r)}))}const P5=n=>{const i=X5(n),r=i.map(j=>j.size),s=i.map(j=>j.lineHeight),f=r[1],p=r[0],y=r[2],S=s[1],T=s[0],C=s[2];return{fontSizeSM:p,fontSize:f,fontSizeLG:y,fontSizeXL:r[3],fontSizeHeading1:r[6],fontSizeHeading2:r[5],fontSizeHeading3:r[4],fontSizeHeading4:r[3],fontSizeHeading5:r[2],lineHeight:S,lineHeightLG:C,lineHeightSM:T,fontHeight:Math.round(S*f),fontHeightLG:Math.round(C*y),fontHeightSM:Math.round(T*p),lineHeightHeading1:s[6],lineHeightHeading2:s[5],lineHeightHeading3:s[4],lineHeightHeading4:s[3],lineHeightHeading5:s[2]}};function Q5(n){const{sizeUnit:i,sizeStep:r}=n;return{sizeXXL:i*(r+8),sizeXL:i*(r+4),sizeLG:i*(r+2),sizeMD:i*(r+1),sizeMS:i*r,size:i*r,sizeSM:i*(r-1),sizeXS:i*(r-2),sizeXXS:i*(r-3)}}const Yi=(n,i)=>new ya(n).setA(i).toRgbString(),zm=(n,i)=>new ya(n).darken(i).toHexString(),Z5=n=>{const i=VC(n);return{1:i[0],2:i[1],3:i[2],4:i[3],5:i[4],6:i[5],7:i[6],8:i[4],9:i[5],10:i[6]}},J5=(n,i,r)=>{const s=n||"#fff",f=i||"#000";return{colorBgBase:s,colorTextBase:f,colorShadow:r||"#000",colorText:Yi(f,.88),colorTextSecondary:Yi(f,.65),colorTextTertiary:Yi(f,.45),colorTextQuaternary:Yi(f,.25),colorFill:Yi(f,.15),colorFillSecondary:Yi(f,.06),colorFillTertiary:Yi(f,.04),colorFillQuaternary:Yi(f,.02),colorBgSolid:Yi(f,1),colorBgSolidHover:Yi(f,.75),colorBgSolidActive:Yi(f,.95),colorBgLayout:zm(s,4),colorBgContainer:zm(s,0),colorBgElevated:zm(s,0),colorBgSpotlight:Yi(f,.85),colorBgBlur:"transparent",colorBorder:zm(s,15),colorBorderDisabled:zm(s,15),colorBorderSecondary:zm(s,6)}};function K5(n){FC.pink=FC.magenta,tT.pink=tT.magenta;const i=Object.keys(SA).map(r=>{const s=n[r]===FC[r]?tT[r]:VC(n[r]);return Array.from({length:10},()=>1).reduce((f,p,y)=>(f[`${r}-${y+1}`]=s[y],f[`${r}${y+1}`]=s[y],f),{})}).reduce((r,s)=>(r={...r,...s},r),{});return{...n,...i,...k5(n,{generateColorPalettes:Z5,generateNeutralColorPalettes:J5}),...P5(n.fontSize),...Q5(n),...Y5(n),...G5(n)}}const AA=CC(K5),nT={token:wy,override:{override:wy},hashed:!0},MA=H.createContext(nT),zA=z.createContext(null);let W5=!1;function e8(n){return W5}const DA=[];function t8(n,i){const[r]=z.useState(()=>{if(!Bo())return null;const j=document.createElement("div");return process.env.NODE_ENV!=="production"&&i&&j.setAttribute("data-debug",i),j}),s=z.useRef(!1),f=z.useContext(zA),[p,y]=z.useState(DA),S=f||(s.current?void 0:j=>{y(O=>[j,...O])});function T(){r.parentElement||document.body.appendChild(r),s.current=!0}function C(){var j;(j=r.parentElement)==null||j.removeChild(r),s.current=!1}return Ho(()=>(n?f?f(T):T():C(),C),[n]),Ho(()=>{p.length&&(p.forEach(j=>j()),y(DA))},[p]),[r,S]}function n8(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}const l8=`rc-util-locker-${Date.now()}`;let RA=0;function a8(n){const i=!!n,[r]=z.useState(()=>(RA+=1,`${l8}_${RA}`));Ho(()=>{if(i){const s=j3(document.body).width,f=n8();ju(`
327
- html body {
328
- overflow-y: hidden;
329
- ${f?`width: calc(100% - ${s}px);`:""}
330
- }`,r)}else fy(r);return()=>{fy(r)}},[i,r])}let Nu=[];const o8=200;let lT=0;process.env.NODE_ENV;const NA=n=>{if(n.key==="Escape"&&!n.isComposing){if(Date.now()-lT<o8)return;const r=Nu.length;for(let s=r-1;s>=0;s-=1)Nu[s].onEsc({top:s===r-1,event:n})}},_A=()=>{lT=Date.now()};function i8(){window.addEventListener("keydown",NA),window.addEventListener("compositionend",_A)}function r8(){Nu.length===0&&(window.removeEventListener("keydown",NA),window.removeEventListener("compositionend",_A))}function s8(n,i){const r=Gv(),s=Cn(i),f=()=>{Nu.find(y=>y.id===r)||Nu.push({id:r,onEsc:s})},p=()=>{Nu=Nu.filter(y=>y.id!==r)};H.useMemo(()=>{n?f():n||p()},[n]),H.useEffect(()=>{if(n)return f(),i8(),()=>{p(),r8()}},[n])}const $A=n=>n===!1?!1:!Bo()||!n?null:typeof n=="string"?document.querySelector(n):typeof n=="function"?n():n,Ay=z.forwardRef((n,i)=>{const{open:r,autoLock:s,getContainer:f,debug:p,autoDestroy:y=!0,children:S,onEsc:T}=n,[C,j]=z.useState(r),O=C||r;process.env.NODE_ENV!=="production"&&ll(Bo()||!r,"Portal only work in client side. Please call 'useEffect' to show Portal instead default render in SSR."),z.useEffect(()=>{(y||r)&&j(r)},[r,y]);const[A,R]=z.useState(()=>$A(f));z.useEffect(()=>{const G=$A(f);R(()=>G??null)});const[N,L]=t8(O&&!A,p),D=A??N;a8(s&&r&&Bo()&&(D===N||D===document.body)),s8(r,T);let _=null;S&&Xv(S)&&i&&(_=uy(S));const U=bm(_,i);if(!O||!Bo()||A===void 0)return null;const B=D===!1||e8();let k=S;return i&&(k=z.cloneElement(S,{ref:U})),z.createElement(zA.Provider,{value:L},B?k:ty.createPortal(k,D))});process.env.NODE_ENV!=="production"&&(Ay.displayName="Portal");const aT=z.createContext(null);function c8({children:n,onBatchResize:i}){const r=z.useRef(0),s=z.useRef([]),f=z.useContext(aT),p=z.useCallback((y,S,T)=>{r.current+=1;const C=r.current;s.current.push({size:y,element:S,data:T}),Promise.resolve().then(()=>{C===r.current&&(i==null||i(s.current),s.current=[])}),f==null||f(y,S,T)},[i,f]);return z.createElement(aT.Provider,{value:p},n)}const mc=new Map;function BA(n){n.forEach(i=>{var s;const{target:r}=i;(s=mc.get(r))==null||s.forEach(f=>f(r))})}let oT;function HA(){return oT||(oT=new ResizeObserver(BA)),oT}process.env.NODE_ENV,process.env.NODE_ENV;function u8(n,i){mc.has(n)||(mc.set(n,new Set),HA().observe(n)),mc.get(n).add(i)}function f8(n,i){mc.has(n)&&(mc.get(n).delete(i),mc.get(n).size||(HA().unobserve(n),mc.delete(n)))}function UA(n,i,r,s){const f=z.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),p=Cn(T=>{const{width:C,height:j}=T.getBoundingClientRect(),{offsetWidth:O,offsetHeight:A}=T,R=Math.floor(C),N=Math.floor(j);if(f.current.width!==R||f.current.height!==N||f.current.offsetWidth!==O||f.current.offsetHeight!==A){const L={width:R,height:N,offsetWidth:O,offsetHeight:A};f.current=L;const D=O===Math.round(C)?C:O,_=A===Math.round(j)?j:A,U={...L,offsetWidth:D,offsetHeight:_};s==null||s(U,T),Promise.resolve().then(()=>{r==null||r(U,T)})}}),y=typeof i=="function",S=z.useRef(0);z.useEffect(()=>{const T=y?i():i;return T&&n?u8(T,p):n&&y&&(S.current+=1),()=>{T&&f8(T,p)}},[n,y?S.current:i])}function d8(n,i){const{children:r,disabled:s,onResize:f,data:p}=n,y=z.useRef(null),S=z.useContext(aT),T=typeof r=="function",C=T?r(y):r,j=!T&&z.isValidElement(C)&&Xv(C),O=j?uy(C):null,A=bm(O,y),R=()=>QE(y.current);return z.useImperativeHandle(i,()=>R()),UA(!s,R,f,(N,L)=>{S==null||S(N,L,p)}),j?z.cloneElement(C,{ref:A}):C}const LA=z.forwardRef(d8);process.env.NODE_ENV!=="production"&&(LA.displayName="SingleObserver");function iT(){return iT=Object.assign?Object.assign.bind():function(n){for(var i=1;i<arguments.length;i++){var r=arguments[i];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(n[s]=r[s])}return n},iT.apply(this,arguments)}const h8="rc-observer-key";function m8(n,i){const{children:r}=n,s=typeof r=="function"?[r]:hy(r);return process.env.NODE_ENV!=="production"&&(s.length>1?xm(!1,"Find more than one child node with `children` in ResizeObserver. Please use ResizeObserver.Collection instead."):s.length===0&&xm(!1,"`children` of ResizeObserver is empty. Nothing is in observe.")),s.map((f,p)=>{const y=(f==null?void 0:f.key)||`${h8}-${p}`;return z.createElement(LA,iT({},n,{key:y,ref:p===0?i:void 0}),f)})}const rT=z.forwardRef(m8);process.env.NODE_ENV!=="production"&&(rT.displayName="ResizeObserver"),rT.Collection=c8;function p8(n){const{prefixCls:i,align:r,arrow:s,arrowPos:f}=n,{className:p,content:y,style:S}=s||{},{x:T=0,y:C=0}=f,j=z.useRef(null);if(!r||!r.points)return null;const O={position:"absolute"};if(r.autoArrow!==!1){const A=r.points[0],R=r.points[1],N=A[0],L=A[1],D=R[0],_=R[1];N===D||!["t","b"].includes(N)?O.top=C:N==="t"?O.top=0:O.bottom=0,L===_||!["l","r"].includes(L)?O.left=T:L==="l"?O.left=0:O.right=0}return z.createElement("div",{ref:j,className:qe(`${i}-arrow`,p),style:{...O,...S}},y)}function sT(){return sT=Object.assign?Object.assign.bind():function(n){for(var i=1;i<arguments.length;i++){var r=arguments[i];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(n[s]=r[s])}return n},sT.apply(this,arguments)}function g8(n){const{prefixCls:i,open:r,zIndex:s,mask:f,motion:p,mobile:y}=n;return f?z.createElement(uc,sT({},p,{motionAppear:!0,visible:r,removeOnLeave:!0}),({className:S})=>z.createElement("div",{style:{zIndex:s},className:qe(`${i}-mask`,y&&`${i}-mobile-mask`,S)})):null}const qA=z.memo(({children:n})=>n,(n,i)=>i.cache);process.env.NODE_ENV!=="production"&&(qA.displayName="PopupContent");function VA(n,i,r,s,f,p,y,S){var j;const T="auto",C=n?{}:{left:"-1000vw",top:"-1000vh",right:T,bottom:T};if(!n&&(i||!r)){const{points:O}=s,A=s.dynamicInset||((j=s._experimental)==null?void 0:j.dynamicInset),R=A&&O[0][1]==="r",N=A&&O[0][0]==="b";R?(C.right=f,C.left=T):(C.left=y,C.right=T),N?(C.bottom=p,C.top=T):(C.top=S,C.bottom=T)}return C}function cT(){return cT=Object.assign?Object.assign.bind():function(n){for(var i=1;i<arguments.length;i++){var r=arguments[i];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(n[s]=r[s])}return n},cT.apply(this,arguments)}const uT=z.forwardRef((n,i)=>{const{onEsc:r,popup:s,className:f,prefixCls:p,style:y,target:S,onVisibleChanged:T,open:C,keepDom:j,fresh:O,onClick:A,mask:R,arrow:N,arrowPos:L,align:D,motion:_,maskMotion:U,mobile:B,forceRender:k,getPopupContainer:G,autoDestroy:Y,portal:P,children:Q,zIndex:ue,onMouseEnter:V,onMouseLeave:F,onPointerEnter:te,onPointerDownCapture:ae,ready:ge,offsetX:He,offsetY:X,offsetR:ie,offsetB:me,onAlign:fe,onPrepare:ne,onResize:ee,stretch:Se,targetWidth:Ae,targetHeight:De}=n,Ue=typeof s=="function"?s():s,Ve=C||j,Pe=!!B,[Ie,nt,ut]=z.useMemo(()=>B?[B.mask,B.maskMotion,B.motion]:[R,U,_],[B,R,U,_]),ze=(G==null?void 0:G.length)>0,[Ye,Rt]=z.useState(!G||!ze);Ho(()=>{!Ye&&ze&&S&&Rt(!0)},[Ye,ze,S]);const Le=Cn((Xe,dt)=>{ee==null||ee(Xe,dt),fe()}),ft=VA(Pe,ge,C,D,ie,me,He,X);if(!Ye)return null;const $e={};return Se&&(Se.includes("height")&&De?$e.height=De:Se.includes("minHeight")&&De&&($e.minHeight=De),Se.includes("width")&&Ae?$e.width=Ae:Se.includes("minWidth")&&Ae&&($e.minWidth=Ae)),C||($e.pointerEvents="none"),z.createElement(P,{open:k||Ve,getContainer:G&&(()=>G(S)),autoDestroy:Y,onEsc:r},z.createElement(g8,{prefixCls:p,open:C,zIndex:ue,mask:Ie,motion:nt,mobile:Pe}),z.createElement(rT,{onResize:Le,disabled:!C},Xe=>z.createElement(uc,cT({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:k,leavedClassName:`${p}-hidden`},ut,{onAppearPrepare:ne,onEnterPrepare:ne,visible:C,onVisibleChanged:dt=>{var Ct;(Ct=_==null?void 0:_.onVisibleChanged)==null||Ct.call(_,dt),T(dt)}}),({className:dt,style:Ct},pe)=>{const Be=qe(p,dt,f,{[`${p}-mobile`]:Pe});return z.createElement("div",{ref:ym(Xe,i,pe),className:Be,style:{"--arrow-x":`${L.x||0}px`,"--arrow-y":`${L.y||0}px`,...ft,...$e,...Ct,boxSizing:"border-box",zIndex:ue,...y},onMouseEnter:V,onMouseLeave:F,onPointerEnter:te,onClick:A,onPointerDownCapture:ae},N&&z.createElement(p8,{prefixCls:p,arrow:N,arrowPos:L,align:D}),z.createElement(qA,{cache:!C&&!O},Ue))})),Q)});process.env.NODE_ENV!=="production"&&(uT.displayName="Popup");const xS=z.createContext(null),FA=z.createContext(null);function kA(n){return n?Array.isArray(n)?n:[n]:[]}function y8(n,i,r){return z.useMemo(()=>{const s=kA(i??n),f=kA(r??n),p=new Set(s),y=new Set(f);return p.has("hover")&&!p.has("click")&&p.add("touch"),y.has("hover")&&!y.has("click")&&y.add("touch"),[p,y]},[n,i,r])}function b8(n=[],i=[],r){const s=(f,p)=>f[p]||"";return r?s(n,0)===s(i,0):s(n,0)===s(i,0)&&s(n,1)===s(i,1)}function IA(n,i,r,s){var y;const{points:f}=r,p=Object.keys(n);for(let S=0;S<p.length;S+=1){const T=p[S];if(b8((y=n[T])==null?void 0:y.points,f,s))return`${i}-placement-${T}`}return""}function My(n){return n.ownerDocument.defaultView}function fT(n){const i=[];let r=n==null?void 0:n.parentElement;const s=["hidden","scroll","clip","auto"];for(;r;){const{overflowX:f,overflowY:p,overflow:y}=My(r).getComputedStyle(r);[f,p,y].some(S=>s.includes(S))&&i.push(r),r=r.parentElement}return i}function zy(n,i=1){return Number.isNaN(n)?i:n}function Dy(n){return zy(parseFloat(n),0)}function GA(n,i){const r={...n};return(i||[]).forEach(s=>{if(s instanceof HTMLBodyElement||s instanceof HTMLHtmlElement)return;const{overflow:f,overflowClipMargin:p,borderTopWidth:y,borderBottomWidth:S,borderLeftWidth:T,borderRightWidth:C}=My(s).getComputedStyle(s),j=s.getBoundingClientRect(),{offsetHeight:O,clientHeight:A,offsetWidth:R,clientWidth:N}=s,L=Dy(y),D=Dy(S),_=Dy(T),U=Dy(C),B=zy(Math.round(j.width/R*1e3)/1e3),k=zy(Math.round(j.height/O*1e3)/1e3),G=(R-N-_-U)*B,Y=(O-A-L-D)*k,P=L*k,Q=D*k,ue=_*B,V=U*B;let F=0,te=0;if(f==="clip"){const ie=Dy(p);F=ie*B,te=ie*k}const ae=j.x+ue-F,ge=j.y+P-te,He=ae+j.width+2*F-ue-V-G,X=ge+j.height+2*te-P-Q-Y;r.left=Math.max(r.left,ae),r.top=Math.max(r.top,ge),r.right=Math.min(r.right,He),r.bottom=Math.min(r.bottom,X)}),r}function YA(n,i=0){const r=`${i}`,s=r.match(/^(.*)\%$/);return s?n*(parseFloat(s[1])/100):parseFloat(r)}function XA(n,i){const[r,s]=i||[];return[YA(n.width,r),YA(n.height,s)]}function PA(n=""){return[n[0],n[1]]}function Dm(n,i){const r=i[0],s=i[1];let f,p;return r==="t"?p=n.y:r==="b"?p=n.y+n.height:p=n.y+n.height/2,s==="l"?f=n.x:s==="r"?f=n.x+n.width:f=n.x+n.width/2,{x:f,y:p}}function _u(n,i){const r={t:"b",b:"t",l:"r",r:"l"},s=[...n];return s[i]=r[n[i]]||"c",s}function QA(n){return n.join("")}function ZA(n,i,r,s,f,p,y,S){const[T,C]=z.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:f[s]||{}}),j=z.useRef(0),O=z.useMemo(()=>!i||S?[]:fT(i),[i]),A=z.useRef({});n||(()=>{A.current={}})();const N=Cn(()=>{var _,U;if(i&&r&&n&&!S){let Nn=function(mt,wn,dn=dt){const Pi=ie.x+mt,Sc=ie.y+wn,Os=Pi+Pe,xc=Sc+Ve,Ir=Math.max(Pi,dn.left),Qe=Math.max(Sc,dn.top),st=Math.min(Os,dn.right),Qn=Math.min(xc,dn.bottom);return Math.max(0,(st-Ir)*(Qn-Qe))},ba=function(){zl=ie.y+At,dl=zl+Ve,Za=ie.x+nn,Vo=Za+Pe};const B=i,k=B.ownerDocument,G=My(B),{position:Y}=G.getComputedStyle(B),P=B.style.left,Q=B.style.top,ue=B.style.right,V=B.style.bottom,F=B.style.overflow,te=B.style.overflowX,ae=B.style.overflowY,ge={...f[s],...p},He=k.createElement("div");(_=B.parentElement)==null||_.appendChild(He),He.style.left=`${B.offsetLeft}px`,He.style.top=`${B.offsetTop}px`,He.style.position=Y,He.style.height=`${B.offsetHeight}px`,He.style.width=`${B.offsetWidth}px`,B.style.left="0",B.style.top="0",B.style.right="auto",B.style.bottom="auto",B.style.overflow="hidden";let X;if(Array.isArray(r))X={x:r[0],y:r[1],width:0,height:0};else{const mt=r.getBoundingClientRect();mt.x=mt.x??mt.left,mt.y=mt.y??mt.top,X={x:mt.x,y:mt.y,width:mt.width,height:mt.height}}const ie=B.getBoundingClientRect(),{height:me,width:fe}=G.getComputedStyle(B);ie.x=ie.x??ie.left,ie.y=ie.y??ie.top;const{clientWidth:ne,clientHeight:ee,scrollWidth:Se,scrollHeight:Ae,scrollTop:De,scrollLeft:Ue}=k.documentElement,Ve=ie.height,Pe=ie.width,Ie=X.height,nt=X.width,ut={left:0,top:0,right:ne,bottom:ee},ze={left:-Ue,top:-De,right:Se-Ue,bottom:Ae-De};let{htmlRegion:Ye}=ge;const Rt="visible",Le="visibleFirst";Ye!=="scroll"&&Ye!==Le&&(Ye=Rt);const ft=Ye===Le,$e=GA(ze,O),Xe=GA(ut,O),dt=Ye===Rt?Xe:$e,Ct=ft?Xe:dt;B.style.left="auto",B.style.top="auto",B.style.right="0",B.style.bottom="0";const pe=B.getBoundingClientRect();B.style.left=P,B.style.top=Q,B.style.right=ue,B.style.bottom=V,B.style.overflow=F,B.style.overflowX=te,B.style.overflowY=ae,(U=B.parentElement)==null||U.removeChild(He);const Be=zy(Math.round(Pe/parseFloat(fe)*1e3)/1e3),Ke=zy(Math.round(Ve/parseFloat(me)*1e3)/1e3);if(Be===0||Ke===0||vm(r)&&!ZE(r))return;const{offset:rt,targetOffset:wt}=ge;let[yt,Rn]=XA(ie,rt);const[Oe,Fe]=XA(X,wt);X.x-=Oe,X.y-=Fe;const[Ht,it]=ge.points||[],Sl=PA(it),Pt=PA(Ht),ul=Dm(X,Sl),Bn=Dm(ie,Pt),En={...ge};let jt=[Pt,Sl],nn=ul.x-Bn.x+yt,At=ul.y-Bn.y+Rn;const gn=Nn(nn,At),Jt=Nn(nn,At,Xe),Hn=Dm(X,["t","l"]),on=Dm(ie,["t","l"]),rn=Dm(X,["b","r"]),fl=Dm(ie,["b","r"]),Ut=ge.overflow||{},{adjustX:Gl,adjustY:ui,shiftX:uo,shiftY:fi}=Ut,qo=mt=>typeof mt=="boolean"?mt:mt>=0;let zl,dl,Za,Vo;ba();const fo=qo(ui),In=Pt[0]===Sl[0];if(fo&&Pt[0]==="t"&&(dl>Ct.bottom||A.current.bt)){let mt=At;In?mt-=Ve-Ie:mt=Hn.y-fl.y-Rn;const wn=Nn(nn,mt),dn=Nn(nn,mt,Xe);wn>gn||wn===gn&&(!ft||dn>=Jt)?(A.current.bt=!0,At=mt,Rn=-Rn,jt=[_u(jt[0],0),_u(jt[1],0)]):A.current.bt=!1}if(fo&&Pt[0]==="b"&&(zl<Ct.top||A.current.tb)){let mt=At;In?mt+=Ve-Ie:mt=rn.y-on.y-Rn;const wn=Nn(nn,mt),dn=Nn(nn,mt,Xe);wn>gn||wn===gn&&(!ft||dn>=Jt)?(A.current.tb=!0,At=mt,Rn=-Rn,jt=[_u(jt[0],0),_u(jt[1],0)]):A.current.tb=!1}const Mt=qo(Gl),Un=Pt[1]===Sl[1];if(Mt&&Pt[1]==="l"&&(Vo>Ct.right||A.current.rl)){let mt=nn;Un?mt-=Pe-nt:mt=Hn.x-fl.x-yt;const wn=Nn(mt,At),dn=Nn(mt,At,Xe);wn>gn||wn===gn&&(!ft||dn>=Jt)?(A.current.rl=!0,nn=mt,yt=-yt,jt=[_u(jt[0],1),_u(jt[1],1)]):A.current.rl=!1}if(Mt&&Pt[1]==="r"&&(Za<Ct.left||A.current.lr)){let mt=nn;Un?mt+=Pe-nt:mt=rn.x-on.x-yt;const wn=Nn(mt,At),dn=Nn(mt,At,Xe);wn>gn||wn===gn&&(!ft||dn>=Jt)?(A.current.lr=!0,nn=mt,yt=-yt,jt=[_u(jt[0],1),_u(jt[1],1)]):A.current.lr=!1}En.points=[QA(jt[0]),QA(jt[1])],ba();const ol=uo===!0?0:uo;typeof ol=="number"&&(Za<Xe.left&&(nn-=Za-Xe.left-yt,X.x+nt<Xe.left+ol&&(nn+=X.x-Xe.left+nt-ol)),Vo>Xe.right&&(nn-=Vo-Xe.right-yt,X.x>Xe.right-ol&&(nn+=X.x-Xe.right+ol)));const Xn=fi===!0?0:fi;typeof Xn=="number"&&(zl<Xe.top&&(At-=zl-Xe.top-Rn,X.y+Ie<Xe.top+Xn&&(At+=X.y-Xe.top+Ie-Xn)),dl>Xe.bottom&&(At-=dl-Xe.bottom-Rn,X.y>Xe.bottom-Xn&&(At+=X.y-Xe.bottom+Xn)));const Ma=ie.x+nn,Fr=Ma+Pe,di=ie.y+At,ln=di+Ve,Fo=X.x,ho=Fo+nt,Gt=X.y,Pn=Gt+Ie,xl=Math.max(Ma,Fo),Tt=Math.min(Fr,ho),va=(xl+Tt)/2-Ma,Yl=Math.max(di,Gt),Bl=Math.min(ln,Pn),Xi=(Yl+Bl)/2-di;y==null||y(i,En);let hl=pe.right-ie.x-(nn+ie.width),Ja=pe.bottom-ie.y-(At+ie.height);Be===1&&(nn=Math.floor(nn),hl=Math.floor(hl)),Ke===1&&(At=Math.floor(At),Ja=Math.floor(Ja));const hi={ready:!0,offsetX:nn/Be,offsetY:At/Ke,offsetR:hl/Be,offsetB:Ja/Ke,arrowX:va/Be,arrowY:Xi/Ke,scaleX:Be,scaleY:Ke,align:En};C(hi)}}),L=()=>{j.current+=1;const _=j.current;Promise.resolve().then(()=>{j.current===_&&N()})},D=()=>{C(_=>({..._,ready:!1}))};return Ho(D,[s]),Ho(()=>{n||D()},[n]),[T.ready,T.offsetX,T.offsetY,T.offsetR,T.offsetB,T.arrowX,T.arrowY,T.scaleX,T.scaleY,T.align,L]}function JA(){const n=z.useRef(null),i=()=>{n.current&&(clearTimeout(n.current),n.current=null)},r=(s,f)=>{i(),f===0?s():n.current=setTimeout(()=>{s()},f*1e3)};return z.useEffect(()=>()=>{i()},[]),r}function v8(n,i,r,s,f){Ho(()=>{if(n&&i&&r){let O=function(){s(),f()};const p=i,y=r,S=fT(p),T=fT(y),C=My(y),j=new Set([C,...S,...T]);return j.forEach(A=>{A.addEventListener("scroll",O,{passive:!0})}),C.addEventListener("resize",O,{passive:!0}),s(),()=>{j.forEach(A=>{A.removeEventListener("scroll",O),C.removeEventListener("resize",O)})}}},[n,i,r])}function S8(n,i,r,s,f,p,y,S){const T=z.useRef(n);T.current=n;const C=z.useRef(!1);z.useEffect(()=>{var O,A;if(i&&s&&(!f||p)){const R=()=>{C.current=!1},N=_=>{var U,B;T.current&&!y(((B=(U=_.composedPath)==null?void 0:U.call(_))==null?void 0:B[0])||_.target)&&!C.current&&S(!1)},L=My(s);L.addEventListener("pointerdown",R,!0),L.addEventListener("mousedown",N,!0),L.addEventListener("contextmenu",N,!0);const D=Qv(r);if(D&&(D.addEventListener("mousedown",N,!0),D.addEventListener("contextmenu",N,!0)),process.env.NODE_ENV!=="production"&&r){const _=(O=r.getRootNode)==null?void 0:O.call(r),U=(A=s.getRootNode)==null?void 0:A.call(s);ll(_===U,"trigger element and popup element should in same shadow root.")}return()=>{L.removeEventListener("pointerdown",R,!0),L.removeEventListener("mousedown",N,!0),L.removeEventListener("contextmenu",N,!0),D&&(D.removeEventListener("mousedown",N,!0),D.removeEventListener("contextmenu",N,!0))}}},[i,r,s,f,p]);function j(){C.current=!0}return j}function x8(){const[n,i]=H.useState(null),[r,s]=H.useState(!1),[f,p]=H.useState(!1),y=H.useRef(null),S=Cn(C=>{C===!1?(y.current=null,s(!1)):f&&r?y.current=C:(s(!0),i(C),y.current=null,r||p(!0))}),T=Cn(C=>{C?(p(!1),y.current&&(i(y.current),y.current=null)):(p(!1),y.current=null)});return[S,r,n,T]}function dT(){return dT=Object.assign?Object.assign.bind():function(n){for(var i=1;i<arguments.length;i++){var r=arguments[i];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(n[s]=r[s])}return n},dT.apply(this,arguments)}const E8=n=>{const{prefixCls:i,isMobile:r,ready:s,open:f,align:p,offsetR:y,offsetB:S,offsetX:T,offsetY:C,arrowPos:j,popupSize:O,motion:A,uniqueContainerClassName:R,uniqueContainerStyle:N}=n,L=`${i}-unique-container`,[D,_]=H.useState(!1),U=VA(r,s,f,p,y,S,T,C),B=H.useRef(U);s&&(B.current=U);const k={};return O&&(k.width=O.width,k.height=O.height),H.createElement(uc,dT({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,leavedClassName:`${L}-hidden`},A,{visible:f,onVisibleChanged:G=>{_(G)}}),({className:G,style:Y})=>{const P=qe(L,G,R,{[`${L}-visible`]:D});return H.createElement("div",{className:P,style:{"--arrow-x":`${(j==null?void 0:j.x)||0}px`,"--arrow-y":`${(j==null?void 0:j.y)||0}px`,...B.current,...k,...Y,...N}})})},C8=({children:n,postTriggerProps:i})=>{const[r,s,f,p]=x8(),y=z.useMemo(()=>!f||!i?f:i(f),[f,i]),[S,T]=z.useState(null),[C,j]=z.useState(null),O=z.useRef(null),A=Cn(me=>{O.current=me,vm(me)&&S!==me&&T(me)}),R=z.useRef(null),N=JA(),L=Cn((me,fe)=>{R.current=fe,N(()=>{r(me)},me.delay)}),D=me=>{N(()=>{var fe;(fe=R.current)!=null&&fe.call(R)||r(!1)},me)},_=Cn(me=>{p(me)}),[U,B,k,G,Y,P,Q,,,ue,V]=ZA(s,S,y==null?void 0:y.target,y==null?void 0:y.popupPlacement,(y==null?void 0:y.builtinPlacements)||{},y==null?void 0:y.popupAlign,void 0,!1),F=z.useMemo(()=>{var fe;if(!y)return"";const me=IA(y.builtinPlacements||{},y.prefixCls||"",ue,!1);return qe(me,(fe=y.getPopupClassNameFromAlign)==null?void 0:fe.call(y,ue))},[ue,y==null?void 0:y.getPopupClassNameFromAlign,y==null?void 0:y.builtinPlacements,y==null?void 0:y.prefixCls]),te=z.useMemo(()=>({show:L,hide:D}),[]);z.useEffect(()=>{V()},[y==null?void 0:y.target]);const ae=Cn(()=>(V(),Promise.resolve())),ge=z.useRef({}),He=z.useContext(xS),X=z.useMemo(()=>({registerSubPopup:(me,fe)=>{ge.current[me]=fe,He==null||He.registerSubPopup(me,fe)}}),[He]),ie=y==null?void 0:y.prefixCls;return z.createElement(FA.Provider,{value:te},n,y&&z.createElement(xS.Provider,{value:X},z.createElement(uT,{ref:A,portal:Ay,onEsc:y.onEsc,prefixCls:ie,popup:y.popup,className:qe(y.popupClassName,F,`${ie}-unique-controlled`),style:y.popupStyle,target:y.target,open:s,keepDom:!0,fresh:!0,autoDestroy:!1,onVisibleChanged:_,ready:U,offsetX:B,offsetY:k,offsetR:G,offsetB:Y,onAlign:V,onPrepare:ae,onResize:me=>j({width:me.offsetWidth,height:me.offsetHeight}),arrowPos:{x:P,y:Q},align:ue,zIndex:y.zIndex,mask:y.mask,arrow:y.arrow,motion:y.popupMotion,maskMotion:y.maskMotion,getPopupContainer:y.getPopupContainer},z.createElement(E8,{prefixCls:ie,isMobile:!1,ready:U,open:s,align:ue,offsetR:G,offsetB:Y,offsetX:B,offsetY:k,arrowPos:{x:P,y:Q},popupSize:C,motion:y.popupMotion,uniqueContainerClassName:qe(y.uniqueContainerClassName,F),uniqueContainerStyle:y.uniqueContainerStyle}))))};function T8(n=Ay){const i=z.forwardRef((r,s)=>{const{prefixCls:f="rc-trigger-popup",children:p,action:y="hover",showAction:S,hideAction:T,popupVisible:C,defaultPopupVisible:j,onOpenChange:O,afterOpenChange:A,onPopupVisibleChange:R,afterPopupVisibleChange:N,mouseEnterDelay:L,mouseLeaveDelay:D=.1,focusDelay:_,blurDelay:U,mask:B,maskClosable:k=!0,getPopupContainer:G,forceRender:Y,autoDestroy:P,popup:Q,popupClassName:ue,uniqueContainerClassName:V,uniqueContainerStyle:F,popupStyle:te,popupPlacement:ae,builtinPlacements:ge={},popupAlign:He,zIndex:X,stretch:ie,getPopupClassNameFromAlign:me,fresh:fe,unique:ne,alignPoint:ee,onPopupClick:Se,onPopupAlign:Ae,arrow:De,popupMotion:Ue,maskMotion:Ve,mobile:Pe,...Ie}=r,nt=P||!1,ut=C===void 0,ze=!!Pe,Ye=z.useRef({}),Rt=z.useContext(xS),Le=z.useMemo(()=>({registerSubPopup:(Qe,st)=>{Ye.current[Qe]=st,Rt==null||Rt.registerSubPopup(Qe,st)}}),[Rt]),ft=z.useContext(FA),$e=Gv(),[Xe,dt]=z.useState(null),Ct=z.useRef(null),pe=Cn(Qe=>{Ct.current=Qe,vm(Qe)&&Xe!==Qe&&dt(Qe),Rt==null||Rt.registerSubPopup($e,Qe)}),[Be,Ke]=z.useState(null),rt=z.useRef(null),wt=Cn(Qe=>{const st=QE(Qe);vm(st)&&Be!==st&&(Ke(st),rt.current=st)}),yt={},Rn=Cn(Qe=>{var Qn,ko;const st=Be;return(st==null?void 0:st.contains(Qe))||((Qn=Qv(st))==null?void 0:Qn.host)===Qe||Qe===st||(Xe==null?void 0:Xe.contains(Qe))||((ko=Qv(Xe))==null?void 0:ko.host)===Qe||Qe===Xe||Object.values(Ye.current).some(za=>(za==null?void 0:za.contains(Qe))||Qe===za)}),Oe=De?{...De!==!0?De:{}}:null,[Fe,Ht]=Rw(j||!1,C),it=Fe||!1,Sl=z.useMemo(()=>{const Qe=typeof p=="function"?p({open:it}):p;return z.Children.only(Qe)},[p,it]),Pt=(Sl==null?void 0:Sl.props)||{},ul=Cn(()=>it),Bn=Cn((Qe=0)=>({popup:Q,target:Be,delay:Qe,prefixCls:f,popupClassName:ue,uniqueContainerClassName:V,uniqueContainerStyle:F,popupStyle:te,popupPlacement:ae,builtinPlacements:ge,popupAlign:He,zIndex:X,mask:B,maskClosable:k,popupMotion:Ue,maskMotion:Ve,arrow:Oe,getPopupContainer:G,getPopupClassNameFromAlign:me,id:$e,onEsc:Nn}));Ho(()=>{ft&&ne&&Be&&!ut&&!Rt&&(it?ft.show(Bn(L),ul):ft.hide(D))},[it,Be]);const En=z.useRef(it);En.current=it;const jt=Cn(Qe=>{ty.flushSync(()=>{it!==Qe&&(Ht(Qe),O==null||O(Qe),R==null||R(Qe))})}),nn=JA(),At=(Qe,st=0)=>{if(C!==void 0){nn(()=>{jt(Qe)},st);return}if(ft&&ne&&ut&&!Rt){Qe?ft.show(Bn(st),ul):ft.hide(st);return}nn(()=>{jt(Qe)},st)};function Nn({top:Qe}){Qe&&At(!1)}const[gn,Jt]=z.useState(!1);Ho(Qe=>{(!Qe||it)&&Jt(!0)},[it]);const[Hn,on]=z.useState(null),[rn,fl]=z.useState(null),Ut=Qe=>{fl([Qe.clientX,Qe.clientY])},[Gl,ui,uo,fi,qo,zl,dl,Za,Vo,ba,fo]=ZA(it,Xe,ee&&rn!==null?rn:Be,ae,ge,He,Ae,ze),[In,Mt]=y8(y,S,T),Un=In.has("click"),ol=Mt.has("click")||Mt.has("contextMenu"),Xn=Cn(()=>{gn||fo()});v8(it,Be,Xe,Xn,()=>{En.current&&ee&&ol&&At(!1)}),Ho(()=>{Xn()},[rn,ae]),Ho(()=>{it&&!(ge!=null&&ge[ae])&&Xn()},[JSON.stringify(He)]);const Fr=z.useMemo(()=>{const Qe=IA(ge,f,ba,ee);return qe(Qe,me==null?void 0:me(ba))},[ba,me,ge,f,ee]);z.useImperativeHandle(s,()=>({nativeElement:rt.current,popupElement:Ct.current,forceAlign:Xn}));const[di,ln]=z.useState(0),[Fo,ho]=z.useState(0),Gt=()=>{if(ie&&Be){const Qe=Be.getBoundingClientRect();ln(Qe.width),ho(Qe.height)}},Pn=()=>{Gt(),Xn()},xl=Qe=>{Jt(!1),fo(),A==null||A(Qe),N==null||N(Qe)},Tt=()=>new Promise(Qe=>{Gt(),on(()=>Qe)});Ho(()=>{Hn&&(fo(),Hn(),on(null))},[Hn]);function Dl(Qe,st,Qn,ko,za){yt[Qe]=(Gr,...Md)=>{var Uu;(!za||!za())&&(ko==null||ko(Gr),At(st,Qn)),(Uu=Pt[Qe])==null||Uu.call(Pt,Gr,...Md)}}const va=In.has("touch"),Yl=Mt.has("touch"),Bl=z.useRef(!1);(va||Yl)&&(yt.onTouchStart=(...Qe)=>{var st;Bl.current=!0,En.current&&Yl?At(!1):!En.current&&va&&At(!0),(st=Pt.onTouchStart)==null||st.call(Pt,...Qe)}),(Un||ol)&&(yt.onClick=(Qe,...st)=>{var Qn;En.current&&ol?At(!1):!En.current&&Un&&(Ut(Qe),At(!0)),(Qn=Pt.onClick)==null||Qn.call(Pt,Qe,...st),Bl.current=!1});const kr=S8(it,ol||Yl,Be,Xe,B,k,Rn,At),Xi=In.has("hover"),hl=Mt.has("hover");let Ja,hi;const mt=()=>Bl.current;if(Xi){const Qe=st=>{Ut(st)};Dl("onMouseEnter",!0,L,Qe,mt),Dl("onPointerEnter",!0,L,Qe,mt),Ja=st=>{(it||gn)&&(Xe!=null&&Xe.contains(st.target))&&At(!0,L)},ee&&(yt.onMouseMove=st=>{var Qn;(Qn=Pt.onMouseMove)==null||Qn.call(Pt,st)})}hl&&(Dl("onMouseLeave",!1,D,void 0,mt),Dl("onPointerLeave",!1,D,void 0,mt),hi=()=>{At(!1,D)}),In.has("focus")&&Dl("onFocus",!0,_),Mt.has("focus")&&Dl("onBlur",!1,U),In.has("contextMenu")&&(yt.onContextMenu=(Qe,...st)=>{var Qn;En.current&&Mt.has("contextMenu")?At(!1):(Ut(Qe),At(!0)),Qe.preventDefault(),(Qn=Pt.onContextMenu)==null||Qn.call(Pt,Qe,...st)});const wn=z.useRef(!1);wn.current||(wn.current=Y||it||gn);const dn={...Pt,...yt},Pi={};["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"].forEach(Qe=>{Ie[Qe]&&(Pi[Qe]=(...st)=>{var Qn;(Qn=dn[Qe])==null||Qn.call(dn,...st),Ie[Qe](...st)})});const Os={x:zl,y:dl};UA(it,Be,Pn);const xc=bm(wt,uy(Sl)),Ir=z.cloneElement(Sl,{...dn,...Pi,ref:xc});return z.createElement(z.Fragment,null,Ir,wn.current&&(!ft||!ne)&&z.createElement(xS.Provider,{value:Le},z.createElement(uT,{portal:n,ref:pe,prefixCls:f,popup:Q,className:qe(ue,!ze&&Fr),style:te,target:Be,onMouseEnter:Ja,onMouseLeave:hi,onPointerEnter:Ja,zIndex:X,open:it,keepDom:gn,fresh:fe,onClick:Se,onPointerDownCapture:kr,mask:B,motion:Ue,maskMotion:Ve,onVisibleChanged:xl,onPrepare:Tt,forceRender:Y,autoDestroy:nt,getPopupContainer:G,onEsc:Nn,align:ba,arrow:Oe,arrowPos:Os,ready:Gl,offsetX:ui,offsetY:uo,offsetR:fi,offsetB:qo,onAlign:Xn,stretch:ie,targetWidth:di/Za,targetHeight:Fo/Vo,mobile:Pe})))});return process.env.NODE_ENV!=="production"&&(i.displayName="Trigger"),i}T8(Ay);function O8(n){return n&&H.isValidElement(n)&&n.type===H.Fragment}const w8=(n,i,r)=>H.isValidElement(n)?H.cloneElement(n,ri(r)?r(n.props||{}):r):i;function ES(n,i){return w8(n,n,i)}const j8=({children:n})=>{const{getPrefixCls:i}=H.useContext(vl),r=i();return H.isValidElement(n)?H.createElement(uc,{visible:!0,motionName:`${r}-fade`,motionAppear:!0,motionEnter:!0,motionLeave:!1,removeOnLeave:!1},({style:s,className:f})=>ES(n,p=>({className:qe(p.className,f),style:{...p.style,...s}}))):n},CS=[null,null];function A8(n){if(CS[0]!==n){const i={};Object.keys(n).forEach(r=>{i[r]={...n[r],dynamicInset:!1}}),CS[0]=n,CS[1]=i}return CS[1]}const M8=({children:n})=>{const i=r=>{const{id:s,builtinPlacements:f,popup:p}=r,y=ri(p)?p():p,S=A8(f);return{...r,getPopupContainer:null,arrow:!1,popup:H.createElement(j8,{key:s},y),builtinPlacements:S}};return H.createElement(C8,{postTriggerProps:i},n)},TS=z.createContext(!1),KA=({children:n,disabled:i})=>{const r=z.useContext(TS);return z.createElement(TS.Provider,{value:i??r},n)},Rm=z.createContext(void 0),z8=({children:n,size:i})=>{const r=z.useContext(Rm);return z.createElement(Rm.Provider,{value:i||r},n)};function D8(){const n=H.useContext(TS),i=H.useContext(Rm);return{componentDisabled:n,componentSize:i}}function qr(n){"@babel/helpers - typeof";return qr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},qr(n)}function R8(n){if(Array.isArray(n))return n}function N8(n,i){var r=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(r!=null){var s,f,p,y,S=[],T=!0,C=!1;try{if(p=(r=r.call(n)).next,i===0){if(Object(r)!==r)return;T=!1}else for(;!(T=(s=p.call(r)).done)&&(S.push(s.value),S.length!==i);T=!0);}catch(j){C=!0,f=j}finally{try{if(!T&&r.return!=null&&(y=r.return(),Object(y)!==y))return}finally{if(C)throw f}}return S}}function _8(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
331
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function WA(n,i){return R8(n)||N8(n,i)||qj(n,i)||_8()}function $8(n,i){if(qr(n)!="object"||!n)return n;var r=n[Symbol.toPrimitive];if(r!==void 0){var s=r.call(n,i);if(qr(s)!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(i==="string"?String:Number)(n)}function eM(n){var i=$8(n,"string");return qr(i)=="symbol"?i:i+""}function Cs(n,i,r){return(i=eM(i))in n?Object.defineProperty(n,i,{value:r,enumerable:!0,configurable:!0,writable:!0}):n[i]=r,n}function tM(n,i){var r=Object.keys(n);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(n);i&&(s=s.filter(function(f){return Object.getOwnPropertyDescriptor(n,f).enumerable})),r.push.apply(r,s)}return r}function Uo(n){for(var i=1;i<arguments.length;i++){var r=arguments[i]!=null?arguments[i]:{};i%2?tM(Object(r),!0).forEach(function(s){Cs(n,s,r[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(r)):tM(Object(r)).forEach(function(s){Object.defineProperty(n,s,Object.getOwnPropertyDescriptor(r,s))})}return n}function OS(n,i){if(!(n instanceof i))throw new TypeError("Cannot call a class as a function")}function B8(n,i){for(var r=0;r<i.length;r++){var s=i[r];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(n,eM(s.key),s)}}function wS(n,i,r){return i&&B8(n.prototype,i),Object.defineProperty(n,"prototype",{writable:!1}),n}function jS(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function hT(n,i){return hT=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,s){return r.__proto__=s,r},hT(n,i)}function H8(n,i){if(typeof i!="function"&&i!==null)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(i&&i.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),i&&hT(n,i)}function AS(n){return AS=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},AS(n)}function nM(){try{var n=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(nM=function(){return!!n})()}function U8(n,i){if(i&&(qr(i)=="object"||typeof i=="function"))return i;if(i!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return jS(n)}function L8(n){var i=nM();return function(){var r,s=AS(n);if(i){var f=AS(this).constructor;r=Reflect.construct(s,arguments,f)}else r=s.apply(this,arguments);return U8(this,r)}}var q8=wS(function n(){OS(this,n)}),lM="CALC_UNIT",V8=new RegExp(lM,"g");function mT(n){return typeof n=="number"?"".concat(n).concat(lM):n}var F8=(function(n){H8(r,n);var i=L8(r);function r(s,f){var p;OS(this,r),p=i.call(this),Cs(jS(p),"result",""),Cs(jS(p),"unitlessCssVar",void 0),Cs(jS(p),"lowPriority",void 0);var y=qr(s);return p.unitlessCssVar=f,s instanceof r?p.result="(".concat(s.result,")"):y==="number"?p.result=mT(s):y==="string"&&(p.result=s),p}return wS(r,[{key:"add",value:function(f){return f instanceof r?this.result="".concat(this.result," + ").concat(f.getResult()):(typeof f=="number"||typeof f=="string")&&(this.result="".concat(this.result," + ").concat(mT(f))),this.lowPriority=!0,this}},{key:"sub",value:function(f){return f instanceof r?this.result="".concat(this.result," - ").concat(f.getResult()):(typeof f=="number"||typeof f=="string")&&(this.result="".concat(this.result," - ").concat(mT(f))),this.lowPriority=!0,this}},{key:"mul",value:function(f){return this.lowPriority&&(this.result="(".concat(this.result,")")),f instanceof r?this.result="".concat(this.result," * ").concat(f.getResult(!0)):(typeof f=="number"||typeof f=="string")&&(this.result="".concat(this.result," * ").concat(f)),this.lowPriority=!1,this}},{key:"div",value:function(f){return this.lowPriority&&(this.result="(".concat(this.result,")")),f instanceof r?this.result="".concat(this.result," / ").concat(f.getResult(!0)):(typeof f=="number"||typeof f=="string")&&(this.result="".concat(this.result," / ").concat(f)),this.lowPriority=!1,this}},{key:"getResult",value:function(f){return this.lowPriority||f?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(f){var p=this,y=f||{},S=y.unit,T=!0;return typeof S=="boolean"?T=S:Array.from(this.unitlessCssVar).some(function(C){return p.result.includes(C)})&&(T=!1),this.result=this.result.replace(V8,T?"px":""),typeof this.lowPriority<"u"?"calc(".concat(this.result,")"):this.result}}]),r})(q8),k8=function(i,r){var s=F8;return function(f){return new s(f,r)}},aM=function(i,r){return"".concat([r,i.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-"))};function oM(n,i,r,s){var f=Uo({},i[n]);if(s!=null&&s.deprecatedTokens){var p=s.deprecatedTokens;p.forEach(function(S){var T=WA(S,2),C=T[0],j=T[1];if(process.env.NODE_ENV!=="production"&&ll(!(f!=null&&f[C]),"Component Token `".concat(String(C),"` of ").concat(String(n)," is deprecated. Please use `").concat(String(j),"` instead.")),f!=null&&f[C]||f!=null&&f[j]){var O;(O=f[j])!==null&&O!==void 0||(f[j]=f==null?void 0:f[C])}})}var y=Uo(Uo({},r),f);return Object.keys(y).forEach(function(S){y[S]===i[S]&&delete y[S]}),y}var iM=process.env.NODE_ENV!=="production"||typeof CSSINJS_STATISTIC<"u",pT=!0;function Vr(){for(var n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];if(!iM)return Object.assign.apply(Object,[{}].concat(i));pT=!1;var s={};return i.forEach(function(f){if(qr(f)==="object"){var p=Object.keys(f);p.forEach(function(y){Object.defineProperty(s,y,{configurable:!0,enumerable:!0,get:function(){return f[y]}})})}}),pT=!0,s}var rM={};function I8(){}var G8=function(i){var r,s=i,f=I8;return iM&&typeof Proxy<"u"&&(r=new Set,s=new Proxy(i,{get:function(y,S){if(pT){var T;(T=r)===null||T===void 0||T.add(S)}return y[S]}}),f=function(y,S){var T;rM[y]={global:Array.from(r),component:Uo(Uo({},(T=rM[y])===null||T===void 0?void 0:T.component),S)}}),{token:s,keys:r,flush:f}};function sM(n,i,r){if(typeof r=="function"){var s;return r(Vr(i,(s=i[n])!==null&&s!==void 0?s:{}))}return r??{}}function Y8(n){return{max:function(){for(var r=arguments.length,s=new Array(r),f=0;f<r;f++)s[f]=arguments[f];return"max(".concat(s.map(function(p){return Dt(p)}).join(","),")")},min:function(){for(var r=arguments.length,s=new Array(r),f=0;f<r;f++)s[f]=arguments[f];return"min(".concat(s.map(function(p){return Dt(p)}).join(","),")")}}}var X8=1e3*60*10,P8=(function(){function n(){OS(this,n),Cs(this,"map",new Map),Cs(this,"objectIDMap",new WeakMap),Cs(this,"nextID",0),Cs(this,"lastAccessBeat",new Map),Cs(this,"accessBeat",0)}return wS(n,[{key:"set",value:function(r,s){this.clear();var f=this.getCompositeKey(r);this.map.set(f,s),this.lastAccessBeat.set(f,Date.now())}},{key:"get",value:function(r){var s=this.getCompositeKey(r),f=this.map.get(s);return this.lastAccessBeat.set(s,Date.now()),this.accessBeat+=1,f}},{key:"getCompositeKey",value:function(r){var s=this,f=r.map(function(p){return p&&qr(p)==="object"?"obj_".concat(s.getObjectID(p)):"".concat(qr(p),"_").concat(p)});return f.join("|")}},{key:"getObjectID",value:function(r){if(this.objectIDMap.has(r))return this.objectIDMap.get(r);var s=this.nextID;return this.objectIDMap.set(r,s),this.nextID+=1,s}},{key:"clear",value:function(){var r=this;if(this.accessBeat>1e4){var s=Date.now();this.lastAccessBeat.forEach(function(f,p){s-f>X8&&(r.map.delete(p),r.lastAccessBeat.delete(p))}),this.accessBeat=0}}}]),n})(),cM=new P8;function Q8(n,i){return H.useMemo(function(){var r=cM.get(i);if(r)return r;var s=n();return cM.set(i,s),s},i)}var Z8=function(){return{}};function J8(n){var i=n.useCSP,r=i===void 0?Z8:i,s=n.useToken,f=n.usePrefix,p=n.getResetStyles,y=n.getCommonStyle,S=n.getCompUnitless;function T(A,R,N,L){var D=Array.isArray(A)?A[0]:A;function _(Q){return"".concat(String(D)).concat(Q.slice(0,1).toUpperCase()).concat(Q.slice(1))}var U=(L==null?void 0:L.unitless)||{},B=typeof S=="function"?S(A):{},k=Uo(Uo({},B),{},Cs({},_("zIndexPopup"),!0));Object.keys(U).forEach(function(Q){k[_(Q)]=U[Q]});var G=Uo(Uo({},L),{},{unitless:k,prefixToken:_}),Y=j(A,R,N,G),P=C(D,N,G);return function(Q){var ue=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Q,V=Y(Q,ue),F=L==null?void 0:L.extraCssVarPrefixCls,te=typeof F=="function"?F({prefixCls:Q,rootCls:ue}):F,ae=P(te!=null&&te.length?[ue].concat(xs(te)):ue);return[V,ae]}}function C(A,R,N){var L=N.unitless,D=N.prefixToken,_=N.ignore;return function(U){var B=s(),k=B.cssVar,G=B.realToken,Y=r();return A5({path:[A],prefix:k.prefix,key:k.key,unitless:L,ignore:_,token:G,scope:U,nonce:function(){return Y.nonce}},function(){var P=sM(A,G,R),Q=oM(A,G,P,{deprecatedTokens:N==null?void 0:N.deprecatedTokens});return P&&Object.keys(P).forEach(function(ue){Q[D(ue)]=Q[ue],delete Q[ue]}),Q}),k==null?void 0:k.key}}function j(A,R,N){var L=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},D=Array.isArray(A)?A:[A,A],_=WA(D,1),U=_[0],B=D.join("-"),k=n.layer||{name:"antd"};return function(G){var Y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:G,P=s(),Q=P.theme,ue=P.realToken,V=P.hashId,F=P.token,te=P.cssVar,ae=P.zeroRuntime,ge=H.useMemo(function(){return ae},[]);if(ge)return V;var He=f(),X=He.rootPrefixCls,ie=He.iconPrefixCls,me=r(),fe="css",ne=Q8(function(){var Ue=new Set;return Object.keys(L.unitless||{}).forEach(function(Ve){Ue.add(rS(Ve,te.prefix)),Ue.add(rS(Ve,aM(U,te.prefix)))}),k8(fe,Ue)},[fe,U,te==null?void 0:te.prefix]),ee=Y8(),Se=ee.max,Ae=ee.min,De={theme:Q,token:F,hashId:V,nonce:function(){return me.nonce},clientOnly:L.clientOnly,layer:k,order:L.order||-999};return typeof p=="function"&&HC(Uo(Uo({},De),{},{clientOnly:!1,path:["Shared",X]}),function(){return p(F,{prefix:{rootPrefixCls:X,iconPrefixCls:ie},csp:me})}),HC(Uo(Uo({},De),{},{path:[B,G,ie]}),function(){if(L.injectStyle===!1)return[];var Ue=G8(F),Ve=Ue.token,Pe=Ue.flush,Ie=sM(U,ue,N),nt=".".concat(G),ut=oM(U,ue,Ie,{deprecatedTokens:L.deprecatedTokens});Ie&&qr(Ie)==="object"&&Object.keys(Ie).forEach(function(Le){Ie[Le]="var(".concat(rS(Le,aM(U,te.prefix)),")")});var ze=Vr(Ve,{componentCls:nt,prefixCls:G,iconCls:".".concat(ie),antCls:".".concat(X),calc:ne,max:Se,min:Ae},Ie),Ye=R(ze,{hashId:V,prefixCls:G,rootPrefixCls:X,iconPrefixCls:ie});Pe(U,ut);var Rt=typeof y=="function"?y(ze,G,Y,L.resetFont):null;return[L.resetStyle===!1?null:Rt,Ye]}),V}}function O(A,R,N){var L=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},D=j(A,R,N,Uo({resetStyle:!1,order:-998},L)),_=function(B){var k=B.prefixCls,G=B.rootCls,Y=G===void 0?k:G;return D(k,Y),null};return process.env.NODE_ENV!=="production"&&(_.displayName="SubStyle_".concat(String(Array.isArray(A)?A.join("."):A))),_}return{genStyleHooks:T,genSubStyleComponent:O,genComponentStyleHook:j}}const K8="6.4.4";function gT(n){return n>=0&&n<=255}function Ry(n,i){const{r,g:s,b:f,a:p}=new ya(n).toRgb();if(p<1)return n;const{r:y,g:S,b:T}=new ya(i).toRgb();for(let C=.01;C<=1;C+=.01){const j=Math.round((r-y*(1-C))/C),O=Math.round((s-S*(1-C))/C),A=Math.round((f-T*(1-C))/C);if(gT(j)&&gT(O)&&gT(A))return new ya({r:j,g:O,b:A,a:Math.round(C*100)/100}).toRgbString()}return new ya({r,g:s,b:f,a:1}).toRgbString()}function W8(n){const{override:i,...r}=n,s={...i};Object.keys(wy).forEach(D=>{delete s[D]});const f={...r,...s},p=new ya(f.colorShadow),y=p.a,S=D=>p.clone().setA(y*D).toRgbString(),T=480,C=576,j=768,O=992,A=1200,R=1600,N=1920;return f.motion===!1&&(f.motionDurationFast="0s",f.motionDurationMid="0s",f.motionDurationSlow="0s"),{...f,colorFillContent:f.colorFillSecondary,colorFillContentHover:f.colorFill,colorFillAlter:f.colorFillQuaternary,colorBgContainerDisabled:f.colorFillTertiary,colorBorderBg:f.colorBgContainer,colorSplit:Ry(f.colorBorderSecondary,f.colorBgContainer),colorTextPlaceholder:f.colorTextQuaternary,colorTextDisabled:f.colorTextQuaternary,colorTextHeading:f.colorText,colorTextLabel:f.colorTextSecondary,colorTextDescription:f.colorTextTertiary,colorTextLightSolid:f.colorWhite,colorHighlight:f.colorError,colorBgTextHover:f.colorFillSecondary,colorBgTextActive:f.colorFill,colorIcon:f.colorTextTertiary,colorIconHover:f.colorText,colorErrorOutline:Ry(f.colorErrorBg,f.colorBgContainer),colorWarningOutline:Ry(f.colorWarningBg,f.colorBgContainer),colorErrorAffix:f.colorError,colorWarningAffix:f.colorWarning,fontSizeIcon:f.fontSizeSM,lineWidthFocus:f.lineWidth*3,lineWidth:f.lineWidth,controlOutlineWidth:f.lineWidth*2,controlInteractiveSize:f.controlHeight/2,controlItemBgHover:f.colorFillTertiary,controlItemBgActive:f.colorPrimaryBg,controlItemBgActiveHover:f.colorPrimaryBgHover,controlItemBgActiveDisabled:f.colorFill,controlTmpOutline:f.colorFillQuaternary,controlOutline:Ry(f.colorPrimaryBg,f.colorBgContainer),lineType:f.lineType,borderRadius:f.borderRadius,borderRadiusXS:f.borderRadiusXS,borderRadiusSM:f.borderRadiusSM,borderRadiusLG:f.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:f.sizeXXS,paddingXS:f.sizeXS,paddingSM:f.sizeSM,padding:f.size,paddingMD:f.sizeMD,paddingLG:f.sizeLG,paddingXL:f.sizeXL,paddingContentHorizontalLG:f.sizeLG,paddingContentVerticalLG:f.sizeMS,paddingContentHorizontal:f.sizeMS,paddingContentVertical:f.sizeSM,paddingContentHorizontalSM:f.size,paddingContentVerticalSM:f.sizeXS,marginXXS:f.sizeXXS,marginXS:f.sizeXS,marginSM:f.sizeSM,margin:f.size,marginMD:f.sizeMD,marginLG:f.sizeLG,marginXL:f.sizeXL,marginXXL:f.sizeXXL,boxShadow:`
332
- 0 6px 16px 0 ${S(.08)},
333
- 0 3px 6px -4px ${S(.12)},
334
- 0 9px 28px 8px ${S(.05)}
335
- `,boxShadowSecondary:`
336
- 0 6px 16px 0 ${S(.08)},
337
- 0 3px 6px -4px ${S(.12)},
338
- 0 9px 28px 8px ${S(.05)}
339
- `,boxShadowTertiary:`
340
- 0 1px 2px 0 ${S(.05)},
341
- 0 1px 6px -1px ${S(.03)},
342
- 0 2px 4px 0 ${S(.03)}
343
- `,screenXS:T,screenXSMin:T,screenXSMax:C-1,screenSM:C,screenSMMin:C,screenSMMax:j-1,screenMD:j,screenMDMin:j,screenMDMax:O-1,screenLG:O,screenLGMin:O,screenLGMax:A-1,screenXL:A,screenXLMin:A,screenXLMax:R-1,screenXXL:R,screenXXLMin:R,screenXXLMax:N-1,screenXXXL:N,screenXXXLMin:N,boxShadowPopoverArrow:`2px 2px 5px ${S(.05)}`,dropShadowPopover:`drop-shadow(0 6px 16px ${S(.08)}) drop-shadow(0 3px 6px ${S(.12)}) drop-shadow(0 9px 28px ${S(.05)})`,boxShadowCard:`
344
- 0 1px 2px -2px ${S(.16)},
345
- 0 3px 6px 0 ${S(.12)},
346
- 0 5px 12px 4px ${S(.09)}
347
- `,boxShadowDrawerRight:`
348
- -6px 0 16px 0 ${S(.08)},
349
- -3px 0 6px -4px ${S(.12)},
350
- -9px 0 28px 8px ${S(.05)}
351
- `,boxShadowDrawerLeft:`
352
- 6px 0 16px 0 ${S(.08)},
353
- 3px 0 6px -4px ${S(.12)},
354
- 9px 0 28px 8px ${S(.05)}
355
- `,boxShadowDrawerUp:`
356
- 0 6px 16px 0 ${S(.08)},
357
- 0 3px 6px -4px ${S(.12)},
358
- 0 9px 28px 8px ${S(.05)}
359
- `,boxShadowDrawerDown:`
360
- 0 -6px 16px 0 ${S(.08)},
361
- 0 -3px 6px -4px ${S(.12)},
362
- 0 -9px 28px 8px ${S(.05)}
363
- `,boxShadowTabsOverflowLeft:`inset 10px 0 8px -8px ${S(.08)}`,boxShadowTabsOverflowRight:`inset -10px 0 8px -8px ${S(.08)}`,boxShadowTabsOverflowTop:`inset 0 10px 8px -8px ${S(.08)}`,boxShadowTabsOverflowBottom:`inset 0 -10px 8px -8px ${S(.08)}`,...s}}const uM={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},e$={motionBase:!0,motionUnit:!0},t$={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,screenXXLMax:!0,screenXXXL:!0,screenXXXLMin:!0},fM=(n,i,r)=>{const s=r.getDerivativeToken(n),{override:f,...p}=i;let y={...s,override:f};return y=W8(y),p&&Object.entries(p).forEach(([S,T])=>{const{theme:C,...j}=T;let O=j;C&&(O=fM({...y,...j},{override:j},C)),y[S]=O}),y};function xd(){const{token:n,hashed:i,theme:r,override:s,cssVar:f,zeroRuntime:p}=H.useContext(MA),{csp:y,getPrefixCls:S}=H.useContext(vl),T={prefix:(f==null?void 0:f.prefix)??S(),key:(f==null?void 0:f.key)??"css-var-root"},C=`${K8}-${i||""}`,j=r||AA,[O,A,R]=t5(j,[wy,n],{salt:C,override:s,getComputedToken:fM,cssVar:{...T,unitless:uM,ignore:e$,preserve:t$},nonce:y==null?void 0:y.nonce});return[j,R,i?A:"",O,T,!!p]}const dM=(n,i=!1)=>({boxSizing:"border-box",margin:0,padding:0,color:n.colorText,fontSize:n.fontSize,lineHeight:n.lineHeight,listStyle:"none",fontFamily:i?"inherit":n.fontFamily}),hM=()=>({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"}}),n$=new Qa("loadingCircle",{"100%":{transform:"rotate(360deg)"}}),l$=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),mM=(n,i)=>({outline:`${Dt(n.lineWidthFocus)} solid ${n.colorPrimaryBorder}`,outlineOffset:i??1,transition:["outline-offset","outline"].map(r=>`${r} 0s`).join(", ")}),MS=(n,i)=>({"&:focus-visible":mM(n,i)}),a$=n=>({a:{color:n.colorLink,textDecoration:n.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${n.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:n.colorLinkHover},"&:active":{color:n.colorLinkActive},"&:active, &:hover":{textDecoration:n.linkHoverDecoration,outline:0},"&:focus":{textDecoration:n.linkFocusDecoration,outline:0},...MS(n),"&[disabled]":{color:n.colorTextDisabled,cursor:"not-allowed"}}}),o$=(n,i,r,s)=>{const f=`[class^="${i}"], [class*=" ${i}"]`,p=r?`.${r}`:f,y={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let S={};return s!==!1&&(S={fontFamily:n.fontFamily,fontSize:n.fontSize}),{[p]:{...S,...y,[f]:y}}},pM=n=>({[`.${n}`]:{...hM(),[`.${n} .${n}-icon`]:{display:"block"}},[`.${n}-spin`]:{animationName:n$,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear"}}),{genStyleHooks:$u,genComponentStyleHook:i$,genSubStyleComponent:zS}=J8({usePrefix:()=>{const{getPrefixCls:n,iconPrefixCls:i}=H.useContext(vl);return{rootPrefixCls:n(),iconPrefixCls:i}},useToken:()=>{const[n,i,r,s,f,p]=xd();return{theme:n,realToken:i,hashId:r,token:s,cssVar:f,zeroRuntime:p}},useCSP:()=>{const{csp:n}=H.useContext(vl);return n??{}},getResetStyles:(n,i)=>{const r=a$(n);return[r,{"&":r},pM((i==null?void 0:i.prefix.iconPrefixCls)??sC)]},getCommonStyle:o$,getCompUnitless:()=>uM}),Ed=(n,i)=>{const r=`--${n.replace(/\./g,"")}-${i}-`;return[p=>`${r}${p}`,(p,y)=>y?`var(${r}${p}, ${y})`:`var(${r}${p})`]},r$=(n,i)=>(xd(),HC({hashId:"",path:["ant-design-icons",n],nonce:()=>i==null?void 0:i.nonce,layer:{name:"antd"}},()=>pM(n)));function s$(n,i,r){var S;const s=so("ConfigProvider"),f=n||{},p=f.inherit===!1||!i?{...nT,hashed:(i==null?void 0:i.hashed)??nT.hashed,cssVar:i==null?void 0:i.cssVar}:i,y=H.useId();if(process.env.NODE_ENV!=="production"){const T=f.cssVar||p.cssVar,C=!!(co(f.cssVar)&&((S=f.cssVar)!=null&&S.key)||y);process.env.NODE_ENV!=="production"&&s(!T||C,"breaking","Missing key in `cssVar` config. Please upgrade to React 18 or set `cssVar.key` manually in each ConfigProvider inside `cssVar` enabled ConfigProvider.")}return kE(()=>{var O;if(!n)return i;const T={...p.components};Object.keys(n.components||{}).forEach(A=>{T[A]={...T[A],...n.components[A]}});const C=`css-var-${y.replace(/:/g,"")}`,j={prefix:r==null?void 0:r.prefixCls,...p.cssVar,...f.cssVar,key:((O=f.cssVar)==null?void 0:O.key)||C};return{...p,...f,token:{...p.token,...f.token},components:T,cssVar:j}},[f,p],(T,C)=>T.some((j,O)=>{const A=C[O];return!lC(j,A,!0)}))}const yT=z.createContext(!0);process.env.NODE_ENV!=="production"&&(yT.displayName="MotionCacheContext");function c$(n){const i=z.useContext(yT),{children:r}=n,[,s]=xd(),{motion:f}=s,p=z.useRef(!1);return p.current||(p.current=i!==f),p.current?z.createElement(yT.Provider,{value:f},z.createElement(J3,{motion:f},r)):r}const gM=z.memo(n=>{const{dropdownMatchSelectWidth:i}=n;return so("ConfigProvider").deprecated(i===void 0,"dropdownMatchSelectWidth","popupMatchSelectWidth"),null});process.env.NODE_ENV!=="production"&&(gM.displayName="PropWarning");const u$=process.env.NODE_ENV!=="production"?gM:()=>null,f$=({iconPrefixCls:n,csp:i})=>(r$(n,i),null);let bT=!1;process.env.NODE_ENV;const d$=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"],h$=n=>{const{prefixCls:i,iconPrefixCls:r,theme:s,holderRender:f}=n},m$=n=>{const{children:i,csp:r,autoInsertSpaceInButton:s,alert:f,affix:p,anchor:y,app:S,form:T,locale:C,componentSize:j,direction:O,space:A,splitter:R,virtual:N,dropdownMatchSelectWidth:L,popupMatchSelectWidth:D,popupOverflow:_,legacyLocale:U,parentContext:B,iconPrefixCls:k,theme:G,componentDisabled:Y,segmented:P,statistic:Q,spin:ue,calendar:V,carousel:F,cascader:te,collapse:ae,typography:ge,checkbox:He,descriptions:X,divider:ie,drawer:me,skeleton:fe,steps:ne,image:ee,layout:Se,list:Ae,mentions:De,modal:Ue,progress:Ve,result:Pe,slider:Ie,breadcrumb:nt,masonry:ut,menu:ze,pagination:Ye,input:Rt,inputPassword:Le,inputSearch:ft,textArea:$e,otp:Xe,empty:dt,badge:Ct,borderBeam:pe,radio:Be,rate:Ke,ribbon:rt,switch:wt,transfer:yt,avatar:Rn,message:Oe,tag:Fe,table:Ht,card:it,cardMeta:Sl,tabs:Pt,timeline:ul,timePicker:Bn,upload:En,notification:jt,tree:nn,colorPicker:At,datePicker:Nn,rangePicker:gn,flex:Jt,wave:Hn,dropdown:on,warning:rn,tour:fl,tooltip:Ut,popover:Gl,popconfirm:ui,qrcode:uo,floatButton:fi,floatButtonGroup:qo,variant:zl,inputNumber:dl,treeSelect:Za,watermark:Vo}=n,ba=z.useMemo(()=>{var Gt;return co(C)&&Object.prototype.hasOwnProperty.call(C,"default")&&((Gt=C.default)!=null&&Gt.locale)?C.default:C},[C]),fo=z.useCallback((Gt,Pn)=>{const{prefixCls:xl}=n;if(Pn)return Pn;const Tt=xl||B.getPrefixCls("");return Gt?`${Tt}-${Gt}`:Tt},[B.getPrefixCls,n.prefixCls]),In=k||B.iconPrefixCls||sC,Mt=r||B.csp,Un=s$(G,B.theme,{prefixCls:fo("")});process.env.NODE_ENV!=="production"&&(bT=bT||!!Un);const ol={csp:Mt,autoInsertSpaceInButton:s,alert:f,affix:p,anchor:y,app:S,locale:ba||U,direction:O,space:A,splitter:R,virtual:N,popupMatchSelectWidth:D??L,popupOverflow:_,getPrefixCls:fo,iconPrefixCls:In,theme:Un,segmented:P,statistic:Q,spin:ue,calendar:V,carousel:F,cascader:te,collapse:ae,typography:ge,checkbox:He,descriptions:X,divider:ie,drawer:me,skeleton:fe,steps:ne,image:ee,input:Rt,inputPassword:Le,inputSearch:ft,textArea:$e,otp:Xe,layout:Se,list:Ae,mentions:De,modal:Ue,progress:Ve,result:Pe,slider:Ie,breadcrumb:nt,masonry:ut,menu:ze,pagination:Ye,empty:dt,badge:Ct,borderBeam:pe,radio:Be,rate:Ke,ribbon:rt,switch:wt,transfer:yt,avatar:Rn,message:Oe,tag:Fe,table:Ht,card:it,cardMeta:Sl,tabs:Pt,timeline:ul,timePicker:Bn,upload:En,notification:jt,tree:nn,colorPicker:At,datePicker:Nn,rangePicker:gn,flex:Jt,wave:Hn,dropdown:on,warning:rn,tour:fl,tooltip:Ut,popover:Gl,popconfirm:ui,qrcode:uo,floatButton:fi,floatButtonGroup:qo,variant:zl,inputNumber:dl,treeSelect:Za,watermark:Vo};process.env.NODE_ENV!=="production"&&so("ConfigProvider")(!("autoInsertSpaceInButton"in n),"deprecated","`autoInsertSpaceInButton` is deprecated. Please use `{ button: { autoInsertSpace: boolean }}` instead.");const Xn={...B};Object.keys(ol).forEach(Gt=>{ol[Gt]!==void 0&&(Xn[Gt]=ol[Gt])}),d$.forEach(Gt=>{const Pn=n[Gt];Pn&&(Xn[Gt]=Pn)}),typeof s<"u"&&(Xn.button={autoInsertSpace:s,...Xn.button});const Ma=kE(()=>Xn,Xn,(Gt,Pn)=>{const xl=Object.keys(Gt),Tt=Object.keys(Pn);return xl.length!==Tt.length||xl.some(Dl=>Gt[Dl]!==Pn[Dl])}),{layer:Fr}=z.useContext(by),di=z.useMemo(()=>({prefixCls:In,csp:Mt,layer:Fr?"antd":void 0}),[In,Mt,Fr]);let ln=z.createElement(z.Fragment,null,z.createElement(f$,{iconPrefixCls:In,csp:Mt}),z.createElement(u$,{dropdownMatchSelectWidth:L}),i);const Fo=z.useMemo(()=>{var Gt,Pn,xl,Tt;return Em(((Gt=Ru.Form)==null?void 0:Gt.defaultValidateMessages)||{},((xl=(Pn=Ma.locale)==null?void 0:Pn.Form)==null?void 0:xl.defaultValidateMessages)||{},((Tt=Ma.form)==null?void 0:Tt.validateMessages)||{},(T==null?void 0:T.validateMessages)||{})},[Ma,T==null?void 0:T.validateMessages]);Object.keys(Fo).length>0&&(ln=z.createElement(M5.Provider,{value:Fo},ln)),ba&&(ln=z.createElement(vA,{locale:ba,_ANT_MARK__:bA},ln)),ln=z.createElement(UC.Provider,{value:di},ln),j&&(ln=z.createElement(z8,{size:j},ln)),ln=z.createElement(c$,null,ln),Ut!=null&&Ut.unique&&(ln=z.createElement(M8,null,ln));const ho=z.useMemo(()=>{const{algorithm:Gt,token:Pn,components:xl,cssVar:Tt,...Dl}=Un||{},va=Gt&&(!Array.isArray(Gt)||Gt.length>0)?CC(Gt):AA,Yl={};Object.entries(xl||{}).forEach(([kr,Xi])=>{const hl={...Xi};"algorithm"in hl&&(hl.algorithm===!0?hl.theme=va:(Array.isArray(hl.algorithm)||ri(hl.algorithm))&&(hl.theme=CC(hl.algorithm)),delete hl.algorithm),Yl[kr]=hl});const Bl={...wy,...Pn};return{...Dl,theme:va,token:Bl,components:Yl,override:{override:Bl,...Yl},cssVar:Tt}},[Un]);return G&&(ln=z.createElement(MA.Provider,{value:ho},ln)),Ma.warning&&(ln=z.createElement(hj.Provider,{value:Ma.warning},ln)),Y!==void 0&&(ln=z.createElement(KA,{disabled:Y},ln)),z.createElement(vl.Provider,{value:Ma},ln)},Cd=n=>{const i=z.useContext(vl),r=z.useContext(LC);return z.createElement(m$,{parentContext:i,legacyLocale:r,...n})};Cd.ConfigContext=vl,Cd.SizeContext=Rm,Cd.config=h$,Cd.useConfig=D8,Object.defineProperty(Cd,"SizeContext",{get:()=>(process.env.NODE_ENV!=="production"&&iC(!1,"ConfigProvider","ConfigProvider.SizeContext is deprecated. Please use `ConfigProvider.useConfig().componentSize` instead."),Rm)}),process.env.NODE_ENV!=="production"&&(Cd.displayName="ConfigProvider");const vT=n=>`${n}-css-var`,yM=(n,i)=>z.useMemo(()=>{const r=n??i;return r?{...co(i)?i:{},...co(r)?r:{}}:!1},[n,i]);function bM(n,i){return{...Es(n)&&{"--notification-top":Dt(n)},...Es(i)&&{"--notification-bottom":Dt(i)}}}function p$(n){return{motionName:`${n}-fade`}}function g$(n,i,r){return typeof n<"u"?n:typeof(i==null?void 0:i.closeIcon)<"u"?i.closeIcon:r==null?void 0:r.closeIcon}var DS={},vM;function y$(){if(vM)return DS;vM=1,Object.defineProperty(DS,"__esModule",{value:!0});var n={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 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"check-circle",theme:"filled"};return DS.default=n,DS}var b$=y$();const v$=fm(b$);function S$(n){return n.replace(/-(.)/g,(i,r)=>r.toUpperCase())}function x$(n,i){ll(n,`[@ant-design/icons] ${i}`)}function SM(n){return typeof n=="object"&&typeof n.name=="string"&&typeof n.theme=="string"&&(typeof n.icon=="object"||typeof n.icon=="function")}function xM(n={}){return Object.keys(n).reduce((i,r)=>{const s=n[r];switch(r){case"class":i.className=s,delete i.class;break;default:delete i[r],i[S$(r)]=s}return i},{})}function ST(n,i,r){return r?H.createElement(n.tag,{key:i,...xM(n.attrs),...r},(n.children||[]).map((s,f)=>ST(s,`${i}-${n.tag}-${f}`))):H.createElement(n.tag,{key:i,...xM(n.attrs)},(n.children||[]).map((s,f)=>ST(s,`${i}-${n.tag}-${f}`)))}function EM(n){return VC(n)[0]}function CM(n){return n?Array.isArray(n)?n:[n]:[]}const E$=`
364
- .anticon {
365
- display: inline-flex;
366
- align-items: center;
367
- color: inherit;
368
- font-style: normal;
369
- line-height: 0;
370
- text-align: center;
371
- text-transform: none;
372
- vertical-align: -0.125em;
373
- text-rendering: optimizeLegibility;
374
- -webkit-font-smoothing: antialiased;
375
- -moz-osx-font-smoothing: grayscale;
376
- }
377
-
378
- .anticon > * {
379
- line-height: 1;
380
- }
381
-
382
- .anticon svg {
383
- display: inline-block;
384
- vertical-align: inherit;
385
- }
386
-
387
- .anticon::before {
388
- display: none;
389
- }
390
-
391
- .anticon .anticon-icon {
392
- display: block;
393
- }
394
-
395
- .anticon[tabindex] {
396
- cursor: pointer;
397
- }
398
-
399
- .anticon-spin {
400
- -webkit-animation: loadingCircle 1s infinite linear;
401
- animation: loadingCircle 1s infinite linear;
402
- }
403
-
404
- @-webkit-keyframes loadingCircle {
405
- 100% {
406
- -webkit-transform: rotate(360deg);
407
- transform: rotate(360deg);
408
- }
409
- }
410
-
411
- @keyframes loadingCircle {
412
- 100% {
413
- -webkit-transform: rotate(360deg);
414
- transform: rotate(360deg);
415
- }
416
- }
417
- `,C$=n=>{const{csp:i,prefixCls:r,layer:s}=H.useContext(UC);let f=E$;r&&(f=f.replace(/anticon/g,r)),s&&(f=`@layer ${s} {
418
- ${f}
419
- }`),H.useEffect(()=>{const p=n.current,y=Qv(p);ju(f,"@ant-design-icons",{prepend:!s,csp:i,attachTo:y})},[])},Ny={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function T$({primaryColor:n,secondaryColor:i}){Ny.primaryColor=n,Ny.secondaryColor=i||EM(n),Ny.calculated=!!i}function O$(){return{...Ny}}const Nm=n=>{const{icon:i,className:r,onClick:s,style:f,primaryColor:p,secondaryColor:y,...S}=n,T=z.useRef(null);let C=Ny;if(p&&(C={primaryColor:p,secondaryColor:y||EM(p)}),C$(T),x$(SM(i),`icon should be icon definiton, but got ${i}`),!SM(i))return null;let j=i;return j&&typeof j.icon=="function"&&(j={...j,icon:j.icon(C.primaryColor,C.secondaryColor)}),ST(j.icon,`svg-${j.name}`,{className:r,onClick:s,style:f,"data-icon":j.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",...S,ref:T})};Nm.displayName="IconReact",Nm.getTwoToneColors=O$,Nm.setTwoToneColors=T$;function TM(n){const[i,r]=CM(n);return Nm.setTwoToneColors({primaryColor:i,secondaryColor:r})}function w$(){const n=Nm.getTwoToneColors();return n.calculated?[n.primaryColor,n.secondaryColor]:n.primaryColor}function xT(){return xT=Object.assign?Object.assign.bind():function(n){for(var i=1;i<arguments.length;i++){var r=arguments[i];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(n[s]=r[s])}return n},xT.apply(this,arguments)}TM(bS.primary);const pc=z.forwardRef((n,i)=>{const{className:r,icon:s,spin:f,rotate:p,tabIndex:y,onClick:S,twoToneColor:T,...C}=n,{prefixCls:j="anticon",rootClassName:O}=z.useContext(UC),A=qe(O,j,{[`${j}-${s.name}`]:!!s.name,[`${j}-spin`]:!!f||s.name==="loading"},r);let R=y;R===void 0&&S&&(R=-1);const N=p?{msTransform:`rotate(${p}deg)`,transform:`rotate(${p}deg)`}:void 0,[L,D]=CM(T);return z.createElement("span",xT({role:"img","aria-label":s.name},C,{ref:i,tabIndex:R,onClick:S,className:A}),z.createElement(Nm,{icon:s,primaryColor:L,secondaryColor:D,style:N}))});pc.getTwoToneColor=w$,pc.setTwoToneColor=TM,process.env.NODE_ENV!=="production"&&(pc.displayName="AntdIcon");function ET(){return ET=Object.assign?Object.assign.bind():function(n){for(var i=1;i<arguments.length;i++){var r=arguments[i];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(n[s]=r[s])}return n},ET.apply(this,arguments)}const j$=(n,i)=>z.createElement(pc,ET({},n,{ref:i,icon:v$})),RS=z.forwardRef(j$);process.env.NODE_ENV!=="production"&&(RS.displayName="CheckCircleFilled");var NS={},OM;function A$(){if(OM)return NS;OM=1,Object.defineProperty(NS,"__esModule",{value:!0});var n={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"};return NS.default=n,NS}var M$=A$();const z$=fm(M$);function CT(){return CT=Object.assign?Object.assign.bind():function(n){for(var i=1;i<arguments.length;i++){var r=arguments[i];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(n[s]=r[s])}return n},CT.apply(this,arguments)}const D$=(n,i)=>z.createElement(pc,CT({},n,{ref:i,icon:z$})),_S=z.forwardRef(D$);process.env.NODE_ENV!=="production"&&(_S.displayName="CloseCircleFilled");var $S={},wM;function R$(){if(wM)return $S;wM=1,Object.defineProperty($S,"__esModule",{value:!0});var n={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 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"exclamation-circle",theme:"filled"};return $S.default=n,$S}var N$=R$();const _$=fm(N$);function TT(){return TT=Object.assign?Object.assign.bind():function(n){for(var i=1;i<arguments.length;i++){var r=arguments[i];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(n[s]=r[s])}return n},TT.apply(this,arguments)}const $$=(n,i)=>z.createElement(pc,TT({},n,{ref:i,icon:_$})),BS=z.forwardRef($$);process.env.NODE_ENV!=="production"&&(BS.displayName="ExclamationCircleFilled");var HS={},jM;function B$(){if(jM)return HS;jM=1,Object.defineProperty(HS,"__esModule",{value:!0});var n={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 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"info-circle",theme:"filled"};return HS.default=n,HS}var H$=B$();const U$=fm(H$);function OT(){return OT=Object.assign?Object.assign.bind():function(n){for(var i=1;i<arguments.length;i++){var r=arguments[i];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(n[s]=r[s])}return n},OT.apply(this,arguments)}const L$=(n,i)=>z.createElement(pc,OT({},n,{ref:i,icon:U$})),US=z.forwardRef(L$);process.env.NODE_ENV!=="production"&&(US.displayName="InfoCircleFilled");var LS={},AM;function q$(){if(AM)return LS;AM=1,Object.defineProperty(LS,"__esModule",{value:!0});var n={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"};return LS.default=n,LS}var V$=q$();const F$=fm(V$);function wT(){return wT=Object.assign?Object.assign.bind():function(n){for(var i=1;i<arguments.length;i++){var r=arguments[i];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(n[s]=r[s])}return n},wT.apply(this,arguments)}const k$=(n,i)=>z.createElement(pc,wT({},n,{ref:i,icon:F$})),qS=z.forwardRef(k$);process.env.NODE_ENV!=="production"&&(qS.displayName="LoadingOutlined");function VS(...n){return n.find(i=>i!==void 0)}var FS={},MM;function I$(){if(MM)return FS;MM=1,Object.defineProperty(FS,"__esModule",{value:!0});var n={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"};return FS.default=n,FS}var G$=I$();const Y$=fm(G$);function jT(){return jT=Object.assign?Object.assign.bind():function(n){for(var i=1;i<arguments.length;i++){var r=arguments[i];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(n[s]=r[s])}return n},jT.apply(this,arguments)}const X$=(n,i)=>z.createElement(pc,jT({},n,{ref:i,icon:Y$})),_m=z.forwardRef(X$);process.env.NODE_ENV!=="production"&&(_m.displayName="CloseOutlined");const kS=n=>{if(!n)return;const{closable:i,closeIcon:r}=n;return{closable:i,closeIcon:r}},zM={},DM=(n,i)=>{if(!n&&(n===!1||i===!1||i===null))return!1;if(!Es(n)&&!Es(i))return null;let r={closeIcon:typeof i!="boolean"&&Es(i)?i:void 0};return co(n)&&(r={...r,...n}),r},P$=(n,i,r)=>n===!1?!1:n?tj(r,i,n):i===!1?!1:i?tj(r,i):r.closable?r:!1,Q$=(n,i,r)=>{const{closeIconRender:s}=i,{closeIcon:f,...p}=n;let y=f;const S=Zv(p,!0);return Es(y)&&(s&&(y=s(y)),y=H.isValidElement(y)?H.cloneElement(y,{"aria-label":r,...y.props,...S}):H.createElement("span",{"aria-label":r,...S},y)),[y,S]},RM=(n,i,r=zM,s="Close")=>{const f=DM(n==null?void 0:n.closable,n==null?void 0:n.closeIcon),p=DM(i==null?void 0:i.closable,i==null?void 0:i.closeIcon),y={closeIcon:H.createElement(_m,null),...r},S=P$(f,p,y),T=typeof S!="boolean"?!!(S!=null&&S.disabled):!1;if(S===!1)return[!1,null,T,{}];const[C,j]=Q$(S,y,s);return[!0,C,T,j]},Z$=(n,i,r=zM)=>{const[s]=gS("global",Ru.global);return H.useMemo(()=>RM(n,i,{closeIcon:H.createElement(_m,null),...r},s.close),[n,i,r,s.close])},AT=(n,i)=>{let r={};return co(n)&&(r=n),typeof n=="boolean"&&(r={enabled:n}),r.closable===void 0&&i!==void 0&&(r.closable=i),r},J$=(n,i,r,s)=>H.useMemo(()=>{const f=AT(n,s),p=AT(i),y={blur:!1,...p,...f,closable:f.closable??s??p.closable??!0},S=y.blur?`${r}-mask-blur`:void 0;return[y.enabled!==!1,{mask:S},!!y.closable]},[n,i,r,s]),K$=()=>{const[n,i]=z.useState([]),r=z.useCallback(s=>(i(f=>[].concat(xs(f),[s])),()=>{i(f=>f.filter(p=>p!==s))}),[]);return[n,r]},MT=H.createContext(void 0);process.env.NODE_ENV!=="production"&&(MT.displayName="ZIndexContext");const gc=100,IS=gc*10,W$=IS+gc,NM={Modal:gc,Drawer:gc,Popover:gc,Popconfirm:gc,Tooltip:gc,Tour:gc,FloatButton:gc},eB={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1},tB=n=>n in NM,nB=(n,i)=>{const[,r]=xd(),s=H.useContext(MT),f=tB(n);let p;if(i!==void 0)p=[i,i];else{let y=s??0;f?y+=(s?0:r.zIndexPopupBase)+NM[n]:y+=eB[n],p=[s===void 0?i:y,y]}if(process.env.NODE_ENV!=="production"){const y=so(n),S=r.zIndexPopupBase+W$,T=p[0]||0;process.env.NODE_ENV!=="production"&&y(i!==void 0||T<=S,"usage","`zIndex` is over design token `zIndexPopupBase` too much. It may cause unexpected override.")}return p},lB=n=>{const{motionDurationMid:i,motionEaseInOut:r}=n,s=`${i} ${r}`;return{transform:"scale(var(--notification-scale, 1))",transition:["transform","inset","clip-path","opacity"].map(f=>`${f} ${s}`).join(", ")}},_M=(n,i)=>{const{componentCls:r,antCls:s,colorSuccess:f,colorInfo:p,colorWarning:y,colorError:S,colorTextHeading:T,colorText:C,boxShadow:j,borderRadiusLG:O,fontSize:A,lineHeight:R,notificationBg:N,notificationPadding:L,notificationMarginEdge:D,margin:_,calc:U}=n,B=`${r}-notice`,[k,G]=Ed(s,"notification");return{[B]:{position:"absolute",width:i.width,maxWidth:`calc(100vw - ${Dt(U(D).mul(2).equal())})`,padding:L,pointerEvents:"auto",[k("icon-font-size")]:i.iconFontSize,[k("title-font-size")]:i.titleFontSize,[k("title-line-height")]:i.titleLineHeight,boxSizing:"border-box",color:C,background:N,borderRadius:O,boxShadow:j,fontSize:A,lineHeight:R,wordWrap:"break-word",overflow:"visible",...lB(n),...i.noticeStyle,"&::after":{position:"absolute",insetInline:0,top:U(_).mul(-1).equal(),height:_,content:'""'},...i.typeStyle&&{"&-success":{background:G("color-success-bg",N)},"&-error":{background:G("color-error-bg",N)},"&-info":{background:G("color-info-bg",N)},"&-warning":{background:G("color-warning-bg",N)}}},[`${B}-wrapper`]:{display:"flex",...i.contentStyle},[`${B}-title`]:{color:T,fontSize:G("title-font-size"),lineHeight:G("title-line-height")},[`${B}-icon`]:{flex:"none",fontSize:G("icon-font-size"),lineHeight:1,[`&${B}-icon-success`]:{color:f},[`&${B}-icon-info, &${B}-icon-loading`]:{color:p},[`&${B}-icon-warning`]:{color:y},[`&${B}-icon-error`]:{color:S}}}},$M=n=>{const{componentCls:i,progressBg:r,notificationProgressHeight:s,fontSize:f,borderRadiusLG:p,width:y,notificationIconSize:S,colorText:T,motionDurationMid:C,fontSizeLG:j,lineHeightLG:O,marginSM:A,marginXS:R,paddingLG:N,notificationPaddingVertical:L,notificationPaddingHorizontal:D,notificationCloseButtonSize:_,colorIcon:U,borderRadiusSM:B,colorIconHover:k,colorBgTextHover:G,colorBgTextActive:Y}=n,P=`${i}-notice`;return{..._M(n,{width:y,iconFontSize:S,titleFontSize:j,titleLineHeight:O,contentStyle:{alignItems:"flex-start",gap:A},typeStyle:!0}),[`${P}-section`]:{display:"flex",flexDirection:"column",flex:"auto",gap:R,minWidth:0},[`${P}-description`]:{color:T,fontSize:f},[`${P}-closable`]:{[`${P}-title, ${P}-description`]:{paddingInlineEnd:N},[`${P}-title + ${P}-description`]:{paddingInlineEnd:0}},[`${P}-close`]:{position:"absolute",top:L,insetInlineEnd:D,display:"flex",alignItems:"center",justifyContent:"center",width:_,height:_,color:U,background:"none",border:"none",borderRadius:B,outline:"none",transition:["color","background-color"].map(Q=>`${Q} ${C}`).join(", "),"&:hover":{color:k,backgroundColor:G},"&:active":{backgroundColor:Y},...MS(n)},[`${P}-progress`]:{position:"absolute",bottom:0,display:"block",appearance:"none",inlineSize:`calc(100% - ${Dt(p)} * 2)`,blockSize:s,border:0,left:{_skip_check_:!0,value:p},right:{_skip_check_:!0,value:p},"&, &::-webkit-progress-bar":{borderRadius:p,backgroundColor:"rgba(0, 0, 0, 0.04)"},"&::-moz-progress-bar":{background:r},"&::-webkit-progress-value":{borderRadius:p,background:r}},[`${P}-actions`]:{float:"right",marginTop:A}}},aB=n=>{const{componentCls:i,width:r}=n,s=`${i}-notice`,f=`${s}-actions`,p=$M(n);return{[`${s}-pure-panel`]:{width:r,maxWidth:"100%",...p,[s]:{...p[s],position:"relative",width:"100%",maxWidth:"100%"},[f]:{...p[f],float:"none",textAlign:"end"}}}},oB=n=>{const{componentCls:i}=n;return{[i]:$M(n)}},iB=["top","topLeft","topRight","bottom","bottomLeft","bottomRight"],rB="--notification-margin-edge",sB=(n,i)=>({blockEnd:n==="top"?"bottom":"top",inlineEnd:i==="left"?"right":"left"}),BM=n=>{const i=(n==null?void 0:n.x)??"0",r=(n==null?void 0:n.y)??"0";return`translate3d(${i}, ${r}, 0) scale(var(--notification-scale, 1))`},cB=(n,i)=>{const r=n.startsWith("bottom")?"bottom":"top",s=n.endsWith("Right")?"right":"left",{blockEnd:f,inlineEnd:p}=sB(r,s),y=n==="top"||n==="bottom",S=n==="top"||n.endsWith("Left")?`-${i}`:i;return{placement:n,vertical:r,blockEnd:f,horizontal:s,inlineEnd:p,motionOffset:y?{x:"-50%",y:S}:{x:S},baseMotionOffset:y?{x:"-50%"}:void 0,isCenterPlacement:y}},uB=n=>n==="bottom"?"column-reverse":"column",fB=n=>{const i=`var(${rB}, 0px)`;return`calc(var(--notification-${n}, ${i}) - ${i})`},dB=n=>n==="bottom"?"center top":"center bottom",HM=n=>Dt(n.calc(n.marginXXL).mul(-1).equal()),hB=n=>{const i=HM(n);return`inset(${i} ${i} ${i} ${i})`},mB=(n,i)=>{const r=HM(n);return i==="bottom"?`inset(${r} ${r} 50% ${r})`:`inset(50% ${r} ${r} ${r})`},pB=(n,i)=>{const{componentCls:r}=n,{placement:s,vertical:f,blockEnd:p,horizontal:y,inlineEnd:S,isCenterPlacement:T}=i,C=`${r}-notice`,j=`${C}${r}-fade`,O=BM(i.motionOffset),A=BM(i.baseMotionOffset),R=dB(f);return{[`&${r}-${s}`]:{[f]:fB(f),[p]:"auto",display:"flex",flexDirection:uB(f),...T?{marginInline:0,left:"50%",right:"auto",transform:"translateX(-50%)"}:{[y]:0,[S]:"auto"},[C]:{[f]:"var(--notification-y, 0)",...T?{left:"50%",transform:A}:{[y]:"var(--notification-x, 0)"},transformOrigin:R},[`${j}-appear-prepare, ${j}-enter-prepare`]:{opacity:0,transform:O,transition:"none"},[`${j}-appear-start, ${j}-enter-start`]:{opacity:0,transform:O},[`${j}-appear-active, ${j}-enter-active`]:{opacity:1,transform:A},[`${j}-leave-start`]:{opacity:1,transform:A},[`${j}-leave-active`]:{opacity:0,transform:O},[`&${r}-stack:not(${r}-stack-expanded)`]:{[C]:{clipPath:mB(n,f)},[`${C}[data-notification-index='0']`]:{clipPath:hB(n)}}}}},gB=(n,i=iB)=>{const{notificationMotionOffset:r}=n,s=Dt(r);return{...i.reduce((f,p)=>({...f,...pB(n,cB(p,s))}),{})}},yB=n=>{const{componentCls:i}=n;return{[i]:gB(n)}},bB=3,UM=n=>({zIndexPopup:n.zIndexPopupBase+IS+50,width:384,progressBg:`linear-gradient(90deg, ${n.colorPrimaryBorderHover}, ${n.colorPrimary})`,colorSuccessBg:void 0,colorErrorBg:void 0,colorInfoBg:void 0,colorWarningBg:void 0}),zT=n=>{const i=n.paddingMD,r=n.paddingLG;return Vr(n,{notificationBg:n.colorBgElevated,notificationPaddingVertical:i,notificationPaddingHorizontal:r,notificationIconSize:n.calc(n.fontSizeLG).mul(n.lineHeightLG).equal(),notificationCloseButtonSize:n.calc(n.controlHeightLG).mul(.55).equal(),notificationMarginBottom:n.margin,notificationPadding:`${Dt(n.paddingMD)} ${Dt(n.paddingContentHorizontalLG)}`,notificationMarginEdge:n.marginLG,notificationProgressHeight:2,notificationMotionOffset:64})},vB=n=>`inset(${n} ${n} ${n} ${n})`,SB=n=>{const{componentCls:i,motionDurationMid:r,motionDurationSlow:s,motionEaseInOut:f}=n,y=`${`${i}-list`}-content`;return{[y]:{position:"relative",display:"flex",flexShrink:0,flexDirection:"column",gap:n.notificationMarginBottom,width:"100%",willChange:"height, transform",transition:"none",[`&${y}-decrease`]:{transition:`height calc(${s} * 2) ${f} ${r}`}},[`${i}-fade`]:{backfaceVisibility:"hidden",willChange:"transform, opacity"}}},xB=(n,i)=>{const{componentCls:r,notificationMarginEdge:s}=n,f="--notification-margin-edge",p=`${r}-notice`,y=`${r}-list`,S=i.listWidthKey?n.calc(n[i.listWidthKey]).add(n.calc(s).mul(2)).equal():"100%",T=i.stackVisibleCount??bB,C=`${p}:nth-last-child(n + ${T+1})`,j=Dt(n.calc(n.marginXXL).mul(-1).equal()),O=vB(j);return{[r]:{...dM(n),[f]:Dt(s),position:"fixed",zIndex:n.zIndexPopup,width:S,maxWidth:"100vw",height:"100vh",overflow:"hidden",overscrollBehavior:"contain",[`${r}-hook-holder`]:{position:"relative"},[`&${y}`]:{maxHeight:"100vh",padding:`var(${f})`,overflowX:"hidden",overflowY:"auto",overscrollBehavior:"contain",scrollbarWidth:"none",msOverflowStyle:"none",pointerEvents:"none","&::-webkit-scrollbar":{display:"none",width:0,height:0}},...SB(n),[`&${r}-stack`]:{[p]:{clipPath:O},[`&:not(${r}-stack-expanded)`]:{[p]:{"--notification-scale":"calc(1 - min(var(--notification-index, 0), 2) * 0.06)"},[`${p}:not(${p}-stack-in-threshold)`]:{opacity:0,pointerEvents:"none"},[C]:{opacity:0,pointerEvents:"none"}}},"&-rtl":{direction:"rtl",[`${p}-actions`]:{float:"left"}}}}};zS(["Notification","PurePanel"],n=>aB(zT(n)),UM);const LM=(n,i)=>{const r=i.itemStyle??oB;return[xB(n,i),r(n),yB(n)]},EB=$u("Notification",n=>{const i=zT(n);return LM(i,{listWidthKey:"width"})},UM),qM=n=>{const i=n.calc(n.controlHeightLG).sub(n.calc(n.fontSize).mul(n.lineHeight)).div(2).equal(),r=n.paddingSM;return Vr(zT(n),{notificationBg:n.contentBg,notificationPadding:n.contentPadding,notificationPaddingVertical:i,notificationPaddingHorizontal:r})},VM=n=>({zIndexPopup:n.zIndexPopupBase+IS+10,contentBg:n.colorBgElevated,contentPadding:`${(n.controlHeightLG-n.fontSize*n.lineHeight)/2}px ${n.paddingSM}px`}),DT=n=>{const{fontSize:i,fontSizeLG:r,lineHeight:s}=n;return _M(n,{width:"max-content",iconFontSize:r,titleFontSize:i,titleLineHeight:s,contentStyle:{alignItems:"center",gap:n.marginXS},noticeStyle:{zIndex:1}})},CB=n=>{const{componentCls:i}=n,r=`${i}-notice`,s=`${i}-list-content`,f=DT(n),{"&::after":p,...y}=f[r],S={...y,position:"absolute",zIndex:-1,left:"50%",height:n.calc(n.marginXS).mul(2).equal(),padding:0,boxShadow:n.boxShadowTertiary,opacity:0,pointerEvents:"none",transform:"translateX(-50%) translateY(100%)",transition:[`opacity ${n.motionDurationFast} ${n.motionEaseInOut}`,`transform ${n.motionDurationFast} ${n.motionEaseInOut}`,`width ${n.motionDurationSlow} ${n.motionEaseInOut}`].join(", "),content:'""'};return{[i]:{[`&${i}-stack`]:{[s]:{isolation:"isolate","&::before":{...S,top:`calc(var(--top-notificiation-height) - ${Dt(n.marginXS)})`,width:`calc(var(--top-notificiation-width) - ${Dt(n.margin)})`},"&::after":{...S,zIndex:-2,top:"var(--top-notificiation-height)",width:`calc(var(--top-notificiation-width) - ${Dt(n.calc(n.margin).mul(2).equal())})`}},[`&:not(${i}-stack-expanded)`]:{[s]:{"&::before, &::after":{opacity:1,transform:"translateX(-50%) translateY(0)"}}}}}}},TB=n=>{const{componentCls:i}=n,r=`${i}-notice`,s=DT(n);return{[`${r}-pure-panel`]:{width:"max-content",maxWidth:"100%",...s,[r]:{...s[r],position:"relative",width:"max-content",maxWidth:"100%"}}}};zS(["Message","PurePanel"],n=>TB(qM(n)),VM);const OB=n=>({[n.componentCls]:DT(n)}),wB=$u("Message",n=>{const i=qM(n);return[LM(i,{stackVisibleCount:1,itemStyle:OB}),CB(i)]},VM),jB={info:z.createElement(US,null),success:z.createElement(RS,null),error:z.createElement(_S,null),warning:z.createElement(BS,null),loading:z.createElement(qS,null)},AB=(n,i)=>i||n&&jB[n]||null;function MB(n,i){return{motionName:i??`${n}-fade`}}function zB(n){let i;const r=new Promise(f=>{i=n(()=>{f(!0)})}),s=()=>{i==null||i()};return s.then=(f,p)=>r.then(f,p),s.promise=r,s}const DB=8,RB=3,NB=!1,_B=({children:n,prefixCls:i})=>{const r=vT(i),[s,f]=wB(i,r);return z.createElement(_j,{classNames:{list:qe(s,f,r)}},n)},$B=(n,{prefixCls:i,key:r})=>z.createElement(_B,{prefixCls:i,key:r},n),BB=z.forwardRef((n,i)=>{const{top:r,prefixCls:s,getContainer:f,maxCount:p,duration:y=RB,rtl:S,classNames:T,styles:C,transitionName:j,pauseOnHover:O=!0,stack:A,onAllRemoved:R}=n,{getPrefixCls:N,direction:L,getPopupContainer:D}=Mu("message"),{message:_}=z.useContext(vl),U=s||N("message"),[B,k]=gy([_==null?void 0:_.classNames,T],[_==null?void 0:_.styles,C],{props:n}),G=()=>bM(r??DB),Y=()=>qe({[`${U}-rtl`]:S??L==="rtl"}),P=()=>MB(U,j),Q=yM(A,NB),[ue,V]=Lj({prefixCls:U,style:G,className:Y,motion:P,closable:!1,duration:y,getContainer:()=>(f==null?void 0:f())||(D==null?void 0:D())||document.body,maxCount:p,onAllRemoved:R,classNames:B,styles:k,renderNotifications:$B,pauseOnHover:O,stack:Q});return z.useImperativeHandle(i,()=>({...ue,prefixCls:U,message:_})),V});let FM=0;function HB(n){const i=z.useRef(null),r=so("Message");return[z.useMemo(()=>{const f=C=>{var j;(j=i.current)==null||j.close(C)},p=C=>{if(!i.current){process.env.NODE_ENV!=="production"&&r(!1,"usage","You are calling notice in render which will break in React 18 concurrent mode. Please trigger in effect instead.");const X=()=>{};return X.then=()=>{},X}const{open:j,prefixCls:O,message:A}=i.current,R=(A==null?void 0:A.className)||{},N=(A==null?void 0:A.style)||{},L=`${O}-notice`,{content:D,icon:_,type:U,key:B,className:k,style:G,onClose:Y,classNames:P={},styles:Q={},...ue}=C;let V=B;Es(V)||(FM+=1,V=`antd-message-${FM}`);const F={...n,...C},te=Om(P,{props:F}),ae=Om(Q,{props:F}),ge=AB(U,_),He=U?`${L}-icon-${U}`:void 0;return zB(X=>(j({...ue,key:V,icon:ge,title:D,classNames:{...te,wrapper:qe(U&&`${O}-${U}`,te.wrapper),icon:qe(He,te.icon)},styles:ae,placement:"top",className:qe({[`${L}-${U}`]:U},k,R),style:{...N,...G},onClose:()=>{Y==null||Y(),X()}}),()=>{f(V)}))},S={open:p,destroy:C=>{var j;C!==void 0?f(C):(j=i.current)==null||j.destroy()}};return["info","success","warning","error","loading"].forEach(C=>{const j=(O,A,R)=>{let N;co(O)&&"content"in O?N=O:N={content:O};let L,D;ri(A)?D=A:(L=A,D=R);const _={onClose:D,duration:L,...N,type:C};return p(_)};S[C]=j}),S},[]),z.createElement(BB,{key:"message-holder",...n,ref:i})]}function UB(n){return HB(n)}const GS=(n,i,r)=>r!==void 0?r:`${n}-${i}`,LB=i$("Wave",n=>{const{componentCls:i,colorPrimary:r,motionDurationSlow:s,motionEaseInOut:f,motionEaseOutCirc:p,antCls:y}=n,[,S]=Ed(y,"wave");return{[i]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:S("color",r),boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:["box-shadow 0.4s","opacity 2s"].map(T=>`${T} ${p}`).join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:["box-shadow","opacity"].map(T=>`${T} ${s} ${f}`).join(",")}}}}}),kM=`${rC}-wave-target`,IM=n=>n?yd(n)&&n!=="#fff"&&n!=="#ffffff"&&n!=="rgb(255, 255, 255)"&&n!=="rgba(255, 255, 255, 1)"&&!/rgba\((?:\d*, ){3}0\)/i.test(n)&&!/^#(?:[0-9a-f]{3}0|[0-9a-f]{6}00)$/i.test(n)&&n!=="transparent"&&n!=="canvastext":!1;function qB(n,i=null){const r=getComputedStyle(n),{borderTopColor:s,borderColor:f,backgroundColor:p}=r;return i&&IM(r[i])?r[i]:[s,f,p].find(IM)??null}function RT(n){return Number.isNaN(n)?0:n}const VB=n=>{const{className:i,target:r,component:s,colorSource:f}=n,p=z.useRef(null),{getPrefixCls:y}=z.useContext(vl),S=y(),[T]=Ed(S,"wave"),[C,j]=z.useState(null),[O,A]=z.useState([]),[R,N]=z.useState(0),[L,D]=z.useState(0),[_,U]=z.useState(0),[B,k]=z.useState(0),[G,Y]=z.useState(!1),P={left:R,top:L,width:_,height:B,borderRadius:O.map(V=>`${V}px`).join(" ")};C&&(P[T("color")]=C);function Q(){const V=getComputedStyle(r);j(qB(r,f));const F=V.position==="static",{borderLeftWidth:te,borderTopWidth:ae}=V;N(F?r.offsetLeft:RT(-Number.parseFloat(te))),D(F?r.offsetTop:RT(-Number.parseFloat(ae))),U(r.offsetWidth),k(r.offsetHeight);const{borderTopLeftRadius:ge,borderTopRightRadius:He,borderBottomLeftRadius:X,borderBottomRightRadius:ie}=V;A([ge,He,ie,X].map(me=>RT(Number.parseFloat(me))))}if(z.useEffect(()=>{if(r){const V=ki(()=>{Q(),Y(!0)});let F;return typeof ResizeObserver<"u"&&(F=new ResizeObserver(Q),F.observe(r)),()=>{ki.cancel(V),F==null||F.disconnect()}}},[r]),!G)return null;const ue=(s==="Checkbox"||s==="Radio")&&(r==null?void 0:r.classList.contains(kM));return z.createElement(uc,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(V,F)=>{var te;if(F.deadline||z_(F)&&F.propertyName==="opacity"){const ae=(te=p.current)==null?void 0:te.parentElement;X3(ae).then(()=>{ae==null||ae.remove()})}return!1}},({className:V},F)=>z.createElement("div",{ref:ym(p,F),className:qe(i,V,{"wave-quick":ue}),style:P}))},FB=(n,i)=>{var f;const{component:r}=i;if(r==="Checkbox"&&!((f=n.querySelector("input"))!=null&&f.checked))return;const s=document.createElement("div");s.style.position="absolute",s.style.left="0px",s.style.top="0px",n==null||n.insertBefore(s,n==null?void 0:n.firstChild),Y3(z.createElement(VB,{...i,target:n}),s)},kB=(n,i,r,s)=>{const{wave:f}=z.useContext(vl),[,p,y]=xd(),S=Cn(j=>{const O=n.current;if(f!=null&&f.disabled||!O)return;const A=O.querySelector(`.${kM}`)||O,{showEffect:R}=f||{};(R||FB)(A,{className:i,token:p,component:r,event:j,hashId:y,colorSource:s})}),T=z.useRef(null);return z.useEffect(()=>()=>{ki.cancel(T.current)},[]),j=>{ki.cancel(T.current),T.current=ki(()=>{S(j)})}},GM={click:"click",mousedown:"mousedown",mouseup:"mouseup",pointerdown:"pointerdown",pointerup:"pointerup"},YM=n=>{const{children:i,disabled:r,component:s,colorSource:f}=n,{getPrefixCls:p,wave:y}=H.useContext(vl),S=H.useRef(null),T=p("wave"),C=LB(T),j=kB(S,qe(T,C),s,f);if(H.useEffect(()=>{const A=S.current;if(!A||A.nodeType!==window.Node.ELEMENT_NODE||r)return;const R=D=>{!ZE(D.target)||!A.getAttribute||A.getAttribute("disabled")||A.disabled||A.className.includes("disabled")&&!A.className.includes("disabled:")||A.getAttribute("aria-disabled")==="true"||A.className.includes("-leave")||j(D)},N=y==null?void 0:y.triggerType,L=N&&N in GM?GM[N]:"click";return A.addEventListener(L,R,!0),()=>{A.removeEventListener(L,R,!0)}},[r,y==null?void 0:y.triggerType]),!H.isValidElement(i))return i??null;const O=Xv(i)?ym(uy(i),S):S;return ES(i,{ref:O})};process.env.NODE_ENV!=="production"&&(YM.displayName="Wave");const YS=n=>{const i=H.useContext(Rm);return H.useMemo(()=>n?yd(n)?n??i:ri(n)?n(i):i:i,[n,i])},XM=z.createContext(null),IB=(n,i)=>{const r=z.useContext(XM),s=z.useMemo(()=>{if(!r)return"";const{compactDirection:f,isFirstItem:p,isLastItem:y}=r,S=f==="vertical"?"-vertical-":"-";return qe(`${n}-compact${S}item`,{[`${n}-compact${S}first-item`]:p,[`${n}-compact${S}last-item`]:y,[`${n}-compact${S}item-rtl`]:i==="rtl"})},[n,i,r]);return{compactSize:r==null?void 0:r.compactSize,compactDirection:r==null?void 0:r.compactDirection,compactItemClassnames:s}},GB=n=>{const{children:i}=n;return z.createElement(XM.Provider,{value:null},i)},PM=z.createContext(void 0),YB=n=>{const{getPrefixCls:i,direction:r}=z.useContext(vl),{prefixCls:s,size:f,className:p,...y}=n,S=i("btn-group",s),[,,T]=xd(),C=z.useMemo(()=>{switch(f){case"large":return"lg";case"small":return"sm";default:return""}},[f]);if(process.env.NODE_ENV!=="production"){const O=so("Button.Group");O.deprecated(!1,"Button.Group","Space.Compact"),process.env.NODE_ENV!=="production"&&O(!f||["large","medium","small"].includes(f),"usage","Invalid prop `size`.")}const j=qe(S,{[`${S}-${C}`]:C,[`${S}-rtl`]:r==="rtl"},p,T);return z.createElement(PM.Provider,{value:f},z.createElement("div",{...y,className:j}))},QM=/^[\u4E00-\u9FA5]{2}$/,NT=QM.test.bind(QM);function ZM(n){return n==="danger"?{danger:!0}:{type:n}}function XS(n){return n==="text"||n==="link"}function XB(n,i,r,s){if(!Cm(n))return;const f=i?" ":"";return!yd(n)&&!Tm(n)&&yd(n.type)&&NT(n.props.children)?ES(n,p=>{const y=qe(p.className,s)||void 0,S={...r,...p.style};return{...p,children:p.children.split("").join(f),className:y,style:S}}):yd(n)?H.createElement("span",{className:s,style:r},NT(n)?n.split("").join(f):n):O8(n)?H.createElement("span",{className:s,style:r},n):ES(n,p=>({...p,className:qe(p.className,s)||void 0,style:{...p.style,...r}}))}function PB(n,i,r,s){let f=!1;const p=[];return H.Children.forEach(n,y=>{const S=yd(y)||Tm(y);if(f&&S){const T=p.length-1,C=p[T];p[T]=`${C}${y}`}else p.push(y);f=S}),H.Children.map(p,y=>XB(y,i,r,s))}["default","primary","danger"].concat(xs(vS));const JM=H.forwardRef((n,i)=>{const{className:r,style:s,children:f,prefixCls:p}=n,y=qe(`${p}-icon`,r);return H.createElement("span",{ref:i,className:y,style:s},f)}),KM=H.forwardRef((n,i)=>{const{prefixCls:r,className:s,style:f,iconClassName:p}=n,y=qe(`${r}-loading-icon`,s);return H.createElement(JM,{prefixCls:r,className:y,style:f,ref:i},H.createElement(qS,{className:p}))}),_T=()=>({width:0,opacity:0,transform:"scale(0)"}),$T=n=>({width:n.scrollWidth,opacity:1,transform:"scale(1)"}),QB=n=>{const{prefixCls:i,loading:r,existIcon:s,className:f,style:p,mount:y}=n,S=!!r;return s?H.createElement(KM,{prefixCls:i,className:f,style:p}):H.createElement(uc,{visible:S,motionName:`${i}-loading-icon-motion`,motionAppear:!y,motionEnter:!y,motionLeave:!y,removeOnLeave:!0,onAppearStart:_T,onAppearActive:$T,onEnterStart:_T,onEnterActive:$T,onLeaveStart:$T,onLeaveActive:_T},({className:T,style:C},j)=>{const O={...p,...C};return H.createElement(KM,{prefixCls:i,className:qe(f,T),style:O,ref:j})})},WM=n=>({animationDuration:n,animationFillMode:"both"}),ez=(n,i,r,s,f=!1)=>{const p=f?"&":"";return{[`
420
- ${p}${n}-enter,
421
- ${p}${n}-appear
422
- `]:{...WM(s),animationPlayState:"paused"},[`${p}${n}-leave`]:{...WM(s),animationPlayState:"paused"},[`
423
- ${p}${n}-enter${n}-enter-active,
424
- ${p}${n}-appear${n}-appear-active
425
- `]:{animationName:i,animationPlayState:"running"},[`${p}${n}-leave${n}-leave-active`]:{animationName:r,animationPlayState:"running",pointerEvents:"none"}}},ZB=new Qa("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),JB=new Qa("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),KB=(n,i=!1)=>{const{antCls:r}=n,s=`${r}-fade`,f=i?"&":"";return[ez(s,ZB,JB,n.motionDurationMid,i),{[`
426
- ${f}${s}-enter,
427
- ${f}${s}-appear
428
- `]:{opacity:0,animationTimingFunction:"linear"},[`${f}${s}-leave`]:{animationTimingFunction:"linear"}}]},WB=()=>({"@media (prefers-reduced-motion: reduce)":{transition:"none",animation:"none"}}),eH=new Qa("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),tH=new Qa("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),tz=new Qa("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),nz=new Qa("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),nH=new Qa("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),lH=new Qa("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),aH=new Qa("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),oH=new Qa("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),iH=new Qa("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),rH=new Qa("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),sH=new Qa("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),cH=new Qa("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),uH={zoom:{inKeyframes:eH,outKeyframes:tH},"zoom-big":{inKeyframes:tz,outKeyframes:nz},"zoom-big-fast":{inKeyframes:tz,outKeyframes:nz},"zoom-left":{inKeyframes:aH,outKeyframes:oH},"zoom-right":{inKeyframes:iH,outKeyframes:rH},"zoom-up":{inKeyframes:nH,outKeyframes:lH},"zoom-down":{inKeyframes:sH,outKeyframes:cH}},fH=(n,i)=>{const{antCls:r}=n,s=`${r}-${i}`,{inKeyframes:f,outKeyframes:p}=uH[i];return[ez(s,f,p,n.motionDurationMid),{[`
429
- ${s}-enter,
430
- ${s}-appear
431
- `]:{transform:"scale(0)",opacity:0,animationTimingFunction:n.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${s}-leave`]:{animationTimingFunction:n.motionEaseInOutCirc}}]},lz=(n,i)=>({[`> span, > ${n}`]:{"&:not(:last-child)":{[`&, & > ${n}`]:{"&:not(:disabled)":{borderInlineEndColor:i}}},"&:not(:first-child)":{[`&, & > ${n}`]:{"&:not(:disabled)":{borderInlineStartColor:i}}}}}),dH=n=>{const{componentCls:i,fontSize:r,lineWidth:s,groupBorderColor:f,colorErrorHover:p}=n;return{[`${i}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${i}`]:{"&:not(:last-child)":{[`&, & > ${i}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:n.calc(s).mul(-1).equal(),[`&, & > ${i}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[i]:{position:"relative",zIndex:1,"&:hover, &:focus, &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${i}-icon-only`]:{fontSize:r}},lz(`${i}-primary`,f),lz(`${i}-danger`,p)]}},BT=n=>Math.round(Number(n||0)),hH=n=>{if(n instanceof ya)return n;if(n&&typeof n=="object"&&"h"in n&&"b"in n){const{b:i,...r}=n;return{...r,v:i}}return typeof n=="string"&&/hsb/.test(n)?n.replace(/hsb/,"hsv"):n};class yc extends ya{constructor(i){super(hH(i))}toHsbString(){const i=this.toHsb(),r=BT(i.s*100),s=BT(i.b*100),f=BT(i.h),p=i.a,y=`hsb(${f}, ${r}%, ${s}%)`,S=`hsba(${f}, ${r}%, ${s}%, ${p.toFixed(p===0?0:2)})`;return p===1?y:S}toHsb(){const{v:i,...r}=this.toHsv();return{...r,b:i,a:this.a}}}const mH="rc-color-picker",$m=n=>n instanceof yc?n:new yc(n),pH=$m("#1677ff"),az=n=>{const{offset:i,targetRef:r,containerRef:s,color:f,type:p}=n,{width:y,height:S}=s.current.getBoundingClientRect(),{width:T,height:C}=r.current.getBoundingClientRect(),j=T/2,O=C/2,A=(i.x+j)/y,R=1-(i.y+O)/S,N=f.toHsb(),L=A,D=(i.x+j)/y*360;if(p)switch(p){case"hue":return $m({...N,h:D<=0?0:D});case"alpha":return $m({...N,a:L<=0?0:L})}return $m({h:N.h,s:A<=0?0:A,b:R>=1?1:R,a:N.a})},oz=(n,i)=>{const r=n.toHsb();switch(i){case"hue":return{x:r.h/360*100,y:50};case"alpha":return{x:n.a*100,y:50};default:return{x:r.s*100,y:(1-r.b)*100}}},gH=({color:n,prefixCls:i,className:r,style:s,innerClassName:f,innerStyle:p,onClick:y})=>{const S=`${i}-color-block`;return H.createElement("div",{className:qe(S,r),style:s,onClick:y},H.createElement("div",{className:qe(`${S}-inner`,f),style:{background:n,...p}}))};function yH(n){const i="touches"in n?n.touches[0]:n,r=document.documentElement.scrollLeft||document.body.scrollLeft||window.pageXOffset,s=document.documentElement.scrollTop||document.body.scrollTop||window.pageYOffset;return{pageX:i.pageX-r,pageY:i.pageY-s}}function iz(n){const{targetRef:i,containerRef:r,direction:s,onDragChange:f,onDragChangeComplete:p,calculate:y,color:S,disabledDrag:T}=n,[C,j]=H.useState({x:0,y:0}),O=H.useRef(null),A=H.useRef(null);H.useEffect(()=>{j(y())},[S]),H.useEffect(()=>()=>{document.removeEventListener("mousemove",O.current),document.removeEventListener("mouseup",A.current),document.removeEventListener("touchmove",O.current),document.removeEventListener("touchend",A.current),O.current=null,A.current=null},[]);const R=_=>{const{pageX:U,pageY:B}=yH(_),{x:k,y:G,width:Y,height:P}=r.current.getBoundingClientRect(),{width:Q,height:ue}=i.current.getBoundingClientRect(),V=Q/2,F=ue/2,te=Math.max(0,Math.min(U-k,Y))-V,ae=Math.max(0,Math.min(B-G,P))-F,ge={x:te,y:s==="x"?C.y:ae};if(Q===0&&ue===0||Q!==ue)return!1;f==null||f(ge)},N=_=>{_.preventDefault(),R(_)},L=_=>{_.preventDefault(),document.removeEventListener("mousemove",O.current),document.removeEventListener("mouseup",A.current),document.removeEventListener("touchmove",O.current),document.removeEventListener("touchend",A.current),O.current=null,A.current=null,p==null||p()};return[C,_=>{document.removeEventListener("mousemove",O.current),document.removeEventListener("mouseup",A.current),!T&&(R(_),document.addEventListener("mousemove",N),document.addEventListener("mouseup",L),document.addEventListener("touchmove",N),document.addEventListener("touchend",L),O.current=N,A.current=L)}]}const rz=({size:n="default",color:i,prefixCls:r})=>H.createElement("div",{className:qe(`${r}-handler`,{[`${r}-handler-sm`]:n==="small"}),style:{backgroundColor:i}}),sz=({children:n,style:i,prefixCls:r})=>H.createElement("div",{className:`${r}-palette`,style:{position:"relative",...i}},n),cz=H.forwardRef((n,i)=>{const{children:r,x:s,y:f}=n;return H.createElement("div",{ref:i,style:{position:"absolute",left:`${s}%`,top:`${f}%`,zIndex:1,transform:"translate(-50%, -50%)"}},r)}),bH=({color:n,onChange:i,prefixCls:r,onChangeComplete:s,disabled:f})=>{const p=H.useRef(),y=H.useRef(),S=H.useRef(n),T=Cn(O=>{const A=az({offset:O,targetRef:y,containerRef:p,color:n});S.current=A,i(A)}),[C,j]=iz({color:n,containerRef:p,targetRef:y,calculate:()=>oz(n),onDragChange:T,onDragChangeComplete:()=>s==null?void 0:s(S.current),disabledDrag:f});return H.createElement("div",{ref:p,className:`${r}-select`,onMouseDown:j,onTouchStart:j},H.createElement(sz,{prefixCls:r},H.createElement(cz,{x:C.x,y:C.y,ref:y},H.createElement(rz,{color:n.toRgbString(),prefixCls:r})),H.createElement("div",{className:`${r}-saturation`,style:{backgroundColor:`hsl(${n.toHsb().h},100%, 50%)`,backgroundImage:"linear-gradient(0deg, #000, transparent),linear-gradient(90deg, #fff, hsla(0, 0%, 100%, 0))"}})))},vH=(n,i)=>{const[r,s]=Rw(n,i);return[H.useMemo(()=>$m(r),[r]),s]},SH=({colors:n,children:i,direction:r="to right",type:s,prefixCls:f})=>{const p=H.useMemo(()=>n.map((y,S)=>{let T=$m(y);return s==="alpha"&&S===n.length-1&&(T=new yc(T.setA(1))),T.toRgbString()}).join(","),[n,s]);return H.createElement("div",{className:`${f}-gradient`,style:{position:"absolute",inset:0,background:`linear-gradient(${r}, ${p})`}},i)},xH=n=>{const{prefixCls:i,colors:r,disabled:s,onChange:f,onChangeComplete:p,color:y,type:S}=n,T=H.useRef(null),C=H.useRef(null),j=H.useRef(y),O=_=>S==="hue"?_.getHue():_.a*100,A=Cn(_=>{const U=az({offset:_,targetRef:C,containerRef:T,color:y,type:S});j.current=U,f(O(U))}),[R,N]=iz({color:y,targetRef:C,containerRef:T,calculate:()=>oz(y,S),onDragChange:A,onDragChangeComplete(){p(O(j.current))},direction:"x",disabledDrag:s}),L=H.useMemo(()=>{if(S==="hue"){const _=y.toHsb();return _.s=1,_.b=1,_.a=1,new yc(_)}return y},[y,S]),D=H.useMemo(()=>r.map(_=>`${_.color} ${_.percent}%`),[r]);return H.createElement("div",{ref:T,className:qe(`${i}-slider`,`${i}-slider-${S}`),onMouseDown:N,onTouchStart:N},H.createElement(sz,{prefixCls:i},H.createElement(cz,{x:R.x,y:R.y,ref:C},H.createElement(rz,{size:"small",color:L.toHexString(),prefixCls:i})),H.createElement(SH,{colors:D,type:S,prefixCls:i})))};function EH(n){return z.useMemo(()=>{const{slider:i}=n||{};return[i||xH]},[n])}function _y(){return _y=Object.assign?Object.assign.bind():function(n){for(var i=1;i<arguments.length;i++){var r=arguments[i];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(n[s]=r[s])}return n},_y.apply(this,arguments)}const CH=[{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}],TH=H.forwardRef((n,i)=>{const{value:r,defaultValue:s,prefixCls:f=mH,onChange:p,onChangeComplete:y,className:S,style:T,panelRender:C,disabledAlpha:j=!1,disabled:O=!1,components:A}=n,[R]=EH(A),[N,L]=vH(s||pH,r),D=H.useMemo(()=>N.setA(1).toRgbString(),[N]),_=(F,te)=>{r||L(F),p==null||p(F,te)},U=F=>new yc(N.setHue(F)),B=F=>new yc(N.setA(F/100)),k=F=>{_(U(F),{type:"hue",value:F})},G=F=>{_(B(F),{type:"alpha",value:F})},Y=F=>{y&&y(U(F))},P=F=>{y&&y(B(F))},Q=qe(`${f}-panel`,S,{[`${f}-panel-disabled`]:O}),ue={prefixCls:f,disabled:O,color:N},V=H.createElement(H.Fragment,null,H.createElement(bH,_y({onChange:_},ue,{onChangeComplete:y})),H.createElement("div",{className:`${f}-slider-container`},H.createElement("div",{className:qe(`${f}-slider-group`,{[`${f}-slider-group-disabled-alpha`]:j})},H.createElement(R,_y({},ue,{type:"hue",colors:CH,min:0,max:359,value:N.getHue(),onChange:k,onChangeComplete:Y})),!j&&H.createElement(R,_y({},ue,{type:"alpha",colors:[{percent:0,color:"rgba(255, 0, 4, 0)"},{percent:100,color:D}],min:0,max:100,value:N.a*100,onChange:G,onChangeComplete:P}))),H.createElement(gH,{color:N.toRgbString(),prefixCls:f})));return H.createElement("div",{className:Q,style:T,ref:i},typeof C=="function"?C(V):V)});process.env.NODE_ENV!=="production"&&(TH.displayName="ColorPicker");const OH=(n,i)=>(n==null?void 0:n.replace(/[^0-9a-f]/gi,"").slice(0,i?8:6))||"",wH=(n,i)=>n?OH(n,i):"";let jH=(function(){function n(i){var s;if(OS(this,n),this.cleared=!1,i instanceof n){this.metaColor=i.metaColor.clone(),this.colors=(s=i.colors)==null?void 0:s.map(f=>({color:new n(f.color),percent:f.percent})),this.cleared=i.cleared;return}const r=Array.isArray(i);r&&i.length?(this.colors=i.map(({color:f,percent:p})=>({color:new n(f),percent:p})),this.metaColor=new yc(this.colors[0].color.metaColor)):this.metaColor=new yc(r?"":i),(!i||r&&!this.colors)&&(this.metaColor=this.metaColor.setA(0),this.cleared=!0)}return wS(n,[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return wH(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:r}=this;return r?`linear-gradient(90deg, ${r.map(f=>`${f.color.toRgbString()} ${f.percent}%`).join(", ")})`:this.metaColor.toRgbString()}},{key:"equals",value:function(r){return!r||this.isGradient()!==r.isGradient()?!1:this.isGradient()?this.colors.length===r.colors.length&&this.colors.every((s,f)=>{const p=r.colors[f];return s.percent===p.percent&&s.color.equals(p.color)}):this.toHexString()===r.toHexString()}}])})();const AH=(n,i)=>{const{r,g:s,b:f,a:p}=n.toRgb(),y=new yc(n.toRgbString()).onBackground(i).toHsv();return p<=.5?y.v>.5:r*.299+s*.587+f*.114>192},uz=n=>{const{paddingInline:i,onlyIconSize:r,borderColorDisabled:s}=n;return Vr(n,{buttonPaddingHorizontal:i,buttonPaddingVertical:0,buttonIconOnlyFontSize:r,colorBorderDisabled:s})},fz=n=>{const i=n.contentFontSize??n.fontSize,r=n.contentFontSizeSM??n.fontSize,s=n.contentFontSizeLG??n.fontSizeLG,f=n.contentLineHeight??SS(i),p=n.contentLineHeightSM??SS(r),y=n.contentLineHeightLG??SS(s),S=AH(new jH(n.colorBgSolid),"#fff")?"#000":"#fff",T=vS.reduce((O,A)=>({...O,[`${A}ShadowColor`]:`0 ${Dt(n.controlOutlineWidth)} 0 ${Ry(n[`${A}1`],n.colorBgContainer)}`}),{}),C=n.colorBgContainerDisabled,j=n.colorBgContainerDisabled;return{...T,fontWeight:400,iconGap:n.marginXS,defaultShadow:`0 ${n.controlOutlineWidth}px 0 ${n.controlTmpOutline}`,primaryShadow:`0 ${n.controlOutlineWidth}px 0 ${n.controlOutline}`,dangerShadow:`0 ${n.controlOutlineWidth}px 0 ${n.colorErrorOutline}`,primaryColor:n.colorTextLightSolid,dangerColor:n.colorTextLightSolid,borderColorDisabled:n.colorBorderDisabled,defaultGhostColor:n.colorBgContainer,ghostBg:"transparent",defaultGhostBorderColor:n.colorBgContainer,paddingInline:n.paddingContentHorizontal-n.lineWidth,paddingInlineLG:n.paddingContentHorizontal-n.lineWidth,paddingInlineSM:8-n.lineWidth,onlyIconSize:"inherit",onlyIconSizeSM:"inherit",onlyIconSizeLG:"inherit",groupBorderColor:n.colorPrimaryHover,linkHoverBg:"transparent",textTextColor:n.colorText,textTextHoverColor:n.colorText,textTextActiveColor:n.colorText,textHoverBg:n.colorFillTertiary,defaultColor:n.colorText,defaultBg:n.colorBgContainer,defaultBorderColor:n.colorBorder,defaultBorderColorDisabled:n.colorBorder,defaultHoverBg:n.colorBgContainer,defaultHoverColor:n.colorPrimaryHover,defaultHoverBorderColor:n.colorPrimaryHover,defaultActiveBg:n.colorBgContainer,defaultActiveColor:n.colorPrimaryActive,defaultActiveBorderColor:n.colorPrimaryActive,solidTextColor:S,contentFontSize:i,contentFontSizeSM:r,contentFontSizeLG:s,contentLineHeight:f,contentLineHeightSM:p,contentLineHeightLG:y,paddingBlock:Math.max((n.controlHeight-i*f)/2-n.lineWidth,0),paddingBlockSM:Math.max((n.controlHeightSM-r*p)/2-n.lineWidth,0),paddingBlockLG:Math.max((n.controlHeightLG-s*y)/2-n.lineWidth,0),defaultBgDisabled:C,dashedBgDisabled:j}},MH=n=>{const{componentCls:i,antCls:r,lineWidth:s}=n,[f,p]=Ed(r,"btn");return{[i]:[{[f("border-width")]:s,[f("border-color")]:"#000",[f("border-color-hover")]:p("border-color"),[f("border-color-active")]:p("border-color"),[f("border-color-disabled")]:p("border-color"),[f("border-style")]:"solid",[f("text-color")]:"#000",[f("text-color-hover")]:p("text-color"),[f("text-color-active")]:p("text-color"),[f("text-color-disabled")]:p("text-color"),[f("bg-color")]:"#ddd",[f("bg-color-hover")]:p("bg-color"),[f("bg-color-active")]:p("bg-color"),[f("bg-color-disabled")]:n.colorBgContainerDisabled,[f("bg-color-container")]:n.colorBgContainer,[f("shadow")]:"none"},{border:[p("border-width"),p("border-style"),p("border-color")].join(" "),color:p("text-color"),backgroundColor:p("bg-color"),[`&:not(:disabled):not(${i}-disabled)`]:{"&:hover":{border:[p("border-width"),p("border-style"),p("border-color-hover")].join(" "),color:p("text-color-hover"),backgroundColor:p("bg-color-hover")},"&:active":{border:[p("border-width"),p("border-style"),p("border-color-active")].join(" "),color:p("text-color-active"),backgroundColor:p("bg-color-active")}}},{[`&${i}-variant-solid`]:{[f("solid-bg-color")]:p("color-base"),[f("solid-bg-color-hover")]:p("color-hover"),[f("solid-bg-color-active")]:p("color-active"),[f("border-color")]:"transparent",[f("text-color")]:n.colorTextLightSolid,[f("bg-color")]:p("solid-bg-color"),[f("bg-color-hover")]:p("solid-bg-color-hover"),[f("bg-color-active")]:p("solid-bg-color-active"),boxShadow:p("shadow")},[`&${i}-variant-outlined, &${i}-variant-dashed`]:{[f("border-color")]:p("color-base"),[f("border-color-hover")]:p("color-hover"),[f("border-color-active")]:p("color-active"),[f("bg-color")]:p("bg-color-container"),[f("text-color")]:p("color-base"),[f("text-color-hover")]:p("color-hover"),[f("text-color-active")]:p("color-active"),boxShadow:p("shadow")},[`&${i}-variant-dashed`]:{[f("border-style")]:"dashed",[f("bg-color-disabled")]:n.dashedBgDisabled},[`&${i}-variant-filled`]:{[f("border-color")]:"transparent",[f("text-color")]:p("color-base"),[f("bg-color")]:p("color-light"),[f("bg-color-hover")]:p("color-light-hover"),[f("bg-color-active")]:p("color-light-active")},[`&${i}-variant-text, &${i}-variant-link`]:{[f("border-color")]:"transparent",[f("text-color")]:p("color-base"),[f("text-color-hover")]:p("color-hover"),[f("text-color-active")]:p("color-active"),[f("bg-color")]:"transparent",[f("bg-color-hover")]:"transparent",[f("bg-color-active")]:"transparent",[`&:disabled, &${n.componentCls}-disabled`]:{background:"transparent",borderColor:"transparent"}},[`&${i}-variant-text`]:{[f("bg-color-hover")]:p("color-light"),[f("bg-color-active")]:p("color-light-active")}},{[`&${i}-variant-link`]:{[f("color-base")]:n.colorLink,[f("color-hover")]:n.colorLinkHover,[f("color-active")]:n.colorLinkActive,[f("bg-color-hover")]:n.linkHoverBg},[`&${i}-color-primary`]:{[f("color-base")]:n.colorPrimary,[f("color-hover")]:n.colorPrimaryHover,[f("color-active")]:n.colorPrimaryActive,[f("color-light")]:n.colorPrimaryBg,[f("color-light-hover")]:n.colorPrimaryBgHover,[f("color-light-active")]:n.colorPrimaryBorder,[f("shadow")]:n.primaryShadow,[`&${i}-variant-solid`]:{[f("text-color")]:n.primaryColor,[f("text-color-hover")]:p("text-color"),[f("text-color-active")]:p("text-color")}},[`&${i}-color-dangerous`]:{[f("color-base")]:n.colorError,[f("color-hover")]:n.colorErrorHover,[f("color-active")]:n.colorErrorActive,[f("color-light")]:n.colorErrorBg,[f("color-light-hover")]:n.colorErrorBgFilledHover,[f("color-light-active")]:n.colorErrorBgActive,[f("shadow")]:n.dangerShadow,[`&${i}-variant-solid`]:{[f("text-color")]:n.dangerColor,[f("text-color-hover")]:p("text-color"),[f("text-color-active")]:p("text-color")}},[`&${i}-color-default`]:{[f("solid-bg-color")]:n.colorBgSolid,[f("solid-bg-color-hover")]:n.colorBgSolidHover,[f("solid-bg-color-active")]:n.colorBgSolidActive,[f("color-base")]:n.defaultBorderColor,[f("color-hover")]:n.defaultHoverBorderColor,[f("color-active")]:n.defaultActiveBorderColor,[f("color-light")]:n.colorFillTertiary,[f("color-light-hover")]:n.colorFillSecondary,[f("color-light-active")]:n.colorFill,[f("text-color")]:n.defaultColor,[f("text-color-hover")]:n.defaultHoverColor,[f("text-color-active")]:n.defaultActiveColor,[f("shadow")]:n.defaultShadow,[`&${i}-variant-outlined`]:{[f("bg-color-disabled")]:n.defaultBgDisabled},[`&${i}-variant-solid`]:{[f("text-color")]:n.solidTextColor,[f("text-color-hover")]:p("text-color"),[f("text-color-active")]:p("text-color")},[`&${i}-variant-filled, &${i}-variant-text`]:{[f("text-color-hover")]:p("text-color"),[f("text-color-active")]:p("text-color")},[`&${i}-variant-outlined, &${i}-variant-dashed`]:{[f("text-color")]:n.defaultColor,[f("text-color-hover")]:n.defaultHoverColor,[f("text-color-active")]:n.defaultActiveColor,[f("bg-color-container")]:n.defaultBg,[f("bg-color-hover")]:n.defaultHoverBg,[f("bg-color-active")]:n.defaultActiveBg},[`&${i}-variant-text`]:{[f("text-color")]:n.textTextColor,[f("text-color-hover")]:n.textTextHoverColor,[f("text-color-active")]:n.textTextActiveColor,[f("bg-color-hover")]:n.textHoverBg},[`&${i}-background-ghost`]:{[`&${i}-variant-outlined, &${i}-variant-dashed`]:{[f("text-color")]:n.defaultGhostColor,[f("border-color")]:n.defaultGhostBorderColor}}}},vS.map(y=>{const S=n[`${y}6`],T=n[`${y}1`],C=n[`${y}Hover`],j=n[`${y}2`],O=n[`${y}3`],A=n[`${y}Active`],R=n[`${y}ShadowColor`];return{[`&${i}-color-${y}`]:{[f("color-base")]:S,[f("color-hover")]:C,[f("color-active")]:A,[f("color-light")]:T,[f("color-light-hover")]:j,[f("color-light-active")]:O,[f("shadow")]:R}}}),{[`&:disabled, &${n.componentCls}-disabled`]:{cursor:"not-allowed",borderColor:n.colorBorderDisabled,background:p("bg-color-disabled"),color:n.colorTextDisabled,boxShadow:"none"}},{[`&${i}-background-ghost`]:{[f("bg-color")]:n.ghostBg,[f("bg-color-hover")]:n.ghostBg,[f("bg-color-active")]:n.ghostBg,[f("shadow")]:"none",[`&${i}-variant-outlined, &${i}-variant-dashed`]:{[f("bg-color-hover")]:n.ghostBg,[f("bg-color-active")]:n.ghostBg}}}]}},zH=n=>{const{componentCls:i,iconCls:r,fontWeight:s,opacityLoading:f,motionDurationSlow:p,motionEaseInOut:y,iconGap:S,calc:T}=n;return{[i]:{outline:"none",position:"relative",display:"inline-flex",gap:S,alignItems:"center",justifyContent:"center",fontWeight:s,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",cursor:"pointer",transition:`all ${n.motionDurationMid} ${n.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",...WB(),"&:disabled > *":{pointerEvents:"none"},[`${i}-icon > svg`]:hM(),[`${i}-icon`]:{display:"inline-flex",alignItems:"center",justifyContent:"center"},"> a":{color:"currentColor"},"&:not(:disabled)":MS(n),[`&${i}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${i}-two-chinese-chars > *:not(${r})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},[`&${i}-icon-only`]:{paddingInline:0,[`&${i}-compact-item`]:{flex:"none"}},[`&${i}-loading`]:{opacity:f,cursor:"default"},[`${i}-loading-icon`]:{transition:["width","opacity","margin"].map(C=>`${C} ${p} ${y}`).join(",")},[`&:not(${i}-icon-end)`]:{[`${i}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineEnd:T(S).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineEnd:0},"&-leave-start":{marginInlineEnd:0},"&-leave-active":{marginInlineEnd:T(S).mul(-1).equal()}}},"&-icon-end":{flexDirection:"row-reverse",[`${i}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineStart:T(S).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineStart:0},"&-leave-start":{marginInlineStart:0},"&-leave-active":{marginInlineStart:T(S).mul(-1).equal()}}}}}},DH=n=>({minWidth:n.controlHeight,paddingInline:0,borderRadius:"50%"}),HT=(n,i="")=>{const{componentCls:r,controlHeight:s,fontSize:f,borderRadius:p,buttonPaddingHorizontal:y,iconCls:S,buttonPaddingVertical:T,buttonIconOnlyFontSize:C}=n;return[{[i]:{fontSize:f,height:s,padding:`${Dt(T)} ${Dt(y)}`,borderRadius:p,[`&${r}-icon-only`]:{width:s,[S]:{fontSize:C}}}},{[`${r}${r}-circle${i}`]:DH(n)},{[`${r}${r}-round${i}`]:{borderRadius:n.controlHeight,[`&:not(${r}-icon-only)`]:{paddingInline:n.buttonPaddingHorizontal}}}]},RH=n=>{const i=Vr(n,{fontSize:n.contentFontSize});return HT(i,n.componentCls)},NH=n=>{const i=Vr(n,{controlHeight:n.controlHeightSM,fontSize:n.contentFontSizeSM,padding:n.paddingXS,buttonPaddingHorizontal:n.paddingInlineSM,buttonPaddingVertical:0,borderRadius:n.borderRadiusSM,buttonIconOnlyFontSize:n.onlyIconSizeSM});return HT(i,`${n.componentCls}-sm`)},_H=n=>{const i=Vr(n,{controlHeight:n.controlHeightLG,fontSize:n.contentFontSizeLG,buttonPaddingHorizontal:n.paddingInlineLG,buttonPaddingVertical:0,borderRadius:n.borderRadiusLG,buttonIconOnlyFontSize:n.onlyIconSizeLG});return HT(i,`${n.componentCls}-lg`)},$H=n=>{const{componentCls:i}=n;return{[i]:{[`&${i}-block`]:{width:"100%"}}}},BH=$u("Button",n=>{const i=uz(n);return[zH(i),RH(i),NH(i),_H(i),$H(i),MH(i),dH(i)]},fz,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function HH(n,i,r,s){const{focusElCls:f,focus:p,borderElCls:y}=r,S=y?"> *":"",T=S?` ${S}`:"",C=A=>A.filter(Boolean).map(R=>`&:${R}${T}`).join(","),j=C(["hover",f?`hover${f}`:null]),O=C([p?"focus":null,"active"]);return{[`&-item:not(${i}-last-item)`]:{marginInlineEnd:n.calc(n.lineWidth).mul(-1).equal()},[`&-item:not(${s}-status-success)`]:{zIndex:2},"&-item":{[O]:{zIndex:3},[j]:{zIndex:4},...f?{[`&${f}`]:{zIndex:3}}:{},[`&[disabled] ${S}`]:{zIndex:0}}}}function UH(n,i,r){const{borderElCls:s}=r,f=s?`> ${s}`:"";return{[`&-item:not(${i}-first-item):not(${i}-last-item) ${f}`]:{borderRadius:0},[`&-item:not(${i}-last-item)${i}-first-item`]:{[`& ${f}, &${n}-sm ${f}, &${n}-lg ${f}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${i}-first-item)${i}-last-item`]:{[`& ${f}, &${n}-sm ${f}, &${n}-lg ${f}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function LH(n,i={focus:!0}){const{componentCls:r}=n,{componentCls:s}=i,f=s||r,p=`${f}-compact`;return{[p]:{...HH(n,p,i,f),...UH(f,p,i)}}}function qH(n,i,r){return{[`&-item:not(${i}-last-item)`]:{marginBottom:n.calc(n.lineWidth).mul(-1).equal()},[`&-item:not(${r}-status-success)`]:{zIndex:2},"&-item":{"&:focus,&:active":{zIndex:3},"&:hover":{zIndex:4},"&[disabled]":{zIndex:0}}}}function VH(n,i){return{[`&-item:not(${i}-first-item):not(${i}-last-item)`]:{borderRadius:0},[`&-item${i}-first-item:not(${i}-last-item)`]:{[`&, &${n}-sm, &${n}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${i}-last-item:not(${i}-first-item)`]:{[`&, &${n}-sm, &${n}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}}function FH(n){const i=`${n.componentCls}-compact-vertical`;return{[i]:{...qH(n,i,n.componentCls),...VH(n.componentCls,i)}}}const kH=n=>{const{antCls:i,componentCls:r,lineWidth:s,calc:f,colorBgContainer:p}=n,y=`${r}-variant-solid:not([disabled])`,S=f(s).mul(-1).equal(),[T,C]=Ed(i,"btn"),j=O=>({[`${r}-compact${O?"-vertical":""}-item`]:{[T("compact-connect-border-color")]:C("bg-color-hover"),[`&${y}`]:{transition:"none",[`& + ${y}:before`]:[{position:"absolute",backgroundColor:C("compact-connect-border-color"),content:'""'},O?{top:S,insetInline:S,height:s}:{insetBlock:S,insetInlineStart:S,width:s}],"&:hover:before":{display:"none"}}}});return[j(),j(!0),{[`${y}${r}-color-default`]:{[T("compact-connect-border-color")]:`color-mix(in srgb, ${C("bg-color-hover")} 75%, ${p})`}}]},IH=zS(["Button","compact"],n=>{const i=uz(n);return[LH(i),FH(i),kH(i)]},fz);function GH(n){if(co(n)){let i=n==null?void 0:n.delay;return i=Tm(i)?i:0,{loading:i<=0,delay:i}}return{loading:!!n,delay:0}}const YH={default:["default","outlined"],primary:["primary","solid"],dashed:["default","dashed"],link:["link","link"],text:["default","text"]},Bm=H.forwardRef((n,i)=>{const{_skipSemantic:r,loading:s=!1,prefixCls:f,color:p,variant:y,type:S,danger:T=!1,shape:C,size:j,disabled:O,className:A,rootClassName:R,children:N,icon:L,iconPosition:D,iconPlacement:_,ghost:U=!1,block:B=!1,htmlType:k="button",classNames:G,styles:Y,style:P,autoInsertSpace:Q,autoFocus:ue,...V}=n,F=hy(N),te=S||"default",{getPrefixCls:ae,direction:ge,autoInsertSpace:He,className:X,style:ie,classNames:me,styles:fe,loadingIcon:ne,shape:ee,color:Se,variant:Ae}=Mu("button"),De=C||ee||"default",[Ue,Ve]=H.useMemo(()=>{if(p&&y)return[p,y];if(S||T){const Ut=YH[te]||[];return T?["danger",Ut[1]]:Ut}return y==="solid"?["primary",y]:Se&&Ae?[Se,Ae]:Ae==="solid"?["primary",Ae]:["default","outlined"]},[p,y,S,T,Se,Ae,te]),[Pe,Ie]=H.useMemo(()=>U&&Ve==="solid"?[Ue,"outlined"]:[Ue,Ve],[Ue,Ve,U]),nt=Pe==="danger",ut=nt?"dangerous":Pe,ze=Q??He??!0,Ye=ae("btn",f),[Rt,Le]=BH(Ye),ft=H.useContext(TS),$e=O??ft,Xe=H.useContext(PM),dt=H.useMemo(()=>GH(s),[s]),[Ct,pe]=H.useState(dt.loading),[Be,Ke]=H.useState(!1),rt=H.useRef(null),wt=bm(i,rt),yt=F.length===1&&!L&&!XS(Ie),Rn=H.useRef(!0);H.useEffect(()=>(Rn.current=!1,()=>{Rn.current=!0}),[]),Ho(()=>{let Ut=null;dt.delay>0?Ut=setTimeout(()=>{Ut=null,pe(!0)},dt.delay):pe(dt.loading);function Gl(){Ut&&(clearTimeout(Ut),Ut=null)}return Gl},[dt.delay,dt.loading]),H.useEffect(()=>{if(!rt.current||!ze)return;const Ut=rt.current.textContent||"";yt&&NT(Ut)?Be||Ke(!0):Be&&Ke(!1)}),H.useEffect(()=>{ue&&rt.current&&rt.current.focus()},[]);const Oe=H.useCallback(Ut=>{var Gl;if(Ct||$e){Ut.preventDefault();return}(Gl=n.onClick)==null||Gl.call(n,("href"in n,Ut))},[n.onClick,Ct,$e]);if(process.env.NODE_ENV!=="production"){const Ut=so("Button");process.env.NODE_ENV!=="production"&&Ut(!(typeof L=="string"&&L.length>2),"breaking",`\`icon\` is using ReactNode instead of string naming in v4. Please check \`${L}\` at https://ant.design/components/icon`),process.env.NODE_ENV!=="production"&&Ut(!(U&&XS(Ie)),"usage","`link` or `text` button can't be a `ghost` button."),Ut.deprecated(!D,"iconPosition","iconPlacement")}const{compactSize:Fe,compactItemClassnames:Ht}=IB(Ye,ge),it=YS(Ut=>j??Fe??Xe??Ut),Sl=Ct?"loading":L,Pt=_??D??"start",ul=N3(V,["navigate"]),Bn={...n,type:te,color:Pe,variant:Ie,danger:nt,shape:De,size:it,disabled:$e,loading:Ct,iconPlacement:Pt},[En,jt]=gy([r?void 0:me,G],[r?void 0:fe,Y],{props:Bn}),nn=qe(Ye,Rt,Le,{[`${Ye}-${De}`]:De!=="default"&&De!=="square"&&De,[`${Ye}-${te}`]:te,[`${Ye}-dangerous`]:T,[`${Ye}-color-${ut}`]:ut,[`${Ye}-variant-${Ie}`]:Ie,[`${Ye}-lg`]:it==="large",[`${Ye}-sm`]:it==="small",[`${Ye}-icon-only`]:!N&&N!==0&&!!Sl,[`${Ye}-background-ghost`]:U&&!XS(Ie),[`${Ye}-loading`]:Ct,[`${Ye}-two-chinese-chars`]:Be&&ze&&!Ct,[`${Ye}-block`]:B,[`${Ye}-rtl`]:ge==="rtl",[`${Ye}-icon-end`]:Pt==="end"},Ht,A,R,X,En.root),At={...jt.root,...ie,...P},Nn={className:En.icon,style:jt.icon},gn=Ut=>H.createElement(JM,{prefixCls:Ye,...Nn},Ut),Jt=H.createElement(QB,{existIcon:!!L,prefixCls:Ye,loading:Ct,mount:Rn.current,...Nn}),Hn=co(s)&&s.icon||ne;let on;L&&!Ct?on=gn(L):s&&Hn?on=gn(Hn):on=Jt;const rn=Cm(N)?PB(N,yt&&ze,jt.content,En.content):null;if(ul.href!==void 0)return H.createElement("a",{...ul,className:qe(nn,{[`${Ye}-disabled`]:$e}),href:$e?void 0:ul.href,style:At,onClick:Oe,ref:wt,tabIndex:$e?-1:0,"aria-disabled":$e},on,rn);let fl=H.createElement("button",{...V,type:k,className:nn,style:At,onClick:Oe,disabled:$e,ref:wt},on,rn,Ht&&H.createElement(IH,{prefixCls:Ye}));return XS(Ie)||(fl=H.createElement(YM,{component:"Button",disabled:Ct},fl)),fl});Bm.Group=YB,Bm.__ANT_BUTTON=!0,process.env.NODE_ENV!=="production"&&(Bm.displayName="Button");const dz=n=>{const{type:i,children:r,prefixCls:s,buttonProps:f,close:p,autoFocus:y,emitEvent:S,isSilent:T,quitOnNullishReturnValue:C,actionFn:j}=n,O=z.useRef(!1),A=z.useRef(null),[R,N]=Dw(!1),L=(...U)=>{p==null||p(...U)};z.useEffect(()=>{let U=null;return y&&(U=setTimeout(()=>{var B;(B=A.current)==null||B.focus({preventScroll:!0})})),()=>{U&&clearTimeout(U)}},[y]);const D=U=>{bC(U)&&(N(!0),U.then((...B)=>{N(!1,!0),L.apply(void 0,B),O.current=!1},B=>{if(N(!1,!0),O.current=!1,!(T!=null&&T()))return Promise.reject(B)}))},_=U=>{if(O.current)return;if(O.current=!0,!j){L();return}let B;if(S){if(B=j(U),C&&!bC(B)){O.current=!1,L(U);return}}else if(j.length)B=j(p),O.current=!1;else if(B=j(),!bC(B)){L();return}D(B)};return z.createElement(Bm,{...ZM(i),onClick:_,loading:R,prefixCls:s,...f,ref:A},r)},$y=H.createContext({}),{Provider:hz}=$y,mz=()=>{const{autoFocusButton:n,cancelButtonProps:i,cancelTextLocale:r,isSilent:s,mergedOkCancel:f,rootPrefixCls:p,close:y,onCancel:S,onConfirm:T,onClose:C}=H.useContext($y);return f?H.createElement(dz,{isSilent:s,actionFn:S,close:(...j)=>{y==null||y(...j),T==null||T(!1),C==null||C()},autoFocus:n==="cancel",buttonProps:i,prefixCls:`${p}-btn`},r):null},pz=()=>{const{autoFocusButton:n,close:i,isSilent:r,okButtonProps:s,rootPrefixCls:f,okTextLocale:p,okType:y,onConfirm:S,onOk:T,onClose:C}=H.useContext($y);return H.createElement(dz,{isSilent:r,type:y||"primary",actionFn:T,close:(...j)=>{i==null||i(...j),S==null||S(!0),C==null||C()},autoFocus:n==="ok",buttonProps:s,prefixCls:`${f}-btn`},p)},gz=z.createContext({});function yz(n,i,r){let s=i;return!s&&r&&(s=`${n}-${r}`),s}function bz(n,i){let r=n[`page${i?"Y":"X"}Offset`];const s=`scroll${i?"Top":"Left"}`;if(typeof r!="number"){const f=n.document;r=f.documentElement[s],typeof r!="number"&&(r=f.body[s])}return r}function XH(n){const i=n.getBoundingClientRect(),r={left:i.left,top:i.top},s=n.ownerDocument,f=s.defaultView||s.parentWindow;return r.left+=bz(f),r.top+=bz(f,!0),r}const PH=z.memo(({children:n})=>n,(n,{shouldUpdate:i})=>!i);function PS(){return PS=Object.assign?Object.assign.bind():function(n){for(var i=1;i<arguments.length;i++){var r=arguments[i];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(n[s]=r[s])}return n},PS.apply(this,arguments)}const vz=H.forwardRef((n,i)=>{const{prefixCls:r,className:s,style:f,title:p,ariaId:y,footer:S,closable:T,closeIcon:C,onClose:j,children:O,bodyStyle:A,bodyProps:R,modalRender:N,onMouseDown:L,onMouseUp:D,holderRef:_,visible:U,forceRender:B,width:k,height:G,classNames:Y,styles:P,isFixedPos:Q,focusTrap:ue}=n,{panel:V}=H.useContext(gz),F=H.useRef(null),te=bm(_,V,F),[ae]=T3(U&&Q&&ue!==!1,()=>F.current);H.useImperativeHandle(i,()=>({focus:()=>{var Se;(Se=F.current)==null||Se.focus({preventScroll:!0})}}));const ge={};k!==void 0&&(ge.width=k),G!==void 0&&(ge.height=G);const He=S?H.createElement("div",{className:qe(`${r}-footer`,Y==null?void 0:Y.footer),style:{...P==null?void 0:P.footer}},S):null,X=p?H.createElement("div",{className:qe(`${r}-header`,Y==null?void 0:Y.header),style:{...P==null?void 0:P.header}},H.createElement("div",{className:qe(`${r}-title`,Y==null?void 0:Y.title),id:y,style:{...P==null?void 0:P.title}},p)):null,ie=H.useMemo(()=>typeof T=="object"&&T!==null?T:T?{closeIcon:C??H.createElement("span",{className:`${r}-close-x`})}:{},[T,C,r]),me=Zv(ie,!0),fe=typeof T=="object"&&T.disabled,ne=T?H.createElement("button",PS({type:"button",onClick:j,"aria-label":"Close"},me,{className:qe(`${r}-close`,Y==null?void 0:Y.close),disabled:fe,style:P==null?void 0:P.close}),ie.closeIcon):null,ee=H.createElement("div",{className:qe(`${r}-container`,Y==null?void 0:Y.container),style:P==null?void 0:P.container},ne,X,H.createElement("div",PS({className:qe(`${r}-body`,Y==null?void 0:Y.body),style:{...A,...P==null?void 0:P.body}},R),O),He);return H.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":p?y:null,"aria-modal":"true",ref:te,style:{...f,...ge},className:qe(r,s),onMouseDown:L,onMouseUp:D,tabIndex:-1,onFocus:Se=>{ae(Se.target)}},H.createElement(PH,{shouldUpdate:U||B},N?N(ee):ee))});process.env.NODE_ENV!=="production"&&(vz.displayName="Panel");function UT(){return UT=Object.assign?Object.assign.bind():function(n){for(var i=1;i<arguments.length;i++){var r=arguments[i];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(n[s]=r[s])}return n},UT.apply(this,arguments)}const Sz=z.forwardRef((n,i)=>{const{prefixCls:r,title:s,style:f,className:p,visible:y,forceRender:S,destroyOnHidden:T,motionName:C,ariaId:j,onVisibleChanged:O,mousePosition:A}=n,R=H.useRef(null),N=H.useRef(null);z.useImperativeHandle(i,()=>({...N.current,inMotion:R.current.inMotion,enableMotion:R.current.enableMotion}));const[L,D]=z.useState(),_={};L&&(_.transformOrigin=L);function U(){var k;if(!((k=R.current)!=null&&k.nativeElement))return;const B=XH(R.current.nativeElement);D(A&&(A.x||A.y)?`${A.x-B.left}px ${A.y-B.top}px`:"")}return z.createElement(uc,{visible:y,onVisibleChanged:O,onAppearPrepare:U,onEnterPrepare:U,forceRender:S,motionName:C,removeOnLeave:T,ref:R},({className:B,style:k},G)=>z.createElement(vz,UT({},n,{ref:N,title:s,ariaId:j,prefixCls:r,holderRef:G,style:{...k,...f,..._},className:qe(p,B)})))});process.env.NODE_ENV!=="production"&&(Sz.displayName="Content");function LT(){return LT=Object.assign?Object.assign.bind():function(n){for(var i=1;i<arguments.length;i++){var r=arguments[i];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(n[s]=r[s])}return n},LT.apply(this,arguments)}const QH=n=>{const{prefixCls:i,style:r,visible:s,maskProps:f,motionName:p,className:y}=n;return z.createElement(uc,{key:"mask",visible:s,motionName:p,leavedClassName:`${i}-mask-hidden`},({className:S,style:T},C)=>z.createElement("div",LT({ref:C,style:{...T,...r},className:qe(`${i}-mask`,S,y)},f)))};function By(){return By=Object.assign?Object.assign.bind():function(n){for(var i=1;i<arguments.length;i++){var r=arguments[i];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(n[s]=r[s])}return n},By.apply(this,arguments)}const ZH=n=>{const{prefixCls:i="rc-dialog",zIndex:r,visible:s=!1,focusTriggerAfterClose:f=!0,wrapStyle:p,wrapClassName:y,wrapProps:S,onClose:T,afterOpenChange:C,afterClose:j,transitionName:O,animation:A,closable:R=!0,mask:N=!0,maskTransitionName:L,maskAnimation:D,maskClosable:_=!0,maskStyle:U,maskProps:B,rootClassName:k,rootStyle:G,classNames:Y,styles:P}=n;process.env.NODE_ENV!=="production"&&(["wrapStyle","bodyStyle","maskStyle"].forEach(Ue=>{xm(!(Ue in n),`${Ue} is deprecated, please use styles instead.`)}),"wrapClassName"in n&&xm(!1,"wrapClassName is deprecated, please use classNames instead."));const Q=H.useRef(null),ue=H.useRef(null),V=H.useRef(null),[F,te]=z.useState(s),[ae,ge]=z.useState(!1),He=Gv();function X(){YE(ue.current,document.activeElement)||(Q.current=document.activeElement)}function ie(){var Ue;YE(ue.current,document.activeElement)||(Ue=V.current)==null||Ue.focus()}function me(){if(te(!1),N&&Q.current&&f){try{Q.current.focus({preventScroll:!0})}catch{}Q.current=null}F&&(j==null||j())}function fe(Ue){Ue?ie():me(),C==null||C(Ue)}function ne(Ue){T==null||T(Ue)}const ee=H.useRef(!1);let Se=null;_&&(Se=Ue=>{ue.current===Ue.target&&ee.current&&ne(Ue)});function Ae(Ue){ee.current=Ue.target===ue.current}H.useEffect(()=>{if(s){if(ee.current=!1,te(!0),X(),ue.current){const Ue=getComputedStyle(ue.current);ge(Ue.position==="fixed")}}else F&&V.current.enableMotion()&&!V.current.inMotion()&&me()},[s]);const De={zIndex:r,...p,...P==null?void 0:P.wrapper,display:F?null:"none"};return z.createElement("div",By({className:qe(`${i}-root`,k),style:G},Zv(n,{data:!0})),z.createElement(QH,{prefixCls:i,visible:N&&s,motionName:yz(i,L,D),style:{zIndex:r,...U,...P==null?void 0:P.mask},maskProps:B,className:Y==null?void 0:Y.mask}),z.createElement("div",By({className:qe(`${i}-wrap`,y,Y==null?void 0:Y.wrapper),ref:ue,onClick:Se,onMouseDown:Ae,style:De},S),z.createElement(Sz,By({},n,{isFixedPos:ae,ref:V,closable:R,ariaId:He,prefixCls:i,visible:s&&F,onClose:ne,onVisibleChanged:fe,motionName:yz(i,O,A)}))))};function qT(){return qT=Object.assign?Object.assign.bind():function(n){for(var i=1;i<arguments.length;i++){var r=arguments[i];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(n[s]=r[s])}return n},qT.apply(this,arguments)}const xz=n=>{const{visible:i,getContainer:r,forceRender:s,destroyOnHidden:f=!1,afterClose:p,closable:y,panelRef:S,keyboard:T=!0,onClose:C}=n,[j,O]=z.useState(i),A=z.useMemo(()=>({panel:S}),[S]),R=({top:N,event:L})=>{if(N&&T){L.stopPropagation(),C==null||C(L);return}};return z.useEffect(()=>{i&&O(!0)},[i]),!s&&f&&!j?null:z.createElement(gz.Provider,{value:A},z.createElement(Ay,{open:i||s||j,onEsc:R,autoDestroy:!1,getContainer:r,autoLock:i||j},z.createElement(ZH,qT({},n,{destroyOnHidden:f,afterClose:()=>{const N=y&&typeof y=="object"?y:{},{afterClose:L}=N||{};L==null||L(),p==null||p(),O(!1)}}))))};process.env.NODE_ENV!=="production"&&(xz.displayName="Dialog");const Td="RC_FORM_INTERNAL_HOOKS",$n=()=>{ll(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},Hm=z.createContext({getFieldValue:$n,getFieldsValue:$n,getFieldError:$n,getFieldWarning:$n,getFieldsError:$n,isFieldsTouched:$n,isFieldTouched:$n,isFieldValidating:$n,isFieldsValidating:$n,resetFields:$n,setFields:$n,setFieldValue:$n,setFieldsValue:$n,validateFields:$n,submit:$n,getInternalHooks:()=>($n(),{dispatch:$n,initEntityValue:$n,registerField:$n,useSubscribe:$n,setInitialValues:$n,destroyForm:$n,setCallbacks:$n,registerWatch:$n,getFields:$n,setValidateMessages:$n,setPreserve:$n,getInitialValue:$n})}),QS=z.createContext(null);function VT(n){return n==null?[]:Array.isArray(n)?n:[n]}function JH(n){return n&&!!n._init}function FT(){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",tel:"%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(){const n=JSON.parse(JSON.stringify(this));return n.clone=this.clone,n}}}const kT=FT(),KH=/%[sdj%]/g;let Ez=()=>{};typeof process<"u"&&process.env&&process.env.NODE_ENV!=="production"&&typeof window<"u"&&typeof document<"u"&&(Ez=(n,i)=>{typeof console<"u"&&console.warn&&typeof ASYNC_VALIDATOR_NO_WARNING>"u"&&i.every(r=>typeof r=="string")&&console.warn(n,i)});function IT(n){if(!n||!n.length)return null;const i={};return n.forEach(r=>{const s=r.field;i[s]=i[s]||[],i[s].push(r)}),i}function ci(n,...i){let r=0;const s=i.length;return typeof n=="function"?n.apply(null,i):typeof n=="string"?n.replace(KH,p=>{if(p==="%%")return"%";if(r>=s)return p;switch(p){case"%s":return String(i[r++]);case"%d":return Number(i[r++]);case"%j":try{return JSON.stringify(i[r++])}catch{return"[Circular]"}break;default:return p}}):n}function WH(n){return n==="string"||n==="url"||n==="hex"||n==="email"||n==="date"||n==="pattern"||n==="tel"}function ca(n,i){return!!(n==null||i==="array"&&Array.isArray(n)&&!n.length||WH(i)&&typeof n=="string"&&!n)}function eU(n,i,r){const s=[];let f=0;const p=n.length;function y(S){s.push(...S||[]),f++,f===p&&r(s)}n.forEach(S=>{i(S,y)})}function Cz(n,i,r){let s=0;const f=n.length;function p(y){if(y&&y.length){r(y);return}const S=s;s=s+1,S<f?i(n[S],p):r([])}p([])}function tU(n){const i=[];return Object.keys(n).forEach(r=>{i.push(...n[r]||[])}),i}class Tz extends Error{constructor(r,s){super("Async Validation Error");we(this,"errors");we(this,"fields");this.errors=r,this.fields=s}}function nU(n,i,r,s,f){if(i.first){const O=new Promise((A,R)=>{const N=D=>(s(D),D.length?R(new Tz(D,IT(D))):A(f)),L=tU(n);Cz(L,r,N)});return O.catch(A=>A),O}const p=i.firstFields===!0?Object.keys(n):i.firstFields||[],y=Object.keys(n),S=y.length;let T=0;const C=[],j=new Promise((O,A)=>{const R=N=>{if(C.push.apply(C,N),T++,T===S)return s(C),C.length?A(new Tz(C,IT(C))):O(f)};y.length||(s(C),O(f)),y.forEach(N=>{const L=n[N];p.indexOf(N)!==-1?Cz(L,r,R):eU(L,r,R)})});return j.catch(O=>O),j}function lU(n){return!!(n&&n.message!==void 0)}function aU(n,i){let r=n;for(let s=0;s<i.length;s++){if(r==null)return r;r=r[i[s]]}return r}function Oz(n,i){return r=>{let s;return n.fullFields?s=aU(i,n.fullFields):s=i[r.field||n.fullField],lU(r)?(r.field=r.field||n.fullField,r.fieldValue=s,r):{message:typeof r=="function"?r():r,fieldValue:s,field:r.field||n.fullField}}}function wz(n,i){if(i){for(const r in i)if(i.hasOwnProperty(r)){const s=i[r];typeof s=="object"&&typeof n[r]=="object"?n[r]={...n[r],...s}:n[r]=s}}return n}const Um="enum",oU=(n,i,r,s,f)=>{n[Um]=Array.isArray(n[Um])?n[Um]:[],n[Um].indexOf(i)===-1&&s.push(ci(f.messages[Um],n.fullField,n[Um].join(", ")))},iU=(n,i,r,s,f)=>{n.pattern&&(n.pattern instanceof RegExp?(n.pattern.lastIndex=0,n.pattern.test(i)||s.push(ci(f.messages.pattern.mismatch,n.fullField,i,n.pattern))):typeof n.pattern=="string"&&(new RegExp(n.pattern).test(i)||s.push(ci(f.messages.pattern.mismatch,n.fullField,i,n.pattern))))},rU=(n,i,r,s,f)=>{const p=typeof n.len=="number",y=typeof n.min=="number",S=typeof n.max=="number",T=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g;let C=i,j=null;const O=typeof i=="number",A=typeof i=="string",R=Array.isArray(i);if(O?j="number":A?j="string":R&&(j="array"),!j)return!1;R&&(C=i.length),A&&(C=i.replace(T,"_").length),p?C!==n.len&&s.push(ci(f.messages[j].len,n.fullField,n.len)):y&&!S&&C<n.min?s.push(ci(f.messages[j].min,n.fullField,n.min)):S&&!y&&C>n.max?s.push(ci(f.messages[j].max,n.fullField,n.max)):y&&S&&(C<n.min||C>n.max)&&s.push(ci(f.messages[j].range,n.fullField,n.min,n.max))},jz=(n,i,r,s,f,p)=>{n.required&&(!r.hasOwnProperty(n.field)||ca(i,p||n.type))&&s.push(ci(f.messages.required,n.fullField))};let ZS;const sU=(()=>{if(ZS)return ZS;const n="[a-fA-F\\d:]",i=G=>G&&G.includeBoundaries?`(?:(?<=\\s|^)(?=${n})|(?<=${n})(?=\\s|$))`:"",r="(?: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}",s="[a-fA-F\\d]{1,4}",y=`(?:${[`(?:${s}:){7}(?:${s}|:)`,`(?:${s}:){6}(?:${r}|:${s}|:)`,`(?:${s}:){5}(?::${r}|(?::${s}){1,2}|:)`,`(?:${s}:){4}(?:(?::${s}){0,1}:${r}|(?::${s}){1,3}|:)`,`(?:${s}:){3}(?:(?::${s}){0,2}:${r}|(?::${s}){1,4}|:)`,`(?:${s}:){2}(?:(?::${s}){0,3}:${r}|(?::${s}){1,5}|:)`,`(?:${s}:){1}(?:(?::${s}){0,4}:${r}|(?::${s}){1,6}|:)`,`(?::(?:(?::${s}){0,5}:${r}|(?::${s}){1,7}|:))`].join("|")})(?:%[0-9a-zA-Z]{1,})?`,S=new RegExp(`(?:^${r}$)|(?:^${y}$)`),T=new RegExp(`^${r}$`),C=new RegExp(`^${y}$`),j=G=>G&&G.exact?S:new RegExp(`(?:${i(G)}${r}${i(G)})|(?:${i(G)}${y}${i(G)})`,"g");j.v4=G=>G&&G.exact?T:new RegExp(`${i(G)}${r}${i(G)}`,"g"),j.v6=G=>G&&G.exact?C:new RegExp(`${i(G)}${y}${i(G)}`,"g");const O="(?:(?:[a-z]+:)?//)",A="(?:\\S+(?::\\S*)?@)?",R=j.v4().source,N=j.v6().source,k=`(?:${O}|www\\.)${A}(?:localhost|${R}|${N}|(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))(?::\\d{2,5})?(?:[/?#][^\\s"]*)?`;return ZS=new RegExp(`(?:^${k}$)`,"i"),ZS}),GT={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,}))$/,tel:/^(\+[0-9]{1,3}[-\s\u2011]?)?(\([0-9]{1,4}\)[-\s\u2011]?)?([0-9]+[-\s\u2011]?)*[0-9]+$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},Hy={integer(n){return Hy.number(n)&&parseInt(n,10)===n},float(n){return Hy.number(n)&&!Hy.integer(n)},array(n){return Array.isArray(n)},regexp(n){if(n instanceof RegExp)return!0;try{return!!new RegExp(n)}catch{return!1}},date(n){return typeof n.getTime=="function"&&typeof n.getMonth=="function"&&typeof n.getYear=="function"&&!isNaN(n.getTime())},number(n){return isNaN(n)?!1:typeof n=="number"},object(n){return typeof n=="object"&&!Hy.array(n)},method(n){return typeof n=="function"},email(n){return typeof n=="string"&&n.length<=320&&!!n.match(GT.email)},tel(n){return typeof n=="string"&&n.length<=32&&!!n.match(GT.tel)},url(n){return typeof n=="string"&&n.length<=2048&&!!n.match(sU())},hex(n){return typeof n=="string"&&!!n.match(GT.hex)}},tn={required:jz,whitespace:(n,i,r,s,f)=>{(/^\s+$/.test(i)||i==="")&&s.push(ci(f.messages.whitespace,n.fullField))},type:(n,i,r,s,f)=>{if(n.required&&i===void 0){jz(n,i,r,s,f);return}const p=["integer","float","array","regexp","object","method","email","tel","number","date","url","hex"],y=n.type;p.indexOf(y)>-1?Hy[y](i)||s.push(ci(f.messages.types[y],n.fullField,n.type)):y&&typeof i!==n.type&&s.push(ci(f.messages.types[y],n.fullField,n.type))},range:rU,enum:oU,pattern:iU},cU=(n,i,r,s,f)=>{const p=[];if(n.required||!n.required&&s.hasOwnProperty(n.field)){if(ca(i)&&!n.required)return r();tn.required(n,i,s,p,f)}r(p)},uU=(n,i,r,s,f)=>{const p=[];if(n.required||!n.required&&s.hasOwnProperty(n.field)){if(i==null&&!n.required)return r();tn.required(n,i,s,p,f,"array"),i!=null&&(tn.type(n,i,s,p,f),tn.range(n,i,s,p,f))}r(p)},fU=(n,i,r,s,f)=>{const p=[];if(n.required||!n.required&&s.hasOwnProperty(n.field)){if(ca(i)&&!n.required)return r();tn.required(n,i,s,p,f),i!==void 0&&tn.type(n,i,s,p,f)}r(p)},dU=(n,i,r,s,f)=>{const p=[];if(n.required||!n.required&&s.hasOwnProperty(n.field)){if(ca(i,"date")&&!n.required)return r();if(tn.required(n,i,s,p,f),!ca(i,"date")){let S;i instanceof Date?S=i:S=new Date(i),tn.type(n,S,s,p,f),S&&tn.range(n,S.getTime(),s,p,f)}}r(p)},hU="enum",mU=(n,i,r,s,f)=>{const p=[];if(n.required||!n.required&&s.hasOwnProperty(n.field)){if(ca(i)&&!n.required)return r();tn.required(n,i,s,p,f),i!==void 0&&tn[hU](n,i,s,p,f)}r(p)},pU=(n,i,r,s,f)=>{const p=[];if(n.required||!n.required&&s.hasOwnProperty(n.field)){if(ca(i)&&!n.required)return r();tn.required(n,i,s,p,f),i!==void 0&&(tn.type(n,i,s,p,f),tn.range(n,i,s,p,f))}r(p)},gU=(n,i,r,s,f)=>{const p=[];if(n.required||!n.required&&s.hasOwnProperty(n.field)){if(ca(i)&&!n.required)return r();tn.required(n,i,s,p,f),i!==void 0&&(tn.type(n,i,s,p,f),tn.range(n,i,s,p,f))}r(p)},yU=(n,i,r,s,f)=>{const p=[];if(n.required||!n.required&&s.hasOwnProperty(n.field)){if(ca(i)&&!n.required)return r();tn.required(n,i,s,p,f),i!==void 0&&tn.type(n,i,s,p,f)}r(p)},bU=(n,i,r,s,f)=>{const p=[];if(n.required||!n.required&&s.hasOwnProperty(n.field)){if(i===""&&(i=void 0),ca(i)&&!n.required)return r();tn.required(n,i,s,p,f),i!==void 0&&(tn.type(n,i,s,p,f),tn.range(n,i,s,p,f))}r(p)},vU=(n,i,r,s,f)=>{const p=[];if(n.required||!n.required&&s.hasOwnProperty(n.field)){if(ca(i)&&!n.required)return r();tn.required(n,i,s,p,f),i!==void 0&&tn.type(n,i,s,p,f)}r(p)},SU=(n,i,r,s,f)=>{const p=[];if(n.required||!n.required&&s.hasOwnProperty(n.field)){if(ca(i,"string")&&!n.required)return r();tn.required(n,i,s,p,f),ca(i,"string")||tn.pattern(n,i,s,p,f)}r(p)},xU=(n,i,r,s,f)=>{const p=[];if(n.required||!n.required&&s.hasOwnProperty(n.field)){if(ca(i)&&!n.required)return r();tn.required(n,i,s,p,f),ca(i)||tn.type(n,i,s,p,f)}r(p)},EU=(n,i,r,s,f)=>{const p=[],y=Array.isArray(i)?"array":typeof i;tn.required(n,i,s,p,f,y),r(p)},CU=(n,i,r,s,f)=>{const p=[];if(n.required||!n.required&&s.hasOwnProperty(n.field)){if(ca(i,"string")&&!n.required)return r();tn.required(n,i,s,p,f,"string"),ca(i,"string")||(tn.type(n,i,s,p,f),tn.range(n,i,s,p,f),tn.pattern(n,i,s,p,f),n.whitespace===!0&&tn.whitespace(n,i,s,p,f))}r(p)},JS=(n,i,r,s,f)=>{const p=n.type,y=[];if(n.required||!n.required&&s.hasOwnProperty(n.field)){if(ca(i,p)&&!n.required)return r();tn.required(n,i,s,y,f,p),ca(i,p)||tn.type(n,i,s,y,f)}r(y)},Uy={string:CU,method:yU,number:bU,boolean:fU,regexp:xU,integer:gU,float:pU,array:uU,object:vU,enum:mU,pattern:SU,date:dU,url:JS,hex:JS,email:JS,tel:JS,required:EU,any:cU},Hu=class Hu{constructor(i){we(this,"rules",null);we(this,"_messages",kT);this.define(i)}define(i){if(!i)throw new Error("Cannot configure a schema with no rules");if(typeof i!="object"||Array.isArray(i))throw new Error("Rules must be an object");this.rules={},Object.keys(i).forEach(r=>{const s=i[r];this.rules[r]=Array.isArray(s)?s:[s]})}messages(i){return i&&(this._messages=wz(FT(),i)),this._messages}validate(i,r={},s=()=>{}){let f=i,p=r,y=s;if(typeof p=="function"&&(y=p,p={}),!this.rules||Object.keys(this.rules).length===0)return y&&y(null,f),Promise.resolve(f);function S(O){let A=[],R={};function N(L){Array.isArray(L)?A=A.concat(...L):A.push(L)}for(let L=0;L<O.length;L++)N(O[L]);A.length?(R=IT(A),y(A,R)):y(null,f)}if(p.messages){let O=this.messages();O===kT&&(O=FT()),wz(O,p.messages),p.messages=O}else p.messages=this.messages();const T={};(p.keys||Object.keys(this.rules)).forEach(O=>{const A=this.rules[O];let R=f[O];A.forEach(N=>{let L=N;typeof L.transform=="function"&&(f===i&&(f={...f}),R=f[O]=L.transform(R),R!=null&&(L.type=L.type||(Array.isArray(R)?"array":typeof R))),typeof L=="function"?L={validator:L}:L={...L},L.validator=this.getValidationMethod(L),L.validator&&(L.field=O,L.fullField=L.fullField||O,L.type=this.getType(L),T[O]=T[O]||[],T[O].push({rule:L,value:R,source:f,field:O}))})});const j={};return nU(T,p,(O,A)=>{var U;const R=O.rule;let N=(R.type==="object"||R.type==="array")&&(typeof R.fields=="object"||typeof R.defaultField=="object");N=N&&(R.required||!R.required&&O.value),R.field=O.field;function L(B,k){return{...k,fullField:`${R.fullField}.${B}`,fullFields:R.fullFields?[...R.fullFields,B]:[B]}}function D(B=[]){let k=Array.isArray(B)?B:[B];!p.suppressWarning&&k.length&&Hu.warning("async-validator:",k),k.length&&R.message!==void 0&&R.message!==null&&(k=[].concat(R.message));let G=k.map(Oz(R,f));if(p.first&&G.length)return j[R.field]=1,A(G);if(!N)A(G);else{if(R.required&&!O.value)return R.message!==void 0?G=[].concat(R.message).map(Oz(R,f)):p.error&&(G=[p.error(R,ci(p.messages.required,R.field))]),A(G);let Y={};R.defaultField&&Object.keys(O.value).map(ue=>{Y[ue]=R.defaultField}),Y={...Y,...O.rule.fields};const P={};Object.keys(Y).forEach(ue=>{const V=Y[ue],F=Array.isArray(V)?V:[V];P[ue]=F.map(L.bind(null,ue))});const Q=new Hu(P);Q.messages(p.messages),O.rule.options&&(O.rule.options.messages=p.messages,O.rule.options.error=p.error),Q.validate(O.value,O.rule.options||p,ue=>{const V=[];G&&G.length&&V.push(...G),ue&&ue.length&&V.push(...ue),A(V.length?V:null)})}}let _;if(R.asyncValidator)_=R.asyncValidator(R,O.value,D,O.source,p);else if(R.validator){try{_=R.validator(R,O.value,D,O.source,p)}catch(B){(U=console.error)==null||U.call(console,B),p.suppressValidatorError||setTimeout(()=>{throw B},0),D(B.message)}_===!0?D():_===!1?D(typeof R.message=="function"?R.message(R.fullField||R.field):R.message||`${R.fullField||R.field} fails`):_ instanceof Array?D(_):_ instanceof Error&&D(_.message)}_&&_.then&&_.then(()=>D(),B=>D(B))},O=>{S(O)},f)}getType(i){if(i.type===void 0&&i.pattern instanceof RegExp&&(i.type="pattern"),typeof i.validator!="function"&&i.type&&!Uy.hasOwnProperty(i.type))throw new Error(ci("Unknown rule type %s",i.type));return i.type||"string"}getValidationMethod(i){if(typeof i.validator=="function")return i.validator;const r=Object.keys(i),s=r.indexOf("message");return s!==-1&&r.splice(s,1),r.length===1&&r[0]==="required"?Uy.required:Uy[this.getType(i)]||void 0}};we(Hu,"register",function(r,s){if(typeof s!="function")throw new Error("Cannot register a validator by type, validator is not a function");Uy[r]=s}),we(Hu,"warning",Ez),we(Hu,"messages",kT),we(Hu,"validators",Uy);let YT=Hu;const Lo="'${name}' is not a valid ${type}",Az={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:Lo,method:Lo,array:Lo,object:Lo,number:Lo,date:Lo,boolean:Lo,integer:Lo,float:Lo,regexp:Lo,email:Lo,tel:Lo,url:Lo,hex:Lo},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}"}},Mz=YT;function TU(n,i){return n.replace(/\\?\$\{\w+\}/g,r=>{if(r.startsWith("\\"))return r.slice(1);const s=r.slice(2,-1);return i[s]})}const zz="CODE_LOGIC_ERROR";async function XT(n,i,r,s,f){const p={...r};if(delete p.ruleIndex,Mz.warning=()=>{},p.validator){const A=p.validator;p.validator=(...R)=>{try{return A(...R)}catch(N){return console.error(N),Promise.reject(zz)}}}let y=null;p&&p.type==="array"&&p.defaultField&&(y=p.defaultField,delete p.defaultField);const S=new Mz({[n]:[p]}),T=Em(Az,s.validateMessages);S.messages(T);let C=[];try{await Promise.resolve(S.validate({[n]:i},{...s}))}catch(A){A.errors&&(C=A.errors.map(({message:R},N)=>{const L=R===zz?T.default:R;return z.isValidElement(L)?z.cloneElement(L,{key:`error_${N}`}):L}))}if(!C.length&&y&&Array.isArray(i)&&i.length>0)return(await Promise.all(i.map((R,N)=>XT(`${n}.${N}`,R,y,s,f)))).reduce((R,N)=>[...R,...N],[]);const j={...r,name:n,enum:(r.enum||[]).join(", "),...f};return C.map(A=>typeof A=="string"?TU(A,j):A)}function OU(n,i,r,s,f,p){const y=n.join("."),S=r.map((C,j)=>{const O=C.validator,A={...C,ruleIndex:j};return O&&(A.validator=(R,N,L)=>{let D=!1;const U=O(R,N,(...B)=>{Promise.resolve().then(()=>{ll(!D,"Your validator function has already return a promise. `callback` will be ignored."),D||L(...B)})});D=U&&typeof U.then=="function"&&typeof U.catch=="function",ll(D,"`callback` is deprecated. Please return a promise instead."),D&&U.then(()=>{L()}).catch(B=>{L(B||" ")})}),A}).sort(({warningOnly:C,ruleIndex:j},{warningOnly:O,ruleIndex:A})=>!!C==!!O?j-A:C?1:-1);let T;if(f===!0)T=new Promise(async(C,j)=>{for(let O=0;O<S.length;O+=1){const A=S[O],R=await XT(y,i,A,s,p);if(R.length){j([{errors:R,rule:A}]);return}}C([])});else{const C=S.map(j=>XT(y,i,j,s,p).then(O=>({errors:O,rule:j})));T=(f?jU(C):wU(C)).then(j=>Promise.reject(j))}return T.catch(C=>C),T}async function wU(n){return Promise.all(n).then(i=>[].concat(...i))}async function jU(n){let i=0;return new Promise(r=>{n.forEach(s=>{s.then(f=>{f.errors.length&&r([f]),i+=1,i===n.length&&r([])})})})}function Ml(n){return VT(n)}function Dz(n,i){let r={};return i.forEach(s=>{const f=Ii(n,s);r=ii(r,s,f)}),r}function Lm(n,i,r=!1){return n&&n.some(s=>KS(i,s,r))}function KS(n,i,r=!1){return!n||!i||!r&&n.length!==i.length?!1:i.every((s,f)=>n[f]===s)}function AU(n,i){if(n===i)return!0;if(!n&&i||n&&!i||!n||!i||typeof n!="object"||typeof i!="object")return!1;const r=Object.keys(n),s=Object.keys(i);return[...new Set([...r,...s])].every(p=>{const y=n[p],S=i[p];return typeof y=="function"&&typeof S=="function"?!0:y===S})}function MU(n,...i){const r=i[0];return r&&r.target&&typeof r.target=="object"&&n in r.target?r.target[n]:r}function Rz(n,i,r){const{length:s}=n;if(i<0||i>=s||r<0||r>=s)return n;const f=n[i],p=i-r;return p>0?[...n.slice(0,r),f,...n.slice(r,i),...n.slice(i+1,s)]:p<0?[...n.slice(0,i),...n.slice(i+1,r+1),f,...n.slice(r+1,s)]:n}const Nz=n=>{const i=new MessageChannel;i.port1.onmessage=n,i.port2.postMessage(null)};class zU{constructor(i){we(this,"namePathList",[]);we(this,"taskId",0);we(this,"watcherList",new Set);we(this,"form");this.form=i}register(i){return this.watcherList.add(i),()=>{this.watcherList.delete(i)}}notify(i){i.forEach(r=>{this.namePathList.every(s=>!KS(s,r))&&this.namePathList.push(r)}),this.doBatch()}doBatch(){this.taskId+=1;const i=this.taskId;Nz(()=>{if(i===this.taskId&&this.watcherList.size){const r=this.form.getForm(),s=r.getFieldsValue(),f=r.getFieldsValue(!0);this.watcherList.forEach(p=>{p(s,f,this.namePathList)}),this.namePathList=[]}})}}async function DU(){return new Promise(n=>{Nz(()=>{ki(()=>{n()})})})}function PT(){return PT=Object.assign?Object.assign.bind():function(n){for(var i=1;i<arguments.length;i++){var r=arguments[i];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(n[s]=r[s])}return n},PT.apply(this,arguments)}const Od=[],Ly=[];function QT(n,i,r,s,f,p){return typeof n=="function"?n(i,r,"source"in p?{source:p.source}:{}):s!==f}class _z extends z.PureComponent{constructor(r){super(r);we(this,"state",{resetCount:0});we(this,"cancelRegisterFunc",null);we(this,"mounted",!1);we(this,"touched",!1);we(this,"dirty",!1);we(this,"validatePromise");we(this,"prevValidating");we(this,"errors",Od);we(this,"warnings",Ly);we(this,"cancelRegister",()=>{const{preserve:r,isListField:s,name:f}=this.props;this.cancelRegisterFunc&&this.cancelRegisterFunc(s,r,Ml(f)),this.cancelRegisterFunc=null});we(this,"getNamePath",()=>{const{name:r,fieldContext:s}=this.props,{prefixName:f=[]}=s;return r!==void 0?[...f,...r]:[]});we(this,"getRules",()=>{const{rules:r=[],fieldContext:s}=this.props;return r.map(f=>typeof f=="function"?f(s):f)});we(this,"refresh",()=>{this.mounted&&this.setState(({resetCount:r})=>({resetCount:r+1}))});we(this,"metaCache",null);we(this,"triggerMetaEvent",r=>{const{onMetaChange:s}=this.props;if(s){const f={...this.getMeta(),destroy:r};lC(this.metaCache,f)||s(f),this.metaCache=f}else this.metaCache=null});we(this,"onStoreChange",(r,s,f)=>{const{shouldUpdate:p,dependencies:y=[],onReset:S}=this.props,{store:T}=f,C=this.getNamePath(),j=this.getValue(r),O=this.getValue(T),A=s&&Lm(s,C);switch(f.type==="valueUpdate"&&f.source==="external"&&!lC(j,O)&&(this.touched=!0,this.dirty=!0,this.validatePromise=null,this.errors=Od,this.warnings=Ly,this.triggerMetaEvent()),f.type){case"reset":if(!s||A){this.touched=!1,this.dirty=!1,this.validatePromise=void 0,this.errors=Od,this.warnings=Ly,this.triggerMetaEvent(),S==null||S(),this.refresh();return}break;case"remove":{if(p&&QT(p,r,T,j,O,f)){this.reRender();return}break}case"setField":{const{data:R}=f;if(A){"touched"in R&&(this.touched=R.touched),"validating"in R&&!("originRCField"in R)&&(this.validatePromise=R.validating?Promise.resolve([]):null),"errors"in R&&(this.errors=R.errors||Od),"warnings"in R&&(this.warnings=R.warnings||Ly),this.dirty=!0,this.triggerMetaEvent(),this.reRender();return}else if("value"in R&&Lm(s,C,!0)){this.reRender();return}if(p&&!C.length&&QT(p,r,T,j,O,f)){this.reRender();return}break}case"dependenciesUpdate":{if(y.map(Ml).some(N=>Lm(f.relatedFields,N))){this.reRender();return}break}default:if(A||(!y.length||C.length||p)&&QT(p,r,T,j,O,f)){this.reRender();return}break}p===!0&&this.reRender()});we(this,"validateRules",r=>{const s=this.getNamePath(),f=this.getValue(),{triggerName:p,validateOnly:y=!1,delayFrame:S}=r||{},T=Promise.resolve().then(async()=>{if(!this.mounted)return[];const{validateFirst:C=!1,messageVariables:j,validateDebounce:O}=this.props;S&&await DU();let A=this.getRules();if(p&&(A=A.filter(N=>N).filter(N=>{const{validateTrigger:L}=N;return L?VT(L).includes(p):!0})),O&&p&&(await new Promise(N=>{setTimeout(N,O)}),this.validatePromise!==T))return[];const R=OU(s,f,A,r,C,j);return R.catch(N=>N).then((N=Od)=>{var L;if(this.validatePromise===T){this.validatePromise=null;const D=[],_=[];(L=N.forEach)==null||L.call(N,({rule:{warningOnly:U},errors:B=Od})=>{U?_.push(...B):D.push(...B)}),this.errors=D,this.warnings=_,this.triggerMetaEvent(),this.reRender()}}),R});return y||(this.validatePromise=T,this.dirty=!0,this.errors=Od,this.warnings=Ly,this.triggerMetaEvent(),this.reRender()),T});we(this,"isFieldValidating",()=>!!this.validatePromise);we(this,"isFieldTouched",()=>this.touched);we(this,"isFieldDirty",()=>{if(this.dirty||this.props.initialValue!==void 0)return!0;const{fieldContext:r}=this.props,{getInitialValue:s}=r.getInternalHooks(Td);return s(this.getNamePath())!==void 0});we(this,"getErrors",()=>this.errors);we(this,"getWarnings",()=>this.warnings);we(this,"isListField",()=>this.props.isListField);we(this,"isList",()=>this.props.isList);we(this,"isPreserve",()=>this.props.preserve);we(this,"getMeta",()=>(this.prevValidating=this.isFieldValidating(),{touched:this.isFieldTouched(),validating:this.prevValidating,errors:this.errors,warnings:this.warnings,name:this.getNamePath(),validated:this.validatePromise===null}));we(this,"getOnlyChild",r=>{if(typeof r=="function"){const f=this.getMeta();return{...this.getOnlyChild(r(this.getControlled(),f,this.props.fieldContext)),isFunction:!0}}const s=hy(r);return s.length!==1||!z.isValidElement(s[0])?{child:s,isFunction:!1}:{child:s[0],isFunction:!1}});we(this,"getValue",r=>{const{getFieldsValue:s}=this.props.fieldContext,f=this.getNamePath();return Ii(r||s(!0),f)});we(this,"getControlled",(r={})=>{const{name:s,trigger:f="onChange",validateTrigger:p,getValueFromEvent:y,normalize:S,valuePropName:T="value",getValueProps:C,fieldContext:j}=this.props,O=p!==void 0?p:j.validateTrigger,A=this.getNamePath(),{getInternalHooks:R,getFieldsValue:N}=j,{dispatch:L}=R(Td),D=this.getValue(),_=C||(Y=>({[T]:Y})),U=r[f],B=s!==void 0?_(D):{};process.env.NODE_ENV!=="production"&&B&&Object.keys(B).forEach(Y=>{ll(typeof B[Y]!="function",`It's not recommended to generate dynamic function prop by \`getValueProps\`. Please pass it to child component directly (prop: ${Y})`)});const k={...r,...B};return k[f]=(...Y)=>{this.touched=!0,this.dirty=!0,this.triggerMetaEvent();let P;y?P=y(...Y):P=MU(T,...Y),S&&(P=S(P,D,N(!0))),P!==D&&L({type:"updateValue",namePath:A,value:P}),U&&U(...Y)},VT(O||[]).forEach(Y=>{const P=k[Y];k[Y]=(...Q)=>{P&&P(...Q);const{rules:ue}=this.props;ue&&ue.length&&L({type:"validateField",namePath:A,triggerName:Y})}}),k});if(r.fieldContext){const{getInternalHooks:s}=r.fieldContext,{initEntityValue:f}=s(Td);f(this)}}componentDidMount(){const{shouldUpdate:r,fieldContext:s}=this.props;if(this.mounted=!0,s){const{getInternalHooks:f}=s,{registerField:p}=f(Td);this.cancelRegisterFunc=p(this)}r===!0&&this.reRender()}componentWillUnmount(){this.cancelRegister(),this.triggerMetaEvent(!0),this.mounted=!1}reRender(){this.mounted&&this.forceUpdate()}render(){const{resetCount:r}=this.state,{children:s}=this.props,{child:f,isFunction:p}=this.getOnlyChild(s);let y;return p?y=f:z.isValidElement(f)?y=z.cloneElement(f,this.getControlled(f.props)):(ll(!f,"`children` of Field is not validate ReactElement."),y=f),z.createElement(z.Fragment,{key:r},y)}}we(_z,"contextType",Hm);function $z({name:n,...i}){const r=z.useContext(Hm),s=z.useContext(QS),f=n!==void 0?Ml(n):void 0,p=i.isListField??!!s;let y="keep";return p||(y=`_${(f||[]).join("_")}`),process.env.NODE_ENV!=="production"&&i.preserve===!1&&p&&f.length<=1&&ll(!1,"`preserve` should not apply on Form.List fields."),z.createElement(_z,PT({key:y,name:f,isListField:p},i,{fieldContext:r}))}function RU({name:n,initialValue:i,children:r,rules:s,validateTrigger:f,isListField:p}){const y=z.useContext(Hm),S=z.useContext(QS),C=z.useRef({keys:[],id:0}).current,j=z.useMemo(()=>[...Ml(y.prefixName)||[],...Ml(n)],[y.prefixName,n]),O=z.useMemo(()=>({...y,prefixName:j}),[y,j]),A=z.useMemo(()=>({getKey:N=>{const L=j.length,D=N[L];return[C.keys[D],N.slice(L+1)]}}),[C,j]);if(typeof r!="function")return ll(!1,"Form.List only accepts function as children."),null;const R=(N,L,{source:D})=>D==="internal"?!1:N!==L;return z.createElement(QS.Provider,{value:A},z.createElement(Hm.Provider,{value:O},z.createElement($z,{name:[],shouldUpdate:R,rules:s,validateTrigger:f,initialValue:i,isList:!0,isListField:p??!!S},({value:N=[],onChange:L},D)=>{const{getFieldValue:_}=y,U=()=>_(j||[])||[],B={add:(G,Y)=>{const P=U();Y>=0&&Y<=P.length?(C.keys=[...C.keys.slice(0,Y),C.id,...C.keys.slice(Y)],L([...P.slice(0,Y),G,...P.slice(Y)])):(process.env.NODE_ENV!=="production"&&(Y<0||Y>P.length)&&ll(!1,"The second parameter of the add function should be a valid positive number."),C.keys=[...C.keys,C.id],L([...P,G])),C.id+=1},remove:G=>{const Y=U(),P=new Set(Array.isArray(G)?G:[G]);P.size<=0||(C.keys=C.keys.filter((Q,ue)=>!P.has(ue)),L(Y.filter((Q,ue)=>!P.has(ue))))},move(G,Y){if(G===Y)return;const P=U();G<0||G>=P.length||Y<0||Y>=P.length||(C.keys=Rz(C.keys,G,Y),L(Rz(P,G,Y)))}};let k=N||[];return Array.isArray(k)||(k=[],process.env.NODE_ENV!=="production"&&ll(!1,`Current value of '${j.join(" > ")}' is not an array type.`)),r(k.map((G,Y)=>{let P=C.keys[Y];return P===void 0&&(C.keys[Y]=C.id,P=C.keys[Y],C.id+=1),{name:Y,key:P,isListField:!0}}),B,D)})))}function NU(n){let i=!1,r=n.length;const s=[];return n.length?new Promise((f,p)=>{n.forEach((y,S)=>{y.catch(T=>(i=!0,T)).then(T=>{r-=1,s[S]=T,!(r>0)&&(i&&p(s),f(s))})})}):Promise.resolve([])}const ZT="__@field_split__";function WS(n){return n.map(i=>`${typeof i}:${i}`).join(ZT)}class qm{constructor(){we(this,"kvs",new Map)}set(i,r){this.kvs.set(WS(i),r)}get(i){return this.kvs.get(WS(i))}getAsPrefix(i){const r=WS(i),s=r+ZT,f=[],p=this.kvs.get(r);return p!==void 0&&f.push(p),this.kvs.forEach((y,S)=>{S.startsWith(s)&&f.push(y)}),f}update(i,r){const s=this.get(i),f=r(s);f?this.set(i,f):this.delete(i)}delete(i){this.kvs.delete(WS(i))}map(i){return[...this.kvs.entries()].map(([r,s])=>{const f=r.split(ZT);return i({key:f.map(p=>{const[,y,S]=p.match(/^([^:]*):(.*)$/);return y==="number"?Number(S):S}),value:s})})}toJSON(){const i={};return this.map(({key:r,value:s})=>(i[r.join(".")]=s,null)),i}}class _U{constructor(i){we(this,"formHooked",!1);we(this,"forceRootUpdate");we(this,"subscribable",!0);we(this,"store",{});we(this,"fieldEntities",[]);we(this,"initialValues",{});we(this,"callbacks",{});we(this,"validateMessages",null);we(this,"preserve",null);we(this,"lastValidatePromise",null);we(this,"watcherCenter",new zU(this));we(this,"getForm",()=>({getFieldValue:this.getFieldValue,getFieldsValue:this.getFieldsValue,getFieldError:this.getFieldError,getFieldWarning:this.getFieldWarning,getFieldsError:this.getFieldsError,isFieldsTouched:this.isFieldsTouched,isFieldTouched:this.isFieldTouched,isFieldValidating:this.isFieldValidating,isFieldsValidating:this.isFieldsValidating,resetFields:this.resetFields,setFields:this.setFields,setFieldValue:this.setFieldValue,setFieldsValue:this.setFieldsValue,validateFields:this.validateFields,submit:this.submit,_init:!0,getInternalHooks:this.getInternalHooks}));we(this,"getInternalHooks",i=>i===Td?(this.formHooked=!0,{dispatch:this.dispatch,initEntityValue:this.initEntityValue,registerField:this.registerField,useSubscribe:this.useSubscribe,setInitialValues:this.setInitialValues,destroyForm:this.destroyForm,setCallbacks:this.setCallbacks,setValidateMessages:this.setValidateMessages,getFields:this.getFields,setPreserve:this.setPreserve,getInitialValue:this.getInitialValue,registerWatch:this.registerWatch}):(ll(!1,"`getInternalHooks` is internal usage. Should not call directly."),null));we(this,"useSubscribe",i=>{this.subscribable=i});we(this,"prevWithoutPreserves",null);we(this,"setInitialValues",(i,r)=>{var s;if(this.initialValues=i||{},r){let f=Em(i,this.store);(s=this.prevWithoutPreserves)==null||s.map(({key:p})=>{f=ii(f,p,Ii(i,p))}),this.prevWithoutPreserves=null,this.updateStore(f)}});we(this,"destroyForm",i=>{if(i)this.updateStore({});else{const r=new qm;this.getFieldEntities(!0).forEach(s=>{this.isMergedPreserve(s.isPreserve())||r.set(s.getNamePath(),!0)}),this.prevWithoutPreserves=r}});we(this,"getInitialValue",i=>{const r=Ii(this.initialValues,i);return i.length?Em(r):r});we(this,"setCallbacks",i=>{this.callbacks=i});we(this,"setValidateMessages",i=>{this.validateMessages=i});we(this,"setPreserve",i=>{this.preserve=i});we(this,"registerWatch",i=>this.watcherCenter.register(i));we(this,"notifyWatch",(i=[])=>{this.watcherCenter.notify(i)});we(this,"timeoutId",null);we(this,"warningUnhooked",()=>{process.env.NODE_ENV!=="production"&&!this.timeoutId&&typeof window<"u"&&(this.timeoutId=setTimeout(()=>{this.timeoutId=null,this.formHooked||ll(!1,"Instance created by `useForm` is not connected to any Form element. Forget to pass `form` prop?")}))});we(this,"updateStore",i=>{this.store=i});we(this,"getFieldEntities",(i=!1)=>i?this.fieldEntities.filter(r=>r.getNamePath().length):this.fieldEntities);we(this,"getFieldsMap",(i=!1)=>{const r=new qm;return this.getFieldEntities(i).forEach(s=>{const f=s.getNamePath();r.set(f,s)}),r});we(this,"getFieldEntitiesForNamePathList",(i,r=!1)=>{if(!i)return this.getFieldEntities(!0);const s=this.getFieldsMap(!0);return r?i.flatMap(f=>{const p=Ml(f),y=s.getAsPrefix(p);return y.length?y:[{INVALIDATE_NAME_PATH:p}]}):i.map(f=>{const p=Ml(f);return s.get(p)||{INVALIDATE_NAME_PATH:Ml(f)}})});we(this,"getFieldsValue",(i,r)=>{this.warningUnhooked();let s,f;if(i===!0||Array.isArray(i)?(s=i,f=r):i&&typeof i=="object"&&(f=i.filter),s===!0&&!f)return this.store;const p=this.getFieldEntitiesForNamePathList(Array.isArray(s)?s:null,!0),y=[],S=[];p.forEach(C=>{var O;const j=C.INVALIDATE_NAME_PATH||C.getNamePath();if((O=C.isList)!=null&&O.call(C)){S.push(j);return}if(!f)y.push(j);else{const A="getMeta"in C?C.getMeta():null;f(A)&&y.push(j)}});let T=Dz(this.store,y.map(Ml));return S.forEach(C=>{Ii(T,C)||(T=ii(T,C,[]))}),T});we(this,"getFieldValue",i=>{this.warningUnhooked();const r=Ml(i);return Ii(this.store,r)});we(this,"getFieldsError",i=>(this.warningUnhooked(),this.getFieldEntitiesForNamePathList(i).map((s,f)=>s&&!s.INVALIDATE_NAME_PATH?{name:s.getNamePath(),errors:s.getErrors(),warnings:s.getWarnings()}:{name:Ml(i[f]),errors:[],warnings:[]})));we(this,"getFieldError",i=>{this.warningUnhooked();const r=Ml(i);return this.getFieldsError([r])[0].errors});we(this,"getFieldWarning",i=>{this.warningUnhooked();const r=Ml(i);return this.getFieldsError([r])[0].warnings});we(this,"isFieldsTouched",(...i)=>{this.warningUnhooked();const[r,s]=i;let f,p=!1;i.length===0?f=null:i.length===1?Array.isArray(r)?(f=r.map(Ml),p=!1):(f=null,p=r):(f=r.map(Ml),p=s);const y=this.getFieldEntities(!0),S=O=>O.isFieldTouched();if(!f)return p?y.every(O=>S(O)||O.isList()):y.some(S);const T=new qm;f.forEach(O=>{T.set(O,[])}),y.forEach(O=>{const A=O.getNamePath();f.forEach(R=>{R.every((N,L)=>A[L]===N)&&T.update(R,N=>[...N,O])})});const C=O=>O.some(S),j=T.map(({value:O})=>O);return p?j.every(C):j.some(C)});we(this,"isFieldTouched",i=>(this.warningUnhooked(),this.isFieldsTouched([i])));we(this,"isFieldsValidating",i=>{this.warningUnhooked();const r=this.getFieldEntities();if(!i)return r.some(f=>f.isFieldValidating());const s=i.map(Ml);return r.some(f=>{const p=f.getNamePath();return Lm(s,p)&&f.isFieldValidating()})});we(this,"isFieldValidating",i=>(this.warningUnhooked(),this.isFieldsValidating([i])));we(this,"resetWithFieldInitialValue",(i={})=>{const r=new qm,s=this.getFieldEntities(!0);s.forEach(y=>{const{initialValue:S}=y.props,T=y.getNamePath();if(S!==void 0){const C=r.get(T)||new Set;C.add({entity:y,value:S}),r.set(T,C)}});const f=y=>{y.forEach(S=>{const{initialValue:T}=S.props;if(T!==void 0){const C=S.getNamePath();if(this.getInitialValue(C)!==void 0)ll(!1,`Form already set 'initialValues' with path '${C.join(".")}'. Field can not overwrite it.`);else{const O=r.get(C);if(O&&O.size>1)ll(!1,`Multiple Field with path '${C.join(".")}' set 'initialValue'. Can not decide which one to pick.`);else if(O){const A=this.getFieldValue(C);!S.isListField()&&(!i.skipExist||A===void 0)&&this.updateStore(ii(this.store,C,[...O][0].value))}}}})};let p;i.entities?p=i.entities:i.namePathList?(p=[],i.namePathList.forEach(y=>{const S=r.get(y);S&&p.push(...[...S].map(T=>T.entity))})):p=s,f(p)});we(this,"resetFields",i=>{this.warningUnhooked();const r=this.store;if(!i){this.updateStore(Em(this.initialValues)),this.resetWithFieldInitialValue(),this.notifyObservers(r,null,{type:"reset"}),this.notifyWatch();return}const s=i.map(Ml);s.forEach(f=>{const p=this.getInitialValue(f);this.updateStore(ii(this.store,f,p))}),this.resetWithFieldInitialValue({namePathList:s}),this.notifyObservers(r,s,{type:"reset"}),this.notifyWatch(s)});we(this,"setFields",i=>{this.warningUnhooked();const r=this.store,s=[];i.forEach(f=>{const{name:p,...y}=f,S=Ml(p);s.push(S),"value"in y&&this.updateStore(ii(this.store,S,y.value)),this.notifyObservers(r,[S],{type:"setField",data:f})}),this.notifyWatch(s)});we(this,"getFields",()=>this.getFieldEntities(!0).map(s=>{const f=s.getNamePath(),y={...s.getMeta(),name:f,value:this.getFieldValue(f)};return Object.defineProperty(y,"originRCField",{value:!0}),y}));we(this,"initEntityValue",i=>{const{initialValue:r}=i.props;if(r!==void 0){const s=i.getNamePath();Ii(this.store,s)===void 0&&this.updateStore(ii(this.store,s,r))}});we(this,"isMergedPreserve",i=>(i!==void 0?i:this.preserve)??!0);we(this,"registerField",i=>{this.fieldEntities.push(i);const r=i.getNamePath();if(this.notifyWatch([r]),i.props.initialValue!==void 0){const s=this.store;this.resetWithFieldInitialValue({entities:[i],skipExist:!0}),this.notifyObservers(s,[i.getNamePath()],{type:"valueUpdate",source:"internal"})}return(s,f,p=[])=>{if(this.fieldEntities=this.fieldEntities.filter(y=>y!==i),!this.isMergedPreserve(f)&&(!s||p.length>1)){const y=s?void 0:this.getInitialValue(r);if(r.length&&this.getFieldValue(r)!==y&&this.fieldEntities.every(S=>!KS(S.getNamePath(),r))){const S=this.store;this.updateStore(ii(S,r,y,!0)),this.notifyObservers(S,[r],{type:"remove"}),this.triggerDependenciesUpdate(S,r)}}this.notifyWatch([r])}});we(this,"dispatch",i=>{switch(i.type){case"updateValue":{const{namePath:r,value:s}=i;this.updateValue(r,s);break}case"validateField":{const{namePath:r,triggerName:s}=i;this.validateFields([r],{triggerName:s});break}}});we(this,"notifyObservers",(i,r,s)=>{if(this.subscribable){const f={...s,store:this.getFieldsValue(!0)};this.getFieldEntities().forEach(({onStoreChange:p})=>{p(i,r,f)})}else this.forceRootUpdate()});we(this,"triggerDependenciesUpdate",(i,r)=>{const s=this.getDependencyChildrenFields(r);return s.length&&this.validateFields(s,{delayFrame:!0}),this.notifyObservers(i,s,{type:"dependenciesUpdate",relatedFields:[r,...s]}),s});we(this,"updateValue",(i,r)=>{const s=Ml(i),f=this.store;this.updateStore(ii(this.store,s,r)),this.notifyObservers(f,[s],{type:"valueUpdate",source:"internal"}),this.notifyWatch([s]);const p=this.triggerDependenciesUpdate(f,s),{onValuesChange:y}=this.callbacks;if(y){const S=Dz(this.store,[s]),T=this.getFieldsValue(),C=ii(T,s,Ii(S,s));y(S,C)}this.triggerOnFieldsChange([s,...p])});we(this,"setFieldsValue",i=>{this.warningUnhooked();const r=this.store;if(i){const s=Em(this.store,i);this.updateStore(s)}this.notifyObservers(r,null,{type:"valueUpdate",source:"external"}),this.notifyWatch()});we(this,"setFieldValue",(i,r)=>{this.setFields([{name:i,value:r,errors:[],warnings:[],touched:!0}])});we(this,"getDependencyChildrenFields",i=>{const r=new Set,s=[],f=new qm;this.getFieldEntities().forEach(y=>{const{dependencies:S}=y.props;(S||[]).forEach(T=>{const C=Ml(T);f.update(C,(j=new Set)=>(j.add(y),j))})});const p=y=>{(f.get(y)||new Set).forEach(T=>{if(!r.has(T)){r.add(T);const C=T.getNamePath();T.isFieldDirty()&&C.length&&(s.push(C),p(C))}})};return p(i),s});we(this,"triggerOnFieldsChange",(i,r)=>{const{onFieldsChange:s}=this.callbacks;if(s){const f=this.getFields();if(r){const y=new qm;r.forEach(({name:S,errors:T})=>{y.set(S,T)}),f.forEach(S=>{S.errors=y.get(S.name)||S.errors})}const p=f.filter(({name:y})=>Lm(i,y));p.length&&s(p,f)}});we(this,"validateFields",(i,r)=>{this.warningUnhooked();let s,f;Array.isArray(i)||typeof i=="string"||typeof r=="string"?(s=i,f=r):f=i;const p=!!s,y=p?s.map(Ml):[],S=[...y],T=[],C=String(Date.now()),j=new Set,{recursive:O,dirty:A}=f||{};this.getFieldEntities(!0).forEach(D=>{const _=D.getNamePath();if(p||((!D.isList()||!y.some(U=>KS(U,_,!0)))&&S.push(_),y.push(_)),!(!D.props.rules||!D.props.rules.length)&&!(A&&!D.isFieldDirty())&&(j.add(_.join(C)),!p||Lm(y,_,O))){const U=D.validateRules({validateMessages:{...Az,...this.validateMessages},...f});T.push(U.then(()=>({name:_,errors:[],warnings:[]})).catch(B=>{var Y;const k=[],G=[];return(Y=B.forEach)==null||Y.call(B,({rule:{warningOnly:P},errors:Q})=>{P?G.push(...Q):k.push(...Q)}),k.length?Promise.reject({name:_,errors:k,warnings:G}):{name:_,errors:k,warnings:G}}))}});const R=NU(T);this.lastValidatePromise=R,R.catch(D=>D).then(D=>{const _=D.map(({name:U})=>U);this.notifyObservers(this.store,_,{type:"validateFinish"}),this.triggerOnFieldsChange(_,D)});const N=R.then(()=>this.lastValidatePromise===R?Promise.resolve(this.getFieldsValue(S)):Promise.reject([])).catch(D=>{var B,k;const _=D.filter(G=>G&&G.errors.length),U=(k=(B=_[0])==null?void 0:B.errors)==null?void 0:k[0];return Promise.reject({message:U,values:this.getFieldsValue(y),errorFields:_,outOfDate:this.lastValidatePromise!==R})});N.catch(D=>D);const L=y.filter(D=>j.has(D.join(C)));return this.triggerOnFieldsChange(L),N});we(this,"submit",()=>{this.warningUnhooked(),this.validateFields().then(i=>{const{onFinish:r}=this.callbacks;if(r)try{r(i)}catch(s){console.error(s)}}).catch(i=>{const{onFinishFailed:r}=this.callbacks;r&&r(i)})});this.forceRootUpdate=i}}function Bz(n){const i=z.useRef(null),[,r]=z.useState({});if(!i.current)if(n)i.current=n;else{const s=()=>{r({})},f=new _U(s);i.current=f.getForm()}return[i.current]}const JT=z.createContext({triggerFormChange:()=>{},triggerFormFinish:()=>{},registerForm:()=>{},unregisterForm:()=>{}}),$U=({validateMessages:n,onFormChange:i,onFormFinish:r,children:s})=>{const f=z.useContext(JT),p=z.useRef({});return z.createElement(JT.Provider,{value:{...f,validateMessages:{...f.validateMessages,...n},triggerFormChange:(y,S)=>{i&&i(y,{changedFields:S,forms:p.current}),f.triggerFormChange(y,S)},triggerFormFinish:(y,S)=>{r&&r(y,{values:S,forms:p.current}),f.triggerFormFinish(y,S)},registerForm:(y,S)=>{y&&(p.current={...p.current,[y]:S}),f.registerForm(y,S)},unregisterForm:y=>{const S={...p.current};delete S[y],p.current=S,f.unregisterForm(y)}}},s)};function KT(){return KT=Object.assign?Object.assign.bind():function(n){for(var i=1;i<arguments.length;i++){var r=arguments[i];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(n[s]=r[s])}return n},KT.apply(this,arguments)}const BU=(n,i)=>{const{name:r,initialValues:s,fields:f,form:p,preserve:y,children:S,component:T="form",validateMessages:C,validateTrigger:j="onChange",onValuesChange:O,onFieldsChange:A,onFinish:R,onFinishFailed:N,clearOnDestroy:L,...D}=n,_=z.useRef(null),U=z.useContext(JT),[B]=Bz(p),{useSubscribe:k,setInitialValues:G,setCallbacks:Y,setValidateMessages:P,setPreserve:Q,destroyForm:ue}=B.getInternalHooks(Td);z.useImperativeHandle(i,()=>({...B,nativeElement:_.current})),z.useEffect(()=>(U.registerForm(r,B),()=>{U.unregisterForm(r)}),[U,B,r]),P({...U.validateMessages,...C}),Y({onValuesChange:O,onFieldsChange:(X,...ie)=>{U.triggerFormChange(r,X),A&&A(X,...ie)},onFinish:X=>{U.triggerFormFinish(r,X),R&&R(X)},onFinishFailed:N}),Q(y);const V=z.useRef(null);G(s,!V.current),V.current||(V.current=!0),z.useEffect(()=>()=>ue(L),[]);let F;const te=typeof S=="function";if(te){const X=B.getFieldsValue(!0);F=S(X,B)}else F=S;k(!te);const ae=z.useRef(null);z.useEffect(()=>{AU(ae.current||[],f||[])||B.setFields(f||[]),ae.current=f},[f,B]);const ge=z.useMemo(()=>({...B,validateTrigger:j}),[B,j]),He=z.createElement(QS.Provider,{value:null},z.createElement(Hm.Provider,{value:ge},F));return T===!1?He:z.createElement(T,KT({},D,{ref:_,onSubmit:X=>{X.preventDefault(),X.stopPropagation(),B.submit()},onReset:X=>{var ie;X.preventDefault(),B.resetFields(),(ie=D.onReset)==null||ie.call(D,X)}}),He)};function WT(n){try{return JSON.stringify(n)}catch{return Math.random()}}function HU(...n){const[i,r={}]=n,s=JH(r)?{form:r}:r,f=s.form,[p,y]=H.useState(()=>typeof i=="function"?i({}):void 0),S=H.useMemo(()=>WT(p),[p]),T=H.useRef(S);T.current=S;const C=H.useContext(Hm),j=f||C,O=j&&j._init;process.env.NODE_ENV!=="production"&&ll(n.length===2?f?O:!0:O,"useWatch requires a form instance since it can not auto detect from context.");const{getFieldsValue:A,getInternalHooks:R}=j,{registerWatch:N}=R(Td),L=Cn((_,U)=>{const B=s.preserve?U??A(!0):_??A(),k=typeof i=="function"?i(B):Ii(B,Ml(i));WT(p)!==WT(k)&&y(k)}),D=typeof i=="function"?i:JSON.stringify(i);return H.useEffect(()=>{O&&L()},[O,D]),H.useEffect(()=>O?N((U,B)=>{L(U,B)}):void 0,[O]),p}const qy=z.forwardRef(BU);qy.FormProvider=$U,qy.Field=$z,qy.List=RU,qy.useForm=Bz,qy.useWatch=HU;const e2=z.createContext({});process.env.NODE_ENV!=="production"&&(e2.displayName="FormItemInputContext");const UU=({children:n,status:i,override:r})=>{const s=z.useContext(e2),f=z.useMemo(()=>{const p={...s};return r&&delete p.isFormItemInput,i&&(delete p.status,delete p.hasFeedback,delete p.feedbackIcon),p},[i,r,s]);return z.createElement(e2.Provider,{value:f},n)},LU=n=>{const{space:i,form:r,children:s}=n;if(!Cm(s))return null;let f=s;return r&&(f=H.createElement(UU,{override:!0,status:!0},f)),i&&(f=H.createElement(GB,null,f)),f},qU=()=>Bo()&&window.document.documentElement;function VU(n,i,r){return H.useMemo(()=>({...{trap:i??!0,focusTriggerAfterClose:r??!0},...n}),[n,i,r])}const ex=n=>{const{prefixCls:i,className:r,style:s,size:f,shape:p}=n;process.env.NODE_ENV!=="production"&&so("Skeleton").deprecated(f!=="default",'size="default"','size="medium"');const y=qe({[`${i}-lg`]:f==="large",[`${i}-sm`]:f==="small"}),S=qe({[`${i}-circle`]:p==="circle",[`${i}-square`]:p==="square",[`${i}-round`]:p==="round"}),T=z.useMemo(()=>Tm(f)?{width:f,height:f,lineHeight:`${f}px`}:{},[f]);return z.createElement("span",{className:qe(i,y,S,r),style:{...T,...s}})},FU=new Qa("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),t2=n=>({height:n,lineHeight:Dt(n)}),Bu=n=>({width:n,...t2(n)}),kU=n=>({background:n.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:FU,animationDuration:n.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),n2=(n,i)=>({width:i(n).mul(5).equal(),minWidth:i(n).mul(5).equal(),...t2(n)}),IU=n=>{const{skeletonAvatarCls:i,gradientFromColor:r,controlHeight:s,controlHeightLG:f,controlHeightSM:p}=n;return{[i]:{display:"inline-block",verticalAlign:"top",background:r,...Bu(s)},[`${i}${i}-circle`]:{borderRadius:"50%"},[`${i}${i}-lg`]:{...Bu(f)},[`${i}${i}-sm`]:{...Bu(p)}}},GU=n=>{const{controlHeight:i,borderRadiusSM:r,skeletonInputCls:s,controlHeightLG:f,controlHeightSM:p,gradientFromColor:y,calc:S}=n;return{[s]:{display:"inline-block",verticalAlign:"top",background:y,borderRadius:r,...n2(i,S)},[`${s}-lg`]:{...n2(f,S)},[`${s}-sm`]:{...n2(p,S)}}},Hz=n=>{const{gradientFromColor:i,borderRadiusSM:r,imageSizeBase:s,calc:f}=n;return{display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"middle",background:i,borderRadius:r,...Bu(f(s).mul(2).equal())}},YU=n=>({[n.skeletonNodeCls]:{...Hz(n)}}),XU=n=>{const{skeletonImageCls:i,imageSizeBase:r,calc:s}=n;return{[i]:{...Hz(n),[`${i}-path`]:{fill:"#bfbfbf"},[`${i}-svg`]:{...Bu(r),maxWidth:s(r).mul(4).equal(),maxHeight:s(r).mul(4).equal()},[`${i}-svg${i}-svg-circle`]:{borderRadius:"50%"}},[`${i}${i}-circle`]:{borderRadius:"50%"}}},l2=(n,i,r)=>{const{skeletonButtonCls:s}=n;return{[`${r}${s}-circle`]:{width:i,minWidth:i,borderRadius:"50%"},[`${r}${s}-round`]:{borderRadius:i}}},a2=(n,i)=>({width:i(n).mul(2).equal(),minWidth:i(n).mul(2).equal(),...t2(n)}),PU=n=>{const{borderRadiusSM:i,skeletonButtonCls:r,controlHeight:s,controlHeightLG:f,controlHeightSM:p,gradientFromColor:y,calc:S}=n;return{[r]:{display:"inline-block",verticalAlign:"top",background:y,borderRadius:i,width:S(s).mul(2).equal(),minWidth:S(s).mul(2).equal(),...a2(s,S)},...l2(n,s,r),[`${r}-lg`]:{...a2(f,S)},...l2(n,f,`${r}-lg`),[`${r}-sm`]:{...a2(p,S)},...l2(n,p,`${r}-sm`)}},QU=n=>{const{componentCls:i,skeletonAvatarCls:r,skeletonTitleCls:s,skeletonParagraphCls:f,skeletonButtonCls:p,skeletonInputCls:y,skeletonNodeCls:S,skeletonImageCls:T,controlHeight:C,controlHeightLG:j,controlHeightSM:O,gradientFromColor:A,padding:R,marginSM:N,borderRadius:L,titleHeight:D,blockRadius:_,paragraphLiHeight:U,controlHeightXS:B,paragraphMarginTop:k}=n;return{[i]:{display:"table",width:"100%",[`${i}-header`]:{display:"table-cell",paddingInlineEnd:R,verticalAlign:"top",[r]:{display:"inline-block",verticalAlign:"top",background:A,...Bu(C)},[`${r}-circle`]:{borderRadius:"50%"},[`${r}-lg`]:{...Bu(j)},[`${r}-sm`]:{...Bu(O)}},[`${i}-section`]:{display:"table-cell",width:"100%",verticalAlign:"top",[s]:{width:"100%",height:D,background:A,borderRadius:_,[`+ ${f}`]:{marginBlockStart:O}},[f]:{padding:0,"> li":{width:"100%",height:U,listStyle:"none",background:A,borderRadius:_,"+ li":{marginBlockStart:B}}},[`${f}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${i}-section`]:{[`${s}, ${f} > li`]:{borderRadius:L}}},[`${i}-with-avatar ${i}-section`]:{[s]:{marginBlockStart:N,[`+ ${f}`]:{marginBlockStart:k}}},[`${i}${i}-element`]:{display:"inline-block",width:"auto",...PU(n),...IU(n),...GU(n),...YU(n),...XU(n)},[`${i}${i}-block`]:{width:"100%",[p]:{width:"100%"},[y]:{width:"100%"}},[`${i}${i}-active`]:{[`
432
- ${s},
433
- ${f} > li,
434
- ${r},
435
- ${p},
436
- ${y},
437
- ${S},
438
- ${T}
439
- `]:{...kU(n)}}}},Vy=$u("Skeleton",n=>{const{componentCls:i,calc:r}=n,s=Vr(n,{skeletonAvatarCls:`${i}-avatar`,skeletonTitleCls:`${i}-title`,skeletonParagraphCls:`${i}-paragraph`,skeletonButtonCls:`${i}-button`,skeletonInputCls:`${i}-input`,skeletonNodeCls:`${i}-node`,skeletonImageCls:`${i}-image`,imageSizeBase:r(n.controlHeight).mul(1.5).equal(),borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${n.gradientFromColor} 25%, ${n.gradientToColor} 37%, ${n.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return QU(s)},n=>{const{colorFillContent:i,colorFill:r}=n,s=i,f=r;return{color:s,colorGradientEnd:f,gradientFromColor:s,gradientToColor:f,titleHeight:n.controlHeight/2,blockRadius:n.borderRadiusSM,paragraphMarginTop:n.marginLG+n.marginXXS,paragraphLiHeight:n.controlHeight/2}},{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),ZU=n=>{const{prefixCls:i,className:r,classNames:s,rootClassName:f,active:p,style:y,styles:S,shape:T="circle",size:C,...j}=n,{getPrefixCls:O}=z.useContext(vl),A=O("skeleton",i),[R,N]=Vy(A),L=YS(_=>C??_),D=qe(A,`${A}-element`,{[`${A}-active`]:p},s==null?void 0:s.root,r,f,R,N);return z.createElement("div",{className:D,style:S==null?void 0:S.root},z.createElement(ex,{prefixCls:`${A}-avatar`,className:s==null?void 0:s.content,style:{...S==null?void 0:S.content,...y},shape:T,size:L,...j}))},JU=n=>{const{prefixCls:i,className:r,rootClassName:s,classNames:f,active:p,style:y,styles:S,block:T=!1,size:C,...j}=n,{getPrefixCls:O}=z.useContext(vl),A=O("skeleton",i),[R,N]=Vy(A),L=YS(_=>C??_),D=qe(A,`${A}-element`,{[`${A}-active`]:p,[`${A}-block`]:T},f==null?void 0:f.root,r,s,R,N);return z.createElement("div",{className:D,style:S==null?void 0:S.root},z.createElement(ex,{prefixCls:`${A}-button`,className:f==null?void 0:f.content,style:{...S==null?void 0:S.content,...y},size:L,...j}))},Uz=n=>{const{prefixCls:i,className:r,classNames:s,rootClassName:f,internalClassName:p,style:y,styles:S,active:T,children:C}=n,{getPrefixCls:j}=z.useContext(vl),O=j("skeleton",i),[A,R]=Vy(O),N=qe(O,`${O}-element`,{[`${O}-active`]:T},A,s==null?void 0:s.root,r,f,R);return z.createElement("div",{className:N,style:S==null?void 0:S.root},z.createElement("div",{className:qe(s==null?void 0:s.content,p||`${O}-node`),style:{...S==null?void 0:S.content,...y}},C))},KU=n=>{const{getPrefixCls:i}=z.useContext(vl),r=i("skeleton",n.prefixCls);return z.createElement(Uz,{...n,internalClassName:`${r}-image`},z.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${r}-image-svg`},z.createElement("title",null,"Image placeholder"),z.createElement("path",{d:"M365.7 329.1q0 45.8-32 77.7t-77.7 32-77.7-32-32-77.7 32-77.6 77.7-32 77.7 32 32 77.6M951 548.6v256H146.3V694.9L329 512l91.5 91.4L713 311zm54.8-402.3H91.4q-7.4 0-12.8 5.4T73 164.6v694.8q0 7.5 5.5 12.9t12.8 5.4h914.3q7.5 0 12.9-5.4t5.4-12.9V164.6q0-7.5-5.4-12.9t-12.9-5.4m91.4 18.3v694.8q0 37.8-26.8 64.6t-64.6 26.9H91.4q-37.7 0-64.6-26.9T0 859.4V164.6q0-37.8 26.8-64.6T91.4 73h914.3q37.8 0 64.6 26.9t26.8 64.6",className:`${r}-image-path`})))},WU=n=>{const{prefixCls:i,className:r,classNames:s,rootClassName:f,active:p,block:y,style:S,styles:T,size:C,...j}=n,{getPrefixCls:O}=z.useContext(vl),A=O("skeleton",i),[R,N]=Vy(A),L=YS(_=>C??_),D=qe(A,`${A}-element`,{[`${A}-active`]:p,[`${A}-block`]:y},s==null?void 0:s.root,r,f,R,N);return z.createElement("div",{className:D,style:T==null?void 0:T.root},z.createElement(ex,{prefixCls:`${A}-input`,className:s==null?void 0:s.content,style:{...T==null?void 0:T.content,...S},size:L,...j}))},eL=(n,i)=>{const{width:r,rows:s=2}=i;if(Array.isArray(r))return r[n];if(s-1===n)return r},tL=n=>{const{prefixCls:i,className:r,style:s,rows:f=0}=n,p=Array.from({length:f}).map((y,S)=>z.createElement("li",{key:S,style:{width:eL(S,n)}}));return z.createElement("ul",{className:qe(i,r),style:s},p)},nL=({prefixCls:n,className:i,width:r,style:s})=>z.createElement("h3",{className:qe(n,i),style:{width:r,...s}});function o2(n){return co(n)?n:{}}function lL(n,i){return n&&!i?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function aL(n,i){return!n&&i?{width:"38%"}:n&&i?{width:"50%"}:{}}function oL(n,i){const r={};return(!n||!i)&&(r.width="61%"),!n&&i?r.rows=3:r.rows=2,r}const wd=n=>{const{prefixCls:i,loading:r,className:s,rootClassName:f,classNames:p,style:y,styles:S,children:T,avatar:C=!1,title:j=!0,paragraph:O=!0,active:A,round:R}=n,{getPrefixCls:N,direction:L,className:D,style:_,classNames:U,styles:B}=Mu("skeleton"),k=N("skeleton",i),[G,Y]=Vy(k),P={...n,avatar:C,title:j,paragraph:O},[Q,ue]=gy([U,p],[B,S],{props:P});if(r||!("loading"in n)){const V=!!C,F=!!j,te=!!O;let ae;if(V){const X={className:Q.avatar,prefixCls:`${k}-avatar`,...lL(F,te),...o2(C),style:ue.avatar};ae=z.createElement("div",{className:qe(Q.header,`${k}-header`),style:ue.header},z.createElement(ex,{...X}))}let ge;if(F||te){let X;if(F){const me={className:Q.title,prefixCls:`${k}-title`,...aL(V,te),...o2(j),style:ue.title};X=z.createElement(nL,{...me})}let ie;if(te){const me={className:Q.paragraph,prefixCls:`${k}-paragraph`,...oL(V,F),...o2(O),style:ue.paragraph};ie=z.createElement(tL,{...me})}ge=z.createElement("div",{className:qe(Q.section,`${k}-section`),style:ue.section},X,ie)}const He=qe(k,{[`${k}-with-avatar`]:V,[`${k}-active`]:A,[`${k}-rtl`]:L==="rtl",[`${k}-round`]:R},Q.root,D,s,f,G,Y);return z.createElement("div",{className:He,style:{...ue.root,..._,...y}},ae,ge)}return T??null};wd.Button=JU,wd.Avatar=ZU,wd.Input=WU,wd.Image=KU,wd.Node=Uz,process.env.NODE_ENV!=="production"&&(wd.displayName="Skeleton");function Lz(){}const iL=z.createContext({add:Lz,remove:Lz});function rL(n){const i=z.useContext(iL),r=z.useRef(null);return Cn(f=>{if(f){const p=n?f.querySelector(n):f;p&&(i.add(p),r.current=p)}else i.remove(r.current)})}const qz=()=>{const{cancelButtonProps:n,cancelTextLocale:i,onCancel:r}=H.useContext($y);return H.createElement(Bm,{onClick:r,...n},i)},Vz=()=>{const{confirmLoading:n,okButtonProps:i,okType:r,okTextLocale:s,onOk:f}=H.useContext($y);return H.createElement(Bm,{...ZM(r),loading:n,onClick:f,...i},s)};function sL(n,i){return H.createElement("span",{className:`${n}-close-x`},i||H.createElement(_m,{className:`${n}-close-icon`}))}const cL=n=>{const{okText:i,okType:r="primary",cancelText:s,confirmLoading:f,onOk:p,onCancel:y,okButtonProps:S,cancelButtonProps:T,footer:C}=n,[j]=gS("Modal",H5()),O=i||(j==null?void 0:j.okText),A=s||(j==null?void 0:j.cancelText),R=H.useMemo(()=>({confirmLoading:f,okButtonProps:S,cancelButtonProps:T,okTextLocale:O,cancelTextLocale:A,okType:r,onOk:p,onCancel:y}),[f,S,T,O,A,r,p,y]);let N;return ri(C)||typeof C>"u"?(N=H.createElement(H.Fragment,null,H.createElement(qz,null),H.createElement(Vz,null)),ri(C)&&(N=C(N,{OkBtn:Vz,CancelBtn:qz})),N=H.createElement(hz,{value:R},N)):N=C,H.createElement(KA,{disabled:!1},N)},uL=n=>{const{componentCls:i}=n;return{[i]:{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"}}}},fL=n=>{const{componentCls:i}=n;return{[i]:{position:"relative",maxWidth:"100%",minHeight:1}}},dL=(n,i)=>{const{componentCls:r,gridColumns:s,antCls:f}=n,[p,y]=Ed(f,"grid"),[,S]=Ed(f,"col"),T={};for(let C=s;C>=0;C--)C===0?(T[`${r}${i}-${C}`]={display:"none"},T[`${r}-push-${C}`]={insetInlineStart:"auto"},T[`${r}-pull-${C}`]={insetInlineEnd:"auto"},T[`${r}${i}-push-${C}`]={insetInlineStart:"auto"},T[`${r}${i}-pull-${C}`]={insetInlineEnd:"auto"},T[`${r}${i}-offset-${C}`]={marginInlineStart:0},T[`${r}${i}-order-${C}`]={order:0}):(T[`${r}${i}-${C}`]=[{[p("display")]:"block",display:"block"},{display:y("display"),flex:`0 0 ${C/s*100}%`,maxWidth:`${C/s*100}%`}],T[`${r}${i}-push-${C}`]={insetInlineStart:`${C/s*100}%`},T[`${r}${i}-pull-${C}`]={insetInlineEnd:`${C/s*100}%`},T[`${r}${i}-offset-${C}`]={marginInlineStart:`${C/s*100}%`},T[`${r}${i}-order-${C}`]={order:C});return T[`${r}${i}-flex`]={flex:S(`${i.replace(/-/,"")}-flex`)},T},i2=(n,i)=>dL(n,i),hL=(n,i,r)=>({[`@media (min-width: ${Dt(i)})`]:{...i2(n,r)}}),mL=()=>({}),pL=()=>({});$u("Grid",uL,mL);const Fz=n=>({xs:n.screenXSMin,sm:n.screenSMMin,md:n.screenMDMin,lg:n.screenLGMin,xl:n.screenXLMin,xxl:n.screenXXLMin,xxxl:n.screenXXXLMin});$u("Grid",n=>{const i=Vr(n,{gridColumns:24}),r=Fz(i);return delete r.xs,[fL(i),i2(i,""),i2(i,"-xs"),Object.keys(r).map(s=>hL(i,r[s],`-${s}`)).reduce((s,f)=>({...s,...f}),{})]},pL);function kz(n){return{position:n,inset:0}}const gL=n=>{const{componentCls:i,antCls:r}=n;return[{[`${i}-root`]:{[`${i}${r}-zoom-enter, ${i}${r}-zoom-appear`]:{transform:"none",opacity:0,animationDuration:n.motionDurationSlow,userSelect:"none"},[`${i}${r}-zoom-leave ${i}-container`]:{pointerEvents:"none"},[`${i}-mask`]:{...kz("fixed"),zIndex:n.zIndexPopupBase,height:"100%",backgroundColor:n.colorBgMask,pointerEvents:"none",[`&${i}-mask-blur`]:{backdropFilter:"blur(4px)"},[`${i}-hidden`]:{display:"none"}},[`${i}-wrap`]:{...kz("fixed"),zIndex:n.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"}}},{[`${i}-root`]:KB(n)}]},yL=n=>{const{componentCls:i,motionDurationMid:r}=n;return[{[`${i}-root`]:{[`${i}-wrap-rtl`]:{direction:"rtl"},[`${i}-centered`]:{textAlign:"center","&::before":{display:"inline-block",width:0,height:"100%",verticalAlign:"middle",content:'""'},[i]:{top:0,display:"inline-block",paddingBottom:0,textAlign:"start",verticalAlign:"middle"}},[`@media (max-width: ${n.screenSMMax}px)`]:{[i]:{maxWidth:"calc(100vw - 16px)",margin:`${Dt(n.marginXS)} auto`},[`${i}-centered`]:{[i]:{flex:1}}}}},{[i]:{...dM(n),pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${Dt(n.calc(n.margin).mul(2).equal())})`,margin:"0 auto","&:focus-visible":{borderRadius:n.borderRadiusLG,...mM(n)},[`${i}-title`]:{margin:0,color:n.titleColor,fontWeight:n.fontWeightStrong,fontSize:n.titleFontSize,lineHeight:n.titleLineHeight,wordWrap:"break-word"},[`${i}-container`]:{position:"relative",backgroundColor:n.contentBg,backgroundClip:"padding-box",border:0,borderRadius:n.borderRadiusLG,boxShadow:n.boxShadow,pointerEvents:"auto",padding:n.contentPadding},[`${i}-close`]:{position:"absolute",top:n.calc(n.modalHeaderHeight).sub(n.modalCloseBtnSize).div(2).equal(),insetInlineEnd:n.calc(n.modalHeaderHeight).sub(n.modalCloseBtnSize).div(2).equal(),zIndex:n.calc(n.zIndexPopupBase).add(10).equal(),padding:0,color:n.modalCloseIconColor,fontWeight:n.fontWeightStrong,lineHeight:1,textDecoration:"none",background:"transparent",borderRadius:n.borderRadiusSM,width:n.modalCloseBtnSize,height:n.modalCloseBtnSize,border:0,outline:0,cursor:"pointer",transition:["color","background-color"].map(s=>`${s} ${r}`).join(", "),"&-x":{display:"flex",fontSize:n.fontSizeLG,fontStyle:"normal",lineHeight:Dt(n.modalCloseBtnSize),justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:disabled":{pointerEvents:"none"},"&:hover":{color:n.modalCloseIconHoverColor,backgroundColor:n.colorBgTextHover,textDecoration:"none"},"&:active":{backgroundColor:n.colorBgTextActive},...MS(n)},[`${i}-header`]:{color:n.colorText,background:n.headerBg,borderRadius:`${Dt(n.borderRadiusLG)} ${Dt(n.borderRadiusLG)} 0 0`,marginBottom:n.headerMarginBottom,padding:n.headerPadding,borderBottom:n.headerBorderBottom},[`${i}-body`]:{fontSize:n.fontSize,lineHeight:n.lineHeight,wordWrap:"break-word",padding:n.bodyPadding,[`${i}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",margin:`${Dt(n.margin)} auto`}},[`${i}-footer`]:{display:"flex",justifyContent:"end",alignItems:"center",textAlign:"end",background:n.footerBg,marginTop:n.footerMarginTop,padding:n.footerPadding,borderTop:n.footerBorderTop,borderRadius:n.footerBorderRadius,[`> ${n.antCls}-btn + ${n.antCls}-btn`]:{marginInlineStart:n.marginXS}},[`${i}-open`]:{overflow:"hidden"}}},{[`${i}-pure-panel`]:{top:"auto",padding:0,display:"flex",flexDirection:"column",[`${i}-container,
440
- ${i}-body,
441
- ${i}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${i}-confirm-body`]:{marginBottom:"auto"}}}]},bL=n=>{const{componentCls:i}=n;return{[`${i}-root`]:{[`${i}-wrap-rtl`]:{direction:"rtl",[`${i}-confirm-body`]:{direction:"rtl"}}}}},vL=n=>{const{componentCls:i}=n,r=Fz(n),s={...r};delete s.xs;const f=`--${i.replace(".","")}-`,p=Object.keys(s).map(y=>({[`@media (min-width: ${Dt(s[y])})`]:{width:`var(${f}${y}-width)`}}));return{[`${i}-root`]:{[i]:[].concat(xs(Object.keys(r).map((y,S)=>{const T=Object.keys(r)[S-1];return T?{[`${f}${y}-width`]:`var(${f}${T}-width)`}:null})),[{width:`var(${f}xs-width)`}],xs(p))}}},Iz=n=>{const i=n.padding,r=n.fontSizeHeading5,s=n.lineHeightHeading5;return Vr(n,{modalHeaderHeight:n.calc(n.calc(s).mul(r).equal()).add(n.calc(i).mul(2).equal()).equal(),modalFooterBorderColorSplit:n.colorSplit,modalFooterBorderStyle:n.lineType,modalFooterBorderWidth:n.lineWidth,modalCloseIconColor:n.colorIcon,modalCloseIconHoverColor:n.colorIconHover,modalCloseBtnSize:n.controlHeight,modalConfirmIconSize:n.fontHeight,modalTitleHeight:n.calc(n.titleFontSize).mul(n.titleLineHeight).equal()})},Gz=n=>({footerBg:"transparent",headerBg:"transparent",titleLineHeight:n.lineHeightHeading5,titleFontSize:n.fontSizeHeading5,contentBg:n.colorBgElevated,titleColor:n.colorTextHeading,contentPadding:n.wireframe?0:`${Dt(n.paddingMD)} ${Dt(n.paddingContentHorizontalLG)}`,headerPadding:n.wireframe?`${Dt(n.padding)} ${Dt(n.paddingLG)}`:0,headerBorderBottom:n.wireframe?`${Dt(n.lineWidth)} ${n.lineType} ${n.colorSplit}`:"none",headerMarginBottom:n.wireframe?0:n.marginXS,bodyPadding:n.wireframe?n.paddingLG:0,footerPadding:n.wireframe?`${Dt(n.paddingXS)} ${Dt(n.padding)}`:0,footerBorderTop:n.wireframe?`${Dt(n.lineWidth)} ${n.lineType} ${n.colorSplit}`:"none",footerBorderRadius:n.wireframe?`0 0 ${Dt(n.borderRadiusLG)} ${Dt(n.borderRadiusLG)}`:0,footerMarginTop:n.wireframe?0:n.marginSM,confirmBodyPadding:n.wireframe?`${Dt(n.padding*2)} ${Dt(n.padding*2)} ${Dt(n.paddingLG)}`:0,confirmIconMarginInlineEnd:n.wireframe?n.margin:n.marginSM,confirmBtnsMarginTop:n.wireframe?n.marginLG:n.marginSM,mask:!0}),SL=$u("Modal",n=>{const i=Iz(n);return[yL(i),bL(i),gL(i),fH(i,"zoom"),vL(i)]},Gz,{unitless:{titleLineHeight:!0}});let r2;const xL=n=>{r2={x:n.pageX,y:n.pageY},setTimeout(()=>{r2=null},100)};qU()&&document.documentElement.addEventListener("click",xL,!0);const EL=n=>{const{prefixCls:i,className:r,rootClassName:s,open:f,wrapClassName:p,centered:y,getContainer:S,style:T,width:C=520,footer:j,classNames:O,styles:A,children:R,loading:N,confirmLoading:L,zIndex:D,mousePosition:_,onOk:U,onCancel:B,okButtonProps:k,cancelButtonProps:G,destroyOnHidden:Y,destroyOnClose:P,panelRef:Q=null,closable:ue,mask:V,modalRender:F,maskClosable:te,focusTriggerAfterClose:ae,focusable:ge,...He}=n,{getPopupContainer:X,getPrefixCls:ie,direction:me,className:fe,style:ne,classNames:ee,styles:Se,centered:Ae,cancelButtonProps:De,okButtonProps:Ue,mask:Ve,focusable:Pe}=Mu("modal"),{modal:Ie}=z.useContext(vl),[nt,ut]=z.useMemo(()=>typeof ue=="boolean"?[void 0,void 0]:[ue==null?void 0:ue.afterClose,ue==null?void 0:ue.onClose],[ue]),ze=ie("modal",i),Ye=ie(),[Rt,Le,ft]=J$(V,Ve,ze,te),$e=VU({...Pe,...ge},Rt,ae),Xe=Jt=>{L||(B==null||B(Jt),ut==null||ut())},dt=Jt=>{U==null||U(Jt),ut==null||ut()};if(process.env.NODE_ENV!=="production"){const Jt=so("Modal");[["bodyStyle","styles.body"],["maskStyle","styles.mask"],["destroyOnClose","destroyOnHidden"],["autoFocusButton","focusable.autoFocusButton"],["focusTriggerAfterClose","focusable.focusTriggerAfterClose"],["maskClosable","mask.closable"]].forEach(([Hn,on])=>{Jt.deprecated(!(Hn in n),Hn,on)})}const Ct=vT(ze),[pe,Be]=SL(ze,Ct),Ke=qe(p,{[`${ze}-centered`]:y??Ae,[`${ze}-wrap-rtl`]:me==="rtl"}),rt=j!==null&&!N?z.createElement(cL,{...n,okButtonProps:{...Ue,...k},onOk:dt,cancelButtonProps:{...De,...G},onCancel:Xe}):null,[wt,yt,Rn,Oe]=Z$(kS(n),kS(Ie),{closable:!0,closeIcon:z.createElement(_m,{className:`${ze}-close-icon`}),closeIconRender:Jt=>sL(ze,Jt)}),Fe=wt?{disabled:Rn,closeIcon:yt,afterClose:nt,...Oe}:!1,Ht=F?Jt=>z.createElement("div",{className:`${ze}-render`},F(Jt)):void 0,it=`.${ze}-${F?"render":"container"}`,Sl=rL(it),Pt=ym(Q,Sl),[ul,Bn]=nB("Modal",D),En={...n,width:C,panelRef:Q,focusTriggerAfterClose:$e.focusTriggerAfterClose,focusable:$e,mask:Rt,maskClosable:ft,zIndex:ul},[jt,nn]=gy([ee,O,Le],[Se,A],{props:En}),[At,Nn]=z.useMemo(()=>co(C)?[void 0,C]:[C,void 0],[C]),gn=z.useMemo(()=>{const Jt={};return Nn&&Object.keys(Nn).forEach(Hn=>{const on=Nn[Hn];Es(on)&&(Jt[`--${ze}-${Hn}-width`]=Tm(on)?`${on}px`:on)}),Jt},[ze,Nn]);return z.createElement(LU,{form:!0,space:!0},z.createElement(MT.Provider,{value:Bn},z.createElement(xz,{width:At,...He,zIndex:ul,getContainer:S===void 0?X:S,prefixCls:ze,rootClassName:qe(pe,s,Be,Ct,jt.root),rootStyle:nn.root,footer:rt,visible:f,mousePosition:_??r2,onClose:Xe,closable:Fe,closeIcon:yt,transitionName:GS(Ye,"zoom",n.transitionName),maskTransitionName:GS(Ye,"fade",n.maskTransitionName),mask:Rt,maskClosable:ft,className:qe(pe,r,fe),style:{...ne,...T,...gn},classNames:{...jt,wrapper:qe(jt.wrapper,Ke)},styles:nn,panelRef:Pt,destroyOnHidden:Y??P,modalRender:Ht,focusTriggerAfterClose:$e.focusTriggerAfterClose,focusTrap:$e.trap},N?z.createElement(wd,{active:!0,title:!1,paragraph:{rows:4},className:`${ze}-body-skeleton`}):R)))},CL=n=>{const{componentCls:i,titleFontSize:r,titleLineHeight:s,modalConfirmIconSize:f,fontSize:p,lineHeight:y,modalTitleHeight:S,fontHeight:T,confirmBodyPadding:C}=n,j=`${i}-confirm`;return{[j]:{"&-rtl":{direction:"rtl"},[`${n.antCls}-modal-header`]:{display:"none"},[`${j}-body-wrapper`]:{...l$()},[`&${i} ${i}-body`]:{padding:C},[`${j}-body`]:{display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${n.iconCls}`]:{flex:"none",fontSize:f,marginInlineEnd:n.confirmIconMarginInlineEnd,marginTop:n.calc(n.calc(T).sub(f).equal()).div(2).equal()},[`&-has-title > ${n.iconCls}`]:{marginTop:n.calc(n.calc(S).sub(f).equal()).div(2).equal()}},[`${j}-paragraph`]:{display:"flex",flexDirection:"column",flex:"auto",rowGap:n.marginXS,maxWidth:`calc(100% - ${Dt(n.marginSM)})`},[`${j}-body-no-icon ${j}-paragraph`]:{maxWidth:"100%"},[`${n.iconCls} + ${j}-paragraph`]:{maxWidth:`calc(100% - ${Dt(n.calc(n.modalConfirmIconSize).add(n.marginSM).equal())})`},[`${j}-title`]:{color:n.colorTextHeading,fontWeight:n.fontWeightStrong,fontSize:r,lineHeight:s},[`${j}-container`]:{color:n.colorText,fontSize:p,lineHeight:y},[`${j}-btns`]:{textAlign:"end",marginTop:n.confirmBtnsMarginTop,[`${n.antCls}-btn + ${n.antCls}-btn`]:{marginBottom:0,marginInlineStart:n.marginXS}}},[`${j}-error ${j}-body > ${n.iconCls}`]:{color:n.colorError},[`${j}-warning ${j}-body > ${n.iconCls},
442
- ${j}-confirm ${j}-body > ${n.iconCls}`]:{color:n.colorWarning},[`${j}-info ${j}-body > ${n.iconCls}`]:{color:n.colorInfo},[`${j}-success ${j}-body > ${n.iconCls}`]:{color:n.colorSuccess}}},TL=zS(["Modal","confirm"],n=>{const i=Iz(n);return CL(i)},Gz,{order:-1e3}),OL=n=>{const{prefixCls:i,icon:r,okText:s,cancelText:f,confirmPrefixCls:p,type:y,okCancel:S,footer:T,locale:C,autoFocusButton:j,focusable:O,...A}=n,{infoIcon:R,successIcon:N,errorIcon:L,warningIcon:D}=Mu("modal");if(process.env.NODE_ENV!=="production"){const He=so("Modal");process.env.NODE_ENV!=="production"&&He(!(typeof r=="string"&&r.length>2),"breaking",`\`icon\` is using ReactNode instead of string naming in v4. Please check \`${r}\` at https://ant.design/components/icon`)}let _=r;if(r===void 0)switch(y){case"info":_=VS(R,z.createElement(US,null));break;case"success":_=VS(N,z.createElement(RS,null));break;case"error":_=VS(L,z.createElement(_S,null));break;default:_=VS(D,z.createElement(BS,null))}const U=S??y==="confirm",B=z.useMemo(()=>{const He=(O==null?void 0:O.autoFocusButton)||j;return He||He===null?He:"ok"},[j,O==null?void 0:O.autoFocusButton]),[k]=gS("Modal"),G=C||k,Y=s||(U?G==null?void 0:G.okText:G==null?void 0:G.justOkText),P=f||(G==null?void 0:G.cancelText),{closable:Q}=A,{onClose:ue}=co(Q)?Q:{},V=z.useMemo(()=>({autoFocusButton:B,cancelTextLocale:P,okTextLocale:Y,mergedOkCancel:U,onClose:ue,...A}),[B,P,Y,U,ue,A]),F=z.createElement(z.Fragment,null,z.createElement(mz,null),z.createElement(pz,null)),te=Cm(n.title),ae=Cm(_),ge=`${p}-body`;return z.createElement("div",{className:`${p}-body-wrapper`},z.createElement("div",{className:qe(ge,{[`${ge}-has-title`]:te,[`${ge}-no-icon`]:!ae})},_,z.createElement("div",{className:`${p}-paragraph`},te&&z.createElement("span",{className:`${p}-title`},n.title),z.createElement("div",{className:`${p}-content`},n.content))),T===void 0||ri(T)?z.createElement(hz,{value:V},z.createElement("div",{className:`${p}-btns`},ri(T)?T(F,{OkBtn:pz,CancelBtn:mz}):F)):T,z.createElement(TL,{prefixCls:i}))},Yz=n=>{const{close:i,zIndex:r,maskStyle:s,direction:f,prefixCls:p,wrapClassName:y,rootPrefixCls:S,bodyStyle:T,closable:C=!1,onConfirm:j,styles:O,title:A,mask:R,maskClosable:N,okButtonProps:L,cancelButtonProps:D}=n,{cancelButtonProps:_,okButtonProps:U}=Mu("modal");if(process.env.NODE_ENV!=="production"){const V=so("Modal");[["bodyStyle","styles.body"],["maskStyle","styles.mask"]].forEach(([F,te])=>{V.deprecated(!(F in n),F,te)})}const B=`${p}-confirm`,k=n.width||416,G=n.style||{},Y=qe(B,`${B}-${n.type}`,{[`${B}-rtl`]:f==="rtl"},n.className),P=z.useMemo(()=>{const V=AT(R,N);return V.closable??(V.closable=!1),V},[R,N]),[,Q]=xd(),ue=z.useMemo(()=>r!==void 0?r:Q.zIndexPopupBase+IS,[r,Q]);return z.createElement(EL,{...n,className:Y,wrapClassName:qe({[`${B}-centered`]:!!n.centered},y),onCancel:()=>{i==null||i({triggerCancel:!0}),j==null||j(!1)},title:A,footer:null,transitionName:GS(S||"","zoom",n.transitionName),maskTransitionName:GS(S||"","fade",n.maskTransitionName),mask:P,style:G,styles:{body:T,mask:s,...O},width:k,zIndex:ue,closable:C},z.createElement(OL,{...n,confirmPrefixCls:B,okButtonProps:{...U,...L},cancelButtonProps:{..._,...D}}))},Xz=n=>{const{rootPrefixCls:i,iconPrefixCls:r,direction:s,theme:f}=n;return z.createElement(Cd,{prefixCls:i,iconPrefixCls:r,direction:s,theme:f},z.createElement(Yz,{...n}))};process.env.NODE_ENV!=="production"&&(Yz.displayName="ConfirmDialog",Xz.displayName="ConfirmDialogWrapper");function wL(n){return{...n,type:"warning"}}function jL(n){return{...n,type:"info"}}function AL(n){return{...n,type:"success"}}function ML(n){return{...n,type:"error"}}function zL(n){return{...n,type:"confirm"}}const DL=z.forwardRef((n,i)=>{const{afterClose:r,config:s,...f}=n,[p,y]=z.useState(!0),[S,T]=z.useState(s),{direction:C,getPrefixCls:j}=z.useContext(vl),O=j("modal"),A=j(),R=()=>{var _;r(),(_=S.afterClose)==null||_.call(S)},N=(..._)=>{var B;y(!1),_.some(k=>k==null?void 0:k.triggerCancel)&&((B=S.onCancel)==null||B.call(S,()=>{},..._.slice(1)))};z.useImperativeHandle(i,()=>({destroy:N,update:_=>{T(U=>{const B=ri(_)?_(U):_;return{...U,...B}})}}));const L=S.okCancel??S.type==="confirm",[D]=gS("Modal",Ru.Modal);return z.createElement(Xz,{prefixCls:O,rootPrefixCls:A,...S,close:N,open:p,afterClose:R,okText:S.okText||(L?D==null?void 0:D.okText:D==null?void 0:D.justOkText),direction:S.direction||C,cancelText:S.cancelText||(D==null?void 0:D.cancelText),...f})});let Pz=0;const RL=z.memo(z.forwardRef((n,i)=>{const[r,s]=K$();return z.useImperativeHandle(i,()=>({patchElement:s}),[s]),z.createElement(z.Fragment,null,r)}));function NL(){const n=z.useRef(null),[i,r]=z.useState([]);z.useEffect(()=>{i.length&&(xs(i).forEach(y=>{y()}),r([]))},[i]);const s=z.useCallback(p=>function(S){var L;Pz+=1;const T=z.createRef();let C;const j=new Promise(D=>{C=D});let O=!1,A;const R=z.createElement(DL,{key:`modal-${Pz}`,config:p(S),ref:T,afterClose:()=>{A==null||A()},isSilent:()=>O,onConfirm:D=>{C(D)}});return A=(L=n.current)==null?void 0:L.patchElement(R),{destroy:()=>{function D(){var _;(_=T.current)==null||_.destroy()}T.current?D():r(_=>[].concat(xs(_),[D]))},update:D=>{function _(){var U;(U=T.current)==null||U.update(D)}T.current?_():r(U=>[].concat(xs(U),[_]))},then:D=>(O=!0,j.then(D))}},[]);return[z.useMemo(()=>({info:s(jL),success:s(AL),error:s(ML),warning:s(wL),confirm:s(zL)}),[s]),z.createElement(RL,{key:"modal-holder",ref:n})]}const _L={info:z.createElement(US,null),success:z.createElement(RS,null),error:z.createElement(_S,null),warning:z.createElement(BS,null),loading:z.createElement(qS,null)};function Qz(n,i){return i===null||i===!1?null:i||z.createElement(_m,{className:`${n}-close-icon`})}const $L=4.5,BL="topRight",HL={offset:8},UL=({children:n,prefixCls:i})=>{const r=vT(i),[s,f]=EB(i,r);return H.createElement(_j,{classNames:{list:qe(s,f,r)}},n)},LL=(n,{prefixCls:i,key:r})=>H.createElement(UL,{prefixCls:i,key:r},n),qL=H.forwardRef((n,i)=>{const{top:r,bottom:s,prefixCls:f,getContainer:p,maxCount:y,rtl:S,onAllRemoved:T,stack:C,duration:j=$L,pauseOnHover:O=!0,showProgress:A}=n,{getPrefixCls:R,getPopupContainer:N,direction:L}=Mu("notification"),{notification:D}=H.useContext(vl),_=f||R("notification"),U=H.useMemo(()=>Tm(j)&&j>0?j:!1,[j]),[B,k]=gy([D==null?void 0:D.classNames,n==null?void 0:n.classNames],[D==null?void 0:D.styles,n==null?void 0:n.styles],{props:n}),G=()=>bM(r,s),Y=()=>qe({[`${_}-rtl`]:S??L==="rtl"}),P=()=>p$(_),Q=yM(C,HL),[ue,V]=Lj({prefixCls:_,style:G,className:Y,motion:P,closable:{closeIcon:Qz(_)},duration:U,getContainer:()=>(p==null?void 0:p())||(N==null?void 0:N())||document.body,maxCount:y,pauseOnHover:O,showProgress:A,classNames:B,styles:k,onAllRemoved:T,renderNotifications:LL,stack:Q});return H.useImperativeHandle(i,()=>({...ue,prefixCls:_,notification:D})),V});function VL(n){const i=H.useRef(null),r=so("Notification"),{notification:s}=H.useContext(vl);return[H.useMemo(()=>{const p=C=>{if(!i.current){process.env.NODE_ENV!=="production"&&r(!1,"usage","You are calling notice in render which will break in React 18 concurrent mode. Please trigger in effect instead.");return}const{open:j,prefixCls:O,notification:A}=i.current,R=(A==null?void 0:A.className)||{},N=(A==null?void 0:A.style)||{},L=`${O}-notice`,{title:D,message:_,description:U,icon:B,type:k,btn:G,actions:Y,className:P,style:Q,role:ue="alert",closeIcon:V,closable:F,classNames:te={},styles:ae={},...ge}=C;process.env.NODE_ENV!=="production"&&[["btn","actions"],["message","title"]].forEach(([Pe,Ie])=>{r.deprecated(!(Pe in C),Pe,Ie)});const He=D??_,X=Cm(He),ie=Y??G,me=Qz(L,g$(V,n,A)),[fe,ne,,ee]=RM(kS({...n||{},...C}),kS(s),{closable:!0,closeIcon:me}),Se=fe?{onClose:co(F)?F.onClose:void 0,closeIcon:ne,...ee}:!1,Ae=Om(te,{props:C}),De=Om(ae,{props:C}),Ue=B||(k?_L[k]:null),Ve=!B&&k?`${L}-icon-${k}`:void 0;return j({placement:(n==null?void 0:n.placement)??BL,...ge,title:X?He:null,description:U,icon:Ue,actions:ie,role:ue,classNames:{...Ae,icon:qe(Ve,Ae.icon)},styles:{...De,root:{...N,...De.root}},className:qe({[`${L}-${k}`]:k},P,R),style:Q,closable:Se})},S={open:p,destroy:C=>{var j,O;C!==void 0?(j=i.current)==null||j.close(C):(O=i.current)==null||O.destroy()}};return["success","info","warning","error"].forEach(C=>{S[C]=j=>p({...j,type:C})}),S},[n,s]),H.createElement(qL,{key:"notification-holder",...n,ref:i})]}function FL(n){return VL(n)}const Zz=H.createContext({}),Jz=H.createContext({message:{},notification:{},modal:{}}),kL=$u("App",n=>{const{componentCls:i,colorText:r,fontSize:s,lineHeight:f,fontFamily:p}=n;return{[i]:{color:r,fontSize:s,lineHeight:f,fontFamily:p,[`&${i}-rtl`]:{direction:"rtl"}}}},()=>({})),Kz=H.forwardRef((n,i)=>{const{prefixCls:r,children:s,className:f,rootClassName:p,message:y,notification:S,style:T,component:C="div"}=n,{direction:j,getPrefixCls:O,className:A,style:R}=Mu("app"),N=O("app",r),[L,D]=kL(N),_=qe(L,N,f,p,D,{[`${N}-rtl`]:j==="rtl"}),U=H.useContext(Zz),B=H.useMemo(()=>({message:{...U.message,...y},notification:{...U.notification,...S}}),[y,S,U.message,U.notification]),[k,G]=UB(B.message),[Y,P]=FL(B.notification),[Q,ue]=NL(),V=H.useMemo(()=>({message:k,notification:Y,modal:Q}),[k,Y,Q]);so("App")(!(D&&C===!1),"usage","When using cssVar, ensure `component` is assigned a valid React component string."),so("App")(!i||C!==!1,"usage","`ref` is not supported when `component` is `false`. Please provide a valid `component` instead.");const F=C===!1?H.Fragment:C,te={className:qe(A,_),style:{...R,...T}};return H.createElement(Jz.Provider,{value:V},H.createElement(Zz.Provider,{value:B},H.createElement(F,{...C===!1?void 0:{...te,ref:i}},ue,G,P,s)))});process.env.NODE_ENV!=="production"&&(Kz.displayName="App");const IL=()=>H.useContext(Jz),Wz=Kz;Wz.useApp=IL;const Fy={list:()=>_n.get("/agent/team/workspace/list").then(n=>n.data),create:n=>_n.post("/agent/team/workspace",n).then(i=>i.data),update:(n,i)=>_n.put(`/agent/team/workspace/${n}`,i).then(r=>r.data),delete:n=>_n.delete(`/agent/team/workspace/${n}`).then(i=>i.data),getFileTree:n=>_n.get("/agent/team/workspace/file-tree-by-path",{params:{path:n}}).then(i=>i.data),getFileContent:n=>_n.get("/agent/team/workspace/file-content",{params:{path:n}}).then(i=>i.data)},tx={list:n=>_n.get(`/agent/team/conversation/${n}/work-items`).then(i=>i.data),create:n=>_n.post("/agent/team/work-item",n).then(i=>i.data),update:(n,i)=>_n.put(`/agent/team/work-item/${n}`,i).then(r=>r.data),delete:n=>_n.delete(`/agent/team/work-item/${n}`).then(i=>i.data)},eD={OPEN:"green",DONE:"blue",ARCHIVED:"default"};function GL(){var yt,Rn;const{message:n}=Wz.useApp(),i=localStorage.getItem("userInfo")||"{}";let r={};try{r=JSON.parse(i)}catch{}const s=r!=null&&r.userId?String(r.userId):"anonymous",f=(r==null?void 0:r.userName)||(r==null?void 0:r.name)||"我",[p,y]=H.useState([]),[S,T]=H.useState(!1),[C,j]=H.useState(null),[O,A]=H.useState([]),[R,N]=H.useState(!1),[L,D]=H.useState([]),[_,U]=H.useState(!1),[B,k]=H.useState(null),[G,Y]=H.useState(!1),[P,Q]=H.useState([]),[ue,V]=H.useState(""),[F,te]=H.useState("disconnected"),ae=H.useRef(null),ge=H.useRef(null),[He,X]=H.useState(""),[ie,me]=H.useState(""),[fe,ne]=H.useState(!1),[ee,Se]=H.useState(!1),[Ae]=b.Form.useForm(),[De]=b.Form.useForm(),[Ue,Ve]=H.useState(null),[Pe,Ie]=H.useState("z-one-company-default");H.useEffect(()=>{nt(),ut(),ze()},[]),H.useEffect(()=>{ge.current&&ge.current.scrollIntoView({behavior:"smooth"})},[P,He]);const nt=async()=>{try{const Oe=await Iv.listTeams();Oe&&Oe.length>0&&Ie(Oe[0].teamCode)}catch{}},ut=async()=>{N(!0);try{const Oe=await Fy.list(s);A(Oe||[])}catch{A([])}finally{N(!1)}},ze=async()=>{T(!0);try{const Oe=await tx.listAllByOwner(s,100);y(Oe||[])}catch{y([])}finally{T(!1)}},Ye=async Oe=>{if(!Oe){D([]);return}U(!0);try{const Fe=await Fy.fileTree(Oe);D(Fe?[wt(Fe)]:[])}catch(Fe){n.error("加载文件树失败:"+((Fe==null?void 0:Fe.message)||"未知错误")),D([])}finally{U(!1)}},Rt=async Oe=>{try{const Ht=(await tx.messages(Oe,200)||[]).map(it=>({msgCode:it.msgCode,senderType:it.senderType,senderCode:it.senderCode,senderName:it.senderName,content:it.content,messageType:it.messageType,timestamp:it.gmtCreate?new Date(it.gmtCreate).getTime():Date.now()}));Q(Ht)}catch{Q([])}},Le=Oe=>{ft();const Ht=`${window.location.protocol==="https:"?"wss:":"ws:"}//${window.location.host}/api/agent/team/ws?convCode=${encodeURIComponent(Oe)}&userId=${encodeURIComponent(s)}&userName=${encodeURIComponent(f)}`;te("connecting");try{const it=new WebSocket(Ht);it.onopen=()=>{te("connected")},it.onmessage=Sl=>{try{const Pt=JSON.parse(Sl.data);$e(Pt)}catch{}},it.onerror=()=>{te("error")},it.onclose=()=>{te("disconnected"),ae.current=null},ae.current=it}catch(it){te("error"),n.error("WS 连接失败:"+((it==null?void 0:it.message)||"未知错误"))}},ft=()=>{if(ae.current){try{ae.current.close()}catch{}ae.current=null,te("disconnected"),X("")}},$e=Oe=>{const Fe=Oe.type;Fe==="AGENT_RESPONSE_DELTA"||Fe==="AGENT_THINKING_DELTA"?(me(Oe.senderName||Oe.senderCode||"Agent"),X(Ht=>Ht+(Oe.content||""))):Fe==="AGENT_RESPONSE"||Fe==="AGENT_THINKING"?(Q(Ht=>[...Ht,{msgCode:Oe.eventId||`evt-${Date.now()}`,senderType:Oe.senderType||"AGENT",senderCode:Oe.senderCode||"",senderName:Oe.senderName||"Agent",content:Oe.content||"",messageType:Fe,timestamp:Oe.timestamp||Date.now()}]),X(""),me("")):Fe==="SYSTEM"||Fe==="PARTICIPANT_JOIN"||Fe==="PARTICIPANT_LEAVE"?Oe.content&&Oe.content!=="HEARTBEAT_ACK"&&Oe.content!=="PONG"&&Q(Ht=>[...Ht,{msgCode:Oe.eventId||`evt-${Date.now()}`,senderType:"SYSTEM",senderCode:Oe.senderCode||"system",senderName:"系统",content:Oe.content,messageType:Fe,timestamp:Oe.timestamp||Date.now()}]):Fe==="ERROR"?(Q(Ht=>[...Ht,{msgCode:Oe.eventId||`err-${Date.now()}`,senderType:"SYSTEM",senderCode:"system",senderName:"错误",content:Oe.content||"未知错误",messageType:Fe,timestamp:Oe.timestamp||Date.now()}]),X(""),me("")):Fe==="MESSAGE_END"&&(X(""),me(""))},Xe=()=>{const Oe=ue.trim();if(!Oe)return;if(!ae.current||ae.current.readyState!==WebSocket.OPEN){n.warning("IM 未连接");return}if(!C){n.warning("请先选择一个工作项");return}const Fe=JSON.stringify({type:"USER_MESSAGE",content:Oe});ae.current.send(Fe),Q(Ht=>[...Ht,{msgCode:`local-${Date.now()}`,senderType:"USER",senderCode:s,senderName:f,content:Oe,messageType:"TEXT",timestamp:Date.now()}]),V("")},dt=Oe=>{j(Oe),Rt(Oe.convCode),Le(Oe.convCode),Oe.workspaceCode?(Ve(Oe.workspaceCode),Ye(Oe.workspaceCode)):(Ve(null),D([]))},Ct=async()=>{try{const Oe=await De.validateFields(),Fe=await tx.create({teamCode:Pe,userId:s,userName:f,title:Oe.title,workspaceCode:Oe.workspaceCode||void 0});n.success("工作项已创建"),Se(!1),De.resetFields(),await ze(),Fe&&dt(Fe)}catch(Oe){n.error("创建失败:"+((Oe==null?void 0:Oe.message)||"未知错误"))}},pe=async()=>{var Oe,Fe;try{const Ht=await Ae.validateFields();await Fy.create({workspaceName:Ht.workspaceName,localPath:Ht.localPath,ownerId:s,ownerName:f,description:Ht.description}),n.success("工作空间已创建"),ne(!1),Ae.resetFields(),await ut()}catch(Ht){const it=((Fe=(Oe=Ht==null?void 0:Ht.response)==null?void 0:Oe.data)==null?void 0:Fe.message)||(Ht==null?void 0:Ht.message)||"未知错误";n.error("创建失败:"+it)}},Be=async Oe=>{Y(!0);try{const Fe=await Fy.fileContent(Oe);k({path:Oe,content:(Fe==null?void 0:Fe.content)||""})}catch(Fe){n.error("读取文件失败:"+((Fe==null?void 0:Fe.message)||"未知错误"))}finally{Y(!1)}},Ke=async Oe=>{try{await tx.close(Oe,"DONE"),n.success("已关闭工作项"),await ze(),(C==null?void 0:C.convCode)===Oe&&(j(null),ft(),Q([]),D([]))}catch(Fe){n.error("关闭失败:"+((Fe==null?void 0:Fe.message)||"未知错误"))}},rt=async Oe=>{try{await Fy.delete(Oe),n.success("已删除"),await ut(),Ue===Oe&&(Ve(null),D([]))}catch(Fe){n.error("删除失败:"+((Fe==null?void 0:Fe.message)||"未知错误"))}},wt=Oe=>{var Fe;return{key:Oe.absolutePath,title:m.jsxs("span",{children:[Oe.isDirectory?m.jsx(he.FolderOutlined,{style:{marginRight:4,color:"#faad14"}}):m.jsx(he.FileOutlined,{style:{marginRight:4,color:"#8c8c8c"}}),Oe.name,Oe.isDirectory&&Oe.totalDescendants>0?m.jsxs("span",{style:{color:"#bfbfbf",marginLeft:6,fontSize:11},children:["(",Oe.totalDescendants,")"]}):null]}),children:((Fe=Oe.children)==null?void 0:Fe.map(wt))||[],isLeaf:!Oe.isDirectory,disabled:!1}};return m.jsxs("div",{style:{display:"grid",gridTemplateColumns:"240px 280px 1fr",height:"calc(100vh - 130px)",background:"#fff",border:"1px solid #f0f0f0",borderRadius:8,overflow:"hidden"},children:[m.jsxs("div",{style:{borderRight:"1px solid #f0f0f0",display:"flex",flexDirection:"column",background:"#fafafa"},children:[m.jsxs("div",{style:{padding:12,borderBottom:"1px solid #f0f0f0",display:"flex",alignItems:"center",justifyContent:"space-between"},children:[m.jsxs(b.Space,{size:4,children:[m.jsx(he.MessageOutlined,{style:{color:"#1677ff"}}),m.jsx("strong",{children:"工作项"})]}),m.jsxs(b.Space,{size:4,children:[m.jsx(b.Tooltip,{title:"刷新",children:m.jsx(b.Button,{size:"small",type:"text",icon:m.jsx(he.ReloadOutlined,{}),onClick:ze})}),m.jsx(b.Tooltip,{title:"新建工作项",children:m.jsx(b.Button,{size:"small",type:"text",icon:m.jsx(he.PlusOutlined,{}),onClick:()=>Se(!0)})})]})]}),m.jsx("div",{style:{flex:1,overflow:"auto"},children:S?m.jsx("div",{style:{padding:24,textAlign:"center"},children:m.jsx(b.Spin,{size:"small"})}):p.length===0?m.jsx(b.Empty,{image:b.Empty.PRESENTED_IMAGE_SIMPLE,description:"暂无工作项",style:{padding:24,marginTop:24},children:m.jsx(b.Button,{size:"small",type:"primary",onClick:()=>Se(!0),children:"新建工作项"})}):p.map(Oe=>m.jsxs("div",{onClick:()=>dt(Oe),style:{padding:"10px 12px",cursor:"pointer",borderBottom:"1px solid #f5f5f5",background:(C==null?void 0:C.convCode)===Oe.convCode?"#e6f7ff":"transparent",transition:"background 0.2s"},children:[m.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:4},children:[m.jsx("strong",{style:{fontSize:13,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",maxWidth:150},children:Oe.title||"未命名"}),m.jsx(b.Badge,{count:Oe.unreadCount||0,size:"small"})]}),m.jsx("div",{style:{fontSize:11,color:"#8c8c8c",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:Oe.lastMsgPreview||"暂无消息"}),m.jsxs("div",{style:{marginTop:4,fontSize:11,color:"#bfbfbf"},children:[m.jsx(b.Tag,{color:eD[Oe.status||"OPEN"],style:{marginRight:4,fontSize:10,padding:"0 4px"},children:Oe.status||"OPEN"}),Oe.workspaceCode?m.jsx(b.Tag,{color:"purple",style:{fontSize:10,padding:"0 4px"},children:"有工作空间"}):null]})]},Oe.convCode))})]}),m.jsxs("div",{style:{borderRight:"1px solid #f0f0f0",display:"flex",flexDirection:"column",background:"#fff"},children:[m.jsxs("div",{style:{padding:12,borderBottom:"1px solid #f0f0f0",display:"flex",alignItems:"center",justifyContent:"space-between"},children:[m.jsxs(b.Space,{size:4,children:[m.jsx(he.FolderOpenOutlined,{style:{color:"#faad14"}}),m.jsx("strong",{children:"工作空间"})]}),m.jsx(b.Space,{size:4,children:m.jsx(b.Tooltip,{title:"新建工作空间",children:m.jsx(b.Button,{size:"small",type:"text",icon:m.jsx(he.PlusOutlined,{}),onClick:()=>ne(!0)})})})]}),C!=null&&C.workspaceCode?m.jsx("div",{style:{padding:"8px 12px",background:"#f0f5ff",borderBottom:"1px solid #f0f0f0",fontSize:12},children:m.jsxs(b.Space,{size:4,children:[m.jsx(b.Tag,{color:"blue",children:"当前工作项"}),m.jsx("span",{style:{color:"#1677ff"},children:((yt=O.find(Oe=>Oe.workspaceCode===C.workspaceCode))==null?void 0:yt.workspaceName)||C.workspaceCode}),m.jsx(b.Button,{size:"small",type:"text",icon:m.jsx(he.ReloadOutlined,{}),onClick:()=>Ye(C.workspaceCode)})]})}):null,m.jsx("div",{style:{maxHeight:200,overflow:"auto",borderBottom:"1px solid #f0f0f0"},children:R?m.jsx("div",{style:{padding:12,textAlign:"center"},children:m.jsx(b.Spin,{size:"small"})}):O.length===0?m.jsx("div",{style:{padding:12,color:"#8c8c8c",fontSize:12,textAlign:"center"},children:"暂无工作空间"}):O.map(Oe=>m.jsxs("div",{onClick:()=>{Ve(Oe.workspaceCode),Ye(Oe.workspaceCode)},style:{padding:"6px 12px",cursor:"pointer",fontSize:12,background:Ue===Oe.workspaceCode?"#e6f7ff":"transparent",borderLeft:Ue===Oe.workspaceCode?"3px solid #1677ff":"3px solid transparent",display:"flex",alignItems:"center",justifyContent:"space-between"},children:[m.jsxs(b.Space,{size:4,style:{overflow:"hidden"},children:[m.jsx(he.FolderOutlined,{style:{color:"#faad14",fontSize:12}}),m.jsx("span",{style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:Oe.workspaceName})]}),m.jsx(b.Popconfirm,{title:"删除此工作空间?",onConfirm:Fe=>{Fe==null||Fe.stopPropagation(),rt(Oe.workspaceCode)},onCancel:Fe=>Fe==null?void 0:Fe.stopPropagation(),children:m.jsx(b.Button,{size:"small",type:"text",danger:!0,icon:m.jsx(he.DeleteOutlined,{}),onClick:Fe=>Fe.stopPropagation()})})]},Oe.workspaceCode))}),m.jsx("div",{style:{flex:1,overflow:"auto",padding:8},children:_?m.jsx("div",{style:{padding:24,textAlign:"center"},children:m.jsx(b.Spin,{})}):Ue?L.length===0?m.jsx(b.Empty,{image:b.Empty.PRESENTED_IMAGE_SIMPLE,description:"空目录或无文件",style:{marginTop:40}}):m.jsx(b.Tree,{treeData:L,defaultExpandAll:!1,showLine:!0,showIcon:!1,onSelect:(Oe,Fe)=>{const Ht=Fe.node;!Ht.isLeaf&&Oe.length>0||Ht.isLeaf&&Fe.node.key&&Be(String(Fe.node.key))}}):m.jsx(b.Empty,{image:b.Empty.PRESENTED_IMAGE_SIMPLE,description:"请选择工作空间",style:{marginTop:40}})}),B?m.jsxs("div",{style:{borderTop:"1px solid #f0f0f0",maxHeight:240,overflow:"hidden",display:"flex",flexDirection:"column"},children:[m.jsxs("div",{style:{padding:"6px 12px",background:"#fafafa",borderBottom:"1px solid #f0f0f0",display:"flex",alignItems:"center",justifyContent:"space-between",fontSize:11},children:[m.jsxs(b.Space,{size:4,children:[m.jsx(he.FileTextOutlined,{}),m.jsx("span",{style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",maxWidth:180},children:B.path.split("/").pop()})]}),m.jsx(b.Button,{size:"small",type:"text",onClick:()=>k(null),children:"关闭"})]}),m.jsx("pre",{style:{flex:1,margin:0,padding:8,overflow:"auto",fontSize:11,background:"#1e1e1e",color:"#d4d4d4",fontFamily:"Menlo, monospace",whiteSpace:"pre-wrap",wordBreak:"break-all"},children:G?"加载中...":B.content||"(空)"})]}):null]}),m.jsxs("div",{style:{display:"flex",flexDirection:"column",background:"#f5f5f5"},children:[m.jsxs("div",{style:{padding:"12px 16px",background:"#fff",borderBottom:"1px solid #f0f0f0",display:"flex",alignItems:"center",justifyContent:"space-between"},children:[C?m.jsxs(b.Space,{size:8,children:[m.jsx(he.TeamOutlined,{style:{color:"#1677ff"}}),m.jsx("strong",{style:{fontSize:14},children:C.title||"未命名"}),m.jsx(b.Tag,{color:eD[C.status||"OPEN"],style:{marginLeft:4},children:C.status||"OPEN"}),C.workspaceCode?m.jsx(b.Tag,{color:"purple",icon:m.jsx(he.FolderOpenOutlined,{}),children:((Rn=O.find(Oe=>Oe.workspaceCode===C.workspaceCode))==null?void 0:Rn.workspaceName)||"工作空间"}):null,m.jsxs("span",{style:{color:"#8c8c8c",fontSize:12},children:[C.messageCount||0," 条消息"]})]}):m.jsx("span",{style:{color:"#8c8c8c"},children:"请从左侧选择一个工作项"}),C?m.jsxs(b.Space,{size:4,children:[m.jsx(b.Tag,{color:F==="connected"?"green":F==="error"?"red":"default",children:F==="connected"?"已连接":F==="connecting"?"连接中":F==="error"?"错误":"未连接"}),m.jsx(b.Popconfirm,{title:"关闭此工作项?",onConfirm:()=>Ke(C.convCode),children:m.jsx(b.Button,{size:"small",type:"text",danger:!0,icon:m.jsx(he.CheckCircleOutlined,{}),children:"完成"})})]}):null]}),m.jsx("div",{style:{flex:1,overflow:"auto",padding:16,display:"flex",flexDirection:"column",gap:12},children:C?P.length===0&&!He?m.jsx(b.Empty,{image:b.Empty.PRESENTED_IMAGE_SIMPLE,description:"暂无消息,开始聊吧",style:{marginTop:80}}):m.jsxs(m.Fragment,{children:[P.map(Oe=>m.jsx(tD,{msg:Oe,currentUserId:s},Oe.msgCode)),He?m.jsx(tD,{msg:{msgCode:"streaming",senderType:"AGENT",senderCode:"agent",senderName:ie,content:He,timestamp:Date.now(),messageType:"STREAMING"},currentUserId:s}):null,m.jsx("div",{ref:ge})]}):m.jsx(b.Empty,{image:b.Empty.PRESENTED_IMAGE_SIMPLE,description:"从左侧选择工作项开始聊天",style:{marginTop:80}})}),m.jsxs("div",{style:{padding:12,background:"#fff",borderTop:"1px solid #f0f0f0",display:"flex",gap:8},children:[m.jsx(b.Input.TextArea,{value:ue,onChange:Oe=>V(Oe.target.value),onPressEnter:Oe=>{Oe.shiftKey||(Oe.preventDefault(),Xe())},placeholder:C?F==="connected"?"输入消息... (Enter 发送, Shift+Enter 换行)":"正在连接 IM...":"请先选择工作项",autoSize:{minRows:1,maxRows:4},disabled:!C||F!=="connected"}),m.jsx(b.Button,{type:"primary",icon:m.jsx(he.SendOutlined,{}),onClick:Xe,disabled:!C||F!=="connected"||!ue.trim(),children:"发送"})]})]}),m.jsx(b.Modal,{title:"新建工作空间",open:fe,onCancel:()=>ne(!1),onOk:pe,okText:"创建",cancelText:"取消",children:m.jsxs(b.Form,{form:Ae,layout:"vertical",children:[m.jsx(b.Form.Item,{label:"名称",name:"workspaceName",rules:[{required:!0,message:"请输入工作空间名称"}],children:m.jsx(b.Input,{placeholder:"例如:z-opc 主项目"})}),m.jsx(b.Form.Item,{label:"本地路径",name:"localPath",rules:[{required:!0,message:"请输入本地路径"}],extra:"服务器侧的文件系统绝对路径 (例: /Users/zifang/workplace)",children:m.jsx(b.Input,{placeholder:"/Users/zifang/workplace"})}),m.jsx(b.Form.Item,{label:"描述",name:"description",children:m.jsx(b.Input.TextArea,{rows:2,placeholder:"可选:工作空间用途说明"})})]})}),m.jsx(b.Modal,{title:"新建工作项",open:ee,onCancel:()=>Se(!1),onOk:Ct,okText:"创建",cancelText:"取消",children:m.jsxs(b.Form,{form:De,layout:"vertical",children:[m.jsx(b.Form.Item,{label:"标题",name:"title",rules:[{required:!0,message:"请输入工作项标题"}],children:m.jsx(b.Input,{placeholder:"例如:完成 z-opc 用户面板"})}),m.jsx(b.Form.Item,{label:"关联工作空间 (可选)",name:"workspaceCode",extra:"绑定后,工作项右侧会显示对应工作空间的文件树",children:m.jsxs("select",{style:{width:"100%",height:32,border:"1px solid #d9d9d9",borderRadius:6,padding:"0 11px"},children:[m.jsx("option",{value:"",children:"无 (仅 IM 群聊)"}),O.map(Oe=>m.jsxs("option",{value:Oe.workspaceCode,children:[Oe.workspaceName," (",Oe.localPath,")"]},Oe.workspaceCode))]})})]})})]})}function tD({msg:n,currentUserId:i}){const r=n.senderType==="USER"&&n.senderCode===i;if(n.senderType==="SYSTEM")return m.jsx("div",{style:{textAlign:"center",color:"#8c8c8c",fontSize:11},children:m.jsx(b.Tag,{color:"default",children:n.content})});const f=r?"#1677ff":"#fff",p=r?"#fff":"#333",y=r?"#1677ff":"#87d068";return m.jsxs("div",{style:{display:"flex",flexDirection:r?"row-reverse":"row",alignItems:"flex-start",gap:8},children:[m.jsx(b.Avatar,{style:{background:y,flexShrink:0},children:(n.senderName||"?").charAt(0).toUpperCase()}),m.jsxs("div",{style:{maxWidth:"70%"},children:[m.jsxs("div",{style:{fontSize:11,color:"#8c8c8c",marginBottom:2,textAlign:r?"right":"left"},children:[n.senderName," · ",new Date(n.timestamp).toLocaleTimeString(),n.messageType&&n.messageType!=="TEXT"?m.jsx(b.Tag,{style:{marginLeft:4,fontSize:10},children:n.messageType}):null]}),m.jsx("div",{style:{padding:"8px 12px",background:f,color:p,borderRadius:8,border:r?"none":"1px solid #e8e8e8",wordBreak:"break-word",whiteSpace:"pre-wrap",boxShadow:"0 1px 2px rgba(0,0,0,0.04)"},children:n.content||(n.messageType==="STREAMING"?"...":"")})]})]})}const Vm={health:()=>_n.get("/webide/health").then(n=>n.data)},YL={CREATING:{text:"创建中",color:"processing"},RUNNING:{text:"运行中",color:"success"},STOPPED:{text:"已停止",color:"default"},ERROR:{text:"错误",color:"error"}},XL={GIT:{text:"GIT 模式",color:"blue"},SHARED:{text:"SHARED 模式",color:"purple"}};function PL(){const n=H.useRef(void 0),[i,r]=H.useState(!1),[s,f]=H.useState(!1),[p,y]=H.useState([]),[S,T]=H.useState(null),[C,j]=H.useState(!1),[O]=b.Form.useForm(),A=async()=>{try{const B=await Vm.listContainers();return{data:B||[],success:!0,total:(B||[]).length}}catch(B){return b.message.warning("后端未就绪,显示空列表:"+((B==null?void 0:B.message)||"未知错误")),{data:[],success:!1,total:0}}},R=async()=>{var B;try{const k=await O.validateFields();j(!0);const G=await Vm.inspect(k);b.message.success(`WebIDE 创建成功:${G.url}`),r(!1),O.resetFields(),(B=n.current)==null||B.reload(),G.url&&window.open(G.url,"_blank")}catch(k){if(k!=null&&k.errorFields)return;b.message.error("创建失败:"+((k==null?void 0:k.message)||"未知错误"))}finally{j(!1)}},N=async B=>{var k;try{await Vm.startContainer(B),b.message.success("已启动"),(k=n.current)==null||k.reload()}catch(G){b.message.error("启动失败:"+((G==null?void 0:G.message)||"未知错误"))}},L=async B=>{var k;try{await Vm.stopContainer(B),b.message.success("已停止"),(k=n.current)==null||k.reload()}catch(G){b.message.error("停止失败:"+((G==null?void 0:G.message)||"未知错误"))}},D=async B=>{var k;try{await Vm.removeContainer(B),b.message.success("已删除"),(k=n.current)==null||k.reload()}catch(G){b.message.error("删除失败:"+((G==null?void 0:G.message)||"未知错误"))}},_=async B=>{T(B),f(!0),y(["加载中..."]);try{const k=await Vm.getLogs(B.containerId,200);y((k==null?void 0:k.lines)||[])}catch(k){y([`加载日志失败:${(k==null?void 0:k.message)||"未知错误"}`])}},U=[{title:"容器ID",dataIndex:"containerId",width:200,fixed:"left",ellipsis:!0},{title:"模式",dataIndex:"mode",width:110,render:(B,k)=>{const G=XL[k.mode]||{text:k.mode,color:"default"};return m.jsx(b.Tag,{color:G.color,children:G.text})}},{title:"Git URL",dataIndex:"gitUrl",width:200,ellipsis:!0},{title:"分支",dataIndex:"branch",width:100},{title:"状态",dataIndex:"status",width:100,render:(B,k)=>{const G=YL[k.status]||{text:k.status,color:"default"};return m.jsx(b.Tag,{color:G.color,children:G.text})}},{title:"URL",dataIndex:"url",width:200,ellipsis:!0,render:(B,k)=>k.url?m.jsx("a",{href:k.url,target:"_blank",rel:"noreferrer",children:k.url}):"-"},{title:"CPU%",dataIndex:"cpuUsage",width:80,render:B=>typeof B=="number"?`${B.toFixed(1)}%`:"-"},{title:"内存%",dataIndex:"memoryUsage",width:80,render:B=>typeof B=="number"?`${B.toFixed(1)}%`:"-"},{title:"创建时间",dataIndex:"createdAt",width:170,valueType:"dateTime"},{title:"操作",valueType:"option",width:240,fixed:"right",render:(B,k)=>[m.jsx(b.Tooltip,{title:"启动",children:m.jsx(b.Button,{type:"text",size:"small",icon:m.jsx(he.PlayCircleOutlined,{}),onClick:()=>N(k.containerId),children:"启动"})},"start"),m.jsx(b.Tooltip,{title:"停止",children:m.jsx(b.Button,{type:"text",size:"small",icon:m.jsx(he.PauseOutlined,{}),onClick:()=>L(k.containerId),children:"停止"})},"stop"),m.jsx(b.Tooltip,{title:"查看日志",children:m.jsx(b.Button,{type:"text",size:"small",icon:m.jsx(he.FileTextOutlined,{}),onClick:()=>_(k),children:"日志"})},"logs"),m.jsx(b.Tooltip,{title:"删除",children:m.jsx(b.Button,{type:"text",danger:!0,size:"small",icon:m.jsx(he.DeleteOutlined,{}),onClick:()=>D(k.containerId),children:"删除"})},"remove")]}];return m.jsxs(Ou.PageContainer,{header:{title:"WebIDE 容器管理 (z-webide)",subTitle:"基于 code-server 的容器化 WebIDE",breadcrumb:{}},children:[m.jsx(Ou.ProTable,{actionRef:n,rowKey:"containerId",columns:U,request:A,search:!1,pagination:{pageSize:20},headerTitle:"容器列表",toolBarRender:()=>[m.jsx(b.Button,{type:"primary",icon:m.jsx(he.PlusOutlined,{}),onClick:()=>r(!0),children:"新建 WebIDE"},"add"),m.jsx(b.Button,{icon:m.jsx(he.ReloadOutlined,{}),onClick:()=>{var B;return(B=n.current)==null?void 0:B.reload()},children:"刷新"},"reload")]}),m.jsx(b.Drawer,{title:m.jsxs(b.Space,{children:[m.jsx(he.CodeOutlined,{})," 新建 WebIDE"]}),open:i,onClose:()=>r(!1),width:520,extra:m.jsxs(b.Space,{children:[m.jsx(b.Button,{onClick:()=>r(!1),children:"取消"}),m.jsx(b.Button,{type:"primary",loading:C,onClick:R,children:"创建并打开"})]}),children:m.jsx(QL,{form:O})}),m.jsx(b.Drawer,{title:S?`容器日志 — ${S.containerId}`:"容器日志",open:s,onClose:()=>f(!1),width:720,children:m.jsx("pre",{style:{background:"#1e1e1e",color:"#d4d4d4",padding:12,borderRadius:4,fontFamily:"Menlo, Consolas, monospace",fontSize:12,maxHeight:"70vh",overflow:"auto",whiteSpace:"pre-wrap"},children:p.join(`
443
- `)})})]})}function QL({form:n}){const{mode:i,setMode:r}=ZL();return m.jsxs(b.Form,{form:n,layout:"vertical",style:{marginTop:16},initialValues:{mode:"GIT"},children:[m.jsx(b.Form.Item,{name:"mode",label:"模式",rules:[{required:!0}],children:m.jsx(b.Select,{onChange:s=>r(s),options:[{value:"GIT",label:"GIT 模式 (从仓库克隆)"},{value:"SHARED",label:"SHARED 模式 (共享工作区)"}]})}),i==="GIT"&&m.jsxs(m.Fragment,{children:[m.jsx(b.Form.Item,{name:"gitUrl",label:"Git URL",rules:[{required:!0,type:"url"}],extra:"支持 https://github.com/xxx/yyy.git",children:m.jsx(b.Input,{placeholder:"https://github.com/your/repo.git"})}),m.jsx(b.Form.Item,{name:"branch",label:"分支",children:m.jsx(b.Input,{placeholder:"main (默认)"})})]}),i==="SHARED"&&m.jsx(b.Form.Item,{name:"shareKey",label:"共享 Key",rules:[{required:!0}],children:m.jsx(b.Input,{placeholder:"SHARED-XXXXXX"})}),m.jsx(b.Form.Item,{name:"tenantCode",label:"租户编码 (可选)",children:m.jsx(b.Input,{placeholder:"default"})})]})}function ZL(){const[n,i]=H.useState("GIT");return{mode:n,setMode:i}}const JL=()=>m.jsx(ro.Outlet,{}),KL=()=>{const[n]=b.Form.useForm(),i=r=>{console.log("UC login:",r),b.message.info("UC 账号密码登录占位组件 — 实际登录逻辑接 z-ctc-ac")};return m.jsx(b.Card,{title:"账号密码登录",style:{maxWidth:420,margin:"40px auto"},children:m.jsxs(b.Form,{form:n,onFinish:i,layout:"vertical",children:[m.jsx(b.Form.Item,{name:"username",label:"账号",rules:[{required:!0}],children:m.jsx(b.Input,{prefix:m.jsx(he.UserOutlined,{}),placeholder:"请输入账号"})}),m.jsx(b.Form.Item,{name:"password",label:"密码",rules:[{required:!0}],children:m.jsx(b.Input.Password,{prefix:m.jsx(he.LockOutlined,{}),placeholder:"请输入密码"})}),m.jsx(b.Form.Item,{children:m.jsx(b.Button,{type:"primary",htmlType:"submit",block:!0,children:"登录"})})]})})},WL=()=>{const[n]=b.Form.useForm(),[i,r]=H.useState(!1),[s,f]=H.useState(0),p=async()=>{try{const S=n.getFieldValue("phone");if(!S||!/^1\d{10}$/.test(S)){b.message.warning("请输入正确的手机号");return}r(!0),f(60);const T=setInterval(()=>f(C=>C>0?C-1:(clearInterval(T),0)),1e3);b.message.success("验证码已发送 (mock 通道: 123456)")}catch{b.message.error("发送失败")}finally{r(!1)}},y=S=>{if(S.code!=="123456"){b.message.error("验证码错误,固定码 123456");return}b.message.success("手机登录成功 (占位)")};return m.jsx(b.Card,{title:"手机验证码登录",style:{maxWidth:420,margin:"40px auto"},children:m.jsxs(b.Form,{form:n,onFinish:y,layout:"vertical",children:[m.jsx(b.Form.Item,{name:"phone",label:"手机号",rules:[{required:!0,pattern:/^1\d{10}$/}],children:m.jsx(b.Input,{prefix:m.jsx(he.MobileOutlined,{}),placeholder:"11 位手机号",maxLength:11})}),m.jsx(b.Form.Item,{name:"code",label:"验证码",rules:[{required:!0}],children:m.jsx(b.Input,{prefix:m.jsx(he.SafetyOutlined,{}),placeholder:"固定码 123456",maxLength:6,addonAfter:m.jsx(b.Button,{type:"link",disabled:i||s>0,onClick:p,children:s>0?`${s}s`:"获取验证码"})})}),m.jsx(b.Form.Item,{children:m.jsx(b.Button,{type:"primary",htmlType:"submit",block:!0,children:"登录"})})]})})},e7=()=>{const[n]=b.Form.useForm(),i=r=>{console.log("UC register:",r),b.message.success("注册成功 (占位)")};return m.jsx(b.Card,{title:"新用户注册",style:{maxWidth:420,margin:"40px auto"},children:m.jsxs(b.Form,{form:n,onFinish:i,layout:"vertical",children:[m.jsx(b.Form.Item,{name:"username",label:"账号",rules:[{required:!0,min:3}],children:m.jsx(b.Input,{prefix:m.jsx(he.UserOutlined,{}),placeholder:"3 位以上"})}),m.jsx(b.Form.Item,{name:"phone",label:"手机号",rules:[{required:!0,pattern:/^1\d{10}$/}],children:m.jsx(b.Input,{prefix:m.jsx(he.MobileOutlined,{}),placeholder:"11 位手机号",maxLength:11})}),m.jsx(b.Form.Item,{name:"code",label:"验证码",rules:[{required:!0}],children:m.jsx(b.Input,{prefix:m.jsx(he.SafetyOutlined,{}),placeholder:"固定码 123456",maxLength:6})}),m.jsx(b.Form.Item,{name:"password",label:"密码",rules:[{required:!0,min:6}],children:m.jsx(b.Input.Password,{prefix:m.jsx(he.LockOutlined,{}),placeholder:"6 位以上"})}),m.jsx(b.Form.Item,{children:m.jsx(b.Button,{type:"primary",htmlType:"submit",block:!0,children:"注册"})})]})})},t7=()=>{const[n,i]=H.useState(0),[r]=b.Form.useForm(),s=async()=>{try{await r.validateFields(),n<2?i(n+1):b.message.success("密码重置成功 (占位)")}catch{}};return m.jsxs(b.Card,{title:"找回密码",style:{maxWidth:480,margin:"40px auto"},children:[m.jsx(b.Steps,{current:n,items:[{title:"验证手机号"},{title:"输入验证码"},{title:"重置密码"}],style:{marginBottom:24}}),m.jsxs(b.Form,{form:r,layout:"vertical",children:[n===0&&m.jsx(b.Form.Item,{name:"phone",label:"手机号",rules:[{required:!0,pattern:/^1\d{10}$/}],children:m.jsx(b.Input,{prefix:m.jsx(he.MobileOutlined,{}),placeholder:"注册时的手机号",maxLength:11})}),n===1&&m.jsx(b.Form.Item,{name:"code",label:"验证码",rules:[{required:!0}],children:m.jsx(b.Input,{prefix:m.jsx(he.SafetyOutlined,{}),placeholder:"固定码 123456",maxLength:6})}),n===2&&m.jsxs(m.Fragment,{children:[m.jsx(b.Form.Item,{name:"password",label:"新密码",rules:[{required:!0,min:6}],children:m.jsx(b.Input.Password,{prefix:m.jsx(he.LockOutlined,{}),placeholder:"6 位以上"})}),m.jsx(b.Form.Item,{name:"confirm",label:"确认密码",rules:[{required:!0},({getFieldValue:f})=>({validator(p,y){return!y||f("password")===y?Promise.resolve():Promise.reject(new Error("两次输入不一致"))}})],children:m.jsx(b.Input.Password,{prefix:m.jsx(he.LockOutlined,{}),placeholder:"再输一次"})})]}),m.jsx(b.Form.Item,{children:m.jsx(b.Button,{type:"primary",onClick:s,block:!0,children:n<2?"下一步":"提交"})})]})]})},{Option:nD}=b.Select,{TextArea:lD}=b.Input,nx=[{type:"STRING",label:"字符串",icon:m.jsx(he.FileTextOutlined,{}),color:"#1677ff",desc:"短文本 (默认 VARCHAR 255)"},{type:"TEXT",label:"长文本",icon:m.jsx(he.FileTextOutlined,{}),color:"#13c2c2",desc:"TEXT 类型, 无长度限制"},{type:"INT",label:"整数",icon:"#",color:"#722ed1",desc:"INT 整数"},{type:"LONG",label:"长整数",icon:"#",color:"#722ed1",desc:"BIGINT 长整数"},{type:"DECIMAL",label:"小数",icon:"0.00",color:"#eb2f96",desc:"DECIMAL 精确小数"},{type:"BOOLEAN",label:"布尔",icon:m.jsx(he.CheckCircleOutlined,{}),color:"#52c41a",desc:"TINYINT(1) 是/否"},{type:"DATE",label:"日期",icon:"📅",color:"#fa8c16",desc:"DATE yyyy-MM-dd"},{type:"DATETIME",label:"日期时间",icon:"🕐",color:"#fa8c16",desc:"DATETIME yyyy-MM-dd HH:mm:ss"},{type:"JSON",label:"JSON",icon:"{}",color:"#2f54eb",desc:"JSON 字符串"},{type:"REF",label:"引用",icon:"🔗",color:"#8c8c8c",desc:"外键引用 BIGINT"}],lx=Object.fromEntries(nx.map(n=>[n.type,n])),s2="application/x-lc-field-type",c2="application/x-lc-field-idx";function aD(){const[n]=ro.useSearchParams(),[i,r]=H.useState(n.get("appCode")||"demo"),[s,f]=H.useState(n.get("tenant")||localStorage.getItem("z_tenant")||"default"),[p,y]=H.useState([]),[S,T]=H.useState(null),[C,j]=H.useState(!1),[O,A]=H.useState(null),[R,N]=H.useState(!1),[L]=b.Form.useForm(),[D,_]=H.useState(null),[U,B]=H.useState(null),[k,G]=H.useState(null),[Y,P]=H.useState([]),[Q,ue]=H.useState(null),[V,F]=H.useState(!1),[te,ae]=H.useState(!1),ge=H.useCallback(async()=>{if(i){j(!0);try{const pe=await _n.get(`/lc/app/${i}/schema`,{params:{tenantCode:s}});y(Array.isArray(pe)?pe:[]),T(null)}catch(pe){b.message.error("加载 schema 失败: "+((pe==null?void 0:pe.message)||"未知错误")),y([])}finally{j(!1)}}},[i,s]);H.useEffect(()=>{ge()},[ge]);const He=async(pe,Be,Ke)=>{var rt;try{const wt={tenantCode:s,entityCode:Be,eventType:pe,eventData:typeof Ke=="string"?Ke:JSON.stringify(Ke),source:"USER",parentEventId:S},yt=await _n.post(`/lc/app/${i}/event`,wt);b.message.success(`事件 ${pe} 已提交 (eventId=${(rt=yt==null?void 0:yt.eventId)==null?void 0:rt.slice(0,8)}…)`),T((yt==null?void 0:yt.eventId)||null),await ge()}catch(wt){b.message.error("提交事件失败: "+((wt==null?void 0:wt.message)||"未知错误"))}},X=()=>{A(null),L.resetFields(),L.setFieldsValue({entityCode:"",entityName:"",tableName:"",description:"",fields:[]}),N(!0)},ie=pe=>{A(pe),L.setFieldsValue({entityCode:pe.entityCode,entityName:pe.entityName,tableName:pe.tableName||pe.entityCode,description:pe.description,fields:pe.fields||[]}),N(!0)},me=pe=>{P((pe.fields||[]).map((Be,Ke)=>({...Be,sortOrder:Be.sortOrder??Ke}))),ue(null),F(!1),ae(!0),A(pe)},fe=pe=>{b.Modal.confirm({title:`删除实体 ${pe.entityName||pe.entityCode}?`,content:"此操作会发出 DELETE 事件, 所有字段一起删除.",okType:"danger",onOk:()=>He("DELETE",pe.entityCode,{entityCode:pe.entityCode})})},ne=async()=>{try{const pe=await L.validateFields(),Be=O?"UPDATE":"CREATE",Ke={entityCode:pe.entityCode,entityName:pe.entityName,tableName:pe.tableName||pe.entityCode,description:pe.description,fields:(pe.fields||[]).map(rt=>({fieldCode:rt.fieldCode,fieldName:rt.fieldName,fieldType:rt.fieldType||"STRING",required:!!rt.required,defaultValue:rt.defaultValue||null,dictCode:rt.dictCode||null,refEntity:rt.refEntity||null,fieldLength:rt.fieldLength||null,scale:rt.scale||null,sortOrder:rt.sortOrder||0}))};N(!1),await He(Be,pe.entityCode,Ke)}catch(pe){pe!=null&&pe.errorFields?b.message.error("请补全必填字段"):b.message.error("提交失败: "+((pe==null?void 0:pe.message)||"未知错误"))}},ee=(pe,Be)=>{pe.dataTransfer.setData(s2,Be),pe.dataTransfer.setData("text/plain",Be),pe.dataTransfer.effectAllowed="copy",_(Be)},Se=()=>{_(null),G(null)},Ae=(pe,Be)=>{pe.dataTransfer.setData(c2,String(Be)),pe.dataTransfer.effectAllowed="move",B(Be)},De=()=>{B(null),G(null)},Ue=pe=>{pe.preventDefault(),pe.dataTransfer.dropEffect=D?"copy":"move"},Ve=()=>{G(null)},Pe=pe=>{pe.preventDefault();const Be=pe.dataTransfer.getData(s2),Ke=pe.dataTransfer.getData(c2);if(Be)ut(Be,Y.length);else if(Ke){const rt=Number(Ke);ze(rt,Y.length)}G(null),_(null),B(null)},Ie=(pe,Be)=>{pe.preventDefault(),pe.stopPropagation(),G(Be)},nt=(pe,Be)=>{pe.preventDefault(),pe.stopPropagation();const Ke=pe.dataTransfer.getData(s2),rt=pe.dataTransfer.getData(c2);Ke?ut(Ke,Be):rt&&ze(Number(rt),Be),G(null),_(null),B(null)},ut=(pe,Be)=>{const Ke=lx[pe];if(!Ke)return;const wt={fieldCode:`field_${Y.length+1}`,fieldName:`新${Ke.label}字段`,fieldType:pe,required:!1,defaultValue:null,dictCode:null,refEntity:null,fieldLength:pe==="STRING"?255:null,scale:pe==="DECIMAL"?2:null,sortOrder:Be},yt=[...Y];yt.splice(Be,0,wt),Ye(yt),P(yt),ue(Be),F(!0)},ze=(pe,Be)=>{if(pe===Be||pe<0||Be<0)return;const Ke=[...Y],[rt]=Ke.splice(pe,1),wt=Be>pe?Be-1:Be;Ke.splice(wt,0,rt),Ye(Ke),P(Ke),F(!0)},Ye=pe=>{pe.forEach((Be,Ke)=>{Be.sortOrder=Ke})},Rt=(pe,Be)=>{const Ke=[...Y];Ke[pe]={...Ke[pe],...Be},P(Ke),F(!0)},Le=pe=>{const Be=Y.filter((Ke,rt)=>rt!==pe);Ye(Be),P(Be),ue(null),F(!0)},ft=pe=>{const Be=Y[pe],Ke={...Be,fieldCode:`${Be.fieldCode}_copy`,fieldName:`${Be.fieldName} (副本)`},rt=[...Y];rt.splice(pe+1,0,Ke),Ye(rt),P(rt),ue(pe+1),F(!0)},$e=async()=>{if(!O)return;const pe={entityCode:O.entityCode,entityName:O.entityName,tableName:O.tableName,description:O.description,fields:Y.map(Be=>({fieldCode:Be.fieldCode,fieldName:Be.fieldName,fieldType:Be.fieldType||"STRING",required:!!Be.required,defaultValue:Be.defaultValue||null,dictCode:Be.dictCode||null,refEntity:Be.refEntity||null,fieldLength:Be.fieldLength||null,scale:Be.scale||null,sortOrder:Be.sortOrder??0}))};await He("UPDATE",O.entityCode,pe),F(!1)},Xe=async()=>{if(O)try{const pe=await _n.post(`/lc/admin/entity/${O.id}/provision?tenant=${s}`);b.message.success(`已建表 (${Y.length} 字段)`),console.log("DDL:",pe)}catch(pe){b.message.error("建表失败: "+((pe==null?void 0:pe.message)||"未知错误"))}},dt=[{title:"编码",dataIndex:"entityCode",key:"entityCode",width:140},{title:"名称",dataIndex:"entityName",key:"entityName",width:140},{title:"物理表",dataIndex:"tableName",key:"tableName",width:160},{title:"字段数",key:"fields",width:80,render:(pe,Be)=>{var Ke;return m.jsx(b.Badge,{count:((Ke=Be.fields)==null?void 0:Ke.length)||0,showZero:!0,color:"blue"})}},{title:"描述",dataIndex:"description",key:"description",ellipsis:!0},{title:"操作",key:"action",width:260,render:(pe,Be)=>m.jsxs(b.Space,{children:[m.jsx(b.Button,{type:"link",size:"small",icon:m.jsx(he.FormatPainterOutlined,{}),onClick:()=>me(Be),children:"画布编辑"}),m.jsx(b.Button,{type:"link",size:"small",icon:m.jsx(he.EditOutlined,{}),onClick:()=>ie(Be),children:"表单编辑"}),m.jsx(b.Popconfirm,{title:"确定删除?",onConfirm:()=>fe(Be),children:m.jsx(b.Button,{type:"link",size:"small",danger:!0,icon:m.jsx(he.DeleteOutlined,{}),children:"删除"})})]})}],Ct=Q!=null?Y[Q]:null;return m.jsxs("div",{children:[m.jsxs(b.Card,{title:m.jsxs(m.Fragment,{children:[m.jsx(he.ThunderboltOutlined,{})," z-lc 模型编辑器 (拖拽版)"]}),extra:m.jsxs(b.Space,{children:[m.jsx(b.Input,{addonBefore:"appCode",value:i,onChange:pe=>r(pe.target.value.trim()),style:{width:200}}),m.jsx(b.Input,{addonBefore:"tenant",value:s,onChange:pe=>f(pe.target.value.trim()),style:{width:160}}),m.jsx(b.Button,{icon:m.jsx(he.ReloadOutlined,{}),onClick:ge,children:"刷新"}),m.jsx(b.Button,{type:"primary",icon:m.jsx(he.PlusOutlined,{}),onClick:X,children:"新建实体"})]}),children:[m.jsx(b.Alert,{type:"info",showIcon:!0,title:"提示: 点击实体的「画布编辑」进入拖拽式建模: 从左侧面板拖字段类型到中间, 拖拽字段行可重排, 右侧编辑属性。",style:{marginBottom:16}}),m.jsx(b.Spin,{spinning:C,children:p.length===0?m.jsx(b.Empty,{description:"暂无实体, 点击右上角 「新建实体」 开始"}):m.jsx(b.Table,{rowKey:"entityCode",columns:dt,dataSource:p,pagination:!1,size:"small",expandable:{expandedRowRender:pe=>m.jsx(n7,{entity:pe})}})})]}),m.jsx(b.Modal,{title:O?`编辑实体 ${O.entityCode}`:"新建实体",open:R,onCancel:()=>N(!1),onOk:ne,width:760,destroyOnHidden:!0,children:m.jsx(l7,{form:L,editing:O})}),m.jsx(b.Drawer,{title:m.jsxs(b.Space,{children:[m.jsx(he.FormatPainterOutlined,{}),O?`画布编辑 - ${O.entityName||O.entityCode}`:"画布编辑",V&&m.jsx(b.Tag,{color:"orange",children:"未保存"})]}),open:te,onClose:()=>{V?b.Modal.confirm({title:"有未保存的修改, 确定关闭?",onOk:()=>{ae(!1),F(!1)}}):ae(!1)},width:"85%",destroyOnHidden:!0,extra:m.jsxs(b.Space,{children:[m.jsx(b.Button,{onClick:Xe,icon:m.jsx(he.DatabaseOutlined,{}),children:"自动建表"}),m.jsx(b.Button,{type:"primary",icon:m.jsx(he.ThunderboltOutlined,{}),disabled:!V,onClick:$e,children:"提交 (UPDATE 事件)"})]}),children:m.jsxs(b.Row,{gutter:16,style:{height:"calc(100vh - 200px)"},children:[m.jsx(b.Col,{span:5,children:m.jsxs(b.Card,{size:"small",title:m.jsxs(m.Fragment,{children:[m.jsx(he.HolderOutlined,{})," 字段类型面板"]}),style:{height:"100%"},bodyStyle:{padding:12,overflowY:"auto",height:"calc(100% - 40px)"},children:[m.jsx("div",{style:{fontSize:12,color:"#999",marginBottom:8},children:"拖拽字段类型到右侧"}),nx.map(pe=>m.jsxs("div",{draggable:!0,onDragStart:Be=>ee(Be,pe.type),onDragEnd:Se,style:{padding:"8px 12px",marginBottom:8,background:D===pe.type?"#e6f4ff":"#fafafa",border:`1px dashed ${pe.color}`,borderRadius:6,cursor:"grab",opacity:D===pe.type?.5:1,transition:"all 0.2s"},children:[m.jsxs(b.Space,{children:[m.jsx("span",{style:{display:"inline-block",width:22,height:22,borderRadius:4,background:pe.color,color:"#fff",textAlign:"center",lineHeight:"22px",fontSize:11,fontWeight:"bold"},children:pe.type.slice(0,2)}),m.jsx("span",{style:{fontWeight:500},children:pe.label})]}),m.jsx("div",{style:{fontSize:11,color:"#888",marginTop:4},children:pe.desc})]},pe.type))]})}),m.jsx(b.Col,{span:12,children:m.jsx(b.Card,{size:"small",title:m.jsxs(b.Space,{children:[m.jsx(he.DatabaseOutlined,{}),"字段列表 (",Y.length,")"]}),style:{height:"100%"},bodyStyle:{padding:8,overflowY:"auto",height:"calc(100% - 40px)"},children:m.jsx("div",{onDragOver:Ue,onDragLeave:Ve,onDrop:Pe,style:{minHeight:"100%",padding:4,border:"2px dashed transparent",borderRadius:6},children:Y.length===0?m.jsx(b.Empty,{description:"从左侧拖拽字段类型到这里",style:{marginTop:80}}):m.jsxs(m.Fragment,{children:[Y.map((pe,Be)=>{const Ke=lx[pe.fieldType]||lx.STRING,rt=Q===Be,wt=U===Be;return m.jsxs(H.Fragment,{children:[k===Be&&m.jsx("div",{style:{height:4,background:"#1677ff",borderRadius:2,margin:"4px 0"}}),m.jsx("div",{draggable:!0,onDragStart:yt=>Ae(yt,Be),onDragEnd:De,onDragOver:yt=>Ie(yt,Be),onDrop:yt=>nt(yt,Be),onClick:()=>ue(Be),style:{padding:"10px 12px",marginBottom:6,background:rt?"#e6f4ff":"#fff",border:`1px solid ${rt?"#1677ff":"#d9d9d9"}`,borderRadius:6,cursor:"grab",opacity:wt?.4:1,transition:"all 0.15s"},children:m.jsxs(b.Space,{style:{width:"100%",justifyContent:"space-between"},children:[m.jsxs(b.Space,{children:[m.jsx(he.HolderOutlined,{style:{color:"#999"}}),m.jsx("span",{style:{display:"inline-block",width:20,height:20,borderRadius:3,background:Ke.color,color:"#fff",textAlign:"center",lineHeight:"20px",fontSize:10},children:pe.fieldType.slice(0,2)}),m.jsx("span",{style:{fontFamily:"monospace",fontWeight:500},children:pe.fieldCode}),m.jsx("span",{children:pe.fieldName}),pe.required&&m.jsx(b.Tag,{color:"red",style:{margin:0},children:"必填"}),pe.dictCode&&m.jsxs(b.Tag,{color:"blue",style:{margin:0},children:["dict:",pe.dictCode]}),pe.refEntity&&m.jsxs(b.Tag,{color:"purple",style:{margin:0},children:["ref:",pe.refEntity]})]}),m.jsxs(b.Space,{size:4,onClick:yt=>yt.stopPropagation(),children:[m.jsx(b.Tooltip,{title:"复制",children:m.jsx(b.Button,{type:"text",size:"small",icon:m.jsx(he.CopyOutlined,{}),onClick:()=>ft(Be)})}),m.jsx(b.Tooltip,{title:"删除",children:m.jsx(b.Button,{type:"text",size:"small",danger:!0,icon:m.jsx(he.DeleteOutlined,{}),onClick:()=>Le(Be)})})]})]})})]},`${pe.fieldCode}-${Be}`)}),k===Y.length&&m.jsx("div",{style:{height:4,background:"#1677ff",borderRadius:2,margin:"4px 0"}})]})})})}),m.jsx(b.Col,{span:7,children:m.jsx(b.Card,{size:"small",title:m.jsxs(m.Fragment,{children:[m.jsx(he.CodeOutlined,{})," 字段属性"]}),style:{height:"100%"},bodyStyle:{padding:12,overflowY:"auto",height:"calc(100% - 40px)"},children:Ct?m.jsx(a7,{field:Ct,onChange:pe=>Rt(Q,pe)}):m.jsx(b.Empty,{description:"点击中间列表中的字段以编辑属性",style:{marginTop:80}})})})]})})]})}function n7({entity:n}){const i=n.fields||[];return i.length===0?m.jsx("span",{style:{color:"#999"},children:"无字段"}):m.jsx(b.Space,{wrap:!0,size:[4,4],children:i.map(r=>m.jsxs(b.Tag,{color:(lx[r.fieldType]||{}).color||"default",children:[r.fieldCode," : ",r.fieldType,r.required?" *":""]},r.fieldCode))})}function l7({form:n,editing:i}){return m.jsxs(b.Form,{form:n,layout:"vertical",children:[m.jsxs(b.Space,{style:{width:"100%"},size:"middle",children:[m.jsx(b.Form.Item,{name:"entityCode",label:"实体编码",rules:[{required:!0,pattern:/^[A-Za-z][A-Za-z0-9_]*$/,message:"字母数字下划线"}],children:m.jsx(b.Input,{disabled:!!i,placeholder:"如 user"})}),m.jsx(b.Form.Item,{name:"entityName",label:"实体名称",children:m.jsx(b.Input,{placeholder:"如 用户"})}),m.jsx(b.Form.Item,{name:"tableName",label:"物理表名",rules:[{required:!0,pattern:/^[A-Za-z][A-Za-z0-9_]*$/,message:"字母数字下划线"}],children:m.jsx(b.Input,{placeholder:"默认 = entityCode"})})]}),m.jsx(b.Form.Item,{name:"description",label:"描述",children:m.jsx(lD,{rows:2})}),m.jsx(b.Form.List,{name:"fields",children:(r,{add:s,remove:f})=>m.jsxs(m.Fragment,{children:[m.jsx("div",{style:{marginBottom:8},children:m.jsx(b.Button,{type:"dashed",onClick:()=>s({fieldType:"STRING",required:!1}),icon:m.jsx(he.PlusOutlined,{}),children:"添加字段"})}),m.jsx(b.Table,{rowKey:p=>p.fieldCode||Math.random(),columns:[{title:"编码",dataIndex:"fieldCode",render:(p,y,S)=>m.jsx(b.Form.Item,{name:[S,"fieldCode"],noStyle:!0,rules:[{required:!0,pattern:/^[A-Za-z][A-Za-z0-9_]*$/,message:"字母数字下划线"}],children:m.jsx(b.Input,{size:"small",placeholder:"userName"})})},{title:"名称",dataIndex:"fieldName",render:(p,y,S)=>m.jsx(b.Form.Item,{name:[S,"fieldName"],noStyle:!0,children:m.jsx(b.Input,{size:"small",placeholder:"用户名"})})},{title:"类型",dataIndex:"fieldType",width:120,render:(p,y,S)=>m.jsx(b.Form.Item,{name:[S,"fieldType"],noStyle:!0,children:m.jsx(b.Select,{size:"small",children:nx.map(T=>m.jsx(nD,{value:T.type,children:T.type},T.type))})})},{title:"必填",dataIndex:"required",width:60,render:(p,y,S)=>m.jsx(b.Form.Item,{name:[S,"required"],noStyle:!0,valuePropName:"checked",children:m.jsx(b.Switch,{size:"small"})})},{title:"字典",dataIndex:"dictCode",width:110,render:(p,y,S)=>m.jsx(b.Form.Item,{name:[S,"dictCode"],noStyle:!0,children:m.jsx(b.Input,{size:"small",placeholder:"可选"})})},{title:"引用",dataIndex:"refEntity",width:110,render:(p,y,S)=>m.jsx(b.Form.Item,{name:[S,"refEntity"],noStyle:!0,children:m.jsx(b.Input,{size:"small",placeholder:"可选"})})},{title:"操作",width:60,render:(p,y,S)=>m.jsx(b.Button,{size:"small",danger:!0,type:"link",onClick:()=>f(S),children:"移除"})}],dataSource:r,pagination:!1,size:"small"})]})})]})}function a7({field:n,onChange:i}){return m.jsx("div",{children:m.jsxs(b.Form,{layout:"vertical",size:"small",children:[m.jsx(b.Form.Item,{label:"字段编码 (物理列名)",required:!0,children:m.jsx(b.Input,{value:n.fieldCode||"",onChange:r=>i({fieldCode:r.target.value}),placeholder:"如 userName"})}),m.jsx(b.Form.Item,{label:"显示名称",children:m.jsx(b.Input,{value:n.fieldName||"",onChange:r=>i({fieldName:r.target.value}),placeholder:"如 用户名"})}),m.jsx(b.Form.Item,{label:"字段类型",children:m.jsx(b.Select,{value:n.fieldType||"STRING",onChange:r=>i({fieldType:r}),style:{width:"100%"},children:nx.map(r=>m.jsxs(nD,{value:r.type,children:[r.label," (",r.type,")"]},r.type))})}),m.jsx(b.Form.Item,{label:"必填",children:m.jsx(b.Switch,{checked:!!n.required,onChange:r=>i({required:r})})}),(n.fieldType==="STRING"||n.fieldType==="TEXT")&&m.jsx(b.Form.Item,{label:"字段长度",children:m.jsx(b.InputNumber,{value:n.fieldLength,onChange:r=>i({fieldLength:r}),min:1,max:65535,style:{width:"100%"}})}),n.fieldType==="DECIMAL"&&m.jsx(b.Form.Item,{label:"小数位数",children:m.jsx(b.InputNumber,{value:n.scale,onChange:r=>i({scale:r}),min:0,max:10,style:{width:"100%"}})}),m.jsx(b.Form.Item,{label:"默认值",children:m.jsx(b.Input,{value:n.defaultValue||"",onChange:r=>i({defaultValue:r.target.value}),placeholder:"可选"})}),m.jsx(b.Form.Item,{label:"字典编码 (dictCode)",children:m.jsx(b.Input,{value:n.dictCode||"",onChange:r=>i({dictCode:r.target.value}),placeholder:"如 user_status"})}),m.jsx(b.Form.Item,{label:"引用实体 (refEntity)",children:m.jsx(b.Input,{value:n.refEntity||"",onChange:r=>i({refEntity:r.target.value}),placeholder:"如 其他 entity 的 entityCode"})}),m.jsx(b.Form.Item,{label:"排序号",children:m.jsx(b.InputNumber,{value:n.sortOrder??0,onChange:r=>i({sortOrder:r}),style:{width:"100%"}})}),m.jsx(b.Form.Item,{label:"备注",children:m.jsx(lD,{rows:2,value:n.description||"",onChange:r=>i({description:r.target.value})})})]})})}const{Option:o7}=b.Select,oD={STRING:{component:b.Input,props:{}},TEXT:{component:b.Input.TextArea,props:{rows:3}},INT:{component:b.InputNumber,props:{}},LONG:{component:b.InputNumber,props:{}},DECIMAL:{component:b.InputNumber,props:{step:.01}},BOOLEAN:{component:b.Switch,props:{}},DATE:{component:b.DatePicker,props:{format:"YYYY-MM-DD"}},DATETIME:{component:b.DatePicker,props:{format:"YYYY-MM-DD HH:mm:ss",showTime:!0}},JSON:{component:b.Input.TextArea,props:{rows:3,placeholder:"JSON 字符串"}},REF:{component:b.InputNumber,props:{}}};function iD(){const{entity:n}=ro.useParams(),[i]=ro.useSearchParams(),r=i.get("appCode")||"demo",s=i.get("tenant")||localStorage.getItem("z_tenant")||"default",[f,p]=H.useState([]),[y,S]=H.useState(null),[T,C]=H.useState([]),[j,O]=H.useState(0),[A,R]=H.useState(1),[N,L]=H.useState(10),[D,_]=H.useState(!1),[U,B]=H.useState(!1),[k,G]=H.useState(null),[Y]=b.Form.useForm(),[P,Q]=H.useState({}),ue=H.useCallback(async()=>{try{const ne=await _n.get(`/lc/app/${r}/schema`,{params:{tenantCode:s}});p(Array.isArray(ne)?ne:[]);const ee=(ne||[]).find(Se=>Se.entityCode===n);S(ee||null)}catch(ne){b.message.error("加载 schema 失败: "+((ne==null?void 0:ne.message)||"未知错误")),p([]),S(null)}},[r,s,n]),V=H.useCallback(async ne=>{if(!ne||P[ne])return P[ne]||[];try{const ee=await _n.get("/dict/items/get",{params:{dictCode:ne}}),Ae=(Array.isArray(ee)?ee:[]).map(De=>({value:De.itemValue??De.itemCode,label:De.itemName??De.itemLabel??De.itemCode}));return Q(De=>({...De,[ne]:Ae})),Ae}catch{return[]}},[P]),F=H.useCallback(async()=>{if(y){_(!0);try{const ne=await _n.post(`/lc/runtime/${y.entityCode}/list`,{tenantCode:s,appCode:r,entityCode:y.entityCode,page:A,size:N});C((ne==null?void 0:ne.records)||[]),O((ne==null?void 0:ne.total)||0)}catch(ne){b.message.error("查询失败: "+((ne==null?void 0:ne.message)||"未知错误")),C([]),O(0)}finally{_(!1)}}},[y,s,r,A,N]);if(H.useEffect(()=>{ue()},[ue]),H.useEffect(()=>{F()},[F]),H.useEffect(()=>{!y||!y.fields||y.fields.forEach(ne=>{ne.dictCode&&V(ne.dictCode)})},[y,V]),!n)return m.jsx(b.Empty,{description:"缺少实体编码 (路径变量 :entity)"});if(!y)return m.jsx(b.Card,{title:m.jsxs(m.Fragment,{children:[m.jsx(he.DatabaseOutlined,{})," z-lc 运行时"]}),children:m.jsx(b.Alert,{type:"warning",showIcon:!0,title:`实体 ${n} 未定义`,description:`请先在 模型编辑器 (路径 /form/_model?appCode=${r}) 中定义实体, 然后刷新此页.`})});const te=y.fields||[],ae=()=>{G(null),Y.resetFields(),B(!0)},ge=async ne=>{G(ne);try{const ee=await _n.post(`/lc/runtime/${y.entityCode}/get`,{tenantCode:s,appCode:r,entityCode:y.entityCode,id:ne.id});Y.resetFields(),Y.setFieldsValue(ee||ne)}catch{Y.resetFields(),Y.setFieldsValue(ne)}B(!0)},He=ne=>{b.Modal.confirm({title:"确定删除?",content:`id=${ne.id}`,okType:"danger",onOk:async()=>{try{await _n.post(`/lc/runtime/${y.entityCode}/delete`,{tenantCode:s,appCode:r,entityCode:y.entityCode,id:ne.id}),b.message.success("删除成功"),F()}catch(ee){b.message.error("删除失败: "+((ee==null?void 0:ee.message)||"未知错误"))}}})},X=async()=>{try{const ne=await Y.validateFields(),ee={tenantCode:s,appCode:r,entityCode:y.entityCode,fieldValues:{...ne}};k?(ee.fieldValues.id=k.id,await _n.post(`/lc/runtime/${y.entityCode}/update`,ee),b.message.success("更新成功")):(await _n.post(`/lc/runtime/${y.entityCode}/create`,ee),b.message.success("创建成功")),B(!1),F()}catch(ne){ne!=null&&ne.errorFields?b.message.error("请补全必填字段"):b.message.error("提交失败: "+((ne==null?void 0:ne.message)||"未知错误"))}},ie=(ne,ee)=>{const Se=ee[ne.fieldCode],Ae=ne.fieldCode+"_label";if(ee[Ae]!=null)return m.jsx(b.Tag,{children:ee[Ae]});if(Se==null)return"-";if(ne.fieldType==="BOOLEAN")return Se?"是":"否";if(ne.fieldType==="DATETIME"||ne.fieldType==="DATE")try{return new Date(Se).toLocaleString()}catch{return String(Se)}return String(Se)},me=[{title:"ID",dataIndex:"id",key:"id",width:80},...te.map(ne=>({title:ne.fieldName||ne.fieldCode,dataIndex:ne.fieldCode,key:ne.fieldCode,render:(ee,Se)=>ie(ne,Se)})),{title:"操作",key:"action",width:180,fixed:"right",render:(ne,ee)=>m.jsxs(b.Space,{children:[m.jsx(b.Button,{type:"link",icon:m.jsx(he.EditOutlined,{}),onClick:()=>ge(ee),children:"编辑"}),m.jsx(b.Button,{type:"link",danger:!0,icon:m.jsx(he.DeleteOutlined,{}),onClick:()=>He(ee),children:"删除"})]})}],fe=ne=>{const ee=(ne.fieldType||"STRING").toUpperCase();if(ne.dictCode){const De=P[ne.dictCode]||[];return m.jsx(b.Select,{placeholder:`选择 ${ne.fieldName||ne.fieldCode}`,allowClear:!0,showSearch:!0,optionFilterProp:"label",children:De.map(Ue=>m.jsx(o7,{value:Ue.value,label:Ue.label,children:Ue.label},Ue.value))})}const Se=oD[ee]||oD.STRING,Ae=Se.component;return m.jsx(Ae,{...Se.props,placeholder:ne.fieldName||ne.fieldCode})};return m.jsxs(b.Card,{title:m.jsxs(m.Fragment,{children:[m.jsx(he.DatabaseOutlined,{})," ",y.entityName||y.entityCode," (运行时 CRUD)"]}),extra:m.jsxs(b.Space,{children:[m.jsx(b.Button,{icon:m.jsx(he.ReloadOutlined,{}),onClick:F,children:"刷新"}),m.jsx(b.Button,{type:"primary",icon:m.jsx(he.PlusOutlined,{}),onClick:ae,children:"新增"})]}),children:[m.jsx(b.Alert,{type:"info",showIcon:!0,title:`App=${r} · Tenant=${s} · 字段数=${te.length}`,style:{marginBottom:16}}),m.jsx(b.Spin,{spinning:D,children:m.jsx(b.Table,{rowKey:"id",columns:me,dataSource:T,pagination:{current:A,pageSize:N,total:j,showSizeChanger:!0,showTotal:ne=>`共 ${ne} 条`,onChange:(ne,ee)=>{R(ne),L(ee)}},scroll:{x:"max-content"},size:"small"})}),m.jsx(b.Modal,{title:k?`编辑 #${k.id}`:"新增记录",open:U,onCancel:()=>B(!1),onOk:X,width:680,destroyOnHidden:!0,children:m.jsx(b.Form,{form:Y,layout:"vertical",children:te.map(ne=>m.jsx(b.Form.Item,{name:ne.fieldCode,label:m.jsxs("span",{children:[ne.fieldName||ne.fieldCode,ne.required&&m.jsx("span",{style:{color:"red"},children:" *"}),m.jsx(b.Tag,{style:{marginLeft:8},children:ne.fieldType})]}),rules:ne.required?[{required:!0,message:"必填"}]:[],children:fe(ne)},ne.fieldCode))})})]})}const i7=()=>{const{entity:n}=ro.useParams();return n?n==="_model"?m.jsx(aD,{}):m.jsx(iD,{}):m.jsxs("div",{style:{padding:24},children:["缺少实体编码. 请访问 ",m.jsx("code",{children:"/form/_model"})," 编辑模型, 或 ",m.jsx("code",{children:"/form/{entityCode}"})," 运行时 CRUD."]})},{Text:ky,Paragraph:Yq}=b.Typography,{TextArea:r7}=b.Input,rD={PENDING:"default",GENERATING:"processing",READY:"success",FAILED:"error"},sD={Entity:"blue",Mapper:"cyan",Service:"green",ServiceImpl:"lime",Controller:"orange",ReactPage:"purple",File:"default"};function s7(){const i=new URLSearchParams(window.location.search).get("appCode")||"demo",[r]=H.useState(i),[s,f]=H.useState([]),[p,y]=H.useState(!1),[S,T]=H.useState(!1),[C,j]=H.useState(!1),[O,A]=H.useState([]),[R,N]=H.useState(null),[L,D]=H.useState([]),[_]=b.Form.useForm();H.useEffect(()=>{U(),B()},[r]);const U=async()=>{y(!0);try{const V=await _n.get(`/lc/app/${r}/materialize/list`,{params:{limit:50}});f((V==null?void 0:V.data)||[])}catch{b.message.warning("加载批次列表失败")}finally{y(!1)}},B=async()=>{var V;try{const F=await _n.get(`/lc/app/${r}/schema`),te=((V=F==null?void 0:F.data)==null?void 0:V.entities)||(F==null?void 0:F.data)||[];D(te)}catch{}},k=async()=>{var V;try{const F=await _.validateFields(),te={appCode:r,materializationPath:F.materializationPath,entityCodes:(V=F.entityCodes)!=null&&V.length?F.entityCodes:null,description:F.description,triggerSource:"USER"};await _n.post(`/lc/app/${r}/materialize`,te),b.message.success("物化已触发,请稍后查看状态"),T(!1),_.resetFields(),U()}catch(F){F!=null&&F.errorFields||b.message.error("触发失败:"+((F==null?void 0:F.message)||"未知错误"))}},G=async V=>{try{const F=await _n.get(`/lc/app/${r}/materialize/diff`,{params:{id:V.id}}),te=(F==null?void 0:F.data)||[];A(te),j(!0),N(null)}catch{b.message.error("加载文件清单失败")}},Y=V=>{var F;try{(F=navigator.clipboard)==null||F.writeText(V),b.message.success("已复制到剪贴板")}catch{b.message.warning("复制失败")}},P=V=>{const F=new Blob([V.content],{type:"text/plain;charset=utf-8"}),te=URL.createObjectURL(F),ae=document.createElement("a");ae.href=te,ae.download=V.relativePath.split("/").pop(),ae.click(),URL.revokeObjectURL(te)},Q=[{title:"批次号",dataIndex:"exportVersion",width:180,render:V=>m.jsx(ky,{code:!0,children:V})},{title:"状态",dataIndex:"status",width:100,render:V=>m.jsx(b.Badge,{status:rD[V]==="success"?"success":rD[V]==="error"?"error":"processing",text:V})},{title:"文件数",dataIndex:"fileCount",width:80,align:"center",render:V=>V||0},{title:"来源",dataIndex:"triggerSource",width:80,render:V=>m.jsx(b.Tag,{children:V})},{title:"路径",dataIndex:"materializationPath",ellipsis:!0,render:V=>m.jsx(ky,{type:"secondary",style:{fontSize:12},children:V})},{title:"创建时间",dataIndex:"createTime",width:170},{title:"操作",key:"action",width:200,fixed:"right",render:(V,F)=>m.jsx(b.Space,{size:"small",children:m.jsx(b.Button,{size:"small",type:"link",icon:m.jsx(he.FileTextOutlined,{}),onClick:()=>G(F),disabled:F.status!=="READY"&&F.status!=="GENERATING",children:"查看文件"})})}],ue=[{title:"类型",dataIndex:"type",width:100,render:V=>m.jsx(b.Tag,{color:sD[V]||"default",children:V})},{title:"Entity",dataIndex:"entityCode",width:120,render:V=>V?m.jsx(ky,{code:!0,children:V}):"-"},{title:"相对路径",dataIndex:"relativePath",ellipsis:!0,render:V=>m.jsx(ky,{code:!0,style:{fontSize:12},children:V})},{title:"大小",dataIndex:"sizeBytes",width:90,render:V=>`${(V/1024).toFixed(1)}KB`},{title:"操作",key:"action",width:200,fixed:"right",render:(V,F)=>m.jsxs(b.Space,{size:"small",children:[m.jsx(b.Button,{size:"small",type:"link",onClick:()=>N(F),children:"预览"}),m.jsx(b.Button,{size:"small",type:"link",icon:m.jsx(he.CopyOutlined,{}),onClick:()=>Y(F.content),children:"复制"}),m.jsx(b.Button,{size:"small",type:"link",icon:m.jsx(he.DownloadOutlined,{}),onClick:()=>P(F),children:"下载"})]})}];return m.jsxs("div",{style:{padding:16},children:[m.jsxs(b.Card,{children:[m.jsx(b.Alert,{type:"info",showIcon:!0,icon:m.jsx(he.CodeOutlined,{}),style:{marginBottom:16},message:`z-lc 代码物化 (FEATURE006 T1) — App: ${r}`,description:"将低代码定义的 entity/field 渲染为可编译的 Java (Entity/Mapper/Service/Controller) + React 页面代码。导出是异步的, 完成后可在此查看文件清单。"}),m.jsxs(b.Space,{style:{marginBottom:16},children:[m.jsx(b.Button,{icon:m.jsx(he.ReloadOutlined,{}),onClick:U,children:"刷新"}),m.jsx(b.Button,{type:"primary",icon:m.jsx(he.ExportOutlined,{}),onClick:()=>T(!0),children:"导出代码"}),m.jsx(b.Button,{icon:m.jsx(he.HistoryOutlined,{}),onClick:()=>b.message.info(`共 ${s.length} 个历史批次`),children:"历史"})]}),m.jsx(b.Table,{dataSource:s,columns:Q,rowKey:"id",loading:p,pagination:{pageSize:10},size:"small",scroll:{x:1e3}})]}),m.jsx(b.Modal,{title:"触发代码物化",open:S,onCancel:()=>T(!1),onOk:k,okText:"开始导出",width:600,children:m.jsxs(b.Form,{form:_,layout:"vertical",style:{marginTop:16},initialValues:{materializationPath:`app-${r}/v1`},children:[m.jsx(b.Form.Item,{name:"materializationPath",label:"导出根路径 (相对沙箱默认根)",rules:[{required:!0,message:"请输入路径"}],extra:"默认根: ${user.home}/z-lc-materialized. 如需写入绝对路径, 服务端需配置 z-lc.materialize.allow-absolute-path=true",children:m.jsx(b.Input,{placeholder:`app-${r}/v1`})}),m.jsx(b.Form.Item,{name:"entityCodes",label:"导出的 entity (留空 = 全量)",children:m.jsx(b.Select,{mode:"multiple",placeholder:"选择 entity",allowClear:!0,options:L.map(V=>({value:V.entityCode,label:`${V.entityCode} (${V.tableName})`}))})}),m.jsx(b.Form.Item,{name:"description",label:"备注",children:m.jsx(r7,{rows:2,placeholder:"本次导出的业务说明"})})]})}),m.jsx(b.Modal,{title:`物化文件清单 (${O.length} 个)`,open:C,onCancel:()=>{j(!1),N(null)},footer:m.jsx(b.Button,{onClick:()=>{j(!1),N(null)},children:"关闭"}),width:R?1100:800,children:R?m.jsxs("div",{children:[m.jsxs(b.Space,{style:{marginBottom:8},children:[m.jsx(b.Button,{onClick:()=>N(null),children:"← 返回清单"}),m.jsx(ky,{strong:!0,children:R.relativePath}),m.jsx(b.Tag,{color:sD[R.type]||"default",children:R.type}),m.jsx(b.Button,{size:"small",icon:m.jsx(he.CopyOutlined,{}),onClick:()=>Y(R.content),children:"复制"}),m.jsx(b.Button,{size:"small",icon:m.jsx(he.DownloadOutlined,{}),onClick:()=>P(R),children:"下载"})]}),m.jsx("pre",{style:{background:"#1e1e1e",color:"#d4d4d4",padding:16,borderRadius:8,maxHeight:500,overflow:"auto",fontSize:12,fontFamily:"Menlo, Monaco, monospace"},children:R.content})]}):m.jsx(b.Table,{dataSource:O,columns:ue,rowKey:"relativePath",pagination:{pageSize:20},size:"small",scroll:{x:700}})})]})}const{TextArea:cD}=b.Input;function uD({open:n,onClose:i,onSuccess:r,envOptions:s=[]}){const[f,p]=H.useState("paste"),[y,S]=H.useState(""),[T,C]=H.useState(null),[j,O]=H.useState(null),[A,R]=H.useState(!1),[N,L]=H.useState([]),[D,_]=H.useState(!1),[U]=b.Form.useForm(),B=H.useRef(null),k=()=>{S(""),C(null),O(null),L([]),U.resetFields()},G=()=>{k(),i()},Y=async()=>{if(!y.trim()){b.message.warning("请先粘贴或上传 API 规约");return}O(null),R(!0);try{const F=await Bt.openapi.parse(y);F.success?(C(F),L((F.endpoints||[]).map((te,ae)=>ae)),U.setFieldsValue({envCode:s[0]||"default",projectCode:"default",defaultResponse:`{
444
- "code": 0,
445
- "message": "ok",
446
- "data": {}
447
- }`,defaultStatus:200,priority:5,tagPrefix:"openapi-import"}),b.message.success(`识别为 ${F.format},共 ${F.count} 个端点`)):O(F.message||"解析失败")}catch(F){O(String((F==null?void 0:F.message)||F))}finally{R(!1)}},P=async F=>{try{const te=await Bt.openapi.sample(F);te.success&&(S(te.content),b.message.success(`已加载 ${te.format} 示例`))}catch(te){b.message.error("加载示例失败: "+te.message)}},Q=F=>{const te=new FileReader;return te.onload=ae=>{var ge;S(String(((ge=ae.target)==null?void 0:ge.result)||"")),b.message.success(`已读取 ${F.name}(${(F.size/1024).toFixed(1)}KB)`)},te.onerror=()=>b.message.error("文件读取失败"),te.readAsText(F),!1},ue=async()=>{if(!T){b.message.warning("请先解析");return}let F;try{F=await U.validateFields()}catch{return}_(!0);try{const te=(T.endpoints||[]).map((ge,He)=>({method:ge.method,path:ge.path})).filter((ge,He)=>N.includes(He)),ae=await Bt.openapi.importBatch({content:y,selected:te,envCode:F.envCode,projectCode:F.projectCode,defaultResponse:F.defaultResponse,defaultStatus:F.defaultStatus,priority:F.priority,tagPrefix:F.tagPrefix});ae.success?(b.message.success(`已导入 ${ae.imported} 个 Mock 端点${ae.failed>0?`,失败 ${ae.failed}`:""}`),r&&r(ae),G()):b.message.error(ae.message||"导入失败")}catch(te){b.message.error(String((te==null?void 0:te.message)||te))}finally{_(!1)}},V=[{title:"Method",dataIndex:"method",width:90,render:F=>m.jsx(b.Tag,{color:c7(F),children:F})},{title:"Path",dataIndex:"path",width:240,ellipsis:!0},{title:"Summary",dataIndex:"summary",ellipsis:!0},{title:"Tags",dataIndex:"tags",width:160,render:F=>(F||[]).map(te=>m.jsx(b.Tag,{children:te},te))},{title:"Params",dataIndex:"parameters",width:80,render:F=>(F==null?void 0:F.length)||0,align:"center"},{title:"示例",dataIndex:"responseExample",width:80,render:F=>F?m.jsx(b.Tag,{color:"green",children:"有"}):m.jsx(b.Tag,{children:"无"})}];return m.jsxs(b.Modal,{title:m.jsxs(b.Space,{children:[m.jsx(he.CloudUploadOutlined,{})," 批量导入 API 规约"]}),open:n,onCancel:G,footer:null,width:1100,destroyOnHidden:!0,children:[m.jsx(b.Tabs,{activeKey:f,onChange:p,items:[{key:"paste",label:m.jsxs("span",{children:[m.jsx(he.FileTextOutlined,{})," 粘贴 JSON"]}),children:m.jsxs("div",{children:[m.jsx(cD,{value:y,onChange:F=>S(F.target.value),placeholder:"粘贴 OpenAPI 3.x / Swagger 2.0 / Postman v2.1 JSON 内容…",autoSize:{minRows:6,maxRows:16},style:{fontFamily:"Menlo, Monaco, monospace",fontSize:12}}),m.jsxs(b.Space,{style:{marginTop:8},children:[m.jsx(b.Button,{size:"small",onClick:()=>P("openapi3"),children:"加载 OpenAPI 3 示例"}),m.jsx(b.Button,{size:"small",onClick:()=>P("swagger2"),children:"加载 Swagger 2 示例"}),m.jsx(b.Button,{size:"small",onClick:()=>P("postman"),children:"加载 Postman 示例"})]})]})},{key:"upload",label:m.jsxs("span",{children:[m.jsx(he.FileAddOutlined,{})," 上传文件"]}),children:m.jsxs(b.Upload.Dragger,{ref:B,accept:".json,.yaml,.yml,application/json,text/yaml",beforeUpload:Q,showUploadList:!1,style:{padding:24},children:[m.jsx("p",{className:"ant-upload-drag-icon",children:m.jsx(he.CloudUploadOutlined,{style:{fontSize:48,color:"#1890ff"}})}),m.jsx("p",{className:"ant-upload-text",children:"点击或拖拽 JSON / YAML 文件到此处"}),m.jsx("p",{className:"ant-upload-hint",children:"支持 OpenAPI 3.x / Swagger 2.0 / Postman v2.1"})]})}]}),m.jsxs(b.Space,{style:{marginTop:12},children:[m.jsx(b.Button,{type:"primary",icon:m.jsx(he.ThunderboltOutlined,{}),onClick:Y,loading:A,children:"解析"}),T&&m.jsx(b.Tag,{color:"blue",children:T.format}),T&&m.jsxs(b.Tag,{children:["共 ",T.count," 个端点,已选 ",N.length]})]}),j&&m.jsx(b.Alert,{type:"error",showIcon:!0,style:{marginTop:12},title:"解析失败",description:j}),T&&m.jsx(b.Card,{size:"small",style:{marginTop:16},title:"预览(可勾选要导入的)",children:m.jsx(b.Table,{size:"small",dataSource:T.endpoints||[],columns:V,rowKey:(F,te)=>te,rowSelection:{selectedRowKeys:N,onChange:L},pagination:{pageSize:8},scroll:{y:280}})}),T&&m.jsx(b.Card,{size:"small",style:{marginTop:16},title:"导入配置",children:m.jsxs(b.Form,{form:U,layout:"vertical",children:[m.jsxs(b.Row,{gutter:16,children:[m.jsx(b.Col,{span:6,children:m.jsx(b.Form.Item,{name:"envCode",label:"环境",rules:[{required:!0}],children:s.length>0?m.jsx(b.Select,{options:s.map(F=>({value:F,label:F}))}):m.jsx(b.Input,{})})}),m.jsx(b.Col,{span:6,children:m.jsx(b.Form.Item,{name:"projectCode",label:"项目",children:m.jsx(b.Input,{})})}),m.jsx(b.Col,{span:4,children:m.jsx(b.Form.Item,{name:"defaultStatus",label:"默认状态码",children:m.jsx(b.Input,{type:"number"})})}),m.jsx(b.Col,{span:4,children:m.jsx(b.Form.Item,{name:"priority",label:"优先级",children:m.jsx(b.Input,{type:"number"})})}),m.jsx(b.Col,{span:4,children:m.jsx(b.Form.Item,{name:"tagPrefix",label:"Tag 前缀",children:m.jsx(b.Input,{})})})]}),m.jsx(b.Form.Item,{name:"defaultResponse",label:"默认响应(无 example 时使用)",children:m.jsx(cD,{autoSize:{minRows:3,maxRows:6},style:{fontFamily:"Menlo, Monaco, monospace"}})}),m.jsxs(b.Button,{type:"primary",size:"large",icon:m.jsx(he.ImportOutlined,{}),onClick:ue,loading:D,disabled:N.length===0,children:["批量导入 ",N.length," 个端点"]})]})})]})}function c7(n){return{GET:"blue",POST:"green",PUT:"orange",DELETE:"red",PATCH:"purple"}[n]||"default"}const{Text:Iy,Paragraph:Xq}=b.Typography,fD=[{group:"基础数据",icon:m.jsx(he.CodeOutlined,{}),items:[{syntax:"@uuid",desc:"随机 UUID",example:"a3f2e1b7-8c4d-4e6f-9a1b-2c3d4e5f6a7b"},{syntax:"@int(1, 100)",desc:"随机整数(含边界)",example:"42"},{syntax:"@int",desc:"随机整数(0-1000)",example:"731"},{syntax:"@boolean",desc:"随机布尔",example:"true"},{syntax:'@pick("a","b","c")',desc:"从列表随机取一项",example:'"b"'}]},{group:"时间相关",icon:m.jsx(he.FunctionOutlined,{}),items:[{syntax:"@datetime",desc:"当前时间 (yyyy-MM-dd HH:mm:ss)",example:"2026-06-17 22:30:15"},{syntax:"@date",desc:"当前日期 (yyyy-MM-dd)",example:"2026-06-17"},{syntax:"@time",desc:"当前时间戳 (毫秒)",example:"1718639415000"},{syntax:"@timestamp",desc:"Unix 秒级时间戳",example:"1718639415"}]},{group:"文本生成",icon:m.jsx(he.FunctionOutlined,{}),items:[{syntax:"@name",desc:"随机中文姓名",example:"张伟"},{syntax:"@firstName",desc:"随机名",example:"伟"},{syntax:"@lastName",desc:"随机姓",example:"张"},{syntax:"@email",desc:"随机邮箱",example:"zhangwei@example.com"},{syntax:"@phone",desc:"随机手机号(中国)",example:"13812345678"},{syntax:"@idCard",desc:"随机身份证号",example:"110101199003078234"},{syntax:"@word",desc:"随机英文单词",example:"horizon"},{syntax:"@sentence(5, 10)",desc:"随机句子 (5-10 词)",example:"The quick brown fox jumps."},{syntax:"@paragraph(3, 5)",desc:"随机段落 (3-5 句)",example:"..."}]},{group:"序列与状态",icon:m.jsx(he.FunctionOutlined,{}),items:[{syntax:"@sequence(1)",desc:"自增序号(每次调用 +1,1 起始)",example:"1, 2, 3, ..."},{syntax:"@sequence(100, 5)",desc:"自增序号(100 起始,步长 5)",example:"100, 105, 110, ..."}]},{group:"请求上下文",icon:m.jsx(he.FunctionOutlined,{}),items:[{syntax:"#path.id",desc:"从 URL 路径取值 /users/123 → 123",example:"123"},{syntax:"#query.page",desc:"从 query string 取值 ?page=2",example:"2"},{syntax:"#header.X-Token",desc:"从请求头取值",example:"abc.def.ghi"},{syntax:"#body.username",desc:"从请求体 JSON 取值",example:'"alice"'}]}];function dD({onInsert:n,form:i,formField:r="responseTemplate"}){const[s,f]=H.useState(""),p=O=>{var A;try{(A=navigator.clipboard)==null||A.writeText(O)}catch{}if(n)n(O);else if(i){const R=i.getFieldValue(r)||"";i.setFieldsValue({[r]:R+(R.endsWith(`
448
- `)||!R?"":" ")+O})}b.message.success(`已插入: ${O}`)},y=O=>{var A;try{(A=navigator.clipboard)==null||A.writeText(O),b.message.success("已复制到剪贴板")}catch{b.message.warning("复制失败,请手动选择")}},S=s.toLowerCase(),T=fD.map(O=>({...O,items:O.items.filter(A=>!S||A.syntax.toLowerCase().includes(S)||A.desc.toLowerCase().includes(S)||A.example.toLowerCase().includes(S))})).filter(O=>O.items.length>0),C=fD.reduce((O,A)=>O+A.items.length,0),j=T.reduce((O,A)=>O+A.items.length,0);return m.jsxs(b.Card,{size:"small",title:m.jsxs(b.Space,{children:[m.jsx(he.CodeOutlined,{}),m.jsx(Iy,{strong:!0,children:"模板表达式"}),m.jsxs(b.Tag,{color:"blue",children:[j,"/",C]}),m.jsx(b.Tooltip,{title:"点击按钮即可插入到上方响应模板;点击 syntax 文本可复制",children:m.jsx(he.InfoCircleOutlined,{style:{color:"#999"}})})]}),extra:m.jsx(b.Input,{size:"small",placeholder:"搜索 @ 表达式",prefix:m.jsx(he.SearchOutlined,{}),value:s,onChange:O=>f(O.target.value),style:{width:180},allowClear:!0}),style:{marginTop:8,background:"#fafafa"},styles:{body:{padding:12,maxHeight:320,overflow:"auto"}},children:[T.length===0&&m.jsx(Iy,{type:"secondary",style:{display:"block",textAlign:"center",padding:16},children:"没有匹配的表达式"}),T.map(O=>m.jsxs("div",{style:{marginBottom:12},children:[m.jsxs(b.Space,{size:4,style:{marginBottom:6},children:[O.icon,m.jsx(Iy,{strong:!0,style:{fontSize:13},children:O.group}),m.jsx(b.Tag,{children:O.items.length})]}),m.jsx(b.Row,{gutter:[8,8],children:O.items.map(A=>m.jsx(b.Col,{span:24,children:m.jsxs("div",{style:{display:"flex",alignItems:"center",padding:"6px 8px",background:"#fff",border:"1px solid #f0f0f0",borderRadius:4,gap:8},children:[m.jsx(b.Tooltip,{title:"点击复制",children:m.jsx(Iy,{code:!0,style:{cursor:"pointer",minWidth:140,fontSize:12},onClick:()=>y(A.syntax),children:A.syntax})}),m.jsx(Iy,{type:"secondary",style:{fontSize:12,flex:1},children:A.desc}),m.jsx(b.Tag,{color:"default",style:{margin:0,fontFamily:"monospace"},children:A.example}),m.jsx(b.Tooltip,{title:"插入到响应模板",children:m.jsx(b.Button,{size:"small",type:"text",icon:m.jsx(he.CopyOutlined,{}),onClick:()=>p(A.syntax)})})]})},A.syntax))})]},O.group))]})}const{TextArea:jd}=b.Input,{Text:bc,Paragraph:u7}=b.Typography,f7=[{value:"GET",label:"GET"},{value:"POST",label:"POST"},{value:"PUT",label:"PUT"},{value:"DELETE",label:"DELETE"},{value:"PATCH",label:"PATCH"}],hD={GET:"green",POST:"blue",PUT:"orange",DELETE:"red",PATCH:"purple"},d7=[{value:"NONE",label:"无故障"},{value:"TIMEOUT",label:"超时 (TIMEOUT)"},{value:"EMPTY_RESPONSE",label:"空响应 (EMPTY)"},{value:"RANDOM_DROP",label:"随机丢弃 (RANDOM_DROP)"},{value:"MALFORMED",label:"畸形响应 (MALFORMED)"},{value:"500_ERROR",label:"500 错误"},{value:"RATE_LIMIT",label:"限流 (RATE_LIMIT)"}],h7=[{value:"JSON",label:"JSON"},{value:"JSONPATH",label:"JSONPath"},{value:"REGEX",label:"正则"},{value:"TEXT",label:"纯文本"}];function ax({activeEnvCode:n}){const[i,r]=H.useState([]),[s,f]=H.useState(!1),[p,y]=H.useState(null),[S,T]=H.useState(!1),[C,j]=H.useState(null),[O]=b.Form.useForm(),[A,R]=H.useState(!1),[N,L]=H.useState(null),[D,_]=H.useState(!1);H.useEffect(()=>{U()},[n]);const U=async()=>{f(!0),y(null);try{const V=await Bt.endpoints.list(n);r(Array.isArray(V)?V:[])}catch(V){y((V==null?void 0:V.message)||"API unavailable"),r([])}finally{f(!1)}},B=()=>{j(null),O.resetFields(),O.setFieldsValue({method:"GET",statusCode:200,delayMs:0,priority:5,envCode:n||"default",matchBodyType:"JSON",faultType:"NONE",status:1}),T(!0)},k=V=>{j(V),O.setFieldsValue(V),T(!0)},G=async()=>{try{const V=await O.validateFields();C?(await Bt.endpoints.update(C.mockCode,V),b.message.success("更新成功")):(await Bt.endpoints.create(V),b.message.success("创建成功")),T(!1),U()}catch(V){if(V!=null&&V.errorFields)return;b.message.error("保存失败: "+((V==null?void 0:V.message)||""))}},Y=async V=>{try{await Bt.endpoints.delete(V),b.message.success("删除成功"),U()}catch{b.message.error("删除失败")}},P=async V=>{const F=V.status===1?0:1;try{await Bt.endpoints.toggle(V.mockCode,F),b.message.success(F===1?"已启用":"已禁用"),U()}catch{b.message.error("操作失败")}},Q=V=>`${window.location.origin}/api/mock/${V.envCode||n||"default"}${V.path||""}`,ue=[{title:"路径",dataIndex:"path",key:"path",width:280,render:(V,F)=>m.jsxs(b.Space,{children:[m.jsx(b.Tag,{color:hD[F.method]||"default",children:F.method}),m.jsx(bc,{code:!0,copyable:{text:V},children:V})]})},{title:"编码",dataIndex:"mockCode",key:"mockCode",width:160},{title:"优先级",dataIndex:"priority",key:"priority",width:80,align:"center",render:V=>m.jsxs(b.Tag,{color:"blue",children:["P",V||5]})},{title:"状态码",dataIndex:"statusCode",key:"statusCode",width:80,align:"center"},{title:"延迟",dataIndex:"delayMs",key:"delayMs",width:80,align:"center",render:V=>V>0?m.jsxs(bc,{type:"warning",children:[V,"ms"]}):m.jsx(bc,{type:"secondary",children:"-"})},{title:"故障",dataIndex:"faultType",key:"faultType",width:110,render:V=>V&&V!=="NONE"?m.jsx(b.Tag,{color:"red",children:V}):m.jsx(bc,{type:"secondary",children:"-"})},{title:"场景",dataIndex:"scenarioCode",key:"scenarioCode",width:130,render:V=>V?m.jsx(b.Tag,{color:"purple",children:V}):m.jsx(bc,{type:"secondary",children:"-"})},{title:"命中",dataIndex:"hitCount",key:"hitCount",width:80,align:"center",render:V=>m.jsx(bc,{strong:!0,children:V||0})},{title:"状态",key:"status",width:100,align:"center",render:(V,F)=>m.jsx(b.Switch,{checked:F.status===1,onChange:()=>P(F),checkedChildren:"启用",unCheckedChildren:"禁用",size:"small"})},{title:"操作",key:"action",width:220,fixed:"right",render:(V,F)=>m.jsxs(b.Space,{size:"small",children:[m.jsx(b.Tooltip,{title:"预览响应",children:m.jsx(b.Button,{size:"small",type:"link",icon:m.jsx(he.PlayCircleOutlined,{}),onClick:()=>{L(F),R(!0)},children:"预览"})}),m.jsx(b.Tooltip,{title:"复制URL",children:m.jsx(b.Button,{size:"small",type:"link",icon:m.jsx(he.CopyOutlined,{}),onClick:()=>{navigator.clipboard.writeText(Q(F)),b.message.success("已复制")}})}),m.jsx(b.Tooltip,{title:"编辑",children:m.jsx(b.Button,{size:"small",type:"link",icon:m.jsx(he.EditOutlined,{}),onClick:()=>k(F)})}),m.jsx(b.Popconfirm,{title:"确认删除?",onConfirm:()=>Y(F.mockCode),children:m.jsx(b.Button,{size:"small",type:"link",danger:!0,icon:m.jsx(he.DeleteOutlined,{})})})]})}];return m.jsxs("div",{children:[p&&m.jsx(b.Alert,{type:"warning",showIcon:!0,style:{marginBottom:16},title:"后端 API 暂未连接",description:p}),m.jsxs(b.Row,{gutter:16,style:{marginBottom:16},children:[m.jsx(b.Col,{span:6,children:m.jsxs(b.Card,{children:[m.jsx("strong",{children:"总端点"}),m.jsx("div",{style:{fontSize:22},children:i.length})]})}),m.jsx(b.Col,{span:6,children:m.jsxs(b.Card,{children:[m.jsx("strong",{children:"已启用"}),m.jsx("div",{style:{fontSize:22,color:"#52c41a"},children:i.filter(V=>V.status===1).length})]})}),m.jsx(b.Col,{span:6,children:m.jsxs(b.Card,{children:[m.jsx("strong",{children:"已禁用"}),m.jsx("div",{style:{fontSize:22,color:"#ff4d4f"},children:i.filter(V=>V.status===0).length})]})}),m.jsx(b.Col,{span:6,children:m.jsxs(b.Card,{children:[m.jsx("strong",{children:"总命中"}),m.jsx("div",{style:{fontSize:22,color:"#1890ff"},children:i.reduce((V,F)=>V+(F.hitCount||0),0)})]})})]}),m.jsxs(b.Space,{style:{marginBottom:16},children:[m.jsx(b.Button,{icon:m.jsx(he.PlayCircleOutlined,{}),onClick:U,children:"刷新"}),m.jsx(b.Button,{type:"primary",icon:m.jsx(he.PlusOutlined,{}),onClick:B,children:"新建 Mock 端点"}),m.jsx(b.Button,{icon:m.jsx(he.CloudUploadOutlined,{}),onClick:()=>_(!0),children:"批量导入 (OpenAPI / Swagger / Postman)"})]}),m.jsx(b.Table,{dataSource:i,columns:ue,rowKey:"id",loading:s,pagination:{pageSize:10},scroll:{x:1300},size:"small"}),m.jsx(b.Modal,{title:C?`编辑 Mock 端点: ${C.mockCode}`:"新建 Mock 端点",open:S,onCancel:()=>T(!1),onOk:G,width:900,okText:"保存",cancelText:"取消",children:m.jsx(b.Form,{form:O,layout:"vertical",style:{marginTop:16},children:m.jsx(b.Tabs,{items:[{key:"basic",label:"基本信息",children:m.jsxs(m.Fragment,{children:[m.jsxs(b.Row,{gutter:16,children:[m.jsx(b.Col,{span:8,children:m.jsx(b.Form.Item,{name:"mockCode",label:"Mock 编码",rules:[{required:!0}],children:m.jsx(b.Input,{placeholder:"mock-user-list",disabled:!!C})})}),m.jsx(b.Col,{span:8,children:m.jsx(b.Form.Item,{name:"mockName",label:"名称",children:m.jsx(b.Input,{placeholder:"User List Endpoint"})})}),m.jsx(b.Col,{span:8,children:m.jsx(b.Form.Item,{name:"envCode",label:"环境编码",children:m.jsx(b.Input,{placeholder:"default"})})})]}),m.jsxs(b.Row,{gutter:16,children:[m.jsx(b.Col,{span:12,children:m.jsx(b.Form.Item,{name:"path",label:"路径",rules:[{required:!0}],children:m.jsx(b.Input,{placeholder:"/api/user/list"})})}),m.jsx(b.Col,{span:4,children:m.jsx(b.Form.Item,{name:"method",label:"方法",children:m.jsx(b.Select,{options:f7})})}),m.jsx(b.Col,{span:4,children:m.jsx(b.Form.Item,{name:"priority",label:"优先级",children:m.jsx(b.InputNumber,{min:0,max:99,style:{width:"100%"}})})}),m.jsx(b.Col,{span:4,children:m.jsx(b.Form.Item,{name:"statusCode",label:"状态码",children:m.jsx(b.InputNumber,{min:100,max:599,style:{width:"100%"}})})})]}),m.jsxs(b.Row,{gutter:16,children:[m.jsx(b.Col,{span:8,children:m.jsx(b.Form.Item,{name:"delayMs",label:"延迟(ms)",children:m.jsx(b.InputNumber,{min:0,max:6e4,style:{width:"100%"}})})}),m.jsx(b.Col,{span:8,children:m.jsx(b.Form.Item,{name:"projectCode",label:"项目",children:m.jsx(b.Input,{placeholder:"default"})})}),m.jsx(b.Col,{span:8,children:m.jsx(b.Form.Item,{name:"moduleCode",label:"模块",children:m.jsx(b.Input,{placeholder:"user"})})})]}),m.jsx(b.Form.Item,{name:"description",label:"描述",children:m.jsx(jd,{rows:2})})]})},{key:"match",label:"请求匹配",children:m.jsxs(m.Fragment,{children:[m.jsx(b.Form.Item,{name:"matchUrlPattern",label:"URL 匹配模式 (Ant风格)",extra:"支持 /api/users/{id} 通配符,留空则按 path 精确匹配",children:m.jsx(b.Input,{placeholder:"/api/users/{id}"})}),m.jsxs(b.Row,{gutter:16,children:[m.jsx(b.Col,{span:12,children:m.jsx(b.Form.Item,{name:"matchHeaders",label:"Header 匹配 (JSON)",extra:'例: {"Authorization": "Bearer *", "Content-Type": "application/json"}',children:m.jsx(jd,{rows:3,placeholder:'{"Authorization": "Bearer *"}'})})}),m.jsx(b.Col,{span:12,children:m.jsx(b.Form.Item,{name:"matchQuery",label:"Query 匹配 (JSON)",extra:'例: {"page": "1", "size": "10"}',children:m.jsx(jd,{rows:3,placeholder:'{"page": "1"}'})})})]}),m.jsx(b.Form.Item,{name:"matchBodyType",label:"Body 匹配类型",children:m.jsx(b.Select,{options:h7})}),m.jsx(b.Form.Item,{name:"matchBody",label:"Body 匹配表达式",extra:"JSON 类型支持 JSONPath,REGEX 类型为正则表达式",children:m.jsx(jd,{rows:3,placeholder:'$.user.id == "100"'})})]})},{key:"scenario",label:"场景状态机",children:m.jsxs(m.Fragment,{children:[m.jsx(b.Form.Item,{name:"scenarioCode",label:"场景编码",extra:"关联场景实现状态机驱动 (如 user-flow, payment-flow)",children:m.jsx(b.Input,{placeholder:"user-flow"})}),m.jsxs(b.Row,{gutter:16,children:[m.jsx(b.Col,{span:12,children:m.jsx(b.Form.Item,{name:"requiredState",label:"匹配所需状态",extra:"仅当实例处于此状态时才匹配 (留空 = 不限制)",children:m.jsx(b.Input,{placeholder:"started"})})}),m.jsx(b.Col,{span:12,children:m.jsx(b.Form.Item,{name:"newState",label:"匹配后新状态",extra:"匹配成功后自动切换",children:m.jsx(b.Input,{placeholder:"logged-in"})})})]})]})},{key:"fault",label:"故障注入",children:m.jsxs(m.Fragment,{children:[m.jsx(b.Form.Item,{name:"faultType",label:"故障类型",extra:"模拟网络异常,验证客户端容错",children:m.jsx(b.Select,{options:d7})}),m.jsx(b.Form.Item,{name:"faultConfig",label:"故障配置 (JSON)",extra:'例: {"errorRate": 0.5, "rateLimitQps": 10, "timeoutMs": 30000}',children:m.jsx(jd,{rows:4,placeholder:'{"errorRate": 0.5}'})}),m.jsx(b.Form.Item,{name:"proxyTo",label:"代理目标 URL",extra:"未匹配时转发到真实服务 (MockEnvironment 模式)",children:m.jsx(b.Input,{placeholder:"http://real-service:8080"})})]})},{key:"response",label:"响应",children:m.jsxs(m.Fragment,{children:[m.jsx(b.Form.Item,{name:"responseHeaders",label:"响应头 (JSON)",extra:'例: {"Content-Type": "application/json", "X-Trace-Id": "..."}',children:m.jsx(jd,{rows:2,placeholder:'{"Content-Type": "application/json"}'})}),m.jsx(b.Form.Item,{name:"responseTemplate",label:"响应模板 (JSON)",rules:[{required:!0}],extra:m.jsxs("div",{children:[m.jsxs(bc,{type:"secondary",style:{display:"block",marginBottom:4},children:["支持 ",m.jsx("code",{children:"@int(1,100)"})," / ",m.jsx("code",{children:"@uuid"})," / ",m.jsx("code",{children:"@datetime"})," / ",m.jsx("code",{children:"#path.id"})," 等动态表达式"]}),m.jsx(dD,{form:O,formField:"responseTemplate"})]}),children:m.jsx(jd,{rows:14,placeholder:`{
449
- "success": true,
450
- "data": [],
451
- "code": 200
452
- }`,style:{fontFamily:"monospace",fontSize:13}})})]})}]})})}),m.jsx(b.Drawer,{title:m.jsxs(b.Space,{children:[m.jsx(he.ExperimentOutlined,{}),"端点详情: ",N==null?void 0:N.mockCode]}),open:A,onClose:()=>R(!1),width:650,children:N&&m.jsxs("div",{children:[m.jsxs(b.Descriptions,{column:2,size:"small",bordered:!0,style:{marginBottom:16},children:[m.jsx(b.Descriptions.Item,{label:"编码",children:N.mockCode}),m.jsx(b.Descriptions.Item,{label:"名称",children:N.mockName}),m.jsx(b.Descriptions.Item,{label:"方法",children:m.jsx(b.Tag,{color:hD[N.method],children:N.method})}),m.jsx(b.Descriptions.Item,{label:"环境",children:N.envCode}),m.jsx(b.Descriptions.Item,{label:"路径",span:2,children:N.path}),m.jsx(b.Descriptions.Item,{label:"状态码",children:N.statusCode}),m.jsxs(b.Descriptions.Item,{label:"延迟",children:[N.delayMs,"ms"]}),m.jsxs(b.Descriptions.Item,{label:"优先级",children:["P",N.priority]}),m.jsx(b.Descriptions.Item,{label:"命中",children:N.hitCount||0}),m.jsx(b.Descriptions.Item,{label:"故障",children:N.faultType&&N.faultType!=="NONE"?m.jsx(b.Tag,{color:"red",children:N.faultType}):m.jsx(bc,{type:"secondary",children:"-"})}),m.jsx(b.Descriptions.Item,{label:"场景",children:N.scenarioCode||"-"}),m.jsx(b.Descriptions.Item,{label:"状态",span:2,children:N.status===1?m.jsx(b.Tag,{color:"green",children:"启用"}):m.jsx(b.Tag,{children:"禁用"})}),m.jsx(b.Descriptions.Item,{label:"完整 URL",span:2,children:m.jsx(bc,{copyable:!0,children:Q(N)})})]}),m.jsx(u7,{strong:!0,children:"响应模板:"}),m.jsx("pre",{style:{background:"#f5f5f5",padding:12,borderRadius:4,maxHeight:350,overflow:"auto",fontSize:13,fontFamily:"monospace",whiteSpace:"pre-wrap",wordBreak:"break-all"},children:N.responseTemplate})]})}),m.jsx(uD,{open:D,onClose:()=>_(!1),onSuccess:()=>{b.message.success("已刷新列表"),U()}})]})}const{Text:u2}=b.Typography,m7=[{value:"MOCK",label:"MOCK (纯 Mock 拦截)",color:"green"},{value:"REAL",label:"REAL (全部代理到真实)",color:"blue"},{value:"MIXED",label:"MIXED (匹配失败时转发)",color:"orange"}],p7={MOCK:"green",REAL:"blue",MIXED:"orange"};function ox({onEnvChange:n}){const[i,r]=H.useState([]),[s,f]=H.useState(!1),[p,y]=H.useState(!1),[S,T]=H.useState(null),[C]=b.Form.useForm();H.useEffect(()=>{j()},[]);const j=async()=>{f(!0);try{const D=await Bt.environments.list();r(Array.isArray(D)?D:[])}catch(D){b.message.warning("加载环境列表失败: "+(D==null?void 0:D.message))}finally{f(!1)}},O=()=>{T(null),C.resetFields(),C.setFieldsValue({envType:"MOCK",isDefault:0,mockPriority:1}),y(!0)},A=D=>{T(D),C.setFieldsValue(D),y(!0)},R=async()=>{try{const D=await C.validateFields();S?(await Bt.environments.update(S.envCode,D),b.message.success("更新成功")):(await Bt.environments.create(D),b.message.success("创建成功")),y(!1),j()}catch(D){if(D!=null&&D.errorFields)return;b.message.error("保存失败")}},N=async D=>{try{await Bt.environments.delete(D),b.message.success("删除成功"),j()}catch(_){b.message.error("删除失败: "+((_==null?void 0:_.message)||""))}},L=[{title:"环境编码",dataIndex:"envCode",key:"envCode",width:140,render:D=>m.jsx(u2,{code:!0,children:D})},{title:"环境名称",dataIndex:"envName",key:"envName",width:160},{title:"类型",dataIndex:"envType",key:"envType",width:240,render:D=>m.jsx(b.Tag,{color:p7[D]||"default",children:D})},{title:"真实服务地址",dataIndex:"baseUrl",key:"baseUrl",render:D=>D?m.jsx(u2,{copyable:!0,children:D}):m.jsx(u2,{type:"secondary",children:"-"})},{title:"默认",dataIndex:"isDefault",key:"isDefault",width:90,align:"center",render:D=>D===1?m.jsx(b.Tag,{color:"gold",children:"默认"}):"-"},{title:"描述",dataIndex:"description",key:"description",width:220,render:D=>D||"-"},{title:"操作",key:"action",width:180,render:(D,_)=>m.jsxs(b.Space,{size:"small",children:[m.jsx(b.Button,{size:"small",type:"link",icon:m.jsx(he.GlobalOutlined,{}),onClick:()=>{n&&n(_.envCode)},children:"切换"}),m.jsx(b.Button,{size:"small",type:"link",icon:m.jsx(he.EditOutlined,{}),onClick:()=>A(_)}),_.isDefault!==1&&m.jsx(b.Popconfirm,{title:`确认删除环境 ${_.envCode}?`,onConfirm:()=>N(_.envCode),children:m.jsx(b.Button,{size:"small",type:"link",danger:!0,icon:m.jsx(he.DeleteOutlined,{})})})]})}];return m.jsxs("div",{children:[m.jsx(b.Alert,{type:"info",showIcon:!0,style:{marginBottom:16},title:"环境隔离 - 控制 Mock 与真实服务的切换",description:m.jsxs("div",{children:[m.jsxs("div",{children:[m.jsx(b.Tag,{color:"green",children:"MOCK"})," 完全拦截,仅返回 Mock 数据"]}),m.jsxs("div",{children:[m.jsx(b.Tag,{color:"blue",children:"REAL"})," 全部代理到 baseUrl(适合压测、回归测试)"]}),m.jsxs("div",{children:[m.jsx(b.Tag,{color:"orange",children:"MIXED"})," Mock 优先,未匹配时转发到 baseUrl(开发联调)"]})]})}),m.jsxs(b.Space,{style:{marginBottom:16},children:[m.jsx(b.Button,{icon:m.jsx(he.ReloadOutlined,{}),onClick:j,children:"刷新"}),m.jsx(b.Button,{type:"primary",icon:m.jsx(he.PlusOutlined,{}),onClick:O,children:"新建环境"})]}),m.jsx(b.Table,{dataSource:i,columns:L,rowKey:"id",loading:s,pagination:{pageSize:10},size:"small"}),m.jsx(b.Modal,{title:S?`编辑环境: ${S.envCode}`:"新建环境",open:p,onCancel:()=>y(!1),onOk:R,width:650,children:m.jsxs(b.Form,{form:C,layout:"vertical",style:{marginTop:16},children:[m.jsxs(b.Row,{gutter:16,children:[m.jsx(b.Col,{span:12,children:m.jsx(b.Form.Item,{name:"envCode",label:"环境编码",rules:[{required:!0}],children:m.jsx(b.Input,{placeholder:"dev / staging / prod",disabled:!!S})})}),m.jsx(b.Col,{span:12,children:m.jsx(b.Form.Item,{name:"envName",label:"环境名称",rules:[{required:!0}],children:m.jsx(b.Input,{placeholder:"开发环境"})})})]}),m.jsx(b.Form.Item,{name:"envType",label:"环境类型",rules:[{required:!0}],children:m.jsx(b.Select,{options:m7})}),m.jsx(b.Form.Item,{name:"baseUrl",label:"真实服务地址",extra:"REAL/MIXED 时使用。MIXED 时未匹配的请求会转发到这里",children:m.jsx(b.Input,{placeholder:"https://api.staging.example.com"})}),m.jsxs(b.Row,{gutter:16,children:[m.jsx(b.Col,{span:12,children:m.jsx(b.Form.Item,{name:"mockPriority",label:"Mock 优先级",children:m.jsx(b.InputNumber,{min:0,max:10,style:{width:"100%"}})})}),m.jsx(b.Col,{span:12,children:m.jsx(b.Form.Item,{name:"isDefault",label:"是否默认",valuePropName:"checked",children:m.jsx(b.Switch,{checkedChildren:"是",unCheckedChildren:"否"})})})]}),m.jsx(b.Form.Item,{name:"description",label:"描述",children:m.jsx(b.Input.TextArea,{rows:3,placeholder:"环境的用途说明"})})]})})]})}const{Text:g7}=b.Typography;function mD(){const[n,i]=H.useState([]),[r,s]=H.useState(!1),[f,p]=H.useState(!1),[y,S]=H.useState(null),[T,C]=H.useState(!1),[j,O]=H.useState(null),[A]=b.Form.useForm();H.useEffect(()=>{R()},[]);const R=async()=>{s(!0);try{const G=await Bt.scenarios.list();i(Array.isArray(G)?G:[])}catch{b.message.warning("加载场景列表失败")}finally{s(!1)}},N=()=>{S(null),A.resetFields(),A.setFieldsValue({initialState:"started"}),p(!0)},L=G=>{S(G),A.setFieldsValue(G),p(!0)},D=async()=>{try{const G=await A.validateFields();let Y;try{Y=G.statesJson?JSON.parse(G.statesJson):null}catch{b.message.error("状态列表 JSON 格式错误");return}const P={...G,states:Y};delete P.statesJson,y?(await Bt.scenarios.update(y.scenarioCode,P),b.message.success("更新成功")):(await Bt.scenarios.create(P),b.message.success("创建成功")),p(!1),R()}catch(G){G!=null&&G.errorFields||b.message.error("保存失败")}},_=async G=>{try{await Bt.scenarios.delete(G),b.message.success("删除成功"),R()}catch{b.message.error("删除失败")}},U=async G=>{try{await Bt.scenarios.reset(G),b.message.success("已重置所有实例状态")}catch{b.message.error("重置失败")}},B=async G=>{try{const Y=await Bt.scenarios.instances(G);O({code:G,list:Y}),C(!0)}catch{b.message.error("加载失败")}},k=[{title:"场景编码",dataIndex:"scenarioCode",key:"scenarioCode",width:160,render:G=>m.jsx(g7,{code:!0,children:G})},{title:"场景名称",dataIndex:"scenarioName",key:"scenarioName",width:200},{title:"初始状态",dataIndex:"initialState",key:"initialState",width:140,render:G=>m.jsx(b.Tag,{color:"blue",children:G})},{title:"状态列表",dataIndex:"states",key:"states",render:G=>{if(!G)return"-";try{const Y=typeof G=="string"?JSON.parse(G):G;return Array.isArray(Y)?Y.map(P=>m.jsx(b.Tag,{children:P},P)):"-"}catch{return"-"}}},{title:"描述",dataIndex:"description",key:"description",width:240,render:G=>G||"-"},{title:"操作",key:"action",width:280,fixed:"right",render:(G,Y)=>m.jsxs(b.Space,{size:"small",children:[m.jsx(b.Button,{size:"small",type:"link",icon:m.jsx(he.NodeIndexOutlined,{}),onClick:()=>B(Y.scenarioCode),children:"实例"}),m.jsx(b.Button,{size:"small",type:"link",icon:m.jsx(he.UndoOutlined,{}),onClick:()=>U(Y.scenarioCode),children:"重置"}),m.jsx(b.Button,{size:"small",type:"link",icon:m.jsx(he.EditOutlined,{}),onClick:()=>L(Y)}),m.jsx(b.Popconfirm,{title:`删除场景 ${Y.scenarioCode}?`,onConfirm:()=>_(Y.scenarioCode),children:m.jsx(b.Button,{size:"small",type:"link",danger:!0,icon:m.jsx(he.DeleteOutlined,{})})})]})}];return m.jsxs("div",{children:[m.jsx(b.Alert,{type:"info",showIcon:!0,style:{marginBottom:16},title:"场景状态机 (Scenario)",description:"用状态机驱动 Mock 集合,模拟完整业务流程(如:未登录→登录中→已登录→下单→已支付→完成)。实例通过 X-Session-Id 或 X-Trace-Id 区分,每个实例独立维护当前状态。"}),m.jsxs(b.Space,{style:{marginBottom:16},children:[m.jsx(b.Button,{icon:m.jsx(he.ReloadOutlined,{}),onClick:R,children:"刷新"}),m.jsx(b.Button,{type:"primary",icon:m.jsx(he.PlusOutlined,{}),onClick:N,children:"新建场景"})]}),m.jsx(b.Table,{dataSource:n,columns:k,rowKey:"id",loading:r,pagination:{pageSize:10},scroll:{x:1100},size:"small"}),m.jsx(b.Modal,{title:y?`编辑场景: ${y.scenarioCode}`:"新建场景",open:f,onCancel:()=>p(!1),onOk:D,width:650,children:m.jsxs(b.Form,{form:A,layout:"vertical",style:{marginTop:16},children:[m.jsxs(b.Row,{gutter:16,children:[m.jsx(b.Col,{span:12,children:m.jsx(b.Form.Item,{name:"scenarioCode",label:"场景编码",rules:[{required:!0}],children:m.jsx(b.Input,{placeholder:"user-login-flow",disabled:!!y})})}),m.jsx(b.Col,{span:12,children:m.jsx(b.Form.Item,{name:"scenarioName",label:"场景名称",children:m.jsx(b.Input,{placeholder:"用户登录流程"})})})]}),m.jsx(b.Form.Item,{name:"initialState",label:"初始状态",rules:[{required:!0}],children:m.jsx(b.Input,{placeholder:"started"})}),m.jsx(b.Form.Item,{name:"statesJson",label:"状态列表 (JSON 数组)",extra:'例: ["started", "logged-in", "checkout", "paid", "completed"]',children:m.jsx(b.Input.TextArea,{rows:3,placeholder:'["started", "logged-in", "checkout", "paid"]'})}),m.jsx(b.Form.Item,{name:"description",label:"描述",children:m.jsx(b.Input.TextArea,{rows:3,placeholder:"场景的业务说明"})})]})}),m.jsx(b.Modal,{title:`场景实例: ${j==null?void 0:j.code}`,open:T,onCancel:()=>C(!1),footer:m.jsx(b.Button,{onClick:()=>C(!1),children:"关闭"}),width:700,children:j&&m.jsx(b.Table,{dataSource:Array.isArray(j.list)?j.list:[],columns:[{title:"实例标识",dataIndex:"instanceKey",key:"instanceKey"},{title:"当前状态",dataIndex:"currentState",key:"currentState",render:G=>m.jsx(b.Tag,{color:"blue",children:G})},{title:"最后变更",dataIndex:"lastUpdateTime",key:"lastUpdateTime"}],rowKey:(G,Y)=>G.instanceKey||Y,pagination:!1,size:"small"})})]})}const{TextArea:pD}=b.Input,{Text:Fm,Paragraph:y7}=b.Typography;function gD({open:n,onClose:i,onSuccess:r,envOptions:s=[]}){const[f,p]=H.useState(""),[y,S]=H.useState(null),[T,C]=H.useState(null),[j,O]=H.useState(!1),[A,R]=H.useState(null),[N,L]=H.useState(!1),[D,_]=H.useState("import"),[U]=b.Form.useForm(),[B]=b.Form.useForm(),k=()=>{p(""),S(null),C(null),R(null),U.resetFields(),B.resetFields()},G=()=>{k(),i()},Y=async()=>{var V,F,te,ae;if(!f.trim()){b.message.warning("请先粘贴 curl 命令");return}C(null),S(null),R(null);try{const ge=await Bt.curl.parse(f);ge.success?(S(ge.data),U.setFieldsValue({caseName:`from-curl-${((V=ge.data)==null?void 0:V.method)||"GET"}-${(((F=ge.data)==null?void 0:F.path)||"").replace(/\W+/g,"-")}`,caseGroup:"imported",envCode:s[0]||"default"}),B.setFieldsValue({mockName:`mock-${((te=ge.data)==null?void 0:te.method)||"GET"}-${(((ae=ge.data)==null?void 0:ae.path)||"").replace(/\W+/g,"-")}`,envCode:s[0]||"default",projectCode:"default",responseTemplate:`{
453
- "code": 0,
454
- "message": "ok",
455
- "data": {}
456
- }`})):C(ge.message||"解析失败")}catch(ge){C(String((ge==null?void 0:ge.message)||ge))}},P=async()=>{if(!f.trim()){b.message.warning("请先粘贴 curl 命令");return}O(!0),R(null);try{const V=await Bt.curl.run(f);R(V)}catch(V){R({success:!1,error:String((V==null?void 0:V.message)||V)})}finally{O(!1)}},Q=async()=>{if(!y){b.message.warning("请先解析");return}let V;try{V=await U.validateFields()}catch{return}L(!0);try{const F=await Bt.curl.importAsCase({curl:f,caseName:V.caseName,caseGroup:V.caseGroup,envCode:V.envCode});F.success?(b.message.success(`已导入测试用例: ${F.caseCode}`),r&&r("case",F),G()):b.message.error(F.message||"导入失败")}catch(F){b.message.error(String((F==null?void 0:F.message)||F))}finally{L(!1)}},ue=async()=>{if(!y){b.message.warning("请先解析");return}let V;try{V=await B.validateFields()}catch{return}L(!0);try{const F=await Bt.curl.importAsEndpoint({curl:f,mockName:V.mockName,envCode:V.envCode,projectCode:V.projectCode,responseTemplate:V.responseTemplate});F.success?(b.message.success(`已导入 Mock 端点: ${F.mockCode}`),r&&r("endpoint",F),G()):b.message.error(F.message||"导入失败")}catch(F){b.message.error(String((F==null?void 0:F.message)||F))}finally{L(!1)}};return m.jsxs(b.Modal,{title:m.jsxs(b.Space,{children:[m.jsx(he.CodeOutlined,{})," 粘贴 curl 一键导入"]}),open:n,onCancel:G,footer:null,width:900,destroyOnHidden:!0,children:[m.jsx(y7,{type:"secondary",style:{marginBottom:12},children:"从浏览器 DevTools / Postman / 终端复制 curl 命令,粘贴到下方即可解析、试跑、入库。"}),m.jsx(pD,{value:f,onChange:V=>p(V.target.value),placeholder:`curl -X POST 'https://api.example.com/v1/users/login' \\
457
- -H 'Content-Type: application/json' \\
458
- -H 'Authorization: Bearer xxx' \\
459
- -d '{"username":"alice","password":"123456"}'`,autoSize:{minRows:4,maxRows:10},style:{fontFamily:"Menlo, Monaco, monospace",fontSize:12}}),m.jsxs(b.Space,{style:{marginTop:12},children:[m.jsx(b.Button,{icon:m.jsx(he.FileTextOutlined,{}),onClick:Y,type:"primary",ghost:!0,children:"解析"}),m.jsx(b.Button,{icon:m.jsx(he.ThunderboltOutlined,{}),onClick:P,loading:j,children:"直接执行(试跑)"})]}),T&&m.jsx(b.Alert,{type:"error",showIcon:!0,style:{marginTop:12},title:"解析失败",description:T}),y&&m.jsx(b.Card,{size:"small",style:{marginTop:16},title:"解析结果",children:m.jsxs(b.Descriptions,{column:1,size:"small",bordered:!0,children:[m.jsx(b.Descriptions.Item,{label:"Method",children:m.jsx(b.Tag,{color:b7(y.method),children:y.method})}),m.jsx(b.Descriptions.Item,{label:"URL",children:m.jsx(Fm,{code:!0,copyable:!0,children:y.url})}),m.jsx(b.Descriptions.Item,{label:"Path",children:m.jsx(Fm,{code:!0,children:y.path})}),y.query&&m.jsx(b.Descriptions.Item,{label:"Query",children:m.jsx(Fm,{code:!0,children:y.query})}),m.jsx(b.Descriptions.Item,{label:"Headers",children:Object.keys(y.headers||{}).length===0?m.jsx(Fm,{type:"secondary",children:"(无)"}):m.jsx("div",{children:Object.entries(y.headers).map(([V,F])=>m.jsxs("div",{children:[m.jsxs(Fm,{strong:!0,children:[V,":"]})," ",m.jsx(Fm,{code:!0,children:F})]},V))})}),y.body&&m.jsx(b.Descriptions.Item,{label:"Body",children:m.jsx("pre",{style:{background:"#f5f5f5",padding:8,margin:0,fontSize:12,maxHeight:200,overflow:"auto"},children:y.body})})]})}),A&&m.jsxs(b.Card,{size:"small",style:{marginTop:16},title:m.jsxs(b.Space,{children:[m.jsx(he.ThunderboltOutlined,{}),m.jsx("span",{children:"试跑结果"}),A.success?m.jsxs(b.Tag,{color:"green",children:[A.status," · ",A.durationMs,"ms · ",A.bodySize,"B"]}):m.jsx(b.Tag,{color:"red",children:"FAILED"})]}),children:[A.error&&m.jsx(b.Alert,{type:"error",showIcon:!0,title:A.error}),A.body!=null&&m.jsx("pre",{style:{background:"#f5f5f5",padding:8,margin:0,fontSize:12,maxHeight:240,overflow:"auto"},children:A.body})]}),y&&m.jsx(b.Tabs,{activeKey:D,onChange:_,style:{marginTop:16},items:[{key:"import",label:m.jsxs("span",{children:[m.jsx(he.ImportOutlined,{})," 导入为测试用例"]}),children:m.jsxs(b.Form,{form:U,layout:"vertical",children:[m.jsxs(b.Row,{gutter:16,children:[m.jsx(b.Col,{span:12,children:m.jsx(b.Form.Item,{name:"caseName",label:"用例名称",rules:[{required:!0}],children:m.jsx(b.Input,{})})}),m.jsx(b.Col,{span:6,children:m.jsx(b.Form.Item,{name:"caseGroup",label:"用例分组",children:m.jsx(b.Input,{})})}),m.jsx(b.Col,{span:6,children:m.jsx(b.Form.Item,{name:"envCode",label:"环境",children:s.length>0?m.jsx(b.Select,{options:s.map(V=>({value:V,label:V}))}):m.jsx(b.Input,{})})})]}),m.jsx(b.Button,{type:"primary",onClick:Q,loading:N,icon:m.jsx(he.ImportOutlined,{}),children:"保存为测试用例"})]})},{key:"mock",label:m.jsxs("span",{children:[m.jsx(he.CodeOutlined,{})," 导入为 Mock 端点"]}),children:m.jsxs(b.Form,{form:B,layout:"vertical",children:[m.jsxs(b.Row,{gutter:16,children:[m.jsx(b.Col,{span:12,children:m.jsx(b.Form.Item,{name:"mockName",label:"Mock 名称",rules:[{required:!0}],children:m.jsx(b.Input,{})})}),m.jsx(b.Col,{span:6,children:m.jsx(b.Form.Item,{name:"envCode",label:"环境",children:s.length>0?m.jsx(b.Select,{options:s.map(V=>({value:V,label:V}))}):m.jsx(b.Input,{})})}),m.jsx(b.Col,{span:6,children:m.jsx(b.Form.Item,{name:"projectCode",label:"项目",children:m.jsx(b.Input,{})})})]}),m.jsx(b.Form.Item,{name:"responseTemplate",label:"响应模板 (JSON)",children:m.jsx(pD,{autoSize:{minRows:3,maxRows:8},style:{fontFamily:"Menlo, Monaco, monospace"}})}),m.jsx(b.Button,{type:"primary",onClick:ue,loading:N,icon:m.jsx(he.CodeOutlined,{}),children:"保存为 Mock 端点"})]})}]})]})}function b7(n){return{GET:"blue",POST:"green",PUT:"orange",DELETE:"red",PATCH:"purple"}[n]||"default"}const{Text:Ad}=b.Typography,v7=[{value:"P0",label:"P0 (最高)"},{value:"P1",label:"P1 (高)"},{value:"P2",label:"P2 (中)"},{value:"P3",label:"P3 (低)"}],S7={P0:"red",P1:"orange",P2:"blue",P3:"default"},f2={PASS:"green",FAIL:"red",SKIP:"default"},x7=[{value:"EXACT",label:"完全匹配"},{value:"CONTAINS",label:"包含"},{value:"REGEX",label:"正则"},{value:"JSONPATH",label:"JSONPath"}];function yD(){const[n,i]=H.useState([]),[r,s]=H.useState(!1),[f,p]=H.useState([]),[y,S]=H.useState(!1),[T,C]=H.useState(null),[j,O]=H.useState(!1),[A,R]=H.useState(null),[N,L]=H.useState(null),[D,_]=H.useState(!1),[U,B]=H.useState(!1),[k]=b.Form.useForm();H.useEffect(()=>{G()},[]);const G=async()=>{s(!0);try{const ae=await Bt.cases.list();i(Array.isArray(ae)?ae:[])}catch{b.message.warning("加载用例列表失败")}finally{s(!1)}},Y=()=>{C(null),k.resetFields(),k.setFieldsValue({requestMethod:"GET",expectedStatus:200,priority:"P1",status:1,expectedBodyMatchType:"EXACT"}),S(!0)},P=ae=>{C(ae),k.setFieldsValue(ae),S(!0)},Q=async()=>{try{const ae=await k.validateFields();let ge;try{ge=ae.assertionsJson?JSON.parse(ae.assertionsJson):null}catch{b.message.error("断言 JSON 格式错误");return}const He={...ae,assertions:ge};delete He.assertionsJson,T?(await Bt.cases.update(T.caseCode,He),b.message.success("更新成功")):(await Bt.cases.create(He),b.message.success("创建成功")),S(!1),G()}catch(ae){ae!=null&&ae.errorFields||b.message.error("保存失败")}},ue=async ae=>{try{await Bt.cases.delete(ae),b.message.success("删除成功"),G()}catch{b.message.error("删除失败")}},V=async ae=>{try{const ge=await Bt.cases.run(ae.caseCode);R(ge),O(!0),(ge==null?void 0:ge.status)==="PASS"?b.message.success("用例通过"):b.message.error("用例失败: "+((ge==null?void 0:ge.error)||(ge==null?void 0:ge.actualStatus))),G()}catch(ge){b.message.error("执行失败: "+(ge==null?void 0:ge.message))}},F=async()=>{if(f.length===0){b.message.warning("请先选择用例");return}try{const ae=await Bt.cases.runBatch(f);L(ae),_(!0),b.message.success(`批量执行完成: ${ae==null?void 0:ae.pass} 通过, ${ae==null?void 0:ae.fail} 失败`),G()}catch{b.message.error("批量执行失败")}},te=[{title:"用例编码",dataIndex:"caseCode",key:"caseCode",width:180,render:ae=>m.jsx(Ad,{code:!0,children:ae})},{title:"名称",dataIndex:"caseName",key:"caseName",width:220},{title:"分组",dataIndex:"caseGroup",key:"caseGroup",width:130,render:ae=>ae?m.jsx(b.Tag,{children:ae}):"-"},{title:"方法",dataIndex:"requestMethod",key:"requestMethod",width:80,render:ae=>m.jsx(b.Tag,{color:"blue",children:ae})},{title:"路径",dataIndex:"requestUrl",key:"requestUrl",ellipsis:!0,render:ae=>m.jsx(Ad,{code:!0,children:ae})},{title:"优先级",dataIndex:"priority",key:"priority",width:80,align:"center",render:ae=>m.jsx(b.Tag,{color:S7[ae],children:ae||"P1"})},{title:"上次结果",dataIndex:"lastRunResult",key:"lastRunResult",width:100,align:"center",render:ae=>ae?m.jsx(b.Tag,{color:f2[ae],children:ae}):"-"},{title:"统计",key:"stats",width:130,align:"center",render:(ae,ge)=>m.jsxs(b.Space,{size:"small",children:[m.jsx(Ad,{type:"success",children:ge.passCount||0}),"/",m.jsx(Ad,{type:"danger",children:ge.failCount||0}),m.jsxs(Ad,{type:"secondary",children:["(",ge.runCount||0,")"]})]})},{title:"操作",key:"action",width:220,fixed:"right",render:(ae,ge)=>m.jsxs(b.Space,{size:"small",children:[m.jsx(b.Button,{size:"small",type:"link",icon:m.jsx(he.PlayCircleOutlined,{}),onClick:()=>V(ge),children:"运行"}),m.jsx(b.Button,{size:"small",type:"link",icon:m.jsx(he.EditOutlined,{}),onClick:()=>P(ge)}),m.jsx(b.Popconfirm,{title:`删除用例 ${ge.caseCode}?`,onConfirm:()=>ue(ge.caseCode),children:m.jsx(b.Button,{size:"small",type:"link",danger:!0,icon:m.jsx(he.DeleteOutlined,{})})})]})}];return m.jsxs("div",{children:[m.jsx(b.Alert,{type:"info",showIcon:!0,style:{marginBottom:16},title:"测试用例库",description:"对 Mock 接口进行断言验证。支持 7 种断言类型:STATUS / HEADER / BODY / JSON_PATH / REGEX / SCHEMA / RESPONSE_TIME。支持单条运行与批量运行,自动统计通过/失败次数。"}),m.jsxs(b.Space,{style:{marginBottom:16},children:[m.jsx(b.Button,{icon:m.jsx(he.ReloadOutlined,{}),onClick:G,children:"刷新"}),m.jsx(b.Button,{type:"primary",icon:m.jsx(he.PlusOutlined,{}),onClick:Y,children:"新建用例"}),m.jsx(b.Button,{icon:m.jsx(he.CodeOutlined,{}),onClick:()=>B(!0),children:"粘贴 curl 导入"}),m.jsxs(b.Button,{type:"primary",icon:m.jsx(he.PlayCircleOutlined,{}),onClick:F,disabled:f.length===0,children:["批量运行 (",f.length,")"]})]}),m.jsx(b.Table,{dataSource:n,columns:te,rowKey:"id",loading:r,rowSelection:{selectedRowKeys:f,onChange:p},pagination:{pageSize:10},scroll:{x:1300},size:"small"}),m.jsx(b.Modal,{title:T?`编辑用例: ${T.caseCode}`:"新建测试用例",open:y,onCancel:()=>S(!1),onOk:Q,width:750,children:m.jsxs(b.Form,{form:k,layout:"vertical",style:{marginTop:16},children:[m.jsxs(b.Row,{gutter:16,children:[m.jsx(b.Col,{span:12,children:m.jsx(b.Form.Item,{name:"caseCode",label:"用例编码",rules:[{required:!0}],children:m.jsx(b.Input,{placeholder:"case-user-login",disabled:!!T})})}),m.jsx(b.Col,{span:12,children:m.jsx(b.Form.Item,{name:"caseName",label:"用例名称",children:m.jsx(b.Input,{placeholder:"用户登录成功用例"})})})]}),m.jsxs(b.Row,{gutter:16,children:[m.jsx(b.Col,{span:8,children:m.jsx(b.Form.Item,{name:"caseGroup",label:"用例分组",children:m.jsx(b.Input,{placeholder:"login"})})}),m.jsx(b.Col,{span:8,children:m.jsx(b.Form.Item,{name:"priority",label:"优先级",children:m.jsx(b.Select,{options:v7})})}),m.jsx(b.Col,{span:8,children:m.jsx(b.Form.Item,{name:"envCode",label:"环境",children:m.jsx(b.Input,{placeholder:"default"})})})]}),m.jsxs(b.Row,{gutter:16,children:[m.jsx(b.Col,{span:6,children:m.jsx(b.Form.Item,{name:"requestMethod",label:"方法",children:m.jsx(b.Select,{options:[{value:"GET",label:"GET"},{value:"POST",label:"POST"},{value:"PUT",label:"PUT"},{value:"DELETE",label:"DELETE"}]})})}),m.jsx(b.Col,{span:18,children:m.jsx(b.Form.Item,{name:"requestUrl",label:"请求 URL",rules:[{required:!0}],children:m.jsx(b.Input,{placeholder:"/api/mock/default/user/login"})})})]}),m.jsxs(b.Row,{gutter:16,children:[m.jsx(b.Col,{span:12,children:m.jsx(b.Form.Item,{name:"requestQuery",label:"查询参数",children:m.jsx(b.Input,{placeholder:"debug=true"})})}),m.jsx(b.Col,{span:12,children:m.jsx(b.Form.Item,{name:"expectedStatus",label:"期望状态码",children:m.jsx(b.Select,{options:[{value:200,label:"200 OK"},{value:201,label:"201 Created"},{value:400,label:"400 Bad Request"},{value:401,label:"401 Unauthorized"},{value:404,label:"404 Not Found"},{value:500,label:"500 Server Error"}]})})})]}),m.jsx(b.Form.Item,{name:"requestHeaders",label:"请求头 (JSON)",extra:'例: {"Authorization": "Bearer xxx"}',children:m.jsx(b.Input.TextArea,{rows:2,placeholder:'{"X-Trace-Id": "abc"}'})}),m.jsx(b.Form.Item,{name:"requestBody",label:"请求体",children:m.jsx(b.Input.TextArea,{rows:3,placeholder:'{"username":"test","password":"xxx"}'})}),m.jsx(b.Form.Item,{name:"expectedBodyMatchType",label:"Body 匹配方式",children:m.jsx(b.Select,{options:x7})}),m.jsx(b.Form.Item,{name:"expectedBody",label:"期望 Body",children:m.jsx(b.Input.TextArea,{rows:3,placeholder:'{"code": 200, "success": true}'})}),m.jsx(b.Form.Item,{name:"assertionsJson",label:"断言列表 (JSON 数组)",extra:'例: [{"assertType":"STATUS","expected":200,"comparator":"EQUALS"}]',children:m.jsx(b.Input.TextArea,{rows:4,placeholder:'[{"assertType":"STATUS","expected":200}]'})}),m.jsx(b.Form.Item,{name:"description",label:"描述",children:m.jsx(b.Input.TextArea,{rows:2})})]})}),m.jsx(b.Drawer,{title:m.jsxs(b.Space,{children:[m.jsx(he.FileSearchOutlined,{}),"用例执行结果"]}),open:j,onClose:()=>O(!1),width:650,children:A&&m.jsxs("div",{children:[m.jsxs(b.Row,{gutter:16,style:{marginBottom:16},children:[m.jsx(b.Col,{span:8,children:m.jsx(b.Card,{children:m.jsx(b.Statistic,{title:"结果",value:A.status,styles:{content:{color:f2[A.status]==="green"?"#52c41a":"#ff4d4f"}}})})}),m.jsx(b.Col,{span:8,children:m.jsx(b.Card,{children:m.jsx(b.Statistic,{title:"实际状态码",value:A.actualStatus||"-"})})}),m.jsx(b.Col,{span:8,children:m.jsx(b.Card,{children:m.jsx(b.Statistic,{title:"耗时(ms)",value:A.durationMs||0})})})]}),m.jsxs(b.Descriptions,{column:1,size:"small",bordered:!0,style:{marginBottom:16},children:[m.jsx(b.Descriptions.Item,{label:"用例编码",children:A.caseCode}),m.jsx(b.Descriptions.Item,{label:"用例名称",children:A.caseName}),m.jsx(b.Descriptions.Item,{label:"错误信息",children:A.error||"-"})]}),A.assertionResults&&m.jsxs(m.Fragment,{children:[m.jsx(Ad,{strong:!0,children:"断言详情:"}),m.jsx(b.Table,{style:{marginTop:8},dataSource:A.assertionResults,columns:[{title:"断言类型",dataIndex:"assertType",key:"assertType",width:110},{title:"表达式",dataIndex:"expression",key:"expression"},{title:"期望值",dataIndex:"expected",key:"expected"},{title:"实际值",dataIndex:"actual",key:"actual"},{title:"结果",dataIndex:"passed",key:"passed",width:80,render:ae=>ae?m.jsx(b.Tag,{color:"green",children:"PASS"}):m.jsx(b.Tag,{color:"red",children:"FAIL"})}],pagination:!1,size:"small"})]}),m.jsx(Ad,{strong:!0,style:{marginTop:16,display:"block"},children:"响应体:"}),m.jsx("pre",{style:{background:"#f5f5f5",padding:12,borderRadius:4,maxHeight:250,overflow:"auto",fontSize:12,fontFamily:"monospace",whiteSpace:"pre-wrap",wordBreak:"break-all"},children:A.responseBody||"(empty)"})]})}),m.jsx(b.Modal,{title:`批量执行结果 (${(N==null?void 0:N.total)||0} 条)`,open:D,onCancel:()=>_(!1),footer:m.jsx(b.Button,{onClick:()=>_(!1),children:"关闭"}),width:800,children:N&&m.jsxs(m.Fragment,{children:[m.jsxs(b.Row,{gutter:16,style:{marginBottom:16},children:[m.jsx(b.Col,{span:6,children:m.jsx(b.Card,{children:m.jsx(b.Statistic,{title:"总数",value:N.total})})}),m.jsx(b.Col,{span:6,children:m.jsx(b.Card,{children:m.jsx(b.Statistic,{title:"通过",value:N.pass,styles:{content:{color:"#52c41a"}}})})}),m.jsx(b.Col,{span:6,children:m.jsx(b.Card,{children:m.jsx(b.Statistic,{title:"失败",value:N.fail,styles:{content:{color:"#ff4d4f"}}})})}),m.jsx(b.Col,{span:6,children:m.jsx(b.Card,{children:m.jsx(b.Statistic,{title:"通过率",value:`${N.total>0?Math.round(N.pass/N.total*100):0}%`})})})]}),m.jsx(b.Table,{dataSource:N.results||[],columns:[{title:"编码",dataIndex:"caseCode",key:"caseCode",width:180},{title:"名称",dataIndex:"caseName",key:"caseName"},{title:"结果",dataIndex:"status",key:"status",width:80,render:ae=>m.jsx(b.Tag,{color:f2[ae],children:ae})},{title:"耗时",dataIndex:"durationMs",key:"durationMs",width:80,align:"center"},{title:"错误",dataIndex:"error",key:"error",ellipsis:!0}],pagination:!1,size:"small",rowKey:"caseCode"})]})}),m.jsx(gD,{open:U,onClose:()=>B(!1),onSuccess:(ae,ge)=>{b.message.success(ae==="case"?"测试用例已导入,正在刷新列表":"Mock 端点已导入"),G()}})]})}const{Text:vc}=b.Typography,bD={IDLE:"default",RECORDING:"red",STOPPED:"green",EXPIRED:"gray"};function vD(){const[n,i]=H.useState([]),[r,s]=H.useState(!1),[f,p]=H.useState(!1),[y,S]=H.useState(!1),[T,C]=H.useState(!1),[j,O]=H.useState(!1),[A,R]=H.useState(null),[N,L]=H.useState([]),[D]=b.Form.useForm(),[_]=b.Form.useForm(),[U]=b.Form.useForm(),[B,k]=H.useState([]),[G,Y]=H.useState(!1),[P,Q]=H.useState([]);H.useEffect(()=>{ue()},[]);const ue=async()=>{s(!0);try{const fe=await Bt.recordings.list();i(Array.isArray(fe)?fe:[])}catch{b.message.warning("加载录制列表失败")}finally{s(!1)}},V=async()=>{try{const fe=await D.validateFields();await Bt.recordings.start(fe.recordingCode,fe.recordingName,fe.targetUrl),b.message.success("录制已开启"),p(!1),D.resetFields(),ue()}catch(fe){fe!=null&&fe.errorFields||b.message.error("开启失败")}},F=async fe=>{try{await Bt.recordings.stop(fe),b.message.success("录制已停止"),ue()}catch{b.message.error("停止失败")}},te=async fe=>{try{await Bt.recordings.delete(fe),b.message.success("删除成功"),ue()}catch{b.message.error("删除失败")}},ae=async fe=>{try{const ne=await Bt.recordings.requests(fe.recordingCode);R(fe),L(Array.isArray(ne)?ne:[]),O(!0)}catch{b.message.error("加载失败")}},ge=async fe=>{b.Modal.confirm({title:"导入录制为 Mock",content:`将把录制 "${fe.recordingCode}" 转换为 Mock endpoints 并入库。`,okText:"确认导入",onOk:async()=>{try{const ne=await Bt.recordings.import(fe.recordingCode,"default");b.message.success(`导入成功: ${(ne==null?void 0:ne.imported)||0} 个 Mock endpoint`)}catch{b.message.error("导入失败")}}})},He=async()=>{var fe,ne,ee;try{const Se=await _.validateFields(),Ae=await Bt.recordings.playback(A.recordingCode,Se.targetUrl);b.Modal.info({title:"回放结果",width:700,content:m.jsxs("div",{children:[m.jsxs(vc,{children:["总数: ",((fe=Ae==null?void 0:Ae[0])==null?void 0:fe.total)||0," 通过: ",((ne=Ae==null?void 0:Ae[0])==null?void 0:ne.pass)||0," 失败: ",((ee=Ae==null?void 0:Ae[0])==null?void 0:ee.fail)||0]}),m.jsx("pre",{style:{marginTop:12,background:"#f5f5f5",padding:12,maxHeight:400,overflow:"auto",fontSize:12},children:JSON.stringify(Ae,null,2)})]})}),S(!1)}catch(Se){Se!=null&&Se.errorFields||b.message.error("回放失败")}},X=async()=>{try{Y(!0);const fe=await U.validateFields().catch(()=>({})),ne=await Bt.recordings.export(A.recordingCode,fe==null?void 0:fe.projectCode),ee=Array.isArray(ne==null?void 0:ne.drafts)?ne.drafts:[];k(ee),Q(ee.map(Se=>Se.mockCode||Se.id)),C(!0)}catch(fe){fe!=null&&fe.errorFields||b.message.error("生成草稿失败")}finally{Y(!1)}},ie=async()=>{try{const fe=await U.validateFields().catch(()=>({})),ne=P;if(ne.length===0){b.message.warning("请至少选择一个 Mock");return}const ee=await Bt.recordings.import(A.recordingCode,fe==null?void 0:fe.envCode,fe==null?void 0:fe.projectCode);b.message.success(`已导入 ${(ee==null?void 0:ee.imported)||ne.length} 个 Mock`),C(!1),ue()}catch(fe){b.message.error("导入失败:"+((fe==null?void 0:fe.message)||"未知错误"))}},me=[{title:"编码",dataIndex:"recordingCode",key:"recordingCode",width:180,render:fe=>m.jsx(vc,{code:!0,children:fe})},{title:"名称",dataIndex:"recordingName",key:"recordingName",width:200},{title:"状态",dataIndex:"recordStatus",key:"recordStatus",width:110,render:fe=>m.jsx(b.Tag,{color:bD[fe],children:fe})},{title:"请求数",dataIndex:"totalRequests",key:"totalRequests",width:90,align:"center"},{title:"目标 URL",dataIndex:"targetUrl",key:"targetUrl",ellipsis:!0,render:fe=>fe?m.jsx(vc,{copyable:{text:fe},children:fe}):"-"},{title:"开始时间",dataIndex:"startTime",key:"startTime",width:170},{title:"结束时间",dataIndex:"endTime",key:"endTime",width:170},{title:"操作",key:"action",width:280,fixed:"right",render:(fe,ne)=>m.jsxs(b.Space,{size:"small",children:[m.jsx(b.Button,{size:"small",type:"link",icon:m.jsx(he.VideoCameraOutlined,{}),onClick:()=>ae(ne),children:"详情"}),ne.recordStatus==="RECORDING"&&m.jsx(b.Button,{size:"small",type:"link",danger:!0,icon:m.jsx(he.StopOutlined,{}),onClick:()=>F(ne.recordingCode),children:"停止"}),ne.recordStatus==="STOPPED"&&m.jsx(b.Button,{size:"small",type:"link",icon:m.jsx(he.ImportOutlined,{}),onClick:()=>ge(ne),children:"导入为 Mock"}),m.jsx(b.Popconfirm,{title:`删除录制 ${ne.recordingCode}?`,onConfirm:()=>te(ne.recordingCode),children:m.jsx(b.Button,{size:"small",type:"link",danger:!0,icon:m.jsx(he.DeleteOutlined,{})})})]})}];return m.jsxs("div",{children:[m.jsx(b.Alert,{type:"info",showIcon:!0,style:{marginBottom:16},title:"流量录制与回放",description:m.jsxs("div",{children:[m.jsxs("div",{children:["• 开启录制后,所有 ",m.jsx(vc,{code:!0,children:"/api/mock/{envCode}/**"})," 请求会被捕获到数据库"]}),m.jsx("div",{children:"• 停止录制后,可一键转为 Mock endpoints(用于离线测试)"}),m.jsx("div",{children:"• 支持回放录制到目标服务(验证录制有效 / 跨环境验证)"})]})}),m.jsxs(b.Space,{style:{marginBottom:16},children:[m.jsx(b.Button,{icon:m.jsx(he.ReloadOutlined,{}),onClick:ue,children:"刷新"}),m.jsx(b.Button,{type:"primary",icon:m.jsx(he.VideoCameraOutlined,{}),onClick:()=>p(!0),children:"开启录制"})]}),m.jsx(b.Table,{dataSource:n,columns:me,rowKey:"id",loading:r,pagination:{pageSize:10},scroll:{x:1300},size:"small"}),m.jsx(b.Modal,{title:"开启录制",open:f,onCancel:()=>p(!1),onOk:V,okText:"开启",cancelText:"取消",children:m.jsxs(b.Form,{form:D,layout:"vertical",style:{marginTop:16},children:[m.jsx(b.Form.Item,{name:"recordingCode",label:"录制编码",rules:[{required:!0}],children:m.jsx(b.Input,{placeholder:"prod-trace-2026-06"})}),m.jsx(b.Form.Item,{name:"recordingName",label:"录制名称",rules:[{required:!0}],children:m.jsx(b.Input,{placeholder:"生产环境订单流程"})}),m.jsx(b.Form.Item,{name:"targetUrl",label:"目标服务地址",children:m.jsx(b.Input,{placeholder:"http://prod-api.example.com"})})]})}),m.jsx(b.Drawer,{title:m.jsxs(b.Space,{children:[m.jsx(he.VideoCameraOutlined,{}),"录制详情: ",A==null?void 0:A.recordingCode]}),open:j,onClose:()=>O(!1),width:800,children:A&&m.jsxs("div",{children:[m.jsxs(b.Descriptions,{column:2,size:"small",bordered:!0,style:{marginBottom:16},children:[m.jsx(b.Descriptions.Item,{label:"编码",children:A.recordingCode}),m.jsx(b.Descriptions.Item,{label:"名称",children:A.recordingName}),m.jsx(b.Descriptions.Item,{label:"状态",children:m.jsx(b.Tag,{color:bD[A.recordStatus],children:A.recordStatus})}),m.jsx(b.Descriptions.Item,{label:"请求数",children:A.totalRequests}),m.jsx(b.Descriptions.Item,{label:"目标 URL",span:2,children:m.jsx(vc,{copyable:!0,children:A.targetUrl})}),m.jsx(b.Descriptions.Item,{label:"开始",children:A.startTime}),m.jsx(b.Descriptions.Item,{label:"结束",children:A.endTime||"(录制中)"})]}),m.jsxs(b.Space,{style:{marginBottom:16},children:[m.jsx(b.Button,{icon:m.jsx(he.PlayCircleOutlined,{}),onClick:()=>S(!0),disabled:A.recordStatus!=="STOPPED",children:"回放"}),m.jsx(b.Button,{icon:m.jsx(he.ExportOutlined,{}),onClick:X,loading:G,disabled:A.recordStatus!=="STOPPED",children:"导出 Mock 草稿"}),m.jsx(b.Button,{type:"primary",icon:m.jsx(he.ImportOutlined,{}),onClick:()=>ge(A),disabled:A.recordStatus!=="STOPPED",children:"导入为 Mock"})]}),m.jsxs(vc,{strong:!0,children:["请求列表 (共 ",N.length," 条):"]}),m.jsx(b.Table,{style:{marginTop:8},dataSource:N,columns:[{title:"#",dataIndex:"sequence",key:"sequence",width:50},{title:"方法",dataIndex:"requestMethod",key:"requestMethod",width:80,render:fe=>m.jsx(b.Tag,{color:"blue",children:fe})},{title:"URL",dataIndex:"requestUrl",key:"requestUrl",ellipsis:!0,render:fe=>m.jsx(vc,{code:!0,children:fe})},{title:"响应",dataIndex:"responseStatus",key:"responseStatus",width:80,render:fe=>m.jsx(b.Tag,{color:fe>=400?"red":"green",children:fe})},{title:"耗时",dataIndex:"responseTime",key:"responseTime",width:80,render:fe=>`${fe||0}ms`}],pagination:{pageSize:10},size:"small",rowKey:"id"})]})}),m.jsx(b.Modal,{title:"回放录制",open:y,onCancel:()=>S(!1),onOk:He,children:m.jsx(b.Form,{form:_,layout:"vertical",style:{marginTop:16},children:m.jsx(b.Form.Item,{name:"targetUrl",label:"目标服务地址",rules:[{required:!0}],children:m.jsx(b.Input,{placeholder:"http://staging-api.example.com"})})})}),m.jsxs(b.Modal,{title:"导出 Mock 草稿",open:T,onCancel:()=>C(!1),onOk:ie,okText:`导入 ${P.length} 个`,width:900,children:[m.jsx(b.Form,{form:U,layout:"vertical",style:{marginTop:8},children:m.jsxs(b.Space,{size:16,style:{width:"100%"},children:[m.jsx(b.Form.Item,{name:"projectCode",label:"项目编码",style:{flex:1,marginBottom:8},children:m.jsx(b.Input,{placeholder:"default"})}),m.jsx(b.Form.Item,{name:"envCode",label:"目标环境",style:{flex:1,marginBottom:8},children:m.jsx(b.Input,{placeholder:"default"})})]})}),m.jsx(b.Alert,{type:"info",showIcon:!0,style:{marginBottom:12},title:`从录制中识别出 ${B.length} 个去重后的 Mock endpoint,已默认全选`}),m.jsx(b.Table,{size:"small",dataSource:B,rowKey:fe=>fe.mockCode||fe.id,pagination:{pageSize:8},scroll:{y:300},rowSelection:{selectedRowKeys:P,onChange:fe=>Q(fe)},columns:[{title:"方法",dataIndex:"method",width:80,render:fe=>m.jsx(b.Tag,{color:"blue",children:fe})},{title:"URL 模式",dataIndex:"urlPattern",ellipsis:!0,render:fe=>m.jsx(vc,{code:!0,children:fe})},{title:"状态码",dataIndex:"statusCode",width:80},{title:"响应模板",dataIndex:"responseTemplate",ellipsis:!0,render:fe=>m.jsx(vc,{type:"secondary",style:{fontSize:11},children:(fe||"").slice(0,80)})},{title:"请求数",dataIndex:"requestCount",width:80,align:"center"}]})]})]})}const{Text:km}=b.Typography,E7={MOCK:"green",PROXY:"blue",404:"red",502:"orange"};function SD(){const[n,i]=H.useState([]),[r,s]=H.useState(null),[f,p]=H.useState(!1),[y,S]=H.useState(null),[T,C]=H.useState(!1),[j,O]=H.useState(""),[A,R]=H.useState();H.useEffect(()=>{N()},[]);const N=async()=>{p(!0);try{const[U,B]=await Promise.all([Bt.requestLogs.list({path:j||void 0,matched:A,limit:100}),Bt.requestLogs.stats().catch(()=>null)]);i(Array.isArray(U)?U:[]),s(B)}catch{b.message.warning("加载失败")}finally{p(!1)}},L=U=>{S(U),C(!0)},D=async()=>{try{await Bt.requestLogs.clear(1e3),b.message.success("已清理"),N()}catch{b.message.error("清理失败")}},_=[{title:"时间",dataIndex:"createTime",key:"createTime",width:170,render:U=>U?new Date(U).toLocaleString():"-"},{title:"环境",dataIndex:"envCode",key:"envCode",width:100,render:U=>m.jsx(b.Tag,{children:U})},{title:"方法",dataIndex:"requestMethod",key:"requestMethod",width:80,render:U=>m.jsx(b.Tag,{color:"blue",children:U})},{title:"路径",dataIndex:"requestPath",key:"requestPath",ellipsis:!0,render:U=>m.jsx(km,{code:!0,children:U})},{title:"状态",dataIndex:"responseStatus",key:"responseStatus",width:90,align:"center",render:U=>U?m.jsx(b.Tag,{color:U>=400?"red":"green",children:U}):"-"},{title:"匹配",dataIndex:"matched",key:"matched",width:90,align:"center",render:U=>U===1?m.jsx(b.Tag,{color:"green",children:"命中"}):m.jsx(b.Tag,{color:"red",children:"未匹配"})},{title:"回退",dataIndex:"fallbackType",key:"fallbackType",width:100,render:U=>U?m.jsx(b.Tag,{color:E7[U],children:U}):"-"},{title:"耗时",dataIndex:"durationMs",key:"durationMs",width:80,align:"center",render:U=>`${U||0}ms`},{title:"Mock",dataIndex:"mockCode",key:"mockCode",width:160,ellipsis:!0,render:U=>U?m.jsx(km,{code:!0,children:U}):"-"},{title:"操作",key:"action",width:80,render:(U,B)=>m.jsx(b.Button,{size:"small",type:"link",icon:m.jsx(he.EyeOutlined,{}),onClick:()=>L(B),children:"详情"})}];return m.jsxs("div",{children:[m.jsx(b.Alert,{type:"info",showIcon:!0,style:{marginBottom:16},title:"Mock 请求日志 - 排查未匹配请求",description:"每一次请求都会留痕。包括请求/响应体、是否匹配 Mock、回退类型、耗时、场景状态等。便于排查“为什么这个请求没有 Mock 命中”问题。"}),r&&m.jsxs(b.Row,{gutter:16,style:{marginBottom:16},children:[m.jsx(b.Col,{span:6,children:m.jsx(b.Card,{children:m.jsx(b.Statistic,{title:"总请求数",value:r.total||0})})}),m.jsx(b.Col,{span:6,children:m.jsx(b.Card,{children:m.jsx(b.Statistic,{title:"Mock 命中",value:r.matched||0,styles:{content:{color:"#52c41a"}}})})}),m.jsx(b.Col,{span:6,children:m.jsx(b.Card,{children:m.jsx(b.Statistic,{title:"未匹配",value:r.unmatched||0,styles:{content:{color:"#ff4d4f"}}})})}),m.jsx(b.Col,{span:6,children:m.jsx(b.Card,{children:m.jsx(b.Statistic,{title:"命中率",value:`${r.total>0?Math.round(r.matched/r.total*100):0}%`})})})]}),m.jsxs(b.Space,{style:{marginBottom:16},children:[m.jsx(b.Input,{placeholder:"搜索路径",prefix:m.jsx(he.SearchOutlined,{}),allowClear:!0,style:{width:240},value:j,onChange:U=>O(U.target.value),onPressEnter:N}),m.jsx(b.Select,{placeholder:"匹配状态",allowClear:!0,style:{width:140},value:A,onChange:R,options:[{value:1,label:"已命中"},{value:0,label:"未匹配"}]}),m.jsx(b.Button,{icon:m.jsx(he.ReloadOutlined,{}),onClick:N,children:"查询"}),m.jsx(b.Popconfirm,{title:"确认清理,保留最近 1000 条?",onConfirm:D,children:m.jsx(b.Button,{icon:m.jsx(he.DeleteOutlined,{}),danger:!0,children:"清理"})})]}),m.jsx(b.Table,{dataSource:n,columns:_,rowKey:"id",loading:f,pagination:{pageSize:20},scroll:{x:1300},size:"small"}),m.jsx(b.Drawer,{title:"请求详情",open:T,onClose:()=>C(!1),width:750,children:y&&m.jsxs("div",{children:[m.jsxs(b.Descriptions,{column:2,size:"small",bordered:!0,style:{marginBottom:16},children:[m.jsx(b.Descriptions.Item,{label:"环境",children:y.envCode}),m.jsx(b.Descriptions.Item,{label:"方法",children:m.jsx(b.Tag,{color:"blue",children:y.requestMethod})}),m.jsx(b.Descriptions.Item,{label:"路径",span:2,children:m.jsx(km,{code:!0,children:y.requestPath})}),m.jsx(b.Descriptions.Item,{label:"状态码",children:m.jsx(b.Tag,{color:y.responseStatus>=400?"red":"green",children:y.responseStatus})}),m.jsxs(b.Descriptions.Item,{label:"耗时",children:[y.durationMs,"ms"]}),m.jsx(b.Descriptions.Item,{label:"匹配",children:y.matched===1?m.jsx(b.Tag,{color:"green",children:"命中"}):m.jsx(b.Tag,{color:"red",children:"未匹配"})}),m.jsx(b.Descriptions.Item,{label:"回退",children:y.fallbackType||"-"}),m.jsx(b.Descriptions.Item,{label:"Mock",span:2,children:y.mockCode||"-"}),m.jsx(b.Descriptions.Item,{label:"场景状态",span:2,children:y.scenarioState||"-"}),m.jsx(b.Descriptions.Item,{label:"客户端 IP",children:y.clientIp||"-"}),m.jsx(b.Descriptions.Item,{label:"User-Agent",ellipsis:!0,children:y.userAgent||"-"}),m.jsx(b.Descriptions.Item,{label:"时间",span:2,children:y.createTime?new Date(y.createTime).toLocaleString():"-"})]}),m.jsx(km,{strong:!0,children:"请求头:"}),m.jsx("pre",{style:{background:"#f5f5f5",padding:12,borderRadius:4,maxHeight:150,overflow:"auto",fontSize:12,fontFamily:"monospace",whiteSpace:"pre-wrap"},children:y.requestHeaders||"(无)"}),m.jsx(km,{strong:!0,style:{marginTop:12,display:"block"},children:"请求体:"}),m.jsx("pre",{style:{background:"#f5f5f5",padding:12,borderRadius:4,maxHeight:200,overflow:"auto",fontSize:12,fontFamily:"monospace",whiteSpace:"pre-wrap",wordBreak:"break-all"},children:y.requestBody||"(无)"}),m.jsx(km,{strong:!0,style:{marginTop:12,display:"block"},children:"响应体:"}),m.jsx("pre",{style:{background:"#f5f5f5",padding:12,borderRadius:4,maxHeight:300,overflow:"auto",fontSize:12,fontFamily:"monospace",whiteSpace:"pre-wrap",wordBreak:"break-all"},children:y.responseBody||"(无)"})]})})]})}const{Text:Ts}=b.Typography,xD=[{key:"endpoints",label:"Mock 端点",component:ax},{key:"environments",label:"环境 (MOCK/REAL/MIXED)",component:ox},{key:"scenarios",label:"场景状态机",component:mD},{key:"cases",label:"测试用例",component:yD},{key:"recordings",label:"录制回放",component:vD},{key:"request-logs",label:"请求日志",component:SD}];function C7(){var j;const[n,i]=H.useState("endpoints"),[r,s]=H.useState([]),[f,p]=H.useState("default"),[y,S]=H.useState(null);H.useEffect(()=>{T(),C()},[]);const T=async()=>{try{const O=await Bt.environments.list(),A=Array.isArray(O)?O:[];if(s(A),A.length>0&&!A.find(R=>R.envCode===f)){const R=A.find(N=>N.isDefault===1)||A[0];p(R.envCode)}}catch{}},C=async()=>{try{const O=await Bt.stats();S(O)}catch{}};return(j=xD.find(O=>O.key===n))==null||j.component,m.jsxs("div",{children:[m.jsx(b.Card,{style:{marginBottom:16},bodyStyle:{padding:16},children:m.jsxs(b.Space,{size:"large",wrap:!0,children:[m.jsxs(b.Space,{children:[m.jsx(he.DashboardOutlined,{style:{fontSize:18,color:"#1890ff"}}),m.jsx(Ts,{strong:!0,style:{fontSize:16},children:"Mock 平台"}),m.jsx(b.Tag,{color:"blue",children:"WireMock 级"})]}),m.jsxs(b.Space,{children:[m.jsx(he.GlobalOutlined,{}),m.jsx(Ts,{children:"当前环境:"}),m.jsx(b.Select,{value:f,onChange:p,style:{width:200},options:r.map(O=>({value:O.envCode,label:`${O.envName||O.envCode} (${O.envType})`}))})]}),y&&m.jsxs(b.Space,{size:"large",children:[m.jsxs(Ts,{type:"secondary",children:["端点: ",m.jsx(Ts,{strong:!0,children:y.totalEndpoints})]}),m.jsxs(Ts,{type:"secondary",children:["启用: ",m.jsx(Ts,{strong:!0,style:{color:"#52c41a"},children:y.activeEndpoints})]}),m.jsxs(Ts,{type:"secondary",children:["场景: ",m.jsx(Ts,{strong:!0,children:y.totalScenarios})]}),m.jsxs(Ts,{type:"secondary",children:["用例: ",m.jsx(Ts,{strong:!0,children:y.totalCases})]})]}),m.jsx(b.Button,{icon:m.jsx(he.ReloadOutlined,{}),onClick:()=>{T(),C()},children:"刷新"})]})}),m.jsx(b.Tabs,{activeKey:n,onChange:i,type:"card",items:xD.map(O=>({key:O.key,label:O.label,children:O.component===ax?m.jsx(ax,{activeEnvCode:f}):O.component===ox?m.jsx(ox,{onEnvChange:A=>{p(A),b.message.success(`已切换到环境: ${A}`)}}):m.jsx(O.component,{})}))})]})}ct.AgentTeamIM=o3,ct.AppLayout=V4,ct.CtcAuthPage=e3,ct.CtcLayout=Z6,ct.CtcLogin=l3,ct.CurlImportModal=gD,ct.EndpointsTab=ax,ct.EnvironmentsTab=ox,ct.ErrorBoundary=H6,ct.LoginPage=B6,ct.LowCodeModel=aD,ct.LowCodePage=i7,ct.LowCodeRuntime=iD,ct.MaterializePage=s7,ct.MockPlatform=C7,ct.MockTemplateHelper=dD,ct.OpenApiImportModal=uD,ct.Overview=q6,ct.RecordingsTab=vD,ct.RequestLogsTab=SD,ct.ScenariosTab=mD,ct.StatusTag=F4,ct.TestCasesTab=yD,ct.UCLayout=JL,ct.UCLogin=KL,ct.UCPhoneLogin=WL,ct.UCRegister=e7,ct.UCResetPassword=t7,ct.UserPanel=GL,ct.Webide=PL,ct.authRequest=FE,ct.createRequest=VE,ct.ctcRequest=V6,ct.defaultStatusMap=LO,ct.request=_n,ct.setupInterceptors=ww,Object.defineProperty(ct,Symbol.toStringTag,{value:"Module"})}));