optio-dashboard 0.1.3 → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/public/assets/KaTeX_AMS-Regular-BQhdFMY1.woff2 +0 -0
- package/dist/public/assets/KaTeX_AMS-Regular-DMm9YOAa.woff +0 -0
- package/dist/public/assets/KaTeX_AMS-Regular-DRggAlZN.ttf +0 -0
- package/dist/public/assets/KaTeX_Caligraphic-Bold-ATXxdsX0.ttf +0 -0
- package/dist/public/assets/KaTeX_Caligraphic-Bold-BEiXGLvX.woff +0 -0
- package/dist/public/assets/KaTeX_Caligraphic-Bold-Dq_IR9rO.woff2 +0 -0
- package/dist/public/assets/KaTeX_Caligraphic-Regular-CTRA-rTL.woff +0 -0
- package/dist/public/assets/KaTeX_Caligraphic-Regular-Di6jR-x-.woff2 +0 -0
- package/dist/public/assets/KaTeX_Caligraphic-Regular-wX97UBjC.ttf +0 -0
- package/dist/public/assets/KaTeX_Fraktur-Bold-BdnERNNW.ttf +0 -0
- package/dist/public/assets/KaTeX_Fraktur-Bold-BsDP51OF.woff +0 -0
- package/dist/public/assets/KaTeX_Fraktur-Bold-CL6g_b3V.woff2 +0 -0
- package/dist/public/assets/KaTeX_Fraktur-Regular-CB_wures.ttf +0 -0
- package/dist/public/assets/KaTeX_Fraktur-Regular-CTYiF6lA.woff2 +0 -0
- package/dist/public/assets/KaTeX_Fraktur-Regular-Dxdc4cR9.woff +0 -0
- package/dist/public/assets/KaTeX_Main-Bold-Cx986IdX.woff2 +0 -0
- package/dist/public/assets/KaTeX_Main-Bold-Jm3AIy58.woff +0 -0
- package/dist/public/assets/KaTeX_Main-Bold-waoOVXN0.ttf +0 -0
- package/dist/public/assets/KaTeX_Main-BoldItalic-DxDJ3AOS.woff2 +0 -0
- package/dist/public/assets/KaTeX_Main-BoldItalic-DzxPMmG6.ttf +0 -0
- package/dist/public/assets/KaTeX_Main-BoldItalic-SpSLRI95.woff +0 -0
- package/dist/public/assets/KaTeX_Main-Italic-3WenGoN9.ttf +0 -0
- package/dist/public/assets/KaTeX_Main-Italic-BMLOBm91.woff +0 -0
- package/dist/public/assets/KaTeX_Main-Italic-NWA7e6Wa.woff2 +0 -0
- package/dist/public/assets/KaTeX_Main-Regular-B22Nviop.woff2 +0 -0
- package/dist/public/assets/KaTeX_Main-Regular-Dr94JaBh.woff +0 -0
- package/dist/public/assets/KaTeX_Main-Regular-ypZvNtVU.ttf +0 -0
- package/dist/public/assets/KaTeX_Math-BoldItalic-B3XSjfu4.ttf +0 -0
- package/dist/public/assets/KaTeX_Math-BoldItalic-CZnvNsCZ.woff2 +0 -0
- package/dist/public/assets/KaTeX_Math-BoldItalic-iY-2wyZ7.woff +0 -0
- package/dist/public/assets/KaTeX_Math-Italic-DA0__PXp.woff +0 -0
- package/dist/public/assets/KaTeX_Math-Italic-flOr_0UB.ttf +0 -0
- package/dist/public/assets/KaTeX_Math-Italic-t53AETM-.woff2 +0 -0
- package/dist/public/assets/KaTeX_SansSerif-Bold-CFMepnvq.ttf +0 -0
- package/dist/public/assets/KaTeX_SansSerif-Bold-D1sUS0GD.woff2 +0 -0
- package/dist/public/assets/KaTeX_SansSerif-Bold-DbIhKOiC.woff +0 -0
- package/dist/public/assets/KaTeX_SansSerif-Italic-C3H0VqGB.woff2 +0 -0
- package/dist/public/assets/KaTeX_SansSerif-Italic-DN2j7dab.woff +0 -0
- package/dist/public/assets/KaTeX_SansSerif-Italic-YYjJ1zSn.ttf +0 -0
- package/dist/public/assets/KaTeX_SansSerif-Regular-BNo7hRIc.ttf +0 -0
- package/dist/public/assets/KaTeX_SansSerif-Regular-CS6fqUqJ.woff +0 -0
- package/dist/public/assets/KaTeX_SansSerif-Regular-DDBCnlJ7.woff2 +0 -0
- package/dist/public/assets/KaTeX_Script-Regular-C5JkGWo-.ttf +0 -0
- package/dist/public/assets/KaTeX_Script-Regular-D3wIWfF6.woff2 +0 -0
- package/dist/public/assets/KaTeX_Script-Regular-D5yQViql.woff +0 -0
- package/dist/public/assets/KaTeX_Size1-Regular-C195tn64.woff +0 -0
- package/dist/public/assets/KaTeX_Size1-Regular-Dbsnue_I.ttf +0 -0
- package/dist/public/assets/KaTeX_Size1-Regular-mCD8mA8B.woff2 +0 -0
- package/dist/public/assets/KaTeX_Size2-Regular-B7gKUWhC.ttf +0 -0
- package/dist/public/assets/KaTeX_Size2-Regular-Dy4dx90m.woff2 +0 -0
- package/dist/public/assets/KaTeX_Size2-Regular-oD1tc_U0.woff +0 -0
- package/dist/public/assets/KaTeX_Size3-Regular-CTq5MqoE.woff +0 -0
- package/dist/public/assets/KaTeX_Size3-Regular-DgpXs0kz.ttf +0 -0
- package/dist/public/assets/KaTeX_Size4-Regular-BF-4gkZK.woff +0 -0
- package/dist/public/assets/KaTeX_Size4-Regular-DWFBv043.ttf +0 -0
- package/dist/public/assets/KaTeX_Size4-Regular-Dl5lxZxV.woff2 +0 -0
- package/dist/public/assets/KaTeX_Typewriter-Regular-C0xS9mPB.woff +0 -0
- package/dist/public/assets/KaTeX_Typewriter-Regular-CO6r4hn1.woff2 +0 -0
- package/dist/public/assets/KaTeX_Typewriter-Regular-D3Ib7_Hf.ttf +0 -0
- package/dist/public/assets/{arc-DE_xi24m.js → arc-CJ_Oj0Q4.js} +1 -1
- package/dist/public/assets/{architectureDiagram-3BPJPVTR-By16FMcu.js → architectureDiagram-3BPJPVTR-C8SRIa0B.js} +1 -1
- package/dist/public/assets/{blockDiagram-GPEHLZMM-GU-In-96.js → blockDiagram-GPEHLZMM-D_yR29lN.js} +1 -1
- package/dist/public/assets/{c4Diagram-AAUBKEIU-BXTJnsSz.js → c4Diagram-AAUBKEIU-BjeJncn5.js} +1 -1
- package/dist/public/assets/channel-D5Yagm1G.js +1 -0
- package/dist/public/assets/{chunk-2J33WTMH-CekHL4XF.js → chunk-2J33WTMH-BBKKRFjK.js} +1 -1
- package/dist/public/assets/{chunk-4BX2VUAB-s9KUoIQc.js → chunk-4BX2VUAB-D9Vpq4jE.js} +1 -1
- package/dist/public/assets/{chunk-55IACEB6-CJdFpQ_6.js → chunk-55IACEB6-BBLba0rK.js} +1 -1
- package/dist/public/assets/{chunk-727SXJPM-nt3arsyY.js → chunk-727SXJPM-C0we-Fgp.js} +1 -1
- package/dist/public/assets/{chunk-AQP2D5EJ-JNQzH83E.js → chunk-AQP2D5EJ-BMG353ov.js} +1 -1
- package/dist/public/assets/{chunk-FMBD7UC4-DuSN0i2l.js → chunk-FMBD7UC4-CUwbk2_m.js} +1 -1
- package/dist/public/assets/{chunk-ND2GUHAM-1Gv7UU4z.js → chunk-ND2GUHAM-M35jlI0q.js} +1 -1
- package/dist/public/assets/{chunk-QZHKN3VN-DZ7iWI69.js → chunk-QZHKN3VN-mXbMoT9N.js} +1 -1
- package/dist/public/assets/classDiagram-4FO5ZUOK-C0yiItEf.js +1 -0
- package/dist/public/assets/classDiagram-v2-Q7XG4LA2-C0yiItEf.js +1 -0
- package/dist/public/assets/{cose-bilkent-S5V4N54A-Bue76PfZ.js → cose-bilkent-S5V4N54A-BICIUXfO.js} +1 -1
- package/dist/public/assets/{dagre-BM42HDAG-D81F23rU.js → dagre-BM42HDAG-Eng4IAaQ.js} +1 -1
- package/dist/public/assets/{diagram-2AECGRRQ-CfRlqXtq.js → diagram-2AECGRRQ-d5uL2UYL.js} +1 -1
- package/dist/public/assets/{diagram-5GNKFQAL-DxOSiucl.js → diagram-5GNKFQAL-OMtpVu0m.js} +1 -1
- package/dist/public/assets/{diagram-KO2AKTUF-DfnT8Uxy.js → diagram-KO2AKTUF-BOkGf99o.js} +1 -1
- package/dist/public/assets/{diagram-LMA3HP47-B8xUjFqm.js → diagram-LMA3HP47-DicGJ2Pm.js} +1 -1
- package/dist/public/assets/{diagram-OG6HWLK6-BUjXjcIj.js → diagram-OG6HWLK6-CEX67xBE.js} +1 -1
- package/dist/public/assets/{erDiagram-TEJ5UH35-CEo36t3J.js → erDiagram-TEJ5UH35-JROTYdJQ.js} +1 -1
- package/dist/public/assets/{flowDiagram-I6XJVG4X-BYQu9w0B.js → flowDiagram-I6XJVG4X-DtYi1B9T.js} +1 -1
- package/dist/public/assets/{ganttDiagram-6RSMTGT7-BvEvWWQg.js → ganttDiagram-6RSMTGT7-CneTgSvV.js} +1 -1
- package/dist/public/assets/{gitGraphDiagram-PVQCEYII-BIj9Zo99.js → gitGraphDiagram-PVQCEYII-DYkYDgX5.js} +1 -1
- package/dist/public/assets/index-BYZTj3zW.css +1 -0
- package/dist/public/assets/index-BmwRSVqf.js +674 -0
- package/dist/public/assets/{infoDiagram-5YYISTIA-DNE3Ic8M.js → infoDiagram-5YYISTIA-CM-0vSBJ.js} +1 -1
- package/dist/public/assets/{ishikawaDiagram-YF4QCWOH-00zrvbwc.js → ishikawaDiagram-YF4QCWOH-Cz9OHnjT.js} +1 -1
- package/dist/public/assets/{journeyDiagram-JHISSGLW-D4lJ156C.js → journeyDiagram-JHISSGLW-C3wgEbHa.js} +1 -1
- package/dist/public/assets/{kanban-definition-UN3LZRKU-qw20AGLk.js → kanban-definition-UN3LZRKU-CN-v7Ruk.js} +1 -1
- package/dist/public/assets/{linear-V7SIprvQ.js → linear-BzV_hAKC.js} +1 -1
- package/dist/public/assets/{mermaid.core-kWx7wKuF.js → mermaid.core-SSuzcDCO.js} +5 -5
- package/dist/public/assets/{mindmap-definition-RKZ34NQL-CTcYPIkd.js → mindmap-definition-RKZ34NQL-DvJmuZD4.js} +1 -1
- package/dist/public/assets/{pieDiagram-4H26LBE5-E2IZwYlS.js → pieDiagram-4H26LBE5-DvCctJ-i.js} +1 -1
- package/dist/public/assets/{quadrantDiagram-W4KKPZXB-CGganDmC.js → quadrantDiagram-W4KKPZXB-BUQN95N9.js} +1 -1
- package/dist/public/assets/{requirementDiagram-4Y6WPE33-DukU06Tp.js → requirementDiagram-4Y6WPE33-B7wDB9eg.js} +1 -1
- package/dist/public/assets/{sankeyDiagram-5OEKKPKP-BOjHVL2K.js → sankeyDiagram-5OEKKPKP-D0U3DPdO.js} +1 -1
- package/dist/public/assets/{sequenceDiagram-3UESZ5HK-De9EqIsr.js → sequenceDiagram-3UESZ5HK-DeVZVQg1.js} +1 -1
- package/dist/public/assets/{stateDiagram-AJRCARHV-E7FkuTyx.js → stateDiagram-AJRCARHV-C6Q0szJI.js} +1 -1
- package/dist/public/assets/stateDiagram-v2-BHNVJYJU-Ct4i2Xug.js +1 -0
- package/dist/public/assets/{timeline-definition-PNZ67QCA-B5Ny-GjF.js → timeline-definition-PNZ67QCA-BiQmCA9A.js} +1 -1
- package/dist/public/assets/{vennDiagram-CIIHVFJN-NGa20Acy.js → vennDiagram-CIIHVFJN-EeC9Ldo4.js} +1 -1
- package/dist/public/assets/{wardley-L42UT6IY-BEUQzCxF.js → wardley-L42UT6IY-BrBDHS8F.js} +1 -1
- package/dist/public/assets/{wardleyDiagram-YWT4CUSO-Br22tC8X.js → wardleyDiagram-YWT4CUSO-Cv-kZB1O.js} +1 -1
- package/dist/public/assets/{xychartDiagram-2RQKCTM6-qHxcPRw8.js → xychartDiagram-2RQKCTM6-IRWlm4ae.js} +1 -1
- package/dist/public/index.html +2 -1
- package/package.json +4 -4
- package/dist/public/assets/channel-AtwJzmkt.js +0 -1
- package/dist/public/assets/classDiagram-4FO5ZUOK-ChnW9WeA.js +0 -1
- package/dist/public/assets/classDiagram-v2-Q7XG4LA2-ChnW9WeA.js +0 -1
- package/dist/public/assets/index-DV51LYMz.js +0 -404
- package/dist/public/assets/katex-C5jXJg4s.js +0 -257
- package/dist/public/assets/stateDiagram-v2-BHNVJYJU-BH_2_DmX.js +0 -1
|
@@ -1,404 +0,0 @@
|
|
|
1
|
-
var dk=Object.defineProperty;var KO=e=>{throw TypeError(e)};var fk=(e,t,n)=>t in e?dk(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Hc=(e,t,n)=>fk(e,typeof t!="symbol"?t+"":t,n),C0=(e,t,n)=>t.has(e)||KO("Cannot "+n);var ee=(e,t,n)=>(C0(e,t,"read from private field"),n?n.call(e):t.get(e)),yt=(e,t,n)=>t.has(e)?KO("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),it=(e,t,n,r)=>(C0(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),Ht=(e,t,n)=>(C0(e,t,"access private method"),n);var Dm=(e,t,n,r)=>({set _(i){it(e,t,i,n)},get _(){return ee(e,t,r)}});function OI(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in e)){const a=Object.getOwnPropertyDescriptor(r,i);a&&Object.defineProperty(e,i,a.get?a:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const a of i)if(a.type==="childList")for(const l of a.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&r(l)}).observe(document,{childList:!0,subtree:!0});function n(i){const a={};return i.integrity&&(a.integrity=i.integrity),i.referrerPolicy&&(a.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?a.credentials="include":i.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function r(i){if(i.ep)return;i.ep=!0;const a=n(i);fetch(i.href,a)}})();function ec(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var w0={exports:{}},Kd={};/**
|
|
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 WO;function hk(){if(WO)return Kd;WO=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,i,a){var l=null;if(a!==void 0&&(l=""+a),i.key!==void 0&&(l=""+i.key),"key"in i){a={};for(var c in i)c!=="key"&&(a[c]=i[c])}else a=i;return i=a.ref,{$$typeof:e,type:r,key:l,ref:i!==void 0?i:null,props:a}}return Kd.Fragment=t,Kd.jsx=n,Kd.jsxs=n,Kd}var GO;function mk(){return GO||(GO=1,w0.exports=hk()),w0.exports}var se=mk(),E0={exports:{}},Yt={};/**
|
|
10
|
-
* @license React
|
|
11
|
-
* react.production.js
|
|
12
|
-
*
|
|
13
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
14
|
-
*
|
|
15
|
-
* This source code is licensed under the MIT license found in the
|
|
16
|
-
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var XO;function gk(){if(XO)return Yt;XO=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),g=Symbol.for("react.activity"),v=Symbol.iterator;function y(U){return U===null||typeof U!="object"?null:(U=v&&U[v]||U["@@iterator"],typeof U=="function"?U:null)}var b={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},x=Object.assign,S={};function w(U,K,D){this.props=U,this.context=K,this.refs=S,this.updater=D||b}w.prototype.isReactComponent={},w.prototype.setState=function(U,K){if(typeof U!="object"&&typeof U!="function"&&U!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,U,K,"setState")},w.prototype.forceUpdate=function(U){this.updater.enqueueForceUpdate(this,U,"forceUpdate")};function $(){}$.prototype=w.prototype;function O(U,K,D){this.props=U,this.context=K,this.refs=S,this.updater=D||b}var T=O.prototype=new $;T.constructor=O,x(T,w.prototype),T.isPureReactComponent=!0;var _=Array.isArray;function R(){}var M={H:null,A:null,T:null,S:null},P=Object.prototype.hasOwnProperty;function N(U,K,D){var X=D.ref;return{$$typeof:e,type:U,key:K,ref:X!==void 0?X:null,props:D}}function I(U,K){return N(U.type,K,U.props)}function B(U){return typeof U=="object"&&U!==null&&U.$$typeof===e}function A(U){var K={"=":"=0",":":"=2"};return"$"+U.replace(/[=:]/g,function(D){return K[D]})}var k=/\/+/g;function j(U,K){return typeof U=="object"&&U!==null&&U.key!=null?A(""+U.key):K.toString(36)}function V(U){switch(U.status){case"fulfilled":return U.value;case"rejected":throw U.reason;default:switch(typeof U.status=="string"?U.then(R,R):(U.status="pending",U.then(function(K){U.status==="pending"&&(U.status="fulfilled",U.value=K)},function(K){U.status==="pending"&&(U.status="rejected",U.reason=K)})),U.status){case"fulfilled":return U.value;case"rejected":throw U.reason}}throw U}function z(U,K,D,X,Q){var Y=typeof U;(Y==="undefined"||Y==="boolean")&&(U=null);var ie=!1;if(U===null)ie=!0;else switch(Y){case"bigint":case"string":case"number":ie=!0;break;case"object":switch(U.$$typeof){case e:case t:ie=!0;break;case m:return ie=U._init,z(ie(U._payload),K,D,X,Q)}}if(ie)return Q=Q(U),ie=X===""?"."+j(U,0):X,_(Q)?(D="",ie!=null&&(D=ie.replace(k,"$&/")+"/"),z(Q,K,D,"",function(Ce){return Ce})):Q!=null&&(B(Q)&&(Q=I(Q,D+(Q.key==null||U&&U.key===Q.key?"":(""+Q.key).replace(k,"$&/")+"/")+ie)),K.push(Q)),1;ie=0;var oe=X===""?".":X+":";if(_(U))for(var le=0;le<U.length;le++)X=U[le],Y=oe+j(X,le),ie+=z(X,K,D,Y,Q);else if(le=y(U),typeof le=="function")for(U=le.call(U),le=0;!(X=U.next()).done;)X=X.value,Y=oe+j(X,le++),ie+=z(X,K,D,Y,Q);else if(Y==="object"){if(typeof U.then=="function")return z(V(U),K,D,X,Q);throw K=String(U),Error("Objects are not valid as a React child (found: "+(K==="[object Object]"?"object with keys {"+Object.keys(U).join(", ")+"}":K)+"). If you meant to render a collection of children, use an array instead.")}return ie}function F(U,K,D){if(U==null)return U;var X=[],Q=0;return z(U,X,"","",function(Y){return K.call(D,Y,Q++)}),X}function q(U){if(U._status===-1){var K=U._result;K=K(),K.then(function(D){(U._status===0||U._status===-1)&&(U._status=1,U._result=D)},function(D){(U._status===0||U._status===-1)&&(U._status=2,U._result=D)}),U._status===-1&&(U._status=0,U._result=K)}if(U._status===1)return U._result.default;throw U._result}var Z=typeof reportError=="function"?reportError:function(U){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var K=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof U=="object"&&U!==null&&typeof U.message=="string"?String(U.message):String(U),error:U});if(!window.dispatchEvent(K))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",U);return}console.error(U)},H={map:F,forEach:function(U,K,D){F(U,function(){K.apply(this,arguments)},D)},count:function(U){var K=0;return F(U,function(){K++}),K},toArray:function(U){return F(U,function(K){return K})||[]},only:function(U){if(!B(U))throw Error("React.Children.only expected to receive a single React element child.");return U}};return Yt.Activity=g,Yt.Children=H,Yt.Component=w,Yt.Fragment=n,Yt.Profiler=i,Yt.PureComponent=O,Yt.StrictMode=r,Yt.Suspense=u,Yt.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=M,Yt.__COMPILER_RUNTIME={__proto__:null,c:function(U){return M.H.useMemoCache(U)}},Yt.cache=function(U){return function(){return U.apply(null,arguments)}},Yt.cacheSignal=function(){return null},Yt.cloneElement=function(U,K,D){if(U==null)throw Error("The argument must be a React element, but you passed "+U+".");var X=x({},U.props),Q=U.key;if(K!=null)for(Y in K.key!==void 0&&(Q=""+K.key),K)!P.call(K,Y)||Y==="key"||Y==="__self"||Y==="__source"||Y==="ref"&&K.ref===void 0||(X[Y]=K[Y]);var Y=arguments.length-2;if(Y===1)X.children=D;else if(1<Y){for(var ie=Array(Y),oe=0;oe<Y;oe++)ie[oe]=arguments[oe+2];X.children=ie}return N(U.type,Q,X)},Yt.createContext=function(U){return U={$$typeof:l,_currentValue:U,_currentValue2:U,_threadCount:0,Provider:null,Consumer:null},U.Provider=U,U.Consumer={$$typeof:a,_context:U},U},Yt.createElement=function(U,K,D){var X,Q={},Y=null;if(K!=null)for(X in K.key!==void 0&&(Y=""+K.key),K)P.call(K,X)&&X!=="key"&&X!=="__self"&&X!=="__source"&&(Q[X]=K[X]);var ie=arguments.length-2;if(ie===1)Q.children=D;else if(1<ie){for(var oe=Array(ie),le=0;le<ie;le++)oe[le]=arguments[le+2];Q.children=oe}if(U&&U.defaultProps)for(X in ie=U.defaultProps,ie)Q[X]===void 0&&(Q[X]=ie[X]);return N(U,Y,Q)},Yt.createRef=function(){return{current:null}},Yt.forwardRef=function(U){return{$$typeof:c,render:U}},Yt.isValidElement=B,Yt.lazy=function(U){return{$$typeof:m,_payload:{_status:-1,_result:U},_init:q}},Yt.memo=function(U,K){return{$$typeof:d,type:U,compare:K===void 0?null:K}},Yt.startTransition=function(U){var K=M.T,D={};M.T=D;try{var X=U(),Q=M.S;Q!==null&&Q(D,X),typeof X=="object"&&X!==null&&typeof X.then=="function"&&X.then(R,Z)}catch(Y){Z(Y)}finally{K!==null&&D.types!==null&&(K.types=D.types),M.T=K}},Yt.unstable_useCacheRefresh=function(){return M.H.useCacheRefresh()},Yt.use=function(U){return M.H.use(U)},Yt.useActionState=function(U,K,D){return M.H.useActionState(U,K,D)},Yt.useCallback=function(U,K){return M.H.useCallback(U,K)},Yt.useContext=function(U){return M.H.useContext(U)},Yt.useDebugValue=function(){},Yt.useDeferredValue=function(U,K){return M.H.useDeferredValue(U,K)},Yt.useEffect=function(U,K){return M.H.useEffect(U,K)},Yt.useEffectEvent=function(U){return M.H.useEffectEvent(U)},Yt.useId=function(){return M.H.useId()},Yt.useImperativeHandle=function(U,K,D){return M.H.useImperativeHandle(U,K,D)},Yt.useInsertionEffect=function(U,K){return M.H.useInsertionEffect(U,K)},Yt.useLayoutEffect=function(U,K){return M.H.useLayoutEffect(U,K)},Yt.useMemo=function(U,K){return M.H.useMemo(U,K)},Yt.useOptimistic=function(U,K){return M.H.useOptimistic(U,K)},Yt.useReducer=function(U,K,D){return M.H.useReducer(U,K,D)},Yt.useRef=function(U){return M.H.useRef(U)},Yt.useState=function(U){return M.H.useState(U)},Yt.useSyncExternalStore=function(U,K,D){return M.H.useSyncExternalStore(U,K,D)},Yt.useTransition=function(){return M.H.useTransition()},Yt.version="19.2.4",Yt}var QO;function Tp(){return QO||(QO=1,E0.exports=gk()),E0.exports}var h=Tp();const re=ec(h),_p=OI({__proto__:null,default:re},[h]);var $0={exports:{}};/*!
|
|
18
|
-
Copyright (c) 2018 Jed Watson.
|
|
19
|
-
Licensed under the MIT License (MIT), see
|
|
20
|
-
http://jedwatson.github.io/classnames
|
|
21
|
-
*/var YO;function pk(){return YO||(YO=1,(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var a="",l=0;l<arguments.length;l++){var c=arguments[l];c&&(a=i(a,r(c)))}return a}function r(a){if(typeof a=="string"||typeof a=="number")return a;if(typeof a!="object")return"";if(Array.isArray(a))return n.apply(null,a);if(a.toString!==Object.prototype.toString&&!a.toString.toString().includes("[native code]"))return a.toString();var l="";for(var c in a)t.call(a,c)&&a[c]&&(l=i(l,c));return l}function i(a,l){return l?a?a+" "+l:a+l:a}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})($0)),$0.exports}var vk=pk();const te=ec(vk);function Ue(){return Ue=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ue.apply(null,arguments)}function pt(e){"@babel/helpers - typeof";return pt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},pt(e)}var yk=Symbol.for("react.element"),bk=Symbol.for("react.transitional.element"),Sk=Symbol.for("react.fragment");function RI(e){return e&&pt(e)==="object"&&(e.$$typeof===yk||e.$$typeof===bk)&&e.type===Sk}function hi(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[];return re.Children.forEach(e,function(r){r==null&&!t.keepEmpty||(Array.isArray(r)?n=n.concat(hi(r)):RI(r)&&r.props?n=n.concat(hi(r.props.children,t)):n.push(r))}),n}var pS={},xk=function(t){};function Ck(e,t){}function wk(e,t){}function Ek(){pS={}}function TI(e,t,n){!t&&!pS[n]&&(e(!1,n),pS[n]=!0)}function ur(e,t){TI(Ck,e,t)}function $k(e,t){TI(wk,e,t)}ur.preMessage=xk;ur.resetWarned=Ek;ur.noteOnce=$k;function Ok(e,t){if(pt(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(pt(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function _I(e){var t=Ok(e,"string");return pt(t)=="symbol"?t:t+""}function G(e,t,n){return(t=_I(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ZO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function J(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ZO(Object(n),!0).forEach(function(r){G(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ZO(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var O0={exports:{}},Jr={};/**
|
|
22
|
-
* @license React
|
|
23
|
-
* react-dom.production.js
|
|
24
|
-
*
|
|
25
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
26
|
-
*
|
|
27
|
-
* This source code is licensed under the MIT license found in the
|
|
28
|
-
* LICENSE file in the root directory of this source tree.
|
|
29
|
-
*/var JO;function Rk(){if(JO)return Jr;JO=1;var e=Tp();function t(u){var d="https://react.dev/errors/"+u;if(1<arguments.length){d+="?args[]="+encodeURIComponent(arguments[1]);for(var m=2;m<arguments.length;m++)d+="&args[]="+encodeURIComponent(arguments[m])}return"Minified React error #"+u+"; visit "+d+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(){}var r={d:{f:n,r:function(){throw Error(t(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},i=Symbol.for("react.portal");function a(u,d,m){var g=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:i,key:g==null?null:""+g,children:u,containerInfo:d,implementation:m}}var l=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function c(u,d){if(u==="font")return"";if(typeof d=="string")return d==="use-credentials"?d:""}return Jr.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,Jr.createPortal=function(u,d){var m=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!d||d.nodeType!==1&&d.nodeType!==9&&d.nodeType!==11)throw Error(t(299));return a(u,d,null,m)},Jr.flushSync=function(u){var d=l.T,m=r.p;try{if(l.T=null,r.p=2,u)return u()}finally{l.T=d,r.p=m,r.d.f()}},Jr.preconnect=function(u,d){typeof u=="string"&&(d?(d=d.crossOrigin,d=typeof d=="string"?d==="use-credentials"?d:"":void 0):d=null,r.d.C(u,d))},Jr.prefetchDNS=function(u){typeof u=="string"&&r.d.D(u)},Jr.preinit=function(u,d){if(typeof u=="string"&&d&&typeof d.as=="string"){var m=d.as,g=c(m,d.crossOrigin),v=typeof d.integrity=="string"?d.integrity:void 0,y=typeof d.fetchPriority=="string"?d.fetchPriority:void 0;m==="style"?r.d.S(u,typeof d.precedence=="string"?d.precedence:void 0,{crossOrigin:g,integrity:v,fetchPriority:y}):m==="script"&&r.d.X(u,{crossOrigin:g,integrity:v,fetchPriority:y,nonce:typeof d.nonce=="string"?d.nonce:void 0})}},Jr.preinitModule=function(u,d){if(typeof u=="string")if(typeof d=="object"&&d!==null){if(d.as==null||d.as==="script"){var m=c(d.as,d.crossOrigin);r.d.M(u,{crossOrigin:m,integrity:typeof d.integrity=="string"?d.integrity:void 0,nonce:typeof d.nonce=="string"?d.nonce:void 0})}}else d==null&&r.d.M(u)},Jr.preload=function(u,d){if(typeof u=="string"&&typeof d=="object"&&d!==null&&typeof d.as=="string"){var m=d.as,g=c(m,d.crossOrigin);r.d.L(u,m,{crossOrigin:g,integrity:typeof d.integrity=="string"?d.integrity:void 0,nonce:typeof d.nonce=="string"?d.nonce:void 0,type:typeof d.type=="string"?d.type:void 0,fetchPriority:typeof d.fetchPriority=="string"?d.fetchPriority:void 0,referrerPolicy:typeof d.referrerPolicy=="string"?d.referrerPolicy:void 0,imageSrcSet:typeof d.imageSrcSet=="string"?d.imageSrcSet:void 0,imageSizes:typeof d.imageSizes=="string"?d.imageSizes:void 0,media:typeof d.media=="string"?d.media:void 0})}},Jr.preloadModule=function(u,d){if(typeof u=="string")if(d){var m=c(d.as,d.crossOrigin);r.d.m(u,{as:typeof d.as=="string"&&d.as!=="script"?d.as:void 0,crossOrigin:m,integrity:typeof d.integrity=="string"?d.integrity:void 0})}else r.d.m(u)},Jr.requestFormReset=function(u){r.d.r(u)},Jr.unstable_batchedUpdates=function(u,d){return u(d)},Jr.useFormState=function(u,d,m){return l.H.useFormState(u,d,m)},Jr.useFormStatus=function(){return l.H.useHostTransitionStatus()},Jr.version="19.2.4",Jr}var e2;function NI(){if(e2)return O0.exports;e2=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),O0.exports=Rk(),O0.exports}var kl=NI();const vS=ec(kl),Tk=OI({__proto__:null,default:vS},[kl]);function Tf(e){return e instanceof HTMLElement||e instanceof SVGElement}function II(e){return e&&pt(e)==="object"&&Tf(e.nativeElement)?e.nativeElement:Tf(e)?e:null}function dg(e){var t=II(e);if(t)return t;if(e instanceof re.Component){var n;return(n=vS.findDOMNode)===null||n===void 0?void 0:n.call(vS,e)}return null}var R0={exports:{}},Ln={};/**
|
|
30
|
-
* @license React
|
|
31
|
-
* react-is.production.min.js
|
|
32
|
-
*
|
|
33
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
34
|
-
*
|
|
35
|
-
* This source code is licensed under the MIT license found in the
|
|
36
|
-
* LICENSE file in the root directory of this source tree.
|
|
37
|
-
*/var t2;function _k(){if(t2)return Ln;t2=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.server_context"),u=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),m=Symbol.for("react.suspense_list"),g=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),y=Symbol.for("react.offscreen"),b;b=Symbol.for("react.module.reference");function x(S){if(typeof S=="object"&&S!==null){var w=S.$$typeof;switch(w){case e:switch(S=S.type,S){case n:case i:case r:case d:case m:return S;default:switch(S=S&&S.$$typeof,S){case c:case l:case u:case v:case g:case a:return S;default:return w}}case t:return w}}}return Ln.ContextConsumer=l,Ln.ContextProvider=a,Ln.Element=e,Ln.ForwardRef=u,Ln.Fragment=n,Ln.Lazy=v,Ln.Memo=g,Ln.Portal=t,Ln.Profiler=i,Ln.StrictMode=r,Ln.Suspense=d,Ln.SuspenseList=m,Ln.isAsyncMode=function(){return!1},Ln.isConcurrentMode=function(){return!1},Ln.isContextConsumer=function(S){return x(S)===l},Ln.isContextProvider=function(S){return x(S)===a},Ln.isElement=function(S){return typeof S=="object"&&S!==null&&S.$$typeof===e},Ln.isForwardRef=function(S){return x(S)===u},Ln.isFragment=function(S){return x(S)===n},Ln.isLazy=function(S){return x(S)===v},Ln.isMemo=function(S){return x(S)===g},Ln.isPortal=function(S){return x(S)===t},Ln.isProfiler=function(S){return x(S)===i},Ln.isStrictMode=function(S){return x(S)===r},Ln.isSuspense=function(S){return x(S)===d},Ln.isSuspenseList=function(S){return x(S)===m},Ln.isValidElementType=function(S){return typeof S=="string"||typeof S=="function"||S===n||S===i||S===r||S===d||S===m||S===y||typeof S=="object"&&S!==null&&(S.$$typeof===v||S.$$typeof===g||S.$$typeof===a||S.$$typeof===l||S.$$typeof===u||S.$$typeof===b||S.getModuleId!==void 0)},Ln.typeOf=x,Ln}var n2;function Nk(){return n2||(n2=1,R0.exports=_k()),R0.exports}var T0=Nk();function fh(e,t,n){var r=h.useRef({});return(!("value"in r.current)||n(r.current.condition,t))&&(r.current.value=e(),r.current.condition=t),r.current.value}var Ik=Number(h.version.split(".")[0]),xC=function(t,n){typeof t=="function"?t(n):pt(t)==="object"&&t&&"current"in t&&(t.current=n)},gi=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=n.filter(Boolean);return i.length<=1?i[0]:function(a){n.forEach(function(l){xC(l,a)})}},ql=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return fh(function(){return gi.apply(void 0,n)},n,function(i,a){return i.length!==a.length||i.every(function(l,c){return l!==a[c]})})},Ho=function(t){var n,r;if(!t)return!1;if(CC(t)&&Ik>=19)return!0;var i=T0.isMemo(t)?t.type.type:t.type;return!(typeof i=="function"&&!((n=i.prototype)!==null&&n!==void 0&&n.render)&&i.$$typeof!==T0.ForwardRef||typeof t=="function"&&!((r=t.prototype)!==null&&r!==void 0&&r.render)&&t.$$typeof!==T0.ForwardRef)};function CC(e){return h.isValidElement(e)&&!RI(e)}var Mk=function(t){return CC(t)&&Ho(t)},Kl=function(t){if(t&&CC(t)){var n=t;return n.props.propertyIsEnumerable("ref")?n.props.ref:n.ref}return null},yS=h.createContext(null);function Pk(e){var t=e.children,n=e.onBatchResize,r=h.useRef(0),i=h.useRef([]),a=h.useContext(yS),l=h.useCallback(function(c,u,d){r.current+=1;var m=r.current;i.current.push({size:c,element:u,data:d}),Promise.resolve().then(function(){m===r.current&&(n==null||n(i.current),i.current=[])}),a==null||a(c,u,d)},[n,a]);return h.createElement(yS.Provider,{value:l},t)}var MI=(function(){if(typeof Map<"u")return Map;function e(t,n){var r=-1;return t.some(function(i,a){return i[0]===n?(r=a,!0):!1}),r}return(function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(n){var r=e(this.__entries__,n),i=this.__entries__[r];return i&&i[1]},t.prototype.set=function(n,r){var i=e(this.__entries__,n);~i?this.__entries__[i][1]=r:this.__entries__.push([n,r])},t.prototype.delete=function(n){var r=this.__entries__,i=e(r,n);~i&&r.splice(i,1)},t.prototype.has=function(n){return!!~e(this.__entries__,n)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(n,r){r===void 0&&(r=null);for(var i=0,a=this.__entries__;i<a.length;i++){var l=a[i];n.call(r,l[1],l[0])}},t})()})(),bS=typeof window<"u"&&typeof document<"u"&&window.document===document,Ig=(function(){return typeof global<"u"&&global.Math===Math?global:typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")()})(),Ak=(function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(Ig):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}})(),zk=2;function jk(e,t){var n=!1,r=!1,i=0;function a(){n&&(n=!1,e()),r&&c()}function l(){Ak(a)}function c(){var u=Date.now();if(n){if(u-i<zk)return;r=!0}else n=!0,r=!1,setTimeout(l,t);i=u}return c}var Dk=20,Lk=["top","right","bottom","left","width","height","size","weight"],kk=typeof MutationObserver<"u",Bk=(function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=jk(this.refresh.bind(this),Dk)}return e.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},e.prototype.removeObserver=function(t){var n=this.observers_,r=n.indexOf(t);~r&&n.splice(r,1),!n.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){var t=this.updateObservers_();t&&this.refresh()},e.prototype.updateObservers_=function(){var t=this.observers_.filter(function(n){return n.gatherActive(),n.hasActive()});return t.forEach(function(n){return n.broadcastActive()}),t.length>0},e.prototype.connect_=function(){!bS||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),kk?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){!bS||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(t){var n=t.propertyName,r=n===void 0?"":n,i=Lk.some(function(a){return!!~r.indexOf(a)});i&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e})(),PI=(function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var i=r[n];Object.defineProperty(e,i,{value:t[i],enumerable:!1,writable:!1,configurable:!0})}return e}),zu=(function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||Ig}),AI=Np(0,0,0,0);function Mg(e){return parseFloat(e)||0}function r2(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce(function(r,i){var a=e["border-"+i+"-width"];return r+Mg(a)},0)}function Hk(e){for(var t=["top","right","bottom","left"],n={},r=0,i=t;r<i.length;r++){var a=i[r],l=e["padding-"+a];n[a]=Mg(l)}return n}function Fk(e){var t=e.getBBox();return Np(0,0,t.width,t.height)}function Vk(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return AI;var r=zu(e).getComputedStyle(e),i=Hk(r),a=i.left+i.right,l=i.top+i.bottom,c=Mg(r.width),u=Mg(r.height);if(r.boxSizing==="border-box"&&(Math.round(c+a)!==t&&(c-=r2(r,"left","right")+a),Math.round(u+l)!==n&&(u-=r2(r,"top","bottom")+l)),!qk(e)){var d=Math.round(c+a)-t,m=Math.round(u+l)-n;Math.abs(d)!==1&&(c-=d),Math.abs(m)!==1&&(u-=m)}return Np(i.left,i.top,c,u)}var Uk=(function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof zu(e).SVGGraphicsElement}:function(e){return e instanceof zu(e).SVGElement&&typeof e.getBBox=="function"}})();function qk(e){return e===zu(e).document.documentElement}function Kk(e){return bS?Uk(e)?Fk(e):Vk(e):AI}function Wk(e){var t=e.x,n=e.y,r=e.width,i=e.height,a=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,l=Object.create(a.prototype);return PI(l,{x:t,y:n,width:r,height:i,top:n,right:t+r,bottom:i+n,left:t}),l}function Np(e,t,n,r){return{x:e,y:t,width:n,height:r}}var Gk=(function(){function e(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=Np(0,0,0,0),this.target=t}return e.prototype.isActive=function(){var t=Kk(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},e})(),Xk=(function(){function e(t,n){var r=Wk(n);PI(this,{target:t,contentRect:r})}return e})(),Qk=(function(){function e(t,n,r){if(this.activeObservations_=[],this.observations_=new MI,typeof t!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=n,this.callbackCtx_=r}return e.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof zu(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new Gk(t)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof zu(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)&&(n.delete(t),n.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(n){n.isActive()&&t.activeObservations_.push(n)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,n=this.activeObservations_.map(function(r){return new Xk(r.target,r.broadcastRect())});this.callback_.call(t,n,t),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e})(),zI=typeof WeakMap<"u"?new WeakMap:new MI,jI=(function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=Bk.getInstance(),r=new Qk(t,n,this);zI.set(this,r)}return e})();["observe","unobserve","disconnect"].forEach(function(e){jI.prototype[e]=function(){var t;return(t=zI.get(this))[e].apply(t,arguments)}});var Yk=(function(){return typeof Ig.ResizeObserver<"u"?Ig.ResizeObserver:jI})(),Al=new Map;function Zk(e){e.forEach(function(t){var n,r=t.target;(n=Al.get(r))===null||n===void 0||n.forEach(function(i){return i(r)})})}var DI=new Yk(Zk);function Jk(e,t){Al.has(e)||(Al.set(e,new Set),DI.observe(e)),Al.get(e).add(t)}function e3(e,t){Al.has(e)&&(Al.get(e).delete(t),Al.get(e).size||(DI.unobserve(e),Al.delete(e)))}function yr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i2(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,_I(r.key),r)}}function br(e,t,n){return t&&i2(e.prototype,t),n&&i2(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function _f(e,t){return _f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},_f(e,t)}function Ba(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&_f(e,t)}function Ds(e){return Ds=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Ds(e)}function Ip(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Ip=function(){return!!e})()}function lt(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function LI(e,t){if(t&&(pt(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return lt(e)}function io(e){var t=Ip();return function(){var n,r=Ds(e);if(t){var i=Ds(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return LI(this,n)}}var t3=(function(e){Ba(n,e);var t=io(n);function n(){return yr(this,n),t.apply(this,arguments)}return br(n,[{key:"render",value:function(){return this.props.children}}]),n})(h.Component);function n3(e,t){var n=e.children,r=e.disabled,i=h.useRef(null),a=h.useRef(null),l=h.useContext(yS),c=typeof n=="function",u=c?n(i):n,d=h.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),m=!c&&h.isValidElement(u)&&Ho(u),g=m?Kl(u):null,v=ql(g,i),y=function(){var w;return dg(i.current)||(i.current&&pt(i.current)==="object"?dg((w=i.current)===null||w===void 0?void 0:w.nativeElement):null)||dg(a.current)};h.useImperativeHandle(t,function(){return y()});var b=h.useRef(e);b.current=e;var x=h.useCallback(function(S){var w=b.current,$=w.onResize,O=w.data,T=S.getBoundingClientRect(),_=T.width,R=T.height,M=S.offsetWidth,P=S.offsetHeight,N=Math.floor(_),I=Math.floor(R);if(d.current.width!==N||d.current.height!==I||d.current.offsetWidth!==M||d.current.offsetHeight!==P){var B={width:N,height:I,offsetWidth:M,offsetHeight:P};d.current=B;var A=M===Math.round(_)?_:M,k=P===Math.round(R)?R:P,j=J(J({},B),{},{offsetWidth:A,offsetHeight:k});l==null||l(j,S,O),$&&Promise.resolve().then(function(){$(j,S)})}},[]);return h.useEffect(function(){var S=y();return S&&!r&&Jk(S,x),function(){return e3(S,x)}},[i.current,r]),h.createElement(t3,{ref:a},m?h.cloneElement(u,{ref:v}):u)}var r3=h.forwardRef(n3),i3="rc-observer-key";function a3(e,t){var n=e.children,r=typeof n=="function"?[n]:hi(n);return r.map(function(i,a){var l=(i==null?void 0:i.key)||"".concat(i3,"-").concat(a);return h.createElement(r3,Ue({},e,{key:l,ref:a===0?t:void 0}),i)})}var ya=h.forwardRef(a3);ya.Collection=Pk;function SS(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function o3(e){if(Array.isArray(e))return SS(e)}function kI(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function wC(e,t){if(e){if(typeof e=="string")return SS(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?SS(e,t):void 0}}function l3(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
38
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function qe(e){return o3(e)||kI(e)||wC(e)||l3()}var BI=function(t){return+setTimeout(t,16)},HI=function(t){return clearTimeout(t)};typeof window<"u"&&"requestAnimationFrame"in window&&(BI=function(t){return window.requestAnimationFrame(t)},HI=function(t){return window.cancelAnimationFrame(t)});var a2=0,EC=new Map;function FI(e){EC.delete(e)}var Tn=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;a2+=1;var r=a2;function i(a){if(a===0)FI(r),t();else{var l=BI(function(){i(a-1)});EC.set(r,l)}}return i(n),r};Tn.cancel=function(e){var t=EC.get(e);return FI(e),HI(t)};function VI(e){if(Array.isArray(e))return e}function s3(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,l,c=[],u=!0,d=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=a.call(n)).done)&&(c.push(r.value),c.length!==t);u=!0);}catch(m){d=!0,i=m}finally{try{if(!u&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(d)throw i}}return c}}function UI(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
39
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function me(e,t){return VI(e)||s3(e,t)||wC(e,t)||UI()}function Nf(e){for(var t=0,n,r=0,i=e.length;i>=4;++r,i-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}function ai(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function c3(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var n=t;n;){if(n===e)return!0;n=n.parentNode}return!1}var o2="data-rc-order",l2="data-rc-priority",u3="rc-util-key",xS=new Map;function qI(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):u3}function Mp(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function d3(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function $C(e){return Array.from((xS.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function KI(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!ai())return null;var n=t.csp,r=t.prepend,i=t.priority,a=i===void 0?0:i,l=d3(r),c=l==="prependQueue",u=document.createElement("style");u.setAttribute(o2,l),c&&a&&u.setAttribute(l2,"".concat(a)),n!=null&&n.nonce&&(u.nonce=n==null?void 0:n.nonce),u.innerHTML=e;var d=Mp(t),m=d.firstChild;if(r){if(c){var g=(t.styles||$C(d)).filter(function(v){if(!["prepend","prependQueue"].includes(v.getAttribute(o2)))return!1;var y=Number(v.getAttribute(l2)||0);return a>=y});if(g.length)return d.insertBefore(u,g[g.length-1].nextSibling),u}d.insertBefore(u,m)}else d.appendChild(u);return u}function WI(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=Mp(t);return(t.styles||$C(n)).find(function(r){return r.getAttribute(qI(t))===e})}function If(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=WI(e,t);if(n){var r=Mp(t);r.removeChild(n)}}function f3(e,t){var n=xS.get(e);if(!n||!c3(document,n)){var r=KI("",t),i=r.parentNode;xS.set(e,i),e.removeChild(r)}}function Ao(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=Mp(n),i=$C(r),a=J(J({},n),{},{styles:i});f3(r,a);var l=WI(t,a);if(l){var c,u;if((c=a.csp)!==null&&c!==void 0&&c.nonce&&l.nonce!==((u=a.csp)===null||u===void 0?void 0:u.nonce)){var d;l.nonce=(d=a.csp)===null||d===void 0?void 0:d.nonce}return l.innerHTML!==e&&(l.innerHTML=e),l}var m=KI(e,a);return m.setAttribute(qI(a),t),m}function h3(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function jt(e,t){if(e==null)return{};var n,r,i=h3(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Mf(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=new Set;function i(a,l){var c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,u=r.has(a);if(ur(!u,"Warning: There may be circular references"),u)return!1;if(a===l)return!0;if(n&&c>1)return!1;r.add(a);var d=c+1;if(Array.isArray(a)){if(!Array.isArray(l)||a.length!==l.length)return!1;for(var m=0;m<a.length;m++)if(!i(a[m],l[m],d))return!1;return!0}if(a&&l&&pt(a)==="object"&&pt(l)==="object"){var g=Object.keys(a);return g.length!==Object.keys(l).length?!1:g.every(function(v){return i(a[v],l[v],d)})}return!1}return i(e,t)}var m3="%";function CS(e){return e.join(m3)}var g3=(function(){function e(t){yr(this,e),G(this,"instanceId",void 0),G(this,"cache",new Map),G(this,"extracted",new Set),this.instanceId=t}return br(e,[{key:"get",value:function(n){return this.opGet(CS(n))}},{key:"opGet",value:function(n){return this.cache.get(n)||null}},{key:"update",value:function(n,r){return this.opUpdate(CS(n),r)}},{key:"opUpdate",value:function(n,r){var i=this.cache.get(n),a=r(i);a===null?this.cache.delete(n):this.cache.set(n,a)}}]),e})(),ju="data-token-hash",Pa="data-css-hash",zl="__cssinjs_instance__";function p3(){var e=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(Pa,"]"))||[],n=document.head.firstChild;Array.from(t).forEach(function(i){i[zl]=i[zl]||e,i[zl]===e&&document.head.insertBefore(i,n)});var r={};Array.from(document.querySelectorAll("style[".concat(Pa,"]"))).forEach(function(i){var a=i.getAttribute(Pa);if(r[a]){if(i[zl]===e){var l;(l=i.parentNode)===null||l===void 0||l.removeChild(i)}}else r[a]=!0})}return new g3(e)}var hh=h.createContext({hashPriority:"low",cache:p3(),defaultCache:!0});function v3(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}var OC=(function(){function e(){yr(this,e),G(this,"cache",void 0),G(this,"keys",void 0),G(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return br(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(n){var r,i,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,l={map:this.cache};return n.forEach(function(c){if(!l)l=void 0;else{var u;l=(u=l)===null||u===void 0||(u=u.map)===null||u===void 0?void 0:u.get(c)}}),(r=l)!==null&&r!==void 0&&r.value&&a&&(l.value[1]=this.cacheCallTimes++),(i=l)===null||i===void 0?void 0:i.value}},{key:"get",value:function(n){var r;return(r=this.internalGet(n,!0))===null||r===void 0?void 0:r[0]}},{key:"has",value:function(n){return!!this.internalGet(n)}},{key:"set",value:function(n,r){var i=this;if(!this.has(n)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var a=this.keys.reduce(function(d,m){var g=me(d,2),v=g[1];return i.internalGet(m)[1]<v?[m,i.internalGet(m)[1]]:d},[this.keys[0],this.cacheCallTimes]),l=me(a,1),c=l[0];this.delete(c)}this.keys.push(n)}var u=this.cache;n.forEach(function(d,m){if(m===n.length-1)u.set(d,{value:[r,i.cacheCallTimes++]});else{var g=u.get(d);g?g.map||(g.map=new Map):u.set(d,{map:new Map}),u=u.get(d).map}})}},{key:"deleteByPath",value:function(n,r){var i=n.get(r[0]);if(r.length===1){var a;return i.map?n.set(r[0],{map:i.map}):n.delete(r[0]),(a=i.value)===null||a===void 0?void 0:a[0]}var l=this.deleteByPath(i.map,r.slice(1));return(!i.map||i.map.size===0)&&!i.value&&n.delete(r[0]),l}},{key:"delete",value:function(n){if(this.has(n))return this.keys=this.keys.filter(function(r){return!v3(r,n)}),this.deleteByPath(this.cache,n)}}]),e})();G(OC,"MAX_CACHE_SIZE",20);G(OC,"MAX_CACHE_OFFSET",5);var s2=0,GI=(function(){function e(t){yr(this,e),G(this,"derivatives",void 0),G(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=s2,t.length===0&&(t.length>0,void 0),s2+=1}return br(e,[{key:"getDerivativeToken",value:function(n){return this.derivatives.reduce(function(r,i){return i(n,r)},void 0)}}]),e})(),_0=new OC;function Pg(e){var t=Array.isArray(e)?e:[e];return _0.has(t)||_0.set(t,new GI(t)),_0.get(t)}var y3=new WeakMap,N0={};function b3(e,t){for(var n=y3,r=0;r<t.length;r+=1){var i=t[r];n.has(i)||n.set(i,new WeakMap),n=n.get(i)}return n.has(N0)||n.set(N0,e()),n.get(N0)}var c2=new WeakMap;function gf(e){var t=c2.get(e)||"";return t||(Object.keys(e).forEach(function(n){var r=e[n];t+=n,r instanceof GI?t+=r.id:r&&pt(r)==="object"?t+=gf(r):t+=r}),t=Nf(t),c2.set(e,t)),t}function u2(e,t){return Nf("".concat(t,"_").concat(gf(e)))}var wS=ai();function ae(e){return typeof e=="number"?"".concat(e,"px"):e}function Ag(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(i)return e;var a=J(J({},r),{},G(G({},ju,t),Pa,n)),l=Object.keys(a).map(function(c){var u=a[c];return u?"".concat(c,'="').concat(u,'"'):null}).filter(function(c){return c}).join(" ");return"<style ".concat(l,">").concat(e,"</style>")}var fg=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return"--".concat(n?"".concat(n,"-"):"").concat(t).replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1-$2").replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase()},S3=function(t,n,r){return Object.keys(t).length?".".concat(n).concat(r!=null&&r.scope?".".concat(r.scope):"","{").concat(Object.entries(t).map(function(i){var a=me(i,2),l=a[0],c=a[1];return"".concat(l,":").concat(c,";")}).join(""),"}"):""},XI=function(t,n,r){var i={},a={};return Object.entries(t).forEach(function(l){var c,u,d=me(l,2),m=d[0],g=d[1];if(r!=null&&(c=r.preserve)!==null&&c!==void 0&&c[m])a[m]=g;else if((typeof g=="string"||typeof g=="number")&&!(r!=null&&(u=r.ignore)!==null&&u!==void 0&&u[m])){var v,y=fg(m,r==null?void 0:r.prefix);i[y]=typeof g=="number"&&!(r!=null&&(v=r.unitless)!==null&&v!==void 0&&v[m])?"".concat(g,"px"):String(g),a[m]="var(".concat(y,")")}}),[a,S3(i,n,{scope:r==null?void 0:r.scope})]},d2=ai()?h.useLayoutEffect:h.useEffect,on=function(t,n){var r=h.useRef(!0);d2(function(){return t(r.current)},n),d2(function(){return r.current=!1,function(){r.current=!0}},[])},ES=function(t,n){on(function(r){if(!r)return t()},n)},x3=J({},_p),f2=x3.useInsertionEffect,C3=function(t,n,r){h.useMemo(t,r),on(function(){return n(!0)},r)},w3=f2?function(e,t,n){return f2(function(){return e(),t()},n)}:C3,E3=J({},_p),$3=E3.useInsertionEffect,O3=function(t){var n=[],r=!1;function i(a){r||n.push(a)}return h.useEffect(function(){return r=!1,function(){r=!0,n.length&&n.forEach(function(a){return a()})}},t),i},R3=function(){return function(t){t()}},T3=typeof $3<"u"?O3:R3;function RC(e,t,n,r,i){var a=h.useContext(hh),l=a.cache,c=[e].concat(qe(t)),u=CS(c),d=T3([u]),m=function(b){l.opUpdate(u,function(x){var S=x||[void 0,void 0],w=me(S,2),$=w[0],O=$===void 0?0:$,T=w[1],_=T,R=_||n(),M=[O,R];return b?b(M):M})};h.useMemo(function(){m()},[u]);var g=l.opGet(u),v=g[1];return w3(function(){i==null||i(v)},function(y){return m(function(b){var x=me(b,2),S=x[0],w=x[1];return y&&S===0&&(i==null||i(v)),[S+1,w]}),function(){l.opUpdate(u,function(b){var x=b||[],S=me(x,2),w=S[0],$=w===void 0?0:w,O=S[1],T=$-1;return T===0?(d(function(){(y||!l.opGet(u))&&(r==null||r(O,!1))}),null):[$-1,O]})}},[u]),v}var _3={},N3="css",Ss=new Map;function I3(e){Ss.set(e,(Ss.get(e)||0)+1)}function M3(e,t){if(typeof document<"u"){var n=document.querySelectorAll("style[".concat(ju,'="').concat(e,'"]'));n.forEach(function(r){if(r[zl]===t){var i;(i=r.parentNode)===null||i===void 0||i.removeChild(r)}})}}var P3=0;function A3(e,t){Ss.set(e,(Ss.get(e)||0)-1);var n=new Set;Ss.forEach(function(r,i){r<=0&&n.add(i)}),Ss.size-n.size>P3&&n.forEach(function(r){M3(r,t),Ss.delete(r)})}var QI=function(t,n,r,i){var a=r.getDerivativeToken(t),l=J(J({},a),n);return i&&(l=i(l)),l},YI="token";function z3(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=h.useContext(hh),i=r.cache.instanceId,a=r.container,l=n.salt,c=l===void 0?"":l,u=n.override,d=u===void 0?_3:u,m=n.formatToken,g=n.getComputedToken,v=n.cssVar,y=b3(function(){return Object.assign.apply(Object,[{}].concat(qe(t)))},t),b=gf(y),x=gf(d),S=v?gf(v):"",w=RC(YI,[c,e.id,b,x,S],function(){var $,O=g?g(y,d,e):QI(y,d,e,m),T=J({},O),_="";if(v){var R=XI(O,v.key,{prefix:v.prefix,ignore:v.ignore,unitless:v.unitless,preserve:v.preserve}),M=me(R,2);O=M[0],_=M[1]}var P=u2(O,c);O._tokenKey=P,T._tokenKey=u2(T,c);var N=($=v==null?void 0:v.key)!==null&&$!==void 0?$:P;O._themeKey=N,I3(N);var I="".concat(N3,"-").concat(Nf(P));return O._hashId=I,[O,I,T,_,(v==null?void 0:v.key)||""]},function($){A3($[0]._themeKey,i)},function($){var O=me($,4),T=O[0],_=O[3];if(v&&_){var R=Ao(_,Nf("css-variables-".concat(T._themeKey)),{mark:Pa,prepend:"queue",attachTo:a,priority:-999});R[zl]=i,R.setAttribute(ju,T._themeKey)}});return w}var j3=function(t,n,r){var i=me(t,5),a=i[2],l=i[3],c=i[4],u=r||{},d=u.plain;if(!l)return null;var m=a._tokenKey,g=-999,v={"data-rc-order":"prependQueue","data-rc-priority":"".concat(g)},y=Ag(l,c,m,v,d);return[g,m,y]},D3={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},ZI="comm",JI="rule",eM="decl",Jue="@media",L3="@import",ede="@supports",k3="@namespace",B3="@keyframes",H3="@layer",tde="@scope",tM=Math.abs,TC=String.fromCharCode;function nM(e){return e.trim()}function hg(e,t,n){return e.replace(t,n)}function F3(e,t,n){return e.indexOf(t,n)}function gu(e,t){return e.charCodeAt(t)|0}function Du(e,t,n){return e.slice(t,n)}function Ka(e){return e.length}function V3(e){return e.length}function Lm(e,t){return t.push(e),e}var Pp=1,Lu=1,rM=0,ba=0,Pr=0,Ku="";function _C(e,t,n,r,i,a,l,c){return{value:e,root:t,parent:n,type:r,props:i,children:a,line:Pp,column:Lu,length:l,return:"",siblings:c}}function U3(){return Pr}function q3(){return Pr=ba>0?gu(Ku,--ba):0,Lu--,Pr===10&&(Lu=1,Pp--),Pr}function Aa(){return Pr=ba<rM?gu(Ku,ba++):0,Lu++,Pr===10&&(Lu=1,Pp++),Pr}function jl(){return gu(Ku,ba)}function mg(){return ba}function Ap(e,t){return Du(Ku,e,t)}function Pf(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function K3(e){return Pp=Lu=1,rM=Ka(Ku=e),ba=0,[]}function W3(e){return Ku="",e}function I0(e){return nM(Ap(ba-1,$S(e===91?e+2:e===40?e+1:e)))}function G3(e){for(;(Pr=jl())&&Pr<33;)Aa();return Pf(e)>2||Pf(Pr)>3?"":" "}function X3(e,t){for(;--t&&Aa()&&!(Pr<48||Pr>102||Pr>57&&Pr<65||Pr>70&&Pr<97););return Ap(e,mg()+(t<6&&jl()==32&&Aa()==32))}function $S(e){for(;Aa();)switch(Pr){case e:return ba;case 34:case 39:e!==34&&e!==39&&$S(Pr);break;case 40:e===41&&$S(e);break;case 92:Aa();break}return ba}function Q3(e,t){for(;Aa()&&e+Pr!==57;)if(e+Pr===84&&jl()===47)break;return"/*"+Ap(t,ba-1)+"*"+TC(e===47?e:Aa())}function Y3(e){for(;!Pf(jl());)Aa();return Ap(e,ba)}function Z3(e){return W3(gg("",null,null,null,[""],e=K3(e),0,[0],e))}function gg(e,t,n,r,i,a,l,c,u){for(var d=0,m=0,g=l,v=0,y=0,b=0,x=1,S=1,w=1,$=0,O="",T=i,_=a,R=r,M=O;S;)switch(b=$,$=Aa()){case 40:if(b!=108&&gu(M,g-1)==58){F3(M+=hg(I0($),"&","&\f"),"&\f",tM(d?c[d-1]:0))!=-1&&(w=-1);break}case 34:case 39:case 91:M+=I0($);break;case 9:case 10:case 13:case 32:M+=G3(b);break;case 92:M+=X3(mg()-1,7);continue;case 47:switch(jl()){case 42:case 47:Lm(J3(Q3(Aa(),mg()),t,n,u),u),(Pf(b||1)==5||Pf(jl()||1)==5)&&Ka(M)&&Du(M,-1,void 0)!==" "&&(M+=" ");break;default:M+="/"}break;case 123*x:c[d++]=Ka(M)*w;case 125*x:case 59:case 0:switch($){case 0:case 125:S=0;case 59+m:w==-1&&(M=hg(M,/\f/g,"")),y>0&&(Ka(M)-g||x===0&&b===47)&&Lm(y>32?m2(M+";",r,n,g-1,u):m2(hg(M," ","")+";",r,n,g-2,u),u);break;case 59:M+=";";default:if(Lm(R=h2(M,t,n,d,m,i,c,O,T=[],_=[],g,a),a),$===123)if(m===0)gg(M,t,R,R,T,a,g,c,_);else{switch(v){case 99:if(gu(M,3)===110)break;case 108:if(gu(M,2)===97)break;default:m=0;case 100:case 109:case 115:}m?gg(e,R,R,r&&Lm(h2(e,R,R,0,0,i,c,O,i,T=[],g,_),_),i,_,g,c,r?T:_):gg(M,R,R,R,[""],_,0,c,_)}}d=m=y=0,x=w=1,O=M="",g=l;break;case 58:g=1+Ka(M),y=b;default:if(x<1){if($==123)--x;else if($==125&&x++==0&&q3()==125)continue}switch(M+=TC($),$*x){case 38:w=m>0?1:(M+="\f",-1);break;case 44:c[d++]=(Ka(M)-1)*w,w=1;break;case 64:jl()===45&&(M+=I0(Aa())),v=jl(),m=g=Ka(O=M+=Y3(mg())),$++;break;case 45:b===45&&Ka(M)==2&&(x=0)}}return a}function h2(e,t,n,r,i,a,l,c,u,d,m,g){for(var v=i-1,y=i===0?a:[""],b=V3(y),x=0,S=0,w=0;x<r;++x)for(var $=0,O=Du(e,v+1,v=tM(S=l[x])),T=e;$<b;++$)(T=nM(S>0?y[$]+" "+O:hg(O,/&\f/g,y[$])))&&(u[w++]=T);return _C(e,t,n,i===0?JI:c,u,d,m,g)}function J3(e,t,n,r){return _C(e,t,n,ZI,TC(U3()),Du(e,2,-2),0,r)}function m2(e,t,n,r,i){return _C(e,t,n,eM,Du(e,0,r),Du(e,r+1,-1),r,i)}function OS(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function e6(e,t,n,r){switch(e.type){case H3:if(e.children.length)break;case L3:case k3:case eM:return e.return=e.return||e.value;case ZI:return"";case B3:return e.return=e.value+"{"+OS(e.children,r)+"}";case JI:if(!Ka(e.value=e.props.join(",")))return""}return Ka(n=OS(e.children,r))?e.return=e.value+"{"+n+"}":""}var g2="data-ant-cssinjs-cache-path",iM="_FILE_STYLE__",zs,aM=!0;function t6(){if(!zs&&(zs={},ai())){var e=document.createElement("div");e.className=g2,e.style.position="fixed",e.style.visibility="hidden",e.style.top="-9999px",document.body.appendChild(e);var t=getComputedStyle(e).content||"";t=t.replace(/^"/,"").replace(/"$/,""),t.split(";").forEach(function(i){var a=i.split(":"),l=me(a,2),c=l[0],u=l[1];zs[c]=u});var n=document.querySelector("style[".concat(g2,"]"));if(n){var r;aM=!1,(r=n.parentNode)===null||r===void 0||r.removeChild(n)}document.body.removeChild(e)}}function n6(e){return t6(),!!zs[e]}function r6(e){var t=zs[e],n=null;if(t&&ai())if(aM)n=iM;else{var r=document.querySelector("style[".concat(Pa,'="').concat(zs[e],'"]'));r?n=r.innerHTML:delete zs[e]}return[n,t]}var i6="_skip_check_",oM="_multi_value_";function pg(e){var t=OS(Z3(e),e6);return t.replace(/\{%%%\:[^;];}/g,";")}function a6(e){return pt(e)==="object"&&e&&(i6 in e||oM in e)}function p2(e,t,n){if(!t)return e;var r=".".concat(t),i=n==="low"?":where(".concat(r,")"):r,a=e.split(",").map(function(l){var c,u=l.trim().split(/\s+/),d=u[0]||"",m=((c=d.match(/^\w+/))===null||c===void 0?void 0:c[0])||"";return d="".concat(m).concat(i).concat(d.slice(m.length)),[d].concat(qe(u.slice(1))).join(" ")});return a.join(",")}var o6=function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]},i=r.root,a=r.injectHash,l=r.parentSelectors,c=n.hashId,u=n.layer;n.path;var d=n.hashPriority,m=n.transformers,g=m===void 0?[]:m;n.linters;var v="",y={};function b(w){var $=w.getName(c);if(!y[$]){var O=e(w.style,n,{root:!1,parentSelectors:l}),T=me(O,1),_=T[0];y[$]="@keyframes ".concat(w.getName(c)).concat(_)}}function x(w){var $=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return w.forEach(function(O){Array.isArray(O)?x(O,$):O&&$.push(O)}),$}var S=x(Array.isArray(t)?t:[t]);return S.forEach(function(w){var $=typeof w=="string"&&!i?{}:w;if(typeof $=="string")v+="".concat($,`
|
|
40
|
-
`);else if($._keyframe)b($);else{var O=g.reduce(function(T,_){var R;return(_==null||(R=_.visit)===null||R===void 0?void 0:R.call(_,T))||T},$);Object.keys(O).forEach(function(T){var _=O[T];if(pt(_)==="object"&&_&&(T!=="animationName"||!_._keyframe)&&!a6(_)){var R=!1,M=T.trim(),P=!1;(i||a)&&c?M.startsWith("@")?R=!0:M==="&"?M=p2("",c,d):M=p2(T,c,d):i&&!c&&(M==="&"||M==="")&&(M="",P=!0);var N=e(_,n,{root:P,injectHash:R,parentSelectors:[].concat(qe(l),[M])}),I=me(N,2),B=I[0],A=I[1];y=J(J({},y),A),v+="".concat(M).concat(B)}else{let V=function(z,F){var q=z.replace(/[A-Z]/g,function(H){return"-".concat(H.toLowerCase())}),Z=F;!D3[z]&&typeof Z=="number"&&Z!==0&&(Z="".concat(Z,"px")),z==="animationName"&&F!==null&&F!==void 0&&F._keyframe&&(b(F),Z=F.getName(c)),v+="".concat(q,":").concat(Z,";")};var k,j=(k=_==null?void 0:_.value)!==null&&k!==void 0?k:_;pt(_)==="object"&&_!==null&&_!==void 0&&_[oM]&&Array.isArray(j)?j.forEach(function(z){V(T,z)}):V(T,j)}})}}),i?u&&(v&&(v="@layer ".concat(u.name," {").concat(v,"}")),u.dependencies&&(y["@layer ".concat(u.name)]=u.dependencies.map(function(w){return"@layer ".concat(w,", ").concat(u.name,";")}).join(`
|
|
41
|
-
`))):v="{".concat(v,"}"),[v,y]};function lM(e,t){return Nf("".concat(e.join("%")).concat(t))}function l6(){return null}var sM="style";function RS(e,t){var n=e.token,r=e.path,i=e.hashId,a=e.layer,l=e.nonce,c=e.clientOnly,u=e.order,d=u===void 0?0:u,m=h.useContext(hh),g=m.autoClear;m.mock;var v=m.defaultCache,y=m.hashPriority,b=m.container,x=m.ssrInline,S=m.transformers,w=m.linters,$=m.cache,O=m.layer,T=n._tokenKey,_=[T];O&&_.push("layer"),_.push.apply(_,qe(r));var R=wS,M=RC(sM,_,function(){var A=_.join("|");if(n6(A)){var k=r6(A),j=me(k,2),V=j[0],z=j[1];if(V)return[V,T,z,{},c,d]}var F=t(),q=o6(F,{hashId:i,hashPriority:y,layer:O?a:void 0,path:r.join("-"),transformers:S,linters:w}),Z=me(q,2),H=Z[0],U=Z[1],K=pg(H),D=lM(_,K);return[K,T,D,U,c,d]},function(A,k){var j=me(A,3),V=j[2];(k||g)&&wS&&If(V,{mark:Pa,attachTo:b})},function(A){var k=me(A,4),j=k[0];k[1];var V=k[2],z=k[3];if(R&&j!==iM){var F={mark:Pa,prepend:O?!1:"queue",attachTo:b,priority:d},q=typeof l=="function"?l():l;q&&(F.csp={nonce:q});var Z=[],H=[];Object.keys(z).forEach(function(K){K.startsWith("@layer")?Z.push(K):H.push(K)}),Z.forEach(function(K){Ao(pg(z[K]),"_layer-".concat(K),J(J({},F),{},{prepend:!0}))});var U=Ao(j,V,F);U[zl]=$.instanceId,U.setAttribute(ju,T),H.forEach(function(K){Ao(pg(z[K]),"_effect-".concat(K),F)})}}),P=me(M,3),N=P[0],I=P[1],B=P[2];return function(A){var k;return!x||R||!v?k=h.createElement(l6,null):k=h.createElement("style",Ue({},G(G({},ju,I),Pa,B),{dangerouslySetInnerHTML:{__html:N}})),h.createElement(h.Fragment,null,k,A)}}var s6=function(t,n,r){var i=me(t,6),a=i[0],l=i[1],c=i[2],u=i[3],d=i[4],m=i[5],g=r||{},v=g.plain;if(d)return null;var y=a,b={"data-rc-order":"prependQueue","data-rc-priority":"".concat(m)};return y=Ag(a,l,c,b,v),u&&Object.keys(u).forEach(function(x){if(!n[x]){n[x]=!0;var S=pg(u[x]),w=Ag(S,l,"_effect-".concat(x),b,v);x.startsWith("@layer")?y=w+y:y+=w}}),[m,c,y]},cM="cssVar",c6=function(t,n){var r=t.key,i=t.prefix,a=t.unitless,l=t.ignore,c=t.token,u=t.scope,d=u===void 0?"":u,m=h.useContext(hh),g=m.cache.instanceId,v=m.container,y=c._tokenKey,b=[].concat(qe(t.path),[r,d,y]),x=RC(cM,b,function(){var S=n(),w=XI(S,r,{prefix:i,unitless:a,ignore:l,scope:d}),$=me(w,2),O=$[0],T=$[1],_=lM(b,T);return[O,T,_,r]},function(S){var w=me(S,3),$=w[2];wS&&If($,{mark:Pa,attachTo:v})},function(S){var w=me(S,3),$=w[1],O=w[2];if($){var T=Ao($,O,{mark:Pa,prepend:"queue",attachTo:v,priority:-999});T[zl]=g,T.setAttribute(ju,r)}});return x},u6=function(t,n,r){var i=me(t,4),a=i[1],l=i[2],c=i[3],u=r||{},d=u.plain;if(!a)return null;var m=-999,g={"data-rc-order":"prependQueue","data-rc-priority":"".concat(m)},v=Ag(a,c,l,g,d);return[m,l,v]};G(G(G({},sM,s6),YI,j3),cM,u6);var ln=(function(){function e(t,n){yr(this,e),G(this,"name",void 0),G(this,"style",void 0),G(this,"_keyframe",!0),this.name=t,this.style=n}return br(e,[{key:"getName",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return n?"".concat(n,"-").concat(this.name):this.name}}]),e})();function Fc(e){return e.notSplit=!0,e}Fc(["borderTop","borderBottom"]),Fc(["borderTop"]),Fc(["borderBottom"]),Fc(["borderLeft","borderRight"]),Fc(["borderLeft"]),Fc(["borderRight"]);var NC=h.createContext({});function uM(e){return VI(e)||kI(e)||wC(e)||UI()}function va(e,t){for(var n=e,r=0;r<t.length;r+=1){if(n==null)return;n=n[t[r]]}return n}function dM(e,t,n,r){if(!t.length)return n;var i=uM(t),a=i[0],l=i.slice(1),c;return!e&&typeof a=="number"?c=[]:Array.isArray(e)?c=qe(e):c=J({},e),r&&n===void 0&&l.length===1?delete c[a][l[0]]:c[a]=dM(c[a],l,n,r),c}function ma(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&r&&n===void 0&&!va(e,t.slice(0,-1))?e:dM(e,t,n,r)}function d6(e){return pt(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function v2(e){return Array.isArray(e)?[]:{}}var f6=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function su(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=v2(t[0]);return t.forEach(function(i){function a(l,c){var u=new Set(c),d=va(i,l),m=Array.isArray(d);if(m||d6(d)){if(!u.has(d)){u.add(d);var g=va(r,l);m?r=ma(r,l,[]):(!g||pt(g)!=="object")&&(r=ma(r,l,v2(d))),f6(d).forEach(function(v){a([].concat(qe(l),[v]),u)})}}else r=ma(r,l,d)}a([])}),r}function h6(){}const m6=h.createContext({}),mh=()=>{const e=()=>{};return e.deprecated=h6,e},fM=h.createContext(void 0);var hM={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"},g6={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0},p6=J(J({},g6),{},{locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",week:"Week",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",dateFormat:"M/D/YYYY",dateTimeFormat:"M/D/YYYY HH:mm:ss",previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"});const mM={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},y2={lang:Object.assign({placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"]},p6),timePickerLocale:Object.assign({},mM)},Fi="${label} is not a valid ${type}",Do={locale:"en",Pagination:hM,DatePicker:y2,TimePicker:mM,Calendar:y2,global:{placeholder:"Please select",close:"Close"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckAll:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",deselectAll:"Deselect all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand",collapse:"Collapse"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:Fi,method:Fi,array:Fi,object:Fi,number:Fi,date:Fi,boolean:Fi,integer:Fi,float:Fi,regexp:Fi,email:Fi,url:Fi,hex:Fi},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"},QRCode:{expired:"QR code expired",refresh:"Refresh",scanned:"Scanned"},ColorPicker:{presetEmpty:"Empty",transparent:"Transparent",singleColor:"Single",gradientColor:"Gradient"}};Object.assign({},Do.Modal);let vg=[];const b2=()=>vg.reduce((e,t)=>Object.assign(Object.assign({},e),t),Do.Modal);function v6(e){if(e){const t=Object.assign({},e);return vg.push(t),b2(),()=>{vg=vg.filter(n=>n!==t),b2()}}Object.assign({},Do.Modal)}const IC=h.createContext(void 0),Wl=(e,t)=>{const n=h.useContext(IC),r=h.useMemo(()=>{var a;const l=t||Do[e],c=(a=n==null?void 0:n[e])!==null&&a!==void 0?a:{};return Object.assign(Object.assign({},typeof l=="function"?l():l),c||{})},[e,t,n]),i=h.useMemo(()=>{const a=n==null?void 0:n.locale;return n!=null&&n.exist&&!a?Do.locale:a},[n]);return[r,i]},y6="internalMark",b6=e=>{const{locale:t={},children:n,_ANT_MARK__:r}=e;h.useEffect(()=>v6(t==null?void 0:t.Modal),[t]);const i=h.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return h.createElement(IC.Provider,{value:i},n)},MC={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"},ku=Object.assign(Object.assign({},MC),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
|
|
42
|
-
'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
|
|
43
|
-
'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}),Hr=Math.round;function M0(e,t){const n=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],r=n.map(i=>parseFloat(i));for(let i=0;i<3;i+=1)r[i]=t(r[i]||0,n[i]||"",i);return n[3]?r[3]=n[3].includes("%")?r[3]/100:r[3]:r[3]=1,r}const S2=(e,t,n)=>n===0?e:e/100;function Wd(e,t){const n=t||255;return e>n?n:e<0?0:e}class _n{constructor(t){G(this,"isValid",!0),G(this,"r",0),G(this,"g",0),G(this,"b",0),G(this,"a",1),G(this,"_h",void 0),G(this,"_s",void 0),G(this,"_l",void 0),G(this,"_v",void 0),G(this,"_max",void 0),G(this,"_min",void 0),G(this,"_brightness",void 0);function n(r){return r[0]in t&&r[1]in t&&r[2]in t}if(t)if(typeof t=="string"){let i=function(a){return r.startsWith(a)};const r=t.trim();/^#?[A-F\d]{3,8}$/i.test(r)?this.fromHexString(r):i("rgb")?this.fromRgbString(r):i("hsl")?this.fromHslString(r):(i("hsv")||i("hsb"))&&this.fromHsvString(r)}else if(t instanceof _n)this.r=t.r,this.g=t.g,this.b=t.b,this.a=t.a,this._h=t._h,this._s=t._s,this._l=t._l,this._v=t._v;else if(n("rgb"))this.r=Wd(t.r),this.g=Wd(t.g),this.b=Wd(t.b),this.a=typeof t.a=="number"?Wd(t.a,1):1;else if(n("hsl"))this.fromHsl(t);else if(n("hsv"))this.fromHsv(t);else throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(t))}setR(t){return this._sc("r",t)}setG(t){return this._sc("g",t)}setB(t){return this._sc("b",t)}setA(t){return this._sc("a",t,1)}setHue(t){const n=this.toHsv();return n.h=t,this._c(n)}getLuminance(){function t(a){const l=a/255;return l<=.03928?l/12.92:Math.pow((l+.055)/1.055,2.4)}const n=t(this.r),r=t(this.g),i=t(this.b);return .2126*n+.7152*r+.0722*i}getHue(){if(typeof this._h>"u"){const t=this.getMax()-this.getMin();t===0?this._h=0:this._h=Hr(60*(this.r===this.getMax()?(this.g-this.b)/t+(this.g<this.b?6:0):this.g===this.getMax()?(this.b-this.r)/t+2:(this.r-this.g)/t+4))}return this._h}getSaturation(){if(typeof this._s>"u"){const t=this.getMax()-this.getMin();t===0?this._s=0:this._s=t/this.getMax()}return this._s}getLightness(){return typeof this._l>"u"&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return typeof this._v>"u"&&(this._v=this.getMax()/255),this._v}getBrightness(){return typeof this._brightness>"u"&&(this._brightness=(this.r*299+this.g*587+this.b*114)/1e3),this._brightness}darken(t=10){const n=this.getHue(),r=this.getSaturation();let i=this.getLightness()-t/100;return i<0&&(i=0),this._c({h:n,s:r,l:i,a:this.a})}lighten(t=10){const n=this.getHue(),r=this.getSaturation();let i=this.getLightness()+t/100;return i>1&&(i=1),this._c({h:n,s:r,l:i,a:this.a})}mix(t,n=50){const r=this._c(t),i=n/100,a=c=>(r[c]-this[c])*i+this[c],l={r:Hr(a("r")),g:Hr(a("g")),b:Hr(a("b")),a:Hr(a("a")*100)/100};return this._c(l)}tint(t=10){return this.mix({r:255,g:255,b:255,a:1},t)}shade(t=10){return this.mix({r:0,g:0,b:0,a:1},t)}onBackground(t){const n=this._c(t),r=this.a+n.a*(1-this.a),i=a=>Hr((this[a]*this.a+n[a]*n.a*(1-this.a))/r);return this._c({r:i("r"),g:i("g"),b:i("b"),a:r})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(t){return this.r===t.r&&this.g===t.g&&this.b===t.b&&this.a===t.a}clone(){return this._c(this)}toHexString(){let t="#";const n=(this.r||0).toString(16);t+=n.length===2?n:"0"+n;const r=(this.g||0).toString(16);t+=r.length===2?r:"0"+r;const i=(this.b||0).toString(16);if(t+=i.length===2?i:"0"+i,typeof this.a=="number"&&this.a>=0&&this.a<1){const a=Hr(this.a*255).toString(16);t+=a.length===2?a:"0"+a}return t}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const t=this.getHue(),n=Hr(this.getSaturation()*100),r=Hr(this.getLightness()*100);return this.a!==1?`hsla(${t},${n}%,${r}%,${this.a})`:`hsl(${t},${n}%,${r}%)`}toHsv(){return{h:this.getHue(),s:this.getSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return this.a!==1?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(t,n,r){const i=this.clone();return i[t]=Wd(n,r),i}_c(t){return new this.constructor(t)}getMax(){return typeof this._max>"u"&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return typeof this._min>"u"&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(t){const n=t.replace("#","");function r(i,a){return parseInt(n[i]+n[a||i],16)}n.length<6?(this.r=r(0),this.g=r(1),this.b=r(2),this.a=n[3]?r(3)/255:1):(this.r=r(0,1),this.g=r(2,3),this.b=r(4,5),this.a=n[6]?r(6,7)/255:1)}fromHsl({h:t,s:n,l:r,a:i}){if(this._h=t%360,this._s=n,this._l=r,this.a=typeof i=="number"?i:1,n<=0){const v=Hr(r*255);this.r=v,this.g=v,this.b=v}let a=0,l=0,c=0;const u=t/60,d=(1-Math.abs(2*r-1))*n,m=d*(1-Math.abs(u%2-1));u>=0&&u<1?(a=d,l=m):u>=1&&u<2?(a=m,l=d):u>=2&&u<3?(l=d,c=m):u>=3&&u<4?(l=m,c=d):u>=4&&u<5?(a=m,c=d):u>=5&&u<6&&(a=d,c=m);const g=r-d/2;this.r=Hr((a+g)*255),this.g=Hr((l+g)*255),this.b=Hr((c+g)*255)}fromHsv({h:t,s:n,v:r,a:i}){this._h=t%360,this._s=n,this._v=r,this.a=typeof i=="number"?i:1;const a=Hr(r*255);if(this.r=a,this.g=a,this.b=a,n<=0)return;const l=t/60,c=Math.floor(l),u=l-c,d=Hr(r*(1-n)*255),m=Hr(r*(1-n*u)*255),g=Hr(r*(1-n*(1-u))*255);switch(c){case 0:this.g=g,this.b=d;break;case 1:this.r=m,this.b=d;break;case 2:this.r=d,this.b=g;break;case 3:this.r=d,this.g=m;break;case 4:this.r=g,this.g=d;break;case 5:default:this.g=d,this.b=m;break}}fromHsvString(t){const n=M0(t,S2);this.fromHsv({h:n[0],s:n[1],v:n[2],a:n[3]})}fromHslString(t){const n=M0(t,S2);this.fromHsl({h:n[0],s:n[1],l:n[2],a:n[3]})}fromRgbString(t){const n=M0(t,(r,i)=>i.includes("%")?Hr(r/100*255):r);this.r=n[0],this.g=n[1],this.b=n[2],this.a=n[3]}}var km=2,x2=.16,S6=.05,x6=.05,C6=.15,gM=5,pM=4,w6=[{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 C2(e,t,n){var r;return Math.round(e.h)>=60&&Math.round(e.h)<=240?r=n?Math.round(e.h)-km*t:Math.round(e.h)+km*t:r=n?Math.round(e.h)+km*t:Math.round(e.h)-km*t,r<0?r+=360:r>=360&&(r-=360),r}function w2(e,t,n){if(e.h===0&&e.s===0)return e.s;var r;return n?r=e.s-x2*t:t===pM?r=e.s+x2:r=e.s+S6*t,r>1&&(r=1),n&&t===gM&&r>.1&&(r=.1),r<.06&&(r=.06),Math.round(r*100)/100}function E2(e,t,n){var r;return n?r=e.v+x6*t:r=e.v-C6*t,r=Math.max(0,Math.min(1,r)),Math.round(r*100)/100}function Ls(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=new _n(e),i=r.toHsv(),a=gM;a>0;a-=1){var l=new _n({h:C2(i,a,!0),s:w2(i,a,!0),v:E2(i,a,!0)});n.push(l)}n.push(r);for(var c=1;c<=pM;c+=1){var u=new _n({h:C2(i,c),s:w2(i,c),v:E2(i,c)});n.push(u)}return t.theme==="dark"?w6.map(function(d){var m=d.index,g=d.amount;return new _n(t.backgroundColor||"#141414").mix(n[m],g).toHexString()}):n.map(function(d){return d.toHexString()})}var pu={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"},TS=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];TS.primary=TS[5];var _S=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];_S.primary=_S[5];var NS=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];NS.primary=NS[5];var zg=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];zg.primary=zg[5];var IS=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];IS.primary=IS[5];var MS=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];MS.primary=MS[5];var PS=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];PS.primary=PS[5];var AS=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];AS.primary=AS[5];var jg=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];jg.primary=jg[5];var zS=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];zS.primary=zS[5];var jS=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];jS.primary=jS[5];var DS=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];DS.primary=DS[5];var LS=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];LS.primary=LS[5];var P0={red:TS,volcano:_S,orange:NS,gold:zg,yellow:IS,lime:MS,green:PS,cyan:AS,blue:jg,geekblue:zS,purple:jS,magenta:DS,grey:LS};function vM(e,{generateColorPalettes:t,generateNeutralColorPalettes:n}){const{colorSuccess:r,colorWarning:i,colorError:a,colorInfo:l,colorPrimary:c,colorBgBase:u,colorTextBase:d}=e,m=t(c),g=t(r),v=t(i),y=t(a),b=t(l),x=n(u,d),S=e.colorLink||e.colorInfo,w=t(S),$=new _n(y[1]).mix(new _n(y[3]),50).toHexString();return Object.assign(Object.assign({},x),{colorPrimaryBg:m[1],colorPrimaryBgHover:m[2],colorPrimaryBorder:m[3],colorPrimaryBorderHover:m[4],colorPrimaryHover:m[5],colorPrimary:m[6],colorPrimaryActive:m[7],colorPrimaryTextHover:m[8],colorPrimaryText:m[9],colorPrimaryTextActive:m[10],colorSuccessBg:g[1],colorSuccessBgHover:g[2],colorSuccessBorder:g[3],colorSuccessBorderHover:g[4],colorSuccessHover:g[4],colorSuccess:g[6],colorSuccessActive:g[7],colorSuccessTextHover:g[8],colorSuccessText:g[9],colorSuccessTextActive:g[10],colorErrorBg:y[1],colorErrorBgHover:y[2],colorErrorBgFilledHover:$,colorErrorBgActive:y[3],colorErrorBorder:y[3],colorErrorBorderHover:y[4],colorErrorHover:y[5],colorError:y[6],colorErrorActive:y[7],colorErrorTextHover:y[8],colorErrorText:y[9],colorErrorTextActive:y[10],colorWarningBg:v[1],colorWarningBgHover:v[2],colorWarningBorder:v[3],colorWarningBorderHover:v[4],colorWarningHover:v[4],colorWarning:v[6],colorWarningActive:v[7],colorWarningTextHover:v[8],colorWarningText:v[9],colorWarningTextActive:v[10],colorInfoBg:b[1],colorInfoBgHover:b[2],colorInfoBorder:b[3],colorInfoBorderHover:b[4],colorInfoHover:b[4],colorInfo:b[6],colorInfoActive:b[7],colorInfoTextHover:b[8],colorInfoText:b[9],colorInfoTextActive:b[10],colorLinkHover:w[4],colorLink:w[6],colorLinkActive:w[7],colorBgMask:new _n("#000").setA(.45).toRgbString(),colorWhite:"#fff"})}const E6=e=>{let t=e,n=e,r=e,i=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?n=4:e<8&&e>=7?n=5:e<14&&e>=8?n=6:e<16&&e>=14?n=7:e>=16&&(n=8),e<6&&e>=2?r=1:e>=6&&(r=2),e>4&&e<8?i=4:e>=8&&(i=6),{borderRadius:e,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:i}};function $6(e){const{motionUnit:t,motionBase:n,borderRadius:r,lineWidth:i}=e;return Object.assign({motionDurationFast:`${(n+t).toFixed(1)}s`,motionDurationMid:`${(n+t*2).toFixed(1)}s`,motionDurationSlow:`${(n+t*3).toFixed(1)}s`,lineWidthBold:i+1},E6(r))}const yM=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}};function yg(e){return(e+8)/e}function O6(e){const t=Array.from({length:10}).map((n,r)=>{const i=r-1,a=e*Math.pow(Math.E,i/5),l=r>1?Math.floor(a):Math.ceil(a);return Math.floor(l/2)*2});return t[1]=e,t.map(n=>({size:n,lineHeight:yg(n)}))}const bM=e=>{const t=O6(e),n=t.map(m=>m.size),r=t.map(m=>m.lineHeight),i=n[1],a=n[0],l=n[2],c=r[1],u=r[0],d=r[2];return{fontSizeSM:a,fontSize:i,fontSizeLG:l,fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:c,lineHeightLG:d,lineHeightSM:u,fontHeight:Math.round(c*i),fontHeightLG:Math.round(d*l),fontHeightSM:Math.round(u*a),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};function R6(e){const{sizeUnit:t,sizeStep:n}=e;return{sizeXXL:t*(n+8),sizeXL:t*(n+4),sizeLG:t*(n+2),sizeMD:t*(n+1),sizeMS:t*n,size:t*n,sizeSM:t*(n-1),sizeXS:t*(n-2),sizeXXS:t*(n-3)}}const sa=(e,t)=>new _n(e).setA(t).toRgbString(),Gd=(e,t)=>new _n(e).darken(t).toHexString(),T6=e=>{const t=Ls(e);return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[4],6:t[5],7:t[6],8:t[4],9:t[5],10:t[6]}},_6=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:sa(r,.88),colorTextSecondary:sa(r,.65),colorTextTertiary:sa(r,.45),colorTextQuaternary:sa(r,.25),colorFill:sa(r,.15),colorFillSecondary:sa(r,.06),colorFillTertiary:sa(r,.04),colorFillQuaternary:sa(r,.02),colorBgSolid:sa(r,1),colorBgSolidHover:sa(r,.75),colorBgSolidActive:sa(r,.95),colorBgLayout:Gd(n,4),colorBgContainer:Gd(n,0),colorBgElevated:Gd(n,0),colorBgSpotlight:sa(r,.85),colorBgBlur:"transparent",colorBorder:Gd(n,15),colorBorderSecondary:Gd(n,6)}};function zp(e){pu.pink=pu.magenta,P0.pink=P0.magenta;const t=Object.keys(MC).map(n=>{const r=e[n]===pu[n]?P0[n]:Ls(e[n]);return Array.from({length:10},()=>1).reduce((i,a,l)=>(i[`${n}-${l+1}`]=r[l],i[`${n}${l+1}`]=r[l],i),{})}).reduce((n,r)=>(n=Object.assign(Object.assign({},n),r),n),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),vM(e,{generateColorPalettes:T6,generateNeutralColorPalettes:_6})),bM(e.fontSize)),R6(e)),yM(e)),$6(e))}const PC=Pg(zp),Af={token:ku,override:{override:ku},hashed:!0},AC=re.createContext(Af),zf="ant",jp="anticon",N6=["outlined","borderless","filled","underlined"],I6=(e,t)=>t||(e?`${zf}-${e}`:zf),Tt=h.createContext({getPrefixCls:I6,iconPrefixCls:jp}),{Consumer:nde}=Tt,$2={};function Yr(e){const t=h.useContext(Tt),{getPrefixCls:n,direction:r,getPopupContainer:i}=t,a=t[e];return Object.assign(Object.assign({classNames:$2,styles:$2},a),{getPrefixCls:n,direction:r,getPopupContainer:i})}const M6=`-ant-${Date.now()}-${Math.random()}`;function P6(e,t){const n={},r=(l,c)=>{let u=l.clone();return u=(c==null?void 0:c(u))||u,u.toRgbString()},i=(l,c)=>{const u=new _n(l),d=Ls(u.toRgbString());n[`${c}-color`]=r(u),n[`${c}-color-disabled`]=d[1],n[`${c}-color-hover`]=d[4],n[`${c}-color-active`]=d[6],n[`${c}-color-outline`]=u.clone().setA(.2).toRgbString(),n[`${c}-color-deprecated-bg`]=d[0],n[`${c}-color-deprecated-border`]=d[2]};if(t.primaryColor){i(t.primaryColor,"primary");const l=new _n(t.primaryColor),c=Ls(l.toRgbString());c.forEach((d,m)=>{n[`primary-${m+1}`]=d}),n["primary-color-deprecated-l-35"]=r(l,d=>d.lighten(35)),n["primary-color-deprecated-l-20"]=r(l,d=>d.lighten(20)),n["primary-color-deprecated-t-20"]=r(l,d=>d.tint(20)),n["primary-color-deprecated-t-50"]=r(l,d=>d.tint(50)),n["primary-color-deprecated-f-12"]=r(l,d=>d.setA(d.a*.12));const u=new _n(c[0]);n["primary-color-active-deprecated-f-30"]=r(u,d=>d.setA(d.a*.3)),n["primary-color-active-deprecated-d-02"]=r(u,d=>d.darken(2))}return t.successColor&&i(t.successColor,"success"),t.warningColor&&i(t.warningColor,"warning"),t.errorColor&&i(t.errorColor,"error"),t.infoColor&&i(t.infoColor,"info"),`
|
|
44
|
-
:root {
|
|
45
|
-
${Object.keys(n).map(l=>`--${e}-${l}: ${n[l]};`).join(`
|
|
46
|
-
`)}
|
|
47
|
-
}
|
|
48
|
-
`.trim()}function A6(e,t){const n=P6(e,t);ai()&&Ao(n,`${M6}-dynamic-theme`)}const Da=h.createContext(!1),SM=({children:e,disabled:t})=>{const n=h.useContext(Da);return h.createElement(Da.Provider,{value:t??n},e)},ks=h.createContext(void 0),z6=({children:e,size:t})=>{const n=h.useContext(ks);return h.createElement(ks.Provider,{value:t||n},e)};function j6(){const e=h.useContext(Da),t=h.useContext(ks);return{componentDisabled:e,componentSize:t}}var xM=br(function e(){yr(this,e)}),CM="CALC_UNIT",D6=new RegExp(CM,"g");function A0(e){return typeof e=="number"?"".concat(e).concat(CM):e}var L6=(function(e){Ba(n,e);var t=io(n);function n(r,i){var a;yr(this,n),a=t.call(this),G(lt(a),"result",""),G(lt(a),"unitlessCssVar",void 0),G(lt(a),"lowPriority",void 0);var l=pt(r);return a.unitlessCssVar=i,r instanceof n?a.result="(".concat(r.result,")"):l==="number"?a.result=A0(r):l==="string"&&(a.result=r),a}return br(n,[{key:"add",value:function(i){return i instanceof n?this.result="".concat(this.result," + ").concat(i.getResult()):(typeof i=="number"||typeof i=="string")&&(this.result="".concat(this.result," + ").concat(A0(i))),this.lowPriority=!0,this}},{key:"sub",value:function(i){return i instanceof n?this.result="".concat(this.result," - ").concat(i.getResult()):(typeof i=="number"||typeof i=="string")&&(this.result="".concat(this.result," - ").concat(A0(i))),this.lowPriority=!0,this}},{key:"mul",value:function(i){return this.lowPriority&&(this.result="(".concat(this.result,")")),i instanceof n?this.result="".concat(this.result," * ").concat(i.getResult(!0)):(typeof i=="number"||typeof i=="string")&&(this.result="".concat(this.result," * ").concat(i)),this.lowPriority=!1,this}},{key:"div",value:function(i){return this.lowPriority&&(this.result="(".concat(this.result,")")),i instanceof n?this.result="".concat(this.result," / ").concat(i.getResult(!0)):(typeof i=="number"||typeof i=="string")&&(this.result="".concat(this.result," / ").concat(i)),this.lowPriority=!1,this}},{key:"getResult",value:function(i){return this.lowPriority||i?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(i){var a=this,l=i||{},c=l.unit,u=!0;return typeof c=="boolean"?u=c:Array.from(this.unitlessCssVar).some(function(d){return a.result.includes(d)})&&(u=!1),this.result=this.result.replace(D6,u?"px":""),typeof this.lowPriority<"u"?"calc(".concat(this.result,")"):this.result}}]),n})(xM),k6=(function(e){Ba(n,e);var t=io(n);function n(r){var i;return yr(this,n),i=t.call(this),G(lt(i),"result",0),r instanceof n?i.result=r.result:typeof r=="number"&&(i.result=r),i}return br(n,[{key:"add",value:function(i){return i instanceof n?this.result+=i.result:typeof i=="number"&&(this.result+=i),this}},{key:"sub",value:function(i){return i instanceof n?this.result-=i.result:typeof i=="number"&&(this.result-=i),this}},{key:"mul",value:function(i){return i instanceof n?this.result*=i.result:typeof i=="number"&&(this.result*=i),this}},{key:"div",value:function(i){return i instanceof n?this.result/=i.result:typeof i=="number"&&(this.result/=i),this}},{key:"equal",value:function(){return this.result}}]),n})(xM),B6=function(t,n){var r=t==="css"?L6:k6;return function(i){return new r(i,n)}},O2=function(t,n){return"".concat([n,t.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-"))};function cr(e){var t=h.useRef();t.current=e;var n=h.useCallback(function(){for(var r,i=arguments.length,a=new Array(i),l=0;l<i;l++)a[l]=arguments[l];return(r=t.current)===null||r===void 0?void 0:r.call.apply(r,[t].concat(a))},[]);return n}function Bs(e){var t=h.useRef(!1),n=h.useState(e),r=me(n,2),i=r[0],a=r[1];h.useEffect(function(){return t.current=!1,function(){t.current=!0}},[]);function l(c,u){u&&t.current||a(c)}return[i,l]}function z0(e){return e!==void 0}function vr(e,t){var n=t||{},r=n.defaultValue,i=n.value,a=n.onChange,l=n.postState,c=Bs(function(){return z0(i)?i:z0(r)?typeof r=="function"?r():r:typeof e=="function"?e():e}),u=me(c,2),d=u[0],m=u[1],g=i!==void 0?i:d,v=l?l(g):g,y=cr(a),b=Bs([g]),x=me(b,2),S=x[0],w=x[1];ES(function(){var O=S[0];d!==O&&y(d,O)},[S]),ES(function(){z0(i)||m(i)},[i]);var $=cr(function(O,T){m(O,T),w([g],T)});return[v,$]}function R2(e,t,n,r){var i=J({},t[e]);if(r!=null&&r.deprecatedTokens){var a=r.deprecatedTokens;a.forEach(function(c){var u=me(c,2),d=u[0],m=u[1];if(i!=null&&i[d]||i!=null&&i[m]){var g;(g=i[m])!==null&&g!==void 0||(i[m]=i==null?void 0:i[d])}})}var l=J(J({},n),i);return Object.keys(l).forEach(function(c){l[c]===t[c]&&delete l[c]}),l}var wM=typeof CSSINJS_STATISTIC<"u",kS=!0;function sn(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!wM)return Object.assign.apply(Object,[{}].concat(t));kS=!1;var r={};return t.forEach(function(i){if(pt(i)==="object"){var a=Object.keys(i);a.forEach(function(l){Object.defineProperty(r,l,{configurable:!0,enumerable:!0,get:function(){return i[l]}})})}}),kS=!0,r}var T2={};function H6(){}var F6=function(t){var n,r=t,i=H6;return wM&&typeof Proxy<"u"&&(n=new Set,r=new Proxy(t,{get:function(l,c){if(kS){var u;(u=n)===null||u===void 0||u.add(c)}return l[c]}}),i=function(l,c){var u;T2[l]={global:Array.from(n),component:J(J({},(u=T2[l])===null||u===void 0?void 0:u.component),c)}}),{token:r,keys:n,flush:i}};function _2(e,t,n){if(typeof n=="function"){var r;return n(sn(t,(r=t[e])!==null&&r!==void 0?r:{}))}return n??{}}function V6(e){return e==="js"?{max:Math.max,min:Math.min}:{max:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return"max(".concat(r.map(function(a){return ae(a)}).join(","),")")},min:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return"min(".concat(r.map(function(a){return ae(a)}).join(","),")")}}}var U6=1e3*60*10,q6=(function(){function e(){yr(this,e),G(this,"map",new Map),G(this,"objectIDMap",new WeakMap),G(this,"nextID",0),G(this,"lastAccessBeat",new Map),G(this,"accessBeat",0)}return br(e,[{key:"set",value:function(n,r){this.clear();var i=this.getCompositeKey(n);this.map.set(i,r),this.lastAccessBeat.set(i,Date.now())}},{key:"get",value:function(n){var r=this.getCompositeKey(n),i=this.map.get(r);return this.lastAccessBeat.set(r,Date.now()),this.accessBeat+=1,i}},{key:"getCompositeKey",value:function(n){var r=this,i=n.map(function(a){return a&&pt(a)==="object"?"obj_".concat(r.getObjectID(a)):"".concat(pt(a),"_").concat(a)});return i.join("|")}},{key:"getObjectID",value:function(n){if(this.objectIDMap.has(n))return this.objectIDMap.get(n);var r=this.nextID;return this.objectIDMap.set(n,r),this.nextID+=1,r}},{key:"clear",value:function(){var n=this;if(this.accessBeat>1e4){var r=Date.now();this.lastAccessBeat.forEach(function(i,a){r-i>U6&&(n.map.delete(a),n.lastAccessBeat.delete(a))}),this.accessBeat=0}}}]),e})(),N2=new q6;function K6(e,t){return re.useMemo(function(){var n=N2.get(t);if(n)return n;var r=e();return N2.set(t,r),r},t)}var W6=function(){return{}};function G6(e){var t=e.useCSP,n=t===void 0?W6:t,r=e.useToken,i=e.usePrefix,a=e.getResetStyles,l=e.getCommonStyle,c=e.getCompUnitless;function u(v,y,b,x){var S=Array.isArray(v)?v[0]:v;function w(P){return"".concat(String(S)).concat(P.slice(0,1).toUpperCase()).concat(P.slice(1))}var $=(x==null?void 0:x.unitless)||{},O=typeof c=="function"?c(v):{},T=J(J({},O),{},G({},w("zIndexPopup"),!0));Object.keys($).forEach(function(P){T[w(P)]=$[P]});var _=J(J({},x),{},{unitless:T,prefixToken:w}),R=m(v,y,b,_),M=d(S,b,_);return function(P){var N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:P,I=R(P,N),B=me(I,2),A=B[1],k=M(N),j=me(k,2),V=j[0],z=j[1];return[V,A,z]}}function d(v,y,b){var x=b.unitless,S=b.injectStyle,w=S===void 0?!0:S,$=b.prefixToken,O=b.ignore,T=function(M){var P=M.rootCls,N=M.cssVar,I=N===void 0?{}:N,B=r(),A=B.realToken;return c6({path:[v],prefix:I.prefix,key:I.key,unitless:x,ignore:O,token:A,scope:P},function(){var k=_2(v,A,y),j=R2(v,A,k,{deprecatedTokens:b==null?void 0:b.deprecatedTokens});return Object.keys(k).forEach(function(V){j[$(V)]=j[V],delete j[V]}),j}),null},_=function(M){var P=r(),N=P.cssVar;return[function(I){return w&&N?re.createElement(re.Fragment,null,re.createElement(T,{rootCls:M,cssVar:N,component:v}),I):I},N==null?void 0:N.key]};return _}function m(v,y,b){var x=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},S=Array.isArray(v)?v:[v,v],w=me(S,1),$=w[0],O=S.join("-"),T=e.layer||{name:"antd"};return function(_){var R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:_,M=r(),P=M.theme,N=M.realToken,I=M.hashId,B=M.token,A=M.cssVar,k=i(),j=k.rootPrefixCls,V=k.iconPrefixCls,z=n(),F=A?"css":"js",q=K6(function(){var X=new Set;return A&&Object.keys(x.unitless||{}).forEach(function(Q){X.add(fg(Q,A.prefix)),X.add(fg(Q,O2($,A.prefix)))}),B6(F,X)},[F,$,A==null?void 0:A.prefix]),Z=V6(F),H=Z.max,U=Z.min,K={theme:P,token:B,hashId:I,nonce:function(){return z.nonce},clientOnly:x.clientOnly,layer:T,order:x.order||-999};typeof a=="function"&&RS(J(J({},K),{},{clientOnly:!1,path:["Shared",j]}),function(){return a(B,{prefix:{rootPrefixCls:j,iconPrefixCls:V},csp:z})});var D=RS(J(J({},K),{},{path:[O,_,V]}),function(){if(x.injectStyle===!1)return[];var X=F6(B),Q=X.token,Y=X.flush,ie=_2($,N,b),oe=".".concat(_),le=R2($,N,ie,{deprecatedTokens:x.deprecatedTokens});A&&ie&&pt(ie)==="object"&&Object.keys(ie).forEach(function(ye){ie[ye]="var(".concat(fg(ye,O2($,A.prefix)),")")});var Ce=sn(Q,{componentCls:oe,prefixCls:_,iconCls:".".concat(V),antCls:".".concat(j),calc:q,max:H,min:U},A?ie:le),ce=y(Ce,{hashId:I,prefixCls:_,rootPrefixCls:j,iconPrefixCls:V});Y($,le);var de=typeof l=="function"?l(Ce,_,R,x.resetFont):null;return[x.resetStyle===!1?null:de,ce]});return[D,I]}}function g(v,y,b){var x=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},S=m(v,y,b,J({resetStyle:!1,order:-998},x)),w=function(O){var T=O.prefixCls,_=O.rootCls,R=_===void 0?T:_;return S(T,R),null};return w}return{genStyleHooks:u,genSubStyleComponent:g,genComponentStyleHook:m}}const Bl=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],X6="5.29.3";function j0(e){return e>=0&&e<=255}function sf(e,t){const{r:n,g:r,b:i,a}=new _n(e).toRgb();if(a<1)return e;const{r:l,g:c,b:u}=new _n(t).toRgb();for(let d=.01;d<=1;d+=.01){const m=Math.round((n-l*(1-d))/d),g=Math.round((r-c*(1-d))/d),v=Math.round((i-u*(1-d))/d);if(j0(m)&&j0(g)&&j0(v))return new _n({r:m,g,b:v,a:Math.round(d*100)/100}).toRgbString()}return new _n({r:n,g:r,b:i,a:1}).toRgbString()}var Q6=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function zC(e){const{override:t}=e,n=Q6(e,["override"]),r=Object.assign({},t);Object.keys(ku).forEach(v=>{delete r[v]});const i=Object.assign(Object.assign({},n),r),a=480,l=576,c=768,u=992,d=1200,m=1600;return i.motion===!1&&(i.motionDurationFast="0s",i.motionDurationMid="0s",i.motionDurationSlow="0s"),Object.assign(Object.assign(Object.assign({},i),{colorFillContent:i.colorFillSecondary,colorFillContentHover:i.colorFill,colorFillAlter:i.colorFillQuaternary,colorBgContainerDisabled:i.colorFillTertiary,colorBorderBg:i.colorBgContainer,colorSplit:sf(i.colorBorderSecondary,i.colorBgContainer),colorTextPlaceholder:i.colorTextQuaternary,colorTextDisabled:i.colorTextQuaternary,colorTextHeading:i.colorText,colorTextLabel:i.colorTextSecondary,colorTextDescription:i.colorTextTertiary,colorTextLightSolid:i.colorWhite,colorHighlight:i.colorError,colorBgTextHover:i.colorFillSecondary,colorBgTextActive:i.colorFill,colorIcon:i.colorTextTertiary,colorIconHover:i.colorText,colorErrorOutline:sf(i.colorErrorBg,i.colorBgContainer),colorWarningOutline:sf(i.colorWarningBg,i.colorBgContainer),fontSizeIcon:i.fontSizeSM,lineWidthFocus:i.lineWidth*3,lineWidth:i.lineWidth,controlOutlineWidth:i.lineWidth*2,controlInteractiveSize:i.controlHeight/2,controlItemBgHover:i.colorFillTertiary,controlItemBgActive:i.colorPrimaryBg,controlItemBgActiveHover:i.colorPrimaryBgHover,controlItemBgActiveDisabled:i.colorFill,controlTmpOutline:i.colorFillQuaternary,controlOutline:sf(i.colorPrimaryBg,i.colorBgContainer),lineType:i.lineType,borderRadius:i.borderRadius,borderRadiusXS:i.borderRadiusXS,borderRadiusSM:i.borderRadiusSM,borderRadiusLG:i.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:i.sizeXXS,paddingXS:i.sizeXS,paddingSM:i.sizeSM,padding:i.size,paddingMD:i.sizeMD,paddingLG:i.sizeLG,paddingXL:i.sizeXL,paddingContentHorizontalLG:i.sizeLG,paddingContentVerticalLG:i.sizeMS,paddingContentHorizontal:i.sizeMS,paddingContentVertical:i.sizeSM,paddingContentHorizontalSM:i.size,paddingContentVerticalSM:i.sizeXS,marginXXS:i.sizeXXS,marginXS:i.sizeXS,marginSM:i.sizeSM,margin:i.size,marginMD:i.sizeMD,marginLG:i.sizeLG,marginXL:i.sizeXL,marginXXL:i.sizeXXL,boxShadow:`
|
|
49
|
-
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
50
|
-
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
51
|
-
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
52
|
-
`,boxShadowSecondary:`
|
|
53
|
-
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
54
|
-
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
55
|
-
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
56
|
-
`,boxShadowTertiary:`
|
|
57
|
-
0 1px 2px 0 rgba(0, 0, 0, 0.03),
|
|
58
|
-
0 1px 6px -1px rgba(0, 0, 0, 0.02),
|
|
59
|
-
0 2px 4px 0 rgba(0, 0, 0, 0.02)
|
|
60
|
-
`,screenXS:a,screenXSMin:a,screenXSMax:l-1,screenSM:l,screenSMMin:l,screenSMMax:c-1,screenMD:c,screenMDMin:c,screenMDMax:u-1,screenLG:u,screenLGMin:u,screenLGMax:d-1,screenXL:d,screenXLMin:d,screenXLMax:m-1,screenXXL:m,screenXXLMin:m,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`
|
|
61
|
-
0 1px 2px -2px ${new _n("rgba(0, 0, 0, 0.16)").toRgbString()},
|
|
62
|
-
0 3px 6px 0 ${new _n("rgba(0, 0, 0, 0.12)").toRgbString()},
|
|
63
|
-
0 5px 12px 4px ${new _n("rgba(0, 0, 0, 0.09)").toRgbString()}
|
|
64
|
-
`,boxShadowDrawerRight:`
|
|
65
|
-
-6px 0 16px 0 rgba(0, 0, 0, 0.08),
|
|
66
|
-
-3px 0 6px -4px rgba(0, 0, 0, 0.12),
|
|
67
|
-
-9px 0 28px 8px rgba(0, 0, 0, 0.05)
|
|
68
|
-
`,boxShadowDrawerLeft:`
|
|
69
|
-
6px 0 16px 0 rgba(0, 0, 0, 0.08),
|
|
70
|
-
3px 0 6px -4px rgba(0, 0, 0, 0.12),
|
|
71
|
-
9px 0 28px 8px rgba(0, 0, 0, 0.05)
|
|
72
|
-
`,boxShadowDrawerUp:`
|
|
73
|
-
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
74
|
-
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
75
|
-
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
76
|
-
`,boxShadowDrawerDown:`
|
|
77
|
-
0 -6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
78
|
-
0 -3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
79
|
-
0 -9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
80
|
-
`,boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),r)}var I2=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const EM={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},Y6={motionBase:!0,motionUnit:!0},Z6={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},$M=(e,t,n)=>{const r=n.getDerivativeToken(e),{override:i}=t,a=I2(t,["override"]);let l=Object.assign(Object.assign({},r),{override:i});return l=zC(l),a&&Object.entries(a).forEach(([c,u])=>{const{theme:d}=u,m=I2(u,["theme"]);let g=m;d&&(g=$M(Object.assign(Object.assign({},l),m),{override:m},d)),l[c]=g}),l};function Zr(){const{token:e,hashed:t,theme:n,override:r,cssVar:i}=re.useContext(AC),a=`${X6}-${t||""}`,l=n||PC,[c,u,d]=z3(l,[ku,e],{salt:a,override:r,getComputedToken:$M,formatToken:zC,cssVar:i&&{prefix:i.prefix,key:i.key,unitless:EM,ignore:Y6,preserve:Z6}});return[l,d,t?u:"",c,i]}const Hs={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},lr=(e,t=!1)=>({boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:t?"inherit":e.fontFamily}),gh=()=>({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"}}),Bu=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),J6=e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},"&:active, &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),e5=(e,t,n,r)=>{const i=`[class^="${t}"], [class*=" ${t}"]`,a=n?`.${n}`:i,l={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let c={};return r!==!1&&(c={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[a]:Object.assign(Object.assign(Object.assign({},c),l),{[i]:l})}},Hl=(e,t)=>({outline:`${ae(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:t??1,transition:"outline-offset 0s, outline 0s"}),Lo=(e,t)=>({"&:focus-visible":Hl(e,t)}),OM=e=>({[`.${e}`]:Object.assign(Object.assign({},gh()),{[`.${e} .${e}-icon`]:{display:"block"}})}),RM=e=>Object.assign(Object.assign({color:e.colorLink,textDecoration:e.linkDecoration,outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,border:0,padding:0,background:"none",userSelect:"none"},Lo(e)),{"&:hover":{color:e.colorLinkHover,textDecoration:e.linkHoverDecoration},"&:focus":{color:e.colorLinkHover,textDecoration:e.linkFocusDecoration},"&:active":{color:e.colorLinkActive,textDecoration:e.linkHoverDecoration}}),{genStyleHooks:Nn,genComponentStyleHook:t5,genSubStyleComponent:Wu}=G6({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=h.useContext(Tt);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,n,r,i]=Zr();return{theme:e,realToken:t,hashId:n,token:r,cssVar:i}},useCSP:()=>{const{csp:e}=h.useContext(Tt);return e??{}},getResetStyles:(e,t)=>{var n;const r=J6(e);return[r,{"&":r},OM((n=t==null?void 0:t.prefix.iconPrefixCls)!==null&&n!==void 0?n:jp)]},getCommonStyle:e5,getCompUnitless:()=>EM});function TM(e,t){return Bl.reduce((n,r)=>{const i=e[`${r}1`],a=e[`${r}3`],l=e[`${r}6`],c=e[`${r}7`];return Object.assign(Object.assign({},n),t(r,{lightColor:i,lightBorderColor:a,darkColor:l,textColor:c}))},{})}const n5=(e,t)=>{const[n,r]=Zr();return RS({token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>t==null?void 0:t.nonce,layer:{name:"antd"}},()=>OM(e))},r5=Object.assign({},_p),{useId:M2}=r5,i5=()=>"",a5=typeof M2>"u"?i5:M2;function o5(e,t,n){var r;mh();const i=e||{},a=i.inherit===!1||!t?Object.assign(Object.assign({},Af),{hashed:(r=t==null?void 0:t.hashed)!==null&&r!==void 0?r:Af.hashed,cssVar:t==null?void 0:t.cssVar}):t,l=a5();return fh(()=>{var c,u;if(!e)return t;const d=Object.assign({},a.components);Object.keys(e.components||{}).forEach(v=>{d[v]=Object.assign(Object.assign({},d[v]),e.components[v])});const m=`css-var-${l.replace(/:/g,"")}`,g=((c=i.cssVar)!==null&&c!==void 0?c:a.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:n==null?void 0:n.prefixCls},typeof a.cssVar=="object"?a.cssVar:{}),typeof i.cssVar=="object"?i.cssVar:{}),{key:typeof i.cssVar=="object"&&((u=i.cssVar)===null||u===void 0?void 0:u.key)||m});return Object.assign(Object.assign(Object.assign({},a),i),{token:Object.assign(Object.assign({},a.token),i.token),components:d,cssVar:g})},[i,a],(c,u)=>c.some((d,m)=>{const g=u[m];return!Mf(d,g,!0)}))}var l5=["children"],_M=h.createContext({});function s5(e){var t=e.children,n=jt(e,l5);return h.createElement(_M.Provider,{value:n},t)}var c5=(function(e){Ba(n,e);var t=io(n);function n(){return yr(this,n),t.apply(this,arguments)}return br(n,[{key:"render",value:function(){return this.props.children}}]),n})(h.Component);function u5(e){var t=h.useReducer(function(c){return c+1},0),n=me(t,2),r=n[1],i=h.useRef(e),a=cr(function(){return i.current}),l=cr(function(c){i.current=typeof c=="function"?c(i.current):c,r()});return[a,l]}var vl="none",Bm="appear",Hm="enter",Fm="leave",P2="none",_a="prepare",cu="start",uu="active",jC="end",NM="prepared";function A2(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit".concat(e)]="webkit".concat(t),n["Moz".concat(e)]="moz".concat(t),n["ms".concat(e)]="MS".concat(t),n["O".concat(e)]="o".concat(t.toLowerCase()),n}function d5(e,t){var n={animationend:A2("Animation","AnimationEnd"),transitionend:A2("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}var f5=d5(ai(),typeof window<"u"?window:{}),IM={};if(ai()){var h5=document.createElement("div");IM=h5.style}var Vm={};function MM(e){if(Vm[e])return Vm[e];var t=f5[e];if(t)for(var n=Object.keys(t),r=n.length,i=0;i<r;i+=1){var a=n[i];if(Object.prototype.hasOwnProperty.call(t,a)&&a in IM)return Vm[e]=t[a],Vm[e]}return""}var PM=MM("animationend"),AM=MM("transitionend"),zM=!!(PM&&AM),z2=PM||"animationend",j2=AM||"transitionend";function D2(e,t){if(!e)return null;if(pt(e)==="object"){var n=t.replace(/-\w/g,function(r){return r[1].toUpperCase()});return e[n]}return"".concat(e,"-").concat(t)}const m5=(function(e){var t=h.useRef();function n(i){i&&(i.removeEventListener(j2,e),i.removeEventListener(z2,e))}function r(i){t.current&&t.current!==i&&n(t.current),i&&i!==t.current&&(i.addEventListener(j2,e),i.addEventListener(z2,e),t.current=i)}return h.useEffect(function(){return function(){n(t.current)}},[]),[r,n]});var jM=ai()?h.useLayoutEffect:h.useEffect;const g5=(function(){var e=h.useRef(null);function t(){Tn.cancel(e.current)}function n(r){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;t();var a=Tn(function(){i<=1?r({isCanceled:function(){return a!==e.current}}):n(r,i-1)});e.current=a}return h.useEffect(function(){return function(){t()}},[]),[n,t]});var p5=[_a,cu,uu,jC],v5=[_a,NM],DM=!1,y5=!0;function LM(e){return e===uu||e===jC}const b5=(function(e,t,n){var r=Bs(P2),i=me(r,2),a=i[0],l=i[1],c=g5(),u=me(c,2),d=u[0],m=u[1];function g(){l(_a,!0)}var v=t?v5:p5;return jM(function(){if(a!==P2&&a!==jC){var y=v.indexOf(a),b=v[y+1],x=n(a);x===DM?l(b,!0):b&&d(function(S){function w(){S.isCanceled()||l(b,!0)}x===!0?w():Promise.resolve(x).then(w)})}},[e,a]),h.useEffect(function(){return function(){m()}},[]),[g,a]});function S5(e,t,n,r){var i=r.motionEnter,a=i===void 0?!0:i,l=r.motionAppear,c=l===void 0?!0:l,u=r.motionLeave,d=u===void 0?!0:u,m=r.motionDeadline,g=r.motionLeaveImmediately,v=r.onAppearPrepare,y=r.onEnterPrepare,b=r.onLeavePrepare,x=r.onAppearStart,S=r.onEnterStart,w=r.onLeaveStart,$=r.onAppearActive,O=r.onEnterActive,T=r.onLeaveActive,_=r.onAppearEnd,R=r.onEnterEnd,M=r.onLeaveEnd,P=r.onVisibleChanged,N=Bs(),I=me(N,2),B=I[0],A=I[1],k=u5(vl),j=me(k,2),V=j[0],z=j[1],F=Bs(null),q=me(F,2),Z=q[0],H=q[1],U=V(),K=h.useRef(!1),D=h.useRef(null);function X(){return n()}var Q=h.useRef(!1);function Y(){z(vl),H(null,!0)}var ie=cr(function(Oe){var De=V();if(De!==vl){var Ne=X();if(!(Oe&&!Oe.deadline&&Oe.target!==Ne)){var be=Q.current,Ye;De===Bm&&be?Ye=_==null?void 0:_(Ne,Oe):De===Hm&&be?Ye=R==null?void 0:R(Ne,Oe):De===Fm&&be&&(Ye=M==null?void 0:M(Ne,Oe)),be&&Ye!==!1&&Y()}}}),oe=m5(ie),le=me(oe,1),Ce=le[0],ce=function(De){switch(De){case Bm:return G(G(G({},_a,v),cu,x),uu,$);case Hm:return G(G(G({},_a,y),cu,S),uu,O);case Fm:return G(G(G({},_a,b),cu,w),uu,T);default:return{}}},de=h.useMemo(function(){return ce(U)},[U]),ye=b5(U,!e,function(Oe){if(Oe===_a){var De=de[_a];return De?De(X()):DM}if(fe in de){var Ne;H(((Ne=de[fe])===null||Ne===void 0?void 0:Ne.call(de,X(),null))||null)}return fe===uu&&U!==vl&&(Ce(X()),m>0&&(clearTimeout(D.current),D.current=setTimeout(function(){ie({deadline:!0})},m))),fe===NM&&Y(),y5}),ve=me(ye,2),ge=ve[0],fe=ve[1],we=LM(fe);Q.current=we;var Te=h.useRef(null);jM(function(){if(!(K.current&&Te.current===t)){A(t);var Oe=K.current;K.current=!0;var De;!Oe&&t&&c&&(De=Bm),Oe&&t&&a&&(De=Hm),(Oe&&!t&&d||!Oe&&g&&!t&&d)&&(De=Fm);var Ne=ce(De);De&&(e||Ne[_a])?(z(De),ge()):z(vl),Te.current=t}},[t]),h.useEffect(function(){(U===Bm&&!c||U===Hm&&!a||U===Fm&&!d)&&z(vl)},[c,a,d]),h.useEffect(function(){return function(){K.current=!1,clearTimeout(D.current)}},[]);var je=h.useRef(!1);h.useEffect(function(){B&&(je.current=!0),B!==void 0&&U===vl&&((je.current||B)&&(P==null||P(B)),je.current=!0)},[B,U]);var ze=Z;return de[_a]&&fe===cu&&(ze=J({transition:"none"},ze)),[U,fe,ze,B??t]}function x5(e){var t=e;pt(e)==="object"&&(t=e.transitionSupport);function n(i,a){return!!(i.motionName&&t&&a!==!1)}var r=h.forwardRef(function(i,a){var l=i.visible,c=l===void 0?!0:l,u=i.removeOnLeave,d=u===void 0?!0:u,m=i.forceRender,g=i.children,v=i.motionName,y=i.leavedClassName,b=i.eventProps,x=h.useContext(_M),S=x.motion,w=n(i,S),$=h.useRef(),O=h.useRef();function T(){try{return $.current instanceof HTMLElement?$.current:dg(O.current)}catch{return null}}var _=S5(w,c,T,i),R=me(_,4),M=R[0],P=R[1],N=R[2],I=R[3],B=h.useRef(I);I&&(B.current=!0);var A=h.useCallback(function(q){$.current=q,xC(a,q)},[a]),k,j=J(J({},b),{},{visible:c});if(!g)k=null;else if(M===vl)I?k=g(J({},j),A):!d&&B.current&&y?k=g(J(J({},j),{},{className:y}),A):m||!d&&!y?k=g(J(J({},j),{},{style:{display:"none"}}),A):k=null;else{var V;P===_a?V="prepare":LM(P)?V="active":P===cu&&(V="start");var z=D2(v,"".concat(M,"-").concat(V));k=g(J(J({},j),{},{className:te(D2(v,M),G(G({},z,z&&V),v,typeof v=="string")),style:N}),A)}if(h.isValidElement(k)&&Ho(k)){var F=Kl(k);F||(k=h.cloneElement(k,{ref:A}))}return h.createElement(c5,{ref:O},k)});return r.displayName="CSSMotion",r}const ao=x5(zM);var BS="add",HS="keep",FS="remove",D0="removed";function C5(e){var t;return e&&pt(e)==="object"&&"key"in e?t=e:t={key:e},J(J({},t),{},{key:String(t.key)})}function VS(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(C5)}function w5(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=[],r=0,i=t.length,a=VS(e),l=VS(t);a.forEach(function(d){for(var m=!1,g=r;g<i;g+=1){var v=l[g];if(v.key===d.key){r<g&&(n=n.concat(l.slice(r,g).map(function(y){return J(J({},y),{},{status:BS})})),r=g),n.push(J(J({},v),{},{status:HS})),r+=1,m=!0;break}}m||n.push(J(J({},d),{},{status:FS}))}),r<i&&(n=n.concat(l.slice(r).map(function(d){return J(J({},d),{},{status:BS})})));var c={};n.forEach(function(d){var m=d.key;c[m]=(c[m]||0)+1});var u=Object.keys(c).filter(function(d){return c[d]>1});return u.forEach(function(d){n=n.filter(function(m){var g=m.key,v=m.status;return g!==d||v!==FS}),n.forEach(function(m){m.key===d&&(m.status=HS)})}),n}var E5=["component","children","onVisibleChanged","onAllRemoved"],$5=["status"],O5=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function R5(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ao,n=(function(r){Ba(a,r);var i=io(a);function a(){var l;yr(this,a);for(var c=arguments.length,u=new Array(c),d=0;d<c;d++)u[d]=arguments[d];return l=i.call.apply(i,[this].concat(u)),G(lt(l),"state",{keyEntities:[]}),G(lt(l),"removeKey",function(m){l.setState(function(g){var v=g.keyEntities.map(function(y){return y.key!==m?y:J(J({},y),{},{status:D0})});return{keyEntities:v}},function(){var g=l.state.keyEntities,v=g.filter(function(y){var b=y.status;return b!==D0}).length;v===0&&l.props.onAllRemoved&&l.props.onAllRemoved()})}),l}return br(a,[{key:"render",value:function(){var c=this,u=this.state.keyEntities,d=this.props,m=d.component,g=d.children,v=d.onVisibleChanged;d.onAllRemoved;var y=jt(d,E5),b=m||h.Fragment,x={};return O5.forEach(function(S){x[S]=y[S],delete y[S]}),delete y.keys,h.createElement(b,y,u.map(function(S,w){var $=S.status,O=jt(S,$5),T=$===BS||$===HS;return h.createElement(t,Ue({},x,{key:O.key,visible:T,eventProps:O,onVisibleChanged:function(R){v==null||v(R,{key:O.key}),R||c.removeKey(O.key)}}),function(_,R){return g(J(J({},_),{},{index:w}),R)})}))}}],[{key:"getDerivedStateFromProps",value:function(c,u){var d=c.keys,m=u.keyEntities,g=VS(d),v=w5(m,g);return{keyEntities:v.filter(function(y){var b=m.find(function(x){var S=x.key;return y.key===S});return!(b&&b.status===D0&&y.status===FS)})}}}]),a})(h.Component);return G(n,"defaultProps",{component:"div"}),n}const kM=R5(zM),L2=h.createContext(!0);function T5(e){const t=h.useContext(L2),{children:n}=e,[,r]=Zr(),{motion:i}=r,a=h.useRef(!1);return a.current||(a.current=t!==i),a.current?h.createElement(L2.Provider,{value:i},h.createElement(s5,{motion:i},n)):n}const _5=()=>null;var N5=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const I5=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];let Dg,BM,HM,FM;function bg(){return Dg||zf}function M5(){return BM||jp}function P5(e){return Object.keys(e).some(t=>t.endsWith("Color"))}const A5=e=>{const{prefixCls:t,iconPrefixCls:n,theme:r,holderRender:i}=e;t!==void 0&&(Dg=t),n!==void 0&&(BM=n),"holderRender"in e&&(FM=i),r&&(P5(r)?A6(bg(),r):HM=r)},z5=()=>({getPrefixCls:(e,t)=>t||(e?`${bg()}-${e}`:bg()),getIconPrefixCls:M5,getRootPrefixCls:()=>Dg||bg(),getTheme:()=>HM,holderRender:FM}),j5=e=>{const{children:t,csp:n,autoInsertSpaceInButton:r,alert:i,anchor:a,form:l,locale:c,componentSize:u,direction:d,space:m,splitter:g,virtual:v,dropdownMatchSelectWidth:y,popupMatchSelectWidth:b,popupOverflow:x,legacyLocale:S,parentContext:w,iconPrefixCls:$,theme:O,componentDisabled:T,segmented:_,statistic:R,spin:M,calendar:P,carousel:N,cascader:I,collapse:B,typography:A,checkbox:k,descriptions:j,divider:V,drawer:z,skeleton:F,steps:q,image:Z,layout:H,list:U,mentions:K,modal:D,progress:X,result:Q,slider:Y,breadcrumb:ie,menu:oe,pagination:le,input:Ce,textArea:ce,empty:de,badge:ye,radio:ve,rate:ge,switch:fe,transfer:we,avatar:Te,message:je,tag:ze,table:Oe,card:De,tabs:Ne,timeline:be,timePicker:Ye,upload:he,notification:$e,tree:Me,colorPicker:Ae,datePicker:Xe,rangePicker:Fe,flex:Ie,wave:Ge,dropdown:Le,warning:Ze,tour:_e,tooltip:tt,popover:$t,popconfirm:wt,floatButton:nn,floatButtonGroup:cn,variant:jn,inputNumber:$n,treeSelect:rn}=e,kt=h.useCallback((dt,zt)=>{const{prefixCls:Ot}=e;if(zt)return zt;const Ct=Ot||w.getPrefixCls("");return dt?`${Ct}-${dt}`:Ct},[w.getPrefixCls,e.prefixCls]),Mt=$||w.iconPrefixCls||jp,un=n||w.csp;n5(Mt,un);const Jt=o5(O,w.theme,{prefixCls:kt("")}),st={csp:un,autoInsertSpaceInButton:r,alert:i,anchor:a,locale:c||S,direction:d,space:m,splitter:g,virtual:v,popupMatchSelectWidth:b??y,popupOverflow:x,getPrefixCls:kt,iconPrefixCls:Mt,theme:Jt,segmented:_,statistic:R,spin:M,calendar:P,carousel:N,cascader:I,collapse:B,typography:A,checkbox:k,descriptions:j,divider:V,drawer:z,skeleton:F,steps:q,image:Z,input:Ce,textArea:ce,layout:H,list:U,mentions:K,modal:D,progress:X,result:Q,slider:Y,breadcrumb:ie,menu:oe,pagination:le,empty:de,badge:ye,radio:ve,rate:ge,switch:fe,transfer:we,avatar:Te,message:je,tag:ze,table:Oe,card:De,tabs:Ne,timeline:be,timePicker:Ye,upload:he,notification:$e,tree:Me,colorPicker:Ae,datePicker:Xe,rangePicker:Fe,flex:Ie,wave:Ge,dropdown:Le,warning:Ze,tour:_e,tooltip:tt,popover:$t,popconfirm:wt,floatButton:nn,floatButtonGroup:cn,variant:jn,inputNumber:$n,treeSelect:rn},Pt=Object.assign({},w);Object.keys(st).forEach(dt=>{st[dt]!==void 0&&(Pt[dt]=st[dt])}),I5.forEach(dt=>{const zt=e[dt];zt&&(Pt[dt]=zt)}),typeof r<"u"&&(Pt.button=Object.assign({autoInsertSpace:r},Pt.button));const vt=fh(()=>Pt,Pt,(dt,zt)=>{const Ot=Object.keys(dt),Ct=Object.keys(zt);return Ot.length!==Ct.length||Ot.some(Vt=>dt[Vt]!==zt[Vt])}),{layer:Ke}=h.useContext(hh),Be=h.useMemo(()=>({prefixCls:Mt,csp:un,layer:Ke?"antd":void 0}),[Mt,un,Ke]);let He=h.createElement(h.Fragment,null,h.createElement(_5,{dropdownMatchSelectWidth:y}),t);const Qe=h.useMemo(()=>{var dt,zt,Ot,Ct;return su(((dt=Do.Form)===null||dt===void 0?void 0:dt.defaultValidateMessages)||{},((Ot=(zt=vt.locale)===null||zt===void 0?void 0:zt.Form)===null||Ot===void 0?void 0:Ot.defaultValidateMessages)||{},((Ct=vt.form)===null||Ct===void 0?void 0:Ct.validateMessages)||{},(l==null?void 0:l.validateMessages)||{})},[vt,l==null?void 0:l.validateMessages]);Object.keys(Qe).length>0&&(He=h.createElement(fM.Provider,{value:Qe},He)),c&&(He=h.createElement(b6,{locale:c,_ANT_MARK__:y6},He)),He=h.createElement(NC.Provider,{value:Be},He),u&&(He=h.createElement(z6,{size:u},He)),He=h.createElement(T5,null,He);const ut=h.useMemo(()=>{const dt=Jt||{},{algorithm:zt,token:Ot,components:Ct,cssVar:Vt}=dt,Dn=N5(dt,["algorithm","token","components","cssVar"]),Bn=zt&&(!Array.isArray(zt)||zt.length>0)?Pg(zt):PC,Un={};Object.entries(Ct||{}).forEach(([an,Sn])=>{const We=Object.assign({},Sn);"algorithm"in We&&(We.algorithm===!0?We.theme=Bn:(Array.isArray(We.algorithm)||typeof We.algorithm=="function")&&(We.theme=Pg(We.algorithm)),delete We.algorithm),Un[an]=We});const nr=Object.assign(Object.assign({},ku),Ot);return Object.assign(Object.assign({},Dn),{theme:Bn,token:nr,components:Un,override:Object.assign({override:nr},Un),cssVar:Vt})},[Jt]);return O&&(He=h.createElement(AC.Provider,{value:ut},He)),vt.warning&&(He=h.createElement(m6.Provider,{value:vt.warning},He)),T!==void 0&&(He=h.createElement(SM,{disabled:T},He)),h.createElement(Tt.Provider,{value:vt},He)},tc=e=>{const t=h.useContext(Tt),n=h.useContext(IC);return h.createElement(j5,Object.assign({parentContext:t,legacyLocale:n},e))};tc.ConfigContext=Tt;tc.SizeContext=ks;tc.config=A5;tc.useConfig=j6;Object.defineProperty(tc,"SizeContext",{get:()=>ks});var D5={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"};function VM(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function L5(e){return VM(e)instanceof ShadowRoot}function Lg(e){return L5(e)?VM(e):null}function k5(e){return e.replace(/-(.)/g,function(t,n){return n.toUpperCase()})}function B5(e,t){ur(e,"[@ant-design/icons] ".concat(t))}function k2(e){return pt(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(pt(e.icon)==="object"||typeof e.icon=="function")}function B2(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(e).reduce(function(t,n){var r=e[n];switch(n){case"class":t.className=r,delete t.class;break;default:delete t[n],t[k5(n)]=r}return t},{})}function US(e,t,n){return n?re.createElement(e.tag,J(J({key:t},B2(e.attrs)),n),(e.children||[]).map(function(r,i){return US(r,"".concat(t,"-").concat(e.tag,"-").concat(i))})):re.createElement(e.tag,J({key:t},B2(e.attrs)),(e.children||[]).map(function(r,i){return US(r,"".concat(t,"-").concat(e.tag,"-").concat(i))}))}function UM(e){return Ls(e)[0]}function qM(e){return e?Array.isArray(e)?e:[e]:[]}var H5=`
|
|
81
|
-
.anticon {
|
|
82
|
-
display: inline-flex;
|
|
83
|
-
align-items: center;
|
|
84
|
-
color: inherit;
|
|
85
|
-
font-style: normal;
|
|
86
|
-
line-height: 0;
|
|
87
|
-
text-align: center;
|
|
88
|
-
text-transform: none;
|
|
89
|
-
vertical-align: -0.125em;
|
|
90
|
-
text-rendering: optimizeLegibility;
|
|
91
|
-
-webkit-font-smoothing: antialiased;
|
|
92
|
-
-moz-osx-font-smoothing: grayscale;
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
.anticon > * {
|
|
96
|
-
line-height: 1;
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
.anticon svg {
|
|
100
|
-
display: inline-block;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
.anticon::before {
|
|
104
|
-
display: none;
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
.anticon .anticon-icon {
|
|
108
|
-
display: block;
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
.anticon[tabindex] {
|
|
112
|
-
cursor: pointer;
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
.anticon-spin::before,
|
|
116
|
-
.anticon-spin {
|
|
117
|
-
display: inline-block;
|
|
118
|
-
-webkit-animation: loadingCircle 1s infinite linear;
|
|
119
|
-
animation: loadingCircle 1s infinite linear;
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
@-webkit-keyframes loadingCircle {
|
|
123
|
-
100% {
|
|
124
|
-
-webkit-transform: rotate(360deg);
|
|
125
|
-
transform: rotate(360deg);
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
@keyframes loadingCircle {
|
|
130
|
-
100% {
|
|
131
|
-
-webkit-transform: rotate(360deg);
|
|
132
|
-
transform: rotate(360deg);
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
`,F5=function(t){var n=h.useContext(NC),r=n.csp,i=n.prefixCls,a=n.layer,l=H5;i&&(l=l.replace(/anticon/g,i)),a&&(l="@layer ".concat(a,` {
|
|
136
|
-
`).concat(l,`
|
|
137
|
-
}`)),h.useEffect(function(){var c=t.current,u=Lg(c);Ao(l,"@ant-design-icons",{prepend:!a,csp:r,attachTo:u})},[])},V5=["icon","className","onClick","style","primaryColor","secondaryColor"],pf={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function U5(e){var t=e.primaryColor,n=e.secondaryColor;pf.primaryColor=t,pf.secondaryColor=n||UM(t),pf.calculated=!!n}function q5(){return J({},pf)}var Gu=function(t){var n=t.icon,r=t.className,i=t.onClick,a=t.style,l=t.primaryColor,c=t.secondaryColor,u=jt(t,V5),d=h.useRef(),m=pf;if(l&&(m={primaryColor:l,secondaryColor:c||UM(l)}),F5(d),B5(k2(n),"icon should be icon definiton, but got ".concat(n)),!k2(n))return null;var g=n;return g&&typeof g.icon=="function"&&(g=J(J({},g),{},{icon:g.icon(m.primaryColor,m.secondaryColor)})),US(g.icon,"svg-".concat(g.name),J(J({className:r,onClick:i,style:a,"data-icon":g.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},u),{},{ref:d}))};Gu.displayName="IconReact";Gu.getTwoToneColors=q5;Gu.setTwoToneColors=U5;function KM(e){var t=qM(e),n=me(t,2),r=n[0],i=n[1];return Gu.setTwoToneColors({primaryColor:r,secondaryColor:i})}function K5(){var e=Gu.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var W5=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];KM(jg.primary);var mn=h.forwardRef(function(e,t){var n=e.className,r=e.icon,i=e.spin,a=e.rotate,l=e.tabIndex,c=e.onClick,u=e.twoToneColor,d=jt(e,W5),m=h.useContext(NC),g=m.prefixCls,v=g===void 0?"anticon":g,y=m.rootClassName,b=te(y,v,G(G({},"".concat(v,"-").concat(r.name),!!r.name),"".concat(v,"-spin"),!!i||r.name==="loading"),n),x=l;x===void 0&&c&&(x=-1);var S=a?{msTransform:"rotate(".concat(a,"deg)"),transform:"rotate(".concat(a,"deg)")}:void 0,w=qM(u),$=me(w,2),O=$[0],T=$[1];return h.createElement("span",Ue({role:"img","aria-label":r.name},d,{ref:t,tabIndex:x,onClick:c,className:b}),h.createElement(Gu,{icon:r,primaryColor:O,secondaryColor:T,style:S}))});mn.displayName="AntdIcon";mn.getTwoToneColor=K5;mn.setTwoToneColor=KM;var G5=function(t,n){return h.createElement(mn,Ue({},t,{ref:n,icon:D5}))},Dp=h.forwardRef(G5),X5={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"},Q5=function(t,n){return h.createElement(mn,Ue({},t,{ref:n,icon:X5}))},Xu=h.forwardRef(Q5),Y5={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"},Z5=function(t,n){return h.createElement(mn,Ue({},t,{ref:n,icon:Y5}))},Qu=h.forwardRef(Z5),J5={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"},eB=function(t,n){return h.createElement(mn,Ue({},t,{ref:n,icon:J5}))},ph=h.forwardRef(eB),tB={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"},nB=function(t,n){return h.createElement(mn,Ue({},t,{ref:n,icon:tB}))},WM=h.forwardRef(nB),rB=`accept acceptCharset accessKey action allowFullScreen allowTransparency
|
|
138
|
-
alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
|
|
139
|
-
charSet checked classID className colSpan cols content contentEditable contextMenu
|
|
140
|
-
controls coords crossOrigin data dateTime default defer dir disabled download draggable
|
|
141
|
-
encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
|
|
142
|
-
headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
|
|
143
|
-
is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
|
|
144
|
-
mediaGroup method min minLength multiple muted name noValidate nonce open
|
|
145
|
-
optimum pattern placeholder poster preload radioGroup readOnly rel required
|
|
146
|
-
reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
|
|
147
|
-
shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
|
|
148
|
-
summary tabIndex target title type useMap value width wmode wrap`,iB=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
|
|
149
|
-
onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
|
|
150
|
-
onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
|
|
151
|
-
onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
|
|
152
|
-
onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
|
|
153
|
-
onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
|
|
154
|
-
onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,aB="".concat(rB," ").concat(iB).split(/[\s\n]+/),oB="aria-",lB="data-";function H2(e,t){return e.indexOf(t)===0}function La(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n;t===!1?n={aria:!0,data:!0,attr:!0}:t===!0?n={aria:!0}:n=J({},t);var r={};return Object.keys(e).forEach(function(i){(n.aria&&(i==="role"||H2(i,oB))||n.data&&H2(i,lB)||n.attr&&aB.includes(i))&&(r[i]=e[i])}),r}function GM(e){return e&&re.isValidElement(e)&&e.type===re.Fragment}const DC=(e,t,n)=>re.isValidElement(e)?re.cloneElement(e,typeof n=="function"?n(e.props||{}):n):t;function oi(e,t){return DC(e,e,t)}const Um=(e,t,n,r,i)=>({background:e,border:`${ae(r.lineWidth)} ${r.lineType} ${t}`,[`${i}-icon`]:{color:n}}),sB=e=>{const{componentCls:t,motionDurationSlow:n,marginXS:r,marginSM:i,fontSize:a,fontSizeLG:l,lineHeight:c,borderRadiusLG:u,motionEaseInOutCirc:d,withDescriptionIconSize:m,colorText:g,colorTextHeading:v,withDescriptionPadding:y,defaultPadding:b}=e;return{[t]:Object.assign(Object.assign({},lr(e)),{position:"relative",display:"flex",alignItems:"center",padding:b,wordWrap:"break-word",borderRadius:u,[`&${t}-rtl`]:{direction:"rtl"},[`${t}-content`]:{flex:1,minWidth:0},[`${t}-icon`]:{marginInlineEnd:r,lineHeight:0},"&-description":{display:"none",fontSize:a,lineHeight:c},"&-message":{color:v},[`&${t}-motion-leave`]:{overflow:"hidden",opacity:1,transition:`max-height ${n} ${d}, opacity ${n} ${d},
|
|
155
|
-
padding-top ${n} ${d}, padding-bottom ${n} ${d},
|
|
156
|
-
margin-bottom ${n} ${d}`},[`&${t}-motion-leave-active`]:{maxHeight:0,marginBottom:"0 !important",paddingTop:0,paddingBottom:0,opacity:0}}),[`${t}-with-description`]:{alignItems:"flex-start",padding:y,[`${t}-icon`]:{marginInlineEnd:i,fontSize:m,lineHeight:0},[`${t}-message`]:{display:"block",marginBottom:r,color:v,fontSize:l},[`${t}-description`]:{display:"block",color:g}},[`${t}-banner`]:{marginBottom:0,border:"0 !important",borderRadius:0}}},cB=e=>{const{componentCls:t,colorSuccess:n,colorSuccessBorder:r,colorSuccessBg:i,colorWarning:a,colorWarningBorder:l,colorWarningBg:c,colorError:u,colorErrorBorder:d,colorErrorBg:m,colorInfo:g,colorInfoBorder:v,colorInfoBg:y}=e;return{[t]:{"&-success":Um(i,r,n,e,t),"&-info":Um(y,v,g,e,t),"&-warning":Um(c,l,a,e,t),"&-error":Object.assign(Object.assign({},Um(m,d,u,e,t)),{[`${t}-description > pre`]:{margin:0,padding:0}})}}},uB=e=>{const{componentCls:t,iconCls:n,motionDurationMid:r,marginXS:i,fontSizeIcon:a,colorIcon:l,colorIconHover:c}=e;return{[t]:{"&-action":{marginInlineStart:i},[`${t}-close-icon`]:{marginInlineStart:i,padding:0,overflow:"hidden",fontSize:a,lineHeight:ae(a),backgroundColor:"transparent",border:"none",outline:"none",cursor:"pointer",[`${n}-close`]:{color:l,transition:`color ${r}`,"&:hover":{color:c}}},"&-close-text":{color:l,transition:`color ${r}`,"&:hover":{color:c}}}}},dB=e=>({withDescriptionIconSize:e.fontSizeHeading3,defaultPadding:`${e.paddingContentVerticalSM}px 12px`,withDescriptionPadding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`}),fB=Nn("Alert",e=>[sB(e),cB(e),uB(e)],dB);var F2=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const hB={success:Dp,info:WM,error:Xu,warning:ph},mB=e=>{const{icon:t,prefixCls:n,type:r}=e,i=hB[r]||null;return t?DC(t,h.createElement("span",{className:`${n}-icon`},t),()=>({className:te(`${n}-icon`,t.props.className)})):h.createElement(i,{className:`${n}-icon`})},gB=e=>{const{isClosable:t,prefixCls:n,closeIcon:r,handleClose:i,ariaProps:a}=e,l=r===!0||r===void 0?h.createElement(Qu,null):r;return t?h.createElement("button",Object.assign({type:"button",onClick:i,className:`${n}-close-icon`,tabIndex:0},a),l):null},XM=h.forwardRef((e,t)=>{const{description:n,prefixCls:r,message:i,banner:a,className:l,rootClassName:c,style:u,onMouseEnter:d,onMouseLeave:m,onClick:g,afterClose:v,showIcon:y,closable:b,closeText:x,closeIcon:S,action:w,id:$}=e,O=F2(e,["description","prefixCls","message","banner","className","rootClassName","style","onMouseEnter","onMouseLeave","onClick","afterClose","showIcon","closable","closeText","closeIcon","action","id"]),[T,_]=h.useState(!1),R=h.useRef(null);h.useImperativeHandle(t,()=>({nativeElement:R.current}));const{getPrefixCls:M,direction:P,closable:N,closeIcon:I,className:B,style:A}=Yr("alert"),k=M("alert",r),[j,V,z]=fB(k),F=Q=>{var Y;_(!0),(Y=e.onClose)===null||Y===void 0||Y.call(e,Q)},q=h.useMemo(()=>e.type!==void 0?e.type:a?"warning":"info",[e.type,a]),Z=h.useMemo(()=>typeof b=="object"&&b.closeIcon||x?!0:typeof b=="boolean"?b:S!==!1&&S!==null&&S!==void 0?!0:!!N,[x,S,b,N]),H=a&&y===void 0?!0:y,U=te(k,`${k}-${q}`,{[`${k}-with-description`]:!!n,[`${k}-no-icon`]:!H,[`${k}-banner`]:!!a,[`${k}-rtl`]:P==="rtl"},B,l,c,z,V),K=La(O,{aria:!0,data:!0}),D=h.useMemo(()=>typeof b=="object"&&b.closeIcon?b.closeIcon:x||(S!==void 0?S:typeof N=="object"&&N.closeIcon?N.closeIcon:I),[S,b,N,x,I]),X=h.useMemo(()=>{const Q=b??N;if(typeof Q=="object"){const{closeIcon:Y}=Q;return F2(Q,["closeIcon"])}return{}},[b,N]);return j(h.createElement(ao,{visible:!T,motionName:`${k}-motion`,motionAppear:!1,motionEnter:!1,onLeaveStart:Q=>({maxHeight:Q.offsetHeight}),onLeaveEnd:v},({className:Q,style:Y},ie)=>h.createElement("div",Object.assign({id:$,ref:gi(R,ie),"data-show":!T,className:te(U,Q),style:Object.assign(Object.assign(Object.assign({},A),u),Y),onMouseEnter:d,onMouseLeave:m,onClick:g,role:"alert"},K),H?h.createElement(mB,{description:n,icon:e.icon,prefixCls:k,type:q}):null,h.createElement("div",{className:`${k}-content`},i?h.createElement("div",{className:`${k}-message`},i):null,n?h.createElement("div",{className:`${k}-description`},n):null),w?h.createElement("div",{className:`${k}-action`},w):null,h.createElement(gB,{isClosable:Z,prefixCls:k,closeIcon:D,handleClose:F,ariaProps:X}))))});function pB(e,t,n){return t=Ds(t),LI(e,Ip()?Reflect.construct(t,n||[],Ds(e).constructor):t.apply(e,n))}let vB=(function(e){function t(){var n;return yr(this,t),n=pB(this,t,arguments),n.state={error:void 0,info:{componentStack:""}},n}return Ba(t,e),br(t,[{key:"componentDidCatch",value:function(r,i){this.setState({error:r,info:i})}},{key:"render",value:function(){const{message:r,description:i,id:a,children:l}=this.props,{error:c,info:u}=this.state,d=(u==null?void 0:u.componentStack)||null,m=typeof r>"u"?(c||"").toString():r,g=typeof i>"u"?d:i;return c?h.createElement(XM,{id:a,type:"error",message:m,description:h.createElement("pre",{style:{fontSize:"0.9em",overflowX:"auto"}},g)}):l}}])})(h.Component);const QM=XM;QM.ErrorBoundary=vB;const V2=e=>typeof e=="object"&&e!=null&&e.nodeType===1,U2=(e,t)=>(!t||e!=="hidden")&&e!=="visible"&&e!=="clip",qm=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){const n=getComputedStyle(e,null);return U2(n.overflowY,t)||U2(n.overflowX,t)||(r=>{const i=(a=>{if(!a.ownerDocument||!a.ownerDocument.defaultView)return null;try{return a.ownerDocument.defaultView.frameElement}catch{return null}})(r);return!!i&&(i.clientHeight<r.scrollHeight||i.clientWidth<r.scrollWidth)})(e)}return!1},Km=(e,t,n,r,i,a,l,c)=>a<e&&l>t||a>e&&l<t?0:a<=e&&c<=n||l>=t&&c>=n?a-e-r:l>t&&c<n||a<e&&c>n?l-t+i:0,yB=e=>{const t=e.parentElement;return t??(e.getRootNode().host||null)},q2=(e,t)=>{var n,r,i,a;if(typeof document>"u")return[];const{scrollMode:l,block:c,inline:u,boundary:d,skipOverflowHiddenElements:m}=t,g=typeof d=="function"?d:z=>z!==d;if(!V2(e))throw new TypeError("Invalid target");const v=document.scrollingElement||document.documentElement,y=[];let b=e;for(;V2(b)&&g(b);){if(b=yB(b),b===v){y.push(b);break}b!=null&&b===document.body&&qm(b)&&!qm(document.documentElement)||b!=null&&qm(b,m)&&y.push(b)}const x=(r=(n=window.visualViewport)==null?void 0:n.width)!=null?r:innerWidth,S=(a=(i=window.visualViewport)==null?void 0:i.height)!=null?a:innerHeight,{scrollX:w,scrollY:$}=window,{height:O,width:T,top:_,right:R,bottom:M,left:P}=e.getBoundingClientRect(),{top:N,right:I,bottom:B,left:A}=(z=>{const F=window.getComputedStyle(z);return{top:parseFloat(F.scrollMarginTop)||0,right:parseFloat(F.scrollMarginRight)||0,bottom:parseFloat(F.scrollMarginBottom)||0,left:parseFloat(F.scrollMarginLeft)||0}})(e);let k=c==="start"||c==="nearest"?_-N:c==="end"?M+B:_+O/2-N+B,j=u==="center"?P+T/2-A+I:u==="end"?R+I:P-A;const V=[];for(let z=0;z<y.length;z++){const F=y[z],{height:q,width:Z,top:H,right:U,bottom:K,left:D}=F.getBoundingClientRect();if(l==="if-needed"&&_>=0&&P>=0&&M<=S&&R<=x&&(F===v&&!qm(F)||_>=H&&M<=K&&P>=D&&R<=U))return V;const X=getComputedStyle(F),Q=parseInt(X.borderLeftWidth,10),Y=parseInt(X.borderTopWidth,10),ie=parseInt(X.borderRightWidth,10),oe=parseInt(X.borderBottomWidth,10);let le=0,Ce=0;const ce="offsetWidth"in F?F.offsetWidth-F.clientWidth-Q-ie:0,de="offsetHeight"in F?F.offsetHeight-F.clientHeight-Y-oe:0,ye="offsetWidth"in F?F.offsetWidth===0?0:Z/F.offsetWidth:0,ve="offsetHeight"in F?F.offsetHeight===0?0:q/F.offsetHeight:0;if(v===F)le=c==="start"?k:c==="end"?k-S:c==="nearest"?Km($,$+S,S,Y,oe,$+k,$+k+O,O):k-S/2,Ce=u==="start"?j:u==="center"?j-x/2:u==="end"?j-x:Km(w,w+x,x,Q,ie,w+j,w+j+T,T),le=Math.max(0,le+$),Ce=Math.max(0,Ce+w);else{le=c==="start"?k-H-Y:c==="end"?k-K+oe+de:c==="nearest"?Km(H,K,q,Y,oe+de,k,k+O,O):k-(H+q/2)+de/2,Ce=u==="start"?j-D-Q:u==="center"?j-(D+Z/2)+ce/2:u==="end"?j-U+ie+ce:Km(D,U,Z,Q,ie+ce,j,j+T,T);const{scrollLeft:ge,scrollTop:fe}=F;le=ve===0?0:Math.max(0,Math.min(fe+le/ve,F.scrollHeight-q/ve+de)),Ce=ye===0?0:Math.max(0,Math.min(ge+Ce/ye,F.scrollWidth-Z/ye+ce)),k+=fe-le,j+=ge-Ce}V.push({el:F,top:le,left:Ce})}return V},bB=e=>e===!1?{block:"end",inline:"nearest"}:(t=>t===Object(t)&&Object.keys(t).length!==0)(e)?e:{block:"start",inline:"nearest"};function SB(e,t){if(!e.isConnected||!(i=>{let a=i;for(;a&&a.parentNode;){if(a.parentNode===document)return!0;a=a.parentNode instanceof ShadowRoot?a.parentNode.host:a.parentNode}return!1})(e))return;const n=(i=>{const a=window.getComputedStyle(i);return{top:parseFloat(a.scrollMarginTop)||0,right:parseFloat(a.scrollMarginRight)||0,bottom:parseFloat(a.scrollMarginBottom)||0,left:parseFloat(a.scrollMarginLeft)||0}})(e);if((i=>typeof i=="object"&&typeof i.behavior=="function")(t))return t.behavior(q2(e,t));const r=typeof t=="boolean"||t==null?void 0:t.behavior;for(const{el:i,top:a,left:l}of q2(e,bB(t))){const c=a-n.top+n.bottom,u=l-n.left+n.right;i.scroll({top:c,left:u,behavior:r})}}const Yi=e=>{const[,,,,t]=Zr();return t?`${e}-css-var`:""};var ot={BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,CAPS_LOCK:20,ESC:27,SPACE:32,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,N:78,P:80,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,SEMICOLON:186,EQUALS:187,WIN_KEY:224},YM=h.forwardRef(function(e,t){var n=e.prefixCls,r=e.style,i=e.className,a=e.duration,l=a===void 0?4.5:a,c=e.showProgress,u=e.pauseOnHover,d=u===void 0?!0:u,m=e.eventKey,g=e.content,v=e.closable,y=e.closeIcon,b=y===void 0?"x":y,x=e.props,S=e.onClick,w=e.onNoticeClose,$=e.times,O=e.hovering,T=h.useState(!1),_=me(T,2),R=_[0],M=_[1],P=h.useState(0),N=me(P,2),I=N[0],B=N[1],A=h.useState(0),k=me(A,2),j=k[0],V=k[1],z=O||R,F=l>0&&c,q=function(){w(m)},Z=function(Q){(Q.key==="Enter"||Q.code==="Enter"||Q.keyCode===ot.ENTER)&&q()};h.useEffect(function(){if(!z&&l>0){var X=Date.now()-j,Q=setTimeout(function(){q()},l*1e3-j);return function(){d&&clearTimeout(Q),V(Date.now()-X)}}},[l,z,$]),h.useEffect(function(){if(!z&&F&&(d||j===0)){var X=performance.now(),Q,Y=function ie(){cancelAnimationFrame(Q),Q=requestAnimationFrame(function(oe){var le=oe+j-X,Ce=Math.min(le/(l*1e3),1);B(Ce*100),Ce<1&&ie()})};return Y(),function(){d&&cancelAnimationFrame(Q)}}},[l,j,z,F,$]);var H=h.useMemo(function(){return pt(v)==="object"&&v!==null?v:v?{closeIcon:b}:{}},[v,b]),U=La(H,!0),K=100-(!I||I<0?0:I>100?100:I),D="".concat(n,"-notice");return h.createElement("div",Ue({},x,{ref:t,className:te(D,i,G({},"".concat(D,"-closable"),v)),style:r,onMouseEnter:function(Q){var Y;M(!0),x==null||(Y=x.onMouseEnter)===null||Y===void 0||Y.call(x,Q)},onMouseLeave:function(Q){var Y;M(!1),x==null||(Y=x.onMouseLeave)===null||Y===void 0||Y.call(x,Q)},onClick:S}),h.createElement("div",{className:"".concat(D,"-content")},g),v&&h.createElement("a",Ue({tabIndex:0,className:"".concat(D,"-close"),onKeyDown:Z,"aria-label":"Close"},U,{onClick:function(Q){Q.preventDefault(),Q.stopPropagation(),q()}}),H.closeIcon),F&&h.createElement("progress",{className:"".concat(D,"-progress"),max:"100",value:K},K+"%"))}),ZM=re.createContext({}),xB=function(t){var n=t.children,r=t.classNames;return re.createElement(ZM.Provider,{value:{classNames:r}},n)},K2=8,W2=3,G2=16,CB=function(t){var n={offset:K2,threshold:W2,gap:G2};if(t&&pt(t)==="object"){var r,i,a;n.offset=(r=t.offset)!==null&&r!==void 0?r:K2,n.threshold=(i=t.threshold)!==null&&i!==void 0?i:W2,n.gap=(a=t.gap)!==null&&a!==void 0?a:G2}return[!!t,n]},wB=["className","style","classNames","styles"],EB=function(t){var n=t.configList,r=t.placement,i=t.prefixCls,a=t.className,l=t.style,c=t.motion,u=t.onAllNoticeRemoved,d=t.onNoticeClose,m=t.stack,g=h.useContext(ZM),v=g.classNames,y=h.useRef({}),b=h.useState(null),x=me(b,2),S=x[0],w=x[1],$=h.useState([]),O=me($,2),T=O[0],_=O[1],R=n.map(function(z){return{config:z,key:String(z.key)}}),M=CB(m),P=me(M,2),N=P[0],I=P[1],B=I.offset,A=I.threshold,k=I.gap,j=N&&(T.length>0||R.length<=A),V=typeof c=="function"?c(r):c;return h.useEffect(function(){N&&T.length>1&&_(function(z){return z.filter(function(F){return R.some(function(q){var Z=q.key;return F===Z})})})},[T,R,N]),h.useEffect(function(){var z;if(N&&y.current[(z=R[R.length-1])===null||z===void 0?void 0:z.key]){var F;w(y.current[(F=R[R.length-1])===null||F===void 0?void 0:F.key])}},[R,N]),re.createElement(kM,Ue({key:r,className:te(i,"".concat(i,"-").concat(r),v==null?void 0:v.list,a,G(G({},"".concat(i,"-stack"),!!N),"".concat(i,"-stack-expanded"),j)),style:l,keys:R,motionAppear:!0},V,{onAllRemoved:function(){u(r)}}),function(z,F){var q=z.config,Z=z.className,H=z.style,U=z.index,K=q,D=K.key,X=K.times,Q=String(D),Y=q,ie=Y.className,oe=Y.style,le=Y.classNames,Ce=Y.styles,ce=jt(Y,wB),de=R.findIndex(function(be){return be.key===Q}),ye={};if(N){var ve=R.length-1-(de>-1?de:U-1),ge=r==="top"||r==="bottom"?"-50%":"0";if(ve>0){var fe,we,Te;ye.height=j?(fe=y.current[Q])===null||fe===void 0?void 0:fe.offsetHeight:S==null?void 0:S.offsetHeight;for(var je=0,ze=0;ze<ve;ze++){var Oe;je+=((Oe=y.current[R[R.length-1-ze].key])===null||Oe===void 0?void 0:Oe.offsetHeight)+k}var De=(j?je:ve*B)*(r.startsWith("top")?1:-1),Ne=!j&&S!==null&&S!==void 0&&S.offsetWidth&&(we=y.current[Q])!==null&&we!==void 0&&we.offsetWidth?((S==null?void 0:S.offsetWidth)-B*2*(ve<3?ve:3))/((Te=y.current[Q])===null||Te===void 0?void 0:Te.offsetWidth):1;ye.transform="translate3d(".concat(ge,", ").concat(De,"px, 0) scaleX(").concat(Ne,")")}else ye.transform="translate3d(".concat(ge,", 0, 0)")}return re.createElement("div",{ref:F,className:te("".concat(i,"-notice-wrapper"),Z,le==null?void 0:le.wrapper),style:J(J(J({},H),ye),Ce==null?void 0:Ce.wrapper),onMouseEnter:function(){return _(function(Ye){return Ye.includes(Q)?Ye:[].concat(qe(Ye),[Q])})},onMouseLeave:function(){return _(function(Ye){return Ye.filter(function(he){return he!==Q})})}},re.createElement(YM,Ue({},ce,{ref:function(Ye){de>-1?y.current[Q]=Ye:delete y.current[Q]},prefixCls:i,classNames:le,styles:Ce,className:te(ie,v==null?void 0:v.notice),style:oe,times:X,key:D,eventKey:D,onNoticeClose:d,hovering:N&&T.length>0})))})},$B=h.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-notification":n,i=e.container,a=e.motion,l=e.maxCount,c=e.className,u=e.style,d=e.onAllRemoved,m=e.stack,g=e.renderNotifications,v=h.useState([]),y=me(v,2),b=y[0],x=y[1],S=function(N){var I,B=b.find(function(A){return A.key===N});B==null||(I=B.onClose)===null||I===void 0||I.call(B),x(function(A){return A.filter(function(k){return k.key!==N})})};h.useImperativeHandle(t,function(){return{open:function(N){x(function(I){var B=qe(I),A=B.findIndex(function(V){return V.key===N.key}),k=J({},N);if(A>=0){var j;k.times=(((j=I[A])===null||j===void 0?void 0:j.times)||0)+1,B[A]=k}else k.times=0,B.push(k);return l>0&&B.length>l&&(B=B.slice(-l)),B})},close:function(N){S(N)},destroy:function(){x([])}}});var w=h.useState({}),$=me(w,2),O=$[0],T=$[1];h.useEffect(function(){var P={};b.forEach(function(N){var I=N.placement,B=I===void 0?"topRight":I;B&&(P[B]=P[B]||[],P[B].push(N))}),Object.keys(O).forEach(function(N){P[N]=P[N]||[]}),T(P)},[b]);var _=function(N){T(function(I){var B=J({},I),A=B[N]||[];return A.length||delete B[N],B})},R=h.useRef(!1);if(h.useEffect(function(){Object.keys(O).length>0?R.current=!0:R.current&&(d==null||d(),R.current=!1)},[O]),!i)return null;var M=Object.keys(O);return kl.createPortal(h.createElement(h.Fragment,null,M.map(function(P){var N=O[P],I=h.createElement(EB,{key:P,configList:N,placement:P,prefixCls:r,className:c==null?void 0:c(P),style:u==null?void 0:u(P),motion:a,onNoticeClose:S,onAllNoticeRemoved:_,stack:m});return g?g(I,{prefixCls:r,key:P}):I})),i)}),OB=["getContainer","motion","prefixCls","maxCount","className","style","onAllRemoved","stack","renderNotifications"],RB=function(){return document.body},X2=0;function TB(){for(var e={},t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach(function(i){i&&Object.keys(i).forEach(function(a){var l=i[a];l!==void 0&&(e[a]=l)})}),e}function _B(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.getContainer,n=t===void 0?RB:t,r=e.motion,i=e.prefixCls,a=e.maxCount,l=e.className,c=e.style,u=e.onAllRemoved,d=e.stack,m=e.renderNotifications,g=jt(e,OB),v=h.useState(),y=me(v,2),b=y[0],x=y[1],S=h.useRef(),w=h.createElement($B,{container:b,ref:S,prefixCls:i,motion:r,maxCount:a,className:l,style:c,onAllRemoved:u,stack:d,renderNotifications:m}),$=h.useState([]),O=me($,2),T=O[0],_=O[1],R=cr(function(P){var N=TB(g,P);(N.key===null||N.key===void 0)&&(N.key="rc-notification-".concat(X2),X2+=1),_(function(I){return[].concat(qe(I),[{type:"open",config:N}])})}),M=h.useMemo(function(){return{open:R,close:function(N){_(function(I){return[].concat(qe(I),[{type:"close",key:N}])})},destroy:function(){_(function(N){return[].concat(qe(N),[{type:"destroy"}])})}}},[]);return h.useEffect(function(){x(n())}),h.useEffect(function(){if(S.current&&T.length){T.forEach(function(I){switch(I.type){case"open":S.current.open(I.config);break;case"close":S.current.close(I.key);break;case"destroy":S.current.destroy();break}});var P,N;_(function(I){return(P!==I||!N)&&(P=I,N=I.filter(function(B){return!T.includes(B)})),N})}},[T]),[M,w]}var NB={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"},IB=function(t,n){return h.createElement(mn,Ue({},t,{ref:n,icon:NB}))},vh=h.forwardRef(IB);function qS(...e){const t={};return e.forEach(n=>{n&&Object.keys(n).forEach(r=>{n[r]!==void 0&&(t[r]=n[r])})}),t}function Q2(e){if(!e)return;const{closable:t,closeIcon:n}=e;return{closable:t,closeIcon:n}}function Y2(e){const{closable:t,closeIcon:n}=e||{};return re.useMemo(()=>{if(!t&&(t===!1||n===!1||n===null))return!1;if(t===void 0&&n===void 0)return null;let r={closeIcon:typeof n!="boolean"&&n!==null?n:void 0};return t&&typeof t=="object"&&(r=Object.assign(Object.assign({},r),t)),r},[t,n])}const MB={},PB=(e,t,n=MB)=>{const r=Y2(e),i=Y2(t),[a]=Wl("global",Do.global),l=typeof r!="boolean"?!!(r!=null&&r.disabled):!1,c=re.useMemo(()=>Object.assign({closeIcon:re.createElement(Qu,null)},n),[n]),u=re.useMemo(()=>r===!1?!1:r?qS(c,i,r):i===!1?!1:i?qS(c,i):c.closable?c:!1,[r,i,c]);return re.useMemo(()=>{var d,m;if(u===!1)return[!1,null,l,{}];const{closeIconRender:g}=c,{closeIcon:v}=u;let y=v;const b=La(u,!0);return y!=null&&(g&&(y=g(v)),y=re.isValidElement(y)?re.cloneElement(y,Object.assign(Object.assign(Object.assign({},y.props),{"aria-label":(m=(d=y.props)===null||d===void 0?void 0:d["aria-label"])!==null&&m!==void 0?m:a.close}),b)):re.createElement("span",Object.assign({"aria-label":a.close},b),y)),[!0,y,l,b]},[l,a.close,u,c])},AB=()=>re.useReducer(e=>e+1,0),LC=re.createContext(void 0),yl=100,zB=10,jB=yl*zB,JM={Modal:yl,Drawer:yl,Popover:yl,Popconfirm:yl,Tooltip:yl,Tour:yl,FloatButton:yl},DB={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function LB(e){return e in JM}const Lp=(e,t)=>{const[,n]=Zr(),r=re.useContext(LC),i=LB(e);let a;if(t!==void 0)a=[t,t];else{let l=r??0;i?l+=(r?0:n.zIndexPopupBase)+JM[e]:l+=DB[e],a=[r===void 0?t:l,l]}return a};function eP(e,t){this.v=e,this.k=t}function ti(e,t,n,r){var i=Object.defineProperty;try{i({},"",{})}catch{i=0}ti=function(l,c,u,d){function m(g,v){ti(l,g,function(y){return this._invoke(g,v,y)})}c?i?i(l,c,{value:u,enumerable:!d,configurable:!d,writable:!d}):l[c]=u:(m("next",0),m("throw",1),m("return",2))},ti(e,t,n,r)}function kC(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n=typeof Symbol=="function"?Symbol:{},r=n.iterator||"@@iterator",i=n.toStringTag||"@@toStringTag";function a(y,b,x,S){var w=b&&b.prototype instanceof c?b:c,$=Object.create(w.prototype);return ti($,"_invoke",(function(O,T,_){var R,M,P,N=0,I=_||[],B=!1,A={p:0,n:0,v:e,a:k,f:k.bind(e,4),d:function(V,z){return R=V,M=0,P=e,A.n=z,l}};function k(j,V){for(M=j,P=V,t=0;!B&&N&&!z&&t<I.length;t++){var z,F=I[t],q=A.p,Z=F[2];j>3?(z=Z===V)&&(P=F[(M=F[4])?5:(M=3,3)],F[4]=F[5]=e):F[0]<=q&&((z=j<2&&q<F[1])?(M=0,A.v=V,A.n=F[1]):q<Z&&(z=j<3||F[0]>V||V>Z)&&(F[4]=j,F[5]=V,A.n=Z,M=0))}if(z||j>1)return l;throw B=!0,V}return function(j,V,z){if(N>1)throw TypeError("Generator is already running");for(B&&V===1&&k(V,z),M=V,P=z;(t=M<2?e:P)||!B;){R||(M?M<3?(M>1&&(A.n=-1),k(M,P)):A.n=P:A.v=P);try{if(N=2,R){if(M||(j="next"),t=R[j]){if(!(t=t.call(R,P)))throw TypeError("iterator result is not an object");if(!t.done)return t;P=t.value,M<2&&(M=0)}else M===1&&(t=R.return)&&t.call(R),M<2&&(P=TypeError("The iterator does not provide a '"+j+"' method"),M=1);R=e}else if((t=(B=A.n<0)?P:O.call(T,A))!==l)break}catch(F){R=e,M=1,P=F}finally{N=1}}return{value:t,done:B}}})(y,x,S),!0),$}var l={};function c(){}function u(){}function d(){}t=Object.getPrototypeOf;var m=[][r]?t(t([][r]())):(ti(t={},r,function(){return this}),t),g=d.prototype=c.prototype=Object.create(m);function v(y){return Object.setPrototypeOf?Object.setPrototypeOf(y,d):(y.__proto__=d,ti(y,i,"GeneratorFunction")),y.prototype=Object.create(g),y}return u.prototype=d,ti(g,"constructor",d),ti(d,"constructor",u),u.displayName="GeneratorFunction",ti(d,i,"GeneratorFunction"),ti(g),ti(g,i,"Generator"),ti(g,r,function(){return this}),ti(g,"toString",function(){return"[object Generator]"}),(kC=function(){return{w:a,m:v}})()}function kg(e,t){function n(i,a,l,c){try{var u=e[i](a),d=u.value;return d instanceof eP?t.resolve(d.v).then(function(m){n("next",m,l,c)},function(m){n("throw",m,l,c)}):t.resolve(d).then(function(m){u.value=m,l(u)},function(m){return n("throw",m,l,c)})}catch(m){c(m)}}var r;this.next||(ti(kg.prototype),ti(kg.prototype,typeof Symbol=="function"&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),ti(this,"_invoke",function(i,a,l){function c(){return new t(function(u,d){n(i,l,u,d)})}return r=r?r.then(c,c):c()},!0)}function tP(e,t,n,r,i){return new kg(kC().w(e,t,n,r),i||Promise)}function kB(e,t,n,r,i){var a=tP(e,t,n,r,i);return a.next().then(function(l){return l.done?l.value:a.next()})}function BB(e){var t=Object(e),n=[];for(var r in t)n.unshift(r);return function i(){for(;n.length;)if((r=n.pop())in t)return i.value=r,i.done=!1,i;return i.done=!0,i}}function Z2(e){if(e!=null){var t=e[typeof Symbol=="function"&&Symbol.iterator||"@@iterator"],n=0;if(t)return t.call(e);if(typeof e.next=="function")return e;if(!isNaN(e.length))return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}throw new TypeError(pt(e)+" is not iterable")}function li(){var e=kC(),t=e.m(li),n=(Object.getPrototypeOf?Object.getPrototypeOf(t):t.__proto__).constructor;function r(l){var c=typeof l=="function"&&l.constructor;return!!c&&(c===n||(c.displayName||c.name)==="GeneratorFunction")}var i={throw:1,return:2,break:3,continue:3};function a(l){var c,u;return function(d){c||(c={stop:function(){return u(d.a,2)},catch:function(){return d.v},abrupt:function(g,v){return u(d.a,i[g],v)},delegateYield:function(g,v,y){return c.resultName=v,u(d.d,Z2(g),y)},finish:function(g){return u(d.f,g)}},u=function(g,v,y){d.p=c.prev,d.n=c.next;try{return g(v,y)}finally{c.next=d.n}}),c.resultName&&(c[c.resultName]=d.v,c.resultName=void 0),c.sent=d.v,c.next=d.n;try{return l.call(this,c)}finally{d.p=c.prev,d.n=c.next}}}return(li=function(){return{wrap:function(u,d,m,g){return e.w(a(u),d,m,g&&g.reverse())},isGeneratorFunction:r,mark:e.m,awrap:function(u,d){return new eP(u,d)},AsyncIterator:kg,async:function(u,d,m,g,v){return(r(d)?tP:kB)(a(u),d,m,g,v)},keys:BB,values:Z2}})()}function J2(e,t,n,r,i,a,l){try{var c=e[a](l),u=c.value}catch(d){return void n(d)}c.done?t(u):Promise.resolve(u).then(r,i)}function nc(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var a=e.apply(t,n);function l(u){J2(a,r,i,l,c,"next",u)}function c(u){J2(a,r,i,l,c,"throw",u)}l(void 0)})}}var yh=J({},Tk),HB=yh.version,L0=yh.render,FB=yh.unmountComponentAtNode,kp;try{var VB=Number((HB||"").split(".")[0]);VB>=18&&(kp=yh.createRoot)}catch{}function eR(e){var t=yh.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&pt(t)==="object"&&(t.usingClientEntryPoint=e)}var Bg="__rc_react_root__";function UB(e,t){eR(!0);var n=t[Bg]||kp(t);eR(!1),n.render(e),t[Bg]=n}function qB(e,t){L0==null||L0(e,t)}function KB(e,t){if(kp){UB(e,t);return}qB(e,t)}function WB(e){return KS.apply(this,arguments)}function KS(){return KS=nc(li().mark(function e(t){return li().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.resolve().then(function(){var i;(i=t[Bg])===null||i===void 0||i.unmount(),delete t[Bg]}));case 1:case"end":return r.stop()}},e)})),KS.apply(this,arguments)}function GB(e){FB(e)}function XB(e){return WS.apply(this,arguments)}function WS(){return WS=nc(li().mark(function e(t){return li().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(kp===void 0){r.next=2;break}return r.abrupt("return",WB(t));case 2:GB(t);case 3:case"end":return r.stop()}},e)})),WS.apply(this,arguments)}const QB=(e,t)=>(KB(e,t),()=>XB(t));let tR=QB;function BC(e){return e&&(tR=e),tR}const k0=()=>({height:0,opacity:0}),nR=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},YB=e=>({height:e?e.offsetHeight:0}),B0=(e,t)=>(t==null?void 0:t.deadline)===!0||t.propertyName==="height",Hg=(e=zf)=>({motionName:`${e}-motion-collapse`,onAppearStart:k0,onEnterStart:k0,onAppearActive:nR,onEnterActive:nR,onLeaveStart:YB,onLeaveActive:k0,onAppearEnd:B0,onEnterEnd:B0,onLeaveEnd:B0,motionDeadline:500}),Bp=(e,t,n)=>n!==void 0?n:`${e}-${t}`;function tr(e,t){var n=Object.assign({},e);return Array.isArray(t)&&t.forEach(function(r){delete n[r]}),n}const Hp=(function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),n=t.width,r=t.height;if(n||r)return!0}if(e.getBoundingClientRect){var i=e.getBoundingClientRect(),a=i.width,l=i.height;if(a||l)return!0}}return!1}),ZB=e=>{const{componentCls:t,colorPrimary:n}=e;return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${n})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s ${e.motionEaseOutCirc}`,`opacity 2s ${e.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:[`box-shadow ${e.motionDurationSlow} ${e.motionEaseInOut}`,`opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`].join(",")}}}}},JB=t5("Wave",ZB),HC=`${zf}-wave-target`;function e8(e){return e&&e!=="#fff"&&e!=="#ffffff"&&e!=="rgb(255, 255, 255)"&&e!=="rgba(255, 255, 255, 1)"&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&e!=="transparent"&&e!=="canvastext"}function t8(e){var t;const{borderTopColor:n,borderColor:r,backgroundColor:i}=getComputedStyle(e);return(t=[n,r,i].find(e8))!==null&&t!==void 0?t:null}function H0(e){return Number.isNaN(e)?0:e}const n8=e=>{const{className:t,target:n,component:r,registerUnmount:i}=e,a=h.useRef(null),l=h.useRef(null);h.useEffect(()=>{l.current=i()},[]);const[c,u]=h.useState(null),[d,m]=h.useState([]),[g,v]=h.useState(0),[y,b]=h.useState(0),[x,S]=h.useState(0),[w,$]=h.useState(0),[O,T]=h.useState(!1),_={left:g,top:y,width:x,height:w,borderRadius:d.map(P=>`${P}px`).join(" ")};c&&(_["--wave-color"]=c);function R(){const P=getComputedStyle(n);u(t8(n));const N=P.position==="static",{borderLeftWidth:I,borderTopWidth:B}=P;v(N?n.offsetLeft:H0(-Number.parseFloat(I))),b(N?n.offsetTop:H0(-Number.parseFloat(B))),S(n.offsetWidth),$(n.offsetHeight);const{borderTopLeftRadius:A,borderTopRightRadius:k,borderBottomLeftRadius:j,borderBottomRightRadius:V}=P;m([A,k,V,j].map(z=>H0(Number.parseFloat(z))))}if(h.useEffect(()=>{if(n){const P=Tn(()=>{R(),T(!0)});let N;return typeof ResizeObserver<"u"&&(N=new ResizeObserver(R),N.observe(n)),()=>{Tn.cancel(P),N==null||N.disconnect()}}},[n]),!O)return null;const M=(r==="Checkbox"||r==="Radio")&&(n==null?void 0:n.classList.contains(HC));return h.createElement(ao,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(P,N)=>{var I,B;if(N.deadline||N.propertyName==="opacity"){const A=(I=a.current)===null||I===void 0?void 0:I.parentElement;(B=l.current)===null||B===void 0||B.call(l).then(()=>{A==null||A.remove()})}return!1}},({className:P},N)=>h.createElement("div",{ref:gi(a,N),className:te(t,P,{"wave-quick":M}),style:_}))},r8=(e,t)=>{var n;const{component:r}=t;if(r==="Checkbox"&&!(!((n=e.querySelector("input"))===null||n===void 0)&&n.checked))return;const i=document.createElement("div");i.style.position="absolute",i.style.left="0px",i.style.top="0px",e==null||e.insertBefore(i,e==null?void 0:e.firstChild);const a=BC();let l=null;function c(){return l}l=a(h.createElement(n8,Object.assign({},t,{target:e,registerUnmount:c})),i)},i8=(e,t,n)=>{const{wave:r}=h.useContext(Tt),[,i,a]=Zr(),l=cr(d=>{const m=e.current;if(r!=null&&r.disabled||!m)return;const g=m.querySelector(`.${HC}`)||m,{showEffect:v}=r||{};(v||r8)(g,{className:t,token:i,component:n,event:d,hashId:a})}),c=h.useRef(null);return d=>{Tn.cancel(c.current),c.current=Tn(()=>{l(d)})}},FC=e=>{const{children:t,disabled:n,component:r}=e,{getPrefixCls:i}=h.useContext(Tt),a=h.useRef(null),l=i("wave"),[,c]=JB(l),u=i8(a,te(l,c),r);if(re.useEffect(()=>{const m=a.current;if(!m||m.nodeType!==window.Node.ELEMENT_NODE||n)return;const g=v=>{!Hp(v.target)||!m.getAttribute||m.getAttribute("disabled")||m.disabled||m.className.includes("disabled")&&!m.className.includes("disabled:")||m.getAttribute("aria-disabled")==="true"||m.className.includes("-leave")||u(v)};return m.addEventListener("click",g,!0),()=>{m.removeEventListener("click",g,!0)}},[n]),!re.isValidElement(t))return t??null;const d=Ho(t)?gi(Kl(t),a):a;return oi(t,{ref:d})},Sa=e=>{const t=re.useContext(ks);return re.useMemo(()=>e?typeof e=="string"?e??t:typeof e=="function"?e(t):t:t,[e,t])},a8=e=>{const{componentCls:t}=e;return{[t]:{display:"inline-flex","&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"}}}},o8=Nn(["Space","Compact"],e=>[a8(e)],()=>({}),{resetStyle:!1});var nP=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const Fp=h.createContext(null),rc=(e,t)=>{const n=h.useContext(Fp),r=h.useMemo(()=>{if(!n)return"";const{compactDirection:i,isFirstItem:a,isLastItem:l}=n,c=i==="vertical"?"-vertical-":"-";return te(`${e}-compact${c}item`,{[`${e}-compact${c}first-item`]:a,[`${e}-compact${c}last-item`]:l,[`${e}-compact${c}item-rtl`]:t==="rtl"})},[e,t,n]);return{compactSize:n==null?void 0:n.compactSize,compactDirection:n==null?void 0:n.compactDirection,compactItemClassnames:r}},l8=e=>{const{children:t}=e;return h.createElement(Fp.Provider,{value:null},t)},s8=e=>{const{children:t}=e,n=nP(e,["children"]);return h.createElement(Fp.Provider,{value:h.useMemo(()=>n,[n])},t)},c8=e=>{const{getPrefixCls:t,direction:n}=h.useContext(Tt),{size:r,direction:i,block:a,prefixCls:l,className:c,rootClassName:u,children:d}=e,m=nP(e,["size","direction","block","prefixCls","className","rootClassName","children"]),g=Sa(O=>r??O),v=t("space-compact",l),[y,b]=o8(v),x=te(v,b,{[`${v}-rtl`]:n==="rtl",[`${v}-block`]:a,[`${v}-vertical`]:i==="vertical"},c,u),S=h.useContext(Fp),w=hi(d),$=h.useMemo(()=>w.map((O,T)=>{const _=(O==null?void 0:O.key)||`${v}-item-${T}`;return h.createElement(s8,{key:_,compactSize:g,compactDirection:i,isFirstItem:T===0&&(!S||(S==null?void 0:S.isFirstItem)),isLastItem:T===w.length-1&&(!S||(S==null?void 0:S.isLastItem))},O)}),[w,S,i,g,v]);return w.length===0?null:y(h.createElement("div",Object.assign({className:x},m),$))};var u8=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const rP=h.createContext(void 0),d8=e=>{const{getPrefixCls:t,direction:n}=h.useContext(Tt),{prefixCls:r,size:i,className:a}=e,l=u8(e,["prefixCls","size","className"]),c=t("btn-group",r),[,,u]=Zr(),d=h.useMemo(()=>{switch(i){case"large":return"lg";case"small":return"sm";default:return""}},[i]),m=te(c,{[`${c}-${d}`]:d,[`${c}-rtl`]:n==="rtl"},a,u);return h.createElement(rP.Provider,{value:i},h.createElement("div",Object.assign({},l,{className:m})))},rR=/^[\u4E00-\u9FA5]{2}$/,GS=rR.test.bind(rR);function iP(e){return e==="danger"?{danger:!0}:{type:e}}function iR(e){return typeof e=="string"}function F0(e){return e==="text"||e==="link"}function f8(e,t){if(e==null)return;const n=t?" ":"";return typeof e!="string"&&typeof e!="number"&&iR(e.type)&&GS(e.props.children)?oi(e,{children:e.props.children.split("").join(n)}):iR(e)?GS(e)?re.createElement("span",null,e.split("").join(n)):re.createElement("span",null,e):GM(e)?re.createElement("span",null,e):e}function h8(e,t){let n=!1;const r=[];return re.Children.forEach(e,i=>{const a=typeof i,l=a==="string"||a==="number";if(n&&l){const c=r.length-1,u=r[c];r[c]=`${u}${i}`}else r.push(i);n=l}),re.Children.map(r,i=>f8(i,t))}["default","primary","danger"].concat(qe(Bl));const aP=h.forwardRef((e,t)=>{const{className:n,style:r,children:i,prefixCls:a}=e,l=te(`${a}-icon`,n);return re.createElement("span",{ref:t,className:l,style:r},i)}),aR=h.forwardRef((e,t)=>{const{prefixCls:n,className:r,style:i,iconClassName:a}=e,l=te(`${n}-loading-icon`,r);return re.createElement(aP,{prefixCls:n,className:l,style:i,ref:t},re.createElement(vh,{className:a}))}),V0=()=>({width:0,opacity:0,transform:"scale(0)"}),U0=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),m8=e=>{const{prefixCls:t,loading:n,existIcon:r,className:i,style:a,mount:l}=e,c=!!n;return r?re.createElement(aR,{prefixCls:t,className:i,style:a}):re.createElement(ao,{visible:c,motionName:`${t}-loading-icon-motion`,motionAppear:!l,motionEnter:!l,motionLeave:!l,removeOnLeave:!0,onAppearStart:V0,onAppearActive:U0,onEnterStart:V0,onEnterActive:U0,onLeaveStart:U0,onLeaveActive:V0},({className:u,style:d},m)=>{const g=Object.assign(Object.assign({},a),d);return re.createElement(aR,{prefixCls:t,className:te(i,u),style:g,ref:m})})},oR=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),g8=e=>{const{componentCls:t,fontSize:n,lineWidth:r,groupBorderColor:i,colorErrorHover:a}=e;return{[`${t}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:e.calc(r).mul(-1).equal(),[`&, & > ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:"relative",zIndex:1,"&:hover, &:focus, &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:n}},oR(`${t}-primary`,i),oR(`${t}-danger`,a)]}};var p8=["b"],v8=["v"],q0=function(t){return Math.round(Number(t||0))},y8=function(t){if(t instanceof _n)return t;if(t&&pt(t)==="object"&&"h"in t&&"b"in t){var n=t,r=n.b,i=jt(n,p8);return J(J({},i),{},{v:r})}return typeof t=="string"&&/hsb/.test(t)?t.replace(/hsb/,"hsv"):t},jf=(function(e){Ba(n,e);var t=io(n);function n(r){return yr(this,n),t.call(this,y8(r))}return br(n,[{key:"toHsbString",value:function(){var i=this.toHsb(),a=q0(i.s*100),l=q0(i.b*100),c=q0(i.h),u=i.a,d="hsb(".concat(c,", ").concat(a,"%, ").concat(l,"%)"),m="hsba(".concat(c,", ").concat(a,"%, ").concat(l,"%, ").concat(u.toFixed(u===0?0:2),")");return u===1?d:m}},{key:"toHsb",value:function(){var i=this.toHsv(),a=i.v,l=jt(i,v8);return J(J({},l),{},{b:a,a:this.a})}}]),n})(_n),b8=function(t){return t instanceof jf?t:new jf(t)};b8("#1677ff");const S8=(e,t)=>(e==null?void 0:e.replace(/[^\w/]/g,"").slice(0,t?8:6))||"",x8=(e,t)=>e?S8(e,t):"";let XS=(function(){function e(t){yr(this,e);var n;if(this.cleared=!1,t instanceof e){this.metaColor=t.metaColor.clone(),this.colors=(n=t.colors)===null||n===void 0?void 0:n.map(i=>({color:new e(i.color),percent:i.percent})),this.cleared=t.cleared;return}const r=Array.isArray(t);r&&t.length?(this.colors=t.map(({color:i,percent:a})=>({color:new e(i),percent:a})),this.metaColor=new jf(this.colors[0].color.metaColor)):this.metaColor=new jf(r?"":t),(!t||r&&!this.colors)&&(this.metaColor=this.metaColor.setA(0),this.cleared=!0)}return br(e,[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return x8(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:n}=this;return n?`linear-gradient(90deg, ${n.map(i=>`${i.color.toRgbString()} ${i.percent}%`).join(", ")})`:this.metaColor.toRgbString()}},{key:"equals",value:function(n){return!n||this.isGradient()!==n.isGradient()?!1:this.isGradient()?this.colors.length===n.colors.length&&this.colors.every((r,i)=>{const a=n.colors[i];return r.percent===a.percent&&r.color.equals(a.color)}):this.toHexString()===n.toHexString()}}])})();var C8={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"},w8=function(t,n){return h.createElement(mn,Ue({},t,{ref:n,icon:C8}))},Df=h.forwardRef(w8);const VC=e=>({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},
|
|
157
|
-
opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}},[`${e.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},
|
|
158
|
-
opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}}}),E8=e=>({animationDuration:e,animationFillMode:"both"}),$8=e=>({animationDuration:e,animationFillMode:"both"}),UC=(e,t,n,r,i=!1)=>{const a=i?"&":"";return{[`
|
|
159
|
-
${a}${e}-enter,
|
|
160
|
-
${a}${e}-appear
|
|
161
|
-
`]:Object.assign(Object.assign({},E8(r)),{animationPlayState:"paused"}),[`${a}${e}-leave`]:Object.assign(Object.assign({},$8(r)),{animationPlayState:"paused"}),[`
|
|
162
|
-
${a}${e}-enter${e}-enter-active,
|
|
163
|
-
${a}${e}-appear${e}-appear-active
|
|
164
|
-
`]:{animationName:t,animationPlayState:"running"},[`${a}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},O8=new ln("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),R8=new ln("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),T8=new ln("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),_8=new ln("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),N8=new ln("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),I8=new ln("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),M8=new ln("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),P8=new ln("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),A8={"move-up":{inKeyframes:M8,outKeyframes:P8},"move-down":{inKeyframes:O8,outKeyframes:R8},"move-left":{inKeyframes:T8,outKeyframes:_8},"move-right":{inKeyframes:N8,outKeyframes:I8}},Fg=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:i,outKeyframes:a}=A8[t];return[UC(r,i,a,e.motionDurationMid),{[`
|
|
165
|
-
${r}-enter,
|
|
166
|
-
${r}-appear
|
|
167
|
-
`]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},qC=new ln("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),KC=new ln("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),WC=new ln("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),GC=new ln("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),z8=new ln("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),j8=new ln("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),D8=new ln("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),L8=new ln("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),k8={"slide-up":{inKeyframes:qC,outKeyframes:KC},"slide-down":{inKeyframes:WC,outKeyframes:GC},"slide-left":{inKeyframes:z8,outKeyframes:j8},"slide-right":{inKeyframes:D8,outKeyframes:L8}},Fl=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:i,outKeyframes:a}=k8[t];return[UC(r,i,a,e.motionDurationMid),{[`
|
|
168
|
-
${r}-enter,
|
|
169
|
-
${r}-appear
|
|
170
|
-
`]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},XC=new ln("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),B8=new ln("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),lR=new ln("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),sR=new ln("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),H8=new ln("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),F8=new ln("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),V8=new ln("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),U8=new ln("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),q8=new ln("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),K8=new ln("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),W8=new ln("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),G8=new ln("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),X8={zoom:{inKeyframes:XC,outKeyframes:B8},"zoom-big":{inKeyframes:lR,outKeyframes:sR},"zoom-big-fast":{inKeyframes:lR,outKeyframes:sR},"zoom-left":{inKeyframes:V8,outKeyframes:U8},"zoom-right":{inKeyframes:q8,outKeyframes:K8},"zoom-up":{inKeyframes:H8,outKeyframes:F8},"zoom-down":{inKeyframes:W8,outKeyframes:G8}},Vp=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:i,outKeyframes:a}=X8[t];return[UC(r,i,a,t==="zoom-big-fast"?e.motionDurationFast:e.motionDurationMid),{[`
|
|
171
|
-
${r}-enter,
|
|
172
|
-
${r}-appear
|
|
173
|
-
`]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},Q8=e=>e instanceof XS?e:new XS(e),Y8=(e,t)=>{const{r:n,g:r,b:i,a}=e.toRgb(),l=new jf(e.toRgbString()).onBackground(t).toHsv();return a<=.5?l.v>.5:n*.299+r*.587+i*.114>192},oP=e=>{const{paddingInline:t,onlyIconSize:n}=e;return sn(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:0,buttonIconOnlyFontSize:n})},lP=e=>{var t,n,r,i,a,l;const c=(t=e.contentFontSize)!==null&&t!==void 0?t:e.fontSize,u=(n=e.contentFontSizeSM)!==null&&n!==void 0?n:e.fontSize,d=(r=e.contentFontSizeLG)!==null&&r!==void 0?r:e.fontSizeLG,m=(i=e.contentLineHeight)!==null&&i!==void 0?i:yg(c),g=(a=e.contentLineHeightSM)!==null&&a!==void 0?a:yg(u),v=(l=e.contentLineHeightLG)!==null&&l!==void 0?l:yg(d),y=Y8(new XS(e.colorBgSolid),"#fff")?"#000":"#fff",b=Bl.reduce((x,S)=>Object.assign(Object.assign({},x),{[`${S}ShadowColor`]:`0 ${ae(e.controlOutlineWidth)} 0 ${sf(e[`${S}1`],e.colorBgContainer)}`}),{});return Object.assign(Object.assign({},b),{fontWeight:400,iconGap:e.marginXS,defaultShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`,primaryShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`,dangerShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`,primaryColor:e.colorTextLightSolid,dangerColor:e.colorTextLightSolid,borderColorDisabled:e.colorBorder,defaultGhostColor:e.colorBgContainer,ghostBg:"transparent",defaultGhostBorderColor:e.colorBgContainer,paddingInline:e.paddingContentHorizontal-e.lineWidth,paddingInlineLG:e.paddingContentHorizontal-e.lineWidth,paddingInlineSM:8-e.lineWidth,onlyIconSize:"inherit",onlyIconSizeSM:"inherit",onlyIconSizeLG:"inherit",groupBorderColor:e.colorPrimaryHover,linkHoverBg:"transparent",textTextColor:e.colorText,textTextHoverColor:e.colorText,textTextActiveColor:e.colorText,textHoverBg:e.colorFillTertiary,defaultColor:e.colorText,defaultBg:e.colorBgContainer,defaultBorderColor:e.colorBorder,defaultBorderColorDisabled:e.colorBorder,defaultHoverBg:e.colorBgContainer,defaultHoverColor:e.colorPrimaryHover,defaultHoverBorderColor:e.colorPrimaryHover,defaultActiveBg:e.colorBgContainer,defaultActiveColor:e.colorPrimaryActive,defaultActiveBorderColor:e.colorPrimaryActive,solidTextColor:y,contentFontSize:c,contentFontSizeSM:u,contentFontSizeLG:d,contentLineHeight:m,contentLineHeightSM:g,contentLineHeightLG:v,paddingBlock:Math.max((e.controlHeight-c*m)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-u*g)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-d*v)/2-e.lineWidth,0)})},Z8=e=>{const{componentCls:t,iconCls:n,fontWeight:r,opacityLoading:i,motionDurationSlow:a,motionEaseInOut:l,iconGap:c,calc:u}=e;return{[t]:{outline:"none",position:"relative",display:"inline-flex",gap:c,alignItems:"center",justifyContent:"center",fontWeight:r,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:`${ae(e.lineWidth)} ${e.lineType} transparent`,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",color:e.colorText,"&:disabled > *":{pointerEvents:"none"},[`${t}-icon > svg`]:gh(),"> a":{color:"currentColor"},"&:not(:disabled)":Lo(e),[`&${t}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${t}-two-chinese-chars > *:not(${n})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},[`&${t}-icon-only`]:{paddingInline:0,[`&${t}-compact-item`]:{flex:"none"}},[`&${t}-loading`]:{opacity:i,cursor:"default"},[`${t}-loading-icon`]:{transition:["width","opacity","margin"].map(d=>`${d} ${a} ${l}`).join(",")},[`&:not(${t}-icon-end)`]:{[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineEnd:u(c).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineEnd:0},"&-leave-start":{marginInlineEnd:0},"&-leave-active":{marginInlineEnd:u(c).mul(-1).equal()}}},"&-icon-end":{flexDirection:"row-reverse",[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineStart:u(c).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineStart:0},"&-leave-start":{marginInlineStart:0},"&-leave-active":{marginInlineStart:u(c).mul(-1).equal()}}}}}},sP=(e,t,n)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":n}}),J8=e=>({minWidth:e.controlHeight,paddingInline:0,borderRadius:"50%"}),eH=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),Up=(e,t,n,r,i,a,l,c)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:n||void 0,background:t,borderColor:r||void 0,boxShadow:"none"},sP(e,Object.assign({background:t},l),Object.assign({background:t},c))),{"&:disabled":{cursor:"not-allowed",color:i||void 0,borderColor:a||void 0}})}),tH=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},eH(e))}),nH=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),qp=(e,t,n,r)=>{const a=r&&["link","text"].includes(r)?nH:tH;return Object.assign(Object.assign({},a(e)),sP(e.componentCls,t,n))},Kp=(e,t,n,r,i)=>({[`&${e.componentCls}-variant-solid`]:Object.assign({color:t,background:n},qp(e,r,i))}),Wp=(e,t,n,r,i)=>({[`&${e.componentCls}-variant-outlined, &${e.componentCls}-variant-dashed`]:Object.assign({borderColor:t,background:n},qp(e,r,i))}),Gp=e=>({[`&${e.componentCls}-variant-dashed`]:{borderStyle:"dashed"}}),Xp=(e,t,n,r)=>({[`&${e.componentCls}-variant-filled`]:Object.assign({boxShadow:"none",background:t},qp(e,n,r))}),to=(e,t,n,r,i)=>({[`&${e.componentCls}-variant-${n}`]:Object.assign({color:t,boxShadow:"none"},qp(e,r,i,n))}),rH=e=>{const{componentCls:t}=e;return Bl.reduce((n,r)=>{const i=e[`${r}6`],a=e[`${r}1`],l=e[`${r}5`],c=e[`${r}2`],u=e[`${r}3`],d=e[`${r}7`];return Object.assign(Object.assign({},n),{[`&${t}-color-${r}`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:i,boxShadow:e[`${r}ShadowColor`]},Kp(e,e.colorTextLightSolid,i,{background:l},{background:d})),Wp(e,i,e.colorBgContainer,{color:l,borderColor:l,background:e.colorBgContainer},{color:d,borderColor:d,background:e.colorBgContainer})),Gp(e)),Xp(e,a,{color:i,background:c},{color:i,background:u})),to(e,i,"link",{color:l},{color:d})),to(e,i,"text",{color:l,background:a},{color:d,background:u}))})},{})},iH=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.defaultColor,boxShadow:e.defaultShadow},Kp(e,e.solidTextColor,e.colorBgSolid,{color:e.solidTextColor,background:e.colorBgSolidHover},{color:e.solidTextColor,background:e.colorBgSolidActive})),Gp(e)),Xp(e,e.colorFillTertiary,{color:e.defaultColor,background:e.colorFillSecondary},{color:e.defaultColor,background:e.colorFill})),Up(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)),to(e,e.textTextColor,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),aH=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorPrimary,boxShadow:e.primaryShadow},Wp(e,e.colorPrimary,e.colorBgContainer,{color:e.colorPrimaryTextHover,borderColor:e.colorPrimaryHover,background:e.colorBgContainer},{color:e.colorPrimaryTextActive,borderColor:e.colorPrimaryActive,background:e.colorBgContainer})),Gp(e)),Xp(e,e.colorPrimaryBg,{color:e.colorPrimary,background:e.colorPrimaryBgHover},{color:e.colorPrimary,background:e.colorPrimaryBorder})),to(e,e.colorPrimaryText,"text",{color:e.colorPrimaryTextHover,background:e.colorPrimaryBg},{color:e.colorPrimaryTextActive,background:e.colorPrimaryBorder})),to(e,e.colorPrimaryText,"link",{color:e.colorPrimaryTextHover,background:e.linkHoverBg},{color:e.colorPrimaryTextActive})),Up(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),oH=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorError,boxShadow:e.dangerShadow},Kp(e,e.dangerColor,e.colorError,{background:e.colorErrorHover},{background:e.colorErrorActive})),Wp(e,e.colorError,e.colorBgContainer,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),Gp(e)),Xp(e,e.colorErrorBg,{color:e.colorError,background:e.colorErrorBgFilledHover},{color:e.colorError,background:e.colorErrorBgActive})),to(e,e.colorError,"text",{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBgActive})),to(e,e.colorError,"link",{color:e.colorErrorHover},{color:e.colorErrorActive})),Up(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),lH=e=>Object.assign(Object.assign({},to(e,e.colorLink,"link",{color:e.colorLinkHover},{color:e.colorLinkActive})),Up(e.componentCls,e.ghostBg,e.colorInfo,e.colorInfo,e.colorTextDisabled,e.colorBorder,{color:e.colorInfoHover,borderColor:e.colorInfoHover},{color:e.colorInfoActive,borderColor:e.colorInfoActive})),sH=e=>{const{componentCls:t}=e;return Object.assign({[`${t}-color-default`]:iH(e),[`${t}-color-primary`]:aH(e),[`${t}-color-dangerous`]:oH(e),[`${t}-color-link`]:lH(e)},rH(e))},cH=e=>Object.assign(Object.assign(Object.assign(Object.assign({},Wp(e,e.defaultBorderColor,e.defaultBg,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg})),to(e,e.textTextColor,"text",{color:e.textTextHoverColor,background:e.textHoverBg},{color:e.textTextActiveColor,background:e.colorBgTextActive})),Kp(e,e.primaryColor,e.colorPrimary,{background:e.colorPrimaryHover,color:e.primaryColor},{background:e.colorPrimaryActive,color:e.primaryColor})),to(e,e.colorLink,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),QC=(e,t="")=>{const{componentCls:n,controlHeight:r,fontSize:i,borderRadius:a,buttonPaddingHorizontal:l,iconCls:c,buttonPaddingVertical:u,buttonIconOnlyFontSize:d}=e;return[{[t]:{fontSize:i,height:r,padding:`${ae(u)} ${ae(l)}`,borderRadius:a,[`&${n}-icon-only`]:{width:r,[c]:{fontSize:d}}}},{[`${n}${n}-circle${t}`]:J8(e)},{[`${n}${n}-round${t}`]:{borderRadius:e.controlHeight,[`&:not(${n}-icon-only)`]:{paddingInline:e.buttonPaddingHorizontal}}}]},uH=e=>{const t=sn(e,{fontSize:e.contentFontSize});return QC(t,e.componentCls)},dH=e=>{const t=sn(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:0,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return QC(t,`${e.componentCls}-sm`)},fH=e=>{const t=sn(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:0,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return QC(t,`${e.componentCls}-lg`)},hH=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},mH=Nn("Button",e=>{const t=oP(e);return[Z8(t),uH(t),dH(t),fH(t),hH(t),sH(t),cH(t),g8(t)]},lP,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function gH(e,t,n,r){const{focusElCls:i,focus:a,borderElCls:l}=n,c=l?"> *":"",u=["hover",a?"focus":null,"active"].filter(Boolean).map(d=>`&:${d} ${c}`).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},[`&-item:not(${r}-status-success)`]:{zIndex:2},"&-item":Object.assign(Object.assign({[u]:{zIndex:3}},i?{[`&${i}`]:{zIndex:3}}:{}),{[`&[disabled] ${c}`]:{zIndex:0}})}}function pH(e,t,n){const{borderElCls:r}=n,i=r?`> ${r}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${i}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${i}, &${e}-sm ${i}, &${e}-lg ${i}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${i}, &${e}-sm ${i}, &${e}-lg ${i}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function Qp(e,t={focus:!0}){const{componentCls:n}=e,{componentCls:r}=t,i=r||n,a=`${i}-compact`;return{[a]:Object.assign(Object.assign({},gH(e,a,t,i)),pH(i,a,t))}}function vH(e,t,n){return{[`&-item:not(${t}-last-item)`]:{marginBottom:e.calc(e.lineWidth).mul(-1).equal()},[`&-item:not(${n}-status-success)`]:{zIndex:2},"&-item":{"&:hover,&:focus,&:active":{zIndex:3},"&[disabled]":{zIndex:0}}}}function yH(e,t){return{[`&-item:not(${t}-first-item):not(${t}-last-item)`]:{borderRadius:0},[`&-item${t}-first-item:not(${t}-last-item)`]:{[`&, &${e}-sm, &${e}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${t}-last-item:not(${t}-first-item)`]:{[`&, &${e}-sm, &${e}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}}function bH(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},vH(e,t,e.componentCls)),yH(e.componentCls,t))}}const SH=e=>{const{componentCls:t,colorPrimaryHover:n,lineWidth:r,calc:i}=e,a=i(r).mul(-1).equal(),l=c=>{const u=`${t}-compact${c?"-vertical":""}-item${t}-primary:not([disabled])`;return{[`${u} + ${u}::before`]:{position:"absolute",top:c?a:0,insetInlineStart:c?0:a,backgroundColor:n,content:'""',width:c?"100%":r,height:c?r:"100%"}}};return Object.assign(Object.assign({},l()),l(!0))},xH=Wu(["Button","compact"],e=>{const t=oP(e);return[Qp(t),bH(t),SH(t)]},lP);var CH=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function wH(e){if(typeof e=="object"&&e){let t=e==null?void 0:e.delay;return t=!Number.isNaN(t)&&typeof t=="number"?t:0,{loading:t<=0,delay:t}}return{loading:!!e,delay:0}}const EH={default:["default","outlined"],primary:["primary","solid"],dashed:["default","dashed"],link:["link","link"],text:["default","text"]},$H=re.forwardRef((e,t)=>{var n,r;const{loading:i=!1,prefixCls:a,color:l,variant:c,type:u,danger:d=!1,shape:m,size:g,styles:v,disabled:y,className:b,rootClassName:x,children:S,icon:w,iconPosition:$="start",ghost:O=!1,block:T=!1,htmlType:_="button",classNames:R,style:M={},autoInsertSpace:P,autoFocus:N}=e,I=CH(e,["loading","prefixCls","color","variant","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","iconPosition","ghost","block","htmlType","classNames","style","autoInsertSpace","autoFocus"]),B=u||"default",{button:A}=re.useContext(Tt),k=m||(A==null?void 0:A.shape)||"default",[j,V]=h.useMemo(()=>{if(l&&c)return[l,c];if(u||d){const wt=EH[B]||[];return d?["danger",wt[1]]:wt}return A!=null&&A.color&&(A!=null&&A.variant)?[A.color,A.variant]:["default","outlined"]},[l,c,u,d,A==null?void 0:A.color,A==null?void 0:A.variant,B]),F=j==="danger"?"dangerous":j,{getPrefixCls:q,direction:Z,autoInsertSpace:H,className:U,style:K,classNames:D,styles:X}=Yr("button"),Q=(n=P??H)!==null&&n!==void 0?n:!0,Y=q("btn",a),[ie,oe,le]=mH(Y),Ce=h.useContext(Da),ce=y??Ce,de=h.useContext(rP),ye=h.useMemo(()=>wH(i),[i]),[ve,ge]=h.useState(ye.loading),[fe,we]=h.useState(!1),Te=h.useRef(null),je=ql(t,Te),ze=h.Children.count(S)===1&&!w&&!F0(V),Oe=h.useRef(!0);re.useEffect(()=>(Oe.current=!1,()=>{Oe.current=!0}),[]),on(()=>{let wt=null;ye.delay>0?wt=setTimeout(()=>{wt=null,ge(!0)},ye.delay):ge(ye.loading);function nn(){wt&&(clearTimeout(wt),wt=null)}return nn},[ye.delay,ye.loading]),h.useEffect(()=>{if(!Te.current||!Q)return;const wt=Te.current.textContent||"";ze&&GS(wt)?fe||we(!0):fe&&we(!1)}),h.useEffect(()=>{N&&Te.current&&Te.current.focus()},[]);const De=re.useCallback(wt=>{var nn;if(ve||ce){wt.preventDefault();return}(nn=e.onClick)===null||nn===void 0||nn.call(e,("href"in e,wt))},[e.onClick,ve,ce]),{compactSize:Ne,compactItemClassnames:be}=rc(Y,Z),Ye={large:"lg",small:"sm",middle:void 0},he=Sa(wt=>{var nn,cn;return(cn=(nn=g??Ne)!==null&&nn!==void 0?nn:de)!==null&&cn!==void 0?cn:wt}),$e=he&&(r=Ye[he])!==null&&r!==void 0?r:"",Me=ve?"loading":w,Ae=tr(I,["navigate"]),Xe=te(Y,oe,le,{[`${Y}-${k}`]:k!=="default"&&k,[`${Y}-${B}`]:B,[`${Y}-dangerous`]:d,[`${Y}-color-${F}`]:F,[`${Y}-variant-${V}`]:V,[`${Y}-${$e}`]:$e,[`${Y}-icon-only`]:!S&&S!==0&&!!Me,[`${Y}-background-ghost`]:O&&!F0(V),[`${Y}-loading`]:ve,[`${Y}-two-chinese-chars`]:fe&&Q&&!ve,[`${Y}-block`]:T,[`${Y}-rtl`]:Z==="rtl",[`${Y}-icon-end`]:$==="end"},be,b,x,U),Fe=Object.assign(Object.assign({},K),M),Ie=te(R==null?void 0:R.icon,D.icon),Ge=Object.assign(Object.assign({},(v==null?void 0:v.icon)||{}),X.icon||{}),Le=wt=>re.createElement(aP,{prefixCls:Y,className:Ie,style:Ge},wt),Ze=()=>re.createElement(m8,{existIcon:!!w,prefixCls:Y,loading:ve,mount:Oe.current});let _e;w&&!ve?_e=Le(w):i&&typeof i=="object"&&i.icon?_e=Le(i.icon):_e=Ze();const tt=S||S===0?h8(S,ze&&Q):null;if(Ae.href!==void 0)return ie(re.createElement("a",Object.assign({},Ae,{className:te(Xe,{[`${Y}-disabled`]:ce}),href:ce?void 0:Ae.href,style:Fe,onClick:De,ref:je,tabIndex:ce?-1:0,"aria-disabled":ce}),_e,tt));let $t=re.createElement("button",Object.assign({},I,{type:_,className:Xe,style:Fe,onClick:De,disabled:ce,ref:je}),_e,tt,be&&re.createElement(xH,{prefixCls:Y}));return F0(V)||($t=re.createElement(FC,{component:"Button",disabled:ve},$t)),ie($t)}),Er=$H;Er.Group=d8;Er.__ANT_BUTTON=!0;const K0=e=>typeof(e==null?void 0:e.then)=="function",OH=e=>{const{type:t,children:n,prefixCls:r,buttonProps:i,close:a,autoFocus:l,emitEvent:c,isSilent:u,quitOnNullishReturnValue:d,actionFn:m}=e,g=h.useRef(!1),v=h.useRef(null),[y,b]=Bs(!1),x=(...$)=>{a==null||a.apply(void 0,$)};h.useEffect(()=>{let $=null;return l&&($=setTimeout(()=>{var O;(O=v.current)===null||O===void 0||O.focus({preventScroll:!0})})),()=>{$&&clearTimeout($)}},[l]);const S=$=>{K0($)&&(b(!0),$.then((...O)=>{b(!1,!0),x.apply(void 0,O),g.current=!1},O=>{if(b(!1,!0),g.current=!1,!(u!=null&&u()))return Promise.reject(O)}))},w=$=>{if(g.current)return;if(g.current=!0,!m){x();return}let O;if(c){if(O=m($),d&&!K0(O)){g.current=!1,x($);return}}else if(m.length)O=m(a),g.current=!1;else if(O=m(),!K0(O)){x();return}S(O)};return h.createElement(Er,Object.assign({},iP(t),{onClick:w,loading:y,prefixCls:r},i,{ref:v}),n)};var cP=h.createContext(null),cR=[];function RH(e,t){var n=h.useState(function(){if(!ai())return null;var b=document.createElement("div");return b}),r=me(n,1),i=r[0],a=h.useRef(!1),l=h.useContext(cP),c=h.useState(cR),u=me(c,2),d=u[0],m=u[1],g=l||(a.current?void 0:function(b){m(function(x){var S=[b].concat(qe(x));return S})});function v(){i.parentElement||document.body.appendChild(i),a.current=!0}function y(){var b;(b=i.parentElement)===null||b===void 0||b.removeChild(i),a.current=!1}return on(function(){return e?l?l(v):v():y(),y},[e]),on(function(){d.length&&(d.forEach(function(b){return b()}),m(cR))},[d]),[i,g]}function TH(e){var t="rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)),n=document.createElement("div");n.id=t;var r=n.style;r.position="absolute",r.left="0",r.top="0",r.width="100px",r.height="100px",r.overflow="scroll";var i,a;if(e){var l=getComputedStyle(e);r.scrollbarColor=l.scrollbarColor,r.scrollbarWidth=l.scrollbarWidth;var c=getComputedStyle(e,"::-webkit-scrollbar"),u=parseInt(c.width,10),d=parseInt(c.height,10);try{var m=u?"width: ".concat(c.width,";"):"",g=d?"height: ".concat(c.height,";"):"";Ao(`
|
|
174
|
-
#`.concat(t,`::-webkit-scrollbar {
|
|
175
|
-
`).concat(m,`
|
|
176
|
-
`).concat(g,`
|
|
177
|
-
}`),t)}catch(b){console.error(b),i=u,a=d}}document.body.appendChild(n);var v=e&&i&&!isNaN(i)?i:n.offsetWidth-n.clientWidth,y=e&&a&&!isNaN(a)?a:n.offsetHeight-n.clientHeight;return document.body.removeChild(n),If(t),{width:v,height:y}}function _H(e){return typeof document>"u"||!e||!(e instanceof Element)?{width:0,height:0}:TH(e)}function NH(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var IH="rc-util-locker-".concat(Date.now()),uR=0;function MH(e){var t=!!e,n=h.useState(function(){return uR+=1,"".concat(IH,"_").concat(uR)}),r=me(n,1),i=r[0];on(function(){if(t){var a=_H(document.body).width,l=NH();Ao(`
|
|
178
|
-
html body {
|
|
179
|
-
overflow-y: hidden;
|
|
180
|
-
`.concat(l?"width: calc(100% - ".concat(a,"px);"):"",`
|
|
181
|
-
}`),i)}else If(i);return function(){If(i)}},[t,i])}var PH=!1;function AH(e){return PH}var dR=function(t){return t===!1?!1:!ai()||!t?null:typeof t=="string"?document.querySelector(t):typeof t=="function"?t():t},uP=h.forwardRef(function(e,t){var n=e.open,r=e.autoLock,i=e.getContainer;e.debug;var a=e.autoDestroy,l=a===void 0?!0:a,c=e.children,u=h.useState(n),d=me(u,2),m=d[0],g=d[1],v=m||n;h.useEffect(function(){(l||n)&&g(n)},[n,l]);var y=h.useState(function(){return dR(i)}),b=me(y,2),x=b[0],S=b[1];h.useEffect(function(){var B=dR(i);S(B??null)});var w=RH(v&&!x),$=me(w,2),O=$[0],T=$[1],_=x??O;MH(r&&n&&ai()&&(_===O||_===document.body));var R=null;if(c&&Ho(c)&&t){var M=c;R=M.ref}var P=ql(R,t);if(!v||!ai()||x===void 0)return null;var N=_===!1||AH(),I=c;return t&&(I=h.cloneElement(c,{ref:P})),h.createElement(cP.Provider,{value:T},N?I:kl.createPortal(I,_))});function zH(){var e=J({},_p);return e.useId}var fR=0,hR=zH();const dP=hR?(function(t){var n=hR();return t||n}):(function(t){var n=h.useState("ssr-id"),r=me(n,2),i=r[0],a=r[1];return h.useEffect(function(){var l=fR;fR+=1,a("rc_unique_".concat(l))},[]),t||i});var ws="RC_FORM_INTERNAL_HOOKS",Xn=function(){ur(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},Fs=h.createContext({getFieldValue:Xn,getFieldsValue:Xn,getFieldError:Xn,getFieldWarning:Xn,getFieldsError:Xn,isFieldsTouched:Xn,isFieldTouched:Xn,isFieldValidating:Xn,isFieldsValidating:Xn,resetFields:Xn,setFields:Xn,setFieldValue:Xn,setFieldsValue:Xn,validateFields:Xn,submit:Xn,getInternalHooks:function(){return Xn(),{dispatch:Xn,initEntityValue:Xn,registerField:Xn,useSubscribe:Xn,setInitialValues:Xn,destroyForm:Xn,setCallbacks:Xn,registerWatch:Xn,getFields:Xn,setValidateMessages:Xn,setPreserve:Xn,getInitialValue:Xn}}}),Lf=h.createContext(null);function QS(e){return e==null?[]:Array.isArray(e)?e:[e]}function jH(e){return e&&!!e._init}function YS(){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:function(){var t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var ZS=YS();function DH(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function LH(e,t,n){if(Ip())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var i=new(e.bind.apply(e,r));return n&&_f(i,n.prototype),i}function JS(e){var t=typeof Map=="function"?new Map:void 0;return JS=function(r){if(r===null||!DH(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(t!==void 0){if(t.has(r))return t.get(r);t.set(r,i)}function i(){return LH(r,arguments,Ds(this).constructor)}return i.prototype=Object.create(r.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),_f(i,r)},JS(e)}var kH=/%[sdj%]/g,BH=function(){};function ex(e){if(!e||!e.length)return null;var t={};return e.forEach(function(n){var r=n.field;t[r]=t[r]||[],t[r].push(n)}),t}function Gi(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i=0,a=n.length;if(typeof e=="function")return e.apply(null,n);if(typeof e=="string"){var l=e.replace(kH,function(c){if(c==="%%")return"%";if(i>=a)return c;switch(c){case"%s":return String(n[i++]);case"%d":return Number(n[i++]);case"%j":try{return JSON.stringify(n[i++])}catch{return"[Circular]"}break;default:return c}});return l}return e}function HH(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"||e==="tel"}function Dr(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||HH(t)&&typeof e=="string"&&!e)}function FH(e,t,n){var r=[],i=0,a=e.length;function l(c){r.push.apply(r,qe(c||[])),i++,i===a&&n(r)}e.forEach(function(c){t(c,l)})}function mR(e,t,n){var r=0,i=e.length;function a(l){if(l&&l.length){n(l);return}var c=r;r=r+1,c<i?t(e[c],a):n([])}a([])}function VH(e){var t=[];return Object.keys(e).forEach(function(n){t.push.apply(t,qe(e[n]||[]))}),t}var gR=(function(e){Ba(n,e);var t=io(n);function n(r,i){var a;return yr(this,n),a=t.call(this,"Async Validation Error"),G(lt(a),"errors",void 0),G(lt(a),"fields",void 0),a.errors=r,a.fields=i,a}return br(n)})(JS(Error));function UH(e,t,n,r,i){if(t.first){var a=new Promise(function(v,y){var b=function(w){return r(w),w.length?y(new gR(w,ex(w))):v(i)},x=VH(e);mR(x,n,b)});return a.catch(function(v){return v}),a}var l=t.firstFields===!0?Object.keys(e):t.firstFields||[],c=Object.keys(e),u=c.length,d=0,m=[],g=new Promise(function(v,y){var b=function(S){if(m.push.apply(m,S),d++,d===u)return r(m),m.length?y(new gR(m,ex(m))):v(i)};c.length||(r(m),v(i)),c.forEach(function(x){var S=e[x];l.indexOf(x)!==-1?mR(S,n,b):FH(S,n,b)})});return g.catch(function(v){return v}),g}function qH(e){return!!(e&&e.message!==void 0)}function KH(e,t){for(var n=e,r=0;r<t.length;r++){if(n==null)return n;n=n[t[r]]}return n}function pR(e,t){return function(n){var r;return e.fullFields?r=KH(t,e.fullFields):r=t[n.field||e.fullField],qH(n)?(n.field=n.field||e.fullField,n.fieldValue=r,n):{message:typeof n=="function"?n():n,fieldValue:r,field:n.field||e.fullField}}}function vR(e,t){if(t){for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];pt(r)==="object"&&pt(e[n])==="object"?e[n]=J(J({},e[n]),r):e[n]=r}}return e}var Vc="enum",WH=function(t,n,r,i,a){t[Vc]=Array.isArray(t[Vc])?t[Vc]:[],t[Vc].indexOf(n)===-1&&i.push(Gi(a.messages[Vc],t.fullField,t[Vc].join(", ")))},GH=function(t,n,r,i,a){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||i.push(Gi(a.messages.pattern.mismatch,t.fullField,n,t.pattern));else if(typeof t.pattern=="string"){var l=new RegExp(t.pattern);l.test(n)||i.push(Gi(a.messages.pattern.mismatch,t.fullField,n,t.pattern))}}},XH=function(t,n,r,i,a){var l=typeof t.len=="number",c=typeof t.min=="number",u=typeof t.max=="number",d=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,m=n,g=null,v=typeof n=="number",y=typeof n=="string",b=Array.isArray(n);if(v?g="number":y?g="string":b&&(g="array"),!g)return!1;b&&(m=n.length),y&&(m=n.replace(d,"_").length),l?m!==t.len&&i.push(Gi(a.messages[g].len,t.fullField,t.len)):c&&!u&&m<t.min?i.push(Gi(a.messages[g].min,t.fullField,t.min)):u&&!c&&m>t.max?i.push(Gi(a.messages[g].max,t.fullField,t.max)):c&&u&&(m<t.min||m>t.max)&&i.push(Gi(a.messages[g].range,t.fullField,t.min,t.max))},fP=function(t,n,r,i,a,l){t.required&&(!r.hasOwnProperty(t.field)||Dr(n,l||t.type))&&i.push(Gi(a.messages.required,t.fullField))},Wm;const QH=(function(){if(Wm)return Wm;var e="[a-fA-F\\d:]",t=function(R){return R&&R.includeBoundaries?"(?:(?<=\\s|^)(?=".concat(e,")|(?<=").concat(e,")(?=\\s|$))"):""},n="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",r="[a-fA-F\\d]{1,4}",i=["(?:".concat(r,":){7}(?:").concat(r,"|:)"),"(?:".concat(r,":){6}(?:").concat(n,"|:").concat(r,"|:)"),"(?:".concat(r,":){5}(?::").concat(n,"|(?::").concat(r,"){1,2}|:)"),"(?:".concat(r,":){4}(?:(?::").concat(r,"){0,1}:").concat(n,"|(?::").concat(r,"){1,3}|:)"),"(?:".concat(r,":){3}(?:(?::").concat(r,"){0,2}:").concat(n,"|(?::").concat(r,"){1,4}|:)"),"(?:".concat(r,":){2}(?:(?::").concat(r,"){0,3}:").concat(n,"|(?::").concat(r,"){1,5}|:)"),"(?:".concat(r,":){1}(?:(?::").concat(r,"){0,4}:").concat(n,"|(?::").concat(r,"){1,6}|:)"),"(?::(?:(?::".concat(r,"){0,5}:").concat(n,"|(?::").concat(r,"){1,7}|:))")],a="(?:%[0-9a-zA-Z]{1,})?",l="(?:".concat(i.join("|"),")").concat(a),c=new RegExp("(?:^".concat(n,"$)|(?:^").concat(l,"$)")),u=new RegExp("^".concat(n,"$")),d=new RegExp("^".concat(l,"$")),m=function(R){return R&&R.exact?c:new RegExp("(?:".concat(t(R)).concat(n).concat(t(R),")|(?:").concat(t(R)).concat(l).concat(t(R),")"),"g")};m.v4=function(_){return _&&_.exact?u:new RegExp("".concat(t(_)).concat(n).concat(t(_)),"g")},m.v6=function(_){return _&&_.exact?d:new RegExp("".concat(t(_)).concat(l).concat(t(_)),"g")};var g="(?:(?:[a-z]+:)?//)",v="(?:\\S+(?::\\S*)?@)?",y=m.v4().source,b=m.v6().source,x="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",S="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",w="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",$="(?::\\d{2,5})?",O='(?:[/?#][^\\s"]*)?',T="(?:".concat(g,"|www\\.)").concat(v,"(?:localhost|").concat(y,"|").concat(b,"|").concat(x).concat(S).concat(w,")").concat($).concat(O);return Wm=new RegExp("(?:^".concat(T,"$)"),"i"),Wm});var W0={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},cf={integer:function(t){return cf.number(t)&&parseInt(t,10)===t},float:function(t){return cf.number(t)&&!cf.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch{return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return pt(t)==="object"&&!cf.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(W0.email)},tel:function(t){return typeof t=="string"&&t.length<=32&&!!t.match(W0.tel)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(QH())},hex:function(t){return typeof t=="string"&&!!t.match(W0.hex)}},YH=function(t,n,r,i,a){if(t.required&&n===void 0){fP(t,n,r,i,a);return}var l=["integer","float","array","regexp","object","method","email","tel","number","date","url","hex"],c=t.type;l.indexOf(c)>-1?cf[c](n)||i.push(Gi(a.messages.types[c],t.fullField,t.type)):c&&pt(n)!==t.type&&i.push(Gi(a.messages.types[c],t.fullField,t.type))},ZH=function(t,n,r,i,a){(/^\s+$/.test(n)||n==="")&&i.push(Gi(a.messages.whitespace,t.fullField))};const yn={required:fP,whitespace:ZH,type:YH,range:XH,enum:WH,pattern:GH};var JH=function(t,n,r,i,a){var l=[],c=t.required||!t.required&&i.hasOwnProperty(t.field);if(c){if(Dr(n)&&!t.required)return r();yn.required(t,n,i,l,a)}r(l)},eF=function(t,n,r,i,a){var l=[],c=t.required||!t.required&&i.hasOwnProperty(t.field);if(c){if(n==null&&!t.required)return r();yn.required(t,n,i,l,a,"array"),n!=null&&(yn.type(t,n,i,l,a),yn.range(t,n,i,l,a))}r(l)},tF=function(t,n,r,i,a){var l=[],c=t.required||!t.required&&i.hasOwnProperty(t.field);if(c){if(Dr(n)&&!t.required)return r();yn.required(t,n,i,l,a),n!==void 0&&yn.type(t,n,i,l,a)}r(l)},nF=function(t,n,r,i,a){var l=[],c=t.required||!t.required&&i.hasOwnProperty(t.field);if(c){if(Dr(n,"date")&&!t.required)return r();if(yn.required(t,n,i,l,a),!Dr(n,"date")){var u;n instanceof Date?u=n:u=new Date(n),yn.type(t,u,i,l,a),u&&yn.range(t,u.getTime(),i,l,a)}}r(l)},rF="enum",iF=function(t,n,r,i,a){var l=[],c=t.required||!t.required&&i.hasOwnProperty(t.field);if(c){if(Dr(n)&&!t.required)return r();yn.required(t,n,i,l,a),n!==void 0&&yn[rF](t,n,i,l,a)}r(l)},aF=function(t,n,r,i,a){var l=[],c=t.required||!t.required&&i.hasOwnProperty(t.field);if(c){if(Dr(n)&&!t.required)return r();yn.required(t,n,i,l,a),n!==void 0&&(yn.type(t,n,i,l,a),yn.range(t,n,i,l,a))}r(l)},oF=function(t,n,r,i,a){var l=[],c=t.required||!t.required&&i.hasOwnProperty(t.field);if(c){if(Dr(n)&&!t.required)return r();yn.required(t,n,i,l,a),n!==void 0&&(yn.type(t,n,i,l,a),yn.range(t,n,i,l,a))}r(l)},lF=function(t,n,r,i,a){var l=[],c=t.required||!t.required&&i.hasOwnProperty(t.field);if(c){if(Dr(n)&&!t.required)return r();yn.required(t,n,i,l,a),n!==void 0&&yn.type(t,n,i,l,a)}r(l)},sF=function(t,n,r,i,a){var l=[],c=t.required||!t.required&&i.hasOwnProperty(t.field);if(c){if(n===""&&(n=void 0),Dr(n)&&!t.required)return r();yn.required(t,n,i,l,a),n!==void 0&&(yn.type(t,n,i,l,a),yn.range(t,n,i,l,a))}r(l)},cF=function(t,n,r,i,a){var l=[],c=t.required||!t.required&&i.hasOwnProperty(t.field);if(c){if(Dr(n)&&!t.required)return r();yn.required(t,n,i,l,a),n!==void 0&&yn.type(t,n,i,l,a)}r(l)},uF=function(t,n,r,i,a){var l=[],c=t.required||!t.required&&i.hasOwnProperty(t.field);if(c){if(Dr(n,"string")&&!t.required)return r();yn.required(t,n,i,l,a),Dr(n,"string")||yn.pattern(t,n,i,l,a)}r(l)},dF=function(t,n,r,i,a){var l=[],c=t.required||!t.required&&i.hasOwnProperty(t.field);if(c){if(Dr(n)&&!t.required)return r();yn.required(t,n,i,l,a),Dr(n)||yn.type(t,n,i,l,a)}r(l)},fF=function(t,n,r,i,a){var l=[],c=Array.isArray(n)?"array":pt(n);yn.required(t,n,i,l,a,c),r(l)},hF=function(t,n,r,i,a){var l=[],c=t.required||!t.required&&i.hasOwnProperty(t.field);if(c){if(Dr(n,"string")&&!t.required)return r();yn.required(t,n,i,l,a,"string"),Dr(n,"string")||(yn.type(t,n,i,l,a),yn.range(t,n,i,l,a),yn.pattern(t,n,i,l,a),t.whitespace===!0&&yn.whitespace(t,n,i,l,a))}r(l)},Gm=function(t,n,r,i,a){var l=t.type,c=[],u=t.required||!t.required&&i.hasOwnProperty(t.field);if(u){if(Dr(n,l)&&!t.required)return r();yn.required(t,n,i,c,a,l),Dr(n,l)||yn.type(t,n,i,c,a)}r(c)};const vf={string:hF,method:lF,number:sF,boolean:tF,regexp:dF,integer:oF,float:aF,array:eF,object:cF,enum:iF,pattern:uF,date:nF,url:Gm,hex:Gm,email:Gm,tel:Gm,required:fF,any:JH};var bh=(function(){function e(t){yr(this,e),G(this,"rules",null),G(this,"_messages",ZS),this.define(t)}return br(e,[{key:"define",value:function(n){var r=this;if(!n)throw new Error("Cannot configure a schema with no rules");if(pt(n)!=="object"||Array.isArray(n))throw new Error("Rules must be an object");this.rules={},Object.keys(n).forEach(function(i){var a=n[i];r.rules[i]=Array.isArray(a)?a:[a]})}},{key:"messages",value:function(n){return n&&(this._messages=vR(YS(),n)),this._messages}},{key:"validate",value:function(n){var r=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},l=n,c=i,u=a;if(typeof c=="function"&&(u=c,c={}),!this.rules||Object.keys(this.rules).length===0)return u&&u(null,l),Promise.resolve(l);function d(b){var x=[],S={};function w(O){if(Array.isArray(O)){var T;x=(T=x).concat.apply(T,qe(O))}else x.push(O)}for(var $=0;$<b.length;$++)w(b[$]);x.length?(S=ex(x),u(x,S)):u(null,l)}if(c.messages){var m=this.messages();m===ZS&&(m=YS()),vR(m,c.messages),c.messages=m}else c.messages=this.messages();var g={},v=c.keys||Object.keys(this.rules);v.forEach(function(b){var x=r.rules[b],S=l[b];x.forEach(function(w){var $=w;typeof $.transform=="function"&&(l===n&&(l=J({},l)),S=l[b]=$.transform(S),S!=null&&($.type=$.type||(Array.isArray(S)?"array":pt(S)))),typeof $=="function"?$={validator:$}:$=J({},$),$.validator=r.getValidationMethod($),$.validator&&($.field=b,$.fullField=$.fullField||b,$.type=r.getType($),g[b]=g[b]||[],g[b].push({rule:$,value:S,source:l,field:b}))})});var y={};return UH(g,c,function(b,x){var S=b.rule,w=(S.type==="object"||S.type==="array")&&(pt(S.fields)==="object"||pt(S.defaultField)==="object");w=w&&(S.required||!S.required&&b.value),S.field=b.field;function $(M,P){return J(J({},P),{},{fullField:"".concat(S.fullField,".").concat(M),fullFields:S.fullFields?[].concat(qe(S.fullFields),[M]):[M]})}function O(){var M=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],P=Array.isArray(M)?M:[M];!c.suppressWarning&&P.length&&e.warning("async-validator:",P),P.length&&S.message!==void 0&&S.message!==null&&(P=[].concat(S.message));var N=P.map(pR(S,l));if(c.first&&N.length)return y[S.field]=1,x(N);if(!w)x(N);else{if(S.required&&!b.value)return S.message!==void 0?N=[].concat(S.message).map(pR(S,l)):c.error&&(N=[c.error(S,Gi(c.messages.required,S.field))]),x(N);var I={};S.defaultField&&Object.keys(b.value).map(function(k){I[k]=S.defaultField}),I=J(J({},I),b.rule.fields);var B={};Object.keys(I).forEach(function(k){var j=I[k],V=Array.isArray(j)?j:[j];B[k]=V.map($.bind(null,k))});var A=new e(B);A.messages(c.messages),b.rule.options&&(b.rule.options.messages=c.messages,b.rule.options.error=c.error),A.validate(b.value,b.rule.options||c,function(k){var j=[];N&&N.length&&j.push.apply(j,qe(N)),k&&k.length&&j.push.apply(j,qe(k)),x(j.length?j:null)})}}var T;if(S.asyncValidator)T=S.asyncValidator(S,b.value,O,b.source,c);else if(S.validator){try{T=S.validator(S,b.value,O,b.source,c)}catch(M){var _,R;(_=(R=console).error)===null||_===void 0||_.call(R,M),c.suppressValidatorError||setTimeout(function(){throw M},0),O(M.message)}T===!0?O():T===!1?O(typeof S.message=="function"?S.message(S.fullField||S.field):S.message||"".concat(S.fullField||S.field," fails")):T instanceof Array?O(T):T instanceof Error&&O(T.message)}T&&T.then&&T.then(function(){return O()},function(M){return O(M)})},function(b){d(b)},l)}},{key:"getType",value:function(n){if(n.type===void 0&&n.pattern instanceof RegExp&&(n.type="pattern"),typeof n.validator!="function"&&n.type&&!vf.hasOwnProperty(n.type))throw new Error(Gi("Unknown rule type %s",n.type));return n.type||"string"}},{key:"getValidationMethod",value:function(n){if(typeof n.validator=="function")return n.validator;var r=Object.keys(n),i=r.indexOf("message");return i!==-1&&r.splice(i,1),r.length===1&&r[0]==="required"?vf.required:vf[this.getType(n)]||void 0}}]),e})();G(bh,"register",function(t,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");vf[t]=n});G(bh,"warning",BH);G(bh,"messages",ZS);G(bh,"validators",vf);var Vi="'${name}' is not a valid ${type}",hP={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:Vi,method:Vi,array:Vi,object:Vi,number:Vi,date:Vi,boolean:Vi,integer:Vi,float:Vi,regexp:Vi,email:Vi,url:Vi,hex:Vi},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}"}},yR=bh;function mF(e,t){return e.replace(/\\?\$\{\w+\}/g,function(n){if(n.startsWith("\\"))return n.slice(1);var r=n.slice(2,-1);return t[r]})}var bR="CODE_LOGIC_ERROR";function tx(e,t,n,r,i){return nx.apply(this,arguments)}function nx(){return nx=nc(li().mark(function e(t,n,r,i,a){var l,c,u,d,m,g,v,y,b;return li().wrap(function(S){for(;;)switch(S.prev=S.next){case 0:return l=J({},r),delete l.ruleIndex,yR.warning=function(){},l.validator&&(c=l.validator,l.validator=function(){try{return c.apply(void 0,arguments)}catch(w){return console.error(w),Promise.reject(bR)}}),u=null,l&&l.type==="array"&&l.defaultField&&(u=l.defaultField,delete l.defaultField),d=new yR(G({},t,[l])),m=su(hP,i.validateMessages),d.messages(m),g=[],S.prev=10,S.next=13,Promise.resolve(d.validate(G({},t,n),J({},i)));case 13:S.next=18;break;case 15:S.prev=15,S.t0=S.catch(10),S.t0.errors&&(g=S.t0.errors.map(function(w,$){var O=w.message,T=O===bR?m.default:O;return h.isValidElement(T)?h.cloneElement(T,{key:"error_".concat($)}):T}));case 18:if(!(!g.length&&u&&Array.isArray(n)&&n.length>0)){S.next=23;break}return S.next=21,Promise.all(n.map(function(w,$){return tx("".concat(t,".").concat($),w,u,i,a)}));case 21:return v=S.sent,S.abrupt("return",v.reduce(function(w,$){return[].concat(qe(w),qe($))},[]));case 23:return y=J(J({},r),{},{name:t,enum:(r.enum||[]).join(", ")},a),b=g.map(function(w){return typeof w=="string"?mF(w,y):w}),S.abrupt("return",b);case 26:case"end":return S.stop()}},e,null,[[10,15]])})),nx.apply(this,arguments)}function gF(e,t,n,r,i,a){var l=e.join("."),c=n.map(function(m,g){var v=m.validator,y=J(J({},m),{},{ruleIndex:g});return v&&(y.validator=function(b,x,S){var w=!1,$=function(){for(var _=arguments.length,R=new Array(_),M=0;M<_;M++)R[M]=arguments[M];Promise.resolve().then(function(){ur(!w,"Your validator function has already return a promise. `callback` will be ignored."),w||S.apply(void 0,R)})},O=v(b,x,$);w=O&&typeof O.then=="function"&&typeof O.catch=="function",ur(w,"`callback` is deprecated. Please return a promise instead."),w&&O.then(function(){S()}).catch(function(T){S(T||" ")})}),y}).sort(function(m,g){var v=m.warningOnly,y=m.ruleIndex,b=g.warningOnly,x=g.ruleIndex;return!!v==!!b?y-x:v?1:-1}),u;if(i===!0)u=new Promise((function(){var m=nc(li().mark(function g(v,y){var b,x,S;return li().wrap(function($){for(;;)switch($.prev=$.next){case 0:b=0;case 1:if(!(b<c.length)){$.next=12;break}return x=c[b],$.next=5,tx(l,t,x,r,a);case 5:if(S=$.sent,!S.length){$.next=9;break}return y([{errors:S,rule:x}]),$.abrupt("return");case 9:b+=1,$.next=1;break;case 12:v([]);case 13:case"end":return $.stop()}},g)}));return function(g,v){return m.apply(this,arguments)}})());else{var d=c.map(function(m){return tx(l,t,m,r,a).then(function(g){return{errors:g,rule:m}})});u=(i?vF(d):pF(d)).then(function(m){return Promise.reject(m)})}return u.catch(function(m){return m}),u}function pF(e){return rx.apply(this,arguments)}function rx(){return rx=nc(li().mark(function e(t){return li().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.all(t).then(function(i){var a,l=(a=[]).concat.apply(a,qe(i));return l}));case 1:case"end":return r.stop()}},e)})),rx.apply(this,arguments)}function vF(e){return ix.apply(this,arguments)}function ix(){return ix=nc(li().mark(function e(t){var n;return li().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return n=0,i.abrupt("return",new Promise(function(a){t.forEach(function(l){l.then(function(c){c.errors.length&&a([c]),n+=1,n===t.length&&a([])})})}));case 2:case"end":return i.stop()}},e)})),ix.apply(this,arguments)}function wr(e){return QS(e)}function SR(e,t){var n={};return t.forEach(function(r){var i=va(e,r);n=ma(n,r,i)}),n}function vu(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return e&&e.some(function(r){return mP(t,r,n)})}function mP(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return!e||!t||!n&&e.length!==t.length?!1:t.every(function(r,i){return e[i]===r})}function yF(e,t){if(e===t)return!0;if(!e&&t||e&&!t||!e||!t||pt(e)!=="object"||pt(t)!=="object")return!1;var n=Object.keys(e),r=Object.keys(t),i=new Set([].concat(n,r));return qe(i).every(function(a){var l=e[a],c=t[a];return typeof l=="function"&&typeof c=="function"?!0:l===c})}function bF(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&pt(t.target)==="object"&&e in t.target?t.target[e]:t}function xR(e,t,n){var r=e.length;if(t<0||t>=r||n<0||n>=r)return e;var i=e[t],a=t-n;return a>0?[].concat(qe(e.slice(0,n)),[i],qe(e.slice(n,t)),qe(e.slice(t+1,r))):a<0?[].concat(qe(e.slice(0,t)),qe(e.slice(t+1,n+1)),[i],qe(e.slice(n+1,r))):e}var SF=["name"],ca=[];function G0(e,t,n,r,i,a){return typeof e=="function"?e(t,n,"source"in a?{source:a.source}:{}):r!==i}var YC=(function(e){Ba(n,e);var t=io(n);function n(r){var i;if(yr(this,n),i=t.call(this,r),G(lt(i),"state",{resetCount:0}),G(lt(i),"cancelRegisterFunc",null),G(lt(i),"mounted",!1),G(lt(i),"touched",!1),G(lt(i),"dirty",!1),G(lt(i),"validatePromise",void 0),G(lt(i),"prevValidating",void 0),G(lt(i),"errors",ca),G(lt(i),"warnings",ca),G(lt(i),"cancelRegister",function(){var u=i.props,d=u.preserve,m=u.isListField,g=u.name;i.cancelRegisterFunc&&i.cancelRegisterFunc(m,d,wr(g)),i.cancelRegisterFunc=null}),G(lt(i),"getNamePath",function(){var u=i.props,d=u.name,m=u.fieldContext,g=m.prefixName,v=g===void 0?[]:g;return d!==void 0?[].concat(qe(v),qe(d)):[]}),G(lt(i),"getRules",function(){var u=i.props,d=u.rules,m=d===void 0?[]:d,g=u.fieldContext;return m.map(function(v){return typeof v=="function"?v(g):v})}),G(lt(i),"refresh",function(){i.mounted&&i.setState(function(u){var d=u.resetCount;return{resetCount:d+1}})}),G(lt(i),"metaCache",null),G(lt(i),"triggerMetaEvent",function(u){var d=i.props.onMetaChange;if(d){var m=J(J({},i.getMeta()),{},{destroy:u});Mf(i.metaCache,m)||d(m),i.metaCache=m}else i.metaCache=null}),G(lt(i),"onStoreChange",function(u,d,m){var g=i.props,v=g.shouldUpdate,y=g.dependencies,b=y===void 0?[]:y,x=g.onReset,S=m.store,w=i.getNamePath(),$=i.getValue(u),O=i.getValue(S),T=d&&vu(d,w);switch(m.type==="valueUpdate"&&m.source==="external"&&!Mf($,O)&&(i.touched=!0,i.dirty=!0,i.validatePromise=null,i.errors=ca,i.warnings=ca,i.triggerMetaEvent()),m.type){case"reset":if(!d||T){i.touched=!1,i.dirty=!1,i.validatePromise=void 0,i.errors=ca,i.warnings=ca,i.triggerMetaEvent(),x==null||x(),i.refresh();return}break;case"remove":{if(v&&G0(v,u,S,$,O,m)){i.reRender();return}break}case"setField":{var _=m.data;if(T){"touched"in _&&(i.touched=_.touched),"validating"in _&&!("originRCField"in _)&&(i.validatePromise=_.validating?Promise.resolve([]):null),"errors"in _&&(i.errors=_.errors||ca),"warnings"in _&&(i.warnings=_.warnings||ca),i.dirty=!0,i.triggerMetaEvent(),i.reRender();return}else if("value"in _&&vu(d,w,!0)){i.reRender();return}if(v&&!w.length&&G0(v,u,S,$,O,m)){i.reRender();return}break}case"dependenciesUpdate":{var R=b.map(wr);if(R.some(function(M){return vu(m.relatedFields,M)})){i.reRender();return}break}default:if(T||(!b.length||w.length||v)&&G0(v,u,S,$,O,m)){i.reRender();return}break}v===!0&&i.reRender()}),G(lt(i),"validateRules",function(u){var d=i.getNamePath(),m=i.getValue(),g=u||{},v=g.triggerName,y=g.validateOnly,b=y===void 0?!1:y,x=Promise.resolve().then(nc(li().mark(function S(){var w,$,O,T,_,R,M;return li().wrap(function(N){for(;;)switch(N.prev=N.next){case 0:if(i.mounted){N.next=2;break}return N.abrupt("return",[]);case 2:if(w=i.props,$=w.validateFirst,O=$===void 0?!1:$,T=w.messageVariables,_=w.validateDebounce,R=i.getRules(),v&&(R=R.filter(function(I){return I}).filter(function(I){var B=I.validateTrigger;if(!B)return!0;var A=QS(B);return A.includes(v)})),!(_&&v)){N.next=10;break}return N.next=8,new Promise(function(I){setTimeout(I,_)});case 8:if(i.validatePromise===x){N.next=10;break}return N.abrupt("return",[]);case 10:return M=gF(d,m,R,u,O,T),M.catch(function(I){return I}).then(function(){var I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ca;if(i.validatePromise===x){var B;i.validatePromise=null;var A=[],k=[];(B=I.forEach)===null||B===void 0||B.call(I,function(j){var V=j.rule.warningOnly,z=j.errors,F=z===void 0?ca:z;V?k.push.apply(k,qe(F)):A.push.apply(A,qe(F))}),i.errors=A,i.warnings=k,i.triggerMetaEvent(),i.reRender()}}),N.abrupt("return",M);case 13:case"end":return N.stop()}},S)})));return b||(i.validatePromise=x,i.dirty=!0,i.errors=ca,i.warnings=ca,i.triggerMetaEvent(),i.reRender()),x}),G(lt(i),"isFieldValidating",function(){return!!i.validatePromise}),G(lt(i),"isFieldTouched",function(){return i.touched}),G(lt(i),"isFieldDirty",function(){if(i.dirty||i.props.initialValue!==void 0)return!0;var u=i.props.fieldContext,d=u.getInternalHooks(ws),m=d.getInitialValue;return m(i.getNamePath())!==void 0}),G(lt(i),"getErrors",function(){return i.errors}),G(lt(i),"getWarnings",function(){return i.warnings}),G(lt(i),"isListField",function(){return i.props.isListField}),G(lt(i),"isList",function(){return i.props.isList}),G(lt(i),"isPreserve",function(){return i.props.preserve}),G(lt(i),"getMeta",function(){i.prevValidating=i.isFieldValidating();var u={touched:i.isFieldTouched(),validating:i.prevValidating,errors:i.errors,warnings:i.warnings,name:i.getNamePath(),validated:i.validatePromise===null};return u}),G(lt(i),"getOnlyChild",function(u){if(typeof u=="function"){var d=i.getMeta();return J(J({},i.getOnlyChild(u(i.getControlled(),d,i.props.fieldContext))),{},{isFunction:!0})}var m=hi(u);return m.length!==1||!h.isValidElement(m[0])?{child:m,isFunction:!1}:{child:m[0],isFunction:!1}}),G(lt(i),"getValue",function(u){var d=i.props.fieldContext.getFieldsValue,m=i.getNamePath();return va(u||d(!0),m)}),G(lt(i),"getControlled",function(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},d=i.props,m=d.name,g=d.trigger,v=d.validateTrigger,y=d.getValueFromEvent,b=d.normalize,x=d.valuePropName,S=d.getValueProps,w=d.fieldContext,$=v!==void 0?v:w.validateTrigger,O=i.getNamePath(),T=w.getInternalHooks,_=w.getFieldsValue,R=T(ws),M=R.dispatch,P=i.getValue(),N=S||function(j){return G({},x,j)},I=u[g],B=m!==void 0?N(P):{},A=J(J({},u),B);A[g]=function(){i.touched=!0,i.dirty=!0,i.triggerMetaEvent();for(var j,V=arguments.length,z=new Array(V),F=0;F<V;F++)z[F]=arguments[F];y?j=y.apply(void 0,z):j=bF.apply(void 0,[x].concat(z)),b&&(j=b(j,P,_(!0))),j!==P&&M({type:"updateValue",namePath:O,value:j}),I&&I.apply(void 0,z)};var k=QS($||[]);return k.forEach(function(j){var V=A[j];A[j]=function(){V&&V.apply(void 0,arguments);var z=i.props.rules;z&&z.length&&M({type:"validateField",namePath:O,triggerName:j})}}),A}),r.fieldContext){var a=r.fieldContext.getInternalHooks,l=a(ws),c=l.initEntityValue;c(lt(i))}return i}return br(n,[{key:"componentDidMount",value:function(){var i=this.props,a=i.shouldUpdate,l=i.fieldContext;if(this.mounted=!0,l){var c=l.getInternalHooks,u=c(ws),d=u.registerField;this.cancelRegisterFunc=d(this)}a===!0&&this.reRender()}},{key:"componentWillUnmount",value:function(){this.cancelRegister(),this.triggerMetaEvent(!0),this.mounted=!1}},{key:"reRender",value:function(){this.mounted&&this.forceUpdate()}},{key:"render",value:function(){var i=this.state.resetCount,a=this.props.children,l=this.getOnlyChild(a),c=l.child,u=l.isFunction,d;return u?d=c:h.isValidElement(c)?d=h.cloneElement(c,this.getControlled(c.props)):(ur(!c,"`children` of Field is not validate ReactElement."),d=c),h.createElement(h.Fragment,{key:i},d)}}]),n})(h.Component);G(YC,"contextType",Fs);G(YC,"defaultProps",{trigger:"onChange",valuePropName:"value"});function ZC(e){var t,n=e.name,r=jt(e,SF),i=h.useContext(Fs),a=h.useContext(Lf),l=n!==void 0?wr(n):void 0,c=(t=r.isListField)!==null&&t!==void 0?t:!!a,u="keep";return c||(u="_".concat((l||[]).join("_"))),h.createElement(YC,Ue({key:u,name:l,isListField:c},r,{fieldContext:i}))}function gP(e){var t=e.name,n=e.initialValue,r=e.children,i=e.rules,a=e.validateTrigger,l=e.isListField,c=h.useContext(Fs),u=h.useContext(Lf),d=h.useRef({keys:[],id:0}),m=d.current,g=h.useMemo(function(){var x=wr(c.prefixName)||[];return[].concat(qe(x),qe(wr(t)))},[c.prefixName,t]),v=h.useMemo(function(){return J(J({},c),{},{prefixName:g})},[c,g]),y=h.useMemo(function(){return{getKey:function(S){var w=g.length,$=S[w];return[m.keys[$],S.slice(w+1)]}}},[g]);if(typeof r!="function")return ur(!1,"Form.List only accepts function as children."),null;var b=function(S,w,$){var O=$.source;return O==="internal"?!1:S!==w};return h.createElement(Lf.Provider,{value:y},h.createElement(Fs.Provider,{value:v},h.createElement(ZC,{name:[],shouldUpdate:b,rules:i,validateTrigger:a,initialValue:n,isList:!0,isListField:l??!!u},function(x,S){var w=x.value,$=w===void 0?[]:w,O=x.onChange,T=c.getFieldValue,_=function(){var N=T(g||[]);return N||[]},R={add:function(N,I){var B=_();I>=0&&I<=B.length?(m.keys=[].concat(qe(m.keys.slice(0,I)),[m.id],qe(m.keys.slice(I))),O([].concat(qe(B.slice(0,I)),[N],qe(B.slice(I))))):(m.keys=[].concat(qe(m.keys),[m.id]),O([].concat(qe(B),[N]))),m.id+=1},remove:function(N){var I=_(),B=new Set(Array.isArray(N)?N:[N]);B.size<=0||(m.keys=m.keys.filter(function(A,k){return!B.has(k)}),O(I.filter(function(A,k){return!B.has(k)})))},move:function(N,I){if(N!==I){var B=_();N<0||N>=B.length||I<0||I>=B.length||(m.keys=xR(m.keys,N,I),O(xR(B,N,I)))}}},M=$||[];return Array.isArray(M)||(M=[]),r(M.map(function(P,N){var I=m.keys[N];return I===void 0&&(m.keys[N]=m.id,I=m.keys[N],m.id+=1),{name:N,key:I,isListField:!0}}),R,S)})))}function xF(e){var t=!1,n=e.length,r=[];return e.length?new Promise(function(i,a){e.forEach(function(l,c){l.catch(function(u){return t=!0,u}).then(function(u){n-=1,r[c]=u,!(n>0)&&(t&&a(r),i(r))})})}):Promise.resolve([])}var pP="__@field_split__";function X0(e){return e.map(function(t){return"".concat(pt(t),":").concat(t)}).join(pP)}var Uc=(function(){function e(){yr(this,e),G(this,"kvs",new Map)}return br(e,[{key:"set",value:function(n,r){this.kvs.set(X0(n),r)}},{key:"get",value:function(n){return this.kvs.get(X0(n))}},{key:"update",value:function(n,r){var i=this.get(n),a=r(i);a?this.set(n,a):this.delete(n)}},{key:"delete",value:function(n){this.kvs.delete(X0(n))}},{key:"map",value:function(n){return qe(this.kvs.entries()).map(function(r){var i=me(r,2),a=i[0],l=i[1],c=a.split(pP);return n({key:c.map(function(u){var d=u.match(/^([^:]*):(.*)$/),m=me(d,3),g=m[1],v=m[2];return g==="number"?Number(v):v}),value:l})})}},{key:"toJSON",value:function(){var n={};return this.map(function(r){var i=r.key,a=r.value;return n[i.join(".")]=a,null}),n}}]),e})(),CF=["name"],wF=br(function e(t){var n=this;yr(this,e),G(this,"formHooked",!1),G(this,"forceRootUpdate",void 0),G(this,"subscribable",!0),G(this,"store",{}),G(this,"fieldEntities",[]),G(this,"initialValues",{}),G(this,"callbacks",{}),G(this,"validateMessages",null),G(this,"preserve",null),G(this,"lastValidatePromise",null),G(this,"getForm",function(){return{getFieldValue:n.getFieldValue,getFieldsValue:n.getFieldsValue,getFieldError:n.getFieldError,getFieldWarning:n.getFieldWarning,getFieldsError:n.getFieldsError,isFieldsTouched:n.isFieldsTouched,isFieldTouched:n.isFieldTouched,isFieldValidating:n.isFieldValidating,isFieldsValidating:n.isFieldsValidating,resetFields:n.resetFields,setFields:n.setFields,setFieldValue:n.setFieldValue,setFieldsValue:n.setFieldsValue,validateFields:n.validateFields,submit:n.submit,_init:!0,getInternalHooks:n.getInternalHooks}}),G(this,"getInternalHooks",function(r){return r===ws?(n.formHooked=!0,{dispatch:n.dispatch,initEntityValue:n.initEntityValue,registerField:n.registerField,useSubscribe:n.useSubscribe,setInitialValues:n.setInitialValues,destroyForm:n.destroyForm,setCallbacks:n.setCallbacks,setValidateMessages:n.setValidateMessages,getFields:n.getFields,setPreserve:n.setPreserve,getInitialValue:n.getInitialValue,registerWatch:n.registerWatch}):(ur(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),G(this,"useSubscribe",function(r){n.subscribable=r}),G(this,"prevWithoutPreserves",null),G(this,"setInitialValues",function(r,i){if(n.initialValues=r||{},i){var a,l=su(r,n.store);(a=n.prevWithoutPreserves)===null||a===void 0||a.map(function(c){var u=c.key;l=ma(l,u,va(r,u))}),n.prevWithoutPreserves=null,n.updateStore(l)}}),G(this,"destroyForm",function(r){if(r)n.updateStore({});else{var i=new Uc;n.getFieldEntities(!0).forEach(function(a){n.isMergedPreserve(a.isPreserve())||i.set(a.getNamePath(),!0)}),n.prevWithoutPreserves=i}}),G(this,"getInitialValue",function(r){var i=va(n.initialValues,r);return r.length?su(i):i}),G(this,"setCallbacks",function(r){n.callbacks=r}),G(this,"setValidateMessages",function(r){n.validateMessages=r}),G(this,"setPreserve",function(r){n.preserve=r}),G(this,"watchList",[]),G(this,"registerWatch",function(r){return n.watchList.push(r),function(){n.watchList=n.watchList.filter(function(i){return i!==r})}}),G(this,"notifyWatch",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(n.watchList.length){var i=n.getFieldsValue(),a=n.getFieldsValue(!0);n.watchList.forEach(function(l){l(i,a,r)})}}),G(this,"timeoutId",null),G(this,"warningUnhooked",function(){}),G(this,"updateStore",function(r){n.store=r}),G(this,"getFieldEntities",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return r?n.fieldEntities.filter(function(i){return i.getNamePath().length}):n.fieldEntities}),G(this,"getFieldsMap",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,i=new Uc;return n.getFieldEntities(r).forEach(function(a){var l=a.getNamePath();i.set(l,a)}),i}),G(this,"getFieldEntitiesForNamePathList",function(r){if(!r)return n.getFieldEntities(!0);var i=n.getFieldsMap(!0);return r.map(function(a){var l=wr(a);return i.get(l)||{INVALIDATE_NAME_PATH:wr(a)}})}),G(this,"getFieldsValue",function(r,i){n.warningUnhooked();var a,l,c;if(r===!0||Array.isArray(r)?(a=r,l=i):r&&pt(r)==="object"&&(c=r.strict,l=r.filter),a===!0&&!l)return n.store;var u=n.getFieldEntitiesForNamePathList(Array.isArray(a)?a:null),d=[];return u.forEach(function(m){var g,v,y="INVALIDATE_NAME_PATH"in m?m.INVALIDATE_NAME_PATH:m.getNamePath();if(c){var b,x;if((b=(x=m).isList)!==null&&b!==void 0&&b.call(x))return}else if(!a&&(g=(v=m).isListField)!==null&&g!==void 0&&g.call(v))return;if(!l)d.push(y);else{var S="getMeta"in m?m.getMeta():null;l(S)&&d.push(y)}}),SR(n.store,d.map(wr))}),G(this,"getFieldValue",function(r){n.warningUnhooked();var i=wr(r);return va(n.store,i)}),G(this,"getFieldsError",function(r){n.warningUnhooked();var i=n.getFieldEntitiesForNamePathList(r);return i.map(function(a,l){return a&&!("INVALIDATE_NAME_PATH"in a)?{name:a.getNamePath(),errors:a.getErrors(),warnings:a.getWarnings()}:{name:wr(r[l]),errors:[],warnings:[]}})}),G(this,"getFieldError",function(r){n.warningUnhooked();var i=wr(r),a=n.getFieldsError([i])[0];return a.errors}),G(this,"getFieldWarning",function(r){n.warningUnhooked();var i=wr(r),a=n.getFieldsError([i])[0];return a.warnings}),G(this,"isFieldsTouched",function(){n.warningUnhooked();for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];var l=i[0],c=i[1],u,d=!1;i.length===0?u=null:i.length===1?Array.isArray(l)?(u=l.map(wr),d=!1):(u=null,d=l):(u=l.map(wr),d=c);var m=n.getFieldEntities(!0),g=function(S){return S.isFieldTouched()};if(!u)return d?m.every(function(x){return g(x)||x.isList()}):m.some(g);var v=new Uc;u.forEach(function(x){v.set(x,[])}),m.forEach(function(x){var S=x.getNamePath();u.forEach(function(w){w.every(function($,O){return S[O]===$})&&v.update(w,function($){return[].concat(qe($),[x])})})});var y=function(S){return S.some(g)},b=v.map(function(x){var S=x.value;return S});return d?b.every(y):b.some(y)}),G(this,"isFieldTouched",function(r){return n.warningUnhooked(),n.isFieldsTouched([r])}),G(this,"isFieldsValidating",function(r){n.warningUnhooked();var i=n.getFieldEntities();if(!r)return i.some(function(l){return l.isFieldValidating()});var a=r.map(wr);return i.some(function(l){var c=l.getNamePath();return vu(a,c)&&l.isFieldValidating()})}),G(this,"isFieldValidating",function(r){return n.warningUnhooked(),n.isFieldsValidating([r])}),G(this,"resetWithFieldInitialValue",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=new Uc,a=n.getFieldEntities(!0);a.forEach(function(u){var d=u.props.initialValue,m=u.getNamePath();if(d!==void 0){var g=i.get(m)||new Set;g.add({entity:u,value:d}),i.set(m,g)}});var l=function(d){d.forEach(function(m){var g=m.props.initialValue;if(g!==void 0){var v=m.getNamePath(),y=n.getInitialValue(v);if(y!==void 0)ur(!1,"Form already set 'initialValues' with path '".concat(v.join("."),"'. Field can not overwrite it."));else{var b=i.get(v);if(b&&b.size>1)ur(!1,"Multiple Field with path '".concat(v.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(b){var x=n.getFieldValue(v),S=m.isListField();!S&&(!r.skipExist||x===void 0)&&n.updateStore(ma(n.store,v,qe(b)[0].value))}}}})},c;r.entities?c=r.entities:r.namePathList?(c=[],r.namePathList.forEach(function(u){var d=i.get(u);if(d){var m;(m=c).push.apply(m,qe(qe(d).map(function(g){return g.entity})))}})):c=a,l(c)}),G(this,"resetFields",function(r){n.warningUnhooked();var i=n.store;if(!r){n.updateStore(su(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(i,null,{type:"reset"}),n.notifyWatch();return}var a=r.map(wr);a.forEach(function(l){var c=n.getInitialValue(l);n.updateStore(ma(n.store,l,c))}),n.resetWithFieldInitialValue({namePathList:a}),n.notifyObservers(i,a,{type:"reset"}),n.notifyWatch(a)}),G(this,"setFields",function(r){n.warningUnhooked();var i=n.store,a=[];r.forEach(function(l){var c=l.name,u=jt(l,CF),d=wr(c);a.push(d),"value"in u&&n.updateStore(ma(n.store,d,u.value)),n.notifyObservers(i,[d],{type:"setField",data:l})}),n.notifyWatch(a)}),G(this,"getFields",function(){var r=n.getFieldEntities(!0),i=r.map(function(a){var l=a.getNamePath(),c=a.getMeta(),u=J(J({},c),{},{name:l,value:n.getFieldValue(l)});return Object.defineProperty(u,"originRCField",{value:!0}),u});return i}),G(this,"initEntityValue",function(r){var i=r.props.initialValue;if(i!==void 0){var a=r.getNamePath(),l=va(n.store,a);l===void 0&&n.updateStore(ma(n.store,a,i))}}),G(this,"isMergedPreserve",function(r){var i=r!==void 0?r:n.preserve;return i??!0}),G(this,"registerField",function(r){n.fieldEntities.push(r);var i=r.getNamePath();if(n.notifyWatch([i]),r.props.initialValue!==void 0){var a=n.store;n.resetWithFieldInitialValue({entities:[r],skipExist:!0}),n.notifyObservers(a,[r.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(l,c){var u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(n.fieldEntities=n.fieldEntities.filter(function(g){return g!==r}),!n.isMergedPreserve(c)&&(!l||u.length>1)){var d=l?void 0:n.getInitialValue(i);if(i.length&&n.getFieldValue(i)!==d&&n.fieldEntities.every(function(g){return!mP(g.getNamePath(),i)})){var m=n.store;n.updateStore(ma(m,i,d,!0)),n.notifyObservers(m,[i],{type:"remove"}),n.triggerDependenciesUpdate(m,i)}}n.notifyWatch([i])}}),G(this,"dispatch",function(r){switch(r.type){case"updateValue":{var i=r.namePath,a=r.value;n.updateValue(i,a);break}case"validateField":{var l=r.namePath,c=r.triggerName;n.validateFields([l],{triggerName:c});break}}}),G(this,"notifyObservers",function(r,i,a){if(n.subscribable){var l=J(J({},a),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach(function(c){var u=c.onStoreChange;u(r,i,l)})}else n.forceRootUpdate()}),G(this,"triggerDependenciesUpdate",function(r,i){var a=n.getDependencyChildrenFields(i);return a.length&&n.validateFields(a),n.notifyObservers(r,a,{type:"dependenciesUpdate",relatedFields:[i].concat(qe(a))}),a}),G(this,"updateValue",function(r,i){var a=wr(r),l=n.store;n.updateStore(ma(n.store,a,i)),n.notifyObservers(l,[a],{type:"valueUpdate",source:"internal"}),n.notifyWatch([a]);var c=n.triggerDependenciesUpdate(l,a),u=n.callbacks.onValuesChange;if(u){var d=SR(n.store,[a]);u(d,n.getFieldsValue())}n.triggerOnFieldsChange([a].concat(qe(c)))}),G(this,"setFieldsValue",function(r){n.warningUnhooked();var i=n.store;if(r){var a=su(n.store,r);n.updateStore(a)}n.notifyObservers(i,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()}),G(this,"setFieldValue",function(r,i){n.setFields([{name:r,value:i,errors:[],warnings:[]}])}),G(this,"getDependencyChildrenFields",function(r){var i=new Set,a=[],l=new Uc;n.getFieldEntities().forEach(function(u){var d=u.props.dependencies;(d||[]).forEach(function(m){var g=wr(m);l.update(g,function(){var v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return v.add(u),v})})});var c=function u(d){var m=l.get(d)||new Set;m.forEach(function(g){if(!i.has(g)){i.add(g);var v=g.getNamePath();g.isFieldDirty()&&v.length&&(a.push(v),u(v))}})};return c(r),a}),G(this,"triggerOnFieldsChange",function(r,i){var a=n.callbacks.onFieldsChange;if(a){var l=n.getFields();if(i){var c=new Uc;i.forEach(function(d){var m=d.name,g=d.errors;c.set(m,g)}),l.forEach(function(d){d.errors=c.get(d.name)||d.errors})}var u=l.filter(function(d){var m=d.name;return vu(r,m)});u.length&&a(u,l)}}),G(this,"validateFields",function(r,i){n.warningUnhooked();var a,l;Array.isArray(r)||typeof r=="string"||typeof i=="string"?(a=r,l=i):l=r;var c=!!a,u=c?a.map(wr):[],d=[],m=String(Date.now()),g=new Set,v=l||{},y=v.recursive,b=v.dirty;n.getFieldEntities(!0).forEach(function($){if(c||u.push($.getNamePath()),!(!$.props.rules||!$.props.rules.length)&&!(b&&!$.isFieldDirty())){var O=$.getNamePath();if(g.add(O.join(m)),!c||vu(u,O,y)){var T=$.validateRules(J({validateMessages:J(J({},hP),n.validateMessages)},l));d.push(T.then(function(){return{name:O,errors:[],warnings:[]}}).catch(function(_){var R,M=[],P=[];return(R=_.forEach)===null||R===void 0||R.call(_,function(N){var I=N.rule.warningOnly,B=N.errors;I?P.push.apply(P,qe(B)):M.push.apply(M,qe(B))}),M.length?Promise.reject({name:O,errors:M,warnings:P}):{name:O,errors:M,warnings:P}}))}}});var x=xF(d);n.lastValidatePromise=x,x.catch(function($){return $}).then(function($){var O=$.map(function(T){var _=T.name;return _});n.notifyObservers(n.store,O,{type:"validateFinish"}),n.triggerOnFieldsChange(O,$)});var S=x.then(function(){return n.lastValidatePromise===x?Promise.resolve(n.getFieldsValue(u)):Promise.reject([])}).catch(function($){var O=$.filter(function(T){return T&&T.errors.length});return Promise.reject({values:n.getFieldsValue(u),errorFields:O,outOfDate:n.lastValidatePromise!==x})});S.catch(function($){return $});var w=u.filter(function($){return g.has($.join(m))});return n.triggerOnFieldsChange(w),S}),G(this,"submit",function(){n.warningUnhooked(),n.validateFields().then(function(r){var i=n.callbacks.onFinish;if(i)try{i(r)}catch(a){console.error(a)}}).catch(function(r){var i=n.callbacks.onFinishFailed;i&&i(r)})}),this.forceRootUpdate=t});function JC(e){var t=h.useRef(),n=h.useState({}),r=me(n,2),i=r[1];if(!t.current)if(e)t.current=e;else{var a=function(){i({})},l=new wF(a);t.current=l.getForm()}return[t.current]}var ax=h.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),vP=function(t){var n=t.validateMessages,r=t.onFormChange,i=t.onFormFinish,a=t.children,l=h.useContext(ax),c=h.useRef({});return h.createElement(ax.Provider,{value:J(J({},l),{},{validateMessages:J(J({},l.validateMessages),n),triggerFormChange:function(d,m){r&&r(d,{changedFields:m,forms:c.current}),l.triggerFormChange(d,m)},triggerFormFinish:function(d,m){i&&i(d,{values:m,forms:c.current}),l.triggerFormFinish(d,m)},registerForm:function(d,m){d&&(c.current=J(J({},c.current),{},G({},d,m))),l.registerForm(d,m)},unregisterForm:function(d){var m=J({},c.current);delete m[d],c.current=m,l.unregisterForm(d)}})},a)},EF=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"],$F=function(t,n){var r=t.name,i=t.initialValues,a=t.fields,l=t.form,c=t.preserve,u=t.children,d=t.component,m=d===void 0?"form":d,g=t.validateMessages,v=t.validateTrigger,y=v===void 0?"onChange":v,b=t.onValuesChange,x=t.onFieldsChange,S=t.onFinish,w=t.onFinishFailed,$=t.clearOnDestroy,O=jt(t,EF),T=h.useRef(null),_=h.useContext(ax),R=JC(l),M=me(R,1),P=M[0],N=P.getInternalHooks(ws),I=N.useSubscribe,B=N.setInitialValues,A=N.setCallbacks,k=N.setValidateMessages,j=N.setPreserve,V=N.destroyForm;h.useImperativeHandle(n,function(){return J(J({},P),{},{nativeElement:T.current})}),h.useEffect(function(){return _.registerForm(r,P),function(){_.unregisterForm(r)}},[_,P,r]),k(J(J({},_.validateMessages),g)),A({onValuesChange:b,onFieldsChange:function(X){if(_.triggerFormChange(r,X),x){for(var Q=arguments.length,Y=new Array(Q>1?Q-1:0),ie=1;ie<Q;ie++)Y[ie-1]=arguments[ie];x.apply(void 0,[X].concat(Y))}},onFinish:function(X){_.triggerFormFinish(r,X),S&&S(X)},onFinishFailed:w}),j(c);var z=h.useRef(null);B(i,!z.current),z.current||(z.current=!0),h.useEffect(function(){return function(){return V($)}},[]);var F,q=typeof u=="function";if(q){var Z=P.getFieldsValue(!0);F=u(Z,P)}else F=u;I(!q);var H=h.useRef();h.useEffect(function(){yF(H.current||[],a||[])||P.setFields(a||[]),H.current=a},[a,P]);var U=h.useMemo(function(){return J(J({},P),{},{validateTrigger:y})},[P,y]),K=h.createElement(Lf.Provider,{value:null},h.createElement(Fs.Provider,{value:U},F));return m===!1?K:h.createElement(m,Ue({},O,{ref:T,onSubmit:function(X){X.preventDefault(),X.stopPropagation(),P.submit()},onReset:function(X){var Q;X.preventDefault(),P.resetFields(),(Q=O.onReset)===null||Q===void 0||Q.call(O,X)}}),K)};function CR(e){try{return JSON.stringify(e)}catch{return Math.random()}}function yP(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],i=t[1],a=i===void 0?{}:i,l=jH(a)?{form:a}:a,c=l.form,u=h.useState(),d=me(u,2),m=d[0],g=d[1],v=h.useMemo(function(){return CR(m)},[m]),y=h.useRef(v);y.current=v;var b=h.useContext(Fs),x=c||b,S=x&&x._init,w=wr(r),$=h.useRef(w);return $.current=w,h.useEffect(function(){if(S){var O=x.getFieldsValue,T=x.getInternalHooks,_=T(ws),R=_.registerWatch,M=function(B,A){var k=l.preserve?A:B;return typeof r=="function"?r(k):va(k,$.current)},P=R(function(I,B){var A=M(I,B),k=CR(A);y.current!==k&&(y.current=k,g(A))}),N=M(O(),O(!0));return m!==N&&g(N),P}},[S]),m}var OF=h.forwardRef($F),Yu=OF;Yu.FormProvider=vP;Yu.Field=ZC;Yu.List=gP;Yu.useForm=JC;Yu.useWatch=yP;const ko=h.createContext({labelAlign:"right",layout:"horizontal",itemRef:()=>{}}),bP=h.createContext(null),SP=e=>{const t=tr(e,["prefixCls"]);return h.createElement(vP,Object.assign({},t))},e1=h.createContext({prefixCls:""}),Ii=h.createContext({}),xP=({children:e,status:t,override:n})=>{const r=h.useContext(Ii),i=h.useMemo(()=>{const a=Object.assign({},r);return n&&delete a.isFormItemInput,t&&(delete a.status,delete a.hasFeedback,delete a.feedbackIcon),a},[t,n,r]);return h.createElement(Ii.Provider,{value:i},e)},CP=h.createContext(void 0),kf=e=>{const{space:t,form:n,children:r}=e;if(r==null)return null;let i=r;return n&&(i=re.createElement(xP,{override:!0,status:!0},i)),t&&(i=re.createElement(l8,null,i)),i};var RF=function(t){if(ai()&&window.document.documentElement){var n=Array.isArray(t)?t:[t],r=window.document.documentElement;return n.some(function(i){return i in r.style})}return!1};function wR(e,t){return RF(e)}const Yp=e=>{const{prefixCls:t,className:n,style:r,size:i,shape:a}=e,l=te({[`${t}-lg`]:i==="large",[`${t}-sm`]:i==="small"}),c=te({[`${t}-circle`]:a==="circle",[`${t}-square`]:a==="square",[`${t}-round`]:a==="round"}),u=h.useMemo(()=>typeof i=="number"?{width:i,height:i,lineHeight:`${i}px`}:{},[i]);return h.createElement("span",{className:te(t,l,c,n),style:Object.assign(Object.assign({},u),r)})},TF=new ln("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),Zp=e=>({height:e,lineHeight:ae(e)}),yu=e=>Object.assign({width:e},Zp(e)),_F=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:TF,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),Q0=(e,t)=>Object.assign({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal()},Zp(e)),NF=e=>{const{skeletonAvatarCls:t,gradientFromColor:n,controlHeight:r,controlHeightLG:i,controlHeightSM:a}=e;return{[t]:Object.assign({display:"inline-block",verticalAlign:"top",background:n},yu(r)),[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:Object.assign({},yu(i)),[`${t}${t}-sm`]:Object.assign({},yu(a))}},IF=e=>{const{controlHeight:t,borderRadiusSM:n,skeletonInputCls:r,controlHeightLG:i,controlHeightSM:a,gradientFromColor:l,calc:c}=e;return{[r]:Object.assign({display:"inline-block",verticalAlign:"top",background:l,borderRadius:n},Q0(t,c)),[`${r}-lg`]:Object.assign({},Q0(i,c)),[`${r}-sm`]:Object.assign({},Q0(a,c))}},ER=e=>Object.assign({width:e},Zp(e)),MF=e=>{const{skeletonImageCls:t,imageSizeBase:n,gradientFromColor:r,borderRadiusSM:i,calc:a}=e;return{[t]:Object.assign(Object.assign({display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"middle",background:r,borderRadius:i},ER(a(n).mul(2).equal())),{[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:Object.assign(Object.assign({},ER(n)),{maxWidth:a(n).mul(4).equal(),maxHeight:a(n).mul(4).equal()}),[`${t}-svg${t}-svg-circle`]:{borderRadius:"50%"}}),[`${t}${t}-circle`]:{borderRadius:"50%"}}},Y0=(e,t,n)=>{const{skeletonButtonCls:r}=e;return{[`${n}${r}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${n}${r}-round`]:{borderRadius:t}}},Z0=(e,t)=>Object.assign({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal()},Zp(e)),PF=e=>{const{borderRadiusSM:t,skeletonButtonCls:n,controlHeight:r,controlHeightLG:i,controlHeightSM:a,gradientFromColor:l,calc:c}=e;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[n]:Object.assign({display:"inline-block",verticalAlign:"top",background:l,borderRadius:t,width:c(r).mul(2).equal(),minWidth:c(r).mul(2).equal()},Z0(r,c))},Y0(e,r,n)),{[`${n}-lg`]:Object.assign({},Z0(i,c))}),Y0(e,i,`${n}-lg`)),{[`${n}-sm`]:Object.assign({},Z0(a,c))}),Y0(e,a,`${n}-sm`))},AF=e=>{const{componentCls:t,skeletonAvatarCls:n,skeletonTitleCls:r,skeletonParagraphCls:i,skeletonButtonCls:a,skeletonInputCls:l,skeletonImageCls:c,controlHeight:u,controlHeightLG:d,controlHeightSM:m,gradientFromColor:g,padding:v,marginSM:y,borderRadius:b,titleHeight:x,blockRadius:S,paragraphLiHeight:w,controlHeightXS:$,paragraphMarginTop:O}=e;return{[t]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:v,verticalAlign:"top",[n]:Object.assign({display:"inline-block",verticalAlign:"top",background:g},yu(u)),[`${n}-circle`]:{borderRadius:"50%"},[`${n}-lg`]:Object.assign({},yu(d)),[`${n}-sm`]:Object.assign({},yu(m))},[`${t}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[r]:{width:"100%",height:x,background:g,borderRadius:S,[`+ ${i}`]:{marginBlockStart:m}},[i]:{padding:0,"> li":{width:"100%",height:w,listStyle:"none",background:g,borderRadius:S,"+ li":{marginBlockStart:$}}},[`${i}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-content`]:{[`${r}, ${i} > li`]:{borderRadius:b}}},[`${t}-with-avatar ${t}-content`]:{[r]:{marginBlockStart:y,[`+ ${i}`]:{marginBlockStart:O}}},[`${t}${t}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},PF(e)),NF(e)),IF(e)),MF(e)),[`${t}${t}-block`]:{width:"100%",[a]:{width:"100%"},[l]:{width:"100%"}},[`${t}${t}-active`]:{[`
|
|
182
|
-
${r},
|
|
183
|
-
${i} > li,
|
|
184
|
-
${n},
|
|
185
|
-
${a},
|
|
186
|
-
${l},
|
|
187
|
-
${c}
|
|
188
|
-
`]:Object.assign({},_F(e))}}},zF=e=>{const{colorFillContent:t,colorFill:n}=e,r=t,i=n;return{color:r,colorGradientEnd:i,gradientFromColor:r,gradientToColor:i,titleHeight:e.controlHeight/2,blockRadius:e.borderRadiusSM,paragraphMarginTop:e.marginLG+e.marginXXS,paragraphLiHeight:e.controlHeight/2}},Zu=Nn("Skeleton",e=>{const{componentCls:t,calc:n}=e,r=sn(e,{skeletonAvatarCls:`${t}-avatar`,skeletonTitleCls:`${t}-title`,skeletonParagraphCls:`${t}-paragraph`,skeletonButtonCls:`${t}-button`,skeletonInputCls:`${t}-input`,skeletonImageCls:`${t}-image`,imageSizeBase:n(e.controlHeight).mul(1.5).equal(),borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${e.gradientFromColor} 25%, ${e.gradientToColor} 37%, ${e.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return AF(r)},zF,{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),jF=e=>{const{prefixCls:t,className:n,rootClassName:r,active:i,shape:a="circle",size:l="default"}=e,{getPrefixCls:c}=h.useContext(Tt),u=c("skeleton",t),[d,m,g]=Zu(u),v=tr(e,["prefixCls","className"]),y=te(u,`${u}-element`,{[`${u}-active`]:i},n,r,m,g);return d(h.createElement("div",{className:y},h.createElement(Yp,Object.assign({prefixCls:`${u}-avatar`,shape:a,size:l},v))))},DF=e=>{const{prefixCls:t,className:n,rootClassName:r,active:i,block:a=!1,size:l="default"}=e,{getPrefixCls:c}=h.useContext(Tt),u=c("skeleton",t),[d,m,g]=Zu(u),v=tr(e,["prefixCls"]),y=te(u,`${u}-element`,{[`${u}-active`]:i,[`${u}-block`]:a},n,r,m,g);return d(h.createElement("div",{className:y},h.createElement(Yp,Object.assign({prefixCls:`${u}-button`,size:l},v))))},LF="M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z",kF=e=>{const{prefixCls:t,className:n,rootClassName:r,style:i,active:a}=e,{getPrefixCls:l}=h.useContext(Tt),c=l("skeleton",t),[u,d,m]=Zu(c),g=te(c,`${c}-element`,{[`${c}-active`]:a},n,r,d,m);return u(h.createElement("div",{className:g},h.createElement("div",{className:te(`${c}-image`,n),style:i},h.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${c}-image-svg`},h.createElement("title",null,"Image placeholder"),h.createElement("path",{d:LF,className:`${c}-image-path`})))))},BF=e=>{const{prefixCls:t,className:n,rootClassName:r,active:i,block:a,size:l="default"}=e,{getPrefixCls:c}=h.useContext(Tt),u=c("skeleton",t),[d,m,g]=Zu(u),v=tr(e,["prefixCls"]),y=te(u,`${u}-element`,{[`${u}-active`]:i,[`${u}-block`]:a},n,r,m,g);return d(h.createElement("div",{className:y},h.createElement(Yp,Object.assign({prefixCls:`${u}-input`,size:l},v))))},HF=e=>{const{prefixCls:t,className:n,rootClassName:r,style:i,active:a,children:l}=e,{getPrefixCls:c}=h.useContext(Tt),u=c("skeleton",t),[d,m,g]=Zu(u),v=te(u,`${u}-element`,{[`${u}-active`]:a},m,n,r,g);return d(h.createElement("div",{className:v},h.createElement("div",{className:te(`${u}-image`,n),style:i},l)))},FF=(e,t)=>{const{width:n,rows:r=2}=t;if(Array.isArray(n))return n[e];if(r-1===e)return n},VF=e=>{const{prefixCls:t,className:n,style:r,rows:i=0}=e,a=Array.from({length:i}).map((l,c)=>h.createElement("li",{key:c,style:{width:FF(c,e)}}));return h.createElement("ul",{className:te(t,n),style:r},a)},UF=({prefixCls:e,className:t,width:n,style:r})=>h.createElement("h3",{className:te(e,t),style:Object.assign({width:n},r)});function J0(e){return e&&typeof e=="object"?e:{}}function qF(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function KF(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}function WF(e,t){const n={};return(!e||!t)&&(n.width="61%"),!e&&t?n.rows=3:n.rows=2,n}const Ju=e=>{const{prefixCls:t,loading:n,className:r,rootClassName:i,style:a,children:l,avatar:c=!1,title:u=!0,paragraph:d=!0,active:m,round:g}=e,{getPrefixCls:v,direction:y,className:b,style:x}=Yr("skeleton"),S=v("skeleton",t),[w,$,O]=Zu(S);if(n||!("loading"in e)){const T=!!c,_=!!u,R=!!d;let M;if(T){const I=Object.assign(Object.assign({prefixCls:`${S}-avatar`},qF(_,R)),J0(c));M=h.createElement("div",{className:`${S}-header`},h.createElement(Yp,Object.assign({},I)))}let P;if(_||R){let I;if(_){const A=Object.assign(Object.assign({prefixCls:`${S}-title`},KF(T,R)),J0(u));I=h.createElement(UF,Object.assign({},A))}let B;if(R){const A=Object.assign(Object.assign({prefixCls:`${S}-paragraph`},WF(T,_)),J0(d));B=h.createElement(VF,Object.assign({},A))}P=h.createElement("div",{className:`${S}-content`},I,B)}const N=te(S,{[`${S}-with-avatar`]:T,[`${S}-active`]:m,[`${S}-rtl`]:y==="rtl",[`${S}-round`]:g},b,r,i,$,O);return w(h.createElement("div",{className:N,style:Object.assign(Object.assign({},x),a)},M,P))}return l??null};Ju.Button=DF;Ju.Avatar=jF;Ju.Input=BF;Ju.Image=kF;Ju.Node=HF;const GF=e=>{const{componentCls:t}=e;return{[t]:{display:"flex",flexFlow:"row wrap",minWidth:0,"&::before, &::after":{display:"flex"},"&-no-wrap":{flexWrap:"nowrap"},"&-start":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"flex-end"},"&-space-between":{justifyContent:"space-between"},"&-space-around":{justifyContent:"space-around"},"&-space-evenly":{justifyContent:"space-evenly"},"&-top":{alignItems:"flex-start"},"&-middle":{alignItems:"center"},"&-bottom":{alignItems:"flex-end"}}}},XF=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},QF=(e,t)=>{const{prefixCls:n,componentCls:r,gridColumns:i}=e,a={};for(let l=i;l>=0;l--)l===0?(a[`${r}${t}-${l}`]={display:"none"},a[`${r}-push-${l}`]={insetInlineStart:"auto"},a[`${r}-pull-${l}`]={insetInlineEnd:"auto"},a[`${r}${t}-push-${l}`]={insetInlineStart:"auto"},a[`${r}${t}-pull-${l}`]={insetInlineEnd:"auto"},a[`${r}${t}-offset-${l}`]={marginInlineStart:0},a[`${r}${t}-order-${l}`]={order:0}):(a[`${r}${t}-${l}`]=[{"--ant-display":"block",display:"block"},{display:"var(--ant-display)",flex:`0 0 ${l/i*100}%`,maxWidth:`${l/i*100}%`}],a[`${r}${t}-push-${l}`]={insetInlineStart:`${l/i*100}%`},a[`${r}${t}-pull-${l}`]={insetInlineEnd:`${l/i*100}%`},a[`${r}${t}-offset-${l}`]={marginInlineStart:`${l/i*100}%`},a[`${r}${t}-order-${l}`]={order:l});return a[`${r}${t}-flex`]={flex:`var(--${n}${t}-flex)`},a},ox=(e,t)=>QF(e,t),YF=(e,t,n)=>({[`@media (min-width: ${ae(t)})`]:Object.assign({},ox(e,n))}),ZF=()=>({}),JF=()=>({}),e9=Nn("Grid",GF,ZF),t9=e=>({xs:e.screenXSMin,sm:e.screenSMMin,md:e.screenMDMin,lg:e.screenLGMin,xl:e.screenXLMin,xxl:e.screenXXLMin}),n9=Nn("Grid",e=>{const t=sn(e,{gridColumns:24}),n=t9(t);return delete n.xs,[XF(t),ox(t,""),ox(t,"-xs"),Object.keys(n).map(r=>YF(t,n[r],`-${r}`)).reduce((r,i)=>Object.assign(Object.assign({},r),i),{})]},JF),r9=e=>{const{componentCls:t,notificationMarginEdge:n,animationMaxHeight:r}=e,i=`${t}-notice`,a=new ln("antNotificationFadeIn",{"0%":{transform:"translate3d(100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}}),l=new ln("antNotificationTopFadeIn",{"0%":{top:-r,opacity:0},"100%":{top:0,opacity:1}}),c=new ln("antNotificationBottomFadeIn",{"0%":{bottom:e.calc(r).mul(-1).equal(),opacity:0},"100%":{bottom:0,opacity:1}}),u=new ln("antNotificationLeftFadeIn",{"0%":{transform:"translate3d(-100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}});return{[t]:{[`&${t}-top, &${t}-bottom`]:{marginInline:0,[i]:{marginInline:"auto auto"}},[`&${t}-top`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:l}},[`&${t}-bottom`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:c}},[`&${t}-topRight, &${t}-bottomRight`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:a}},[`&${t}-topLeft, &${t}-bottomLeft`]:{marginRight:{value:0,_skip_check_:!0},marginLeft:{value:n,_skip_check_:!0},[i]:{marginInlineEnd:"auto",marginInlineStart:0},[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:u}}}}},i9=["top","topLeft","topRight","bottom","bottomLeft","bottomRight"],a9={topLeft:"left",topRight:"right",bottomLeft:"left",bottomRight:"right",top:"left",bottom:"left"},o9=(e,t)=>{const{componentCls:n}=e;return{[`${n}-${t}`]:{[`&${n}-stack > ${n}-notice-wrapper`]:{[t.startsWith("top")?"top":"bottom"]:0,[a9[t]]:{value:0,_skip_check_:!0}}}}},l9=e=>{const t={};for(let n=1;n<e.notificationStackLayer;n++)t[`&:nth-last-child(${n+1})`]={overflow:"hidden",[`& > ${e.componentCls}-notice`]:{opacity:0,transition:`opacity ${e.motionDurationMid}`}};return Object.assign({[`&:not(:nth-last-child(-n+${e.notificationStackLayer}))`]:{opacity:0,overflow:"hidden",color:"transparent",pointerEvents:"none"}},t)},s9=e=>{const t={};for(let n=1;n<e.notificationStackLayer;n++)t[`&:nth-last-child(${n+1})`]={background:e.colorBgBlur,backdropFilter:"blur(10px)","-webkit-backdrop-filter":"blur(10px)"};return Object.assign({},t)},c9=e=>{const{componentCls:t}=e;return Object.assign({[`${t}-stack`]:{[`& > ${t}-notice-wrapper`]:Object.assign({transition:`transform ${e.motionDurationSlow}, backdrop-filter 0s`,willChange:"transform, opacity",position:"absolute"},l9(e))},[`${t}-stack:not(${t}-stack-expanded)`]:{[`& > ${t}-notice-wrapper`]:Object.assign({},s9(e))},[`${t}-stack${t}-stack-expanded`]:{[`& > ${t}-notice-wrapper`]:{"&:not(:nth-last-child(-n + 1))":{opacity:1,overflow:"unset",color:"inherit",pointerEvents:"auto",[`& > ${e.componentCls}-notice`]:{opacity:1}},"&:after":{content:'""',position:"absolute",height:e.margin,width:"100%",insetInline:0,bottom:e.calc(e.margin).mul(-1).equal(),background:"transparent",pointerEvents:"auto"}}}},i9.map(n=>o9(e,n)).reduce((n,r)=>Object.assign(Object.assign({},n),r),{}))},wP=e=>{const{iconCls:t,componentCls:n,boxShadow:r,fontSizeLG:i,notificationMarginBottom:a,borderRadiusLG:l,colorSuccess:c,colorInfo:u,colorWarning:d,colorError:m,colorTextHeading:g,notificationBg:v,notificationPadding:y,notificationMarginEdge:b,notificationProgressBg:x,notificationProgressHeight:S,fontSize:w,lineHeight:$,width:O,notificationIconSize:T,colorText:_,colorSuccessBg:R,colorErrorBg:M,colorInfoBg:P,colorWarningBg:N}=e,I=`${n}-notice`;return{position:"relative",marginBottom:a,marginInlineStart:"auto",background:v,borderRadius:l,boxShadow:r,[I]:{padding:y,width:O,maxWidth:`calc(100vw - ${ae(e.calc(b).mul(2).equal())})`,lineHeight:$,wordWrap:"break-word",borderRadius:l,overflow:"hidden","&-success":R?{background:R}:{},"&-error":M?{background:M}:{},"&-info":P?{background:P}:{},"&-warning":N?{background:N}:{}},[`${I}-message`]:{color:g,fontSize:i,lineHeight:e.lineHeightLG},[`${I}-description`]:{fontSize:w,color:_,marginTop:e.marginXS},[`${I}-closable ${I}-message`]:{paddingInlineEnd:e.paddingLG},[`${I}-with-icon ${I}-message`]:{marginInlineStart:e.calc(e.marginSM).add(T).equal(),fontSize:i},[`${I}-with-icon ${I}-description`]:{marginInlineStart:e.calc(e.marginSM).add(T).equal(),fontSize:w},[`${I}-icon`]:{position:"absolute",fontSize:T,lineHeight:1,[`&-success${t}`]:{color:c},[`&-info${t}`]:{color:u},[`&-warning${t}`]:{color:d},[`&-error${t}`]:{color:m}},[`${I}-close`]:Object.assign({position:"absolute",top:e.notificationPaddingVertical,insetInlineEnd:e.notificationPaddingHorizontal,color:e.colorIcon,outline:"none",width:e.notificationCloseButtonSize,height:e.notificationCloseButtonSize,borderRadius:e.borderRadiusSM,transition:`background-color ${e.motionDurationMid}, color ${e.motionDurationMid}`,display:"flex",alignItems:"center",justifyContent:"center",background:"none",border:"none","&:hover":{color:e.colorIconHover,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},Lo(e)),[`${I}-progress`]:{position:"absolute",display:"block",appearance:"none",inlineSize:`calc(100% - ${ae(l)} * 2)`,left:{_skip_check_:!0,value:l},right:{_skip_check_:!0,value:l},bottom:0,blockSize:S,border:0,"&, &::-webkit-progress-bar":{borderRadius:l,backgroundColor:"rgba(0, 0, 0, 0.04)"},"&::-moz-progress-bar":{background:x},"&::-webkit-progress-value":{borderRadius:l,background:x}},[`${I}-actions`]:{float:"right",marginTop:e.marginSM}}},u9=e=>{const{componentCls:t,notificationMarginBottom:n,notificationMarginEdge:r,motionDurationMid:i,motionEaseInOut:a}=e,l=`${t}-notice`,c=new ln("antNotificationFadeOut",{"0%":{maxHeight:e.animationMaxHeight,marginBottom:n},"100%":{maxHeight:0,marginBottom:0,paddingTop:0,paddingBottom:0,opacity:0}});return[{[t]:Object.assign(Object.assign({},lr(e)),{position:"fixed",zIndex:e.zIndexPopup,marginRight:{value:r,_skip_check_:!0},[`${t}-hook-holder`]:{position:"relative"},[`${t}-fade-appear-prepare`]:{opacity:"0 !important"},[`${t}-fade-enter, ${t}-fade-appear`]:{animationDuration:e.motionDurationMid,animationTimingFunction:a,animationFillMode:"both",opacity:0,animationPlayState:"paused"},[`${t}-fade-leave`]:{animationTimingFunction:a,animationFillMode:"both",animationDuration:i,animationPlayState:"paused"},[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationPlayState:"running"},[`${t}-fade-leave${t}-fade-leave-active`]:{animationName:c,animationPlayState:"running"},"&-rtl":{direction:"rtl",[`${l}-actions`]:{float:"left"}}})},{[t]:{[`${l}-wrapper`]:wP(e)}}]},EP=e=>({zIndexPopup:e.zIndexPopupBase+jB+50,width:384,colorSuccessBg:void 0,colorErrorBg:void 0,colorInfoBg:void 0,colorWarningBg:void 0}),$P=e=>{const t=e.paddingMD,n=e.paddingLG;return sn(e,{notificationBg:e.colorBgElevated,notificationPaddingVertical:t,notificationPaddingHorizontal:n,notificationIconSize:e.calc(e.fontSizeLG).mul(e.lineHeightLG).equal(),notificationCloseButtonSize:e.calc(e.controlHeightLG).mul(.55).equal(),notificationMarginBottom:e.margin,notificationPadding:`${ae(e.paddingMD)} ${ae(e.paddingContentHorizontalLG)}`,notificationMarginEdge:e.marginLG,animationMaxHeight:150,notificationStackLayer:3,notificationProgressHeight:2,notificationProgressBg:`linear-gradient(90deg, ${e.colorPrimaryBorderHover}, ${e.colorPrimary})`})},OP=Nn("Notification",e=>{const t=$P(e);return[u9(t),r9(t),c9(t)]},EP),d9=Wu(["Notification","PurePanel"],e=>{const t=`${e.componentCls}-notice`,n=$P(e);return{[`${t}-pure-panel`]:Object.assign(Object.assign({},wP(n)),{width:n.width,maxWidth:`calc(100vw - ${ae(e.calc(n.notificationMarginEdge).mul(2).equal())})`,margin:0})}},EP);var f9=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function t1(e,t){return t===null||t===!1?null:t||h.createElement(Qu,{className:`${e}-close-icon`})}const h9={success:Dp,info:WM,error:Xu,warning:ph},RP=e=>{const{prefixCls:t,icon:n,type:r,message:i,description:a,actions:l,role:c="alert"}=e;let u=null;return n?u=h.createElement("span",{className:`${t}-icon`},n):r&&(u=h.createElement(h9[r]||null,{className:te(`${t}-icon`,`${t}-icon-${r}`)})),h.createElement("div",{className:te({[`${t}-with-icon`]:u}),role:c},u,h.createElement("div",{className:`${t}-message`},i),a&&h.createElement("div",{className:`${t}-description`},a),l&&h.createElement("div",{className:`${t}-actions`},l))},m9=e=>{const{prefixCls:t,className:n,icon:r,type:i,message:a,description:l,btn:c,actions:u,closable:d=!0,closeIcon:m,className:g}=e,v=f9(e,["prefixCls","className","icon","type","message","description","btn","actions","closable","closeIcon","className"]),{getPrefixCls:y}=h.useContext(Tt),b=u??c,x=t||y("notification"),S=`${x}-notice`,w=Yi(x),[$,O,T]=OP(x,w);return $(h.createElement("div",{className:te(`${S}-pure-panel`,O,n,T,w)},h.createElement(d9,{prefixCls:x}),h.createElement(YM,Object.assign({},v,{prefixCls:x,eventKey:"pure",duration:null,closable:d,className:te({notificationClassName:g}),closeIcon:t1(x,m),content:h.createElement(RP,{prefixCls:S,icon:r,type:i,message:a,description:l,actions:b})}))))};function g9(e,t,n){let r;switch(e){case"top":r={left:"50%",transform:"translateX(-50%)",right:"auto",top:t,bottom:"auto"};break;case"topLeft":r={left:0,top:t,bottom:"auto"};break;case"topRight":r={right:0,top:t,bottom:"auto"};break;case"bottom":r={left:"50%",transform:"translateX(-50%)",right:"auto",top:"auto",bottom:n};break;case"bottomLeft":r={left:0,top:"auto",bottom:n};break;default:r={right:0,top:"auto",bottom:n};break}return r}function p9(e){return{motionName:`${e}-fade`}}function v9(e,t,n){return typeof e<"u"?e:typeof(t==null?void 0:t.closeIcon)<"u"?t.closeIcon:n==null?void 0:n.closeIcon}var y9=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const $R=24,b9=4.5,S9="topRight",x9=({children:e,prefixCls:t})=>{const n=Yi(t),[r,i,a]=OP(t,n);return r(re.createElement(xB,{classNames:{list:te(i,a,n)}},e))},C9=(e,{prefixCls:t,key:n})=>re.createElement(x9,{prefixCls:t,key:n},e),w9=re.forwardRef((e,t)=>{const{top:n,bottom:r,prefixCls:i,getContainer:a,maxCount:l,rtl:c,onAllRemoved:u,stack:d,duration:m,pauseOnHover:g=!0,showProgress:v}=e,{getPrefixCls:y,getPopupContainer:b,notification:x,direction:S}=h.useContext(Tt),[,w]=Zr(),$=i||y("notification"),O=P=>g9(P,n??$R,r??$R),T=()=>te({[`${$}-rtl`]:c??S==="rtl"}),_=()=>p9($),[R,M]=_B({prefixCls:$,style:O,className:T,motion:_,closable:!0,closeIcon:t1($),duration:m??b9,getContainer:()=>(a==null?void 0:a())||(b==null?void 0:b())||document.body,maxCount:l,pauseOnHover:g,showProgress:v,onAllRemoved:u,renderNotifications:C9,stack:d===!1?!1:{threshold:typeof d=="object"?d==null?void 0:d.threshold:void 0,offset:8,gap:w.margin}});return re.useImperativeHandle(t,()=>Object.assign(Object.assign({},R),{prefixCls:$,notification:x})),M});function TP(e){const t=re.useRef(null);return mh(),[re.useMemo(()=>{const r=c=>{var u;if(!t.current)return;const{open:d,prefixCls:m,notification:g}=t.current,v=`${m}-notice`,{message:y,description:b,icon:x,type:S,btn:w,actions:$,className:O,style:T,role:_="alert",closeIcon:R,closable:M}=c,P=y9(c,["message","description","icon","type","btn","actions","className","style","role","closeIcon","closable"]),N=$??w,I=t1(v,v9(R,e,g));return d(Object.assign(Object.assign({placement:(u=e==null?void 0:e.placement)!==null&&u!==void 0?u:S9},P),{content:re.createElement(RP,{prefixCls:v,icon:x,type:S,message:y,description:b,actions:N,role:_}),className:te(S&&`${v}-${S}`,O,g==null?void 0:g.className),style:Object.assign(Object.assign({},g==null?void 0:g.style),T),closeIcon:I,closable:M??!!I}))},a={open:r,destroy:c=>{var u,d;c!==void 0?(u=t.current)===null||u===void 0||u.close(c):(d=t.current)===null||d===void 0||d.destroy()}};return["success","info","warning","error"].forEach(c=>{a[c]=u=>r(Object.assign(Object.assign({},u),{type:c}))}),a},[]),re.createElement(w9,Object.assign({key:"notification-holder"},e,{ref:t}))]}function E9(e){return TP(e)}const $9=re.createContext({});function O9(e){return t=>h.createElement(tc,{theme:{token:{motion:!1,zIndexPopupBase:0}}},h.createElement(e,Object.assign({},t)))}const _P=(e,t,n,r,i)=>O9(l=>{const{prefixCls:c,style:u}=l,d=h.useRef(null),[m,g]=h.useState(0),[v,y]=h.useState(0),[b,x]=vr(!1,{value:l.open}),{getPrefixCls:S}=h.useContext(Tt),w=S(r||"select",c);h.useEffect(()=>{if(x(!0),typeof ResizeObserver<"u"){const T=new ResizeObserver(R=>{const M=R[0].target;g(M.offsetHeight+8),y(M.offsetWidth)}),_=setInterval(()=>{var R;const M=i?`.${i(w)}`:`.${w}-dropdown`,P=(R=d.current)===null||R===void 0?void 0:R.querySelector(M);P&&(clearInterval(_),T.observe(P))},10);return()=>{clearInterval(_),T.disconnect()}}},[w]);let $=Object.assign(Object.assign({},l),{style:Object.assign(Object.assign({},u),{margin:0}),open:b,visible:b,getPopupContainer:()=>d.current});t&&Object.assign($,{[t]:{overflow:{adjustX:!1,adjustY:!1}}});const O={paddingBottom:m,position:"relative",minWidth:v};return h.createElement("div",{ref:d,style:O},h.createElement(e,Object.assign({},$)))}),n1=(function(){if(typeof navigator>"u"||typeof window>"u")return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(e==null?void 0:e.substr(0,4))});var Jp=function(t){var n=t.className,r=t.customizeIcon,i=t.customizeIconProps,a=t.children,l=t.onMouseDown,c=t.onClick,u=typeof r=="function"?r(i):r;return h.createElement("span",{className:n,onMouseDown:function(m){m.preventDefault(),l==null||l(m)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:c,"aria-hidden":!0},u!==void 0?u:h.createElement("span",{className:te(n.split(/\s+/).map(function(d){return"".concat(d,"-icon")}))},a))},R9=function(t,n,r,i,a){var l=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,c=arguments.length>6?arguments[6]:void 0,u=arguments.length>7?arguments[7]:void 0,d=re.useMemo(function(){if(pt(i)==="object")return i.clearIcon;if(a)return a},[i,a]),m=re.useMemo(function(){return!!(!l&&i&&(r.length||c)&&!(u==="combobox"&&c===""))},[i,l,r.length,c,u]);return{allowClear:m,clearIcon:re.createElement(Jp,{className:"".concat(t,"-clear"),onMouseDown:n,customizeIcon:d},"×")}},NP=h.createContext(null);function T9(){return h.useContext(NP)}function _9(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,t=h.useState(!1),n=me(t,2),r=n[0],i=n[1],a=h.useRef(null),l=function(){window.clearTimeout(a.current)};h.useEffect(function(){return l},[]);var c=function(d,m){l(),a.current=window.setTimeout(function(){i(d),m&&m()},e)};return[r,c,l]}function IP(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,t=h.useRef(null),n=h.useRef(null);h.useEffect(function(){return function(){window.clearTimeout(n.current)}},[]);function r(i){(i||t.current===null)&&(t.current=i),window.clearTimeout(n.current),n.current=window.setTimeout(function(){t.current=null},e)}return[function(){return t.current},r]}function N9(e,t,n,r){var i=h.useRef(null);i.current={open:t,triggerOpen:n,customizedTrigger:r},h.useEffect(function(){function a(l){var c;if(!((c=i.current)!==null&&c!==void 0&&c.customizedTrigger)){var u=l.target;u.shadowRoot&&l.composed&&(u=l.composedPath()[0]||u),i.current.open&&e().filter(function(d){return d}).every(function(d){return!d.contains(u)&&d!==u})&&i.current.triggerOpen(!1)}}return window.addEventListener("mousedown",a),function(){return window.removeEventListener("mousedown",a)}},[])}function I9(e){return e&&![ot.ESC,ot.SHIFT,ot.BACKSPACE,ot.TAB,ot.WIN_KEY,ot.ALT,ot.META,ot.WIN_KEY_RIGHT,ot.CTRL,ot.SEMICOLON,ot.EQUALS,ot.CAPS_LOCK,ot.CONTEXT_MENU,ot.F1,ot.F2,ot.F3,ot.F4,ot.F5,ot.F6,ot.F7,ot.F8,ot.F9,ot.F10,ot.F11,ot.F12].includes(e)}var M9=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],qc=void 0;function P9(e,t){var n=e.prefixCls,r=e.invalidate,i=e.item,a=e.renderItem,l=e.responsive,c=e.responsiveDisabled,u=e.registerSize,d=e.itemKey,m=e.className,g=e.style,v=e.children,y=e.display,b=e.order,x=e.component,S=x===void 0?"div":x,w=jt(e,M9),$=l&&!y;function O(P){u(d,P)}h.useEffect(function(){return function(){O(null)}},[]);var T=a&&i!==qc?a(i,{index:b}):v,_;r||(_={opacity:$?0:1,height:$?0:qc,overflowY:$?"hidden":qc,order:l?b:qc,pointerEvents:$?"none":qc,position:$?"absolute":qc});var R={};$&&(R["aria-hidden"]=!0);var M=h.createElement(S,Ue({className:te(!r&&n,m),style:J(J({},_),g)},R,w,{ref:t}),T);return l&&(M=h.createElement(ya,{onResize:function(N){var I=N.offsetWidth;O(I)},disabled:c},M)),M}var du=h.forwardRef(P9);du.displayName="Item";function A9(e){if(typeof MessageChannel>"u")Tn(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}function z9(){var e=h.useRef(null),t=function(r){e.current||(e.current=[],A9(function(){kl.unstable_batchedUpdates(function(){e.current.forEach(function(i){i()}),e.current=null})})),e.current.push(r)};return t}function Kc(e,t){var n=h.useState(t),r=me(n,2),i=r[0],a=r[1],l=cr(function(c){e(function(){a(c)})});return[i,l]}var Vg=re.createContext(null),j9=["component"],D9=["className"],L9=["className"],k9=function(t,n){var r=h.useContext(Vg);if(!r){var i=t.component,a=i===void 0?"div":i,l=jt(t,j9);return h.createElement(a,Ue({},l,{ref:n}))}var c=r.className,u=jt(r,D9),d=t.className,m=jt(t,L9);return h.createElement(Vg.Provider,{value:null},h.createElement(du,Ue({ref:n,className:te(c,d)},u,m)))},MP=h.forwardRef(k9);MP.displayName="RawItem";var B9=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","prefix","suffix","component","itemComponent","onVisibleChange"],PP="responsive",AP="invalidate";function H9(e){return"+ ".concat(e.length," ...")}function F9(e,t){var n=e.prefixCls,r=n===void 0?"rc-overflow":n,i=e.data,a=i===void 0?[]:i,l=e.renderItem,c=e.renderRawItem,u=e.itemKey,d=e.itemWidth,m=d===void 0?10:d,g=e.ssr,v=e.style,y=e.className,b=e.maxCount,x=e.renderRest,S=e.renderRawRest,w=e.prefix,$=e.suffix,O=e.component,T=O===void 0?"div":O,_=e.itemComponent,R=e.onVisibleChange,M=jt(e,B9),P=g==="full",N=z9(),I=Kc(N,null),B=me(I,2),A=B[0],k=B[1],j=A||0,V=Kc(N,new Map),z=me(V,2),F=z[0],q=z[1],Z=Kc(N,0),H=me(Z,2),U=H[0],K=H[1],D=Kc(N,0),X=me(D,2),Q=X[0],Y=X[1],ie=Kc(N,0),oe=me(ie,2),le=oe[0],Ce=oe[1],ce=Kc(N,0),de=me(ce,2),ye=de[0],ve=de[1],ge=h.useState(null),fe=me(ge,2),we=fe[0],Te=fe[1],je=h.useState(null),ze=me(je,2),Oe=ze[0],De=ze[1],Ne=h.useMemo(function(){return Oe===null&&P?Number.MAX_SAFE_INTEGER:Oe||0},[Oe,A]),be=h.useState(!1),Ye=me(be,2),he=Ye[0],$e=Ye[1],Me="".concat(r,"-item"),Ae=Math.max(U,Q),Xe=b===PP,Fe=a.length&&Xe,Ie=b===AP,Ge=Fe||typeof b=="number"&&a.length>b,Le=h.useMemo(function(){var Be=a;return Fe?A===null&&P?Be=a:Be=a.slice(0,Math.min(a.length,j/m)):typeof b=="number"&&(Be=a.slice(0,b)),Be},[a,m,A,b,Fe]),Ze=h.useMemo(function(){return Fe?a.slice(Ne+1):a.slice(Le.length)},[a,Le,Fe,Ne]),_e=h.useCallback(function(Be,He){var Qe;return typeof u=="function"?u(Be):(Qe=u&&(Be==null?void 0:Be[u]))!==null&&Qe!==void 0?Qe:He},[u]),tt=h.useCallback(l||function(Be){return Be},[l]);function $t(Be,He,Qe){Oe===Be&&(He===void 0||He===we)||(De(Be),Qe||($e(Be<a.length-1),R==null||R(Be)),He!==void 0&&Te(He))}function wt(Be,He){k(He.clientWidth)}function nn(Be,He){q(function(Qe){var ut=new Map(Qe);return He===null?ut.delete(Be):ut.set(Be,He),ut})}function cn(Be,He){Y(He),K(Q)}function jn(Be,He){Ce(He)}function $n(Be,He){ve(He)}function rn(Be){return F.get(_e(Le[Be],Be))}on(function(){if(j&&typeof Ae=="number"&&Le){var Be=le+ye,He=Le.length,Qe=He-1;if(!He){$t(0,null);return}for(var ut=0;ut<He;ut+=1){var dt=rn(ut);if(P&&(dt=dt||0),dt===void 0){$t(ut-1,void 0,!0);break}if(Be+=dt,Qe===0&&Be<=j||ut===Qe-1&&Be+rn(Qe)<=j){$t(Qe,null);break}else if(Be+Ae>j){$t(ut-1,Be-dt-ye+Q);break}}$&&rn(0)+ye>j&&Te(null)}},[j,F,Q,le,ye,_e,Le]);var kt=he&&!!Ze.length,Mt={};we!==null&&Fe&&(Mt={position:"absolute",left:we,top:0});var un={prefixCls:Me,responsive:Fe,component:_,invalidate:Ie},Jt=c?function(Be,He){var Qe=_e(Be,He);return h.createElement(Vg.Provider,{key:Qe,value:J(J({},un),{},{order:He,item:Be,itemKey:Qe,registerSize:nn,display:He<=Ne})},c(Be,He))}:function(Be,He){var Qe=_e(Be,He);return h.createElement(du,Ue({},un,{order:He,key:Qe,item:Be,renderItem:tt,itemKey:Qe,registerSize:nn,display:He<=Ne}))},st={order:kt?Ne:Number.MAX_SAFE_INTEGER,className:"".concat(Me,"-rest"),registerSize:cn,display:kt},Pt=x||H9,vt=S?h.createElement(Vg.Provider,{value:J(J({},un),st)},S(Ze)):h.createElement(du,Ue({},un,st),typeof Pt=="function"?Pt(Ze):Pt),Ke=h.createElement(T,Ue({className:te(!Ie&&r,y),style:v,ref:t},M),w&&h.createElement(du,Ue({},un,{responsive:Xe,responsiveDisabled:!Fe,order:-1,className:"".concat(Me,"-prefix"),registerSize:jn,display:!0}),w),Le.map(Jt),Ge?vt:null,$&&h.createElement(du,Ue({},un,{responsive:Xe,responsiveDisabled:!Fe,order:Ne,className:"".concat(Me,"-suffix"),registerSize:$n,display:!0,style:Mt}),$));return Xe?h.createElement(ya,{onResize:wt,disabled:!Fe},Ke):Ke}var Ja=h.forwardRef(F9);Ja.displayName="Overflow";Ja.Item=MP;Ja.RESPONSIVE=PP;Ja.INVALIDATE=AP;function V9(e,t,n){var r=J(J({},e),t);return Object.keys(t).forEach(function(i){var a=t[i];typeof a=="function"&&(r[i]=function(){for(var l,c=arguments.length,u=new Array(c),d=0;d<c;d++)u[d]=arguments[d];return a.apply(void 0,u),(l=e[i])===null||l===void 0?void 0:l.call.apply(l,[e].concat(u))})}),r}var U9=["prefixCls","id","inputElement","autoFocus","autoComplete","editable","activeDescendantId","value","open","attrs"],q9=function(t,n){var r=t.prefixCls,i=t.id,a=t.inputElement,l=t.autoFocus,c=t.autoComplete,u=t.editable,d=t.activeDescendantId,m=t.value,g=t.open,v=t.attrs,y=jt(t,U9),b=a||h.createElement("input",null),x=b,S=x.ref,w=x.props;return"maxLength"in b.props,b=h.cloneElement(b,J(J(J({type:"search"},V9(y,w)),{},{id:i,ref:gi(n,S),autoComplete:c||"off",autoFocus:l,className:te("".concat(r,"-selection-search-input"),w==null?void 0:w.className),role:"combobox","aria-expanded":g||!1,"aria-haspopup":"listbox","aria-owns":"".concat(i,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(i,"_list"),"aria-activedescendant":g?d:void 0},v),{},{value:u?m:"",readOnly:!u,unselectable:u?null:"on",style:J(J({},w.style),{},{opacity:u?null:0})})),b},zP=h.forwardRef(q9);function jP(e){return Array.isArray(e)?e:e!==void 0?[e]:[]}var K9=typeof window<"u"&&window.document&&window.document.documentElement,W9=K9;function G9(e){return e!=null}function X9(e){return!e&&e!==0}function OR(e){return["string","number"].includes(pt(e))}function DP(e){var t=void 0;return e&&(OR(e.title)?t=e.title.toString():OR(e.label)&&(t=e.label.toString())),t}function Q9(e,t){W9?h.useLayoutEffect(e,t):h.useEffect(e,t)}function Y9(e){var t;return(t=e.key)!==null&&t!==void 0?t:e.value}var RR=function(t){t.preventDefault(),t.stopPropagation()},Z9=function(t){var n=t.id,r=t.prefixCls,i=t.values,a=t.open,l=t.searchValue,c=t.autoClearSearchValue,u=t.inputRef,d=t.placeholder,m=t.disabled,g=t.mode,v=t.showSearch,y=t.autoFocus,b=t.autoComplete,x=t.activeDescendantId,S=t.tabIndex,w=t.removeIcon,$=t.maxTagCount,O=t.maxTagTextLength,T=t.maxTagPlaceholder,_=T===void 0?function(ve){return"+ ".concat(ve.length," ...")}:T,R=t.tagRender,M=t.onToggleOpen,P=t.onRemove,N=t.onInputChange,I=t.onInputPaste,B=t.onInputKeyDown,A=t.onInputMouseDown,k=t.onInputCompositionStart,j=t.onInputCompositionEnd,V=t.onInputBlur,z=h.useRef(null),F=h.useState(0),q=me(F,2),Z=q[0],H=q[1],U=h.useState(!1),K=me(U,2),D=K[0],X=K[1],Q="".concat(r,"-selection"),Y=a||g==="multiple"&&c===!1||g==="tags"?l:"",ie=g==="tags"||g==="multiple"&&c===!1||v&&(a||D);Q9(function(){H(z.current.scrollWidth)},[Y]);var oe=function(ge,fe,we,Te,je){return h.createElement("span",{title:DP(ge),className:te("".concat(Q,"-item"),G({},"".concat(Q,"-item-disabled"),we))},h.createElement("span",{className:"".concat(Q,"-item-content")},fe),Te&&h.createElement(Jp,{className:"".concat(Q,"-item-remove"),onMouseDown:RR,onClick:je,customizeIcon:w},"×"))},le=function(ge,fe,we,Te,je,ze){var Oe=function(Ne){RR(Ne),M(!a)};return h.createElement("span",{onMouseDown:Oe},R({label:fe,value:ge,disabled:we,closable:Te,onClose:je,isMaxTag:!!ze}))},Ce=function(ge){var fe=ge.disabled,we=ge.label,Te=ge.value,je=!m&&!fe,ze=we;if(typeof O=="number"&&(typeof we=="string"||typeof we=="number")){var Oe=String(ze);Oe.length>O&&(ze="".concat(Oe.slice(0,O),"..."))}var De=function(be){be&&be.stopPropagation(),P(ge)};return typeof R=="function"?le(Te,ze,fe,je,De):oe(ge,ze,fe,je,De)},ce=function(ge){if(!i.length)return null;var fe=typeof _=="function"?_(ge):_;return typeof R=="function"?le(void 0,fe,!1,!1,void 0,!0):oe({title:fe},fe,!1)},de=h.createElement("div",{className:"".concat(Q,"-search"),style:{width:Z},onFocus:function(){X(!0)},onBlur:function(){X(!1)}},h.createElement(zP,{ref:u,open:a,prefixCls:r,id:n,inputElement:null,disabled:m,autoFocus:y,autoComplete:b,editable:ie,activeDescendantId:x,value:Y,onKeyDown:B,onMouseDown:A,onChange:N,onPaste:I,onCompositionStart:k,onCompositionEnd:j,onBlur:V,tabIndex:S,attrs:La(t,!0)}),h.createElement("span",{ref:z,className:"".concat(Q,"-search-mirror"),"aria-hidden":!0},Y," ")),ye=h.createElement(Ja,{prefixCls:"".concat(Q,"-overflow"),data:i,renderItem:Ce,renderRest:ce,suffix:de,itemKey:Y9,maxCount:$});return h.createElement("span",{className:"".concat(Q,"-wrap")},ye,!i.length&&!Y&&h.createElement("span",{className:"".concat(Q,"-placeholder")},d))},J9=function(t){var n=t.inputElement,r=t.prefixCls,i=t.id,a=t.inputRef,l=t.disabled,c=t.autoFocus,u=t.autoComplete,d=t.activeDescendantId,m=t.mode,g=t.open,v=t.values,y=t.placeholder,b=t.tabIndex,x=t.showSearch,S=t.searchValue,w=t.activeValue,$=t.maxLength,O=t.onInputKeyDown,T=t.onInputMouseDown,_=t.onInputChange,R=t.onInputPaste,M=t.onInputCompositionStart,P=t.onInputCompositionEnd,N=t.onInputBlur,I=t.title,B=h.useState(!1),A=me(B,2),k=A[0],j=A[1],V=m==="combobox",z=V||x,F=v[0],q=S||"";V&&w&&!k&&(q=w),h.useEffect(function(){V&&j(!1)},[V,w]);var Z=m!=="combobox"&&!g&&!x?!1:!!q,H=I===void 0?DP(F):I,U=h.useMemo(function(){return F?null:h.createElement("span",{className:"".concat(r,"-selection-placeholder"),style:Z?{visibility:"hidden"}:void 0},y)},[F,Z,y,r]);return h.createElement("span",{className:"".concat(r,"-selection-wrap")},h.createElement("span",{className:"".concat(r,"-selection-search")},h.createElement(zP,{ref:a,prefixCls:r,id:i,open:g,inputElement:n,disabled:l,autoFocus:c,autoComplete:u,editable:z,activeDescendantId:d,value:q,onKeyDown:O,onMouseDown:T,onChange:function(D){j(!0),_(D)},onPaste:R,onCompositionStart:M,onCompositionEnd:P,onBlur:N,tabIndex:b,attrs:La(t,!0),maxLength:V?$:void 0})),!V&&F?h.createElement("span",{className:"".concat(r,"-selection-item"),title:H,style:Z?{visibility:"hidden"}:void 0},F.label):null,U)},e7=function(t,n){var r=h.useRef(null),i=h.useRef(!1),a=t.prefixCls,l=t.open,c=t.mode,u=t.showSearch,d=t.tokenWithEnter,m=t.disabled,g=t.prefix,v=t.autoClearSearchValue,y=t.onSearch,b=t.onSearchSubmit,x=t.onToggleOpen,S=t.onInputKeyDown,w=t.onInputBlur,$=t.domRef;h.useImperativeHandle(n,function(){return{focus:function(H){r.current.focus(H)},blur:function(){r.current.blur()}}});var O=IP(0),T=me(O,2),_=T[0],R=T[1],M=function(H){var U=H.which,K=r.current instanceof HTMLTextAreaElement;!K&&l&&(U===ot.UP||U===ot.DOWN)&&H.preventDefault(),S&&S(H),U===ot.ENTER&&c==="tags"&&!i.current&&!l&&(b==null||b(H.target.value)),!(K&&!l&&~[ot.UP,ot.DOWN,ot.LEFT,ot.RIGHT].indexOf(U))&&I9(U)&&x(!0)},P=function(){R(!0)},N=h.useRef(null),I=function(H){y(H,!0,i.current)!==!1&&x(!0)},B=function(){i.current=!0},A=function(H){i.current=!1,c!=="combobox"&&I(H.target.value)},k=function(H){var U=H.target.value;if(d&&N.current&&/[\r\n]/.test(N.current)){var K=N.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");U=U.replace(K,N.current)}N.current=null,I(U)},j=function(H){var U=H.clipboardData,K=U==null?void 0:U.getData("text");N.current=K||""},V=function(H){var U=H.target;if(U!==r.current){var K=document.body.style.msTouchAction!==void 0;K?setTimeout(function(){r.current.focus()}):r.current.focus()}},z=function(H){var U=_();H.target!==r.current&&!U&&!(c==="combobox"&&m)&&H.preventDefault(),(c!=="combobox"&&(!u||!U)||!l)&&(l&&v!==!1&&y("",!0,!1),x())},F={inputRef:r,onInputKeyDown:M,onInputMouseDown:P,onInputChange:k,onInputPaste:j,onInputCompositionStart:B,onInputCompositionEnd:A,onInputBlur:w},q=c==="multiple"||c==="tags"?h.createElement(Z9,Ue({},t,F)):h.createElement(J9,Ue({},t,F));return h.createElement("div",{ref:$,className:"".concat(a,"-selector"),onClick:V,onMouseDown:z},g&&h.createElement("div",{className:"".concat(a,"-prefix")},g),q)},t7=h.forwardRef(e7);function n7(e){var t=e.prefixCls,n=e.align,r=e.arrow,i=e.arrowPos,a=r||{},l=a.className,c=a.content,u=i.x,d=u===void 0?0:u,m=i.y,g=m===void 0?0:m,v=h.useRef();if(!n||!n.points)return null;var y={position:"absolute"};if(n.autoArrow!==!1){var b=n.points[0],x=n.points[1],S=b[0],w=b[1],$=x[0],O=x[1];S===$||!["t","b"].includes(S)?y.top=g:S==="t"?y.top=0:y.bottom=0,w===O||!["l","r"].includes(w)?y.left=d:w==="l"?y.left=0:y.right=0}return h.createElement("div",{ref:v,className:te("".concat(t,"-arrow"),l),style:y},c)}function r7(e){var t=e.prefixCls,n=e.open,r=e.zIndex,i=e.mask,a=e.motion;return i?h.createElement(ao,Ue({},a,{motionAppear:!0,visible:n,removeOnLeave:!0}),function(l){var c=l.className;return h.createElement("div",{style:{zIndex:r},className:te("".concat(t,"-mask"),c)})}):null}var i7=h.memo(function(e){var t=e.children;return t},function(e,t){return t.cache}),a7=h.forwardRef(function(e,t){var n=e.popup,r=e.className,i=e.prefixCls,a=e.style,l=e.target,c=e.onVisibleChanged,u=e.open,d=e.keepDom,m=e.fresh,g=e.onClick,v=e.mask,y=e.arrow,b=e.arrowPos,x=e.align,S=e.motion,w=e.maskMotion,$=e.forceRender,O=e.getPopupContainer,T=e.autoDestroy,_=e.portal,R=e.zIndex,M=e.onMouseEnter,P=e.onMouseLeave,N=e.onPointerEnter,I=e.onPointerDownCapture,B=e.ready,A=e.offsetX,k=e.offsetY,j=e.offsetR,V=e.offsetB,z=e.onAlign,F=e.onPrepare,q=e.stretch,Z=e.targetWidth,H=e.targetHeight,U=typeof n=="function"?n():n,K=u||d,D=(O==null?void 0:O.length)>0,X=h.useState(!O||!D),Q=me(X,2),Y=Q[0],ie=Q[1];if(on(function(){!Y&&D&&l&&ie(!0)},[Y,D,l]),!Y)return null;var oe="auto",le={left:"-1000vw",top:"-1000vh",right:oe,bottom:oe};if(B||!u){var Ce,ce=x.points,de=x.dynamicInset||((Ce=x._experimental)===null||Ce===void 0?void 0:Ce.dynamicInset),ye=de&&ce[0][1]==="r",ve=de&&ce[0][0]==="b";ye?(le.right=j,le.left=oe):(le.left=A,le.right=oe),ve?(le.bottom=V,le.top=oe):(le.top=k,le.bottom=oe)}var ge={};return q&&(q.includes("height")&&H?ge.height=H:q.includes("minHeight")&&H&&(ge.minHeight=H),q.includes("width")&&Z?ge.width=Z:q.includes("minWidth")&&Z&&(ge.minWidth=Z)),u||(ge.pointerEvents="none"),h.createElement(_,{open:$||K,getContainer:O&&function(){return O(l)},autoDestroy:T},h.createElement(r7,{prefixCls:i,open:u,zIndex:R,mask:v,motion:w}),h.createElement(ya,{onResize:z,disabled:!u},function(fe){return h.createElement(ao,Ue({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:$,leavedClassName:"".concat(i,"-hidden")},S,{onAppearPrepare:F,onEnterPrepare:F,visible:u,onVisibleChanged:function(Te){var je;S==null||(je=S.onVisibleChanged)===null||je===void 0||je.call(S,Te),c(Te)}}),function(we,Te){var je=we.className,ze=we.style,Oe=te(i,je,r);return h.createElement("div",{ref:gi(fe,t,Te),className:Oe,style:J(J(J(J({"--arrow-x":"".concat(b.x||0,"px"),"--arrow-y":"".concat(b.y||0,"px")},le),ge),ze),{},{boxSizing:"border-box",zIndex:R},a),onMouseEnter:M,onMouseLeave:P,onPointerEnter:N,onClick:g,onPointerDownCapture:I},y&&h.createElement(n7,{prefixCls:i,arrow:y,arrowPos:b,align:x}),h.createElement(i7,{cache:!u&&!m},U))})}))}),o7=h.forwardRef(function(e,t){var n=e.children,r=e.getTriggerDOMNode,i=Ho(n),a=h.useCallback(function(c){xC(t,r?r(c):c)},[r]),l=ql(a,Kl(n));return i?h.cloneElement(n,{ref:l}):n}),TR=h.createContext(null);function _R(e){return e?Array.isArray(e)?e:[e]:[]}function l7(e,t,n,r){return h.useMemo(function(){var i=_R(n??t),a=_R(r??t),l=new Set(i),c=new Set(a);return e&&(l.has("hover")&&(l.delete("hover"),l.add("click")),c.has("hover")&&(c.delete("hover"),c.add("click"))),[l,c]},[e,t,n,r])}function s7(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0;return n?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function c7(e,t,n,r){for(var i=n.points,a=Object.keys(e),l=0;l<a.length;l+=1){var c,u=a[l];if(s7((c=e[u])===null||c===void 0?void 0:c.points,i,r))return"".concat(t,"-placement-").concat(u)}return""}function NR(e,t,n,r){return t||(n?{motionName:"".concat(e,"-").concat(n)}:r?{motionName:r}:null)}function Sh(e){return e.ownerDocument.defaultView}function lx(e){for(var t=[],n=e==null?void 0:e.parentElement,r=["hidden","scroll","clip","auto"];n;){var i=Sh(n).getComputedStyle(n),a=i.overflowX,l=i.overflowY,c=i.overflow;[a,l,c].some(function(u){return r.includes(u)})&&t.push(n),n=n.parentElement}return t}function Bf(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?t:e}function Xd(e){return Bf(parseFloat(e),0)}function IR(e,t){var n=J({},e);return(t||[]).forEach(function(r){if(!(r instanceof HTMLBodyElement||r instanceof HTMLHtmlElement)){var i=Sh(r).getComputedStyle(r),a=i.overflow,l=i.overflowClipMargin,c=i.borderTopWidth,u=i.borderBottomWidth,d=i.borderLeftWidth,m=i.borderRightWidth,g=r.getBoundingClientRect(),v=r.offsetHeight,y=r.clientHeight,b=r.offsetWidth,x=r.clientWidth,S=Xd(c),w=Xd(u),$=Xd(d),O=Xd(m),T=Bf(Math.round(g.width/b*1e3)/1e3),_=Bf(Math.round(g.height/v*1e3)/1e3),R=(b-x-$-O)*T,M=(v-y-S-w)*_,P=S*_,N=w*_,I=$*T,B=O*T,A=0,k=0;if(a==="clip"){var j=Xd(l);A=j*T,k=j*_}var V=g.x+I-A,z=g.y+P-k,F=V+g.width+2*A-I-B-R,q=z+g.height+2*k-P-N-M;n.left=Math.max(n.left,V),n.top=Math.max(n.top,z),n.right=Math.min(n.right,F),n.bottom=Math.min(n.bottom,q)}}),n}function MR(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n="".concat(t),r=n.match(/^(.*)\%$/);return r?e*(parseFloat(r[1])/100):parseFloat(n)}function PR(e,t){var n=t||[],r=me(n,2),i=r[0],a=r[1];return[MR(e.width,i),MR(e.height,a)]}function AR(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[e[0],e[1]]}function Wc(e,t){var n=t[0],r=t[1],i,a;return n==="t"?a=e.y:n==="b"?a=e.y+e.height:a=e.y+e.height/2,r==="l"?i=e.x:r==="r"?i=e.x+e.width:i=e.x+e.width/2,{x:i,y:a}}function hl(e,t){var n={t:"b",b:"t",l:"r",r:"l"};return e.map(function(r,i){return i===t?n[r]||"c":r}).join("")}function u7(e,t,n,r,i,a,l){var c=h.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:i[r]||{}}),u=me(c,2),d=u[0],m=u[1],g=h.useRef(0),v=h.useMemo(function(){return t?lx(t):[]},[t]),y=h.useRef({}),b=function(){y.current={}};e||b();var x=cr(function(){if(t&&n&&e){let bi=function(ci,Ai){var Zi=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Ye,Ji=K.x+ci,wa=K.y+Ai,uc=Ji+ve,Ql=wa+ye,dc=Math.max(Ji,Zi.left),gt=Math.max(wa,Zi.top),Nt=Math.min(uc,Zi.right),qn=Math.min(Ql,Zi.bottom);return Math.max(0,(Nt-dc)*(qn-gt))},Ca=function(){Bn=K.y+Pt,Un=Bn+ye,nr=K.x+st,an=nr+ve};var $,O,T,_,R=t,M=R.ownerDocument,P=Sh(R),N=P.getComputedStyle(R),I=N.position,B=R.style.left,A=R.style.top,k=R.style.right,j=R.style.bottom,V=R.style.overflow,z=J(J({},i[r]),a),F=M.createElement("div");($=R.parentElement)===null||$===void 0||$.appendChild(F),F.style.left="".concat(R.offsetLeft,"px"),F.style.top="".concat(R.offsetTop,"px"),F.style.position=I,F.style.height="".concat(R.offsetHeight,"px"),F.style.width="".concat(R.offsetWidth,"px"),R.style.left="0",R.style.top="0",R.style.right="auto",R.style.bottom="auto",R.style.overflow="hidden";var q;if(Array.isArray(n))q={x:n[0],y:n[1],width:0,height:0};else{var Z,H,U=n.getBoundingClientRect();U.x=(Z=U.x)!==null&&Z!==void 0?Z:U.left,U.y=(H=U.y)!==null&&H!==void 0?H:U.top,q={x:U.x,y:U.y,width:U.width,height:U.height}}var K=R.getBoundingClientRect(),D=P.getComputedStyle(R),X=D.height,Q=D.width;K.x=(O=K.x)!==null&&O!==void 0?O:K.left,K.y=(T=K.y)!==null&&T!==void 0?T:K.top;var Y=M.documentElement,ie=Y.clientWidth,oe=Y.clientHeight,le=Y.scrollWidth,Ce=Y.scrollHeight,ce=Y.scrollTop,de=Y.scrollLeft,ye=K.height,ve=K.width,ge=q.height,fe=q.width,we={left:0,top:0,right:ie,bottom:oe},Te={left:-de,top:-ce,right:le-de,bottom:Ce-ce},je=z.htmlRegion,ze="visible",Oe="visibleFirst";je!=="scroll"&&je!==Oe&&(je=ze);var De=je===Oe,Ne=IR(Te,v),be=IR(we,v),Ye=je===ze?be:Ne,he=De?be:Ye;R.style.left="auto",R.style.top="auto",R.style.right="0",R.style.bottom="0";var $e=R.getBoundingClientRect();R.style.left=B,R.style.top=A,R.style.right=k,R.style.bottom=j,R.style.overflow=V,(_=R.parentElement)===null||_===void 0||_.removeChild(F);var Me=Bf(Math.round(ve/parseFloat(Q)*1e3)/1e3),Ae=Bf(Math.round(ye/parseFloat(X)*1e3)/1e3);if(Me===0||Ae===0||Tf(n)&&!Hp(n))return;var Xe=z.offset,Fe=z.targetOffset,Ie=PR(K,Xe),Ge=me(Ie,2),Le=Ge[0],Ze=Ge[1],_e=PR(q,Fe),tt=me(_e,2),$t=tt[0],wt=tt[1];q.x-=$t,q.y-=wt;var nn=z.points||[],cn=me(nn,2),jn=cn[0],$n=cn[1],rn=AR($n),kt=AR(jn),Mt=Wc(q,rn),un=Wc(K,kt),Jt=J({},z),st=Mt.x-un.x+Le,Pt=Mt.y-un.y+Ze,vt=bi(st,Pt),Ke=bi(st,Pt,be),Be=Wc(q,["t","l"]),He=Wc(K,["t","l"]),Qe=Wc(q,["b","r"]),ut=Wc(K,["b","r"]),dt=z.overflow||{},zt=dt.adjustX,Ot=dt.adjustY,Ct=dt.shiftX,Vt=dt.shiftY,Dn=function(Ai){return typeof Ai=="boolean"?Ai:Ai>=0},Bn,Un,nr,an;Ca();var Sn=Dn(Ot),We=kt[0]===rn[0];if(Sn&&kt[0]==="t"&&(Un>he.bottom||y.current.bt)){var at=Pt;We?at-=ye-ge:at=Be.y-ut.y-Ze;var _t=bi(st,at),Dt=bi(st,at,be);_t>vt||_t===vt&&(!De||Dt>=Ke)?(y.current.bt=!0,Pt=at,Ze=-Ze,Jt.points=[hl(kt,0),hl(rn,0)]):y.current.bt=!1}if(Sn&&kt[0]==="b"&&(Bn<he.top||y.current.tb)){var rt=Pt;We?rt+=ye-ge:rt=Qe.y-He.y-Ze;var ct=bi(st,rt),It=bi(st,rt,be);ct>vt||ct===vt&&(!De||It>=Ke)?(y.current.tb=!0,Pt=rt,Ze=-Ze,Jt.points=[hl(kt,0),hl(rn,0)]):y.current.tb=!1}var qt=Dn(zt),nt=kt[1]===rn[1];if(qt&&kt[1]==="l"&&(an>he.right||y.current.rl)){var bt=st;nt?bt-=ve-fe:bt=Be.x-ut.x-Le;var Ft=bi(bt,Pt),rr=bi(bt,Pt,be);Ft>vt||Ft===vt&&(!De||rr>=Ke)?(y.current.rl=!0,st=bt,Le=-Le,Jt.points=[hl(kt,1),hl(rn,1)]):y.current.rl=!1}if(qt&&kt[1]==="r"&&(nr<he.left||y.current.lr)){var Sr=st;nt?Sr+=ve-fe:Sr=Qe.x-He.x-Le;var Ar=bi(Sr,Pt),zr=bi(Sr,Pt,be);Ar>vt||Ar===vt&&(!De||zr>=Ke)?(y.current.lr=!0,st=Sr,Le=-Le,Jt.points=[hl(kt,1),hl(rn,1)]):y.current.lr=!1}Ca();var Qn=Ct===!0?0:Ct;typeof Qn=="number"&&(nr<be.left&&(st-=nr-be.left-Le,q.x+fe<be.left+Qn&&(st+=q.x-be.left+fe-Qn)),an>be.right&&(st-=an-be.right-Le,q.x>be.right-Qn&&(st+=q.x-be.right+Qn)));var Yn=Vt===!0?0:Vt;typeof Yn=="number"&&(Bn<be.top&&(Pt-=Bn-be.top-Ze,q.y+ge<be.top+Yn&&(Pt+=q.y-be.top+ge-Yn)),Un>be.bottom&&(Pt-=Un-be.bottom-Ze,q.y>be.bottom-Yn&&(Pt+=q.y-be.bottom+Yn)));var Ur=K.x+st,vi=Ur+ve,yi=K.y+Pt,On=yi+ye,ft=q.x,ht=ft+fe,Wt=q.y,gn=Wt+ge,Pn=Math.max(Ur,ft),Hn=Math.min(vi,ht),fr=(Pn+Hn)/2,$r=fr-Ur,Lr=Math.max(yi,Wt),dr=Math.min(On,gn),qr=(Lr+dr)/2,Pi=qr-yi;l==null||l(t,Jt);var kr=$e.right-K.x-(st+K.width),lo=$e.bottom-K.y-(Pt+K.height);Me===1&&(st=Math.floor(st),kr=Math.floor(kr)),Ae===1&&(Pt=Math.floor(Pt),lo=Math.floor(lo));var ad={ready:!0,offsetX:st/Me,offsetY:Pt/Ae,offsetR:kr/Me,offsetB:lo/Ae,arrowX:$r/Me,arrowY:Pi/Ae,scaleX:Me,scaleY:Ae,align:Jt};m(ad)}}),S=function(){g.current+=1;var O=g.current;Promise.resolve().then(function(){g.current===O&&x()})},w=function(){m(function(O){return J(J({},O),{},{ready:!1})})};return on(w,[r]),on(function(){e||w()},[e]),[d.ready,d.offsetX,d.offsetY,d.offsetR,d.offsetB,d.arrowX,d.arrowY,d.scaleX,d.scaleY,d.align,S]}function d7(e,t,n,r,i){on(function(){if(e&&t&&n){let g=function(){r(),i()};var a=t,l=n,c=lx(a),u=lx(l),d=Sh(l),m=new Set([d].concat(qe(c),qe(u)));return m.forEach(function(v){v.addEventListener("scroll",g,{passive:!0})}),d.addEventListener("resize",g,{passive:!0}),r(),function(){m.forEach(function(v){v.removeEventListener("scroll",g),d.removeEventListener("resize",g)})}}},[e,t,n])}function f7(e,t,n,r,i,a,l,c){var u=h.useRef(e);u.current=e;var d=h.useRef(!1);h.useEffect(function(){if(t&&r&&(!i||a)){var g=function(){d.current=!1},v=function(S){var w;u.current&&!l(((w=S.composedPath)===null||w===void 0||(w=w.call(S))===null||w===void 0?void 0:w[0])||S.target)&&!d.current&&c(!1)},y=Sh(r);y.addEventListener("pointerdown",g,!0),y.addEventListener("mousedown",v,!0),y.addEventListener("contextmenu",v,!0);var b=Lg(n);return b&&(b.addEventListener("mousedown",v,!0),b.addEventListener("contextmenu",v,!0)),function(){y.removeEventListener("pointerdown",g,!0),y.removeEventListener("mousedown",v,!0),y.removeEventListener("contextmenu",v,!0),b&&(b.removeEventListener("mousedown",v,!0),b.removeEventListener("contextmenu",v,!0))}}},[t,n,r,i,a]);function m(){d.current=!0}return m}var h7=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];function m7(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:uP,t=h.forwardRef(function(n,r){var i=n.prefixCls,a=i===void 0?"rc-trigger-popup":i,l=n.children,c=n.action,u=c===void 0?"hover":c,d=n.showAction,m=n.hideAction,g=n.popupVisible,v=n.defaultPopupVisible,y=n.onPopupVisibleChange,b=n.afterPopupVisibleChange,x=n.mouseEnterDelay,S=n.mouseLeaveDelay,w=S===void 0?.1:S,$=n.focusDelay,O=n.blurDelay,T=n.mask,_=n.maskClosable,R=_===void 0?!0:_,M=n.getPopupContainer,P=n.forceRender,N=n.autoDestroy,I=n.destroyPopupOnHide,B=n.popup,A=n.popupClassName,k=n.popupStyle,j=n.popupPlacement,V=n.builtinPlacements,z=V===void 0?{}:V,F=n.popupAlign,q=n.zIndex,Z=n.stretch,H=n.getPopupClassNameFromAlign,U=n.fresh,K=n.alignPoint,D=n.onPopupClick,X=n.onPopupAlign,Q=n.arrow,Y=n.popupMotion,ie=n.maskMotion,oe=n.popupTransitionName,le=n.popupAnimation,Ce=n.maskTransitionName,ce=n.maskAnimation,de=n.className,ye=n.getTriggerDOMNode,ve=jt(n,h7),ge=N||I||!1,fe=h.useState(!1),we=me(fe,2),Te=we[0],je=we[1];on(function(){je(n1())},[]);var ze=h.useRef({}),Oe=h.useContext(TR),De=h.useMemo(function(){return{registerSubPopup:function(Nt,qn){ze.current[Nt]=qn,Oe==null||Oe.registerSubPopup(Nt,qn)}}},[Oe]),Ne=dP(),be=h.useState(null),Ye=me(be,2),he=Ye[0],$e=Ye[1],Me=h.useRef(null),Ae=cr(function(gt){Me.current=gt,Tf(gt)&&he!==gt&&$e(gt),Oe==null||Oe.registerSubPopup(Ne,gt)}),Xe=h.useState(null),Fe=me(Xe,2),Ie=Fe[0],Ge=Fe[1],Le=h.useRef(null),Ze=cr(function(gt){Tf(gt)&&Ie!==gt&&(Ge(gt),Le.current=gt)}),_e=h.Children.only(l),tt=(_e==null?void 0:_e.props)||{},$t={},wt=cr(function(gt){var Nt,qn,ir=Ie;return(ir==null?void 0:ir.contains(gt))||((Nt=Lg(ir))===null||Nt===void 0?void 0:Nt.host)===gt||gt===ir||(he==null?void 0:he.contains(gt))||((qn=Lg(he))===null||qn===void 0?void 0:qn.host)===gt||gt===he||Object.values(ze.current).some(function(An){return(An==null?void 0:An.contains(gt))||gt===An})}),nn=NR(a,Y,le,oe),cn=NR(a,ie,ce,Ce),jn=h.useState(v||!1),$n=me(jn,2),rn=$n[0],kt=$n[1],Mt=g??rn,un=cr(function(gt){g===void 0&&kt(gt)});on(function(){kt(g||!1)},[g]);var Jt=h.useRef(Mt);Jt.current=Mt;var st=h.useRef([]);st.current=[];var Pt=cr(function(gt){var Nt;un(gt),((Nt=st.current[st.current.length-1])!==null&&Nt!==void 0?Nt:Mt)!==gt&&(st.current.push(gt),y==null||y(gt))}),vt=h.useRef(),Ke=function(){clearTimeout(vt.current)},Be=function(Nt){var qn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;Ke(),qn===0?Pt(Nt):vt.current=setTimeout(function(){Pt(Nt)},qn*1e3)};h.useEffect(function(){return Ke},[]);var He=h.useState(!1),Qe=me(He,2),ut=Qe[0],dt=Qe[1];on(function(gt){(!gt||Mt)&&dt(!0)},[Mt]);var zt=h.useState(null),Ot=me(zt,2),Ct=Ot[0],Vt=Ot[1],Dn=h.useState(null),Bn=me(Dn,2),Un=Bn[0],nr=Bn[1],an=function(Nt){nr([Nt.clientX,Nt.clientY])},Sn=u7(Mt,he,K&&Un!==null?Un:Ie,j,z,F,X),We=me(Sn,11),at=We[0],_t=We[1],Dt=We[2],rt=We[3],ct=We[4],It=We[5],qt=We[6],nt=We[7],bt=We[8],Ft=We[9],rr=We[10],Sr=l7(Te,u,d,m),Ar=me(Sr,2),zr=Ar[0],Qn=Ar[1],Yn=zr.has("click"),Ur=Qn.has("click")||Qn.has("contextMenu"),vi=cr(function(){ut||rr()}),yi=function(){Jt.current&&K&&Ur&&Be(!1)};d7(Mt,Ie,he,vi,yi),on(function(){vi()},[Un,j]),on(function(){Mt&&!(z!=null&&z[j])&&vi()},[JSON.stringify(F)]);var On=h.useMemo(function(){var gt=c7(z,a,Ft,K);return te(gt,H==null?void 0:H(Ft))},[Ft,H,z,a,K]);h.useImperativeHandle(r,function(){return{nativeElement:Le.current,popupElement:Me.current,forceAlign:vi}});var ft=h.useState(0),ht=me(ft,2),Wt=ht[0],gn=ht[1],Pn=h.useState(0),Hn=me(Pn,2),fr=Hn[0],$r=Hn[1],Lr=function(){if(Z&&Ie){var Nt=Ie.getBoundingClientRect();gn(Nt.width),$r(Nt.height)}},dr=function(){Lr(),vi()},qr=function(Nt){dt(!1),rr(),b==null||b(Nt)},Pi=function(){return new Promise(function(Nt){Lr(),Vt(function(){return Nt})})};on(function(){Ct&&(rr(),Ct(),Vt(null))},[Ct]);function kr(gt,Nt,qn,ir){$t[gt]=function(An){var Vo;ir==null||ir(An),Be(Nt,qn);for(var Uo=arguments.length,od=new Array(Uo>1?Uo-1:0),so=1;so<Uo;so++)od[so-1]=arguments[so];(Vo=tt[gt])===null||Vo===void 0||Vo.call.apply(Vo,[tt,An].concat(od))}}(Yn||Ur)&&($t.onClick=function(gt){var Nt;Jt.current&&Ur?Be(!1):!Jt.current&&Yn&&(an(gt),Be(!0));for(var qn=arguments.length,ir=new Array(qn>1?qn-1:0),An=1;An<qn;An++)ir[An-1]=arguments[An];(Nt=tt.onClick)===null||Nt===void 0||Nt.call.apply(Nt,[tt,gt].concat(ir))});var lo=f7(Mt,Ur,Ie,he,T,R,wt,Be),ad=zr.has("hover"),bi=Qn.has("hover"),Ca,ci;ad&&(kr("onMouseEnter",!0,x,function(gt){an(gt)}),kr("onPointerEnter",!0,x,function(gt){an(gt)}),Ca=function(Nt){(Mt||ut)&&he!==null&&he!==void 0&&he.contains(Nt.target)&&Be(!0,x)},K&&($t.onMouseMove=function(gt){var Nt;(Nt=tt.onMouseMove)===null||Nt===void 0||Nt.call(tt,gt)})),bi&&(kr("onMouseLeave",!1,w),kr("onPointerLeave",!1,w),ci=function(){Be(!1,w)}),zr.has("focus")&&kr("onFocus",!0,$),Qn.has("focus")&&kr("onBlur",!1,O),zr.has("contextMenu")&&($t.onContextMenu=function(gt){var Nt;Jt.current&&Qn.has("contextMenu")?Be(!1):(an(gt),Be(!0)),gt.preventDefault();for(var qn=arguments.length,ir=new Array(qn>1?qn-1:0),An=1;An<qn;An++)ir[An-1]=arguments[An];(Nt=tt.onContextMenu)===null||Nt===void 0||Nt.call.apply(Nt,[tt,gt].concat(ir))}),de&&($t.className=te(tt.className,de));var Ai=h.useRef(!1);Ai.current||(Ai.current=P||Mt||ut);var Zi=J(J({},tt),$t),Ji={},wa=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];wa.forEach(function(gt){ve[gt]&&(Ji[gt]=function(){for(var Nt,qn=arguments.length,ir=new Array(qn),An=0;An<qn;An++)ir[An]=arguments[An];(Nt=Zi[gt])===null||Nt===void 0||Nt.call.apply(Nt,[Zi].concat(ir)),ve[gt].apply(ve,ir)})});var uc=h.cloneElement(_e,J(J({},Zi),Ji)),Ql={x:It,y:qt},dc=Q?J({},Q!==!0?Q:{}):null;return h.createElement(h.Fragment,null,h.createElement(ya,{disabled:!Mt,ref:Ze,onResize:dr},h.createElement(o7,{getTriggerDOMNode:ye},uc)),Ai.current&&h.createElement(TR.Provider,{value:De},h.createElement(a7,{portal:e,ref:Ae,prefixCls:a,popup:B,className:te(A,On),style:k,target:Ie,onMouseEnter:Ca,onMouseLeave:ci,onPointerEnter:Ca,zIndex:q,open:Mt,keepDom:ut,fresh:U,onClick:D,onPointerDownCapture:lo,mask:T,motion:nn,maskMotion:cn,onVisibleChanged:qr,onPrepare:Pi,forceRender:P,autoDestroy:ge,getPopupContainer:M,align:Ft,arrow:dc,arrowPos:Ql,ready:at,offsetX:_t,offsetY:Dt,offsetR:rt,offsetB:ct,onAlign:vi,stretch:Z,targetWidth:Wt/nt,targetHeight:fr/bt})))});return t}const ev=m7(uP);var g7=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],p7=function(t){var n=t===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:n,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:n,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:n,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:n,adjustY:1},htmlRegion:"scroll"}}},v7=function(t,n){var r=t.prefixCls;t.disabled;var i=t.visible,a=t.children,l=t.popupElement,c=t.animation,u=t.transitionName,d=t.dropdownStyle,m=t.dropdownClassName,g=t.direction,v=g===void 0?"ltr":g,y=t.placement,b=t.builtinPlacements,x=t.dropdownMatchSelectWidth,S=t.dropdownRender,w=t.dropdownAlign,$=t.getPopupContainer,O=t.empty,T=t.getTriggerDOMNode,_=t.onPopupVisibleChange,R=t.onPopupMouseEnter,M=jt(t,g7),P="".concat(r,"-dropdown"),N=l;S&&(N=S(l));var I=h.useMemo(function(){return b||p7(x)},[b,x]),B=c?"".concat(P,"-").concat(c):u,A=typeof x=="number",k=h.useMemo(function(){return A?null:x===!1?"minWidth":"width"},[x,A]),j=d;A&&(j=J(J({},j),{},{width:x}));var V=h.useRef(null);return h.useImperativeHandle(n,function(){return{getPopupElement:function(){var F;return(F=V.current)===null||F===void 0?void 0:F.popupElement}}}),h.createElement(ev,Ue({},M,{showAction:_?["click"]:[],hideAction:_?["click"]:[],popupPlacement:y||(v==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:I,prefixCls:P,popupTransitionName:B,popup:h.createElement("div",{onMouseEnter:R},N),ref:V,stretch:k,popupAlign:w,popupVisible:i,getPopupContainer:$,popupClassName:te(m,G({},"".concat(P,"-empty"),O)),popupStyle:j,getTriggerDOMNode:T,onPopupVisibleChange:_}),a)},y7=h.forwardRef(v7);function zR(e,t){var n=e.key,r;return"value"in e&&(r=e.value),n??(r!==void 0?r:"rc-index-key-".concat(t))}function sx(e){return typeof e<"u"&&!Number.isNaN(e)}function LP(e,t){var n=e||{},r=n.label,i=n.value,a=n.options,l=n.groupLabel,c=r||(t?"children":"label");return{label:c,value:i||"value",options:a||"options",groupLabel:l||c}}function b7(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.fieldNames,r=t.childrenAsData,i=[],a=LP(n,!1),l=a.label,c=a.value,u=a.options,d=a.groupLabel;function m(g,v){Array.isArray(g)&&g.forEach(function(y){if(v||!(u in y)){var b=y[c];i.push({key:zR(y,i.length),groupOption:v,data:y,label:y[l],value:b})}else{var x=y[d];x===void 0&&r&&(x=y.label),i.push({key:zR(y,i.length),group:!0,data:y,label:x}),m(y[u],!0)}})}return m(e,!1),i}function cx(e){var t=J({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return ur(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}var S7=function(t,n,r){if(!n||!n.length)return null;var i=!1,a=function c(u,d){var m=uM(d),g=m[0],v=m.slice(1);if(!g)return[u];var y=u.split(g);return i=i||y.length>1,y.reduce(function(b,x){return[].concat(qe(b),qe(c(x,v)))},[]).filter(Boolean)},l=a(t,n);return i?typeof r<"u"?l.slice(0,r):l:null},r1=h.createContext(null);function x7(e){var t=e.visible,n=e.values;if(!t)return null;var r=50;return h.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(n.slice(0,r).map(function(i){var a=i.label,l=i.value;return["number","string"].includes(pt(a))?a:l}).join(", ")),n.length>r?", ...":null)}var C7=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","prefix","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],w7=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],ux=function(t){return t==="tags"||t==="multiple"},E7=h.forwardRef(function(e,t){var n,r=e.id,i=e.prefixCls,a=e.className,l=e.showSearch,c=e.tagRender,u=e.direction,d=e.omitDomProps,m=e.displayValues,g=e.onDisplayValuesChange,v=e.emptyOptions,y=e.notFoundContent,b=y===void 0?"Not Found":y,x=e.onClear,S=e.mode,w=e.disabled,$=e.loading,O=e.getInputElement,T=e.getRawInputElement,_=e.open,R=e.defaultOpen,M=e.onDropdownVisibleChange,P=e.activeValue,N=e.onActiveValueChange,I=e.activeDescendantId,B=e.searchValue,A=e.autoClearSearchValue,k=e.onSearch,j=e.onSearchSplit,V=e.tokenSeparators,z=e.allowClear,F=e.prefix,q=e.suffixIcon,Z=e.clearIcon,H=e.OptionList,U=e.animation,K=e.transitionName,D=e.dropdownStyle,X=e.dropdownClassName,Q=e.dropdownMatchSelectWidth,Y=e.dropdownRender,ie=e.dropdownAlign,oe=e.placement,le=e.builtinPlacements,Ce=e.getPopupContainer,ce=e.showAction,de=ce===void 0?[]:ce,ye=e.onFocus,ve=e.onBlur,ge=e.onKeyUp,fe=e.onKeyDown,we=e.onMouseDown,Te=jt(e,C7),je=ux(S),ze=(l!==void 0?l:je)||S==="combobox",Oe=J({},Te);w7.forEach(function(ft){delete Oe[ft]}),d==null||d.forEach(function(ft){delete Oe[ft]});var De=h.useState(!1),Ne=me(De,2),be=Ne[0],Ye=Ne[1];h.useEffect(function(){Ye(n1())},[]);var he=h.useRef(null),$e=h.useRef(null),Me=h.useRef(null),Ae=h.useRef(null),Xe=h.useRef(null),Fe=h.useRef(!1),Ie=_9(),Ge=me(Ie,3),Le=Ge[0],Ze=Ge[1],_e=Ge[2];h.useImperativeHandle(t,function(){var ft,ht;return{focus:(ft=Ae.current)===null||ft===void 0?void 0:ft.focus,blur:(ht=Ae.current)===null||ht===void 0?void 0:ht.blur,scrollTo:function(gn){var Pn;return(Pn=Xe.current)===null||Pn===void 0?void 0:Pn.scrollTo(gn)},nativeElement:he.current||$e.current}});var tt=h.useMemo(function(){var ft;if(S!=="combobox")return B;var ht=(ft=m[0])===null||ft===void 0?void 0:ft.value;return typeof ht=="string"||typeof ht=="number"?String(ht):""},[B,S,m]),$t=S==="combobox"&&typeof O=="function"&&O()||null,wt=typeof T=="function"&&T(),nn=ql($e,wt==null||(n=wt.props)===null||n===void 0?void 0:n.ref),cn=h.useState(!1),jn=me(cn,2),$n=jn[0],rn=jn[1];on(function(){rn(!0)},[]);var kt=vr(!1,{defaultValue:R,value:_}),Mt=me(kt,2),un=Mt[0],Jt=Mt[1],st=$n?un:!1,Pt=!b&&v;(w||Pt&&st&&S==="combobox")&&(st=!1);var vt=Pt?!1:st,Ke=h.useCallback(function(ft){var ht=ft!==void 0?ft:!st;w||(Jt(ht),st!==ht&&(M==null||M(ht)))},[w,st,Jt,M]),Be=h.useMemo(function(){return(V||[]).some(function(ft){return[`
|
|
189
|
-
`,`\r
|
|
190
|
-
`].includes(ft)})},[V]),He=h.useContext(r1)||{},Qe=He.maxCount,ut=He.rawValues,dt=function(ht,Wt,gn){if(!(je&&sx(Qe)&&(ut==null?void 0:ut.size)>=Qe)){var Pn=!0,Hn=ht;N==null||N(null);var fr=S7(ht,V,sx(Qe)?Qe-ut.size:void 0),$r=gn?null:fr;return S!=="combobox"&&$r&&(Hn="",j==null||j($r),Ke(!1),Pn=!1),k&&tt!==Hn&&k(Hn,{source:Wt?"typing":"effect"}),Pn}},zt=function(ht){!ht||!ht.trim()||k(ht,{source:"submit"})};h.useEffect(function(){!st&&!je&&S!=="combobox"&&dt("",!1,!1)},[st]),h.useEffect(function(){un&&w&&Jt(!1),w&&!Fe.current&&Ze(!1)},[w]);var Ot=IP(),Ct=me(Ot,2),Vt=Ct[0],Dn=Ct[1],Bn=h.useRef(!1),Un=function(ht){var Wt=Vt(),gn=ht.key,Pn=gn==="Enter";if(Pn&&(S!=="combobox"&&ht.preventDefault(),st||Ke(!0)),Dn(!!tt),gn==="Backspace"&&!Wt&&je&&!tt&&m.length){for(var Hn=qe(m),fr=null,$r=Hn.length-1;$r>=0;$r-=1){var Lr=Hn[$r];if(!Lr.disabled){Hn.splice($r,1),fr=Lr;break}}fr&&g(Hn,{type:"remove",values:[fr]})}for(var dr=arguments.length,qr=new Array(dr>1?dr-1:0),Pi=1;Pi<dr;Pi++)qr[Pi-1]=arguments[Pi];if(st&&(!Pn||!Bn.current)){var kr;Pn&&(Bn.current=!0),(kr=Xe.current)===null||kr===void 0||kr.onKeyDown.apply(kr,[ht].concat(qr))}fe==null||fe.apply(void 0,[ht].concat(qr))},nr=function(ht){for(var Wt=arguments.length,gn=new Array(Wt>1?Wt-1:0),Pn=1;Pn<Wt;Pn++)gn[Pn-1]=arguments[Pn];if(st){var Hn;(Hn=Xe.current)===null||Hn===void 0||Hn.onKeyUp.apply(Hn,[ht].concat(gn))}ht.key==="Enter"&&(Bn.current=!1),ge==null||ge.apply(void 0,[ht].concat(gn))},an=function(ht){var Wt=m.filter(function(gn){return gn!==ht});g(Wt,{type:"remove",values:[ht]})},Sn=function(){Bn.current=!1},We=h.useRef(!1),at=function(){Ze(!0),w||(ye&&!We.current&&ye.apply(void 0,arguments),de.includes("focus")&&Ke(!0)),We.current=!0},_t=function(){Fe.current=!0,Ze(!1,function(){We.current=!1,Fe.current=!1,Ke(!1)}),!w&&(tt&&(S==="tags"?k(tt,{source:"submit"}):S==="multiple"&&k("",{source:"blur"})),ve&&ve.apply(void 0,arguments))},Dt=[];h.useEffect(function(){return function(){Dt.forEach(function(ft){return clearTimeout(ft)}),Dt.splice(0,Dt.length)}},[]);var rt=function(ht){var Wt,gn=ht.target,Pn=(Wt=Me.current)===null||Wt===void 0?void 0:Wt.getPopupElement();if(Pn&&Pn.contains(gn)){var Hn=setTimeout(function(){var dr=Dt.indexOf(Hn);if(dr!==-1&&Dt.splice(dr,1),_e(),!be&&!Pn.contains(document.activeElement)){var qr;(qr=Ae.current)===null||qr===void 0||qr.focus()}});Dt.push(Hn)}for(var fr=arguments.length,$r=new Array(fr>1?fr-1:0),Lr=1;Lr<fr;Lr++)$r[Lr-1]=arguments[Lr];we==null||we.apply(void 0,[ht].concat($r))},ct=h.useState({}),It=me(ct,2),qt=It[1];function nt(){qt({})}var bt;wt&&(bt=function(ht){Ke(ht)}),N9(function(){var ft;return[he.current,(ft=Me.current)===null||ft===void 0?void 0:ft.getPopupElement()]},vt,Ke,!!wt);var Ft=h.useMemo(function(){return J(J({},e),{},{notFoundContent:b,open:st,triggerOpen:vt,id:r,showSearch:ze,multiple:je,toggleOpen:Ke})},[e,b,vt,st,r,ze,je,Ke]),rr=!!q||$,Sr;rr&&(Sr=h.createElement(Jp,{className:te("".concat(i,"-arrow"),G({},"".concat(i,"-arrow-loading"),$)),customizeIcon:q,customizeIconProps:{loading:$,searchValue:tt,open:st,focused:Le,showSearch:ze}}));var Ar=function(){var ht;x==null||x(),(ht=Ae.current)===null||ht===void 0||ht.focus(),g([],{type:"clear",values:m}),dt("",!1,!1)},zr=R9(i,Ar,m,z,Z,w,tt,S),Qn=zr.allowClear,Yn=zr.clearIcon,Ur=h.createElement(H,{ref:Xe}),vi=te(i,a,G(G(G(G(G(G(G(G(G(G({},"".concat(i,"-focused"),Le),"".concat(i,"-multiple"),je),"".concat(i,"-single"),!je),"".concat(i,"-allow-clear"),z),"".concat(i,"-show-arrow"),rr),"".concat(i,"-disabled"),w),"".concat(i,"-loading"),$),"".concat(i,"-open"),st),"".concat(i,"-customize-input"),$t),"".concat(i,"-show-search"),ze)),yi=h.createElement(y7,{ref:Me,disabled:w,prefixCls:i,visible:vt,popupElement:Ur,animation:U,transitionName:K,dropdownStyle:D,dropdownClassName:X,direction:u,dropdownMatchSelectWidth:Q,dropdownRender:Y,dropdownAlign:ie,placement:oe,builtinPlacements:le,getPopupContainer:Ce,empty:v,getTriggerDOMNode:function(ht){return $e.current||ht},onPopupVisibleChange:bt,onPopupMouseEnter:nt},wt?h.cloneElement(wt,{ref:nn}):h.createElement(t7,Ue({},e,{domRef:$e,prefixCls:i,inputElement:$t,ref:Ae,id:r,prefix:F,showSearch:ze,autoClearSearchValue:A,mode:S,activeDescendantId:I,tagRender:c,values:m,open:st,onToggleOpen:Ke,activeValue:P,searchValue:tt,onSearch:dt,onSearchSubmit:zt,onRemove:an,tokenWithEnter:Be,onInputBlur:Sn}))),On;return wt?On=yi:On=h.createElement("div",Ue({className:vi},Oe,{ref:he,onMouseDown:rt,onKeyDown:Un,onKeyUp:nr,onFocus:at,onBlur:_t}),h.createElement(x7,{visible:Le&&!st,values:m}),yi,Sr,Qn&&Yn),h.createElement(NP.Provider,{value:Ft},On)}),i1=function(){return null};i1.isSelectOptGroup=!0;var a1=function(){return null};a1.isSelectOption=!0;var kP=h.forwardRef(function(e,t){var n=e.height,r=e.offsetY,i=e.offsetX,a=e.children,l=e.prefixCls,c=e.onInnerResize,u=e.innerProps,d=e.rtl,m=e.extra,g={},v={display:"flex",flexDirection:"column"};return r!==void 0&&(g={height:n,position:"relative",overflow:"hidden"},v=J(J({},v),{},G(G(G(G(G({transform:"translateY(".concat(r,"px)")},d?"marginRight":"marginLeft",-i),"position","absolute"),"left",0),"right",0),"top",0))),h.createElement("div",{style:g},h.createElement(ya,{onResize:function(b){var x=b.offsetHeight;x&&c&&c()}},h.createElement("div",Ue({style:v,className:te(G({},"".concat(l,"-holder-inner"),l)),ref:t},u),a,m)))});kP.displayName="Filler";function $7(e){var t=e.children,n=e.setRef,r=h.useCallback(function(i){n(i)},[]);return h.cloneElement(t,{ref:r})}function O7(e,t,n,r,i,a,l,c){var u=c.getKey;return e.slice(t,n+1).map(function(d,m){var g=t+m,v=l(d,g,{style:{width:r},offsetX:i}),y=u(d);return h.createElement($7,{key:y,setRef:function(x){return a(d,x)}},v)})}function R7(e,t,n){var r=e.length,i=t.length,a,l;if(r===0&&i===0)return null;r<i?(a=e,l=t):(a=t,l=e);var c={__EMPTY_ITEM__:!0};function u(b){return b!==void 0?n(b):c}for(var d=null,m=Math.abs(r-i)!==1,g=0;g<l.length;g+=1){var v=u(a[g]),y=u(l[g]);if(v!==y){d=g,m=m||v!==u(l[g+1]);break}}return d===null?null:{index:d,multiple:m}}function T7(e,t,n){var r=h.useState(e),i=me(r,2),a=i[0],l=i[1],c=h.useState(null),u=me(c,2),d=u[0],m=u[1];return h.useEffect(function(){var g=R7(a||[],e||[],t);(g==null?void 0:g.index)!==void 0&&m(e[g.index]),l(e)},[e]),[d]}var jR=(typeof navigator>"u"?"undefined":pt(navigator))==="object"&&/Firefox/i.test(navigator.userAgent);const BP=(function(e,t,n,r){var i=h.useRef(!1),a=h.useRef(null);function l(){clearTimeout(a.current),i.current=!0,a.current=setTimeout(function(){i.current=!1},50)}var c=h.useRef({top:e,bottom:t,left:n,right:r});return c.current.top=e,c.current.bottom=t,c.current.left=n,c.current.right=r,function(u,d){var m=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,g=u?d<0&&c.current.left||d>0&&c.current.right:d<0&&c.current.top||d>0&&c.current.bottom;return m&&g?(clearTimeout(a.current),i.current=!1):(!g||i.current)&&l(),!i.current&&g}});function _7(e,t,n,r,i,a,l){var c=h.useRef(0),u=h.useRef(null),d=h.useRef(null),m=h.useRef(!1),g=BP(t,n,r,i);function v($,O){if(Tn.cancel(u.current),!g(!1,O)){var T=$;if(!T._virtualHandled)T._virtualHandled=!0;else return;c.current+=O,d.current=O,jR||T.preventDefault(),u.current=Tn(function(){var _=m.current?10:1;l(c.current*_,!1),c.current=0})}}function y($,O){l(O,!0),jR||$.preventDefault()}var b=h.useRef(null),x=h.useRef(null);function S($){if(e){Tn.cancel(x.current),x.current=Tn(function(){b.current=null},2);var O=$.deltaX,T=$.deltaY,_=$.shiftKey,R=O,M=T;(b.current==="sx"||!b.current&&_&&T&&!O)&&(R=T,M=0,b.current="sx");var P=Math.abs(R),N=Math.abs(M);b.current===null&&(b.current=a&&P>N?"x":"y"),b.current==="y"?v($,M):y($,R)}}function w($){e&&(m.current=$.detail===d.current)}return[S,w]}function N7(e,t,n,r){var i=h.useMemo(function(){return[new Map,[]]},[e,n.id,r]),a=me(i,2),l=a[0],c=a[1],u=function(m){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:m,v=l.get(m),y=l.get(g);if(v===void 0||y===void 0)for(var b=e.length,x=c.length;x<b;x+=1){var S,w=e[x],$=t(w);l.set($,x);var O=(S=n.get($))!==null&&S!==void 0?S:r;if(c[x]=(c[x-1]||0)+O,$===m&&(v=x),$===g&&(y=x),v!==void 0&&y!==void 0)break}return{top:c[v-1]||0,bottom:c[y]}};return u}var I7=(function(){function e(){yr(this,e),G(this,"maps",void 0),G(this,"id",0),G(this,"diffRecords",new Map),this.maps=Object.create(null)}return br(e,[{key:"set",value:function(n,r){this.diffRecords.set(n,this.maps[n]),this.maps[n]=r,this.id+=1}},{key:"get",value:function(n){return this.maps[n]}},{key:"resetRecord",value:function(){this.diffRecords.clear()}},{key:"getRecord",value:function(){return this.diffRecords}}]),e})();function DR(e){var t=parseFloat(e);return isNaN(t)?0:t}function M7(e,t,n){var r=h.useState(0),i=me(r,2),a=i[0],l=i[1],c=h.useRef(new Map),u=h.useRef(new I7),d=h.useRef(0);function m(){d.current+=1}function g(){var y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;m();var b=function(){var w=!1;c.current.forEach(function($,O){if($&&$.offsetParent){var T=$.offsetHeight,_=getComputedStyle($),R=_.marginTop,M=_.marginBottom,P=DR(R),N=DR(M),I=T+P+N;u.current.get(O)!==I&&(u.current.set(O,I),w=!0)}}),w&&l(function($){return $+1})};if(y)b();else{d.current+=1;var x=d.current;Promise.resolve().then(function(){x===d.current&&b()})}}function v(y,b){var x=e(y);c.current.get(x),b?(c.current.set(x,b),g()):c.current.delete(x)}return h.useEffect(function(){return m},[]),[v,g,u.current,a]}var LR=14/15;function P7(e,t,n){var r=h.useRef(!1),i=h.useRef(0),a=h.useRef(0),l=h.useRef(null),c=h.useRef(null),u,d=function(y){if(r.current){var b=Math.ceil(y.touches[0].pageX),x=Math.ceil(y.touches[0].pageY),S=i.current-b,w=a.current-x,$=Math.abs(S)>Math.abs(w);$?i.current=b:a.current=x;var O=n($,$?S:w,!1,y);O&&y.preventDefault(),clearInterval(c.current),O&&(c.current=setInterval(function(){$?S*=LR:w*=LR;var T=Math.floor($?S:w);(!n($,T,!0)||Math.abs(T)<=.1)&&clearInterval(c.current)},16))}},m=function(){r.current=!1,u()},g=function(y){u(),y.touches.length===1&&!r.current&&(r.current=!0,i.current=Math.ceil(y.touches[0].pageX),a.current=Math.ceil(y.touches[0].pageY),l.current=y.target,l.current.addEventListener("touchmove",d,{passive:!1}),l.current.addEventListener("touchend",m,{passive:!0}))};u=function(){l.current&&(l.current.removeEventListener("touchmove",d),l.current.removeEventListener("touchend",m))},on(function(){return e&&t.current.addEventListener("touchstart",g,{passive:!0}),function(){var v;(v=t.current)===null||v===void 0||v.removeEventListener("touchstart",g),u(),clearInterval(c.current)}},[e])}function kR(e){return Math.floor(Math.pow(e,.5))}function dx(e,t){var n="touches"in e?e.touches[0]:e;return n[t?"pageX":"pageY"]-window[t?"scrollX":"scrollY"]}function A7(e,t,n){h.useEffect(function(){var r=t.current;if(e&&r){var i=!1,a,l,c=function(){Tn.cancel(a)},u=function v(){c(),a=Tn(function(){n(l),v()})},d=function(){i=!1,c()},m=function(y){if(!(y.target.draggable||y.button!==0)){var b=y;b._virtualHandled||(b._virtualHandled=!0,i=!0)}},g=function(y){if(i){var b=dx(y,!1),x=r.getBoundingClientRect(),S=x.top,w=x.bottom;if(b<=S){var $=S-b;l=-kR($),u()}else if(b>=w){var O=b-w;l=kR(O),u()}else c()}};return r.addEventListener("mousedown",m),r.ownerDocument.addEventListener("mouseup",d),r.ownerDocument.addEventListener("mousemove",g),r.ownerDocument.addEventListener("dragend",d),function(){r.removeEventListener("mousedown",m),r.ownerDocument.removeEventListener("mouseup",d),r.ownerDocument.removeEventListener("mousemove",g),r.ownerDocument.removeEventListener("dragend",d),c()}}},[e])}var z7=10;function j7(e,t,n,r,i,a,l,c){var u=h.useRef(),d=h.useState(null),m=me(d,2),g=m[0],v=m[1];return on(function(){if(g&&g.times<z7){if(!e.current){v(function(Z){return J({},Z)});return}a();var y=g.targetAlign,b=g.originAlign,x=g.index,S=g.offset,w=e.current.clientHeight,$=!1,O=y,T=null;if(w){for(var _=y||b,R=0,M=0,P=0,N=Math.min(t.length-1,x),I=0;I<=N;I+=1){var B=i(t[I]);M=R;var A=n.get(B);P=M+(A===void 0?r:A),R=P}for(var k=_==="top"?S:w-S,j=N;j>=0;j-=1){var V=i(t[j]),z=n.get(V);if(z===void 0){$=!0;break}if(k-=z,k<=0)break}switch(_){case"top":T=M-S;break;case"bottom":T=P-w+S;break;default:{var F=e.current.scrollTop,q=F+w;M<F?O="top":P>q&&(O="bottom")}}T!==null&&l(T),T!==g.lastTop&&($=!0)}$&&v(J(J({},g),{},{times:g.times+1,targetAlign:O,lastTop:T}))}},[g,e.current]),function(y){if(y==null){c();return}if(Tn.cancel(u.current),typeof y=="number")l(y);else if(y&&pt(y)==="object"){var b,x=y.align;"index"in y?b=y.index:b=t.findIndex(function($){return i($)===y.key});var S=y.offset,w=S===void 0?0:S;v({times:0,index:b,offset:w,originAlign:x})}}}var BR=h.forwardRef(function(e,t){var n=e.prefixCls,r=e.rtl,i=e.scrollOffset,a=e.scrollRange,l=e.onStartMove,c=e.onStopMove,u=e.onScroll,d=e.horizontal,m=e.spinSize,g=e.containerSize,v=e.style,y=e.thumbStyle,b=e.showScrollBar,x=h.useState(!1),S=me(x,2),w=S[0],$=S[1],O=h.useState(null),T=me(O,2),_=T[0],R=T[1],M=h.useState(null),P=me(M,2),N=P[0],I=P[1],B=!r,A=h.useRef(),k=h.useRef(),j=h.useState(b),V=me(j,2),z=V[0],F=V[1],q=h.useRef(),Z=function(){b===!0||b===!1||(clearTimeout(q.current),F(!0),q.current=setTimeout(function(){F(!1)},3e3))},H=a-g||0,U=g-m||0,K=h.useMemo(function(){if(i===0||H===0)return 0;var ce=i/H;return ce*U},[i,H,U]),D=function(de){de.stopPropagation(),de.preventDefault()},X=h.useRef({top:K,dragging:w,pageY:_,startTop:N});X.current={top:K,dragging:w,pageY:_,startTop:N};var Q=function(de){$(!0),R(dx(de,d)),I(X.current.top),l(),de.stopPropagation(),de.preventDefault()};h.useEffect(function(){var ce=function(ge){ge.preventDefault()},de=A.current,ye=k.current;return de.addEventListener("touchstart",ce,{passive:!1}),ye.addEventListener("touchstart",Q,{passive:!1}),function(){de.removeEventListener("touchstart",ce),ye.removeEventListener("touchstart",Q)}},[]);var Y=h.useRef();Y.current=H;var ie=h.useRef();ie.current=U,h.useEffect(function(){if(w){var ce,de=function(ge){var fe=X.current,we=fe.dragging,Te=fe.pageY,je=fe.startTop;Tn.cancel(ce);var ze=A.current.getBoundingClientRect(),Oe=g/(d?ze.width:ze.height);if(we){var De=(dx(ge,d)-Te)*Oe,Ne=je;!B&&d?Ne-=De:Ne+=De;var be=Y.current,Ye=ie.current,he=Ye?Ne/Ye:0,$e=Math.ceil(he*be);$e=Math.max($e,0),$e=Math.min($e,be),ce=Tn(function(){u($e,d)})}},ye=function(){$(!1),c()};return window.addEventListener("mousemove",de,{passive:!0}),window.addEventListener("touchmove",de,{passive:!0}),window.addEventListener("mouseup",ye,{passive:!0}),window.addEventListener("touchend",ye,{passive:!0}),function(){window.removeEventListener("mousemove",de),window.removeEventListener("touchmove",de),window.removeEventListener("mouseup",ye),window.removeEventListener("touchend",ye),Tn.cancel(ce)}}},[w]),h.useEffect(function(){return Z(),function(){clearTimeout(q.current)}},[i]),h.useImperativeHandle(t,function(){return{delayHidden:Z}});var oe="".concat(n,"-scrollbar"),le={position:"absolute",visibility:z?null:"hidden"},Ce={position:"absolute",borderRadius:99,background:"var(--rc-virtual-list-scrollbar-bg, rgba(0, 0, 0, 0.5))",cursor:"pointer",userSelect:"none"};return d?(Object.assign(le,{height:8,left:0,right:0,bottom:0}),Object.assign(Ce,G({height:"100%",width:m},B?"left":"right",K))):(Object.assign(le,G({width:8,top:0,bottom:0},B?"right":"left",0)),Object.assign(Ce,{width:"100%",height:m,top:K})),h.createElement("div",{ref:A,className:te(oe,G(G(G({},"".concat(oe,"-horizontal"),d),"".concat(oe,"-vertical"),!d),"".concat(oe,"-visible"),z)),style:J(J({},le),v),onMouseDown:D,onMouseMove:Z},h.createElement("div",{ref:k,className:te("".concat(oe,"-thumb"),G({},"".concat(oe,"-thumb-moving"),w)),style:J(J({},Ce),y),onMouseDown:Q}))}),D7=20;function HR(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=e/t*e;return isNaN(n)&&(n=0),n=Math.max(n,D7),Math.floor(n)}var L7=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],k7=[],B7={overflowY:"auto",overflowAnchor:"none"};function H7(e,t){var n=e.prefixCls,r=n===void 0?"rc-virtual-list":n,i=e.className,a=e.height,l=e.itemHeight,c=e.fullHeight,u=c===void 0?!0:c,d=e.style,m=e.data,g=e.children,v=e.itemKey,y=e.virtual,b=e.direction,x=e.scrollWidth,S=e.component,w=S===void 0?"div":S,$=e.onScroll,O=e.onVirtualScroll,T=e.onVisibleChange,_=e.innerProps,R=e.extraRender,M=e.styles,P=e.showScrollBar,N=P===void 0?"optional":P,I=jt(e,L7),B=h.useCallback(function(We){return typeof v=="function"?v(We):We==null?void 0:We[v]},[v]),A=M7(B),k=me(A,4),j=k[0],V=k[1],z=k[2],F=k[3],q=!!(y!==!1&&a&&l),Z=h.useMemo(function(){return Object.values(z.maps).reduce(function(We,at){return We+at},0)},[z.id,z.maps]),H=q&&m&&(Math.max(l*m.length,Z)>a||!!x),U=b==="rtl",K=te(r,G({},"".concat(r,"-rtl"),U),i),D=m||k7,X=h.useRef(),Q=h.useRef(),Y=h.useRef(),ie=h.useState(0),oe=me(ie,2),le=oe[0],Ce=oe[1],ce=h.useState(0),de=me(ce,2),ye=de[0],ve=de[1],ge=h.useState(!1),fe=me(ge,2),we=fe[0],Te=fe[1],je=function(){Te(!0)},ze=function(){Te(!1)},Oe={getKey:B};function De(We){Ce(function(at){var _t;typeof We=="function"?_t=We(at):_t=We;var Dt=rn(_t);return X.current.scrollTop=Dt,Dt})}var Ne=h.useRef({start:0,end:D.length}),be=h.useRef(),Ye=T7(D,B),he=me(Ye,1),$e=he[0];be.current=$e;var Me=h.useMemo(function(){if(!q)return{scrollHeight:void 0,start:0,end:D.length-1,offset:void 0};if(!H){var We;return{scrollHeight:((We=Q.current)===null||We===void 0?void 0:We.offsetHeight)||0,start:0,end:D.length-1,offset:void 0}}for(var at=0,_t,Dt,rt,ct=D.length,It=0;It<ct;It+=1){var qt=D[It],nt=B(qt),bt=z.get(nt),Ft=at+(bt===void 0?l:bt);Ft>=le&&_t===void 0&&(_t=It,Dt=at),Ft>le+a&&rt===void 0&&(rt=It),at=Ft}return _t===void 0&&(_t=0,Dt=0,rt=Math.ceil(a/l)),rt===void 0&&(rt=D.length-1),rt=Math.min(rt+1,D.length-1),{scrollHeight:at,start:_t,end:rt,offset:Dt}},[H,q,le,D,F,a]),Ae=Me.scrollHeight,Xe=Me.start,Fe=Me.end,Ie=Me.offset;Ne.current.start=Xe,Ne.current.end=Fe,h.useLayoutEffect(function(){var We=z.getRecord();if(We.size===1){var at=Array.from(We.keys())[0],_t=We.get(at),Dt=D[Xe];if(Dt&&_t===void 0){var rt=B(Dt);if(rt===at){var ct=z.get(at),It=ct-l;De(function(qt){return qt+It})}}}z.resetRecord()},[Ae]);var Ge=h.useState({width:0,height:a}),Le=me(Ge,2),Ze=Le[0],_e=Le[1],tt=function(at){_e({width:at.offsetWidth,height:at.offsetHeight})},$t=h.useRef(),wt=h.useRef(),nn=h.useMemo(function(){return HR(Ze.width,x)},[Ze.width,x]),cn=h.useMemo(function(){return HR(Ze.height,Ae)},[Ze.height,Ae]),jn=Ae-a,$n=h.useRef(jn);$n.current=jn;function rn(We){var at=We;return Number.isNaN($n.current)||(at=Math.min(at,$n.current)),at=Math.max(at,0),at}var kt=le<=0,Mt=le>=jn,un=ye<=0,Jt=ye>=x,st=BP(kt,Mt,un,Jt),Pt=function(){return{x:U?-ye:ye,y:le}},vt=h.useRef(Pt()),Ke=cr(function(We){if(O){var at=J(J({},Pt()),We);(vt.current.x!==at.x||vt.current.y!==at.y)&&(O(at),vt.current=at)}});function Be(We,at){var _t=We;at?(kl.flushSync(function(){ve(_t)}),Ke()):De(_t)}function He(We){var at=We.currentTarget.scrollTop;at!==le&&De(at),$==null||$(We),Ke()}var Qe=function(at){var _t=at,Dt=x?x-Ze.width:0;return _t=Math.max(_t,0),_t=Math.min(_t,Dt),_t},ut=cr(function(We,at){at?(kl.flushSync(function(){ve(function(_t){var Dt=_t+(U?-We:We);return Qe(Dt)})}),Ke()):De(function(_t){var Dt=_t+We;return Dt})}),dt=_7(q,kt,Mt,un,Jt,!!x,ut),zt=me(dt,2),Ot=zt[0],Ct=zt[1];P7(q,X,function(We,at,_t,Dt){var rt=Dt;return st(We,at,_t)?!1:!rt||!rt._virtualHandled?(rt&&(rt._virtualHandled=!0),Ot({preventDefault:function(){},deltaX:We?at:0,deltaY:We?0:at}),!0):!1}),A7(H,X,function(We){De(function(at){return at+We})}),on(function(){function We(_t){var Dt=kt&&_t.detail<0,rt=Mt&&_t.detail>0;q&&!Dt&&!rt&&_t.preventDefault()}var at=X.current;return at.addEventListener("wheel",Ot,{passive:!1}),at.addEventListener("DOMMouseScroll",Ct,{passive:!0}),at.addEventListener("MozMousePixelScroll",We,{passive:!1}),function(){at.removeEventListener("wheel",Ot),at.removeEventListener("DOMMouseScroll",Ct),at.removeEventListener("MozMousePixelScroll",We)}},[q,kt,Mt]),on(function(){if(x){var We=Qe(ye);ve(We),Ke({x:We})}},[Ze.width,x]);var Vt=function(){var at,_t;(at=$t.current)===null||at===void 0||at.delayHidden(),(_t=wt.current)===null||_t===void 0||_t.delayHidden()},Dn=j7(X,D,z,l,B,function(){return V(!0)},De,Vt);h.useImperativeHandle(t,function(){return{nativeElement:Y.current,getScrollInfo:Pt,scrollTo:function(at){function _t(Dt){return Dt&&pt(Dt)==="object"&&("left"in Dt||"top"in Dt)}_t(at)?(at.left!==void 0&&ve(Qe(at.left)),Dn(at.top)):Dn(at)}}}),on(function(){if(T){var We=D.slice(Xe,Fe+1);T(We,D)}},[Xe,Fe,D]);var Bn=N7(D,B,z,l),Un=R==null?void 0:R({start:Xe,end:Fe,virtual:H,offsetX:ye,offsetY:Ie,rtl:U,getSize:Bn}),nr=O7(D,Xe,Fe,x,ye,j,g,Oe),an=null;a&&(an=J(G({},u?"height":"maxHeight",a),B7),q&&(an.overflowY="hidden",x&&(an.overflowX="hidden"),we&&(an.pointerEvents="none")));var Sn={};return U&&(Sn.dir="rtl"),h.createElement("div",Ue({ref:Y,style:J(J({},d),{},{position:"relative"}),className:K},Sn,I),h.createElement(ya,{onResize:tt},h.createElement(w,{className:"".concat(r,"-holder"),style:an,ref:X,onScroll:He,onMouseEnter:Vt},h.createElement(kP,{prefixCls:r,height:Ae,offsetX:ye,offsetY:Ie,scrollWidth:x,onInnerResize:V,ref:Q,innerProps:_,rtl:U,extra:Un},nr))),H&&Ae>a&&h.createElement(BR,{ref:$t,prefixCls:r,scrollOffset:le,scrollRange:Ae,rtl:U,onScroll:Be,onStartMove:je,onStopMove:ze,spinSize:cn,containerSize:Ze.height,style:M==null?void 0:M.verticalScrollBar,thumbStyle:M==null?void 0:M.verticalScrollBarThumb,showScrollBar:N}),H&&x>Ze.width&&h.createElement(BR,{ref:wt,prefixCls:r,scrollOffset:ye,scrollRange:x,rtl:U,onScroll:Be,onStartMove:je,onStopMove:ze,spinSize:nn,containerSize:Ze.width,horizontal:!0,style:M==null?void 0:M.horizontalScrollBar,thumbStyle:M==null?void 0:M.horizontalScrollBarThumb,showScrollBar:N}))}var o1=h.forwardRef(H7);o1.displayName="List";function F7(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var V7=["disabled","title","children","style","className"];function FR(e){return typeof e=="string"||typeof e=="number"}var U7=function(t,n){var r=T9(),i=r.prefixCls,a=r.id,l=r.open,c=r.multiple,u=r.mode,d=r.searchValue,m=r.toggleOpen,g=r.notFoundContent,v=r.onPopupScroll,y=h.useContext(r1),b=y.maxCount,x=y.flattenOptions,S=y.onActiveValue,w=y.defaultActiveFirstOption,$=y.onSelect,O=y.menuItemSelectedIcon,T=y.rawValues,_=y.fieldNames,R=y.virtual,M=y.direction,P=y.listHeight,N=y.listItemHeight,I=y.optionRender,B="".concat(i,"-item"),A=fh(function(){return x},[l,x],function(ce,de){return de[0]&&ce[1]!==de[1]}),k=h.useRef(null),j=h.useMemo(function(){return c&&sx(b)&&(T==null?void 0:T.size)>=b},[c,b,T==null?void 0:T.size]),V=function(de){de.preventDefault()},z=function(de){var ye;(ye=k.current)===null||ye===void 0||ye.scrollTo(typeof de=="number"?{index:de}:de)},F=h.useCallback(function(ce){return u==="combobox"?!1:T.has(ce)},[u,qe(T).toString(),T.size]),q=function(de){for(var ye=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,ve=A.length,ge=0;ge<ve;ge+=1){var fe=(de+ge*ye+ve)%ve,we=A[fe]||{},Te=we.group,je=we.data;if(!Te&&!(je!=null&&je.disabled)&&(F(je.value)||!j))return fe}return-1},Z=h.useState(function(){return q(0)}),H=me(Z,2),U=H[0],K=H[1],D=function(de){var ye=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;K(de);var ve={source:ye?"keyboard":"mouse"},ge=A[de];if(!ge){S(null,-1,ve);return}S(ge.value,de,ve)};h.useEffect(function(){D(w!==!1?q(0):-1)},[A.length,d]);var X=h.useCallback(function(ce){return u==="combobox"?String(ce).toLowerCase()===d.toLowerCase():T.has(ce)},[u,d,qe(T).toString(),T.size]);h.useEffect(function(){var ce=setTimeout(function(){if(!c&&l&&T.size===1){var ye=Array.from(T)[0],ve=A.findIndex(function(ge){var fe=ge.data;return d?String(fe.value).startsWith(d):fe.value===ye});ve!==-1&&(D(ve),z(ve))}});if(l){var de;(de=k.current)===null||de===void 0||de.scrollTo(void 0)}return function(){return clearTimeout(ce)}},[l,d]);var Q=function(de){de!==void 0&&$(de,{selected:!T.has(de)}),c||m(!1)};if(h.useImperativeHandle(n,function(){return{onKeyDown:function(de){var ye=de.which,ve=de.ctrlKey;switch(ye){case ot.N:case ot.P:case ot.UP:case ot.DOWN:{var ge=0;if(ye===ot.UP?ge=-1:ye===ot.DOWN?ge=1:F7()&&ve&&(ye===ot.N?ge=1:ye===ot.P&&(ge=-1)),ge!==0){var fe=q(U+ge,ge);z(fe),D(fe,!0)}break}case ot.TAB:case ot.ENTER:{var we,Te=A[U];Te&&!(Te!=null&&(we=Te.data)!==null&&we!==void 0&&we.disabled)&&!j?Q(Te.value):Q(void 0),l&&de.preventDefault();break}case ot.ESC:m(!1),l&&de.stopPropagation()}},onKeyUp:function(){},scrollTo:function(de){z(de)}}}),A.length===0)return h.createElement("div",{role:"listbox",id:"".concat(a,"_list"),className:"".concat(B,"-empty"),onMouseDown:V},g);var Y=Object.keys(_).map(function(ce){return _[ce]}),ie=function(de){return de.label};function oe(ce,de){var ye=ce.group;return{role:ye?"presentation":"option",id:"".concat(a,"_list_").concat(de)}}var le=function(de){var ye=A[de];if(!ye)return null;var ve=ye.data||{},ge=ve.value,fe=ye.group,we=La(ve,!0),Te=ie(ye);return ye?h.createElement("div",Ue({"aria-label":typeof Te=="string"&&!fe?Te:null},we,{key:de},oe(ye,de),{"aria-selected":X(ge)}),ge):null},Ce={role:"listbox",id:"".concat(a,"_list")};return h.createElement(h.Fragment,null,R&&h.createElement("div",Ue({},Ce,{style:{height:0,width:0,overflow:"hidden"}}),le(U-1),le(U),le(U+1)),h.createElement(o1,{itemKey:"key",ref:k,data:A,height:P,itemHeight:N,fullHeight:!1,onMouseDown:V,onScroll:v,virtual:R,direction:M,innerProps:R?null:Ce},function(ce,de){var ye=ce.group,ve=ce.groupOption,ge=ce.data,fe=ce.label,we=ce.value,Te=ge.key;if(ye){var je,ze=(je=ge.title)!==null&&je!==void 0?je:FR(fe)?fe.toString():void 0;return h.createElement("div",{className:te(B,"".concat(B,"-group"),ge.className),title:ze},fe!==void 0?fe:Te)}var Oe=ge.disabled,De=ge.title;ge.children;var Ne=ge.style,be=ge.className,Ye=jt(ge,V7),he=tr(Ye,Y),$e=F(we),Me=Oe||!$e&&j,Ae="".concat(B,"-option"),Xe=te(B,Ae,be,G(G(G(G({},"".concat(Ae,"-grouped"),ve),"".concat(Ae,"-active"),U===de&&!Me),"".concat(Ae,"-disabled"),Me),"".concat(Ae,"-selected"),$e)),Fe=ie(ce),Ie=!O||typeof O=="function"||$e,Ge=typeof Fe=="number"?Fe:Fe||we,Le=FR(Ge)?Ge.toString():void 0;return De!==void 0&&(Le=De),h.createElement("div",Ue({},La(he),R?{}:oe(ce,de),{"aria-selected":X(we),className:Xe,title:Le,onMouseMove:function(){U===de||Me||D(de)},onClick:function(){Me||Q(we)},style:Ne}),h.createElement("div",{className:"".concat(Ae,"-content")},typeof I=="function"?I(ce,{index:de}):Ge),h.isValidElement(O)||$e,Ie&&h.createElement(Jp,{className:"".concat(B,"-option-state"),customizeIcon:O,customizeIconProps:{value:we,disabled:Me,isSelected:$e}},$e?"✓":null))}))},q7=h.forwardRef(U7);const K7=(function(e,t){var n=h.useRef({values:new Map,options:new Map}),r=h.useMemo(function(){var a=n.current,l=a.values,c=a.options,u=e.map(function(g){if(g.label===void 0){var v;return J(J({},g),{},{label:(v=l.get(g.value))===null||v===void 0?void 0:v.label})}return g}),d=new Map,m=new Map;return u.forEach(function(g){d.set(g.value,g),m.set(g.value,t.get(g.value)||c.get(g.value))}),n.current.values=d,n.current.options=m,u},[e,t]),i=h.useCallback(function(a){return t.get(a)||n.current.options.get(a)},[t]);return[r,i]});function eb(e,t){return jP(e).join("").toUpperCase().includes(t)}const W7=(function(e,t,n,r,i){return h.useMemo(function(){if(!n||r===!1)return e;var a=t.options,l=t.label,c=t.value,u=[],d=typeof r=="function",m=n.toUpperCase(),g=d?r:function(y,b){return i?eb(b[i],m):b[a]?eb(b[l!=="children"?l:"label"],m):eb(b[c],m)},v=d?function(y){return cx(y)}:function(y){return y};return e.forEach(function(y){if(y[a]){var b=g(n,v(y));if(b)u.push(y);else{var x=y[a].filter(function(S){return g(n,v(S))});x.length&&u.push(J(J({},y),{},G({},a,x)))}return}g(n,v(y))&&u.push(y)}),u},[e,r,i,n,t])});var VR=0,G7=ai();function X7(){var e;return G7?(e=VR,VR+=1):e="TEST_OR_SSR",e}function Q7(e){var t=h.useState(),n=me(t,2),r=n[0],i=n[1];return h.useEffect(function(){i("rc_select_".concat(X7()))},[]),e||r}var Y7=["children","value"],Z7=["children"];function J7(e){var t=e,n=t.key,r=t.props,i=r.children,a=r.value,l=jt(r,Y7);return J({key:n,value:a!==void 0?a:n,children:i},l)}function HP(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return hi(e).map(function(n,r){if(!h.isValidElement(n)||!n.type)return null;var i=n,a=i.type.isSelectOptGroup,l=i.key,c=i.props,u=c.children,d=jt(c,Z7);return t||!a?J7(n):J(J({key:"__RC_SELECT_GRP__".concat(l===null?r:l,"__"),label:l},d),{},{options:HP(u)})}).filter(function(n){return n})}var eV=function(t,n,r,i,a){return h.useMemo(function(){var l=t,c=!t;c&&(l=HP(n));var u=new Map,d=new Map,m=function(y,b,x){x&&typeof x=="string"&&y.set(b[x],b)},g=function v(y){for(var b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,x=0;x<y.length;x+=1){var S=y[x];!S[r.options]||b?(u.set(S[r.value],S),m(d,S,r.label),m(d,S,i),m(d,S,a)):v(S[r.options],!0)}};return g(l),{options:l,valueOptions:u,labelOptions:d}},[t,n,r,i,a])};function UR(e){var t=h.useRef();t.current=e;var n=h.useCallback(function(){return t.current.apply(t,arguments)},[]);return n}var tV=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","optionRender","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","direction","listHeight","listItemHeight","labelRender","value","defaultValue","labelInValue","onChange","maxCount"],nV=["inputValue"];function rV(e){return!e||pt(e)!=="object"}var iV=h.forwardRef(function(e,t){var n=e.id,r=e.mode,i=e.prefixCls,a=i===void 0?"rc-select":i,l=e.backfill,c=e.fieldNames,u=e.inputValue,d=e.searchValue,m=e.onSearch,g=e.autoClearSearchValue,v=g===void 0?!0:g,y=e.onSelect,b=e.onDeselect,x=e.dropdownMatchSelectWidth,S=x===void 0?!0:x,w=e.filterOption,$=e.filterSort,O=e.optionFilterProp,T=e.optionLabelProp,_=e.options,R=e.optionRender,M=e.children,P=e.defaultActiveFirstOption,N=e.menuItemSelectedIcon,I=e.virtual,B=e.direction,A=e.listHeight,k=A===void 0?200:A,j=e.listItemHeight,V=j===void 0?20:j,z=e.labelRender,F=e.value,q=e.defaultValue,Z=e.labelInValue,H=e.onChange,U=e.maxCount,K=jt(e,tV),D=Q7(n),X=ux(r),Q=!!(!_&&M),Y=h.useMemo(function(){return w===void 0&&r==="combobox"?!1:w},[w,r]),ie=h.useMemo(function(){return LP(c,Q)},[JSON.stringify(c),Q]),oe=vr("",{value:d!==void 0?d:u,postState:function(Be){return Be||""}}),le=me(oe,2),Ce=le[0],ce=le[1],de=eV(_,M,ie,O,T),ye=de.valueOptions,ve=de.labelOptions,ge=de.options,fe=h.useCallback(function(Ke){var Be=jP(Ke);return Be.map(function(He){var Qe,ut,dt,zt,Ot;if(rV(He))Qe=He;else{var Ct;dt=He.key,ut=He.label,Qe=(Ct=He.value)!==null&&Ct!==void 0?Ct:dt}var Vt=ye.get(Qe);if(Vt){var Dn;ut===void 0&&(ut=Vt==null?void 0:Vt[T||ie.label]),dt===void 0&&(dt=(Dn=Vt==null?void 0:Vt.key)!==null&&Dn!==void 0?Dn:Qe),zt=Vt==null?void 0:Vt.disabled,Ot=Vt==null?void 0:Vt.title}return{label:ut,value:Qe,key:dt,disabled:zt,title:Ot}})},[ie,T,ye]),we=vr(q,{value:F}),Te=me(we,2),je=Te[0],ze=Te[1],Oe=h.useMemo(function(){var Ke,Be=X&&je===null?[]:je,He=fe(Be);return r==="combobox"&&X9((Ke=He[0])===null||Ke===void 0?void 0:Ke.value)?[]:He},[je,fe,r,X]),De=K7(Oe,ye),Ne=me(De,2),be=Ne[0],Ye=Ne[1],he=h.useMemo(function(){if(!r&&be.length===1){var Ke=be[0];if(Ke.value===null&&(Ke.label===null||Ke.label===void 0))return[]}return be.map(function(Be){var He;return J(J({},Be),{},{label:(He=typeof z=="function"?z(Be):Be.label)!==null&&He!==void 0?He:Be.value})})},[r,be,z]),$e=h.useMemo(function(){return new Set(be.map(function(Ke){return Ke.value}))},[be]);h.useEffect(function(){if(r==="combobox"){var Ke,Be=(Ke=be[0])===null||Ke===void 0?void 0:Ke.value;ce(G9(Be)?String(Be):"")}},[be]);var Me=UR(function(Ke,Be){var He=Be??Ke;return G(G({},ie.value,Ke),ie.label,He)}),Ae=h.useMemo(function(){if(r!=="tags")return ge;var Ke=qe(ge),Be=function(Qe){return ye.has(Qe)};return qe(be).sort(function(He,Qe){return He.value<Qe.value?-1:1}).forEach(function(He){var Qe=He.value;Be(Qe)||Ke.push(Me(Qe,He.label))}),Ke},[Me,ge,ye,be,r]),Xe=W7(Ae,ie,Ce,Y,O),Fe=h.useMemo(function(){return r!=="tags"||!Ce||Xe.some(function(Ke){return Ke[O||"value"]===Ce})||Xe.some(function(Ke){return Ke[ie.value]===Ce})?Xe:[Me(Ce)].concat(qe(Xe))},[Me,O,r,Xe,Ce,ie]),Ie=function Ke(Be){var He=qe(Be).sort(function(Qe,ut){return $(Qe,ut,{searchValue:Ce})});return He.map(function(Qe){return Array.isArray(Qe.options)?J(J({},Qe),{},{options:Qe.options.length>0?Ke(Qe.options):Qe.options}):Qe})},Ge=h.useMemo(function(){return $?Ie(Fe):Fe},[Fe,$,Ce]),Le=h.useMemo(function(){return b7(Ge,{fieldNames:ie,childrenAsData:Q})},[Ge,ie,Q]),Ze=function(Be){var He=fe(Be);if(ze(He),H&&(He.length!==be.length||He.some(function(dt,zt){var Ot;return((Ot=be[zt])===null||Ot===void 0?void 0:Ot.value)!==(dt==null?void 0:dt.value)}))){var Qe=Z?He:He.map(function(dt){return dt.value}),ut=He.map(function(dt){return cx(Ye(dt.value))});H(X?Qe:Qe[0],X?ut:ut[0])}},_e=h.useState(null),tt=me(_e,2),$t=tt[0],wt=tt[1],nn=h.useState(0),cn=me(nn,2),jn=cn[0],$n=cn[1],rn=P!==void 0?P:r!=="combobox",kt=h.useCallback(function(Ke,Be){var He=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Qe=He.source,ut=Qe===void 0?"keyboard":Qe;$n(Be),l&&r==="combobox"&&Ke!==null&&ut==="keyboard"&&wt(String(Ke))},[l,r]),Mt=function(Be,He,Qe){var ut=function(){var an,Sn=Ye(Be);return[Z?{label:Sn==null?void 0:Sn[ie.label],value:Be,key:(an=Sn==null?void 0:Sn.key)!==null&&an!==void 0?an:Be}:Be,cx(Sn)]};if(He&&y){var dt=ut(),zt=me(dt,2),Ot=zt[0],Ct=zt[1];y(Ot,Ct)}else if(!He&&b&&Qe!=="clear"){var Vt=ut(),Dn=me(Vt,2),Bn=Dn[0],Un=Dn[1];b(Bn,Un)}},un=UR(function(Ke,Be){var He,Qe=X?Be.selected:!0;Qe?He=X?[].concat(qe(be),[Ke]):[Ke]:He=be.filter(function(ut){return ut.value!==Ke}),Ze(He),Mt(Ke,Qe),r==="combobox"?wt(""):(!ux||v)&&(ce(""),wt(""))}),Jt=function(Be,He){Ze(Be);var Qe=He.type,ut=He.values;(Qe==="remove"||Qe==="clear")&&ut.forEach(function(dt){Mt(dt.value,!1,Qe)})},st=function(Be,He){if(ce(Be),wt(null),He.source==="submit"){var Qe=(Be||"").trim();if(Qe){var ut=Array.from(new Set([].concat(qe($e),[Qe])));Ze(ut),Mt(Qe,!0),ce("")}return}He.source!=="blur"&&(r==="combobox"&&Ze(Be),m==null||m(Be))},Pt=function(Be){var He=Be;r!=="tags"&&(He=Be.map(function(ut){var dt=ve.get(ut);return dt==null?void 0:dt.value}).filter(function(ut){return ut!==void 0}));var Qe=Array.from(new Set([].concat(qe($e),qe(He))));Ze(Qe),Qe.forEach(function(ut){Mt(ut,!0)})},vt=h.useMemo(function(){var Ke=I!==!1&&S!==!1;return J(J({},de),{},{flattenOptions:Le,onActiveValue:kt,defaultActiveFirstOption:rn,onSelect:un,menuItemSelectedIcon:N,rawValues:$e,fieldNames:ie,virtual:Ke,direction:B,listHeight:k,listItemHeight:V,childrenAsData:Q,maxCount:U,optionRender:R})},[U,de,Le,kt,rn,un,N,$e,ie,I,S,B,k,V,Q,R]);return h.createElement(r1.Provider,{value:vt},h.createElement(E7,Ue({},K,{id:D,prefixCls:a,ref:t,omitDomProps:nV,mode:r,displayValues:he,onDisplayValuesChange:Jt,direction:B,searchValue:Ce,onSearch:st,autoClearSearchValue:v,onSearchSplit:Pt,dropdownMatchSelectWidth:S,OptionList:q7,emptyOptions:!Le.length,activeValue:$t,activeDescendantId:"".concat(D,"_list_").concat(jn)})))}),l1=iV;l1.Option=a1;l1.OptGroup=i1;function Ug(e,t,n){return te({[`${e}-status-success`]:t==="success",[`${e}-status-warning`]:t==="warning",[`${e}-status-error`]:t==="error",[`${e}-status-validating`]:t==="validating",[`${e}-has-feedback`]:n})}const tv=(e,t)=>t||e,aV=()=>{const[,e]=Zr(),[t]=Wl("Empty"),r=new _n(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return h.createElement("svg",{style:r,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},h.createElement("title",null,(t==null?void 0:t.description)||"Empty"),h.createElement("g",{fill:"none",fillRule:"evenodd"},h.createElement("g",{transform:"translate(24 31.67)"},h.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),h.createElement("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"}),h.createElement("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}),h.createElement("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"}),h.createElement("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"})),h.createElement("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"}),h.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},h.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),h.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},oV=()=>{const[,e]=Zr(),[t]=Wl("Empty"),{colorFill:n,colorFillTertiary:r,colorFillQuaternary:i,colorBgContainer:a}=e,{borderColor:l,shadowColor:c,contentColor:u}=h.useMemo(()=>({borderColor:new _n(n).onBackground(a).toHexString(),shadowColor:new _n(r).onBackground(a).toHexString(),contentColor:new _n(i).onBackground(a).toHexString()}),[n,r,i,a]);return h.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},h.createElement("title",null,(t==null?void 0:t.description)||"Empty"),h.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},h.createElement("ellipse",{fill:c,cx:"32",cy:"33",rx:"32",ry:"7"}),h.createElement("g",{fillRule:"nonzero",stroke:l},h.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),h.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:u}))))},lV=e=>{const{componentCls:t,margin:n,marginXS:r,marginXL:i,fontSize:a,lineHeight:l}=e;return{[t]:{marginInline:r,fontSize:a,lineHeight:l,textAlign:"center",[`${t}-image`]:{height:e.emptyImgHeight,marginBottom:r,opacity:e.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${t}-description`]:{color:e.colorTextDescription},[`${t}-footer`]:{marginTop:n},"&-normal":{marginBlock:i,color:e.colorTextDescription,[`${t}-description`]:{color:e.colorTextDescription},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:r,color:e.colorTextDescription,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}},sV=Nn("Empty",e=>{const{componentCls:t,controlHeightLG:n,calc:r}=e,i=sn(e,{emptyImgCls:`${t}-img`,emptyImgHeight:r(n).mul(2.5).equal(),emptyImgHeightMD:n,emptyImgHeightSM:r(n).mul(.875).equal()});return lV(i)});var cV=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const FP=h.createElement(aV,null),VP=h.createElement(oV,null),Cl=e=>{var t;const{className:n,rootClassName:r,prefixCls:i,image:a,description:l,children:c,imageStyle:u,style:d,classNames:m,styles:g}=e,v=cV(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style","classNames","styles"]),{getPrefixCls:y,direction:b,className:x,style:S,classNames:w,styles:$,image:O}=Yr("empty"),T=y("empty",i),[_,R,M]=sV(T),[P]=Wl("Empty"),N=typeof l<"u"?l:P==null?void 0:P.description,I=typeof N=="string"?N:"empty",B=(t=a??O)!==null&&t!==void 0?t:FP;let A=null;return typeof B=="string"?A=h.createElement("img",{draggable:!1,alt:I,src:B}):A=B,_(h.createElement("div",Object.assign({className:te(R,M,T,x,{[`${T}-normal`]:B===VP,[`${T}-rtl`]:b==="rtl"},n,r,w.root,m==null?void 0:m.root),style:Object.assign(Object.assign(Object.assign(Object.assign({},$.root),S),g==null?void 0:g.root),d)},v),h.createElement("div",{className:te(`${T}-image`,w.image,m==null?void 0:m.image),style:Object.assign(Object.assign(Object.assign({},u),$.image),g==null?void 0:g.image)},A),N&&h.createElement("div",{className:te(`${T}-description`,w.description,m==null?void 0:m.description),style:Object.assign(Object.assign({},$.description),g==null?void 0:g.description)},N),c&&h.createElement("div",{className:te(`${T}-footer`,w.footer,m==null?void 0:m.footer),style:Object.assign(Object.assign({},$.footer),g==null?void 0:g.footer)},c)))};Cl.PRESENTED_IMAGE_DEFAULT=FP;Cl.PRESENTED_IMAGE_SIMPLE=VP;const UP=e=>{const{componentName:t}=e,{getPrefixCls:n}=h.useContext(Tt),r=n("empty");switch(t){case"Table":case"List":return re.createElement(Cl,{image:Cl.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return re.createElement(Cl,{image:Cl.PRESENTED_IMAGE_SIMPLE,className:`${r}-small`});case"Table.filter":return null;default:return re.createElement(Cl,null)}},nv=(e,t,n)=>{var r,i;const{variant:a,[e]:l}=h.useContext(Tt),c=h.useContext(CP),u=l==null?void 0:l.variant;let d;typeof t<"u"?d=t:n===!1?d="borderless":d=(i=(r=c??u)!==null&&r!==void 0?r:a)!==null&&i!==void 0?i:"outlined";const m=N6.includes(d);return[d,m]},uV=e=>{const n={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:e==="scroll"?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},n),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},n),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},n),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},n),{points:["br","tr"],offset:[0,-4]})}};function dV(e,t){return e||uV(t)}const qR=e=>{const{optionHeight:t,optionFontSize:n,optionLineHeight:r,optionPadding:i}=e;return{position:"relative",display:"block",minHeight:t,padding:i,color:e.colorText,fontWeight:"normal",fontSize:n,lineHeight:r,boxSizing:"border-box"}},fV=e=>{const{antCls:t,componentCls:n}=e,r=`${n}-item`,i=`&${t}-slide-up-enter${t}-slide-up-enter-active`,a=`&${t}-slide-up-appear${t}-slide-up-appear-active`,l=`&${t}-slide-up-leave${t}-slide-up-leave-active`,c=`${n}-dropdown-placement-`,u=`${r}-option-selected`;return[{[`${n}-dropdown`]:Object.assign(Object.assign({},lr(e)),{position:"absolute",top:-9999,zIndex:e.zIndexPopup,boxSizing:"border-box",padding:e.paddingXXS,overflow:"hidden",fontSize:e.fontSize,fontVariant:"initial",backgroundColor:e.colorBgElevated,borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,[`
|
|
191
|
-
${i}${c}bottomLeft,
|
|
192
|
-
${a}${c}bottomLeft
|
|
193
|
-
`]:{animationName:qC},[`
|
|
194
|
-
${i}${c}topLeft,
|
|
195
|
-
${a}${c}topLeft,
|
|
196
|
-
${i}${c}topRight,
|
|
197
|
-
${a}${c}topRight
|
|
198
|
-
`]:{animationName:WC},[`${l}${c}bottomLeft`]:{animationName:KC},[`
|
|
199
|
-
${l}${c}topLeft,
|
|
200
|
-
${l}${c}topRight
|
|
201
|
-
`]:{animationName:GC},"&-hidden":{display:"none"},[r]:Object.assign(Object.assign({},qR(e)),{cursor:"pointer",transition:`background ${e.motionDurationSlow} ease`,borderRadius:e.borderRadiusSM,"&-group":{color:e.colorTextDescription,fontSize:e.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},Hs),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${r}-option-disabled)`]:{backgroundColor:e.optionActiveBg},[`&-selected:not(${r}-option-disabled)`]:{color:e.optionSelectedColor,fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg,[`${r}-option-state`]:{color:e.colorPrimary}},"&-disabled":{[`&${r}-option-selected`]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:e.calc(e.controlPaddingHorizontal).mul(2).equal()}},"&-empty":Object.assign(Object.assign({},qR(e)),{color:e.colorTextDisabled})}),[`${u}:has(+ ${u})`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${u}`]:{borderStartStartRadius:0,borderStartEndRadius:0}},"&-rtl":{direction:"rtl"}})},Fl(e,"slide-up"),Fl(e,"slide-down"),Fg(e,"move-up"),Fg(e,"move-down")]},hV=e=>{const{multipleSelectItemHeight:t,paddingXXS:n,lineWidth:r,INTERNAL_FIXED_ITEM_MARGIN:i}=e,a=e.max(e.calc(n).sub(r).equal(),0),l=e.max(e.calc(a).sub(i).equal(),0);return{basePadding:a,containerPadding:l,itemHeight:ae(t),itemLineHeight:ae(e.calc(t).sub(e.calc(e.lineWidth).mul(2)).equal())}},mV=e=>{const{multipleSelectItemHeight:t,selectHeight:n,lineWidth:r}=e;return e.calc(n).sub(t).div(2).sub(r).equal()},gV=e=>{const{componentCls:t,iconCls:n,borderRadiusSM:r,motionDurationSlow:i,paddingXS:a,multipleItemColorDisabled:l,multipleItemBorderColorDisabled:c,colorIcon:u,colorIconHover:d,INTERNAL_FIXED_ITEM_MARGIN:m}=e;return{[`${t}-selection-overflow`]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"calc(100% - 4px)",display:"inline-flex"},[`${t}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",marginBlock:m,borderRadius:r,cursor:"default",transition:`font-size ${i}, line-height ${i}, height ${i}`,marginInlineEnd:e.calc(m).mul(2).equal(),paddingInlineStart:a,paddingInlineEnd:e.calc(a).div(2).equal(),[`${t}-disabled&`]:{color:l,borderColor:c,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.calc(a).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},gh()),{display:"inline-flex",alignItems:"center",color:u,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${n}`]:{verticalAlign:"-0.2em"},"&:hover":{color:d}})}}}},pV=(e,t)=>{const{componentCls:n,INTERNAL_FIXED_ITEM_MARGIN:r}=e,i=`${n}-selection-overflow`,a=e.multipleSelectItemHeight,l=mV(e),c=t?`${n}-${t}`:"",u=hV(e);return{[`${n}-multiple${c}`]:Object.assign(Object.assign({},gV(e)),{[`${n}-selector`]:{display:"flex",alignItems:"center",width:"100%",height:"100%",paddingInline:u.basePadding,paddingBlock:u.containerPadding,borderRadius:e.borderRadius,[`${n}-disabled&`]:{background:e.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${ae(r)} 0`,lineHeight:ae(a),visibility:"hidden",content:'"\\a0"'}},[`${n}-selection-item`]:{height:u.itemHeight,lineHeight:ae(u.itemLineHeight)},[`${n}-selection-wrap`]:{alignSelf:"flex-start","&:after":{lineHeight:ae(a),marginBlock:r}},[`${n}-prefix`]:{marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(u.basePadding).equal()},[`${i}-item + ${i}-item,
|
|
202
|
-
${n}-prefix + ${n}-selection-wrap
|
|
203
|
-
`]:{[`${n}-selection-search`]:{marginInlineStart:0},[`${n}-selection-placeholder`]:{insetInlineStart:0}},[`${i}-item-suffix`]:{minHeight:u.itemHeight,marginBlock:r},[`${n}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(l).equal(),"\n &-input,\n &-mirror\n ":{height:a,fontFamily:e.fontFamily,lineHeight:ae(a),transition:`all ${e.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${n}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(u.basePadding).equal(),insetInlineEnd:e.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`}})}};function tb(e,t){const{componentCls:n}=e,r=t?`${n}-${t}`:"",i={[`${n}-multiple${r}`]:{fontSize:e.fontSize,[`${n}-selector`]:{[`${n}-show-search&`]:{cursor:"text"}},[`
|
|
204
|
-
&${n}-show-arrow ${n}-selector,
|
|
205
|
-
&${n}-allow-clear ${n}-selector
|
|
206
|
-
`]:{paddingInlineEnd:e.calc(e.fontSizeIcon).add(e.controlPaddingHorizontal).equal()}}};return[pV(e,t),i]}const vV=e=>{const{componentCls:t}=e,n=sn(e,{selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),r=sn(e,{fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius});return[tb(e),tb(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal()},[`${t}-selection-search`]:{marginInlineStart:2}}},tb(r,"lg")]};function nb(e,t){const{componentCls:n,inputPaddingHorizontalBase:r,borderRadius:i}=e,a=e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),l=t?`${n}-${t}`:"";return{[`${n}-single${l}`]:{fontSize:e.fontSize,height:e.controlHeight,[`${n}-selector`]:Object.assign(Object.assign({},lr(e,!0)),{display:"flex",borderRadius:i,flex:"1 1 auto",[`${n}-selection-wrap:after`]:{lineHeight:ae(a)},[`${n}-selection-search`]:{position:"absolute",inset:0,width:"100%","&-input":{width:"100%",WebkitAppearance:"textfield"}},[`
|
|
207
|
-
${n}-selection-item,
|
|
208
|
-
${n}-selection-placeholder
|
|
209
|
-
`]:{display:"block",padding:0,lineHeight:ae(a),transition:`all ${e.motionDurationSlow}, visibility 0s`,alignSelf:"center"},[`${n}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${n}-selection-item:empty:after`,`${n}-selection-placeholder:empty:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`
|
|
210
|
-
&${n}-show-arrow ${n}-selection-item,
|
|
211
|
-
&${n}-show-arrow ${n}-selection-search,
|
|
212
|
-
&${n}-show-arrow ${n}-selection-placeholder
|
|
213
|
-
`]:{paddingInlineEnd:e.showArrowPaddingInlineEnd},[`&${n}-open ${n}-selection-item`]:{color:e.colorTextPlaceholder},[`&:not(${n}-customize-input)`]:{[`${n}-selector`]:{width:"100%",height:"100%",alignItems:"center",padding:`0 ${ae(r)}`,[`${n}-selection-search-input`]:{height:a,fontSize:e.fontSize},"&:after":{lineHeight:ae(a)}}},[`&${n}-customize-input`]:{[`${n}-selector`]:{"&:after":{display:"none"},[`${n}-selection-search`]:{position:"static",width:"100%"},[`${n}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${ae(r)}`,"&:after":{display:"none"}}}}}}}function yV(e){const{componentCls:t}=e,n=e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal();return[nb(e),nb(sn(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{[`${t}-single${t}-sm`]:{[`&:not(${t}-customize-input)`]:{[`${t}-selector`]:{padding:`0 ${ae(n)}`},[`&${t}-show-arrow ${t}-selection-search`]:{insetInlineEnd:e.calc(n).add(e.calc(e.fontSize).mul(1.5)).equal()},[`
|
|
214
|
-
&${t}-show-arrow ${t}-selection-item,
|
|
215
|
-
&${t}-show-arrow ${t}-selection-placeholder
|
|
216
|
-
`]:{paddingInlineEnd:e.calc(e.fontSize).mul(1.5).equal()}}}},nb(sn(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}const bV=e=>{const{fontSize:t,lineHeight:n,lineWidth:r,controlHeight:i,controlHeightSM:a,controlHeightLG:l,paddingXXS:c,controlPaddingHorizontal:u,zIndexPopupBase:d,colorText:m,fontWeightStrong:g,controlItemBgActive:v,controlItemBgHover:y,colorBgContainer:b,colorFillSecondary:x,colorBgContainerDisabled:S,colorTextDisabled:w,colorPrimaryHover:$,colorPrimary:O,controlOutline:T}=e,_=c*2,R=r*2,M=Math.min(i-_,i-R),P=Math.min(a-_,a-R),N=Math.min(l-_,l-R);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(c/2),zIndexPopup:d+50,optionSelectedColor:m,optionSelectedFontWeight:g,optionSelectedBg:v,optionActiveBg:y,optionPadding:`${(i-t*n)/2}px ${u}px`,optionFontSize:t,optionLineHeight:n,optionHeight:i,selectorBg:b,clearBg:b,singleItemHeightLG:l,multipleItemBg:x,multipleItemBorderColor:"transparent",multipleItemHeight:M,multipleItemHeightSM:P,multipleItemHeightLG:N,multipleSelectorBgDisabled:S,multipleItemColorDisabled:w,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(e.fontSize*1.25),hoverBorderColor:$,activeBorderColor:O,activeOutlineColor:T,selectAffixPadding:c}},qP=(e,t)=>{const{componentCls:n,antCls:r,controlOutlineWidth:i}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{border:`${ae(e.lineWidth)} ${e.lineType} ${t.borderColor}`,background:e.selectorBg},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{borderColor:t.hoverBorderHover},[`${n}-focused& ${n}-selector`]:{borderColor:t.activeBorderColor,boxShadow:`0 0 0 ${ae(i)} ${t.activeOutlineColor}`,outline:0},[`${n}-prefix`]:{color:t.color}}}},KR=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},qP(e,t))}),SV=e=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},qP(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeOutlineColor:e.activeOutlineColor,color:e.colorText})),KR(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeOutlineColor:e.colorErrorOutline,color:e.colorError})),KR(e,{status:"warning",borderColor:e.colorWarning,hoverBorderHover:e.colorWarningHover,activeBorderColor:e.colorWarning,activeOutlineColor:e.colorWarningOutline,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${ae(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),KP=(e,t)=>{const{componentCls:n,antCls:r}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{background:t.bg,border:`${ae(e.lineWidth)} ${e.lineType} transparent`,color:t.color},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{background:t.hoverBg},[`${n}-focused& ${n}-selector`]:{background:e.selectorBg,borderColor:t.activeBorderColor,outline:0}}}},WR=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},KP(e,t))}),xV=e=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},KP(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor,color:e.colorText})),WR(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,color:e.colorError})),WR(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{borderColor:e.colorBorder,background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.colorBgContainer,border:`${ae(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}})}),CV=e=>({"&-borderless":{[`${e.componentCls}-selector`]:{background:"transparent",border:`${ae(e.lineWidth)} ${e.lineType} transparent`},[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${ae(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`},[`&${e.componentCls}-status-error`]:{[`${e.componentCls}-prefix, ${e.componentCls}-selection-item`]:{color:e.colorError}},[`&${e.componentCls}-status-warning`]:{[`${e.componentCls}-prefix, ${e.componentCls}-selection-item`]:{color:e.colorWarning}}}}),WP=(e,t)=>{const{componentCls:n,antCls:r}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{borderWidth:`${ae(e.lineWidth)} 0`,borderStyle:`${e.lineType} none`,borderColor:`transparent transparent ${t.borderColor} transparent`,background:e.selectorBg,borderRadius:0},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{borderColor:`transparent transparent ${t.hoverBorderHover} transparent`},[`${n}-focused& ${n}-selector`]:{borderColor:`transparent transparent ${t.activeBorderColor} transparent`,outline:0},[`${n}-prefix`]:{color:t.color}}}},GR=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},WP(e,t))}),wV=e=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign({},WP(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeOutlineColor:e.activeOutlineColor,color:e.colorText})),GR(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeOutlineColor:e.colorErrorOutline,color:e.colorError})),GR(e,{status:"warning",borderColor:e.colorWarning,hoverBorderHover:e.colorWarningHover,activeBorderColor:e.colorWarning,activeOutlineColor:e.colorWarningOutline,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${ae(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),EV=e=>({[e.componentCls]:Object.assign(Object.assign(Object.assign(Object.assign({},SV(e)),xV(e)),CV(e)),wV(e))}),$V=e=>{const{componentCls:t}=e;return{position:"relative",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,input:{cursor:"pointer"},[`${t}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},[`${t}-disabled&`]:{cursor:"not-allowed",input:{cursor:"not-allowed"}}}},OV=e=>{const{componentCls:t}=e;return{[`${t}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none",fontFamily:"inherit","&::-webkit-search-cancel-button":{display:"none",appearance:"none"}}}},RV=e=>{const{antCls:t,componentCls:n,inputPaddingHorizontalBase:r,iconCls:i}=e,a={[`${n}-clear`]:{opacity:1,background:e.colorBgBase,borderRadius:"50%"}};return{[n]:Object.assign(Object.assign({},lr(e)),{position:"relative",display:"inline-flex",cursor:"pointer",[`&:not(${n}-customize-input) ${n}-selector`]:Object.assign(Object.assign({},$V(e)),OV(e)),[`${n}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},Hs),{[`> ${t}-typography`]:{display:"inline"}}),[`${n}-selection-placeholder`]:Object.assign(Object.assign({},Hs),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${n}-arrow`]:Object.assign(Object.assign({},gh()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",transition:`opacity ${e.motionDurationSlow} ease`,[i]:{verticalAlign:"top",transition:`transform ${e.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${n}-suffix)`]:{pointerEvents:"auto"}},[`${n}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${n}-selection-wrap`]:{display:"flex",width:"100%",position:"relative",minWidth:0,"&:after":{content:'"\\a0"',width:0,overflow:"hidden"}},[`${n}-prefix`]:{flex:"none",marginInlineEnd:e.selectAffixPadding},[`${n}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,zIndex:1,display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",cursor:"pointer",opacity:0,transition:`color ${e.motionDurationMid} ease, opacity ${e.motionDurationSlow} ease`,textRendering:"auto",transform:"translateZ(0)","&:before":{display:"block"},"&:hover":{color:e.colorIcon}},"@media(hover:none)":a,"&:hover":a}),[`${n}-status`]:{"&-error, &-warning, &-success, &-validating":{[`&${n}-has-feedback`]:{[`${n}-clear`]:{insetInlineEnd:e.calc(r).add(e.fontSize).add(e.paddingXS).equal()}}}}}},TV=e=>{const{componentCls:t}=e;return[{[t]:{[`&${t}-in-form-item`]:{width:"100%"}}},RV(e),yV(e),vV(e),fV(e),{[`${t}-rtl`]:{direction:"rtl"}},Qp(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},_V=Nn("Select",(e,{rootPrefixCls:t})=>{const n=sn(e,{rootPrefixCls:t,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[TV(n),EV(n)]},bV,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}});var NV={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"},IV=function(t,n){return h.createElement(mn,Ue({},t,{ref:n,icon:NV}))},s1=h.forwardRef(IV),MV={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"},PV=function(t,n){return h.createElement(mn,Ue({},t,{ref:n,icon:MV}))},GP=h.forwardRef(PV),AV={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"},zV=function(t,n){return h.createElement(mn,Ue({},t,{ref:n,icon:AV}))},XP=h.forwardRef(zV);function jV({suffixIcon:e,clearIcon:t,menuItemSelectedIcon:n,removeIcon:r,loading:i,multiple:a,hasFeedback:l,prefixCls:c,showSuffixIcon:u,feedbackIcon:d,showArrow:m,componentName:g}){const v=t??h.createElement(Xu,null),y=w=>e===null&&!l&&!m?null:h.createElement(h.Fragment,null,u!==!1&&w,l&&d);let b=null;if(e!==void 0)b=y(e);else if(i)b=y(h.createElement(vh,{spin:!0}));else{const w=`${c}-suffix`;b=({open:$,showSearch:O})=>y($&&O?h.createElement(XP,{className:w}):h.createElement(GP,{className:w}))}let x=null;n!==void 0?x=n:a?x=h.createElement(s1,null):x=null;let S=null;return r!==void 0?S=r:S=h.createElement(Qu,null),{clearIcon:v,suffixIcon:b,itemIcon:x,removeIcon:S}}function DV(e){return re.useMemo(()=>{if(e)return(...t)=>re.createElement(kf,{space:!0},e.apply(void 0,t))},[e])}function LV(e,t){return t!==void 0?t:e!==null}var kV=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const QP="SECRET_COMBOBOX_MODE_DO_NOT_USE",BV=(e,t)=>{var n,r,i,a,l;const{prefixCls:c,bordered:u,className:d,rootClassName:m,getPopupContainer:g,popupClassName:v,dropdownClassName:y,listHeight:b=256,placement:x,listItemHeight:S,size:w,disabled:$,notFoundContent:O,status:T,builtinPlacements:_,dropdownMatchSelectWidth:R,popupMatchSelectWidth:M,direction:P,style:N,allowClear:I,variant:B,dropdownStyle:A,transitionName:k,tagRender:j,maxCount:V,prefix:z,dropdownRender:F,popupRender:q,onDropdownVisibleChange:Z,onOpenChange:H,styles:U,classNames:K}=e,D=kV(e,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear","variant","dropdownStyle","transitionName","tagRender","maxCount","prefix","dropdownRender","popupRender","onDropdownVisibleChange","onOpenChange","styles","classNames"]),{getPopupContainer:X,getPrefixCls:Q,renderEmpty:Y,direction:ie,virtual:oe,popupMatchSelectWidth:le,popupOverflow:Ce}=h.useContext(Tt),{showSearch:ce,style:de,styles:ye,className:ve,classNames:ge}=Yr("select"),[,fe]=Zr(),we=S??(fe==null?void 0:fe.controlHeight),Te=Q("select",c),je=Q(),ze=P??ie,{compactSize:Oe,compactItemClassnames:De}=rc(Te,ze),[Ne,be]=nv("select",B,u),Ye=Yi(Te),[he,$e,Me]=_V(Te,Ye),Ae=h.useMemo(()=>{const{mode:Qe}=e;if(Qe!=="combobox")return Qe===QP?"combobox":Qe},[e.mode]),Xe=Ae==="multiple"||Ae==="tags",Fe=LV(e.suffixIcon,e.showArrow),Ie=(n=M??R)!==null&&n!==void 0?n:le,Ge=((r=U==null?void 0:U.popup)===null||r===void 0?void 0:r.root)||((i=ye.popup)===null||i===void 0?void 0:i.root)||A,Le=DV(q||F),Ze=H||Z,{status:_e,hasFeedback:tt,isFormItemInput:$t,feedbackIcon:wt}=h.useContext(Ii),nn=tv(_e,T);let cn;O!==void 0?cn=O:Ae==="combobox"?cn=null:cn=(Y==null?void 0:Y("Select"))||h.createElement(UP,{componentName:"Select"});const{suffixIcon:jn,itemIcon:$n,removeIcon:rn,clearIcon:kt}=jV(Object.assign(Object.assign({},D),{multiple:Xe,hasFeedback:tt,feedbackIcon:wt,showSuffixIcon:Fe,prefixCls:Te,componentName:"Select"})),Mt=I===!0?{clearIcon:kt}:I,un=tr(D,["suffixIcon","itemIcon"]),Jt=te(((a=K==null?void 0:K.popup)===null||a===void 0?void 0:a.root)||((l=ge==null?void 0:ge.popup)===null||l===void 0?void 0:l.root)||v||y,{[`${Te}-dropdown-${ze}`]:ze==="rtl"},m,ge.root,K==null?void 0:K.root,Me,Ye,$e),st=Sa(Qe=>{var ut;return(ut=w??Oe)!==null&&ut!==void 0?ut:Qe}),Pt=h.useContext(Da),vt=$??Pt,Ke=te({[`${Te}-lg`]:st==="large",[`${Te}-sm`]:st==="small",[`${Te}-rtl`]:ze==="rtl",[`${Te}-${Ne}`]:be,[`${Te}-in-form-item`]:$t},Ug(Te,nn,tt),De,ve,d,ge.root,K==null?void 0:K.root,m,Me,Ye,$e),Be=h.useMemo(()=>x!==void 0?x:ze==="rtl"?"bottomRight":"bottomLeft",[x,ze]),[He]=Lp("SelectLike",Ge==null?void 0:Ge.zIndex);return he(h.createElement(l1,Object.assign({ref:t,virtual:oe,showSearch:ce},un,{style:Object.assign(Object.assign(Object.assign(Object.assign({},ye.root),U==null?void 0:U.root),de),N),dropdownMatchSelectWidth:Ie,transitionName:Bp(je,"slide-up",k),builtinPlacements:dV(_,Ce),listHeight:b,listItemHeight:we,mode:Ae,prefixCls:Te,placement:Be,direction:ze,prefix:z,suffixIcon:jn,menuItemSelectedIcon:$n,removeIcon:rn,allowClear:Mt,notFoundContent:cn,className:Ke,getPopupContainer:g||X,dropdownClassName:Jt,disabled:vt,dropdownStyle:Object.assign(Object.assign({},Ge),{zIndex:He}),maxCount:Xe?V:void 0,tagRender:Xe?j:void 0,dropdownRender:Le,onDropdownVisibleChange:Ze})))},Gl=h.forwardRef(BV),HV=_P(Gl,"dropdownAlign");Gl.SECRET_COMBOBOX_MODE_DO_NOT_USE=QP;Gl.Option=a1;Gl.OptGroup=i1;Gl._InternalPanelDoNotUseOrYouWillBeFired=HV;const YP=(e,t)=>{typeof(e==null?void 0:e.addEventListener)<"u"?e.addEventListener("change",t):typeof(e==null?void 0:e.addListener)<"u"&&e.addListener(t)},ZP=(e,t)=>{typeof(e==null?void 0:e.removeEventListener)<"u"?e.removeEventListener("change",t):typeof(e==null?void 0:e.removeListener)<"u"&&e.removeListener(t)},Vs=["xxl","xl","lg","md","sm","xs"],FV=e=>({xs:`(max-width: ${e.screenXSMax}px)`,sm:`(min-width: ${e.screenSM}px)`,md:`(min-width: ${e.screenMD}px)`,lg:`(min-width: ${e.screenLG}px)`,xl:`(min-width: ${e.screenXL}px)`,xxl:`(min-width: ${e.screenXXL}px)`}),VV=e=>{const t=e,n=[].concat(Vs).reverse();return n.forEach((r,i)=>{const a=r.toUpperCase(),l=`screen${a}Min`,c=`screen${a}`;if(!(t[l]<=t[c]))throw new Error(`${l}<=${c} fails : !(${t[l]}<=${t[c]})`);if(i<n.length-1){const u=`screen${a}Max`;if(!(t[c]<=t[u]))throw new Error(`${c}<=${u} fails : !(${t[c]}<=${t[u]})`);const m=`screen${n[i+1].toUpperCase()}Min`;if(!(t[u]<=t[m]))throw new Error(`${u}<=${m} fails : !(${t[u]}<=${t[m]})`)}}),e},UV=()=>{const[,e]=Zr(),t=FV(VV(e));return re.useMemo(()=>{const n=new Map;let r=-1,i={};return{responsiveMap:t,matchHandlers:{},dispatch(a){return i=a,n.forEach(l=>l(i)),n.size>=1},subscribe(a){return n.size||this.register(),r+=1,n.set(r,a),a(i),r},unsubscribe(a){n.delete(a),n.size||this.unregister()},register(){Object.entries(t).forEach(([a,l])=>{const c=({matches:d})=>{this.dispatch(Object.assign(Object.assign({},i),{[a]:d}))},u=window.matchMedia(l);YP(u,c),this.matchHandlers[l]={mql:u,listener:c},c(u)})},unregister(){Object.values(t).forEach(a=>{const l=this.matchHandlers[a];ZP(l==null?void 0:l.mql,l==null?void 0:l.listener)}),n.clear()}}},[t])};function c1(e=!0,t={}){const n=h.useRef(t),[,r]=AB(),i=UV();return on(()=>{const a=i.subscribe(l=>{n.current=l,e&&r()});return()=>i.unsubscribe(a)},[]),n.current}const Hu=e=>e?typeof e=="function"?e():e:null;function u1(e){var t=e.children,n=e.prefixCls,r=e.id,i=e.overlayInnerStyle,a=e.bodyClassName,l=e.className,c=e.style;return h.createElement("div",{className:te("".concat(n,"-content"),l),style:c},h.createElement("div",{className:te("".concat(n,"-inner"),a),id:r,role:"tooltip",style:i},typeof t=="function"?t():t))}var Gc={shiftX:64,adjustY:1},Xc={adjustX:1,shiftY:!0},ua=[0,0],qV={left:{points:["cr","cl"],overflow:Xc,offset:[-4,0],targetOffset:ua},right:{points:["cl","cr"],overflow:Xc,offset:[4,0],targetOffset:ua},top:{points:["bc","tc"],overflow:Gc,offset:[0,-4],targetOffset:ua},bottom:{points:["tc","bc"],overflow:Gc,offset:[0,4],targetOffset:ua},topLeft:{points:["bl","tl"],overflow:Gc,offset:[0,-4],targetOffset:ua},leftTop:{points:["tr","tl"],overflow:Xc,offset:[-4,0],targetOffset:ua},topRight:{points:["br","tr"],overflow:Gc,offset:[0,-4],targetOffset:ua},rightTop:{points:["tl","tr"],overflow:Xc,offset:[4,0],targetOffset:ua},bottomRight:{points:["tr","br"],overflow:Gc,offset:[0,4],targetOffset:ua},rightBottom:{points:["bl","br"],overflow:Xc,offset:[4,0],targetOffset:ua},bottomLeft:{points:["tl","bl"],overflow:Gc,offset:[0,4],targetOffset:ua},leftBottom:{points:["br","bl"],overflow:Xc,offset:[-4,0],targetOffset:ua}},KV=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow","classNames","styles"],WV=function(t,n){var r=t.overlayClassName,i=t.trigger,a=i===void 0?["hover"]:i,l=t.mouseEnterDelay,c=l===void 0?0:l,u=t.mouseLeaveDelay,d=u===void 0?.1:u,m=t.overlayStyle,g=t.prefixCls,v=g===void 0?"rc-tooltip":g,y=t.children,b=t.onVisibleChange,x=t.afterVisibleChange,S=t.transitionName,w=t.animation,$=t.motion,O=t.placement,T=O===void 0?"right":O,_=t.align,R=_===void 0?{}:_,M=t.destroyTooltipOnHide,P=M===void 0?!1:M,N=t.defaultVisible,I=t.getTooltipContainer,B=t.overlayInnerStyle;t.arrowContent;var A=t.overlay,k=t.id,j=t.showArrow,V=j===void 0?!0:j,z=t.classNames,F=t.styles,q=jt(t,KV),Z=dP(k),H=h.useRef(null);h.useImperativeHandle(n,function(){return H.current});var U=J({},q);"visible"in t&&(U.popupVisible=t.visible);var K=function(){return h.createElement(u1,{key:"content",prefixCls:v,id:Z,bodyClassName:z==null?void 0:z.body,overlayInnerStyle:J(J({},B),F==null?void 0:F.body)},A)},D=function(){var Q=h.Children.only(y),Y=(Q==null?void 0:Q.props)||{},ie=J(J({},Y),{},{"aria-describedby":A?Z:null});return h.cloneElement(y,ie)};return h.createElement(ev,Ue({popupClassName:te(r,z==null?void 0:z.root),prefixCls:v,popup:K,action:a,builtinPlacements:qV,popupPlacement:T,ref:H,popupAlign:R,getPopupContainer:I,onPopupVisibleChange:b,afterPopupVisibleChange:x,popupTransitionName:S,popupAnimation:w,popupMotion:$,defaultPopupVisible:N,autoDestroy:P,mouseLeaveDelay:d,popupStyle:J(J({},m),F==null?void 0:F.root),mouseEnterDelay:c,arrow:V},U),D())};const GV=h.forwardRef(WV);function d1(e){const{sizePopupArrow:t,borderRadiusXS:n,borderRadiusOuter:r}=e,i=t/2,a=0,l=i,c=r*1/Math.sqrt(2),u=i-r*(1-1/Math.sqrt(2)),d=i-n*(1/Math.sqrt(2)),m=r*(Math.sqrt(2)-1)+n*(1/Math.sqrt(2)),g=2*i-d,v=m,y=2*i-c,b=u,x=2*i-a,S=l,w=i*Math.sqrt(2)+r*(Math.sqrt(2)-2),$=r*(Math.sqrt(2)-1),O=`polygon(${$}px 100%, 50% ${$}px, ${2*i-$}px 100%, ${$}px 100%)`,T=`path('M ${a} ${l} A ${r} ${r} 0 0 0 ${c} ${u} L ${d} ${m} A ${n} ${n} 0 0 1 ${g} ${v} L ${y} ${b} A ${r} ${r} 0 0 0 ${x} ${S} Z')`;return{arrowShadowWidth:w,arrowPath:T,arrowPolygon:O}}const XV=(e,t,n)=>{const{sizePopupArrow:r,arrowPolygon:i,arrowPath:a,arrowShadowWidth:l,borderRadiusXS:c,calc:u}=e;return{pointerEvents:"none",width:r,height:r,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:r,height:u(r).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[i,a]},content:'""'},"&::after":{content:'""',position:"absolute",width:l,height:l,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${ae(c)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}},JP=8;function rv(e){const{contentRadius:t,limitVerticalRadius:n}=e,r=t>12?t+2:12;return{arrowOffsetHorizontal:r,arrowOffsetVertical:n?JP:r}}function Xm(e,t){return e?t:{}}function f1(e,t,n){const{componentCls:r,boxShadowPopoverArrow:i,arrowOffsetVertical:a,arrowOffsetHorizontal:l}=e,{arrowDistance:c=0,arrowPlacement:u={left:!0,right:!0,top:!0,bottom:!0}}=n||{};return{[r]:Object.assign(Object.assign(Object.assign(Object.assign({[`${r}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},XV(e,t,i)),{"&:before":{background:t}})]},Xm(!!u.top,{[[`&-placement-top > ${r}-arrow`,`&-placement-topLeft > ${r}-arrow`,`&-placement-topRight > ${r}-arrow`].join(",")]:{bottom:c,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},"&-placement-topLeft":{"--arrow-offset-horizontal":l,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:l}}},"&-placement-topRight":{"--arrow-offset-horizontal":`calc(100% - ${ae(l)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:l}}}})),Xm(!!u.bottom,{[[`&-placement-bottom > ${r}-arrow`,`&-placement-bottomLeft > ${r}-arrow`,`&-placement-bottomRight > ${r}-arrow`].join(",")]:{top:c,transform:"translateY(-100%)"},[`&-placement-bottom > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{"--arrow-offset-horizontal":l,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:l}}},"&-placement-bottomRight":{"--arrow-offset-horizontal":`calc(100% - ${ae(l)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:l}}}})),Xm(!!u.left,{[[`&-placement-left > ${r}-arrow`,`&-placement-leftTop > ${r}-arrow`,`&-placement-leftBottom > ${r}-arrow`].join(",")]:{right:{_skip_check_:!0,value:c},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${r}-arrow`]:{top:a},[`&-placement-leftBottom > ${r}-arrow`]:{bottom:a}})),Xm(!!u.right,{[[`&-placement-right > ${r}-arrow`,`&-placement-rightTop > ${r}-arrow`,`&-placement-rightBottom > ${r}-arrow`].join(",")]:{left:{_skip_check_:!0,value:c},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${r}-arrow`]:{top:a},[`&-placement-rightBottom > ${r}-arrow`]:{bottom:a}}))}}function QV(e,t,n,r){if(r===!1)return{adjustX:!1,adjustY:!1};const i=r&&typeof r=="object"?r:{},a={};switch(e){case"top":case"bottom":a.shiftX=t.arrowOffsetHorizontal*2+n,a.shiftY=!0,a.adjustY=!0;break;case"left":case"right":a.shiftY=t.arrowOffsetVertical*2+n,a.shiftX=!0,a.adjustX=!0;break}const l=Object.assign(Object.assign({},a),i);return l.shiftX||(l.adjustX=!0),l.shiftY||(l.adjustY=!0),l}const XR={left:{points:["cr","cl"]},right:{points:["cl","cr"]},top:{points:["bc","tc"]},bottom:{points:["tc","bc"]},topLeft:{points:["bl","tl"]},leftTop:{points:["tr","tl"]},topRight:{points:["br","tr"]},rightTop:{points:["tl","tr"]},bottomRight:{points:["tr","br"]},rightBottom:{points:["bl","br"]},bottomLeft:{points:["tl","bl"]},leftBottom:{points:["br","bl"]}},YV={topLeft:{points:["bl","tc"]},leftTop:{points:["tr","cl"]},topRight:{points:["br","tc"]},rightTop:{points:["tl","cr"]},bottomRight:{points:["tr","bc"]},rightBottom:{points:["bl","cr"]},bottomLeft:{points:["tl","bc"]},leftBottom:{points:["br","cl"]}},ZV=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function eA(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:i,borderRadius:a,visibleFirst:l}=e,c=t/2,u={},d=rv({contentRadius:a,limitVerticalRadius:!0});return Object.keys(XR).forEach(m=>{const g=r&&YV[m]||XR[m],v=Object.assign(Object.assign({},g),{offset:[0,0],dynamicInset:!0});switch(u[m]=v,ZV.has(m)&&(v.autoArrow=!1),m){case"top":case"topLeft":case"topRight":v.offset[1]=-c-i;break;case"bottom":case"bottomLeft":case"bottomRight":v.offset[1]=c+i;break;case"left":case"leftTop":case"leftBottom":v.offset[0]=-c-i;break;case"right":case"rightTop":case"rightBottom":v.offset[0]=c+i;break}if(r)switch(m){case"topLeft":case"bottomLeft":v.offset[0]=-d.arrowOffsetHorizontal-c;break;case"topRight":case"bottomRight":v.offset[0]=d.arrowOffsetHorizontal+c;break;case"leftTop":case"rightTop":v.offset[1]=-d.arrowOffsetHorizontal*2+c;break;case"leftBottom":case"rightBottom":v.offset[1]=d.arrowOffsetHorizontal*2-c;break}v.overflow=QV(m,d,t,n),l&&(v.htmlRegion="visibleFirst")}),u}const JV=e=>{const{calc:t,componentCls:n,tooltipMaxWidth:r,tooltipColor:i,tooltipBg:a,tooltipBorderRadius:l,zIndexPopup:c,controlHeight:u,boxShadowSecondary:d,paddingSM:m,paddingXS:g,arrowOffsetHorizontal:v,sizePopupArrow:y}=e,b=t(l).add(y).add(v).equal(),x=t(l).mul(2).add(y).equal();return[{[n]:Object.assign(Object.assign(Object.assign(Object.assign({},lr(e)),{position:"absolute",zIndex:c,display:"block",width:"max-content",maxWidth:r,visibility:"visible","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"&-hidden":{display:"none"},"--antd-arrow-background-color":a,[`${n}-inner`]:{minWidth:x,minHeight:u,padding:`${ae(e.calc(m).div(2).equal())} ${ae(g)}`,color:`var(--ant-tooltip-color, ${i})`,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:a,borderRadius:l,boxShadow:d,boxSizing:"border-box"},[["&-placement-topLeft","&-placement-topRight","&-placement-bottomLeft","&-placement-bottomRight"].join(",")]:{minWidth:b},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${n}-inner`]:{borderRadius:e.min(l,JP)}},[`${n}-content`]:{position:"relative"}}),TM(e,(S,{darkColor:w})=>({[`&${n}-${S}`]:{[`${n}-inner`]:{backgroundColor:w},[`${n}-arrow`]:{"--antd-arrow-background-color":w}}}))),{"&-rtl":{direction:"rtl"}})},f1(e,"var(--antd-arrow-background-color)"),{[`${n}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},eU=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},rv({contentRadius:e.borderRadius,limitVerticalRadius:!0})),d1(sn(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),tA=(e,t=!0)=>Nn("Tooltip",r=>{const{borderRadius:i,colorTextLightSolid:a,colorBgSpotlight:l}=r,c=sn(r,{tooltipMaxWidth:250,tooltipColor:a,tooltipBorderRadius:i,tooltipBg:l});return[JV(c),Vp(r,"zoom-big-fast")]},eU,{resetStyle:!1,injectStyle:t})(e),tU=Bl.map(e=>`${e}-inverse`),nU=["success","processing","error","default","warning"];function nA(e,t=!0){return t?[].concat(qe(tU),qe(Bl)).includes(e):Bl.includes(e)}function rU(e){return nU.includes(e)}function rA(e,t){const n=nA(t),r=te({[`${e}-${t}`]:t&&n}),i={},a={},l=Q8(t).toRgb(),u=(.299*l.r+.587*l.g+.114*l.b)/255<.5?"#FFF":"#000";return t&&!n&&(i.background=t,i["--ant-tooltip-color"]=u,a["--antd-arrow-background-color"]=t),{className:r,overlayStyle:i,arrowStyle:a}}const iU=e=>{const{prefixCls:t,className:n,placement:r="top",title:i,color:a,overlayInnerStyle:l}=e,{getPrefixCls:c}=h.useContext(Tt),u=c("tooltip",t),[d,m,g]=tA(u),v=rA(u,a),y=v.arrowStyle,b=Object.assign(Object.assign({},l),v.overlayStyle),x=te(m,g,u,`${u}-pure`,`${u}-placement-${r}`,n,v.className);return d(h.createElement("div",{className:x,style:y},h.createElement("div",{className:`${u}-arrow`}),h.createElement(u1,Object.assign({},e,{className:m,prefixCls:u,overlayInnerStyle:b}),i)))};var aU=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const oU=h.forwardRef((e,t)=>{var n,r;const{prefixCls:i,openClassName:a,getTooltipContainer:l,color:c,overlayInnerStyle:u,children:d,afterOpenChange:m,afterVisibleChange:g,destroyTooltipOnHide:v,destroyOnHidden:y,arrow:b=!0,title:x,overlay:S,builtinPlacements:w,arrowPointAtCenter:$=!1,autoAdjustOverflow:O=!0,motion:T,getPopupContainer:_,placement:R="top",mouseEnterDelay:M=.1,mouseLeaveDelay:P=.1,overlayStyle:N,rootClassName:I,overlayClassName:B,styles:A,classNames:k}=e,j=aU(e,["prefixCls","openClassName","getTooltipContainer","color","overlayInnerStyle","children","afterOpenChange","afterVisibleChange","destroyTooltipOnHide","destroyOnHidden","arrow","title","overlay","builtinPlacements","arrowPointAtCenter","autoAdjustOverflow","motion","getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName","overlayClassName","styles","classNames"]),V=!!b,[,z]=Zr(),{getPopupContainer:F,getPrefixCls:q,direction:Z,className:H,style:U,classNames:K,styles:D}=Yr("tooltip"),X=mh(),Q=h.useRef(null),Y=()=>{var Fe;(Fe=Q.current)===null||Fe===void 0||Fe.forceAlign()};h.useImperativeHandle(t,()=>{var Fe,Ie;return{forceAlign:Y,forcePopupAlign:()=>{X.deprecated(!1,"forcePopupAlign","forceAlign"),Y()},nativeElement:(Fe=Q.current)===null||Fe===void 0?void 0:Fe.nativeElement,popupElement:(Ie=Q.current)===null||Ie===void 0?void 0:Ie.popupElement}});const[ie,oe]=vr(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),le=!x&&!S&&x!==0,Ce=Fe=>{var Ie,Ge;oe(le?!1:Fe),le||((Ie=e.onOpenChange)===null||Ie===void 0||Ie.call(e,Fe),(Ge=e.onVisibleChange)===null||Ge===void 0||Ge.call(e,Fe))},ce=h.useMemo(()=>{var Fe,Ie;let Ge=$;return typeof b=="object"&&(Ge=(Ie=(Fe=b.pointAtCenter)!==null&&Fe!==void 0?Fe:b.arrowPointAtCenter)!==null&&Ie!==void 0?Ie:$),w||eA({arrowPointAtCenter:Ge,autoAdjustOverflow:O,arrowWidth:V?z.sizePopupArrow:0,borderRadius:z.borderRadius,offset:z.marginXXS,visibleFirst:!0})},[$,b,w,z]),de=h.useMemo(()=>x===0?x:S||x||"",[S,x]),ye=h.createElement(kf,{space:!0},typeof de=="function"?de():de),ve=q("tooltip",i),ge=q(),fe=e["data-popover-inject"];let we=ie;!("open"in e)&&!("visible"in e)&&le&&(we=!1);const Te=h.isValidElement(d)&&!GM(d)?d:h.createElement("span",null,d),je=Te.props,ze=!je.className||typeof je.className=="string"?te(je.className,a||`${ve}-open`):je.className,[Oe,De,Ne]=tA(ve,!fe),be=rA(ve,c),Ye=be.arrowStyle,he=te(B,{[`${ve}-rtl`]:Z==="rtl"},be.className,I,De,Ne,H,K.root,k==null?void 0:k.root),$e=te(K.body,k==null?void 0:k.body),[Me,Ae]=Lp("Tooltip",j.zIndex),Xe=h.createElement(GV,Object.assign({},j,{zIndex:Me,showArrow:V,placement:R,mouseEnterDelay:M,mouseLeaveDelay:P,prefixCls:ve,classNames:{root:he,body:$e},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Ye),D.root),U),N),A==null?void 0:A.root),body:Object.assign(Object.assign(Object.assign(Object.assign({},D.body),u),A==null?void 0:A.body),be.overlayStyle)},getTooltipContainer:_||l||F,ref:Q,builtinPlacements:ce,overlay:ye,visible:we,onVisibleChange:Ce,afterVisibleChange:m??g,arrowContent:h.createElement("span",{className:`${ve}-arrow-content`}),motion:{motionName:Bp(ge,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:y??!!v}),we?oi(Te,{className:ze}):Te);return Oe(h.createElement(LC.Provider,{value:Ae},Xe))}),Vr=oU;Vr._InternalPanelDoNotUseOrYouWillBeFired=iU;const lU=e=>{const{componentCls:t,popoverColor:n,titleMinWidth:r,fontWeightStrong:i,innerPadding:a,boxShadowSecondary:l,colorTextHeading:c,borderRadiusLG:u,zIndexPopup:d,titleMarginBottom:m,colorBgElevated:g,popoverBg:v,titleBorderBottom:y,innerContentPadding:b,titlePadding:x}=e;return[{[t]:Object.assign(Object.assign({},lr(e)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:d,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"--antd-arrow-background-color":g,width:"max-content",maxWidth:"100vw","&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-inner`]:{backgroundColor:v,backgroundClip:"padding-box",borderRadius:u,boxShadow:l,padding:a},[`${t}-title`]:{minWidth:r,marginBottom:m,color:c,fontWeight:i,borderBottom:y,padding:x},[`${t}-inner-content`]:{color:n,padding:b}})},f1(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block",[`${t}-content`]:{display:"inline-block"}}}]},sU=e=>{const{componentCls:t}=e;return{[t]:Bl.map(n=>{const r=e[`${n}6`];return{[`&${t}-${n}`]:{"--antd-arrow-background-color":r,[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{background:"transparent"}}}})}},cU=e=>{const{lineWidth:t,controlHeight:n,fontHeight:r,padding:i,wireframe:a,zIndexPopupBase:l,borderRadiusLG:c,marginXS:u,lineType:d,colorSplit:m,paddingSM:g}=e,v=n-r,y=v/2,b=v/2-t,x=i;return Object.assign(Object.assign(Object.assign({titleMinWidth:177,zIndexPopup:l+30},d1(e)),rv({contentRadius:c,limitVerticalRadius:!0})),{innerPadding:a?0:12,titleMarginBottom:a?0:u,titlePadding:a?`${y}px ${x}px ${b}px`:0,titleBorderBottom:a?`${t}px ${d} ${m}`:"none",innerContentPadding:a?`${g}px ${x}px`:0})},iA=Nn("Popover",e=>{const{colorBgElevated:t,colorText:n}=e,r=sn(e,{popoverBg:t,popoverColor:n});return[lU(r),sU(r),Vp(r,"zoom-big")]},cU,{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]});var uU=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const aA=({title:e,content:t,prefixCls:n})=>!e&&!t?null:h.createElement(h.Fragment,null,e&&h.createElement("div",{className:`${n}-title`},e),t&&h.createElement("div",{className:`${n}-inner-content`},t)),dU=e=>{const{hashId:t,prefixCls:n,className:r,style:i,placement:a="top",title:l,content:c,children:u}=e,d=Hu(l),m=Hu(c),g=te(t,n,`${n}-pure`,`${n}-placement-${a}`,r);return h.createElement("div",{className:g,style:i},h.createElement("div",{className:`${n}-arrow`}),h.createElement(u1,Object.assign({},e,{className:t,prefixCls:n}),u||h.createElement(aA,{prefixCls:n,title:d,content:m})))},oA=e=>{const{prefixCls:t,className:n}=e,r=uU(e,["prefixCls","className"]),{getPrefixCls:i}=h.useContext(Tt),a=i("popover",t),[l,c,u]=iA(a);return l(h.createElement(dU,Object.assign({},r,{prefixCls:a,hashId:c,className:te(n,u)})))};var fU=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const hU=h.forwardRef((e,t)=>{var n,r;const{prefixCls:i,title:a,content:l,overlayClassName:c,placement:u="top",trigger:d="hover",children:m,mouseEnterDelay:g=.1,mouseLeaveDelay:v=.1,onOpenChange:y,overlayStyle:b={},styles:x,classNames:S}=e,w=fU(e,["prefixCls","title","content","overlayClassName","placement","trigger","children","mouseEnterDelay","mouseLeaveDelay","onOpenChange","overlayStyle","styles","classNames"]),{getPrefixCls:$,className:O,style:T,classNames:_,styles:R}=Yr("popover"),M=$("popover",i),[P,N,I]=iA(M),B=$(),A=te(c,N,I,O,_.root,S==null?void 0:S.root),k=te(_.body,S==null?void 0:S.body),[j,V]=vr(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),z=(U,K)=>{V(U,!0),y==null||y(U,K)},F=U=>{U.keyCode===ot.ESC&&z(!1,U)},q=U=>{z(U)},Z=Hu(a),H=Hu(l);return P(h.createElement(Vr,Object.assign({placement:u,trigger:d,mouseEnterDelay:g,mouseLeaveDelay:v},w,{prefixCls:M,classNames:{root:A,body:k},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign({},R.root),T),b),x==null?void 0:x.root),body:Object.assign(Object.assign({},R.body),x==null?void 0:x.body)},ref:t,open:j,onOpenChange:q,overlay:Z||H?h.createElement(aA,{prefixCls:M,title:Z,content:H}):null,transitionName:Bp(B,"zoom-big",w.transitionName),"data-popover-inject":!0}),oi(m,{onKeyDown:U=>{var K,D;h.isValidElement(m)&&((D=m==null?void 0:(K=m.props).onKeyDown)===null||D===void 0||D.call(K,U)),F(U)}})))}),lA=hU;lA._InternalPanelDoNotUseOrYouWillBeFired=oA;var mU={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"},gU=function(t,n){return h.createElement(mn,Ue({},t,{ref:n,icon:mU}))},Hf=h.forwardRef(gU),pU=ot.ESC,vU=ot.TAB;function yU(e){var t=e.visible,n=e.triggerRef,r=e.onVisibleChange,i=e.autoFocus,a=e.overlayRef,l=h.useRef(!1),c=function(){if(t){var g,v;(g=n.current)===null||g===void 0||(v=g.focus)===null||v===void 0||v.call(g),r==null||r(!1)}},u=function(){var g;return(g=a.current)!==null&&g!==void 0&&g.focus?(a.current.focus(),l.current=!0,!0):!1},d=function(g){switch(g.keyCode){case pU:c();break;case vU:{var v=!1;l.current||(v=u()),v?g.preventDefault():c();break}}};h.useEffect(function(){return t?(window.addEventListener("keydown",d),i&&Tn(u,3),function(){window.removeEventListener("keydown",d),l.current=!1}):function(){l.current=!1}},[t])}var bU=h.forwardRef(function(e,t){var n=e.overlay,r=e.arrow,i=e.prefixCls,a=h.useMemo(function(){var c;return typeof n=="function"?c=n():c=n,c},[n]),l=gi(t,Kl(a));return re.createElement(re.Fragment,null,r&&re.createElement("div",{className:"".concat(i,"-arrow")}),re.cloneElement(a,{ref:Ho(a)?l:void 0}))}),Qc={adjustX:1,adjustY:1},Yc=[0,0],SU={topLeft:{points:["bl","tl"],overflow:Qc,offset:[0,-4],targetOffset:Yc},top:{points:["bc","tc"],overflow:Qc,offset:[0,-4],targetOffset:Yc},topRight:{points:["br","tr"],overflow:Qc,offset:[0,-4],targetOffset:Yc},bottomLeft:{points:["tl","bl"],overflow:Qc,offset:[0,4],targetOffset:Yc},bottom:{points:["tc","bc"],overflow:Qc,offset:[0,4],targetOffset:Yc},bottomRight:{points:["tr","br"],overflow:Qc,offset:[0,4],targetOffset:Yc}},xU=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function CU(e,t){var n,r=e.arrow,i=r===void 0?!1:r,a=e.prefixCls,l=a===void 0?"rc-dropdown":a,c=e.transitionName,u=e.animation,d=e.align,m=e.placement,g=m===void 0?"bottomLeft":m,v=e.placements,y=v===void 0?SU:v,b=e.getPopupContainer,x=e.showAction,S=e.hideAction,w=e.overlayClassName,$=e.overlayStyle,O=e.visible,T=e.trigger,_=T===void 0?["hover"]:T,R=e.autoFocus,M=e.overlay,P=e.children,N=e.onVisibleChange,I=jt(e,xU),B=re.useState(),A=me(B,2),k=A[0],j=A[1],V="visible"in e?O:k,z=re.useRef(null),F=re.useRef(null),q=re.useRef(null);re.useImperativeHandle(t,function(){return z.current});var Z=function(oe){j(oe),N==null||N(oe)};yU({visible:V,triggerRef:q,onVisibleChange:Z,autoFocus:R,overlayRef:F});var H=function(oe){var le=e.onOverlayClick;j(!1),le&&le(oe)},U=function(){return re.createElement(bU,{ref:F,overlay:M,prefixCls:l,arrow:i})},K=function(){return typeof M=="function"?U:U()},D=function(){var oe=e.minOverlayWidthMatchTrigger,le=e.alignPoint;return"minOverlayWidthMatchTrigger"in e?oe:!le},X=function(){var oe=e.openClassName;return oe!==void 0?oe:"".concat(l,"-open")},Q=re.cloneElement(P,{className:te((n=P.props)===null||n===void 0?void 0:n.className,V&&X()),ref:Ho(P)?gi(q,Kl(P)):void 0}),Y=S;return!Y&&_.indexOf("contextMenu")!==-1&&(Y=["click"]),re.createElement(ev,Ue({builtinPlacements:y},I,{prefixCls:l,ref:z,popupClassName:te(w,G({},"".concat(l,"-show-arrow"),i)),popupStyle:$,action:_,showAction:x,hideAction:Y,popupPlacement:g,popupAlign:d,popupTransitionName:c,popupAnimation:u,popupVisible:V,stretch:D()?"minWidth":"",popup:K(),onPopupVisibleChange:Z,onPopupClick:H,getPopupContainer:b}),Q)}const sA=re.forwardRef(CU),wU=e=>typeof e!="object"&&typeof e!="function"||e===null;var cA=h.createContext(null);function uA(e,t){return e===void 0?null:"".concat(e,"-").concat(t)}function dA(e){var t=h.useContext(cA);return uA(t,e)}var EU=["children","locked"],ka=h.createContext(null);function $U(e,t){var n=J({},e);return Object.keys(t).forEach(function(r){var i=t[r];i!==void 0&&(n[r]=i)}),n}function Ff(e){var t=e.children,n=e.locked,r=jt(e,EU),i=h.useContext(ka),a=fh(function(){return $U(i,r)},[i,r],function(l,c){return!n&&(l[0]!==c[0]||!Mf(l[1],c[1],!0))});return h.createElement(ka.Provider,{value:a},t)}var OU=[],fA=h.createContext(null);function iv(){return h.useContext(fA)}var hA=h.createContext(OU);function ed(e){var t=h.useContext(hA);return h.useMemo(function(){return e!==void 0?[].concat(qe(t),[e]):t},[t,e])}var mA=h.createContext(null),h1=h.createContext({});function QR(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(Hp(e)){var n=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(n)||e.isContentEditable||n==="a"&&!!e.getAttribute("href"),i=e.getAttribute("tabindex"),a=Number(i),l=null;return i&&!Number.isNaN(a)?l=a:r&&l===null&&(l=0),r&&e.disabled&&(l=null),l!==null&&(l>=0||t&&l<0)}return!1}function RU(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=qe(e.querySelectorAll("*")).filter(function(r){return QR(r,t)});return QR(e,t)&&n.unshift(e),n}var fx=ot.LEFT,hx=ot.RIGHT,mx=ot.UP,Sg=ot.DOWN,xg=ot.ENTER,gA=ot.ESC,Qd=ot.HOME,Yd=ot.END,YR=[mx,Sg,fx,hx];function TU(e,t,n,r){var i,a="prev",l="next",c="children",u="parent";if(e==="inline"&&r===xg)return{inlineTrigger:!0};var d=G(G({},mx,a),Sg,l),m=G(G(G(G({},fx,n?l:a),hx,n?a:l),Sg,c),xg,c),g=G(G(G(G(G(G({},mx,a),Sg,l),xg,c),gA,u),fx,n?c:u),hx,n?u:c),v={inline:d,horizontal:m,vertical:g,inlineSub:d,horizontalSub:g,verticalSub:g},y=(i=v["".concat(e).concat(t?"":"Sub")])===null||i===void 0?void 0:i[r];switch(y){case a:return{offset:-1,sibling:!0};case l:return{offset:1,sibling:!0};case u:return{offset:-1,sibling:!1};case c:return{offset:1,sibling:!1};default:return null}}function _U(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}function NU(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}function m1(e,t){var n=RU(e,!0);return n.filter(function(r){return t.has(r)})}function ZR(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!e)return null;var i=m1(e,t),a=i.length,l=i.findIndex(function(c){return n===c});return r<0?l===-1?l=a-1:l-=1:r>0&&(l+=1),l=(l+a)%a,i[l]}var gx=function(t,n){var r=new Set,i=new Map,a=new Map;return t.forEach(function(l){var c=document.querySelector("[data-menu-id='".concat(uA(n,l),"']"));c&&(r.add(c),a.set(c,l),i.set(l,c))}),{elements:r,key2element:i,element2key:a}};function IU(e,t,n,r,i,a,l,c,u,d){var m=h.useRef(),g=h.useRef();g.current=t;var v=function(){Tn.cancel(m.current)};return h.useEffect(function(){return function(){v()}},[]),function(y){var b=y.which;if([].concat(YR,[xg,gA,Qd,Yd]).includes(b)){var x=a(),S=gx(x,r),w=S,$=w.elements,O=w.key2element,T=w.element2key,_=O.get(t),R=NU(_,$),M=T.get(R),P=TU(e,l(M,!0).length===1,n,b);if(!P&&b!==Qd&&b!==Yd)return;(YR.includes(b)||[Qd,Yd].includes(b))&&y.preventDefault();var N=function(F){if(F){var q=F,Z=F.querySelector("a");Z!=null&&Z.getAttribute("href")&&(q=Z);var H=T.get(F);c(H),v(),m.current=Tn(function(){g.current===H&&q.focus()})}};if([Qd,Yd].includes(b)||P.sibling||!R){var I;!R||e==="inline"?I=i.current:I=_U(R);var B,A=m1(I,$);b===Qd?B=A[0]:b===Yd?B=A[A.length-1]:B=ZR(I,$,R,P.offset),N(B)}else if(P.inlineTrigger)u(M);else if(P.offset>0)u(M,!0),v(),m.current=Tn(function(){S=gx(x,r);var z=R.getAttribute("aria-controls"),F=document.getElementById(z),q=ZR(F,S.elements);N(q)},5);else if(P.offset<0){var k=l(M,!0),j=k[k.length-2],V=O.get(j);u(j,!1),N(V)}}d==null||d(y)}}function MU(e){Promise.resolve().then(e)}var g1="__RC_UTIL_PATH_SPLIT__",JR=function(t){return t.join(g1)},PU=function(t){return t.split(g1)},px="rc-menu-more";function AU(){var e=h.useState({}),t=me(e,2),n=t[1],r=h.useRef(new Map),i=h.useRef(new Map),a=h.useState([]),l=me(a,2),c=l[0],u=l[1],d=h.useRef(0),m=h.useRef(!1),g=function(){m.current||n({})},v=h.useCallback(function(O,T){var _=JR(T);i.current.set(_,O),r.current.set(O,_),d.current+=1;var R=d.current;MU(function(){R===d.current&&g()})},[]),y=h.useCallback(function(O,T){var _=JR(T);i.current.delete(_),r.current.delete(O)},[]),b=h.useCallback(function(O){u(O)},[]),x=h.useCallback(function(O,T){var _=r.current.get(O)||"",R=PU(_);return T&&c.includes(R[0])&&R.unshift(px),R},[c]),S=h.useCallback(function(O,T){return O.filter(function(_){return _!==void 0}).some(function(_){var R=x(_,!0);return R.includes(T)})},[x]),w=function(){var T=qe(r.current.keys());return c.length&&T.push(px),T},$=h.useCallback(function(O){var T="".concat(r.current.get(O)).concat(g1),_=new Set;return qe(i.current.keys()).forEach(function(R){R.startsWith(T)&&_.add(i.current.get(R))}),_},[]);return h.useEffect(function(){return function(){m.current=!0}},[]),{registerPath:v,unregisterPath:y,refreshOverflowKeys:b,isSubPathKey:S,getKeyPath:x,getKeys:w,getSubPathKeys:$}}function uf(e){var t=h.useRef(e);t.current=e;var n=h.useCallback(function(){for(var r,i=arguments.length,a=new Array(i),l=0;l<i;l++)a[l]=arguments[l];return(r=t.current)===null||r===void 0?void 0:r.call.apply(r,[t].concat(a))},[]);return e?n:void 0}var zU=Math.random().toFixed(5).toString().slice(2),eT=0;function jU(e){var t=vr(e,{value:e}),n=me(t,2),r=n[0],i=n[1];return h.useEffect(function(){eT+=1;var a="".concat(zU,"-").concat(eT);i("rc-menu-uuid-".concat(a))},[]),r}function pA(e,t,n,r){var i=h.useContext(ka),a=i.activeKey,l=i.onActive,c=i.onInactive,u={active:a===e};return t||(u.onMouseEnter=function(d){n==null||n({key:e,domEvent:d}),l(e)},u.onMouseLeave=function(d){r==null||r({key:e,domEvent:d}),c(e)}),u}function vA(e){var t=h.useContext(ka),n=t.mode,r=t.rtl,i=t.inlineIndent;if(n!=="inline")return null;var a=e;return r?{paddingRight:a*i}:{paddingLeft:a*i}}function yA(e){var t=e.icon,n=e.props,r=e.children,i;return t===null||t===!1?null:(typeof t=="function"?i=h.createElement(t,J({},n)):typeof t!="boolean"&&(i=t),i||r||null)}var DU=["item"];function qg(e){var t=e.item,n=jt(e,DU);return Object.defineProperty(n,"item",{get:function(){return ur(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),t}}),n}var LU=["title","attribute","elementRef"],kU=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],BU=["active"],HU=(function(e){Ba(n,e);var t=io(n);function n(){return yr(this,n),t.apply(this,arguments)}return br(n,[{key:"render",value:function(){var i=this.props,a=i.title,l=i.attribute,c=i.elementRef,u=jt(i,LU),d=tr(u,["eventKey","popupClassName","popupOffset","onTitleClick"]);return ur(!l,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),h.createElement(Ja.Item,Ue({},l,{title:typeof a=="string"?a:void 0},d,{ref:c}))}}]),n})(h.Component),FU=h.forwardRef(function(e,t){var n=e.style,r=e.className,i=e.eventKey;e.warnKey;var a=e.disabled,l=e.itemIcon,c=e.children,u=e.role,d=e.onMouseEnter,m=e.onMouseLeave,g=e.onClick,v=e.onKeyDown,y=e.onFocus,b=jt(e,kU),x=dA(i),S=h.useContext(ka),w=S.prefixCls,$=S.onItemClick,O=S.disabled,T=S.overflowDisabled,_=S.itemIcon,R=S.selectedKeys,M=S.onActive,P=h.useContext(h1),N=P._internalRenderMenuItem,I="".concat(w,"-item"),B=h.useRef(),A=h.useRef(),k=O||a,j=ql(t,A),V=ed(i),z=function(le){return{key:i,keyPath:qe(V).reverse(),item:B.current,domEvent:le}},F=l||_,q=pA(i,k,d,m),Z=q.active,H=jt(q,BU),U=R.includes(i),K=vA(V.length),D=function(le){if(!k){var Ce=z(le);g==null||g(qg(Ce)),$(Ce)}},X=function(le){if(v==null||v(le),le.which===ot.ENTER){var Ce=z(le);g==null||g(qg(Ce)),$(Ce)}},Q=function(le){M(i),y==null||y(le)},Y={};e.role==="option"&&(Y["aria-selected"]=U);var ie=h.createElement(HU,Ue({ref:B,elementRef:j,role:u===null?"none":u||"menuitem",tabIndex:a?null:-1,"data-menu-id":T&&x?null:x},tr(b,["extra"]),H,Y,{component:"li","aria-disabled":a,style:J(J({},K),n),className:te(I,G(G(G({},"".concat(I,"-active"),Z),"".concat(I,"-selected"),U),"".concat(I,"-disabled"),k),r),onClick:D,onKeyDown:X,onFocus:Q}),c,h.createElement(yA,{props:J(J({},e),{},{isSelected:U}),icon:F}));return N&&(ie=N(ie,e,{selected:U})),ie});function VU(e,t){var n=e.eventKey,r=iv(),i=ed(n);return h.useEffect(function(){if(r)return r.registerPath(n,i),function(){r.unregisterPath(n,i)}},[i]),r?null:h.createElement(FU,Ue({},e,{ref:t}))}const xh=h.forwardRef(VU);var UU=["className","children"],qU=function(t,n){var r=t.className,i=t.children,a=jt(t,UU),l=h.useContext(ka),c=l.prefixCls,u=l.mode,d=l.rtl;return h.createElement("ul",Ue({className:te(c,d&&"".concat(c,"-rtl"),"".concat(c,"-sub"),"".concat(c,"-").concat(u==="inline"?"inline":"vertical"),r),role:"menu"},a,{"data-menu-list":!0,ref:n}),i)},p1=h.forwardRef(qU);p1.displayName="SubMenuList";function v1(e,t){return hi(e).map(function(n,r){if(h.isValidElement(n)){var i,a,l=n.key,c=(i=(a=n.props)===null||a===void 0?void 0:a.eventKey)!==null&&i!==void 0?i:l,u=c==null;u&&(c="tmp_key-".concat([].concat(qe(t),[r]).join("-")));var d={key:c,eventKey:c};return h.cloneElement(n,d)}return n})}var ni={adjustX:1,adjustY:1},KU={topLeft:{points:["bl","tl"],overflow:ni},topRight:{points:["br","tr"],overflow:ni},bottomLeft:{points:["tl","bl"],overflow:ni},bottomRight:{points:["tr","br"],overflow:ni},leftTop:{points:["tr","tl"],overflow:ni},leftBottom:{points:["br","bl"],overflow:ni},rightTop:{points:["tl","tr"],overflow:ni},rightBottom:{points:["bl","br"],overflow:ni}},WU={topLeft:{points:["bl","tl"],overflow:ni},topRight:{points:["br","tr"],overflow:ni},bottomLeft:{points:["tl","bl"],overflow:ni},bottomRight:{points:["tr","br"],overflow:ni},rightTop:{points:["tr","tl"],overflow:ni},rightBottom:{points:["br","bl"],overflow:ni},leftTop:{points:["tl","tr"],overflow:ni},leftBottom:{points:["bl","br"],overflow:ni}};function bA(e,t,n){if(t)return t;if(n)return n[e]||n.other}var GU={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function XU(e){var t=e.prefixCls,n=e.visible,r=e.children,i=e.popup,a=e.popupStyle,l=e.popupClassName,c=e.popupOffset,u=e.disabled,d=e.mode,m=e.onVisibleChange,g=h.useContext(ka),v=g.getPopupContainer,y=g.rtl,b=g.subMenuOpenDelay,x=g.subMenuCloseDelay,S=g.builtinPlacements,w=g.triggerSubMenuAction,$=g.forceSubMenuRender,O=g.rootClassName,T=g.motion,_=g.defaultMotions,R=h.useState(!1),M=me(R,2),P=M[0],N=M[1],I=J(y?J({},WU):J({},KU),S),B=GU[d],A=bA(d,T,_),k=h.useRef(A);d!=="inline"&&(k.current=A);var j=J(J({},k.current),{},{leavedClassName:"".concat(t,"-hidden"),removeOnLeave:!1,motionAppear:!0}),V=h.useRef();return h.useEffect(function(){return V.current=Tn(function(){N(n)}),function(){Tn.cancel(V.current)}},[n]),h.createElement(ev,{prefixCls:t,popupClassName:te("".concat(t,"-popup"),G({},"".concat(t,"-rtl"),y),l,O),stretch:d==="horizontal"?"minWidth":null,getPopupContainer:v,builtinPlacements:I,popupPlacement:B,popupVisible:P,popup:i,popupStyle:a,popupAlign:c&&{offset:c},action:u?[]:[w],mouseEnterDelay:b,mouseLeaveDelay:x,onPopupVisibleChange:m,forceRender:$,popupMotion:j,fresh:!0},r)}function QU(e){var t=e.id,n=e.open,r=e.keyPath,i=e.children,a="inline",l=h.useContext(ka),c=l.prefixCls,u=l.forceSubMenuRender,d=l.motion,m=l.defaultMotions,g=l.mode,v=h.useRef(!1);v.current=g===a;var y=h.useState(!v.current),b=me(y,2),x=b[0],S=b[1],w=v.current?n:!1;h.useEffect(function(){v.current&&S(!1)},[g]);var $=J({},bA(a,d,m));r.length>1&&($.motionAppear=!1);var O=$.onVisibleChanged;return $.onVisibleChanged=function(T){return!v.current&&!T&&S(!0),O==null?void 0:O(T)},x?null:h.createElement(Ff,{mode:a,locked:!v.current},h.createElement(ao,Ue({visible:w},$,{forceRender:u,removeOnLeave:!1,leavedClassName:"".concat(c,"-hidden")}),function(T){var _=T.className,R=T.style;return h.createElement(p1,{id:t,className:_,style:R},i)}))}var YU=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],ZU=["active"],JU=h.forwardRef(function(e,t){var n=e.style,r=e.className,i=e.title,a=e.eventKey;e.warnKey;var l=e.disabled,c=e.internalPopupClose,u=e.children,d=e.itemIcon,m=e.expandIcon,g=e.popupClassName,v=e.popupOffset,y=e.popupStyle,b=e.onClick,x=e.onMouseEnter,S=e.onMouseLeave,w=e.onTitleClick,$=e.onTitleMouseEnter,O=e.onTitleMouseLeave,T=jt(e,YU),_=dA(a),R=h.useContext(ka),M=R.prefixCls,P=R.mode,N=R.openKeys,I=R.disabled,B=R.overflowDisabled,A=R.activeKey,k=R.selectedKeys,j=R.itemIcon,V=R.expandIcon,z=R.onItemClick,F=R.onOpenChange,q=R.onActive,Z=h.useContext(h1),H=Z._internalRenderSubMenuItem,U=h.useContext(mA),K=U.isSubPathKey,D=ed(),X="".concat(M,"-submenu"),Q=I||l,Y=h.useRef(),ie=h.useRef(),oe=d??j,le=m??V,Ce=N.includes(a),ce=!B&&Ce,de=K(k,a),ye=pA(a,Q,$,O),ve=ye.active,ge=jt(ye,ZU),fe=h.useState(!1),we=me(fe,2),Te=we[0],je=we[1],ze=function(_e){Q||je(_e)},Oe=function(_e){ze(!0),x==null||x({key:a,domEvent:_e})},De=function(_e){ze(!1),S==null||S({key:a,domEvent:_e})},Ne=h.useMemo(function(){return ve||(P!=="inline"?Te||K([A],a):!1)},[P,ve,A,Te,a,K]),be=vA(D.length),Ye=function(_e){Q||(w==null||w({key:a,domEvent:_e}),P==="inline"&&F(a,!Ce))},he=uf(function(Ze){b==null||b(qg(Ze)),z(Ze)}),$e=function(_e){P!=="inline"&&F(a,_e)},Me=function(){q(a)},Ae=_&&"".concat(_,"-popup"),Xe=h.useMemo(function(){return h.createElement(yA,{icon:P!=="horizontal"?le:void 0,props:J(J({},e),{},{isOpen:ce,isSubMenu:!0})},h.createElement("i",{className:"".concat(X,"-arrow")}))},[P,le,e,ce,X]),Fe=h.createElement("div",Ue({role:"menuitem",style:be,className:"".concat(X,"-title"),tabIndex:Q?null:-1,ref:Y,title:typeof i=="string"?i:null,"data-menu-id":B&&_?null:_,"aria-expanded":ce,"aria-haspopup":!0,"aria-controls":Ae,"aria-disabled":Q,onClick:Ye,onFocus:Me},ge),i,Xe),Ie=h.useRef(P);if(P!=="inline"&&D.length>1?Ie.current="vertical":Ie.current=P,!B){var Ge=Ie.current;Fe=h.createElement(XU,{mode:Ge,prefixCls:X,visible:!c&&ce&&P!=="inline",popupClassName:g,popupOffset:v,popupStyle:y,popup:h.createElement(Ff,{mode:Ge==="horizontal"?"vertical":Ge},h.createElement(p1,{id:Ae,ref:ie},u)),disabled:Q,onVisibleChange:$e},Fe)}var Le=h.createElement(Ja.Item,Ue({ref:t,role:"none"},T,{component:"li",style:n,className:te(X,"".concat(X,"-").concat(P),r,G(G(G(G({},"".concat(X,"-open"),ce),"".concat(X,"-active"),Ne),"".concat(X,"-selected"),de),"".concat(X,"-disabled"),Q)),onMouseEnter:Oe,onMouseLeave:De}),Fe,!B&&h.createElement(QU,{id:Ae,open:ce,keyPath:D},u));return H&&(Le=H(Le,e,{selected:de,active:Ne,open:ce,disabled:Q})),h.createElement(Ff,{onItemClick:he,mode:P==="horizontal"?"vertical":P,itemIcon:oe,expandIcon:le},Le)}),av=h.forwardRef(function(e,t){var n=e.eventKey,r=e.children,i=ed(n),a=v1(r,i),l=iv();h.useEffect(function(){if(l)return l.registerPath(n,i),function(){l.unregisterPath(n,i)}},[i]);var c;return l?c=a:c=h.createElement(JU,Ue({ref:t},e),a),h.createElement(hA.Provider,{value:i},c)});function y1(e){var t=e.className,n=e.style,r=h.useContext(ka),i=r.prefixCls,a=iv();return a?null:h.createElement("li",{role:"separator",className:te("".concat(i,"-item-divider"),t),style:n})}var eq=["className","title","eventKey","children"],tq=h.forwardRef(function(e,t){var n=e.className,r=e.title;e.eventKey;var i=e.children,a=jt(e,eq),l=h.useContext(ka),c=l.prefixCls,u="".concat(c,"-item-group");return h.createElement("li",Ue({ref:t,role:"presentation"},a,{onClick:function(m){return m.stopPropagation()},className:te(u,n)}),h.createElement("div",{role:"presentation",className:"".concat(u,"-title"),title:typeof r=="string"?r:void 0},r),h.createElement("ul",{role:"group",className:"".concat(u,"-list")},i))}),b1=h.forwardRef(function(e,t){var n=e.eventKey,r=e.children,i=ed(n),a=v1(r,i),l=iv();return l?a:h.createElement(tq,Ue({ref:t},tr(e,["warnKey"])),a)}),nq=["label","children","key","type","extra"];function vx(e,t,n){var r=t.item,i=t.group,a=t.submenu,l=t.divider;return(e||[]).map(function(c,u){if(c&&pt(c)==="object"){var d=c,m=d.label,g=d.children,v=d.key,y=d.type,b=d.extra,x=jt(d,nq),S=v??"tmp-".concat(u);return g||y==="group"?y==="group"?h.createElement(i,Ue({key:S},x,{title:m}),vx(g,t,n)):h.createElement(a,Ue({key:S},x,{title:m}),vx(g,t,n)):y==="divider"?h.createElement(l,Ue({key:S},x)):h.createElement(r,Ue({key:S},x,{extra:b}),m,(!!b||b===0)&&h.createElement("span",{className:"".concat(n,"-item-extra")},b))}return null}).filter(function(c){return c})}function tT(e,t,n,r,i){var a=e,l=J({divider:y1,item:xh,group:b1,submenu:av},r);return t&&(a=vx(t,l,i)),v1(a,n)}var rq=["prefixCls","rootClassName","style","className","tabIndex","items","children","direction","id","mode","inlineCollapsed","disabled","disabledOverflow","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","defaultOpenKeys","openKeys","activeKey","defaultActiveFirst","selectable","multiple","defaultSelectedKeys","selectedKeys","onSelect","onDeselect","inlineIndent","motion","defaultMotions","triggerSubMenuAction","builtinPlacements","itemIcon","expandIcon","overflowedIndicator","overflowedIndicatorPopupClassName","getPopupContainer","onClick","onOpenChange","onKeyDown","openAnimation","openTransitionName","_internalRenderMenuItem","_internalRenderSubMenuItem","_internalComponents"],hs=[],iq=h.forwardRef(function(e,t){var n,r=e,i=r.prefixCls,a=i===void 0?"rc-menu":i,l=r.rootClassName,c=r.style,u=r.className,d=r.tabIndex,m=d===void 0?0:d,g=r.items,v=r.children,y=r.direction,b=r.id,x=r.mode,S=x===void 0?"vertical":x,w=r.inlineCollapsed,$=r.disabled,O=r.disabledOverflow,T=r.subMenuOpenDelay,_=T===void 0?.1:T,R=r.subMenuCloseDelay,M=R===void 0?.1:R,P=r.forceSubMenuRender,N=r.defaultOpenKeys,I=r.openKeys,B=r.activeKey,A=r.defaultActiveFirst,k=r.selectable,j=k===void 0?!0:k,V=r.multiple,z=V===void 0?!1:V,F=r.defaultSelectedKeys,q=r.selectedKeys,Z=r.onSelect,H=r.onDeselect,U=r.inlineIndent,K=U===void 0?24:U,D=r.motion,X=r.defaultMotions,Q=r.triggerSubMenuAction,Y=Q===void 0?"hover":Q,ie=r.builtinPlacements,oe=r.itemIcon,le=r.expandIcon,Ce=r.overflowedIndicator,ce=Ce===void 0?"...":Ce,de=r.overflowedIndicatorPopupClassName,ye=r.getPopupContainer,ve=r.onClick,ge=r.onOpenChange,fe=r.onKeyDown;r.openAnimation,r.openTransitionName;var we=r._internalRenderMenuItem,Te=r._internalRenderSubMenuItem,je=r._internalComponents,ze=jt(r,rq),Oe=h.useMemo(function(){return[tT(v,g,hs,je,a),tT(v,g,hs,{},a)]},[v,g,je]),De=me(Oe,2),Ne=De[0],be=De[1],Ye=h.useState(!1),he=me(Ye,2),$e=he[0],Me=he[1],Ae=h.useRef(),Xe=jU(b),Fe=y==="rtl",Ie=vr(N,{value:I,postState:function(ft){return ft||hs}}),Ge=me(Ie,2),Le=Ge[0],Ze=Ge[1],_e=function(ft){var ht=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function Wt(){Ze(ft),ge==null||ge(ft)}ht?kl.flushSync(Wt):Wt()},tt=h.useState(Le),$t=me(tt,2),wt=$t[0],nn=$t[1],cn=h.useRef(!1),jn=h.useMemo(function(){return(S==="inline"||S==="vertical")&&w?["vertical",w]:[S,!1]},[S,w]),$n=me(jn,2),rn=$n[0],kt=$n[1],Mt=rn==="inline",un=h.useState(rn),Jt=me(un,2),st=Jt[0],Pt=Jt[1],vt=h.useState(kt),Ke=me(vt,2),Be=Ke[0],He=Ke[1];h.useEffect(function(){Pt(rn),He(kt),cn.current&&(Mt?Ze(wt):_e(hs))},[rn,kt]);var Qe=h.useState(0),ut=me(Qe,2),dt=ut[0],zt=ut[1],Ot=dt>=Ne.length-1||st!=="horizontal"||O;h.useEffect(function(){Mt&&nn(Le)},[Le]),h.useEffect(function(){return cn.current=!0,function(){cn.current=!1}},[]);var Ct=AU(),Vt=Ct.registerPath,Dn=Ct.unregisterPath,Bn=Ct.refreshOverflowKeys,Un=Ct.isSubPathKey,nr=Ct.getKeyPath,an=Ct.getKeys,Sn=Ct.getSubPathKeys,We=h.useMemo(function(){return{registerPath:Vt,unregisterPath:Dn}},[Vt,Dn]),at=h.useMemo(function(){return{isSubPathKey:Un}},[Un]);h.useEffect(function(){Bn(Ot?hs:Ne.slice(dt+1).map(function(On){return On.key}))},[dt,Ot]);var _t=vr(B||A&&((n=Ne[0])===null||n===void 0?void 0:n.key),{value:B}),Dt=me(_t,2),rt=Dt[0],ct=Dt[1],It=uf(function(On){ct(On)}),qt=uf(function(){ct(void 0)});h.useImperativeHandle(t,function(){return{list:Ae.current,focus:function(ft){var ht,Wt=an(),gn=gx(Wt,Xe),Pn=gn.elements,Hn=gn.key2element,fr=gn.element2key,$r=m1(Ae.current,Pn),Lr=rt??($r[0]?fr.get($r[0]):(ht=Ne.find(function(Pi){return!Pi.props.disabled}))===null||ht===void 0?void 0:ht.key),dr=Hn.get(Lr);if(Lr&&dr){var qr;dr==null||(qr=dr.focus)===null||qr===void 0||qr.call(dr,ft)}}}});var nt=vr(F||[],{value:q,postState:function(ft){return Array.isArray(ft)?ft:ft==null?hs:[ft]}}),bt=me(nt,2),Ft=bt[0],rr=bt[1],Sr=function(ft){if(j){var ht=ft.key,Wt=Ft.includes(ht),gn;z?Wt?gn=Ft.filter(function(Hn){return Hn!==ht}):gn=[].concat(qe(Ft),[ht]):gn=[ht],rr(gn);var Pn=J(J({},ft),{},{selectedKeys:gn});Wt?H==null||H(Pn):Z==null||Z(Pn)}!z&&Le.length&&st!=="inline"&&_e(hs)},Ar=uf(function(On){ve==null||ve(qg(On)),Sr(On)}),zr=uf(function(On,ft){var ht=Le.filter(function(gn){return gn!==On});if(ft)ht.push(On);else if(st!=="inline"){var Wt=Sn(On);ht=ht.filter(function(gn){return!Wt.has(gn)})}Mf(Le,ht,!0)||_e(ht,!0)}),Qn=function(ft,ht){var Wt=ht??!Le.includes(ft);zr(ft,Wt)},Yn=IU(st,rt,Fe,Xe,Ae,an,nr,ct,Qn,fe);h.useEffect(function(){Me(!0)},[]);var Ur=h.useMemo(function(){return{_internalRenderMenuItem:we,_internalRenderSubMenuItem:Te}},[we,Te]),vi=st!=="horizontal"||O?Ne:Ne.map(function(On,ft){return h.createElement(Ff,{key:On.key,overflowDisabled:ft>dt},On)}),yi=h.createElement(Ja,Ue({id:b,ref:Ae,prefixCls:"".concat(a,"-overflow"),component:"ul",itemComponent:xh,className:te(a,"".concat(a,"-root"),"".concat(a,"-").concat(st),u,G(G({},"".concat(a,"-inline-collapsed"),Be),"".concat(a,"-rtl"),Fe),l),dir:y,style:c,role:"menu",tabIndex:m,data:vi,renderRawItem:function(ft){return ft},renderRawRest:function(ft){var ht=ft.length,Wt=ht?Ne.slice(-ht):null;return h.createElement(av,{eventKey:px,title:ce,disabled:Ot,internalPopupClose:ht===0,popupClassName:de},Wt)},maxCount:st!=="horizontal"||O?Ja.INVALIDATE:Ja.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(ft){zt(ft)},onKeyDown:Yn},ze));return h.createElement(h1.Provider,{value:Ur},h.createElement(cA.Provider,{value:Xe},h.createElement(Ff,{prefixCls:a,rootClassName:l,mode:st,openKeys:Le,rtl:Fe,disabled:$,motion:$e?D:null,defaultMotions:$e?X:null,activeKey:rt,onActive:It,onInactive:qt,selectedKeys:Ft,inlineIndent:K,subMenuOpenDelay:_,subMenuCloseDelay:M,forceSubMenuRender:P,builtinPlacements:ie,triggerSubMenuAction:Y,getPopupContainer:ye,itemIcon:oe,expandIcon:le,onItemClick:Ar,onOpenChange:zr},h.createElement(mA.Provider,{value:at},yi),h.createElement("div",{style:{display:"none"},"aria-hidden":!0},h.createElement(fA.Provider,{value:We},be)))))}),td=iq;td.Item=xh;td.SubMenu=av;td.ItemGroup=b1;td.Divider=y1;var aq={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"},oq=function(t,n){return h.createElement(mn,Ue({},t,{ref:n,icon:aq}))},lq=h.forwardRef(oq);const SA=h.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}}),sq=e=>{const{antCls:t,componentCls:n,colorText:r,footerBg:i,headerHeight:a,headerPadding:l,headerColor:c,footerPadding:u,fontSize:d,bodyBg:m,headerBg:g}=e;return{[n]:{display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:m,"&, *":{boxSizing:"border-box"},[`&${n}-has-sider`]:{flexDirection:"row",[`> ${n}, > ${n}-content`]:{width:0}},[`${n}-header, &${n}-footer`]:{flex:"0 0 auto"},"&-rtl":{direction:"rtl"}},[`${n}-header`]:{height:a,padding:l,color:c,lineHeight:ae(a),background:g,[`${t}-menu`]:{lineHeight:"inherit"}},[`${n}-footer`]:{padding:u,color:r,fontSize:d,background:i},[`${n}-content`]:{flex:"auto",color:r,minHeight:0}}},xA=e=>{const{colorBgLayout:t,controlHeight:n,controlHeightLG:r,colorText:i,controlHeightSM:a,marginXXS:l,colorTextLightSolid:c,colorBgContainer:u}=e,d=r*1.25;return{colorBgHeader:"#001529",colorBgBody:t,colorBgTrigger:"#002140",bodyBg:t,headerBg:"#001529",headerHeight:n*2,headerPadding:`0 ${d}px`,headerColor:i,footerPadding:`${a}px ${d}px`,footerBg:t,siderBg:"#001529",triggerHeight:r+l*2,triggerBg:"#002140",triggerColor:c,zeroTriggerWidth:r,zeroTriggerHeight:r,lightSiderBg:u,lightTriggerBg:u,lightTriggerColor:i}},CA=[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]],wA=Nn("Layout",sq,xA,{deprecatedTokens:CA}),cq=e=>{const{componentCls:t,siderBg:n,motionDurationMid:r,motionDurationSlow:i,antCls:a,triggerHeight:l,triggerColor:c,triggerBg:u,headerHeight:d,zeroTriggerWidth:m,zeroTriggerHeight:g,borderRadiusLG:v,lightSiderBg:y,lightTriggerColor:b,lightTriggerBg:x,bodyBg:S}=e;return{[t]:{position:"relative",minWidth:0,background:n,transition:`all ${r}, background 0s`,"&-has-trigger":{paddingBottom:l},"&-right":{order:1},[`${t}-children`]:{height:"100%",marginTop:-.1,paddingTop:.1,[`${a}-menu${a}-menu-inline-collapsed`]:{width:"auto"}},[`&-zero-width ${t}-children`]:{overflow:"hidden"},[`${t}-trigger`]:{position:"fixed",bottom:0,zIndex:1,height:l,color:c,lineHeight:ae(l),textAlign:"center",background:u,cursor:"pointer",transition:`all ${r}`},[`${t}-zero-width-trigger`]:{position:"absolute",top:d,insetInlineEnd:e.calc(m).mul(-1).equal(),zIndex:1,width:m,height:g,color:c,fontSize:e.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:n,borderRadius:`0 ${ae(v)} ${ae(v)} 0`,cursor:"pointer",transition:`background ${i} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${i}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:e.calc(m).mul(-1).equal(),borderRadius:`${ae(v)} 0 0 ${ae(v)}`}},"&-light":{background:y,[`${t}-trigger`]:{color:b,background:x},[`${t}-zero-width-trigger`]:{color:b,background:x,border:`1px solid ${S}`,borderInlineStart:0}}}}},uq=Nn(["Layout","Sider"],cq,xA,{deprecatedTokens:CA});var dq=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const nT={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},fq=e=>!Number.isNaN(Number.parseFloat(e))&&Number.isFinite(Number(e)),ov=h.createContext({}),hq=(()=>{let e=0;return(t="")=>(e+=1,`${t}${e}`)})(),EA=h.forwardRef((e,t)=>{const{prefixCls:n,className:r,trigger:i,children:a,defaultCollapsed:l=!1,theme:c="dark",style:u={},collapsible:d=!1,reverseArrow:m=!1,width:g=200,collapsedWidth:v=80,zeroWidthTriggerStyle:y,breakpoint:b,onCollapse:x,onBreakpoint:S}=e,w=dq(e,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:$}=h.useContext(SA),[O,T]=h.useState("collapsed"in e?e.collapsed:l),[_,R]=h.useState(!1);h.useEffect(()=>{"collapsed"in e&&T(e.collapsed)},[e.collapsed]);const M=(oe,le)=>{"collapsed"in e||T(oe),x==null||x(oe,le)},{getPrefixCls:P,direction:N}=h.useContext(Tt),I=P("layout-sider",n),[B,A,k]=uq(I),j=h.useRef(null);j.current=oe=>{R(oe.matches),S==null||S(oe.matches),O!==oe.matches&&M(oe.matches,"responsive")},h.useEffect(()=>{function oe(Ce){var ce;return(ce=j.current)===null||ce===void 0?void 0:ce.call(j,Ce)}let le;return typeof(window==null?void 0:window.matchMedia)<"u"&&b&&b in nT&&(le=window.matchMedia(`screen and (max-width: ${nT[b]})`),YP(le,oe),oe(le)),()=>{ZP(le,oe)}},[b]),h.useEffect(()=>{const oe=hq("ant-sider-");return $.addSider(oe),()=>$.removeSider(oe)},[]);const V=()=>{M(!O,"clickTrigger")},z=tr(w,["collapsed"]),F=O?v:g,q=fq(F)?`${F}px`:String(F),Z=Number.parseFloat(String(v||0))===0?h.createElement("span",{onClick:V,className:te(`${I}-zero-width-trigger`,`${I}-zero-width-trigger-${m?"right":"left"}`),style:y},i||h.createElement(lq,null)):null,H=N==="rtl"==!m,D={expanded:H?h.createElement(Df,null):h.createElement(Hf,null),collapsed:H?h.createElement(Hf,null):h.createElement(Df,null)}[O?"collapsed":"expanded"],X=i!==null?Z||h.createElement("div",{className:`${I}-trigger`,onClick:V,style:{width:q}},i||D):null,Q=Object.assign(Object.assign({},u),{flex:`0 0 ${q}`,maxWidth:q,minWidth:q,width:q}),Y=te(I,`${I}-${c}`,{[`${I}-collapsed`]:!!O,[`${I}-has-trigger`]:d&&i!==null&&!Z,[`${I}-below`]:!!_,[`${I}-zero-width`]:Number.parseFloat(q)===0},r,A,k),ie=h.useMemo(()=>({siderCollapsed:O}),[O]);return B(h.createElement(ov.Provider,{value:ie},h.createElement("aside",Object.assign({className:Y},z,{style:Q,ref:t}),h.createElement("div",{className:`${I}-children`},a),d||_&&Z?X:null)))});var mq={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"},gq=function(t,n){return h.createElement(mn,Ue({},t,{ref:n,icon:mq}))},S1=h.forwardRef(gq);const Kg=h.createContext({prefixCls:"",firstLevel:!0,inlineCollapsed:!1});var pq=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const $A=e=>{const{prefixCls:t,className:n,dashed:r}=e,i=pq(e,["prefixCls","className","dashed"]),{getPrefixCls:a}=h.useContext(Tt),l=a("menu",t),c=te({[`${l}-item-divider-dashed`]:!!r},n);return h.createElement(y1,Object.assign({className:c},i))},OA=e=>{var t;const{className:n,children:r,icon:i,title:a,danger:l,extra:c}=e,{prefixCls:u,firstLevel:d,direction:m,disableMenuItemTitleTooltip:g,inlineCollapsed:v}=h.useContext(Kg),y=O=>{const T=r==null?void 0:r[0],_=h.createElement("span",{className:te(`${u}-title-content`,{[`${u}-title-content-with-extra`]:!!c||c===0})},r);return(!i||h.isValidElement(r)&&r.type==="span")&&r&&O&&d&&typeof T=="string"?h.createElement("div",{className:`${u}-inline-collapsed-noicon`},T.charAt(0)):_},{siderCollapsed:b}=h.useContext(ov);let x=a;typeof a>"u"?x=d?r:"":a===!1&&(x="");const S={title:x};!b&&!v&&(S.title=null,S.open=!1);const w=hi(r).length;let $=h.createElement(xh,Object.assign({},tr(e,["title","icon","danger"]),{className:te({[`${u}-item-danger`]:l,[`${u}-item-only-child`]:(i?w+1:w)===1},n),title:typeof a=="string"?a:void 0}),oi(i,{className:te(h.isValidElement(i)?(t=i.props)===null||t===void 0?void 0:t.className:void 0,`${u}-item-icon`)}),y(v));return g||($=h.createElement(Vr,Object.assign({},S,{placement:m==="rtl"?"left":"right",classNames:{root:`${u}-inline-collapsed-tooltip`}}),$)),$};var vq=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const Wg=h.createContext(null),yq=h.forwardRef((e,t)=>{const{children:n}=e,r=vq(e,["children"]),i=h.useContext(Wg),a=h.useMemo(()=>Object.assign(Object.assign({},i),r),[i,r.prefixCls,r.mode,r.selectable,r.rootClassName]),l=Mk(n),c=ql(t,l?Kl(n):null);return h.createElement(Wg.Provider,{value:a},h.createElement(kf,{space:!0},l?h.cloneElement(n,{ref:c}):n))}),bq=e=>{const{componentCls:t,motionDurationSlow:n,horizontalLineHeight:r,colorSplit:i,lineWidth:a,lineType:l,itemPaddingInline:c}=e;return{[`${t}-horizontal`]:{lineHeight:r,border:0,borderBottom:`${ae(a)} ${l} ${i}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${t}-item, ${t}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:c},[`> ${t}-item:hover,
|
|
217
|
-
> ${t}-item-active,
|
|
218
|
-
> ${t}-submenu ${t}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${t}-item, ${t}-submenu-title`]:{transition:[`border-color ${n}`,`background ${n}`].join(",")},[`${t}-submenu-arrow`]:{display:"none"}}}},Sq=({componentCls:e,menuArrowOffset:t,calc:n})=>({[`${e}-rtl`]:{direction:"rtl"},[`${e}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${e}-rtl${e}-vertical,
|
|
219
|
-
${e}-submenu-rtl ${e}-vertical`]:{[`${e}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${ae(n(t).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${ae(t)})`}}}}),rT=e=>Hl(e),iT=(e,t)=>{const{componentCls:n,itemColor:r,itemSelectedColor:i,subMenuItemSelectedColor:a,groupTitleColor:l,itemBg:c,subMenuItemBg:u,itemSelectedBg:d,activeBarHeight:m,activeBarWidth:g,activeBarBorderWidth:v,motionDurationSlow:y,motionEaseInOut:b,motionEaseOut:x,itemPaddingInline:S,motionDurationMid:w,itemHoverColor:$,lineType:O,colorSplit:T,itemDisabledColor:_,dangerItemColor:R,dangerItemHoverColor:M,dangerItemSelectedColor:P,dangerItemActiveBg:N,dangerItemSelectedBg:I,popupBg:B,itemHoverBg:A,itemActiveBg:k,menuSubMenuBg:j,horizontalItemSelectedColor:V,horizontalItemSelectedBg:z,horizontalItemBorderRadius:F,horizontalItemHoverBg:q}=e;return{[`${n}-${t}, ${n}-${t} > ${n}`]:{color:r,background:c,[`&${n}-root:focus-visible`]:Object.assign({},rT(e)),[`${n}-item`]:{"&-group-title, &-extra":{color:l}},[`${n}-submenu-selected > ${n}-submenu-title`]:{color:a},[`${n}-item, ${n}-submenu-title`]:{color:r,[`&:not(${n}-item-disabled):focus-visible`]:Object.assign({},rT(e))},[`${n}-item-disabled, ${n}-submenu-disabled`]:{color:`${_} !important`},[`${n}-item:not(${n}-item-selected):not(${n}-submenu-selected)`]:{[`&:hover, > ${n}-submenu-title:hover`]:{color:$}},[`&:not(${n}-horizontal)`]:{[`${n}-item:not(${n}-item-selected)`]:{"&:hover":{backgroundColor:A},"&:active":{backgroundColor:k}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:A},"&:active":{backgroundColor:k}}},[`${n}-item-danger`]:{color:R,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:M}},[`&${n}-item:active`]:{background:N}},[`${n}-item a`]:{"&, &:hover":{color:"inherit"}},[`${n}-item-selected`]:{color:i,[`&${n}-item-danger`]:{color:P},"a, a:hover":{color:"inherit"}},[`& ${n}-item-selected`]:{backgroundColor:d,[`&${n}-item-danger`]:{backgroundColor:I}},[`&${n}-submenu > ${n}`]:{backgroundColor:j},[`&${n}-popup > ${n}`]:{backgroundColor:B},[`&${n}-submenu-popup > ${n}`]:{backgroundColor:B},[`&${n}-horizontal`]:Object.assign(Object.assign({},t==="dark"?{borderBottom:0}:{}),{[`> ${n}-item, > ${n}-submenu`]:{top:v,marginTop:e.calc(v).mul(-1).equal(),marginBottom:0,borderRadius:F,"&::after":{position:"absolute",insetInline:S,bottom:0,borderBottom:`${ae(m)} solid transparent`,transition:`border-color ${y} ${b}`,content:'""'},"&:hover, &-active, &-open":{background:q,"&::after":{borderBottomWidth:m,borderBottomColor:V}},"&-selected":{color:V,backgroundColor:z,"&:hover":{backgroundColor:z},"&::after":{borderBottomWidth:m,borderBottomColor:V}}}}),[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${ae(v)} ${O} ${T}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:u},[`${n}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${ae(g)} solid ${i}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${w} ${x}`,`opacity ${w} ${x}`].join(","),content:'""'},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:P}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${w} ${b}`,`opacity ${w} ${b}`].join(",")}}}}}},aT=e=>{const{componentCls:t,itemHeight:n,itemMarginInline:r,padding:i,menuArrowSize:a,marginXS:l,itemMarginBlock:c,itemWidth:u,itemPaddingInline:d}=e,m=e.calc(a).add(i).add(l).equal();return{[`${t}-item`]:{position:"relative",overflow:"hidden"},[`${t}-item, ${t}-submenu-title`]:{height:n,lineHeight:ae(n),paddingInline:d,overflow:"hidden",textOverflow:"ellipsis",marginInline:r,marginBlock:c,width:u},[`> ${t}-item,
|
|
220
|
-
> ${t}-submenu > ${t}-submenu-title`]:{height:n,lineHeight:ae(n)},[`${t}-item-group-list ${t}-submenu-title,
|
|
221
|
-
${t}-submenu-title`]:{paddingInlineEnd:m}}},xq=e=>{const{componentCls:t,iconCls:n,itemHeight:r,colorTextLightSolid:i,dropdownWidth:a,controlHeightLG:l,motionEaseOut:c,paddingXL:u,itemMarginInline:d,fontSizeLG:m,motionDurationFast:g,motionDurationSlow:v,paddingXS:y,boxShadowSecondary:b,collapsedWidth:x,collapsedIconSize:S}=e,w={height:r,lineHeight:ae(r),listStylePosition:"inside",listStyleType:"disc"};return[{[t]:{"&-inline, &-vertical":Object.assign({[`&${t}-root`]:{boxShadow:"none"}},aT(e))},[`${t}-submenu-popup`]:{[`${t}-vertical`]:Object.assign(Object.assign({},aT(e)),{boxShadow:b})}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:a,maxHeight:`calc(100vh - ${ae(e.calc(l).mul(2.5).equal())})`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${t}-inline`]:{width:"100%",[`&${t}-root`]:{[`${t}-item, ${t}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${v}`,`background ${v}`,`padding ${g} ${c}`].join(","),[`> ${t}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${t}-sub${t}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${t}-submenu > ${t}-submenu-title`]:w,[`& ${t}-item-group-title`]:{paddingInlineStart:u}},[`${t}-item`]:w}},{[`${t}-inline-collapsed`]:{width:x,[`&${t}-root`]:{[`${t}-item, ${t}-submenu ${t}-submenu-title`]:{[`> ${t}-inline-collapsed-noicon`]:{fontSize:m,textAlign:"center"}}},[`> ${t}-item,
|
|
222
|
-
> ${t}-item-group > ${t}-item-group-list > ${t}-item,
|
|
223
|
-
> ${t}-item-group > ${t}-item-group-list > ${t}-submenu > ${t}-submenu-title,
|
|
224
|
-
> ${t}-submenu > ${t}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${ae(e.calc(S).div(2).equal())} - ${ae(d)})`,textOverflow:"clip",[`
|
|
225
|
-
${t}-submenu-arrow,
|
|
226
|
-
${t}-submenu-expand-icon
|
|
227
|
-
`]:{opacity:0},[`${t}-item-icon, ${n}`]:{margin:0,fontSize:S,lineHeight:ae(r),"+ span":{display:"inline-block",opacity:0}}},[`${t}-item-icon, ${n}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${t}-item-icon, ${n}`]:{display:"none"},"a, a:hover":{color:i}},[`${t}-item-group-title`]:Object.assign(Object.assign({},Hs),{paddingInline:y})}}]},oT=e=>{const{componentCls:t,motionDurationSlow:n,motionDurationMid:r,motionEaseInOut:i,motionEaseOut:a,iconCls:l,iconSize:c,iconMarginInlineEnd:u}=e;return{[`${t}-item, ${t}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${n}`,`background ${n}`,`padding calc(${n} + 0.1s) ${i}`].join(","),[`${t}-item-icon, ${l}`]:{minWidth:c,fontSize:c,transition:[`font-size ${r} ${a}`,`margin ${n} ${i}`,`color ${n}`].join(","),"+ span":{marginInlineStart:u,opacity:1,transition:[`opacity ${n} ${i}`,`margin ${n}`,`color ${n}`].join(",")}},[`${t}-item-icon`]:Object.assign({},gh()),[`&${t}-item-only-child`]:{[`> ${l}, > ${t}-item-icon`]:{marginInlineEnd:0}}},[`${t}-item-disabled, ${t}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important",cursor:"not-allowed",pointerEvents:"none"},[`> ${t}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},lT=e=>{const{componentCls:t,motionDurationSlow:n,motionEaseInOut:r,borderRadius:i,menuArrowSize:a,menuArrowOffset:l}=e;return{[`${t}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:e.margin,width:a,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${n} ${r}, opacity ${n}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:e.calc(a).mul(.6).equal(),height:e.calc(a).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:i,transition:[`background ${n} ${r}`,`transform ${n} ${r}`,`top ${n} ${r}`,`color ${n} ${r}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${ae(e.calc(l).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${ae(l)})`}}}}},Cq=e=>{const{antCls:t,componentCls:n,fontSize:r,motionDurationSlow:i,motionDurationMid:a,motionEaseInOut:l,paddingXS:c,padding:u,colorSplit:d,lineWidth:m,zIndexPopup:g,borderRadiusLG:v,subMenuItemBorderRadius:y,menuArrowSize:b,menuArrowOffset:x,lineType:S,groupTitleLineHeight:w,groupTitleFontSize:$}=e;return[{"":{[n]:Object.assign(Object.assign({},Bu()),{"&-hidden":{display:"none"}})},[`${n}-submenu-hidden`]:{display:"none"}},{[n]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},lr(e)),Bu()),{marginBottom:0,paddingInlineStart:0,fontSize:r,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${i} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${n}-item`]:{flex:"none"}},[`${n}-item, ${n}-submenu, ${n}-submenu-title`]:{borderRadius:e.itemBorderRadius},[`${n}-item-group-title`]:{padding:`${ae(c)} ${ae(u)}`,fontSize:$,lineHeight:w,transition:`all ${i}`},[`&-horizontal ${n}-submenu`]:{transition:[`border-color ${i} ${l}`,`background ${i} ${l}`].join(",")},[`${n}-submenu, ${n}-submenu-inline`]:{transition:[`border-color ${i} ${l}`,`background ${i} ${l}`,`padding ${a} ${l}`].join(",")},[`${n}-submenu ${n}-sub`]:{cursor:"initial",transition:[`background ${i} ${l}`,`padding ${i} ${l}`].join(",")},[`${n}-title-content`]:{transition:`color ${i}`,"&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},[`> ${t}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"},[`${n}-item-extra`]:{marginInlineStart:"auto",paddingInlineStart:e.padding}},[`${n}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${n}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:d,borderStyle:S,borderWidth:0,borderTopWidth:m,marginBlock:m,padding:0,"&-dashed":{borderStyle:"dashed"}}}),oT(e)),{[`${n}-item-group`]:{[`${n}-item-group-list`]:{margin:0,padding:0,[`${n}-item, ${n}-submenu-title`]:{paddingInline:`${ae(e.calc(r).mul(2).equal())} ${ae(u)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:g,borderRadius:v,boxShadow:"none",transformOrigin:"0 0",[`&${n}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:0,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'},[`> ${n}`]:Object.assign(Object.assign(Object.assign({borderRadius:v},oT(e)),lT(e)),{[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:y},[`${n}-submenu-title::after`]:{transition:`transform ${i} ${l}`}})},"\n &-placement-leftTop,\n &-placement-bottomRight,\n ":{transformOrigin:"100% 0"},"\n &-placement-leftBottom,\n &-placement-topRight,\n ":{transformOrigin:"100% 100%"},"\n &-placement-rightBottom,\n &-placement-topLeft,\n ":{transformOrigin:"0 100%"},"\n &-placement-bottomLeft,\n &-placement-rightTop,\n ":{transformOrigin:"0 0"},"\n &-placement-leftTop,\n &-placement-leftBottom\n ":{paddingInlineEnd:e.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:e.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:e.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:e.paddingXS}}}),lT(e)),{[`&-inline-collapsed ${n}-submenu-arrow,
|
|
228
|
-
&-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${ae(x)})`},"&::after":{transform:`rotate(45deg) translateX(${ae(e.calc(x).mul(-1).equal())})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(${ae(e.calc(b).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${ae(e.calc(x).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${ae(x)})`}}})},{[`${t}-layout-header`]:{[n]:{lineHeight:"inherit"}}}]},wq=e=>{var t,n,r;const{colorPrimary:i,colorError:a,colorTextDisabled:l,colorErrorBg:c,colorText:u,colorTextDescription:d,colorBgContainer:m,colorFillAlter:g,colorFillContent:v,lineWidth:y,lineWidthBold:b,controlItemBgActive:x,colorBgTextHover:S,controlHeightLG:w,lineHeight:$,colorBgElevated:O,marginXXS:T,padding:_,fontSize:R,controlHeightSM:M,fontSizeLG:P,colorTextLightSolid:N,colorErrorHover:I}=e,B=(t=e.activeBarWidth)!==null&&t!==void 0?t:0,A=(n=e.activeBarBorderWidth)!==null&&n!==void 0?n:y,k=(r=e.itemMarginInline)!==null&&r!==void 0?r:e.marginXXS,j=new _n(N).setA(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:e.zIndexPopupBase+50,radiusItem:e.borderRadiusLG,itemBorderRadius:e.borderRadiusLG,radiusSubMenuItem:e.borderRadiusSM,subMenuItemBorderRadius:e.borderRadiusSM,colorItemText:u,itemColor:u,colorItemTextHover:u,itemHoverColor:u,colorItemTextHoverHorizontal:i,horizontalItemHoverColor:i,colorGroupTitle:d,groupTitleColor:d,colorItemTextSelected:i,itemSelectedColor:i,subMenuItemSelectedColor:i,colorItemTextSelectedHorizontal:i,horizontalItemSelectedColor:i,colorItemBg:m,itemBg:m,colorItemBgHover:S,itemHoverBg:S,colorItemBgActive:v,itemActiveBg:x,colorSubItemBg:g,subMenuItemBg:g,colorItemBgSelected:x,itemSelectedBg:x,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:B,colorActiveBarHeight:b,activeBarHeight:b,colorActiveBarBorderSize:y,activeBarBorderWidth:A,colorItemTextDisabled:l,itemDisabledColor:l,colorDangerItemText:a,dangerItemColor:a,colorDangerItemTextHover:a,dangerItemHoverColor:a,colorDangerItemTextSelected:a,dangerItemSelectedColor:a,colorDangerItemBgActive:c,dangerItemActiveBg:c,colorDangerItemBgSelected:c,dangerItemSelectedBg:c,itemMarginInline:k,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:w,groupTitleLineHeight:$,collapsedWidth:w*2,popupBg:O,itemMarginBlock:T,itemPaddingInline:_,horizontalLineHeight:`${w*1.15}px`,iconSize:R,iconMarginInlineEnd:M-R,collapsedIconSize:P,groupTitleFontSize:R,darkItemDisabledColor:new _n(N).setA(.25).toRgbString(),darkItemColor:j,darkDangerItemColor:a,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:N,darkItemSelectedBg:i,darkDangerItemSelectedBg:a,darkItemHoverBg:"transparent",darkGroupTitleColor:j,darkItemHoverColor:N,darkDangerItemHoverColor:I,darkDangerItemSelectedColor:N,darkDangerItemActiveBg:a,itemWidth:B?`calc(100% + ${A}px)`:`calc(100% - ${k*2}px)`}},Eq=(e,t=e,n=!0)=>Nn("Menu",i=>{const{colorBgElevated:a,controlHeightLG:l,fontSize:c,darkItemColor:u,darkDangerItemColor:d,darkItemBg:m,darkSubMenuItemBg:g,darkItemSelectedColor:v,darkItemSelectedBg:y,darkDangerItemSelectedBg:b,darkItemHoverBg:x,darkGroupTitleColor:S,darkItemHoverColor:w,darkItemDisabledColor:$,darkDangerItemHoverColor:O,darkDangerItemSelectedColor:T,darkDangerItemActiveBg:_,popupBg:R,darkPopupBg:M}=i,P=i.calc(c).div(7).mul(5).equal(),N=sn(i,{menuArrowSize:P,menuHorizontalHeight:i.calc(l).mul(1.15).equal(),menuArrowOffset:i.calc(P).mul(.25).equal(),menuSubMenuBg:a,calc:i.calc,popupBg:R}),I=sn(N,{itemColor:u,itemHoverColor:w,groupTitleColor:S,itemSelectedColor:v,subMenuItemSelectedColor:v,itemBg:m,popupBg:M,subMenuItemBg:g,itemActiveBg:"transparent",itemSelectedBg:y,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:x,itemDisabledColor:$,dangerItemColor:d,dangerItemHoverColor:O,dangerItemSelectedColor:T,dangerItemActiveBg:_,dangerItemSelectedBg:b,menuSubMenuBg:g,horizontalItemSelectedColor:v,horizontalItemSelectedBg:y});return[Cq(N),bq(N),xq(N),iT(N,"light"),iT(I,"dark"),Sq(N),VC(N),Fl(N,"slide-up"),Fl(N,"slide-down"),Vp(N,"zoom-big")]},wq,{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]],injectStyle:n,unitless:{groupTitleLineHeight:!0}})(e,t),RA=e=>{var t;const{popupClassName:n,icon:r,title:i,theme:a}=e,l=h.useContext(Kg),{prefixCls:c,inlineCollapsed:u,theme:d}=l,m=ed();let g;if(!r)g=u&&!m.length&&i&&typeof i=="string"?h.createElement("div",{className:`${c}-inline-collapsed-noicon`},i.charAt(0)):h.createElement("span",{className:`${c}-title-content`},i);else{const b=h.isValidElement(i)&&i.type==="span";g=h.createElement(h.Fragment,null,oi(r,{className:te(h.isValidElement(r)?(t=r.props)===null||t===void 0?void 0:t.className:void 0,`${c}-item-icon`)}),b?i:h.createElement("span",{className:`${c}-title-content`},i))}const v=h.useMemo(()=>Object.assign(Object.assign({},l),{firstLevel:!1}),[l]),[y]=Lp("Menu");return h.createElement(Kg.Provider,{value:v},h.createElement(av,Object.assign({},tr(e,["icon"]),{title:g,popupClassName:te(c,n,`${c}-${a||d}`),popupStyle:Object.assign({zIndex:y},e.popupStyle)})))};var $q=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function rb(e){return e===null||e===!1}const Oq={item:OA,submenu:RA,divider:$A},Rq=h.forwardRef((e,t)=>{var n;const r=h.useContext(Wg),i=r||{},{getPrefixCls:a,getPopupContainer:l,direction:c,menu:u}=h.useContext(Tt),d=a(),{prefixCls:m,className:g,style:v,theme:y="light",expandIcon:b,_internalDisableMenuItemTitleTooltip:x,inlineCollapsed:S,siderCollapsed:w,rootClassName:$,mode:O,selectable:T,onClick:_,overflowedIndicatorPopupClassName:R}=e,M=$q(e,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),P=tr(M,["collapsedWidth"]);(n=i.validator)===null||n===void 0||n.call(i,{mode:O});const N=cr((...K)=>{var D;_==null||_.apply(void 0,K),(D=i.onClick)===null||D===void 0||D.call(i)}),I=i.mode||O,B=T??i.selectable,A=S??w,k={horizontal:{motionName:`${d}-slide-up`},inline:Hg(d),other:{motionName:`${d}-zoom-big`}},j=a("menu",m||i.prefixCls),V=Yi(j),[z,F,q]=Eq(j,V,!r),Z=te(`${j}-${y}`,u==null?void 0:u.className,g),H=h.useMemo(()=>{var K,D;if(typeof b=="function"||rb(b))return b||null;if(typeof i.expandIcon=="function"||rb(i.expandIcon))return i.expandIcon||null;if(typeof(u==null?void 0:u.expandIcon)=="function"||rb(u==null?void 0:u.expandIcon))return(u==null?void 0:u.expandIcon)||null;const X=(K=b??(i==null?void 0:i.expandIcon))!==null&&K!==void 0?K:u==null?void 0:u.expandIcon;return oi(X,{className:te(`${j}-submenu-expand-icon`,h.isValidElement(X)?(D=X.props)===null||D===void 0?void 0:D.className:void 0)})},[b,i==null?void 0:i.expandIcon,u==null?void 0:u.expandIcon,j]),U=h.useMemo(()=>({prefixCls:j,inlineCollapsed:A||!1,direction:c,firstLevel:!0,theme:y,mode:I,disableMenuItemTitleTooltip:x}),[j,A,c,x,y]);return z(h.createElement(Wg.Provider,{value:null},h.createElement(Kg.Provider,{value:U},h.createElement(td,Object.assign({getPopupContainer:l,overflowedIndicator:h.createElement(S1,null),overflowedIndicatorPopupClassName:te(j,`${j}-${y}`,R),mode:I,selectable:B,onClick:N},P,{inlineCollapsed:A,style:Object.assign(Object.assign({},u==null?void 0:u.style),v),className:Z,prefixCls:j,direction:c,defaultMotions:k,expandIcon:H,ref:t,rootClassName:te($,F,i.rootClassName,q,V),_internalComponents:Oq})))))}),Ch=h.forwardRef((e,t)=>{const n=h.useRef(null),r=h.useContext(ov);return h.useImperativeHandle(t,()=>({menu:n.current,focus:i=>{var a;(a=n.current)===null||a===void 0||a.focus(i)}})),h.createElement(Rq,Object.assign({ref:n},e,r))});Ch.Item=OA;Ch.SubMenu=RA;Ch.Divider=$A;Ch.ItemGroup=b1;const Tq=e=>{const{componentCls:t,menuCls:n,colorError:r,colorTextLightSolid:i}=e,a=`${n}-item`;return{[`${t}, ${t}-menu-submenu`]:{[`${n} ${a}`]:{[`&${a}-danger:not(${a}-disabled)`]:{color:r,"&:hover":{color:i,backgroundColor:r}}}}}},_q=e=>{const{componentCls:t,menuCls:n,zIndexPopup:r,dropdownArrowDistance:i,sizePopupArrow:a,antCls:l,iconCls:c,motionDurationMid:u,paddingBlock:d,fontSize:m,dropdownEdgeChildPadding:g,colorTextDisabled:v,fontSizeIcon:y,controlPaddingHorizontal:b,colorBgElevated:x}=e;return[{[t]:{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:r,display:"block","&::before":{position:"absolute",insetBlock:e.calc(a).div(2).sub(i).equal(),zIndex:-9999,opacity:1e-4,content:'""'},"&-menu-vertical":{maxHeight:"100vh",overflowY:"auto"},[`&-trigger${l}-btn`]:{[`& > ${c}-down, & > ${l}-btn-icon > ${c}-down`]:{fontSize:y}},[`${t}-wrap`]:{position:"relative",[`${l}-btn > ${c}-down`]:{fontSize:y},[`${c}-down::before`]:{transition:`transform ${u}`}},[`${t}-wrap-open`]:{[`${c}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${l}-slide-down-enter${l}-slide-down-enter-active${t}-placement-bottomLeft,
|
|
229
|
-
&${l}-slide-down-appear${l}-slide-down-appear-active${t}-placement-bottomLeft,
|
|
230
|
-
&${l}-slide-down-enter${l}-slide-down-enter-active${t}-placement-bottom,
|
|
231
|
-
&${l}-slide-down-appear${l}-slide-down-appear-active${t}-placement-bottom,
|
|
232
|
-
&${l}-slide-down-enter${l}-slide-down-enter-active${t}-placement-bottomRight,
|
|
233
|
-
&${l}-slide-down-appear${l}-slide-down-appear-active${t}-placement-bottomRight`]:{animationName:qC},[`&${l}-slide-up-enter${l}-slide-up-enter-active${t}-placement-topLeft,
|
|
234
|
-
&${l}-slide-up-appear${l}-slide-up-appear-active${t}-placement-topLeft,
|
|
235
|
-
&${l}-slide-up-enter${l}-slide-up-enter-active${t}-placement-top,
|
|
236
|
-
&${l}-slide-up-appear${l}-slide-up-appear-active${t}-placement-top,
|
|
237
|
-
&${l}-slide-up-enter${l}-slide-up-enter-active${t}-placement-topRight,
|
|
238
|
-
&${l}-slide-up-appear${l}-slide-up-appear-active${t}-placement-topRight`]:{animationName:WC},[`&${l}-slide-down-leave${l}-slide-down-leave-active${t}-placement-bottomLeft,
|
|
239
|
-
&${l}-slide-down-leave${l}-slide-down-leave-active${t}-placement-bottom,
|
|
240
|
-
&${l}-slide-down-leave${l}-slide-down-leave-active${t}-placement-bottomRight`]:{animationName:KC},[`&${l}-slide-up-leave${l}-slide-up-leave-active${t}-placement-topLeft,
|
|
241
|
-
&${l}-slide-up-leave${l}-slide-up-leave-active${t}-placement-top,
|
|
242
|
-
&${l}-slide-up-leave${l}-slide-up-leave-active${t}-placement-topRight`]:{animationName:GC}}},f1(e,x,{arrowPlacement:{top:!0,bottom:!0}}),{[`${t} ${n}`]:{position:"relative",margin:0},[`${n}-submenu-popup`]:{position:"absolute",zIndex:r,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${t}, ${t}-menu-submenu`]:Object.assign(Object.assign({},lr(e)),{[n]:Object.assign(Object.assign({padding:g,listStyleType:"none",backgroundColor:x,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary},Lo(e)),{"&:empty":{padding:0,boxShadow:"none"},[`${n}-item-group-title`]:{padding:`${ae(d)} ${ae(b)}`,color:e.colorTextDescription,transition:`all ${u}`},[`${n}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${n}-item-icon`]:{minWidth:m,marginInlineEnd:e.marginXS,fontSize:e.fontSizeSM},[`${n}-title-content`]:{flex:"auto","&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},"> a":{color:"inherit",transition:`all ${u}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}},[`${n}-item-extra`]:{paddingInlineStart:e.padding,marginInlineStart:"auto",fontSize:e.fontSizeSM,color:e.colorTextDescription}},[`${n}-item, ${n}-submenu-title`]:Object.assign(Object.assign({display:"flex",margin:0,padding:`${ae(d)} ${ae(b)}`,color:e.colorText,fontWeight:"normal",fontSize:m,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${u}`,borderRadius:e.borderRadiusSM,"&:hover, &-active":{backgroundColor:e.controlItemBgHover}},Lo(e)),{"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:v,cursor:"not-allowed","&:hover":{color:v,backgroundColor:x,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${ae(e.marginXXS)} 0`,overflow:"hidden",lineHeight:0,backgroundColor:e.colorSplit},[`${t}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:e.paddingXS,[`${t}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:e.colorIcon,fontSize:y,fontStyle:"normal"}}}),[`${n}-item-group-list`]:{margin:`0 ${ae(e.marginXS)}`,padding:0,listStyle:"none"},[`${n}-submenu-title`]:{paddingInlineEnd:e.calc(b).add(e.fontSizeSM).equal()},[`${n}-submenu-vertical`]:{position:"relative"},[`${n}-submenu${n}-submenu-disabled ${t}-menu-submenu-title`]:{[`&, ${t}-menu-submenu-arrow-icon`]:{color:v,backgroundColor:x,cursor:"not-allowed"}},[`${n}-submenu-selected ${t}-menu-submenu-title`]:{color:e.colorPrimary}})})},[Fl(e,"slide-up"),Fl(e,"slide-down"),Fg(e,"move-up"),Fg(e,"move-down"),Vp(e,"zoom-big")]]},Nq=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+50,paddingBlock:(e.controlHeight-e.fontSize*e.lineHeight)/2},rv({contentRadius:e.borderRadiusLG,limitVerticalRadius:!0})),d1(e)),Iq=Nn("Dropdown",e=>{const{marginXXS:t,sizePopupArrow:n,paddingXXS:r,componentCls:i}=e,a=sn(e,{menuCls:`${i}-menu`,dropdownArrowDistance:e.calc(n).div(2).add(t).equal(),dropdownEdgeChildPadding:r});return[_q(a),Tq(a)]},Nq,{resetStyle:!1}),lv=e=>{var t;const{menu:n,arrow:r,prefixCls:i,children:a,trigger:l,disabled:c,dropdownRender:u,popupRender:d,getPopupContainer:m,overlayClassName:g,rootClassName:v,overlayStyle:y,open:b,onOpenChange:x,visible:S,onVisibleChange:w,mouseEnterDelay:$=.15,mouseLeaveDelay:O=.1,autoAdjustOverflow:T=!0,placement:_="",overlay:R,transitionName:M,destroyOnHidden:P,destroyPopupOnHide:N}=e,{getPopupContainer:I,getPrefixCls:B,direction:A,dropdown:k}=h.useContext(Tt),j=d||u;mh();const V=h.useMemo(()=>{const we=B();return M!==void 0?M:_.includes("top")?`${we}-slide-down`:`${we}-slide-up`},[B,_,M]),z=h.useMemo(()=>_?_.includes("Center")?_.slice(0,_.indexOf("Center")):_:A==="rtl"?"bottomRight":"bottomLeft",[_,A]),F=B("dropdown",i),q=Yi(F),[Z,H,U]=Iq(F,q),[,K]=Zr(),D=h.Children.only(wU(a)?h.createElement("span",null,a):a),X=oi(D,{className:te(`${F}-trigger`,{[`${F}-rtl`]:A==="rtl"},D.props.className),disabled:(t=D.props.disabled)!==null&&t!==void 0?t:c}),Q=c?[]:l,Y=!!(Q!=null&&Q.includes("contextMenu")),[ie,oe]=vr(!1,{value:b??S}),le=cr(we=>{x==null||x(we,{source:"trigger"}),w==null||w(we),oe(we)}),Ce=te(g,v,H,U,q,k==null?void 0:k.className,{[`${F}-rtl`]:A==="rtl"}),ce=eA({arrowPointAtCenter:typeof r=="object"&&r.pointAtCenter,autoAdjustOverflow:T,offset:K.marginXXS,arrowWidth:r?K.sizePopupArrow:0,borderRadius:K.borderRadius}),de=cr(()=>{n!=null&&n.selectable&&(n!=null&&n.multiple)||(x==null||x(!1,{source:"menu"}),oe(!1))}),ye=()=>{let we;return n!=null&&n.items?we=h.createElement(Ch,Object.assign({},n)):typeof R=="function"?we=R():we=R,j&&(we=j(we)),we=h.Children.only(typeof we=="string"?h.createElement("span",null,we):we),h.createElement(yq,{prefixCls:`${F}-menu`,rootClassName:te(U,q),expandIcon:h.createElement("span",{className:`${F}-menu-submenu-arrow`},A==="rtl"?h.createElement(Hf,{className:`${F}-menu-submenu-arrow-icon`}):h.createElement(Df,{className:`${F}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:de,validator:({mode:Te})=>{}},we)},[ve,ge]=Lp("Dropdown",y==null?void 0:y.zIndex);let fe=h.createElement(sA,Object.assign({alignPoint:Y},tr(e,["rootClassName"]),{mouseEnterDelay:$,mouseLeaveDelay:O,visible:ie,builtinPlacements:ce,arrow:!!r,overlayClassName:Ce,prefixCls:F,getPopupContainer:m||I,transitionName:V,trigger:Q,overlay:ye,placement:z,onVisibleChange:le,overlayStyle:Object.assign(Object.assign(Object.assign({},k==null?void 0:k.style),y),{zIndex:ve}),autoDestroy:P??N}),X);return ve&&(fe=h.createElement(LC.Provider,{value:ge},fe)),Z(fe)},Mq=_P(lv,"align",void 0,"dropdown",e=>e),Pq=e=>h.createElement(Mq,Object.assign({},e),h.createElement("span",null));lv._InternalPanelDoNotUseOrYouWillBeFired=Pq;var Aq=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],zq=h.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-checkbox":n,i=e.className,a=e.style,l=e.checked,c=e.disabled,u=e.defaultChecked,d=u===void 0?!1:u,m=e.type,g=m===void 0?"checkbox":m,v=e.title,y=e.onChange,b=jt(e,Aq),x=h.useRef(null),S=h.useRef(null),w=vr(d,{value:l}),$=me(w,2),O=$[0],T=$[1];h.useImperativeHandle(t,function(){return{focus:function(P){var N;(N=x.current)===null||N===void 0||N.focus(P)},blur:function(){var P;(P=x.current)===null||P===void 0||P.blur()},input:x.current,nativeElement:S.current}});var _=te(r,i,G(G({},"".concat(r,"-checked"),O),"".concat(r,"-disabled"),c)),R=function(P){c||("checked"in e||T(P.target.checked),y==null||y({target:J(J({},e),{},{type:g,checked:P.target.checked}),stopPropagation:function(){P.stopPropagation()},preventDefault:function(){P.preventDefault()},nativeEvent:P.nativeEvent}))};return h.createElement("span",{className:_,title:v,style:a,ref:S},h.createElement("input",Ue({},b,{className:"".concat(r,"-input"),ref:x,onChange:R,disabled:c,checked:!!O,type:g})),h.createElement("span",{className:"".concat(r,"-inner")}))});function jq(e){const t=re.useRef(null),n=()=>{Tn.cancel(t.current),t.current=null};return[()=>{n(),t.current=Tn(()=>{t.current=null})},a=>{t.current&&(a.stopPropagation(),n()),e==null||e(a)}]}const Dq=["parentNode"],Lq="form_item";function yf(e){return e===void 0||e===!1?[]:Array.isArray(e)?e:[e]}function TA(e,t){if(!e.length)return;const n=e.join("_");return t?`${t}_${n}`:Dq.includes(n)?`${Lq}_${n}`:n}function _A(e,t,n,r,i,a){let l=r;return a!==void 0?l=a:n.validating?l="validating":e.length?l="error":t.length?l="warning":(n.touched||i&&n.validated)&&(l="success"),l}var kq=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function sT(e){return yf(e).join("_")}function cT(e,t){const n=t.getFieldInstance(e),r=II(n);if(r)return r;const i=TA(yf(e),t.__INTERNAL__.name);if(i)return document.getElementById(i)}function NA(e){const[t]=JC(),n=h.useRef({}),r=h.useMemo(()=>e??Object.assign(Object.assign({},t),{__INTERNAL__:{itemRef:i=>a=>{const l=sT(i);a?n.current[l]=a:delete n.current[l]}},scrollToField:(i,a={})=>{const{focus:l}=a,c=kq(a,["focus"]),u=cT(i,r);u&&(SB(u,Object.assign({scrollMode:"if-needed",block:"nearest"},c)),l&&r.focusField(i))},focusField:i=>{var a,l;const c=r.getFieldInstance(i);typeof(c==null?void 0:c.focus)=="function"?c.focus():(l=(a=cT(i,r))===null||a===void 0?void 0:a.focus)===null||l===void 0||l.call(a)},getFieldInstance:i=>{const a=sT(i);return n.current[a]}}),[e,t]);return[r]}function wh(e){return sn(e,{inputAffixPadding:e.paddingXXS})}const Eh=e=>{const{controlHeight:t,fontSize:n,lineHeight:r,lineWidth:i,controlHeightSM:a,controlHeightLG:l,fontSizeLG:c,lineHeightLG:u,paddingSM:d,controlPaddingHorizontalSM:m,controlPaddingHorizontal:g,colorFillAlter:v,colorPrimaryHover:y,colorPrimary:b,controlOutlineWidth:x,controlOutline:S,colorErrorOutline:w,colorWarningOutline:$,colorBgContainer:O,inputFontSize:T,inputFontSizeLG:_,inputFontSizeSM:R}=e,M=T||n,P=R||M,N=_||c,I=Math.round((t-M*r)/2*10)/10-i,B=Math.round((a-P*r)/2*10)/10-i,A=Math.ceil((l-N*u)/2*10)/10-i;return{paddingBlock:Math.max(I,0),paddingBlockSM:Math.max(B,0),paddingBlockLG:Math.max(A,0),paddingInline:d-i,paddingInlineSM:m-i,paddingInlineLG:g-i,addonBg:v,activeBorderColor:b,hoverBorderColor:y,activeShadow:`0 0 0 ${x}px ${S}`,errorActiveShadow:`0 0 0 ${x}px ${w}`,warningActiveShadow:`0 0 0 ${x}px ${$}`,hoverBg:O,activeBg:O,inputFontSize:M,inputFontSizeLG:N,inputFontSizeSM:P}},Bq=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),sv=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"input[disabled], textarea[disabled]":{cursor:"not-allowed"},"&:hover:not([disabled])":Object.assign({},Bq(sn(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),x1=(e,t)=>({background:e.colorBgContainer,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:t.borderColor,"&:hover":{borderColor:t.hoverBorderColor,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:t.activeBorderColor,boxShadow:t.activeShadow,outline:0,backgroundColor:e.activeBg}}),uT=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},x1(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),Hq=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},x1(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},sv(e))}),uT(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),uT(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),dT=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),Fq=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${ae(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},dT(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),dT(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},sv(e))}})}),Vq=(e,t)=>{const{componentCls:n}=e;return{"&-borderless":Object.assign({background:"transparent",border:"none","&:focus, &:focus-within":{outline:"none"},[`&${n}-disabled, &[disabled]`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${n}-status-error`]:{"&, & input, & textarea":{color:e.colorError}},[`&${n}-status-warning`]:{"&, & input, & textarea":{color:e.colorWarning}}},t)}},IA=(e,t)=>{var n;return{background:t.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:(n=t==null?void 0:t.inputColor)!==null&&n!==void 0?n:"unset"},"&:hover":{background:t.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:t.activeBorderColor,backgroundColor:e.activeBg}}},fT=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},IA(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),Uq=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},IA(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},sv(e))}),fT(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),fT(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),hT=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),qq=e=>({"&-filled":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group-addon`]:{background:e.colorFillTertiary,"&:last-child":{position:"static"}}},hT(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),hT(e,{status:"warning",addonBg:e.colorWarningBg,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary,color:e.colorTextDisabled},"&-addon:first-child":{borderInlineStart:`${ae(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${ae(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${ae(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${ae(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${ae(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${ae(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),MA=(e,t)=>({background:e.colorBgContainer,borderWidth:`${ae(e.lineWidth)} 0`,borderStyle:`${e.lineType} none`,borderColor:`transparent transparent ${t.borderColor} transparent`,borderRadius:0,"&:hover":{borderColor:`transparent transparent ${t.hoverBorderColor} transparent`,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:`transparent transparent ${t.activeBorderColor} transparent`,outline:0,backgroundColor:e.activeBg}}),mT=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},MA(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:`transparent transparent ${t.borderColor} transparent`}}),Kq=(e,t)=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},MA(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:{color:e.colorTextDisabled,boxShadow:"none",cursor:"not-allowed","&:hover":{borderColor:`transparent transparent ${e.colorBorder} transparent`}},"input[disabled], textarea[disabled]":{cursor:"not-allowed"}}),mT(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),mT(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),Wq=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),PA=e=>{const{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:r,paddingInlineLG:i}=e;return{padding:`${ae(t)} ${ae(i)}`,fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:r}},C1=e=>({padding:`${ae(e.paddingBlockSM)} ${ae(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),w1=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${ae(e.paddingBlock)} ${ae(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},Wq(e.colorTextPlaceholder)),{"&-lg":Object.assign({},PA(e)),"&-sm":Object.assign({},C1(e)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),Gq=e=>{const{componentCls:t,antCls:n}=e;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:e.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${t}, &-lg > ${t}-group-addon`]:Object.assign({},PA(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},C1(e)),[`&-lg ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightLG},[`&-sm ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightSM},[`> ${t}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${t}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${ae(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`${ae(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${ae(e.calc(e.paddingInline).mul(-1).equal())}`,[`&${n}-select-single:not(${n}-select-customize-input):not(${n}-pagination-size-changer)`]:{[`${n}-select-selector`]:{backgroundColor:"inherit",border:`${ae(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}}},[`${n}-cascader-picker`]:{margin:`-9px ${ae(e.calc(e.paddingInline).mul(-1).equal())}`,backgroundColor:"transparent",[`${n}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}}},[t]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${t}-search-with-button &`]:{zIndex:0}}},[`> ${t}:first-child, ${t}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}-affix-wrapper`]:{[`&:not(:first-child) ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}:last-child, ${t}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${t}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${t}-search &`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius}},[`&:not(:first-child), ${t}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${t}-group-compact`]:Object.assign(Object.assign({display:"block"},Bu()),{[`${t}-group-addon, ${t}-group-wrap, > ${t}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover, &:focus":{zIndex:1}}},"& > *":{display:"inline-flex",float:"none",verticalAlign:"top",borderRadius:0},[`
|
|
243
|
-
& > ${t}-affix-wrapper,
|
|
244
|
-
& > ${t}-number-affix-wrapper,
|
|
245
|
-
& > ${n}-picker-range
|
|
246
|
-
`]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderInlineEndWidth:e.lineWidth},[t]:{float:"none"},[`& > ${n}-select > ${n}-select-selector,
|
|
247
|
-
& > ${n}-select-auto-complete ${t},
|
|
248
|
-
& > ${n}-cascader-picker ${t},
|
|
249
|
-
& > ${t}-group-wrapper ${t}`]:{borderInlineEndWidth:e.lineWidth,borderRadius:0,"&:hover, &:focus":{zIndex:1}},[`& > ${n}-select-focused`]:{zIndex:1},[`& > ${n}-select > ${n}-select-arrow`]:{zIndex:1},[`& > *:first-child,
|
|
250
|
-
& > ${n}-select:first-child > ${n}-select-selector,
|
|
251
|
-
& > ${n}-select-auto-complete:first-child ${t},
|
|
252
|
-
& > ${n}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child,
|
|
253
|
-
& > ${n}-select:last-child > ${n}-select-selector,
|
|
254
|
-
& > ${n}-cascader-picker:last-child ${t},
|
|
255
|
-
& > ${n}-cascader-picker-focused:last-child ${t}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${n}-select-auto-complete ${t}`]:{verticalAlign:"top"},[`${t}-group-wrapper + ${t}-group-wrapper`]:{marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),[`${t}-affix-wrapper`]:{borderRadius:0}},[`${t}-group-wrapper:not(:last-child)`]:{[`&${t}-search > ${t}-group`]:{[`& > ${t}-group-addon > ${t}-search-button`]:{borderRadius:0},[`& > ${t}`]:{borderStartStartRadius:e.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:e.borderRadius}}}})}},Xq=e=>{const{componentCls:t,controlHeightSM:n,lineWidth:r,calc:i}=e,l=i(n).sub(i(r).mul(2)).sub(16).div(2).equal();return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},lr(e)),w1(e)),Hq(e)),Uq(e)),Vq(e)),Kq(e)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:n,paddingTop:l,paddingBottom:l}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{appearance:"none"}})}},Qq=e=>{const{componentCls:t}=e;return{[`${t}-clear-icon`]:{margin:0,padding:0,lineHeight:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${e.motionDurationSlow}`,border:"none",outline:"none",backgroundColor:"transparent","&:hover":{color:e.colorIcon},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${ae(e.inputAffixPadding)}`}}}},Yq=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:i,colorIcon:a,colorIconHover:l,iconCls:c}=e,u=`${t}-affix-wrapper`,d=`${t}-affix-wrapper-disabled`;return{[u]:Object.assign(Object.assign(Object.assign(Object.assign({},w1(e)),{display:"inline-flex",[`&:not(${t}-disabled):hover`]:{zIndex:1,[`${t}-search-with-button &`]:{zIndex:0}},"&-focused, &:focus":{zIndex:1},[`> input${t}`]:{padding:0},[`> input${t}, > textarea${t}`]:{fontSize:"inherit",border:"none",borderRadius:0,outline:"none",background:"transparent",color:"inherit","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[t]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:r,direction:"ltr"},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:n},"&-suffix":{marginInlineStart:n}}}),Qq(e)),{[`${c}${t}-password-icon`]:{color:a,cursor:"pointer",transition:`all ${i}`,"&:hover":{color:l}}}),[`${t}-underlined`]:{borderRadius:0},[d]:{[`${c}${t}-password-icon`]:{color:a,cursor:"not-allowed","&:hover":{color:a}}}}},Zq=e=>{const{componentCls:t,borderRadiusLG:n,borderRadiusSM:r}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},lr(e)),Gq(e)),{"&-rtl":{direction:"rtl"},"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${t}-group-addon`]:{borderRadius:n,fontSize:e.inputFontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:r}}},Fq(e)),qq(e)),{[`&:not(${t}-compact-first-item):not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}, ${t}-group-addon`]:{borderRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-first-item`]:{[`${t}, ${t}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-last-item`]:{[`${t}, ${t}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}-affix-wrapper`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-item`]:{[`${t}-affix-wrapper`]:{borderStartStartRadius:0,borderEndStartRadius:0}}})})}},Jq=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-search`;return{[r]:{[t]:{"&:not([disabled]):hover, &:not([disabled]):focus":{[`+ ${t}-group-addon ${r}-button:not(${n}-btn-color-primary):not(${n}-btn-variant-text)`]:{borderInlineStartColor:e.colorPrimaryHover}}},[`${t}-affix-wrapper`]:{height:e.controlHeight,borderRadius:0},[`${t}-lg`]:{lineHeight:e.calc(e.lineHeightLG).sub(2e-4).equal()},[`> ${t}-group`]:{[`> ${t}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${r}-button`]:{marginInlineEnd:-1,borderStartStartRadius:0,borderEndStartRadius:0,boxShadow:"none"},[`${r}-button:not(${n}-btn-color-primary)`]:{color:e.colorTextDescription,"&:not([disabled]):hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${n}-btn-loading::before`]:{inset:0}}}},[`${r}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},"&-large":{[`${t}-affix-wrapper, ${r}-button`]:{height:e.controlHeightLG}},"&-small":{[`${t}-affix-wrapper, ${r}-button`]:{height:e.controlHeightSM}},"&-rtl":{direction:"rtl"},[`&${t}-compact-item`]:{[`&:not(${t}-compact-last-item)`]:{[`${t}-group-addon`]:{[`${t}-search-button`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderRadius:0}}},[`&:not(${t}-compact-first-item)`]:{[`${t},${t}-affix-wrapper`]:{borderRadius:0}},[`> ${t}-group-addon ${t}-search-button,
|
|
256
|
-
> ${t},
|
|
257
|
-
${t}-affix-wrapper`]:{"&:hover, &:focus, &:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}},eK=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},AA=Nn(["Input","Shared"],e=>{const t=sn(e,wh(e));return[Xq(t),Yq(t)]},Eh,{resetFont:!1}),zA=Nn(["Input","Component"],e=>{const t=sn(e,wh(e));return[Zq(t),Jq(t),eK(t),Qp(t)]},Eh,{resetFont:!1});var tK={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"},nK=function(t,n){return h.createElement(mn,Ue({},t,{ref:n,icon:tK}))},rK=h.forwardRef(nK);const cv=h.createContext(null);var iK=function(t){var n=t.activeTabOffset,r=t.horizontal,i=t.rtl,a=t.indicator,l=a===void 0?{}:a,c=l.size,u=l.align,d=u===void 0?"center":u,m=h.useState(),g=me(m,2),v=g[0],y=g[1],b=h.useRef(),x=re.useCallback(function(w){return typeof c=="function"?c(w):typeof c=="number"?c:w},[c]);function S(){Tn.cancel(b.current)}return h.useEffect(function(){var w={};if(n)if(r){w.width=x(n.width);var $=i?"right":"left";d==="start"&&(w[$]=n[$]),d==="center"&&(w[$]=n[$]+n.width/2,w.transform=i?"translateX(50%)":"translateX(-50%)"),d==="end"&&(w[$]=n[$]+n.width,w.transform="translateX(-100%)")}else w.height=x(n.height),d==="start"&&(w.top=n.top),d==="center"&&(w.top=n.top+n.height/2,w.transform="translateY(-50%)"),d==="end"&&(w.top=n.top+n.height,w.transform="translateY(-100%)");return S(),b.current=Tn(function(){var O=v&&w&&Object.keys(w).every(function(T){var _=w[T],R=v[T];return typeof _=="number"&&typeof R=="number"?Math.round(_)===Math.round(R):_===R});O||y(w)}),S},[JSON.stringify(n),r,i,d,x]),{style:v}},gT={width:0,height:0,left:0,top:0};function aK(e,t,n){return h.useMemo(function(){for(var r,i=new Map,a=t.get((r=e[0])===null||r===void 0?void 0:r.key)||gT,l=a.left+a.width,c=0;c<e.length;c+=1){var u=e[c].key,d=t.get(u);if(!d){var m;d=t.get((m=e[c-1])===null||m===void 0?void 0:m.key)||gT}var g=i.get(u)||J({},d);g.right=l-g.left-g.width,i.set(u,g)}return i},[e.map(function(r){return r.key}).join("_"),t,n])}function pT(e,t){var n=h.useRef(e),r=h.useState({}),i=me(r,2),a=i[1];function l(c){var u=typeof c=="function"?c(n.current):c;u!==n.current&&t(u,n.current),n.current=u,a({})}return[n.current,l]}var oK=.1,vT=.01,Cg=20,yT=Math.pow(.995,Cg);function lK(e,t){var n=h.useState(),r=me(n,2),i=r[0],a=r[1],l=h.useState(0),c=me(l,2),u=c[0],d=c[1],m=h.useState(0),g=me(m,2),v=g[0],y=g[1],b=h.useState(),x=me(b,2),S=x[0],w=x[1],$=h.useRef();function O(N){var I=N.touches[0],B=I.screenX,A=I.screenY;a({x:B,y:A}),window.clearInterval($.current)}function T(N){if(i){var I=N.touches[0],B=I.screenX,A=I.screenY;a({x:B,y:A});var k=B-i.x,j=A-i.y;t(k,j);var V=Date.now();d(V),y(V-u),w({x:k,y:j})}}function _(){if(i&&(a(null),w(null),S)){var N=S.x/v,I=S.y/v,B=Math.abs(N),A=Math.abs(I);if(Math.max(B,A)<oK)return;var k=N,j=I;$.current=window.setInterval(function(){if(Math.abs(k)<vT&&Math.abs(j)<vT){window.clearInterval($.current);return}k*=yT,j*=yT,t(k*Cg,j*Cg)},Cg)}}var R=h.useRef();function M(N){var I=N.deltaX,B=N.deltaY,A=0,k=Math.abs(I),j=Math.abs(B);k===j?A=R.current==="x"?I:B:k>j?(A=I,R.current="x"):(A=B,R.current="y"),t(-A,-A)&&N.preventDefault()}var P=h.useRef(null);P.current={onTouchStart:O,onTouchMove:T,onTouchEnd:_,onWheel:M},h.useEffect(function(){function N(k){P.current.onTouchStart(k)}function I(k){P.current.onTouchMove(k)}function B(k){P.current.onTouchEnd(k)}function A(k){P.current.onWheel(k)}return document.addEventListener("touchmove",I,{passive:!1}),document.addEventListener("touchend",B,{passive:!0}),e.current.addEventListener("touchstart",N,{passive:!0}),e.current.addEventListener("wheel",A,{passive:!1}),function(){document.removeEventListener("touchmove",I),document.removeEventListener("touchend",B)}},[])}function jA(e){var t=h.useState(0),n=me(t,2),r=n[0],i=n[1],a=h.useRef(0),l=h.useRef();return l.current=e,ES(function(){var c;(c=l.current)===null||c===void 0||c.call(l)},[r]),function(){a.current===r&&(a.current+=1,i(a.current))}}function sK(e){var t=h.useRef([]),n=h.useState({}),r=me(n,2),i=r[1],a=h.useRef(typeof e=="function"?e():e),l=jA(function(){var u=a.current;t.current.forEach(function(d){u=d(u)}),t.current=[],a.current=u,i({})});function c(u){t.current.push(u),l()}return[a.current,c]}var bT={width:0,height:0,left:0,top:0,right:0};function cK(e,t,n,r,i,a,l){var c=l.tabs,u=l.tabPosition,d=l.rtl,m,g,v;return["top","bottom"].includes(u)?(m="width",g=d?"right":"left",v=Math.abs(n)):(m="height",g="top",v=-n),h.useMemo(function(){if(!c.length)return[0,0];for(var y=c.length,b=y,x=0;x<y;x+=1){var S=e.get(c[x].key)||bT;if(Math.floor(S[g]+S[m])>Math.floor(v+t)){b=x-1;break}}for(var w=0,$=y-1;$>=0;$-=1){var O=e.get(c[$].key)||bT;if(O[g]<v){w=$+1;break}}return w>b?[0,-1]:[w,b]},[e,t,r,i,a,v,u,c.map(function(y){return y.key}).join("_"),d])}function ST(e){var t;return e instanceof Map?(t={},e.forEach(function(n,r){t[r]=n})):t=e,JSON.stringify(t)}var uK="TABS_DQ";function DA(e){return String(e).replace(/"/g,uK)}function E1(e,t,n,r){return!(!n||r||e===!1||e===void 0&&(t===!1||t===null))}var LA=h.forwardRef(function(e,t){var n=e.prefixCls,r=e.editable,i=e.locale,a=e.style;return!r||r.showAdd===!1?null:h.createElement("button",{ref:t,type:"button",className:"".concat(n,"-nav-add"),style:a,"aria-label":(i==null?void 0:i.addAriaLabel)||"Add tab",onClick:function(c){r.onEdit("add",{event:c})}},r.addIcon||"+")}),xT=h.forwardRef(function(e,t){var n=e.position,r=e.prefixCls,i=e.extra;if(!i)return null;var a,l={};return pt(i)==="object"&&!h.isValidElement(i)?l=i:l.right=i,n==="right"&&(a=l.right),n==="left"&&(a=l.left),a?h.createElement("div",{className:"".concat(r,"-extra-content"),ref:t},a):null}),dK=h.forwardRef(function(e,t){var n=e.prefixCls,r=e.id,i=e.tabs,a=e.locale,l=e.mobile,c=e.more,u=c===void 0?{}:c,d=e.style,m=e.className,g=e.editable,v=e.tabBarGutter,y=e.rtl,b=e.removeAriaLabel,x=e.onTabClick,S=e.getPopupContainer,w=e.popupClassName,$=h.useState(!1),O=me($,2),T=O[0],_=O[1],R=h.useState(null),M=me(R,2),P=M[0],N=M[1],I=u.icon,B=I===void 0?"More":I,A="".concat(r,"-more-popup"),k="".concat(n,"-dropdown"),j=P!==null?"".concat(A,"-").concat(P):null,V=a==null?void 0:a.dropdownAriaLabel;function z(D,X){D.preventDefault(),D.stopPropagation(),g.onEdit("remove",{key:X,event:D})}var F=h.createElement(td,{onClick:function(X){var Q=X.key,Y=X.domEvent;x(Q,Y),_(!1)},prefixCls:"".concat(k,"-menu"),id:A,tabIndex:-1,role:"listbox","aria-activedescendant":j,selectedKeys:[P],"aria-label":V!==void 0?V:"expanded dropdown"},i.map(function(D){var X=D.closable,Q=D.disabled,Y=D.closeIcon,ie=D.key,oe=D.label,le=E1(X,Y,g,Q);return h.createElement(xh,{key:ie,id:"".concat(A,"-").concat(ie),role:"option","aria-controls":r&&"".concat(r,"-panel-").concat(ie),disabled:Q},h.createElement("span",null,oe),le&&h.createElement("button",{type:"button","aria-label":b||"remove",tabIndex:0,className:"".concat(k,"-menu-item-remove"),onClick:function(ce){ce.stopPropagation(),z(ce,ie)}},Y||g.removeIcon||"×"))}));function q(D){for(var X=i.filter(function(le){return!le.disabled}),Q=X.findIndex(function(le){return le.key===P})||0,Y=X.length,ie=0;ie<Y;ie+=1){Q=(Q+D+Y)%Y;var oe=X[Q];if(!oe.disabled){N(oe.key);return}}}function Z(D){var X=D.which;if(!T){[ot.DOWN,ot.SPACE,ot.ENTER].includes(X)&&(_(!0),D.preventDefault());return}switch(X){case ot.UP:q(-1),D.preventDefault();break;case ot.DOWN:q(1),D.preventDefault();break;case ot.ESC:_(!1);break;case ot.SPACE:case ot.ENTER:P!==null&&x(P,D);break}}h.useEffect(function(){var D=document.getElementById(j);D&&D.scrollIntoView&&D.scrollIntoView(!1)},[P]),h.useEffect(function(){T||N(null)},[T]);var H=G({},y?"marginRight":"marginLeft",v);i.length||(H.visibility="hidden",H.order=1);var U=te(G({},"".concat(k,"-rtl"),y)),K=l?null:h.createElement(sA,Ue({prefixCls:k,overlay:F,visible:i.length?T:!1,onVisibleChange:_,overlayClassName:te(U,w),mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:S},u),h.createElement("button",{type:"button",className:"".concat(n,"-nav-more"),style:H,"aria-haspopup":"listbox","aria-controls":A,id:"".concat(r,"-more"),"aria-expanded":T,onKeyDown:Z},B));return h.createElement("div",{className:te("".concat(n,"-nav-operations"),m),style:d,ref:t},K,h.createElement(LA,{prefixCls:n,locale:a,editable:g}))});const fK=h.memo(dK,function(e,t){return t.tabMoving});var hK=function(t){var n=t.prefixCls,r=t.id,i=t.active,a=t.focus,l=t.tab,c=l.key,u=l.label,d=l.disabled,m=l.closeIcon,g=l.icon,v=t.closable,y=t.renderWrapper,b=t.removeAriaLabel,x=t.editable,S=t.onClick,w=t.onFocus,$=t.onBlur,O=t.onKeyDown,T=t.onMouseDown,_=t.onMouseUp,R=t.style,M=t.tabCount,P=t.currentPosition,N="".concat(n,"-tab"),I=E1(v,m,x,d);function B(z){d||S(z)}function A(z){z.preventDefault(),z.stopPropagation(),x.onEdit("remove",{key:c,event:z})}var k=h.useMemo(function(){return g&&typeof u=="string"?h.createElement("span",null,u):u},[u,g]),j=h.useRef(null);h.useEffect(function(){a&&j.current&&j.current.focus()},[a]);var V=h.createElement("div",{key:c,"data-node-key":DA(c),className:te(N,G(G(G(G({},"".concat(N,"-with-remove"),I),"".concat(N,"-active"),i),"".concat(N,"-disabled"),d),"".concat(N,"-focus"),a)),style:R,onClick:B},h.createElement("div",{ref:j,role:"tab","aria-selected":i,id:r&&"".concat(r,"-tab-").concat(c),className:"".concat(N,"-btn"),"aria-controls":r&&"".concat(r,"-panel-").concat(c),"aria-disabled":d,tabIndex:d?null:i?0:-1,onClick:function(F){F.stopPropagation(),B(F)},onKeyDown:O,onMouseDown:T,onMouseUp:_,onFocus:w,onBlur:$},a&&h.createElement("div",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"Tab ".concat(P," of ").concat(M)),g&&h.createElement("span",{className:"".concat(N,"-icon")},g),u&&k),I&&h.createElement("button",{type:"button",role:"tab","aria-label":b||"remove",tabIndex:i?0:-1,className:"".concat(N,"-remove"),onClick:function(F){F.stopPropagation(),A(F)}},m||x.removeIcon||"×"));return y?y(V):V},mK=function(t,n){var r=t.offsetWidth,i=t.offsetHeight,a=t.offsetTop,l=t.offsetLeft,c=t.getBoundingClientRect(),u=c.width,d=c.height,m=c.left,g=c.top;return Math.abs(u-r)<1?[u,d,m-n.left,g-n.top]:[r,i,l,a]},Zc=function(t){var n=t.current||{},r=n.offsetWidth,i=r===void 0?0:r,a=n.offsetHeight,l=a===void 0?0:a;if(t.current){var c=t.current.getBoundingClientRect(),u=c.width,d=c.height;if(Math.abs(u-i)<1)return[u,d]}return[i,l]},Qm=function(t,n){return t[n?0:1]},CT=h.forwardRef(function(e,t){var n=e.className,r=e.style,i=e.id,a=e.animated,l=e.activeKey,c=e.rtl,u=e.extra,d=e.editable,m=e.locale,g=e.tabPosition,v=e.tabBarGutter,y=e.children,b=e.onTabClick,x=e.onTabScroll,S=e.indicator,w=h.useContext(cv),$=w.prefixCls,O=w.tabs,T=h.useRef(null),_=h.useRef(null),R=h.useRef(null),M=h.useRef(null),P=h.useRef(null),N=h.useRef(null),I=h.useRef(null),B=g==="top"||g==="bottom",A=pT(0,function(rt,ct){B&&x&&x({direction:rt>ct?"left":"right"})}),k=me(A,2),j=k[0],V=k[1],z=pT(0,function(rt,ct){!B&&x&&x({direction:rt>ct?"top":"bottom"})}),F=me(z,2),q=F[0],Z=F[1],H=h.useState([0,0]),U=me(H,2),K=U[0],D=U[1],X=h.useState([0,0]),Q=me(X,2),Y=Q[0],ie=Q[1],oe=h.useState([0,0]),le=me(oe,2),Ce=le[0],ce=le[1],de=h.useState([0,0]),ye=me(de,2),ve=ye[0],ge=ye[1],fe=sK(new Map),we=me(fe,2),Te=we[0],je=we[1],ze=aK(O,Te,Y[0]),Oe=Qm(K,B),De=Qm(Y,B),Ne=Qm(Ce,B),be=Qm(ve,B),Ye=Math.floor(Oe)<Math.floor(De+Ne),he=Ye?Oe-be:Oe-Ne,$e="".concat($,"-nav-operations-hidden"),Me=0,Ae=0;B&&c?(Me=0,Ae=Math.max(0,De-he)):(Me=Math.min(0,he-De),Ae=0);function Xe(rt){return rt<Me?Me:rt>Ae?Ae:rt}var Fe=h.useRef(null),Ie=h.useState(),Ge=me(Ie,2),Le=Ge[0],Ze=Ge[1];function _e(){Ze(Date.now())}function tt(){Fe.current&&clearTimeout(Fe.current)}lK(M,function(rt,ct){function It(qt,nt){qt(function(bt){var Ft=Xe(bt+nt);return Ft})}return Ye?(B?It(V,rt):It(Z,ct),tt(),_e(),!0):!1}),h.useEffect(function(){return tt(),Le&&(Fe.current=setTimeout(function(){Ze(0)},100)),tt},[Le]);var $t=cK(ze,he,B?j:q,De,Ne,be,J(J({},e),{},{tabs:O})),wt=me($t,2),nn=wt[0],cn=wt[1],jn=cr(function(){var rt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:l,ct=ze.get(rt)||{width:0,height:0,left:0,right:0,top:0};if(B){var It=j;c?ct.right<j?It=ct.right:ct.right+ct.width>j+he&&(It=ct.right+ct.width-he):ct.left<-j?It=-ct.left:ct.left+ct.width>-j+he&&(It=-(ct.left+ct.width-he)),Z(0),V(Xe(It))}else{var qt=q;ct.top<-q?qt=-ct.top:ct.top+ct.height>-q+he&&(qt=-(ct.top+ct.height-he)),V(0),Z(Xe(qt))}}),$n=h.useState(),rn=me($n,2),kt=rn[0],Mt=rn[1],un=h.useState(!1),Jt=me(un,2),st=Jt[0],Pt=Jt[1],vt=O.filter(function(rt){return!rt.disabled}).map(function(rt){return rt.key}),Ke=function(ct){var It=vt.indexOf(kt||l),qt=vt.length,nt=(It+ct+qt)%qt,bt=vt[nt];Mt(bt)},Be=function(ct,It){var qt=vt.indexOf(ct),nt=O.find(function(Ft){return Ft.key===ct}),bt=E1(nt==null?void 0:nt.closable,nt==null?void 0:nt.closeIcon,d,nt==null?void 0:nt.disabled);bt&&(It.preventDefault(),It.stopPropagation(),d.onEdit("remove",{key:ct,event:It}),qt===vt.length-1?Ke(-1):Ke(1))},He=function(ct,It){Pt(!0),It.button===1&&Be(ct,It)},Qe=function(ct){var It=ct.code,qt=c&&B,nt=vt[0],bt=vt[vt.length-1];switch(It){case"ArrowLeft":{B&&Ke(qt?1:-1);break}case"ArrowRight":{B&&Ke(qt?-1:1);break}case"ArrowUp":{ct.preventDefault(),B||Ke(-1);break}case"ArrowDown":{ct.preventDefault(),B||Ke(1);break}case"Home":{ct.preventDefault(),Mt(nt);break}case"End":{ct.preventDefault(),Mt(bt);break}case"Enter":case"Space":{ct.preventDefault(),b(kt??l,ct);break}case"Backspace":case"Delete":{Be(kt,ct);break}}},ut={};B?ut[c?"marginRight":"marginLeft"]=v:ut.marginTop=v;var dt=O.map(function(rt,ct){var It=rt.key;return h.createElement(hK,{id:i,prefixCls:$,key:It,tab:rt,style:ct===0?void 0:ut,closable:rt.closable,editable:d,active:It===l,focus:It===kt,renderWrapper:y,removeAriaLabel:m==null?void 0:m.removeAriaLabel,tabCount:vt.length,currentPosition:ct+1,onClick:function(nt){b(It,nt)},onKeyDown:Qe,onFocus:function(){st||Mt(It),jn(It),_e(),M.current&&(c||(M.current.scrollLeft=0),M.current.scrollTop=0)},onBlur:function(){Mt(void 0)},onMouseDown:function(nt){return He(It,nt)},onMouseUp:function(){Pt(!1)}})}),zt=function(){return je(function(){var ct,It=new Map,qt=(ct=P.current)===null||ct===void 0?void 0:ct.getBoundingClientRect();return O.forEach(function(nt){var bt,Ft=nt.key,rr=(bt=P.current)===null||bt===void 0?void 0:bt.querySelector('[data-node-key="'.concat(DA(Ft),'"]'));if(rr){var Sr=mK(rr,qt),Ar=me(Sr,4),zr=Ar[0],Qn=Ar[1],Yn=Ar[2],Ur=Ar[3];It.set(Ft,{width:zr,height:Qn,left:Yn,top:Ur})}}),It})};h.useEffect(function(){zt()},[O.map(function(rt){return rt.key}).join("_")]);var Ot=jA(function(){var rt=Zc(T),ct=Zc(_),It=Zc(R);D([rt[0]-ct[0]-It[0],rt[1]-ct[1]-It[1]]);var qt=Zc(I);ce(qt);var nt=Zc(N);ge(nt);var bt=Zc(P);ie([bt[0]-qt[0],bt[1]-qt[1]]),zt()}),Ct=O.slice(0,nn),Vt=O.slice(cn+1),Dn=[].concat(qe(Ct),qe(Vt)),Bn=ze.get(l),Un=iK({activeTabOffset:Bn,horizontal:B,indicator:S,rtl:c}),nr=Un.style;h.useEffect(function(){jn()},[l,Me,Ae,ST(Bn),ST(ze),B]),h.useEffect(function(){Ot()},[c]);var an=!!Dn.length,Sn="".concat($,"-nav-wrap"),We,at,_t,Dt;return B?c?(at=j>0,We=j!==Ae):(We=j<0,at=j!==Me):(_t=q<0,Dt=q!==Me),h.createElement(ya,{onResize:Ot},h.createElement("div",{ref:ql(t,T),role:"tablist","aria-orientation":B?"horizontal":"vertical",className:te("".concat($,"-nav"),n),style:r,onKeyDown:function(){_e()}},h.createElement(xT,{ref:_,position:"left",extra:u,prefixCls:$}),h.createElement(ya,{onResize:Ot},h.createElement("div",{className:te(Sn,G(G(G(G({},"".concat(Sn,"-ping-left"),We),"".concat(Sn,"-ping-right"),at),"".concat(Sn,"-ping-top"),_t),"".concat(Sn,"-ping-bottom"),Dt)),ref:M},h.createElement(ya,{onResize:Ot},h.createElement("div",{ref:P,className:"".concat($,"-nav-list"),style:{transform:"translate(".concat(j,"px, ").concat(q,"px)"),transition:Le?"none":void 0}},dt,h.createElement(LA,{ref:I,prefixCls:$,locale:m,editable:d,style:J(J({},dt.length===0?void 0:ut),{},{visibility:an?"hidden":null})}),h.createElement("div",{className:te("".concat($,"-ink-bar"),G({},"".concat($,"-ink-bar-animated"),a.inkBar)),style:nr}))))),h.createElement(fK,Ue({},e,{removeAriaLabel:m==null?void 0:m.removeAriaLabel,ref:N,prefixCls:$,tabs:Dn,className:!an&&$e,tabMoving:!!Le})),h.createElement(xT,{ref:R,position:"right",extra:u,prefixCls:$})))}),kA=h.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,i=e.style,a=e.id,l=e.active,c=e.tabKey,u=e.children;return h.createElement("div",{id:a&&"".concat(a,"-panel-").concat(c),role:"tabpanel",tabIndex:l?0:-1,"aria-labelledby":a&&"".concat(a,"-tab-").concat(c),"aria-hidden":!l,style:i,className:te(n,l&&"".concat(n,"-active"),r),ref:t},u)}),gK=["renderTabBar"],pK=["label","key"],vK=function(t){var n=t.renderTabBar,r=jt(t,gK),i=h.useContext(cv),a=i.tabs;if(n){var l=J(J({},r),{},{panes:a.map(function(c){var u=c.label,d=c.key,m=jt(c,pK);return h.createElement(kA,Ue({tab:u,key:d,tabKey:d},m))})});return n(l,CT)}return h.createElement(CT,r)},yK=["key","forceRender","style","className","destroyInactiveTabPane"],bK=function(t){var n=t.id,r=t.activeKey,i=t.animated,a=t.tabPosition,l=t.destroyInactiveTabPane,c=h.useContext(cv),u=c.prefixCls,d=c.tabs,m=i.tabPane,g="".concat(u,"-tabpane");return h.createElement("div",{className:te("".concat(u,"-content-holder"))},h.createElement("div",{className:te("".concat(u,"-content"),"".concat(u,"-content-").concat(a),G({},"".concat(u,"-content-animated"),m))},d.map(function(v){var y=v.key,b=v.forceRender,x=v.style,S=v.className,w=v.destroyInactiveTabPane,$=jt(v,yK),O=y===r;return h.createElement(ao,Ue({key:y,visible:O,forceRender:b,removeOnLeave:!!(l||w),leavedClassName:"".concat(g,"-hidden")},i.tabPaneMotion),function(T,_){var R=T.style,M=T.className;return h.createElement(kA,Ue({},$,{prefixCls:g,id:n,tabKey:y,animated:m,active:O,style:J(J({},x),R),className:te(S,M),ref:_}))})})))};function SK(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{inkBar:!0,tabPane:!1},t;return e===!1?t={inkBar:!1,tabPane:!1}:e===!0?t={inkBar:!0,tabPane:!1}:t=J({inkBar:!0},pt(e)==="object"?e:{}),t.tabPaneMotion&&t.tabPane===void 0&&(t.tabPane=!0),!t.tabPaneMotion&&t.tabPane&&(t.tabPane=!1),t}var xK=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","more","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicator"],wT=0,CK=h.forwardRef(function(e,t){var n=e.id,r=e.prefixCls,i=r===void 0?"rc-tabs":r,a=e.className,l=e.items,c=e.direction,u=e.activeKey,d=e.defaultActiveKey,m=e.editable,g=e.animated,v=e.tabPosition,y=v===void 0?"top":v,b=e.tabBarGutter,x=e.tabBarStyle,S=e.tabBarExtraContent,w=e.locale,$=e.more,O=e.destroyInactiveTabPane,T=e.renderTabBar,_=e.onChange,R=e.onTabClick,M=e.onTabScroll,P=e.getPopupContainer,N=e.popupClassName,I=e.indicator,B=jt(e,xK),A=h.useMemo(function(){return(l||[]).filter(function(ve){return ve&&pt(ve)==="object"&&"key"in ve})},[l]),k=c==="rtl",j=SK(g),V=h.useState(!1),z=me(V,2),F=z[0],q=z[1];h.useEffect(function(){q(n1())},[]);var Z=vr(function(){var ve;return(ve=A[0])===null||ve===void 0?void 0:ve.key},{value:u,defaultValue:d}),H=me(Z,2),U=H[0],K=H[1],D=h.useState(function(){return A.findIndex(function(ve){return ve.key===U})}),X=me(D,2),Q=X[0],Y=X[1];h.useEffect(function(){var ve=A.findIndex(function(fe){return fe.key===U});if(ve===-1){var ge;ve=Math.max(0,Math.min(Q,A.length-1)),K((ge=A[ve])===null||ge===void 0?void 0:ge.key)}Y(ve)},[A.map(function(ve){return ve.key}).join("_"),U,Q]);var ie=vr(null,{value:n}),oe=me(ie,2),le=oe[0],Ce=oe[1];h.useEffect(function(){n||(Ce("rc-tabs-".concat(wT)),wT+=1)},[]);function ce(ve,ge){R==null||R(ve,ge);var fe=ve!==U;K(ve),fe&&(_==null||_(ve))}var de={id:le,activeKey:U,animated:j,tabPosition:y,rtl:k,mobile:F},ye=J(J({},de),{},{editable:m,locale:w,more:$,tabBarGutter:b,onTabClick:ce,onTabScroll:M,extra:S,style:x,panes:null,getPopupContainer:P,popupClassName:N,indicator:I});return h.createElement(cv.Provider,{value:{tabs:A,prefixCls:i}},h.createElement("div",Ue({ref:t,id:n,className:te(i,"".concat(i,"-").concat(y),G(G(G({},"".concat(i,"-mobile"),F),"".concat(i,"-editable"),m),"".concat(i,"-rtl"),k),a)},B),h.createElement(vK,Ue({},ye,{renderTabBar:T})),h.createElement(bK,Ue({destroyInactiveTabPane:O},de,{animated:j}))))});const wK={motionAppear:!1,motionEnter:!0,motionLeave:!0};function EK(e,t={inkBar:!0,tabPane:!1}){let n;return t===!1?n={inkBar:!1,tabPane:!1}:t===!0?n={inkBar:!0,tabPane:!0}:n=Object.assign({inkBar:!0},typeof t=="object"?t:{}),n.tabPane&&(n.tabPaneMotion=Object.assign(Object.assign({},wK),{motionName:Bp(e,"switch")})),n}var $K=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function OK(e){return e.filter(t=>t)}function RK(e,t){if(e)return e.map(r=>{var i;const a=(i=r.destroyOnHidden)!==null&&i!==void 0?i:r.destroyInactiveTabPane;return Object.assign(Object.assign({},r),{destroyInactiveTabPane:a})});const n=hi(t).map(r=>{if(h.isValidElement(r)){const{key:i,props:a}=r,l=a||{},{tab:c}=l,u=$K(l,["tab"]);return Object.assign(Object.assign({key:String(i)},u),{label:c})}return null});return OK(n)}const TK=e=>{const{componentCls:t,motionDurationSlow:n}=e;return[{[t]:{[`${t}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${n}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${n}`}}}}},[Fl(e,"slide-up"),Fl(e,"slide-down")]]},_K=e=>{const{componentCls:t,tabsCardPadding:n,cardBg:r,cardGutter:i,colorBorderSecondary:a,itemSelectedColor:l}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:r,border:`${ae(e.lineWidth)} ${e.lineType} ${a}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:l,background:e.colorBgContainer},[`${t}-tab-focus:has(${t}-tab-btn:focus-visible)`]:Hl(e,-3),[`& ${t}-tab${t}-tab-focus ${t}-tab-btn:focus-visible`]:{outline:"none"},[`${t}-ink-bar`]:{visibility:"hidden"}},[`&${t}-top, &${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginLeft:{_skip_check_:!0,value:ae(i)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${ae(e.borderRadiusLG)} ${ae(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${ae(e.borderRadiusLG)} ${ae(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:ae(i)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${ae(e.borderRadiusLG)} 0 0 ${ae(e.borderRadiusLG)}`}},[`${t}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:e.colorBgContainer}}}},[`&${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${ae(e.borderRadiusLG)} ${ae(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},NK=e=>{const{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:r}=e;return{[`${t}-dropdown`]:Object.assign(Object.assign({},lr(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:e.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${t}-dropdown-menu`]:{maxHeight:e.tabsDropdownHeight,margin:0,padding:`${ae(r)} 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:e.colorBgContainer,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,"&-item":Object.assign(Object.assign({},Hs),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${ae(e.paddingXXS)} ${ae(e.paddingSM)}`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:e.marginSM},color:e.colorIcon,fontSize:e.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:n}},"&:hover":{background:e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:e.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},IK=e=>{const{componentCls:t,margin:n,colorBorderSecondary:r,horizontalMargin:i,verticalItemPadding:a,verticalItemMargin:l,calc:c}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:i,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${ae(e.lineWidth)} ${e.lineType} ${r}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:`width ${e.motionDurationSlow}, left ${e.motionDurationSlow},
|
|
258
|
-
right ${e.motionDurationSlow}`}},[`${t}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:e.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowRight},[`&${t}-nav-wrap-ping-left::before`]:{opacity:1},[`&${t}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${t}-top`]:{[`> ${t}-nav,
|
|
259
|
-
> div > ${t}-nav`]:{"&::before":{bottom:0},[`${t}-ink-bar`]:{bottom:0}}},[`${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,marginTop:n,marginBottom:0,"&::before":{top:0},[`${t}-ink-bar`]:{top:0}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0}},[`${t}-left, ${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{flexDirection:"column",minWidth:c(e.controlHeight).mul(1.25).equal(),[`${t}-tab`]:{padding:a,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:l},[`${t}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:e.controlHeight},"&::before":{top:0,boxShadow:e.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:e.boxShadowTabsOverflowBottom},[`&${t}-nav-wrap-ping-top::before`]:{opacity:1},[`&${t}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${t}-ink-bar`]:{width:e.lineWidthBold,"&-animated":{transition:`height ${e.motionDurationSlow}, top ${e.motionDurationSlow}`}},[`${t}-nav-list, ${t}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{marginLeft:{_skip_check_:!0,value:ae(c(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${ae(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:e.paddingLG}}}},[`${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,[`${t}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:c(e.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:!0,value:`${ae(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},MK=e=>{const{componentCls:t,cardPaddingSM:n,cardPaddingLG:r,cardHeightSM:i,cardHeightLG:a,horizontalItemPaddingSM:l,horizontalItemPaddingLG:c}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:l,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:c,fontSize:e.titleFontSizeLG,lineHeight:e.lineHeightLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n},[`${t}-nav-add`]:{minWidth:i,minHeight:i}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${ae(e.borderRadius)} ${ae(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${ae(e.borderRadius)} ${ae(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${ae(e.borderRadius)} ${ae(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${ae(e.borderRadius)} 0 0 ${ae(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r},[`${t}-nav-add`]:{minWidth:a,minHeight:a}}}}}},PK=e=>{const{componentCls:t,itemActiveColor:n,itemHoverColor:r,iconCls:i,tabsHorizontalItemMargin:a,horizontalItemPadding:l,itemSelectedColor:c,itemColor:u}=e,d=`${t}-tab`;return{[d]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:l,fontSize:e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:u,"&-btn, &-remove":{"&:focus:not(:focus-visible), &:active":{color:n}},"&-btn":{outline:"none",transition:`all ${e.motionDurationSlow}`,[`${d}-icon:not(:last-child)`]:{marginInlineEnd:e.marginSM}},"&-remove":Object.assign({flex:"none",lineHeight:1,marginRight:{_skip_check_:!0,value:e.calc(e.marginXXS).mul(-1).equal()},marginLeft:{_skip_check_:!0,value:e.marginXS},color:e.colorIcon,fontSize:e.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextHeading}},Lo(e)),"&:hover":{color:r},[`&${d}-active ${d}-btn`]:{color:c,textShadow:e.tabsActiveTextShadow},[`&${d}-focus ${d}-btn:focus-visible`]:Hl(e),[`&${d}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${d}-disabled ${d}-btn, &${d}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${d}-remove ${i}`]:{margin:0,verticalAlign:"middle"},[`${i}:not(:last-child)`]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${d} + ${d}`]:{margin:{_skip_check_:!0,value:a}}}},AK=e=>{const{componentCls:t,tabsHorizontalItemMarginRTL:n,iconCls:r,cardGutter:i,calc:a}=e;return{[`${t}-rtl`]:{direction:"rtl",[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:!0,value:n},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[r]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:ae(e.marginSM)}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:ae(e.marginXS)},marginLeft:{_skip_check_:!0,value:ae(a(e.marginXXS).mul(-1).equal())},[r]:{margin:0}}}},[`&${t}-left`]:{[`> ${t}-nav`]:{order:1},[`> ${t}-content-holder`]:{order:0}},[`&${t}-right`]:{[`> ${t}-nav`]:{order:0},[`> ${t}-content-holder`]:{order:1}},[`&${t}-card${t}-top, &${t}-card${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginRight:{_skip_check_:!0,value:i},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},zK=e=>{const{componentCls:t,tabsCardPadding:n,cardHeight:r,cardGutter:i,itemHoverColor:a,itemActiveColor:l,colorBorderSecondary:c}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},lr(e)),{display:"flex",[`> ${t}-nav, > div > ${t}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${t}-nav-wrap`]:{position:"relative",display:"flex",flex:"auto",alignSelf:"stretch",overflow:"hidden",whiteSpace:"nowrap",transform:"translate(0)","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:`opacity ${e.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${t}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${e.motionDurationSlow}`},[`${t}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${t}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${t}-nav-more`]:{position:"relative",padding:n,background:"transparent",border:0,color:e.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:e.calc(e.controlHeightLG).div(8).equal(),transform:"translateY(100%)",content:"''"}},[`${t}-nav-add`]:Object.assign({minWidth:r,minHeight:r,marginLeft:{_skip_check_:!0,value:i},background:"transparent",border:`${ae(e.lineWidth)} ${e.lineType} ${c}`,borderRadius:`${ae(e.borderRadiusLG)} ${ae(e.borderRadiusLG)} 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:a},"&:active, &:focus:not(:focus-visible)":{color:l}},Lo(e,-3))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),PK(e)),{[`${t}-content`]:{position:"relative",width:"100%"},[`${t}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-tabpane`]:Object.assign(Object.assign({},Lo(e)),{"&-hidden":{display:"none"}})}),[`${t}-centered`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-nav-wrap`]:{[`&:not([class*='${t}-nav-wrap-ping']) > ${t}-nav-list`]:{margin:"auto"}}}}}},jK=e=>{const{cardHeight:t,cardHeightSM:n,cardHeightLG:r,controlHeight:i,controlHeightLG:a}=e,l=t||a,c=n||i,u=r||a+8;return{zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:l,cardHeightSM:c,cardHeightLG:u,cardPadding:`${(l-e.fontHeight)/2-e.lineWidth}px ${e.padding}px`,cardPaddingSM:`${(c-e.fontHeight)/2-e.lineWidth}px ${e.paddingXS}px`,cardPaddingLG:`${(u-e.fontHeightLG)/2-e.lineWidth}px ${e.padding}px`,titleFontSize:e.fontSize,titleFontSizeLG:e.fontSizeLG,titleFontSizeSM:e.fontSize,inkBarColor:e.colorPrimary,horizontalMargin:`0 0 ${e.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:`${e.paddingSM}px 0`,horizontalItemPaddingSM:`${e.paddingXS}px 0`,horizontalItemPaddingLG:`${e.padding}px 0`,verticalItemPadding:`${e.paddingXS}px ${e.paddingLG}px`,verticalItemMargin:`${e.margin}px 0 0 0`,itemColor:e.colorText,itemSelectedColor:e.colorPrimary,itemHoverColor:e.colorPrimaryHover,itemActiveColor:e.colorPrimaryActive,cardGutter:e.marginXXS/2}},DK=Nn("Tabs",e=>{const t=sn(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${ae(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${ae(e.horizontalItemGutter)}`});return[MK(t),AK(t),IK(t),NK(t),_K(t),zK(t),TK(t)]},jK),LK=()=>null;var kK=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const BK=h.forwardRef((e,t)=>{var n,r,i,a,l,c,u,d,m,g,v;const{type:y,className:b,rootClassName:x,size:S,onEdit:w,hideAdd:$,centered:O,addIcon:T,removeIcon:_,moreIcon:R,more:M,popupClassName:P,children:N,items:I,animated:B,style:A,indicatorSize:k,indicator:j,destroyInactiveTabPane:V,destroyOnHidden:z}=e,F=kK(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","removeIcon","moreIcon","more","popupClassName","children","items","animated","style","indicatorSize","indicator","destroyInactiveTabPane","destroyOnHidden"]),{prefixCls:q}=F,{direction:Z,tabs:H,getPrefixCls:U,getPopupContainer:K}=h.useContext(Tt),D=U("tabs",q),X=Yi(D),[Q,Y,ie]=DK(D,X),oe=h.useRef(null);h.useImperativeHandle(t,()=>({nativeElement:oe.current}));let le;y==="editable-card"&&(le={onEdit:(fe,{key:we,event:Te})=>{w==null||w(fe==="add"?Te:we,fe)},removeIcon:(n=_??(H==null?void 0:H.removeIcon))!==null&&n!==void 0?n:h.createElement(Qu,null),addIcon:(T??(H==null?void 0:H.addIcon))||h.createElement(rK,null),showAdd:$!==!0});const Ce=U(),ce=Sa(S),de=RK(I,N),ye=EK(D,B),ve=Object.assign(Object.assign({},H==null?void 0:H.style),A),ge={align:(r=j==null?void 0:j.align)!==null&&r!==void 0?r:(i=H==null?void 0:H.indicator)===null||i===void 0?void 0:i.align,size:(u=(l=(a=j==null?void 0:j.size)!==null&&a!==void 0?a:k)!==null&&l!==void 0?l:(c=H==null?void 0:H.indicator)===null||c===void 0?void 0:c.size)!==null&&u!==void 0?u:H==null?void 0:H.indicatorSize};return Q(h.createElement(CK,Object.assign({ref:oe,direction:Z,getPopupContainer:K},F,{items:de,className:te({[`${D}-${ce}`]:ce,[`${D}-card`]:["card","editable-card"].includes(y),[`${D}-editable-card`]:y==="editable-card",[`${D}-centered`]:O},H==null?void 0:H.className,b,x,Y,ie,X),popupClassName:te(P,Y,ie,X),style:ve,editable:le,more:Object.assign({icon:(v=(g=(m=(d=H==null?void 0:H.more)===null||d===void 0?void 0:d.icon)!==null&&m!==void 0?m:H==null?void 0:H.moreIcon)!==null&&g!==void 0?g:R)!==null&&v!==void 0?v:h.createElement(S1,null),transitionName:`${Ce}-slide-up`},M),prefixCls:D,animated:ye,indicator:ge,destroyInactiveTabPane:z??V})))}),BA=BK;BA.TabPane=LK;var HK=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const HA=e=>{var{prefixCls:t,className:n,hoverable:r=!0}=e,i=HK(e,["prefixCls","className","hoverable"]);const{getPrefixCls:a}=h.useContext(Tt),l=a("card",t),c=te(`${l}-grid`,n,{[`${l}-grid-hoverable`]:r});return h.createElement("div",Object.assign({},i,{className:c}))},FK=e=>{const{antCls:t,componentCls:n,headerHeight:r,headerPadding:i,tabsMarginBottom:a}=e;return Object.assign(Object.assign({display:"flex",justifyContent:"center",flexDirection:"column",minHeight:r,marginBottom:-1,padding:`0 ${ae(i)}`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.headerFontSize,background:e.headerBg,borderBottom:`${ae(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${ae(e.borderRadiusLG)} ${ae(e.borderRadiusLG)} 0 0`},Bu()),{"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":Object.assign(Object.assign({display:"inline-block",flex:1},Hs),{[`
|
|
260
|
-
> ${n}-typography,
|
|
261
|
-
> ${n}-typography-edit-content
|
|
262
|
-
`]:{insetInlineStart:0,marginTop:0,marginBottom:0}}),[`${t}-tabs-top`]:{clear:"both",marginBottom:a,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,"&-bar":{borderBottom:`${ae(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`}}})},VK=e=>{const{cardPaddingBase:t,colorBorderSecondary:n,cardShadow:r,lineWidth:i}=e;return{width:"33.33%",padding:t,border:0,borderRadius:0,boxShadow:`
|
|
263
|
-
${ae(i)} 0 0 0 ${n},
|
|
264
|
-
0 ${ae(i)} 0 0 ${n},
|
|
265
|
-
${ae(i)} ${ae(i)} 0 0 ${n},
|
|
266
|
-
${ae(i)} 0 0 0 ${n} inset,
|
|
267
|
-
0 ${ae(i)} 0 0 ${n} inset;
|
|
268
|
-
`,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:r}}},UK=e=>{const{componentCls:t,iconCls:n,actionsLiMargin:r,cardActionsIconSize:i,colorBorderSecondary:a,actionsBg:l}=e;return Object.assign(Object.assign({margin:0,padding:0,listStyle:"none",background:l,borderTop:`${ae(e.lineWidth)} ${e.lineType} ${a}`,display:"flex",borderRadius:`0 0 ${ae(e.borderRadiusLG)} ${ae(e.borderRadiusLG)}`},Bu()),{"& > li":{margin:r,color:e.colorTextDescription,textAlign:"center","> span":{position:"relative",display:"block",minWidth:e.calc(e.cardActionsIconSize).mul(2).equal(),fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer","&:hover":{color:e.colorPrimary,transition:`color ${e.motionDurationMid}`},[`a:not(${t}-btn), > ${n}`]:{display:"inline-block",width:"100%",color:e.colorIcon,lineHeight:ae(e.fontHeight),transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${n}`]:{fontSize:i,lineHeight:ae(e.calc(i).mul(e.lineHeight).equal())}},"&:not(:last-child)":{borderInlineEnd:`${ae(e.lineWidth)} ${e.lineType} ${a}`}}})},qK=e=>Object.assign(Object.assign({margin:`${ae(e.calc(e.marginXXS).mul(-1).equal())} 0`,display:"flex"},Bu()),{"&-avatar":{paddingInlineEnd:e.padding},"&-detail":{overflow:"hidden",flex:1,"> div:not(:last-child)":{marginBottom:e.marginXS}},"&-title":Object.assign({color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG},Hs),"&-description":{color:e.colorTextDescription}}),KK=e=>{const{componentCls:t,colorFillAlter:n,headerPadding:r,bodyPadding:i}=e;return{[`${t}-head`]:{padding:`0 ${ae(r)}`,background:n,"&-title":{fontSize:e.fontSize}},[`${t}-body`]:{padding:`${ae(e.padding)} ${ae(i)}`}}},WK=e=>{const{componentCls:t}=e;return{overflow:"hidden",[`${t}-body`]:{userSelect:"none"}}},GK=e=>{const{componentCls:t,cardShadow:n,cardHeadPadding:r,colorBorderSecondary:i,boxShadowTertiary:a,bodyPadding:l,extraColor:c}=e;return{[t]:Object.assign(Object.assign({},lr(e)),{position:"relative",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${t}-bordered)`]:{boxShadow:a},[`${t}-head`]:FK(e),[`${t}-extra`]:{marginInlineStart:"auto",color:c,fontWeight:"normal",fontSize:e.fontSize},[`${t}-body`]:{padding:l,borderRadius:`0 0 ${ae(e.borderRadiusLG)} ${ae(e.borderRadiusLG)}`},[`${t}-grid`]:VK(e),[`${t}-cover`]:{"> *":{display:"block",width:"100%",borderRadius:`${ae(e.borderRadiusLG)} ${ae(e.borderRadiusLG)} 0 0`}},[`${t}-actions`]:UK(e),[`${t}-meta`]:qK(e)}),[`${t}-bordered`]:{border:`${ae(e.lineWidth)} ${e.lineType} ${i}`,[`${t}-cover`]:{marginTop:-1,marginInlineStart:-1,marginInlineEnd:-1}},[`${t}-hoverable`]:{cursor:"pointer",transition:`box-shadow ${e.motionDurationMid}, border-color ${e.motionDurationMid}`,"&:hover":{borderColor:"transparent",boxShadow:n}},[`${t}-contain-grid`]:{borderRadius:`${ae(e.borderRadiusLG)} ${ae(e.borderRadiusLG)} 0 0 `,[`${t}-body`]:{display:"flex",flexWrap:"wrap"},[`&:not(${t}-loading) ${t}-body`]:{marginBlockStart:e.calc(e.lineWidth).mul(-1).equal(),marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),padding:0}},[`${t}-contain-tabs`]:{[`> div${t}-head`]:{minHeight:0,[`${t}-head-title, ${t}-extra`]:{paddingTop:r}}},[`${t}-type-inner`]:KK(e),[`${t}-loading`]:WK(e),[`${t}-rtl`]:{direction:"rtl"}}},XK=e=>{const{componentCls:t,bodyPaddingSM:n,headerPaddingSM:r,headerHeightSM:i,headerFontSizeSM:a}=e;return{[`${t}-small`]:{[`> ${t}-head`]:{minHeight:i,padding:`0 ${ae(r)}`,fontSize:a,[`> ${t}-head-wrapper`]:{[`> ${t}-extra`]:{fontSize:e.fontSize}}},[`> ${t}-body`]:{padding:n}},[`${t}-small${t}-contain-tabs`]:{[`> ${t}-head`]:{[`${t}-head-title, ${t}-extra`]:{paddingTop:0,display:"flex",alignItems:"center"}}}}},QK=e=>{var t,n;return{headerBg:"transparent",headerFontSize:e.fontSizeLG,headerFontSizeSM:e.fontSize,headerHeight:e.fontSizeLG*e.lineHeightLG+e.padding*2,headerHeightSM:e.fontSize*e.lineHeight+e.paddingXS*2,actionsBg:e.colorBgContainer,actionsLiMargin:`${e.paddingSM}px 0`,tabsMarginBottom:-e.padding-e.lineWidth,extraColor:e.colorText,bodyPaddingSM:12,headerPaddingSM:12,bodyPadding:(t=e.bodyPadding)!==null&&t!==void 0?t:e.paddingLG,headerPadding:(n=e.headerPadding)!==null&&n!==void 0?n:e.paddingLG}},YK=Nn("Card",e=>{const t=sn(e,{cardShadow:e.boxShadowCard,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardActionsIconSize:e.fontSize});return[GK(t),XK(t)]},QK);var ET=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const ZK=e=>{const{actionClasses:t,actions:n=[],actionStyle:r}=e;return h.createElement("ul",{className:t,style:r},n.map((i,a)=>{const l=`action-${a}`;return h.createElement("li",{style:{width:`${100/n.length}%`},key:l},h.createElement("span",null,i))}))},JK=h.forwardRef((e,t)=>{const{prefixCls:n,className:r,rootClassName:i,style:a,extra:l,headStyle:c={},bodyStyle:u={},title:d,loading:m,bordered:g,variant:v,size:y,type:b,cover:x,actions:S,tabList:w,children:$,activeTabKey:O,defaultActiveTabKey:T,tabBarExtraContent:_,hoverable:R,tabProps:M={},classNames:P,styles:N}=e,I=ET(e,["prefixCls","className","rootClassName","style","extra","headStyle","bodyStyle","title","loading","bordered","variant","size","type","cover","actions","tabList","children","activeTabKey","defaultActiveTabKey","tabBarExtraContent","hoverable","tabProps","classNames","styles"]),{getPrefixCls:B,direction:A,card:k}=h.useContext(Tt),[j]=nv("card",v,g),V=ze=>{var Oe;(Oe=e.onTabChange)===null||Oe===void 0||Oe.call(e,ze)},z=ze=>{var Oe;return te((Oe=k==null?void 0:k.classNames)===null||Oe===void 0?void 0:Oe[ze],P==null?void 0:P[ze])},F=ze=>{var Oe;return Object.assign(Object.assign({},(Oe=k==null?void 0:k.styles)===null||Oe===void 0?void 0:Oe[ze]),N==null?void 0:N[ze])},q=h.useMemo(()=>{let ze=!1;return h.Children.forEach($,Oe=>{(Oe==null?void 0:Oe.type)===HA&&(ze=!0)}),ze},[$]),Z=B("card",n),[H,U,K]=YK(Z),D=h.createElement(Ju,{loading:!0,active:!0,paragraph:{rows:4},title:!1},$),X=O!==void 0,Q=Object.assign(Object.assign({},M),{[X?"activeKey":"defaultActiveKey"]:X?O:T,tabBarExtraContent:_});let Y;const ie=Sa(y),oe=!ie||ie==="default"?"large":ie,le=w?h.createElement(BA,Object.assign({size:oe},Q,{className:`${Z}-head-tabs`,onChange:V,items:w.map(ze=>{var{tab:Oe}=ze,De=ET(ze,["tab"]);return Object.assign({label:Oe},De)})})):null;if(d||l||le){const ze=te(`${Z}-head`,z("header")),Oe=te(`${Z}-head-title`,z("title")),De=te(`${Z}-extra`,z("extra")),Ne=Object.assign(Object.assign({},c),F("header"));Y=h.createElement("div",{className:ze,style:Ne},h.createElement("div",{className:`${Z}-head-wrapper`},d&&h.createElement("div",{className:Oe,style:F("title")},d),l&&h.createElement("div",{className:De,style:F("extra")},l)),le)}const Ce=te(`${Z}-cover`,z("cover")),ce=x?h.createElement("div",{className:Ce,style:F("cover")},x):null,de=te(`${Z}-body`,z("body")),ye=Object.assign(Object.assign({},u),F("body")),ve=h.createElement("div",{className:de,style:ye},m?D:$),ge=te(`${Z}-actions`,z("actions")),fe=S!=null&&S.length?h.createElement(ZK,{actionClasses:ge,actionStyle:F("actions"),actions:S}):null,we=tr(I,["onTabChange"]),Te=te(Z,k==null?void 0:k.className,{[`${Z}-loading`]:m,[`${Z}-bordered`]:j!=="borderless",[`${Z}-hoverable`]:R,[`${Z}-contain-grid`]:q,[`${Z}-contain-tabs`]:w==null?void 0:w.length,[`${Z}-${ie}`]:ie,[`${Z}-type-${b}`]:!!b,[`${Z}-rtl`]:A==="rtl"},r,i,U,K),je=Object.assign(Object.assign({},k==null?void 0:k.style),a);return H(h.createElement("div",Object.assign({ref:t},we,{className:Te,style:je}),Y,ce,ve,fe))});var eW=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const tW=e=>{const{prefixCls:t,className:n,avatar:r,title:i,description:a}=e,l=eW(e,["prefixCls","className","avatar","title","description"]),{getPrefixCls:c}=h.useContext(Tt),u=c("card",t),d=te(`${u}-meta`,n),m=r?h.createElement("div",{className:`${u}-meta-avatar`},r):null,g=i?h.createElement("div",{className:`${u}-meta-title`},i):null,v=a?h.createElement("div",{className:`${u}-meta-description`},a):null,y=g||v?h.createElement("div",{className:`${u}-meta-detail`},g,v):null;return h.createElement("div",Object.assign({},l,{className:d}),m,y)},$1=JK;$1.Grid=HA;$1.Meta=tW;function nW(e,t,n){var r=n||{},i=r.noTrailing,a=i===void 0?!1:i,l=r.noLeading,c=l===void 0?!1:l,u=r.debounceMode,d=u===void 0?void 0:u,m,g=!1,v=0;function y(){m&&clearTimeout(m)}function b(S){var w=S||{},$=w.upcomingOnly,O=$===void 0?!1:$;y(),g=!O}function x(){for(var S=arguments.length,w=new Array(S),$=0;$<S;$++)w[$]=arguments[$];var O=this,T=Date.now()-v;if(g)return;function _(){v=Date.now(),t.apply(O,w)}function R(){m=void 0}!c&&d&&!m&&_(),y(),d===void 0&&T>e?c?(v=Date.now(),a||(m=setTimeout(d?R:_,e))):_():a!==!0&&(m=setTimeout(d?R:_,d===void 0?e-T:e))}return x.cancel=b,x}function rW(e,t,n){var r={},i=r.atBegin,a=i===void 0?!1:i;return nW(e,t,{debounceMode:a!==!1})}function _i(e,t){return e[t]}var iW=["children"];function FA(e,t){return"".concat(e,"-").concat(t)}function aW(e){return e&&e.type&&e.type.isTreeNode}function $h(e,t){return e??t}function Fu(e){var t=e||{},n=t.title,r=t._title,i=t.key,a=t.children,l=n||"title";return{title:l,_title:r||[l],key:i||"key",children:a||"children"}}function VA(e){function t(n){var r=hi(n);return r.map(function(i){if(!aW(i))return ur(!i,"Tree/TreeNode can only accept TreeNode as children."),null;var a=i.key,l=i.props,c=l.children,u=jt(l,iW),d=J({key:a},u),m=t(c);return m.length&&(d.children=m),d}).filter(function(i){return i})}return t(e)}function ib(e,t,n){var r=Fu(n),i=r._title,a=r.key,l=r.children,c=new Set(t===!0?[]:t),u=[];function d(m){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return m.map(function(v,y){for(var b=FA(g?g.pos:"0",y),x=$h(v[a],b),S,w=0;w<i.length;w+=1){var $=i[w];if(v[$]!==void 0){S=v[$];break}}var O=Object.assign(tr(v,[].concat(qe(i),[a,l])),{title:S,key:x,parent:g,pos:b,children:null,data:v,isStart:[].concat(qe(g?g.isStart:[]),[y===0]),isEnd:[].concat(qe(g?g.isEnd:[]),[y===m.length-1])});return u.push(O),t===!0||c.has(x)?O.children=d(v[l]||[],O):O.children=[],O})}return d(e),u}function oW(e,t,n){var r={};pt(n)==="object"?r=n:r={externalGetKey:n},r=r||{};var i=r,a=i.childrenPropName,l=i.externalGetKey,c=i.fieldNames,u=Fu(c),d=u.key,m=u.children,g=a||m,v;l?typeof l=="string"?v=function(x){return x[l]}:typeof l=="function"&&(v=function(x){return l(x)}):v=function(x,S){return $h(x[d],S)};function y(b,x,S,w){var $=b?b[g]:e,O=b?FA(S.pos,x):"0",T=b?[].concat(qe(w),[b]):[];if(b){var _=v(b,O),R={node:b,index:x,pos:O,key:_,parentPos:S.node?S.pos:null,level:S.level+1,nodes:T};t(R)}$&&$.forEach(function(M,P){y(M,P,{node:b,pos:O,level:S?S.level+1:-1},T)})}y(null)}function UA(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.initWrapper,r=t.processEntity,i=t.onProcessFinished,a=t.externalGetKey,l=t.childrenPropName,c=t.fieldNames,u=arguments.length>2?arguments[2]:void 0,d=a||u,m={},g={},v={posEntities:m,keyEntities:g};return n&&(v=n(v)||v),oW(e,function(y){var b=y.node,x=y.index,S=y.pos,w=y.key,$=y.parentPos,O=y.level,T=y.nodes,_={node:b,nodes:T,index:x,key:w,pos:S,level:O},R=$h(w,S);m[S]=_,g[R]=_,_.parent=m[$],_.parent&&(_.parent.children=_.parent.children||[],_.parent.children.push(_)),r&&r(_,v)},{externalGetKey:d,childrenPropName:l,fieldNames:c}),i&&i(v),v}function bf(e,t){var n=t.expandedKeys,r=t.selectedKeys,i=t.loadedKeys,a=t.loadingKeys,l=t.checkedKeys,c=t.halfCheckedKeys,u=t.dragOverNodeKey,d=t.dropPosition,m=t.keyEntities,g=_i(m,e),v={eventKey:e,expanded:n.indexOf(e)!==-1,selected:r.indexOf(e)!==-1,loaded:i.indexOf(e)!==-1,loading:a.indexOf(e)!==-1,checked:l.indexOf(e)!==-1,halfChecked:c.indexOf(e)!==-1,pos:String(g?g.pos:""),dragOver:u===e&&d===0,dragOverGapTop:u===e&&d===-1,dragOverGapBottom:u===e&&d===1};return v}function Ir(e){var t=e.data,n=e.expanded,r=e.selected,i=e.checked,a=e.loaded,l=e.loading,c=e.halfChecked,u=e.dragOver,d=e.dragOverGapTop,m=e.dragOverGapBottom,g=e.pos,v=e.active,y=e.eventKey,b=J(J({},t),{},{expanded:n,selected:r,checked:i,loaded:a,loading:l,halfChecked:c,dragOver:u,dragOverGapTop:d,dragOverGapBottom:m,pos:g,active:v,key:y});return"props"in b||Object.defineProperty(b,"props",{get:function(){return ur(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),e}}),b}function qA(e,t){var n=new Set;return e.forEach(function(r){t.has(r)||n.add(r)}),n}function lW(e){var t=e||{},n=t.disabled,r=t.disableCheckbox,i=t.checkable;return!!(n||r)||i===!1}function sW(e,t,n,r){for(var i=new Set(e),a=new Set,l=0;l<=n;l+=1){var c=t.get(l)||new Set;c.forEach(function(g){var v=g.key,y=g.node,b=g.children,x=b===void 0?[]:b;i.has(v)&&!r(y)&&x.filter(function(S){return!r(S.node)}).forEach(function(S){i.add(S.key)})})}for(var u=new Set,d=n;d>=0;d-=1){var m=t.get(d)||new Set;m.forEach(function(g){var v=g.parent,y=g.node;if(!(r(y)||!g.parent||u.has(g.parent.key))){if(r(g.parent.node)){u.add(v.key);return}var b=!0,x=!1;(v.children||[]).filter(function(S){return!r(S.node)}).forEach(function(S){var w=S.key,$=i.has(w);b&&!$&&(b=!1),!x&&($||a.has(w))&&(x=!0)}),b&&i.add(v.key),x&&a.add(v.key),u.add(v.key)}})}return{checkedKeys:Array.from(i),halfCheckedKeys:Array.from(qA(a,i))}}function cW(e,t,n,r,i){for(var a=new Set(e),l=new Set(t),c=0;c<=r;c+=1){var u=n.get(c)||new Set;u.forEach(function(v){var y=v.key,b=v.node,x=v.children,S=x===void 0?[]:x;!a.has(y)&&!l.has(y)&&!i(b)&&S.filter(function(w){return!i(w.node)}).forEach(function(w){a.delete(w.key)})})}l=new Set;for(var d=new Set,m=r;m>=0;m-=1){var g=n.get(m)||new Set;g.forEach(function(v){var y=v.parent,b=v.node;if(!(i(b)||!v.parent||d.has(v.parent.key))){if(i(v.parent.node)){d.add(y.key);return}var x=!0,S=!1;(y.children||[]).filter(function(w){return!i(w.node)}).forEach(function(w){var $=w.key,O=a.has($);x&&!O&&(x=!1),!S&&(O||l.has($))&&(S=!0)}),x||a.delete(y.key),S&&l.add(y.key),d.add(y.key)}})}return{checkedKeys:Array.from(a),halfCheckedKeys:Array.from(qA(l,a))}}function ab(e,t,n,r){var i=[],a;a=lW;var l=new Set(e.filter(function(m){var g=!!_i(n,m);return g||i.push(m),g})),c=new Map,u=0;Object.keys(n).forEach(function(m){var g=n[m],v=g.level,y=c.get(v);y||(y=new Set,c.set(v,y)),y.add(g),u=Math.max(u,v)}),ur(!i.length,"Tree missing follow keys: ".concat(i.slice(0,100).map(function(m){return"'".concat(m,"'")}).join(", ")));var d;return t===!0?d=sW(l,c,u,a):d=cW(l,t.halfCheckedKeys,c,u,a),d}const uW=e=>{const{checkboxCls:t}=e,n=`${t}-wrapper`;return[{[`${t}-group`]:Object.assign(Object.assign({},lr(e)),{display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}}),[n]:Object.assign(Object.assign({},lr(e)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${n}`]:{marginInlineStart:0},[`&${n}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[t]:Object.assign(Object.assign({},lr(e)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:e.borderRadiusSM,alignSelf:"center",[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${t}-inner`]:Hl(e)},[`${t}-inner`]:{boxSizing:"border-box",display:"block",width:e.checkboxSize,height:e.checkboxSize,direction:"ltr",backgroundColor:e.colorBgContainer,border:`${ae(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,borderCollapse:"separate",transition:`all ${e.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"25%",display:"table",width:e.calc(e.checkboxSize).div(14).mul(5).equal(),height:e.calc(e.checkboxSize).div(14).mul(8).equal(),border:`${ae(e.lineWidthBold)} solid ${e.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`}},"& + span":{paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS}})},{[`
|
|
269
|
-
${n}:not(${n}-disabled),
|
|
270
|
-
${t}:not(${t}-disabled)
|
|
271
|
-
`]:{[`&:hover ${t}-inner`]:{borderColor:e.colorPrimary}},[`${n}:not(${n}-disabled)`]:{[`&:hover ${t}-checked:not(${t}-disabled) ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${t}-checked:not(${t}-disabled):after`]:{borderColor:e.colorPrimaryHover}}},{[`${t}-checked`]:{[`${t}-inner`]:{backgroundColor:e.colorPrimary,borderColor:e.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack} ${e.motionDurationFast}`}}},[`
|
|
272
|
-
${n}-checked:not(${n}-disabled),
|
|
273
|
-
${t}-checked:not(${t}-disabled)
|
|
274
|
-
`]:{[`&:hover ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"}}},{[t]:{"&-indeterminate":{"&":{[`${t}-inner`]:{backgroundColor:`${e.colorBgContainer}`,borderColor:`${e.colorBorder}`,"&:after":{top:"50%",insetInlineStart:"50%",width:e.calc(e.fontSizeLG).div(2).equal(),height:e.calc(e.fontSizeLG).div(2).equal(),backgroundColor:e.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}},[`&:hover ${t}-inner`]:{backgroundColor:`${e.colorBgContainer}`,borderColor:`${e.colorPrimary}`}}}}},{[`${n}-disabled`]:{cursor:"not-allowed"},[`${t}-disabled`]:{[`&, ${t}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${t}-inner`]:{background:e.colorBgContainerDisabled,borderColor:e.colorBorder,"&:after":{borderColor:e.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:e.colorTextDisabled},[`&${t}-indeterminate ${t}-inner::after`]:{background:e.colorTextDisabled}}}]};function KA(e,t){const n=sn(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return uW(n)}const WA=Nn("Checkbox",(e,{prefixCls:t})=>[KA(t,e)]),GA=re.createContext(null);var dW=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const fW=(e,t)=>{var n;const{prefixCls:r,className:i,rootClassName:a,children:l,indeterminate:c=!1,style:u,onMouseEnter:d,onMouseLeave:m,skipGroup:g=!1,disabled:v}=e,y=dW(e,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:b,direction:x,checkbox:S}=h.useContext(Tt),w=h.useContext(GA),{isFormItemInput:$}=h.useContext(Ii),O=h.useContext(Da),T=(n=(w==null?void 0:w.disabled)||v)!==null&&n!==void 0?n:O,_=h.useRef(y.value),R=h.useRef(null),M=gi(t,R);h.useEffect(()=>{w==null||w.registerValue(y.value)},[]),h.useEffect(()=>{if(!g)return y.value!==_.current&&(w==null||w.cancelValue(_.current),w==null||w.registerValue(y.value),_.current=y.value),()=>w==null?void 0:w.cancelValue(y.value)},[y.value]),h.useEffect(()=>{var q;!((q=R.current)===null||q===void 0)&&q.input&&(R.current.input.indeterminate=c)},[c]);const P=b("checkbox",r),N=Yi(P),[I,B,A]=WA(P,N),k=Object.assign({},y);w&&!g&&(k.onChange=(...q)=>{y.onChange&&y.onChange.apply(y,q),w.toggleOption&&w.toggleOption({label:l,value:y.value})},k.name=w.name,k.checked=w.value.includes(y.value));const j=te(`${P}-wrapper`,{[`${P}-rtl`]:x==="rtl",[`${P}-wrapper-checked`]:k.checked,[`${P}-wrapper-disabled`]:T,[`${P}-wrapper-in-form-item`]:$},S==null?void 0:S.className,i,a,A,N,B),V=te({[`${P}-indeterminate`]:c},HC,B),[z,F]=jq(k.onClick);return I(h.createElement(FC,{component:"Checkbox",disabled:T},h.createElement("label",{className:j,style:Object.assign(Object.assign({},S==null?void 0:S.style),u),onMouseEnter:d,onMouseLeave:m,onClick:z},h.createElement(zq,Object.assign({},k,{onClick:F,prefixCls:P,className:V,disabled:T,ref:M})),l!=null&&h.createElement("span",{className:`${P}-label`},l))))},XA=h.forwardRef(fW);var hW=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const mW=h.forwardRef((e,t)=>{const{defaultValue:n,children:r,options:i=[],prefixCls:a,className:l,rootClassName:c,style:u,onChange:d}=e,m=hW(e,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:g,direction:v}=h.useContext(Tt),[y,b]=h.useState(m.value||n||[]),[x,S]=h.useState([]);h.useEffect(()=>{"value"in m&&b(m.value||[])},[m.value]);const w=h.useMemo(()=>i.map(V=>typeof V=="string"||typeof V=="number"?{label:V,value:V}:V),[i]),$=V=>{S(z=>z.filter(F=>F!==V))},O=V=>{S(z=>[].concat(qe(z),[V]))},T=V=>{const z=y.indexOf(V.value),F=qe(y);z===-1?F.push(V.value):F.splice(z,1),"value"in m||b(F),d==null||d(F.filter(q=>x.includes(q)).sort((q,Z)=>{const H=w.findIndex(K=>K.value===q),U=w.findIndex(K=>K.value===Z);return H-U}))},_=g("checkbox",a),R=`${_}-group`,M=Yi(_),[P,N,I]=WA(_,M),B=tr(m,["value","disabled"]),A=i.length?w.map(V=>h.createElement(XA,{prefixCls:_,key:V.value.toString(),disabled:"disabled"in V?V.disabled:m.disabled,value:V.value,checked:y.includes(V.value),onChange:V.onChange,className:te(`${R}-item`,V.className),style:V.style,title:V.title,id:V.id,required:V.required},V.label)):r,k=h.useMemo(()=>({toggleOption:T,value:y,disabled:m.disabled,name:m.name,registerValue:O,cancelValue:$}),[T,y,m.disabled,m.name,O,$]),j=te(R,{[`${R}-rtl`]:v==="rtl"},l,c,I,M,N);return P(h.createElement("div",Object.assign({className:j,style:u},B,{ref:t}),h.createElement(GA.Provider,{value:k},A)))}),Vf=XA;Vf.Group=mW;Vf.__ANT_CHECKBOX=!0;const QA=h.createContext({});var gW=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function $T(e){return e==="auto"?"1 1 auto":typeof e=="number"?`${e} ${e} auto`:/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?`0 0 ${e}`:e}const pW=["xs","sm","md","lg","xl","xxl"],O1=h.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=h.useContext(Tt),{gutter:i,wrap:a}=h.useContext(QA),{prefixCls:l,span:c,order:u,offset:d,push:m,pull:g,className:v,children:y,flex:b,style:x}=e,S=gW(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),w=n("col",l),[$,O,T]=n9(w),_={};let R={};pW.forEach(N=>{let I={};const B=e[N];typeof B=="number"?I.span=B:typeof B=="object"&&(I=B||{}),delete S[N],R=Object.assign(Object.assign({},R),{[`${w}-${N}-${I.span}`]:I.span!==void 0,[`${w}-${N}-order-${I.order}`]:I.order||I.order===0,[`${w}-${N}-offset-${I.offset}`]:I.offset||I.offset===0,[`${w}-${N}-push-${I.push}`]:I.push||I.push===0,[`${w}-${N}-pull-${I.pull}`]:I.pull||I.pull===0,[`${w}-rtl`]:r==="rtl"}),I.flex&&(R[`${w}-${N}-flex`]=!0,_[`--${w}-${N}-flex`]=$T(I.flex))});const M=te(w,{[`${w}-${c}`]:c!==void 0,[`${w}-order-${u}`]:u,[`${w}-offset-${d}`]:d,[`${w}-push-${m}`]:m,[`${w}-pull-${g}`]:g},v,R,O,T),P={};if(i!=null&&i[0]){const N=typeof i[0]=="number"?`${i[0]/2}px`:`calc(${i[0]} / 2)`;P.paddingLeft=N,P.paddingRight=N}return b&&(P.flex=$T(b),a===!1&&!P.minWidth&&(P.minWidth=0)),$(h.createElement("div",Object.assign({},S,{style:Object.assign(Object.assign(Object.assign({},P),x),_),className:M,ref:t}),y))});function vW(e,t){const n=[void 0,void 0],r=Array.isArray(e)?e:[e,void 0],i=t||{xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0};return r.forEach((a,l)=>{if(typeof a=="object"&&a!==null)for(let c=0;c<Vs.length;c++){const u=Vs[c];if(i[u]&&a[u]!==void 0){n[l]=a[u];break}}else n[l]=a}),n}var yW=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function OT(e,t){const[n,r]=h.useState(typeof e=="string"?e:""),i=()=>{if(typeof e=="string"&&r(e),typeof e=="object")for(let a=0;a<Vs.length;a++){const l=Vs[a];if(!t||!t[l])continue;const c=e[l];if(c!==void 0){r(c);return}}};return h.useEffect(()=>{i()},[JSON.stringify(e),t]),n}const YA=h.forwardRef((e,t)=>{const{prefixCls:n,justify:r,align:i,className:a,style:l,children:c,gutter:u=0,wrap:d}=e,m=yW(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:g,direction:v}=h.useContext(Tt),y=c1(!0,null),b=OT(i,y),x=OT(r,y),S=g("row",n),[w,$,O]=e9(S),T=vW(u,y),_=te(S,{[`${S}-no-wrap`]:d===!1,[`${S}-${x}`]:x,[`${S}-${b}`]:b,[`${S}-rtl`]:v==="rtl"},a,$,O),R={};if(T!=null&&T[0]){const I=typeof T[0]=="number"?`${T[0]/-2}px`:`calc(${T[0]} / -2)`;R.marginLeft=I,R.marginRight=I}const[M,P]=T;R.rowGap=P;const N=h.useMemo(()=>({gutter:[M,P],wrap:d}),[M,P,d]);return w(h.createElement(QA.Provider,{value:N},h.createElement("div",Object.assign({},m,{className:_,style:Object.assign(Object.assign({},R),l),ref:t}),c)))});function bW(e){return!!(e.addonBefore||e.addonAfter)}function SW(e){return!!(e.prefix||e.suffix||e.allowClear)}function RT(e,t,n){var r=t.cloneNode(!0),i=Object.create(e,{target:{value:r},currentTarget:{value:r}});return r.value=n,typeof t.selectionStart=="number"&&typeof t.selectionEnd=="number"&&(r.selectionStart=t.selectionStart,r.selectionEnd=t.selectionEnd),r.setSelectionRange=function(){t.setSelectionRange.apply(t,arguments)},i}function Gg(e,t,n,r){if(n){var i=t;if(t.type==="click"){i=RT(t,e,""),n(i);return}if(e.type!=="file"&&r!==void 0){i=RT(t,e,r),n(i);return}n(i)}}function ZA(e,t){if(e){e.focus(t);var n=t||{},r=n.cursor;if(r){var i=e.value.length;switch(r){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(i,i);break;default:e.setSelectionRange(0,i)}}}}var JA=re.forwardRef(function(e,t){var n,r,i,a=e.inputElement,l=e.children,c=e.prefixCls,u=e.prefix,d=e.suffix,m=e.addonBefore,g=e.addonAfter,v=e.className,y=e.style,b=e.disabled,x=e.readOnly,S=e.focused,w=e.triggerFocus,$=e.allowClear,O=e.value,T=e.handleReset,_=e.hidden,R=e.classes,M=e.classNames,P=e.dataAttrs,N=e.styles,I=e.components,B=e.onClear,A=l??a,k=(I==null?void 0:I.affixWrapper)||"span",j=(I==null?void 0:I.groupWrapper)||"span",V=(I==null?void 0:I.wrapper)||"span",z=(I==null?void 0:I.groupAddon)||"span",F=h.useRef(null),q=function(ge){var fe;(fe=F.current)!==null&&fe!==void 0&&fe.contains(ge.target)&&(w==null||w())},Z=SW(e),H=h.cloneElement(A,{value:O,className:te((n=A.props)===null||n===void 0?void 0:n.className,!Z&&(M==null?void 0:M.variant))||null}),U=h.useRef(null);if(re.useImperativeHandle(t,function(){return{nativeElement:U.current||F.current}}),Z){var K=null;if($){var D=!b&&!x&&O,X="".concat(c,"-clear-icon"),Q=pt($)==="object"&&$!==null&&$!==void 0&&$.clearIcon?$.clearIcon:"✖";K=re.createElement("button",{type:"button",tabIndex:-1,onClick:function(ge){T==null||T(ge),B==null||B()},onMouseDown:function(ge){return ge.preventDefault()},className:te(X,G(G({},"".concat(X,"-hidden"),!D),"".concat(X,"-has-suffix"),!!d))},Q)}var Y="".concat(c,"-affix-wrapper"),ie=te(Y,G(G(G(G(G({},"".concat(c,"-disabled"),b),"".concat(Y,"-disabled"),b),"".concat(Y,"-focused"),S),"".concat(Y,"-readonly"),x),"".concat(Y,"-input-with-clear-btn"),d&&$&&O),R==null?void 0:R.affixWrapper,M==null?void 0:M.affixWrapper,M==null?void 0:M.variant),oe=(d||$)&&re.createElement("span",{className:te("".concat(c,"-suffix"),M==null?void 0:M.suffix),style:N==null?void 0:N.suffix},K,d);H=re.createElement(k,Ue({className:ie,style:N==null?void 0:N.affixWrapper,onClick:q},P==null?void 0:P.affixWrapper,{ref:F}),u&&re.createElement("span",{className:te("".concat(c,"-prefix"),M==null?void 0:M.prefix),style:N==null?void 0:N.prefix},u),H,oe)}if(bW(e)){var le="".concat(c,"-group"),Ce="".concat(le,"-addon"),ce="".concat(le,"-wrapper"),de=te("".concat(c,"-wrapper"),le,R==null?void 0:R.wrapper,M==null?void 0:M.wrapper),ye=te(ce,G({},"".concat(ce,"-disabled"),b),R==null?void 0:R.group,M==null?void 0:M.groupWrapper);H=re.createElement(j,{className:ye,ref:U},re.createElement(V,{className:de},m&&re.createElement(z,{className:Ce},m),H,g&&re.createElement(z,{className:Ce},g)))}return re.cloneElement(H,{className:te((r=H.props)===null||r===void 0?void 0:r.className,v)||null,style:J(J({},(i=H.props)===null||i===void 0?void 0:i.style),y),hidden:_})}),xW=["show"];function ez(e,t){return h.useMemo(function(){var n={};t&&(n.show=pt(t)==="object"&&t.formatter?t.formatter:!!t),n=J(J({},n),e);var r=n,i=r.show,a=jt(r,xW);return J(J({},a),{},{show:!!i,showFormatter:typeof i=="function"?i:void 0,strategy:a.strategy||function(l){return l.length}})},[e,t])}var CW=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","onKeyUp","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],wW=h.forwardRef(function(e,t){var n=e.autoComplete,r=e.onChange,i=e.onFocus,a=e.onBlur,l=e.onPressEnter,c=e.onKeyDown,u=e.onKeyUp,d=e.prefixCls,m=d===void 0?"rc-input":d,g=e.disabled,v=e.htmlSize,y=e.className,b=e.maxLength,x=e.suffix,S=e.showCount,w=e.count,$=e.type,O=$===void 0?"text":$,T=e.classes,_=e.classNames,R=e.styles,M=e.onCompositionStart,P=e.onCompositionEnd,N=jt(e,CW),I=h.useState(!1),B=me(I,2),A=B[0],k=B[1],j=h.useRef(!1),V=h.useRef(!1),z=h.useRef(null),F=h.useRef(null),q=function(be){z.current&&ZA(z.current,be)},Z=vr(e.defaultValue,{value:e.value}),H=me(Z,2),U=H[0],K=H[1],D=U==null?"":String(U),X=h.useState(null),Q=me(X,2),Y=Q[0],ie=Q[1],oe=ez(w,S),le=oe.max||b,Ce=oe.strategy(D),ce=!!le&&Ce>le;h.useImperativeHandle(t,function(){var Ne;return{focus:q,blur:function(){var Ye;(Ye=z.current)===null||Ye===void 0||Ye.blur()},setSelectionRange:function(Ye,he,$e){var Me;(Me=z.current)===null||Me===void 0||Me.setSelectionRange(Ye,he,$e)},select:function(){var Ye;(Ye=z.current)===null||Ye===void 0||Ye.select()},input:z.current,nativeElement:((Ne=F.current)===null||Ne===void 0?void 0:Ne.nativeElement)||z.current}}),h.useEffect(function(){V.current&&(V.current=!1),k(function(Ne){return Ne&&g?!1:Ne})},[g]);var de=function(be,Ye,he){var $e=Ye;if(!j.current&&oe.exceedFormatter&&oe.max&&oe.strategy(Ye)>oe.max){if($e=oe.exceedFormatter(Ye,{max:oe.max}),Ye!==$e){var Me,Ae;ie([((Me=z.current)===null||Me===void 0?void 0:Me.selectionStart)||0,((Ae=z.current)===null||Ae===void 0?void 0:Ae.selectionEnd)||0])}}else if(he.source==="compositionEnd")return;K($e),z.current&&Gg(z.current,be,r,$e)};h.useEffect(function(){if(Y){var Ne;(Ne=z.current)===null||Ne===void 0||Ne.setSelectionRange.apply(Ne,qe(Y))}},[Y]);var ye=function(be){de(be,be.target.value,{source:"change"})},ve=function(be){j.current=!1,de(be,be.currentTarget.value,{source:"compositionEnd"}),P==null||P(be)},ge=function(be){l&&be.key==="Enter"&&!V.current&&(V.current=!0,l(be)),c==null||c(be)},fe=function(be){be.key==="Enter"&&(V.current=!1),u==null||u(be)},we=function(be){k(!0),i==null||i(be)},Te=function(be){V.current&&(V.current=!1),k(!1),a==null||a(be)},je=function(be){K(""),q(),z.current&&Gg(z.current,be,r)},ze=ce&&"".concat(m,"-out-of-range"),Oe=function(){var be=tr(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]);return re.createElement("input",Ue({autoComplete:n},be,{onChange:ye,onFocus:we,onBlur:Te,onKeyDown:ge,onKeyUp:fe,className:te(m,G({},"".concat(m,"-disabled"),g),_==null?void 0:_.input),style:R==null?void 0:R.input,ref:z,size:v,type:O,onCompositionStart:function(he){j.current=!0,M==null||M(he)},onCompositionEnd:ve}))},De=function(){var be=Number(le)>0;if(x||oe.show){var Ye=oe.showFormatter?oe.showFormatter({value:D,count:Ce,maxLength:le}):"".concat(Ce).concat(be?" / ".concat(le):"");return re.createElement(re.Fragment,null,oe.show&&re.createElement("span",{className:te("".concat(m,"-show-count-suffix"),G({},"".concat(m,"-show-count-has-suffix"),!!x),_==null?void 0:_.count),style:J({},R==null?void 0:R.count)},Ye),x)}return null};return re.createElement(JA,Ue({},N,{prefixCls:m,className:te(y,ze),handleReset:je,value:D,focused:A,triggerFocus:q,suffix:De(),disabled:g,classes:T,classNames:_,styles:R,ref:F}),Oe())});const tz=e=>{let t;return typeof e=="object"&&(e!=null&&e.clearIcon)?t=e:e&&(t={clearIcon:re.createElement(Xu,null)}),t};function nz(e,t){const n=h.useRef([]),r=()=>{n.current.push(setTimeout(()=>{var i,a,l,c;!((i=e.current)===null||i===void 0)&&i.input&&((a=e.current)===null||a===void 0?void 0:a.input.getAttribute("type"))==="password"&&(!((l=e.current)===null||l===void 0)&&l.input.hasAttribute("value"))&&((c=e.current)===null||c===void 0||c.input.removeAttribute("value"))}))};return h.useEffect(()=>(t&&r(),()=>n.current.forEach(i=>{i&&clearTimeout(i)})),[]),r}function EW(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}var $W=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const uv=h.forwardRef((e,t)=>{const{prefixCls:n,bordered:r=!0,status:i,size:a,disabled:l,onBlur:c,onFocus:u,suffix:d,allowClear:m,addonAfter:g,addonBefore:v,className:y,style:b,styles:x,rootClassName:S,onChange:w,classNames:$,variant:O,_skipAddonWarning:T}=e,_=$W(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant","_skipAddonWarning"]),{getPrefixCls:R,direction:M,allowClear:P,autoComplete:N,className:I,style:B,classNames:A,styles:k}=Yr("input"),j=R("input",n),V=h.useRef(null),z=Yi(j),[F,q,Z]=AA(j,S),[H]=zA(j,z),{compactSize:U,compactItemClassnames:K}=rc(j,M),D=Sa(je=>{var ze;return(ze=a??U)!==null&&ze!==void 0?ze:je}),X=re.useContext(Da),Q=l??X,{status:Y,hasFeedback:ie,feedbackIcon:oe}=h.useContext(Ii),le=tv(Y,i),Ce=EW(e)||!!ie;h.useRef(Ce);const ce=nz(V,!0),de=je=>{ce(),c==null||c(je)},ye=je=>{ce(),u==null||u(je)},ve=je=>{ce(),w==null||w(je)},ge=(ie||d)&&re.createElement(re.Fragment,null,d,ie&&oe),fe=tz(m??P),[we,Te]=nv("input",O,r);return F(H(re.createElement(wW,Object.assign({ref:gi(t,V),prefixCls:j,autoComplete:N},_,{disabled:Q,onBlur:de,onFocus:ye,style:Object.assign(Object.assign({},B),b),styles:Object.assign(Object.assign({},k),x),suffix:ge,allowClear:fe,className:te(y,S,Z,z,K,I),onChange:ve,addonBefore:v&&re.createElement(kf,{form:!0,space:!0},v),addonAfter:g&&re.createElement(kf,{form:!0,space:!0},g),classNames:Object.assign(Object.assign(Object.assign({},$),A),{input:te({[`${j}-sm`]:D==="small",[`${j}-lg`]:D==="large",[`${j}-rtl`]:M==="rtl"},$==null?void 0:$.input,A.input,q),variant:te({[`${j}-${we}`]:Te},Ug(j,le)),affixWrapper:te({[`${j}-affix-wrapper-sm`]:D==="small",[`${j}-affix-wrapper-lg`]:D==="large",[`${j}-affix-wrapper-rtl`]:M==="rtl"},q),wrapper:te({[`${j}-group-rtl`]:M==="rtl"},q),groupWrapper:te({[`${j}-group-wrapper-sm`]:D==="small",[`${j}-group-wrapper-lg`]:D==="large",[`${j}-group-wrapper-rtl`]:M==="rtl",[`${j}-group-wrapper-${we}`]:Te},Ug(`${j}-group-wrapper`,le,ie),q)})}))))});var OW={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.4c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.8 11.2-1.7l28.6-39c2.6-3.7 1.8-8.7-1.8-11.2z"}}]},name:"clock-circle",theme:"outlined"},RW=function(t,n){return h.createElement(mn,Ue({},t,{ref:n,icon:OW}))},TW=h.forwardRef(RW);function TT(e){return["small","middle","large"].includes(e)}function _T(e){return e?typeof e=="number"&&!Number.isNaN(e):!1}const _W=e=>{const{componentCls:t,borderRadius:n,paddingSM:r,colorBorder:i,paddingXS:a,fontSizeLG:l,fontSizeSM:c,borderRadiusLG:u,borderRadiusSM:d,colorBgContainerDisabled:m,lineWidth:g}=e;return{[t]:[{display:"inline-flex",alignItems:"center",gap:0,paddingInline:r,margin:0,background:m,borderWidth:g,borderStyle:"solid",borderColor:i,borderRadius:n,"&-large":{fontSize:l,borderRadius:u},"&-small":{paddingInline:a,borderRadius:d,fontSize:c},"&-compact-last-item":{borderEndStartRadius:0,borderStartStartRadius:0},"&-compact-first-item":{borderEndEndRadius:0,borderStartEndRadius:0},"&-compact-item:not(:first-child):not(:last-child)":{borderRadius:0},"&-compact-item:not(:last-child)":{borderInlineEndWidth:0}},Qp(e,{focus:!1})]}},NW=Nn(["Space","Addon"],e=>[_W(e)]);var IW=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const MW=re.forwardRef((e,t)=>{const{className:n,children:r,style:i,prefixCls:a}=e,l=IW(e,["className","children","style","prefixCls"]),{getPrefixCls:c,direction:u}=re.useContext(Tt),d=c("space-addon",a),[m,g,v]=NW(d),{compactItemClassnames:y,compactSize:b}=rc(d,u),x=te(d,g,y,v,{[`${d}-${b}`]:b},n);return m(re.createElement("div",Object.assign({ref:t,className:x,style:i},l),r))}),rz=re.createContext({latestIndex:0}),PW=rz.Provider,AW=({className:e,index:t,children:n,split:r,style:i})=>{const{latestIndex:a}=h.useContext(rz);return n==null?null:h.createElement(h.Fragment,null,h.createElement("div",{className:e,style:i},n),t<a&&r&&h.createElement("span",{className:`${e}-split`},r))},zW=e=>{const{componentCls:t,antCls:n}=e;return{[t]:{display:"inline-flex","&-rtl":{direction:"rtl"},"&-vertical":{flexDirection:"column"},"&-align":{flexDirection:"column","&-center":{alignItems:"center"},"&-start":{alignItems:"flex-start"},"&-end":{alignItems:"flex-end"},"&-baseline":{alignItems:"baseline"}},[`${t}-item:empty`]:{display:"none"},[`${t}-item > ${n}-badge-not-a-wrapper:only-child`]:{display:"block"}}}},jW=e=>{const{componentCls:t}=e;return{[t]:{"&-gap-row-small":{rowGap:e.spaceGapSmallSize},"&-gap-row-middle":{rowGap:e.spaceGapMiddleSize},"&-gap-row-large":{rowGap:e.spaceGapLargeSize},"&-gap-col-small":{columnGap:e.spaceGapSmallSize},"&-gap-col-middle":{columnGap:e.spaceGapMiddleSize},"&-gap-col-large":{columnGap:e.spaceGapLargeSize}}}},DW=Nn("Space",e=>{const t=sn(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[zW(t),jW(t)]},()=>({}),{resetStyle:!1});var LW=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const kW=h.forwardRef((e,t)=>{var n;const{getPrefixCls:r,direction:i,size:a,className:l,style:c,classNames:u,styles:d}=Yr("space"),{size:m=a??"small",align:g,className:v,rootClassName:y,children:b,direction:x="horizontal",prefixCls:S,split:w,style:$,wrap:O=!1,classNames:T,styles:_}=e,R=LW(e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[M,P]=Array.isArray(m)?m:[m,m],N=TT(P),I=TT(M),B=_T(P),A=_T(M),k=hi(b,{keepEmpty:!0}),j=g===void 0&&x==="horizontal"?"center":g,V=r("space",S),[z,F,q]=DW(V),Z=te(V,l,F,`${V}-${x}`,{[`${V}-rtl`]:i==="rtl",[`${V}-align-${j}`]:j,[`${V}-gap-row-${P}`]:N,[`${V}-gap-col-${M}`]:I},v,y,q),H=te(`${V}-item`,(n=T==null?void 0:T.item)!==null&&n!==void 0?n:u.item),U=Object.assign(Object.assign({},d.item),_==null?void 0:_.item),K=k.map((Q,Y)=>{const ie=(Q==null?void 0:Q.key)||`${H}-${Y}`;return h.createElement(AW,{className:H,key:ie,index:Y,split:w,style:U},Q)}),D=h.useMemo(()=>({latestIndex:k.reduce((Y,ie,oe)=>ie!=null?oe:Y,0)}),[k]);if(k.length===0)return null;const X={};return O&&(X.flexWrap="wrap"),!I&&A&&(X.columnGap=M),!N&&B&&(X.rowGap=P),z(h.createElement("div",Object.assign({ref:t,className:Z,style:Object.assign(Object.assign(Object.assign({},X),c),$)},R),h.createElement(PW,{value:D},K)))}),Oh=kW;Oh.Compact=c8;Oh.Addon=MW;var BW=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const iz=e=>{const{getPopupContainer:t,getPrefixCls:n,direction:r}=h.useContext(Tt),{prefixCls:i,type:a="default",danger:l,disabled:c,loading:u,onClick:d,htmlType:m,children:g,className:v,menu:y,arrow:b,autoFocus:x,overlay:S,trigger:w,align:$,open:O,onOpenChange:T,placement:_,getPopupContainer:R,href:M,icon:P=h.createElement(S1,null),title:N,buttonsRender:I=ce=>ce,mouseEnterDelay:B,mouseLeaveDelay:A,overlayClassName:k,overlayStyle:j,destroyOnHidden:V,destroyPopupOnHide:z,dropdownRender:F,popupRender:q}=e,Z=BW(e,["prefixCls","type","danger","disabled","loading","onClick","htmlType","children","className","menu","arrow","autoFocus","overlay","trigger","align","open","onOpenChange","placement","getPopupContainer","href","icon","title","buttonsRender","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyOnHidden","destroyPopupOnHide","dropdownRender","popupRender"]),H=n("dropdown",i),U=`${H}-button`,D={menu:y,arrow:b,autoFocus:x,align:$,disabled:c,trigger:c?[]:w,onOpenChange:T,getPopupContainer:R||t,mouseEnterDelay:B,mouseLeaveDelay:A,overlayClassName:k,overlayStyle:j,destroyOnHidden:V,popupRender:q||F},{compactSize:X,compactItemClassnames:Q}=rc(H,r),Y=te(U,Q,v);"destroyPopupOnHide"in e&&(D.destroyPopupOnHide=z),"overlay"in e&&(D.overlay=S),"open"in e&&(D.open=O),"placement"in e?D.placement=_:D.placement=r==="rtl"?"bottomLeft":"bottomRight";const ie=h.createElement(Er,{type:a,danger:l,disabled:c,loading:u,onClick:d,htmlType:m,href:M,title:N},g),oe=h.createElement(Er,{type:a,danger:l,icon:P}),[le,Ce]=I([ie,oe]);return h.createElement(Oh.Compact,Object.assign({className:Y,size:X,block:!0},Z),le,h.createElement(lv,Object.assign({},D),Ce))};iz.__ANT_BUTTON=!0;const az=lv;az.Button=iz;function HW(e){return e==null?null:typeof e=="object"&&!h.isValidElement(e)?e:{title:e}}function Xg(e){const[t,n]=h.useState(e);return h.useEffect(()=>{const r=setTimeout(()=>{n(e)},e.length?0:10);return()=>{clearTimeout(r)}},[e]),t}const FW=e=>{const{componentCls:t}=e,n=`${t}-show-help`,r=`${t}-show-help-item`;return{[n]:{transition:`opacity ${e.motionDurationFast} ${e.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[r]:{overflow:"hidden",transition:`height ${e.motionDurationFast} ${e.motionEaseInOut},
|
|
275
|
-
opacity ${e.motionDurationFast} ${e.motionEaseInOut},
|
|
276
|
-
transform ${e.motionDurationFast} ${e.motionEaseInOut} !important`,[`&${r}-appear, &${r}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${r}-leave-active`]:{transform:"translateY(-5px)"}}}}},VW=e=>({legend:{display:"block",width:"100%",marginBottom:e.marginLG,padding:0,color:e.colorTextDescription,fontSize:e.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${ae(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},'input[type="search"]':{boxSizing:"border-box"},'input[type="radio"], input[type="checkbox"]':{lineHeight:"normal"},'input[type="file"]':{display:"block"},'input[type="range"]':{display:"block",width:"100%"},"select[multiple], select[size]":{height:"auto"},"input[type='file']:focus,\n input[type='radio']:focus,\n input[type='checkbox']:focus":{outline:0,boxShadow:`0 0 0 ${ae(e.controlOutlineWidth)} ${e.controlOutline}`},output:{display:"block",paddingTop:15,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight}}),NT=(e,t)=>{const{formItemCls:n}=e;return{[n]:{[`${n}-label > label`]:{height:t},[`${n}-control-input`]:{minHeight:t}}}},UW=e=>{const{componentCls:t}=e;return{[e.componentCls]:Object.assign(Object.assign(Object.assign({},lr(e)),VW(e)),{[`${t}-text`]:{display:"inline-block",paddingInlineEnd:e.paddingSM},"&-small":Object.assign({},NT(e,e.controlHeightSM)),"&-large":Object.assign({},NT(e,e.controlHeightLG))})}},qW=e=>{const{formItemCls:t,iconCls:n,rootPrefixCls:r,antCls:i,labelRequiredMarkColor:a,labelColor:l,labelFontSize:c,labelHeight:u,labelColonMarginInlineStart:d,labelColonMarginInlineEnd:m,itemMarginBottom:g}=e;return{[t]:Object.assign(Object.assign({},lr(e)),{marginBottom:g,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,
|
|
277
|
-
&-hidden${i}-row`]:{display:"none"},"&-has-warning":{[`${t}-split`]:{color:e.colorError}},"&-has-error":{[`${t}-split`]:{color:e.colorWarning}},[`${t}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:e.lineHeight,whiteSpace:"unset","> label":{verticalAlign:"middle",textWrap:"balance"}},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:u,color:l,fontSize:c,[`> ${n}`]:{fontSize:e.fontSize,verticalAlign:"top"},[`&${t}-required`]:{"&::before":{display:"inline-block",marginInlineEnd:e.marginXXS,color:a,fontSize:e.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"'},[`&${t}-required-mark-hidden, &${t}-required-mark-optional`]:{"&::before":{display:"none"}}},[`${t}-optional`]:{display:"inline-block",marginInlineStart:e.marginXXS,color:e.colorTextDescription,[`&${t}-required-mark-hidden`]:{display:"none"}},[`${t}-tooltip`]:{color:e.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:e.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:d,marginInlineEnd:m},[`&${t}-no-colon::after`]:{content:'"\\a0"'}}},[`${t}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${r}-col-'"]):not([class*="' ${r}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:e.controlHeight,"&-content":{flex:"auto",maxWidth:"100%",[`&:has(> ${i}-switch:only-child, > ${i}-rate:only-child)`]:{display:"flex",alignItems:"center"}}}},[t]:{"&-additional":{display:"flex",flexDirection:"column"},"&-explain, &-extra":{clear:"both",color:e.colorTextDescription,fontSize:e.fontSize,lineHeight:e.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:e.controlHeightSM,transition:`color ${e.motionDurationMid} ${e.motionEaseOut}`},"&-explain":{"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning}}},[`&-with-help ${t}-explain`]:{height:"auto",opacity:1},[`${t}-feedback-icon`]:{fontSize:e.fontSize,textAlign:"center",visibility:"visible",animationName:XC,animationDuration:e.motionDurationMid,animationTimingFunction:e.motionEaseOutBack,pointerEvents:"none","&-success":{color:e.colorSuccess},"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning},"&-validating":{color:e.colorPrimary}}})}},xs=e=>({padding:e.verticalLabelPadding,margin:e.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),KW=e=>{const{antCls:t,formItemCls:n}=e;return{[`${n}-horizontal`]:{[`${n}-label`]:{flexGrow:0},[`${n}-control`]:{flex:"1 1 0",minWidth:0},[`${n}-label[class$='-24'], ${n}-label[class*='-24 ']`]:{[`& + ${n}-control`]:{minWidth:"unset"}},[`${t}-col-24${n}-label,
|
|
278
|
-
${t}-col-xl-24${n}-label`]:xs(e)}}},WW=e=>{const{componentCls:t,formItemCls:n,inlineItemMarginBottom:r}=e;return{[`${t}-inline`]:{display:"flex",flexWrap:"wrap",[`${n}-inline`]:{flex:"none",marginInlineEnd:e.margin,marginBottom:r,"&-row":{flexWrap:"nowrap"},[`> ${n}-label,
|
|
279
|
-
> ${n}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${n}-label`]:{flex:"none"},[`${t}-text`]:{display:"inline-block"},[`${n}-has-feedback`]:{display:"inline-block"}}}}},GW=e=>{const{componentCls:t,formItemCls:n,rootPrefixCls:r}=e;return{[`${n} ${n}-label`]:xs(e),[`${t}:not(${t}-inline)`]:{[n]:{flexWrap:"wrap",[`${n}-label, ${n}-control`]:{[`&:not([class*=" ${r}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},XW=e=>{const{componentCls:t,formItemCls:n,antCls:r}=e;return{[`${n}-vertical`]:{[`${n}-row`]:{flexDirection:"column"},[`${n}-label > label`]:{height:"auto"},[`${n}-control`]:{width:"100%"},[`${n}-label,
|
|
280
|
-
${r}-col-24${n}-label,
|
|
281
|
-
${r}-col-xl-24${n}-label`]:xs(e)},[`@media (max-width: ${ae(e.screenXSMax)})`]:[GW(e),{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-xs-24${n}-label`]:xs(e)}}}],[`@media (max-width: ${ae(e.screenSMMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-sm-24${n}-label`]:xs(e)}}},[`@media (max-width: ${ae(e.screenMDMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-md-24${n}-label`]:xs(e)}}},[`@media (max-width: ${ae(e.screenLGMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-lg-24${n}-label`]:xs(e)}}}}},QW=e=>({labelRequiredMarkColor:e.colorError,labelColor:e.colorTextHeading,labelFontSize:e.fontSize,labelHeight:e.controlHeight,labelColonMarginInlineStart:e.marginXXS/2,labelColonMarginInlineEnd:e.marginXS,itemMarginBottom:e.marginLG,verticalLabelPadding:`0 0 ${e.paddingXS}px`,verticalLabelMargin:0,inlineItemMarginBottom:0}),oz=(e,t)=>sn(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:t}),R1=Nn("Form",(e,{rootPrefixCls:t})=>{const n=oz(e,t);return[UW(n),qW(n),FW(n),KW(n),WW(n),XW(n),VC(n),XC]},QW,{order:-1e3}),IT=[];function ob(e,t,n,r=0){return{key:typeof e=="string"?e:`${t}-${r}`,error:e,errorStatus:n}}const lz=({help:e,helpStatus:t,errors:n=IT,warnings:r=IT,className:i,fieldId:a,onVisibleChanged:l})=>{const{prefixCls:c}=h.useContext(e1),u=`${c}-item-explain`,d=Yi(c),[m,g,v]=R1(c,d),y=h.useMemo(()=>Hg(c),[c]),b=Xg(n),x=Xg(r),S=h.useMemo(()=>e!=null?[ob(e,"help",t)]:[].concat(qe(b.map((O,T)=>ob(O,"error","error",T))),qe(x.map((O,T)=>ob(O,"warning","warning",T)))),[e,t,b,x]),w=h.useMemo(()=>{const O={};return S.forEach(({key:T})=>{O[T]=(O[T]||0)+1}),S.map((T,_)=>Object.assign(Object.assign({},T),{key:O[T.key]>1?`${T.key}-fallback-${_}`:T.key}))},[S]),$={};return a&&($.id=`${a}_help`),m(h.createElement(ao,{motionDeadline:y.motionDeadline,motionName:`${c}-show-help`,visible:!!w.length,onVisibleChanged:l},O=>{const{className:T,style:_}=O;return h.createElement("div",Object.assign({},$,{className:te(u,T,v,d,i,g),style:_}),h.createElement(kM,Object.assign({keys:w},Hg(c),{motionName:`${c}-show-help-item`,component:!1}),R=>{const{key:M,error:P,errorStatus:N,className:I,style:B}=R;return h.createElement("div",{key:M,className:te(I,{[`${u}-${N}`]:N}),style:B},P)}))}))};var YW=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const ZW=(e,t)=>{const n=h.useContext(Da),{getPrefixCls:r,direction:i,requiredMark:a,colon:l,scrollToFirstError:c,className:u,style:d}=Yr("form"),{prefixCls:m,className:g,rootClassName:v,size:y,disabled:b=n,form:x,colon:S,labelAlign:w,labelWrap:$,labelCol:O,wrapperCol:T,hideRequiredMark:_,layout:R="horizontal",scrollToFirstError:M,requiredMark:P,onFinishFailed:N,name:I,style:B,feedbackIcons:A,variant:k}=e,j=YW(e,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons","variant"]),V=Sa(y),z=h.useContext(fM),F=h.useMemo(()=>P!==void 0?P:_?!1:a!==void 0?a:!0,[_,P,a]),q=S??l,Z=r("form",m),H=Yi(Z),[U,K,D]=R1(Z,H),X=te(Z,`${Z}-${R}`,{[`${Z}-hide-required-mark`]:F===!1,[`${Z}-rtl`]:i==="rtl",[`${Z}-${V}`]:V},D,H,K,u,g,v),[Q]=NA(x),{__INTERNAL__:Y}=Q;Y.name=I;const ie=h.useMemo(()=>({name:I,labelAlign:w,labelCol:O,labelWrap:$,wrapperCol:T,layout:R,colon:q,requiredMark:F,itemRef:Y.itemRef,form:Q,feedbackIcons:A}),[I,w,O,T,R,q,F,Q,A]),oe=h.useRef(null);h.useImperativeHandle(t,()=>{var ce;return Object.assign(Object.assign({},Q),{nativeElement:(ce=oe.current)===null||ce===void 0?void 0:ce.nativeElement})});const le=(ce,de)=>{if(ce){let ye={block:"nearest"};typeof ce=="object"&&(ye=Object.assign(Object.assign({},ye),ce)),Q.scrollToField(de,ye)}},Ce=ce=>{if(N==null||N(ce),ce.errorFields.length){const de=ce.errorFields[0].name;if(M!==void 0){le(M,de);return}c!==void 0&&le(c,de)}};return U(h.createElement(CP.Provider,{value:k},h.createElement(SM,{disabled:b},h.createElement(ks.Provider,{value:V},h.createElement(SP,{validateMessages:z},h.createElement(ko.Provider,{value:ie},h.createElement(xP,{status:!0},h.createElement(Yu,Object.assign({id:I},j,{name:I,onFinishFailed:Ce,form:Q,ref:oe,style:Object.assign(Object.assign({},d),B),className:X})))))))))},JW=h.forwardRef(ZW);function eG(e){if(typeof e=="function")return e;const t=hi(e);return t.length<=1?t[0]:t}const sz=()=>{const{status:e,errors:t=[],warnings:n=[]}=h.useContext(Ii);return{status:e,errors:t,warnings:n}};sz.Context=Ii;function tG(e){const[t,n]=h.useState(e),r=h.useRef(null),i=h.useRef([]),a=h.useRef(!1);h.useEffect(()=>(a.current=!1,()=>{a.current=!0,Tn.cancel(r.current),r.current=null}),[]);function l(c){a.current||(r.current===null&&(i.current=[],r.current=Tn(()=>{r.current=null,n(u=>{let d=u;return i.current.forEach(m=>{d=m(d)}),d})})),i.current.push(c))}return[t,l]}function nG(){const{itemRef:e}=h.useContext(ko),t=h.useRef({});function n(r,i){const a=i&&typeof i=="object"&&Kl(i),l=r.join("_");return(t.current.name!==l||t.current.originRef!==a)&&(t.current.name=l,t.current.originRef=a,t.current.ref=gi(e(r),a)),t.current.ref}return n}const rG=e=>{const{formItemCls:t}=e;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${t}-control`]:{display:"flex"}}}},iG=Wu(["Form","item-item"],(e,{rootPrefixCls:t})=>{const n=oz(e,t);return rG(n)});var aG=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const oG=24,lG=e=>{const{prefixCls:t,status:n,labelCol:r,wrapperCol:i,children:a,errors:l,warnings:c,_internalItemRender:u,extra:d,help:m,fieldId:g,marginBottom:v,onErrorVisibleChanged:y,label:b}=e,x=`${t}-item`,S=h.useContext(ko),w=h.useMemo(()=>{let j=Object.assign({},i||S.wrapperCol||{});return b===null&&!r&&!i&&S.labelCol&&[void 0,"xs","sm","md","lg","xl","xxl"].forEach(z=>{const F=z?[z]:[],q=va(S.labelCol,F),Z=typeof q=="object"?q:{},H=va(j,F),U=typeof H=="object"?H:{};"span"in Z&&!("offset"in U)&&Z.span<oG&&(j=ma(j,[].concat(F,["offset"]),Z.span))}),j},[i,S.wrapperCol,S.labelCol,b,r]),$=te(`${x}-control`,w.className),O=h.useMemo(()=>{const{labelCol:j,wrapperCol:V}=S;return aG(S,["labelCol","wrapperCol"])},[S]),T=h.useRef(null),[_,R]=h.useState(0);on(()=>{d&&T.current?R(T.current.clientHeight):R(0)},[d]);const M=h.createElement("div",{className:`${x}-control-input`},h.createElement("div",{className:`${x}-control-input-content`},a)),P=h.useMemo(()=>({prefixCls:t,status:n}),[t,n]),N=v!==null||l.length||c.length?h.createElement(e1.Provider,{value:P},h.createElement(lz,{fieldId:g,errors:l,warnings:c,help:m,helpStatus:n,className:`${x}-explain-connected`,onVisibleChanged:y})):null,I={};g&&(I.id=`${g}_extra`);const B=d?h.createElement("div",Object.assign({},I,{className:`${x}-extra`,ref:T}),d):null,A=N||B?h.createElement("div",{className:`${x}-additional`,style:v?{minHeight:v+_}:{}},N,B):null,k=u&&u.mark==="pro_table_render"&&u.render?u.render(e,{input:M,errorList:N,extra:B}):h.createElement(h.Fragment,null,M,A);return h.createElement(ko.Provider,{value:O},h.createElement(O1,Object.assign({},w,{className:$}),k),h.createElement(iG,{prefixCls:t}))};var sG={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"},cG=function(t,n){return h.createElement(mn,Ue({},t,{ref:n,icon:sG}))},uG=h.forwardRef(cG),dG=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const fG=({prefixCls:e,label:t,htmlFor:n,labelCol:r,labelAlign:i,colon:a,required:l,requiredMark:c,tooltip:u,vertical:d})=>{var m;const[g]=Wl("Form"),{labelAlign:v,labelCol:y,labelWrap:b,colon:x}=h.useContext(ko);if(!t)return null;const S=r||y||{},w=i||v,$=`${e}-item-label`,O=te($,w==="left"&&`${$}-left`,S.className,{[`${$}-wrap`]:!!b});let T=t;const _=a===!0||x!==!1&&a!==!1;_&&!d&&typeof t=="string"&&t.trim()&&(T=t.replace(/[:|:]\s*$/,""));const M=HW(u);if(M){const{icon:k=h.createElement(uG,null)}=M,j=dG(M,["icon"]),V=h.createElement(Vr,Object.assign({},j),h.cloneElement(k,{className:`${e}-item-tooltip`,title:"",onClick:z=>{z.preventDefault()},tabIndex:null}));T=h.createElement(h.Fragment,null,T,V)}const P=c==="optional",N=typeof c=="function",I=c===!1;N?T=c(T,{required:!!l}):P&&!l&&(T=h.createElement(h.Fragment,null,T,h.createElement("span",{className:`${e}-item-optional`,title:""},(g==null?void 0:g.optional)||((m=Do.Form)===null||m===void 0?void 0:m.optional))));let B;I?B="hidden":(P||N)&&(B="optional");const A=te({[`${e}-item-required`]:l,[`${e}-item-required-mark-${B}`]:B,[`${e}-item-no-colon`]:!_});return h.createElement(O1,Object.assign({},S,{className:O}),h.createElement("label",{htmlFor:n,className:A,title:typeof t=="string"?t:""},T))},hG={success:Dp,warning:ph,error:Xu,validating:vh};function cz({children:e,errors:t,warnings:n,hasFeedback:r,validateStatus:i,prefixCls:a,meta:l,noStyle:c,name:u}){const d=`${a}-item`,{feedbackIcons:m}=h.useContext(ko),g=_A(t,n,l,null,!!r,i),{isFormItemInput:v,status:y,hasFeedback:b,feedbackIcon:x,name:S}=h.useContext(Ii),w=h.useMemo(()=>{var $;let O;if(r){const _=r!==!0&&r.icons||m,R=g&&(($=_==null?void 0:_({status:g,errors:t,warnings:n}))===null||$===void 0?void 0:$[g]),M=g?hG[g]:null;O=R!==!1&&M?h.createElement("span",{className:te(`${d}-feedback-icon`,`${d}-feedback-icon-${g}`)},R||h.createElement(M,null)):null}const T={status:g||"",errors:t,warnings:n,hasFeedback:!!r,feedbackIcon:O,isFormItemInput:!0,name:u};return c&&(T.status=(g??y)||"",T.isFormItemInput=v,T.hasFeedback=!!(r??b),T.feedbackIcon=r!==void 0?T.feedbackIcon:x,T.name=u??S),T},[g,r,c,v,y]);return h.createElement(Ii.Provider,{value:w},e)}var mG=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function gG(e){const{prefixCls:t,className:n,rootClassName:r,style:i,help:a,errors:l,warnings:c,validateStatus:u,meta:d,hasFeedback:m,hidden:g,children:v,fieldId:y,required:b,isRequired:x,onSubItemMetaChange:S,layout:w,name:$}=e,O=mG(e,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange","layout","name"]),T=`${t}-item`,{requiredMark:_,layout:R}=h.useContext(ko),M=w||R,P=M==="vertical",N=h.useRef(null),I=Xg(l),B=Xg(c),A=a!=null,k=!!(A||l.length||c.length),j=!!N.current&&Hp(N.current),[V,z]=h.useState(null);on(()=>{if(k&&N.current){const U=getComputedStyle(N.current);z(Number.parseInt(U.marginBottom,10))}},[k,j]);const F=U=>{U||z(null)},Z=((U=!1)=>{const K=U?I:d.errors,D=U?B:d.warnings;return _A(K,D,d,"",!!m,u)})(),H=te(T,n,r,{[`${T}-with-help`]:A||I.length||B.length,[`${T}-has-feedback`]:Z&&m,[`${T}-has-success`]:Z==="success",[`${T}-has-warning`]:Z==="warning",[`${T}-has-error`]:Z==="error",[`${T}-is-validating`]:Z==="validating",[`${T}-hidden`]:g,[`${T}-${M}`]:M});return h.createElement("div",{className:H,style:i,ref:N},h.createElement(YA,Object.assign({className:`${T}-row`},tr(O,["_internalItemRender","colon","dependencies","extra","fieldKey","getValueFromEvent","getValueProps","htmlFor","id","initialValue","isListField","label","labelAlign","labelCol","labelWrap","messageVariables","name","normalize","noStyle","preserve","requiredMark","rules","shouldUpdate","trigger","tooltip","validateFirst","validateTrigger","valuePropName","wrapperCol","validateDebounce"])),h.createElement(fG,Object.assign({htmlFor:y},e,{requiredMark:_,required:b??x,prefixCls:t,vertical:P})),h.createElement(lG,Object.assign({},e,d,{errors:I,warnings:B,prefixCls:t,status:Z,help:a,marginBottom:V,onErrorVisibleChanged:F}),h.createElement(bP.Provider,{value:S},h.createElement(cz,{prefixCls:t,meta:d,errors:d.errors,warnings:d.warnings,hasFeedback:m,validateStatus:Z,name:$},v)))),!!V&&h.createElement("div",{className:`${T}-margin-offset`,style:{marginBottom:-V}}))}const pG="__SPLIT__";function vG(e,t){const n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every(i=>{const a=e[i],l=t[i];return a===l||typeof a=="function"||typeof l=="function"})}const yG=h.memo(({children:e})=>e,(e,t)=>vG(e.control,t.control)&&e.update===t.update&&e.childProps.length===t.childProps.length&&e.childProps.every((n,r)=>n===t.childProps[r]));function MT(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function bG(e){const{name:t,noStyle:n,className:r,dependencies:i,prefixCls:a,shouldUpdate:l,rules:c,children:u,required:d,label:m,messageVariables:g,trigger:v="onChange",validateTrigger:y,hidden:b,help:x,layout:S}=e,{getPrefixCls:w}=h.useContext(Tt),{name:$}=h.useContext(ko),O=eG(u),T=typeof O=="function",_=h.useContext(bP),{validateTrigger:R}=h.useContext(Fs),M=y!==void 0?y:R,P=t!=null,N=w("form",a),I=Yi(N),[B,A,k]=R1(N,I);mh();const j=h.useContext(Lf),V=h.useRef(null),[z,F]=tG({}),[q,Z]=Bs(()=>MT()),H=ie=>{const oe=j==null?void 0:j.getKey(ie.name);if(Z(ie.destroy?MT():ie,!0),n&&x!==!1&&_){let le=ie.name;if(ie.destroy)le=V.current||le;else if(oe!==void 0){const[Ce,ce]=oe;le=[Ce].concat(qe(ce)),V.current=le}_(ie,le)}},U=(ie,oe)=>{F(le=>{const Ce=Object.assign({},le),de=[].concat(qe(ie.name.slice(0,-1)),qe(oe)).join(pG);return ie.destroy?delete Ce[de]:Ce[de]=ie,Ce})},[K,D]=h.useMemo(()=>{const ie=qe(q.errors),oe=qe(q.warnings);return Object.values(z).forEach(le=>{ie.push.apply(ie,qe(le.errors||[])),oe.push.apply(oe,qe(le.warnings||[]))}),[ie,oe]},[z,q.errors,q.warnings]),X=nG();function Q(ie,oe,le){return n&&!b?h.createElement(cz,{prefixCls:N,hasFeedback:e.hasFeedback,validateStatus:e.validateStatus,meta:q,errors:K,warnings:D,noStyle:!0,name:t},ie):h.createElement(gG,Object.assign({key:"row"},e,{className:te(r,k,I,A),prefixCls:N,fieldId:oe,isRequired:le,errors:K,warnings:D,meta:q,onSubItemMetaChange:U,layout:S,name:t}),ie)}if(!P&&!T&&!i)return B(Q(O));let Y={};return typeof m=="string"?Y.label=m:t&&(Y.label=String(t)),g&&(Y=Object.assign(Object.assign({},Y),g)),B(h.createElement(ZC,Object.assign({},e,{messageVariables:Y,trigger:v,validateTrigger:M,onMetaChange:H}),(ie,oe,le)=>{const Ce=yf(t).length&&oe?oe.name:[],ce=TA(Ce,$),de=d!==void 0?d:!!(c!=null&&c.some(ge=>{if(ge&&typeof ge=="object"&&ge.required&&!ge.warningOnly)return!0;if(typeof ge=="function"){const fe=ge(le);return(fe==null?void 0:fe.required)&&!(fe!=null&&fe.warningOnly)}return!1})),ye=Object.assign({},ie);let ve=null;if(Array.isArray(O)&&P)ve=O;else if(!(T&&(!(l||i)||P))){if(!(i&&!T&&!P))if(h.isValidElement(O)){const ge=Object.assign(Object.assign({},O.props),ye);if(ge.id||(ge.id=ce),x||K.length>0||D.length>0||e.extra){const Te=[];(x||K.length>0)&&Te.push(`${ce}_help`),e.extra&&Te.push(`${ce}_extra`),ge["aria-describedby"]=Te.join(" ")}K.length>0&&(ge["aria-invalid"]="true"),de&&(ge["aria-required"]="true"),Ho(O)&&(ge.ref=X(Ce,O)),new Set([].concat(qe(yf(v)),qe(yf(M)))).forEach(Te=>{ge[Te]=(...je)=>{var ze,Oe,De,Ne,be;(De=ye[Te])===null||De===void 0||(ze=De).call.apply(ze,[ye].concat(je)),(be=(Ne=O.props)[Te])===null||be===void 0||(Oe=be).call.apply(Oe,[Ne].concat(je))}});const we=[ge["aria-required"],ge["aria-invalid"],ge["aria-describedby"]];ve=h.createElement(yG,{control:ye,update:O,childProps:we},oi(O,ge))}else T&&(l||i)&&!P?ve=O(le):ve=O}return Q(ve,ce,de)}))}const uz=bG;uz.useStatus=sz;var SG=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const xG=e=>{var{prefixCls:t,children:n}=e,r=SG(e,["prefixCls","children"]);const{getPrefixCls:i}=h.useContext(Tt),a=i("form",t),l=h.useMemo(()=>({prefixCls:a,status:"error"}),[a]);return h.createElement(gP,Object.assign({},r),(c,u,d)=>h.createElement(e1.Provider,{value:l},n(c.map(m=>Object.assign(Object.assign({},m),{fieldKey:m.key})),u,{errors:d.errors,warnings:d.warnings})))};function CG(){const{form:e}=h.useContext(ko);return e}const za=JW;za.Item=uz;za.List=xG;za.ErrorList=lz;za.useForm=NA;za.useFormInstance=CG;za.useWatch=yP;za.Provider=SP;za.create=()=>{};var wG={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"},EG=function(t,n){return h.createElement(mn,Ue({},t,{ref:n,icon:wG}))},$G=h.forwardRef(EG);const OG=e=>{const{getPrefixCls:t,direction:n}=h.useContext(Tt),{prefixCls:r,className:i}=e,a=t("input-group",r),l=t("input"),[c,u,d]=zA(l),m=te(a,d,{[`${a}-lg`]:e.size==="large",[`${a}-sm`]:e.size==="small",[`${a}-compact`]:e.compact,[`${a}-rtl`]:n==="rtl"},u,i),g=h.useContext(Ii),v=h.useMemo(()=>Object.assign(Object.assign({},g),{isFormItemInput:!1}),[g]);return c(h.createElement("span",{className:m,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},h.createElement(Ii.Provider,{value:v},e.children)))},RG=e=>{const{componentCls:t,paddingXS:n}=e;return{[t]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:n,[`${t}-input-wrapper`]:{position:"relative",[`${t}-mask-icon`]:{position:"absolute",zIndex:"1",top:"50%",right:"50%",transform:"translate(50%, -50%)",pointerEvents:"none"},[`${t}-mask-input`]:{color:"transparent",caretColor:e.colorText},[`${t}-mask-input[type=number]::-webkit-inner-spin-button`]:{"-webkit-appearance":"none",margin:0},[`${t}-mask-input[type=number]`]:{"-moz-appearance":"textfield"}},"&-rtl":{direction:"rtl"},[`${t}-input`]:{textAlign:"center",paddingInline:e.paddingXXS},[`&${t}-sm ${t}-input`]:{paddingInline:e.calc(e.paddingXXS).div(2).equal()},[`&${t}-lg ${t}-input`]:{paddingInline:e.paddingXS}}}},TG=Nn(["Input","OTP"],e=>{const t=sn(e,wh(e));return RG(t)},Eh);var _G=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const NG=h.forwardRef((e,t)=>{const{className:n,value:r,onChange:i,onActiveChange:a,index:l,mask:c}=e,u=_G(e,["className","value","onChange","onActiveChange","index","mask"]),{getPrefixCls:d}=h.useContext(Tt),m=d("otp"),g=typeof c=="string"?c:r,v=h.useRef(null);h.useImperativeHandle(t,()=>v.current);const y=S=>{i(l,S.target.value)},b=()=>{Tn(()=>{var S;const w=(S=v.current)===null||S===void 0?void 0:S.input;document.activeElement===w&&w&&w.select()})},x=S=>{const{key:w,ctrlKey:$,metaKey:O}=S;w==="ArrowLeft"?a(l-1):w==="ArrowRight"?a(l+1):w==="z"&&($||O)?S.preventDefault():w==="Backspace"&&!r&&a(l-1),b()};return h.createElement("span",{className:`${m}-input-wrapper`,role:"presentation"},c&&r!==""&&r!==void 0&&h.createElement("span",{className:`${m}-mask-icon`,"aria-hidden":"true"},g),h.createElement(uv,Object.assign({"aria-label":`OTP Input ${l+1}`,type:c===!0?"password":"text"},u,{ref:v,value:r,onInput:y,onFocus:b,onKeyDown:x,onMouseDown:b,onMouseUp:b,className:te(n,{[`${m}-mask-input`]:c})})))});var IG=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function Ym(e){return(e||"").split("")}const MG=e=>{const{index:t,prefixCls:n,separator:r}=e,i=typeof r=="function"?r(t):r;return i?h.createElement("span",{className:`${n}-separator`},i):null},PG=h.forwardRef((e,t)=>{const{prefixCls:n,length:r=6,size:i,defaultValue:a,value:l,onChange:c,formatter:u,separator:d,variant:m,disabled:g,status:v,autoFocus:y,mask:b,type:x,onInput:S,inputMode:w}=e,$=IG(e,["prefixCls","length","size","defaultValue","value","onChange","formatter","separator","variant","disabled","status","autoFocus","mask","type","onInput","inputMode"]),{getPrefixCls:O,direction:T}=h.useContext(Tt),_=O("otp",n),R=La($,{aria:!0,data:!0,attr:!0}),[M,P,N]=TG(_),I=Sa(X=>i??X),B=h.useContext(Ii),A=tv(B.status,v),k=h.useMemo(()=>Object.assign(Object.assign({},B),{status:A,hasFeedback:!1,feedbackIcon:null}),[B,A]),j=h.useRef(null),V=h.useRef({});h.useImperativeHandle(t,()=>({focus:()=>{var X;(X=V.current[0])===null||X===void 0||X.focus()},blur:()=>{var X;for(let Q=0;Q<r;Q+=1)(X=V.current[Q])===null||X===void 0||X.blur()},nativeElement:j.current}));const z=X=>u?u(X):X,[F,q]=h.useState(()=>Ym(z(a||"")));h.useEffect(()=>{l!==void 0&&q(Ym(l))},[l]);const Z=cr(X=>{q(X),S&&S(X),c&&X.length===r&&X.every(Q=>Q)&&X.some((Q,Y)=>F[Y]!==Q)&&c(X.join(""))}),H=cr((X,Q)=>{let Y=qe(F);for(let oe=0;oe<X;oe+=1)Y[oe]||(Y[oe]="");Q.length<=1?Y[X]=Q:Y=Y.slice(0,X).concat(Ym(Q)),Y=Y.slice(0,r);for(let oe=Y.length-1;oe>=0&&!Y[oe];oe-=1)Y.pop();const ie=z(Y.map(oe=>oe||" ").join(""));return Y=Ym(ie).map((oe,le)=>oe===" "&&!Y[le]?Y[le]:oe),Y}),U=(X,Q)=>{var Y;const ie=H(X,Q),oe=Math.min(X+Q.length,r-1);oe!==X&&ie[X]!==void 0&&((Y=V.current[oe])===null||Y===void 0||Y.focus()),Z(ie)},K=X=>{var Q;(Q=V.current[X])===null||Q===void 0||Q.focus()},D={variant:m,disabled:g,status:A,mask:b,type:x,inputMode:w};return M(h.createElement("div",Object.assign({},R,{ref:j,className:te(_,{[`${_}-sm`]:I==="small",[`${_}-lg`]:I==="large",[`${_}-rtl`]:T==="rtl"},N,P),role:"group"}),h.createElement(Ii.Provider,{value:k},Array.from({length:r}).map((X,Q)=>{const Y=`otp-${Q}`,ie=F[Q]||"";return h.createElement(h.Fragment,{key:Y},h.createElement(NG,Object.assign({ref:oe=>{V.current[Q]=oe},index:Q,size:I,htmlSize:1,className:`${_}-input`,onChange:U,value:ie,onActiveChange:K,autoFocus:Q===0&&y},D)),Q<r-1&&h.createElement(MG,{separator:d,index:Q,prefixCls:_}))}))))});var AG={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"},zG=function(t,n){return h.createElement(mn,Ue({},t,{ref:n,icon:AG}))},jG=h.forwardRef(zG),DG=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const LG=e=>e?h.createElement($G,null):h.createElement(jG,null),kG={click:"onClick",hover:"onMouseOver"},BG=h.forwardRef((e,t)=>{const{disabled:n,action:r="click",visibilityToggle:i=!0,iconRender:a=LG,suffix:l}=e,c=h.useContext(Da),u=n??c,d=typeof i=="object"&&i.visible!==void 0,[m,g]=h.useState(()=>d?i.visible:!1),v=h.useRef(null);h.useEffect(()=>{d&&g(i.visible)},[d,i]);const y=nz(v),b=()=>{var B;if(u)return;m&&y();const A=!m;g(A),typeof i=="object"&&((B=i.onVisibleChange)===null||B===void 0||B.call(i,A))},x=B=>{const A=kG[r]||"",k=a(m),j={[A]:b,className:`${B}-icon`,key:"passwordIcon",onMouseDown:V=>{V.preventDefault()},onMouseUp:V=>{V.preventDefault()}};return h.cloneElement(h.isValidElement(k)?k:h.createElement("span",null,k),j)},{className:S,prefixCls:w,inputPrefixCls:$,size:O}=e,T=DG(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:_}=h.useContext(Tt),R=_("input",$),M=_("input-password",w),P=i&&x(M),N=te(M,S,{[`${M}-${O}`]:!!O}),I=Object.assign(Object.assign({},tr(T,["suffix","iconRender","visibilityToggle"])),{type:m?"text":"password",className:N,prefixCls:R,suffix:h.createElement(h.Fragment,null,P,l)});return O&&(I.size=O),h.createElement(uv,Object.assign({ref:gi(t,v)},I))});var HG=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const FG=h.forwardRef((e,t)=>{const{prefixCls:n,inputPrefixCls:r,className:i,size:a,suffix:l,enterButton:c=!1,addonAfter:u,loading:d,disabled:m,onSearch:g,onChange:v,onCompositionStart:y,onCompositionEnd:b,variant:x,onPressEnter:S}=e,w=HG(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd","variant","onPressEnter"]),{getPrefixCls:$,direction:O}=h.useContext(Tt),T=h.useRef(!1),_=$("input-search",n),R=$("input",r),{compactSize:M}=rc(_,O),P=Sa(D=>{var X;return(X=a??M)!==null&&X!==void 0?X:D}),N=h.useRef(null),I=D=>{D!=null&&D.target&&D.type==="click"&&g&&g(D.target.value,D,{source:"clear"}),v==null||v(D)},B=D=>{var X;document.activeElement===((X=N.current)===null||X===void 0?void 0:X.input)&&D.preventDefault()},A=D=>{var X,Q;g&&g((Q=(X=N.current)===null||X===void 0?void 0:X.input)===null||Q===void 0?void 0:Q.value,D,{source:"input"})},k=D=>{T.current||d||(S==null||S(D),A(D))},j=typeof c=="boolean"?h.createElement(XP,null):null,V=`${_}-button`;let z;const F=c||{},q=F.type&&F.type.__ANT_BUTTON===!0;q||F.type==="button"?z=oi(F,Object.assign({onMouseDown:B,onClick:D=>{var X,Q;(Q=(X=F==null?void 0:F.props)===null||X===void 0?void 0:X.onClick)===null||Q===void 0||Q.call(X,D),A(D)},key:"enterButton"},q?{className:V,size:P}:{})):z=h.createElement(Er,{className:V,color:c?"primary":"default",size:P,disabled:m,key:"enterButton",onMouseDown:B,onClick:A,loading:d,icon:j,variant:x==="borderless"||x==="filled"||x==="underlined"?"text":c?"solid":void 0},c),u&&(z=[z,oi(u,{key:"addonAfter"})]);const Z=te(_,{[`${_}-rtl`]:O==="rtl",[`${_}-${P}`]:!!P,[`${_}-with-button`]:!!c},i),H=D=>{T.current=!0,y==null||y(D)},U=D=>{T.current=!1,b==null||b(D)},K=Object.assign(Object.assign({},w),{className:Z,prefixCls:R,type:"search",size:P,variant:x,onPressEnter:k,onCompositionStart:H,onCompositionEnd:U,addonAfter:z,suffix:l,onChange:I,disabled:m,_skipAddonWarning:!0});return h.createElement(uv,Object.assign({ref:gi(N,t)},K))});var VG=`
|
|
282
|
-
min-height:0 !important;
|
|
283
|
-
max-height:none !important;
|
|
284
|
-
height:0 !important;
|
|
285
|
-
visibility:hidden !important;
|
|
286
|
-
overflow:hidden !important;
|
|
287
|
-
position:absolute !important;
|
|
288
|
-
z-index:-1000 !important;
|
|
289
|
-
top:0 !important;
|
|
290
|
-
right:0 !important;
|
|
291
|
-
pointer-events: none !important;
|
|
292
|
-
`,UG=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"],lb={},Ui;function qG(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&lb[n])return lb[n];var r=window.getComputedStyle(e),i=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),a=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),l=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),c=UG.map(function(d){return"".concat(d,":").concat(r.getPropertyValue(d))}).join(";"),u={sizingStyle:c,paddingSize:a,borderSize:l,boxSizing:i};return t&&n&&(lb[n]=u),u}function KG(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;Ui||(Ui=document.createElement("textarea"),Ui.setAttribute("tab-index","-1"),Ui.setAttribute("aria-hidden","true"),Ui.setAttribute("name","hiddenTextarea"),document.body.appendChild(Ui)),e.getAttribute("wrap")?Ui.setAttribute("wrap",e.getAttribute("wrap")):Ui.removeAttribute("wrap");var i=qG(e,t),a=i.paddingSize,l=i.borderSize,c=i.boxSizing,u=i.sizingStyle;Ui.setAttribute("style","".concat(u,";").concat(VG)),Ui.value=e.value||e.placeholder||"";var d=void 0,m=void 0,g,v=Ui.scrollHeight;if(c==="border-box"?v+=l:c==="content-box"&&(v-=a),n!==null||r!==null){Ui.value=" ";var y=Ui.scrollHeight-a;n!==null&&(d=y*n,c==="border-box"&&(d=d+a+l),v=Math.max(d,v)),r!==null&&(m=y*r,c==="border-box"&&(m=m+a+l),g=v>m?"":"hidden",v=Math.min(m,v))}var b={height:v,overflowY:g,resize:"none"};return d&&(b.minHeight=d),m&&(b.maxHeight=m),b}var WG=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],sb=0,cb=1,ub=2,GG=h.forwardRef(function(e,t){var n=e,r=n.prefixCls,i=n.defaultValue,a=n.value,l=n.autoSize,c=n.onResize,u=n.className,d=n.style,m=n.disabled,g=n.onChange;n.onInternalAutoSize;var v=jt(n,WG),y=vr(i,{value:a,postState:function(D){return D??""}}),b=me(y,2),x=b[0],S=b[1],w=function(D){S(D.target.value),g==null||g(D)},$=h.useRef();h.useImperativeHandle(t,function(){return{textArea:$.current}});var O=h.useMemo(function(){return l&&pt(l)==="object"?[l.minRows,l.maxRows]:[]},[l]),T=me(O,2),_=T[0],R=T[1],M=!!l,P=h.useState(ub),N=me(P,2),I=N[0],B=N[1],A=h.useState(),k=me(A,2),j=k[0],V=k[1],z=function(){B(sb)};on(function(){M&&z()},[a,_,R,M]),on(function(){if(I===sb)B(cb);else if(I===cb){var K=KG($.current,!1,_,R);B(ub),V(K)}},[I]);var F=h.useRef(),q=function(){Tn.cancel(F.current)},Z=function(D){I===ub&&(c==null||c(D),l&&(q(),F.current=Tn(function(){z()})))};h.useEffect(function(){return q},[]);var H=M?j:null,U=J(J({},d),H);return(I===sb||I===cb)&&(U.overflowY="hidden",U.overflowX="hidden"),h.createElement(ya,{onResize:Z,disabled:!(l||c)},h.createElement("textarea",Ue({},v,{ref:$,style:U,className:te(r,u,G({},"".concat(r,"-disabled"),m)),disabled:m,value:x,onChange:w})))}),XG=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","showCount","count","className","style","disabled","hidden","classNames","styles","onResize","onClear","onPressEnter","readOnly","autoSize","onKeyDown"],QG=re.forwardRef(function(e,t){var n,r=e.defaultValue,i=e.value,a=e.onFocus,l=e.onBlur,c=e.onChange,u=e.allowClear,d=e.maxLength,m=e.onCompositionStart,g=e.onCompositionEnd,v=e.suffix,y=e.prefixCls,b=y===void 0?"rc-textarea":y,x=e.showCount,S=e.count,w=e.className,$=e.style,O=e.disabled,T=e.hidden,_=e.classNames,R=e.styles,M=e.onResize,P=e.onClear,N=e.onPressEnter,I=e.readOnly,B=e.autoSize,A=e.onKeyDown,k=jt(e,XG),j=vr(r,{value:i,defaultValue:r}),V=me(j,2),z=V[0],F=V[1],q=z==null?"":String(z),Z=re.useState(!1),H=me(Z,2),U=H[0],K=H[1],D=re.useRef(!1),X=re.useState(null),Q=me(X,2),Y=Q[0],ie=Q[1],oe=h.useRef(null),le=h.useRef(null),Ce=function(){var Le;return(Le=le.current)===null||Le===void 0?void 0:Le.textArea},ce=function(){Ce().focus()};h.useImperativeHandle(t,function(){var Ge;return{resizableTextArea:le.current,focus:ce,blur:function(){Ce().blur()},nativeElement:((Ge=oe.current)===null||Ge===void 0?void 0:Ge.nativeElement)||Ce()}}),h.useEffect(function(){K(function(Ge){return!O&&Ge})},[O]);var de=re.useState(null),ye=me(de,2),ve=ye[0],ge=ye[1];re.useEffect(function(){if(ve){var Ge;(Ge=Ce()).setSelectionRange.apply(Ge,qe(ve))}},[ve]);var fe=ez(S,x),we=(n=fe.max)!==null&&n!==void 0?n:d,Te=Number(we)>0,je=fe.strategy(q),ze=!!we&&je>we,Oe=function(Le,Ze){var _e=Ze;!D.current&&fe.exceedFormatter&&fe.max&&fe.strategy(Ze)>fe.max&&(_e=fe.exceedFormatter(Ze,{max:fe.max}),Ze!==_e&&ge([Ce().selectionStart||0,Ce().selectionEnd||0])),F(_e),Gg(Le.currentTarget,Le,c,_e)},De=function(Le){D.current=!0,m==null||m(Le)},Ne=function(Le){D.current=!1,Oe(Le,Le.currentTarget.value),g==null||g(Le)},be=function(Le){Oe(Le,Le.target.value)},Ye=function(Le){Le.key==="Enter"&&N&&N(Le),A==null||A(Le)},he=function(Le){K(!0),a==null||a(Le)},$e=function(Le){K(!1),l==null||l(Le)},Me=function(Le){F(""),ce(),Gg(Ce(),Le,c)},Ae=v,Xe;fe.show&&(fe.showFormatter?Xe=fe.showFormatter({value:q,count:je,maxLength:we}):Xe="".concat(je).concat(Te?" / ".concat(we):""),Ae=re.createElement(re.Fragment,null,Ae,re.createElement("span",{className:te("".concat(b,"-data-count"),_==null?void 0:_.count),style:R==null?void 0:R.count},Xe)));var Fe=function(Le){var Ze;M==null||M(Le),(Ze=Ce())!==null&&Ze!==void 0&&Ze.style.height&&ie(!0)},Ie=!B&&!x&&!u;return re.createElement(JA,{ref:oe,value:q,allowClear:u,handleReset:Me,suffix:Ae,prefixCls:b,classNames:J(J({},_),{},{affixWrapper:te(_==null?void 0:_.affixWrapper,G(G({},"".concat(b,"-show-count"),x),"".concat(b,"-textarea-allow-clear"),u))}),disabled:O,focused:U,className:te(w,ze&&"".concat(b,"-out-of-range")),style:J(J({},$),Y&&!Ie?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Xe=="string"?Xe:void 0}},hidden:T,readOnly:I,onClear:P},re.createElement(GG,Ue({},k,{autoSize:B,maxLength:d,onKeyDown:Ye,onChange:be,onFocus:he,onBlur:$e,onCompositionStart:De,onCompositionEnd:Ne,className:te(_==null?void 0:_.textarea),style:J(J({},R==null?void 0:R.textarea),{},{resize:$==null?void 0:$.resize}),disabled:O,prefixCls:b,onResize:Fe,ref:le,readOnly:I})))});const YG=e=>{const{componentCls:t,paddingLG:n}=e,r=`${t}-textarea`;return{[`textarea${t}`]:{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}`,resize:"vertical",[`&${t}-mouse-active`]:{transition:`all ${e.motionDurationSlow}, height 0s, width 0s`}},[`${t}-textarea-affix-wrapper-resize-dirty`]:{width:"auto"},[r]:{position:"relative","&-show-count":{[`${t}-data-count`]:{position:"absolute",bottom:e.calc(e.fontSize).mul(e.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:e.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},[`
|
|
293
|
-
&-allow-clear > ${t},
|
|
294
|
-
&-affix-wrapper${r}-has-feedback ${t}
|
|
295
|
-
`]:{paddingInlineEnd:n},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,[`> textarea${t}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent",minHeight:e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),"&:focus":{boxShadow:"none !important"}},[`${t}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${t}-clear-icon`]:{position:"absolute",insetInlineEnd:e.paddingInline,insetBlockStart:e.paddingXS},[`${r}-suffix`]:{position:"absolute",top:0,insetInlineEnd:e.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}},[`&-affix-wrapper${t}-affix-wrapper-rtl`]:{[`${t}-suffix`]:{[`${t}-data-count`]:{direction:"ltr",insetInlineStart:0}}},[`&-affix-wrapper${t}-affix-wrapper-sm`]:{[`${t}-suffix`]:{[`${t}-clear-icon`]:{insetInlineEnd:e.paddingInlineSM}}}}}},ZG=Nn(["Input","TextArea"],e=>{const t=sn(e,wh(e));return YG(t)},Eh,{resetFont:!1});var JG=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const dz=h.forwardRef((e,t)=>{var n;const{prefixCls:r,bordered:i=!0,size:a,disabled:l,status:c,allowClear:u,classNames:d,rootClassName:m,className:g,style:v,styles:y,variant:b,showCount:x,onMouseDown:S,onResize:w}=e,$=JG(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant","showCount","onMouseDown","onResize"]),{getPrefixCls:O,direction:T,allowClear:_,autoComplete:R,className:M,style:P,classNames:N,styles:I}=Yr("textArea"),B=h.useContext(Da),A=l??B,{status:k,hasFeedback:j,feedbackIcon:V}=h.useContext(Ii),z=tv(k,c),F=h.useRef(null);h.useImperativeHandle(t,()=>{var fe;return{resizableTextArea:(fe=F.current)===null||fe===void 0?void 0:fe.resizableTextArea,focus:we=>{var Te,je;ZA((je=(Te=F.current)===null||Te===void 0?void 0:Te.resizableTextArea)===null||je===void 0?void 0:je.textArea,we)},blur:()=>{var we;return(we=F.current)===null||we===void 0?void 0:we.blur()}}});const q=O("input",r),Z=Yi(q),[H,U,K]=AA(q,m),[D]=ZG(q,Z),{compactSize:X,compactItemClassnames:Q}=rc(q,T),Y=Sa(fe=>{var we;return(we=a??X)!==null&&we!==void 0?we:fe}),[ie,oe]=nv("textArea",b,i),le=tz(u??_),[Ce,ce]=h.useState(!1),[de,ye]=h.useState(!1),ve=fe=>{ce(!0),S==null||S(fe);const we=()=>{ce(!1),document.removeEventListener("mouseup",we)};document.addEventListener("mouseup",we)},ge=fe=>{var we,Te;if(w==null||w(fe),Ce&&typeof getComputedStyle=="function"){const je=(Te=(we=F.current)===null||we===void 0?void 0:we.nativeElement)===null||Te===void 0?void 0:Te.querySelector("textarea");je&&getComputedStyle(je).resize==="both"&&ye(!0)}};return H(D(h.createElement(QG,Object.assign({autoComplete:R},$,{style:Object.assign(Object.assign({},P),v),styles:Object.assign(Object.assign({},I),y),disabled:A,allowClear:le,className:te(K,Z,g,m,Q,M,de&&`${q}-textarea-affix-wrapper-resize-dirty`),classNames:Object.assign(Object.assign(Object.assign({},d),N),{textarea:te({[`${q}-sm`]:Y==="small",[`${q}-lg`]:Y==="large"},U,d==null?void 0:d.textarea,N.textarea,Ce&&`${q}-mouse-active`),variant:te({[`${q}-${ie}`]:oe},Ug(q,z)),affixWrapper:te(`${q}-textarea-affix-wrapper`,{[`${q}-affix-wrapper-rtl`]:T==="rtl",[`${q}-affix-wrapper-sm`]:Y==="small",[`${q}-affix-wrapper-lg`]:Y==="large",[`${q}-textarea-show-count`]:x||((n=e.count)===null||n===void 0?void 0:n.show)},U)}),prefixCls:q,suffix:j&&h.createElement("span",{className:`${q}-textarea-suffix`},V),showCount:x,ref:F,onResize:ge,onMouseDown:ve}))))}),ic=uv;ic.Group=OG;ic.Search=FG;ic.TextArea=dz;ic.Password=BG;ic.OTP=PG;function eX(e,t,n){return typeof n=="boolean"?n:e.length?!0:hi(t).some(i=>i.type===EA)}var fz=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function dv({suffixCls:e,tagName:t,displayName:n}){return r=>h.forwardRef((a,l)=>h.createElement(r,Object.assign({ref:l,suffixCls:e,tagName:t},a)))}const T1=h.forwardRef((e,t)=>{const{prefixCls:n,suffixCls:r,className:i,tagName:a}=e,l=fz(e,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:c}=h.useContext(Tt),u=c("layout",n),[d,m,g]=wA(u),v=r?`${u}-${r}`:u;return d(h.createElement(a,Object.assign({className:te(n||v,i,m,g),ref:t},l)))}),tX=h.forwardRef((e,t)=>{const{direction:n}=h.useContext(Tt),[r,i]=h.useState([]),{prefixCls:a,className:l,rootClassName:c,children:u,hasSider:d,tagName:m,style:g}=e,v=fz(e,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),y=tr(v,["suffixCls"]),{getPrefixCls:b,className:x,style:S}=Yr("layout"),w=b("layout",a),$=eX(r,u,d),[O,T,_]=wA(w),R=te(w,{[`${w}-has-sider`]:$,[`${w}-rtl`]:n==="rtl"},x,l,c,T,_),M=h.useMemo(()=>({siderHook:{addSider:P=>{i(N=>[].concat(qe(N),[P]))},removeSider:P=>{i(N=>N.filter(I=>I!==P))}}}),[]);return O(h.createElement(SA.Provider,{value:M},h.createElement(m,Object.assign({ref:t,className:R,style:Object.assign(Object.assign({},S),g)},y),u)))}),nX=dv({tagName:"div",displayName:"Layout"})(tX),rX=dv({suffixCls:"header",tagName:"header",displayName:"Header"})(T1),iX=dv({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(T1),aX=dv({suffixCls:"content",tagName:"main",displayName:"Content"})(T1),no=nX;no.Header=rX;no.Footer=iX;no.Content=aX;no.Sider=EA;no._InternalSiderContext=ov;var oX={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z"}}]},name:"double-left",theme:"outlined"},lX=function(t,n){return h.createElement(mn,Ue({},t,{ref:n,icon:oX}))},PT=h.forwardRef(lX),sX={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"}}]},name:"double-right",theme:"outlined"},cX=function(t,n){return h.createElement(mn,Ue({},t,{ref:n,icon:sX}))},AT=h.forwardRef(cX),uX={items_per_page:"条/页",jump_to:"跳至",jump_to_confirm:"确定",page:"页",prev_page:"上一页",next_page:"下一页",prev_5:"向前 5 页",next_5:"向后 5 页",prev_3:"向前 3 页",next_3:"向后 3 页",page_size:"页码"},dX=[10,20,50,100],fX=function(t){var n=t.pageSizeOptions,r=n===void 0?dX:n,i=t.locale,a=t.changeSize,l=t.pageSize,c=t.goButton,u=t.quickGo,d=t.rootPrefixCls,m=t.disabled,g=t.buildOptionText,v=t.showSizeChanger,y=t.sizeChangerRender,b=re.useState(""),x=me(b,2),S=x[0],w=x[1],$=function(){return!S||Number.isNaN(S)?void 0:Number(S)},O=typeof g=="function"?g:function(A){return"".concat(A," ").concat(i.items_per_page)},T=function(k){w(k.target.value)},_=function(k){c||S===""||(w(""),!(k.relatedTarget&&(k.relatedTarget.className.indexOf("".concat(d,"-item-link"))>=0||k.relatedTarget.className.indexOf("".concat(d,"-item"))>=0))&&(u==null||u($())))},R=function(k){S!==""&&(k.keyCode===ot.ENTER||k.type==="click")&&(w(""),u==null||u($()))},M=function(){return r.some(function(k){return k.toString()===l.toString()})?r:r.concat([l]).sort(function(k,j){var V=Number.isNaN(Number(k))?0:Number(k),z=Number.isNaN(Number(j))?0:Number(j);return V-z})},P="".concat(d,"-options");if(!v&&!u)return null;var N=null,I=null,B=null;return v&&y&&(N=y({disabled:m,size:l,onSizeChange:function(k){a==null||a(Number(k))},"aria-label":i.page_size,className:"".concat(P,"-size-changer"),options:M().map(function(A){return{label:O(A),value:A}})})),u&&(c&&(B=typeof c=="boolean"?re.createElement("button",{type:"button",onClick:R,onKeyUp:R,disabled:m,className:"".concat(P,"-quick-jumper-button")},i.jump_to_confirm):re.createElement("span",{onClick:R,onKeyUp:R},c)),I=re.createElement("div",{className:"".concat(P,"-quick-jumper")},i.jump_to,re.createElement("input",{disabled:m,type:"text",value:S,onChange:T,onKeyUp:R,onBlur:_,"aria-label":i.page}),i.page,B)),re.createElement("li",{className:P},N,I)},Zd=function(t){var n=t.rootPrefixCls,r=t.page,i=t.active,a=t.className,l=t.showTitle,c=t.onClick,u=t.onKeyPress,d=t.itemRender,m="".concat(n,"-item"),g=te(m,"".concat(m,"-").concat(r),G(G({},"".concat(m,"-active"),i),"".concat(m,"-disabled"),!r),a),v=function(){c(r)},y=function(S){u(S,c,r)},b=d(r,"page",re.createElement("a",{rel:"nofollow"},r));return b?re.createElement("li",{title:l?String(r):null,className:g,onClick:v,onKeyDown:y,tabIndex:0},b):null},hX=function(t,n,r){return r};function zT(){}function jT(e){var t=Number(e);return typeof t=="number"&&!Number.isNaN(t)&&isFinite(t)&&Math.floor(t)===t}function ms(e,t,n){var r=typeof e>"u"?t:e;return Math.floor((n-1)/r)+1}var mX=function(t){var n=t.prefixCls,r=n===void 0?"rc-pagination":n,i=t.selectPrefixCls,a=i===void 0?"rc-select":i,l=t.className,c=t.current,u=t.defaultCurrent,d=u===void 0?1:u,m=t.total,g=m===void 0?0:m,v=t.pageSize,y=t.defaultPageSize,b=y===void 0?10:y,x=t.onChange,S=x===void 0?zT:x,w=t.hideOnSinglePage,$=t.align,O=t.showPrevNextJumpers,T=O===void 0?!0:O,_=t.showQuickJumper,R=t.showLessItems,M=t.showTitle,P=M===void 0?!0:M,N=t.onShowSizeChange,I=N===void 0?zT:N,B=t.locale,A=B===void 0?uX:B,k=t.style,j=t.totalBoundaryShowSizeChanger,V=j===void 0?50:j,z=t.disabled,F=t.simple,q=t.showTotal,Z=t.showSizeChanger,H=Z===void 0?g>V:Z,U=t.sizeChangerRender,K=t.pageSizeOptions,D=t.itemRender,X=D===void 0?hX:D,Q=t.jumpPrevIcon,Y=t.jumpNextIcon,ie=t.prevIcon,oe=t.nextIcon,le=re.useRef(null),Ce=vr(10,{value:v,defaultValue:b}),ce=me(Ce,2),de=ce[0],ye=ce[1],ve=vr(1,{value:c,defaultValue:d,postState:function(bt){return Math.max(1,Math.min(bt,ms(void 0,de,g)))}}),ge=me(ve,2),fe=ge[0],we=ge[1],Te=re.useState(fe),je=me(Te,2),ze=je[0],Oe=je[1];h.useEffect(function(){Oe(fe)},[fe]);var De=Math.max(1,fe-(R?3:5)),Ne=Math.min(ms(void 0,de,g),fe+(R?3:5));function be(nt,bt){var Ft=nt||re.createElement("button",{type:"button","aria-label":bt,className:"".concat(r,"-item-link")});return typeof nt=="function"&&(Ft=re.createElement(nt,J({},t))),Ft}function Ye(nt){var bt=nt.target.value,Ft=ms(void 0,de,g),rr;return bt===""?rr=bt:Number.isNaN(Number(bt))?rr=ze:bt>=Ft?rr=Ft:rr=Number(bt),rr}function he(nt){return jT(nt)&&nt!==fe&&jT(g)&&g>0}var $e=g>de?_:!1;function Me(nt){(nt.keyCode===ot.UP||nt.keyCode===ot.DOWN)&&nt.preventDefault()}function Ae(nt){var bt=Ye(nt);switch(bt!==ze&&Oe(bt),nt.keyCode){case ot.ENTER:Ie(bt);break;case ot.UP:Ie(bt-1);break;case ot.DOWN:Ie(bt+1);break}}function Xe(nt){Ie(Ye(nt))}function Fe(nt){var bt=ms(nt,de,g),Ft=fe>bt&&bt!==0?bt:fe;ye(nt),Oe(Ft),I==null||I(fe,nt),we(Ft),S==null||S(Ft,nt)}function Ie(nt){if(he(nt)&&!z){var bt=ms(void 0,de,g),Ft=nt;return nt>bt?Ft=bt:nt<1&&(Ft=1),Ft!==ze&&Oe(Ft),we(Ft),S==null||S(Ft,de),Ft}return fe}var Ge=fe>1,Le=fe<ms(void 0,de,g);function Ze(){Ge&&Ie(fe-1)}function _e(){Le&&Ie(fe+1)}function tt(){Ie(De)}function $t(){Ie(Ne)}function wt(nt,bt){if(nt.key==="Enter"||nt.charCode===ot.ENTER||nt.keyCode===ot.ENTER){for(var Ft=arguments.length,rr=new Array(Ft>2?Ft-2:0),Sr=2;Sr<Ft;Sr++)rr[Sr-2]=arguments[Sr];bt.apply(void 0,rr)}}function nn(nt){wt(nt,Ze)}function cn(nt){wt(nt,_e)}function jn(nt){wt(nt,tt)}function $n(nt){wt(nt,$t)}function rn(nt){var bt=X(nt,"prev",be(ie,"prev page"));return re.isValidElement(bt)?re.cloneElement(bt,{disabled:!Ge}):bt}function kt(nt){var bt=X(nt,"next",be(oe,"next page"));return re.isValidElement(bt)?re.cloneElement(bt,{disabled:!Le}):bt}function Mt(nt){(nt.type==="click"||nt.keyCode===ot.ENTER)&&Ie(ze)}var un=null,Jt=La(t,{aria:!0,data:!0}),st=q&&re.createElement("li",{className:"".concat(r,"-total-text")},q(g,[g===0?0:(fe-1)*de+1,fe*de>g?g:fe*de])),Pt=null,vt=ms(void 0,de,g);if(w&&g<=de)return null;var Ke=[],Be={rootPrefixCls:r,onClick:Ie,onKeyPress:wt,showTitle:P,itemRender:X,page:-1},He=fe-1>0?fe-1:0,Qe=fe+1<vt?fe+1:vt,ut=_&&_.goButton,dt=pt(F)==="object"?F.readOnly:!F,zt=ut,Ot=null;F&&(ut&&(typeof ut=="boolean"?zt=re.createElement("button",{type:"button",onClick:Mt,onKeyUp:Mt},A.jump_to_confirm):zt=re.createElement("span",{onClick:Mt,onKeyUp:Mt},ut),zt=re.createElement("li",{title:P?"".concat(A.jump_to).concat(fe,"/").concat(vt):null,className:"".concat(r,"-simple-pager")},zt)),Ot=re.createElement("li",{title:P?"".concat(fe,"/").concat(vt):null,className:"".concat(r,"-simple-pager")},dt?ze:re.createElement("input",{type:"text","aria-label":A.jump_to,value:ze,disabled:z,onKeyDown:Me,onKeyUp:Ae,onChange:Ae,onBlur:Xe,size:3}),re.createElement("span",{className:"".concat(r,"-slash")},"/"),vt));var Ct=R?1:2;if(vt<=3+Ct*2){vt||Ke.push(re.createElement(Zd,Ue({},Be,{key:"noPager",page:1,className:"".concat(r,"-item-disabled")})));for(var Vt=1;Vt<=vt;Vt+=1)Ke.push(re.createElement(Zd,Ue({},Be,{key:Vt,page:Vt,active:fe===Vt})))}else{var Dn=R?A.prev_3:A.prev_5,Bn=R?A.next_3:A.next_5,Un=X(De,"jump-prev",be(Q,"prev page")),nr=X(Ne,"jump-next",be(Y,"next page"));T&&(un=Un?re.createElement("li",{title:P?Dn:null,key:"prev",onClick:tt,tabIndex:0,onKeyDown:jn,className:te("".concat(r,"-jump-prev"),G({},"".concat(r,"-jump-prev-custom-icon"),!!Q))},Un):null,Pt=nr?re.createElement("li",{title:P?Bn:null,key:"next",onClick:$t,tabIndex:0,onKeyDown:$n,className:te("".concat(r,"-jump-next"),G({},"".concat(r,"-jump-next-custom-icon"),!!Y))},nr):null);var an=Math.max(1,fe-Ct),Sn=Math.min(fe+Ct,vt);fe-1<=Ct&&(Sn=1+Ct*2),vt-fe<=Ct&&(an=vt-Ct*2);for(var We=an;We<=Sn;We+=1)Ke.push(re.createElement(Zd,Ue({},Be,{key:We,page:We,active:fe===We})));if(fe-1>=Ct*2&&fe!==3&&(Ke[0]=re.cloneElement(Ke[0],{className:te("".concat(r,"-item-after-jump-prev"),Ke[0].props.className)}),Ke.unshift(un)),vt-fe>=Ct*2&&fe!==vt-2){var at=Ke[Ke.length-1];Ke[Ke.length-1]=re.cloneElement(at,{className:te("".concat(r,"-item-before-jump-next"),at.props.className)}),Ke.push(Pt)}an!==1&&Ke.unshift(re.createElement(Zd,Ue({},Be,{key:1,page:1}))),Sn!==vt&&Ke.push(re.createElement(Zd,Ue({},Be,{key:vt,page:vt})))}var _t=rn(He);if(_t){var Dt=!Ge||!vt;_t=re.createElement("li",{title:P?A.prev_page:null,onClick:Ze,tabIndex:Dt?null:0,onKeyDown:nn,className:te("".concat(r,"-prev"),G({},"".concat(r,"-disabled"),Dt)),"aria-disabled":Dt},_t)}var rt=kt(Qe);if(rt){var ct,It;F?(ct=!Le,It=Ge?0:null):(ct=!Le||!vt,It=ct?null:0),rt=re.createElement("li",{title:P?A.next_page:null,onClick:_e,tabIndex:It,onKeyDown:cn,className:te("".concat(r,"-next"),G({},"".concat(r,"-disabled"),ct)),"aria-disabled":ct},rt)}var qt=te(r,l,G(G(G(G(G({},"".concat(r,"-start"),$==="start"),"".concat(r,"-center"),$==="center"),"".concat(r,"-end"),$==="end"),"".concat(r,"-simple"),F),"".concat(r,"-disabled"),z));return re.createElement("ul",Ue({className:qt,style:k,ref:le},Jt),st,_t,F?Ot:Ke,rt,re.createElement(fX,{locale:A,rootPrefixCls:r,disabled:z,selectPrefixCls:a,changeSize:Fe,pageSize:de,pageSizeOptions:K,quickGo:$e?Ie:null,goButton:zt,showSizeChanger:H,sizeChangerRender:U}))};const gX=e=>{const{componentCls:t}=e;return{[`${t}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}}},[`&${t}-disabled`]:{cursor:"not-allowed",[`${t}-item`]:{cursor:"not-allowed",backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"},a:{color:e.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:e.colorBorder,backgroundColor:e.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:e.itemActiveBgDisabled},a:{color:e.itemActiveColorDisabled}}},[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${t}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${t}-simple-pager`]:{color:e.colorTextDisabled},[`${t}-jump-prev, ${t}-jump-next`]:{[`${t}-item-link-icon`]:{opacity:0},[`${t}-item-ellipsis`]:{opacity:1}}}}},pX=e=>{const{componentCls:t}=e;return{[`&${t}-mini ${t}-total-text, &${t}-mini ${t}-simple-pager`]:{height:e.itemSizeSM,lineHeight:ae(e.itemSizeSM)},[`&${t}-mini ${t}-item`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:ae(e.calc(e.itemSizeSM).sub(2).equal())},[`&${t}-mini ${t}-prev, &${t}-mini ${t}-next`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:ae(e.itemSizeSM)},[`&${t}-mini:not(${t}-disabled)`]:{[`${t}-prev, ${t}-next`]:{[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover ${t}-item-link`]:{backgroundColor:"transparent"}}},[`
|
|
296
|
-
&${t}-mini ${t}-prev ${t}-item-link,
|
|
297
|
-
&${t}-mini ${t}-next ${t}-item-link
|
|
298
|
-
`]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:e.itemSizeSM,lineHeight:ae(e.itemSizeSM)}},[`&${t}-mini ${t}-jump-prev, &${t}-mini ${t}-jump-next`]:{height:e.itemSizeSM,marginInlineEnd:0,lineHeight:ae(e.itemSizeSM)},[`&${t}-mini ${t}-options`]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:e.miniOptionsSizeChangerTop},"&-quick-jumper":{height:e.itemSizeSM,lineHeight:ae(e.itemSizeSM),input:Object.assign(Object.assign({},C1(e)),{width:e.paginationMiniQuickJumperInputWidth,height:e.controlHeightSM})}}}},vX=e=>{const{componentCls:t}=e;return{[`&${t}-simple`]:{[`${t}-prev, ${t}-next`]:{height:e.itemSize,lineHeight:ae(e.itemSize),verticalAlign:"top",[`${t}-item-link`]:{height:e.itemSize,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive},"&::after":{height:e.itemSize,lineHeight:ae(e.itemSize)}}},[`${t}-simple-pager`]:{display:"inline-flex",alignItems:"center",height:e.itemSize,marginInlineEnd:e.marginXS,input:{boxSizing:"border-box",height:"100%",width:e.quickJumperInputWidth,padding:`0 ${ae(e.paginationItemPaddingInline)}`,textAlign:"center",backgroundColor:e.itemInputBg,border:`${ae(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadius,outline:"none",transition:`border-color ${e.motionDurationMid}`,color:"inherit","&:hover":{borderColor:e.colorPrimary},"&:focus":{borderColor:e.colorPrimaryHover,boxShadow:`${ae(e.inputOutlineOffset)} 0 ${ae(e.controlOutlineWidth)} ${e.controlOutline}`},"&[disabled]":{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,cursor:"not-allowed"}}},[`&${t}-disabled`]:{[`${t}-prev, ${t}-next`]:{[`${t}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}},[`&${t}-mini`]:{[`${t}-prev, ${t}-next`]:{height:e.itemSizeSM,lineHeight:ae(e.itemSizeSM),[`${t}-item-link`]:{height:e.itemSizeSM,"&::after":{height:e.itemSizeSM,lineHeight:ae(e.itemSizeSM)}}},[`${t}-simple-pager`]:{height:e.itemSizeSM,input:{width:e.paginationMiniQuickJumperInputWidth}}}}}},yX=e=>{const{componentCls:t}=e;return{[`${t}-jump-prev, ${t}-jump-next`]:{outline:0,[`${t}-item-container`]:{position:"relative",[`${t}-item-link-icon`]:{color:e.colorPrimary,fontSize:e.fontSizeSM,opacity:0,transition:`all ${e.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${t}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:e.colorTextDisabled,letterSpacing:e.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:e.paginationEllipsisTextIndent,opacity:1,transition:`all ${e.motionDurationMid}`}},"&:hover":{[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}}},[`
|
|
299
|
-
${t}-prev,
|
|
300
|
-
${t}-jump-prev,
|
|
301
|
-
${t}-jump-next
|
|
302
|
-
`]:{marginInlineEnd:e.marginXS},[`
|
|
303
|
-
${t}-prev,
|
|
304
|
-
${t}-next,
|
|
305
|
-
${t}-jump-prev,
|
|
306
|
-
${t}-jump-next
|
|
307
|
-
`]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,color:e.colorText,fontFamily:e.fontFamily,lineHeight:ae(e.itemSize),textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:e.borderRadius,cursor:"pointer",transition:`all ${e.motionDurationMid}`},[`${t}-prev, ${t}-next`]:{outline:0,button:{color:e.colorText,cursor:"pointer",userSelect:"none"},[`${t}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:e.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${ae(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:"none",transition:`all ${e.motionDurationMid}`},[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover`]:{[`${t}-item-link`]:{backgroundColor:"transparent"}}},[`${t}-slash`]:{marginInlineEnd:e.paginationSlashMarginInlineEnd,marginInlineStart:e.paginationSlashMarginInlineStart},[`${t}-options`]:{display:"inline-block",marginInlineStart:e.margin,verticalAlign:"middle","&-size-changer":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:e.controlHeight,marginInlineStart:e.marginXS,lineHeight:ae(e.controlHeight),verticalAlign:"top",input:Object.assign(Object.assign(Object.assign({},w1(e)),x1(e,{borderColor:e.colorBorder,hoverBorderColor:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadow:e.activeShadow})),{"&[disabled]":Object.assign({},sv(e)),width:e.quickJumperInputWidth,height:e.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:e.marginXS,marginInlineEnd:e.marginXS})}}}},bX=e=>{const{componentCls:t}=e;return{[`${t}-item`]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,marginInlineEnd:e.marginXS,fontFamily:e.fontFamily,lineHeight:ae(e.calc(e.itemSize).sub(2).equal()),textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:e.itemBg,border:`${ae(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${ae(e.paginationItemPaddingInline)}`,color:e.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${t}-item-active)`]:{"&:hover":{transition:`all ${e.motionDurationMid}`,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},"&-active":{fontWeight:e.fontWeightStrong,backgroundColor:e.itemActiveBg,borderColor:e.colorPrimary,a:{color:e.itemActiveColor},"&:hover":{borderColor:e.colorPrimaryHover},"&:hover a":{color:e.itemActiveColorHover}}}}},SX=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},lr(e)),{display:"flex",flexWrap:"wrap",rowGap:e.paddingXS,"&-start":{justifyContent:"start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"end"},"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${t}-total-text`]:{display:"inline-block",height:e.itemSize,marginInlineEnd:e.marginXS,lineHeight:ae(e.calc(e.itemSize).sub(2).equal()),verticalAlign:"middle"}}),bX(e)),yX(e)),vX(e)),pX(e)),gX(e)),{[`@media only screen and (max-width: ${e.screenLG}px)`]:{[`${t}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${e.screenSM}px)`]:{[`${t}-options`]:{display:"none"}}}),[`&${e.componentCls}-rtl`]:{direction:"rtl"}}},xX=e=>{const{componentCls:t}=e;return{[`${t}:not(${t}-disabled)`]:{[`${t}-item`]:Object.assign({},Lo(e)),[`${t}-jump-prev, ${t}-jump-next`]:{"&:focus-visible":Object.assign({[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}},Hl(e))},[`${t}-prev, ${t}-next`]:{[`&:focus-visible ${t}-item-link`]:Hl(e)}}}},hz=e=>Object.assign({itemBg:e.colorBgContainer,itemSize:e.controlHeight,itemSizeSM:e.controlHeightSM,itemActiveBg:e.colorBgContainer,itemActiveColor:e.colorPrimary,itemActiveColorHover:e.colorPrimaryHover,itemLinkBg:e.colorBgContainer,itemActiveColorDisabled:e.colorTextDisabled,itemActiveBgDisabled:e.controlItemBgActiveDisabled,itemInputBg:e.colorBgContainer,miniOptionsSizeChangerTop:0},Eh(e)),mz=e=>sn(e,{inputOutlineOffset:0,quickJumperInputWidth:e.calc(e.controlHeightLG).mul(1.25).equal(),paginationMiniOptionsMarginInlineStart:e.calc(e.marginXXS).div(2).equal(),paginationMiniQuickJumperInputWidth:e.calc(e.controlHeightLG).mul(1.1).equal(),paginationItemPaddingInline:e.calc(e.marginXXS).mul(1.5).equal(),paginationEllipsisLetterSpacing:e.calc(e.marginXXS).div(2).equal(),paginationSlashMarginInlineStart:e.marginSM,paginationSlashMarginInlineEnd:e.marginSM,paginationEllipsisTextIndent:"0.13em"},wh(e)),CX=Nn("Pagination",e=>{const t=mz(e);return[SX(t),xX(t)]},hz),wX=e=>{const{componentCls:t}=e;return{[`${t}${t}-bordered${t}-disabled:not(${t}-mini)`]:{"&, &:hover":{[`${t}-item-link`]:{borderColor:e.colorBorder}},"&:focus-visible":{[`${t}-item-link`]:{borderColor:e.colorBorder}},[`${t}-item, ${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,[`&:hover:not(${t}-item-active)`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,a:{color:e.colorTextDisabled}},[`&${t}-item-active`]:{backgroundColor:e.itemActiveBgDisabled}},[`${t}-prev, ${t}-next`]:{"&:hover button":{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,color:e.colorTextDisabled},[`${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder}}},[`${t}${t}-bordered:not(${t}-mini)`]:{[`${t}-prev, ${t}-next`]:{"&:hover button":{borderColor:e.colorPrimaryHover,backgroundColor:e.itemBg},[`${t}-item-link`]:{backgroundColor:e.itemLinkBg,borderColor:e.colorBorder},[`&:hover ${t}-item-link`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,color:e.colorPrimary},[`&${t}-disabled`]:{[`${t}-item-link`]:{borderColor:e.colorBorder,color:e.colorTextDisabled}}},[`${t}-item`]:{backgroundColor:e.itemBg,border:`${ae(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,[`&:hover:not(${t}-item-active)`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,a:{color:e.colorPrimary}},"&-active":{borderColor:e.colorPrimary}}}}},EX=Wu(["Pagination","bordered"],e=>{const t=mz(e);return wX(t)},hz);function DT(e){return h.useMemo(()=>typeof e=="boolean"?[e,{}]:e&&typeof e=="object"?[!0,e]:[void 0,void 0],[e])}var $X=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const OX=e=>{const{align:t,prefixCls:n,selectPrefixCls:r,className:i,rootClassName:a,style:l,size:c,locale:u,responsive:d,showSizeChanger:m,selectComponentClass:g,pageSizeOptions:v}=e,y=$X(e,["align","prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","responsive","showSizeChanger","selectComponentClass","pageSizeOptions"]),{xs:b}=c1(d),[,x]=Zr(),{getPrefixCls:S,direction:w,showSizeChanger:$,className:O,style:T}=Yr("pagination"),_=S("pagination",n),[R,M,P]=CX(_),N=Sa(c),I=N==="small"||!!(b&&!N&&d),[B]=Wl("Pagination",hM),A=Object.assign(Object.assign({},B),u),[k,j]=DT(m),[V,z]=DT($),F=k??V,q=j??z,Z=g||Gl,H=h.useMemo(()=>v?v.map(Y=>Number(Y)):void 0,[v]),U=Y=>{var ie;const{disabled:oe,size:le,onSizeChange:Ce,"aria-label":ce,className:de,options:ye}=Y,{className:ve,onChange:ge}=q||{},fe=(ie=ye.find(we=>String(we.value)===String(le)))===null||ie===void 0?void 0:ie.value;return h.createElement(Z,Object.assign({disabled:oe,showSearch:!0,popupMatchSelectWidth:!1,getPopupContainer:we=>we.parentNode,"aria-label":ce,options:ye},q,{value:fe,onChange:(we,Te)=>{Ce==null||Ce(we),ge==null||ge(we,Te)},size:I?"small":"middle",className:te(de,ve)}))},K=h.useMemo(()=>{const Y=h.createElement("span",{className:`${_}-item-ellipsis`},"•••"),ie=h.createElement("button",{className:`${_}-item-link`,type:"button",tabIndex:-1},w==="rtl"?h.createElement(Df,null):h.createElement(Hf,null)),oe=h.createElement("button",{className:`${_}-item-link`,type:"button",tabIndex:-1},w==="rtl"?h.createElement(Hf,null):h.createElement(Df,null)),le=h.createElement("a",{className:`${_}-item-link`},h.createElement("div",{className:`${_}-item-container`},w==="rtl"?h.createElement(AT,{className:`${_}-item-link-icon`}):h.createElement(PT,{className:`${_}-item-link-icon`}),Y)),Ce=h.createElement("a",{className:`${_}-item-link`},h.createElement("div",{className:`${_}-item-container`},w==="rtl"?h.createElement(PT,{className:`${_}-item-link-icon`}):h.createElement(AT,{className:`${_}-item-link-icon`}),Y));return{prevIcon:ie,nextIcon:oe,jumpPrevIcon:le,jumpNextIcon:Ce}},[w,_]),D=S("select",r),X=te({[`${_}-${t}`]:!!t,[`${_}-mini`]:I,[`${_}-rtl`]:w==="rtl",[`${_}-bordered`]:x.wireframe},O,i,a,M,P),Q=Object.assign(Object.assign({},T),l);return R(h.createElement(h.Fragment,null,x.wireframe&&h.createElement(EX,{prefixCls:_}),h.createElement(mX,Object.assign({},K,y,{style:Q,prefixCls:_,selectPrefixCls:D,className:X,locale:A,pageSizeOptions:H,showSizeChanger:F,sizeChangerRender:U}))))},Qg=100,gz=Qg/5,pz=Qg/2-gz/2,db=pz*2*Math.PI,LT=50,kT=e=>{const{dotClassName:t,style:n,hasCircleCls:r}=e;return h.createElement("circle",{className:te(`${t}-circle`,{[`${t}-circle-bg`]:r}),r:pz,cx:LT,cy:LT,strokeWidth:gz,style:n})},RX=({percent:e,prefixCls:t})=>{const n=`${t}-dot`,r=`${n}-holder`,i=`${r}-hidden`,[a,l]=h.useState(!1);on(()=>{e!==0&&l(!0)},[e!==0]);const c=Math.max(Math.min(e,100),0);if(!a)return null;const u={strokeDashoffset:`${db/4}`,strokeDasharray:`${db*c/100} ${db*(100-c)/100}`};return h.createElement("span",{className:te(r,`${n}-progress`,c<=0&&i)},h.createElement("svg",{viewBox:`0 0 ${Qg} ${Qg}`,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":c},h.createElement(kT,{dotClassName:n,hasCircleCls:!0}),h.createElement(kT,{dotClassName:n,style:u})))};function TX(e){const{prefixCls:t,percent:n=0}=e,r=`${t}-dot`,i=`${r}-holder`,a=`${i}-hidden`;return h.createElement(h.Fragment,null,h.createElement("span",{className:te(i,n>0&&a)},h.createElement("span",{className:te(r,`${t}-dot-spin`)},[1,2,3,4].map(l=>h.createElement("i",{className:`${t}-dot-item`,key:l})))),h.createElement(RX,{prefixCls:t,percent:n}))}function _X(e){var t;const{prefixCls:n,indicator:r,percent:i}=e,a=`${n}-dot`;return r&&h.isValidElement(r)?oi(r,{className:te((t=r.props)===null||t===void 0?void 0:t.className,a),percent:i}):h.createElement(TX,{prefixCls:n,percent:i})}const NX=new ln("antSpinMove",{to:{opacity:1}}),IX=new ln("antRotate",{to:{transform:"rotate(405deg)"}}),MX=e=>{const{componentCls:t,calc:n}=e;return{[t]:Object.assign(Object.assign({},lr(e)),{position:"absolute",display:"none",color:e.colorPrimary,fontSize:0,textAlign:"center",verticalAlign:"middle",opacity:0,transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`,"&-spinning":{position:"relative",display:"inline-block",opacity:1},[`${t}-text`]:{fontSize:e.fontSize,paddingTop:n(n(e.dotSize).sub(e.fontSize)).div(2).add(2).equal()},"&-fullscreen":{position:"fixed",width:"100vw",height:"100vh",backgroundColor:e.colorBgMask,zIndex:e.zIndexPopupBase,inset:0,display:"flex",alignItems:"center",flexDirection:"column",justifyContent:"center",opacity:0,visibility:"hidden",transition:`all ${e.motionDurationMid}`,"&-show":{opacity:1,visibility:"visible"},[t]:{[`${t}-dot-holder`]:{color:e.colorWhite},[`${t}-text`]:{color:e.colorTextLightSolid}}},"&-nested-loading":{position:"relative",[`> div > ${t}`]:{position:"absolute",top:0,insetInlineStart:0,zIndex:4,display:"block",width:"100%",height:"100%",maxHeight:e.contentHeight,[`${t}-dot`]:{position:"absolute",top:"50%",insetInlineStart:"50%",margin:n(e.dotSize).mul(-1).div(2).equal()},[`${t}-text`]:{position:"absolute",top:"50%",width:"100%",textShadow:`0 1px 2px ${e.colorBgContainer}`},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSize).div(2).mul(-1).sub(10).equal()},"&-sm":{[`${t}-dot`]:{margin:n(e.dotSizeSM).mul(-1).div(2).equal()},[`${t}-text`]:{paddingTop:n(n(e.dotSizeSM).sub(e.fontSize)).div(2).add(2).equal()},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSizeSM).div(2).mul(-1).sub(10).equal()}},"&-lg":{[`${t}-dot`]:{margin:n(e.dotSizeLG).mul(-1).div(2).equal()},[`${t}-text`]:{paddingTop:n(n(e.dotSizeLG).sub(e.fontSize)).div(2).add(2).equal()},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSizeLG).div(2).mul(-1).sub(10).equal()}}},[`${t}-container`]:{position:"relative",transition:`opacity ${e.motionDurationSlow}`,"&::after":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:10,width:"100%",height:"100%",background:e.colorBgContainer,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'""',pointerEvents:"none"}},[`${t}-blur`]:{clear:"both",opacity:.5,userSelect:"none",pointerEvents:"none","&::after":{opacity:.4,pointerEvents:"auto"}}},"&-tip":{color:e.spinDotDefault},[`${t}-dot-holder`]:{width:"1em",height:"1em",fontSize:e.dotSize,display:"inline-block",transition:`transform ${e.motionDurationSlow} ease, opacity ${e.motionDurationSlow} ease`,transformOrigin:"50% 50%",lineHeight:1,color:e.colorPrimary,"&-hidden":{transform:"scale(0.3)",opacity:0}},[`${t}-dot-progress`]:{position:"absolute",inset:0},[`${t}-dot`]:{position:"relative",display:"inline-block",fontSize:e.dotSize,width:"1em",height:"1em","&-item":{position:"absolute",display:"block",width:n(e.dotSize).sub(n(e.marginXXS).div(2)).div(2).equal(),height:n(e.dotSize).sub(n(e.marginXXS).div(2)).div(2).equal(),background:"currentColor",borderRadius:"100%",transform:"scale(0.75)",transformOrigin:"50% 50%",opacity:.3,animationName:NX,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear",animationDirection:"alternate","&:nth-child(1)":{top:0,insetInlineStart:0,animationDelay:"0s"},"&:nth-child(2)":{top:0,insetInlineEnd:0,animationDelay:"0.4s"},"&:nth-child(3)":{insetInlineEnd:0,bottom:0,animationDelay:"0.8s"},"&:nth-child(4)":{bottom:0,insetInlineStart:0,animationDelay:"1.2s"}},"&-spin":{transform:"rotate(45deg)",animationName:IX,animationDuration:"1.2s",animationIterationCount:"infinite",animationTimingFunction:"linear"},"&-circle":{strokeLinecap:"round",transition:["stroke-dashoffset","stroke-dasharray","stroke","stroke-width","opacity"].map(r=>`${r} ${e.motionDurationSlow} ease`).join(","),fillOpacity:0,stroke:"currentcolor"},"&-circle-bg":{stroke:e.colorFillSecondary}},[`&-sm ${t}-dot`]:{"&, &-holder":{fontSize:e.dotSizeSM}},[`&-sm ${t}-dot-holder`]:{i:{width:n(n(e.dotSizeSM).sub(n(e.marginXXS).div(2))).div(2).equal(),height:n(n(e.dotSizeSM).sub(n(e.marginXXS).div(2))).div(2).equal()}},[`&-lg ${t}-dot`]:{"&, &-holder":{fontSize:e.dotSizeLG}},[`&-lg ${t}-dot-holder`]:{i:{width:n(n(e.dotSizeLG).sub(e.marginXXS)).div(2).equal(),height:n(n(e.dotSizeLG).sub(e.marginXXS)).div(2).equal()}},[`&${t}-show-text ${t}-text`]:{display:"block"}})}},PX=e=>{const{controlHeightLG:t,controlHeight:n}=e;return{contentHeight:400,dotSize:t/2,dotSizeSM:t*.35,dotSizeLG:n}},AX=Nn("Spin",e=>{const t=sn(e,{spinDotDefault:e.colorTextDescription});return MX(t)},PX),zX=200,BT=[[30,.05],[70,.03],[96,.01]];function jX(e,t){const[n,r]=h.useState(0),i=h.useRef(null),a=t==="auto";return h.useEffect(()=>(a&&e&&(r(0),i.current=setInterval(()=>{r(l=>{const c=100-l;for(let u=0;u<BT.length;u+=1){const[d,m]=BT[u];if(l<=d)return l+c*m}return l})},zX)),()=>{i.current&&(clearInterval(i.current),i.current=null)}),[a,e]),a?n:t}var DX=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};let vz;function LX(e,t){return!!e&&!!t&&!Number.isNaN(Number(t))}const _1=e=>{var t;const{prefixCls:n,spinning:r=!0,delay:i=0,className:a,rootClassName:l,size:c="default",tip:u,wrapperClassName:d,style:m,children:g,fullscreen:v=!1,indicator:y,percent:b}=e,x=DX(e,["prefixCls","spinning","delay","className","rootClassName","size","tip","wrapperClassName","style","children","fullscreen","indicator","percent"]),{getPrefixCls:S,direction:w,className:$,style:O,indicator:T}=Yr("spin"),_=S("spin",n),[R,M,P]=AX(_),[N,I]=h.useState(()=>r&&!LX(r,i)),B=jX(N,b);h.useEffect(()=>{if(r){const q=rW(i,()=>{I(!0)});return q(),()=>{var Z;(Z=q==null?void 0:q.cancel)===null||Z===void 0||Z.call(q)}}I(!1)},[i,r]);const A=h.useMemo(()=>typeof g<"u"&&!v,[g,v]),k=te(_,$,{[`${_}-sm`]:c==="small",[`${_}-lg`]:c==="large",[`${_}-spinning`]:N,[`${_}-show-text`]:!!u,[`${_}-rtl`]:w==="rtl"},a,!v&&l,M,P),j=te(`${_}-container`,{[`${_}-blur`]:N}),V=(t=y??T)!==null&&t!==void 0?t:vz,z=Object.assign(Object.assign({},O),m),F=h.createElement("div",Object.assign({},x,{style:z,className:k,"aria-live":"polite","aria-busy":N}),h.createElement(_X,{prefixCls:_,indicator:V,percent:B}),u&&(A||v)?h.createElement("div",{className:`${_}-text`},u):null);return R(A?h.createElement("div",Object.assign({},x,{className:te(`${_}-nested-loading`,d,M,P)}),N&&h.createElement("div",{key:"loading"},F),h.createElement("div",{className:j,key:"container"},g)):v?h.createElement("div",{className:te(`${_}-fullscreen`,{[`${_}-fullscreen-show`]:N},l,M,P)},F):F)};_1.setDefaultIndicator=e=>{vz=e};const N1=re.createContext({});N1.Consumer;var yz=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const kX=e=>{var{prefixCls:t,className:n,avatar:r,title:i,description:a}=e,l=yz(e,["prefixCls","className","avatar","title","description"]);const{getPrefixCls:c}=h.useContext(Tt),u=c("list",t),d=te(`${u}-item-meta`,n),m=re.createElement("div",{className:`${u}-item-meta-content`},i&&re.createElement("h4",{className:`${u}-item-meta-title`},i),a&&re.createElement("div",{className:`${u}-item-meta-description`},a));return re.createElement("div",Object.assign({},l,{className:d}),r&&re.createElement("div",{className:`${u}-item-meta-avatar`},r),(i||a)&&m)},BX=re.forwardRef((e,t)=>{const{prefixCls:n,children:r,actions:i,extra:a,styles:l,className:c,classNames:u,colStyle:d}=e,m=yz(e,["prefixCls","children","actions","extra","styles","className","classNames","colStyle"]),{grid:g,itemLayout:v}=h.useContext(N1),{getPrefixCls:y,list:b}=h.useContext(Tt),x=M=>{var P,N;return te((N=(P=b==null?void 0:b.item)===null||P===void 0?void 0:P.classNames)===null||N===void 0?void 0:N[M],u==null?void 0:u[M])},S=M=>{var P,N;return Object.assign(Object.assign({},(N=(P=b==null?void 0:b.item)===null||P===void 0?void 0:P.styles)===null||N===void 0?void 0:N[M]),l==null?void 0:l[M])},w=()=>{let M=!1;return h.Children.forEach(r,P=>{typeof P=="string"&&(M=!0)}),M&&h.Children.count(r)>1},$=()=>v==="vertical"?!!a:!w(),O=y("list",n),T=i&&i.length>0&&re.createElement("ul",{className:te(`${O}-item-action`,x("actions")),key:"actions",style:S("actions")},i.map((M,P)=>re.createElement("li",{key:`${O}-item-action-${P}`},M,P!==i.length-1&&re.createElement("em",{className:`${O}-item-action-split`})))),_=g?"div":"li",R=re.createElement(_,Object.assign({},m,g?{}:{ref:t},{className:te(`${O}-item`,{[`${O}-item-no-flex`]:!$()},c)}),v==="vertical"&&a?[re.createElement("div",{className:`${O}-item-main`,key:"content"},r,T),re.createElement("div",{className:te(`${O}-item-extra`,x("extra")),key:"extra",style:S("extra")},a)]:[r,T,oi(a,{key:"extra"})]);return g?re.createElement(O1,{ref:t,flex:1,style:d},R):R}),bz=BX;bz.Meta=kX;const HX=e=>{const{listBorderedCls:t,componentCls:n,paddingLG:r,margin:i,itemPaddingSM:a,itemPaddingLG:l,marginLG:c,borderRadiusLG:u}=e,d=ae(e.calc(u).sub(e.lineWidth).equal());return{[t]:{border:`${ae(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:u,[`${n}-header`]:{borderRadius:`${d} ${d} 0 0`},[`${n}-footer`]:{borderRadius:`0 0 ${d} ${d}`},[`${n}-header,${n}-footer,${n}-item`]:{paddingInline:r},[`${n}-pagination`]:{margin:`${ae(i)} ${ae(c)}`}},[`${t}${n}-sm`]:{[`${n}-item,${n}-header,${n}-footer`]:{padding:a}},[`${t}${n}-lg`]:{[`${n}-item,${n}-header,${n}-footer`]:{padding:l}}}},FX=e=>{const{componentCls:t,screenSM:n,screenMD:r,marginLG:i,marginSM:a,margin:l}=e;return{[`@media screen and (max-width:${r}px)`]:{[t]:{[`${t}-item`]:{[`${t}-item-action`]:{marginInlineStart:i}}},[`${t}-vertical`]:{[`${t}-item`]:{[`${t}-item-extra`]:{marginInlineStart:i}}}},[`@media screen and (max-width: ${n}px)`]:{[t]:{[`${t}-item`]:{flexWrap:"wrap",[`${t}-action`]:{marginInlineStart:a}}},[`${t}-vertical`]:{[`${t}-item`]:{flexWrap:"wrap-reverse",[`${t}-item-main`]:{minWidth:e.contentWidth},[`${t}-item-extra`]:{margin:`auto auto ${ae(l)}`}}}}}},VX=e=>{const{componentCls:t,antCls:n,controlHeight:r,minHeight:i,paddingSM:a,marginLG:l,padding:c,itemPadding:u,colorPrimary:d,itemPaddingSM:m,itemPaddingLG:g,paddingXS:v,margin:y,colorText:b,colorTextDescription:x,motionDurationSlow:S,lineWidth:w,headerBg:$,footerBg:O,emptyTextPadding:T,metaMarginBottom:_,avatarMarginRight:R,titleMarginBottom:M,descriptionFontSize:P}=e;return{[t]:Object.assign(Object.assign({},lr(e)),{position:"relative","--rc-virtual-list-scrollbar-bg":e.colorSplit,"*":{outline:"none"},[`${t}-header`]:{background:$},[`${t}-footer`]:{background:O},[`${t}-header, ${t}-footer`]:{paddingBlock:a},[`${t}-pagination`]:{marginBlockStart:l,[`${n}-pagination-options`]:{textAlign:"start"}},[`${t}-spin`]:{minHeight:i,textAlign:"center"},[`${t}-items`]:{margin:0,padding:0,listStyle:"none"},[`${t}-item`]:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:u,color:b,[`${t}-item-meta`]:{display:"flex",flex:1,alignItems:"flex-start",maxWidth:"100%",[`${t}-item-meta-avatar`]:{marginInlineEnd:R},[`${t}-item-meta-content`]:{flex:"1 0",width:0,color:b},[`${t}-item-meta-title`]:{margin:`0 0 ${ae(e.marginXXS)} 0`,color:b,fontSize:e.fontSize,lineHeight:e.lineHeight,"> a":{color:b,transition:`all ${S}`,"&:hover":{color:d}}},[`${t}-item-meta-description`]:{color:x,fontSize:P,lineHeight:e.lineHeight}},[`${t}-item-action`]:{flex:"0 0 auto",marginInlineStart:e.marginXXL,padding:0,fontSize:0,listStyle:"none","& > li":{position:"relative",display:"inline-block",padding:`0 ${ae(v)}`,color:x,fontSize:e.fontSize,lineHeight:e.lineHeight,textAlign:"center","&:first-child":{paddingInlineStart:0}},[`${t}-item-action-split`]:{position:"absolute",insetBlockStart:"50%",insetInlineEnd:0,width:w,height:e.calc(e.fontHeight).sub(e.calc(e.marginXXS).mul(2)).equal(),transform:"translateY(-50%)",backgroundColor:e.colorSplit}}},[`${t}-empty`]:{padding:`${ae(c)} 0`,color:x,fontSize:e.fontSizeSM,textAlign:"center"},[`${t}-empty-text`]:{padding:T,color:e.colorTextDisabled,fontSize:e.fontSize,textAlign:"center"},[`${t}-item-no-flex`]:{display:"block"}}),[`${t}-grid ${n}-col > ${t}-item`]:{display:"block",maxWidth:"100%",marginBlockEnd:y,paddingBlock:0,borderBlockEnd:"none"},[`${t}-vertical ${t}-item`]:{alignItems:"initial",[`${t}-item-main`]:{display:"block",flex:1},[`${t}-item-extra`]:{marginInlineStart:l},[`${t}-item-meta`]:{marginBlockEnd:_,[`${t}-item-meta-title`]:{marginBlockStart:0,marginBlockEnd:M,color:b,fontSize:e.fontSizeLG,lineHeight:e.lineHeightLG}},[`${t}-item-action`]:{marginBlockStart:c,marginInlineStart:"auto","> li":{padding:`0 ${ae(c)}`,"&:first-child":{paddingInlineStart:0}}}},[`${t}-split ${t}-item`]:{borderBlockEnd:`${ae(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderBlockEnd:"none"}},[`${t}-split ${t}-header`]:{borderBlockEnd:`${ae(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-split${t}-empty ${t}-footer`]:{borderTop:`${ae(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-loading ${t}-spin-nested-loading`]:{minHeight:r},[`${t}-split${t}-something-after-last-item ${n}-spin-container > ${t}-items > ${t}-item:last-child`]:{borderBlockEnd:`${ae(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-lg ${t}-item`]:{padding:g},[`${t}-sm ${t}-item`]:{padding:m},[`${t}:not(${t}-vertical)`]:{[`${t}-item-no-flex`]:{[`${t}-item-action`]:{float:"right"}}}}},UX=e=>({contentWidth:220,itemPadding:`${ae(e.paddingContentVertical)} 0`,itemPaddingSM:`${ae(e.paddingContentVerticalSM)} ${ae(e.paddingContentHorizontal)}`,itemPaddingLG:`${ae(e.paddingContentVerticalLG)} ${ae(e.paddingContentHorizontalLG)}`,headerBg:"transparent",footerBg:"transparent",emptyTextPadding:e.padding,metaMarginBottom:e.padding,avatarMarginRight:e.padding,titleMarginBottom:e.paddingSM,descriptionFontSize:e.fontSize}),qX=Nn("List",e=>{const t=sn(e,{listBorderedCls:`${e.componentCls}-bordered`,minHeight:e.controlHeightLG});return[VX(t),HX(t),FX(t)]},UX);var KX=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function WX(e,t){const{pagination:n=!1,prefixCls:r,bordered:i=!1,split:a=!0,className:l,rootClassName:c,style:u,children:d,itemLayout:m,loadMore:g,grid:v,dataSource:y=[],size:b,header:x,footer:S,loading:w=!1,rowKey:$,renderItem:O,locale:T}=e,_=KX(e,["pagination","prefixCls","bordered","split","className","rootClassName","style","children","itemLayout","loadMore","grid","dataSource","size","header","footer","loading","rowKey","renderItem","locale"]),R=n&&typeof n=="object"?n:{},[M,P]=h.useState(R.defaultCurrent||1),[N,I]=h.useState(R.defaultPageSize||10),{getPrefixCls:B,direction:A,className:k,style:j}=Yr("list"),{renderEmpty:V}=h.useContext(Tt),z={current:1,total:0,position:"bottom"},F=De=>(Ne,be)=>{var Ye;P(Ne),I(be),n&&((Ye=n==null?void 0:n[De])===null||Ye===void 0||Ye.call(n,Ne,be))},q=F("onChange"),Z=F("onShowSizeChange"),H=(De,Ne)=>{if(!O)return null;let be;return typeof $=="function"?be=$(De):$?be=De[$]:be=De.key,be||(be=`list-item-${Ne}`),h.createElement(h.Fragment,{key:be},O(De,Ne))},U=!!(g||n||S),K=B("list",r),[D,X,Q]=qX(K);let Y=w;typeof Y=="boolean"&&(Y={spinning:Y});const ie=!!(Y!=null&&Y.spinning),oe=Sa(b);let le="";switch(oe){case"large":le="lg";break;case"small":le="sm";break}const Ce=te(K,{[`${K}-vertical`]:m==="vertical",[`${K}-${le}`]:le,[`${K}-split`]:a,[`${K}-bordered`]:i,[`${K}-loading`]:ie,[`${K}-grid`]:!!v,[`${K}-something-after-last-item`]:U,[`${K}-rtl`]:A==="rtl"},k,l,c,X,Q),ce=qS(z,{total:y.length,current:M,pageSize:N},n||{}),de=Math.ceil(ce.total/ce.pageSize);ce.current=Math.min(ce.current,de);const ye=n&&h.createElement("div",{className:te(`${K}-pagination`)},h.createElement(OX,Object.assign({align:"end"},ce,{onChange:q,onShowSizeChange:Z})));let ve=qe(y);n&&y.length>(ce.current-1)*ce.pageSize&&(ve=qe(y).splice((ce.current-1)*ce.pageSize,ce.pageSize));const ge=Object.keys(v||{}).some(De=>["xs","sm","md","lg","xl","xxl"].includes(De)),fe=c1(ge),we=h.useMemo(()=>{for(let De=0;De<Vs.length;De+=1){const Ne=Vs[De];if(fe[Ne])return Ne}},[fe]),Te=h.useMemo(()=>{if(!v)return;const De=we&&v[we]?v[we]:v.column;if(De)return{width:`${100/De}%`,maxWidth:`${100/De}%`}},[JSON.stringify(v),we]);let je=ie&&h.createElement("div",{style:{minHeight:53}});if(ve.length>0){const De=ve.map(H);je=v?h.createElement(YA,{gutter:v.gutter},h.Children.map(De,Ne=>h.createElement("div",{key:Ne==null?void 0:Ne.key,style:Te},Ne))):h.createElement("ul",{className:`${K}-items`},De)}else!d&&!ie&&(je=h.createElement("div",{className:`${K}-empty-text`},(T==null?void 0:T.emptyText)||(V==null?void 0:V("List"))||h.createElement(UP,{componentName:"List"})));const ze=ce.position,Oe=h.useMemo(()=>({grid:v,itemLayout:m}),[JSON.stringify(v),m]);return D(h.createElement(N1.Provider,{value:Oe},h.createElement("div",Object.assign({ref:t,style:Object.assign(Object.assign({},j),u),className:Ce},_),(ze==="top"||ze==="both")&&ye,x&&h.createElement("div",{className:`${K}-header`},x),h.createElement(_1,Object.assign({},Y),je,d),S&&h.createElement("div",{className:`${K}-footer`},S),g||(ze==="bottom"||ze==="both")&&ye)))}const GX=h.forwardRef(WX),yx=GX;yx.Item=bz;const XX=(e,t=!1)=>t&&e==null?[]:Array.isArray(e)?e:[e];let Na=null,wg=e=>e(),Yg=[],Uf={};function HT(){const{getContainer:e,rtl:t,maxCount:n,top:r,bottom:i,showProgress:a,pauseOnHover:l}=Uf,c=(e==null?void 0:e())||document.body;return{getContainer:()=>c,rtl:t,maxCount:n,top:r,bottom:i,showProgress:a,pauseOnHover:l}}const QX=re.forwardRef((e,t)=>{const{notificationConfig:n,sync:r}=e,{getPrefixCls:i}=h.useContext(Tt),a=Uf.prefixCls||i("notification"),l=h.useContext($9),[c,u]=TP(Object.assign(Object.assign(Object.assign({},n),{prefixCls:a}),l.notification));return re.useEffect(r,[]),re.useImperativeHandle(t,()=>{const d=Object.assign({},c);return Object.keys(d).forEach(m=>{d[m]=(...g)=>(r(),c[m].apply(c,g))}),{instance:d,sync:r}}),u}),YX=re.forwardRef((e,t)=>{const[n,r]=re.useState(HT),i=()=>{r(HT)};re.useEffect(i,[]);const a=z5(),l=a.getRootPrefixCls(),c=a.getIconPrefixCls(),u=a.getTheme(),d=re.createElement(QX,{ref:t,sync:i,notificationConfig:n});return re.createElement(tc,{prefixCls:l,iconPrefixCls:c,theme:u},a.holderRender?a.holderRender(d):d)}),I1=()=>{if(!Na){const e=document.createDocumentFragment(),t={fragment:e};Na=t,wg(()=>{BC()(re.createElement(YX,{ref:r=>{const{instance:i,sync:a}=r||{};Promise.resolve().then(()=>{!t.instance&&i&&(t.instance=i,t.sync=a,I1())})}}),e)});return}Na.instance&&(Yg.forEach(e=>{switch(e.type){case"open":{wg(()=>{Na.instance.open(Object.assign(Object.assign({},Uf),e.config))});break}case"destroy":wg(()=>{var t;(t=Na==null?void 0:Na.instance)===null||t===void 0||t.destroy(e.key)});break}}),Yg=[])};function ZX(e){Uf=Object.assign(Object.assign({},Uf),e),wg(()=>{var t;(t=Na==null?void 0:Na.sync)===null||t===void 0||t.call(Na)})}function Sz(e){Yg.push({type:"open",config:e}),I1()}const JX=e=>{Yg.push({type:"destroy",key:e}),I1()},eQ=["success","info","warning","error"],tQ={open:Sz,destroy:JX,config:ZX,useNotification:E9,_InternalPanelDoNotUseOrYouWillBeFired:m9},Zg=tQ;eQ.forEach(e=>{Zg[e]=t=>Sz(Object.assign(Object.assign({},t),{type:e}))});const nQ=e=>{const{componentCls:t,iconCls:n,antCls:r,zIndexPopup:i,colorText:a,colorWarning:l,marginXXS:c,marginXS:u,fontSize:d,fontWeightStrong:m,colorTextHeading:g}=e;return{[t]:{zIndex:i,[`&${r}-popover`]:{fontSize:d},[`${t}-message`]:{marginBottom:u,display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${t}-message-icon ${n}`]:{color:l,fontSize:d,lineHeight:1,marginInlineEnd:u},[`${t}-title`]:{fontWeight:m,color:g,"&:only-child":{fontWeight:"normal"}},[`${t}-description`]:{marginTop:c,color:a}},[`${t}-buttons`]:{textAlign:"end",whiteSpace:"nowrap",button:{marginInlineStart:u}}}}},rQ=e=>{const{zIndexPopupBase:t}=e;return{zIndexPopup:t+60}},xz=Nn("Popconfirm",e=>nQ(e),rQ,{resetStyle:!1});var iQ=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const Cz=e=>{const{prefixCls:t,okButtonProps:n,cancelButtonProps:r,title:i,description:a,cancelText:l,okText:c,okType:u="primary",icon:d=h.createElement(ph,null),showCancel:m=!0,close:g,onConfirm:v,onCancel:y,onPopupClick:b}=e,{getPrefixCls:x}=h.useContext(Tt),[S]=Wl("Popconfirm",Do.Popconfirm),w=Hu(i),$=Hu(a);return h.createElement("div",{className:`${t}-inner-content`,onClick:b},h.createElement("div",{className:`${t}-message`},d&&h.createElement("span",{className:`${t}-message-icon`},d),h.createElement("div",{className:`${t}-message-text`},w&&h.createElement("div",{className:`${t}-title`},w),$&&h.createElement("div",{className:`${t}-description`},$))),h.createElement("div",{className:`${t}-buttons`},m&&h.createElement(Er,Object.assign({onClick:y,size:"small"},r),l||(S==null?void 0:S.cancelText)),h.createElement(OH,{buttonProps:Object.assign(Object.assign({size:"small"},iP(u)),n),actionFn:v,close:g,prefixCls:x("btn"),quitOnNullishReturnValue:!0,emitEvent:!0},c||(S==null?void 0:S.okText))))},aQ=e=>{const{prefixCls:t,placement:n,className:r,style:i}=e,a=iQ(e,["prefixCls","placement","className","style"]),{getPrefixCls:l}=h.useContext(Tt),c=l("popconfirm",t),[u]=xz(c);return u(h.createElement(oA,{placement:n,className:te(c,r),style:i,content:h.createElement(Cz,Object.assign({prefixCls:c},a))}))};var oQ=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const lQ=h.forwardRef((e,t)=>{var n,r;const{prefixCls:i,placement:a="top",trigger:l="click",okType:c="primary",icon:u=h.createElement(ph,null),children:d,overlayClassName:m,onOpenChange:g,onVisibleChange:v,overlayStyle:y,styles:b,classNames:x}=e,S=oQ(e,["prefixCls","placement","trigger","okType","icon","children","overlayClassName","onOpenChange","onVisibleChange","overlayStyle","styles","classNames"]),{getPrefixCls:w,className:$,style:O,classNames:T,styles:_}=Yr("popconfirm"),[R,M]=vr(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),P=(F,q)=>{M(F,!0),v==null||v(F),g==null||g(F,q)},N=F=>{P(!1,F)},I=F=>{var q;return(q=e.onConfirm)===null||q===void 0?void 0:q.call(void 0,F)},B=F=>{var q;P(!1,F),(q=e.onCancel)===null||q===void 0||q.call(void 0,F)},A=(F,q)=>{const{disabled:Z=!1}=e;Z||P(F,q)},k=w("popconfirm",i),j=te(k,$,m,T.root,x==null?void 0:x.root),V=te(T.body,x==null?void 0:x.body),[z]=xz(k);return z(h.createElement(lA,Object.assign({},tr(S,["title"]),{trigger:l,placement:a,onOpenChange:A,open:R,ref:t,classNames:{root:j,body:V},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign({},_.root),O),y),b==null?void 0:b.root),body:Object.assign(Object.assign({},_.body),b==null?void 0:b.body)},content:h.createElement(Cz,Object.assign({okType:c,icon:u},e,{prefixCls:k,close:N,onConfirm:I,onCancel:B})),"data-popover-inject":!0}),d))}),wz=lQ;wz._InternalPanelDoNotUseOrYouWillBeFired=aQ;var sQ={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},cQ=function(){var t=h.useRef([]),n=h.useRef(null);return h.useEffect(function(){var r=Date.now(),i=!1;t.current.forEach(function(a){if(a){i=!0;var l=a.style;l.transitionDuration=".3s, .3s, .3s, .06s",n.current&&r-n.current<100&&(l.transitionDuration="0s, 0s")}}),i&&(n.current=Date.now())}),t.current},FT=0,uQ=ai();function dQ(){var e;return uQ?(e=FT,FT+=1):e="TEST_OR_SSR",e}const fQ=(function(e){var t=h.useState(),n=me(t,2),r=n[0],i=n[1];return h.useEffect(function(){i("rc_progress_".concat(dQ()))},[]),e||r});var VT=function(t){var n=t.bg,r=t.children;return h.createElement("div",{style:{width:"100%",height:"100%",background:n}},r)};function UT(e,t){return Object.keys(e).map(function(n){var r=parseFloat(n),i="".concat(Math.floor(r*t),"%");return"".concat(e[n]," ").concat(i)})}var hQ=h.forwardRef(function(e,t){var n=e.prefixCls,r=e.color,i=e.gradientId,a=e.radius,l=e.style,c=e.ptg,u=e.strokeLinecap,d=e.strokeWidth,m=e.size,g=e.gapDegree,v=r&&pt(r)==="object",y=v?"#FFF":void 0,b=m/2,x=h.createElement("circle",{className:"".concat(n,"-circle-path"),r:a,cx:b,cy:b,stroke:y,strokeLinecap:u,strokeWidth:d,opacity:c===0?0:1,style:l,ref:t});if(!v)return x;var S="".concat(i,"-conic"),w=g?"".concat(180+g/2,"deg"):"0deg",$=UT(r,(360-g)/360),O=UT(r,1),T="conic-gradient(from ".concat(w,", ").concat($.join(", "),")"),_="linear-gradient(to ".concat(g?"bottom":"top",", ").concat(O.join(", "),")");return h.createElement(h.Fragment,null,h.createElement("mask",{id:S},x),h.createElement("foreignObject",{x:0,y:0,width:m,height:m,mask:"url(#".concat(S,")")},h.createElement(VT,{bg:_},h.createElement(VT,{bg:T}))))}),df=100,fb=function(t,n,r,i,a,l,c,u,d,m){var g=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,v=r/100*360*((360-l)/360),y=l===0?0:{bottom:0,top:180,left:90,right:-90}[c],b=(100-i)/100*n;d==="round"&&i!==100&&(b+=m/2,b>=n&&(b=n-.01));var x=df/2;return{stroke:typeof u=="string"?u:void 0,strokeDasharray:"".concat(n,"px ").concat(t),strokeDashoffset:b+g,transform:"rotate(".concat(a+v+y,"deg)"),transformOrigin:"".concat(x,"px ").concat(x,"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}},mQ=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function qT(e){var t=e??[];return Array.isArray(t)?t:[t]}var gQ=function(t){var n=J(J({},sQ),t),r=n.id,i=n.prefixCls,a=n.steps,l=n.strokeWidth,c=n.trailWidth,u=n.gapDegree,d=u===void 0?0:u,m=n.gapPosition,g=n.trailColor,v=n.strokeLinecap,y=n.style,b=n.className,x=n.strokeColor,S=n.percent,w=jt(n,mQ),$=df/2,O=fQ(r),T="".concat(O,"-gradient"),_=$-l/2,R=Math.PI*2*_,M=d>0?90+d/2:-90,P=R*((360-d)/360),N=pt(a)==="object"?a:{count:a,gap:2},I=N.count,B=N.gap,A=qT(S),k=qT(x),j=k.find(function(U){return U&&pt(U)==="object"}),V=j&&pt(j)==="object",z=V?"butt":v,F=fb(R,P,0,100,M,d,m,g,z,l),q=cQ(),Z=function(){var K=0;return A.map(function(D,X){var Q=k[X]||k[k.length-1],Y=fb(R,P,K,D,M,d,m,Q,z,l);return K+=D,h.createElement(hQ,{key:X,color:Q,ptg:D,radius:_,prefixCls:i,gradientId:T,style:Y,strokeLinecap:z,strokeWidth:l,gapDegree:d,ref:function(oe){q[X]=oe},size:df})}).reverse()},H=function(){var K=Math.round(I*(A[0]/100)),D=100/I,X=0;return new Array(I).fill(null).map(function(Q,Y){var ie=Y<=K-1?k[0]:g,oe=ie&&pt(ie)==="object"?"url(#".concat(T,")"):void 0,le=fb(R,P,X,D,M,d,m,ie,"butt",l,B);return X+=(P-le.strokeDashoffset+B)*100/P,h.createElement("circle",{key:Y,className:"".concat(i,"-circle-path"),r:_,cx:$,cy:$,stroke:oe,strokeWidth:l,opacity:1,style:le,ref:function(ce){q[Y]=ce}})})};return h.createElement("svg",Ue({className:te("".concat(i,"-circle"),b),viewBox:"0 0 ".concat(df," ").concat(df),style:y,id:r,role:"presentation"},w),!I&&h.createElement("circle",{className:"".concat(i,"-circle-trail"),r:_,cx:$,cy:$,stroke:g,strokeLinecap:z,strokeWidth:c||l,style:F}),I?H():Z())};function Dl(e){return!e||e<0?0:e>100?100:e}function Jg({success:e,successPercent:t}){let n=t;return e&&"progress"in e&&(n=e.progress),e&&"percent"in e&&(n=e.percent),n}const pQ=({percent:e,success:t,successPercent:n})=>{const r=Dl(Jg({success:t,successPercent:n}));return[r,Dl(Dl(e)-r)]},vQ=({success:e={},strokeColor:t})=>{const{strokeColor:n}=e;return[n||pu.green,t||null]},fv=(e,t,n)=>{var r,i,a,l;let c=-1,u=-1;if(t==="step"){const d=n.steps,m=n.strokeWidth;typeof e=="string"||typeof e>"u"?(c=e==="small"?2:14,u=m??8):typeof e=="number"?[c,u]=[e,e]:[c=14,u=8]=Array.isArray(e)?e:[e.width,e.height],c*=d}else if(t==="line"){const d=n==null?void 0:n.strokeWidth;typeof e=="string"||typeof e>"u"?u=d||(e==="small"?6:8):typeof e=="number"?[c,u]=[e,e]:[c=-1,u=8]=Array.isArray(e)?e:[e.width,e.height]}else(t==="circle"||t==="dashboard")&&(typeof e=="string"||typeof e>"u"?[c,u]=e==="small"?[60,60]:[120,120]:typeof e=="number"?[c,u]=[e,e]:Array.isArray(e)&&(c=(i=(r=e[0])!==null&&r!==void 0?r:e[1])!==null&&i!==void 0?i:120,u=(l=(a=e[0])!==null&&a!==void 0?a:e[1])!==null&&l!==void 0?l:120));return[c,u]},yQ=3,bQ=e=>yQ/e*100,SQ=e=>{const{prefixCls:t,trailColor:n=null,strokeLinecap:r="round",gapPosition:i,gapDegree:a,width:l=120,type:c,children:u,success:d,size:m=l,steps:g}=e,[v,y]=fv(m,"circle");let{strokeWidth:b}=e;b===void 0&&(b=Math.max(bQ(v),6));const x={width:v,height:y,fontSize:v*.15+6},S=h.useMemo(()=>{if(a||a===0)return a;if(c==="dashboard")return 75},[a,c]),w=pQ(e),$=i||c==="dashboard"&&"bottom"||void 0,O=Object.prototype.toString.call(e.strokeColor)==="[object Object]",T=vQ({success:d,strokeColor:e.strokeColor}),_=te(`${t}-inner`,{[`${t}-circle-gradient`]:O}),R=h.createElement(gQ,{steps:g,percent:g?w[1]:w,strokeWidth:b,trailWidth:b,strokeColor:g?T[1]:T,strokeLinecap:r,trailColor:n,prefixCls:t,gapDegree:S,gapPosition:$}),M=v<=20,P=h.createElement("div",{className:_,style:x},R,!M&&u);return M?h.createElement(Vr,{title:u},P):P},ep="--progress-line-stroke-color",Ez="--progress-percent",KT=e=>{const t=e?"100%":"-100%";return new ln(`antProgress${e?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${t}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${t}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},xQ=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:Object.assign(Object.assign({},lr(e)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:e.fontSize},[`${t}-outer`]:{display:"inline-flex",alignItems:"center",width:"100%"},[`${t}-inner`]:{position:"relative",display:"inline-block",width:"100%",flex:1,overflow:"hidden",verticalAlign:"middle",backgroundColor:e.remainingColor,borderRadius:e.lineBorderRadius},[`${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.defaultColor}},[`${t}-success-bg, ${t}-bg`]:{position:"relative",background:e.defaultColor,borderRadius:e.lineBorderRadius,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`},[`${t}-layout-bottom`]:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",[`${t}-text`]:{width:"max-content",marginInlineStart:0,marginTop:e.marginXXS}},[`${t}-bg`]:{overflow:"hidden","&::after":{content:'""',background:{_multi_value_:!0,value:["inherit",`var(${ep})`]},height:"100%",width:`calc(1 / var(${Ez}) * 100%)`,display:"block"},[`&${t}-bg-inner`]:{minWidth:"max-content","&::after":{content:"none"},[`${t}-text-inner`]:{color:e.colorWhite,[`&${t}-text-bright`]:{color:"rgba(0, 0, 0, 0.45)"}}}},[`${t}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:e.colorSuccess},[`${t}-text`]:{display:"inline-block",marginInlineStart:e.marginXS,color:e.colorText,lineHeight:1,width:"2em",whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[n]:{fontSize:e.fontSize},[`&${t}-text-outer`]:{width:"max-content"},[`&${t}-text-outer${t}-text-start`]:{width:"max-content",marginInlineStart:0,marginInlineEnd:e.marginXS}},[`${t}-text-inner`]:{display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",marginInlineStart:0,padding:`0 ${ae(e.paddingXXS)}`,[`&${t}-text-start`]:{justifyContent:"start"},[`&${t}-text-end`]:{justifyContent:"end"}},[`&${t}-status-active`]:{[`${t}-bg::before`]:{position:"absolute",inset:0,backgroundColor:e.colorBgContainer,borderRadius:e.lineBorderRadius,opacity:0,animationName:KT(),animationDuration:e.progressActiveMotionDuration,animationTimingFunction:e.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${t}-rtl${t}-status-active`]:{[`${t}-bg::before`]:{animationName:KT(!0)}},[`&${t}-status-exception`]:{[`${t}-bg`]:{backgroundColor:e.colorError},[`${t}-text`]:{color:e.colorError}},[`&${t}-status-exception ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorError}},[`&${t}-status-success`]:{[`${t}-bg`]:{backgroundColor:e.colorSuccess},[`${t}-text`]:{color:e.colorSuccess}},[`&${t}-status-success ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorSuccess}}})}},CQ=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{[`${t}-circle-trail`]:{stroke:e.remainingColor},[`&${t}-circle ${t}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${t}-circle ${t}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:e.circleTextColor,fontSize:e.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[n]:{fontSize:e.circleIconFontSize}},[`${t}-circle&-status-exception`]:{[`${t}-text`]:{color:e.colorError}},[`${t}-circle&-status-success`]:{[`${t}-text`]:{color:e.colorSuccess}}},[`${t}-inline-circle`]:{lineHeight:1,[`${t}-inner`]:{verticalAlign:"bottom"}}}},wQ=e=>{const{componentCls:t}=e;return{[t]:{[`${t}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:e.progressStepMinWidth,marginInlineEnd:e.progressStepMarginInlineEnd,backgroundColor:e.remainingColor,transition:`all ${e.motionDurationSlow}`,"&-active":{backgroundColor:e.defaultColor}}}}}},EQ=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{[`${t}-small&-line, ${t}-small&-line ${t}-text ${n}`]:{fontSize:e.fontSizeSM}}}},$Q=e=>({circleTextColor:e.colorText,defaultColor:e.colorInfo,remainingColor:e.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:`${e.fontSize/e.fontSizeSM}em`}),OQ=Nn("Progress",e=>{const t=e.calc(e.marginXXS).div(2).equal(),n=sn(e,{progressStepMarginInlineEnd:t,progressStepMinWidth:t,progressActiveMotionDuration:"2.4s"});return[xQ(n),CQ(n),wQ(n),EQ(n)]},$Q);var RQ=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const TQ=e=>{let t=[];return Object.keys(e).forEach(n=>{const r=Number.parseFloat(n.replace(/%/g,""));Number.isNaN(r)||t.push({key:r,value:e[n]})}),t=t.sort((n,r)=>n.key-r.key),t.map(({key:n,value:r})=>`${r} ${n}%`).join(", ")},_Q=(e,t)=>{const{from:n=pu.blue,to:r=pu.blue,direction:i=t==="rtl"?"to left":"to right"}=e,a=RQ(e,["from","to","direction"]);if(Object.keys(a).length!==0){const c=TQ(a),u=`linear-gradient(${i}, ${c})`;return{background:u,[ep]:u}}const l=`linear-gradient(${i}, ${n}, ${r})`;return{background:l,[ep]:l}},NQ=e=>{const{prefixCls:t,direction:n,percent:r,size:i,strokeWidth:a,strokeColor:l,strokeLinecap:c="round",children:u,trailColor:d=null,percentPosition:m,success:g}=e,{align:v,type:y}=m,b=l&&typeof l!="string"?_Q(l,n):{[ep]:l,background:l},x=c==="square"||c==="butt"?0:void 0,S=i??[-1,a||(i==="small"?6:8)],[w,$]=fv(S,"line",{strokeWidth:a}),O={backgroundColor:d||void 0,borderRadius:x},T=Object.assign(Object.assign({width:`${Dl(r)}%`,height:$,borderRadius:x},b),{[Ez]:Dl(r)/100}),_=Jg(e),R={width:`${Dl(_)}%`,height:$,borderRadius:x,backgroundColor:g==null?void 0:g.strokeColor},M={width:w<0?"100%":w},P=h.createElement("div",{className:`${t}-inner`,style:O},h.createElement("div",{className:te(`${t}-bg`,`${t}-bg-${y}`),style:T},y==="inner"&&u),_!==void 0&&h.createElement("div",{className:`${t}-success-bg`,style:R})),N=y==="outer"&&v==="start",I=y==="outer"&&v==="end";return y==="outer"&&v==="center"?h.createElement("div",{className:`${t}-layout-bottom`},P,u):h.createElement("div",{className:`${t}-outer`,style:M},N&&u,P,I&&u)},IQ=e=>{const{size:t,steps:n,rounding:r=Math.round,percent:i=0,strokeWidth:a=8,strokeColor:l,trailColor:c=null,prefixCls:u,children:d}=e,m=r(n*(i/100)),v=t??[t==="small"?2:14,a],[y,b]=fv(v,"step",{steps:n,strokeWidth:a}),x=y/n,S=Array.from({length:n});for(let w=0;w<n;w++){const $=Array.isArray(l)?l[w]:l;S[w]=h.createElement("div",{key:w,className:te(`${u}-steps-item`,{[`${u}-steps-item-active`]:w<=m-1}),style:{backgroundColor:w<=m-1?$:c,width:x,height:b}})}return h.createElement("div",{className:`${u}-steps-outer`},S,d)};var MQ=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const PQ=["normal","exception","active","success"],tp=h.forwardRef((e,t)=>{const{prefixCls:n,className:r,rootClassName:i,steps:a,strokeColor:l,percent:c=0,size:u="default",showInfo:d=!0,type:m="line",status:g,format:v,style:y,percentPosition:b={}}=e,x=MQ(e,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style","percentPosition"]),{align:S="end",type:w="outer"}=b,$=Array.isArray(l)?l[0]:l,O=typeof l=="string"||Array.isArray(l)?l:void 0,T=h.useMemo(()=>{if($){const Z=typeof $=="string"?$:Object.values($)[0];return new _n(Z).isLight()}return!1},[l]),_=h.useMemo(()=>{var Z,H;const U=Jg(e);return Number.parseInt(U!==void 0?(Z=U??0)===null||Z===void 0?void 0:Z.toString():(H=c??0)===null||H===void 0?void 0:H.toString(),10)},[c,e.success,e.successPercent]),R=h.useMemo(()=>!PQ.includes(g)&&_>=100?"success":g||"normal",[g,_]),{getPrefixCls:M,direction:P,progress:N}=h.useContext(Tt),I=M("progress",n),[B,A,k]=OQ(I),j=m==="line",V=j&&!a,z=h.useMemo(()=>{if(!d)return null;const Z=Jg(e);let H;const U=v||(D=>`${D}%`),K=j&&T&&w==="inner";return w==="inner"||v||R!=="exception"&&R!=="success"?H=U(Dl(c),Dl(Z)):R==="exception"?H=j?h.createElement(Xu,null):h.createElement(Qu,null):R==="success"&&(H=j?h.createElement(Dp,null):h.createElement(s1,null)),h.createElement("span",{className:te(`${I}-text`,{[`${I}-text-bright`]:K,[`${I}-text-${S}`]:V,[`${I}-text-${w}`]:V}),title:typeof H=="string"?H:void 0},H)},[d,c,_,R,m,I,v]);let F;m==="line"?F=a?h.createElement(IQ,Object.assign({},e,{strokeColor:O,prefixCls:I,steps:typeof a=="object"?a.count:a}),z):h.createElement(NQ,Object.assign({},e,{strokeColor:$,prefixCls:I,direction:P,percentPosition:{align:S,type:w}}),z):(m==="circle"||m==="dashboard")&&(F=h.createElement(SQ,Object.assign({},e,{strokeColor:$,prefixCls:I,progressStatus:R}),z));const q=te(I,`${I}-status-${R}`,{[`${I}-${m==="dashboard"&&"circle"||m}`]:m!=="line",[`${I}-inline-circle`]:m==="circle"&&fv(u,"circle")[0]<=20,[`${I}-line`]:V,[`${I}-line-align-${S}`]:V,[`${I}-line-position-${w}`]:V,[`${I}-steps`]:a,[`${I}-show-info`]:d,[`${I}-${u}`]:typeof u=="string",[`${I}-rtl`]:P==="rtl"},N==null?void 0:N.className,r,i,A,k);return B(h.createElement("div",Object.assign({ref:t,style:Object.assign(Object.assign({},N==null?void 0:N.style),y),className:q,role:"progressbar","aria-valuenow":_,"aria-valuemin":0,"aria-valuemax":100},tr(x,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),F))});var AQ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.1 209.3l-56.4 44.1C775.8 155.1 656.2 92 521.9 92 290 92 102.3 279.5 102 511.5 101.7 743.7 289.8 932 521.9 932c181.3 0 335.8-115 394.6-276.1 1.5-4.2-.7-8.9-4.9-10.3l-56.7-19.5a8 8 0 00-10.1 4.8c-1.8 5-3.8 10-5.9 14.9-17.3 41-42.1 77.8-73.7 109.4A344.77 344.77 0 01655.9 829c-42.3 17.9-87.4 27-133.8 27-46.5 0-91.5-9.1-133.8-27A341.5 341.5 0 01279 755.2a342.16 342.16 0 01-73.7-109.4c-17.9-42.4-27-87.4-27-133.9s9.1-91.5 27-133.9c17.3-41 42.1-77.8 73.7-109.4 31.6-31.6 68.4-56.4 109.3-73.8 42.3-17.9 87.4-27 133.8-27 46.5 0 91.5 9.1 133.8 27a341.5 341.5 0 01109.3 73.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 003 14.1l175.6 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c-.1-6.6-7.8-10.3-13-6.2z"}}]},name:"reload",theme:"outlined"},zQ=function(t,n){return h.createElement(mn,Ue({},t,{ref:n,icon:AQ}))},jQ=h.forwardRef(zQ),M1=h.createContext(null),DQ=h.createContext({}),LQ=function(t){for(var n=t.prefixCls,r=t.level,i=t.isStart,a=t.isEnd,l="".concat(n,"-indent-unit"),c=[],u=0;u<r;u+=1)c.push(h.createElement("span",{key:u,className:te(l,G(G({},"".concat(l,"-start"),i[u]),"".concat(l,"-end"),a[u]))}));return h.createElement("span",{"aria-hidden":"true",className:"".concat(n,"-indent")},c)};const kQ=h.memo(LQ);var BQ=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],WT="open",GT="close",HQ="---",qf=function(t){var n,r,i,a=t.eventKey,l=t.className,c=t.style,u=t.dragOver,d=t.dragOverGapTop,m=t.dragOverGapBottom,g=t.isLeaf,v=t.isStart,y=t.isEnd,b=t.expanded,x=t.selected,S=t.checked,w=t.halfChecked,$=t.loading,O=t.domRef,T=t.active,_=t.data,R=t.onMouseMove,M=t.selectable,P=jt(t,BQ),N=re.useContext(M1),I=re.useContext(DQ),B=re.useRef(null),A=re.useState(!1),k=me(A,2),j=k[0],V=k[1],z=!!(N.disabled||t.disabled||(n=I.nodeDisabled)!==null&&n!==void 0&&n.call(I,_)),F=re.useMemo(function(){return!N.checkable||t.checkable===!1?!1:N.checkable},[N.checkable,t.checkable]),q=function(Ie){z||N.onNodeSelect(Ie,Ir(t))},Z=function(Ie){z||!F||t.disableCheckbox||N.onNodeCheck(Ie,Ir(t),!S)},H=re.useMemo(function(){return typeof M=="boolean"?M:N.selectable},[M,N.selectable]),U=function(Ie){N.onNodeClick(Ie,Ir(t)),H?q(Ie):Z(Ie)},K=function(Ie){N.onNodeDoubleClick(Ie,Ir(t))},D=function(Ie){N.onNodeMouseEnter(Ie,Ir(t))},X=function(Ie){N.onNodeMouseLeave(Ie,Ir(t))},Q=function(Ie){N.onNodeContextMenu(Ie,Ir(t))},Y=re.useMemo(function(){return!!(N.draggable&&(!N.draggable.nodeDraggable||N.draggable.nodeDraggable(_)))},[N.draggable,_]),ie=function(Ie){Ie.stopPropagation(),V(!0),N.onNodeDragStart(Ie,t);try{Ie.dataTransfer.setData("text/plain","")}catch{}},oe=function(Ie){Ie.preventDefault(),Ie.stopPropagation(),N.onNodeDragEnter(Ie,t)},le=function(Ie){Ie.preventDefault(),Ie.stopPropagation(),N.onNodeDragOver(Ie,t)},Ce=function(Ie){Ie.stopPropagation(),N.onNodeDragLeave(Ie,t)},ce=function(Ie){Ie.stopPropagation(),V(!1),N.onNodeDragEnd(Ie,t)},de=function(Ie){Ie.preventDefault(),Ie.stopPropagation(),V(!1),N.onNodeDrop(Ie,t)},ye=function(Ie){$||N.onNodeExpand(Ie,Ir(t))},ve=re.useMemo(function(){var Fe=_i(N.keyEntities,a)||{},Ie=Fe.children;return!!(Ie||[]).length},[N.keyEntities,a]),ge=re.useMemo(function(){return g===!1?!1:g||!N.loadData&&!ve||N.loadData&&t.loaded&&!ve},[g,N.loadData,ve,t.loaded]);re.useEffect(function(){$||typeof N.loadData=="function"&&b&&!ge&&!t.loaded&&N.onNodeLoad(Ir(t))},[$,N.loadData,N.onNodeLoad,b,ge,t]);var fe=re.useMemo(function(){var Fe;return(Fe=N.draggable)!==null&&Fe!==void 0&&Fe.icon?re.createElement("span",{className:"".concat(N.prefixCls,"-draggable-icon")},N.draggable.icon):null},[N.draggable]),we=function(Ie){var Ge=t.switcherIcon||N.switcherIcon;return typeof Ge=="function"?Ge(J(J({},t),{},{isLeaf:Ie})):Ge},Te=function(){if(ge){var Ie=we(!0);return Ie!==!1?re.createElement("span",{className:te("".concat(N.prefixCls,"-switcher"),"".concat(N.prefixCls,"-switcher-noop"))},Ie):null}var Ge=we(!1);return Ge!==!1?re.createElement("span",{onClick:ye,className:te("".concat(N.prefixCls,"-switcher"),"".concat(N.prefixCls,"-switcher_").concat(b?WT:GT))},Ge):null},je=re.useMemo(function(){if(!F)return null;var Fe=typeof F!="boolean"?F:null;return re.createElement("span",{className:te("".concat(N.prefixCls,"-checkbox"),G(G(G({},"".concat(N.prefixCls,"-checkbox-checked"),S),"".concat(N.prefixCls,"-checkbox-indeterminate"),!S&&w),"".concat(N.prefixCls,"-checkbox-disabled"),z||t.disableCheckbox)),onClick:Z,role:"checkbox","aria-checked":w?"mixed":S,"aria-disabled":z||t.disableCheckbox,"aria-label":"Select ".concat(typeof t.title=="string"?t.title:"tree node")},Fe)},[F,S,w,z,t.disableCheckbox,t.title]),ze=re.useMemo(function(){return ge?null:b?WT:GT},[ge,b]),Oe=re.useMemo(function(){return re.createElement("span",{className:te("".concat(N.prefixCls,"-iconEle"),"".concat(N.prefixCls,"-icon__").concat(ze||"docu"),G({},"".concat(N.prefixCls,"-icon_loading"),$))})},[N.prefixCls,ze,$]),De=re.useMemo(function(){var Fe=!!N.draggable,Ie=!t.disabled&&Fe&&N.dragOverNodeKey===a;return Ie?N.dropIndicatorRender({dropPosition:N.dropPosition,dropLevelOffset:N.dropLevelOffset,indent:N.indent,prefixCls:N.prefixCls,direction:N.direction}):null},[N.dropPosition,N.dropLevelOffset,N.indent,N.prefixCls,N.direction,N.draggable,N.dragOverNodeKey,N.dropIndicatorRender]),Ne=re.useMemo(function(){var Fe=t.title,Ie=Fe===void 0?HQ:Fe,Ge="".concat(N.prefixCls,"-node-content-wrapper"),Le;if(N.showIcon){var Ze=t.icon||N.icon;Le=Ze?re.createElement("span",{className:te("".concat(N.prefixCls,"-iconEle"),"".concat(N.prefixCls,"-icon__customize"))},typeof Ze=="function"?Ze(t):Ze):Oe}else N.loadData&&$&&(Le=Oe);var _e;return typeof Ie=="function"?_e=Ie(_):N.titleRender?_e=N.titleRender(_):_e=Ie,re.createElement("span",{ref:B,title:typeof Ie=="string"?Ie:"",className:te(Ge,"".concat(Ge,"-").concat(ze||"normal"),G({},"".concat(N.prefixCls,"-node-selected"),!z&&(x||j))),onMouseEnter:D,onMouseLeave:X,onContextMenu:Q,onClick:U,onDoubleClick:K},Le,re.createElement("span",{className:"".concat(N.prefixCls,"-title")},_e),De)},[N.prefixCls,N.showIcon,t,N.icon,Oe,N.titleRender,_,ze,D,X,Q,U,K]),be=La(P,{aria:!0,data:!0}),Ye=_i(N.keyEntities,a)||{},he=Ye.level,$e=y[y.length-1],Me=!z&&Y,Ae=N.draggingNodeKey===a,Xe=M!==void 0?{"aria-selected":!!M}:void 0;return re.createElement("div",Ue({ref:O,role:"treeitem","aria-expanded":g?void 0:b,className:te(l,"".concat(N.prefixCls,"-treenode"),(i={},G(G(G(G(G(G(G(G(G(G(i,"".concat(N.prefixCls,"-treenode-disabled"),z),"".concat(N.prefixCls,"-treenode-switcher-").concat(b?"open":"close"),!g),"".concat(N.prefixCls,"-treenode-checkbox-checked"),S),"".concat(N.prefixCls,"-treenode-checkbox-indeterminate"),w),"".concat(N.prefixCls,"-treenode-selected"),x),"".concat(N.prefixCls,"-treenode-loading"),$),"".concat(N.prefixCls,"-treenode-active"),T),"".concat(N.prefixCls,"-treenode-leaf-last"),$e),"".concat(N.prefixCls,"-treenode-draggable"),Y),"dragging",Ae),G(G(G(G(G(G(G(i,"drop-target",N.dropTargetKey===a),"drop-container",N.dropContainerKey===a),"drag-over",!z&&u),"drag-over-gap-top",!z&&d),"drag-over-gap-bottom",!z&&m),"filter-node",(r=N.filterTreeNode)===null||r===void 0?void 0:r.call(N,Ir(t))),"".concat(N.prefixCls,"-treenode-leaf"),ge))),style:c,draggable:Me,onDragStart:Me?ie:void 0,onDragEnter:Y?oe:void 0,onDragOver:Y?le:void 0,onDragLeave:Y?Ce:void 0,onDrop:Y?de:void 0,onDragEnd:Y?ce:void 0,onMouseMove:R},Xe,be),re.createElement(kQ,{prefixCls:N.prefixCls,level:he,isStart:v,isEnd:y}),fe,Te(),je,Ne)};qf.isTreeNode=1;function $o(e,t){if(!e)return[];var n=e.slice(),r=n.indexOf(t);return r>=0&&n.splice(r,1),n}function ml(e,t){var n=(e||[]).slice();return n.indexOf(t)===-1&&n.push(t),n}function P1(e){return e.split("-")}function FQ(e,t){var n=[],r=_i(t,e);function i(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];a.forEach(function(l){var c=l.key,u=l.children;n.push(c),i(u)})}return i(r.children),n}function VQ(e){if(e.parent){var t=P1(e.pos);return Number(t[t.length-1])===e.parent.children.length-1}return!1}function UQ(e){var t=P1(e.pos);return Number(t[t.length-1])===0}function XT(e,t,n,r,i,a,l,c,u,d){var m,g=e.clientX,v=e.clientY,y=e.target.getBoundingClientRect(),b=y.top,x=y.height,S=(d==="rtl"?-1:1)*(((i==null?void 0:i.x)||0)-g),w=(S-12)/r,$=u.filter(function(z){var F;return(F=c[z])===null||F===void 0||(F=F.children)===null||F===void 0?void 0:F.length}),O=_i(c,n.eventKey);if(v<b+x/2){var T=l.findIndex(function(z){return z.key===O.key}),_=T<=0?0:T-1,R=l[_].key;O=_i(c,R)}var M=O.key,P=O,N=O.key,I=0,B=0;if(!$.includes(M))for(var A=0;A<w&&VQ(O);A+=1)O=O.parent,B+=1;var k=t.data,j=O.node,V=!0;return UQ(O)&&O.level===0&&v<b+x/2&&a({dragNode:k,dropNode:j,dropPosition:-1})&&O.key===n.eventKey?I=-1:(P.children||[]).length&&$.includes(N)?a({dragNode:k,dropNode:j,dropPosition:0})?I=0:V=!1:B===0?w>-1.5?a({dragNode:k,dropNode:j,dropPosition:1})?I=1:V=!1:a({dragNode:k,dropNode:j,dropPosition:0})?I=0:a({dragNode:k,dropNode:j,dropPosition:1})?I=1:V=!1:a({dragNode:k,dropNode:j,dropPosition:1})?I=1:V=!1,{dropPosition:I,dropLevelOffset:B,dropTargetKey:O.key,dropTargetPos:O.pos,dragOverNodeKey:N,dropContainerKey:I===0?null:((m=O.parent)===null||m===void 0?void 0:m.key)||null,dropAllowed:V}}function QT(e,t){if(e){var n=t.multiple;return n?e.slice():e.length?[e[0]]:e}}function hb(e){if(!e)return null;var t;if(Array.isArray(e))t={checkedKeys:e,halfCheckedKeys:void 0};else if(pt(e)==="object")t={checkedKeys:e.checked||void 0,halfCheckedKeys:e.halfChecked||void 0};else return ur(!1,"`checkedKeys` is not an array or an object"),null;return t}function bx(e,t){var n=new Set;function r(i){if(!n.has(i)){var a=_i(t,i);if(a){n.add(i);var l=a.parent,c=a.node;c.disabled||l&&r(l.key)}}}return(e||[]).forEach(function(i){r(i)}),qe(n)}var qQ=function(t){var n=t.dropPosition,r=t.dropLevelOffset,i=t.indent,a={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(n){case-1:a.top=0,a.left=-r*i;break;case 1:a.bottom=0,a.left=-r*i;break;case 0:a.bottom=0,a.left=i;break}return re.createElement("div",{style:a})};function $z(e){if(e==null)throw new TypeError("Cannot destructure "+e)}function KQ(e,t){var n=h.useState(!1),r=me(n,2),i=r[0],a=r[1];on(function(){if(i)return e(),function(){t()}},[i]),on(function(){return a(!0),function(){a(!1)}},[])}var WQ=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],GQ=h.forwardRef(function(e,t){var n=e.className,r=e.style,i=e.motion,a=e.motionNodes,l=e.motionType,c=e.onMotionStart,u=e.onMotionEnd,d=e.active,m=e.treeNodeRequiredProps,g=jt(e,WQ),v=h.useState(!0),y=me(v,2),b=y[0],x=y[1],S=h.useContext(M1),w=S.prefixCls,$=a&&l!=="hide";on(function(){a&&$!==b&&x($)},[a]);var O=function(){a&&c()},T=h.useRef(!1),_=function(){a&&!T.current&&(T.current=!0,u())};KQ(O,_);var R=function(P){$===P&&_()};return a?h.createElement(ao,Ue({ref:t,visible:b},i,{motionAppear:l==="show",onVisibleChanged:R}),function(M,P){var N=M.className,I=M.style;return h.createElement("div",{ref:P,className:te("".concat(w,"-treenode-motion"),N),style:I},a.map(function(B){var A=Object.assign({},($z(B.data),B.data)),k=B.title,j=B.key,V=B.isStart,z=B.isEnd;delete A.children;var F=bf(j,m);return h.createElement(qf,Ue({},A,F,{title:k,active:d,data:B.data,key:j,isStart:V,isEnd:z}))}))}):h.createElement(qf,Ue({domRef:t,className:n,style:r},g,{active:d}))});function XQ(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=e.length,r=t.length;if(Math.abs(n-r)!==1)return{add:!1,key:null};function i(a,l){var c=new Map;a.forEach(function(d){c.set(d,!0)});var u=l.filter(function(d){return!c.has(d)});return u.length===1?u[0]:null}return n<r?{add:!0,key:i(e,t)}:{add:!1,key:i(t,e)}}function YT(e,t,n){var r=e.findIndex(function(c){return c.key===n}),i=e[r+1],a=t.findIndex(function(c){return c.key===n});if(i){var l=t.findIndex(function(c){return c.key===i.key});return t.slice(a+1,l)}return t.slice(a+1)}var QQ=["prefixCls","data","selectable","checkable","expandedKeys","selectedKeys","checkedKeys","loadedKeys","loadingKeys","halfCheckedKeys","keyEntities","disabled","dragging","dragOverNodeKey","dropPosition","motion","height","itemHeight","virtual","scrollWidth","focusable","activeItem","focused","tabIndex","onKeyDown","onFocus","onBlur","onActiveChange","onListChangeStart","onListChangeEnd"],ZT={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},YQ=function(){},Us="RC_TREE_MOTION_".concat(Math.random()),Sx={key:Us},Oz={key:Us,level:0,index:0,pos:"0",node:Sx,nodes:[Sx]},JT={parent:null,children:[],pos:Oz.pos,data:Sx,title:null,key:Us,isStart:[],isEnd:[]};function e_(e,t,n,r){return t===!1||!n?e:e.slice(0,Math.ceil(n/r)+1)}function t_(e){var t=e.key,n=e.pos;return $h(t,n)}function ZQ(e){for(var t=String(e.data.key),n=e;n.parent;)n=n.parent,t="".concat(n.data.key," > ").concat(t);return t}var JQ=h.forwardRef(function(e,t){var n=e.prefixCls,r=e.data;e.selectable,e.checkable;var i=e.expandedKeys,a=e.selectedKeys,l=e.checkedKeys,c=e.loadedKeys,u=e.loadingKeys,d=e.halfCheckedKeys,m=e.keyEntities,g=e.disabled,v=e.dragging,y=e.dragOverNodeKey,b=e.dropPosition,x=e.motion,S=e.height,w=e.itemHeight,$=e.virtual,O=e.scrollWidth,T=e.focusable,_=e.activeItem,R=e.focused,M=e.tabIndex,P=e.onKeyDown,N=e.onFocus,I=e.onBlur,B=e.onActiveChange,A=e.onListChangeStart,k=e.onListChangeEnd,j=jt(e,QQ),V=h.useRef(null),z=h.useRef(null);h.useImperativeHandle(t,function(){return{scrollTo:function(De){V.current.scrollTo(De)},getIndentWidth:function(){return z.current.offsetWidth}}});var F=h.useState(i),q=me(F,2),Z=q[0],H=q[1],U=h.useState(r),K=me(U,2),D=K[0],X=K[1],Q=h.useState(r),Y=me(Q,2),ie=Y[0],oe=Y[1],le=h.useState([]),Ce=me(le,2),ce=Ce[0],de=Ce[1],ye=h.useState(null),ve=me(ye,2),ge=ve[0],fe=ve[1],we=h.useRef(r);we.current=r;function Te(){var Oe=we.current;X(Oe),oe(Oe),de([]),fe(null),k()}on(function(){H(i);var Oe=XQ(Z,i);if(Oe.key!==null)if(Oe.add){var De=D.findIndex(function(Me){var Ae=Me.key;return Ae===Oe.key}),Ne=e_(YT(D,r,Oe.key),$,S,w),be=D.slice();be.splice(De+1,0,JT),oe(be),de(Ne),fe("show")}else{var Ye=r.findIndex(function(Me){var Ae=Me.key;return Ae===Oe.key}),he=e_(YT(r,D,Oe.key),$,S,w),$e=r.slice();$e.splice(Ye+1,0,JT),oe($e),de(he),fe("hide")}else D!==r&&(X(r),oe(r))},[i,r]),h.useEffect(function(){v||Te()},[v]);var je=x?ie:r,ze={expandedKeys:i,selectedKeys:a,loadedKeys:c,loadingKeys:u,checkedKeys:l,halfCheckedKeys:d,dragOverNodeKey:y,dropPosition:b,keyEntities:m};return h.createElement(h.Fragment,null,R&&_&&h.createElement("span",{style:ZT,"aria-live":"assertive"},ZQ(_)),h.createElement("div",null,h.createElement("input",{style:ZT,disabled:T===!1||g,tabIndex:T!==!1?M:null,onKeyDown:P,onFocus:N,onBlur:I,value:"",onChange:YQ,"aria-label":"for screen reader"})),h.createElement("div",{className:"".concat(n,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},h.createElement("div",{className:"".concat(n,"-indent")},h.createElement("div",{ref:z,className:"".concat(n,"-indent-unit")}))),h.createElement(o1,Ue({},j,{data:je,itemKey:t_,height:S,fullHeight:!1,virtual:$,itemHeight:w,scrollWidth:O,prefixCls:"".concat(n,"-list"),ref:V,role:"tree",onVisibleChange:function(De){De.every(function(Ne){return t_(Ne)!==Us})&&Te()}}),function(Oe){var De=Oe.pos,Ne=Object.assign({},($z(Oe.data),Oe.data)),be=Oe.title,Ye=Oe.key,he=Oe.isStart,$e=Oe.isEnd,Me=$h(Ye,De);delete Ne.key,delete Ne.children;var Ae=bf(Me,ze);return h.createElement(GQ,Ue({},Ne,Ae,{title:be,active:!!_&&Ye===_.key,pos:De,data:Oe.data,isStart:he,isEnd:$e,motion:x,motionNodes:Ye===Us?ce:null,motionType:ge,onMotionStart:A,onMotionEnd:Te,treeNodeRequiredProps:ze,onMouseMove:function(){B(null)}}))}))}),eY=10,A1=(function(e){Ba(n,e);var t=io(n);function n(){var r;yr(this,n);for(var i=arguments.length,a=new Array(i),l=0;l<i;l++)a[l]=arguments[l];return r=t.call.apply(t,[this].concat(a)),G(lt(r),"destroyed",!1),G(lt(r),"delayedDragEnterLogic",void 0),G(lt(r),"loadingRetryTimes",{}),G(lt(r),"state",{keyEntities:{},indent:null,selectedKeys:[],checkedKeys:[],halfCheckedKeys:[],loadedKeys:[],loadingKeys:[],expandedKeys:[],draggingNodeKey:null,dragChildrenKeys:[],dropTargetKey:null,dropPosition:null,dropContainerKey:null,dropLevelOffset:null,dropTargetPos:null,dropAllowed:!0,dragOverNodeKey:null,treeData:[],flattenNodes:[],focused:!1,activeKey:null,listChanging:!1,prevProps:null,fieldNames:Fu()}),G(lt(r),"dragStartMousePosition",null),G(lt(r),"dragNodeProps",null),G(lt(r),"currentMouseOverDroppableNodeKey",null),G(lt(r),"listRef",h.createRef()),G(lt(r),"onNodeDragStart",function(c,u){var d=r.state,m=d.expandedKeys,g=d.keyEntities,v=r.props.onDragStart,y=u.eventKey;r.dragNodeProps=u,r.dragStartMousePosition={x:c.clientX,y:c.clientY};var b=$o(m,y);r.setState({draggingNodeKey:y,dragChildrenKeys:FQ(y,g),indent:r.listRef.current.getIndentWidth()}),r.setExpandedKeys(b),window.addEventListener("dragend",r.onWindowDragEnd),v==null||v({event:c,node:Ir(u)})}),G(lt(r),"onNodeDragEnter",function(c,u){var d=r.state,m=d.expandedKeys,g=d.keyEntities,v=d.dragChildrenKeys,y=d.flattenNodes,b=d.indent,x=r.props,S=x.onDragEnter,w=x.onExpand,$=x.allowDrop,O=x.direction,T=u.pos,_=u.eventKey;if(r.currentMouseOverDroppableNodeKey!==_&&(r.currentMouseOverDroppableNodeKey=_),!r.dragNodeProps){r.resetDragState();return}var R=XT(c,r.dragNodeProps,u,b,r.dragStartMousePosition,$,y,g,m,O),M=R.dropPosition,P=R.dropLevelOffset,N=R.dropTargetKey,I=R.dropContainerKey,B=R.dropTargetPos,A=R.dropAllowed,k=R.dragOverNodeKey;if(v.includes(N)||!A){r.resetDragState();return}if(r.delayedDragEnterLogic||(r.delayedDragEnterLogic={}),Object.keys(r.delayedDragEnterLogic).forEach(function(j){clearTimeout(r.delayedDragEnterLogic[j])}),r.dragNodeProps.eventKey!==u.eventKey&&(c.persist(),r.delayedDragEnterLogic[T]=window.setTimeout(function(){if(r.state.draggingNodeKey!==null){var j=qe(m),V=_i(g,u.eventKey);V&&(V.children||[]).length&&(j=ml(m,u.eventKey)),r.props.hasOwnProperty("expandedKeys")||r.setExpandedKeys(j),w==null||w(j,{node:Ir(u),expanded:!0,nativeEvent:c.nativeEvent})}},800)),r.dragNodeProps.eventKey===N&&P===0){r.resetDragState();return}r.setState({dragOverNodeKey:k,dropPosition:M,dropLevelOffset:P,dropTargetKey:N,dropContainerKey:I,dropTargetPos:B,dropAllowed:A}),S==null||S({event:c,node:Ir(u),expandedKeys:m})}),G(lt(r),"onNodeDragOver",function(c,u){var d=r.state,m=d.dragChildrenKeys,g=d.flattenNodes,v=d.keyEntities,y=d.expandedKeys,b=d.indent,x=r.props,S=x.onDragOver,w=x.allowDrop,$=x.direction;if(r.dragNodeProps){var O=XT(c,r.dragNodeProps,u,b,r.dragStartMousePosition,w,g,v,y,$),T=O.dropPosition,_=O.dropLevelOffset,R=O.dropTargetKey,M=O.dropContainerKey,P=O.dropTargetPos,N=O.dropAllowed,I=O.dragOverNodeKey;m.includes(R)||!N||(r.dragNodeProps.eventKey===R&&_===0?r.state.dropPosition===null&&r.state.dropLevelOffset===null&&r.state.dropTargetKey===null&&r.state.dropContainerKey===null&&r.state.dropTargetPos===null&&r.state.dropAllowed===!1&&r.state.dragOverNodeKey===null||r.resetDragState():T===r.state.dropPosition&&_===r.state.dropLevelOffset&&R===r.state.dropTargetKey&&M===r.state.dropContainerKey&&P===r.state.dropTargetPos&&N===r.state.dropAllowed&&I===r.state.dragOverNodeKey||r.setState({dropPosition:T,dropLevelOffset:_,dropTargetKey:R,dropContainerKey:M,dropTargetPos:P,dropAllowed:N,dragOverNodeKey:I}),S==null||S({event:c,node:Ir(u)}))}}),G(lt(r),"onNodeDragLeave",function(c,u){r.currentMouseOverDroppableNodeKey===u.eventKey&&!c.currentTarget.contains(c.relatedTarget)&&(r.resetDragState(),r.currentMouseOverDroppableNodeKey=null);var d=r.props.onDragLeave;d==null||d({event:c,node:Ir(u)})}),G(lt(r),"onWindowDragEnd",function(c){r.onNodeDragEnd(c,null,!0),window.removeEventListener("dragend",r.onWindowDragEnd)}),G(lt(r),"onNodeDragEnd",function(c,u){var d=r.props.onDragEnd;r.setState({dragOverNodeKey:null}),r.cleanDragState(),d==null||d({event:c,node:Ir(u)}),r.dragNodeProps=null,window.removeEventListener("dragend",r.onWindowDragEnd)}),G(lt(r),"onNodeDrop",function(c,u){var d,m=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,g=r.state,v=g.dragChildrenKeys,y=g.dropPosition,b=g.dropTargetKey,x=g.dropTargetPos,S=g.dropAllowed;if(S){var w=r.props.onDrop;if(r.setState({dragOverNodeKey:null}),r.cleanDragState(),b!==null){var $=J(J({},bf(b,r.getTreeNodeRequiredProps())),{},{active:((d=r.getActiveItem())===null||d===void 0?void 0:d.key)===b,data:_i(r.state.keyEntities,b).node}),O=v.includes(b);ur(!O,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var T=P1(x),_={event:c,node:Ir($),dragNode:r.dragNodeProps?Ir(r.dragNodeProps):null,dragNodesKeys:[r.dragNodeProps.eventKey].concat(v),dropToGap:y!==0,dropPosition:y+Number(T[T.length-1])};m||w==null||w(_),r.dragNodeProps=null}}}),G(lt(r),"cleanDragState",function(){var c=r.state.draggingNodeKey;c!==null&&r.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),r.dragStartMousePosition=null,r.currentMouseOverDroppableNodeKey=null}),G(lt(r),"triggerExpandActionExpand",function(c,u){var d=r.state,m=d.expandedKeys,g=d.flattenNodes,v=u.expanded,y=u.key,b=u.isLeaf;if(!(b||c.shiftKey||c.metaKey||c.ctrlKey)){var x=g.filter(function(w){return w.key===y})[0],S=Ir(J(J({},bf(y,r.getTreeNodeRequiredProps())),{},{data:x.data}));r.setExpandedKeys(v?$o(m,y):ml(m,y)),r.onNodeExpand(c,S)}}),G(lt(r),"onNodeClick",function(c,u){var d=r.props,m=d.onClick,g=d.expandAction;g==="click"&&r.triggerExpandActionExpand(c,u),m==null||m(c,u)}),G(lt(r),"onNodeDoubleClick",function(c,u){var d=r.props,m=d.onDoubleClick,g=d.expandAction;g==="doubleClick"&&r.triggerExpandActionExpand(c,u),m==null||m(c,u)}),G(lt(r),"onNodeSelect",function(c,u){var d=r.state.selectedKeys,m=r.state,g=m.keyEntities,v=m.fieldNames,y=r.props,b=y.onSelect,x=y.multiple,S=u.selected,w=u[v.key],$=!S;$?x?d=ml(d,w):d=[w]:d=$o(d,w);var O=d.map(function(T){var _=_i(g,T);return _?_.node:null}).filter(Boolean);r.setUncontrolledState({selectedKeys:d}),b==null||b(d,{event:"select",selected:$,node:u,selectedNodes:O,nativeEvent:c.nativeEvent})}),G(lt(r),"onNodeCheck",function(c,u,d){var m=r.state,g=m.keyEntities,v=m.checkedKeys,y=m.halfCheckedKeys,b=r.props,x=b.checkStrictly,S=b.onCheck,w=u.key,$,O={event:"check",node:u,checked:d,nativeEvent:c.nativeEvent};if(x){var T=d?ml(v,w):$o(v,w),_=$o(y,w);$={checked:T,halfChecked:_},O.checkedNodes=T.map(function(B){return _i(g,B)}).filter(Boolean).map(function(B){return B.node}),r.setUncontrolledState({checkedKeys:T})}else{var R=ab([].concat(qe(v),[w]),!0,g),M=R.checkedKeys,P=R.halfCheckedKeys;if(!d){var N=new Set(M);N.delete(w);var I=ab(Array.from(N),{halfCheckedKeys:P},g);M=I.checkedKeys,P=I.halfCheckedKeys}$=M,O.checkedNodes=[],O.checkedNodesPositions=[],O.halfCheckedKeys=P,M.forEach(function(B){var A=_i(g,B);if(A){var k=A.node,j=A.pos;O.checkedNodes.push(k),O.checkedNodesPositions.push({node:k,pos:j})}}),r.setUncontrolledState({checkedKeys:M},!1,{halfCheckedKeys:P})}S==null||S($,O)}),G(lt(r),"onNodeLoad",function(c){var u,d=c.key,m=r.state.keyEntities,g=_i(m,d);if(!(g!=null&&(u=g.children)!==null&&u!==void 0&&u.length)){var v=new Promise(function(y,b){r.setState(function(x){var S=x.loadedKeys,w=S===void 0?[]:S,$=x.loadingKeys,O=$===void 0?[]:$,T=r.props,_=T.loadData,R=T.onLoad;if(!_||w.includes(d)||O.includes(d))return null;var M=_(c);return M.then(function(){var P=r.state.loadedKeys,N=ml(P,d);R==null||R(N,{event:"load",node:c}),r.setUncontrolledState({loadedKeys:N}),r.setState(function(I){return{loadingKeys:$o(I.loadingKeys,d)}}),y()}).catch(function(P){if(r.setState(function(I){return{loadingKeys:$o(I.loadingKeys,d)}}),r.loadingRetryTimes[d]=(r.loadingRetryTimes[d]||0)+1,r.loadingRetryTimes[d]>=eY){var N=r.state.loadedKeys;ur(!1,"Retry for `loadData` many times but still failed. No more retry."),r.setUncontrolledState({loadedKeys:ml(N,d)}),y()}b(P)}),{loadingKeys:ml(O,d)}})});return v.catch(function(){}),v}}),G(lt(r),"onNodeMouseEnter",function(c,u){var d=r.props.onMouseEnter;d==null||d({event:c,node:u})}),G(lt(r),"onNodeMouseLeave",function(c,u){var d=r.props.onMouseLeave;d==null||d({event:c,node:u})}),G(lt(r),"onNodeContextMenu",function(c,u){var d=r.props.onRightClick;d&&(c.preventDefault(),d({event:c,node:u}))}),G(lt(r),"onFocus",function(){var c=r.props.onFocus;r.setState({focused:!0});for(var u=arguments.length,d=new Array(u),m=0;m<u;m++)d[m]=arguments[m];c==null||c.apply(void 0,d)}),G(lt(r),"onBlur",function(){var c=r.props.onBlur;r.setState({focused:!1}),r.onActiveChange(null);for(var u=arguments.length,d=new Array(u),m=0;m<u;m++)d[m]=arguments[m];c==null||c.apply(void 0,d)}),G(lt(r),"getTreeNodeRequiredProps",function(){var c=r.state,u=c.expandedKeys,d=c.selectedKeys,m=c.loadedKeys,g=c.loadingKeys,v=c.checkedKeys,y=c.halfCheckedKeys,b=c.dragOverNodeKey,x=c.dropPosition,S=c.keyEntities;return{expandedKeys:u||[],selectedKeys:d||[],loadedKeys:m||[],loadingKeys:g||[],checkedKeys:v||[],halfCheckedKeys:y||[],dragOverNodeKey:b,dropPosition:x,keyEntities:S}}),G(lt(r),"setExpandedKeys",function(c){var u=r.state,d=u.treeData,m=u.fieldNames,g=ib(d,c,m);r.setUncontrolledState({expandedKeys:c,flattenNodes:g},!0)}),G(lt(r),"onNodeExpand",function(c,u){var d=r.state.expandedKeys,m=r.state,g=m.listChanging,v=m.fieldNames,y=r.props,b=y.onExpand,x=y.loadData,S=u.expanded,w=u[v.key];if(!g){var $=d.includes(w),O=!S;if(ur(S&&$||!S&&!$,"Expand state not sync with index check"),d=O?ml(d,w):$o(d,w),r.setExpandedKeys(d),b==null||b(d,{node:u,expanded:O,nativeEvent:c.nativeEvent}),O&&x){var T=r.onNodeLoad(u);T&&T.then(function(){var _=ib(r.state.treeData,d,v);r.setUncontrolledState({flattenNodes:_})}).catch(function(){var _=r.state.expandedKeys,R=$o(_,w);r.setExpandedKeys(R)})}}}),G(lt(r),"onListChangeStart",function(){r.setUncontrolledState({listChanging:!0})}),G(lt(r),"onListChangeEnd",function(){setTimeout(function(){r.setUncontrolledState({listChanging:!1})})}),G(lt(r),"onActiveChange",function(c){var u=r.state.activeKey,d=r.props,m=d.onActiveChange,g=d.itemScrollOffset,v=g===void 0?0:g;u!==c&&(r.setState({activeKey:c}),c!==null&&r.scrollTo({key:c,offset:v}),m==null||m(c))}),G(lt(r),"getActiveItem",function(){var c=r.state,u=c.activeKey,d=c.flattenNodes;return u===null?null:d.find(function(m){var g=m.key;return g===u})||null}),G(lt(r),"offsetActiveKey",function(c){var u=r.state,d=u.flattenNodes,m=u.activeKey,g=d.findIndex(function(b){var x=b.key;return x===m});g===-1&&c<0&&(g=d.length),g=(g+c+d.length)%d.length;var v=d[g];if(v){var y=v.key;r.onActiveChange(y)}else r.onActiveChange(null)}),G(lt(r),"onKeyDown",function(c){var u=r.state,d=u.activeKey,m=u.expandedKeys,g=u.checkedKeys,v=u.fieldNames,y=r.props,b=y.onKeyDown,x=y.checkable,S=y.selectable;switch(c.which){case ot.UP:{r.offsetActiveKey(-1),c.preventDefault();break}case ot.DOWN:{r.offsetActiveKey(1),c.preventDefault();break}}var w=r.getActiveItem();if(w&&w.data){var $=r.getTreeNodeRequiredProps(),O=w.data.isLeaf===!1||!!(w.data[v.children]||[]).length,T=Ir(J(J({},bf(d,$)),{},{data:w.data,active:!0}));switch(c.which){case ot.LEFT:{O&&m.includes(d)?r.onNodeExpand({},T):w.parent&&r.onActiveChange(w.parent.key),c.preventDefault();break}case ot.RIGHT:{O&&!m.includes(d)?r.onNodeExpand({},T):w.children&&w.children.length&&r.onActiveChange(w.children[0].key),c.preventDefault();break}case ot.ENTER:case ot.SPACE:{x&&!T.disabled&&T.checkable!==!1&&!T.disableCheckbox?r.onNodeCheck({},T,!g.includes(d)):!x&&S&&!T.disabled&&T.selectable!==!1&&r.onNodeSelect({},T);break}}}b==null||b(c)}),G(lt(r),"setUncontrolledState",function(c){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!r.destroyed){var m=!1,g=!0,v={};Object.keys(c).forEach(function(y){if(r.props.hasOwnProperty(y)){g=!1;return}m=!0,v[y]=c[y]}),m&&(!u||g)&&r.setState(J(J({},v),d))}}),G(lt(r),"scrollTo",function(c){r.listRef.current.scrollTo(c)}),r}return br(n,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var i=this.props,a=i.activeKey,l=i.itemScrollOffset,c=l===void 0?0:l;a!==void 0&&a!==this.state.activeKey&&(this.setState({activeKey:a}),a!==null&&this.scrollTo({key:a,offset:c}))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("dragend",this.onWindowDragEnd),this.destroyed=!0}},{key:"resetDragState",value:function(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}},{key:"render",value:function(){var i=this.state,a=i.focused,l=i.flattenNodes,c=i.keyEntities,u=i.draggingNodeKey,d=i.activeKey,m=i.dropLevelOffset,g=i.dropContainerKey,v=i.dropTargetKey,y=i.dropPosition,b=i.dragOverNodeKey,x=i.indent,S=this.props,w=S.prefixCls,$=S.className,O=S.style,T=S.showLine,_=S.focusable,R=S.tabIndex,M=R===void 0?0:R,P=S.selectable,N=S.showIcon,I=S.icon,B=S.switcherIcon,A=S.draggable,k=S.checkable,j=S.checkStrictly,V=S.disabled,z=S.motion,F=S.loadData,q=S.filterTreeNode,Z=S.height,H=S.itemHeight,U=S.scrollWidth,K=S.virtual,D=S.titleRender,X=S.dropIndicatorRender,Q=S.onContextMenu,Y=S.onScroll,ie=S.direction,oe=S.rootClassName,le=S.rootStyle,Ce=La(this.props,{aria:!0,data:!0}),ce;A&&(pt(A)==="object"?ce=A:typeof A=="function"?ce={nodeDraggable:A}:ce={});var de={prefixCls:w,selectable:P,showIcon:N,icon:I,switcherIcon:B,draggable:ce,draggingNodeKey:u,checkable:k,checkStrictly:j,disabled:V,keyEntities:c,dropLevelOffset:m,dropContainerKey:g,dropTargetKey:v,dropPosition:y,dragOverNodeKey:b,indent:x,direction:ie,dropIndicatorRender:X,loadData:F,filterTreeNode:q,titleRender:D,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop};return h.createElement(M1.Provider,{value:de},h.createElement("div",{className:te(w,$,oe,G(G(G({},"".concat(w,"-show-line"),T),"".concat(w,"-focused"),a),"".concat(w,"-active-focused"),d!==null)),style:le},h.createElement(JQ,Ue({ref:this.listRef,prefixCls:w,style:O,data:l,disabled:V,selectable:P,checkable:!!k,motion:z,dragging:u!==null,height:Z,itemHeight:H,virtual:K,focusable:_,focused:a,tabIndex:M,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:Q,onScroll:Y,scrollWidth:U},this.getTreeNodeRequiredProps(),Ce))))}}],[{key:"getDerivedStateFromProps",value:function(i,a){var l=a.prevProps,c={prevProps:i};function u(M){return!l&&i.hasOwnProperty(M)||l&&l[M]!==i[M]}var d,m=a.fieldNames;if(u("fieldNames")&&(m=Fu(i.fieldNames),c.fieldNames=m),u("treeData")?d=i.treeData:u("children")&&(ur(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),d=VA(i.children)),d){c.treeData=d;var g=UA(d,{fieldNames:m});c.keyEntities=J(G({},Us,Oz),g.keyEntities)}var v=c.keyEntities||a.keyEntities;if(u("expandedKeys")||l&&u("autoExpandParent"))c.expandedKeys=i.autoExpandParent||!l&&i.defaultExpandParent?bx(i.expandedKeys,v):i.expandedKeys;else if(!l&&i.defaultExpandAll){var y=J({},v);delete y[Us];var b=[];Object.keys(y).forEach(function(M){var P=y[M];P.children&&P.children.length&&b.push(P.key)}),c.expandedKeys=b}else!l&&i.defaultExpandedKeys&&(c.expandedKeys=i.autoExpandParent||i.defaultExpandParent?bx(i.defaultExpandedKeys,v):i.defaultExpandedKeys);if(c.expandedKeys||delete c.expandedKeys,d||c.expandedKeys){var x=ib(d||a.treeData,c.expandedKeys||a.expandedKeys,m);c.flattenNodes=x}if(i.selectable&&(u("selectedKeys")?c.selectedKeys=QT(i.selectedKeys,i):!l&&i.defaultSelectedKeys&&(c.selectedKeys=QT(i.defaultSelectedKeys,i))),i.checkable){var S;if(u("checkedKeys")?S=hb(i.checkedKeys)||{}:!l&&i.defaultCheckedKeys?S=hb(i.defaultCheckedKeys)||{}:d&&(S=hb(i.checkedKeys)||{checkedKeys:a.checkedKeys,halfCheckedKeys:a.halfCheckedKeys}),S){var w=S,$=w.checkedKeys,O=$===void 0?[]:$,T=w.halfCheckedKeys,_=T===void 0?[]:T;if(!i.checkStrictly){var R=ab(O,!0,v);O=R.checkedKeys,_=R.halfCheckedKeys}c.checkedKeys=O,c.halfCheckedKeys=_}}return u("loadedKeys")&&(c.loadedKeys=i.loadedKeys),c}}]),n})(h.Component);G(A1,"defaultProps",{prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:qQ,allowDrop:function(){return!0},expandAction:!1});G(A1,"TreeNode",qf);var tY={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file",theme:"outlined"},nY=function(t,n){return h.createElement(mn,Ue({},t,{ref:n,icon:tY}))},Rz=h.forwardRef(nY),rY={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 00-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zM136 256h188.5l119.6 114.4H748V444H238c-13 0-24.8 7.9-29.7 20L136 643.2V256zm635.3 512H159l103.3-256h612.4L771.3 768z"}}]},name:"folder-open",theme:"outlined"},iY=function(t,n){return h.createElement(mn,Ue({},t,{ref:n,icon:rY}))},aY=h.forwardRef(iY),oY={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 298.4H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z"}}]},name:"folder",theme:"outlined"},lY=function(t,n){return h.createElement(mn,Ue({},t,{ref:n,icon:oY}))},sY=h.forwardRef(lY),cY={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M300 276.5a56 56 0 1056-97 56 56 0 00-56 97zm0 284a56 56 0 1056-97 56 56 0 00-56 97zM640 228a56 56 0 10112 0 56 56 0 00-112 0zm0 284a56 56 0 10112 0 56 56 0 00-112 0zM300 844.5a56 56 0 1056-97 56 56 0 00-56 97zM640 796a56 56 0 10112 0 56 56 0 00-112 0z"}}]},name:"holder",theme:"outlined"},uY=function(t,n){return h.createElement(mn,Ue({},t,{ref:n,icon:cY}))},dY=h.forwardRef(uY);const fY=({treeCls:e,treeNodeCls:t,directoryNodeSelectedBg:n,directoryNodeSelectedColor:r,motionDurationMid:i,borderRadius:a,controlItemBgHover:l})=>({[`${e}${e}-directory ${t}`]:{[`${e}-node-content-wrapper`]:{position:"static",[`&:has(${e}-drop-indicator)`]:{position:"relative"},[`> *:not(${e}-drop-indicator)`]:{position:"relative"},"&:hover":{background:"transparent"},"&:before":{position:"absolute",inset:0,transition:`background-color ${i}`,content:'""',borderRadius:a},"&:hover:before":{background:l}},[`${e}-switcher, ${e}-checkbox, ${e}-draggable-icon`]:{zIndex:1},"&-selected":{background:n,borderRadius:a,[`${e}-switcher, ${e}-draggable-icon`]:{color:r},[`${e}-node-content-wrapper`]:{color:r,background:"transparent","&, &:hover":{color:r},"&:before, &:hover:before":{background:n}}}}}),hY=new ln("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),mY=(e,t)=>({[`.${e}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${t.motionDurationSlow}`}}}),gY=(e,t)=>({[`.${e}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:t.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${ae(t.lineWidthBold)} solid ${t.colorPrimary}`,borderRadius:"50%",content:'""'}}}),pY=(e,t)=>{const{treeCls:n,treeNodeCls:r,treeNodePadding:i,titleHeight:a,indentSize:l,nodeSelectedBg:c,nodeHoverBg:u,colorTextQuaternary:d,controlItemBgActiveDisabled:m}=t;return{[n]:Object.assign(Object.assign({},lr(t)),{"--rc-virtual-list-scrollbar-bg":t.colorSplit,background:t.colorBgContainer,borderRadius:t.borderRadius,transition:`background-color ${t.motionDurationSlow}`,"&-rtl":{direction:"rtl"},[`&${n}-rtl ${n}-switcher_close ${n}-switcher-icon svg`]:{transform:"rotate(90deg)"},[`&-focused:not(:hover):not(${n}-active-focused)`]:Hl(t),[`${n}-list-holder-inner`]:{alignItems:"flex-start"},[`&${n}-block-node`]:{[`${n}-list-holder-inner`]:{alignItems:"stretch",[`${n}-node-content-wrapper`]:{flex:"auto"},[`${r}.dragging:after`]:{position:"absolute",inset:0,border:`1px solid ${t.colorPrimary}`,opacity:0,animationName:hY,animationDuration:t.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none",borderRadius:t.borderRadius}}},[r]:{display:"flex",alignItems:"flex-start",marginBottom:i,lineHeight:ae(a),position:"relative","&:before":{content:'""',position:"absolute",zIndex:1,insetInlineStart:0,width:"100%",top:"100%",height:i},[`&-disabled ${n}-node-content-wrapper`]:{color:t.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}},[`${n}-checkbox-disabled + ${n}-node-selected,&${r}-disabled${r}-selected ${n}-node-content-wrapper`]:{backgroundColor:m},[`${n}-checkbox-disabled`]:{pointerEvents:"unset"},[`&:not(${r}-disabled)`]:{[`${n}-node-content-wrapper`]:{"&:hover":{color:t.nodeHoverColor}}},[`&-active ${n}-node-content-wrapper`]:{background:t.controlItemBgHover},[`&:not(${r}-disabled).filter-node ${n}-title`]:{color:t.colorPrimary,fontWeight:t.fontWeightStrong},"&-draggable":{cursor:"grab",[`${n}-draggable-icon`]:{flexShrink:0,width:a,textAlign:"center",visibility:"visible",color:d},[`&${r}-disabled ${n}-draggable-icon`]:{visibility:"hidden"}}},[`${n}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:l}},[`${n}-draggable-icon`]:{visibility:"hidden"},[`${n}-switcher, ${n}-checkbox`]:{marginInlineEnd:t.calc(t.calc(a).sub(t.controlInteractiveSize)).div(2).equal()},[`${n}-switcher`]:Object.assign(Object.assign({},mY(e,t)),{position:"relative",flex:"none",alignSelf:"stretch",width:a,textAlign:"center",cursor:"pointer",userSelect:"none",transition:`all ${t.motionDurationSlow}`,"&-noop":{cursor:"unset"},"&:before":{pointerEvents:"none",content:'""',width:a,height:a,position:"absolute",left:{_skip_check_:!0,value:0},top:0,borderRadius:t.borderRadius,transition:`all ${t.motionDurationSlow}`},[`&:not(${n}-switcher-noop):hover:before`]:{backgroundColor:t.colorBgTextHover},[`&_close ${n}-switcher-icon svg`]:{transform:"rotate(-90deg)"},"&-loading-icon":{color:t.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:t.calc(a).div(2).equal(),bottom:t.calc(i).mul(-1).equal(),marginInlineStart:-1,borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:t.calc(t.calc(a).div(2).equal()).mul(.8).equal(),height:t.calc(a).div(2).equal(),borderBottom:`1px solid ${t.colorBorder}`,content:'""'}}}),[`${n}-node-content-wrapper`]:Object.assign(Object.assign({position:"relative",minHeight:a,paddingBlock:0,paddingInline:t.paddingXS,background:"transparent",borderRadius:t.borderRadius,cursor:"pointer",transition:`all ${t.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`},gY(e,t)),{"&:hover":{backgroundColor:u},[`&${n}-node-selected`]:{color:t.nodeSelectedColor,backgroundColor:c},[`${n}-iconEle`]:{display:"inline-block",width:a,height:a,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}}),[`${n}-unselectable ${n}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${r}.drop-container > [draggable]`]:{boxShadow:`0 0 0 2px ${t.colorPrimary}`},"&-show-line":{[`${n}-indent-unit`]:{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:t.calc(a).div(2).equal(),bottom:t.calc(i).mul(-1).equal(),borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&-end:before":{display:"none"}},[`${n}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${r}-leaf-last ${n}-switcher-leaf-line:before`]:{top:"auto !important",bottom:"auto !important",height:`${ae(t.calc(a).div(2).equal())} !important`}})}},vY=(e,t,n=!0)=>{const r=`.${e}`,i=`${r}-treenode`,a=t.calc(t.paddingXS).div(2).equal(),l=sn(t,{treeCls:r,treeNodeCls:i,treeNodePadding:a});return[pY(e,l),n&&fY(l)].filter(Boolean)},yY=e=>{const{controlHeightSM:t,controlItemBgHover:n,controlItemBgActive:r}=e,i=t;return{titleHeight:i,indentSize:i,nodeHoverBg:n,nodeHoverColor:e.colorText,nodeSelectedBg:r,nodeSelectedColor:e.colorText}},bY=e=>{const{colorTextLightSolid:t,colorPrimary:n}=e;return Object.assign(Object.assign({},yY(e)),{directoryNodeSelectedColor:t,directoryNodeSelectedBg:n})},SY=Nn("Tree",(e,{prefixCls:t})=>[{[e.componentCls]:KA(`${t}-checkbox`,e)},vY(t,e),VC(e)],bY),n_=4;function xY(e){const{dropPosition:t,dropLevelOffset:n,prefixCls:r,indent:i,direction:a="ltr"}=e,l=a==="ltr"?"left":"right",c=a==="ltr"?"right":"left",u={[l]:-n*i+n_,[c]:0};switch(t){case-1:u.top=-3;break;case 1:u.bottom=-3;break;default:u.bottom=-3,u[l]=i+n_;break}return re.createElement("div",{style:u,className:`${r}-drop-indicator`})}var CY={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"filled"},wY=function(t,n){return h.createElement(mn,Ue({},t,{ref:n,icon:CY}))},EY=h.forwardRef(wY),$Y={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"minus-square",theme:"outlined"},OY=function(t,n){return h.createElement(mn,Ue({},t,{ref:n,icon:$Y}))},RY=h.forwardRef(OY),TY={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"plus-square",theme:"outlined"},_Y=function(t,n){return h.createElement(mn,Ue({},t,{ref:n,icon:TY}))},NY=h.forwardRef(_Y);const IY=e=>{var t,n;const{prefixCls:r,switcherIcon:i,treeNodeProps:a,showLine:l,switcherLoadingIcon:c}=e,{isLeaf:u,expanded:d,loading:m}=a;if(m)return h.isValidElement(c)?c:h.createElement(vh,{className:`${r}-switcher-loading-icon`});let g;if(l&&typeof l=="object"&&(g=l.showLeafIcon),u){if(!l)return null;if(typeof g!="boolean"&&g){const b=typeof g=="function"?g(a):g,x=`${r}-switcher-line-custom-icon`;return h.isValidElement(b)?oi(b,{className:te((t=b.props)===null||t===void 0?void 0:t.className,x)}):b}return g?h.createElement(Rz,{className:`${r}-switcher-line-icon`}):h.createElement("span",{className:`${r}-switcher-leaf-line`})}const v=`${r}-switcher-icon`,y=typeof i=="function"?i(a):i;return h.isValidElement(y)?oi(y,{className:te((n=y.props)===null||n===void 0?void 0:n.className,v)}):y!==void 0?y:l?d?h.createElement(RY,{className:`${r}-switcher-line-icon`}):h.createElement(NY,{className:`${r}-switcher-line-icon`}):h.createElement(EY,{className:v})},Tz=re.forwardRef((e,t)=>{var n;const{getPrefixCls:r,direction:i,virtual:a,tree:l}=re.useContext(Tt),{prefixCls:c,className:u,showIcon:d=!1,showLine:m,switcherIcon:g,switcherLoadingIcon:v,blockNode:y=!1,children:b,checkable:x=!1,selectable:S=!0,draggable:w,disabled:$,motion:O,style:T}=e,_=r("tree",c),R=r(),M=re.useContext(Da),P=$??M,N=O??Object.assign(Object.assign({},Hg(R)),{motionAppear:!1}),I=Object.assign(Object.assign({},e),{checkable:x,selectable:S,showIcon:d,motion:N,blockNode:y,disabled:P,showLine:!!m,dropIndicatorRender:xY}),[B,A,k]=SY(_),[,j]=Zr(),V=j.paddingXS/2+(((n=j.Tree)===null||n===void 0?void 0:n.titleHeight)||j.controlHeightSM),z=re.useMemo(()=>{if(!w)return!1;let q={};switch(typeof w){case"function":q.nodeDraggable=w;break;case"object":q=Object.assign({},w);break}return q.icon!==!1&&(q.icon=q.icon||re.createElement(dY,null)),q},[w]),F=q=>re.createElement(IY,{prefixCls:_,switcherIcon:g,switcherLoadingIcon:v,treeNodeProps:q,showLine:m});return B(re.createElement(A1,Object.assign({itemHeight:V,ref:t,virtual:a},I,{style:Object.assign(Object.assign({},l==null?void 0:l.style),T),prefixCls:_,className:te({[`${_}-icon-hide`]:!d,[`${_}-block-node`]:y,[`${_}-unselectable`]:!S,[`${_}-rtl`]:i==="rtl",[`${_}-disabled`]:P},l==null?void 0:l.className,u,A,k),direction:i,checkable:x&&re.createElement("span",{className:`${_}-checkbox-inner`}),selectable:S,switcherIcon:F,draggable:z}),b))}),r_=0,mb=1,i_=2;function z1(e,t,n){const{key:r,children:i}=n;function a(l){const c=l[r],u=l[i];t(c,l)!==!1&&z1(u||[],t,n)}e.forEach(a)}function MY({treeData:e,expandedKeys:t,startKey:n,endKey:r,fieldNames:i}){const a=[];let l=r_;if(n&&n===r)return[n];if(!n||!r)return[];function c(u){return u===n||u===r}return z1(e,u=>{if(l===i_)return!1;if(c(u)){if(a.push(u),l===r_)l=mb;else if(l===mb)return l=i_,!1}else l===mb&&a.push(u);return t.includes(u)},Fu(i)),a}function gb(e,t,n){const r=qe(t),i=[];return z1(e,(a,l)=>{const c=r.indexOf(a);return c!==-1&&(i.push(l),r.splice(c,1)),!!r.length},Fu(n)),i}var a_=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function PY(e){const{isLeaf:t,expanded:n}=e;return t?h.createElement(Rz,null):n?h.createElement(aY,null):h.createElement(sY,null)}function o_({treeData:e,children:t}){return e||VA(t)}const AY=(e,t)=>{var{defaultExpandAll:n,defaultExpandParent:r,defaultExpandedKeys:i}=e,a=a_(e,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const l=h.useRef(null),c=h.useRef(null),u=()=>{const{keyEntities:P}=UA(o_(a),{fieldNames:a.fieldNames});let N;return n?N=Object.keys(P):r?N=bx(a.expandedKeys||i||[],P):N=a.expandedKeys||i||[],N},[d,m]=h.useState(a.selectedKeys||a.defaultSelectedKeys||[]),[g,v]=h.useState(()=>u());h.useEffect(()=>{"selectedKeys"in a&&m(a.selectedKeys)},[a.selectedKeys]),h.useEffect(()=>{"expandedKeys"in a&&v(a.expandedKeys)},[a.expandedKeys]);const y=(P,N)=>{var I;return"expandedKeys"in a||v(P),(I=a.onExpand)===null||I===void 0?void 0:I.call(a,P,N)},b=(P,N)=>{var I;const{multiple:B,fieldNames:A}=a,{node:k,nativeEvent:j}=N,{key:V=""}=k,z=o_(a),F=Object.assign(Object.assign({},N),{selected:!0}),q=(j==null?void 0:j.ctrlKey)||(j==null?void 0:j.metaKey),Z=j==null?void 0:j.shiftKey;let H;B&&q?(H=P,l.current=V,c.current=H,F.selectedNodes=gb(z,H,A)):B&&Z?(H=Array.from(new Set([].concat(qe(c.current||[]),qe(MY({treeData:z,expandedKeys:g,startKey:V,endKey:l.current,fieldNames:A}))))),F.selectedNodes=gb(z,H,A)):(H=[V],l.current=V,c.current=H,F.selectedNodes=gb(z,H,A)),(I=a.onSelect)===null||I===void 0||I.call(a,H,F),"selectedKeys"in a||m(H)},{getPrefixCls:x,direction:S}=h.useContext(Tt),{prefixCls:w,className:$,showIcon:O=!0,expandAction:T="click"}=a,_=a_(a,["prefixCls","className","showIcon","expandAction"]),R=x("tree",w),M=te(`${R}-directory`,{[`${R}-directory-rtl`]:S==="rtl"},$);return h.createElement(Tz,Object.assign({icon:PY,ref:t,blockNode:!0},_,{showIcon:O,expandAction:T,prefixCls:R,className:M,expandedKeys:g,selectedKeys:d,onSelect:b,onExpand:y}))},zY=h.forwardRef(AY),j1=Tz;j1.DirectoryTree=zY;j1.TreeNode=qf;const jY=e=>{const{paddingXXS:t,lineWidth:n,tagPaddingHorizontal:r,componentCls:i,calc:a}=e,l=a(r).sub(n).equal(),c=a(t).sub(n).equal();return{[i]:Object.assign(Object.assign({},lr(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:l,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",background:e.defaultBg,border:`${ae(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:"start",position:"relative",[`&${i}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.defaultColor},[`${i}-close-icon`]:{marginInlineStart:c,fontSize:e.tagIconSize,color:e.colorIcon,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},[`&${i}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${e.iconCls}-close, ${e.iconCls}-close:hover`]:{color:e.colorTextLightSolid}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${i}-checkable-checked):hover`]:{color:e.colorPrimary,backgroundColor:e.colorFillSecondary},"&:active, &-checked":{color:e.colorTextLightSolid},"&-checked":{backgroundColor:e.colorPrimary,"&:hover":{backgroundColor:e.colorPrimaryHover}},"&:active":{backgroundColor:e.colorPrimaryActive}},"&-hidden":{display:"none"},[`> ${e.iconCls} + span, > span + ${e.iconCls}`]:{marginInlineStart:l}}),[`${i}-borderless`]:{borderColor:"transparent",background:e.tagBorderlessBg}}},D1=e=>{const{lineWidth:t,fontSizeIcon:n,calc:r}=e,i=e.fontSizeSM;return sn(e,{tagFontSize:i,tagLineHeight:ae(r(e.lineHeightSM).mul(i).equal()),tagIconSize:r(n).sub(r(t).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:e.defaultBg})},L1=e=>({defaultBg:new _n(e.colorFillQuaternary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText}),_z=Nn("Tag",e=>{const t=D1(e);return jY(t)},L1);var DY=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const LY=h.forwardRef((e,t)=>{const{prefixCls:n,style:r,className:i,checked:a,children:l,icon:c,onChange:u,onClick:d}=e,m=DY(e,["prefixCls","style","className","checked","children","icon","onChange","onClick"]),{getPrefixCls:g,tag:v}=h.useContext(Tt),y=O=>{u==null||u(!a),d==null||d(O)},b=g("tag",n),[x,S,w]=_z(b),$=te(b,`${b}-checkable`,{[`${b}-checkable-checked`]:a},v==null?void 0:v.className,i,S,w);return x(h.createElement("span",Object.assign({},m,{ref:t,style:Object.assign(Object.assign({},r),v==null?void 0:v.style),className:$,onClick:y}),c,h.createElement("span",null,l)))}),kY=e=>TM(e,(t,{textColor:n,lightBorderColor:r,lightColor:i,darkColor:a})=>({[`${e.componentCls}${e.componentCls}-${t}`]:{color:n,background:i,borderColor:r,"&-inverse":{color:e.colorTextLightSolid,background:a,borderColor:a},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}})),BY=Wu(["Tag","preset"],e=>{const t=D1(e);return kY(t)},L1);function HY(e){return typeof e!="string"?e:e.charAt(0).toUpperCase()+e.slice(1)}const Zm=(e,t,n)=>{const r=HY(n);return{[`${e.componentCls}${e.componentCls}-${t}`]:{color:e[`color${n}`],background:e[`color${r}Bg`],borderColor:e[`color${r}Border`],[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}},FY=Wu(["Tag","status"],e=>{const t=D1(e);return[Zm(t,"success","Success"),Zm(t,"processing","Info"),Zm(t,"error","Error"),Zm(t,"warning","Warning")]},L1);var VY=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const UY=h.forwardRef((e,t)=>{const{prefixCls:n,className:r,rootClassName:i,style:a,children:l,icon:c,color:u,onClose:d,bordered:m=!0,visible:g}=e,v=VY(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","bordered","visible"]),{getPrefixCls:y,direction:b,tag:x}=h.useContext(Tt),[S,w]=h.useState(!0),$=tr(v,["closeIcon","closable"]);h.useEffect(()=>{g!==void 0&&w(g)},[g]);const O=nA(u),T=rU(u),_=O||T,R=Object.assign(Object.assign({backgroundColor:u&&!_?u:void 0},x==null?void 0:x.style),a),M=y("tag",n),[P,N,I]=_z(M),B=te(M,x==null?void 0:x.className,{[`${M}-${u}`]:_,[`${M}-has-color`]:u&&!_,[`${M}-hidden`]:!S,[`${M}-rtl`]:b==="rtl",[`${M}-borderless`]:!m},r,i,N,I),A=q=>{q.stopPropagation(),d==null||d(q),!q.defaultPrevented&&w(!1)},[,k]=PB(Q2(e),Q2(x),{closable:!1,closeIconRender:q=>{const Z=h.createElement("span",{className:`${M}-close-icon`,onClick:A},q);return DC(q,Z,H=>({onClick:U=>{var K;(K=H==null?void 0:H.onClick)===null||K===void 0||K.call(H,U),A(U)},className:te(H==null?void 0:H.className,`${M}-close-icon`)}))}}),j=typeof v.onClick=="function"||l&&l.type==="a",V=c||null,z=V?h.createElement(h.Fragment,null,V,l&&h.createElement("span",null,l)):l,F=h.createElement("span",Object.assign({},$,{ref:t,className:B,style:R}),z,k,O&&h.createElement(BY,{key:"preset",prefixCls:M}),T&&h.createElement(FY,{key:"status",prefixCls:M}));return P(j?h.createElement(FC,{component:"Tag"},F):F)}),k1=UY;k1.CheckableTag=LY;const qY=e=>{const t=e!=null&&e.algorithm?Pg(e.algorithm):PC,n=Object.assign(Object.assign({},ku),e==null?void 0:e.token);return QI(n,{override:e==null?void 0:e.token},t,zC)};function KY(e){const{sizeUnit:t,sizeStep:n}=e,r=n-2;return{sizeXXL:t*(r+10),sizeXL:t*(r+6),sizeLG:t*(r+2),sizeMD:t*(r+2),sizeMS:t*(r+1),size:t*r,sizeSM:t*r,sizeXS:t*(r-1),sizeXXS:t*(r-1)}}const WY=(e,t)=>{const n=t??zp(e),r=n.fontSizeSM,i=n.controlHeight-4;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},n),KY(t??e)),bM(r)),{controlHeight:i}),yM(Object.assign(Object.assign({},n),{controlHeight:i})))},da=(e,t)=>new _n(e).setA(t).toRgbString(),Jc=(e,t)=>new _n(e).lighten(t).toHexString(),GY=e=>{const t=Ls(e,{theme:"dark"});return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[6],6:t[5],7:t[4],8:t[6],9:t[5],10:t[4]}},XY=(e,t)=>{const n=e||"#000",r=t||"#fff";return{colorBgBase:n,colorTextBase:r,colorText:da(r,.85),colorTextSecondary:da(r,.65),colorTextTertiary:da(r,.45),colorTextQuaternary:da(r,.25),colorFill:da(r,.18),colorFillSecondary:da(r,.12),colorFillTertiary:da(r,.08),colorFillQuaternary:da(r,.04),colorBgSolid:da(r,.95),colorBgSolidHover:da(r,1),colorBgSolidActive:da(r,.9),colorBgElevated:Jc(n,12),colorBgContainer:Jc(n,8),colorBgLayout:Jc(n,0),colorBgSpotlight:Jc(n,26),colorBgBlur:da(r,.04),colorBorder:Jc(n,26),colorBorderSecondary:Jc(n,19)}},QY=(e,t)=>{const n=Object.keys(MC).map(a=>{const l=Ls(e[a],{theme:"dark"});return Array.from({length:10},()=>1).reduce((c,u,d)=>(c[`${a}-${d+1}`]=l[d],c[`${a}${d+1}`]=l[d],c),{})}).reduce((a,l)=>(a=Object.assign(Object.assign({},a),l),a),{}),r=t??zp(e),i=vM(e,{generateColorPalettes:GY,generateNeutralColorPalettes:XY});return Object.assign(Object.assign(Object.assign(Object.assign({},r),n),i),{colorPrimaryBg:i.colorPrimaryBorder,colorPrimaryBgHover:i.colorPrimaryBorderHover})};function YY(){const[e,t,n]=Zr();return{theme:e,token:t,hashId:n}}const fu={defaultSeed:Af.token,useToken:YY,defaultAlgorithm:zp,darkAlgorithm:QY,compactAlgorithm:WY,getDesignToken:qY,defaultConfig:Af,_internalContext:AC};var ZY={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z"}}]},name:"edit",theme:"outlined"},JY=function(t,n){return h.createElement(mn,Ue({},t,{ref:n,icon:ZY}))},eZ=h.forwardRef(JY),tZ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 170h-60c-4.4 0-8 3.6-8 8v518H310v-73c0-6.7-7.8-10.5-13-6.3l-141.9 112a8 8 0 000 12.6l141.9 112c5.3 4.2 13 .4 13-6.3v-75h498c35.3 0 64-28.7 64-64V178c0-4.4-3.6-8-8-8z"}}]},name:"enter",theme:"outlined"},nZ=function(t,n){return h.createElement(mn,Ue({},t,{ref:n,icon:tZ}))},rZ=h.forwardRef(nZ);const iZ=(e,t,n,r)=>{const{titleMarginBottom:i,fontWeightStrong:a}=r;return{marginBottom:i,color:n,fontWeight:a,fontSize:e,lineHeight:t}},aZ=e=>{const t=[1,2,3,4,5],n={};return t.forEach(r=>{n[`
|
|
308
|
-
h${r}&,
|
|
309
|
-
div&-h${r},
|
|
310
|
-
div&-h${r} > textarea,
|
|
311
|
-
h${r}
|
|
312
|
-
`]=iZ(e[`fontSizeHeading${r}`],e[`lineHeightHeading${r}`],e.colorTextHeading,e)}),n},oZ=e=>{const{componentCls:t}=e;return{"a&, a":Object.assign(Object.assign({},RM(e)),{userSelect:"text",[`&[disabled], &${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:active, &:hover":{color:e.colorTextDisabled},"&:active":{pointerEvents:"none"}}})}},lZ=e=>({code:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.2em 0.1em",fontSize:"85%",fontFamily:e.fontFamilyCode,background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3},kbd:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.15em 0.1em",fontSize:"90%",fontFamily:e.fontFamilyCode,background:"rgba(150, 150, 150, 0.06)",border:"1px solid rgba(100, 100, 100, 0.2)",borderBottomWidth:2,borderRadius:3},mark:{padding:0,backgroundColor:zg[2]},"u, ins":{textDecoration:"underline",textDecorationSkipInk:"auto"},"s, del":{textDecoration:"line-through"},strong:{fontWeight:e.fontWeightStrong},"ul, ol":{marginInline:0,marginBlock:"0 1em",padding:0,li:{marginInline:"20px 0",marginBlock:0,paddingInline:"4px 0",paddingBlock:0}},ul:{listStyleType:"circle",ul:{listStyleType:"disc"}},ol:{listStyleType:"decimal"},"pre, blockquote":{margin:"1em 0"},pre:{padding:"0.4em 0.6em",whiteSpace:"pre-wrap",wordWrap:"break-word",background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3,fontFamily:e.fontFamilyCode,code:{display:"inline",margin:0,padding:0,fontSize:"inherit",fontFamily:"inherit",background:"transparent",border:0}},blockquote:{paddingInline:"0.6em 0",paddingBlock:0,borderInlineStart:"4px solid rgba(100, 100, 100, 0.2)",opacity:.85}}),sZ=e=>{const{componentCls:t,paddingSM:n}=e,r=n;return{"&-edit-content":{position:"relative","div&":{insetInlineStart:e.calc(e.paddingSM).mul(-1).equal(),insetBlockStart:e.calc(r).div(-2).add(1).equal(),marginBottom:e.calc(r).div(2).sub(2).equal()},[`${t}-edit-content-confirm`]:{position:"absolute",insetInlineEnd:e.calc(e.marginXS).add(2).equal(),insetBlockEnd:e.marginXS,color:e.colorIcon,fontWeight:"normal",fontSize:e.fontSize,fontStyle:"normal",pointerEvents:"none"},textarea:{margin:"0!important",MozTransition:"none",height:"1em"}}}},cZ=e=>({[`${e.componentCls}-copy-success`]:{"\n &,\n &:hover,\n &:focus":{color:e.colorSuccess}},[`${e.componentCls}-copy-icon-only`]:{marginInlineStart:0}}),uZ=()=>({"\n a&-ellipsis,\n span&-ellipsis\n ":{display:"inline-block",maxWidth:"100%"},"&-ellipsis-single-line":{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis","a&, span&":{verticalAlign:"bottom"},"> code":{paddingBlock:0,maxWidth:"calc(100% - 1.2em)",display:"inline-block",overflow:"hidden",textOverflow:"ellipsis",verticalAlign:"bottom",boxSizing:"content-box"}},"&-ellipsis-multiple-line":{display:"-webkit-box",overflow:"hidden",WebkitLineClamp:3,WebkitBoxOrient:"vertical"}}),dZ=e=>{const{componentCls:t,titleMarginTop:n}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorText,wordBreak:"break-word",lineHeight:e.lineHeight,[`&${t}-secondary`]:{color:e.colorTextDescription},[`&${t}-success`]:{color:e.colorSuccessText},[`&${t}-warning`]:{color:e.colorWarningText},[`&${t}-danger`]:{color:e.colorErrorText,"a&:active, a&:focus":{color:e.colorErrorTextActive},"a&:hover":{color:e.colorErrorTextHover}},[`&${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed",userSelect:"none"},"\n div&,\n p\n ":{marginBottom:"1em"}},aZ(e)),{[`
|
|
313
|
-
& + h1${t},
|
|
314
|
-
& + h2${t},
|
|
315
|
-
& + h3${t},
|
|
316
|
-
& + h4${t},
|
|
317
|
-
& + h5${t}
|
|
318
|
-
`]:{marginTop:n},"\n div,\n ul,\n li,\n p,\n h1,\n h2,\n h3,\n h4,\n h5":{"\n + h1,\n + h2,\n + h3,\n + h4,\n + h5\n ":{marginTop:n}}}),lZ(e)),oZ(e)),{[`
|
|
319
|
-
${t}-expand,
|
|
320
|
-
${t}-collapse,
|
|
321
|
-
${t}-edit,
|
|
322
|
-
${t}-copy
|
|
323
|
-
`]:Object.assign(Object.assign({},RM(e)),{marginInlineStart:e.marginXXS})}),sZ(e)),cZ(e)),uZ()),{"&-rtl":{direction:"rtl"}})}},fZ=()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"}),Nz=Nn("Typography",dZ,fZ),hZ=e=>{const{prefixCls:t,"aria-label":n,className:r,style:i,direction:a,maxLength:l,autoSize:c=!0,value:u,onSave:d,onCancel:m,onEnd:g,component:v,enterIcon:y=h.createElement(rZ,null)}=e,b=h.useRef(null),x=h.useRef(!1),S=h.useRef(null),[w,$]=h.useState(u);h.useEffect(()=>{$(u)},[u]),h.useEffect(()=>{var j;if(!((j=b.current)===null||j===void 0)&&j.resizableTextArea){const{textArea:V}=b.current.resizableTextArea;V.focus();const{length:z}=V.value;V.setSelectionRange(z,z)}},[]);const O=({target:j})=>{$(j.value.replace(/[\n\r]/g,""))},T=()=>{x.current=!0},_=()=>{x.current=!1},R=({keyCode:j})=>{x.current||(S.current=j)},M=()=>{d(w.trim())},P=({keyCode:j,ctrlKey:V,altKey:z,metaKey:F,shiftKey:q})=>{S.current!==j||x.current||V||z||F||q||(j===ot.ENTER?(M(),g==null||g()):j===ot.ESC&&m())},N=()=>{M()},[I,B,A]=Nz(t),k=te(t,`${t}-edit-content`,{[`${t}-rtl`]:a==="rtl",[`${t}-${v}`]:!!v},r,B,A);return I(h.createElement("div",{className:k,style:i},h.createElement(dz,{ref:b,maxLength:l,value:w,onChange:O,onKeyDown:R,onKeyUp:P,onCompositionStart:T,onCompositionEnd:_,onBlur:N,"aria-label":n,rows:1,autoSize:c}),y!==null?oi(y,{className:`${t}-edit-content-confirm`}):null))};var pb,l_;function mZ(){return l_||(l_=1,pb=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r<e.rangeCount;r++)n.push(e.getRangeAt(r));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null;break}return e.removeAllRanges(),function(){e.type==="Caret"&&e.removeAllRanges(),e.rangeCount||n.forEach(function(i){e.addRange(i)}),t&&t.focus()}}),pb}var vb,s_;function gZ(){if(s_)return vb;s_=1;var e=mZ(),t={"text/plain":"Text","text/html":"Url",default:"Text"},n="Copy to clipboard: #{key}, Enter";function r(a){var l=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return a.replace(/#{\s*key\s*}/g,l)}function i(a,l){var c,u,d,m,g,v,y=!1;l||(l={}),c=l.debug||!1;try{d=e(),m=document.createRange(),g=document.getSelection(),v=document.createElement("span"),v.textContent=a,v.ariaHidden="true",v.style.all="unset",v.style.position="fixed",v.style.top=0,v.style.clip="rect(0, 0, 0, 0)",v.style.whiteSpace="pre",v.style.webkitUserSelect="text",v.style.MozUserSelect="text",v.style.msUserSelect="text",v.style.userSelect="text",v.addEventListener("copy",function(x){if(x.stopPropagation(),l.format)if(x.preventDefault(),typeof x.clipboardData>"u"){c&&console.warn("unable to use e.clipboardData"),c&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var S=t[l.format]||t.default;window.clipboardData.setData(S,a)}else x.clipboardData.clearData(),x.clipboardData.setData(l.format,a);l.onCopy&&(x.preventDefault(),l.onCopy(x.clipboardData))}),document.body.appendChild(v),m.selectNodeContents(v),g.addRange(m);var b=document.execCommand("copy");if(!b)throw new Error("copy command was unsuccessful");y=!0}catch(x){c&&console.error("unable to copy using execCommand: ",x),c&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(l.format||"text",a),l.onCopy&&l.onCopy(window.clipboardData),y=!0}catch(S){c&&console.error("unable to copy using clipboardData: ",S),c&&console.error("falling back to prompt"),u=r("message"in l?l.message:n),window.prompt(u,a)}}finally{g&&(typeof g.removeRange=="function"?g.removeRange(m):g.removeAllRanges()),v&&document.body.removeChild(v),d()}return y}return vb=i,vb}var pZ=gZ();const vZ=ec(pZ);var yZ=function(e,t,n,r){function i(a){return a instanceof n?a:new n(function(l){l(a)})}return new(n||(n=Promise))(function(a,l){function c(m){try{d(r.next(m))}catch(g){l(g)}}function u(m){try{d(r.throw(m))}catch(g){l(g)}}function d(m){m.done?a(m.value):i(m.value).then(c,u)}d((r=r.apply(e,t||[])).next())})};const bZ=({copyConfig:e,children:t})=>{const[n,r]=h.useState(!1),[i,a]=h.useState(!1),l=h.useRef(null),c=()=>{l.current&&clearTimeout(l.current)},u={};e.format&&(u.format=e.format),h.useEffect(()=>c,[]);const d=cr(m=>yZ(void 0,void 0,void 0,function*(){var g;m==null||m.preventDefault(),m==null||m.stopPropagation(),a(!0);try{const v=typeof e.text=="function"?yield e.text():e.text;vZ(v||XX(t,!0).join("")||"",u),a(!1),r(!0),c(),l.current=setTimeout(()=>{r(!1)},3e3),(g=e.onCopy)===null||g===void 0||g.call(e,m)}catch(v){throw a(!1),v}}));return{copied:n,copyLoading:i,onClick:d}};function yb(e,t){return h.useMemo(()=>{const n=!!e;return[n,Object.assign(Object.assign({},t),n&&typeof e=="object"?e:null)]},[e])}const SZ=e=>{const t=h.useRef(void 0);return h.useEffect(()=>{t.current=e}),t.current},xZ=(e,t,n)=>h.useMemo(()=>e===!0?{title:t??n}:h.isValidElement(e)?{title:e}:typeof e=="object"?Object.assign({title:t??n},e):{title:e},[e,t,n]);var CZ=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const Iz=h.forwardRef((e,t)=>{const{prefixCls:n,component:r="article",className:i,rootClassName:a,setContentRef:l,children:c,direction:u,style:d}=e,m=CZ(e,["prefixCls","component","className","rootClassName","setContentRef","children","direction","style"]),{getPrefixCls:g,direction:v,className:y,style:b}=Yr("typography"),x=u??v,S=l?gi(t,l):t,w=g("typography",n),[$,O,T]=Nz(w),_=te(w,y,{[`${w}-rtl`]:x==="rtl"},i,a,O,T),R=Object.assign(Object.assign({},b),d);return $(h.createElement(r,Object.assign({className:_,style:R,ref:S},m),c))});var wZ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"}}]},name:"copy",theme:"outlined"},EZ=function(t,n){return h.createElement(mn,Ue({},t,{ref:n,icon:wZ}))},$Z=h.forwardRef(EZ);function c_(e){return e===!1?[!1,!1]:Array.isArray(e)?e:[e]}function bb(e,t,n){return e===!0||e===void 0?t:e||n&&t}function OZ(e){const t=document.createElement("em");e.appendChild(t);const n=e.getBoundingClientRect(),r=t.getBoundingClientRect();return e.removeChild(t),n.left>r.left||r.right>n.right||n.top>r.top||r.bottom>n.bottom}const B1=e=>["string","number"].includes(typeof e),RZ=({prefixCls:e,copied:t,locale:n,iconOnly:r,tooltips:i,icon:a,tabIndex:l,onCopy:c,loading:u})=>{const d=c_(i),m=c_(a),{copied:g,copy:v}=n??{},y=t?g:v,b=bb(d[t?1:0],y),x=typeof b=="string"?b:y;return h.createElement(Vr,{title:b},h.createElement("button",{type:"button",className:te(`${e}-copy`,{[`${e}-copy-success`]:t,[`${e}-copy-icon-only`]:r}),onClick:c,"aria-label":x,tabIndex:l},t?bb(m[1],h.createElement(s1,null),!0):bb(m[0],u?h.createElement(vh,null):h.createElement($Z,null),!0)))},Jm=h.forwardRef(({style:e,children:t},n)=>{const r=h.useRef(null);return h.useImperativeHandle(n,()=>({isExceed:()=>{const i=r.current;return i.scrollHeight>i.clientHeight},getHeight:()=>r.current.clientHeight})),h.createElement("span",{"aria-hidden":!0,ref:r,style:Object.assign({position:"fixed",display:"block",left:0,top:0,pointerEvents:"none",backgroundColor:"rgba(255, 0, 0, 0.65)"},e)},t)}),TZ=e=>e.reduce((t,n)=>t+(B1(n)?String(n).length:1),0);function u_(e,t){let n=0;const r=[];for(let i=0;i<e.length;i+=1){if(n===t)return r;const a=e[i],c=B1(a)?String(a).length:1,u=n+c;if(u>t){const d=t-n;return r.push(String(a).slice(0,d)),r}r.push(a),n=u}return e}const Sb=0,xb=1,Cb=2,wb=3,d_=4,eg={display:"-webkit-box",overflow:"hidden",WebkitBoxOrient:"vertical"};function _Z(e){const{enableMeasure:t,width:n,text:r,children:i,rows:a,expanded:l,miscDeps:c,onEllipsis:u}=e,d=h.useMemo(()=>hi(r),[r]),m=h.useMemo(()=>TZ(d),[r]),g=h.useMemo(()=>i(d,!1),[r]),[v,y]=h.useState(null),b=h.useRef(null),x=h.useRef(null),S=h.useRef(null),w=h.useRef(null),$=h.useRef(null),[O,T]=h.useState(!1),[_,R]=h.useState(Sb),[M,P]=h.useState(0),[N,I]=h.useState(null);on(()=>{R(t&&n&&m?xb:Sb)},[n,r,a,t,d]),on(()=>{var j,V,z,F;if(_===xb){R(Cb);const q=x.current&&getComputedStyle(x.current).whiteSpace;I(q)}else if(_===Cb){const q=!!(!((j=S.current)===null||j===void 0)&&j.isExceed());R(q?wb:d_),y(q?[0,m]:null),T(q);const Z=((V=S.current)===null||V===void 0?void 0:V.getHeight())||0,H=a===1?0:((z=w.current)===null||z===void 0?void 0:z.getHeight())||0,U=((F=$.current)===null||F===void 0?void 0:F.getHeight())||0,K=Math.max(Z,H+U);P(K+1),u(q)}},[_]);const B=v?Math.ceil((v[0]+v[1])/2):0;on(()=>{var j;const[V,z]=v||[0,0];if(V!==z){const q=(((j=b.current)===null||j===void 0?void 0:j.getHeight())||0)>M;let Z=B;z-V===1&&(Z=q?V:z),y(q?[V,Z]:[Z,z])}},[v,B]);const A=h.useMemo(()=>{if(!t)return i(d,!1);if(_!==wb||!v||v[0]!==v[1]){const j=i(d,!1);return[d_,Sb].includes(_)?j:h.createElement("span",{style:Object.assign(Object.assign({},eg),{WebkitLineClamp:a})},j)}return i(l?d:u_(d,v[0]),O)},[l,_,v,d].concat(qe(c))),k={width:n,margin:0,padding:0,whiteSpace:N==="nowrap"?"normal":"inherit"};return h.createElement(h.Fragment,null,A,_===Cb&&h.createElement(h.Fragment,null,h.createElement(Jm,{style:Object.assign(Object.assign(Object.assign({},k),eg),{WebkitLineClamp:a}),ref:S},g),h.createElement(Jm,{style:Object.assign(Object.assign(Object.assign({},k),eg),{WebkitLineClamp:a-1}),ref:w},g),h.createElement(Jm,{style:Object.assign(Object.assign(Object.assign({},k),eg),{WebkitLineClamp:1}),ref:$},i([],!0))),_===wb&&v&&v[0]!==v[1]&&h.createElement(Jm,{style:Object.assign(Object.assign({},k),{top:400}),ref:b},i(u_(d,B),!0)),_===xb&&h.createElement("span",{style:{whiteSpace:"inherit"},ref:x}))}const NZ=({enableEllipsis:e,isEllipsis:t,children:n,tooltipProps:r})=>!(r!=null&&r.title)||!e?n:h.createElement(Vr,Object.assign({open:t?void 0:!1},r),n);var IZ=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function MZ({mark:e,code:t,underline:n,delete:r,strong:i,keyboard:a,italic:l},c){let u=c;function d(m,g){g&&(u=h.createElement(m,{},u))}return d("strong",i),d("u",n),d("del",r),d("code",t),d("mark",e),d("kbd",a),d("i",l),u}const PZ="...",f_=["delete","mark","code","underline","strong","keyboard","italic"],hv=h.forwardRef((e,t)=>{var n;const{prefixCls:r,className:i,style:a,type:l,disabled:c,children:u,ellipsis:d,editable:m,copyable:g,component:v,title:y}=e,b=IZ(e,["prefixCls","className","style","type","disabled","children","ellipsis","editable","copyable","component","title"]),{getPrefixCls:x,direction:S}=h.useContext(Tt),[w]=Wl("Text"),$=h.useRef(null),O=h.useRef(null),T=x("typography",r),_=tr(b,f_),[R,M]=yb(m),[P,N]=vr(!1,{value:M.editing}),{triggerType:I=["icon"]}=M,B=_e=>{var tt;_e&&((tt=M.onStart)===null||tt===void 0||tt.call(M)),N(_e)},A=SZ(P);on(()=>{var _e;!P&&A&&((_e=O.current)===null||_e===void 0||_e.focus())},[P]);const k=_e=>{_e==null||_e.preventDefault(),B(!0)},j=_e=>{var tt;(tt=M.onChange)===null||tt===void 0||tt.call(M,_e),B(!1)},V=()=>{var _e;(_e=M.onCancel)===null||_e===void 0||_e.call(M),B(!1)},[z,F]=yb(g),{copied:q,copyLoading:Z,onClick:H}=bZ({copyConfig:F,children:u}),[U,K]=h.useState(!1),[D,X]=h.useState(!1),[Q,Y]=h.useState(!1),[ie,oe]=h.useState(!1),[le,Ce]=h.useState(!0),[ce,de]=yb(d,{expandable:!1,symbol:_e=>_e?w==null?void 0:w.collapse:w==null?void 0:w.expand}),[ye,ve]=vr(de.defaultExpanded||!1,{value:de.expanded}),ge=ce&&(!ye||de.expandable==="collapsible"),{rows:fe=1}=de,we=h.useMemo(()=>ge&&(de.suffix!==void 0||de.onEllipsis||de.expandable||R||z),[ge,de,R,z]);on(()=>{ce&&!we&&(K(wR("webkitLineClamp")),X(wR("textOverflow")))},[we,ce]);const[Te,je]=h.useState(ge),ze=h.useMemo(()=>we?!1:fe===1?D:U,[we,D,U]);on(()=>{je(ze&&ge)},[ze,ge]);const Oe=ge&&(Te?ie:Q),De=ge&&fe===1&&Te,Ne=ge&&fe>1&&Te,be=(_e,tt)=>{var $t;ve(tt.expanded),($t=de.onExpand)===null||$t===void 0||$t.call(de,_e,tt)},[Ye,he]=h.useState(0),$e=({offsetWidth:_e})=>{he(_e)},Me=_e=>{var tt;Y(_e),Q!==_e&&((tt=de.onEllipsis)===null||tt===void 0||tt.call(de,_e))};h.useEffect(()=>{const _e=$.current;if(ce&&Te&&_e){const tt=OZ(_e);ie!==tt&&oe(tt)}},[ce,Te,u,Ne,le,Ye]),h.useEffect(()=>{const _e=$.current;if(typeof IntersectionObserver>"u"||!_e||!Te||!ge)return;const tt=new IntersectionObserver(()=>{Ce(!!_e.offsetParent)});return tt.observe(_e),()=>{tt.disconnect()}},[Te,ge]);const Ae=xZ(de.tooltip,M.text,u),Xe=h.useMemo(()=>{if(!(!ce||Te))return[M.text,u,y,Ae.title].find(B1)},[ce,Te,y,Ae.title,Oe]);if(P)return h.createElement(hZ,{value:(n=M.text)!==null&&n!==void 0?n:typeof u=="string"?u:"",onSave:j,onCancel:V,onEnd:M.onEnd,prefixCls:T,className:i,style:a,direction:S,component:v,maxLength:M.maxLength,autoSize:M.autoSize,enterIcon:M.enterIcon});const Fe=()=>{const{expandable:_e,symbol:tt}=de;return _e?h.createElement("button",{type:"button",key:"expand",className:`${T}-${ye?"collapse":"expand"}`,onClick:$t=>be($t,{expanded:!ye}),"aria-label":ye?w.collapse:w==null?void 0:w.expand},typeof tt=="function"?tt(ye):tt):null},Ie=()=>{if(!R)return;const{icon:_e,tooltip:tt,tabIndex:$t}=M,wt=hi(tt)[0]||(w==null?void 0:w.edit),nn=typeof wt=="string"?wt:"";return I.includes("icon")?h.createElement(Vr,{key:"edit",title:tt===!1?"":wt},h.createElement("button",{type:"button",ref:O,className:`${T}-edit`,onClick:k,"aria-label":nn,tabIndex:$t},_e||h.createElement(eZ,{role:"button"}))):null},Ge=()=>z?h.createElement(RZ,Object.assign({key:"copy"},F,{prefixCls:T,copied:q,locale:w,onCopy:H,loading:Z,iconOnly:u==null})):null,Le=_e=>[_e&&Fe(),Ie(),Ge()],Ze=_e=>[_e&&!ye&&h.createElement("span",{"aria-hidden":!0,key:"ellipsis"},PZ),de.suffix,Le(_e)];return h.createElement(ya,{onResize:$e,disabled:!ge},_e=>h.createElement(NZ,{tooltipProps:Ae,enableEllipsis:ge,isEllipsis:Oe},h.createElement(Iz,Object.assign({className:te({[`${T}-${l}`]:l,[`${T}-disabled`]:c,[`${T}-ellipsis`]:ce,[`${T}-ellipsis-single-line`]:De,[`${T}-ellipsis-multiple-line`]:Ne},i),prefixCls:r,style:Object.assign(Object.assign({},a),{WebkitLineClamp:Ne?fe:void 0}),component:v,ref:gi(_e,$,t),direction:S,onClick:I.includes("text")?k:void 0,"aria-label":Xe==null?void 0:Xe.toString(),title:y},_),h.createElement(_Z,{enableMeasure:ge&&!Te,text:u,rows:fe,width:Ye,onEllipsis:Me,expanded:ye,miscDeps:[q,ye,Z,R,z,w].concat(qe(f_.map(tt=>e[tt])))},(tt,$t)=>MZ(e,h.createElement(h.Fragment,null,tt.length>0&&$t&&!ye&&Xe?h.createElement("span",{key:"show-content","aria-hidden":!0},tt):tt,Ze($t)))))))});var AZ=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const zZ=h.forwardRef((e,t)=>{const{ellipsis:n,rel:r,children:i,navigate:a}=e,l=AZ(e,["ellipsis","rel","children","navigate"]),c=Object.assign(Object.assign({},l),{rel:r===void 0&&l.target==="_blank"?"noopener noreferrer":r});return h.createElement(hv,Object.assign({},c,{ref:t,ellipsis:!!n,component:"a"}),i)});var jZ=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const DZ=h.forwardRef((e,t)=>{const{children:n}=e,r=jZ(e,["children"]);return h.createElement(hv,Object.assign({ref:t},r,{component:"div"}),n)});var LZ=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const kZ=(e,t)=>{const{ellipsis:n,children:r}=e,i=LZ(e,["ellipsis","children"]),a=h.useMemo(()=>n&&typeof n=="object"?tr(n,["expandable","rows"]):n,[n]);return h.createElement(hv,Object.assign({ref:t},i,{ellipsis:a,component:"span"}),r)},BZ=h.forwardRef(kZ);var HZ=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const FZ=[1,2,3,4,5],VZ=h.forwardRef((e,t)=>{const{level:n=1,children:r}=e,i=HZ(e,["level","children"]),a=FZ.includes(n)?`h${n}`:"h1";return h.createElement(hv,Object.assign({ref:t},i,{component:a}),r)}),Xi=Iz;Xi.Text=BZ;Xi.Link=zZ;Xi.Title=VZ;Xi.Paragraph=DZ;var Eb={exports:{}},Jd={},$b={exports:{}},Ob={};/**
|
|
324
|
-
* @license React
|
|
325
|
-
* scheduler.production.js
|
|
326
|
-
*
|
|
327
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
328
|
-
*
|
|
329
|
-
* This source code is licensed under the MIT license found in the
|
|
330
|
-
* LICENSE file in the root directory of this source tree.
|
|
331
|
-
*/var h_;function UZ(){return h_||(h_=1,(function(e){function t(z,F){var q=z.length;z.push(F);e:for(;0<q;){var Z=q-1>>>1,H=z[Z];if(0<i(H,F))z[Z]=F,z[q]=H,q=Z;else break e}}function n(z){return z.length===0?null:z[0]}function r(z){if(z.length===0)return null;var F=z[0],q=z.pop();if(q!==F){z[0]=q;e:for(var Z=0,H=z.length,U=H>>>1;Z<U;){var K=2*(Z+1)-1,D=z[K],X=K+1,Q=z[X];if(0>i(D,q))X<H&&0>i(Q,D)?(z[Z]=Q,z[X]=q,Z=X):(z[Z]=D,z[K]=q,Z=K);else if(X<H&&0>i(Q,q))z[Z]=Q,z[X]=q,Z=X;else break e}}return F}function i(z,F){var q=z.sortIndex-F.sortIndex;return q!==0?q:z.id-F.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var l=Date,c=l.now();e.unstable_now=function(){return l.now()-c}}var u=[],d=[],m=1,g=null,v=3,y=!1,b=!1,x=!1,S=!1,w=typeof setTimeout=="function"?setTimeout:null,$=typeof clearTimeout=="function"?clearTimeout:null,O=typeof setImmediate<"u"?setImmediate:null;function T(z){for(var F=n(d);F!==null;){if(F.callback===null)r(d);else if(F.startTime<=z)r(d),F.sortIndex=F.expirationTime,t(u,F);else break;F=n(d)}}function _(z){if(x=!1,T(z),!b)if(n(u)!==null)b=!0,R||(R=!0,A());else{var F=n(d);F!==null&&V(_,F.startTime-z)}}var R=!1,M=-1,P=5,N=-1;function I(){return S?!0:!(e.unstable_now()-N<P)}function B(){if(S=!1,R){var z=e.unstable_now();N=z;var F=!0;try{e:{b=!1,x&&(x=!1,$(M),M=-1),y=!0;var q=v;try{t:{for(T(z),g=n(u);g!==null&&!(g.expirationTime>z&&I());){var Z=g.callback;if(typeof Z=="function"){g.callback=null,v=g.priorityLevel;var H=Z(g.expirationTime<=z);if(z=e.unstable_now(),typeof H=="function"){g.callback=H,T(z),F=!0;break t}g===n(u)&&r(u),T(z)}else r(u);g=n(u)}if(g!==null)F=!0;else{var U=n(d);U!==null&&V(_,U.startTime-z),F=!1}}break e}finally{g=null,v=q,y=!1}F=void 0}}finally{F?A():R=!1}}}var A;if(typeof O=="function")A=function(){O(B)};else if(typeof MessageChannel<"u"){var k=new MessageChannel,j=k.port2;k.port1.onmessage=B,A=function(){j.postMessage(null)}}else A=function(){w(B,0)};function V(z,F){M=w(function(){z(e.unstable_now())},F)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(z){z.callback=null},e.unstable_forceFrameRate=function(z){0>z||125<z?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):P=0<z?Math.floor(1e3/z):5},e.unstable_getCurrentPriorityLevel=function(){return v},e.unstable_next=function(z){switch(v){case 1:case 2:case 3:var F=3;break;default:F=v}var q=v;v=F;try{return z()}finally{v=q}},e.unstable_requestPaint=function(){S=!0},e.unstable_runWithPriority=function(z,F){switch(z){case 1:case 2:case 3:case 4:case 5:break;default:z=3}var q=v;v=z;try{return F()}finally{v=q}},e.unstable_scheduleCallback=function(z,F,q){var Z=e.unstable_now();switch(typeof q=="object"&&q!==null?(q=q.delay,q=typeof q=="number"&&0<q?Z+q:Z):q=Z,z){case 1:var H=-1;break;case 2:H=250;break;case 5:H=1073741823;break;case 4:H=1e4;break;default:H=5e3}return H=q+H,z={id:m++,callback:F,priorityLevel:z,startTime:q,expirationTime:H,sortIndex:-1},q>Z?(z.sortIndex=q,t(d,z),n(u)===null&&z===n(d)&&(x?($(M),M=-1):x=!0,V(_,q-Z))):(z.sortIndex=H,t(u,z),b||y||(b=!0,R||(R=!0,A()))),z},e.unstable_shouldYield=I,e.unstable_wrapCallback=function(z){var F=v;return function(){var q=v;v=F;try{return z.apply(this,arguments)}finally{v=q}}}})(Ob)),Ob}var m_;function qZ(){return m_||(m_=1,$b.exports=UZ()),$b.exports}/**
|
|
332
|
-
* @license React
|
|
333
|
-
* react-dom-client.production.js
|
|
334
|
-
*
|
|
335
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
336
|
-
*
|
|
337
|
-
* This source code is licensed under the MIT license found in the
|
|
338
|
-
* LICENSE file in the root directory of this source tree.
|
|
339
|
-
*/var g_;function KZ(){if(g_)return Jd;g_=1;var e=qZ(),t=Tp(),n=NI();function r(o){var s="https://react.dev/errors/"+o;if(1<arguments.length){s+="?args[]="+encodeURIComponent(arguments[1]);for(var f=2;f<arguments.length;f++)s+="&args[]="+encodeURIComponent(arguments[f])}return"Minified React error #"+o+"; visit "+s+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function i(o){return!(!o||o.nodeType!==1&&o.nodeType!==9&&o.nodeType!==11)}function a(o){var s=o,f=o;if(o.alternate)for(;s.return;)s=s.return;else{o=s;do s=o,(s.flags&4098)!==0&&(f=s.return),o=s.return;while(o)}return s.tag===3?f:null}function l(o){if(o.tag===13){var s=o.memoizedState;if(s===null&&(o=o.alternate,o!==null&&(s=o.memoizedState)),s!==null)return s.dehydrated}return null}function c(o){if(o.tag===31){var s=o.memoizedState;if(s===null&&(o=o.alternate,o!==null&&(s=o.memoizedState)),s!==null)return s.dehydrated}return null}function u(o){if(a(o)!==o)throw Error(r(188))}function d(o){var s=o.alternate;if(!s){if(s=a(o),s===null)throw Error(r(188));return s!==o?null:o}for(var f=o,p=s;;){var C=f.return;if(C===null)break;var E=C.alternate;if(E===null){if(p=C.return,p!==null){f=p;continue}break}if(C.child===E.child){for(E=C.child;E;){if(E===f)return u(C),o;if(E===p)return u(C),s;E=E.sibling}throw Error(r(188))}if(f.return!==p.return)f=C,p=E;else{for(var L=!1,W=C.child;W;){if(W===f){L=!0,f=C,p=E;break}if(W===p){L=!0,p=C,f=E;break}W=W.sibling}if(!L){for(W=E.child;W;){if(W===f){L=!0,f=E,p=C;break}if(W===p){L=!0,p=E,f=C;break}W=W.sibling}if(!L)throw Error(r(189))}}if(f.alternate!==p)throw Error(r(190))}if(f.tag!==3)throw Error(r(188));return f.stateNode.current===f?o:s}function m(o){var s=o.tag;if(s===5||s===26||s===27||s===6)return o;for(o=o.child;o!==null;){if(s=m(o),s!==null)return s;o=o.sibling}return null}var g=Object.assign,v=Symbol.for("react.element"),y=Symbol.for("react.transitional.element"),b=Symbol.for("react.portal"),x=Symbol.for("react.fragment"),S=Symbol.for("react.strict_mode"),w=Symbol.for("react.profiler"),$=Symbol.for("react.consumer"),O=Symbol.for("react.context"),T=Symbol.for("react.forward_ref"),_=Symbol.for("react.suspense"),R=Symbol.for("react.suspense_list"),M=Symbol.for("react.memo"),P=Symbol.for("react.lazy"),N=Symbol.for("react.activity"),I=Symbol.for("react.memo_cache_sentinel"),B=Symbol.iterator;function A(o){return o===null||typeof o!="object"?null:(o=B&&o[B]||o["@@iterator"],typeof o=="function"?o:null)}var k=Symbol.for("react.client.reference");function j(o){if(o==null)return null;if(typeof o=="function")return o.$$typeof===k?null:o.displayName||o.name||null;if(typeof o=="string")return o;switch(o){case x:return"Fragment";case w:return"Profiler";case S:return"StrictMode";case _:return"Suspense";case R:return"SuspenseList";case N:return"Activity"}if(typeof o=="object")switch(o.$$typeof){case b:return"Portal";case O:return o.displayName||"Context";case $:return(o._context.displayName||"Context")+".Consumer";case T:var s=o.render;return o=o.displayName,o||(o=s.displayName||s.name||"",o=o!==""?"ForwardRef("+o+")":"ForwardRef"),o;case M:return s=o.displayName||null,s!==null?s:j(o.type)||"Memo";case P:s=o._payload,o=o._init;try{return j(o(s))}catch{}}return null}var V=Array.isArray,z=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,F=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,q={pending:!1,data:null,method:null,action:null},Z=[],H=-1;function U(o){return{current:o}}function K(o){0>H||(o.current=Z[H],Z[H]=null,H--)}function D(o,s){H++,Z[H]=o.current,o.current=s}var X=U(null),Q=U(null),Y=U(null),ie=U(null);function oe(o,s){switch(D(Y,s),D(Q,o),D(X,null),s.nodeType){case 9:case 11:o=(o=s.documentElement)&&(o=o.namespaceURI)?gO(o):0;break;default:if(o=s.tagName,s=s.namespaceURI)s=gO(s),o=pO(s,o);else switch(o){case"svg":o=1;break;case"math":o=2;break;default:o=0}}K(X),D(X,o)}function le(){K(X),K(Q),K(Y)}function Ce(o){o.memoizedState!==null&&D(ie,o);var s=X.current,f=pO(s,o.type);s!==f&&(D(Q,o),D(X,f))}function ce(o){Q.current===o&&(K(X),K(Q)),ie.current===o&&(K(ie),Fd._currentValue=q)}var de,ye;function ve(o){if(de===void 0)try{throw Error()}catch(f){var s=f.stack.trim().match(/\n( *(at )?)/);de=s&&s[1]||"",ye=-1<f.stack.indexOf(`
|
|
340
|
-
at`)?" (<anonymous>)":-1<f.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
341
|
-
`+de+o+ye}var ge=!1;function fe(o,s){if(!o||ge)return"";ge=!0;var f=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var p={DetermineComponentFrameRoot:function(){try{if(s){var Ve=function(){throw Error()};if(Object.defineProperty(Ve.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Ve,[])}catch(Re){var Ee=Re}Reflect.construct(o,[],Ve)}else{try{Ve.call()}catch(Re){Ee=Re}o.call(Ve.prototype)}}else{try{throw Error()}catch(Re){Ee=Re}(Ve=o())&&typeof Ve.catch=="function"&&Ve.catch(function(){})}}catch(Re){if(Re&&Ee&&typeof Re.stack=="string")return[Re.stack,Ee.stack]}return[null,null]}};p.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var C=Object.getOwnPropertyDescriptor(p.DetermineComponentFrameRoot,"name");C&&C.configurable&&Object.defineProperty(p.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var E=p.DetermineComponentFrameRoot(),L=E[0],W=E[1];if(L&&W){var ne=L.split(`
|
|
342
|
-
`),xe=W.split(`
|
|
343
|
-
`);for(C=p=0;p<ne.length&&!ne[p].includes("DetermineComponentFrameRoot");)p++;for(;C<xe.length&&!xe[C].includes("DetermineComponentFrameRoot");)C++;if(p===ne.length||C===xe.length)for(p=ne.length-1,C=xe.length-1;1<=p&&0<=C&&ne[p]!==xe[C];)C--;for(;1<=p&&0<=C;p--,C--)if(ne[p]!==xe[C]){if(p!==1||C!==1)do if(p--,C--,0>C||ne[p]!==xe[C]){var Pe=`
|
|
344
|
-
`+ne[p].replace(" at new "," at ");return o.displayName&&Pe.includes("<anonymous>")&&(Pe=Pe.replace("<anonymous>",o.displayName)),Pe}while(1<=p&&0<=C);break}}}finally{ge=!1,Error.prepareStackTrace=f}return(f=o?o.displayName||o.name:"")?ve(f):""}function we(o,s){switch(o.tag){case 26:case 27:case 5:return ve(o.type);case 16:return ve("Lazy");case 13:return o.child!==s&&s!==null?ve("Suspense Fallback"):ve("Suspense");case 19:return ve("SuspenseList");case 0:case 15:return fe(o.type,!1);case 11:return fe(o.type.render,!1);case 1:return fe(o.type,!0);case 31:return ve("Activity");default:return""}}function Te(o){try{var s="",f=null;do s+=we(o,f),f=o,o=o.return;while(o);return s}catch(p){return`
|
|
345
|
-
Error generating stack: `+p.message+`
|
|
346
|
-
`+p.stack}}var je=Object.prototype.hasOwnProperty,ze=e.unstable_scheduleCallback,Oe=e.unstable_cancelCallback,De=e.unstable_shouldYield,Ne=e.unstable_requestPaint,be=e.unstable_now,Ye=e.unstable_getCurrentPriorityLevel,he=e.unstable_ImmediatePriority,$e=e.unstable_UserBlockingPriority,Me=e.unstable_NormalPriority,Ae=e.unstable_LowPriority,Xe=e.unstable_IdlePriority,Fe=e.log,Ie=e.unstable_setDisableYieldValue,Ge=null,Le=null;function Ze(o){if(typeof Fe=="function"&&Ie(o),Le&&typeof Le.setStrictMode=="function")try{Le.setStrictMode(Ge,o)}catch{}}var _e=Math.clz32?Math.clz32:wt,tt=Math.log,$t=Math.LN2;function wt(o){return o>>>=0,o===0?32:31-(tt(o)/$t|0)|0}var nn=256,cn=262144,jn=4194304;function $n(o){var s=o&42;if(s!==0)return s;switch(o&-o){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return o&261888;case 262144:case 524288:case 1048576:case 2097152:return o&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return o&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return o}}function rn(o,s,f){var p=o.pendingLanes;if(p===0)return 0;var C=0,E=o.suspendedLanes,L=o.pingedLanes;o=o.warmLanes;var W=p&134217727;return W!==0?(p=W&~E,p!==0?C=$n(p):(L&=W,L!==0?C=$n(L):f||(f=W&~o,f!==0&&(C=$n(f))))):(W=p&~E,W!==0?C=$n(W):L!==0?C=$n(L):f||(f=p&~o,f!==0&&(C=$n(f)))),C===0?0:s!==0&&s!==C&&(s&E)===0&&(E=C&-C,f=s&-s,E>=f||E===32&&(f&4194048)!==0)?s:C}function kt(o,s){return(o.pendingLanes&~(o.suspendedLanes&~o.pingedLanes)&s)===0}function Mt(o,s){switch(o){case 1:case 2:case 4:case 8:case 64:return s+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 s+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 un(){var o=jn;return jn<<=1,(jn&62914560)===0&&(jn=4194304),o}function Jt(o){for(var s=[],f=0;31>f;f++)s.push(o);return s}function st(o,s){o.pendingLanes|=s,s!==268435456&&(o.suspendedLanes=0,o.pingedLanes=0,o.warmLanes=0)}function Pt(o,s,f,p,C,E){var L=o.pendingLanes;o.pendingLanes=f,o.suspendedLanes=0,o.pingedLanes=0,o.warmLanes=0,o.expiredLanes&=f,o.entangledLanes&=f,o.errorRecoveryDisabledLanes&=f,o.shellSuspendCounter=0;var W=o.entanglements,ne=o.expirationTimes,xe=o.hiddenUpdates;for(f=L&~f;0<f;){var Pe=31-_e(f),Ve=1<<Pe;W[Pe]=0,ne[Pe]=-1;var Ee=xe[Pe];if(Ee!==null)for(xe[Pe]=null,Pe=0;Pe<Ee.length;Pe++){var Re=Ee[Pe];Re!==null&&(Re.lane&=-536870913)}f&=~Ve}p!==0&&vt(o,p,0),E!==0&&C===0&&o.tag!==0&&(o.suspendedLanes|=E&~(L&~s))}function vt(o,s,f){o.pendingLanes|=s,o.suspendedLanes&=~s;var p=31-_e(s);o.entangledLanes|=s,o.entanglements[p]=o.entanglements[p]|1073741824|f&261930}function Ke(o,s){var f=o.entangledLanes|=s;for(o=o.entanglements;f;){var p=31-_e(f),C=1<<p;C&s|o[p]&s&&(o[p]|=s),f&=~C}}function Be(o,s){var f=s&-s;return f=(f&42)!==0?1:He(f),(f&(o.suspendedLanes|s))!==0?0:f}function He(o){switch(o){case 2:o=1;break;case 8:o=4;break;case 32:o=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:o=128;break;case 268435456:o=134217728;break;default:o=0}return o}function Qe(o){return o&=-o,2<o?8<o?(o&134217727)!==0?32:268435456:8:2}function ut(){var o=F.p;return o!==0?o:(o=window.event,o===void 0?32:kO(o.type))}function dt(o,s){var f=F.p;try{return F.p=o,s()}finally{F.p=f}}var zt=Math.random().toString(36).slice(2),Ot="__reactFiber$"+zt,Ct="__reactProps$"+zt,Vt="__reactContainer$"+zt,Dn="__reactEvents$"+zt,Bn="__reactListeners$"+zt,Un="__reactHandles$"+zt,nr="__reactResources$"+zt,an="__reactMarker$"+zt;function Sn(o){delete o[Ot],delete o[Ct],delete o[Dn],delete o[Bn],delete o[Un]}function We(o){var s=o[Ot];if(s)return s;for(var f=o.parentNode;f;){if(s=f[Vt]||f[Ot]){if(f=s.alternate,s.child!==null||f!==null&&f.child!==null)for(o=wO(o);o!==null;){if(f=o[Ot])return f;o=wO(o)}return s}o=f,f=o.parentNode}return null}function at(o){if(o=o[Ot]||o[Vt]){var s=o.tag;if(s===5||s===6||s===13||s===31||s===26||s===27||s===3)return o}return null}function _t(o){var s=o.tag;if(s===5||s===26||s===27||s===6)return o.stateNode;throw Error(r(33))}function Dt(o){var s=o[nr];return s||(s=o[nr]={hoistableStyles:new Map,hoistableScripts:new Map}),s}function rt(o){o[an]=!0}var ct=new Set,It={};function qt(o,s){nt(o,s),nt(o+"Capture",s)}function nt(o,s){for(It[o]=s,o=0;o<s.length;o++)ct.add(s[o])}var bt=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]*$"),Ft={},rr={};function Sr(o){return je.call(rr,o)?!0:je.call(Ft,o)?!1:bt.test(o)?rr[o]=!0:(Ft[o]=!0,!1)}function Ar(o,s,f){if(Sr(s))if(f===null)o.removeAttribute(s);else{switch(typeof f){case"undefined":case"function":case"symbol":o.removeAttribute(s);return;case"boolean":var p=s.toLowerCase().slice(0,5);if(p!=="data-"&&p!=="aria-"){o.removeAttribute(s);return}}o.setAttribute(s,""+f)}}function zr(o,s,f){if(f===null)o.removeAttribute(s);else{switch(typeof f){case"undefined":case"function":case"symbol":case"boolean":o.removeAttribute(s);return}o.setAttribute(s,""+f)}}function Qn(o,s,f,p){if(p===null)o.removeAttribute(f);else{switch(typeof p){case"undefined":case"function":case"symbol":case"boolean":o.removeAttribute(f);return}o.setAttributeNS(s,f,""+p)}}function Yn(o){switch(typeof o){case"bigint":case"boolean":case"number":case"string":case"undefined":return o;case"object":return o;default:return""}}function Ur(o){var s=o.type;return(o=o.nodeName)&&o.toLowerCase()==="input"&&(s==="checkbox"||s==="radio")}function vi(o,s,f){var p=Object.getOwnPropertyDescriptor(o.constructor.prototype,s);if(!o.hasOwnProperty(s)&&typeof p<"u"&&typeof p.get=="function"&&typeof p.set=="function"){var C=p.get,E=p.set;return Object.defineProperty(o,s,{configurable:!0,get:function(){return C.call(this)},set:function(L){f=""+L,E.call(this,L)}}),Object.defineProperty(o,s,{enumerable:p.enumerable}),{getValue:function(){return f},setValue:function(L){f=""+L},stopTracking:function(){o._valueTracker=null,delete o[s]}}}}function yi(o){if(!o._valueTracker){var s=Ur(o)?"checked":"value";o._valueTracker=vi(o,s,""+o[s])}}function On(o){if(!o)return!1;var s=o._valueTracker;if(!s)return!0;var f=s.getValue(),p="";return o&&(p=Ur(o)?o.checked?"true":"false":o.value),o=p,o!==f?(s.setValue(o),!0):!1}function ft(o){if(o=o||(typeof document<"u"?document:void 0),typeof o>"u")return null;try{return o.activeElement||o.body}catch{return o.body}}var ht=/[\n"\\]/g;function Wt(o){return o.replace(ht,function(s){return"\\"+s.charCodeAt(0).toString(16)+" "})}function gn(o,s,f,p,C,E,L,W){o.name="",L!=null&&typeof L!="function"&&typeof L!="symbol"&&typeof L!="boolean"?o.type=L:o.removeAttribute("type"),s!=null?L==="number"?(s===0&&o.value===""||o.value!=s)&&(o.value=""+Yn(s)):o.value!==""+Yn(s)&&(o.value=""+Yn(s)):L!=="submit"&&L!=="reset"||o.removeAttribute("value"),s!=null?Hn(o,L,Yn(s)):f!=null?Hn(o,L,Yn(f)):p!=null&&o.removeAttribute("value"),C==null&&E!=null&&(o.defaultChecked=!!E),C!=null&&(o.checked=C&&typeof C!="function"&&typeof C!="symbol"),W!=null&&typeof W!="function"&&typeof W!="symbol"&&typeof W!="boolean"?o.name=""+Yn(W):o.removeAttribute("name")}function Pn(o,s,f,p,C,E,L,W){if(E!=null&&typeof E!="function"&&typeof E!="symbol"&&typeof E!="boolean"&&(o.type=E),s!=null||f!=null){if(!(E!=="submit"&&E!=="reset"||s!=null)){yi(o);return}f=f!=null?""+Yn(f):"",s=s!=null?""+Yn(s):f,W||s===o.value||(o.value=s),o.defaultValue=s}p=p??C,p=typeof p!="function"&&typeof p!="symbol"&&!!p,o.checked=W?o.checked:!!p,o.defaultChecked=!!p,L!=null&&typeof L!="function"&&typeof L!="symbol"&&typeof L!="boolean"&&(o.name=L),yi(o)}function Hn(o,s,f){s==="number"&&ft(o.ownerDocument)===o||o.defaultValue===""+f||(o.defaultValue=""+f)}function fr(o,s,f,p){if(o=o.options,s){s={};for(var C=0;C<f.length;C++)s["$"+f[C]]=!0;for(f=0;f<o.length;f++)C=s.hasOwnProperty("$"+o[f].value),o[f].selected!==C&&(o[f].selected=C),C&&p&&(o[f].defaultSelected=!0)}else{for(f=""+Yn(f),s=null,C=0;C<o.length;C++){if(o[C].value===f){o[C].selected=!0,p&&(o[C].defaultSelected=!0);return}s!==null||o[C].disabled||(s=o[C])}s!==null&&(s.selected=!0)}}function $r(o,s,f){if(s!=null&&(s=""+Yn(s),s!==o.value&&(o.value=s),f==null)){o.defaultValue!==s&&(o.defaultValue=s);return}o.defaultValue=f!=null?""+Yn(f):""}function Lr(o,s,f,p){if(s==null){if(p!=null){if(f!=null)throw Error(r(92));if(V(p)){if(1<p.length)throw Error(r(93));p=p[0]}f=p}f==null&&(f=""),s=f}f=Yn(s),o.defaultValue=f,p=o.textContent,p===f&&p!==""&&p!==null&&(o.value=p),yi(o)}function dr(o,s){if(s){var f=o.firstChild;if(f&&f===o.lastChild&&f.nodeType===3){f.nodeValue=s;return}}o.textContent=s}var qr=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 Pi(o,s,f){var p=s.indexOf("--")===0;f==null||typeof f=="boolean"||f===""?p?o.setProperty(s,""):s==="float"?o.cssFloat="":o[s]="":p?o.setProperty(s,f):typeof f!="number"||f===0||qr.has(s)?s==="float"?o.cssFloat=f:o[s]=(""+f).trim():o[s]=f+"px"}function kr(o,s,f){if(s!=null&&typeof s!="object")throw Error(r(62));if(o=o.style,f!=null){for(var p in f)!f.hasOwnProperty(p)||s!=null&&s.hasOwnProperty(p)||(p.indexOf("--")===0?o.setProperty(p,""):p==="float"?o.cssFloat="":o[p]="");for(var C in s)p=s[C],s.hasOwnProperty(C)&&f[C]!==p&&Pi(o,C,p)}else for(var E in s)s.hasOwnProperty(E)&&Pi(o,E,s[E])}function lo(o){if(o.indexOf("-")===-1)return!1;switch(o){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var ad=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=/^[\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 Ca(o){return bi.test(""+o)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":o}function ci(){}var Ai=null;function Zi(o){return o=o.target||o.srcElement||window,o.correspondingUseElement&&(o=o.correspondingUseElement),o.nodeType===3?o.parentNode:o}var Ji=null,wa=null;function uc(o){var s=at(o);if(s&&(o=s.stateNode)){var f=o[Ct]||null;e:switch(o=s.stateNode,s.type){case"input":if(gn(o,f.value,f.defaultValue,f.defaultValue,f.checked,f.defaultChecked,f.type,f.name),s=f.name,f.type==="radio"&&s!=null){for(f=o;f.parentNode;)f=f.parentNode;for(f=f.querySelectorAll('input[name="'+Wt(""+s)+'"][type="radio"]'),s=0;s<f.length;s++){var p=f[s];if(p!==o&&p.form===o.form){var C=p[Ct]||null;if(!C)throw Error(r(90));gn(p,C.value,C.defaultValue,C.defaultValue,C.checked,C.defaultChecked,C.type,C.name)}}for(s=0;s<f.length;s++)p=f[s],p.form===o.form&&On(p)}break e;case"textarea":$r(o,f.value,f.defaultValue);break e;case"select":s=f.value,s!=null&&fr(o,!!f.multiple,s,!1)}}}var Ql=!1;function dc(o,s,f){if(Ql)return o(s,f);Ql=!0;try{var p=o(s);return p}finally{if(Ql=!1,(Ji!==null||wa!==null)&&(gm(),Ji&&(s=Ji,o=wa,wa=Ji=null,uc(s),o)))for(s=0;s<o.length;s++)uc(o[s])}}function gt(o,s){var f=o.stateNode;if(f===null)return null;var p=f[Ct]||null;if(p===null)return null;f=p[s];e:switch(s){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(p=!p.disabled)||(o=o.type,p=!(o==="button"||o==="input"||o==="select"||o==="textarea")),o=!p;break e;default:o=!1}if(o)return null;if(f&&typeof f!="function")throw Error(r(231,s,typeof f));return f}var Nt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),qn=!1;if(Nt)try{var ir={};Object.defineProperty(ir,"passive",{get:function(){qn=!0}}),window.addEventListener("test",ir,ir),window.removeEventListener("test",ir,ir)}catch{qn=!1}var An=null,Vo=null,Uo=null;function od(){if(Uo)return Uo;var o,s=Vo,f=s.length,p,C="value"in An?An.value:An.textContent,E=C.length;for(o=0;o<f&&s[o]===C[o];o++);var L=f-o;for(p=1;p<=L&&s[f-p]===C[E-p];p++);return Uo=C.slice(o,1<p?1-p:void 0)}function so(o){var s=o.keyCode;return"charCode"in o?(o=o.charCode,o===0&&s===13&&(o=13)):o=s,o===10&&(o=13),32<=o||o===13?o:0}function Ih(){return!0}function vw(){return!1}function Si(o){function s(f,p,C,E,L){this._reactName=f,this._targetInst=C,this.type=p,this.nativeEvent=E,this.target=L,this.currentTarget=null;for(var W in o)o.hasOwnProperty(W)&&(f=o[W],this[W]=f?f(E):E[W]);return this.isDefaultPrevented=(E.defaultPrevented!=null?E.defaultPrevented:E.returnValue===!1)?Ih:vw,this.isPropagationStopped=vw,this}return g(s.prototype,{preventDefault:function(){this.defaultPrevented=!0;var f=this.nativeEvent;f&&(f.preventDefault?f.preventDefault():typeof f.returnValue!="unknown"&&(f.returnValue=!1),this.isDefaultPrevented=Ih)},stopPropagation:function(){var f=this.nativeEvent;f&&(f.stopPropagation?f.stopPropagation():typeof f.cancelBubble!="unknown"&&(f.cancelBubble=!0),this.isPropagationStopped=Ih)},persist:function(){},isPersistent:Ih}),s}var Yl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(o){return o.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Mh=Si(Yl),ld=g({},Yl,{view:0,detail:0}),cD=Si(ld),Ev,$v,sd,Ph=g({},ld,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Rv,button:0,buttons:0,relatedTarget:function(o){return o.relatedTarget===void 0?o.fromElement===o.srcElement?o.toElement:o.fromElement:o.relatedTarget},movementX:function(o){return"movementX"in o?o.movementX:(o!==sd&&(sd&&o.type==="mousemove"?(Ev=o.screenX-sd.screenX,$v=o.screenY-sd.screenY):$v=Ev=0,sd=o),Ev)},movementY:function(o){return"movementY"in o?o.movementY:$v}}),yw=Si(Ph),uD=g({},Ph,{dataTransfer:0}),dD=Si(uD),fD=g({},ld,{relatedTarget:0}),Ov=Si(fD),hD=g({},Yl,{animationName:0,elapsedTime:0,pseudoElement:0}),mD=Si(hD),gD=g({},Yl,{clipboardData:function(o){return"clipboardData"in o?o.clipboardData:window.clipboardData}}),pD=Si(gD),vD=g({},Yl,{data:0}),bw=Si(vD),yD={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},bD={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"},SD={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function xD(o){var s=this.nativeEvent;return s.getModifierState?s.getModifierState(o):(o=SD[o])?!!s[o]:!1}function Rv(){return xD}var CD=g({},ld,{key:function(o){if(o.key){var s=yD[o.key]||o.key;if(s!=="Unidentified")return s}return o.type==="keypress"?(o=so(o),o===13?"Enter":String.fromCharCode(o)):o.type==="keydown"||o.type==="keyup"?bD[o.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Rv,charCode:function(o){return o.type==="keypress"?so(o):0},keyCode:function(o){return o.type==="keydown"||o.type==="keyup"?o.keyCode:0},which:function(o){return o.type==="keypress"?so(o):o.type==="keydown"||o.type==="keyup"?o.keyCode:0}}),wD=Si(CD),ED=g({},Ph,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Sw=Si(ED),$D=g({},ld,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Rv}),OD=Si($D),RD=g({},Yl,{propertyName:0,elapsedTime:0,pseudoElement:0}),TD=Si(RD),_D=g({},Ph,{deltaX:function(o){return"deltaX"in o?o.deltaX:"wheelDeltaX"in o?-o.wheelDeltaX:0},deltaY:function(o){return"deltaY"in o?o.deltaY:"wheelDeltaY"in o?-o.wheelDeltaY:"wheelDelta"in o?-o.wheelDelta:0},deltaZ:0,deltaMode:0}),ND=Si(_D),ID=g({},Yl,{newState:0,oldState:0}),MD=Si(ID),PD=[9,13,27,32],Tv=Nt&&"CompositionEvent"in window,cd=null;Nt&&"documentMode"in document&&(cd=document.documentMode);var AD=Nt&&"TextEvent"in window&&!cd,xw=Nt&&(!Tv||cd&&8<cd&&11>=cd),Cw=" ",ww=!1;function Ew(o,s){switch(o){case"keyup":return PD.indexOf(s.keyCode)!==-1;case"keydown":return s.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function $w(o){return o=o.detail,typeof o=="object"&&"data"in o?o.data:null}var fc=!1;function zD(o,s){switch(o){case"compositionend":return $w(s);case"keypress":return s.which!==32?null:(ww=!0,Cw);case"textInput":return o=s.data,o===Cw&&ww?null:o;default:return null}}function jD(o,s){if(fc)return o==="compositionend"||!Tv&&Ew(o,s)?(o=od(),Uo=Vo=An=null,fc=!1,o):null;switch(o){case"paste":return null;case"keypress":if(!(s.ctrlKey||s.altKey||s.metaKey)||s.ctrlKey&&s.altKey){if(s.char&&1<s.char.length)return s.char;if(s.which)return String.fromCharCode(s.which)}return null;case"compositionend":return xw&&s.locale!=="ko"?null:s.data;default:return null}}var DD={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 Ow(o){var s=o&&o.nodeName&&o.nodeName.toLowerCase();return s==="input"?!!DD[o.type]:s==="textarea"}function Rw(o,s,f,p){Ji?wa?wa.push(p):wa=[p]:Ji=p,s=Cm(s,"onChange"),0<s.length&&(f=new Mh("onChange","change",null,f,p),o.push({event:f,listeners:s}))}var ud=null,dd=null;function LD(o){cO(o,0)}function Ah(o){var s=_t(o);if(On(s))return o}function Tw(o,s){if(o==="change")return s}var _w=!1;if(Nt){var _v;if(Nt){var Nv="oninput"in document;if(!Nv){var Nw=document.createElement("div");Nw.setAttribute("oninput","return;"),Nv=typeof Nw.oninput=="function"}_v=Nv}else _v=!1;_w=_v&&(!document.documentMode||9<document.documentMode)}function Iw(){ud&&(ud.detachEvent("onpropertychange",Mw),dd=ud=null)}function Mw(o){if(o.propertyName==="value"&&Ah(dd)){var s=[];Rw(s,dd,o,Zi(o)),dc(LD,s)}}function kD(o,s,f){o==="focusin"?(Iw(),ud=s,dd=f,ud.attachEvent("onpropertychange",Mw)):o==="focusout"&&Iw()}function BD(o){if(o==="selectionchange"||o==="keyup"||o==="keydown")return Ah(dd)}function HD(o,s){if(o==="click")return Ah(s)}function FD(o,s){if(o==="input"||o==="change")return Ah(s)}function VD(o,s){return o===s&&(o!==0||1/o===1/s)||o!==o&&s!==s}var zi=typeof Object.is=="function"?Object.is:VD;function fd(o,s){if(zi(o,s))return!0;if(typeof o!="object"||o===null||typeof s!="object"||s===null)return!1;var f=Object.keys(o),p=Object.keys(s);if(f.length!==p.length)return!1;for(p=0;p<f.length;p++){var C=f[p];if(!je.call(s,C)||!zi(o[C],s[C]))return!1}return!0}function Pw(o){for(;o&&o.firstChild;)o=o.firstChild;return o}function Aw(o,s){var f=Pw(o);o=0;for(var p;f;){if(f.nodeType===3){if(p=o+f.textContent.length,o<=s&&p>=s)return{node:f,offset:s-o};o=p}e:{for(;f;){if(f.nextSibling){f=f.nextSibling;break e}f=f.parentNode}f=void 0}f=Pw(f)}}function zw(o,s){return o&&s?o===s?!0:o&&o.nodeType===3?!1:s&&s.nodeType===3?zw(o,s.parentNode):"contains"in o?o.contains(s):o.compareDocumentPosition?!!(o.compareDocumentPosition(s)&16):!1:!1}function jw(o){o=o!=null&&o.ownerDocument!=null&&o.ownerDocument.defaultView!=null?o.ownerDocument.defaultView:window;for(var s=ft(o.document);s instanceof o.HTMLIFrameElement;){try{var f=typeof s.contentWindow.location.href=="string"}catch{f=!1}if(f)o=s.contentWindow;else break;s=ft(o.document)}return s}function Iv(o){var s=o&&o.nodeName&&o.nodeName.toLowerCase();return s&&(s==="input"&&(o.type==="text"||o.type==="search"||o.type==="tel"||o.type==="url"||o.type==="password")||s==="textarea"||o.contentEditable==="true")}var UD=Nt&&"documentMode"in document&&11>=document.documentMode,hc=null,Mv=null,hd=null,Pv=!1;function Dw(o,s,f){var p=f.window===f?f.document:f.nodeType===9?f:f.ownerDocument;Pv||hc==null||hc!==ft(p)||(p=hc,"selectionStart"in p&&Iv(p)?p={start:p.selectionStart,end:p.selectionEnd}:(p=(p.ownerDocument&&p.ownerDocument.defaultView||window).getSelection(),p={anchorNode:p.anchorNode,anchorOffset:p.anchorOffset,focusNode:p.focusNode,focusOffset:p.focusOffset}),hd&&fd(hd,p)||(hd=p,p=Cm(Mv,"onSelect"),0<p.length&&(s=new Mh("onSelect","select",null,s,f),o.push({event:s,listeners:p}),s.target=hc)))}function Zl(o,s){var f={};return f[o.toLowerCase()]=s.toLowerCase(),f["Webkit"+o]="webkit"+s,f["Moz"+o]="moz"+s,f}var mc={animationend:Zl("Animation","AnimationEnd"),animationiteration:Zl("Animation","AnimationIteration"),animationstart:Zl("Animation","AnimationStart"),transitionrun:Zl("Transition","TransitionRun"),transitionstart:Zl("Transition","TransitionStart"),transitioncancel:Zl("Transition","TransitionCancel"),transitionend:Zl("Transition","TransitionEnd")},Av={},Lw={};Nt&&(Lw=document.createElement("div").style,"AnimationEvent"in window||(delete mc.animationend.animation,delete mc.animationiteration.animation,delete mc.animationstart.animation),"TransitionEvent"in window||delete mc.transitionend.transition);function Jl(o){if(Av[o])return Av[o];if(!mc[o])return o;var s=mc[o],f;for(f in s)if(s.hasOwnProperty(f)&&f in Lw)return Av[o]=s[f];return o}var kw=Jl("animationend"),Bw=Jl("animationiteration"),Hw=Jl("animationstart"),qD=Jl("transitionrun"),KD=Jl("transitionstart"),WD=Jl("transitioncancel"),Fw=Jl("transitionend"),Vw=new Map,zv="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(" ");zv.push("scrollEnd");function Ea(o,s){Vw.set(o,s),qt(s,[o])}var zh=typeof reportError=="function"?reportError:function(o){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var s=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof o=="object"&&o!==null&&typeof o.message=="string"?String(o.message):String(o),error:o});if(!window.dispatchEvent(s))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",o);return}console.error(o)},ea=[],gc=0,jv=0;function jh(){for(var o=gc,s=jv=gc=0;s<o;){var f=ea[s];ea[s++]=null;var p=ea[s];ea[s++]=null;var C=ea[s];ea[s++]=null;var E=ea[s];if(ea[s++]=null,p!==null&&C!==null){var L=p.pending;L===null?C.next=C:(C.next=L.next,L.next=C),p.pending=C}E!==0&&Uw(f,C,E)}}function Dh(o,s,f,p){ea[gc++]=o,ea[gc++]=s,ea[gc++]=f,ea[gc++]=p,jv|=p,o.lanes|=p,o=o.alternate,o!==null&&(o.lanes|=p)}function Dv(o,s,f,p){return Dh(o,s,f,p),Lh(o)}function es(o,s){return Dh(o,null,null,s),Lh(o)}function Uw(o,s,f){o.lanes|=f;var p=o.alternate;p!==null&&(p.lanes|=f);for(var C=!1,E=o.return;E!==null;)E.childLanes|=f,p=E.alternate,p!==null&&(p.childLanes|=f),E.tag===22&&(o=E.stateNode,o===null||o._visibility&1||(C=!0)),o=E,E=E.return;return o.tag===3?(E=o.stateNode,C&&s!==null&&(C=31-_e(f),o=E.hiddenUpdates,p=o[C],p===null?o[C]=[s]:p.push(s),s.lane=f|536870912),E):null}function Lh(o){if(50<zd)throw zd=0,Ky=null,Error(r(185));for(var s=o.return;s!==null;)o=s,s=o.return;return o.tag===3?o.stateNode:null}var pc={};function GD(o,s,f,p){this.tag=o,this.key=f,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=s,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=p,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ji(o,s,f,p){return new GD(o,s,f,p)}function Lv(o){return o=o.prototype,!(!o||!o.isReactComponent)}function co(o,s){var f=o.alternate;return f===null?(f=ji(o.tag,s,o.key,o.mode),f.elementType=o.elementType,f.type=o.type,f.stateNode=o.stateNode,f.alternate=o,o.alternate=f):(f.pendingProps=s,f.type=o.type,f.flags=0,f.subtreeFlags=0,f.deletions=null),f.flags=o.flags&65011712,f.childLanes=o.childLanes,f.lanes=o.lanes,f.child=o.child,f.memoizedProps=o.memoizedProps,f.memoizedState=o.memoizedState,f.updateQueue=o.updateQueue,s=o.dependencies,f.dependencies=s===null?null:{lanes:s.lanes,firstContext:s.firstContext},f.sibling=o.sibling,f.index=o.index,f.ref=o.ref,f.refCleanup=o.refCleanup,f}function qw(o,s){o.flags&=65011714;var f=o.alternate;return f===null?(o.childLanes=0,o.lanes=s,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=f.childLanes,o.lanes=f.lanes,o.child=f.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=f.memoizedProps,o.memoizedState=f.memoizedState,o.updateQueue=f.updateQueue,o.type=f.type,s=f.dependencies,o.dependencies=s===null?null:{lanes:s.lanes,firstContext:s.firstContext}),o}function kh(o,s,f,p,C,E){var L=0;if(p=o,typeof o=="function")Lv(o)&&(L=1);else if(typeof o=="string")L=JL(o,f,X.current)?26:o==="html"||o==="head"||o==="body"?27:5;else e:switch(o){case N:return o=ji(31,f,s,C),o.elementType=N,o.lanes=E,o;case x:return ts(f.children,C,E,s);case S:L=8,C|=24;break;case w:return o=ji(12,f,s,C|2),o.elementType=w,o.lanes=E,o;case _:return o=ji(13,f,s,C),o.elementType=_,o.lanes=E,o;case R:return o=ji(19,f,s,C),o.elementType=R,o.lanes=E,o;default:if(typeof o=="object"&&o!==null)switch(o.$$typeof){case O:L=10;break e;case $:L=9;break e;case T:L=11;break e;case M:L=14;break e;case P:L=16,p=null;break e}L=29,f=Error(r(130,o===null?"null":typeof o,"")),p=null}return s=ji(L,f,s,C),s.elementType=o,s.type=p,s.lanes=E,s}function ts(o,s,f,p){return o=ji(7,o,p,s),o.lanes=f,o}function kv(o,s,f){return o=ji(6,o,null,s),o.lanes=f,o}function Kw(o){var s=ji(18,null,null,0);return s.stateNode=o,s}function Bv(o,s,f){return s=ji(4,o.children!==null?o.children:[],o.key,s),s.lanes=f,s.stateNode={containerInfo:o.containerInfo,pendingChildren:null,implementation:o.implementation},s}var Ww=new WeakMap;function ta(o,s){if(typeof o=="object"&&o!==null){var f=Ww.get(o);return f!==void 0?f:(s={value:o,source:s,stack:Te(s)},Ww.set(o,s),s)}return{value:o,source:s,stack:Te(s)}}var vc=[],yc=0,Bh=null,md=0,na=[],ra=0,qo=null,Ha=1,Fa="";function uo(o,s){vc[yc++]=md,vc[yc++]=Bh,Bh=o,md=s}function Gw(o,s,f){na[ra++]=Ha,na[ra++]=Fa,na[ra++]=qo,qo=o;var p=Ha;o=Fa;var C=32-_e(p)-1;p&=~(1<<C),f+=1;var E=32-_e(s)+C;if(30<E){var L=C-C%5;E=(p&(1<<L)-1).toString(32),p>>=L,C-=L,Ha=1<<32-_e(s)+C|f<<C|p,Fa=E+o}else Ha=1<<E|f<<C|p,Fa=o}function Hv(o){o.return!==null&&(uo(o,1),Gw(o,1,0))}function Fv(o){for(;o===Bh;)Bh=vc[--yc],vc[yc]=null,md=vc[--yc],vc[yc]=null;for(;o===qo;)qo=na[--ra],na[ra]=null,Fa=na[--ra],na[ra]=null,Ha=na[--ra],na[ra]=null}function Xw(o,s){na[ra++]=Ha,na[ra++]=Fa,na[ra++]=qo,Ha=s.id,Fa=s.overflow,qo=o}var Kr=null,ar=null,xn=!1,Ko=null,ia=!1,Vv=Error(r(519));function Wo(o){var s=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw gd(ta(s,o)),Vv}function Qw(o){var s=o.stateNode,f=o.type,p=o.memoizedProps;switch(s[Ot]=o,s[Ct]=p,f){case"dialog":fn("cancel",s),fn("close",s);break;case"iframe":case"object":case"embed":fn("load",s);break;case"video":case"audio":for(f=0;f<Dd.length;f++)fn(Dd[f],s);break;case"source":fn("error",s);break;case"img":case"image":case"link":fn("error",s),fn("load",s);break;case"details":fn("toggle",s);break;case"input":fn("invalid",s),Pn(s,p.value,p.defaultValue,p.checked,p.defaultChecked,p.type,p.name,!0);break;case"select":fn("invalid",s);break;case"textarea":fn("invalid",s),Lr(s,p.value,p.defaultValue,p.children)}f=p.children,typeof f!="string"&&typeof f!="number"&&typeof f!="bigint"||s.textContent===""+f||p.suppressHydrationWarning===!0||hO(s.textContent,f)?(p.popover!=null&&(fn("beforetoggle",s),fn("toggle",s)),p.onScroll!=null&&fn("scroll",s),p.onScrollEnd!=null&&fn("scrollend",s),p.onClick!=null&&(s.onclick=ci),s=!0):s=!1,s||Wo(o,!0)}function Yw(o){for(Kr=o.return;Kr;)switch(Kr.tag){case 5:case 31:case 13:ia=!1;return;case 27:case 3:ia=!0;return;default:Kr=Kr.return}}function bc(o){if(o!==Kr)return!1;if(!xn)return Yw(o),xn=!0,!1;var s=o.tag,f;if((f=s!==3&&s!==27)&&((f=s===5)&&(f=o.type,f=!(f!=="form"&&f!=="button")||l0(o.type,o.memoizedProps)),f=!f),f&&ar&&Wo(o),Yw(o),s===13){if(o=o.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(r(317));ar=CO(o)}else if(s===31){if(o=o.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(r(317));ar=CO(o)}else s===27?(s=ar,ll(o.type)?(o=f0,f0=null,ar=o):ar=s):ar=Kr?oa(o.stateNode.nextSibling):null;return!0}function ns(){ar=Kr=null,xn=!1}function Uv(){var o=Ko;return o!==null&&(Ei===null?Ei=o:Ei.push.apply(Ei,o),Ko=null),o}function gd(o){Ko===null?Ko=[o]:Ko.push(o)}var qv=U(null),rs=null,fo=null;function Go(o,s,f){D(qv,s._currentValue),s._currentValue=f}function ho(o){o._currentValue=qv.current,K(qv)}function Kv(o,s,f){for(;o!==null;){var p=o.alternate;if((o.childLanes&s)!==s?(o.childLanes|=s,p!==null&&(p.childLanes|=s)):p!==null&&(p.childLanes&s)!==s&&(p.childLanes|=s),o===f)break;o=o.return}}function Wv(o,s,f,p){var C=o.child;for(C!==null&&(C.return=o);C!==null;){var E=C.dependencies;if(E!==null){var L=C.child;E=E.firstContext;e:for(;E!==null;){var W=E;E=C;for(var ne=0;ne<s.length;ne++)if(W.context===s[ne]){E.lanes|=f,W=E.alternate,W!==null&&(W.lanes|=f),Kv(E.return,f,o),p||(L=null);break e}E=W.next}}else if(C.tag===18){if(L=C.return,L===null)throw Error(r(341));L.lanes|=f,E=L.alternate,E!==null&&(E.lanes|=f),Kv(L,f,o),L=null}else L=C.child;if(L!==null)L.return=C;else for(L=C;L!==null;){if(L===o){L=null;break}if(C=L.sibling,C!==null){C.return=L.return,L=C;break}L=L.return}C=L}}function Sc(o,s,f,p){o=null;for(var C=s,E=!1;C!==null;){if(!E){if((C.flags&524288)!==0)E=!0;else if((C.flags&262144)!==0)break}if(C.tag===10){var L=C.alternate;if(L===null)throw Error(r(387));if(L=L.memoizedProps,L!==null){var W=C.type;zi(C.pendingProps.value,L.value)||(o!==null?o.push(W):o=[W])}}else if(C===ie.current){if(L=C.alternate,L===null)throw Error(r(387));L.memoizedState.memoizedState!==C.memoizedState.memoizedState&&(o!==null?o.push(Fd):o=[Fd])}C=C.return}o!==null&&Wv(s,o,f,p),s.flags|=262144}function Hh(o){for(o=o.firstContext;o!==null;){if(!zi(o.context._currentValue,o.memoizedValue))return!0;o=o.next}return!1}function is(o){rs=o,fo=null,o=o.dependencies,o!==null&&(o.firstContext=null)}function Wr(o){return Zw(rs,o)}function Fh(o,s){return rs===null&&is(o),Zw(o,s)}function Zw(o,s){var f=s._currentValue;if(s={context:s,memoizedValue:f,next:null},fo===null){if(o===null)throw Error(r(308));fo=s,o.dependencies={lanes:0,firstContext:s},o.flags|=524288}else fo=fo.next=s;return f}var XD=typeof AbortController<"u"?AbortController:function(){var o=[],s=this.signal={aborted:!1,addEventListener:function(f,p){o.push(p)}};this.abort=function(){s.aborted=!0,o.forEach(function(f){return f()})}},QD=e.unstable_scheduleCallback,YD=e.unstable_NormalPriority,Or={$$typeof:O,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Gv(){return{controller:new XD,data:new Map,refCount:0}}function pd(o){o.refCount--,o.refCount===0&&QD(YD,function(){o.controller.abort()})}var vd=null,Xv=0,xc=0,Cc=null;function ZD(o,s){if(vd===null){var f=vd=[];Xv=0,xc=Zy(),Cc={status:"pending",value:void 0,then:function(p){f.push(p)}}}return Xv++,s.then(Jw,Jw),s}function Jw(){if(--Xv===0&&vd!==null){Cc!==null&&(Cc.status="fulfilled");var o=vd;vd=null,xc=0,Cc=null;for(var s=0;s<o.length;s++)(0,o[s])()}}function JD(o,s){var f=[],p={status:"pending",value:null,reason:null,then:function(C){f.push(C)}};return o.then(function(){p.status="fulfilled",p.value=s;for(var C=0;C<f.length;C++)(0,f[C])(s)},function(C){for(p.status="rejected",p.reason=C,C=0;C<f.length;C++)(0,f[C])(void 0)}),p}var eE=z.S;z.S=function(o,s){D$=be(),typeof s=="object"&&s!==null&&typeof s.then=="function"&&ZD(o,s),eE!==null&&eE(o,s)};var as=U(null);function Qv(){var o=as.current;return o!==null?o:Zn.pooledCache}function Vh(o,s){s===null?D(as,as.current):D(as,s.pool)}function tE(){var o=Qv();return o===null?null:{parent:Or._currentValue,pool:o}}var wc=Error(r(460)),Yv=Error(r(474)),Uh=Error(r(542)),qh={then:function(){}};function nE(o){return o=o.status,o==="fulfilled"||o==="rejected"}function rE(o,s,f){switch(f=o[f],f===void 0?o.push(s):f!==s&&(s.then(ci,ci),s=f),s.status){case"fulfilled":return s.value;case"rejected":throw o=s.reason,aE(o),o;default:if(typeof s.status=="string")s.then(ci,ci);else{if(o=Zn,o!==null&&100<o.shellSuspendCounter)throw Error(r(482));o=s,o.status="pending",o.then(function(p){if(s.status==="pending"){var C=s;C.status="fulfilled",C.value=p}},function(p){if(s.status==="pending"){var C=s;C.status="rejected",C.reason=p}})}switch(s.status){case"fulfilled":return s.value;case"rejected":throw o=s.reason,aE(o),o}throw ls=s,wc}}function os(o){try{var s=o._init;return s(o._payload)}catch(f){throw f!==null&&typeof f=="object"&&typeof f.then=="function"?(ls=f,wc):f}}var ls=null;function iE(){if(ls===null)throw Error(r(459));var o=ls;return ls=null,o}function aE(o){if(o===wc||o===Uh)throw Error(r(483))}var Ec=null,yd=0;function Kh(o){var s=yd;return yd+=1,Ec===null&&(Ec=[]),rE(Ec,o,s)}function bd(o,s){s=s.props.ref,o.ref=s!==void 0?s:null}function Wh(o,s){throw s.$$typeof===v?Error(r(525)):(o=Object.prototype.toString.call(s),Error(r(31,o==="[object Object]"?"object with keys {"+Object.keys(s).join(", ")+"}":o)))}function oE(o){function s(pe,ue){if(o){var Se=pe.deletions;Se===null?(pe.deletions=[ue],pe.flags|=16):Se.push(ue)}}function f(pe,ue){if(!o)return null;for(;ue!==null;)s(pe,ue),ue=ue.sibling;return null}function p(pe){for(var ue=new Map;pe!==null;)pe.key!==null?ue.set(pe.key,pe):ue.set(pe.index,pe),pe=pe.sibling;return ue}function C(pe,ue){return pe=co(pe,ue),pe.index=0,pe.sibling=null,pe}function E(pe,ue,Se){return pe.index=Se,o?(Se=pe.alternate,Se!==null?(Se=Se.index,Se<ue?(pe.flags|=67108866,ue):Se):(pe.flags|=67108866,ue)):(pe.flags|=1048576,ue)}function L(pe){return o&&pe.alternate===null&&(pe.flags|=67108866),pe}function W(pe,ue,Se,ke){return ue===null||ue.tag!==6?(ue=kv(Se,pe.mode,ke),ue.return=pe,ue):(ue=C(ue,Se),ue.return=pe,ue)}function ne(pe,ue,Se,ke){var At=Se.type;return At===x?Pe(pe,ue,Se.props.children,ke,Se.key):ue!==null&&(ue.elementType===At||typeof At=="object"&&At!==null&&At.$$typeof===P&&os(At)===ue.type)?(ue=C(ue,Se.props),bd(ue,Se),ue.return=pe,ue):(ue=kh(Se.type,Se.key,Se.props,null,pe.mode,ke),bd(ue,Se),ue.return=pe,ue)}function xe(pe,ue,Se,ke){return ue===null||ue.tag!==4||ue.stateNode.containerInfo!==Se.containerInfo||ue.stateNode.implementation!==Se.implementation?(ue=Bv(Se,pe.mode,ke),ue.return=pe,ue):(ue=C(ue,Se.children||[]),ue.return=pe,ue)}function Pe(pe,ue,Se,ke,At){return ue===null||ue.tag!==7?(ue=ts(Se,pe.mode,ke,At),ue.return=pe,ue):(ue=C(ue,Se),ue.return=pe,ue)}function Ve(pe,ue,Se){if(typeof ue=="string"&&ue!==""||typeof ue=="number"||typeof ue=="bigint")return ue=kv(""+ue,pe.mode,Se),ue.return=pe,ue;if(typeof ue=="object"&&ue!==null){switch(ue.$$typeof){case y:return Se=kh(ue.type,ue.key,ue.props,null,pe.mode,Se),bd(Se,ue),Se.return=pe,Se;case b:return ue=Bv(ue,pe.mode,Se),ue.return=pe,ue;case P:return ue=os(ue),Ve(pe,ue,Se)}if(V(ue)||A(ue))return ue=ts(ue,pe.mode,Se,null),ue.return=pe,ue;if(typeof ue.then=="function")return Ve(pe,Kh(ue),Se);if(ue.$$typeof===O)return Ve(pe,Fh(pe,ue),Se);Wh(pe,ue)}return null}function Ee(pe,ue,Se,ke){var At=ue!==null?ue.key:null;if(typeof Se=="string"&&Se!==""||typeof Se=="number"||typeof Se=="bigint")return At!==null?null:W(pe,ue,""+Se,ke);if(typeof Se=="object"&&Se!==null){switch(Se.$$typeof){case y:return Se.key===At?ne(pe,ue,Se,ke):null;case b:return Se.key===At?xe(pe,ue,Se,ke):null;case P:return Se=os(Se),Ee(pe,ue,Se,ke)}if(V(Se)||A(Se))return At!==null?null:Pe(pe,ue,Se,ke,null);if(typeof Se.then=="function")return Ee(pe,ue,Kh(Se),ke);if(Se.$$typeof===O)return Ee(pe,ue,Fh(pe,Se),ke);Wh(pe,Se)}return null}function Re(pe,ue,Se,ke,At){if(typeof ke=="string"&&ke!==""||typeof ke=="number"||typeof ke=="bigint")return pe=pe.get(Se)||null,W(ue,pe,""+ke,At);if(typeof ke=="object"&&ke!==null){switch(ke.$$typeof){case y:return pe=pe.get(ke.key===null?Se:ke.key)||null,ne(ue,pe,ke,At);case b:return pe=pe.get(ke.key===null?Se:ke.key)||null,xe(ue,pe,ke,At);case P:return ke=os(ke),Re(pe,ue,Se,ke,At)}if(V(ke)||A(ke))return pe=pe.get(Se)||null,Pe(ue,pe,ke,At,null);if(typeof ke.then=="function")return Re(pe,ue,Se,Kh(ke),At);if(ke.$$typeof===O)return Re(pe,ue,Se,Fh(ue,ke),At);Wh(ue,ke)}return null}function xt(pe,ue,Se,ke){for(var At=null,In=null,Et=ue,en=ue=0,vn=null;Et!==null&&en<Se.length;en++){Et.index>en?(vn=Et,Et=null):vn=Et.sibling;var Mn=Ee(pe,Et,Se[en],ke);if(Mn===null){Et===null&&(Et=vn);break}o&&Et&&Mn.alternate===null&&s(pe,Et),ue=E(Mn,ue,en),In===null?At=Mn:In.sibling=Mn,In=Mn,Et=vn}if(en===Se.length)return f(pe,Et),xn&&uo(pe,en),At;if(Et===null){for(;en<Se.length;en++)Et=Ve(pe,Se[en],ke),Et!==null&&(ue=E(Et,ue,en),In===null?At=Et:In.sibling=Et,In=Et);return xn&&uo(pe,en),At}for(Et=p(Et);en<Se.length;en++)vn=Re(Et,pe,en,Se[en],ke),vn!==null&&(o&&vn.alternate!==null&&Et.delete(vn.key===null?en:vn.key),ue=E(vn,ue,en),In===null?At=vn:In.sibling=vn,In=vn);return o&&Et.forEach(function(fl){return s(pe,fl)}),xn&&uo(pe,en),At}function Bt(pe,ue,Se,ke){if(Se==null)throw Error(r(151));for(var At=null,In=null,Et=ue,en=ue=0,vn=null,Mn=Se.next();Et!==null&&!Mn.done;en++,Mn=Se.next()){Et.index>en?(vn=Et,Et=null):vn=Et.sibling;var fl=Ee(pe,Et,Mn.value,ke);if(fl===null){Et===null&&(Et=vn);break}o&&Et&&fl.alternate===null&&s(pe,Et),ue=E(fl,ue,en),In===null?At=fl:In.sibling=fl,In=fl,Et=vn}if(Mn.done)return f(pe,Et),xn&&uo(pe,en),At;if(Et===null){for(;!Mn.done;en++,Mn=Se.next())Mn=Ve(pe,Mn.value,ke),Mn!==null&&(ue=E(Mn,ue,en),In===null?At=Mn:In.sibling=Mn,In=Mn);return xn&&uo(pe,en),At}for(Et=p(Et);!Mn.done;en++,Mn=Se.next())Mn=Re(Et,pe,en,Mn.value,ke),Mn!==null&&(o&&Mn.alternate!==null&&Et.delete(Mn.key===null?en:Mn.key),ue=E(Mn,ue,en),In===null?At=Mn:In.sibling=Mn,In=Mn);return o&&Et.forEach(function(uk){return s(pe,uk)}),xn&&uo(pe,en),At}function Gn(pe,ue,Se,ke){if(typeof Se=="object"&&Se!==null&&Se.type===x&&Se.key===null&&(Se=Se.props.children),typeof Se=="object"&&Se!==null){switch(Se.$$typeof){case y:e:{for(var At=Se.key;ue!==null;){if(ue.key===At){if(At=Se.type,At===x){if(ue.tag===7){f(pe,ue.sibling),ke=C(ue,Se.props.children),ke.return=pe,pe=ke;break e}}else if(ue.elementType===At||typeof At=="object"&&At!==null&&At.$$typeof===P&&os(At)===ue.type){f(pe,ue.sibling),ke=C(ue,Se.props),bd(ke,Se),ke.return=pe,pe=ke;break e}f(pe,ue);break}else s(pe,ue);ue=ue.sibling}Se.type===x?(ke=ts(Se.props.children,pe.mode,ke,Se.key),ke.return=pe,pe=ke):(ke=kh(Se.type,Se.key,Se.props,null,pe.mode,ke),bd(ke,Se),ke.return=pe,pe=ke)}return L(pe);case b:e:{for(At=Se.key;ue!==null;){if(ue.key===At)if(ue.tag===4&&ue.stateNode.containerInfo===Se.containerInfo&&ue.stateNode.implementation===Se.implementation){f(pe,ue.sibling),ke=C(ue,Se.children||[]),ke.return=pe,pe=ke;break e}else{f(pe,ue);break}else s(pe,ue);ue=ue.sibling}ke=Bv(Se,pe.mode,ke),ke.return=pe,pe=ke}return L(pe);case P:return Se=os(Se),Gn(pe,ue,Se,ke)}if(V(Se))return xt(pe,ue,Se,ke);if(A(Se)){if(At=A(Se),typeof At!="function")throw Error(r(150));return Se=At.call(Se),Bt(pe,ue,Se,ke)}if(typeof Se.then=="function")return Gn(pe,ue,Kh(Se),ke);if(Se.$$typeof===O)return Gn(pe,ue,Fh(pe,Se),ke);Wh(pe,Se)}return typeof Se=="string"&&Se!==""||typeof Se=="number"||typeof Se=="bigint"?(Se=""+Se,ue!==null&&ue.tag===6?(f(pe,ue.sibling),ke=C(ue,Se),ke.return=pe,pe=ke):(f(pe,ue),ke=kv(Se,pe.mode,ke),ke.return=pe,pe=ke),L(pe)):f(pe,ue)}return function(pe,ue,Se,ke){try{yd=0;var At=Gn(pe,ue,Se,ke);return Ec=null,At}catch(Et){if(Et===wc||Et===Uh)throw Et;var In=ji(29,Et,null,pe.mode);return In.lanes=ke,In.return=pe,In}finally{}}}var ss=oE(!0),lE=oE(!1),Xo=!1;function Zv(o){o.updateQueue={baseState:o.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Jv(o,s){o=o.updateQueue,s.updateQueue===o&&(s.updateQueue={baseState:o.baseState,firstBaseUpdate:o.firstBaseUpdate,lastBaseUpdate:o.lastBaseUpdate,shared:o.shared,callbacks:null})}function Qo(o){return{lane:o,tag:0,payload:null,callback:null,next:null}}function Yo(o,s,f){var p=o.updateQueue;if(p===null)return null;if(p=p.shared,(zn&2)!==0){var C=p.pending;return C===null?s.next=s:(s.next=C.next,C.next=s),p.pending=s,s=Lh(o),Uw(o,null,f),s}return Dh(o,p,s,f),Lh(o)}function Sd(o,s,f){if(s=s.updateQueue,s!==null&&(s=s.shared,(f&4194048)!==0)){var p=s.lanes;p&=o.pendingLanes,f|=p,s.lanes=f,Ke(o,f)}}function ey(o,s){var f=o.updateQueue,p=o.alternate;if(p!==null&&(p=p.updateQueue,f===p)){var C=null,E=null;if(f=f.firstBaseUpdate,f!==null){do{var L={lane:f.lane,tag:f.tag,payload:f.payload,callback:null,next:null};E===null?C=E=L:E=E.next=L,f=f.next}while(f!==null);E===null?C=E=s:E=E.next=s}else C=E=s;f={baseState:p.baseState,firstBaseUpdate:C,lastBaseUpdate:E,shared:p.shared,callbacks:p.callbacks},o.updateQueue=f;return}o=f.lastBaseUpdate,o===null?f.firstBaseUpdate=s:o.next=s,f.lastBaseUpdate=s}var ty=!1;function xd(){if(ty){var o=Cc;if(o!==null)throw o}}function Cd(o,s,f,p){ty=!1;var C=o.updateQueue;Xo=!1;var E=C.firstBaseUpdate,L=C.lastBaseUpdate,W=C.shared.pending;if(W!==null){C.shared.pending=null;var ne=W,xe=ne.next;ne.next=null,L===null?E=xe:L.next=xe,L=ne;var Pe=o.alternate;Pe!==null&&(Pe=Pe.updateQueue,W=Pe.lastBaseUpdate,W!==L&&(W===null?Pe.firstBaseUpdate=xe:W.next=xe,Pe.lastBaseUpdate=ne))}if(E!==null){var Ve=C.baseState;L=0,Pe=xe=ne=null,W=E;do{var Ee=W.lane&-536870913,Re=Ee!==W.lane;if(Re?(pn&Ee)===Ee:(p&Ee)===Ee){Ee!==0&&Ee===xc&&(ty=!0),Pe!==null&&(Pe=Pe.next={lane:0,tag:W.tag,payload:W.payload,callback:null,next:null});e:{var xt=o,Bt=W;Ee=s;var Gn=f;switch(Bt.tag){case 1:if(xt=Bt.payload,typeof xt=="function"){Ve=xt.call(Gn,Ve,Ee);break e}Ve=xt;break e;case 3:xt.flags=xt.flags&-65537|128;case 0:if(xt=Bt.payload,Ee=typeof xt=="function"?xt.call(Gn,Ve,Ee):xt,Ee==null)break e;Ve=g({},Ve,Ee);break e;case 2:Xo=!0}}Ee=W.callback,Ee!==null&&(o.flags|=64,Re&&(o.flags|=8192),Re=C.callbacks,Re===null?C.callbacks=[Ee]:Re.push(Ee))}else Re={lane:Ee,tag:W.tag,payload:W.payload,callback:W.callback,next:null},Pe===null?(xe=Pe=Re,ne=Ve):Pe=Pe.next=Re,L|=Ee;if(W=W.next,W===null){if(W=C.shared.pending,W===null)break;Re=W,W=Re.next,Re.next=null,C.lastBaseUpdate=Re,C.shared.pending=null}}while(!0);Pe===null&&(ne=Ve),C.baseState=ne,C.firstBaseUpdate=xe,C.lastBaseUpdate=Pe,E===null&&(C.shared.lanes=0),nl|=L,o.lanes=L,o.memoizedState=Ve}}function sE(o,s){if(typeof o!="function")throw Error(r(191,o));o.call(s)}function cE(o,s){var f=o.callbacks;if(f!==null)for(o.callbacks=null,o=0;o<f.length;o++)sE(f[o],s)}var $c=U(null),Gh=U(0);function uE(o,s){o=Co,D(Gh,o),D($c,s),Co=o|s.baseLanes}function ny(){D(Gh,Co),D($c,$c.current)}function ry(){Co=Gh.current,K($c),K(Gh)}var Di=U(null),aa=null;function Zo(o){var s=o.alternate;D(xr,xr.current&1),D(Di,o),aa===null&&(s===null||$c.current!==null||s.memoizedState!==null)&&(aa=o)}function iy(o){D(xr,xr.current),D(Di,o),aa===null&&(aa=o)}function dE(o){o.tag===22?(D(xr,xr.current),D(Di,o),aa===null&&(aa=o)):Jo()}function Jo(){D(xr,xr.current),D(Di,Di.current)}function Li(o){K(Di),aa===o&&(aa=null),K(xr)}var xr=U(0);function Xh(o){for(var s=o;s!==null;){if(s.tag===13){var f=s.memoizedState;if(f!==null&&(f=f.dehydrated,f===null||u0(f)||d0(f)))return s}else if(s.tag===19&&(s.memoizedProps.revealOrder==="forwards"||s.memoizedProps.revealOrder==="backwards"||s.memoizedProps.revealOrder==="unstable_legacy-backwards"||s.memoizedProps.revealOrder==="together")){if((s.flags&128)!==0)return s}else if(s.child!==null){s.child.return=s,s=s.child;continue}if(s===o)break;for(;s.sibling===null;){if(s.return===null||s.return===o)return null;s=s.return}s.sibling.return=s.return,s=s.sibling}return null}var mo=0,Zt=null,Kn=null,Rr=null,Qh=!1,Oc=!1,cs=!1,Yh=0,wd=0,Rc=null,eL=0;function hr(){throw Error(r(321))}function ay(o,s){if(s===null)return!1;for(var f=0;f<s.length&&f<o.length;f++)if(!zi(o[f],s[f]))return!1;return!0}function oy(o,s,f,p,C,E){return mo=E,Zt=s,s.memoizedState=null,s.updateQueue=null,s.lanes=0,z.H=o===null||o.memoizedState===null?GE:xy,cs=!1,E=f(p,C),cs=!1,Oc&&(E=hE(s,f,p,C)),fE(o),E}function fE(o){z.H=Od;var s=Kn!==null&&Kn.next!==null;if(mo=0,Rr=Kn=Zt=null,Qh=!1,wd=0,Rc=null,s)throw Error(r(300));o===null||Tr||(o=o.dependencies,o!==null&&Hh(o)&&(Tr=!0))}function hE(o,s,f,p){Zt=o;var C=0;do{if(Oc&&(Rc=null),wd=0,Oc=!1,25<=C)throw Error(r(301));if(C+=1,Rr=Kn=null,o.updateQueue!=null){var E=o.updateQueue;E.lastEffect=null,E.events=null,E.stores=null,E.memoCache!=null&&(E.memoCache.index=0)}z.H=XE,E=s(f,p)}while(Oc);return E}function tL(){var o=z.H,s=o.useState()[0];return s=typeof s.then=="function"?Ed(s):s,o=o.useState()[0],(Kn!==null?Kn.memoizedState:null)!==o&&(Zt.flags|=1024),s}function ly(){var o=Yh!==0;return Yh=0,o}function sy(o,s,f){s.updateQueue=o.updateQueue,s.flags&=-2053,o.lanes&=~f}function cy(o){if(Qh){for(o=o.memoizedState;o!==null;){var s=o.queue;s!==null&&(s.pending=null),o=o.next}Qh=!1}mo=0,Rr=Kn=Zt=null,Oc=!1,wd=Yh=0,Rc=null}function ui(){var o={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Rr===null?Zt.memoizedState=Rr=o:Rr=Rr.next=o,Rr}function Cr(){if(Kn===null){var o=Zt.alternate;o=o!==null?o.memoizedState:null}else o=Kn.next;var s=Rr===null?Zt.memoizedState:Rr.next;if(s!==null)Rr=s,Kn=o;else{if(o===null)throw Zt.alternate===null?Error(r(467)):Error(r(310));Kn=o,o={memoizedState:Kn.memoizedState,baseState:Kn.baseState,baseQueue:Kn.baseQueue,queue:Kn.queue,next:null},Rr===null?Zt.memoizedState=Rr=o:Rr=Rr.next=o}return Rr}function Zh(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Ed(o){var s=wd;return wd+=1,Rc===null&&(Rc=[]),o=rE(Rc,o,s),s=Zt,(Rr===null?s.memoizedState:Rr.next)===null&&(s=s.alternate,z.H=s===null||s.memoizedState===null?GE:xy),o}function Jh(o){if(o!==null&&typeof o=="object"){if(typeof o.then=="function")return Ed(o);if(o.$$typeof===O)return Wr(o)}throw Error(r(438,String(o)))}function uy(o){var s=null,f=Zt.updateQueue;if(f!==null&&(s=f.memoCache),s==null){var p=Zt.alternate;p!==null&&(p=p.updateQueue,p!==null&&(p=p.memoCache,p!=null&&(s={data:p.data.map(function(C){return C.slice()}),index:0})))}if(s==null&&(s={data:[],index:0}),f===null&&(f=Zh(),Zt.updateQueue=f),f.memoCache=s,f=s.data[s.index],f===void 0)for(f=s.data[s.index]=Array(o),p=0;p<o;p++)f[p]=I;return s.index++,f}function go(o,s){return typeof s=="function"?s(o):s}function em(o){var s=Cr();return dy(s,Kn,o)}function dy(o,s,f){var p=o.queue;if(p===null)throw Error(r(311));p.lastRenderedReducer=f;var C=o.baseQueue,E=p.pending;if(E!==null){if(C!==null){var L=C.next;C.next=E.next,E.next=L}s.baseQueue=C=E,p.pending=null}if(E=o.baseState,C===null)o.memoizedState=E;else{s=C.next;var W=L=null,ne=null,xe=s,Pe=!1;do{var Ve=xe.lane&-536870913;if(Ve!==xe.lane?(pn&Ve)===Ve:(mo&Ve)===Ve){var Ee=xe.revertLane;if(Ee===0)ne!==null&&(ne=ne.next={lane:0,revertLane:0,gesture:null,action:xe.action,hasEagerState:xe.hasEagerState,eagerState:xe.eagerState,next:null}),Ve===xc&&(Pe=!0);else if((mo&Ee)===Ee){xe=xe.next,Ee===xc&&(Pe=!0);continue}else Ve={lane:0,revertLane:xe.revertLane,gesture:null,action:xe.action,hasEagerState:xe.hasEagerState,eagerState:xe.eagerState,next:null},ne===null?(W=ne=Ve,L=E):ne=ne.next=Ve,Zt.lanes|=Ee,nl|=Ee;Ve=xe.action,cs&&f(E,Ve),E=xe.hasEagerState?xe.eagerState:f(E,Ve)}else Ee={lane:Ve,revertLane:xe.revertLane,gesture:xe.gesture,action:xe.action,hasEagerState:xe.hasEagerState,eagerState:xe.eagerState,next:null},ne===null?(W=ne=Ee,L=E):ne=ne.next=Ee,Zt.lanes|=Ve,nl|=Ve;xe=xe.next}while(xe!==null&&xe!==s);if(ne===null?L=E:ne.next=W,!zi(E,o.memoizedState)&&(Tr=!0,Pe&&(f=Cc,f!==null)))throw f;o.memoizedState=E,o.baseState=L,o.baseQueue=ne,p.lastRenderedState=E}return C===null&&(p.lanes=0),[o.memoizedState,p.dispatch]}function fy(o){var s=Cr(),f=s.queue;if(f===null)throw Error(r(311));f.lastRenderedReducer=o;var p=f.dispatch,C=f.pending,E=s.memoizedState;if(C!==null){f.pending=null;var L=C=C.next;do E=o(E,L.action),L=L.next;while(L!==C);zi(E,s.memoizedState)||(Tr=!0),s.memoizedState=E,s.baseQueue===null&&(s.baseState=E),f.lastRenderedState=E}return[E,p]}function mE(o,s,f){var p=Zt,C=Cr(),E=xn;if(E){if(f===void 0)throw Error(r(407));f=f()}else f=s();var L=!zi((Kn||C).memoizedState,f);if(L&&(C.memoizedState=f,Tr=!0),C=C.queue,gy(vE.bind(null,p,C,o),[o]),C.getSnapshot!==s||L||Rr!==null&&Rr.memoizedState.tag&1){if(p.flags|=2048,Tc(9,{destroy:void 0},pE.bind(null,p,C,f,s),null),Zn===null)throw Error(r(349));E||(mo&127)!==0||gE(p,s,f)}return f}function gE(o,s,f){o.flags|=16384,o={getSnapshot:s,value:f},s=Zt.updateQueue,s===null?(s=Zh(),Zt.updateQueue=s,s.stores=[o]):(f=s.stores,f===null?s.stores=[o]:f.push(o))}function pE(o,s,f,p){s.value=f,s.getSnapshot=p,yE(s)&&bE(o)}function vE(o,s,f){return f(function(){yE(s)&&bE(o)})}function yE(o){var s=o.getSnapshot;o=o.value;try{var f=s();return!zi(o,f)}catch{return!0}}function bE(o){var s=es(o,2);s!==null&&$i(s,o,2)}function hy(o){var s=ui();if(typeof o=="function"){var f=o;if(o=f(),cs){Ze(!0);try{f()}finally{Ze(!1)}}}return s.memoizedState=s.baseState=o,s.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:go,lastRenderedState:o},s}function SE(o,s,f,p){return o.baseState=f,dy(o,Kn,typeof p=="function"?p:go)}function nL(o,s,f,p,C){if(rm(o))throw Error(r(485));if(o=s.action,o!==null){var E={payload:C,action:o,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(L){E.listeners.push(L)}};z.T!==null?f(!0):E.isTransition=!1,p(E),f=s.pending,f===null?(E.next=s.pending=E,xE(s,E)):(E.next=f.next,s.pending=f.next=E)}}function xE(o,s){var f=s.action,p=s.payload,C=o.state;if(s.isTransition){var E=z.T,L={};z.T=L;try{var W=f(C,p),ne=z.S;ne!==null&&ne(L,W),CE(o,s,W)}catch(xe){my(o,s,xe)}finally{E!==null&&L.types!==null&&(E.types=L.types),z.T=E}}else try{E=f(C,p),CE(o,s,E)}catch(xe){my(o,s,xe)}}function CE(o,s,f){f!==null&&typeof f=="object"&&typeof f.then=="function"?f.then(function(p){wE(o,s,p)},function(p){return my(o,s,p)}):wE(o,s,f)}function wE(o,s,f){s.status="fulfilled",s.value=f,EE(s),o.state=f,s=o.pending,s!==null&&(f=s.next,f===s?o.pending=null:(f=f.next,s.next=f,xE(o,f)))}function my(o,s,f){var p=o.pending;if(o.pending=null,p!==null){p=p.next;do s.status="rejected",s.reason=f,EE(s),s=s.next;while(s!==p)}o.action=null}function EE(o){o=o.listeners;for(var s=0;s<o.length;s++)(0,o[s])()}function $E(o,s){return s}function OE(o,s){if(xn){var f=Zn.formState;if(f!==null){e:{var p=Zt;if(xn){if(ar){t:{for(var C=ar,E=ia;C.nodeType!==8;){if(!E){C=null;break t}if(C=oa(C.nextSibling),C===null){C=null;break t}}E=C.data,C=E==="F!"||E==="F"?C:null}if(C){ar=oa(C.nextSibling),p=C.data==="F!";break e}}Wo(p)}p=!1}p&&(s=f[0])}}return f=ui(),f.memoizedState=f.baseState=s,p={pending:null,lanes:0,dispatch:null,lastRenderedReducer:$E,lastRenderedState:s},f.queue=p,f=qE.bind(null,Zt,p),p.dispatch=f,p=hy(!1),E=Sy.bind(null,Zt,!1,p.queue),p=ui(),C={state:s,dispatch:null,action:o,pending:null},p.queue=C,f=nL.bind(null,Zt,C,E,f),C.dispatch=f,p.memoizedState=o,[s,f,!1]}function RE(o){var s=Cr();return TE(s,Kn,o)}function TE(o,s,f){if(s=dy(o,s,$E)[0],o=em(go)[0],typeof s=="object"&&s!==null&&typeof s.then=="function")try{var p=Ed(s)}catch(L){throw L===wc?Uh:L}else p=s;s=Cr();var C=s.queue,E=C.dispatch;return f!==s.memoizedState&&(Zt.flags|=2048,Tc(9,{destroy:void 0},rL.bind(null,C,f),null)),[p,E,o]}function rL(o,s){o.action=s}function _E(o){var s=Cr(),f=Kn;if(f!==null)return TE(s,f,o);Cr(),s=s.memoizedState,f=Cr();var p=f.queue.dispatch;return f.memoizedState=o,[s,p,!1]}function Tc(o,s,f,p){return o={tag:o,create:f,deps:p,inst:s,next:null},s=Zt.updateQueue,s===null&&(s=Zh(),Zt.updateQueue=s),f=s.lastEffect,f===null?s.lastEffect=o.next=o:(p=f.next,f.next=o,o.next=p,s.lastEffect=o),o}function NE(){return Cr().memoizedState}function tm(o,s,f,p){var C=ui();Zt.flags|=o,C.memoizedState=Tc(1|s,{destroy:void 0},f,p===void 0?null:p)}function nm(o,s,f,p){var C=Cr();p=p===void 0?null:p;var E=C.memoizedState.inst;Kn!==null&&p!==null&&ay(p,Kn.memoizedState.deps)?C.memoizedState=Tc(s,E,f,p):(Zt.flags|=o,C.memoizedState=Tc(1|s,E,f,p))}function IE(o,s){tm(8390656,8,o,s)}function gy(o,s){nm(2048,8,o,s)}function iL(o){Zt.flags|=4;var s=Zt.updateQueue;if(s===null)s=Zh(),Zt.updateQueue=s,s.events=[o];else{var f=s.events;f===null?s.events=[o]:f.push(o)}}function ME(o){var s=Cr().memoizedState;return iL({ref:s,nextImpl:o}),function(){if((zn&2)!==0)throw Error(r(440));return s.impl.apply(void 0,arguments)}}function PE(o,s){return nm(4,2,o,s)}function AE(o,s){return nm(4,4,o,s)}function zE(o,s){if(typeof s=="function"){o=o();var f=s(o);return function(){typeof f=="function"?f():s(null)}}if(s!=null)return o=o(),s.current=o,function(){s.current=null}}function jE(o,s,f){f=f!=null?f.concat([o]):null,nm(4,4,zE.bind(null,s,o),f)}function py(){}function DE(o,s){var f=Cr();s=s===void 0?null:s;var p=f.memoizedState;return s!==null&&ay(s,p[1])?p[0]:(f.memoizedState=[o,s],o)}function LE(o,s){var f=Cr();s=s===void 0?null:s;var p=f.memoizedState;if(s!==null&&ay(s,p[1]))return p[0];if(p=o(),cs){Ze(!0);try{o()}finally{Ze(!1)}}return f.memoizedState=[p,s],p}function vy(o,s,f){return f===void 0||(mo&1073741824)!==0&&(pn&261930)===0?o.memoizedState=s:(o.memoizedState=f,o=k$(),Zt.lanes|=o,nl|=o,f)}function kE(o,s,f,p){return zi(f,s)?f:$c.current!==null?(o=vy(o,f,p),zi(o,s)||(Tr=!0),o):(mo&42)===0||(mo&1073741824)!==0&&(pn&261930)===0?(Tr=!0,o.memoizedState=f):(o=k$(),Zt.lanes|=o,nl|=o,s)}function BE(o,s,f,p,C){var E=F.p;F.p=E!==0&&8>E?E:8;var L=z.T,W={};z.T=W,Sy(o,!1,s,f);try{var ne=C(),xe=z.S;if(xe!==null&&xe(W,ne),ne!==null&&typeof ne=="object"&&typeof ne.then=="function"){var Pe=JD(ne,p);$d(o,s,Pe,Hi(o))}else $d(o,s,p,Hi(o))}catch(Ve){$d(o,s,{then:function(){},status:"rejected",reason:Ve},Hi())}finally{F.p=E,L!==null&&W.types!==null&&(L.types=W.types),z.T=L}}function aL(){}function yy(o,s,f,p){if(o.tag!==5)throw Error(r(476));var C=HE(o).queue;BE(o,C,s,q,f===null?aL:function(){return FE(o),f(p)})}function HE(o){var s=o.memoizedState;if(s!==null)return s;s={memoizedState:q,baseState:q,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:go,lastRenderedState:q},next:null};var f={};return s.next={memoizedState:f,baseState:f,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:go,lastRenderedState:f},next:null},o.memoizedState=s,o=o.alternate,o!==null&&(o.memoizedState=s),s}function FE(o){var s=HE(o);s.next===null&&(s=o.alternate.memoizedState),$d(o,s.next.queue,{},Hi())}function by(){return Wr(Fd)}function VE(){return Cr().memoizedState}function UE(){return Cr().memoizedState}function oL(o){for(var s=o.return;s!==null;){switch(s.tag){case 24:case 3:var f=Hi();o=Qo(f);var p=Yo(s,o,f);p!==null&&($i(p,s,f),Sd(p,s,f)),s={cache:Gv()},o.payload=s;return}s=s.return}}function lL(o,s,f){var p=Hi();f={lane:p,revertLane:0,gesture:null,action:f,hasEagerState:!1,eagerState:null,next:null},rm(o)?KE(s,f):(f=Dv(o,s,f,p),f!==null&&($i(f,o,p),WE(f,s,p)))}function qE(o,s,f){var p=Hi();$d(o,s,f,p)}function $d(o,s,f,p){var C={lane:p,revertLane:0,gesture:null,action:f,hasEagerState:!1,eagerState:null,next:null};if(rm(o))KE(s,C);else{var E=o.alternate;if(o.lanes===0&&(E===null||E.lanes===0)&&(E=s.lastRenderedReducer,E!==null))try{var L=s.lastRenderedState,W=E(L,f);if(C.hasEagerState=!0,C.eagerState=W,zi(W,L))return Dh(o,s,C,0),Zn===null&&jh(),!1}catch{}finally{}if(f=Dv(o,s,C,p),f!==null)return $i(f,o,p),WE(f,s,p),!0}return!1}function Sy(o,s,f,p){if(p={lane:2,revertLane:Zy(),gesture:null,action:p,hasEagerState:!1,eagerState:null,next:null},rm(o)){if(s)throw Error(r(479))}else s=Dv(o,f,p,2),s!==null&&$i(s,o,2)}function rm(o){var s=o.alternate;return o===Zt||s!==null&&s===Zt}function KE(o,s){Oc=Qh=!0;var f=o.pending;f===null?s.next=s:(s.next=f.next,f.next=s),o.pending=s}function WE(o,s,f){if((f&4194048)!==0){var p=s.lanes;p&=o.pendingLanes,f|=p,s.lanes=f,Ke(o,f)}}var Od={readContext:Wr,use:Jh,useCallback:hr,useContext:hr,useEffect:hr,useImperativeHandle:hr,useLayoutEffect:hr,useInsertionEffect:hr,useMemo:hr,useReducer:hr,useRef:hr,useState:hr,useDebugValue:hr,useDeferredValue:hr,useTransition:hr,useSyncExternalStore:hr,useId:hr,useHostTransitionStatus:hr,useFormState:hr,useActionState:hr,useOptimistic:hr,useMemoCache:hr,useCacheRefresh:hr};Od.useEffectEvent=hr;var GE={readContext:Wr,use:Jh,useCallback:function(o,s){return ui().memoizedState=[o,s===void 0?null:s],o},useContext:Wr,useEffect:IE,useImperativeHandle:function(o,s,f){f=f!=null?f.concat([o]):null,tm(4194308,4,zE.bind(null,s,o),f)},useLayoutEffect:function(o,s){return tm(4194308,4,o,s)},useInsertionEffect:function(o,s){tm(4,2,o,s)},useMemo:function(o,s){var f=ui();s=s===void 0?null:s;var p=o();if(cs){Ze(!0);try{o()}finally{Ze(!1)}}return f.memoizedState=[p,s],p},useReducer:function(o,s,f){var p=ui();if(f!==void 0){var C=f(s);if(cs){Ze(!0);try{f(s)}finally{Ze(!1)}}}else C=s;return p.memoizedState=p.baseState=C,o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:o,lastRenderedState:C},p.queue=o,o=o.dispatch=lL.bind(null,Zt,o),[p.memoizedState,o]},useRef:function(o){var s=ui();return o={current:o},s.memoizedState=o},useState:function(o){o=hy(o);var s=o.queue,f=qE.bind(null,Zt,s);return s.dispatch=f,[o.memoizedState,f]},useDebugValue:py,useDeferredValue:function(o,s){var f=ui();return vy(f,o,s)},useTransition:function(){var o=hy(!1);return o=BE.bind(null,Zt,o.queue,!0,!1),ui().memoizedState=o,[!1,o]},useSyncExternalStore:function(o,s,f){var p=Zt,C=ui();if(xn){if(f===void 0)throw Error(r(407));f=f()}else{if(f=s(),Zn===null)throw Error(r(349));(pn&127)!==0||gE(p,s,f)}C.memoizedState=f;var E={value:f,getSnapshot:s};return C.queue=E,IE(vE.bind(null,p,E,o),[o]),p.flags|=2048,Tc(9,{destroy:void 0},pE.bind(null,p,E,f,s),null),f},useId:function(){var o=ui(),s=Zn.identifierPrefix;if(xn){var f=Fa,p=Ha;f=(p&~(1<<32-_e(p)-1)).toString(32)+f,s="_"+s+"R_"+f,f=Yh++,0<f&&(s+="H"+f.toString(32)),s+="_"}else f=eL++,s="_"+s+"r_"+f.toString(32)+"_";return o.memoizedState=s},useHostTransitionStatus:by,useFormState:OE,useActionState:OE,useOptimistic:function(o){var s=ui();s.memoizedState=s.baseState=o;var f={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return s.queue=f,s=Sy.bind(null,Zt,!0,f),f.dispatch=s,[o,s]},useMemoCache:uy,useCacheRefresh:function(){return ui().memoizedState=oL.bind(null,Zt)},useEffectEvent:function(o){var s=ui(),f={impl:o};return s.memoizedState=f,function(){if((zn&2)!==0)throw Error(r(440));return f.impl.apply(void 0,arguments)}}},xy={readContext:Wr,use:Jh,useCallback:DE,useContext:Wr,useEffect:gy,useImperativeHandle:jE,useInsertionEffect:PE,useLayoutEffect:AE,useMemo:LE,useReducer:em,useRef:NE,useState:function(){return em(go)},useDebugValue:py,useDeferredValue:function(o,s){var f=Cr();return kE(f,Kn.memoizedState,o,s)},useTransition:function(){var o=em(go)[0],s=Cr().memoizedState;return[typeof o=="boolean"?o:Ed(o),s]},useSyncExternalStore:mE,useId:VE,useHostTransitionStatus:by,useFormState:RE,useActionState:RE,useOptimistic:function(o,s){var f=Cr();return SE(f,Kn,o,s)},useMemoCache:uy,useCacheRefresh:UE};xy.useEffectEvent=ME;var XE={readContext:Wr,use:Jh,useCallback:DE,useContext:Wr,useEffect:gy,useImperativeHandle:jE,useInsertionEffect:PE,useLayoutEffect:AE,useMemo:LE,useReducer:fy,useRef:NE,useState:function(){return fy(go)},useDebugValue:py,useDeferredValue:function(o,s){var f=Cr();return Kn===null?vy(f,o,s):kE(f,Kn.memoizedState,o,s)},useTransition:function(){var o=fy(go)[0],s=Cr().memoizedState;return[typeof o=="boolean"?o:Ed(o),s]},useSyncExternalStore:mE,useId:VE,useHostTransitionStatus:by,useFormState:_E,useActionState:_E,useOptimistic:function(o,s){var f=Cr();return Kn!==null?SE(f,Kn,o,s):(f.baseState=o,[o,f.queue.dispatch])},useMemoCache:uy,useCacheRefresh:UE};XE.useEffectEvent=ME;function Cy(o,s,f,p){s=o.memoizedState,f=f(p,s),f=f==null?s:g({},s,f),o.memoizedState=f,o.lanes===0&&(o.updateQueue.baseState=f)}var wy={enqueueSetState:function(o,s,f){o=o._reactInternals;var p=Hi(),C=Qo(p);C.payload=s,f!=null&&(C.callback=f),s=Yo(o,C,p),s!==null&&($i(s,o,p),Sd(s,o,p))},enqueueReplaceState:function(o,s,f){o=o._reactInternals;var p=Hi(),C=Qo(p);C.tag=1,C.payload=s,f!=null&&(C.callback=f),s=Yo(o,C,p),s!==null&&($i(s,o,p),Sd(s,o,p))},enqueueForceUpdate:function(o,s){o=o._reactInternals;var f=Hi(),p=Qo(f);p.tag=2,s!=null&&(p.callback=s),s=Yo(o,p,f),s!==null&&($i(s,o,f),Sd(s,o,f))}};function QE(o,s,f,p,C,E,L){return o=o.stateNode,typeof o.shouldComponentUpdate=="function"?o.shouldComponentUpdate(p,E,L):s.prototype&&s.prototype.isPureReactComponent?!fd(f,p)||!fd(C,E):!0}function YE(o,s,f,p){o=s.state,typeof s.componentWillReceiveProps=="function"&&s.componentWillReceiveProps(f,p),typeof s.UNSAFE_componentWillReceiveProps=="function"&&s.UNSAFE_componentWillReceiveProps(f,p),s.state!==o&&wy.enqueueReplaceState(s,s.state,null)}function us(o,s){var f=s;if("ref"in s){f={};for(var p in s)p!=="ref"&&(f[p]=s[p])}if(o=o.defaultProps){f===s&&(f=g({},f));for(var C in o)f[C]===void 0&&(f[C]=o[C])}return f}function ZE(o){zh(o)}function JE(o){console.error(o)}function e$(o){zh(o)}function im(o,s){try{var f=o.onUncaughtError;f(s.value,{componentStack:s.stack})}catch(p){setTimeout(function(){throw p})}}function t$(o,s,f){try{var p=o.onCaughtError;p(f.value,{componentStack:f.stack,errorBoundary:s.tag===1?s.stateNode:null})}catch(C){setTimeout(function(){throw C})}}function Ey(o,s,f){return f=Qo(f),f.tag=3,f.payload={element:null},f.callback=function(){im(o,s)},f}function n$(o){return o=Qo(o),o.tag=3,o}function r$(o,s,f,p){var C=f.type.getDerivedStateFromError;if(typeof C=="function"){var E=p.value;o.payload=function(){return C(E)},o.callback=function(){t$(s,f,p)}}var L=f.stateNode;L!==null&&typeof L.componentDidCatch=="function"&&(o.callback=function(){t$(s,f,p),typeof C!="function"&&(rl===null?rl=new Set([this]):rl.add(this));var W=p.stack;this.componentDidCatch(p.value,{componentStack:W!==null?W:""})})}function sL(o,s,f,p,C){if(f.flags|=32768,p!==null&&typeof p=="object"&&typeof p.then=="function"){if(s=f.alternate,s!==null&&Sc(s,f,C,!0),f=Di.current,f!==null){switch(f.tag){case 31:case 13:return aa===null?pm():f.alternate===null&&mr===0&&(mr=3),f.flags&=-257,f.flags|=65536,f.lanes=C,p===qh?f.flags|=16384:(s=f.updateQueue,s===null?f.updateQueue=new Set([p]):s.add(p),Xy(o,p,C)),!1;case 22:return f.flags|=65536,p===qh?f.flags|=16384:(s=f.updateQueue,s===null?(s={transitions:null,markerInstances:null,retryQueue:new Set([p])},f.updateQueue=s):(f=s.retryQueue,f===null?s.retryQueue=new Set([p]):f.add(p)),Xy(o,p,C)),!1}throw Error(r(435,f.tag))}return Xy(o,p,C),pm(),!1}if(xn)return s=Di.current,s!==null?((s.flags&65536)===0&&(s.flags|=256),s.flags|=65536,s.lanes=C,p!==Vv&&(o=Error(r(422),{cause:p}),gd(ta(o,f)))):(p!==Vv&&(s=Error(r(423),{cause:p}),gd(ta(s,f))),o=o.current.alternate,o.flags|=65536,C&=-C,o.lanes|=C,p=ta(p,f),C=Ey(o.stateNode,p,C),ey(o,C),mr!==4&&(mr=2)),!1;var E=Error(r(520),{cause:p});if(E=ta(E,f),Ad===null?Ad=[E]:Ad.push(E),mr!==4&&(mr=2),s===null)return!0;p=ta(p,f),f=s;do{switch(f.tag){case 3:return f.flags|=65536,o=C&-C,f.lanes|=o,o=Ey(f.stateNode,p,o),ey(f,o),!1;case 1:if(s=f.type,E=f.stateNode,(f.flags&128)===0&&(typeof s.getDerivedStateFromError=="function"||E!==null&&typeof E.componentDidCatch=="function"&&(rl===null||!rl.has(E))))return f.flags|=65536,C&=-C,f.lanes|=C,C=n$(C),r$(C,o,f,p),ey(f,C),!1}f=f.return}while(f!==null);return!1}var $y=Error(r(461)),Tr=!1;function Gr(o,s,f,p){s.child=o===null?lE(s,null,f,p):ss(s,o.child,f,p)}function i$(o,s,f,p,C){f=f.render;var E=s.ref;if("ref"in p){var L={};for(var W in p)W!=="ref"&&(L[W]=p[W])}else L=p;return is(s),p=oy(o,s,f,L,E,C),W=ly(),o!==null&&!Tr?(sy(o,s,C),po(o,s,C)):(xn&&W&&Hv(s),s.flags|=1,Gr(o,s,p,C),s.child)}function a$(o,s,f,p,C){if(o===null){var E=f.type;return typeof E=="function"&&!Lv(E)&&E.defaultProps===void 0&&f.compare===null?(s.tag=15,s.type=E,o$(o,s,E,p,C)):(o=kh(f.type,null,p,s,s.mode,C),o.ref=s.ref,o.return=s,s.child=o)}if(E=o.child,!Py(o,C)){var L=E.memoizedProps;if(f=f.compare,f=f!==null?f:fd,f(L,p)&&o.ref===s.ref)return po(o,s,C)}return s.flags|=1,o=co(E,p),o.ref=s.ref,o.return=s,s.child=o}function o$(o,s,f,p,C){if(o!==null){var E=o.memoizedProps;if(fd(E,p)&&o.ref===s.ref)if(Tr=!1,s.pendingProps=p=E,Py(o,C))(o.flags&131072)!==0&&(Tr=!0);else return s.lanes=o.lanes,po(o,s,C)}return Oy(o,s,f,p,C)}function l$(o,s,f,p){var C=p.children,E=o!==null?o.memoizedState:null;if(o===null&&s.stateNode===null&&(s.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),p.mode==="hidden"){if((s.flags&128)!==0){if(E=E!==null?E.baseLanes|f:f,o!==null){for(p=s.child=o.child,C=0;p!==null;)C=C|p.lanes|p.childLanes,p=p.sibling;p=C&~E}else p=0,s.child=null;return s$(o,s,E,f,p)}if((f&536870912)!==0)s.memoizedState={baseLanes:0,cachePool:null},o!==null&&Vh(s,E!==null?E.cachePool:null),E!==null?uE(s,E):ny(),dE(s);else return p=s.lanes=536870912,s$(o,s,E!==null?E.baseLanes|f:f,f,p)}else E!==null?(Vh(s,E.cachePool),uE(s,E),Jo(),s.memoizedState=null):(o!==null&&Vh(s,null),ny(),Jo());return Gr(o,s,C,f),s.child}function Rd(o,s){return o!==null&&o.tag===22||s.stateNode!==null||(s.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),s.sibling}function s$(o,s,f,p,C){var E=Qv();return E=E===null?null:{parent:Or._currentValue,pool:E},s.memoizedState={baseLanes:f,cachePool:E},o!==null&&Vh(s,null),ny(),dE(s),o!==null&&Sc(o,s,p,!0),s.childLanes=C,null}function am(o,s){return s=lm({mode:s.mode,children:s.children},o.mode),s.ref=o.ref,o.child=s,s.return=o,s}function c$(o,s,f){return ss(s,o.child,null,f),o=am(s,s.pendingProps),o.flags|=2,Li(s),s.memoizedState=null,o}function cL(o,s,f){var p=s.pendingProps,C=(s.flags&128)!==0;if(s.flags&=-129,o===null){if(xn){if(p.mode==="hidden")return o=am(s,p),s.lanes=536870912,Rd(null,o);if(iy(s),(o=ar)?(o=xO(o,ia),o=o!==null&&o.data==="&"?o:null,o!==null&&(s.memoizedState={dehydrated:o,treeContext:qo!==null?{id:Ha,overflow:Fa}:null,retryLane:536870912,hydrationErrors:null},f=Kw(o),f.return=s,s.child=f,Kr=s,ar=null)):o=null,o===null)throw Wo(s);return s.lanes=536870912,null}return am(s,p)}var E=o.memoizedState;if(E!==null){var L=E.dehydrated;if(iy(s),C)if(s.flags&256)s.flags&=-257,s=c$(o,s,f);else if(s.memoizedState!==null)s.child=o.child,s.flags|=128,s=null;else throw Error(r(558));else if(Tr||Sc(o,s,f,!1),C=(f&o.childLanes)!==0,Tr||C){if(p=Zn,p!==null&&(L=Be(p,f),L!==0&&L!==E.retryLane))throw E.retryLane=L,es(o,L),$i(p,o,L),$y;pm(),s=c$(o,s,f)}else o=E.treeContext,ar=oa(L.nextSibling),Kr=s,xn=!0,Ko=null,ia=!1,o!==null&&Xw(s,o),s=am(s,p),s.flags|=4096;return s}return o=co(o.child,{mode:p.mode,children:p.children}),o.ref=s.ref,s.child=o,o.return=s,o}function om(o,s){var f=s.ref;if(f===null)o!==null&&o.ref!==null&&(s.flags|=4194816);else{if(typeof f!="function"&&typeof f!="object")throw Error(r(284));(o===null||o.ref!==f)&&(s.flags|=4194816)}}function Oy(o,s,f,p,C){return is(s),f=oy(o,s,f,p,void 0,C),p=ly(),o!==null&&!Tr?(sy(o,s,C),po(o,s,C)):(xn&&p&&Hv(s),s.flags|=1,Gr(o,s,f,C),s.child)}function u$(o,s,f,p,C,E){return is(s),s.updateQueue=null,f=hE(s,p,f,C),fE(o),p=ly(),o!==null&&!Tr?(sy(o,s,E),po(o,s,E)):(xn&&p&&Hv(s),s.flags|=1,Gr(o,s,f,E),s.child)}function d$(o,s,f,p,C){if(is(s),s.stateNode===null){var E=pc,L=f.contextType;typeof L=="object"&&L!==null&&(E=Wr(L)),E=new f(p,E),s.memoizedState=E.state!==null&&E.state!==void 0?E.state:null,E.updater=wy,s.stateNode=E,E._reactInternals=s,E=s.stateNode,E.props=p,E.state=s.memoizedState,E.refs={},Zv(s),L=f.contextType,E.context=typeof L=="object"&&L!==null?Wr(L):pc,E.state=s.memoizedState,L=f.getDerivedStateFromProps,typeof L=="function"&&(Cy(s,f,L,p),E.state=s.memoizedState),typeof f.getDerivedStateFromProps=="function"||typeof E.getSnapshotBeforeUpdate=="function"||typeof E.UNSAFE_componentWillMount!="function"&&typeof E.componentWillMount!="function"||(L=E.state,typeof E.componentWillMount=="function"&&E.componentWillMount(),typeof E.UNSAFE_componentWillMount=="function"&&E.UNSAFE_componentWillMount(),L!==E.state&&wy.enqueueReplaceState(E,E.state,null),Cd(s,p,E,C),xd(),E.state=s.memoizedState),typeof E.componentDidMount=="function"&&(s.flags|=4194308),p=!0}else if(o===null){E=s.stateNode;var W=s.memoizedProps,ne=us(f,W);E.props=ne;var xe=E.context,Pe=f.contextType;L=pc,typeof Pe=="object"&&Pe!==null&&(L=Wr(Pe));var Ve=f.getDerivedStateFromProps;Pe=typeof Ve=="function"||typeof E.getSnapshotBeforeUpdate=="function",W=s.pendingProps!==W,Pe||typeof E.UNSAFE_componentWillReceiveProps!="function"&&typeof E.componentWillReceiveProps!="function"||(W||xe!==L)&&YE(s,E,p,L),Xo=!1;var Ee=s.memoizedState;E.state=Ee,Cd(s,p,E,C),xd(),xe=s.memoizedState,W||Ee!==xe||Xo?(typeof Ve=="function"&&(Cy(s,f,Ve,p),xe=s.memoizedState),(ne=Xo||QE(s,f,ne,p,Ee,xe,L))?(Pe||typeof E.UNSAFE_componentWillMount!="function"&&typeof E.componentWillMount!="function"||(typeof E.componentWillMount=="function"&&E.componentWillMount(),typeof E.UNSAFE_componentWillMount=="function"&&E.UNSAFE_componentWillMount()),typeof E.componentDidMount=="function"&&(s.flags|=4194308)):(typeof E.componentDidMount=="function"&&(s.flags|=4194308),s.memoizedProps=p,s.memoizedState=xe),E.props=p,E.state=xe,E.context=L,p=ne):(typeof E.componentDidMount=="function"&&(s.flags|=4194308),p=!1)}else{E=s.stateNode,Jv(o,s),L=s.memoizedProps,Pe=us(f,L),E.props=Pe,Ve=s.pendingProps,Ee=E.context,xe=f.contextType,ne=pc,typeof xe=="object"&&xe!==null&&(ne=Wr(xe)),W=f.getDerivedStateFromProps,(xe=typeof W=="function"||typeof E.getSnapshotBeforeUpdate=="function")||typeof E.UNSAFE_componentWillReceiveProps!="function"&&typeof E.componentWillReceiveProps!="function"||(L!==Ve||Ee!==ne)&&YE(s,E,p,ne),Xo=!1,Ee=s.memoizedState,E.state=Ee,Cd(s,p,E,C),xd();var Re=s.memoizedState;L!==Ve||Ee!==Re||Xo||o!==null&&o.dependencies!==null&&Hh(o.dependencies)?(typeof W=="function"&&(Cy(s,f,W,p),Re=s.memoizedState),(Pe=Xo||QE(s,f,Pe,p,Ee,Re,ne)||o!==null&&o.dependencies!==null&&Hh(o.dependencies))?(xe||typeof E.UNSAFE_componentWillUpdate!="function"&&typeof E.componentWillUpdate!="function"||(typeof E.componentWillUpdate=="function"&&E.componentWillUpdate(p,Re,ne),typeof E.UNSAFE_componentWillUpdate=="function"&&E.UNSAFE_componentWillUpdate(p,Re,ne)),typeof E.componentDidUpdate=="function"&&(s.flags|=4),typeof E.getSnapshotBeforeUpdate=="function"&&(s.flags|=1024)):(typeof E.componentDidUpdate!="function"||L===o.memoizedProps&&Ee===o.memoizedState||(s.flags|=4),typeof E.getSnapshotBeforeUpdate!="function"||L===o.memoizedProps&&Ee===o.memoizedState||(s.flags|=1024),s.memoizedProps=p,s.memoizedState=Re),E.props=p,E.state=Re,E.context=ne,p=Pe):(typeof E.componentDidUpdate!="function"||L===o.memoizedProps&&Ee===o.memoizedState||(s.flags|=4),typeof E.getSnapshotBeforeUpdate!="function"||L===o.memoizedProps&&Ee===o.memoizedState||(s.flags|=1024),p=!1)}return E=p,om(o,s),p=(s.flags&128)!==0,E||p?(E=s.stateNode,f=p&&typeof f.getDerivedStateFromError!="function"?null:E.render(),s.flags|=1,o!==null&&p?(s.child=ss(s,o.child,null,C),s.child=ss(s,null,f,C)):Gr(o,s,f,C),s.memoizedState=E.state,o=s.child):o=po(o,s,C),o}function f$(o,s,f,p){return ns(),s.flags|=256,Gr(o,s,f,p),s.child}var Ry={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Ty(o){return{baseLanes:o,cachePool:tE()}}function _y(o,s,f){return o=o!==null?o.childLanes&~f:0,s&&(o|=Bi),o}function h$(o,s,f){var p=s.pendingProps,C=!1,E=(s.flags&128)!==0,L;if((L=E)||(L=o!==null&&o.memoizedState===null?!1:(xr.current&2)!==0),L&&(C=!0,s.flags&=-129),L=(s.flags&32)!==0,s.flags&=-33,o===null){if(xn){if(C?Zo(s):Jo(),(o=ar)?(o=xO(o,ia),o=o!==null&&o.data!=="&"?o:null,o!==null&&(s.memoizedState={dehydrated:o,treeContext:qo!==null?{id:Ha,overflow:Fa}:null,retryLane:536870912,hydrationErrors:null},f=Kw(o),f.return=s,s.child=f,Kr=s,ar=null)):o=null,o===null)throw Wo(s);return d0(o)?s.lanes=32:s.lanes=536870912,null}var W=p.children;return p=p.fallback,C?(Jo(),C=s.mode,W=lm({mode:"hidden",children:W},C),p=ts(p,C,f,null),W.return=s,p.return=s,W.sibling=p,s.child=W,p=s.child,p.memoizedState=Ty(f),p.childLanes=_y(o,L,f),s.memoizedState=Ry,Rd(null,p)):(Zo(s),Ny(s,W))}var ne=o.memoizedState;if(ne!==null&&(W=ne.dehydrated,W!==null)){if(E)s.flags&256?(Zo(s),s.flags&=-257,s=Iy(o,s,f)):s.memoizedState!==null?(Jo(),s.child=o.child,s.flags|=128,s=null):(Jo(),W=p.fallback,C=s.mode,p=lm({mode:"visible",children:p.children},C),W=ts(W,C,f,null),W.flags|=2,p.return=s,W.return=s,p.sibling=W,s.child=p,ss(s,o.child,null,f),p=s.child,p.memoizedState=Ty(f),p.childLanes=_y(o,L,f),s.memoizedState=Ry,s=Rd(null,p));else if(Zo(s),d0(W)){if(L=W.nextSibling&&W.nextSibling.dataset,L)var xe=L.dgst;L=xe,p=Error(r(419)),p.stack="",p.digest=L,gd({value:p,source:null,stack:null}),s=Iy(o,s,f)}else if(Tr||Sc(o,s,f,!1),L=(f&o.childLanes)!==0,Tr||L){if(L=Zn,L!==null&&(p=Be(L,f),p!==0&&p!==ne.retryLane))throw ne.retryLane=p,es(o,p),$i(L,o,p),$y;u0(W)||pm(),s=Iy(o,s,f)}else u0(W)?(s.flags|=192,s.child=o.child,s=null):(o=ne.treeContext,ar=oa(W.nextSibling),Kr=s,xn=!0,Ko=null,ia=!1,o!==null&&Xw(s,o),s=Ny(s,p.children),s.flags|=4096);return s}return C?(Jo(),W=p.fallback,C=s.mode,ne=o.child,xe=ne.sibling,p=co(ne,{mode:"hidden",children:p.children}),p.subtreeFlags=ne.subtreeFlags&65011712,xe!==null?W=co(xe,W):(W=ts(W,C,f,null),W.flags|=2),W.return=s,p.return=s,p.sibling=W,s.child=p,Rd(null,p),p=s.child,W=o.child.memoizedState,W===null?W=Ty(f):(C=W.cachePool,C!==null?(ne=Or._currentValue,C=C.parent!==ne?{parent:ne,pool:ne}:C):C=tE(),W={baseLanes:W.baseLanes|f,cachePool:C}),p.memoizedState=W,p.childLanes=_y(o,L,f),s.memoizedState=Ry,Rd(o.child,p)):(Zo(s),f=o.child,o=f.sibling,f=co(f,{mode:"visible",children:p.children}),f.return=s,f.sibling=null,o!==null&&(L=s.deletions,L===null?(s.deletions=[o],s.flags|=16):L.push(o)),s.child=f,s.memoizedState=null,f)}function Ny(o,s){return s=lm({mode:"visible",children:s},o.mode),s.return=o,o.child=s}function lm(o,s){return o=ji(22,o,null,s),o.lanes=0,o}function Iy(o,s,f){return ss(s,o.child,null,f),o=Ny(s,s.pendingProps.children),o.flags|=2,s.memoizedState=null,o}function m$(o,s,f){o.lanes|=s;var p=o.alternate;p!==null&&(p.lanes|=s),Kv(o.return,s,f)}function My(o,s,f,p,C,E){var L=o.memoizedState;L===null?o.memoizedState={isBackwards:s,rendering:null,renderingStartTime:0,last:p,tail:f,tailMode:C,treeForkCount:E}:(L.isBackwards=s,L.rendering=null,L.renderingStartTime=0,L.last=p,L.tail=f,L.tailMode=C,L.treeForkCount=E)}function g$(o,s,f){var p=s.pendingProps,C=p.revealOrder,E=p.tail;p=p.children;var L=xr.current,W=(L&2)!==0;if(W?(L=L&1|2,s.flags|=128):L&=1,D(xr,L),Gr(o,s,p,f),p=xn?md:0,!W&&o!==null&&(o.flags&128)!==0)e:for(o=s.child;o!==null;){if(o.tag===13)o.memoizedState!==null&&m$(o,f,s);else if(o.tag===19)m$(o,f,s);else if(o.child!==null){o.child.return=o,o=o.child;continue}if(o===s)break e;for(;o.sibling===null;){if(o.return===null||o.return===s)break e;o=o.return}o.sibling.return=o.return,o=o.sibling}switch(C){case"forwards":for(f=s.child,C=null;f!==null;)o=f.alternate,o!==null&&Xh(o)===null&&(C=f),f=f.sibling;f=C,f===null?(C=s.child,s.child=null):(C=f.sibling,f.sibling=null),My(s,!1,C,f,E,p);break;case"backwards":case"unstable_legacy-backwards":for(f=null,C=s.child,s.child=null;C!==null;){if(o=C.alternate,o!==null&&Xh(o)===null){s.child=C;break}o=C.sibling,C.sibling=f,f=C,C=o}My(s,!0,f,null,E,p);break;case"together":My(s,!1,null,null,void 0,p);break;default:s.memoizedState=null}return s.child}function po(o,s,f){if(o!==null&&(s.dependencies=o.dependencies),nl|=s.lanes,(f&s.childLanes)===0)if(o!==null){if(Sc(o,s,f,!1),(f&s.childLanes)===0)return null}else return null;if(o!==null&&s.child!==o.child)throw Error(r(153));if(s.child!==null){for(o=s.child,f=co(o,o.pendingProps),s.child=f,f.return=s;o.sibling!==null;)o=o.sibling,f=f.sibling=co(o,o.pendingProps),f.return=s;f.sibling=null}return s.child}function Py(o,s){return(o.lanes&s)!==0?!0:(o=o.dependencies,!!(o!==null&&Hh(o)))}function uL(o,s,f){switch(s.tag){case 3:oe(s,s.stateNode.containerInfo),Go(s,Or,o.memoizedState.cache),ns();break;case 27:case 5:Ce(s);break;case 4:oe(s,s.stateNode.containerInfo);break;case 10:Go(s,s.type,s.memoizedProps.value);break;case 31:if(s.memoizedState!==null)return s.flags|=128,iy(s),null;break;case 13:var p=s.memoizedState;if(p!==null)return p.dehydrated!==null?(Zo(s),s.flags|=128,null):(f&s.child.childLanes)!==0?h$(o,s,f):(Zo(s),o=po(o,s,f),o!==null?o.sibling:null);Zo(s);break;case 19:var C=(o.flags&128)!==0;if(p=(f&s.childLanes)!==0,p||(Sc(o,s,f,!1),p=(f&s.childLanes)!==0),C){if(p)return g$(o,s,f);s.flags|=128}if(C=s.memoizedState,C!==null&&(C.rendering=null,C.tail=null,C.lastEffect=null),D(xr,xr.current),p)break;return null;case 22:return s.lanes=0,l$(o,s,f,s.pendingProps);case 24:Go(s,Or,o.memoizedState.cache)}return po(o,s,f)}function p$(o,s,f){if(o!==null)if(o.memoizedProps!==s.pendingProps)Tr=!0;else{if(!Py(o,f)&&(s.flags&128)===0)return Tr=!1,uL(o,s,f);Tr=(o.flags&131072)!==0}else Tr=!1,xn&&(s.flags&1048576)!==0&&Gw(s,md,s.index);switch(s.lanes=0,s.tag){case 16:e:{var p=s.pendingProps;if(o=os(s.elementType),s.type=o,typeof o=="function")Lv(o)?(p=us(o,p),s.tag=1,s=d$(null,s,o,p,f)):(s.tag=0,s=Oy(null,s,o,p,f));else{if(o!=null){var C=o.$$typeof;if(C===T){s.tag=11,s=i$(null,s,o,p,f);break e}else if(C===M){s.tag=14,s=a$(null,s,o,p,f);break e}}throw s=j(o)||o,Error(r(306,s,""))}}return s;case 0:return Oy(o,s,s.type,s.pendingProps,f);case 1:return p=s.type,C=us(p,s.pendingProps),d$(o,s,p,C,f);case 3:e:{if(oe(s,s.stateNode.containerInfo),o===null)throw Error(r(387));p=s.pendingProps;var E=s.memoizedState;C=E.element,Jv(o,s),Cd(s,p,null,f);var L=s.memoizedState;if(p=L.cache,Go(s,Or,p),p!==E.cache&&Wv(s,[Or],f,!0),xd(),p=L.element,E.isDehydrated)if(E={element:p,isDehydrated:!1,cache:L.cache},s.updateQueue.baseState=E,s.memoizedState=E,s.flags&256){s=f$(o,s,p,f);break e}else if(p!==C){C=ta(Error(r(424)),s),gd(C),s=f$(o,s,p,f);break e}else{switch(o=s.stateNode.containerInfo,o.nodeType){case 9:o=o.body;break;default:o=o.nodeName==="HTML"?o.ownerDocument.body:o}for(ar=oa(o.firstChild),Kr=s,xn=!0,Ko=null,ia=!0,f=lE(s,null,p,f),s.child=f;f;)f.flags=f.flags&-3|4096,f=f.sibling}else{if(ns(),p===C){s=po(o,s,f);break e}Gr(o,s,p,f)}s=s.child}return s;case 26:return om(o,s),o===null?(f=RO(s.type,null,s.pendingProps,null))?s.memoizedState=f:xn||(f=s.type,o=s.pendingProps,p=wm(Y.current).createElement(f),p[Ot]=s,p[Ct]=o,Xr(p,f,o),rt(p),s.stateNode=p):s.memoizedState=RO(s.type,o.memoizedProps,s.pendingProps,o.memoizedState),null;case 27:return Ce(s),o===null&&xn&&(p=s.stateNode=EO(s.type,s.pendingProps,Y.current),Kr=s,ia=!0,C=ar,ll(s.type)?(f0=C,ar=oa(p.firstChild)):ar=C),Gr(o,s,s.pendingProps.children,f),om(o,s),o===null&&(s.flags|=4194304),s.child;case 5:return o===null&&xn&&((C=p=ar)&&(p=BL(p,s.type,s.pendingProps,ia),p!==null?(s.stateNode=p,Kr=s,ar=oa(p.firstChild),ia=!1,C=!0):C=!1),C||Wo(s)),Ce(s),C=s.type,E=s.pendingProps,L=o!==null?o.memoizedProps:null,p=E.children,l0(C,E)?p=null:L!==null&&l0(C,L)&&(s.flags|=32),s.memoizedState!==null&&(C=oy(o,s,tL,null,null,f),Fd._currentValue=C),om(o,s),Gr(o,s,p,f),s.child;case 6:return o===null&&xn&&((o=f=ar)&&(f=HL(f,s.pendingProps,ia),f!==null?(s.stateNode=f,Kr=s,ar=null,o=!0):o=!1),o||Wo(s)),null;case 13:return h$(o,s,f);case 4:return oe(s,s.stateNode.containerInfo),p=s.pendingProps,o===null?s.child=ss(s,null,p,f):Gr(o,s,p,f),s.child;case 11:return i$(o,s,s.type,s.pendingProps,f);case 7:return Gr(o,s,s.pendingProps,f),s.child;case 8:return Gr(o,s,s.pendingProps.children,f),s.child;case 12:return Gr(o,s,s.pendingProps.children,f),s.child;case 10:return p=s.pendingProps,Go(s,s.type,p.value),Gr(o,s,p.children,f),s.child;case 9:return C=s.type._context,p=s.pendingProps.children,is(s),C=Wr(C),p=p(C),s.flags|=1,Gr(o,s,p,f),s.child;case 14:return a$(o,s,s.type,s.pendingProps,f);case 15:return o$(o,s,s.type,s.pendingProps,f);case 19:return g$(o,s,f);case 31:return cL(o,s,f);case 22:return l$(o,s,f,s.pendingProps);case 24:return is(s),p=Wr(Or),o===null?(C=Qv(),C===null&&(C=Zn,E=Gv(),C.pooledCache=E,E.refCount++,E!==null&&(C.pooledCacheLanes|=f),C=E),s.memoizedState={parent:p,cache:C},Zv(s),Go(s,Or,C)):((o.lanes&f)!==0&&(Jv(o,s),Cd(s,null,null,f),xd()),C=o.memoizedState,E=s.memoizedState,C.parent!==p?(C={parent:p,cache:p},s.memoizedState=C,s.lanes===0&&(s.memoizedState=s.updateQueue.baseState=C),Go(s,Or,p)):(p=E.cache,Go(s,Or,p),p!==C.cache&&Wv(s,[Or],f,!0))),Gr(o,s,s.pendingProps.children,f),s.child;case 29:throw s.pendingProps}throw Error(r(156,s.tag))}function vo(o){o.flags|=4}function Ay(o,s,f,p,C){if((s=(o.mode&32)!==0)&&(s=!1),s){if(o.flags|=16777216,(C&335544128)===C)if(o.stateNode.complete)o.flags|=8192;else if(V$())o.flags|=8192;else throw ls=qh,Yv}else o.flags&=-16777217}function v$(o,s){if(s.type!=="stylesheet"||(s.state.loading&4)!==0)o.flags&=-16777217;else if(o.flags|=16777216,!MO(s))if(V$())o.flags|=8192;else throw ls=qh,Yv}function sm(o,s){s!==null&&(o.flags|=4),o.flags&16384&&(s=o.tag!==22?un():536870912,o.lanes|=s,Mc|=s)}function Td(o,s){if(!xn)switch(o.tailMode){case"hidden":s=o.tail;for(var f=null;s!==null;)s.alternate!==null&&(f=s),s=s.sibling;f===null?o.tail=null:f.sibling=null;break;case"collapsed":f=o.tail;for(var p=null;f!==null;)f.alternate!==null&&(p=f),f=f.sibling;p===null?s||o.tail===null?o.tail=null:o.tail.sibling=null:p.sibling=null}}function or(o){var s=o.alternate!==null&&o.alternate.child===o.child,f=0,p=0;if(s)for(var C=o.child;C!==null;)f|=C.lanes|C.childLanes,p|=C.subtreeFlags&65011712,p|=C.flags&65011712,C.return=o,C=C.sibling;else for(C=o.child;C!==null;)f|=C.lanes|C.childLanes,p|=C.subtreeFlags,p|=C.flags,C.return=o,C=C.sibling;return o.subtreeFlags|=p,o.childLanes=f,s}function dL(o,s,f){var p=s.pendingProps;switch(Fv(s),s.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return or(s),null;case 1:return or(s),null;case 3:return f=s.stateNode,p=null,o!==null&&(p=o.memoizedState.cache),s.memoizedState.cache!==p&&(s.flags|=2048),ho(Or),le(),f.pendingContext&&(f.context=f.pendingContext,f.pendingContext=null),(o===null||o.child===null)&&(bc(s)?vo(s):o===null||o.memoizedState.isDehydrated&&(s.flags&256)===0||(s.flags|=1024,Uv())),or(s),null;case 26:var C=s.type,E=s.memoizedState;return o===null?(vo(s),E!==null?(or(s),v$(s,E)):(or(s),Ay(s,C,null,p,f))):E?E!==o.memoizedState?(vo(s),or(s),v$(s,E)):(or(s),s.flags&=-16777217):(o=o.memoizedProps,o!==p&&vo(s),or(s),Ay(s,C,o,p,f)),null;case 27:if(ce(s),f=Y.current,C=s.type,o!==null&&s.stateNode!=null)o.memoizedProps!==p&&vo(s);else{if(!p){if(s.stateNode===null)throw Error(r(166));return or(s),null}o=X.current,bc(s)?Qw(s):(o=EO(C,p,f),s.stateNode=o,vo(s))}return or(s),null;case 5:if(ce(s),C=s.type,o!==null&&s.stateNode!=null)o.memoizedProps!==p&&vo(s);else{if(!p){if(s.stateNode===null)throw Error(r(166));return or(s),null}if(E=X.current,bc(s))Qw(s);else{var L=wm(Y.current);switch(E){case 1:E=L.createElementNS("http://www.w3.org/2000/svg",C);break;case 2:E=L.createElementNS("http://www.w3.org/1998/Math/MathML",C);break;default:switch(C){case"svg":E=L.createElementNS("http://www.w3.org/2000/svg",C);break;case"math":E=L.createElementNS("http://www.w3.org/1998/Math/MathML",C);break;case"script":E=L.createElement("div"),E.innerHTML="<script><\/script>",E=E.removeChild(E.firstChild);break;case"select":E=typeof p.is=="string"?L.createElement("select",{is:p.is}):L.createElement("select"),p.multiple?E.multiple=!0:p.size&&(E.size=p.size);break;default:E=typeof p.is=="string"?L.createElement(C,{is:p.is}):L.createElement(C)}}E[Ot]=s,E[Ct]=p;e:for(L=s.child;L!==null;){if(L.tag===5||L.tag===6)E.appendChild(L.stateNode);else if(L.tag!==4&&L.tag!==27&&L.child!==null){L.child.return=L,L=L.child;continue}if(L===s)break e;for(;L.sibling===null;){if(L.return===null||L.return===s)break e;L=L.return}L.sibling.return=L.return,L=L.sibling}s.stateNode=E;e:switch(Xr(E,C,p),C){case"button":case"input":case"select":case"textarea":p=!!p.autoFocus;break e;case"img":p=!0;break e;default:p=!1}p&&vo(s)}}return or(s),Ay(s,s.type,o===null?null:o.memoizedProps,s.pendingProps,f),null;case 6:if(o&&s.stateNode!=null)o.memoizedProps!==p&&vo(s);else{if(typeof p!="string"&&s.stateNode===null)throw Error(r(166));if(o=Y.current,bc(s)){if(o=s.stateNode,f=s.memoizedProps,p=null,C=Kr,C!==null)switch(C.tag){case 27:case 5:p=C.memoizedProps}o[Ot]=s,o=!!(o.nodeValue===f||p!==null&&p.suppressHydrationWarning===!0||hO(o.nodeValue,f)),o||Wo(s,!0)}else o=wm(o).createTextNode(p),o[Ot]=s,s.stateNode=o}return or(s),null;case 31:if(f=s.memoizedState,o===null||o.memoizedState!==null){if(p=bc(s),f!==null){if(o===null){if(!p)throw Error(r(318));if(o=s.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(r(557));o[Ot]=s}else ns(),(s.flags&128)===0&&(s.memoizedState=null),s.flags|=4;or(s),o=!1}else f=Uv(),o!==null&&o.memoizedState!==null&&(o.memoizedState.hydrationErrors=f),o=!0;if(!o)return s.flags&256?(Li(s),s):(Li(s),null);if((s.flags&128)!==0)throw Error(r(558))}return or(s),null;case 13:if(p=s.memoizedState,o===null||o.memoizedState!==null&&o.memoizedState.dehydrated!==null){if(C=bc(s),p!==null&&p.dehydrated!==null){if(o===null){if(!C)throw Error(r(318));if(C=s.memoizedState,C=C!==null?C.dehydrated:null,!C)throw Error(r(317));C[Ot]=s}else ns(),(s.flags&128)===0&&(s.memoizedState=null),s.flags|=4;or(s),C=!1}else C=Uv(),o!==null&&o.memoizedState!==null&&(o.memoizedState.hydrationErrors=C),C=!0;if(!C)return s.flags&256?(Li(s),s):(Li(s),null)}return Li(s),(s.flags&128)!==0?(s.lanes=f,s):(f=p!==null,o=o!==null&&o.memoizedState!==null,f&&(p=s.child,C=null,p.alternate!==null&&p.alternate.memoizedState!==null&&p.alternate.memoizedState.cachePool!==null&&(C=p.alternate.memoizedState.cachePool.pool),E=null,p.memoizedState!==null&&p.memoizedState.cachePool!==null&&(E=p.memoizedState.cachePool.pool),E!==C&&(p.flags|=2048)),f!==o&&f&&(s.child.flags|=8192),sm(s,s.updateQueue),or(s),null);case 4:return le(),o===null&&n0(s.stateNode.containerInfo),or(s),null;case 10:return ho(s.type),or(s),null;case 19:if(K(xr),p=s.memoizedState,p===null)return or(s),null;if(C=(s.flags&128)!==0,E=p.rendering,E===null)if(C)Td(p,!1);else{if(mr!==0||o!==null&&(o.flags&128)!==0)for(o=s.child;o!==null;){if(E=Xh(o),E!==null){for(s.flags|=128,Td(p,!1),o=E.updateQueue,s.updateQueue=o,sm(s,o),s.subtreeFlags=0,o=f,f=s.child;f!==null;)qw(f,o),f=f.sibling;return D(xr,xr.current&1|2),xn&&uo(s,p.treeForkCount),s.child}o=o.sibling}p.tail!==null&&be()>hm&&(s.flags|=128,C=!0,Td(p,!1),s.lanes=4194304)}else{if(!C)if(o=Xh(E),o!==null){if(s.flags|=128,C=!0,o=o.updateQueue,s.updateQueue=o,sm(s,o),Td(p,!0),p.tail===null&&p.tailMode==="hidden"&&!E.alternate&&!xn)return or(s),null}else 2*be()-p.renderingStartTime>hm&&f!==536870912&&(s.flags|=128,C=!0,Td(p,!1),s.lanes=4194304);p.isBackwards?(E.sibling=s.child,s.child=E):(o=p.last,o!==null?o.sibling=E:s.child=E,p.last=E)}return p.tail!==null?(o=p.tail,p.rendering=o,p.tail=o.sibling,p.renderingStartTime=be(),o.sibling=null,f=xr.current,D(xr,C?f&1|2:f&1),xn&&uo(s,p.treeForkCount),o):(or(s),null);case 22:case 23:return Li(s),ry(),p=s.memoizedState!==null,o!==null?o.memoizedState!==null!==p&&(s.flags|=8192):p&&(s.flags|=8192),p?(f&536870912)!==0&&(s.flags&128)===0&&(or(s),s.subtreeFlags&6&&(s.flags|=8192)):or(s),f=s.updateQueue,f!==null&&sm(s,f.retryQueue),f=null,o!==null&&o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(f=o.memoizedState.cachePool.pool),p=null,s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(p=s.memoizedState.cachePool.pool),p!==f&&(s.flags|=2048),o!==null&&K(as),null;case 24:return f=null,o!==null&&(f=o.memoizedState.cache),s.memoizedState.cache!==f&&(s.flags|=2048),ho(Or),or(s),null;case 25:return null;case 30:return null}throw Error(r(156,s.tag))}function fL(o,s){switch(Fv(s),s.tag){case 1:return o=s.flags,o&65536?(s.flags=o&-65537|128,s):null;case 3:return ho(Or),le(),o=s.flags,(o&65536)!==0&&(o&128)===0?(s.flags=o&-65537|128,s):null;case 26:case 27:case 5:return ce(s),null;case 31:if(s.memoizedState!==null){if(Li(s),s.alternate===null)throw Error(r(340));ns()}return o=s.flags,o&65536?(s.flags=o&-65537|128,s):null;case 13:if(Li(s),o=s.memoizedState,o!==null&&o.dehydrated!==null){if(s.alternate===null)throw Error(r(340));ns()}return o=s.flags,o&65536?(s.flags=o&-65537|128,s):null;case 19:return K(xr),null;case 4:return le(),null;case 10:return ho(s.type),null;case 22:case 23:return Li(s),ry(),o!==null&&K(as),o=s.flags,o&65536?(s.flags=o&-65537|128,s):null;case 24:return ho(Or),null;case 25:return null;default:return null}}function y$(o,s){switch(Fv(s),s.tag){case 3:ho(Or),le();break;case 26:case 27:case 5:ce(s);break;case 4:le();break;case 31:s.memoizedState!==null&&Li(s);break;case 13:Li(s);break;case 19:K(xr);break;case 10:ho(s.type);break;case 22:case 23:Li(s),ry(),o!==null&&K(as);break;case 24:ho(Or)}}function _d(o,s){try{var f=s.updateQueue,p=f!==null?f.lastEffect:null;if(p!==null){var C=p.next;f=C;do{if((f.tag&o)===o){p=void 0;var E=f.create,L=f.inst;p=E(),L.destroy=p}f=f.next}while(f!==C)}}catch(W){Vn(s,s.return,W)}}function el(o,s,f){try{var p=s.updateQueue,C=p!==null?p.lastEffect:null;if(C!==null){var E=C.next;p=E;do{if((p.tag&o)===o){var L=p.inst,W=L.destroy;if(W!==void 0){L.destroy=void 0,C=s;var ne=f,xe=W;try{xe()}catch(Pe){Vn(C,ne,Pe)}}}p=p.next}while(p!==E)}}catch(Pe){Vn(s,s.return,Pe)}}function b$(o){var s=o.updateQueue;if(s!==null){var f=o.stateNode;try{cE(s,f)}catch(p){Vn(o,o.return,p)}}}function S$(o,s,f){f.props=us(o.type,o.memoizedProps),f.state=o.memoizedState;try{f.componentWillUnmount()}catch(p){Vn(o,s,p)}}function Nd(o,s){try{var f=o.ref;if(f!==null){switch(o.tag){case 26:case 27:case 5:var p=o.stateNode;break;case 30:p=o.stateNode;break;default:p=o.stateNode}typeof f=="function"?o.refCleanup=f(p):f.current=p}}catch(C){Vn(o,s,C)}}function Va(o,s){var f=o.ref,p=o.refCleanup;if(f!==null)if(typeof p=="function")try{p()}catch(C){Vn(o,s,C)}finally{o.refCleanup=null,o=o.alternate,o!=null&&(o.refCleanup=null)}else if(typeof f=="function")try{f(null)}catch(C){Vn(o,s,C)}else f.current=null}function x$(o){var s=o.type,f=o.memoizedProps,p=o.stateNode;try{e:switch(s){case"button":case"input":case"select":case"textarea":f.autoFocus&&p.focus();break e;case"img":f.src?p.src=f.src:f.srcSet&&(p.srcset=f.srcSet)}}catch(C){Vn(o,o.return,C)}}function zy(o,s,f){try{var p=o.stateNode;AL(p,o.type,f,s),p[Ct]=s}catch(C){Vn(o,o.return,C)}}function C$(o){return o.tag===5||o.tag===3||o.tag===26||o.tag===27&&ll(o.type)||o.tag===4}function jy(o){e:for(;;){for(;o.sibling===null;){if(o.return===null||C$(o.return))return null;o=o.return}for(o.sibling.return=o.return,o=o.sibling;o.tag!==5&&o.tag!==6&&o.tag!==18;){if(o.tag===27&&ll(o.type)||o.flags&2||o.child===null||o.tag===4)continue e;o.child.return=o,o=o.child}if(!(o.flags&2))return o.stateNode}}function Dy(o,s,f){var p=o.tag;if(p===5||p===6)o=o.stateNode,s?(f.nodeType===9?f.body:f.nodeName==="HTML"?f.ownerDocument.body:f).insertBefore(o,s):(s=f.nodeType===9?f.body:f.nodeName==="HTML"?f.ownerDocument.body:f,s.appendChild(o),f=f._reactRootContainer,f!=null||s.onclick!==null||(s.onclick=ci));else if(p!==4&&(p===27&&ll(o.type)&&(f=o.stateNode,s=null),o=o.child,o!==null))for(Dy(o,s,f),o=o.sibling;o!==null;)Dy(o,s,f),o=o.sibling}function cm(o,s,f){var p=o.tag;if(p===5||p===6)o=o.stateNode,s?f.insertBefore(o,s):f.appendChild(o);else if(p!==4&&(p===27&&ll(o.type)&&(f=o.stateNode),o=o.child,o!==null))for(cm(o,s,f),o=o.sibling;o!==null;)cm(o,s,f),o=o.sibling}function w$(o){var s=o.stateNode,f=o.memoizedProps;try{for(var p=o.type,C=s.attributes;C.length;)s.removeAttributeNode(C[0]);Xr(s,p,f),s[Ot]=o,s[Ct]=f}catch(E){Vn(o,o.return,E)}}var yo=!1,_r=!1,Ly=!1,E$=typeof WeakSet=="function"?WeakSet:Set,Br=null;function hL(o,s){if(o=o.containerInfo,a0=Nm,o=jw(o),Iv(o)){if("selectionStart"in o)var f={start:o.selectionStart,end:o.selectionEnd};else e:{f=(f=o.ownerDocument)&&f.defaultView||window;var p=f.getSelection&&f.getSelection();if(p&&p.rangeCount!==0){f=p.anchorNode;var C=p.anchorOffset,E=p.focusNode;p=p.focusOffset;try{f.nodeType,E.nodeType}catch{f=null;break e}var L=0,W=-1,ne=-1,xe=0,Pe=0,Ve=o,Ee=null;t:for(;;){for(var Re;Ve!==f||C!==0&&Ve.nodeType!==3||(W=L+C),Ve!==E||p!==0&&Ve.nodeType!==3||(ne=L+p),Ve.nodeType===3&&(L+=Ve.nodeValue.length),(Re=Ve.firstChild)!==null;)Ee=Ve,Ve=Re;for(;;){if(Ve===o)break t;if(Ee===f&&++xe===C&&(W=L),Ee===E&&++Pe===p&&(ne=L),(Re=Ve.nextSibling)!==null)break;Ve=Ee,Ee=Ve.parentNode}Ve=Re}f=W===-1||ne===-1?null:{start:W,end:ne}}else f=null}f=f||{start:0,end:0}}else f=null;for(o0={focusedElem:o,selectionRange:f},Nm=!1,Br=s;Br!==null;)if(s=Br,o=s.child,(s.subtreeFlags&1028)!==0&&o!==null)o.return=s,Br=o;else for(;Br!==null;){switch(s=Br,E=s.alternate,o=s.flags,s.tag){case 0:if((o&4)!==0&&(o=s.updateQueue,o=o!==null?o.events:null,o!==null))for(f=0;f<o.length;f++)C=o[f],C.ref.impl=C.nextImpl;break;case 11:case 15:break;case 1:if((o&1024)!==0&&E!==null){o=void 0,f=s,C=E.memoizedProps,E=E.memoizedState,p=f.stateNode;try{var xt=us(f.type,C);o=p.getSnapshotBeforeUpdate(xt,E),p.__reactInternalSnapshotBeforeUpdate=o}catch(Bt){Vn(f,f.return,Bt)}}break;case 3:if((o&1024)!==0){if(o=s.stateNode.containerInfo,f=o.nodeType,f===9)c0(o);else if(f===1)switch(o.nodeName){case"HEAD":case"HTML":case"BODY":c0(o);break;default:o.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((o&1024)!==0)throw Error(r(163))}if(o=s.sibling,o!==null){o.return=s.return,Br=o;break}Br=s.return}}function $$(o,s,f){var p=f.flags;switch(f.tag){case 0:case 11:case 15:So(o,f),p&4&&_d(5,f);break;case 1:if(So(o,f),p&4)if(o=f.stateNode,s===null)try{o.componentDidMount()}catch(L){Vn(f,f.return,L)}else{var C=us(f.type,s.memoizedProps);s=s.memoizedState;try{o.componentDidUpdate(C,s,o.__reactInternalSnapshotBeforeUpdate)}catch(L){Vn(f,f.return,L)}}p&64&&b$(f),p&512&&Nd(f,f.return);break;case 3:if(So(o,f),p&64&&(o=f.updateQueue,o!==null)){if(s=null,f.child!==null)switch(f.child.tag){case 27:case 5:s=f.child.stateNode;break;case 1:s=f.child.stateNode}try{cE(o,s)}catch(L){Vn(f,f.return,L)}}break;case 27:s===null&&p&4&&w$(f);case 26:case 5:So(o,f),s===null&&p&4&&x$(f),p&512&&Nd(f,f.return);break;case 12:So(o,f);break;case 31:So(o,f),p&4&&T$(o,f);break;case 13:So(o,f),p&4&&_$(o,f),p&64&&(o=f.memoizedState,o!==null&&(o=o.dehydrated,o!==null&&(f=CL.bind(null,f),FL(o,f))));break;case 22:if(p=f.memoizedState!==null||yo,!p){s=s!==null&&s.memoizedState!==null||_r,C=yo;var E=_r;yo=p,(_r=s)&&!E?xo(o,f,(f.subtreeFlags&8772)!==0):So(o,f),yo=C,_r=E}break;case 30:break;default:So(o,f)}}function O$(o){var s=o.alternate;s!==null&&(o.alternate=null,O$(s)),o.child=null,o.deletions=null,o.sibling=null,o.tag===5&&(s=o.stateNode,s!==null&&Sn(s)),o.stateNode=null,o.return=null,o.dependencies=null,o.memoizedProps=null,o.memoizedState=null,o.pendingProps=null,o.stateNode=null,o.updateQueue=null}var sr=null,xi=!1;function bo(o,s,f){for(f=f.child;f!==null;)R$(o,s,f),f=f.sibling}function R$(o,s,f){if(Le&&typeof Le.onCommitFiberUnmount=="function")try{Le.onCommitFiberUnmount(Ge,f)}catch{}switch(f.tag){case 26:_r||Va(f,s),bo(o,s,f),f.memoizedState?f.memoizedState.count--:f.stateNode&&(f=f.stateNode,f.parentNode.removeChild(f));break;case 27:_r||Va(f,s);var p=sr,C=xi;ll(f.type)&&(sr=f.stateNode,xi=!1),bo(o,s,f),kd(f.stateNode),sr=p,xi=C;break;case 5:_r||Va(f,s);case 6:if(p=sr,C=xi,sr=null,bo(o,s,f),sr=p,xi=C,sr!==null)if(xi)try{(sr.nodeType===9?sr.body:sr.nodeName==="HTML"?sr.ownerDocument.body:sr).removeChild(f.stateNode)}catch(E){Vn(f,s,E)}else try{sr.removeChild(f.stateNode)}catch(E){Vn(f,s,E)}break;case 18:sr!==null&&(xi?(o=sr,bO(o.nodeType===9?o.body:o.nodeName==="HTML"?o.ownerDocument.body:o,f.stateNode),Bc(o)):bO(sr,f.stateNode));break;case 4:p=sr,C=xi,sr=f.stateNode.containerInfo,xi=!0,bo(o,s,f),sr=p,xi=C;break;case 0:case 11:case 14:case 15:el(2,f,s),_r||el(4,f,s),bo(o,s,f);break;case 1:_r||(Va(f,s),p=f.stateNode,typeof p.componentWillUnmount=="function"&&S$(f,s,p)),bo(o,s,f);break;case 21:bo(o,s,f);break;case 22:_r=(p=_r)||f.memoizedState!==null,bo(o,s,f),_r=p;break;default:bo(o,s,f)}}function T$(o,s){if(s.memoizedState===null&&(o=s.alternate,o!==null&&(o=o.memoizedState,o!==null))){o=o.dehydrated;try{Bc(o)}catch(f){Vn(s,s.return,f)}}}function _$(o,s){if(s.memoizedState===null&&(o=s.alternate,o!==null&&(o=o.memoizedState,o!==null&&(o=o.dehydrated,o!==null))))try{Bc(o)}catch(f){Vn(s,s.return,f)}}function mL(o){switch(o.tag){case 31:case 13:case 19:var s=o.stateNode;return s===null&&(s=o.stateNode=new E$),s;case 22:return o=o.stateNode,s=o._retryCache,s===null&&(s=o._retryCache=new E$),s;default:throw Error(r(435,o.tag))}}function um(o,s){var f=mL(o);s.forEach(function(p){if(!f.has(p)){f.add(p);var C=wL.bind(null,o,p);p.then(C,C)}})}function Ci(o,s){var f=s.deletions;if(f!==null)for(var p=0;p<f.length;p++){var C=f[p],E=o,L=s,W=L;e:for(;W!==null;){switch(W.tag){case 27:if(ll(W.type)){sr=W.stateNode,xi=!1;break e}break;case 5:sr=W.stateNode,xi=!1;break e;case 3:case 4:sr=W.stateNode.containerInfo,xi=!0;break e}W=W.return}if(sr===null)throw Error(r(160));R$(E,L,C),sr=null,xi=!1,E=C.alternate,E!==null&&(E.return=null),C.return=null}if(s.subtreeFlags&13886)for(s=s.child;s!==null;)N$(s,o),s=s.sibling}var $a=null;function N$(o,s){var f=o.alternate,p=o.flags;switch(o.tag){case 0:case 11:case 14:case 15:Ci(s,o),wi(o),p&4&&(el(3,o,o.return),_d(3,o),el(5,o,o.return));break;case 1:Ci(s,o),wi(o),p&512&&(_r||f===null||Va(f,f.return)),p&64&&yo&&(o=o.updateQueue,o!==null&&(p=o.callbacks,p!==null&&(f=o.shared.hiddenCallbacks,o.shared.hiddenCallbacks=f===null?p:f.concat(p))));break;case 26:var C=$a;if(Ci(s,o),wi(o),p&512&&(_r||f===null||Va(f,f.return)),p&4){var E=f!==null?f.memoizedState:null;if(p=o.memoizedState,f===null)if(p===null)if(o.stateNode===null){e:{p=o.type,f=o.memoizedProps,C=C.ownerDocument||C;t:switch(p){case"title":E=C.getElementsByTagName("title")[0],(!E||E[an]||E[Ot]||E.namespaceURI==="http://www.w3.org/2000/svg"||E.hasAttribute("itemprop"))&&(E=C.createElement(p),C.head.insertBefore(E,C.querySelector("head > title"))),Xr(E,p,f),E[Ot]=o,rt(E),p=E;break e;case"link":var L=NO("link","href",C).get(p+(f.href||""));if(L){for(var W=0;W<L.length;W++)if(E=L[W],E.getAttribute("href")===(f.href==null||f.href===""?null:f.href)&&E.getAttribute("rel")===(f.rel==null?null:f.rel)&&E.getAttribute("title")===(f.title==null?null:f.title)&&E.getAttribute("crossorigin")===(f.crossOrigin==null?null:f.crossOrigin)){L.splice(W,1);break t}}E=C.createElement(p),Xr(E,p,f),C.head.appendChild(E);break;case"meta":if(L=NO("meta","content",C).get(p+(f.content||""))){for(W=0;W<L.length;W++)if(E=L[W],E.getAttribute("content")===(f.content==null?null:""+f.content)&&E.getAttribute("name")===(f.name==null?null:f.name)&&E.getAttribute("property")===(f.property==null?null:f.property)&&E.getAttribute("http-equiv")===(f.httpEquiv==null?null:f.httpEquiv)&&E.getAttribute("charset")===(f.charSet==null?null:f.charSet)){L.splice(W,1);break t}}E=C.createElement(p),Xr(E,p,f),C.head.appendChild(E);break;default:throw Error(r(468,p))}E[Ot]=o,rt(E),p=E}o.stateNode=p}else IO(C,o.type,o.stateNode);else o.stateNode=_O(C,p,o.memoizedProps);else E!==p?(E===null?f.stateNode!==null&&(f=f.stateNode,f.parentNode.removeChild(f)):E.count--,p===null?IO(C,o.type,o.stateNode):_O(C,p,o.memoizedProps)):p===null&&o.stateNode!==null&&zy(o,o.memoizedProps,f.memoizedProps)}break;case 27:Ci(s,o),wi(o),p&512&&(_r||f===null||Va(f,f.return)),f!==null&&p&4&&zy(o,o.memoizedProps,f.memoizedProps);break;case 5:if(Ci(s,o),wi(o),p&512&&(_r||f===null||Va(f,f.return)),o.flags&32){C=o.stateNode;try{dr(C,"")}catch(xt){Vn(o,o.return,xt)}}p&4&&o.stateNode!=null&&(C=o.memoizedProps,zy(o,C,f!==null?f.memoizedProps:C)),p&1024&&(Ly=!0);break;case 6:if(Ci(s,o),wi(o),p&4){if(o.stateNode===null)throw Error(r(162));p=o.memoizedProps,f=o.stateNode;try{f.nodeValue=p}catch(xt){Vn(o,o.return,xt)}}break;case 3:if(Om=null,C=$a,$a=Em(s.containerInfo),Ci(s,o),$a=C,wi(o),p&4&&f!==null&&f.memoizedState.isDehydrated)try{Bc(s.containerInfo)}catch(xt){Vn(o,o.return,xt)}Ly&&(Ly=!1,I$(o));break;case 4:p=$a,$a=Em(o.stateNode.containerInfo),Ci(s,o),wi(o),$a=p;break;case 12:Ci(s,o),wi(o);break;case 31:Ci(s,o),wi(o),p&4&&(p=o.updateQueue,p!==null&&(o.updateQueue=null,um(o,p)));break;case 13:Ci(s,o),wi(o),o.child.flags&8192&&o.memoizedState!==null!=(f!==null&&f.memoizedState!==null)&&(fm=be()),p&4&&(p=o.updateQueue,p!==null&&(o.updateQueue=null,um(o,p)));break;case 22:C=o.memoizedState!==null;var ne=f!==null&&f.memoizedState!==null,xe=yo,Pe=_r;if(yo=xe||C,_r=Pe||ne,Ci(s,o),_r=Pe,yo=xe,wi(o),p&8192)e:for(s=o.stateNode,s._visibility=C?s._visibility&-2:s._visibility|1,C&&(f===null||ne||yo||_r||ds(o)),f=null,s=o;;){if(s.tag===5||s.tag===26){if(f===null){ne=f=s;try{if(E=ne.stateNode,C)L=E.style,typeof L.setProperty=="function"?L.setProperty("display","none","important"):L.display="none";else{W=ne.stateNode;var Ve=ne.memoizedProps.style,Ee=Ve!=null&&Ve.hasOwnProperty("display")?Ve.display:null;W.style.display=Ee==null||typeof Ee=="boolean"?"":(""+Ee).trim()}}catch(xt){Vn(ne,ne.return,xt)}}}else if(s.tag===6){if(f===null){ne=s;try{ne.stateNode.nodeValue=C?"":ne.memoizedProps}catch(xt){Vn(ne,ne.return,xt)}}}else if(s.tag===18){if(f===null){ne=s;try{var Re=ne.stateNode;C?SO(Re,!0):SO(ne.stateNode,!1)}catch(xt){Vn(ne,ne.return,xt)}}}else if((s.tag!==22&&s.tag!==23||s.memoizedState===null||s===o)&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===o)break e;for(;s.sibling===null;){if(s.return===null||s.return===o)break e;f===s&&(f=null),s=s.return}f===s&&(f=null),s.sibling.return=s.return,s=s.sibling}p&4&&(p=o.updateQueue,p!==null&&(f=p.retryQueue,f!==null&&(p.retryQueue=null,um(o,f))));break;case 19:Ci(s,o),wi(o),p&4&&(p=o.updateQueue,p!==null&&(o.updateQueue=null,um(o,p)));break;case 30:break;case 21:break;default:Ci(s,o),wi(o)}}function wi(o){var s=o.flags;if(s&2){try{for(var f,p=o.return;p!==null;){if(C$(p)){f=p;break}p=p.return}if(f==null)throw Error(r(160));switch(f.tag){case 27:var C=f.stateNode,E=jy(o);cm(o,E,C);break;case 5:var L=f.stateNode;f.flags&32&&(dr(L,""),f.flags&=-33);var W=jy(o);cm(o,W,L);break;case 3:case 4:var ne=f.stateNode.containerInfo,xe=jy(o);Dy(o,xe,ne);break;default:throw Error(r(161))}}catch(Pe){Vn(o,o.return,Pe)}o.flags&=-3}s&4096&&(o.flags&=-4097)}function I$(o){if(o.subtreeFlags&1024)for(o=o.child;o!==null;){var s=o;I$(s),s.tag===5&&s.flags&1024&&s.stateNode.reset(),o=o.sibling}}function So(o,s){if(s.subtreeFlags&8772)for(s=s.child;s!==null;)$$(o,s.alternate,s),s=s.sibling}function ds(o){for(o=o.child;o!==null;){var s=o;switch(s.tag){case 0:case 11:case 14:case 15:el(4,s,s.return),ds(s);break;case 1:Va(s,s.return);var f=s.stateNode;typeof f.componentWillUnmount=="function"&&S$(s,s.return,f),ds(s);break;case 27:kd(s.stateNode);case 26:case 5:Va(s,s.return),ds(s);break;case 22:s.memoizedState===null&&ds(s);break;case 30:ds(s);break;default:ds(s)}o=o.sibling}}function xo(o,s,f){for(f=f&&(s.subtreeFlags&8772)!==0,s=s.child;s!==null;){var p=s.alternate,C=o,E=s,L=E.flags;switch(E.tag){case 0:case 11:case 15:xo(C,E,f),_d(4,E);break;case 1:if(xo(C,E,f),p=E,C=p.stateNode,typeof C.componentDidMount=="function")try{C.componentDidMount()}catch(xe){Vn(p,p.return,xe)}if(p=E,C=p.updateQueue,C!==null){var W=p.stateNode;try{var ne=C.shared.hiddenCallbacks;if(ne!==null)for(C.shared.hiddenCallbacks=null,C=0;C<ne.length;C++)sE(ne[C],W)}catch(xe){Vn(p,p.return,xe)}}f&&L&64&&b$(E),Nd(E,E.return);break;case 27:w$(E);case 26:case 5:xo(C,E,f),f&&p===null&&L&4&&x$(E),Nd(E,E.return);break;case 12:xo(C,E,f);break;case 31:xo(C,E,f),f&&L&4&&T$(C,E);break;case 13:xo(C,E,f),f&&L&4&&_$(C,E);break;case 22:E.memoizedState===null&&xo(C,E,f),Nd(E,E.return);break;case 30:break;default:xo(C,E,f)}s=s.sibling}}function ky(o,s){var f=null;o!==null&&o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(f=o.memoizedState.cachePool.pool),o=null,s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(o=s.memoizedState.cachePool.pool),o!==f&&(o!=null&&o.refCount++,f!=null&&pd(f))}function By(o,s){o=null,s.alternate!==null&&(o=s.alternate.memoizedState.cache),s=s.memoizedState.cache,s!==o&&(s.refCount++,o!=null&&pd(o))}function Oa(o,s,f,p){if(s.subtreeFlags&10256)for(s=s.child;s!==null;)M$(o,s,f,p),s=s.sibling}function M$(o,s,f,p){var C=s.flags;switch(s.tag){case 0:case 11:case 15:Oa(o,s,f,p),C&2048&&_d(9,s);break;case 1:Oa(o,s,f,p);break;case 3:Oa(o,s,f,p),C&2048&&(o=null,s.alternate!==null&&(o=s.alternate.memoizedState.cache),s=s.memoizedState.cache,s!==o&&(s.refCount++,o!=null&&pd(o)));break;case 12:if(C&2048){Oa(o,s,f,p),o=s.stateNode;try{var E=s.memoizedProps,L=E.id,W=E.onPostCommit;typeof W=="function"&&W(L,s.alternate===null?"mount":"update",o.passiveEffectDuration,-0)}catch(ne){Vn(s,s.return,ne)}}else Oa(o,s,f,p);break;case 31:Oa(o,s,f,p);break;case 13:Oa(o,s,f,p);break;case 23:break;case 22:E=s.stateNode,L=s.alternate,s.memoizedState!==null?E._visibility&2?Oa(o,s,f,p):Id(o,s):E._visibility&2?Oa(o,s,f,p):(E._visibility|=2,_c(o,s,f,p,(s.subtreeFlags&10256)!==0||!1)),C&2048&&ky(L,s);break;case 24:Oa(o,s,f,p),C&2048&&By(s.alternate,s);break;default:Oa(o,s,f,p)}}function _c(o,s,f,p,C){for(C=C&&((s.subtreeFlags&10256)!==0||!1),s=s.child;s!==null;){var E=o,L=s,W=f,ne=p,xe=L.flags;switch(L.tag){case 0:case 11:case 15:_c(E,L,W,ne,C),_d(8,L);break;case 23:break;case 22:var Pe=L.stateNode;L.memoizedState!==null?Pe._visibility&2?_c(E,L,W,ne,C):Id(E,L):(Pe._visibility|=2,_c(E,L,W,ne,C)),C&&xe&2048&&ky(L.alternate,L);break;case 24:_c(E,L,W,ne,C),C&&xe&2048&&By(L.alternate,L);break;default:_c(E,L,W,ne,C)}s=s.sibling}}function Id(o,s){if(s.subtreeFlags&10256)for(s=s.child;s!==null;){var f=o,p=s,C=p.flags;switch(p.tag){case 22:Id(f,p),C&2048&&ky(p.alternate,p);break;case 24:Id(f,p),C&2048&&By(p.alternate,p);break;default:Id(f,p)}s=s.sibling}}var Md=8192;function Nc(o,s,f){if(o.subtreeFlags&Md)for(o=o.child;o!==null;)P$(o,s,f),o=o.sibling}function P$(o,s,f){switch(o.tag){case 26:Nc(o,s,f),o.flags&Md&&o.memoizedState!==null&&ek(f,$a,o.memoizedState,o.memoizedProps);break;case 5:Nc(o,s,f);break;case 3:case 4:var p=$a;$a=Em(o.stateNode.containerInfo),Nc(o,s,f),$a=p;break;case 22:o.memoizedState===null&&(p=o.alternate,p!==null&&p.memoizedState!==null?(p=Md,Md=16777216,Nc(o,s,f),Md=p):Nc(o,s,f));break;default:Nc(o,s,f)}}function A$(o){var s=o.alternate;if(s!==null&&(o=s.child,o!==null)){s.child=null;do s=o.sibling,o.sibling=null,o=s;while(o!==null)}}function Pd(o){var s=o.deletions;if((o.flags&16)!==0){if(s!==null)for(var f=0;f<s.length;f++){var p=s[f];Br=p,j$(p,o)}A$(o)}if(o.subtreeFlags&10256)for(o=o.child;o!==null;)z$(o),o=o.sibling}function z$(o){switch(o.tag){case 0:case 11:case 15:Pd(o),o.flags&2048&&el(9,o,o.return);break;case 3:Pd(o);break;case 12:Pd(o);break;case 22:var s=o.stateNode;o.memoizedState!==null&&s._visibility&2&&(o.return===null||o.return.tag!==13)?(s._visibility&=-3,dm(o)):Pd(o);break;default:Pd(o)}}function dm(o){var s=o.deletions;if((o.flags&16)!==0){if(s!==null)for(var f=0;f<s.length;f++){var p=s[f];Br=p,j$(p,o)}A$(o)}for(o=o.child;o!==null;){switch(s=o,s.tag){case 0:case 11:case 15:el(8,s,s.return),dm(s);break;case 22:f=s.stateNode,f._visibility&2&&(f._visibility&=-3,dm(s));break;default:dm(s)}o=o.sibling}}function j$(o,s){for(;Br!==null;){var f=Br;switch(f.tag){case 0:case 11:case 15:el(8,f,s);break;case 23:case 22:if(f.memoizedState!==null&&f.memoizedState.cachePool!==null){var p=f.memoizedState.cachePool.pool;p!=null&&p.refCount++}break;case 24:pd(f.memoizedState.cache)}if(p=f.child,p!==null)p.return=f,Br=p;else e:for(f=o;Br!==null;){p=Br;var C=p.sibling,E=p.return;if(O$(p),p===f){Br=null;break e}if(C!==null){C.return=E,Br=C;break e}Br=E}}}var gL={getCacheForType:function(o){var s=Wr(Or),f=s.data.get(o);return f===void 0&&(f=o(),s.data.set(o,f)),f},cacheSignal:function(){return Wr(Or).controller.signal}},pL=typeof WeakMap=="function"?WeakMap:Map,zn=0,Zn=null,dn=null,pn=0,Fn=0,ki=null,tl=!1,Ic=!1,Hy=!1,Co=0,mr=0,nl=0,fs=0,Fy=0,Bi=0,Mc=0,Ad=null,Ei=null,Vy=!1,fm=0,D$=0,hm=1/0,mm=null,rl=null,jr=0,il=null,Pc=null,wo=0,Uy=0,qy=null,L$=null,zd=0,Ky=null;function Hi(){return(zn&2)!==0&&pn!==0?pn&-pn:z.T!==null?Zy():ut()}function k$(){if(Bi===0)if((pn&536870912)===0||xn){var o=cn;cn<<=1,(cn&3932160)===0&&(cn=262144),Bi=o}else Bi=536870912;return o=Di.current,o!==null&&(o.flags|=32),Bi}function $i(o,s,f){(o===Zn&&(Fn===2||Fn===9)||o.cancelPendingCommit!==null)&&(Ac(o,0),al(o,pn,Bi,!1)),st(o,f),((zn&2)===0||o!==Zn)&&(o===Zn&&((zn&2)===0&&(fs|=f),mr===4&&al(o,pn,Bi,!1)),Ua(o))}function B$(o,s,f){if((zn&6)!==0)throw Error(r(327));var p=!f&&(s&127)===0&&(s&o.expiredLanes)===0||kt(o,s),C=p?bL(o,s):Gy(o,s,!0),E=p;do{if(C===0){Ic&&!p&&al(o,s,0,!1);break}else{if(f=o.current.alternate,E&&!vL(f)){C=Gy(o,s,!1),E=!1;continue}if(C===2){if(E=s,o.errorRecoveryDisabledLanes&E)var L=0;else L=o.pendingLanes&-536870913,L=L!==0?L:L&536870912?536870912:0;if(L!==0){s=L;e:{var W=o;C=Ad;var ne=W.current.memoizedState.isDehydrated;if(ne&&(Ac(W,L).flags|=256),L=Gy(W,L,!1),L!==2){if(Hy&&!ne){W.errorRecoveryDisabledLanes|=E,fs|=E,C=4;break e}E=Ei,Ei=C,E!==null&&(Ei===null?Ei=E:Ei.push.apply(Ei,E))}C=L}if(E=!1,C!==2)continue}}if(C===1){Ac(o,0),al(o,s,0,!0);break}e:{switch(p=o,E=C,E){case 0:case 1:throw Error(r(345));case 4:if((s&4194048)!==s)break;case 6:al(p,s,Bi,!tl);break e;case 2:Ei=null;break;case 3:case 5:break;default:throw Error(r(329))}if((s&62914560)===s&&(C=fm+300-be(),10<C)){if(al(p,s,Bi,!tl),rn(p,0,!0)!==0)break e;wo=s,p.timeoutHandle=vO(H$.bind(null,p,f,Ei,mm,Vy,s,Bi,fs,Mc,tl,E,"Throttled",-0,0),C);break e}H$(p,f,Ei,mm,Vy,s,Bi,fs,Mc,tl,E,null,-0,0)}}break}while(!0);Ua(o)}function H$(o,s,f,p,C,E,L,W,ne,xe,Pe,Ve,Ee,Re){if(o.timeoutHandle=-1,Ve=s.subtreeFlags,Ve&8192||(Ve&16785408)===16785408){Ve={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:ci},P$(s,E,Ve);var xt=(E&62914560)===E?fm-be():(E&4194048)===E?D$-be():0;if(xt=tk(Ve,xt),xt!==null){wo=E,o.cancelPendingCommit=xt(X$.bind(null,o,s,E,f,p,C,L,W,ne,Pe,Ve,null,Ee,Re)),al(o,E,L,!xe);return}}X$(o,s,E,f,p,C,L,W,ne)}function vL(o){for(var s=o;;){var f=s.tag;if((f===0||f===11||f===15)&&s.flags&16384&&(f=s.updateQueue,f!==null&&(f=f.stores,f!==null)))for(var p=0;p<f.length;p++){var C=f[p],E=C.getSnapshot;C=C.value;try{if(!zi(E(),C))return!1}catch{return!1}}if(f=s.child,s.subtreeFlags&16384&&f!==null)f.return=s,s=f;else{if(s===o)break;for(;s.sibling===null;){if(s.return===null||s.return===o)return!0;s=s.return}s.sibling.return=s.return,s=s.sibling}}return!0}function al(o,s,f,p){s&=~Fy,s&=~fs,o.suspendedLanes|=s,o.pingedLanes&=~s,p&&(o.warmLanes|=s),p=o.expirationTimes;for(var C=s;0<C;){var E=31-_e(C),L=1<<E;p[E]=-1,C&=~L}f!==0&&vt(o,f,s)}function gm(){return(zn&6)===0?(jd(0),!1):!0}function Wy(){if(dn!==null){if(Fn===0)var o=dn.return;else o=dn,fo=rs=null,cy(o),Ec=null,yd=0,o=dn;for(;o!==null;)y$(o.alternate,o),o=o.return;dn=null}}function Ac(o,s){var f=o.timeoutHandle;f!==-1&&(o.timeoutHandle=-1,DL(f)),f=o.cancelPendingCommit,f!==null&&(o.cancelPendingCommit=null,f()),wo=0,Wy(),Zn=o,dn=f=co(o.current,null),pn=s,Fn=0,ki=null,tl=!1,Ic=kt(o,s),Hy=!1,Mc=Bi=Fy=fs=nl=mr=0,Ei=Ad=null,Vy=!1,(s&8)!==0&&(s|=s&32);var p=o.entangledLanes;if(p!==0)for(o=o.entanglements,p&=s;0<p;){var C=31-_e(p),E=1<<C;s|=o[C],p&=~E}return Co=s,jh(),f}function F$(o,s){Zt=null,z.H=Od,s===wc||s===Uh?(s=iE(),Fn=3):s===Yv?(s=iE(),Fn=4):Fn=s===$y?8:s!==null&&typeof s=="object"&&typeof s.then=="function"?6:1,ki=s,dn===null&&(mr=1,im(o,ta(s,o.current)))}function V$(){var o=Di.current;return o===null?!0:(pn&4194048)===pn?aa===null:(pn&62914560)===pn||(pn&536870912)!==0?o===aa:!1}function U$(){var o=z.H;return z.H=Od,o===null?Od:o}function q$(){var o=z.A;return z.A=gL,o}function pm(){mr=4,tl||(pn&4194048)!==pn&&Di.current!==null||(Ic=!0),(nl&134217727)===0&&(fs&134217727)===0||Zn===null||al(Zn,pn,Bi,!1)}function Gy(o,s,f){var p=zn;zn|=2;var C=U$(),E=q$();(Zn!==o||pn!==s)&&(mm=null,Ac(o,s)),s=!1;var L=mr;e:do try{if(Fn!==0&&dn!==null){var W=dn,ne=ki;switch(Fn){case 8:Wy(),L=6;break e;case 3:case 2:case 9:case 6:Di.current===null&&(s=!0);var xe=Fn;if(Fn=0,ki=null,zc(o,W,ne,xe),f&&Ic){L=0;break e}break;default:xe=Fn,Fn=0,ki=null,zc(o,W,ne,xe)}}yL(),L=mr;break}catch(Pe){F$(o,Pe)}while(!0);return s&&o.shellSuspendCounter++,fo=rs=null,zn=p,z.H=C,z.A=E,dn===null&&(Zn=null,pn=0,jh()),L}function yL(){for(;dn!==null;)K$(dn)}function bL(o,s){var f=zn;zn|=2;var p=U$(),C=q$();Zn!==o||pn!==s?(mm=null,hm=be()+500,Ac(o,s)):Ic=kt(o,s);e:do try{if(Fn!==0&&dn!==null){s=dn;var E=ki;t:switch(Fn){case 1:Fn=0,ki=null,zc(o,s,E,1);break;case 2:case 9:if(nE(E)){Fn=0,ki=null,W$(s);break}s=function(){Fn!==2&&Fn!==9||Zn!==o||(Fn=7),Ua(o)},E.then(s,s);break e;case 3:Fn=7;break e;case 4:Fn=5;break e;case 7:nE(E)?(Fn=0,ki=null,W$(s)):(Fn=0,ki=null,zc(o,s,E,7));break;case 5:var L=null;switch(dn.tag){case 26:L=dn.memoizedState;case 5:case 27:var W=dn;if(L?MO(L):W.stateNode.complete){Fn=0,ki=null;var ne=W.sibling;if(ne!==null)dn=ne;else{var xe=W.return;xe!==null?(dn=xe,vm(xe)):dn=null}break t}}Fn=0,ki=null,zc(o,s,E,5);break;case 6:Fn=0,ki=null,zc(o,s,E,6);break;case 8:Wy(),mr=6;break e;default:throw Error(r(462))}}SL();break}catch(Pe){F$(o,Pe)}while(!0);return fo=rs=null,z.H=p,z.A=C,zn=f,dn!==null?0:(Zn=null,pn=0,jh(),mr)}function SL(){for(;dn!==null&&!De();)K$(dn)}function K$(o){var s=p$(o.alternate,o,Co);o.memoizedProps=o.pendingProps,s===null?vm(o):dn=s}function W$(o){var s=o,f=s.alternate;switch(s.tag){case 15:case 0:s=u$(f,s,s.pendingProps,s.type,void 0,pn);break;case 11:s=u$(f,s,s.pendingProps,s.type.render,s.ref,pn);break;case 5:cy(s);default:y$(f,s),s=dn=qw(s,Co),s=p$(f,s,Co)}o.memoizedProps=o.pendingProps,s===null?vm(o):dn=s}function zc(o,s,f,p){fo=rs=null,cy(s),Ec=null,yd=0;var C=s.return;try{if(sL(o,C,s,f,pn)){mr=1,im(o,ta(f,o.current)),dn=null;return}}catch(E){if(C!==null)throw dn=C,E;mr=1,im(o,ta(f,o.current)),dn=null;return}s.flags&32768?(xn||p===1?o=!0:Ic||(pn&536870912)!==0?o=!1:(tl=o=!0,(p===2||p===9||p===3||p===6)&&(p=Di.current,p!==null&&p.tag===13&&(p.flags|=16384))),G$(s,o)):vm(s)}function vm(o){var s=o;do{if((s.flags&32768)!==0){G$(s,tl);return}o=s.return;var f=dL(s.alternate,s,Co);if(f!==null){dn=f;return}if(s=s.sibling,s!==null){dn=s;return}dn=s=o}while(s!==null);mr===0&&(mr=5)}function G$(o,s){do{var f=fL(o.alternate,o);if(f!==null){f.flags&=32767,dn=f;return}if(f=o.return,f!==null&&(f.flags|=32768,f.subtreeFlags=0,f.deletions=null),!s&&(o=o.sibling,o!==null)){dn=o;return}dn=o=f}while(o!==null);mr=6,dn=null}function X$(o,s,f,p,C,E,L,W,ne){o.cancelPendingCommit=null;do ym();while(jr!==0);if((zn&6)!==0)throw Error(r(327));if(s!==null){if(s===o.current)throw Error(r(177));if(E=s.lanes|s.childLanes,E|=jv,Pt(o,f,E,L,W,ne),o===Zn&&(dn=Zn=null,pn=0),Pc=s,il=o,wo=f,Uy=E,qy=C,L$=p,(s.subtreeFlags&10256)!==0||(s.flags&10256)!==0?(o.callbackNode=null,o.callbackPriority=0,EL(Me,function(){return eO(),null})):(o.callbackNode=null,o.callbackPriority=0),p=(s.flags&13878)!==0,(s.subtreeFlags&13878)!==0||p){p=z.T,z.T=null,C=F.p,F.p=2,L=zn,zn|=4;try{hL(o,s,f)}finally{zn=L,F.p=C,z.T=p}}jr=1,Q$(),Y$(),Z$()}}function Q$(){if(jr===1){jr=0;var o=il,s=Pc,f=(s.flags&13878)!==0;if((s.subtreeFlags&13878)!==0||f){f=z.T,z.T=null;var p=F.p;F.p=2;var C=zn;zn|=4;try{N$(s,o);var E=o0,L=jw(o.containerInfo),W=E.focusedElem,ne=E.selectionRange;if(L!==W&&W&&W.ownerDocument&&zw(W.ownerDocument.documentElement,W)){if(ne!==null&&Iv(W)){var xe=ne.start,Pe=ne.end;if(Pe===void 0&&(Pe=xe),"selectionStart"in W)W.selectionStart=xe,W.selectionEnd=Math.min(Pe,W.value.length);else{var Ve=W.ownerDocument||document,Ee=Ve&&Ve.defaultView||window;if(Ee.getSelection){var Re=Ee.getSelection(),xt=W.textContent.length,Bt=Math.min(ne.start,xt),Gn=ne.end===void 0?Bt:Math.min(ne.end,xt);!Re.extend&&Bt>Gn&&(L=Gn,Gn=Bt,Bt=L);var pe=Aw(W,Bt),ue=Aw(W,Gn);if(pe&&ue&&(Re.rangeCount!==1||Re.anchorNode!==pe.node||Re.anchorOffset!==pe.offset||Re.focusNode!==ue.node||Re.focusOffset!==ue.offset)){var Se=Ve.createRange();Se.setStart(pe.node,pe.offset),Re.removeAllRanges(),Bt>Gn?(Re.addRange(Se),Re.extend(ue.node,ue.offset)):(Se.setEnd(ue.node,ue.offset),Re.addRange(Se))}}}}for(Ve=[],Re=W;Re=Re.parentNode;)Re.nodeType===1&&Ve.push({element:Re,left:Re.scrollLeft,top:Re.scrollTop});for(typeof W.focus=="function"&&W.focus(),W=0;W<Ve.length;W++){var ke=Ve[W];ke.element.scrollLeft=ke.left,ke.element.scrollTop=ke.top}}Nm=!!a0,o0=a0=null}finally{zn=C,F.p=p,z.T=f}}o.current=s,jr=2}}function Y$(){if(jr===2){jr=0;var o=il,s=Pc,f=(s.flags&8772)!==0;if((s.subtreeFlags&8772)!==0||f){f=z.T,z.T=null;var p=F.p;F.p=2;var C=zn;zn|=4;try{$$(o,s.alternate,s)}finally{zn=C,F.p=p,z.T=f}}jr=3}}function Z$(){if(jr===4||jr===3){jr=0,Ne();var o=il,s=Pc,f=wo,p=L$;(s.subtreeFlags&10256)!==0||(s.flags&10256)!==0?jr=5:(jr=0,Pc=il=null,J$(o,o.pendingLanes));var C=o.pendingLanes;if(C===0&&(rl=null),Qe(f),s=s.stateNode,Le&&typeof Le.onCommitFiberRoot=="function")try{Le.onCommitFiberRoot(Ge,s,void 0,(s.current.flags&128)===128)}catch{}if(p!==null){s=z.T,C=F.p,F.p=2,z.T=null;try{for(var E=o.onRecoverableError,L=0;L<p.length;L++){var W=p[L];E(W.value,{componentStack:W.stack})}}finally{z.T=s,F.p=C}}(wo&3)!==0&&ym(),Ua(o),C=o.pendingLanes,(f&261930)!==0&&(C&42)!==0?o===Ky?zd++:(zd=0,Ky=o):zd=0,jd(0)}}function J$(o,s){(o.pooledCacheLanes&=s)===0&&(s=o.pooledCache,s!=null&&(o.pooledCache=null,pd(s)))}function ym(){return Q$(),Y$(),Z$(),eO()}function eO(){if(jr!==5)return!1;var o=il,s=Uy;Uy=0;var f=Qe(wo),p=z.T,C=F.p;try{F.p=32>f?32:f,z.T=null,f=qy,qy=null;var E=il,L=wo;if(jr=0,Pc=il=null,wo=0,(zn&6)!==0)throw Error(r(331));var W=zn;if(zn|=4,z$(E.current),M$(E,E.current,L,f),zn=W,jd(0,!1),Le&&typeof Le.onPostCommitFiberRoot=="function")try{Le.onPostCommitFiberRoot(Ge,E)}catch{}return!0}finally{F.p=C,z.T=p,J$(o,s)}}function tO(o,s,f){s=ta(f,s),s=Ey(o.stateNode,s,2),o=Yo(o,s,2),o!==null&&(st(o,2),Ua(o))}function Vn(o,s,f){if(o.tag===3)tO(o,o,f);else for(;s!==null;){if(s.tag===3){tO(s,o,f);break}else if(s.tag===1){var p=s.stateNode;if(typeof s.type.getDerivedStateFromError=="function"||typeof p.componentDidCatch=="function"&&(rl===null||!rl.has(p))){o=ta(f,o),f=n$(2),p=Yo(s,f,2),p!==null&&(r$(f,p,s,o),st(p,2),Ua(p));break}}s=s.return}}function Xy(o,s,f){var p=o.pingCache;if(p===null){p=o.pingCache=new pL;var C=new Set;p.set(s,C)}else C=p.get(s),C===void 0&&(C=new Set,p.set(s,C));C.has(f)||(Hy=!0,C.add(f),o=xL.bind(null,o,s,f),s.then(o,o))}function xL(o,s,f){var p=o.pingCache;p!==null&&p.delete(s),o.pingedLanes|=o.suspendedLanes&f,o.warmLanes&=~f,Zn===o&&(pn&f)===f&&(mr===4||mr===3&&(pn&62914560)===pn&&300>be()-fm?(zn&2)===0&&Ac(o,0):Fy|=f,Mc===pn&&(Mc=0)),Ua(o)}function nO(o,s){s===0&&(s=un()),o=es(o,s),o!==null&&(st(o,s),Ua(o))}function CL(o){var s=o.memoizedState,f=0;s!==null&&(f=s.retryLane),nO(o,f)}function wL(o,s){var f=0;switch(o.tag){case 31:case 13:var p=o.stateNode,C=o.memoizedState;C!==null&&(f=C.retryLane);break;case 19:p=o.stateNode;break;case 22:p=o.stateNode._retryCache;break;default:throw Error(r(314))}p!==null&&p.delete(s),nO(o,f)}function EL(o,s){return ze(o,s)}var bm=null,jc=null,Qy=!1,Sm=!1,Yy=!1,ol=0;function Ua(o){o!==jc&&o.next===null&&(jc===null?bm=jc=o:jc=jc.next=o),Sm=!0,Qy||(Qy=!0,OL())}function jd(o,s){if(!Yy&&Sm){Yy=!0;do for(var f=!1,p=bm;p!==null;){if(o!==0){var C=p.pendingLanes;if(C===0)var E=0;else{var L=p.suspendedLanes,W=p.pingedLanes;E=(1<<31-_e(42|o)+1)-1,E&=C&~(L&~W),E=E&201326741?E&201326741|1:E?E|2:0}E!==0&&(f=!0,oO(p,E))}else E=pn,E=rn(p,p===Zn?E:0,p.cancelPendingCommit!==null||p.timeoutHandle!==-1),(E&3)===0||kt(p,E)||(f=!0,oO(p,E));p=p.next}while(f);Yy=!1}}function $L(){rO()}function rO(){Sm=Qy=!1;var o=0;ol!==0&&jL()&&(o=ol);for(var s=be(),f=null,p=bm;p!==null;){var C=p.next,E=iO(p,s);E===0?(p.next=null,f===null?bm=C:f.next=C,C===null&&(jc=f)):(f=p,(o!==0||(E&3)!==0)&&(Sm=!0)),p=C}jr!==0&&jr!==5||jd(o),ol!==0&&(ol=0)}function iO(o,s){for(var f=o.suspendedLanes,p=o.pingedLanes,C=o.expirationTimes,E=o.pendingLanes&-62914561;0<E;){var L=31-_e(E),W=1<<L,ne=C[L];ne===-1?((W&f)===0||(W&p)!==0)&&(C[L]=Mt(W,s)):ne<=s&&(o.expiredLanes|=W),E&=~W}if(s=Zn,f=pn,f=rn(o,o===s?f:0,o.cancelPendingCommit!==null||o.timeoutHandle!==-1),p=o.callbackNode,f===0||o===s&&(Fn===2||Fn===9)||o.cancelPendingCommit!==null)return p!==null&&p!==null&&Oe(p),o.callbackNode=null,o.callbackPriority=0;if((f&3)===0||kt(o,f)){if(s=f&-f,s===o.callbackPriority)return s;switch(p!==null&&Oe(p),Qe(f)){case 2:case 8:f=$e;break;case 32:f=Me;break;case 268435456:f=Xe;break;default:f=Me}return p=aO.bind(null,o),f=ze(f,p),o.callbackPriority=s,o.callbackNode=f,s}return p!==null&&p!==null&&Oe(p),o.callbackPriority=2,o.callbackNode=null,2}function aO(o,s){if(jr!==0&&jr!==5)return o.callbackNode=null,o.callbackPriority=0,null;var f=o.callbackNode;if(ym()&&o.callbackNode!==f)return null;var p=pn;return p=rn(o,o===Zn?p:0,o.cancelPendingCommit!==null||o.timeoutHandle!==-1),p===0?null:(B$(o,p,s),iO(o,be()),o.callbackNode!=null&&o.callbackNode===f?aO.bind(null,o):null)}function oO(o,s){if(ym())return null;B$(o,s,!0)}function OL(){LL(function(){(zn&6)!==0?ze(he,$L):rO()})}function Zy(){if(ol===0){var o=xc;o===0&&(o=nn,nn<<=1,(nn&261888)===0&&(nn=256)),ol=o}return ol}function lO(o){return o==null||typeof o=="symbol"||typeof o=="boolean"?null:typeof o=="function"?o:Ca(""+o)}function sO(o,s){var f=s.ownerDocument.createElement("input");return f.name=s.name,f.value=s.value,o.id&&f.setAttribute("form",o.id),s.parentNode.insertBefore(f,s),o=new FormData(o),f.parentNode.removeChild(f),o}function RL(o,s,f,p,C){if(s==="submit"&&f&&f.stateNode===C){var E=lO((C[Ct]||null).action),L=p.submitter;L&&(s=(s=L[Ct]||null)?lO(s.formAction):L.getAttribute("formAction"),s!==null&&(E=s,L=null));var W=new Mh("action","action",null,p,C);o.push({event:W,listeners:[{instance:null,listener:function(){if(p.defaultPrevented){if(ol!==0){var ne=L?sO(C,L):new FormData(C);yy(f,{pending:!0,data:ne,method:C.method,action:E},null,ne)}}else typeof E=="function"&&(W.preventDefault(),ne=L?sO(C,L):new FormData(C),yy(f,{pending:!0,data:ne,method:C.method,action:E},E,ne))},currentTarget:C}]})}}for(var Jy=0;Jy<zv.length;Jy++){var e0=zv[Jy],TL=e0.toLowerCase(),_L=e0[0].toUpperCase()+e0.slice(1);Ea(TL,"on"+_L)}Ea(kw,"onAnimationEnd"),Ea(Bw,"onAnimationIteration"),Ea(Hw,"onAnimationStart"),Ea("dblclick","onDoubleClick"),Ea("focusin","onFocus"),Ea("focusout","onBlur"),Ea(qD,"onTransitionRun"),Ea(KD,"onTransitionStart"),Ea(WD,"onTransitionCancel"),Ea(Fw,"onTransitionEnd"),nt("onMouseEnter",["mouseout","mouseover"]),nt("onMouseLeave",["mouseout","mouseover"]),nt("onPointerEnter",["pointerout","pointerover"]),nt("onPointerLeave",["pointerout","pointerover"]),qt("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),qt("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),qt("onBeforeInput",["compositionend","keypress","textInput","paste"]),qt("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),qt("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),qt("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Dd="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(" "),NL=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Dd));function cO(o,s){s=(s&4)!==0;for(var f=0;f<o.length;f++){var p=o[f],C=p.event;p=p.listeners;e:{var E=void 0;if(s)for(var L=p.length-1;0<=L;L--){var W=p[L],ne=W.instance,xe=W.currentTarget;if(W=W.listener,ne!==E&&C.isPropagationStopped())break e;E=W,C.currentTarget=xe;try{E(C)}catch(Pe){zh(Pe)}C.currentTarget=null,E=ne}else for(L=0;L<p.length;L++){if(W=p[L],ne=W.instance,xe=W.currentTarget,W=W.listener,ne!==E&&C.isPropagationStopped())break e;E=W,C.currentTarget=xe;try{E(C)}catch(Pe){zh(Pe)}C.currentTarget=null,E=ne}}}}function fn(o,s){var f=s[Dn];f===void 0&&(f=s[Dn]=new Set);var p=o+"__bubble";f.has(p)||(uO(s,o,2,!1),f.add(p))}function t0(o,s,f){var p=0;s&&(p|=4),uO(f,o,p,s)}var xm="_reactListening"+Math.random().toString(36).slice(2);function n0(o){if(!o[xm]){o[xm]=!0,ct.forEach(function(f){f!=="selectionchange"&&(NL.has(f)||t0(f,!1,o),t0(f,!0,o))});var s=o.nodeType===9?o:o.ownerDocument;s===null||s[xm]||(s[xm]=!0,t0("selectionchange",!1,s))}}function uO(o,s,f,p){switch(kO(s)){case 2:var C=ik;break;case 8:C=ak;break;default:C=v0}f=C.bind(null,s,f,o),C=void 0,!qn||s!=="touchstart"&&s!=="touchmove"&&s!=="wheel"||(C=!0),p?C!==void 0?o.addEventListener(s,f,{capture:!0,passive:C}):o.addEventListener(s,f,!0):C!==void 0?o.addEventListener(s,f,{passive:C}):o.addEventListener(s,f,!1)}function r0(o,s,f,p,C){var E=p;if((s&1)===0&&(s&2)===0&&p!==null)e:for(;;){if(p===null)return;var L=p.tag;if(L===3||L===4){var W=p.stateNode.containerInfo;if(W===C)break;if(L===4)for(L=p.return;L!==null;){var ne=L.tag;if((ne===3||ne===4)&&L.stateNode.containerInfo===C)return;L=L.return}for(;W!==null;){if(L=We(W),L===null)return;if(ne=L.tag,ne===5||ne===6||ne===26||ne===27){p=E=L;continue e}W=W.parentNode}}p=p.return}dc(function(){var xe=E,Pe=Zi(f),Ve=[];e:{var Ee=Vw.get(o);if(Ee!==void 0){var Re=Mh,xt=o;switch(o){case"keypress":if(so(f)===0)break e;case"keydown":case"keyup":Re=wD;break;case"focusin":xt="focus",Re=Ov;break;case"focusout":xt="blur",Re=Ov;break;case"beforeblur":case"afterblur":Re=Ov;break;case"click":if(f.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Re=yw;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Re=dD;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Re=OD;break;case kw:case Bw:case Hw:Re=mD;break;case Fw:Re=TD;break;case"scroll":case"scrollend":Re=cD;break;case"wheel":Re=ND;break;case"copy":case"cut":case"paste":Re=pD;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Re=Sw;break;case"toggle":case"beforetoggle":Re=MD}var Bt=(s&4)!==0,Gn=!Bt&&(o==="scroll"||o==="scrollend"),pe=Bt?Ee!==null?Ee+"Capture":null:Ee;Bt=[];for(var ue=xe,Se;ue!==null;){var ke=ue;if(Se=ke.stateNode,ke=ke.tag,ke!==5&&ke!==26&&ke!==27||Se===null||pe===null||(ke=gt(ue,pe),ke!=null&&Bt.push(Ld(ue,ke,Se))),Gn)break;ue=ue.return}0<Bt.length&&(Ee=new Re(Ee,xt,null,f,Pe),Ve.push({event:Ee,listeners:Bt}))}}if((s&7)===0){e:{if(Ee=o==="mouseover"||o==="pointerover",Re=o==="mouseout"||o==="pointerout",Ee&&f!==Ai&&(xt=f.relatedTarget||f.fromElement)&&(We(xt)||xt[Vt]))break e;if((Re||Ee)&&(Ee=Pe.window===Pe?Pe:(Ee=Pe.ownerDocument)?Ee.defaultView||Ee.parentWindow:window,Re?(xt=f.relatedTarget||f.toElement,Re=xe,xt=xt?We(xt):null,xt!==null&&(Gn=a(xt),Bt=xt.tag,xt!==Gn||Bt!==5&&Bt!==27&&Bt!==6)&&(xt=null)):(Re=null,xt=xe),Re!==xt)){if(Bt=yw,ke="onMouseLeave",pe="onMouseEnter",ue="mouse",(o==="pointerout"||o==="pointerover")&&(Bt=Sw,ke="onPointerLeave",pe="onPointerEnter",ue="pointer"),Gn=Re==null?Ee:_t(Re),Se=xt==null?Ee:_t(xt),Ee=new Bt(ke,ue+"leave",Re,f,Pe),Ee.target=Gn,Ee.relatedTarget=Se,ke=null,We(Pe)===xe&&(Bt=new Bt(pe,ue+"enter",xt,f,Pe),Bt.target=Se,Bt.relatedTarget=Gn,ke=Bt),Gn=ke,Re&&xt)t:{for(Bt=IL,pe=Re,ue=xt,Se=0,ke=pe;ke;ke=Bt(ke))Se++;ke=0;for(var At=ue;At;At=Bt(At))ke++;for(;0<Se-ke;)pe=Bt(pe),Se--;for(;0<ke-Se;)ue=Bt(ue),ke--;for(;Se--;){if(pe===ue||ue!==null&&pe===ue.alternate){Bt=pe;break t}pe=Bt(pe),ue=Bt(ue)}Bt=null}else Bt=null;Re!==null&&dO(Ve,Ee,Re,Bt,!1),xt!==null&&Gn!==null&&dO(Ve,Gn,xt,Bt,!0)}}e:{if(Ee=xe?_t(xe):window,Re=Ee.nodeName&&Ee.nodeName.toLowerCase(),Re==="select"||Re==="input"&&Ee.type==="file")var In=Tw;else if(Ow(Ee))if(_w)In=FD;else{In=BD;var Et=kD}else Re=Ee.nodeName,!Re||Re.toLowerCase()!=="input"||Ee.type!=="checkbox"&&Ee.type!=="radio"?xe&&lo(xe.elementType)&&(In=Tw):In=HD;if(In&&(In=In(o,xe))){Rw(Ve,In,f,Pe);break e}Et&&Et(o,Ee,xe),o==="focusout"&&xe&&Ee.type==="number"&&xe.memoizedProps.value!=null&&Hn(Ee,"number",Ee.value)}switch(Et=xe?_t(xe):window,o){case"focusin":(Ow(Et)||Et.contentEditable==="true")&&(hc=Et,Mv=xe,hd=null);break;case"focusout":hd=Mv=hc=null;break;case"mousedown":Pv=!0;break;case"contextmenu":case"mouseup":case"dragend":Pv=!1,Dw(Ve,f,Pe);break;case"selectionchange":if(UD)break;case"keydown":case"keyup":Dw(Ve,f,Pe)}var en;if(Tv)e:{switch(o){case"compositionstart":var vn="onCompositionStart";break e;case"compositionend":vn="onCompositionEnd";break e;case"compositionupdate":vn="onCompositionUpdate";break e}vn=void 0}else fc?Ew(o,f)&&(vn="onCompositionEnd"):o==="keydown"&&f.keyCode===229&&(vn="onCompositionStart");vn&&(xw&&f.locale!=="ko"&&(fc||vn!=="onCompositionStart"?vn==="onCompositionEnd"&&fc&&(en=od()):(An=Pe,Vo="value"in An?An.value:An.textContent,fc=!0)),Et=Cm(xe,vn),0<Et.length&&(vn=new bw(vn,o,null,f,Pe),Ve.push({event:vn,listeners:Et}),en?vn.data=en:(en=$w(f),en!==null&&(vn.data=en)))),(en=AD?zD(o,f):jD(o,f))&&(vn=Cm(xe,"onBeforeInput"),0<vn.length&&(Et=new bw("onBeforeInput","beforeinput",null,f,Pe),Ve.push({event:Et,listeners:vn}),Et.data=en)),RL(Ve,o,xe,f,Pe)}cO(Ve,s)})}function Ld(o,s,f){return{instance:o,listener:s,currentTarget:f}}function Cm(o,s){for(var f=s+"Capture",p=[];o!==null;){var C=o,E=C.stateNode;if(C=C.tag,C!==5&&C!==26&&C!==27||E===null||(C=gt(o,f),C!=null&&p.unshift(Ld(o,C,E)),C=gt(o,s),C!=null&&p.push(Ld(o,C,E))),o.tag===3)return p;o=o.return}return[]}function IL(o){if(o===null)return null;do o=o.return;while(o&&o.tag!==5&&o.tag!==27);return o||null}function dO(o,s,f,p,C){for(var E=s._reactName,L=[];f!==null&&f!==p;){var W=f,ne=W.alternate,xe=W.stateNode;if(W=W.tag,ne!==null&&ne===p)break;W!==5&&W!==26&&W!==27||xe===null||(ne=xe,C?(xe=gt(f,E),xe!=null&&L.unshift(Ld(f,xe,ne))):C||(xe=gt(f,E),xe!=null&&L.push(Ld(f,xe,ne)))),f=f.return}L.length!==0&&o.push({event:s,listeners:L})}var ML=/\r\n?/g,PL=/\u0000|\uFFFD/g;function fO(o){return(typeof o=="string"?o:""+o).replace(ML,`
|
|
347
|
-
`).replace(PL,"")}function hO(o,s){return s=fO(s),fO(o)===s}function Wn(o,s,f,p,C,E){switch(f){case"children":typeof p=="string"?s==="body"||s==="textarea"&&p===""||dr(o,p):(typeof p=="number"||typeof p=="bigint")&&s!=="body"&&dr(o,""+p);break;case"className":zr(o,"class",p);break;case"tabIndex":zr(o,"tabindex",p);break;case"dir":case"role":case"viewBox":case"width":case"height":zr(o,f,p);break;case"style":kr(o,p,E);break;case"data":if(s!=="object"){zr(o,"data",p);break}case"src":case"href":if(p===""&&(s!=="a"||f!=="href")){o.removeAttribute(f);break}if(p==null||typeof p=="function"||typeof p=="symbol"||typeof p=="boolean"){o.removeAttribute(f);break}p=Ca(""+p),o.setAttribute(f,p);break;case"action":case"formAction":if(typeof p=="function"){o.setAttribute(f,"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 E=="function"&&(f==="formAction"?(s!=="input"&&Wn(o,s,"name",C.name,C,null),Wn(o,s,"formEncType",C.formEncType,C,null),Wn(o,s,"formMethod",C.formMethod,C,null),Wn(o,s,"formTarget",C.formTarget,C,null)):(Wn(o,s,"encType",C.encType,C,null),Wn(o,s,"method",C.method,C,null),Wn(o,s,"target",C.target,C,null)));if(p==null||typeof p=="symbol"||typeof p=="boolean"){o.removeAttribute(f);break}p=Ca(""+p),o.setAttribute(f,p);break;case"onClick":p!=null&&(o.onclick=ci);break;case"onScroll":p!=null&&fn("scroll",o);break;case"onScrollEnd":p!=null&&fn("scrollend",o);break;case"dangerouslySetInnerHTML":if(p!=null){if(typeof p!="object"||!("__html"in p))throw Error(r(61));if(f=p.__html,f!=null){if(C.children!=null)throw Error(r(60));o.innerHTML=f}}break;case"multiple":o.multiple=p&&typeof p!="function"&&typeof p!="symbol";break;case"muted":o.muted=p&&typeof p!="function"&&typeof p!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(p==null||typeof p=="function"||typeof p=="boolean"||typeof p=="symbol"){o.removeAttribute("xlink:href");break}f=Ca(""+p),o.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",f);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":p!=null&&typeof p!="function"&&typeof p!="symbol"?o.setAttribute(f,""+p):o.removeAttribute(f);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":p&&typeof p!="function"&&typeof p!="symbol"?o.setAttribute(f,""):o.removeAttribute(f);break;case"capture":case"download":p===!0?o.setAttribute(f,""):p!==!1&&p!=null&&typeof p!="function"&&typeof p!="symbol"?o.setAttribute(f,p):o.removeAttribute(f);break;case"cols":case"rows":case"size":case"span":p!=null&&typeof p!="function"&&typeof p!="symbol"&&!isNaN(p)&&1<=p?o.setAttribute(f,p):o.removeAttribute(f);break;case"rowSpan":case"start":p==null||typeof p=="function"||typeof p=="symbol"||isNaN(p)?o.removeAttribute(f):o.setAttribute(f,p);break;case"popover":fn("beforetoggle",o),fn("toggle",o),Ar(o,"popover",p);break;case"xlinkActuate":Qn(o,"http://www.w3.org/1999/xlink","xlink:actuate",p);break;case"xlinkArcrole":Qn(o,"http://www.w3.org/1999/xlink","xlink:arcrole",p);break;case"xlinkRole":Qn(o,"http://www.w3.org/1999/xlink","xlink:role",p);break;case"xlinkShow":Qn(o,"http://www.w3.org/1999/xlink","xlink:show",p);break;case"xlinkTitle":Qn(o,"http://www.w3.org/1999/xlink","xlink:title",p);break;case"xlinkType":Qn(o,"http://www.w3.org/1999/xlink","xlink:type",p);break;case"xmlBase":Qn(o,"http://www.w3.org/XML/1998/namespace","xml:base",p);break;case"xmlLang":Qn(o,"http://www.w3.org/XML/1998/namespace","xml:lang",p);break;case"xmlSpace":Qn(o,"http://www.w3.org/XML/1998/namespace","xml:space",p);break;case"is":Ar(o,"is",p);break;case"innerText":case"textContent":break;default:(!(2<f.length)||f[0]!=="o"&&f[0]!=="O"||f[1]!=="n"&&f[1]!=="N")&&(f=ad.get(f)||f,Ar(o,f,p))}}function i0(o,s,f,p,C,E){switch(f){case"style":kr(o,p,E);break;case"dangerouslySetInnerHTML":if(p!=null){if(typeof p!="object"||!("__html"in p))throw Error(r(61));if(f=p.__html,f!=null){if(C.children!=null)throw Error(r(60));o.innerHTML=f}}break;case"children":typeof p=="string"?dr(o,p):(typeof p=="number"||typeof p=="bigint")&&dr(o,""+p);break;case"onScroll":p!=null&&fn("scroll",o);break;case"onScrollEnd":p!=null&&fn("scrollend",o);break;case"onClick":p!=null&&(o.onclick=ci);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!It.hasOwnProperty(f))e:{if(f[0]==="o"&&f[1]==="n"&&(C=f.endsWith("Capture"),s=f.slice(2,C?f.length-7:void 0),E=o[Ct]||null,E=E!=null?E[f]:null,typeof E=="function"&&o.removeEventListener(s,E,C),typeof p=="function")){typeof E!="function"&&E!==null&&(f in o?o[f]=null:o.hasAttribute(f)&&o.removeAttribute(f)),o.addEventListener(s,p,C);break e}f in o?o[f]=p:p===!0?o.setAttribute(f,""):Ar(o,f,p)}}}function Xr(o,s,f){switch(s){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":fn("error",o),fn("load",o);var p=!1,C=!1,E;for(E in f)if(f.hasOwnProperty(E)){var L=f[E];if(L!=null)switch(E){case"src":p=!0;break;case"srcSet":C=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,s));default:Wn(o,s,E,L,f,null)}}C&&Wn(o,s,"srcSet",f.srcSet,f,null),p&&Wn(o,s,"src",f.src,f,null);return;case"input":fn("invalid",o);var W=E=L=C=null,ne=null,xe=null;for(p in f)if(f.hasOwnProperty(p)){var Pe=f[p];if(Pe!=null)switch(p){case"name":C=Pe;break;case"type":L=Pe;break;case"checked":ne=Pe;break;case"defaultChecked":xe=Pe;break;case"value":E=Pe;break;case"defaultValue":W=Pe;break;case"children":case"dangerouslySetInnerHTML":if(Pe!=null)throw Error(r(137,s));break;default:Wn(o,s,p,Pe,f,null)}}Pn(o,E,W,ne,xe,L,C,!1);return;case"select":fn("invalid",o),p=L=E=null;for(C in f)if(f.hasOwnProperty(C)&&(W=f[C],W!=null))switch(C){case"value":E=W;break;case"defaultValue":L=W;break;case"multiple":p=W;default:Wn(o,s,C,W,f,null)}s=E,f=L,o.multiple=!!p,s!=null?fr(o,!!p,s,!1):f!=null&&fr(o,!!p,f,!0);return;case"textarea":fn("invalid",o),E=C=p=null;for(L in f)if(f.hasOwnProperty(L)&&(W=f[L],W!=null))switch(L){case"value":p=W;break;case"defaultValue":C=W;break;case"children":E=W;break;case"dangerouslySetInnerHTML":if(W!=null)throw Error(r(91));break;default:Wn(o,s,L,W,f,null)}Lr(o,p,C,E);return;case"option":for(ne in f)if(f.hasOwnProperty(ne)&&(p=f[ne],p!=null))switch(ne){case"selected":o.selected=p&&typeof p!="function"&&typeof p!="symbol";break;default:Wn(o,s,ne,p,f,null)}return;case"dialog":fn("beforetoggle",o),fn("toggle",o),fn("cancel",o),fn("close",o);break;case"iframe":case"object":fn("load",o);break;case"video":case"audio":for(p=0;p<Dd.length;p++)fn(Dd[p],o);break;case"image":fn("error",o),fn("load",o);break;case"details":fn("toggle",o);break;case"embed":case"source":case"link":fn("error",o),fn("load",o);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(xe in f)if(f.hasOwnProperty(xe)&&(p=f[xe],p!=null))switch(xe){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,s));default:Wn(o,s,xe,p,f,null)}return;default:if(lo(s)){for(Pe in f)f.hasOwnProperty(Pe)&&(p=f[Pe],p!==void 0&&i0(o,s,Pe,p,f,void 0));return}}for(W in f)f.hasOwnProperty(W)&&(p=f[W],p!=null&&Wn(o,s,W,p,f,null))}function AL(o,s,f,p){switch(s){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var C=null,E=null,L=null,W=null,ne=null,xe=null,Pe=null;for(Re in f){var Ve=f[Re];if(f.hasOwnProperty(Re)&&Ve!=null)switch(Re){case"checked":break;case"value":break;case"defaultValue":ne=Ve;default:p.hasOwnProperty(Re)||Wn(o,s,Re,null,p,Ve)}}for(var Ee in p){var Re=p[Ee];if(Ve=f[Ee],p.hasOwnProperty(Ee)&&(Re!=null||Ve!=null))switch(Ee){case"type":E=Re;break;case"name":C=Re;break;case"checked":xe=Re;break;case"defaultChecked":Pe=Re;break;case"value":L=Re;break;case"defaultValue":W=Re;break;case"children":case"dangerouslySetInnerHTML":if(Re!=null)throw Error(r(137,s));break;default:Re!==Ve&&Wn(o,s,Ee,Re,p,Ve)}}gn(o,L,W,ne,xe,Pe,E,C);return;case"select":Re=L=W=Ee=null;for(E in f)if(ne=f[E],f.hasOwnProperty(E)&&ne!=null)switch(E){case"value":break;case"multiple":Re=ne;default:p.hasOwnProperty(E)||Wn(o,s,E,null,p,ne)}for(C in p)if(E=p[C],ne=f[C],p.hasOwnProperty(C)&&(E!=null||ne!=null))switch(C){case"value":Ee=E;break;case"defaultValue":W=E;break;case"multiple":L=E;default:E!==ne&&Wn(o,s,C,E,p,ne)}s=W,f=L,p=Re,Ee!=null?fr(o,!!f,Ee,!1):!!p!=!!f&&(s!=null?fr(o,!!f,s,!0):fr(o,!!f,f?[]:"",!1));return;case"textarea":Re=Ee=null;for(W in f)if(C=f[W],f.hasOwnProperty(W)&&C!=null&&!p.hasOwnProperty(W))switch(W){case"value":break;case"children":break;default:Wn(o,s,W,null,p,C)}for(L in p)if(C=p[L],E=f[L],p.hasOwnProperty(L)&&(C!=null||E!=null))switch(L){case"value":Ee=C;break;case"defaultValue":Re=C;break;case"children":break;case"dangerouslySetInnerHTML":if(C!=null)throw Error(r(91));break;default:C!==E&&Wn(o,s,L,C,p,E)}$r(o,Ee,Re);return;case"option":for(var xt in f)if(Ee=f[xt],f.hasOwnProperty(xt)&&Ee!=null&&!p.hasOwnProperty(xt))switch(xt){case"selected":o.selected=!1;break;default:Wn(o,s,xt,null,p,Ee)}for(ne in p)if(Ee=p[ne],Re=f[ne],p.hasOwnProperty(ne)&&Ee!==Re&&(Ee!=null||Re!=null))switch(ne){case"selected":o.selected=Ee&&typeof Ee!="function"&&typeof Ee!="symbol";break;default:Wn(o,s,ne,Ee,p,Re)}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 Bt in f)Ee=f[Bt],f.hasOwnProperty(Bt)&&Ee!=null&&!p.hasOwnProperty(Bt)&&Wn(o,s,Bt,null,p,Ee);for(xe in p)if(Ee=p[xe],Re=f[xe],p.hasOwnProperty(xe)&&Ee!==Re&&(Ee!=null||Re!=null))switch(xe){case"children":case"dangerouslySetInnerHTML":if(Ee!=null)throw Error(r(137,s));break;default:Wn(o,s,xe,Ee,p,Re)}return;default:if(lo(s)){for(var Gn in f)Ee=f[Gn],f.hasOwnProperty(Gn)&&Ee!==void 0&&!p.hasOwnProperty(Gn)&&i0(o,s,Gn,void 0,p,Ee);for(Pe in p)Ee=p[Pe],Re=f[Pe],!p.hasOwnProperty(Pe)||Ee===Re||Ee===void 0&&Re===void 0||i0(o,s,Pe,Ee,p,Re);return}}for(var pe in f)Ee=f[pe],f.hasOwnProperty(pe)&&Ee!=null&&!p.hasOwnProperty(pe)&&Wn(o,s,pe,null,p,Ee);for(Ve in p)Ee=p[Ve],Re=f[Ve],!p.hasOwnProperty(Ve)||Ee===Re||Ee==null&&Re==null||Wn(o,s,Ve,Ee,p,Re)}function mO(o){switch(o){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function zL(){if(typeof performance.getEntriesByType=="function"){for(var o=0,s=0,f=performance.getEntriesByType("resource"),p=0;p<f.length;p++){var C=f[p],E=C.transferSize,L=C.initiatorType,W=C.duration;if(E&&W&&mO(L)){for(L=0,W=C.responseEnd,p+=1;p<f.length;p++){var ne=f[p],xe=ne.startTime;if(xe>W)break;var Pe=ne.transferSize,Ve=ne.initiatorType;Pe&&mO(Ve)&&(ne=ne.responseEnd,L+=Pe*(ne<W?1:(W-xe)/(ne-xe)))}if(--p,s+=8*(E+L)/(C.duration/1e3),o++,10<o)break}}if(0<o)return s/o/1e6}return navigator.connection&&(o=navigator.connection.downlink,typeof o=="number")?o:5}var a0=null,o0=null;function wm(o){return o.nodeType===9?o:o.ownerDocument}function gO(o){switch(o){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function pO(o,s){if(o===0)switch(s){case"svg":return 1;case"math":return 2;default:return 0}return o===1&&s==="foreignObject"?0:o}function l0(o,s){return o==="textarea"||o==="noscript"||typeof s.children=="string"||typeof s.children=="number"||typeof s.children=="bigint"||typeof s.dangerouslySetInnerHTML=="object"&&s.dangerouslySetInnerHTML!==null&&s.dangerouslySetInnerHTML.__html!=null}var s0=null;function jL(){var o=window.event;return o&&o.type==="popstate"?o===s0?!1:(s0=o,!0):(s0=null,!1)}var vO=typeof setTimeout=="function"?setTimeout:void 0,DL=typeof clearTimeout=="function"?clearTimeout:void 0,yO=typeof Promise=="function"?Promise:void 0,LL=typeof queueMicrotask=="function"?queueMicrotask:typeof yO<"u"?function(o){return yO.resolve(null).then(o).catch(kL)}:vO;function kL(o){setTimeout(function(){throw o})}function ll(o){return o==="head"}function bO(o,s){var f=s,p=0;do{var C=f.nextSibling;if(o.removeChild(f),C&&C.nodeType===8)if(f=C.data,f==="/$"||f==="/&"){if(p===0){o.removeChild(C),Bc(s);return}p--}else if(f==="$"||f==="$?"||f==="$~"||f==="$!"||f==="&")p++;else if(f==="html")kd(o.ownerDocument.documentElement);else if(f==="head"){f=o.ownerDocument.head,kd(f);for(var E=f.firstChild;E;){var L=E.nextSibling,W=E.nodeName;E[an]||W==="SCRIPT"||W==="STYLE"||W==="LINK"&&E.rel.toLowerCase()==="stylesheet"||f.removeChild(E),E=L}}else f==="body"&&kd(o.ownerDocument.body);f=C}while(f);Bc(s)}function SO(o,s){var f=o;o=0;do{var p=f.nextSibling;if(f.nodeType===1?s?(f._stashedDisplay=f.style.display,f.style.display="none"):(f.style.display=f._stashedDisplay||"",f.getAttribute("style")===""&&f.removeAttribute("style")):f.nodeType===3&&(s?(f._stashedText=f.nodeValue,f.nodeValue=""):f.nodeValue=f._stashedText||""),p&&p.nodeType===8)if(f=p.data,f==="/$"){if(o===0)break;o--}else f!=="$"&&f!=="$?"&&f!=="$~"&&f!=="$!"||o++;f=p}while(f)}function c0(o){var s=o.firstChild;for(s&&s.nodeType===10&&(s=s.nextSibling);s;){var f=s;switch(s=s.nextSibling,f.nodeName){case"HTML":case"HEAD":case"BODY":c0(f),Sn(f);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(f.rel.toLowerCase()==="stylesheet")continue}o.removeChild(f)}}function BL(o,s,f,p){for(;o.nodeType===1;){var C=f;if(o.nodeName.toLowerCase()!==s.toLowerCase()){if(!p&&(o.nodeName!=="INPUT"||o.type!=="hidden"))break}else if(p){if(!o[an])switch(s){case"meta":if(!o.hasAttribute("itemprop"))break;return o;case"link":if(E=o.getAttribute("rel"),E==="stylesheet"&&o.hasAttribute("data-precedence"))break;if(E!==C.rel||o.getAttribute("href")!==(C.href==null||C.href===""?null:C.href)||o.getAttribute("crossorigin")!==(C.crossOrigin==null?null:C.crossOrigin)||o.getAttribute("title")!==(C.title==null?null:C.title))break;return o;case"style":if(o.hasAttribute("data-precedence"))break;return o;case"script":if(E=o.getAttribute("src"),(E!==(C.src==null?null:C.src)||o.getAttribute("type")!==(C.type==null?null:C.type)||o.getAttribute("crossorigin")!==(C.crossOrigin==null?null:C.crossOrigin))&&E&&o.hasAttribute("async")&&!o.hasAttribute("itemprop"))break;return o;default:return o}}else if(s==="input"&&o.type==="hidden"){var E=C.name==null?null:""+C.name;if(C.type==="hidden"&&o.getAttribute("name")===E)return o}else return o;if(o=oa(o.nextSibling),o===null)break}return null}function HL(o,s,f){if(s==="")return null;for(;o.nodeType!==3;)if((o.nodeType!==1||o.nodeName!=="INPUT"||o.type!=="hidden")&&!f||(o=oa(o.nextSibling),o===null))return null;return o}function xO(o,s){for(;o.nodeType!==8;)if((o.nodeType!==1||o.nodeName!=="INPUT"||o.type!=="hidden")&&!s||(o=oa(o.nextSibling),o===null))return null;return o}function u0(o){return o.data==="$?"||o.data==="$~"}function d0(o){return o.data==="$!"||o.data==="$?"&&o.ownerDocument.readyState!=="loading"}function FL(o,s){var f=o.ownerDocument;if(o.data==="$~")o._reactRetry=s;else if(o.data!=="$?"||f.readyState!=="loading")s();else{var p=function(){s(),f.removeEventListener("DOMContentLoaded",p)};f.addEventListener("DOMContentLoaded",p),o._reactRetry=p}}function oa(o){for(;o!=null;o=o.nextSibling){var s=o.nodeType;if(s===1||s===3)break;if(s===8){if(s=o.data,s==="$"||s==="$!"||s==="$?"||s==="$~"||s==="&"||s==="F!"||s==="F")break;if(s==="/$"||s==="/&")return null}}return o}var f0=null;function CO(o){o=o.nextSibling;for(var s=0;o;){if(o.nodeType===8){var f=o.data;if(f==="/$"||f==="/&"){if(s===0)return oa(o.nextSibling);s--}else f!=="$"&&f!=="$!"&&f!=="$?"&&f!=="$~"&&f!=="&"||s++}o=o.nextSibling}return null}function wO(o){o=o.previousSibling;for(var s=0;o;){if(o.nodeType===8){var f=o.data;if(f==="$"||f==="$!"||f==="$?"||f==="$~"||f==="&"){if(s===0)return o;s--}else f!=="/$"&&f!=="/&"||s++}o=o.previousSibling}return null}function EO(o,s,f){switch(s=wm(f),o){case"html":if(o=s.documentElement,!o)throw Error(r(452));return o;case"head":if(o=s.head,!o)throw Error(r(453));return o;case"body":if(o=s.body,!o)throw Error(r(454));return o;default:throw Error(r(451))}}function kd(o){for(var s=o.attributes;s.length;)o.removeAttributeNode(s[0]);Sn(o)}var la=new Map,$O=new Set;function Em(o){return typeof o.getRootNode=="function"?o.getRootNode():o.nodeType===9?o:o.ownerDocument}var Eo=F.d;F.d={f:VL,r:UL,D:qL,C:KL,L:WL,m:GL,X:QL,S:XL,M:YL};function VL(){var o=Eo.f(),s=gm();return o||s}function UL(o){var s=at(o);s!==null&&s.tag===5&&s.type==="form"?FE(s):Eo.r(o)}var Dc=typeof document>"u"?null:document;function OO(o,s,f){var p=Dc;if(p&&typeof s=="string"&&s){var C=Wt(s);C='link[rel="'+o+'"][href="'+C+'"]',typeof f=="string"&&(C+='[crossorigin="'+f+'"]'),$O.has(C)||($O.add(C),o={rel:o,crossOrigin:f,href:s},p.querySelector(C)===null&&(s=p.createElement("link"),Xr(s,"link",o),rt(s),p.head.appendChild(s)))}}function qL(o){Eo.D(o),OO("dns-prefetch",o,null)}function KL(o,s){Eo.C(o,s),OO("preconnect",o,s)}function WL(o,s,f){Eo.L(o,s,f);var p=Dc;if(p&&o&&s){var C='link[rel="preload"][as="'+Wt(s)+'"]';s==="image"&&f&&f.imageSrcSet?(C+='[imagesrcset="'+Wt(f.imageSrcSet)+'"]',typeof f.imageSizes=="string"&&(C+='[imagesizes="'+Wt(f.imageSizes)+'"]')):C+='[href="'+Wt(o)+'"]';var E=C;switch(s){case"style":E=Lc(o);break;case"script":E=kc(o)}la.has(E)||(o=g({rel:"preload",href:s==="image"&&f&&f.imageSrcSet?void 0:o,as:s},f),la.set(E,o),p.querySelector(C)!==null||s==="style"&&p.querySelector(Bd(E))||s==="script"&&p.querySelector(Hd(E))||(s=p.createElement("link"),Xr(s,"link",o),rt(s),p.head.appendChild(s)))}}function GL(o,s){Eo.m(o,s);var f=Dc;if(f&&o){var p=s&&typeof s.as=="string"?s.as:"script",C='link[rel="modulepreload"][as="'+Wt(p)+'"][href="'+Wt(o)+'"]',E=C;switch(p){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":E=kc(o)}if(!la.has(E)&&(o=g({rel:"modulepreload",href:o},s),la.set(E,o),f.querySelector(C)===null)){switch(p){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(f.querySelector(Hd(E)))return}p=f.createElement("link"),Xr(p,"link",o),rt(p),f.head.appendChild(p)}}}function XL(o,s,f){Eo.S(o,s,f);var p=Dc;if(p&&o){var C=Dt(p).hoistableStyles,E=Lc(o);s=s||"default";var L=C.get(E);if(!L){var W={loading:0,preload:null};if(L=p.querySelector(Bd(E)))W.loading=5;else{o=g({rel:"stylesheet",href:o,"data-precedence":s},f),(f=la.get(E))&&h0(o,f);var ne=L=p.createElement("link");rt(ne),Xr(ne,"link",o),ne._p=new Promise(function(xe,Pe){ne.onload=xe,ne.onerror=Pe}),ne.addEventListener("load",function(){W.loading|=1}),ne.addEventListener("error",function(){W.loading|=2}),W.loading|=4,$m(L,s,p)}L={type:"stylesheet",instance:L,count:1,state:W},C.set(E,L)}}}function QL(o,s){Eo.X(o,s);var f=Dc;if(f&&o){var p=Dt(f).hoistableScripts,C=kc(o),E=p.get(C);E||(E=f.querySelector(Hd(C)),E||(o=g({src:o,async:!0},s),(s=la.get(C))&&m0(o,s),E=f.createElement("script"),rt(E),Xr(E,"link",o),f.head.appendChild(E)),E={type:"script",instance:E,count:1,state:null},p.set(C,E))}}function YL(o,s){Eo.M(o,s);var f=Dc;if(f&&o){var p=Dt(f).hoistableScripts,C=kc(o),E=p.get(C);E||(E=f.querySelector(Hd(C)),E||(o=g({src:o,async:!0,type:"module"},s),(s=la.get(C))&&m0(o,s),E=f.createElement("script"),rt(E),Xr(E,"link",o),f.head.appendChild(E)),E={type:"script",instance:E,count:1,state:null},p.set(C,E))}}function RO(o,s,f,p){var C=(C=Y.current)?Em(C):null;if(!C)throw Error(r(446));switch(o){case"meta":case"title":return null;case"style":return typeof f.precedence=="string"&&typeof f.href=="string"?(s=Lc(f.href),f=Dt(C).hoistableStyles,p=f.get(s),p||(p={type:"style",instance:null,count:0,state:null},f.set(s,p)),p):{type:"void",instance:null,count:0,state:null};case"link":if(f.rel==="stylesheet"&&typeof f.href=="string"&&typeof f.precedence=="string"){o=Lc(f.href);var E=Dt(C).hoistableStyles,L=E.get(o);if(L||(C=C.ownerDocument||C,L={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},E.set(o,L),(E=C.querySelector(Bd(o)))&&!E._p&&(L.instance=E,L.state.loading=5),la.has(o)||(f={rel:"preload",as:"style",href:f.href,crossOrigin:f.crossOrigin,integrity:f.integrity,media:f.media,hrefLang:f.hrefLang,referrerPolicy:f.referrerPolicy},la.set(o,f),E||ZL(C,o,f,L.state))),s&&p===null)throw Error(r(528,""));return L}if(s&&p!==null)throw Error(r(529,""));return null;case"script":return s=f.async,f=f.src,typeof f=="string"&&s&&typeof s!="function"&&typeof s!="symbol"?(s=kc(f),f=Dt(C).hoistableScripts,p=f.get(s),p||(p={type:"script",instance:null,count:0,state:null},f.set(s,p)),p):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,o))}}function Lc(o){return'href="'+Wt(o)+'"'}function Bd(o){return'link[rel="stylesheet"]['+o+"]"}function TO(o){return g({},o,{"data-precedence":o.precedence,precedence:null})}function ZL(o,s,f,p){o.querySelector('link[rel="preload"][as="style"]['+s+"]")?p.loading=1:(s=o.createElement("link"),p.preload=s,s.addEventListener("load",function(){return p.loading|=1}),s.addEventListener("error",function(){return p.loading|=2}),Xr(s,"link",f),rt(s),o.head.appendChild(s))}function kc(o){return'[src="'+Wt(o)+'"]'}function Hd(o){return"script[async]"+o}function _O(o,s,f){if(s.count++,s.instance===null)switch(s.type){case"style":var p=o.querySelector('style[data-href~="'+Wt(f.href)+'"]');if(p)return s.instance=p,rt(p),p;var C=g({},f,{"data-href":f.href,"data-precedence":f.precedence,href:null,precedence:null});return p=(o.ownerDocument||o).createElement("style"),rt(p),Xr(p,"style",C),$m(p,f.precedence,o),s.instance=p;case"stylesheet":C=Lc(f.href);var E=o.querySelector(Bd(C));if(E)return s.state.loading|=4,s.instance=E,rt(E),E;p=TO(f),(C=la.get(C))&&h0(p,C),E=(o.ownerDocument||o).createElement("link"),rt(E);var L=E;return L._p=new Promise(function(W,ne){L.onload=W,L.onerror=ne}),Xr(E,"link",p),s.state.loading|=4,$m(E,f.precedence,o),s.instance=E;case"script":return E=kc(f.src),(C=o.querySelector(Hd(E)))?(s.instance=C,rt(C),C):(p=f,(C=la.get(E))&&(p=g({},f),m0(p,C)),o=o.ownerDocument||o,C=o.createElement("script"),rt(C),Xr(C,"link",p),o.head.appendChild(C),s.instance=C);case"void":return null;default:throw Error(r(443,s.type))}else s.type==="stylesheet"&&(s.state.loading&4)===0&&(p=s.instance,s.state.loading|=4,$m(p,f.precedence,o));return s.instance}function $m(o,s,f){for(var p=f.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),C=p.length?p[p.length-1]:null,E=C,L=0;L<p.length;L++){var W=p[L];if(W.dataset.precedence===s)E=W;else if(E!==C)break}E?E.parentNode.insertBefore(o,E.nextSibling):(s=f.nodeType===9?f.head:f,s.insertBefore(o,s.firstChild))}function h0(o,s){o.crossOrigin==null&&(o.crossOrigin=s.crossOrigin),o.referrerPolicy==null&&(o.referrerPolicy=s.referrerPolicy),o.title==null&&(o.title=s.title)}function m0(o,s){o.crossOrigin==null&&(o.crossOrigin=s.crossOrigin),o.referrerPolicy==null&&(o.referrerPolicy=s.referrerPolicy),o.integrity==null&&(o.integrity=s.integrity)}var Om=null;function NO(o,s,f){if(Om===null){var p=new Map,C=Om=new Map;C.set(f,p)}else C=Om,p=C.get(f),p||(p=new Map,C.set(f,p));if(p.has(o))return p;for(p.set(o,null),f=f.getElementsByTagName(o),C=0;C<f.length;C++){var E=f[C];if(!(E[an]||E[Ot]||o==="link"&&E.getAttribute("rel")==="stylesheet")&&E.namespaceURI!=="http://www.w3.org/2000/svg"){var L=E.getAttribute(s)||"";L=o+L;var W=p.get(L);W?W.push(E):p.set(L,[E])}}return p}function IO(o,s,f){o=o.ownerDocument||o,o.head.insertBefore(f,s==="title"?o.querySelector("head > title"):null)}function JL(o,s,f){if(f===1||s.itemProp!=null)return!1;switch(o){case"meta":case"title":return!0;case"style":if(typeof s.precedence!="string"||typeof s.href!="string"||s.href==="")break;return!0;case"link":if(typeof s.rel!="string"||typeof s.href!="string"||s.href===""||s.onLoad||s.onError)break;switch(s.rel){case"stylesheet":return o=s.disabled,typeof s.precedence=="string"&&o==null;default:return!0}case"script":if(s.async&&typeof s.async!="function"&&typeof s.async!="symbol"&&!s.onLoad&&!s.onError&&s.src&&typeof s.src=="string")return!0}return!1}function MO(o){return!(o.type==="stylesheet"&&(o.state.loading&3)===0)}function ek(o,s,f,p){if(f.type==="stylesheet"&&(typeof p.media!="string"||matchMedia(p.media).matches!==!1)&&(f.state.loading&4)===0){if(f.instance===null){var C=Lc(p.href),E=s.querySelector(Bd(C));if(E){s=E._p,s!==null&&typeof s=="object"&&typeof s.then=="function"&&(o.count++,o=Rm.bind(o),s.then(o,o)),f.state.loading|=4,f.instance=E,rt(E);return}E=s.ownerDocument||s,p=TO(p),(C=la.get(C))&&h0(p,C),E=E.createElement("link"),rt(E);var L=E;L._p=new Promise(function(W,ne){L.onload=W,L.onerror=ne}),Xr(E,"link",p),f.instance=E}o.stylesheets===null&&(o.stylesheets=new Map),o.stylesheets.set(f,s),(s=f.state.preload)&&(f.state.loading&3)===0&&(o.count++,f=Rm.bind(o),s.addEventListener("load",f),s.addEventListener("error",f))}}var g0=0;function tk(o,s){return o.stylesheets&&o.count===0&&_m(o,o.stylesheets),0<o.count||0<o.imgCount?function(f){var p=setTimeout(function(){if(o.stylesheets&&_m(o,o.stylesheets),o.unsuspend){var E=o.unsuspend;o.unsuspend=null,E()}},6e4+s);0<o.imgBytes&&g0===0&&(g0=62500*zL());var C=setTimeout(function(){if(o.waitingForImages=!1,o.count===0&&(o.stylesheets&&_m(o,o.stylesheets),o.unsuspend)){var E=o.unsuspend;o.unsuspend=null,E()}},(o.imgBytes>g0?50:800)+s);return o.unsuspend=f,function(){o.unsuspend=null,clearTimeout(p),clearTimeout(C)}}:null}function Rm(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)_m(this,this.stylesheets);else if(this.unsuspend){var o=this.unsuspend;this.unsuspend=null,o()}}}var Tm=null;function _m(o,s){o.stylesheets=null,o.unsuspend!==null&&(o.count++,Tm=new Map,s.forEach(nk,o),Tm=null,Rm.call(o))}function nk(o,s){if(!(s.state.loading&4)){var f=Tm.get(o);if(f)var p=f.get(null);else{f=new Map,Tm.set(o,f);for(var C=o.querySelectorAll("link[data-precedence],style[data-precedence]"),E=0;E<C.length;E++){var L=C[E];(L.nodeName==="LINK"||L.getAttribute("media")!=="not all")&&(f.set(L.dataset.precedence,L),p=L)}p&&f.set(null,p)}C=s.instance,L=C.getAttribute("data-precedence"),E=f.get(L)||p,E===p&&f.set(null,C),f.set(L,C),this.count++,p=Rm.bind(this),C.addEventListener("load",p),C.addEventListener("error",p),E?E.parentNode.insertBefore(C,E.nextSibling):(o=o.nodeType===9?o.head:o,o.insertBefore(C,o.firstChild)),s.state.loading|=4}}var Fd={$$typeof:O,Provider:null,Consumer:null,_currentValue:q,_currentValue2:q,_threadCount:0};function rk(o,s,f,p,C,E,L,W,ne){this.tag=1,this.containerInfo=o,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Jt(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Jt(0),this.hiddenUpdates=Jt(null),this.identifierPrefix=p,this.onUncaughtError=C,this.onCaughtError=E,this.onRecoverableError=L,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=ne,this.incompleteTransitions=new Map}function PO(o,s,f,p,C,E,L,W,ne,xe,Pe,Ve){return o=new rk(o,s,f,L,ne,xe,Pe,Ve,W),s=1,E===!0&&(s|=24),E=ji(3,null,null,s),o.current=E,E.stateNode=o,s=Gv(),s.refCount++,o.pooledCache=s,s.refCount++,E.memoizedState={element:p,isDehydrated:f,cache:s},Zv(E),o}function AO(o){return o?(o=pc,o):pc}function zO(o,s,f,p,C,E){C=AO(C),p.context===null?p.context=C:p.pendingContext=C,p=Qo(s),p.payload={element:f},E=E===void 0?null:E,E!==null&&(p.callback=E),f=Yo(o,p,s),f!==null&&($i(f,o,s),Sd(f,o,s))}function jO(o,s){if(o=o.memoizedState,o!==null&&o.dehydrated!==null){var f=o.retryLane;o.retryLane=f!==0&&f<s?f:s}}function p0(o,s){jO(o,s),(o=o.alternate)&&jO(o,s)}function DO(o){if(o.tag===13||o.tag===31){var s=es(o,67108864);s!==null&&$i(s,o,67108864),p0(o,67108864)}}function LO(o){if(o.tag===13||o.tag===31){var s=Hi();s=He(s);var f=es(o,s);f!==null&&$i(f,o,s),p0(o,s)}}var Nm=!0;function ik(o,s,f,p){var C=z.T;z.T=null;var E=F.p;try{F.p=2,v0(o,s,f,p)}finally{F.p=E,z.T=C}}function ak(o,s,f,p){var C=z.T;z.T=null;var E=F.p;try{F.p=8,v0(o,s,f,p)}finally{F.p=E,z.T=C}}function v0(o,s,f,p){if(Nm){var C=y0(p);if(C===null)r0(o,s,p,Im,f),BO(o,p);else if(lk(C,o,s,f,p))p.stopPropagation();else if(BO(o,p),s&4&&-1<ok.indexOf(o)){for(;C!==null;){var E=at(C);if(E!==null)switch(E.tag){case 3:if(E=E.stateNode,E.current.memoizedState.isDehydrated){var L=$n(E.pendingLanes);if(L!==0){var W=E;for(W.pendingLanes|=2,W.entangledLanes|=2;L;){var ne=1<<31-_e(L);W.entanglements[1]|=ne,L&=~ne}Ua(E),(zn&6)===0&&(hm=be()+500,jd(0))}}break;case 31:case 13:W=es(E,2),W!==null&&$i(W,E,2),gm(),p0(E,2)}if(E=y0(p),E===null&&r0(o,s,p,Im,f),E===C)break;C=E}C!==null&&p.stopPropagation()}else r0(o,s,p,null,f)}}function y0(o){return o=Zi(o),b0(o)}var Im=null;function b0(o){if(Im=null,o=We(o),o!==null){var s=a(o);if(s===null)o=null;else{var f=s.tag;if(f===13){if(o=l(s),o!==null)return o;o=null}else if(f===31){if(o=c(s),o!==null)return o;o=null}else if(f===3){if(s.stateNode.current.memoizedState.isDehydrated)return s.tag===3?s.stateNode.containerInfo:null;o=null}else s!==o&&(o=null)}}return Im=o,null}function kO(o){switch(o){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Ye()){case he:return 2;case $e:return 8;case Me:case Ae:return 32;case Xe:return 268435456;default:return 32}default:return 32}}var S0=!1,sl=null,cl=null,ul=null,Vd=new Map,Ud=new Map,dl=[],ok="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 BO(o,s){switch(o){case"focusin":case"focusout":sl=null;break;case"dragenter":case"dragleave":cl=null;break;case"mouseover":case"mouseout":ul=null;break;case"pointerover":case"pointerout":Vd.delete(s.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ud.delete(s.pointerId)}}function qd(o,s,f,p,C,E){return o===null||o.nativeEvent!==E?(o={blockedOn:s,domEventName:f,eventSystemFlags:p,nativeEvent:E,targetContainers:[C]},s!==null&&(s=at(s),s!==null&&DO(s)),o):(o.eventSystemFlags|=p,s=o.targetContainers,C!==null&&s.indexOf(C)===-1&&s.push(C),o)}function lk(o,s,f,p,C){switch(s){case"focusin":return sl=qd(sl,o,s,f,p,C),!0;case"dragenter":return cl=qd(cl,o,s,f,p,C),!0;case"mouseover":return ul=qd(ul,o,s,f,p,C),!0;case"pointerover":var E=C.pointerId;return Vd.set(E,qd(Vd.get(E)||null,o,s,f,p,C)),!0;case"gotpointercapture":return E=C.pointerId,Ud.set(E,qd(Ud.get(E)||null,o,s,f,p,C)),!0}return!1}function HO(o){var s=We(o.target);if(s!==null){var f=a(s);if(f!==null){if(s=f.tag,s===13){if(s=l(f),s!==null){o.blockedOn=s,dt(o.priority,function(){LO(f)});return}}else if(s===31){if(s=c(f),s!==null){o.blockedOn=s,dt(o.priority,function(){LO(f)});return}}else if(s===3&&f.stateNode.current.memoizedState.isDehydrated){o.blockedOn=f.tag===3?f.stateNode.containerInfo:null;return}}}o.blockedOn=null}function Mm(o){if(o.blockedOn!==null)return!1;for(var s=o.targetContainers;0<s.length;){var f=y0(o.nativeEvent);if(f===null){f=o.nativeEvent;var p=new f.constructor(f.type,f);Ai=p,f.target.dispatchEvent(p),Ai=null}else return s=at(f),s!==null&&DO(s),o.blockedOn=f,!1;s.shift()}return!0}function FO(o,s,f){Mm(o)&&f.delete(s)}function sk(){S0=!1,sl!==null&&Mm(sl)&&(sl=null),cl!==null&&Mm(cl)&&(cl=null),ul!==null&&Mm(ul)&&(ul=null),Vd.forEach(FO),Ud.forEach(FO)}function Pm(o,s){o.blockedOn===s&&(o.blockedOn=null,S0||(S0=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,sk)))}var Am=null;function VO(o){Am!==o&&(Am=o,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){Am===o&&(Am=null);for(var s=0;s<o.length;s+=3){var f=o[s],p=o[s+1],C=o[s+2];if(typeof p!="function"){if(b0(p||f)===null)continue;break}var E=at(f);E!==null&&(o.splice(s,3),s-=3,yy(E,{pending:!0,data:C,method:f.method,action:p},p,C))}}))}function Bc(o){function s(ne){return Pm(ne,o)}sl!==null&&Pm(sl,o),cl!==null&&Pm(cl,o),ul!==null&&Pm(ul,o),Vd.forEach(s),Ud.forEach(s);for(var f=0;f<dl.length;f++){var p=dl[f];p.blockedOn===o&&(p.blockedOn=null)}for(;0<dl.length&&(f=dl[0],f.blockedOn===null);)HO(f),f.blockedOn===null&&dl.shift();if(f=(o.ownerDocument||o).$$reactFormReplay,f!=null)for(p=0;p<f.length;p+=3){var C=f[p],E=f[p+1],L=C[Ct]||null;if(typeof E=="function")L||VO(f);else if(L){var W=null;if(E&&E.hasAttribute("formAction")){if(C=E,L=E[Ct]||null)W=L.formAction;else if(b0(C)!==null)continue}else W=L.action;typeof W=="function"?f[p+1]=W:(f.splice(p,3),p-=3),VO(f)}}}function UO(){function o(E){E.canIntercept&&E.info==="react-transition"&&E.intercept({handler:function(){return new Promise(function(L){return C=L})},focusReset:"manual",scroll:"manual"})}function s(){C!==null&&(C(),C=null),p||setTimeout(f,20)}function f(){if(!p&&!navigation.transition){var E=navigation.currentEntry;E&&E.url!=null&&navigation.navigate(E.url,{state:E.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var p=!1,C=null;return navigation.addEventListener("navigate",o),navigation.addEventListener("navigatesuccess",s),navigation.addEventListener("navigateerror",s),setTimeout(f,100),function(){p=!0,navigation.removeEventListener("navigate",o),navigation.removeEventListener("navigatesuccess",s),navigation.removeEventListener("navigateerror",s),C!==null&&(C(),C=null)}}}function x0(o){this._internalRoot=o}zm.prototype.render=x0.prototype.render=function(o){var s=this._internalRoot;if(s===null)throw Error(r(409));var f=s.current,p=Hi();zO(f,p,o,s,null,null)},zm.prototype.unmount=x0.prototype.unmount=function(){var o=this._internalRoot;if(o!==null){this._internalRoot=null;var s=o.containerInfo;zO(o.current,2,null,o,null,null),gm(),s[Vt]=null}};function zm(o){this._internalRoot=o}zm.prototype.unstable_scheduleHydration=function(o){if(o){var s=ut();o={blockedOn:null,target:o,priority:s};for(var f=0;f<dl.length&&s!==0&&s<dl[f].priority;f++);dl.splice(f,0,o),f===0&&HO(o)}};var qO=t.version;if(qO!=="19.2.4")throw Error(r(527,qO,"19.2.4"));F.findDOMNode=function(o){var s=o._reactInternals;if(s===void 0)throw typeof o.render=="function"?Error(r(188)):(o=Object.keys(o).join(","),Error(r(268,o)));return o=d(s),o=o!==null?m(o):null,o=o===null?null:o.stateNode,o};var ck={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:z,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var jm=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!jm.isDisabled&&jm.supportsFiber)try{Ge=jm.inject(ck),Le=jm}catch{}}return Jd.createRoot=function(o,s){if(!i(o))throw Error(r(299));var f=!1,p="",C=ZE,E=JE,L=e$;return s!=null&&(s.unstable_strictMode===!0&&(f=!0),s.identifierPrefix!==void 0&&(p=s.identifierPrefix),s.onUncaughtError!==void 0&&(C=s.onUncaughtError),s.onCaughtError!==void 0&&(E=s.onCaughtError),s.onRecoverableError!==void 0&&(L=s.onRecoverableError)),s=PO(o,1,!1,null,null,f,p,null,C,E,L,UO),o[Vt]=s.current,n0(o),new x0(s)},Jd.hydrateRoot=function(o,s,f){if(!i(o))throw Error(r(299));var p=!1,C="",E=ZE,L=JE,W=e$,ne=null;return f!=null&&(f.unstable_strictMode===!0&&(p=!0),f.identifierPrefix!==void 0&&(C=f.identifierPrefix),f.onUncaughtError!==void 0&&(E=f.onUncaughtError),f.onCaughtError!==void 0&&(L=f.onCaughtError),f.onRecoverableError!==void 0&&(W=f.onRecoverableError),f.formState!==void 0&&(ne=f.formState)),s=PO(o,1,!0,s,f??null,p,C,ne,E,L,W,UO),s.context=AO(null),f=s.current,p=Hi(),p=He(p),C=Qo(p),C.callback=null,Yo(f,C,p),f=p,s.current.lanes=f,st(s,f),Ua(s),o[Vt]=s.current,n0(o),new zm(s)},Jd.version="19.2.4",Jd}var p_;function WZ(){if(p_)return Eb.exports;p_=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Eb.exports=KZ(),Eb.exports}var Mz=WZ();const GZ=ec(Mz);BC(function(e,t){t._reactRoot||(t._reactRoot=Mz.createRoot(t));var n=t._reactRoot;return n.render(e),function(){return new Promise(function(r){setTimeout(function(){n.unmount(),r()},0)})}});var ac=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Os,El,Su,mI,XZ=(mI=class extends ac{constructor(){super();yt(this,Os);yt(this,El);yt(this,Su);it(this,Su,t=>{if(typeof window<"u"&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){ee(this,El)||this.setEventListener(ee(this,Su))}onUnsubscribe(){var t;this.hasListeners()||((t=ee(this,El))==null||t.call(this),it(this,El,void 0))}setEventListener(t){var n;it(this,Su,t),(n=ee(this,El))==null||n.call(this),it(this,El,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){ee(this,Os)!==t&&(it(this,Os,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof ee(this,Os)=="boolean"?ee(this,Os):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},Os=new WeakMap,El=new WeakMap,Su=new WeakMap,mI),H1=new XZ,QZ={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},$l,SC,gI,YZ=(gI=class{constructor(){yt(this,$l,QZ);yt(this,SC,!1)}setTimeoutProvider(e){it(this,$l,e)}setTimeout(e,t){return ee(this,$l).setTimeout(e,t)}clearTimeout(e){ee(this,$l).clearTimeout(e)}setInterval(e,t){return ee(this,$l).setInterval(e,t)}clearInterval(e){ee(this,$l).clearInterval(e)}},$l=new WeakMap,SC=new WeakMap,gI),Es=new YZ;function ZZ(e){setTimeout(e,0)}var JZ=typeof window>"u"||"Deno"in globalThis;function ri(){}function eJ(e,t){return typeof e=="function"?e(t):e}function xx(e){return typeof e=="number"&&e>=0&&e!==1/0}function Pz(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Ll(e,t){return typeof e=="function"?e(t):e}function ga(e,t){return typeof e=="function"?e(t):e}function v_(e,t){const{type:n="all",exact:r,fetchStatus:i,predicate:a,queryKey:l,stale:c}=e;if(l){if(r){if(t.queryHash!==F1(l,t.options))return!1}else if(!Kf(t.queryKey,l))return!1}if(n!=="all"){const u=t.isActive();if(n==="active"&&!u||n==="inactive"&&u)return!1}return!(typeof c=="boolean"&&t.isStale()!==c||i&&i!==t.state.fetchStatus||a&&!a(t))}function y_(e,t){const{exact:n,status:r,predicate:i,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(n){if(qs(t.options.mutationKey)!==qs(a))return!1}else if(!Kf(t.options.mutationKey,a))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function F1(e,t){return((t==null?void 0:t.queryKeyHashFn)||qs)(e)}function qs(e){return JSON.stringify(e,(t,n)=>Cx(n)?Object.keys(n).sort().reduce((r,i)=>(r[i]=n[i],r),{}):n)}function Kf(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>Kf(e[n],t[n])):!1}var tJ=Object.prototype.hasOwnProperty;function V1(e,t,n=0){if(e===t)return e;if(n>500)return t;const r=b_(e)&&b_(t);if(!r&&!(Cx(e)&&Cx(t)))return t;const a=(r?e:Object.keys(e)).length,l=r?t:Object.keys(t),c=l.length,u=r?new Array(c):{};let d=0;for(let m=0;m<c;m++){const g=r?m:l[m],v=e[g],y=t[g];if(v===y){u[g]=v,(r?m<a:tJ.call(e,g))&&d++;continue}if(v===null||y===null||typeof v!="object"||typeof y!="object"){u[g]=y;continue}const b=V1(v,y,n+1);u[g]=b,b===v&&d++}return a===c&&d===a?e:u}function Wf(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function b_(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Cx(e){if(!S_(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!S_(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function S_(e){return Object.prototype.toString.call(e)==="[object Object]"}function nJ(e){return new Promise(t=>{Es.setTimeout(t,e)})}function wx(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?V1(e,t):t}function rJ(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function iJ(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var Gf=Symbol();function Az(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===Gf?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function U1(e,t){return typeof e=="function"?e(...t):!!e}function aJ(e,t,n){let r=!1,i;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(i??(i=t()),r||(r=!0,i.aborted?n():i.addEventListener("abort",n,{once:!0})),i)}),e}var Xf=(()=>{let e=()=>JZ;return{isServer(){return e()},setIsServer(t){e=t}}})();function Ex(){let e,t;const n=new Promise((i,a)=>{e=i,t=a});n.status="pending",n.catch(()=>{});function r(i){Object.assign(n,i),delete n.resolve,delete n.reject}return n.resolve=i=>{r({status:"fulfilled",value:i}),e(i)},n.reject=i=>{r({status:"rejected",reason:i}),t(i)},n}var oJ=ZZ;function lJ(){let e=[],t=0,n=c=>{c()},r=c=>{c()},i=oJ;const a=c=>{t?e.push(c):i(()=>{n(c)})},l=()=>{const c=e;e=[],c.length&&i(()=>{r(()=>{c.forEach(u=>{n(u)})})})};return{batch:c=>{let u;t++;try{u=c()}finally{t--,t||l()}return u},batchCalls:c=>(...u)=>{a(()=>{c(...u)})},schedule:a,setNotifyFunction:c=>{n=c},setBatchNotifyFunction:c=>{r=c},setScheduler:c=>{i=c}}}var pr=lJ(),xu,Ol,Cu,pI,sJ=(pI=class extends ac{constructor(){super();yt(this,xu,!0);yt(this,Ol);yt(this,Cu);it(this,Cu,t=>{if(typeof window<"u"&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){ee(this,Ol)||this.setEventListener(ee(this,Cu))}onUnsubscribe(){var t;this.hasListeners()||((t=ee(this,Ol))==null||t.call(this),it(this,Ol,void 0))}setEventListener(t){var n;it(this,Cu,t),(n=ee(this,Ol))==null||n.call(this),it(this,Ol,t(this.setOnline.bind(this)))}setOnline(t){ee(this,xu)!==t&&(it(this,xu,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return ee(this,xu)}},xu=new WeakMap,Ol=new WeakMap,Cu=new WeakMap,pI),np=new sJ;function cJ(e){return Math.min(1e3*2**e,3e4)}function zz(e){return(e??"online")==="online"?np.isOnline():!0}var $x=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function jz(e){let t=!1,n=0,r;const i=Ex(),a=()=>i.status!=="pending",l=x=>{var S;if(!a()){const w=new $x(x);v(w),(S=e.onCancel)==null||S.call(e,w)}},c=()=>{t=!0},u=()=>{t=!1},d=()=>H1.isFocused()&&(e.networkMode==="always"||np.isOnline())&&e.canRun(),m=()=>zz(e.networkMode)&&e.canRun(),g=x=>{a()||(r==null||r(),i.resolve(x))},v=x=>{a()||(r==null||r(),i.reject(x))},y=()=>new Promise(x=>{var S;r=w=>{(a()||d())&&x(w)},(S=e.onPause)==null||S.call(e)}).then(()=>{var x;r=void 0,a()||(x=e.onContinue)==null||x.call(e)}),b=()=>{if(a())return;let x;const S=n===0?e.initialPromise:void 0;try{x=S??e.fn()}catch(w){x=Promise.reject(w)}Promise.resolve(x).then(g).catch(w=>{var R;if(a())return;const $=e.retry??(Xf.isServer()?0:3),O=e.retryDelay??cJ,T=typeof O=="function"?O(n,w):O,_=$===!0||typeof $=="number"&&n<$||typeof $=="function"&&$(n,w);if(t||!_){v(w);return}n++,(R=e.onFail)==null||R.call(e,n,w),nJ(T).then(()=>d()?void 0:y()).then(()=>{t?v(w):b()})})};return{promise:i,status:()=>i.status,cancel:l,continue:()=>(r==null||r(),i),cancelRetry:c,continueRetry:u,canStart:m,start:()=>(m()?b():y().then(b),i)}}var Rs,vI,Dz=(vI=class{constructor(){yt(this,Rs)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),xx(this.gcTime)&&it(this,Rs,Es.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Xf.isServer()?1/0:300*1e3))}clearGcTimeout(){ee(this,Rs)&&(Es.clearTimeout(ee(this,Rs)),it(this,Rs,void 0))}},Rs=new WeakMap,vI),Ts,wu,fa,_s,Fr,rh,Ns,Wi,Lz,Oo,yI,uJ=(yI=class extends Dz{constructor(t){super();yt(this,Wi);yt(this,Ts);yt(this,wu);yt(this,fa);yt(this,_s);yt(this,Fr);yt(this,rh);yt(this,Ns);it(this,Ns,!1),it(this,rh,t.defaultOptions),this.setOptions(t.options),this.observers=[],it(this,_s,t.client),it(this,fa,ee(this,_s).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,it(this,Ts,C_(this.options)),this.state=t.state??ee(this,Ts),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=ee(this,Fr))==null?void 0:t.promise}setOptions(t){if(this.options={...ee(this,rh),...t},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const n=C_(this.options);n.data!==void 0&&(this.setState(x_(n.data,n.dataUpdatedAt)),it(this,Ts,n))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&ee(this,fa).remove(this)}setData(t,n){const r=wx(this.state.data,t,this.options);return Ht(this,Wi,Oo).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){Ht(this,Wi,Oo).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,i;const n=(r=ee(this,Fr))==null?void 0:r.promise;return(i=ee(this,Fr))==null||i.cancel(t),n?n.then(ri).catch(ri):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return ee(this,Ts)}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(t=>ga(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Gf||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>Ll(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!Pz(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=ee(this,Fr))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=ee(this,Fr))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),ee(this,fa).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(ee(this,Fr)&&(ee(this,Ns)||Ht(this,Wi,Lz).call(this)?ee(this,Fr).cancel({revert:!0}):ee(this,Fr).cancelRetry()),this.scheduleGc()),ee(this,fa).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Ht(this,Wi,Oo).call(this,{type:"invalidate"})}async fetch(t,n){var u,d,m,g,v,y,b,x,S,w,$,O;if(this.state.fetchStatus!=="idle"&&((u=ee(this,Fr))==null?void 0:u.status())!=="rejected"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(ee(this,Fr))return ee(this,Fr).continueRetry(),ee(this,Fr).promise}if(t&&this.setOptions(t),!this.options.queryFn){const T=this.observers.find(_=>_.options.queryFn);T&&this.setOptions(T.options)}const r=new AbortController,i=T=>{Object.defineProperty(T,"signal",{enumerable:!0,get:()=>(it(this,Ns,!0),r.signal)})},a=()=>{const T=Az(this.options,n),R=(()=>{const M={client:ee(this,_s),queryKey:this.queryKey,meta:this.meta};return i(M),M})();return it(this,Ns,!1),this.options.persister?this.options.persister(T,R,this):T(R)},c=(()=>{const T={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:ee(this,_s),state:this.state,fetchFn:a};return i(T),T})();(d=this.options.behavior)==null||d.onFetch(c,this),it(this,wu,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((m=c.fetchOptions)==null?void 0:m.meta))&&Ht(this,Wi,Oo).call(this,{type:"fetch",meta:(g=c.fetchOptions)==null?void 0:g.meta}),it(this,Fr,jz({initialPromise:n==null?void 0:n.initialPromise,fn:c.fetchFn,onCancel:T=>{T instanceof $x&&T.revert&&this.setState({...ee(this,wu),fetchStatus:"idle"}),r.abort()},onFail:(T,_)=>{Ht(this,Wi,Oo).call(this,{type:"failed",failureCount:T,error:_})},onPause:()=>{Ht(this,Wi,Oo).call(this,{type:"pause"})},onContinue:()=>{Ht(this,Wi,Oo).call(this,{type:"continue"})},retry:c.options.retry,retryDelay:c.options.retryDelay,networkMode:c.options.networkMode,canRun:()=>!0}));try{const T=await ee(this,Fr).start();if(T===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(T),(y=(v=ee(this,fa).config).onSuccess)==null||y.call(v,T,this),(x=(b=ee(this,fa).config).onSettled)==null||x.call(b,T,this.state.error,this),T}catch(T){if(T instanceof $x){if(T.silent)return ee(this,Fr).promise;if(T.revert){if(this.state.data===void 0)throw T;return this.state.data}}throw Ht(this,Wi,Oo).call(this,{type:"error",error:T}),(w=(S=ee(this,fa).config).onError)==null||w.call(S,T,this),(O=($=ee(this,fa).config).onSettled)==null||O.call($,this.state.data,T,this),T}finally{this.scheduleGc()}}},Ts=new WeakMap,wu=new WeakMap,fa=new WeakMap,_s=new WeakMap,Fr=new WeakMap,rh=new WeakMap,Ns=new WeakMap,Wi=new WeakSet,Lz=function(){return this.state.fetchStatus==="paused"&&this.state.status==="pending"},Oo=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...kz(r.data,this.options),fetchMeta:t.meta??null};case"success":const i={...r,...x_(t.data,t.dataUpdatedAt),dataUpdateCount:r.dataUpdateCount+1,...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return it(this,wu,t.manual?i:void 0),i;case"error":const a=t.error;return{...r,error:a,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:a,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),pr.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),ee(this,fa).notify({query:this,type:"updated",action:t})})},yI);function kz(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:zz(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function x_(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function C_(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var Ri,Cn,ih,di,Is,Eu,No,Rl,ah,$u,Ou,Ms,Ps,Tl,Ru,kn,ff,Ox,Rx,Tx,_x,Nx,Ix,Mx,Bz,bI,Rh=(bI=class extends ac{constructor(t,n){super();yt(this,kn);yt(this,Ri);yt(this,Cn);yt(this,ih);yt(this,di);yt(this,Is);yt(this,Eu);yt(this,No);yt(this,Rl);yt(this,ah);yt(this,$u);yt(this,Ou);yt(this,Ms);yt(this,Ps);yt(this,Tl);yt(this,Ru,new Set);this.options=n,it(this,Ri,t),it(this,Rl,null),it(this,No,Ex()),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(ee(this,Cn).addObserver(this),w_(ee(this,Cn),this.options)?Ht(this,kn,ff).call(this):this.updateResult(),Ht(this,kn,_x).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Px(ee(this,Cn),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Px(ee(this,Cn),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,Ht(this,kn,Nx).call(this),Ht(this,kn,Ix).call(this),ee(this,Cn).removeObserver(this)}setOptions(t){const n=this.options,r=ee(this,Cn);if(this.options=ee(this,Ri).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof ga(this.options.enabled,ee(this,Cn))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");Ht(this,kn,Mx).call(this),ee(this,Cn).setOptions(this.options),n._defaulted&&!Wf(this.options,n)&&ee(this,Ri).getQueryCache().notify({type:"observerOptionsUpdated",query:ee(this,Cn),observer:this});const i=this.hasListeners();i&&E_(ee(this,Cn),r,this.options,n)&&Ht(this,kn,ff).call(this),this.updateResult(),i&&(ee(this,Cn)!==r||ga(this.options.enabled,ee(this,Cn))!==ga(n.enabled,ee(this,Cn))||Ll(this.options.staleTime,ee(this,Cn))!==Ll(n.staleTime,ee(this,Cn)))&&Ht(this,kn,Ox).call(this);const a=Ht(this,kn,Rx).call(this);i&&(ee(this,Cn)!==r||ga(this.options.enabled,ee(this,Cn))!==ga(n.enabled,ee(this,Cn))||a!==ee(this,Tl))&&Ht(this,kn,Tx).call(this,a)}getOptimisticResult(t){const n=ee(this,Ri).getQueryCache().build(ee(this,Ri),t),r=this.createResult(n,t);return fJ(this,r)&&(it(this,di,r),it(this,Eu,this.options),it(this,Is,ee(this,Cn).state)),r}getCurrentResult(){return ee(this,di)}trackResult(t,n){return new Proxy(t,{get:(r,i)=>(this.trackProp(i),n==null||n(i),i==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&ee(this,No).status==="pending"&&ee(this,No).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(r,i))})}trackProp(t){ee(this,Ru).add(t)}getCurrentQuery(){return ee(this,Cn)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=ee(this,Ri).defaultQueryOptions(t),r=ee(this,Ri).getQueryCache().build(ee(this,Ri),n);return r.fetch().then(()=>this.createResult(r,n))}fetch(t){return Ht(this,kn,ff).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),ee(this,di)))}createResult(t,n){var N;const r=ee(this,Cn),i=this.options,a=ee(this,di),l=ee(this,Is),c=ee(this,Eu),d=t!==r?t.state:ee(this,ih),{state:m}=t;let g={...m},v=!1,y;if(n._optimisticResults){const I=this.hasListeners(),B=!I&&w_(t,n),A=I&&E_(t,r,n,i);(B||A)&&(g={...g,...kz(m.data,t.options)}),n._optimisticResults==="isRestoring"&&(g.fetchStatus="idle")}let{error:b,errorUpdatedAt:x,status:S}=g;y=g.data;let w=!1;if(n.placeholderData!==void 0&&y===void 0&&S==="pending"){let I;a!=null&&a.isPlaceholderData&&n.placeholderData===(c==null?void 0:c.placeholderData)?(I=a.data,w=!0):I=typeof n.placeholderData=="function"?n.placeholderData((N=ee(this,Ou))==null?void 0:N.state.data,ee(this,Ou)):n.placeholderData,I!==void 0&&(S="success",y=wx(a==null?void 0:a.data,I,n),v=!0)}if(n.select&&y!==void 0&&!w)if(a&&y===(l==null?void 0:l.data)&&n.select===ee(this,ah))y=ee(this,$u);else try{it(this,ah,n.select),y=n.select(y),y=wx(a==null?void 0:a.data,y,n),it(this,$u,y),it(this,Rl,null)}catch(I){it(this,Rl,I)}ee(this,Rl)&&(b=ee(this,Rl),y=ee(this,$u),x=Date.now(),S="error");const $=g.fetchStatus==="fetching",O=S==="pending",T=S==="error",_=O&&$,R=y!==void 0,P={status:S,fetchStatus:g.fetchStatus,isPending:O,isSuccess:S==="success",isError:T,isInitialLoading:_,isLoading:_,data:y,dataUpdatedAt:g.dataUpdatedAt,error:b,errorUpdatedAt:x,failureCount:g.fetchFailureCount,failureReason:g.fetchFailureReason,errorUpdateCount:g.errorUpdateCount,isFetched:t.isFetched(),isFetchedAfterMount:g.dataUpdateCount>d.dataUpdateCount||g.errorUpdateCount>d.errorUpdateCount,isFetching:$,isRefetching:$&&!O,isLoadingError:T&&!R,isPaused:g.fetchStatus==="paused",isPlaceholderData:v,isRefetchError:T&&R,isStale:q1(t,n),refetch:this.refetch,promise:ee(this,No),isEnabled:ga(n.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const I=P.data!==void 0,B=P.status==="error"&&!I,A=V=>{B?V.reject(P.error):I&&V.resolve(P.data)},k=()=>{const V=it(this,No,P.promise=Ex());A(V)},j=ee(this,No);switch(j.status){case"pending":t.queryHash===r.queryHash&&A(j);break;case"fulfilled":(B||P.data!==j.value)&&k();break;case"rejected":(!B||P.error!==j.reason)&&k();break}}return P}updateResult(){const t=ee(this,di),n=this.createResult(ee(this,Cn),this.options);if(it(this,Is,ee(this,Cn).state),it(this,Eu,this.options),ee(this,Is).data!==void 0&&it(this,Ou,ee(this,Cn)),Wf(n,t))return;it(this,di,n);const r=()=>{if(!t)return!0;const{notifyOnChangeProps:i}=this.options,a=typeof i=="function"?i():i;if(a==="all"||!a&&!ee(this,Ru).size)return!0;const l=new Set(a??ee(this,Ru));return this.options.throwOnError&&l.add("error"),Object.keys(ee(this,di)).some(c=>{const u=c;return ee(this,di)[u]!==t[u]&&l.has(u)})};Ht(this,kn,Bz).call(this,{listeners:r()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&Ht(this,kn,_x).call(this)}},Ri=new WeakMap,Cn=new WeakMap,ih=new WeakMap,di=new WeakMap,Is=new WeakMap,Eu=new WeakMap,No=new WeakMap,Rl=new WeakMap,ah=new WeakMap,$u=new WeakMap,Ou=new WeakMap,Ms=new WeakMap,Ps=new WeakMap,Tl=new WeakMap,Ru=new WeakMap,kn=new WeakSet,ff=function(t){Ht(this,kn,Mx).call(this);let n=ee(this,Cn).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(ri)),n},Ox=function(){Ht(this,kn,Nx).call(this);const t=Ll(this.options.staleTime,ee(this,Cn));if(Xf.isServer()||ee(this,di).isStale||!xx(t))return;const r=Pz(ee(this,di).dataUpdatedAt,t)+1;it(this,Ms,Es.setTimeout(()=>{ee(this,di).isStale||this.updateResult()},r))},Rx=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(ee(this,Cn)):this.options.refetchInterval)??!1},Tx=function(t){Ht(this,kn,Ix).call(this),it(this,Tl,t),!(Xf.isServer()||ga(this.options.enabled,ee(this,Cn))===!1||!xx(ee(this,Tl))||ee(this,Tl)===0)&&it(this,Ps,Es.setInterval(()=>{(this.options.refetchIntervalInBackground||H1.isFocused())&&Ht(this,kn,ff).call(this)},ee(this,Tl)))},_x=function(){Ht(this,kn,Ox).call(this),Ht(this,kn,Tx).call(this,Ht(this,kn,Rx).call(this))},Nx=function(){ee(this,Ms)&&(Es.clearTimeout(ee(this,Ms)),it(this,Ms,void 0))},Ix=function(){ee(this,Ps)&&(Es.clearInterval(ee(this,Ps)),it(this,Ps,void 0))},Mx=function(){const t=ee(this,Ri).getQueryCache().build(ee(this,Ri),this.options);if(t===ee(this,Cn))return;const n=ee(this,Cn);it(this,Cn,t),it(this,ih,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},Bz=function(t){pr.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(ee(this,di))}),ee(this,Ri).getQueryCache().notify({query:ee(this,Cn),type:"observerResultsUpdated"})})},bI);function dJ(e,t){return ga(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function w_(e,t){return dJ(e,t)||e.state.data!==void 0&&Px(e,t,t.refetchOnMount)}function Px(e,t,n){if(ga(t.enabled,e)!==!1&&Ll(t.staleTime,e)!=="static"){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&q1(e,t)}return!1}function E_(e,t,n,r){return(e!==t||ga(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&q1(e,n)}function q1(e,t){return ga(t.enabled,e)!==!1&&e.isStaleByTime(Ll(t.staleTime,e))}function fJ(e,t){return!Wf(e.getCurrentResult(),t)}function rp(e){return{onFetch:(t,n)=>{var m,g,v,y,b;const r=t.options,i=(v=(g=(m=t.fetchOptions)==null?void 0:m.meta)==null?void 0:g.fetchMore)==null?void 0:v.direction,a=((y=t.state.data)==null?void 0:y.pages)||[],l=((b=t.state.data)==null?void 0:b.pageParams)||[];let c={pages:[],pageParams:[]},u=0;const d=async()=>{let x=!1;const S=O=>{aJ(O,()=>t.signal,()=>x=!0)},w=Az(t.options,t.fetchOptions),$=async(O,T,_)=>{if(x)return Promise.reject();if(T==null&&O.pages.length)return Promise.resolve(O);const M=(()=>{const B={client:t.client,queryKey:t.queryKey,pageParam:T,direction:_?"backward":"forward",meta:t.options.meta};return S(B),B})(),P=await w(M),{maxPages:N}=t.options,I=_?iJ:rJ;return{pages:I(O.pages,P,N),pageParams:I(O.pageParams,T,N)}};if(i&&a.length){const O=i==="backward",T=O?Hz:Ax,_={pages:a,pageParams:l},R=T(r,_);c=await $(_,R,O)}else{const O=e??a.length;do{const T=u===0?l[0]??r.initialPageParam:Ax(r,c);if(u>0&&T==null)break;c=await $(c,T),u++}while(u<O)}return c};t.options.persister?t.fetchFn=()=>{var x,S;return(S=(x=t.options).persister)==null?void 0:S.call(x,d,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=d}}}function Ax(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function Hz(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}function hJ(e,t){return t?Ax(e,t)!=null:!1}function mJ(e,t){return!t||!e.getPreviousPageParam?!1:Hz(e,t)!=null}var Fz=class extends Rh{constructor(e,t){super(e,t)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(e){super.setOptions({...e,behavior:rp()})}getOptimisticResult(e){return e.behavior=rp(),super.getOptimisticResult(e)}fetchNextPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"forward"}}})}fetchPreviousPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"backward"}}})}createResult(e,t){var b,x;const{state:n}=e,r=super.createResult(e,t),{isFetching:i,isRefetching:a,isError:l,isRefetchError:c}=r,u=(x=(b=n.fetchMeta)==null?void 0:b.fetchMore)==null?void 0:x.direction,d=l&&u==="forward",m=i&&u==="forward",g=l&&u==="backward",v=i&&u==="backward";return{...r,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:hJ(t,n.data),hasPreviousPage:mJ(t,n.data),isFetchNextPageError:d,isFetchingNextPage:m,isFetchPreviousPageError:g,isFetchingPreviousPage:v,isRefetchError:c&&!d&&!g,isRefetching:a&&!m&&!v}}},oh,Ga,ei,As,Xa,bl,SI,gJ=(SI=class extends Dz{constructor(t){super();yt(this,Xa);yt(this,oh);yt(this,Ga);yt(this,ei);yt(this,As);it(this,oh,t.client),this.mutationId=t.mutationId,it(this,ei,t.mutationCache),it(this,Ga,[]),this.state=t.state||Vz(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){ee(this,Ga).includes(t)||(ee(this,Ga).push(t),this.clearGcTimeout(),ee(this,ei).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){it(this,Ga,ee(this,Ga).filter(n=>n!==t)),this.scheduleGc(),ee(this,ei).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){ee(this,Ga).length||(this.state.status==="pending"?this.scheduleGc():ee(this,ei).remove(this))}continue(){var t;return((t=ee(this,As))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var l,c,u,d,m,g,v,y,b,x,S,w,$,O,T,_,R,M;const n=()=>{Ht(this,Xa,bl).call(this,{type:"continue"})},r={client:ee(this,oh),meta:this.options.meta,mutationKey:this.options.mutationKey};it(this,As,jz({fn:()=>this.options.mutationFn?this.options.mutationFn(t,r):Promise.reject(new Error("No mutationFn found")),onFail:(P,N)=>{Ht(this,Xa,bl).call(this,{type:"failed",failureCount:P,error:N})},onPause:()=>{Ht(this,Xa,bl).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>ee(this,ei).canRun(this)}));const i=this.state.status==="pending",a=!ee(this,As).canStart();try{if(i)n();else{Ht(this,Xa,bl).call(this,{type:"pending",variables:t,isPaused:a}),ee(this,ei).config.onMutate&&await ee(this,ei).config.onMutate(t,this,r);const N=await((c=(l=this.options).onMutate)==null?void 0:c.call(l,t,r));N!==this.state.context&&Ht(this,Xa,bl).call(this,{type:"pending",context:N,variables:t,isPaused:a})}const P=await ee(this,As).start();return await((d=(u=ee(this,ei).config).onSuccess)==null?void 0:d.call(u,P,t,this.state.context,this,r)),await((g=(m=this.options).onSuccess)==null?void 0:g.call(m,P,t,this.state.context,r)),await((y=(v=ee(this,ei).config).onSettled)==null?void 0:y.call(v,P,null,this.state.variables,this.state.context,this,r)),await((x=(b=this.options).onSettled)==null?void 0:x.call(b,P,null,t,this.state.context,r)),Ht(this,Xa,bl).call(this,{type:"success",data:P}),P}catch(P){try{await((w=(S=ee(this,ei).config).onError)==null?void 0:w.call(S,P,t,this.state.context,this,r))}catch(N){Promise.reject(N)}try{await((O=($=this.options).onError)==null?void 0:O.call($,P,t,this.state.context,r))}catch(N){Promise.reject(N)}try{await((_=(T=ee(this,ei).config).onSettled)==null?void 0:_.call(T,void 0,P,this.state.variables,this.state.context,this,r))}catch(N){Promise.reject(N)}try{await((M=(R=this.options).onSettled)==null?void 0:M.call(R,void 0,P,t,this.state.context,r))}catch(N){Promise.reject(N)}throw Ht(this,Xa,bl).call(this,{type:"error",error:P}),P}finally{ee(this,ei).runNext(this)}}},oh=new WeakMap,Ga=new WeakMap,ei=new WeakMap,As=new WeakMap,Xa=new WeakSet,bl=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),pr.batch(()=>{ee(this,Ga).forEach(r=>{r.onMutationUpdate(t)}),ee(this,ei).notify({mutation:this,type:"updated",action:t})})},SI);function Vz(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Io,Ta,lh,xI,pJ=(xI=class extends ac{constructor(t={}){super();yt(this,Io);yt(this,Ta);yt(this,lh);this.config=t,it(this,Io,new Set),it(this,Ta,new Map),it(this,lh,0)}build(t,n,r){const i=new gJ({client:t,mutationCache:this,mutationId:++Dm(this,lh)._,options:t.defaultMutationOptions(n),state:r});return this.add(i),i}add(t){ee(this,Io).add(t);const n=tg(t);if(typeof n=="string"){const r=ee(this,Ta).get(n);r?r.push(t):ee(this,Ta).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(ee(this,Io).delete(t)){const n=tg(t);if(typeof n=="string"){const r=ee(this,Ta).get(n);if(r)if(r.length>1){const i=r.indexOf(t);i!==-1&&r.splice(i,1)}else r[0]===t&&ee(this,Ta).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=tg(t);if(typeof n=="string"){const r=ee(this,Ta).get(n),i=r==null?void 0:r.find(a=>a.state.status==="pending");return!i||i===t}else return!0}runNext(t){var r;const n=tg(t);if(typeof n=="string"){const i=(r=ee(this,Ta).get(n))==null?void 0:r.find(a=>a!==t&&a.state.isPaused);return(i==null?void 0:i.continue())??Promise.resolve()}else return Promise.resolve()}clear(){pr.batch(()=>{ee(this,Io).forEach(t=>{this.notify({type:"removed",mutation:t})}),ee(this,Io).clear(),ee(this,Ta).clear()})}getAll(){return Array.from(ee(this,Io))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>y_(n,r))}findAll(t={}){return this.getAll().filter(n=>y_(t,n))}notify(t){pr.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return pr.batch(()=>Promise.all(t.map(n=>n.continue().catch(ri))))}},Io=new WeakMap,Ta=new WeakMap,lh=new WeakMap,xI);function tg(e){var t;return(t=e.options.scope)==null?void 0:t.id}var Mo,_l,Ti,Po,jo,Eg,zx,CI,vJ=(CI=class extends ac{constructor(n,r){super();yt(this,jo);yt(this,Mo);yt(this,_l);yt(this,Ti);yt(this,Po);it(this,Mo,n),this.setOptions(r),this.bindMethods(),Ht(this,jo,Eg).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(n){var i;const r=this.options;this.options=ee(this,Mo).defaultMutationOptions(n),Wf(this.options,r)||ee(this,Mo).getMutationCache().notify({type:"observerOptionsUpdated",mutation:ee(this,Ti),observer:this}),r!=null&&r.mutationKey&&this.options.mutationKey&&qs(r.mutationKey)!==qs(this.options.mutationKey)?this.reset():((i=ee(this,Ti))==null?void 0:i.state.status)==="pending"&&ee(this,Ti).setOptions(this.options)}onUnsubscribe(){var n;this.hasListeners()||(n=ee(this,Ti))==null||n.removeObserver(this)}onMutationUpdate(n){Ht(this,jo,Eg).call(this),Ht(this,jo,zx).call(this,n)}getCurrentResult(){return ee(this,_l)}reset(){var n;(n=ee(this,Ti))==null||n.removeObserver(this),it(this,Ti,void 0),Ht(this,jo,Eg).call(this),Ht(this,jo,zx).call(this)}mutate(n,r){var i;return it(this,Po,r),(i=ee(this,Ti))==null||i.removeObserver(this),it(this,Ti,ee(this,Mo).getMutationCache().build(ee(this,Mo),this.options)),ee(this,Ti).addObserver(this),ee(this,Ti).execute(n)}},Mo=new WeakMap,_l=new WeakMap,Ti=new WeakMap,Po=new WeakMap,jo=new WeakSet,Eg=function(){var r;const n=((r=ee(this,Ti))==null?void 0:r.state)??Vz();it(this,_l,{...n,isPending:n.status==="pending",isSuccess:n.status==="success",isError:n.status==="error",isIdle:n.status==="idle",mutate:this.mutate,reset:this.reset})},zx=function(n){pr.batch(()=>{var r,i,a,l,c,u,d,m;if(ee(this,Po)&&this.hasListeners()){const g=ee(this,_l).variables,v=ee(this,_l).context,y={client:ee(this,Mo),meta:this.options.meta,mutationKey:this.options.mutationKey};if((n==null?void 0:n.type)==="success"){try{(i=(r=ee(this,Po)).onSuccess)==null||i.call(r,n.data,g,v,y)}catch(b){Promise.reject(b)}try{(l=(a=ee(this,Po)).onSettled)==null||l.call(a,n.data,null,g,v,y)}catch(b){Promise.reject(b)}}else if((n==null?void 0:n.type)==="error"){try{(u=(c=ee(this,Po)).onError)==null||u.call(c,n.error,g,v,y)}catch(b){Promise.reject(b)}try{(m=(d=ee(this,Po)).onSettled)==null||m.call(d,void 0,n.error,g,v,y)}catch(b){Promise.reject(b)}}}this.listeners.forEach(g=>{g(ee(this,_l))})})},CI);function $_(e,t){const n=new Set(t);return e.filter(r=>!n.has(r))}function yJ(e,t,n){const r=e.slice(0);return r[t]=n,r}var Tu,Ki,_u,Nu,ha,Nl,sh,ch,uh,dh,Qr,jx,Dx,Lx,kx,Bx,wI,bJ=(wI=class extends ac{constructor(t,n,r){super();yt(this,Qr);yt(this,Tu);yt(this,Ki);yt(this,_u);yt(this,Nu);yt(this,ha);yt(this,Nl);yt(this,sh);yt(this,ch);yt(this,uh);yt(this,dh,[]);it(this,Tu,t),it(this,Nu,r),it(this,_u,[]),it(this,ha,[]),it(this,Ki,[]),this.setQueries(n)}onSubscribe(){this.listeners.size===1&&ee(this,ha).forEach(t=>{t.subscribe(n=>{Ht(this,Qr,kx).call(this,t,n)})})}onUnsubscribe(){this.listeners.size||this.destroy()}destroy(){this.listeners=new Set,ee(this,ha).forEach(t=>{t.destroy()})}setQueries(t,n){it(this,_u,t),it(this,Nu,n),pr.batch(()=>{const r=ee(this,ha),i=Ht(this,Qr,Lx).call(this,ee(this,_u));i.forEach(g=>g.observer.setOptions(g.defaultedQueryOptions));const a=i.map(g=>g.observer),l=a.map(g=>g.getCurrentResult()),c=r.length!==a.length,u=a.some((g,v)=>g!==r[v]),d=c||u,m=d?!0:l.some((g,v)=>{const y=ee(this,Ki)[v];return!y||!Wf(g,y)});!d&&!m||(d&&(it(this,dh,i),it(this,ha,a)),it(this,Ki,l),this.hasListeners()&&(d&&($_(r,a).forEach(g=>{g.destroy()}),$_(a,r).forEach(g=>{g.subscribe(v=>{Ht(this,Qr,kx).call(this,g,v)})})),Ht(this,Qr,Bx).call(this)))})}getCurrentResult(){return ee(this,Ki)}getQueries(){return ee(this,ha).map(t=>t.getCurrentQuery())}getObservers(){return ee(this,ha)}getOptimisticResult(t,n){const r=Ht(this,Qr,Lx).call(this,t),i=r.map(l=>l.observer.getOptimisticResult(l.defaultedQueryOptions)),a=r.map(l=>l.defaultedQueryOptions.queryHash);return[i,l=>Ht(this,Qr,Dx).call(this,l??i,n,a),()=>Ht(this,Qr,jx).call(this,i,r)]}},Tu=new WeakMap,Ki=new WeakMap,_u=new WeakMap,Nu=new WeakMap,ha=new WeakMap,Nl=new WeakMap,sh=new WeakMap,ch=new WeakMap,uh=new WeakMap,dh=new WeakMap,Qr=new WeakSet,jx=function(t,n){return n.map((r,i)=>{const a=t[i];return r.defaultedQueryOptions.notifyOnChangeProps?a:r.observer.trackResult(a,l=>{n.forEach(c=>{c.observer.trackProp(l)})})})},Dx=function(t,n,r){if(n){const i=ee(this,uh),a=r!==void 0&&i!==void 0&&(i.length!==r.length||r.some((l,c)=>l!==i[c]));return(!ee(this,Nl)||ee(this,Ki)!==ee(this,ch)||a||n!==ee(this,sh))&&(it(this,sh,n),it(this,ch,ee(this,Ki)),r!==void 0&&it(this,uh,r),it(this,Nl,V1(ee(this,Nl),n(t)))),ee(this,Nl)}return t},Lx=function(t){const n=new Map;ee(this,ha).forEach(i=>{const a=i.options.queryHash;if(!a)return;const l=n.get(a);l?l.push(i):n.set(a,[i])});const r=[];return t.forEach(i=>{var u;const a=ee(this,Tu).defaultQueryOptions(i),c=((u=n.get(a.queryHash))==null?void 0:u.shift())??new Rh(ee(this,Tu),a);r.push({defaultedQueryOptions:a,observer:c})}),r},kx=function(t,n){const r=ee(this,ha).indexOf(t);r!==-1&&(it(this,Ki,yJ(ee(this,Ki),r,n)),Ht(this,Qr,Bx).call(this))},Bx=function(){var t;if(this.hasListeners()){const n=ee(this,Nl),r=Ht(this,Qr,jx).call(this,ee(this,Ki),ee(this,dh)),i=Ht(this,Qr,Dx).call(this,r,(t=ee(this,Nu))==null?void 0:t.combine);n!==i&&pr.batch(()=>{this.listeners.forEach(a=>{a(ee(this,Ki))})})}},wI),Qa,EI,SJ=(EI=class extends ac{constructor(t={}){super();yt(this,Qa);this.config=t,it(this,Qa,new Map)}build(t,n,r){const i=n.queryKey,a=n.queryHash??F1(i,n);let l=this.get(a);return l||(l=new uJ({client:t,queryKey:i,queryHash:a,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(i)}),this.add(l)),l}add(t){ee(this,Qa).has(t.queryHash)||(ee(this,Qa).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=ee(this,Qa).get(t.queryHash);n&&(t.destroy(),n===t&&ee(this,Qa).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){pr.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return ee(this,Qa).get(t)}getAll(){return[...ee(this,Qa).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>v_(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>v_(t,r)):n}notify(t){pr.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){pr.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){pr.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},Qa=new WeakMap,EI),gr,Il,Ml,Iu,Mu,Pl,Pu,Au,$I,xJ=($I=class{constructor(e={}){yt(this,gr);yt(this,Il);yt(this,Ml);yt(this,Iu);yt(this,Mu);yt(this,Pl);yt(this,Pu);yt(this,Au);it(this,gr,e.queryCache||new SJ),it(this,Il,e.mutationCache||new pJ),it(this,Ml,e.defaultOptions||{}),it(this,Iu,new Map),it(this,Mu,new Map),it(this,Pl,0)}mount(){Dm(this,Pl)._++,ee(this,Pl)===1&&(it(this,Pu,H1.subscribe(async e=>{e&&(await this.resumePausedMutations(),ee(this,gr).onFocus())})),it(this,Au,np.subscribe(async e=>{e&&(await this.resumePausedMutations(),ee(this,gr).onOnline())})))}unmount(){var e,t;Dm(this,Pl)._--,ee(this,Pl)===0&&((e=ee(this,Pu))==null||e.call(this),it(this,Pu,void 0),(t=ee(this,Au))==null||t.call(this),it(this,Au,void 0))}isFetching(e){return ee(this,gr).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return ee(this,Il).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=ee(this,gr).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=ee(this,gr).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(Ll(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return ee(this,gr).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),i=ee(this,gr).get(r.queryHash),a=i==null?void 0:i.state.data,l=eJ(t,a);if(l!==void 0)return ee(this,gr).build(this,r).setData(l,{...n,manual:!0})}setQueriesData(e,t,n){return pr.batch(()=>ee(this,gr).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=ee(this,gr).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=ee(this,gr);pr.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=ee(this,gr);return pr.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=pr.batch(()=>ee(this,gr).findAll(e).map(i=>i.cancel(n)));return Promise.all(r).then(ri).catch(ri)}invalidateQueries(e,t={}){return pr.batch(()=>(ee(this,gr).findAll(e).forEach(n=>{n.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=pr.batch(()=>ee(this,gr).findAll(e).filter(i=>!i.isDisabled()&&!i.isStatic()).map(i=>{let a=i.fetch(void 0,n);return n.throwOnError||(a=a.catch(ri)),i.state.fetchStatus==="paused"?Promise.resolve():a}));return Promise.all(r).then(ri)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=ee(this,gr).build(this,t);return n.isStaleByTime(Ll(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(ri).catch(ri)}fetchInfiniteQuery(e){return e.behavior=rp(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(ri).catch(ri)}ensureInfiniteQueryData(e){return e.behavior=rp(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return np.isOnline()?ee(this,Il).resumePausedMutations():Promise.resolve()}getQueryCache(){return ee(this,gr)}getMutationCache(){return ee(this,Il)}getDefaultOptions(){return ee(this,Ml)}setDefaultOptions(e){it(this,Ml,e)}setQueryDefaults(e,t){ee(this,Iu).set(qs(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...ee(this,Iu).values()],n={};return t.forEach(r=>{Kf(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){ee(this,Mu).set(qs(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...ee(this,Mu).values()],n={};return t.forEach(r=>{Kf(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...ee(this,Ml).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=F1(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===Gf&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...ee(this,Ml).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){ee(this,gr).clear(),ee(this,Il).clear()}},gr=new WeakMap,Il=new WeakMap,Ml=new WeakMap,Iu=new WeakMap,Mu=new WeakMap,Pl=new WeakMap,Pu=new WeakMap,Au=new WeakMap,$I),Uz=h.createContext(void 0),oc=e=>{const t=h.useContext(Uz);if(e)return e;if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},CJ=({client:e,children:t})=>(h.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),se.jsx(Uz.Provider,{value:e,children:t})),qz=h.createContext(!1),Kz=()=>h.useContext(qz);qz.Provider;function wJ(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var EJ=h.createContext(wJ()),Wz=()=>h.useContext(EJ),Gz=(e,t,n)=>{const r=n!=null&&n.state.error&&typeof e.throwOnError=="function"?U1(e.throwOnError,[n.state.error,n]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||r)&&(t.isReset()||(e.retryOnMount=!1))},Xz=e=>{h.useEffect(()=>{e.clearReset()},[e])},Qz=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:i})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(i&&e.data===void 0||U1(n,[e.error,r])),K1=(e,t)=>t.state.data===void 0,Yz=e=>{if(e.suspense){const n=i=>i==="static"?i:Math.max(i??1e3,1e3),r=e.staleTime;e.staleTime=typeof r=="function"?(...i)=>n(r(...i)):n(r),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},$J=(e,t)=>e.isLoading&&e.isFetching&&!t,Hx=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,Fx=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function Zz({queries:e,...t},n){const r=oc(n),i=Kz(),a=Wz(),l=h.useMemo(()=>e.map(x=>{const S=r.defaultQueryOptions(x);return S._optimisticResults=i?"isRestoring":"optimistic",S}),[e,r,i]);l.forEach(x=>{Yz(x);const S=r.getQueryCache().get(x.queryHash);Gz(x,a,S)}),Xz(a);const[c]=h.useState(()=>new bJ(r,l,t)),[u,d,m]=c.getOptimisticResult(l,t.combine),g=!i&&t.subscribed!==!1;h.useSyncExternalStore(h.useCallback(x=>g?c.subscribe(pr.batchCalls(x)):ri,[c,g]),()=>c.getCurrentResult(),()=>c.getCurrentResult()),h.useEffect(()=>{c.setQueries(l,t)},[l,t,c]);const y=u.some((x,S)=>Hx(l[S],x))?u.flatMap((x,S)=>{const w=l[S];if(w&&Hx(w,x)){const $=new Rh(r,w);return Fx(w,$,a)}return[]}):[];if(y.length>0)throw Promise.all(y);const b=u.find((x,S)=>{const w=l[S];return w&&Qz({result:x,errorResetBoundary:a,throwOnError:w.throwOnError,query:r.getQueryCache().get(w.queryHash),suspense:w.suspense})});if(b!=null&&b.error)throw b.error;return d(m())}function mv(e,t,n){var v,y,b,x;const r=Kz(),i=Wz(),a=oc(n),l=a.defaultQueryOptions(e);(y=(v=a.getDefaultOptions().queries)==null?void 0:v._experimental_beforeQuery)==null||y.call(v,l);const c=a.getQueryCache().get(l.queryHash);l._optimisticResults=r?"isRestoring":"optimistic",Yz(l),Gz(l,i,c),Xz(i);const u=!a.getQueryCache().get(l.queryHash),[d]=h.useState(()=>new t(a,l)),m=d.getOptimisticResult(l),g=!r&&e.subscribed!==!1;if(h.useSyncExternalStore(h.useCallback(S=>{const w=g?d.subscribe(pr.batchCalls(S)):ri;return d.updateResult(),w},[d,g]),()=>d.getCurrentResult(),()=>d.getCurrentResult()),h.useEffect(()=>{d.setOptions(l)},[l,d]),Hx(l,m))throw Fx(l,d,i);if(Qz({result:m,errorResetBoundary:i,throwOnError:l.throwOnError,query:c,suspense:l.suspense}))throw m.error;if((x=(b=a.getDefaultOptions().queries)==null?void 0:b._experimental_afterQuery)==null||x.call(b,l,m),l.experimental_prefetchInRender&&!Xf.isServer()&&$J(m,r)){const S=u?Fx(l,d,i):c==null?void 0:c.promise;S==null||S.catch(ri).finally(()=>{d.updateResult()})}return l.notifyOnChangeProps?m:d.trackResult(m)}function OJ(e,t){return mv(e,Rh,t)}function RJ(e,t){return mv({...e,enabled:!0,suspense:!0,throwOnError:K1,placeholderData:void 0},Rh,t)}function TJ(e,t){return mv({...e,enabled:!0,suspense:!0,throwOnError:K1},Fz,t)}function _J(e,t){return Zz({...e,queries:e.queries.map(n=>({...n,suspense:!0,throwOnError:K1,enabled:!0,placeholderData:void 0}))},t)}function NJ(e,t){const n=oc(t);n.getQueryState(e.queryKey)||n.prefetchQuery(e)}function IJ(e,t){const n=oc(t);n.getQueryState(e.queryKey)||n.prefetchInfiniteQuery(e)}function MJ(e,t){const n=oc(t),[r]=h.useState(()=>new vJ(n,e));h.useEffect(()=>{r.setOptions(e)},[r,e]);const i=h.useSyncExternalStore(h.useCallback(l=>r.subscribe(pr.batchCalls(l)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),a=h.useCallback((l,c)=>{r.mutate(l,c).catch(ri)},[r]);if(i.error&&U1(r.options.throwOnError,[i.error]))throw i.error;return{...i,mutate:a,mutateAsync:i.mutate}}function PJ(e,t){return mv(e,Fz,t)}var Rb={};const Gt=e=>typeof e=="string",ef=()=>{let e,t;const n=new Promise((r,i)=>{e=r,t=i});return n.resolve=e,n.reject=t,n},O_=e=>e==null?"":""+e,AJ=(e,t,n)=>{e.forEach(r=>{t[r]&&(n[r]=t[r])})},zJ=/###/g,R_=e=>e&&e.indexOf("###")>-1?e.replace(zJ,"."):e,T_=e=>!e||Gt(e),Sf=(e,t,n)=>{const r=Gt(t)?t.split("."):t;let i=0;for(;i<r.length-1;){if(T_(e))return{};const a=R_(r[i]);!e[a]&&n&&(e[a]=new n),Object.prototype.hasOwnProperty.call(e,a)?e=e[a]:e={},++i}return T_(e)?{}:{obj:e,k:R_(r[i])}},__=(e,t,n)=>{const{obj:r,k:i}=Sf(e,t,Object);if(r!==void 0||t.length===1){r[i]=n;return}let a=t[t.length-1],l=t.slice(0,t.length-1),c=Sf(e,l,Object);for(;c.obj===void 0&&l.length;)a=`${l[l.length-1]}.${a}`,l=l.slice(0,l.length-1),c=Sf(e,l,Object),c!=null&&c.obj&&typeof c.obj[`${c.k}.${a}`]<"u"&&(c.obj=void 0);c.obj[`${c.k}.${a}`]=n},jJ=(e,t,n,r)=>{const{obj:i,k:a}=Sf(e,t,Object);i[a]=i[a]||[],i[a].push(n)},ip=(e,t)=>{const{obj:n,k:r}=Sf(e,t);if(n&&Object.prototype.hasOwnProperty.call(n,r))return n[r]},DJ=(e,t,n)=>{const r=ip(e,n);return r!==void 0?r:ip(t,n)},Jz=(e,t,n)=>{for(const r in t)r!=="__proto__"&&r!=="constructor"&&(r in e?Gt(e[r])||e[r]instanceof String||Gt(t[r])||t[r]instanceof String?n&&(e[r]=t[r]):Jz(e[r],t[r],n):e[r]=t[r]);return e},gs=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var LJ={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};const kJ=e=>Gt(e)?e.replace(/[&<>"'\/]/g,t=>LJ[t]):e;class BJ{constructor(t){this.capacity=t,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(t){const n=this.regExpMap.get(t);if(n!==void 0)return n;const r=new RegExp(t);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(t,r),this.regExpQueue.push(t),r}}const HJ=[" ",",","?","!",";"],FJ=new BJ(20),VJ=(e,t,n)=>{t=t||"",n=n||"";const r=HJ.filter(l=>t.indexOf(l)<0&&n.indexOf(l)<0);if(r.length===0)return!0;const i=FJ.getRegExp(`(${r.map(l=>l==="?"?"\\?":l).join("|")})`);let a=!i.test(e);if(!a){const l=e.indexOf(n);l>0&&!i.test(e.substring(0,l))&&(a=!0)}return a},Vx=(e,t,n=".")=>{if(!e)return;if(e[t])return Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0;const r=t.split(n);let i=e;for(let a=0;a<r.length;){if(!i||typeof i!="object")return;let l,c="";for(let u=a;u<r.length;++u)if(u!==a&&(c+=n),c+=r[u],l=i[c],l!==void 0){if(["string","number","boolean"].indexOf(typeof l)>-1&&u<r.length-1)continue;a+=u-a+1;break}i=l}return i},Qf=e=>e==null?void 0:e.replace(/_/g,"-"),UJ={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){var n,r;(r=(n=console==null?void 0:console[e])==null?void 0:n.apply)==null||r.call(n,console,t)}};class ap{constructor(t,n={}){this.init(t,n)}init(t,n={}){this.prefix=n.prefix||"i18next:",this.logger=t||UJ,this.options=n,this.debug=n.debug}log(...t){return this.forward(t,"log","",!0)}warn(...t){return this.forward(t,"warn","",!0)}error(...t){return this.forward(t,"error","")}deprecate(...t){return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}forward(t,n,r,i){return i&&!this.debug?null:(Gt(t[0])&&(t[0]=`${r}${this.prefix} ${t[0]}`),this.logger[n](t))}create(t){return new ap(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new ap(this.logger,t)}}var Ya=new ap;class gv{constructor(){this.observers={}}on(t,n){return t.split(" ").forEach(r=>{this.observers[r]||(this.observers[r]=new Map);const i=this.observers[r].get(n)||0;this.observers[r].set(n,i+1)}),this}off(t,n){if(this.observers[t]){if(!n){delete this.observers[t];return}this.observers[t].delete(n)}}emit(t,...n){this.observers[t]&&Array.from(this.observers[t].entries()).forEach(([i,a])=>{for(let l=0;l<a;l++)i(...n)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(([i,a])=>{for(let l=0;l<a;l++)i.apply(i,[t,...n])})}}class N_ extends gv{constructor(t,n={ns:["translation"],defaultNS:"translation"}){super(),this.data=t||{},this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}removeNamespaces(t){const n=this.options.ns.indexOf(t);n>-1&&this.options.ns.splice(n,1)}getResource(t,n,r,i={}){var d,m;const a=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator,l=i.ignoreJSONStructure!==void 0?i.ignoreJSONStructure:this.options.ignoreJSONStructure;let c;t.indexOf(".")>-1?c=t.split("."):(c=[t,n],r&&(Array.isArray(r)?c.push(...r):Gt(r)&&a?c.push(...r.split(a)):c.push(r)));const u=ip(this.data,c);return!u&&!n&&!r&&t.indexOf(".")>-1&&(t=c[0],n=c[1],r=c.slice(2).join(".")),u||!l||!Gt(r)?u:Vx((m=(d=this.data)==null?void 0:d[t])==null?void 0:m[n],r,a)}addResource(t,n,r,i,a={silent:!1}){const l=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator;let c=[t,n];r&&(c=c.concat(l?r.split(l):r)),t.indexOf(".")>-1&&(c=t.split("."),i=n,n=c[1]),this.addNamespaces(n),__(this.data,c,i),a.silent||this.emit("added",t,n,r,i)}addResources(t,n,r,i={silent:!1}){for(const a in r)(Gt(r[a])||Array.isArray(r[a]))&&this.addResource(t,n,a,r[a],{silent:!0});i.silent||this.emit("added",t,n,r)}addResourceBundle(t,n,r,i,a,l={silent:!1,skipCopy:!1}){let c=[t,n];t.indexOf(".")>-1&&(c=t.split("."),i=r,r=n,n=c[1]),this.addNamespaces(n);let u=ip(this.data,c)||{};l.skipCopy||(r=JSON.parse(JSON.stringify(r))),i?Jz(u,r,a):u={...u,...r},__(this.data,c,u),l.silent||this.emit("added",t,n,r)}removeResourceBundle(t,n){this.hasResourceBundle(t,n)&&delete this.data[t][n],this.removeNamespaces(n),this.emit("removed",t,n)}hasResourceBundle(t,n){return this.getResource(t,n)!==void 0}getResourceBundle(t,n){return n||(n=this.options.defaultNS),this.getResource(t,n)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){const n=this.getDataByLanguage(t);return!!(n&&Object.keys(n)||[]).find(i=>n[i]&&Object.keys(n[i]).length>0)}toJSON(){return this.data}}var ej={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,i){return e.forEach(a=>{var l;t=((l=this.processors[a])==null?void 0:l.process(t,n,r,i))??t}),t}};const tj=Symbol("i18next/PATH_KEY");function qJ(){const e=[],t=Object.create(null);let n;return t.get=(r,i)=>{var a;return(a=n==null?void 0:n.revoke)==null||a.call(n),i===tj?e:(e.push(i),n=Proxy.revocable(r,t),n.proxy)},Proxy.revocable(Object.create(null),t).proxy}function bu(e,t){const{[tj]:n}=e(qJ()),r=(t==null?void 0:t.keySeparator)??".",i=(t==null?void 0:t.nsSeparator)??":";if(n.length>1&&i){const a=t==null?void 0:t.ns,l=Array.isArray(a)?a:null;if(l&&l.length>1&&l.slice(1).includes(n[0]))return`${n[0]}${i}${n.slice(1).join(r)}`}return n.join(r)}const I_={},Tb=e=>!Gt(e)&&typeof e!="boolean"&&typeof e!="number";class op extends gv{constructor(t,n={}){super(),AJ(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=Ya.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t,n={interpolation:{}}){const r={...n};if(t==null)return!1;const i=this.resolve(t,r);if((i==null?void 0:i.res)===void 0)return!1;const a=Tb(i.res);return!(r.returnObjects===!1&&a)}extractFromKey(t,n){let r=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;r===void 0&&(r=":");const i=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator;let a=n.ns||this.options.defaultNS||[];const l=r&&t.indexOf(r)>-1,c=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!VJ(t,r,i);if(l&&!c){const u=t.match(this.interpolator.nestingRegexp);if(u&&u.length>0)return{key:t,namespaces:Gt(a)?[a]:a};const d=t.split(r);(r!==i||r===i&&this.options.ns.indexOf(d[0])>-1)&&(a=d.shift()),t=d.join(i)}return{key:t,namespaces:Gt(a)?[a]:a}}translate(t,n,r){let i=typeof n=="object"?{...n}:n;if(typeof i!="object"&&this.options.overloadTranslationOptionHandler&&(i=this.options.overloadTranslationOptionHandler(arguments)),typeof i=="object"&&(i={...i}),i||(i={}),t==null)return"";typeof t=="function"&&(t=bu(t,{...this.options,...i})),Array.isArray(t)||(t=[String(t)]),t=t.map(k=>typeof k=="function"?bu(k,{...this.options,...i}):String(k));const a=i.returnDetails!==void 0?i.returnDetails:this.options.returnDetails,l=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator,{key:c,namespaces:u}=this.extractFromKey(t[t.length-1],i),d=u[u.length-1];let m=i.nsSeparator!==void 0?i.nsSeparator:this.options.nsSeparator;m===void 0&&(m=":");const g=i.lng||this.language,v=i.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if((g==null?void 0:g.toLowerCase())==="cimode")return v?a?{res:`${d}${m}${c}`,usedKey:c,exactUsedKey:c,usedLng:g,usedNS:d,usedParams:this.getUsedParamsDetails(i)}:`${d}${m}${c}`:a?{res:c,usedKey:c,exactUsedKey:c,usedLng:g,usedNS:d,usedParams:this.getUsedParamsDetails(i)}:c;const y=this.resolve(t,i);let b=y==null?void 0:y.res;const x=(y==null?void 0:y.usedKey)||c,S=(y==null?void 0:y.exactUsedKey)||c,w=["[object Number]","[object Function]","[object RegExp]"],$=i.joinArrays!==void 0?i.joinArrays:this.options.joinArrays,O=!this.i18nFormat||this.i18nFormat.handleAsObject,T=i.count!==void 0&&!Gt(i.count),_=op.hasDefaultValue(i),R=T?this.pluralResolver.getSuffix(g,i.count,i):"",M=i.ordinal&&T?this.pluralResolver.getSuffix(g,i.count,{ordinal:!1}):"",P=T&&!i.ordinal&&i.count===0,N=P&&i[`defaultValue${this.options.pluralSeparator}zero`]||i[`defaultValue${R}`]||i[`defaultValue${M}`]||i.defaultValue;let I=b;O&&!b&&_&&(I=N);const B=Tb(I),A=Object.prototype.toString.apply(I);if(O&&I&&B&&w.indexOf(A)<0&&!(Gt($)&&Array.isArray(I))){if(!i.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const k=this.options.returnedObjectHandler?this.options.returnedObjectHandler(x,I,{...i,ns:u}):`key '${c} (${this.language})' returned an object instead of string.`;return a?(y.res=k,y.usedParams=this.getUsedParamsDetails(i),y):k}if(l){const k=Array.isArray(I),j=k?[]:{},V=k?S:x;for(const z in I)if(Object.prototype.hasOwnProperty.call(I,z)){const F=`${V}${l}${z}`;_&&!b?j[z]=this.translate(F,{...i,defaultValue:Tb(N)?N[z]:void 0,joinArrays:!1,ns:u}):j[z]=this.translate(F,{...i,joinArrays:!1,ns:u}),j[z]===F&&(j[z]=I[z])}b=j}}else if(O&&Gt($)&&Array.isArray(b))b=b.join($),b&&(b=this.extendTranslation(b,t,i,r));else{let k=!1,j=!1;!this.isValidLookup(b)&&_&&(k=!0,b=N),this.isValidLookup(b)||(j=!0,b=c);const z=(i.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&j?void 0:b,F=_&&N!==b&&this.options.updateMissing;if(j||k||F){if(this.logger.log(F?"updateKey":"missingKey",g,d,c,F?N:b),l){const U=this.resolve(c,{...i,keySeparator:!1});U&&U.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let q=[];const Z=this.languageUtils.getFallbackCodes(this.options.fallbackLng,i.lng||this.language);if(this.options.saveMissingTo==="fallback"&&Z&&Z[0])for(let U=0;U<Z.length;U++)q.push(Z[U]);else this.options.saveMissingTo==="all"?q=this.languageUtils.toResolveHierarchy(i.lng||this.language):q.push(i.lng||this.language);const H=(U,K,D)=>{var Q;const X=_&&D!==b?D:z;this.options.missingKeyHandler?this.options.missingKeyHandler(U,d,K,X,F,i):(Q=this.backendConnector)!=null&&Q.saveMissing&&this.backendConnector.saveMissing(U,d,K,X,F,i),this.emit("missingKey",U,d,K,b)};this.options.saveMissing&&(this.options.saveMissingPlurals&&T?q.forEach(U=>{const K=this.pluralResolver.getSuffixes(U,i);P&&i[`defaultValue${this.options.pluralSeparator}zero`]&&K.indexOf(`${this.options.pluralSeparator}zero`)<0&&K.push(`${this.options.pluralSeparator}zero`),K.forEach(D=>{H([U],c+D,i[`defaultValue${D}`]||N)})}):H(q,c,N))}b=this.extendTranslation(b,t,i,y,r),j&&b===c&&this.options.appendNamespaceToMissingKey&&(b=`${d}${m}${c}`),(j||k)&&this.options.parseMissingKeyHandler&&(b=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${d}${m}${c}`:c,k?b:void 0,i))}return a?(y.res=b,y.usedParams=this.getUsedParamsDetails(i),y):b}extendTranslation(t,n,r,i,a){var u,d;if((u=this.i18nFormat)!=null&&u.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...r},r.lng||this.language||i.usedLng,i.usedNS,i.usedKey,{resolved:i});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init({...r,interpolation:{...this.options.interpolation,...r.interpolation}});const m=Gt(t)&&(((d=r==null?void 0:r.interpolation)==null?void 0:d.skipOnVariables)!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let g;if(m){const y=t.match(this.interpolator.nestingRegexp);g=y&&y.length}let v=r.replace&&!Gt(r.replace)?r.replace:r;if(this.options.interpolation.defaultVariables&&(v={...this.options.interpolation.defaultVariables,...v}),t=this.interpolator.interpolate(t,v,r.lng||this.language||i.usedLng,r),m){const y=t.match(this.interpolator.nestingRegexp),b=y&&y.length;g<b&&(r.nest=!1)}!r.lng&&i&&i.res&&(r.lng=this.language||i.usedLng),r.nest!==!1&&(t=this.interpolator.nest(t,(...y)=>(a==null?void 0:a[0])===y[0]&&!r.context?(this.logger.warn(`It seems you are nesting recursively key: ${y[0]} in key: ${n[0]}`),null):this.translate(...y,n),r)),r.interpolation&&this.interpolator.reset()}const l=r.postProcess||this.options.postProcess,c=Gt(l)?[l]:l;return t!=null&&(c!=null&&c.length)&&r.applyPostProcessor!==!1&&(t=ej.handle(c,t,n,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...i,usedParams:this.getUsedParamsDetails(r)},...r}:r,this)),t}resolve(t,n={}){let r,i,a,l,c;return Gt(t)&&(t=[t]),Array.isArray(t)&&(t=t.map(u=>typeof u=="function"?bu(u,{...this.options,...n}):u)),t.forEach(u=>{if(this.isValidLookup(r))return;const d=this.extractFromKey(u,n),m=d.key;i=m;let g=d.namespaces;this.options.fallbackNS&&(g=g.concat(this.options.fallbackNS));const v=n.count!==void 0&&!Gt(n.count),y=v&&!n.ordinal&&n.count===0,b=n.context!==void 0&&(Gt(n.context)||typeof n.context=="number")&&n.context!=="",x=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);g.forEach(S=>{var w,$;this.isValidLookup(r)||(c=S,!I_[`${x[0]}-${S}`]&&((w=this.utils)!=null&&w.hasLoadedNamespace)&&!(($=this.utils)!=null&&$.hasLoadedNamespace(c))&&(I_[`${x[0]}-${S}`]=!0,this.logger.warn(`key "${i}" for languages "${x.join(", ")}" won't get resolved as namespace "${c}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),x.forEach(O=>{var R;if(this.isValidLookup(r))return;l=O;const T=[m];if((R=this.i18nFormat)!=null&&R.addLookupKeys)this.i18nFormat.addLookupKeys(T,m,O,S,n);else{let M;v&&(M=this.pluralResolver.getSuffix(O,n.count,n));const P=`${this.options.pluralSeparator}zero`,N=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(v&&(n.ordinal&&M.indexOf(N)===0&&T.push(m+M.replace(N,this.options.pluralSeparator)),T.push(m+M),y&&T.push(m+P)),b){const I=`${m}${this.options.contextSeparator||"_"}${n.context}`;T.push(I),v&&(n.ordinal&&M.indexOf(N)===0&&T.push(I+M.replace(N,this.options.pluralSeparator)),T.push(I+M),y&&T.push(I+P))}}let _;for(;_=T.pop();)this.isValidLookup(r)||(a=_,r=this.getResource(O,S,_,n))}))})}),{res:r,usedKey:i,exactUsedKey:a,usedLng:l,usedNS:c}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,n,r,i={}){var a;return(a=this.i18nFormat)!=null&&a.getResource?this.i18nFormat.getResource(t,n,r,i):this.resourceStore.getResource(t,n,r,i)}getUsedParamsDetails(t={}){const n=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],r=t.replace&&!Gt(t.replace);let i=r?t.replace:t;if(r&&typeof t.count<"u"&&(i.count=t.count),this.options.interpolation.defaultVariables&&(i={...this.options.interpolation.defaultVariables,...i}),!r){i={...i};for(const a of n)delete i[a]}return i}static hasDefaultValue(t){const n="defaultValue";for(const r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&n===r.substring(0,n.length)&&t[r]!==void 0)return!0;return!1}}class M_{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Ya.create("languageUtils")}getScriptPartFromCode(t){if(t=Qf(t),!t||t.indexOf("-")<0)return null;const n=t.split("-");return n.length===2||(n.pop(),n[n.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(n.join("-"))}getLanguagePartFromCode(t){if(t=Qf(t),!t||t.indexOf("-")<0)return t;const n=t.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(t){if(Gt(t)&&t.indexOf("-")>-1){let n;try{n=Intl.getCanonicalLocales(t)[0]}catch{}return n&&this.options.lowerCaseLng&&(n=n.toLowerCase()),n||(this.options.lowerCaseLng?t.toLowerCase():t)}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let n;return t.forEach(r=>{if(n)return;const i=this.formatLanguageCode(r);(!this.options.supportedLngs||this.isSupportedCode(i))&&(n=i)}),!n&&this.options.supportedLngs&&t.forEach(r=>{if(n)return;const i=this.getScriptPartFromCode(r);if(this.isSupportedCode(i))return n=i;const a=this.getLanguagePartFromCode(r);if(this.isSupportedCode(a))return n=a;n=this.options.supportedLngs.find(l=>{if(l===a)return l;if(!(l.indexOf("-")<0&&a.indexOf("-")<0)&&(l.indexOf("-")>0&&a.indexOf("-")<0&&l.substring(0,l.indexOf("-"))===a||l.indexOf(a)===0&&a.length>1))return l})}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n}getFallbackCodes(t,n){if(!t)return[];if(typeof t=="function"&&(t=t(n)),Gt(t)&&(t=[t]),Array.isArray(t))return t;if(!n)return t.default||[];let r=t[n];return r||(r=t[this.getScriptPartFromCode(n)]),r||(r=t[this.formatLanguageCode(n)]),r||(r=t[this.getLanguagePartFromCode(n)]),r||(r=t.default),r||[]}toResolveHierarchy(t,n){const r=this.getFallbackCodes((n===!1?[]:n)||this.options.fallbackLng||[],t),i=[],a=l=>{l&&(this.isSupportedCode(l)?i.push(l):this.logger.warn(`rejecting language code not found in supportedLngs: ${l}`))};return Gt(t)&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&a(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&a(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&a(this.getLanguagePartFromCode(t))):Gt(t)&&a(this.formatLanguageCode(t)),r.forEach(l=>{i.indexOf(l)<0&&a(this.formatLanguageCode(l))}),i}}const P_={zero:0,one:1,two:2,few:3,many:4,other:5},A_={select:e=>e===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class KJ{constructor(t,n={}){this.languageUtils=t,this.options=n,this.logger=Ya.create("pluralResolver"),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(t,n={}){const r=Qf(t==="dev"?"en":t),i=n.ordinal?"ordinal":"cardinal",a=JSON.stringify({cleanedCode:r,type:i});if(a in this.pluralRulesCache)return this.pluralRulesCache[a];let l;try{l=new Intl.PluralRules(r,{type:i})}catch{if(typeof Intl>"u")return this.logger.error("No Intl support, please use an Intl polyfill!"),A_;if(!t.match(/-|_/))return A_;const u=this.languageUtils.getLanguagePartFromCode(t);l=this.getRule(u,n)}return this.pluralRulesCache[a]=l,l}needsPlural(t,n={}){let r=this.getRule(t,n);return r||(r=this.getRule("dev",n)),(r==null?void 0:r.resolvedOptions().pluralCategories.length)>1}getPluralFormsOfKey(t,n,r={}){return this.getSuffixes(t,r).map(i=>`${n}${i}`)}getSuffixes(t,n={}){let r=this.getRule(t,n);return r||(r=this.getRule("dev",n)),r?r.resolvedOptions().pluralCategories.sort((i,a)=>P_[i]-P_[a]).map(i=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${i}`):[]}getSuffix(t,n,r={}){const i=this.getRule(t,r);return i?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${i.select(n)}`:(this.logger.warn(`no plural rule found for: ${t}`),this.getSuffix("dev",n,r))}}const z_=(e,t,n,r=".",i=!0)=>{let a=DJ(e,t,n);return!a&&i&&Gt(n)&&(a=Vx(e,n,r),a===void 0&&(a=Vx(t,n,r))),a},_b=e=>e.replace(/\$/g,"$$$$");class j_{constructor(t={}){var n;this.logger=Ya.create("interpolator"),this.options=t,this.format=((n=t==null?void 0:t.interpolation)==null?void 0:n.format)||(r=>r),this.init(t)}init(t={}){t.interpolation||(t.interpolation={escapeValue:!0});const{escape:n,escapeValue:r,useRawValueToEscape:i,prefix:a,prefixEscaped:l,suffix:c,suffixEscaped:u,formatSeparator:d,unescapeSuffix:m,unescapePrefix:g,nestingPrefix:v,nestingPrefixEscaped:y,nestingSuffix:b,nestingSuffixEscaped:x,nestingOptionsSeparator:S,maxReplaces:w,alwaysFormat:$}=t.interpolation;this.escape=n!==void 0?n:kJ,this.escapeValue=r!==void 0?r:!0,this.useRawValueToEscape=i!==void 0?i:!1,this.prefix=a?gs(a):l||"{{",this.suffix=c?gs(c):u||"}}",this.formatSeparator=d||",",this.unescapePrefix=m?"":g||"-",this.unescapeSuffix=this.unescapePrefix?"":m||"",this.nestingPrefix=v?gs(v):y||gs("$t("),this.nestingSuffix=b?gs(b):x||gs(")"),this.nestingOptionsSeparator=S||",",this.maxReplaces=w||1e3,this.alwaysFormat=$!==void 0?$:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const t=(n,r)=>(n==null?void 0:n.source)===r?(n.lastIndex=0,n):new RegExp(r,"g");this.regexp=t(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=t(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=t(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(t,n,r,i){var y;let a,l,c;const u=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},d=b=>{if(b.indexOf(this.formatSeparator)<0){const $=z_(n,u,b,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format($,void 0,r,{...i,...n,interpolationkey:b}):$}const x=b.split(this.formatSeparator),S=x.shift().trim(),w=x.join(this.formatSeparator).trim();return this.format(z_(n,u,S,this.options.keySeparator,this.options.ignoreJSONStructure),w,r,{...i,...n,interpolationkey:S})};this.resetRegExp();const m=(i==null?void 0:i.missingInterpolationHandler)||this.options.missingInterpolationHandler,g=((y=i==null?void 0:i.interpolation)==null?void 0:y.skipOnVariables)!==void 0?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:b=>_b(b)},{regex:this.regexp,safeValue:b=>this.escapeValue?_b(this.escape(b)):_b(b)}].forEach(b=>{for(c=0;a=b.regex.exec(t);){const x=a[1].trim();if(l=d(x),l===void 0)if(typeof m=="function"){const w=m(t,a,i);l=Gt(w)?w:""}else if(i&&Object.prototype.hasOwnProperty.call(i,x))l="";else if(g){l=a[0];continue}else this.logger.warn(`missed to pass in variable ${x} for interpolating ${t}`),l="";else!Gt(l)&&!this.useRawValueToEscape&&(l=O_(l));const S=b.safeValue(l);if(t=t.replace(a[0],S),g?(b.regex.lastIndex+=l.length,b.regex.lastIndex-=a[0].length):b.regex.lastIndex=0,c++,c>=this.maxReplaces)break}}),t}nest(t,n,r={}){let i,a,l;const c=(u,d)=>{const m=this.nestingOptionsSeparator;if(u.indexOf(m)<0)return u;const g=u.split(new RegExp(`${gs(m)}[ ]*{`));let v=`{${g[1]}`;u=g[0],v=this.interpolate(v,l);const y=v.match(/'/g),b=v.match(/"/g);(((y==null?void 0:y.length)??0)%2===0&&!b||((b==null?void 0:b.length)??0)%2!==0)&&(v=v.replace(/'/g,'"'));try{l=JSON.parse(v),d&&(l={...d,...l})}catch(x){return this.logger.warn(`failed parsing options string in nesting for key ${u}`,x),`${u}${m}${v}`}return l.defaultValue&&l.defaultValue.indexOf(this.prefix)>-1&&delete l.defaultValue,u};for(;i=this.nestingRegexp.exec(t);){let u=[];l={...r},l=l.replace&&!Gt(l.replace)?l.replace:l,l.applyPostProcessor=!1,delete l.defaultValue;const d=/{.*}/.test(i[1])?i[1].lastIndexOf("}")+1:i[1].indexOf(this.formatSeparator);if(d!==-1&&(u=i[1].slice(d).split(this.formatSeparator).map(m=>m.trim()).filter(Boolean),i[1]=i[1].slice(0,d)),a=n(c.call(this,i[1].trim(),l),l),a&&i[0]===t&&!Gt(a))return a;Gt(a)||(a=O_(a)),a||(this.logger.warn(`missed to resolve ${i[1]} for nesting ${t}`),a=""),u.length&&(a=u.reduce((m,g)=>this.format(m,g,r.lng,{...r,interpolationkey:i[1].trim()}),a.trim())),t=t.replace(i[0],a),this.regexp.lastIndex=0}return t}}const WJ=e=>{let t=e.toLowerCase().trim();const n={};if(e.indexOf("(")>-1){const r=e.split("(");t=r[0].toLowerCase().trim();const i=r[1].substring(0,r[1].length-1);t==="currency"&&i.indexOf(":")<0?n.currency||(n.currency=i.trim()):t==="relativetime"&&i.indexOf(":")<0?n.range||(n.range=i.trim()):i.split(";").forEach(l=>{if(l){const[c,...u]=l.split(":"),d=u.join(":").trim().replace(/^'+|'+$/g,""),m=c.trim();n[m]||(n[m]=d),d==="false"&&(n[m]=!1),d==="true"&&(n[m]=!0),isNaN(d)||(n[m]=parseInt(d,10))}})}return{formatName:t,formatOptions:n}},D_=e=>{const t={};return(n,r,i)=>{let a=i;i&&i.interpolationkey&&i.formatParams&&i.formatParams[i.interpolationkey]&&i[i.interpolationkey]&&(a={...a,[i.interpolationkey]:void 0});const l=r+JSON.stringify(a);let c=t[l];return c||(c=e(Qf(r),i),t[l]=c),c(n)}},GJ=e=>(t,n,r)=>e(Qf(n),r)(t);class XJ{constructor(t={}){this.logger=Ya.create("formatter"),this.options=t,this.init(t)}init(t,n={interpolation:{}}){this.formatSeparator=n.interpolation.formatSeparator||",";const r=n.cacheInBuiltFormats?D_:GJ;this.formats={number:r((i,a)=>{const l=new Intl.NumberFormat(i,{...a});return c=>l.format(c)}),currency:r((i,a)=>{const l=new Intl.NumberFormat(i,{...a,style:"currency"});return c=>l.format(c)}),datetime:r((i,a)=>{const l=new Intl.DateTimeFormat(i,{...a});return c=>l.format(c)}),relativetime:r((i,a)=>{const l=new Intl.RelativeTimeFormat(i,{...a});return c=>l.format(c,a.range||"day")}),list:r((i,a)=>{const l=new Intl.ListFormat(i,{...a});return c=>l.format(c)})}}add(t,n){this.formats[t.toLowerCase().trim()]=n}addCached(t,n){this.formats[t.toLowerCase().trim()]=D_(n)}format(t,n,r,i={}){const a=n.split(this.formatSeparator);if(a.length>1&&a[0].indexOf("(")>1&&a[0].indexOf(")")<0&&a.find(c=>c.indexOf(")")>-1)){const c=a.findIndex(u=>u.indexOf(")")>-1);a[0]=[a[0],...a.splice(1,c)].join(this.formatSeparator)}return a.reduce((c,u)=>{var g;const{formatName:d,formatOptions:m}=WJ(u);if(this.formats[d]){let v=c;try{const y=((g=i==null?void 0:i.formatParams)==null?void 0:g[i.interpolationkey])||{},b=y.locale||y.lng||i.locale||i.lng||r;v=this.formats[d](c,b,{...m,...i,...y})}catch(y){this.logger.warn(y)}return v}else this.logger.warn(`there was no format function for ${d}`);return c},t)}}const QJ=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)};class YJ extends gv{constructor(t,n,r,i={}){var a,l;super(),this.backend=t,this.store=n,this.services=r,this.languageUtils=r.languageUtils,this.options=i,this.logger=Ya.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=i.maxParallelReads||10,this.readingCalls=0,this.maxRetries=i.maxRetries>=0?i.maxRetries:5,this.retryTimeout=i.retryTimeout>=1?i.retryTimeout:350,this.state={},this.queue=[],(l=(a=this.backend)==null?void 0:a.init)==null||l.call(a,r,i.backend,i)}queueLoad(t,n,r,i){const a={},l={},c={},u={};return t.forEach(d=>{let m=!0;n.forEach(g=>{const v=`${d}|${g}`;!r.reload&&this.store.hasResourceBundle(d,g)?this.state[v]=2:this.state[v]<0||(this.state[v]===1?l[v]===void 0&&(l[v]=!0):(this.state[v]=1,m=!1,l[v]===void 0&&(l[v]=!0),a[v]===void 0&&(a[v]=!0),u[g]===void 0&&(u[g]=!0)))}),m||(c[d]=!0)}),(Object.keys(a).length||Object.keys(l).length)&&this.queue.push({pending:l,pendingCount:Object.keys(l).length,loaded:{},errors:[],callback:i}),{toLoad:Object.keys(a),pending:Object.keys(l),toLoadLanguages:Object.keys(c),toLoadNamespaces:Object.keys(u)}}loaded(t,n,r){const i=t.split("|"),a=i[0],l=i[1];n&&this.emit("failedLoading",a,l,n),!n&&r&&this.store.addResourceBundle(a,l,r,void 0,void 0,{skipCopy:!0}),this.state[t]=n?-1:2,n&&r&&(this.state[t]=0);const c={};this.queue.forEach(u=>{jJ(u.loaded,[a],l),QJ(u,t),n&&u.errors.push(n),u.pendingCount===0&&!u.done&&(Object.keys(u.loaded).forEach(d=>{c[d]||(c[d]={});const m=u.loaded[d];m.length&&m.forEach(g=>{c[d][g]===void 0&&(c[d][g]=!0)})}),u.done=!0,u.errors.length?u.callback(u.errors):u.callback())}),this.emit("loaded",c),this.queue=this.queue.filter(u=>!u.done)}read(t,n,r,i=0,a=this.retryTimeout,l){if(!t.length)return l(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:n,fcName:r,tried:i,wait:a,callback:l});return}this.readingCalls++;const c=(d,m)=>{if(this.readingCalls--,this.waitingReads.length>0){const g=this.waitingReads.shift();this.read(g.lng,g.ns,g.fcName,g.tried,g.wait,g.callback)}if(d&&m&&i<this.maxRetries){setTimeout(()=>{this.read.call(this,t,n,r,i+1,a*2,l)},a);return}l(d,m)},u=this.backend[r].bind(this.backend);if(u.length===2){try{const d=u(t,n);d&&typeof d.then=="function"?d.then(m=>c(null,m)).catch(c):c(null,d)}catch(d){c(d)}return}return u(t,n,c)}prepareLoading(t,n,r={},i){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),i&&i();Gt(t)&&(t=this.languageUtils.toResolveHierarchy(t)),Gt(n)&&(n=[n]);const a=this.queueLoad(t,n,r,i);if(!a.toLoad.length)return a.pending.length||i(),null;a.toLoad.forEach(l=>{this.loadOne(l)})}load(t,n,r){this.prepareLoading(t,n,{},r)}reload(t,n,r){this.prepareLoading(t,n,{reload:!0},r)}loadOne(t,n=""){const r=t.split("|"),i=r[0],a=r[1];this.read(i,a,"read",void 0,void 0,(l,c)=>{l&&this.logger.warn(`${n}loading namespace ${a} for language ${i} failed`,l),!l&&c&&this.logger.log(`${n}loaded namespace ${a} for language ${i}`,c),this.loaded(t,l,c)})}saveMissing(t,n,r,i,a,l={},c=()=>{}){var u,d,m,g,v;if((d=(u=this.services)==null?void 0:u.utils)!=null&&d.hasLoadedNamespace&&!((g=(m=this.services)==null?void 0:m.utils)!=null&&g.hasLoadedNamespace(n))){this.logger.warn(`did not save key "${r}" as the namespace "${n}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(r==null||r==="")){if((v=this.backend)!=null&&v.create){const y={...l,isUpdate:a},b=this.backend.create.bind(this.backend);if(b.length<6)try{let x;b.length===5?x=b(t,n,r,i,y):x=b(t,n,r,i),x&&typeof x.then=="function"?x.then(S=>c(null,S)).catch(c):c(null,x)}catch(x){c(x)}else b(t,n,r,i,c,y)}!t||!t[0]||this.store.addResource(t[0],n,r,i)}}}const Nb=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if(typeof e[1]=="object"&&(t=e[1]),Gt(e[1])&&(t.defaultValue=e[1]),Gt(e[2])&&(t.tDescription=e[2]),typeof e[2]=="object"||typeof e[3]=="object"){const n=e[3]||e[2];Object.keys(n).forEach(r=>{t[r]=n[r]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),L_=e=>{var t,n;return Gt(e.ns)&&(e.ns=[e.ns]),Gt(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),Gt(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),((n=(t=e.supportedLngs)==null?void 0:t.indexOf)==null?void 0:n.call(t,"cimode"))<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),typeof e.initImmediate=="boolean"&&(e.initAsync=e.initImmediate),e},ng=()=>{},ZJ=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(n=>{typeof e[n]=="function"&&(e[n]=e[n].bind(e))})},nj="__i18next_supportNoticeShown",JJ=()=>!!(typeof globalThis<"u"&&globalThis[nj]||typeof process<"u"&&Rb&&Rb.I18NEXT_NO_SUPPORT_NOTICE||typeof process<"u"&&Rb),eee=()=>{typeof globalThis<"u"&&(globalThis[nj]=!0)},tee=e=>{var t,n,r,i,a,l,c,u,d,m,g,v,y;return!!(((r=(n=(t=e==null?void 0:e.modules)==null?void 0:t.backend)==null?void 0:n.name)==null?void 0:r.indexOf("Locize"))>0||((c=(l=(a=(i=e==null?void 0:e.modules)==null?void 0:i.backend)==null?void 0:a.constructor)==null?void 0:l.name)==null?void 0:c.indexOf("Locize"))>0||(d=(u=e==null?void 0:e.options)==null?void 0:u.backend)!=null&&d.backends&&e.options.backend.backends.some(b=>{var x,S,w;return((x=b==null?void 0:b.name)==null?void 0:x.indexOf("Locize"))>0||((w=(S=b==null?void 0:b.constructor)==null?void 0:S.name)==null?void 0:w.indexOf("Locize"))>0})||(g=(m=e==null?void 0:e.options)==null?void 0:m.backend)!=null&&g.projectId||(y=(v=e==null?void 0:e.options)==null?void 0:v.backend)!=null&&y.backendOptions&&e.options.backend.backendOptions.some(b=>b==null?void 0:b.projectId))};class xf extends gv{constructor(t={},n){if(super(),this.options=L_(t),this.services={},this.logger=Ya,this.modules={external:[]},ZJ(this),n&&!this.isInitialized&&!t.isClone){if(!this.options.initAsync)return this.init(t,n),this;setTimeout(()=>{this.init(t,n)},0)}}init(t={},n){this.isInitializing=!0,typeof t=="function"&&(n=t,t={}),t.defaultNS==null&&t.ns&&(Gt(t.ns)?t.defaultNS=t.ns:t.ns.indexOf("translation")<0&&(t.defaultNS=t.ns[0]));const r=Nb();this.options={...r,...this.options,...L_(t)},this.options.interpolation={...r.interpolation,...this.options.interpolation},t.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=t.keySeparator),t.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=t.nsSeparator),typeof this.options.overloadTranslationOptionHandler!="function"&&(this.options.overloadTranslationOptionHandler=r.overloadTranslationOptionHandler),this.options.showSupportNotice!==!1&&!tee(this)&&!JJ()&&(typeof console<"u"&&typeof console.info<"u"&&console.info("🌐 i18next is made possible by our own product, Locize — consider powering your project with managed localization (AI, CDN, integrations): https://locize.com 💙"),eee());const i=d=>d?typeof d=="function"?new d:d:null;if(!this.options.isClone){this.modules.logger?Ya.init(i(this.modules.logger),this.options):Ya.init(null,this.options);let d;this.modules.formatter?d=this.modules.formatter:d=XJ;const m=new M_(this.options);this.store=new N_(this.options.resources,this.options);const g=this.services;g.logger=Ya,g.resourceStore=this.store,g.languageUtils=m,g.pluralResolver=new KJ(m,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),this.options.interpolation.format&&this.options.interpolation.format!==r.interpolation.format&&this.logger.deprecate("init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting"),d&&(!this.options.interpolation.format||this.options.interpolation.format===r.interpolation.format)&&(g.formatter=i(d),g.formatter.init&&g.formatter.init(g,this.options),this.options.interpolation.format=g.formatter.format.bind(g.formatter)),g.interpolator=new j_(this.options),g.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},g.backendConnector=new YJ(i(this.modules.backend),g.resourceStore,g,this.options),g.backendConnector.on("*",(y,...b)=>{this.emit(y,...b)}),this.modules.languageDetector&&(g.languageDetector=i(this.modules.languageDetector),g.languageDetector.init&&g.languageDetector.init(g,this.options.detection,this.options)),this.modules.i18nFormat&&(g.i18nFormat=i(this.modules.i18nFormat),g.i18nFormat.init&&g.i18nFormat.init(this)),this.translator=new op(this.services,this.options),this.translator.on("*",(y,...b)=>{this.emit(y,...b)}),this.modules.external.forEach(y=>{y.init&&y.init(this)})}if(this.format=this.options.interpolation.format,n||(n=ng),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const d=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);d.length>0&&d[0]!=="dev"&&(this.options.lng=d[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(d=>{this[d]=(...m)=>this.store[d](...m)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(d=>{this[d]=(...m)=>(this.store[d](...m),this)});const c=ef(),u=()=>{const d=(m,g)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),c.resolve(g),n(m,g)};if(this.languages&&!this.isInitialized)return d(null,this.t.bind(this));this.changeLanguage(this.options.lng,d)};return this.options.resources||!this.options.initAsync?u():setTimeout(u,0),c}loadResources(t,n=ng){var a,l;let r=n;const i=Gt(t)?t:this.language;if(typeof t=="function"&&(r=t),!this.options.resources||this.options.partialBundledLanguages){if((i==null?void 0:i.toLowerCase())==="cimode"&&(!this.options.preload||this.options.preload.length===0))return r();const c=[],u=d=>{if(!d||d==="cimode")return;this.services.languageUtils.toResolveHierarchy(d).forEach(g=>{g!=="cimode"&&c.indexOf(g)<0&&c.push(g)})};i?u(i):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(m=>u(m)),(l=(a=this.options.preload)==null?void 0:a.forEach)==null||l.call(a,d=>u(d)),this.services.backendConnector.load(c,this.options.ns,d=>{!d&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),r(d)})}else r(null)}reloadResources(t,n,r){const i=ef();return typeof t=="function"&&(r=t,t=void 0),typeof n=="function"&&(r=n,n=void 0),t||(t=this.languages),n||(n=this.options.ns),r||(r=ng),this.services.backendConnector.reload(t,n,a=>{i.resolve(),r(a)}),i}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return t.type==="backend"&&(this.modules.backend=t),(t.type==="logger"||t.log&&t.warn&&t.error)&&(this.modules.logger=t),t.type==="languageDetector"&&(this.modules.languageDetector=t),t.type==="i18nFormat"&&(this.modules.i18nFormat=t),t.type==="postProcessor"&&ej.addPostProcessor(t),t.type==="formatter"&&(this.modules.formatter=t),t.type==="3rdParty"&&this.modules.external.push(t),this}setResolvedLanguage(t){if(!(!t||!this.languages)&&!(["cimode","dev"].indexOf(t)>-1)){for(let n=0;n<this.languages.length;n++){const r=this.languages[n];if(!(["cimode","dev"].indexOf(r)>-1)&&this.store.hasLanguageSomeTranslations(r)){this.resolvedLanguage=r;break}}!this.resolvedLanguage&&this.languages.indexOf(t)<0&&this.store.hasLanguageSomeTranslations(t)&&(this.resolvedLanguage=t,this.languages.unshift(t))}}changeLanguage(t,n){this.isLanguageChangingTo=t;const r=ef();this.emit("languageChanging",t);const i=c=>{this.language=c,this.languages=this.services.languageUtils.toResolveHierarchy(c),this.resolvedLanguage=void 0,this.setResolvedLanguage(c)},a=(c,u)=>{u?this.isLanguageChangingTo===t&&(i(u),this.translator.changeLanguage(u),this.isLanguageChangingTo=void 0,this.emit("languageChanged",u),this.logger.log("languageChanged",u)):this.isLanguageChangingTo=void 0,r.resolve((...d)=>this.t(...d)),n&&n(c,(...d)=>this.t(...d))},l=c=>{var m,g;!t&&!c&&this.services.languageDetector&&(c=[]);const u=Gt(c)?c:c&&c[0],d=this.store.hasLanguageSomeTranslations(u)?u:this.services.languageUtils.getBestMatchFromCodes(Gt(c)?[c]:c);d&&(this.language||i(d),this.translator.language||this.translator.changeLanguage(d),(g=(m=this.services.languageDetector)==null?void 0:m.cacheUserLanguage)==null||g.call(m,d)),this.loadResources(d,v=>{a(v,d)})};return!t&&this.services.languageDetector&&!this.services.languageDetector.async?l(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(l):this.services.languageDetector.detect(l):l(t),r}getFixedT(t,n,r){const i=(a,l,...c)=>{let u;typeof l!="object"?u=this.options.overloadTranslationOptionHandler([a,l].concat(c)):u={...l},u.lng=u.lng||i.lng,u.lngs=u.lngs||i.lngs,u.ns=u.ns||i.ns,u.keyPrefix!==""&&(u.keyPrefix=u.keyPrefix||r||i.keyPrefix);const d={...this.options,...u};typeof u.keyPrefix=="function"&&(u.keyPrefix=bu(u.keyPrefix,d));const m=this.options.keySeparator||".";let g;return u.keyPrefix&&Array.isArray(a)?g=a.map(v=>(typeof v=="function"&&(v=bu(v,d)),`${u.keyPrefix}${m}${v}`)):(typeof a=="function"&&(a=bu(a,d)),g=u.keyPrefix?`${u.keyPrefix}${m}${a}`:a),this.t(g,u)};return Gt(t)?i.lng=t:i.lngs=t,i.ns=n,i.keyPrefix=r,i}t(...t){var n;return(n=this.translator)==null?void 0:n.translate(...t)}exists(...t){var n;return(n=this.translator)==null?void 0:n.exists(...t)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t,n={}){if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const r=n.lng||this.resolvedLanguage||this.languages[0],i=this.options?this.options.fallbackLng:!1,a=this.languages[this.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const l=(c,u)=>{const d=this.services.backendConnector.state[`${c}|${u}`];return d===-1||d===0||d===2};if(n.precheck){const c=n.precheck(this,l);if(c!==void 0)return c}return!!(this.hasResourceBundle(r,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||l(r,t)&&(!i||l(a,t)))}loadNamespaces(t,n){const r=ef();return this.options.ns?(Gt(t)&&(t=[t]),t.forEach(i=>{this.options.ns.indexOf(i)<0&&this.options.ns.push(i)}),this.loadResources(i=>{r.resolve(),n&&n(i)}),r):(n&&n(),Promise.resolve())}loadLanguages(t,n){const r=ef();Gt(t)&&(t=[t]);const i=this.options.preload||[],a=t.filter(l=>i.indexOf(l)<0&&this.services.languageUtils.isSupportedCode(l));return a.length?(this.options.preload=i.concat(a),this.loadResources(l=>{r.resolve(),n&&n(l)}),r):(n&&n(),Promise.resolve())}dir(t){var i,a;if(t||(t=this.resolvedLanguage||(((i=this.languages)==null?void 0:i.length)>0?this.languages[0]:this.language)),!t)return"rtl";try{const l=new Intl.Locale(t);if(l&&l.getTextInfo){const c=l.getTextInfo();if(c&&c.direction)return c.direction}}catch{}const n=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],r=((a=this.services)==null?void 0:a.languageUtils)||new M_(Nb());return t.toLowerCase().indexOf("-latn")>1?"ltr":n.indexOf(r.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(t={},n){const r=new xf(t,n);return r.createInstance=xf.createInstance,r}cloneInstance(t={},n=ng){const r=t.forkResourceStore;r&&delete t.forkResourceStore;const i={...this.options,...t,isClone:!0},a=new xf(i);if((t.debug!==void 0||t.prefix!==void 0)&&(a.logger=a.logger.clone(t)),["store","services","language"].forEach(c=>{a[c]=this[c]}),a.services={...this.services},a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},r){const c=Object.keys(this.store.data).reduce((u,d)=>(u[d]={...this.store.data[d]},u[d]=Object.keys(u[d]).reduce((m,g)=>(m[g]={...u[d][g]},m),u[d]),u),{});a.store=new N_(c,i),a.services.resourceStore=a.store}if(t.interpolation){const u={...Nb().interpolation,...this.options.interpolation,...t.interpolation},d={...i,interpolation:u};a.services.interpolator=new j_(d)}return a.translator=new op(a.services,i),a.translator.on("*",(c,...u)=>{a.emit(c,...u)}),a.init(i,n),a.translator.options=i,a.translator.backendConnector.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const pi=xf.createInstance();pi.createInstance;pi.dir;pi.init;pi.loadResources;pi.reloadResources;pi.use;pi.changeLanguage;pi.getFixedT;pi.t;pi.exists;pi.setDefaultNamespace;pi.hasLoadedNamespace;pi.loadNamespaces;pi.loadLanguages;const nee=(e,t,n,r)=>{var a,l,c,u;const i=[n,{code:t,...r||{}}];if((l=(a=e==null?void 0:e.services)==null?void 0:a.logger)!=null&&l.forward)return e.services.logger.forward(i,"warn","react-i18next::",!0);Ks(i[0])&&(i[0]=`react-i18next:: ${i[0]}`),(u=(c=e==null?void 0:e.services)==null?void 0:c.logger)!=null&&u.warn?e.services.logger.warn(...i):console!=null&&console.warn&&console.warn(...i)},k_={},Ux=(e,t,n,r)=>{Ks(n)&&k_[n]||(Ks(n)&&(k_[n]=new Date),nee(e,t,n,r))},rj=(e,t)=>()=>{if(e.isInitialized)t();else{const n=()=>{setTimeout(()=>{e.off("initialized",n)},0),t()};e.on("initialized",n)}},qx=(e,t,n)=>{e.loadNamespaces(t,rj(e,n))},B_=(e,t,n,r)=>{if(Ks(n)&&(n=[n]),e.options.preload&&e.options.preload.indexOf(t)>-1)return qx(e,n,r);n.forEach(i=>{e.options.ns.indexOf(i)<0&&e.options.ns.push(i)}),e.loadLanguages(t,rj(e,r))},ree=(e,t,n={})=>!t.languages||!t.languages.length?(Ux(t,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:t.languages}),!0):t.hasLoadedNamespace(e,{lng:n.lng,precheck:(r,i)=>{if(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&r.services.backendConnector.backend&&r.isLanguageChangingTo&&!i(r.isLanguageChangingTo,e))return!1}}),Ks=e=>typeof e=="string",iee=e=>typeof e=="object"&&e!==null,aee=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,oee={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},lee=e=>oee[e],see=e=>e.replace(aee,lee);let Kx={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:see,transDefaultProps:void 0};const cee=(e={})=>{Kx={...Kx,...e}},uee=()=>Kx;let ij;const dee=e=>{ij=e},fee=()=>ij,hee={type:"3rdParty",init(e){cee(e.options.react),dee(e)}},mee=h.createContext();class gee{constructor(){this.usedNamespaces={}}addUsedNamespaces(t){t.forEach(n=>{this.usedNamespaces[n]||(this.usedNamespaces[n]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}var Ib={exports:{}},Mb={};/**
|
|
348
|
-
* @license React
|
|
349
|
-
* use-sync-external-store-shim.production.js
|
|
350
|
-
*
|
|
351
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
352
|
-
*
|
|
353
|
-
* This source code is licensed under the MIT license found in the
|
|
354
|
-
* LICENSE file in the root directory of this source tree.
|
|
355
|
-
*/var H_;function pee(){if(H_)return Mb;H_=1;var e=Tp();function t(g,v){return g===v&&(g!==0||1/g===1/v)||g!==g&&v!==v}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,i=e.useEffect,a=e.useLayoutEffect,l=e.useDebugValue;function c(g,v){var y=v(),b=r({inst:{value:y,getSnapshot:v}}),x=b[0].inst,S=b[1];return a(function(){x.value=y,x.getSnapshot=v,u(x)&&S({inst:x})},[g,y,v]),i(function(){return u(x)&&S({inst:x}),g(function(){u(x)&&S({inst:x})})},[g]),l(y),y}function u(g){var v=g.getSnapshot;g=g.value;try{var y=v();return!n(g,y)}catch{return!0}}function d(g,v){return v()}var m=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?d:c;return Mb.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:m,Mb}var F_;function vee(){return F_||(F_=1,Ib.exports=pee()),Ib.exports}var yee=vee();const bee=(e,t)=>{if(Ks(t))return t;if(iee(t)&&Ks(t.defaultValue))return t.defaultValue;if(typeof e=="function")return"";if(Array.isArray(e)){const n=e[e.length-1];return typeof n=="function"?"":n}return e},See={t:bee,ready:!1},xee=()=>()=>{},nd=(e,t={})=>{var N,I,B;const{i18n:n}=t,{i18n:r,defaultNS:i}=h.useContext(mee)||{},a=n||r||fee();a&&!a.reportNamespaces&&(a.reportNamespaces=new gee),a||Ux(a,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");const l=h.useMemo(()=>{var A;return{...uee(),...(A=a==null?void 0:a.options)==null?void 0:A.react,...t}},[a,t]),{useSuspense:c,keyPrefix:u}=l,d=i||((N=a==null?void 0:a.options)==null?void 0:N.defaultNS),m=Ks(d)?[d]:d||["translation"],g=h.useMemo(()=>m,m);(B=(I=a==null?void 0:a.reportNamespaces)==null?void 0:I.addUsedNamespaces)==null||B.call(I,g);const v=h.useRef(0),y=h.useCallback(A=>{if(!a)return xee;const{bindI18n:k,bindI18nStore:j}=l,V=()=>{v.current+=1,A()};return k&&a.on(k,V),j&&a.store.on(j,V),()=>{k&&k.split(" ").forEach(z=>a.off(z,V)),j&&j.split(" ").forEach(z=>a.store.off(z,V))}},[a,l]),b=h.useRef(),x=h.useCallback(()=>{if(!a)return See;const A=!!(a.isInitialized||a.initializedStoreOnce)&&g.every(q=>ree(q,a,l)),k=t.lng||a.language,j=v.current,V=b.current;if(V&&V.ready===A&&V.lng===k&&V.keyPrefix===u&&V.revision===j)return V;const F={t:a.getFixedT(k,l.nsMode==="fallback"?g:g[0],u),ready:A,lng:k,keyPrefix:u,revision:j};return b.current=F,F},[a,g,u,l,t.lng]),[S,w]=h.useState(0),{t:$,ready:O}=yee.useSyncExternalStore(y,x,x);h.useEffect(()=>{if(a&&!O&&!c){const A=()=>w(k=>k+1);t.lng?B_(a,t.lng,g,A):qx(a,g,A)}},[a,t.lng,g,O,c,S]);const T=a||{},_=h.useRef(null),R=h.useRef(),M=A=>{const k=Object.getOwnPropertyDescriptors(A);k.__original&&delete k.__original;const j=Object.create(Object.getPrototypeOf(A),k);if(!Object.prototype.hasOwnProperty.call(j,"__original"))try{Object.defineProperty(j,"__original",{value:A,writable:!1,enumerable:!1,configurable:!1})}catch{}return j},P=h.useMemo(()=>{const A=T,k=A==null?void 0:A.language;let j=A;A&&(_.current&&_.current.__original===A?R.current!==k?(j=M(A),_.current=j,R.current=k):j=_.current:(j=M(A),_.current=j,R.current=k));const V=!O&&!c?(...F)=>(Ux(a,"USE_T_BEFORE_READY","useTranslation: t was called before ready. When using useSuspense: false, make sure to check the ready flag before using t."),$(...F)):$,z=[V,j,O];return z.t=V,z.i18n=j,z.ready=O,z},[$,T,O,T.resolvedLanguage,T.language,T.languages]);if(a&&c&&!O)throw new Promise(A=>{const k=()=>A();t.lng?B_(a,t.lng,g,k):qx(a,g,k)});return P};pi.use(hee).init({lng:"en",resources:{en:{translation:{"processes.launch":"Launch","processes.cancel":"Cancel","processes.filterAll":"All","processes.filterActive":"Active","processes.filterHideCompleted":"Hide completed","processes.filterErrors":"Errors","processes.showDetails":"Show details","processes.showSpecial":"Show special","status.idle":"Idle","status.scheduled":"Scheduled","status.running":"Running","status.done":"Done","status.failed":"Failed","status.cancel_requested":"Cancel requested","status.cancelling":"Cancelling","status.cancelled":"Cancelled","common.noData":"No data"}}},interpolation:{escapeValue:!1}});const aj=h.createContext(void 0),Cee=()=>{const e=h.useContext(aj);if(!e)throw new Error("tsrQueryClient not initialized. Use TsRestReactQueryProvider to initialize one.");return e};var Rn;(function(e){e.assertEqual=i=>{};function t(i){}e.assertIs=t;function n(i){throw new Error}e.assertNever=n,e.arrayToEnum=i=>{const a={};for(const l of i)a[l]=l;return a},e.getValidEnumValues=i=>{const a=e.objectKeys(i).filter(c=>typeof i[i[c]]!="number"),l={};for(const c of a)l[c]=i[c];return e.objectValues(l)},e.objectValues=i=>e.objectKeys(i).map(function(a){return i[a]}),e.objectKeys=typeof Object.keys=="function"?i=>Object.keys(i):i=>{const a=[];for(const l in i)Object.prototype.hasOwnProperty.call(i,l)&&a.push(l);return a},e.find=(i,a)=>{for(const l of i)if(a(l))return l},e.isInteger=typeof Number.isInteger=="function"?i=>Number.isInteger(i):i=>typeof i=="number"&&Number.isFinite(i)&&Math.floor(i)===i;function r(i,a=" | "){return i.map(l=>typeof l=="string"?`'${l}'`:l).join(a)}e.joinValues=r,e.jsonStringifyReplacer=(i,a)=>typeof a=="bigint"?a.toString():a})(Rn||(Rn={}));var V_;(function(e){e.mergeShapes=(t,n)=>({...t,...n})})(V_||(V_={}));const St=Rn.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),Sl=e=>{switch(typeof e){case"undefined":return St.undefined;case"string":return St.string;case"number":return Number.isNaN(e)?St.nan:St.number;case"boolean":return St.boolean;case"function":return St.function;case"bigint":return St.bigint;case"symbol":return St.symbol;case"object":return Array.isArray(e)?St.array:e===null?St.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?St.promise:typeof Map<"u"&&e instanceof Map?St.map:typeof Set<"u"&&e instanceof Set?St.set:typeof Date<"u"&&e instanceof Date?St.date:St.object;default:return St.unknown}},et=Rn.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class Bo extends Error{get errors(){return this.issues}constructor(t){super(),this.issues=[],this.addIssue=r=>{this.issues=[...this.issues,r]},this.addIssues=(r=[])=>{this.issues=[...this.issues,...r]};const n=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,n):this.__proto__=n,this.name="ZodError",this.issues=t}format(t){const n=t||function(a){return a.message},r={_errors:[]},i=a=>{for(const l of a.issues)if(l.code==="invalid_union")l.unionErrors.map(i);else if(l.code==="invalid_return_type")i(l.returnTypeError);else if(l.code==="invalid_arguments")i(l.argumentsError);else if(l.path.length===0)r._errors.push(n(l));else{let c=r,u=0;for(;u<l.path.length;){const d=l.path[u];u===l.path.length-1?(c[d]=c[d]||{_errors:[]},c[d]._errors.push(n(l))):c[d]=c[d]||{_errors:[]},c=c[d],u++}}};return i(this),r}static assert(t){if(!(t instanceof Bo))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,Rn.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=n=>n.message){const n={},r=[];for(const i of this.issues)if(i.path.length>0){const a=i.path[0];n[a]=n[a]||[],n[a].push(t(i))}else r.push(t(i));return{formErrors:r,fieldErrors:n}}get formErrors(){return this.flatten()}}Bo.create=e=>new Bo(e);const Wx=(e,t)=>{let n;switch(e.code){case et.invalid_type:e.received===St.undefined?n="Required":n=`Expected ${e.expected}, received ${e.received}`;break;case et.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,Rn.jsonStringifyReplacer)}`;break;case et.unrecognized_keys:n=`Unrecognized key(s) in object: ${Rn.joinValues(e.keys,", ")}`;break;case et.invalid_union:n="Invalid input";break;case et.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${Rn.joinValues(e.options)}`;break;case et.invalid_enum_value:n=`Invalid enum value. Expected ${Rn.joinValues(e.options)}, received '${e.received}'`;break;case et.invalid_arguments:n="Invalid function arguments";break;case et.invalid_return_type:n="Invalid function return type";break;case et.invalid_date:n="Invalid date";break;case et.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:Rn.assertNever(e.validation):e.validation!=="regex"?n=`Invalid ${e.validation}`:n="Invalid";break;case et.too_small:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="bigint"?n=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:n="Invalid input";break;case et.too_big:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?n=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:n="Invalid input";break;case et.custom:n="Invalid input";break;case et.invalid_intersection_types:n="Intersection results could not be merged";break;case et.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case et.not_finite:n="Number must be finite";break;default:n=t.defaultError,Rn.assertNever(e)}return{message:n}};let wee=Wx;function Eee(){return wee}const $ee=e=>{const{data:t,path:n,errorMaps:r,issueData:i}=e,a=[...n,...i.path||[]],l={...i,path:a};if(i.message!==void 0)return{...i,path:a,message:i.message};let c="";const u=r.filter(d=>!!d).slice().reverse();for(const d of u)c=d(l,{data:t,defaultError:c}).message;return{...i,path:a,message:c}};function mt(e,t){const n=Eee(),r=$ee({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===Wx?void 0:Wx].filter(i=>!!i)});e.common.issues.push(r)}class mi{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,n){const r=[];for(const i of n){if(i.status==="aborted")return Ut;i.status==="dirty"&&t.dirty(),r.push(i.value)}return{status:t.value,value:r}}static async mergeObjectAsync(t,n){const r=[];for(const i of n){const a=await i.key,l=await i.value;r.push({key:a,value:l})}return mi.mergeObjectSync(t,r)}static mergeObjectSync(t,n){const r={};for(const i of n){const{key:a,value:l}=i;if(a.status==="aborted"||l.status==="aborted")return Ut;a.status==="dirty"&&t.dirty(),l.status==="dirty"&&t.dirty(),a.value!=="__proto__"&&(typeof l.value<"u"||i.alwaysSet)&&(r[a.value]=l.value)}return{status:t.value,value:r}}}const Ut=Object.freeze({status:"aborted"}),hf=e=>({status:"dirty",value:e}),xa=e=>({status:"valid",value:e}),U_=e=>e.status==="aborted",q_=e=>e.status==="dirty",Vu=e=>e.status==="valid",lp=e=>typeof Promise<"u"&&e instanceof Promise;var Rt;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t==null?void 0:t.message})(Rt||(Rt={}));class ro{constructor(t,n,r,i){this._cachedPath=[],this.parent=t,this.data=n,this._path=r,this._key=i}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const K_=(e,t)=>{if(Vu(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const n=new Bo(e.common.issues);return this._error=n,this._error}}};function tn(e){if(!e)return{};const{errorMap:t,invalid_type_error:n,required_error:r,description:i}=e;if(t&&(n||r))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:i}:{errorMap:(l,c)=>{const{message:u}=e;return l.code==="invalid_enum_value"?{message:u??c.defaultError}:typeof c.data>"u"?{message:u??r??c.defaultError}:l.code!=="invalid_type"?{message:c.defaultError}:{message:u??n??c.defaultError}},description:i}}class bn{get description(){return this._def.description}_getType(t){return Sl(t.data)}_getOrReturnCtx(t,n){return n||{common:t.parent.common,data:t.data,parsedType:Sl(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new mi,ctx:{common:t.parent.common,data:t.data,parsedType:Sl(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){const n=this._parse(t);if(lp(n))throw new Error("Synchronous parse encountered promise.");return n}_parseAsync(t){const n=this._parse(t);return Promise.resolve(n)}parse(t,n){const r=this.safeParse(t,n);if(r.success)return r.data;throw r.error}safeParse(t,n){const r={common:{issues:[],async:(n==null?void 0:n.async)??!1,contextualErrorMap:n==null?void 0:n.errorMap},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Sl(t)},i=this._parseSync({data:t,path:r.path,parent:r});return K_(r,i)}"~validate"(t){var r,i;const n={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Sl(t)};if(!this["~standard"].async)try{const a=this._parseSync({data:t,path:[],parent:n});return Vu(a)?{value:a.value}:{issues:n.common.issues}}catch(a){(i=(r=a==null?void 0:a.message)==null?void 0:r.toLowerCase())!=null&&i.includes("encountered")&&(this["~standard"].async=!0),n.common={issues:[],async:!0}}return this._parseAsync({data:t,path:[],parent:n}).then(a=>Vu(a)?{value:a.value}:{issues:n.common.issues})}async parseAsync(t,n){const r=await this.safeParseAsync(t,n);if(r.success)return r.data;throw r.error}async safeParseAsync(t,n){const r={common:{issues:[],contextualErrorMap:n==null?void 0:n.errorMap,async:!0},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Sl(t)},i=this._parse({data:t,path:r.path,parent:r}),a=await(lp(i)?i:Promise.resolve(i));return K_(r,a)}refine(t,n){const r=i=>typeof n=="string"||typeof n>"u"?{message:n}:typeof n=="function"?n(i):n;return this._refinement((i,a)=>{const l=t(i),c=()=>a.addIssue({code:et.custom,...r(i)});return typeof Promise<"u"&&l instanceof Promise?l.then(u=>u?!0:(c(),!1)):l?!0:(c(),!1)})}refinement(t,n){return this._refinement((r,i)=>t(r)?!0:(i.addIssue(typeof n=="function"?n(r,i):n),!1))}_refinement(t){return new Ys({schema:this,typeName:Kt.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:n=>this["~validate"](n)}}optional(){return zo.create(this,this._def)}nullable(){return Zs.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return eo.create(this)}promise(){return pp.create(this,this._def)}or(t){return up.create([this,t],this._def)}and(t){return dp.create(this,t,this._def)}transform(t){return new Ys({...tn(this._def),schema:this,typeName:Kt.ZodEffects,effect:{type:"transform",transform:t}})}default(t){const n=typeof t=="function"?t:()=>t;return new vp({...tn(this._def),innerType:this,defaultValue:n,typeName:Kt.ZodDefault})}brand(){return new cj({typeName:Kt.ZodBranded,type:this,...tn(this._def)})}catch(t){const n=typeof t=="function"?t:()=>t;return new yp({...tn(this._def),innerType:this,catchValue:n,typeName:Kt.ZodCatch})}describe(t){const n=this.constructor;return new n({...this._def,description:t})}pipe(t){return G1.create(this,t)}readonly(){return bp.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const Oee=/^c[^\s-]{8,}$/i,Ree=/^[0-9a-z]+$/,Tee=/^[0-9A-HJKMNP-TV-Z]{26}$/i,_ee=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,Nee=/^[a-z0-9_-]{21}$/i,Iee=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,Mee=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,Pee=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,Aee="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let Pb;const zee=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,jee=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,Dee=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,Lee=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,kee=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,Bee=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,oj="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",Hee=new RegExp(`^${oj}$`);function lj(e){let t="[0-5]\\d";e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision==null&&(t=`${t}(\\.\\d+)?`);const n=e.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${t})${n}`}function Fee(e){return new RegExp(`^${lj(e)}$`)}function Vee(e){let t=`${oj}T${lj(e)}`;const n=[];return n.push(e.local?"Z?":"Z"),e.offset&&n.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${n.join("|")})`,new RegExp(`^${t}$`)}function Uee(e,t){return!!((t==="v4"||!t)&&zee.test(e)||(t==="v6"||!t)&&Dee.test(e))}function qee(e,t){if(!Iee.test(e))return!1;try{const[n]=e.split(".");if(!n)return!1;const r=n.replace(/-/g,"+").replace(/_/g,"/").padEnd(n.length+(4-n.length%4)%4,"="),i=JSON.parse(atob(r));return!(typeof i!="object"||i===null||"typ"in i&&(i==null?void 0:i.typ)!=="JWT"||!i.alg||t&&i.alg!==t)}catch{return!1}}function Kee(e,t){return!!((t==="v4"||!t)&&jee.test(e)||(t==="v6"||!t)&&Lee.test(e))}class Za extends bn{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==St.string){const a=this._getOrReturnCtx(t);return mt(a,{code:et.invalid_type,expected:St.string,received:a.parsedType}),Ut}const r=new mi;let i;for(const a of this._def.checks)if(a.kind==="min")t.data.length<a.value&&(i=this._getOrReturnCtx(t,i),mt(i,{code:et.too_small,minimum:a.value,type:"string",inclusive:!0,exact:!1,message:a.message}),r.dirty());else if(a.kind==="max")t.data.length>a.value&&(i=this._getOrReturnCtx(t,i),mt(i,{code:et.too_big,maximum:a.value,type:"string",inclusive:!0,exact:!1,message:a.message}),r.dirty());else if(a.kind==="length"){const l=t.data.length>a.value,c=t.data.length<a.value;(l||c)&&(i=this._getOrReturnCtx(t,i),l?mt(i,{code:et.too_big,maximum:a.value,type:"string",inclusive:!0,exact:!0,message:a.message}):c&&mt(i,{code:et.too_small,minimum:a.value,type:"string",inclusive:!0,exact:!0,message:a.message}),r.dirty())}else if(a.kind==="email")Pee.test(t.data)||(i=this._getOrReturnCtx(t,i),mt(i,{validation:"email",code:et.invalid_string,message:a.message}),r.dirty());else if(a.kind==="emoji")Pb||(Pb=new RegExp(Aee,"u")),Pb.test(t.data)||(i=this._getOrReturnCtx(t,i),mt(i,{validation:"emoji",code:et.invalid_string,message:a.message}),r.dirty());else if(a.kind==="uuid")_ee.test(t.data)||(i=this._getOrReturnCtx(t,i),mt(i,{validation:"uuid",code:et.invalid_string,message:a.message}),r.dirty());else if(a.kind==="nanoid")Nee.test(t.data)||(i=this._getOrReturnCtx(t,i),mt(i,{validation:"nanoid",code:et.invalid_string,message:a.message}),r.dirty());else if(a.kind==="cuid")Oee.test(t.data)||(i=this._getOrReturnCtx(t,i),mt(i,{validation:"cuid",code:et.invalid_string,message:a.message}),r.dirty());else if(a.kind==="cuid2")Ree.test(t.data)||(i=this._getOrReturnCtx(t,i),mt(i,{validation:"cuid2",code:et.invalid_string,message:a.message}),r.dirty());else if(a.kind==="ulid")Tee.test(t.data)||(i=this._getOrReturnCtx(t,i),mt(i,{validation:"ulid",code:et.invalid_string,message:a.message}),r.dirty());else if(a.kind==="url")try{new URL(t.data)}catch{i=this._getOrReturnCtx(t,i),mt(i,{validation:"url",code:et.invalid_string,message:a.message}),r.dirty()}else a.kind==="regex"?(a.regex.lastIndex=0,a.regex.test(t.data)||(i=this._getOrReturnCtx(t,i),mt(i,{validation:"regex",code:et.invalid_string,message:a.message}),r.dirty())):a.kind==="trim"?t.data=t.data.trim():a.kind==="includes"?t.data.includes(a.value,a.position)||(i=this._getOrReturnCtx(t,i),mt(i,{code:et.invalid_string,validation:{includes:a.value,position:a.position},message:a.message}),r.dirty()):a.kind==="toLowerCase"?t.data=t.data.toLowerCase():a.kind==="toUpperCase"?t.data=t.data.toUpperCase():a.kind==="startsWith"?t.data.startsWith(a.value)||(i=this._getOrReturnCtx(t,i),mt(i,{code:et.invalid_string,validation:{startsWith:a.value},message:a.message}),r.dirty()):a.kind==="endsWith"?t.data.endsWith(a.value)||(i=this._getOrReturnCtx(t,i),mt(i,{code:et.invalid_string,validation:{endsWith:a.value},message:a.message}),r.dirty()):a.kind==="datetime"?Vee(a).test(t.data)||(i=this._getOrReturnCtx(t,i),mt(i,{code:et.invalid_string,validation:"datetime",message:a.message}),r.dirty()):a.kind==="date"?Hee.test(t.data)||(i=this._getOrReturnCtx(t,i),mt(i,{code:et.invalid_string,validation:"date",message:a.message}),r.dirty()):a.kind==="time"?Fee(a).test(t.data)||(i=this._getOrReturnCtx(t,i),mt(i,{code:et.invalid_string,validation:"time",message:a.message}),r.dirty()):a.kind==="duration"?Mee.test(t.data)||(i=this._getOrReturnCtx(t,i),mt(i,{validation:"duration",code:et.invalid_string,message:a.message}),r.dirty()):a.kind==="ip"?Uee(t.data,a.version)||(i=this._getOrReturnCtx(t,i),mt(i,{validation:"ip",code:et.invalid_string,message:a.message}),r.dirty()):a.kind==="jwt"?qee(t.data,a.alg)||(i=this._getOrReturnCtx(t,i),mt(i,{validation:"jwt",code:et.invalid_string,message:a.message}),r.dirty()):a.kind==="cidr"?Kee(t.data,a.version)||(i=this._getOrReturnCtx(t,i),mt(i,{validation:"cidr",code:et.invalid_string,message:a.message}),r.dirty()):a.kind==="base64"?kee.test(t.data)||(i=this._getOrReturnCtx(t,i),mt(i,{validation:"base64",code:et.invalid_string,message:a.message}),r.dirty()):a.kind==="base64url"?Bee.test(t.data)||(i=this._getOrReturnCtx(t,i),mt(i,{validation:"base64url",code:et.invalid_string,message:a.message}),r.dirty()):Rn.assertNever(a);return{status:r.value,value:t.data}}_regex(t,n,r){return this.refinement(i=>t.test(i),{validation:n,code:et.invalid_string,...Rt.errToObj(r)})}_addCheck(t){return new Za({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...Rt.errToObj(t)})}url(t){return this._addCheck({kind:"url",...Rt.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...Rt.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...Rt.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...Rt.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...Rt.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...Rt.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...Rt.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...Rt.errToObj(t)})}base64url(t){return this._addCheck({kind:"base64url",...Rt.errToObj(t)})}jwt(t){return this._addCheck({kind:"jwt",...Rt.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...Rt.errToObj(t)})}cidr(t){return this._addCheck({kind:"cidr",...Rt.errToObj(t)})}datetime(t){return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:t}):this._addCheck({kind:"datetime",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,offset:(t==null?void 0:t.offset)??!1,local:(t==null?void 0:t.local)??!1,...Rt.errToObj(t==null?void 0:t.message)})}date(t){return this._addCheck({kind:"date",message:t})}time(t){return typeof t=="string"?this._addCheck({kind:"time",precision:null,message:t}):this._addCheck({kind:"time",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,...Rt.errToObj(t==null?void 0:t.message)})}duration(t){return this._addCheck({kind:"duration",...Rt.errToObj(t)})}regex(t,n){return this._addCheck({kind:"regex",regex:t,...Rt.errToObj(n)})}includes(t,n){return this._addCheck({kind:"includes",value:t,position:n==null?void 0:n.position,...Rt.errToObj(n==null?void 0:n.message)})}startsWith(t,n){return this._addCheck({kind:"startsWith",value:t,...Rt.errToObj(n)})}endsWith(t,n){return this._addCheck({kind:"endsWith",value:t,...Rt.errToObj(n)})}min(t,n){return this._addCheck({kind:"min",value:t,...Rt.errToObj(n)})}max(t,n){return this._addCheck({kind:"max",value:t,...Rt.errToObj(n)})}length(t,n){return this._addCheck({kind:"length",value:t,...Rt.errToObj(n)})}nonempty(t){return this.min(1,Rt.errToObj(t))}trim(){return new Za({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new Za({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new Za({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}get isDate(){return!!this._def.checks.find(t=>t.kind==="date")}get isTime(){return!!this._def.checks.find(t=>t.kind==="time")}get isDuration(){return!!this._def.checks.find(t=>t.kind==="duration")}get isEmail(){return!!this._def.checks.find(t=>t.kind==="email")}get isURL(){return!!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return!!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return!!this._def.checks.find(t=>t.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(t=>t.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return!!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return!!this._def.checks.find(t=>t.kind==="ip")}get isCIDR(){return!!this._def.checks.find(t=>t.kind==="cidr")}get isBase64(){return!!this._def.checks.find(t=>t.kind==="base64")}get isBase64url(){return!!this._def.checks.find(t=>t.kind==="base64url")}get minLength(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxLength(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}}Za.create=e=>new Za({checks:[],typeName:Kt.ZodString,coerce:(e==null?void 0:e.coerce)??!1,...tn(e)});function Wee(e,t){const n=(e.toString().split(".")[1]||"").length,r=(t.toString().split(".")[1]||"").length,i=n>r?n:r,a=Number.parseInt(e.toFixed(i).replace(".","")),l=Number.parseInt(t.toFixed(i).replace(".",""));return a%l/10**i}class Ws extends bn{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==St.number){const a=this._getOrReturnCtx(t);return mt(a,{code:et.invalid_type,expected:St.number,received:a.parsedType}),Ut}let r;const i=new mi;for(const a of this._def.checks)a.kind==="int"?Rn.isInteger(t.data)||(r=this._getOrReturnCtx(t,r),mt(r,{code:et.invalid_type,expected:"integer",received:"float",message:a.message}),i.dirty()):a.kind==="min"?(a.inclusive?t.data<a.value:t.data<=a.value)&&(r=this._getOrReturnCtx(t,r),mt(r,{code:et.too_small,minimum:a.value,type:"number",inclusive:a.inclusive,exact:!1,message:a.message}),i.dirty()):a.kind==="max"?(a.inclusive?t.data>a.value:t.data>=a.value)&&(r=this._getOrReturnCtx(t,r),mt(r,{code:et.too_big,maximum:a.value,type:"number",inclusive:a.inclusive,exact:!1,message:a.message}),i.dirty()):a.kind==="multipleOf"?Wee(t.data,a.value)!==0&&(r=this._getOrReturnCtx(t,r),mt(r,{code:et.not_multiple_of,multipleOf:a.value,message:a.message}),i.dirty()):a.kind==="finite"?Number.isFinite(t.data)||(r=this._getOrReturnCtx(t,r),mt(r,{code:et.not_finite,message:a.message}),i.dirty()):Rn.assertNever(a);return{status:i.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,Rt.toString(n))}gt(t,n){return this.setLimit("min",t,!1,Rt.toString(n))}lte(t,n){return this.setLimit("max",t,!0,Rt.toString(n))}lt(t,n){return this.setLimit("max",t,!1,Rt.toString(n))}setLimit(t,n,r,i){return new Ws({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:Rt.toString(i)}]})}_addCheck(t){return new Ws({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:Rt.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:Rt.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:Rt.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:Rt.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:Rt.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:Rt.toString(n)})}finite(t){return this._addCheck({kind:"finite",message:Rt.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:Rt.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:Rt.toString(t)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}get isInt(){return!!this._def.checks.find(t=>t.kind==="int"||t.kind==="multipleOf"&&Rn.isInteger(t.value))}get isFinite(){let t=null,n=null;for(const r of this._def.checks){if(r.kind==="finite"||r.kind==="int"||r.kind==="multipleOf")return!0;r.kind==="min"?(n===null||r.value>n)&&(n=r.value):r.kind==="max"&&(t===null||r.value<t)&&(t=r.value)}return Number.isFinite(n)&&Number.isFinite(t)}}Ws.create=e=>new Ws({checks:[],typeName:Kt.ZodNumber,coerce:(e==null?void 0:e.coerce)||!1,...tn(e)});class Gs extends bn{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce)try{t.data=BigInt(t.data)}catch{return this._getInvalidInput(t)}if(this._getType(t)!==St.bigint)return this._getInvalidInput(t);let r;const i=new mi;for(const a of this._def.checks)a.kind==="min"?(a.inclusive?t.data<a.value:t.data<=a.value)&&(r=this._getOrReturnCtx(t,r),mt(r,{code:et.too_small,type:"bigint",minimum:a.value,inclusive:a.inclusive,message:a.message}),i.dirty()):a.kind==="max"?(a.inclusive?t.data>a.value:t.data>=a.value)&&(r=this._getOrReturnCtx(t,r),mt(r,{code:et.too_big,type:"bigint",maximum:a.value,inclusive:a.inclusive,message:a.message}),i.dirty()):a.kind==="multipleOf"?t.data%a.value!==BigInt(0)&&(r=this._getOrReturnCtx(t,r),mt(r,{code:et.not_multiple_of,multipleOf:a.value,message:a.message}),i.dirty()):Rn.assertNever(a);return{status:i.value,value:t.data}}_getInvalidInput(t){const n=this._getOrReturnCtx(t);return mt(n,{code:et.invalid_type,expected:St.bigint,received:n.parsedType}),Ut}gte(t,n){return this.setLimit("min",t,!0,Rt.toString(n))}gt(t,n){return this.setLimit("min",t,!1,Rt.toString(n))}lte(t,n){return this.setLimit("max",t,!0,Rt.toString(n))}lt(t,n){return this.setLimit("max",t,!1,Rt.toString(n))}setLimit(t,n,r,i){return new Gs({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:Rt.toString(i)}]})}_addCheck(t){return new Gs({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:Rt.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:Rt.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:Rt.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:Rt.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:Rt.toString(n)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}}Gs.create=e=>new Gs({checks:[],typeName:Kt.ZodBigInt,coerce:(e==null?void 0:e.coerce)??!1,...tn(e)});class sp extends bn{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==St.boolean){const r=this._getOrReturnCtx(t);return mt(r,{code:et.invalid_type,expected:St.boolean,received:r.parsedType}),Ut}return xa(t.data)}}sp.create=e=>new sp({typeName:Kt.ZodBoolean,coerce:(e==null?void 0:e.coerce)||!1,...tn(e)});class Uu extends bn{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==St.date){const a=this._getOrReturnCtx(t);return mt(a,{code:et.invalid_type,expected:St.date,received:a.parsedType}),Ut}if(Number.isNaN(t.data.getTime())){const a=this._getOrReturnCtx(t);return mt(a,{code:et.invalid_date}),Ut}const r=new mi;let i;for(const a of this._def.checks)a.kind==="min"?t.data.getTime()<a.value&&(i=this._getOrReturnCtx(t,i),mt(i,{code:et.too_small,message:a.message,inclusive:!0,exact:!1,minimum:a.value,type:"date"}),r.dirty()):a.kind==="max"?t.data.getTime()>a.value&&(i=this._getOrReturnCtx(t,i),mt(i,{code:et.too_big,message:a.message,inclusive:!0,exact:!1,maximum:a.value,type:"date"}),r.dirty()):Rn.assertNever(a);return{status:r.value,value:new Date(t.data.getTime())}}_addCheck(t){return new Uu({...this._def,checks:[...this._def.checks,t]})}min(t,n){return this._addCheck({kind:"min",value:t.getTime(),message:Rt.toString(n)})}max(t,n){return this._addCheck({kind:"max",value:t.getTime(),message:Rt.toString(n)})}get minDate(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t!=null?new Date(t):null}}Uu.create=e=>new Uu({checks:[],coerce:(e==null?void 0:e.coerce)||!1,typeName:Kt.ZodDate,...tn(e)});class W_ extends bn{_parse(t){if(this._getType(t)!==St.symbol){const r=this._getOrReturnCtx(t);return mt(r,{code:et.invalid_type,expected:St.symbol,received:r.parsedType}),Ut}return xa(t.data)}}W_.create=e=>new W_({typeName:Kt.ZodSymbol,...tn(e)});class Gx extends bn{_parse(t){if(this._getType(t)!==St.undefined){const r=this._getOrReturnCtx(t);return mt(r,{code:et.invalid_type,expected:St.undefined,received:r.parsedType}),Ut}return xa(t.data)}}Gx.create=e=>new Gx({typeName:Kt.ZodUndefined,...tn(e)});class cp extends bn{_parse(t){if(this._getType(t)!==St.null){const r=this._getOrReturnCtx(t);return mt(r,{code:et.invalid_type,expected:St.null,received:r.parsedType}),Ut}return xa(t.data)}}cp.create=e=>new cp({typeName:Kt.ZodNull,...tn(e)});class Xx extends bn{constructor(){super(...arguments),this._any=!0}_parse(t){return xa(t.data)}}Xx.create=e=>new Xx({typeName:Kt.ZodAny,...tn(e)});class Qx extends bn{constructor(){super(...arguments),this._unknown=!0}_parse(t){return xa(t.data)}}Qx.create=e=>new Qx({typeName:Kt.ZodUnknown,...tn(e)});class Vl extends bn{_parse(t){const n=this._getOrReturnCtx(t);return mt(n,{code:et.invalid_type,expected:St.never,received:n.parsedType}),Ut}}Vl.create=e=>new Vl({typeName:Kt.ZodNever,...tn(e)});class G_ extends bn{_parse(t){if(this._getType(t)!==St.undefined){const r=this._getOrReturnCtx(t);return mt(r,{code:et.invalid_type,expected:St.void,received:r.parsedType}),Ut}return xa(t.data)}}G_.create=e=>new G_({typeName:Kt.ZodVoid,...tn(e)});class eo extends bn{_parse(t){const{ctx:n,status:r}=this._processInputParams(t),i=this._def;if(n.parsedType!==St.array)return mt(n,{code:et.invalid_type,expected:St.array,received:n.parsedType}),Ut;if(i.exactLength!==null){const l=n.data.length>i.exactLength.value,c=n.data.length<i.exactLength.value;(l||c)&&(mt(n,{code:l?et.too_big:et.too_small,minimum:c?i.exactLength.value:void 0,maximum:l?i.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:i.exactLength.message}),r.dirty())}if(i.minLength!==null&&n.data.length<i.minLength.value&&(mt(n,{code:et.too_small,minimum:i.minLength.value,type:"array",inclusive:!0,exact:!1,message:i.minLength.message}),r.dirty()),i.maxLength!==null&&n.data.length>i.maxLength.value&&(mt(n,{code:et.too_big,maximum:i.maxLength.value,type:"array",inclusive:!0,exact:!1,message:i.maxLength.message}),r.dirty()),n.common.async)return Promise.all([...n.data].map((l,c)=>i.type._parseAsync(new ro(n,l,n.path,c)))).then(l=>mi.mergeArray(r,l));const a=[...n.data].map((l,c)=>i.type._parseSync(new ro(n,l,n.path,c)));return mi.mergeArray(r,a)}get element(){return this._def.type}min(t,n){return new eo({...this._def,minLength:{value:t,message:Rt.toString(n)}})}max(t,n){return new eo({...this._def,maxLength:{value:t,message:Rt.toString(n)}})}length(t,n){return new eo({...this._def,exactLength:{value:t,message:Rt.toString(n)}})}nonempty(t){return this.min(1,t)}}eo.create=(e,t)=>new eo({type:e,minLength:null,maxLength:null,exactLength:null,typeName:Kt.ZodArray,...tn(t)});function au(e){if(e instanceof Mr){const t={};for(const n in e.shape){const r=e.shape[n];t[n]=zo.create(au(r))}return new Mr({...e._def,shape:()=>t})}else return e instanceof eo?new eo({...e._def,type:au(e.element)}):e instanceof zo?zo.create(au(e.unwrap())):e instanceof Zs?Zs.create(au(e.unwrap())):e instanceof Xs?Xs.create(e.items.map(t=>au(t))):e}class Mr extends bn{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const t=this._def.shape(),n=Rn.objectKeys(t);return this._cached={shape:t,keys:n},this._cached}_parse(t){if(this._getType(t)!==St.object){const d=this._getOrReturnCtx(t);return mt(d,{code:et.invalid_type,expected:St.object,received:d.parsedType}),Ut}const{status:r,ctx:i}=this._processInputParams(t),{shape:a,keys:l}=this._getCached(),c=[];if(!(this._def.catchall instanceof Vl&&this._def.unknownKeys==="strip"))for(const d in i.data)l.includes(d)||c.push(d);const u=[];for(const d of l){const m=a[d],g=i.data[d];u.push({key:{status:"valid",value:d},value:m._parse(new ro(i,g,i.path,d)),alwaysSet:d in i.data})}if(this._def.catchall instanceof Vl){const d=this._def.unknownKeys;if(d==="passthrough")for(const m of c)u.push({key:{status:"valid",value:m},value:{status:"valid",value:i.data[m]}});else if(d==="strict")c.length>0&&(mt(i,{code:et.unrecognized_keys,keys:c}),r.dirty());else if(d!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const d=this._def.catchall;for(const m of c){const g=i.data[m];u.push({key:{status:"valid",value:m},value:d._parse(new ro(i,g,i.path,m)),alwaysSet:m in i.data})}}return i.common.async?Promise.resolve().then(async()=>{const d=[];for(const m of u){const g=await m.key,v=await m.value;d.push({key:g,value:v,alwaysSet:m.alwaysSet})}return d}).then(d=>mi.mergeObjectSync(r,d)):mi.mergeObjectSync(r,u)}get shape(){return this._def.shape()}strict(t){return Rt.errToObj,new Mr({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(n,r)=>{var a,l;const i=((l=(a=this._def).errorMap)==null?void 0:l.call(a,n,r).message)??r.defaultError;return n.code==="unrecognized_keys"?{message:Rt.errToObj(t).message??i}:{message:i}}}:{}})}strip(){return new Mr({...this._def,unknownKeys:"strip"})}passthrough(){return new Mr({...this._def,unknownKeys:"passthrough"})}extend(t){return new Mr({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new Mr({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:Kt.ZodObject})}setKey(t,n){return this.augment({[t]:n})}catchall(t){return new Mr({...this._def,catchall:t})}pick(t){const n={};for(const r of Rn.objectKeys(t))t[r]&&this.shape[r]&&(n[r]=this.shape[r]);return new Mr({...this._def,shape:()=>n})}omit(t){const n={};for(const r of Rn.objectKeys(this.shape))t[r]||(n[r]=this.shape[r]);return new Mr({...this._def,shape:()=>n})}deepPartial(){return au(this)}partial(t){const n={};for(const r of Rn.objectKeys(this.shape)){const i=this.shape[r];t&&!t[r]?n[r]=i:n[r]=i.optional()}return new Mr({...this._def,shape:()=>n})}required(t){const n={};for(const r of Rn.objectKeys(this.shape))if(t&&!t[r])n[r]=this.shape[r];else{let a=this.shape[r];for(;a instanceof zo;)a=a._def.innerType;n[r]=a}return new Mr({...this._def,shape:()=>n})}keyof(){return sj(Rn.objectKeys(this.shape))}}Mr.create=(e,t)=>new Mr({shape:()=>e,unknownKeys:"strip",catchall:Vl.create(),typeName:Kt.ZodObject,...tn(t)});Mr.strictCreate=(e,t)=>new Mr({shape:()=>e,unknownKeys:"strict",catchall:Vl.create(),typeName:Kt.ZodObject,...tn(t)});Mr.lazycreate=(e,t)=>new Mr({shape:e,unknownKeys:"strip",catchall:Vl.create(),typeName:Kt.ZodObject,...tn(t)});class up extends bn{_parse(t){const{ctx:n}=this._processInputParams(t),r=this._def.options;function i(a){for(const c of a)if(c.result.status==="valid")return c.result;for(const c of a)if(c.result.status==="dirty")return n.common.issues.push(...c.ctx.common.issues),c.result;const l=a.map(c=>new Bo(c.ctx.common.issues));return mt(n,{code:et.invalid_union,unionErrors:l}),Ut}if(n.common.async)return Promise.all(r.map(async a=>{const l={...n,common:{...n.common,issues:[]},parent:null};return{result:await a._parseAsync({data:n.data,path:n.path,parent:l}),ctx:l}})).then(i);{let a;const l=[];for(const u of r){const d={...n,common:{...n.common,issues:[]},parent:null},m=u._parseSync({data:n.data,path:n.path,parent:d});if(m.status==="valid")return m;m.status==="dirty"&&!a&&(a={result:m,ctx:d}),d.common.issues.length&&l.push(d.common.issues)}if(a)return n.common.issues.push(...a.ctx.common.issues),a.result;const c=l.map(u=>new Bo(u));return mt(n,{code:et.invalid_union,unionErrors:c}),Ut}}get options(){return this._def.options}}up.create=(e,t)=>new up({options:e,typeName:Kt.ZodUnion,...tn(t)});const Ro=e=>e instanceof hp?Ro(e.schema):e instanceof Ys?Ro(e.innerType()):e instanceof mp?[e.value]:e instanceof Qs?e.options:e instanceof gp?Rn.objectValues(e.enum):e instanceof vp?Ro(e._def.innerType):e instanceof Gx?[void 0]:e instanceof cp?[null]:e instanceof zo?[void 0,...Ro(e.unwrap())]:e instanceof Zs?[null,...Ro(e.unwrap())]:e instanceof cj||e instanceof bp?Ro(e.unwrap()):e instanceof yp?Ro(e._def.innerType):[];class W1 extends bn{_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==St.object)return mt(n,{code:et.invalid_type,expected:St.object,received:n.parsedType}),Ut;const r=this.discriminator,i=n.data[r],a=this.optionsMap.get(i);return a?n.common.async?a._parseAsync({data:n.data,path:n.path,parent:n}):a._parseSync({data:n.data,path:n.path,parent:n}):(mt(n,{code:et.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[r]}),Ut)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,n,r){const i=new Map;for(const a of n){const l=Ro(a.shape[t]);if(!l.length)throw new Error(`A discriminator value for key \`${t}\` could not be extracted from all schema options`);for(const c of l){if(i.has(c))throw new Error(`Discriminator property ${String(t)} has duplicate value ${String(c)}`);i.set(c,a)}}return new W1({typeName:Kt.ZodDiscriminatedUnion,discriminator:t,options:n,optionsMap:i,...tn(r)})}}function Yx(e,t){const n=Sl(e),r=Sl(t);if(e===t)return{valid:!0,data:e};if(n===St.object&&r===St.object){const i=Rn.objectKeys(t),a=Rn.objectKeys(e).filter(c=>i.indexOf(c)!==-1),l={...e,...t};for(const c of a){const u=Yx(e[c],t[c]);if(!u.valid)return{valid:!1};l[c]=u.data}return{valid:!0,data:l}}else if(n===St.array&&r===St.array){if(e.length!==t.length)return{valid:!1};const i=[];for(let a=0;a<e.length;a++){const l=e[a],c=t[a],u=Yx(l,c);if(!u.valid)return{valid:!1};i.push(u.data)}return{valid:!0,data:i}}else return n===St.date&&r===St.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}class dp extends bn{_parse(t){const{status:n,ctx:r}=this._processInputParams(t),i=(a,l)=>{if(U_(a)||U_(l))return Ut;const c=Yx(a.value,l.value);return c.valid?((q_(a)||q_(l))&&n.dirty(),{status:n.value,value:c.data}):(mt(r,{code:et.invalid_intersection_types}),Ut)};return r.common.async?Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r})]).then(([a,l])=>i(a,l)):i(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}}dp.create=(e,t,n)=>new dp({left:e,right:t,typeName:Kt.ZodIntersection,...tn(n)});class Xs extends bn{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==St.array)return mt(r,{code:et.invalid_type,expected:St.array,received:r.parsedType}),Ut;if(r.data.length<this._def.items.length)return mt(r,{code:et.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),Ut;!this._def.rest&&r.data.length>this._def.items.length&&(mt(r,{code:et.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),n.dirty());const a=[...r.data].map((l,c)=>{const u=this._def.items[c]||this._def.rest;return u?u._parse(new ro(r,l,r.path,c)):null}).filter(l=>!!l);return r.common.async?Promise.all(a).then(l=>mi.mergeArray(n,l)):mi.mergeArray(n,a)}get items(){return this._def.items}rest(t){return new Xs({...this._def,rest:t})}}Xs.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new Xs({items:e,typeName:Kt.ZodTuple,rest:null,...tn(t)})};class fp extends bn{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==St.object)return mt(r,{code:et.invalid_type,expected:St.object,received:r.parsedType}),Ut;const i=[],a=this._def.keyType,l=this._def.valueType;for(const c in r.data)i.push({key:a._parse(new ro(r,c,r.path,c)),value:l._parse(new ro(r,r.data[c],r.path,c)),alwaysSet:c in r.data});return r.common.async?mi.mergeObjectAsync(n,i):mi.mergeObjectSync(n,i)}get element(){return this._def.valueType}static create(t,n,r){return n instanceof bn?new fp({keyType:t,valueType:n,typeName:Kt.ZodRecord,...tn(r)}):new fp({keyType:Za.create(),valueType:t,typeName:Kt.ZodRecord,...tn(n)})}}class X_ extends bn{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==St.map)return mt(r,{code:et.invalid_type,expected:St.map,received:r.parsedType}),Ut;const i=this._def.keyType,a=this._def.valueType,l=[...r.data.entries()].map(([c,u],d)=>({key:i._parse(new ro(r,c,r.path,[d,"key"])),value:a._parse(new ro(r,u,r.path,[d,"value"]))}));if(r.common.async){const c=new Map;return Promise.resolve().then(async()=>{for(const u of l){const d=await u.key,m=await u.value;if(d.status==="aborted"||m.status==="aborted")return Ut;(d.status==="dirty"||m.status==="dirty")&&n.dirty(),c.set(d.value,m.value)}return{status:n.value,value:c}})}else{const c=new Map;for(const u of l){const d=u.key,m=u.value;if(d.status==="aborted"||m.status==="aborted")return Ut;(d.status==="dirty"||m.status==="dirty")&&n.dirty(),c.set(d.value,m.value)}return{status:n.value,value:c}}}}X_.create=(e,t,n)=>new X_({valueType:t,keyType:e,typeName:Kt.ZodMap,...tn(n)});class Yf extends bn{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==St.set)return mt(r,{code:et.invalid_type,expected:St.set,received:r.parsedType}),Ut;const i=this._def;i.minSize!==null&&r.data.size<i.minSize.value&&(mt(r,{code:et.too_small,minimum:i.minSize.value,type:"set",inclusive:!0,exact:!1,message:i.minSize.message}),n.dirty()),i.maxSize!==null&&r.data.size>i.maxSize.value&&(mt(r,{code:et.too_big,maximum:i.maxSize.value,type:"set",inclusive:!0,exact:!1,message:i.maxSize.message}),n.dirty());const a=this._def.valueType;function l(u){const d=new Set;for(const m of u){if(m.status==="aborted")return Ut;m.status==="dirty"&&n.dirty(),d.add(m.value)}return{status:n.value,value:d}}const c=[...r.data.values()].map((u,d)=>a._parse(new ro(r,u,r.path,d)));return r.common.async?Promise.all(c).then(u=>l(u)):l(c)}min(t,n){return new Yf({...this._def,minSize:{value:t,message:Rt.toString(n)}})}max(t,n){return new Yf({...this._def,maxSize:{value:t,message:Rt.toString(n)}})}size(t,n){return this.min(t,n).max(t,n)}nonempty(t){return this.min(1,t)}}Yf.create=(e,t)=>new Yf({valueType:e,minSize:null,maxSize:null,typeName:Kt.ZodSet,...tn(t)});class hp extends bn{get schema(){return this._def.getter()}_parse(t){const{ctx:n}=this._processInputParams(t);return this._def.getter()._parse({data:n.data,path:n.path,parent:n})}}hp.create=(e,t)=>new hp({getter:e,typeName:Kt.ZodLazy,...tn(t)});class mp extends bn{_parse(t){if(t.data!==this._def.value){const n=this._getOrReturnCtx(t);return mt(n,{received:n.data,code:et.invalid_literal,expected:this._def.value}),Ut}return{status:"valid",value:t.data}}get value(){return this._def.value}}mp.create=(e,t)=>new mp({value:e,typeName:Kt.ZodLiteral,...tn(t)});function sj(e,t){return new Qs({values:e,typeName:Kt.ZodEnum,...tn(t)})}class Qs extends bn{_parse(t){if(typeof t.data!="string"){const n=this._getOrReturnCtx(t),r=this._def.values;return mt(n,{expected:Rn.joinValues(r),received:n.parsedType,code:et.invalid_type}),Ut}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(t.data)){const n=this._getOrReturnCtx(t),r=this._def.values;return mt(n,{received:n.data,code:et.invalid_enum_value,options:r}),Ut}return xa(t.data)}get options(){return this._def.values}get enum(){const t={};for(const n of this._def.values)t[n]=n;return t}get Values(){const t={};for(const n of this._def.values)t[n]=n;return t}get Enum(){const t={};for(const n of this._def.values)t[n]=n;return t}extract(t,n=this._def){return Qs.create(t,{...this._def,...n})}exclude(t,n=this._def){return Qs.create(this.options.filter(r=>!t.includes(r)),{...this._def,...n})}}Qs.create=sj;class gp extends bn{_parse(t){const n=Rn.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(t);if(r.parsedType!==St.string&&r.parsedType!==St.number){const i=Rn.objectValues(n);return mt(r,{expected:Rn.joinValues(i),received:r.parsedType,code:et.invalid_type}),Ut}if(this._cache||(this._cache=new Set(Rn.getValidEnumValues(this._def.values))),!this._cache.has(t.data)){const i=Rn.objectValues(n);return mt(r,{received:r.data,code:et.invalid_enum_value,options:i}),Ut}return xa(t.data)}get enum(){return this._def.values}}gp.create=(e,t)=>new gp({values:e,typeName:Kt.ZodNativeEnum,...tn(t)});class pp extends bn{unwrap(){return this._def.type}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==St.promise&&n.common.async===!1)return mt(n,{code:et.invalid_type,expected:St.promise,received:n.parsedType}),Ut;const r=n.parsedType===St.promise?n.data:Promise.resolve(n.data);return xa(r.then(i=>this._def.type.parseAsync(i,{path:n.path,errorMap:n.common.contextualErrorMap})))}}pp.create=(e,t)=>new pp({type:e,typeName:Kt.ZodPromise,...tn(t)});class Ys extends bn{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===Kt.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){const{status:n,ctx:r}=this._processInputParams(t),i=this._def.effect||null,a={addIssue:l=>{mt(r,l),l.fatal?n.abort():n.dirty()},get path(){return r.path}};if(a.addIssue=a.addIssue.bind(a),i.type==="preprocess"){const l=i.transform(r.data,a);if(r.common.async)return Promise.resolve(l).then(async c=>{if(n.value==="aborted")return Ut;const u=await this._def.schema._parseAsync({data:c,path:r.path,parent:r});return u.status==="aborted"?Ut:u.status==="dirty"||n.value==="dirty"?hf(u.value):u});{if(n.value==="aborted")return Ut;const c=this._def.schema._parseSync({data:l,path:r.path,parent:r});return c.status==="aborted"?Ut:c.status==="dirty"||n.value==="dirty"?hf(c.value):c}}if(i.type==="refinement"){const l=c=>{const u=i.refinement(c,a);if(r.common.async)return Promise.resolve(u);if(u instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return c};if(r.common.async===!1){const c=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return c.status==="aborted"?Ut:(c.status==="dirty"&&n.dirty(),l(c.value),{status:n.value,value:c.value})}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(c=>c.status==="aborted"?Ut:(c.status==="dirty"&&n.dirty(),l(c.value).then(()=>({status:n.value,value:c.value}))))}if(i.type==="transform")if(r.common.async===!1){const l=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!Vu(l))return Ut;const c=i.transform(l.value,a);if(c instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:n.value,value:c}}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(l=>Vu(l)?Promise.resolve(i.transform(l.value,a)).then(c=>({status:n.value,value:c})):Ut);Rn.assertNever(i)}}Ys.create=(e,t,n)=>new Ys({schema:e,typeName:Kt.ZodEffects,effect:t,...tn(n)});Ys.createWithPreprocess=(e,t,n)=>new Ys({schema:t,effect:{type:"preprocess",transform:e},typeName:Kt.ZodEffects,...tn(n)});class zo extends bn{_parse(t){return this._getType(t)===St.undefined?xa(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}zo.create=(e,t)=>new zo({innerType:e,typeName:Kt.ZodOptional,...tn(t)});class Zs extends bn{_parse(t){return this._getType(t)===St.null?xa(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}Zs.create=(e,t)=>new Zs({innerType:e,typeName:Kt.ZodNullable,...tn(t)});class vp extends bn{_parse(t){const{ctx:n}=this._processInputParams(t);let r=n.data;return n.parsedType===St.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:n.path,parent:n})}removeDefault(){return this._def.innerType}}vp.create=(e,t)=>new vp({innerType:e,typeName:Kt.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...tn(t)});class yp extends bn{_parse(t){const{ctx:n}=this._processInputParams(t),r={...n,common:{...n.common,issues:[]}},i=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return lp(i)?i.then(a=>({status:"valid",value:a.status==="valid"?a.value:this._def.catchValue({get error(){return new Bo(r.common.issues)},input:r.data})})):{status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new Bo(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}yp.create=(e,t)=>new yp({innerType:e,typeName:Kt.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...tn(t)});class Q_ extends bn{_parse(t){if(this._getType(t)!==St.nan){const r=this._getOrReturnCtx(t);return mt(r,{code:et.invalid_type,expected:St.nan,received:r.parsedType}),Ut}return{status:"valid",value:t.data}}}Q_.create=e=>new Q_({typeName:Kt.ZodNaN,...tn(e)});class cj extends bn{_parse(t){const{ctx:n}=this._processInputParams(t),r=n.data;return this._def.type._parse({data:r,path:n.path,parent:n})}unwrap(){return this._def.type}}class G1 extends bn{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.common.async)return(async()=>{const a=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return a.status==="aborted"?Ut:a.status==="dirty"?(n.dirty(),hf(a.value)):this._def.out._parseAsync({data:a.value,path:r.path,parent:r})})();{const i=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return i.status==="aborted"?Ut:i.status==="dirty"?(n.dirty(),{status:"dirty",value:i.value}):this._def.out._parseSync({data:i.value,path:r.path,parent:r})}}static create(t,n){return new G1({in:t,out:n,typeName:Kt.ZodPipeline})}}class bp extends bn{_parse(t){const n=this._def.innerType._parse(t),r=i=>(Vu(i)&&(i.value=Object.freeze(i.value)),i);return lp(n)?n.then(i=>r(i)):r(n)}unwrap(){return this._def.innerType}}bp.create=(e,t)=>new bp({innerType:e,typeName:Kt.ZodReadonly,...tn(t)});var Kt;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})(Kt||(Kt={}));const Xt=Za.create,Ul=Ws.create;Gs.create;const Ma=sp.create;Uu.create;const uj=cp.create,dj=Xx.create,Cf=Qx.create;Vl.create;const Ni=eo.create,wn=Mr.create,Zf=up.create,Gee=W1.create;dp.create;Xs.create;const Jf=fp.create,fj=hp.create,Sp=mp.create,lc=Qs.create,Xee=gp.create;pp.create;zo.create;Zs.create;const xp={string:(e=>Za.create({...e,coerce:!0})),number:(e=>Ws.create({...e,coerce:!0})),boolean:(e=>sp.create({...e,coerce:!0})),bigint:(e=>Gs.create({...e,coerce:!0})),date:(e=>Uu.create({...e,coerce:!0}))},Qee=Ut,Yee=e=>typeof(e==null?void 0:e.safeParse)=="function",Ab=e=>typeof(e==null?void 0:e.passthrough)=="function",Zee=(e,t)=>Ab(e)?Ab(t)?e.merge(t):e:Ab(t)?t:Object.assign({},e,t);wn({name:Sp("ZodError"),issues:Ni(wn({path:Ni(Zf([Xt(),Ul()])),message:Xt().optional(),code:Xee(et)}).catchall(dj()))});const Jee=Symbol("ContractNoBody"),X1=e=>"method"in e&&"path"in e,hj=e=>e.method==="GET",mj=(e,t)=>Object.fromEntries(Object.entries(e).map(([n,r])=>{var i,a,l;return X1(r)?[n,{...r,path:t!=null&&t.pathPrefix?t.pathPrefix+r.path:r.path,headers:Zee(t==null?void 0:t.baseHeaders,r.headers),strictStatusCodes:(i=r.strictStatusCodes)!==null&&i!==void 0?i:t==null?void 0:t.strictStatusCodes,validateResponseOnClient:(a=r.validateResponseOnClient)!==null&&a!==void 0?a:t==null?void 0:t.validateResponseOnClient,responses:{...t==null?void 0:t.commonResponses,...r.responses},metadata:t!=null&&t.metadata?{...t==null?void 0:t.metadata,...(l=r.metadata)!==null&&l!==void 0?l:{}}:r.metadata}]:[n,mj(r,t)]})),zb=Symbol("ContractPlainType"),gj=()=>({router:(e,t)=>mj(e,t),query:e=>e,mutation:e=>e,responses:e=>e,response:()=>zb,body:()=>zb,type:()=>zb,otherResponse:({contentType:e,body:t})=>({contentType:e,body:t}),noBody:()=>Jee}),ete=({path:e,params:t})=>{const n=t;return e.replace(/\/?:([^/?]+)\??/g,(r,i)=>n[i]?`${r.startsWith("/")?"/":""}${n[i]}`:"")},tte=(e,t=!1)=>{const n=t?nte(e):rte(e);return(n==null?void 0:n.length)>0?"?"+n:""},nte=e=>e?Object.entries(e).filter(([,t])=>t!==void 0).map(([t,n])=>{let r;return typeof n=="string"&&!["true","false","null"].includes(n.trim())&&isNaN(Number(n))?r=n:r=JSON.stringify(n),`${encodeURIComponent(t)}=${encodeURIComponent(r)}`}).join("&"):"",rte=e=>e?Object.keys(e).flatMap(t=>Zx(t,e[t])).map(([t,n])=>`${encodeURIComponent(t)}=${encodeURIComponent(n)}`).join("&"):"",Zx=(e,t)=>Array.isArray(t)?t.flatMap((n,r)=>Zx(`${e}[${r}]`,n)):t instanceof Date?[[`${e}`,t.toISOString()]]:t===null?[[`${e}`,""]]:t===void 0?[]:typeof t=="object"?Object.keys(t).flatMap(n=>Zx(`${e}[${n}]`,t[n])):[[`${e}`,`${t}`]];class ite extends Error{constructor(t,n){const r=n.join(",");super(`Server returned unexpected response. Expected one of: ${r} got: ${t.status}`),this.response=t}}const ate=async({route:e,path:t,method:n,headers:r,body:i,validateResponse:a,fetchOptions:l})=>{const c=await fetch(t,{...l,method:n,headers:r,body:i}),u=c.headers.get("content-type");if(u!=null&&u.includes("application/")&&(u!=null&&u.includes("json"))){const d={status:c.status,body:await c.json(),headers:c.headers},m=e.responses[d.status];return(a??e.validateResponseOnClient)&&Yee(m)?{...d,body:m.parse(d.body)}:d}return u!=null&&u.includes("text/")?{status:c.status,body:await c.text(),headers:c.headers}:{status:c.status,body:await c.blob(),headers:c.headers}},ote=e=>{const t=new FormData,n=(r,i)=>{i instanceof File?t.append(r,i):t.append(r,JSON.stringify(i))};return Object.entries(e).forEach(([r,i])=>{if(Array.isArray(i))for(const a of i)n(r,a);else n(r,i)}),t},Y_=e=>Object.fromEntries(Object.entries(e).map(([t,n])=>[t.toLowerCase(),n])),pj=e=>{const{path:t,clientArgs:n,route:r,body:i,query:a,extraInputArgs:l,headers:c,fetchOptions:u}=e,d=n.api||ate,m=n.baseHeaders&&Object.fromEntries(Object.entries(n.baseHeaders).map(([y,b])=>typeof b=="function"?[y,b(e)]:[y,b])),g={...m&&Y_(m),...Y_(c)};Object.keys(g).forEach(y=>{g[y]===void 0&&delete g[y]});let v={route:r,path:t,method:r.method,headers:g,body:void 0,rawBody:i,rawQuery:a,contentType:void 0,validateResponse:n.validateResponse,fetchOptions:{...n.credentials&&{credentials:n.credentials},...u},...(u==null?void 0:u.signal)&&{signal:u.signal},...(u==null?void 0:u.cache)&&{cache:u.cache},...u&&"next"in u&&!!(u!=null&&u.next)&&{next:u.next}};return r.method!=="GET"&&("contentType"in r&&r.contentType==="multipart/form-data"?v={...v,contentType:"multipart/form-data",body:i instanceof FormData?i:ote(i)}:"contentType"in r&&r.contentType==="application/x-www-form-urlencoded"?v={...v,contentType:"application/x-www-form-urlencoded",headers:{"content-type":"application/x-www-form-urlencoded",...v.headers},body:typeof i=="string"?i:new URLSearchParams(i)}:i!=null&&(v={...v,contentType:"application/json",headers:{"content-type":"application/json",...v.headers},body:JSON.stringify(i)})),d({...v,...l})},vj=(e,t,n)=>{const{query:r,params:i,body:a,headers:l,extraHeaders:c,overrideClientOptions:u,fetchOptions:d,cache:m,next:g,...v}=n||{},y={...t,...u};return{path:lte(r,y.baseUrl,i,e,!!y.jsonQuery),clientArgs:y,route:e,body:a,query:r,extraInputArgs:v,fetchOptions:{...m&&{cache:m},...g&&{next:g},...d},headers:{...c,...l}}},lte=(e,t,n,r,i)=>{const a=ete({path:r.path,params:n}),l=tte(e,i);return`${t}${a}${l}`},Z_=(e,t)=>{const n=Object.keys(e.responses);return async r=>{const i=vj(e,t,r),a=await pj(i);if(!t.throwOnUnknownStatus||n.includes(a.status.toString()))return a;throw new ite(a,n)}},yj=(e,t)=>typeof e=="object"&&e!==null&&"status"in e&&"body"in e&&typeof e.status=="number"&&e.status>=200&&e.status<600&&!0,ste=(e,t)=>yj(e)&&e.status>=200&&e.status<300,cte=(e,t)=>yj(e)&&!ste(e),bj=(e,t,n)=>async r=>{const i=vj(e,t,r),a=await pj({...i,fetchOptions:{...n&&{signal:n},...i.fetchOptions}});if(cte(a))throw a;return a};function wl(e,t,n){const{queryData:r,...i}=n;return{...i,queryFn:r===Gf?Gf:a=>{const l=typeof r=="function"?r(a):r;return bj(e,t,a==null?void 0:a.signal)(l)}}}const Sj=(e,t)=>({...e,...t}),jb={query:{useQuery:OJ,useSuspenseQuery:RJ,useInfiniteQuery:PJ,useSuspenseInfiniteQuery:TJ},queries:{useQueries:Zz,useSuspenseQueries:_J},prefetch:{usePrefetchQuery:NJ,usePrefetchInfiniteQuery:IJ}},Db=(e,t)=>Object.fromEntries(Object.entries(e).map(([n,r])=>[n,t(r)])),ute=(e,t)=>({...Db(jb.query,n=>(r,i)=>Sj(n(wl(e,t,r),i),{contractEndpoint:e})),...Db(jb.queries,n=>(r,i)=>n({...r,queries:r.queries.map(a=>wl(e,t,a))},i)),...Db(jb.prefetch,n=>r=>n(wl(e,t,r)))}),dte=(e,t)=>{const n=r=>Object.fromEntries(Object.entries(r).map(([i,a])=>X1(a)?hj(a)?[i,{query:Z_(a,t),...ute(a,t)}]:[i,{mutate:Z_(a,t),useMutation:l=>Sj(MJ({...l,mutationFn:bj(a,t)}),{contractEndpoint:a})}]:[i,n(a)]));return n(e)},xj=(e,t,n)=>{const r=i=>Object.fromEntries(Object.entries(i).map(([a,l])=>X1(l)?hj(l)?[a,{getQueryData:c=>n.getQueryData(c),ensureQueryData:c=>n.ensureQueryData(wl(l,t,c)),getQueriesData:c=>n.getQueriesData(c),setQueryData:(c,u,d)=>n.setQueryData(c,u,d),setQueriesData:(c,u,d)=>n.setQueriesData(c,u,d),getQueryState:c=>n.getQueryState(c),fetchQuery:c=>n.fetchQuery(wl(l,t,c)),prefetchQuery:c=>n.prefetchQuery(wl(l,t,c)),fetchInfiniteQuery:c=>n.fetchInfiniteQuery(wl(l,t,c)),prefetchInfiniteQuery:c=>n.prefetchInfiniteQuery(wl(l,t,c))}]:[a,void 0]:[a,r(l)]));return Object.assign(n,r(e))};function fte({children:e,contract:t,clientOptions:n}){const r=oc(),i=h.useMemo(()=>xj(t,n,r),[r]);return se.jsx(aj.Provider,{value:i,children:e})}const hte=(e,t)=>({ReactQueryProvider:function({children:n}){return se.jsx(fte,{contract:e,clientOptions:t,children:n})},...dte(e,t),useQueryClient:Cee,initQueryClient:n=>xj(e,t,n)}),wf=Xt().regex(/^[a-f\d]{24}$/i,"Invalid ObjectId"),ps=Xt().min(1),Lb=wn({cursor:Xt().optional(),limit:xp.number().int().min(1).max(100).default(20)}),kb=e=>wn({items:Ni(e),nextCursor:Xt().nullable(),totalCount:Ul().int()}),rg=wn({message:Xt()}),hu=xp.date(),To=Zf([Xt(),Ul(),Ma(),uj()]),mte=Xt().regex(/^[^.\s]+(\.[^.\s]+)*$/,"invalid field path"),gte=wn({eq:To.optional(),ne:To.optional(),in:Ni(To).optional(),nin:Ni(To).optional(),exists:Ma().optional(),gt:To.optional(),gte:To.optional(),lt:To.optional(),lte:To.optional()}).strict();function pte(e={}){const{extraLeafOps:t={},allowLegacyFlat:n=!1,fieldPath:r=mte,jsonErrorMessage:i="filter must be valid JSON"}=e,a=Object.fromEntries(Object.entries(t).map(([g,v])=>[g,v.optional()])),l=gte.extend(a).refine(g=>Object.keys(g).length>0,"leaf needs at least one operator"),c=fj(()=>Zf([wn({AND:Ni(c).min(1)}).strict(),wn({OR:Ni(c).min(1)}).strict(),wn({NOT:c}).strict(),Jf(r,l)])),u=Jf(r,To),d=n?Zf([c,u]):c,m=Xt().transform((g,v)=>{try{return JSON.parse(g)}catch{return v.addIssue({code:"custom",message:i}),Qee}}).pipe(d).optional();return{LeafOps:l,PredicateSchema:c,LegacySchema:u,FilterSchema:d,QueryParamSchema:m}}const Cj=lc(["idle","scheduled","running","done","failed","cancel_requested","cancelling","cancelled"]),vte=wn({state:Cj,error:Xt().optional(),runningSince:hu.optional(),doneAt:hu.optional(),duration:Ul().optional(),failedAt:hu.optional(),stoppedAt:hu.optional()}),yte=wn({percent:Ul().min(0).max(100).nullable(),message:Xt().optional()}),Jx=wn({timestamp:hu,level:lc(["event","info","debug","warning","error"]),message:Xt(),data:Jf(Cf()).optional()}),bte=wn({requestId:Xt(),url:Xt()}),wj=Gee("type",[wn({requestId:Xt(),type:Sp("attention"),reason:Xt()}),wn({requestId:Xt(),type:Sp("domain"),keyword:Xt(),data:Cf()})]),Cs=wn({_id:wf,processId:Xt(),name:Xt(),params:Jf(Cf()).optional(),metadata:Jf(Cf()).optional(),parentId:wf.optional(),rootId:wf,depth:Ul().int().min(0),order:Ul().int().min(0),cancellable:Ma(),special:Ma().optional(),warning:Xt().optional(),description:Xt().nullable().optional(),status:vte,progress:yte,log:Ni(Jx),uiWidget:Xt().nullable().optional(),widgetData:Cf().optional(),supportsResume:Ma().optional(),hasSavedState:Ma().optional(),autoResumeScheduled:Ma().optional(),browserOpenRequests:Ni(bte).optional(),sessionEvents:Ni(wj).optional(),originatingSessionId:Xt().nullable().optional(),createdAt:hu});Zf([Xt(),Ul(),Ma(),uj()]);const Ste=Xt().regex(/^[^.$]+(\.[^.$]+)*$/,"invalid field path"),Ej=pte({allowLegacyFlat:!0,fieldPath:Ste,jsonErrorMessage:"metadataFilter must be valid JSON"}),xte=Ej.FilterSchema,Cte=Ej.QueryParamSchema;wn({type:Sp("session-events"),processId:Xt(),events:Ni(wj)});const $j=lc(["not-found","not-launchable","no-resume-support","launch-blocked"]),Oj=lc(["not-found","not-cancellable"]),Rj=lc(["not-found","not-dismissable"]);lc(["invalid-persist-without-block"]);lc(["invalid-filter"]);const $g=gj(),J_=wn({reason:$j,message:Xt()}),eN=wn({reason:Oj,message:Xt()}),tN=wn({reason:Rj,message:Xt()}),wte=Cs.extend({children:Ni(fj(()=>Cs.extend({children:Ni(dj())})))}),tf=wn({database:Xt().optional(),prefix:Xt().optional()}),Ete=$g.router({list:{method:"GET",path:"/processes",query:Lb.extend({rootId:wf.optional(),state:Cj.optional(),database:Xt().optional(),prefix:Xt().optional(),metadataFilter:Cte}),responses:{200:kb(Cs)},summary:"List and filter processes"},get:{method:"GET",path:"/processes/:id",pathParams:wn({id:ps}),query:tf,responses:{200:Cs,404:rg},summary:"Get single process"},getTree:{method:"GET",path:"/processes/:id/tree",pathParams:wn({id:ps}),query:wn({maxDepth:xp.number().int().min(0).optional(),database:Xt().optional(),prefix:Xt().optional()}),responses:{200:wte,404:rg},summary:"Get full process subtree"},getLog:{method:"GET",path:"/processes/:id/log",pathParams:wn({id:ps}),query:Lb.extend({database:Xt().optional(),prefix:Xt().optional()}),responses:{200:kb(Jx),404:rg},summary:"Get log entries for a single process"},getTreeLog:{method:"GET",path:"/processes/:id/tree/log",pathParams:wn({id:ps}),query:Lb.extend({maxDepth:xp.number().int().min(0).optional(),database:Xt().optional(),prefix:Xt().optional()}),responses:{200:kb(Jx.extend({processId:wf,processLabel:Xt()})),404:rg},summary:"Get merged log entries across subtree"},launch:{method:"POST",path:"/processes/:id/launch",pathParams:wn({id:ps}),query:tf,body:wn({resume:Ma().optional(),sessionId:Xt().nullable().optional()}).optional(),responses:{200:Cs,404:J_,409:J_},summary:"Launch a process (optionally in resume mode)"},cancel:{method:"POST",path:"/processes/:id/cancel",pathParams:wn({id:ps}),query:tf,body:$g.noBody(),responses:{200:Cs,404:eN,409:eN},summary:"Request process cancellation"},dismiss:{method:"POST",path:"/processes/:id/dismiss",pathParams:wn({id:ps}),query:tf,body:$g.noBody(),responses:{200:Cs,404:tN,409:tN},summary:"Dismiss process (reset to idle)"},resync:{method:"POST",path:"/processes/resync",query:tf,body:wn({clean:Ma().optional(),metadataFilter:xte.optional()}),responses:{202:wn({message:Xt()})},summary:"Re-sync process definitions"}}),$te=wn({database:Xt(),prefix:Xt(),live:Ma()}),Ote=$g.router({instances:{method:"GET",path:"/optio/instances",responses:{200:wn({instances:Ni($te)})},summary:"Discover active optio instances across databases"}});$j.options,Oj.options,Rj.options;const Rte=gj(),Tte=Rte.router({processes:Ete,discovery:Ote},{pathPrefix:"/api"});function _te(e){return hte(Tte,{baseUrl:e,baseHeaders:{}})}function pv(){return h.useContext(sc).prefix}function Q1(){return h.useContext(sc).baseUrl}function Tj(){return h.useContext(sc).client}function vv(){return h.useContext(sc).database}function Nte(){return h.useContext(sc).live}function _j(){var a;const e=Tj(),{data:t,isLoading:n,error:r,refetch:i}=e.discovery.instances.useQuery({queryKey:["optio-instances"],queryData:{},refetchInterval:1e4});return{instances:((a=t==null?void 0:t.body)==null?void 0:a.instances)??[],isLoading:n,error:r,refetch:i}}function Ite(){const{instances:e,isLoading:t}=_j();return{instance:e.length===1?e[0]:null,instances:e,isLoading:t}}const eC="optioSessionId";let xl=null,mu=null,_o={},tC="",Cp,wp;const nC=new Set;function Nj(){try{return crypto.randomUUID().replace(/-/g,"")}catch{return`${Date.now()}-${Math.random().toString(36).slice(2)}`}}function Ij(){if(xl)return xl;let e=null;try{e=sessionStorage.getItem(eC)}catch{}if(e)xl=e;else{xl=Nj();try{sessionStorage.setItem(eC,xl)}catch{}}return xl}function Y1(){mu==null||mu.close(),mu=null}function Mj(){Y1();const e=Ij(),t=new URLSearchParams;t.set("sessionId",e),Cp&&t.set("prefix",Cp),wp&&t.set("database",wp);const n=`${tC}/api/session-events/stream?${t.toString()}`,r=new EventSource(n);mu=r,r.onmessage=i=>{var a,l;try{const c=JSON.parse(i.data);if(c.type!=="session-events")return;const u=c.processId,d=c.events??[];for(const m of d)nC.has(m.requestId)||(nC.add(m.requestId),m.type==="attention"?(a=_o.onAttention)==null||a.call(_o,u,m.reason):m.type==="domain"&&((l=_o.onDomainMessage)==null||l.call(_o,u,m.keyword,m.data)))}catch{}}}function Mte(e,t,n,r){_o=r;const i=!!((r.onAttention||r.onDomainMessage)&&t),a=mu&&tC===e&&Cp===t&&wp===n;if(tC=e,Cp=t,wp=n,!i){Y1();return}a||Mj()}function Pj(){xl=Nj();try{sessionStorage.setItem(eC,xl)}catch{}nC.clear(),_o.onAttention||_o.onDomainMessage?Mj():Y1()}const sc=h.createContext(null);function Pte({explicitPrefix:e,explicitDatabase:t,explicitLive:n,baseUrl:r,client:i,children:a}){const{instance:l}=Ite(),c=e??(l==null?void 0:l.prefix)??"optio",u=t??(l==null?void 0:l.database),d=n??(l==null?void 0:l.live)??!1;return se.jsx(sc.Provider,{value:{prefix:c,database:u,live:d,baseUrl:r,client:i,resetSession:Pj},children:a})}function Aj({prefix:e,database:t,live:n,baseUrl:r="",onAttention:i,onDomainMessage:a,children:l}){const c=h.useMemo(()=>_te(r),[r]);return h.useEffect(()=>{Mte(r,e,t,{onAttention:i,onDomainMessage:a})},[r,e,t,i,a]),se.jsx(sc.Provider,{value:{prefix:e??"optio",database:t,live:n??!1,baseUrl:r,client:c,resetSession:Pj},children:se.jsx(Pte,{explicitPrefix:e,explicitDatabase:t,explicitLive:n,baseUrl:r,client:c,children:l})})}const nN=new Set;function zj(e){if(!(!e||e.length===0))for(const t of e){if(!t||typeof t.requestId!="string"||nN.has(t.requestId))continue;nN.add(t.requestId);const n=t.url.replace(/^"(.*)"$/,"$1");let r=null;try{r=window.open(n,"_blank","noopener,noreferrer")}catch{r=null}r||Zg.info({message:"A task wants to open a page",description:se.jsx("a",{href:n,target:"_blank",rel:"noopener noreferrer",children:"Open in a new tab ↗"}),duration:0})}}const Ate=h.createContext(null);var zte={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm0 76c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm128.01 198.83c.03 0 .05.01.09.06l45.02 45.01a.2.2 0 01.05.09.12.12 0 010 .07c0 .02-.01.04-.05.08L557.25 512l127.87 127.86a.27.27 0 01.05.06v.02a.12.12 0 010 .07c0 .03-.01.05-.05.09l-45.02 45.02a.2.2 0 01-.09.05.12.12 0 01-.07 0c-.02 0-.04-.01-.08-.05L512 557.25 384.14 685.12c-.04.04-.06.05-.08.05a.12.12 0 01-.07 0c-.03 0-.05-.01-.09-.05l-45.02-45.02a.2.2 0 01-.05-.09.12.12 0 010-.07c0-.02.01-.04.06-.08L466.75 512 338.88 384.14a.27.27 0 01-.05-.06l-.01-.02a.12.12 0 010-.07c0-.03.01-.05.05-.09l45.02-45.02a.2.2 0 01.09-.05.12.12 0 01.07 0c.02 0 .04.01.08.06L512 466.75l127.86-127.86c.04-.05.06-.06.08-.06a.12.12 0 01.07 0z"}}]},name:"close-circle",theme:"outlined"},jte=function(t,n){return h.createElement(mn,Ue({},t,{ref:n,icon:zte}))},jj=h.forwardRef(jte),Dte={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z"}}]},name:"exclamation-circle",theme:"outlined"},Lte=function(t,n){return h.createElement(mn,Ue({},t,{ref:n,icon:Dte}))},kte=h.forwardRef(Lte),Bte={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M719.4 499.1l-296.1-215A15.9 15.9 0 00398 297v430c0 13.1 14.8 20.5 25.3 12.9l296.1-215a15.9 15.9 0 000-25.8zm-257.6 134V390.9L628.5 512 461.8 633.1z"}}]},name:"play-circle",theme:"outlined"},Hte=function(t,n){return h.createElement(mn,Ue({},t,{ref:n,icon:Bte}))},Bb=h.forwardRef(Hte);function Dj(e,t={}){const{minLength:n=2}=t,r=[...new Set(e.trim().split(" ").filter(i=>i.length>0))];return r.some(i=>i.length>=n)?r:[]}var Fte={ł:"l",Ł:"L",ø:"o",Ø:"O",đ:"d",Đ:"D",ħ:"h",Ħ:"H",ı:"i",ŋ:"n",Ŋ:"N",æ:"ae",Æ:"AE",œ:"oe",Œ:"OE",ß:"ss","ẞ":"SS",ð:"d",Ð:"D",þ:"th",Þ:"TH"},Vte=/[łŁøØđĐħĦıŋŊæÆœŒßẞðÐþÞ]/g;function Lj(e,t={}){const{caseSensitive:n=!1,diacriticSensitive:r=!1}=t;let i="";const a=[];let l=0;for(;l<e.length;){const u=e.codePointAt(l)>65535?2:1;let d=e.slice(l,l+u);r||(d=d.normalize("NFD").replace(/[̀-ͯ]/g,""),d=d.replace(Vte,m=>Fte[m]??m)),n||(d=d.toLowerCase());for(let m=0;m<d.length;m++)a.push(l);i+=d,l+=u}return a.push(e.length),{normalized:i,map:a}}function rC(e,t={}){return Lj(e,t).normalized}function Ute(e,t,n={}){if(t.length===0)return!0;const r=rC(e,n);return t.every(i=>{const a=rC(i,n);return r.indexOf(a)!==-1})}function qte(e,t,n={}){if(t.length===0)return[];const{normalized:r,map:i}=Lj(e,n),a=[];for(const u of t){const d=rC(u,n);let m=0;for(;;){const g=r.indexOf(d,m);if(g===-1)break;const v=i[g],y=i[g+d.length];a.push({start:v,end:y}),m=g+1}}a.sort((u,d)=>u.start-d.start);const l=[];let c=0;for(const u of a)u.start>=c&&(l.push(u),c=u.end);return l}function Kte(e,t){if(t==="$")return e;const n=t.split(".");let r=e;for(const i of n){if(r==null||typeof r!="object")return;r=r[i]}return r}function iC(e){return e==null?[]:Array.isArray(e)?e.flatMap(iC):typeof e=="object"?Object.values(e).flatMap(iC):[String(e)]}function Wte(e,t){return t.map(n=>iC(Kte(e,n)).join(" ")).filter(Boolean).join(" ")}function Gte({options:e,query:t,onSetQuery:n,onReset:r,onChange:i}){const[a,l]=h.useState(""),{caseSensitive:c=!1,diacriticSensitive:u=!1,minLength:d=2}=e??{},m=t!==void 0,g=m?t:a,v=h.useCallback(S=>{i==null||i(g,S),m?n==null||n(S):l(S)},[g,m,n,i]),y=h.useMemo(()=>Dj(g,{minLength:d}),[g,c,u,d]),b=y.length>0,x=h.useCallback(()=>{r?(i==null||i(g,""),r()):v("")},[r,v,g,i]);return{query:g,setQuery:v,patterns:y,hasPatterns:b,reset:x}}var eh=h.createContext({});function Xte(e="AND"){const t=h.useContext(eh);return h.useCallback(n=>{const r=Object.values(t).filter(a=>a.hasPatterns);if(r.length===0)return!0;const i=a=>Ute(Wte(n,a.fields),a.patterns,a.options);return e==="AND"?r.every(i):r.some(i)},[t,e])}function rN(e){const{query:t,setQuery:n,reset:r,fields:i,options:a}=e,l=Dj(t,a??{});return{query:t,setQuery:n,patterns:l,hasPatterns:l.length>0,reset:r,fields:i,options:a}}function Hb(e,t){return e!==void 0?[e]:t??["$"]}function Qte(e){const{options:t,children:n}=e,r=e.searches,i=r!==void 0,a=e,l=Gte({options:t,query:a.query,onSetQuery:a.onSetQuery,onReset:a.onReset,onChange:a.onChange}),[c,u]=h.useState({}),d=h.useCallback((x,S)=>u(w=>({...w,[x]:S})),[]),m=h.useContext(eh),g=h.useMemo(()=>{if(a.field!==void 0&&a.fields!==void 0)throw new Error("WithSearch: cannot specify both `field` and `fields`.");return rN({query:l.query,setQuery:l.setQuery,reset:l.reset,fields:Hb(a.field,a.fields),options:t})},[l.query,l.setQuery,l.reset,a.field,a.fields,t]),v=a.name??Hb(a.field,a.fields).join("+"),y=h.useMemo(()=>{const x={};if(!i)return x;for(const S of r){if(S.field!==void 0&&S.fields!==void 0)throw new Error("WithSearch: a search spec cannot specify both `field` and `fields`.");const w=Hb(S.field,S.fields),$=S.name??w.join("+");if($ in x)throw new Error(`WithSearch: duplicate name "${$}" in searches.`);const O=c[$]??"";x[$]=rN({query:O,setQuery:T=>d($,T),reset:()=>d($,""),fields:w,options:{...t,...S.options}})}return x},[i,r,c,t,d]);if(i&&(a.field!==void 0||a.fields!==void 0||a.name!==void 0||a.query!==void 0||a.onSetQuery!==void 0||a.onReset!==void 0||a.onChange!==void 0))throw new Error("WithSearch: cannot combine `searches` with `field`, `fields`, or controlled props.");const b=h.useMemo(()=>{const x=i?y:{[v]:g},S={...m};for(const[w,$]of Object.entries(x)){if(w in S)throw new Error(`WithSearch: duplicate name "${w}". Each WithSearch in the same tree must have a unique name.`);S[w]=$}return S},[m,i,y,v,g]);return se.jsx(eh.Provider,{value:b,children:n})}function Yte(e){const t=h.useContext(eh);if(e===void 0){const r=Object.values(t);if(r.length===1){const i=r[0];return{query:i.query,setQuery:i.setQuery,patterns:i.patterns,hasPatterns:i.hasPatterns,reset:i.reset}}throw r.length===0?new Error("useSearchContext: no WithSearch found in the tree."):new Error(`useSearchContext: found ${r.length} searches in context; pass a name to select one.`)}const n=t[e];if(!n)throw new Error(`useSearchContext: no WithSearch with name "${e}" found in the tree.`);return{query:n.query,setQuery:n.setQuery,patterns:n.patterns,hasPatterns:n.hasPatterns,reset:n.reset}}function Zte(e,t,n){const r=h.useContext(eh);return h.useMemo(()=>{const i=[];if(t)for(const a of Object.values(r))i.push(...a.patterns);else if(e!==void 0){const a=Array.isArray(e)?e:[e];for(const l of a){if(!(l in r)){console.warn(`quaesitor-textus: HighlightedText references unknown search name "${l}". No WithSearch with that name found in the tree.`);continue}i.push(...r[l].patterns)}}else{const a=Object.values(r);a.length===1&&i.push(...a[0].patterns)}return[...new Set([...i,...n??[]])]},[r,e,t,n])}var Jte={background:"#FFFF5480",padding:"2px",margin:"-2px"};function iN({text:e,patterns:t,searchNames:n,all:r,options:i,markStyle:a=Jte}){const l=Zte(n,r,t);if(e===void 0)return;const c=qte(e,l,i);if(c.length===0)return e;const u=[];let d=0;for(const m of c)m.start>d&&u.push(e.substring(d,m.start)),u.push(se.jsx("mark",{style:a,children:e.substring(m.start,m.end)},m.start)),d=m.end;return d<e.length&&u.push(e.substring(d)),se.jsx("span",{children:u})}const ene=new Set(["idle","done","failed","cancelled"]),tne=new Set(["running","scheduled","cancel_requested","cancelling"]),nne=new Set(["done","failed","cancelled"]),rne=new Set(["running","cancel_requested","cancelling"]),ine=new Set(["scheduled","running"]);function ane(e){return!!e&&ene.has(e)}function kj(e){return!!e&&tne.has(e)}function one(e){return!!e&&nne.has(e)}function lne(e){return!!e&&rne.has(e)}function sne(e){return!!e&&ine.has(e)}function cne(e){var t;return ane((t=e==null?void 0:e.status)==null?void 0:t.state)}function Bj(e){var t;return kj((t=e==null?void 0:e.status)==null?void 0:t.state)}function une(e){var t;return lne((t=e==null?void 0:e.status)==null?void 0:t.state)}function dne(e){var t;return(e==null?void 0:e.cancellable)===!0&&sne((t=e==null?void 0:e.status)==null?void 0:t.state)}function fne(e){return(e==null?void 0:e.supportsResume)===!0&&(e==null?void 0:e.hasSavedState)===!0}const hne={idle:"default",scheduled:"cyan",running:"blue",done:"green",failed:"red",cancel_requested:"orange",cancelling:"orange",cancelled:"orange"},mne={small:{},default:{fontSize:14,padding:"2px 8px",lineHeight:"20px"},big:{fontSize:16,padding:"4px 12px",lineHeight:"24px"}};function gne(e){const t=Math.floor(e/60),n=Math.floor(e%60);return`${t}:${n.toString().padStart(2,"0")}`}function pne(e,t){const[n,r]=h.useState(null);return h.useEffect(()=>{if(!t||!e){r(null);return}const i=new Date(e).getTime(),a=()=>r(gne((Date.now()-i)/1e3));a();const l=setInterval(a,1e3);return()=>clearInterval(l)},[e,t]),n}function Hj({state:e,error:t,runningSince:n,size:r="small",autoResumeScheduled:i}){const{t:a}=nd(),l=hne[e]??"default",c=a(`status.${e}`,e),u=kj(e),d=pne(n,u),m=a("status.autoResumeScheduled","Scheduled for auto-restart");return se.jsxs("span",{children:[se.jsxs(k1,{color:l,style:mne[r],children:[c,d&&` (${d})`]}),e==="failed"&&t&&se.jsx(Vr,{title:t,children:se.jsx(kte,{style:{color:"#ff4d4f",marginLeft:4}})}),i&&se.jsx(Vr,{title:m,children:se.jsx(TW,{"aria-label":m,style:{color:"#722ed1",marginLeft:4}})})]})}function Fj({process:e,onLaunch:t,size:n="small",iconFontSize:r,denyReason:i}){const{t:a}=nd();if(!cne(e)||!t)return null;const l=r?{fontSize:r}:void 0;if(i)return se.jsx(Vr,{title:i,children:se.jsx("span",{style:{display:"inline-block",cursor:"not-allowed"},children:se.jsx(Er,{type:"text",size:n,icon:se.jsx(Bb,{style:l}),disabled:!0,style:{pointerEvents:"none"}})})});if(!fne(e)){const u=se.jsx(Er,{type:"text",size:n,icon:se.jsx(Bb,{style:l}),style:{color:"#52c41a"},onClick:m=>{m.preventDefault(),t(e._id,void 0)}}),d=e.warning?se.jsx(wz,{title:e.warning,onConfirm:()=>t(e._id,void 0),children:u}):u;return se.jsx(Vr,{title:a("processes.launch"),children:d})}const c={items:[{key:"restart",icon:se.jsx(jQ,{}),label:a("processes.restart",{defaultValue:"Restart (discard saved state)"}),onClick:()=>t(e._id,{resume:!1})}]};return se.jsxs(Oh.Compact,{children:[se.jsx(Vr,{title:a("processes.resume",{defaultValue:"Resume"}),children:se.jsx(Er,{type:"text",size:n,icon:se.jsx(Bb,{style:l}),style:{color:"#52c41a"},onClick:u=>{u.preventDefault(),t(e._id,{resume:!0})}})}),se.jsx(az,{menu:c,trigger:["click"],children:se.jsx(Vr,{title:a("processes.moreOptions",{defaultValue:"More options"}),children:se.jsx(Er,{type:"text",size:n,icon:se.jsx(GP,{style:l})})})})]})}const{Text:aN}=Xi,vne={small:{button:"small",progress:"small"},default:{button:"middle",progress:"default",nameFontSize:16},big:{button:"large",progress:{height:12},iconFontSize:24,nameFontSize:20}};function yne({process:e,onLaunch:t,onCancel:n,readonly:r,onProcessClick:i,size:a="default",inline:l=!1,inactiveContent:c,launchDenyReason:u}){var R,M,P,N,I;const{t:d}=nd(),m=((R=e.status)==null?void 0:R.state)??"idle",g=Bj(e),v=!r&&dne(e),y=((M=e.progress)==null?void 0:M.percent)!=null,b=vne[a],x=b.nameFontSize?{fontSize:b.nameFontSize}:void 0,S=i?se.jsx(Er,{type:"link",style:{padding:0,height:"auto",...x},onClick:()=>i(e._id),children:se.jsx(iN,{text:e.name,all:!0})}):se.jsx(aN,{style:x,children:se.jsx(iN,{text:e.name,all:!0})}),w=e.description?se.jsx(Vr,{title:e.description,children:S}):S,$=se.jsxs("span",{children:[w,g&&((P=e.progress)==null?void 0:P.message)&&se.jsxs(aN,{style:{marginLeft:8,color:"#1890ff"},children:["— ",e.progress.message]})]}),O=g&&y?se.jsx(tp,{percent:e.progress.percent,size:b.progress,showInfo:!1,status:m==="failed"?"exception":"active"}):g?se.jsx(tp,{percent:100,status:"active",size:b.progress,showInfo:!1,strokeColor:{from:"#108ee9",to:"#87d068"}}):null,T=g?O:c??null,_=se.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8},children:[se.jsx(Hj,{state:m,error:(N=e.status)==null?void 0:N.error,runningSince:(I=e.status)==null?void 0:I.runningSince,size:a,autoResumeScheduled:e.autoResumeScheduled}),!r&&se.jsx(Fj,{process:e,onLaunch:t,size:b.button,iconFontSize:b.iconFontSize,denyReason:u}),v&&n&&se.jsx(Vr,{title:d("processes.cancel"),children:se.jsx(Er,{type:"text",size:b.button,danger:!0,icon:se.jsx(jj,{style:b.iconFontSize?{fontSize:b.iconFontSize}:void 0}),onClick:B=>{B.preventDefault(),n(e._id)}})})]});return l?se.jsxs("div",{style:{display:"flex",alignItems:"center",gap:12,width:"100%"},children:[$,se.jsx("div",{style:{flex:1,minWidth:80},children:T}),_]}):se.jsxs("div",{style:{width:"100%"},children:[se.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[$,_]}),T]})}function bne({processes:e,loading:t,onLaunch:n,onCancel:r,onProcessClick:i}){return se.jsx(yx,{loading:t,dataSource:e,pagination:{pageSize:16},renderItem:a=>se.jsx(yx.Item,{children:se.jsx(yne,{process:a,onLaunch:n,onCancel:r,onProcessClick:i,size:"small"})})})}const{Text:mf}=Xi;function Vj(e){var n;const t=(n=e.children)==null?void 0:n.filter(r=>r.status.state!=="done").map(r=>Vj(r));return{...e,children:t}}function Uj(e){const t=[e._id];if(e.children)for(const n of e.children)t.push(...Uj(n));return t}function qj(e,t,n,r){var c;const i=Bj(e),a=i&&e.cancellable,l=e.progress.percent!=null;return{key:e._id,title:se.jsxs("div",{style:{display:"flex",flexWrap:"wrap",alignItems:"center",gap:"0 8px",width:"100%"},children:[e.description?se.jsx(Vr,{title:e.description,children:se.jsx(mf,{style:{whiteSpace:"nowrap"},children:e.name})}):se.jsx(mf,{style:{whiteSpace:"nowrap"},children:e.name}),se.jsxs("span",{style:{display:"flex",alignItems:"center",gap:8,marginLeft:"auto",minWidth:120,justifyContent:"flex-end"},children:[se.jsx(Hj,{state:e.status.state,error:e.status.error,runningSince:e.status.runningSince,autoResumeScheduled:e.autoResumeScheduled}),i&&l?se.jsx(tp,{percent:e.progress.percent,size:"small",showInfo:!1,style:{width:120},status:e.status.state==="failed"?"exception":"active"}):i?se.jsx(tp,{percent:100,status:"active",size:"small",showInfo:!1,style:{width:120},strokeColor:{from:"#108ee9",to:"#87d068"}}):null,i&&l&&se.jsxs(mf,{style:{fontSize:12,whiteSpace:"nowrap"},children:[Math.round(e.progress.percent),"%"]}),a&&t&&se.jsx(Vr,{title:r("processes.cancel"),children:se.jsx(Er,{type:"text",size:"small",danger:!0,icon:se.jsx(jj,{}),onClick:u=>{u.stopPropagation(),t(e._id)}})}),n&&se.jsx(Fj,{process:e,onLaunch:n,size:"small"})]}),i&&e.progress.message&&se.jsxs(mf,{style:{width:"100%",fontSize:12,color:"#1890ff"},children:["— ",e.progress.message]})]}),children:((c=e.children)==null?void 0:c.map(u=>qj(u,t,n,r)))??[]}}function Sne({treeData:e,sseState:t,onCancel:n,onLaunch:r}){const{t:i}=nd(),[a,l]=h.useState(!0),c=e?a?Vj(e):e:null,u=h.useMemo(()=>c?Uj(c):[],[c]);if(!e||!c)return null;const d=[qj(c,n,r,i)];return se.jsxs("div",{children:[se.jsxs("div",{style:{marginBottom:8,display:"flex",alignItems:"center",gap:16},children:[se.jsx(mf,{type:"secondary",style:{fontSize:12},children:t.connected?"Live":"Disconnected"}),se.jsx(Vf,{checked:a,onChange:m=>l(m.target.checked),children:"Hide finished sub-tasks"})]}),se.jsx("style",{children:`
|
|
356
|
-
.process-tree .ant-tree-treenode { display: flex; width: 100%; }
|
|
357
|
-
.process-tree .ant-tree-node-content-wrapper { flex: 1; overflow: hidden; }
|
|
358
|
-
.process-tree .ant-tree-title { display: block; }
|
|
359
|
-
`}),se.jsx(j1,{className:"process-tree",treeData:d,expandedKeys:u,selectable:!1,showLine:!0})]})}const oN=["#ef4444","#10b981","#3b82f6","#f59e0b","#8b5cf6","#06b6d4","#ec4899","#84cc16","#f97316","#a855f7"],xne=3;function Cne(e){const t=new Map;if(!e)return t;let n=0;const r=i=>{t.set(i._id,{depth:i.depth,color:oN[n*xne%oN.length],label:i.name}),n+=1;for(const a of i.children)r(a)};return r(e),t}const{Text:Fb}=Xi,wne={event:"cyan",info:"blue",debug:"default",warning:"gold",error:"red"},Ene=16,$ne=8,One="#666";function Rne(e,t){return e.get(t.processId)??{depth:0,color:One,label:t.processLabel}}function lN({logs:e,tree:t,fillParent:n}){const{t:r}=nd(),i=h.useRef(null),a=h.useRef(!0),l=h.useMemo(()=>Cne(t),[t]),c=()=>{if(i.current){const{scrollTop:u,scrollHeight:d,clientHeight:m}=i.current;a.current=d-u-m<30}};return h.useEffect(()=>{i.current&&a.current&&(i.current.scrollTop=i.current.scrollHeight)},[e.length]),e.length===0?se.jsx(Cl,{description:r("common.noData")}):se.jsx("div",{ref:i,onScroll:c,style:{...n?{height:"100%"}:{maxHeight:400},overflow:"auto",border:"1px solid #303030",borderRadius:4,padding:8,fontFamily:"monospace",fontSize:12},children:e.map((u,d)=>{const m=Rne(l,u),g=d>0?e[d-1]:null,v=!g||g.processId!==u.processId,y=Math.min(m.depth,$ne)*Ene,b=t!==null;return se.jsxs("div",{"data-testid":"log-row",style:{display:"flex",alignItems:"baseline",marginBottom:2,paddingLeft:y},children:[b&&se.jsx("div",{"data-testid":"log-bar",style:{width:3,alignSelf:"stretch",background:m.color,marginRight:8,flex:"0 0 auto"}}),se.jsxs("div",{style:{display:"flex",gap:8,alignItems:"baseline",flex:1,minWidth:0},children:[se.jsx(Fb,{type:"secondary",style:{whiteSpace:"nowrap",fontSize:11},children:new Date(u.timestamp).toLocaleTimeString()}),se.jsx(k1,{color:wne[u.level]??"default",style:{fontSize:10},children:u.level.toUpperCase()}),v&&se.jsx(Fb,{style:{color:m.color,fontSize:11,fontWeight:600,whiteSpace:"nowrap"},children:m.label}),se.jsx(Fb,{children:u.message})]})]},d)})})}function Tne({name:e,...t}){const{query:n,setQuery:r,reset:i}=Yte(e);return se.jsx(ic,{...t,value:n,onChange:a=>r(a.target.value),suffix:n.length>0?se.jsx("span",{onClick:i,"aria-label":"Clear search",style:{cursor:"pointer",color:"rgba(0,0,0,0.45)",lineHeight:1},children:"×"}):se.jsx("span",{})})}const _ne=new Set(["idle","done"]),Kj=h.createContext(null);function Nne({children:e}){const[t,n]=h.useState("all"),[r,i]=h.useState(!1),[a,l]=h.useState(!1),c=Xte(),u=h.useMemo(()=>d=>d.filter(c).filter(g=>{var b;const v=(b=g.status)==null?void 0:b.state,y=_ne.has(v)||!v;return y&&!r&&(g.depth??0)!==0||y&&!a&&g.special===!0?!1:t==="active"?v!=="idle"&&v!=="done":t==="hide_completed"?v!=="done":t==="errors"?v==="failed":!0}),[c,t,r,a]);return se.jsx(Kj.Provider,{value:{filterGroup:t,setFilterGroup:n,showDetails:r,setShowDetails:i,showSpecial:a,setShowSpecial:l,filterFn:u},children:e})}function Ine({children:e}){return se.jsx(Qte,{fields:["name","description"],children:se.jsx(Nne,{children:e})})}function Wj(){return h.useContext(Kj)}function Mne(){const{filterGroup:e,setFilterGroup:t,showDetails:n,setShowDetails:r,showSpecial:i,setShowSpecial:a}=Wj(),{t:l}=nd();return se.jsxs(Oh,{size:[16,8],wrap:!0,style:{marginBottom:16},children:[se.jsx(Tne,{style:{width:200},placeholder:l("processes.search")}),se.jsx(Gl,{value:e,onChange:t,style:{width:180},options:[{value:"all",label:l("processes.filterAll")},{value:"active",label:l("processes.filterActive")},{value:"hide_completed",label:l("processes.filterHideCompleted")},{value:"errors",label:l("processes.filterErrors")}]}),se.jsx(Vf,{checked:n,onChange:c=>r(c.target.checked),children:l("processes.showDetails")}),se.jsx(Vf,{checked:i,onChange:c=>a(c.target.checked),children:l("processes.showSpecial")})]})}function Pne({processes:e,...t}){const{filterFn:n}=Wj();return se.jsx(bne,{processes:n(e),...t})}function Gj(e){const t=pv(),n=vv(),r=Tj(),i=oc(),a=()=>i.invalidateQueries({queryKey:["processes"]}),l=r.processes.launch.useMutation({onSuccess:a}),c=r.processes.cancel.useMutation({onSuccess:a}),u=r.processes.dismiss.useMutation({onSuccess:a}),d=r.processes.resync.useMutation({onSuccess:(m,g)=>{a()}});return{launch:(m,g)=>l.mutate({params:{id:m},query:{database:n,prefix:t},body:{sessionId:Ij(),...(g==null?void 0:g.resume)===!0?{resume:!0}:{}}}),cancel:m=>c.mutate({params:{id:m},query:{database:n,prefix:t}}),dismiss:m=>u.mutate({params:{id:m},query:{database:n,prefix:t}}),resync:m=>d.mutate({query:{database:n,prefix:t},body:m?{metadataFilter:m}:{}}),resyncClean:m=>d.mutate({query:{database:n,prefix:t},body:m?{clean:!0,metadataFilter:m}:{clean:!0}}),isResyncing:d.isPending}}function Ane(e){if(e.length===0)return null;const t=new Map;for(const r of e)t.set(r._id,{...r,children:[]});let n=null;for(const r of t.values())r.parentId&&t.has(r.parentId)?t.get(r.parentId).children.push(r):r.depth===0&&(n=r);for(const r of t.values())r.children.sort((i,a)=>i.order-a.order);return n}const sN={processes:[],connected:!1,logs:[],processNotFound:!1,error:null};function zne(e,t=10){const n=pv(),r=vv(),i=Q1(),[a,l]=h.useState(sN),c=h.useRef(null),u=h.useRef(null),d=h.useRef(null),m=h.useContext(Ate);h.useEffect(()=>{if(!(!m||!e))return m.registerTree(e)},[m,e]);const g=m&&e?m.getSlice(e):null,v=g!==null,y=h.useCallback(()=>{if(!e)return;u.current=null;const S=`${i}/api/processes/${e}?prefix=${encodeURIComponent(n)}${r?`&database=${encodeURIComponent(r)}`:""}`,w=new AbortController;d.current=w;const $=()=>{const O=`${i}/api/processes/${e}/tree/stream?prefix=${encodeURIComponent(n)}&maxDepth=${t}${r?`&database=${encodeURIComponent(r)}`:""}`,T=new EventSource(O);c.current=T,T.onopen=()=>l(_=>({..._,connected:!0,error:null})),T.onmessage=_=>{try{const R=JSON.parse(_.data);if(R.type==="update"){for(const M of R.processes)zj(M.browserOpenRequests);l(M=>({...M,processes:R.processes}))}else R.type==="log-clear"?l(M=>({...M,logs:[]})):R.type==="log"&&l(M=>({...M,logs:[...M.logs,...R.entries]}))}catch{}},T.onerror=()=>{l(_=>({..._,connected:!1})),T.close(),u.current=setTimeout(()=>y(),3e3)}};fetch(S,{signal:w.signal}).then(O=>{if(!w.signal.aborted){if(O.status===404){l(T=>({...T,processNotFound:!0,error:null,connected:!1}));return}if(!O.ok){l(T=>({...T,error:new Error(`process probe failed: HTTP ${O.status}`),connected:!1})),u.current=setTimeout(()=>y(),3e3);return}l(T=>({...T,processNotFound:!1,error:null})),$()}}).catch(O=>{w.signal.aborted||(l(T=>({...T,error:O instanceof Error?O:new Error(String(O)),connected:!1})),u.current=setTimeout(()=>y(),3e3))})},[e,t,n,r,i]);h.useEffect(()=>{if(!v)return l(sN),y(),()=>{var S,w;(S=c.current)==null||S.close(),(w=d.current)==null||w.abort(),u.current!==null&&(clearTimeout(u.current),u.current=null)}},[y,v]);const b=h.useMemo(()=>Ane(a.processes),[a.processes]),x=a.processes.find(S=>S.depth===0)??null;return g?{processes:g.processes,tree:g.tree,logs:g.logs,connected:g.connected,rootProcess:g.rootProcess,processNotFound:g.processNotFound,error:g.error}:{...a,tree:b,rootProcess:x}}let ou={processes:[],connected:!1},aC=new Set,$s=null,Og=null,Ef=null;function Vb(){aC.forEach(e=>e())}function jne(){$s==null||$s.close(),$s=null,Og=null,Ef!==null&&(clearTimeout(Ef),Ef=null)}function Xj(e,t,n,r){const i=`${e}|${n}|${t}|${r}`;if($s&&Og===i)return;jne();const a=new URLSearchParams;a.set("prefix",t),n&&a.set("database",n);const l=`${e}/api/processes/stream?${a.toString()}`,c=new EventSource(l);Og=i,$s=c,c.onopen=()=>{ou={...ou,connected:!0},Vb()},c.onmessage=u=>{try{const d=JSON.parse(u.data);if(d.type==="update"){for(const m of d.processes)zj(m.browserOpenRequests);ou={processes:d.processes,connected:!0},Vb()}}catch{}},c.onerror=()=>{ou={...ou,connected:!1},Vb(),c.close(),$s=null,Og=null,Ef=setTimeout(()=>{Ef=null,Xj(e,t,n,r)},3e3)}}function Dne(e){return aC.add(e),()=>{aC.delete(e)}}function Lne(){return ou}function kne(e){const t=pv(),n=vv(),r=Q1();return Xj(r,t,n,""),h.useSyncExternalStore(Dne,Lne)}const Qj=new Map;function Z1(e,t){Qj.set(e,t)}function Bne(e){return Qj.get(e)}function Yj(e){var u;const t=e.process.widgetData??void 0,n=(u=e.process.status)==null?void 0:u.state,r=one(n),[i,a]=h.useState(!1);if(h.useEffect(()=>{if(!(t!=null&&t.localStorageOverrides))return;const d=Object.keys(t.localStorageOverrides);for(const m of d){const v=t.localStorageOverrides[m].replace(/\{widgetProxyUrl\}/g,e.widgetProxyUrl);localStorage.setItem(m,v)}return()=>{for(const m of d)localStorage.removeItem(m)}},[t==null?void 0:t.localStorageOverrides,e.widgetProxyUrl]),!t)return se.jsx("div",{"data-testid":"optio-widget-loading",children:"Loading…"});const c=(t.iframeSrc??e.widgetProxyUrl).replace(/\{widgetProxyUrl\}/g,e.widgetProxyUrl);return se.jsxs("div",{style:{position:"relative",width:"100%",height:"100%"},children:[se.jsx("iframe",{"data-testid":"optio-widget-iframe",src:c,title:t.title??e.process.name,sandbox:t.sandbox,allow:t.allow,style:{width:"100%",height:"100%",border:"none"}}),r&&!i&&se.jsxs("div",{"data-testid":"optio-widget-session-ended",style:{position:"absolute",top:0,left:0,right:0,padding:8,background:"#fffbe6",borderBottom:"1px solid #ffe58f"},children:["Session ended.",se.jsx("button",{onClick:()=>a(!0),style:{marginLeft:8},children:"Dismiss"})]})]})}Z1("iframe",Yj);const cN={ArrowUp:"Up",ArrowDown:"Down",ArrowLeft:"Left",ArrowRight:"Right",Enter:"Enter",Escape:"Escape",Tab:"Tab"};function Hne(e){const[t,n]=h.useState(""),[r,i]=h.useState(!1),[a,l]=h.useState(null),c=h.useRef(null),u=`${e.apiBaseUrl}/api/widget-control/${encodeURIComponent(e.database??"")}/${encodeURIComponent(e.prefix)}/${e.process._id}`;h.useEffect(()=>{var y;(y=c.current)==null||y.focus();const v=[150,500,1e3].map(b=>setTimeout(()=>{var x;return(x=c.current)==null?void 0:x.focus()},b));return()=>v.forEach(clearTimeout)},[]);async function d(v){var y;try{const b=await fetch(u,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({key:v})});l(b.ok?null:b.status===404?"Session not running.":"Send failed — retry.")}catch{l("Send failed — retry.")}finally{(y=c.current)==null||y.focus()}}async function m(){var y;const v=t;if(!(!v||r)){i(!0),l(null);try{const b=await fetch(u,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({text:v})});b.ok?n(""):l(b.status===404?"Session not running.":"Send failed — retry.")}catch{l("Send failed — retry.")}finally{i(!1),(y=c.current)==null||y.focus()}}}function g(v){if(t===""&&!v.shiftKey&&cN[v.key]){v.preventDefault(),d(cN[v.key]);return}v.key==="Enter"&&!v.shiftKey&&(v.preventDefault(),m())}return se.jsxs("div",{style:{display:"flex",flexDirection:"column",width:"100%",height:"100%"},children:[se.jsx("div",{style:{flex:1,minHeight:0},children:se.jsx(Yj,{...e})}),se.jsxs("div",{style:{borderTop:"1px solid #ddd",padding:8,display:"flex",gap:8,alignItems:"flex-end"},children:[se.jsx("textarea",{ref:c,"data-testid":"agent-input-box",value:t,onChange:v=>n(v.target.value),onKeyDown:g,placeholder:"Message Claude… (Enter to send, Shift+Enter for newline; empty box: arrows/Enter/Esc drive the TUI)",rows:2,style:{flex:1,resize:"vertical",fontFamily:"inherit"}}),se.jsx("button",{"data-testid":"agent-input-send",onClick:()=>void m(),disabled:r||!t,children:"Send"}),a&&se.jsx("span",{"data-testid":"agent-input-error",style:{color:"#b00",alignSelf:"center"},children:a})]})]})}Z1("iframe-input",Hne);function Fne(e){const t=Q1(),n=pv(),r=vv();if(!e)return null;const i=e.uiWidget;if(!i||!une(e)||!(e.widgetData!=null))return null;const l=Bne(i);if(!l)return console.warn(`[optio-ui] No widget registered under name "${i}"; falling back to default rendering.`),null;if(!r)return console.warn(`[optio-ui] Widget "${i}" requested but database is unknown (no explicit database on <OptioProvider> and instance discovery has not resolved); falling back to default rendering.`),null;const c=`${t}/api/widget/${encodeURIComponent(r)}/${encodeURIComponent(n)}/${e._id}/`;return se.jsx(l,{process:e,apiBaseUrl:t,widgetProxyUrl:c,prefix:n,database:r})}function Vne({processId:e,readOnly:t=!1}){const{tree:n,logs:r,connected:i,processNotFound:a,error:l}=zne(e??void 0),{launch:c,cancel:u}=Gj(),d=Fne(n);return e?a?se.jsx("div",{"data-testid":"optio-detail-not-found",style:{color:"#999",textAlign:"center",marginTop:100},children:"Process not found."}):l?se.jsxs("div",{"data-testid":"optio-detail-error",style:{color:"#a8071a",textAlign:"center",marginTop:100},children:["Error while accessing process: ",l.message]}):n?d?se.jsxs("div",{"data-testid":"optio-widget-layout",style:{display:"flex",flexDirection:"column",height:"100%",minHeight:0},children:[se.jsx("div",{style:{flex:"0 0 20%",minHeight:0,overflow:"hidden"},children:se.jsx(lN,{logs:r,tree:n,fillParent:!0})}),se.jsx("div",{style:{flex:"1 1 auto",minHeight:0},children:d})]}):se.jsxs("div",{"data-testid":"optio-detail-default",children:[se.jsx(Sne,{treeData:n,sseState:{connected:i},onLaunch:t?void 0:(m,g)=>c(m,g),onCancel:t?void 0:m=>u(m)}),se.jsx(lN,{logs:r,tree:n})]}):se.jsx("div",{"data-testid":"optio-detail-loading",children:"Loading…"}):se.jsx("div",{"data-testid":"optio-detail-empty",style:{color:"#999",textAlign:"center",marginTop:100},children:"Select a process to view details"})}const Une={items:[],busy:!1,closed:!1},qne="System: ";function Kne(e){return typeof e=="string"?e:Array.isArray(e)?e.filter(t=>(t==null?void 0:t.type)==="text"&&typeof t.text=="string").map(t=>t.text).join(`
|
|
360
|
-
`):""}function yv(e){return e.findIndex(t=>t.kind==="assistant"&&t.pending)}function Zj(e,t){return e.slice(t+1).every(n=>n.kind==="tool")}function Jj(e,t){const n=e[t];return n.pending?[...e.slice(0,t),{...n,pending:!1},...e.slice(t+1)]:e}function uN(e,t,n,r,i){const a=yv(e);if(a!==-1){const l=e[a],c=r==="append"||l.msgId===null||i==null||l.msgId===i;if(Zj(e,a)&&c){const u={...l,text:r==="append"?l.text+n:n,msgId:i??l.msgId};return[...e.slice(0,a),u,...e.slice(a+1)]}e=Jj(e,a)}return[...e,{kind:"assistant",text:n,pending:!0,seq:t,msgId:i??null}]}function Wne(e,t,n){const r=yv(e);if(r===-1)return n===null||n===""?e:[...e,{kind:"assistant",text:n,pending:!1,seq:t,msgId:null}];const i=e[r],a={...i,text:n!==null?n:i.text,pending:!1};return[...e.slice(0,r),a,...e.slice(r+1)]}function eu(e){return e.filter(t=>t.kind!=="tool")}function Gne(e,t){const n=yv(e);return n===-1||!Zj(e,n)?[...e,t]:[...e.slice(0,n),t,...e.slice(n)]}function Xne(e,t,n){var r,i,a,l,c,u,d;switch(t==null?void 0:t.type){case"user":{const m=Kne((r=t.message)==null?void 0:r.content);if(m==="")return e;if(m.startsWith(qne))return{...e,items:[...e.items,{kind:"activity",text:m,seq:n}],busy:!0};const g=e.items.findIndex(y=>y.kind==="user"&&y.local===!0&&y.text===m);if(g!==-1){const y={...e.items[g]};delete y.local;const b=[...e.items];return b[g]=y,{...e,items:b,busy:!0}}const v=Gne(e.items,{kind:"user",text:m,seq:n});return{...e,items:v,busy:!0}}case"x-optio-local-user":{const m=typeof t.text=="string"?t.text:"";return m===""?e:{...e,items:[...e.items,{kind:"user",text:m,seq:n,local:!0}],busy:!0}}case"assistant":{const m=Array.isArray((i=t.message)==null?void 0:i.content)?t.message.content:[],g=typeof((a=t.message)==null?void 0:a.id)=="string"?t.message.id:void 0;let v=e.items;for(const y of m)(y==null?void 0:y.type)==="text"&&typeof y.text=="string"?v=uN(eu(v),n,y.text,"replace",g):(y==null?void 0:y.type)==="tool_use"&&(v=[...eu(v),{kind:"tool",name:String(y.name??""),input:y.input,seq:n}]);return v===e.items?e:{...e,items:v}}case"stream_event":{if(((l=t.event)==null?void 0:l.type)==="message_start"){const g=yv(e.items);return g===-1?e:{...e,items:Jj(e.items,g)}}const m=(u=(c=t.event)==null?void 0:c.delta)==null?void 0:u.text;return typeof m!="string"||m===""?e:{...e,items:uN(eu(e.items),n,m,"append")}}case"result":{const m=typeof t.result=="string"?t.result:null;return{...e,items:Wne(eu(e.items),n,m),busy:!1}}case"control_request":{if(((d=t.request)==null?void 0:d.subtype)!=="can_use_tool")return e;const m={kind:"permission",requestId:String(t.request_id),toolName:String(t.request.tool_name??""),input:t.request.input,answered:null,seq:n};return{...e,items:[...eu(e.items),m]}}case"x-optio-permission-answered":{const m=String(t.request_id),g=t.behavior==="allow"?"allow":"deny";let v=!1;const y=e.items.map(b=>b.kind!=="permission"||b.requestId!==m||b.answered!==null?b:(v=!0,{...b,answered:g}));return v?{...e,items:y}:e}case"x-optio-closed":{const m={kind:"closed",reason:String(t.reason??""),seq:n};return{...e,items:[...eu(e.items),m],busy:!1,closed:!0}}default:return e}}function Qne(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const Yne=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Zne=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Jne={};function dN(e,t){return(Jne.jsx?Zne:Yne).test(e)}const ere=/[ \t\n\f\r]/g;function tre(e){return typeof e=="object"?e.type==="text"?fN(e.value):!1:fN(e)}function fN(e){return e.replace(ere,"")===""}class Th{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}Th.prototype.normal={};Th.prototype.property={};Th.prototype.space=void 0;function e4(e,t){const n={},r={};for(const i of e)Object.assign(n,i.property),Object.assign(r,i.normal);return new Th(n,r,t)}function oC(e){return e.toLowerCase()}class Mi{constructor(t,n){this.attribute=n,this.property=t}}Mi.prototype.attribute="";Mi.prototype.booleanish=!1;Mi.prototype.boolean=!1;Mi.prototype.commaOrSpaceSeparated=!1;Mi.prototype.commaSeparated=!1;Mi.prototype.defined=!1;Mi.prototype.mustUseProperty=!1;Mi.prototype.number=!1;Mi.prototype.overloadedBoolean=!1;Mi.prototype.property="";Mi.prototype.spaceSeparated=!1;Mi.prototype.space=void 0;let nre=0;const Qt=cc(),Nr=cc(),lC=cc(),Je=cc(),Jn=cc(),js=cc(),qi=cc();function cc(){return 2**++nre}const sC=Object.freeze(Object.defineProperty({__proto__:null,boolean:Qt,booleanish:Nr,commaOrSpaceSeparated:qi,commaSeparated:js,number:Je,overloadedBoolean:lC,spaceSeparated:Jn},Symbol.toStringTag,{value:"Module"})),Ub=Object.keys(sC);class J1 extends Mi{constructor(t,n,r,i){let a=-1;if(super(t,n),hN(this,"space",i),typeof r=="number")for(;++a<Ub.length;){const l=Ub[a];hN(this,Ub[a],(r&sC[l])===sC[l])}}}J1.prototype.defined=!0;function hN(e,t,n){n&&(e[t]=n)}function rd(e){const t={},n={};for(const[r,i]of Object.entries(e.properties)){const a=new J1(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=!0),t[r]=a,n[oC(r)]=r,n[oC(a.attribute)]=r}return new Th(t,n,e.space)}const t4=rd({properties:{ariaActiveDescendant:null,ariaAtomic:Nr,ariaAutoComplete:null,ariaBusy:Nr,ariaChecked:Nr,ariaColCount:Je,ariaColIndex:Je,ariaColSpan:Je,ariaControls:Jn,ariaCurrent:null,ariaDescribedBy:Jn,ariaDetails:null,ariaDisabled:Nr,ariaDropEffect:Jn,ariaErrorMessage:null,ariaExpanded:Nr,ariaFlowTo:Jn,ariaGrabbed:Nr,ariaHasPopup:null,ariaHidden:Nr,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Jn,ariaLevel:Je,ariaLive:null,ariaModal:Nr,ariaMultiLine:Nr,ariaMultiSelectable:Nr,ariaOrientation:null,ariaOwns:Jn,ariaPlaceholder:null,ariaPosInSet:Je,ariaPressed:Nr,ariaReadOnly:Nr,ariaRelevant:null,ariaRequired:Nr,ariaRoleDescription:Jn,ariaRowCount:Je,ariaRowIndex:Je,ariaRowSpan:Je,ariaSelected:Nr,ariaSetSize:Je,ariaSort:null,ariaValueMax:Je,ariaValueMin:Je,ariaValueNow:Je,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function n4(e,t){return t in e?e[t]:t}function r4(e,t){return n4(e,t.toLowerCase())}const rre=rd({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:js,acceptCharset:Jn,accessKey:Jn,action:null,allow:null,allowFullScreen:Qt,allowPaymentRequest:Qt,allowUserMedia:Qt,alpha:Qt,alt:null,as:null,async:Qt,autoCapitalize:null,autoComplete:Jn,autoFocus:Qt,autoPlay:Qt,blocking:Jn,capture:null,charSet:null,checked:Qt,cite:null,className:Jn,closedBy:null,colorSpace:null,cols:Je,colSpan:Je,command:null,commandFor:null,content:null,contentEditable:Nr,controls:Qt,controlsList:Jn,coords:Je|js,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Qt,defer:Qt,dir:null,dirName:null,disabled:Qt,download:lC,draggable:Nr,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Qt,formTarget:null,headers:Jn,height:Je,hidden:lC,high:Je,href:null,hrefLang:null,htmlFor:Jn,httpEquiv:Jn,id:null,imageSizes:null,imageSrcSet:null,inert:Qt,inputMode:null,integrity:null,is:null,isMap:Qt,itemId:null,itemProp:Jn,itemRef:Jn,itemScope:Qt,itemType:Jn,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Qt,low:Je,manifest:null,max:null,maxLength:Je,media:null,method:null,min:null,minLength:Je,multiple:Qt,muted:Qt,name:null,nonce:null,noModule:Qt,noValidate:Qt,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Qt,optimum:Je,pattern:null,ping:Jn,placeholder:null,playsInline:Qt,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Qt,referrerPolicy:null,rel:Jn,required:Qt,reversed:Qt,rows:Je,rowSpan:Je,sandbox:Jn,scope:null,scoped:Qt,seamless:Qt,selected:Qt,shadowRootClonable:Qt,shadowRootCustomElementRegistry:Qt,shadowRootDelegatesFocus:Qt,shadowRootMode:null,shadowRootSerializable:Qt,shape:null,size:Je,sizes:null,slot:null,span:Je,spellCheck:Nr,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Je,step:null,style:null,tabIndex:Je,target:null,title:null,translate:null,type:null,typeMustMatch:Qt,useMap:null,value:Nr,width:Je,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Jn,axis:null,background:null,bgColor:null,border:Je,borderColor:null,bottomMargin:Je,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Qt,declare:Qt,event:null,face:null,frame:null,frameBorder:null,hSpace:Je,leftMargin:Je,link:null,longDesc:null,lowSrc:null,marginHeight:Je,marginWidth:Je,noResize:Qt,noHref:Qt,noShade:Qt,noWrap:Qt,object:null,profile:null,prompt:null,rev:null,rightMargin:Je,rules:null,scheme:null,scrolling:Nr,standby:null,summary:null,text:null,topMargin:Je,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Je,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:Qt,disablePictureInPicture:Qt,disableRemotePlayback:Qt,exportParts:js,part:Jn,prefix:null,property:null,results:Je,security:null,unselectable:null},space:"html",transform:r4}),ire=rd({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",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",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",maskType:"mask-type",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",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",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",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",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:qi,accentHeight:Je,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Je,amplitude:Je,arabicForm:null,ascent:Je,attributeName:null,attributeType:null,azimuth:Je,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Je,by:null,calcMode:null,capHeight:Je,className:Jn,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:Je,diffuseConstant:Je,direction:null,display:null,dur:null,divisor:Je,dominantBaseline:null,download:Qt,dx:null,dy:null,edgeMode:null,editable:null,elevation:Je,enableBackground:null,end:null,event:null,exponent:Je,externalResourcesRequired:null,fill:null,fillOpacity:Je,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:js,g2:js,glyphName:js,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Je,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Je,horizOriginX:Je,horizOriginY:Je,id:null,ideographic:Je,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Je,k:Je,k1:Je,k2:Je,k3:Je,k4:Je,kernelMatrix:qi,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Je,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskType:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:Je,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:Je,overlineThickness:Je,paintOrder:null,panose1:null,path:null,pathLength:Je,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Jn,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Je,pointsAtY:Je,pointsAtZ:Je,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:qi,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:qi,rev:qi,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:qi,requiredFeatures:qi,requiredFonts:qi,requiredFormats:qi,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:Je,specularExponent:Je,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Je,strikethroughThickness:Je,string:null,stroke:null,strokeDashArray:qi,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Je,strokeOpacity:Je,strokeWidth:null,style:null,surfaceScale:Je,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:qi,tabIndex:Je,tableValues:null,target:null,targetX:Je,targetY:Je,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:qi,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:Je,underlineThickness:Je,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Je,values:null,vAlphabetic:Je,vMathematical:Je,vectorEffect:null,vHanging:Je,vIdeographic:Je,version:null,vertAdvY:Je,vertOriginX:Je,vertOriginY:Je,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Je,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:n4}),i4=rd({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),a4=rd({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:r4}),o4=rd({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),are={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},ore=/[A-Z]/g,mN=/-[a-z]/g,lre=/^data[-\w.:]+$/i;function sre(e,t){const n=oC(t);let r=t,i=Mi;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&lre.test(t)){if(t.charAt(4)==="-"){const a=t.slice(5).replace(mN,ure);r="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!mN.test(a)){let l=a.replace(ore,cre);l.charAt(0)!=="-"&&(l="-"+l),t="data"+l}}i=J1}return new i(r,t)}function cre(e){return"-"+e.toLowerCase()}function ure(e){return e.charAt(1).toUpperCase()}const dre=e4([t4,rre,i4,a4,o4],"html"),ew=e4([t4,ire,i4,a4,o4],"svg");function fre(e){return e.join(" ").trim()}var tu={},qb,gN;function hre(){if(gN)return qb;gN=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,a=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,l=/^[;\s]*/,c=/^\s+|\s+$/g,u=`
|
|
361
|
-
`,d="/",m="*",g="",v="comment",y="declaration";function b(S,w){if(typeof S!="string")throw new TypeError("First argument must be a string");if(!S)return[];w=w||{};var $=1,O=1;function T(j){var V=j.match(t);V&&($+=V.length);var z=j.lastIndexOf(u);O=~z?j.length-z:O+j.length}function _(){var j={line:$,column:O};return function(V){return V.position=new R(j),N(),V}}function R(j){this.start=j,this.end={line:$,column:O},this.source=w.source}R.prototype.content=S;function M(j){var V=new Error(w.source+":"+$+":"+O+": "+j);if(V.reason=j,V.filename=w.source,V.line=$,V.column=O,V.source=S,!w.silent)throw V}function P(j){var V=j.exec(S);if(V){var z=V[0];return T(z),S=S.slice(z.length),V}}function N(){P(n)}function I(j){var V;for(j=j||[];V=B();)V!==!1&&j.push(V);return j}function B(){var j=_();if(!(d!=S.charAt(0)||m!=S.charAt(1))){for(var V=2;g!=S.charAt(V)&&(m!=S.charAt(V)||d!=S.charAt(V+1));)++V;if(V+=2,g===S.charAt(V-1))return M("End of comment missing");var z=S.slice(2,V-2);return O+=2,T(z),S=S.slice(V),O+=2,j({type:v,comment:z})}}function A(){var j=_(),V=P(r);if(V){if(B(),!P(i))return M("property missing ':'");var z=P(a),F=j({type:y,property:x(V[0].replace(e,g)),value:z?x(z[0].replace(e,g)):g});return P(l),F}}function k(){var j=[];I(j);for(var V;V=A();)V!==!1&&(j.push(V),I(j));return j}return N(),k()}function x(S){return S?S.replace(c,g):g}return qb=b,qb}var pN;function mre(){if(pN)return tu;pN=1;var e=tu&&tu.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(tu,"__esModule",{value:!0}),tu.default=n;const t=e(hre());function n(r,i){let a=null;if(!r||typeof r!="string")return a;const l=(0,t.default)(r),c=typeof i=="function";return l.forEach(u=>{if(u.type!=="declaration")return;const{property:d,value:m}=u;c?i(d,m,u):m&&(a=a||{},a[d]=m)}),a}return tu}var nf={},vN;function gre(){if(vN)return nf;vN=1,Object.defineProperty(nf,"__esModule",{value:!0}),nf.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,n=/^[^-]+$/,r=/^-(webkit|moz|ms|o|khtml)-/,i=/^-(ms)-/,a=function(d){return!d||n.test(d)||e.test(d)},l=function(d,m){return m.toUpperCase()},c=function(d,m){return"".concat(m,"-")},u=function(d,m){return m===void 0&&(m={}),a(d)?d:(d=d.toLowerCase(),m.reactCompat?d=d.replace(i,c):d=d.replace(r,c),d.replace(t,l))};return nf.camelCase=u,nf}var rf,yN;function pre(){if(yN)return rf;yN=1;var e=rf&&rf.__importDefault||function(i){return i&&i.__esModule?i:{default:i}},t=e(mre()),n=gre();function r(i,a){var l={};return!i||typeof i!="string"||(0,t.default)(i,function(c,u){c&&u&&(l[(0,n.camelCase)(c,a)]=u)}),l}return r.default=r,rf=r,rf}var vre=pre();const yre=ec(vre),l4=s4("end"),tw=s4("start");function s4(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function bre(e){const t=tw(e),n=l4(e);if(t&&n)return{start:t,end:n}}function $f(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?bN(e.position):"start"in e||"end"in e?bN(e):"line"in e||"column"in e?cC(e):""}function cC(e){return SN(e&&e.line)+":"+SN(e&&e.column)}function bN(e){return cC(e&&e.start)+"-"+cC(e&&e.end)}function SN(e){return e&&typeof e=="number"?e:1}class si extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let i="",a={},l=!1;if(n&&("line"in n&&"column"in n?a={place:n}:"start"in n&&"end"in n?a={place:n}:"type"in n?a={ancestors:[n],place:n.position}:a={...n}),typeof t=="string"?i=t:!a.cause&&t&&(l=!0,i=t.message,a.cause=t),!a.ruleId&&!a.source&&typeof r=="string"){const u=r.indexOf(":");u===-1?a.ruleId=r:(a.source=r.slice(0,u),a.ruleId=r.slice(u+1))}if(!a.place&&a.ancestors&&a.ancestors){const u=a.ancestors[a.ancestors.length-1];u&&(a.place=u.position)}const c=a.place&&"start"in a.place?a.place.start:a.place;this.ancestors=a.ancestors||void 0,this.cause=a.cause||void 0,this.column=c?c.column:void 0,this.fatal=void 0,this.file="",this.message=i,this.line=c?c.line:void 0,this.name=$f(a.place)||"1:1",this.place=a.place||void 0,this.reason=this.message,this.ruleId=a.ruleId||void 0,this.source=a.source||void 0,this.stack=l&&a.cause&&typeof a.cause.stack=="string"?a.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}si.prototype.file="";si.prototype.name="";si.prototype.reason="";si.prototype.message="";si.prototype.stack="";si.prototype.column=void 0;si.prototype.line=void 0;si.prototype.ancestors=void 0;si.prototype.cause=void 0;si.prototype.fatal=void 0;si.prototype.place=void 0;si.prototype.ruleId=void 0;si.prototype.source=void 0;const nw={}.hasOwnProperty,Sre=new Map,xre=/[A-Z]/g,Cre=new Set(["table","tbody","thead","tfoot","tr"]),wre=new Set(["td","th"]),c4="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function Ere(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=Mre(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=Ire(n,t.jsx,t.jsxs)}const i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?ew:dre,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},a=u4(i,e,void 0);return a&&typeof a!="string"?a:i.create(e,i.Fragment,{children:a||void 0},void 0)}function u4(e,t,n){if(t.type==="element")return $re(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return Ore(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return Tre(e,t,n);if(t.type==="mdxjsEsm")return Rre(e,t);if(t.type==="root")return _re(e,t,n);if(t.type==="text")return Nre(e,t)}function $re(e,t,n){const r=e.schema;let i=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=ew,e.schema=i),e.ancestors.push(t);const a=f4(e,t.tagName,!1),l=Pre(e,t);let c=iw(e,t);return Cre.has(t.tagName)&&(c=c.filter(function(u){return typeof u=="string"?!tre(u):!0})),d4(e,l,a,t),rw(l,c),e.ancestors.pop(),e.schema=r,e.create(t,a,l,n)}function Ore(e,t){if(t.data&&t.data.estree&&e.evaluater){const r=t.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}th(e,t.position)}function Rre(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);th(e,t.position)}function Tre(e,t,n){const r=e.schema;let i=r;t.name==="svg"&&r.space==="html"&&(i=ew,e.schema=i),e.ancestors.push(t);const a=t.name===null?e.Fragment:f4(e,t.name,!0),l=Are(e,t),c=iw(e,t);return d4(e,l,a,t),rw(l,c),e.ancestors.pop(),e.schema=r,e.create(t,a,l,n)}function _re(e,t,n){const r={};return rw(r,iw(e,t)),e.create(t,e.Fragment,r,n)}function Nre(e,t){return t.value}function d4(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function rw(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function Ire(e,t,n){return r;function r(i,a,l,c){const d=Array.isArray(l.children)?n:t;return c?d(a,l,c):d(a,l)}}function Mre(e,t){return n;function n(r,i,a,l){const c=Array.isArray(a.children),u=tw(r);return t(i,a,l,c,{columnNumber:u?u.column-1:void 0,fileName:e,lineNumber:u?u.line:void 0},void 0)}}function Pre(e,t){const n={};let r,i;for(i in t.properties)if(i!=="children"&&nw.call(t.properties,i)){const a=zre(e,i,t.properties[i]);if(a){const[l,c]=a;e.tableCellAlignToStyle&&l==="align"&&typeof c=="string"&&wre.has(t.tagName)?r=c:n[l]=c}}if(r){const a=n.style||(n.style={});a[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function Are(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const a=r.data.estree.body[0];a.type;const l=a.expression;l.type;const c=l.properties[0];c.type,Object.assign(n,e.evaluater.evaluateExpression(c.argument))}else th(e,t.position);else{const i=r.name;let a;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const c=r.value.data.estree.body[0];c.type,a=e.evaluater.evaluateExpression(c.expression)}else th(e,t.position);else a=r.value===null?!0:r.value;n[i]=a}return n}function iw(e,t){const n=[];let r=-1;const i=e.passKeys?new Map:Sre;for(;++r<t.children.length;){const a=t.children[r];let l;if(e.passKeys){const u=a.type==="element"?a.tagName:a.type==="mdxJsxFlowElement"||a.type==="mdxJsxTextElement"?a.name:void 0;if(u){const d=i.get(u)||0;l=u+"-"+d,i.set(u,d+1)}}const c=u4(e,a,l);c!==void 0&&n.push(c)}return n}function zre(e,t,n){const r=sre(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?Qne(n):fre(n)),r.property==="style"){let i=typeof n=="object"?n:jre(e,String(n));return e.stylePropertyNameCase==="css"&&(i=Dre(i)),["style",i]}return[e.elementAttributeNameCase==="react"&&r.space?are[r.property]||r.property:r.attribute,n]}}function jre(e,t){try{return yre(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const r=n,i=new si("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:r,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw i.file=e.filePath||void 0,i.url=c4+"#cannot-parse-style-attribute",i}}function f4(e,t,n){let r;if(!n)r={type:"Literal",value:t};else if(t.includes(".")){const i=t.split(".");let a=-1,l;for(;++a<i.length;){const c=dN(i[a])?{type:"Identifier",name:i[a]}:{type:"Literal",value:i[a]};l=l?{type:"MemberExpression",object:l,property:c,computed:!!(a&&c.type==="Literal"),optional:!1}:c}r=l}else r=dN(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){const i=r.value;return nw.call(e.components,i)?e.components[i]:i}if(e.evaluater)return e.evaluater.evaluateExpression(r);th(e)}function th(e,t){const n=new si("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=c4+"#cannot-handle-mdx-estrees-without-createevaluater",n}function Dre(e){const t={};let n;for(n in e)nw.call(e,n)&&(t[Lre(n)]=e[n]);return t}function Lre(e){let t=e.replace(xre,kre);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function kre(e){return"-"+e.toLowerCase()}const Kb={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},Bre={};function aw(e,t){const n=Bre,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,i=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return h4(e,r,i)}function h4(e,t,n){if(Hre(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return xN(e.children,t,n)}return Array.isArray(e)?xN(e,t,n):""}function xN(e,t,n){const r=[];let i=-1;for(;++i<e.length;)r[i]=h4(e[i],t,n);return r.join("")}function Hre(e){return!!(e&&typeof e=="object")}const CN=document.createElement("i");function ow(e){const t="&"+e+";";CN.innerHTML=t;const n=CN.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function Qi(e,t,n,r){const i=e.length;let a=0,l;if(t<0?t=-t>i?0:i+t:t=t>i?i:t,n=n>0?n:0,r.length<1e4)l=Array.from(r),l.unshift(t,n),e.splice(...l);else for(n&&e.splice(t,n);a<r.length;)l=r.slice(a,a+1e4),l.unshift(t,0),e.splice(...l),a+=1e4,t+=1e4}function pa(e,t){return e.length>0?(Qi(e,e.length,0,t),e):t}const wN={}.hasOwnProperty;function m4(e){const t={};let n=-1;for(;++n<e.length;)Fre(t,e[n]);return t}function Fre(e,t){let n;for(n in t){const i=(wN.call(e,n)?e[n]:void 0)||(e[n]={}),a=t[n];let l;if(a)for(l in a){wN.call(i,l)||(i[l]=[]);const c=a[l];Vre(i[l],Array.isArray(c)?c:c?[c]:[])}}}function Vre(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);Qi(e,0,0,r)}function g4(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function ja(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const fi=Xl(/[A-Za-z]/),ii=Xl(/[\dA-Za-z]/),Ure=Xl(/[#-'*+\--9=?A-Z^-~]/);function Ep(e){return e!==null&&(e<32||e===127)}const uC=Xl(/\d/),qre=Xl(/[\dA-Fa-f]/),Kre=Xl(/[!-/:-@[-`{-~]/);function Lt(e){return e!==null&&e<-2}function er(e){return e!==null&&(e<0||e===32)}function hn(e){return e===-2||e===-1||e===32}const bv=Xl(new RegExp("\\p{P}|\\p{S}","u")),Js=Xl(/\s/);function Xl(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function id(e){const t=[];let n=-1,r=0,i=0;for(;++n<e.length;){const a=e.charCodeAt(n);let l="";if(a===37&&ii(e.charCodeAt(n+1))&&ii(e.charCodeAt(n+2)))i=2;else if(a<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(a))||(l=String.fromCharCode(a));else if(a>55295&&a<57344){const c=e.charCodeAt(n+1);a<56320&&c>56319&&c<57344?(l=String.fromCharCode(a,c),i=1):l="�"}else l=String.fromCharCode(a);l&&(t.push(e.slice(r,n),encodeURIComponent(l)),r=n+i+1,l=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function En(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let a=0;return l;function l(u){return hn(u)?(e.enter(n),c(u)):t(u)}function c(u){return hn(u)&&a++<i?(e.consume(u),c):(e.exit(n),t(u))}}const Wre={tokenize:Gre};function Gre(e){const t=e.attempt(this.parser.constructs.contentInitial,r,i);let n;return t;function r(c){if(c===null){e.consume(c);return}return e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),En(e,t,"linePrefix")}function i(c){return e.enter("paragraph"),a(c)}function a(c){const u=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=u),n=u,l(c)}function l(c){if(c===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(c);return}return Lt(c)?(e.consume(c),e.exit("chunkText"),a):(e.consume(c),l)}}const Xre={tokenize:Qre},EN={tokenize:Yre};function Qre(e){const t=this,n=[];let r=0,i,a,l;return c;function c(O){if(r<n.length){const T=n[r];return t.containerState=T[1],e.attempt(T[0].continuation,u,d)(O)}return d(O)}function u(O){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&$();const T=t.events.length;let _=T,R;for(;_--;)if(t.events[_][0]==="exit"&&t.events[_][1].type==="chunkFlow"){R=t.events[_][1].end;break}w(r);let M=T;for(;M<t.events.length;)t.events[M][1].end={...R},M++;return Qi(t.events,_+1,0,t.events.slice(T)),t.events.length=M,d(O)}return c(O)}function d(O){if(r===n.length){if(!i)return v(O);if(i.currentConstruct&&i.currentConstruct.concrete)return b(O);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(EN,m,g)(O)}function m(O){return i&&$(),w(r),v(O)}function g(O){return t.parser.lazy[t.now().line]=r!==n.length,l=t.now().offset,b(O)}function v(O){return t.containerState={},e.attempt(EN,y,b)(O)}function y(O){return r++,n.push([t.currentConstruct,t.containerState]),v(O)}function b(O){if(O===null){i&&$(),w(0),e.consume(O);return}return i=i||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:a}),x(O)}function x(O){if(O===null){S(e.exit("chunkFlow"),!0),w(0),e.consume(O);return}return Lt(O)?(e.consume(O),S(e.exit("chunkFlow")),r=0,t.interrupt=void 0,c):(e.consume(O),x)}function S(O,T){const _=t.sliceStream(O);if(T&&_.push(null),O.previous=a,a&&(a.next=O),a=O,i.defineSkip(O.start),i.write(_),t.parser.lazy[O.start.line]){let R=i.events.length;for(;R--;)if(i.events[R][1].start.offset<l&&(!i.events[R][1].end||i.events[R][1].end.offset>l))return;const M=t.events.length;let P=M,N,I;for(;P--;)if(t.events[P][0]==="exit"&&t.events[P][1].type==="chunkFlow"){if(N){I=t.events[P][1].end;break}N=!0}for(w(r),R=M;R<t.events.length;)t.events[R][1].end={...I},R++;Qi(t.events,P+1,0,t.events.slice(M)),t.events.length=R}}function w(O){let T=n.length;for(;T-- >O;){const _=n[T];t.containerState=_[1],_[0].exit.call(t,e)}n.length=O}function $(){i.write([null]),a=void 0,i=void 0,t.containerState._closeFlow=void 0}}function Yre(e,t,n){return En(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function qu(e){if(e===null||er(e)||Js(e))return 1;if(bv(e))return 2}function Sv(e,t,n){const r=[];let i=-1;for(;++i<e.length;){const a=e[i].resolveAll;a&&!r.includes(a)&&(t=a(t,n),r.push(a))}return t}const dC={name:"attention",resolveAll:Zre,tokenize:Jre};function Zre(e,t){let n=-1,r,i,a,l,c,u,d,m;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(r=n;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;u=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const g={...e[r][1].end},v={...e[n][1].start};$N(g,-u),$N(v,u),l={type:u>1?"strongSequence":"emphasisSequence",start:g,end:{...e[r][1].end}},c={type:u>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:v},a={type:u>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[n][1].start}},i={type:u>1?"strong":"emphasis",start:{...l.start},end:{...c.end}},e[r][1].end={...l.start},e[n][1].start={...c.end},d=[],e[r][1].end.offset-e[r][1].start.offset&&(d=pa(d,[["enter",e[r][1],t],["exit",e[r][1],t]])),d=pa(d,[["enter",i,t],["enter",l,t],["exit",l,t],["enter",a,t]]),d=pa(d,Sv(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),d=pa(d,[["exit",a,t],["enter",c,t],["exit",c,t],["exit",i,t]]),e[n][1].end.offset-e[n][1].start.offset?(m=2,d=pa(d,[["enter",e[n][1],t],["exit",e[n][1],t]])):m=0,Qi(e,r-1,n-r+3,d),n=r+d.length-m-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function Jre(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=qu(r);let a;return l;function l(u){return a=u,e.enter("attentionSequence"),c(u)}function c(u){if(u===a)return e.consume(u),c;const d=e.exit("attentionSequence"),m=qu(u),g=!m||m===2&&i||n.includes(u),v=!i||i===2&&m||n.includes(r);return d._open=!!(a===42?g:g&&(i||!v)),d._close=!!(a===42?v:v&&(m||!g)),t(u)}}function $N(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const eie={name:"autolink",tokenize:tie};function tie(e,t,n){let r=0;return i;function i(y){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(y),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),a}function a(y){return fi(y)?(e.consume(y),l):y===64?n(y):d(y)}function l(y){return y===43||y===45||y===46||ii(y)?(r=1,c(y)):d(y)}function c(y){return y===58?(e.consume(y),r=0,u):(y===43||y===45||y===46||ii(y))&&r++<32?(e.consume(y),c):(r=0,d(y))}function u(y){return y===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(y),e.exit("autolinkMarker"),e.exit("autolink"),t):y===null||y===32||y===60||Ep(y)?n(y):(e.consume(y),u)}function d(y){return y===64?(e.consume(y),m):Ure(y)?(e.consume(y),d):n(y)}function m(y){return ii(y)?g(y):n(y)}function g(y){return y===46?(e.consume(y),r=0,m):y===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(y),e.exit("autolinkMarker"),e.exit("autolink"),t):v(y)}function v(y){if((y===45||ii(y))&&r++<63){const b=y===45?v:g;return e.consume(y),b}return n(y)}}const _h={partial:!0,tokenize:nie};function nie(e,t,n){return r;function r(a){return hn(a)?En(e,i,"linePrefix")(a):i(a)}function i(a){return a===null||Lt(a)?t(a):n(a)}}const p4={continuation:{tokenize:iie},exit:aie,name:"blockQuote",tokenize:rie};function rie(e,t,n){const r=this;return i;function i(l){if(l===62){const c=r.containerState;return c.open||(e.enter("blockQuote",{_container:!0}),c.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(l),e.exit("blockQuoteMarker"),a}return n(l)}function a(l){return hn(l)?(e.enter("blockQuotePrefixWhitespace"),e.consume(l),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(l))}}function iie(e,t,n){const r=this;return i;function i(l){return hn(l)?En(e,a,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(l):a(l)}function a(l){return e.attempt(p4,t,n)(l)}}function aie(e){e.exit("blockQuote")}const v4={name:"characterEscape",tokenize:oie};function oie(e,t,n){return r;function r(a){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(a),e.exit("escapeMarker"),i}function i(a){return Kre(a)?(e.enter("characterEscapeValue"),e.consume(a),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(a)}}const y4={name:"characterReference",tokenize:lie};function lie(e,t,n){const r=this;let i=0,a,l;return c;function c(g){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(g),e.exit("characterReferenceMarker"),u}function u(g){return g===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(g),e.exit("characterReferenceMarkerNumeric"),d):(e.enter("characterReferenceValue"),a=31,l=ii,m(g))}function d(g){return g===88||g===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(g),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),a=6,l=qre,m):(e.enter("characterReferenceValue"),a=7,l=uC,m(g))}function m(g){if(g===59&&i){const v=e.exit("characterReferenceValue");return l===ii&&!ow(r.sliceSerialize(v))?n(g):(e.enter("characterReferenceMarker"),e.consume(g),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return l(g)&&i++<a?(e.consume(g),m):n(g)}}const ON={partial:!0,tokenize:cie},RN={concrete:!0,name:"codeFenced",tokenize:sie};function sie(e,t,n){const r=this,i={partial:!0,tokenize:_};let a=0,l=0,c;return u;function u(R){return d(R)}function d(R){const M=r.events[r.events.length-1];return a=M&&M[1].type==="linePrefix"?M[2].sliceSerialize(M[1],!0).length:0,c=R,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),m(R)}function m(R){return R===c?(l++,e.consume(R),m):l<3?n(R):(e.exit("codeFencedFenceSequence"),hn(R)?En(e,g,"whitespace")(R):g(R))}function g(R){return R===null||Lt(R)?(e.exit("codeFencedFence"),r.interrupt?t(R):e.check(ON,x,T)(R)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),v(R))}function v(R){return R===null||Lt(R)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),g(R)):hn(R)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),En(e,y,"whitespace")(R)):R===96&&R===c?n(R):(e.consume(R),v)}function y(R){return R===null||Lt(R)?g(R):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),b(R))}function b(R){return R===null||Lt(R)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),g(R)):R===96&&R===c?n(R):(e.consume(R),b)}function x(R){return e.attempt(i,T,S)(R)}function S(R){return e.enter("lineEnding"),e.consume(R),e.exit("lineEnding"),w}function w(R){return a>0&&hn(R)?En(e,$,"linePrefix",a+1)(R):$(R)}function $(R){return R===null||Lt(R)?e.check(ON,x,T)(R):(e.enter("codeFlowValue"),O(R))}function O(R){return R===null||Lt(R)?(e.exit("codeFlowValue"),$(R)):(e.consume(R),O)}function T(R){return e.exit("codeFenced"),t(R)}function _(R,M,P){let N=0;return I;function I(V){return R.enter("lineEnding"),R.consume(V),R.exit("lineEnding"),B}function B(V){return R.enter("codeFencedFence"),hn(V)?En(R,A,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(V):A(V)}function A(V){return V===c?(R.enter("codeFencedFenceSequence"),k(V)):P(V)}function k(V){return V===c?(N++,R.consume(V),k):N>=l?(R.exit("codeFencedFenceSequence"),hn(V)?En(R,j,"whitespace")(V):j(V)):P(V)}function j(V){return V===null||Lt(V)?(R.exit("codeFencedFence"),M(V)):P(V)}}}function cie(e,t,n){const r=this;return i;function i(l){return l===null?n(l):(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),a)}function a(l){return r.parser.lazy[r.now().line]?n(l):t(l)}}const Wb={name:"codeIndented",tokenize:die},uie={partial:!0,tokenize:fie};function die(e,t,n){const r=this;return i;function i(d){return e.enter("codeIndented"),En(e,a,"linePrefix",5)(d)}function a(d){const m=r.events[r.events.length-1];return m&&m[1].type==="linePrefix"&&m[2].sliceSerialize(m[1],!0).length>=4?l(d):n(d)}function l(d){return d===null?u(d):Lt(d)?e.attempt(uie,l,u)(d):(e.enter("codeFlowValue"),c(d))}function c(d){return d===null||Lt(d)?(e.exit("codeFlowValue"),l(d)):(e.consume(d),c)}function u(d){return e.exit("codeIndented"),t(d)}}function fie(e,t,n){const r=this;return i;function i(l){return r.parser.lazy[r.now().line]?n(l):Lt(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),i):En(e,a,"linePrefix",5)(l)}function a(l){const c=r.events[r.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?t(l):Lt(l)?i(l):n(l)}}const hie={name:"codeText",previous:gie,resolve:mie,tokenize:pie};function mie(e){let t=e.length-4,n=3,r,i;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r<t;)if(e[r][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)i===void 0?r!==t&&e[r][1].type!=="lineEnding"&&(i=r):(r===t||e[r][1].type==="lineEnding")&&(e[i][1].type="codeTextData",r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),t-=r-i-2,r=i+2),i=void 0);return e}function gie(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function pie(e,t,n){let r=0,i,a;return l;function l(g){return e.enter("codeText"),e.enter("codeTextSequence"),c(g)}function c(g){return g===96?(e.consume(g),r++,c):(e.exit("codeTextSequence"),u(g))}function u(g){return g===null?n(g):g===32?(e.enter("space"),e.consume(g),e.exit("space"),u):g===96?(a=e.enter("codeTextSequence"),i=0,m(g)):Lt(g)?(e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),u):(e.enter("codeTextData"),d(g))}function d(g){return g===null||g===32||g===96||Lt(g)?(e.exit("codeTextData"),u(g)):(e.consume(g),d)}function m(g){return g===96?(e.consume(g),i++,m):i===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(g)):(a.type="codeTextData",d(g))}}class vie{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,n){const r=n??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(t,r):t>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(t,n,r){const i=n||0;this.setCursor(Math.trunc(t));const a=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&af(this.left,r),a.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),af(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),af(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const n=this.left.splice(t,Number.POSITIVE_INFINITY);af(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);af(this.left,n.reverse())}}}function af(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function b4(e){const t={};let n=-1,r,i,a,l,c,u,d;const m=new vie(e);for(;++n<m.length;){for(;n in t;)n=t[n];if(r=m.get(n),n&&r[1].type==="chunkFlow"&&m.get(n-1)[1].type==="listItemPrefix"&&(u=r[1]._tokenizer.events,a=0,a<u.length&&u[a][1].type==="lineEndingBlank"&&(a+=2),a<u.length&&u[a][1].type==="content"))for(;++a<u.length&&u[a][1].type!=="content";)u[a][1].type==="chunkText"&&(u[a][1]._isInFirstContentOfListItem=!0,a++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,yie(m,n)),n=t[n],d=!0);else if(r[1]._container){for(a=n,i=void 0;a--;)if(l=m.get(a),l[1].type==="lineEnding"||l[1].type==="lineEndingBlank")l[0]==="enter"&&(i&&(m.get(i)[1].type="lineEndingBlank"),l[1].type="lineEnding",i=a);else if(!(l[1].type==="linePrefix"||l[1].type==="listItemIndent"))break;i&&(r[1].end={...m.get(i)[1].start},c=m.slice(i,n),c.unshift(r),m.splice(i,n-i+1,c))}}return Qi(e,0,Number.POSITIVE_INFINITY,m.slice(0)),!d}function yie(e,t){const n=e.get(t)[1],r=e.get(t)[2];let i=t-1;const a=[];let l=n._tokenizer;l||(l=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(l._contentTypeTextTrailing=!0));const c=l.events,u=[],d={};let m,g,v=-1,y=n,b=0,x=0;const S=[x];for(;y;){for(;e.get(++i)[1]!==y;);a.push(i),y._tokenizer||(m=r.sliceStream(y),y.next||m.push(null),g&&l.defineSkip(y.start),y._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=!0),l.write(m),y._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=void 0)),g=y,y=y.next}for(y=n;++v<c.length;)c[v][0]==="exit"&&c[v-1][0]==="enter"&&c[v][1].type===c[v-1][1].type&&c[v][1].start.line!==c[v][1].end.line&&(x=v+1,S.push(x),y._tokenizer=void 0,y.previous=void 0,y=y.next);for(l.events=[],y?(y._tokenizer=void 0,y.previous=void 0):S.pop(),v=S.length;v--;){const w=c.slice(S[v],S[v+1]),$=a.pop();u.push([$,$+w.length-1]),e.splice($,2,w)}for(u.reverse(),v=-1;++v<u.length;)d[b+u[v][0]]=b+u[v][1],b+=u[v][1]-u[v][0]-1;return d}const bie={resolve:xie,tokenize:Cie},Sie={partial:!0,tokenize:wie};function xie(e){return b4(e),e}function Cie(e,t){let n;return r;function r(c){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),i(c)}function i(c){return c===null?a(c):Lt(c)?e.check(Sie,l,a)(c):(e.consume(c),i)}function a(c){return e.exit("chunkContent"),e.exit("content"),t(c)}function l(c){return e.consume(c),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,i}}function wie(e,t,n){const r=this;return i;function i(l){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),En(e,a,"linePrefix")}function a(l){if(l===null||Lt(l))return n(l);const c=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?t(l):e.interrupt(r.parser.constructs.flow,n,t)(l)}}function S4(e,t,n,r,i,a,l,c,u){const d=u||Number.POSITIVE_INFINITY;let m=0;return g;function g(w){return w===60?(e.enter(r),e.enter(i),e.enter(a),e.consume(w),e.exit(a),v):w===null||w===32||w===41||Ep(w)?n(w):(e.enter(r),e.enter(l),e.enter(c),e.enter("chunkString",{contentType:"string"}),x(w))}function v(w){return w===62?(e.enter(a),e.consume(w),e.exit(a),e.exit(i),e.exit(r),t):(e.enter(c),e.enter("chunkString",{contentType:"string"}),y(w))}function y(w){return w===62?(e.exit("chunkString"),e.exit(c),v(w)):w===null||w===60||Lt(w)?n(w):(e.consume(w),w===92?b:y)}function b(w){return w===60||w===62||w===92?(e.consume(w),y):y(w)}function x(w){return!m&&(w===null||w===41||er(w))?(e.exit("chunkString"),e.exit(c),e.exit(l),e.exit(r),t(w)):m<d&&w===40?(e.consume(w),m++,x):w===41?(e.consume(w),m--,x):w===null||w===32||w===40||Ep(w)?n(w):(e.consume(w),w===92?S:x)}function S(w){return w===40||w===41||w===92?(e.consume(w),x):x(w)}}function x4(e,t,n,r,i,a){const l=this;let c=0,u;return d;function d(y){return e.enter(r),e.enter(i),e.consume(y),e.exit(i),e.enter(a),m}function m(y){return c>999||y===null||y===91||y===93&&!u||y===94&&!c&&"_hiddenFootnoteSupport"in l.parser.constructs?n(y):y===93?(e.exit(a),e.enter(i),e.consume(y),e.exit(i),e.exit(r),t):Lt(y)?(e.enter("lineEnding"),e.consume(y),e.exit("lineEnding"),m):(e.enter("chunkString",{contentType:"string"}),g(y))}function g(y){return y===null||y===91||y===93||Lt(y)||c++>999?(e.exit("chunkString"),m(y)):(e.consume(y),u||(u=!hn(y)),y===92?v:g)}function v(y){return y===91||y===92||y===93?(e.consume(y),c++,g):g(y)}}function C4(e,t,n,r,i,a){let l;return c;function c(v){return v===34||v===39||v===40?(e.enter(r),e.enter(i),e.consume(v),e.exit(i),l=v===40?41:v,u):n(v)}function u(v){return v===l?(e.enter(i),e.consume(v),e.exit(i),e.exit(r),t):(e.enter(a),d(v))}function d(v){return v===l?(e.exit(a),u(l)):v===null?n(v):Lt(v)?(e.enter("lineEnding"),e.consume(v),e.exit("lineEnding"),En(e,d,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),m(v))}function m(v){return v===l||v===null||Lt(v)?(e.exit("chunkString"),d(v)):(e.consume(v),v===92?g:m)}function g(v){return v===l||v===92?(e.consume(v),m):m(v)}}function Of(e,t){let n;return r;function r(i){return Lt(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):hn(i)?En(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}const Eie={name:"definition",tokenize:Oie},$ie={partial:!0,tokenize:Rie};function Oie(e,t,n){const r=this;let i;return a;function a(y){return e.enter("definition"),l(y)}function l(y){return x4.call(r,e,c,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(y)}function c(y){return i=ja(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),y===58?(e.enter("definitionMarker"),e.consume(y),e.exit("definitionMarker"),u):n(y)}function u(y){return er(y)?Of(e,d)(y):d(y)}function d(y){return S4(e,m,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(y)}function m(y){return e.attempt($ie,g,g)(y)}function g(y){return hn(y)?En(e,v,"whitespace")(y):v(y)}function v(y){return y===null||Lt(y)?(e.exit("definition"),r.parser.defined.push(i),t(y)):n(y)}}function Rie(e,t,n){return r;function r(c){return er(c)?Of(e,i)(c):n(c)}function i(c){return C4(e,a,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(c)}function a(c){return hn(c)?En(e,l,"whitespace")(c):l(c)}function l(c){return c===null||Lt(c)?t(c):n(c)}}const Tie={name:"hardBreakEscape",tokenize:_ie};function _ie(e,t,n){return r;function r(a){return e.enter("hardBreakEscape"),e.consume(a),i}function i(a){return Lt(a)?(e.exit("hardBreakEscape"),t(a)):n(a)}}const Nie={name:"headingAtx",resolve:Iie,tokenize:Mie};function Iie(e,t){let n=e.length-2,r=3,i,a;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},a={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},Qi(e,r,n-r+1,[["enter",i,t],["enter",a,t],["exit",a,t],["exit",i,t]])),e}function Mie(e,t,n){let r=0;return i;function i(m){return e.enter("atxHeading"),a(m)}function a(m){return e.enter("atxHeadingSequence"),l(m)}function l(m){return m===35&&r++<6?(e.consume(m),l):m===null||er(m)?(e.exit("atxHeadingSequence"),c(m)):n(m)}function c(m){return m===35?(e.enter("atxHeadingSequence"),u(m)):m===null||Lt(m)?(e.exit("atxHeading"),t(m)):hn(m)?En(e,c,"whitespace")(m):(e.enter("atxHeadingText"),d(m))}function u(m){return m===35?(e.consume(m),u):(e.exit("atxHeadingSequence"),c(m))}function d(m){return m===null||m===35||er(m)?(e.exit("atxHeadingText"),c(m)):(e.consume(m),d)}}const Pie=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],TN=["pre","script","style","textarea"],Aie={concrete:!0,name:"htmlFlow",resolveTo:Die,tokenize:Lie},zie={partial:!0,tokenize:Bie},jie={partial:!0,tokenize:kie};function Die(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function Lie(e,t,n){const r=this;let i,a,l,c,u;return d;function d(D){return m(D)}function m(D){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(D),g}function g(D){return D===33?(e.consume(D),v):D===47?(e.consume(D),a=!0,x):D===63?(e.consume(D),i=3,r.interrupt?t:H):fi(D)?(e.consume(D),l=String.fromCharCode(D),S):n(D)}function v(D){return D===45?(e.consume(D),i=2,y):D===91?(e.consume(D),i=5,c=0,b):fi(D)?(e.consume(D),i=4,r.interrupt?t:H):n(D)}function y(D){return D===45?(e.consume(D),r.interrupt?t:H):n(D)}function b(D){const X="CDATA[";return D===X.charCodeAt(c++)?(e.consume(D),c===X.length?r.interrupt?t:A:b):n(D)}function x(D){return fi(D)?(e.consume(D),l=String.fromCharCode(D),S):n(D)}function S(D){if(D===null||D===47||D===62||er(D)){const X=D===47,Q=l.toLowerCase();return!X&&!a&&TN.includes(Q)?(i=1,r.interrupt?t(D):A(D)):Pie.includes(l.toLowerCase())?(i=6,X?(e.consume(D),w):r.interrupt?t(D):A(D)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(D):a?$(D):O(D))}return D===45||ii(D)?(e.consume(D),l+=String.fromCharCode(D),S):n(D)}function w(D){return D===62?(e.consume(D),r.interrupt?t:A):n(D)}function $(D){return hn(D)?(e.consume(D),$):I(D)}function O(D){return D===47?(e.consume(D),I):D===58||D===95||fi(D)?(e.consume(D),T):hn(D)?(e.consume(D),O):I(D)}function T(D){return D===45||D===46||D===58||D===95||ii(D)?(e.consume(D),T):_(D)}function _(D){return D===61?(e.consume(D),R):hn(D)?(e.consume(D),_):O(D)}function R(D){return D===null||D===60||D===61||D===62||D===96?n(D):D===34||D===39?(e.consume(D),u=D,M):hn(D)?(e.consume(D),R):P(D)}function M(D){return D===u?(e.consume(D),u=null,N):D===null||Lt(D)?n(D):(e.consume(D),M)}function P(D){return D===null||D===34||D===39||D===47||D===60||D===61||D===62||D===96||er(D)?_(D):(e.consume(D),P)}function N(D){return D===47||D===62||hn(D)?O(D):n(D)}function I(D){return D===62?(e.consume(D),B):n(D)}function B(D){return D===null||Lt(D)?A(D):hn(D)?(e.consume(D),B):n(D)}function A(D){return D===45&&i===2?(e.consume(D),z):D===60&&i===1?(e.consume(D),F):D===62&&i===4?(e.consume(D),U):D===63&&i===3?(e.consume(D),H):D===93&&i===5?(e.consume(D),Z):Lt(D)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(zie,K,k)(D)):D===null||Lt(D)?(e.exit("htmlFlowData"),k(D)):(e.consume(D),A)}function k(D){return e.check(jie,j,K)(D)}function j(D){return e.enter("lineEnding"),e.consume(D),e.exit("lineEnding"),V}function V(D){return D===null||Lt(D)?k(D):(e.enter("htmlFlowData"),A(D))}function z(D){return D===45?(e.consume(D),H):A(D)}function F(D){return D===47?(e.consume(D),l="",q):A(D)}function q(D){if(D===62){const X=l.toLowerCase();return TN.includes(X)?(e.consume(D),U):A(D)}return fi(D)&&l.length<8?(e.consume(D),l+=String.fromCharCode(D),q):A(D)}function Z(D){return D===93?(e.consume(D),H):A(D)}function H(D){return D===62?(e.consume(D),U):D===45&&i===2?(e.consume(D),H):A(D)}function U(D){return D===null||Lt(D)?(e.exit("htmlFlowData"),K(D)):(e.consume(D),U)}function K(D){return e.exit("htmlFlow"),t(D)}}function kie(e,t,n){const r=this;return i;function i(l){return Lt(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),a):n(l)}function a(l){return r.parser.lazy[r.now().line]?n(l):t(l)}}function Bie(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(_h,t,n)}}const Hie={name:"htmlText",tokenize:Fie};function Fie(e,t,n){const r=this;let i,a,l;return c;function c(H){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(H),u}function u(H){return H===33?(e.consume(H),d):H===47?(e.consume(H),_):H===63?(e.consume(H),O):fi(H)?(e.consume(H),P):n(H)}function d(H){return H===45?(e.consume(H),m):H===91?(e.consume(H),a=0,b):fi(H)?(e.consume(H),$):n(H)}function m(H){return H===45?(e.consume(H),y):n(H)}function g(H){return H===null?n(H):H===45?(e.consume(H),v):Lt(H)?(l=g,F(H)):(e.consume(H),g)}function v(H){return H===45?(e.consume(H),y):g(H)}function y(H){return H===62?z(H):H===45?v(H):g(H)}function b(H){const U="CDATA[";return H===U.charCodeAt(a++)?(e.consume(H),a===U.length?x:b):n(H)}function x(H){return H===null?n(H):H===93?(e.consume(H),S):Lt(H)?(l=x,F(H)):(e.consume(H),x)}function S(H){return H===93?(e.consume(H),w):x(H)}function w(H){return H===62?z(H):H===93?(e.consume(H),w):x(H)}function $(H){return H===null||H===62?z(H):Lt(H)?(l=$,F(H)):(e.consume(H),$)}function O(H){return H===null?n(H):H===63?(e.consume(H),T):Lt(H)?(l=O,F(H)):(e.consume(H),O)}function T(H){return H===62?z(H):O(H)}function _(H){return fi(H)?(e.consume(H),R):n(H)}function R(H){return H===45||ii(H)?(e.consume(H),R):M(H)}function M(H){return Lt(H)?(l=M,F(H)):hn(H)?(e.consume(H),M):z(H)}function P(H){return H===45||ii(H)?(e.consume(H),P):H===47||H===62||er(H)?N(H):n(H)}function N(H){return H===47?(e.consume(H),z):H===58||H===95||fi(H)?(e.consume(H),I):Lt(H)?(l=N,F(H)):hn(H)?(e.consume(H),N):z(H)}function I(H){return H===45||H===46||H===58||H===95||ii(H)?(e.consume(H),I):B(H)}function B(H){return H===61?(e.consume(H),A):Lt(H)?(l=B,F(H)):hn(H)?(e.consume(H),B):N(H)}function A(H){return H===null||H===60||H===61||H===62||H===96?n(H):H===34||H===39?(e.consume(H),i=H,k):Lt(H)?(l=A,F(H)):hn(H)?(e.consume(H),A):(e.consume(H),j)}function k(H){return H===i?(e.consume(H),i=void 0,V):H===null?n(H):Lt(H)?(l=k,F(H)):(e.consume(H),k)}function j(H){return H===null||H===34||H===39||H===60||H===61||H===96?n(H):H===47||H===62||er(H)?N(H):(e.consume(H),j)}function V(H){return H===47||H===62||er(H)?N(H):n(H)}function z(H){return H===62?(e.consume(H),e.exit("htmlTextData"),e.exit("htmlText"),t):n(H)}function F(H){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(H),e.exit("lineEnding"),q}function q(H){return hn(H)?En(e,Z,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(H):Z(H)}function Z(H){return e.enter("htmlTextData"),l(H)}}const lw={name:"labelEnd",resolveAll:Kie,resolveTo:Wie,tokenize:Gie},Vie={tokenize:Xie},Uie={tokenize:Qie},qie={tokenize:Yie};function Kie(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const i=r.type==="labelImage"?4:2;r.type="data",t+=i}}return e.length!==n.length&&Qi(e,0,e.length,n),e}function Wie(e,t){let n=e.length,r=0,i,a,l,c;for(;n--;)if(i=e[n][1],a){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[n][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(l){if(e[n][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(a=n,i.type!=="labelLink")){r=2;break}}else i.type==="labelEnd"&&(l=n);const u={type:e[a][1].type==="labelLink"?"link":"image",start:{...e[a][1].start},end:{...e[e.length-1][1].end}},d={type:"label",start:{...e[a][1].start},end:{...e[l][1].end}},m={type:"labelText",start:{...e[a+r+2][1].end},end:{...e[l-2][1].start}};return c=[["enter",u,t],["enter",d,t]],c=pa(c,e.slice(a+1,a+r+3)),c=pa(c,[["enter",m,t]]),c=pa(c,Sv(t.parser.constructs.insideSpan.null,e.slice(a+r+4,l-3),t)),c=pa(c,[["exit",m,t],e[l-2],e[l-1],["exit",d,t]]),c=pa(c,e.slice(l+1)),c=pa(c,[["exit",u,t]]),Qi(e,a,e.length,c),e}function Gie(e,t,n){const r=this;let i=r.events.length,a,l;for(;i--;)if((r.events[i][1].type==="labelImage"||r.events[i][1].type==="labelLink")&&!r.events[i][1]._balanced){a=r.events[i][1];break}return c;function c(v){return a?a._inactive?g(v):(l=r.parser.defined.includes(ja(r.sliceSerialize({start:a.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(v),e.exit("labelMarker"),e.exit("labelEnd"),u):n(v)}function u(v){return v===40?e.attempt(Vie,m,l?m:g)(v):v===91?e.attempt(Uie,m,l?d:g)(v):l?m(v):g(v)}function d(v){return e.attempt(qie,m,g)(v)}function m(v){return t(v)}function g(v){return a._balanced=!0,n(v)}}function Xie(e,t,n){return r;function r(g){return e.enter("resource"),e.enter("resourceMarker"),e.consume(g),e.exit("resourceMarker"),i}function i(g){return er(g)?Of(e,a)(g):a(g)}function a(g){return g===41?m(g):S4(e,l,c,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(g)}function l(g){return er(g)?Of(e,u)(g):m(g)}function c(g){return n(g)}function u(g){return g===34||g===39||g===40?C4(e,d,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(g):m(g)}function d(g){return er(g)?Of(e,m)(g):m(g)}function m(g){return g===41?(e.enter("resourceMarker"),e.consume(g),e.exit("resourceMarker"),e.exit("resource"),t):n(g)}}function Qie(e,t,n){const r=this;return i;function i(c){return x4.call(r,e,a,l,"reference","referenceMarker","referenceString")(c)}function a(c){return r.parser.defined.includes(ja(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(c):n(c)}function l(c){return n(c)}}function Yie(e,t,n){return r;function r(a){return e.enter("reference"),e.enter("referenceMarker"),e.consume(a),e.exit("referenceMarker"),i}function i(a){return a===93?(e.enter("referenceMarker"),e.consume(a),e.exit("referenceMarker"),e.exit("reference"),t):n(a)}}const Zie={name:"labelStartImage",resolveAll:lw.resolveAll,tokenize:Jie};function Jie(e,t,n){const r=this;return i;function i(c){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(c),e.exit("labelImageMarker"),a}function a(c){return c===91?(e.enter("labelMarker"),e.consume(c),e.exit("labelMarker"),e.exit("labelImage"),l):n(c)}function l(c){return c===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(c):t(c)}}const eae={name:"labelStartLink",resolveAll:lw.resolveAll,tokenize:tae};function tae(e,t,n){const r=this;return i;function i(l){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(l),e.exit("labelMarker"),e.exit("labelLink"),a}function a(l){return l===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(l):t(l)}}const Gb={name:"lineEnding",tokenize:nae};function nae(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),En(e,t,"linePrefix")}}const Rg={name:"thematicBreak",tokenize:rae};function rae(e,t,n){let r=0,i;return a;function a(d){return e.enter("thematicBreak"),l(d)}function l(d){return i=d,c(d)}function c(d){return d===i?(e.enter("thematicBreakSequence"),u(d)):r>=3&&(d===null||Lt(d))?(e.exit("thematicBreak"),t(d)):n(d)}function u(d){return d===i?(e.consume(d),r++,u):(e.exit("thematicBreakSequence"),hn(d)?En(e,c,"whitespace")(d):c(d))}}const Oi={continuation:{tokenize:lae},exit:cae,name:"list",tokenize:oae},iae={partial:!0,tokenize:uae},aae={partial:!0,tokenize:sae};function oae(e,t,n){const r=this,i=r.events[r.events.length-1];let a=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,l=0;return c;function c(y){const b=r.containerState.type||(y===42||y===43||y===45?"listUnordered":"listOrdered");if(b==="listUnordered"?!r.containerState.marker||y===r.containerState.marker:uC(y)){if(r.containerState.type||(r.containerState.type=b,e.enter(b,{_container:!0})),b==="listUnordered")return e.enter("listItemPrefix"),y===42||y===45?e.check(Rg,n,d)(y):d(y);if(!r.interrupt||y===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),u(y)}return n(y)}function u(y){return uC(y)&&++l<10?(e.consume(y),u):(!r.interrupt||l<2)&&(r.containerState.marker?y===r.containerState.marker:y===41||y===46)?(e.exit("listItemValue"),d(y)):n(y)}function d(y){return e.enter("listItemMarker"),e.consume(y),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||y,e.check(_h,r.interrupt?n:m,e.attempt(iae,v,g))}function m(y){return r.containerState.initialBlankLine=!0,a++,v(y)}function g(y){return hn(y)?(e.enter("listItemPrefixWhitespace"),e.consume(y),e.exit("listItemPrefixWhitespace"),v):n(y)}function v(y){return r.containerState.size=a+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(y)}}function lae(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(_h,i,a);function i(c){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,En(e,t,"listItemIndent",r.containerState.size+1)(c)}function a(c){return r.containerState.furtherBlankLines||!hn(c)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,l(c)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(aae,t,l)(c))}function l(c){return r.containerState._closeFlow=!0,r.interrupt=void 0,En(e,e.attempt(Oi,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(c)}}function sae(e,t,n){const r=this;return En(e,i,"listItemIndent",r.containerState.size+1);function i(a){const l=r.events[r.events.length-1];return l&&l[1].type==="listItemIndent"&&l[2].sliceSerialize(l[1],!0).length===r.containerState.size?t(a):n(a)}}function cae(e){e.exit(this.containerState.type)}function uae(e,t,n){const r=this;return En(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(a){const l=r.events[r.events.length-1];return!hn(a)&&l&&l[1].type==="listItemPrefixWhitespace"?t(a):n(a)}}const _N={name:"setextUnderline",resolveTo:dae,tokenize:fae};function dae(e,t){let n=e.length,r,i,a;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(i=n)}else e[n][1].type==="content"&&e.splice(n,1),!a&&e[n][1].type==="definition"&&(a=n);const l={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type="setextHeadingText",a?(e.splice(i,0,["enter",l,t]),e.splice(a+1,0,["exit",e[r][1],t]),e[r][1].end={...e[a][1].end}):e[r][1]=l,e.push(["exit",l,t]),e}function fae(e,t,n){const r=this;let i;return a;function a(d){let m=r.events.length,g;for(;m--;)if(r.events[m][1].type!=="lineEnding"&&r.events[m][1].type!=="linePrefix"&&r.events[m][1].type!=="content"){g=r.events[m][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||g)?(e.enter("setextHeadingLine"),i=d,l(d)):n(d)}function l(d){return e.enter("setextHeadingLineSequence"),c(d)}function c(d){return d===i?(e.consume(d),c):(e.exit("setextHeadingLineSequence"),hn(d)?En(e,u,"lineSuffix")(d):u(d))}function u(d){return d===null||Lt(d)?(e.exit("setextHeadingLine"),t(d)):n(d)}}const hae={tokenize:mae};function mae(e){const t=this,n=e.attempt(_h,r,e.attempt(this.parser.constructs.flowInitial,i,En(e,e.attempt(this.parser.constructs.flow,i,e.attempt(bie,i)),"linePrefix")));return n;function r(a){if(a===null){e.consume(a);return}return e.enter("lineEndingBlank"),e.consume(a),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function i(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const gae={resolveAll:E4()},pae=w4("string"),vae=w4("text");function w4(e){return{resolveAll:E4(e==="text"?yae:void 0),tokenize:t};function t(n){const r=this,i=this.parser.constructs[e],a=n.attempt(i,l,c);return l;function l(m){return d(m)?a(m):c(m)}function c(m){if(m===null){n.consume(m);return}return n.enter("data"),n.consume(m),u}function u(m){return d(m)?(n.exit("data"),a(m)):(n.consume(m),u)}function d(m){if(m===null)return!0;const g=i[m];let v=-1;if(g)for(;++v<g.length;){const y=g[v];if(!y.previous||y.previous.call(r,r.previous))return!0}return!1}}}function E4(e){return t;function t(n,r){let i=-1,a;for(;++i<=n.length;)a===void 0?n[i]&&n[i][1].type==="data"&&(a=i,i++):(!n[i]||n[i][1].type!=="data")&&(i!==a+2&&(n[a][1].end=n[i-1][1].end,n.splice(a+2,i-a-2),i=a+2),a=void 0);return e?e(n,r):n}}function yae(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const r=e[n-1][1],i=t.sliceStream(r);let a=i.length,l=-1,c=0,u;for(;a--;){const d=i[a];if(typeof d=="string"){for(l=d.length;d.charCodeAt(l-1)===32;)c++,l--;if(l)break;l=-1}else if(d===-2)u=!0,c++;else if(d!==-1){a++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(c=0),c){const d={type:n===e.length||u||c<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:a?l:r.start._bufferIndex+l,_index:r.start._index+a,line:r.end.line,column:r.end.column-c,offset:r.end.offset-c},end:{...r.end}};r.end={...d.start},r.start.offset===r.end.offset?Object.assign(r,d):(e.splice(n,0,["enter",d,t],["exit",d,t]),n+=2)}n++}return e}const bae={42:Oi,43:Oi,45:Oi,48:Oi,49:Oi,50:Oi,51:Oi,52:Oi,53:Oi,54:Oi,55:Oi,56:Oi,57:Oi,62:p4},Sae={91:Eie},xae={[-2]:Wb,[-1]:Wb,32:Wb},Cae={35:Nie,42:Rg,45:[_N,Rg],60:Aie,61:_N,95:Rg,96:RN,126:RN},wae={38:y4,92:v4},Eae={[-5]:Gb,[-4]:Gb,[-3]:Gb,33:Zie,38:y4,42:dC,60:[eie,Hie],91:eae,92:[Tie,v4],93:lw,95:dC,96:hie},$ae={null:[dC,gae]},Oae={null:[42,95]},Rae={null:[]},Tae=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:Oae,contentInitial:Sae,disable:Rae,document:bae,flow:Cae,flowInitial:xae,insideSpan:$ae,string:wae,text:Eae},Symbol.toStringTag,{value:"Module"}));function _ae(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const i={},a=[];let l=[],c=[];const u={attempt:M(_),check:M(R),consume:$,enter:O,exit:T,interrupt:M(R,{interrupt:!0})},d={code:null,containerState:{},defineSkip:x,events:[],now:b,parser:e,previous:null,sliceSerialize:v,sliceStream:y,write:g};let m=t.tokenize.call(d,u);return t.resolveAll&&a.push(t),d;function g(B){return l=pa(l,B),S(),l[l.length-1]!==null?[]:(P(t,0),d.events=Sv(a,d.events,d),d.events)}function v(B,A){return Iae(y(B),A)}function y(B){return Nae(l,B)}function b(){const{_bufferIndex:B,_index:A,line:k,column:j,offset:V}=r;return{_bufferIndex:B,_index:A,line:k,column:j,offset:V}}function x(B){i[B.line]=B.column,I()}function S(){let B;for(;r._index<l.length;){const A=l[r._index];if(typeof A=="string")for(B=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===B&&r._bufferIndex<A.length;)w(A.charCodeAt(r._bufferIndex));else w(A)}}function w(B){m=m(B)}function $(B){Lt(B)?(r.line++,r.column=1,r.offset+=B===-3?2:1,I()):B!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===l[r._index].length&&(r._bufferIndex=-1,r._index++)),d.previous=B}function O(B,A){const k=A||{};return k.type=B,k.start=b(),d.events.push(["enter",k,d]),c.push(k),k}function T(B){const A=c.pop();return A.end=b(),d.events.push(["exit",A,d]),A}function _(B,A){P(B,A.from)}function R(B,A){A.restore()}function M(B,A){return k;function k(j,V,z){let F,q,Z,H;return Array.isArray(j)?K(j):"tokenize"in j?K([j]):U(j);function U(Y){return ie;function ie(oe){const le=oe!==null&&Y[oe],Ce=oe!==null&&Y.null,ce=[...Array.isArray(le)?le:le?[le]:[],...Array.isArray(Ce)?Ce:Ce?[Ce]:[]];return K(ce)(oe)}}function K(Y){return F=Y,q=0,Y.length===0?z:D(Y[q])}function D(Y){return ie;function ie(oe){return H=N(),Z=Y,Y.partial||(d.currentConstruct=Y),Y.name&&d.parser.constructs.disable.null.includes(Y.name)?Q():Y.tokenize.call(A?Object.assign(Object.create(d),A):d,u,X,Q)(oe)}}function X(Y){return B(Z,H),V}function Q(Y){return H.restore(),++q<F.length?D(F[q]):z}}}function P(B,A){B.resolveAll&&!a.includes(B)&&a.push(B),B.resolve&&Qi(d.events,A,d.events.length-A,B.resolve(d.events.slice(A),d)),B.resolveTo&&(d.events=B.resolveTo(d.events,d))}function N(){const B=b(),A=d.previous,k=d.currentConstruct,j=d.events.length,V=Array.from(c);return{from:j,restore:z};function z(){r=B,d.previous=A,d.currentConstruct=k,d.events.length=j,c=V,I()}}function I(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function Nae(e,t){const n=t.start._index,r=t.start._bufferIndex,i=t.end._index,a=t.end._bufferIndex;let l;if(n===i)l=[e[n].slice(r,a)];else{if(l=e.slice(n,i),r>-1){const c=l[0];typeof c=="string"?l[0]=c.slice(r):l.shift()}a>0&&l.push(e[i].slice(0,a))}return l}function Iae(e,t){let n=-1;const r=[];let i;for(;++n<e.length;){const a=e[n];let l;if(typeof a=="string")l=a;else switch(a){case-5:{l="\r";break}case-4:{l=`
|
|
362
|
-
`;break}case-3:{l=`\r
|
|
363
|
-
`;break}case-2:{l=t?" ":" ";break}case-1:{if(!t&&i)continue;l=" ";break}default:l=String.fromCharCode(a)}i=a===-2,r.push(l)}return r.join("")}function Mae(e){const r={constructs:m4([Tae,...(e||{}).extensions||[]]),content:i(Wre),defined:[],document:i(Xre),flow:i(hae),lazy:{},string:i(pae),text:i(vae)};return r;function i(a){return l;function l(c){return _ae(r,a,c)}}}function Pae(e){for(;!b4(e););return e}const NN=/[\0\t\n\r]/g;function Aae(){let e=1,t="",n=!0,r;return i;function i(a,l,c){const u=[];let d,m,g,v,y;for(a=t+(typeof a=="string"?a.toString():new TextDecoder(l||void 0).decode(a)),g=0,t="",n&&(a.charCodeAt(0)===65279&&g++,n=void 0);g<a.length;){if(NN.lastIndex=g,d=NN.exec(a),v=d&&d.index!==void 0?d.index:a.length,y=a.charCodeAt(v),!d){t=a.slice(g);break}if(y===10&&g===v&&r)u.push(-3),r=void 0;else switch(r&&(u.push(-5),r=void 0),g<v&&(u.push(a.slice(g,v)),e+=v-g),y){case 0:{u.push(65533),e++;break}case 9:{for(m=Math.ceil(e/4)*4,u.push(-2);e++<m;)u.push(-1);break}case 10:{u.push(-4),e=1;break}default:r=!0,e=1}g=v+1}return c&&(r&&u.push(-5),t&&u.push(t),u.push(null)),u}}const zae=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function jae(e){return e.replace(zae,Dae)}function Dae(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const i=n.charCodeAt(1),a=i===120||i===88;return g4(n.slice(a?2:1),a?16:10)}return ow(n)||e}const $4={}.hasOwnProperty;function Lae(e,t,n){return t&&typeof t=="object"&&(n=t,t=void 0),kae(n)(Pae(Mae(n).document().write(Aae()(e,t,!0))))}function kae(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:a(je),autolinkProtocol:N,autolinkEmail:N,atxHeading:a(ge),blockQuote:a(Ce),characterEscape:N,characterReference:N,codeFenced:a(ce),codeFencedFenceInfo:l,codeFencedFenceMeta:l,codeIndented:a(ce,l),codeText:a(de,l),codeTextData:N,data:N,codeFlowValue:N,definition:a(ye),definitionDestinationString:l,definitionLabelString:l,definitionTitleString:l,emphasis:a(ve),hardBreakEscape:a(fe),hardBreakTrailing:a(fe),htmlFlow:a(we,l),htmlFlowData:N,htmlText:a(we,l),htmlTextData:N,image:a(Te),label:l,link:a(je),listItem:a(Oe),listItemValue:v,listOrdered:a(ze,g),listUnordered:a(ze),paragraph:a(De),reference:D,referenceString:l,resourceDestinationString:l,resourceTitleString:l,setextHeading:a(ge),strong:a(Ne),thematicBreak:a(Ye)},exit:{atxHeading:u(),atxHeadingSequence:_,autolink:u(),autolinkEmail:le,autolinkProtocol:oe,blockQuote:u(),characterEscapeValue:I,characterReferenceMarkerHexadecimal:Q,characterReferenceMarkerNumeric:Q,characterReferenceValue:Y,characterReference:ie,codeFenced:u(S),codeFencedFence:x,codeFencedFenceInfo:y,codeFencedFenceMeta:b,codeFlowValue:I,codeIndented:u(w),codeText:u(V),codeTextData:I,data:I,definition:u(),definitionDestinationString:T,definitionLabelString:$,definitionTitleString:O,emphasis:u(),hardBreakEscape:u(A),hardBreakTrailing:u(A),htmlFlow:u(k),htmlFlowData:I,htmlText:u(j),htmlTextData:I,image:u(F),label:Z,labelText:q,lineEnding:B,link:u(z),listItem:u(),listOrdered:u(),listUnordered:u(),paragraph:u(),referenceString:X,resourceDestinationString:H,resourceTitleString:U,resource:K,setextHeading:u(P),setextHeadingLineSequence:M,setextHeadingText:R,strong:u(),thematicBreak:u()}};O4(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(he){let $e={type:"root",children:[]};const Me={stack:[$e],tokenStack:[],config:t,enter:c,exit:d,buffer:l,resume:m,data:n},Ae=[];let Xe=-1;for(;++Xe<he.length;)if(he[Xe][1].type==="listOrdered"||he[Xe][1].type==="listUnordered")if(he[Xe][0]==="enter")Ae.push(Xe);else{const Fe=Ae.pop();Xe=i(he,Fe,Xe)}for(Xe=-1;++Xe<he.length;){const Fe=t[he[Xe][0]];$4.call(Fe,he[Xe][1].type)&&Fe[he[Xe][1].type].call(Object.assign({sliceSerialize:he[Xe][2].sliceSerialize},Me),he[Xe][1])}if(Me.tokenStack.length>0){const Fe=Me.tokenStack[Me.tokenStack.length-1];(Fe[1]||IN).call(Me,void 0,Fe[0])}for($e.position={start:gl(he.length>0?he[0][1].start:{line:1,column:1,offset:0}),end:gl(he.length>0?he[he.length-2][1].end:{line:1,column:1,offset:0})},Xe=-1;++Xe<t.transforms.length;)$e=t.transforms[Xe]($e)||$e;return $e}function i(he,$e,Me){let Ae=$e-1,Xe=-1,Fe=!1,Ie,Ge,Le,Ze;for(;++Ae<=Me;){const _e=he[Ae];switch(_e[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{_e[0]==="enter"?Xe++:Xe--,Ze=void 0;break}case"lineEndingBlank":{_e[0]==="enter"&&(Ie&&!Ze&&!Xe&&!Le&&(Le=Ae),Ze=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Ze=void 0}if(!Xe&&_e[0]==="enter"&&_e[1].type==="listItemPrefix"||Xe===-1&&_e[0]==="exit"&&(_e[1].type==="listUnordered"||_e[1].type==="listOrdered")){if(Ie){let tt=Ae;for(Ge=void 0;tt--;){const $t=he[tt];if($t[1].type==="lineEnding"||$t[1].type==="lineEndingBlank"){if($t[0]==="exit")continue;Ge&&(he[Ge][1].type="lineEndingBlank",Fe=!0),$t[1].type="lineEnding",Ge=tt}else if(!($t[1].type==="linePrefix"||$t[1].type==="blockQuotePrefix"||$t[1].type==="blockQuotePrefixWhitespace"||$t[1].type==="blockQuoteMarker"||$t[1].type==="listItemIndent"))break}Le&&(!Ge||Le<Ge)&&(Ie._spread=!0),Ie.end=Object.assign({},Ge?he[Ge][1].start:_e[1].end),he.splice(Ge||Ae,0,["exit",Ie,_e[2]]),Ae++,Me++}if(_e[1].type==="listItemPrefix"){const tt={type:"listItem",_spread:!1,start:Object.assign({},_e[1].start),end:void 0};Ie=tt,he.splice(Ae,0,["enter",tt,_e[2]]),Ae++,Me++,Le=void 0,Ze=!0}}}return he[$e][1]._spread=Fe,Me}function a(he,$e){return Me;function Me(Ae){c.call(this,he(Ae),Ae),$e&&$e.call(this,Ae)}}function l(){this.stack.push({type:"fragment",children:[]})}function c(he,$e,Me){this.stack[this.stack.length-1].children.push(he),this.stack.push(he),this.tokenStack.push([$e,Me||void 0]),he.position={start:gl($e.start),end:void 0}}function u(he){return $e;function $e(Me){he&&he.call(this,Me),d.call(this,Me)}}function d(he,$e){const Me=this.stack.pop(),Ae=this.tokenStack.pop();if(Ae)Ae[0].type!==he.type&&($e?$e.call(this,he,Ae[0]):(Ae[1]||IN).call(this,he,Ae[0]));else throw new Error("Cannot close `"+he.type+"` ("+$f({start:he.start,end:he.end})+"): it’s not open");Me.position.end=gl(he.end)}function m(){return aw(this.stack.pop())}function g(){this.data.expectingFirstListItemValue=!0}function v(he){if(this.data.expectingFirstListItemValue){const $e=this.stack[this.stack.length-2];$e.start=Number.parseInt(this.sliceSerialize(he),10),this.data.expectingFirstListItemValue=void 0}}function y(){const he=this.resume(),$e=this.stack[this.stack.length-1];$e.lang=he}function b(){const he=this.resume(),$e=this.stack[this.stack.length-1];$e.meta=he}function x(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function S(){const he=this.resume(),$e=this.stack[this.stack.length-1];$e.value=he.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function w(){const he=this.resume(),$e=this.stack[this.stack.length-1];$e.value=he.replace(/(\r?\n|\r)$/g,"")}function $(he){const $e=this.resume(),Me=this.stack[this.stack.length-1];Me.label=$e,Me.identifier=ja(this.sliceSerialize(he)).toLowerCase()}function O(){const he=this.resume(),$e=this.stack[this.stack.length-1];$e.title=he}function T(){const he=this.resume(),$e=this.stack[this.stack.length-1];$e.url=he}function _(he){const $e=this.stack[this.stack.length-1];if(!$e.depth){const Me=this.sliceSerialize(he).length;$e.depth=Me}}function R(){this.data.setextHeadingSlurpLineEnding=!0}function M(he){const $e=this.stack[this.stack.length-1];$e.depth=this.sliceSerialize(he).codePointAt(0)===61?1:2}function P(){this.data.setextHeadingSlurpLineEnding=void 0}function N(he){const Me=this.stack[this.stack.length-1].children;let Ae=Me[Me.length-1];(!Ae||Ae.type!=="text")&&(Ae=be(),Ae.position={start:gl(he.start),end:void 0},Me.push(Ae)),this.stack.push(Ae)}function I(he){const $e=this.stack.pop();$e.value+=this.sliceSerialize(he),$e.position.end=gl(he.end)}function B(he){const $e=this.stack[this.stack.length-1];if(this.data.atHardBreak){const Me=$e.children[$e.children.length-1];Me.position.end=gl(he.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes($e.type)&&(N.call(this,he),I.call(this,he))}function A(){this.data.atHardBreak=!0}function k(){const he=this.resume(),$e=this.stack[this.stack.length-1];$e.value=he}function j(){const he=this.resume(),$e=this.stack[this.stack.length-1];$e.value=he}function V(){const he=this.resume(),$e=this.stack[this.stack.length-1];$e.value=he}function z(){const he=this.stack[this.stack.length-1];if(this.data.inReference){const $e=this.data.referenceType||"shortcut";he.type+="Reference",he.referenceType=$e,delete he.url,delete he.title}else delete he.identifier,delete he.label;this.data.referenceType=void 0}function F(){const he=this.stack[this.stack.length-1];if(this.data.inReference){const $e=this.data.referenceType||"shortcut";he.type+="Reference",he.referenceType=$e,delete he.url,delete he.title}else delete he.identifier,delete he.label;this.data.referenceType=void 0}function q(he){const $e=this.sliceSerialize(he),Me=this.stack[this.stack.length-2];Me.label=jae($e),Me.identifier=ja($e).toLowerCase()}function Z(){const he=this.stack[this.stack.length-1],$e=this.resume(),Me=this.stack[this.stack.length-1];if(this.data.inReference=!0,Me.type==="link"){const Ae=he.children;Me.children=Ae}else Me.alt=$e}function H(){const he=this.resume(),$e=this.stack[this.stack.length-1];$e.url=he}function U(){const he=this.resume(),$e=this.stack[this.stack.length-1];$e.title=he}function K(){this.data.inReference=void 0}function D(){this.data.referenceType="collapsed"}function X(he){const $e=this.resume(),Me=this.stack[this.stack.length-1];Me.label=$e,Me.identifier=ja(this.sliceSerialize(he)).toLowerCase(),this.data.referenceType="full"}function Q(he){this.data.characterReferenceType=he.type}function Y(he){const $e=this.sliceSerialize(he),Me=this.data.characterReferenceType;let Ae;Me?(Ae=g4($e,Me==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):Ae=ow($e);const Xe=this.stack[this.stack.length-1];Xe.value+=Ae}function ie(he){const $e=this.stack.pop();$e.position.end=gl(he.end)}function oe(he){I.call(this,he);const $e=this.stack[this.stack.length-1];$e.url=this.sliceSerialize(he)}function le(he){I.call(this,he);const $e=this.stack[this.stack.length-1];$e.url="mailto:"+this.sliceSerialize(he)}function Ce(){return{type:"blockquote",children:[]}}function ce(){return{type:"code",lang:null,meta:null,value:""}}function de(){return{type:"inlineCode",value:""}}function ye(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function ve(){return{type:"emphasis",children:[]}}function ge(){return{type:"heading",depth:0,children:[]}}function fe(){return{type:"break"}}function we(){return{type:"html",value:""}}function Te(){return{type:"image",title:null,url:"",alt:null}}function je(){return{type:"link",title:null,url:"",children:[]}}function ze(he){return{type:"list",ordered:he.type==="listOrdered",start:null,spread:he._spread,children:[]}}function Oe(he){return{type:"listItem",spread:he._spread,checked:null,children:[]}}function De(){return{type:"paragraph",children:[]}}function Ne(){return{type:"strong",children:[]}}function be(){return{type:"text",value:""}}function Ye(){return{type:"thematicBreak"}}}function gl(e){return{line:e.line,column:e.column,offset:e.offset}}function O4(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?O4(e,r):Bae(e,r)}}function Bae(e,t){let n;for(n in t)if($4.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function IN(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+$f({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+$f({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+$f({start:t.start,end:t.end})+") is still open")}function Hae(e){const t=this;t.parser=n;function n(r){return Lae(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function Fae(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function Vae(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
|
|
364
|
-
`}]}function Uae(e,t){const n=t.value?t.value+`
|
|
365
|
-
`:"",r={},i=t.lang?t.lang.split(/\s+/):[];i.length>0&&(r.className=["language-"+i[0]]);let a={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(a.data={meta:t.meta}),e.patch(t,a),a=e.applyData(t,a),a={type:"element",tagName:"pre",properties:{},children:[a]},e.patch(t,a),a}function qae(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Kae(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Wae(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),i=id(r.toLowerCase()),a=e.footnoteOrder.indexOf(r);let l,c=e.footnoteCounts.get(r);c===void 0?(c=0,e.footnoteOrder.push(r),l=e.footnoteOrder.length):l=a+1,c+=1,e.footnoteCounts.set(r,c);const u={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+i,id:n+"fnref-"+i+(c>1?"-"+c:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(l)}]};e.patch(t,u);const d={type:"element",tagName:"sup",properties:{},children:[u]};return e.patch(t,d),e.applyData(t,d)}function Gae(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Xae(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function R4(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+r}];const i=e.all(t),a=i[0];a&&a.type==="text"?a.value="["+a.value:i.unshift({type:"text",value:"["});const l=i[i.length-1];return l&&l.type==="text"?l.value+=r:i.push({type:"text",value:r}),i}function Qae(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return R4(e,t);const i={src:id(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);const a={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,a),e.applyData(t,a)}function Yae(e,t){const n={src:id(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function Zae(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function Jae(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return R4(e,t);const i={href:id(r.url||"")};r.title!==null&&r.title!==void 0&&(i.title=r.title);const a={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function eoe(e,t){const n={href:id(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function toe(e,t,n){const r=e.all(t),i=n?noe(n):T4(t),a={},l=[];if(typeof t.checked=="boolean"){const m=r[0];let g;m&&m.type==="element"&&m.tagName==="p"?g=m:(g={type:"element",tagName:"p",properties:{},children:[]},r.unshift(g)),g.children.length>0&&g.children.unshift({type:"text",value:" "}),g.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),a.className=["task-list-item"]}let c=-1;for(;++c<r.length;){const m=r[c];(i||c!==0||m.type!=="element"||m.tagName!=="p")&&l.push({type:"text",value:`
|
|
366
|
-
`}),m.type==="element"&&m.tagName==="p"&&!i?l.push(...m.children):l.push(m)}const u=r[r.length-1];u&&(i||u.type!=="element"||u.tagName!=="p")&&l.push({type:"text",value:`
|
|
367
|
-
`});const d={type:"element",tagName:"li",properties:a,children:l};return e.patch(t,d),e.applyData(t,d)}function noe(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=T4(n[r])}return t}function T4(e){const t=e.spread;return t??e.children.length>1}function roe(e,t){const n={},r=e.all(t);let i=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++i<r.length;){const l=r[i];if(l.type==="element"&&l.tagName==="li"&&l.properties&&Array.isArray(l.properties.className)&&l.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const a={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,a),e.applyData(t,a)}function ioe(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function aoe(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function ooe(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function loe(e,t){const n=e.all(t),r=n.shift(),i=[];if(r){const l={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],l),i.push(l)}if(n.length>0){const l={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},c=tw(t.children[1]),u=l4(t.children[t.children.length-1]);c&&u&&(l.position={start:c,end:u}),i.push(l)}const a={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,a),e.applyData(t,a)}function soe(e,t,n){const r=n?n.children:void 0,a=(r?r.indexOf(t):1)===0?"th":"td",l=n&&n.type==="table"?n.align:void 0,c=l?l.length:t.children.length;let u=-1;const d=[];for(;++u<c;){const g=t.children[u],v={},y=l?l[u]:void 0;y&&(v.align=y);let b={type:"element",tagName:a,properties:v,children:[]};g&&(b.children=e.all(g),e.patch(g,b),b=e.applyData(g,b)),d.push(b)}const m={type:"element",tagName:"tr",properties:{},children:e.wrap(d,!0)};return e.patch(t,m),e.applyData(t,m)}function coe(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const MN=9,PN=32;function uoe(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),i=0;const a=[];for(;r;)a.push(AN(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return a.push(AN(t.slice(i),i>0,!1)),a.join("")}function AN(e,t,n){let r=0,i=e.length;if(t){let a=e.codePointAt(r);for(;a===MN||a===PN;)r++,a=e.codePointAt(r)}if(n){let a=e.codePointAt(i-1);for(;a===MN||a===PN;)i--,a=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function doe(e,t){const n={type:"text",value:uoe(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function foe(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const hoe={blockquote:Fae,break:Vae,code:Uae,delete:qae,emphasis:Kae,footnoteReference:Wae,heading:Gae,html:Xae,imageReference:Qae,image:Yae,inlineCode:Zae,linkReference:Jae,link:eoe,listItem:toe,list:roe,paragraph:ioe,root:aoe,strong:ooe,table:loe,tableCell:coe,tableRow:soe,text:doe,thematicBreak:foe,toml:ig,yaml:ig,definition:ig,footnoteDefinition:ig};function ig(){}const _4=-1,xv=0,Rf=1,$p=2,sw=3,cw=4,uw=5,dw=6,N4=7,I4=8,moe=typeof self=="object"?self:globalThis,zN=(e,t)=>{switch(e){case"Function":case"SharedWorker":case"Worker":case"eval":case"setInterval":case"setTimeout":throw new TypeError("unable to deserialize "+e)}return new moe[e](t)},goe=(e,t)=>{const n=(i,a)=>(e.set(a,i),i),r=i=>{if(e.has(i))return e.get(i);const[a,l]=t[i];switch(a){case xv:case _4:return n(l,i);case Rf:{const c=n([],i);for(const u of l)c.push(r(u));return c}case $p:{const c=n({},i);for(const[u,d]of l)c[r(u)]=r(d);return c}case sw:return n(new Date(l),i);case cw:{const{source:c,flags:u}=l;return n(new RegExp(c,u),i)}case uw:{const c=n(new Map,i);for(const[u,d]of l)c.set(r(u),r(d));return c}case dw:{const c=n(new Set,i);for(const u of l)c.add(r(u));return c}case N4:{const{name:c,message:u}=l;return n(zN(c,u),i)}case I4:return n(BigInt(l),i);case"BigInt":return n(Object(BigInt(l)),i);case"ArrayBuffer":return n(new Uint8Array(l).buffer,l);case"DataView":{const{buffer:c}=new Uint8Array(l);return n(new DataView(c),l)}}return n(zN(a,l),i)};return r},jN=e=>goe(new Map,e)(0),nu="",{toString:poe}={},{keys:voe}=Object,of=e=>{const t=typeof e;if(t!=="object"||!e)return[xv,t];const n=poe.call(e).slice(8,-1);switch(n){case"Array":return[Rf,nu];case"Object":return[$p,nu];case"Date":return[sw,nu];case"RegExp":return[cw,nu];case"Map":return[uw,nu];case"Set":return[dw,nu];case"DataView":return[Rf,n]}return n.includes("Array")?[Rf,n]:n.includes("Error")?[N4,n]:[$p,n]},ag=([e,t])=>e===xv&&(t==="function"||t==="symbol"),yoe=(e,t,n,r)=>{const i=(l,c)=>{const u=r.push(l)-1;return n.set(c,u),u},a=l=>{if(n.has(l))return n.get(l);let[c,u]=of(l);switch(c){case xv:{let m=l;switch(u){case"bigint":c=I4,m=l.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+u);m=null;break;case"undefined":return i([_4],l)}return i([c,m],l)}case Rf:{if(u){let v=l;return u==="DataView"?v=new Uint8Array(l.buffer):u==="ArrayBuffer"&&(v=new Uint8Array(l)),i([u,[...v]],l)}const m=[],g=i([c,m],l);for(const v of l)m.push(a(v));return g}case $p:{if(u)switch(u){case"BigInt":return i([u,l.toString()],l);case"Boolean":case"Number":case"String":return i([u,l.valueOf()],l)}if(t&&"toJSON"in l)return a(l.toJSON());const m=[],g=i([c,m],l);for(const v of voe(l))(e||!ag(of(l[v])))&&m.push([a(v),a(l[v])]);return g}case sw:return i([c,l.toISOString()],l);case cw:{const{source:m,flags:g}=l;return i([c,{source:m,flags:g}],l)}case uw:{const m=[],g=i([c,m],l);for(const[v,y]of l)(e||!(ag(of(v))||ag(of(y))))&&m.push([a(v),a(y)]);return g}case dw:{const m=[],g=i([c,m],l);for(const v of l)(e||!ag(of(v)))&&m.push(a(v));return g}}const{message:d}=l;return i([c,{name:u,message:d}],l)};return a},DN=(e,{json:t,lossy:n}={})=>{const r=[];return yoe(!(t||n),!!t,new Map,r)(e),r},Op=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?jN(DN(e,t)):structuredClone(e):(e,t)=>jN(DN(e,t));function boe(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function Soe(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function xoe(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||boe,r=e.options.footnoteBackLabel||Soe,i=e.options.footnoteLabel||"Footnotes",a=e.options.footnoteLabelTagName||"h2",l=e.options.footnoteLabelProperties||{className:["sr-only"]},c=[];let u=-1;for(;++u<e.footnoteOrder.length;){const d=e.footnoteById.get(e.footnoteOrder[u]);if(!d)continue;const m=e.all(d),g=String(d.identifier).toUpperCase(),v=id(g.toLowerCase());let y=0;const b=[],x=e.footnoteCounts.get(g);for(;x!==void 0&&++y<=x;){b.length>0&&b.push({type:"text",value:" "});let $=typeof n=="string"?n:n(u,y);typeof $=="string"&&($={type:"text",value:$}),b.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+v+(y>1?"-"+y:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(u,y),className:["data-footnote-backref"]},children:Array.isArray($)?$:[$]})}const S=m[m.length-1];if(S&&S.type==="element"&&S.tagName==="p"){const $=S.children[S.children.length-1];$&&$.type==="text"?$.value+=" ":S.children.push({type:"text",value:" "}),S.children.push(...b)}else m.push(...b);const w={type:"element",tagName:"li",properties:{id:t+"fn-"+v},children:e.wrap(m,!0)};e.patch(d,w),c.push(w)}if(c.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:a,properties:{...Op(l),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:`
|
|
368
|
-
`},{type:"element",tagName:"ol",properties:{},children:e.wrap(c,!0)},{type:"text",value:`
|
|
369
|
-
`}]}}const Cv=(function(e){if(e==null)return $oe;if(typeof e=="function")return wv(e);if(typeof e=="object")return Array.isArray(e)?Coe(e):woe(e);if(typeof e=="string")return Eoe(e);throw new Error("Expected function, string, or object as test")});function Coe(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=Cv(e[n]);return wv(r);function r(...i){let a=-1;for(;++a<t.length;)if(t[a].apply(this,i))return!0;return!1}}function woe(e){const t=e;return wv(n);function n(r){const i=r;let a;for(a in e)if(i[a]!==t[a])return!1;return!0}}function Eoe(e){return wv(t);function t(n){return n&&n.type===e}}function wv(e){return t;function t(n,r,i){return!!(Ooe(n)&&e.call(this,n,typeof r=="number"?r:void 0,i||void 0))}}function $oe(){return!0}function Ooe(e){return e!==null&&typeof e=="object"&&"type"in e}const M4=[],Roe=!0,fC=!1,Toe="skip";function P4(e,t,n,r){let i;typeof t=="function"&&typeof n!="function"?(r=n,n=t):i=t;const a=Cv(i),l=r?-1:1;c(e,void 0,[])();function c(u,d,m){const g=u&&typeof u=="object"?u:{};if(typeof g.type=="string"){const y=typeof g.tagName=="string"?g.tagName:typeof g.name=="string"?g.name:void 0;Object.defineProperty(v,"name",{value:"node ("+(u.type+(y?"<"+y+">":""))+")"})}return v;function v(){let y=M4,b,x,S;if((!t||a(u,d,m[m.length-1]||void 0))&&(y=_oe(n(u,m)),y[0]===fC))return y;if("children"in u&&u.children){const w=u;if(w.children&&y[0]!==Toe)for(x=(r?w.children.length:-1)+l,S=m.concat(w);x>-1&&x<w.children.length;){const $=w.children[x];if(b=c($,x,S)(),b[0]===fC)return b;x=typeof b[1]=="number"?b[1]:x+l}}return y}}}function _oe(e){return Array.isArray(e)?e:typeof e=="number"?[Roe,e]:e==null?M4:[e]}function fw(e,t,n,r){let i,a,l;typeof t=="function"&&typeof n!="function"?(a=void 0,l=t,i=n):(a=t,l=n,i=r),P4(e,a,c,i);function c(u,d){const m=d[d.length-1],g=m?m.children.indexOf(u):void 0;return l(u,g,m)}}const hC={}.hasOwnProperty,Noe={};function Ioe(e,t){const n=t||Noe,r=new Map,i=new Map,a=new Map,l={...hoe,...n.handlers},c={all:d,applyData:Poe,definitionById:r,footnoteById:i,footnoteCounts:a,footnoteOrder:[],handlers:l,one:u,options:n,patch:Moe,wrap:zoe};return fw(e,function(m){if(m.type==="definition"||m.type==="footnoteDefinition"){const g=m.type==="definition"?r:i,v=String(m.identifier).toUpperCase();g.has(v)||g.set(v,m)}}),c;function u(m,g){const v=m.type,y=c.handlers[v];if(hC.call(c.handlers,v)&&y)return y(c,m,g);if(c.options.passThrough&&c.options.passThrough.includes(v)){if("children"in m){const{children:x,...S}=m,w=Op(S);return w.children=c.all(m),w}return Op(m)}return(c.options.unknownHandler||Aoe)(c,m,g)}function d(m){const g=[];if("children"in m){const v=m.children;let y=-1;for(;++y<v.length;){const b=c.one(v[y],m);if(b){if(y&&v[y-1].type==="break"&&(!Array.isArray(b)&&b.type==="text"&&(b.value=LN(b.value)),!Array.isArray(b)&&b.type==="element")){const x=b.children[0];x&&x.type==="text"&&(x.value=LN(x.value))}Array.isArray(b)?g.push(...b):g.push(b)}}}return g}}function Moe(e,t){e.position&&(t.position=bre(e))}function Poe(e,t){let n=t;if(e&&e.data){const r=e.data.hName,i=e.data.hChildren,a=e.data.hProperties;if(typeof r=="string")if(n.type==="element")n.tagName=r;else{const l="children"in n?n.children:[n];n={type:"element",tagName:r,properties:{},children:l}}n.type==="element"&&a&&Object.assign(n.properties,Op(a)),"children"in n&&n.children&&i!==null&&i!==void 0&&(n.children=i)}return n}function Aoe(e,t){const n=t.data||{},r="value"in t&&!(hC.call(n,"hProperties")||hC.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function zoe(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:`
|
|
370
|
-
`});++r<e.length;)r&&n.push({type:"text",value:`
|
|
371
|
-
`}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:`
|
|
372
|
-
`}),n}function LN(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function kN(e,t){const n=Ioe(e,t),r=n.one(e,void 0),i=xoe(n),a=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&a.children.push({type:"text",value:`
|
|
373
|
-
`},i),a}function joe(e,t){return e&&"run"in e?async function(n,r){const i=kN(n,{file:r,...t});await e.run(i,r)}:function(n,r){return kN(n,{file:r,...e||t})}}function BN(e){if(e)throw e}var Xb,HN;function Doe(){if(HN)return Xb;HN=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=function(d){return typeof Array.isArray=="function"?Array.isArray(d):t.call(d)==="[object Array]"},a=function(d){if(!d||t.call(d)!=="[object Object]")return!1;var m=e.call(d,"constructor"),g=d.constructor&&d.constructor.prototype&&e.call(d.constructor.prototype,"isPrototypeOf");if(d.constructor&&!m&&!g)return!1;var v;for(v in d);return typeof v>"u"||e.call(d,v)},l=function(d,m){n&&m.name==="__proto__"?n(d,m.name,{enumerable:!0,configurable:!0,value:m.newValue,writable:!0}):d[m.name]=m.newValue},c=function(d,m){if(m==="__proto__")if(e.call(d,m)){if(r)return r(d,m).value}else return;return d[m]};return Xb=function u(){var d,m,g,v,y,b,x=arguments[0],S=1,w=arguments.length,$=!1;for(typeof x=="boolean"&&($=x,x=arguments[1]||{},S=2),(x==null||typeof x!="object"&&typeof x!="function")&&(x={});S<w;++S)if(d=arguments[S],d!=null)for(m in d)g=c(x,m),v=c(d,m),x!==v&&($&&v&&(a(v)||(y=i(v)))?(y?(y=!1,b=g&&i(g)?g:[]):b=g&&a(g)?g:{},l(x,{name:m,newValue:u($,b,v)})):typeof v<"u"&&l(x,{name:m,newValue:v}));return x},Xb}var Loe=Doe();const Qb=ec(Loe);function mC(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function koe(){const e=[],t={run:n,use:r};return t;function n(...i){let a=-1;const l=i.pop();if(typeof l!="function")throw new TypeError("Expected function as last argument, not "+l);c(null,...i);function c(u,...d){const m=e[++a];let g=-1;if(u){l(u);return}for(;++g<i.length;)(d[g]===null||d[g]===void 0)&&(d[g]=i[g]);i=d,m?Boe(m,c)(...d):l(null,...d)}}function r(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return e.push(i),t}}function Boe(e,t){let n;return r;function r(...l){const c=e.length>l.length;let u;c&&l.push(i);try{u=e.apply(this,l)}catch(d){const m=d;if(c&&n)throw m;return i(m)}c||(u&&u.then&&typeof u.then=="function"?u.then(a,i):u instanceof Error?i(u):a(u))}function i(l,...c){n||(n=!0,t(l,...c))}function a(l){i(null,l)}}const qa={basename:Hoe,dirname:Foe,extname:Voe,join:Uoe,sep:"/"};function Hoe(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');Nh(e);let n=0,r=-1,i=e.length,a;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else r<0&&(a=!0,r=i+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let l=-1,c=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else l<0&&(a=!0,l=i+1),c>-1&&(e.codePointAt(i)===t.codePointAt(c--)?c<0&&(r=i):(c=-1,r=l));return n===r?r=l:r<0&&(r=e.length),e.slice(n,r)}function Foe(e){if(Nh(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function Voe(e){Nh(e);let t=e.length,n=-1,r=0,i=-1,a=0,l;for(;t--;){const c=e.codePointAt(t);if(c===47){if(l){r=t+1;break}continue}n<0&&(l=!0,n=t+1),c===46?i<0?i=t:a!==1&&(a=1):i>-1&&(a=-1)}return i<0||n<0||a===0||a===1&&i===n-1&&i===r+1?"":e.slice(i,n)}function Uoe(...e){let t=-1,n;for(;++t<e.length;)Nh(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":qoe(n)}function qoe(e){Nh(e);const t=e.codePointAt(0)===47;let n=Koe(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function Koe(e,t){let n="",r=0,i=-1,a=0,l=-1,c,u;for(;++l<=e.length;){if(l<e.length)c=e.codePointAt(l);else{if(c===47)break;c=47}if(c===47){if(!(i===l-1||a===1))if(i!==l-1&&a===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(u=n.lastIndexOf("/"),u!==n.length-1){u<0?(n="",r=0):(n=n.slice(0,u),r=n.length-1-n.lastIndexOf("/")),i=l,a=0;continue}}else if(n.length>0){n="",r=0,i=l,a=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(i+1,l):n=e.slice(i+1,l),r=l-i-1;i=l,a=0}else c===46&&a>-1?a++:a=-1}return n}function Nh(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const Woe={cwd:Goe};function Goe(){return"/"}function gC(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function Xoe(e){if(typeof e=="string")e=new URL(e);else if(!gC(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return Qoe(e)}function Qoe(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){const r=t.codePointAt(n+2);if(r===70||r===102){const i=new TypeError("File URL path must not include encoded / characters");throw i.code="ERR_INVALID_FILE_URL_PATH",i}}return decodeURIComponent(t)}const Yb=["history","path","basename","stem","extname","dirname"];class A4{constructor(t){let n;t?gC(t)?n={path:t}:typeof t=="string"||Yoe(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":Woe.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<Yb.length;){const a=Yb[r];a in n&&n[a]!==void 0&&n[a]!==null&&(this[a]=a==="history"?[...n[a]]:n[a])}let i;for(i in n)Yb.includes(i)||(this[i]=n[i])}get basename(){return typeof this.path=="string"?qa.basename(this.path):void 0}set basename(t){Jb(t,"basename"),Zb(t,"basename"),this.path=qa.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?qa.dirname(this.path):void 0}set dirname(t){FN(this.basename,"dirname"),this.path=qa.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?qa.extname(this.path):void 0}set extname(t){if(Zb(t,"extname"),FN(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=qa.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){gC(t)&&(t=Xoe(t)),Jb(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?qa.basename(this.path,this.extname):void 0}set stem(t){Jb(t,"stem"),Zb(t,"stem"),this.path=qa.join(this.dirname||"",t+(this.extname||""))}fail(t,n,r){const i=this.message(t,n,r);throw i.fatal=!0,i}info(t,n,r){const i=this.message(t,n,r);return i.fatal=void 0,i}message(t,n,r){const i=new si(t,n,r);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function Zb(e,t){if(e&&e.includes(qa.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+qa.sep+"`")}function Jb(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function FN(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function Yoe(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Zoe=(function(e){const r=this.constructor.prototype,i=r[e],a=function(){return i.apply(a,arguments)};return Object.setPrototypeOf(a,r),a}),Joe={}.hasOwnProperty;class hw extends Zoe{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=koe()}copy(){const t=new hw;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];t.use(...r)}return t.data(Qb(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(nS("data",this.frozen),this.namespace[t]=n,this):Joe.call(this.namespace,t)&&this.namespace[t]||void 0:t?(nS("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[n,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const i=n.call(t,...r);typeof i=="function"&&this.transformers.use(i)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=og(t),r=this.parser||this.Parser;return eS("parse",r),r(String(n),n)}process(t,n){const r=this;return this.freeze(),eS("process",this.parser||this.Parser),tS("process",this.compiler||this.Compiler),n?i(void 0,n):new Promise(i);function i(a,l){const c=og(t),u=r.parse(c);r.run(u,c,function(m,g,v){if(m||!g||!v)return d(m);const y=g,b=r.stringify(y,v);nle(b)?v.value=b:v.result=b,d(m,v)});function d(m,g){m||!g?l(m):a?a(g):n(void 0,g)}}}processSync(t){let n=!1,r;return this.freeze(),eS("processSync",this.parser||this.Parser),tS("processSync",this.compiler||this.Compiler),this.process(t,i),UN("processSync","process",n),r;function i(a,l){n=!0,BN(a),r=l}}run(t,n,r){VN(t),this.freeze();const i=this.transformers;return!r&&typeof n=="function"&&(r=n,n=void 0),r?a(void 0,r):new Promise(a);function a(l,c){const u=og(n);i.run(t,u,d);function d(m,g,v){const y=g||t;m?c(m):l?l(y):r(void 0,y,v)}}}runSync(t,n){let r=!1,i;return this.run(t,n,a),UN("runSync","run",r),i;function a(l,c){BN(l),i=c,r=!0}}stringify(t,n){this.freeze();const r=og(n),i=this.compiler||this.Compiler;return tS("stringify",i),VN(t),i(t,r)}use(t,...n){const r=this.attachers,i=this.namespace;if(nS("use",this.frozen),t!=null)if(typeof t=="function")u(t,n);else if(typeof t=="object")Array.isArray(t)?c(t):l(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function a(d){if(typeof d=="function")u(d,[]);else if(typeof d=="object")if(Array.isArray(d)){const[m,...g]=d;u(m,g)}else l(d);else throw new TypeError("Expected usable value, not `"+d+"`")}function l(d){if(!("plugins"in d)&&!("settings"in d))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");c(d.plugins),d.settings&&(i.settings=Qb(!0,i.settings,d.settings))}function c(d){let m=-1;if(d!=null)if(Array.isArray(d))for(;++m<d.length;){const g=d[m];a(g)}else throw new TypeError("Expected a list of plugins, not `"+d+"`")}function u(d,m){let g=-1,v=-1;for(;++g<r.length;)if(r[g][0]===d){v=g;break}if(v===-1)r.push([d,...m]);else if(m.length>0){let[y,...b]=m;const x=r[v][1];mC(x)&&mC(y)&&(y=Qb(!0,x,y)),r[v]=[d,y,...b]}}}}const ele=new hw().freeze();function eS(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function tS(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function nS(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function VN(e){if(!mC(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function UN(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function og(e){return tle(e)?e:new A4(e)}function tle(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function nle(e){return typeof e=="string"||rle(e)}function rle(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const ile="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",qN=[],KN={allowDangerousHtml:!0},ale=/^(https?|ircs?|mailto|xmpp)$/i,ole=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function lle(e){const t=sle(e),n=cle(e);return ule(t.runSync(t.parse(n),n),e)}function sle(e){const t=e.rehypePlugins||qN,n=e.remarkPlugins||qN,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...KN}:KN;return ele().use(Hae).use(n).use(joe,r).use(t)}function cle(e){const t=e.children||"",n=new A4;return typeof t=="string"&&(n.value=t),n}function ule(e,t){const n=t.allowedElements,r=t.allowElement,i=t.components,a=t.disallowedElements,l=t.skipHtml,c=t.unwrapDisallowed,u=t.urlTransform||dle;for(const m of ole)Object.hasOwn(t,m.from)&&(""+m.from+(m.to?"use `"+m.to+"` instead":"remove it")+ile+m.id,void 0);return fw(e,d),Ere(e,{Fragment:se.Fragment,components:i,ignoreInvalidStyle:!0,jsx:se.jsx,jsxs:se.jsxs,passKeys:!0,passNode:!0});function d(m,g,v){if(m.type==="raw"&&v&&typeof g=="number")return l?v.children.splice(g,1):v.children[g]={type:"text",value:m.value},g;if(m.type==="element"){let y;for(y in Kb)if(Object.hasOwn(Kb,y)&&Object.hasOwn(m.properties,y)){const b=m.properties[y],x=Kb[y];(x===null||x.includes(m.tagName))&&(m.properties[y]=u(String(b||""),y,m))}}if(m.type==="element"){let y=n?!n.includes(m.tagName):a?a.includes(m.tagName):!1;if(!y&&r&&typeof g=="number"&&(y=!r(m,g,v)),y&&v&&typeof g=="number")return c&&m.children?v.children.splice(g,1,...m.children):v.children.splice(g,1),g}}}function dle(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),i=e.indexOf("/");return t===-1||i!==-1&&t>i||n!==-1&&t>n||r!==-1&&t>r||ale.test(e.slice(0,t))?e:""}function WN(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let r=0,i=n.indexOf(t);for(;i!==-1;)r++,i=n.indexOf(t,i+t.length);return r}function fle(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function hle(e,t,n){const i=Cv((n||{}).ignore||[]),a=mle(t);let l=-1;for(;++l<a.length;)P4(e,"text",c);function c(d,m){let g=-1,v;for(;++g<m.length;){const y=m[g],b=v?v.children:void 0;if(i(y,b?b.indexOf(y):void 0,v))return;v=y}if(v)return u(d,m)}function u(d,m){const g=m[m.length-1],v=a[l][0],y=a[l][1];let b=0;const S=g.children.indexOf(d);let w=!1,$=[];v.lastIndex=0;let O=v.exec(d.value);for(;O;){const T=O.index,_={index:O.index,input:O.input,stack:[...m,d]};let R=y(...O,_);if(typeof R=="string"&&(R=R.length>0?{type:"text",value:R}:void 0),R===!1?v.lastIndex=T+1:(b!==T&&$.push({type:"text",value:d.value.slice(b,T)}),Array.isArray(R)?$.push(...R):R&&$.push(R),b=T+O[0].length,w=!0),!v.global)break;O=v.exec(d.value)}return w?(b<d.value.length&&$.push({type:"text",value:d.value.slice(b)}),g.children.splice(S,1,...$)):$=[d],S+$.length}}function mle(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const n=!e[0]||Array.isArray(e[0])?e:[e];let r=-1;for(;++r<n.length;){const i=n[r];t.push([gle(i[0]),ple(i[1])])}return t}function gle(e){return typeof e=="string"?new RegExp(fle(e),"g"):e}function ple(e){return typeof e=="function"?e:function(){return e}}const rS="phrasing",iS=["autolink","link","image","label"];function vle(){return{transforms:[Ele],enter:{literalAutolink:ble,literalAutolinkEmail:aS,literalAutolinkHttp:aS,literalAutolinkWww:aS},exit:{literalAutolink:wle,literalAutolinkEmail:Cle,literalAutolinkHttp:Sle,literalAutolinkWww:xle}}}function yle(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:rS,notInConstruct:iS},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:rS,notInConstruct:iS},{character:":",before:"[ps]",after:"\\/",inConstruct:rS,notInConstruct:iS}]}}function ble(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function aS(e){this.config.enter.autolinkProtocol.call(this,e)}function Sle(e){this.config.exit.autolinkProtocol.call(this,e)}function xle(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function Cle(e){this.config.exit.autolinkEmail.call(this,e)}function wle(e){this.exit(e)}function Ele(e){hle(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,$le],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),Ole]],{ignore:["link","linkReference"]})}function $le(e,t,n,r,i){let a="";if(!z4(i)||(/^w/i.test(t)&&(n=t+n,t="",a="http://"),!Rle(n)))return!1;const l=Tle(n+r);if(!l[0])return!1;const c={type:"link",title:null,url:a+t+l[0],children:[{type:"text",value:t+l[0]}]};return l[1]?[c,{type:"text",value:l[1]}]:c}function Ole(e,t,n,r){return!z4(r,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function Rle(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function Tle(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const i=WN(e,"(");let a=WN(e,")");for(;r!==-1&&i>a;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),a++;return[e,n]}function z4(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||Js(n)||bv(n))&&(!t||n!==47)}j4.peek=Dle;function _le(){this.buffer()}function Nle(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function Ile(){this.buffer()}function Mle(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function Ple(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=ja(this.sliceSerialize(e)).toLowerCase(),n.label=t}function Ale(e){this.exit(e)}function zle(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=ja(this.sliceSerialize(e)).toLowerCase(),n.label=t}function jle(e){this.exit(e)}function Dle(){return"["}function j4(e,t,n,r){const i=n.createTracker(r);let a=i.move("[^");const l=n.enter("footnoteReference"),c=n.enter("reference");return a+=i.move(n.safe(n.associationId(e),{after:"]",before:a})),c(),l(),a+=i.move("]"),a}function Lle(){return{enter:{gfmFootnoteCallString:_le,gfmFootnoteCall:Nle,gfmFootnoteDefinitionLabelString:Ile,gfmFootnoteDefinition:Mle},exit:{gfmFootnoteCallString:Ple,gfmFootnoteCall:Ale,gfmFootnoteDefinitionLabelString:zle,gfmFootnoteDefinition:jle}}}function kle(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:j4},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function n(r,i,a,l){const c=a.createTracker(l);let u=c.move("[^");const d=a.enter("footnoteDefinition"),m=a.enter("label");return u+=c.move(a.safe(a.associationId(r),{before:u,after:"]"})),m(),u+=c.move("]:"),r.children&&r.children.length>0&&(c.shift(4),u+=c.move((t?`
|
|
374
|
-
`:" ")+a.indentLines(a.containerFlow(r,c.current()),t?D4:Ble))),d(),u}}function Ble(e,t,n){return t===0?e:D4(e,t,n)}function D4(e,t,n){return(n?"":" ")+e}const Hle=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];L4.peek=Kle;function Fle(){return{canContainEols:["delete"],enter:{strikethrough:Ule},exit:{strikethrough:qle}}}function Vle(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:Hle}],handlers:{delete:L4}}}function Ule(e){this.enter({type:"delete",children:[]},e)}function qle(e){this.exit(e)}function L4(e,t,n,r){const i=n.createTracker(r),a=n.enter("strikethrough");let l=i.move("~~");return l+=n.containerPhrasing(e,{...i.current(),before:l,after:"~"}),l+=i.move("~~"),a(),l}function Kle(){return"~"}function Wle(e){return e.length}function Gle(e,t){const n=t||{},r=(n.align||[]).concat(),i=n.stringLength||Wle,a=[],l=[],c=[],u=[];let d=0,m=-1;for(;++m<e.length;){const x=[],S=[];let w=-1;for(e[m].length>d&&(d=e[m].length);++w<e[m].length;){const $=Xle(e[m][w]);if(n.alignDelimiters!==!1){const O=i($);S[w]=O,(u[w]===void 0||O>u[w])&&(u[w]=O)}x.push($)}l[m]=x,c[m]=S}let g=-1;if(typeof r=="object"&&"length"in r)for(;++g<d;)a[g]=GN(r[g]);else{const x=GN(r);for(;++g<d;)a[g]=x}g=-1;const v=[],y=[];for(;++g<d;){const x=a[g];let S="",w="";x===99?(S=":",w=":"):x===108?S=":":x===114&&(w=":");let $=n.alignDelimiters===!1?1:Math.max(1,u[g]-S.length-w.length);const O=S+"-".repeat($)+w;n.alignDelimiters!==!1&&($=S.length+$+w.length,$>u[g]&&(u[g]=$),y[g]=$),v[g]=O}l.splice(1,0,v),c.splice(1,0,y),m=-1;const b=[];for(;++m<l.length;){const x=l[m],S=c[m];g=-1;const w=[];for(;++g<d;){const $=x[g]||"";let O="",T="";if(n.alignDelimiters!==!1){const _=u[g]-(S[g]||0),R=a[g];R===114?O=" ".repeat(_):R===99?_%2?(O=" ".repeat(_/2+.5),T=" ".repeat(_/2-.5)):(O=" ".repeat(_/2),T=O):T=" ".repeat(_)}n.delimiterStart!==!1&&!g&&w.push("|"),n.padding!==!1&&!(n.alignDelimiters===!1&&$==="")&&(n.delimiterStart!==!1||g)&&w.push(" "),n.alignDelimiters!==!1&&w.push(O),w.push($),n.alignDelimiters!==!1&&w.push(T),n.padding!==!1&&w.push(" "),(n.delimiterEnd!==!1||g!==d-1)&&w.push("|")}b.push(n.delimiterEnd===!1?w.join("").replace(/ +$/,""):w.join(""))}return b.join(`
|
|
375
|
-
`)}function Xle(e){return e==null?"":String(e)}function GN(e){const t=typeof e=="string"?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}function Qle(e,t,n,r){const i=n.enter("blockquote"),a=n.createTracker(r);a.move("> "),a.shift(2);const l=n.indentLines(n.containerFlow(e,a.current()),Yle);return i(),l}function Yle(e,t,n){return">"+(n?"":" ")+e}function Zle(e,t){return XN(e,t.inConstruct,!0)&&!XN(e,t.notInConstruct,!1)}function XN(e,t,n){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function QN(e,t,n,r){let i=-1;for(;++i<n.unsafe.length;)if(n.unsafe[i].character===`
|
|
376
|
-
`&&Zle(n.stack,n.unsafe[i]))return/[ \t]/.test(r.before)?"":" ";return`\\
|
|
377
|
-
`}function Jle(e,t){const n=String(e);let r=n.indexOf(t),i=r,a=0,l=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;r!==-1;)r===i?++a>l&&(l=a):a=1,i=r+t.length,r=n.indexOf(t,i);return l}function ese(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function tse(e){const t=e.options.fence||"`";if(t!=="`"&&t!=="~")throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function nse(e,t,n,r){const i=tse(n),a=e.value||"",l=i==="`"?"GraveAccent":"Tilde";if(ese(e,n)){const g=n.enter("codeIndented"),v=n.indentLines(a,rse);return g(),v}const c=n.createTracker(r),u=i.repeat(Math.max(Jle(a,i)+1,3)),d=n.enter("codeFenced");let m=c.move(u);if(e.lang){const g=n.enter(`codeFencedLang${l}`);m+=c.move(n.safe(e.lang,{before:m,after:" ",encode:["`"],...c.current()})),g()}if(e.lang&&e.meta){const g=n.enter(`codeFencedMeta${l}`);m+=c.move(" "),m+=c.move(n.safe(e.meta,{before:m,after:`
|
|
378
|
-
`,encode:["`"],...c.current()})),g()}return m+=c.move(`
|
|
379
|
-
`),a&&(m+=c.move(a+`
|
|
380
|
-
`)),m+=c.move(u),d(),m}function rse(e,t,n){return(n?"":" ")+e}function mw(e){const t=e.options.quote||'"';if(t!=='"'&&t!=="'")throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function ise(e,t,n,r){const i=mw(n),a=i==='"'?"Quote":"Apostrophe",l=n.enter("definition");let c=n.enter("label");const u=n.createTracker(r);let d=u.move("[");return d+=u.move(n.safe(n.associationId(e),{before:d,after:"]",...u.current()})),d+=u.move("]: "),c(),!e.url||/[\0- \u007F]/.test(e.url)?(c=n.enter("destinationLiteral"),d+=u.move("<"),d+=u.move(n.safe(e.url,{before:d,after:">",...u.current()})),d+=u.move(">")):(c=n.enter("destinationRaw"),d+=u.move(n.safe(e.url,{before:d,after:e.title?" ":`
|
|
381
|
-
`,...u.current()}))),c(),e.title&&(c=n.enter(`title${a}`),d+=u.move(" "+i),d+=u.move(n.safe(e.title,{before:d,after:i,...u.current()})),d+=u.move(i),c()),l(),d}function ase(e){const t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}function nh(e){return"&#x"+e.toString(16).toUpperCase()+";"}function Rp(e,t,n){const r=qu(e),i=qu(t);return r===void 0?i===void 0?n==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:r===1?i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}k4.peek=ose;function k4(e,t,n,r){const i=ase(n),a=n.enter("emphasis"),l=n.createTracker(r),c=l.move(i);let u=l.move(n.containerPhrasing(e,{after:i,before:c,...l.current()}));const d=u.charCodeAt(0),m=Rp(r.before.charCodeAt(r.before.length-1),d,i);m.inside&&(u=nh(d)+u.slice(1));const g=u.charCodeAt(u.length-1),v=Rp(r.after.charCodeAt(0),g,i);v.inside&&(u=u.slice(0,-1)+nh(g));const y=l.move(i);return a(),n.attentionEncodeSurroundingInfo={after:v.outside,before:m.outside},c+u+y}function ose(e,t,n){return n.options.emphasis||"*"}function lse(e,t){let n=!1;return fw(e,function(r){if("value"in r&&/\r?\n|\r/.test(r.value)||r.type==="break")return n=!0,fC}),!!((!e.depth||e.depth<3)&&aw(e)&&(t.options.setext||n))}function sse(e,t,n,r){const i=Math.max(Math.min(6,e.depth||1),1),a=n.createTracker(r);if(lse(e,n)){const m=n.enter("headingSetext"),g=n.enter("phrasing"),v=n.containerPhrasing(e,{...a.current(),before:`
|
|
382
|
-
`,after:`
|
|
383
|
-
`});return g(),m(),v+`
|
|
384
|
-
`+(i===1?"=":"-").repeat(v.length-(Math.max(v.lastIndexOf("\r"),v.lastIndexOf(`
|
|
385
|
-
`))+1))}const l="#".repeat(i),c=n.enter("headingAtx"),u=n.enter("phrasing");a.move(l+" ");let d=n.containerPhrasing(e,{before:"# ",after:`
|
|
386
|
-
`,...a.current()});return/^[\t ]/.test(d)&&(d=nh(d.charCodeAt(0))+d.slice(1)),d=d?l+" "+d:l,n.options.closeAtx&&(d+=" "+l),u(),c(),d}B4.peek=cse;function B4(e){return e.value||""}function cse(){return"<"}H4.peek=use;function H4(e,t,n,r){const i=mw(n),a=i==='"'?"Quote":"Apostrophe",l=n.enter("image");let c=n.enter("label");const u=n.createTracker(r);let d=u.move("![");return d+=u.move(n.safe(e.alt,{before:d,after:"]",...u.current()})),d+=u.move("]("),c(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(c=n.enter("destinationLiteral"),d+=u.move("<"),d+=u.move(n.safe(e.url,{before:d,after:">",...u.current()})),d+=u.move(">")):(c=n.enter("destinationRaw"),d+=u.move(n.safe(e.url,{before:d,after:e.title?" ":")",...u.current()}))),c(),e.title&&(c=n.enter(`title${a}`),d+=u.move(" "+i),d+=u.move(n.safe(e.title,{before:d,after:i,...u.current()})),d+=u.move(i),c()),d+=u.move(")"),l(),d}function use(){return"!"}F4.peek=dse;function F4(e,t,n,r){const i=e.referenceType,a=n.enter("imageReference");let l=n.enter("label");const c=n.createTracker(r);let u=c.move("![");const d=n.safe(e.alt,{before:u,after:"]",...c.current()});u+=c.move(d+"]["),l();const m=n.stack;n.stack=[],l=n.enter("reference");const g=n.safe(n.associationId(e),{before:u,after:"]",...c.current()});return l(),n.stack=m,a(),i==="full"||!d||d!==g?u+=c.move(g+"]"):i==="shortcut"?u=u.slice(0,-1):u+=c.move("]"),u}function dse(){return"!"}V4.peek=fse;function V4(e,t,n){let r=e.value||"",i="`",a=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++a<n.unsafe.length;){const l=n.unsafe[a],c=n.compilePattern(l);let u;if(l.atBreak)for(;u=c.exec(r);){let d=u.index;r.charCodeAt(d)===10&&r.charCodeAt(d-1)===13&&d--,r=r.slice(0,d)+" "+r.slice(u.index+1)}}return i+r+i}function fse(){return"`"}function U4(e,t){const n=aw(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}q4.peek=hse;function q4(e,t,n,r){const i=mw(n),a=i==='"'?"Quote":"Apostrophe",l=n.createTracker(r);let c,u;if(U4(e,n)){const m=n.stack;n.stack=[],c=n.enter("autolink");let g=l.move("<");return g+=l.move(n.containerPhrasing(e,{before:g,after:">",...l.current()})),g+=l.move(">"),c(),n.stack=m,g}c=n.enter("link"),u=n.enter("label");let d=l.move("[");return d+=l.move(n.containerPhrasing(e,{before:d,after:"](",...l.current()})),d+=l.move("]("),u(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(u=n.enter("destinationLiteral"),d+=l.move("<"),d+=l.move(n.safe(e.url,{before:d,after:">",...l.current()})),d+=l.move(">")):(u=n.enter("destinationRaw"),d+=l.move(n.safe(e.url,{before:d,after:e.title?" ":")",...l.current()}))),u(),e.title&&(u=n.enter(`title${a}`),d+=l.move(" "+i),d+=l.move(n.safe(e.title,{before:d,after:i,...l.current()})),d+=l.move(i),u()),d+=l.move(")"),c(),d}function hse(e,t,n){return U4(e,n)?"<":"["}K4.peek=mse;function K4(e,t,n,r){const i=e.referenceType,a=n.enter("linkReference");let l=n.enter("label");const c=n.createTracker(r);let u=c.move("[");const d=n.containerPhrasing(e,{before:u,after:"]",...c.current()});u+=c.move(d+"]["),l();const m=n.stack;n.stack=[],l=n.enter("reference");const g=n.safe(n.associationId(e),{before:u,after:"]",...c.current()});return l(),n.stack=m,a(),i==="full"||!d||d!==g?u+=c.move(g+"]"):i==="shortcut"?u=u.slice(0,-1):u+=c.move("]"),u}function mse(){return"["}function gw(e){const t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function gse(e){const t=gw(e),n=e.options.bulletOther;if(!n)return t==="*"?"-":"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}function pse(e){const t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function W4(e){const t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function vse(e,t,n,r){const i=n.enter("list"),a=n.bulletCurrent;let l=e.ordered?pse(n):gw(n);const c=e.ordered?l==="."?")":".":gse(n);let u=t&&n.bulletLastUsed?l===n.bulletLastUsed:!1;if(!e.ordered){const m=e.children?e.children[0]:void 0;if((l==="*"||l==="-")&&m&&(!m.children||!m.children[0])&&n.stack[n.stack.length-1]==="list"&&n.stack[n.stack.length-2]==="listItem"&&n.stack[n.stack.length-3]==="list"&&n.stack[n.stack.length-4]==="listItem"&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(u=!0),W4(n)===l&&m){let g=-1;for(;++g<e.children.length;){const v=e.children[g];if(v&&v.type==="listItem"&&v.children&&v.children[0]&&v.children[0].type==="thematicBreak"){u=!0;break}}}}u&&(l=c),n.bulletCurrent=l;const d=n.containerFlow(e,r);return n.bulletLastUsed=l,n.bulletCurrent=a,i(),d}function yse(e){const t=e.options.listItemIndent||"one";if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function bse(e,t,n,r){const i=yse(n);let a=n.bulletCurrent||gw(n);t&&t.type==="list"&&t.ordered&&(a=(typeof t.start=="number"&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+a);let l=a.length+1;(i==="tab"||i==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(l=Math.ceil(l/4)*4);const c=n.createTracker(r);c.move(a+" ".repeat(l-a.length)),c.shift(l);const u=n.enter("listItem"),d=n.indentLines(n.containerFlow(e,c.current()),m);return u(),d;function m(g,v,y){return v?(y?"":" ".repeat(l))+g:(y?a:a+" ".repeat(l-a.length))+g}}function Sse(e,t,n,r){const i=n.enter("paragraph"),a=n.enter("phrasing"),l=n.containerPhrasing(e,r);return a(),i(),l}const xse=Cv(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function Cse(e,t,n,r){return(e.children.some(function(l){return xse(l)})?n.containerPhrasing:n.containerFlow).call(n,e,r)}function wse(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}G4.peek=Ese;function G4(e,t,n,r){const i=wse(n),a=n.enter("strong"),l=n.createTracker(r),c=l.move(i+i);let u=l.move(n.containerPhrasing(e,{after:i,before:c,...l.current()}));const d=u.charCodeAt(0),m=Rp(r.before.charCodeAt(r.before.length-1),d,i);m.inside&&(u=nh(d)+u.slice(1));const g=u.charCodeAt(u.length-1),v=Rp(r.after.charCodeAt(0),g,i);v.inside&&(u=u.slice(0,-1)+nh(g));const y=l.move(i+i);return a(),n.attentionEncodeSurroundingInfo={after:v.outside,before:m.outside},c+u+y}function Ese(e,t,n){return n.options.strong||"*"}function $se(e,t,n,r){return n.safe(e.value,r)}function Ose(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function Rse(e,t,n){const r=(W4(n)+(n.options.ruleSpaces?" ":"")).repeat(Ose(n));return n.options.ruleSpaces?r.slice(0,-1):r}const X4={blockquote:Qle,break:QN,code:nse,definition:ise,emphasis:k4,hardBreak:QN,heading:sse,html:B4,image:H4,imageReference:F4,inlineCode:V4,link:q4,linkReference:K4,list:vse,listItem:bse,paragraph:Sse,root:Cse,strong:G4,text:$se,thematicBreak:Rse};function Tse(){return{enter:{table:_se,tableData:YN,tableHeader:YN,tableRow:Ise},exit:{codeText:Mse,table:Nse,tableData:oS,tableHeader:oS,tableRow:oS}}}function _se(e){const t=e._align;this.enter({type:"table",align:t.map(function(n){return n==="none"?null:n}),children:[]},e),this.data.inTable=!0}function Nse(e){this.exit(e),this.data.inTable=void 0}function Ise(e){this.enter({type:"tableRow",children:[]},e)}function oS(e){this.exit(e)}function YN(e){this.enter({type:"tableCell",children:[]},e)}function Mse(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,Pse));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function Pse(e,t){return t==="|"?t:e}function Ase(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,a=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
|
|
387
|
-
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:v,table:l,tableCell:u,tableRow:c}};function l(y,b,x,S){return d(m(y,x,S),y.align)}function c(y,b,x,S){const w=g(y,x,S),$=d([w]);return $.slice(0,$.indexOf(`
|
|
388
|
-
`))}function u(y,b,x,S){const w=x.enter("tableCell"),$=x.enter("phrasing"),O=x.containerPhrasing(y,{...S,before:a,after:a});return $(),w(),O}function d(y,b){return Gle(y,{align:b,alignDelimiters:r,padding:n,stringLength:i})}function m(y,b,x){const S=y.children;let w=-1;const $=[],O=b.enter("table");for(;++w<S.length;)$[w]=g(S[w],b,x);return O(),$}function g(y,b,x){const S=y.children;let w=-1;const $=[],O=b.enter("tableRow");for(;++w<S.length;)$[w]=u(S[w],y,b,x);return O(),$}function v(y,b,x){let S=X4.inlineCode(y,b,x);return x.stack.includes("tableCell")&&(S=S.replace(/\|/g,"\\$&")),S}}function zse(){return{exit:{taskListCheckValueChecked:ZN,taskListCheckValueUnchecked:ZN,paragraph:Dse}}}function jse(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:Lse}}}function ZN(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function Dse(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const n=this.stack[this.stack.length-1];n.type;const r=n.children[0];if(r&&r.type==="text"){const i=t.children;let a=-1,l;for(;++a<i.length;){const c=i[a];if(c.type==="paragraph"){l=c;break}}l===n&&(r.value=r.value.slice(1),r.value.length===0?n.children.shift():n.position&&r.position&&typeof r.position.start.offset=="number"&&(r.position.start.column++,r.position.start.offset++,n.position.start=Object.assign({},r.position.start)))}}this.exit(e)}function Lse(e,t,n,r){const i=e.children[0],a=typeof e.checked=="boolean"&&i&&i.type==="paragraph",l="["+(e.checked?"x":" ")+"] ",c=n.createTracker(r);a&&c.move(l);let u=X4.listItem(e,t,n,{...r,...c.current()});return a&&(u=u.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,d)),u;function d(m){return m+l}}function kse(){return[vle(),Lle(),Fle(),Tse(),zse()]}function Bse(e){return{extensions:[yle(),kle(e),Vle(),Ase(e),jse()]}}const Hse={tokenize:Wse,partial:!0},Q4={tokenize:Gse,partial:!0},Y4={tokenize:Xse,partial:!0},Z4={tokenize:Qse,partial:!0},Fse={tokenize:Yse,partial:!0},J4={name:"wwwAutolink",tokenize:qse,previous:tD},eD={name:"protocolAutolink",tokenize:Kse,previous:nD},Fo={name:"emailAutolink",tokenize:Use,previous:rD},oo={};function Vse(){return{text:oo}}let vs=48;for(;vs<123;)oo[vs]=Fo,vs++,vs===58?vs=65:vs===91&&(vs=97);oo[43]=Fo;oo[45]=Fo;oo[46]=Fo;oo[95]=Fo;oo[72]=[Fo,eD];oo[104]=[Fo,eD];oo[87]=[Fo,J4];oo[119]=[Fo,J4];function Use(e,t,n){const r=this;let i,a;return l;function l(g){return!pC(g)||!rD.call(r,r.previous)||pw(r.events)?n(g):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),c(g))}function c(g){return pC(g)?(e.consume(g),c):g===64?(e.consume(g),u):n(g)}function u(g){return g===46?e.check(Fse,m,d)(g):g===45||g===95||ii(g)?(a=!0,e.consume(g),u):m(g)}function d(g){return e.consume(g),i=!0,u}function m(g){return a&&i&&fi(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(g)):n(g)}}function qse(e,t,n){const r=this;return i;function i(l){return l!==87&&l!==119||!tD.call(r,r.previous)||pw(r.events)?n(l):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(Hse,e.attempt(Q4,e.attempt(Y4,a),n),n)(l))}function a(l){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(l)}}function Kse(e,t,n){const r=this;let i="",a=!1;return l;function l(g){return(g===72||g===104)&&nD.call(r,r.previous)&&!pw(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(g),e.consume(g),c):n(g)}function c(g){if(fi(g)&&i.length<5)return i+=String.fromCodePoint(g),e.consume(g),c;if(g===58){const v=i.toLowerCase();if(v==="http"||v==="https")return e.consume(g),u}return n(g)}function u(g){return g===47?(e.consume(g),a?d:(a=!0,u)):n(g)}function d(g){return g===null||Ep(g)||er(g)||Js(g)||bv(g)?n(g):e.attempt(Q4,e.attempt(Y4,m),n)(g)}function m(g){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(g)}}function Wse(e,t,n){let r=0;return i;function i(l){return(l===87||l===119)&&r<3?(r++,e.consume(l),i):l===46&&r===3?(e.consume(l),a):n(l)}function a(l){return l===null?n(l):t(l)}}function Gse(e,t,n){let r,i,a;return l;function l(d){return d===46||d===95?e.check(Z4,u,c)(d):d===null||er(d)||Js(d)||d!==45&&bv(d)?u(d):(a=!0,e.consume(d),l)}function c(d){return d===95?r=!0:(i=r,r=void 0),e.consume(d),l}function u(d){return i||r||!a?n(d):t(d)}}function Xse(e,t){let n=0,r=0;return i;function i(l){return l===40?(n++,e.consume(l),i):l===41&&r<n?a(l):l===33||l===34||l===38||l===39||l===41||l===42||l===44||l===46||l===58||l===59||l===60||l===63||l===93||l===95||l===126?e.check(Z4,t,a)(l):l===null||er(l)||Js(l)?t(l):(e.consume(l),i)}function a(l){return l===41&&r++,e.consume(l),i}}function Qse(e,t,n){return r;function r(c){return c===33||c===34||c===39||c===41||c===42||c===44||c===46||c===58||c===59||c===63||c===95||c===126?(e.consume(c),r):c===38?(e.consume(c),a):c===93?(e.consume(c),i):c===60||c===null||er(c)||Js(c)?t(c):n(c)}function i(c){return c===null||c===40||c===91||er(c)||Js(c)?t(c):r(c)}function a(c){return fi(c)?l(c):n(c)}function l(c){return c===59?(e.consume(c),r):fi(c)?(e.consume(c),l):n(c)}}function Yse(e,t,n){return r;function r(a){return e.consume(a),i}function i(a){return ii(a)?n(a):t(a)}}function tD(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||er(e)}function nD(e){return!fi(e)}function rD(e){return!(e===47||pC(e))}function pC(e){return e===43||e===45||e===46||e===95||ii(e)}function pw(e){let t=e.length,n=!1;for(;t--;){const r=e[t][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const Zse={tokenize:oce,partial:!0};function Jse(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:rce,continuation:{tokenize:ice},exit:ace}},text:{91:{name:"gfmFootnoteCall",tokenize:nce},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:ece,resolveTo:tce}}}}function ece(e,t,n){const r=this;let i=r.events.length;const a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let l;for(;i--;){const u=r.events[i][1];if(u.type==="labelImage"){l=u;break}if(u.type==="gfmFootnoteCall"||u.type==="labelLink"||u.type==="label"||u.type==="image"||u.type==="link")break}return c;function c(u){if(!l||!l._balanced)return n(u);const d=ja(r.sliceSerialize({start:l.end,end:r.now()}));return d.codePointAt(0)!==94||!a.includes(d.slice(1))?n(u):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(u),e.exit("gfmFootnoteCallLabelMarker"),t(u))}}function tce(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;const a={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},l={type:"chunkString",contentType:"string",start:Object.assign({},a.start),end:Object.assign({},a.end)},c=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",i,t],["exit",i,t],["enter",a,t],["enter",l,t],["exit",l,t],["exit",a,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...c),e}function nce(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a=0,l;return c;function c(g){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(g),e.exit("gfmFootnoteCallLabelMarker"),u}function u(g){return g!==94?n(g):(e.enter("gfmFootnoteCallMarker"),e.consume(g),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",d)}function d(g){if(a>999||g===93&&!l||g===null||g===91||er(g))return n(g);if(g===93){e.exit("chunkString");const v=e.exit("gfmFootnoteCallString");return i.includes(ja(r.sliceSerialize(v)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(g),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(g)}return er(g)||(l=!0),a++,e.consume(g),g===92?m:d}function m(g){return g===91||g===92||g===93?(e.consume(g),a++,d):d(g)}}function rce(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a,l=0,c;return u;function u(b){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(b),e.exit("gfmFootnoteDefinitionLabelMarker"),d}function d(b){return b===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(b),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",m):n(b)}function m(b){if(l>999||b===93&&!c||b===null||b===91||er(b))return n(b);if(b===93){e.exit("chunkString");const x=e.exit("gfmFootnoteDefinitionLabelString");return a=ja(r.sliceSerialize(x)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(b),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),v}return er(b)||(c=!0),l++,e.consume(b),b===92?g:m}function g(b){return b===91||b===92||b===93?(e.consume(b),l++,m):m(b)}function v(b){return b===58?(e.enter("definitionMarker"),e.consume(b),e.exit("definitionMarker"),i.includes(a)||i.push(a),En(e,y,"gfmFootnoteDefinitionWhitespace")):n(b)}function y(b){return t(b)}}function ice(e,t,n){return e.check(_h,t,e.attempt(Zse,t,n))}function ace(e){e.exit("gfmFootnoteDefinition")}function oce(e,t,n){const r=this;return En(e,i,"gfmFootnoteDefinitionIndent",5);function i(a){const l=r.events[r.events.length-1];return l&&l[1].type==="gfmFootnoteDefinitionIndent"&&l[2].sliceSerialize(l[1],!0).length===4?t(a):n(a)}}function lce(e){let n=(e||{}).singleTilde;const r={name:"strikethrough",tokenize:a,resolveAll:i};return n==null&&(n=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function i(l,c){let u=-1;for(;++u<l.length;)if(l[u][0]==="enter"&&l[u][1].type==="strikethroughSequenceTemporary"&&l[u][1]._close){let d=u;for(;d--;)if(l[d][0]==="exit"&&l[d][1].type==="strikethroughSequenceTemporary"&&l[d][1]._open&&l[u][1].end.offset-l[u][1].start.offset===l[d][1].end.offset-l[d][1].start.offset){l[u][1].type="strikethroughSequence",l[d][1].type="strikethroughSequence";const m={type:"strikethrough",start:Object.assign({},l[d][1].start),end:Object.assign({},l[u][1].end)},g={type:"strikethroughText",start:Object.assign({},l[d][1].end),end:Object.assign({},l[u][1].start)},v=[["enter",m,c],["enter",l[d][1],c],["exit",l[d][1],c],["enter",g,c]],y=c.parser.constructs.insideSpan.null;y&&Qi(v,v.length,0,Sv(y,l.slice(d+1,u),c)),Qi(v,v.length,0,[["exit",g,c],["enter",l[u][1],c],["exit",l[u][1],c],["exit",m,c]]),Qi(l,d-1,u-d+3,v),u=d+v.length-2;break}}for(u=-1;++u<l.length;)l[u][1].type==="strikethroughSequenceTemporary"&&(l[u][1].type="data");return l}function a(l,c,u){const d=this.previous,m=this.events;let g=0;return v;function v(b){return d===126&&m[m.length-1][1].type!=="characterEscape"?u(b):(l.enter("strikethroughSequenceTemporary"),y(b))}function y(b){const x=qu(d);if(b===126)return g>1?u(b):(l.consume(b),g++,y);if(g<2&&!n)return u(b);const S=l.exit("strikethroughSequenceTemporary"),w=qu(b);return S._open=!w||w===2&&!!x,S._close=!x||x===2&&!!w,c(b)}}}class sce{constructor(){this.map=[]}add(t,n,r){cce(this,t,n,r)}consume(t){if(this.map.sort(function(a,l){return a[0]-l[0]}),this.map.length===0)return;let n=this.map.length;const r=[];for(;n>0;)n-=1,r.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];r.push(t.slice()),t.length=0;let i=r.pop();for(;i;){for(const a of i)t.push(a);i=r.pop()}this.map.length=0}}function cce(e,t,n,r){let i=0;if(!(n===0&&r.length===0)){for(;i<e.map.length;){if(e.map[i][0]===t){e.map[i][1]+=n,e.map[i][2].push(...r);return}i+=1}e.map.push([t,n,r])}}function uce(e,t){let n=!1;const r=[];for(;t<e.length;){const i=e[t];if(n){if(i[0]==="enter")i[1].type==="tableContent"&&r.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(i[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const a=r.length-1;r[a]=r[a]==="left"?"center":"right"}}else if(i[1].type==="tableDelimiterRow")break}else i[0]==="enter"&&i[1].type==="tableDelimiterRow"&&(n=!0);t+=1}return r}function dce(){return{flow:{null:{name:"table",tokenize:fce,resolveAll:hce}}}}function fce(e,t,n){const r=this;let i=0,a=0,l;return c;function c(I){let B=r.events.length-1;for(;B>-1;){const j=r.events[B][1].type;if(j==="lineEnding"||j==="linePrefix")B--;else break}const A=B>-1?r.events[B][1].type:null,k=A==="tableHead"||A==="tableRow"?R:u;return k===R&&r.parser.lazy[r.now().line]?n(I):k(I)}function u(I){return e.enter("tableHead"),e.enter("tableRow"),d(I)}function d(I){return I===124||(l=!0,a+=1),m(I)}function m(I){return I===null?n(I):Lt(I)?a>1?(a=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(I),e.exit("lineEnding"),y):n(I):hn(I)?En(e,m,"whitespace")(I):(a+=1,l&&(l=!1,i+=1),I===124?(e.enter("tableCellDivider"),e.consume(I),e.exit("tableCellDivider"),l=!0,m):(e.enter("data"),g(I)))}function g(I){return I===null||I===124||er(I)?(e.exit("data"),m(I)):(e.consume(I),I===92?v:g)}function v(I){return I===92||I===124?(e.consume(I),g):g(I)}function y(I){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(I):(e.enter("tableDelimiterRow"),l=!1,hn(I)?En(e,b,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(I):b(I))}function b(I){return I===45||I===58?S(I):I===124?(l=!0,e.enter("tableCellDivider"),e.consume(I),e.exit("tableCellDivider"),x):_(I)}function x(I){return hn(I)?En(e,S,"whitespace")(I):S(I)}function S(I){return I===58?(a+=1,l=!0,e.enter("tableDelimiterMarker"),e.consume(I),e.exit("tableDelimiterMarker"),w):I===45?(a+=1,w(I)):I===null||Lt(I)?T(I):_(I)}function w(I){return I===45?(e.enter("tableDelimiterFiller"),$(I)):_(I)}function $(I){return I===45?(e.consume(I),$):I===58?(l=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(I),e.exit("tableDelimiterMarker"),O):(e.exit("tableDelimiterFiller"),O(I))}function O(I){return hn(I)?En(e,T,"whitespace")(I):T(I)}function T(I){return I===124?b(I):I===null||Lt(I)?!l||i!==a?_(I):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(I)):_(I)}function _(I){return n(I)}function R(I){return e.enter("tableRow"),M(I)}function M(I){return I===124?(e.enter("tableCellDivider"),e.consume(I),e.exit("tableCellDivider"),M):I===null||Lt(I)?(e.exit("tableRow"),t(I)):hn(I)?En(e,M,"whitespace")(I):(e.enter("data"),P(I))}function P(I){return I===null||I===124||er(I)?(e.exit("data"),M(I)):(e.consume(I),I===92?N:P)}function N(I){return I===92||I===124?(e.consume(I),P):P(I)}}function hce(e,t){let n=-1,r=!0,i=0,a=[0,0,0,0],l=[0,0,0,0],c=!1,u=0,d,m,g;const v=new sce;for(;++n<e.length;){const y=e[n],b=y[1];y[0]==="enter"?b.type==="tableHead"?(c=!1,u!==0&&(JN(v,t,u,d,m),m=void 0,u=0),d={type:"table",start:Object.assign({},b.start),end:Object.assign({},b.end)},v.add(n,0,[["enter",d,t]])):b.type==="tableRow"||b.type==="tableDelimiterRow"?(r=!0,g=void 0,a=[0,0,0,0],l=[0,n+1,0,0],c&&(c=!1,m={type:"tableBody",start:Object.assign({},b.start),end:Object.assign({},b.end)},v.add(n,0,[["enter",m,t]])),i=b.type==="tableDelimiterRow"?2:m?3:1):i&&(b.type==="data"||b.type==="tableDelimiterMarker"||b.type==="tableDelimiterFiller")?(r=!1,l[2]===0&&(a[1]!==0&&(l[0]=l[1],g=lg(v,t,a,i,void 0,g),a=[0,0,0,0]),l[2]=n)):b.type==="tableCellDivider"&&(r?r=!1:(a[1]!==0&&(l[0]=l[1],g=lg(v,t,a,i,void 0,g)),a=l,l=[a[1],n,0,0])):b.type==="tableHead"?(c=!0,u=n):b.type==="tableRow"||b.type==="tableDelimiterRow"?(u=n,a[1]!==0?(l[0]=l[1],g=lg(v,t,a,i,n,g)):l[1]!==0&&(g=lg(v,t,l,i,n,g)),i=0):i&&(b.type==="data"||b.type==="tableDelimiterMarker"||b.type==="tableDelimiterFiller")&&(l[3]=n)}for(u!==0&&JN(v,t,u,d,m),v.consume(t.events),n=-1;++n<t.events.length;){const y=t.events[n];y[0]==="enter"&&y[1].type==="table"&&(y[1]._align=uce(t.events,n))}return e}function lg(e,t,n,r,i,a){const l=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",c="tableContent";n[0]!==0&&(a.end=Object.assign({},lu(t.events,n[0])),e.add(n[0],0,[["exit",a,t]]));const u=lu(t.events,n[1]);if(a={type:l,start:Object.assign({},u),end:Object.assign({},u)},e.add(n[1],0,[["enter",a,t]]),n[2]!==0){const d=lu(t.events,n[2]),m=lu(t.events,n[3]),g={type:c,start:Object.assign({},d),end:Object.assign({},m)};if(e.add(n[2],0,[["enter",g,t]]),r!==2){const v=t.events[n[2]],y=t.events[n[3]];if(v[1].end=Object.assign({},y[1].end),v[1].type="chunkText",v[1].contentType="text",n[3]>n[2]+1){const b=n[2]+1,x=n[3]-n[2]-1;e.add(b,x,[])}}e.add(n[3]+1,0,[["exit",g,t]])}return i!==void 0&&(a.end=Object.assign({},lu(t.events,i)),e.add(i,0,[["exit",a,t]]),a=void 0),a}function JN(e,t,n,r,i){const a=[],l=lu(t.events,n);i&&(i.end=Object.assign({},l),a.push(["exit",i,t])),r.end=Object.assign({},l),a.push(["exit",r,t]),e.add(n+1,0,a)}function lu(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const mce={name:"tasklistCheck",tokenize:pce};function gce(){return{text:{91:mce}}}function pce(e,t,n){const r=this;return i;function i(u){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(u):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(u),e.exit("taskListCheckMarker"),a)}function a(u){return er(u)?(e.enter("taskListCheckValueUnchecked"),e.consume(u),e.exit("taskListCheckValueUnchecked"),l):u===88||u===120?(e.enter("taskListCheckValueChecked"),e.consume(u),e.exit("taskListCheckValueChecked"),l):n(u)}function l(u){return u===93?(e.enter("taskListCheckMarker"),e.consume(u),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),c):n(u)}function c(u){return Lt(u)?t(u):hn(u)?e.check({tokenize:vce},t,n)(u):n(u)}}function vce(e,t,n){return En(e,r,"whitespace");function r(i){return i===null?n(i):t(i)}}function yce(e){return m4([Vse(),Jse(),lce(e),dce(),gce()])}const bce={};function Sce(e){const t=this,n=e||bce,r=t.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),a=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),l=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push(yce(n)),a.push(kse()),l.push(Bse(n))}const xce="modulepreload",Cce=function(e){return"/"+e},eI={},wce=function(t,n,r){let i=Promise.resolve();if(n&&n.length>0){let l=function(d){return Promise.all(d.map(m=>Promise.resolve(m).then(g=>({status:"fulfilled",value:g}),g=>({status:"rejected",reason:g}))))};document.getElementsByTagName("link");const c=document.querySelector("meta[property=csp-nonce]"),u=(c==null?void 0:c.nonce)||(c==null?void 0:c.getAttribute("nonce"));i=l(n.map(d=>{if(d=Cce(d),d in eI)return;eI[d]=!0;const m=d.endsWith(".css"),g=m?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${d}"]${g}`))return;const v=document.createElement("link");if(v.rel=m?"stylesheet":xce,m||(v.as="script"),v.crossOrigin="",v.href=d,u&&v.setAttribute("nonce",u),document.head.appendChild(v),m)return new Promise((y,b)=>{v.addEventListener("load",y),v.addEventListener("error",()=>b(new Error(`Unable to preload CSS for ${d}`)))})}))}function a(l){const c=new Event("vite:preloadError",{cancelable:!0});if(c.payload=l,window.dispatchEvent(c),!c.defaultPrevented)throw l}return i.then(l=>{for(const c of l||[])c.status==="rejected"&&a(c.reason);return t().catch(a)})};let Ece=0;const lS=new Map;function $ce({chart:e}){const{token:t}=fu.useToken(),[n,r]=h.useState(()=>lS.get(e)??""),i=h.useRef(`mmd-${Ece++}`);return h.useEffect(()=>{const a=lS.get(e);if(a){r(a);return}let l=!1;return(async()=>{try{const c=(await wce(async()=>{const{default:d}=await import("./mermaid.core-kWx7wKuF.js").then(m=>m.bm);return{default:d}},[])).default;c.initialize({startOnLoad:!1,securityLevel:"strict"});const{svg:u}=await c.render(i.current,e);l||(lS.set(e,u),r(u))}catch{}})(),()=>{l=!0}},[e]),n?se.jsx("div",{style:{margin:"4px 0"},dangerouslySetInnerHTML:{__html:n}}):se.jsx("pre",{style:{background:t.colorFillQuaternary,border:`1px solid ${t.colorBorderSecondary}`,borderRadius:6,padding:8,overflowX:"auto",margin:"4px 0",fontSize:12},children:e})}const tI="optio-cc-md-style";function Oce(){if(typeof document>"u"||document.getElementById(tI))return;const e=document.createElement("style");e.id=tI,e.textContent=`.optio-cc-md {
|
|
389
|
-
/* The assistant bubble uses white-space: pre-wrap for plain text; markdown
|
|
390
|
-
renders block elements with their own spacing, so preserving the source's
|
|
391
|
-
blank lines around blocks (e.g. the \\n\\n around a list) would inject
|
|
392
|
-
literal empty lines before/after it. Reset to normal for markdown. */
|
|
393
|
-
white-space: normal;
|
|
394
|
-
}
|
|
395
|
-
.optio-cc-md .optio-cc-p { margin: 0 0 8px 0; }
|
|
396
|
-
.optio-cc-md > .optio-cc-p:last-child { margin-bottom: 0; }
|
|
397
|
-
.optio-cc-md li .optio-cc-p { margin: 0; }
|
|
398
|
-
.optio-cc-md ul, .optio-cc-md ol { margin: 4px 0; padding-left: 20px; }
|
|
399
|
-
.optio-cc-md li { margin: 0; }`,document.head.appendChild(e)}const Rce={p:({children:e})=>se.jsx(Xi.Paragraph,{className:"optio-cc-p",children:e}),code:({className:e,children:t})=>{var r;return((r=/language-(\w+)/.exec(e??""))==null?void 0:r[1])==="mermaid"?se.jsx($ce,{chart:String(t).replace(/\n$/,"")}):se.jsx(Xi.Text,{code:!0,children:t})},strong:({children:e})=>se.jsx(Xi.Text,{strong:!0,children:e}),a:({href:e,children:t})=>se.jsx(Xi.Link,{href:e,target:"_blank",rel:"noreferrer",children:t}),table:({children:e})=>se.jsx("table",{style:{borderCollapse:"collapse",margin:"4px 0",width:"100%"},children:e}),th:({children:e,style:t})=>{const{token:n}=fu.useToken();return se.jsx("th",{style:{border:`1px solid ${n.colorBorderSecondary}`,padding:"4px 8px",background:n.colorFillQuaternary,textAlign:"left",...t},children:e})},td:({children:e,style:t})=>{const{token:n}=fu.useToken();return se.jsx("td",{style:{border:`1px solid ${n.colorBorderSecondary}`,padding:"4px 8px",...t},children:e})},blockquote:({children:e})=>{const{token:t}=fu.useToken();return se.jsx("blockquote",{style:{borderLeft:`3px solid ${t.colorBorderSecondary}`,paddingLeft:10,margin:"4px 0",color:t.colorTextSecondary},children:e})},hr:()=>{const{token:e}=fu.useToken();return se.jsx("hr",{style:{border:"none",borderTop:`1px solid ${e.colorBorderSecondary}`,margin:"8px 0"}})},ul:({children:e})=>se.jsx("ul",{style:{margin:"4px 0",paddingLeft:20},children:e}),ol:({children:e})=>se.jsx("ol",{style:{margin:"4px 0",paddingLeft:20},children:e})},Tce=[Sce],_ce=h.memo(function({children:t}){return Oce(),se.jsx("div",{className:"optio-cc-md",children:se.jsx(lle,{remarkPlugins:Tce,components:Rce,children:t})})});function Nce(e,t){return Xne(e,t.ev,t.seq)}const sS={maxWidth:"80%",padding:"6px 10px",borderRadius:8,whiteSpace:"pre-wrap",overflowWrap:"anywhere"},nI="optio-cc-flash-style";function Ice(){if(typeof document>"u"||document.getElementById(nI))return;const e=document.createElement("style");e.id=nI,e.textContent=`@keyframes optio-cc-flash {
|
|
400
|
-
0% { box-shadow: 0 0 0 0 rgba(24,144,255,0.0); }
|
|
401
|
-
50% { box-shadow: 0 0 0 6px rgba(24,144,255,0.6); }
|
|
402
|
-
100% { box-shadow: 0 0 0 0 rgba(24,144,255,0.0); }
|
|
403
|
-
}
|
|
404
|
-
.optio-cc-flash { animation: optio-cc-flash 0.5s ease-in-out 0s 4; }`,document.head.appendChild(e)}function Mce(e){return{border:`1px solid ${e.colorWarningBorder}`,padding:"2px 6px",verticalAlign:"top",fontFamily:"monospace",fontSize:12}}function rI(e,t){const n=Mce(t);if(e&&typeof e=="object"&&!Array.isArray(e)){const r=Object.entries(e);return r.length===0?null:se.jsx("table",{style:{borderCollapse:"collapse",width:"auto",maxWidth:"100%"},children:se.jsx("tbody",{children:r.map(([i,a])=>se.jsxs("tr",{children:[se.jsx("td",{style:{...n,fontWeight:600,whiteSpace:"nowrap",color:t.colorWarningText},children:i}),se.jsx("td",{style:{...n,whiteSpace:"pre-wrap",overflowWrap:"anywhere",color:t.colorTextSecondary},children:typeof a=="string"?a:JSON.stringify(a)})]},i))})})}return se.jsx("div",{style:{fontFamily:"monospace",fontSize:12,color:t.colorTextSecondary,overflowWrap:"anywhere"},children:JSON.stringify(e)})}const Pce=["description","command","file_path","path","pattern","query","url","prompt","title"];function Ace(e){if(e&&typeof e=="object"&&!Array.isArray(e)){const t=e;for(const n of Pce){const r=t[n];if(typeof r=="string"&&r.trim()){const i=r.trim();return i.length>120?i.slice(0,117)+"…":i}}}return""}function zce(e){var B;const{token:t}=fu.useToken(),n=((B=e.process.widgetData)==null?void 0:B.toolVerbosity)??"description-only",[r,i]=h.useReducer(Nce,Une),a=h.useRef(0),[l,c]=h.useState(""),[u,d]=h.useState(!1),[m,g]=h.useState(null),v=h.useRef(null),y=h.useRef(null),b=h.useRef(null),x=h.useRef(!0),S=h.useRef(!1),w=h.useRef(0),{widgetProxyUrl:$}=e;h.useEffect(()=>{console.info("[optio-claudecode-ui] conversation widget activated:",`${$}events`);const A=new EventSource(`${$}events`);return A.onmessage=k=>{let j;try{j=JSON.parse(k.data)}catch{return}i({ev:j,seq:Number(k.lastEventId)})},()=>A.close()},[$]),h.useEffect(()=>{var k;Ice(),(k=v.current)==null||k.focus();const A=[100,400,1e3].map(j=>setTimeout(()=>{var V;return(V=v.current)==null?void 0:V.focus()},j));return()=>A.forEach(clearTimeout)},[]);const O=r.busy;h.useEffect(()=>{const A=v.current;A&&(A.style.height="auto",A.style.height=`${A.scrollHeight}px`)},[l]);function T(){const A=y.current;A&&(S.current=!0,A.scrollTop=A.scrollHeight,requestAnimationFrame(()=>{S.current=!1}))}function _(){if(S.current)return;const A=y.current;A&&(x.current=A.scrollHeight-A.scrollTop-A.clientHeight<40)}h.useEffect(()=>{const A=b.current;if(!A)return;const k=new ResizeObserver(j=>{var z;const V=((z=j[0])==null?void 0:z.contentRect.height)??0;if(V<=w.current){w.current=V;return}w.current=V,x.current&&T()});return k.observe(A),()=>k.disconnect()},[]);async function R(A,k){try{return(await fetch(`${$}${A}`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(k)})).ok}catch{return!1}}async function M(){var j;const A=l;if(!A||u||r.closed)return;d(!0),g(null),await R("send",{text:A})?(a.current-=1,i({ev:{type:"x-optio-local-user",text:A},seq:a.current}),c("")):g("Send failed — retry."),d(!1),(j=v.current)==null||j.focus()}function P(A){A.key==="Enter"&&!A.shiftKey?(A.preventDefault(),M()):A.key==="Escape"&&O&&!r.closed&&(A.preventDefault(),R("interrupt",{}))}function N(A,k){R("permission",k==="deny"?{request_id:A,behavior:k,message:"Denied by the operator."}:{request_id:A,behavior:k})}function I(A){switch(A.kind){case"user":return se.jsx("div",{style:{...sS,alignSelf:"flex-end",background:t.colorPrimaryBg},children:A.text},A.seq);case"assistant":return se.jsxs("div",{style:{...sS,alignSelf:"flex-start",background:t.colorBgContainer,border:`1px solid ${t.colorBorderSecondary}`},children:[se.jsx(_ce,{children:A.text}),A.pending&&se.jsx("span",{style:{color:t.colorTextTertiary},children:"▍"})]},A.seq);case"activity":return se.jsx("div",{style:{...sS,alignSelf:"center",background:t.purple1,border:`1px solid ${t.purple3}`,color:t.colorTextSecondary,fontSize:12},children:A.text},A.seq);case"tool":{if(n==="silent")return null;const k=n==="description-only"?Ace(A.input):"";return se.jsxs("div",{"data-testid":"tool-call",style:{color:t.colorTextTertiary,fontSize:12},children:[se.jsxs("div",{style:{fontFamily:"monospace"},children:["running ",se.jsx("strong",{children:A.name}),k?`: ${k}`:":"]}),n==="verbose"?rI(A.input,t):null]},A.seq)}case"permission":return A.answered!==null?null:se.jsxs("div",{"data-testid":"permission-card",style:{alignSelf:"stretch",border:`1px solid ${t.colorWarning}`,background:t.colorWarningBg,borderRadius:8,padding:8,display:"flex",flexDirection:"column",gap:6},children:[se.jsxs("div",{children:["Permission requested: ",se.jsx("strong",{children:A.toolName})]}),rI(A.input,t),se.jsxs("div",{style:{display:"flex",gap:8},children:[se.jsx(Er,{size:"small",type:"primary","data-testid":"permission-approve",onClick:()=>N(A.requestId,"allow"),children:"Approve"}),se.jsx(Er,{size:"small",danger:!0,"data-testid":"permission-deny",onClick:()=>N(A.requestId,"deny"),children:"Deny"})]})]},A.seq);case"closed":return se.jsxs("div",{style:{alignSelf:"stretch",display:"flex",alignItems:"center",gap:8,color:t.colorTextTertiary},children:[se.jsx("div",{style:{flex:1,borderTop:`1px solid ${t.colorBorderSecondary}`}}),se.jsxs("span",{children:["conversation ended",A.reason?` (${A.reason})`:""]}),se.jsx("div",{style:{flex:1,borderTop:`1px solid ${t.colorBorderSecondary}`}})]},A.seq)}}return se.jsxs("div",{style:{display:"flex",flexDirection:"column",width:"100%",height:"100%"},children:[se.jsxs("div",{ref:y,onScroll:_,style:{flex:1,minHeight:0,overflowY:"auto",padding:8},children:[se.jsx("div",{ref:b,"data-testid":"conversation-content",style:{display:"flex",flexDirection:"column",gap:8},children:r.items.map(I)}),O&&!r.closed&&se.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8,color:t.colorTextTertiary},children:[se.jsx(_1,{size:"small"})," working…"]})]}),se.jsxs("div",{style:{borderTop:`1px solid ${t.colorBorderSecondary}`,padding:8,display:"flex",gap:8,alignItems:"flex-end"},children:[se.jsx("textarea",{ref:v,className:"optio-cc-flash","data-testid":"conversation-input-box",value:l,onChange:A=>c(A.target.value),onKeyDown:P,placeholder:"Message agent… (Enter to send, Shift+Enter for newline)",rows:2,disabled:r.closed,style:{flex:1,resize:"none",fontFamily:"inherit",maxHeight:200,overflowY:"auto",borderRadius:6,padding:"6px 8px",background:t.colorBgContainer,color:t.colorText,border:`1px solid ${t.colorBorder}`}}),se.jsx(Er,{"data-testid":"conversation-send",type:"primary",onClick:()=>void M(),disabled:u||!l||r.closed,children:"Send"}),se.jsx(Er,{size:"small",danger:!0,"data-testid":"conversation-interrupt",disabled:!O||r.closed,onClick:()=>void R("interrupt",{}),children:"Interrupt"}),m&&se.jsx("span",{"data-testid":"conversation-error",style:{color:t.colorError,alignSelf:"center"},children:m})]})]})}function jce(){Z1("claudecode-conversation",zce),console.info("[optio-claudecode-ui] conversation widget registered")}var Dce={};const Tg=Object.create(null),lf=e=>{var t;return Dce||((t=globalThis.Deno)==null?void 0:t.env.toObject())||globalThis.__env__||(e?Tg:globalThis)},ys=new Proxy(Tg,{get(e,t){return lf()[t]??Tg[t]},has(e,t){return t in lf()||t in Tg},set(e,t,n){const r=lf(!0);return r[t]=n,!0},deleteProperty(e,t){if(!t)return!1;const n=lf(!0);return delete n[t],!0},ownKeys(){const e=lf(!0);return Object.keys(e)}});var _g=class extends Error{constructor(e,t){super(e,t),this.name="BetterAuthError",this.message=e,this.stack=""}};function Lce(e){try{return(new URL(e).pathname.replace(/\/+$/,"")||"/")!=="/"}catch{throw new _g(`Invalid base URL: ${e}. Please provide a valid base URL.`)}}function kce(e){try{const t=new URL(e);if(t.protocol!=="http:"&&t.protocol!=="https:")throw new _g(`Invalid base URL: ${e}. URL must include 'http://' or 'https://'`)}catch(t){throw t instanceof _g?t:new _g(`Invalid base URL: ${e}. Please provide a valid base URL.`,{cause:t})}}function cS(e,t="/api/auth"){if(kce(e),Lce(e))return e;const n=e.replace(/\/+$/,"");return!t||t==="/"?n:(t=t.startsWith("/")?t:`/${t}`,`${n}${t}`)}function Bce(e,t,n,r,i){if(e)return cS(e,t);{const a=ys.BETTER_AUTH_URL||ys.NEXT_PUBLIC_BETTER_AUTH_URL||ys.PUBLIC_BETTER_AUTH_URL||ys.NUXT_PUBLIC_BETTER_AUTH_URL||ys.NUXT_PUBLIC_AUTH_URL||(ys.BASE_URL!=="/"?ys.BASE_URL:void 0);if(a)return cS(a,t)}if(typeof window<"u"&&window.location)return cS(window.location.origin,t)}const Hce={proto:/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,constructor:/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,protoShort:/"__proto__"\s*:/,constructorShort:/"constructor"\s*:/},Fce=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/,iI={true:!0,false:!1,null:null,undefined:void 0,nan:NaN,infinity:Number.POSITIVE_INFINITY,"-infinity":Number.NEGATIVE_INFINITY},Vce=/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})(?:\.(\d{1,7}))?(?:Z|([+-])(\d{2}):(\d{2}))$/;function Uce(e){return e instanceof Date&&!isNaN(e.getTime())}function qce(e){const t=Vce.exec(e);if(!t)return null;const[,n,r,i,a,l,c,u,d,m,g]=t,v=new Date(Date.UTC(parseInt(n,10),parseInt(r,10)-1,parseInt(i,10),parseInt(a,10),parseInt(l,10),parseInt(c,10),u?parseInt(u.padEnd(3,"0"),10):0));if(d){const y=(parseInt(m,10)*60+parseInt(g,10))*(d==="+"?-1:1);v.setUTCMinutes(v.getUTCMinutes()+y)}return Uce(v)?v:null}function Kce(e,t={}){const{strict:n=!1,warnings:r=!1,reviver:i,parseDates:a=!0}=t;if(typeof e!="string")return e;const l=e.trim();if(l.length>0&&l[0]==='"'&&l.endsWith('"')&&!l.slice(1,-1).includes('"'))return l.slice(1,-1);const c=l.toLowerCase();if(c.length<=9&&c in iI)return iI[c];if(!Fce.test(l)){if(n)throw new SyntaxError("[better-json] Invalid JSON");return e}if(Object.entries(Hce).some(([u,d])=>{const m=d.test(l);return m&&r&&console.warn(`[better-json] Detected potential prototype pollution attempt using ${u} pattern`),m})&&n)throw new Error("[better-json] Potential prototype pollution attempt detected");try{return JSON.parse(l,(d,m)=>{if(d==="__proto__"||d==="constructor"&&m&&typeof m=="object"&&"prototype"in m){r&&console.warn(`[better-json] Dropping "${d}" key to prevent prototype pollution`);return}if(a&&typeof m=="string"){const g=qce(m);if(g)return g}return i?i(d,m):m})}catch(u){if(n)throw u;return e}}function Wce(e,t={strict:!0}){return Kce(e,t)}const Gce={id:"redirect",name:"Redirect",hooks:{onSuccess(e){var t,n;if((t=e.data)!=null&&t.url&&((n=e.data)!=null&&n.redirect)&&typeof window<"u"&&window.location&&window.location)try{window.location.href=e.data.url}catch{}}}};let Ra=[],pl=0;const sg=4,iD=e=>{let t=[],n={get(){return n.lc||n.listen(()=>{})(),n.value},init:e,lc:0,listen(r){return n.lc=t.push(r),()=>{for(let a=pl+sg;a<Ra.length;)Ra[a]===r?Ra.splice(a,sg):a+=sg;let i=t.indexOf(r);~i&&(t.splice(i,1),--n.lc||n.off())}},notify(r,i){let a=!Ra.length;for(let l of t)Ra.push(l,n.value,r,i);if(a){for(pl=0;pl<Ra.length;pl+=sg)Ra[pl](Ra[pl+1],Ra[pl+2],Ra[pl+3]);Ra.length=0}},off(){},set(r){let i=n.value;i!==r&&(n.value=r,n.notify(i))},subscribe(r){let i=n.listen(r);return r(n.value),i},value:e};return n},Xce=5,cg=6,ug=10;let Qce=(e,t,n,r)=>(e.events=e.events||{},e.events[n+ug]||(e.events[n+ug]=r(i=>{e.events[n].reduceRight((a,l)=>(l(a),a),{shared:{},...i})})),e.events[n]=e.events[n]||[],e.events[n].push(t),()=>{let i=e.events[n],a=i.indexOf(t);i.splice(a,1),i.length||(delete e.events[n],e.events[n+ug](),delete e.events[n+ug])}),Yce=1e3,aD=(e,t)=>Qce(e,r=>{let i=t(r);i&&e.events[cg].push(i)},Xce,r=>{let i=e.listen;e.listen=(...l)=>(!e.lc&&!e.active&&(e.active=!0,r()),i(...l));let a=e.off;return e.events[cg]=[],e.off=()=>{a(),setTimeout(()=>{if(e.active&&!e.lc){e.active=!1;for(let l of e.events[cg])l();e.events[cg]=[]}},Yce)},()=>{e.listen=i,e.off=a}});function Zce(e,t,n){let r=new Set(t).add(void 0);return e.listen((i,a,l)=>{r.has(l)&&n(i,a,l)})}const Jce=()=>typeof window>"u",eue=(e,t,n,r)=>{const i=iD({data:null,error:null,isPending:!0,isRefetching:!1,refetch:c=>a(c)}),a=async c=>new Promise(u=>{const d=typeof r=="function"?r({data:i.get().data,error:i.get().error,isPending:i.get().isPending}):r;n(t,{...d,query:{...d==null?void 0:d.query,...c==null?void 0:c.query},async onSuccess(m){var g;i.set({data:m.data,error:null,isPending:!1,isRefetching:!1,refetch:i.value.refetch}),await((g=d==null?void 0:d.onSuccess)==null?void 0:g.call(d,m))},async onError(m){var x,S;const{request:g}=m,v=typeof g.retry=="number"?g.retry:(x=g.retry)==null?void 0:x.attempts,y=g.retryAttempt||0;if(v&&y<v)return;const b=m.error.status===401;i.set({error:m.error,data:b?null:i.get().data,isPending:!1,isRefetching:!1,refetch:i.value.refetch}),await((S=d==null?void 0:d.onError)==null?void 0:S.call(d,m))},async onRequest(m){var v;const g=i.get();i.set({isPending:g.data===null,data:g.data,error:null,isRefetching:!0,refetch:i.value.refetch}),await((v=d==null?void 0:d.onRequest)==null?void 0:v.call(d,m))}}).catch(m=>{i.set({error:m,data:i.get().data,isPending:!1,isRefetching:!1,refetch:i.value.refetch})}).finally(()=>{u(void 0)})});e=Array.isArray(e)?e:[e];let l=!1;for(const c of e)c.subscribe(async()=>{Jce()||(l?await a():aD(i,()=>{const u=setTimeout(async()=>{l||(l=!0,await a())},0);return()=>{i.off(),c.off(),clearTimeout(u)}}))});return i},uS=Symbol.for("better-auth:broadcast-channel"),tue=()=>Math.floor(Date.now()/1e3);var nue=class{constructor(e="better-auth.message"){Hc(this,"listeners",new Set);Hc(this,"name");this.name=e}subscribe(e){return this.listeners.add(e),()=>{this.listeners.delete(e)}}post(e){if(!(typeof window>"u"))try{localStorage.setItem(this.name,JSON.stringify({...e,timestamp:tue()}))}catch{}}setup(){if(typeof window>"u"||typeof window.addEventListener>"u")return()=>{};const e=t=>{if(t.key!==this.name)return;const n=JSON.parse(t.newValue??"{}");(n==null?void 0:n.event)!=="session"||!(n!=null&&n.data)||this.listeners.forEach(r=>r(n))};return window.addEventListener("storage",e),()=>{window.removeEventListener("storage",e)}}};function dS(e="better-auth.message"){return globalThis[uS]||(globalThis[uS]=new nue(e)),globalThis[uS]}const fS=Symbol.for("better-auth:focus-manager");var rue=class{constructor(){Hc(this,"listeners",new Set)}subscribe(e){return this.listeners.add(e),()=>{this.listeners.delete(e)}}setFocused(e){this.listeners.forEach(t=>t(e))}setup(){if(typeof window>"u"||typeof document>"u"||typeof window.addEventListener>"u")return()=>{};const e=()=>{document.visibilityState==="visible"&&this.setFocused(!0)};return document.addEventListener("visibilitychange",e,!1),()=>{document.removeEventListener("visibilitychange",e,!1)}}};function aI(){return globalThis[fS]||(globalThis[fS]=new rue),globalThis[fS]}const hS=Symbol.for("better-auth:online-manager");var iue=class{constructor(){Hc(this,"listeners",new Set);Hc(this,"isOnline",typeof navigator<"u"?navigator.onLine:!0)}subscribe(e){return this.listeners.add(e),()=>{this.listeners.delete(e)}}setOnline(e){this.isOnline=e,this.listeners.forEach(t=>t(e))}setup(){if(typeof window>"u"||typeof window.addEventListener>"u")return()=>{};const e=()=>this.setOnline(!0),t=()=>this.setOnline(!1);return window.addEventListener("online",e,!1),window.addEventListener("offline",t,!1),()=>{window.removeEventListener("online",e,!1),window.removeEventListener("offline",t,!1)}}};function mS(){return globalThis[hS]||(globalThis[hS]=new iue),globalThis[hS]}const ru=()=>Math.floor(Date.now()/1e3);function oI(e){return typeof e=="object"&&e!==null&&"data"in e&&"error"in e?e:{data:e,error:null}}const aue=5;function oue(e){var $,O,T;const{sessionAtom:t,sessionSignal:n,$fetch:r,options:i={}}=e,a=(($=i.sessionOptions)==null?void 0:$.refetchInterval)??0,l=((O=i.sessionOptions)==null?void 0:O.refetchOnWindowFocus)??!0,c=((T=i.sessionOptions)==null?void 0:T.refetchWhenOffline)??!1,u={lastSync:0,lastSessionRequest:0,cachedSession:void 0},d=()=>c||mS().isOnline,m=_=>{if(!d())return;if((_==null?void 0:_.event)==="storage"){u.lastSync=ru(),n.set(!n.get());return}const R=t.get(),M=()=>{u.lastSessionRequest=ru(),r("/get-session").then(async P=>{let{data:N,error:I}=oI(P);if(N!=null&&N.needsRefresh)try{const A=await r("/get-session",{method:"POST"});({data:N,error:I}=oI(A))}catch{}const B=N!=null&&N.session&&(N!=null&&N.user)?N:null;t.set({...R,data:B,error:I}),u.lastSync=ru(),n.set(!n.get())}).catch(()=>{})};if((_==null?void 0:_.event)==="poll"){M();return}if((_==null?void 0:_.event)==="visibilitychange"){if(ru()-u.lastSessionRequest<aue)return;u.lastSessionRequest=ru()}if((_==null?void 0:_.event)==="visibilitychange"){M();return}((R==null?void 0:R.data)===null||(R==null?void 0:R.data)===void 0)&&(u.lastSync=ru(),n.set(!n.get()))},g=_=>{dS().post({event:"session",data:{trigger:_},clientId:Math.random().toString(36).substring(7)})},v=()=>{a&&a>0&&(u.pollInterval=setInterval(()=>{var _;(_=t.get())!=null&&_.data&&m({event:"poll"})},a*1e3))},y=()=>{u.unsubscribeBroadcast=dS().subscribe(()=>{m({event:"storage"})})},b=()=>{l&&(u.unsubscribeFocus=aI().subscribe(()=>{m({event:"visibilitychange"})}))},x=()=>{u.unsubscribeOnline=mS().subscribe(_=>{_&&m({event:"visibilitychange"})})};return{init:()=>{v(),y(),b(),x(),dS().setup(),aI().setup(),mS().setup()},cleanup:()=>{u.pollInterval&&(clearInterval(u.pollInterval),u.pollInterval=void 0),u.unsubscribeBroadcast&&(u.unsubscribeBroadcast(),u.unsubscribeBroadcast=void 0),u.unsubscribeFocus&&(u.unsubscribeFocus(),u.unsubscribeFocus=void 0),u.unsubscribeOnline&&(u.unsubscribeOnline(),u.unsubscribeOnline=void 0),u.lastSync=0,u.lastSessionRequest=0,u.cachedSession=void 0},triggerRefetch:m,broadcastSessionUpdate:g}}function lue(e,t){const n=iD(!1),r=eue(n,"/get-session",e,{method:"GET"});let i=()=>{};return aD(r,()=>{const a=oue({sessionAtom:r,sessionSignal:n,$fetch:e,options:t});return a.init(),i=a.broadcastSessionUpdate,()=>{a.cleanup()}}),{session:r,$sessionSignal:n,broadcastSessionUpdate:a=>i(a)}}function gS(e){if(e===null||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);return t!==null&&t!==Object.prototype&&Object.getPrototypeOf(t)!==null||Symbol.iterator in e?!1:Symbol.toStringTag in e?Object.prototype.toString.call(e)==="[object Module]":!0}function vC(e,t,n=".",r){if(!gS(t))return vC(e,{},n,r);const i={...t};for(const a of Object.keys(e)){if(a==="__proto__"||a==="constructor")continue;const l=e[a];l!=null&&(r&&r(i,a,l,n)||(Array.isArray(l)&&Array.isArray(i[a])?i[a]=[...l,...i[a]]:gS(l)&&gS(i[a])?i[a]=vC(l,i[a],(n?`${n}.`:"")+a.toString(),r):i[a]=l))}return i}function sue(e){return(...t)=>t.reduce((n,r)=>vC(n,r,"",e),{})}const cue=sue();var uue=Object.defineProperty,due=Object.defineProperties,fue=Object.getOwnPropertyDescriptors,lI=Object.getOwnPropertySymbols,hue=Object.prototype.hasOwnProperty,mue=Object.prototype.propertyIsEnumerable,sI=(e,t,n)=>t in e?uue(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ia=(e,t)=>{for(var n in t||(t={}))hue.call(t,n)&&sI(e,n,t[n]);if(lI)for(var n of lI(t))mue.call(t,n)&&sI(e,n,t[n]);return e},Wa=(e,t)=>due(e,fue(t)),gue=class extends Error{constructor(e,t,n){super(t||e.toString(),{cause:n}),this.status=e,this.statusText=t,this.error=n,Error.captureStackTrace(this,this.constructor)}},pue=async(e,t)=>{var n,r,i,a,l,c;let u=t||{};const d={onRequest:[t==null?void 0:t.onRequest],onResponse:[t==null?void 0:t.onResponse],onSuccess:[t==null?void 0:t.onSuccess],onError:[t==null?void 0:t.onError],onRetry:[t==null?void 0:t.onRetry]};if(!t||!(t!=null&&t.plugins))return{url:e,options:u,hooks:d};for(const m of(t==null?void 0:t.plugins)||[]){if(m.init){const g=await((n=m.init)==null?void 0:n.call(m,e.toString(),t));u=g.options||u,e=g.url}d.onRequest.push((r=m.hooks)==null?void 0:r.onRequest),d.onResponse.push((i=m.hooks)==null?void 0:i.onResponse),d.onSuccess.push((a=m.hooks)==null?void 0:a.onSuccess),d.onError.push((l=m.hooks)==null?void 0:l.onError),d.onRetry.push((c=m.hooks)==null?void 0:c.onRetry)}return{url:e,options:u,hooks:d}},cI=class{constructor(e){this.options=e}shouldAttemptRetry(e,t){return this.options.shouldRetry?Promise.resolve(e<this.options.attempts&&this.options.shouldRetry(t)):Promise.resolve(e<this.options.attempts)}getDelay(){return this.options.delay}},vue=class{constructor(e){this.options=e}shouldAttemptRetry(e,t){return this.options.shouldRetry?Promise.resolve(e<this.options.attempts&&this.options.shouldRetry(t)):Promise.resolve(e<this.options.attempts)}getDelay(e){return Math.min(this.options.maxDelay,this.options.baseDelay*2**e)}};function yue(e){if(typeof e=="number")return new cI({type:"linear",attempts:e,delay:1e3});switch(e.type){case"linear":return new cI(e);case"exponential":return new vue(e);default:throw new Error("Invalid retry strategy")}}var bue=async e=>{const t={},n=async r=>typeof r=="function"?await r():r;if(e!=null&&e.auth){if(e.auth.type==="Bearer"){const r=await n(e.auth.token);if(!r)return t;t.authorization=`Bearer ${r}`}else if(e.auth.type==="Basic"){const[r,i]=await Promise.all([n(e.auth.username),n(e.auth.password)]);if(!r||!i)return t;t.authorization=`Basic ${btoa(`${r}:${i}`)}`}else if(e.auth.type==="Custom"){const[r,i]=await Promise.all([n(e.auth.prefix),n(e.auth.value)]);if(!i)return t;t.authorization=`${r??""} ${i}`}}return t},Sue=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;function xue(e){const t=e.headers.get("content-type"),n=new Set(["image/svg","application/xml","application/xhtml","application/html"]);if(!t)return"json";const r=t.split(";").shift()||"";return Sue.test(r)?"json":n.has(r)||r.startsWith("text/")?"text":"blob"}function Cue(e){try{return JSON.parse(e),!0}catch{return!1}}function yC(e){if(e===void 0)return!1;const t=typeof e;return t==="string"||t==="number"||t==="boolean"||t===null?!0:t!=="object"?!1:Array.isArray(e)?!0:e.buffer?!1:e.constructor&&e.constructor.name==="Object"||typeof e.toJSON=="function"}function uI(e){try{return JSON.parse(e)}catch{return e}}function dI(e){return typeof e=="function"}function wue(e){if(e!=null&&e.customFetchImpl)return e.customFetchImpl;if(typeof globalThis<"u"&&dI(globalThis.fetch))return globalThis.fetch;if(typeof window<"u"&&dI(window.fetch))return window.fetch;throw new Error("No fetch implementation found")}async function Eue(e){const t=new Headers(e==null?void 0:e.headers),n=await bue(e);for(const[r,i]of Object.entries(n||{}))t.set(r,i);if(!t.has("content-type")){const r=$ue(e==null?void 0:e.body);r&&t.set("content-type",r)}return t}function $ue(e){return yC(e)?"application/json":null}function Oue(e){if(!(e!=null&&e.body))return null;const t=new Headers(e==null?void 0:e.headers);if(yC(e.body)&&!t.has("content-type")){for(const[n,r]of Object.entries(e==null?void 0:e.body))r instanceof Date&&(e.body[n]=r.toISOString());return JSON.stringify(e.body)}return t.has("content-type")&&t.get("content-type")==="application/x-www-form-urlencoded"&&yC(e.body)?new URLSearchParams(e.body).toString():e.body}function Rue(e,t){var n;if(t!=null&&t.method)return t.method.toUpperCase();if(e.startsWith("@")){const r=(n=e.split("@")[1])==null?void 0:n.split("/")[0];return lD.includes(r)?r.toUpperCase():t!=null&&t.body?"POST":"GET"}return t!=null&&t.body?"POST":"GET"}function Tue(e,t){let n;return!(e!=null&&e.signal)&&(e!=null&&e.timeout)&&(n=setTimeout(()=>t==null?void 0:t.abort(),e==null?void 0:e.timeout)),{abortTimeout:n,clearTimeout:()=>{n&&clearTimeout(n)}}}var _ue=class oD extends Error{constructor(t,n){super(n||JSON.stringify(t,null,2)),this.issues=t,Object.setPrototypeOf(this,oD.prototype)}};async function Ng(e,t){const n=await e["~standard"].validate(t);if(n.issues)throw new _ue(n.issues);return n.value}var lD=["get","post","put","patch","delete"],Nue=e=>({id:"apply-schema",name:"Apply Schema",version:"1.0.0",async init(t,n){var r,i,a,l;const c=((i=(r=e.plugins)==null?void 0:r.find(u=>{var d;return(d=u.schema)!=null&&d.config?t.startsWith(u.schema.config.baseURL||"")||t.startsWith(u.schema.config.prefix||""):!1}))==null?void 0:i.schema)||e.schema;if(c){let u=t;(a=c.config)!=null&&a.prefix&&u.startsWith(c.config.prefix)&&(u=u.replace(c.config.prefix,""),c.config.baseURL&&(t=t.replace(c.config.prefix,c.config.baseURL))),(l=c.config)!=null&&l.baseURL&&u.startsWith(c.config.baseURL)&&(u=u.replace(c.config.baseURL,""));const d=c.schema[u];if(d){let m=Wa(Ia({},n),{method:d.method,output:d.output});return n!=null&&n.disableValidation||(m=Wa(Ia({},m),{body:d.input?await Ng(d.input,n==null?void 0:n.body):n==null?void 0:n.body,params:d.params?await Ng(d.params,n==null?void 0:n.params):n==null?void 0:n.params,query:d.query?await Ng(d.query,n==null?void 0:n.query):n==null?void 0:n.query})),{url:t,options:m}}}return{url:t,options:n}}}),Iue=e=>{async function t(n,r){const i=Wa(Ia(Ia({},e),r),{plugins:[...(e==null?void 0:e.plugins)||[],Nue(e||{}),...(r==null?void 0:r.plugins)||[]]});if(e!=null&&e.catchAllError)try{return await bC(n,i)}catch(a){return{data:null,error:{status:500,statusText:"Fetch Error",message:"Fetch related error. Captured by catchAllError option. See error property for more details.",error:a}}}return await bC(n,i)}return t};function Mue(e,t){const{baseURL:n,params:r,query:i}=t||{query:{},params:{},baseURL:""};let a=e.startsWith("http")?e.split("/").slice(0,3).join("/"):n||"";if(e.startsWith("@")){const g=e.toString().split("@")[1].split("/")[0];lD.includes(g)&&(e=e.replace(`@${g}/`,"/"))}a.endsWith("/")||(a+="/");let[l,c]=e.replace(a,"").split("?");const u=new URLSearchParams(c);for(const[g,v]of Object.entries(i||{})){if(v==null)continue;let y;if(typeof v=="string")y=v;else if(Array.isArray(v)){for(const b of v)u.append(g,b);continue}else y=JSON.stringify(v);u.set(g,y)}if(r)if(Array.isArray(r)){const g=l.split("/").filter(v=>v.startsWith(":"));for(const[v,y]of g.entries()){const b=r[v];l=l.replace(y,b)}}else for(const[g,v]of Object.entries(r))l=l.replace(`:${g}`,String(v));l=l.split("/").map(encodeURIComponent).join("/"),l.startsWith("/")&&(l=l.slice(1));let d=u.toString();return d=d.length>0?`?${d}`.replace(/\+/g,"%20"):"",a.startsWith("http")?new URL(`${l}${d}`,a):`${a}${l}${d}`}var bC=async(e,t)=>{var n,r,i,a,l,c,u,d;const{hooks:m,url:g,options:v}=await pue(e,t),y=wue(v),b=new AbortController,x=(n=v.signal)!=null?n:b.signal,S=Mue(g,v),w=Oue(v),$=await Eue(v),O=Rue(g,v);let T=Wa(Ia({},v),{url:S,headers:$,body:w,method:O,signal:x});for(const k of m.onRequest)if(k){const j=await k(T);typeof j=="object"&&j!==null&&(T=j)}("pipeTo"in T&&typeof T.pipeTo=="function"||typeof((r=t==null?void 0:t.body)==null?void 0:r.pipe)=="function")&&("duplex"in T||(T.duplex="half"));const{clearTimeout:_}=Tue(v,b);let R=await y(T.url,T);_();const M={response:R,request:T};for(const k of m.onResponse)if(k){const j=await k(Wa(Ia({},M),{response:(i=t==null?void 0:t.hookOptions)!=null&&i.cloneResponse?R.clone():R}));j instanceof Response?R=j:typeof j=="object"&&j!==null&&(R=j.response)}if(R.ok){if(!(T.method!=="HEAD"))return{data:"",error:null};const j=xue(R),V={data:null,response:R,request:T};if(j==="json"||j==="text"){const z=await R.text(),F=(a=T.jsonParser)!=null?a:uI;V.data=await F(z)}else V.data=await R[j]();T!=null&&T.output&&T.output&&!T.disableValidation&&(V.data=await Ng(T.output,V.data));for(const z of m.onSuccess)z&&await z(Wa(Ia({},V),{response:(l=t==null?void 0:t.hookOptions)!=null&&l.cloneResponse?R.clone():R}));return t!=null&&t.throw?V.data:{data:V.data,error:null}}const P=(c=t==null?void 0:t.jsonParser)!=null?c:uI,N=await R.text(),I=Cue(N),B=I?await P(N):null,A={response:R,responseText:N,request:T,error:Wa(Ia({},B),{status:R.status,statusText:R.statusText})};for(const k of m.onError)k&&await k(Wa(Ia({},A),{response:(u=t==null?void 0:t.hookOptions)!=null&&u.cloneResponse?R.clone():R}));if(t!=null&&t.retry){const k=yue(t.retry),j=(d=t.retryAttempt)!=null?d:0;if(await k.shouldAttemptRetry(j,R)){for(const z of m.onRetry)z&&await z(M);const V=k.getDelay(j);return await new Promise(z=>setTimeout(z,V)),await bC(e,Wa(Ia({},t),{retryAttempt:j+1}))}}if(t!=null&&t.throw)throw new gue(R.status,R.statusText,I?B:N);return{data:null,error:Wa(Ia({},B),{status:R.status,statusText:R.statusText})}},bs={};const Pue=e=>{if(typeof process>"u")return;const t=e??"/api/auth";if(bs.NEXT_PUBLIC_AUTH_URL)return bs.NEXT_PUBLIC_AUTH_URL;if(typeof window>"u"){if(bs.NEXTAUTH_URL)try{return bs.NEXTAUTH_URL}catch{}if(bs.VERCEL_URL)try{const n=bs.VERCEL_URL.startsWith("http")?"":"https://";return`${new URL(`${n}${bs.VERCEL_URL}`).origin}${t}`}catch{}}},Aue=(e,t)=>{var _,R,M,P,N,I,B;const n="credentials"in Request.prototype,r=Bce(e==null?void 0:e.baseURL,e==null?void 0:e.basePath)??Pue(e==null?void 0:e.basePath)??"/api/auth",i=((_=e==null?void 0:e.plugins)==null?void 0:_.flatMap(A=>A.fetchPlugins).filter(A=>A!==void 0))||[],a={id:"lifecycle-hooks",name:"lifecycle-hooks",hooks:{onSuccess:(R=e==null?void 0:e.fetchOptions)==null?void 0:R.onSuccess,onError:(M=e==null?void 0:e.fetchOptions)==null?void 0:M.onError,onRequest:(P=e==null?void 0:e.fetchOptions)==null?void 0:P.onRequest,onResponse:(N=e==null?void 0:e.fetchOptions)==null?void 0:N.onResponse}},{onSuccess:l,onError:c,onRequest:u,onResponse:d,...m}=(e==null?void 0:e.fetchOptions)||{},g=Iue({baseURL:r,...n?{credentials:"include"}:{},method:"GET",jsonParser(A){return A?Wce(A,{strict:!1}):null},customFetchImpl:fetch,...m,plugins:[a,...m.plugins||[],...e!=null&&e.disableDefaultFetchPlugins?[]:[Gce],...i]}),{$sessionSignal:v,session:y,broadcastSessionUpdate:b}=lue(g,e),x=(e==null?void 0:e.plugins)||[];let S={};const w={$sessionSignal:v,session:y},$={"/sign-out":"POST","/revoke-sessions":"POST","/revoke-other-sessions":"POST","/delete-user":"POST"},O=[{signal:"$sessionSignal",matcher(A){return A==="/sign-out"||A==="/update-user"||A==="/update-session"||A==="/sign-up/email"||A==="/sign-in/email"||A==="/delete-user"||A==="/verify-email"||A==="/revoke-sessions"||A==="/revoke-session"||A==="/change-email"},callback(A){A==="/sign-out"?b("signout"):(A==="/update-user"||A==="/update-session")&&b("updateUser")}}];for(const A of x)A.getAtoms&&Object.assign(w,(I=A.getAtoms)==null?void 0:I.call(A,g)),A.pathMethods&&Object.assign($,A.pathMethods),A.atomListeners&&O.push(...A.atomListeners);const T={notify:A=>{w[A].set(!w[A].get())},listen:(A,k)=>{w[A].subscribe(k)},atoms:w};for(const A of x)A.getActions&&(S=cue(((B=A.getActions)==null?void 0:B.call(A,g,T,e))??{},S));return{get baseURL(){return r},pluginsActions:S,pluginsAtoms:w,pluginPathMethods:$,atomListeners:O,$fetch:g,$store:T}};function zue(e){return typeof e=="object"&&e!==null&&"get"in e&&typeof e.get=="function"&&"lc"in e&&typeof e.lc=="number"}function jue(e,t,n){const r=t[e],{fetchOptions:i,query:a,...l}=n||{};return r||(i!=null&&i.method?i.method:l&&Object.keys(l).length>0?"POST":"GET")}function Due(e,t,n,r,i){function a(l=[]){return new Proxy(function(){},{get(c,u){if(typeof u!="string"||u==="then"||u==="catch"||u==="finally")return;const d=[...l,u];let m=e;for(const g of d)if(m&&typeof m=="object"&&g in m)m=m[g];else{m=void 0;break}return typeof m=="function"||zue(m)?m:a(d)},apply:async(c,u,d)=>{const m="/"+l.map($=>$.replace(/[A-Z]/g,O=>`-${O.toLowerCase()}`)).join("/"),g=d[0]||{},v=d[1]||{},{query:y,fetchOptions:b,...x}=g,S={...v,...b},w=jue(m,n,g);return await t(m,{...S,body:w==="GET"?void 0:{...x,...(S==null?void 0:S.body)||{}},query:y||(S==null?void 0:S.query),method:w,async onSuccess($){var _,R;if(await((_=S==null?void 0:S.onSuccess)==null?void 0:_.call(S,$)),!i||S.disableSignal)return;const O=i.filter(M=>M.matcher(m));if(!O.length)return;const T=new Set;for(const M of O){const P=r[M.signal];if(!P)return;if(T.has(M.signal))continue;T.add(M.signal);const N=P.get();setTimeout(()=>{P.set(!N)},10),(R=M.callback)==null||R.call(M,m)}}})}})}return a()}function Lue(e,t={}){const n=h.useRef(e.get()),{keys:r,deps:i=[e,r]}=t,a=h.useCallback(c=>{const u=d=>{n.current!==d&&(n.current=d,c())};return u(e.value),r!=null&&r.length?Zce(e,r,u):e.listen(u)},i),l=()=>n.current;return h.useSyncExternalStore(a,l,l)}function kue(e){return e.charAt(0).toUpperCase()+e.slice(1)}function Bue(e){return`use${kue(e)}`}function Hue(e){const{pluginPathMethods:t,pluginsActions:n,pluginsAtoms:r,$fetch:i,$store:a,atomListeners:l}=Aue(e),c={};for(const[u,d]of Object.entries(r))c[Bue(u)]=()=>Lue(d);return Due({...n,...c,$fetch:i,$store:a},i,t,r,l)}const sD=Hue({baseURL:window.location.origin}),{useSession:Fue,signOut:Vue}=sD,Uue="admin@optio.local";function que(){const[e,t]=h.useState(null),[n,r]=h.useState(!1);async function i({password:a}){t(null),r(!0);const{error:l}=await sD.signIn.email({email:Uue,password:a});r(!1),l&&t(l.message??"Sign in failed")}return se.jsxs($1,{style:{width:"100%"},children:[se.jsx(Xi.Title,{level:4,style:{marginTop:0,marginBottom:24},children:"Optio Dashboard"}),se.jsxs(za,{layout:"vertical",onFinish:i,children:[se.jsx(za.Item,{label:"Password",name:"password",rules:[{required:!0,message:"Please enter your password"}],validateStatus:e?"error":void 0,help:e??void 0,children:se.jsx(ic.Password,{placeholder:"Password",autoFocus:!0})}),se.jsx(za.Item,{style:{marginBottom:0},children:se.jsx(Er,{type:"primary",htmlType:"submit",loading:n,block:!0,children:"Sign in"})})]})]})}jce();const{Header:fI,Sider:Kue,Content:Wue}=no,{Title:hI}=Xi;function Gue({selectedProcessId:e,setSelectedProcessId:t}){const{processes:n,connected:r}=kne(),{launch:i,cancel:a}=Gj(),l=Nte();return se.jsx(Ine,{children:se.jsx(no,{children:se.jsxs(no,{children:[se.jsxs(Kue,{width:400,style:{background:"#fff",overflow:"auto"},children:[se.jsx(Mne,{}),se.jsx(Pne,{processes:n,loading:!r,onLaunch:l?i:void 0,onCancel:l?a:void 0,onProcessClick:t})]}),se.jsx(Wue,{style:{padding:"24px",overflow:"auto"},children:se.jsx(Vne,{processId:e})})]})})})}function iu(e){return`${e.database}/${e.prefix}`}function Xue(){const{instances:e,isLoading:t,refetch:n}=_j(),[r,i]=h.useState(null),[a,l]=h.useState(null),c=(b,x)=>{l(b),Zg.info({message:"A task needs your attention",description:x})},u=(b,x,S)=>{console.log("[optio domain_message]",{processId:b,keyword:x,data:S}),Zg.info({message:`Domain message: ${x}`,description:JSON.stringify(S)})};if(t)return null;const d=e.find(b=>iu(b)===r)??e.find(b=>b.live)??e[0]??null,m=e.filter(b=>b.live),g=e.filter(b=>!b.live),v=[];for(const b of m)v.push({label:iu(b),value:iu(b)});m.length>0&&g.length>0&&v.push({label:"───",value:"__separator__",disabled:!0});for(const b of g)v.push({label:`${iu(b)} (offline)`,value:iu(b)});const y=se.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8},children:[e.length>0&&se.jsxs(se.Fragment,{children:[se.jsx(Gl,{style:{minWidth:200},value:d?iu(d):void 0,placeholder:"Select instance",options:v,onChange:i}),se.jsx(Er,{onClick:()=>n(),children:"Refresh"})]}),se.jsx(Er,{onClick:()=>Vue(),children:"Sign out"})]});return d?se.jsx(Aj,{prefix:d.prefix,database:d.database,live:d.live,onAttention:c,onDomainMessage:u,children:se.jsxs(no,{style:{height:"100vh"},children:[se.jsxs(fI,{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"0 24px"},children:[se.jsx(hI,{level:4,style:{color:"#fff",margin:0},children:"Optio Dashboard"}),y]}),se.jsx(Gue,{selectedProcessId:a,setSelectedProcessId:l})]})}):se.jsxs(no,{style:{height:"100vh"},children:[se.jsxs(fI,{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"0 24px"},children:[se.jsx(hI,{level:4,style:{color:"#fff",margin:0},children:"Optio Dashboard"}),y]}),se.jsx(QM,{type:"info",message:"No optio instance detected in the database",style:{margin:24}})]})}function Que(){const{data:e,isPending:t}=Fue();return t?null:e?se.jsx(Aj,{children:se.jsx(Xue,{})}):se.jsx("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:"100vh"},children:se.jsx("div",{style:{width:"100%",maxWidth:400,padding:"0 16px"},children:se.jsx(que,{})})})}const Yue=new xJ;GZ.createRoot(document.getElementById("root")).render(se.jsx(re.StrictMode,{children:se.jsx(CJ,{client:Yue,children:se.jsx(Que,{})})}));export{ZI as C,B3 as K,H3 as L,Jue as M,ede as S,wce as _,OS as a,e6 as b,Z3 as c,tde as d,ec as g,V3 as s};
|