Files
weiyu/deploy/server/notebase/assets/index-B1wP56-Q.js
jack ning eed723b7eb update
2025-02-11 23:36:51 +08:00

851 lines
1.9 MiB
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
function dR(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 o=Object.getOwnPropertyDescriptor(r,i);o&&Object.defineProperty(e,i,o.get?o:{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 o of i)if(o.type==="childList")for(const a of o.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();var A$e=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function dl(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var fR={exports:{}},Vy={},pR={exports:{}},$n={};/**
* @license React
* react.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var hm=Symbol.for("react.element"),fV=Symbol.for("react.portal"),pV=Symbol.for("react.fragment"),hV=Symbol.for("react.strict_mode"),mV=Symbol.for("react.profiler"),gV=Symbol.for("react.provider"),vV=Symbol.for("react.context"),yV=Symbol.for("react.forward_ref"),bV=Symbol.for("react.suspense"),CV=Symbol.for("react.memo"),SV=Symbol.for("react.lazy"),m_=Symbol.iterator;function EV(e){return e===null||typeof e!="object"?null:(e=m_&&e[m_]||e["@@iterator"],typeof e=="function"?e:null)}var hR={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},mR=Object.assign,gR={};function i1(e,t,n){this.props=e,this.context=t,this.refs=gR,this.updater=n||hR}i1.prototype.isReactComponent={};i1.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};i1.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function vR(){}vR.prototype=i1.prototype;function sx(e,t,n){this.props=e,this.context=t,this.refs=gR,this.updater=n||hR}var cx=sx.prototype=new vR;cx.constructor=sx;mR(cx,i1.prototype);cx.isPureReactComponent=!0;var g_=Array.isArray,yR=Object.prototype.hasOwnProperty,ux={current:null},bR={key:!0,ref:!0,__self:!0,__source:!0};function CR(e,t,n){var r,i={},o=null,a=null;if(t!=null)for(r in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(o=""+t.key),t)yR.call(t,r)&&!bR.hasOwnProperty(r)&&(i[r]=t[r]);var l=arguments.length-2;if(l===1)i.children=n;else if(1<l){for(var c=Array(l),u=0;u<l;u++)c[u]=arguments[u+2];i.children=c}if(e&&e.defaultProps)for(r in l=e.defaultProps,l)i[r]===void 0&&(i[r]=l[r]);return{$$typeof:hm,type:e,key:o,ref:a,props:i,_owner:ux.current}}function xV(e,t){return{$$typeof:hm,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function dx(e){return typeof e=="object"&&e!==null&&e.$$typeof===hm}function wV(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var v_=/\/+/g;function P5(e,t){return typeof e=="object"&&e!==null&&e.key!=null?wV(""+e.key):t.toString(36)}function Bg(e,t,n,r,i){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var a=!1;if(e===null)a=!0;else switch(o){case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case hm:case fV:a=!0}}if(a)return a=e,i=i(a),e=r===""?"."+P5(a,0):r,g_(i)?(n="",e!=null&&(n=e.replace(v_,"$&/")+"/"),Bg(i,t,n,"",function(u){return u})):i!=null&&(dx(i)&&(i=xV(i,n+(!i.key||a&&a.key===i.key?"":(""+i.key).replace(v_,"$&/")+"/")+e)),t.push(i)),1;if(a=0,r=r===""?".":r+":",g_(e))for(var l=0;l<e.length;l++){o=e[l];var c=r+P5(o,l);a+=Bg(o,t,n,c,i)}else if(c=EV(e),typeof c=="function")for(e=c.call(e),l=0;!(o=e.next()).done;)o=o.value,c=r+P5(o,l++),a+=Bg(o,t,n,c,i);else if(o==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return a}function O0(e,t,n){if(e==null)return e;var r=[],i=0;return Bg(e,r,"","",function(o){return t.call(n,o,i++)}),r}function _V(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var ho={current:null},jg={transition:null},TV={ReactCurrentDispatcher:ho,ReactCurrentBatchConfig:jg,ReactCurrentOwner:ux};function SR(){throw Error("act(...) is not supported in production builds of React.")}$n.Children={map:O0,forEach:function(e,t,n){O0(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return O0(e,function(){t++}),t},toArray:function(e){return O0(e,function(t){return t})||[]},only:function(e){if(!dx(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};$n.Component=i1;$n.Fragment=pV;$n.Profiler=mV;$n.PureComponent=sx;$n.StrictMode=hV;$n.Suspense=bV;$n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=TV;$n.act=SR;$n.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=mR({},e.props),i=e.key,o=e.ref,a=e._owner;if(t!=null){if(t.ref!==void 0&&(o=t.ref,a=ux.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(c in t)yR.call(t,c)&&!bR.hasOwnProperty(c)&&(r[c]=t[c]===void 0&&l!==void 0?l[c]:t[c])}var c=arguments.length-2;if(c===1)r.children=n;else if(1<c){l=Array(c);for(var u=0;u<c;u++)l[u]=arguments[u+2];r.children=l}return{$$typeof:hm,type:e.type,key:i,ref:o,props:r,_owner:a}};$n.createContext=function(e){return e={$$typeof:vV,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:gV,_context:e},e.Consumer=e};$n.createElement=CR;$n.createFactory=function(e){var t=CR.bind(null,e);return t.type=e,t};$n.createRef=function(){return{current:null}};$n.forwardRef=function(e){return{$$typeof:yV,render:e}};$n.isValidElement=dx;$n.lazy=function(e){return{$$typeof:SV,_payload:{_status:-1,_result:e},_init:_V}};$n.memo=function(e,t){return{$$typeof:CV,type:e,compare:t===void 0?null:t}};$n.startTransition=function(e){var t=jg.transition;jg.transition={};try{e()}finally{jg.transition=t}};$n.unstable_act=SR;$n.useCallback=function(e,t){return ho.current.useCallback(e,t)};$n.useContext=function(e){return ho.current.useContext(e)};$n.useDebugValue=function(){};$n.useDeferredValue=function(e){return ho.current.useDeferredValue(e)};$n.useEffect=function(e,t){return ho.current.useEffect(e,t)};$n.useId=function(){return ho.current.useId()};$n.useImperativeHandle=function(e,t,n){return ho.current.useImperativeHandle(e,t,n)};$n.useInsertionEffect=function(e,t){return ho.current.useInsertionEffect(e,t)};$n.useLayoutEffect=function(e,t){return ho.current.useLayoutEffect(e,t)};$n.useMemo=function(e,t){return ho.current.useMemo(e,t)};$n.useReducer=function(e,t,n){return ho.current.useReducer(e,t,n)};$n.useRef=function(e){return ho.current.useRef(e)};$n.useState=function(e){return ho.current.useState(e)};$n.useSyncExternalStore=function(e,t,n){return ho.current.useSyncExternalStore(e,t,n)};$n.useTransition=function(){return ho.current.useTransition()};$n.version="18.3.1";pR.exports=$n;var d=pR.exports;const fe=dl(d),mm=dR({__proto__:null,default:fe},[d]);/**
* @license React
* react-jsx-runtime.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var OV=d,IV=Symbol.for("react.element"),kV=Symbol.for("react.fragment"),$V=Object.prototype.hasOwnProperty,NV=OV.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,AV={key:!0,ref:!0,__self:!0,__source:!0};function ER(e,t,n){var r,i={},o=null,a=null;n!==void 0&&(o=""+n),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(a=t.ref);for(r in t)$V.call(t,r)&&!AV.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:IV,type:e,key:o,ref:a,props:i,_owner:NV.current}}Vy.Fragment=kV;Vy.jsx=ER;Vy.jsxs=ER;fR.exports=Vy;var Ee=fR.exports,mC={},xR={exports:{}},oa={},wR={exports:{}},_R={};/**
* @license React
* scheduler.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/(function(e){function t(V,X){var A=V.length;V.push(X);e:for(;0<A;){var P=A-1>>>1,Y=V[P];if(0<i(Y,X))V[P]=X,V[A]=Y,A=P;else break e}}function n(V){return V.length===0?null:V[0]}function r(V){if(V.length===0)return null;var X=V[0],A=V.pop();if(A!==X){V[0]=A;e:for(var P=0,Y=V.length,U=Y>>>1;P<U;){var Q=2*(P+1)-1,ee=V[Q],se=Q+1,ne=V[se];if(0>i(ee,A))se<Y&&0>i(ne,ee)?(V[P]=ne,V[se]=A,P=se):(V[P]=ee,V[Q]=A,P=Q);else if(se<Y&&0>i(ne,A))V[P]=ne,V[se]=A,P=se;else break e}}return X}function i(V,X){var A=V.sortIndex-X.sortIndex;return A!==0?A:V.id-X.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var a=Date,l=a.now();e.unstable_now=function(){return a.now()-l}}var c=[],u=[],p=1,h=null,m=3,g=!1,b=!1,E=!1,x=typeof setTimeout=="function"?setTimeout:null,S=typeof clearTimeout=="function"?clearTimeout:null,C=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function _(V){for(var X=n(u);X!==null;){if(X.callback===null)r(u);else if(X.startTime<=V)r(u),X.sortIndex=X.expirationTime,t(c,X);else break;X=n(u)}}function O(V){if(E=!1,_(V),!b)if(n(c)!==null)b=!0,W(k);else{var X=n(u);X!==null&&z(O,X.startTime-V)}}function k(V,X){b=!1,E&&(E=!1,S($),$=-1),g=!0;var A=m;try{for(_(X),h=n(c);h!==null&&(!(h.expirationTime>X)||V&&!j());){var P=h.callback;if(typeof P=="function"){h.callback=null,m=h.priorityLevel;var Y=P(h.expirationTime<=X);X=e.unstable_now(),typeof Y=="function"?h.callback=Y:h===n(c)&&r(c),_(X)}else r(c);h=n(c)}if(h!==null)var U=!0;else{var Q=n(u);Q!==null&&z(O,Q.startTime-X),U=!1}return U}finally{h=null,m=A,g=!1}}var T=!1,I=null,$=-1,M=5,R=-1;function j(){return!(e.unstable_now()-R<M)}function D(){if(I!==null){var V=e.unstable_now();R=V;var X=!0;try{X=I(!0,V)}finally{X?L():(T=!1,I=null)}}else T=!1}var L;if(typeof C=="function")L=function(){C(D)};else if(typeof MessageChannel<"u"){var B=new MessageChannel,H=B.port2;B.port1.onmessage=D,L=function(){H.postMessage(null)}}else L=function(){x(D,0)};function W(V){I=V,T||(T=!0,L())}function z(V,X){$=x(function(){V(e.unstable_now())},X)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(V){V.callback=null},e.unstable_continueExecution=function(){b||g||(b=!0,W(k))},e.unstable_forceFrameRate=function(V){0>V||125<V?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):M=0<V?Math.floor(1e3/V):5},e.unstable_getCurrentPriorityLevel=function(){return m},e.unstable_getFirstCallbackNode=function(){return n(c)},e.unstable_next=function(V){switch(m){case 1:case 2:case 3:var X=3;break;default:X=m}var A=m;m=X;try{return V()}finally{m=A}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(V,X){switch(V){case 1:case 2:case 3:case 4:case 5:break;default:V=3}var A=m;m=V;try{return X()}finally{m=A}},e.unstable_scheduleCallback=function(V,X,A){var P=e.unstable_now();switch(typeof A=="object"&&A!==null?(A=A.delay,A=typeof A=="number"&&0<A?P+A:P):A=P,V){case 1:var Y=-1;break;case 2:Y=250;break;case 5:Y=1073741823;break;case 4:Y=1e4;break;default:Y=5e3}return Y=A+Y,V={id:p++,callback:X,priorityLevel:V,startTime:A,expirationTime:Y,sortIndex:-1},A>P?(V.sortIndex=A,t(u,V),n(c)===null&&V===n(u)&&(E?(S($),$=-1):E=!0,z(O,A-P))):(V.sortIndex=Y,t(c,V),b||g||(b=!0,W(k))),V},e.unstable_shouldYield=j,e.unstable_wrapCallback=function(V){var X=m;return function(){var A=m;m=X;try{return V.apply(this,arguments)}finally{m=A}}}})(_R);wR.exports=_R;var RV=wR.exports;/**
* @license React
* react-dom.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var MV=d,na=RV;function Ct(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var TR=new Set,Ch={};function Uu(e,t){$f(e,t),$f(e+"Capture",t)}function $f(e,t){for(Ch[e]=t,e=0;e<t.length;e++)TR.add(t[e])}var hs=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),gC=Object.prototype.hasOwnProperty,PV=/^[: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]*$/,y_={},b_={};function LV(e){return gC.call(b_,e)?!0:gC.call(y_,e)?!1:PV.test(e)?b_[e]=!0:(y_[e]=!0,!1)}function DV(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function FV(e,t,n,r){if(t===null||typeof t>"u"||DV(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function mo(e,t,n,r,i,o,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}var Li={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Li[e]=new mo(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Li[t]=new mo(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Li[e]=new mo(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Li[e]=new mo(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Li[e]=new mo(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Li[e]=new mo(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Li[e]=new mo(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Li[e]=new mo(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Li[e]=new mo(e,5,!1,e.toLowerCase(),null,!1,!1)});var fx=/[\-:]([a-z])/g;function px(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(fx,px);Li[t]=new mo(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(fx,px);Li[t]=new mo(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(fx,px);Li[t]=new mo(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Li[e]=new mo(e,1,!1,e.toLowerCase(),null,!1,!1)});Li.xlinkHref=new mo("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Li[e]=new mo(e,1,!1,e.toLowerCase(),null,!0,!0)});function hx(e,t,n,r){var i=Li.hasOwnProperty(t)?Li[t]:null;(i!==null?i.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(FV(t,n,i,r)&&(n=null),r||i===null?LV(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=n===null?i.type===3?!1:"":n:(t=i.attributeName,r=i.attributeNamespace,n===null?e.removeAttribute(t):(i=i.type,n=i===3||i===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var Ss=MV.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,I0=Symbol.for("react.element"),Vd=Symbol.for("react.portal"),Gd=Symbol.for("react.fragment"),mx=Symbol.for("react.strict_mode"),vC=Symbol.for("react.profiler"),OR=Symbol.for("react.provider"),IR=Symbol.for("react.context"),gx=Symbol.for("react.forward_ref"),yC=Symbol.for("react.suspense"),bC=Symbol.for("react.suspense_list"),vx=Symbol.for("react.memo"),Ys=Symbol.for("react.lazy"),kR=Symbol.for("react.offscreen"),C_=Symbol.iterator;function ep(e){return e===null||typeof e!="object"?null:(e=C_&&e[C_]||e["@@iterator"],typeof e=="function"?e:null)}var Ar=Object.assign,L5;function Np(e){if(L5===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);L5=t&&t[1]||""}return`
`+L5+e}var D5=!1;function F5(e,t){if(!e||D5)return"";D5=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}catch(u){if(u&&r&&typeof u.stack=="string"){for(var i=u.stack.split(`
`),o=r.stack.split(`
`),a=i.length-1,l=o.length-1;1<=a&&0<=l&&i[a]!==o[l];)l--;for(;1<=a&&0<=l;a--,l--)if(i[a]!==o[l]){if(a!==1||l!==1)do if(a--,l--,0>l||i[a]!==o[l]){var c=`
`+i[a].replace(" at new "," at ");return e.displayName&&c.includes("<anonymous>")&&(c=c.replace("<anonymous>",e.displayName)),c}while(1<=a&&0<=l);break}}}finally{D5=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Np(e):""}function BV(e){switch(e.tag){case 5:return Np(e.type);case 16:return Np("Lazy");case 13:return Np("Suspense");case 19:return Np("SuspenseList");case 0:case 2:case 15:return e=F5(e.type,!1),e;case 11:return e=F5(e.type.render,!1),e;case 1:return e=F5(e.type,!0),e;default:return""}}function CC(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Gd:return"Fragment";case Vd:return"Portal";case vC:return"Profiler";case mx:return"StrictMode";case yC:return"Suspense";case bC:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case IR:return(e.displayName||"Context")+".Consumer";case OR:return(e._context.displayName||"Context")+".Provider";case gx:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case vx:return t=e.displayName||null,t!==null?t:CC(e.type)||"Memo";case Ys:t=e._payload,e=e._init;try{return CC(e(t))}catch{}}return null}function jV(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return CC(t);case 8:return t===mx?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Cc(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function $R(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function HV(e){var t=$R(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(a){r=""+a,o.call(this,a)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(a){r=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function k0(e){e._valueTracker||(e._valueTracker=HV(e))}function NR(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=$R(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Ov(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function SC(e,t){var n=t.checked;return Ar({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function S_(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Cc(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function AR(e,t){t=t.checked,t!=null&&hx(e,"checked",t,!1)}function EC(e,t){AR(e,t);var n=Cc(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?xC(e,t.type,n):t.hasOwnProperty("defaultValue")&&xC(e,t.type,Cc(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function E_(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function xC(e,t,n){(t!=="number"||Ov(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Ap=Array.isArray;function mf(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Cc(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function wC(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(Ct(91));return Ar({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function x_(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(Ct(92));if(Ap(n)){if(1<n.length)throw Error(Ct(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Cc(n)}}function RR(e,t){var n=Cc(t.value),r=Cc(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function w_(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function MR(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function _C(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?MR(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var $0,PR=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,i)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for($0=$0||document.createElement("div"),$0.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=$0.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Sh(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Wp={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},zV=["Webkit","ms","Moz","O"];Object.keys(Wp).forEach(function(e){zV.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Wp[t]=Wp[e]})});function LR(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Wp.hasOwnProperty(e)&&Wp[e]?(""+t).trim():t+"px"}function DR(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=LR(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var WV=Ar({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function TC(e,t){if(t){if(WV[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(Ct(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(Ct(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(Ct(61))}if(t.style!=null&&typeof t.style!="object")throw Error(Ct(62))}}function OC(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var IC=null;function yx(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var kC=null,gf=null,vf=null;function __(e){if(e=ym(e)){if(typeof kC!="function")throw Error(Ct(280));var t=e.stateNode;t&&(t=Qy(t),kC(e.stateNode,e.type,t))}}function FR(e){gf?vf?vf.push(e):vf=[e]:gf=e}function BR(){if(gf){var e=gf,t=vf;if(vf=gf=null,__(e),t)for(e=0;e<t.length;e++)__(t[e])}}function jR(e,t){return e(t)}function HR(){}var B5=!1;function zR(e,t,n){if(B5)return e(t,n);B5=!0;try{return jR(e,t,n)}finally{B5=!1,(gf!==null||vf!==null)&&(HR(),BR())}}function Eh(e,t){var n=e.stateNode;if(n===null)return null;var r=Qy(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(Ct(231,t,typeof n));return n}var $C=!1;if(hs)try{var tp={};Object.defineProperty(tp,"passive",{get:function(){$C=!0}}),window.addEventListener("test",tp,tp),window.removeEventListener("test",tp,tp)}catch{$C=!1}function UV(e,t,n,r,i,o,a,l,c){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(p){this.onError(p)}}var Up=!1,Iv=null,kv=!1,NC=null,KV={onError:function(e){Up=!0,Iv=e}};function VV(e,t,n,r,i,o,a,l,c){Up=!1,Iv=null,UV.apply(KV,arguments)}function GV(e,t,n,r,i,o,a,l,c){if(VV.apply(this,arguments),Up){if(Up){var u=Iv;Up=!1,Iv=null}else throw Error(Ct(198));kv||(kv=!0,NC=u)}}function Ku(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function WR(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function T_(e){if(Ku(e)!==e)throw Error(Ct(188))}function qV(e){var t=e.alternate;if(!t){if(t=Ku(e),t===null)throw Error(Ct(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var o=i.alternate;if(o===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return T_(i),e;if(o===r)return T_(i),t;o=o.sibling}throw Error(Ct(188))}if(n.return!==r.return)n=i,r=o;else{for(var a=!1,l=i.child;l;){if(l===n){a=!0,n=i,r=o;break}if(l===r){a=!0,r=i,n=o;break}l=l.sibling}if(!a){for(l=o.child;l;){if(l===n){a=!0,n=o,r=i;break}if(l===r){a=!0,r=o,n=i;break}l=l.sibling}if(!a)throw Error(Ct(189))}}if(n.alternate!==r)throw Error(Ct(190))}if(n.tag!==3)throw Error(Ct(188));return n.stateNode.current===n?e:t}function UR(e){return e=qV(e),e!==null?KR(e):null}function KR(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=KR(e);if(t!==null)return t;e=e.sibling}return null}var VR=na.unstable_scheduleCallback,O_=na.unstable_cancelCallback,XV=na.unstable_shouldYield,YV=na.unstable_requestPaint,Kr=na.unstable_now,QV=na.unstable_getCurrentPriorityLevel,bx=na.unstable_ImmediatePriority,GR=na.unstable_UserBlockingPriority,$v=na.unstable_NormalPriority,ZV=na.unstable_LowPriority,qR=na.unstable_IdlePriority,Gy=null,kl=null;function JV(e){if(kl&&typeof kl.onCommitFiberRoot=="function")try{kl.onCommitFiberRoot(Gy,e,void 0,(e.current.flags&128)===128)}catch{}}var Ja=Math.clz32?Math.clz32:nG,eG=Math.log,tG=Math.LN2;function nG(e){return e>>>=0,e===0?32:31-(eG(e)/tG|0)|0}var N0=64,A0=4194304;function Rp(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Nv(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,a=n&268435455;if(a!==0){var l=a&~i;l!==0?r=Rp(l):(o&=a,o!==0&&(r=Rp(o)))}else a=n&~i,a!==0?r=Rp(a):o!==0&&(r=Rp(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,o=t&-t,i>=o||i===16&&(o&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-Ja(t),i=1<<n,r|=e[n],t&=~i;return r}function rG(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function iG(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,o=e.pendingLanes;0<o;){var a=31-Ja(o),l=1<<a,c=i[a];c===-1?(!(l&n)||l&r)&&(i[a]=rG(l,t)):c<=t&&(e.expiredLanes|=l),o&=~l}}function AC(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function XR(){var e=N0;return N0<<=1,!(N0&4194240)&&(N0=64),e}function j5(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function gm(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Ja(t),e[t]=n}function oG(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-Ja(n),o=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~o}}function Cx(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Ja(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var Qn=0;function YR(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var QR,Sx,ZR,JR,eM,RC=!1,R0=[],cc=null,uc=null,dc=null,xh=new Map,wh=new Map,ec=[],aG="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function I_(e,t){switch(e){case"focusin":case"focusout":cc=null;break;case"dragenter":case"dragleave":uc=null;break;case"mouseover":case"mouseout":dc=null;break;case"pointerover":case"pointerout":xh.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":wh.delete(t.pointerId)}}function np(e,t,n,r,i,o){return e===null||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[i]},t!==null&&(t=ym(t),t!==null&&Sx(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function lG(e,t,n,r,i){switch(t){case"focusin":return cc=np(cc,e,t,n,r,i),!0;case"dragenter":return uc=np(uc,e,t,n,r,i),!0;case"mouseover":return dc=np(dc,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return xh.set(o,np(xh.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,wh.set(o,np(wh.get(o)||null,e,t,n,r,i)),!0}return!1}function tM(e){var t=hu(e.target);if(t!==null){var n=Ku(t);if(n!==null){if(t=n.tag,t===13){if(t=WR(n),t!==null){e.blockedOn=t,eM(e.priority,function(){ZR(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Hg(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=MC(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);IC=r,n.target.dispatchEvent(r),IC=null}else return t=ym(n),t!==null&&Sx(t),e.blockedOn=n,!1;t.shift()}return!0}function k_(e,t,n){Hg(e)&&n.delete(t)}function sG(){RC=!1,cc!==null&&Hg(cc)&&(cc=null),uc!==null&&Hg(uc)&&(uc=null),dc!==null&&Hg(dc)&&(dc=null),xh.forEach(k_),wh.forEach(k_)}function rp(e,t){e.blockedOn===t&&(e.blockedOn=null,RC||(RC=!0,na.unstable_scheduleCallback(na.unstable_NormalPriority,sG)))}function _h(e){function t(i){return rp(i,e)}if(0<R0.length){rp(R0[0],e);for(var n=1;n<R0.length;n++){var r=R0[n];r.blockedOn===e&&(r.blockedOn=null)}}for(cc!==null&&rp(cc,e),uc!==null&&rp(uc,e),dc!==null&&rp(dc,e),xh.forEach(t),wh.forEach(t),n=0;n<ec.length;n++)r=ec[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<ec.length&&(n=ec[0],n.blockedOn===null);)tM(n),n.blockedOn===null&&ec.shift()}var yf=Ss.ReactCurrentBatchConfig,Av=!0;function cG(e,t,n,r){var i=Qn,o=yf.transition;yf.transition=null;try{Qn=1,Ex(e,t,n,r)}finally{Qn=i,yf.transition=o}}function uG(e,t,n,r){var i=Qn,o=yf.transition;yf.transition=null;try{Qn=4,Ex(e,t,n,r)}finally{Qn=i,yf.transition=o}}function Ex(e,t,n,r){if(Av){var i=MC(e,t,n,r);if(i===null)Y5(e,t,r,Rv,n),I_(e,r);else if(lG(i,e,t,n,r))r.stopPropagation();else if(I_(e,r),t&4&&-1<aG.indexOf(e)){for(;i!==null;){var o=ym(i);if(o!==null&&QR(o),o=MC(e,t,n,r),o===null&&Y5(e,t,r,Rv,n),o===i)break;i=o}i!==null&&r.stopPropagation()}else Y5(e,t,r,null,n)}}var Rv=null;function MC(e,t,n,r){if(Rv=null,e=yx(r),e=hu(e),e!==null)if(t=Ku(e),t===null)e=null;else if(n=t.tag,n===13){if(e=WR(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Rv=e,null}function nM(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(QV()){case bx:return 1;case GR:return 4;case $v:case ZV:return 16;case qR:return 536870912;default:return 16}default:return 16}}var nc=null,xx=null,zg=null;function rM(){if(zg)return zg;var e,t=xx,n=t.length,r,i="value"in nc?nc.value:nc.textContent,o=i.length;for(e=0;e<n&&t[e]===i[e];e++);var a=n-e;for(r=1;r<=a&&t[n-r]===i[o-r];r++);return zg=i.slice(e,1<r?1-r:void 0)}function Wg(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function M0(){return!0}function $_(){return!1}function aa(e){function t(n,r,i,o,a){this._reactName=n,this._targetInst=i,this.type=r,this.nativeEvent=o,this.target=a,this.currentTarget=null;for(var l in e)e.hasOwnProperty(l)&&(n=e[l],this[l]=n?n(o):o[l]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?M0:$_,this.isPropagationStopped=$_,this}return Ar(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=M0)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=M0)},persist:function(){},isPersistent:M0}),t}var o1={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},wx=aa(o1),vm=Ar({},o1,{view:0,detail:0}),dG=aa(vm),H5,z5,ip,qy=Ar({},vm,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:_x,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==ip&&(ip&&e.type==="mousemove"?(H5=e.screenX-ip.screenX,z5=e.screenY-ip.screenY):z5=H5=0,ip=e),H5)},movementY:function(e){return"movementY"in e?e.movementY:z5}}),N_=aa(qy),fG=Ar({},qy,{dataTransfer:0}),pG=aa(fG),hG=Ar({},vm,{relatedTarget:0}),W5=aa(hG),mG=Ar({},o1,{animationName:0,elapsedTime:0,pseudoElement:0}),gG=aa(mG),vG=Ar({},o1,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),yG=aa(vG),bG=Ar({},o1,{data:0}),A_=aa(bG),CG={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},SG={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"},EG={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function xG(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=EG[e])?!!t[e]:!1}function _x(){return xG}var wG=Ar({},vm,{key:function(e){if(e.key){var t=CG[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Wg(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?SG[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:_x,charCode:function(e){return e.type==="keypress"?Wg(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Wg(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),_G=aa(wG),TG=Ar({},qy,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),R_=aa(TG),OG=Ar({},vm,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:_x}),IG=aa(OG),kG=Ar({},o1,{propertyName:0,elapsedTime:0,pseudoElement:0}),$G=aa(kG),NG=Ar({},qy,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),AG=aa(NG),RG=[9,13,27,32],Tx=hs&&"CompositionEvent"in window,Kp=null;hs&&"documentMode"in document&&(Kp=document.documentMode);var MG=hs&&"TextEvent"in window&&!Kp,iM=hs&&(!Tx||Kp&&8<Kp&&11>=Kp),M_=" ",P_=!1;function oM(e,t){switch(e){case"keyup":return RG.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function aM(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var qd=!1;function PG(e,t){switch(e){case"compositionend":return aM(t);case"keypress":return t.which!==32?null:(P_=!0,M_);case"textInput":return e=t.data,e===M_&&P_?null:e;default:return null}}function LG(e,t){if(qd)return e==="compositionend"||!Tx&&oM(e,t)?(e=rM(),zg=xx=nc=null,qd=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return iM&&t.locale!=="ko"?null:t.data;default:return null}}var DG={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 L_(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!DG[e.type]:t==="textarea"}function lM(e,t,n,r){FR(r),t=Mv(t,"onChange"),0<t.length&&(n=new wx("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Vp=null,Th=null;function FG(e){yM(e,0)}function Xy(e){var t=Qd(e);if(NR(t))return e}function BG(e,t){if(e==="change")return t}var sM=!1;if(hs){var U5;if(hs){var K5="oninput"in document;if(!K5){var D_=document.createElement("div");D_.setAttribute("oninput","return;"),K5=typeof D_.oninput=="function"}U5=K5}else U5=!1;sM=U5&&(!document.documentMode||9<document.documentMode)}function F_(){Vp&&(Vp.detachEvent("onpropertychange",cM),Th=Vp=null)}function cM(e){if(e.propertyName==="value"&&Xy(Th)){var t=[];lM(t,Th,e,yx(e)),zR(FG,t)}}function jG(e,t,n){e==="focusin"?(F_(),Vp=t,Th=n,Vp.attachEvent("onpropertychange",cM)):e==="focusout"&&F_()}function HG(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Xy(Th)}function zG(e,t){if(e==="click")return Xy(t)}function WG(e,t){if(e==="input"||e==="change")return Xy(t)}function UG(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var ol=typeof Object.is=="function"?Object.is:UG;function Oh(e,t){if(ol(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!gC.call(t,i)||!ol(e[i],t[i]))return!1}return!0}function B_(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function j_(e,t){var n=B_(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=B_(n)}}function uM(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?uM(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function dM(){for(var e=window,t=Ov();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Ov(e.document)}return t}function Ox(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function KG(e){var t=dM(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&uM(n.ownerDocument.documentElement,n)){if(r!==null&&Ox(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=r.end===void 0?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=j_(n,o);var a=j_(n,r);i&&a&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var VG=hs&&"documentMode"in document&&11>=document.documentMode,Xd=null,PC=null,Gp=null,LC=!1;function H_(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;LC||Xd==null||Xd!==Ov(r)||(r=Xd,"selectionStart"in r&&Ox(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Gp&&Oh(Gp,r)||(Gp=r,r=Mv(PC,"onSelect"),0<r.length&&(t=new wx("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Xd)))}function P0(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Yd={animationend:P0("Animation","AnimationEnd"),animationiteration:P0("Animation","AnimationIteration"),animationstart:P0("Animation","AnimationStart"),transitionend:P0("Transition","TransitionEnd")},V5={},fM={};hs&&(fM=document.createElement("div").style,"AnimationEvent"in window||(delete Yd.animationend.animation,delete Yd.animationiteration.animation,delete Yd.animationstart.animation),"TransitionEvent"in window||delete Yd.transitionend.transition);function Yy(e){if(V5[e])return V5[e];if(!Yd[e])return e;var t=Yd[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in fM)return V5[e]=t[n];return e}var pM=Yy("animationend"),hM=Yy("animationiteration"),mM=Yy("animationstart"),gM=Yy("transitionend"),vM=new Map,z_="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function kc(e,t){vM.set(e,t),Uu(t,[e])}for(var G5=0;G5<z_.length;G5++){var q5=z_[G5],GG=q5.toLowerCase(),qG=q5[0].toUpperCase()+q5.slice(1);kc(GG,"on"+qG)}kc(pM,"onAnimationEnd");kc(hM,"onAnimationIteration");kc(mM,"onAnimationStart");kc("dblclick","onDoubleClick");kc("focusin","onFocus");kc("focusout","onBlur");kc(gM,"onTransitionEnd");$f("onMouseEnter",["mouseout","mouseover"]);$f("onMouseLeave",["mouseout","mouseover"]);$f("onPointerEnter",["pointerout","pointerover"]);$f("onPointerLeave",["pointerout","pointerover"]);Uu("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Uu("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Uu("onBeforeInput",["compositionend","keypress","textInput","paste"]);Uu("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Uu("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Uu("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Mp="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(" "),XG=new Set("cancel close invalid load scroll toggle".split(" ").concat(Mp));function W_(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,GV(r,t,void 0,e),e.currentTarget=null}function yM(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var a=r.length-1;0<=a;a--){var l=r[a],c=l.instance,u=l.currentTarget;if(l=l.listener,c!==o&&i.isPropagationStopped())break e;W_(i,l,u),o=c}else for(a=0;a<r.length;a++){if(l=r[a],c=l.instance,u=l.currentTarget,l=l.listener,c!==o&&i.isPropagationStopped())break e;W_(i,l,u),o=c}}}if(kv)throw e=NC,kv=!1,NC=null,e}function mr(e,t){var n=t[HC];n===void 0&&(n=t[HC]=new Set);var r=e+"__bubble";n.has(r)||(bM(t,e,2,!1),n.add(r))}function X5(e,t,n){var r=0;t&&(r|=4),bM(n,e,r,t)}var L0="_reactListening"+Math.random().toString(36).slice(2);function Ih(e){if(!e[L0]){e[L0]=!0,TR.forEach(function(n){n!=="selectionchange"&&(XG.has(n)||X5(n,!1,e),X5(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[L0]||(t[L0]=!0,X5("selectionchange",!1,t))}}function bM(e,t,n,r){switch(nM(t)){case 1:var i=cG;break;case 4:i=uG;break;default:i=Ex}n=i.bind(null,t,n,e),i=void 0,!$C||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),r?i!==void 0?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):i!==void 0?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function Y5(e,t,n,r,i){var o=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var a=r.tag;if(a===3||a===4){var l=r.stateNode.containerInfo;if(l===i||l.nodeType===8&&l.parentNode===i)break;if(a===4)for(a=r.return;a!==null;){var c=a.tag;if((c===3||c===4)&&(c=a.stateNode.containerInfo,c===i||c.nodeType===8&&c.parentNode===i))return;a=a.return}for(;l!==null;){if(a=hu(l),a===null)return;if(c=a.tag,c===5||c===6){r=o=a;continue e}l=l.parentNode}}r=r.return}zR(function(){var u=o,p=yx(n),h=[];e:{var m=vM.get(e);if(m!==void 0){var g=wx,b=e;switch(e){case"keypress":if(Wg(n)===0)break e;case"keydown":case"keyup":g=_G;break;case"focusin":b="focus",g=W5;break;case"focusout":b="blur",g=W5;break;case"beforeblur":case"afterblur":g=W5;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":g=N_;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":g=pG;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":g=IG;break;case pM:case hM:case mM:g=gG;break;case gM:g=$G;break;case"scroll":g=dG;break;case"wheel":g=AG;break;case"copy":case"cut":case"paste":g=yG;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":g=R_}var E=(t&4)!==0,x=!E&&e==="scroll",S=E?m!==null?m+"Capture":null:m;E=[];for(var C=u,_;C!==null;){_=C;var O=_.stateNode;if(_.tag===5&&O!==null&&(_=O,S!==null&&(O=Eh(C,S),O!=null&&E.push(kh(C,O,_)))),x)break;C=C.return}0<E.length&&(m=new g(m,b,null,n,p),h.push({event:m,listeners:E}))}}if(!(t&7)){e:{if(m=e==="mouseover"||e==="pointerover",g=e==="mouseout"||e==="pointerout",m&&n!==IC&&(b=n.relatedTarget||n.fromElement)&&(hu(b)||b[ms]))break e;if((g||m)&&(m=p.window===p?p:(m=p.ownerDocument)?m.defaultView||m.parentWindow:window,g?(b=n.relatedTarget||n.toElement,g=u,b=b?hu(b):null,b!==null&&(x=Ku(b),b!==x||b.tag!==5&&b.tag!==6)&&(b=null)):(g=null,b=u),g!==b)){if(E=N_,O="onMouseLeave",S="onMouseEnter",C="mouse",(e==="pointerout"||e==="pointerover")&&(E=R_,O="onPointerLeave",S="onPointerEnter",C="pointer"),x=g==null?m:Qd(g),_=b==null?m:Qd(b),m=new E(O,C+"leave",g,n,p),m.target=x,m.relatedTarget=_,O=null,hu(p)===u&&(E=new E(S,C+"enter",b,n,p),E.target=_,E.relatedTarget=x,O=E),x=O,g&&b)t:{for(E=g,S=b,C=0,_=E;_;_=Ed(_))C++;for(_=0,O=S;O;O=Ed(O))_++;for(;0<C-_;)E=Ed(E),C--;for(;0<_-C;)S=Ed(S),_--;for(;C--;){if(E===S||S!==null&&E===S.alternate)break t;E=Ed(E),S=Ed(S)}E=null}else E=null;g!==null&&U_(h,m,g,E,!1),b!==null&&x!==null&&U_(h,x,b,E,!0)}}e:{if(m=u?Qd(u):window,g=m.nodeName&&m.nodeName.toLowerCase(),g==="select"||g==="input"&&m.type==="file")var k=BG;else if(L_(m))if(sM)k=WG;else{k=HG;var T=jG}else(g=m.nodeName)&&g.toLowerCase()==="input"&&(m.type==="checkbox"||m.type==="radio")&&(k=zG);if(k&&(k=k(e,u))){lM(h,k,n,p);break e}T&&T(e,m,u),e==="focusout"&&(T=m._wrapperState)&&T.controlled&&m.type==="number"&&xC(m,"number",m.value)}switch(T=u?Qd(u):window,e){case"focusin":(L_(T)||T.contentEditable==="true")&&(Xd=T,PC=u,Gp=null);break;case"focusout":Gp=PC=Xd=null;break;case"mousedown":LC=!0;break;case"contextmenu":case"mouseup":case"dragend":LC=!1,H_(h,n,p);break;case"selectionchange":if(VG)break;case"keydown":case"keyup":H_(h,n,p)}var I;if(Tx)e:{switch(e){case"compositionstart":var $="onCompositionStart";break e;case"compositionend":$="onCompositionEnd";break e;case"compositionupdate":$="onCompositionUpdate";break e}$=void 0}else qd?oM(e,n)&&($="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&($="onCompositionStart");$&&(iM&&n.locale!=="ko"&&(qd||$!=="onCompositionStart"?$==="onCompositionEnd"&&qd&&(I=rM()):(nc=p,xx="value"in nc?nc.value:nc.textContent,qd=!0)),T=Mv(u,$),0<T.length&&($=new A_($,e,null,n,p),h.push({event:$,listeners:T}),I?$.data=I:(I=aM(n),I!==null&&($.data=I)))),(I=MG?PG(e,n):LG(e,n))&&(u=Mv(u,"onBeforeInput"),0<u.length&&(p=new A_("onBeforeInput","beforeinput",null,n,p),h.push({event:p,listeners:u}),p.data=I))}yM(h,t)})}function kh(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Mv(e,t){for(var n=t+"Capture",r=[];e!==null;){var i=e,o=i.stateNode;i.tag===5&&o!==null&&(i=o,o=Eh(e,n),o!=null&&r.unshift(kh(e,o,i)),o=Eh(e,t),o!=null&&r.push(kh(e,o,i))),e=e.return}return r}function Ed(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function U_(e,t,n,r,i){for(var o=t._reactName,a=[];n!==null&&n!==r;){var l=n,c=l.alternate,u=l.stateNode;if(c!==null&&c===r)break;l.tag===5&&u!==null&&(l=u,i?(c=Eh(n,o),c!=null&&a.unshift(kh(n,c,l))):i||(c=Eh(n,o),c!=null&&a.push(kh(n,c,l)))),n=n.return}a.length!==0&&e.push({event:t,listeners:a})}var YG=/\r\n?/g,QG=/\u0000|\uFFFD/g;function K_(e){return(typeof e=="string"?e:""+e).replace(YG,`
`).replace(QG,"")}function D0(e,t,n){if(t=K_(t),K_(e)!==t&&n)throw Error(Ct(425))}function Pv(){}var DC=null,FC=null;function BC(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var jC=typeof setTimeout=="function"?setTimeout:void 0,ZG=typeof clearTimeout=="function"?clearTimeout:void 0,V_=typeof Promise=="function"?Promise:void 0,JG=typeof queueMicrotask=="function"?queueMicrotask:typeof V_<"u"?function(e){return V_.resolve(null).then(e).catch(eq)}:jC;function eq(e){setTimeout(function(){throw e})}function Q5(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(r===0){e.removeChild(i),_h(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);_h(t)}function fc(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function G_(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var a1=Math.random().toString(36).slice(2),Ol="__reactFiber$"+a1,$h="__reactProps$"+a1,ms="__reactContainer$"+a1,HC="__reactEvents$"+a1,tq="__reactListeners$"+a1,nq="__reactHandles$"+a1;function hu(e){var t=e[Ol];if(t)return t;for(var n=e.parentNode;n;){if(t=n[ms]||n[Ol]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=G_(e);e!==null;){if(n=e[Ol])return n;e=G_(e)}return t}e=n,n=e.parentNode}return null}function ym(e){return e=e[Ol]||e[ms],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Qd(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(Ct(33))}function Qy(e){return e[$h]||null}var zC=[],Zd=-1;function $c(e){return{current:e}}function yr(e){0>Zd||(e.current=zC[Zd],zC[Zd]=null,Zd--)}function fr(e,t){Zd++,zC[Zd]=e.current,e.current=t}var Sc={},Yi=$c(Sc),$o=$c(!1),Au=Sc;function Nf(e,t){var n=e.type.contextTypes;if(!n)return Sc;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in n)i[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function No(e){return e=e.childContextTypes,e!=null}function Lv(){yr($o),yr(Yi)}function q_(e,t,n){if(Yi.current!==Sc)throw Error(Ct(168));fr(Yi,t),fr($o,n)}function CM(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(Ct(108,jV(e)||"Unknown",i));return Ar({},n,r)}function Dv(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Sc,Au=Yi.current,fr(Yi,e),fr($o,$o.current),!0}function X_(e,t,n){var r=e.stateNode;if(!r)throw Error(Ct(169));n?(e=CM(e,t,Au),r.__reactInternalMemoizedMergedChildContext=e,yr($o),yr(Yi),fr(Yi,e)):yr($o),fr($o,n)}var ss=null,Zy=!1,Z5=!1;function SM(e){ss===null?ss=[e]:ss.push(e)}function rq(e){Zy=!0,SM(e)}function Nc(){if(!Z5&&ss!==null){Z5=!0;var e=0,t=Qn;try{var n=ss;for(Qn=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}ss=null,Zy=!1}catch(i){throw ss!==null&&(ss=ss.slice(e+1)),VR(bx,Nc),i}finally{Qn=t,Z5=!1}}return null}var Jd=[],ef=0,Fv=null,Bv=0,ga=[],va=0,Ru=null,ds=1,fs="";function au(e,t){Jd[ef++]=Bv,Jd[ef++]=Fv,Fv=e,Bv=t}function EM(e,t,n){ga[va++]=ds,ga[va++]=fs,ga[va++]=Ru,Ru=e;var r=ds;e=fs;var i=32-Ja(r)-1;r&=~(1<<i),n+=1;var o=32-Ja(t)+i;if(30<o){var a=i-i%5;o=(r&(1<<a)-1).toString(32),r>>=a,i-=a,ds=1<<32-Ja(t)+i|n<<i|r,fs=o+e}else ds=1<<o|n<<i|r,fs=e}function Ix(e){e.return!==null&&(au(e,1),EM(e,1,0))}function kx(e){for(;e===Fv;)Fv=Jd[--ef],Jd[ef]=null,Bv=Jd[--ef],Jd[ef]=null;for(;e===Ru;)Ru=ga[--va],ga[va]=null,fs=ga[--va],ga[va]=null,ds=ga[--va],ga[va]=null}var ea=null,Xo=null,wr=!1,Qa=null;function xM(e,t){var n=ba(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function Y_(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,ea=e,Xo=fc(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,ea=e,Xo=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Ru!==null?{id:ds,overflow:fs}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=ba(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,ea=e,Xo=null,!0):!1;default:return!1}}function WC(e){return(e.mode&1)!==0&&(e.flags&128)===0}function UC(e){if(wr){var t=Xo;if(t){var n=t;if(!Y_(e,t)){if(WC(e))throw Error(Ct(418));t=fc(n.nextSibling);var r=ea;t&&Y_(e,t)?xM(r,n):(e.flags=e.flags&-4097|2,wr=!1,ea=e)}}else{if(WC(e))throw Error(Ct(418));e.flags=e.flags&-4097|2,wr=!1,ea=e}}}function Q_(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;ea=e}function F0(e){if(e!==ea)return!1;if(!wr)return Q_(e),wr=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!BC(e.type,e.memoizedProps)),t&&(t=Xo)){if(WC(e))throw wM(),Error(Ct(418));for(;t;)xM(e,t),t=fc(t.nextSibling)}if(Q_(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(Ct(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){Xo=fc(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Xo=null}}else Xo=ea?fc(e.stateNode.nextSibling):null;return!0}function wM(){for(var e=Xo;e;)e=fc(e.nextSibling)}function Af(){Xo=ea=null,wr=!1}function $x(e){Qa===null?Qa=[e]:Qa.push(e)}var iq=Ss.ReactCurrentBatchConfig;function op(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(Ct(309));var r=n.stateNode}if(!r)throw Error(Ct(147,e));var i=r,o=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===o?t.ref:(t=function(a){var l=i.refs;a===null?delete l[o]:l[o]=a},t._stringRef=o,t)}if(typeof e!="string")throw Error(Ct(284));if(!n._owner)throw Error(Ct(290,e))}return e}function B0(e,t){throw e=Object.prototype.toString.call(t),Error(Ct(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Z_(e){var t=e._init;return t(e._payload)}function _M(e){function t(S,C){if(e){var _=S.deletions;_===null?(S.deletions=[C],S.flags|=16):_.push(C)}}function n(S,C){if(!e)return null;for(;C!==null;)t(S,C),C=C.sibling;return null}function r(S,C){for(S=new Map;C!==null;)C.key!==null?S.set(C.key,C):S.set(C.index,C),C=C.sibling;return S}function i(S,C){return S=gc(S,C),S.index=0,S.sibling=null,S}function o(S,C,_){return S.index=_,e?(_=S.alternate,_!==null?(_=_.index,_<C?(S.flags|=2,C):_):(S.flags|=2,C)):(S.flags|=1048576,C)}function a(S){return e&&S.alternate===null&&(S.flags|=2),S}function l(S,C,_,O){return C===null||C.tag!==6?(C=o4(_,S.mode,O),C.return=S,C):(C=i(C,_),C.return=S,C)}function c(S,C,_,O){var k=_.type;return k===Gd?p(S,C,_.props.children,O,_.key):C!==null&&(C.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===Ys&&Z_(k)===C.type)?(O=i(C,_.props),O.ref=op(S,C,_),O.return=S,O):(O=Yg(_.type,_.key,_.props,null,S.mode,O),O.ref=op(S,C,_),O.return=S,O)}function u(S,C,_,O){return C===null||C.tag!==4||C.stateNode.containerInfo!==_.containerInfo||C.stateNode.implementation!==_.implementation?(C=a4(_,S.mode,O),C.return=S,C):(C=i(C,_.children||[]),C.return=S,C)}function p(S,C,_,O,k){return C===null||C.tag!==7?(C=_u(_,S.mode,O,k),C.return=S,C):(C=i(C,_),C.return=S,C)}function h(S,C,_){if(typeof C=="string"&&C!==""||typeof C=="number")return C=o4(""+C,S.mode,_),C.return=S,C;if(typeof C=="object"&&C!==null){switch(C.$$typeof){case I0:return _=Yg(C.type,C.key,C.props,null,S.mode,_),_.ref=op(S,null,C),_.return=S,_;case Vd:return C=a4(C,S.mode,_),C.return=S,C;case Ys:var O=C._init;return h(S,O(C._payload),_)}if(Ap(C)||ep(C))return C=_u(C,S.mode,_,null),C.return=S,C;B0(S,C)}return null}function m(S,C,_,O){var k=C!==null?C.key:null;if(typeof _=="string"&&_!==""||typeof _=="number")return k!==null?null:l(S,C,""+_,O);if(typeof _=="object"&&_!==null){switch(_.$$typeof){case I0:return _.key===k?c(S,C,_,O):null;case Vd:return _.key===k?u(S,C,_,O):null;case Ys:return k=_._init,m(S,C,k(_._payload),O)}if(Ap(_)||ep(_))return k!==null?null:p(S,C,_,O,null);B0(S,_)}return null}function g(S,C,_,O,k){if(typeof O=="string"&&O!==""||typeof O=="number")return S=S.get(_)||null,l(C,S,""+O,k);if(typeof O=="object"&&O!==null){switch(O.$$typeof){case I0:return S=S.get(O.key===null?_:O.key)||null,c(C,S,O,k);case Vd:return S=S.get(O.key===null?_:O.key)||null,u(C,S,O,k);case Ys:var T=O._init;return g(S,C,_,T(O._payload),k)}if(Ap(O)||ep(O))return S=S.get(_)||null,p(C,S,O,k,null);B0(C,O)}return null}function b(S,C,_,O){for(var k=null,T=null,I=C,$=C=0,M=null;I!==null&&$<_.length;$++){I.index>$?(M=I,I=null):M=I.sibling;var R=m(S,I,_[$],O);if(R===null){I===null&&(I=M);break}e&&I&&R.alternate===null&&t(S,I),C=o(R,C,$),T===null?k=R:T.sibling=R,T=R,I=M}if($===_.length)return n(S,I),wr&&au(S,$),k;if(I===null){for(;$<_.length;$++)I=h(S,_[$],O),I!==null&&(C=o(I,C,$),T===null?k=I:T.sibling=I,T=I);return wr&&au(S,$),k}for(I=r(S,I);$<_.length;$++)M=g(I,S,$,_[$],O),M!==null&&(e&&M.alternate!==null&&I.delete(M.key===null?$:M.key),C=o(M,C,$),T===null?k=M:T.sibling=M,T=M);return e&&I.forEach(function(j){return t(S,j)}),wr&&au(S,$),k}function E(S,C,_,O){var k=ep(_);if(typeof k!="function")throw Error(Ct(150));if(_=k.call(_),_==null)throw Error(Ct(151));for(var T=k=null,I=C,$=C=0,M=null,R=_.next();I!==null&&!R.done;$++,R=_.next()){I.index>$?(M=I,I=null):M=I.sibling;var j=m(S,I,R.value,O);if(j===null){I===null&&(I=M);break}e&&I&&j.alternate===null&&t(S,I),C=o(j,C,$),T===null?k=j:T.sibling=j,T=j,I=M}if(R.done)return n(S,I),wr&&au(S,$),k;if(I===null){for(;!R.done;$++,R=_.next())R=h(S,R.value,O),R!==null&&(C=o(R,C,$),T===null?k=R:T.sibling=R,T=R);return wr&&au(S,$),k}for(I=r(S,I);!R.done;$++,R=_.next())R=g(I,S,$,R.value,O),R!==null&&(e&&R.alternate!==null&&I.delete(R.key===null?$:R.key),C=o(R,C,$),T===null?k=R:T.sibling=R,T=R);return e&&I.forEach(function(D){return t(S,D)}),wr&&au(S,$),k}function x(S,C,_,O){if(typeof _=="object"&&_!==null&&_.type===Gd&&_.key===null&&(_=_.props.children),typeof _=="object"&&_!==null){switch(_.$$typeof){case I0:e:{for(var k=_.key,T=C;T!==null;){if(T.key===k){if(k=_.type,k===Gd){if(T.tag===7){n(S,T.sibling),C=i(T,_.props.children),C.return=S,S=C;break e}}else if(T.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===Ys&&Z_(k)===T.type){n(S,T.sibling),C=i(T,_.props),C.ref=op(S,T,_),C.return=S,S=C;break e}n(S,T);break}else t(S,T);T=T.sibling}_.type===Gd?(C=_u(_.props.children,S.mode,O,_.key),C.return=S,S=C):(O=Yg(_.type,_.key,_.props,null,S.mode,O),O.ref=op(S,C,_),O.return=S,S=O)}return a(S);case Vd:e:{for(T=_.key;C!==null;){if(C.key===T)if(C.tag===4&&C.stateNode.containerInfo===_.containerInfo&&C.stateNode.implementation===_.implementation){n(S,C.sibling),C=i(C,_.children||[]),C.return=S,S=C;break e}else{n(S,C);break}else t(S,C);C=C.sibling}C=a4(_,S.mode,O),C.return=S,S=C}return a(S);case Ys:return T=_._init,x(S,C,T(_._payload),O)}if(Ap(_))return b(S,C,_,O);if(ep(_))return E(S,C,_,O);B0(S,_)}return typeof _=="string"&&_!==""||typeof _=="number"?(_=""+_,C!==null&&C.tag===6?(n(S,C.sibling),C=i(C,_),C.return=S,S=C):(n(S,C),C=o4(_,S.mode,O),C.return=S,S=C),a(S)):n(S,C)}return x}var Rf=_M(!0),TM=_M(!1),jv=$c(null),Hv=null,tf=null,Nx=null;function Ax(){Nx=tf=Hv=null}function Rx(e){var t=jv.current;yr(jv),e._currentValue=t}function KC(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function bf(e,t){Hv=e,Nx=tf=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Oo=!0),e.firstContext=null)}function wa(e){var t=e._currentValue;if(Nx!==e)if(e={context:e,memoizedValue:t,next:null},tf===null){if(Hv===null)throw Error(Ct(308));tf=e,Hv.dependencies={lanes:0,firstContext:e}}else tf=tf.next=e;return t}var mu=null;function Mx(e){mu===null?mu=[e]:mu.push(e)}function OM(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,Mx(t)):(n.next=i.next,i.next=n),t.interleaved=n,gs(e,r)}function gs(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Qs=!1;function Px(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function IM(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function ps(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function pc(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,jn&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,gs(e,n)}return i=r.interleaved,i===null?(t.next=t,Mx(r)):(t.next=i.next,i.next=t),r.interleaved=t,gs(e,n)}function Ug(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Cx(e,n)}}function J_(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?i=o=a:o=o.next=a,n=n.next}while(n!==null);o===null?i=o=t:o=o.next=t}else i=o=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function zv(e,t,n,r){var i=e.updateQueue;Qs=!1;var o=i.firstBaseUpdate,a=i.lastBaseUpdate,l=i.shared.pending;if(l!==null){i.shared.pending=null;var c=l,u=c.next;c.next=null,a===null?o=u:a.next=u,a=c;var p=e.alternate;p!==null&&(p=p.updateQueue,l=p.lastBaseUpdate,l!==a&&(l===null?p.firstBaseUpdate=u:l.next=u,p.lastBaseUpdate=c))}if(o!==null){var h=i.baseState;a=0,p=u=c=null,l=o;do{var m=l.lane,g=l.eventTime;if((r&m)===m){p!==null&&(p=p.next={eventTime:g,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var b=e,E=l;switch(m=t,g=n,E.tag){case 1:if(b=E.payload,typeof b=="function"){h=b.call(g,h,m);break e}h=b;break e;case 3:b.flags=b.flags&-65537|128;case 0:if(b=E.payload,m=typeof b=="function"?b.call(g,h,m):b,m==null)break e;h=Ar({},h,m);break e;case 2:Qs=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,m=i.effects,m===null?i.effects=[l]:m.push(l))}else g={eventTime:g,lane:m,tag:l.tag,payload:l.payload,callback:l.callback,next:null},p===null?(u=p=g,c=h):p=p.next=g,a|=m;if(l=l.next,l===null){if(l=i.shared.pending,l===null)break;m=l,l=m.next,m.next=null,i.lastBaseUpdate=m,i.shared.pending=null}}while(!0);if(p===null&&(c=h),i.baseState=c,i.firstBaseUpdate=u,i.lastBaseUpdate=p,t=i.shared.interleaved,t!==null){i=t;do a|=i.lane,i=i.next;while(i!==t)}else o===null&&(i.shared.lanes=0);Pu|=a,e.lanes=a,e.memoizedState=h}}function eT(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(i!==null){if(r.callback=null,r=n,typeof i!="function")throw Error(Ct(191,i));i.call(r)}}}var bm={},$l=$c(bm),Nh=$c(bm),Ah=$c(bm);function gu(e){if(e===bm)throw Error(Ct(174));return e}function Lx(e,t){switch(fr(Ah,t),fr(Nh,e),fr($l,bm),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:_C(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=_C(t,e)}yr($l),fr($l,t)}function Mf(){yr($l),yr(Nh),yr(Ah)}function kM(e){gu(Ah.current);var t=gu($l.current),n=_C(t,e.type);t!==n&&(fr(Nh,e),fr($l,n))}function Dx(e){Nh.current===e&&(yr($l),yr(Nh))}var $r=$c(0);function Wv(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var J5=[];function Fx(){for(var e=0;e<J5.length;e++)J5[e]._workInProgressVersionPrimary=null;J5.length=0}var Kg=Ss.ReactCurrentDispatcher,e4=Ss.ReactCurrentBatchConfig,Mu=0,Nr=null,mi=null,xi=null,Uv=!1,qp=!1,Rh=0,oq=0;function zi(){throw Error(Ct(321))}function Bx(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!ol(e[n],t[n]))return!1;return!0}function jx(e,t,n,r,i,o){if(Mu=o,Nr=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Kg.current=e===null||e.memoizedState===null?cq:uq,e=n(r,i),qp){o=0;do{if(qp=!1,Rh=0,25<=o)throw Error(Ct(301));o+=1,xi=mi=null,t.updateQueue=null,Kg.current=dq,e=n(r,i)}while(qp)}if(Kg.current=Kv,t=mi!==null&&mi.next!==null,Mu=0,xi=mi=Nr=null,Uv=!1,t)throw Error(Ct(300));return e}function Hx(){var e=Rh!==0;return Rh=0,e}function Sl(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return xi===null?Nr.memoizedState=xi=e:xi=xi.next=e,xi}function _a(){if(mi===null){var e=Nr.alternate;e=e!==null?e.memoizedState:null}else e=mi.next;var t=xi===null?Nr.memoizedState:xi.next;if(t!==null)xi=t,mi=e;else{if(e===null)throw Error(Ct(310));mi=e,e={memoizedState:mi.memoizedState,baseState:mi.baseState,baseQueue:mi.baseQueue,queue:mi.queue,next:null},xi===null?Nr.memoizedState=xi=e:xi=xi.next=e}return xi}function Mh(e,t){return typeof t=="function"?t(e):t}function t4(e){var t=_a(),n=t.queue;if(n===null)throw Error(Ct(311));n.lastRenderedReducer=e;var r=mi,i=r.baseQueue,o=n.pending;if(o!==null){if(i!==null){var a=i.next;i.next=o.next,o.next=a}r.baseQueue=i=o,n.pending=null}if(i!==null){o=i.next,r=r.baseState;var l=a=null,c=null,u=o;do{var p=u.lane;if((Mu&p)===p)c!==null&&(c=c.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var h={lane:p,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};c===null?(l=c=h,a=r):c=c.next=h,Nr.lanes|=p,Pu|=p}u=u.next}while(u!==null&&u!==o);c===null?a=r:c.next=l,ol(r,t.memoizedState)||(Oo=!0),t.memoizedState=r,t.baseState=a,t.baseQueue=c,n.lastRenderedState=r}if(e=n.interleaved,e!==null){i=e;do o=i.lane,Nr.lanes|=o,Pu|=o,i=i.next;while(i!==e)}else i===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function n4(e){var t=_a(),n=t.queue;if(n===null)throw Error(Ct(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,o=t.memoizedState;if(i!==null){n.pending=null;var a=i=i.next;do o=e(o,a.action),a=a.next;while(a!==i);ol(o,t.memoizedState)||(Oo=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function $M(){}function NM(e,t){var n=Nr,r=_a(),i=t(),o=!ol(r.memoizedState,i);if(o&&(r.memoizedState=i,Oo=!0),r=r.queue,zx(MM.bind(null,n,r,e),[e]),r.getSnapshot!==t||o||xi!==null&&xi.memoizedState.tag&1){if(n.flags|=2048,Ph(9,RM.bind(null,n,r,i,t),void 0,null),Ti===null)throw Error(Ct(349));Mu&30||AM(n,t,i)}return i}function AM(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Nr.updateQueue,t===null?(t={lastEffect:null,stores:null},Nr.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function RM(e,t,n,r){t.value=n,t.getSnapshot=r,PM(t)&&LM(e)}function MM(e,t,n){return n(function(){PM(t)&&LM(e)})}function PM(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!ol(e,n)}catch{return!0}}function LM(e){var t=gs(e,1);t!==null&&el(t,e,1,-1)}function tT(e){var t=Sl();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Mh,lastRenderedState:e},t.queue=e,e=e.dispatch=sq.bind(null,Nr,e),[t.memoizedState,e]}function Ph(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=Nr.updateQueue,t===null?(t={lastEffect:null,stores:null},Nr.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function DM(){return _a().memoizedState}function Vg(e,t,n,r){var i=Sl();Nr.flags|=e,i.memoizedState=Ph(1|t,n,void 0,r===void 0?null:r)}function Jy(e,t,n,r){var i=_a();r=r===void 0?null:r;var o=void 0;if(mi!==null){var a=mi.memoizedState;if(o=a.destroy,r!==null&&Bx(r,a.deps)){i.memoizedState=Ph(t,n,o,r);return}}Nr.flags|=e,i.memoizedState=Ph(1|t,n,o,r)}function nT(e,t){return Vg(8390656,8,e,t)}function zx(e,t){return Jy(2048,8,e,t)}function FM(e,t){return Jy(4,2,e,t)}function BM(e,t){return Jy(4,4,e,t)}function jM(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function HM(e,t,n){return n=n!=null?n.concat([e]):null,Jy(4,4,jM.bind(null,t,e),n)}function Wx(){}function zM(e,t){var n=_a();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Bx(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function WM(e,t){var n=_a();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Bx(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function UM(e,t,n){return Mu&21?(ol(n,t)||(n=XR(),Nr.lanes|=n,Pu|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Oo=!0),e.memoizedState=n)}function aq(e,t){var n=Qn;Qn=n!==0&&4>n?n:4,e(!0);var r=e4.transition;e4.transition={};try{e(!1),t()}finally{Qn=n,e4.transition=r}}function KM(){return _a().memoizedState}function lq(e,t,n){var r=mc(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},VM(e))GM(t,n);else if(n=OM(e,t,n,r),n!==null){var i=so();el(n,e,r,i),qM(n,t,r)}}function sq(e,t,n){var r=mc(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(VM(e))GM(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var a=t.lastRenderedState,l=o(a,n);if(i.hasEagerState=!0,i.eagerState=l,ol(l,a)){var c=t.interleaved;c===null?(i.next=i,Mx(t)):(i.next=c.next,c.next=i),t.interleaved=i;return}}catch{}finally{}n=OM(e,t,i,r),n!==null&&(i=so(),el(n,e,r,i),qM(n,t,r))}}function VM(e){var t=e.alternate;return e===Nr||t!==null&&t===Nr}function GM(e,t){qp=Uv=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function qM(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Cx(e,n)}}var Kv={readContext:wa,useCallback:zi,useContext:zi,useEffect:zi,useImperativeHandle:zi,useInsertionEffect:zi,useLayoutEffect:zi,useMemo:zi,useReducer:zi,useRef:zi,useState:zi,useDebugValue:zi,useDeferredValue:zi,useTransition:zi,useMutableSource:zi,useSyncExternalStore:zi,useId:zi,unstable_isNewReconciler:!1},cq={readContext:wa,useCallback:function(e,t){return Sl().memoizedState=[e,t===void 0?null:t],e},useContext:wa,useEffect:nT,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Vg(4194308,4,jM.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Vg(4194308,4,e,t)},useInsertionEffect:function(e,t){return Vg(4,2,e,t)},useMemo:function(e,t){var n=Sl();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Sl();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=lq.bind(null,Nr,e),[r.memoizedState,e]},useRef:function(e){var t=Sl();return e={current:e},t.memoizedState=e},useState:tT,useDebugValue:Wx,useDeferredValue:function(e){return Sl().memoizedState=e},useTransition:function(){var e=tT(!1),t=e[0];return e=aq.bind(null,e[1]),Sl().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Nr,i=Sl();if(wr){if(n===void 0)throw Error(Ct(407));n=n()}else{if(n=t(),Ti===null)throw Error(Ct(349));Mu&30||AM(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,nT(MM.bind(null,r,o,e),[e]),r.flags|=2048,Ph(9,RM.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=Sl(),t=Ti.identifierPrefix;if(wr){var n=fs,r=ds;n=(r&~(1<<32-Ja(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Rh++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=oq++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},uq={readContext:wa,useCallback:zM,useContext:wa,useEffect:zx,useImperativeHandle:HM,useInsertionEffect:FM,useLayoutEffect:BM,useMemo:WM,useReducer:t4,useRef:DM,useState:function(){return t4(Mh)},useDebugValue:Wx,useDeferredValue:function(e){var t=_a();return UM(t,mi.memoizedState,e)},useTransition:function(){var e=t4(Mh)[0],t=_a().memoizedState;return[e,t]},useMutableSource:$M,useSyncExternalStore:NM,useId:KM,unstable_isNewReconciler:!1},dq={readContext:wa,useCallback:zM,useContext:wa,useEffect:zx,useImperativeHandle:HM,useInsertionEffect:FM,useLayoutEffect:BM,useMemo:WM,useReducer:n4,useRef:DM,useState:function(){return n4(Mh)},useDebugValue:Wx,useDeferredValue:function(e){var t=_a();return mi===null?t.memoizedState=e:UM(t,mi.memoizedState,e)},useTransition:function(){var e=n4(Mh)[0],t=_a().memoizedState;return[e,t]},useMutableSource:$M,useSyncExternalStore:NM,useId:KM,unstable_isNewReconciler:!1};function Ga(e,t){if(e&&e.defaultProps){t=Ar({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function VC(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:Ar({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var eb={isMounted:function(e){return(e=e._reactInternals)?Ku(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=so(),i=mc(e),o=ps(r,i);o.payload=t,n!=null&&(o.callback=n),t=pc(e,o,i),t!==null&&(el(t,e,i,r),Ug(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=so(),i=mc(e),o=ps(r,i);o.tag=1,o.payload=t,n!=null&&(o.callback=n),t=pc(e,o,i),t!==null&&(el(t,e,i,r),Ug(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=so(),r=mc(e),i=ps(n,r);i.tag=2,t!=null&&(i.callback=t),t=pc(e,i,r),t!==null&&(el(t,e,r,n),Ug(t,e,r))}};function rT(e,t,n,r,i,o,a){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,o,a):t.prototype&&t.prototype.isPureReactComponent?!Oh(n,r)||!Oh(i,o):!0}function XM(e,t,n){var r=!1,i=Sc,o=t.contextType;return typeof o=="object"&&o!==null?o=wa(o):(i=No(t)?Au:Yi.current,r=t.contextTypes,o=(r=r!=null)?Nf(e,i):Sc),t=new t(n,o),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=eb,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function iT(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&eb.enqueueReplaceState(t,t.state,null)}function GC(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},Px(e);var o=t.contextType;typeof o=="object"&&o!==null?i.context=wa(o):(o=No(t)?Au:Yi.current,i.context=Nf(e,o)),i.state=e.memoizedState,o=t.getDerivedStateFromProps,typeof o=="function"&&(VC(e,t,o,n),i.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(t=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),t!==i.state&&eb.enqueueReplaceState(i,i.state,null),zv(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function Pf(e,t){try{var n="",r=t;do n+=BV(r),r=r.return;while(r);var i=n}catch(o){i=`
Error generating stack: `+o.message+`
`+o.stack}return{value:e,source:t,stack:i,digest:null}}function r4(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function qC(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var fq=typeof WeakMap=="function"?WeakMap:Map;function YM(e,t,n){n=ps(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Gv||(Gv=!0,iS=r),qC(e,t)},n}function QM(e,t,n){n=ps(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){qC(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){qC(e,t),typeof r!="function"&&(hc===null?hc=new Set([this]):hc.add(this));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:""})}),n}function oT(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new fq;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=Tq.bind(null,e,t,n),t.then(e,e))}function aT(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function lT(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=ps(-1,1),t.tag=2,pc(n,t,1))),n.lanes|=1),e)}var pq=Ss.ReactCurrentOwner,Oo=!1;function io(e,t,n,r){t.child=e===null?TM(t,null,n,r):Rf(t,e.child,n,r)}function sT(e,t,n,r,i){n=n.render;var o=t.ref;return bf(t,i),r=jx(e,t,n,r,o,i),n=Hx(),e!==null&&!Oo?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,vs(e,t,i)):(wr&&n&&Ix(t),t.flags|=1,io(e,t,r,i),t.child)}function cT(e,t,n,r,i){if(e===null){var o=n.type;return typeof o=="function"&&!Qx(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,ZM(e,t,o,r,i)):(e=Yg(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!(e.lanes&i)){var a=o.memoizedProps;if(n=n.compare,n=n!==null?n:Oh,n(a,r)&&e.ref===t.ref)return vs(e,t,i)}return t.flags|=1,e=gc(o,r),e.ref=t.ref,e.return=t,t.child=e}function ZM(e,t,n,r,i){if(e!==null){var o=e.memoizedProps;if(Oh(o,r)&&e.ref===t.ref)if(Oo=!1,t.pendingProps=r=o,(e.lanes&i)!==0)e.flags&131072&&(Oo=!0);else return t.lanes=e.lanes,vs(e,t,i)}return XC(e,t,n,r,i)}function JM(e,t,n){var r=t.pendingProps,i=r.children,o=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},fr(rf,Go),Go|=n;else{if(!(n&1073741824))return e=o!==null?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,fr(rf,Go),Go|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,fr(rf,Go),Go|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,fr(rf,Go),Go|=r;return io(e,t,i,n),t.child}function eP(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function XC(e,t,n,r,i){var o=No(n)?Au:Yi.current;return o=Nf(t,o),bf(t,i),n=jx(e,t,n,r,o,i),r=Hx(),e!==null&&!Oo?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,vs(e,t,i)):(wr&&r&&Ix(t),t.flags|=1,io(e,t,n,i),t.child)}function uT(e,t,n,r,i){if(No(n)){var o=!0;Dv(t)}else o=!1;if(bf(t,i),t.stateNode===null)Gg(e,t),XM(t,n,r),GC(t,n,r,i),r=!0;else if(e===null){var a=t.stateNode,l=t.memoizedProps;a.props=l;var c=a.context,u=n.contextType;typeof u=="object"&&u!==null?u=wa(u):(u=No(n)?Au:Yi.current,u=Nf(t,u));var p=n.getDerivedStateFromProps,h=typeof p=="function"||typeof a.getSnapshotBeforeUpdate=="function";h||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(l!==r||c!==u)&&iT(t,a,r,u),Qs=!1;var m=t.memoizedState;a.state=m,zv(t,r,a,i),c=t.memoizedState,l!==r||m!==c||$o.current||Qs?(typeof p=="function"&&(VC(t,n,p,r),c=t.memoizedState),(l=Qs||rT(t,n,l,r,m,c,u))?(h||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount=="function"&&(t.flags|=4194308)):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=c),a.props=r,a.state=c,a.context=u,r=l):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,IM(e,t),l=t.memoizedProps,u=t.type===t.elementType?l:Ga(t.type,l),a.props=u,h=t.pendingProps,m=a.context,c=n.contextType,typeof c=="object"&&c!==null?c=wa(c):(c=No(n)?Au:Yi.current,c=Nf(t,c));var g=n.getDerivedStateFromProps;(p=typeof g=="function"||typeof a.getSnapshotBeforeUpdate=="function")||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(l!==h||m!==c)&&iT(t,a,r,c),Qs=!1,m=t.memoizedState,a.state=m,zv(t,r,a,i);var b=t.memoizedState;l!==h||m!==b||$o.current||Qs?(typeof g=="function"&&(VC(t,n,g,r),b=t.memoizedState),(u=Qs||rT(t,n,u,r,m,b,c)||!1)?(p||typeof a.UNSAFE_componentWillUpdate!="function"&&typeof a.componentWillUpdate!="function"||(typeof a.componentWillUpdate=="function"&&a.componentWillUpdate(r,b,c),typeof a.UNSAFE_componentWillUpdate=="function"&&a.UNSAFE_componentWillUpdate(r,b,c)),typeof a.componentDidUpdate=="function"&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof a.componentDidUpdate!="function"||l===e.memoizedProps&&m===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&m===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=b),a.props=r,a.state=b,a.context=c,r=u):(typeof a.componentDidUpdate!="function"||l===e.memoizedProps&&m===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&m===e.memoizedState||(t.flags|=1024),r=!1)}return YC(e,t,n,r,o,i)}function YC(e,t,n,r,i,o){eP(e,t);var a=(t.flags&128)!==0;if(!r&&!a)return i&&X_(t,n,!1),vs(e,t,o);r=t.stateNode,pq.current=t;var l=a&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&a?(t.child=Rf(t,e.child,null,o),t.child=Rf(t,null,l,o)):io(e,t,l,o),t.memoizedState=r.state,i&&X_(t,n,!0),t.child}function tP(e){var t=e.stateNode;t.pendingContext?q_(e,t.pendingContext,t.pendingContext!==t.context):t.context&&q_(e,t.context,!1),Lx(e,t.containerInfo)}function dT(e,t,n,r,i){return Af(),$x(i),t.flags|=256,io(e,t,n,r),t.child}var QC={dehydrated:null,treeContext:null,retryLane:0};function ZC(e){return{baseLanes:e,cachePool:null,transitions:null}}function nP(e,t,n){var r=t.pendingProps,i=$r.current,o=!1,a=(t.flags&128)!==0,l;if((l=a)||(l=e!==null&&e.memoizedState===null?!1:(i&2)!==0),l?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),fr($r,i&1),e===null)return UC(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(a=r.children,e=r.fallback,o?(r=t.mode,o=t.child,a={mode:"hidden",children:a},!(r&1)&&o!==null?(o.childLanes=0,o.pendingProps=a):o=rb(a,r,0,null),e=_u(e,r,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=ZC(n),t.memoizedState=QC,e):Ux(t,a));if(i=e.memoizedState,i!==null&&(l=i.dehydrated,l!==null))return hq(e,t,a,r,l,i,n);if(o){o=r.fallback,a=t.mode,i=e.child,l=i.sibling;var c={mode:"hidden",children:r.children};return!(a&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=c,t.deletions=null):(r=gc(i,c),r.subtreeFlags=i.subtreeFlags&14680064),l!==null?o=gc(l,o):(o=_u(o,a,n,null),o.flags|=2),o.return=t,r.return=t,r.sibling=o,t.child=r,r=o,o=t.child,a=e.child.memoizedState,a=a===null?ZC(n):{baseLanes:a.baseLanes|n,cachePool:null,transitions:a.transitions},o.memoizedState=a,o.childLanes=e.childLanes&~n,t.memoizedState=QC,r}return o=e.child,e=o.sibling,r=gc(o,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function Ux(e,t){return t=rb({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function j0(e,t,n,r){return r!==null&&$x(r),Rf(t,e.child,null,n),e=Ux(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function hq(e,t,n,r,i,o,a){if(n)return t.flags&256?(t.flags&=-257,r=r4(Error(Ct(422))),j0(e,t,a,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=r.fallback,i=t.mode,r=rb({mode:"visible",children:r.children},i,0,null),o=_u(o,i,a,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,t.mode&1&&Rf(t,e.child,null,a),t.child.memoizedState=ZC(a),t.memoizedState=QC,o);if(!(t.mode&1))return j0(e,t,a,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var l=r.dgst;return r=l,o=Error(Ct(419)),r=r4(o,r,void 0),j0(e,t,a,r)}if(l=(a&e.childLanes)!==0,Oo||l){if(r=Ti,r!==null){switch(a&-a){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(r.suspendedLanes|a)?0:i,i!==0&&i!==o.retryLane&&(o.retryLane=i,gs(e,i),el(r,e,i,-1))}return Yx(),r=r4(Error(Ct(421))),j0(e,t,a,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=Oq.bind(null,e),i._reactRetry=t,null):(e=o.treeContext,Xo=fc(i.nextSibling),ea=t,wr=!0,Qa=null,e!==null&&(ga[va++]=ds,ga[va++]=fs,ga[va++]=Ru,ds=e.id,fs=e.overflow,Ru=t),t=Ux(t,r.children),t.flags|=4096,t)}function fT(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),KC(e.return,t,n)}function i4(e,t,n,r,i){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i)}function rP(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(io(e,t,r.children,n),r=$r.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&fT(e,n,t);else if(e.tag===19)fT(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(fr($r,r),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&Wv(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),i4(t,!1,i,n,o);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&Wv(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}i4(t,!0,n,null,o);break;case"together":i4(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Gg(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function vs(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Pu|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(Ct(153));if(t.child!==null){for(e=t.child,n=gc(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=gc(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function mq(e,t,n){switch(t.tag){case 3:tP(t),Af();break;case 5:kM(t);break;case 1:No(t.type)&&Dv(t);break;case 4:Lx(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;fr(jv,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(fr($r,$r.current&1),t.flags|=128,null):n&t.child.childLanes?nP(e,t,n):(fr($r,$r.current&1),e=vs(e,t,n),e!==null?e.sibling:null);fr($r,$r.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return rP(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),fr($r,$r.current),r)break;return null;case 22:case 23:return t.lanes=0,JM(e,t,n)}return vs(e,t,n)}var iP,JC,oP,aP;iP=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};JC=function(){};oP=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,gu($l.current);var o=null;switch(n){case"input":i=SC(e,i),r=SC(e,r),o=[];break;case"select":i=Ar({},i,{value:void 0}),r=Ar({},r,{value:void 0}),o=[];break;case"textarea":i=wC(e,i),r=wC(e,r),o=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Pv)}TC(n,r);var a;n=null;for(u in i)if(!r.hasOwnProperty(u)&&i.hasOwnProperty(u)&&i[u]!=null)if(u==="style"){var l=i[u];for(a in l)l.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(Ch.hasOwnProperty(u)?o||(o=[]):(o=o||[]).push(u,null));for(u in r){var c=r[u];if(l=i!=null?i[u]:void 0,r.hasOwnProperty(u)&&c!==l&&(c!=null||l!=null))if(u==="style")if(l){for(a in l)!l.hasOwnProperty(a)||c&&c.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in c)c.hasOwnProperty(a)&&l[a]!==c[a]&&(n||(n={}),n[a]=c[a])}else n||(o||(o=[]),o.push(u,n)),n=c;else u==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,l=l?l.__html:void 0,c!=null&&l!==c&&(o=o||[]).push(u,c)):u==="children"?typeof c!="string"&&typeof c!="number"||(o=o||[]).push(u,""+c):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(Ch.hasOwnProperty(u)?(c!=null&&u==="onScroll"&&mr("scroll",e),o||l===c||(o=[])):(o=o||[]).push(u,c))}n&&(o=o||[]).push("style",n);var u=o;(t.updateQueue=u)&&(t.flags|=4)}};aP=function(e,t,n,r){n!==r&&(t.flags|=4)};function ap(e,t){if(!wr)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Wi(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function gq(e,t,n){var r=t.pendingProps;switch(kx(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Wi(t),null;case 1:return No(t.type)&&Lv(),Wi(t),null;case 3:return r=t.stateNode,Mf(),yr($o),yr(Yi),Fx(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(F0(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Qa!==null&&(lS(Qa),Qa=null))),JC(e,t),Wi(t),null;case 5:Dx(t);var i=gu(Ah.current);if(n=t.type,e!==null&&t.stateNode!=null)oP(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(Ct(166));return Wi(t),null}if(e=gu($l.current),F0(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[Ol]=t,r[$h]=o,e=(t.mode&1)!==0,n){case"dialog":mr("cancel",r),mr("close",r);break;case"iframe":case"object":case"embed":mr("load",r);break;case"video":case"audio":for(i=0;i<Mp.length;i++)mr(Mp[i],r);break;case"source":mr("error",r);break;case"img":case"image":case"link":mr("error",r),mr("load",r);break;case"details":mr("toggle",r);break;case"input":S_(r,o),mr("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},mr("invalid",r);break;case"textarea":x_(r,o),mr("invalid",r)}TC(n,o),i=null;for(var a in o)if(o.hasOwnProperty(a)){var l=o[a];a==="children"?typeof l=="string"?r.textContent!==l&&(o.suppressHydrationWarning!==!0&&D0(r.textContent,l,e),i=["children",l]):typeof l=="number"&&r.textContent!==""+l&&(o.suppressHydrationWarning!==!0&&D0(r.textContent,l,e),i=["children",""+l]):Ch.hasOwnProperty(a)&&l!=null&&a==="onScroll"&&mr("scroll",r)}switch(n){case"input":k0(r),E_(r,o,!0);break;case"textarea":k0(r),w_(r);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(r.onclick=Pv)}r=i,t.updateQueue=r,r!==null&&(t.flags|=4)}else{a=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=MR(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=a.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=a.createElement(n,{is:r.is}):(e=a.createElement(n),n==="select"&&(a=e,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):e=a.createElementNS(e,n),e[Ol]=t,e[$h]=r,iP(e,t,!1,!1),t.stateNode=e;e:{switch(a=OC(n,r),n){case"dialog":mr("cancel",e),mr("close",e),i=r;break;case"iframe":case"object":case"embed":mr("load",e),i=r;break;case"video":case"audio":for(i=0;i<Mp.length;i++)mr(Mp[i],e);i=r;break;case"source":mr("error",e),i=r;break;case"img":case"image":case"link":mr("error",e),mr("load",e),i=r;break;case"details":mr("toggle",e),i=r;break;case"input":S_(e,r),i=SC(e,r),mr("invalid",e);break;case"option":i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=Ar({},r,{value:void 0}),mr("invalid",e);break;case"textarea":x_(e,r),i=wC(e,r),mr("invalid",e);break;default:i=r}TC(n,i),l=i;for(o in l)if(l.hasOwnProperty(o)){var c=l[o];o==="style"?DR(e,c):o==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,c!=null&&PR(e,c)):o==="children"?typeof c=="string"?(n!=="textarea"||c!=="")&&Sh(e,c):typeof c=="number"&&Sh(e,""+c):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(Ch.hasOwnProperty(o)?c!=null&&o==="onScroll"&&mr("scroll",e):c!=null&&hx(e,o,c,a))}switch(n){case"input":k0(e),E_(e,r,!1);break;case"textarea":k0(e),w_(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Cc(r.value));break;case"select":e.multiple=!!r.multiple,o=r.value,o!=null?mf(e,!!r.multiple,o,!1):r.defaultValue!=null&&mf(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=Pv)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return Wi(t),null;case 6:if(e&&t.stateNode!=null)aP(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(Ct(166));if(n=gu(Ah.current),gu($l.current),F0(t)){if(r=t.stateNode,n=t.memoizedProps,r[Ol]=t,(o=r.nodeValue!==n)&&(e=ea,e!==null))switch(e.tag){case 3:D0(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&D0(r.nodeValue,n,(e.mode&1)!==0)}o&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Ol]=t,t.stateNode=r}return Wi(t),null;case 13:if(yr($r),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(wr&&Xo!==null&&t.mode&1&&!(t.flags&128))wM(),Af(),t.flags|=98560,o=!1;else if(o=F0(t),r!==null&&r.dehydrated!==null){if(e===null){if(!o)throw Error(Ct(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(Ct(317));o[Ol]=t}else Af(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Wi(t),o=!1}else Qa!==null&&(lS(Qa),Qa=null),o=!0;if(!o)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||$r.current&1?gi===0&&(gi=3):Yx())),t.updateQueue!==null&&(t.flags|=4),Wi(t),null);case 4:return Mf(),JC(e,t),e===null&&Ih(t.stateNode.containerInfo),Wi(t),null;case 10:return Rx(t.type._context),Wi(t),null;case 17:return No(t.type)&&Lv(),Wi(t),null;case 19:if(yr($r),o=t.memoizedState,o===null)return Wi(t),null;if(r=(t.flags&128)!==0,a=o.rendering,a===null)if(r)ap(o,!1);else{if(gi!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(a=Wv(e),a!==null){for(t.flags|=128,ap(o,!1),r=a.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)o=n,e=r,o.flags&=14680066,a=o.alternate,a===null?(o.childLanes=0,o.lanes=e,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=a.childLanes,o.lanes=a.lanes,o.child=a.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=a.memoizedProps,o.memoizedState=a.memoizedState,o.updateQueue=a.updateQueue,o.type=a.type,e=a.dependencies,o.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return fr($r,$r.current&1|2),t.child}e=e.sibling}o.tail!==null&&Kr()>Lf&&(t.flags|=128,r=!0,ap(o,!1),t.lanes=4194304)}else{if(!r)if(e=Wv(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),ap(o,!0),o.tail===null&&o.tailMode==="hidden"&&!a.alternate&&!wr)return Wi(t),null}else 2*Kr()-o.renderingStartTime>Lf&&n!==1073741824&&(t.flags|=128,r=!0,ap(o,!1),t.lanes=4194304);o.isBackwards?(a.sibling=t.child,t.child=a):(n=o.last,n!==null?n.sibling=a:t.child=a,o.last=a)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=Kr(),t.sibling=null,n=$r.current,fr($r,r?n&1|2:n&1),t):(Wi(t),null);case 22:case 23:return Xx(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Go&1073741824&&(Wi(t),t.subtreeFlags&6&&(t.flags|=8192)):Wi(t),null;case 24:return null;case 25:return null}throw Error(Ct(156,t.tag))}function vq(e,t){switch(kx(t),t.tag){case 1:return No(t.type)&&Lv(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Mf(),yr($o),yr(Yi),Fx(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Dx(t),null;case 13:if(yr($r),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(Ct(340));Af()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return yr($r),null;case 4:return Mf(),null;case 10:return Rx(t.type._context),null;case 22:case 23:return Xx(),null;case 24:return null;default:return null}}var H0=!1,Ki=!1,yq=typeof WeakSet=="function"?WeakSet:Set,Wt=null;function nf(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Br(e,t,r)}else n.current=null}function eS(e,t,n){try{n()}catch(r){Br(e,t,r)}}var pT=!1;function bq(e,t){if(DC=Av,e=dM(),Ox(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var a=0,l=-1,c=-1,u=0,p=0,h=e,m=null;t:for(;;){for(var g;h!==n||i!==0&&h.nodeType!==3||(l=a+i),h!==o||r!==0&&h.nodeType!==3||(c=a+r),h.nodeType===3&&(a+=h.nodeValue.length),(g=h.firstChild)!==null;)m=h,h=g;for(;;){if(h===e)break t;if(m===n&&++u===i&&(l=a),m===o&&++p===r&&(c=a),(g=h.nextSibling)!==null)break;h=m,m=h.parentNode}h=g}n=l===-1||c===-1?null:{start:l,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(FC={focusedElem:e,selectionRange:n},Av=!1,Wt=t;Wt!==null;)if(t=Wt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Wt=e;else for(;Wt!==null;){t=Wt;try{var b=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(b!==null){var E=b.memoizedProps,x=b.memoizedState,S=t.stateNode,C=S.getSnapshotBeforeUpdate(t.elementType===t.type?E:Ga(t.type,E),x);S.__reactInternalSnapshotBeforeUpdate=C}break;case 3:var _=t.stateNode.containerInfo;_.nodeType===1?_.textContent="":_.nodeType===9&&_.documentElement&&_.removeChild(_.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(Ct(163))}}catch(O){Br(t,t.return,O)}if(e=t.sibling,e!==null){e.return=t.return,Wt=e;break}Wt=t.return}return b=pT,pT=!1,b}function Xp(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,o!==void 0&&eS(t,n,o)}i=i.next}while(i!==r)}}function tb(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function tS(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function lP(e){var t=e.alternate;t!==null&&(e.alternate=null,lP(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Ol],delete t[$h],delete t[HC],delete t[tq],delete t[nq])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function sP(e){return e.tag===5||e.tag===3||e.tag===4}function hT(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||sP(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function nS(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Pv));else if(r!==4&&(e=e.child,e!==null))for(nS(e,t,n),e=e.sibling;e!==null;)nS(e,t,n),e=e.sibling}function rS(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(rS(e,t,n),e=e.sibling;e!==null;)rS(e,t,n),e=e.sibling}var $i=null,qa=!1;function Ms(e,t,n){for(n=n.child;n!==null;)cP(e,t,n),n=n.sibling}function cP(e,t,n){if(kl&&typeof kl.onCommitFiberUnmount=="function")try{kl.onCommitFiberUnmount(Gy,n)}catch{}switch(n.tag){case 5:Ki||nf(n,t);case 6:var r=$i,i=qa;$i=null,Ms(e,t,n),$i=r,qa=i,$i!==null&&(qa?(e=$i,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):$i.removeChild(n.stateNode));break;case 18:$i!==null&&(qa?(e=$i,n=n.stateNode,e.nodeType===8?Q5(e.parentNode,n):e.nodeType===1&&Q5(e,n),_h(e)):Q5($i,n.stateNode));break;case 4:r=$i,i=qa,$i=n.stateNode.containerInfo,qa=!0,Ms(e,t,n),$i=r,qa=i;break;case 0:case 11:case 14:case 15:if(!Ki&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var o=i,a=o.destroy;o=o.tag,a!==void 0&&(o&2||o&4)&&eS(n,t,a),i=i.next}while(i!==r)}Ms(e,t,n);break;case 1:if(!Ki&&(nf(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){Br(n,t,l)}Ms(e,t,n);break;case 21:Ms(e,t,n);break;case 22:n.mode&1?(Ki=(r=Ki)||n.memoizedState!==null,Ms(e,t,n),Ki=r):Ms(e,t,n);break;default:Ms(e,t,n)}}function mT(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new yq),t.forEach(function(r){var i=Iq.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function za(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];try{var o=e,a=t,l=a;e:for(;l!==null;){switch(l.tag){case 5:$i=l.stateNode,qa=!1;break e;case 3:$i=l.stateNode.containerInfo,qa=!0;break e;case 4:$i=l.stateNode.containerInfo,qa=!0;break e}l=l.return}if($i===null)throw Error(Ct(160));cP(o,a,i),$i=null,qa=!1;var c=i.alternate;c!==null&&(c.return=null),i.return=null}catch(u){Br(i,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)uP(t,e),t=t.sibling}function uP(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(za(t,e),yl(e),r&4){try{Xp(3,e,e.return),tb(3,e)}catch(E){Br(e,e.return,E)}try{Xp(5,e,e.return)}catch(E){Br(e,e.return,E)}}break;case 1:za(t,e),yl(e),r&512&&n!==null&&nf(n,n.return);break;case 5:if(za(t,e),yl(e),r&512&&n!==null&&nf(n,n.return),e.flags&32){var i=e.stateNode;try{Sh(i,"")}catch(E){Br(e,e.return,E)}}if(r&4&&(i=e.stateNode,i!=null)){var o=e.memoizedProps,a=n!==null?n.memoizedProps:o,l=e.type,c=e.updateQueue;if(e.updateQueue=null,c!==null)try{l==="input"&&o.type==="radio"&&o.name!=null&&AR(i,o),OC(l,a);var u=OC(l,o);for(a=0;a<c.length;a+=2){var p=c[a],h=c[a+1];p==="style"?DR(i,h):p==="dangerouslySetInnerHTML"?PR(i,h):p==="children"?Sh(i,h):hx(i,p,h,u)}switch(l){case"input":EC(i,o);break;case"textarea":RR(i,o);break;case"select":var m=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!o.multiple;var g=o.value;g!=null?mf(i,!!o.multiple,g,!1):m!==!!o.multiple&&(o.defaultValue!=null?mf(i,!!o.multiple,o.defaultValue,!0):mf(i,!!o.multiple,o.multiple?[]:"",!1))}i[$h]=o}catch(E){Br(e,e.return,E)}}break;case 6:if(za(t,e),yl(e),r&4){if(e.stateNode===null)throw Error(Ct(162));i=e.stateNode,o=e.memoizedProps;try{i.nodeValue=o}catch(E){Br(e,e.return,E)}}break;case 3:if(za(t,e),yl(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{_h(t.containerInfo)}catch(E){Br(e,e.return,E)}break;case 4:za(t,e),yl(e);break;case 13:za(t,e),yl(e),i=e.child,i.flags&8192&&(o=i.memoizedState!==null,i.stateNode.isHidden=o,!o||i.alternate!==null&&i.alternate.memoizedState!==null||(Gx=Kr())),r&4&&mT(e);break;case 22:if(p=n!==null&&n.memoizedState!==null,e.mode&1?(Ki=(u=Ki)||p,za(t,e),Ki=u):za(t,e),yl(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!p&&e.mode&1)for(Wt=e,p=e.child;p!==null;){for(h=Wt=p;Wt!==null;){switch(m=Wt,g=m.child,m.tag){case 0:case 11:case 14:case 15:Xp(4,m,m.return);break;case 1:nf(m,m.return);var b=m.stateNode;if(typeof b.componentWillUnmount=="function"){r=m,n=m.return;try{t=r,b.props=t.memoizedProps,b.state=t.memoizedState,b.componentWillUnmount()}catch(E){Br(r,n,E)}}break;case 5:nf(m,m.return);break;case 22:if(m.memoizedState!==null){vT(h);continue}}g!==null?(g.return=m,Wt=g):vT(h)}p=p.sibling}e:for(p=null,h=e;;){if(h.tag===5){if(p===null){p=h;try{i=h.stateNode,u?(o=i.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none"):(l=h.stateNode,c=h.memoizedProps.style,a=c!=null&&c.hasOwnProperty("display")?c.display:null,l.style.display=LR("display",a))}catch(E){Br(e,e.return,E)}}}else if(h.tag===6){if(p===null)try{h.stateNode.nodeValue=u?"":h.memoizedProps}catch(E){Br(e,e.return,E)}}else if((h.tag!==22&&h.tag!==23||h.memoizedState===null||h===e)&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===e)break e;for(;h.sibling===null;){if(h.return===null||h.return===e)break e;p===h&&(p=null),h=h.return}p===h&&(p=null),h.sibling.return=h.return,h=h.sibling}}break;case 19:za(t,e),yl(e),r&4&&mT(e);break;case 21:break;default:za(t,e),yl(e)}}function yl(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(sP(n)){var r=n;break e}n=n.return}throw Error(Ct(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&32&&(Sh(i,""),r.flags&=-33);var o=hT(e);rS(e,o,i);break;case 3:case 4:var a=r.stateNode.containerInfo,l=hT(e);nS(e,l,a);break;default:throw Error(Ct(161))}}catch(c){Br(e,e.return,c)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Cq(e,t,n){Wt=e,dP(e)}function dP(e,t,n){for(var r=(e.mode&1)!==0;Wt!==null;){var i=Wt,o=i.child;if(i.tag===22&&r){var a=i.memoizedState!==null||H0;if(!a){var l=i.alternate,c=l!==null&&l.memoizedState!==null||Ki;l=H0;var u=Ki;if(H0=a,(Ki=c)&&!u)for(Wt=i;Wt!==null;)a=Wt,c=a.child,a.tag===22&&a.memoizedState!==null?yT(i):c!==null?(c.return=a,Wt=c):yT(i);for(;o!==null;)Wt=o,dP(o),o=o.sibling;Wt=i,H0=l,Ki=u}gT(e)}else i.subtreeFlags&8772&&o!==null?(o.return=i,Wt=o):gT(e)}}function gT(e){for(;Wt!==null;){var t=Wt;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Ki||tb(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Ki)if(n===null)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:Ga(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;o!==null&&eT(t,o,r);break;case 3:var a=t.updateQueue;if(a!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}eT(t,a,n)}break;case 5:var l=t.stateNode;if(n===null&&t.flags&4){n=l;var c=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":c.autoFocus&&n.focus();break;case"img":c.src&&(n.src=c.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var p=u.memoizedState;if(p!==null){var h=p.dehydrated;h!==null&&_h(h)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(Ct(163))}Ki||t.flags&512&&tS(t)}catch(m){Br(t,t.return,m)}}if(t===e){Wt=null;break}if(n=t.sibling,n!==null){n.return=t.return,Wt=n;break}Wt=t.return}}function vT(e){for(;Wt!==null;){var t=Wt;if(t===e){Wt=null;break}var n=t.sibling;if(n!==null){n.return=t.return,Wt=n;break}Wt=t.return}}function yT(e){for(;Wt!==null;){var t=Wt;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{tb(4,t)}catch(c){Br(t,n,c)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var i=t.return;try{r.componentDidMount()}catch(c){Br(t,i,c)}}var o=t.return;try{tS(t)}catch(c){Br(t,o,c)}break;case 5:var a=t.return;try{tS(t)}catch(c){Br(t,a,c)}}}catch(c){Br(t,t.return,c)}if(t===e){Wt=null;break}var l=t.sibling;if(l!==null){l.return=t.return,Wt=l;break}Wt=t.return}}var Sq=Math.ceil,Vv=Ss.ReactCurrentDispatcher,Kx=Ss.ReactCurrentOwner,Ca=Ss.ReactCurrentBatchConfig,jn=0,Ti=null,ni=null,Mi=0,Go=0,rf=$c(0),gi=0,Lh=null,Pu=0,nb=0,Vx=0,Yp=null,_o=null,Gx=0,Lf=1/0,is=null,Gv=!1,iS=null,hc=null,z0=!1,rc=null,qv=0,Qp=0,oS=null,qg=-1,Xg=0;function so(){return jn&6?Kr():qg!==-1?qg:qg=Kr()}function mc(e){return e.mode&1?jn&2&&Mi!==0?Mi&-Mi:iq.transition!==null?(Xg===0&&(Xg=XR()),Xg):(e=Qn,e!==0||(e=window.event,e=e===void 0?16:nM(e.type)),e):1}function el(e,t,n,r){if(50<Qp)throw Qp=0,oS=null,Error(Ct(185));gm(e,n,r),(!(jn&2)||e!==Ti)&&(e===Ti&&(!(jn&2)&&(nb|=n),gi===4&&tc(e,Mi)),Ao(e,r),n===1&&jn===0&&!(t.mode&1)&&(Lf=Kr()+500,Zy&&Nc()))}function Ao(e,t){var n=e.callbackNode;iG(e,t);var r=Nv(e,e===Ti?Mi:0);if(r===0)n!==null&&O_(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&O_(n),t===1)e.tag===0?rq(bT.bind(null,e)):SM(bT.bind(null,e)),JG(function(){!(jn&6)&&Nc()}),n=null;else{switch(YR(r)){case 1:n=bx;break;case 4:n=GR;break;case 16:n=$v;break;case 536870912:n=qR;break;default:n=$v}n=bP(n,fP.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function fP(e,t){if(qg=-1,Xg=0,jn&6)throw Error(Ct(327));var n=e.callbackNode;if(Cf()&&e.callbackNode!==n)return null;var r=Nv(e,e===Ti?Mi:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=Xv(e,r);else{t=r;var i=jn;jn|=2;var o=hP();(Ti!==e||Mi!==t)&&(is=null,Lf=Kr()+500,wu(e,t));do try{wq();break}catch(l){pP(e,l)}while(!0);Ax(),Vv.current=o,jn=i,ni!==null?t=0:(Ti=null,Mi=0,t=gi)}if(t!==0){if(t===2&&(i=AC(e),i!==0&&(r=i,t=aS(e,i))),t===1)throw n=Lh,wu(e,0),tc(e,r),Ao(e,Kr()),n;if(t===6)tc(e,r);else{if(i=e.current.alternate,!(r&30)&&!Eq(i)&&(t=Xv(e,r),t===2&&(o=AC(e),o!==0&&(r=o,t=aS(e,o))),t===1))throw n=Lh,wu(e,0),tc(e,r),Ao(e,Kr()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(Ct(345));case 2:lu(e,_o,is);break;case 3:if(tc(e,r),(r&130023424)===r&&(t=Gx+500-Kr(),10<t)){if(Nv(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){so(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=jC(lu.bind(null,e,_o,is),t);break}lu(e,_o,is);break;case 4:if(tc(e,r),(r&4194240)===r)break;for(t=e.eventTimes,i=-1;0<r;){var a=31-Ja(r);o=1<<a,a=t[a],a>i&&(i=a),r&=~o}if(r=i,r=Kr()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Sq(r/1960))-r,10<r){e.timeoutHandle=jC(lu.bind(null,e,_o,is),r);break}lu(e,_o,is);break;case 5:lu(e,_o,is);break;default:throw Error(Ct(329))}}}return Ao(e,Kr()),e.callbackNode===n?fP.bind(null,e):null}function aS(e,t){var n=Yp;return e.current.memoizedState.isDehydrated&&(wu(e,t).flags|=256),e=Xv(e,t),e!==2&&(t=_o,_o=n,t!==null&&lS(t)),e}function lS(e){_o===null?_o=e:_o.push.apply(_o,e)}function Eq(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var i=n[r],o=i.getSnapshot;i=i.value;try{if(!ol(o(),i))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function tc(e,t){for(t&=~Vx,t&=~nb,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Ja(t),r=1<<n;e[n]=-1,t&=~r}}function bT(e){if(jn&6)throw Error(Ct(327));Cf();var t=Nv(e,0);if(!(t&1))return Ao(e,Kr()),null;var n=Xv(e,t);if(e.tag!==0&&n===2){var r=AC(e);r!==0&&(t=r,n=aS(e,r))}if(n===1)throw n=Lh,wu(e,0),tc(e,t),Ao(e,Kr()),n;if(n===6)throw Error(Ct(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,lu(e,_o,is),Ao(e,Kr()),null}function qx(e,t){var n=jn;jn|=1;try{return e(t)}finally{jn=n,jn===0&&(Lf=Kr()+500,Zy&&Nc())}}function Lu(e){rc!==null&&rc.tag===0&&!(jn&6)&&Cf();var t=jn;jn|=1;var n=Ca.transition,r=Qn;try{if(Ca.transition=null,Qn=1,e)return e()}finally{Qn=r,Ca.transition=n,jn=t,!(jn&6)&&Nc()}}function Xx(){Go=rf.current,yr(rf)}function wu(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,ZG(n)),ni!==null)for(n=ni.return;n!==null;){var r=n;switch(kx(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Lv();break;case 3:Mf(),yr($o),yr(Yi),Fx();break;case 5:Dx(r);break;case 4:Mf();break;case 13:yr($r);break;case 19:yr($r);break;case 10:Rx(r.type._context);break;case 22:case 23:Xx()}n=n.return}if(Ti=e,ni=e=gc(e.current,null),Mi=Go=t,gi=0,Lh=null,Vx=nb=Pu=0,_o=Yp=null,mu!==null){for(t=0;t<mu.length;t++)if(n=mu[t],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,o=n.pending;if(o!==null){var a=o.next;o.next=i,r.next=a}n.pending=r}mu=null}return e}function pP(e,t){do{var n=ni;try{if(Ax(),Kg.current=Kv,Uv){for(var r=Nr.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}Uv=!1}if(Mu=0,xi=mi=Nr=null,qp=!1,Rh=0,Kx.current=null,n===null||n.return===null){gi=1,Lh=t,ni=null;break}e:{var o=e,a=n.return,l=n,c=t;if(t=Mi,l.flags|=32768,c!==null&&typeof c=="object"&&typeof c.then=="function"){var u=c,p=l,h=p.tag;if(!(p.mode&1)&&(h===0||h===11||h===15)){var m=p.alternate;m?(p.updateQueue=m.updateQueue,p.memoizedState=m.memoizedState,p.lanes=m.lanes):(p.updateQueue=null,p.memoizedState=null)}var g=aT(a);if(g!==null){g.flags&=-257,lT(g,a,l,o,t),g.mode&1&&oT(o,u,t),t=g,c=u;var b=t.updateQueue;if(b===null){var E=new Set;E.add(c),t.updateQueue=E}else b.add(c);break e}else{if(!(t&1)){oT(o,u,t),Yx();break e}c=Error(Ct(426))}}else if(wr&&l.mode&1){var x=aT(a);if(x!==null){!(x.flags&65536)&&(x.flags|=256),lT(x,a,l,o,t),$x(Pf(c,l));break e}}o=c=Pf(c,l),gi!==4&&(gi=2),Yp===null?Yp=[o]:Yp.push(o),o=a;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t;var S=YM(o,c,t);J_(o,S);break e;case 1:l=c;var C=o.type,_=o.stateNode;if(!(o.flags&128)&&(typeof C.getDerivedStateFromError=="function"||_!==null&&typeof _.componentDidCatch=="function"&&(hc===null||!hc.has(_)))){o.flags|=65536,t&=-t,o.lanes|=t;var O=QM(o,l,t);J_(o,O);break e}}o=o.return}while(o!==null)}gP(n)}catch(k){t=k,ni===n&&n!==null&&(ni=n=n.return);continue}break}while(!0)}function hP(){var e=Vv.current;return Vv.current=Kv,e===null?Kv:e}function Yx(){(gi===0||gi===3||gi===2)&&(gi=4),Ti===null||!(Pu&268435455)&&!(nb&268435455)||tc(Ti,Mi)}function Xv(e,t){var n=jn;jn|=2;var r=hP();(Ti!==e||Mi!==t)&&(is=null,wu(e,t));do try{xq();break}catch(i){pP(e,i)}while(!0);if(Ax(),jn=n,Vv.current=r,ni!==null)throw Error(Ct(261));return Ti=null,Mi=0,gi}function xq(){for(;ni!==null;)mP(ni)}function wq(){for(;ni!==null&&!XV();)mP(ni)}function mP(e){var t=yP(e.alternate,e,Go);e.memoizedProps=e.pendingProps,t===null?gP(e):ni=t,Kx.current=null}function gP(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=vq(n,t),n!==null){n.flags&=32767,ni=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{gi=6,ni=null;return}}else if(n=gq(n,t,Go),n!==null){ni=n;return}if(t=t.sibling,t!==null){ni=t;return}ni=t=e}while(t!==null);gi===0&&(gi=5)}function lu(e,t,n){var r=Qn,i=Ca.transition;try{Ca.transition=null,Qn=1,_q(e,t,n,r)}finally{Ca.transition=i,Qn=r}return null}function _q(e,t,n,r){do Cf();while(rc!==null);if(jn&6)throw Error(Ct(327));n=e.finishedWork;var i=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(Ct(177));e.callbackNode=null,e.callbackPriority=0;var o=n.lanes|n.childLanes;if(oG(e,o),e===Ti&&(ni=Ti=null,Mi=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||z0||(z0=!0,bP($v,function(){return Cf(),null})),o=(n.flags&15990)!==0,n.subtreeFlags&15990||o){o=Ca.transition,Ca.transition=null;var a=Qn;Qn=1;var l=jn;jn|=4,Kx.current=null,bq(e,n),uP(n,e),KG(FC),Av=!!DC,FC=DC=null,e.current=n,Cq(n),YV(),jn=l,Qn=a,Ca.transition=o}else e.current=n;if(z0&&(z0=!1,rc=e,qv=i),o=e.pendingLanes,o===0&&(hc=null),JV(n.stateNode),Ao(e,Kr()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)i=t[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(Gv)throw Gv=!1,e=iS,iS=null,e;return qv&1&&e.tag!==0&&Cf(),o=e.pendingLanes,o&1?e===oS?Qp++:(Qp=0,oS=e):Qp=0,Nc(),null}function Cf(){if(rc!==null){var e=YR(qv),t=Ca.transition,n=Qn;try{if(Ca.transition=null,Qn=16>e?16:e,rc===null)var r=!1;else{if(e=rc,rc=null,qv=0,jn&6)throw Error(Ct(331));var i=jn;for(jn|=4,Wt=e.current;Wt!==null;){var o=Wt,a=o.child;if(Wt.flags&16){var l=o.deletions;if(l!==null){for(var c=0;c<l.length;c++){var u=l[c];for(Wt=u;Wt!==null;){var p=Wt;switch(p.tag){case 0:case 11:case 15:Xp(8,p,o)}var h=p.child;if(h!==null)h.return=p,Wt=h;else for(;Wt!==null;){p=Wt;var m=p.sibling,g=p.return;if(lP(p),p===u){Wt=null;break}if(m!==null){m.return=g,Wt=m;break}Wt=g}}}var b=o.alternate;if(b!==null){var E=b.child;if(E!==null){b.child=null;do{var x=E.sibling;E.sibling=null,E=x}while(E!==null)}}Wt=o}}if(o.subtreeFlags&2064&&a!==null)a.return=o,Wt=a;else e:for(;Wt!==null;){if(o=Wt,o.flags&2048)switch(o.tag){case 0:case 11:case 15:Xp(9,o,o.return)}var S=o.sibling;if(S!==null){S.return=o.return,Wt=S;break e}Wt=o.return}}var C=e.current;for(Wt=C;Wt!==null;){a=Wt;var _=a.child;if(a.subtreeFlags&2064&&_!==null)_.return=a,Wt=_;else e:for(a=C;Wt!==null;){if(l=Wt,l.flags&2048)try{switch(l.tag){case 0:case 11:case 15:tb(9,l)}}catch(k){Br(l,l.return,k)}if(l===a){Wt=null;break e}var O=l.sibling;if(O!==null){O.return=l.return,Wt=O;break e}Wt=l.return}}if(jn=i,Nc(),kl&&typeof kl.onPostCommitFiberRoot=="function")try{kl.onPostCommitFiberRoot(Gy,e)}catch{}r=!0}return r}finally{Qn=n,Ca.transition=t}}return!1}function CT(e,t,n){t=Pf(n,t),t=YM(e,t,1),e=pc(e,t,1),t=so(),e!==null&&(gm(e,1,t),Ao(e,t))}function Br(e,t,n){if(e.tag===3)CT(e,e,n);else for(;t!==null;){if(t.tag===3){CT(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(hc===null||!hc.has(r))){e=Pf(n,e),e=QM(t,e,1),t=pc(t,e,1),e=so(),t!==null&&(gm(t,1,e),Ao(t,e));break}}t=t.return}}function Tq(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=so(),e.pingedLanes|=e.suspendedLanes&n,Ti===e&&(Mi&n)===n&&(gi===4||gi===3&&(Mi&130023424)===Mi&&500>Kr()-Gx?wu(e,0):Vx|=n),Ao(e,t)}function vP(e,t){t===0&&(e.mode&1?(t=A0,A0<<=1,!(A0&130023424)&&(A0=4194304)):t=1);var n=so();e=gs(e,t),e!==null&&(gm(e,t,n),Ao(e,n))}function Oq(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),vP(e,n)}function Iq(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(Ct(314))}r!==null&&r.delete(t),vP(e,n)}var yP;yP=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||$o.current)Oo=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Oo=!1,mq(e,t,n);Oo=!!(e.flags&131072)}else Oo=!1,wr&&t.flags&1048576&&EM(t,Bv,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Gg(e,t),e=t.pendingProps;var i=Nf(t,Yi.current);bf(t,n),i=jx(null,t,r,e,i,n);var o=Hx();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,No(r)?(o=!0,Dv(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Px(t),i.updater=eb,t.stateNode=i,i._reactInternals=t,GC(t,r,e,n),t=YC(null,t,r,!0,o,n)):(t.tag=0,wr&&o&&Ix(t),io(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Gg(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=$q(r),e=Ga(r,e),i){case 0:t=XC(null,t,r,e,n);break e;case 1:t=uT(null,t,r,e,n);break e;case 11:t=sT(null,t,r,e,n);break e;case 14:t=cT(null,t,r,Ga(r.type,e),n);break e}throw Error(Ct(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ga(r,i),XC(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ga(r,i),uT(e,t,r,i,n);case 3:e:{if(tP(t),e===null)throw Error(Ct(387));r=t.pendingProps,o=t.memoizedState,i=o.element,IM(e,t),zv(t,r,null,n);var a=t.memoizedState;if(r=a.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=Pf(Error(Ct(423)),t),t=dT(e,t,r,n,i);break e}else if(r!==i){i=Pf(Error(Ct(424)),t),t=dT(e,t,r,n,i);break e}else for(Xo=fc(t.stateNode.containerInfo.firstChild),ea=t,wr=!0,Qa=null,n=TM(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Af(),r===i){t=vs(e,t,n);break e}io(e,t,r,n)}t=t.child}return t;case 5:return kM(t),e===null&&UC(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,a=i.children,BC(r,i)?a=null:o!==null&&BC(r,o)&&(t.flags|=32),eP(e,t),io(e,t,a,n),t.child;case 6:return e===null&&UC(t),null;case 13:return nP(e,t,n);case 4:return Lx(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Rf(t,null,r,n):io(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ga(r,i),sT(e,t,r,i,n);case 7:return io(e,t,t.pendingProps,n),t.child;case 8:return io(e,t,t.pendingProps.children,n),t.child;case 12:return io(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,a=i.value,fr(jv,r._currentValue),r._currentValue=a,o!==null)if(ol(o.value,a)){if(o.children===i.children&&!$o.current){t=vs(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var l=o.dependencies;if(l!==null){a=o.child;for(var c=l.firstContext;c!==null;){if(c.context===r){if(o.tag===1){c=ps(-1,n&-n),c.tag=2;var u=o.updateQueue;if(u!==null){u=u.shared;var p=u.pending;p===null?c.next=c:(c.next=p.next,p.next=c),u.pending=c}}o.lanes|=n,c=o.alternate,c!==null&&(c.lanes|=n),KC(o.return,n,t),l.lanes|=n;break}c=c.next}}else if(o.tag===10)a=o.type===t.type?null:o.child;else if(o.tag===18){if(a=o.return,a===null)throw Error(Ct(341));a.lanes|=n,l=a.alternate,l!==null&&(l.lanes|=n),KC(a,n,t),a=o.sibling}else a=o.child;if(a!==null)a.return=o;else for(a=o;a!==null;){if(a===t){a=null;break}if(o=a.sibling,o!==null){o.return=a.return,a=o;break}a=a.return}o=a}io(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,bf(t,n),i=wa(i),r=r(i),t.flags|=1,io(e,t,r,n),t.child;case 14:return r=t.type,i=Ga(r,t.pendingProps),i=Ga(r.type,i),cT(e,t,r,i,n);case 15:return ZM(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ga(r,i),Gg(e,t),t.tag=1,No(r)?(e=!0,Dv(t)):e=!1,bf(t,n),XM(t,r,i),GC(t,r,i,n),YC(null,t,r,!0,e,n);case 19:return rP(e,t,n);case 22:return JM(e,t,n)}throw Error(Ct(156,t.tag))};function bP(e,t){return VR(e,t)}function kq(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ba(e,t,n,r){return new kq(e,t,n,r)}function Qx(e){return e=e.prototype,!(!e||!e.isReactComponent)}function $q(e){if(typeof e=="function")return Qx(e)?1:0;if(e!=null){if(e=e.$$typeof,e===gx)return 11;if(e===vx)return 14}return 2}function gc(e,t){var n=e.alternate;return n===null?(n=ba(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Yg(e,t,n,r,i,o){var a=2;if(r=e,typeof e=="function")Qx(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case Gd:return _u(n.children,i,o,t);case mx:a=8,i|=8;break;case vC:return e=ba(12,n,t,i|2),e.elementType=vC,e.lanes=o,e;case yC:return e=ba(13,n,t,i),e.elementType=yC,e.lanes=o,e;case bC:return e=ba(19,n,t,i),e.elementType=bC,e.lanes=o,e;case kR:return rb(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case OR:a=10;break e;case IR:a=9;break e;case gx:a=11;break e;case vx:a=14;break e;case Ys:a=16,r=null;break e}throw Error(Ct(130,e==null?e:typeof e,""))}return t=ba(a,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function _u(e,t,n,r){return e=ba(7,e,r,t),e.lanes=n,e}function rb(e,t,n,r){return e=ba(22,e,r,t),e.elementType=kR,e.lanes=n,e.stateNode={isHidden:!1},e}function o4(e,t,n){return e=ba(6,e,null,t),e.lanes=n,e}function a4(e,t,n){return t=ba(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Nq(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=j5(0),this.expirationTimes=j5(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=j5(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Zx(e,t,n,r,i,o,a,l,c){return e=new Nq(e,t,n,l,c),t===1?(t=1,o===!0&&(t|=8)):t=0,o=ba(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Px(o),e}function Aq(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Vd,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function CP(e){if(!e)return Sc;e=e._reactInternals;e:{if(Ku(e)!==e||e.tag!==1)throw Error(Ct(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(No(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(Ct(171))}if(e.tag===1){var n=e.type;if(No(n))return CM(e,n,t)}return t}function SP(e,t,n,r,i,o,a,l,c){return e=Zx(n,r,!0,e,i,o,a,l,c),e.context=CP(null),n=e.current,r=so(),i=mc(n),o=ps(r,i),o.callback=t??null,pc(n,o,i),e.current.lanes=i,gm(e,i,r),Ao(e,r),e}function ib(e,t,n,r){var i=t.current,o=so(),a=mc(i);return n=CP(n),t.context===null?t.context=n:t.pendingContext=n,t=ps(o,a),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=pc(i,t,a),e!==null&&(el(e,i,a,o),Ug(e,i,a)),a}function Yv(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function ST(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Jx(e,t){ST(e,t),(e=e.alternate)&&ST(e,t)}function Rq(){return null}var EP=typeof reportError=="function"?reportError:function(e){console.error(e)};function e3(e){this._internalRoot=e}ob.prototype.render=e3.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(Ct(409));ib(e,t,null,null)};ob.prototype.unmount=e3.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Lu(function(){ib(null,e,null,null)}),t[ms]=null}};function ob(e){this._internalRoot=e}ob.prototype.unstable_scheduleHydration=function(e){if(e){var t=JR();e={blockedOn:null,target:e,priority:t};for(var n=0;n<ec.length&&t!==0&&t<ec[n].priority;n++);ec.splice(n,0,e),n===0&&tM(e)}};function t3(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function ab(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function ET(){}function Mq(e,t,n,r,i){if(i){if(typeof r=="function"){var o=r;r=function(){var u=Yv(a);o.call(u)}}var a=SP(t,r,e,0,null,!1,!1,"",ET);return e._reactRootContainer=a,e[ms]=a.current,Ih(e.nodeType===8?e.parentNode:e),Lu(),a}for(;i=e.lastChild;)e.removeChild(i);if(typeof r=="function"){var l=r;r=function(){var u=Yv(c);l.call(u)}}var c=Zx(e,0,!1,null,null,!1,!1,"",ET);return e._reactRootContainer=c,e[ms]=c.current,Ih(e.nodeType===8?e.parentNode:e),Lu(function(){ib(t,c,n,r)}),c}function lb(e,t,n,r,i){var o=n._reactRootContainer;if(o){var a=o;if(typeof i=="function"){var l=i;i=function(){var c=Yv(a);l.call(c)}}ib(t,a,e,i)}else a=Mq(n,t,e,i,r);return Yv(a)}QR=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Rp(t.pendingLanes);n!==0&&(Cx(t,n|1),Ao(t,Kr()),!(jn&6)&&(Lf=Kr()+500,Nc()))}break;case 13:Lu(function(){var r=gs(e,1);if(r!==null){var i=so();el(r,e,1,i)}}),Jx(e,1)}};Sx=function(e){if(e.tag===13){var t=gs(e,134217728);if(t!==null){var n=so();el(t,e,134217728,n)}Jx(e,134217728)}};ZR=function(e){if(e.tag===13){var t=mc(e),n=gs(e,t);if(n!==null){var r=so();el(n,e,t,r)}Jx(e,t)}};JR=function(){return Qn};eM=function(e,t){var n=Qn;try{return Qn=e,t()}finally{Qn=n}};kC=function(e,t,n){switch(t){case"input":if(EC(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=Qy(r);if(!i)throw Error(Ct(90));NR(r),EC(r,i)}}}break;case"textarea":RR(e,n);break;case"select":t=n.value,t!=null&&mf(e,!!n.multiple,t,!1)}};jR=qx;HR=Lu;var Pq={usingClientEntryPoint:!1,Events:[ym,Qd,Qy,FR,BR,qx]},lp={findFiberByHostInstance:hu,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Lq={bundleType:lp.bundleType,version:lp.version,rendererPackageName:lp.rendererPackageName,rendererConfig:lp.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Ss.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=UR(e),e===null?null:e.stateNode},findFiberByHostInstance:lp.findFiberByHostInstance||Rq,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var W0=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!W0.isDisabled&&W0.supportsFiber)try{Gy=W0.inject(Lq),kl=W0}catch{}}oa.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Pq;oa.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t3(t))throw Error(Ct(200));return Aq(e,t,null,n)};oa.createRoot=function(e,t){if(!t3(e))throw Error(Ct(299));var n=!1,r="",i=EP;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=Zx(e,1,!1,null,null,n,!1,r,i),e[ms]=t.current,Ih(e.nodeType===8?e.parentNode:e),new e3(t)};oa.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(Ct(188)):(e=Object.keys(e).join(","),Error(Ct(268,e)));return e=UR(t),e=e===null?null:e.stateNode,e};oa.flushSync=function(e){return Lu(e)};oa.hydrate=function(e,t,n){if(!ab(t))throw Error(Ct(200));return lb(null,e,t,!0,n)};oa.hydrateRoot=function(e,t,n){if(!t3(e))throw Error(Ct(405));var r=n!=null&&n.hydratedSources||null,i=!1,o="",a=EP;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onRecoverableError!==void 0&&(a=n.onRecoverableError)),t=SP(t,null,e,1,n??null,i,!1,o,a),e[ms]=t.current,Ih(e),r)for(e=0;e<r.length;e++)n=r[e],i=n._getVersion,i=i(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new ob(t)};oa.render=function(e,t,n){if(!ab(t))throw Error(Ct(200));return lb(null,e,t,!1,n)};oa.unmountComponentAtNode=function(e){if(!ab(e))throw Error(Ct(40));return e._reactRootContainer?(Lu(function(){lb(null,null,e,!1,function(){e._reactRootContainer=null,e[ms]=null})}),!0):!1};oa.unstable_batchedUpdates=qx;oa.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!ab(n))throw Error(Ct(200));if(e==null||e._reactInternals===void 0)throw Error(Ct(38));return lb(e,t,n,!1,r)};oa.version="18.3.1-next-f1338f8080-20240426";function xP(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(xP)}catch(e){console.error(e)}}xP(),xR.exports=oa;var Ta=xR.exports;const Dh=dl(Ta),wP=dR({__proto__:null,default:Dh},[Ta]);var xT=Ta;mC.createRoot=xT.createRoot,mC.hydrateRoot=xT.hydrateRoot;/**
* @remix-run/router v1.21.0
*
* Copyright (c) Remix Software Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
*/function xr(){return xr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},xr.apply(this,arguments)}var Yr;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(Yr||(Yr={}));const wT="popstate";function Dq(e){e===void 0&&(e={});function t(r,i){let{pathname:o,search:a,hash:l}=r.location;return Fh("",{pathname:o,search:a,hash:l},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function n(r,i){return typeof i=="string"?i:Cm(i)}return Bq(t,n,null,e)}function Pn(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Df(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Fq(){return Math.random().toString(36).substr(2,8)}function _T(e,t){return{usr:e.state,key:e.key,idx:t}}function Fh(e,t,n,r){return n===void 0&&(n=null),xr({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Ac(t):t,{state:n,key:t&&t.key||r||Fq()})}function Cm(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function Ac(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function Bq(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:o=!1}=r,a=i.history,l=Yr.Pop,c=null,u=p();u==null&&(u=0,a.replaceState(xr({},a.state,{idx:u}),""));function p(){return(a.state||{idx:null}).idx}function h(){l=Yr.Pop;let x=p(),S=x==null?null:x-u;u=x,c&&c({action:l,location:E.location,delta:S})}function m(x,S){l=Yr.Push;let C=Fh(E.location,x,S);u=p()+1;let _=_T(C,u),O=E.createHref(C);try{a.pushState(_,"",O)}catch(k){if(k instanceof DOMException&&k.name==="DataCloneError")throw k;i.location.assign(O)}o&&c&&c({action:l,location:E.location,delta:1})}function g(x,S){l=Yr.Replace;let C=Fh(E.location,x,S);u=p();let _=_T(C,u),O=E.createHref(C);a.replaceState(_,"",O),o&&c&&c({action:l,location:E.location,delta:0})}function b(x){let S=i.location.origin!=="null"?i.location.origin:i.location.href,C=typeof x=="string"?x:Cm(x);return C=C.replace(/ $/,"%20"),Pn(S,"No window.location.(origin|href) available to create URL for href: "+C),new URL(C,S)}let E={get action(){return l},get location(){return e(i,a)},listen(x){if(c)throw new Error("A history only accepts one active listener");return i.addEventListener(wT,h),c=x,()=>{i.removeEventListener(wT,h),c=null}},createHref(x){return t(i,x)},createURL:b,encodeLocation(x){let S=b(x);return{pathname:S.pathname,search:S.search,hash:S.hash}},push:m,replace:g,go(x){return a.go(x)}};return E}var rr;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(rr||(rr={}));const jq=new Set(["lazy","caseSensitive","path","id","index","children"]);function Hq(e){return e.index===!0}function Qv(e,t,n,r){return n===void 0&&(n=[]),r===void 0&&(r={}),e.map((i,o)=>{let a=[...n,String(o)],l=typeof i.id=="string"?i.id:a.join("-");if(Pn(i.index!==!0||!i.children,"Cannot specify children on an index route"),Pn(!r[l],'Found a route id collision on id "'+l+`". Route id's must be globally unique within Data Router usages`),Hq(i)){let c=xr({},i,t(i),{id:l});return r[l]=c,c}else{let c=xr({},i,t(i),{id:l,children:void 0});return r[l]=c,i.children&&(c.children=Qv(i.children,t,a,r)),c}})}function uu(e,t,n){return n===void 0&&(n="/"),Qg(e,t,n,!1)}function Qg(e,t,n,r){let i=typeof t=="string"?Ac(t):t,o=Sm(i.pathname||"/",n);if(o==null)return null;let a=_P(e);Wq(a);let l=null;for(let c=0;l==null&&c<a.length;++c){let u=eX(o);l=Zq(a[c],u,r)}return l}function zq(e,t){let{route:n,pathname:r,params:i}=e;return{id:n.id,pathname:r,params:i,data:t[n.id],handle:n.handle}}function _P(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let i=(o,a,l)=>{let c={relativePath:l===void 0?o.path||"":l,caseSensitive:o.caseSensitive===!0,childrenIndex:a,route:o};c.relativePath.startsWith("/")&&(Pn(c.relativePath.startsWith(r),'Absolute route path "'+c.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),c.relativePath=c.relativePath.slice(r.length));let u=vc([r,c.relativePath]),p=n.concat(c);o.children&&o.children.length>0&&(Pn(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),_P(o.children,t,p,u)),!(o.path==null&&!o.index)&&t.push({path:u,score:Yq(u,o.index),routesMeta:p})};return e.forEach((o,a)=>{var l;if(o.path===""||!((l=o.path)!=null&&l.includes("?")))i(o,a);else for(let c of TP(o.path))i(o,a,c)}),t}function TP(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),o=n.replace(/\?$/,"");if(r.length===0)return i?[o,""]:[o];let a=TP(r.join("/")),l=[];return l.push(...a.map(c=>c===""?o:[o,c].join("/"))),i&&l.push(...a),l.map(c=>e.startsWith("/")&&c===""?"/":c)}function Wq(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:Qq(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const Uq=/^:[\w-]+$/,Kq=3,Vq=2,Gq=1,qq=10,Xq=-2,TT=e=>e==="*";function Yq(e,t){let n=e.split("/"),r=n.length;return n.some(TT)&&(r+=Xq),t&&(r+=Vq),n.filter(i=>!TT(i)).reduce((i,o)=>i+(Uq.test(o)?Kq:o===""?Gq:qq),r)}function Qq(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function Zq(e,t,n){n===void 0&&(n=!1);let{routesMeta:r}=e,i={},o="/",a=[];for(let l=0;l<r.length;++l){let c=r[l],u=l===r.length-1,p=o==="/"?t:t.slice(o.length)||"/",h=OT({path:c.relativePath,caseSensitive:c.caseSensitive,end:u},p),m=c.route;if(!h&&u&&n&&!r[r.length-1].route.index&&(h=OT({path:c.relativePath,caseSensitive:c.caseSensitive,end:!1},p)),!h)return null;Object.assign(i,h.params),a.push({params:i,pathname:vc([o,h.pathname]),pathnameBase:rX(vc([o,h.pathnameBase])),route:m}),h.pathnameBase!=="/"&&(o=vc([o,h.pathnameBase]))}return a}function OT(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=Jq(e.path,e.caseSensitive,e.end),i=t.match(n);if(!i)return null;let o=i[0],a=o.replace(/(.)\/+$/,"$1"),l=i.slice(1);return{params:r.reduce((u,p,h)=>{let{paramName:m,isOptional:g}=p;if(m==="*"){let E=l[h]||"";a=o.slice(0,o.length-E.length).replace(/(.)\/+$/,"$1")}const b=l[h];return g&&!b?u[m]=void 0:u[m]=(b||"").replace(/%2F/g,"/"),u},{}),pathname:o,pathnameBase:a,pattern:e}}function Jq(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Df(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(a,l,c)=>(r.push({paramName:l,isOptional:c!=null}),c?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function eX(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Df(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function Sm(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function tX(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?Ac(e):e;return{pathname:n?n.startsWith("/")?n:nX(n,t):t,search:iX(r),hash:oX(i)}}function nX(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function l4(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function OP(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function IP(e,t){let n=OP(e);return t?n.map((r,i)=>i===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function kP(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=Ac(e):(i=xr({},e),Pn(!i.pathname||!i.pathname.includes("?"),l4("?","pathname","search",i)),Pn(!i.pathname||!i.pathname.includes("#"),l4("#","pathname","hash",i)),Pn(!i.search||!i.search.includes("#"),l4("#","search","hash",i)));let o=e===""||i.pathname==="",a=o?"/":i.pathname,l;if(a==null)l=n;else{let h=t.length-1;if(!r&&a.startsWith("..")){let m=a.split("/");for(;m[0]==="..";)m.shift(),h-=1;i.pathname=m.join("/")}l=h>=0?t[h]:"/"}let c=tX(i,l),u=a&&a!=="/"&&a.endsWith("/"),p=(o||a===".")&&n.endsWith("/");return!c.pathname.endsWith("/")&&(u||p)&&(c.pathname+="/"),c}const vc=e=>e.join("/").replace(/\/\/+/g,"/"),rX=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),iX=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,oX=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class Zv{constructor(t,n,r,i){i===void 0&&(i=!1),this.status=t,this.statusText=n||"",this.internal=i,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function sb(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const $P=["post","put","patch","delete"],aX=new Set($P),lX=["get",...$P],sX=new Set(lX),cX=new Set([301,302,303,307,308]),uX=new Set([307,308]),s4={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},dX={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},sp={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},n3=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,fX=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),NP="remix-router-transitions";function pX(e){const t=e.window?e.window:typeof window<"u"?window:void 0,n=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u",r=!n;Pn(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let i;if(e.mapRouteProperties)i=e.mapRouteProperties;else if(e.detectErrorBoundary){let he=e.detectErrorBoundary;i=we=>({hasErrorBoundary:he(we)})}else i=fX;let o={},a=Qv(e.routes,i,void 0,o),l,c=e.basename||"/",u=e.dataStrategy||vX,p=e.patchRoutesOnNavigation,h=xr({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,v7_skipActionErrorRevalidation:!1},e.future),m=null,g=new Set,b=null,E=null,x=null,S=e.hydrationData!=null,C=uu(a,e.history.location,c),_=null;if(C==null&&!p){let he=wo(404,{pathname:e.history.location.pathname}),{matches:we,route:ve}=FT(a);C=we,_={[ve.id]:he}}C&&!e.hydrationData&&Ft(C,a,e.history.location.pathname).active&&(C=null);let O;if(C)if(C.some(he=>he.route.lazy))O=!1;else if(!C.some(he=>he.route.loader))O=!0;else if(h.v7_partialHydration){let he=e.hydrationData?e.hydrationData.loaderData:null,we=e.hydrationData?e.hydrationData.errors:null;if(we){let ve=C.findIndex(Me=>we[Me.route.id]!==void 0);O=C.slice(0,ve+1).every(Me=>!cS(Me.route,he,we))}else O=C.every(ve=>!cS(ve.route,he,we))}else O=e.hydrationData!=null;else if(O=!1,C=[],h.v7_partialHydration){let he=Ft(null,a,e.history.location.pathname);he.active&&he.matches&&(C=he.matches)}let k,T={historyAction:e.history.action,location:e.history.location,matches:C,initialized:O,navigation:s4,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||_,fetchers:new Map,blockers:new Map},I=Yr.Pop,$=!1,M,R=!1,j=new Map,D=null,L=!1,B=!1,H=[],W=new Set,z=new Map,V=0,X=-1,A=new Map,P=new Set,Y=new Map,U=new Map,Q=new Set,ee=new Map,se=new Map,ne;function oe(){if(m=e.history.listen(he=>{let{action:we,location:ve,delta:Me}=he;if(ne){ne(),ne=void 0;return}Df(se.size===0||Me!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let Je=ht({currentLocation:T.location,nextLocation:ve,historyAction:we});if(Je&&Me!=null){let tt=new Promise(st=>{ne=st});e.history.go(Me*-1),Ye(Je,{state:"blocked",location:ve,proceed(){Ye(Je,{state:"proceeding",proceed:void 0,reset:void 0,location:ve}),tt.then(()=>e.history.go(Me))},reset(){let st=new Map(T.blockers);st.set(Je,sp),ue({blockers:st})}});return}return ge(we,ve)}),n){NX(t,j);let he=()=>AX(t,j);t.addEventListener("pagehide",he),D=()=>t.removeEventListener("pagehide",he)}return T.initialized||ge(Yr.Pop,T.location,{initialHydration:!0}),k}function pe(){m&&m(),D&&D(),g.clear(),M&&M.abort(),T.fetchers.forEach((he,we)=>Pe(we)),T.blockers.forEach((he,we)=>$e(we))}function be(he){return g.add(he),()=>g.delete(he)}function ue(he,we){we===void 0&&(we={}),T=xr({},T,he);let ve=[],Me=[];h.v7_fetcherPersist&&T.fetchers.forEach((Je,tt)=>{Je.state==="idle"&&(Q.has(tt)?Me.push(tt):ve.push(tt))}),[...g].forEach(Je=>Je(T,{deletedFetchers:Me,viewTransitionOpts:we.viewTransitionOpts,flushSync:we.flushSync===!0})),h.v7_fetcherPersist&&(ve.forEach(Je=>T.fetchers.delete(Je)),Me.forEach(Je=>Pe(Je)))}function de(he,we,ve){var Me,Je;let{flushSync:tt}=ve===void 0?{}:ve,st=T.actionData!=null&&T.navigation.formMethod!=null&&Xa(T.navigation.formMethod)&&T.navigation.state==="loading"&&((Me=he.state)==null?void 0:Me._isRedirect)!==!0,at;we.actionData?Object.keys(we.actionData).length>0?at=we.actionData:at=null:st?at=T.actionData:at=null;let it=we.loaderData?LT(T.loaderData,we.loaderData,we.matches||[],we.errors):T.loaderData,nt=T.blockers;nt.size>0&&(nt=new Map(nt),nt.forEach((St,Zt)=>nt.set(Zt,sp)));let ct=$===!0||T.navigation.formMethod!=null&&Xa(T.navigation.formMethod)&&((Je=he.state)==null?void 0:Je._isRedirect)!==!0;l&&(a=l,l=void 0),L||I===Yr.Pop||(I===Yr.Push?e.history.push(he,he.state):I===Yr.Replace&&e.history.replace(he,he.state));let mt;if(I===Yr.Pop){let St=j.get(T.location.pathname);St&&St.has(he.pathname)?mt={currentLocation:T.location,nextLocation:he}:j.has(he.pathname)&&(mt={currentLocation:he,nextLocation:T.location})}else if(R){let St=j.get(T.location.pathname);St?St.add(he.pathname):(St=new Set([he.pathname]),j.set(T.location.pathname,St)),mt={currentLocation:T.location,nextLocation:he}}ue(xr({},we,{actionData:at,loaderData:it,historyAction:I,location:he,initialized:!0,navigation:s4,revalidation:"idle",restoreScrollPosition:Gt(he,we.matches||T.matches),preventScrollReset:ct,blockers:nt}),{viewTransitionOpts:mt,flushSync:tt===!0}),I=Yr.Pop,$=!1,R=!1,L=!1,B=!1,H=[]}async function re(he,we){if(typeof he=="number"){e.history.go(he);return}let ve=sS(T.location,T.matches,c,h.v7_prependBasename,he,h.v7_relativeSplatPath,we==null?void 0:we.fromRouteId,we==null?void 0:we.relative),{path:Me,submission:Je,error:tt}=IT(h.v7_normalizeFormMethod,!1,ve,we),st=T.location,at=Fh(T.location,Me,we&&we.state);at=xr({},at,e.history.encodeLocation(at));let it=we&&we.replace!=null?we.replace:void 0,nt=Yr.Push;it===!0?nt=Yr.Replace:it===!1||Je!=null&&Xa(Je.formMethod)&&Je.formAction===T.location.pathname+T.location.search&&(nt=Yr.Replace);let ct=we&&"preventScrollReset"in we?we.preventScrollReset===!0:void 0,mt=(we&&we.flushSync)===!0,St=ht({currentLocation:st,nextLocation:at,historyAction:nt});if(St){Ye(St,{state:"blocked",location:at,proceed(){Ye(St,{state:"proceeding",proceed:void 0,reset:void 0,location:at}),re(he,we)},reset(){let Zt=new Map(T.blockers);Zt.set(St,sp),ue({blockers:Zt})}});return}return await ge(nt,at,{submission:Je,pendingError:tt,preventScrollReset:ct,replace:we&&we.replace,enableViewTransition:we&&we.viewTransition,flushSync:mt})}function me(){if(qe(),ue({revalidation:"loading"}),T.navigation.state!=="submitting"){if(T.navigation.state==="idle"){ge(T.historyAction,T.location,{startUninterruptedRevalidation:!0});return}ge(I||T.historyAction,T.navigation.location,{overrideNavigation:T.navigation,enableViewTransition:R===!0})}}async function ge(he,we,ve){M&&M.abort(),M=null,I=he,L=(ve&&ve.startUninterruptedRevalidation)===!0,rn(T.location,T.matches),$=(ve&&ve.preventScrollReset)===!0,R=(ve&&ve.enableViewTransition)===!0;let Me=l||a,Je=ve&&ve.overrideNavigation,tt=uu(Me,we,c),st=(ve&&ve.flushSync)===!0,at=Ft(tt,Me,we.pathname);if(at.active&&at.matches&&(tt=at.matches),!tt){let{error:Lt,notFoundMatches:Pt,route:vt}=It(we.pathname);de(we,{matches:Pt,loaderData:{},errors:{[vt.id]:Lt}},{flushSync:st});return}if(T.initialized&&!B&&xX(T.location,we)&&!(ve&&ve.submission&&Xa(ve.submission.formMethod))){de(we,{matches:tt},{flushSync:st});return}M=new AbortController;let it=xd(e.history,we,M.signal,ve&&ve.submission),nt;if(ve&&ve.pendingError)nt=[du(tt).route.id,{type:rr.error,error:ve.pendingError}];else if(ve&&ve.submission&&Xa(ve.submission.formMethod)){let Lt=await Ae(it,we,ve.submission,tt,at.active,{replace:ve.replace,flushSync:st});if(Lt.shortCircuited)return;if(Lt.pendingActionResult){let[Pt,vt]=Lt.pendingActionResult;if(qo(vt)&&sb(vt.error)&&vt.error.status===404){M=null,de(we,{matches:Lt.matches,loaderData:{},errors:{[Pt]:vt.error}});return}}tt=Lt.matches||tt,nt=Lt.pendingActionResult,Je=c4(we,ve.submission),st=!1,at.active=!1,it=xd(e.history,it.url,it.signal)}let{shortCircuited:ct,matches:mt,loaderData:St,errors:Zt}=await De(it,we,tt,at.active,Je,ve&&ve.submission,ve&&ve.fetcherSubmission,ve&&ve.replace,ve&&ve.initialHydration===!0,st,nt);ct||(M=null,de(we,xr({matches:mt||tt},DT(nt),{loaderData:St,errors:Zt})))}async function Ae(he,we,ve,Me,Je,tt){tt===void 0&&(tt={}),qe();let st=kX(we,ve);if(ue({navigation:st},{flushSync:tt.flushSync===!0}),Je){let nt=await bt(Me,we.pathname,he.signal);if(nt.type==="aborted")return{shortCircuited:!0};if(nt.type==="error"){let ct=du(nt.partialMatches).route.id;return{matches:nt.partialMatches,pendingActionResult:[ct,{type:rr.error,error:nt.error}]}}else if(nt.matches)Me=nt.matches;else{let{notFoundMatches:ct,error:mt,route:St}=It(we.pathname);return{matches:ct,pendingActionResult:[St.id,{type:rr.error,error:mt}]}}}let at,it=Pp(Me,we);if(!it.route.action&&!it.route.lazy)at={type:rr.error,error:wo(405,{method:he.method,pathname:we.pathname,routeId:it.route.id})};else if(at=(await je("action",T,he,[it],Me,null))[it.route.id],he.signal.aborted)return{shortCircuited:!0};if(vu(at)){let nt;return tt&&tt.replace!=null?nt=tt.replace:nt=RT(at.response.headers.get("Location"),new URL(he.url),c)===T.location.pathname+T.location.search,await Le(he,at,!0,{submission:ve,replace:nt}),{shortCircuited:!0}}if(ic(at))throw wo(400,{type:"defer-action"});if(qo(at)){let nt=du(Me,it.route.id);return(tt&&tt.replace)!==!0&&(I=Yr.Push),{matches:Me,pendingActionResult:[nt.route.id,at]}}return{matches:Me,pendingActionResult:[it.route.id,at]}}async function De(he,we,ve,Me,Je,tt,st,at,it,nt,ct){let mt=Je||c4(we,tt),St=tt||st||jT(mt),Zt=!L&&(!h.v7_partialHydration||!it);if(Me){if(Zt){let Ze=ze(ct);ue(xr({navigation:mt},Ze!==void 0?{actionData:Ze}:{}),{flushSync:nt})}let Ke=await bt(ve,we.pathname,he.signal);if(Ke.type==="aborted")return{shortCircuited:!0};if(Ke.type==="error"){let Ze=du(Ke.partialMatches).route.id;return{matches:Ke.partialMatches,loaderData:{},errors:{[Ze]:Ke.error}}}else if(Ke.matches)ve=Ke.matches;else{let{error:Ze,notFoundMatches:Kt,route:ln}=It(we.pathname);return{matches:Kt,loaderData:{},errors:{[ln.id]:Ze}}}}let Lt=l||a,[Pt,vt]=$T(e.history,T,ve,St,we,h.v7_partialHydration&&it===!0,h.v7_skipActionErrorRevalidation,B,H,W,Q,Y,P,Lt,c,ct);if(Jt(Ke=>!(ve&&ve.some(Ze=>Ze.route.id===Ke))||Pt&&Pt.some(Ze=>Ze.route.id===Ke)),X=++V,Pt.length===0&&vt.length===0){let Ke=ie();return de(we,xr({matches:ve,loaderData:{},errors:ct&&qo(ct[1])?{[ct[0]]:ct[1].error}:null},DT(ct),Ke?{fetchers:new Map(T.fetchers)}:{}),{flushSync:nt}),{shortCircuited:!0}}if(Zt){let Ke={};if(!Me){Ke.navigation=mt;let Ze=ze(ct);Ze!==void 0&&(Ke.actionData=Ze)}vt.length>0&&(Ke.fetchers=et(vt)),ue(Ke,{flushSync:nt})}vt.forEach(Ke=>{He(Ke.key),Ke.controller&&z.set(Ke.key,Ke.controller)});let dt=()=>vt.forEach(Ke=>He(Ke.key));M&&M.signal.addEventListener("abort",dt);let{loaderResults:ot,fetcherResults:Xt}=await Ge(T,ve,Pt,vt,he);if(he.signal.aborted)return{shortCircuited:!0};M&&M.signal.removeEventListener("abort",dt),vt.forEach(Ke=>z.delete(Ke.key));let Dt=U0(ot);if(Dt)return await Le(he,Dt.result,!0,{replace:at}),{shortCircuited:!0};if(Dt=U0(Xt),Dt)return P.add(Dt.key),await Le(he,Dt.result,!0,{replace:at}),{shortCircuited:!0};let{loaderData:xt,errors:Tt}=PT(T,ve,ot,ct,vt,Xt,ee);ee.forEach((Ke,Ze)=>{Ke.subscribe(Kt=>{(Kt||Ke.done)&&ee.delete(Ze)})}),h.v7_partialHydration&&it&&T.errors&&(Tt=xr({},T.errors,Tt));let tn=ie(),mn=xe(X),Sn=tn||mn||vt.length>0;return xr({matches:ve,loaderData:xt,errors:Tt},Sn?{fetchers:new Map(T.fetchers)}:{})}function ze(he){if(he&&!qo(he[1]))return{[he[0]]:he[1].data};if(T.actionData)return Object.keys(T.actionData).length===0?null:T.actionData}function et(he){return he.forEach(we=>{let ve=T.fetchers.get(we.key),Me=cp(void 0,ve?ve.data:void 0);T.fetchers.set(we.key,Me)}),new Map(T.fetchers)}function Ie(he,we,ve,Me){if(r)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");He(he);let Je=(Me&&Me.flushSync)===!0,tt=l||a,st=sS(T.location,T.matches,c,h.v7_prependBasename,ve,h.v7_relativeSplatPath,we,Me==null?void 0:Me.relative),at=uu(tt,st,c),it=Ft(at,tt,st);if(it.active&&it.matches&&(at=it.matches),!at){ke(he,we,wo(404,{pathname:st}),{flushSync:Je});return}let{path:nt,submission:ct,error:mt}=IT(h.v7_normalizeFormMethod,!0,st,Me);if(mt){ke(he,we,mt,{flushSync:Je});return}let St=Pp(at,nt),Zt=(Me&&Me.preventScrollReset)===!0;if(ct&&Xa(ct.formMethod)){Te(he,we,nt,St,at,it.active,Je,Zt,ct);return}Y.set(he,{routeId:we,path:nt}),Ue(he,we,nt,St,at,it.active,Je,Zt,ct)}async function Te(he,we,ve,Me,Je,tt,st,at,it){qe(),Y.delete(he);function nt(dn){if(!dn.route.action&&!dn.route.lazy){let Vn=wo(405,{method:it.formMethod,pathname:ve,routeId:we});return ke(he,we,Vn,{flushSync:st}),!0}return!1}if(!tt&&nt(Me))return;let ct=T.fetchers.get(he);Ce(he,$X(it,ct),{flushSync:st});let mt=new AbortController,St=xd(e.history,ve,mt.signal,it);if(tt){let dn=await bt(Je,ve,St.signal);if(dn.type==="aborted")return;if(dn.type==="error"){ke(he,we,dn.error,{flushSync:st});return}else if(dn.matches){if(Je=dn.matches,Me=Pp(Je,ve),nt(Me))return}else{ke(he,we,wo(404,{pathname:ve}),{flushSync:st});return}}z.set(he,mt);let Zt=V,Pt=(await je("action",T,St,[Me],Je,he))[Me.route.id];if(St.signal.aborted){z.get(he)===mt&&z.delete(he);return}if(h.v7_fetcherPersist&&Q.has(he)){if(vu(Pt)||qo(Pt)){Ce(he,Ws(void 0));return}}else{if(vu(Pt))if(z.delete(he),X>Zt){Ce(he,Ws(void 0));return}else return P.add(he),Ce(he,cp(it)),Le(St,Pt,!1,{fetcherSubmission:it,preventScrollReset:at});if(qo(Pt)){ke(he,we,Pt.error);return}}if(ic(Pt))throw wo(400,{type:"defer-action"});let vt=T.navigation.location||T.location,dt=xd(e.history,vt,mt.signal),ot=l||a,Xt=T.navigation.state!=="idle"?uu(ot,T.navigation.location,c):T.matches;Pn(Xt,"Didn't find any matches after fetcher action");let Dt=++V;A.set(he,Dt);let xt=cp(it,Pt.data);T.fetchers.set(he,xt);let[Tt,tn]=$T(e.history,T,Xt,it,vt,!1,h.v7_skipActionErrorRevalidation,B,H,W,Q,Y,P,ot,c,[Me.route.id,Pt]);tn.filter(dn=>dn.key!==he).forEach(dn=>{let Vn=dn.key,cr=T.fetchers.get(Vn),Ht=cp(void 0,cr?cr.data:void 0);T.fetchers.set(Vn,Ht),He(Vn),dn.controller&&z.set(Vn,dn.controller)}),ue({fetchers:new Map(T.fetchers)});let mn=()=>tn.forEach(dn=>He(dn.key));mt.signal.addEventListener("abort",mn);let{loaderResults:Sn,fetcherResults:Ke}=await Ge(T,Xt,Tt,tn,dt);if(mt.signal.aborted)return;mt.signal.removeEventListener("abort",mn),A.delete(he),z.delete(he),tn.forEach(dn=>z.delete(dn.key));let Ze=U0(Sn);if(Ze)return Le(dt,Ze.result,!1,{preventScrollReset:at});if(Ze=U0(Ke),Ze)return P.add(Ze.key),Le(dt,Ze.result,!1,{preventScrollReset:at});let{loaderData:Kt,errors:ln}=PT(T,Xt,Sn,void 0,tn,Ke,ee);if(T.fetchers.has(he)){let dn=Ws(Pt.data);T.fetchers.set(he,dn)}xe(Dt),T.navigation.state==="loading"&&Dt>X?(Pn(I,"Expected pending action"),M&&M.abort(),de(T.navigation.location,{matches:Xt,loaderData:Kt,errors:ln,fetchers:new Map(T.fetchers)})):(ue({errors:ln,loaderData:LT(T.loaderData,Kt,Xt,ln),fetchers:new Map(T.fetchers)}),B=!1)}async function Ue(he,we,ve,Me,Je,tt,st,at,it){let nt=T.fetchers.get(he);Ce(he,cp(it,nt?nt.data:void 0),{flushSync:st});let ct=new AbortController,mt=xd(e.history,ve,ct.signal);if(tt){let Pt=await bt(Je,ve,mt.signal);if(Pt.type==="aborted")return;if(Pt.type==="error"){ke(he,we,Pt.error,{flushSync:st});return}else if(Pt.matches)Je=Pt.matches,Me=Pp(Je,ve);else{ke(he,we,wo(404,{pathname:ve}),{flushSync:st});return}}z.set(he,ct);let St=V,Lt=(await je("loader",T,mt,[Me],Je,he))[Me.route.id];if(ic(Lt)&&(Lt=await r3(Lt,mt.signal,!0)||Lt),z.get(he)===ct&&z.delete(he),!mt.signal.aborted){if(Q.has(he)){Ce(he,Ws(void 0));return}if(vu(Lt))if(X>St){Ce(he,Ws(void 0));return}else{P.add(he),await Le(mt,Lt,!1,{preventScrollReset:at});return}if(qo(Lt)){ke(he,we,Lt.error);return}Pn(!ic(Lt),"Unhandled fetcher deferred data"),Ce(he,Ws(Lt.data))}}async function Le(he,we,ve,Me){let{submission:Je,fetcherSubmission:tt,preventScrollReset:st,replace:at}=Me===void 0?{}:Me;we.response.headers.has("X-Remix-Revalidate")&&(B=!0);let it=we.response.headers.get("Location");Pn(it,"Expected a Location header on the redirect Response"),it=RT(it,new URL(he.url),c);let nt=Fh(T.location,it,{_isRedirect:!0});if(n){let Pt=!1;if(we.response.headers.has("X-Remix-Reload-Document"))Pt=!0;else if(n3.test(it)){const vt=e.history.createURL(it);Pt=vt.origin!==t.location.origin||Sm(vt.pathname,c)==null}if(Pt){at?t.location.replace(it):t.location.assign(it);return}}M=null;let ct=at===!0||we.response.headers.has("X-Remix-Replace")?Yr.Replace:Yr.Push,{formMethod:mt,formAction:St,formEncType:Zt}=T.navigation;!Je&&!tt&&mt&&St&&Zt&&(Je=jT(T.navigation));let Lt=Je||tt;if(uX.has(we.response.status)&&Lt&&Xa(Lt.formMethod))await ge(ct,nt,{submission:xr({},Lt,{formAction:it}),preventScrollReset:st||$,enableViewTransition:ve?R:void 0});else{let Pt=c4(nt,Je);await ge(ct,nt,{overrideNavigation:Pt,fetcherSubmission:tt,preventScrollReset:st||$,enableViewTransition:ve?R:void 0})}}async function je(he,we,ve,Me,Je,tt){let st,at={};try{st=await yX(u,he,we,ve,Me,Je,tt,o,i)}catch(it){return Me.forEach(nt=>{at[nt.route.id]={type:rr.error,error:it}}),at}for(let[it,nt]of Object.entries(st))if(wX(nt)){let ct=nt.result;at[it]={type:rr.redirect,response:SX(ct,ve,it,Je,c,h.v7_relativeSplatPath)}}else at[it]=await CX(nt);return at}async function Ge(he,we,ve,Me,Je){let tt=he.matches,st=je("loader",he,Je,ve,we,null),at=Promise.all(Me.map(async ct=>{if(ct.matches&&ct.match&&ct.controller){let St=(await je("loader",he,xd(e.history,ct.path,ct.controller.signal),[ct.match],ct.matches,ct.key))[ct.match.route.id];return{[ct.key]:St}}else return Promise.resolve({[ct.key]:{type:rr.error,error:wo(404,{pathname:ct.path})}})})),it=await st,nt=(await at).reduce((ct,mt)=>Object.assign(ct,mt),{});return await Promise.all([OX(we,it,Je.signal,tt,he.loaderData),IX(we,nt,Me)]),{loaderResults:it,fetcherResults:nt}}function qe(){B=!0,H.push(...Jt()),Y.forEach((he,we)=>{z.has(we)&&W.add(we),He(we)})}function Ce(he,we,ve){ve===void 0&&(ve={}),T.fetchers.set(he,we),ue({fetchers:new Map(T.fetchers)},{flushSync:(ve&&ve.flushSync)===!0})}function ke(he,we,ve,Me){Me===void 0&&(Me={});let Je=du(T.matches,we);Pe(he),ue({errors:{[Je.route.id]:ve},fetchers:new Map(T.fetchers)},{flushSync:(Me&&Me.flushSync)===!0})}function We(he){return h.v7_fetcherPersist&&(U.set(he,(U.get(he)||0)+1),Q.has(he)&&Q.delete(he)),T.fetchers.get(he)||dX}function Pe(he){let we=T.fetchers.get(he);z.has(he)&&!(we&&we.state==="loading"&&A.has(he))&&He(he),Y.delete(he),A.delete(he),P.delete(he),Q.delete(he),W.delete(he),T.fetchers.delete(he)}function Be(he){if(h.v7_fetcherPersist){let we=(U.get(he)||0)-1;we<=0?(U.delete(he),Q.add(he)):U.set(he,we)}else Pe(he);ue({fetchers:new Map(T.fetchers)})}function He(he){let we=z.get(he);we&&(we.abort(),z.delete(he))}function Qe(he){for(let we of he){let ve=We(we),Me=Ws(ve.data);T.fetchers.set(we,Me)}}function ie(){let he=[],we=!1;for(let ve of P){let Me=T.fetchers.get(ve);Pn(Me,"Expected fetcher: "+ve),Me.state==="loading"&&(P.delete(ve),he.push(ve),we=!0)}return Qe(he),we}function xe(he){let we=[];for(let[ve,Me]of A)if(Me<he){let Je=T.fetchers.get(ve);Pn(Je,"Expected fetcher: "+ve),Je.state==="loading"&&(He(ve),A.delete(ve),we.push(ve))}return Qe(we),we.length>0}function Ne(he,we){let ve=T.blockers.get(he)||sp;return se.get(he)!==we&&se.set(he,we),ve}function $e(he){T.blockers.delete(he),se.delete(he)}function Ye(he,we){let ve=T.blockers.get(he)||sp;Pn(ve.state==="unblocked"&&we.state==="blocked"||ve.state==="blocked"&&we.state==="blocked"||ve.state==="blocked"&&we.state==="proceeding"||ve.state==="blocked"&&we.state==="unblocked"||ve.state==="proceeding"&&we.state==="unblocked","Invalid blocker state transition: "+ve.state+" -> "+we.state);let Me=new Map(T.blockers);Me.set(he,we),ue({blockers:Me})}function ht(he){let{currentLocation:we,nextLocation:ve,historyAction:Me}=he;if(se.size===0)return;se.size>1&&Df(!1,"A router only supports one blocker at a time");let Je=Array.from(se.entries()),[tt,st]=Je[Je.length-1],at=T.blockers.get(tt);if(!(at&&at.state==="proceeding")&&st({currentLocation:we,nextLocation:ve,historyAction:Me}))return tt}function It(he){let we=wo(404,{pathname:he}),ve=l||a,{matches:Me,route:Je}=FT(ve);return Jt(),{notFoundMatches:Me,route:Je,error:we}}function Jt(he){let we=[];return ee.forEach((ve,Me)=>{(!he||he(Me))&&(ve.cancel(),we.push(Me),ee.delete(Me))}),we}function Vt(he,we,ve){if(b=he,x=we,E=ve||null,!S&&T.navigation===s4){S=!0;let Me=Gt(T.location,T.matches);Me!=null&&ue({restoreScrollPosition:Me})}return()=>{b=null,x=null,E=null}}function en(he,we){return E&&E(he,we.map(Me=>zq(Me,T.loaderData)))||he.key}function rn(he,we){if(b&&x){let ve=en(he,we);b[ve]=x()}}function Gt(he,we){if(b){let ve=en(he,we),Me=b[ve];if(typeof Me=="number")return Me}return null}function Ft(he,we,ve){if(p)if(he){if(Object.keys(he[0].params).length>0)return{active:!0,matches:Qg(we,ve,c,!0)}}else return{active:!0,matches:Qg(we,ve,c,!0)||[]};return{active:!1,matches:null}}async function bt(he,we,ve){if(!p)return{type:"success",matches:he};let Me=he;for(;;){let Je=l==null,tt=l||a,st=o;try{await p({path:we,matches:Me,patch:(nt,ct)=>{ve.aborted||AT(nt,ct,tt,st,i)}})}catch(nt){return{type:"error",error:nt,partialMatches:Me}}finally{Je&&!ve.aborted&&(a=[...a])}if(ve.aborted)return{type:"aborted"};let at=uu(tt,we,c);if(at)return{type:"success",matches:at};let it=Qg(tt,we,c,!0);if(!it||Me.length===it.length&&Me.every((nt,ct)=>nt.route.id===it[ct].route.id))return{type:"success",matches:null};Me=it}}function gt(he){o={},l=Qv(he,i,void 0,o)}function ft(he,we){let ve=l==null;AT(he,we,l||a,o,i),ve&&(a=[...a],ue({}))}return k={get basename(){return c},get future(){return h},get state(){return T},get routes(){return a},get window(){return t},initialize:oe,subscribe:be,enableScrollRestoration:Vt,navigate:re,fetch:Ie,revalidate:me,createHref:he=>e.history.createHref(he),encodeLocation:he=>e.history.encodeLocation(he),getFetcher:We,deleteFetcher:Be,dispose:pe,getBlocker:Ne,deleteBlocker:$e,patchRoutes:ft,_internalFetchControllers:z,_internalActiveDeferreds:ee,_internalSetRoutes:gt},k}function hX(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function sS(e,t,n,r,i,o,a,l){let c,u;if(a){c=[];for(let h of t)if(c.push(h),h.route.id===a){u=h;break}}else c=t,u=t[t.length-1];let p=kP(i||".",IP(c,o),Sm(e.pathname,n)||e.pathname,l==="path");if(i==null&&(p.search=e.search,p.hash=e.hash),(i==null||i===""||i===".")&&u){let h=i3(p.search);if(u.route.index&&!h)p.search=p.search?p.search.replace(/^\?/,"?index&"):"?index";else if(!u.route.index&&h){let m=new URLSearchParams(p.search),g=m.getAll("index");m.delete("index"),g.filter(E=>E).forEach(E=>m.append("index",E));let b=m.toString();p.search=b?"?"+b:""}}return r&&n!=="/"&&(p.pathname=p.pathname==="/"?n:vc([n,p.pathname])),Cm(p)}function IT(e,t,n,r){if(!r||!hX(r))return{path:n};if(r.formMethod&&!TX(r.formMethod))return{path:n,error:wo(405,{method:r.formMethod})};let i=()=>({path:n,error:wo(400,{type:"invalid-body"})}),o=r.formMethod||"get",a=e?o.toUpperCase():o.toLowerCase(),l=MP(n);if(r.body!==void 0){if(r.formEncType==="text/plain"){if(!Xa(a))return i();let m=typeof r.body=="string"?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((g,b)=>{let[E,x]=b;return""+g+E+"="+x+`
`},""):String(r.body);return{path:n,submission:{formMethod:a,formAction:l,formEncType:r.formEncType,formData:void 0,json:void 0,text:m}}}else if(r.formEncType==="application/json"){if(!Xa(a))return i();try{let m=typeof r.body=="string"?JSON.parse(r.body):r.body;return{path:n,submission:{formMethod:a,formAction:l,formEncType:r.formEncType,formData:void 0,json:m,text:void 0}}}catch{return i()}}}Pn(typeof FormData=="function","FormData is not available in this environment");let c,u;if(r.formData)c=uS(r.formData),u=r.formData;else if(r.body instanceof FormData)c=uS(r.body),u=r.body;else if(r.body instanceof URLSearchParams)c=r.body,u=MT(c);else if(r.body==null)c=new URLSearchParams,u=new FormData;else try{c=new URLSearchParams(r.body),u=MT(c)}catch{return i()}let p={formMethod:a,formAction:l,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:u,json:void 0,text:void 0};if(Xa(p.formMethod))return{path:n,submission:p};let h=Ac(n);return t&&h.search&&i3(h.search)&&c.append("index",""),h.search="?"+c,{path:Cm(h),submission:p}}function kT(e,t,n){n===void 0&&(n=!1);let r=e.findIndex(i=>i.route.id===t);return r>=0?e.slice(0,n?r+1:r):e}function $T(e,t,n,r,i,o,a,l,c,u,p,h,m,g,b,E){let x=E?qo(E[1])?E[1].error:E[1].data:void 0,S=e.createURL(t.location),C=e.createURL(i),_=n;o&&t.errors?_=kT(n,Object.keys(t.errors)[0],!0):E&&qo(E[1])&&(_=kT(n,E[0]));let O=E?E[1].statusCode:void 0,k=a&&O&&O>=400,T=_.filter(($,M)=>{let{route:R}=$;if(R.lazy)return!0;if(R.loader==null)return!1;if(o)return cS(R,t.loaderData,t.errors);if(mX(t.loaderData,t.matches[M],$)||c.some(L=>L===$.route.id))return!0;let j=t.matches[M],D=$;return NT($,xr({currentUrl:S,currentParams:j.params,nextUrl:C,nextParams:D.params},r,{actionResult:x,actionStatus:O,defaultShouldRevalidate:k?!1:l||S.pathname+S.search===C.pathname+C.search||S.search!==C.search||AP(j,D)}))}),I=[];return h.forEach(($,M)=>{if(o||!n.some(B=>B.route.id===$.routeId)||p.has(M))return;let R=uu(g,$.path,b);if(!R){I.push({key:M,routeId:$.routeId,path:$.path,matches:null,match:null,controller:null});return}let j=t.fetchers.get(M),D=Pp(R,$.path),L=!1;m.has(M)?L=!1:u.has(M)?(u.delete(M),L=!0):j&&j.state!=="idle"&&j.data===void 0?L=l:L=NT(D,xr({currentUrl:S,currentParams:t.matches[t.matches.length-1].params,nextUrl:C,nextParams:n[n.length-1].params},r,{actionResult:x,actionStatus:O,defaultShouldRevalidate:k?!1:l})),L&&I.push({key:M,routeId:$.routeId,path:$.path,matches:R,match:D,controller:new AbortController})}),[T,I]}function cS(e,t,n){if(e.lazy)return!0;if(!e.loader)return!1;let r=t!=null&&t[e.id]!==void 0,i=n!=null&&n[e.id]!==void 0;return!r&&i?!1:typeof e.loader=="function"&&e.loader.hydrate===!0?!0:!r&&!i}function mX(e,t,n){let r=!t||n.route.id!==t.route.id,i=e[n.route.id]===void 0;return r||i}function AP(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function NT(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}function AT(e,t,n,r,i){var o;let a;if(e){let u=r[e];Pn(u,"No route found to patch children into: routeId = "+e),u.children||(u.children=[]),a=u.children}else a=n;let l=t.filter(u=>!a.some(p=>RP(u,p))),c=Qv(l,i,[e||"_","patch",String(((o=a)==null?void 0:o.length)||"0")],r);a.push(...c)}function RP(e,t){return"id"in e&&"id"in t&&e.id===t.id?!0:e.index===t.index&&e.path===t.path&&e.caseSensitive===t.caseSensitive?(!e.children||e.children.length===0)&&(!t.children||t.children.length===0)?!0:e.children.every((n,r)=>{var i;return(i=t.children)==null?void 0:i.some(o=>RP(n,o))}):!1}async function gX(e,t,n){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let i=n[e.id];Pn(i,"No route found in manifest");let o={};for(let a in r){let c=i[a]!==void 0&&a!=="hasErrorBoundary";Df(!c,'Route "'+i.id+'" has a static property "'+a+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+a+'" will be ignored.')),!c&&!jq.has(a)&&(o[a]=r[a])}Object.assign(i,o),Object.assign(i,xr({},t(i),{lazy:void 0}))}async function vX(e){let{matches:t}=e,n=t.filter(i=>i.shouldLoad);return(await Promise.all(n.map(i=>i.resolve()))).reduce((i,o,a)=>Object.assign(i,{[n[a].route.id]:o}),{})}async function yX(e,t,n,r,i,o,a,l,c,u){let p=o.map(g=>g.route.lazy?gX(g.route,c,l):void 0),h=o.map((g,b)=>{let E=p[b],x=i.some(C=>C.route.id===g.route.id);return xr({},g,{shouldLoad:x,resolve:async C=>(C&&r.method==="GET"&&(g.route.lazy||g.route.loader)&&(x=!0),x?bX(t,r,g,E,C,u):Promise.resolve({type:rr.data,result:void 0}))})}),m=await e({matches:h,request:r,params:o[0].params,fetcherKey:a,context:u});try{await Promise.all(p)}catch{}return m}async function bX(e,t,n,r,i,o){let a,l,c=u=>{let p,h=new Promise((b,E)=>p=E);l=()=>p(),t.signal.addEventListener("abort",l);let m=b=>typeof u!="function"?Promise.reject(new Error("You cannot call the handler for a route which defines a boolean "+('"'+e+'" [routeId: '+n.route.id+"]"))):u({request:t,params:n.params,context:o},...b!==void 0?[b]:[]),g=(async()=>{try{return{type:"data",result:await(i?i(E=>m(E)):m())}}catch(b){return{type:"error",result:b}}})();return Promise.race([g,h])};try{let u=n.route[e];if(r)if(u){let p,[h]=await Promise.all([c(u).catch(m=>{p=m}),r]);if(p!==void 0)throw p;a=h}else if(await r,u=n.route[e],u)a=await c(u);else if(e==="action"){let p=new URL(t.url),h=p.pathname+p.search;throw wo(405,{method:t.method,pathname:h,routeId:n.route.id})}else return{type:rr.data,result:void 0};else if(u)a=await c(u);else{let p=new URL(t.url),h=p.pathname+p.search;throw wo(404,{pathname:h})}Pn(a.result!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+n.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(u){return{type:rr.error,result:u}}finally{l&&t.signal.removeEventListener("abort",l)}return a}async function CX(e){let{result:t,type:n}=e;if(PP(t)){let u;try{let p=t.headers.get("Content-Type");p&&/\bapplication\/json\b/.test(p)?t.body==null?u=null:u=await t.json():u=await t.text()}catch(p){return{type:rr.error,error:p}}return n===rr.error?{type:rr.error,error:new Zv(t.status,t.statusText,u),statusCode:t.status,headers:t.headers}:{type:rr.data,data:u,statusCode:t.status,headers:t.headers}}if(n===rr.error){if(BT(t)){var r;if(t.data instanceof Error){var i;return{type:rr.error,error:t.data,statusCode:(i=t.init)==null?void 0:i.status}}t=new Zv(((r=t.init)==null?void 0:r.status)||500,void 0,t.data)}return{type:rr.error,error:t,statusCode:sb(t)?t.status:void 0}}if(_X(t)){var o,a;return{type:rr.deferred,deferredData:t,statusCode:(o=t.init)==null?void 0:o.status,headers:((a=t.init)==null?void 0:a.headers)&&new Headers(t.init.headers)}}if(BT(t)){var l,c;return{type:rr.data,data:t.data,statusCode:(l=t.init)==null?void 0:l.status,headers:(c=t.init)!=null&&c.headers?new Headers(t.init.headers):void 0}}return{type:rr.data,data:t}}function SX(e,t,n,r,i,o){let a=e.headers.get("Location");if(Pn(a,"Redirects returned/thrown from loaders/actions must have a Location header"),!n3.test(a)){let l=r.slice(0,r.findIndex(c=>c.route.id===n)+1);a=sS(new URL(t.url),l,i,!0,a,o),e.headers.set("Location",a)}return e}function RT(e,t,n){if(n3.test(e)){let r=e,i=r.startsWith("//")?new URL(t.protocol+r):new URL(r),o=Sm(i.pathname,n)!=null;if(i.origin===t.origin&&o)return i.pathname+i.search+i.hash}return e}function xd(e,t,n,r){let i=e.createURL(MP(t)).toString(),o={signal:n};if(r&&Xa(r.formMethod)){let{formMethod:a,formEncType:l}=r;o.method=a.toUpperCase(),l==="application/json"?(o.headers=new Headers({"Content-Type":l}),o.body=JSON.stringify(r.json)):l==="text/plain"?o.body=r.text:l==="application/x-www-form-urlencoded"&&r.formData?o.body=uS(r.formData):o.body=r.formData}return new Request(i,o)}function uS(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r=="string"?r:r.name);return t}function MT(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function EX(e,t,n,r,i){let o={},a=null,l,c=!1,u={},p=n&&qo(n[1])?n[1].error:void 0;return e.forEach(h=>{if(!(h.route.id in t))return;let m=h.route.id,g=t[m];if(Pn(!vu(g),"Cannot handle redirect results in processLoaderData"),qo(g)){let b=g.error;p!==void 0&&(b=p,p=void 0),a=a||{};{let E=du(e,m);a[E.route.id]==null&&(a[E.route.id]=b)}o[m]=void 0,c||(c=!0,l=sb(g.error)?g.error.status:500),g.headers&&(u[m]=g.headers)}else ic(g)?(r.set(m,g.deferredData),o[m]=g.deferredData.data,g.statusCode!=null&&g.statusCode!==200&&!c&&(l=g.statusCode),g.headers&&(u[m]=g.headers)):(o[m]=g.data,g.statusCode&&g.statusCode!==200&&!c&&(l=g.statusCode),g.headers&&(u[m]=g.headers))}),p!==void 0&&n&&(a={[n[0]]:p},o[n[0]]=void 0),{loaderData:o,errors:a,statusCode:l||200,loaderHeaders:u}}function PT(e,t,n,r,i,o,a){let{loaderData:l,errors:c}=EX(t,n,r,a);return i.forEach(u=>{let{key:p,match:h,controller:m}=u,g=o[p];if(Pn(g,"Did not find corresponding fetcher result"),!(m&&m.signal.aborted))if(qo(g)){let b=du(e.matches,h==null?void 0:h.route.id);c&&c[b.route.id]||(c=xr({},c,{[b.route.id]:g.error})),e.fetchers.delete(p)}else if(vu(g))Pn(!1,"Unhandled fetcher revalidation redirect");else if(ic(g))Pn(!1,"Unhandled fetcher deferred data");else{let b=Ws(g.data);e.fetchers.set(p,b)}}),{loaderData:l,errors:c}}function LT(e,t,n,r){let i=xr({},t);for(let o of n){let a=o.route.id;if(t.hasOwnProperty(a)?t[a]!==void 0&&(i[a]=t[a]):e[a]!==void 0&&o.route.loader&&(i[a]=e[a]),r&&r.hasOwnProperty(a))break}return i}function DT(e){return e?qo(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function du(e,t){return(t?e.slice(0,e.findIndex(r=>r.route.id===t)+1):[...e]).reverse().find(r=>r.route.hasErrorBoundary===!0)||e[0]}function FT(e){let t=e.length===1?e[0]:e.find(n=>n.index||!n.path||n.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function wo(e,t){let{pathname:n,routeId:r,method:i,type:o,message:a}=t===void 0?{}:t,l="Unknown Server Error",c="Unknown @remix-run/router error";return e===400?(l="Bad Request",i&&n&&r?c="You made a "+i+' request to "'+n+'" but '+('did not provide a `loader` for route "'+r+'", ')+"so there is no way to handle the request.":o==="defer-action"?c="defer() is not supported in actions":o==="invalid-body"&&(c="Unable to encode submission body")):e===403?(l="Forbidden",c='Route "'+r+'" does not match URL "'+n+'"'):e===404?(l="Not Found",c='No route matches URL "'+n+'"'):e===405&&(l="Method Not Allowed",i&&n&&r?c="You made a "+i.toUpperCase()+' request to "'+n+'" but '+('did not provide an `action` for route "'+r+'", ')+"so there is no way to handle the request.":i&&(c='Invalid request method "'+i.toUpperCase()+'"')),new Zv(e||500,l,new Error(c),!0)}function U0(e){let t=Object.entries(e);for(let n=t.length-1;n>=0;n--){let[r,i]=t[n];if(vu(i))return{key:r,result:i}}}function MP(e){let t=typeof e=="string"?Ac(e):e;return Cm(xr({},t,{hash:""}))}function xX(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function wX(e){return PP(e.result)&&cX.has(e.result.status)}function ic(e){return e.type===rr.deferred}function qo(e){return e.type===rr.error}function vu(e){return(e&&e.type)===rr.redirect}function BT(e){return typeof e=="object"&&e!=null&&"type"in e&&"data"in e&&"init"in e&&e.type==="DataWithResponseInit"}function _X(e){let t=e;return t&&typeof t=="object"&&typeof t.data=="object"&&typeof t.subscribe=="function"&&typeof t.cancel=="function"&&typeof t.resolveData=="function"}function PP(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function TX(e){return sX.has(e.toLowerCase())}function Xa(e){return aX.has(e.toLowerCase())}async function OX(e,t,n,r,i){let o=Object.entries(t);for(let a=0;a<o.length;a++){let[l,c]=o[a],u=e.find(m=>(m==null?void 0:m.route.id)===l);if(!u)continue;let p=r.find(m=>m.route.id===u.route.id),h=p!=null&&!AP(p,u)&&(i&&i[u.route.id])!==void 0;ic(c)&&h&&await r3(c,n,!1).then(m=>{m&&(t[l]=m)})}}async function IX(e,t,n){for(let r=0;r<n.length;r++){let{key:i,routeId:o,controller:a}=n[r],l=t[i];e.find(u=>(u==null?void 0:u.route.id)===o)&&ic(l)&&(Pn(a,"Expected an AbortController for revalidating fetcher deferred result"),await r3(l,a.signal,!0).then(u=>{u&&(t[i]=u)}))}}async function r3(e,t,n){if(n===void 0&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:rr.data,data:e.deferredData.unwrappedData}}catch(i){return{type:rr.error,error:i}}return{type:rr.data,data:e.deferredData.data}}}function i3(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function Pp(e,t){let n=typeof t=="string"?Ac(t).search:t.search;if(e[e.length-1].route.index&&i3(n||""))return e[e.length-1];let r=OP(e);return r[r.length-1]}function jT(e){let{formMethod:t,formAction:n,formEncType:r,text:i,formData:o,json:a}=e;if(!(!t||!n||!r)){if(i!=null)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:i};if(o!=null)return{formMethod:t,formAction:n,formEncType:r,formData:o,json:void 0,text:void 0};if(a!==void 0)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:a,text:void 0}}}function c4(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function kX(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function cp(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function $X(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function Ws(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function NX(e,t){try{let n=e.sessionStorage.getItem(NP);if(n){let r=JSON.parse(n);for(let[i,o]of Object.entries(r||{}))o&&Array.isArray(o)&&t.set(i,new Set(o||[]))}}catch{}}function AX(e,t){if(t.size>0){let n={};for(let[r,i]of t)n[r]=[...i];try{e.sessionStorage.setItem(NP,JSON.stringify(n))}catch(r){Df(!1,"Failed to save applied view transitions in sessionStorage ("+r+").")}}}/**
* React Router v6.28.0
*
* Copyright (c) Remix Software Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
*/function Jv(){return Jv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Jv.apply(this,arguments)}const cb=d.createContext(null),LP=d.createContext(null),ub=d.createContext(null),o3=d.createContext(null),Rc=d.createContext({outlet:null,matches:[],isDataRoute:!1}),DP=d.createContext(null);function db(){return d.useContext(o3)!=null}function a3(){return db()||Pn(!1),d.useContext(o3).location}function FP(e){d.useContext(ub).static||d.useLayoutEffect(e)}function Mc(){let{isDataRoute:e}=d.useContext(Rc);return e?VX():RX()}function RX(){db()||Pn(!1);let e=d.useContext(cb),{basename:t,future:n,navigator:r}=d.useContext(ub),{matches:i}=d.useContext(Rc),{pathname:o}=a3(),a=JSON.stringify(IP(i,n.v7_relativeSplatPath)),l=d.useRef(!1);return FP(()=>{l.current=!0}),d.useCallback(function(u,p){if(p===void 0&&(p={}),!l.current)return;if(typeof u=="number"){r.go(u);return}let h=kP(u,JSON.parse(a),o,p.relative==="path");e==null&&t!=="/"&&(h.pathname=h.pathname==="/"?t:vc([t,h.pathname])),(p.replace?r.replace:r.push)(h,p.state,p)},[t,r,a,o,e])}const MX=d.createContext(null);function PX(e){let t=d.useContext(Rc).outlet;return t&&d.createElement(MX.Provider,{value:e},t)}function l3(){let{matches:e}=d.useContext(Rc),t=e[e.length-1];return t?t.params:{}}function LX(e,t,n,r){db()||Pn(!1);let{navigator:i}=d.useContext(ub),{matches:o}=d.useContext(Rc),a=o[o.length-1],l=a?a.params:{};a&&a.pathname;let c=a?a.pathnameBase:"/";a&&a.route;let u=a3(),p;p=u;let h=p.pathname||"/",m=h;if(c!=="/"){let E=c.replace(/^\//,"").split("/");m="/"+h.replace(/^\//,"").split("/").slice(E.length).join("/")}let g=uu(e,{pathname:m});return HX(g&&g.map(E=>Object.assign({},E,{params:Object.assign({},l,E.params),pathname:vc([c,i.encodeLocation?i.encodeLocation(E.pathname).pathname:E.pathname]),pathnameBase:E.pathnameBase==="/"?c:vc([c,i.encodeLocation?i.encodeLocation(E.pathnameBase).pathname:E.pathnameBase])})),o,n,r)}function DX(){let e=KX(),t=sb(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return d.createElement(d.Fragment,null,d.createElement("h2",null,"Unexpected Application Error!"),d.createElement("h3",{style:{fontStyle:"italic"}},t),n?d.createElement("pre",{style:i},n):null,null)}const FX=d.createElement(DX,null);class BX extends d.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?d.createElement(Rc.Provider,{value:this.props.routeContext},d.createElement(DP.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function jX(e){let{routeContext:t,match:n,children:r}=e,i=d.useContext(cb);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),d.createElement(Rc.Provider,{value:t},r)}function HX(e,t,n,r){var i;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var o;if(!n)return null;if(n.errors)e=n.matches;else if((o=r)!=null&&o.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let a=e,l=(i=n)==null?void 0:i.errors;if(l!=null){let p=a.findIndex(h=>h.route.id&&(l==null?void 0:l[h.route.id])!==void 0);p>=0||Pn(!1),a=a.slice(0,Math.min(a.length,p+1))}let c=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let p=0;p<a.length;p++){let h=a[p];if((h.route.HydrateFallback||h.route.hydrateFallbackElement)&&(u=p),h.route.id){let{loaderData:m,errors:g}=n,b=h.route.loader&&m[h.route.id]===void 0&&(!g||g[h.route.id]===void 0);if(h.route.lazy||b){c=!0,u>=0?a=a.slice(0,u+1):a=[a[0]];break}}}return a.reduceRight((p,h,m)=>{let g,b=!1,E=null,x=null;n&&(g=l&&h.route.id?l[h.route.id]:void 0,E=h.route.errorElement||FX,c&&(u<0&&m===0?(GX("route-fallback"),b=!0,x=null):u===m&&(b=!0,x=h.route.hydrateFallbackElement||null)));let S=t.concat(a.slice(0,m+1)),C=()=>{let _;return g?_=E:b?_=x:h.route.Component?_=d.createElement(h.route.Component,null):h.route.element?_=h.route.element:_=p,d.createElement(jX,{match:h,routeContext:{outlet:p,matches:S,isDataRoute:n!=null},children:_})};return n&&(h.route.ErrorBoundary||h.route.errorElement||m===0)?d.createElement(BX,{location:n.location,revalidation:n.revalidation,component:E,error:g,children:C(),routeContext:{outlet:null,matches:S,isDataRoute:!0}}):C()},null)}var BP=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(BP||{}),ey=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(ey||{});function zX(e){let t=d.useContext(cb);return t||Pn(!1),t}function WX(e){let t=d.useContext(LP);return t||Pn(!1),t}function UX(e){let t=d.useContext(Rc);return t||Pn(!1),t}function jP(e){let t=UX(),n=t.matches[t.matches.length-1];return n.route.id||Pn(!1),n.route.id}function KX(){var e;let t=d.useContext(DP),n=WX(ey.UseRouteError),r=jP(ey.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function VX(){let{router:e}=zX(BP.UseNavigateStable),t=jP(ey.UseNavigateStable),n=d.useRef(!1);return FP(()=>{n.current=!0}),d.useCallback(function(i,o){o===void 0&&(o={}),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,Jv({fromRouteId:t},o)))},[e,t])}const HT={};function GX(e,t,n){HT[e]||(HT[e]=!0)}const zT={};function qX(e,t){zT[t]||(zT[t]=!0,console.warn(t))}const wd=(e,t,n)=>qX(e,"⚠️ React Router Future Flag Warning: "+t+". "+("You can use the `"+e+"` future flag to opt-in early. ")+("For more information, see "+n+"."));function XX(e,t){e!=null&&e.v7_startTransition||wd("v7_startTransition","React Router will begin wrapping state updates in `React.startTransition` in v7","https://reactrouter.com/v6/upgrading/future#v7_starttransition"),!(e!=null&&e.v7_relativeSplatPath)&&(!t||!t.v7_relativeSplatPath)&&wd("v7_relativeSplatPath","Relative route resolution within Splat routes is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_relativesplatpath"),t&&(t.v7_fetcherPersist||wd("v7_fetcherPersist","The persistence behavior of fetchers is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_fetcherpersist"),t.v7_normalizeFormMethod||wd("v7_normalizeFormMethod","Casing of `formMethod` fields is being normalized to uppercase in v7","https://reactrouter.com/v6/upgrading/future#v7_normalizeformmethod"),t.v7_partialHydration||wd("v7_partialHydration","`RouterProvider` hydration behavior is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_partialhydration"),t.v7_skipActionErrorRevalidation||wd("v7_skipActionErrorRevalidation","The revalidation behavior after 4xx/5xx `action` responses is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_skipactionerrorrevalidation"))}function YX(e){return PX(e.context)}function QX(e){let{basename:t="/",children:n=null,location:r,navigationType:i=Yr.Pop,navigator:o,static:a=!1,future:l}=e;db()&&Pn(!1);let c=t.replace(/^\/*/,"/"),u=d.useMemo(()=>({basename:c,navigator:o,static:a,future:Jv({v7_relativeSplatPath:!1},l)}),[c,l,o,a]);typeof r=="string"&&(r=Ac(r));let{pathname:p="/",search:h="",hash:m="",state:g=null,key:b="default"}=r,E=d.useMemo(()=>{let x=Sm(p,c);return x==null?null:{location:{pathname:x,search:h,hash:m,state:g,key:b},navigationType:i}},[c,p,h,m,g,b,i]);return E==null?null:d.createElement(ub.Provider,{value:u},d.createElement(o3.Provider,{children:n,value:E}))}new Promise(()=>{});function ZX(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:d.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:d.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:d.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}/**
* React Router DOM v6.28.0
*
* Copyright (c) Remix Software Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
*/function ty(){return ty=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ty.apply(this,arguments)}const JX="6";try{window.__reactRouterVersion=JX}catch{}function eY(e,t){return pX({basename:t==null?void 0:t.basename,future:ty({},t==null?void 0:t.future,{v7_prependBasename:!0}),history:Dq({window:t==null?void 0:t.window}),hydrationData:(t==null?void 0:t.hydrationData)||tY(),routes:e,mapRouteProperties:ZX,dataStrategy:t==null?void 0:t.dataStrategy,patchRoutesOnNavigation:t==null?void 0:t.patchRoutesOnNavigation,window:t==null?void 0:t.window}).initialize()}function tY(){var e;let t=(e=window)==null?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=ty({},t,{errors:nY(t.errors)})),t}function nY(e){if(!e)return null;let t=Object.entries(e),n={};for(let[r,i]of t)if(i&&i.__type==="RouteErrorResponse")n[r]=new Zv(i.status,i.statusText,i.data,i.internal===!0);else if(i&&i.__type==="Error"){if(i.__subType){let o=window[i.__subType];if(typeof o=="function")try{let a=new o(i.message);a.stack="",n[r]=a}catch{}}if(n[r]==null){let o=new Error(i.message);o.stack="",n[r]=o}}else n[r]=i;return n}const rY=d.createContext({isTransitioning:!1}),iY=d.createContext(new Map),oY="startTransition",WT=mm[oY],aY="flushSync",UT=wP[aY];function lY(e){WT?WT(e):e()}function up(e){UT?UT(e):e()}class sY{constructor(){this.status="pending",this.promise=new Promise((t,n)=>{this.resolve=r=>{this.status==="pending"&&(this.status="resolved",t(r))},this.reject=r=>{this.status==="pending"&&(this.status="rejected",n(r))}})}}function cY(e){let{fallbackElement:t,router:n,future:r}=e,[i,o]=d.useState(n.state),[a,l]=d.useState(),[c,u]=d.useState({isTransitioning:!1}),[p,h]=d.useState(),[m,g]=d.useState(),[b,E]=d.useState(),x=d.useRef(new Map),{v7_startTransition:S}=r||{},C=d.useCallback($=>{S?lY($):$()},[S]),_=d.useCallback(($,M)=>{let{deletedFetchers:R,flushSync:j,viewTransitionOpts:D}=M;R.forEach(B=>x.current.delete(B)),$.fetchers.forEach((B,H)=>{B.data!==void 0&&x.current.set(H,B.data)});let L=n.window==null||n.window.document==null||typeof n.window.document.startViewTransition!="function";if(!D||L){j?up(()=>o($)):C(()=>o($));return}if(j){up(()=>{m&&(p&&p.resolve(),m.skipTransition()),u({isTransitioning:!0,flushSync:!0,currentLocation:D.currentLocation,nextLocation:D.nextLocation})});let B=n.window.document.startViewTransition(()=>{up(()=>o($))});B.finished.finally(()=>{up(()=>{h(void 0),g(void 0),l(void 0),u({isTransitioning:!1})})}),up(()=>g(B));return}m?(p&&p.resolve(),m.skipTransition(),E({state:$,currentLocation:D.currentLocation,nextLocation:D.nextLocation})):(l($),u({isTransitioning:!0,flushSync:!1,currentLocation:D.currentLocation,nextLocation:D.nextLocation}))},[n.window,m,p,x,C]);d.useLayoutEffect(()=>n.subscribe(_),[n,_]),d.useEffect(()=>{c.isTransitioning&&!c.flushSync&&h(new sY)},[c]),d.useEffect(()=>{if(p&&a&&n.window){let $=a,M=p.promise,R=n.window.document.startViewTransition(async()=>{C(()=>o($)),await M});R.finished.finally(()=>{h(void 0),g(void 0),l(void 0),u({isTransitioning:!1})}),g(R)}},[C,a,p,n.window]),d.useEffect(()=>{p&&a&&i.location.key===a.location.key&&p.resolve()},[p,m,i.location,a]),d.useEffect(()=>{!c.isTransitioning&&b&&(l(b.state),u({isTransitioning:!0,flushSync:!1,currentLocation:b.currentLocation,nextLocation:b.nextLocation}),E(void 0))},[c.isTransitioning,b]),d.useEffect(()=>{},[]);let O=d.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:$=>n.navigate($),push:($,M,R)=>n.navigate($,{state:M,preventScrollReset:R==null?void 0:R.preventScrollReset}),replace:($,M,R)=>n.navigate($,{replace:!0,state:M,preventScrollReset:R==null?void 0:R.preventScrollReset})}),[n]),k=n.basename||"/",T=d.useMemo(()=>({router:n,navigator:O,static:!1,basename:k}),[n,O,k]),I=d.useMemo(()=>({v7_relativeSplatPath:n.future.v7_relativeSplatPath}),[n.future.v7_relativeSplatPath]);return d.useEffect(()=>XX(r,n.future),[r,n.future]),d.createElement(d.Fragment,null,d.createElement(cb.Provider,{value:T},d.createElement(LP.Provider,{value:i},d.createElement(iY.Provider,{value:x.current},d.createElement(rY.Provider,{value:c},d.createElement(QX,{basename:k,location:i.location,navigationType:i.historyAction,navigator:O,future:I},i.initialized||n.future.v7_partialHydration?d.createElement(uY,{routes:n.routes,future:n.future,state:i}):t))))),null)}const uY=d.memo(dY);function dY(e){let{routes:t,future:n,state:r}=e;return LX(t,void 0,r,n)}var KT;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(KT||(KT={}));var VT;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(VT||(VT={}));var HP={exports:{}};/*!
Copyright (c) 2018 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var o="",a=0;a<arguments.length;a++){var l=arguments[a];l&&(o=i(o,r(l)))}return o}function r(o){if(typeof o=="string"||typeof o=="number")return o;if(typeof o!="object")return"";if(Array.isArray(o))return n.apply(null,o);if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]"))return o.toString();var a="";for(var l in o)t.call(o,l)&&o[l]&&(a=i(a,l));return a}function i(o,a){return a?o?o+" "+a:o+a:o}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(HP);var fY=HP.exports;const le=dl(fY);function Ve(){return Ve=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},Ve.apply(null,arguments)}function Nt(e){"@babel/helpers - typeof";return Nt=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},Nt(e)}var pY=Symbol.for("react.element"),hY=Symbol.for("react.transitional.element"),mY=Symbol.for("react.fragment");function zP(e){return e&&Nt(e)==="object"&&(e.$$typeof===pY||e.$$typeof===hY)&&e.type===mY}function ii(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[];return fe.Children.forEach(e,function(r){r==null&&!t.keepEmpty||(Array.isArray(r)?n=n.concat(ii(r)):zP(r)&&r.props?n=n.concat(ii(r.props.children,t)):n.push(r))}),n}var dS={},gY=function(t){};function vY(e,t){}function yY(e,t){}function bY(){dS={}}function WP(e,t,n){!t&&!dS[n]&&(e(!1,n),dS[n]=!0)}function br(e,t){WP(vY,e,t)}function CY(e,t){WP(yY,e,t)}br.preMessage=gY;br.resetWarned=bY;br.noteOnce=CY;function SY(e,t){if(Nt(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Nt(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function UP(e){var t=SY(e,"string");return Nt(t)=="symbol"?t:t+""}function J(e,t,n){return(t=UP(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function GT(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 te(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?GT(Object(n),!0).forEach(function(r){J(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):GT(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Bh(e){return e instanceof HTMLElement||e instanceof SVGElement}function fb(e){return e&&Nt(e)==="object"&&Bh(e.nativeElement)?e.nativeElement:Bh(e)?e:null}function Zp(e){var t=fb(e);if(t)return t;if(e instanceof fe.Component){var n;return(n=Dh.findDOMNode)===null||n===void 0?void 0:n.call(Dh,e)}return null}var KP={exports:{}},Zn={};/**
* @license React
* react-is.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var s3=Symbol.for("react.element"),c3=Symbol.for("react.portal"),pb=Symbol.for("react.fragment"),hb=Symbol.for("react.strict_mode"),mb=Symbol.for("react.profiler"),gb=Symbol.for("react.provider"),vb=Symbol.for("react.context"),EY=Symbol.for("react.server_context"),yb=Symbol.for("react.forward_ref"),bb=Symbol.for("react.suspense"),Cb=Symbol.for("react.suspense_list"),Sb=Symbol.for("react.memo"),Eb=Symbol.for("react.lazy"),xY=Symbol.for("react.offscreen"),VP;VP=Symbol.for("react.module.reference");function Aa(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case s3:switch(e=e.type,e){case pb:case mb:case hb:case bb:case Cb:return e;default:switch(e=e&&e.$$typeof,e){case EY:case vb:case yb:case Eb:case Sb:case gb:return e;default:return t}}case c3:return t}}}Zn.ContextConsumer=vb;Zn.ContextProvider=gb;Zn.Element=s3;Zn.ForwardRef=yb;Zn.Fragment=pb;Zn.Lazy=Eb;Zn.Memo=Sb;Zn.Portal=c3;Zn.Profiler=mb;Zn.StrictMode=hb;Zn.Suspense=bb;Zn.SuspenseList=Cb;Zn.isAsyncMode=function(){return!1};Zn.isConcurrentMode=function(){return!1};Zn.isContextConsumer=function(e){return Aa(e)===vb};Zn.isContextProvider=function(e){return Aa(e)===gb};Zn.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===s3};Zn.isForwardRef=function(e){return Aa(e)===yb};Zn.isFragment=function(e){return Aa(e)===pb};Zn.isLazy=function(e){return Aa(e)===Eb};Zn.isMemo=function(e){return Aa(e)===Sb};Zn.isPortal=function(e){return Aa(e)===c3};Zn.isProfiler=function(e){return Aa(e)===mb};Zn.isStrictMode=function(e){return Aa(e)===hb};Zn.isSuspense=function(e){return Aa(e)===bb};Zn.isSuspenseList=function(e){return Aa(e)===Cb};Zn.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===pb||e===mb||e===hb||e===bb||e===Cb||e===xY||typeof e=="object"&&e!==null&&(e.$$typeof===Eb||e.$$typeof===Sb||e.$$typeof===gb||e.$$typeof===vb||e.$$typeof===yb||e.$$typeof===VP||e.getModuleId!==void 0)};Zn.typeOf=Aa;KP.exports=Zn;var u4=KP.exports;function Vu(e,t,n){var r=d.useRef({});return(!("value"in r.current)||n(r.current.condition,t))&&(r.current.value=e(),r.current.condition=t),r.current.value}var jh=function(t,n){typeof t=="function"?t(n):Nt(t)==="object"&&t&&"current"in t&&(t.current=n)},Zi=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(o){n.forEach(function(a){jh(a,o)})}},Es=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Vu(function(){return Zi.apply(void 0,n)},n,function(i,o){return i.length!==o.length||i.every(function(a,l){return a!==o[l]})})},al=function(t){var n,r;if(!t)return!1;if(u3(t)&&t.props.propertyIsEnumerable("ref"))return!0;var i=u4.isMemo(t)?t.type.type:t.type;return!(typeof i=="function"&&!((n=i.prototype)!==null&&n!==void 0&&n.render)&&i.$$typeof!==u4.ForwardRef||typeof t=="function"&&!((r=t.prototype)!==null&&r!==void 0&&r.render)&&t.$$typeof!==u4.ForwardRef)};function u3(e){return d.isValidElement(e)&&!zP(e)}var wY=function(t){return u3(t)&&al(t)},Pc=function(t){if(t&&u3(t)){var n=t;return n.props.propertyIsEnumerable("ref")?n.props.ref:n.ref}return null},fS=d.createContext(null);function _Y(e){var t=e.children,n=e.onBatchResize,r=d.useRef(0),i=d.useRef([]),o=d.useContext(fS),a=d.useCallback(function(l,c,u){r.current+=1;var p=r.current;i.current.push({size:l,element:c,data:u}),Promise.resolve().then(function(){p===r.current&&(n==null||n(i.current),i.current=[])}),o==null||o(l,c,u)},[n,o]);return d.createElement(fS.Provider,{value:a},t)}var GP=function(){if(typeof Map<"u")return Map;function e(t,n){var r=-1;return t.some(function(i,o){return i[0]===n?(r=o,!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,o=this.__entries__;i<o.length;i++){var a=o[i];n.call(r,a[1],a[0])}},t}()}(),pS=typeof window<"u"&&typeof document<"u"&&window.document===document,ny=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")()}(),TY=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(ny):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}}(),OY=2;function IY(e,t){var n=!1,r=!1,i=0;function o(){n&&(n=!1,e()),r&&l()}function a(){TY(o)}function l(){var c=Date.now();if(n){if(c-i<OY)return;r=!0}else n=!0,r=!1,setTimeout(a,t);i=c}return l}var kY=20,$Y=["top","right","bottom","left","width","height","size","weight"],NY=typeof MutationObserver<"u",AY=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=IY(this.refresh.bind(this),kY)}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(){!pS||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),NY?(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(){!pS||!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=$Y.some(function(o){return!!~r.indexOf(o)});i&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),qP=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},Ff=function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||ny},XP=xb(0,0,0,0);function ry(e){return parseFloat(e)||0}function qT(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce(function(r,i){var o=e["border-"+i+"-width"];return r+ry(o)},0)}function RY(e){for(var t=["top","right","bottom","left"],n={},r=0,i=t;r<i.length;r++){var o=i[r],a=e["padding-"+o];n[o]=ry(a)}return n}function MY(e){var t=e.getBBox();return xb(0,0,t.width,t.height)}function PY(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return XP;var r=Ff(e).getComputedStyle(e),i=RY(r),o=i.left+i.right,a=i.top+i.bottom,l=ry(r.width),c=ry(r.height);if(r.boxSizing==="border-box"&&(Math.round(l+o)!==t&&(l-=qT(r,"left","right")+o),Math.round(c+a)!==n&&(c-=qT(r,"top","bottom")+a)),!DY(e)){var u=Math.round(l+o)-t,p=Math.round(c+a)-n;Math.abs(u)!==1&&(l-=u),Math.abs(p)!==1&&(c-=p)}return xb(i.left,i.top,l,c)}var LY=function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof Ff(e).SVGGraphicsElement}:function(e){return e instanceof Ff(e).SVGElement&&typeof e.getBBox=="function"}}();function DY(e){return e===Ff(e).document.documentElement}function FY(e){return pS?LY(e)?MY(e):PY(e):XP}function BY(e){var t=e.x,n=e.y,r=e.width,i=e.height,o=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,a=Object.create(o.prototype);return qP(a,{x:t,y:n,width:r,height:i,top:n,right:t+r,bottom:i+n,left:t}),a}function xb(e,t,n,r){return{x:e,y:t,width:n,height:r}}var jY=function(){function e(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=xb(0,0,0,0),this.target=t}return e.prototype.isActive=function(){var t=FY(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}(),HY=function(){function e(t,n){var r=BY(n);qP(this,{target:t,contentRect:r})}return e}(),zY=function(){function e(t,n,r){if(this.activeObservations_=[],this.observations_=new GP,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 Ff(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new jY(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 Ff(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 HY(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}(),YP=typeof WeakMap<"u"?new WeakMap:new GP,QP=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=AY.getInstance(),r=new zY(t,n,this);YP.set(this,r)}return e}();["observe","unobserve","disconnect"].forEach(function(e){QP.prototype[e]=function(){var t;return(t=YP.get(this))[e].apply(t,arguments)}});var WY=function(){return typeof ny.ResizeObserver<"u"?ny.ResizeObserver:QP}(),oc=new Map;function UY(e){e.forEach(function(t){var n,r=t.target;(n=oc.get(r))===null||n===void 0||n.forEach(function(i){return i(r)})})}var ZP=new WY(UY);function KY(e,t){oc.has(e)||(oc.set(e,new Set),ZP.observe(e)),oc.get(e).add(t)}function VY(e,t){oc.has(e)&&(oc.get(e).delete(t),oc.get(e).size||(ZP.unobserve(e),oc.delete(e)))}function Rr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function XT(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,UP(r.key),r)}}function Mr(e,t,n){return t&&XT(e.prototype,t),n&&XT(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Hh(e,t){return Hh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Hh(e,t)}function Ra(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&&Hh(e,t)}function zh(e){return zh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},zh(e)}function d3(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(d3=function(){return!!e})()}function _t(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function GY(e,t){if(t&&(Nt(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _t(e)}function Ma(e){var t=d3();return function(){var n,r=zh(e);if(t){var i=zh(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return GY(this,n)}}var qY=function(e){Ra(n,e);var t=Ma(n);function n(){return Rr(this,n),t.apply(this,arguments)}return Mr(n,[{key:"render",value:function(){return this.props.children}}]),n}(d.Component);function XY(e,t){var n=e.children,r=e.disabled,i=d.useRef(null),o=d.useRef(null),a=d.useContext(fS),l=typeof n=="function",c=l?n(i):n,u=d.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),p=!l&&d.isValidElement(c)&&al(c),h=p?Pc(c):null,m=Es(h,i),g=function(){var S;return Zp(i.current)||(i.current&&Nt(i.current)==="object"?Zp((S=i.current)===null||S===void 0?void 0:S.nativeElement):null)||Zp(o.current)};d.useImperativeHandle(t,function(){return g()});var b=d.useRef(e);b.current=e;var E=d.useCallback(function(x){var S=b.current,C=S.onResize,_=S.data,O=x.getBoundingClientRect(),k=O.width,T=O.height,I=x.offsetWidth,$=x.offsetHeight,M=Math.floor(k),R=Math.floor(T);if(u.current.width!==M||u.current.height!==R||u.current.offsetWidth!==I||u.current.offsetHeight!==$){var j={width:M,height:R,offsetWidth:I,offsetHeight:$};u.current=j;var D=I===Math.round(k)?k:I,L=$===Math.round(T)?T:$,B=te(te({},j),{},{offsetWidth:D,offsetHeight:L});a==null||a(B,x,_),C&&Promise.resolve().then(function(){C(B,x)})}},[]);return d.useEffect(function(){var x=g();return x&&!r&&KY(x,E),function(){return VY(x,E)}},[i.current,r]),d.createElement(qY,{ref:o},p?d.cloneElement(c,{ref:m}):c)}var YY=d.forwardRef(XY),QY="rc-observer-key";function ZY(e,t){var n=e.children,r=typeof n=="function"?[n]:ii(n);return r.map(function(i,o){var a=(i==null?void 0:i.key)||"".concat(QY,"-").concat(o);return d.createElement(YY,Ve({},e,{key:a,ref:o===0?t:void 0}),i)})}var qi=d.forwardRef(ZY);qi.Collection=_Y;function ir(e,t){var n=Object.assign({},e);return Array.isArray(t)&&t.forEach(function(r){delete n[r]}),n}function hS(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 JY(e){if(Array.isArray(e))return hS(e)}function JP(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function f3(e,t){if(e){if(typeof e=="string")return hS(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)?hS(e,t):void 0}}function eQ(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Xe(e){return JY(e)||JP(e)||f3(e)||eQ()}var eL=function(t){return+setTimeout(t,16)},tL=function(t){return clearTimeout(t)};typeof window<"u"&&"requestAnimationFrame"in window&&(eL=function(t){return window.requestAnimationFrame(t)},tL=function(t){return window.cancelAnimationFrame(t)});var YT=0,p3=new Map;function nL(e){p3.delete(e)}var kn=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;YT+=1;var r=YT;function i(o){if(o===0)nL(r),t();else{var a=eL(function(){i(o-1)});p3.set(r,a)}}return i(n),r};kn.cancel=function(e){var t=p3.get(e);return nL(e),tL(t)};function rL(e){if(Array.isArray(e))return e}function tQ(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,a,l=[],c=!0,u=!1;try{if(o=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(p){u=!0,i=p}finally{try{if(!c&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return l}}function iL(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _e(e,t){return rL(e)||tQ(e,t)||f3(e,t)||iL()}function Wh(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 Em(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function nQ(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 QT="data-rc-order",ZT="data-rc-priority",rQ="rc-util-key",mS=new Map;function oL(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):rQ}function wb(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function iQ(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function h3(e){return Array.from((mS.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function aL(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Em())return null;var n=t.csp,r=t.prepend,i=t.priority,o=i===void 0?0:i,a=iQ(r),l=a==="prependQueue",c=document.createElement("style");c.setAttribute(QT,a),l&&o&&c.setAttribute(ZT,"".concat(o)),n!=null&&n.nonce&&(c.nonce=n==null?void 0:n.nonce),c.innerHTML=e;var u=wb(t),p=u.firstChild;if(r){if(l){var h=(t.styles||h3(u)).filter(function(m){if(!["prepend","prependQueue"].includes(m.getAttribute(QT)))return!1;var g=Number(m.getAttribute(ZT)||0);return o>=g});if(h.length)return u.insertBefore(c,h[h.length-1].nextSibling),c}u.insertBefore(c,p)}else u.appendChild(c);return c}function lL(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=wb(t);return(t.styles||h3(n)).find(function(r){return r.getAttribute(oL(t))===e})}function sL(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=lL(e,t);if(n){var r=wb(t);r.removeChild(n)}}function oQ(e,t){var n=mS.get(e);if(!n||!nQ(document,n)){var r=aL("",t),i=r.parentNode;mS.set(e,i),e.removeChild(r)}}function Sf(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=wb(n),i=h3(r),o=te(te({},n),{},{styles:i});oQ(r,o);var a=lL(t,o);if(a){var l,c;if((l=o.csp)!==null&&l!==void 0&&l.nonce&&a.nonce!==((c=o.csp)===null||c===void 0?void 0:c.nonce)){var u;a.nonce=(u=o.csp)===null||u===void 0?void 0:u.nonce}return a.innerHTML!==e&&(a.innerHTML=e),a}var p=aL(e,o);return p.setAttribute(oL(o),t),p}function aQ(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}function Yt(e,t){if(e==null)return{};var n,r,i=aQ(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var gS={},lQ=function(t){};function sQ(e,t){}function cQ(e,t){}function uQ(){gS={}}function cL(e,t,n){!t&&!gS[n]&&(e(!1,n),gS[n]=!0)}function _b(e,t){cL(sQ,e,t)}function dQ(e,t){cL(cQ,e,t)}_b.preMessage=lQ;_b.resetWarned=uQ;_b.noteOnce=dQ;var fQ="%";function vS(e){return e.join(fQ)}var pQ=function(){function e(t){Rr(this,e),J(this,"instanceId",void 0),J(this,"cache",new Map),this.instanceId=t}return Mr(e,[{key:"get",value:function(n){return this.opGet(vS(n))}},{key:"opGet",value:function(n){return this.cache.get(n)||null}},{key:"update",value:function(n,r){return this.opUpdate(vS(n),r)}},{key:"opUpdate",value:function(n,r){var i=this.cache.get(n),o=r(i);o===null?this.cache.delete(n):this.cache.set(n,o)}}]),e}(),Bf="data-token-hash",tl="data-css-hash",ac="__cssinjs_instance__";function hQ(){var e=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(tl,"]"))||[],n=document.head.firstChild;Array.from(t).forEach(function(i){i[ac]=i[ac]||e,i[ac]===e&&document.head.insertBefore(i,n)});var r={};Array.from(document.querySelectorAll("style[".concat(tl,"]"))).forEach(function(i){var o=i.getAttribute(tl);if(r[o]){if(i[ac]===e){var a;(a=i.parentNode)===null||a===void 0||a.removeChild(i)}}else r[o]=!0})}return new pQ(e)}var Tb=d.createContext({hashPriority:"low",cache:hQ(),defaultCache:!0});function mQ(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 m3=function(){function e(){Rr(this,e),J(this,"cache",void 0),J(this,"keys",void 0),J(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return Mr(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(n){var r,i,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,a={map:this.cache};return n.forEach(function(l){if(!a)a=void 0;else{var c;a=(c=a)===null||c===void 0||(c=c.map)===null||c===void 0?void 0:c.get(l)}}),(r=a)!==null&&r!==void 0&&r.value&&o&&(a.value[1]=this.cacheCallTimes++),(i=a)===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 o=this.keys.reduce(function(u,p){var h=_e(u,2),m=h[1];return i.internalGet(p)[1]<m?[p,i.internalGet(p)[1]]:u},[this.keys[0],this.cacheCallTimes]),a=_e(o,1),l=a[0];this.delete(l)}this.keys.push(n)}var c=this.cache;n.forEach(function(u,p){if(p===n.length-1)c.set(u,{value:[r,i.cacheCallTimes++]});else{var h=c.get(u);h?h.map||(h.map=new Map):c.set(u,{map:new Map}),c=c.get(u).map}})}},{key:"deleteByPath",value:function(n,r){var i=n.get(r[0]);if(r.length===1){var o;return i.map?n.set(r[0],{map:i.map}):n.delete(r[0]),(o=i.value)===null||o===void 0?void 0:o[0]}var a=this.deleteByPath(i.map,r.slice(1));return(!i.map||i.map.size===0)&&!i.value&&n.delete(r[0]),a}},{key:"delete",value:function(n){if(this.has(n))return this.keys=this.keys.filter(function(r){return!mQ(r,n)}),this.deleteByPath(this.cache,n)}}]),e}();J(m3,"MAX_CACHE_SIZE",20);J(m3,"MAX_CACHE_OFFSET",5);var JT=0,uL=function(){function e(t){Rr(this,e),J(this,"derivatives",void 0),J(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=JT,t.length===0&&(t.length>0,void 0),JT+=1}return Mr(e,[{key:"getDerivativeToken",value:function(n){return this.derivatives.reduce(function(r,i){return i(n,r)},void 0)}}]),e}(),d4=new m3;function yS(e){var t=Array.isArray(e)?e:[e];return d4.has(t)||d4.set(t,new uL(t)),d4.get(t)}var gQ=new WeakMap,f4={};function vQ(e,t){for(var n=gQ,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(f4)||n.set(f4,e()),n.get(f4)}var e7=new WeakMap;function Jp(e){var t=e7.get(e)||"";return t||(Object.keys(e).forEach(function(n){var r=e[n];t+=n,r instanceof uL?t+=r.id:r&&Nt(r)==="object"?t+=Jp(r):t+=r}),t=Wh(t),e7.set(e,t)),t}function t7(e,t){return Wh("".concat(t,"_").concat(Jp(e)))}var bS=Em();function ae(e){return typeof e=="number"?"".concat(e,"px"):e}function iy(e,t,n){var r,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(o)return e;var a=te(te({},i),{},(r={},J(r,Bf,t),J(r,tl,n),r)),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 Zg=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()},yQ=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 o=_e(i,2),a=o[0],l=o[1];return"".concat(a,":").concat(l,";")}).join(""),"}"):""},dL=function(t,n,r){var i={},o={};return Object.entries(t).forEach(function(a){var l,c,u=_e(a,2),p=u[0],h=u[1];if(r!=null&&(l=r.preserve)!==null&&l!==void 0&&l[p])o[p]=h;else if((typeof h=="string"||typeof h=="number")&&!(r!=null&&(c=r.ignore)!==null&&c!==void 0&&c[p])){var m,g=Zg(p,r==null?void 0:r.prefix);i[g]=typeof h=="number"&&!(r!=null&&(m=r.unitless)!==null&&m!==void 0&&m[p])?"".concat(h,"px"):String(h),o[p]="var(".concat(g,")")}}),[o,yQ(i,n,{scope:r==null?void 0:r.scope})]},n7=Em()?d.useLayoutEffect:d.useEffect,bQ=function(t,n){var r=d.useRef(!0);n7(function(){return t(r.current)},n),n7(function(){return r.current=!1,function(){r.current=!0}},[])},CQ=te({},mm),r7=CQ.useInsertionEffect,SQ=function(t,n,r){d.useMemo(t,r),bQ(function(){return n(!0)},r)},EQ=r7?function(e,t,n){return r7(function(){return e(),t()},n)}:SQ,xQ=te({},mm),wQ=xQ.useInsertionEffect,_Q=function(t){var n=[],r=!1;function i(o){r||n.push(o)}return d.useEffect(function(){return r=!1,function(){r=!0,n.length&&n.forEach(function(o){return o()})}},t),i},TQ=function(){return function(t){t()}},OQ=typeof wQ<"u"?_Q:TQ;function g3(e,t,n,r,i){var o=d.useContext(Tb),a=o.cache,l=[e].concat(Xe(t)),c=vS(l),u=OQ([c]),p=function(b){a.opUpdate(c,function(E){var x=E||[void 0,void 0],S=_e(x,2),C=S[0],_=C===void 0?0:C,O=S[1],k=O,T=k||n(),I=[_,T];return b?b(I):I})};d.useMemo(function(){p()},[c]);var h=a.opGet(c),m=h[1];return EQ(function(){i==null||i(m)},function(g){return p(function(b){var E=_e(b,2),x=E[0],S=E[1];return g&&x===0&&(i==null||i(m)),[x+1,S]}),function(){a.opUpdate(c,function(b){var E=b||[],x=_e(E,2),S=x[0],C=S===void 0?0:S,_=x[1],O=C-1;return O===0?(u(function(){(g||!a.opGet(c))&&(r==null||r(_,!1))}),null):[C-1,_]})}},[c]),m}var IQ={},kQ="css",fu=new Map;function $Q(e){fu.set(e,(fu.get(e)||0)+1)}function NQ(e,t){if(typeof document<"u"){var n=document.querySelectorAll("style[".concat(Bf,'="').concat(e,'"]'));n.forEach(function(r){if(r[ac]===t){var i;(i=r.parentNode)===null||i===void 0||i.removeChild(r)}})}}var AQ=0;function RQ(e,t){fu.set(e,(fu.get(e)||0)-1);var n=Array.from(fu.keys()),r=n.filter(function(i){var o=fu.get(i)||0;return o<=0});n.length-r.length>AQ&&r.forEach(function(i){NQ(i,t),fu.delete(i)})}var MQ=function(t,n,r,i){var o=r.getDerivativeToken(t),a=te(te({},o),n);return i&&(a=i(a)),a},fL="token";function PQ(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=d.useContext(Tb),i=r.cache.instanceId,o=r.container,a=n.salt,l=a===void 0?"":a,c=n.override,u=c===void 0?IQ:c,p=n.formatToken,h=n.getComputedToken,m=n.cssVar,g=vQ(function(){return Object.assign.apply(Object,[{}].concat(Xe(t)))},t),b=Jp(g),E=Jp(u),x=m?Jp(m):"",S=g3(fL,[l,e.id,b,E,x],function(){var C,_=h?h(g,u,e):MQ(g,u,e,p),O=te({},_),k="";if(m){var T=dL(_,m.key,{prefix:m.prefix,ignore:m.ignore,unitless:m.unitless,preserve:m.preserve}),I=_e(T,2);_=I[0],k=I[1]}var $=t7(_,l);_._tokenKey=$,O._tokenKey=t7(O,l);var M=(C=m==null?void 0:m.key)!==null&&C!==void 0?C:$;_._themeKey=M,$Q(M);var R="".concat(kQ,"-").concat(Wh($));return _._hashId=R,[_,R,O,k,(m==null?void 0:m.key)||""]},function(C){RQ(C[0]._themeKey,i)},function(C){var _=_e(C,4),O=_[0],k=_[3];if(m&&k){var T=Sf(k,Wh("css-variables-".concat(O._themeKey)),{mark:tl,prepend:"queue",attachTo:o,priority:-999});T[ac]=i,T.setAttribute(Bf,O._themeKey)}});return S}var LQ=function(t,n,r){var i=_e(t,5),o=i[2],a=i[3],l=i[4],c=r||{},u=c.plain;if(!a)return null;var p=o._tokenKey,h=-999,m={"data-rc-order":"prependQueue","data-rc-priority":"".concat(h)},g=iy(a,l,p,m,u);return[h,p,g]},DQ={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},pL="comm",hL="rule",mL="decl",FQ="@import",BQ="@keyframes",jQ="@layer",gL=Math.abs,v3=String.fromCharCode;function vL(e){return e.trim()}function Jg(e,t,n){return e.replace(t,n)}function HQ(e,t,n){return e.indexOf(t,n)}function Uh(e,t){return e.charCodeAt(t)|0}function jf(e,t,n){return e.slice(t,n)}function xl(e){return e.length}function zQ(e){return e.length}function K0(e,t){return t.push(e),e}var Ob=1,Hf=1,yL=0,Oa=0,Jr=0,l1="";function y3(e,t,n,r,i,o,a,l){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:Ob,column:Hf,length:a,return:"",siblings:l}}function WQ(){return Jr}function UQ(){return Jr=Oa>0?Uh(l1,--Oa):0,Hf--,Jr===10&&(Hf=1,Ob--),Jr}function nl(){return Jr=Oa<yL?Uh(l1,Oa++):0,Hf++,Jr===10&&(Hf=1,Ob++),Jr}function lc(){return Uh(l1,Oa)}function ev(){return Oa}function Ib(e,t){return jf(l1,e,t)}function Kh(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 KQ(e){return Ob=Hf=1,yL=xl(l1=e),Oa=0,[]}function VQ(e){return l1="",e}function p4(e){return vL(Ib(Oa-1,CS(e===91?e+2:e===40?e+1:e)))}function GQ(e){for(;(Jr=lc())&&Jr<33;)nl();return Kh(e)>2||Kh(Jr)>3?"":" "}function qQ(e,t){for(;--t&&nl()&&!(Jr<48||Jr>102||Jr>57&&Jr<65||Jr>70&&Jr<97););return Ib(e,ev()+(t<6&&lc()==32&&nl()==32))}function CS(e){for(;nl();)switch(Jr){case e:return Oa;case 34:case 39:e!==34&&e!==39&&CS(Jr);break;case 40:e===41&&CS(e);break;case 92:nl();break}return Oa}function XQ(e,t){for(;nl()&&e+Jr!==57;)if(e+Jr===84&&lc()===47)break;return"/*"+Ib(t,Oa-1)+"*"+v3(e===47?e:nl())}function YQ(e){for(;!Kh(lc());)nl();return Ib(e,Oa)}function QQ(e){return VQ(tv("",null,null,null,[""],e=KQ(e),0,[0],e))}function tv(e,t,n,r,i,o,a,l,c){for(var u=0,p=0,h=a,m=0,g=0,b=0,E=1,x=1,S=1,C=0,_="",O=i,k=o,T=r,I=_;x;)switch(b=C,C=nl()){case 40:if(b!=108&&Uh(I,h-1)==58){HQ(I+=Jg(p4(C),"&","&\f"),"&\f",gL(u?l[u-1]:0))!=-1&&(S=-1);break}case 34:case 39:case 91:I+=p4(C);break;case 9:case 10:case 13:case 32:I+=GQ(b);break;case 92:I+=qQ(ev()-1,7);continue;case 47:switch(lc()){case 42:case 47:K0(ZQ(XQ(nl(),ev()),t,n,c),c),(Kh(b||1)==5||Kh(lc()||1)==5)&&xl(I)&&jf(I,-1,void 0)!==" "&&(I+=" ");break;default:I+="/"}break;case 123*E:l[u++]=xl(I)*S;case 125*E:case 59:case 0:switch(C){case 0:case 125:x=0;case 59+p:S==-1&&(I=Jg(I,/\f/g,"")),g>0&&(xl(I)-h||E===0&&b===47)&&K0(g>32?o7(I+";",r,n,h-1,c):o7(Jg(I," ","")+";",r,n,h-2,c),c);break;case 59:I+=";";default:if(K0(T=i7(I,t,n,u,p,i,l,_,O=[],k=[],h,o),o),C===123)if(p===0)tv(I,t,T,T,O,o,h,l,k);else switch(m===99&&Uh(I,3)===110?100:m){case 100:case 108:case 109:case 115:tv(e,T,T,r&&K0(i7(e,T,T,0,0,i,l,_,i,O=[],h,k),k),i,k,h,l,r?O:k);break;default:tv(I,T,T,T,[""],k,0,l,k)}}u=p=g=0,E=S=1,_=I="",h=a;break;case 58:h=1+xl(I),g=b;default:if(E<1){if(C==123)--E;else if(C==125&&E++==0&&UQ()==125)continue}switch(I+=v3(C),C*E){case 38:S=p>0?1:(I+="\f",-1);break;case 44:l[u++]=(xl(I)-1)*S,S=1;break;case 64:lc()===45&&(I+=p4(nl())),m=lc(),p=h=xl(_=I+=YQ(ev())),C++;break;case 45:b===45&&xl(I)==2&&(E=0)}}return o}function i7(e,t,n,r,i,o,a,l,c,u,p,h){for(var m=i-1,g=i===0?o:[""],b=zQ(g),E=0,x=0,S=0;E<r;++E)for(var C=0,_=jf(e,m+1,m=gL(x=a[E])),O=e;C<b;++C)(O=vL(x>0?g[C]+" "+_:Jg(_,/&\f/g,g[C])))&&(c[S++]=O);return y3(e,t,n,i===0?hL:l,c,u,p,h)}function ZQ(e,t,n,r){return y3(e,t,n,pL,v3(WQ()),jf(e,2,-2),0,r)}function o7(e,t,n,r,i){return y3(e,t,n,mL,jf(e,0,r),jf(e,r+1,-1),r,i)}function SS(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function JQ(e,t,n,r){switch(e.type){case jQ:if(e.children.length)break;case FQ:case mL:return e.return=e.return||e.value;case pL:return"";case BQ:return e.return=e.value+"{"+SS(e.children,r)+"}";case hL:if(!xl(e.value=e.props.join(",")))return""}return xl(n=SS(e.children,r))?e.return=e.value+"{"+n+"}":""}var a7="data-ant-cssinjs-cache-path",bL="_FILE_STYLE__",Tu,CL=!0;function eZ(){if(!Tu&&(Tu={},Em())){var e=document.createElement("div");e.className=a7,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 o=i.split(":"),a=_e(o,2),l=a[0],c=a[1];Tu[l]=c});var n=document.querySelector("style[".concat(a7,"]"));if(n){var r;CL=!1,(r=n.parentNode)===null||r===void 0||r.removeChild(n)}document.body.removeChild(e)}}function tZ(e){return eZ(),!!Tu[e]}function nZ(e){var t=Tu[e],n=null;if(t&&Em())if(CL)n=bL;else{var r=document.querySelector("style[".concat(tl,'="').concat(Tu[e],'"]'));r?n=r.innerHTML:delete Tu[e]}return[n,t]}var rZ="_skip_check_",SL="_multi_value_";function nv(e){var t=SS(QQ(e),JQ);return t.replace(/\{%%%\:[^;];}/g,";")}function iZ(e){return Nt(e)==="object"&&e&&(rZ in e||SL in e)}function l7(e,t,n){if(!t)return e;var r=".".concat(t),i=n==="low"?":where(".concat(r,")"):r,o=e.split(",").map(function(a){var l,c=a.trim().split(/\s+/),u=c[0]||"",p=((l=u.match(/^\w+/))===null||l===void 0?void 0:l[0])||"";return u="".concat(p).concat(i).concat(u.slice(p.length)),[u].concat(Xe(c.slice(1))).join(" ")});return o.join(",")}var oZ=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,o=r.injectHash,a=r.parentSelectors,l=n.hashId,c=n.layer;n.path;var u=n.hashPriority,p=n.transformers,h=p===void 0?[]:p;n.linters;var m="",g={};function b(S){var C=S.getName(l);if(!g[C]){var _=e(S.style,n,{root:!1,parentSelectors:a}),O=_e(_,1),k=O[0];g[C]="@keyframes ".concat(S.getName(l)).concat(k)}}function E(S){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return S.forEach(function(_){Array.isArray(_)?E(_,C):_&&C.push(_)}),C}var x=E(Array.isArray(t)?t:[t]);return x.forEach(function(S){var C=typeof S=="string"&&!i?{}:S;if(typeof C=="string")m+="".concat(C,`
`);else if(C._keyframe)b(C);else{var _=h.reduce(function(O,k){var T;return(k==null||(T=k.visit)===null||T===void 0?void 0:T.call(k,O))||O},C);Object.keys(_).forEach(function(O){var k=_[O];if(Nt(k)==="object"&&k&&(O!=="animationName"||!k._keyframe)&&!iZ(k)){var T=!1,I=O.trim(),$=!1;(i||o)&&l?I.startsWith("@")?T=!0:I==="&"?I=l7("",l,u):I=l7(O,l,u):i&&!l&&(I==="&"||I==="")&&(I="",$=!0);var M=e(k,n,{root:$,injectHash:T,parentSelectors:[].concat(Xe(a),[I])}),R=_e(M,2),j=R[0],D=R[1];g=te(te({},g),D),m+="".concat(I).concat(j)}else{let H=function(W,z){var V=W.replace(/[A-Z]/g,function(A){return"-".concat(A.toLowerCase())}),X=z;!DQ[W]&&typeof X=="number"&&X!==0&&(X="".concat(X,"px")),W==="animationName"&&z!==null&&z!==void 0&&z._keyframe&&(b(z),X=z.getName(l)),m+="".concat(V,":").concat(X,";")};var L,B=(L=k==null?void 0:k.value)!==null&&L!==void 0?L:k;Nt(k)==="object"&&k!==null&&k!==void 0&&k[SL]&&Array.isArray(B)?B.forEach(function(W){H(O,W)}):H(O,B)}})}}),i?c&&(m="@layer ".concat(c.name," {").concat(m,"}"),c.dependencies&&(g["@layer ".concat(c.name)]=c.dependencies.map(function(S){return"@layer ".concat(S,", ").concat(c.name,";")}).join(`
`))):m="{".concat(m,"}"),[m,g]};function EL(e,t){return Wh("".concat(e.join("%")).concat(t))}function aZ(){return null}var xL="style";function ES(e,t){var n=e.token,r=e.path,i=e.hashId,o=e.layer,a=e.nonce,l=e.clientOnly,c=e.order,u=c===void 0?0:c,p=d.useContext(Tb),h=p.autoClear;p.mock;var m=p.defaultCache,g=p.hashPriority,b=p.container,E=p.ssrInline,x=p.transformers,S=p.linters,C=p.cache,_=p.layer,O=n._tokenKey,k=[O];_&&k.push("layer"),k.push.apply(k,Xe(r));var T=bS,I=g3(xL,k,function(){var D=k.join("|");if(tZ(D)){var L=nZ(D),B=_e(L,2),H=B[0],W=B[1];if(H)return[H,O,W,{},l,u]}var z=t(),V=oZ(z,{hashId:i,hashPriority:g,layer:_?o:void 0,path:r.join("-"),transformers:x,linters:S}),X=_e(V,2),A=X[0],P=X[1],Y=nv(A),U=EL(k,Y);return[Y,O,U,P,l,u]},function(D,L){var B=_e(D,3),H=B[2];(L||h)&&bS&&sL(H,{mark:tl})},function(D){var L=_e(D,4),B=L[0];L[1];var H=L[2],W=L[3];if(T&&B!==bL){var z={mark:tl,prepend:_?!1:"queue",attachTo:b,priority:u},V=typeof a=="function"?a():a;V&&(z.csp={nonce:V});var X=[],A=[];Object.keys(W).forEach(function(Y){Y.startsWith("@layer")?X.push(Y):A.push(Y)}),X.forEach(function(Y){Sf(nv(W[Y]),"_layer-".concat(Y),te(te({},z),{},{prepend:!0}))});var P=Sf(B,H,z);P[ac]=C.instanceId,P.setAttribute(Bf,O),A.forEach(function(Y){Sf(nv(W[Y]),"_effect-".concat(Y),z)})}}),$=_e(I,3),M=$[0],R=$[1],j=$[2];return function(D){var L;if(!E||T||!m)L=d.createElement(aZ,null);else{var B;L=d.createElement("style",Ve({},(B={},J(B,Bf,R),J(B,tl,j),B),{dangerouslySetInnerHTML:{__html:M}}))}return d.createElement(d.Fragment,null,L,D)}}var lZ=function(t,n,r){var i=_e(t,6),o=i[0],a=i[1],l=i[2],c=i[3],u=i[4],p=i[5],h=r||{},m=h.plain;if(u)return null;var g=o,b={"data-rc-order":"prependQueue","data-rc-priority":"".concat(p)};return g=iy(o,a,l,b,m),c&&Object.keys(c).forEach(function(E){if(!n[E]){n[E]=!0;var x=nv(c[E]),S=iy(x,a,"_effect-".concat(E),b,m);E.startsWith("@layer")?g=S+g:g+=S}}),[p,l,g]},wL="cssVar",sZ=function(t,n){var r=t.key,i=t.prefix,o=t.unitless,a=t.ignore,l=t.token,c=t.scope,u=c===void 0?"":c,p=d.useContext(Tb),h=p.cache.instanceId,m=p.container,g=l._tokenKey,b=[].concat(Xe(t.path),[r,u,g]),E=g3(wL,b,function(){var x=n(),S=dL(x,r,{prefix:i,unitless:o,ignore:a,scope:u}),C=_e(S,2),_=C[0],O=C[1],k=EL(b,O);return[_,O,k,r]},function(x){var S=_e(x,3),C=S[2];bS&&sL(C,{mark:tl})},function(x){var S=_e(x,3),C=S[1],_=S[2];if(C){var O=Sf(C,_,{mark:tl,prepend:"queue",attachTo:m,priority:-999});O[ac]=h,O.setAttribute(Bf,r)}});return E},cZ=function(t,n,r){var i=_e(t,4),o=i[1],a=i[2],l=i[3],c=r||{},u=c.plain;if(!o)return null;var p=-999,h={"data-rc-order":"prependQueue","data-rc-priority":"".concat(p)},m=iy(o,l,a,h,u);return[p,a,m]},dp;dp={},J(dp,xL,lZ),J(dp,fL,LQ),J(dp,wL,cZ);var wn=function(){function e(t,n){Rr(this,e),J(this,"name",void 0),J(this,"style",void 0),J(this,"_keyframe",!0),this.name=t,this.style=n}return Mr(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 _d(e){return e.notSplit=!0,e}_d(["borderTop","borderBottom"]),_d(["borderTop"]),_d(["borderBottom"]),_d(["borderLeft","borderRight"]),_d(["borderLeft"]),_d(["borderRight"]);var b3=d.createContext({});function _L(e){return rL(e)||JP(e)||f3(e)||iL()}function lo(e,t){for(var n=e,r=0;r<t.length;r+=1){if(n==null)return;n=n[t[r]]}return n}function TL(e,t,n,r){if(!t.length)return n;var i=_L(t),o=i[0],a=i.slice(1),l;return!e&&typeof o=="number"?l=[]:Array.isArray(e)?l=Xe(e):l=te({},e),r&&n===void 0&&a.length===1?delete l[o][a[0]]:l[o]=TL(l[o],a,n,r),l}function ma(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&r&&n===void 0&&!lo(e,t.slice(0,-1))?e:TL(e,t,n,r)}function uZ(e){return Nt(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function s7(e){return Array.isArray(e)?[]:{}}var dZ=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function of(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=s7(t[0]);return t.forEach(function(i){function o(a,l){var c=new Set(l),u=lo(i,a),p=Array.isArray(u);if(p||uZ(u)){if(!c.has(u)){c.add(u);var h=lo(r,a);p?r=ma(r,a,[]):(!h||Nt(h)!=="object")&&(r=ma(r,a,s7(u))),dZ(u).forEach(function(m){o([].concat(Xe(a),[m]),c)})}}else r=ma(r,a,u)}o([])}),r}function fZ(){}const pZ=d.createContext({}),Lc=()=>{const e=()=>{};return e.deprecated=fZ,e},OL=d.createContext(void 0);var IL={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"},hZ={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0},mZ=te(te({},hZ),{},{locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",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 kL={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},c7={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"]},mZ),timePickerLocale:Object.assign({},kL)},jo="${label} is not a valid ${type}",Pl={locale:"en",Pagination:IL,DatePicker:c7,TimePicker:kL,Calendar:c7,global:{placeholder:"Please select"},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:jo,method:jo,array:jo,object:jo,number:jo,date:jo,boolean:jo,integer:jo,float:jo,regexp:jo,email:jo,url:jo,hex:jo},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"}};let rv=Object.assign({},Pl.Modal),iv=[];const u7=()=>iv.reduce((e,t)=>Object.assign(Object.assign({},e),t),Pl.Modal);function gZ(e){if(e){const t=Object.assign({},e);return iv.push(t),rv=u7(),()=>{iv=iv.filter(n=>n!==t),rv=u7()}}rv=Object.assign({},Pl.Modal)}function $L(){return rv}const C3=d.createContext(void 0),jl=(e,t)=>{const n=d.useContext(C3),r=d.useMemo(()=>{var o;const a=t||Pl[e],l=(o=n==null?void 0:n[e])!==null&&o!==void 0?o:{};return Object.assign(Object.assign({},typeof a=="function"?a():a),l||{})},[e,t,n]),i=d.useMemo(()=>{const o=n==null?void 0:n.locale;return n!=null&&n.exist&&!o?Pl.locale:o},[n]);return[r,i]},vZ="internalMark",yZ=e=>{const{locale:t={},children:n,_ANT_MARK__:r}=e;d.useEffect(()=>gZ(t==null?void 0:t.Modal),[t]);const i=d.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return d.createElement(C3.Provider,{value:i},n)},Ei=Math.round;function h4(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 d7=(e,t,n)=>n===0?e:e/100;function fp(e,t){const n=t||255;return e>n?n:e<0?0:e}class An{constructor(t){J(this,"isValid",!0),J(this,"r",0),J(this,"g",0),J(this,"b",0),J(this,"a",1),J(this,"_h",void 0),J(this,"_s",void 0),J(this,"_l",void 0),J(this,"_v",void 0),J(this,"_max",void 0),J(this,"_min",void 0),J(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(o){return r.startsWith(o)};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 An)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=fp(t.r),this.g=fp(t.g),this.b=fp(t.b),this.a=typeof t.a=="number"?fp(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(o){const a=o/255;return a<=.03928?a/12.92:Math.pow((a+.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=Ei(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,o=l=>(r[l]-this[l])*i+this[l],a={r:Ei(o("r")),g:Ei(o("g")),b:Ei(o("b")),a:Ei(o("a")*100)/100};return this._c(a)}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=o=>Ei((this[o]*this.a+n[o]*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 o=Ei(this.a*255).toString(16);t+=o.length===2?o:"0"+o}return t}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const t=this.getHue(),n=Ei(this.getSaturation()*100),r=Ei(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]=fp(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,o){return parseInt(n[i]+n[o||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 m=Ei(r*255);this.r=m,this.g=m,this.b=m}let o=0,a=0,l=0;const c=t/60,u=(1-Math.abs(2*r-1))*n,p=u*(1-Math.abs(c%2-1));c>=0&&c<1?(o=u,a=p):c>=1&&c<2?(o=p,a=u):c>=2&&c<3?(a=u,l=p):c>=3&&c<4?(a=p,l=u):c>=4&&c<5?(o=p,l=u):c>=5&&c<6&&(o=u,l=p);const h=r-u/2;this.r=Ei((o+h)*255),this.g=Ei((a+h)*255),this.b=Ei((l+h)*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 o=Ei(r*255);if(this.r=o,this.g=o,this.b=o,n<=0)return;const a=t/60,l=Math.floor(a),c=a-l,u=Ei(r*(1-n)*255),p=Ei(r*(1-n*c)*255),h=Ei(r*(1-n*(1-c))*255);switch(l){case 0:this.g=h,this.b=u;break;case 1:this.r=p,this.b=u;break;case 2:this.r=u,this.b=h;break;case 3:this.r=u,this.g=p;break;case 4:this.r=h,this.g=u;break;case 5:default:this.g=u,this.b=p;break}}fromHsvString(t){const n=h4(t,d7);this.fromHsv({h:n[0],s:n[1],v:n[2],a:n[3]})}fromHslString(t){const n=h4(t,d7);this.fromHsl({h:n[0],s:n[1],l:n[2],a:n[3]})}fromRgbString(t){const n=h4(t,(r,i)=>i.includes("%")?Ei(r/100*255):r);this.r=n[0],this.g=n[1],this.b=n[2],this.a=n[3]}}var V0=2,f7=.16,bZ=.05,CZ=.05,SZ=.15,NL=5,AL=4,EZ=[{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 p7(e,t,n){var r;return Math.round(e.h)>=60&&Math.round(e.h)<=240?r=n?Math.round(e.h)-V0*t:Math.round(e.h)+V0*t:r=n?Math.round(e.h)+V0*t:Math.round(e.h)-V0*t,r<0?r+=360:r>=360&&(r-=360),r}function h7(e,t,n){if(e.h===0&&e.s===0)return e.s;var r;return n?r=e.s-f7*t:t===AL?r=e.s+f7:r=e.s+bZ*t,r>1&&(r=1),n&&t===NL&&r>.1&&(r=.1),r<.06&&(r=.06),Math.round(r*100)/100}function m7(e,t,n){var r;return n?r=e.v+CZ*t:r=e.v-SZ*t,r=Math.max(0,Math.min(1,r)),Math.round(r*100)/100}function Vh(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=new An(e),i=r.toHsv(),o=NL;o>0;o-=1){var a=new An({h:p7(i,o,!0),s:h7(i,o,!0),v:m7(i,o,!0)});n.push(a)}n.push(r);for(var l=1;l<=AL;l+=1){var c=new An({h:p7(i,l),s:h7(i,l),v:m7(i,l)});n.push(c)}return t.theme==="dark"?EZ.map(function(u){var p=u.index,h=u.amount;return new An(t.backgroundColor||"#141414").mix(n[p],h).toHexString()}):n.map(function(u){return u.toHexString()})}var Ef={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"},xS=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];xS.primary=xS[5];var wS=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];wS.primary=wS[5];var _S=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];_S.primary=_S[5];var oy=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];oy.primary=oy[5];var TS=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];TS.primary=TS[5];var OS=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];OS.primary=OS[5];var IS=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];IS.primary=IS[5];var kS=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];kS.primary=kS[5];var zf=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];zf.primary=zf[5];var $S=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];$S.primary=$S[5];var NS=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];NS.primary=NS[5];var AS=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];AS.primary=AS[5];var RS=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];RS.primary=RS[5];var m4={red:xS,volcano:wS,orange:_S,gold:oy,yellow:TS,lime:OS,green:IS,cyan:kS,blue:zf,geekblue:$S,purple:NS,magenta:AS,grey:RS};const RL={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"},Gh=Object.assign(Object.assign({},RL),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
'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});function xZ(e,t){let{generateColorPalettes:n,generateNeutralColorPalettes:r}=t;const{colorSuccess:i,colorWarning:o,colorError:a,colorInfo:l,colorPrimary:c,colorBgBase:u,colorTextBase:p}=e,h=n(c),m=n(i),g=n(o),b=n(a),E=n(l),x=r(u,p),S=e.colorLink||e.colorInfo,C=n(S),_=new An(b[1]).mix(new An(b[3]),50).toHexString();return Object.assign(Object.assign({},x),{colorPrimaryBg:h[1],colorPrimaryBgHover:h[2],colorPrimaryBorder:h[3],colorPrimaryBorderHover:h[4],colorPrimaryHover:h[5],colorPrimary:h[6],colorPrimaryActive:h[7],colorPrimaryTextHover:h[8],colorPrimaryText:h[9],colorPrimaryTextActive:h[10],colorSuccessBg:m[1],colorSuccessBgHover:m[2],colorSuccessBorder:m[3],colorSuccessBorderHover:m[4],colorSuccessHover:m[4],colorSuccess:m[6],colorSuccessActive:m[7],colorSuccessTextHover:m[8],colorSuccessText:m[9],colorSuccessTextActive:m[10],colorErrorBg:b[1],colorErrorBgHover:b[2],colorErrorBgFilledHover:_,colorErrorBgActive:b[3],colorErrorBorder:b[3],colorErrorBorderHover:b[4],colorErrorHover:b[5],colorError:b[6],colorErrorActive:b[7],colorErrorTextHover:b[8],colorErrorText:b[9],colorErrorTextActive:b[10],colorWarningBg:g[1],colorWarningBgHover:g[2],colorWarningBorder:g[3],colorWarningBorderHover:g[4],colorWarningHover:g[4],colorWarning:g[6],colorWarningActive:g[7],colorWarningTextHover:g[8],colorWarningText:g[9],colorWarningTextActive:g[10],colorInfoBg:E[1],colorInfoBgHover:E[2],colorInfoBorder:E[3],colorInfoBorderHover:E[4],colorInfoHover:E[4],colorInfo:E[6],colorInfoActive:E[7],colorInfoTextHover:E[8],colorInfoText:E[9],colorInfoTextActive:E[10],colorLinkHover:C[4],colorLink:C[6],colorLinkActive:C[7],colorBgMask:new An("#000").setA(.45).toRgbString(),colorWhite:"#fff"})}const wZ=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 _Z(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},wZ(r))}const TZ=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}};function ov(e){return(e+8)/e}function OZ(e){const t=new Array(10).fill(null).map((n,r)=>{const i=r-1,o=e*Math.pow(Math.E,i/5),a=r>1?Math.floor(o):Math.ceil(o);return Math.floor(a/2)*2});return t[1]=e,t.map(n=>({size:n,lineHeight:ov(n)}))}const IZ=e=>{const t=OZ(e),n=t.map(p=>p.size),r=t.map(p=>p.lineHeight),i=n[1],o=n[0],a=n[2],l=r[1],c=r[0],u=r[2];return{fontSizeSM:o,fontSize:i,fontSizeLG:a,fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:l,lineHeightLG:u,lineHeightSM:c,fontHeight:Math.round(l*i),fontHeightLG:Math.round(u*a),fontHeightSM:Math.round(c*o),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};function kZ(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 ca=(e,t)=>new An(e).setA(t).toRgbString(),pp=(e,t)=>new An(e).darken(t).toHexString(),$Z=e=>{const t=Vh(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]}},NZ=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:ca(r,.88),colorTextSecondary:ca(r,.65),colorTextTertiary:ca(r,.45),colorTextQuaternary:ca(r,.25),colorFill:ca(r,.15),colorFillSecondary:ca(r,.06),colorFillTertiary:ca(r,.04),colorFillQuaternary:ca(r,.02),colorBgSolid:ca(r,1),colorBgSolidHover:ca(r,.75),colorBgSolidActive:ca(r,.95),colorBgLayout:pp(n,4),colorBgContainer:pp(n,0),colorBgElevated:pp(n,0),colorBgSpotlight:ca(r,.85),colorBgBlur:"transparent",colorBorder:pp(n,15),colorBorderSecondary:pp(n,6)}};function AZ(e){Ef.pink=Ef.magenta,m4.pink=m4.magenta;const t=Object.keys(RL).map(n=>{const r=e[n]===Ef[n]?m4[n]:Vh(e[n]);return new Array(10).fill(1).reduce((i,o,a)=>(i[`${n}-${a+1}`]=r[a],i[`${n}${a+1}`]=r[a],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),xZ(e,{generateColorPalettes:$Z,generateNeutralColorPalettes:NZ})),IZ(e.fontSize)),kZ(e)),TZ(e)),_Z(e))}const ML=yS(AZ),MS={token:Gh,override:{override:Gh},hashed:!0},PL=fe.createContext(MS),qh="ant",kb="anticon",RZ=["outlined","borderless","filled"],MZ=(e,t)=>t||(e?`${qh}-${e}`:qh),At=d.createContext({getPrefixCls:MZ,iconPrefixCls:kb});function co(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function PS(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 g7="data-rc-order",v7="data-rc-priority",PZ="rc-util-key",LS=new Map;function LL(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):PZ}function $b(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function LZ(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function S3(e){return Array.from((LS.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function DL(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!co())return null;var n=t.csp,r=t.prepend,i=t.priority,o=i===void 0?0:i,a=LZ(r),l=a==="prependQueue",c=document.createElement("style");c.setAttribute(g7,a),l&&o&&c.setAttribute(v7,"".concat(o)),n!=null&&n.nonce&&(c.nonce=n==null?void 0:n.nonce),c.innerHTML=e;var u=$b(t),p=u.firstChild;if(r){if(l){var h=(t.styles||S3(u)).filter(function(m){if(!["prepend","prependQueue"].includes(m.getAttribute(g7)))return!1;var g=Number(m.getAttribute(v7)||0);return o>=g});if(h.length)return u.insertBefore(c,h[h.length-1].nextSibling),c}u.insertBefore(c,p)}else u.appendChild(c);return c}function FL(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=$b(t);return(t.styles||S3(n)).find(function(r){return r.getAttribute(LL(t))===e})}function DS(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=FL(e,t);if(n){var r=$b(t);r.removeChild(n)}}function DZ(e,t){var n=LS.get(e);if(!n||!PS(document,n)){var r=DL("",t),i=r.parentNode;LS.set(e,i),e.removeChild(r)}}function Nb(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=$b(n),i=S3(r),o=te(te({},n),{},{styles:i});DZ(r,o);var a=FL(t,o);if(a){var l,c;if((l=o.csp)!==null&&l!==void 0&&l.nonce&&a.nonce!==((c=o.csp)===null||c===void 0?void 0:c.nonce)){var u;a.nonce=(u=o.csp)===null||u===void 0?void 0:u.nonce}return a.innerHTML!==e&&(a.innerHTML=e),a}var p=DL(e,o);return p.setAttribute(LL(o),t),p}const FZ=`-ant-${Date.now()}-${Math.random()}`;function BZ(e,t){const n={},r=(a,l)=>{let c=a.clone();return c=(l==null?void 0:l(c))||c,c.toRgbString()},i=(a,l)=>{const c=new An(a),u=Vh(c.toRgbString());n[`${l}-color`]=r(c),n[`${l}-color-disabled`]=u[1],n[`${l}-color-hover`]=u[4],n[`${l}-color-active`]=u[6],n[`${l}-color-outline`]=c.clone().setA(.2).toRgbString(),n[`${l}-color-deprecated-bg`]=u[0],n[`${l}-color-deprecated-border`]=u[2]};if(t.primaryColor){i(t.primaryColor,"primary");const a=new An(t.primaryColor),l=Vh(a.toRgbString());l.forEach((u,p)=>{n[`primary-${p+1}`]=u}),n["primary-color-deprecated-l-35"]=r(a,u=>u.lighten(35)),n["primary-color-deprecated-l-20"]=r(a,u=>u.lighten(20)),n["primary-color-deprecated-t-20"]=r(a,u=>u.tint(20)),n["primary-color-deprecated-t-50"]=r(a,u=>u.tint(50)),n["primary-color-deprecated-f-12"]=r(a,u=>u.setA(u.a*.12));const c=new An(l[0]);n["primary-color-active-deprecated-f-30"]=r(c,u=>u.setA(u.a*.3)),n["primary-color-active-deprecated-d-02"]=r(c,u=>u.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"),`
:root {
${Object.keys(n).map(a=>`--${e}-${a}: ${n[a]};`).join(`
`)}
}
`.trim()}function jZ(e,t){const n=BZ(e,t);co()&&Nb(n,`${FZ}-dynamic-theme`)}const Ia=d.createContext(!1),E3=e=>{let{children:t,disabled:n}=e;const r=d.useContext(Ia);return d.createElement(Ia.Provider,{value:n??r},t)},Du=d.createContext(void 0),HZ=e=>{let{children:t,size:n}=e;const r=d.useContext(Du);return d.createElement(Du.Provider,{value:n||r},t)};function zZ(){const e=d.useContext(Ia),t=d.useContext(Du);return{componentDisabled:e,componentSize:t}}function Ll(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=new Set;function i(o,a){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,c=r.has(o);if(br(!c,"Warning: There may be circular references"),c)return!1;if(o===a)return!0;if(n&&l>1)return!1;r.add(o);var u=l+1;if(Array.isArray(o)){if(!Array.isArray(a)||o.length!==a.length)return!1;for(var p=0;p<o.length;p++)if(!i(o[p],a[p],u))return!1;return!0}if(o&&a&&Nt(o)==="object"&&Nt(a)==="object"){var h=Object.keys(o);return h.length!==Object.keys(a).length?!1:h.every(function(m){return i(o[m],a[m],u)})}return!1}return i(e,t)}var BL=Mr(function e(){Rr(this,e)}),jL="CALC_UNIT",WZ=new RegExp(jL,"g");function g4(e){return typeof e=="number"?"".concat(e).concat(jL):e}var UZ=function(e){Ra(n,e);var t=Ma(n);function n(r,i){var o;Rr(this,n),o=t.call(this),J(_t(o),"result",""),J(_t(o),"unitlessCssVar",void 0),J(_t(o),"lowPriority",void 0);var a=Nt(r);return o.unitlessCssVar=i,r instanceof n?o.result="(".concat(r.result,")"):a==="number"?o.result=g4(r):a==="string"&&(o.result=r),o}return Mr(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(g4(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(g4(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 o=this,a=i||{},l=a.unit,c=!0;return typeof l=="boolean"?c=l:Array.from(this.unitlessCssVar).some(function(u){return o.result.includes(u)})&&(c=!1),this.result=this.result.replace(WZ,c?"px":""),typeof this.lowPriority<"u"?"calc(".concat(this.result,")"):this.result}}]),n}(BL),KZ=function(e){Ra(n,e);var t=Ma(n);function n(r){var i;return Rr(this,n),i=t.call(this),J(_t(i),"result",0),r instanceof n?i.result=r.result:typeof r=="number"&&(i.result=r),i}return Mr(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}(BL),VZ=function(t,n){var r=t==="css"?UZ:KZ;return function(i){return new r(i,n)}},y7=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 Kn(e){var t=d.useRef();t.current=e;var n=d.useCallback(function(){for(var r,i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return(r=t.current)===null||r===void 0?void 0:r.call.apply(r,[t].concat(o))},[]);return n}var b7=co()?d.useLayoutEffect:d.useEffect,xn=function(t,n){var r=d.useRef(!0);b7(function(){return t(r.current)},n),b7(function(){return r.current=!1,function(){r.current=!0}},[])},FS=function(t,n){xn(function(r){if(!r)return t()},n)};function Fu(e){var t=d.useRef(!1),n=d.useState(e),r=_e(n,2),i=r[0],o=r[1];d.useEffect(function(){return t.current=!1,function(){t.current=!0}},[]);function a(l,c){c&&t.current||o(l)}return[i,a]}function v4(e){return e!==void 0}function _r(e,t){var n=t||{},r=n.defaultValue,i=n.value,o=n.onChange,a=n.postState,l=Fu(function(){return v4(i)?i:v4(r)?typeof r=="function"?r():r:typeof e=="function"?e():e}),c=_e(l,2),u=c[0],p=c[1],h=i!==void 0?i:u,m=a?a(h):h,g=Kn(o),b=Fu([h]),E=_e(b,2),x=E[0],S=E[1];FS(function(){var _=x[0];u!==_&&g(u,_)},[x]),FS(function(){v4(i)||p(i)},[i]);var C=Kn(function(_,O){p(_,O),S([h],O)});return[m,C]}function C7(e,t,n,r){var i=te({},t[e]);if(r!=null&&r.deprecatedTokens){var o=r.deprecatedTokens;o.forEach(function(l){var c=_e(l,2),u=c[0],p=c[1];if(i!=null&&i[u]||i!=null&&i[p]){var h;(h=i[p])!==null&&h!==void 0||(i[p]=i==null?void 0:i[u])}})}var a=te(te({},n),i);return Object.keys(a).forEach(function(l){a[l]===t[l]&&delete a[l]}),a}var HL=typeof CSSINJS_STATISTIC<"u",BS=!0;function hn(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!HL)return Object.assign.apply(Object,[{}].concat(t));BS=!1;var r={};return t.forEach(function(i){if(Nt(i)==="object"){var o=Object.keys(i);o.forEach(function(a){Object.defineProperty(r,a,{configurable:!0,enumerable:!0,get:function(){return i[a]}})})}}),BS=!0,r}var S7={};function GZ(){}var qZ=function(t){var n,r=t,i=GZ;return HL&&typeof Proxy<"u"&&(n=new Set,r=new Proxy(t,{get:function(a,l){if(BS){var c;(c=n)===null||c===void 0||c.add(l)}return a[l]}}),i=function(a,l){var c;S7[a]={global:Array.from(n),component:te(te({},(c=S7[a])===null||c===void 0?void 0:c.component),l)}}),{token:r,keys:n,flush:i}};function E7(e,t,n){if(typeof n=="function"){var r;return n(hn(t,(r=t[e])!==null&&r!==void 0?r:{}))}return n??{}}function XZ(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(o){return ae(o)}).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(o){return ae(o)}).join(","),")")}}}var YZ=1e3*60*10,QZ=function(){function e(){Rr(this,e),J(this,"map",new Map),J(this,"objectIDMap",new WeakMap),J(this,"nextID",0),J(this,"lastAccessBeat",new Map),J(this,"accessBeat",0)}return Mr(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(o){return o&&Nt(o)==="object"?"obj_".concat(r.getObjectID(o)):"".concat(Nt(o),"_").concat(o)});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,o){r-i>YZ&&(n.map.delete(o),n.lastAccessBeat.delete(o))}),this.accessBeat=0}}}]),e}(),x7=new QZ;function ZZ(e,t){return fe.useMemo(function(){var n=x7.get(t);if(n)return n;var r=e();return x7.set(t,r),r},t)}var JZ=function(){return{}};function eJ(e){var t=e.useCSP,n=t===void 0?JZ:t,r=e.useToken,i=e.usePrefix,o=e.getResetStyles,a=e.getCommonStyle,l=e.getCompUnitless;function c(m,g,b,E){var x=Array.isArray(m)?m[0]:m;function S($){return"".concat(String(x)).concat($.slice(0,1).toUpperCase()).concat($.slice(1))}var C=(E==null?void 0:E.unitless)||{},_=typeof l=="function"?l(m):{},O=te(te({},_),{},J({},S("zIndexPopup"),!0));Object.keys(C).forEach(function($){O[S($)]=C[$]});var k=te(te({},E),{},{unitless:O,prefixToken:S}),T=p(m,g,b,k),I=u(x,b,k);return function($){var M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:$,R=T($,M),j=_e(R,2),D=j[1],L=I(M),B=_e(L,2),H=B[0],W=B[1];return[H,D,W]}}function u(m,g,b){var E=b.unitless,x=b.injectStyle,S=x===void 0?!0:x,C=b.prefixToken,_=b.ignore,O=function(I){var $=I.rootCls,M=I.cssVar,R=M===void 0?{}:M,j=r(),D=j.realToken;return sZ({path:[m],prefix:R.prefix,key:R.key,unitless:E,ignore:_,token:D,scope:$},function(){var L=E7(m,D,g),B=C7(m,D,L,{deprecatedTokens:b==null?void 0:b.deprecatedTokens});return Object.keys(L).forEach(function(H){B[C(H)]=B[H],delete B[H]}),B}),null},k=function(I){var $=r(),M=$.cssVar;return[function(R){return S&&M?fe.createElement(fe.Fragment,null,fe.createElement(O,{rootCls:I,cssVar:M,component:m}),R):R},M==null?void 0:M.key]};return k}function p(m,g,b){var E=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},x=Array.isArray(m)?m:[m,m],S=_e(x,1),C=S[0],_=x.join("-"),O=e.layer||{name:"antd"};return function(k){var T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:k,I=r(),$=I.theme,M=I.realToken,R=I.hashId,j=I.token,D=I.cssVar,L=i(),B=L.rootPrefixCls,H=L.iconPrefixCls,W=n(),z=D?"css":"js",V=ZZ(function(){var Q=new Set;return D&&Object.keys(E.unitless||{}).forEach(function(ee){Q.add(Zg(ee,D.prefix)),Q.add(Zg(ee,y7(C,D.prefix)))}),VZ(z,Q)},[z,C,D==null?void 0:D.prefix]),X=XZ(z),A=X.max,P=X.min,Y={theme:$,token:j,hashId:R,nonce:function(){return W.nonce},clientOnly:E.clientOnly,layer:O,order:E.order||-999};typeof o=="function"&&ES(te(te({},Y),{},{clientOnly:!1,path:["Shared",B]}),function(){return o(j,{prefix:{rootPrefixCls:B,iconPrefixCls:H},csp:W})});var U=ES(te(te({},Y),{},{path:[_,k,H]}),function(){if(E.injectStyle===!1)return[];var Q=qZ(j),ee=Q.token,se=Q.flush,ne=E7(C,M,b),oe=".".concat(k),pe=C7(C,M,ne,{deprecatedTokens:E.deprecatedTokens});D&&ne&&Nt(ne)==="object"&&Object.keys(ne).forEach(function(re){ne[re]="var(".concat(Zg(re,y7(C,D.prefix)),")")});var be=hn(ee,{componentCls:oe,prefixCls:k,iconCls:".".concat(H),antCls:".".concat(B),calc:V,max:A,min:P},D?ne:pe),ue=g(be,{hashId:R,prefixCls:k,rootPrefixCls:B,iconPrefixCls:H});se(C,pe);var de=typeof a=="function"?a(be,k,T,E.resetFont):null;return[E.resetStyle===!1?null:de,ue]});return[U,R]}}function h(m,g,b){var E=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},x=p(m,g,b,te({resetStyle:!1,order:-998},E)),S=function(_){var O=_.prefixCls,k=_.rootCls,T=k===void 0?O:k;return x(O,T),null};return S}return{genStyleHooks:c,genSubStyleComponent:h,genComponentStyleHook:p}}const Bu=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],tJ="5.23.2";function y4(e){return e>=0&&e<=255}function G0(e,t){const{r:n,g:r,b:i,a:o}=new An(e).toRgb();if(o<1)return e;const{r:a,g:l,b:c}=new An(t).toRgb();for(let u=.01;u<=1;u+=.01){const p=Math.round((n-a*(1-u))/u),h=Math.round((r-l*(1-u))/u),m=Math.round((i-c*(1-u))/u);if(y4(p)&&y4(h)&&y4(m))return new An({r:p,g:h,b:m,a:Math.round(u*100)/100}).toRgbString()}return new An({r:n,g:r,b:i,a:1}).toRgbString()}var nJ=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 zL(e){const{override:t}=e,n=nJ(e,["override"]),r=Object.assign({},t);Object.keys(Gh).forEach(m=>{delete r[m]});const i=Object.assign(Object.assign({},n),r),o=480,a=576,l=768,c=992,u=1200,p=1600;if(i.motion===!1){const m="0s";i.motionDurationFast=m,i.motionDurationMid=m,i.motionDurationSlow=m}return Object.assign(Object.assign(Object.assign({},i),{colorFillContent:i.colorFillSecondary,colorFillContentHover:i.colorFill,colorFillAlter:i.colorFillQuaternary,colorBgContainerDisabled:i.colorFillTertiary,colorBorderBg:i.colorBgContainer,colorSplit:G0(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:G0(i.colorErrorBg,i.colorBgContainer),colorWarningOutline:G0(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:G0(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:`
0 6px 16px 0 rgba(0, 0, 0, 0.08),
0 3px 6px -4px rgba(0, 0, 0, 0.12),
0 9px 28px 8px rgba(0, 0, 0, 0.05)
`,boxShadowSecondary:`
0 6px 16px 0 rgba(0, 0, 0, 0.08),
0 3px 6px -4px rgba(0, 0, 0, 0.12),
0 9px 28px 8px rgba(0, 0, 0, 0.05)
`,boxShadowTertiary:`
0 1px 2px 0 rgba(0, 0, 0, 0.03),
0 1px 6px -1px rgba(0, 0, 0, 0.02),
0 2px 4px 0 rgba(0, 0, 0, 0.02)
`,screenXS:o,screenXSMin:o,screenXSMax:a-1,screenSM:a,screenSMMin:a,screenSMMax:l-1,screenMD:l,screenMDMin:l,screenMDMax:c-1,screenLG:c,screenLGMin:c,screenLGMax:u-1,screenXL:u,screenXLMin:u,screenXLMax:p-1,screenXXL:p,screenXXLMin:p,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`
0 1px 2px -2px ${new An("rgba(0, 0, 0, 0.16)").toRgbString()},
0 3px 6px 0 ${new An("rgba(0, 0, 0, 0.12)").toRgbString()},
0 5px 12px 4px ${new An("rgba(0, 0, 0, 0.09)").toRgbString()}
`,boxShadowDrawerRight:`
-6px 0 16px 0 rgba(0, 0, 0, 0.08),
-3px 0 6px -4px rgba(0, 0, 0, 0.12),
-9px 0 28px 8px rgba(0, 0, 0, 0.05)
`,boxShadowDrawerLeft:`
6px 0 16px 0 rgba(0, 0, 0, 0.08),
3px 0 6px -4px rgba(0, 0, 0, 0.12),
9px 0 28px 8px rgba(0, 0, 0, 0.05)
`,boxShadowDrawerUp:`
0 6px 16px 0 rgba(0, 0, 0, 0.08),
0 3px 6px -4px rgba(0, 0, 0, 0.12),
0 9px 28px 8px rgba(0, 0, 0, 0.05)
`,boxShadowDrawerDown:`
0 -6px 16px 0 rgba(0, 0, 0, 0.08),
0 -3px 6px -4px rgba(0, 0, 0, 0.12),
0 -9px 28px 8px rgba(0, 0, 0, 0.05)
`,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 w7=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 WL={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},rJ={size:!0,sizeSM:!0,sizeLG:!0,sizeMD:!0,sizeXS:!0,sizeXXS:!0,sizeMS:!0,sizeXL:!0,sizeXXL:!0,sizeUnit:!0,sizeStep:!0,motionBase:!0,motionUnit:!0},iJ={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},UL=(e,t,n)=>{const r=n.getDerivativeToken(e),{override:i}=t,o=w7(t,["override"]);let a=Object.assign(Object.assign({},r),{override:i});return a=zL(a),o&&Object.entries(o).forEach(l=>{let[c,u]=l;const{theme:p}=u,h=w7(u,["theme"]);let m=h;p&&(m=UL(Object.assign(Object.assign({},a),h),{override:h},p)),a[c]=m}),a};function Fi(){const{token:e,hashed:t,theme:n,override:r,cssVar:i}=fe.useContext(PL),o=`${tJ}-${t||""}`,a=n||ML,[l,c,u]=PQ(a,[Gh,e],{salt:o,override:r,getComputedToken:UL,formatToken:zL,cssVar:i&&{prefix:i.prefix,key:i.key,unitless:WL,ignore:rJ,preserve:iJ}});return[a,u,t?c:"",l,i]}const ll={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},zn=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return{boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:t?"inherit":e.fontFamily}},xm=()=>({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"}}),sl=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),oJ=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"}}}),aJ=(e,t,n,r)=>{const i=`[class^="${t}"], [class*=" ${t}"]`,o=n?`.${n}`:i,a={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let l={};return r!==!1&&(l={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[o]:Object.assign(Object.assign(Object.assign({},l),a),{[i]:a})}},Dl=(e,t)=>({outline:`${ae(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:t??1,transition:"outline-offset 0s, outline 0s"}),Fl=(e,t)=>({"&:focus-visible":Object.assign({},Dl(e,t))}),KL=e=>({[`.${e}`]:Object.assign(Object.assign({},xm()),{[`.${e} .${e}-icon`]:{display:"block"}})}),x3=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"},Fl(e)),{"&:focus, &:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive}}),{genStyleHooks:Fn,genComponentStyleHook:lJ,genSubStyleComponent:s1}=eJ({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=d.useContext(At);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,n,r,i]=Fi();return{theme:e,realToken:t,hashId:n,token:r,cssVar:i}},useCSP:()=>{const{csp:e}=d.useContext(At);return e??{}},getResetStyles:(e,t)=>{var n;return[{"&":oJ(e)},KL((n=t==null?void 0:t.prefix.iconPrefixCls)!==null&&n!==void 0?n:kb)]},getCommonStyle:aJ,getCompUnitless:()=>WL});function VL(e,t){return Bu.reduce((n,r)=>{const i=e[`${r}1`],o=e[`${r}3`],a=e[`${r}6`],l=e[`${r}7`];return Object.assign(Object.assign({},n),t(r,{lightColor:i,lightBorderColor:o,darkColor:a,textColor:l}))},{})}const sJ=(e,t)=>{const[n,r]=Fi();return ES({theme:n,token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>t==null?void 0:t.nonce,layer:{name:"antd"}},()=>[KL(e)])},cJ=Object.assign({},mm),{useId:_7}=cJ,uJ=()=>"",dJ=typeof _7>"u"?uJ:_7;function fJ(e,t,n){var r;Lc();const i=e||{},o=i.inherit===!1||!t?Object.assign(Object.assign({},MS),{hashed:(r=t==null?void 0:t.hashed)!==null&&r!==void 0?r:MS.hashed,cssVar:t==null?void 0:t.cssVar}):t,a=dJ();return Vu(()=>{var l,c;if(!e)return t;const u=Object.assign({},o.components);Object.keys(e.components||{}).forEach(m=>{u[m]=Object.assign(Object.assign({},u[m]),e.components[m])});const p=`css-var-${a.replace(/:/g,"")}`,h=((l=i.cssVar)!==null&&l!==void 0?l:o.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:n==null?void 0:n.prefixCls},typeof o.cssVar=="object"?o.cssVar:{}),typeof i.cssVar=="object"?i.cssVar:{}),{key:typeof i.cssVar=="object"&&((c=i.cssVar)===null||c===void 0?void 0:c.key)||p});return Object.assign(Object.assign(Object.assign({},o),i),{token:Object.assign(Object.assign({},o.token),i.token),components:u,cssVar:h})},[i,o],(l,c)=>l.some((u,p)=>{const h=c[p];return!Ll(u,h,!0)}))}var pJ=["children"],GL=d.createContext({});function hJ(e){var t=e.children,n=Yt(e,pJ);return d.createElement(GL.Provider,{value:n},t)}var mJ=function(e){Ra(n,e);var t=Ma(n);function n(){return Rr(this,n),t.apply(this,arguments)}return Mr(n,[{key:"render",value:function(){return this.props.children}}]),n}(d.Component);function gJ(e){var t=d.useReducer(function(l){return l+1},0),n=_e(t,2),r=n[1],i=d.useRef(e),o=Kn(function(){return i.current}),a=Kn(function(l){i.current=typeof l=="function"?l(i.current):l,r()});return[o,a]}var Us="none",q0="appear",X0="enter",Y0="leave",T7="none",Ya="prepare",af="start",lf="active",w3="end",qL="prepared";function O7(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 vJ(e,t){var n={animationend:O7("Animation","AnimationEnd"),transitionend:O7("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}var yJ=vJ(co(),typeof window<"u"?window:{}),XL={};if(co()){var bJ=document.createElement("div");XL=bJ.style}var Q0={};function YL(e){if(Q0[e])return Q0[e];var t=yJ[e];if(t)for(var n=Object.keys(t),r=n.length,i=0;i<r;i+=1){var o=n[i];if(Object.prototype.hasOwnProperty.call(t,o)&&o in XL)return Q0[e]=t[o],Q0[e]}return""}var QL=YL("animationend"),ZL=YL("transitionend"),JL=!!(QL&&ZL),I7=QL||"animationend",k7=ZL||"transitionend";function $7(e,t){if(!e)return null;if(Nt(e)==="object"){var n=t.replace(/-\w/g,function(r){return r[1].toUpperCase()});return e[n]}return"".concat(e,"-").concat(t)}const CJ=function(e){var t=d.useRef();function n(i){i&&(i.removeEventListener(k7,e),i.removeEventListener(I7,e))}function r(i){t.current&&t.current!==i&&n(t.current),i&&i!==t.current&&(i.addEventListener(k7,e),i.addEventListener(I7,e),t.current=i)}return d.useEffect(function(){return function(){n(t.current)}},[]),[r,n]};var eD=co()?d.useLayoutEffect:d.useEffect;const SJ=function(){var e=d.useRef(null);function t(){kn.cancel(e.current)}function n(r){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;t();var o=kn(function(){i<=1?r({isCanceled:function(){return o!==e.current}}):n(r,i-1)});e.current=o}return d.useEffect(function(){return function(){t()}},[]),[n,t]};var EJ=[Ya,af,lf,w3],xJ=[Ya,qL],tD=!1,wJ=!0;function nD(e){return e===lf||e===w3}const _J=function(e,t,n){var r=Fu(T7),i=_e(r,2),o=i[0],a=i[1],l=SJ(),c=_e(l,2),u=c[0],p=c[1];function h(){a(Ya,!0)}var m=t?xJ:EJ;return eD(function(){if(o!==T7&&o!==w3){var g=m.indexOf(o),b=m[g+1],E=n(o);E===tD?a(b,!0):b&&u(function(x){function S(){x.isCanceled()||a(b,!0)}E===!0?S():Promise.resolve(E).then(S)})}},[e,o]),d.useEffect(function(){return function(){p()}},[]),[h,o]};function TJ(e,t,n,r){var i=r.motionEnter,o=i===void 0?!0:i,a=r.motionAppear,l=a===void 0?!0:a,c=r.motionLeave,u=c===void 0?!0:c,p=r.motionDeadline,h=r.motionLeaveImmediately,m=r.onAppearPrepare,g=r.onEnterPrepare,b=r.onLeavePrepare,E=r.onAppearStart,x=r.onEnterStart,S=r.onLeaveStart,C=r.onAppearActive,_=r.onEnterActive,O=r.onLeaveActive,k=r.onAppearEnd,T=r.onEnterEnd,I=r.onLeaveEnd,$=r.onVisibleChanged,M=Fu(),R=_e(M,2),j=R[0],D=R[1],L=gJ(Us),B=_e(L,2),H=B[0],W=B[1],z=Fu(null),V=_e(z,2),X=V[0],A=V[1],P=H(),Y=d.useRef(!1),U=d.useRef(null);function Q(){return n()}var ee=d.useRef(!1);function se(){W(Us),A(null,!0)}var ne=Kn(function(Te){var Ue=H();if(Ue!==Us){var Le=Q();if(!(Te&&!Te.deadline&&Te.target!==Le)){var je=ee.current,Ge;Ue===q0&&je?Ge=k==null?void 0:k(Le,Te):Ue===X0&&je?Ge=T==null?void 0:T(Le,Te):Ue===Y0&&je&&(Ge=I==null?void 0:I(Le,Te)),je&&Ge!==!1&&se()}}}),oe=CJ(ne),pe=_e(oe,1),be=pe[0],ue=function(Ue){switch(Ue){case q0:return J(J(J({},Ya,m),af,E),lf,C);case X0:return J(J(J({},Ya,g),af,x),lf,_);case Y0:return J(J(J({},Ya,b),af,S),lf,O);default:return{}}},de=d.useMemo(function(){return ue(P)},[P]),re=_J(P,!e,function(Te){if(Te===Ya){var Ue=de[Ya];return Ue?Ue(Q()):tD}if(Ae in de){var Le;A(((Le=de[Ae])===null||Le===void 0?void 0:Le.call(de,Q(),null))||null)}return Ae===lf&&P!==Us&&(be(Q()),p>0&&(clearTimeout(U.current),U.current=setTimeout(function(){ne({deadline:!0})},p))),Ae===qL&&se(),wJ}),me=_e(re,2),ge=me[0],Ae=me[1],De=nD(Ae);ee.current=De;var ze=d.useRef(null);eD(function(){if(!(Y.current&&ze.current===t)){D(t);var Te=Y.current;Y.current=!0;var Ue;!Te&&t&&l&&(Ue=q0),Te&&t&&o&&(Ue=X0),(Te&&!t&&u||!Te&&h&&!t&&u)&&(Ue=Y0);var Le=ue(Ue);Ue&&(e||Le[Ya])?(W(Ue),ge()):W(Us),ze.current=t}},[t]),d.useEffect(function(){(P===q0&&!l||P===X0&&!o||P===Y0&&!u)&&W(Us)},[l,o,u]),d.useEffect(function(){return function(){Y.current=!1,clearTimeout(U.current)}},[]);var et=d.useRef(!1);d.useEffect(function(){j&&(et.current=!0),j!==void 0&&P===Us&&((et.current||j)&&($==null||$(j)),et.current=!0)},[j,P]);var Ie=X;return de[Ya]&&Ae===af&&(Ie=te({transition:"none"},Ie)),[P,Ae,Ie,j??t]}function OJ(e){var t=e;Nt(e)==="object"&&(t=e.transitionSupport);function n(i,o){return!!(i.motionName&&t&&o!==!1)}var r=d.forwardRef(function(i,o){var a=i.visible,l=a===void 0?!0:a,c=i.removeOnLeave,u=c===void 0?!0:c,p=i.forceRender,h=i.children,m=i.motionName,g=i.leavedClassName,b=i.eventProps,E=d.useContext(GL),x=E.motion,S=n(i,x),C=d.useRef(),_=d.useRef();function O(){try{return C.current instanceof HTMLElement?C.current:Zp(_.current)}catch{return null}}var k=TJ(S,l,O,i),T=_e(k,4),I=T[0],$=T[1],M=T[2],R=T[3],j=d.useRef(R);R&&(j.current=!0);var D=d.useCallback(function(V){C.current=V,jh(o,V)},[o]),L,B=te(te({},b),{},{visible:l});if(!h)L=null;else if(I===Us)R?L=h(te({},B),D):!u&&j.current&&g?L=h(te(te({},B),{},{className:g}),D):p||!u&&!g?L=h(te(te({},B),{},{style:{display:"none"}}),D):L=null;else{var H;$===Ya?H="prepare":nD($)?H="active":$===af&&(H="start");var W=$7(m,"".concat(I,"-").concat(H));L=h(te(te({},B),{},{className:le($7(m,I),J(J({},W,W&&H),m,typeof m=="string")),style:M}),D)}if(d.isValidElement(L)&&al(L)){var z=Pc(L);z||(L=d.cloneElement(L,{ref:D}))}return d.createElement(mJ,{ref:_},L)});return r.displayName="CSSMotion",r}const la=OJ(JL);var jS="add",HS="keep",zS="remove",b4="removed";function IJ(e){var t;return e&&Nt(e)==="object"&&"key"in e?t=e:t={key:e},te(te({},t),{},{key:String(t.key)})}function WS(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(IJ)}function kJ(){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,o=WS(e),a=WS(t);o.forEach(function(u){for(var p=!1,h=r;h<i;h+=1){var m=a[h];if(m.key===u.key){r<h&&(n=n.concat(a.slice(r,h).map(function(g){return te(te({},g),{},{status:jS})})),r=h),n.push(te(te({},m),{},{status:HS})),r+=1,p=!0;break}}p||n.push(te(te({},u),{},{status:zS}))}),r<i&&(n=n.concat(a.slice(r).map(function(u){return te(te({},u),{},{status:jS})})));var l={};n.forEach(function(u){var p=u.key;l[p]=(l[p]||0)+1});var c=Object.keys(l).filter(function(u){return l[u]>1});return c.forEach(function(u){n=n.filter(function(p){var h=p.key,m=p.status;return h!==u||m!==zS}),n.forEach(function(p){p.key===u&&(p.status=HS)})}),n}var $J=["component","children","onVisibleChanged","onAllRemoved"],NJ=["status"],AJ=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function RJ(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:la,n=function(r){Ra(o,r);var i=Ma(o);function o(){var a;Rr(this,o);for(var l=arguments.length,c=new Array(l),u=0;u<l;u++)c[u]=arguments[u];return a=i.call.apply(i,[this].concat(c)),J(_t(a),"state",{keyEntities:[]}),J(_t(a),"removeKey",function(p){a.setState(function(h){var m=h.keyEntities.map(function(g){return g.key!==p?g:te(te({},g),{},{status:b4})});return{keyEntities:m}},function(){var h=a.state.keyEntities,m=h.filter(function(g){var b=g.status;return b!==b4}).length;m===0&&a.props.onAllRemoved&&a.props.onAllRemoved()})}),a}return Mr(o,[{key:"render",value:function(){var l=this,c=this.state.keyEntities,u=this.props,p=u.component,h=u.children,m=u.onVisibleChanged;u.onAllRemoved;var g=Yt(u,$J),b=p||d.Fragment,E={};return AJ.forEach(function(x){E[x]=g[x],delete g[x]}),delete g.keys,d.createElement(b,g,c.map(function(x,S){var C=x.status,_=Yt(x,NJ),O=C===jS||C===HS;return d.createElement(t,Ve({},E,{key:_.key,visible:O,eventProps:_,onVisibleChanged:function(T){m==null||m(T,{key:_.key}),T||l.removeKey(_.key)}}),function(k,T){return h(te(te({},k),{},{index:S}),T)})}))}}],[{key:"getDerivedStateFromProps",value:function(l,c){var u=l.keys,p=c.keyEntities,h=WS(u),m=kJ(p,h);return{keyEntities:m.filter(function(g){var b=p.find(function(E){var x=E.key;return g.key===x});return!(b&&b.status===b4&&g.status===zS)})}}}]),o}(d.Component);return J(n,"defaultProps",{component:"div"}),n}const _3=RJ(JL);function MJ(e){const{children:t}=e,[,n]=Fi(),{motion:r}=n,i=d.useRef(!1);return i.current=i.current||r===!1,i.current?d.createElement(hJ,{motion:r},t):t}const PJ=()=>null;var LJ=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 DJ=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];let ay,rD,iD,oD;function av(){return ay||qh}function FJ(){return rD||kb}function BJ(e){return Object.keys(e).some(t=>t.endsWith("Color"))}const jJ=e=>{const{prefixCls:t,iconPrefixCls:n,theme:r,holderRender:i}=e;t!==void 0&&(ay=t),n!==void 0&&(rD=n),"holderRender"in e&&(oD=i),r&&(BJ(r)?jZ(av(),r):iD=r)},aD=()=>({getPrefixCls:(e,t)=>t||(e?`${av()}-${e}`:av()),getIconPrefixCls:FJ,getRootPrefixCls:()=>ay||av(),getTheme:()=>iD,holderRender:oD}),HJ=e=>{const{children:t,csp:n,autoInsertSpaceInButton:r,alert:i,anchor:o,form:a,locale:l,componentSize:c,direction:u,space:p,splitter:h,virtual:m,dropdownMatchSelectWidth:g,popupMatchSelectWidth:b,popupOverflow:E,legacyLocale:x,parentContext:S,iconPrefixCls:C,theme:_,componentDisabled:O,segmented:k,statistic:T,spin:I,calendar:$,carousel:M,cascader:R,collapse:j,typography:D,checkbox:L,descriptions:B,divider:H,drawer:W,skeleton:z,steps:V,image:X,layout:A,list:P,mentions:Y,modal:U,progress:Q,result:ee,slider:se,breadcrumb:ne,menu:oe,pagination:pe,input:be,textArea:ue,empty:de,badge:re,radio:me,rate:ge,switch:Ae,transfer:De,avatar:ze,message:et,tag:Ie,table:Te,card:Ue,tabs:Le,timeline:je,timePicker:Ge,upload:qe,notification:Ce,tree:ke,colorPicker:We,datePicker:Pe,rangePicker:Be,flex:He,wave:Qe,dropdown:ie,warning:xe,tour:Ne,tooltip:$e,popover:Ye,popconfirm:ht,floatButtonGroup:It,variant:Jt,inputNumber:Vt,treeSelect:en}=e,rn=d.useCallback((tt,st)=>{const{prefixCls:at}=e;if(st)return st;const it=at||S.getPrefixCls("");return tt?`${it}-${tt}`:it},[S.getPrefixCls,e.prefixCls]),Gt=C||S.iconPrefixCls||kb,Ft=n||S.csp;sJ(Gt,Ft);const bt=fJ(_,S.theme,{prefixCls:rn("")}),gt={csp:Ft,autoInsertSpaceInButton:r,alert:i,anchor:o,locale:l||x,direction:u,space:p,splitter:h,virtual:m,popupMatchSelectWidth:b??g,popupOverflow:E,getPrefixCls:rn,iconPrefixCls:Gt,theme:bt,segmented:k,statistic:T,spin:I,calendar:$,carousel:M,cascader:R,collapse:j,typography:D,checkbox:L,descriptions:B,divider:H,drawer:W,skeleton:z,steps:V,image:X,input:be,textArea:ue,layout:A,list:P,mentions:Y,modal:U,progress:Q,result:ee,slider:se,breadcrumb:ne,menu:oe,pagination:pe,empty:de,badge:re,radio:me,rate:ge,switch:Ae,transfer:De,avatar:ze,message:et,tag:Ie,table:Te,card:Ue,tabs:Le,timeline:je,timePicker:Ge,upload:qe,notification:Ce,tree:ke,colorPicker:We,datePicker:Pe,rangePicker:Be,flex:He,wave:Qe,dropdown:ie,warning:xe,tour:Ne,tooltip:$e,popover:Ye,popconfirm:ht,floatButtonGroup:It,variant:Jt,inputNumber:Vt,treeSelect:en},ft=Object.assign({},S);Object.keys(gt).forEach(tt=>{gt[tt]!==void 0&&(ft[tt]=gt[tt])}),DJ.forEach(tt=>{const st=e[tt];st&&(ft[tt]=st)}),typeof r<"u"&&(ft.button=Object.assign({autoInsertSpace:r},ft.button));const he=Vu(()=>ft,ft,(tt,st)=>{const at=Object.keys(tt),it=Object.keys(st);return at.length!==it.length||at.some(nt=>tt[nt]!==st[nt])}),we=d.useMemo(()=>({prefixCls:Gt,csp:Ft}),[Gt,Ft]);let ve=d.createElement(d.Fragment,null,d.createElement(PJ,{dropdownMatchSelectWidth:g}),t);const Me=d.useMemo(()=>{var tt,st,at,it;return of(((tt=Pl.Form)===null||tt===void 0?void 0:tt.defaultValidateMessages)||{},((at=(st=he.locale)===null||st===void 0?void 0:st.Form)===null||at===void 0?void 0:at.defaultValidateMessages)||{},((it=he.form)===null||it===void 0?void 0:it.validateMessages)||{},(a==null?void 0:a.validateMessages)||{})},[he,a==null?void 0:a.validateMessages]);Object.keys(Me).length>0&&(ve=d.createElement(OL.Provider,{value:Me},ve)),l&&(ve=d.createElement(yZ,{locale:l,_ANT_MARK__:vZ},ve)),(Gt||Ft)&&(ve=d.createElement(b3.Provider,{value:we},ve)),c&&(ve=d.createElement(HZ,{size:c},ve)),ve=d.createElement(MJ,null,ve);const Je=d.useMemo(()=>{const tt=bt||{},{algorithm:st,token:at,components:it,cssVar:nt}=tt,ct=LJ(tt,["algorithm","token","components","cssVar"]),mt=st&&(!Array.isArray(st)||st.length>0)?yS(st):ML,St={};Object.entries(it||{}).forEach(Lt=>{let[Pt,vt]=Lt;const dt=Object.assign({},vt);"algorithm"in dt&&(dt.algorithm===!0?dt.theme=mt:(Array.isArray(dt.algorithm)||typeof dt.algorithm=="function")&&(dt.theme=yS(dt.algorithm)),delete dt.algorithm),St[Pt]=dt});const Zt=Object.assign(Object.assign({},Gh),at);return Object.assign(Object.assign({},ct),{theme:mt,token:Zt,components:St,override:Object.assign({override:Zt},St),cssVar:nt})},[bt]);return _&&(ve=d.createElement(PL.Provider,{value:Je},ve)),he.warning&&(ve=d.createElement(pZ.Provider,{value:he.warning},ve)),O!==void 0&&(ve=d.createElement(E3,{disabled:O},ve)),d.createElement(At.Provider,{value:he},ve)},Hl=e=>{const t=d.useContext(At),n=d.useContext(C3);return d.createElement(HJ,Object.assign({parentContext:t,legacyLocale:n},e))};Hl.ConfigContext=At;Hl.SizeContext=Du;Hl.config=jJ;Hl.useConfig=zZ;Object.defineProperty(Hl,"SizeContext",{get:()=>Du});var zJ={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 lD(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function WJ(e){return lD(e)instanceof ShadowRoot}function ly(e){return WJ(e)?lD(e):null}function UJ(e){return e.replace(/-(.)/g,function(t,n){return n.toUpperCase()})}function KJ(e,t){br(e,"[@ant-design/icons] ".concat(t))}function N7(e){return Nt(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(Nt(e.icon)==="object"||typeof e.icon=="function")}function A7(){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[UJ(n)]=r}return t},{})}function US(e,t,n){return n?fe.createElement(e.tag,te(te({key:t},A7(e.attrs)),n),(e.children||[]).map(function(r,i){return US(r,"".concat(t,"-").concat(e.tag,"-").concat(i))})):fe.createElement(e.tag,te({key:t},A7(e.attrs)),(e.children||[]).map(function(r,i){return US(r,"".concat(t,"-").concat(e.tag,"-").concat(i))}))}function sD(e){return Vh(e)[0]}function cD(e){return e?Array.isArray(e)?e:[e]:[]}var VJ=`
.anticon {
display: inline-flex;
align-items: center;
color: inherit;
font-style: normal;
line-height: 0;
text-align: center;
text-transform: none;
vertical-align: -0.125em;
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
.anticon > * {
line-height: 1;
}
.anticon svg {
display: inline-block;
}
.anticon::before {
display: none;
}
.anticon .anticon-icon {
display: block;
}
.anticon[tabindex] {
cursor: pointer;
}
.anticon-spin::before,
.anticon-spin {
display: inline-block;
-webkit-animation: loadingCircle 1s infinite linear;
animation: loadingCircle 1s infinite linear;
}
@-webkit-keyframes loadingCircle {
100% {
-webkit-transform: rotate(360deg);
transform: rotate(360deg);
}
}
@keyframes loadingCircle {
100% {
-webkit-transform: rotate(360deg);
transform: rotate(360deg);
}
}
`,GJ=function(t){var n=d.useContext(b3),r=n.csp,i=n.prefixCls,o=n.layer,a=VJ;i&&(a=a.replace(/anticon/g,i)),o&&(a="@layer ".concat(o,` {
`).concat(a,`
}`)),d.useEffect(function(){var l=t.current,c=ly(l);Nb(a,"@ant-design-icons",{prepend:!0,csp:r,attachTo:c})},[])},qJ=["icon","className","onClick","style","primaryColor","secondaryColor"],eh={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function XJ(e){var t=e.primaryColor,n=e.secondaryColor;eh.primaryColor=t,eh.secondaryColor=n||sD(t),eh.calculated=!!n}function YJ(){return te({},eh)}var c1=function(t){var n=t.icon,r=t.className,i=t.onClick,o=t.style,a=t.primaryColor,l=t.secondaryColor,c=Yt(t,qJ),u=d.useRef(),p=eh;if(a&&(p={primaryColor:a,secondaryColor:l||sD(a)}),GJ(u),KJ(N7(n),"icon should be icon definiton, but got ".concat(n)),!N7(n))return null;var h=n;return h&&typeof h.icon=="function"&&(h=te(te({},h),{},{icon:h.icon(p.primaryColor,p.secondaryColor)})),US(h.icon,"svg-".concat(h.name),te(te({className:r,onClick:i,style:o,"data-icon":h.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},c),{},{ref:u}))};c1.displayName="IconReact";c1.getTwoToneColors=YJ;c1.setTwoToneColors=XJ;function uD(e){var t=cD(e),n=_e(t,2),r=n[0],i=n[1];return c1.setTwoToneColors({primaryColor:r,secondaryColor:i})}function QJ(){var e=c1.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var ZJ=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];uD(zf.primary);var bn=d.forwardRef(function(e,t){var n=e.className,r=e.icon,i=e.spin,o=e.rotate,a=e.tabIndex,l=e.onClick,c=e.twoToneColor,u=Yt(e,ZJ),p=d.useContext(b3),h=p.prefixCls,m=h===void 0?"anticon":h,g=p.rootClassName,b=le(g,m,J(J({},"".concat(m,"-").concat(r.name),!!r.name),"".concat(m,"-spin"),!!i||r.name==="loading"),n),E=a;E===void 0&&l&&(E=-1);var x=o?{msTransform:"rotate(".concat(o,"deg)"),transform:"rotate(".concat(o,"deg)")}:void 0,S=cD(c),C=_e(S,2),_=C[0],O=C[1];return d.createElement("span",Ve({role:"img","aria-label":r.name},u,{ref:t,tabIndex:E,onClick:l,className:b}),d.createElement(c1,{icon:r,primaryColor:_,secondaryColor:O,style:x}))});bn.displayName="AntdIcon";bn.getTwoToneColor=QJ;bn.setTwoToneColor=uD;var JJ=function(t,n){return d.createElement(bn,Ve({},t,{ref:n,icon:zJ}))},wm=d.forwardRef(JJ),eee={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"},tee=function(t,n){return d.createElement(bn,Ve({},t,{ref:n,icon:eee}))},Gu=d.forwardRef(tee),nee={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"},ree=function(t,n){return d.createElement(bn,Ve({},t,{ref:n,icon:nee}))},qu=d.forwardRef(ree),iee={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"},oee=function(t,n){return d.createElement(bn,Ve({},t,{ref:n,icon:iee}))},Ab=d.forwardRef(oee),aee={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"},lee=function(t,n){return d.createElement(bn,Ve({},t,{ref:n,icon:aee}))},dD=d.forwardRef(lee),see=`accept acceptCharset accessKey action allowFullScreen allowTransparency
alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
charSet checked classID className colSpan cols content contentEditable contextMenu
controls coords crossOrigin data dateTime default defer dir disabled download draggable
encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
mediaGroup method min minLength multiple muted name noValidate nonce open
optimum pattern placeholder poster preload radioGroup readOnly rel required
reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
summary tabIndex target title type useMap value width wmode wrap`,cee=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,uee="".concat(see," ").concat(cee).split(/[\s\n]+/),dee="aria-",fee="data-";function R7(e,t){return e.indexOf(t)===0}function Oi(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=te({},t);var r={};return Object.keys(e).forEach(function(i){(n.aria&&(i==="role"||R7(i,dee))||n.data&&R7(i,fee)||n.attr&&uee.includes(i))&&(r[i]=e[i])}),r}function fD(e){return e&&fe.isValidElement(e)&&e.type===fe.Fragment}const pD=(e,t,n)=>fe.isValidElement(e)?fe.cloneElement(e,typeof n=="function"?n(e.props||{}):n):t;function vi(e,t){return pD(e,e,t)}const M7=e=>typeof e=="object"&&e!=null&&e.nodeType===1,P7=(e,t)=>(!t||e!=="hidden")&&e!=="visible"&&e!=="clip",C4=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){const n=getComputedStyle(e,null);return P7(n.overflowY,t)||P7(n.overflowX,t)||(r=>{const i=(o=>{if(!o.ownerDocument||!o.ownerDocument.defaultView)return null;try{return o.ownerDocument.defaultView.frameElement}catch{return null}})(r);return!!i&&(i.clientHeight<r.scrollHeight||i.clientWidth<r.scrollWidth)})(e)}return!1},Z0=(e,t,n,r,i,o,a,l)=>o<e&&a>t||o>e&&a<t?0:o<=e&&l<=n||a>=t&&l>=n?o-e-r:a>t&&l<n||o<e&&l>n?a-t+i:0,pee=e=>{const t=e.parentElement;return t??(e.getRootNode().host||null)},L7=(e,t)=>{var n,r,i,o;if(typeof document>"u")return[];const{scrollMode:a,block:l,inline:c,boundary:u,skipOverflowHiddenElements:p}=t,h=typeof u=="function"?u:W=>W!==u;if(!M7(e))throw new TypeError("Invalid target");const m=document.scrollingElement||document.documentElement,g=[];let b=e;for(;M7(b)&&h(b);){if(b=pee(b),b===m){g.push(b);break}b!=null&&b===document.body&&C4(b)&&!C4(document.documentElement)||b!=null&&C4(b,p)&&g.push(b)}const E=(r=(n=window.visualViewport)==null?void 0:n.width)!=null?r:innerWidth,x=(o=(i=window.visualViewport)==null?void 0:i.height)!=null?o:innerHeight,{scrollX:S,scrollY:C}=window,{height:_,width:O,top:k,right:T,bottom:I,left:$}=e.getBoundingClientRect(),{top:M,right:R,bottom:j,left:D}=(W=>{const z=window.getComputedStyle(W);return{top:parseFloat(z.scrollMarginTop)||0,right:parseFloat(z.scrollMarginRight)||0,bottom:parseFloat(z.scrollMarginBottom)||0,left:parseFloat(z.scrollMarginLeft)||0}})(e);let L=l==="start"||l==="nearest"?k-M:l==="end"?I+j:k+_/2-M+j,B=c==="center"?$+O/2-D+R:c==="end"?T+R:$-D;const H=[];for(let W=0;W<g.length;W++){const z=g[W],{height:V,width:X,top:A,right:P,bottom:Y,left:U}=z.getBoundingClientRect();if(a==="if-needed"&&k>=0&&$>=0&&I<=x&&T<=E&&k>=A&&I<=Y&&$>=U&&T<=P)return H;const Q=getComputedStyle(z),ee=parseInt(Q.borderLeftWidth,10),se=parseInt(Q.borderTopWidth,10),ne=parseInt(Q.borderRightWidth,10),oe=parseInt(Q.borderBottomWidth,10);let pe=0,be=0;const ue="offsetWidth"in z?z.offsetWidth-z.clientWidth-ee-ne:0,de="offsetHeight"in z?z.offsetHeight-z.clientHeight-se-oe:0,re="offsetWidth"in z?z.offsetWidth===0?0:X/z.offsetWidth:0,me="offsetHeight"in z?z.offsetHeight===0?0:V/z.offsetHeight:0;if(m===z)pe=l==="start"?L:l==="end"?L-x:l==="nearest"?Z0(C,C+x,x,se,oe,C+L,C+L+_,_):L-x/2,be=c==="start"?B:c==="center"?B-E/2:c==="end"?B-E:Z0(S,S+E,E,ee,ne,S+B,S+B+O,O),pe=Math.max(0,pe+C),be=Math.max(0,be+S);else{pe=l==="start"?L-A-se:l==="end"?L-Y+oe+de:l==="nearest"?Z0(A,Y,V,se,oe+de,L,L+_,_):L-(A+V/2)+de/2,be=c==="start"?B-U-ee:c==="center"?B-(U+X/2)+ue/2:c==="end"?B-P+ne+ue:Z0(U,P,X,ee,ne+ue,B,B+O,O);const{scrollLeft:ge,scrollTop:Ae}=z;pe=me===0?0:Math.max(0,Math.min(Ae+pe/me,z.scrollHeight-V/me+de)),be=re===0?0:Math.max(0,Math.min(ge+be/re,z.scrollWidth-X/re+ue)),L+=Ae-pe,B+=ge-be}H.push({el:z,top:pe,left:be})}return H},hee=e=>e===!1?{block:"end",inline:"nearest"}:(t=>t===Object(t)&&Object.keys(t).length!==0)(e)?e:{block:"start",inline:"nearest"};function mee(e,t){if(!e.isConnected||!(i=>{let o=i;for(;o&&o.parentNode;){if(o.parentNode===document)return!0;o=o.parentNode instanceof ShadowRoot?o.parentNode.host:o.parentNode}return!1})(e))return;const n=(i=>{const o=window.getComputedStyle(i);return{top:parseFloat(o.scrollMarginTop)||0,right:parseFloat(o.scrollMarginRight)||0,bottom:parseFloat(o.scrollMarginBottom)||0,left:parseFloat(o.scrollMarginLeft)||0}})(e);if((i=>typeof i=="object"&&typeof i.behavior=="function")(t))return t.behavior(L7(e,t));const r=typeof t=="boolean"||t==null?void 0:t.behavior;for(const{el:i,top:o,left:a}of L7(e,hee(t))){const l=o-n.top+n.bottom,c=a-n.left+n.right;i.scroll({top:l,left:c,behavior:r})}}function KS(e){return e!=null&&e===e.window}const gee=e=>{var t,n;if(typeof window>"u")return 0;let r=0;return KS(e)?r=e.pageYOffset:e instanceof Document?r=e.documentElement.scrollTop:(e instanceof HTMLElement||e)&&(r=e.scrollTop),e&&!KS(e)&&typeof r!="number"&&(r=(n=((t=e.ownerDocument)!==null&&t!==void 0?t:e).documentElement)===null||n===void 0?void 0:n.scrollTop),r};function vee(e,t,n,r){const i=n-t;return e/=r/2,e<1?i/2*e*e*e+t:i/2*((e-=2)*e*e+2)+t}function yee(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{getContainer:n=()=>window,callback:r,duration:i=450}=t,o=n(),a=gee(o),l=Date.now(),c=()=>{const p=Date.now()-l,h=vee(p>i?i:p,a,e,i);KS(o)?o.scrollTo(window.pageXOffset,h):o instanceof Document||o.constructor.name==="HTMLDocument"?o.documentElement.scrollTop=h:o.scrollTop=h,p<i?kn(c):typeof r=="function"&&r()};kn(c)}const Gr=e=>{const[,,,,t]=Fi();return t?`${e}-css-var`:""};var lt={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(t){var n=t.keyCode;if(t.altKey&&!t.ctrlKey||t.metaKey||n>=lt.F1&&n<=lt.F12)return!1;switch(n){case lt.ALT:case lt.CAPS_LOCK:case lt.CONTEXT_MENU:case lt.CTRL:case lt.DOWN:case lt.END:case lt.ESC:case lt.HOME:case lt.INSERT:case lt.LEFT:case lt.MAC_FF_META:case lt.META:case lt.NUMLOCK:case lt.NUM_CENTER:case lt.PAGE_DOWN:case lt.PAGE_UP:case lt.PAUSE:case lt.PRINT_SCREEN:case lt.RIGHT:case lt.SHIFT:case lt.UP:case lt.WIN_KEY:case lt.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(t){if(t>=lt.ZERO&&t<=lt.NINE||t>=lt.NUM_ZERO&&t<=lt.NUM_MULTIPLY||t>=lt.A&&t<=lt.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&t===0)return!0;switch(t){case lt.SPACE:case lt.QUESTION_MARK:case lt.NUM_PLUS:case lt.NUM_MINUS:case lt.NUM_PERIOD:case lt.NUM_DIVISION:case lt.SEMICOLON:case lt.DASH:case lt.EQUALS:case lt.COMMA:case lt.PERIOD:case lt.SLASH:case lt.APOSTROPHE:case lt.SINGLE_QUOTE:case lt.OPEN_SQUARE_BRACKET:case lt.BACKSLASH:case lt.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},hD=d.forwardRef(function(e,t){var n=e.prefixCls,r=e.style,i=e.className,o=e.duration,a=o===void 0?4.5:o,l=e.showProgress,c=e.pauseOnHover,u=c===void 0?!0:c,p=e.eventKey,h=e.content,m=e.closable,g=e.closeIcon,b=g===void 0?"x":g,E=e.props,x=e.onClick,S=e.onNoticeClose,C=e.times,_=e.hovering,O=d.useState(!1),k=_e(O,2),T=k[0],I=k[1],$=d.useState(0),M=_e($,2),R=M[0],j=M[1],D=d.useState(0),L=_e(D,2),B=L[0],H=L[1],W=_||T,z=a>0&&l,V=function(){S(p)},X=function(ee){(ee.key==="Enter"||ee.code==="Enter"||ee.keyCode===lt.ENTER)&&V()};d.useEffect(function(){if(!W&&a>0){var Q=Date.now()-B,ee=setTimeout(function(){V()},a*1e3-B);return function(){u&&clearTimeout(ee),H(Date.now()-Q)}}},[a,W,C]),d.useEffect(function(){if(!W&&z&&(u||B===0)){var Q=performance.now(),ee,se=function ne(){cancelAnimationFrame(ee),ee=requestAnimationFrame(function(oe){var pe=oe+B-Q,be=Math.min(pe/(a*1e3),1);j(be*100),be<1&&ne()})};return se(),function(){u&&cancelAnimationFrame(ee)}}},[a,B,W,z,C]);var A=d.useMemo(function(){return Nt(m)==="object"&&m!==null?m:m?{closeIcon:b}:{}},[m,b]),P=Oi(A,!0),Y=100-(!R||R<0?0:R>100?100:R),U="".concat(n,"-notice");return d.createElement("div",Ve({},E,{ref:t,className:le(U,i,J({},"".concat(U,"-closable"),m)),style:r,onMouseEnter:function(ee){var se;I(!0),E==null||(se=E.onMouseEnter)===null||se===void 0||se.call(E,ee)},onMouseLeave:function(ee){var se;I(!1),E==null||(se=E.onMouseLeave)===null||se===void 0||se.call(E,ee)},onClick:x}),d.createElement("div",{className:"".concat(U,"-content")},h),m&&d.createElement("a",Ve({tabIndex:0,className:"".concat(U,"-close"),onKeyDown:X,"aria-label":"Close"},P,{onClick:function(ee){ee.preventDefault(),ee.stopPropagation(),V()}}),A.closeIcon),z&&d.createElement("progress",{className:"".concat(U,"-progress"),max:"100",value:Y},Y+"%"))}),mD=fe.createContext({}),bee=function(t){var n=t.children,r=t.classNames;return fe.createElement(mD.Provider,{value:{classNames:r}},n)},D7=8,F7=3,B7=16,Cee=function(t){var n={offset:D7,threshold:F7,gap:B7};if(t&&Nt(t)==="object"){var r,i,o;n.offset=(r=t.offset)!==null&&r!==void 0?r:D7,n.threshold=(i=t.threshold)!==null&&i!==void 0?i:F7,n.gap=(o=t.gap)!==null&&o!==void 0?o:B7}return[!!t,n]},See=["className","style","classNames","styles"],Eee=function(t){var n=t.configList,r=t.placement,i=t.prefixCls,o=t.className,a=t.style,l=t.motion,c=t.onAllNoticeRemoved,u=t.onNoticeClose,p=t.stack,h=d.useContext(mD),m=h.classNames,g=d.useRef({}),b=d.useState(null),E=_e(b,2),x=E[0],S=E[1],C=d.useState([]),_=_e(C,2),O=_[0],k=_[1],T=n.map(function(W){return{config:W,key:String(W.key)}}),I=Cee(p),$=_e(I,2),M=$[0],R=$[1],j=R.offset,D=R.threshold,L=R.gap,B=M&&(O.length>0||T.length<=D),H=typeof l=="function"?l(r):l;return d.useEffect(function(){M&&O.length>1&&k(function(W){return W.filter(function(z){return T.some(function(V){var X=V.key;return z===X})})})},[O,T,M]),d.useEffect(function(){var W;if(M&&g.current[(W=T[T.length-1])===null||W===void 0?void 0:W.key]){var z;S(g.current[(z=T[T.length-1])===null||z===void 0?void 0:z.key])}},[T,M]),fe.createElement(_3,Ve({key:r,className:le(i,"".concat(i,"-").concat(r),m==null?void 0:m.list,o,J(J({},"".concat(i,"-stack"),!!M),"".concat(i,"-stack-expanded"),B)),style:a,keys:T,motionAppear:!0},H,{onAllRemoved:function(){c(r)}}),function(W,z){var V=W.config,X=W.className,A=W.style,P=W.index,Y=V,U=Y.key,Q=Y.times,ee=String(U),se=V,ne=se.className,oe=se.style,pe=se.classNames,be=se.styles,ue=Yt(se,See),de=T.findIndex(function(je){return je.key===ee}),re={};if(M){var me=T.length-1-(de>-1?de:P-1),ge=r==="top"||r==="bottom"?"-50%":"0";if(me>0){var Ae,De,ze;re.height=B?(Ae=g.current[ee])===null||Ae===void 0?void 0:Ae.offsetHeight:x==null?void 0:x.offsetHeight;for(var et=0,Ie=0;Ie<me;Ie++){var Te;et+=((Te=g.current[T[T.length-1-Ie].key])===null||Te===void 0?void 0:Te.offsetHeight)+L}var Ue=(B?et:me*j)*(r.startsWith("top")?1:-1),Le=!B&&x!==null&&x!==void 0&&x.offsetWidth&&(De=g.current[ee])!==null&&De!==void 0&&De.offsetWidth?((x==null?void 0:x.offsetWidth)-j*2*(me<3?me:3))/((ze=g.current[ee])===null||ze===void 0?void 0:ze.offsetWidth):1;re.transform="translate3d(".concat(ge,", ").concat(Ue,"px, 0) scaleX(").concat(Le,")")}else re.transform="translate3d(".concat(ge,", 0, 0)")}return fe.createElement("div",{ref:z,className:le("".concat(i,"-notice-wrapper"),X,pe==null?void 0:pe.wrapper),style:te(te(te({},A),re),be==null?void 0:be.wrapper),onMouseEnter:function(){return k(function(Ge){return Ge.includes(ee)?Ge:[].concat(Xe(Ge),[ee])})},onMouseLeave:function(){return k(function(Ge){return Ge.filter(function(qe){return qe!==ee})})}},fe.createElement(hD,Ve({},ue,{ref:function(Ge){de>-1?g.current[ee]=Ge:delete g.current[ee]},prefixCls:i,classNames:pe,styles:be,className:le(ne,m==null?void 0:m.notice),style:oe,times:Q,key:U,eventKey:U,onNoticeClose:u,hovering:M&&O.length>0})))})},xee=d.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-notification":n,i=e.container,o=e.motion,a=e.maxCount,l=e.className,c=e.style,u=e.onAllRemoved,p=e.stack,h=e.renderNotifications,m=d.useState([]),g=_e(m,2),b=g[0],E=g[1],x=function(M){var R,j=b.find(function(D){return D.key===M});j==null||(R=j.onClose)===null||R===void 0||R.call(j),E(function(D){return D.filter(function(L){return L.key!==M})})};d.useImperativeHandle(t,function(){return{open:function(M){E(function(R){var j=Xe(R),D=j.findIndex(function(H){return H.key===M.key}),L=te({},M);if(D>=0){var B;L.times=(((B=R[D])===null||B===void 0?void 0:B.times)||0)+1,j[D]=L}else L.times=0,j.push(L);return a>0&&j.length>a&&(j=j.slice(-a)),j})},close:function(M){x(M)},destroy:function(){E([])}}});var S=d.useState({}),C=_e(S,2),_=C[0],O=C[1];d.useEffect(function(){var $={};b.forEach(function(M){var R=M.placement,j=R===void 0?"topRight":R;j&&($[j]=$[j]||[],$[j].push(M))}),Object.keys(_).forEach(function(M){$[M]=$[M]||[]}),O($)},[b]);var k=function(M){O(function(R){var j=te({},R),D=j[M]||[];return D.length||delete j[M],j})},T=d.useRef(!1);if(d.useEffect(function(){Object.keys(_).length>0?T.current=!0:T.current&&(u==null||u(),T.current=!1)},[_]),!i)return null;var I=Object.keys(_);return Ta.createPortal(d.createElement(d.Fragment,null,I.map(function($){var M=_[$],R=d.createElement(Eee,{key:$,configList:M,placement:$,prefixCls:r,className:l==null?void 0:l($),style:c==null?void 0:c($),motion:o,onNoticeClose:x,onAllNoticeRemoved:k,stack:p});return h?h(R,{prefixCls:r,key:$}):R})),i)}),wee=["getContainer","motion","prefixCls","maxCount","className","style","onAllRemoved","stack","renderNotifications"],_ee=function(){return document.body},j7=0;function Tee(){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(o){var a=i[o];a!==void 0&&(e[o]=a)})}),e}function Oee(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.getContainer,n=t===void 0?_ee:t,r=e.motion,i=e.prefixCls,o=e.maxCount,a=e.className,l=e.style,c=e.onAllRemoved,u=e.stack,p=e.renderNotifications,h=Yt(e,wee),m=d.useState(),g=_e(m,2),b=g[0],E=g[1],x=d.useRef(),S=d.createElement(xee,{container:b,ref:x,prefixCls:i,motion:r,maxCount:o,className:a,style:l,onAllRemoved:c,stack:u,renderNotifications:p}),C=d.useState([]),_=_e(C,2),O=_[0],k=_[1],T=d.useMemo(function(){return{open:function($){var M=Tee(h,$);(M.key===null||M.key===void 0)&&(M.key="rc-notification-".concat(j7),j7+=1),k(function(R){return[].concat(Xe(R),[{type:"open",config:M}])})},close:function($){k(function(M){return[].concat(Xe(M),[{type:"close",key:$}])})},destroy:function(){k(function($){return[].concat(Xe($),[{type:"destroy"}])})}}},[]);return d.useEffect(function(){E(n())}),d.useEffect(function(){x.current&&O.length&&(O.forEach(function(I){switch(I.type){case"open":x.current.open(I.config);break;case"close":x.current.close(I.key);break;case"destroy":x.current.destroy();break}}),k(function(I){return I.filter(function($){return!O.includes($)})}))},[O]),[T,S]}var Iee={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"},kee=function(t,n){return d.createElement(bn,Ve({},t,{ref:n,icon:Iee}))},Ec=d.forwardRef(kee);const Rb=fe.createContext(void 0),Ks=100,$ee=10,gD=Ks*$ee,vD={Modal:Ks,Drawer:Ks,Popover:Ks,Popconfirm:Ks,Tooltip:Ks,Tour:Ks,FloatButton:Ks},Nee={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function Aee(e){return e in vD}const _m=(e,t)=>{const[,n]=Fi(),r=fe.useContext(Rb),i=Aee(e);let o;if(t!==void 0)o=[t,t];else{let a=r??0;i?a+=(r?0:n.zIndexPopupBase)+vD[e]:a+=Nee[e],o=[r===void 0?t:a,a]}return o},Ree=e=>{const{componentCls:t,iconCls:n,boxShadow:r,colorText:i,colorSuccess:o,colorError:a,colorWarning:l,colorInfo:c,fontSizeLG:u,motionEaseInOutCirc:p,motionDurationSlow:h,marginXS:m,paddingXS:g,borderRadiusLG:b,zIndexPopup:E,contentPadding:x,contentBg:S}=e,C=`${t}-notice`,_=new wn("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:g,transform:"translateY(0)",opacity:1}}),O=new wn("MessageMoveOut",{"0%":{maxHeight:e.height,padding:g,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}}),k={padding:g,textAlign:"center",[`${t}-custom-content`]:{display:"flex",alignItems:"center"},[`${t}-custom-content > ${n}`]:{marginInlineEnd:m,fontSize:u},[`${C}-content`]:{display:"inline-block",padding:x,background:S,borderRadius:b,boxShadow:r,pointerEvents:"all"},[`${t}-success > ${n}`]:{color:o},[`${t}-error > ${n}`]:{color:a},[`${t}-warning > ${n}`]:{color:l},[`${t}-info > ${n},
${t}-loading > ${n}`]:{color:c}};return[{[t]:Object.assign(Object.assign({},zn(e)),{color:i,position:"fixed",top:m,width:"100%",pointerEvents:"none",zIndex:E,[`${t}-move-up`]:{animationFillMode:"forwards"},[`
${t}-move-up-appear,
${t}-move-up-enter
`]:{animationName:_,animationDuration:h,animationPlayState:"paused",animationTimingFunction:p},[`
${t}-move-up-appear${t}-move-up-appear-active,
${t}-move-up-enter${t}-move-up-enter-active
`]:{animationPlayState:"running"},[`${t}-move-up-leave`]:{animationName:O,animationDuration:h,animationPlayState:"paused",animationTimingFunction:p},[`${t}-move-up-leave${t}-move-up-leave-active`]:{animationPlayState:"running"},"&-rtl":{direction:"rtl",span:{direction:"rtl"}}})},{[t]:{[`${C}-wrapper`]:Object.assign({},k)}},{[`${t}-notice-pure-panel`]:Object.assign(Object.assign({},k),{padding:0,textAlign:"start"})}]},Mee=e=>({zIndexPopup:e.zIndexPopupBase+gD+10,contentBg:e.colorBgElevated,contentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`}),yD=Fn("Message",e=>{const t=hn(e,{height:150});return[Ree(t)]},Mee);var Pee=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 Lee={info:d.createElement(dD,null),success:d.createElement(wm,null),error:d.createElement(Gu,null),warning:d.createElement(Ab,null),loading:d.createElement(Ec,null)},bD=e=>{let{prefixCls:t,type:n,icon:r,children:i}=e;return d.createElement("div",{className:le(`${t}-custom-content`,`${t}-${n}`)},r||Lee[n],d.createElement("span",null,i))},Dee=e=>{const{prefixCls:t,className:n,type:r,icon:i,content:o}=e,a=Pee(e,["prefixCls","className","type","icon","content"]),{getPrefixCls:l}=d.useContext(At),c=t||l("message"),u=Gr(c),[p,h,m]=yD(c,u);return p(d.createElement(hD,Object.assign({},a,{prefixCls:c,className:le(n,h,`${c}-notice-pure-panel`,m,u),eventKey:"pure",duration:null,content:d.createElement(bD,{prefixCls:c,type:r,icon:i},o)})))};function Fee(e,t){return{motionName:t??`${e}-move-up`}}function T3(e){let t;const n=new Promise(i=>{t=e(()=>{i(!0)})}),r=()=>{t==null||t()};return r.then=(i,o)=>n.then(i,o),r.promise=n,r}var Bee=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 jee=8,Hee=3,zee=e=>{let{children:t,prefixCls:n}=e;const r=Gr(n),[i,o,a]=yD(n,r);return i(d.createElement(bee,{classNames:{list:le(o,a,r)}},t))},Wee=(e,t)=>{let{prefixCls:n,key:r}=t;return d.createElement(zee,{prefixCls:n,key:r},e)},Uee=d.forwardRef((e,t)=>{const{top:n,prefixCls:r,getContainer:i,maxCount:o,duration:a=Hee,rtl:l,transitionName:c,onAllRemoved:u}=e,{getPrefixCls:p,getPopupContainer:h,message:m,direction:g}=d.useContext(At),b=r||p("message"),E=()=>({left:"50%",transform:"translateX(-50%)",top:n??jee}),x=()=>le({[`${b}-rtl`]:l??g==="rtl"}),S=()=>Fee(b,c),C=d.createElement("span",{className:`${b}-close-x`},d.createElement(qu,{className:`${b}-close-icon`})),[_,O]=Oee({prefixCls:b,style:E,className:x,motion:S,closable:!1,closeIcon:C,duration:a,getContainer:()=>(i==null?void 0:i())||(h==null?void 0:h())||document.body,maxCount:o,onAllRemoved:u,renderNotifications:Wee});return d.useImperativeHandle(t,()=>Object.assign(Object.assign({},_),{prefixCls:b,message:m})),O});let H7=0;function CD(e){const t=d.useRef(null);return Lc(),[d.useMemo(()=>{const r=c=>{var u;(u=t.current)===null||u===void 0||u.close(c)},i=c=>{if(!t.current){const T=()=>{};return T.then=()=>{},T}const{open:u,prefixCls:p,message:h}=t.current,m=`${p}-notice`,{content:g,icon:b,type:E,key:x,className:S,style:C,onClose:_}=c,O=Bee(c,["content","icon","type","key","className","style","onClose"]);let k=x;return k==null&&(H7+=1,k=`antd-message-${H7}`),T3(T=>(u(Object.assign(Object.assign({},O),{key:k,content:d.createElement(bD,{prefixCls:p,type:E,icon:b},g),placement:"top",className:le(E&&`${m}-${E}`,S,h==null?void 0:h.className),style:Object.assign(Object.assign({},h==null?void 0:h.style),C),onClose:()=>{_==null||_(),T()}})),()=>{r(k)}))},a={open:i,destroy:c=>{var u;c!==void 0?r(c):(u=t.current)===null||u===void 0||u.destroy()}};return["info","success","warning","error","loading"].forEach(c=>{const u=(p,h,m)=>{let g;p&&typeof p=="object"&&"content"in p?g=p:g={content:p};let b,E;typeof h=="function"?E=h:(b=h,E=m);const x=Object.assign(Object.assign({onClose:E,duration:b},g),{type:c});return i(x)};a[c]=u}),a},[]),d.createElement(Uee,Object.assign({key:"message-holder"},e,{ref:t}))]}function Kee(e){return CD(e)}function Vee(){const[e,t]=d.useState([]),n=d.useCallback(r=>(t(i=>[].concat(Xe(i),[r])),()=>{t(i=>i.filter(o=>o!==r))}),[]);return[e,n]}function lr(){lr=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(W,z,V){W[z]=V.value},o=typeof Symbol=="function"?Symbol:{},a=o.iterator||"@@iterator",l=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(W,z,V){return Object.defineProperty(W,z,{value:V,enumerable:!0,configurable:!0,writable:!0}),W[z]}try{u({},"")}catch{u=function(V,X,A){return V[X]=A}}function p(W,z,V,X){var A=z&&z.prototype instanceof S?z:S,P=Object.create(A.prototype),Y=new B(X||[]);return i(P,"_invoke",{value:R(W,V,Y)}),P}function h(W,z,V){try{return{type:"normal",arg:W.call(z,V)}}catch(X){return{type:"throw",arg:X}}}t.wrap=p;var m="suspendedStart",g="suspendedYield",b="executing",E="completed",x={};function S(){}function C(){}function _(){}var O={};u(O,a,function(){return this});var k=Object.getPrototypeOf,T=k&&k(k(H([])));T&&T!==n&&r.call(T,a)&&(O=T);var I=_.prototype=S.prototype=Object.create(O);function $(W){["next","throw","return"].forEach(function(z){u(W,z,function(V){return this._invoke(z,V)})})}function M(W,z){function V(A,P,Y,U){var Q=h(W[A],W,P);if(Q.type!=="throw"){var ee=Q.arg,se=ee.value;return se&&Nt(se)=="object"&&r.call(se,"__await")?z.resolve(se.__await).then(function(ne){V("next",ne,Y,U)},function(ne){V("throw",ne,Y,U)}):z.resolve(se).then(function(ne){ee.value=ne,Y(ee)},function(ne){return V("throw",ne,Y,U)})}U(Q.arg)}var X;i(this,"_invoke",{value:function(P,Y){function U(){return new z(function(Q,ee){V(P,Y,Q,ee)})}return X=X?X.then(U,U):U()}})}function R(W,z,V){var X=m;return function(A,P){if(X===b)throw Error("Generator is already running");if(X===E){if(A==="throw")throw P;return{value:e,done:!0}}for(V.method=A,V.arg=P;;){var Y=V.delegate;if(Y){var U=j(Y,V);if(U){if(U===x)continue;return U}}if(V.method==="next")V.sent=V._sent=V.arg;else if(V.method==="throw"){if(X===m)throw X=E,V.arg;V.dispatchException(V.arg)}else V.method==="return"&&V.abrupt("return",V.arg);X=b;var Q=h(W,z,V);if(Q.type==="normal"){if(X=V.done?E:g,Q.arg===x)continue;return{value:Q.arg,done:V.done}}Q.type==="throw"&&(X=E,V.method="throw",V.arg=Q.arg)}}}function j(W,z){var V=z.method,X=W.iterator[V];if(X===e)return z.delegate=null,V==="throw"&&W.iterator.return&&(z.method="return",z.arg=e,j(W,z),z.method==="throw")||V!=="return"&&(z.method="throw",z.arg=new TypeError("The iterator does not provide a '"+V+"' method")),x;var A=h(X,W.iterator,z.arg);if(A.type==="throw")return z.method="throw",z.arg=A.arg,z.delegate=null,x;var P=A.arg;return P?P.done?(z[W.resultName]=P.value,z.next=W.nextLoc,z.method!=="return"&&(z.method="next",z.arg=e),z.delegate=null,x):P:(z.method="throw",z.arg=new TypeError("iterator result is not an object"),z.delegate=null,x)}function D(W){var z={tryLoc:W[0]};1 in W&&(z.catchLoc=W[1]),2 in W&&(z.finallyLoc=W[2],z.afterLoc=W[3]),this.tryEntries.push(z)}function L(W){var z=W.completion||{};z.type="normal",delete z.arg,W.completion=z}function B(W){this.tryEntries=[{tryLoc:"root"}],W.forEach(D,this),this.reset(!0)}function H(W){if(W||W===""){var z=W[a];if(z)return z.call(W);if(typeof W.next=="function")return W;if(!isNaN(W.length)){var V=-1,X=function A(){for(;++V<W.length;)if(r.call(W,V))return A.value=W[V],A.done=!1,A;return A.value=e,A.done=!0,A};return X.next=X}}throw new TypeError(Nt(W)+" is not iterable")}return C.prototype=_,i(I,"constructor",{value:_,configurable:!0}),i(_,"constructor",{value:C,configurable:!0}),C.displayName=u(_,c,"GeneratorFunction"),t.isGeneratorFunction=function(W){var z=typeof W=="function"&&W.constructor;return!!z&&(z===C||(z.displayName||z.name)==="GeneratorFunction")},t.mark=function(W){return Object.setPrototypeOf?Object.setPrototypeOf(W,_):(W.__proto__=_,u(W,c,"GeneratorFunction")),W.prototype=Object.create(I),W},t.awrap=function(W){return{__await:W}},$(M.prototype),u(M.prototype,l,function(){return this}),t.AsyncIterator=M,t.async=function(W,z,V,X,A){A===void 0&&(A=Promise);var P=new M(p(W,z,V,X),A);return t.isGeneratorFunction(z)?P:P.next().then(function(Y){return Y.done?Y.value:P.next()})},$(I),u(I,c,"Generator"),u(I,a,function(){return this}),u(I,"toString",function(){return"[object Generator]"}),t.keys=function(W){var z=Object(W),V=[];for(var X in z)V.push(X);return V.reverse(),function A(){for(;V.length;){var P=V.pop();if(P in z)return A.value=P,A.done=!1,A}return A.done=!0,A}},t.values=H,B.prototype={constructor:B,reset:function(z){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(L),!z)for(var V in this)V.charAt(0)==="t"&&r.call(this,V)&&!isNaN(+V.slice(1))&&(this[V]=e)},stop:function(){this.done=!0;var z=this.tryEntries[0].completion;if(z.type==="throw")throw z.arg;return this.rval},dispatchException:function(z){if(this.done)throw z;var V=this;function X(ee,se){return Y.type="throw",Y.arg=z,V.next=ee,se&&(V.method="next",V.arg=e),!!se}for(var A=this.tryEntries.length-1;A>=0;--A){var P=this.tryEntries[A],Y=P.completion;if(P.tryLoc==="root")return X("end");if(P.tryLoc<=this.prev){var U=r.call(P,"catchLoc"),Q=r.call(P,"finallyLoc");if(U&&Q){if(this.prev<P.catchLoc)return X(P.catchLoc,!0);if(this.prev<P.finallyLoc)return X(P.finallyLoc)}else if(U){if(this.prev<P.catchLoc)return X(P.catchLoc,!0)}else{if(!Q)throw Error("try statement without catch or finally");if(this.prev<P.finallyLoc)return X(P.finallyLoc)}}}},abrupt:function(z,V){for(var X=this.tryEntries.length-1;X>=0;--X){var A=this.tryEntries[X];if(A.tryLoc<=this.prev&&r.call(A,"finallyLoc")&&this.prev<A.finallyLoc){var P=A;break}}P&&(z==="break"||z==="continue")&&P.tryLoc<=V&&V<=P.finallyLoc&&(P=null);var Y=P?P.completion:{};return Y.type=z,Y.arg=V,P?(this.method="next",this.next=P.finallyLoc,x):this.complete(Y)},complete:function(z,V){if(z.type==="throw")throw z.arg;return z.type==="break"||z.type==="continue"?this.next=z.arg:z.type==="return"?(this.rval=this.arg=z.arg,this.method="return",this.next="end"):z.type==="normal"&&V&&(this.next=V),x},finish:function(z){for(var V=this.tryEntries.length-1;V>=0;--V){var X=this.tryEntries[V];if(X.finallyLoc===z)return this.complete(X.completion,X.afterLoc),L(X),x}},catch:function(z){for(var V=this.tryEntries.length-1;V>=0;--V){var X=this.tryEntries[V];if(X.tryLoc===z){var A=X.completion;if(A.type==="throw"){var P=A.arg;L(X)}return P}}throw Error("illegal catch attempt")},delegateYield:function(z,V,X){return this.delegate={iterator:H(z),resultName:V,nextLoc:X},this.method==="next"&&(this.arg=e),x}},t}function z7(e,t,n,r,i,o,a){try{var l=e[o](a),c=l.value}catch(u){return void n(u)}l.done?t(c):Promise.resolve(c).then(r,i)}function Yo(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var o=e.apply(t,n);function a(c){z7(o,r,i,a,l,"next",c)}function l(c){z7(o,r,i,a,l,"throw",c)}a(void 0)})}}var Tm=te({},wP),Gee=Tm.version,S4=Tm.render,qee=Tm.unmountComponentAtNode,Mb;try{var Xee=Number((Gee||"").split(".")[0]);Xee>=18&&(Mb=Tm.createRoot)}catch{}function W7(e){var t=Tm.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&Nt(t)==="object"&&(t.usingClientEntryPoint=e)}var sy="__rc_react_root__";function Yee(e,t){W7(!0);var n=t[sy]||Mb(t);W7(!1),n.render(e),t[sy]=n}function Qee(e,t){S4==null||S4(e,t)}function Zee(e,t){if(Mb){Yee(e,t);return}Qee(e,t)}function Jee(e){return VS.apply(this,arguments)}function VS(){return VS=Yo(lr().mark(function e(t){return lr().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.resolve().then(function(){var i;(i=t[sy])===null||i===void 0||i.unmount(),delete t[sy]}));case 1:case"end":return r.stop()}},e)})),VS.apply(this,arguments)}function ete(e){qee(e)}function tte(e){return GS.apply(this,arguments)}function GS(){return GS=Yo(lr().mark(function e(t){return lr().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(Mb===void 0){r.next=2;break}return r.abrupt("return",Jee(t));case 2:ete(t);case 3:case"end":return r.stop()}},e)})),GS.apply(this,arguments)}const nte=(e,t)=>(Zee(e,t),()=>tte(t));let rte=nte;function O3(){return rte}const E4=()=>({height:0,opacity:0}),U7=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},ite=e=>({height:e?e.offsetHeight:0}),x4=(e,t)=>(t==null?void 0:t.deadline)===!0||t.propertyName==="height",Xh=function(){return{motionName:`${arguments.length>0&&arguments[0]!==void 0?arguments[0]:qh}-motion-collapse`,onAppearStart:E4,onEnterStart:E4,onAppearActive:U7,onEnterActive:U7,onLeaveStart:ite,onLeaveActive:E4,onAppearEnd:x4,onEnterEnd:x4,onLeaveEnd:x4,motionDeadline:500}},xc=(e,t,n)=>n!==void 0?n:`${e}-${t}`,Om=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(),o=i.width,a=i.height;if(o||a)return!0}}return!1},ote=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(",")}}}}},ate=lJ("Wave",e=>[ote(e)]),Pb=`${qh}-wave-target`;function w4(e){return e&&e!=="#fff"&&e!=="#ffffff"&&e!=="rgb(255, 255, 255)"&&e!=="rgba(255, 255, 255, 1)"&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&e!=="transparent"}function lte(e){const{borderTopColor:t,borderColor:n,backgroundColor:r}=getComputedStyle(e);return w4(t)?t:w4(n)?n:w4(r)?r:null}function _4(e){return Number.isNaN(e)?0:e}const ste=e=>{const{className:t,target:n,component:r,registerUnmount:i}=e,o=d.useRef(null),a=d.useRef(null);d.useEffect(()=>{a.current=i()},[]);const[l,c]=d.useState(null),[u,p]=d.useState([]),[h,m]=d.useState(0),[g,b]=d.useState(0),[E,x]=d.useState(0),[S,C]=d.useState(0),[_,O]=d.useState(!1),k={left:h,top:g,width:E,height:S,borderRadius:u.map($=>`${$}px`).join(" ")};l&&(k["--wave-color"]=l);function T(){const $=getComputedStyle(n);c(lte(n));const M=$.position==="static",{borderLeftWidth:R,borderTopWidth:j}=$;m(M?n.offsetLeft:_4(-parseFloat(R))),b(M?n.offsetTop:_4(-parseFloat(j))),x(n.offsetWidth),C(n.offsetHeight);const{borderTopLeftRadius:D,borderTopRightRadius:L,borderBottomLeftRadius:B,borderBottomRightRadius:H}=$;p([D,L,H,B].map(W=>_4(parseFloat(W))))}if(d.useEffect(()=>{if(n){const $=kn(()=>{T(),O(!0)});let M;return typeof ResizeObserver<"u"&&(M=new ResizeObserver(T),M.observe(n)),()=>{kn.cancel($),M==null||M.disconnect()}}},[]),!_)return null;const I=(r==="Checkbox"||r==="Radio")&&(n==null?void 0:n.classList.contains(Pb));return d.createElement(la,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:($,M)=>{var R,j;if(M.deadline||M.propertyName==="opacity"){const D=(R=o.current)===null||R===void 0?void 0:R.parentElement;(j=a.current)===null||j===void 0||j.call(a).then(()=>{D==null||D.remove()})}return!1}},($,M)=>{let{className:R}=$;return d.createElement("div",{ref:Zi(o,M),className:le(t,R,{"wave-quick":I}),style:k})})},cte=(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 o=O3();let a=null;function l(){return a}a=o(d.createElement(ste,Object.assign({},t,{target:e,registerUnmount:l})),i)},ute=(e,t,n)=>{const{wave:r}=d.useContext(At),[,i,o]=Fi(),a=Kn(u=>{const p=e.current;if(r!=null&&r.disabled||!p)return;const h=p.querySelector(`.${Pb}`)||p,{showEffect:m}=r||{};(m||cte)(h,{className:t,token:i,component:n,event:u,hashId:o})}),l=d.useRef(null);return u=>{kn.cancel(l.current),l.current=kn(()=>{a(u)})}},Lb=e=>{const{children:t,disabled:n,component:r}=e,{getPrefixCls:i}=d.useContext(At),o=d.useRef(null),a=i("wave"),[,l]=ate(a),c=ute(o,le(a,l),r);if(fe.useEffect(()=>{const p=o.current;if(!p||p.nodeType!==1||n)return;const h=m=>{!Om(m.target)||!p.getAttribute||p.getAttribute("disabled")||p.disabled||p.className.includes("disabled")||p.className.includes("-leave")||c(m)};return p.addEventListener("click",h,!0),()=>{p.removeEventListener("click",h,!0)}},[n]),!fe.isValidElement(t))return t??null;const u=al(t)?Zi(Pc(t),o):o;return vi(t,{ref:u})},go=e=>{const t=fe.useContext(Du);return fe.useMemo(()=>e?typeof e=="string"?e??t:e instanceof Function?e(t):t:t,[e,t])},dte=e=>{const{componentCls:t}=e;return{[t]:{"&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}},fte=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"}}}},pte=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}}}},SD=Fn("Space",e=>{const t=hn(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[fte(t),pte(t),dte(t)]},()=>({}),{resetStyle:!1});var ED=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 Db=d.createContext(null),Im=(e,t)=>{const n=d.useContext(Db),r=d.useMemo(()=>{if(!n)return"";const{compactDirection:i,isFirstItem:o,isLastItem:a}=n,l=i==="vertical"?"-vertical-":"-";return le(`${e}-compact${l}item`,{[`${e}-compact${l}first-item`]:o,[`${e}-compact${l}last-item`]:a,[`${e}-compact${l}item-rtl`]:t==="rtl"})},[e,t,n]);return{compactSize:n==null?void 0:n.compactSize,compactDirection:n==null?void 0:n.compactDirection,compactItemClassnames:r}},hte=e=>{let{children:t}=e;return d.createElement(Db.Provider,{value:null},t)},mte=e=>{var{children:t}=e,n=ED(e,["children"]);return d.createElement(Db.Provider,{value:n},t)},gte=e=>{const{getPrefixCls:t,direction:n}=d.useContext(At),{size:r,direction:i,block:o,prefixCls:a,className:l,rootClassName:c,children:u}=e,p=ED(e,["size","direction","block","prefixCls","className","rootClassName","children"]),h=go(_=>r??_),m=t("space-compact",a),[g,b]=SD(m),E=le(m,b,{[`${m}-rtl`]:n==="rtl",[`${m}-block`]:o,[`${m}-vertical`]:i==="vertical"},l,c),x=d.useContext(Db),S=ii(u),C=d.useMemo(()=>S.map((_,O)=>{const k=(_==null?void 0:_.key)||`${m}-item-${O}`;return d.createElement(mte,{key:k,compactSize:h,compactDirection:i,isFirstItem:O===0&&(!x||(x==null?void 0:x.isFirstItem)),isLastItem:O===S.length-1&&(!x||(x==null?void 0:x.isLastItem))},_)}),[r,S,x]);return S.length===0?null:g(d.createElement("div",Object.assign({className:E},p),C))};var vte=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 xD=d.createContext(void 0),yte=e=>{const{getPrefixCls:t,direction:n}=d.useContext(At),{prefixCls:r,size:i,className:o}=e,a=vte(e,["prefixCls","size","className"]),l=t("btn-group",r),[,,c]=Fi();let u="";switch(i){case"large":u="lg";break;case"small":u="sm";break}const p=le(l,{[`${l}-${u}`]:u,[`${l}-rtl`]:n==="rtl"},o,c);return d.createElement(xD.Provider,{value:i},d.createElement("div",Object.assign({},a,{className:p})))},K7=/^[\u4E00-\u9FA5]{2}$/,qS=K7.test.bind(K7);function wD(e){return e==="danger"?{danger:!0}:{type:e}}function V7(e){return typeof e=="string"}function T4(e){return e==="text"||e==="link"}function bte(e,t){if(e==null)return;const n=t?" ":"";return typeof e!="string"&&typeof e!="number"&&V7(e.type)&&qS(e.props.children)?vi(e,{children:e.props.children.split("").join(n)}):V7(e)?qS(e)?fe.createElement("span",null,e.split("").join(n)):fe.createElement("span",null,e):fD(e)?fe.createElement("span",null,e):e}function Cte(e,t){let n=!1;const r=[];return fe.Children.forEach(e,i=>{const o=typeof i,a=o==="string"||o==="number";if(n&&a){const l=r.length-1,c=r[l];r[l]=`${c}${i}`}else r.push(i);n=a}),fe.Children.map(r,i=>bte(i,t))}["default","primary","danger"].concat(Xe(Bu));const XS=d.forwardRef((e,t)=>{const{className:n,style:r,children:i,prefixCls:o}=e,a=le(`${o}-icon`,n);return fe.createElement("span",{ref:t,className:a,style:r},i)}),G7=d.forwardRef((e,t)=>{const{prefixCls:n,className:r,style:i,iconClassName:o}=e,a=le(`${n}-loading-icon`,r);return fe.createElement(XS,{prefixCls:n,className:a,style:i,ref:t},fe.createElement(Ec,{className:o}))}),O4=()=>({width:0,opacity:0,transform:"scale(0)"}),I4=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),Ste=e=>{const{prefixCls:t,loading:n,existIcon:r,className:i,style:o,mount:a}=e,l=!!n;return r?fe.createElement(G7,{prefixCls:t,className:i,style:o}):fe.createElement(la,{visible:l,motionName:`${t}-loading-icon-motion`,motionAppear:!a,motionEnter:!a,motionLeave:!a,removeOnLeave:!0,onAppearStart:O4,onAppearActive:I4,onEnterStart:O4,onEnterActive:I4,onLeaveStart:I4,onLeaveActive:O4},(c,u)=>{let{className:p,style:h}=c;const m=Object.assign(Object.assign({},o),h);return fe.createElement(G7,{prefixCls:t,className:le(i,p),style:m,ref:u})})},q7=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),Ete=e=>{const{componentCls:t,fontSize:n,lineWidth:r,groupBorderColor:i,colorErrorHover:o}=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}},q7(`${t}-primary`,i),q7(`${t}-danger`,o)]}};var xte=["b"],wte=["v"],k4=function(t){return Math.round(Number(t||0))},_te=function(t){if(t instanceof An)return t;if(t&&Nt(t)==="object"&&"h"in t&&"b"in t){var n=t,r=n.b,i=Yt(n,xte);return te(te({},i),{},{v:r})}return typeof t=="string"&&/hsb/.test(t)?t.replace(/hsb/,"hsv"):t},Yh=function(e){Ra(n,e);var t=Ma(n);function n(r){return Rr(this,n),t.call(this,_te(r))}return Mr(n,[{key:"toHsbString",value:function(){var i=this.toHsb(),o=k4(i.s*100),a=k4(i.b*100),l=k4(i.h),c=i.a,u="hsb(".concat(l,", ").concat(o,"%, ").concat(a,"%)"),p="hsba(".concat(l,", ").concat(o,"%, ").concat(a,"%, ").concat(c.toFixed(c===0?0:2),")");return c===1?u:p}},{key:"toHsb",value:function(){var i=this.toHsv(),o=i.v,a=Yt(i,wte);return te(te({},a),{},{b:o,a:this.a})}}]),n}(An),Tte=function(t){return t instanceof Yh?t:new Yh(t)};Tte("#1677ff");const Ote=(e,t)=>(e==null?void 0:e.replace(/[^\w/]/g,"").slice(0,t?8:6))||"",Ite=(e,t)=>e?Ote(e,t):"";let kte=function(){function e(t){Rr(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(i=>{let{color:o,percent:a}=i;return{color:new e(o),percent:a}}),this.metaColor=new Yh(this.colors[0].color.metaColor)):this.metaColor=new Yh(r?"":t),(!t||r&&!this.colors)&&(this.metaColor=this.metaColor.setA(0),this.cleared=!0)}return Mr(e,[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return Ite(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 o=n.colors[i];return r.percent===o.percent&&r.color.equals(o.color)}):this.toHexString()===n.toHexString()}}])}();var $te={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"},Nte=function(t,n){return d.createElement(bn,Ve({},t,{ref:n,icon:$te}))},Qh=d.forwardRef(Nte);const Fb=e=>({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},
opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}},[`${e.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},
opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}}}),Ate=e=>({animationDuration:e,animationFillMode:"both"}),Rte=e=>({animationDuration:e,animationFillMode:"both"}),Bb=function(e,t,n,r){const o=(arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1)?"&":"";return{[`
${o}${e}-enter,
${o}${e}-appear
`]:Object.assign(Object.assign({},Ate(r)),{animationPlayState:"paused"}),[`${o}${e}-leave`]:Object.assign(Object.assign({},Rte(r)),{animationPlayState:"paused"}),[`
${o}${e}-enter${e}-enter-active,
${o}${e}-appear${e}-appear-active
`]:{animationName:t,animationPlayState:"running"},[`${o}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},Mte=new wn("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),Pte=new wn("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),_D=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const{antCls:n}=e,r=`${n}-fade`,i=t?"&":"";return[Bb(r,Mte,Pte,e.motionDurationMid,t),{[`
${i}${r}-enter,
${i}${r}-appear
`]:{opacity:0,animationTimingFunction:"linear"},[`${i}${r}-leave`]:{animationTimingFunction:"linear"}}]},Lte=new wn("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Dte=new wn("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),Fte=new wn("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Bte=new wn("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),jte=new wn("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Hte=new wn("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),zte=new wn("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Wte=new wn("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),Ute={"move-up":{inKeyframes:zte,outKeyframes:Wte},"move-down":{inKeyframes:Lte,outKeyframes:Dte},"move-left":{inKeyframes:Fte,outKeyframes:Bte},"move-right":{inKeyframes:jte,outKeyframes:Hte}},cy=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:i,outKeyframes:o}=Ute[t];return[Bb(r,i,o,e.motionDurationMid),{[`
${r}-enter,
${r}-appear
`]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},I3=new wn("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),k3=new wn("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),$3=new wn("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),N3=new wn("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),Kte=new wn("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),Vte=new wn("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),Gte=new wn("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),qte=new wn("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),Xte={"slide-up":{inKeyframes:I3,outKeyframes:k3},"slide-down":{inKeyframes:$3,outKeyframes:N3},"slide-left":{inKeyframes:Kte,outKeyframes:Vte},"slide-right":{inKeyframes:Gte,outKeyframes:qte}},wc=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:i,outKeyframes:o}=Xte[t];return[Bb(r,i,o,e.motionDurationMid),{[`
${r}-enter,
${r}-appear
`]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},A3=new wn("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),Yte=new wn("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),X7=new wn("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),Y7=new wn("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),Qte=new wn("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),Zte=new wn("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),Jte=new wn("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),ene=new wn("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),tne=new wn("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),nne=new wn("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),rne=new wn("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),ine=new wn("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),one={zoom:{inKeyframes:A3,outKeyframes:Yte},"zoom-big":{inKeyframes:X7,outKeyframes:Y7},"zoom-big-fast":{inKeyframes:X7,outKeyframes:Y7},"zoom-left":{inKeyframes:Jte,outKeyframes:ene},"zoom-right":{inKeyframes:tne,outKeyframes:nne},"zoom-up":{inKeyframes:Qte,outKeyframes:Zte},"zoom-down":{inKeyframes:rne,outKeyframes:ine}},km=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:i,outKeyframes:o}=one[t];return[Bb(r,i,o,t==="zoom-big-fast"?e.motionDurationFast:e.motionDurationMid),{[`
${r}-enter,
${r}-appear
`]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},ane=(e,t)=>{const{r:n,g:r,b:i,a:o}=e.toRgb(),a=new Yh(e.toRgbString()).onBackground(t).toHsv();return o<=.5?a.v>.5:n*.299+r*.587+i*.114>192},TD=e=>{const{paddingInline:t,onlyIconSize:n}=e;return hn(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:0,buttonIconOnlyFontSize:n})},OD=e=>{var t,n,r,i,o,a;const l=(t=e.contentFontSize)!==null&&t!==void 0?t:e.fontSize,c=(n=e.contentFontSizeSM)!==null&&n!==void 0?n:e.fontSize,u=(r=e.contentFontSizeLG)!==null&&r!==void 0?r:e.fontSizeLG,p=(i=e.contentLineHeight)!==null&&i!==void 0?i:ov(l),h=(o=e.contentLineHeightSM)!==null&&o!==void 0?o:ov(c),m=(a=e.contentLineHeightLG)!==null&&a!==void 0?a:ov(u),g=ane(new kte(e.colorBgSolid),"#fff")?"#000":"#fff";return{fontWeight:400,defaultShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`,primaryShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`,dangerShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`,primaryColor:e.colorTextLightSolid,dangerColor:e.colorTextLightSolid,borderColorDisabled:e.colorBorder,defaultGhostColor:e.colorBgContainer,ghostBg:"transparent",defaultGhostBorderColor:e.colorBgContainer,paddingInline:e.paddingContentHorizontal-e.lineWidth,paddingInlineLG:e.paddingContentHorizontal-e.lineWidth,paddingInlineSM:8-e.lineWidth,onlyIconSize:"inherit",onlyIconSizeSM:"inherit",onlyIconSizeLG:"inherit",groupBorderColor:e.colorPrimaryHover,linkHoverBg:"transparent",textTextColor:e.colorText,textTextHoverColor:e.colorText,textTextActiveColor:e.colorText,textHoverBg:e.colorFillTertiary,defaultColor:e.colorText,defaultBg:e.colorBgContainer,defaultBorderColor:e.colorBorder,defaultBorderColorDisabled:e.colorBorder,defaultHoverBg:e.colorBgContainer,defaultHoverColor:e.colorPrimaryHover,defaultHoverBorderColor:e.colorPrimaryHover,defaultActiveBg:e.colorBgContainer,defaultActiveColor:e.colorPrimaryActive,defaultActiveBorderColor:e.colorPrimaryActive,solidTextColor:g,contentFontSize:l,contentFontSizeSM:c,contentFontSizeLG:u,contentLineHeight:p,contentLineHeightSM:h,contentLineHeightLG:m,paddingBlock:Math.max((e.controlHeight-l*p)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-c*h)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-u*m)/2-e.lineWidth,0)}},lne=e=>{const{componentCls:t,iconCls:n,fontWeight:r,opacityLoading:i,motionDurationSlow:o,motionEaseInOut:a,marginXS:l,calc:c}=e;return{[t]:{outline:"none",position:"relative",display:"inline-flex",gap:e.marginXS,alignItems:"center",justifyContent:"center",fontWeight:r,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:`${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`]:xm(),"> a":{color:"currentColor"},"&:not(:disabled)":Fl(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}-round`]:{width:"auto"}},[`&${t}-loading`]:{opacity:i,cursor:"default"},[`${t}-loading-icon`]:{transition:["width","opacity","margin"].map(u=>`${u} ${o} ${a}`).join(",")},[`&:not(${t}-icon-end)`]:{[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineEnd:c(l).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineEnd:0},"&-leave-start":{marginInlineEnd:0},"&-leave-active":{marginInlineEnd:c(l).mul(-1).equal()}}},"&-icon-end":{flexDirection:"row-reverse",[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineStart:c(l).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineStart:0},"&-leave-start":{marginInlineStart:0},"&-leave-active":{marginInlineStart:c(l).mul(-1).equal()}}}}}},ID=(e,t,n)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":n}}),sne=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),cne=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.calc(e.controlHeight).div(2).equal(),paddingInlineEnd:e.calc(e.controlHeight).div(2).equal()}),une=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),R3=(e,t,n,r,i,o,a,l)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:n||void 0,background:t,borderColor:r||void 0,boxShadow:"none"},ID(e,Object.assign({background:t},a),Object.assign({background:t},l))),{"&:disabled":{cursor:"not-allowed",color:i||void 0,borderColor:o||void 0}})}),dne=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},une(e))}),fne=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),jb=(e,t,n,r)=>{const o=r&&["link","text"].includes(r)?fne:dne;return Object.assign(Object.assign({},o(e)),ID(e.componentCls,t,n))},Hb=(e,t,n,r,i)=>({[`&${e.componentCls}-variant-solid`]:Object.assign({color:t,background:n},jb(e,r,i))}),zb=(e,t,n,r,i)=>({[`&${e.componentCls}-variant-outlined, &${e.componentCls}-variant-dashed`]:Object.assign({borderColor:t,background:n},jb(e,r,i))}),Wb=e=>({[`&${e.componentCls}-variant-dashed`]:{borderStyle:"dashed"}}),Ub=(e,t,n,r)=>({[`&${e.componentCls}-variant-filled`]:Object.assign({boxShadow:"none",background:t},jb(e,n,r))}),_c=(e,t,n,r,i)=>({[`&${e.componentCls}-variant-${n}`]:Object.assign({color:t,boxShadow:"none"},jb(e,r,i,n))}),pne=e=>{const{componentCls:t}=e;return Bu.reduce((n,r)=>{const i=e[`${r}6`],o=e[`${r}1`],a=e[`${r}5`],l=e[`${r}2`],c=e[`${r}3`],u=e[`${r}7`],p=`0 ${ae(e.controlOutlineWidth)} 0 ${e[`${r}1`]}`;return Object.assign(Object.assign({},n),{[`&${t}-color-${r}`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:i,boxShadow:p},Hb(e,e.colorTextLightSolid,i,{background:a},{background:u})),zb(e,i,e.colorBgContainer,{color:a,borderColor:a,background:e.colorBgContainer},{color:u,borderColor:u,background:e.colorBgContainer})),Wb(e)),Ub(e,o,{background:l},{background:c})),_c(e,i,"link",{color:a},{color:u})),_c(e,i,"text",{color:a,background:o},{color:u,background:c}))})},{})},hne=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.defaultColor,boxShadow:e.defaultShadow},Hb(e,e.solidTextColor,e.colorBgSolid,{color:e.solidTextColor,background:e.colorBgSolidHover},{color:e.solidTextColor,background:e.colorBgSolidActive})),Wb(e)),Ub(e,e.colorFillTertiary,{background:e.colorFillSecondary},{background:e.colorFill})),_c(e,e.textTextColor,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),R3(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)),mne=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorPrimary,boxShadow:e.primaryShadow},zb(e,e.colorPrimary,e.colorBgContainer,{color:e.colorPrimaryTextHover,borderColor:e.colorPrimaryHover,background:e.colorBgContainer},{color:e.colorPrimaryTextActive,borderColor:e.colorPrimaryActive,background:e.colorBgContainer})),Wb(e)),Ub(e,e.colorPrimaryBg,{background:e.colorPrimaryBgHover},{background:e.colorPrimaryBorder})),_c(e,e.colorLink,"text",{color:e.colorPrimaryTextHover,background:e.colorPrimaryBg},{color:e.colorPrimaryTextActive,background:e.colorPrimaryBorder})),R3(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),gne=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorError,boxShadow:e.dangerShadow},Hb(e,e.dangerColor,e.colorError,{background:e.colorErrorHover},{background:e.colorErrorActive})),zb(e,e.colorError,e.colorBgContainer,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),Wb(e)),Ub(e,e.colorErrorBg,{background:e.colorErrorBgFilledHover},{background:e.colorErrorBgActive})),_c(e,e.colorError,"text",{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBgActive})),_c(e,e.colorError,"link",{color:e.colorErrorHover},{color:e.colorErrorActive})),R3(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),vne=e=>{const{componentCls:t}=e;return Object.assign({[`${t}-color-default`]:hne(e),[`${t}-color-primary`]:mne(e),[`${t}-color-dangerous`]:gne(e)},pne(e))},yne=e=>Object.assign(Object.assign(Object.assign(Object.assign({},zb(e,e.defaultBorderColor,e.defaultBg,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg})),_c(e,e.textTextColor,"text",{color:e.textTextHoverColor,background:e.textHoverBg},{color:e.textTextActiveColor,background:e.colorBgTextActive})),Hb(e,e.primaryColor,e.colorPrimary,{background:e.colorPrimaryHover,color:e.primaryColor},{background:e.colorPrimaryActive,color:e.primaryColor})),_c(e,e.colorLink,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),M3=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const{componentCls:n,controlHeight:r,fontSize:i,borderRadius:o,buttonPaddingHorizontal:a,iconCls:l,buttonPaddingVertical:c,buttonIconOnlyFontSize:u}=e;return[{[t]:{fontSize:i,height:r,padding:`${ae(c)} ${ae(a)}`,borderRadius:o,[`&${n}-icon-only`]:{width:r,[l]:{fontSize:u}}}},{[`${n}${n}-circle${t}`]:sne(e)},{[`${n}${n}-round${t}`]:cne(e)}]},bne=e=>{const t=hn(e,{fontSize:e.contentFontSize});return M3(t,e.componentCls)},Cne=e=>{const t=hn(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:0,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return M3(t,`${e.componentCls}-sm`)},Sne=e=>{const t=hn(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:0,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return M3(t,`${e.componentCls}-lg`)},Ene=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},xne=Fn("Button",e=>{const t=TD(e);return[lne(t),bne(t),Cne(t),Sne(t),Ene(t),vne(t),yne(t),Ete(t)]},OD,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function wne(e,t,n){const{focusElCls:r,focus:i,borderElCls:o}=n,a=o?"> *":"",l=["hover",i?"focus":null,"active"].filter(Boolean).map(c=>`&:${c} ${a}`).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},"&-item":Object.assign(Object.assign({[l]:{zIndex:2}},r?{[`&${r}`]:{zIndex:2}}:{}),{[`&[disabled] ${a}`]:{zIndex:0}})}}function _ne(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 P3(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{focus:!0};const{componentCls:n}=e,r=`${n}-compact`;return{[r]:Object.assign(Object.assign({},wne(e,r,t)),_ne(n,r,t))}}function Tne(e,t){return{[`&-item:not(${t}-last-item)`]:{marginBottom:e.calc(e.lineWidth).mul(-1).equal()},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function One(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 Ine(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},Tne(e,t)),One(e.componentCls,t))}}const kne=e=>{const{componentCls:t,colorPrimaryHover:n,lineWidth:r,calc:i}=e,o=i(r).mul(-1).equal(),a=l=>{const c=`${t}-compact${l?"-vertical":""}-item${t}-primary:not([disabled])`;return{[`${c} + ${c}::before`]:{position:"absolute",top:l?o:0,insetInlineStart:l?0:o,backgroundColor:n,content:'""',width:l?"100%":r,height:l?r:"100%"}}};return Object.assign(Object.assign({},a()),a(!0))},$ne=s1(["Button","compact"],e=>{const t=TD(e);return[P3(t),Ine(t),kne(t)]},OD);var Nne=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 Ane(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 Rne={default:["default","outlined"],primary:["primary","solid"],dashed:["default","dashed"],link:["primary","link"],text:["default","text"]},Mne=fe.forwardRef((e,t)=>{var n,r,i,o;const{loading:a=!1,prefixCls:l,color:c,variant:u,type:p,danger:h=!1,shape:m="default",size:g,styles:b,disabled:E,className:x,rootClassName:S,children:C,icon:_,iconPosition:O="start",ghost:k=!1,block:T=!1,htmlType:I="button",classNames:$,style:M={},autoInsertSpace:R,autoFocus:j}=e,D=Nne(e,["loading","prefixCls","color","variant","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","iconPosition","ghost","block","htmlType","classNames","style","autoInsertSpace","autoFocus"]),L=p||"default",[B,H]=d.useMemo(()=>{if(c&&u)return[c,u];const Qe=Rne[L]||[];return h?["danger",Qe[1]]:Qe},[p,c,u,h]),z=B==="danger"?"dangerous":B,{getPrefixCls:V,direction:X,button:A}=d.useContext(At),P=(n=R??(A==null?void 0:A.autoInsertSpace))!==null&&n!==void 0?n:!0,Y=V("btn",l),[U,Q,ee]=xne(Y),se=d.useContext(Ia),ne=E??se,oe=d.useContext(xD),pe=d.useMemo(()=>Ane(a),[a]),[be,ue]=d.useState(pe.loading),[de,re]=d.useState(!1),me=d.useRef(null),ge=Es(t,me),Ae=d.Children.count(C)===1&&!_&&!T4(H),De=d.useRef(!0);fe.useEffect(()=>(De.current=!1,()=>{De.current=!0}),[]),d.useEffect(()=>{let Qe=null;pe.delay>0?Qe=setTimeout(()=>{Qe=null,ue(!0)},pe.delay):ue(pe.loading);function ie(){Qe&&(clearTimeout(Qe),Qe=null)}return ie},[pe]),d.useEffect(()=>{if(!me.current||!P)return;const Qe=me.current.textContent||"";Ae&&qS(Qe)?de||re(!0):de&&re(!1)}),d.useEffect(()=>{j&&me.current&&me.current.focus()},[]);const ze=fe.useCallback(Qe=>{var ie;if(be||ne){Qe.preventDefault();return}(ie=e.onClick)===null||ie===void 0||ie.call(e,Qe)},[e.onClick,be,ne]),{compactSize:et,compactItemClassnames:Ie}=Im(Y,X),Te={large:"lg",small:"sm",middle:void 0},Ue=go(Qe=>{var ie,xe;return(xe=(ie=g??et)!==null&&ie!==void 0?ie:oe)!==null&&xe!==void 0?xe:Qe}),Le=Ue&&(r=Te[Ue])!==null&&r!==void 0?r:"",je=be?"loading":_,Ge=ir(D,["navigate"]),qe=le(Y,Q,ee,{[`${Y}-${m}`]:m!=="default"&&m,[`${Y}-${L}`]:L,[`${Y}-dangerous`]:h,[`${Y}-color-${z}`]:z,[`${Y}-variant-${H}`]:H,[`${Y}-${Le}`]:Le,[`${Y}-icon-only`]:!C&&C!==0&&!!je,[`${Y}-background-ghost`]:k&&!T4(H),[`${Y}-loading`]:be,[`${Y}-two-chinese-chars`]:de&&P&&!be,[`${Y}-block`]:T,[`${Y}-rtl`]:X==="rtl",[`${Y}-icon-end`]:O==="end"},Ie,x,S,A==null?void 0:A.className),Ce=Object.assign(Object.assign({},A==null?void 0:A.style),M),ke=le($==null?void 0:$.icon,(i=A==null?void 0:A.classNames)===null||i===void 0?void 0:i.icon),We=Object.assign(Object.assign({},(b==null?void 0:b.icon)||{}),((o=A==null?void 0:A.styles)===null||o===void 0?void 0:o.icon)||{}),Pe=_&&!be?fe.createElement(XS,{prefixCls:Y,className:ke,style:We},_):typeof a=="object"&&a.icon?fe.createElement(XS,{prefixCls:Y,className:ke,style:We},a.icon):fe.createElement(Ste,{existIcon:!!_,prefixCls:Y,loading:be,mount:De.current}),Be=C||C===0?Cte(C,Ae&&P):null;if(Ge.href!==void 0)return U(fe.createElement("a",Object.assign({},Ge,{className:le(qe,{[`${Y}-disabled`]:ne}),href:ne?void 0:Ge.href,style:Ce,onClick:ze,ref:ge,tabIndex:ne?-1:0}),Pe,Be));let He=fe.createElement("button",Object.assign({},D,{type:I,className:qe,style:Ce,onClick:ze,disabled:ne,ref:ge}),Pe,Be,Ie&&fe.createElement($ne,{prefixCls:Y}));return T4(H)||(He=fe.createElement(Lb,{component:"Button",disabled:be},He)),U(He)}),Hn=Mne;Hn.Group=yte;Hn.__ANT_BUTTON=!0;function $4(e){return!!(e!=null&&e.then)}const kD=e=>{const{type:t,children:n,prefixCls:r,buttonProps:i,close:o,autoFocus:a,emitEvent:l,isSilent:c,quitOnNullishReturnValue:u,actionFn:p}=e,h=d.useRef(!1),m=d.useRef(null),[g,b]=Fu(!1),E=function(){o==null||o.apply(void 0,arguments)};d.useEffect(()=>{let C=null;return a&&(C=setTimeout(()=>{var _;(_=m.current)===null||_===void 0||_.focus({preventScroll:!0})})),()=>{C&&clearTimeout(C)}},[]);const x=C=>{$4(C)&&(b(!0),C.then(function(){b(!1,!0),E.apply(void 0,arguments),h.current=!1},_=>{if(b(!1,!0),h.current=!1,!(c!=null&&c()))return Promise.reject(_)}))},S=C=>{if(h.current)return;if(h.current=!0,!p){E();return}let _;if(l){if(_=p(C),u&&!$4(_)){h.current=!1,E(C);return}}else if(p.length)_=p(o),h.current=!1;else if(_=p(),!$4(_)){E();return}x(_)};return d.createElement(Hn,Object.assign({},wD(t),{onClick:S,loading:g,prefixCls:r},i,{ref:m}),n)},$m=fe.createContext({}),{Provider:$D}=$m,Q7=()=>{const{autoFocusButton:e,cancelButtonProps:t,cancelTextLocale:n,isSilent:r,mergedOkCancel:i,rootPrefixCls:o,close:a,onCancel:l,onConfirm:c}=d.useContext($m);return i?fe.createElement(kD,{isSilent:r,actionFn:l,close:function(){a==null||a.apply(void 0,arguments),c==null||c(!1)},autoFocus:e==="cancel",buttonProps:t,prefixCls:`${o}-btn`},n):null},Z7=()=>{const{autoFocusButton:e,close:t,isSilent:n,okButtonProps:r,rootPrefixCls:i,okTextLocale:o,okType:a,onConfirm:l,onOk:c}=d.useContext($m);return fe.createElement(kD,{isSilent:n,type:a||"primary",actionFn:c,close:function(){t==null||t.apply(void 0,arguments),l==null||l(!0)},autoFocus:e==="ok",buttonProps:r,prefixCls:`${i}-btn`},o)};var ND=d.createContext(null),J7=[];function Pne(e,t){var n=d.useState(function(){if(!co())return null;var b=document.createElement("div");return b}),r=_e(n,1),i=r[0],o=d.useRef(!1),a=d.useContext(ND),l=d.useState(J7),c=_e(l,2),u=c[0],p=c[1],h=a||(o.current?void 0:function(b){p(function(E){var x=[b].concat(Xe(E));return x})});function m(){i.parentElement||document.body.appendChild(i),o.current=!0}function g(){var b;(b=i.parentElement)===null||b===void 0||b.removeChild(i),o.current=!1}return xn(function(){return e?a?a(m):m():g(),g},[e]),xn(function(){u.length&&(u.forEach(function(b){return b()}),p(J7))},[u]),[i,h]}var N4;function AD(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,o;if(e){var a=getComputedStyle(e);r.scrollbarColor=a.scrollbarColor,r.scrollbarWidth=a.scrollbarWidth;var l=getComputedStyle(e,"::-webkit-scrollbar"),c=parseInt(l.width,10),u=parseInt(l.height,10);try{var p=c?"width: ".concat(l.width,";"):"",h=u?"height: ".concat(l.height,";"):"";Nb(`
#`.concat(t,`::-webkit-scrollbar {
`).concat(p,`
`).concat(h,`
}`),t)}catch(b){console.error(b),i=c,o=u}}document.body.appendChild(n);var m=e&&i&&!isNaN(i)?i:n.offsetWidth-n.clientWidth,g=e&&o&&!isNaN(o)?o:n.offsetHeight-n.clientHeight;return document.body.removeChild(n),DS(t),{width:m,height:g}}function eO(e){return typeof document>"u"?0:(N4===void 0&&(N4=AD()),N4.width)}function YS(e){return typeof document>"u"||!e||!(e instanceof Element)?{width:0,height:0}:AD(e)}function Lne(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var Dne="rc-util-locker-".concat(Date.now()),tO=0;function Fne(e){var t=!!e,n=d.useState(function(){return tO+=1,"".concat(Dne,"_").concat(tO)}),r=_e(n,1),i=r[0];xn(function(){if(t){var o=YS(document.body).width,a=Lne();Nb(`
html body {
overflow-y: hidden;
`.concat(a?"width: calc(100% - ".concat(o,"px);"):"",`
}`),i)}else DS(i);return function(){DS(i)}},[t,i])}var Bne=!1;function jne(e){return Bne}var nO=function(t){return t===!1?!1:!co()||!t?null:typeof t=="string"?document.querySelector(t):typeof t=="function"?t():t},L3=d.forwardRef(function(e,t){var n=e.open,r=e.autoLock,i=e.getContainer;e.debug;var o=e.autoDestroy,a=o===void 0?!0:o,l=e.children,c=d.useState(n),u=_e(c,2),p=u[0],h=u[1],m=p||n;d.useEffect(function(){(a||n)&&h(n)},[n,a]);var g=d.useState(function(){return nO(i)}),b=_e(g,2),E=b[0],x=b[1];d.useEffect(function(){var j=nO(i);x(j??null)});var S=Pne(m&&!E),C=_e(S,2),_=C[0],O=C[1],k=E??_;Fne(r&&n&&co()&&(k===_||k===document.body));var T=null;if(l&&al(l)&&t){var I=l;T=I.ref}var $=Es(T,t);if(!m||!co()||E===void 0)return null;var M=k===!1||jne(),R=l;return t&&(R=d.cloneElement(l,{ref:$})),d.createElement(ND.Provider,{value:O},M?R:Ta.createPortal(R,k))}),RD=d.createContext({});function Hne(){var e=te({},mm);return e.useId}var rO=0,iO=Hne();const D3=iO?function(t){var n=iO();return t||n}:function(t){var n=d.useState("ssr-id"),r=_e(n,2),i=r[0],o=r[1];return d.useEffect(function(){var a=rO;rO+=1,o("rc_unique_".concat(a))},[]),t||i};function oO(e,t,n){var r=t;return!r&&n&&(r="".concat(e,"-").concat(n)),r}function aO(e,t){var n=e["page".concat(t?"Y":"X","Offset")],r="scroll".concat(t?"Top":"Left");if(typeof n!="number"){var i=e.document;n=i.documentElement[r],typeof n!="number"&&(n=i.body[r])}return n}function zne(e){var t=e.getBoundingClientRect(),n={left:t.left,top:t.top},r=e.ownerDocument,i=r.defaultView||r.parentWindow;return n.left+=aO(i),n.top+=aO(i,!0),n}const Wne=d.memo(function(e){var t=e.children;return t},function(e,t){var n=t.shouldUpdate;return!n});var Une={width:0,height:0,overflow:"hidden",outline:"none"},Kne={outline:"none"},MD=fe.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,i=e.style,o=e.title,a=e.ariaId,l=e.footer,c=e.closable,u=e.closeIcon,p=e.onClose,h=e.children,m=e.bodyStyle,g=e.bodyProps,b=e.modalRender,E=e.onMouseDown,x=e.onMouseUp,S=e.holderRef,C=e.visible,_=e.forceRender,O=e.width,k=e.height,T=e.classNames,I=e.styles,$=fe.useContext(RD),M=$.panel,R=Es(S,M),j=d.useRef(),D=d.useRef();fe.useImperativeHandle(t,function(){return{focus:function(){var Y;(Y=j.current)===null||Y===void 0||Y.focus({preventScroll:!0})},changeActive:function(Y){var U=document,Q=U.activeElement;Y&&Q===D.current?j.current.focus({preventScroll:!0}):!Y&&Q===j.current&&D.current.focus({preventScroll:!0})}}});var L={};O!==void 0&&(L.width=O),k!==void 0&&(L.height=k);var B=l?fe.createElement("div",{className:le("".concat(n,"-footer"),T==null?void 0:T.footer),style:te({},I==null?void 0:I.footer)},l):null,H=o?fe.createElement("div",{className:le("".concat(n,"-header"),T==null?void 0:T.header),style:te({},I==null?void 0:I.header)},fe.createElement("div",{className:"".concat(n,"-title"),id:a},o)):null,W=d.useMemo(function(){return Nt(c)==="object"&&c!==null?c:c?{closeIcon:u??fe.createElement("span",{className:"".concat(n,"-close-x")})}:{}},[c,u,n]),z=Oi(W,!0),V=Nt(c)==="object"&&c.disabled,X=c?fe.createElement("button",Ve({type:"button",onClick:p,"aria-label":"Close"},z,{className:"".concat(n,"-close"),disabled:V}),W.closeIcon):null,A=fe.createElement("div",{className:le("".concat(n,"-content"),T==null?void 0:T.content),style:I==null?void 0:I.content},X,H,fe.createElement("div",Ve({className:le("".concat(n,"-body"),T==null?void 0:T.body),style:te(te({},m),I==null?void 0:I.body)},g),h),B);return fe.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":o?a:null,"aria-modal":"true",ref:R,style:te(te({},i),L),className:le(n,r),onMouseDown:E,onMouseUp:x},fe.createElement("div",{ref:j,tabIndex:0,style:Kne},fe.createElement(Wne,{shouldUpdate:C||_},b?b(A):A)),fe.createElement("div",{tabIndex:0,ref:D,style:Une}))}),PD=d.forwardRef(function(e,t){var n=e.prefixCls,r=e.title,i=e.style,o=e.className,a=e.visible,l=e.forceRender,c=e.destroyOnClose,u=e.motionName,p=e.ariaId,h=e.onVisibleChanged,m=e.mousePosition,g=d.useRef(),b=d.useState(),E=_e(b,2),x=E[0],S=E[1],C={};x&&(C.transformOrigin=x);function _(){var O=zne(g.current);S(m&&(m.x||m.y)?"".concat(m.x-O.left,"px ").concat(m.y-O.top,"px"):"")}return d.createElement(la,{visible:a,onVisibleChanged:h,onAppearPrepare:_,onEnterPrepare:_,forceRender:l,motionName:u,removeOnLeave:c,ref:g},function(O,k){var T=O.className,I=O.style;return d.createElement(MD,Ve({},e,{ref:t,title:r,ariaId:p,prefixCls:n,holderRef:k,style:te(te(te({},I),i),C),className:le(o,T)}))})});PD.displayName="Content";var Vne=function(t){var n=t.prefixCls,r=t.style,i=t.visible,o=t.maskProps,a=t.motionName,l=t.className;return d.createElement(la,{key:"mask",visible:i,motionName:a,leavedClassName:"".concat(n,"-mask-hidden")},function(c,u){var p=c.className,h=c.style;return d.createElement("div",Ve({ref:u,style:te(te({},h),r),className:le("".concat(n,"-mask"),p,l)},o))})},Gne=function(t){var n=t.prefixCls,r=n===void 0?"rc-dialog":n,i=t.zIndex,o=t.visible,a=o===void 0?!1:o,l=t.keyboard,c=l===void 0?!0:l,u=t.focusTriggerAfterClose,p=u===void 0?!0:u,h=t.wrapStyle,m=t.wrapClassName,g=t.wrapProps,b=t.onClose,E=t.afterOpenChange,x=t.afterClose,S=t.transitionName,C=t.animation,_=t.closable,O=_===void 0?!0:_,k=t.mask,T=k===void 0?!0:k,I=t.maskTransitionName,$=t.maskAnimation,M=t.maskClosable,R=M===void 0?!0:M,j=t.maskStyle,D=t.maskProps,L=t.rootClassName,B=t.classNames,H=t.styles,W=d.useRef(),z=d.useRef(),V=d.useRef(),X=d.useState(a),A=_e(X,2),P=A[0],Y=A[1],U=D3();function Q(){PS(z.current,document.activeElement)||(W.current=document.activeElement)}function ee(){if(!PS(z.current,document.activeElement)){var ge;(ge=V.current)===null||ge===void 0||ge.focus()}}function se(ge){if(ge)ee();else{if(Y(!1),T&&W.current&&p){try{W.current.focus({preventScroll:!0})}catch{}W.current=null}P&&(x==null||x())}E==null||E(ge)}function ne(ge){b==null||b(ge)}var oe=d.useRef(!1),pe=d.useRef(),be=function(){clearTimeout(pe.current),oe.current=!0},ue=function(){pe.current=setTimeout(function(){oe.current=!1})},de=null;R&&(de=function(Ae){oe.current?oe.current=!1:z.current===Ae.target&&ne(Ae)});function re(ge){if(c&&ge.keyCode===lt.ESC){ge.stopPropagation(),ne(ge);return}a&&ge.keyCode===lt.TAB&&V.current.changeActive(!ge.shiftKey)}d.useEffect(function(){a&&(Y(!0),Q())},[a]),d.useEffect(function(){return function(){clearTimeout(pe.current)}},[]);var me=te(te(te({zIndex:i},h),H==null?void 0:H.wrapper),{},{display:P?null:"none"});return d.createElement("div",Ve({className:le("".concat(r,"-root"),L)},Oi(t,{data:!0})),d.createElement(Vne,{prefixCls:r,visible:T&&a,motionName:oO(r,I,$),style:te(te({zIndex:i},j),H==null?void 0:H.mask),maskProps:D,className:B==null?void 0:B.mask}),d.createElement("div",Ve({tabIndex:-1,onKeyDown:re,className:le("".concat(r,"-wrap"),m,B==null?void 0:B.wrapper),ref:z,onClick:de,style:me},g),d.createElement(PD,Ve({},t,{onMouseDown:be,onMouseUp:ue,ref:V,closable:O,ariaId:U,prefixCls:r,visible:a&&P,onClose:ne,onVisibleChanged:se,motionName:oO(r,S,C)}))))},LD=function(t){var n=t.visible,r=t.getContainer,i=t.forceRender,o=t.destroyOnClose,a=o===void 0?!1:o,l=t.afterClose,c=t.panelRef,u=d.useState(n),p=_e(u,2),h=p[0],m=p[1],g=d.useMemo(function(){return{panel:c}},[c]);return d.useEffect(function(){n&&m(!0)},[n]),!i&&a&&!h?null:d.createElement(RD.Provider,{value:g},d.createElement(L3,{open:n||i||h,autoDestroy:!1,getContainer:r,autoLock:n||h},d.createElement(Gne,Ve({},t,{destroyOnClose:a,afterClose:function(){l==null||l(),m(!1)}}))))};LD.displayName="Dialog";var yu="RC_FORM_INTERNAL_HOOKS",er=function(){br(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},ju=d.createContext({getFieldValue:er,getFieldsValue:er,getFieldError:er,getFieldWarning:er,getFieldsError:er,isFieldsTouched:er,isFieldTouched:er,isFieldValidating:er,isFieldsValidating:er,resetFields:er,setFields:er,setFieldValue:er,setFieldsValue:er,validateFields:er,submit:er,getInternalHooks:function(){return er(),{dispatch:er,initEntityValue:er,registerField:er,useSubscribe:er,setInitialValues:er,destroyForm:er,setCallbacks:er,registerWatch:er,getFields:er,setValidateMessages:er,setPreserve:er,getInitialValue:er}}}),Zh=d.createContext(null);function QS(e){return e==null?[]:Array.isArray(e)?e:[e]}function qne(e){return e&&!!e._init}function ZS(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var JS=ZS();function Xne(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function Yne(e,t,n){if(d3())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var i=new(e.bind.apply(e,r));return n&&Hh(i,n.prototype),i}function eE(e){var t=typeof Map=="function"?new Map:void 0;return eE=function(r){if(r===null||!Xne(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 Yne(r,arguments,zh(this).constructor)}return i.prototype=Object.create(r.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),Hh(i,r)},eE(e)}var Qne=/%[sdj%]/g,Zne=function(){};function tE(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 Qo(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,o=n.length;if(typeof e=="function")return e.apply(null,n);if(typeof e=="string"){var a=e.replace(Qne,function(l){if(l==="%%")return"%";if(i>=o)return l;switch(l){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 l}});return a}return e}function Jne(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function yi(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||Jne(t)&&typeof e=="string"&&!e)}function ere(e,t,n){var r=[],i=0,o=e.length;function a(l){r.push.apply(r,Xe(l||[])),i++,i===o&&n(r)}e.forEach(function(l){t(l,a)})}function lO(e,t,n){var r=0,i=e.length;function o(a){if(a&&a.length){n(a);return}var l=r;r=r+1,l<i?t(e[l],o):n([])}o([])}function tre(e){var t=[];return Object.keys(e).forEach(function(n){t.push.apply(t,Xe(e[n]||[]))}),t}var sO=function(e){Ra(n,e);var t=Ma(n);function n(r,i){var o;return Rr(this,n),o=t.call(this,"Async Validation Error"),J(_t(o),"errors",void 0),J(_t(o),"fields",void 0),o.errors=r,o.fields=i,o}return Mr(n)}(eE(Error));function nre(e,t,n,r,i){if(t.first){var o=new Promise(function(m,g){var b=function(S){return r(S),S.length?g(new sO(S,tE(S))):m(i)},E=tre(e);lO(E,n,b)});return o.catch(function(m){return m}),o}var a=t.firstFields===!0?Object.keys(e):t.firstFields||[],l=Object.keys(e),c=l.length,u=0,p=[],h=new Promise(function(m,g){var b=function(x){if(p.push.apply(p,x),u++,u===c)return r(p),p.length?g(new sO(p,tE(p))):m(i)};l.length||(r(p),m(i)),l.forEach(function(E){var x=e[E];a.indexOf(E)!==-1?lO(x,n,b):ere(x,n,b)})});return h.catch(function(m){return m}),h}function rre(e){return!!(e&&e.message!==void 0)}function ire(e,t){for(var n=e,r=0;r<t.length;r++){if(n==null)return n;n=n[t[r]]}return n}function cO(e,t){return function(n){var r;return e.fullFields?r=ire(t,e.fullFields):r=t[n.field||e.fullField],rre(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 uO(e,t){if(t){for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];Nt(r)==="object"&&Nt(e[n])==="object"?e[n]=te(te({},e[n]),r):e[n]=r}}return e}var Td="enum",ore=function(t,n,r,i,o){t[Td]=Array.isArray(t[Td])?t[Td]:[],t[Td].indexOf(n)===-1&&i.push(Qo(o.messages[Td],t.fullField,t[Td].join(", ")))},are=function(t,n,r,i,o){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||i.push(Qo(o.messages.pattern.mismatch,t.fullField,n,t.pattern));else if(typeof t.pattern=="string"){var a=new RegExp(t.pattern);a.test(n)||i.push(Qo(o.messages.pattern.mismatch,t.fullField,n,t.pattern))}}},lre=function(t,n,r,i,o){var a=typeof t.len=="number",l=typeof t.min=="number",c=typeof t.max=="number",u=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,p=n,h=null,m=typeof n=="number",g=typeof n=="string",b=Array.isArray(n);if(m?h="number":g?h="string":b&&(h="array"),!h)return!1;b&&(p=n.length),g&&(p=n.replace(u,"_").length),a?p!==t.len&&i.push(Qo(o.messages[h].len,t.fullField,t.len)):l&&!c&&p<t.min?i.push(Qo(o.messages[h].min,t.fullField,t.min)):c&&!l&&p>t.max?i.push(Qo(o.messages[h].max,t.fullField,t.max)):l&&c&&(p<t.min||p>t.max)&&i.push(Qo(o.messages[h].range,t.fullField,t.min,t.max))},DD=function(t,n,r,i,o,a){t.required&&(!r.hasOwnProperty(t.field)||yi(n,a||t.type))&&i.push(Qo(o.messages.required,t.fullField))},J0;const sre=function(){if(J0)return J0;var e="[a-fA-F\\d:]",t=function(T){return T&&T.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}|:))")],o="(?:%[0-9a-zA-Z]{1,})?",a="(?:".concat(i.join("|"),")").concat(o),l=new RegExp("(?:^".concat(n,"$)|(?:^").concat(a,"$)")),c=new RegExp("^".concat(n,"$")),u=new RegExp("^".concat(a,"$")),p=function(T){return T&&T.exact?l:new RegExp("(?:".concat(t(T)).concat(n).concat(t(T),")|(?:").concat(t(T)).concat(a).concat(t(T),")"),"g")};p.v4=function(k){return k&&k.exact?c:new RegExp("".concat(t(k)).concat(n).concat(t(k)),"g")},p.v6=function(k){return k&&k.exact?u:new RegExp("".concat(t(k)).concat(a).concat(t(k)),"g")};var h="(?:(?:[a-z]+:)?//)",m="(?:\\S+(?::\\S*)?@)?",g=p.v4().source,b=p.v6().source,E="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",x="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",S="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",C="(?::\\d{2,5})?",_='(?:[/?#][^\\s"]*)?',O="(?:".concat(h,"|www\\.)").concat(m,"(?:localhost|").concat(g,"|").concat(b,"|").concat(E).concat(x).concat(S,")").concat(C).concat(_);return J0=new RegExp("(?:^".concat(O,"$)"),"i"),J0};var dO={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},Lp={integer:function(t){return Lp.number(t)&&parseInt(t,10)===t},float:function(t){return Lp.number(t)&&!Lp.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 Nt(t)==="object"&&!Lp.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(dO.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(sre())},hex:function(t){return typeof t=="string"&&!!t.match(dO.hex)}},cre=function(t,n,r,i,o){if(t.required&&n===void 0){DD(t,n,r,i,o);return}var a=["integer","float","array","regexp","object","method","email","number","date","url","hex"],l=t.type;a.indexOf(l)>-1?Lp[l](n)||i.push(Qo(o.messages.types[l],t.fullField,t.type)):l&&Nt(n)!==t.type&&i.push(Qo(o.messages.types[l],t.fullField,t.type))},ure=function(t,n,r,i,o){(/^\s+$/.test(n)||n==="")&&i.push(Qo(o.messages.whitespace,t.fullField))};const Rn={required:DD,whitespace:ure,type:cre,range:lre,enum:ore,pattern:are};var dre=function(t,n,r,i,o){var a=[],l=t.required||!t.required&&i.hasOwnProperty(t.field);if(l){if(yi(n)&&!t.required)return r();Rn.required(t,n,i,a,o)}r(a)},fre=function(t,n,r,i,o){var a=[],l=t.required||!t.required&&i.hasOwnProperty(t.field);if(l){if(n==null&&!t.required)return r();Rn.required(t,n,i,a,o,"array"),n!=null&&(Rn.type(t,n,i,a,o),Rn.range(t,n,i,a,o))}r(a)},pre=function(t,n,r,i,o){var a=[],l=t.required||!t.required&&i.hasOwnProperty(t.field);if(l){if(yi(n)&&!t.required)return r();Rn.required(t,n,i,a,o),n!==void 0&&Rn.type(t,n,i,a,o)}r(a)},hre=function(t,n,r,i,o){var a=[],l=t.required||!t.required&&i.hasOwnProperty(t.field);if(l){if(yi(n,"date")&&!t.required)return r();if(Rn.required(t,n,i,a,o),!yi(n,"date")){var c;n instanceof Date?c=n:c=new Date(n),Rn.type(t,c,i,a,o),c&&Rn.range(t,c.getTime(),i,a,o)}}r(a)},mre="enum",gre=function(t,n,r,i,o){var a=[],l=t.required||!t.required&&i.hasOwnProperty(t.field);if(l){if(yi(n)&&!t.required)return r();Rn.required(t,n,i,a,o),n!==void 0&&Rn[mre](t,n,i,a,o)}r(a)},vre=function(t,n,r,i,o){var a=[],l=t.required||!t.required&&i.hasOwnProperty(t.field);if(l){if(yi(n)&&!t.required)return r();Rn.required(t,n,i,a,o),n!==void 0&&(Rn.type(t,n,i,a,o),Rn.range(t,n,i,a,o))}r(a)},yre=function(t,n,r,i,o){var a=[],l=t.required||!t.required&&i.hasOwnProperty(t.field);if(l){if(yi(n)&&!t.required)return r();Rn.required(t,n,i,a,o),n!==void 0&&(Rn.type(t,n,i,a,o),Rn.range(t,n,i,a,o))}r(a)},bre=function(t,n,r,i,o){var a=[],l=t.required||!t.required&&i.hasOwnProperty(t.field);if(l){if(yi(n)&&!t.required)return r();Rn.required(t,n,i,a,o),n!==void 0&&Rn.type(t,n,i,a,o)}r(a)},Cre=function(t,n,r,i,o){var a=[],l=t.required||!t.required&&i.hasOwnProperty(t.field);if(l){if(n===""&&(n=void 0),yi(n)&&!t.required)return r();Rn.required(t,n,i,a,o),n!==void 0&&(Rn.type(t,n,i,a,o),Rn.range(t,n,i,a,o))}r(a)},Sre=function(t,n,r,i,o){var a=[],l=t.required||!t.required&&i.hasOwnProperty(t.field);if(l){if(yi(n)&&!t.required)return r();Rn.required(t,n,i,a,o),n!==void 0&&Rn.type(t,n,i,a,o)}r(a)},Ere=function(t,n,r,i,o){var a=[],l=t.required||!t.required&&i.hasOwnProperty(t.field);if(l){if(yi(n,"string")&&!t.required)return r();Rn.required(t,n,i,a,o),yi(n,"string")||Rn.pattern(t,n,i,a,o)}r(a)},xre=function(t,n,r,i,o){var a=[],l=t.required||!t.required&&i.hasOwnProperty(t.field);if(l){if(yi(n)&&!t.required)return r();Rn.required(t,n,i,a,o),yi(n)||Rn.type(t,n,i,a,o)}r(a)},wre=function(t,n,r,i,o){var a=[],l=Array.isArray(n)?"array":Nt(n);Rn.required(t,n,i,a,o,l),r(a)},_re=function(t,n,r,i,o){var a=[],l=t.required||!t.required&&i.hasOwnProperty(t.field);if(l){if(yi(n,"string")&&!t.required)return r();Rn.required(t,n,i,a,o,"string"),yi(n,"string")||(Rn.type(t,n,i,a,o),Rn.range(t,n,i,a,o),Rn.pattern(t,n,i,a,o),t.whitespace===!0&&Rn.whitespace(t,n,i,a,o))}r(a)},A4=function(t,n,r,i,o){var a=t.type,l=[],c=t.required||!t.required&&i.hasOwnProperty(t.field);if(c){if(yi(n,a)&&!t.required)return r();Rn.required(t,n,i,l,o,a),yi(n,a)||Rn.type(t,n,i,l,o)}r(l)};const th={string:_re,method:bre,number:Cre,boolean:pre,regexp:xre,integer:yre,float:vre,array:fre,object:Sre,enum:gre,pattern:Ere,date:hre,url:A4,hex:A4,email:A4,required:wre,any:dre};var Nm=function(){function e(t){Rr(this,e),J(this,"rules",null),J(this,"_messages",JS),this.define(t)}return Mr(e,[{key:"define",value:function(n){var r=this;if(!n)throw new Error("Cannot configure a schema with no rules");if(Nt(n)!=="object"||Array.isArray(n))throw new Error("Rules must be an object");this.rules={},Object.keys(n).forEach(function(i){var o=n[i];r.rules[i]=Array.isArray(o)?o:[o]})}},{key:"messages",value:function(n){return n&&(this._messages=uO(ZS(),n)),this._messages}},{key:"validate",value:function(n){var r=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},a=n,l=i,c=o;if(typeof l=="function"&&(c=l,l={}),!this.rules||Object.keys(this.rules).length===0)return c&&c(null,a),Promise.resolve(a);function u(b){var E=[],x={};function S(_){if(Array.isArray(_)){var O;E=(O=E).concat.apply(O,Xe(_))}else E.push(_)}for(var C=0;C<b.length;C++)S(b[C]);E.length?(x=tE(E),c(E,x)):c(null,a)}if(l.messages){var p=this.messages();p===JS&&(p=ZS()),uO(p,l.messages),l.messages=p}else l.messages=this.messages();var h={},m=l.keys||Object.keys(this.rules);m.forEach(function(b){var E=r.rules[b],x=a[b];E.forEach(function(S){var C=S;typeof C.transform=="function"&&(a===n&&(a=te({},a)),x=a[b]=C.transform(x),x!=null&&(C.type=C.type||(Array.isArray(x)?"array":Nt(x)))),typeof C=="function"?C={validator:C}:C=te({},C),C.validator=r.getValidationMethod(C),C.validator&&(C.field=b,C.fullField=C.fullField||b,C.type=r.getType(C),h[b]=h[b]||[],h[b].push({rule:C,value:x,source:a,field:b}))})});var g={};return nre(h,l,function(b,E){var x=b.rule,S=(x.type==="object"||x.type==="array")&&(Nt(x.fields)==="object"||Nt(x.defaultField)==="object");S=S&&(x.required||!x.required&&b.value),x.field=b.field;function C(I,$){return te(te({},$),{},{fullField:"".concat(x.fullField,".").concat(I),fullFields:x.fullFields?[].concat(Xe(x.fullFields),[I]):[I]})}function _(){var I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],$=Array.isArray(I)?I:[I];!l.suppressWarning&&$.length&&e.warning("async-validator:",$),$.length&&x.message!==void 0&&($=[].concat(x.message));var M=$.map(cO(x,a));if(l.first&&M.length)return g[x.field]=1,E(M);if(!S)E(M);else{if(x.required&&!b.value)return x.message!==void 0?M=[].concat(x.message).map(cO(x,a)):l.error&&(M=[l.error(x,Qo(l.messages.required,x.field))]),E(M);var R={};x.defaultField&&Object.keys(b.value).map(function(L){R[L]=x.defaultField}),R=te(te({},R),b.rule.fields);var j={};Object.keys(R).forEach(function(L){var B=R[L],H=Array.isArray(B)?B:[B];j[L]=H.map(C.bind(null,L))});var D=new e(j);D.messages(l.messages),b.rule.options&&(b.rule.options.messages=l.messages,b.rule.options.error=l.error),D.validate(b.value,b.rule.options||l,function(L){var B=[];M&&M.length&&B.push.apply(B,Xe(M)),L&&L.length&&B.push.apply(B,Xe(L)),E(B.length?B:null)})}}var O;if(x.asyncValidator)O=x.asyncValidator(x,b.value,_,b.source,l);else if(x.validator){try{O=x.validator(x,b.value,_,b.source,l)}catch(I){var k,T;(k=(T=console).error)===null||k===void 0||k.call(T,I),l.suppressValidatorError||setTimeout(function(){throw I},0),_(I.message)}O===!0?_():O===!1?_(typeof x.message=="function"?x.message(x.fullField||x.field):x.message||"".concat(x.fullField||x.field," fails")):O instanceof Array?_(O):O instanceof Error&&_(O.message)}O&&O.then&&O.then(function(){return _()},function(I){return _(I)})},function(b){u(b)},a)}},{key:"getType",value:function(n){if(n.type===void 0&&n.pattern instanceof RegExp&&(n.type="pattern"),typeof n.validator!="function"&&n.type&&!th.hasOwnProperty(n.type))throw new Error(Qo("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"?th.required:th[this.getType(n)]||void 0}}]),e}();J(Nm,"register",function(t,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");th[t]=n});J(Nm,"warning",Zne);J(Nm,"messages",JS);J(Nm,"validators",th);var Ho="'${name}' is not a valid ${type}",FD={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:Ho,method:Ho,array:Ho,object:Ho,number:Ho,date:Ho,boolean:Ho,integer:Ho,float:Ho,regexp:Ho,email:Ho,url:Ho,hex:Ho},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}"}},fO=Nm;function Tre(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 pO="CODE_LOGIC_ERROR";function nE(e,t,n,r,i){return rE.apply(this,arguments)}function rE(){return rE=Yo(lr().mark(function e(t,n,r,i,o){var a,l,c,u,p,h,m,g,b;return lr().wrap(function(x){for(;;)switch(x.prev=x.next){case 0:return a=te({},r),delete a.ruleIndex,fO.warning=function(){},a.validator&&(l=a.validator,a.validator=function(){try{return l.apply(void 0,arguments)}catch(S){return console.error(S),Promise.reject(pO)}}),c=null,a&&a.type==="array"&&a.defaultField&&(c=a.defaultField,delete a.defaultField),u=new fO(J({},t,[a])),p=of(FD,i.validateMessages),u.messages(p),h=[],x.prev=10,x.next=13,Promise.resolve(u.validate(J({},t,n),te({},i)));case 13:x.next=18;break;case 15:x.prev=15,x.t0=x.catch(10),x.t0.errors&&(h=x.t0.errors.map(function(S,C){var _=S.message,O=_===pO?p.default:_;return d.isValidElement(O)?d.cloneElement(O,{key:"error_".concat(C)}):O}));case 18:if(!(!h.length&&c)){x.next=23;break}return x.next=21,Promise.all(n.map(function(S,C){return nE("".concat(t,".").concat(C),S,c,i,o)}));case 21:return m=x.sent,x.abrupt("return",m.reduce(function(S,C){return[].concat(Xe(S),Xe(C))},[]));case 23:return g=te(te({},r),{},{name:t,enum:(r.enum||[]).join(", ")},o),b=h.map(function(S){return typeof S=="string"?Tre(S,g):S}),x.abrupt("return",b);case 26:case"end":return x.stop()}},e,null,[[10,15]])})),rE.apply(this,arguments)}function Ore(e,t,n,r,i,o){var a=e.join("."),l=n.map(function(p,h){var m=p.validator,g=te(te({},p),{},{ruleIndex:h});return m&&(g.validator=function(b,E,x){var S=!1,C=function(){for(var k=arguments.length,T=new Array(k),I=0;I<k;I++)T[I]=arguments[I];Promise.resolve().then(function(){br(!S,"Your validator function has already return a promise. `callback` will be ignored."),S||x.apply(void 0,T)})},_=m(b,E,C);S=_&&typeof _.then=="function"&&typeof _.catch=="function",br(S,"`callback` is deprecated. Please return a promise instead."),S&&_.then(function(){x()}).catch(function(O){x(O||" ")})}),g}).sort(function(p,h){var m=p.warningOnly,g=p.ruleIndex,b=h.warningOnly,E=h.ruleIndex;return!!m==!!b?g-E:m?1:-1}),c;if(i===!0)c=new Promise(function(){var p=Yo(lr().mark(function h(m,g){var b,E,x;return lr().wrap(function(C){for(;;)switch(C.prev=C.next){case 0:b=0;case 1:if(!(b<l.length)){C.next=12;break}return E=l[b],C.next=5,nE(a,t,E,r,o);case 5:if(x=C.sent,!x.length){C.next=9;break}return g([{errors:x,rule:E}]),C.abrupt("return");case 9:b+=1,C.next=1;break;case 12:m([]);case 13:case"end":return C.stop()}},h)}));return function(h,m){return p.apply(this,arguments)}}());else{var u=l.map(function(p){return nE(a,t,p,r,o).then(function(h){return{errors:h,rule:p}})});c=(i?kre(u):Ire(u)).then(function(p){return Promise.reject(p)})}return c.catch(function(p){return p}),c}function Ire(e){return iE.apply(this,arguments)}function iE(){return iE=Yo(lr().mark(function e(t){return lr().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.all(t).then(function(i){var o,a=(o=[]).concat.apply(o,Xe(i));return a}));case 1:case"end":return r.stop()}},e)})),iE.apply(this,arguments)}function kre(e){return oE.apply(this,arguments)}function oE(){return oE=Yo(lr().mark(function e(t){var n;return lr().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return n=0,i.abrupt("return",new Promise(function(o){t.forEach(function(a){a.then(function(l){l.errors.length&&o([l]),n+=1,n===t.length&&o([])})})}));case 2:case"end":return i.stop()}},e)})),oE.apply(this,arguments)}function Ur(e){return QS(e)}function hO(e,t){var n={};return t.forEach(function(r){var i=lo(e,r);n=ma(n,r,i)}),n}function xf(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return e&&e.some(function(r){return BD(t,r,n)})}function BD(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 $re(e,t){if(e===t)return!0;if(!e&&t||e&&!t||!e||!t||Nt(e)!=="object"||Nt(t)!=="object")return!1;var n=Object.keys(e),r=Object.keys(t),i=new Set([].concat(n,r));return Xe(i).every(function(o){var a=e[o],l=t[o];return typeof a=="function"&&typeof l=="function"?!0:a===l})}function Nre(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&Nt(t.target)==="object"&&e in t.target?t.target[e]:t}function mO(e,t,n){var r=e.length;if(t<0||t>=r||n<0||n>=r)return e;var i=e[t],o=t-n;return o>0?[].concat(Xe(e.slice(0,n)),[i],Xe(e.slice(n,t)),Xe(e.slice(t+1,r))):o<0?[].concat(Xe(e.slice(0,t)),Xe(e.slice(t+1,n+1)),[i],Xe(e.slice(n+1,r))):e}var Are=["name"],ua=[];function R4(e,t,n,r,i,o){return typeof e=="function"?e(t,n,"source"in o?{source:o.source}:{}):r!==i}var F3=function(e){Ra(n,e);var t=Ma(n);function n(r){var i;if(Rr(this,n),i=t.call(this,r),J(_t(i),"state",{resetCount:0}),J(_t(i),"cancelRegisterFunc",null),J(_t(i),"mounted",!1),J(_t(i),"touched",!1),J(_t(i),"dirty",!1),J(_t(i),"validatePromise",void 0),J(_t(i),"prevValidating",void 0),J(_t(i),"errors",ua),J(_t(i),"warnings",ua),J(_t(i),"cancelRegister",function(){var c=i.props,u=c.preserve,p=c.isListField,h=c.name;i.cancelRegisterFunc&&i.cancelRegisterFunc(p,u,Ur(h)),i.cancelRegisterFunc=null}),J(_t(i),"getNamePath",function(){var c=i.props,u=c.name,p=c.fieldContext,h=p.prefixName,m=h===void 0?[]:h;return u!==void 0?[].concat(Xe(m),Xe(u)):[]}),J(_t(i),"getRules",function(){var c=i.props,u=c.rules,p=u===void 0?[]:u,h=c.fieldContext;return p.map(function(m){return typeof m=="function"?m(h):m})}),J(_t(i),"refresh",function(){i.mounted&&i.setState(function(c){var u=c.resetCount;return{resetCount:u+1}})}),J(_t(i),"metaCache",null),J(_t(i),"triggerMetaEvent",function(c){var u=i.props.onMetaChange;if(u){var p=te(te({},i.getMeta()),{},{destroy:c});Ll(i.metaCache,p)||u(p),i.metaCache=p}else i.metaCache=null}),J(_t(i),"onStoreChange",function(c,u,p){var h=i.props,m=h.shouldUpdate,g=h.dependencies,b=g===void 0?[]:g,E=h.onReset,x=p.store,S=i.getNamePath(),C=i.getValue(c),_=i.getValue(x),O=u&&xf(u,S);switch(p.type==="valueUpdate"&&p.source==="external"&&!Ll(C,_)&&(i.touched=!0,i.dirty=!0,i.validatePromise=null,i.errors=ua,i.warnings=ua,i.triggerMetaEvent()),p.type){case"reset":if(!u||O){i.touched=!1,i.dirty=!1,i.validatePromise=void 0,i.errors=ua,i.warnings=ua,i.triggerMetaEvent(),E==null||E(),i.refresh();return}break;case"remove":{if(m&&R4(m,c,x,C,_,p)){i.reRender();return}break}case"setField":{var k=p.data;if(O){"touched"in k&&(i.touched=k.touched),"validating"in k&&!("originRCField"in k)&&(i.validatePromise=k.validating?Promise.resolve([]):null),"errors"in k&&(i.errors=k.errors||ua),"warnings"in k&&(i.warnings=k.warnings||ua),i.dirty=!0,i.triggerMetaEvent(),i.reRender();return}else if("value"in k&&xf(u,S,!0)){i.reRender();return}if(m&&!S.length&&R4(m,c,x,C,_,p)){i.reRender();return}break}case"dependenciesUpdate":{var T=b.map(Ur);if(T.some(function(I){return xf(p.relatedFields,I)})){i.reRender();return}break}default:if(O||(!b.length||S.length||m)&&R4(m,c,x,C,_,p)){i.reRender();return}break}m===!0&&i.reRender()}),J(_t(i),"validateRules",function(c){var u=i.getNamePath(),p=i.getValue(),h=c||{},m=h.triggerName,g=h.validateOnly,b=g===void 0?!1:g,E=Promise.resolve().then(Yo(lr().mark(function x(){var S,C,_,O,k,T,I;return lr().wrap(function(M){for(;;)switch(M.prev=M.next){case 0:if(i.mounted){M.next=2;break}return M.abrupt("return",[]);case 2:if(S=i.props,C=S.validateFirst,_=C===void 0?!1:C,O=S.messageVariables,k=S.validateDebounce,T=i.getRules(),m&&(T=T.filter(function(R){return R}).filter(function(R){var j=R.validateTrigger;if(!j)return!0;var D=QS(j);return D.includes(m)})),!(k&&m)){M.next=10;break}return M.next=8,new Promise(function(R){setTimeout(R,k)});case 8:if(i.validatePromise===E){M.next=10;break}return M.abrupt("return",[]);case 10:return I=Ore(u,p,T,c,_,O),I.catch(function(R){return R}).then(function(){var R=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ua;if(i.validatePromise===E){var j;i.validatePromise=null;var D=[],L=[];(j=R.forEach)===null||j===void 0||j.call(R,function(B){var H=B.rule.warningOnly,W=B.errors,z=W===void 0?ua:W;H?L.push.apply(L,Xe(z)):D.push.apply(D,Xe(z))}),i.errors=D,i.warnings=L,i.triggerMetaEvent(),i.reRender()}}),M.abrupt("return",I);case 13:case"end":return M.stop()}},x)})));return b||(i.validatePromise=E,i.dirty=!0,i.errors=ua,i.warnings=ua,i.triggerMetaEvent(),i.reRender()),E}),J(_t(i),"isFieldValidating",function(){return!!i.validatePromise}),J(_t(i),"isFieldTouched",function(){return i.touched}),J(_t(i),"isFieldDirty",function(){if(i.dirty||i.props.initialValue!==void 0)return!0;var c=i.props.fieldContext,u=c.getInternalHooks(yu),p=u.getInitialValue;return p(i.getNamePath())!==void 0}),J(_t(i),"getErrors",function(){return i.errors}),J(_t(i),"getWarnings",function(){return i.warnings}),J(_t(i),"isListField",function(){return i.props.isListField}),J(_t(i),"isList",function(){return i.props.isList}),J(_t(i),"isPreserve",function(){return i.props.preserve}),J(_t(i),"getMeta",function(){i.prevValidating=i.isFieldValidating();var c={touched:i.isFieldTouched(),validating:i.prevValidating,errors:i.errors,warnings:i.warnings,name:i.getNamePath(),validated:i.validatePromise===null};return c}),J(_t(i),"getOnlyChild",function(c){if(typeof c=="function"){var u=i.getMeta();return te(te({},i.getOnlyChild(c(i.getControlled(),u,i.props.fieldContext))),{},{isFunction:!0})}var p=ii(c);return p.length!==1||!d.isValidElement(p[0])?{child:p,isFunction:!1}:{child:p[0],isFunction:!1}}),J(_t(i),"getValue",function(c){var u=i.props.fieldContext.getFieldsValue,p=i.getNamePath();return lo(c||u(!0),p)}),J(_t(i),"getControlled",function(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},u=i.props,p=u.name,h=u.trigger,m=u.validateTrigger,g=u.getValueFromEvent,b=u.normalize,E=u.valuePropName,x=u.getValueProps,S=u.fieldContext,C=m!==void 0?m:S.validateTrigger,_=i.getNamePath(),O=S.getInternalHooks,k=S.getFieldsValue,T=O(yu),I=T.dispatch,$=i.getValue(),M=x||function(B){return J({},E,B)},R=c[h],j=p!==void 0?M($):{},D=te(te({},c),j);D[h]=function(){i.touched=!0,i.dirty=!0,i.triggerMetaEvent();for(var B,H=arguments.length,W=new Array(H),z=0;z<H;z++)W[z]=arguments[z];g?B=g.apply(void 0,W):B=Nre.apply(void 0,[E].concat(W)),b&&(B=b(B,$,k(!0))),B!==$&&I({type:"updateValue",namePath:_,value:B}),R&&R.apply(void 0,W)};var L=QS(C||[]);return L.forEach(function(B){var H=D[B];D[B]=function(){H&&H.apply(void 0,arguments);var W=i.props.rules;W&&W.length&&I({type:"validateField",namePath:_,triggerName:B})}}),D}),r.fieldContext){var o=r.fieldContext.getInternalHooks,a=o(yu),l=a.initEntityValue;l(_t(i))}return i}return Mr(n,[{key:"componentDidMount",value:function(){var i=this.props,o=i.shouldUpdate,a=i.fieldContext;if(this.mounted=!0,a){var l=a.getInternalHooks,c=l(yu),u=c.registerField;this.cancelRegisterFunc=u(this)}o===!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,o=this.props.children,a=this.getOnlyChild(o),l=a.child,c=a.isFunction,u;return c?u=l:d.isValidElement(l)?u=d.cloneElement(l,this.getControlled(l.props)):(br(!l,"`children` of Field is not validate ReactElement."),u=l),d.createElement(d.Fragment,{key:i},u)}}]),n}(d.Component);J(F3,"contextType",ju);J(F3,"defaultProps",{trigger:"onChange",valuePropName:"value"});function B3(e){var t,n=e.name,r=Yt(e,Are),i=d.useContext(ju),o=d.useContext(Zh),a=n!==void 0?Ur(n):void 0,l=(t=r.isListField)!==null&&t!==void 0?t:!!o,c="keep";return l||(c="_".concat((a||[]).join("_"))),d.createElement(F3,Ve({key:c,name:a,isListField:l},r,{fieldContext:i}))}function jD(e){var t=e.name,n=e.initialValue,r=e.children,i=e.rules,o=e.validateTrigger,a=e.isListField,l=d.useContext(ju),c=d.useContext(Zh),u=d.useRef({keys:[],id:0}),p=u.current,h=d.useMemo(function(){var E=Ur(l.prefixName)||[];return[].concat(Xe(E),Xe(Ur(t)))},[l.prefixName,t]),m=d.useMemo(function(){return te(te({},l),{},{prefixName:h})},[l,h]),g=d.useMemo(function(){return{getKey:function(x){var S=h.length,C=x[S];return[p.keys[C],x.slice(S+1)]}}},[h]);if(typeof r!="function")return br(!1,"Form.List only accepts function as children."),null;var b=function(x,S,C){var _=C.source;return _==="internal"?!1:x!==S};return d.createElement(Zh.Provider,{value:g},d.createElement(ju.Provider,{value:m},d.createElement(B3,{name:[],shouldUpdate:b,rules:i,validateTrigger:o,initialValue:n,isList:!0,isListField:a??!!c},function(E,x){var S=E.value,C=S===void 0?[]:S,_=E.onChange,O=l.getFieldValue,k=function(){var M=O(h||[]);return M||[]},T={add:function(M,R){var j=k();R>=0&&R<=j.length?(p.keys=[].concat(Xe(p.keys.slice(0,R)),[p.id],Xe(p.keys.slice(R))),_([].concat(Xe(j.slice(0,R)),[M],Xe(j.slice(R))))):(p.keys=[].concat(Xe(p.keys),[p.id]),_([].concat(Xe(j),[M]))),p.id+=1},remove:function(M){var R=k(),j=new Set(Array.isArray(M)?M:[M]);j.size<=0||(p.keys=p.keys.filter(function(D,L){return!j.has(L)}),_(R.filter(function(D,L){return!j.has(L)})))},move:function(M,R){if(M!==R){var j=k();M<0||M>=j.length||R<0||R>=j.length||(p.keys=mO(p.keys,M,R),_(mO(j,M,R)))}}},I=C||[];return Array.isArray(I)||(I=[]),r(I.map(function($,M){var R=p.keys[M];return R===void 0&&(p.keys[M]=p.id,R=p.keys[M],p.id+=1),{name:M,key:R,isListField:!0}}),T,x)})))}function Rre(e){var t=!1,n=e.length,r=[];return e.length?new Promise(function(i,o){e.forEach(function(a,l){a.catch(function(c){return t=!0,c}).then(function(c){n-=1,r[l]=c,!(n>0)&&(t&&o(r),i(r))})})}):Promise.resolve([])}var HD="__@field_split__";function M4(e){return e.map(function(t){return"".concat(Nt(t),":").concat(t)}).join(HD)}var Od=function(){function e(){Rr(this,e),J(this,"kvs",new Map)}return Mr(e,[{key:"set",value:function(n,r){this.kvs.set(M4(n),r)}},{key:"get",value:function(n){return this.kvs.get(M4(n))}},{key:"update",value:function(n,r){var i=this.get(n),o=r(i);o?this.set(n,o):this.delete(n)}},{key:"delete",value:function(n){this.kvs.delete(M4(n))}},{key:"map",value:function(n){return Xe(this.kvs.entries()).map(function(r){var i=_e(r,2),o=i[0],a=i[1],l=o.split(HD);return n({key:l.map(function(c){var u=c.match(/^([^:]*):(.*)$/),p=_e(u,3),h=p[1],m=p[2];return h==="number"?Number(m):m}),value:a})})}},{key:"toJSON",value:function(){var n={};return this.map(function(r){var i=r.key,o=r.value;return n[i.join(".")]=o,null}),n}}]),e}(),Mre=["name"],Pre=Mr(function e(t){var n=this;Rr(this,e),J(this,"formHooked",!1),J(this,"forceRootUpdate",void 0),J(this,"subscribable",!0),J(this,"store",{}),J(this,"fieldEntities",[]),J(this,"initialValues",{}),J(this,"callbacks",{}),J(this,"validateMessages",null),J(this,"preserve",null),J(this,"lastValidatePromise",null),J(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}}),J(this,"getInternalHooks",function(r){return r===yu?(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}):(br(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),J(this,"useSubscribe",function(r){n.subscribable=r}),J(this,"prevWithoutPreserves",null),J(this,"setInitialValues",function(r,i){if(n.initialValues=r||{},i){var o,a=of(r,n.store);(o=n.prevWithoutPreserves)===null||o===void 0||o.map(function(l){var c=l.key;a=ma(a,c,lo(r,c))}),n.prevWithoutPreserves=null,n.updateStore(a)}}),J(this,"destroyForm",function(r){if(r)n.updateStore({});else{var i=new Od;n.getFieldEntities(!0).forEach(function(o){n.isMergedPreserve(o.isPreserve())||i.set(o.getNamePath(),!0)}),n.prevWithoutPreserves=i}}),J(this,"getInitialValue",function(r){var i=lo(n.initialValues,r);return r.length?of(i):i}),J(this,"setCallbacks",function(r){n.callbacks=r}),J(this,"setValidateMessages",function(r){n.validateMessages=r}),J(this,"setPreserve",function(r){n.preserve=r}),J(this,"watchList",[]),J(this,"registerWatch",function(r){return n.watchList.push(r),function(){n.watchList=n.watchList.filter(function(i){return i!==r})}}),J(this,"notifyWatch",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(n.watchList.length){var i=n.getFieldsValue(),o=n.getFieldsValue(!0);n.watchList.forEach(function(a){a(i,o,r)})}}),J(this,"timeoutId",null),J(this,"warningUnhooked",function(){}),J(this,"updateStore",function(r){n.store=r}),J(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}),J(this,"getFieldsMap",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,i=new Od;return n.getFieldEntities(r).forEach(function(o){var a=o.getNamePath();i.set(a,o)}),i}),J(this,"getFieldEntitiesForNamePathList",function(r){if(!r)return n.getFieldEntities(!0);var i=n.getFieldsMap(!0);return r.map(function(o){var a=Ur(o);return i.get(a)||{INVALIDATE_NAME_PATH:Ur(o)}})}),J(this,"getFieldsValue",function(r,i){n.warningUnhooked();var o,a,l;if(r===!0||Array.isArray(r)?(o=r,a=i):r&&Nt(r)==="object"&&(l=r.strict,a=r.filter),o===!0&&!a)return n.store;var c=n.getFieldEntitiesForNamePathList(Array.isArray(o)?o:null),u=[];return c.forEach(function(p){var h,m,g="INVALIDATE_NAME_PATH"in p?p.INVALIDATE_NAME_PATH:p.getNamePath();if(l){var b,E;if((b=(E=p).isList)!==null&&b!==void 0&&b.call(E))return}else if(!o&&(h=(m=p).isListField)!==null&&h!==void 0&&h.call(m))return;if(!a)u.push(g);else{var x="getMeta"in p?p.getMeta():null;a(x)&&u.push(g)}}),hO(n.store,u.map(Ur))}),J(this,"getFieldValue",function(r){n.warningUnhooked();var i=Ur(r);return lo(n.store,i)}),J(this,"getFieldsError",function(r){n.warningUnhooked();var i=n.getFieldEntitiesForNamePathList(r);return i.map(function(o,a){return o&&!("INVALIDATE_NAME_PATH"in o)?{name:o.getNamePath(),errors:o.getErrors(),warnings:o.getWarnings()}:{name:Ur(r[a]),errors:[],warnings:[]}})}),J(this,"getFieldError",function(r){n.warningUnhooked();var i=Ur(r),o=n.getFieldsError([i])[0];return o.errors}),J(this,"getFieldWarning",function(r){n.warningUnhooked();var i=Ur(r),o=n.getFieldsError([i])[0];return o.warnings}),J(this,"isFieldsTouched",function(){n.warningUnhooked();for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];var a=i[0],l=i[1],c,u=!1;i.length===0?c=null:i.length===1?Array.isArray(a)?(c=a.map(Ur),u=!1):(c=null,u=a):(c=a.map(Ur),u=l);var p=n.getFieldEntities(!0),h=function(x){return x.isFieldTouched()};if(!c)return u?p.every(function(E){return h(E)||E.isList()}):p.some(h);var m=new Od;c.forEach(function(E){m.set(E,[])}),p.forEach(function(E){var x=E.getNamePath();c.forEach(function(S){S.every(function(C,_){return x[_]===C})&&m.update(S,function(C){return[].concat(Xe(C),[E])})})});var g=function(x){return x.some(h)},b=m.map(function(E){var x=E.value;return x});return u?b.every(g):b.some(g)}),J(this,"isFieldTouched",function(r){return n.warningUnhooked(),n.isFieldsTouched([r])}),J(this,"isFieldsValidating",function(r){n.warningUnhooked();var i=n.getFieldEntities();if(!r)return i.some(function(a){return a.isFieldValidating()});var o=r.map(Ur);return i.some(function(a){var l=a.getNamePath();return xf(o,l)&&a.isFieldValidating()})}),J(this,"isFieldValidating",function(r){return n.warningUnhooked(),n.isFieldsValidating([r])}),J(this,"resetWithFieldInitialValue",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=new Od,o=n.getFieldEntities(!0);o.forEach(function(c){var u=c.props.initialValue,p=c.getNamePath();if(u!==void 0){var h=i.get(p)||new Set;h.add({entity:c,value:u}),i.set(p,h)}});var a=function(u){u.forEach(function(p){var h=p.props.initialValue;if(h!==void 0){var m=p.getNamePath(),g=n.getInitialValue(m);if(g!==void 0)br(!1,"Form already set 'initialValues' with path '".concat(m.join("."),"'. Field can not overwrite it."));else{var b=i.get(m);if(b&&b.size>1)br(!1,"Multiple Field with path '".concat(m.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(b){var E=n.getFieldValue(m),x=p.isListField();!x&&(!r.skipExist||E===void 0)&&n.updateStore(ma(n.store,m,Xe(b)[0].value))}}}})},l;r.entities?l=r.entities:r.namePathList?(l=[],r.namePathList.forEach(function(c){var u=i.get(c);if(u){var p;(p=l).push.apply(p,Xe(Xe(u).map(function(h){return h.entity})))}})):l=o,a(l)}),J(this,"resetFields",function(r){n.warningUnhooked();var i=n.store;if(!r){n.updateStore(of(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(i,null,{type:"reset"}),n.notifyWatch();return}var o=r.map(Ur);o.forEach(function(a){var l=n.getInitialValue(a);n.updateStore(ma(n.store,a,l))}),n.resetWithFieldInitialValue({namePathList:o}),n.notifyObservers(i,o,{type:"reset"}),n.notifyWatch(o)}),J(this,"setFields",function(r){n.warningUnhooked();var i=n.store,o=[];r.forEach(function(a){var l=a.name,c=Yt(a,Mre),u=Ur(l);o.push(u),"value"in c&&n.updateStore(ma(n.store,u,c.value)),n.notifyObservers(i,[u],{type:"setField",data:a})}),n.notifyWatch(o)}),J(this,"getFields",function(){var r=n.getFieldEntities(!0),i=r.map(function(o){var a=o.getNamePath(),l=o.getMeta(),c=te(te({},l),{},{name:a,value:n.getFieldValue(a)});return Object.defineProperty(c,"originRCField",{value:!0}),c});return i}),J(this,"initEntityValue",function(r){var i=r.props.initialValue;if(i!==void 0){var o=r.getNamePath(),a=lo(n.store,o);a===void 0&&n.updateStore(ma(n.store,o,i))}}),J(this,"isMergedPreserve",function(r){var i=r!==void 0?r:n.preserve;return i??!0}),J(this,"registerField",function(r){n.fieldEntities.push(r);var i=r.getNamePath();if(n.notifyWatch([i]),r.props.initialValue!==void 0){var o=n.store;n.resetWithFieldInitialValue({entities:[r],skipExist:!0}),n.notifyObservers(o,[r.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(a,l){var c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(n.fieldEntities=n.fieldEntities.filter(function(h){return h!==r}),!n.isMergedPreserve(l)&&(!a||c.length>1)){var u=a?void 0:n.getInitialValue(i);if(i.length&&n.getFieldValue(i)!==u&&n.fieldEntities.every(function(h){return!BD(h.getNamePath(),i)})){var p=n.store;n.updateStore(ma(p,i,u,!0)),n.notifyObservers(p,[i],{type:"remove"}),n.triggerDependenciesUpdate(p,i)}}n.notifyWatch([i])}}),J(this,"dispatch",function(r){switch(r.type){case"updateValue":{var i=r.namePath,o=r.value;n.updateValue(i,o);break}case"validateField":{var a=r.namePath,l=r.triggerName;n.validateFields([a],{triggerName:l});break}}}),J(this,"notifyObservers",function(r,i,o){if(n.subscribable){var a=te(te({},o),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach(function(l){var c=l.onStoreChange;c(r,i,a)})}else n.forceRootUpdate()}),J(this,"triggerDependenciesUpdate",function(r,i){var o=n.getDependencyChildrenFields(i);return o.length&&n.validateFields(o),n.notifyObservers(r,o,{type:"dependenciesUpdate",relatedFields:[i].concat(Xe(o))}),o}),J(this,"updateValue",function(r,i){var o=Ur(r),a=n.store;n.updateStore(ma(n.store,o,i)),n.notifyObservers(a,[o],{type:"valueUpdate",source:"internal"}),n.notifyWatch([o]);var l=n.triggerDependenciesUpdate(a,o),c=n.callbacks.onValuesChange;if(c){var u=hO(n.store,[o]);c(u,n.getFieldsValue())}n.triggerOnFieldsChange([o].concat(Xe(l)))}),J(this,"setFieldsValue",function(r){n.warningUnhooked();var i=n.store;if(r){var o=of(n.store,r);n.updateStore(o)}n.notifyObservers(i,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()}),J(this,"setFieldValue",function(r,i){n.setFields([{name:r,value:i,errors:[],warnings:[]}])}),J(this,"getDependencyChildrenFields",function(r){var i=new Set,o=[],a=new Od;n.getFieldEntities().forEach(function(c){var u=c.props.dependencies;(u||[]).forEach(function(p){var h=Ur(p);a.update(h,function(){var m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return m.add(c),m})})});var l=function c(u){var p=a.get(u)||new Set;p.forEach(function(h){if(!i.has(h)){i.add(h);var m=h.getNamePath();h.isFieldDirty()&&m.length&&(o.push(m),c(m))}})};return l(r),o}),J(this,"triggerOnFieldsChange",function(r,i){var o=n.callbacks.onFieldsChange;if(o){var a=n.getFields();if(i){var l=new Od;i.forEach(function(u){var p=u.name,h=u.errors;l.set(p,h)}),a.forEach(function(u){u.errors=l.get(u.name)||u.errors})}var c=a.filter(function(u){var p=u.name;return xf(r,p)});c.length&&o(c,a)}}),J(this,"validateFields",function(r,i){n.warningUnhooked();var o,a;Array.isArray(r)||typeof r=="string"||typeof i=="string"?(o=r,a=i):a=r;var l=!!o,c=l?o.map(Ur):[],u=[],p=String(Date.now()),h=new Set,m=a||{},g=m.recursive,b=m.dirty;n.getFieldEntities(!0).forEach(function(C){if(l||c.push(C.getNamePath()),!(!C.props.rules||!C.props.rules.length)&&!(b&&!C.isFieldDirty())){var _=C.getNamePath();if(h.add(_.join(p)),!l||xf(c,_,g)){var O=C.validateRules(te({validateMessages:te(te({},FD),n.validateMessages)},a));u.push(O.then(function(){return{name:_,errors:[],warnings:[]}}).catch(function(k){var T,I=[],$=[];return(T=k.forEach)===null||T===void 0||T.call(k,function(M){var R=M.rule.warningOnly,j=M.errors;R?$.push.apply($,Xe(j)):I.push.apply(I,Xe(j))}),I.length?Promise.reject({name:_,errors:I,warnings:$}):{name:_,errors:I,warnings:$}}))}}});var E=Rre(u);n.lastValidatePromise=E,E.catch(function(C){return C}).then(function(C){var _=C.map(function(O){var k=O.name;return k});n.notifyObservers(n.store,_,{type:"validateFinish"}),n.triggerOnFieldsChange(_,C)});var x=E.then(function(){return n.lastValidatePromise===E?Promise.resolve(n.getFieldsValue(c)):Promise.reject([])}).catch(function(C){var _=C.filter(function(O){return O&&O.errors.length});return Promise.reject({values:n.getFieldsValue(c),errorFields:_,outOfDate:n.lastValidatePromise!==E})});x.catch(function(C){return C});var S=c.filter(function(C){return h.has(C.join(p))});return n.triggerOnFieldsChange(S),x}),J(this,"submit",function(){n.warningUnhooked(),n.validateFields().then(function(r){var i=n.callbacks.onFinish;if(i)try{i(r)}catch(o){console.error(o)}}).catch(function(r){var i=n.callbacks.onFinishFailed;i&&i(r)})}),this.forceRootUpdate=t});function j3(e){var t=d.useRef(),n=d.useState({}),r=_e(n,2),i=r[1];if(!t.current)if(e)t.current=e;else{var o=function(){i({})},a=new Pre(o);t.current=a.getForm()}return[t.current]}var aE=d.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),zD=function(t){var n=t.validateMessages,r=t.onFormChange,i=t.onFormFinish,o=t.children,a=d.useContext(aE),l=d.useRef({});return d.createElement(aE.Provider,{value:te(te({},a),{},{validateMessages:te(te({},a.validateMessages),n),triggerFormChange:function(u,p){r&&r(u,{changedFields:p,forms:l.current}),a.triggerFormChange(u,p)},triggerFormFinish:function(u,p){i&&i(u,{values:p,forms:l.current}),a.triggerFormFinish(u,p)},registerForm:function(u,p){u&&(l.current=te(te({},l.current),{},J({},u,p))),a.registerForm(u,p)},unregisterForm:function(u){var p=te({},l.current);delete p[u],l.current=p,a.unregisterForm(u)}})},o)},Lre=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"],Dre=function(t,n){var r=t.name,i=t.initialValues,o=t.fields,a=t.form,l=t.preserve,c=t.children,u=t.component,p=u===void 0?"form":u,h=t.validateMessages,m=t.validateTrigger,g=m===void 0?"onChange":m,b=t.onValuesChange,E=t.onFieldsChange,x=t.onFinish,S=t.onFinishFailed,C=t.clearOnDestroy,_=Yt(t,Lre),O=d.useRef(null),k=d.useContext(aE),T=j3(a),I=_e(T,1),$=I[0],M=$.getInternalHooks(yu),R=M.useSubscribe,j=M.setInitialValues,D=M.setCallbacks,L=M.setValidateMessages,B=M.setPreserve,H=M.destroyForm;d.useImperativeHandle(n,function(){return te(te({},$),{},{nativeElement:O.current})}),d.useEffect(function(){return k.registerForm(r,$),function(){k.unregisterForm(r)}},[k,$,r]),L(te(te({},k.validateMessages),h)),D({onValuesChange:b,onFieldsChange:function(Q){if(k.triggerFormChange(r,Q),E){for(var ee=arguments.length,se=new Array(ee>1?ee-1:0),ne=1;ne<ee;ne++)se[ne-1]=arguments[ne];E.apply(void 0,[Q].concat(se))}},onFinish:function(Q){k.triggerFormFinish(r,Q),x&&x(Q)},onFinishFailed:S}),B(l);var W=d.useRef(null);j(i,!W.current),W.current||(W.current=!0),d.useEffect(function(){return function(){return H(C)}},[]);var z,V=typeof c=="function";if(V){var X=$.getFieldsValue(!0);z=c(X,$)}else z=c;R(!V);var A=d.useRef();d.useEffect(function(){$re(A.current||[],o||[])||$.setFields(o||[]),A.current=o},[o,$]);var P=d.useMemo(function(){return te(te({},$),{},{validateTrigger:g})},[$,g]),Y=d.createElement(Zh.Provider,{value:null},d.createElement(ju.Provider,{value:P},z));return p===!1?Y:d.createElement(p,Ve({},_,{ref:O,onSubmit:function(Q){Q.preventDefault(),Q.stopPropagation(),$.submit()},onReset:function(Q){var ee;Q.preventDefault(),$.resetFields(),(ee=_.onReset)===null||ee===void 0||ee.call(_,Q)}}),Y)};function gO(e){try{return JSON.stringify(e)}catch{return Math.random()}}function WD(){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],o=i===void 0?{}:i,a=qne(o)?{form:o}:o,l=a.form,c=d.useState(),u=_e(c,2),p=u[0],h=u[1],m=d.useMemo(function(){return gO(p)},[p]),g=d.useRef(m);g.current=m;var b=d.useContext(ju),E=l||b,x=E&&E._init,S=Ur(r),C=d.useRef(S);return C.current=S,d.useEffect(function(){if(x){var _=E.getFieldsValue,O=E.getInternalHooks,k=O(yu),T=k.registerWatch,I=function(j,D){var L=a.preserve?D:j;return typeof r=="function"?r(L):lo(L,C.current)},$=T(function(R,j){var D=I(R,j),L=gO(D);g.current!==L&&(g.current=L,h(D))}),M=I(_(),_(!0));return p!==M&&h(M),$}},[x]),p}var Fre=d.forwardRef(Dre),u1=Fre;u1.FormProvider=zD;u1.Field=B3;u1.List=jD;u1.useForm=j3;u1.useWatch=WD;const ys=d.createContext({labelAlign:"right",vertical:!1,itemRef:()=>{}}),UD=d.createContext(null),KD=e=>{const t=ir(e,["prefixCls"]);return d.createElement(zD,Object.assign({},t))},H3=d.createContext({prefixCls:""}),uo=d.createContext({}),Bre=e=>{let{children:t,status:n,override:r}=e;const i=d.useContext(uo),o=d.useMemo(()=>{const a=Object.assign({},i);return r&&delete a.isFormItemInput,n&&(delete a.status,delete a.hasFeedback,delete a.feedbackIcon),a},[n,r,i]);return d.createElement(uo.Provider,{value:o},t)},VD=d.createContext(void 0),Jh=e=>{const{space:t,form:n,children:r}=e;if(r==null)return null;let i=r;return n&&(i=fe.createElement(Bre,{override:!0,status:!0},i)),t&&(i=fe.createElement(hte,null,i)),i};function uy(e){if(e)return{closable:e.closable,closeIcon:e.closeIcon}}function vO(e){const{closable:t,closeIcon:n}=e||{};return fe.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])}function yO(){const e={};for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach(i=>{i&&Object.keys(i).forEach(o=>{i[o]!==void 0&&(e[o]=i[o])})}),e}const jre={};function GD(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:jre;const r=vO(e),i=vO(t),o=typeof r!="boolean"?!!(r!=null&&r.disabled):!1,a=fe.useMemo(()=>Object.assign({closeIcon:fe.createElement(qu,null)},n),[n]),l=fe.useMemo(()=>r===!1?!1:r?yO(a,i,r):i===!1?!1:i?yO(a,i):a.closable?a:!1,[r,i,a]);return fe.useMemo(()=>{if(l===!1)return[!1,null,o];const{closeIconRender:c}=a,{closeIcon:u}=l;let p=u;if(p!=null){c&&(p=c(u));const h=Oi(l,!0);Object.keys(h).length&&(p=fe.isValidElement(p)?fe.cloneElement(p,h):fe.createElement("span",Object.assign({},h),p))}return[!0,p,o]},[l,a])}var qD=function(t){if(co()&&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},Hre=function(t,n){if(!qD(t))return!1;var r=document.createElement("div"),i=r.style[t];return r.style[t]=n,r.style[t]!==i};function lE(e,t){return!Array.isArray(e)&&t!==void 0?Hre(e,t):qD(e)}const zre=()=>co()&&window.document.documentElement,Kb=e=>{const{prefixCls:t,className:n,style:r,size:i,shape:o}=e,a=le({[`${t}-lg`]:i==="large",[`${t}-sm`]:i==="small"}),l=le({[`${t}-circle`]:o==="circle",[`${t}-square`]:o==="square",[`${t}-round`]:o==="round"}),c=d.useMemo(()=>typeof i=="number"?{width:i,height:i,lineHeight:`${i}px`}:{},[i]);return d.createElement("span",{className:le(t,a,l,n),style:Object.assign(Object.assign({},c),r)})},Wre=new wn("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),Vb=e=>({height:e,lineHeight:ae(e)}),wf=e=>Object.assign({width:e},Vb(e)),Ure=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:Wre,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),P4=(e,t)=>Object.assign({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal()},Vb(e)),Kre=e=>{const{skeletonAvatarCls:t,gradientFromColor:n,controlHeight:r,controlHeightLG:i,controlHeightSM:o}=e;return{[t]:Object.assign({display:"inline-block",verticalAlign:"top",background:n},wf(r)),[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:Object.assign({},wf(i)),[`${t}${t}-sm`]:Object.assign({},wf(o))}},Vre=e=>{const{controlHeight:t,borderRadiusSM:n,skeletonInputCls:r,controlHeightLG:i,controlHeightSM:o,gradientFromColor:a,calc:l}=e;return{[r]:Object.assign({display:"inline-block",verticalAlign:"top",background:a,borderRadius:n},P4(t,l)),[`${r}-lg`]:Object.assign({},P4(i,l)),[`${r}-sm`]:Object.assign({},P4(o,l))}},bO=e=>Object.assign({width:e},Vb(e)),Gre=e=>{const{skeletonImageCls:t,imageSizeBase:n,gradientFromColor:r,borderRadiusSM:i,calc:o}=e;return{[t]:Object.assign(Object.assign({display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"middle",background:r,borderRadius:i},bO(o(n).mul(2).equal())),{[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:Object.assign(Object.assign({},bO(n)),{maxWidth:o(n).mul(4).equal(),maxHeight:o(n).mul(4).equal()}),[`${t}-svg${t}-svg-circle`]:{borderRadius:"50%"}}),[`${t}${t}-circle`]:{borderRadius:"50%"}}},L4=(e,t,n)=>{const{skeletonButtonCls:r}=e;return{[`${n}${r}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${n}${r}-round`]:{borderRadius:t}}},D4=(e,t)=>Object.assign({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal()},Vb(e)),qre=e=>{const{borderRadiusSM:t,skeletonButtonCls:n,controlHeight:r,controlHeightLG:i,controlHeightSM:o,gradientFromColor:a,calc:l}=e;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[n]:Object.assign({display:"inline-block",verticalAlign:"top",background:a,borderRadius:t,width:l(r).mul(2).equal(),minWidth:l(r).mul(2).equal()},D4(r,l))},L4(e,r,n)),{[`${n}-lg`]:Object.assign({},D4(i,l))}),L4(e,i,`${n}-lg`)),{[`${n}-sm`]:Object.assign({},D4(o,l))}),L4(e,o,`${n}-sm`))},Xre=e=>{const{componentCls:t,skeletonAvatarCls:n,skeletonTitleCls:r,skeletonParagraphCls:i,skeletonButtonCls:o,skeletonInputCls:a,skeletonImageCls:l,controlHeight:c,controlHeightLG:u,controlHeightSM:p,gradientFromColor:h,padding:m,marginSM:g,borderRadius:b,titleHeight:E,blockRadius:x,paragraphLiHeight:S,controlHeightXS:C,paragraphMarginTop:_}=e;return{[t]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:m,verticalAlign:"top",[n]:Object.assign({display:"inline-block",verticalAlign:"top",background:h},wf(c)),[`${n}-circle`]:{borderRadius:"50%"},[`${n}-lg`]:Object.assign({},wf(u)),[`${n}-sm`]:Object.assign({},wf(p))},[`${t}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[r]:{width:"100%",height:E,background:h,borderRadius:x,[`+ ${i}`]:{marginBlockStart:p}},[i]:{padding:0,"> li":{width:"100%",height:S,listStyle:"none",background:h,borderRadius:x,"+ li":{marginBlockStart:C}}},[`${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:g,[`+ ${i}`]:{marginBlockStart:_}}},[`${t}${t}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},qre(e)),Kre(e)),Vre(e)),Gre(e)),[`${t}${t}-block`]:{width:"100%",[o]:{width:"100%"},[a]:{width:"100%"}},[`${t}${t}-active`]:{[`
${r},
${i} > li,
${n},
${o},
${a},
${l}
`]:Object.assign({},Ure(e))}}},Yre=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}},d1=Fn("Skeleton",e=>{const{componentCls:t,calc:n}=e,r=hn(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[Xre(r)]},Yre,{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),Qre=e=>{const{prefixCls:t,className:n,rootClassName:r,active:i,shape:o="circle",size:a="default"}=e,{getPrefixCls:l}=d.useContext(At),c=l("skeleton",t),[u,p,h]=d1(c),m=ir(e,["prefixCls","className"]),g=le(c,`${c}-element`,{[`${c}-active`]:i},n,r,p,h);return u(d.createElement("div",{className:g},d.createElement(Kb,Object.assign({prefixCls:`${c}-avatar`,shape:o,size:a},m))))},Zre=e=>{const{prefixCls:t,className:n,rootClassName:r,active:i,block:o=!1,size:a="default"}=e,{getPrefixCls:l}=d.useContext(At),c=l("skeleton",t),[u,p,h]=d1(c),m=ir(e,["prefixCls"]),g=le(c,`${c}-element`,{[`${c}-active`]:i,[`${c}-block`]:o},n,r,p,h);return u(d.createElement("div",{className:g},d.createElement(Kb,Object.assign({prefixCls:`${c}-button`,size:a},m))))},Jre="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",eie=e=>{const{prefixCls:t,className:n,rootClassName:r,style:i,active:o}=e,{getPrefixCls:a}=d.useContext(At),l=a("skeleton",t),[c,u,p]=d1(l),h=le(l,`${l}-element`,{[`${l}-active`]:o},n,r,u,p);return c(d.createElement("div",{className:h},d.createElement("div",{className:le(`${l}-image`,n),style:i},d.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${l}-image-svg`},d.createElement("title",null,"Image placeholder"),d.createElement("path",{d:Jre,className:`${l}-image-path`})))))},tie=e=>{const{prefixCls:t,className:n,rootClassName:r,active:i,block:o,size:a="default"}=e,{getPrefixCls:l}=d.useContext(At),c=l("skeleton",t),[u,p,h]=d1(c),m=ir(e,["prefixCls"]),g=le(c,`${c}-element`,{[`${c}-active`]:i,[`${c}-block`]:o},n,r,p,h);return u(d.createElement("div",{className:g},d.createElement(Kb,Object.assign({prefixCls:`${c}-input`,size:a},m))))},nie=e=>{const{prefixCls:t,className:n,rootClassName:r,style:i,active:o,children:a}=e,{getPrefixCls:l}=d.useContext(At),c=l("skeleton",t),[u,p,h]=d1(c),m=le(c,`${c}-element`,{[`${c}-active`]:o},p,n,r,h);return u(d.createElement("div",{className:m},d.createElement("div",{className:le(`${c}-image`,n),style:i},a)))},rie=(e,t)=>{const{width:n,rows:r=2}=t;if(Array.isArray(n))return n[e];if(r-1===e)return n},iie=e=>{const{prefixCls:t,className:n,style:r,rows:i}=e,o=Xe(new Array(i)).map((a,l)=>d.createElement("li",{key:l,style:{width:rie(l,e)}}));return d.createElement("ul",{className:le(t,n),style:r},o)},oie=e=>{let{prefixCls:t,className:n,width:r,style:i}=e;return d.createElement("h3",{className:le(t,n),style:Object.assign({width:r},i)})};function F4(e){return e&&typeof e=="object"?e:{}}function aie(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function lie(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}function sie(e,t){const n={};return(!e||!t)&&(n.width="61%"),!e&&t?n.rows=3:n.rows=2,n}const Xu=e=>{const{prefixCls:t,loading:n,className:r,rootClassName:i,style:o,children:a,avatar:l=!1,title:c=!0,paragraph:u=!0,active:p,round:h}=e,{getPrefixCls:m,direction:g,skeleton:b}=d.useContext(At),E=m("skeleton",t),[x,S,C]=d1(E);if(n||!("loading"in e)){const _=!!l,O=!!c,k=!!u;let T;if(_){const M=Object.assign(Object.assign({prefixCls:`${E}-avatar`},aie(O,k)),F4(l));T=d.createElement("div",{className:`${E}-header`},d.createElement(Kb,Object.assign({},M)))}let I;if(O||k){let M;if(O){const j=Object.assign(Object.assign({prefixCls:`${E}-title`},lie(_,k)),F4(c));M=d.createElement(oie,Object.assign({},j))}let R;if(k){const j=Object.assign(Object.assign({prefixCls:`${E}-paragraph`},sie(_,O)),F4(u));R=d.createElement(iie,Object.assign({},j))}I=d.createElement("div",{className:`${E}-content`},M,R)}const $=le(E,{[`${E}-with-avatar`]:_,[`${E}-active`]:p,[`${E}-rtl`]:g==="rtl",[`${E}-round`]:h},b==null?void 0:b.className,r,i,S,C);return x(d.createElement("div",{className:$,style:Object.assign(Object.assign({},b==null?void 0:b.style),o)},T,I))}return a??null};Xu.Button=Zre;Xu.Avatar=Qre;Xu.Input=tie;Xu.Image=eie;Xu.Node=nie;function CO(){}const cie=d.createContext({add:CO,remove:CO});function uie(e){const t=d.useContext(cie),n=d.useRef(null);return Kn(i=>{if(i){const o=e?i.querySelector(e):i;t.add(o),n.current=o}else t.remove(n.current)})}const SO=()=>{const{cancelButtonProps:e,cancelTextLocale:t,onCancel:n}=d.useContext($m);return fe.createElement(Hn,Object.assign({onClick:n},e),t)},EO=()=>{const{confirmLoading:e,okButtonProps:t,okType:n,okTextLocale:r,onOk:i}=d.useContext($m);return fe.createElement(Hn,Object.assign({},wD(n),{loading:e,onClick:i},t),r)};function XD(e,t){return fe.createElement("span",{className:`${e}-close-x`},t||fe.createElement(qu,{className:`${e}-close-icon`}))}const YD=e=>{const{okText:t,okType:n="primary",cancelText:r,confirmLoading:i,onOk:o,onCancel:a,okButtonProps:l,cancelButtonProps:c,footer:u}=e,[p]=jl("Modal",$L()),h=t||(p==null?void 0:p.okText),m=r||(p==null?void 0:p.cancelText),g={confirmLoading:i,okButtonProps:l,cancelButtonProps:c,okTextLocale:h,cancelTextLocale:m,okType:n,onOk:o,onCancel:a},b=fe.useMemo(()=>g,Xe(Object.values(g)));let E;return typeof u=="function"||typeof u>"u"?(E=fe.createElement(fe.Fragment,null,fe.createElement(SO,null),fe.createElement(EO,null)),typeof u=="function"&&(E=u(E,{OkBtn:EO,CancelBtn:SO})),E=fe.createElement($D,{value:b},E)):E=u,fe.createElement(E3,{disabled:!1},E)},die=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"}}}},fie=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},pie=(e,t)=>{const{prefixCls:n,componentCls:r,gridColumns:i}=e,o={};for(let a=i;a>=0;a--)a===0?(o[`${r}${t}-${a}`]={display:"none"},o[`${r}-push-${a}`]={insetInlineStart:"auto"},o[`${r}-pull-${a}`]={insetInlineEnd:"auto"},o[`${r}${t}-push-${a}`]={insetInlineStart:"auto"},o[`${r}${t}-pull-${a}`]={insetInlineEnd:"auto"},o[`${r}${t}-offset-${a}`]={marginInlineStart:0},o[`${r}${t}-order-${a}`]={order:0}):(o[`${r}${t}-${a}`]=[{"--ant-display":"block",display:"block"},{display:"var(--ant-display)",flex:`0 0 ${a/i*100}%`,maxWidth:`${a/i*100}%`}],o[`${r}${t}-push-${a}`]={insetInlineStart:`${a/i*100}%`},o[`${r}${t}-pull-${a}`]={insetInlineEnd:`${a/i*100}%`},o[`${r}${t}-offset-${a}`]={marginInlineStart:`${a/i*100}%`},o[`${r}${t}-order-${a}`]={order:a});return o[`${r}${t}-flex`]={flex:`var(--${n}${t}-flex)`},o},sE=(e,t)=>pie(e,t),hie=(e,t,n)=>({[`@media (min-width: ${ae(t)})`]:Object.assign({},sE(e,n))}),mie=()=>({}),gie=()=>({}),vie=Fn("Grid",die,mie),QD=e=>({xs:e.screenXSMin,sm:e.screenSMMin,md:e.screenMDMin,lg:e.screenLGMin,xl:e.screenXLMin,xxl:e.screenXXLMin}),yie=Fn("Grid",e=>{const t=hn(e,{gridColumns:24}),n=QD(t);return delete n.xs,[fie(t),sE(t,""),sE(t,"-xs"),Object.keys(n).map(r=>hie(t,n[r],`-${r}`)).reduce((r,i)=>Object.assign(Object.assign({},r),i),{})]},gie);function xO(e){return{position:e,inset:0}}const bie=e=>{const{componentCls:t,antCls:n}=e;return[{[`${t}-root`]:{[`${t}${n}-zoom-enter, ${t}${n}-zoom-appear`]:{transform:"none",opacity:0,animationDuration:e.motionDurationSlow,userSelect:"none"},[`${t}${n}-zoom-leave ${t}-content`]:{pointerEvents:"none"},[`${t}-mask`]:Object.assign(Object.assign({},xO("fixed")),{zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,pointerEvents:"none",[`${t}-hidden`]:{display:"none"}}),[`${t}-wrap`]:Object.assign(Object.assign({},xO("fixed")),{zIndex:e.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"})}},{[`${t}-root`]:_D(e)}]},Cie=e=>{const{componentCls:t}=e;return[{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl"},[`${t}-centered`]:{textAlign:"center","&::before":{display:"inline-block",width:0,height:"100%",verticalAlign:"middle",content:'""'},[t]:{top:0,display:"inline-block",paddingBottom:0,textAlign:"start",verticalAlign:"middle"}},[`@media (max-width: ${e.screenSMMax}px)`]:{[t]:{maxWidth:"calc(100vw - 16px)",margin:`${ae(e.marginXS)} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:Object.assign(Object.assign({},zn(e)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${ae(e.calc(e.margin).mul(2).equal())})`,margin:"0 auto",paddingBottom:e.paddingLG,[`${t}-title`]:{margin:0,color:e.titleColor,fontWeight:e.fontWeightStrong,fontSize:e.titleFontSize,lineHeight:e.titleLineHeight,wordWrap:"break-word"},[`${t}-content`]:{position:"relative",backgroundColor:e.contentBg,backgroundClip:"padding-box",border:0,borderRadius:e.borderRadiusLG,boxShadow:e.boxShadow,pointerEvents:"auto",padding:e.contentPadding},[`${t}-close`]:Object.assign({position:"absolute",top:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),insetInlineEnd:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),zIndex:e.calc(e.zIndexPopupBase).add(10).equal(),padding:0,color:e.modalCloseIconColor,fontWeight:e.fontWeightStrong,lineHeight:1,textDecoration:"none",background:"transparent",borderRadius:e.borderRadiusSM,width:e.modalCloseBtnSize,height:e.modalCloseBtnSize,border:0,outline:0,cursor:"pointer",transition:`color ${e.motionDurationMid}, background-color ${e.motionDurationMid}`,"&-x":{display:"flex",fontSize:e.fontSizeLG,fontStyle:"normal",lineHeight:ae(e.modalCloseBtnSize),justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:disabled":{pointerEvents:"none"},"&:hover":{color:e.modalCloseIconHoverColor,backgroundColor:e.colorBgTextHover,textDecoration:"none"},"&:active":{backgroundColor:e.colorBgTextActive}},Fl(e)),[`${t}-header`]:{color:e.colorText,background:e.headerBg,borderRadius:`${ae(e.borderRadiusLG)} ${ae(e.borderRadiusLG)} 0 0`,marginBottom:e.headerMarginBottom,padding:e.headerPadding,borderBottom:e.headerBorderBottom},[`${t}-body`]:{fontSize:e.fontSize,lineHeight:e.lineHeight,wordWrap:"break-word",padding:e.bodyPadding,[`${t}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",margin:`${ae(e.margin)} auto`}},[`${t}-footer`]:{textAlign:"end",background:e.footerBg,marginTop:e.footerMarginTop,padding:e.footerPadding,borderTop:e.footerBorderTop,borderRadius:e.footerBorderRadius,[`> ${e.antCls}-btn + ${e.antCls}-btn`]:{marginInlineStart:e.marginXS}},[`${t}-open`]:{overflow:"hidden"}})},{[`${t}-pure-panel`]:{top:"auto",padding:0,display:"flex",flexDirection:"column",[`${t}-content,
${t}-body,
${t}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${t}-confirm-body`]:{marginBottom:"auto"}}}]},Sie=e=>{const{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},Eie=e=>{const{componentCls:t}=e,n=QD(e);delete n.xs;const r=Object.keys(n).map(i=>({[`@media (min-width: ${ae(n[i])})`]:{width:`var(--${t.replace(".","")}-${i}-width)`}}));return{[`${t}-root`]:{[t]:[{width:`var(--${t.replace(".","")}-xs-width)`}].concat(Xe(r))}}},ZD=e=>{const t=e.padding,n=e.fontSizeHeading5,r=e.lineHeightHeading5;return hn(e,{modalHeaderHeight:e.calc(e.calc(r).mul(n).equal()).add(e.calc(t).mul(2).equal()).equal(),modalFooterBorderColorSplit:e.colorSplit,modalFooterBorderStyle:e.lineType,modalFooterBorderWidth:e.lineWidth,modalCloseIconColor:e.colorIcon,modalCloseIconHoverColor:e.colorIconHover,modalCloseBtnSize:e.controlHeight,modalConfirmIconSize:e.fontHeight,modalTitleHeight:e.calc(e.titleFontSize).mul(e.titleLineHeight).equal()})},JD=e=>({footerBg:"transparent",headerBg:e.colorBgElevated,titleLineHeight:e.lineHeightHeading5,titleFontSize:e.fontSizeHeading5,contentBg:e.colorBgElevated,titleColor:e.colorTextHeading,contentPadding:e.wireframe?0:`${ae(e.paddingMD)} ${ae(e.paddingContentHorizontalLG)}`,headerPadding:e.wireframe?`${ae(e.padding)} ${ae(e.paddingLG)}`:0,headerBorderBottom:e.wireframe?`${ae(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",headerMarginBottom:e.wireframe?0:e.marginXS,bodyPadding:e.wireframe?e.paddingLG:0,footerPadding:e.wireframe?`${ae(e.paddingXS)} ${ae(e.padding)}`:0,footerBorderTop:e.wireframe?`${ae(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",footerBorderRadius:e.wireframe?`0 0 ${ae(e.borderRadiusLG)} ${ae(e.borderRadiusLG)}`:0,footerMarginTop:e.wireframe?0:e.marginSM,confirmBodyPadding:e.wireframe?`${ae(e.padding*2)} ${ae(e.padding*2)} ${ae(e.paddingLG)}`:0,confirmIconMarginInlineEnd:e.wireframe?e.margin:e.marginSM,confirmBtnsMarginTop:e.wireframe?e.marginLG:e.marginSM}),eF=Fn("Modal",e=>{const t=ZD(e);return[Cie(t),Sie(t),bie(t),km(t,"zoom"),Eie(t)]},JD,{unitless:{titleLineHeight:!0}});var xie=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 cE;const wie=e=>{cE={x:e.pageX,y:e.pageY},setTimeout(()=>{cE=null},100)};zre()&&document.documentElement.addEventListener("click",wie,!0);const tF=e=>{var t;const{getPopupContainer:n,getPrefixCls:r,direction:i,modal:o}=d.useContext(At),a=se=>{const{onCancel:ne}=e;ne==null||ne(se)},l=se=>{const{onOk:ne}=e;ne==null||ne(se)},{prefixCls:c,className:u,rootClassName:p,open:h,wrapClassName:m,centered:g,getContainer:b,focusTriggerAfterClose:E=!0,style:x,visible:S,width:C=520,footer:_,classNames:O,styles:k,children:T,loading:I}=e,$=xie(e,["prefixCls","className","rootClassName","open","wrapClassName","centered","getContainer","focusTriggerAfterClose","style","visible","width","footer","classNames","styles","children","loading"]),M=r("modal",c),R=r(),j=Gr(M),[D,L,B]=eF(M,j),H=le(m,{[`${M}-centered`]:!!g,[`${M}-wrap-rtl`]:i==="rtl"}),W=_!==null&&!I?d.createElement(YD,Object.assign({},e,{onOk:l,onCancel:a})):null,[z,V,X]=GD(uy(e),uy(o),{closable:!0,closeIcon:d.createElement(qu,{className:`${M}-close-icon`}),closeIconRender:se=>XD(M,se)}),A=uie(`.${M}-content`),[P,Y]=_m("Modal",$.zIndex),[U,Q]=d.useMemo(()=>C&&typeof C=="object"?[void 0,C]:[C,void 0],[C]),ee=d.useMemo(()=>{const se={};return Q&&Object.keys(Q).forEach(ne=>{const oe=Q[ne];oe!==void 0&&(se[`--${M}-${ne}-width`]=typeof oe=="number"?`${oe}px`:oe)}),se},[Q]);return D(d.createElement(Jh,{form:!0,space:!0},d.createElement(Rb.Provider,{value:Y},d.createElement(LD,Object.assign({width:U},$,{zIndex:P,getContainer:b===void 0?n:b,prefixCls:M,rootClassName:le(L,p,B,j),footer:W,visible:h??S,mousePosition:(t=$.mousePosition)!==null&&t!==void 0?t:cE,onClose:a,closable:z&&{disabled:X,closeIcon:V},closeIcon:V,focusTriggerAfterClose:E,transitionName:xc(R,"zoom",e.transitionName),maskTransitionName:xc(R,"fade",e.maskTransitionName),className:le(L,u,o==null?void 0:o.className),style:Object.assign(Object.assign(Object.assign({},o==null?void 0:o.style),x),ee),classNames:Object.assign(Object.assign(Object.assign({},o==null?void 0:o.classNames),O),{wrapper:le(H,O==null?void 0:O.wrapper)}),styles:Object.assign(Object.assign({},o==null?void 0:o.styles),k),panelRef:A}),I?d.createElement(Xu,{active:!0,title:!1,paragraph:{rows:4},className:`${M}-body-skeleton`}):T))))},_ie=e=>{const{componentCls:t,titleFontSize:n,titleLineHeight:r,modalConfirmIconSize:i,fontSize:o,lineHeight:a,modalTitleHeight:l,fontHeight:c,confirmBodyPadding:u}=e,p=`${t}-confirm`;return{[p]:{"&-rtl":{direction:"rtl"},[`${e.antCls}-modal-header`]:{display:"none"},[`${p}-body-wrapper`]:Object.assign({},sl()),[`&${t} ${t}-body`]:{padding:u},[`${p}-body`]:{display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${e.iconCls}`]:{flex:"none",fontSize:i,marginInlineEnd:e.confirmIconMarginInlineEnd,marginTop:e.calc(e.calc(c).sub(i).equal()).div(2).equal()},[`&-has-title > ${e.iconCls}`]:{marginTop:e.calc(e.calc(l).sub(i).equal()).div(2).equal()}},[`${p}-paragraph`]:{display:"flex",flexDirection:"column",flex:"auto",rowGap:e.marginXS,maxWidth:`calc(100% - ${ae(e.marginSM)})`},[`${e.iconCls} + ${p}-paragraph`]:{maxWidth:`calc(100% - ${ae(e.calc(e.modalConfirmIconSize).add(e.marginSM).equal())})`},[`${p}-title`]:{color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:n,lineHeight:r},[`${p}-content`]:{color:e.colorText,fontSize:o,lineHeight:a},[`${p}-btns`]:{textAlign:"end",marginTop:e.confirmBtnsMarginTop,[`${e.antCls}-btn + ${e.antCls}-btn`]:{marginBottom:0,marginInlineStart:e.marginXS}}},[`${p}-error ${p}-body > ${e.iconCls}`]:{color:e.colorError},[`${p}-warning ${p}-body > ${e.iconCls},
${p}-confirm ${p}-body > ${e.iconCls}`]:{color:e.colorWarning},[`${p}-info ${p}-body > ${e.iconCls}`]:{color:e.colorInfo},[`${p}-success ${p}-body > ${e.iconCls}`]:{color:e.colorSuccess}}},Tie=s1(["Modal","confirm"],e=>{const t=ZD(e);return[_ie(t)]},JD,{order:-1e3});var Oie=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 nF(e){const{prefixCls:t,icon:n,okText:r,cancelText:i,confirmPrefixCls:o,type:a,okCancel:l,footer:c,locale:u}=e,p=Oie(e,["prefixCls","icon","okText","cancelText","confirmPrefixCls","type","okCancel","footer","locale"]);let h=n;if(!n&&n!==null)switch(a){case"info":h=d.createElement(dD,null);break;case"success":h=d.createElement(wm,null);break;case"error":h=d.createElement(Gu,null);break;default:h=d.createElement(Ab,null)}const m=l??a==="confirm",g=e.autoFocusButton===null?!1:e.autoFocusButton||"ok",[b]=jl("Modal"),E=u||b,x=r||(m?E==null?void 0:E.okText:E==null?void 0:E.justOkText),S=i||(E==null?void 0:E.cancelText),C=Object.assign({autoFocusButton:g,cancelTextLocale:S,okTextLocale:x,mergedOkCancel:m},p),_=d.useMemo(()=>C,Xe(Object.values(C))),O=d.createElement(d.Fragment,null,d.createElement(Q7,null),d.createElement(Z7,null)),k=e.title!==void 0&&e.title!==null,T=`${o}-body`;return d.createElement("div",{className:`${o}-body-wrapper`},d.createElement("div",{className:le(T,{[`${T}-has-title`]:k})},h,d.createElement("div",{className:`${o}-paragraph`},k&&d.createElement("span",{className:`${o}-title`},e.title),d.createElement("div",{className:`${o}-content`},e.content))),c===void 0||typeof c=="function"?d.createElement($D,{value:_},d.createElement("div",{className:`${o}-btns`},typeof c=="function"?c(O,{OkBtn:Z7,CancelBtn:Q7}):O)):c,d.createElement(Tie,{prefixCls:t}))}const Iie=e=>{const{close:t,zIndex:n,maskStyle:r,direction:i,prefixCls:o,wrapClassName:a,rootPrefixCls:l,bodyStyle:c,closable:u=!1,onConfirm:p,styles:h}=e,m=`${o}-confirm`,g=e.width||416,b=e.style||{},E=e.mask===void 0?!0:e.mask,x=e.maskClosable===void 0?!1:e.maskClosable,S=le(m,`${m}-${e.type}`,{[`${m}-rtl`]:i==="rtl"},e.className),[,C]=Fi(),_=d.useMemo(()=>n!==void 0?n:C.zIndexPopupBase+gD,[n,C]);return d.createElement(tF,Object.assign({},e,{className:S,wrapClassName:le({[`${m}-centered`]:!!e.centered},a),onCancel:()=>{t==null||t({triggerCancel:!0}),p==null||p(!1)},title:"",footer:null,transitionName:xc(l||"","zoom",e.transitionName),maskTransitionName:xc(l||"","fade",e.maskTransitionName),mask:E,maskClosable:x,style:b,styles:Object.assign({body:c,mask:r},h),width:g,zIndex:_,closable:u}),d.createElement(nF,Object.assign({},e,{confirmPrefixCls:m})))},rF=e=>{const{rootPrefixCls:t,iconPrefixCls:n,direction:r,theme:i}=e;return d.createElement(Hl,{prefixCls:t,iconPrefixCls:n,direction:r,theme:i},d.createElement(Iie,Object.assign({},e)))},bu=[];let iF="";function oF(){return iF}const kie=e=>{var t,n;const{prefixCls:r,getContainer:i,direction:o}=e,a=$L(),l=d.useContext(At),c=oF()||l.getPrefixCls(),u=r||`${c}-modal`;let p=i;return p===!1&&(p=void 0),fe.createElement(rF,Object.assign({},e,{rootPrefixCls:c,prefixCls:u,iconPrefixCls:l.iconPrefixCls,theme:l.theme,direction:o??l.direction,locale:(n=(t=l.locale)===null||t===void 0?void 0:t.Modal)!==null&&n!==void 0?n:a,getContainer:p}))};function Am(e){const t=aD(),n=document.createDocumentFragment();let r=Object.assign(Object.assign({},e),{close:c,open:!0}),i,o;function a(){for(var p,h=arguments.length,m=new Array(h),g=0;g<h;g++)m[g]=arguments[g];if(m.some(x=>x==null?void 0:x.triggerCancel)){var E;(p=e.onCancel)===null||p===void 0||(E=p).call.apply(E,[e,()=>{}].concat(Xe(m.slice(1))))}for(let x=0;x<bu.length;x++)if(bu[x]===c){bu.splice(x,1);break}o()}function l(p){clearTimeout(i),i=setTimeout(()=>{const h=t.getPrefixCls(void 0,oF()),m=t.getIconPrefixCls(),g=t.getTheme(),b=fe.createElement(kie,Object.assign({},p));o=O3()(fe.createElement(Hl,{prefixCls:h,iconPrefixCls:m,theme:g},t.holderRender?t.holderRender(b):b),n)})}function c(){for(var p=arguments.length,h=new Array(p),m=0;m<p;m++)h[m]=arguments[m];r=Object.assign(Object.assign({},r),{open:!1,afterClose:()=>{typeof e.afterClose=="function"&&e.afterClose(),a.apply(this,h)}}),r.visible&&delete r.visible,l(r)}function u(p){typeof p=="function"?r=p(r):r=Object.assign(Object.assign({},r),p),l(r)}return l(r),bu.push(c),{destroy:c,update:u}}function aF(e){return Object.assign(Object.assign({},e),{type:"warning"})}function lF(e){return Object.assign(Object.assign({},e),{type:"info"})}function sF(e){return Object.assign(Object.assign({},e),{type:"success"})}function cF(e){return Object.assign(Object.assign({},e),{type:"error"})}function uF(e){return Object.assign(Object.assign({},e),{type:"confirm"})}function $ie(e){let{rootPrefixCls:t}=e;iF=t}var Nie=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 Aie=(e,t)=>{var n,{afterClose:r,config:i}=e,o=Nie(e,["afterClose","config"]);const[a,l]=d.useState(!0),[c,u]=d.useState(i),{direction:p,getPrefixCls:h}=d.useContext(At),m=h("modal"),g=h(),b=()=>{var C;r(),(C=c.afterClose)===null||C===void 0||C.call(c)},E=function(){var C;l(!1);for(var _=arguments.length,O=new Array(_),k=0;k<_;k++)O[k]=arguments[k];if(O.some($=>$==null?void 0:$.triggerCancel)){var I;(C=c.onCancel)===null||C===void 0||(I=C).call.apply(I,[c,()=>{}].concat(Xe(O.slice(1))))}};d.useImperativeHandle(t,()=>({destroy:E,update:C=>{u(_=>Object.assign(Object.assign({},_),C))}}));const x=(n=c.okCancel)!==null&&n!==void 0?n:c.type==="confirm",[S]=jl("Modal",Pl.Modal);return d.createElement(rF,Object.assign({prefixCls:m,rootPrefixCls:g},c,{close:E,open:a,afterClose:b,okText:c.okText||(x?S==null?void 0:S.okText:S==null?void 0:S.justOkText),direction:c.direction||p,cancelText:c.cancelText||(S==null?void 0:S.cancelText)},o))},Rie=d.forwardRef(Aie);let wO=0;const Mie=d.memo(d.forwardRef((e,t)=>{const[n,r]=Vee();return d.useImperativeHandle(t,()=>({patchElement:r}),[]),d.createElement(d.Fragment,null,n)}));function Pie(){const e=d.useRef(null),[t,n]=d.useState([]);d.useEffect(()=>{t.length&&(Xe(t).forEach(a=>{a()}),n([]))},[t]);const r=d.useCallback(o=>function(l){var c;wO+=1;const u=d.createRef();let p;const h=new Promise(x=>{p=x});let m=!1,g;const b=d.createElement(Rie,{key:`modal-${wO}`,config:o(l),ref:u,afterClose:()=>{g==null||g()},isSilent:()=>m,onConfirm:x=>{p(x)}});return g=(c=e.current)===null||c===void 0?void 0:c.patchElement(b),g&&bu.push(g),{destroy:()=>{function x(){var S;(S=u.current)===null||S===void 0||S.destroy()}u.current?x():n(S=>[].concat(Xe(S),[x]))},update:x=>{function S(){var C;(C=u.current)===null||C===void 0||C.update(x)}u.current?S():n(C=>[].concat(Xe(C),[S]))},then:x=>(m=!0,h.then(x))}},[]);return[d.useMemo(()=>({info:r(lF),success:r(sF),error:r(cF),warning:r(aF),confirm:r(uF)}),[]),d.createElement(Mie,{key:"modal-holder",ref:e})]}const Lie=fe.createContext({});function dF(e){return t=>d.createElement(Hl,{theme:{token:{motion:!1,zIndexPopupBase:0}}},d.createElement(e,Object.assign({},t)))}const fF=(e,t,n,r,i)=>dF(a=>{const{prefixCls:l,style:c}=a,u=d.useRef(null),[p,h]=d.useState(0),[m,g]=d.useState(0),[b,E]=_r(!1,{value:a.open}),{getPrefixCls:x}=d.useContext(At),S=x(r||"select",l);d.useEffect(()=>{if(E(!0),typeof ResizeObserver<"u"){const O=new ResizeObserver(T=>{const I=T[0].target;h(I.offsetHeight+8),g(I.offsetWidth)}),k=setInterval(()=>{var T;const I=i?`.${i(S)}`:`.${S}-dropdown`,$=(T=u.current)===null||T===void 0?void 0:T.querySelector(I);$&&(clearInterval(k),O.observe($))},10);return()=>{clearInterval(k),O.disconnect()}}},[]);let C=Object.assign(Object.assign({},a),{style:Object.assign(Object.assign({},c),{margin:0}),open:b,visible:b,getPopupContainer:()=>u.current});t&&Object.assign(C,{[t]:{overflow:{adjustX:!1,adjustY:!1}}});const _={paddingBottom:p,position:"relative",minWidth:m};return d.createElement("div",{ref:u,style:_},d.createElement(e,Object.assign({},C)))}),z3=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 Gb=function(t){var n=t.className,r=t.customizeIcon,i=t.customizeIconProps,o=t.children,a=t.onMouseDown,l=t.onClick,c=typeof r=="function"?r(i):r;return d.createElement("span",{className:n,onMouseDown:function(p){p.preventDefault(),a==null||a(p)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:l,"aria-hidden":!0},c!==void 0?c:d.createElement("span",{className:le(n.split(/\s+/).map(function(u){return"".concat(u,"-icon")}))},o))},Die=function(t,n,r,i,o){var a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,l=arguments.length>6?arguments[6]:void 0,c=arguments.length>7?arguments[7]:void 0,u=fe.useMemo(function(){if(Nt(i)==="object")return i.clearIcon;if(o)return o},[i,o]),p=fe.useMemo(function(){return!!(!a&&i&&(r.length||l)&&!(c==="combobox"&&l===""))},[i,a,r.length,l,c]);return{allowClear:p,clearIcon:fe.createElement(Gb,{className:"".concat(t,"-clear"),onMouseDown:n,customizeIcon:u},"×")}},pF=d.createContext(null);function Fie(){return d.useContext(pF)}function Bie(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,t=d.useState(!1),n=_e(t,2),r=n[0],i=n[1],o=d.useRef(null),a=function(){window.clearTimeout(o.current)};d.useEffect(function(){return a},[]);var l=function(u,p){a(),o.current=window.setTimeout(function(){i(u),p&&p()},e)};return[r,l,a]}function hF(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,t=d.useRef(null),n=d.useRef(null);d.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 jie(e,t,n,r){var i=d.useRef(null);i.current={open:t,triggerOpen:n,customizedTrigger:r},d.useEffect(function(){function o(a){var l;if(!((l=i.current)!==null&&l!==void 0&&l.customizedTrigger)){var c=a.target;c.shadowRoot&&a.composed&&(c=a.composedPath()[0]||c),i.current.open&&e().filter(function(u){return u}).every(function(u){return!u.contains(c)&&u!==c})&&i.current.triggerOpen(!1)}}return window.addEventListener("mousedown",o),function(){return window.removeEventListener("mousedown",o)}},[])}function Hie(e){return e&&![lt.ESC,lt.SHIFT,lt.BACKSPACE,lt.TAB,lt.WIN_KEY,lt.ALT,lt.META,lt.WIN_KEY_RIGHT,lt.CTRL,lt.SEMICOLON,lt.EQUALS,lt.CAPS_LOCK,lt.CONTEXT_MENU,lt.F1,lt.F2,lt.F3,lt.F4,lt.F5,lt.F6,lt.F7,lt.F8,lt.F9,lt.F10,lt.F11,lt.F12].includes(e)}var zie=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],Id=void 0;function Wie(e,t){var n=e.prefixCls,r=e.invalidate,i=e.item,o=e.renderItem,a=e.responsive,l=e.responsiveDisabled,c=e.registerSize,u=e.itemKey,p=e.className,h=e.style,m=e.children,g=e.display,b=e.order,E=e.component,x=E===void 0?"div":E,S=Yt(e,zie),C=a&&!g;function _($){c(u,$)}d.useEffect(function(){return function(){_(null)}},[]);var O=o&&i!==Id?o(i):m,k;r||(k={opacity:C?0:1,height:C?0:Id,overflowY:C?"hidden":Id,order:a?b:Id,pointerEvents:C?"none":Id,position:C?"absolute":Id});var T={};C&&(T["aria-hidden"]=!0);var I=d.createElement(x,Ve({className:le(!r&&n,p),style:te(te({},k),h)},T,S,{ref:t}),O);return a&&(I=d.createElement(qi,{onResize:function(M){var R=M.offsetWidth;_(R)},disabled:l},I)),I}var nh=d.forwardRef(Wie);nh.displayName="Item";function Uie(e){if(typeof MessageChannel>"u")kn(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}function Kie(){var e=d.useRef(null),t=function(r){e.current||(e.current=[],Uie(function(){Ta.unstable_batchedUpdates(function(){e.current.forEach(function(i){i()}),e.current=null})})),e.current.push(r)};return t}function hp(e,t){var n=d.useState(t),r=_e(n,2),i=r[0],o=r[1],a=Kn(function(l){e(function(){o(l)})});return[i,a]}var dy=fe.createContext(null),Vie=["component"],Gie=["className"],qie=["className"],Xie=function(t,n){var r=d.useContext(dy);if(!r){var i=t.component,o=i===void 0?"div":i,a=Yt(t,Vie);return d.createElement(o,Ve({},a,{ref:n}))}var l=r.className,c=Yt(r,Gie),u=t.className,p=Yt(t,qie);return d.createElement(dy.Provider,{value:null},d.createElement(nh,Ve({ref:n,className:le(l,u)},c,p)))},mF=d.forwardRef(Xie);mF.displayName="RawItem";var Yie=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],gF="responsive",vF="invalidate";function Qie(e){return"+ ".concat(e.length," ...")}function Zie(e,t){var n=e.prefixCls,r=n===void 0?"rc-overflow":n,i=e.data,o=i===void 0?[]:i,a=e.renderItem,l=e.renderRawItem,c=e.itemKey,u=e.itemWidth,p=u===void 0?10:u,h=e.ssr,m=e.style,g=e.className,b=e.maxCount,E=e.renderRest,x=e.renderRawRest,S=e.suffix,C=e.component,_=C===void 0?"div":C,O=e.itemComponent,k=e.onVisibleChange,T=Yt(e,Yie),I=h==="full",$=Kie(),M=hp($,null),R=_e(M,2),j=R[0],D=R[1],L=j||0,B=hp($,new Map),H=_e(B,2),W=H[0],z=H[1],V=hp($,0),X=_e(V,2),A=X[0],P=X[1],Y=hp($,0),U=_e(Y,2),Q=U[0],ee=U[1],se=hp($,0),ne=_e(se,2),oe=ne[0],pe=ne[1],be=d.useState(null),ue=_e(be,2),de=ue[0],re=ue[1],me=d.useState(null),ge=_e(me,2),Ae=ge[0],De=ge[1],ze=d.useMemo(function(){return Ae===null&&I?Number.MAX_SAFE_INTEGER:Ae||0},[Ae,j]),et=d.useState(!1),Ie=_e(et,2),Te=Ie[0],Ue=Ie[1],Le="".concat(r,"-item"),je=Math.max(A,Q),Ge=b===gF,qe=o.length&&Ge,Ce=b===vF,ke=qe||typeof b=="number"&&o.length>b,We=d.useMemo(function(){var bt=o;return qe?j===null&&I?bt=o:bt=o.slice(0,Math.min(o.length,L/p)):typeof b=="number"&&(bt=o.slice(0,b)),bt},[o,p,j,b,qe]),Pe=d.useMemo(function(){return qe?o.slice(ze+1):o.slice(We.length)},[o,We,qe,ze]),Be=d.useCallback(function(bt,gt){var ft;return typeof c=="function"?c(bt):(ft=c&&(bt==null?void 0:bt[c]))!==null&&ft!==void 0?ft:gt},[c]),He=d.useCallback(a||function(bt){return bt},[a]);function Qe(bt,gt,ft){Ae===bt&&(gt===void 0||gt===de)||(De(bt),ft||(Ue(bt<o.length-1),k==null||k(bt)),gt!==void 0&&re(gt))}function ie(bt,gt){D(gt.clientWidth)}function xe(bt,gt){z(function(ft){var he=new Map(ft);return gt===null?he.delete(bt):he.set(bt,gt),he})}function Ne(bt,gt){ee(gt),P(Q)}function $e(bt,gt){pe(gt)}function Ye(bt){return W.get(Be(We[bt],bt))}xn(function(){if(L&&typeof je=="number"&&We){var bt=oe,gt=We.length,ft=gt-1;if(!gt){Qe(0,null);return}for(var he=0;he<gt;he+=1){var we=Ye(he);if(I&&(we=we||0),we===void 0){Qe(he-1,void 0,!0);break}if(bt+=we,ft===0&&bt<=L||he===ft-1&&bt+Ye(ft)<=L){Qe(ft,null);break}else if(bt+je>L){Qe(he-1,bt-we-oe+Q);break}}S&&Ye(0)+oe>L&&re(null)}},[L,W,Q,oe,Be,We]);var ht=Te&&!!Pe.length,It={};de!==null&&qe&&(It={position:"absolute",left:de,top:0});var Jt={prefixCls:Le,responsive:qe,component:O,invalidate:Ce},Vt=l?function(bt,gt){var ft=Be(bt,gt);return d.createElement(dy.Provider,{key:ft,value:te(te({},Jt),{},{order:gt,item:bt,itemKey:ft,registerSize:xe,display:gt<=ze})},l(bt,gt))}:function(bt,gt){var ft=Be(bt,gt);return d.createElement(nh,Ve({},Jt,{order:gt,key:ft,item:bt,renderItem:He,itemKey:ft,registerSize:xe,display:gt<=ze}))},en,rn={order:ht?ze:Number.MAX_SAFE_INTEGER,className:"".concat(Le,"-rest"),registerSize:Ne,display:ht};if(x)x&&(en=d.createElement(dy.Provider,{value:te(te({},Jt),rn)},x(Pe)));else{var Gt=E||Qie;en=d.createElement(nh,Ve({},Jt,rn),typeof Gt=="function"?Gt(Pe):Gt)}var Ft=d.createElement(_,Ve({className:le(!Ce&&r,g),style:m,ref:t},T),We.map(Vt),ke?en:null,S&&d.createElement(nh,Ve({},Jt,{responsive:Ge,responsiveDisabled:!qe,order:ze,className:"".concat(Le,"-suffix"),registerSize:$e,display:!0,style:It}),S));return Ge&&(Ft=d.createElement(qi,{onResize:ie,disabled:!qe},Ft)),Ft}var Nl=d.forwardRef(Zie);Nl.displayName="Overflow";Nl.Item=mF;Nl.RESPONSIVE=gF;Nl.INVALIDATE=vF;var Jie=function(t,n){var r,i=t.prefixCls,o=t.id,a=t.inputElement,l=t.disabled,c=t.tabIndex,u=t.autoFocus,p=t.autoComplete,h=t.editable,m=t.activeDescendantId,g=t.value,b=t.maxLength,E=t.onKeyDown,x=t.onMouseDown,S=t.onChange,C=t.onPaste,_=t.onCompositionStart,O=t.onCompositionEnd,k=t.onBlur,T=t.open,I=t.attrs,$=a||d.createElement("input",null),M=$,R=M.ref,j=M.props,D=j.onKeyDown,L=j.onChange,B=j.onMouseDown,H=j.onCompositionStart,W=j.onCompositionEnd,z=j.onBlur,V=j.style;return"maxLength"in $.props,$=d.cloneElement($,te(te(te({type:"search"},j),{},{id:o,ref:Zi(n,R),disabled:l,tabIndex:c,autoComplete:p||"off",autoFocus:u,className:le("".concat(i,"-selection-search-input"),(r=$)===null||r===void 0||(r=r.props)===null||r===void 0?void 0:r.className),role:"combobox","aria-expanded":T||!1,"aria-haspopup":"listbox","aria-owns":"".concat(o,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(o,"_list"),"aria-activedescendant":T?m:void 0},I),{},{value:h?g:"",maxLength:b,readOnly:!h,unselectable:h?null:"on",style:te(te({},V),{},{opacity:h?null:0}),onKeyDown:function(A){E(A),D&&D(A)},onMouseDown:function(A){x(A),B&&B(A)},onChange:function(A){S(A),L&&L(A)},onCompositionStart:function(A){_(A),H&&H(A)},onCompositionEnd:function(A){O(A),W&&W(A)},onPaste:C,onBlur:function(A){k(A),z&&z(A)}})),$},yF=d.forwardRef(Jie);function bF(e){return Array.isArray(e)?e:e!==void 0?[e]:[]}var eoe=typeof window<"u"&&window.document&&window.document.documentElement,toe=eoe;function noe(e){return e!=null}function roe(e){return!e&&e!==0}function _O(e){return["string","number"].includes(Nt(e))}function CF(e){var t=void 0;return e&&(_O(e.title)?t=e.title.toString():_O(e.label)&&(t=e.label.toString())),t}function ioe(e,t){toe?d.useLayoutEffect(e,t):d.useEffect(e,t)}function ooe(e){var t;return(t=e.key)!==null&&t!==void 0?t:e.value}var TO=function(t){t.preventDefault(),t.stopPropagation()},aoe=function(t){var n=t.id,r=t.prefixCls,i=t.values,o=t.open,a=t.searchValue,l=t.autoClearSearchValue,c=t.inputRef,u=t.placeholder,p=t.disabled,h=t.mode,m=t.showSearch,g=t.autoFocus,b=t.autoComplete,E=t.activeDescendantId,x=t.tabIndex,S=t.removeIcon,C=t.maxTagCount,_=t.maxTagTextLength,O=t.maxTagPlaceholder,k=O===void 0?function(me){return"+ ".concat(me.length," ...")}:O,T=t.tagRender,I=t.onToggleOpen,$=t.onRemove,M=t.onInputChange,R=t.onInputPaste,j=t.onInputKeyDown,D=t.onInputMouseDown,L=t.onInputCompositionStart,B=t.onInputCompositionEnd,H=t.onInputBlur,W=d.useRef(null),z=d.useState(0),V=_e(z,2),X=V[0],A=V[1],P=d.useState(!1),Y=_e(P,2),U=Y[0],Q=Y[1],ee="".concat(r,"-selection"),se=o||h==="multiple"&&l===!1||h==="tags"?a:"",ne=h==="tags"||h==="multiple"&&l===!1||m&&(o||U);ioe(function(){A(W.current.scrollWidth)},[se]);var oe=function(ge,Ae,De,ze,et){return d.createElement("span",{title:CF(ge),className:le("".concat(ee,"-item"),J({},"".concat(ee,"-item-disabled"),De))},d.createElement("span",{className:"".concat(ee,"-item-content")},Ae),ze&&d.createElement(Gb,{className:"".concat(ee,"-item-remove"),onMouseDown:TO,onClick:et,customizeIcon:S},"×"))},pe=function(ge,Ae,De,ze,et,Ie){var Te=function(Le){TO(Le),I(!o)};return d.createElement("span",{onMouseDown:Te},T({label:Ae,value:ge,disabled:De,closable:ze,onClose:et,isMaxTag:!!Ie}))},be=function(ge){var Ae=ge.disabled,De=ge.label,ze=ge.value,et=!p&&!Ae,Ie=De;if(typeof _=="number"&&(typeof De=="string"||typeof De=="number")){var Te=String(Ie);Te.length>_&&(Ie="".concat(Te.slice(0,_),"..."))}var Ue=function(je){je&&je.stopPropagation(),$(ge)};return typeof T=="function"?pe(ze,Ie,Ae,et,Ue):oe(ge,Ie,Ae,et,Ue)},ue=function(ge){if(!i.length)return null;var Ae=typeof k=="function"?k(ge):k;return typeof T=="function"?pe(void 0,Ae,!1,!1,void 0,!0):oe({title:Ae},Ae,!1)},de=d.createElement("div",{className:"".concat(ee,"-search"),style:{width:X},onFocus:function(){Q(!0)},onBlur:function(){Q(!1)}},d.createElement(yF,{ref:c,open:o,prefixCls:r,id:n,inputElement:null,disabled:p,autoFocus:g,autoComplete:b,editable:ne,activeDescendantId:E,value:se,onKeyDown:j,onMouseDown:D,onChange:M,onPaste:R,onCompositionStart:L,onCompositionEnd:B,onBlur:H,tabIndex:x,attrs:Oi(t,!0)}),d.createElement("span",{ref:W,className:"".concat(ee,"-search-mirror"),"aria-hidden":!0},se," ")),re=d.createElement(Nl,{prefixCls:"".concat(ee,"-overflow"),data:i,renderItem:be,renderRest:ue,suffix:de,itemKey:ooe,maxCount:C});return d.createElement("span",{className:"".concat(ee,"-wrap")},re,!i.length&&!se&&d.createElement("span",{className:"".concat(ee,"-placeholder")},u))},loe=function(t){var n=t.inputElement,r=t.prefixCls,i=t.id,o=t.inputRef,a=t.disabled,l=t.autoFocus,c=t.autoComplete,u=t.activeDescendantId,p=t.mode,h=t.open,m=t.values,g=t.placeholder,b=t.tabIndex,E=t.showSearch,x=t.searchValue,S=t.activeValue,C=t.maxLength,_=t.onInputKeyDown,O=t.onInputMouseDown,k=t.onInputChange,T=t.onInputPaste,I=t.onInputCompositionStart,$=t.onInputCompositionEnd,M=t.onInputBlur,R=t.title,j=d.useState(!1),D=_e(j,2),L=D[0],B=D[1],H=p==="combobox",W=H||E,z=m[0],V=x||"";H&&S&&!L&&(V=S),d.useEffect(function(){H&&B(!1)},[H,S]);var X=p!=="combobox"&&!h&&!E?!1:!!V,A=R===void 0?CF(z):R,P=d.useMemo(function(){return z?null:d.createElement("span",{className:"".concat(r,"-selection-placeholder"),style:X?{visibility:"hidden"}:void 0},g)},[z,X,g,r]);return d.createElement("span",{className:"".concat(r,"-selection-wrap")},d.createElement("span",{className:"".concat(r,"-selection-search")},d.createElement(yF,{ref:o,prefixCls:r,id:i,open:h,inputElement:n,disabled:a,autoFocus:l,autoComplete:c,editable:W,activeDescendantId:u,value:V,onKeyDown:_,onMouseDown:O,onChange:function(U){B(!0),k(U)},onPaste:T,onCompositionStart:I,onCompositionEnd:$,onBlur:M,tabIndex:b,attrs:Oi(t,!0),maxLength:H?C:void 0})),!H&&z?d.createElement("span",{className:"".concat(r,"-selection-item"),title:A,style:X?{visibility:"hidden"}:void 0},z.label):null,P)},soe=function(t,n){var r=d.useRef(null),i=d.useRef(!1),o=t.prefixCls,a=t.open,l=t.mode,c=t.showSearch,u=t.tokenWithEnter,p=t.disabled,h=t.prefix,m=t.autoClearSearchValue,g=t.onSearch,b=t.onSearchSubmit,E=t.onToggleOpen,x=t.onInputKeyDown,S=t.onInputBlur,C=t.domRef;d.useImperativeHandle(n,function(){return{focus:function(A){r.current.focus(A)},blur:function(){r.current.blur()}}});var _=hF(0),O=_e(_,2),k=O[0],T=O[1],I=function(A){var P=A.which,Y=r.current instanceof HTMLTextAreaElement;!Y&&a&&(P===lt.UP||P===lt.DOWN)&&A.preventDefault(),x&&x(A),P===lt.ENTER&&l==="tags"&&!i.current&&!a&&(b==null||b(A.target.value)),!(Y&&!a&&~[lt.UP,lt.DOWN,lt.LEFT,lt.RIGHT].indexOf(P))&&Hie(P)&&E(!0)},$=function(){T(!0)},M=d.useRef(null),R=function(A){g(A,!0,i.current)!==!1&&E(!0)},j=function(){i.current=!0},D=function(A){i.current=!1,l!=="combobox"&&R(A.target.value)},L=function(A){var P=A.target.value;if(u&&M.current&&/[\r\n]/.test(M.current)){var Y=M.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");P=P.replace(Y,M.current)}M.current=null,R(P)},B=function(A){var P=A.clipboardData,Y=P==null?void 0:P.getData("text");M.current=Y||""},H=function(A){var P=A.target;if(P!==r.current){var Y=document.body.style.msTouchAction!==void 0;Y?setTimeout(function(){r.current.focus()}):r.current.focus()}},W=function(A){var P=k();A.target!==r.current&&!P&&!(l==="combobox"&&p)&&A.preventDefault(),(l!=="combobox"&&(!c||!P)||!a)&&(a&&m!==!1&&g("",!0,!1),E())},z={inputRef:r,onInputKeyDown:I,onInputMouseDown:$,onInputChange:L,onInputPaste:B,onInputCompositionStart:j,onInputCompositionEnd:D,onInputBlur:S},V=l==="multiple"||l==="tags"?d.createElement(aoe,Ve({},t,z)):d.createElement(loe,Ve({},t,z));return d.createElement("div",{ref:C,className:"".concat(o,"-selector"),onClick:H,onMouseDown:W},h&&d.createElement("div",{className:"".concat(o,"-prefix")},h),V)},coe=d.forwardRef(soe);function uoe(e){var t=e.prefixCls,n=e.align,r=e.arrow,i=e.arrowPos,o=r||{},a=o.className,l=o.content,c=i.x,u=c===void 0?0:c,p=i.y,h=p===void 0?0:p,m=d.useRef();if(!n||!n.points)return null;var g={position:"absolute"};if(n.autoArrow!==!1){var b=n.points[0],E=n.points[1],x=b[0],S=b[1],C=E[0],_=E[1];x===C||!["t","b"].includes(x)?g.top=h:x==="t"?g.top=0:g.bottom=0,S===_||!["l","r"].includes(S)?g.left=u:S==="l"?g.left=0:g.right=0}return d.createElement("div",{ref:m,className:le("".concat(t,"-arrow"),a),style:g},l)}function doe(e){var t=e.prefixCls,n=e.open,r=e.zIndex,i=e.mask,o=e.motion;return i?d.createElement(la,Ve({},o,{motionAppear:!0,visible:n,removeOnLeave:!0}),function(a){var l=a.className;return d.createElement("div",{style:{zIndex:r},className:le("".concat(t,"-mask"),l)})}):null}var foe=d.memo(function(e){var t=e.children;return t},function(e,t){return t.cache}),poe=d.forwardRef(function(e,t){var n=e.popup,r=e.className,i=e.prefixCls,o=e.style,a=e.target,l=e.onVisibleChanged,c=e.open,u=e.keepDom,p=e.fresh,h=e.onClick,m=e.mask,g=e.arrow,b=e.arrowPos,E=e.align,x=e.motion,S=e.maskMotion,C=e.forceRender,_=e.getPopupContainer,O=e.autoDestroy,k=e.portal,T=e.zIndex,I=e.onMouseEnter,$=e.onMouseLeave,M=e.onPointerEnter,R=e.onPointerDownCapture,j=e.ready,D=e.offsetX,L=e.offsetY,B=e.offsetR,H=e.offsetB,W=e.onAlign,z=e.onPrepare,V=e.stretch,X=e.targetWidth,A=e.targetHeight,P=typeof n=="function"?n():n,Y=c||u,U=(_==null?void 0:_.length)>0,Q=d.useState(!_||!U),ee=_e(Q,2),se=ee[0],ne=ee[1];if(xn(function(){!se&&U&&a&&ne(!0)},[se,U,a]),!se)return null;var oe="auto",pe={left:"-1000vw",top:"-1000vh",right:oe,bottom:oe};if(j||!c){var be,ue=E.points,de=E.dynamicInset||((be=E._experimental)===null||be===void 0?void 0:be.dynamicInset),re=de&&ue[0][1]==="r",me=de&&ue[0][0]==="b";re?(pe.right=B,pe.left=oe):(pe.left=D,pe.right=oe),me?(pe.bottom=H,pe.top=oe):(pe.top=L,pe.bottom=oe)}var ge={};return V&&(V.includes("height")&&A?ge.height=A:V.includes("minHeight")&&A&&(ge.minHeight=A),V.includes("width")&&X?ge.width=X:V.includes("minWidth")&&X&&(ge.minWidth=X)),c||(ge.pointerEvents="none"),d.createElement(k,{open:C||Y,getContainer:_&&function(){return _(a)},autoDestroy:O},d.createElement(doe,{prefixCls:i,open:c,zIndex:T,mask:m,motion:S}),d.createElement(qi,{onResize:W,disabled:!c},function(Ae){return d.createElement(la,Ve({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:C,leavedClassName:"".concat(i,"-hidden")},x,{onAppearPrepare:z,onEnterPrepare:z,visible:c,onVisibleChanged:function(ze){var et;x==null||(et=x.onVisibleChanged)===null||et===void 0||et.call(x,ze),l(ze)}}),function(De,ze){var et=De.className,Ie=De.style,Te=le(i,et,r);return d.createElement("div",{ref:Zi(Ae,t,ze),className:Te,style:te(te(te(te({"--arrow-x":"".concat(b.x||0,"px"),"--arrow-y":"".concat(b.y||0,"px")},pe),ge),Ie),{},{boxSizing:"border-box",zIndex:T},o),onMouseEnter:I,onMouseLeave:$,onPointerEnter:M,onClick:h,onPointerDownCapture:R},g&&d.createElement(uoe,{prefixCls:i,arrow:g,arrowPos:b,align:E}),d.createElement(foe,{cache:!c&&!p},P))})}))}),hoe=d.forwardRef(function(e,t){var n=e.children,r=e.getTriggerDOMNode,i=al(n),o=d.useCallback(function(l){jh(t,r?r(l):l)},[r]),a=Es(o,Pc(n));return i?d.cloneElement(n,{ref:a}):n}),OO=d.createContext(null);function IO(e){return e?Array.isArray(e)?e:[e]:[]}function moe(e,t,n,r){return d.useMemo(function(){var i=IO(n??t),o=IO(r??t),a=new Set(i),l=new Set(o);return e&&(a.has("hover")&&(a.delete("hover"),a.add("click")),l.has("hover")&&(l.delete("hover"),l.add("click"))),[a,l]},[e,t,n,r])}function goe(){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 voe(e,t,n,r){for(var i=n.points,o=Object.keys(e),a=0;a<o.length;a+=1){var l,c=o[a];if(goe((l=e[c])===null||l===void 0?void 0:l.points,i,r))return"".concat(t,"-placement-").concat(c)}return""}function kO(e,t,n,r){return t||(n?{motionName:"".concat(e,"-").concat(n)}:r?{motionName:r}:null)}function Rm(e){return e.ownerDocument.defaultView}function uE(e){for(var t=[],n=e==null?void 0:e.parentElement,r=["hidden","scroll","clip","auto"];n;){var i=Rm(n).getComputedStyle(n),o=i.overflowX,a=i.overflowY,l=i.overflow;[o,a,l].some(function(c){return r.includes(c)})&&t.push(n),n=n.parentElement}return t}function em(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?t:e}function mp(e){return em(parseFloat(e),0)}function $O(e,t){var n=te({},e);return(t||[]).forEach(function(r){if(!(r instanceof HTMLBodyElement||r instanceof HTMLHtmlElement)){var i=Rm(r).getComputedStyle(r),o=i.overflow,a=i.overflowClipMargin,l=i.borderTopWidth,c=i.borderBottomWidth,u=i.borderLeftWidth,p=i.borderRightWidth,h=r.getBoundingClientRect(),m=r.offsetHeight,g=r.clientHeight,b=r.offsetWidth,E=r.clientWidth,x=mp(l),S=mp(c),C=mp(u),_=mp(p),O=em(Math.round(h.width/b*1e3)/1e3),k=em(Math.round(h.height/m*1e3)/1e3),T=(b-E-C-_)*O,I=(m-g-x-S)*k,$=x*k,M=S*k,R=C*O,j=_*O,D=0,L=0;if(o==="clip"){var B=mp(a);D=B*O,L=B*k}var H=h.x+R-D,W=h.y+$-L,z=H+h.width+2*D-R-j-T,V=W+h.height+2*L-$-M-I;n.left=Math.max(n.left,H),n.top=Math.max(n.top,W),n.right=Math.min(n.right,z),n.bottom=Math.min(n.bottom,V)}}),n}function NO(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 AO(e,t){var n=t||[],r=_e(n,2),i=r[0],o=r[1];return[NO(e.width,i),NO(e.height,o)]}function RO(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[e[0],e[1]]}function kd(e,t){var n=t[0],r=t[1],i,o;return n==="t"?o=e.y:n==="b"?o=e.y+e.height:o=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:o}}function Ps(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 yoe(e,t,n,r,i,o,a){var l=d.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:i[r]||{}}),c=_e(l,2),u=c[0],p=c[1],h=d.useRef(0),m=d.useMemo(function(){return t?uE(t):[]},[t]),g=d.useRef({}),b=function(){g.current={}};e||b();var E=Kn(function(){if(t&&n&&e){let or=function(si,bi){var Ci=arguments.length>2&&arguments[2]!==void 0?arguments[2]:je,Fo=Q.x+si,hl=Q.y+bi,jc=Fo+re,ed=hl+de,I1=Math.max(Fo,Ci.left),zt=Math.max(hl,Ci.top),un=Math.min(jc,Ci.right),Yn=Math.min(ed,Ci.bottom);return Math.max(0,(un-I1)*(Yn-zt))},ar=function(){St=Q.y+ft,Zt=St+de,Lt=Q.x+gt,Pt=Lt+re};var C,_,O,k,T=t,I=T.ownerDocument,$=Rm(T),M=$.getComputedStyle(T),R=M.width,j=M.height,D=M.position,L=T.style.left,B=T.style.top,H=T.style.right,W=T.style.bottom,z=T.style.overflow,V=te(te({},i[r]),o),X=I.createElement("div");(C=T.parentElement)===null||C===void 0||C.appendChild(X),X.style.left="".concat(T.offsetLeft,"px"),X.style.top="".concat(T.offsetTop,"px"),X.style.position=D,X.style.height="".concat(T.offsetHeight,"px"),X.style.width="".concat(T.offsetWidth,"px"),T.style.left="0",T.style.top="0",T.style.right="auto",T.style.bottom="auto",T.style.overflow="hidden";var A;if(Array.isArray(n))A={x:n[0],y:n[1],width:0,height:0};else{var P,Y,U=n.getBoundingClientRect();U.x=(P=U.x)!==null&&P!==void 0?P:U.left,U.y=(Y=U.y)!==null&&Y!==void 0?Y:U.top,A={x:U.x,y:U.y,width:U.width,height:U.height}}var Q=T.getBoundingClientRect();Q.x=(_=Q.x)!==null&&_!==void 0?_:Q.left,Q.y=(O=Q.y)!==null&&O!==void 0?O:Q.top;var ee=I.documentElement,se=ee.clientWidth,ne=ee.clientHeight,oe=ee.scrollWidth,pe=ee.scrollHeight,be=ee.scrollTop,ue=ee.scrollLeft,de=Q.height,re=Q.width,me=A.height,ge=A.width,Ae={left:0,top:0,right:se,bottom:ne},De={left:-ue,top:-be,right:oe-ue,bottom:pe-be},ze=V.htmlRegion,et="visible",Ie="visibleFirst";ze!=="scroll"&&ze!==Ie&&(ze=et);var Te=ze===Ie,Ue=$O(De,m),Le=$O(Ae,m),je=ze===et?Le:Ue,Ge=Te?Le:je;T.style.left="auto",T.style.top="auto",T.style.right="0",T.style.bottom="0";var qe=T.getBoundingClientRect();T.style.left=L,T.style.top=B,T.style.right=H,T.style.bottom=W,T.style.overflow=z,(k=T.parentElement)===null||k===void 0||k.removeChild(X);var Ce=em(Math.round(re/parseFloat(R)*1e3)/1e3),ke=em(Math.round(de/parseFloat(j)*1e3)/1e3);if(Ce===0||ke===0||Bh(n)&&!Om(n))return;var We=V.offset,Pe=V.targetOffset,Be=AO(Q,We),He=_e(Be,2),Qe=He[0],ie=He[1],xe=AO(A,Pe),Ne=_e(xe,2),$e=Ne[0],Ye=Ne[1];A.x-=$e,A.y-=Ye;var ht=V.points||[],It=_e(ht,2),Jt=It[0],Vt=It[1],en=RO(Vt),rn=RO(Jt),Gt=kd(A,en),Ft=kd(Q,rn),bt=te({},V),gt=Gt.x-Ft.x+Qe,ft=Gt.y-Ft.y+ie,he=or(gt,ft),we=or(gt,ft,Le),ve=kd(A,["t","l"]),Me=kd(Q,["t","l"]),Je=kd(A,["b","r"]),tt=kd(Q,["b","r"]),st=V.overflow||{},at=st.adjustX,it=st.adjustY,nt=st.shiftX,ct=st.shiftY,mt=function(bi){return typeof bi=="boolean"?bi:bi>=0},St,Zt,Lt,Pt;ar();var vt=mt(it),dt=rn[0]===en[0];if(vt&&rn[0]==="t"&&(Zt>Ge.bottom||g.current.bt)){var ot=ft;dt?ot-=de-me:ot=ve.y-tt.y-ie;var Xt=or(gt,ot),Dt=or(gt,ot,Le);Xt>he||Xt===he&&(!Te||Dt>=we)?(g.current.bt=!0,ft=ot,ie=-ie,bt.points=[Ps(rn,0),Ps(en,0)]):g.current.bt=!1}if(vt&&rn[0]==="b"&&(St<Ge.top||g.current.tb)){var xt=ft;dt?xt+=de-me:xt=Je.y-Me.y-ie;var Tt=or(gt,xt),tn=or(gt,xt,Le);Tt>he||Tt===he&&(!Te||tn>=we)?(g.current.tb=!0,ft=xt,ie=-ie,bt.points=[Ps(rn,0),Ps(en,0)]):g.current.tb=!1}var mn=mt(at),Sn=rn[1]===en[1];if(mn&&rn[1]==="l"&&(Pt>Ge.right||g.current.rl)){var Ke=gt;Sn?Ke-=re-ge:Ke=ve.x-tt.x-Qe;var Ze=or(Ke,ft),Kt=or(Ke,ft,Le);Ze>he||Ze===he&&(!Te||Kt>=we)?(g.current.rl=!0,gt=Ke,Qe=-Qe,bt.points=[Ps(rn,1),Ps(en,1)]):g.current.rl=!1}if(mn&&rn[1]==="r"&&(Lt<Ge.left||g.current.lr)){var ln=gt;Sn?ln+=re-ge:ln=Je.x-Me.x-Qe;var dn=or(ln,ft),Vn=or(ln,ft,Le);dn>he||dn===he&&(!Te||Vn>=we)?(g.current.lr=!0,gt=ln,Qe=-Qe,bt.points=[Ps(rn,1),Ps(en,1)]):g.current.lr=!1}ar();var cr=nt===!0?0:nt;typeof cr=="number"&&(Lt<Le.left&&(gt-=Lt-Le.left-Qe,A.x+ge<Le.left+cr&&(gt+=A.x-Le.left+ge-cr)),Pt>Le.right&&(gt-=Pt-Le.right-Qe,A.x>Le.right-cr&&(gt+=A.x-Le.right+cr)));var Ht=ct===!0?0:ct;typeof Ht=="number"&&(St<Le.top&&(ft-=St-Le.top-ie,A.y+me<Le.top+Ht&&(ft+=A.y-Le.top+me-Ht)),Zt>Le.bottom&&(ft-=Zt-Le.bottom-ie,A.y>Le.bottom-Ht&&(ft+=A.y-Le.bottom+Ht)));var yo=Q.x+gt,Bi=yo+re,Cr=Q.y+ft,Tr=Cr+de,_n=A.x,Bt=_n+ge,Rt=A.y,En=Rt+me,Tn=Math.max(yo,_n),Ln=Math.min(Bi,Bt),Un=(Tn+Ln)/2,Pr=Un-yo,Or=Math.max(Cr,Rt),Lr=Math.min(Tr,En),Hr=(Or+Lr)/2,li=Hr-Cr;a==null||a(t,bt);var sn=qe.right-Q.x-(gt+Q.width),qt=qe.bottom-Q.y-(ft+Q.height);Ce===1&&(gt=Math.round(gt),sn=Math.round(sn)),ke===1&&(ft=Math.round(ft),qt=Math.round(qt));var Ir={ready:!0,offsetX:gt/Ce,offsetY:ft/ke,offsetR:sn/Ce,offsetB:qt/ke,arrowX:Pr/Ce,arrowY:li/ke,scaleX:Ce,scaleY:ke,align:bt};p(Ir)}}),x=function(){h.current+=1;var _=h.current;Promise.resolve().then(function(){h.current===_&&E()})},S=function(){p(function(_){return te(te({},_),{},{ready:!1})})};return xn(S,[r]),xn(function(){e||S()},[e]),[u.ready,u.offsetX,u.offsetY,u.offsetR,u.offsetB,u.arrowX,u.arrowY,u.scaleX,u.scaleY,u.align,x]}function boe(e,t,n,r,i){xn(function(){if(e&&t&&n){let h=function(){r(),i()};var o=t,a=n,l=uE(o),c=uE(a),u=Rm(a),p=new Set([u].concat(Xe(l),Xe(c)));return p.forEach(function(m){m.addEventListener("scroll",h,{passive:!0})}),u.addEventListener("resize",h,{passive:!0}),r(),function(){p.forEach(function(m){m.removeEventListener("scroll",h),u.removeEventListener("resize",h)})}}},[e,t,n])}function Coe(e,t,n,r,i,o,a,l){var c=d.useRef(e);c.current=e;var u=d.useRef(!1);d.useEffect(function(){if(t&&r&&(!i||o)){var h=function(){u.current=!1},m=function(x){var S;c.current&&!a(((S=x.composedPath)===null||S===void 0||(S=S.call(x))===null||S===void 0?void 0:S[0])||x.target)&&!u.current&&l(!1)},g=Rm(r);g.addEventListener("pointerdown",h,!0),g.addEventListener("mousedown",m,!0),g.addEventListener("contextmenu",m,!0);var b=ly(n);return b&&(b.addEventListener("mousedown",m,!0),b.addEventListener("contextmenu",m,!0)),function(){g.removeEventListener("pointerdown",h,!0),g.removeEventListener("mousedown",m,!0),g.removeEventListener("contextmenu",m,!0),b&&(b.removeEventListener("mousedown",m,!0),b.removeEventListener("contextmenu",m,!0))}}},[t,n,r,i,o]);function p(){u.current=!0}return p}var Soe=["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 Eoe(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:L3,t=d.forwardRef(function(n,r){var i=n.prefixCls,o=i===void 0?"rc-trigger-popup":i,a=n.children,l=n.action,c=l===void 0?"hover":l,u=n.showAction,p=n.hideAction,h=n.popupVisible,m=n.defaultPopupVisible,g=n.onPopupVisibleChange,b=n.afterPopupVisibleChange,E=n.mouseEnterDelay,x=n.mouseLeaveDelay,S=x===void 0?.1:x,C=n.focusDelay,_=n.blurDelay,O=n.mask,k=n.maskClosable,T=k===void 0?!0:k,I=n.getPopupContainer,$=n.forceRender,M=n.autoDestroy,R=n.destroyPopupOnHide,j=n.popup,D=n.popupClassName,L=n.popupStyle,B=n.popupPlacement,H=n.builtinPlacements,W=H===void 0?{}:H,z=n.popupAlign,V=n.zIndex,X=n.stretch,A=n.getPopupClassNameFromAlign,P=n.fresh,Y=n.alignPoint,U=n.onPopupClick,Q=n.onPopupAlign,ee=n.arrow,se=n.popupMotion,ne=n.maskMotion,oe=n.popupTransitionName,pe=n.popupAnimation,be=n.maskTransitionName,ue=n.maskAnimation,de=n.className,re=n.getTriggerDOMNode,me=Yt(n,Soe),ge=M||R||!1,Ae=d.useState(!1),De=_e(Ae,2),ze=De[0],et=De[1];xn(function(){et(z3())},[]);var Ie=d.useRef({}),Te=d.useContext(OO),Ue=d.useMemo(function(){return{registerSubPopup:function(un,Yn){Ie.current[un]=Yn,Te==null||Te.registerSubPopup(un,Yn)}}},[Te]),Le=D3(),je=d.useState(null),Ge=_e(je,2),qe=Ge[0],Ce=Ge[1],ke=d.useRef(null),We=Kn(function(zt){ke.current=zt,Bh(zt)&&qe!==zt&&Ce(zt),Te==null||Te.registerSubPopup(Le,zt)}),Pe=d.useState(null),Be=_e(Pe,2),He=Be[0],Qe=Be[1],ie=d.useRef(null),xe=Kn(function(zt){Bh(zt)&&He!==zt&&(Qe(zt),ie.current=zt)}),Ne=d.Children.only(a),$e=(Ne==null?void 0:Ne.props)||{},Ye={},ht=Kn(function(zt){var un,Yn,Sr=He;return(Sr==null?void 0:Sr.contains(zt))||((un=ly(Sr))===null||un===void 0?void 0:un.host)===zt||zt===Sr||(qe==null?void 0:qe.contains(zt))||((Yn=ly(qe))===null||Yn===void 0?void 0:Yn.host)===zt||zt===qe||Object.values(Ie.current).some(function(ur){return(ur==null?void 0:ur.contains(zt))||zt===ur})}),It=kO(o,se,pe,oe),Jt=kO(o,ne,ue,be),Vt=d.useState(m||!1),en=_e(Vt,2),rn=en[0],Gt=en[1],Ft=h??rn,bt=Kn(function(zt){h===void 0&&Gt(zt)});xn(function(){Gt(h||!1)},[h]);var gt=d.useRef(Ft);gt.current=Ft;var ft=d.useRef([]);ft.current=[];var he=Kn(function(zt){var un;bt(zt),((un=ft.current[ft.current.length-1])!==null&&un!==void 0?un:Ft)!==zt&&(ft.current.push(zt),g==null||g(zt))}),we=d.useRef(),ve=function(){clearTimeout(we.current)},Me=function(un){var Yn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;ve(),Yn===0?he(un):we.current=setTimeout(function(){he(un)},Yn*1e3)};d.useEffect(function(){return ve},[]);var Je=d.useState(!1),tt=_e(Je,2),st=tt[0],at=tt[1];xn(function(zt){(!zt||Ft)&&at(!0)},[Ft]);var it=d.useState(null),nt=_e(it,2),ct=nt[0],mt=nt[1],St=d.useState(null),Zt=_e(St,2),Lt=Zt[0],Pt=Zt[1],vt=function(un){Pt([un.clientX,un.clientY])},dt=yoe(Ft,qe,Y&&Lt!==null?Lt:He,B,W,z,Q),ot=_e(dt,11),Xt=ot[0],Dt=ot[1],xt=ot[2],Tt=ot[3],tn=ot[4],mn=ot[5],Sn=ot[6],Ke=ot[7],Ze=ot[8],Kt=ot[9],ln=ot[10],dn=moe(ze,c,u,p),Vn=_e(dn,2),cr=Vn[0],Ht=Vn[1],yo=cr.has("click"),Bi=Ht.has("click")||Ht.has("contextMenu"),Cr=Kn(function(){st||ln()}),Tr=function(){gt.current&&Y&&Bi&&Me(!1)};boe(Ft,He,qe,Cr,Tr),xn(function(){Cr()},[Lt,B]),xn(function(){Ft&&!(W!=null&&W[B])&&Cr()},[JSON.stringify(z)]);var _n=d.useMemo(function(){var zt=voe(W,o,Kt,Y);return le(zt,A==null?void 0:A(Kt))},[Kt,A,W,o,Y]);d.useImperativeHandle(r,function(){return{nativeElement:ie.current,popupElement:ke.current,forceAlign:Cr}});var Bt=d.useState(0),Rt=_e(Bt,2),En=Rt[0],Tn=Rt[1],Ln=d.useState(0),Un=_e(Ln,2),Pr=Un[0],Or=Un[1],Lr=function(){if(X&&He){var un=He.getBoundingClientRect();Tn(un.width),Or(un.height)}},Hr=function(){Lr(),Cr()},li=function(un){at(!1),ln(),b==null||b(un)},sn=function(){return new Promise(function(un){Lr(),mt(function(){return un})})};xn(function(){ct&&(ln(),ct(),mt(null))},[ct]);function qt(zt,un,Yn,Sr){Ye[zt]=function(ur){var Hc;Sr==null||Sr(ur),Me(un,Yn);for(var td=arguments.length,zc=new Array(td>1?td-1:0),nd=1;nd<td;nd++)zc[nd-1]=arguments[nd];(Hc=$e[zt])===null||Hc===void 0||Hc.call.apply(Hc,[$e,ur].concat(zc))}}(yo||Bi)&&(Ye.onClick=function(zt){var un;gt.current&&Bi?Me(!1):!gt.current&&yo&&(vt(zt),Me(!0));for(var Yn=arguments.length,Sr=new Array(Yn>1?Yn-1:0),ur=1;ur<Yn;ur++)Sr[ur-1]=arguments[ur];(un=$e.onClick)===null||un===void 0||un.call.apply(un,[$e,zt].concat(Sr))});var Ir=Coe(Ft,Bi,He,qe,O,T,ht,Me),or=cr.has("hover"),ar=Ht.has("hover"),si,bi;or&&(qt("onMouseEnter",!0,E,function(zt){vt(zt)}),qt("onPointerEnter",!0,E,function(zt){vt(zt)}),si=function(un){(Ft||st)&&qe!==null&&qe!==void 0&&qe.contains(un.target)&&Me(!0,E)},Y&&(Ye.onMouseMove=function(zt){var un;(un=$e.onMouseMove)===null||un===void 0||un.call($e,zt)})),ar&&(qt("onMouseLeave",!1,S),qt("onPointerLeave",!1,S),bi=function(){Me(!1,S)}),cr.has("focus")&&qt("onFocus",!0,C),Ht.has("focus")&&qt("onBlur",!1,_),cr.has("contextMenu")&&(Ye.onContextMenu=function(zt){var un;gt.current&&Ht.has("contextMenu")?Me(!1):(vt(zt),Me(!0)),zt.preventDefault();for(var Yn=arguments.length,Sr=new Array(Yn>1?Yn-1:0),ur=1;ur<Yn;ur++)Sr[ur-1]=arguments[ur];(un=$e.onContextMenu)===null||un===void 0||un.call.apply(un,[$e,zt].concat(Sr))}),de&&(Ye.className=le($e.className,de));var Ci=te(te({},$e),Ye),Fo={},hl=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];hl.forEach(function(zt){me[zt]&&(Fo[zt]=function(){for(var un,Yn=arguments.length,Sr=new Array(Yn),ur=0;ur<Yn;ur++)Sr[ur]=arguments[ur];(un=Ci[zt])===null||un===void 0||un.call.apply(un,[Ci].concat(Sr)),me[zt].apply(me,Sr)})});var jc=d.cloneElement(Ne,te(te({},Ci),Fo)),ed={x:mn,y:Sn},I1=ee?te({},ee!==!0?ee:{}):null;return d.createElement(d.Fragment,null,d.createElement(qi,{disabled:!Ft,ref:xe,onResize:Hr},d.createElement(hoe,{getTriggerDOMNode:re},jc)),d.createElement(OO.Provider,{value:Ue},d.createElement(poe,{portal:e,ref:We,prefixCls:o,popup:j,className:le(D,_n),style:L,target:He,onMouseEnter:si,onMouseLeave:bi,onPointerEnter:si,zIndex:V,open:Ft,keepDom:st,fresh:P,onClick:U,onPointerDownCapture:Ir,mask:O,motion:It,maskMotion:Jt,onVisibleChanged:li,onPrepare:sn,forceRender:$,autoDestroy:ge,getPopupContainer:I,align:Kt,arrow:I1,arrowPos:ed,ready:Xt,offsetX:Dt,offsetY:xt,offsetR:Tt,offsetB:tn,onAlign:Cr,stretch:X,targetWidth:En/Ke,targetHeight:Pr/Ze})))});return t}const qb=Eoe(L3);var xoe=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],woe=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"}}},_oe=function(t,n){var r=t.prefixCls;t.disabled;var i=t.visible,o=t.children,a=t.popupElement,l=t.animation,c=t.transitionName,u=t.dropdownStyle,p=t.dropdownClassName,h=t.direction,m=h===void 0?"ltr":h,g=t.placement,b=t.builtinPlacements,E=t.dropdownMatchSelectWidth,x=t.dropdownRender,S=t.dropdownAlign,C=t.getPopupContainer,_=t.empty,O=t.getTriggerDOMNode,k=t.onPopupVisibleChange,T=t.onPopupMouseEnter,I=Yt(t,xoe),$="".concat(r,"-dropdown"),M=a;x&&(M=x(a));var R=d.useMemo(function(){return b||woe(E)},[b,E]),j=l?"".concat($,"-").concat(l):c,D=typeof E=="number",L=d.useMemo(function(){return D?null:E===!1?"minWidth":"width"},[E,D]),B=u;D&&(B=te(te({},B),{},{width:E}));var H=d.useRef(null);return d.useImperativeHandle(n,function(){return{getPopupElement:function(){var z;return(z=H.current)===null||z===void 0?void 0:z.popupElement}}}),d.createElement(qb,Ve({},I,{showAction:k?["click"]:[],hideAction:k?["click"]:[],popupPlacement:g||(m==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:R,prefixCls:$,popupTransitionName:j,popup:d.createElement("div",{onMouseEnter:T},M),ref:H,stretch:L,popupAlign:S,popupVisible:i,getPopupContainer:C,popupClassName:le(p,J({},"".concat($,"-empty"),_)),popupStyle:B,getTriggerDOMNode:O,onPopupVisibleChange:k}),o)},Toe=d.forwardRef(_oe);function MO(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 dE(e){return typeof e<"u"&&!Number.isNaN(e)}function SF(e,t){var n=e||{},r=n.label,i=n.value,o=n.options,a=n.groupLabel,l=r||(t?"children":"label");return{label:l,value:i||"value",options:o||"options",groupLabel:a||l}}function Ooe(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.fieldNames,r=t.childrenAsData,i=[],o=SF(n,!1),a=o.label,l=o.value,c=o.options,u=o.groupLabel;function p(h,m){Array.isArray(h)&&h.forEach(function(g){if(m||!(c in g)){var b=g[l];i.push({key:MO(g,i.length),groupOption:m,data:g,label:g[a],value:b})}else{var E=g[u];E===void 0&&r&&(E=g.label),i.push({key:MO(g,i.length),group:!0,data:g,label:E}),p(g[c],!0)}})}return p(e,!1),i}function fE(e){var t=te({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return br(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}var Ioe=function(t,n,r){if(!n||!n.length)return null;var i=!1,o=function l(c,u){var p=_L(u),h=p[0],m=p.slice(1);if(!h)return[c];var g=c.split(h);return i=i||g.length>1,g.reduce(function(b,E){return[].concat(Xe(b),Xe(l(E,m)))},[]).filter(Boolean)},a=o(t,n);return i?typeof r<"u"?a.slice(0,r):a:null},W3=d.createContext(null);function koe(e){var t=e.visible,n=e.values;if(!t)return null;var r=50;return d.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 o=i.label,a=i.value;return["number","string"].includes(Nt(o))?o:a}).join(", ")),n.length>r?", ...":null)}var $oe=["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"],Noe=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],pE=function(t){return t==="tags"||t==="multiple"},Aoe=d.forwardRef(function(e,t){var n,r=e.id,i=e.prefixCls,o=e.className,a=e.showSearch,l=e.tagRender,c=e.direction,u=e.omitDomProps,p=e.displayValues,h=e.onDisplayValuesChange,m=e.emptyOptions,g=e.notFoundContent,b=g===void 0?"Not Found":g,E=e.onClear,x=e.mode,S=e.disabled,C=e.loading,_=e.getInputElement,O=e.getRawInputElement,k=e.open,T=e.defaultOpen,I=e.onDropdownVisibleChange,$=e.activeValue,M=e.onActiveValueChange,R=e.activeDescendantId,j=e.searchValue,D=e.autoClearSearchValue,L=e.onSearch,B=e.onSearchSplit,H=e.tokenSeparators,W=e.allowClear,z=e.prefix,V=e.suffixIcon,X=e.clearIcon,A=e.OptionList,P=e.animation,Y=e.transitionName,U=e.dropdownStyle,Q=e.dropdownClassName,ee=e.dropdownMatchSelectWidth,se=e.dropdownRender,ne=e.dropdownAlign,oe=e.placement,pe=e.builtinPlacements,be=e.getPopupContainer,ue=e.showAction,de=ue===void 0?[]:ue,re=e.onFocus,me=e.onBlur,ge=e.onKeyUp,Ae=e.onKeyDown,De=e.onMouseDown,ze=Yt(e,$oe),et=pE(x),Ie=(a!==void 0?a:et)||x==="combobox",Te=te({},ze);Noe.forEach(function(Bt){delete Te[Bt]}),u==null||u.forEach(function(Bt){delete Te[Bt]});var Ue=d.useState(!1),Le=_e(Ue,2),je=Le[0],Ge=Le[1];d.useEffect(function(){Ge(z3())},[]);var qe=d.useRef(null),Ce=d.useRef(null),ke=d.useRef(null),We=d.useRef(null),Pe=d.useRef(null),Be=d.useRef(!1),He=Bie(),Qe=_e(He,3),ie=Qe[0],xe=Qe[1],Ne=Qe[2];d.useImperativeHandle(t,function(){var Bt,Rt;return{focus:(Bt=We.current)===null||Bt===void 0?void 0:Bt.focus,blur:(Rt=We.current)===null||Rt===void 0?void 0:Rt.blur,scrollTo:function(Tn){var Ln;return(Ln=Pe.current)===null||Ln===void 0?void 0:Ln.scrollTo(Tn)},nativeElement:qe.current||Ce.current}});var $e=d.useMemo(function(){var Bt;if(x!=="combobox")return j;var Rt=(Bt=p[0])===null||Bt===void 0?void 0:Bt.value;return typeof Rt=="string"||typeof Rt=="number"?String(Rt):""},[j,x,p]),Ye=x==="combobox"&&typeof _=="function"&&_()||null,ht=typeof O=="function"&&O(),It=Es(Ce,ht==null||(n=ht.props)===null||n===void 0?void 0:n.ref),Jt=d.useState(!1),Vt=_e(Jt,2),en=Vt[0],rn=Vt[1];xn(function(){rn(!0)},[]);var Gt=_r(!1,{defaultValue:T,value:k}),Ft=_e(Gt,2),bt=Ft[0],gt=Ft[1],ft=en?bt:!1,he=!b&&m;(S||he&&ft&&x==="combobox")&&(ft=!1);var we=he?!1:ft,ve=d.useCallback(function(Bt){var Rt=Bt!==void 0?Bt:!ft;S||(gt(Rt),ft!==Rt&&(I==null||I(Rt)))},[S,ft,gt,I]),Me=d.useMemo(function(){return(H||[]).some(function(Bt){return[`
`,`\r
`].includes(Bt)})},[H]),Je=d.useContext(W3)||{},tt=Je.maxCount,st=Je.rawValues,at=function(Rt,En,Tn){if(!(et&&dE(tt)&&(st==null?void 0:st.size)>=tt)){var Ln=!0,Un=Rt;M==null||M(null);var Pr=Ioe(Rt,H,dE(tt)?tt-st.size:void 0),Or=Tn?null:Pr;return x!=="combobox"&&Or&&(Un="",B==null||B(Or),ve(!1),Ln=!1),L&&$e!==Un&&L(Un,{source:En?"typing":"effect"}),Ln}},it=function(Rt){!Rt||!Rt.trim()||L(Rt,{source:"submit"})};d.useEffect(function(){!ft&&!et&&x!=="combobox"&&at("",!1,!1)},[ft]),d.useEffect(function(){bt&&S&&gt(!1),S&&!Be.current&&xe(!1)},[S]);var nt=hF(),ct=_e(nt,2),mt=ct[0],St=ct[1],Zt=d.useRef(!1),Lt=function(Rt){var En=mt(),Tn=Rt.key,Ln=Tn==="Enter";if(Ln&&(x!=="combobox"&&Rt.preventDefault(),ft||ve(!0)),St(!!$e),Tn==="Backspace"&&!En&&et&&!$e&&p.length){for(var Un=Xe(p),Pr=null,Or=Un.length-1;Or>=0;Or-=1){var Lr=Un[Or];if(!Lr.disabled){Un.splice(Or,1),Pr=Lr;break}}Pr&&h(Un,{type:"remove",values:[Pr]})}for(var Hr=arguments.length,li=new Array(Hr>1?Hr-1:0),sn=1;sn<Hr;sn++)li[sn-1]=arguments[sn];if(ft&&(!Ln||!Zt.current)){var qt;Ln&&(Zt.current=!0),(qt=Pe.current)===null||qt===void 0||qt.onKeyDown.apply(qt,[Rt].concat(li))}Ae==null||Ae.apply(void 0,[Rt].concat(li))},Pt=function(Rt){for(var En=arguments.length,Tn=new Array(En>1?En-1:0),Ln=1;Ln<En;Ln++)Tn[Ln-1]=arguments[Ln];if(ft){var Un;(Un=Pe.current)===null||Un===void 0||Un.onKeyUp.apply(Un,[Rt].concat(Tn))}Rt.key==="Enter"&&(Zt.current=!1),ge==null||ge.apply(void 0,[Rt].concat(Tn))},vt=function(Rt){var En=p.filter(function(Tn){return Tn!==Rt});h(En,{type:"remove",values:[Rt]})},dt=function(){Zt.current=!1},ot=d.useRef(!1),Xt=function(){xe(!0),S||(re&&!ot.current&&re.apply(void 0,arguments),de.includes("focus")&&ve(!0)),ot.current=!0},Dt=function(){Be.current=!0,xe(!1,function(){ot.current=!1,Be.current=!1,ve(!1)}),!S&&($e&&(x==="tags"?L($e,{source:"submit"}):x==="multiple"&&L("",{source:"blur"})),me&&me.apply(void 0,arguments))},xt=[];d.useEffect(function(){return function(){xt.forEach(function(Bt){return clearTimeout(Bt)}),xt.splice(0,xt.length)}},[]);var Tt=function(Rt){var En,Tn=Rt.target,Ln=(En=ke.current)===null||En===void 0?void 0:En.getPopupElement();if(Ln&&Ln.contains(Tn)){var Un=setTimeout(function(){var Hr=xt.indexOf(Un);if(Hr!==-1&&xt.splice(Hr,1),Ne(),!je&&!Ln.contains(document.activeElement)){var li;(li=We.current)===null||li===void 0||li.focus()}});xt.push(Un)}for(var Pr=arguments.length,Or=new Array(Pr>1?Pr-1:0),Lr=1;Lr<Pr;Lr++)Or[Lr-1]=arguments[Lr];De==null||De.apply(void 0,[Rt].concat(Or))},tn=d.useState({}),mn=_e(tn,2),Sn=mn[1];function Ke(){Sn({})}var Ze;ht&&(Ze=function(Rt){ve(Rt)}),jie(function(){var Bt;return[qe.current,(Bt=ke.current)===null||Bt===void 0?void 0:Bt.getPopupElement()]},we,ve,!!ht);var Kt=d.useMemo(function(){return te(te({},e),{},{notFoundContent:b,open:ft,triggerOpen:we,id:r,showSearch:Ie,multiple:et,toggleOpen:ve})},[e,b,we,ft,r,Ie,et,ve]),ln=!!V||C,dn;ln&&(dn=d.createElement(Gb,{className:le("".concat(i,"-arrow"),J({},"".concat(i,"-arrow-loading"),C)),customizeIcon:V,customizeIconProps:{loading:C,searchValue:$e,open:ft,focused:ie,showSearch:Ie}}));var Vn=function(){var Rt;E==null||E(),(Rt=We.current)===null||Rt===void 0||Rt.focus(),h([],{type:"clear",values:p}),at("",!1,!1)},cr=Die(i,Vn,p,W,X,S,$e,x),Ht=cr.allowClear,yo=cr.clearIcon,Bi=d.createElement(A,{ref:Pe}),Cr=le(i,o,J(J(J(J(J(J(J(J(J(J({},"".concat(i,"-focused"),ie),"".concat(i,"-multiple"),et),"".concat(i,"-single"),!et),"".concat(i,"-allow-clear"),W),"".concat(i,"-show-arrow"),ln),"".concat(i,"-disabled"),S),"".concat(i,"-loading"),C),"".concat(i,"-open"),ft),"".concat(i,"-customize-input"),Ye),"".concat(i,"-show-search"),Ie)),Tr=d.createElement(Toe,{ref:ke,disabled:S,prefixCls:i,visible:we,popupElement:Bi,animation:P,transitionName:Y,dropdownStyle:U,dropdownClassName:Q,direction:c,dropdownMatchSelectWidth:ee,dropdownRender:se,dropdownAlign:ne,placement:oe,builtinPlacements:pe,getPopupContainer:be,empty:m,getTriggerDOMNode:function(Rt){return Ce.current||Rt},onPopupVisibleChange:Ze,onPopupMouseEnter:Ke},ht?d.cloneElement(ht,{ref:It}):d.createElement(coe,Ve({},e,{domRef:Ce,prefixCls:i,inputElement:Ye,ref:We,id:r,prefix:z,showSearch:Ie,autoClearSearchValue:D,mode:x,activeDescendantId:R,tagRender:l,values:p,open:ft,onToggleOpen:ve,activeValue:$,searchValue:$e,onSearch:at,onSearchSubmit:it,onRemove:vt,tokenWithEnter:Me,onInputBlur:dt}))),_n;return ht?_n=Tr:_n=d.createElement("div",Ve({className:Cr},Te,{ref:qe,onMouseDown:Tt,onKeyDown:Lt,onKeyUp:Pt,onFocus:Xt,onBlur:Dt}),d.createElement(koe,{visible:ie&&!ft,values:p}),Tr,dn,Ht&&yo),d.createElement(pF.Provider,{value:Kt},_n)}),U3=function(){return null};U3.isSelectOptGroup=!0;var K3=function(){return null};K3.isSelectOption=!0;var EF=d.forwardRef(function(e,t){var n=e.height,r=e.offsetY,i=e.offsetX,o=e.children,a=e.prefixCls,l=e.onInnerResize,c=e.innerProps,u=e.rtl,p=e.extra,h={},m={display:"flex",flexDirection:"column"};return r!==void 0&&(h={height:n,position:"relative",overflow:"hidden"},m=te(te({},m),{},J(J(J(J(J({transform:"translateY(".concat(r,"px)")},u?"marginRight":"marginLeft",-i),"position","absolute"),"left",0),"right",0),"top",0))),d.createElement("div",{style:h},d.createElement(qi,{onResize:function(b){var E=b.offsetHeight;E&&l&&l()}},d.createElement("div",Ve({style:m,className:le(J({},"".concat(a,"-holder-inner"),a)),ref:t},c),o,p)))});EF.displayName="Filler";function Roe(e){var t=e.children,n=e.setRef,r=d.useCallback(function(i){n(i)},[]);return d.cloneElement(t,{ref:r})}function Moe(e,t,n,r,i,o,a,l){var c=l.getKey;return e.slice(t,n+1).map(function(u,p){var h=t+p,m=a(u,h,{style:{width:r},offsetX:i}),g=c(u);return d.createElement(Roe,{key:g,setRef:function(E){return o(u,E)}},m)})}function Poe(e,t,n){var r=e.length,i=t.length,o,a;if(r===0&&i===0)return null;r<i?(o=e,a=t):(o=t,a=e);var l={__EMPTY_ITEM__:!0};function c(b){return b!==void 0?n(b):l}for(var u=null,p=Math.abs(r-i)!==1,h=0;h<a.length;h+=1){var m=c(o[h]),g=c(a[h]);if(m!==g){u=h,p=p||m!==c(a[h+1]);break}}return u===null?null:{index:u,multiple:p}}function Loe(e,t,n){var r=d.useState(e),i=_e(r,2),o=i[0],a=i[1],l=d.useState(null),c=_e(l,2),u=c[0],p=c[1];return d.useEffect(function(){var h=Poe(o||[],e||[],t);(h==null?void 0:h.index)!==void 0&&p(e[h.index]),a(e)},[e]),[u]}var PO=(typeof navigator>"u"?"undefined":Nt(navigator))==="object"&&/Firefox/i.test(navigator.userAgent);const xF=function(e,t,n,r){var i=d.useRef(!1),o=d.useRef(null);function a(){clearTimeout(o.current),i.current=!0,o.current=setTimeout(function(){i.current=!1},50)}var l=d.useRef({top:e,bottom:t,left:n,right:r});return l.current.top=e,l.current.bottom=t,l.current.left=n,l.current.right=r,function(c,u){var p=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,h=c?u<0&&l.current.left||u>0&&l.current.right:u<0&&l.current.top||u>0&&l.current.bottom;return p&&h?(clearTimeout(o.current),i.current=!1):(!h||i.current)&&a(),!i.current&&h}};function Doe(e,t,n,r,i,o,a){var l=d.useRef(0),c=d.useRef(null),u=d.useRef(null),p=d.useRef(!1),h=xF(t,n,r,i);function m(C,_){if(kn.cancel(c.current),!h(!1,_)){var O=C;if(!O._virtualHandled)O._virtualHandled=!0;else return;l.current+=_,u.current=_,PO||O.preventDefault(),c.current=kn(function(){var k=p.current?10:1;a(l.current*k,!1),l.current=0})}}function g(C,_){a(_,!0),PO||C.preventDefault()}var b=d.useRef(null),E=d.useRef(null);function x(C){if(e){kn.cancel(E.current),E.current=kn(function(){b.current=null},2);var _=C.deltaX,O=C.deltaY,k=C.shiftKey,T=_,I=O;(b.current==="sx"||!b.current&&k&&O&&!_)&&(T=O,I=0,b.current="sx");var $=Math.abs(T),M=Math.abs(I);b.current===null&&(b.current=o&&$>M?"x":"y"),b.current==="y"?m(C,I):g(C,T)}}function S(C){e&&(p.current=C.detail===u.current)}return[x,S]}function Foe(e,t,n,r){var i=d.useMemo(function(){return[new Map,[]]},[e,n.id,r]),o=_e(i,2),a=o[0],l=o[1],c=function(p){var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:p,m=a.get(p),g=a.get(h);if(m===void 0||g===void 0)for(var b=e.length,E=l.length;E<b;E+=1){var x,S=e[E],C=t(S);a.set(C,E);var _=(x=n.get(C))!==null&&x!==void 0?x:r;if(l[E]=(l[E-1]||0)+_,C===p&&(m=E),C===h&&(g=E),m!==void 0&&g!==void 0)break}return{top:l[m-1]||0,bottom:l[g]}};return c}var Boe=function(){function e(){Rr(this,e),J(this,"maps",void 0),J(this,"id",0),this.maps=Object.create(null)}return Mr(e,[{key:"set",value:function(n,r){this.maps[n]=r,this.id+=1}},{key:"get",value:function(n){return this.maps[n]}}]),e}();function LO(e){var t=parseFloat(e);return isNaN(t)?0:t}function joe(e,t,n){var r=d.useState(0),i=_e(r,2),o=i[0],a=i[1],l=d.useRef(new Map),c=d.useRef(new Boe),u=d.useRef();function p(){kn.cancel(u.current)}function h(){var g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;p();var b=function(){l.current.forEach(function(x,S){if(x&&x.offsetParent){var C=Zp(x),_=C.offsetHeight,O=getComputedStyle(C),k=O.marginTop,T=O.marginBottom,I=LO(k),$=LO(T),M=_+I+$;c.current.get(S)!==M&&c.current.set(S,M)}}),a(function(x){return x+1})};g?b():u.current=kn(b)}function m(g,b){var E=e(g);l.current.get(E),b?(l.current.set(E,b),h()):l.current.delete(E)}return d.useEffect(function(){return p},[]),[m,h,c.current,o]}var DO=14/15;function Hoe(e,t,n){var r=d.useRef(!1),i=d.useRef(0),o=d.useRef(0),a=d.useRef(null),l=d.useRef(null),c,u=function(g){if(r.current){var b=Math.ceil(g.touches[0].pageX),E=Math.ceil(g.touches[0].pageY),x=i.current-b,S=o.current-E,C=Math.abs(x)>Math.abs(S);C?i.current=b:o.current=E;var _=n(C,C?x:S,!1,g);_&&g.preventDefault(),clearInterval(l.current),_&&(l.current=setInterval(function(){C?x*=DO:S*=DO;var O=Math.floor(C?x:S);(!n(C,O,!0)||Math.abs(O)<=.1)&&clearInterval(l.current)},16))}},p=function(){r.current=!1,c()},h=function(g){c(),g.touches.length===1&&!r.current&&(r.current=!0,i.current=Math.ceil(g.touches[0].pageX),o.current=Math.ceil(g.touches[0].pageY),a.current=g.target,a.current.addEventListener("touchmove",u,{passive:!1}),a.current.addEventListener("touchend",p,{passive:!0}))};c=function(){a.current&&(a.current.removeEventListener("touchmove",u),a.current.removeEventListener("touchend",p))},xn(function(){return e&&t.current.addEventListener("touchstart",h,{passive:!0}),function(){var m;(m=t.current)===null||m===void 0||m.removeEventListener("touchstart",h),c(),clearInterval(l.current)}},[e])}var zoe=10;function Woe(e,t,n,r,i,o,a,l){var c=d.useRef(),u=d.useState(null),p=_e(u,2),h=p[0],m=p[1];return xn(function(){if(h&&h.times<zoe){if(!e.current){m(function(X){return te({},X)});return}o();var g=h.targetAlign,b=h.originAlign,E=h.index,x=h.offset,S=e.current.clientHeight,C=!1,_=g,O=null;if(S){for(var k=g||b,T=0,I=0,$=0,M=Math.min(t.length-1,E),R=0;R<=M;R+=1){var j=i(t[R]);I=T;var D=n.get(j);$=I+(D===void 0?r:D),T=$}for(var L=k==="top"?x:S-x,B=M;B>=0;B-=1){var H=i(t[B]),W=n.get(H);if(W===void 0){C=!0;break}if(L-=W,L<=0)break}switch(k){case"top":O=I-x;break;case"bottom":O=$-S+x;break;default:{var z=e.current.scrollTop,V=z+S;I<z?_="top":$>V&&(_="bottom")}}O!==null&&a(O),O!==h.lastTop&&(C=!0)}C&&m(te(te({},h),{},{times:h.times+1,targetAlign:_,lastTop:O}))}},[h,e.current]),function(g){if(g==null){l();return}if(kn.cancel(c.current),typeof g=="number")a(g);else if(g&&Nt(g)==="object"){var b,E=g.align;"index"in g?b=g.index:b=t.findIndex(function(C){return i(C)===g.key});var x=g.offset,S=x===void 0?0:x;m({times:0,index:b,offset:S,originAlign:E})}}}function FO(e,t){var n="touches"in e?e.touches[0]:e;return n[t?"pageX":"pageY"]}var BO=d.forwardRef(function(e,t){var n=e.prefixCls,r=e.rtl,i=e.scrollOffset,o=e.scrollRange,a=e.onStartMove,l=e.onStopMove,c=e.onScroll,u=e.horizontal,p=e.spinSize,h=e.containerSize,m=e.style,g=e.thumbStyle,b=d.useState(!1),E=_e(b,2),x=E[0],S=E[1],C=d.useState(null),_=_e(C,2),O=_[0],k=_[1],T=d.useState(null),I=_e(T,2),$=I[0],M=I[1],R=!r,j=d.useRef(),D=d.useRef(),L=d.useState(!1),B=_e(L,2),H=B[0],W=B[1],z=d.useRef(),V=function(){clearTimeout(z.current),W(!0),z.current=setTimeout(function(){W(!1)},3e3)},X=o-h||0,A=h-p||0,P=d.useMemo(function(){if(i===0||X===0)return 0;var be=i/X;return be*A},[i,X,A]),Y=function(ue){ue.stopPropagation(),ue.preventDefault()},U=d.useRef({top:P,dragging:x,pageY:O,startTop:$});U.current={top:P,dragging:x,pageY:O,startTop:$};var Q=function(ue){S(!0),k(FO(ue,u)),M(U.current.top),a(),ue.stopPropagation(),ue.preventDefault()};d.useEffect(function(){var be=function(me){me.preventDefault()},ue=j.current,de=D.current;return ue.addEventListener("touchstart",be,{passive:!1}),de.addEventListener("touchstart",Q,{passive:!1}),function(){ue.removeEventListener("touchstart",be),de.removeEventListener("touchstart",Q)}},[]);var ee=d.useRef();ee.current=X;var se=d.useRef();se.current=A,d.useEffect(function(){if(x){var be,ue=function(me){var ge=U.current,Ae=ge.dragging,De=ge.pageY,ze=ge.startTop;kn.cancel(be);var et=j.current.getBoundingClientRect(),Ie=h/(u?et.width:et.height);if(Ae){var Te=(FO(me,u)-De)*Ie,Ue=ze;!R&&u?Ue-=Te:Ue+=Te;var Le=ee.current,je=se.current,Ge=je?Ue/je:0,qe=Math.ceil(Ge*Le);qe=Math.max(qe,0),qe=Math.min(qe,Le),be=kn(function(){c(qe,u)})}},de=function(){S(!1),l()};return window.addEventListener("mousemove",ue,{passive:!0}),window.addEventListener("touchmove",ue,{passive:!0}),window.addEventListener("mouseup",de,{passive:!0}),window.addEventListener("touchend",de,{passive:!0}),function(){window.removeEventListener("mousemove",ue),window.removeEventListener("touchmove",ue),window.removeEventListener("mouseup",de),window.removeEventListener("touchend",de),kn.cancel(be)}}},[x]),d.useEffect(function(){return V(),function(){clearTimeout(z.current)}},[i]),d.useImperativeHandle(t,function(){return{delayHidden:V}});var ne="".concat(n,"-scrollbar"),oe={position:"absolute",visibility:H?null:"hidden"},pe={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return u?(oe.height=8,oe.left=0,oe.right=0,oe.bottom=0,pe.height="100%",pe.width=p,R?pe.left=P:pe.right=P):(oe.width=8,oe.top=0,oe.bottom=0,R?oe.right=0:oe.left=0,pe.width="100%",pe.height=p,pe.top=P),d.createElement("div",{ref:j,className:le(ne,J(J(J({},"".concat(ne,"-horizontal"),u),"".concat(ne,"-vertical"),!u),"".concat(ne,"-visible"),H)),style:te(te({},oe),m),onMouseDown:Y,onMouseMove:V},d.createElement("div",{ref:D,className:le("".concat(ne,"-thumb"),J({},"".concat(ne,"-thumb-moving"),x)),style:te(te({},pe),g),onMouseDown:Q}))}),Uoe=20;function jO(){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,Uoe),Math.floor(n)}var Koe=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles"],Voe=[],Goe={overflowY:"auto",overflowAnchor:"none"};function qoe(e,t){var n=e.prefixCls,r=n===void 0?"rc-virtual-list":n,i=e.className,o=e.height,a=e.itemHeight,l=e.fullHeight,c=l===void 0?!0:l,u=e.style,p=e.data,h=e.children,m=e.itemKey,g=e.virtual,b=e.direction,E=e.scrollWidth,x=e.component,S=x===void 0?"div":x,C=e.onScroll,_=e.onVirtualScroll,O=e.onVisibleChange,k=e.innerProps,T=e.extraRender,I=e.styles,$=Yt(e,Koe),M=d.useCallback(function(vt){return typeof m=="function"?m(vt):vt==null?void 0:vt[m]},[m]),R=joe(M),j=_e(R,4),D=j[0],L=j[1],B=j[2],H=j[3],W=!!(g!==!1&&o&&a),z=d.useMemo(function(){return Object.values(B.maps).reduce(function(vt,dt){return vt+dt},0)},[B.id,B.maps]),V=W&&p&&(Math.max(a*p.length,z)>o||!!E),X=b==="rtl",A=le(r,J({},"".concat(r,"-rtl"),X),i),P=p||Voe,Y=d.useRef(),U=d.useRef(),Q=d.useRef(),ee=d.useState(0),se=_e(ee,2),ne=se[0],oe=se[1],pe=d.useState(0),be=_e(pe,2),ue=be[0],de=be[1],re=d.useState(!1),me=_e(re,2),ge=me[0],Ae=me[1],De=function(){Ae(!0)},ze=function(){Ae(!1)},et={getKey:M};function Ie(vt){oe(function(dt){var ot;typeof vt=="function"?ot=vt(dt):ot=vt;var Xt=Vt(ot);return Y.current.scrollTop=Xt,Xt})}var Te=d.useRef({start:0,end:P.length}),Ue=d.useRef(),Le=Loe(P,M),je=_e(Le,1),Ge=je[0];Ue.current=Ge;var qe=d.useMemo(function(){if(!W)return{scrollHeight:void 0,start:0,end:P.length-1,offset:void 0};if(!V){var vt;return{scrollHeight:((vt=U.current)===null||vt===void 0?void 0:vt.offsetHeight)||0,start:0,end:P.length-1,offset:void 0}}for(var dt=0,ot,Xt,Dt,xt=P.length,Tt=0;Tt<xt;Tt+=1){var tn=P[Tt],mn=M(tn),Sn=B.get(mn),Ke=dt+(Sn===void 0?a:Sn);Ke>=ne&&ot===void 0&&(ot=Tt,Xt=dt),Ke>ne+o&&Dt===void 0&&(Dt=Tt),dt=Ke}return ot===void 0&&(ot=0,Xt=0,Dt=Math.ceil(o/a)),Dt===void 0&&(Dt=P.length-1),Dt=Math.min(Dt+1,P.length-1),{scrollHeight:dt,start:ot,end:Dt,offset:Xt}},[V,W,ne,P,H,o]),Ce=qe.scrollHeight,ke=qe.start,We=qe.end,Pe=qe.offset;Te.current.start=ke,Te.current.end=We;var Be=d.useState({width:0,height:o}),He=_e(Be,2),Qe=He[0],ie=He[1],xe=function(dt){ie({width:dt.offsetWidth,height:dt.offsetHeight})},Ne=d.useRef(),$e=d.useRef(),Ye=d.useMemo(function(){return jO(Qe.width,E)},[Qe.width,E]),ht=d.useMemo(function(){return jO(Qe.height,Ce)},[Qe.height,Ce]),It=Ce-o,Jt=d.useRef(It);Jt.current=It;function Vt(vt){var dt=vt;return Number.isNaN(Jt.current)||(dt=Math.min(dt,Jt.current)),dt=Math.max(dt,0),dt}var en=ne<=0,rn=ne>=It,Gt=ue<=0,Ft=ue>=E,bt=xF(en,rn,Gt,Ft),gt=function(){return{x:X?-ue:ue,y:ne}},ft=d.useRef(gt()),he=Kn(function(vt){if(_){var dt=te(te({},gt()),vt);(ft.current.x!==dt.x||ft.current.y!==dt.y)&&(_(dt),ft.current=dt)}});function we(vt,dt){var ot=vt;dt?(Ta.flushSync(function(){de(ot)}),he()):Ie(ot)}function ve(vt){var dt=vt.currentTarget.scrollTop;dt!==ne&&Ie(dt),C==null||C(vt),he()}var Me=function(dt){var ot=dt,Xt=E?E-Qe.width:0;return ot=Math.max(ot,0),ot=Math.min(ot,Xt),ot},Je=Kn(function(vt,dt){dt?(Ta.flushSync(function(){de(function(ot){var Xt=ot+(X?-vt:vt);return Me(Xt)})}),he()):Ie(function(ot){var Xt=ot+vt;return Xt})}),tt=Doe(W,en,rn,Gt,Ft,!!E,Je),st=_e(tt,2),at=st[0],it=st[1];Hoe(W,Y,function(vt,dt,ot,Xt){var Dt=Xt;return bt(vt,dt,ot)?!1:!Dt||!Dt._virtualHandled?(Dt&&(Dt._virtualHandled=!0),at({preventDefault:function(){},deltaX:vt?dt:0,deltaY:vt?0:dt}),!0):!1}),xn(function(){function vt(ot){var Xt=en&&ot.detail<0,Dt=rn&&ot.detail>0;W&&!Xt&&!Dt&&ot.preventDefault()}var dt=Y.current;return dt.addEventListener("wheel",at,{passive:!1}),dt.addEventListener("DOMMouseScroll",it,{passive:!0}),dt.addEventListener("MozMousePixelScroll",vt,{passive:!1}),function(){dt.removeEventListener("wheel",at),dt.removeEventListener("DOMMouseScroll",it),dt.removeEventListener("MozMousePixelScroll",vt)}},[W,en,rn]),xn(function(){if(E){var vt=Me(ue);de(vt),he({x:vt})}},[Qe.width,E]);var nt=function(){var dt,ot;(dt=Ne.current)===null||dt===void 0||dt.delayHidden(),(ot=$e.current)===null||ot===void 0||ot.delayHidden()},ct=Woe(Y,P,B,a,M,function(){return L(!0)},Ie,nt);d.useImperativeHandle(t,function(){return{nativeElement:Q.current,getScrollInfo:gt,scrollTo:function(dt){function ot(Xt){return Xt&&Nt(Xt)==="object"&&("left"in Xt||"top"in Xt)}ot(dt)?(dt.left!==void 0&&de(Me(dt.left)),ct(dt.top)):ct(dt)}}}),xn(function(){if(O){var vt=P.slice(ke,We+1);O(vt,P)}},[ke,We,P]);var mt=Foe(P,M,B,a),St=T==null?void 0:T({start:ke,end:We,virtual:V,offsetX:ue,offsetY:Pe,rtl:X,getSize:mt}),Zt=Moe(P,ke,We,E,ue,D,h,et),Lt=null;o&&(Lt=te(J({},c?"height":"maxHeight",o),Goe),W&&(Lt.overflowY="hidden",E&&(Lt.overflowX="hidden"),ge&&(Lt.pointerEvents="none")));var Pt={};return X&&(Pt.dir="rtl"),d.createElement("div",Ve({ref:Q,style:te(te({},u),{},{position:"relative"}),className:A},Pt,$),d.createElement(qi,{onResize:xe},d.createElement(S,{className:"".concat(r,"-holder"),style:Lt,ref:Y,onScroll:ve,onMouseEnter:nt},d.createElement(EF,{prefixCls:r,height:Ce,offsetX:ue,offsetY:Pe,scrollWidth:E,onInnerResize:L,ref:U,innerProps:k,rtl:X,extra:St},Zt))),V&&Ce>o&&d.createElement(BO,{ref:Ne,prefixCls:r,scrollOffset:ne,scrollRange:Ce,rtl:X,onScroll:we,onStartMove:De,onStopMove:ze,spinSize:ht,containerSize:Qe.height,style:I==null?void 0:I.verticalScrollBar,thumbStyle:I==null?void 0:I.verticalScrollBarThumb}),V&&E>Qe.width&&d.createElement(BO,{ref:$e,prefixCls:r,scrollOffset:ue,scrollRange:E,rtl:X,onScroll:we,onStartMove:De,onStopMove:ze,spinSize:Ye,containerSize:Qe.width,horizontal:!0,style:I==null?void 0:I.horizontalScrollBar,thumbStyle:I==null?void 0:I.horizontalScrollBarThumb}))}var Xb=d.forwardRef(qoe);Xb.displayName="List";function Xoe(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var Yoe=["disabled","title","children","style","className"];function HO(e){return typeof e=="string"||typeof e=="number"}var Qoe=function(t,n){var r=Fie(),i=r.prefixCls,o=r.id,a=r.open,l=r.multiple,c=r.mode,u=r.searchValue,p=r.toggleOpen,h=r.notFoundContent,m=r.onPopupScroll,g=d.useContext(W3),b=g.maxCount,E=g.flattenOptions,x=g.onActiveValue,S=g.defaultActiveFirstOption,C=g.onSelect,_=g.menuItemSelectedIcon,O=g.rawValues,k=g.fieldNames,T=g.virtual,I=g.direction,$=g.listHeight,M=g.listItemHeight,R=g.optionRender,j="".concat(i,"-item"),D=Vu(function(){return E},[a,E],function(ue,de){return de[0]&&ue[1]!==de[1]}),L=d.useRef(null),B=d.useMemo(function(){return l&&dE(b)&&(O==null?void 0:O.size)>=b},[l,b,O==null?void 0:O.size]),H=function(de){de.preventDefault()},W=function(de){var re;(re=L.current)===null||re===void 0||re.scrollTo(typeof de=="number"?{index:de}:de)},z=d.useCallback(function(ue){return c==="combobox"?!1:O.has(ue)},[c,Xe(O).toString(),O.size]),V=function(de){for(var re=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,me=D.length,ge=0;ge<me;ge+=1){var Ae=(de+ge*re+me)%me,De=D[Ae]||{},ze=De.group,et=De.data;if(!ze&&!(et!=null&&et.disabled)&&(z(et.value)||!B))return Ae}return-1},X=d.useState(function(){return V(0)}),A=_e(X,2),P=A[0],Y=A[1],U=function(de){var re=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;Y(de);var me={source:re?"keyboard":"mouse"},ge=D[de];if(!ge){x(null,-1,me);return}x(ge.value,de,me)};d.useEffect(function(){U(S!==!1?V(0):-1)},[D.length,u]);var Q=d.useCallback(function(ue){return c==="combobox"?String(ue).toLowerCase()===u.toLowerCase():O.has(ue)},[c,u,Xe(O).toString(),O.size]);d.useEffect(function(){var ue=setTimeout(function(){if(!l&&a&&O.size===1){var re=Array.from(O)[0],me=D.findIndex(function(ge){var Ae=ge.data;return Ae.value===re});me!==-1&&(U(me),W(me))}});if(a){var de;(de=L.current)===null||de===void 0||de.scrollTo(void 0)}return function(){return clearTimeout(ue)}},[a,u]);var ee=function(de){de!==void 0&&C(de,{selected:!O.has(de)}),l||p(!1)};if(d.useImperativeHandle(n,function(){return{onKeyDown:function(de){var re=de.which,me=de.ctrlKey;switch(re){case lt.N:case lt.P:case lt.UP:case lt.DOWN:{var ge=0;if(re===lt.UP?ge=-1:re===lt.DOWN?ge=1:Xoe()&&me&&(re===lt.N?ge=1:re===lt.P&&(ge=-1)),ge!==0){var Ae=V(P+ge,ge);W(Ae),U(Ae,!0)}break}case lt.TAB:case lt.ENTER:{var De,ze=D[P];ze&&!(ze!=null&&(De=ze.data)!==null&&De!==void 0&&De.disabled)&&!B?ee(ze.value):ee(void 0),a&&de.preventDefault();break}case lt.ESC:p(!1),a&&de.stopPropagation()}},onKeyUp:function(){},scrollTo:function(de){W(de)}}}),D.length===0)return d.createElement("div",{role:"listbox",id:"".concat(o,"_list"),className:"".concat(j,"-empty"),onMouseDown:H},h);var se=Object.keys(k).map(function(ue){return k[ue]}),ne=function(de){return de.label};function oe(ue,de){var re=ue.group;return{role:re?"presentation":"option",id:"".concat(o,"_list_").concat(de)}}var pe=function(de){var re=D[de];if(!re)return null;var me=re.data||{},ge=me.value,Ae=re.group,De=Oi(me,!0),ze=ne(re);return re?d.createElement("div",Ve({"aria-label":typeof ze=="string"&&!Ae?ze:null},De,{key:de},oe(re,de),{"aria-selected":Q(ge)}),ge):null},be={role:"listbox",id:"".concat(o,"_list")};return d.createElement(d.Fragment,null,T&&d.createElement("div",Ve({},be,{style:{height:0,width:0,overflow:"hidden"}}),pe(P-1),pe(P),pe(P+1)),d.createElement(Xb,{itemKey:"key",ref:L,data:D,height:$,itemHeight:M,fullHeight:!1,onMouseDown:H,onScroll:m,virtual:T,direction:I,innerProps:T?null:be},function(ue,de){var re=ue.group,me=ue.groupOption,ge=ue.data,Ae=ue.label,De=ue.value,ze=ge.key;if(re){var et,Ie=(et=ge.title)!==null&&et!==void 0?et:HO(Ae)?Ae.toString():void 0;return d.createElement("div",{className:le(j,"".concat(j,"-group"),ge.className),title:Ie},Ae!==void 0?Ae:ze)}var Te=ge.disabled,Ue=ge.title;ge.children;var Le=ge.style,je=ge.className,Ge=Yt(ge,Yoe),qe=ir(Ge,se),Ce=z(De),ke=Te||!Ce&&B,We="".concat(j,"-option"),Pe=le(j,We,je,J(J(J(J({},"".concat(We,"-grouped"),me),"".concat(We,"-active"),P===de&&!ke),"".concat(We,"-disabled"),ke),"".concat(We,"-selected"),Ce)),Be=ne(ue),He=!_||typeof _=="function"||Ce,Qe=typeof Be=="number"?Be:Be||De,ie=HO(Qe)?Qe.toString():void 0;return Ue!==void 0&&(ie=Ue),d.createElement("div",Ve({},Oi(qe),T?{}:oe(ue,de),{"aria-selected":Q(De),className:Pe,title:ie,onMouseMove:function(){P===de||ke||U(de)},onClick:function(){ke||ee(De)},style:Le}),d.createElement("div",{className:"".concat(We,"-content")},typeof R=="function"?R(ue,{index:de}):Qe),d.isValidElement(_)||Ce,He&&d.createElement(Gb,{className:"".concat(j,"-option-state"),customizeIcon:_,customizeIconProps:{value:De,disabled:ke,isSelected:Ce}},Ce?"✓":null))}))},Zoe=d.forwardRef(Qoe);const Joe=function(e,t){var n=d.useRef({values:new Map,options:new Map}),r=d.useMemo(function(){var o=n.current,a=o.values,l=o.options,c=e.map(function(h){if(h.label===void 0){var m;return te(te({},h),{},{label:(m=a.get(h.value))===null||m===void 0?void 0:m.label})}return h}),u=new Map,p=new Map;return c.forEach(function(h){u.set(h.value,h),p.set(h.value,t.get(h.value)||l.get(h.value))}),n.current.values=u,n.current.options=p,c},[e,t]),i=d.useCallback(function(o){return t.get(o)||n.current.options.get(o)},[t]);return[r,i]};function B4(e,t){return bF(e).join("").toUpperCase().includes(t)}const eae=function(e,t,n,r,i){return d.useMemo(function(){if(!n||r===!1)return e;var o=t.options,a=t.label,l=t.value,c=[],u=typeof r=="function",p=n.toUpperCase(),h=u?r:function(g,b){return i?B4(b[i],p):b[o]?B4(b[a!=="children"?a:"label"],p):B4(b[l],p)},m=u?function(g){return fE(g)}:function(g){return g};return e.forEach(function(g){if(g[o]){var b=h(n,m(g));if(b)c.push(g);else{var E=g[o].filter(function(x){return h(n,m(x))});E.length&&c.push(te(te({},g),{},J({},o,E)))}return}h(n,m(g))&&c.push(g)}),c},[e,r,i,n,t])};var zO=0,tae=co();function nae(){var e;return tae?(e=zO,zO+=1):e="TEST_OR_SSR",e}function rae(e){var t=d.useState(),n=_e(t,2),r=n[0],i=n[1];return d.useEffect(function(){i("rc_select_".concat(nae()))},[]),e||r}var iae=["children","value"],oae=["children"];function aae(e){var t=e,n=t.key,r=t.props,i=r.children,o=r.value,a=Yt(r,iae);return te({key:n,value:o!==void 0?o:n,children:i},a)}function wF(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return ii(e).map(function(n,r){if(!d.isValidElement(n)||!n.type)return null;var i=n,o=i.type.isSelectOptGroup,a=i.key,l=i.props,c=l.children,u=Yt(l,oae);return t||!o?aae(n):te(te({key:"__RC_SELECT_GRP__".concat(a===null?r:a,"__"),label:a},u),{},{options:wF(c)})}).filter(function(n){return n})}var lae=function(t,n,r,i,o){return d.useMemo(function(){var a=t,l=!t;l&&(a=wF(n));var c=new Map,u=new Map,p=function(g,b,E){E&&typeof E=="string"&&g.set(b[E],b)},h=function m(g){for(var b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,E=0;E<g.length;E+=1){var x=g[E];!x[r.options]||b?(c.set(x[r.value],x),p(u,x,r.label),p(u,x,i),p(u,x,o)):m(x[r.options],!0)}};return h(a),{options:a,valueOptions:c,labelOptions:u}},[t,n,r,i,o])};function WO(e){var t=d.useRef();t.current=e;var n=d.useCallback(function(){return t.current.apply(t,arguments)},[]);return n}var sae=["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"],cae=["inputValue"];function uae(e){return!e||Nt(e)!=="object"}var dae=d.forwardRef(function(e,t){var n=e.id,r=e.mode,i=e.prefixCls,o=i===void 0?"rc-select":i,a=e.backfill,l=e.fieldNames,c=e.inputValue,u=e.searchValue,p=e.onSearch,h=e.autoClearSearchValue,m=h===void 0?!0:h,g=e.onSelect,b=e.onDeselect,E=e.dropdownMatchSelectWidth,x=E===void 0?!0:E,S=e.filterOption,C=e.filterSort,_=e.optionFilterProp,O=e.optionLabelProp,k=e.options,T=e.optionRender,I=e.children,$=e.defaultActiveFirstOption,M=e.menuItemSelectedIcon,R=e.virtual,j=e.direction,D=e.listHeight,L=D===void 0?200:D,B=e.listItemHeight,H=B===void 0?20:B,W=e.labelRender,z=e.value,V=e.defaultValue,X=e.labelInValue,A=e.onChange,P=e.maxCount,Y=Yt(e,sae),U=rae(n),Q=pE(r),ee=!!(!k&&I),se=d.useMemo(function(){return S===void 0&&r==="combobox"?!1:S},[S,r]),ne=d.useMemo(function(){return SF(l,ee)},[JSON.stringify(l),ee]),oe=_r("",{value:u!==void 0?u:c,postState:function(Me){return Me||""}}),pe=_e(oe,2),be=pe[0],ue=pe[1],de=lae(k,I,ne,_,O),re=de.valueOptions,me=de.labelOptions,ge=de.options,Ae=d.useCallback(function(ve){var Me=bF(ve);return Me.map(function(Je){var tt,st,at,it,nt;if(uae(Je))tt=Je;else{var ct;at=Je.key,st=Je.label,tt=(ct=Je.value)!==null&&ct!==void 0?ct:at}var mt=re.get(tt);if(mt){var St;st===void 0&&(st=mt==null?void 0:mt[O||ne.label]),at===void 0&&(at=(St=mt==null?void 0:mt.key)!==null&&St!==void 0?St:tt),it=mt==null?void 0:mt.disabled,nt=mt==null?void 0:mt.title}return{label:st,value:tt,key:at,disabled:it,title:nt}})},[ne,O,re]),De=_r(V,{value:z}),ze=_e(De,2),et=ze[0],Ie=ze[1],Te=d.useMemo(function(){var ve,Me=Q&&et===null?[]:et,Je=Ae(Me);return r==="combobox"&&roe((ve=Je[0])===null||ve===void 0?void 0:ve.value)?[]:Je},[et,Ae,r,Q]),Ue=Joe(Te,re),Le=_e(Ue,2),je=Le[0],Ge=Le[1],qe=d.useMemo(function(){if(!r&&je.length===1){var ve=je[0];if(ve.value===null&&(ve.label===null||ve.label===void 0))return[]}return je.map(function(Me){var Je;return te(te({},Me),{},{label:(Je=typeof W=="function"?W(Me):Me.label)!==null&&Je!==void 0?Je:Me.value})})},[r,je,W]),Ce=d.useMemo(function(){return new Set(je.map(function(ve){return ve.value}))},[je]);d.useEffect(function(){if(r==="combobox"){var ve,Me=(ve=je[0])===null||ve===void 0?void 0:ve.value;ue(noe(Me)?String(Me):"")}},[je]);var ke=WO(function(ve,Me){var Je=Me??ve;return J(J({},ne.value,ve),ne.label,Je)}),We=d.useMemo(function(){if(r!=="tags")return ge;var ve=Xe(ge),Me=function(tt){return re.has(tt)};return Xe(je).sort(function(Je,tt){return Je.value<tt.value?-1:1}).forEach(function(Je){var tt=Je.value;Me(tt)||ve.push(ke(tt,Je.label))}),ve},[ke,ge,re,je,r]),Pe=eae(We,ne,be,se,_),Be=d.useMemo(function(){return r!=="tags"||!be||Pe.some(function(ve){return ve[_||"value"]===be})||Pe.some(function(ve){return ve[ne.value]===be})?Pe:[ke(be)].concat(Xe(Pe))},[ke,_,r,Pe,be,ne]),He=function ve(Me){var Je=Xe(Me).sort(function(tt,st){return C(tt,st,{searchValue:be})});return Je.map(function(tt){return Array.isArray(tt.options)?te(te({},tt),{},{options:tt.options.length>0?ve(tt.options):tt.options}):tt})},Qe=d.useMemo(function(){return C?He(Be):Be},[Be,C,be]),ie=d.useMemo(function(){return Ooe(Qe,{fieldNames:ne,childrenAsData:ee})},[Qe,ne,ee]),xe=function(Me){var Je=Ae(Me);if(Ie(Je),A&&(Je.length!==je.length||Je.some(function(at,it){var nt;return((nt=je[it])===null||nt===void 0?void 0:nt.value)!==(at==null?void 0:at.value)}))){var tt=X?Je:Je.map(function(at){return at.value}),st=Je.map(function(at){return fE(Ge(at.value))});A(Q?tt:tt[0],Q?st:st[0])}},Ne=d.useState(null),$e=_e(Ne,2),Ye=$e[0],ht=$e[1],It=d.useState(0),Jt=_e(It,2),Vt=Jt[0],en=Jt[1],rn=$!==void 0?$:r!=="combobox",Gt=d.useCallback(function(ve,Me){var Je=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},tt=Je.source,st=tt===void 0?"keyboard":tt;en(Me),a&&r==="combobox"&&ve!==null&&st==="keyboard"&&ht(String(ve))},[a,r]),Ft=function(Me,Je,tt){var st=function(){var vt,dt=Ge(Me);return[X?{label:dt==null?void 0:dt[ne.label],value:Me,key:(vt=dt==null?void 0:dt.key)!==null&&vt!==void 0?vt:Me}:Me,fE(dt)]};if(Je&&g){var at=st(),it=_e(at,2),nt=it[0],ct=it[1];g(nt,ct)}else if(!Je&&b&&tt!=="clear"){var mt=st(),St=_e(mt,2),Zt=St[0],Lt=St[1];b(Zt,Lt)}},bt=WO(function(ve,Me){var Je,tt=Q?Me.selected:!0;tt?Je=Q?[].concat(Xe(je),[ve]):[ve]:Je=je.filter(function(st){return st.value!==ve}),xe(Je),Ft(ve,tt),r==="combobox"?ht(""):(!pE||m)&&(ue(""),ht(""))}),gt=function(Me,Je){xe(Me);var tt=Je.type,st=Je.values;(tt==="remove"||tt==="clear")&&st.forEach(function(at){Ft(at.value,!1,tt)})},ft=function(Me,Je){if(ue(Me),ht(null),Je.source==="submit"){var tt=(Me||"").trim();if(tt){var st=Array.from(new Set([].concat(Xe(Ce),[tt])));xe(st),Ft(tt,!0),ue("")}return}Je.source!=="blur"&&(r==="combobox"&&xe(Me),p==null||p(Me))},he=function(Me){var Je=Me;r!=="tags"&&(Je=Me.map(function(st){var at=me.get(st);return at==null?void 0:at.value}).filter(function(st){return st!==void 0}));var tt=Array.from(new Set([].concat(Xe(Ce),Xe(Je))));xe(tt),tt.forEach(function(st){Ft(st,!0)})},we=d.useMemo(function(){var ve=R!==!1&&x!==!1;return te(te({},de),{},{flattenOptions:ie,onActiveValue:Gt,defaultActiveFirstOption:rn,onSelect:bt,menuItemSelectedIcon:M,rawValues:Ce,fieldNames:ne,virtual:ve,direction:j,listHeight:L,listItemHeight:H,childrenAsData:ee,maxCount:P,optionRender:T})},[P,de,ie,Gt,rn,bt,M,Ce,ne,R,x,j,L,H,ee,T]);return d.createElement(W3.Provider,{value:we},d.createElement(Aoe,Ve({},Y,{id:U,prefixCls:o,ref:t,omitDomProps:cae,mode:r,displayValues:qe,onDisplayValuesChange:gt,direction:j,searchValue:be,onSearch:ft,autoClearSearchValue:m,onSearchSplit:he,dropdownMatchSelectWidth:x,OptionList:Zoe,emptyOptions:!ie.length,activeValue:Ye,activeDescendantId:"".concat(U,"_list_").concat(Vt)})))}),V3=dae;V3.Option=K3;V3.OptGroup=U3;function fy(e,t,n){return le({[`${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 Yb=(e,t)=>t||e,fae=()=>{const[,e]=Fi(),[t]=jl("Empty"),r=new An(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return d.createElement("svg",{style:r,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},d.createElement("title",null,(t==null?void 0:t.description)||"Empty"),d.createElement("g",{fill:"none",fillRule:"evenodd"},d.createElement("g",{transform:"translate(24 31.67)"},d.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),d.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"}),d.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)"}),d.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"}),d.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"})),d.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"}),d.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},d.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),d.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},pae=()=>{const[,e]=Fi(),[t]=jl("Empty"),{colorFill:n,colorFillTertiary:r,colorFillQuaternary:i,colorBgContainer:o}=e,{borderColor:a,shadowColor:l,contentColor:c}=d.useMemo(()=>({borderColor:new An(n).onBackground(o).toHexString(),shadowColor:new An(r).onBackground(o).toHexString(),contentColor:new An(i).onBackground(o).toHexString()}),[n,r,i,o]);return d.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},d.createElement("title",null,(t==null?void 0:t.description)||"Empty"),d.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},d.createElement("ellipse",{fill:l,cx:"32",cy:"33",rx:"32",ry:"7"}),d.createElement("g",{fillRule:"nonzero",stroke:a},d.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"}),d.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:c}))))},hae=e=>{const{componentCls:t,margin:n,marginXS:r,marginXL:i,fontSize:o,lineHeight:a}=e;return{[t]:{marginInline:r,fontSize:o,lineHeight:a,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}}}}},mae=Fn("Empty",e=>{const{componentCls:t,controlHeightLG:n,calc:r}=e,i=hn(e,{emptyImgCls:`${t}-img`,emptyImgHeight:r(n).mul(2.5).equal(),emptyImgHeightMD:n,emptyImgHeightSM:r(n).mul(.875).equal()});return[hae(i)]});var gae=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 _F=d.createElement(fae,null),TF=d.createElement(pae,null),cs=e=>{var t,n,r,i,o,a,l,c;const{className:u,rootClassName:p,prefixCls:h,image:m=_F,description:g,children:b,imageStyle:E,style:x,classNames:S,styles:C}=e,_=gae(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style","classNames","styles"]),{getPrefixCls:O,direction:k,empty:T}=d.useContext(At),I=O("empty",h),[$,M,R]=mae(I),[j]=jl("Empty"),D=typeof g<"u"?g:j==null?void 0:j.description,L=typeof D=="string"?D:"empty";let B=null;return typeof m=="string"?B=d.createElement("img",{alt:L,src:m}):B=m,$(d.createElement("div",Object.assign({className:le(M,R,I,T==null?void 0:T.className,{[`${I}-normal`]:m===TF,[`${I}-rtl`]:k==="rtl"},u,p,(t=T==null?void 0:T.classNames)===null||t===void 0?void 0:t.root,S==null?void 0:S.root),style:Object.assign(Object.assign(Object.assign(Object.assign({},(n=T==null?void 0:T.styles)===null||n===void 0?void 0:n.root),T==null?void 0:T.style),C==null?void 0:C.root),x)},_),d.createElement("div",{className:le(`${I}-image`,(r=T==null?void 0:T.classNames)===null||r===void 0?void 0:r.image,S==null?void 0:S.image),style:Object.assign(Object.assign(Object.assign({},E),(i=T==null?void 0:T.styles)===null||i===void 0?void 0:i.image),C==null?void 0:C.image)},B),D&&d.createElement("div",{className:le(`${I}-description`,(o=T==null?void 0:T.classNames)===null||o===void 0?void 0:o.description,S==null?void 0:S.description),style:Object.assign(Object.assign({},(a=T==null?void 0:T.styles)===null||a===void 0?void 0:a.description),C==null?void 0:C.description)},D),b&&d.createElement("div",{className:le(`${I}-footer`,(l=T==null?void 0:T.classNames)===null||l===void 0?void 0:l.footer,S==null?void 0:S.footer),style:Object.assign(Object.assign({},(c=T==null?void 0:T.styles)===null||c===void 0?void 0:c.footer),C==null?void 0:C.footer)},b)))};cs.PRESENTED_IMAGE_DEFAULT=_F;cs.PRESENTED_IMAGE_SIMPLE=TF;const OF=e=>{const{componentName:t}=e,{getPrefixCls:n}=d.useContext(At),r=n("empty");switch(t){case"Table":case"List":return fe.createElement(cs,{image:cs.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return fe.createElement(cs,{image:cs.PRESENTED_IMAGE_SIMPLE,className:`${r}-small`});case"Table.filter":return null;default:return fe.createElement(cs,null)}},G3=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;var r,i;const{variant:o,[e]:a}=d.useContext(At),l=d.useContext(VD),c=a==null?void 0:a.variant;let u;typeof t<"u"?u=t:n===!1?u="borderless":u=(i=(r=l??c)!==null&&r!==void 0?r:o)!==null&&i!==void 0?i:"outlined";const p=RZ.includes(u);return[u,p]},vae=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 yae(e,t){return e||vae(t)}const UO=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"}},bae=e=>{const{antCls:t,componentCls:n}=e,r=`${n}-item`,i=`&${t}-slide-up-enter${t}-slide-up-enter-active`,o=`&${t}-slide-up-appear${t}-slide-up-appear-active`,a=`&${t}-slide-up-leave${t}-slide-up-leave-active`,l=`${n}-dropdown-placement-`,c=`${r}-option-selected`;return[{[`${n}-dropdown`]:Object.assign(Object.assign({},zn(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,[`
${i}${l}bottomLeft,
${o}${l}bottomLeft
`]:{animationName:I3},[`
${i}${l}topLeft,
${o}${l}topLeft,
${i}${l}topRight,
${o}${l}topRight
`]:{animationName:$3},[`${a}${l}bottomLeft`]:{animationName:k3},[`
${a}${l}topLeft,
${a}${l}topRight
`]:{animationName:N3},"&-hidden":{display:"none"},[r]:Object.assign(Object.assign({},UO(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"},ll),"&-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({},UO(e)),{color:e.colorTextDisabled})}),[`${c}:has(+ ${c})`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${c}`]:{borderStartStartRadius:0,borderStartEndRadius:0}},"&-rtl":{direction:"rtl"}})},wc(e,"slide-up"),wc(e,"slide-down"),cy(e,"move-up"),cy(e,"move-down")]},Cae=e=>{const{multipleSelectItemHeight:t,paddingXXS:n,lineWidth:r,INTERNAL_FIXED_ITEM_MARGIN:i}=e,o=e.max(e.calc(n).sub(r).equal(),0),a=e.max(e.calc(o).sub(i).equal(),0);return{basePadding:o,containerPadding:a,itemHeight:ae(t),itemLineHeight:ae(e.calc(t).sub(e.calc(e.lineWidth).mul(2)).equal())}},Sae=e=>{const{multipleSelectItemHeight:t,selectHeight:n,lineWidth:r}=e;return e.calc(n).sub(t).div(2).sub(r).equal()},Eae=e=>{const{componentCls:t,iconCls:n,borderRadiusSM:r,motionDurationSlow:i,paddingXS:o,multipleItemColorDisabled:a,multipleItemBorderColorDisabled:l,colorIcon:c,colorIconHover:u,INTERNAL_FIXED_ITEM_MARGIN:p}=e;return{[`${t}-selection-overflow`]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"},[`${t}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",marginBlock:p,borderRadius:r,cursor:"default",transition:`font-size ${i}, line-height ${i}, height ${i}`,marginInlineEnd:e.calc(p).mul(2).equal(),paddingInlineStart:o,paddingInlineEnd:e.calc(o).div(2).equal(),[`${t}-disabled&`]:{color:a,borderColor:l,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.calc(o).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},xm()),{display:"inline-flex",alignItems:"center",color:c,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${n}`]:{verticalAlign:"-0.2em"},"&:hover":{color:u}})}}}},xae=(e,t)=>{const{componentCls:n,INTERNAL_FIXED_ITEM_MARGIN:r}=e,i=`${n}-selection-overflow`,o=e.multipleSelectItemHeight,a=Sae(e),l=t?`${n}-${t}`:"",c=Cae(e);return{[`${n}-multiple${l}`]:Object.assign(Object.assign({},Eae(e)),{[`${n}-selector`]:{display:"flex",alignItems:"center",width:"100%",height:"100%",paddingInline:c.basePadding,paddingBlock:c.containerPadding,borderRadius:e.borderRadius,[`${n}-disabled&`]:{background:e.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${ae(r)} 0`,lineHeight:ae(o),visibility:"hidden",content:'"\\a0"'}},[`${n}-selection-item`]:{height:c.itemHeight,lineHeight:ae(c.itemLineHeight)},[`${n}-selection-wrap`]:{alignSelf:"flex-start","&:after":{lineHeight:ae(o),marginBlock:r}},[`${n}-prefix`]:{marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(c.basePadding).equal()},[`${i}-item + ${i}-item,
${n}-prefix + ${n}-selection-wrap
`]:{[`${n}-selection-search`]:{marginInlineStart:0},[`${n}-selection-placeholder`]:{insetInlineStart:0}},[`${i}-item-suffix`]:{minHeight:c.itemHeight,marginBlock:r},[`${n}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(a).equal(),"\n &-input,\n &-mirror\n ":{height:o,fontFamily:e.fontFamily,lineHeight:ae(o),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(c.basePadding).equal(),insetInlineEnd:e.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`}})}};function j4(e,t){const{componentCls:n}=e,r=t?`${n}-${t}`:"",i={[`${n}-multiple${r}`]:{fontSize:e.fontSize,[`${n}-selector`]:{[`${n}-show-search&`]:{cursor:"text"}},[`
&${n}-show-arrow ${n}-selector,
&${n}-allow-clear ${n}-selector
`]:{paddingInlineEnd:e.calc(e.fontSizeIcon).add(e.controlPaddingHorizontal).equal()}}};return[xae(e,t),i]}const wae=e=>{const{componentCls:t}=e,n=hn(e,{selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),r=hn(e,{fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius});return[j4(e),j4(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal()},[`${t}-selection-search`]:{marginInlineStart:2}}},j4(r,"lg")]};function H4(e,t){const{componentCls:n,inputPaddingHorizontalBase:r,borderRadius:i}=e,o=e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),a=t?`${n}-${t}`:"";return{[`${n}-single${a}`]:{fontSize:e.fontSize,height:e.controlHeight,[`${n}-selector`]:Object.assign(Object.assign({},zn(e,!0)),{display:"flex",borderRadius:i,flex:"1 1 auto",[`${n}-selection-search`]:{position:"absolute",inset:0,width:"100%","&-input":{width:"100%",WebkitAppearance:"textfield"}},[`
${n}-selection-item,
${n}-selection-placeholder
`]:{display:"block",padding:0,lineHeight:ae(o),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"'}}),[`
&${n}-show-arrow ${n}-selection-item,
&${n}-show-arrow ${n}-selection-search,
&${n}-show-arrow ${n}-selection-placeholder
`]:{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:o},"&:after":{lineHeight:ae(o)}}},[`&${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 _ae(e){const{componentCls:t}=e,n=e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal();return[H4(e),H4(hn(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()},[`
&${t}-show-arrow ${t}-selection-item,
&${t}-show-arrow ${t}-selection-placeholder
`]:{paddingInlineEnd:e.calc(e.fontSize).mul(1.5).equal()}}}},H4(hn(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}const Tae=e=>{const{fontSize:t,lineHeight:n,lineWidth:r,controlHeight:i,controlHeightSM:o,controlHeightLG:a,paddingXXS:l,controlPaddingHorizontal:c,zIndexPopupBase:u,colorText:p,fontWeightStrong:h,controlItemBgActive:m,controlItemBgHover:g,colorBgContainer:b,colorFillSecondary:E,colorBgContainerDisabled:x,colorTextDisabled:S,colorPrimaryHover:C,colorPrimary:_,controlOutline:O}=e,k=l*2,T=r*2,I=Math.min(i-k,i-T),$=Math.min(o-k,o-T),M=Math.min(a-k,a-T);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(l/2),zIndexPopup:u+50,optionSelectedColor:p,optionSelectedFontWeight:h,optionSelectedBg:m,optionActiveBg:g,optionPadding:`${(i-t*n)/2}px ${c}px`,optionFontSize:t,optionLineHeight:n,optionHeight:i,selectorBg:b,clearBg:b,singleItemHeightLG:a,multipleItemBg:E,multipleItemBorderColor:"transparent",multipleItemHeight:I,multipleItemHeightSM:$,multipleItemHeightLG:M,multipleSelectorBgDisabled:x,multipleItemColorDisabled:S,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(e.fontSize*1.25),hoverBorderColor:C,activeBorderColor:_,activeOutlineColor:O,selectAffixPadding:l}},IF=(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}}}},KO=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},IF(e,t))}),Oae=e=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},IF(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeOutlineColor:e.activeOutlineColor,color:e.colorText})),KO(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeOutlineColor:e.colorErrorOutline,color:e.colorError})),KO(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}`}})}),kF=(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}}}},VO=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},kF(e,t))}),Iae=e=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},kF(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor,color:e.colorText})),VO(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,color:e.colorError})),VO(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}`}})}),kae=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}}}}),$ae=e=>({[e.componentCls]:Object.assign(Object.assign(Object.assign({},Oae(e)),Iae(e)),kae(e))}),Nae=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"}}}},Aae=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","-webkit-appearance":"none"}}}},Rae=e=>{const{antCls:t,componentCls:n,inputPaddingHorizontalBase:r,iconCls:i}=e;return{[n]:Object.assign(Object.assign({},zn(e)),{position:"relative",display:"inline-flex",cursor:"pointer",[`&:not(${n}-customize-input) ${n}-selector`]:Object.assign(Object.assign({},Nae(e)),Aae(e)),[`${n}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},ll),{[`> ${t}-typography`]:{display:"inline"}}),[`${n}-selection-placeholder`]:Object.assign(Object.assign({},ll),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${n}-arrow`]:Object.assign(Object.assign({},xm()),{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","&:before":{display:"block"},"&:hover":{color:e.colorTextTertiary}},[`&:hover ${n}-clear`]:{opacity:1,background:e.colorBgBase,borderRadius:"50%"}}),[`${n}-status`]:{"&-error, &-warning, &-success, &-validating":{[`&${n}-has-feedback`]:{[`${n}-clear`]:{insetInlineEnd:e.calc(r).add(e.fontSize).add(e.paddingXS).equal()}}}}}},Mae=e=>{const{componentCls:t}=e;return[{[t]:{[`&${t}-in-form-item`]:{width:"100%"}}},Rae(e),_ae(e),wae(e),bae(e),{[`${t}-rtl`]:{direction:"rtl"}},P3(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},Pae=Fn("Select",(e,t)=>{let{rootPrefixCls:n}=t;const r=hn(e,{rootPrefixCls:n,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[Mae(r),$ae(r)]},Tae,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}});var Lae={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"},Dae=function(t,n){return d.createElement(bn,Ve({},t,{ref:n,icon:Lae}))},q3=d.forwardRef(Dae),Fae={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"},Bae=function(t,n){return d.createElement(bn,Ve({},t,{ref:n,icon:Fae}))},X3=d.forwardRef(Bae),jae={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"},Hae=function(t,n){return d.createElement(bn,Ve({},t,{ref:n,icon:jae}))},Y3=d.forwardRef(Hae);function zae(e){let{suffixIcon:t,clearIcon:n,menuItemSelectedIcon:r,removeIcon:i,loading:o,multiple:a,hasFeedback:l,prefixCls:c,showSuffixIcon:u,feedbackIcon:p,showArrow:h,componentName:m}=e;const g=n??d.createElement(Gu,null),b=C=>t===null&&!l&&!h?null:d.createElement(d.Fragment,null,u!==!1&&C,l&&p);let E=null;if(t!==void 0)E=b(t);else if(o)E=b(d.createElement(Ec,{spin:!0}));else{const C=`${c}-suffix`;E=_=>{let{open:O,showSearch:k}=_;return b(O&&k?d.createElement(Y3,{className:C}):d.createElement(X3,{className:C}))}}let x=null;r!==void 0?x=r:a?x=d.createElement(q3,null):x=null;let S=null;return i!==void 0?S=i:S=d.createElement(qu,null),{clearIcon:g,suffixIcon:E,itemIcon:x,removeIcon:S}}function Wae(e,t){return t!==void 0?t:e!==null}var Uae=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 $F="SECRET_COMBOBOX_MODE_DO_NOT_USE",Kae=(e,t)=>{var n;const{prefixCls:r,bordered:i,className:o,rootClassName:a,getPopupContainer:l,popupClassName:c,dropdownClassName:u,listHeight:p=256,placement:h,listItemHeight:m,size:g,disabled:b,notFoundContent:E,status:x,builtinPlacements:S,dropdownMatchSelectWidth:C,popupMatchSelectWidth:_,direction:O,style:k,allowClear:T,variant:I,dropdownStyle:$,transitionName:M,tagRender:R,maxCount:j,prefix:D}=e,L=Uae(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"]),{getPopupContainer:B,getPrefixCls:H,renderEmpty:W,direction:z,virtual:V,popupMatchSelectWidth:X,popupOverflow:A,select:P}=d.useContext(At),[,Y]=Fi(),U=m??(Y==null?void 0:Y.controlHeight),Q=H("select",r),ee=H(),se=O??z,{compactSize:ne,compactItemClassnames:oe}=Im(Q,se),[pe,be]=G3("select",I,i),ue=Gr(Q),[de,re,me]=Pae(Q,ue),ge=d.useMemo(()=>{const{mode:Ye}=e;if(Ye!=="combobox")return Ye===$F?"combobox":Ye},[e.mode]),Ae=ge==="multiple"||ge==="tags",De=Wae(e.suffixIcon,e.showArrow),ze=(n=_??C)!==null&&n!==void 0?n:X,{status:et,hasFeedback:Ie,isFormItemInput:Te,feedbackIcon:Ue}=d.useContext(uo),Le=Yb(et,x);let je;E!==void 0?je=E:ge==="combobox"?je=null:je=(W==null?void 0:W("Select"))||d.createElement(OF,{componentName:"Select"});const{suffixIcon:Ge,itemIcon:qe,removeIcon:Ce,clearIcon:ke}=zae(Object.assign(Object.assign({},L),{multiple:Ae,hasFeedback:Ie,feedbackIcon:Ue,showSuffixIcon:De,prefixCls:Q,componentName:"Select"})),We=T===!0?{clearIcon:ke}:T,Pe=ir(L,["suffixIcon","itemIcon"]),Be=le(c||u,{[`${Q}-dropdown-${se}`]:se==="rtl"},a,me,ue,re),He=go(Ye=>{var ht;return(ht=g??ne)!==null&&ht!==void 0?ht:Ye}),Qe=d.useContext(Ia),ie=b??Qe,xe=le({[`${Q}-lg`]:He==="large",[`${Q}-sm`]:He==="small",[`${Q}-rtl`]:se==="rtl",[`${Q}-${pe}`]:be,[`${Q}-in-form-item`]:Te},fy(Q,Le,Ie),oe,P==null?void 0:P.className,o,a,me,ue,re),Ne=d.useMemo(()=>h!==void 0?h:se==="rtl"?"bottomRight":"bottomLeft",[h,se]),[$e]=_m("SelectLike",$==null?void 0:$.zIndex);return de(d.createElement(V3,Object.assign({ref:t,virtual:V,showSearch:P==null?void 0:P.showSearch},Pe,{style:Object.assign(Object.assign({},P==null?void 0:P.style),k),dropdownMatchSelectWidth:ze,transitionName:xc(ee,"slide-up",M),builtinPlacements:yae(S,A),listHeight:p,listItemHeight:U,mode:ge,prefixCls:Q,placement:Ne,direction:se,prefix:D,suffixIcon:Ge,menuItemSelectedIcon:qe,removeIcon:Ce,allowClear:We,notFoundContent:je,className:xe,getPopupContainer:l||B,dropdownClassName:Be,disabled:ie,dropdownStyle:Object.assign(Object.assign({},$),{zIndex:$e}),maxCount:Ae?j:void 0,tagRender:Ae?R:void 0})))},Ro=d.forwardRef(Kae),Vae=fF(Ro,"dropdownAlign");Ro.SECRET_COMBOBOX_MODE_DO_NOT_USE=$F;Ro.Option=K3;Ro.OptGroup=U3;Ro._InternalPanelDoNotUseOrYouWillBeFired=Vae;const Tc=["xxl","xl","lg","md","sm","xs"],Gae=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)`}),qae=e=>{const t=e,n=[].concat(Tc).reverse();return n.forEach((r,i)=>{const o=r.toUpperCase(),a=`screen${o}Min`,l=`screen${o}`;if(!(t[a]<=t[l]))throw new Error(`${a}<=${l} fails : !(${t[a]}<=${t[l]})`);if(i<n.length-1){const c=`screen${o}Max`;if(!(t[l]<=t[c]))throw new Error(`${l}<=${c} fails : !(${t[l]}<=${t[c]})`);const p=`screen${n[i+1].toUpperCase()}Min`;if(!(t[c]<=t[p]))throw new Error(`${c}<=${p} fails : !(${t[c]}<=${t[p]})`)}}),e};function NF(){const[,e]=Fi(),t=Gae(qae(e));return fe.useMemo(()=>{const n=new Map;let r=-1,i={};return{matchHandlers:{},dispatch(o){return i=o,n.forEach(a=>a(i)),n.size>=1},subscribe(o){return n.size||this.register(),r+=1,n.set(r,o),o(i),r},unsubscribe(o){n.delete(o),n.size||this.unregister()},unregister(){Object.keys(t).forEach(o=>{const a=t[o],l=this.matchHandlers[a];l==null||l.mql.removeListener(l==null?void 0:l.listener)}),n.clear()},register(){Object.keys(t).forEach(o=>{const a=t[o],l=u=>{let{matches:p}=u;this.dispatch(Object.assign(Object.assign({},i),{[o]:p}))},c=window.matchMedia(a);c.addListener(l),this.matchHandlers[a]={mql:c,listener:l},l(c)})},responsiveMap:t}},[e])}const AF=(e,t)=>{if(t&&typeof t=="object")for(let n=0;n<Tc.length;n++){const r=Tc[n];if(e[r]&&t[r]!==void 0)return t[r]}};function Q3(){const[,e]=d.useReducer(t=>t+1,0);return e}function Qb(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;const t=d.useRef({}),n=Q3(),r=NF();return xn(()=>{const i=r.subscribe(o=>{t.current=o,e&&n()});return()=>r.unsubscribe(i)},[]),t.current}const hE=d.createContext({}),Xae=e=>{const{antCls:t,componentCls:n,iconCls:r,avatarBg:i,avatarColor:o,containerSize:a,containerSizeLG:l,containerSizeSM:c,textFontSize:u,textFontSizeLG:p,textFontSizeSM:h,borderRadius:m,borderRadiusLG:g,borderRadiusSM:b,lineWidth:E,lineType:x}=e,S=(C,_,O)=>({width:C,height:C,borderRadius:"50%",[`&${n}-square`]:{borderRadius:O},[`&${n}-icon`]:{fontSize:_,[`> ${r}`]:{margin:0}}});return{[n]:Object.assign(Object.assign(Object.assign(Object.assign({},zn(e)),{position:"relative",display:"inline-flex",justifyContent:"center",alignItems:"center",overflow:"hidden",color:o,whiteSpace:"nowrap",textAlign:"center",verticalAlign:"middle",background:i,border:`${ae(E)} ${x} transparent`,"&-image":{background:"transparent"},[`${t}-image-img`]:{display:"block"}}),S(a,u,m)),{"&-lg":Object.assign({},S(l,p,g)),"&-sm":Object.assign({},S(c,h,b)),"> img":{display:"block",width:"100%",height:"100%",objectFit:"cover"}})}},Yae=e=>{const{componentCls:t,groupBorderColor:n,groupOverlapping:r,groupSpace:i}=e;return{[`${t}-group`]:{display:"inline-flex",[t]:{borderColor:n},"> *:not(:first-child)":{marginInlineStart:r}},[`${t}-group-popover`]:{[`${t} + ${t}`]:{marginInlineStart:i}}}},Qae=e=>{const{controlHeight:t,controlHeightLG:n,controlHeightSM:r,fontSize:i,fontSizeLG:o,fontSizeXL:a,fontSizeHeading3:l,marginXS:c,marginXXS:u,colorBorderBg:p}=e;return{containerSize:t,containerSizeLG:n,containerSizeSM:r,textFontSize:Math.round((o+a)/2),textFontSizeLG:l,textFontSizeSM:i,groupSpace:u,groupOverlapping:-c,groupBorderColor:p}},RF=Fn("Avatar",e=>{const{colorTextLightSolid:t,colorTextPlaceholder:n}=e,r=hn(e,{avatarBg:n,avatarColor:t});return[Xae(r),Yae(r)]},Qae);var Zae=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 Jae=(e,t)=>{const[n,r]=d.useState(1),[i,o]=d.useState(!1),[a,l]=d.useState(!0),c=d.useRef(null),u=d.useRef(null),p=Zi(t,c),{getPrefixCls:h,avatar:m}=d.useContext(At),g=d.useContext(hE),b=()=>{if(!u.current||!c.current)return;const oe=u.current.offsetWidth,pe=c.current.offsetWidth;if(oe!==0&&pe!==0){const{gap:be=4}=e;be*2<pe&&r(pe-be*2<oe?(pe-be*2)/oe:1)}};d.useEffect(()=>{o(!0)},[]),d.useEffect(()=>{l(!0),r(1)},[e.src]),d.useEffect(b,[e.gap]);const E=()=>{const{onError:oe}=e;(oe==null?void 0:oe())!==!1&&l(!1)},{prefixCls:x,shape:S,size:C,src:_,srcSet:O,icon:k,className:T,rootClassName:I,alt:$,draggable:M,children:R,crossOrigin:j}=e,D=Zae(e,["prefixCls","shape","size","src","srcSet","icon","className","rootClassName","alt","draggable","children","crossOrigin"]),L=go(oe=>{var pe,be;return(be=(pe=C??(g==null?void 0:g.size))!==null&&pe!==void 0?pe:oe)!==null&&be!==void 0?be:"default"}),B=Object.keys(typeof L=="object"?L||{}:{}).some(oe=>["xs","sm","md","lg","xl","xxl"].includes(oe)),H=Qb(B),W=d.useMemo(()=>{if(typeof L!="object")return{};const oe=Tc.find(be=>H[be]),pe=L[oe];return pe?{width:pe,height:pe,fontSize:pe&&(k||R)?pe/2:18}:{}},[H,L]),z=h("avatar",x),V=Gr(z),[X,A,P]=RF(z,V),Y=le({[`${z}-lg`]:L==="large",[`${z}-sm`]:L==="small"}),U=d.isValidElement(_),Q=S||(g==null?void 0:g.shape)||"circle",ee=le(z,Y,m==null?void 0:m.className,`${z}-${Q}`,{[`${z}-image`]:U||_&&a,[`${z}-icon`]:!!k},P,V,T,I,A),se=typeof L=="number"?{width:L,height:L,fontSize:k?L/2:18}:{};let ne;if(typeof _=="string"&&a)ne=d.createElement("img",{src:_,draggable:M,srcSet:O,onError:E,alt:$,crossOrigin:j});else if(U)ne=_;else if(k)ne=k;else if(i||n!==1){const oe=`scale(${n})`,pe={msTransform:oe,WebkitTransform:oe,transform:oe};ne=d.createElement(qi,{onResize:b},d.createElement("span",{className:`${z}-string`,ref:u,style:Object.assign({},pe)},R))}else ne=d.createElement("span",{className:`${z}-string`,style:{opacity:0},ref:u},R);return delete D.onError,delete D.gap,X(d.createElement("span",Object.assign({},D,{style:Object.assign(Object.assign(Object.assign(Object.assign({},se),W),m==null?void 0:m.style),D.style),className:ee,ref:p}),ne))},MF=d.forwardRef(Jae),py=e=>e?typeof e=="function"?e():e:null;function Z3(e){var t=e.children,n=e.prefixCls,r=e.id,i=e.overlayInnerStyle,o=e.bodyClassName,a=e.className,l=e.style;return d.createElement("div",{className:le("".concat(n,"-content"),a),style:l},d.createElement("div",{className:le("".concat(n,"-inner"),o),id:r,role:"tooltip",style:i},typeof t=="function"?t():t))}var $d={shiftX:64,adjustY:1},Nd={adjustX:1,shiftY:!0},da=[0,0],ele={left:{points:["cr","cl"],overflow:Nd,offset:[-4,0],targetOffset:da},right:{points:["cl","cr"],overflow:Nd,offset:[4,0],targetOffset:da},top:{points:["bc","tc"],overflow:$d,offset:[0,-4],targetOffset:da},bottom:{points:["tc","bc"],overflow:$d,offset:[0,4],targetOffset:da},topLeft:{points:["bl","tl"],overflow:$d,offset:[0,-4],targetOffset:da},leftTop:{points:["tr","tl"],overflow:Nd,offset:[-4,0],targetOffset:da},topRight:{points:["br","tr"],overflow:$d,offset:[0,-4],targetOffset:da},rightTop:{points:["tl","tr"],overflow:Nd,offset:[4,0],targetOffset:da},bottomRight:{points:["tr","br"],overflow:$d,offset:[0,4],targetOffset:da},rightBottom:{points:["bl","br"],overflow:Nd,offset:[4,0],targetOffset:da},bottomLeft:{points:["tl","bl"],overflow:$d,offset:[0,4],targetOffset:da},leftBottom:{points:["br","bl"],overflow:Nd,offset:[-4,0],targetOffset:da}},tle=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow","classNames","styles"],nle=function(t,n){var r=t.overlayClassName,i=t.trigger,o=i===void 0?["hover"]:i,a=t.mouseEnterDelay,l=a===void 0?0:a,c=t.mouseLeaveDelay,u=c===void 0?.1:c,p=t.overlayStyle,h=t.prefixCls,m=h===void 0?"rc-tooltip":h,g=t.children,b=t.onVisibleChange,E=t.afterVisibleChange,x=t.transitionName,S=t.animation,C=t.motion,_=t.placement,O=_===void 0?"right":_,k=t.align,T=k===void 0?{}:k,I=t.destroyTooltipOnHide,$=I===void 0?!1:I,M=t.defaultVisible,R=t.getTooltipContainer,j=t.overlayInnerStyle;t.arrowContent;var D=t.overlay,L=t.id,B=t.showArrow,H=B===void 0?!0:B,W=t.classNames,z=t.styles,V=Yt(t,tle),X=d.useRef(null);d.useImperativeHandle(n,function(){return X.current});var A=te({},V);"visible"in t&&(A.popupVisible=t.visible);var P=function(){return d.createElement(Z3,{key:"content",prefixCls:m,id:L,bodyClassName:W==null?void 0:W.body,overlayInnerStyle:te(te({},j),z==null?void 0:z.body)},D)};return d.createElement(qb,Ve({popupClassName:le(r,W==null?void 0:W.root),prefixCls:m,popup:P,action:o,builtinPlacements:ele,popupPlacement:O,ref:X,popupAlign:T,getPopupContainer:R,onPopupVisibleChange:b,afterPopupVisibleChange:E,popupTransitionName:x,popupAnimation:S,popupMotion:C,defaultPopupVisible:M,autoDestroy:$,mouseLeaveDelay:u,popupStyle:te(te({},p),z==null?void 0:z.root),mouseEnterDelay:l,arrow:H},A),g)};const rle=d.forwardRef(nle);function J3(e){const{sizePopupArrow:t,borderRadiusXS:n,borderRadiusOuter:r}=e,i=t/2,o=0,a=i,l=r*1/Math.sqrt(2),c=i-r*(1-1/Math.sqrt(2)),u=i-n*(1/Math.sqrt(2)),p=r*(Math.sqrt(2)-1)+n*(1/Math.sqrt(2)),h=2*i-u,m=p,g=2*i-l,b=c,E=2*i-o,x=a,S=i*Math.sqrt(2)+r*(Math.sqrt(2)-2),C=r*(Math.sqrt(2)-1),_=`polygon(${C}px 100%, 50% ${C}px, ${2*i-C}px 100%, ${C}px 100%)`,O=`path('M ${o} ${a} A ${r} ${r} 0 0 0 ${l} ${c} L ${u} ${p} A ${n} ${n} 0 0 1 ${h} ${m} L ${g} ${b} A ${r} ${r} 0 0 0 ${E} ${x} Z')`;return{arrowShadowWidth:S,arrowPath:O,arrowPolygon:_}}const ile=(e,t,n)=>{const{sizePopupArrow:r,arrowPolygon:i,arrowPath:o,arrowShadowWidth:a,borderRadiusXS:l,calc:c}=e;return{pointerEvents:"none",width:r,height:r,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:r,height:c(r).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[i,o]},content:'""'},"&::after":{content:'""',position:"absolute",width:a,height:a,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${ae(l)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}},PF=8;function Zb(e){const{contentRadius:t,limitVerticalRadius:n}=e,r=t>12?t+2:12;return{arrowOffsetHorizontal:r,arrowOffsetVertical:n?PF:r}}function eg(e,t){return e?t:{}}function e8(e,t,n){const{componentCls:r,boxShadowPopoverArrow:i,arrowOffsetVertical:o,arrowOffsetHorizontal:a}=e,{arrowDistance:l=0,arrowPlacement:c={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"},ile(e,t,i)),{"&:before":{background:t}})]},eg(!!c.top,{[[`&-placement-top > ${r}-arrow`,`&-placement-topLeft > ${r}-arrow`,`&-placement-topRight > ${r}-arrow`].join(",")]:{bottom:l,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":a,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:a}}},"&-placement-topRight":{"--arrow-offset-horizontal":`calc(100% - ${ae(a)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:a}}}})),eg(!!c.bottom,{[[`&-placement-bottom > ${r}-arrow`,`&-placement-bottomLeft > ${r}-arrow`,`&-placement-bottomRight > ${r}-arrow`].join(",")]:{top:l,transform:"translateY(-100%)"},[`&-placement-bottom > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{"--arrow-offset-horizontal":a,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:a}}},"&-placement-bottomRight":{"--arrow-offset-horizontal":`calc(100% - ${ae(a)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:a}}}})),eg(!!c.left,{[[`&-placement-left > ${r}-arrow`,`&-placement-leftTop > ${r}-arrow`,`&-placement-leftBottom > ${r}-arrow`].join(",")]:{right:{_skip_check_:!0,value:l},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:o},[`&-placement-leftBottom > ${r}-arrow`]:{bottom:o}})),eg(!!c.right,{[[`&-placement-right > ${r}-arrow`,`&-placement-rightTop > ${r}-arrow`,`&-placement-rightBottom > ${r}-arrow`].join(",")]:{left:{_skip_check_:!0,value:l},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:o},[`&-placement-rightBottom > ${r}-arrow`]:{bottom:o}}))}}function ole(e,t,n,r){if(r===!1)return{adjustX:!1,adjustY:!1};const i=r&&typeof r=="object"?r:{},o={};switch(e){case"top":case"bottom":o.shiftX=t.arrowOffsetHorizontal*2+n,o.shiftY=!0,o.adjustY=!0;break;case"left":case"right":o.shiftY=t.arrowOffsetVertical*2+n,o.shiftX=!0,o.adjustX=!0;break}const a=Object.assign(Object.assign({},o),i);return a.shiftX||(a.adjustX=!0),a.shiftY||(a.adjustY=!0),a}const GO={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"]}},ale={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"]}},lle=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function LF(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:i,borderRadius:o,visibleFirst:a}=e,l=t/2,c={};return Object.keys(GO).forEach(u=>{const p=r&&ale[u]||GO[u],h=Object.assign(Object.assign({},p),{offset:[0,0],dynamicInset:!0});switch(c[u]=h,lle.has(u)&&(h.autoArrow=!1),u){case"top":case"topLeft":case"topRight":h.offset[1]=-l-i;break;case"bottom":case"bottomLeft":case"bottomRight":h.offset[1]=l+i;break;case"left":case"leftTop":case"leftBottom":h.offset[0]=-l-i;break;case"right":case"rightTop":case"rightBottom":h.offset[0]=l+i;break}const m=Zb({contentRadius:o,limitVerticalRadius:!0});if(r)switch(u){case"topLeft":case"bottomLeft":h.offset[0]=-m.arrowOffsetHorizontal-l;break;case"topRight":case"bottomRight":h.offset[0]=m.arrowOffsetHorizontal+l;break;case"leftTop":case"rightTop":h.offset[1]=-m.arrowOffsetHorizontal*2+l;break;case"leftBottom":case"rightBottom":h.offset[1]=m.arrowOffsetHorizontal*2-l;break}h.overflow=ole(u,m,t,n),a&&(h.htmlRegion="visibleFirst")}),c}const sle=e=>{const{calc:t,componentCls:n,tooltipMaxWidth:r,tooltipColor:i,tooltipBg:o,tooltipBorderRadius:a,zIndexPopup:l,controlHeight:c,boxShadowSecondary:u,paddingSM:p,paddingXS:h,arrowOffsetHorizontal:m,sizePopupArrow:g}=e,b=t(a).add(g).add(m).equal(),E=t(a).mul(2).add(g).equal();return[{[n]:Object.assign(Object.assign(Object.assign(Object.assign({},zn(e)),{position:"absolute",zIndex:l,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":o,[`${n}-inner`]:{minWidth:E,minHeight:c,padding:`${ae(e.calc(p).div(2).equal())} ${ae(h)}`,color:i,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:o,borderRadius:a,boxShadow:u,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(a,PF)}},[`${n}-content`]:{position:"relative"}}),VL(e,(x,S)=>{let{darkColor:C}=S;return{[`&${n}-${x}`]:{[`${n}-inner`]:{backgroundColor:C},[`${n}-arrow`]:{"--antd-arrow-background-color":C}}}})),{"&-rtl":{direction:"rtl"}})},e8(e,"var(--antd-arrow-background-color)"),{[`${n}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},cle=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},Zb({contentRadius:e.borderRadius,limitVerticalRadius:!0})),J3(hn(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),DF=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return Fn("Tooltip",r=>{const{borderRadius:i,colorTextLightSolid:o,colorBgSpotlight:a}=r,l=hn(r,{tooltipMaxWidth:250,tooltipColor:o,tooltipBorderRadius:i,tooltipBg:a});return[sle(l),km(r,"zoom-big-fast")]},cle,{resetStyle:!1,injectStyle:t})(e)},ule=Bu.map(e=>`${e}-inverse`),dle=["success","processing","error","default","warning"];function FF(e){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[].concat(Xe(ule),Xe(Bu)).includes(e):Bu.includes(e)}function fle(e){return dle.includes(e)}function BF(e,t){const n=FF(t),r=le({[`${e}-${t}`]:t&&n}),i={},o={};return t&&!n&&(i.background=t,o["--antd-arrow-background-color"]=t),{className:r,overlayStyle:i,arrowStyle:o}}const ple=e=>{const{prefixCls:t,className:n,placement:r="top",title:i,color:o,overlayInnerStyle:a}=e,{getPrefixCls:l}=d.useContext(At),c=l("tooltip",t),[u,p,h]=DF(c),m=BF(c,o),g=m.arrowStyle,b=Object.assign(Object.assign({},a),m.overlayStyle),E=le(p,h,c,`${c}-pure`,`${c}-placement-${r}`,n,m.className);return u(d.createElement("div",{className:E,style:g},d.createElement("div",{className:`${c}-arrow`}),d.createElement(Z3,Object.assign({},e,{className:p,prefixCls:c,overlayInnerStyle:b}),i)))};var hle=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 mle=d.forwardRef((e,t)=>{var n,r,i,o,a,l;const{prefixCls:c,openClassName:u,getTooltipContainer:p,color:h,overlayInnerStyle:m,children:g,afterOpenChange:b,afterVisibleChange:E,destroyTooltipOnHide:x,arrow:S=!0,title:C,overlay:_,builtinPlacements:O,arrowPointAtCenter:k=!1,autoAdjustOverflow:T=!0}=e,I=!!S,[,$]=Fi(),{getPopupContainer:M,getPrefixCls:R,direction:j,tooltip:D}=d.useContext(At),L=Lc(),B=d.useRef(null),H=()=>{var Pe;(Pe=B.current)===null||Pe===void 0||Pe.forceAlign()};d.useImperativeHandle(t,()=>{var Pe;return{forceAlign:H,forcePopupAlign:()=>{L.deprecated(!1,"forcePopupAlign","forceAlign"),H()},nativeElement:(Pe=B.current)===null||Pe===void 0?void 0:Pe.nativeElement}});const[W,z]=_r(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),V=!C&&!_&&C!==0,X=Pe=>{var Be,He;z(V?!1:Pe),V||((Be=e.onOpenChange)===null||Be===void 0||Be.call(e,Pe),(He=e.onVisibleChange)===null||He===void 0||He.call(e,Pe))},A=d.useMemo(()=>{var Pe,Be;let He=k;return typeof S=="object"&&(He=(Be=(Pe=S.pointAtCenter)!==null&&Pe!==void 0?Pe:S.arrowPointAtCenter)!==null&&Be!==void 0?Be:k),O||LF({arrowPointAtCenter:He,autoAdjustOverflow:T,arrowWidth:I?$.sizePopupArrow:0,borderRadius:$.borderRadius,offset:$.marginXXS,visibleFirst:!0})},[k,S,O,$]),P=d.useMemo(()=>C===0?C:_||C||"",[_,C]),Y=d.createElement(Jh,{space:!0},typeof P=="function"?P():P),{getPopupContainer:U,placement:Q="top",mouseEnterDelay:ee=.1,mouseLeaveDelay:se=.1,overlayStyle:ne,rootClassName:oe,overlayClassName:pe,styles:be,classNames:ue}=e,de=hle(e,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName","overlayClassName","styles","classNames"]),re=R("tooltip",c),me=R(),ge=e["data-popover-inject"];let Ae=W;!("open"in e)&&!("visible"in e)&&V&&(Ae=!1);const De=d.isValidElement(g)&&!fD(g)?g:d.createElement("span",null,g),ze=De.props,et=!ze.className||typeof ze.className=="string"?le(ze.className,u||`${re}-open`):ze.className,[Ie,Te,Ue]=DF(re,!ge),Le=BF(re,h),je=Le.arrowStyle,Ge=le(pe,{[`${re}-rtl`]:j==="rtl"},Le.className,oe,Te,Ue,D==null?void 0:D.className,(i=D==null?void 0:D.classNames)===null||i===void 0?void 0:i.root,ue==null?void 0:ue.root),qe=le((o=D==null?void 0:D.classNames)===null||o===void 0?void 0:o.body,ue==null?void 0:ue.body),[Ce,ke]=_m("Tooltip",de.zIndex),We=d.createElement(rle,Object.assign({},de,{zIndex:Ce,showArrow:I,placement:Q,mouseEnterDelay:ee,mouseLeaveDelay:se,prefixCls:re,classNames:{root:Ge,body:qe},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},je),(a=D==null?void 0:D.styles)===null||a===void 0?void 0:a.root),D==null?void 0:D.style),ne),be==null?void 0:be.root),body:Object.assign(Object.assign(Object.assign(Object.assign({},(l=D==null?void 0:D.styles)===null||l===void 0?void 0:l.body),m),be==null?void 0:be.body),Le.overlayStyle)},getTooltipContainer:U||p||M,ref:B,builtinPlacements:A,overlay:Y,visible:Ae,onVisibleChange:X,afterVisibleChange:b??E,arrowContent:d.createElement("span",{className:`${re}-arrow-content`}),motion:{motionName:xc(me,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!x}),Ae?vi(De,{className:et}):De);return Ie(d.createElement(Rb.Provider,{value:ke},We))}),cl=mle;cl._InternalPanelDoNotUseOrYouWillBeFired=ple;const gle=e=>{const{componentCls:t,popoverColor:n,titleMinWidth:r,fontWeightStrong:i,innerPadding:o,boxShadowSecondary:a,colorTextHeading:l,borderRadiusLG:c,zIndexPopup:u,titleMarginBottom:p,colorBgElevated:h,popoverBg:m,titleBorderBottom:g,innerContentPadding:b,titlePadding:E}=e;return[{[t]:Object.assign(Object.assign({},zn(e)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:u,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":h,width:"max-content",maxWidth:"100vw","&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-inner`]:{backgroundColor:m,backgroundClip:"padding-box",borderRadius:c,boxShadow:a,padding:o},[`${t}-title`]:{minWidth:r,marginBottom:p,color:l,fontWeight:i,borderBottom:g,padding:E},[`${t}-inner-content`]:{color:n,padding:b}})},e8(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block",[`${t}-content`]:{display:"inline-block"}}}]},vle=e=>{const{componentCls:t}=e;return{[t]:Bu.map(n=>{const r=e[`${n}6`];return{[`&${t}-${n}`]:{"--antd-arrow-background-color":r,[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{background:"transparent"}}}})}},yle=e=>{const{lineWidth:t,controlHeight:n,fontHeight:r,padding:i,wireframe:o,zIndexPopupBase:a,borderRadiusLG:l,marginXS:c,lineType:u,colorSplit:p,paddingSM:h}=e,m=n-r,g=m/2,b=m/2-t,E=i;return Object.assign(Object.assign(Object.assign({titleMinWidth:177,zIndexPopup:a+30},J3(e)),Zb({contentRadius:l,limitVerticalRadius:!0})),{innerPadding:o?0:12,titleMarginBottom:o?0:c,titlePadding:o?`${g}px ${E}px ${b}px`:0,titleBorderBottom:o?`${t}px ${u} ${p}`:"none",innerContentPadding:o?`${h}px ${E}px`:0})},jF=Fn("Popover",e=>{const{colorBgElevated:t,colorText:n}=e,r=hn(e,{popoverBg:t,popoverColor:n});return[gle(r),vle(r),km(r,"zoom-big")]},yle,{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]});var ble=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 HF=e=>{let{title:t,content:n,prefixCls:r}=e;return!t&&!n?null:d.createElement(d.Fragment,null,t&&d.createElement("div",{className:`${r}-title`},t),n&&d.createElement("div",{className:`${r}-inner-content`},n))},Cle=e=>{const{hashId:t,prefixCls:n,className:r,style:i,placement:o="top",title:a,content:l,children:c}=e,u=py(a),p=py(l),h=le(t,n,`${n}-pure`,`${n}-placement-${o}`,r);return d.createElement("div",{className:h,style:i},d.createElement("div",{className:`${n}-arrow`}),d.createElement(Z3,Object.assign({},e,{className:t,prefixCls:n}),c||d.createElement(HF,{prefixCls:n,title:u,content:p})))},Sle=e=>{const{prefixCls:t,className:n}=e,r=ble(e,["prefixCls","className"]),{getPrefixCls:i}=d.useContext(At),o=i("popover",t),[a,l,c]=jF(o);return a(d.createElement(Cle,Object.assign({},r,{prefixCls:o,hashId:l,className:le(n,c)})))};var Ele=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 xle=d.forwardRef((e,t)=>{var n,r,i,o,a,l;const{prefixCls:c,title:u,content:p,overlayClassName:h,placement:m="top",trigger:g="hover",children:b,mouseEnterDelay:E=.1,mouseLeaveDelay:x=.1,onOpenChange:S,overlayStyle:C={},styles:_,classNames:O}=e,k=Ele(e,["prefixCls","title","content","overlayClassName","placement","trigger","children","mouseEnterDelay","mouseLeaveDelay","onOpenChange","overlayStyle","styles","classNames"]),{popover:T,getPrefixCls:I}=d.useContext(At),$=I("popover",c),[M,R,j]=jF($),D=I(),L=le(h,R,j,(n=T==null?void 0:T.classNames)===null||n===void 0?void 0:n.root,O==null?void 0:O.root),B=le((r=T==null?void 0:T.classNames)===null||r===void 0?void 0:r.body,O==null?void 0:O.body),[H,W]=_r(!1,{value:(i=e.open)!==null&&i!==void 0?i:e.visible,defaultValue:(o=e.defaultOpen)!==null&&o!==void 0?o:e.defaultVisible}),z=(Y,U)=>{W(Y,!0),S==null||S(Y,U)},V=Y=>{Y.keyCode===lt.ESC&&z(!1,Y)},X=Y=>{z(Y)},A=py(u),P=py(p);return M(d.createElement(cl,Object.assign({placement:m,trigger:g,mouseEnterDelay:E,mouseLeaveDelay:x},k,{prefixCls:$,classNames:{root:L,body:B},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign({},(a=T==null?void 0:T.styles)===null||a===void 0?void 0:a.root),T==null?void 0:T.style),C),_==null?void 0:_.root),body:Object.assign(Object.assign({},(l=T==null?void 0:T.styles)===null||l===void 0?void 0:l.body),_==null?void 0:_.body)},ref:t,open:H,onOpenChange:X,overlay:A||P?d.createElement(HF,{prefixCls:$,title:A,content:P}):null,transitionName:xc(D,"zoom-big",k.transitionName),"data-popover-inject":!0}),vi(b,{onKeyDown:Y=>{var U,Q;d.isValidElement(b)&&((Q=b==null?void 0:(U=b.props).onKeyDown)===null||Q===void 0||Q.call(U,Y)),V(Y)}})))}),zF=xle;zF._InternalPanelDoNotUseOrYouWillBeFired=Sle;const qO=e=>{const{size:t,shape:n}=d.useContext(hE),r=d.useMemo(()=>({size:e.size||t,shape:e.shape||n}),[e.size,e.shape,t,n]);return d.createElement(hE.Provider,{value:r},e.children)},wle=e=>{var t,n,r,i;const{getPrefixCls:o,direction:a}=d.useContext(At),{prefixCls:l,className:c,rootClassName:u,style:p,maxCount:h,maxStyle:m,size:g,shape:b,maxPopoverPlacement:E,maxPopoverTrigger:x,children:S,max:C}=e,_=o("avatar",l),O=`${_}-group`,k=Gr(_),[T,I,$]=RF(_,k),M=le(O,{[`${O}-rtl`]:a==="rtl"},$,k,c,u,I),R=ii(S).map((L,B)=>vi(L,{key:`avatar-key-${B}`})),j=(C==null?void 0:C.count)||h,D=R.length;if(j&&j<D){const L=R.slice(0,j),B=R.slice(j,D),H=(C==null?void 0:C.style)||m,W=((t=C==null?void 0:C.popover)===null||t===void 0?void 0:t.trigger)||x||"hover",z=((n=C==null?void 0:C.popover)===null||n===void 0?void 0:n.placement)||E||"top",V=Object.assign(Object.assign({content:B},C==null?void 0:C.popover),{classNames:{root:le(`${O}-popover`,(i=(r=C==null?void 0:C.popover)===null||r===void 0?void 0:r.classNames)===null||i===void 0?void 0:i.root)},placement:z,trigger:W});return L.push(d.createElement(zF,Object.assign({key:"avatar-popover-key",destroyTooltipOnHide:!0},V),d.createElement(MF,{style:H},`+${D-j}`))),T(d.createElement(qO,{shape:b,size:g},d.createElement("div",{className:M,style:p},L)))}return T(d.createElement(qO,{shape:b,size:g},d.createElement("div",{className:M,style:p},R)))},WF=MF;WF.Group=wle;var _le=lt.ESC,Tle=lt.TAB;function Ole(e){var t=e.visible,n=e.triggerRef,r=e.onVisibleChange,i=e.autoFocus,o=e.overlayRef,a=d.useRef(!1),l=function(){if(t){var h,m;(h=n.current)===null||h===void 0||(m=h.focus)===null||m===void 0||m.call(h),r==null||r(!1)}},c=function(){var h;return(h=o.current)!==null&&h!==void 0&&h.focus?(o.current.focus(),a.current=!0,!0):!1},u=function(h){switch(h.keyCode){case _le:l();break;case Tle:{var m=!1;a.current||(m=c()),m?h.preventDefault():l();break}}};d.useEffect(function(){return t?(window.addEventListener("keydown",u),i&&kn(c,3),function(){window.removeEventListener("keydown",u),a.current=!1}):function(){a.current=!1}},[t])}var Ile=d.forwardRef(function(e,t){var n=e.overlay,r=e.arrow,i=e.prefixCls,o=d.useMemo(function(){var l;return typeof n=="function"?l=n():l=n,l},[n]),a=Zi(t,Pc(o));return fe.createElement(fe.Fragment,null,r&&fe.createElement("div",{className:"".concat(i,"-arrow")}),fe.cloneElement(o,{ref:al(o)?a:void 0}))}),Ad={adjustX:1,adjustY:1},Rd=[0,0],kle={topLeft:{points:["bl","tl"],overflow:Ad,offset:[0,-4],targetOffset:Rd},top:{points:["bc","tc"],overflow:Ad,offset:[0,-4],targetOffset:Rd},topRight:{points:["br","tr"],overflow:Ad,offset:[0,-4],targetOffset:Rd},bottomLeft:{points:["tl","bl"],overflow:Ad,offset:[0,4],targetOffset:Rd},bottom:{points:["tc","bc"],overflow:Ad,offset:[0,4],targetOffset:Rd},bottomRight:{points:["tr","br"],overflow:Ad,offset:[0,4],targetOffset:Rd}},$le=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function Nle(e,t){var n,r=e.arrow,i=r===void 0?!1:r,o=e.prefixCls,a=o===void 0?"rc-dropdown":o,l=e.transitionName,c=e.animation,u=e.align,p=e.placement,h=p===void 0?"bottomLeft":p,m=e.placements,g=m===void 0?kle:m,b=e.getPopupContainer,E=e.showAction,x=e.hideAction,S=e.overlayClassName,C=e.overlayStyle,_=e.visible,O=e.trigger,k=O===void 0?["hover"]:O,T=e.autoFocus,I=e.overlay,$=e.children,M=e.onVisibleChange,R=Yt(e,$le),j=fe.useState(),D=_e(j,2),L=D[0],B=D[1],H="visible"in e?_:L,W=fe.useRef(null),z=fe.useRef(null),V=fe.useRef(null);fe.useImperativeHandle(t,function(){return W.current});var X=function(oe){B(oe),M==null||M(oe)};Ole({visible:H,triggerRef:V,onVisibleChange:X,autoFocus:T,overlayRef:z});var A=function(oe){var pe=e.onOverlayClick;B(!1),pe&&pe(oe)},P=function(){return fe.createElement(Ile,{ref:z,overlay:I,prefixCls:a,arrow:i})},Y=function(){return typeof I=="function"?P:P()},U=function(){var oe=e.minOverlayWidthMatchTrigger,pe=e.alignPoint;return"minOverlayWidthMatchTrigger"in e?oe:!pe},Q=function(){var oe=e.openClassName;return oe!==void 0?oe:"".concat(a,"-open")},ee=fe.cloneElement($,{className:le((n=$.props)===null||n===void 0?void 0:n.className,H&&Q()),ref:al($)?Zi(V,Pc($)):void 0}),se=x;return!se&&k.indexOf("contextMenu")!==-1&&(se=["click"]),fe.createElement(qb,Ve({builtinPlacements:g},R,{prefixCls:a,ref:W,popupClassName:le(S,J({},"".concat(a,"-show-arrow"),i)),popupStyle:C,action:k,showAction:E,hideAction:se,popupPlacement:h,popupAlign:u,popupTransitionName:l,popupAnimation:c,popupVisible:H,stretch:U()?"minWidth":"",popup:Y(),onPopupVisibleChange:X,onPopupClick:A,getPopupContainer:b}),ee)}const UF=fe.forwardRef(Nle),Ale=e=>typeof e!="object"&&typeof e!="function"||e===null;var KF=d.createContext(null);function VF(e,t){return e===void 0?null:"".concat(e,"-").concat(t)}function GF(e){var t=d.useContext(KF);return VF(t,e)}var Rle=["children","locked"],ul=d.createContext(null);function Mle(e,t){var n=te({},e);return Object.keys(t).forEach(function(r){var i=t[r];i!==void 0&&(n[r]=i)}),n}function tm(e){var t=e.children,n=e.locked,r=Yt(e,Rle),i=d.useContext(ul),o=Vu(function(){return Mle(i,r)},[i,r],function(a,l){return!n&&(a[0]!==l[0]||!Ll(a[1],l[1],!0))});return d.createElement(ul.Provider,{value:o},t)}var Ple=[],qF=d.createContext(null);function Jb(){return d.useContext(qF)}var XF=d.createContext(Ple);function f1(e){var t=d.useContext(XF);return d.useMemo(function(){return e!==void 0?[].concat(Xe(t),[e]):t},[t,e])}var YF=d.createContext(null),t8=d.createContext({});function XO(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(Om(e)){var n=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(n)||e.isContentEditable||n==="a"&&!!e.getAttribute("href"),i=e.getAttribute("tabindex"),o=Number(i),a=null;return i&&!Number.isNaN(o)?a=o:r&&a===null&&(a=0),r&&e.disabled&&(a=null),a!==null&&(a>=0||t&&a<0)}return!1}function Lle(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=Xe(e.querySelectorAll("*")).filter(function(r){return XO(r,t)});return XO(e,t)&&n.unshift(e),n}var mE=lt.LEFT,gE=lt.RIGHT,vE=lt.UP,lv=lt.DOWN,sv=lt.ENTER,QF=lt.ESC,gp=lt.HOME,vp=lt.END,YO=[vE,lv,mE,gE];function Dle(e,t,n,r){var i,o="prev",a="next",l="children",c="parent";if(e==="inline"&&r===sv)return{inlineTrigger:!0};var u=J(J({},vE,o),lv,a),p=J(J(J(J({},mE,n?a:o),gE,n?o:a),lv,l),sv,l),h=J(J(J(J(J(J({},vE,o),lv,a),sv,l),QF,c),mE,n?l:c),gE,n?c:l),m={inline:u,horizontal:p,vertical:h,inlineSub:u,horizontalSub:h,verticalSub:h},g=(i=m["".concat(e).concat(t?"":"Sub")])===null||i===void 0?void 0:i[r];switch(g){case o:return{offset:-1,sibling:!0};case a:return{offset:1,sibling:!0};case c:return{offset:-1,sibling:!1};case l:return{offset:1,sibling:!1};default:return null}}function Fle(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}function Ble(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}function n8(e,t){var n=Lle(e,!0);return n.filter(function(r){return t.has(r)})}function QO(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!e)return null;var i=n8(e,t),o=i.length,a=i.findIndex(function(l){return n===l});return r<0?a===-1?a=o-1:a-=1:r>0&&(a+=1),a=(a+o)%o,i[a]}var yE=function(t,n){var r=new Set,i=new Map,o=new Map;return t.forEach(function(a){var l=document.querySelector("[data-menu-id='".concat(VF(n,a),"']"));l&&(r.add(l),o.set(l,a),i.set(a,l))}),{elements:r,key2element:i,element2key:o}};function jle(e,t,n,r,i,o,a,l,c,u){var p=d.useRef(),h=d.useRef();h.current=t;var m=function(){kn.cancel(p.current)};return d.useEffect(function(){return function(){m()}},[]),function(g){var b=g.which;if([].concat(YO,[sv,QF,gp,vp]).includes(b)){var E=o(),x=yE(E,r),S=x,C=S.elements,_=S.key2element,O=S.element2key,k=_.get(t),T=Ble(k,C),I=O.get(T),$=Dle(e,a(I,!0).length===1,n,b);if(!$&&b!==gp&&b!==vp)return;(YO.includes(b)||[gp,vp].includes(b))&&g.preventDefault();var M=function(z){if(z){var V=z,X=z.querySelector("a");X!=null&&X.getAttribute("href")&&(V=X);var A=O.get(z);l(A),m(),p.current=kn(function(){h.current===A&&V.focus()})}};if([gp,vp].includes(b)||$.sibling||!T){var R;!T||e==="inline"?R=i.current:R=Fle(T);var j,D=n8(R,C);b===gp?j=D[0]:b===vp?j=D[D.length-1]:j=QO(R,C,T,$.offset),M(j)}else if($.inlineTrigger)c(I);else if($.offset>0)c(I,!0),m(),p.current=kn(function(){x=yE(E,r);var W=T.getAttribute("aria-controls"),z=document.getElementById(W),V=QO(z,x.elements);M(V)},5);else if($.offset<0){var L=a(I,!0),B=L[L.length-2],H=_.get(B);c(B,!1),M(H)}}u==null||u(g)}}function Hle(e){Promise.resolve().then(e)}var r8="__RC_UTIL_PATH_SPLIT__",ZO=function(t){return t.join(r8)},zle=function(t){return t.split(r8)},bE="rc-menu-more";function Wle(){var e=d.useState({}),t=_e(e,2),n=t[1],r=d.useRef(new Map),i=d.useRef(new Map),o=d.useState([]),a=_e(o,2),l=a[0],c=a[1],u=d.useRef(0),p=d.useRef(!1),h=function(){p.current||n({})},m=d.useCallback(function(_,O){var k=ZO(O);i.current.set(k,_),r.current.set(_,k),u.current+=1;var T=u.current;Hle(function(){T===u.current&&h()})},[]),g=d.useCallback(function(_,O){var k=ZO(O);i.current.delete(k),r.current.delete(_)},[]),b=d.useCallback(function(_){c(_)},[]),E=d.useCallback(function(_,O){var k=r.current.get(_)||"",T=zle(k);return O&&l.includes(T[0])&&T.unshift(bE),T},[l]),x=d.useCallback(function(_,O){return _.filter(function(k){return k!==void 0}).some(function(k){var T=E(k,!0);return T.includes(O)})},[E]),S=function(){var O=Xe(r.current.keys());return l.length&&O.push(bE),O},C=d.useCallback(function(_){var O="".concat(r.current.get(_)).concat(r8),k=new Set;return Xe(i.current.keys()).forEach(function(T){T.startsWith(O)&&k.add(i.current.get(T))}),k},[]);return d.useEffect(function(){return function(){p.current=!0}},[]),{registerPath:m,unregisterPath:g,refreshOverflowKeys:b,isSubPathKey:x,getKeyPath:E,getKeys:S,getSubPathKeys:C}}function Dp(e){var t=d.useRef(e);t.current=e;var n=d.useCallback(function(){for(var r,i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return(r=t.current)===null||r===void 0?void 0:r.call.apply(r,[t].concat(o))},[]);return e?n:void 0}var Ule=Math.random().toFixed(5).toString().slice(2),JO=0;function Kle(e){var t=_r(e,{value:e}),n=_e(t,2),r=n[0],i=n[1];return d.useEffect(function(){JO+=1;var o="".concat(Ule,"-").concat(JO);i("rc-menu-uuid-".concat(o))},[]),r}function ZF(e,t,n,r){var i=d.useContext(ul),o=i.activeKey,a=i.onActive,l=i.onInactive,c={active:o===e};return t||(c.onMouseEnter=function(u){n==null||n({key:e,domEvent:u}),a(e)},c.onMouseLeave=function(u){r==null||r({key:e,domEvent:u}),l(e)}),c}function JF(e){var t=d.useContext(ul),n=t.mode,r=t.rtl,i=t.inlineIndent;if(n!=="inline")return null;var o=e;return r?{paddingRight:o*i}:{paddingLeft:o*i}}function eB(e){var t=e.icon,n=e.props,r=e.children,i;return t===null||t===!1?null:(typeof t=="function"?i=d.createElement(t,te({},n)):typeof t!="boolean"&&(i=t),i||r||null)}var Vle=["item"];function hy(e){var t=e.item,n=Yt(e,Vle);return Object.defineProperty(n,"item",{get:function(){return br(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),t}}),n}var Gle=["title","attribute","elementRef"],qle=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],Xle=["active"],Yle=function(e){Ra(n,e);var t=Ma(n);function n(){return Rr(this,n),t.apply(this,arguments)}return Mr(n,[{key:"render",value:function(){var i=this.props,o=i.title,a=i.attribute,l=i.elementRef,c=Yt(i,Gle),u=ir(c,["eventKey","popupClassName","popupOffset","onTitleClick"]);return br(!a,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),d.createElement(Nl.Item,Ve({},a,{title:typeof o=="string"?o:void 0},u,{ref:l}))}}]),n}(d.Component),Qle=d.forwardRef(function(e,t){var n=e.style,r=e.className,i=e.eventKey;e.warnKey;var o=e.disabled,a=e.itemIcon,l=e.children,c=e.role,u=e.onMouseEnter,p=e.onMouseLeave,h=e.onClick,m=e.onKeyDown,g=e.onFocus,b=Yt(e,qle),E=GF(i),x=d.useContext(ul),S=x.prefixCls,C=x.onItemClick,_=x.disabled,O=x.overflowDisabled,k=x.itemIcon,T=x.selectedKeys,I=x.onActive,$=d.useContext(t8),M=$._internalRenderMenuItem,R="".concat(S,"-item"),j=d.useRef(),D=d.useRef(),L=_||o,B=Es(t,D),H=f1(i),W=function(pe){return{key:i,keyPath:Xe(H).reverse(),item:j.current,domEvent:pe}},z=a||k,V=ZF(i,L,u,p),X=V.active,A=Yt(V,Xle),P=T.includes(i),Y=JF(H.length),U=function(pe){if(!L){var be=W(pe);h==null||h(hy(be)),C(be)}},Q=function(pe){if(m==null||m(pe),pe.which===lt.ENTER){var be=W(pe);h==null||h(hy(be)),C(be)}},ee=function(pe){I(i),g==null||g(pe)},se={};e.role==="option"&&(se["aria-selected"]=P);var ne=d.createElement(Yle,Ve({ref:j,elementRef:B,role:c===null?"none":c||"menuitem",tabIndex:o?null:-1,"data-menu-id":O&&E?null:E},ir(b,["extra"]),A,se,{component:"li","aria-disabled":o,style:te(te({},Y),n),className:le(R,J(J(J({},"".concat(R,"-active"),X),"".concat(R,"-selected"),P),"".concat(R,"-disabled"),L),r),onClick:U,onKeyDown:Q,onFocus:ee}),l,d.createElement(eB,{props:te(te({},e),{},{isSelected:P}),icon:z}));return M&&(ne=M(ne,e,{selected:P})),ne});function Zle(e,t){var n=e.eventKey,r=Jb(),i=f1(n);return d.useEffect(function(){if(r)return r.registerPath(n,i),function(){r.unregisterPath(n,i)}},[i]),r?null:d.createElement(Qle,Ve({},e,{ref:t}))}const Mm=d.forwardRef(Zle);var Jle=["className","children"],ese=function(t,n){var r=t.className,i=t.children,o=Yt(t,Jle),a=d.useContext(ul),l=a.prefixCls,c=a.mode,u=a.rtl;return d.createElement("ul",Ve({className:le(l,u&&"".concat(l,"-rtl"),"".concat(l,"-sub"),"".concat(l,"-").concat(c==="inline"?"inline":"vertical"),r),role:"menu"},o,{"data-menu-list":!0,ref:n}),i)},i8=d.forwardRef(ese);i8.displayName="SubMenuList";function o8(e,t){return ii(e).map(function(n,r){if(d.isValidElement(n)){var i,o,a=n.key,l=(i=(o=n.props)===null||o===void 0?void 0:o.eventKey)!==null&&i!==void 0?i:a,c=l==null;c&&(l="tmp_key-".concat([].concat(Xe(t),[r]).join("-")));var u={key:l,eventKey:l};return d.cloneElement(n,u)}return n})}var Ui={adjustX:1,adjustY:1},tse={topLeft:{points:["bl","tl"],overflow:Ui},topRight:{points:["br","tr"],overflow:Ui},bottomLeft:{points:["tl","bl"],overflow:Ui},bottomRight:{points:["tr","br"],overflow:Ui},leftTop:{points:["tr","tl"],overflow:Ui},leftBottom:{points:["br","bl"],overflow:Ui},rightTop:{points:["tl","tr"],overflow:Ui},rightBottom:{points:["bl","br"],overflow:Ui}},nse={topLeft:{points:["bl","tl"],overflow:Ui},topRight:{points:["br","tr"],overflow:Ui},bottomLeft:{points:["tl","bl"],overflow:Ui},bottomRight:{points:["tr","br"],overflow:Ui},rightTop:{points:["tr","tl"],overflow:Ui},rightBottom:{points:["br","bl"],overflow:Ui},leftTop:{points:["tl","tr"],overflow:Ui},leftBottom:{points:["bl","br"],overflow:Ui}};function tB(e,t,n){if(t)return t;if(n)return n[e]||n.other}var rse={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function ise(e){var t=e.prefixCls,n=e.visible,r=e.children,i=e.popup,o=e.popupStyle,a=e.popupClassName,l=e.popupOffset,c=e.disabled,u=e.mode,p=e.onVisibleChange,h=d.useContext(ul),m=h.getPopupContainer,g=h.rtl,b=h.subMenuOpenDelay,E=h.subMenuCloseDelay,x=h.builtinPlacements,S=h.triggerSubMenuAction,C=h.forceSubMenuRender,_=h.rootClassName,O=h.motion,k=h.defaultMotions,T=d.useState(!1),I=_e(T,2),$=I[0],M=I[1],R=te(g?te({},nse):te({},tse),x),j=rse[u],D=tB(u,O,k),L=d.useRef(D);u!=="inline"&&(L.current=D);var B=te(te({},L.current),{},{leavedClassName:"".concat(t,"-hidden"),removeOnLeave:!1,motionAppear:!0}),H=d.useRef();return d.useEffect(function(){return H.current=kn(function(){M(n)}),function(){kn.cancel(H.current)}},[n]),d.createElement(qb,{prefixCls:t,popupClassName:le("".concat(t,"-popup"),J({},"".concat(t,"-rtl"),g),a,_),stretch:u==="horizontal"?"minWidth":null,getPopupContainer:m,builtinPlacements:R,popupPlacement:j,popupVisible:$,popup:i,popupStyle:o,popupAlign:l&&{offset:l},action:c?[]:[S],mouseEnterDelay:b,mouseLeaveDelay:E,onPopupVisibleChange:p,forceRender:C,popupMotion:B,fresh:!0},r)}function ose(e){var t=e.id,n=e.open,r=e.keyPath,i=e.children,o="inline",a=d.useContext(ul),l=a.prefixCls,c=a.forceSubMenuRender,u=a.motion,p=a.defaultMotions,h=a.mode,m=d.useRef(!1);m.current=h===o;var g=d.useState(!m.current),b=_e(g,2),E=b[0],x=b[1],S=m.current?n:!1;d.useEffect(function(){m.current&&x(!1)},[h]);var C=te({},tB(o,u,p));r.length>1&&(C.motionAppear=!1);var _=C.onVisibleChanged;return C.onVisibleChanged=function(O){return!m.current&&!O&&x(!0),_==null?void 0:_(O)},E?null:d.createElement(tm,{mode:o,locked:!m.current},d.createElement(la,Ve({visible:S},C,{forceRender:c,removeOnLeave:!1,leavedClassName:"".concat(l,"-hidden")}),function(O){var k=O.className,T=O.style;return d.createElement(i8,{id:t,className:k,style:T},i)}))}var ase=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],lse=["active"],sse=d.forwardRef(function(e,t){var n=e.style,r=e.className,i=e.title,o=e.eventKey;e.warnKey;var a=e.disabled,l=e.internalPopupClose,c=e.children,u=e.itemIcon,p=e.expandIcon,h=e.popupClassName,m=e.popupOffset,g=e.popupStyle,b=e.onClick,E=e.onMouseEnter,x=e.onMouseLeave,S=e.onTitleClick,C=e.onTitleMouseEnter,_=e.onTitleMouseLeave,O=Yt(e,ase),k=GF(o),T=d.useContext(ul),I=T.prefixCls,$=T.mode,M=T.openKeys,R=T.disabled,j=T.overflowDisabled,D=T.activeKey,L=T.selectedKeys,B=T.itemIcon,H=T.expandIcon,W=T.onItemClick,z=T.onOpenChange,V=T.onActive,X=d.useContext(t8),A=X._internalRenderSubMenuItem,P=d.useContext(YF),Y=P.isSubPathKey,U=f1(),Q="".concat(I,"-submenu"),ee=R||a,se=d.useRef(),ne=d.useRef(),oe=u??B,pe=p??H,be=M.includes(o),ue=!j&&be,de=Y(L,o),re=ZF(o,ee,C,_),me=re.active,ge=Yt(re,lse),Ae=d.useState(!1),De=_e(Ae,2),ze=De[0],et=De[1],Ie=function(xe){ee||et(xe)},Te=function(xe){Ie(!0),E==null||E({key:o,domEvent:xe})},Ue=function(xe){Ie(!1),x==null||x({key:o,domEvent:xe})},Le=d.useMemo(function(){return me||($!=="inline"?ze||Y([D],o):!1)},[$,me,D,ze,o,Y]),je=JF(U.length),Ge=function(xe){ee||(S==null||S({key:o,domEvent:xe}),$==="inline"&&z(o,!be))},qe=Dp(function(ie){b==null||b(hy(ie)),W(ie)}),Ce=function(xe){$!=="inline"&&z(o,xe)},ke=function(){V(o)},We=k&&"".concat(k,"-popup"),Pe=d.createElement("div",Ve({role:"menuitem",style:je,className:"".concat(Q,"-title"),tabIndex:ee?null:-1,ref:se,title:typeof i=="string"?i:null,"data-menu-id":j&&k?null:k,"aria-expanded":ue,"aria-haspopup":!0,"aria-controls":We,"aria-disabled":ee,onClick:Ge,onFocus:ke},ge),i,d.createElement(eB,{icon:$!=="horizontal"?pe:void 0,props:te(te({},e),{},{isOpen:ue,isSubMenu:!0})},d.createElement("i",{className:"".concat(Q,"-arrow")}))),Be=d.useRef($);if($!=="inline"&&U.length>1?Be.current="vertical":Be.current=$,!j){var He=Be.current;Pe=d.createElement(ise,{mode:He,prefixCls:Q,visible:!l&&ue&&$!=="inline",popupClassName:h,popupOffset:m,popupStyle:g,popup:d.createElement(tm,{mode:He==="horizontal"?"vertical":He},d.createElement(i8,{id:We,ref:ne},c)),disabled:ee,onVisibleChange:Ce},Pe)}var Qe=d.createElement(Nl.Item,Ve({ref:t,role:"none"},O,{component:"li",style:n,className:le(Q,"".concat(Q,"-").concat($),r,J(J(J(J({},"".concat(Q,"-open"),ue),"".concat(Q,"-active"),Le),"".concat(Q,"-selected"),de),"".concat(Q,"-disabled"),ee)),onMouseEnter:Te,onMouseLeave:Ue}),Pe,!j&&d.createElement(ose,{id:We,open:ue,keyPath:U},c));return A&&(Qe=A(Qe,e,{selected:de,active:Le,open:ue,disabled:ee})),d.createElement(tm,{onItemClick:qe,mode:$==="horizontal"?"vertical":$,itemIcon:oe,expandIcon:pe},Qe)}),e2=d.forwardRef(function(e,t){var n=e.eventKey,r=e.children,i=f1(n),o=o8(r,i),a=Jb();d.useEffect(function(){if(a)return a.registerPath(n,i),function(){a.unregisterPath(n,i)}},[i]);var l;return a?l=o:l=d.createElement(sse,Ve({ref:t},e),o),d.createElement(XF.Provider,{value:i},l)});function a8(e){var t=e.className,n=e.style,r=d.useContext(ul),i=r.prefixCls,o=Jb();return o?null:d.createElement("li",{role:"separator",className:le("".concat(i,"-item-divider"),t),style:n})}var cse=["className","title","eventKey","children"],use=d.forwardRef(function(e,t){var n=e.className,r=e.title;e.eventKey;var i=e.children,o=Yt(e,cse),a=d.useContext(ul),l=a.prefixCls,c="".concat(l,"-item-group");return d.createElement("li",Ve({ref:t,role:"presentation"},o,{onClick:function(p){return p.stopPropagation()},className:le(c,n)}),d.createElement("div",{role:"presentation",className:"".concat(c,"-title"),title:typeof r=="string"?r:void 0},r),d.createElement("ul",{role:"group",className:"".concat(c,"-list")},i))}),l8=d.forwardRef(function(e,t){var n=e.eventKey,r=e.children,i=f1(n),o=o8(r,i),a=Jb();return a?o:d.createElement(use,Ve({ref:t},ir(e,["warnKey"])),o)}),dse=["label","children","key","type","extra"];function CE(e,t,n){var r=t.item,i=t.group,o=t.submenu,a=t.divider;return(e||[]).map(function(l,c){if(l&&Nt(l)==="object"){var u=l,p=u.label,h=u.children,m=u.key,g=u.type,b=u.extra,E=Yt(u,dse),x=m??"tmp-".concat(c);return h||g==="group"?g==="group"?d.createElement(i,Ve({key:x},E,{title:p}),CE(h,t,n)):d.createElement(o,Ve({key:x},E,{title:p}),CE(h,t,n)):g==="divider"?d.createElement(a,Ve({key:x},E)):d.createElement(r,Ve({key:x},E,{extra:b}),p,(!!b||b===0)&&d.createElement("span",{className:"".concat(n,"-item-extra")},b))}return null}).filter(function(l){return l})}function eI(e,t,n,r,i){var o=e,a=te({divider:a8,item:Mm,group:l8,submenu:e2},r);return t&&(o=CE(t,a,i)),o8(o,n)}var fse=["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"],Jc=[],pse=d.forwardRef(function(e,t){var n,r=e,i=r.prefixCls,o=i===void 0?"rc-menu":i,a=r.rootClassName,l=r.style,c=r.className,u=r.tabIndex,p=u===void 0?0:u,h=r.items,m=r.children,g=r.direction,b=r.id,E=r.mode,x=E===void 0?"vertical":E,S=r.inlineCollapsed,C=r.disabled,_=r.disabledOverflow,O=r.subMenuOpenDelay,k=O===void 0?.1:O,T=r.subMenuCloseDelay,I=T===void 0?.1:T,$=r.forceSubMenuRender,M=r.defaultOpenKeys,R=r.openKeys,j=r.activeKey,D=r.defaultActiveFirst,L=r.selectable,B=L===void 0?!0:L,H=r.multiple,W=H===void 0?!1:H,z=r.defaultSelectedKeys,V=r.selectedKeys,X=r.onSelect,A=r.onDeselect,P=r.inlineIndent,Y=P===void 0?24:P,U=r.motion,Q=r.defaultMotions,ee=r.triggerSubMenuAction,se=ee===void 0?"hover":ee,ne=r.builtinPlacements,oe=r.itemIcon,pe=r.expandIcon,be=r.overflowedIndicator,ue=be===void 0?"...":be,de=r.overflowedIndicatorPopupClassName,re=r.getPopupContainer,me=r.onClick,ge=r.onOpenChange,Ae=r.onKeyDown;r.openAnimation,r.openTransitionName;var De=r._internalRenderMenuItem,ze=r._internalRenderSubMenuItem,et=r._internalComponents,Ie=Yt(r,fse),Te=d.useMemo(function(){return[eI(m,h,Jc,et,o),eI(m,h,Jc,{},o)]},[m,h,et]),Ue=_e(Te,2),Le=Ue[0],je=Ue[1],Ge=d.useState(!1),qe=_e(Ge,2),Ce=qe[0],ke=qe[1],We=d.useRef(),Pe=Kle(b),Be=g==="rtl",He=_r(M,{value:R,postState:function(Bt){return Bt||Jc}}),Qe=_e(He,2),ie=Qe[0],xe=Qe[1],Ne=function(Bt){var Rt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function En(){xe(Bt),ge==null||ge(Bt)}Rt?Ta.flushSync(En):En()},$e=d.useState(ie),Ye=_e($e,2),ht=Ye[0],It=Ye[1],Jt=d.useRef(!1),Vt=d.useMemo(function(){return(x==="inline"||x==="vertical")&&S?["vertical",S]:[x,!1]},[x,S]),en=_e(Vt,2),rn=en[0],Gt=en[1],Ft=rn==="inline",bt=d.useState(rn),gt=_e(bt,2),ft=gt[0],he=gt[1],we=d.useState(Gt),ve=_e(we,2),Me=ve[0],Je=ve[1];d.useEffect(function(){he(rn),Je(Gt),Jt.current&&(Ft?xe(ht):Ne(Jc))},[rn,Gt]);var tt=d.useState(0),st=_e(tt,2),at=st[0],it=st[1],nt=at>=Le.length-1||ft!=="horizontal"||_;d.useEffect(function(){Ft&&It(ie)},[ie]),d.useEffect(function(){return Jt.current=!0,function(){Jt.current=!1}},[]);var ct=Wle(),mt=ct.registerPath,St=ct.unregisterPath,Zt=ct.refreshOverflowKeys,Lt=ct.isSubPathKey,Pt=ct.getKeyPath,vt=ct.getKeys,dt=ct.getSubPathKeys,ot=d.useMemo(function(){return{registerPath:mt,unregisterPath:St}},[mt,St]),Xt=d.useMemo(function(){return{isSubPathKey:Lt}},[Lt]);d.useEffect(function(){Zt(nt?Jc:Le.slice(at+1).map(function(_n){return _n.key}))},[at,nt]);var Dt=_r(j||D&&((n=Le[0])===null||n===void 0?void 0:n.key),{value:j}),xt=_e(Dt,2),Tt=xt[0],tn=xt[1],mn=Dp(function(_n){tn(_n)}),Sn=Dp(function(){tn(void 0)});d.useImperativeHandle(t,function(){return{list:We.current,focus:function(Bt){var Rt,En=vt(),Tn=yE(En,Pe),Ln=Tn.elements,Un=Tn.key2element,Pr=Tn.element2key,Or=n8(We.current,Ln),Lr=Tt??(Or[0]?Pr.get(Or[0]):(Rt=Le.find(function(sn){return!sn.props.disabled}))===null||Rt===void 0?void 0:Rt.key),Hr=Un.get(Lr);if(Lr&&Hr){var li;Hr==null||(li=Hr.focus)===null||li===void 0||li.call(Hr,Bt)}}}});var Ke=_r(z||[],{value:V,postState:function(Bt){return Array.isArray(Bt)?Bt:Bt==null?Jc:[Bt]}}),Ze=_e(Ke,2),Kt=Ze[0],ln=Ze[1],dn=function(Bt){if(B){var Rt=Bt.key,En=Kt.includes(Rt),Tn;W?En?Tn=Kt.filter(function(Un){return Un!==Rt}):Tn=[].concat(Xe(Kt),[Rt]):Tn=[Rt],ln(Tn);var Ln=te(te({},Bt),{},{selectedKeys:Tn});En?A==null||A(Ln):X==null||X(Ln)}!W&&ie.length&&ft!=="inline"&&Ne(Jc)},Vn=Dp(function(_n){me==null||me(hy(_n)),dn(_n)}),cr=Dp(function(_n,Bt){var Rt=ie.filter(function(Tn){return Tn!==_n});if(Bt)Rt.push(_n);else if(ft!=="inline"){var En=dt(_n);Rt=Rt.filter(function(Tn){return!En.has(Tn)})}Ll(ie,Rt,!0)||Ne(Rt,!0)}),Ht=function(Bt,Rt){var En=Rt??!ie.includes(Bt);cr(Bt,En)},yo=jle(ft,Tt,Be,Pe,We,vt,Pt,tn,Ht,Ae);d.useEffect(function(){ke(!0)},[]);var Bi=d.useMemo(function(){return{_internalRenderMenuItem:De,_internalRenderSubMenuItem:ze}},[De,ze]),Cr=ft!=="horizontal"||_?Le:Le.map(function(_n,Bt){return d.createElement(tm,{key:_n.key,overflowDisabled:Bt>at},_n)}),Tr=d.createElement(Nl,Ve({id:b,ref:We,prefixCls:"".concat(o,"-overflow"),component:"ul",itemComponent:Mm,className:le(o,"".concat(o,"-root"),"".concat(o,"-").concat(ft),c,J(J({},"".concat(o,"-inline-collapsed"),Me),"".concat(o,"-rtl"),Be),a),dir:g,style:l,role:"menu",tabIndex:p,data:Cr,renderRawItem:function(Bt){return Bt},renderRawRest:function(Bt){var Rt=Bt.length,En=Rt?Le.slice(-Rt):null;return d.createElement(e2,{eventKey:bE,title:ue,disabled:nt,internalPopupClose:Rt===0,popupClassName:de},En)},maxCount:ft!=="horizontal"||_?Nl.INVALIDATE:Nl.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(Bt){it(Bt)},onKeyDown:yo},Ie));return d.createElement(t8.Provider,{value:Bi},d.createElement(KF.Provider,{value:Pe},d.createElement(tm,{prefixCls:o,rootClassName:a,mode:ft,openKeys:ie,rtl:Be,disabled:C,motion:Ce?U:null,defaultMotions:Ce?Q:null,activeKey:Tt,onActive:mn,onInactive:Sn,selectedKeys:Kt,inlineIndent:Y,subMenuOpenDelay:k,subMenuCloseDelay:I,forceSubMenuRender:$,builtinPlacements:ne,triggerSubMenuAction:se,getPopupContainer:re,itemIcon:oe,expandIcon:pe,onItemClick:Vn,onOpenChange:cr},d.createElement(YF.Provider,{value:Xt},Tr),d.createElement("div",{style:{display:"none"},"aria-hidden":!0},d.createElement(qF.Provider,{value:ot},je)))))}),p1=pse;p1.Item=Mm;p1.SubMenu=e2;p1.ItemGroup=l8;p1.Divider=a8;var nB={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"},hse=function(t,n){return d.createElement(bn,Ve({},t,{ref:n,icon:nB}))},mse=d.forwardRef(hse),gse={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"},vse=function(t,n){return d.createElement(bn,Ve({},t,{ref:n,icon:gse}))},my=d.forwardRef(vse);const rB=d.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}}),yse=e=>{const{antCls:t,componentCls:n,colorText:r,footerBg:i,headerHeight:o,headerPadding:a,headerColor:l,footerPadding:c,fontSize:u,bodyBg:p,headerBg:h}=e;return{[n]:{display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:p,"&, *":{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:o,padding:a,color:l,lineHeight:ae(o),background:h,[`${t}-menu`]:{lineHeight:"inherit"}},[`${n}-footer`]:{padding:c,color:r,fontSize:u,background:i},[`${n}-content`]:{flex:"auto",color:r,minHeight:0}}},iB=e=>{const{colorBgLayout:t,controlHeight:n,controlHeightLG:r,colorText:i,controlHeightSM:o,marginXXS:a,colorTextLightSolid:l,colorBgContainer:c}=e,u=r*1.25;return{colorBgHeader:"#001529",colorBgBody:t,colorBgTrigger:"#002140",bodyBg:t,headerBg:"#001529",headerHeight:n*2,headerPadding:`0 ${u}px`,headerColor:i,footerPadding:`${o}px ${u}px`,footerBg:t,siderBg:"#001529",triggerHeight:r+a*2,triggerBg:"#002140",triggerColor:l,zeroTriggerWidth:r,zeroTriggerHeight:r,lightSiderBg:c,lightTriggerBg:c,lightTriggerColor:i}},oB=[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]],aB=Fn("Layout",e=>[yse(e)],iB,{deprecatedTokens:oB}),bse=e=>{const{componentCls:t,siderBg:n,motionDurationMid:r,motionDurationSlow:i,antCls:o,triggerHeight:a,triggerColor:l,triggerBg:c,headerHeight:u,zeroTriggerWidth:p,zeroTriggerHeight:h,borderRadiusLG:m,lightSiderBg:g,lightTriggerColor:b,lightTriggerBg:E,bodyBg:x}=e;return{[t]:{position:"relative",minWidth:0,background:n,transition:`all ${r}, background 0s`,"&-has-trigger":{paddingBottom:a},"&-right":{order:1},[`${t}-children`]:{height:"100%",marginTop:-.1,paddingTop:.1,[`${o}-menu${o}-menu-inline-collapsed`]:{width:"auto"}},[`${t}-trigger`]:{position:"fixed",bottom:0,zIndex:1,height:a,color:l,lineHeight:ae(a),textAlign:"center",background:c,cursor:"pointer",transition:`all ${r}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:u,insetInlineEnd:e.calc(p).mul(-1).equal(),zIndex:1,width:p,height:h,color:l,fontSize:e.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:n,borderRadius:`0 ${ae(m)} ${ae(m)} 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(p).mul(-1).equal(),borderRadius:`${ae(m)} 0 0 ${ae(m)}`}}},"&-light":{background:g,[`${t}-trigger`]:{color:b,background:E},[`${t}-zero-width-trigger`]:{color:b,background:E,border:`1px solid ${x}`,borderInlineStart:0}}}}},Cse=Fn(["Layout","Sider"],e=>[bse(e)],iB,{deprecatedTokens:oB});var Sse=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 tI={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},Ese=e=>!Number.isNaN(Number.parseFloat(e))&&isFinite(e),t2=d.createContext({}),xse=(()=>{let e=0;return function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return e+=1,`${t}${e}`}})(),lB=d.forwardRef((e,t)=>{const{prefixCls:n,className:r,trigger:i,children:o,defaultCollapsed:a=!1,theme:l="dark",style:c={},collapsible:u=!1,reverseArrow:p=!1,width:h=200,collapsedWidth:m=80,zeroWidthTriggerStyle:g,breakpoint:b,onCollapse:E,onBreakpoint:x}=e,S=Sse(e,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:C}=d.useContext(rB),[_,O]=d.useState("collapsed"in e?e.collapsed:a),[k,T]=d.useState(!1);d.useEffect(()=>{"collapsed"in e&&O(e.collapsed)},[e.collapsed]);const I=(oe,pe)=>{"collapsed"in e||O(oe),E==null||E(oe,pe)},{getPrefixCls:$,direction:M}=d.useContext(At),R=$("layout-sider",n),[j,D,L]=Cse(R),B=d.useRef(null);B.current=oe=>{T(oe.matches),x==null||x(oe.matches),_!==oe.matches&&I(oe.matches,"responsive")},d.useEffect(()=>{function oe(be){return B.current(be)}let pe;if(typeof window<"u"){const{matchMedia:be}=window;if(be&&b&&b in tI){pe=be(`screen and (max-width: ${tI[b]})`);try{pe.addEventListener("change",oe)}catch{pe.addListener(oe)}oe(pe)}}return()=>{try{pe==null||pe.removeEventListener("change",oe)}catch{pe==null||pe.removeListener(oe)}}},[b]),d.useEffect(()=>{const oe=xse("ant-sider-");return C.addSider(oe),()=>C.removeSider(oe)},[]);const H=()=>{I(!_,"clickTrigger")},W=ir(S,["collapsed"]),z=_?m:h,V=Ese(z)?`${z}px`:String(z),X=parseFloat(String(m||0))===0?d.createElement("span",{onClick:H,className:le(`${R}-zero-width-trigger`,`${R}-zero-width-trigger-${p?"right":"left"}`),style:g},i||d.createElement(mse,null)):null,A=M==="rtl"==!p,U={expanded:A?d.createElement(Qh,null):d.createElement(my,null),collapsed:A?d.createElement(my,null):d.createElement(Qh,null)}[_?"collapsed":"expanded"],Q=i!==null?X||d.createElement("div",{className:`${R}-trigger`,onClick:H,style:{width:V}},i||U):null,ee=Object.assign(Object.assign({},c),{flex:`0 0 ${V}`,maxWidth:V,minWidth:V,width:V}),se=le(R,`${R}-${l}`,{[`${R}-collapsed`]:!!_,[`${R}-has-trigger`]:u&&i!==null&&!X,[`${R}-below`]:!!k,[`${R}-zero-width`]:parseFloat(V)===0},r,D,L),ne=d.useMemo(()=>({siderCollapsed:_}),[_]);return j(d.createElement(t2.Provider,{value:ne},d.createElement("aside",Object.assign({className:se},W,{style:ee,ref:t}),d.createElement("div",{className:`${R}-children`},o),u||k&&X?Q:null)))});var wse={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"},_se=function(t,n){return d.createElement(bn,Ve({},t,{ref:n,icon:wse}))},s8=d.forwardRef(_se);const gy=d.createContext({prefixCls:"",firstLevel:!0,inlineCollapsed:!1});var Tse=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 sB=e=>{const{prefixCls:t,className:n,dashed:r}=e,i=Tse(e,["prefixCls","className","dashed"]),{getPrefixCls:o}=d.useContext(At),a=o("menu",t),l=le({[`${a}-item-divider-dashed`]:!!r},n);return d.createElement(a8,Object.assign({className:l},i))},cB=e=>{var t;const{className:n,children:r,icon:i,title:o,danger:a,extra:l}=e,{prefixCls:c,firstLevel:u,direction:p,disableMenuItemTitleTooltip:h,inlineCollapsed:m}=d.useContext(gy),g=_=>{const O=r==null?void 0:r[0],k=d.createElement("span",{className:le(`${c}-title-content`,{[`${c}-title-content-with-extra`]:!!l||l===0})},r);return(!i||d.isValidElement(r)&&r.type==="span")&&r&&_&&u&&typeof O=="string"?d.createElement("div",{className:`${c}-inline-collapsed-noicon`},O.charAt(0)):k},{siderCollapsed:b}=d.useContext(t2);let E=o;typeof o>"u"?E=u?r:"":o===!1&&(E="");const x={title:E};!b&&!m&&(x.title=null,x.open=!1);const S=ii(r).length;let C=d.createElement(Mm,Object.assign({},ir(e,["title","icon","danger"]),{className:le({[`${c}-item-danger`]:a,[`${c}-item-only-child`]:(i?S+1:S)===1},n),title:typeof o=="string"?o:void 0}),vi(i,{className:le(d.isValidElement(i)?(t=i.props)===null||t===void 0?void 0:t.className:"",`${c}-item-icon`)}),g(m));return h||(C=d.createElement(cl,Object.assign({},x,{placement:p==="rtl"?"left":"right",classNames:{root:`${c}-inline-collapsed-tooltip`}}),C)),C};var Ose=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 vy=d.createContext(null),uB=d.forwardRef((e,t)=>{const{children:n}=e,r=Ose(e,["children"]),i=d.useContext(vy),o=d.useMemo(()=>Object.assign(Object.assign({},i),r),[i,r.prefixCls,r.mode,r.selectable,r.rootClassName]),a=wY(n),l=Es(t,a?Pc(n):null);return d.createElement(vy.Provider,{value:o},d.createElement(Jh,{space:!0},a?d.cloneElement(n,{ref:l}):n))}),Ise=e=>{const{componentCls:t,motionDurationSlow:n,horizontalLineHeight:r,colorSplit:i,lineWidth:o,lineType:a,itemPaddingInline:l}=e;return{[`${t}-horizontal`]:{lineHeight:r,border:0,borderBottom:`${ae(o)} ${a} ${i}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${t}-item, ${t}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:l},[`> ${t}-item:hover,
> ${t}-item-active,
> ${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"}}}},kse=e=>{let{componentCls:t,menuArrowOffset:n,calc:r}=e;return{[`${t}-rtl`]:{direction:"rtl"},[`${t}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${t}-rtl${t}-vertical,
${t}-submenu-rtl ${t}-vertical`]:{[`${t}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${ae(r(n).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${ae(n)})`}}}}},nI=e=>Object.assign({},Dl(e)),rI=(e,t)=>{const{componentCls:n,itemColor:r,itemSelectedColor:i,subMenuItemSelectedColor:o,groupTitleColor:a,itemBg:l,subMenuItemBg:c,itemSelectedBg:u,activeBarHeight:p,activeBarWidth:h,activeBarBorderWidth:m,motionDurationSlow:g,motionEaseInOut:b,motionEaseOut:E,itemPaddingInline:x,motionDurationMid:S,itemHoverColor:C,lineType:_,colorSplit:O,itemDisabledColor:k,dangerItemColor:T,dangerItemHoverColor:I,dangerItemSelectedColor:$,dangerItemActiveBg:M,dangerItemSelectedBg:R,popupBg:j,itemHoverBg:D,itemActiveBg:L,menuSubMenuBg:B,horizontalItemSelectedColor:H,horizontalItemSelectedBg:W,horizontalItemBorderRadius:z,horizontalItemHoverBg:V}=e;return{[`${n}-${t}, ${n}-${t} > ${n}`]:{color:r,background:l,[`&${n}-root:focus-visible`]:Object.assign({},nI(e)),[`${n}-item`]:{"&-group-title, &-extra":{color:a}},[`${n}-submenu-selected > ${n}-submenu-title`]:{color:o},[`${n}-item, ${n}-submenu-title`]:{color:r,[`&:not(${n}-item-disabled):focus-visible`]:Object.assign({},nI(e))},[`${n}-item-disabled, ${n}-submenu-disabled`]:{color:`${k} !important`},[`${n}-item:not(${n}-item-selected):not(${n}-submenu-selected)`]:{[`&:hover, > ${n}-submenu-title:hover`]:{color:C}},[`&:not(${n}-horizontal)`]:{[`${n}-item:not(${n}-item-selected)`]:{"&:hover":{backgroundColor:D},"&:active":{backgroundColor:L}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:D},"&:active":{backgroundColor:L}}},[`${n}-item-danger`]:{color:T,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:I}},[`&${n}-item:active`]:{background:M}},[`${n}-item a`]:{"&, &:hover":{color:"inherit"}},[`${n}-item-selected`]:{color:i,[`&${n}-item-danger`]:{color:$},"a, a:hover":{color:"inherit"}},[`& ${n}-item-selected`]:{backgroundColor:u,[`&${n}-item-danger`]:{backgroundColor:R}},[`&${n}-submenu > ${n}`]:{backgroundColor:B},[`&${n}-popup > ${n}`]:{backgroundColor:j},[`&${n}-submenu-popup > ${n}`]:{backgroundColor:j},[`&${n}-horizontal`]:Object.assign(Object.assign({},t==="dark"?{borderBottom:0}:{}),{[`> ${n}-item, > ${n}-submenu`]:{top:m,marginTop:e.calc(m).mul(-1).equal(),marginBottom:0,borderRadius:z,"&::after":{position:"absolute",insetInline:x,bottom:0,borderBottom:`${ae(p)} solid transparent`,transition:`border-color ${g} ${b}`,content:'""'},"&:hover, &-active, &-open":{background:V,"&::after":{borderBottomWidth:p,borderBottomColor:H}},"&-selected":{color:H,backgroundColor:W,"&:hover":{backgroundColor:W},"&::after":{borderBottomWidth:p,borderBottomColor:H}}}}),[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${ae(m)} ${_} ${O}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:c},[`${n}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${ae(h)} solid ${i}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${S} ${E}`,`opacity ${S} ${E}`].join(","),content:'""'},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:$}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${S} ${b}`,`opacity ${S} ${b}`].join(",")}}}}}},iI=e=>{const{componentCls:t,itemHeight:n,itemMarginInline:r,padding:i,menuArrowSize:o,marginXS:a,itemMarginBlock:l,itemWidth:c,itemPaddingInline:u}=e,p=e.calc(o).add(i).add(a).equal();return{[`${t}-item`]:{position:"relative",overflow:"hidden"},[`${t}-item, ${t}-submenu-title`]:{height:n,lineHeight:ae(n),paddingInline:u,overflow:"hidden",textOverflow:"ellipsis",marginInline:r,marginBlock:l,width:c},[`> ${t}-item,
> ${t}-submenu > ${t}-submenu-title`]:{height:n,lineHeight:ae(n)},[`${t}-item-group-list ${t}-submenu-title,
${t}-submenu-title`]:{paddingInlineEnd:p}}},$se=e=>{const{componentCls:t,iconCls:n,itemHeight:r,colorTextLightSolid:i,dropdownWidth:o,controlHeightLG:a,motionEaseOut:l,paddingXL:c,itemMarginInline:u,fontSizeLG:p,motionDurationFast:h,motionDurationSlow:m,paddingXS:g,boxShadowSecondary:b,collapsedWidth:E,collapsedIconSize:x}=e,S={height:r,lineHeight:ae(r),listStylePosition:"inside",listStyleType:"disc"};return[{[t]:{"&-inline, &-vertical":Object.assign({[`&${t}-root`]:{boxShadow:"none"}},iI(e))},[`${t}-submenu-popup`]:{[`${t}-vertical`]:Object.assign(Object.assign({},iI(e)),{boxShadow:b})}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:o,maxHeight:`calc(100vh - ${ae(e.calc(a).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 ${m}`,`background ${m}`,`padding ${h} ${l}`].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`]:S,[`& ${t}-item-group-title`]:{paddingInlineStart:c}},[`${t}-item`]:S}},{[`${t}-inline-collapsed`]:{width:E,[`&${t}-root`]:{[`${t}-item, ${t}-submenu ${t}-submenu-title`]:{[`> ${t}-inline-collapsed-noicon`]:{fontSize:p,textAlign:"center"}}},[`> ${t}-item,
> ${t}-item-group > ${t}-item-group-list > ${t}-item,
> ${t}-item-group > ${t}-item-group-list > ${t}-submenu > ${t}-submenu-title,
> ${t}-submenu > ${t}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${ae(e.calc(x).div(2).equal())} - ${ae(u)})`,textOverflow:"clip",[`
${t}-submenu-arrow,
${t}-submenu-expand-icon
`]:{opacity:0},[`${t}-item-icon, ${n}`]:{margin:0,fontSize:x,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({},ll),{paddingInline:g})}}]},oI=e=>{const{componentCls:t,motionDurationSlow:n,motionDurationMid:r,motionEaseInOut:i,motionEaseOut:o,iconCls:a,iconSize:l,iconMarginInlineEnd:c}=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, ${a}`]:{minWidth:l,fontSize:l,transition:[`font-size ${r} ${o}`,`margin ${n} ${i}`,`color ${n}`].join(","),"+ span":{marginInlineStart:c,opacity:1,transition:[`opacity ${n} ${i}`,`margin ${n}`,`color ${n}`].join(",")}},[`${t}-item-icon`]:Object.assign({},xm()),[`&${t}-item-only-child`]:{[`> ${a}, > ${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"}}}},aI=e=>{const{componentCls:t,motionDurationSlow:n,motionEaseInOut:r,borderRadius:i,menuArrowSize:o,menuArrowOffset:a}=e;return{[`${t}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:e.margin,width:o,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${n} ${r}, opacity ${n}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:e.calc(o).mul(.6).equal(),height:e.calc(o).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(a).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${ae(a)})`}}}}},Nse=e=>{const{antCls:t,componentCls:n,fontSize:r,motionDurationSlow:i,motionDurationMid:o,motionEaseInOut:a,paddingXS:l,padding:c,colorSplit:u,lineWidth:p,zIndexPopup:h,borderRadiusLG:m,subMenuItemBorderRadius:g,menuArrowSize:b,menuArrowOffset:E,lineType:x,groupTitleLineHeight:S,groupTitleFontSize:C}=e;return[{"":{[n]:Object.assign(Object.assign({},sl()),{"&-hidden":{display:"none"}})},[`${n}-submenu-hidden`]:{display:"none"}},{[n]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},zn(e)),sl()),{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(l)} ${ae(c)}`,fontSize:C,lineHeight:S,transition:`all ${i}`},[`&-horizontal ${n}-submenu`]:{transition:[`border-color ${i} ${a}`,`background ${i} ${a}`].join(",")},[`${n}-submenu, ${n}-submenu-inline`]:{transition:[`border-color ${i} ${a}`,`background ${i} ${a}`,`padding ${o} ${a}`].join(",")},[`${n}-submenu ${n}-sub`]:{cursor:"initial",transition:[`background ${i} ${a}`,`padding ${i} ${a}`].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:u,borderStyle:x,borderWidth:0,borderTopWidth:p,marginBlock:p,padding:0,"&-dashed":{borderStyle:"dashed"}}}),oI(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(c)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:h,borderRadius:m,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:m},oI(e)),aI(e)),{[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:g},[`${n}-submenu-title::after`]:{transition:`transform ${i} ${a}`}})},"\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}}}),aI(e)),{[`&-inline-collapsed ${n}-submenu-arrow,
&-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${ae(E)})`},"&::after":{transform:`rotate(45deg) translateX(${ae(e.calc(E).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(E).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${ae(E)})`}}})},{[`${t}-layout-header`]:{[n]:{lineHeight:"inherit"}}}]},Ase=e=>{var t,n,r;const{colorPrimary:i,colorError:o,colorTextDisabled:a,colorErrorBg:l,colorText:c,colorTextDescription:u,colorBgContainer:p,colorFillAlter:h,colorFillContent:m,lineWidth:g,lineWidthBold:b,controlItemBgActive:E,colorBgTextHover:x,controlHeightLG:S,lineHeight:C,colorBgElevated:_,marginXXS:O,padding:k,fontSize:T,controlHeightSM:I,fontSizeLG:$,colorTextLightSolid:M,colorErrorHover:R}=e,j=(t=e.activeBarWidth)!==null&&t!==void 0?t:0,D=(n=e.activeBarBorderWidth)!==null&&n!==void 0?n:g,L=(r=e.itemMarginInline)!==null&&r!==void 0?r:e.marginXXS,B=new An(M).setA(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:e.zIndexPopupBase+50,radiusItem:e.borderRadiusLG,itemBorderRadius:e.borderRadiusLG,radiusSubMenuItem:e.borderRadiusSM,subMenuItemBorderRadius:e.borderRadiusSM,colorItemText:c,itemColor:c,colorItemTextHover:c,itemHoverColor:c,colorItemTextHoverHorizontal:i,horizontalItemHoverColor:i,colorGroupTitle:u,groupTitleColor:u,colorItemTextSelected:i,itemSelectedColor:i,subMenuItemSelectedColor:i,colorItemTextSelectedHorizontal:i,horizontalItemSelectedColor:i,colorItemBg:p,itemBg:p,colorItemBgHover:x,itemHoverBg:x,colorItemBgActive:m,itemActiveBg:E,colorSubItemBg:h,subMenuItemBg:h,colorItemBgSelected:E,itemSelectedBg:E,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:j,colorActiveBarHeight:b,activeBarHeight:b,colorActiveBarBorderSize:g,activeBarBorderWidth:D,colorItemTextDisabled:a,itemDisabledColor:a,colorDangerItemText:o,dangerItemColor:o,colorDangerItemTextHover:o,dangerItemHoverColor:o,colorDangerItemTextSelected:o,dangerItemSelectedColor:o,colorDangerItemBgActive:l,dangerItemActiveBg:l,colorDangerItemBgSelected:l,dangerItemSelectedBg:l,itemMarginInline:L,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:S,groupTitleLineHeight:C,collapsedWidth:S*2,popupBg:_,itemMarginBlock:O,itemPaddingInline:k,horizontalLineHeight:`${S*1.15}px`,iconSize:T,iconMarginInlineEnd:I-T,collapsedIconSize:$,groupTitleFontSize:T,darkItemDisabledColor:new An(M).setA(.25).toRgbString(),darkItemColor:B,darkDangerItemColor:o,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:M,darkItemSelectedBg:i,darkDangerItemSelectedBg:o,darkItemHoverBg:"transparent",darkGroupTitleColor:B,darkItemHoverColor:M,darkDangerItemHoverColor:R,darkDangerItemSelectedColor:M,darkDangerItemActiveBg:o,itemWidth:j?`calc(100% + ${D}px)`:`calc(100% - ${L*2}px)`}},Rse=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return Fn("Menu",i=>{const{colorBgElevated:o,controlHeightLG:a,fontSize:l,darkItemColor:c,darkDangerItemColor:u,darkItemBg:p,darkSubMenuItemBg:h,darkItemSelectedColor:m,darkItemSelectedBg:g,darkDangerItemSelectedBg:b,darkItemHoverBg:E,darkGroupTitleColor:x,darkItemHoverColor:S,darkItemDisabledColor:C,darkDangerItemHoverColor:_,darkDangerItemSelectedColor:O,darkDangerItemActiveBg:k,popupBg:T,darkPopupBg:I}=i,$=i.calc(l).div(7).mul(5).equal(),M=hn(i,{menuArrowSize:$,menuHorizontalHeight:i.calc(a).mul(1.15).equal(),menuArrowOffset:i.calc($).mul(.25).equal(),menuSubMenuBg:o,calc:i.calc,popupBg:T}),R=hn(M,{itemColor:c,itemHoverColor:S,groupTitleColor:x,itemSelectedColor:m,itemBg:p,popupBg:I,subMenuItemBg:h,itemActiveBg:"transparent",itemSelectedBg:g,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:E,itemDisabledColor:C,dangerItemColor:u,dangerItemHoverColor:_,dangerItemSelectedColor:O,dangerItemActiveBg:k,dangerItemSelectedBg:b,menuSubMenuBg:h,horizontalItemSelectedColor:m,horizontalItemSelectedBg:g});return[Nse(M),Ise(M),$se(M),rI(M,"light"),rI(R,"dark"),kse(M),Fb(M),wc(M,"slide-up"),wc(M,"slide-down"),km(M,"zoom-big")]},Ase,{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)},dB=e=>{var t;const{popupClassName:n,icon:r,title:i,theme:o}=e,a=d.useContext(gy),{prefixCls:l,inlineCollapsed:c,theme:u}=a,p=f1();let h;if(!r)h=c&&!p.length&&i&&typeof i=="string"?d.createElement("div",{className:`${l}-inline-collapsed-noicon`},i.charAt(0)):d.createElement("span",{className:`${l}-title-content`},i);else{const b=d.isValidElement(i)&&i.type==="span";h=d.createElement(d.Fragment,null,vi(r,{className:le(d.isValidElement(r)?(t=r.props)===null||t===void 0?void 0:t.className:"",`${l}-item-icon`)}),b?i:d.createElement("span",{className:`${l}-title-content`},i))}const m=d.useMemo(()=>Object.assign(Object.assign({},a),{firstLevel:!1}),[a]),[g]=_m("Menu");return d.createElement(gy.Provider,{value:m},d.createElement(e2,Object.assign({},ir(e,["icon"]),{title:h,popupClassName:le(l,n,`${l}-${o||u}`),popupStyle:Object.assign({zIndex:g},e.popupStyle)})))};var Mse=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 z4(e){return e===null||e===!1}const Pse={item:cB,submenu:dB,divider:sB},Lse=d.forwardRef((e,t)=>{var n;const r=d.useContext(vy),i=r||{},{getPrefixCls:o,getPopupContainer:a,direction:l,menu:c}=d.useContext(At),u=o(),{prefixCls:p,className:h,style:m,theme:g="light",expandIcon:b,_internalDisableMenuItemTitleTooltip:E,inlineCollapsed:x,siderCollapsed:S,rootClassName:C,mode:_,selectable:O,onClick:k,overflowedIndicatorPopupClassName:T}=e,I=Mse(e,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),$=ir(I,["collapsedWidth"]);(n=i.validator)===null||n===void 0||n.call(i,{mode:_});const M=Kn(function(){var Y;k==null||k.apply(void 0,arguments),(Y=i.onClick)===null||Y===void 0||Y.call(i)}),R=i.mode||_,j=O??i.selectable,D=x??S,L={horizontal:{motionName:`${u}-slide-up`},inline:Xh(u),other:{motionName:`${u}-zoom-big`}},B=o("menu",p||i.prefixCls),H=Gr(B),[W,z,V]=Rse(B,H,!r),X=le(`${B}-${g}`,c==null?void 0:c.className,h),A=d.useMemo(()=>{var Y,U;if(typeof b=="function"||z4(b))return b||null;if(typeof i.expandIcon=="function"||z4(i.expandIcon))return i.expandIcon||null;if(typeof(c==null?void 0:c.expandIcon)=="function"||z4(c==null?void 0:c.expandIcon))return(c==null?void 0:c.expandIcon)||null;const Q=(Y=b??(i==null?void 0:i.expandIcon))!==null&&Y!==void 0?Y:c==null?void 0:c.expandIcon;return vi(Q,{className:le(`${B}-submenu-expand-icon`,d.isValidElement(Q)?(U=Q.props)===null||U===void 0?void 0:U.className:void 0)})},[b,i==null?void 0:i.expandIcon,c==null?void 0:c.expandIcon,B]),P=d.useMemo(()=>({prefixCls:B,inlineCollapsed:D||!1,direction:l,firstLevel:!0,theme:g,mode:R,disableMenuItemTitleTooltip:E}),[B,D,l,E,g]);return W(d.createElement(vy.Provider,{value:null},d.createElement(gy.Provider,{value:P},d.createElement(p1,Object.assign({getPopupContainer:a,overflowedIndicator:d.createElement(s8,null),overflowedIndicatorPopupClassName:le(B,`${B}-${g}`,T),mode:R,selectable:j,onClick:M},$,{inlineCollapsed:D,style:Object.assign(Object.assign({},c==null?void 0:c.style),m),className:X,prefixCls:B,direction:l,defaultMotions:L,expandIcon:A,ref:t,rootClassName:le(C,z,i.rootClassName,V,H),_internalComponents:Pse})))))}),Yu=d.forwardRef((e,t)=>{const n=d.useRef(null),r=d.useContext(t2);return d.useImperativeHandle(t,()=>({menu:n.current,focus:i=>{var o;(o=n.current)===null||o===void 0||o.focus(i)}})),d.createElement(Lse,Object.assign({ref:n},e,r))});Yu.Item=cB;Yu.SubMenu=dB;Yu.Divider=sB;Yu.ItemGroup=l8;const Dse=e=>{const{componentCls:t,menuCls:n,colorError:r,colorTextLightSolid:i}=e,o=`${n}-item`;return{[`${t}, ${t}-menu-submenu`]:{[`${n} ${o}`]:{[`&${o}-danger:not(${o}-disabled)`]:{color:r,"&:hover":{color:i,backgroundColor:r}}}}}},Fse=e=>{const{componentCls:t,menuCls:n,zIndexPopup:r,dropdownArrowDistance:i,sizePopupArrow:o,antCls:a,iconCls:l,motionDurationMid:c,paddingBlock:u,fontSize:p,dropdownEdgeChildPadding:h,colorTextDisabled:m,fontSizeIcon:g,controlPaddingHorizontal:b,colorBgElevated:E}=e;return[{[t]:{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:r,display:"block","&::before":{position:"absolute",insetBlock:e.calc(o).div(2).sub(i).equal(),zIndex:-9999,opacity:1e-4,content:'""'},"&-menu-vertical":{maxHeight:"100vh",overflowY:"auto"},[`&-trigger${a}-btn`]:{[`& > ${l}-down, & > ${a}-btn-icon > ${l}-down`]:{fontSize:g}},[`${t}-wrap`]:{position:"relative",[`${a}-btn > ${l}-down`]:{fontSize:g},[`${l}-down::before`]:{transition:`transform ${c}`}},[`${t}-wrap-open`]:{[`${l}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottomLeft,
&${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottomLeft,
&${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottom,
&${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottom,
&${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottomRight,
&${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottomRight`]:{animationName:I3},[`&${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-topLeft,
&${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-topLeft,
&${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-top,
&${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-top,
&${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-topRight,
&${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-topRight`]:{animationName:$3},[`&${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottomLeft,
&${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottom,
&${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottomRight`]:{animationName:k3},[`&${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-topLeft,
&${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-top,
&${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-topRight`]:{animationName:N3}}},e8(e,E,{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({},zn(e)),{[n]:Object.assign(Object.assign({padding:h,listStyleType:"none",backgroundColor:E,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary},Fl(e)),{"&:empty":{padding:0,boxShadow:"none"},[`${n}-item-group-title`]:{padding:`${ae(u)} ${ae(b)}`,color:e.colorTextDescription,transition:`all ${c}`},[`${n}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${n}-item-icon`]:{minWidth:p,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 ${c}`,"&: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(u)} ${ae(b)}`,color:e.colorText,fontWeight:"normal",fontSize:p,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${c}`,borderRadius:e.borderRadiusSM,"&:hover, &-active":{backgroundColor:e.controlItemBgHover}},Fl(e)),{"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:m,cursor:"not-allowed","&:hover":{color:m,backgroundColor:E,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.colorTextDescription,fontSize:g,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:m,backgroundColor:E,cursor:"not-allowed"}},[`${n}-submenu-selected ${t}-menu-submenu-title`]:{color:e.colorPrimary}})})},[wc(e,"slide-up"),wc(e,"slide-down"),cy(e,"move-up"),cy(e,"move-down"),km(e,"zoom-big")]]},Bse=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+50,paddingBlock:(e.controlHeight-e.fontSize*e.lineHeight)/2},Zb({contentRadius:e.borderRadiusLG,limitVerticalRadius:!0})),J3(e)),jse=Fn("Dropdown",e=>{const{marginXXS:t,sizePopupArrow:n,paddingXXS:r,componentCls:i}=e,o=hn(e,{menuCls:`${i}-menu`,dropdownArrowDistance:e.calc(n).div(2).add(t).equal(),dropdownEdgeChildPadding:r});return[Fse(o),Dse(o)]},Bse,{resetStyle:!1}),Pm=e=>{var t;const{menu:n,arrow:r,prefixCls:i,children:o,trigger:a,disabled:l,dropdownRender:c,getPopupContainer:u,overlayClassName:p,rootClassName:h,overlayStyle:m,open:g,onOpenChange:b,visible:E,onVisibleChange:x,mouseEnterDelay:S=.15,mouseLeaveDelay:C=.1,autoAdjustOverflow:_=!0,placement:O="",overlay:k,transitionName:T}=e,{getPopupContainer:I,getPrefixCls:$,direction:M,dropdown:R}=d.useContext(At);Lc();const j=d.useMemo(()=>{const re=$();return T!==void 0?T:O.includes("top")?`${re}-slide-down`:`${re}-slide-up`},[$,O,T]),D=d.useMemo(()=>O?O.includes("Center")?O.slice(0,O.indexOf("Center")):O:M==="rtl"?"bottomRight":"bottomLeft",[O,M]),L=$("dropdown",i),B=Gr(L),[H,W,z]=jse(L,B),[,V]=Fi(),X=d.Children.only(Ale(o)?d.createElement("span",null,o):o),A=vi(X,{className:le(`${L}-trigger`,{[`${L}-rtl`]:M==="rtl"},X.props.className),disabled:(t=X.props.disabled)!==null&&t!==void 0?t:l}),P=l?[]:a,Y=!!(P!=null&&P.includes("contextMenu")),[U,Q]=_r(!1,{value:g??E}),ee=Kn(re=>{b==null||b(re,{source:"trigger"}),x==null||x(re),Q(re)}),se=le(p,h,W,z,B,R==null?void 0:R.className,{[`${L}-rtl`]:M==="rtl"}),ne=LF({arrowPointAtCenter:typeof r=="object"&&r.pointAtCenter,autoAdjustOverflow:_,offset:V.marginXXS,arrowWidth:r?V.sizePopupArrow:0,borderRadius:V.borderRadius}),oe=d.useCallback(()=>{n!=null&&n.selectable&&(n!=null&&n.multiple)||(b==null||b(!1,{source:"menu"}),Q(!1))},[n==null?void 0:n.selectable,n==null?void 0:n.multiple]),pe=()=>{let re;return n!=null&&n.items?re=d.createElement(Yu,Object.assign({},n)):typeof k=="function"?re=k():re=k,c&&(re=c(re)),re=d.Children.only(typeof re=="string"?d.createElement("span",null,re):re),d.createElement(uB,{prefixCls:`${L}-menu`,rootClassName:le(z,B),expandIcon:d.createElement("span",{className:`${L}-menu-submenu-arrow`},d.createElement(Qh,{className:`${L}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:oe,validator:me=>{}},re)},[be,ue]=_m("Dropdown",m==null?void 0:m.zIndex);let de=d.createElement(UF,Object.assign({alignPoint:Y},ir(e,["rootClassName"]),{mouseEnterDelay:S,mouseLeaveDelay:C,visible:U,builtinPlacements:ne,arrow:!!r,overlayClassName:se,prefixCls:L,getPopupContainer:u||I,transitionName:j,trigger:P,overlay:pe,placement:D,onVisibleChange:ee,overlayStyle:Object.assign(Object.assign(Object.assign({},R==null?void 0:R.style),m),{zIndex:be})}),A);return be&&(de=d.createElement(Rb.Provider,{value:ue},de)),H(de)},Hse=fF(Pm,"align",void 0,"dropdown",e=>e),zse=e=>d.createElement(Hse,Object.assign({},e),d.createElement("span",null));Pm._InternalPanelDoNotUseOrYouWillBeFired=zse;const n2=e=>{let{children:t}=e;const{getPrefixCls:n}=d.useContext(At),r=n("breadcrumb");return d.createElement("li",{className:`${r}-separator`,"aria-hidden":"true"},t===""?t:t||"/")};n2.__ANT_BREADCRUMB_SEPARATOR=!0;var Wse=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 Use(e,t){if(e.title===void 0||e.title===null)return null;const n=Object.keys(t).join("|");return typeof e.title=="object"?e.title:String(e.title).replace(new RegExp(`:(${n})`,"g"),(r,i)=>t[i]||r)}function fB(e,t,n,r){if(n==null)return null;const{className:i,onClick:o}=t,a=Wse(t,["className","onClick"]),l=Object.assign(Object.assign({},Oi(a,{data:!0,aria:!0})),{onClick:o});return r!==void 0?d.createElement("a",Object.assign({},l,{className:le(`${e}-link`,i),href:r}),n):d.createElement("span",Object.assign({},l,{className:le(`${e}-link`,i)}),n)}function Kse(e,t){return(r,i,o,a,l)=>{if(t)return t(r,i,o,a);const c=Use(r,i);return fB(e,r,c,l)}}var SE=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 pB=e=>{const{prefixCls:t,separator:n="/",children:r,menu:i,overlay:o,dropdownProps:a,href:l}=e,u=(p=>{if(i||o){const h=Object.assign({},a);if(i){const m=i||{},{items:g}=m,b=SE(m,["items"]);h.menu=Object.assign(Object.assign({},b),{items:g==null?void 0:g.map((E,x)=>{var{key:S,title:C,label:_,path:O}=E,k=SE(E,["key","title","label","path"]);let T=_??C;return O&&(T=d.createElement("a",{href:`${l}${O}`},T)),Object.assign(Object.assign({},k),{key:S??x,label:T})})})}else o&&(h.overlay=o);return d.createElement(Pm,Object.assign({placement:"bottom"},h),d.createElement("span",{className:`${t}-overlay-link`},p,d.createElement(X3,null)))}return p})(r);return u!=null?d.createElement(d.Fragment,null,d.createElement("li",null,u),n&&d.createElement(n2,null,n)):null},hB=e=>{const{prefixCls:t,children:n,href:r}=e,i=SE(e,["prefixCls","children","href"]),{getPrefixCls:o}=d.useContext(At),a=o("breadcrumb",t);return d.createElement(pB,Object.assign({},i,{prefixCls:a}),fB(a,i,n,r))};hB.__ANT_BREADCRUMB_ITEM=!0;const Vse=e=>{const{componentCls:t,iconCls:n,calc:r}=e;return{[t]:Object.assign(Object.assign({},zn(e)),{color:e.itemColor,fontSize:e.fontSize,[n]:{fontSize:e.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:Object.assign({color:e.linkColor,transition:`color ${e.motionDurationMid}`,padding:`0 ${ae(e.paddingXXS)}`,borderRadius:e.borderRadiusSM,height:e.fontHeight,display:"inline-block",marginInline:r(e.marginXXS).mul(-1).equal(),"&:hover":{color:e.linkHoverColor,backgroundColor:e.colorBgTextHover}},Fl(e)),"li:last-child":{color:e.lastItemColor},[`${t}-separator`]:{marginInline:e.separatorMargin,color:e.separatorColor},[`${t}-link`]:{[`
> ${n} + span,
> ${n} + a
`]:{marginInlineStart:e.marginXXS}},[`${t}-overlay-link`]:{borderRadius:e.borderRadiusSM,height:e.fontHeight,display:"inline-block",padding:`0 ${ae(e.paddingXXS)}`,marginInline:r(e.marginXXS).mul(-1).equal(),[`> ${n}`]:{marginInlineStart:e.marginXXS,fontSize:e.fontSizeIcon},"&:hover":{color:e.linkHoverColor,backgroundColor:e.colorBgTextHover,a:{color:e.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${e.componentCls}-rtl`]:{direction:"rtl"}})}},Gse=e=>({itemColor:e.colorTextDescription,lastItemColor:e.colorText,iconFontSize:e.fontSize,linkColor:e.colorTextDescription,linkHoverColor:e.colorText,separatorColor:e.colorTextDescription,separatorMargin:e.marginXS}),qse=Fn("Breadcrumb",e=>{const t=hn(e,{});return Vse(t)},Gse);var lI=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 Xse(e){const{breadcrumbName:t,children:n}=e,r=lI(e,["breadcrumbName","children"]),i=Object.assign({title:t},r);return n&&(i.menu={items:n.map(o=>{var{breadcrumbName:a}=o,l=lI(o,["breadcrumbName"]);return Object.assign(Object.assign({},l),{title:a})})}),i}function Yse(e,t){return d.useMemo(()=>e||(t?t.map(Xse):null),[e,t])}var Qse=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 Zse=(e,t)=>{if(t===void 0)return t;let n=(t||"").replace(/^\//,"");return Object.keys(e).forEach(r=>{n=n.replace(`:${r}`,e[r])}),n},c8=e=>{const{prefixCls:t,separator:n="/",style:r,className:i,rootClassName:o,routes:a,items:l,children:c,itemRender:u,params:p={}}=e,h=Qse(e,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:m,direction:g,breadcrumb:b}=d.useContext(At);let E;const x=m("breadcrumb",t),[S,C,_]=qse(x),O=Yse(l,a),k=Kse(x,u);if(O&&O.length>0){const $=[],M=l||a;E=O.map((R,j)=>{const{path:D,key:L,type:B,menu:H,overlay:W,onClick:z,className:V,separator:X,dropdownProps:A}=R,P=Zse(p,D);P!==void 0&&$.push(P);const Y=L??j;if(B==="separator")return d.createElement(n2,{key:Y},X);const U={},Q=j===O.length-1;H?U.menu=H:W&&(U.overlay=W);let{href:ee}=R;return $.length&&P!==void 0&&(ee=`#/${$.join("/")}`),d.createElement(pB,Object.assign({key:Y},U,Oi(R,{data:!0,aria:!0}),{className:V,dropdownProps:A,href:ee,separator:Q?"":n,onClick:z,prefixCls:x}),k(R,p,M,$,ee))})}else if(c){const $=ii(c).length;E=ii(c).map((M,R)=>{if(!M)return M;const j=R===$-1;return vi(M,{separator:j?"":n,key:R})})}const T=le(x,b==null?void 0:b.className,{[`${x}-rtl`]:g==="rtl"},i,o,C,_),I=Object.assign(Object.assign({},b==null?void 0:b.style),r);return S(d.createElement("nav",Object.assign({className:T,style:I},h),d.createElement("ol",null,E)))};c8.Item=hB;c8.Separator=n2;const mB=d.createContext(null),Jse=mB.Provider,gB=d.createContext(null),ece=gB.Provider;var tce=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],vB=d.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-checkbox":n,i=e.className,o=e.style,a=e.checked,l=e.disabled,c=e.defaultChecked,u=c===void 0?!1:c,p=e.type,h=p===void 0?"checkbox":p,m=e.title,g=e.onChange,b=Yt(e,tce),E=d.useRef(null),x=d.useRef(null),S=_r(u,{value:a}),C=_e(S,2),_=C[0],O=C[1];d.useImperativeHandle(t,function(){return{focus:function($){var M;(M=E.current)===null||M===void 0||M.focus($)},blur:function(){var $;($=E.current)===null||$===void 0||$.blur()},input:E.current,nativeElement:x.current}});var k=le(r,i,J(J({},"".concat(r,"-checked"),_),"".concat(r,"-disabled"),l)),T=function($){l||("checked"in e||O($.target.checked),g==null||g({target:te(te({},e),{},{type:h,checked:$.target.checked}),stopPropagation:function(){$.stopPropagation()},preventDefault:function(){$.preventDefault()},nativeEvent:$.nativeEvent}))};return d.createElement("span",{className:k,title:m,style:o,ref:x},d.createElement("input",Ve({},b,{className:"".concat(r,"-input"),ref:E,onChange:T,disabled:l,checked:!!_,type:h})),d.createElement("span",{className:"".concat(r,"-inner")}))});function yB(e){const t=fe.useRef(null),n=()=>{kn.cancel(t.current),t.current=null};return[()=>{n(),t.current=kn(()=>{t.current=null})},o=>{t.current&&(o.stopPropagation(),n()),e==null||e(o)}]}const nce=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-group`;return{[r]:Object.assign(Object.assign({},zn(e)),{display:"inline-block",fontSize:0,[`&${r}-rtl`]:{direction:"rtl"},[`&${r}-block`]:{display:"flex"},[`${n}-badge ${n}-badge-count`]:{zIndex:1},[`> ${n}-badge:not(:first-child) > ${n}-button-wrapper`]:{borderInlineStart:"none"}})}},rce=e=>{const{componentCls:t,wrapperMarginInlineEnd:n,colorPrimary:r,radioSize:i,motionDurationSlow:o,motionDurationMid:a,motionEaseInOutCirc:l,colorBgContainer:c,colorBorder:u,lineWidth:p,colorBgContainerDisabled:h,colorTextDisabled:m,paddingXS:g,dotColorDisabled:b,lineType:E,radioColor:x,radioBgColor:S,calc:C}=e,_=`${t}-inner`,k=C(i).sub(C(4).mul(2)),T=C(1).mul(i).equal({unit:!0});return{[`${t}-wrapper`]:Object.assign(Object.assign({},zn(e)),{display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:n,cursor:"pointer","&:last-child":{marginInlineEnd:0},[`&${t}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:e.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},"&-block":{flex:1,justifyContent:"center"},[`${t}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${ae(p)} ${E} ${r}`,borderRadius:"50%",visibility:"hidden",opacity:0,content:'""'},[t]:Object.assign(Object.assign({},zn(e)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${t}-wrapper:hover &,
&:hover ${_}`]:{borderColor:r},[`${t}-input:focus-visible + ${_}`]:Object.assign({},Dl(e)),[`${t}:hover::after, ${t}-wrapper:hover &::after`]:{visibility:"visible"},[`${t}-inner`]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:T,height:T,marginBlockStart:C(1).mul(i).div(-2).equal({unit:!0}),marginInlineStart:C(1).mul(i).div(-2).equal({unit:!0}),backgroundColor:x,borderBlockStart:0,borderInlineStart:0,borderRadius:T,transform:"scale(0)",opacity:0,transition:`all ${o} ${l}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:T,height:T,backgroundColor:c,borderColor:u,borderStyle:"solid",borderWidth:p,borderRadius:"50%",transition:`all ${a}`},[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${t}-checked`]:{[_]:{borderColor:r,backgroundColor:S,"&::after":{transform:`scale(${e.calc(e.dotSize).div(i).equal()})`,opacity:1,transition:`all ${o} ${l}`}}},[`${t}-disabled`]:{cursor:"not-allowed",[_]:{backgroundColor:h,borderColor:u,cursor:"not-allowed","&::after":{backgroundColor:b}},[`${t}-input`]:{cursor:"not-allowed"},[`${t}-disabled + span`]:{color:m,cursor:"not-allowed"},[`&${t}-checked`]:{[_]:{"&::after":{transform:`scale(${C(k).div(i).equal()})`}}}},[`span${t} + *`]:{paddingInlineStart:g,paddingInlineEnd:g}})}},ice=e=>{const{buttonColor:t,controlHeight:n,componentCls:r,lineWidth:i,lineType:o,colorBorder:a,motionDurationSlow:l,motionDurationMid:c,buttonPaddingInline:u,fontSize:p,buttonBg:h,fontSizeLG:m,controlHeightLG:g,controlHeightSM:b,paddingXS:E,borderRadius:x,borderRadiusSM:S,borderRadiusLG:C,buttonCheckedBg:_,buttonSolidCheckedColor:O,colorTextDisabled:k,colorBgContainerDisabled:T,buttonCheckedBgDisabled:I,buttonCheckedColorDisabled:$,colorPrimary:M,colorPrimaryHover:R,colorPrimaryActive:j,buttonSolidCheckedBg:D,buttonSolidCheckedHoverBg:L,buttonSolidCheckedActiveBg:B,calc:H}=e;return{[`${r}-button-wrapper`]:{position:"relative",display:"inline-block",height:n,margin:0,paddingInline:u,paddingBlock:0,color:t,fontSize:p,lineHeight:ae(H(n).sub(H(i).mul(2)).equal()),background:h,border:`${ae(i)} ${o} ${a}`,borderBlockStartWidth:H(i).add(.02).equal(),borderInlineStartWidth:0,borderInlineEndWidth:i,cursor:"pointer",transition:[`color ${c}`,`background ${c}`,`box-shadow ${c}`].join(","),a:{color:t},[`> ${r}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:first-child)":{"&::before":{position:"absolute",insetBlockStart:H(i).mul(-1).equal(),insetInlineStart:H(i).mul(-1).equal(),display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:i,paddingInline:0,backgroundColor:a,transition:`background-color ${l}`,content:'""'}},"&:first-child":{borderInlineStart:`${ae(i)} ${o} ${a}`,borderStartStartRadius:x,borderEndStartRadius:x},"&:last-child":{borderStartEndRadius:x,borderEndEndRadius:x},"&:first-child:last-child":{borderRadius:x},[`${r}-group-large &`]:{height:g,fontSize:m,lineHeight:ae(H(g).sub(H(i).mul(2)).equal()),"&:first-child":{borderStartStartRadius:C,borderEndStartRadius:C},"&:last-child":{borderStartEndRadius:C,borderEndEndRadius:C}},[`${r}-group-small &`]:{height:b,paddingInline:H(E).sub(i).equal(),paddingBlock:0,lineHeight:ae(H(b).sub(H(i).mul(2)).equal()),"&:first-child":{borderStartStartRadius:S,borderEndStartRadius:S},"&:last-child":{borderStartEndRadius:S,borderEndEndRadius:S}},"&:hover":{position:"relative",color:M},"&:has(:focus-visible)":Object.assign({},Dl(e)),[`${r}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${r}-button-wrapper-disabled)`]:{zIndex:1,color:M,background:_,borderColor:M,"&::before":{backgroundColor:M},"&:first-child":{borderColor:M},"&:hover":{color:R,borderColor:R,"&::before":{backgroundColor:R}},"&:active":{color:j,borderColor:j,"&::before":{backgroundColor:j}}},[`${r}-group-solid &-checked:not(${r}-button-wrapper-disabled)`]:{color:O,background:D,borderColor:D,"&:hover":{color:O,background:L,borderColor:L},"&:active":{color:O,background:B,borderColor:B}},"&-disabled":{color:k,backgroundColor:T,borderColor:a,cursor:"not-allowed","&:first-child, &:hover":{color:k,backgroundColor:T,borderColor:a}},[`&-disabled${r}-button-wrapper-checked`]:{color:$,backgroundColor:I,borderColor:a,boxShadow:"none"},"&-block":{flex:1,textAlign:"center"}}}},oce=e=>{const{wireframe:t,padding:n,marginXS:r,lineWidth:i,fontSizeLG:o,colorText:a,colorBgContainer:l,colorTextDisabled:c,controlItemBgActiveDisabled:u,colorTextLightSolid:p,colorPrimary:h,colorPrimaryHover:m,colorPrimaryActive:g,colorWhite:b}=e,E=4,x=o,S=t?x-E*2:x-(E+i)*2;return{radioSize:x,dotSize:S,dotColorDisabled:c,buttonSolidCheckedColor:p,buttonSolidCheckedBg:h,buttonSolidCheckedHoverBg:m,buttonSolidCheckedActiveBg:g,buttonBg:l,buttonCheckedBg:l,buttonColor:a,buttonCheckedBgDisabled:u,buttonCheckedColorDisabled:c,buttonPaddingInline:n-i,wrapperMarginInlineEnd:r,radioColor:t?h:b,radioBgColor:t?l:h}},bB=Fn("Radio",e=>{const{controlOutline:t,controlOutlineWidth:n}=e,r=`0 0 0 ${ae(n)} ${t}`,o=hn(e,{radioFocusShadow:r,radioButtonFocusShadow:r});return[nce(o),rce(o),ice(o)]},oce,{unitless:{radioSize:!0,dotSize:!0}});var ace=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 lce=(e,t)=>{var n,r;const i=d.useContext(mB),o=d.useContext(gB),{getPrefixCls:a,direction:l,radio:c}=d.useContext(At),u=d.useRef(null),p=Zi(t,u),{isFormItemInput:h}=d.useContext(uo),m=W=>{var z,V;(z=e.onChange)===null||z===void 0||z.call(e,W),(V=i==null?void 0:i.onChange)===null||V===void 0||V.call(i,W)},{prefixCls:g,className:b,rootClassName:E,children:x,style:S,title:C}=e,_=ace(e,["prefixCls","className","rootClassName","children","style","title"]),O=a("radio",g),k=((i==null?void 0:i.optionType)||o)==="button",T=k?`${O}-button`:O,I=Gr(O),[$,M,R]=bB(O,I),j=Object.assign({},_),D=d.useContext(Ia);i&&(j.name=i.name,j.onChange=m,j.checked=e.value===i.value,j.disabled=(n=j.disabled)!==null&&n!==void 0?n:i.disabled),j.disabled=(r=j.disabled)!==null&&r!==void 0?r:D;const L=le(`${T}-wrapper`,{[`${T}-wrapper-checked`]:j.checked,[`${T}-wrapper-disabled`]:j.disabled,[`${T}-wrapper-rtl`]:l==="rtl",[`${T}-wrapper-in-form-item`]:h,[`${T}-wrapper-block`]:!!(i!=null&&i.block)},c==null?void 0:c.className,b,E,M,R,I),[B,H]=yB(j.onClick);return $(d.createElement(Lb,{component:"Radio",disabled:j.disabled},d.createElement("label",{className:L,style:Object.assign(Object.assign({},c==null?void 0:c.style),S),onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,title:C,onClick:B},d.createElement(vB,Object.assign({},j,{className:le(j.className,{[Pb]:!k}),type:"radio",prefixCls:T,ref:p,onClick:H})),x!==void 0?d.createElement("span",null,x):null)))},yy=d.forwardRef(lce),sce=d.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=d.useContext(At),i=D3(),{prefixCls:o,className:a,rootClassName:l,options:c,buttonStyle:u="outline",disabled:p,children:h,size:m,style:g,id:b,optionType:E,name:x=i,defaultValue:S,value:C,block:_=!1,onChange:O,onMouseEnter:k,onMouseLeave:T,onFocus:I,onBlur:$}=e,[M,R]=_r(S,{value:C}),j=d.useCallback(Y=>{const U=M,Q=Y.target.value;"value"in e||R(Q),Q!==U&&(O==null||O(Y))},[M,R,O]),D=n("radio",o),L=`${D}-group`,B=Gr(D),[H,W,z]=bB(D,B);let V=h;c&&c.length>0&&(V=c.map(Y=>typeof Y=="string"||typeof Y=="number"?d.createElement(yy,{key:Y.toString(),prefixCls:D,disabled:p,value:Y,checked:M===Y},Y):d.createElement(yy,{key:`radio-group-value-options-${Y.value}`,prefixCls:D,disabled:Y.disabled||p,value:Y.value,checked:M===Y.value,title:Y.title,style:Y.style,id:Y.id,required:Y.required},Y.label)));const X=go(m),A=le(L,`${L}-${u}`,{[`${L}-${X}`]:X,[`${L}-rtl`]:r==="rtl",[`${L}-block`]:_},a,l,W,z,B),P=d.useMemo(()=>({onChange:j,value:M,disabled:p,name:x,optionType:E,block:_}),[j,M,p,x,E,_]);return H(d.createElement("div",Object.assign({},Oi(e,{aria:!0,data:!0}),{className:A,style:g,onMouseEnter:k,onMouseLeave:T,onFocus:I,onBlur:$,id:b,ref:t}),d.createElement(Jse,{value:P},V)))}),cce=d.memo(sce);var uce=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 dce=(e,t)=>{const{getPrefixCls:n}=d.useContext(At),{prefixCls:r}=e,i=uce(e,["prefixCls"]),o=n("radio",r);return d.createElement(ece,{value:"button"},d.createElement(yy,Object.assign({prefixCls:o},i,{type:"radio",ref:t})))},fce=d.forwardRef(dce),Ai=yy;Ai.Button=fce;Ai.Group=cce;Ai.__ANT_RADIO=!0;function u8(e){return hn(e,{inputAffixPadding:e.paddingXXS})}const d8=e=>{const{controlHeight:t,fontSize:n,lineHeight:r,lineWidth:i,controlHeightSM:o,controlHeightLG:a,fontSizeLG:l,lineHeightLG:c,paddingSM:u,controlPaddingHorizontalSM:p,controlPaddingHorizontal:h,colorFillAlter:m,colorPrimaryHover:g,colorPrimary:b,controlOutlineWidth:E,controlOutline:x,colorErrorOutline:S,colorWarningOutline:C,colorBgContainer:_}=e;return{paddingBlock:Math.max(Math.round((t-n*r)/2*10)/10-i,0),paddingBlockSM:Math.max(Math.round((o-n*r)/2*10)/10-i,0),paddingBlockLG:Math.ceil((a-l*c)/2*10)/10-i,paddingInline:u-i,paddingInlineSM:p-i,paddingInlineLG:h-i,addonBg:m,activeBorderColor:b,hoverBorderColor:g,activeShadow:`0 0 0 ${E}px ${x}`,errorActiveShadow:`0 0 0 ${E}px ${S}`,warningActiveShadow:`0 0 0 ${E}px ${C}`,hoverBg:_,activeBg:_,inputFontSize:n,inputFontSizeLG:l,inputFontSizeSM:n}},pce=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),r2=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({},pce(hn(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),f8=(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}}),sI=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},f8(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),hce=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},f8(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},r2(e))}),sI(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),sI(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),cI=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),mce=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}}},cI(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),cI(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},r2(e))}})}),gce=(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)}},CB=(e,t)=>({background:t.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:t==null?void 0:t.inputColor},"&:hover":{background:t.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:t.activeBorderColor,backgroundColor:e.activeBg}}),uI=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},CB(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),vce=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},CB(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},r2(e))}),uI(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),uI(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),dI=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),yce=e=>({"&-filled":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary},[`${e.componentCls}-filled:not(:focus):not(:focus-within)`]:{"&:not(:first-child)":{borderInlineStart:`${ae(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"&:not(:last-child)":{borderInlineEnd:`${ae(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}}}},dI(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),dI(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}`}}}})}),bce=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),SB=e=>{const{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:r,paddingInlineLG:i}=e;return{padding:`${ae(t)} ${ae(i)}`,fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:r}},p8=e=>({padding:`${ae(e.paddingBlockSM)} ${ae(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),h8=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}`},bce(e.colorTextPlaceholder)),{"textarea&":{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":Object.assign({},SB(e)),"&-sm":Object.assign({},p8(e)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),Cce=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({},SB(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},p8(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"},sl()),{[`${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},[`
& > ${t}-affix-wrapper,
& > ${t}-number-affix-wrapper,
& > ${n}-picker-range
`]:{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,
& > ${n}-select-auto-complete ${t},
& > ${n}-cascader-picker ${t},
& > ${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,
& > ${n}-select:first-child > ${n}-select-selector,
& > ${n}-select-auto-complete:first-child ${t},
& > ${n}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child,
& > ${n}-select:last-child > ${n}-select-selector,
& > ${n}-cascader-picker:last-child ${t},
& > ${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}}}})}},Sce=e=>{const{componentCls:t,controlHeightSM:n,lineWidth:r,calc:i}=e,a=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({},zn(e)),h8(e)),hce(e)),vce(e)),gce(e)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:n,paddingTop:a,paddingBottom:a}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},Ece=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.colorTextTertiary},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${ae(e.inputAffixPadding)}`}}}},xce=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:i,colorIcon:o,colorIconHover:a,iconCls:l}=e,c=`${t}-affix-wrapper`,u=`${t}-affix-wrapper-disabled`;return{[c]:Object.assign(Object.assign(Object.assign(Object.assign({},h8(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},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:n},"&-suffix":{marginInlineStart:n}}}),Ece(e)),{[`${l}${t}-password-icon`]:{color:o,cursor:"pointer",transition:`all ${i}`,"&:hover":{color:a}}}),[u]:{[`${l}${t}-password-icon`]:{color:o,cursor:"not-allowed","&:hover":{color:o}}}}},wce=e=>{const{componentCls:t,borderRadiusLG:n,borderRadiusSM:r}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},zn(e)),Cce(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}}},mce(e)),yce(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}}})})}},_ce=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-search`;return{[r]:{[t]:{"&:hover, &:focus":{[`+ ${t}-group-addon ${r}-button:not(${n}-btn-primary)`]:{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-primary)`]:{color:e.colorTextDescription,"&:hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${n}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd: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,
> ${t},
${t}-affix-wrapper`]:{"&:hover, &:focus, &:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}},Tce=e=>{const{componentCls:t,paddingLG:n}=e,r=`${t}-textarea`;return{[r]:{position:"relative","&-show-count":{[`> ${t}`]:{height:"100%"},[`${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"}},[`
&-allow-clear > ${t},
&-affix-wrapper${r}-has-feedback ${t}
`]:{paddingInlineEnd:n},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,[`> textarea${t}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent","&: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-sm`]:{[`${t}-suffix`]:{[`${t}-clear-icon`]:{insetInlineEnd:e.paddingInlineSM}}}}}},Oce=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},m8=Fn("Input",e=>{const t=hn(e,u8(e));return[Sce(t),Tce(t),xce(t),wce(t),_ce(t),Oce(t),P3(t)]},d8,{resetFont:!1});var EB={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"},Ice=function(t,n){return d.createElement(bn,Ve({},t,{ref:n,icon:EB}))},kce=d.forwardRef(Ice);const i2=d.createContext(null);var $ce=function(t){var n=t.activeTabOffset,r=t.horizontal,i=t.rtl,o=t.indicator,a=o===void 0?{}:o,l=a.size,c=a.align,u=c===void 0?"center":c,p=d.useState(),h=_e(p,2),m=h[0],g=h[1],b=d.useRef(),E=fe.useCallback(function(S){return typeof l=="function"?l(S):typeof l=="number"?l:S},[l]);function x(){kn.cancel(b.current)}return d.useEffect(function(){var S={};if(n)if(r){S.width=E(n.width);var C=i?"right":"left";u==="start"&&(S[C]=n[C]),u==="center"&&(S[C]=n[C]+n.width/2,S.transform=i?"translateX(50%)":"translateX(-50%)"),u==="end"&&(S[C]=n[C]+n.width,S.transform="translateX(-100%)")}else S.height=E(n.height),u==="start"&&(S.top=n.top),u==="center"&&(S.top=n.top+n.height/2,S.transform="translateY(-50%)"),u==="end"&&(S.top=n.top+n.height,S.transform="translateY(-100%)");return x(),b.current=kn(function(){g(S)}),x},[n,r,i,u,E]),{style:m}},fI={width:0,height:0,left:0,top:0};function Nce(e,t,n){return d.useMemo(function(){for(var r,i=new Map,o=t.get((r=e[0])===null||r===void 0?void 0:r.key)||fI,a=o.left+o.width,l=0;l<e.length;l+=1){var c=e[l].key,u=t.get(c);if(!u){var p;u=t.get((p=e[l-1])===null||p===void 0?void 0:p.key)||fI}var h=i.get(c)||te({},u);h.right=a-h.left-h.width,i.set(c,h)}return i},[e.map(function(r){return r.key}).join("_"),t,n])}function pI(e,t){var n=d.useRef(e),r=d.useState({}),i=_e(r,2),o=i[1];function a(l){var c=typeof l=="function"?l(n.current):l;c!==n.current&&t(c,n.current),n.current=c,o({})}return[n.current,a]}var Ace=.1,hI=.01,cv=20,mI=Math.pow(.995,cv);function Rce(e,t){var n=d.useState(),r=_e(n,2),i=r[0],o=r[1],a=d.useState(0),l=_e(a,2),c=l[0],u=l[1],p=d.useState(0),h=_e(p,2),m=h[0],g=h[1],b=d.useState(),E=_e(b,2),x=E[0],S=E[1],C=d.useRef();function _(M){var R=M.touches[0],j=R.screenX,D=R.screenY;o({x:j,y:D}),window.clearInterval(C.current)}function O(M){if(i){var R=M.touches[0],j=R.screenX,D=R.screenY;o({x:j,y:D});var L=j-i.x,B=D-i.y;t(L,B);var H=Date.now();u(H),g(H-c),S({x:L,y:B})}}function k(){if(i&&(o(null),S(null),x)){var M=x.x/m,R=x.y/m,j=Math.abs(M),D=Math.abs(R);if(Math.max(j,D)<Ace)return;var L=M,B=R;C.current=window.setInterval(function(){if(Math.abs(L)<hI&&Math.abs(B)<hI){window.clearInterval(C.current);return}L*=mI,B*=mI,t(L*cv,B*cv)},cv)}}var T=d.useRef();function I(M){var R=M.deltaX,j=M.deltaY,D=0,L=Math.abs(R),B=Math.abs(j);L===B?D=T.current==="x"?R:j:L>B?(D=R,T.current="x"):(D=j,T.current="y"),t(-D,-D)&&M.preventDefault()}var $=d.useRef(null);$.current={onTouchStart:_,onTouchMove:O,onTouchEnd:k,onWheel:I},d.useEffect(function(){function M(L){$.current.onTouchStart(L)}function R(L){$.current.onTouchMove(L)}function j(L){$.current.onTouchEnd(L)}function D(L){$.current.onWheel(L)}return document.addEventListener("touchmove",R,{passive:!1}),document.addEventListener("touchend",j,{passive:!0}),e.current.addEventListener("touchstart",M,{passive:!0}),e.current.addEventListener("wheel",D,{passive:!1}),function(){document.removeEventListener("touchmove",R),document.removeEventListener("touchend",j)}},[])}function xB(e){var t=d.useState(0),n=_e(t,2),r=n[0],i=n[1],o=d.useRef(0),a=d.useRef();return a.current=e,FS(function(){var l;(l=a.current)===null||l===void 0||l.call(a)},[r]),function(){o.current===r&&(o.current+=1,i(o.current))}}function Mce(e){var t=d.useRef([]),n=d.useState({}),r=_e(n,2),i=r[1],o=d.useRef(typeof e=="function"?e():e),a=xB(function(){var c=o.current;t.current.forEach(function(u){c=u(c)}),t.current=[],o.current=c,i({})});function l(c){t.current.push(c),a()}return[o.current,l]}var gI={width:0,height:0,left:0,top:0,right:0};function Pce(e,t,n,r,i,o,a){var l=a.tabs,c=a.tabPosition,u=a.rtl,p,h,m;return["top","bottom"].includes(c)?(p="width",h=u?"right":"left",m=Math.abs(n)):(p="height",h="top",m=-n),d.useMemo(function(){if(!l.length)return[0,0];for(var g=l.length,b=g,E=0;E<g;E+=1){var x=e.get(l[E].key)||gI;if(Math.floor(x[h]+x[p])>Math.floor(m+t)){b=E-1;break}}for(var S=0,C=g-1;C>=0;C-=1){var _=e.get(l[C].key)||gI;if(_[h]<m){S=C+1;break}}return S>=b?[0,0]:[S,b]},[e,t,r,i,o,m,c,l.map(function(g){return g.key}).join("_"),u])}function vI(e){var t;return e instanceof Map?(t={},e.forEach(function(n,r){t[r]=n})):t=e,JSON.stringify(t)}var Lce="TABS_DQ";function wB(e){return String(e).replace(/"/g,Lce)}function g8(e,t,n,r){return!(!n||r||e===!1||e===void 0&&(t===!1||t===null))}var _B=d.forwardRef(function(e,t){var n=e.prefixCls,r=e.editable,i=e.locale,o=e.style;return!r||r.showAdd===!1?null:d.createElement("button",{ref:t,type:"button",className:"".concat(n,"-nav-add"),style:o,"aria-label":(i==null?void 0:i.addAriaLabel)||"Add tab",onClick:function(l){r.onEdit("add",{event:l})}},r.addIcon||"+")}),yI=d.forwardRef(function(e,t){var n=e.position,r=e.prefixCls,i=e.extra;if(!i)return null;var o,a={};return Nt(i)==="object"&&!d.isValidElement(i)?a=i:a.right=i,n==="right"&&(o=a.right),n==="left"&&(o=a.left),o?d.createElement("div",{className:"".concat(r,"-extra-content"),ref:t},o):null}),Dce=d.forwardRef(function(e,t){var n=e.prefixCls,r=e.id,i=e.tabs,o=e.locale,a=e.mobile,l=e.more,c=l===void 0?{}:l,u=e.style,p=e.className,h=e.editable,m=e.tabBarGutter,g=e.rtl,b=e.removeAriaLabel,E=e.onTabClick,x=e.getPopupContainer,S=e.popupClassName,C=d.useState(!1),_=_e(C,2),O=_[0],k=_[1],T=d.useState(null),I=_e(T,2),$=I[0],M=I[1],R=c.icon,j=R===void 0?"More":R,D="".concat(r,"-more-popup"),L="".concat(n,"-dropdown"),B=$!==null?"".concat(D,"-").concat($):null,H=o==null?void 0:o.dropdownAriaLabel;function W(U,Q){U.preventDefault(),U.stopPropagation(),h.onEdit("remove",{key:Q,event:U})}var z=d.createElement(p1,{onClick:function(Q){var ee=Q.key,se=Q.domEvent;E(ee,se),k(!1)},prefixCls:"".concat(L,"-menu"),id:D,tabIndex:-1,role:"listbox","aria-activedescendant":B,selectedKeys:[$],"aria-label":H!==void 0?H:"expanded dropdown"},i.map(function(U){var Q=U.closable,ee=U.disabled,se=U.closeIcon,ne=U.key,oe=U.label,pe=g8(Q,se,h,ee);return d.createElement(Mm,{key:ne,id:"".concat(D,"-").concat(ne),role:"option","aria-controls":r&&"".concat(r,"-panel-").concat(ne),disabled:ee},d.createElement("span",null,oe),pe&&d.createElement("button",{type:"button","aria-label":b||"remove",tabIndex:0,className:"".concat(L,"-menu-item-remove"),onClick:function(ue){ue.stopPropagation(),W(ue,ne)}},se||h.removeIcon||"×"))}));function V(U){for(var Q=i.filter(function(pe){return!pe.disabled}),ee=Q.findIndex(function(pe){return pe.key===$})||0,se=Q.length,ne=0;ne<se;ne+=1){ee=(ee+U+se)%se;var oe=Q[ee];if(!oe.disabled){M(oe.key);return}}}function X(U){var Q=U.which;if(!O){[lt.DOWN,lt.SPACE,lt.ENTER].includes(Q)&&(k(!0),U.preventDefault());return}switch(Q){case lt.UP:V(-1),U.preventDefault();break;case lt.DOWN:V(1),U.preventDefault();break;case lt.ESC:k(!1);break;case lt.SPACE:case lt.ENTER:$!==null&&E($,U);break}}d.useEffect(function(){var U=document.getElementById(B);U&&U.scrollIntoView&&U.scrollIntoView(!1)},[$]),d.useEffect(function(){O||M(null)},[O]);var A=J({},g?"marginRight":"marginLeft",m);i.length||(A.visibility="hidden",A.order=1);var P=le(J({},"".concat(L,"-rtl"),g)),Y=a?null:d.createElement(UF,Ve({prefixCls:L,overlay:z,visible:i.length?O:!1,onVisibleChange:k,overlayClassName:le(P,S),mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:x},c),d.createElement("button",{type:"button",className:"".concat(n,"-nav-more"),style:A,tabIndex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":D,id:"".concat(r,"-more"),"aria-expanded":O,onKeyDown:X},j));return d.createElement("div",{className:le("".concat(n,"-nav-operations"),p),style:u,ref:t},Y,d.createElement(_B,{prefixCls:n,locale:o,editable:h}))});const Fce=d.memo(Dce,function(e,t){return t.tabMoving});var Bce=function(t){var n=t.prefixCls,r=t.id,i=t.active,o=t.focus,a=t.tab,l=a.key,c=a.label,u=a.disabled,p=a.closeIcon,h=a.icon,m=t.closable,g=t.renderWrapper,b=t.removeAriaLabel,E=t.editable,x=t.onClick,S=t.onFocus,C=t.onBlur,_=t.onKeyDown,O=t.onMouseDown,k=t.onMouseUp,T=t.style,I=t.tabCount,$=t.currentPosition,M="".concat(n,"-tab"),R=g8(m,p,E,u);function j(W){u||x(W)}function D(W){W.preventDefault(),W.stopPropagation(),E.onEdit("remove",{key:l,event:W})}var L=d.useMemo(function(){return h&&typeof c=="string"?d.createElement("span",null,c):c},[c,h]),B=d.useRef(null);d.useEffect(function(){o&&B.current&&B.current.focus()},[o]);var H=d.createElement("div",{key:l,"data-node-key":wB(l),className:le(M,J(J(J(J({},"".concat(M,"-with-remove"),R),"".concat(M,"-active"),i),"".concat(M,"-disabled"),u),"".concat(M,"-focus"),o)),style:T,onClick:j},d.createElement("div",{ref:B,role:"tab","aria-selected":i,id:r&&"".concat(r,"-tab-").concat(l),className:"".concat(M,"-btn"),"aria-controls":r&&"".concat(r,"-panel-").concat(l),"aria-disabled":u,tabIndex:u?null:i?0:-1,onClick:function(z){z.stopPropagation(),j(z)},onKeyDown:_,onMouseDown:O,onMouseUp:k,onFocus:S,onBlur:C},o&&d.createElement("div",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"Tab ".concat($," of ").concat(I)),h&&d.createElement("span",{className:"".concat(M,"-icon")},h),c&&L),R&&d.createElement("button",{type:"button","aria-label":b||"remove",tabIndex:i?0:-1,className:"".concat(M,"-remove"),onClick:function(z){z.stopPropagation(),D(z)}},p||E.removeIcon||"×"));return g?g(H):H},jce=function(t,n){var r=t.offsetWidth,i=t.offsetHeight,o=t.offsetTop,a=t.offsetLeft,l=t.getBoundingClientRect(),c=l.width,u=l.height,p=l.left,h=l.top;return Math.abs(c-r)<1?[c,u,p-n.left,h-n.top]:[r,i,a,o]},Md=function(t){var n=t.current||{},r=n.offsetWidth,i=r===void 0?0:r,o=n.offsetHeight,a=o===void 0?0:o;if(t.current){var l=t.current.getBoundingClientRect(),c=l.width,u=l.height;if(Math.abs(c-i)<1)return[c,u]}return[i,a]},tg=function(t,n){return t[n?0:1]},bI=d.forwardRef(function(e,t){var n=e.className,r=e.style,i=e.id,o=e.animated,a=e.activeKey,l=e.rtl,c=e.extra,u=e.editable,p=e.locale,h=e.tabPosition,m=e.tabBarGutter,g=e.children,b=e.onTabClick,E=e.onTabScroll,x=e.indicator,S=d.useContext(i2),C=S.prefixCls,_=S.tabs,O=d.useRef(null),k=d.useRef(null),T=d.useRef(null),I=d.useRef(null),$=d.useRef(null),M=d.useRef(null),R=d.useRef(null),j=h==="top"||h==="bottom",D=pI(0,function(Dt,xt){j&&E&&E({direction:Dt>xt?"left":"right"})}),L=_e(D,2),B=L[0],H=L[1],W=pI(0,function(Dt,xt){!j&&E&&E({direction:Dt>xt?"top":"bottom"})}),z=_e(W,2),V=z[0],X=z[1],A=d.useState([0,0]),P=_e(A,2),Y=P[0],U=P[1],Q=d.useState([0,0]),ee=_e(Q,2),se=ee[0],ne=ee[1],oe=d.useState([0,0]),pe=_e(oe,2),be=pe[0],ue=pe[1],de=d.useState([0,0]),re=_e(de,2),me=re[0],ge=re[1],Ae=Mce(new Map),De=_e(Ae,2),ze=De[0],et=De[1],Ie=Nce(_,ze,se[0]),Te=tg(Y,j),Ue=tg(se,j),Le=tg(be,j),je=tg(me,j),Ge=Math.floor(Te)<Math.floor(Ue+Le),qe=Ge?Te-je:Te-Le,Ce="".concat(C,"-nav-operations-hidden"),ke=0,We=0;j&&l?(ke=0,We=Math.max(0,Ue-qe)):(ke=Math.min(0,qe-Ue),We=0);function Pe(Dt){return Dt<ke?ke:Dt>We?We:Dt}var Be=d.useRef(null),He=d.useState(),Qe=_e(He,2),ie=Qe[0],xe=Qe[1];function Ne(){xe(Date.now())}function $e(){Be.current&&clearTimeout(Be.current)}Rce(I,function(Dt,xt){function Tt(tn,mn){tn(function(Sn){var Ke=Pe(Sn+mn);return Ke})}return Ge?(j?Tt(H,Dt):Tt(X,xt),$e(),Ne(),!0):!1}),d.useEffect(function(){return $e(),ie&&(Be.current=setTimeout(function(){xe(0)},100)),$e},[ie]);var Ye=Pce(Ie,qe,j?B:V,Ue,Le,je,te(te({},e),{},{tabs:_})),ht=_e(Ye,2),It=ht[0],Jt=ht[1],Vt=Kn(function(){var Dt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:a,xt=Ie.get(Dt)||{width:0,height:0,left:0,right:0,top:0};if(j){var Tt=B;l?xt.right<B?Tt=xt.right:xt.right+xt.width>B+qe&&(Tt=xt.right+xt.width-qe):xt.left<-B?Tt=-xt.left:xt.left+xt.width>-B+qe&&(Tt=-(xt.left+xt.width-qe)),X(0),H(Pe(Tt))}else{var tn=V;xt.top<-V?tn=-xt.top:xt.top+xt.height>-V+qe&&(tn=-(xt.top+xt.height-qe)),H(0),X(Pe(tn))}}),en=d.useState(),rn=_e(en,2),Gt=rn[0],Ft=rn[1],bt=d.useState(!1),gt=_e(bt,2),ft=gt[0],he=gt[1],we=_.filter(function(Dt){return!Dt.disabled}).map(function(Dt){return Dt.key}),ve=function(xt){var Tt=we.indexOf(Gt||a),tn=we.length,mn=(Tt+xt+tn)%tn,Sn=we[mn];Ft(Sn)},Me=function(xt){var Tt=xt.code,tn=l&&j,mn=we[0],Sn=we[we.length-1];switch(Tt){case"ArrowLeft":{j&&ve(tn?1:-1);break}case"ArrowRight":{j&&ve(tn?-1:1);break}case"ArrowUp":{xt.preventDefault(),j||ve(-1);break}case"ArrowDown":{xt.preventDefault(),j||ve(1);break}case"Home":{xt.preventDefault(),Ft(mn);break}case"End":{xt.preventDefault(),Ft(Sn);break}case"Enter":case"Space":{xt.preventDefault(),b(Gt,xt);break}case"Backspace":case"Delete":{var Ke=we.indexOf(Gt),Ze=_.find(function(ln){return ln.key===Gt}),Kt=g8(Ze==null?void 0:Ze.closable,Ze==null?void 0:Ze.closeIcon,u,Ze==null?void 0:Ze.disabled);Kt&&(xt.preventDefault(),xt.stopPropagation(),u.onEdit("remove",{key:Gt,event:xt}),Ke===we.length-1?ve(-1):ve(1));break}}},Je={};j?Je[l?"marginRight":"marginLeft"]=m:Je.marginTop=m;var tt=_.map(function(Dt,xt){var Tt=Dt.key;return d.createElement(Bce,{id:i,prefixCls:C,key:Tt,tab:Dt,style:xt===0?void 0:Je,closable:Dt.closable,editable:u,active:Tt===a,focus:Tt===Gt,renderWrapper:g,removeAriaLabel:p==null?void 0:p.removeAriaLabel,tabCount:we.length,currentPosition:xt+1,onClick:function(mn){b(Tt,mn)},onKeyDown:Me,onFocus:function(){ft||Ft(Tt),Vt(Tt),Ne(),I.current&&(l||(I.current.scrollLeft=0),I.current.scrollTop=0)},onBlur:function(){Ft(void 0)},onMouseDown:function(){he(!0)},onMouseUp:function(){he(!1)}})}),st=function(){return et(function(){var xt,Tt=new Map,tn=(xt=$.current)===null||xt===void 0?void 0:xt.getBoundingClientRect();return _.forEach(function(mn){var Sn,Ke=mn.key,Ze=(Sn=$.current)===null||Sn===void 0?void 0:Sn.querySelector('[data-node-key="'.concat(wB(Ke),'"]'));if(Ze){var Kt=jce(Ze,tn),ln=_e(Kt,4),dn=ln[0],Vn=ln[1],cr=ln[2],Ht=ln[3];Tt.set(Ke,{width:dn,height:Vn,left:cr,top:Ht})}}),Tt})};d.useEffect(function(){st()},[_.map(function(Dt){return Dt.key}).join("_")]);var at=xB(function(){var Dt=Md(O),xt=Md(k),Tt=Md(T);U([Dt[0]-xt[0]-Tt[0],Dt[1]-xt[1]-Tt[1]]);var tn=Md(R);ue(tn);var mn=Md(M);ge(mn);var Sn=Md($);ne([Sn[0]-tn[0],Sn[1]-tn[1]]),st()}),it=_.slice(0,It),nt=_.slice(Jt+1),ct=[].concat(Xe(it),Xe(nt)),mt=Ie.get(a),St=$ce({activeTabOffset:mt,horizontal:j,indicator:x,rtl:l}),Zt=St.style;d.useEffect(function(){Vt()},[a,ke,We,vI(mt),vI(Ie),j]),d.useEffect(function(){at()},[l]);var Lt=!!ct.length,Pt="".concat(C,"-nav-wrap"),vt,dt,ot,Xt;return j?l?(dt=B>0,vt=B!==We):(vt=B<0,dt=B!==ke):(ot=V<0,Xt=V!==ke),d.createElement(qi,{onResize:at},d.createElement("div",{ref:Es(t,O),role:"tablist","aria-orientation":j?"horizontal":"vertical",className:le("".concat(C,"-nav"),n),style:r,onKeyDown:function(){Ne()}},d.createElement(yI,{ref:k,position:"left",extra:c,prefixCls:C}),d.createElement(qi,{onResize:at},d.createElement("div",{className:le(Pt,J(J(J(J({},"".concat(Pt,"-ping-left"),vt),"".concat(Pt,"-ping-right"),dt),"".concat(Pt,"-ping-top"),ot),"".concat(Pt,"-ping-bottom"),Xt)),ref:I},d.createElement(qi,{onResize:at},d.createElement("div",{ref:$,className:"".concat(C,"-nav-list"),style:{transform:"translate(".concat(B,"px, ").concat(V,"px)"),transition:ie?"none":void 0}},tt,d.createElement(_B,{ref:R,prefixCls:C,locale:p,editable:u,style:te(te({},tt.length===0?void 0:Je),{},{visibility:Lt?"hidden":null})}),d.createElement("div",{className:le("".concat(C,"-ink-bar"),J({},"".concat(C,"-ink-bar-animated"),o.inkBar)),style:Zt}))))),d.createElement(Fce,Ve({},e,{removeAriaLabel:p==null?void 0:p.removeAriaLabel,ref:M,prefixCls:C,tabs:ct,className:!Lt&&Ce,tabMoving:!!ie})),d.createElement(yI,{ref:T,position:"right",extra:c,prefixCls:C})))}),TB=d.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,i=e.style,o=e.id,a=e.active,l=e.tabKey,c=e.children;return d.createElement("div",{id:o&&"".concat(o,"-panel-").concat(l),role:"tabpanel",tabIndex:a?0:-1,"aria-labelledby":o&&"".concat(o,"-tab-").concat(l),"aria-hidden":!a,style:i,className:le(n,a&&"".concat(n,"-active"),r),ref:t},c)}),Hce=["renderTabBar"],zce=["label","key"],Wce=function(t){var n=t.renderTabBar,r=Yt(t,Hce),i=d.useContext(i2),o=i.tabs;if(n){var a=te(te({},r),{},{panes:o.map(function(l){var c=l.label,u=l.key,p=Yt(l,zce);return d.createElement(TB,Ve({tab:c,key:u,tabKey:u},p))})});return n(a,bI)}return d.createElement(bI,r)},Uce=["key","forceRender","style","className","destroyInactiveTabPane"],Kce=function(t){var n=t.id,r=t.activeKey,i=t.animated,o=t.tabPosition,a=t.destroyInactiveTabPane,l=d.useContext(i2),c=l.prefixCls,u=l.tabs,p=i.tabPane,h="".concat(c,"-tabpane");return d.createElement("div",{className:le("".concat(c,"-content-holder"))},d.createElement("div",{className:le("".concat(c,"-content"),"".concat(c,"-content-").concat(o),J({},"".concat(c,"-content-animated"),p))},u.map(function(m){var g=m.key,b=m.forceRender,E=m.style,x=m.className,S=m.destroyInactiveTabPane,C=Yt(m,Uce),_=g===r;return d.createElement(la,Ve({key:g,visible:_,forceRender:b,removeOnLeave:!!(a||S),leavedClassName:"".concat(h,"-hidden")},i.tabPaneMotion),function(O,k){var T=O.style,I=O.className;return d.createElement(TB,Ve({},C,{prefixCls:h,id:n,tabKey:g,animated:p,active:_,style:te(te({},E),T),className:le(x,I),ref:k}))})})))};function Vce(){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=te({inkBar:!0},Nt(e)==="object"?e:{}),t.tabPaneMotion&&t.tabPane===void 0&&(t.tabPane=!0),!t.tabPaneMotion&&t.tabPane&&(t.tabPane=!1),t}var Gce=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","more","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicator"],CI=0,qce=d.forwardRef(function(e,t){var n=e.id,r=e.prefixCls,i=r===void 0?"rc-tabs":r,o=e.className,a=e.items,l=e.direction,c=e.activeKey,u=e.defaultActiveKey,p=e.editable,h=e.animated,m=e.tabPosition,g=m===void 0?"top":m,b=e.tabBarGutter,E=e.tabBarStyle,x=e.tabBarExtraContent,S=e.locale,C=e.more,_=e.destroyInactiveTabPane,O=e.renderTabBar,k=e.onChange,T=e.onTabClick,I=e.onTabScroll,$=e.getPopupContainer,M=e.popupClassName,R=e.indicator,j=Yt(e,Gce),D=d.useMemo(function(){return(a||[]).filter(function(me){return me&&Nt(me)==="object"&&"key"in me})},[a]),L=l==="rtl",B=Vce(h),H=d.useState(!1),W=_e(H,2),z=W[0],V=W[1];d.useEffect(function(){V(z3())},[]);var X=_r(function(){var me;return(me=D[0])===null||me===void 0?void 0:me.key},{value:c,defaultValue:u}),A=_e(X,2),P=A[0],Y=A[1],U=d.useState(function(){return D.findIndex(function(me){return me.key===P})}),Q=_e(U,2),ee=Q[0],se=Q[1];d.useEffect(function(){var me=D.findIndex(function(Ae){return Ae.key===P});if(me===-1){var ge;me=Math.max(0,Math.min(ee,D.length-1)),Y((ge=D[me])===null||ge===void 0?void 0:ge.key)}se(me)},[D.map(function(me){return me.key}).join("_"),P,ee]);var ne=_r(null,{value:n}),oe=_e(ne,2),pe=oe[0],be=oe[1];d.useEffect(function(){n||(be("rc-tabs-".concat(CI)),CI+=1)},[]);function ue(me,ge){T==null||T(me,ge);var Ae=me!==P;Y(me),Ae&&(k==null||k(me))}var de={id:pe,activeKey:P,animated:B,tabPosition:g,rtl:L,mobile:z},re=te(te({},de),{},{editable:p,locale:S,more:C,tabBarGutter:b,onTabClick:ue,onTabScroll:I,extra:x,style:E,panes:null,getPopupContainer:$,popupClassName:M,indicator:R});return d.createElement(i2.Provider,{value:{tabs:D,prefixCls:i}},d.createElement("div",Ve({ref:t,id:n,className:le(i,"".concat(i,"-").concat(g),J(J(J({},"".concat(i,"-mobile"),z),"".concat(i,"-editable"),p),"".concat(i,"-rtl"),L),o)},j),d.createElement(Wce,Ve({},re,{renderTabBar:O})),d.createElement(Kce,Ve({destroyInactiveTabPane:_},de,{animated:B}))))});const Xce={motionAppear:!1,motionEnter:!0,motionLeave:!0};function Yce(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{inkBar:!0,tabPane:!1},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({},Xce),{motionName:xc(e,"switch")})),n}var Qce=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 Zce(e){return e.filter(t=>t)}function Jce(e,t){if(e)return e;const n=ii(t).map(r=>{if(d.isValidElement(r)){const{key:i,props:o}=r,a=o||{},{tab:l}=a,c=Qce(a,["tab"]);return Object.assign(Object.assign({key:String(i)},c),{label:l})}return null});return Zce(n)}const eue=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}`}}}}},[wc(e,"slide-up"),wc(e,"slide-down")]]},tue=e=>{const{componentCls:t,tabsCardPadding:n,cardBg:r,cardGutter:i,colorBorderSecondary:o,itemSelectedColor:a}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:r,border:`${ae(e.lineWidth)} ${e.lineType} ${o}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:a,background:e.colorBgContainer},[`${t}-tab-focus`]:Object.assign({},Dl(e,-3)),[`${t}-ink-bar`]:{visibility:"hidden"},[`& ${t}-tab${t}-tab-focus ${t}-tab-btn`]:{outline:"none"}},[`&${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}}}}}}},nue=e=>{const{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:r}=e;return{[`${t}-dropdown`]:Object.assign(Object.assign({},zn(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({},ll),{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.colorTextDescription,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"}}})}})}},rue=e=>{const{componentCls:t,margin:n,colorBorderSecondary:r,horizontalMargin:i,verticalItemPadding:o,verticalItemMargin:a,calc:l}=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},
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,
> 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:l(e.controlHeight).mul(1.25).equal(),[`${t}-tab`]:{padding:o,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:a},[`${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(l(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:l(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}}}}}},iue=e=>{const{componentCls:t,cardPaddingSM:n,cardPaddingLG:r,horizontalItemPaddingSM:i,horizontalItemPaddingLG:o}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:i,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:o,fontSize:e.titleFontSizeLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n}},[`&${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}}}}}},oue=e=>{const{componentCls:t,itemActiveColor:n,itemHoverColor:r,iconCls:i,tabsHorizontalItemMargin:o,horizontalItemPadding:a,itemSelectedColor:l,itemColor:c}=e,u=`${t}-tab`;return{[u]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:a,fontSize:e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:c,"&-btn, &-remove":{"&:focus:not(:focus-visible), &:active":{color:n}},"&-btn":{outline:"none",transition:`all ${e.motionDurationSlow}`,[`${u}-icon:not(:last-child)`]:{marginInlineEnd:e.marginSM}},"&-remove":Object.assign({flex:"none",marginRight:{_skip_check_:!0,value:e.calc(e.marginXXS).mul(-1).equal()},marginLeft:{_skip_check_:!0,value:e.marginXS},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextHeading}},Fl(e)),"&:hover":{color:r},[`&${u}-active ${u}-btn`]:{color:l,textShadow:e.tabsActiveTextShadow},[`&${u}-focus ${u}-btn`]:Object.assign({},Dl(e)),[`&${u}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${u}-disabled ${u}-btn, &${u}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${u}-remove ${i}`]:{margin:0},[`${i}:not(:last-child)`]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${u} + ${u}`]:{margin:{_skip_check_:!0,value:o}}}},aue=e=>{const{componentCls:t,tabsHorizontalItemMarginRTL:n,iconCls:r,cardGutter:i,calc:o}=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(o(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"}}}}},lue=e=>{const{componentCls:t,tabsCardPadding:n,cardHeight:r,cardGutter:i,itemHoverColor:o,itemActiveColor:a,colorBorderSecondary:l}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},zn(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,marginLeft:{_skip_check_:!0,value:i},padding:ae(e.paddingXS),background:"transparent",border:`${ae(e.lineWidth)} ${e.lineType} ${l}`,borderRadius:`${ae(e.borderRadiusLG)} ${ae(e.borderRadiusLG)} 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:o},"&:active, &:focus:not(:focus-visible)":{color:a}},Fl(e,-3))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),oue(e)),{[`${t}-content`]:{position:"relative",width:"100%"},[`${t}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-tabpane`]:Object.assign(Object.assign({},Fl(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"}}}}}},sue=e=>{const t=e.controlHeightLG;return{zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:t,cardPadding:`${(t-Math.round(e.fontSize*e.lineHeight))/2-e.lineWidth}px ${e.padding}px`,cardPaddingSM:`${e.paddingXXS*1.5}px ${e.padding}px`,cardPaddingLG:`${e.paddingXS}px ${e.padding}px ${e.paddingXXS*1.5}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}},cue=Fn("Tabs",e=>{const t=hn(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[iue(t),aue(t),rue(t),nue(t),tue(t),lue(t),eue(t)]},sue),uue=()=>null;var due=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 v8=e=>{var t,n,r,i,o,a,l,c,u,p,h;const{type:m,className:g,rootClassName:b,size:E,onEdit:x,hideAdd:S,centered:C,addIcon:_,removeIcon:O,moreIcon:k,more:T,popupClassName:I,children:$,items:M,animated:R,style:j,indicatorSize:D,indicator:L}=e,B=due(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","removeIcon","moreIcon","more","popupClassName","children","items","animated","style","indicatorSize","indicator"]),{prefixCls:H}=B,{direction:W,tabs:z,getPrefixCls:V,getPopupContainer:X}=d.useContext(At),A=V("tabs",H),P=Gr(A),[Y,U,Q]=cue(A,P);let ee;m==="editable-card"&&(ee={onEdit:(de,re)=>{let{key:me,event:ge}=re;x==null||x(de==="add"?ge:me,de)},removeIcon:(t=O??(z==null?void 0:z.removeIcon))!==null&&t!==void 0?t:d.createElement(qu,null),addIcon:(_??(z==null?void 0:z.addIcon))||d.createElement(kce,null),showAdd:S!==!0});const se=V(),ne=go(E),oe=Jce(M,$),pe=Yce(A,R),be=Object.assign(Object.assign({},z==null?void 0:z.style),j),ue={align:(n=L==null?void 0:L.align)!==null&&n!==void 0?n:(r=z==null?void 0:z.indicator)===null||r===void 0?void 0:r.align,size:(l=(o=(i=L==null?void 0:L.size)!==null&&i!==void 0?i:D)!==null&&o!==void 0?o:(a=z==null?void 0:z.indicator)===null||a===void 0?void 0:a.size)!==null&&l!==void 0?l:z==null?void 0:z.indicatorSize};return Y(d.createElement(qce,Object.assign({direction:W,getPopupContainer:X},B,{items:oe,className:le({[`${A}-${ne}`]:ne,[`${A}-card`]:["card","editable-card"].includes(m),[`${A}-editable-card`]:m==="editable-card",[`${A}-centered`]:C},z==null?void 0:z.className,g,b,U,Q,P),popupClassName:le(I,U,Q,P),style:be,editable:ee,more:Object.assign({icon:(h=(p=(u=(c=z==null?void 0:z.more)===null||c===void 0?void 0:c.icon)!==null&&u!==void 0?u:z==null?void 0:z.moreIcon)!==null&&p!==void 0?p:k)!==null&&h!==void 0?h:d.createElement(s8,null),transitionName:`${se}-slide-up`},T),prefixCls:A,animated:pe,indicator:ue})))};v8.TabPane=uue;var fue=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 OB=e=>{var{prefixCls:t,className:n,hoverable:r=!0}=e,i=fue(e,["prefixCls","className","hoverable"]);const{getPrefixCls:o}=d.useContext(At),a=o("card",t),l=le(`${a}-grid`,n,{[`${a}-grid-hoverable`]:r});return d.createElement("div",Object.assign({},i,{className:l}))},pue=e=>{const{antCls:t,componentCls:n,headerHeight:r,headerPadding:i,tabsMarginBottom:o}=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`},sl()),{"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":Object.assign(Object.assign({display:"inline-block",flex:1},ll),{[`
> ${n}-typography,
> ${n}-typography-edit-content
`]:{insetInlineStart:0,marginTop:0,marginBottom:0}}),[`${t}-tabs-top`]:{clear:"both",marginBottom:o,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,"&-bar":{borderBottom:`${ae(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`}}})},hue=e=>{const{cardPaddingBase:t,colorBorderSecondary:n,cardShadow:r,lineWidth:i}=e;return{width:"33.33%",padding:t,border:0,borderRadius:0,boxShadow:`
${ae(i)} 0 0 0 ${n},
0 ${ae(i)} 0 0 ${n},
${ae(i)} ${ae(i)} 0 0 ${n},
${ae(i)} 0 0 0 ${n} inset,
0 ${ae(i)} 0 0 ${n} inset;
`,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:r}}},mue=e=>{const{componentCls:t,iconCls:n,actionsLiMargin:r,cardActionsIconSize:i,colorBorderSecondary:o,actionsBg:a}=e;return Object.assign(Object.assign({margin:0,padding:0,listStyle:"none",background:a,borderTop:`${ae(e.lineWidth)} ${e.lineType} ${o}`,display:"flex",borderRadius:`0 0 ${ae(e.borderRadiusLG)} ${ae(e.borderRadiusLG)}`},sl()),{"& > 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.colorTextDescription,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} ${o}`}}})},gue=e=>Object.assign(Object.assign({margin:`${ae(e.calc(e.marginXXS).mul(-1).equal())} 0`,display:"flex"},sl()),{"&-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},ll),"&-description":{color:e.colorTextDescription}}),vue=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)}`}}},yue=e=>{const{componentCls:t}=e;return{overflow:"hidden",[`${t}-body`]:{userSelect:"none"}}},bue=e=>{const{componentCls:t,cardShadow:n,cardHeadPadding:r,colorBorderSecondary:i,boxShadowTertiary:o,bodyPadding:a,extraColor:l}=e;return{[t]:Object.assign(Object.assign({},zn(e)),{position:"relative",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${t}-bordered)`]:{boxShadow:o},[`${t}-head`]:pue(e),[`${t}-extra`]:{marginInlineStart:"auto",color:l,fontWeight:"normal",fontSize:e.fontSize},[`${t}-body`]:Object.assign({padding:a,borderRadius:`0 0 ${ae(e.borderRadiusLG)} ${ae(e.borderRadiusLG)}`},sl()),[`${t}-grid`]:hue(e),[`${t}-cover`]:{"> *":{display:"block",width:"100%",borderRadius:`${ae(e.borderRadiusLG)} ${ae(e.borderRadiusLG)} 0 0`}},[`${t}-actions`]:mue(e),[`${t}-meta`]:gue(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`]:vue(e),[`${t}-loading`]:yue(e),[`${t}-rtl`]:{direction:"rtl"}}},Cue=e=>{const{componentCls:t,bodyPaddingSM:n,headerPaddingSM:r,headerHeightSM:i,headerFontSizeSM:o}=e;return{[`${t}-small`]:{[`> ${t}-head`]:{minHeight:i,padding:`0 ${ae(r)}`,fontSize:o,[`> ${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"}}}}},Sue=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}},Eue=Fn("Card",e=>{const t=hn(e,{cardShadow:e.boxShadowCard,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardActionsIconSize:e.fontSize});return[bue(t),Cue(t)]},Sue);var SI=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 xue=e=>{const{actionClasses:t,actions:n=[],actionStyle:r}=e;return d.createElement("ul",{className:t,style:r},n.map((i,o)=>{const a=`action-${o}`;return d.createElement("li",{style:{width:`${100/n.length}%`},key:a},d.createElement("span",null,i))}))},wue=d.forwardRef((e,t)=>{const{prefixCls:n,className:r,rootClassName:i,style:o,extra:a,headStyle:l={},bodyStyle:c={},title:u,loading:p,bordered:h=!0,size:m,type:g,cover:b,actions:E,tabList:x,children:S,activeTabKey:C,defaultActiveTabKey:_,tabBarExtraContent:O,hoverable:k,tabProps:T={},classNames:I,styles:$}=e,M=SI(e,["prefixCls","className","rootClassName","style","extra","headStyle","bodyStyle","title","loading","bordered","size","type","cover","actions","tabList","children","activeTabKey","defaultActiveTabKey","tabBarExtraContent","hoverable","tabProps","classNames","styles"]),{getPrefixCls:R,direction:j,card:D}=d.useContext(At),L=ze=>{var et;(et=e.onTabChange)===null||et===void 0||et.call(e,ze)},B=ze=>{var et;return le((et=D==null?void 0:D.classNames)===null||et===void 0?void 0:et[ze],I==null?void 0:I[ze])},H=ze=>{var et;return Object.assign(Object.assign({},(et=D==null?void 0:D.styles)===null||et===void 0?void 0:et[ze]),$==null?void 0:$[ze])},W=d.useMemo(()=>{let ze=!1;return d.Children.forEach(S,et=>{(et==null?void 0:et.type)===OB&&(ze=!0)}),ze},[S]),z=R("card",n),[V,X,A]=Eue(z),P=d.createElement(Xu,{loading:!0,active:!0,paragraph:{rows:4},title:!1},S),Y=C!==void 0,U=Object.assign(Object.assign({},T),{[Y?"activeKey":"defaultActiveKey"]:Y?C:_,tabBarExtraContent:O});let Q;const ee=go(m),se=!ee||ee==="default"?"large":ee,ne=x?d.createElement(v8,Object.assign({size:se},U,{className:`${z}-head-tabs`,onChange:L,items:x.map(ze=>{var{tab:et}=ze,Ie=SI(ze,["tab"]);return Object.assign({label:et},Ie)})})):null;if(u||a||ne){const ze=le(`${z}-head`,B("header")),et=le(`${z}-head-title`,B("title")),Ie=le(`${z}-extra`,B("extra")),Te=Object.assign(Object.assign({},l),H("header"));Q=d.createElement("div",{className:ze,style:Te},d.createElement("div",{className:`${z}-head-wrapper`},u&&d.createElement("div",{className:et,style:H("title")},u),a&&d.createElement("div",{className:Ie,style:H("extra")},a)),ne)}const oe=le(`${z}-cover`,B("cover")),pe=b?d.createElement("div",{className:oe,style:H("cover")},b):null,be=le(`${z}-body`,B("body")),ue=Object.assign(Object.assign({},c),H("body")),de=d.createElement("div",{className:be,style:ue},p?P:S),re=le(`${z}-actions`,B("actions")),me=E!=null&&E.length?d.createElement(xue,{actionClasses:re,actionStyle:H("actions"),actions:E}):null,ge=ir(M,["onTabChange"]),Ae=le(z,D==null?void 0:D.className,{[`${z}-loading`]:p,[`${z}-bordered`]:h,[`${z}-hoverable`]:k,[`${z}-contain-grid`]:W,[`${z}-contain-tabs`]:x==null?void 0:x.length,[`${z}-${ee}`]:ee,[`${z}-type-${g}`]:!!g,[`${z}-rtl`]:j==="rtl"},r,i,X,A),De=Object.assign(Object.assign({},D==null?void 0:D.style),o);return V(d.createElement("div",Object.assign({ref:t},ge,{className:Ae,style:De}),Q,pe,de,me))});var _ue=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 Tue=e=>{const{prefixCls:t,className:n,avatar:r,title:i,description:o}=e,a=_ue(e,["prefixCls","className","avatar","title","description"]),{getPrefixCls:l}=d.useContext(At),c=l("card",t),u=le(`${c}-meta`,n),p=r?d.createElement("div",{className:`${c}-meta-avatar`},r):null,h=i?d.createElement("div",{className:`${c}-meta-title`},i):null,m=o?d.createElement("div",{className:`${c}-meta-description`},o):null,g=h||m?d.createElement("div",{className:`${c}-meta-detail`},h,m):null;return d.createElement("div",Object.assign({},a,{className:u}),p,g)},h1=wue;h1.Grid=OB;h1.Meta=Tue;function Oue(e,t,n){var r=n||{},i=r.noTrailing,o=i===void 0?!1:i,a=r.noLeading,l=a===void 0?!1:a,c=r.debounceMode,u=c===void 0?void 0:c,p,h=!1,m=0;function g(){p&&clearTimeout(p)}function b(x){var S=x||{},C=S.upcomingOnly,_=C===void 0?!1:C;g(),h=!_}function E(){for(var x=arguments.length,S=new Array(x),C=0;C<x;C++)S[C]=arguments[C];var _=this,O=Date.now()-m;if(h)return;function k(){m=Date.now(),t.apply(_,S)}function T(){p=void 0}!l&&u&&!p&&k(),g(),u===void 0&&O>e?l?(m=Date.now(),o||(p=setTimeout(u?T:k,e))):k():o!==!0&&(p=setTimeout(u?T:k,u===void 0?e-O:e))}return E.cancel=b,E}function Iue(e,t,n){var r={},i=r.atBegin,o=i===void 0?!1:i;return Oue(e,t,{debounceMode:o!==!1})}function To(e,t){return e[t]}var kue=["children"];function IB(e,t){return"".concat(e,"-").concat(t)}function $ue(e){return e&&e.type&&e.type.isTreeNode}function Lm(e,t){return e??t}function Wf(e){var t=e||{},n=t.title,r=t._title,i=t.key,o=t.children,a=n||"title";return{title:a,_title:r||[a],key:i||"key",children:o||"children"}}function kB(e){function t(n){var r=ii(n);return r.map(function(i){if(!$ue(i))return br(!i,"Tree/TreeNode can only accept TreeNode as children."),null;var o=i.key,a=i.props,l=a.children,c=Yt(a,kue),u=te({key:o},c),p=t(l);return p.length&&(u.children=p),u}).filter(function(i){return i})}return t(e)}function W4(e,t,n){var r=Wf(n),i=r._title,o=r.key,a=r.children,l=new Set(t===!0?[]:t),c=[];function u(p){var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return p.map(function(m,g){for(var b=IB(h?h.pos:"0",g),E=Lm(m[o],b),x,S=0;S<i.length;S+=1){var C=i[S];if(m[C]!==void 0){x=m[C];break}}var _=Object.assign(ir(m,[].concat(Xe(i),[o,a])),{title:x,key:E,parent:h,pos:b,children:null,data:m,isStart:[].concat(Xe(h?h.isStart:[]),[g===0]),isEnd:[].concat(Xe(h?h.isEnd:[]),[g===p.length-1])});return c.push(_),t===!0||l.has(E)?_.children=u(m[a]||[],_):_.children=[],_})}return u(e),c}function Nue(e,t,n){var r={};Nt(n)==="object"?r=n:r={externalGetKey:n},r=r||{};var i=r,o=i.childrenPropName,a=i.externalGetKey,l=i.fieldNames,c=Wf(l),u=c.key,p=c.children,h=o||p,m;a?typeof a=="string"?m=function(E){return E[a]}:typeof a=="function"&&(m=function(E){return a(E)}):m=function(E,x){return Lm(E[u],x)};function g(b,E,x,S){var C=b?b[h]:e,_=b?IB(x.pos,E):"0",O=b?[].concat(Xe(S),[b]):[];if(b){var k=m(b,_),T={node:b,index:E,pos:_,key:k,parentPos:x.node?x.pos:null,level:x.level+1,nodes:O};t(T)}C&&C.forEach(function(I,$){g(I,$,{node:b,pos:_,level:x?x.level+1:-1},O)})}g(null)}function y8(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.initWrapper,r=t.processEntity,i=t.onProcessFinished,o=t.externalGetKey,a=t.childrenPropName,l=t.fieldNames,c=arguments.length>2?arguments[2]:void 0,u=o||c,p={},h={},m={posEntities:p,keyEntities:h};return n&&(m=n(m)||m),Nue(e,function(g){var b=g.node,E=g.index,x=g.pos,S=g.key,C=g.parentPos,_=g.level,O=g.nodes,k={node:b,nodes:O,index:E,key:S,pos:x,level:_},T=Lm(S,x);p[x]=k,h[T]=k,k.parent=p[C],k.parent&&(k.parent.children=k.parent.children||[],k.parent.children.push(k)),r&&r(k,m)},{externalGetKey:u,childrenPropName:a,fieldNames:l}),i&&i(m),m}function rh(e,t){var n=t.expandedKeys,r=t.selectedKeys,i=t.loadedKeys,o=t.loadingKeys,a=t.checkedKeys,l=t.halfCheckedKeys,c=t.dragOverNodeKey,u=t.dropPosition,p=t.keyEntities,h=To(p,e),m={eventKey:e,expanded:n.indexOf(e)!==-1,selected:r.indexOf(e)!==-1,loaded:i.indexOf(e)!==-1,loading:o.indexOf(e)!==-1,checked:a.indexOf(e)!==-1,halfChecked:l.indexOf(e)!==-1,pos:String(h?h.pos:""),dragOver:c===e&&u===0,dragOverGapTop:c===e&&u===-1,dragOverGapBottom:c===e&&u===1};return m}function Qr(e){var t=e.data,n=e.expanded,r=e.selected,i=e.checked,o=e.loaded,a=e.loading,l=e.halfChecked,c=e.dragOver,u=e.dragOverGapTop,p=e.dragOverGapBottom,h=e.pos,m=e.active,g=e.eventKey,b=te(te({},t),{},{expanded:n,selected:r,checked:i,loaded:o,loading:a,halfChecked:l,dragOver:c,dragOverGapTop:u,dragOverGapBottom:p,pos:h,active:m,key:g});return"props"in b||Object.defineProperty(b,"props",{get:function(){return br(!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 $B(e,t){var n=new Set;return e.forEach(function(r){t.has(r)||n.add(r)}),n}function Aue(e){var t=e||{},n=t.disabled,r=t.disableCheckbox,i=t.checkable;return!!(n||r)||i===!1}function Rue(e,t,n,r){for(var i=new Set(e),o=new Set,a=0;a<=n;a+=1){var l=t.get(a)||new Set;l.forEach(function(h){var m=h.key,g=h.node,b=h.children,E=b===void 0?[]:b;i.has(m)&&!r(g)&&E.filter(function(x){return!r(x.node)}).forEach(function(x){i.add(x.key)})})}for(var c=new Set,u=n;u>=0;u-=1){var p=t.get(u)||new Set;p.forEach(function(h){var m=h.parent,g=h.node;if(!(r(g)||!h.parent||c.has(h.parent.key))){if(r(h.parent.node)){c.add(m.key);return}var b=!0,E=!1;(m.children||[]).filter(function(x){return!r(x.node)}).forEach(function(x){var S=x.key,C=i.has(S);b&&!C&&(b=!1),!E&&(C||o.has(S))&&(E=!0)}),b&&i.add(m.key),E&&o.add(m.key),c.add(m.key)}})}return{checkedKeys:Array.from(i),halfCheckedKeys:Array.from($B(o,i))}}function Mue(e,t,n,r,i){for(var o=new Set(e),a=new Set(t),l=0;l<=r;l+=1){var c=n.get(l)||new Set;c.forEach(function(m){var g=m.key,b=m.node,E=m.children,x=E===void 0?[]:E;!o.has(g)&&!a.has(g)&&!i(b)&&x.filter(function(S){return!i(S.node)}).forEach(function(S){o.delete(S.key)})})}a=new Set;for(var u=new Set,p=r;p>=0;p-=1){var h=n.get(p)||new Set;h.forEach(function(m){var g=m.parent,b=m.node;if(!(i(b)||!m.parent||u.has(m.parent.key))){if(i(m.parent.node)){u.add(g.key);return}var E=!0,x=!1;(g.children||[]).filter(function(S){return!i(S.node)}).forEach(function(S){var C=S.key,_=o.has(C);E&&!_&&(E=!1),!x&&(_||a.has(C))&&(x=!0)}),E||o.delete(g.key),x&&a.add(g.key),u.add(g.key)}})}return{checkedKeys:Array.from(o),halfCheckedKeys:Array.from($B(a,o))}}function _f(e,t,n,r){var i=[],o;r?o=r:o=Aue;var a=new Set(e.filter(function(p){var h=!!To(n,p);return h||i.push(p),h})),l=new Map,c=0;Object.keys(n).forEach(function(p){var h=n[p],m=h.level,g=l.get(m);g||(g=new Set,l.set(m,g)),g.add(h),c=Math.max(c,m)}),br(!i.length,"Tree missing follow keys: ".concat(i.slice(0,100).map(function(p){return"'".concat(p,"'")}).join(", ")));var u;return t===!0?u=Rue(a,l,c,o):u=Mue(a,t.halfCheckedKeys,l,c,o),u}const Pue=e=>{const{checkboxCls:t}=e,n=`${t}-wrapper`;return[{[`${t}-group`]:Object.assign(Object.assign({},zn(e)),{display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}}),[n]:Object.assign(Object.assign({},zn(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({},zn(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`]:Object.assign({},Dl(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}})},{[`
${n}:not(${n}-disabled),
${t}:not(${t}-disabled)
`]:{[`&: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}`}}},[`
${n}-checked:not(${n}-disabled),
${t}-checked:not(${t}-disabled)
`]:{[`&:hover ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"}}},{[t]:{"&-indeterminate":{[`${t}-inner`]:{backgroundColor:`${e.colorBgContainer} !important`,borderColor:`${e.colorBorder} !important`,"&: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} !important`,borderColor:`${e.colorPrimary} !important`}}}},{[`${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 NB(e,t){const n=hn(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return[Pue(n)]}const AB=Fn("Checkbox",(e,t)=>{let{prefixCls:n}=t;return[NB(n,e)]}),RB=fe.createContext(null);var Lue=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 Due=(e,t)=>{var n;const{prefixCls:r,className:i,rootClassName:o,children:a,indeterminate:l=!1,style:c,onMouseEnter:u,onMouseLeave:p,skipGroup:h=!1,disabled:m}=e,g=Lue(e,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:b,direction:E,checkbox:x}=d.useContext(At),S=d.useContext(RB),{isFormItemInput:C}=d.useContext(uo),_=d.useContext(Ia),O=(n=(S==null?void 0:S.disabled)||m)!==null&&n!==void 0?n:_,k=d.useRef(g.value),T=d.useRef(null),I=Zi(t,T);d.useEffect(()=>{S==null||S.registerValue(g.value)},[]),d.useEffect(()=>{if(!h)return g.value!==k.current&&(S==null||S.cancelValue(k.current),S==null||S.registerValue(g.value),k.current=g.value),()=>S==null?void 0:S.cancelValue(g.value)},[g.value]),d.useEffect(()=>{var V;!((V=T.current)===null||V===void 0)&&V.input&&(T.current.input.indeterminate=l)},[l]);const $=b("checkbox",r),M=Gr($),[R,j,D]=AB($,M),L=Object.assign({},g);S&&!h&&(L.onChange=function(){g.onChange&&g.onChange.apply(g,arguments),S.toggleOption&&S.toggleOption({label:a,value:g.value})},L.name=S.name,L.checked=S.value.includes(g.value));const B=le(`${$}-wrapper`,{[`${$}-rtl`]:E==="rtl",[`${$}-wrapper-checked`]:L.checked,[`${$}-wrapper-disabled`]:O,[`${$}-wrapper-in-form-item`]:C},x==null?void 0:x.className,i,o,D,M,j),H=le({[`${$}-indeterminate`]:l},Pb,j),[W,z]=yB(L.onClick);return R(d.createElement(Lb,{component:"Checkbox",disabled:O},d.createElement("label",{className:B,style:Object.assign(Object.assign({},x==null?void 0:x.style),c),onMouseEnter:u,onMouseLeave:p,onClick:W},d.createElement(vB,Object.assign({},L,{onClick:z,prefixCls:$,className:H,disabled:O,ref:I})),a!==void 0&&d.createElement("span",null,a))))},MB=d.forwardRef(Due);var Fue=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 Bue=d.forwardRef((e,t)=>{const{defaultValue:n,children:r,options:i=[],prefixCls:o,className:a,rootClassName:l,style:c,onChange:u}=e,p=Fue(e,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:h,direction:m}=d.useContext(At),[g,b]=d.useState(p.value||n||[]),[E,x]=d.useState([]);d.useEffect(()=>{"value"in p&&b(p.value||[])},[p.value]);const S=d.useMemo(()=>i.map(H=>typeof H=="string"||typeof H=="number"?{label:H,value:H}:H),[i]),C=H=>{x(W=>W.filter(z=>z!==H))},_=H=>{x(W=>[].concat(Xe(W),[H]))},O=H=>{const W=g.indexOf(H.value),z=Xe(g);W===-1?z.push(H.value):z.splice(W,1),"value"in p||b(z),u==null||u(z.filter(V=>E.includes(V)).sort((V,X)=>{const A=S.findIndex(Y=>Y.value===V),P=S.findIndex(Y=>Y.value===X);return A-P}))},k=h("checkbox",o),T=`${k}-group`,I=Gr(k),[$,M,R]=AB(k,I),j=ir(p,["value","disabled"]),D=i.length?S.map(H=>d.createElement(MB,{prefixCls:k,key:H.value.toString(),disabled:"disabled"in H?H.disabled:p.disabled,value:H.value,checked:g.includes(H.value),onChange:H.onChange,className:`${T}-item`,style:H.style,title:H.title,id:H.id,required:H.required},H.label)):r,L={toggleOption:O,value:g,disabled:p.disabled,name:p.name,registerValue:_,cancelValue:C},B=le(T,{[`${T}-rtl`]:m==="rtl"},a,l,R,I,M);return $(d.createElement("div",Object.assign({className:B,style:c},j,{ref:t}),d.createElement(RB.Provider,{value:L},D)))}),Uf=MB;Uf.Group=Bue;Uf.__ANT_CHECKBOX=!0;const PB=d.createContext({});var jue=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 EI(e){return typeof e=="number"?`${e} ${e} auto`:/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?`0 0 ${e}`:e}const Hue=["xs","sm","md","lg","xl","xxl"],b8=d.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=d.useContext(At),{gutter:i,wrap:o}=d.useContext(PB),{prefixCls:a,span:l,order:c,offset:u,push:p,pull:h,className:m,children:g,flex:b,style:E}=e,x=jue(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),S=n("col",a),[C,_,O]=yie(S),k={};let T={};Hue.forEach(M=>{let R={};const j=e[M];typeof j=="number"?R.span=j:typeof j=="object"&&(R=j||{}),delete x[M],T=Object.assign(Object.assign({},T),{[`${S}-${M}-${R.span}`]:R.span!==void 0,[`${S}-${M}-order-${R.order}`]:R.order||R.order===0,[`${S}-${M}-offset-${R.offset}`]:R.offset||R.offset===0,[`${S}-${M}-push-${R.push}`]:R.push||R.push===0,[`${S}-${M}-pull-${R.pull}`]:R.pull||R.pull===0,[`${S}-rtl`]:r==="rtl"}),R.flex&&(T[`${S}-${M}-flex`]=!0,k[`--${S}-${M}-flex`]=EI(R.flex))});const I=le(S,{[`${S}-${l}`]:l!==void 0,[`${S}-order-${c}`]:c,[`${S}-offset-${u}`]:u,[`${S}-push-${p}`]:p,[`${S}-pull-${h}`]:h},m,T,_,O),$={};if(i&&i[0]>0){const M=i[0]/2;$.paddingLeft=M,$.paddingRight=M}return b&&($.flex=EI(b),o===!1&&!$.minWidth&&($.minWidth=0)),C(d.createElement("div",Object.assign({},x,{style:Object.assign(Object.assign(Object.assign({},$),E),k),className:I,ref:t}),g))});var zue=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 xI(e,t){const[n,r]=d.useState(typeof e=="string"?e:""),i=()=>{if(typeof e=="string"&&r(e),typeof e=="object")for(let o=0;o<Tc.length;o++){const a=Tc[o];if(!t[a])continue;const l=e[a];if(l!==void 0){r(l);return}}};return d.useEffect(()=>{i()},[JSON.stringify(e),t]),n}const LB=d.forwardRef((e,t)=>{const{prefixCls:n,justify:r,align:i,className:o,style:a,children:l,gutter:c=0,wrap:u}=e,p=zue(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:h,direction:m}=d.useContext(At),[g,b]=d.useState({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),[E,x]=d.useState({xs:!1,sm:!1,md:!1,lg:!1,xl:!1,xxl:!1}),S=xI(i,E),C=xI(r,E),_=d.useRef(c),O=NF();d.useEffect(()=>{const z=O.subscribe(V=>{x(V);const X=_.current||0;(!Array.isArray(X)&&typeof X=="object"||Array.isArray(X)&&(typeof X[0]=="object"||typeof X[1]=="object"))&&b(V)});return()=>O.unsubscribe(z)},[]);const k=()=>{const z=[void 0,void 0];return(Array.isArray(c)?c:[c,void 0]).forEach((X,A)=>{if(typeof X=="object")for(let P=0;P<Tc.length;P++){const Y=Tc[P];if(g[Y]&&X[Y]!==void 0){z[A]=X[Y];break}}else z[A]=X}),z},T=h("row",n),[I,$,M]=vie(T),R=k(),j=le(T,{[`${T}-no-wrap`]:u===!1,[`${T}-${C}`]:C,[`${T}-${S}`]:S,[`${T}-rtl`]:m==="rtl"},o,$,M),D={},L=R[0]!=null&&R[0]>0?R[0]/-2:void 0;L&&(D.marginLeft=L,D.marginRight=L);const[B,H]=R;D.rowGap=H;const W=d.useMemo(()=>({gutter:[B,H],wrap:u}),[B,H,u]);return I(d.createElement(PB.Provider,{value:W},d.createElement("div",Object.assign({},p,{className:j,style:Object.assign(Object.assign({},D),a),ref:t}),l)))});function Wue(e){return!!(e.addonBefore||e.addonAfter)}function Uue(e){return!!(e.prefix||e.suffix||e.allowClear)}function wI(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 by(e,t,n,r){if(n){var i=t;if(t.type==="click"){i=wI(t,e,""),n(i);return}if(e.type!=="file"&&r!==void 0){i=wI(t,e,r),n(i);return}n(i)}}function DB(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 FB=fe.forwardRef(function(e,t){var n,r,i,o=e.inputElement,a=e.children,l=e.prefixCls,c=e.prefix,u=e.suffix,p=e.addonBefore,h=e.addonAfter,m=e.className,g=e.style,b=e.disabled,E=e.readOnly,x=e.focused,S=e.triggerFocus,C=e.allowClear,_=e.value,O=e.handleReset,k=e.hidden,T=e.classes,I=e.classNames,$=e.dataAttrs,M=e.styles,R=e.components,j=e.onClear,D=a??o,L=(R==null?void 0:R.affixWrapper)||"span",B=(R==null?void 0:R.groupWrapper)||"span",H=(R==null?void 0:R.wrapper)||"span",W=(R==null?void 0:R.groupAddon)||"span",z=d.useRef(null),V=function(ge){var Ae;(Ae=z.current)!==null&&Ae!==void 0&&Ae.contains(ge.target)&&(S==null||S())},X=Uue(e),A=d.cloneElement(D,{value:_,className:le((n=D.props)===null||n===void 0?void 0:n.className,!X&&(I==null?void 0:I.variant))||null}),P=d.useRef(null);if(fe.useImperativeHandle(t,function(){return{nativeElement:P.current||z.current}}),X){var Y=null;if(C){var U=!b&&!E&&_,Q="".concat(l,"-clear-icon"),ee=Nt(C)==="object"&&C!==null&&C!==void 0&&C.clearIcon?C.clearIcon:"✖";Y=fe.createElement("button",{type:"button",onClick:function(ge){O==null||O(ge),j==null||j()},onMouseDown:function(ge){return ge.preventDefault()},className:le(Q,J(J({},"".concat(Q,"-hidden"),!U),"".concat(Q,"-has-suffix"),!!u))},ee)}var se="".concat(l,"-affix-wrapper"),ne=le(se,J(J(J(J(J({},"".concat(l,"-disabled"),b),"".concat(se,"-disabled"),b),"".concat(se,"-focused"),x),"".concat(se,"-readonly"),E),"".concat(se,"-input-with-clear-btn"),u&&C&&_),T==null?void 0:T.affixWrapper,I==null?void 0:I.affixWrapper,I==null?void 0:I.variant),oe=(u||C)&&fe.createElement("span",{className:le("".concat(l,"-suffix"),I==null?void 0:I.suffix),style:M==null?void 0:M.suffix},Y,u);A=fe.createElement(L,Ve({className:ne,style:M==null?void 0:M.affixWrapper,onClick:V},$==null?void 0:$.affixWrapper,{ref:z}),c&&fe.createElement("span",{className:le("".concat(l,"-prefix"),I==null?void 0:I.prefix),style:M==null?void 0:M.prefix},c),A,oe)}if(Wue(e)){var pe="".concat(l,"-group"),be="".concat(pe,"-addon"),ue="".concat(pe,"-wrapper"),de=le("".concat(l,"-wrapper"),pe,T==null?void 0:T.wrapper,I==null?void 0:I.wrapper),re=le(ue,J({},"".concat(ue,"-disabled"),b),T==null?void 0:T.group,I==null?void 0:I.groupWrapper);A=fe.createElement(B,{className:re,ref:P},fe.createElement(H,{className:de},p&&fe.createElement(W,{className:be},p),A,h&&fe.createElement(W,{className:be},h)))}return fe.cloneElement(A,{className:le((r=A.props)===null||r===void 0?void 0:r.className,m)||null,style:te(te({},(i=A.props)===null||i===void 0?void 0:i.style),g),hidden:k})}),Kue=["show"];function BB(e,t){return d.useMemo(function(){var n={};t&&(n.show=Nt(t)==="object"&&t.formatter?t.formatter:!!t),n=te(te({},n),e);var r=n,i=r.show,o=Yt(r,Kue);return te(te({},o),{},{show:!!i,showFormatter:typeof i=="function"?i:void 0,strategy:o.strategy||function(a){return a.length}})},[e,t])}var Vue=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","onKeyUp","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],Gue=d.forwardRef(function(e,t){var n=e.autoComplete,r=e.onChange,i=e.onFocus,o=e.onBlur,a=e.onPressEnter,l=e.onKeyDown,c=e.onKeyUp,u=e.prefixCls,p=u===void 0?"rc-input":u,h=e.disabled,m=e.htmlSize,g=e.className,b=e.maxLength,E=e.suffix,x=e.showCount,S=e.count,C=e.type,_=C===void 0?"text":C,O=e.classes,k=e.classNames,T=e.styles,I=e.onCompositionStart,$=e.onCompositionEnd,M=Yt(e,Vue),R=d.useState(!1),j=_e(R,2),D=j[0],L=j[1],B=d.useRef(!1),H=d.useRef(!1),W=d.useRef(null),z=d.useRef(null),V=function(je){W.current&&DB(W.current,je)},X=_r(e.defaultValue,{value:e.value}),A=_e(X,2),P=A[0],Y=A[1],U=P==null?"":String(P),Q=d.useState(null),ee=_e(Q,2),se=ee[0],ne=ee[1],oe=BB(S,x),pe=oe.max||b,be=oe.strategy(U),ue=!!pe&&be>pe;d.useImperativeHandle(t,function(){var Le;return{focus:V,blur:function(){var Ge;(Ge=W.current)===null||Ge===void 0||Ge.blur()},setSelectionRange:function(Ge,qe,Ce){var ke;(ke=W.current)===null||ke===void 0||ke.setSelectionRange(Ge,qe,Ce)},select:function(){var Ge;(Ge=W.current)===null||Ge===void 0||Ge.select()},input:W.current,nativeElement:((Le=z.current)===null||Le===void 0?void 0:Le.nativeElement)||W.current}}),d.useEffect(function(){H.current&&(H.current=!1),L(function(Le){return Le&&h?!1:Le})},[h]);var de=function(je,Ge,qe){var Ce=Ge;if(!B.current&&oe.exceedFormatter&&oe.max&&oe.strategy(Ge)>oe.max){if(Ce=oe.exceedFormatter(Ge,{max:oe.max}),Ge!==Ce){var ke,We;ne([((ke=W.current)===null||ke===void 0?void 0:ke.selectionStart)||0,((We=W.current)===null||We===void 0?void 0:We.selectionEnd)||0])}}else if(qe.source==="compositionEnd")return;Y(Ce),W.current&&by(W.current,je,r,Ce)};d.useEffect(function(){if(se){var Le;(Le=W.current)===null||Le===void 0||Le.setSelectionRange.apply(Le,Xe(se))}},[se]);var re=function(je){de(je,je.target.value,{source:"change"})},me=function(je){B.current=!1,de(je,je.currentTarget.value,{source:"compositionEnd"}),$==null||$(je)},ge=function(je){a&&je.key==="Enter"&&!H.current&&(H.current=!0,a(je)),l==null||l(je)},Ae=function(je){je.key==="Enter"&&(H.current=!1),c==null||c(je)},De=function(je){L(!0),i==null||i(je)},ze=function(je){H.current&&(H.current=!1),L(!1),o==null||o(je)},et=function(je){Y(""),V(),W.current&&by(W.current,je,r)},Ie=ue&&"".concat(p,"-out-of-range"),Te=function(){var je=ir(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]);return fe.createElement("input",Ve({autoComplete:n},je,{onChange:re,onFocus:De,onBlur:ze,onKeyDown:ge,onKeyUp:Ae,className:le(p,J({},"".concat(p,"-disabled"),h),k==null?void 0:k.input),style:T==null?void 0:T.input,ref:W,size:m,type:_,onCompositionStart:function(qe){B.current=!0,I==null||I(qe)},onCompositionEnd:me}))},Ue=function(){var je=Number(pe)>0;if(E||oe.show){var Ge=oe.showFormatter?oe.showFormatter({value:U,count:be,maxLength:pe}):"".concat(be).concat(je?" / ".concat(pe):"");return fe.createElement(fe.Fragment,null,oe.show&&fe.createElement("span",{className:le("".concat(p,"-show-count-suffix"),J({},"".concat(p,"-show-count-has-suffix"),!!E),k==null?void 0:k.count),style:te({},T==null?void 0:T.count)},Ge),E)}return null};return fe.createElement(FB,Ve({},M,{prefixCls:p,className:le(g,Ie),handleReset:et,value:U,focused:D,triggerFocus:V,suffix:Ue(),disabled:h,classes:O,classNames:k,styles:T}),Te())});const que=e=>{const{getPrefixCls:t,direction:n}=d.useContext(At),{prefixCls:r,className:i}=e,o=t("input-group",r),a=t("input"),[l,c]=m8(a),u=le(o,{[`${o}-lg`]:e.size==="large",[`${o}-sm`]:e.size==="small",[`${o}-compact`]:e.compact,[`${o}-rtl`]:n==="rtl"},c,i),p=d.useContext(uo),h=d.useMemo(()=>Object.assign(Object.assign({},p),{isFormItemInput:!1}),[p]);return l(d.createElement("span",{className:u,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},d.createElement(uo.Provider,{value:h},e.children)))},jB=e=>{let t;return typeof e=="object"&&(e!=null&&e.clearIcon)?t=e:e&&(t={clearIcon:fe.createElement(Gu,null)}),t};function HB(e,t){const n=d.useRef([]),r=()=>{n.current.push(setTimeout(()=>{var i,o,a,l;!((i=e.current)===null||i===void 0)&&i.input&&((o=e.current)===null||o===void 0?void 0:o.input.getAttribute("type"))==="password"&&(!((a=e.current)===null||a===void 0)&&a.input.hasAttribute("value"))&&((l=e.current)===null||l===void 0||l.input.removeAttribute("value"))}))};return d.useEffect(()=>(t&&r(),()=>n.current.forEach(i=>{i&&clearTimeout(i)})),[]),r}function Xue(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}var Yue=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 o2=d.forwardRef((e,t)=>{var n;const{prefixCls:r,bordered:i=!0,status:o,size:a,disabled:l,onBlur:c,onFocus:u,suffix:p,allowClear:h,addonAfter:m,addonBefore:g,className:b,style:E,styles:x,rootClassName:S,onChange:C,classNames:_,variant:O}=e,k=Yue(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]),{getPrefixCls:T,direction:I,input:$}=fe.useContext(At),M=T("input",r),R=d.useRef(null),j=Gr(M),[D,L,B]=m8(M,j),{compactSize:H,compactItemClassnames:W}=Im(M,I),z=go(re=>{var me;return(me=a??H)!==null&&me!==void 0?me:re}),V=fe.useContext(Ia),X=l??V,{status:A,hasFeedback:P,feedbackIcon:Y}=d.useContext(uo),U=Yb(A,o),Q=Xue(e)||!!P;d.useRef(Q);const ee=HB(R,!0),se=re=>{ee(),c==null||c(re)},ne=re=>{ee(),u==null||u(re)},oe=re=>{ee(),C==null||C(re)},pe=(P||p)&&fe.createElement(fe.Fragment,null,p,P&&Y),be=jB(h??($==null?void 0:$.allowClear)),[ue,de]=G3("input",O,i);return D(fe.createElement(Gue,Object.assign({ref:Zi(t,R),prefixCls:M,autoComplete:$==null?void 0:$.autoComplete},k,{disabled:X,onBlur:se,onFocus:ne,style:Object.assign(Object.assign({},$==null?void 0:$.style),E),styles:Object.assign(Object.assign({},$==null?void 0:$.styles),x),suffix:pe,allowClear:be,className:le(b,S,B,j,W,$==null?void 0:$.className),onChange:oe,addonBefore:g&&fe.createElement(Jh,{form:!0,space:!0},g),addonAfter:m&&fe.createElement(Jh,{form:!0,space:!0},m),classNames:Object.assign(Object.assign(Object.assign({},_),$==null?void 0:$.classNames),{input:le({[`${M}-sm`]:z==="small",[`${M}-lg`]:z==="large",[`${M}-rtl`]:I==="rtl"},_==null?void 0:_.input,(n=$==null?void 0:$.classNames)===null||n===void 0?void 0:n.input,L),variant:le({[`${M}-${ue}`]:de},fy(M,U)),affixWrapper:le({[`${M}-affix-wrapper-sm`]:z==="small",[`${M}-affix-wrapper-lg`]:z==="large",[`${M}-affix-wrapper-rtl`]:I==="rtl"},L),wrapper:le({[`${M}-group-rtl`]:I==="rtl"},L),groupWrapper:le({[`${M}-group-wrapper-sm`]:z==="small",[`${M}-group-wrapper-lg`]:z==="large",[`${M}-group-wrapper-rtl`]:I==="rtl",[`${M}-group-wrapper-${ue}`]:de},fy(`${M}-group-wrapper`,U,P),L)})})))}),Que=e=>{const{componentCls:t,paddingXS:n}=e;return{[t]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:n,"&-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}}}},Zue=Fn(["Input","OTP"],e=>{const t=hn(e,u8(e));return[Que(t)]},d8);var Jue=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 ede=d.forwardRef((e,t)=>{const{value:n,onChange:r,onActiveChange:i,index:o,mask:a}=e,l=Jue(e,["value","onChange","onActiveChange","index","mask"]),c=n&&typeof a=="string"?a:n,u=b=>{r(o,b.target.value)},p=d.useRef(null);d.useImperativeHandle(t,()=>p.current);const h=()=>{kn(()=>{var b;const E=(b=p.current)===null||b===void 0?void 0:b.input;document.activeElement===E&&E&&E.select()})},m=b=>{const{key:E,ctrlKey:x,metaKey:S}=b;E==="ArrowLeft"?i(o-1):E==="ArrowRight"?i(o+1):E==="z"&&(x||S)&&b.preventDefault(),h()},g=b=>{b.key==="Backspace"&&!n&&i(o-1),h()};return d.createElement(o2,Object.assign({type:a===!0?"password":"text"},l,{ref:p,value:c,onInput:u,onFocus:h,onKeyDown:m,onKeyUp:g,onMouseDown:h,onMouseUp:h}))});var tde=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 ng(e){return(e||"").split("")}const nde=d.forwardRef((e,t)=>{const{prefixCls:n,length:r=6,size:i,defaultValue:o,value:a,onChange:l,formatter:c,variant:u,disabled:p,status:h,autoFocus:m,mask:g,type:b,onInput:E,inputMode:x}=e,S=tde(e,["prefixCls","length","size","defaultValue","value","onChange","formatter","variant","disabled","status","autoFocus","mask","type","onInput","inputMode"]),{getPrefixCls:C,direction:_}=d.useContext(At),O=C("otp",n),k=Oi(S,{aria:!0,data:!0,attr:!0}),T=Gr(O),[I,$,M]=Zue(O,T),R=go(Q=>i??Q),j=d.useContext(uo),D=Yb(j.status,h),L=d.useMemo(()=>Object.assign(Object.assign({},j),{status:D,hasFeedback:!1,feedbackIcon:null}),[j,D]),B=d.useRef(null),H=d.useRef({});d.useImperativeHandle(t,()=>({focus:()=>{var Q;(Q=H.current[0])===null||Q===void 0||Q.focus()},blur:()=>{var Q;for(let ee=0;ee<r;ee+=1)(Q=H.current[ee])===null||Q===void 0||Q.blur()},nativeElement:B.current}));const W=Q=>c?c(Q):Q,[z,V]=d.useState(ng(W(o||"")));d.useEffect(()=>{a!==void 0&&V(ng(a))},[a]);const X=Kn(Q=>{V(Q),E&&E(Q),l&&Q.length===r&&Q.every(ee=>ee)&&Q.some((ee,se)=>z[se]!==ee)&&l(Q.join(""))}),A=Kn((Q,ee)=>{let se=Xe(z);for(let oe=0;oe<Q;oe+=1)se[oe]||(se[oe]="");ee.length<=1?se[Q]=ee:se=se.slice(0,Q).concat(ng(ee)),se=se.slice(0,r);for(let oe=se.length-1;oe>=0&&!se[oe];oe-=1)se.pop();const ne=W(se.map(oe=>oe||" ").join(""));return se=ng(ne).map((oe,pe)=>oe===" "&&!se[pe]?se[pe]:oe),se}),P=(Q,ee)=>{var se;const ne=A(Q,ee),oe=Math.min(Q+ee.length,r-1);oe!==Q&&ne[Q]!==void 0&&((se=H.current[oe])===null||se===void 0||se.focus()),X(ne)},Y=Q=>{var ee;(ee=H.current[Q])===null||ee===void 0||ee.focus()},U={variant:u,disabled:p,status:D,mask:g,type:b,inputMode:x};return I(d.createElement("div",Object.assign({},k,{ref:B,className:le(O,{[`${O}-sm`]:R==="small",[`${O}-lg`]:R==="large",[`${O}-rtl`]:_==="rtl"},M,$)}),d.createElement(uo.Provider,{value:L},Array.from({length:r}).map((Q,ee)=>{const se=`otp-${ee}`,ne=z[ee]||"";return d.createElement(ede,Object.assign({ref:oe=>{H.current[ee]=oe},key:se,index:ee,size:R,htmlSize:1,className:`${O}-input`,onChange:P,value:ne,onActiveChange:Y,autoFocus:ee===0&&m},U))}))))});var rde={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"},ide=function(t,n){return d.createElement(bn,Ve({},t,{ref:n,icon:rde}))},ode=d.forwardRef(ide),zB={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"},ade=function(t,n){return d.createElement(bn,Ve({},t,{ref:n,icon:zB}))},WB=d.forwardRef(ade),lde=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 sde=e=>e?d.createElement(WB,null):d.createElement(ode,null),cde={click:"onClick",hover:"onMouseOver"},ude=d.forwardRef((e,t)=>{const{disabled:n,action:r="click",visibilityToggle:i=!0,iconRender:o=sde}=e,a=d.useContext(Ia),l=n??a,c=typeof i=="object"&&i.visible!==void 0,[u,p]=d.useState(()=>c?i.visible:!1),h=d.useRef(null);d.useEffect(()=>{c&&p(i.visible)},[c,i]);const m=HB(h),g=()=>{var R;if(l)return;u&&m();const j=!u;p(j),typeof i=="object"&&((R=i.onVisibleChange)===null||R===void 0||R.call(i,j))},b=R=>{const j=cde[r]||"",D=o(u),L={[j]:g,className:`${R}-icon`,key:"passwordIcon",onMouseDown:B=>{B.preventDefault()},onMouseUp:B=>{B.preventDefault()}};return d.cloneElement(d.isValidElement(D)?D:d.createElement("span",null,D),L)},{className:E,prefixCls:x,inputPrefixCls:S,size:C}=e,_=lde(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:O}=d.useContext(At),k=O("input",S),T=O("input-password",x),I=i&&b(T),$=le(T,E,{[`${T}-${C}`]:!!C}),M=Object.assign(Object.assign({},ir(_,["suffix","iconRender","visibilityToggle"])),{type:u?"text":"password",className:$,prefixCls:k,suffix:I});return C&&(M.size=C),d.createElement(o2,Object.assign({ref:Zi(t,h)},M))});var dde=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 fde=d.forwardRef((e,t)=>{const{prefixCls:n,inputPrefixCls:r,className:i,size:o,suffix:a,enterButton:l=!1,addonAfter:c,loading:u,disabled:p,onSearch:h,onChange:m,onCompositionStart:g,onCompositionEnd:b}=e,E=dde(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:x,direction:S}=d.useContext(At),C=d.useRef(!1),_=x("input-search",n),O=x("input",r),{compactSize:k}=Im(_,S),T=go(P=>{var Y;return(Y=o??k)!==null&&Y!==void 0?Y:P}),I=d.useRef(null),$=P=>{P!=null&&P.target&&P.type==="click"&&h&&h(P.target.value,P,{source:"clear"}),m==null||m(P)},M=P=>{var Y;document.activeElement===((Y=I.current)===null||Y===void 0?void 0:Y.input)&&P.preventDefault()},R=P=>{var Y,U;h&&h((U=(Y=I.current)===null||Y===void 0?void 0:Y.input)===null||U===void 0?void 0:U.value,P,{source:"input"})},j=P=>{C.current||u||R(P)},D=typeof l=="boolean"?d.createElement(Y3,null):null,L=`${_}-button`;let B;const H=l||{},W=H.type&&H.type.__ANT_BUTTON===!0;W||H.type==="button"?B=vi(H,Object.assign({onMouseDown:M,onClick:P=>{var Y,U;(U=(Y=H==null?void 0:H.props)===null||Y===void 0?void 0:Y.onClick)===null||U===void 0||U.call(Y,P),R(P)},key:"enterButton"},W?{className:L,size:T}:{})):B=d.createElement(Hn,{className:L,type:l?"primary":void 0,size:T,disabled:p,key:"enterButton",onMouseDown:M,onClick:R,loading:u,icon:D},l),c&&(B=[B,vi(c,{key:"addonAfter"})]);const z=le(_,{[`${_}-rtl`]:S==="rtl",[`${_}-${T}`]:!!T,[`${_}-with-button`]:!!l},i),V=Object.assign(Object.assign({},E),{className:z,prefixCls:O,type:"search"}),X=P=>{C.current=!0,g==null||g(P)},A=P=>{C.current=!1,b==null||b(P)};return d.createElement(o2,Object.assign({ref:Zi(I,t),onPressEnter:j},V,{size:T,onCompositionStart:X,onCompositionEnd:A,addonAfter:B,suffix:a,onChange:$,disabled:p}))});var pde=`
min-height:0 !important;
max-height:none !important;
height:0 !important;
visibility:hidden !important;
overflow:hidden !important;
position:absolute !important;
z-index:-1000 !important;
top:0 !important;
right:0 !important;
pointer-events: none !important;
`,hde=["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"],U4={},zo;function mde(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&&U4[n])return U4[n];var r=window.getComputedStyle(e),i=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),o=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),a=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),l=hde.map(function(u){return"".concat(u,":").concat(r.getPropertyValue(u))}).join(";"),c={sizingStyle:l,paddingSize:o,borderSize:a,boxSizing:i};return t&&n&&(U4[n]=c),c}function gde(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;zo||(zo=document.createElement("textarea"),zo.setAttribute("tab-index","-1"),zo.setAttribute("aria-hidden","true"),zo.setAttribute("name","hiddenTextarea"),document.body.appendChild(zo)),e.getAttribute("wrap")?zo.setAttribute("wrap",e.getAttribute("wrap")):zo.removeAttribute("wrap");var i=mde(e,t),o=i.paddingSize,a=i.borderSize,l=i.boxSizing,c=i.sizingStyle;zo.setAttribute("style","".concat(c,";").concat(pde)),zo.value=e.value||e.placeholder||"";var u=void 0,p=void 0,h,m=zo.scrollHeight;if(l==="border-box"?m+=a:l==="content-box"&&(m-=o),n!==null||r!==null){zo.value=" ";var g=zo.scrollHeight-o;n!==null&&(u=g*n,l==="border-box"&&(u=u+o+a),m=Math.max(u,m)),r!==null&&(p=g*r,l==="border-box"&&(p=p+o+a),h=m>p?"":"hidden",m=Math.min(p,m))}var b={height:m,overflowY:h,resize:"none"};return u&&(b.minHeight=u),p&&(b.maxHeight=p),b}var vde=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],K4=0,V4=1,G4=2,yde=d.forwardRef(function(e,t){var n=e,r=n.prefixCls,i=n.defaultValue,o=n.value,a=n.autoSize,l=n.onResize,c=n.className,u=n.style,p=n.disabled,h=n.onChange;n.onInternalAutoSize;var m=Yt(n,vde),g=_r(i,{value:o,postState:function(Q){return Q??""}}),b=_e(g,2),E=b[0],x=b[1],S=function(Q){x(Q.target.value),h==null||h(Q)},C=d.useRef();d.useImperativeHandle(t,function(){return{textArea:C.current}});var _=d.useMemo(function(){return a&&Nt(a)==="object"?[a.minRows,a.maxRows]:[]},[a]),O=_e(_,2),k=O[0],T=O[1],I=!!a,$=function(){try{if(document.activeElement===C.current){var Q=C.current,ee=Q.selectionStart,se=Q.selectionEnd,ne=Q.scrollTop;C.current.setSelectionRange(ee,se),C.current.scrollTop=ne}}catch{}},M=d.useState(G4),R=_e(M,2),j=R[0],D=R[1],L=d.useState(),B=_e(L,2),H=B[0],W=B[1],z=function(){D(K4)};xn(function(){I&&z()},[o,k,T,I]),xn(function(){if(j===K4)D(V4);else if(j===V4){var U=gde(C.current,!1,k,T);D(G4),W(U)}else $()},[j]);var V=d.useRef(),X=function(){kn.cancel(V.current)},A=function(Q){j===G4&&(l==null||l(Q),a&&(X(),V.current=kn(function(){z()})))};d.useEffect(function(){return X},[]);var P=I?H:null,Y=te(te({},u),P);return(j===K4||j===V4)&&(Y.overflowY="hidden",Y.overflowX="hidden"),d.createElement(qi,{onResize:A,disabled:!(a||l)},d.createElement("textarea",Ve({},m,{ref:C,style:Y,className:le(r,c,J({},"".concat(r,"-disabled"),p)),disabled:p,value:E,onChange:S})))}),bde=["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"],Cde=fe.forwardRef(function(e,t){var n,r=e.defaultValue,i=e.value,o=e.onFocus,a=e.onBlur,l=e.onChange,c=e.allowClear,u=e.maxLength,p=e.onCompositionStart,h=e.onCompositionEnd,m=e.suffix,g=e.prefixCls,b=g===void 0?"rc-textarea":g,E=e.showCount,x=e.count,S=e.className,C=e.style,_=e.disabled,O=e.hidden,k=e.classNames,T=e.styles,I=e.onResize,$=e.onClear,M=e.onPressEnter,R=e.readOnly,j=e.autoSize,D=e.onKeyDown,L=Yt(e,bde),B=_r(r,{value:i,defaultValue:r}),H=_e(B,2),W=H[0],z=H[1],V=W==null?"":String(W),X=fe.useState(!1),A=_e(X,2),P=A[0],Y=A[1],U=fe.useRef(!1),Q=fe.useState(null),ee=_e(Q,2),se=ee[0],ne=ee[1],oe=d.useRef(null),pe=d.useRef(null),be=function(){var ie;return(ie=pe.current)===null||ie===void 0?void 0:ie.textArea},ue=function(){be().focus()};d.useImperativeHandle(t,function(){var Qe;return{resizableTextArea:pe.current,focus:ue,blur:function(){be().blur()},nativeElement:((Qe=oe.current)===null||Qe===void 0?void 0:Qe.nativeElement)||be()}}),d.useEffect(function(){Y(function(Qe){return!_&&Qe})},[_]);var de=fe.useState(null),re=_e(de,2),me=re[0],ge=re[1];fe.useEffect(function(){if(me){var Qe;(Qe=be()).setSelectionRange.apply(Qe,Xe(me))}},[me]);var Ae=BB(x,E),De=(n=Ae.max)!==null&&n!==void 0?n:u,ze=Number(De)>0,et=Ae.strategy(V),Ie=!!De&&et>De,Te=function(ie,xe){var Ne=xe;!U.current&&Ae.exceedFormatter&&Ae.max&&Ae.strategy(xe)>Ae.max&&(Ne=Ae.exceedFormatter(xe,{max:Ae.max}),xe!==Ne&&ge([be().selectionStart||0,be().selectionEnd||0])),z(Ne),by(ie.currentTarget,ie,l,Ne)},Ue=function(ie){U.current=!0,p==null||p(ie)},Le=function(ie){U.current=!1,Te(ie,ie.currentTarget.value),h==null||h(ie)},je=function(ie){Te(ie,ie.target.value)},Ge=function(ie){ie.key==="Enter"&&M&&M(ie),D==null||D(ie)},qe=function(ie){Y(!0),o==null||o(ie)},Ce=function(ie){Y(!1),a==null||a(ie)},ke=function(ie){z(""),ue(),by(be(),ie,l)},We=m,Pe;Ae.show&&(Ae.showFormatter?Pe=Ae.showFormatter({value:V,count:et,maxLength:De}):Pe="".concat(et).concat(ze?" / ".concat(De):""),We=fe.createElement(fe.Fragment,null,We,fe.createElement("span",{className:le("".concat(b,"-data-count"),k==null?void 0:k.count),style:T==null?void 0:T.count},Pe)));var Be=function(ie){var xe;I==null||I(ie),(xe=be())!==null&&xe!==void 0&&xe.style.height&&ne(!0)},He=!j&&!E&&!c;return fe.createElement(FB,{ref:oe,value:V,allowClear:c,handleReset:ke,suffix:We,prefixCls:b,classNames:te(te({},k),{},{affixWrapper:le(k==null?void 0:k.affixWrapper,J(J({},"".concat(b,"-show-count"),E),"".concat(b,"-textarea-allow-clear"),c))}),disabled:_,focused:P,className:le(S,Ie&&"".concat(b,"-out-of-range")),style:te(te({},C),se&&!He?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Pe=="string"?Pe:void 0}},hidden:O,readOnly:R,onClear:$},fe.createElement(yde,Ve({},L,{autoSize:j,maxLength:u,onKeyDown:Ge,onChange:je,onFocus:qe,onBlur:Ce,onCompositionStart:Ue,onCompositionEnd:Le,className:le(k==null?void 0:k.textarea),style:te(te({},T==null?void 0:T.textarea),{},{resize:C==null?void 0:C.resize}),disabled:_,prefixCls:b,onResize:Be,ref:pe,readOnly:R})))}),Sde=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 UB=d.forwardRef((e,t)=>{var n,r;const{prefixCls:i,bordered:o=!0,size:a,disabled:l,status:c,allowClear:u,classNames:p,rootClassName:h,className:m,style:g,styles:b,variant:E}=e,x=Sde(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant"]),{getPrefixCls:S,direction:C,textArea:_}=d.useContext(At),O=go(a),k=d.useContext(Ia),T=l??k,{status:I,hasFeedback:$,feedbackIcon:M}=d.useContext(uo),R=Yb(I,c),j=d.useRef(null);d.useImperativeHandle(t,()=>{var A;return{resizableTextArea:(A=j.current)===null||A===void 0?void 0:A.resizableTextArea,focus:P=>{var Y,U;DB((U=(Y=j.current)===null||Y===void 0?void 0:Y.resizableTextArea)===null||U===void 0?void 0:U.textArea,P)},blur:()=>{var P;return(P=j.current)===null||P===void 0?void 0:P.blur()}}});const D=S("input",i),L=Gr(D),[B,H,W]=m8(D,L),[z,V]=G3("textArea",E,o),X=jB(u??(_==null?void 0:_.allowClear));return B(d.createElement(Cde,Object.assign({autoComplete:_==null?void 0:_.autoComplete},x,{style:Object.assign(Object.assign({},_==null?void 0:_.style),g),styles:Object.assign(Object.assign({},_==null?void 0:_.styles),b),disabled:T,allowClear:X,className:le(W,L,m,h,_==null?void 0:_.className),classNames:Object.assign(Object.assign(Object.assign({},p),_==null?void 0:_.classNames),{textarea:le({[`${D}-sm`]:O==="small",[`${D}-lg`]:O==="large"},H,p==null?void 0:p.textarea,(n=_==null?void 0:_.classNames)===null||n===void 0?void 0:n.textarea),variant:le({[`${D}-${z}`]:V},fy(D,R)),affixWrapper:le(`${D}-textarea-affix-wrapper`,{[`${D}-affix-wrapper-rtl`]:C==="rtl",[`${D}-affix-wrapper-sm`]:O==="small",[`${D}-affix-wrapper-lg`]:O==="large",[`${D}-textarea-show-count`]:e.showCount||((r=e.count)===null||r===void 0?void 0:r.show)},H)}),prefixCls:D,suffix:$&&d.createElement("span",{className:`${D}-textarea-suffix`},M),ref:j})))}),Qi=o2;Qi.Group=que;Qi.Search=fde;Qi.TextArea=UB;Qi.Password=ude;Qi.OTP=nde;const Ede={xxl:3,xl:3,lg:3,md:3,sm:2,xs:1},C8=fe.createContext({});var xde=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 wde=e=>ii(e).map(t=>Object.assign(Object.assign({},t==null?void 0:t.props),{key:t.key}));function _de(e,t,n){const r=d.useMemo(()=>t||wde(n),[t,n]);return d.useMemo(()=>r.map(o=>{var{span:a}=o,l=xde(o,["span"]);return a==="filled"?Object.assign(Object.assign({},l),{filled:!0}):Object.assign(Object.assign({},l),{span:typeof a=="number"?a:AF(e,a)})}),[r,e])}var Tde=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 Ode(e,t){let n=[],r=[],i=!1,o=0;return e.filter(a=>a).forEach(a=>{const{filled:l}=a,c=Tde(a,["filled"]);if(l){r.push(c),n.push(r),r=[],o=0;return}const u=t-o;o+=a.span||1,o>=t?(o>t?(i=!0,r.push(Object.assign(Object.assign({},c),{span:u}))):r.push(c),n.push(r),r=[],o=0):r.push(c)}),r.length>0&&n.push(r),n=n.map(a=>{const l=a.reduce((c,u)=>c+(u.span||1),0);if(l<t){const c=a[a.length-1];return c.span=t-(l-(c.span||1)),a}return a}),[n,i]}const Ide=(e,t)=>{const[n,r]=d.useMemo(()=>Ode(t,e),[t,e]);return n},kde=e=>{let{children:t}=e;return t};function _I(e){return e!=null}const q4=e=>{const{itemPrefixCls:t,component:n,span:r,className:i,style:o,labelStyle:a,contentStyle:l,bordered:c,label:u,content:p,colon:h,type:m,styles:g}=e,b=n,E=d.useContext(C8),{classNames:x}=E;return c?d.createElement(b,{className:le({[`${t}-item-label`]:m==="label",[`${t}-item-content`]:m==="content",[`${x==null?void 0:x.label}`]:m==="label",[`${x==null?void 0:x.content}`]:m==="content"},i),style:o,colSpan:r},_I(u)&&d.createElement("span",{style:Object.assign(Object.assign({},a),g==null?void 0:g.label)},u),_I(p)&&d.createElement("span",{style:Object.assign(Object.assign({},a),g==null?void 0:g.content)},p)):d.createElement(b,{className:le(`${t}-item`,i),style:o,colSpan:r},d.createElement("div",{className:`${t}-item-container`},(u||u===0)&&d.createElement("span",{className:le(`${t}-item-label`,x==null?void 0:x.label,{[`${t}-item-no-colon`]:!h}),style:Object.assign(Object.assign({},a),g==null?void 0:g.label)},u),(p||p===0)&&d.createElement("span",{className:le(`${t}-item-content`,x==null?void 0:x.content),style:Object.assign(Object.assign({},l),g==null?void 0:g.content)},p)))};function X4(e,t,n){let{colon:r,prefixCls:i,bordered:o}=t,{component:a,type:l,showLabel:c,showContent:u,labelStyle:p,contentStyle:h,styles:m}=n;return e.map((g,b)=>{let{label:E,children:x,prefixCls:S=i,className:C,style:_,labelStyle:O,contentStyle:k,span:T=1,key:I,styles:$}=g;return typeof a=="string"?d.createElement(q4,{key:`${l}-${I||b}`,className:C,style:_,styles:{label:Object.assign(Object.assign(Object.assign(Object.assign({},p),m==null?void 0:m.label),O),$==null?void 0:$.label),content:Object.assign(Object.assign(Object.assign(Object.assign({},h),m==null?void 0:m.content),k),$==null?void 0:$.content)},span:T,colon:r,component:a,itemPrefixCls:S,bordered:o,label:c?E:null,content:u?x:null,type:l}):[d.createElement(q4,{key:`label-${I||b}`,className:C,style:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},p),m==null?void 0:m.label),_),O),$==null?void 0:$.label),span:1,colon:r,component:a[0],itemPrefixCls:S,bordered:o,label:E,type:"label"}),d.createElement(q4,{key:`content-${I||b}`,className:C,style:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},h),m==null?void 0:m.content),_),k),$==null?void 0:$.content),span:T*2-1,component:a[1],itemPrefixCls:S,bordered:o,content:x,type:"content"})]})}const $de=e=>{const t=d.useContext(C8),{prefixCls:n,vertical:r,row:i,index:o,bordered:a}=e;return r?d.createElement(d.Fragment,null,d.createElement("tr",{key:`label-${o}`,className:`${n}-row`},X4(i,e,Object.assign({component:"th",type:"label",showLabel:!0},t))),d.createElement("tr",{key:`content-${o}`,className:`${n}-row`},X4(i,e,Object.assign({component:"td",type:"content",showContent:!0},t)))):d.createElement("tr",{key:o,className:`${n}-row`},X4(i,e,Object.assign({component:a?["th","td"]:"td",type:"item",showLabel:!0,showContent:!0},t)))},Nde=e=>{const{componentCls:t,labelBg:n}=e;return{[`&${t}-bordered`]:{[`> ${t}-view`]:{border:`${ae(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"> table":{tableLayout:"auto"},[`${t}-row`]:{borderBottom:`${ae(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderBottom:"none"},[`> ${t}-item-label, > ${t}-item-content`]:{padding:`${ae(e.padding)} ${ae(e.paddingLG)}`,borderInlineEnd:`${ae(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderInlineEnd:"none"}},[`> ${t}-item-label`]:{color:e.colorTextSecondary,backgroundColor:n,"&::after":{display:"none"}}}},[`&${t}-middle`]:{[`${t}-row`]:{[`> ${t}-item-label, > ${t}-item-content`]:{padding:`${ae(e.paddingSM)} ${ae(e.paddingLG)}`}}},[`&${t}-small`]:{[`${t}-row`]:{[`> ${t}-item-label, > ${t}-item-content`]:{padding:`${ae(e.paddingXS)} ${ae(e.padding)}`}}}}}},Ade=e=>{const{componentCls:t,extraColor:n,itemPaddingBottom:r,itemPaddingEnd:i,colonMarginRight:o,colonMarginLeft:a,titleMarginBottom:l}=e;return{[t]:Object.assign(Object.assign(Object.assign({},zn(e)),Nde(e)),{"&-rtl":{direction:"rtl"},[`${t}-header`]:{display:"flex",alignItems:"center",marginBottom:l},[`${t}-title`]:Object.assign(Object.assign({},ll),{flex:"auto",color:e.titleColor,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG,lineHeight:e.lineHeightLG}),[`${t}-extra`]:{marginInlineStart:"auto",color:n,fontSize:e.fontSize},[`${t}-view`]:{width:"100%",borderRadius:e.borderRadiusLG,table:{width:"100%",tableLayout:"fixed",borderCollapse:"collapse"}},[`${t}-row`]:{"> th, > td":{paddingBottom:r,paddingInlineEnd:i},"> th:last-child, > td:last-child":{paddingInlineEnd:0},"&:last-child":{borderBottom:"none","> th, > td":{paddingBottom:0}}},[`${t}-item-label`]:{color:e.colorTextTertiary,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,textAlign:"start","&::after":{content:'":"',position:"relative",top:-.5,marginInline:`${ae(a)} ${ae(o)}`},[`&${t}-item-no-colon::after`]:{content:'""'}},[`${t}-item-no-label`]:{"&::after":{margin:0,content:'""'}},[`${t}-item-content`]:{display:"table-cell",flex:1,color:e.contentColor,fontSize:e.fontSize,lineHeight:e.lineHeight,wordBreak:"break-word",overflowWrap:"break-word"},[`${t}-item`]:{paddingBottom:0,verticalAlign:"top","&-container":{display:"flex",[`${t}-item-label`]:{display:"inline-flex",alignItems:"baseline"},[`${t}-item-content`]:{display:"inline-flex",alignItems:"baseline",minWidth:"1em"}}},"&-middle":{[`${t}-row`]:{"> th, > td":{paddingBottom:e.paddingSM}}},"&-small":{[`${t}-row`]:{"> th, > td":{paddingBottom:e.paddingXS}}}})}},Rde=e=>({labelBg:e.colorFillAlter,titleColor:e.colorText,titleMarginBottom:e.fontSizeSM*e.lineHeightSM,itemPaddingBottom:e.padding,itemPaddingEnd:e.padding,colonMarginRight:e.marginXS,colonMarginLeft:e.marginXXS/2,contentColor:e.colorText,extraColor:e.colorText}),Mde=Fn("Descriptions",e=>{const t=hn(e,{});return Ade(t)},Rde);var Pde=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=e=>{var t,n,r,i,o,a,l,c;const{prefixCls:u,title:p,extra:h,column:m,colon:g=!0,bordered:b,layout:E,children:x,className:S,rootClassName:C,style:_,size:O,labelStyle:k,contentStyle:T,styles:I,items:$,classNames:M}=e,R=Pde(e,["prefixCls","title","extra","column","colon","bordered","layout","children","className","rootClassName","style","size","labelStyle","contentStyle","styles","items","classNames"]),{getPrefixCls:j,direction:D,descriptions:L}=d.useContext(At),B=j("descriptions",u),H=Qb(),W=d.useMemo(()=>{var Q;return typeof m=="number"?m:(Q=AF(H,Object.assign(Object.assign({},Ede),m)))!==null&&Q!==void 0?Q:3},[H,m]),z=_de(H,$,x),V=go(O),X=Ide(W,z),[A,P,Y]=Mde(B),U=d.useMemo(()=>{var Q,ee,se,ne;return{labelStyle:k,contentStyle:T,styles:{content:Object.assign(Object.assign({},(Q=L==null?void 0:L.styles)===null||Q===void 0?void 0:Q.content),I==null?void 0:I.content),label:Object.assign(Object.assign({},(ee=L==null?void 0:L.styles)===null||ee===void 0?void 0:ee.label),I==null?void 0:I.label)},classNames:{label:le((se=L==null?void 0:L.classNames)===null||se===void 0?void 0:se.label,M==null?void 0:M.label),content:le((ne=L==null?void 0:L.classNames)===null||ne===void 0?void 0:ne.content,M==null?void 0:M.content)}}},[k,T,I,M,L]);return A(d.createElement(C8.Provider,{value:U},d.createElement("div",Object.assign({className:le(B,L==null?void 0:L.className,(t=L==null?void 0:L.classNames)===null||t===void 0?void 0:t.root,M==null?void 0:M.root,{[`${B}-${V}`]:V&&V!=="default",[`${B}-bordered`]:!!b,[`${B}-rtl`]:D==="rtl"},S,C,P,Y),style:Object.assign(Object.assign(Object.assign(Object.assign({},L==null?void 0:L.style),(n=L==null?void 0:L.styles)===null||n===void 0?void 0:n.root),I==null?void 0:I.root),_)},R),(p||h)&&d.createElement("div",{className:le(`${B}-header`,(r=L==null?void 0:L.classNames)===null||r===void 0?void 0:r.header,M==null?void 0:M.header),style:Object.assign(Object.assign({},(i=L==null?void 0:L.styles)===null||i===void 0?void 0:i.header),I==null?void 0:I.header)},p&&d.createElement("div",{className:le(`${B}-title`,(o=L==null?void 0:L.classNames)===null||o===void 0?void 0:o.title,M==null?void 0:M.title),style:Object.assign(Object.assign({},(a=L==null?void 0:L.styles)===null||a===void 0?void 0:a.title),I==null?void 0:I.title)},p),h&&d.createElement("div",{className:le(`${B}-extra`,(l=L==null?void 0:L.classNames)===null||l===void 0?void 0:l.extra,M==null?void 0:M.extra),style:Object.assign(Object.assign({},(c=L==null?void 0:L.styles)===null||c===void 0?void 0:c.extra),I==null?void 0:I.extra)},h)),d.createElement("div",{className:`${B}-view`},d.createElement("table",null,d.createElement("tbody",null,X.map((Q,ee)=>d.createElement($de,{key:ee,index:ee,colon:g,prefixCls:B,vertical:E==="vertical",bordered:b,row:Q}))))))))};uv.Item=kde;function TI(e){return["small","middle","large"].includes(e)}function OI(e){return e?typeof e=="number"&&!Number.isNaN(e):!1}const KB=fe.createContext({latestIndex:0}),Lde=KB.Provider,Dde=e=>{let{className:t,index:n,children:r,split:i,style:o}=e;const{latestIndex:a}=d.useContext(KB);return r==null?null:d.createElement(d.Fragment,null,d.createElement("div",{className:t,style:o},r),n<a&&i&&d.createElement("span",{className:`${t}-split`},i))};var Fde=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 Bde=d.forwardRef((e,t)=>{var n,r,i;const{getPrefixCls:o,space:a,direction:l}=d.useContext(At),{size:c=(n=a==null?void 0:a.size)!==null&&n!==void 0?n:"small",align:u,className:p,rootClassName:h,children:m,direction:g="horizontal",prefixCls:b,split:E,style:x,wrap:S=!1,classNames:C,styles:_}=e,O=Fde(e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[k,T]=Array.isArray(c)?c:[c,c],I=TI(T),$=TI(k),M=OI(T),R=OI(k),j=ii(m,{keepEmpty:!0}),D=u===void 0&&g==="horizontal"?"center":u,L=o("space",b),[B,H,W]=SD(L),z=le(L,a==null?void 0:a.className,H,`${L}-${g}`,{[`${L}-rtl`]:l==="rtl",[`${L}-align-${D}`]:D,[`${L}-gap-row-${T}`]:I,[`${L}-gap-col-${k}`]:$},p,h,W),V=le(`${L}-item`,(r=C==null?void 0:C.item)!==null&&r!==void 0?r:(i=a==null?void 0:a.classNames)===null||i===void 0?void 0:i.item);let X=0;const A=j.map((U,Q)=>{var ee,se;U!=null&&(X=Q);const ne=(U==null?void 0:U.key)||`${V}-${Q}`;return d.createElement(Dde,{className:V,key:ne,index:Q,split:E,style:(ee=_==null?void 0:_.item)!==null&&ee!==void 0?ee:(se=a==null?void 0:a.styles)===null||se===void 0?void 0:se.item},U)}),P=d.useMemo(()=>({latestIndex:X}),[X]);if(j.length===0)return null;const Y={};return S&&(Y.flexWrap="wrap"),!$&&R&&(Y.columnGap=k),!I&&M&&(Y.rowGap=T),B(d.createElement("div",Object.assign({ref:t,className:z,style:Object.assign(Object.assign(Object.assign({},Y),a==null?void 0:a.style),x)},O),d.createElement(Lde,{value:P},A)))}),fo=Bde;fo.Compact=gte;var jde=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 VB=e=>{const{getPopupContainer:t,getPrefixCls:n,direction:r}=d.useContext(At),{prefixCls:i,type:o="default",danger:a,disabled:l,loading:c,onClick:u,htmlType:p,children:h,className:m,menu:g,arrow:b,autoFocus:E,overlay:x,trigger:S,align:C,open:_,onOpenChange:O,placement:k,getPopupContainer:T,href:I,icon:$=d.createElement(s8,null),title:M,buttonsRender:R=oe=>oe,mouseEnterDelay:j,mouseLeaveDelay:D,overlayClassName:L,overlayStyle:B,destroyPopupOnHide:H,dropdownRender:W}=e,z=jde(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","destroyPopupOnHide","dropdownRender"]),V=n("dropdown",i),X=`${V}-button`,A={menu:g,arrow:b,autoFocus:E,align:C,disabled:l,trigger:l?[]:S,onOpenChange:O,getPopupContainer:T||t,mouseEnterDelay:j,mouseLeaveDelay:D,overlayClassName:L,overlayStyle:B,destroyPopupOnHide:H,dropdownRender:W},{compactSize:P,compactItemClassnames:Y}=Im(V,r),U=le(X,Y,m);"overlay"in e&&(A.overlay=x),"open"in e&&(A.open=_),"placement"in e?A.placement=k:A.placement=r==="rtl"?"bottomLeft":"bottomRight";const Q=d.createElement(Hn,{type:o,danger:a,disabled:l,loading:c,onClick:u,htmlType:p,href:I,title:M},h),ee=d.createElement(Hn,{type:o,danger:a,icon:$}),[se,ne]=R([Q,ee]);return d.createElement(fo.Compact,Object.assign({className:U,size:P,block:!0},z),se,d.createElement(Pm,Object.assign({},A),ne))};VB.__ANT_BUTTON=!0;const Dm=Pm;Dm.Button=VB;var Hde={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 42h216v494zM504 618H320c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM312 490v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H320c-4.4 0-8 3.6-8 8z"}}]},name:"file-text",theme:"outlined"};function Cy(e){const[t,n]=d.useState(e);return d.useEffect(()=>{const r=setTimeout(()=>{n(e)},e.length?0:10);return()=>{clearTimeout(r)}},[e]),t}const zde=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},
opacity ${e.motionDurationFast} ${e.motionEaseInOut},
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)"}}}}},Wde=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}}),II=(e,t)=>{const{formItemCls:n}=e;return{[n]:{[`${n}-label > label`]:{height:t},[`${n}-control-input`]:{minHeight:t}}}},Ude=e=>{const{componentCls:t}=e;return{[e.componentCls]:Object.assign(Object.assign(Object.assign({},zn(e)),Wde(e)),{[`${t}-text`]:{display:"inline-block",paddingInlineEnd:e.paddingSM},"&-small":Object.assign({},II(e,e.controlHeightSM)),"&-large":Object.assign({},II(e,e.controlHeightLG))})}},Kde=e=>{const{formItemCls:t,iconCls:n,componentCls:r,rootPrefixCls:i,antCls:o,labelRequiredMarkColor:a,labelColor:l,labelFontSize:c,labelHeight:u,labelColonMarginInlineStart:p,labelColonMarginInlineEnd:h,itemMarginBottom:m}=e;return{[t]:Object.assign(Object.assign({},zn(e)),{marginBottom:m,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,
&-hidden${o}-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":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:u,color:l,fontSize:c,[`> ${n}`]:{fontSize:e.fontSize,verticalAlign:"top"},[`&${t}-required:not(${t}-required-mark-optional)::before`]:{display:"inline-block",marginInlineEnd:e.marginXXS,color:a,fontSize:e.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"',[`${r}-hide-required-mark &`]:{display:"none"}},[`${t}-optional`]:{display:"inline-block",marginInlineStart:e.marginXXS,color:e.colorTextDescription,[`${r}-hide-required-mark &`]:{display:"none"}},[`${t}-tooltip`]:{color:e.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:e.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:p,marginInlineEnd:h},[`&${t}-no-colon::after`]:{content:'"\\a0"'}}},[`${t}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${i}-col-'"]):not([class*="' ${i}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:e.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[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:A3,animationDuration:e.motionDurationMid,animationTimingFunction:e.motionEaseOutBack,pointerEvents:"none","&-success":{color:e.colorSuccess},"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning},"&-validating":{color:e.colorPrimary}}})}},kI=(e,t)=>{const{formItemCls:n}=e;return{[`${t}-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"}}}}},Vde=e=>{const{componentCls:t,formItemCls:n,inlineItemMarginBottom:r}=e;return{[`${t}-inline`]:{display:"flex",flexWrap:"wrap",[n]:{flex:"none",marginInlineEnd:e.margin,marginBottom:r,"&-row":{flexWrap:"nowrap"},[`> ${n}-label,
> ${n}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${n}-label`]:{flex:"none"},[`${t}-text`]:{display:"inline-block"},[`${n}-has-feedback`]:{display:"inline-block"}}}}},Za=e=>({padding:e.verticalLabelPadding,margin:e.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),GB=e=>{const{componentCls:t,formItemCls:n,rootPrefixCls:r}=e;return{[`${n} ${n}-label`]:Za(e),[`${t}:not(${t}-inline)`]:{[n]:{flexWrap:"wrap",[`${n}-label, ${n}-control`]:{[`&:not([class*=" ${r}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},Gde=e=>{const{componentCls:t,formItemCls:n,antCls:r}=e;return{[`${t}-vertical`]:{[`${n}:not(${n}-horizontal)`]:{[`${n}-row`]:{flexDirection:"column"},[`${n}-label > label`]:{height:"auto"},[`${n}-control`]:{width:"100%"},[`${n}-label,
${r}-col-24${n}-label,
${r}-col-xl-24${n}-label`]:Za(e)}},[`@media (max-width: ${ae(e.screenXSMax)})`]:[GB(e),{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-xs-24${n}-label`]:Za(e)}}}],[`@media (max-width: ${ae(e.screenSMMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-sm-24${n}-label`]:Za(e)}}},[`@media (max-width: ${ae(e.screenMDMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-md-24${n}-label`]:Za(e)}}},[`@media (max-width: ${ae(e.screenLGMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-lg-24${n}-label`]:Za(e)}}}}},qde=e=>{const{formItemCls:t,antCls:n}=e;return{[`${t}-vertical`]:{[`${t}-row`]:{flexDirection:"column"},[`${t}-label > label`]:{height:"auto"},[`${t}-control`]:{width:"100%"}},[`${t}-vertical ${t}-label,
${n}-col-24${t}-label,
${n}-col-xl-24${t}-label`]:Za(e),[`@media (max-width: ${ae(e.screenXSMax)})`]:[GB(e),{[t]:{[`${n}-col-xs-24${t}-label`]:Za(e)}}],[`@media (max-width: ${ae(e.screenSMMax)})`]:{[t]:{[`${n}-col-sm-24${t}-label`]:Za(e)}},[`@media (max-width: ${ae(e.screenMDMax)})`]:{[t]:{[`${n}-col-md-24${t}-label`]:Za(e)}},[`@media (max-width: ${ae(e.screenLGMax)})`]:{[t]:{[`${n}-col-lg-24${t}-label`]:Za(e)}}}},Xde=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}),qB=(e,t)=>hn(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:t}),S8=Fn("Form",(e,t)=>{let{rootPrefixCls:n}=t;const r=qB(e,n);return[Ude(r),Kde(r),zde(r),kI(r,r.componentCls),kI(r,r.formItemCls),Vde(r),Gde(r),qde(r),Fb(r),A3]},Xde,{order:-1e3}),$I=[];function Y4(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof e=="string"?e:`${t}-${r}`,error:e,errorStatus:n}}const XB=e=>{let{help:t,helpStatus:n,errors:r=$I,warnings:i=$I,className:o,fieldId:a,onVisibleChanged:l}=e;const{prefixCls:c}=d.useContext(H3),u=`${c}-item-explain`,p=Gr(c),[h,m,g]=S8(c,p),b=d.useMemo(()=>Xh(c),[c]),E=Cy(r),x=Cy(i),S=d.useMemo(()=>t!=null?[Y4(t,"help",n)]:[].concat(Xe(E.map((O,k)=>Y4(O,"error","error",k))),Xe(x.map((O,k)=>Y4(O,"warning","warning",k)))),[t,n,E,x]),C=d.useMemo(()=>{const O={};return S.forEach(k=>{let{key:T}=k;O[T]=(O[T]||0)+1}),S.map((k,T)=>Object.assign(Object.assign({},k),{key:O[k.key]>1?`${k.key}-fallback-${T}`:k.key}))},[S]),_={};return a&&(_.id=`${a}_help`),h(d.createElement(la,{motionDeadline:b.motionDeadline,motionName:`${c}-show-help`,visible:!!C.length,onVisibleChanged:l},O=>{const{className:k,style:T}=O;return d.createElement("div",Object.assign({},_,{className:le(u,k,g,p,o,m),style:T,role:"alert"}),d.createElement(_3,Object.assign({keys:C},Xh(c),{motionName:`${c}-show-help-item`,component:!1}),I=>{const{key:$,error:M,errorStatus:R,className:j,style:D}=I;return d.createElement("div",{key:$,className:le(j,{[`${u}-${R}`]:R}),style:D},M)}))}))},Yde=["parentNode"],Qde="form_item";function ih(e){return e===void 0||e===!1?[]:Array.isArray(e)?e:[e]}function YB(e,t){if(!e.length)return;const n=e.join("_");return t?`${t}_${n}`:Yde.includes(n)?`${Qde}_${n}`:n}function QB(e,t,n,r,i,o){let a=r;return o!==void 0?a=o:n.validating?a="validating":e.length?a="error":t.length?a="warning":(n.touched||i&&n.validated)&&(a="success"),a}function NI(e){return ih(e).join("_")}function AI(e,t){const n=t.getFieldInstance(e),r=fb(n);if(r)return r;const i=YB(ih(e),t.__INTERNAL__.name);if(i)return document.getElementById(i)}function ZB(e){const[t]=j3(),n=d.useRef({}),r=d.useMemo(()=>e??Object.assign(Object.assign({},t),{__INTERNAL__:{itemRef:i=>o=>{const a=NI(i);o?n.current[a]=o:delete n.current[a]}},scrollToField:function(i){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const a=AI(i,r);a&&mee(a,Object.assign({scrollMode:"if-needed",block:"nearest"},o))},focusField:i=>{var o;const a=AI(i,r);a&&((o=a.focus)===null||o===void 0||o.call(a))},getFieldInstance:i=>{const o=NI(i);return n.current[o]}}),[e,t]);return[r]}var Zde=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 Jde=(e,t)=>{const n=d.useContext(Ia),{getPrefixCls:r,direction:i,form:o}=d.useContext(At),{prefixCls:a,className:l,rootClassName:c,size:u,disabled:p=n,form:h,colon:m,labelAlign:g,labelWrap:b,labelCol:E,wrapperCol:x,hideRequiredMark:S,layout:C="horizontal",scrollToFirstError:_,requiredMark:O,onFinishFailed:k,name:T,style:I,feedbackIcons:$,variant:M}=e,R=Zde(e,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons","variant"]),j=go(u),D=d.useContext(OL),L=d.useMemo(()=>O!==void 0?O:S?!1:o&&o.requiredMark!==void 0?o.requiredMark:!0,[S,O,o]),B=m??(o==null?void 0:o.colon),H=r("form",a),W=Gr(H),[z,V,X]=S8(H,W),A=le(H,`${H}-${C}`,{[`${H}-hide-required-mark`]:L===!1,[`${H}-rtl`]:i==="rtl",[`${H}-${j}`]:j},X,W,V,o==null?void 0:o.className,l,c),[P]=ZB(h),{__INTERNAL__:Y}=P;Y.name=T;const U=d.useMemo(()=>({name:T,labelAlign:g,labelCol:E,labelWrap:b,wrapperCol:x,vertical:C==="vertical",colon:B,requiredMark:L,itemRef:Y.itemRef,form:P,feedbackIcons:$}),[T,g,E,x,C,B,L,P,$]),Q=d.useRef(null);d.useImperativeHandle(t,()=>{var ne;return Object.assign(Object.assign({},P),{nativeElement:(ne=Q.current)===null||ne===void 0?void 0:ne.nativeElement})});const ee=(ne,oe)=>{if(ne){let pe={block:"nearest"};typeof ne=="object"&&(pe=Object.assign(Object.assign({},pe),ne)),P.scrollToField(oe,pe),pe.focus&&P.focusField(oe)}},se=ne=>{if(k==null||k(ne),ne.errorFields.length){const oe=ne.errorFields[0].name;if(_!==void 0){ee(_,oe);return}o&&o.scrollToFirstError!==void 0&&ee(o.scrollToFirstError,oe)}};return z(d.createElement(VD.Provider,{value:M},d.createElement(E3,{disabled:p},d.createElement(Du.Provider,{value:j},d.createElement(KD,{validateMessages:D},d.createElement(ys.Provider,{value:U},d.createElement(u1,Object.assign({id:T},R,{name:T,onFinishFailed:se,form:P,ref:Q,style:Object.assign(Object.assign({},o==null?void 0:o.style),I),className:A}))))))))},efe=d.forwardRef(Jde);function tfe(e){if(typeof e=="function")return e;const t=ii(e);return t.length<=1?t[0]:t}const JB=()=>{const{status:e,errors:t=[],warnings:n=[]}=d.useContext(uo);return{status:e,errors:t,warnings:n}};JB.Context=uo;function nfe(e){const[t,n]=d.useState(e),r=d.useRef(null),i=d.useRef([]),o=d.useRef(!1);d.useEffect(()=>(o.current=!1,()=>{o.current=!0,kn.cancel(r.current),r.current=null}),[]);function a(l){o.current||(r.current===null&&(i.current=[],r.current=kn(()=>{r.current=null,n(c=>{let u=c;return i.current.forEach(p=>{u=p(u)}),u})})),i.current.push(l))}return[t,a]}function rfe(){const{itemRef:e}=d.useContext(ys),t=d.useRef({});function n(r,i){const o=i&&typeof i=="object"&&Pc(i),a=r.join("_");return(t.current.name!==a||t.current.originRef!==o)&&(t.current.name=a,t.current.originRef=o,t.current.ref=Zi(e(r),o)),t.current.ref}return n}const ife=e=>{const{formItemCls:t}=e;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${t}-control`]:{display:"flex"}}}},ofe=s1(["Form","item-item"],(e,t)=>{let{rootPrefixCls:n}=t;const r=qB(e,n);return[ife(r)]});var afe=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 lfe=24,sfe=e=>{const{prefixCls:t,status:n,labelCol:r,wrapperCol:i,children:o,errors:a,warnings:l,_internalItemRender:c,extra:u,help:p,fieldId:h,marginBottom:m,onErrorVisibleChanged:g,label:b}=e,E=`${t}-item`,x=d.useContext(ys),S=d.useMemo(()=>{let B=Object.assign({},i||x.wrapperCol||{});return b===null&&!r&&!i&&x.labelCol&&[void 0,"xs","sm","md","lg","xl","xxl"].forEach(W=>{const z=W?[W]:[],V=lo(x.labelCol,z),X=typeof V=="object"?V:{},A=lo(B,z),P=typeof A=="object"?A:{};"span"in X&&!("offset"in P)&&X.span<lfe&&(B=ma(B,[].concat(z,["offset"]),X.span))}),B},[i,x]),C=le(`${E}-control`,S.className),_=d.useMemo(()=>afe(x,["labelCol","wrapperCol"]),[x]),O=d.useRef(null),[k,T]=d.useState(0);xn(()=>{u&&O.current?T(O.current.clientHeight):T(0)},[u]);const I=d.createElement("div",{className:`${E}-control-input`},d.createElement("div",{className:`${E}-control-input-content`},o)),$=d.useMemo(()=>({prefixCls:t,status:n}),[t,n]),M=m!==null||a.length||l.length?d.createElement(H3.Provider,{value:$},d.createElement(XB,{fieldId:h,errors:a,warnings:l,help:p,helpStatus:n,className:`${E}-explain-connected`,onVisibleChanged:g})):null,R={};h&&(R.id=`${h}_extra`);const j=u?d.createElement("div",Object.assign({},R,{className:`${E}-extra`,ref:O}),u):null,D=M||j?d.createElement("div",{className:`${E}-additional`,style:m?{minHeight:m+k}:{}},M,j):null,L=c&&c.mark==="pro_table_render"&&c.render?c.render(e,{input:I,errorList:M,extra:j}):d.createElement(d.Fragment,null,I,D);return d.createElement(ys.Provider,{value:_},d.createElement(b8,Object.assign({},S,{className:C}),L),d.createElement(ofe,{prefixCls:t}))};var cfe={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"},ufe=function(t,n){return d.createElement(bn,Ve({},t,{ref:n,icon:cfe}))},dfe=d.forwardRef(ufe),ffe=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 pfe(e){return e?typeof e=="object"&&!d.isValidElement(e)?e:{title:e}:null}const hfe=e=>{let{prefixCls:t,label:n,htmlFor:r,labelCol:i,labelAlign:o,colon:a,required:l,requiredMark:c,tooltip:u,vertical:p}=e;var h;const[m]=jl("Form"),{labelAlign:g,labelCol:b,labelWrap:E,colon:x}=d.useContext(ys);if(!n)return null;const S=i||b||{},C=o||g,_=`${t}-item-label`,O=le(_,C==="left"&&`${_}-left`,S.className,{[`${_}-wrap`]:!!E});let k=n;const T=a===!0||x!==!1&&a!==!1;T&&!p&&typeof n=="string"&&n.trim()&&(k=n.replace(/[:|]\s*$/,""));const $=pfe(u);if($){const{icon:D=d.createElement(dfe,null)}=$,L=ffe($,["icon"]),B=d.createElement(cl,Object.assign({},L),d.cloneElement(D,{className:`${t}-item-tooltip`,title:"",onClick:H=>{H.preventDefault()},tabIndex:null}));k=d.createElement(d.Fragment,null,k,B)}const M=c==="optional",R=typeof c=="function";R?k=c(k,{required:!!l}):M&&!l&&(k=d.createElement(d.Fragment,null,k,d.createElement("span",{className:`${t}-item-optional`,title:""},(m==null?void 0:m.optional)||((h=Pl.Form)===null||h===void 0?void 0:h.optional))));const j=le({[`${t}-item-required`]:l,[`${t}-item-required-mark-optional`]:M||R,[`${t}-item-no-colon`]:!T});return d.createElement(b8,Object.assign({},S,{className:O}),d.createElement("label",{htmlFor:r,className:j,title:typeof n=="string"?n:""},k))},mfe={success:wm,warning:Ab,error:Gu,validating:Ec};function ej(e){let{children:t,errors:n,warnings:r,hasFeedback:i,validateStatus:o,prefixCls:a,meta:l,noStyle:c}=e;const u=`${a}-item`,{feedbackIcons:p}=d.useContext(ys),h=QB(n,r,l,null,!!i,o),{isFormItemInput:m,status:g,hasFeedback:b,feedbackIcon:E}=d.useContext(uo),x=d.useMemo(()=>{var S;let C;if(i){const O=i!==!0&&i.icons||p,k=h&&((S=O==null?void 0:O({status:h,errors:n,warnings:r}))===null||S===void 0?void 0:S[h]),T=h&&mfe[h];C=k!==!1&&T?d.createElement("span",{className:le(`${u}-feedback-icon`,`${u}-feedback-icon-${h}`)},k||d.createElement(T,null)):null}const _={status:h||"",errors:n,warnings:r,hasFeedback:!!i,feedbackIcon:C,isFormItemInput:!0};return c&&(_.status=(h??g)||"",_.isFormItemInput=m,_.hasFeedback=!!(i??b),_.feedbackIcon=i!==void 0?_.feedbackIcon:E),_},[h,i,c,m,g]);return d.createElement(uo.Provider,{value:x},t)}var gfe=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 vfe(e){const{prefixCls:t,className:n,rootClassName:r,style:i,help:o,errors:a,warnings:l,validateStatus:c,meta:u,hasFeedback:p,hidden:h,children:m,fieldId:g,required:b,isRequired:E,onSubItemMetaChange:x,layout:S}=e,C=gfe(e,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange","layout"]),_=`${t}-item`,{requiredMark:O,vertical:k}=d.useContext(ys),T=k||S==="vertical",I=d.useRef(null),$=Cy(a),M=Cy(l),R=o!=null,j=!!(R||a.length||l.length),D=!!I.current&&Om(I.current),[L,B]=d.useState(null);xn(()=>{if(j&&I.current){const X=getComputedStyle(I.current);B(parseInt(X.marginBottom,10))}},[j,D]);const H=X=>{X||B(null)},z=function(){let X=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const A=X?$:u.errors,P=X?M:u.warnings;return QB(A,P,u,"",!!p,c)}(),V=le(_,n,r,{[`${_}-with-help`]:R||$.length||M.length,[`${_}-has-feedback`]:z&&p,[`${_}-has-success`]:z==="success",[`${_}-has-warning`]:z==="warning",[`${_}-has-error`]:z==="error",[`${_}-is-validating`]:z==="validating",[`${_}-hidden`]:h,[`${_}-${S}`]:S});return d.createElement("div",{className:V,style:i,ref:I},d.createElement(LB,Object.assign({className:`${_}-row`},ir(C,["_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"])),d.createElement(hfe,Object.assign({htmlFor:g},e,{requiredMark:O,required:b??E,prefixCls:t,vertical:T})),d.createElement(sfe,Object.assign({},e,u,{errors:$,warnings:M,prefixCls:t,status:z,help:o,marginBottom:L,onErrorVisibleChanged:H}),d.createElement(UD.Provider,{value:x},d.createElement(ej,{prefixCls:t,meta:u,errors:u.errors,warnings:u.warnings,hasFeedback:p,validateStatus:z},m)))),!!L&&d.createElement("div",{className:`${_}-margin-offset`,style:{marginBottom:-L}}))}const yfe="__SPLIT__";function bfe(e,t){const n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every(i=>{const o=e[i],a=t[i];return o===a||typeof o=="function"||typeof a=="function"})}const Cfe=d.memo(e=>{let{children:t}=e;return t},(e,t)=>bfe(e.control,t.control)&&e.update===t.update&&e.childProps.length===t.childProps.length&&e.childProps.every((n,r)=>n===t.childProps[r]));function RI(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function Sfe(e){const{name:t,noStyle:n,className:r,dependencies:i,prefixCls:o,shouldUpdate:a,rules:l,children:c,required:u,label:p,messageVariables:h,trigger:m="onChange",validateTrigger:g,hidden:b,help:E,layout:x}=e,{getPrefixCls:S}=d.useContext(At),{name:C}=d.useContext(ys),_=tfe(c),O=typeof _=="function",k=d.useContext(UD),{validateTrigger:T}=d.useContext(ju),I=g!==void 0?g:T,$=t!=null,M=S("form",o),R=Gr(M),[j,D,L]=S8(M,R);Lc();const B=d.useContext(Zh),H=d.useRef(null),[W,z]=nfe({}),[V,X]=Fu(()=>RI()),A=ne=>{const oe=B==null?void 0:B.getKey(ne.name);if(X(ne.destroy?RI():ne,!0),n&&E!==!1&&k){let pe=ne.name;if(ne.destroy)pe=H.current||pe;else if(oe!==void 0){const[be,ue]=oe;pe=[be].concat(Xe(ue)),H.current=pe}k(ne,pe)}},P=(ne,oe)=>{z(pe=>{const be=Object.assign({},pe),de=[].concat(Xe(ne.name.slice(0,-1)),Xe(oe)).join(yfe);return ne.destroy?delete be[de]:be[de]=ne,be})},[Y,U]=d.useMemo(()=>{const ne=Xe(V.errors),oe=Xe(V.warnings);return Object.values(W).forEach(pe=>{ne.push.apply(ne,Xe(pe.errors||[])),oe.push.apply(oe,Xe(pe.warnings||[]))}),[ne,oe]},[W,V.errors,V.warnings]),Q=rfe();function ee(ne,oe,pe){return n&&!b?d.createElement(ej,{prefixCls:M,hasFeedback:e.hasFeedback,validateStatus:e.validateStatus,meta:V,errors:Y,warnings:U,noStyle:!0},ne):d.createElement(vfe,Object.assign({key:"row"},e,{className:le(r,L,R,D),prefixCls:M,fieldId:oe,isRequired:pe,errors:Y,warnings:U,meta:V,onSubItemMetaChange:P,layout:x}),ne)}if(!$&&!O&&!i)return j(ee(_));let se={};return typeof p=="string"?se.label=p:t&&(se.label=String(t)),h&&(se=Object.assign(Object.assign({},se),h)),j(d.createElement(B3,Object.assign({},e,{messageVariables:se,trigger:m,validateTrigger:I,onMetaChange:A}),(ne,oe,pe)=>{const be=ih(t).length&&oe?oe.name:[],ue=YB(be,C),de=u!==void 0?u:!!(l!=null&&l.some(ge=>{if(ge&&typeof ge=="object"&&ge.required&&!ge.warningOnly)return!0;if(typeof ge=="function"){const Ae=ge(pe);return(Ae==null?void 0:Ae.required)&&!(Ae!=null&&Ae.warningOnly)}return!1})),re=Object.assign({},ne);let me=null;if(Array.isArray(_)&&$)me=_;else if(!(O&&(!(a||i)||$))){if(!(i&&!O&&!$))if(d.isValidElement(_)){const ge=Object.assign(Object.assign({},_.props),re);if(ge.id||(ge.id=ue),E||Y.length>0||U.length>0||e.extra){const ze=[];(E||Y.length>0)&&ze.push(`${ue}_help`),e.extra&&ze.push(`${ue}_extra`),ge["aria-describedby"]=ze.join(" ")}Y.length>0&&(ge["aria-invalid"]="true"),de&&(ge["aria-required"]="true"),al(_)&&(ge.ref=Q(be,_)),new Set([].concat(Xe(ih(m)),Xe(ih(I)))).forEach(ze=>{ge[ze]=function(){for(var et,Ie,Te,Ue,Le,je=arguments.length,Ge=new Array(je),qe=0;qe<je;qe++)Ge[qe]=arguments[qe];(Te=re[ze])===null||Te===void 0||(et=Te).call.apply(et,[re].concat(Ge)),(Le=(Ue=_.props)[ze])===null||Le===void 0||(Ie=Le).call.apply(Ie,[Ue].concat(Ge))}});const De=[ge["aria-required"],ge["aria-invalid"],ge["aria-describedby"]];me=d.createElement(Cfe,{control:re,update:_,childProps:De},vi(_,ge))}else O&&(a||i)&&!$?me=_(pe):me=_}return ee(me,ue,de)}))}const tj=Sfe;tj.useStatus=JB;var Efe=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 xfe=e=>{var{prefixCls:t,children:n}=e,r=Efe(e,["prefixCls","children"]);const{getPrefixCls:i}=d.useContext(At),o=i("form",t),a=d.useMemo(()=>({prefixCls:o,status:"error"}),[o]);return d.createElement(jD,Object.assign({},r),(l,c,u)=>d.createElement(H3.Provider,{value:a},n(l.map(p=>Object.assign(Object.assign({},p),{fieldKey:p.key})),c,{errors:u.errors,warnings:u.warnings})))};function wfe(){const{form:e}=d.useContext(ys);return e}const Mn=efe;Mn.Item=tj;Mn.List=xfe;Mn.ErrorList=XB;Mn.useForm=ZB;Mn.useFormInstance=wfe;Mn.useWatch=WD;Mn.Provider=KD;Mn.create=()=>{};function rg(e,t,n,r){var i=Dh.unstable_batchedUpdates?function(a){Dh.unstable_batchedUpdates(n,a)}:n;return e!=null&&e.addEventListener&&e.addEventListener(t,i,r),{remove:function(){e!=null&&e.removeEventListener&&e.removeEventListener(t,i,r)}}}function _fe(e,t,n){return typeof n=="boolean"?n:e.length?!0:ii(t).some(i=>i.type===lB)}var nj=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 a2(e){let{suffixCls:t,tagName:n,displayName:r}=e;return i=>d.forwardRef((a,l)=>d.createElement(i,Object.assign({ref:l,suffixCls:t,tagName:n},a)))}const E8=d.forwardRef((e,t)=>{const{prefixCls:n,suffixCls:r,className:i,tagName:o}=e,a=nj(e,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:l}=d.useContext(At),c=l("layout",n),[u,p,h]=aB(c),m=r?`${c}-${r}`:c;return u(d.createElement(o,Object.assign({className:le(n||m,i,p,h),ref:t},a)))}),Tfe=d.forwardRef((e,t)=>{const{direction:n}=d.useContext(At),[r,i]=d.useState([]),{prefixCls:o,className:a,rootClassName:l,children:c,hasSider:u,tagName:p,style:h}=e,m=nj(e,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),g=ir(m,["suffixCls"]),{getPrefixCls:b,layout:E}=d.useContext(At),x=b("layout",o),S=_fe(r,c,u),[C,_,O]=aB(x),k=le(x,{[`${x}-has-sider`]:S,[`${x}-rtl`]:n==="rtl"},E==null?void 0:E.className,a,l,_,O),T=d.useMemo(()=>({siderHook:{addSider:I=>{i($=>[].concat(Xe($),[I]))},removeSider:I=>{i($=>$.filter(M=>M!==I))}}}),[]);return C(d.createElement(rB.Provider,{value:T},d.createElement(p,Object.assign({ref:t,className:k,style:Object.assign(Object.assign({},E==null?void 0:E.style),h)},g),c)))}),Ofe=a2({tagName:"div",displayName:"Layout"})(Tfe),Ife=a2({suffixCls:"header",tagName:"header",displayName:"Header"})(E8),kfe=a2({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(E8),$fe=a2({suffixCls:"content",tagName:"main",displayName:"Content"})(E8),Lo=Ofe;Lo.Header=Ife;Lo.Footer=kfe;Lo.Content=$fe;Lo.Sider=lB;Lo._InternalSiderContext=t2;const rj=function(){const e=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let t=1;t<arguments.length;t++){const n=t<0||arguments.length<=t?void 0:arguments[t];n&&Object.keys(n).forEach(r=>{const i=n[r];i!==void 0&&(e[r]=i)})}return e};var Nfe={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"},Afe=function(t,n){return d.createElement(bn,Ve({},t,{ref:n,icon:Nfe}))},MI=d.forwardRef(Afe),Rfe={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"},Mfe=function(t,n){return d.createElement(bn,Ve({},t,{ref:n,icon:Rfe}))},PI=d.forwardRef(Mfe),Pfe={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:"页码"},Lfe=[10,20,50,100],Dfe=function(t){var n=t.pageSizeOptions,r=n===void 0?Lfe:n,i=t.locale,o=t.changeSize,a=t.pageSize,l=t.goButton,c=t.quickGo,u=t.rootPrefixCls,p=t.disabled,h=t.buildOptionText,m=t.showSizeChanger,g=t.sizeChangerRender,b=fe.useState(""),E=_e(b,2),x=E[0],S=E[1],C=function(){return!x||Number.isNaN(x)?void 0:Number(x)},_=typeof h=="function"?h:function(D){return"".concat(D," ").concat(i.items_per_page)},O=function(L){S(L.target.value)},k=function(L){l||x===""||(S(""),!(L.relatedTarget&&(L.relatedTarget.className.indexOf("".concat(u,"-item-link"))>=0||L.relatedTarget.className.indexOf("".concat(u,"-item"))>=0))&&(c==null||c(C())))},T=function(L){x!==""&&(L.keyCode===lt.ENTER||L.type==="click")&&(S(""),c==null||c(C()))},I=function(){return r.some(function(L){return L.toString()===a.toString()})?r:r.concat([a]).sort(function(L,B){var H=Number.isNaN(Number(L))?0:Number(L),W=Number.isNaN(Number(B))?0:Number(B);return H-W})},$="".concat(u,"-options");if(!m&&!c)return null;var M=null,R=null,j=null;return m&&g&&(M=g({disabled:p,size:a,onSizeChange:function(L){o==null||o(Number(L))},"aria-label":i.page_size,className:"".concat($,"-size-changer"),options:I().map(function(D){return{label:_(D),value:D}})})),c&&(l&&(j=typeof l=="boolean"?fe.createElement("button",{type:"button",onClick:T,onKeyUp:T,disabled:p,className:"".concat($,"-quick-jumper-button")},i.jump_to_confirm):fe.createElement("span",{onClick:T,onKeyUp:T},l)),R=fe.createElement("div",{className:"".concat($,"-quick-jumper")},i.jump_to,fe.createElement("input",{disabled:p,type:"text",value:x,onChange:O,onKeyUp:T,onBlur:k,"aria-label":i.page}),i.page,j)),fe.createElement("li",{className:$},M,R)},yp=function(t){var n,r=t.rootPrefixCls,i=t.page,o=t.active,a=t.className,l=t.showTitle,c=t.onClick,u=t.onKeyPress,p=t.itemRender,h="".concat(r,"-item"),m=le(h,"".concat(h,"-").concat(i),(n={},J(n,"".concat(h,"-active"),o),J(n,"".concat(h,"-disabled"),!i),n),a),g=function(){c(i)},b=function(S){u(S,c,i)},E=p(i,"page",fe.createElement("a",{rel:"nofollow"},i));return E?fe.createElement("li",{title:l?String(i):null,className:m,onClick:g,onKeyDown:b,tabIndex:0},E):null},Ffe=function(t,n,r){return r};function LI(){}function DI(e){var t=Number(e);return typeof t=="number"&&!Number.isNaN(t)&&isFinite(t)&&Math.floor(t)===t}function eu(e,t,n){var r=typeof e>"u"?t:e;return Math.floor((n-1)/r)+1}var Bfe=function(t){var n,r=t.prefixCls,i=r===void 0?"rc-pagination":r,o=t.selectPrefixCls,a=o===void 0?"rc-select":o,l=t.className,c=t.current,u=t.defaultCurrent,p=u===void 0?1:u,h=t.total,m=h===void 0?0:h,g=t.pageSize,b=t.defaultPageSize,E=b===void 0?10:b,x=t.onChange,S=x===void 0?LI:x,C=t.hideOnSinglePage,_=t.align,O=t.showPrevNextJumpers,k=O===void 0?!0:O,T=t.showQuickJumper,I=t.showLessItems,$=t.showTitle,M=$===void 0?!0:$,R=t.onShowSizeChange,j=R===void 0?LI:R,D=t.locale,L=D===void 0?Pfe:D,B=t.style,H=t.totalBoundaryShowSizeChanger,W=H===void 0?50:H,z=t.disabled,V=t.simple,X=t.showTotal,A=t.showSizeChanger,P=A===void 0?m>W:A,Y=t.sizeChangerRender,U=t.pageSizeOptions,Q=t.itemRender,ee=Q===void 0?Ffe:Q,se=t.jumpPrevIcon,ne=t.jumpNextIcon,oe=t.prevIcon,pe=t.nextIcon,be=fe.useRef(null),ue=_r(10,{value:g,defaultValue:E}),de=_e(ue,2),re=de[0],me=de[1],ge=_r(1,{value:c,defaultValue:p,postState:function(Kt){return Math.max(1,Math.min(Kt,eu(void 0,re,m)))}}),Ae=_e(ge,2),De=Ae[0],ze=Ae[1],et=fe.useState(De),Ie=_e(et,2),Te=Ie[0],Ue=Ie[1];d.useEffect(function(){Ue(De)},[De]);var Le=Math.max(1,De-(I?3:5)),je=Math.min(eu(void 0,re,m),De+(I?3:5));function Ge(Ze,Kt){var ln=Ze||fe.createElement("button",{type:"button","aria-label":Kt,className:"".concat(i,"-item-link")});return typeof Ze=="function"&&(ln=fe.createElement(Ze,te({},t))),ln}function qe(Ze){var Kt=Ze.target.value,ln=eu(void 0,re,m),dn;return Kt===""?dn=Kt:Number.isNaN(Number(Kt))?dn=Te:Kt>=ln?dn=ln:dn=Number(Kt),dn}function Ce(Ze){return DI(Ze)&&Ze!==De&&DI(m)&&m>0}var ke=m>re?T:!1;function We(Ze){(Ze.keyCode===lt.UP||Ze.keyCode===lt.DOWN)&&Ze.preventDefault()}function Pe(Ze){var Kt=qe(Ze);switch(Kt!==Te&&Ue(Kt),Ze.keyCode){case lt.ENTER:Qe(Kt);break;case lt.UP:Qe(Kt-1);break;case lt.DOWN:Qe(Kt+1);break}}function Be(Ze){Qe(qe(Ze))}function He(Ze){var Kt=eu(Ze,re,m),ln=De>Kt&&Kt!==0?Kt:De;me(Ze),Ue(ln),j==null||j(De,Ze),ze(ln),S==null||S(ln,Ze)}function Qe(Ze){if(Ce(Ze)&&!z){var Kt=eu(void 0,re,m),ln=Ze;return Ze>Kt?ln=Kt:Ze<1&&(ln=1),ln!==Te&&Ue(ln),ze(ln),S==null||S(ln,re),ln}return De}var ie=De>1,xe=De<eu(void 0,re,m);function Ne(){ie&&Qe(De-1)}function $e(){xe&&Qe(De+1)}function Ye(){Qe(Le)}function ht(){Qe(je)}function It(Ze,Kt){if(Ze.key==="Enter"||Ze.charCode===lt.ENTER||Ze.keyCode===lt.ENTER){for(var ln=arguments.length,dn=new Array(ln>2?ln-2:0),Vn=2;Vn<ln;Vn++)dn[Vn-2]=arguments[Vn];Kt.apply(void 0,dn)}}function Jt(Ze){It(Ze,Ne)}function Vt(Ze){It(Ze,$e)}function en(Ze){It(Ze,Ye)}function rn(Ze){It(Ze,ht)}function Gt(Ze){var Kt=ee(Ze,"prev",Ge(oe,"prev page"));return fe.isValidElement(Kt)?fe.cloneElement(Kt,{disabled:!ie}):Kt}function Ft(Ze){var Kt=ee(Ze,"next",Ge(pe,"next page"));return fe.isValidElement(Kt)?fe.cloneElement(Kt,{disabled:!xe}):Kt}function bt(Ze){(Ze.type==="click"||Ze.keyCode===lt.ENTER)&&Qe(Te)}var gt=null,ft=Oi(t,{aria:!0,data:!0}),he=X&&fe.createElement("li",{className:"".concat(i,"-total-text")},X(m,[m===0?0:(De-1)*re+1,De*re>m?m:De*re])),we=null,ve=eu(void 0,re,m);if(C&&m<=re)return null;var Me=[],Je={rootPrefixCls:i,onClick:Qe,onKeyPress:It,showTitle:M,itemRender:ee,page:-1},tt=De-1>0?De-1:0,st=De+1<ve?De+1:ve,at=T&&T.goButton,it=Nt(V)==="object"?V.readOnly:!V,nt=at,ct=null;V&&(at&&(typeof at=="boolean"?nt=fe.createElement("button",{type:"button",onClick:bt,onKeyUp:bt},L.jump_to_confirm):nt=fe.createElement("span",{onClick:bt,onKeyUp:bt},at),nt=fe.createElement("li",{title:M?"".concat(L.jump_to).concat(De,"/").concat(ve):null,className:"".concat(i,"-simple-pager")},nt)),ct=fe.createElement("li",{title:M?"".concat(De,"/").concat(ve):null,className:"".concat(i,"-simple-pager")},it?Te:fe.createElement("input",{type:"text",value:Te,disabled:z,onKeyDown:We,onKeyUp:Pe,onChange:Pe,onBlur:Be,size:3}),fe.createElement("span",{className:"".concat(i,"-slash")},"/"),ve));var mt=I?1:2;if(ve<=3+mt*2){ve||Me.push(fe.createElement(yp,Ve({},Je,{key:"noPager",page:1,className:"".concat(i,"-item-disabled")})));for(var St=1;St<=ve;St+=1)Me.push(fe.createElement(yp,Ve({},Je,{key:St,page:St,active:De===St})))}else{var Zt=I?L.prev_3:L.prev_5,Lt=I?L.next_3:L.next_5,Pt=ee(Le,"jump-prev",Ge(se,"prev page")),vt=ee(je,"jump-next",Ge(ne,"next page"));k&&(gt=Pt?fe.createElement("li",{title:M?Zt:null,key:"prev",onClick:Ye,tabIndex:0,onKeyDown:en,className:le("".concat(i,"-jump-prev"),J({},"".concat(i,"-jump-prev-custom-icon"),!!se))},Pt):null,we=vt?fe.createElement("li",{title:M?Lt:null,key:"next",onClick:ht,tabIndex:0,onKeyDown:rn,className:le("".concat(i,"-jump-next"),J({},"".concat(i,"-jump-next-custom-icon"),!!ne))},vt):null);var dt=Math.max(1,De-mt),ot=Math.min(De+mt,ve);De-1<=mt&&(ot=1+mt*2),ve-De<=mt&&(dt=ve-mt*2);for(var Xt=dt;Xt<=ot;Xt+=1)Me.push(fe.createElement(yp,Ve({},Je,{key:Xt,page:Xt,active:De===Xt})));if(De-1>=mt*2&&De!==3&&(Me[0]=fe.cloneElement(Me[0],{className:le("".concat(i,"-item-after-jump-prev"),Me[0].props.className)}),Me.unshift(gt)),ve-De>=mt*2&&De!==ve-2){var Dt=Me[Me.length-1];Me[Me.length-1]=fe.cloneElement(Dt,{className:le("".concat(i,"-item-before-jump-next"),Dt.props.className)}),Me.push(we)}dt!==1&&Me.unshift(fe.createElement(yp,Ve({},Je,{key:1,page:1}))),ot!==ve&&Me.push(fe.createElement(yp,Ve({},Je,{key:ve,page:ve})))}var xt=Gt(tt);if(xt){var Tt=!ie||!ve;xt=fe.createElement("li",{title:M?L.prev_page:null,onClick:Ne,tabIndex:Tt?null:0,onKeyDown:Jt,className:le("".concat(i,"-prev"),J({},"".concat(i,"-disabled"),Tt)),"aria-disabled":Tt},xt)}var tn=Ft(st);if(tn){var mn,Sn;V?(mn=!xe,Sn=ie?0:null):(mn=!xe||!ve,Sn=mn?null:0),tn=fe.createElement("li",{title:M?L.next_page:null,onClick:$e,tabIndex:Sn,onKeyDown:Vt,className:le("".concat(i,"-next"),J({},"".concat(i,"-disabled"),mn)),"aria-disabled":mn},tn)}var Ke=le(i,l,(n={},J(n,"".concat(i,"-start"),_==="start"),J(n,"".concat(i,"-center"),_==="center"),J(n,"".concat(i,"-end"),_==="end"),J(n,"".concat(i,"-simple"),V),J(n,"".concat(i,"-disabled"),z),n));return fe.createElement("ul",Ve({className:Ke,style:B,ref:be},ft),he,xt,V?ct:Me,tn,fe.createElement(Dfe,{locale:L,rootPrefixCls:i,disabled:z,selectPrefixCls:a,changeSize:He,pageSize:re,pageSizeOptions:U,quickGo:ke?Qe:null,goButton:nt,showSizeChanger:P,sizeChangerRender:Y}))};const jfe=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","&:hover, &:active":{backgroundColor:"transparent"},a:{color:e.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:e.colorBorder,backgroundColor:e.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:e.itemActiveBgDisabled},a:{color:e.itemActiveColorDisabled}}},[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${t}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${t}-simple-pager`]:{color:e.colorTextDisabled},[`${t}-jump-prev, ${t}-jump-next`]:{[`${t}-item-link-icon`]:{opacity:0},[`${t}-item-ellipsis`]:{opacity:1}}},[`&${t}-simple`]:{[`${t}-prev, ${t}-next`]:{[`&${t}-disabled ${t}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},Hfe=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:not(${t}-disabled) ${t}-item:not(${t}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},[`&${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"}}},[`
&${t}-mini ${t}-prev ${t}-item-link,
&${t}-mini ${t}-next ${t}-item-link
`]:{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({},p8(e)),{width:e.paginationMiniQuickJumperInputWidth,height:e.controlHeightSM})}}}},zfe=e=>{const{componentCls:t}=e;return{[`
&${t}-simple ${t}-prev,
&${t}-simple ${t}-next
`]:{height:e.itemSizeSM,lineHeight:ae(e.itemSizeSM),verticalAlign:"top",[`${t}-item-link`]:{height:e.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive},"&::after":{height:e.itemSizeSM,lineHeight:ae(e.itemSizeSM)}}},[`&${t}-simple ${t}-simple-pager`]:{display:"inline-block",height:e.itemSizeSM,marginInlineEnd:e.marginXS,input:{boxSizing:"border-box",height:"100%",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"}}}}},Wfe=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}}},[`
${t}-prev,
${t}-jump-prev,
${t}-jump-next
`]:{marginInlineEnd:e.marginXS},[`
${t}-prev,
${t}-next,
${t}-jump-prev,
${t}-jump-next
`]:{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({},h8(e)),f8(e,{borderColor:e.colorBorder,hoverBorderColor:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadow:e.activeShadow})),{"&[disabled]":Object.assign({},r2(e)),width:e.calc(e.controlHeightLG).mul(1.25).equal(),height:e.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:e.marginXS,marginInlineEnd:e.marginXS})}}}},Ufe=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.colorPrimary},"&:hover":{borderColor:e.colorPrimaryHover},"&:hover a":{color:e.colorPrimaryHover}}}}},Kfe=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},zn(e)),{display:"flex","&-start":{justifyContent:"start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"end"},"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${t}-total-text`]:{display:"inline-block",height:e.itemSize,marginInlineEnd:e.marginXS,lineHeight:ae(e.calc(e.itemSize).sub(2).equal()),verticalAlign:"middle"}}),Ufe(e)),Wfe(e)),zfe(e)),Hfe(e)),jfe(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"}}},Vfe=e=>{const{componentCls:t}=e;return{[`${t}:not(${t}-disabled)`]:{[`${t}-item`]:Object.assign({},Fl(e)),[`${t}-jump-prev, ${t}-jump-next`]:{"&:focus-visible":Object.assign({[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}},Dl(e))},[`${t}-prev, ${t}-next`]:{[`&:focus-visible ${t}-item-link`]:Object.assign({},Dl(e))}}}},ij=e=>Object.assign({itemBg:e.colorBgContainer,itemSize:e.controlHeight,itemSizeSM:e.controlHeightSM,itemActiveBg:e.colorBgContainer,itemLinkBg:e.colorBgContainer,itemActiveColorDisabled:e.colorTextDisabled,itemActiveBgDisabled:e.controlItemBgActiveDisabled,itemInputBg:e.colorBgContainer,miniOptionsSizeChangerTop:0},d8(e)),oj=e=>hn(e,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:e.calc(e.marginXXS).div(2).equal(),paginationMiniQuickJumperInputWidth:e.calc(e.controlHeightLG).mul(1.1).equal(),paginationItemPaddingInline:e.calc(e.marginXXS).mul(1.5).equal(),paginationEllipsisLetterSpacing:e.calc(e.marginXXS).div(2).equal(),paginationSlashMarginInlineStart:e.marginSM,paginationSlashMarginInlineEnd:e.marginSM,paginationEllipsisTextIndent:"0.13em"},u8(e)),Gfe=Fn("Pagination",e=>{const t=oj(e);return[Kfe(t),Vfe(t)]},ij),qfe=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}}}}},Xfe=s1(["Pagination","bordered"],e=>{const t=oj(e);return[qfe(t)]},ij);function FI(e){return d.useMemo(()=>typeof e=="boolean"?[e,{}]:e&&typeof e=="object"?[!0,e]:[void 0,void 0],[e])}var Yfe=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 Qfe=e=>{const{align:t,prefixCls:n,selectPrefixCls:r,className:i,rootClassName:o,style:a,size:l,locale:c,responsive:u,showSizeChanger:p,selectComponentClass:h,pageSizeOptions:m}=e,g=Yfe(e,["align","prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","responsive","showSizeChanger","selectComponentClass","pageSizeOptions"]),{xs:b}=Qb(u),[,E]=Fi(),{getPrefixCls:x,direction:S,pagination:C={}}=d.useContext(At),_=x("pagination",n),[O,k,T]=Gfe(_),I=go(l),$=I==="small"||!!(b&&!I&&u),[M]=jl("Pagination",IL),R=Object.assign(Object.assign({},M),c),[j,D]=FI(p),[L,B]=FI(C.showSizeChanger),H=j??L,W=D??B,z=h||Ro,V=d.useMemo(()=>m?m.map(Q=>Number(Q)):void 0,[m]),X=Q=>{var ee;const{disabled:se,size:ne,onSizeChange:oe,"aria-label":pe,className:be,options:ue}=Q,{className:de,onChange:re}=W||{},me=(ee=ue.find(ge=>String(ge.value)===String(ne)))===null||ee===void 0?void 0:ee.value;return d.createElement(z,Object.assign({disabled:se,showSearch:!0,popupMatchSelectWidth:!1,getPopupContainer:ge=>ge.parentNode,"aria-label":pe,options:ue},W,{value:me,onChange:(ge,Ae)=>{oe==null||oe(ge),re==null||re(ge,Ae)},size:$?"small":"middle",className:le(be,de)}))},A=d.useMemo(()=>{const Q=d.createElement("span",{className:`${_}-item-ellipsis`},"•••"),ee=d.createElement("button",{className:`${_}-item-link`,type:"button",tabIndex:-1},S==="rtl"?d.createElement(Qh,null):d.createElement(my,null)),se=d.createElement("button",{className:`${_}-item-link`,type:"button",tabIndex:-1},S==="rtl"?d.createElement(my,null):d.createElement(Qh,null)),ne=d.createElement("a",{className:`${_}-item-link`},d.createElement("div",{className:`${_}-item-container`},S==="rtl"?d.createElement(PI,{className:`${_}-item-link-icon`}):d.createElement(MI,{className:`${_}-item-link-icon`}),Q)),oe=d.createElement("a",{className:`${_}-item-link`},d.createElement("div",{className:`${_}-item-container`},S==="rtl"?d.createElement(MI,{className:`${_}-item-link-icon`}):d.createElement(PI,{className:`${_}-item-link-icon`}),Q));return{prevIcon:ee,nextIcon:se,jumpPrevIcon:ne,jumpNextIcon:oe}},[S,_]),P=x("select",r),Y=le({[`${_}-${t}`]:!!t,[`${_}-mini`]:$,[`${_}-rtl`]:S==="rtl",[`${_}-bordered`]:E.wireframe},C==null?void 0:C.className,i,o,k,T),U=Object.assign(Object.assign({},C==null?void 0:C.style),a);return O(d.createElement(d.Fragment,null,E.wireframe&&d.createElement(Xfe,{prefixCls:_}),d.createElement(Bfe,Object.assign({},A,g,{style:U,prefixCls:_,selectPrefixCls:P,className:Y,locale:R,pageSizeOptions:V,showSizeChanger:H,sizeChangerRender:X}))))},Sy=100,aj=Sy/5,lj=Sy/2-aj/2,Q4=lj*2*Math.PI,BI=50,jI=e=>{const{dotClassName:t,style:n,hasCircleCls:r}=e;return d.createElement("circle",{className:le(`${t}-circle`,{[`${t}-circle-bg`]:r}),r:lj,cx:BI,cy:BI,strokeWidth:aj,style:n})},Zfe=e=>{let{percent:t,prefixCls:n}=e;const r=`${n}-dot`,i=`${r}-holder`,o=`${i}-hidden`,[a,l]=d.useState(!1);xn(()=>{t!==0&&l(!0)},[t!==0]);const c=Math.max(Math.min(t,100),0);if(!a)return null;const u={strokeDashoffset:`${Q4/4}`,strokeDasharray:`${Q4*c/100} ${Q4*(100-c)/100}`};return d.createElement("span",{className:le(i,`${r}-progress`,c<=0&&o)},d.createElement("svg",{viewBox:`0 0 ${Sy} ${Sy}`,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":c},d.createElement(jI,{dotClassName:r,hasCircleCls:!0}),d.createElement(jI,{dotClassName:r,style:u})))};function Jfe(e){const{prefixCls:t,percent:n=0}=e,r=`${t}-dot`,i=`${r}-holder`,o=`${i}-hidden`;return d.createElement(d.Fragment,null,d.createElement("span",{className:le(i,n>0&&o)},d.createElement("span",{className:le(r,`${t}-dot-spin`)},[1,2,3,4].map(a=>d.createElement("i",{className:`${t}-dot-item`,key:a})))),d.createElement(Zfe,{prefixCls:t,percent:n}))}function e1e(e){const{prefixCls:t,indicator:n,percent:r}=e,i=`${t}-dot`;return n&&d.isValidElement(n)?vi(n,{className:le(n.props.className,i),percent:r}):d.createElement(Jfe,{prefixCls:t,percent:r})}const t1e=new wn("antSpinMove",{to:{opacity:1}}),n1e=new wn("antRotate",{to:{transform:"rotate(405deg)"}}),r1e=e=>{const{componentCls:t,calc:n}=e;return{[t]:Object.assign(Object.assign({},zn(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",top:"50%",transform:"translate(-50%, -50%)",insetInlineStart:"50%"},[`${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:t1e,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:n1e,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"}})}},i1e=e=>{const{controlHeightLG:t,controlHeight:n}=e;return{contentHeight:400,dotSize:t/2,dotSizeSM:t*.35,dotSizeLG:n}},o1e=Fn("Spin",e=>{const t=hn(e,{spinDotDefault:e.colorTextDescription});return[r1e(t)]},i1e),a1e=200,HI=[[30,.05],[70,.03],[96,.01]];function l1e(e,t){const[n,r]=d.useState(0),i=d.useRef(null),o=t==="auto";return d.useEffect(()=>(o&&e&&(r(0),i.current=setInterval(()=>{r(a=>{const l=100-a;for(let c=0;c<HI.length;c+=1){const[u,p]=HI[c];if(a<=u)return a+l*p}return a})},a1e)),()=>{clearInterval(i.current)}),[o,e]),o?n:t}var s1e=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 sj;function c1e(e,t){return!!e&&!!t&&!Number.isNaN(Number(t))}const Fm=e=>{var t;const{prefixCls:n,spinning:r=!0,delay:i=0,className:o,rootClassName:a,size:l="default",tip:c,wrapperClassName:u,style:p,children:h,fullscreen:m=!1,indicator:g,percent:b}=e,E=s1e(e,["prefixCls","spinning","delay","className","rootClassName","size","tip","wrapperClassName","style","children","fullscreen","indicator","percent"]),{getPrefixCls:x,direction:S,spin:C}=d.useContext(At),_=x("spin",n),[O,k,T]=o1e(_),[I,$]=d.useState(()=>r&&!c1e(r,i)),M=l1e(I,b);d.useEffect(()=>{if(r){const W=Iue(i,()=>{$(!0)});return W(),()=>{var z;(z=W==null?void 0:W.cancel)===null||z===void 0||z.call(W)}}$(!1)},[i,r]);const R=d.useMemo(()=>typeof h<"u"&&!m,[h,m]),j=le(_,C==null?void 0:C.className,{[`${_}-sm`]:l==="small",[`${_}-lg`]:l==="large",[`${_}-spinning`]:I,[`${_}-show-text`]:!!c,[`${_}-rtl`]:S==="rtl"},o,!m&&a,k,T),D=le(`${_}-container`,{[`${_}-blur`]:I}),L=(t=g??(C==null?void 0:C.indicator))!==null&&t!==void 0?t:sj,B=Object.assign(Object.assign({},C==null?void 0:C.style),p),H=d.createElement("div",Object.assign({},E,{style:B,className:j,"aria-live":"polite","aria-busy":I}),d.createElement(e1e,{prefixCls:_,indicator:L,percent:M}),c&&(R||m)?d.createElement("div",{className:`${_}-text`},c):null);return O(R?d.createElement("div",Object.assign({},E,{className:le(`${_}-nested-loading`,u,k,T)}),I&&d.createElement("div",{key:"loading"},H),d.createElement("div",{className:D,key:"container"},h)):m?d.createElement("div",{className:le(`${_}-fullscreen`,{[`${_}-fullscreen-show`]:I},a,k,T)},H):H)};Fm.setDefaultIndicator=e=>{sj=e};function u1e(e){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1)&&e==null?[]:Array.isArray(e)?e:[e]}let pa=null,Cu=e=>e(),nm=[],rm={};function zI(){const{getContainer:e,duration:t,rtl:n,maxCount:r,top:i}=rm,o=(e==null?void 0:e())||document.body;return{getContainer:()=>o,duration:t,rtl:n,maxCount:r,top:i}}const d1e=fe.forwardRef((e,t)=>{const{messageConfig:n,sync:r}=e,{getPrefixCls:i}=d.useContext(At),o=rm.prefixCls||i("message"),a=d.useContext(Lie),[l,c]=CD(Object.assign(Object.assign(Object.assign({},n),{prefixCls:o}),a.message));return fe.useImperativeHandle(t,()=>{const u=Object.assign({},l);return Object.keys(u).forEach(p=>{u[p]=function(){return r(),l[p].apply(l,arguments)}}),{instance:u,sync:r}}),c}),f1e=fe.forwardRef((e,t)=>{const[n,r]=fe.useState(zI),i=()=>{r(zI)};fe.useEffect(i,[]);const o=aD(),a=o.getRootPrefixCls(),l=o.getIconPrefixCls(),c=o.getTheme(),u=fe.createElement(d1e,{ref:t,sync:i,messageConfig:n});return fe.createElement(Hl,{prefixCls:a,iconPrefixCls:l,theme:c},o.holderRender?o.holderRender(u):u)});function l2(){if(!pa){const e=document.createDocumentFragment(),t={fragment:e};pa=t,Cu(()=>{O3()(fe.createElement(f1e,{ref:r=>{const{instance:i,sync:o}=r||{};Promise.resolve().then(()=>{!t.instance&&i&&(t.instance=i,t.sync=o,l2())})}}),e)});return}pa.instance&&(nm.forEach(e=>{const{type:t,skipped:n}=e;if(!n)switch(t){case"open":{Cu(()=>{const r=pa.instance.open(Object.assign(Object.assign({},rm),e.config));r==null||r.then(e.resolve),e.setCloseFn(r)});break}case"destroy":Cu(()=>{pa==null||pa.instance.destroy(e.key)});break;default:Cu(()=>{var r;const i=(r=pa.instance)[t].apply(r,Xe(e.args));i==null||i.then(e.resolve),e.setCloseFn(i)})}}),nm=[])}function p1e(e){rm=Object.assign(Object.assign({},rm),e),Cu(()=>{var t;(t=pa==null?void 0:pa.sync)===null||t===void 0||t.call(pa)})}function h1e(e){const t=T3(n=>{let r;const i={type:"open",config:e,resolve:n,setCloseFn:o=>{r=o}};return nm.push(i),()=>{r?Cu(()=>{r()}):i.skipped=!0}});return l2(),t}function m1e(e,t){const n=T3(r=>{let i;const o={type:e,args:t,resolve:r,setCloseFn:a=>{i=a}};return nm.push(o),()=>{i?Cu(()=>{i()}):o.skipped=!0}});return l2(),n}const g1e=e=>{nm.push({type:"destroy",key:e}),l2()},v1e=["success","info","warning","error","loading"],y1e={open:h1e,destroy:g1e,config:p1e,useMessage:Kee,_InternalPanelDoNotUseOrYouWillBeFired:Dee},po=y1e;v1e.forEach(e=>{po[e]=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return m1e(e,n)}});var b1e=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 C1e=e=>{const{prefixCls:t,className:n,closeIcon:r,closable:i,type:o,title:a,children:l,footer:c}=e,u=b1e(e,["prefixCls","className","closeIcon","closable","type","title","children","footer"]),{getPrefixCls:p}=d.useContext(At),h=p(),m=t||p("modal"),g=Gr(h),[b,E,x]=eF(m,g),S=`${m}-confirm`;let C={};return o?C={closable:i??!1,title:"",footer:"",children:d.createElement(nF,Object.assign({},e,{prefixCls:m,confirmPrefixCls:S,rootPrefixCls:h,content:l}))}:C={closable:i??!0,title:a,footer:c!==null&&d.createElement(YD,Object.assign({},e)),children:l},b(d.createElement(MD,Object.assign({prefixCls:m,className:le(E,`${m}-pure-panel`,o&&S,o&&`${S}-${o}`,n,x,g)},u,{closeIcon:XD(m,r),closable:i},C)))},S1e=dF(C1e);function cj(e){return Am(aF(e))}const sa=tF;sa.useModal=Pie;sa.info=function(t){return Am(lF(t))};sa.success=function(t){return Am(sF(t))};sa.error=function(t){return Am(cF(t))};sa.warning=cj;sa.warn=cj;sa.confirm=function(t){return Am(uF(t))};sa.destroyAll=function(){for(;bu.length;){const t=bu.pop();t&&t()}};sa.config=$ie;sa._InternalPanelDoNotUseOrYouWillBeFired=S1e;var E1e={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},x1e=function(){var t=d.useRef([]),n=d.useRef(null);return d.useEffect(function(){var r=Date.now(),i=!1;t.current.forEach(function(o){if(o){i=!0;var a=o.style;a.transitionDuration=".3s, .3s, .3s, .06s",n.current&&r-n.current<100&&(a.transitionDuration="0s, 0s")}}),i&&(n.current=Date.now())}),t.current},WI=0,w1e=co();function _1e(){var e;return w1e?(e=WI,WI+=1):e="TEST_OR_SSR",e}const T1e=function(e){var t=d.useState(),n=_e(t,2),r=n[0],i=n[1];return d.useEffect(function(){i("rc_progress_".concat(_1e()))},[]),e||r};var UI=function(t){var n=t.bg,r=t.children;return d.createElement("div",{style:{width:"100%",height:"100%",background:n}},r)};function KI(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 O1e=d.forwardRef(function(e,t){var n=e.prefixCls,r=e.color,i=e.gradientId,o=e.radius,a=e.style,l=e.ptg,c=e.strokeLinecap,u=e.strokeWidth,p=e.size,h=e.gapDegree,m=r&&Nt(r)==="object",g=m?"#FFF":void 0,b=p/2,E=d.createElement("circle",{className:"".concat(n,"-circle-path"),r:o,cx:b,cy:b,stroke:g,strokeLinecap:c,strokeWidth:u,opacity:l===0?0:1,style:a,ref:t});if(!m)return E;var x="".concat(i,"-conic"),S=h?"".concat(180+h/2,"deg"):"0deg",C=KI(r,(360-h)/360),_=KI(r,1),O="conic-gradient(from ".concat(S,", ").concat(C.join(", "),")"),k="linear-gradient(to ".concat(h?"bottom":"top",", ").concat(_.join(", "),")");return d.createElement(d.Fragment,null,d.createElement("mask",{id:x},E),d.createElement("foreignObject",{x:0,y:0,width:p,height:p,mask:"url(#".concat(x,")")},d.createElement(UI,{bg:k},d.createElement(UI,{bg:O}))))}),Fp=100,Z4=function(t,n,r,i,o,a,l,c,u,p){var h=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,m=r/100*360*((360-a)/360),g=a===0?0:{bottom:0,top:180,left:90,right:-90}[l],b=(100-i)/100*n;u==="round"&&i!==100&&(b+=p/2,b>=n&&(b=n-.01));var E=Fp/2;return{stroke:typeof c=="string"?c:void 0,strokeDasharray:"".concat(n,"px ").concat(t),strokeDashoffset:b+h,transform:"rotate(".concat(o+m+g,"deg)"),transformOrigin:"".concat(E,"px ").concat(E,"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}},I1e=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function VI(e){var t=e??[];return Array.isArray(t)?t:[t]}var k1e=function(t){var n=te(te({},E1e),t),r=n.id,i=n.prefixCls,o=n.steps,a=n.strokeWidth,l=n.trailWidth,c=n.gapDegree,u=c===void 0?0:c,p=n.gapPosition,h=n.trailColor,m=n.strokeLinecap,g=n.style,b=n.className,E=n.strokeColor,x=n.percent,S=Yt(n,I1e),C=Fp/2,_=T1e(r),O="".concat(_,"-gradient"),k=C-a/2,T=Math.PI*2*k,I=u>0?90+u/2:-90,$=T*((360-u)/360),M=Nt(o)==="object"?o:{count:o,gap:2},R=M.count,j=M.gap,D=VI(x),L=VI(E),B=L.find(function(P){return P&&Nt(P)==="object"}),H=B&&Nt(B)==="object",W=H?"butt":m,z=Z4(T,$,0,100,I,u,p,h,W,a),V=x1e(),X=function(){var Y=0;return D.map(function(U,Q){var ee=L[Q]||L[L.length-1],se=Z4(T,$,Y,U,I,u,p,ee,W,a);return Y+=U,d.createElement(O1e,{key:Q,color:ee,ptg:U,radius:k,prefixCls:i,gradientId:O,style:se,strokeLinecap:W,strokeWidth:a,gapDegree:u,ref:function(oe){V[Q]=oe},size:Fp})}).reverse()},A=function(){var Y=Math.round(R*(D[0]/100)),U=100/R,Q=0;return new Array(R).fill(null).map(function(ee,se){var ne=se<=Y-1?L[0]:h,oe=ne&&Nt(ne)==="object"?"url(#".concat(O,")"):void 0,pe=Z4(T,$,Q,U,I,u,p,ne,"butt",a,j);return Q+=($-pe.strokeDashoffset+j)*100/$,d.createElement("circle",{key:se,className:"".concat(i,"-circle-path"),r:k,cx:C,cy:C,stroke:oe,strokeWidth:a,opacity:1,style:pe,ref:function(ue){V[se]=ue}})})};return d.createElement("svg",Ve({className:le("".concat(i,"-circle"),b),viewBox:"0 0 ".concat(Fp," ").concat(Fp),style:g,id:r,role:"presentation"},S),!R&&d.createElement("circle",{className:"".concat(i,"-circle-trail"),r:k,cx:C,cy:C,stroke:h,strokeLinecap:W,strokeWidth:l||a,style:z}),R?A():X())};function yc(e){return!e||e<0?0:e>100?100:e}function Ey(e){let{success:t,successPercent:n}=e,r=n;return t&&"progress"in t&&(r=t.progress),t&&"percent"in t&&(r=t.percent),r}const $1e=e=>{let{percent:t,success:n,successPercent:r}=e;const i=yc(Ey({success:n,successPercent:r}));return[i,yc(yc(t)-i)]},N1e=e=>{let{success:t={},strokeColor:n}=e;const{strokeColor:r}=t;return[r||Ef.green,n||null]},s2=(e,t,n)=>{var r,i,o,a;let l=-1,c=-1;if(t==="step"){const u=n.steps,p=n.strokeWidth;typeof e=="string"||typeof e>"u"?(l=e==="small"?2:14,c=p??8):typeof e=="number"?[l,c]=[e,e]:[l=14,c=8]=Array.isArray(e)?e:[e.width,e.height],l*=u}else if(t==="line"){const u=n==null?void 0:n.strokeWidth;typeof e=="string"||typeof e>"u"?c=u||(e==="small"?6:8):typeof e=="number"?[l,c]=[e,e]:[l=-1,c=8]=Array.isArray(e)?e:[e.width,e.height]}else(t==="circle"||t==="dashboard")&&(typeof e=="string"||typeof e>"u"?[l,c]=e==="small"?[60,60]:[120,120]:typeof e=="number"?[l,c]=[e,e]:Array.isArray(e)&&(l=(i=(r=e[0])!==null&&r!==void 0?r:e[1])!==null&&i!==void 0?i:120,c=(a=(o=e[0])!==null&&o!==void 0?o:e[1])!==null&&a!==void 0?a:120));return[l,c]},A1e=3,R1e=e=>A1e/e*100,M1e=e=>{const{prefixCls:t,trailColor:n=null,strokeLinecap:r="round",gapPosition:i,gapDegree:o,width:a=120,type:l,children:c,success:u,size:p=a,steps:h}=e,[m,g]=s2(p,"circle");let{strokeWidth:b}=e;b===void 0&&(b=Math.max(R1e(m),6));const E={width:m,height:g,fontSize:m*.15+6},x=d.useMemo(()=>{if(o||o===0)return o;if(l==="dashboard")return 75},[o,l]),S=$1e(e),C=i||l==="dashboard"&&"bottom"||void 0,_=Object.prototype.toString.call(e.strokeColor)==="[object Object]",O=N1e({success:u,strokeColor:e.strokeColor}),k=le(`${t}-inner`,{[`${t}-circle-gradient`]:_}),T=d.createElement(k1e,{steps:h,percent:h?S[1]:S,strokeWidth:b,trailWidth:b,strokeColor:h?O[1]:O,strokeLinecap:r,trailColor:n,prefixCls:t,gapDegree:x,gapPosition:C}),I=m<=20,$=d.createElement("div",{className:k,style:E},T,!I&&c);return I?d.createElement(cl,{title:c},$):$},xy="--progress-line-stroke-color",uj="--progress-percent",GI=e=>{const t=e?"100%":"-100%";return new wn(`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}})},P1e=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:Object.assign(Object.assign({},zn(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(${xy})`]},height:"100%",width:`calc(1 / var(${uj}) * 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:GI(),animationDuration:e.progressActiveMotionDuration,animationTimingFunction:e.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${t}-rtl${t}-status-active`]:{[`${t}-bg::before`]:{animationName:GI(!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}}})}},L1e=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"}}}},D1e=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}}}}}},F1e=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{[`${t}-small&-line, ${t}-small&-line ${t}-text ${n}`]:{fontSize:e.fontSizeSM}}}},B1e=e=>({circleTextColor:e.colorText,defaultColor:e.colorInfo,remainingColor:e.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:`${e.fontSize/e.fontSizeSM}em`}),j1e=Fn("Progress",e=>{const t=e.calc(e.marginXXS).div(2).equal(),n=hn(e,{progressStepMarginInlineEnd:t,progressStepMinWidth:t,progressActiveMotionDuration:"2.4s"});return[P1e(n),L1e(n),D1e(n),F1e(n)]},B1e);var H1e=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 z1e=e=>{let t=[];return Object.keys(e).forEach(n=>{const r=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(n=>{let{key:r,value:i}=n;return`${i} ${r}%`}).join(", ")},W1e=(e,t)=>{const{from:n=Ef.blue,to:r=Ef.blue,direction:i=t==="rtl"?"to left":"to right"}=e,o=H1e(e,["from","to","direction"]);if(Object.keys(o).length!==0){const l=z1e(o),c=`linear-gradient(${i}, ${l})`;return{background:c,[xy]:c}}const a=`linear-gradient(${i}, ${n}, ${r})`;return{background:a,[xy]:a}},U1e=e=>{const{prefixCls:t,direction:n,percent:r,size:i,strokeWidth:o,strokeColor:a,strokeLinecap:l="round",children:c,trailColor:u=null,percentPosition:p,success:h}=e,{align:m,type:g}=p,b=a&&typeof a!="string"?W1e(a,n):{[xy]:a,background:a},E=l==="square"||l==="butt"?0:void 0,x=i??[-1,o||(i==="small"?6:8)],[S,C]=s2(x,"line",{strokeWidth:o}),_={backgroundColor:u||void 0,borderRadius:E},O=Object.assign(Object.assign({width:`${yc(r)}%`,height:C,borderRadius:E},b),{[uj]:yc(r)/100}),k=Ey(e),T={width:`${yc(k)}%`,height:C,borderRadius:E,backgroundColor:h==null?void 0:h.strokeColor},I={width:S<0?"100%":S},$=d.createElement("div",{className:`${t}-inner`,style:_},d.createElement("div",{className:le(`${t}-bg`,`${t}-bg-${g}`),style:O},g==="inner"&&c),k!==void 0&&d.createElement("div",{className:`${t}-success-bg`,style:T})),M=g==="outer"&&m==="start",R=g==="outer"&&m==="end";return g==="outer"&&m==="center"?d.createElement("div",{className:`${t}-layout-bottom`},$,c):d.createElement("div",{className:`${t}-outer`,style:I},M&&c,$,R&&c)},K1e=e=>{const{size:t,steps:n,percent:r=0,strokeWidth:i=8,strokeColor:o,trailColor:a=null,prefixCls:l,children:c}=e,u=Math.round(n*(r/100)),h=t??[t==="small"?2:14,i],[m,g]=s2(h,"step",{steps:n,strokeWidth:i}),b=m/n,E=new Array(n);for(let x=0;x<n;x++){const S=Array.isArray(o)?o[x]:o;E[x]=d.createElement("div",{key:x,className:le(`${l}-steps-item`,{[`${l}-steps-item-active`]:x<=u-1}),style:{backgroundColor:x<=u-1?S:a,width:b,height:g}})}return d.createElement("div",{className:`${l}-steps-outer`},E,c)};var V1e=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 G1e=["normal","exception","active","success"],q1e=d.forwardRef((e,t)=>{const{prefixCls:n,className:r,rootClassName:i,steps:o,strokeColor:a,percent:l=0,size:c="default",showInfo:u=!0,type:p="line",status:h,format:m,style:g,percentPosition:b={}}=e,E=V1e(e,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style","percentPosition"]),{align:x="end",type:S="outer"}=b,C=Array.isArray(a)?a[0]:a,_=typeof a=="string"||Array.isArray(a)?a:void 0,O=d.useMemo(()=>{if(C){const X=typeof C=="string"?C:Object.values(C)[0];return new An(X).isLight()}return!1},[a]),k=d.useMemo(()=>{var X,A;const P=Ey(e);return parseInt(P!==void 0?(X=P??0)===null||X===void 0?void 0:X.toString():(A=l??0)===null||A===void 0?void 0:A.toString(),10)},[l,e.success,e.successPercent]),T=d.useMemo(()=>!G1e.includes(h)&&k>=100?"success":h||"normal",[h,k]),{getPrefixCls:I,direction:$,progress:M}=d.useContext(At),R=I("progress",n),[j,D,L]=j1e(R),B=p==="line",H=B&&!o,W=d.useMemo(()=>{if(!u)return null;const X=Ey(e);let A;const P=m||(U=>`${U}%`),Y=B&&O&&S==="inner";return S==="inner"||m||T!=="exception"&&T!=="success"?A=P(yc(l),yc(X)):T==="exception"?A=B?d.createElement(Gu,null):d.createElement(qu,null):T==="success"&&(A=B?d.createElement(wm,null):d.createElement(q3,null)),d.createElement("span",{className:le(`${R}-text`,{[`${R}-text-bright`]:Y,[`${R}-text-${x}`]:H,[`${R}-text-${S}`]:H}),title:typeof A=="string"?A:void 0},A)},[u,l,k,T,p,R,m]);let z;p==="line"?z=o?d.createElement(K1e,Object.assign({},e,{strokeColor:_,prefixCls:R,steps:typeof o=="object"?o.count:o}),W):d.createElement(U1e,Object.assign({},e,{strokeColor:C,prefixCls:R,direction:$,percentPosition:{align:x,type:S}}),W):(p==="circle"||p==="dashboard")&&(z=d.createElement(M1e,Object.assign({},e,{strokeColor:C,prefixCls:R,progressStatus:T}),W));const V=le(R,`${R}-status-${T}`,{[`${R}-${p==="dashboard"&&"circle"||p}`]:p!=="line",[`${R}-inline-circle`]:p==="circle"&&s2(c,"circle")[0]<=20,[`${R}-line`]:H,[`${R}-line-align-${x}`]:H,[`${R}-line-position-${S}`]:H,[`${R}-steps`]:o,[`${R}-show-info`]:u,[`${R}-${c}`]:typeof c=="string",[`${R}-rtl`]:$==="rtl"},M==null?void 0:M.className,r,i,D,L);return j(d.createElement("div",Object.assign({ref:t,style:Object.assign(Object.assign({},M==null?void 0:M.style),g),className:V,role:"progressbar","aria-valuenow":k,"aria-valuemin":0,"aria-valuemax":100},ir(E,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),z))});var X1e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M464 144H160c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V160c0-8.8-7.2-16-16-16zm-52 268H212V212h200v200zm452-268H560c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V160c0-8.8-7.2-16-16-16zm-52 268H612V212h200v200zM464 544H160c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V560c0-8.8-7.2-16-16-16zm-52 268H212V612h200v200zm452-268H560c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V560c0-8.8-7.2-16-16-16zm-52 268H612V612h200v200z"}}]},name:"appstore",theme:"outlined"},Y1e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zm-260 72h96v209.9L621.5 312 572 347.4V136zm220 752H232V136h280v296.9c0 3.3 1 6.6 3 9.3a15.9 15.9 0 0022.3 3.7l83.8-59.9 81.4 59.4c2.7 2 6 3.1 9.4 3.1 8.8 0 16-7.2 16-16V136h64v752z"}}]},name:"book",theme:"outlined"},Q1e={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"},Z1e=function(t,n){return d.createElement(bn,Ve({},t,{ref:n,icon:Q1e}))},J1e=d.forwardRef(Z1e),epe={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:"outlined"},tpe=function(t,n){return d.createElement(bn,Ve({},t,{ref:n,icon:epe}))},npe=d.forwardRef(tpe),rpe={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.9 689L530.5 308.2c-9.4-10.9-27.5-10.9-37 0L165.1 689c-12.2 14.2-1.2 35 18.5 35h656.8c19.7 0 30.7-20.8 18.5-35z"}}]},name:"caret-up",theme:"outlined"},ipe=function(t,n){return d.createElement(bn,Ve({},t,{ref:n,icon:rpe}))},ope=d.forwardRef(ipe),ape={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"},lpe=function(t,n){return d.createElement(bn,Ve({},t,{ref:n,icon:ape}))},spe=d.forwardRef(lpe),dj={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"},cpe=function(t,n){return d.createElement(bn,Ve({},t,{ref:n,icon:dj}))},upe=d.forwardRef(cpe),dpe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"},fpe=function(t,n){return d.createElement(bn,Ve({},t,{ref:n,icon:dpe}))},ppe=d.forwardRef(fpe),fj={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"},hpe=function(t,n){return d.createElement(bn,Ve({},t,{ref:n,icon:fj}))},mpe=d.forwardRef(hpe),gpe={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"},vpe=function(t,n){return d.createElement(bn,Ve({},t,{ref:n,icon:gpe}))},ype=d.forwardRef(vpe),bpe={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"},Cpe=function(t,n){return d.createElement(bn,Ve({},t,{ref:n,icon:bpe}))},pj=d.forwardRef(Cpe),Spe={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:n}},{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.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z",fill:t}}]}},name:"file",theme:"twotone"},Epe=function(t,n){return d.createElement(bn,Ve({},t,{ref:n,icon:Spe}))},xpe=d.forwardRef(Epe),wpe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M349 838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V642H349v196zm531.1-684H143.9c-24.5 0-39.8 26.7-27.5 48l221.3 376h348.8l221.3-376c12.1-21.3-3.2-48-27.7-48z"}}]},name:"filter",theme:"filled"},_pe=function(t,n){return d.createElement(bn,Ve({},t,{ref:n,icon:wpe}))},Tpe=d.forwardRef(_pe),Ope={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"},Ipe=function(t,n){return d.createElement(bn,Ve({},t,{ref:n,icon:Ope}))},kpe=d.forwardRef(Ipe),$pe={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"},Npe=function(t,n){return d.createElement(bn,Ve({},t,{ref:n,icon:$pe}))},Ape=d.forwardRef(Npe),Rpe={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"},Mpe=function(t,n){return d.createElement(bn,Ve({},t,{ref:n,icon:Rpe}))},Ppe=d.forwardRef(Mpe),Lpe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M868 732h-70.3c-4.8 0-9.3 2.1-12.3 5.8-7 8.5-14.5 16.7-22.4 24.5a353.84 353.84 0 01-112.7 75.9A352.8 352.8 0 01512.4 866c-47.9 0-94.3-9.4-137.9-27.8a353.84 353.84 0 01-112.7-75.9 353.28 353.28 0 01-76-112.5C167.3 606.2 158 559.9 158 512s9.4-94.2 27.8-137.8c17.8-42.1 43.4-80 76-112.5s70.5-58.1 112.7-75.9c43.6-18.4 90-27.8 137.9-27.8 47.9 0 94.3 9.3 137.9 27.8 42.2 17.8 80.1 43.4 112.7 75.9 7.9 7.9 15.3 16.1 22.4 24.5 3 3.7 7.6 5.8 12.3 5.8H868c6.3 0 10.2-7 6.7-12.3C798 160.5 663.8 81.6 511.3 82 271.7 82.6 79.6 277.1 82 516.4 84.4 751.9 276.2 942 512.4 942c152.1 0 285.7-78.8 362.3-197.7 3.4-5.3-.4-12.3-6.7-12.3zm88.9-226.3L815 393.7c-5.3-4.2-13-.4-13 6.3v76H488c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h314v76c0 6.7 7.8 10.5 13 6.3l141.9-112a8 8 0 000-12.6z"}}]},name:"logout",theme:"outlined"},Dpe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 110.8V792H136V270.8l-27.6-21.5 39.3-50.5 42.8 33.3h643.1l42.8-33.3 39.3 50.5-27.7 21.5zM833.6 232L512 482 190.4 232l-42.8-33.3-39.3 50.5 27.6 21.5 341.6 265.6a55.99 55.99 0 0068.7 0L888 270.8l27.6-21.5-39.3-50.5-42.7 33.2z"}}]},name:"mail",theme:"outlined"},Fpe={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"},Bpe=function(t,n){return d.createElement(bn,Ve({},t,{ref:n,icon:Fpe}))},jpe=d.forwardRef(Bpe),Hpe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M456 231a56 56 0 10112 0 56 56 0 10-112 0zm0 280a56 56 0 10112 0 56 56 0 10-112 0zm0 280a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"more",theme:"outlined"},zpe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"}}]},name:"paper-clip",theme:"outlined"},Wpe=function(t,n){return d.createElement(bn,Ve({},t,{ref:n,icon:zpe}))},Upe=d.forwardRef(Wpe),Kpe={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2z",fill:t}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:n}},{tag:"path",attrs:{d:"M136 652.7l132.4-157c3.2-3.8 9-3.8 12.2 0l144 170.7L652 396.8c3.2-3.8 9-3.8 12.2 0L888 662.2V232H136v420.7zM304 280a88 88 0 110 176 88 88 0 010-176z",fill:n}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:n}},{tag:"path",attrs:{d:"M304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z",fill:t}}]}},name:"picture",theme:"twotone"},Vpe=function(t,n){return d.createElement(bn,Ve({},t,{ref:n,icon:Kpe}))},Gpe=d.forwardRef(Vpe),qpe={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"},Xpe=function(t,n){return d.createElement(bn,Ve({},t,{ref:n,icon:qpe}))},Ype=d.forwardRef(Xpe),Qpe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M793 242H366v-74c0-6.7-7.7-10.4-12.9-6.3l-142 112a8 8 0 000 12.6l142 112c5.2 4.1 12.9.4 12.9-6.3v-74h415v470H175c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h618c35.3 0 64-28.7 64-64V306c0-35.3-28.7-64-64-64z"}}]},name:"rollback",theme:"outlined"},Zpe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M893.3 293.3L730.7 130.7c-7.5-7.5-16.7-13-26.7-16V112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V338.5c0-17-6.7-33.2-18.7-45.2zM384 184h256v104H384V184zm456 656H184V184h136v136c0 17.7 14.3 32 32 32h320c17.7 0 32-14.3 32-32V205.8l136 136V840zM512 442c-79.5 0-144 64.5-144 144s64.5 144 144 144 144-64.5 144-144-64.5-144-144-144zm0 224c-44.2 0-80-35.8-80-80s35.8-80 80-80 80 35.8 80 80-35.8 80-80 80z"}}]},name:"save",theme:"outlined"},Jpe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M924.8 625.7l-65.5-56c3.1-19 4.7-38.4 4.7-57.8s-1.6-38.8-4.7-57.8l65.5-56a32.03 32.03 0 009.3-35.2l-.9-2.6a443.74 443.74 0 00-79.7-137.9l-1.8-2.1a32.12 32.12 0 00-35.1-9.5l-81.3 28.9c-30-24.6-63.5-44-99.7-57.6l-15.7-85a32.05 32.05 0 00-25.8-25.7l-2.7-.5c-52.1-9.4-106.9-9.4-159 0l-2.7.5a32.05 32.05 0 00-25.8 25.7l-15.8 85.4a351.86 351.86 0 00-99 57.4l-81.9-29.1a32 32 0 00-35.1 9.5l-1.8 2.1a446.02 446.02 0 00-79.7 137.9l-.9 2.6c-4.5 12.5-.8 26.5 9.3 35.2l66.3 56.6c-3.1 18.8-4.6 38-4.6 57.1 0 19.2 1.5 38.4 4.6 57.1L99 625.5a32.03 32.03 0 00-9.3 35.2l.9 2.6c18.1 50.4 44.9 96.9 79.7 137.9l1.8 2.1a32.12 32.12 0 0035.1 9.5l81.9-29.1c29.8 24.5 63.1 43.9 99 57.4l15.8 85.4a32.05 32.05 0 0025.8 25.7l2.7.5a449.4 449.4 0 00159 0l2.7-.5a32.05 32.05 0 0025.8-25.7l15.7-85a350 350 0 0099.7-57.6l81.3 28.9a32 32 0 0035.1-9.5l1.8-2.1c34.8-41.1 61.6-87.5 79.7-137.9l.9-2.6c4.5-12.3.8-26.3-9.3-35zM788.3 465.9c2.5 15.1 3.8 30.6 3.8 46.1s-1.3 31-3.8 46.1l-6.6 40.1 74.7 63.9a370.03 370.03 0 01-42.6 73.6L721 702.8l-31.4 25.8c-23.9 19.6-50.5 35-79.3 45.8l-38.1 14.3-17.9 97a377.5 377.5 0 01-85 0l-17.9-97.2-37.8-14.5c-28.5-10.8-55-26.2-78.7-45.7l-31.4-25.9-93.4 33.2c-17-22.9-31.2-47.6-42.6-73.6l75.5-64.5-6.5-40c-2.4-14.9-3.7-30.3-3.7-45.5 0-15.3 1.2-30.6 3.7-45.5l6.5-40-75.5-64.5c11.3-26.1 25.6-50.7 42.6-73.6l93.4 33.2 31.4-25.9c23.7-19.5 50.2-34.9 78.7-45.7l37.9-14.3 17.9-97.2c28.1-3.2 56.8-3.2 85 0l17.9 97 38.1 14.3c28.7 10.8 55.4 26.2 79.3 45.8l31.4 25.8 92.8-32.9c17 22.9 31.2 47.6 42.6 73.6L781.8 426l6.5 39.9zM512 326c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm79.2 255.2A111.6 111.6 0 01512 614c-29.9 0-58-11.7-79.2-32.8A111.6 111.6 0 01400 502c0-29.9 11.7-58 32.8-79.2C454 401.6 482.1 390 512 390c29.9 0 58 11.6 79.2 32.8A111.6 111.6 0 01624 502c0 29.9-11.7 58-32.8 79.2z"}}]},name:"setting",theme:"outlined"},ehe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M752 664c-28.5 0-54.8 10-75.4 26.7L469.4 540.8a160.68 160.68 0 000-57.6l207.2-149.9C697.2 350 723.5 360 752 360c66.2 0 120-53.8 120-120s-53.8-120-120-120-120 53.8-120 120c0 11.6 1.6 22.7 4.7 33.3L439.9 415.8C410.7 377.1 364.3 352 312 352c-88.4 0-160 71.6-160 160s71.6 160 160 160c52.3 0 98.7-25.1 127.9-63.8l196.8 142.5c-3.1 10.6-4.7 21.8-4.7 33.3 0 66.2 53.8 120 120 120s120-53.8 120-120-53.8-120-120-120zm0-476c28.7 0 52 23.3 52 52s-23.3 52-52 52-52-23.3-52-52 23.3-52 52-52zM312 600c-48.5 0-88-39.5-88-88s39.5-88 88-88 88 39.5 88 88-39.5 88-88 88zm440 236c-28.7 0-52-23.3-52-52s23.3-52 52-52 52 23.3 52 52-23.3 52-52 52z"}}]},name:"share-alt",theme:"outlined"},the={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z"}}]},name:"star",theme:"filled"},nhe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3zM664.8 561.6l36.1 210.3L512 672.7 323.1 772l36.1-210.3-152.8-149L417.6 382 512 190.7 606.4 382l211.2 30.7-152.8 148.9z"}}]},name:"star",theme:"outlined"},rhe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M824.2 699.9a301.55 301.55 0 00-86.4-60.4C783.1 602.8 812 546.8 812 484c0-110.8-92.4-201.7-203.2-200-109.1 1.7-197 90.6-197 200 0 62.8 29 118.8 74.2 155.5a300.95 300.95 0 00-86.4 60.4C345 754.6 314 826.8 312 903.8a8 8 0 008 8.2h56c4.3 0 7.9-3.4 8-7.7 1.9-58 25.4-112.3 66.7-153.5A226.62 226.62 0 01612 684c60.9 0 118.2 23.7 161.3 66.8C814.5 792 838 846.3 840 904.3c.1 4.3 3.7 7.7 8 7.7h56a8 8 0 008-8.2c-2-77-33-149.2-87.8-203.9zM612 612c-34.2 0-66.4-13.3-90.5-37.5a126.86 126.86 0 01-37.5-91.8c.3-32.8 13.4-64.5 36.3-88 24-24.6 56.1-38.3 90.4-38.7 33.9-.3 66.8 12.9 91 36.6 24.8 24.3 38.4 56.8 38.4 91.4 0 34.2-13.3 66.3-37.5 90.5A127.3 127.3 0 01612 612zM361.5 510.4c-.9-8.7-1.4-17.5-1.4-26.4 0-15.9 1.5-31.4 4.3-46.5.7-3.6-1.2-7.3-4.5-8.8-13.6-6.1-26.1-14.5-36.9-25.1a127.54 127.54 0 01-38.7-95.4c.9-32.1 13.8-62.6 36.3-85.6 24.7-25.3 57.9-39.1 93.2-38.7 31.9.3 62.7 12.6 86 34.4 7.9 7.4 14.7 15.6 20.4 24.4 2 3.1 5.9 4.4 9.3 3.2 17.6-6.1 36.2-10.4 55.3-12.4 5.6-.6 8.8-6.6 6.3-11.6-32.5-64.3-98.9-108.7-175.7-109.9-110.9-1.7-203.3 89.2-203.3 199.9 0 62.8 28.9 118.8 74.2 155.5-31.8 14.7-61.1 35-86.5 60.4-54.8 54.7-85.8 126.9-87.8 204a8 8 0 008 8.2h56.1c4.3 0 7.9-3.4 8-7.7 1.9-58 25.4-112.3 66.7-153.5 29.4-29.4 65.4-49.8 104.7-59.7 3.9-1 6.5-4.7 6-8.7z"}}]},name:"team",theme:"outlined"},ihe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.5 763.6a374 374 0 00-80.6-119.5 375.63 375.63 0 00-119.5-80.6c-.4-.2-.8-.3-1.2-.5C719.5 518 760 444.7 760 362c0-137-111-248-248-248S264 225 264 362c0 82.7 40.5 156 102.8 201.1-.4.2-.8.3-1.2.5-44.8 18.9-85 46-119.5 80.6a375.63 375.63 0 00-80.6 119.5A371.7 371.7 0 00136 901.8a8 8 0 008 8.2h60c4.4 0 7.9-3.5 8-7.8 2-77.2 33-149.5 87.8-204.3 56.7-56.7 132-87.9 212.2-87.9s155.5 31.2 212.2 87.9C779 752.7 810 825 812 902.2c.1 4.4 3.6 7.8 8 7.8h60a8 8 0 008-8.2c-1-47.8-10.9-94.3-29.5-138.2zM512 534c-45.9 0-89.1-17.9-121.6-50.4S340 407.9 340 362c0-45.9 17.9-89.1 50.4-121.6S466.1 190 512 190s89.1 17.9 121.6 50.4S684 316.1 684 362c0 45.9-17.9 89.1-50.4 121.6S557.9 534 512 534z"}}]},name:"user",theme:"outlined"},ohe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M955.7 856l-416-720c-6.2-10.7-16.9-16-27.7-16s-21.6 5.3-27.7 16l-416 720C56 877.4 71.4 904 96 904h832c24.6 0 40-26.6 27.7-48zM480 416c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v184c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V416zm32 352a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"warning",theme:"filled"},ahe=function(t,n){return d.createElement(bn,Ve({},t,{ref:n,icon:ohe}))},lhe=d.forwardRef(ahe);const she=()=>d.createElement("svg",{width:"252",height:"294"},d.createElement("title",null,"No Found"),d.createElement("defs",null,d.createElement("path",{d:"M0 .387h251.772v251.772H0z"})),d.createElement("g",{fill:"none",fillRule:"evenodd"},d.createElement("g",{transform:"translate(0 .012)"},d.createElement("mask",{fill:"#fff"}),d.createElement("path",{d:"M0 127.32v-2.095C0 56.279 55.892.387 124.838.387h2.096c68.946 0 124.838 55.892 124.838 124.838v2.096c0 68.946-55.892 124.838-124.838 124.838h-2.096C55.892 252.16 0 196.267 0 127.321",fill:"#E4EBF7",mask:"url(#b)"})),d.createElement("path",{d:"M39.755 130.84a8.276 8.276 0 1 1-16.468-1.66 8.276 8.276 0 0 1 16.468 1.66",fill:"#FFF"}),d.createElement("path",{d:"M36.975 134.297l10.482 5.943M48.373 146.508l-12.648 10.788",stroke:"#FFF",strokeWidth:"2"}),d.createElement("path",{d:"M39.875 159.352a5.667 5.667 0 1 1-11.277-1.136 5.667 5.667 0 0 1 11.277 1.136M57.588 143.247a5.708 5.708 0 1 1-11.358-1.145 5.708 5.708 0 0 1 11.358 1.145M99.018 26.875l29.82-.014a4.587 4.587 0 1 0-.003-9.175l-29.82.013a4.587 4.587 0 1 0 .003 9.176M110.424 45.211l29.82-.013a4.588 4.588 0 0 0-.004-9.175l-29.82.013a4.587 4.587 0 1 0 .004 9.175",fill:"#FFF"}),d.createElement("path",{d:"M112.798 26.861v-.002l15.784-.006a4.588 4.588 0 1 0 .003 9.175l-15.783.007v-.002a4.586 4.586 0 0 0-.004-9.172M184.523 135.668c-.553 5.485-5.447 9.483-10.931 8.93-5.485-.553-9.483-5.448-8.93-10.932.552-5.485 5.447-9.483 10.932-8.93 5.485.553 9.483 5.447 8.93 10.932",fill:"#FFF"}),d.createElement("path",{d:"M179.26 141.75l12.64 7.167M193.006 156.477l-15.255 13.011",stroke:"#FFF",strokeWidth:"2"}),d.createElement("path",{d:"M184.668 170.057a6.835 6.835 0 1 1-13.6-1.372 6.835 6.835 0 0 1 13.6 1.372M203.34 153.325a6.885 6.885 0 1 1-13.7-1.382 6.885 6.885 0 0 1 13.7 1.382",fill:"#FFF"}),d.createElement("path",{d:"M151.931 192.324a2.222 2.222 0 1 1-4.444 0 2.222 2.222 0 0 1 4.444 0zM225.27 116.056a2.222 2.222 0 1 1-4.445 0 2.222 2.222 0 0 1 4.444 0zM216.38 151.08a2.223 2.223 0 1 1-4.446-.001 2.223 2.223 0 0 1 4.446 0zM176.917 107.636a2.223 2.223 0 1 1-4.445 0 2.223 2.223 0 0 1 4.445 0zM195.291 92.165a2.223 2.223 0 1 1-4.445 0 2.223 2.223 0 0 1 4.445 0zM202.058 180.711a2.223 2.223 0 1 1-4.446 0 2.223 2.223 0 0 1 4.446 0z",stroke:"#FFF",strokeWidth:"2"}),d.createElement("path",{stroke:"#FFF",strokeWidth:"2",d:"M214.404 153.302l-1.912 20.184-10.928 5.99M173.661 174.792l-6.356 9.814h-11.36l-4.508 6.484M174.941 125.168v-15.804M220.824 117.25l-12.84 7.901-15.31-7.902V94.39"}),d.createElement("path",{d:"M166.588 65.936h-3.951a4.756 4.756 0 0 1-4.743-4.742 4.756 4.756 0 0 1 4.743-4.743h3.951a4.756 4.756 0 0 1 4.743 4.743 4.756 4.756 0 0 1-4.743 4.742",fill:"#FFF"}),d.createElement("path",{d:"M174.823 30.03c0-16.281 13.198-29.48 29.48-29.48 16.28 0 29.48 13.199 29.48 29.48 0 16.28-13.2 29.48-29.48 29.48-16.282 0-29.48-13.2-29.48-29.48",fill:"#1677ff"}),d.createElement("path",{d:"M205.952 38.387c.5.5.785 1.142.785 1.928s-.286 1.465-.785 1.964c-.572.5-1.214.75-2 .75-.785 0-1.429-.285-1.929-.785-.572-.5-.82-1.143-.82-1.929s.248-1.428.82-1.928c.5-.5 1.144-.75 1.93-.75.785 0 1.462.25 1.999.75m4.285-19.463c1.428 1.249 2.143 2.963 2.143 5.142 0 1.712-.427 3.13-1.219 4.25-.067.096-.137.18-.218.265-.416.429-1.41 1.346-2.956 2.699a5.07 5.07 0 0 0-1.428 1.75 5.207 5.207 0 0 0-.536 2.357v.5h-4.107v-.5c0-1.357.215-2.536.714-3.5.464-.964 1.857-2.464 4.178-4.536l.43-.5c.643-.785.964-1.643.964-2.535 0-1.18-.358-2.108-1-2.785-.678-.68-1.643-1.001-2.858-1.001-1.536 0-2.642.464-3.357 1.43-.37.5-.621 1.135-.76 1.904a1.999 1.999 0 0 1-1.971 1.63h-.004c-1.277 0-2.257-1.183-1.98-2.43.337-1.518 1.02-2.78 2.073-3.784 1.536-1.5 3.607-2.25 6.25-2.25 2.32 0 4.214.607 5.642 1.894",fill:"#FFF"}),d.createElement("path",{d:"M52.04 76.131s21.81 5.36 27.307 15.945c5.575 10.74-6.352 9.26-15.73 4.935-10.86-5.008-24.7-11.822-11.577-20.88",fill:"#FFB594"}),d.createElement("path",{d:"M90.483 67.504l-.449 2.893c-.753.49-4.748-2.663-4.748-2.663l-1.645.748-1.346-5.684s6.815-4.589 8.917-5.018c2.452-.501 9.884.94 10.7 2.278 0 0 1.32.486-2.227.69-3.548.203-5.043.447-6.79 3.132-1.747 2.686-2.412 3.624-2.412 3.624",fill:"#FFC6A0"}),d.createElement("path",{d:"M128.055 111.367c-2.627-7.724-6.15-13.18-8.917-15.478-3.5-2.906-9.34-2.225-11.366-4.187-1.27-1.231-3.215-1.197-3.215-1.197s-14.98-3.158-16.828-3.479c-2.37-.41-2.124-.714-6.054-1.405-1.57-1.907-2.917-1.122-2.917-1.122l-7.11-1.383c-.853-1.472-2.423-1.023-2.423-1.023l-2.468-.897c-1.645 9.976-7.74 13.796-7.74 13.796 1.795 1.122 15.703 8.3 15.703 8.3l5.107 37.11s-3.321 5.694 1.346 9.109c0 0 19.883-3.743 34.921-.329 0 0 3.047-2.546.972-8.806.523-3.01 1.394-8.263 1.736-11.622.385.772 2.019 1.918 3.14 3.477 0 0 9.407-7.365 11.052-14.012-.832-.723-1.598-1.585-2.267-2.453-.567-.736-.358-2.056-.765-2.717-.669-1.084-1.804-1.378-1.907-1.682",fill:"#FFF"}),d.createElement("path",{d:"M101.09 289.998s4.295 2.041 7.354 1.021c2.821-.94 4.53.668 7.08 1.178 2.55.51 6.874 1.1 11.686-1.26-.103-5.51-6.889-3.98-11.96-6.713-2.563-1.38-3.784-4.722-3.598-8.799h-9.402s-1.392 10.52-1.16 14.573",fill:"#CBD1D1"}),d.createElement("path",{d:"M101.067 289.826s2.428 1.271 6.759.653c3.058-.437 3.712.481 7.423 1.031 3.712.55 10.724-.069 11.823-.894.413 1.1-.343 2.063-.343 2.063s-1.512.603-4.812.824c-2.03.136-5.8.291-7.607-.503-1.787-1.375-5.247-1.903-5.728-.241-3.918.95-7.355-.286-7.355-.286l-.16-2.647z",fill:"#2B0849"}),d.createElement("path",{d:"M108.341 276.044h3.094s-.103 6.702 4.536 8.558c-4.64.618-8.558-2.303-7.63-8.558",fill:"#A4AABA"}),d.createElement("path",{d:"M57.542 272.401s-2.107 7.416-4.485 12.306c-1.798 3.695-4.225 7.492 5.465 7.492 6.648 0 8.953-.48 7.423-6.599-1.53-6.12.266-13.199.266-13.199h-8.669z",fill:"#CBD1D1"}),d.createElement("path",{d:"M51.476 289.793s2.097 1.169 6.633 1.169c6.083 0 8.249-1.65 8.249-1.65s.602 1.114-.619 2.165c-.993.855-3.597 1.591-7.39 1.546-4.145-.048-5.832-.566-6.736-1.168-.825-.55-.687-1.58-.137-2.062",fill:"#2B0849"}),d.createElement("path",{d:"M58.419 274.304s.033 1.519-.314 2.93c-.349 1.42-1.078 3.104-1.13 4.139-.058 1.151 4.537 1.58 5.155.034.62-1.547 1.294-6.427 1.913-7.252.619-.825-4.903-2.119-5.624.15",fill:"#A4AABA"}),d.createElement("path",{d:"M99.66 278.514l13.378.092s1.298-54.52 1.853-64.403c.554-9.882 3.776-43.364 1.002-63.128l-12.547-.644-22.849.78s-.434 3.966-1.195 9.976c-.063.496-.682.843-.749 1.365-.075.585.423 1.354.32 1.966-2.364 14.08-6.377 33.104-8.744 46.677-.116.666-1.234 1.009-1.458 2.691-.04.302.211 1.525.112 1.795-6.873 18.744-10.949 47.842-14.277 61.885l14.607-.014s2.197-8.57 4.03-16.97c2.811-12.886 23.111-85.01 23.111-85.01l3.016-.521 1.043 46.35s-.224 1.234.337 2.02c.56.785-.56 1.123-.392 2.244l.392 1.794s-.449 7.178-.898 11.89c-.448 4.71-.092 39.165-.092 39.165",fill:"#7BB2F9"}),d.createElement("path",{d:"M76.085 221.626c1.153.094 4.038-2.019 6.955-4.935M106.36 225.142s2.774-1.11 6.103-3.883",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M107.275 222.1s2.773-1.11 6.102-3.884",stroke:"#648BD8",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M74.74 224.767s2.622-.591 6.505-3.365M86.03 151.634c-.27 3.106.3 8.525-4.336 9.123M103.625 149.88s.11 14.012-1.293 15.065c-2.219 1.664-2.99 1.944-2.99 1.944M99.79 150.438s.035 12.88-1.196 24.377M93.673 175.911s7.212-1.664 9.431-1.664M74.31 205.861a212.013 212.013 0 0 1-.979 4.56s-1.458 1.832-1.009 3.776c.449 1.944-.947 2.045-4.985 15.355-1.696 5.59-4.49 18.591-6.348 27.597l-.231 1.12M75.689 197.807a320.934 320.934 0 0 1-.882 4.754M82.591 152.233L81.395 162.7s-1.097.15-.5 2.244c.113 1.346-2.674 15.775-5.18 30.43M56.12 274.418h13.31",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M116.241 148.22s-17.047-3.104-35.893.2c.158 2.514-.003 4.15-.003 4.15s14.687-2.818 35.67-.312c.252-2.355.226-4.038.226-4.038",fill:"#192064"}),d.createElement("path",{d:"M106.322 151.165l.003-4.911a.81.81 0 0 0-.778-.815c-2.44-.091-5.066-.108-7.836-.014a.818.818 0 0 0-.789.815l-.003 4.906a.81.81 0 0 0 .831.813c2.385-.06 4.973-.064 7.73.017a.815.815 0 0 0 .842-.81",fill:"#FFF"}),d.createElement("path",{d:"M105.207 150.233l.002-3.076a.642.642 0 0 0-.619-.646 94.321 94.321 0 0 0-5.866-.01.65.65 0 0 0-.63.647v3.072a.64.64 0 0 0 .654.644 121.12 121.12 0 0 1 5.794.011c.362.01.665-.28.665-.642",fill:"#192064"}),d.createElement("path",{d:"M100.263 275.415h12.338M101.436 270.53c.006 3.387.042 5.79.111 6.506M101.451 264.548a915.75 915.75 0 0 0-.015 4.337M100.986 174.965l.898 44.642s.673 1.57-.225 2.692c-.897 1.122 2.468.673.898 2.243-1.57 1.57.897 1.122 0 3.365-.596 1.489-.994 21.1-1.096 35.146",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M46.876 83.427s-.516 6.045 7.223 5.552c11.2-.712 9.218-9.345 31.54-21.655-.786-2.708-2.447-4.744-2.447-4.744s-11.068 3.11-22.584 8.046c-6.766 2.9-13.395 6.352-13.732 12.801M104.46 91.057l.941-5.372-8.884-11.43-5.037 5.372-1.74 7.834a.321.321 0 0 0 .108.32c.965.8 6.5 5.013 14.347 3.544a.332.332 0 0 0 .264-.268",fill:"#FFC6A0"}),d.createElement("path",{d:"M93.942 79.387s-4.533-2.853-2.432-6.855c1.623-3.09 4.513 1.133 4.513 1.133s.52-3.642 3.121-3.642c.52-1.04 1.561-4.162 1.561-4.162s11.445 2.601 13.526 3.121c0 5.203-2.304 19.424-7.84 19.861-8.892.703-12.449-9.456-12.449-9.456",fill:"#FFC6A0"}),d.createElement("path",{d:"M113.874 73.446c2.601-2.081 3.47-9.722 3.47-9.722s-2.479-.49-6.64-2.05c-4.683-2.081-12.798-4.747-17.48.976-9.668 3.223-2.05 19.823-2.05 19.823l2.713-3.021s-3.935-3.287-2.08-6.243c2.17-3.462 3.92 1.073 3.92 1.073s.637-2.387 3.581-3.342c.355-.71 1.036-2.674 1.432-3.85a1.073 1.073 0 0 1 1.263-.704c2.4.558 8.677 2.019 11.356 2.662.522.125.871.615.82 1.15l-.305 3.248z",fill:"#520038"}),d.createElement("path",{d:"M104.977 76.064c-.103.61-.582 1.038-1.07.956-.489-.083-.801-.644-.698-1.254.103-.61.582-1.038 1.07-.956.488.082.8.644.698 1.254M112.132 77.694c-.103.61-.582 1.038-1.07.956-.488-.083-.8-.644-.698-1.254.103-.61.582-1.038 1.07-.956.488.082.8.643.698 1.254",fill:"#552950"}),d.createElement("path",{stroke:"#DB836E",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round",d:"M110.13 74.84l-.896 1.61-.298 4.357h-2.228"}),d.createElement("path",{d:"M110.846 74.481s1.79-.716 2.506.537",stroke:"#5C2552",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M92.386 74.282s.477-1.114 1.113-.716c.637.398 1.274 1.433.558 1.99-.717.556.159 1.67.159 1.67",stroke:"#DB836E",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M103.287 72.93s1.83 1.113 4.137.954",stroke:"#5C2552",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M103.685 81.762s2.227 1.193 4.376 1.193M104.64 84.308s.954.398 1.511.318M94.693 81.205s2.308 7.4 10.424 7.639",stroke:"#DB836E",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M81.45 89.384s.45 5.647-4.935 12.787M69 82.654s-.726 9.282-8.204 14.206",stroke:"#E4EBF7",strokeWidth:"1.101",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M129.405 122.865s-5.272 7.403-9.422 10.768",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M119.306 107.329s.452 4.366-2.127 32.062",stroke:"#E4EBF7",strokeWidth:"1.101",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M150.028 151.232h-49.837a1.01 1.01 0 0 1-1.01-1.01v-31.688c0-.557.452-1.01 1.01-1.01h49.837c.558 0 1.01.453 1.01 1.01v31.688a1.01 1.01 0 0 1-1.01 1.01",fill:"#F2D7AD"}),d.createElement("path",{d:"M150.29 151.232h-19.863v-33.707h20.784v32.786a.92.92 0 0 1-.92.92",fill:"#F4D19D"}),d.createElement("path",{d:"M123.554 127.896H92.917a.518.518 0 0 1-.425-.816l6.38-9.113c.193-.277.51-.442.85-.442h31.092l-7.26 10.371z",fill:"#F2D7AD"}),d.createElement("path",{fill:"#CC9B6E",d:"M123.689 128.447H99.25v-.519h24.169l7.183-10.26.424.298z"}),d.createElement("path",{d:"M158.298 127.896h-18.669a2.073 2.073 0 0 1-1.659-.83l-7.156-9.541h19.965c.49 0 .95.23 1.244.622l6.69 8.92a.519.519 0 0 1-.415.83",fill:"#F4D19D"}),d.createElement("path",{fill:"#CC9B6E",d:"M157.847 128.479h-19.384l-7.857-10.475.415-.31 7.7 10.266h19.126zM130.554 150.685l-.032-8.177.519-.002.032 8.177z"}),d.createElement("path",{fill:"#CC9B6E",d:"M130.511 139.783l-.08-21.414.519-.002.08 21.414zM111.876 140.932l-.498-.143 1.479-5.167.498.143zM108.437 141.06l-2.679-2.935 2.665-3.434.41.318-2.397 3.089 2.384 2.612zM116.607 141.06l-.383-.35 2.383-2.612-2.397-3.089.41-.318 2.665 3.434z"}),d.createElement("path",{d:"M154.316 131.892l-3.114-1.96.038 3.514-1.043.092c-1.682.115-3.634.23-4.789.23-1.902 0-2.693 2.258 2.23 2.648l-2.645-.596s-2.168 1.317.504 2.3c0 0-1.58 1.217.561 2.58-.584 3.504 5.247 4.058 7.122 3.59 1.876-.47 4.233-2.359 4.487-5.16.28-3.085-.89-5.432-3.35-7.238",fill:"#FFC6A0"}),d.createElement("path",{d:"M153.686 133.577s-6.522.47-8.36.372c-1.836-.098-1.904 2.19 2.359 2.264 3.739.15 5.451-.044 5.451-.044",stroke:"#DB836E",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M145.16 135.877c-1.85 1.346.561 2.355.561 2.355s3.478.898 6.73.617",stroke:"#DB836E",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M151.89 141.71s-6.28.111-6.73-2.132c-.223-1.346.45-1.402.45-1.402M146.114 140.868s-1.103 3.16 5.44 3.533M151.202 129.932v3.477M52.838 89.286c3.533-.337 8.423-1.248 13.582-7.754",stroke:"#DB836E",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M168.567 248.318a6.647 6.647 0 0 1-6.647-6.647v-66.466a6.647 6.647 0 1 1 13.294 0v66.466a6.647 6.647 0 0 1-6.647 6.647",fill:"#5BA02E"}),d.createElement("path",{d:"M176.543 247.653a6.647 6.647 0 0 1-6.646-6.647v-33.232a6.647 6.647 0 1 1 13.293 0v33.232a6.647 6.647 0 0 1-6.647 6.647",fill:"#92C110"}),d.createElement("path",{d:"M186.443 293.613H158.92a3.187 3.187 0 0 1-3.187-3.187v-46.134a3.187 3.187 0 0 1 3.187-3.187h27.524a3.187 3.187 0 0 1 3.187 3.187v46.134a3.187 3.187 0 0 1-3.187 3.187",fill:"#F2D7AD"}),d.createElement("path",{d:"M88.979 89.48s7.776 5.384 16.6 2.842",stroke:"#E4EBF7",strokeWidth:"1.101",strokeLinecap:"round",strokeLinejoin:"round"}))),che=()=>d.createElement("svg",{width:"254",height:"294"},d.createElement("title",null,"Server Error"),d.createElement("defs",null,d.createElement("path",{d:"M0 .335h253.49v253.49H0z"}),d.createElement("path",{d:"M0 293.665h253.49V.401H0z"})),d.createElement("g",{fill:"none",fillRule:"evenodd"},d.createElement("g",{transform:"translate(0 .067)"},d.createElement("mask",{fill:"#fff"}),d.createElement("path",{d:"M0 128.134v-2.11C0 56.608 56.273.334 125.69.334h2.11c69.416 0 125.69 56.274 125.69 125.69v2.11c0 69.417-56.274 125.69-125.69 125.69h-2.11C56.273 253.824 0 197.551 0 128.134",fill:"#E4EBF7",mask:"url(#b)"})),d.createElement("path",{d:"M39.989 132.108a8.332 8.332 0 1 1-16.581-1.671 8.332 8.332 0 0 1 16.58 1.671",fill:"#FFF"}),d.createElement("path",{d:"M37.19 135.59l10.553 5.983M48.665 147.884l-12.734 10.861",stroke:"#FFF",strokeWidth:"2"}),d.createElement("path",{d:"M40.11 160.816a5.706 5.706 0 1 1-11.354-1.145 5.706 5.706 0 0 1 11.354 1.145M57.943 144.6a5.747 5.747 0 1 1-11.436-1.152 5.747 5.747 0 0 1 11.436 1.153M99.656 27.434l30.024-.013a4.619 4.619 0 1 0-.004-9.238l-30.024.013a4.62 4.62 0 0 0 .004 9.238M111.14 45.896l30.023-.013a4.62 4.62 0 1 0-.004-9.238l-30.024.013a4.619 4.619 0 1 0 .004 9.238",fill:"#FFF"}),d.createElement("path",{d:"M113.53 27.421v-.002l15.89-.007a4.619 4.619 0 1 0 .005 9.238l-15.892.007v-.002a4.618 4.618 0 0 0-.004-9.234M150.167 70.091h-3.979a4.789 4.789 0 0 1-4.774-4.775 4.788 4.788 0 0 1 4.774-4.774h3.979a4.789 4.789 0 0 1 4.775 4.774 4.789 4.789 0 0 1-4.775 4.775",fill:"#FFF"}),d.createElement("path",{d:"M171.687 30.234c0-16.392 13.289-29.68 29.681-29.68 16.392 0 29.68 13.288 29.68 29.68 0 16.393-13.288 29.681-29.68 29.681s-29.68-13.288-29.68-29.68",fill:"#FF603B"}),d.createElement("path",{d:"M203.557 19.435l-.676 15.035a1.514 1.514 0 0 1-3.026 0l-.675-15.035a2.19 2.19 0 1 1 4.377 0m-.264 19.378c.513.477.77 1.1.77 1.87s-.257 1.393-.77 1.907c-.55.476-1.21.733-1.943.733a2.545 2.545 0 0 1-1.87-.77c-.55-.514-.806-1.136-.806-1.87 0-.77.256-1.393.806-1.87.513-.513 1.137-.733 1.87-.733.77 0 1.43.22 1.943.733",fill:"#FFF"}),d.createElement("path",{d:"M119.3 133.275c4.426-.598 3.612-1.204 4.079-4.778.675-5.18-3.108-16.935-8.262-25.118-1.088-10.72-12.598-11.24-12.598-11.24s4.312 4.895 4.196 16.199c1.398 5.243.804 14.45.804 14.45s5.255 11.369 11.78 10.487",fill:"#FFB594"}),d.createElement("path",{d:"M100.944 91.61s1.463-.583 3.211.582c8.08 1.398 10.368 6.706 11.3 11.368 1.864 1.282 1.864 2.33 1.864 3.496.365.777 1.515 3.03 1.515 3.03s-7.225 1.748-10.954 6.758c-1.399-6.41-6.936-25.235-6.936-25.235",fill:"#FFF"}),d.createElement("path",{d:"M94.008 90.5l1.019-5.815-9.23-11.874-5.233 5.581-2.593 9.863s8.39 5.128 16.037 2.246",fill:"#FFB594"}),d.createElement("path",{d:"M82.931 78.216s-4.557-2.868-2.445-6.892c1.632-3.107 4.537 1.139 4.537 1.139s.524-3.662 3.139-3.662c.523-1.046 1.569-4.184 1.569-4.184s11.507 2.615 13.6 3.138c-.001 5.23-2.317 19.529-7.884 19.969-8.94.706-12.516-9.508-12.516-9.508",fill:"#FFC6A0"}),d.createElement("path",{d:"M102.971 72.243c2.616-2.093 3.489-9.775 3.489-9.775s-2.492-.492-6.676-2.062c-4.708-2.092-12.867-4.771-17.575.982-9.54 4.41-2.062 19.93-2.062 19.93l2.729-3.037s-3.956-3.304-2.092-6.277c2.183-3.48 3.943 1.08 3.943 1.08s.64-2.4 3.6-3.36c.356-.714 1.04-2.69 1.44-3.872a1.08 1.08 0 0 1 1.27-.707c2.41.56 8.723 2.03 11.417 2.676.524.126.876.619.825 1.156l-.308 3.266z",fill:"#520038"}),d.createElement("path",{d:"M101.22 76.514c-.104.613-.585 1.044-1.076.96-.49-.082-.805-.646-.702-1.26.104-.613.585-1.044 1.076-.961.491.083.805.647.702 1.26M94.26 75.074c-.104.613-.585 1.044-1.076.96-.49-.082-.805-.646-.702-1.26.104-.613.585-1.044 1.076-.96.491.082.805.646.702 1.26",fill:"#552950"}),d.createElement("path",{stroke:"#DB836E",strokeWidth:"1.063",strokeLinecap:"round",strokeLinejoin:"round",d:"M99.206 73.644l-.9 1.62-.3 4.38h-2.24"}),d.createElement("path",{d:"M99.926 73.284s1.8-.72 2.52.54",stroke:"#5C2552",strokeWidth:"1.117",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M81.367 73.084s.48-1.12 1.12-.72c.64.4 1.28 1.44.56 2s.16 1.68.16 1.68",stroke:"#DB836E",strokeWidth:"1.117",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M92.326 71.724s1.84 1.12 4.16.96",stroke:"#5C2552",strokeWidth:"1.117",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M92.726 80.604s2.24 1.2 4.4 1.2M93.686 83.164s.96.4 1.52.32M83.687 80.044s1.786 6.547 9.262 7.954",stroke:"#DB836E",strokeWidth:"1.063",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M95.548 91.663s-1.068 2.821-8.298 2.105c-7.23-.717-10.29-5.044-10.29-5.044",stroke:"#E4EBF7",strokeWidth:"1.136",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M78.126 87.478s6.526 4.972 16.47 2.486c0 0 9.577 1.02 11.536 5.322 5.36 11.77.543 36.835 0 39.962 3.496 4.055-.466 8.483-.466 8.483-15.624-3.548-35.81-.6-35.81-.6-4.849-3.546-1.223-9.044-1.223-9.044L62.38 110.32c-2.485-15.227.833-19.803 3.549-20.743 3.03-1.049 8.04-1.282 8.04-1.282.496-.058 1.08-.076 1.37-.233 2.36-1.282 2.787-.583 2.787-.583",fill:"#FFF"}),d.createElement("path",{d:"M65.828 89.81s-6.875.465-7.59 8.156c-.466 8.857 3.03 10.954 3.03 10.954s6.075 22.102 16.796 22.957c8.39-2.176 4.758-6.702 4.661-11.42-.233-11.304-7.108-16.897-7.108-16.897s-4.212-13.75-9.789-13.75",fill:"#FFC6A0"}),d.createElement("path",{d:"M71.716 124.225s.855 11.264 9.828 6.486c4.765-2.536 7.581-13.828 9.789-22.568 1.456-5.768 2.58-12.197 2.58-12.197l-4.973-1.709s-2.408 5.516-7.769 12.275c-4.335 5.467-9.144 11.11-9.455 17.713",fill:"#FFC6A0"}),d.createElement("path",{d:"M108.463 105.191s1.747 2.724-2.331 30.535c2.376 2.216 1.053 6.012-.233 7.51",stroke:"#E4EBF7",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M123.262 131.527s-.427 2.732-11.77 1.981c-15.187-1.006-25.326-3.25-25.326-3.25l.933-5.8s.723.215 9.71-.068c11.887-.373 18.714-6.07 24.964-1.022 4.039 3.263 1.489 8.16 1.489 8.16",fill:"#FFC6A0"}),d.createElement("path",{d:"M70.24 90.974s-5.593-4.739-11.054 2.68c-3.318 7.223.517 15.284 2.664 19.578-.31 3.729 2.33 4.311 2.33 4.311s.108.895 1.516 2.68c4.078-7.03 6.72-9.166 13.711-12.546-.328-.656-1.877-3.265-1.825-3.767.175-1.69-1.282-2.623-1.282-2.623s-.286-.156-1.165-2.738c-.788-2.313-2.036-5.177-4.895-7.575",fill:"#FFF"}),d.createElement("path",{d:"M90.232 288.027s4.855 2.308 8.313 1.155c3.188-1.063 5.12.755 8.002 1.331 2.881.577 7.769 1.243 13.207-1.424-.117-6.228-7.786-4.499-13.518-7.588-2.895-1.56-4.276-5.336-4.066-9.944H91.544s-1.573 11.89-1.312 16.47",fill:"#CBD1D1"}),d.createElement("path",{d:"M90.207 287.833s2.745 1.437 7.639.738c3.456-.494 3.223.66 7.418 1.282 4.195.621 13.092-.194 14.334-1.126.466 1.242-.388 2.33-.388 2.33s-1.709.682-5.438.932c-2.295.154-8.098.276-10.14-.621-2.02-1.554-4.894-1.515-6.06-.234-4.427 1.075-7.184-.31-7.184-.31l-.181-2.991z",fill:"#2B0849"}),d.createElement("path",{d:"M98.429 272.257h3.496s-.117 7.574 5.127 9.671c-5.244.7-9.672-2.602-8.623-9.671",fill:"#A4AABA"}),d.createElement("path",{d:"M44.425 272.046s-2.208 7.774-4.702 12.899c-1.884 3.874-4.428 7.854 5.729 7.854 6.97 0 9.385-.503 7.782-6.917-1.604-6.415.279-13.836.279-13.836h-9.088z",fill:"#CBD1D1"}),d.createElement("path",{d:"M38.066 290.277s2.198 1.225 6.954 1.225c6.376 0 8.646-1.73 8.646-1.73s.63 1.168-.649 2.27c-1.04.897-3.77 1.668-7.745 1.621-4.347-.05-6.115-.593-7.062-1.224-.864-.577-.72-1.657-.144-2.162",fill:"#2B0849"}),d.createElement("path",{d:"M45.344 274.041s.035 1.592-.329 3.07c-.365 1.49-1.13 3.255-1.184 4.34-.061 1.206 4.755 1.657 5.403.036.65-1.622 1.357-6.737 2.006-7.602.648-.865-5.14-2.222-5.896.156",fill:"#A4AABA"}),d.createElement("path",{d:"M89.476 277.57l13.899.095s1.349-56.643 1.925-66.909c.576-10.267 3.923-45.052 1.042-65.585l-13.037-.669-23.737.81s-.452 4.12-1.243 10.365c-.065.515-.708.874-.777 1.417-.078.608.439 1.407.332 2.044-2.455 14.627-5.797 32.736-8.256 46.837-.121.693-1.282 1.048-1.515 2.796-.042.314.22 1.584.116 1.865-7.14 19.473-12.202 52.601-15.66 67.19l15.176-.015s2.282-10.145 4.185-18.871c2.922-13.389 24.012-88.32 24.012-88.32l3.133-.954-.158 48.568s-.233 1.282.35 2.098c.583.815-.581 1.167-.408 2.331l.408 1.864s-.466 7.458-.932 12.352c-.467 4.895 1.145 40.69 1.145 40.69",fill:"#7BB2F9"}),d.createElement("path",{d:"M64.57 218.881c1.197.099 4.195-2.097 7.225-5.127M96.024 222.534s2.881-1.152 6.34-4.034",stroke:"#648BD8",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M96.973 219.373s2.882-1.153 6.34-4.034",stroke:"#648BD8",strokeWidth:"1.032",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M63.172 222.144s2.724-.614 6.759-3.496M74.903 146.166c-.281 3.226.31 8.856-4.506 9.478M93.182 144.344s.115 14.557-1.344 15.65c-2.305 1.73-3.107 2.02-3.107 2.02M89.197 144.923s.269 13.144-1.01 25.088M83.525 170.71s6.81-1.051 9.116-1.051M46.026 270.045l-.892 4.538M46.937 263.289l-.815 4.157M62.725 202.503c-.33 1.618-.102 1.904-.449 3.438 0 0-2.756 1.903-2.29 3.923.466 2.02-.31 3.424-4.505 17.252-1.762 5.807-4.233 18.922-6.165 28.278-.03.144-.521 2.646-1.14 5.8M64.158 194.136c-.295 1.658-.6 3.31-.917 4.938M71.33 146.787l-1.244 10.877s-1.14.155-.519 2.33c.117 1.399-2.778 16.39-5.382 31.615M44.242 273.727H58.07",stroke:"#648BD8",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M106.18 142.117c-3.028-.489-18.825-2.744-36.219.2a.625.625 0 0 0-.518.644c.063 1.307.044 2.343.015 2.995a.617.617 0 0 0 .716.636c3.303-.534 17.037-2.412 35.664-.266.347.04.66-.214.692-.56.124-1.347.16-2.425.17-3.029a.616.616 0 0 0-.52-.62",fill:"#192064"}),d.createElement("path",{d:"M96.398 145.264l.003-5.102a.843.843 0 0 0-.809-.847 114.104 114.104 0 0 0-8.141-.014.85.85 0 0 0-.82.847l-.003 5.097c0 .476.388.857.864.845 2.478-.064 5.166-.067 8.03.017a.848.848 0 0 0 .876-.843",fill:"#FFF"}),d.createElement("path",{d:"M95.239 144.296l.002-3.195a.667.667 0 0 0-.643-.672c-1.9-.061-3.941-.073-6.094-.01a.675.675 0 0 0-.654.672l-.002 3.192c0 .376.305.677.68.669 1.859-.042 3.874-.043 6.02.012.376.01.69-.291.691-.668",fill:"#192064"}),d.createElement("path",{d:"M90.102 273.522h12.819M91.216 269.761c.006 3.519-.072 5.55 0 6.292M90.923 263.474c-.009 1.599-.016 2.558-.016 4.505M90.44 170.404l.932 46.38s.7 1.631-.233 2.796c-.932 1.166 2.564.7.932 2.33-1.63 1.633.933 1.166 0 3.497-.618 1.546-1.031 21.921-1.138 36.513",stroke:"#648BD8",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M73.736 98.665l2.214 4.312s2.098.816 1.865 2.68l.816 2.214M64.297 116.611c.233-.932 2.176-7.147 12.585-10.488M77.598 90.042s7.691 6.137 16.547 2.72",stroke:"#E4EBF7",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M91.974 86.954s5.476-.816 7.574-4.545c1.297-.345.72 2.212-.33 3.671-.7.971-1.01 1.554-1.01 1.554s.194.31.155.816c-.053.697-.175.653-.272 1.048-.081.335.108.657 0 1.049-.046.17-.198.5-.382.878-.12.249-.072.687-.2.948-.231.469-1.562 1.87-2.622 2.855-3.826 3.554-5.018 1.644-6.001-.408-.894-1.865-.661-5.127-.874-6.875-.35-2.914-2.622-3.03-1.923-4.429.343-.685 2.87.69 3.263 1.748.757 2.04 2.952 1.807 2.622 1.69",fill:"#FFC6A0"}),d.createElement("path",{d:"M99.8 82.429c-.465.077-.35.272-.97 1.243-.622.971-4.817 2.932-6.39 3.224-2.589.48-2.278-1.56-4.254-2.855-1.69-1.107-3.562-.638-1.398 1.398.99.932.932 1.107 1.398 3.205.335 1.506-.64 3.67.7 5.593",stroke:"#DB836E",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M79.543 108.673c-2.1 2.926-4.266 6.175-5.557 8.762",stroke:"#E59788",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M87.72 124.768s-2.098-1.942-5.127-2.719c-3.03-.777-3.574-.155-5.516.078-1.942.233-3.885-.932-3.652.7.233 1.63 5.05 1.01 5.206 2.097.155 1.087-6.37 2.796-8.313 2.175-.777.777.466 1.864 2.02 2.175.233 1.554 2.253 1.554 2.253 1.554s.699 1.01 2.641 1.088c2.486 1.32 8.934-.7 10.954-1.554 2.02-.855-.466-5.594-.466-5.594",fill:"#FFC6A0"}),d.createElement("path",{d:"M73.425 122.826s.66 1.127 3.167 1.418c2.315.27 2.563.583 2.563.583s-2.545 2.894-9.07 2.272M72.416 129.274s3.826.097 4.933-.718M74.98 130.75s1.961.136 3.36-.505M77.232 131.916s1.748.019 2.914-.505M73.328 122.321s-.595-1.032 1.262-.427c1.671.544 2.833.055 5.128.155 1.389.061 3.067-.297 3.982.15 1.606.784 3.632 2.181 3.632 2.181s10.526 1.204 19.033-1.127M78.864 108.104s-8.39 2.758-13.168 12.12",stroke:"#E59788",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M109.278 112.533s3.38-3.613 7.575-4.662",stroke:"#E4EBF7",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M107.375 123.006s9.697-2.745 11.445-.88",stroke:"#E59788",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M194.605 83.656l3.971-3.886M187.166 90.933l3.736-3.655M191.752 84.207l-4.462-4.56M198.453 91.057l-4.133-4.225M129.256 163.074l3.718-3.718M122.291 170.039l3.498-3.498M126.561 163.626l-4.27-4.27M132.975 170.039l-3.955-3.955",stroke:"#BFCDDD",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M190.156 211.779h-1.604a4.023 4.023 0 0 1-4.011-4.011V175.68a4.023 4.023 0 0 1 4.01-4.01h1.605a4.023 4.023 0 0 1 4.011 4.01v32.088a4.023 4.023 0 0 1-4.01 4.01",fill:"#A3B4C6"}),d.createElement("path",{d:"M237.824 212.977a4.813 4.813 0 0 1-4.813 4.813h-86.636a4.813 4.813 0 0 1 0-9.626h86.636a4.813 4.813 0 0 1 4.813 4.813",fill:"#A3B4C6"}),d.createElement("mask",{fill:"#fff"}),d.createElement("path",{fill:"#A3B4C6",mask:"url(#d)",d:"M154.098 190.096h70.513v-84.617h-70.513z"}),d.createElement("path",{d:"M224.928 190.096H153.78a3.219 3.219 0 0 1-3.208-3.209V167.92a3.219 3.219 0 0 1 3.208-3.21h71.148a3.219 3.219 0 0 1 3.209 3.21v18.967a3.219 3.219 0 0 1-3.21 3.209M224.928 130.832H153.78a3.218 3.218 0 0 1-3.208-3.208v-18.968a3.219 3.219 0 0 1 3.208-3.209h71.148a3.219 3.219 0 0 1 3.209 3.21v18.967a3.218 3.218 0 0 1-3.21 3.208",fill:"#BFCDDD",mask:"url(#d)"}),d.createElement("path",{d:"M159.563 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M166.98 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M174.397 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M222.539 120.546h-22.461a.802.802 0 0 1-.802-.802v-3.208c0-.443.359-.803.802-.803h22.46c.444 0 .803.36.803.803v3.208c0 .443-.36.802-.802.802",fill:"#FFF",mask:"url(#d)"}),d.createElement("path",{d:"M224.928 160.464H153.78a3.218 3.218 0 0 1-3.208-3.209v-18.967a3.219 3.219 0 0 1 3.208-3.209h71.148a3.219 3.219 0 0 1 3.209 3.209v18.967a3.218 3.218 0 0 1-3.21 3.209",fill:"#BFCDDD",mask:"url(#d)"}),d.createElement("path",{d:"M173.455 130.832h49.301M164.984 130.832h6.089M155.952 130.832h6.75M173.837 160.613h49.3M165.365 160.613h6.089M155.57 160.613h6.751",stroke:"#7C90A5",strokeWidth:"1.124",strokeLinecap:"round",strokeLinejoin:"round",mask:"url(#d)"}),d.createElement("path",{d:"M159.563 151.038a2.407 2.407 0 1 1 0-4.814 2.407 2.407 0 0 1 0 4.814M166.98 151.038a2.407 2.407 0 1 1 0-4.814 2.407 2.407 0 0 1 0 4.814M174.397 151.038a2.407 2.407 0 1 1 .001-4.814 2.407 2.407 0 0 1 0 4.814M222.539 151.038h-22.461a.802.802 0 0 1-.802-.802v-3.209c0-.443.359-.802.802-.802h22.46c.444 0 .803.36.803.802v3.209c0 .443-.36.802-.802.802M159.563 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M166.98 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M174.397 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M222.539 179.987h-22.461a.802.802 0 0 1-.802-.802v-3.209c0-.443.359-.802.802-.802h22.46c.444 0 .803.36.803.802v3.209c0 .443-.36.802-.802.802",fill:"#FFF",mask:"url(#d)"}),d.createElement("path",{d:"M203.04 221.108h-27.372a2.413 2.413 0 0 1-2.406-2.407v-11.448a2.414 2.414 0 0 1 2.406-2.407h27.372a2.414 2.414 0 0 1 2.407 2.407V218.7a2.413 2.413 0 0 1-2.407 2.407",fill:"#BFCDDD",mask:"url(#d)"}),d.createElement("path",{d:"M177.259 207.217v11.52M201.05 207.217v11.52",stroke:"#A3B4C6",strokeWidth:"1.124",strokeLinecap:"round",strokeLinejoin:"round",mask:"url(#d)"}),d.createElement("path",{d:"M162.873 267.894a9.422 9.422 0 0 1-9.422-9.422v-14.82a9.423 9.423 0 0 1 18.845 0v14.82a9.423 9.423 0 0 1-9.423 9.422",fill:"#5BA02E",mask:"url(#d)"}),d.createElement("path",{d:"M171.22 267.83a9.422 9.422 0 0 1-9.422-9.423v-3.438a9.423 9.423 0 0 1 18.845 0v3.438a9.423 9.423 0 0 1-9.422 9.423",fill:"#92C110",mask:"url(#d)"}),d.createElement("path",{d:"M181.31 293.666h-27.712a3.209 3.209 0 0 1-3.209-3.21V269.79a3.209 3.209 0 0 1 3.209-3.21h27.711a3.209 3.209 0 0 1 3.209 3.21v20.668a3.209 3.209 0 0 1-3.209 3.209",fill:"#F2D7AD",mask:"url(#d)"}))),uhe=e=>{const{componentCls:t,lineHeightHeading3:n,iconCls:r,padding:i,paddingXL:o,paddingXS:a,paddingLG:l,marginXS:c,lineHeight:u}=e;return{[t]:{padding:`${ae(e.calc(l).mul(2).equal())} ${ae(o)}`,"&-rtl":{direction:"rtl"}},[`${t} ${t}-image`]:{width:e.imageWidth,height:e.imageHeight,margin:"auto"},[`${t} ${t}-icon`]:{marginBottom:l,textAlign:"center",[`& > ${r}`]:{fontSize:e.iconFontSize}},[`${t} ${t}-title`]:{color:e.colorTextHeading,fontSize:e.titleFontSize,lineHeight:n,marginBlock:c,textAlign:"center"},[`${t} ${t}-subtitle`]:{color:e.colorTextDescription,fontSize:e.subtitleFontSize,lineHeight:u,textAlign:"center"},[`${t} ${t}-content`]:{marginTop:l,padding:`${ae(l)} ${ae(e.calc(i).mul(2.5).equal())}`,backgroundColor:e.colorFillAlter},[`${t} ${t}-extra`]:{margin:e.extraMargin,textAlign:"center","& > *":{marginInlineEnd:a,"&:last-child":{marginInlineEnd:0}}}}},dhe=e=>{const{componentCls:t,iconCls:n}=e;return{[`${t}-success ${t}-icon > ${n}`]:{color:e.resultSuccessIconColor},[`${t}-error ${t}-icon > ${n}`]:{color:e.resultErrorIconColor},[`${t}-info ${t}-icon > ${n}`]:{color:e.resultInfoIconColor},[`${t}-warning ${t}-icon > ${n}`]:{color:e.resultWarningIconColor}}},fhe=e=>[uhe(e),dhe(e)],phe=e=>fhe(e),hhe=e=>({titleFontSize:e.fontSizeHeading3,subtitleFontSize:e.fontSize,iconFontSize:e.fontSizeHeading3*3,extraMargin:`${e.paddingLG}px 0 0 0`}),mhe=Fn("Result",e=>{const t=e.colorInfo,n=e.colorError,r=e.colorSuccess,i=e.colorWarning,o=hn(e,{resultInfoIconColor:t,resultErrorIconColor:n,resultSuccessIconColor:r,resultWarningIconColor:i,imageWidth:250,imageHeight:295});return[phe(o)]},hhe),ghe=()=>d.createElement("svg",{width:"251",height:"294"},d.createElement("title",null,"Unauthorized"),d.createElement("g",{fill:"none",fillRule:"evenodd"},d.createElement("path",{d:"M0 129.023v-2.084C0 58.364 55.591 2.774 124.165 2.774h2.085c68.574 0 124.165 55.59 124.165 124.165v2.084c0 68.575-55.59 124.166-124.165 124.166h-2.085C55.591 253.189 0 197.598 0 129.023",fill:"#E4EBF7"}),d.createElement("path",{d:"M41.417 132.92a8.231 8.231 0 1 1-16.38-1.65 8.231 8.231 0 0 1 16.38 1.65",fill:"#FFF"}),d.createElement("path",{d:"M38.652 136.36l10.425 5.91M49.989 148.505l-12.58 10.73",stroke:"#FFF",strokeWidth:"2"}),d.createElement("path",{d:"M41.536 161.28a5.636 5.636 0 1 1-11.216-1.13 5.636 5.636 0 0 1 11.216 1.13M59.154 145.261a5.677 5.677 0 1 1-11.297-1.138 5.677 5.677 0 0 1 11.297 1.138M100.36 29.516l29.66-.013a4.562 4.562 0 1 0-.004-9.126l-29.66.013a4.563 4.563 0 0 0 .005 9.126M111.705 47.754l29.659-.013a4.563 4.563 0 1 0-.004-9.126l-29.66.013a4.563 4.563 0 1 0 .005 9.126",fill:"#FFF"}),d.createElement("path",{d:"M114.066 29.503V29.5l15.698-.007a4.563 4.563 0 1 0 .004 9.126l-15.698.007v-.002a4.562 4.562 0 0 0-.004-9.122M185.405 137.723c-.55 5.455-5.418 9.432-10.873 8.882-5.456-.55-9.432-5.418-8.882-10.873.55-5.455 5.418-9.432 10.873-8.882 5.455.55 9.432 5.418 8.882 10.873",fill:"#FFF"}),d.createElement("path",{d:"M180.17 143.772l12.572 7.129M193.841 158.42L178.67 171.36",stroke:"#FFF",strokeWidth:"2"}),d.createElement("path",{d:"M185.55 171.926a6.798 6.798 0 1 1-13.528-1.363 6.798 6.798 0 0 1 13.527 1.363M204.12 155.285a6.848 6.848 0 1 1-13.627-1.375 6.848 6.848 0 0 1 13.626 1.375",fill:"#FFF"}),d.createElement("path",{d:"M152.988 194.074a2.21 2.21 0 1 1-4.42 0 2.21 2.21 0 0 1 4.42 0zM225.931 118.217a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.421 0zM217.09 153.051a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.42 0zM177.84 109.842a2.21 2.21 0 1 1-4.422 0 2.21 2.21 0 0 1 4.421 0zM196.114 94.454a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.421 0zM202.844 182.523a2.21 2.21 0 1 1-4.42 0 2.21 2.21 0 0 1 4.42 0z",stroke:"#FFF",strokeWidth:"2"}),d.createElement("path",{stroke:"#FFF",strokeWidth:"2",d:"M215.125 155.262l-1.902 20.075-10.87 5.958M174.601 176.636l-6.322 9.761H156.98l-4.484 6.449M175.874 127.28V111.56M221.51 119.404l-12.77 7.859-15.228-7.86V96.668"}),d.createElement("path",{d:"M180.68 29.32C180.68 13.128 193.806 0 210 0c16.193 0 29.32 13.127 29.32 29.32 0 16.194-13.127 29.322-29.32 29.322-16.193 0-29.32-13.128-29.32-29.321",fill:"#A26EF4"}),d.createElement("path",{d:"M221.45 41.706l-21.563-.125a1.744 1.744 0 0 1-1.734-1.754l.071-12.23a1.744 1.744 0 0 1 1.754-1.734l21.562.125c.964.006 1.74.791 1.735 1.755l-.071 12.229a1.744 1.744 0 0 1-1.754 1.734",fill:"#FFF"}),d.createElement("path",{d:"M215.106 29.192c-.015 2.577-2.049 4.654-4.543 4.64-2.494-.014-4.504-2.115-4.489-4.693l.04-6.925c.016-2.577 2.05-4.654 4.543-4.64 2.494.015 4.504 2.116 4.49 4.693l-.04 6.925zm-4.53-14.074a6.877 6.877 0 0 0-6.916 6.837l-.043 7.368a6.877 6.877 0 0 0 13.754.08l.042-7.368a6.878 6.878 0 0 0-6.837-6.917zM167.566 68.367h-3.93a4.73 4.73 0 0 1-4.717-4.717 4.73 4.73 0 0 1 4.717-4.717h3.93a4.73 4.73 0 0 1 4.717 4.717 4.73 4.73 0 0 1-4.717 4.717",fill:"#FFF"}),d.createElement("path",{d:"M168.214 248.838a6.611 6.611 0 0 1-6.61-6.611v-66.108a6.611 6.611 0 0 1 13.221 0v66.108a6.611 6.611 0 0 1-6.61 6.61",fill:"#5BA02E"}),d.createElement("path",{d:"M176.147 248.176a6.611 6.611 0 0 1-6.61-6.61v-33.054a6.611 6.611 0 1 1 13.221 0v33.053a6.611 6.611 0 0 1-6.61 6.611",fill:"#92C110"}),d.createElement("path",{d:"M185.994 293.89h-27.376a3.17 3.17 0 0 1-3.17-3.17v-45.887a3.17 3.17 0 0 1 3.17-3.17h27.376a3.17 3.17 0 0 1 3.17 3.17v45.886a3.17 3.17 0 0 1-3.17 3.17",fill:"#F2D7AD"}),d.createElement("path",{d:"M81.972 147.673s6.377-.927 17.566-1.28c11.729-.371 17.57 1.086 17.57 1.086s3.697-3.855.968-8.424c1.278-12.077 5.982-32.827.335-48.273-1.116-1.339-3.743-1.512-7.536-.62-1.337.315-7.147-.149-7.983-.1l-15.311-.347s-3.487-.17-8.035-.508c-1.512-.113-4.227-1.683-5.458-.338-.406.443-2.425 5.669-1.97 16.077l8.635 35.642s-3.141 3.61 1.219 7.085",fill:"#FFF"}),d.createElement("path",{d:"M75.768 73.325l-.9-6.397 11.982-6.52s7.302-.118 8.038 1.205c.737 1.324-5.616.993-5.616.993s-1.836 1.388-2.615 2.5c-1.654 2.363-.986 6.471-8.318 5.986-1.708.284-2.57 2.233-2.57 2.233",fill:"#FFC6A0"}),d.createElement("path",{d:"M52.44 77.672s14.217 9.406 24.973 14.444c1.061.497-2.094 16.183-11.892 11.811-7.436-3.318-20.162-8.44-21.482-14.496-.71-3.258 2.543-7.643 8.401-11.76M141.862 80.113s-6.693 2.999-13.844 6.876c-3.894 2.11-10.137 4.704-12.33 7.988-6.224 9.314 3.536 11.22 12.947 7.503 6.71-2.651 28.999-12.127 13.227-22.367",fill:"#FFB594"}),d.createElement("path",{d:"M76.166 66.36l3.06 3.881s-2.783 2.67-6.31 5.747c-7.103 6.195-12.803 14.296-15.995 16.44-3.966 2.662-9.754 3.314-12.177-.118-3.553-5.032.464-14.628 31.422-25.95",fill:"#FFC6A0"}),d.createElement("path",{d:"M64.674 85.116s-2.34 8.413-8.912 14.447c.652.548 18.586 10.51 22.144 10.056 5.238-.669 6.417-18.968 1.145-20.531-.702-.208-5.901-1.286-8.853-2.167-.87-.26-1.611-1.71-3.545-.936l-1.98-.869zM128.362 85.826s5.318 1.956 7.325 13.734c-.546.274-17.55 12.35-21.829 7.805-6.534-6.94-.766-17.393 4.275-18.61 4.646-1.121 5.03-1.37 10.23-2.929",fill:"#FFF"}),d.createElement("path",{d:"M78.18 94.656s.911 7.41-4.914 13.078",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M87.397 94.68s3.124 2.572 10.263 2.572c7.14 0 9.074-3.437 9.074-3.437",stroke:"#E4EBF7",strokeWidth:".932",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M117.184 68.639l-6.781-6.177s-5.355-4.314-9.223-.893c-3.867 3.422 4.463 2.083 5.653 4.165 1.19 2.082.848 1.143-2.083.446-5.603-1.331-2.082.893 2.975 5.355 2.091 1.845 6.992.955 6.992.955l2.467-3.851z",fill:"#FFC6A0"}),d.createElement("path",{d:"M105.282 91.315l-.297-10.937-15.918-.027-.53 10.45c-.026.403.17.788.515.999 2.049 1.251 9.387 5.093 15.799.424.287-.21.443-.554.431-.91",fill:"#FFB594"}),d.createElement("path",{d:"M107.573 74.24c.817-1.147.982-9.118 1.015-11.928a1.046 1.046 0 0 0-.965-1.055l-4.62-.365c-7.71-1.044-17.071.624-18.253 6.346-5.482 5.813-.421 13.244-.421 13.244s1.963 3.566 4.305 6.791c.756 1.041.398-3.731 3.04-5.929 5.524-4.594 15.899-7.103 15.899-7.103",fill:"#5C2552"}),d.createElement("path",{d:"M88.426 83.206s2.685 6.202 11.602 6.522c7.82.28 8.973-7.008 7.434-17.505l-.909-5.483c-6.118-2.897-15.478.54-15.478.54s-.576 2.044-.19 5.504c-2.276 2.066-1.824 5.618-1.824 5.618s-.905-1.922-1.98-2.321c-.86-.32-1.897.089-2.322 1.98-1.04 4.632 3.667 5.145 3.667 5.145",fill:"#FFC6A0"}),d.createElement("path",{stroke:"#DB836E",strokeWidth:"1.145",strokeLinecap:"round",strokeLinejoin:"round",d:"M100.843 77.099l1.701-.928-1.015-4.324.674-1.406"}),d.createElement("path",{d:"M105.546 74.092c-.022.713-.452 1.279-.96 1.263-.51-.016-.904-.607-.882-1.32.021-.713.452-1.278.96-1.263.51.016.904.607.882 1.32M97.592 74.349c-.022.713-.452 1.278-.961 1.263-.509-.016-.904-.607-.882-1.32.022-.713.452-1.279.961-1.263.51.016.904.606.882 1.32",fill:"#552950"}),d.createElement("path",{d:"M91.132 86.786s5.269 4.957 12.679 2.327",stroke:"#DB836E",strokeWidth:"1.145",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M99.776 81.903s-3.592.232-1.44-2.79c1.59-1.496 4.897-.46 4.897-.46s1.156 3.906-3.457 3.25",fill:"#DB836E"}),d.createElement("path",{d:"M102.88 70.6s2.483.84 3.402.715M93.883 71.975s2.492-1.144 4.778-1.073",stroke:"#5C2552",strokeWidth:"1.526",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M86.32 77.374s.961.879 1.458 2.106c-.377.48-1.033 1.152-.236 1.809M99.337 83.719s1.911.151 2.509-.254",stroke:"#DB836E",strokeWidth:"1.145",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M87.782 115.821l15.73-3.012M100.165 115.821l10.04-2.008",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M66.508 86.763s-1.598 8.83-6.697 14.078",stroke:"#E4EBF7",strokeWidth:"1.114",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M128.31 87.934s3.013 4.121 4.06 11.785",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M64.09 84.816s-6.03 9.912-13.607 9.903",stroke:"#DB836E",strokeWidth:".795",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M112.366 65.909l-.142 5.32s5.993 4.472 11.945 9.202c4.482 3.562 8.888 7.455 10.985 8.662 4.804 2.766 8.9 3.355 11.076 1.808 4.071-2.894 4.373-9.878-8.136-15.263-4.271-1.838-16.144-6.36-25.728-9.73",fill:"#FFC6A0"}),d.createElement("path",{d:"M130.532 85.488s4.588 5.757 11.619 6.214",stroke:"#DB836E",strokeWidth:".75",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M121.708 105.73s-.393 8.564-1.34 13.612",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M115.784 161.512s-3.57-1.488-2.678-7.14",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M101.52 290.246s4.326 2.057 7.408 1.03c2.842-.948 4.564.673 7.132 1.186 2.57.514 6.925 1.108 11.772-1.269-.104-5.551-6.939-4.01-12.048-6.763-2.582-1.39-3.812-4.757-3.625-8.863h-9.471s-1.402 10.596-1.169 14.68",fill:"#CBD1D1"}),d.createElement("path",{d:"M101.496 290.073s2.447 1.281 6.809.658c3.081-.44 3.74.485 7.479 1.039 3.739.554 10.802-.07 11.91-.9.415 1.108-.347 2.077-.347 2.077s-1.523.608-4.847.831c-2.045.137-5.843.293-7.663-.507-1.8-1.385-5.286-1.917-5.77-.243-3.947.958-7.41-.288-7.41-.288l-.16-2.667z",fill:"#2B0849"}),d.createElement("path",{d:"M108.824 276.19h3.116s-.103 6.751 4.57 8.62c-4.673.624-8.62-2.32-7.686-8.62",fill:"#A4AABA"}),d.createElement("path",{d:"M57.65 272.52s-2.122 7.47-4.518 12.396c-1.811 3.724-4.255 7.548 5.505 7.548 6.698 0 9.02-.483 7.479-6.648-1.541-6.164.268-13.296.268-13.296H57.65z",fill:"#CBD1D1"}),d.createElement("path",{d:"M51.54 290.04s2.111 1.178 6.682 1.178c6.128 0 8.31-1.662 8.31-1.662s.605 1.122-.624 2.18c-1 .862-3.624 1.603-7.444 1.559-4.177-.049-5.876-.57-6.786-1.177-.831-.554-.692-1.593-.138-2.078",fill:"#2B0849"}),d.createElement("path",{d:"M58.533 274.438s.034 1.529-.315 2.95c-.352 1.431-1.087 3.127-1.139 4.17-.058 1.16 4.57 1.592 5.194.035.623-1.559 1.303-6.475 1.927-7.306.622-.831-4.94-2.135-5.667.15",fill:"#A4AABA"}),d.createElement("path",{d:"M100.885 277.015l13.306.092s1.291-54.228 1.843-64.056c.552-9.828 3.756-43.13.997-62.788l-12.48-.64-22.725.776s-.433 3.944-1.19 9.921c-.062.493-.677.838-.744 1.358-.075.582.42 1.347.318 1.956-2.35 14.003-6.343 32.926-8.697 46.425-.116.663-1.227 1.004-1.45 2.677-.04.3.21 1.516.112 1.785-6.836 18.643-10.89 47.584-14.2 61.551l14.528-.014s2.185-8.524 4.008-16.878c2.796-12.817 22.987-84.553 22.987-84.553l3-.517 1.037 46.1s-.223 1.228.334 2.008c.558.782-.556 1.117-.39 2.233l.39 1.784s-.446 7.14-.892 11.826c-.446 4.685-.092 38.954-.092 38.954",fill:"#7BB2F9"}),d.createElement("path",{d:"M77.438 220.434c1.146.094 4.016-2.008 6.916-4.91M107.55 223.931s2.758-1.103 6.069-3.862",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M108.459 220.905s2.759-1.104 6.07-3.863",stroke:"#648BD8",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M76.099 223.557s2.608-.587 6.47-3.346M87.33 150.82c-.27 3.088.297 8.478-4.315 9.073M104.829 149.075s.11 13.936-1.286 14.983c-2.207 1.655-2.975 1.934-2.975 1.934M101.014 149.63s.035 12.81-1.19 24.245M94.93 174.965s7.174-1.655 9.38-1.655M75.671 204.754c-.316 1.55-.64 3.067-.973 4.535 0 0-1.45 1.822-1.003 3.756.446 1.934-.943 2.034-4.96 15.273-1.686 5.559-4.464 18.49-6.313 27.447-.078.38-4.018 18.06-4.093 18.423M77.043 196.743a313.269 313.269 0 0 1-.877 4.729M83.908 151.414l-1.19 10.413s-1.091.148-.496 2.23c.111 1.34-2.66 15.692-5.153 30.267M57.58 272.94h13.238",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M117.377 147.423s-16.955-3.087-35.7.199c.157 2.501-.002 4.128-.002 4.128s14.607-2.802 35.476-.31c.251-2.342.226-4.017.226-4.017",fill:"#192064"}),d.createElement("path",{d:"M107.511 150.353l.004-4.885a.807.807 0 0 0-.774-.81c-2.428-.092-5.04-.108-7.795-.014a.814.814 0 0 0-.784.81l-.003 4.88c0 .456.371.82.827.808a140.76 140.76 0 0 1 7.688.017.81.81 0 0 0 .837-.806",fill:"#FFF"}),d.createElement("path",{d:"M106.402 149.426l.002-3.06a.64.64 0 0 0-.616-.643 94.135 94.135 0 0 0-5.834-.009.647.647 0 0 0-.626.643l-.001 3.056c0 .36.291.648.651.64 1.78-.04 3.708-.041 5.762.012.36.009.662-.279.662-.64",fill:"#192064"}),d.createElement("path",{d:"M101.485 273.933h12.272M102.652 269.075c.006 3.368.04 5.759.11 6.47M102.667 263.125c-.009 1.53-.015 2.98-.016 4.313M102.204 174.024l.893 44.402s.669 1.561-.224 2.677c-.892 1.116 2.455.67.893 2.231-1.562 1.562.893 1.116 0 3.347-.592 1.48-.988 20.987-1.09 34.956",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}))),vhe={success:wm,error:Gu,info:Ab,warning:lhe},Bm={404:she,500:che,403:ghe},yhe=Object.keys(Bm),bhe=e=>{let{prefixCls:t,icon:n,status:r}=e;const i=le(`${t}-icon`);if(yhe.includes(`${r}`)){const a=Bm[r];return d.createElement("div",{className:`${i} ${t}-image`},d.createElement(a,null))}const o=d.createElement(vhe[r]);return n===null||n===!1?null:d.createElement("div",{className:i},n||o)},Che=e=>{let{prefixCls:t,extra:n}=e;return n?d.createElement("div",{className:`${t}-extra`},n):null},c2=e=>{let{prefixCls:t,className:n,rootClassName:r,subTitle:i,title:o,style:a,children:l,status:c="info",icon:u,extra:p}=e;const{getPrefixCls:h,direction:m,result:g}=d.useContext(At),b=h("result",t),[E,x,S]=mhe(b),C=le(b,`${b}-${c}`,n,g==null?void 0:g.className,r,{[`${b}-rtl`]:m==="rtl"},x,S),_=Object.assign(Object.assign({},g==null?void 0:g.style),a);return E(d.createElement("div",{className:C,style:_},d.createElement(bhe,{prefixCls:b,status:c,icon:u}),d.createElement("div",{className:`${b}-title`},o),i&&d.createElement("div",{className:`${b}-subtitle`},i),d.createElement(Che,{prefixCls:b,extra:p}),l&&d.createElement("div",{className:`${b}-content`},l)))};c2.PRESENTED_IMAGE_403=Bm[403];c2.PRESENTED_IMAGE_404=Bm[404];c2.PRESENTED_IMAGE_500=Bm[500];var os={},jm="rc-table-internal-hook";function x8(e){var t=d.createContext(void 0),n=function(i){var o=i.value,a=i.children,l=d.useRef(o);l.current=o;var c=d.useState(function(){return{getValue:function(){return l.current},listeners:new Set}}),u=_e(c,1),p=u[0];return xn(function(){Ta.unstable_batchedUpdates(function(){p.listeners.forEach(function(h){h(o)})})},[o]),d.createElement(t.Provider,{value:p},a)};return{Context:t,Provider:n,defaultValue:e}}function Di(e,t){var n=Kn(typeof t=="function"?t:function(h){if(t===void 0)return h;if(!Array.isArray(t))return h[t];var m={};return t.forEach(function(g){m[g]=h[g]}),m}),r=d.useContext(e==null?void 0:e.Context),i=r||{},o=i.listeners,a=i.getValue,l=d.useRef();l.current=n(r?a():e==null?void 0:e.defaultValue);var c=d.useState({}),u=_e(c,2),p=u[1];return xn(function(){if(!r)return;function h(m){var g=n(m);Ll(l.current,g,!0)||p({})}return o.add(h),function(){o.delete(h)}},[r]),l.current}function She(){var e=d.createContext(null);function t(){return d.useContext(e)}function n(i,o){var a=al(i),l=function(u,p){var h=a?{ref:p}:{},m=d.useRef(0),g=d.useRef(u),b=t();return b!==null?d.createElement(i,Ve({},u,h)):((!o||o(g.current,u))&&(m.current+=1),g.current=u,d.createElement(e.Provider,{value:m.current},d.createElement(i,Ve({},u,h))))};return a?d.forwardRef(l):l}function r(i,o){var a=al(i),l=function(u,p){var h=a?{ref:p}:{};return t(),d.createElement(i,Ve({},u,h))};return a?d.memo(d.forwardRef(l),o):d.memo(l,o)}return{makeImmutable:n,responseImmutable:r,useImmutableMark:t}}var w8=She(),hj=w8.makeImmutable,m1=w8.responseImmutable,Ehe=w8.useImmutableMark,vo=x8(),mj=d.createContext({renderWithProps:!1}),xhe="RC_TABLE_KEY";function whe(e){return e==null?[]:Array.isArray(e)?e:[e]}function u2(e){var t=[],n={};return e.forEach(function(r){for(var i=r||{},o=i.key,a=i.dataIndex,l=o||whe(a).join("-")||xhe;n[l];)l="".concat(l,"_next");n[l]=!0,t.push(l)}),t}function EE(e){return e!=null}function _he(e){return typeof e=="number"&&!Number.isNaN(e)}function The(e){return e&&Nt(e)==="object"&&!Array.isArray(e)&&!d.isValidElement(e)}function Ohe(e,t,n,r,i,o){var a=d.useContext(mj),l=Ehe(),c=Vu(function(){if(EE(r))return[r];var u=t==null||t===""?[]:Array.isArray(t)?t:[t],p=lo(e,u),h=p,m=void 0;if(i){var g=i(p,e,n);The(g)?(h=g.children,m=g.props,a.renderWithProps=!0):h=g}return[h,m]},[l,e,r,t,i,n],function(u,p){if(o){var h=_e(u,2),m=h[1],g=_e(p,2),b=g[1];return o(b,m)}return a.renderWithProps?!0:!Ll(u,p,!0)});return c}function Ihe(e,t,n,r){var i=e+t-1;return e<=r&&i>=n}function khe(e,t){return Di(vo,function(n){var r=Ihe(e,t||1,n.hoverStartRow,n.hoverEndRow);return[r,n.onHover]})}var $he=function(t){var n=t.ellipsis,r=t.rowType,i=t.children,o,a=n===!0?{showTitle:!0}:n;return a&&(a.showTitle||r==="header")&&(typeof i=="string"||typeof i=="number"?o=i.toString():d.isValidElement(i)&&typeof i.props.children=="string"&&(o=i.props.children)),o};function Nhe(e){var t,n,r,i,o,a,l,c,u=e.component,p=e.children,h=e.ellipsis,m=e.scope,g=e.prefixCls,b=e.className,E=e.align,x=e.record,S=e.render,C=e.dataIndex,_=e.renderIndex,O=e.shouldCellUpdate,k=e.index,T=e.rowType,I=e.colSpan,$=e.rowSpan,M=e.fixLeft,R=e.fixRight,j=e.firstFixLeft,D=e.lastFixLeft,L=e.firstFixRight,B=e.lastFixRight,H=e.appendNode,W=e.additionalProps,z=W===void 0?{}:W,V=e.isSticky,X="".concat(g,"-cell"),A=Di(vo,["supportSticky","allColumnsFixedLeft","rowHoverable"]),P=A.supportSticky,Y=A.allColumnsFixedLeft,U=A.rowHoverable,Q=Ohe(x,C,_,p,S,O),ee=_e(Q,2),se=ee[0],ne=ee[1],oe={},pe=typeof M=="number"&&P,be=typeof R=="number"&&P;pe&&(oe.position="sticky",oe.left=M),be&&(oe.position="sticky",oe.right=R);var ue=(t=(n=(r=ne==null?void 0:ne.colSpan)!==null&&r!==void 0?r:z.colSpan)!==null&&n!==void 0?n:I)!==null&&t!==void 0?t:1,de=(i=(o=(a=ne==null?void 0:ne.rowSpan)!==null&&a!==void 0?a:z.rowSpan)!==null&&o!==void 0?o:$)!==null&&i!==void 0?i:1,re=khe(k,de),me=_e(re,2),ge=me[0],Ae=me[1],De=Kn(function(je){var Ge;x&&Ae(k,k+de-1),z==null||(Ge=z.onMouseEnter)===null||Ge===void 0||Ge.call(z,je)}),ze=Kn(function(je){var Ge;x&&Ae(-1,-1),z==null||(Ge=z.onMouseLeave)===null||Ge===void 0||Ge.call(z,je)});if(ue===0||de===0)return null;var et=(l=z.title)!==null&&l!==void 0?l:$he({rowType:T,ellipsis:h,children:se}),Ie=le(X,b,(c={},J(J(J(J(J(J(J(J(J(J(c,"".concat(X,"-fix-left"),pe&&P),"".concat(X,"-fix-left-first"),j&&P),"".concat(X,"-fix-left-last"),D&&P),"".concat(X,"-fix-left-all"),D&&Y&&P),"".concat(X,"-fix-right"),be&&P),"".concat(X,"-fix-right-first"),L&&P),"".concat(X,"-fix-right-last"),B&&P),"".concat(X,"-ellipsis"),h),"".concat(X,"-with-append"),H),"".concat(X,"-fix-sticky"),(pe||be)&&V&&P),J(c,"".concat(X,"-row-hover"),!ne&&ge)),z.className,ne==null?void 0:ne.className),Te={};E&&(Te.textAlign=E);var Ue=te(te(te(te({},ne==null?void 0:ne.style),oe),Te),z.style),Le=se;return Nt(Le)==="object"&&!Array.isArray(Le)&&!d.isValidElement(Le)&&(Le=null),h&&(D||L)&&(Le=d.createElement("span",{className:"".concat(X,"-content")},Le)),d.createElement(u,Ve({},ne,z,{className:Ie,style:Ue,title:et,scope:m,onMouseEnter:U?De:void 0,onMouseLeave:U?ze:void 0,colSpan:ue!==1?ue:null,rowSpan:de!==1?de:null}),H,Le)}const g1=d.memo(Nhe);function _8(e,t,n,r,i){var o=n[e]||{},a=n[t]||{},l,c;o.fixed==="left"?l=r.left[i==="rtl"?t:e]:a.fixed==="right"&&(c=r.right[i==="rtl"?e:t]);var u=!1,p=!1,h=!1,m=!1,g=n[t+1],b=n[e-1],E=g&&!g.fixed||b&&!b.fixed||n.every(function(O){return O.fixed==="left"});if(i==="rtl"){if(l!==void 0){var x=b&&b.fixed==="left";m=!x&&E}else if(c!==void 0){var S=g&&g.fixed==="right";h=!S&&E}}else if(l!==void 0){var C=g&&g.fixed==="left";u=!C&&E}else if(c!==void 0){var _=b&&b.fixed==="right";p=!_&&E}return{fixLeft:l,fixRight:c,lastFixLeft:u,firstFixRight:p,lastFixRight:h,firstFixLeft:m,isSticky:r.isSticky}}var gj=d.createContext({});function Ahe(e){var t=e.className,n=e.index,r=e.children,i=e.colSpan,o=i===void 0?1:i,a=e.rowSpan,l=e.align,c=Di(vo,["prefixCls","direction"]),u=c.prefixCls,p=c.direction,h=d.useContext(gj),m=h.scrollColumnIndex,g=h.stickyOffsets,b=h.flattenColumns,E=n+o-1,x=E+1===m?o+1:o,S=_8(n,n+x-1,b,g,p);return d.createElement(g1,Ve({className:t,index:n,component:"td",prefixCls:u,record:null,dataIndex:null,align:l,colSpan:x,rowSpan:a,render:function(){return r}},S))}var Rhe=["children"];function Mhe(e){var t=e.children,n=Yt(e,Rhe);return d.createElement("tr",n,t)}function d2(e){var t=e.children;return t}d2.Row=Mhe;d2.Cell=Ahe;function Phe(e){var t=e.children,n=e.stickyOffsets,r=e.flattenColumns,i=Di(vo,"prefixCls"),o=r.length-1,a=r[o],l=d.useMemo(function(){return{stickyOffsets:n,flattenColumns:r,scrollColumnIndex:a!=null&&a.scrollbar?o:null}},[a,r,o,n]);return d.createElement(gj.Provider,{value:l},d.createElement("tfoot",{className:"".concat(i,"-summary")},t))}const ig=m1(Phe);var vj=d2;function Lhe(e){return null}function Dhe(e){return null}function yj(e,t,n,r,i,o,a){e.push({record:t,indent:n,index:a});var l=o(t),c=i==null?void 0:i.has(l);if(t&&Array.isArray(t[r])&&c)for(var u=0;u<t[r].length;u+=1)yj(e,t[r][u],n+1,r,i,o,u)}function bj(e,t,n,r){var i=d.useMemo(function(){if(n!=null&&n.size){for(var o=[],a=0;a<(e==null?void 0:e.length);a+=1){var l=e[a];yj(o,l,0,t,n,r,a)}return o}return e==null?void 0:e.map(function(c,u){return{record:c,indent:0,index:u}})},[e,t,n,r]);return i}function Cj(e,t,n,r){var i=Di(vo,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex","expandedKeys","childrenColumnName","rowExpandable","onRow"]),o=i.flattenColumns,a=i.expandableType,l=i.expandedKeys,c=i.childrenColumnName,u=i.onTriggerExpand,p=i.rowExpandable,h=i.onRow,m=i.expandRowByClick,g=i.rowClassName,b=a==="nest",E=a==="row"&&(!p||p(e)),x=E||b,S=l&&l.has(t),C=c&&e&&e[c],_=Kn(u),O=h==null?void 0:h(e,n),k=O==null?void 0:O.onClick,T=function(R){m&&x&&u(e,R);for(var j=arguments.length,D=new Array(j>1?j-1:0),L=1;L<j;L++)D[L-1]=arguments[L];k==null||k.apply(void 0,[R].concat(D))},I;typeof g=="string"?I=g:typeof g=="function"&&(I=g(e,n,r));var $=u2(o);return te(te({},i),{},{columnsKey:$,nestExpandable:b,expanded:S,hasNestChildren:C,record:e,onTriggerExpand:_,rowSupportExpand:E,expandable:x,rowProps:te(te({},O),{},{className:le(I,O==null?void 0:O.className),onClick:T})})}function Sj(e){var t=e.prefixCls,n=e.children,r=e.component,i=e.cellComponent,o=e.className,a=e.expanded,l=e.colSpan,c=e.isEmpty,u=Di(vo,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),p=u.scrollbarSize,h=u.fixHeader,m=u.fixColumn,g=u.componentWidth,b=u.horizonScroll,E=n;return(c?b&&g:m)&&(E=d.createElement("div",{style:{width:g-(h&&!c?p:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(t,"-expanded-row-fixed")},E)),d.createElement(r,{className:o,style:{display:a?null:"none"}},d.createElement(g1,{component:i,prefixCls:t,colSpan:l},E))}function Fhe(e){var t=e.prefixCls,n=e.record,r=e.onExpand,i=e.expanded,o=e.expandable,a="".concat(t,"-row-expand-icon");if(!o)return d.createElement("span",{className:le(a,"".concat(t,"-row-spaced"))});var l=function(u){r(n,u),u.stopPropagation()};return d.createElement("span",{className:le(a,J(J({},"".concat(t,"-row-expanded"),i),"".concat(t,"-row-collapsed"),!i)),onClick:l})}function Bhe(e,t,n){var r=[];function i(o){(o||[]).forEach(function(a,l){r.push(t(a,l)),i(a[n])})}return i(e),r}function Ej(e,t,n,r){return typeof e=="string"?e:typeof e=="function"?e(t,n,r):""}function xj(e,t,n,r,i){var o=e.record,a=e.prefixCls,l=e.columnsKey,c=e.fixedInfoList,u=e.expandIconColumnIndex,p=e.nestExpandable,h=e.indentSize,m=e.expandIcon,g=e.expanded,b=e.hasNestChildren,E=e.onTriggerExpand,x=l[n],S=c[n],C;n===(u||0)&&p&&(C=d.createElement(d.Fragment,null,d.createElement("span",{style:{paddingLeft:"".concat(h*r,"px")},className:"".concat(a,"-row-indent indent-level-").concat(r)}),m({prefixCls:a,expanded:g,expandable:b,record:o,onExpand:E})));var _;return t.onCell&&(_=t.onCell(o,i)),{key:x,fixedInfo:S,appendCellNode:C,additionalCellProps:_||{}}}function jhe(e){var t=e.className,n=e.style,r=e.record,i=e.index,o=e.renderIndex,a=e.rowKey,l=e.indent,c=l===void 0?0:l,u=e.rowComponent,p=e.cellComponent,h=e.scopeCellComponent,m=Cj(r,a,i,c),g=m.prefixCls,b=m.flattenColumns,E=m.expandedRowClassName,x=m.expandedRowRender,S=m.rowProps,C=m.expanded,_=m.rowSupportExpand,O=d.useRef(!1);O.current||(O.current=C);var k=Ej(E,r,i,c),T=d.createElement(u,Ve({},S,{"data-row-key":a,className:le(t,"".concat(g,"-row"),"".concat(g,"-row-level-").concat(c),S==null?void 0:S.className,J({},k,c>=1)),style:te(te({},n),S==null?void 0:S.style)}),b.map(function(M,R){var j=M.render,D=M.dataIndex,L=M.className,B=xj(m,M,R,c,i),H=B.key,W=B.fixedInfo,z=B.appendCellNode,V=B.additionalCellProps;return d.createElement(g1,Ve({className:L,ellipsis:M.ellipsis,align:M.align,scope:M.rowScope,component:M.rowScope?h:p,prefixCls:g,key:H,record:r,index:i,renderIndex:o,dataIndex:D,render:j,shouldCellUpdate:M.shouldCellUpdate},W,{appendNode:z,additionalProps:V}))})),I;if(_&&(O.current||C)){var $=x(r,i,c+1,C);I=d.createElement(Sj,{expanded:C,className:le("".concat(g,"-expanded-row"),"".concat(g,"-expanded-row-level-").concat(c+1),k),prefixCls:g,component:u,cellComponent:p,colSpan:b.length,isEmpty:!1},$)}return d.createElement(d.Fragment,null,T,I)}const Hhe=m1(jhe);function zhe(e){var t=e.columnKey,n=e.onColumnResize,r=d.useRef();return d.useEffect(function(){r.current&&n(t,r.current.offsetWidth)},[]),d.createElement(qi,{data:t},d.createElement("td",{ref:r,style:{padding:0,border:0,height:0}},d.createElement("div",{style:{height:0,overflow:"hidden"}}," ")))}function Whe(e){var t=e.prefixCls,n=e.columnsKey,r=e.onColumnResize;return d.createElement("tr",{"aria-hidden":"true",className:"".concat(t,"-measure-row"),style:{height:0,fontSize:0}},d.createElement(qi.Collection,{onBatchResize:function(o){o.forEach(function(a){var l=a.data,c=a.size;r(l,c.offsetWidth)})}},n.map(function(i){return d.createElement(zhe,{key:i,columnKey:i,onColumnResize:r})})))}function Uhe(e){var t=e.data,n=e.measureColumnWidth,r=Di(vo,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),i=r.prefixCls,o=r.getComponent,a=r.onColumnResize,l=r.flattenColumns,c=r.getRowKey,u=r.expandedKeys,p=r.childrenColumnName,h=r.emptyNode,m=bj(t,p,u,c),g=d.useRef({renderWithProps:!1}),b=o(["body","wrapper"],"tbody"),E=o(["body","row"],"tr"),x=o(["body","cell"],"td"),S=o(["body","cell"],"th"),C;t.length?C=m.map(function(O,k){var T=O.record,I=O.indent,$=O.index,M=c(T,k);return d.createElement(Hhe,{key:M,rowKey:M,record:T,index:k,renderIndex:$,rowComponent:E,cellComponent:x,scopeCellComponent:S,indent:I})}):C=d.createElement(Sj,{expanded:!0,className:"".concat(i,"-placeholder"),prefixCls:i,component:E,cellComponent:x,colSpan:l.length,isEmpty:!0},h);var _=u2(l);return d.createElement(mj.Provider,{value:g.current},d.createElement(b,{className:"".concat(i,"-tbody")},n&&d.createElement(Whe,{prefixCls:i,columnsKey:_,onColumnResize:a}),C))}const Khe=m1(Uhe);var Vhe=["expandable"],oh="RC_TABLE_INTERNAL_COL_DEFINE";function Ghe(e){var t=e.expandable,n=Yt(e,Vhe),r;return"expandable"in e?r=te(te({},n),t):r=n,r.showExpandColumn===!1&&(r.expandIconColumnIndex=-1),r}var qhe=["columnType"];function wj(e){for(var t=e.colWidths,n=e.columns,r=e.columCount,i=Di(vo,["tableLayout"]),o=i.tableLayout,a=[],l=r||n.length,c=!1,u=l-1;u>=0;u-=1){var p=t[u],h=n&&n[u],m=void 0,g=void 0;if(h&&(m=h[oh],o==="auto"&&(g=h.minWidth)),p||g||m||c){var b=m||{};b.columnType;var E=Yt(b,qhe);a.unshift(d.createElement("col",Ve({key:u,style:{width:p,minWidth:g}},E))),c=!0}}return d.createElement("colgroup",null,a)}var Xhe=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function Yhe(e,t){return d.useMemo(function(){for(var n=[],r=0;r<t;r+=1){var i=e[r];if(i!==void 0)n[r]=i;else return null}return n},[e.join("_"),t])}var Qhe=d.forwardRef(function(e,t){var n=e.className,r=e.noData,i=e.columns,o=e.flattenColumns,a=e.colWidths,l=e.columCount,c=e.stickyOffsets,u=e.direction,p=e.fixHeader,h=e.stickyTopOffset,m=e.stickyBottomOffset,g=e.stickyClassName,b=e.onScroll,E=e.maxContentScroll,x=e.children,S=Yt(e,Xhe),C=Di(vo,["prefixCls","scrollbarSize","isSticky","getComponent"]),_=C.prefixCls,O=C.scrollbarSize,k=C.isSticky,T=C.getComponent,I=T(["header","table"],"table"),$=k&&!p?0:O,M=d.useRef(null),R=d.useCallback(function(V){jh(t,V),jh(M,V)},[]);d.useEffect(function(){var V;function X(A){var P=A,Y=P.currentTarget,U=P.deltaX;U&&(b({currentTarget:Y,scrollLeft:Y.scrollLeft+U}),A.preventDefault())}return(V=M.current)===null||V===void 0||V.addEventListener("wheel",X,{passive:!1}),function(){var A;(A=M.current)===null||A===void 0||A.removeEventListener("wheel",X)}},[]);var j=d.useMemo(function(){return o.every(function(V){return V.width})},[o]),D=o[o.length-1],L={fixed:D?D.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(_,"-cell-scrollbar")}}},B=d.useMemo(function(){return $?[].concat(Xe(i),[L]):i},[$,i]),H=d.useMemo(function(){return $?[].concat(Xe(o),[L]):o},[$,o]),W=d.useMemo(function(){var V=c.right,X=c.left;return te(te({},c),{},{left:u==="rtl"?[].concat(Xe(X.map(function(A){return A+$})),[0]):X,right:u==="rtl"?V:[].concat(Xe(V.map(function(A){return A+$})),[0]),isSticky:k})},[$,c,k]),z=Yhe(a,l);return d.createElement("div",{style:te({overflow:"hidden"},k?{top:h,bottom:m}:{}),ref:R,className:le(n,J({},g,!!g))},d.createElement(I,{style:{tableLayout:"fixed",visibility:r||z?null:"hidden"}},(!r||!E||j)&&d.createElement(wj,{colWidths:z?[].concat(Xe(z),[$]):[],columCount:l+1,columns:H}),x(te(te({},S),{},{stickyOffsets:W,columns:B,flattenColumns:H}))))});const qI=d.memo(Qhe);var Zhe=function(t){var n=t.cells,r=t.stickyOffsets,i=t.flattenColumns,o=t.rowComponent,a=t.cellComponent,l=t.onHeaderRow,c=t.index,u=Di(vo,["prefixCls","direction"]),p=u.prefixCls,h=u.direction,m;l&&(m=l(n.map(function(b){return b.column}),c));var g=u2(n.map(function(b){return b.column}));return d.createElement(o,m,n.map(function(b,E){var x=b.column,S=_8(b.colStart,b.colEnd,i,r,h),C;return x&&x.onHeaderCell&&(C=b.column.onHeaderCell(x)),d.createElement(g1,Ve({},b,{scope:x.title?b.colSpan>1?"colgroup":"col":null,ellipsis:x.ellipsis,align:x.align,component:a,prefixCls:p,key:g[E]},S,{additionalProps:C,rowType:"header"}))}))};function Jhe(e){var t=[];function n(a,l){var c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;t[c]=t[c]||[];var u=l,p=a.filter(Boolean).map(function(h){var m={key:h.key,className:h.className||"",children:h.title,column:h,colStart:u},g=1,b=h.children;return b&&b.length>0&&(g=n(b,u,c+1).reduce(function(E,x){return E+x},0),m.hasSubColumns=!0),"colSpan"in h&&(g=h.colSpan),"rowSpan"in h&&(m.rowSpan=h.rowSpan),m.colSpan=g,m.colEnd=m.colStart+g-1,t[c].push(m),u+=g,g});return p}n(e,0);for(var r=t.length,i=function(l){t[l].forEach(function(c){!("rowSpan"in c)&&!c.hasSubColumns&&(c.rowSpan=r-l)})},o=0;o<r;o+=1)i(o);return t}var eme=function(t){var n=t.stickyOffsets,r=t.columns,i=t.flattenColumns,o=t.onHeaderRow,a=Di(vo,["prefixCls","getComponent"]),l=a.prefixCls,c=a.getComponent,u=d.useMemo(function(){return Jhe(r)},[r]),p=c(["header","wrapper"],"thead"),h=c(["header","row"],"tr"),m=c(["header","cell"],"th");return d.createElement(p,{className:"".concat(l,"-thead")},u.map(function(g,b){var E=d.createElement(Zhe,{key:b,flattenColumns:i,cells:g,stickyOffsets:n,rowComponent:h,cellComponent:m,onHeaderRow:o,index:b});return E}))};const XI=m1(eme);function YI(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return typeof t=="number"?t:t.endsWith("%")?e*parseFloat(t)/100:null}function tme(e,t,n){return d.useMemo(function(){if(t&&t>0){var r=0,i=0;e.forEach(function(m){var g=YI(t,m.width);g?r+=g:i+=1});var o=Math.max(t,n),a=Math.max(o-r,i),l=i,c=a/i,u=0,p=e.map(function(m){var g=te({},m),b=YI(t,g.width);if(b)g.width=b;else{var E=Math.floor(c);g.width=l===1?a:E,a-=E,l-=1}return u+=g.width,g});if(u<o){var h=o/u;a=o,p.forEach(function(m,g){var b=Math.floor(m.width*h);m.width=g===p.length-1?a:b,a-=b})}return[p,Math.max(u,o)]}return[e,t]},[e,t,n])}var nme=["children"],rme=["fixed"];function T8(e){return ii(e).filter(function(t){return d.isValidElement(t)}).map(function(t){var n=t.key,r=t.props,i=r.children,o=Yt(r,nme),a=te({key:n},o);return i&&(a.children=T8(i)),a})}function _j(e){return e.filter(function(t){return t&&Nt(t)==="object"&&!t.hidden}).map(function(t){var n=t.children;return n&&n.length>0?te(te({},t),{},{children:_j(n)}):t})}function xE(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return e.filter(function(n){return n&&Nt(n)==="object"}).reduce(function(n,r,i){var o=r.fixed,a=o===!0?"left":o,l="".concat(t,"-").concat(i),c=r.children;return c&&c.length>0?[].concat(Xe(n),Xe(xE(c,l).map(function(u){return te({fixed:a},u)}))):[].concat(Xe(n),[te(te({key:l},r),{},{fixed:a})])},[])}function ime(e){return e.map(function(t){var n=t.fixed,r=Yt(t,rme),i=n;return n==="left"?i="right":n==="right"&&(i="left"),te({fixed:i},r)})}function ome(e,t){var n=e.prefixCls,r=e.columns,i=e.children,o=e.expandable,a=e.expandedKeys,l=e.columnTitle,c=e.getRowKey,u=e.onTriggerExpand,p=e.expandIcon,h=e.rowExpandable,m=e.expandIconColumnIndex,g=e.direction,b=e.expandRowByClick,E=e.columnWidth,x=e.fixed,S=e.scrollWidth,C=e.clientWidth,_=d.useMemo(function(){var D=r||T8(i)||[];return _j(D.slice())},[r,i]),O=d.useMemo(function(){if(o){var D=_.slice();if(!D.includes(os)){var L=m||0;L>=0&&(L||x==="left"||!x)&&D.splice(L,0,os),x==="right"&&D.splice(_.length,0,os)}var B=D.indexOf(os);D=D.filter(function(V,X){return V!==os||X===B});var H=_[B],W;x?W=x:W=H?H.fixed:null;var z=J(J(J(J(J(J({},oh,{className:"".concat(n,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),"title",l),"fixed",W),"className","".concat(n,"-row-expand-icon-cell")),"width",E),"render",function(X,A,P){var Y=c(A,P),U=a.has(Y),Q=h?h(A):!0,ee=p({prefixCls:n,expanded:U,expandable:Q,record:A,onExpand:u});return b?d.createElement("span",{onClick:function(ne){return ne.stopPropagation()}},ee):ee});return D.map(function(V){return V===os?z:V})}return _.filter(function(V){return V!==os})},[o,_,c,a,p,g]),k=d.useMemo(function(){var D=O;return t&&(D=t(D)),D.length||(D=[{render:function(){return null}}]),D},[t,O,g]),T=d.useMemo(function(){return g==="rtl"?ime(xE(k)):xE(k)},[k,g,S]),I=d.useMemo(function(){for(var D=-1,L=T.length-1;L>=0;L-=1){var B=T[L].fixed;if(B==="left"||B===!0){D=L;break}}if(D>=0)for(var H=0;H<=D;H+=1){var W=T[H].fixed;if(W!=="left"&&W!==!0)return!0}var z=T.findIndex(function(A){var P=A.fixed;return P==="right"});if(z>=0)for(var V=z;V<T.length;V+=1){var X=T[V].fixed;if(X!=="right")return!0}return!1},[T]),$=tme(T,S,C),M=_e($,2),R=M[0],j=M[1];return[k,R,j,I]}function ame(e,t,n){var r=Ghe(e),i=r.expandIcon,o=r.expandedRowKeys,a=r.defaultExpandedRowKeys,l=r.defaultExpandAllRows,c=r.expandedRowRender,u=r.onExpand,p=r.onExpandedRowsChange,h=r.childrenColumnName,m=i||Fhe,g=h||"children",b=d.useMemo(function(){return c?"row":e.expandable&&e.internalHooks===jm&&e.expandable.__PARENT_RENDER_ICON__||t.some(function(k){return k&&Nt(k)==="object"&&k[g]})?"nest":!1},[!!c,t]),E=d.useState(function(){return a||(l?Bhe(t,n,g):[])}),x=_e(E,2),S=x[0],C=x[1],_=d.useMemo(function(){return new Set(o||S||[])},[o,S]),O=d.useCallback(function(k){var T=n(k,t.indexOf(k)),I,$=_.has(T);$?(_.delete(T),I=Xe(_)):I=[].concat(Xe(_),[T]),C(I),u&&u(!$,k),p&&p(I)},[n,_,t,u,p]);return[r,b,_,m,g,O]}function lme(e,t,n){var r=e.map(function(i,o){return _8(o,o,e,t,n)});return Vu(function(){return r},[r],function(i,o){return!Ll(i,o)})}function Tj(e){var t=d.useRef(e),n=d.useState({}),r=_e(n,2),i=r[1],o=d.useRef(null),a=d.useRef([]);function l(c){a.current.push(c);var u=Promise.resolve();o.current=u,u.then(function(){if(o.current===u){var p=a.current,h=t.current;a.current=[],p.forEach(function(m){t.current=m(t.current)}),o.current=null,h!==t.current&&i({})}})}return d.useEffect(function(){return function(){o.current=null}},[]),[t.current,l]}function sme(e){var t=d.useRef(null),n=d.useRef();function r(){window.clearTimeout(n.current)}function i(a){t.current=a,r(),n.current=window.setTimeout(function(){t.current=null,n.current=void 0},100)}function o(){return t.current}return d.useEffect(function(){return r},[]),[i,o]}function cme(){var e=d.useState(-1),t=_e(e,2),n=t[0],r=t[1],i=d.useState(-1),o=_e(i,2),a=o[0],l=o[1],c=d.useCallback(function(u,p){r(u),l(p)},[]);return[n,a,c]}var QI=co()?window:null;function ume(e,t){var n=Nt(e)==="object"?e:{},r=n.offsetHeader,i=r===void 0?0:r,o=n.offsetSummary,a=o===void 0?0:o,l=n.offsetScroll,c=l===void 0?0:l,u=n.getContainer,p=u===void 0?function(){return QI}:u,h=p()||QI,m=!!e;return d.useMemo(function(){return{isSticky:m,stickyClassName:m?"".concat(t,"-sticky-holder"):"",offsetHeader:i,offsetSummary:a,offsetScroll:c,container:h}},[m,c,i,a,t,h])}function dme(e,t,n){var r=d.useMemo(function(){var i=t.length,o=function(u,p,h){for(var m=[],g=0,b=u;b!==p;b+=h)m.push(g),t[b].fixed&&(g+=e[b]||0);return m},a=o(0,i,1),l=o(i-1,-1,-1).reverse();return n==="rtl"?{left:l,right:a}:{left:a,right:l}},[e,t,n]);return r}function ZI(e){var t=e.className,n=e.children;return d.createElement("div",{className:t},n)}function JI(e){var t=fb(e),n=t.getBoundingClientRect(),r=document.documentElement;return{left:n.left+(window.pageXOffset||r.scrollLeft)-(r.clientLeft||document.body.clientLeft||0),top:n.top+(window.pageYOffset||r.scrollTop)-(r.clientTop||document.body.clientTop||0)}}var fme=function(t,n){var r,i,o=t.scrollBodyRef,a=t.onScroll,l=t.offsetScroll,c=t.container,u=t.direction,p=Di(vo,"prefixCls"),h=((r=o.current)===null||r===void 0?void 0:r.scrollWidth)||0,m=((i=o.current)===null||i===void 0?void 0:i.clientWidth)||0,g=h&&m*(m/h),b=d.useRef(),E=Tj({scrollLeft:0,isHiddenScrollBar:!0}),x=_e(E,2),S=x[0],C=x[1],_=d.useRef({delta:0,x:0}),O=d.useState(!1),k=_e(O,2),T=k[0],I=k[1],$=d.useRef(null);d.useEffect(function(){return function(){kn.cancel($.current)}},[]);var M=function(){I(!1)},R=function(H){H.persist(),_.current.delta=H.pageX-S.scrollLeft,_.current.x=0,I(!0),H.preventDefault()},j=function(H){var W,z=H||((W=window)===null||W===void 0?void 0:W.event),V=z.buttons;if(!T||V===0){T&&I(!1);return}var X=_.current.x+H.pageX-_.current.x-_.current.delta,A=u==="rtl";X=Math.max(A?g-m:0,Math.min(A?0:m-g,X));var P=!A||Math.abs(X)+Math.abs(g)<m;P&&(a({scrollLeft:X/m*(h+2)}),_.current.x=H.pageX)},D=function(){$.current=kn(function(){if(o.current){var H=JI(o.current).top,W=H+o.current.offsetHeight,z=c===window?document.documentElement.scrollTop+window.innerHeight:JI(c).top+c.clientHeight;W-eO()<=z||H>=z-l?C(function(V){return te(te({},V),{},{isHiddenScrollBar:!0})}):C(function(V){return te(te({},V),{},{isHiddenScrollBar:!1})})}})},L=function(H){C(function(W){return te(te({},W),{},{scrollLeft:H/h*m||0})})};return d.useImperativeHandle(n,function(){return{setScrollLeft:L,checkScrollBarVisible:D}}),d.useEffect(function(){var B=rg(document.body,"mouseup",M,!1),H=rg(document.body,"mousemove",j,!1);return D(),function(){B.remove(),H.remove()}},[g,T]),d.useEffect(function(){var B=rg(c,"scroll",D,!1),H=rg(window,"resize",D,!1);return function(){B.remove(),H.remove()}},[c]),d.useEffect(function(){S.isHiddenScrollBar||C(function(B){var H=o.current;return H?te(te({},B),{},{scrollLeft:H.scrollLeft/H.scrollWidth*H.clientWidth}):B})},[S.isHiddenScrollBar]),h<=m||!g||S.isHiddenScrollBar?null:d.createElement("div",{style:{height:eO(),width:m,bottom:l},className:"".concat(p,"-sticky-scroll")},d.createElement("div",{onMouseDown:R,ref:b,className:le("".concat(p,"-sticky-scroll-bar"),J({},"".concat(p,"-sticky-scroll-bar-active"),T)),style:{width:"".concat(g,"px"),transform:"translate3d(".concat(S.scrollLeft,"px, 0, 0)")}}))};const pme=d.forwardRef(fme);var Oj="rc-table",hme=[],mme={};function gme(){return"No Data"}function vme(e,t){var n=te({rowKey:"key",prefixCls:Oj,emptyText:gme},e),r=n.prefixCls,i=n.className,o=n.rowClassName,a=n.style,l=n.data,c=n.rowKey,u=n.scroll,p=n.tableLayout,h=n.direction,m=n.title,g=n.footer,b=n.summary,E=n.caption,x=n.id,S=n.showHeader,C=n.components,_=n.emptyText,O=n.onRow,k=n.onHeaderRow,T=n.onScroll,I=n.internalHooks,$=n.transformColumns,M=n.internalRefs,R=n.tailor,j=n.getContainerWidth,D=n.sticky,L=n.rowHoverable,B=L===void 0?!0:L,H=l||hme,W=!!H.length,z=I===jm,V=d.useCallback(function(sn,qt){return lo(C,sn)||qt},[C]),X=d.useMemo(function(){return typeof c=="function"?c:function(sn){var qt=sn&&sn[c];return qt}},[c]),A=V(["body"]),P=cme(),Y=_e(P,3),U=Y[0],Q=Y[1],ee=Y[2],se=ame(n,H,X),ne=_e(se,6),oe=ne[0],pe=ne[1],be=ne[2],ue=ne[3],de=ne[4],re=ne[5],me=u==null?void 0:u.x,ge=d.useState(0),Ae=_e(ge,2),De=Ae[0],ze=Ae[1],et=ome(te(te(te({},n),oe),{},{expandable:!!oe.expandedRowRender,columnTitle:oe.columnTitle,expandedKeys:be,getRowKey:X,onTriggerExpand:re,expandIcon:ue,expandIconColumnIndex:oe.expandIconColumnIndex,direction:h,scrollWidth:z&&R&&typeof me=="number"?me:null,clientWidth:De}),z?$:null),Ie=_e(et,4),Te=Ie[0],Ue=Ie[1],Le=Ie[2],je=Ie[3],Ge=Le??me,qe=d.useMemo(function(){return{columns:Te,flattenColumns:Ue}},[Te,Ue]),Ce=d.useRef(),ke=d.useRef(),We=d.useRef(),Pe=d.useRef();d.useImperativeHandle(t,function(){return{nativeElement:Ce.current,scrollTo:function(qt){var Ir;if(We.current instanceof HTMLElement){var or=qt.index,ar=qt.top,si=qt.key;if(_he(ar)){var bi;(bi=We.current)===null||bi===void 0||bi.scrollTo({top:ar})}else{var Ci,Fo=si??X(H[or]);(Ci=We.current.querySelector('[data-row-key="'.concat(Fo,'"]')))===null||Ci===void 0||Ci.scrollIntoView()}}else(Ir=We.current)!==null&&Ir!==void 0&&Ir.scrollTo&&We.current.scrollTo(qt)}}});var Be=d.useRef(),He=d.useState(!1),Qe=_e(He,2),ie=Qe[0],xe=Qe[1],Ne=d.useState(!1),$e=_e(Ne,2),Ye=$e[0],ht=$e[1],It=Tj(new Map),Jt=_e(It,2),Vt=Jt[0],en=Jt[1],rn=u2(Ue),Gt=rn.map(function(sn){return Vt.get(sn)}),Ft=d.useMemo(function(){return Gt},[Gt.join("_")]),bt=dme(Ft,Ue,h),gt=u&&EE(u.y),ft=u&&EE(Ge)||!!oe.fixed,he=ft&&Ue.some(function(sn){var qt=sn.fixed;return qt}),we=d.useRef(),ve=ume(D,r),Me=ve.isSticky,Je=ve.offsetHeader,tt=ve.offsetSummary,st=ve.offsetScroll,at=ve.stickyClassName,it=ve.container,nt=d.useMemo(function(){return b==null?void 0:b(H)},[b,H]),ct=(gt||Me)&&d.isValidElement(nt)&&nt.type===d2&&nt.props.fixed,mt,St,Zt;gt&&(St={overflowY:W?"scroll":"auto",maxHeight:u.y}),ft&&(mt={overflowX:"auto"},gt||(St={overflowY:"hidden"}),Zt={width:Ge===!0?"auto":Ge,minWidth:"100%"});var Lt=d.useCallback(function(sn,qt){Om(Ce.current)&&en(function(Ir){if(Ir.get(sn)!==qt){var or=new Map(Ir);return or.set(sn,qt),or}return Ir})},[]),Pt=sme(),vt=_e(Pt,2),dt=vt[0],ot=vt[1];function Xt(sn,qt){qt&&(typeof qt=="function"?qt(sn):qt.scrollLeft!==sn&&(qt.scrollLeft=sn,qt.scrollLeft!==sn&&setTimeout(function(){qt.scrollLeft=sn},0)))}var Dt=Kn(function(sn){var qt=sn.currentTarget,Ir=sn.scrollLeft,or=h==="rtl",ar=typeof Ir=="number"?Ir:qt.scrollLeft,si=qt||mme;if(!ot()||ot()===si){var bi;dt(si),Xt(ar,ke.current),Xt(ar,We.current),Xt(ar,Be.current),Xt(ar,(bi=we.current)===null||bi===void 0?void 0:bi.setScrollLeft)}var Ci=qt||ke.current;if(Ci){var Fo=z&&R&&typeof Ge=="number"?Ge:Ci.scrollWidth,hl=Ci.clientWidth;if(Fo===hl){xe(!1),ht(!1);return}or?(xe(-ar<Fo-hl),ht(-ar>0)):(xe(ar>0),ht(ar<Fo-hl))}}),xt=Kn(function(sn){Dt(sn),T==null||T(sn)}),Tt=function(){if(ft&&We.current){var qt;Dt({currentTarget:fb(We.current),scrollLeft:(qt=We.current)===null||qt===void 0?void 0:qt.scrollLeft})}else xe(!1),ht(!1)},tn=function(qt){var Ir,or=qt.width;(Ir=we.current)===null||Ir===void 0||Ir.checkScrollBarVisible();var ar=Ce.current?Ce.current.offsetWidth:or;z&&j&&Ce.current&&(ar=j(Ce.current,ar)||ar),ar!==De&&(Tt(),ze(ar))},mn=d.useRef(!1);d.useEffect(function(){mn.current&&Tt()},[ft,l,Te.length]),d.useEffect(function(){mn.current=!0},[]);var Sn=d.useState(0),Ke=_e(Sn,2),Ze=Ke[0],Kt=Ke[1],ln=d.useState(!0),dn=_e(ln,2),Vn=dn[0],cr=dn[1];d.useEffect(function(){(!R||!z)&&(We.current instanceof Element?Kt(YS(We.current).width):Kt(YS(Pe.current).width)),cr(lE("position","sticky"))},[]),d.useEffect(function(){z&&M&&(M.body.current=We.current)});var Ht=d.useCallback(function(sn){return d.createElement(d.Fragment,null,d.createElement(XI,sn),ct==="top"&&d.createElement(ig,sn,nt))},[ct,nt]),yo=d.useCallback(function(sn){return d.createElement(ig,sn,nt)},[nt]),Bi=V(["table"],"table"),Cr=d.useMemo(function(){return p||(he?Ge==="max-content"?"auto":"fixed":gt||Me||Ue.some(function(sn){var qt=sn.ellipsis;return qt})?"fixed":"auto")},[gt,he,Ue,p,Me]),Tr,_n={colWidths:Ft,columCount:Ue.length,stickyOffsets:bt,onHeaderRow:k,fixHeader:gt,scroll:u},Bt=d.useMemo(function(){return W?null:typeof _=="function"?_():_},[W,_]),Rt=d.createElement(Khe,{data:H,measureColumnWidth:gt||ft||Me}),En=d.createElement(wj,{colWidths:Ue.map(function(sn){var qt=sn.width;return qt}),columns:Ue}),Tn=E!=null?d.createElement("caption",{className:"".concat(r,"-caption")},E):void 0,Ln=Oi(n,{data:!0}),Un=Oi(n,{aria:!0});if(gt||Me){var Pr;typeof A=="function"?(Pr=A(H,{scrollbarSize:Ze,ref:We,onScroll:Dt}),_n.colWidths=Ue.map(function(sn,qt){var Ir=sn.width,or=qt===Ue.length-1?Ir-Ze:Ir;return typeof or=="number"&&!Number.isNaN(or)?or:0})):Pr=d.createElement("div",{style:te(te({},mt),St),onScroll:xt,ref:We,className:le("".concat(r,"-body"))},d.createElement(Bi,Ve({style:te(te({},Zt),{},{tableLayout:Cr})},Un),Tn,En,Rt,!ct&&nt&&d.createElement(ig,{stickyOffsets:bt,flattenColumns:Ue},nt)));var Or=te(te(te({noData:!H.length,maxContentScroll:ft&&Ge==="max-content"},_n),qe),{},{direction:h,stickyClassName:at,onScroll:Dt});Tr=d.createElement(d.Fragment,null,S!==!1&&d.createElement(qI,Ve({},Or,{stickyTopOffset:Je,className:"".concat(r,"-header"),ref:ke}),Ht),Pr,ct&&ct!=="top"&&d.createElement(qI,Ve({},Or,{stickyBottomOffset:tt,className:"".concat(r,"-summary"),ref:Be}),yo),Me&&We.current&&We.current instanceof Element&&d.createElement(pme,{ref:we,offsetScroll:st,scrollBodyRef:We,onScroll:Dt,container:it,direction:h}))}else Tr=d.createElement("div",{style:te(te({},mt),St),className:le("".concat(r,"-content")),onScroll:Dt,ref:We},d.createElement(Bi,Ve({style:te(te({},Zt),{},{tableLayout:Cr})},Un),Tn,En,S!==!1&&d.createElement(XI,Ve({},_n,qe)),Rt,nt&&d.createElement(ig,{stickyOffsets:bt,flattenColumns:Ue},nt)));var Lr=d.createElement("div",Ve({className:le(r,i,J(J(J(J(J(J(J(J(J(J({},"".concat(r,"-rtl"),h==="rtl"),"".concat(r,"-ping-left"),ie),"".concat(r,"-ping-right"),Ye),"".concat(r,"-layout-fixed"),p==="fixed"),"".concat(r,"-fixed-header"),gt),"".concat(r,"-fixed-column"),he),"".concat(r,"-fixed-column-gapped"),he&&je),"".concat(r,"-scroll-horizontal"),ft),"".concat(r,"-has-fix-left"),Ue[0]&&Ue[0].fixed),"".concat(r,"-has-fix-right"),Ue[Ue.length-1]&&Ue[Ue.length-1].fixed==="right")),style:a,id:x,ref:Ce},Ln),m&&d.createElement(ZI,{className:"".concat(r,"-title")},m(H)),d.createElement("div",{ref:Pe,className:"".concat(r,"-container")},Tr),g&&d.createElement(ZI,{className:"".concat(r,"-footer")},g(H)));ft&&(Lr=d.createElement(qi,{onResize:tn},Lr));var Hr=lme(Ue,bt,h),li=d.useMemo(function(){return{scrollX:Ge,prefixCls:r,getComponent:V,scrollbarSize:Ze,direction:h,fixedInfoList:Hr,isSticky:Me,supportSticky:Vn,componentWidth:De,fixHeader:gt,fixColumn:he,horizonScroll:ft,tableLayout:Cr,rowClassName:o,expandedRowClassName:oe.expandedRowClassName,expandIcon:ue,expandableType:pe,expandRowByClick:oe.expandRowByClick,expandedRowRender:oe.expandedRowRender,onTriggerExpand:re,expandIconColumnIndex:oe.expandIconColumnIndex,indentSize:oe.indentSize,allColumnsFixedLeft:Ue.every(function(sn){return sn.fixed==="left"}),emptyNode:Bt,columns:Te,flattenColumns:Ue,onColumnResize:Lt,hoverStartRow:U,hoverEndRow:Q,onHover:ee,rowExpandable:oe.rowExpandable,onRow:O,getRowKey:X,expandedKeys:be,childrenColumnName:de,rowHoverable:B}},[Ge,r,V,Ze,h,Hr,Me,Vn,De,gt,he,ft,Cr,o,oe.expandedRowClassName,ue,pe,oe.expandRowByClick,oe.expandedRowRender,re,oe.expandIconColumnIndex,oe.indentSize,Bt,Te,Ue,Lt,U,Q,ee,oe.rowExpandable,O,X,be,de,B]);return d.createElement(vo.Provider,{value:li},Lr)}var yme=d.forwardRef(vme);function Ij(e){return hj(yme,e)}var v1=Ij();v1.EXPAND_COLUMN=os;v1.INTERNAL_HOOKS=jm;v1.Column=Lhe;v1.ColumnGroup=Dhe;v1.Summary=vj;var O8=x8(null),kj=x8(null);function bme(e,t,n){var r=t||1;return n[e+r]-(n[e]||0)}function Cme(e){var t=e.rowInfo,n=e.column,r=e.colIndex,i=e.indent,o=e.index,a=e.component,l=e.renderIndex,c=e.record,u=e.style,p=e.className,h=e.inverse,m=e.getHeight,g=n.render,b=n.dataIndex,E=n.className,x=n.width,S=Di(kj,["columnsOffset"]),C=S.columnsOffset,_=xj(t,n,r,i,o),O=_.key,k=_.fixedInfo,T=_.appendCellNode,I=_.additionalCellProps,$=I.style,M=I.colSpan,R=M===void 0?1:M,j=I.rowSpan,D=j===void 0?1:j,L=r-1,B=bme(L,R,C),H=R>1?x-B:0,W=te(te(te({},$),u),{},{flex:"0 0 ".concat(B,"px"),width:"".concat(B,"px"),marginRight:H,pointerEvents:"auto"}),z=d.useMemo(function(){return h?D<=1:R===0||D===0||D>1},[D,R,h]);z?W.visibility="hidden":h&&(W.height=m==null?void 0:m(D));var V=z?function(){return null}:g,X={};return(D===0||R===0)&&(X.rowSpan=1,X.colSpan=1),d.createElement(g1,Ve({className:le(E,p),ellipsis:n.ellipsis,align:n.align,scope:n.rowScope,component:a,prefixCls:t.prefixCls,key:O,record:c,index:o,renderIndex:l,dataIndex:b,render:V,shouldCellUpdate:n.shouldCellUpdate},k,{appendNode:T,additionalProps:te(te({},I),{},{style:W},X)}))}var Sme=["data","index","className","rowKey","style","extra","getHeight"],Eme=d.forwardRef(function(e,t){var n=e.data,r=e.index,i=e.className,o=e.rowKey,a=e.style,l=e.extra,c=e.getHeight,u=Yt(e,Sme),p=n.record,h=n.indent,m=n.index,g=Di(vo,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),b=g.scrollX,E=g.flattenColumns,x=g.prefixCls,S=g.fixColumn,C=g.componentWidth,_=Di(O8,["getComponent"]),O=_.getComponent,k=Cj(p,o,r,h),T=O(["body","row"],"div"),I=O(["body","cell"],"div"),$=k.rowSupportExpand,M=k.expanded,R=k.rowProps,j=k.expandedRowRender,D=k.expandedRowClassName,L;if($&&M){var B=j(p,r,h+1,M),H=Ej(D,p,r,h),W={};S&&(W={style:J({},"--virtual-width","".concat(C,"px"))});var z="".concat(x,"-expanded-row-cell");L=d.createElement(T,{className:le("".concat(x,"-expanded-row"),"".concat(x,"-expanded-row-level-").concat(h+1),H)},d.createElement(g1,{component:I,prefixCls:x,className:le(z,J({},"".concat(z,"-fixed"),S)),additionalProps:W},B))}var V=te(te({},a),{},{width:b});l&&(V.position="absolute",V.pointerEvents="none");var X=d.createElement(T,Ve({},R,u,{"data-row-key":o,ref:$?null:t,className:le(i,"".concat(x,"-row"),R==null?void 0:R.className,J({},"".concat(x,"-row-extra"),l)),style:te(te({},V),R==null?void 0:R.style)}),E.map(function(A,P){return d.createElement(Cme,{key:P,component:I,rowInfo:k,column:A,colIndex:P,indent:h,index:r,renderIndex:m,record:p,inverse:l,getHeight:c})}));return $?d.createElement("div",{ref:t},X,L):X}),ek=m1(Eme),xme=d.forwardRef(function(e,t){var n=e.data,r=e.onScroll,i=Di(vo,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","scrollX","direction"]),o=i.flattenColumns,a=i.onColumnResize,l=i.getRowKey,c=i.expandedKeys,u=i.prefixCls,p=i.childrenColumnName,h=i.scrollX,m=i.direction,g=Di(O8),b=g.sticky,E=g.scrollY,x=g.listItemHeight,S=g.getComponent,C=g.onScroll,_=d.useRef(),O=bj(n,p,c,l),k=d.useMemo(function(){var L=0;return o.map(function(B){var H=B.width,W=B.key;return L+=H,[W,H,L]})},[o]),T=d.useMemo(function(){return k.map(function(L){return L[2]})},[k]);d.useEffect(function(){k.forEach(function(L){var B=_e(L,2),H=B[0],W=B[1];a(H,W)})},[k]),d.useImperativeHandle(t,function(){var L,B={scrollTo:function(W){var z;(z=_.current)===null||z===void 0||z.scrollTo(W)},nativeElement:(L=_.current)===null||L===void 0?void 0:L.nativeElement};return Object.defineProperty(B,"scrollLeft",{get:function(){var W;return((W=_.current)===null||W===void 0?void 0:W.getScrollInfo().x)||0},set:function(W){var z;(z=_.current)===null||z===void 0||z.scrollTo({left:W})}}),B});var I=function(B,H){var W,z=(W=O[H])===null||W===void 0?void 0:W.record,V=B.onCell;if(V){var X,A=V(z,H);return(X=A==null?void 0:A.rowSpan)!==null&&X!==void 0?X:1}return 1},$=function(B){var H=B.start,W=B.end,z=B.getSize,V=B.offsetY;if(W<0)return null;for(var X=o.filter(function(ue){return I(ue,H)===0}),A=H,P=function(de){if(X=X.filter(function(re){return I(re,de)===0}),!X.length)return A=de,1},Y=H;Y>=0&&!P(Y);Y-=1);for(var U=o.filter(function(ue){return I(ue,W)!==1}),Q=W,ee=function(de){if(U=U.filter(function(re){return I(re,de)!==1}),!U.length)return Q=Math.max(de-1,W),1},se=W;se<O.length&&!ee(se);se+=1);for(var ne=[],oe=function(de){var re=O[de];if(!re)return 1;o.some(function(me){return I(me,de)>1})&&ne.push(de)},pe=A;pe<=Q;pe+=1)oe(pe);var be=ne.map(function(ue){var de=O[ue],re=l(de.record,ue),me=function(De){var ze=ue+De-1,et=l(O[ze].record,ze),Ie=z(re,et);return Ie.bottom-Ie.top},ge=z(re);return d.createElement(ek,{key:ue,data:de,rowKey:re,index:ue,style:{top:-V+ge.top},extra:!0,getHeight:me})});return be},M=d.useMemo(function(){return{columnsOffset:T}},[T]),R="".concat(u,"-tbody"),j=S(["body","wrapper"]),D={};return b&&(D.position="sticky",D.bottom=0,Nt(b)==="object"&&b.offsetScroll&&(D.bottom=b.offsetScroll)),d.createElement(kj.Provider,{value:M},d.createElement(Xb,{fullHeight:!1,ref:_,prefixCls:"".concat(R,"-virtual"),styles:{horizontalScrollBar:D},className:R,height:E,itemHeight:x||24,data:O,itemKey:function(B){return l(B.record)},component:j,scrollWidth:h,direction:m,onVirtualScroll:function(B){var H,W=B.x;r({currentTarget:(H=_.current)===null||H===void 0?void 0:H.nativeElement,scrollLeft:W})},onScroll:C,extraRender:$},function(L,B,H){var W=l(L.record,B);return d.createElement(ek,{data:L,rowKey:W,index:B,style:H.style})}))}),wme=m1(xme),_me=function(t,n){var r=n.ref,i=n.onScroll;return d.createElement(wme,{ref:r,data:t,onScroll:i})};function Tme(e,t){var n=e.data,r=e.columns,i=e.scroll,o=e.sticky,a=e.prefixCls,l=a===void 0?Oj:a,c=e.className,u=e.listItemHeight,p=e.components,h=e.onScroll,m=i||{},g=m.x,b=m.y;typeof g!="number"&&(g=1),typeof b!="number"&&(b=500);var E=Kn(function(C,_){return lo(p,C)||_}),x=Kn(h),S=d.useMemo(function(){return{sticky:o,scrollY:b,listItemHeight:u,getComponent:E,onScroll:x}},[o,b,u,E,x]);return d.createElement(O8.Provider,{value:S},d.createElement(v1,Ve({},e,{className:le(c,"".concat(l,"-virtual")),scroll:te(te({},i),{},{x:g}),components:te(te({},p),{},{body:n!=null&&n.length?_me:void 0}),columns:r,internalHooks:jm,tailor:!0,ref:t})))}var Ome=d.forwardRef(Tme);function $j(e){return hj(Ome,e)}$j();const Ime=e=>null,kme=e=>null;var I8=d.createContext(null),$me=d.createContext({}),Nme=function(t){for(var n=t.prefixCls,r=t.level,i=t.isStart,o=t.isEnd,a="".concat(n,"-indent-unit"),l=[],c=0;c<r;c+=1)l.push(d.createElement("span",{key:c,className:le(a,J(J({},"".concat(a,"-start"),i[c]),"".concat(a,"-end"),o[c]))}));return d.createElement("span",{"aria-hidden":"true",className:"".concat(n,"-indent")},l)};const Ame=d.memo(Nme);var Rme=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],tk="open",nk="close",Mme="---",im=function(t){var n,r,i=t.eventKey,o=t.className,a=t.style,l=t.dragOver,c=t.dragOverGapTop,u=t.dragOverGapBottom,p=t.isLeaf,h=t.isStart,m=t.isEnd,g=t.expanded,b=t.selected,E=t.checked,x=t.halfChecked,S=t.loading,C=t.domRef,_=t.active,O=t.data,k=t.onMouseMove,T=t.selectable,I=Yt(t,Rme),$=fe.useContext(I8),M=fe.useContext($me),R=fe.useRef(null),j=fe.useState(!1),D=_e(j,2),L=D[0],B=D[1],H=fe.useMemo(function(){var Pe;return!!($.disabled||t.disabled||(Pe=M.nodeDisabled)!==null&&Pe!==void 0&&Pe.call(M,O))},[$.disabled,t.disabled,M.nodeDisabled,O]),W=fe.useMemo(function(){return!$.checkable||t.checkable===!1?!1:$.checkable},[$.checkable,t.checkable]),z=function(Be){H||$.onNodeSelect(Be,Qr(t))},V=function(Be){H||!W||t.disableCheckbox||$.onNodeCheck(Be,Qr(t),!E)},X=fe.useMemo(function(){return typeof T=="boolean"?T:$.selectable},[T,$.selectable]),A=function(Be){$.onNodeClick(Be,Qr(t)),X?z(Be):V(Be)},P=function(Be){$.onNodeDoubleClick(Be,Qr(t))},Y=function(Be){$.onNodeMouseEnter(Be,Qr(t))},U=function(Be){$.onNodeMouseLeave(Be,Qr(t))},Q=function(Be){$.onNodeContextMenu(Be,Qr(t))},ee=fe.useMemo(function(){return!!($.draggable&&(!$.draggable.nodeDraggable||$.draggable.nodeDraggable(O)))},[$.draggable,O]),se=function(Be){Be.stopPropagation(),B(!0),$.onNodeDragStart(Be,t);try{Be.dataTransfer.setData("text/plain","")}catch{}},ne=function(Be){Be.preventDefault(),Be.stopPropagation(),$.onNodeDragEnter(Be,t)},oe=function(Be){Be.preventDefault(),Be.stopPropagation(),$.onNodeDragOver(Be,t)},pe=function(Be){Be.stopPropagation(),$.onNodeDragLeave(Be,t)},be=function(Be){Be.stopPropagation(),B(!1),$.onNodeDragEnd(Be,t)},ue=function(Be){Be.preventDefault(),Be.stopPropagation(),B(!1),$.onNodeDrop(Be,t)},de=function(Be){S||$.onNodeExpand(Be,Qr(t))},re=fe.useMemo(function(){var Pe=To($.keyEntities,i)||{},Be=Pe.children;return!!(Be||[]).length},[$.keyEntities,i]),me=fe.useMemo(function(){return p===!1?!1:p||!$.loadData&&!re||$.loadData&&t.loaded&&!re},[p,$.loadData,re,t.loaded]);fe.useEffect(function(){S||typeof $.loadData=="function"&&g&&!me&&!t.loaded&&$.onNodeLoad(Qr(t))},[S,$.loadData,$.onNodeLoad,g,me,t]);var ge=fe.useMemo(function(){var Pe;return(Pe=$.draggable)!==null&&Pe!==void 0&&Pe.icon?fe.createElement("span",{className:"".concat($.prefixCls,"-draggable-icon")},$.draggable.icon):null},[$.draggable]),Ae=function(Be){var He=t.switcherIcon||$.switcherIcon;return typeof He=="function"?He(te(te({},t),{},{isLeaf:Be})):He},De=function(){if(me){var Be=Ae(!0);return Be!==!1?fe.createElement("span",{className:le("".concat($.prefixCls,"-switcher"),"".concat($.prefixCls,"-switcher-noop"))},Be):null}var He=Ae(!1);return He!==!1?fe.createElement("span",{onClick:de,className:le("".concat($.prefixCls,"-switcher"),"".concat($.prefixCls,"-switcher_").concat(g?tk:nk))},He):null},ze=fe.useMemo(function(){if(!W)return null;var Pe=typeof W!="boolean"?W:null;return fe.createElement("span",{className:le("".concat($.prefixCls,"-checkbox"),J(J(J({},"".concat($.prefixCls,"-checkbox-checked"),E),"".concat($.prefixCls,"-checkbox-indeterminate"),!E&&x),"".concat($.prefixCls,"-checkbox-disabled"),H||t.disableCheckbox)),onClick:V,role:"checkbox","aria-checked":x?"mixed":E,"aria-disabled":H||t.disableCheckbox,"aria-label":"Select ".concat(typeof t.title=="string"?t.title:"tree node")},Pe)},[W,E,x,H,t.disableCheckbox,t.title]),et=fe.useMemo(function(){return me?null:g?tk:nk},[me,g]),Ie=fe.useMemo(function(){return fe.createElement("span",{className:le("".concat($.prefixCls,"-iconEle"),"".concat($.prefixCls,"-icon__").concat(et||"docu"),J({},"".concat($.prefixCls,"-icon_loading"),S))})},[$.prefixCls,et,S]),Te=fe.useMemo(function(){var Pe=!!$.draggable,Be=!t.disabled&&Pe&&$.dragOverNodeKey===i;return Be?$.dropIndicatorRender({dropPosition:$.dropPosition,dropLevelOffset:$.dropLevelOffset,indent:$.indent,prefixCls:$.prefixCls,direction:$.direction}):null},[$.dropPosition,$.dropLevelOffset,$.indent,$.prefixCls,$.direction,$.draggable,$.dragOverNodeKey,$.dropIndicatorRender]),Ue=fe.useMemo(function(){var Pe=t.title,Be=Pe===void 0?Mme:Pe,He="".concat($.prefixCls,"-node-content-wrapper"),Qe;if($.showIcon){var ie=t.icon||$.icon;Qe=ie?fe.createElement("span",{className:le("".concat($.prefixCls,"-iconEle"),"".concat($.prefixCls,"-icon__customize"))},typeof ie=="function"?ie(t):ie):Ie}else $.loadData&&S&&(Qe=Ie);var xe;return typeof Be=="function"?xe=Be(O):$.titleRender?xe=$.titleRender(O):xe=Be,fe.createElement("span",{ref:R,title:typeof Be=="string"?Be:"",className:le(He,"".concat(He,"-").concat(et||"normal"),J({},"".concat($.prefixCls,"-node-selected"),!H&&(b||L))),onMouseEnter:Y,onMouseLeave:U,onContextMenu:Q,onClick:A,onDoubleClick:P},Qe,fe.createElement("span",{className:"".concat($.prefixCls,"-title")},xe),Te)},[$.prefixCls,$.showIcon,t,$.icon,Ie,$.titleRender,O,et,Y,U,Q,A,P]),Le=Oi(I,{aria:!0,data:!0}),je=To($.keyEntities,i)||{},Ge=je.level,qe=m[m.length-1],Ce=!H&&ee,ke=$.draggingNodeKey===i,We=T!==void 0?{"aria-selected":!!T}:void 0;return fe.createElement("div",Ve({ref:C,role:"treeitem","aria-expanded":p?void 0:g,className:le(o,"".concat($.prefixCls,"-treenode"),(r={},J(J(J(J(J(J(J(J(J(J(r,"".concat($.prefixCls,"-treenode-disabled"),H),"".concat($.prefixCls,"-treenode-switcher-").concat(g?"open":"close"),!p),"".concat($.prefixCls,"-treenode-checkbox-checked"),E),"".concat($.prefixCls,"-treenode-checkbox-indeterminate"),x),"".concat($.prefixCls,"-treenode-selected"),b),"".concat($.prefixCls,"-treenode-loading"),S),"".concat($.prefixCls,"-treenode-active"),_),"".concat($.prefixCls,"-treenode-leaf-last"),qe),"".concat($.prefixCls,"-treenode-draggable"),ee),"dragging",ke),J(J(J(J(J(J(J(r,"drop-target",$.dropTargetKey===i),"drop-container",$.dropContainerKey===i),"drag-over",!H&&l),"drag-over-gap-top",!H&&c),"drag-over-gap-bottom",!H&&u),"filter-node",(n=$.filterTreeNode)===null||n===void 0?void 0:n.call($,Qr(t))),"".concat($.prefixCls,"-treenode-leaf"),me))),style:a,draggable:Ce,onDragStart:Ce?se:void 0,onDragEnter:ee?ne:void 0,onDragOver:ee?oe:void 0,onDragLeave:ee?pe:void 0,onDrop:ee?ue:void 0,onDragEnd:ee?be:void 0,onMouseMove:k},We,Le),fe.createElement(Ame,{prefixCls:$.prefixCls,level:Ge,isStart:h,isEnd:m}),ge,De(),ze,Ue)};im.isTreeNode=1;function Cl(e,t){if(!e)return[];var n=e.slice(),r=n.indexOf(t);return r>=0&&n.splice(r,1),n}function ns(e,t){var n=(e||[]).slice();return n.indexOf(t)===-1&&n.push(t),n}function k8(e){return e.split("-")}function Pme(e,t){var n=[],r=To(t,e);function i(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];o.forEach(function(a){var l=a.key,c=a.children;n.push(l),i(c)})}return i(r.children),n}function Lme(e){if(e.parent){var t=k8(e.pos);return Number(t[t.length-1])===e.parent.children.length-1}return!1}function Dme(e){var t=k8(e.pos);return Number(t[t.length-1])===0}function rk(e,t,n,r,i,o,a,l,c,u){var p,h=e.clientX,m=e.clientY,g=e.target.getBoundingClientRect(),b=g.top,E=g.height,x=(u==="rtl"?-1:1)*(((i==null?void 0:i.x)||0)-h),S=(x-12)/r,C=c.filter(function(W){var z;return(z=l[W])===null||z===void 0||(z=z.children)===null||z===void 0?void 0:z.length}),_=To(l,n.eventKey);if(m<b+E/2){var O=a.findIndex(function(W){return W.key===_.key}),k=O<=0?0:O-1,T=a[k].key;_=To(l,T)}var I=_.key,$=_,M=_.key,R=0,j=0;if(!C.includes(I))for(var D=0;D<S&&Lme(_);D+=1)_=_.parent,j+=1;var L=t.data,B=_.node,H=!0;return Dme(_)&&_.level===0&&m<b+E/2&&o({dragNode:L,dropNode:B,dropPosition:-1})&&_.key===n.eventKey?R=-1:($.children||[]).length&&C.includes(M)?o({dragNode:L,dropNode:B,dropPosition:0})?R=0:H=!1:j===0?S>-1.5?o({dragNode:L,dropNode:B,dropPosition:1})?R=1:H=!1:o({dragNode:L,dropNode:B,dropPosition:0})?R=0:o({dragNode:L,dropNode:B,dropPosition:1})?R=1:H=!1:o({dragNode:L,dropNode:B,dropPosition:1})?R=1:H=!1,{dropPosition:R,dropLevelOffset:j,dropTargetKey:_.key,dropTargetPos:_.pos,dragOverNodeKey:M,dropContainerKey:R===0?null:((p=_.parent)===null||p===void 0?void 0:p.key)||null,dropAllowed:H}}function ik(e,t){if(e){var n=t.multiple;return n?e.slice():e.length?[e[0]]:e}}function J4(e){if(!e)return null;var t;if(Array.isArray(e))t={checkedKeys:e,halfCheckedKeys:void 0};else if(Nt(e)==="object")t={checkedKeys:e.checked||void 0,halfCheckedKeys:e.halfChecked||void 0};else return br(!1,"`checkedKeys` is not an array or an object"),null;return t}function wE(e,t){var n=new Set;function r(i){if(!n.has(i)){var o=To(t,i);if(o){n.add(i);var a=o.parent,l=o.node;l.disabled||a&&r(a.key)}}}return(e||[]).forEach(function(i){r(i)}),Xe(n)}function Fme(e){const[t,n]=d.useState(null);return[d.useCallback((o,a,l)=>{const c=t??o,u=Math.min(c||0,o),p=Math.max(c||0,o),h=a.slice(u,p+1).map(b=>e(b)),m=h.some(b=>!l.has(b)),g=[];return h.forEach(b=>{m?(l.has(b)||g.push(b),l.add(b)):(l.delete(b),g.push(b))}),n(m?p:null),g},[t]),o=>{n(o)}]}const Vs={},_E="SELECT_ALL",TE="SELECT_INVERT",OE="SELECT_NONE",ok=[],Nj=(e,t)=>{let n=[];return(t||[]).forEach(r=>{n.push(r),r&&typeof r=="object"&&e in r&&(n=[].concat(Xe(n),Xe(Nj(e,r[e]))))}),n},Bme=(e,t)=>{const{preserveSelectedRowKeys:n,selectedRowKeys:r,defaultSelectedRowKeys:i,getCheckboxProps:o,onChange:a,onSelect:l,onSelectAll:c,onSelectInvert:u,onSelectNone:p,onSelectMultiple:h,columnWidth:m,type:g,selections:b,fixed:E,renderCell:x,hideSelectAll:S,checkStrictly:C=!0}=t||{},{prefixCls:_,data:O,pageData:k,getRecordByKey:T,getRowKey:I,expandType:$,childrenColumnName:M,locale:R,getPopupContainer:j}=e,D=Lc(),[L,B]=Fme(ue=>ue),[H,W]=_r(r||i||ok,{value:r}),z=d.useRef(new Map),V=d.useCallback(ue=>{if(n){const de=new Map;ue.forEach(re=>{let me=T(re);!me&&z.current.has(re)&&(me=z.current.get(re)),de.set(re,me)}),z.current=de}},[T,n]);d.useEffect(()=>{V(H)},[H]);const X=d.useMemo(()=>Nj(M,k),[M,k]),{keyEntities:A}=d.useMemo(()=>{if(C)return{keyEntities:null};let ue=O;if(n){const de=new Set(X.map((me,ge)=>I(me,ge))),re=Array.from(z.current).reduce((me,ge)=>{let[Ae,De]=ge;return de.has(Ae)?me:me.concat(De)},[]);ue=[].concat(Xe(ue),Xe(re))}return y8(ue,{externalGetKey:I,childrenPropName:M})},[O,I,C,M,n,X]),P=d.useMemo(()=>{const ue=new Map;return X.forEach((de,re)=>{const me=I(de,re),ge=(o?o(de):null)||{};ue.set(me,ge)}),ue},[X,I,o]),Y=d.useCallback(ue=>{const de=I(ue);let re;return P.has(de)?re=P.get(I(ue)):re=o?o(ue):void 0,!!(re!=null&&re.disabled)},[P,I]),[U,Q]=d.useMemo(()=>{if(C)return[H||[],[]];const{checkedKeys:ue,halfCheckedKeys:de}=_f(H,!0,A,Y);return[ue||[],de]},[H,C,A,Y]),ee=d.useMemo(()=>{const ue=g==="radio"?U.slice(0,1):U;return new Set(ue)},[U,g]),se=d.useMemo(()=>g==="radio"?new Set:new Set(Q),[Q,g]);d.useEffect(()=>{t||W(ok)},[!!t]);const ne=d.useCallback((ue,de)=>{let re,me;V(ue),n?(re=ue,me=ue.map(ge=>z.current.get(ge))):(re=[],me=[],ue.forEach(ge=>{const Ae=T(ge);Ae!==void 0&&(re.push(ge),me.push(Ae))})),W(re),a==null||a(re,me,{type:de})},[W,T,a,n]),oe=d.useCallback((ue,de,re,me)=>{if(l){const ge=re.map(Ae=>T(Ae));l(T(ue),de,ge,me)}ne(re,"single")},[l,T,ne]),pe=d.useMemo(()=>!b||S?null:(b===!0?[_E,TE,OE]:b).map(de=>de===_E?{key:"all",text:R.selectionAll,onSelect(){ne(O.map((re,me)=>I(re,me)).filter(re=>{const me=P.get(re);return!(me!=null&&me.disabled)||ee.has(re)}),"all")}}:de===TE?{key:"invert",text:R.selectInvert,onSelect(){const re=new Set(ee);k.forEach((ge,Ae)=>{const De=I(ge,Ae),ze=P.get(De);ze!=null&&ze.disabled||(re.has(De)?re.delete(De):re.add(De))});const me=Array.from(re);u&&(D.deprecated(!1,"onSelectInvert","onChange"),u(me)),ne(me,"invert")}}:de===OE?{key:"none",text:R.selectNone,onSelect(){p==null||p(),ne(Array.from(ee).filter(re=>{const me=P.get(re);return me==null?void 0:me.disabled}),"none")}}:de).map(de=>Object.assign(Object.assign({},de),{onSelect:function(){for(var re,me,ge=arguments.length,Ae=new Array(ge),De=0;De<ge;De++)Ae[De]=arguments[De];(me=de.onSelect)===null||me===void 0||(re=me).call.apply(re,[de].concat(Ae)),B(null)}})),[b,ee,k,I,u,ne]);return[d.useCallback(ue=>{var de;if(!t)return ue.filter(Pe=>Pe!==Vs);let re=Xe(ue);const me=new Set(ee),ge=X.map(I).filter(Pe=>!P.get(Pe).disabled),Ae=ge.every(Pe=>me.has(Pe)),De=ge.some(Pe=>me.has(Pe)),ze=()=>{const Pe=[];Ae?ge.forEach(He=>{me.delete(He),Pe.push(He)}):ge.forEach(He=>{me.has(He)||(me.add(He),Pe.push(He))});const Be=Array.from(me);c==null||c(!Ae,Be.map(He=>T(He)),Pe.map(He=>T(He))),ne(Be,"all"),B(null)};let et,Ie;if(g!=="radio"){let Pe;if(pe){const xe={getPopupContainer:j,items:pe.map((Ne,$e)=>{const{key:Ye,text:ht,onSelect:It}=Ne;return{key:Ye??$e,onClick:()=>{It==null||It(ge)},label:ht}})};Pe=d.createElement("div",{className:`${_}-selection-extra`},d.createElement(Dm,{menu:xe,getPopupContainer:j},d.createElement("span",null,d.createElement(X3,null))))}const Be=X.map((xe,Ne)=>{const $e=I(xe,Ne),Ye=P.get($e)||{};return Object.assign({checked:me.has($e)},Ye)}).filter(xe=>{let{disabled:Ne}=xe;return Ne}),He=!!Be.length&&Be.length===X.length,Qe=He&&Be.every(xe=>{let{checked:Ne}=xe;return Ne}),ie=He&&Be.some(xe=>{let{checked:Ne}=xe;return Ne});Ie=d.createElement(Uf,{checked:He?Qe:!!X.length&&Ae,indeterminate:He?!Qe&&ie:!Ae&&De,onChange:ze,disabled:X.length===0||He,"aria-label":Pe?"Custom selection":"Select all",skipGroup:!0}),et=!S&&d.createElement("div",{className:`${_}-selection`},Ie,Pe)}let Te;g==="radio"?Te=(Pe,Be,He)=>{const Qe=I(Be,He),ie=me.has(Qe),xe=P.get(Qe);return{node:d.createElement(Ai,Object.assign({},xe,{checked:ie,onClick:Ne=>{var $e;Ne.stopPropagation(),($e=xe==null?void 0:xe.onClick)===null||$e===void 0||$e.call(xe,Ne)},onChange:Ne=>{var $e;me.has(Qe)||oe(Qe,!0,[Qe],Ne.nativeEvent),($e=xe==null?void 0:xe.onChange)===null||$e===void 0||$e.call(xe,Ne)}})),checked:ie}}:Te=(Pe,Be,He)=>{var Qe;const ie=I(Be,He),xe=me.has(ie),Ne=se.has(ie),$e=P.get(ie);let Ye;return $==="nest"?Ye=Ne:Ye=(Qe=$e==null?void 0:$e.indeterminate)!==null&&Qe!==void 0?Qe:Ne,{node:d.createElement(Uf,Object.assign({},$e,{indeterminate:Ye,checked:xe,skipGroup:!0,onClick:ht=>{var It;ht.stopPropagation(),(It=$e==null?void 0:$e.onClick)===null||It===void 0||It.call($e,ht)},onChange:ht=>{var It;const{nativeEvent:Jt}=ht,{shiftKey:Vt}=Jt,en=ge.findIndex(Gt=>Gt===ie),rn=U.some(Gt=>ge.includes(Gt));if(Vt&&C&&rn){const Gt=L(en,ge,me),Ft=Array.from(me);h==null||h(!xe,Ft.map(bt=>T(bt)),Gt.map(bt=>T(bt))),ne(Ft,"multiple")}else{const Gt=U;if(C){const Ft=xe?Cl(Gt,ie):ns(Gt,ie);oe(ie,!xe,Ft,Jt)}else{const Ft=_f([].concat(Xe(Gt),[ie]),!0,A,Y),{checkedKeys:bt,halfCheckedKeys:gt}=Ft;let ft=bt;if(xe){const he=new Set(bt);he.delete(ie),ft=_f(Array.from(he),{checked:!1,halfCheckedKeys:gt},A,Y).checkedKeys}oe(ie,!xe,ft,Jt)}}B(xe?null:en),(It=$e==null?void 0:$e.onChange)===null||It===void 0||It.call($e,ht)}})),checked:xe}};const Ue=(Pe,Be,He)=>{const{node:Qe,checked:ie}=Te(Pe,Be,He);return x?x(ie,Be,He,Qe):Qe};if(!re.includes(Vs))if(re.findIndex(Pe=>{var Be;return((Be=Pe[oh])===null||Be===void 0?void 0:Be.columnType)==="EXPAND_COLUMN"})===0){const[Pe,...Be]=re;re=[Pe,Vs].concat(Xe(Be))}else re=[Vs].concat(Xe(re));const Le=re.indexOf(Vs);re=re.filter((Pe,Be)=>Pe!==Vs||Be===Le);const je=re[Le-1],Ge=re[Le+1];let qe=E;qe===void 0&&((Ge==null?void 0:Ge.fixed)!==void 0?qe=Ge.fixed:(je==null?void 0:je.fixed)!==void 0&&(qe=je.fixed)),qe&&je&&((de=je[oh])===null||de===void 0?void 0:de.columnType)==="EXPAND_COLUMN"&&je.fixed===void 0&&(je.fixed=qe);const Ce=le(`${_}-selection-col`,{[`${_}-selection-col-with-dropdown`]:b&&g==="checkbox"}),ke=()=>t!=null&&t.columnTitle?typeof t.columnTitle=="function"?t.columnTitle(Ie):t.columnTitle:et,We={fixed:qe,width:m,className:`${_}-selection-column`,title:ke(),render:Ue,onCell:t.onCell,[oh]:{className:Ce}};return re.map(Pe=>Pe===Vs?We:Pe)},[I,X,t,U,ee,se,m,pe,$,P,h,oe,Y]),ee]};function jme(e,t){return e._antProxy=e._antProxy||{},Object.keys(t).forEach(n=>{if(!(n in e._antProxy)){const r=e[n];e._antProxy[n]=r,e[n]=t[n]}}),e}function Hme(e,t){return d.useImperativeHandle(e,()=>{const n=t(),{nativeElement:r}=n;return typeof Proxy<"u"?new Proxy(r,{get(i,o){return n[o]?n[o]:Reflect.get(i,o)}}):jme(r,n)})}function zme(e){return t=>{const{prefixCls:n,onExpand:r,record:i,expanded:o,expandable:a}=t,l=`${n}-row-expand-icon`;return d.createElement("button",{type:"button",onClick:c=>{r(i,c),c.stopPropagation()},className:le(l,{[`${l}-spaced`]:!a,[`${l}-expanded`]:a&&o,[`${l}-collapsed`]:a&&!o}),"aria-label":o?e.collapse:e.expand,"aria-expanded":o})}}function Wme(e){return(n,r)=>{const i=n.querySelector(`.${e}-container`);let o=r;if(i){const a=getComputedStyle(i),l=parseInt(a.borderLeftWidth,10),c=parseInt(a.borderRightWidth,10);o=r-l-c}return o}}const Oc=(e,t)=>"key"in e&&e.key!==void 0&&e.key!==null?e.key:e.dataIndex?Array.isArray(e.dataIndex)?e.dataIndex.join("."):e.dataIndex:t;function y1(e,t){return t?`${t}-${e}`:`${e}`}const f2=(e,t)=>typeof e=="function"?e(t):e,Ume=(e,t)=>{const n=f2(e,t);return Object.prototype.toString.call(n)==="[object Object]"?"":n};function Kme(e){const t=d.useRef(e),n=Q3();return[()=>t.current,r=>{t.current=r,n()}]}var Vme=function(t){var n=t.dropPosition,r=t.dropLevelOffset,i=t.indent,o={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(n){case-1:o.top=0,o.left=-r*i;break;case 1:o.bottom=0,o.left=-r*i;break;case 0:o.bottom=0,o.left=i;break}return fe.createElement("div",{style:o})};function Aj(e){if(e==null)throw new TypeError("Cannot destructure "+e)}function Gme(e,t){var n=d.useState(!1),r=_e(n,2),i=r[0],o=r[1];xn(function(){if(i)return e(),function(){t()}},[i]),xn(function(){return o(!0),function(){o(!1)}},[])}var qme=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],Xme=d.forwardRef(function(e,t){var n=e.className,r=e.style,i=e.motion,o=e.motionNodes,a=e.motionType,l=e.onMotionStart,c=e.onMotionEnd,u=e.active,p=e.treeNodeRequiredProps,h=Yt(e,qme),m=d.useState(!0),g=_e(m,2),b=g[0],E=g[1],x=d.useContext(I8),S=x.prefixCls,C=o&&a!=="hide";xn(function(){o&&C!==b&&E(C)},[o]);var _=function(){o&&l()},O=d.useRef(!1),k=function(){o&&!O.current&&(O.current=!0,c())};Gme(_,k);var T=function($){C===$&&k()};return o?d.createElement(la,Ve({ref:t,visible:b},i,{motionAppear:a==="show",onVisibleChanged:T}),function(I,$){var M=I.className,R=I.style;return d.createElement("div",{ref:$,className:le("".concat(S,"-treenode-motion"),M),style:R},o.map(function(j){var D=Object.assign({},(Aj(j.data),j.data)),L=j.title,B=j.key,H=j.isStart,W=j.isEnd;delete D.children;var z=rh(B,p);return d.createElement(im,Ve({},D,z,{title:L,active:u,data:j.data,key:B,isStart:H,isEnd:W}))}))}):d.createElement(im,Ve({domRef:t,className:n,style:r},h,{active:u}))});function Yme(){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(o,a){var l=new Map;o.forEach(function(u){l.set(u,!0)});var c=a.filter(function(u){return!l.has(u)});return c.length===1?c[0]:null}return n<r?{add:!0,key:i(e,t)}:{add:!1,key:i(t,e)}}function ak(e,t,n){var r=e.findIndex(function(l){return l.key===n}),i=e[r+1],o=t.findIndex(function(l){return l.key===n});if(i){var a=t.findIndex(function(l){return l.key===i.key});return t.slice(o+1,a)}return t.slice(o+1)}var Qme=["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"],lk={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},Zme=function(){},Hu="RC_TREE_MOTION_".concat(Math.random()),IE={key:Hu},Rj={key:Hu,level:0,index:0,pos:"0",node:IE,nodes:[IE]},sk={parent:null,children:[],pos:Rj.pos,data:IE,title:null,key:Hu,isStart:[],isEnd:[]};function ck(e,t,n,r){return t===!1||!n?e:e.slice(0,Math.ceil(n/r)+1)}function uk(e){var t=e.key,n=e.pos;return Lm(t,n)}function Jme(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 e0e=d.forwardRef(function(e,t){var n=e.prefixCls,r=e.data;e.selectable,e.checkable;var i=e.expandedKeys,o=e.selectedKeys,a=e.checkedKeys,l=e.loadedKeys,c=e.loadingKeys,u=e.halfCheckedKeys,p=e.keyEntities,h=e.disabled,m=e.dragging,g=e.dragOverNodeKey,b=e.dropPosition,E=e.motion,x=e.height,S=e.itemHeight,C=e.virtual,_=e.scrollWidth,O=e.focusable,k=e.activeItem,T=e.focused,I=e.tabIndex,$=e.onKeyDown,M=e.onFocus,R=e.onBlur,j=e.onActiveChange,D=e.onListChangeStart,L=e.onListChangeEnd,B=Yt(e,Qme),H=d.useRef(null),W=d.useRef(null);d.useImperativeHandle(t,function(){return{scrollTo:function(Ue){H.current.scrollTo(Ue)},getIndentWidth:function(){return W.current.offsetWidth}}});var z=d.useState(i),V=_e(z,2),X=V[0],A=V[1],P=d.useState(r),Y=_e(P,2),U=Y[0],Q=Y[1],ee=d.useState(r),se=_e(ee,2),ne=se[0],oe=se[1],pe=d.useState([]),be=_e(pe,2),ue=be[0],de=be[1],re=d.useState(null),me=_e(re,2),ge=me[0],Ae=me[1],De=d.useRef(r);De.current=r;function ze(){var Te=De.current;Q(Te),oe(Te),de([]),Ae(null),L()}xn(function(){A(i);var Te=Yme(X,i);if(Te.key!==null)if(Te.add){var Ue=U.findIndex(function(ke){var We=ke.key;return We===Te.key}),Le=ck(ak(U,r,Te.key),C,x,S),je=U.slice();je.splice(Ue+1,0,sk),oe(je),de(Le),Ae("show")}else{var Ge=r.findIndex(function(ke){var We=ke.key;return We===Te.key}),qe=ck(ak(r,U,Te.key),C,x,S),Ce=r.slice();Ce.splice(Ge+1,0,sk),oe(Ce),de(qe),Ae("hide")}else U!==r&&(Q(r),oe(r))},[i,r]),d.useEffect(function(){m||ze()},[m]);var et=E?ne:r,Ie={expandedKeys:i,selectedKeys:o,loadedKeys:l,loadingKeys:c,checkedKeys:a,halfCheckedKeys:u,dragOverNodeKey:g,dropPosition:b,keyEntities:p};return d.createElement(d.Fragment,null,T&&k&&d.createElement("span",{style:lk,"aria-live":"assertive"},Jme(k)),d.createElement("div",null,d.createElement("input",{style:lk,disabled:O===!1||h,tabIndex:O!==!1?I:null,onKeyDown:$,onFocus:M,onBlur:R,value:"",onChange:Zme,"aria-label":"for screen reader"})),d.createElement("div",{className:"".concat(n,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},d.createElement("div",{className:"".concat(n,"-indent")},d.createElement("div",{ref:W,className:"".concat(n,"-indent-unit")}))),d.createElement(Xb,Ve({},B,{data:et,itemKey:uk,height:x,fullHeight:!1,virtual:C,itemHeight:S,scrollWidth:_,prefixCls:"".concat(n,"-list"),ref:H,role:"tree",onVisibleChange:function(Ue){Ue.every(function(Le){return uk(Le)!==Hu})&&ze()}}),function(Te){var Ue=Te.pos,Le=Object.assign({},(Aj(Te.data),Te.data)),je=Te.title,Ge=Te.key,qe=Te.isStart,Ce=Te.isEnd,ke=Lm(Ge,Ue);delete Le.key,delete Le.children;var We=rh(ke,Ie);return d.createElement(Xme,Ve({},Le,We,{title:je,active:!!k&&Ge===k.key,pos:Ue,data:Te.data,isStart:qe,isEnd:Ce,motion:E,motionNodes:Ge===Hu?ue:null,motionType:ge,onMotionStart:D,onMotionEnd:ze,treeNodeRequiredProps:Ie,onMouseMove:function(){j(null)}}))}))}),t0e=10,$8=function(e){Ra(n,e);var t=Ma(n);function n(){var r;Rr(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),J(_t(r),"destroyed",!1),J(_t(r),"delayedDragEnterLogic",void 0),J(_t(r),"loadingRetryTimes",{}),J(_t(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:Wf()}),J(_t(r),"dragStartMousePosition",null),J(_t(r),"dragNodeProps",null),J(_t(r),"currentMouseOverDroppableNodeKey",null),J(_t(r),"listRef",d.createRef()),J(_t(r),"onNodeDragStart",function(l,c){var u=r.state,p=u.expandedKeys,h=u.keyEntities,m=r.props.onDragStart,g=c.eventKey;r.dragNodeProps=c,r.dragStartMousePosition={x:l.clientX,y:l.clientY};var b=Cl(p,g);r.setState({draggingNodeKey:g,dragChildrenKeys:Pme(g,h),indent:r.listRef.current.getIndentWidth()}),r.setExpandedKeys(b),window.addEventListener("dragend",r.onWindowDragEnd),m==null||m({event:l,node:Qr(c)})}),J(_t(r),"onNodeDragEnter",function(l,c){var u=r.state,p=u.expandedKeys,h=u.keyEntities,m=u.dragChildrenKeys,g=u.flattenNodes,b=u.indent,E=r.props,x=E.onDragEnter,S=E.onExpand,C=E.allowDrop,_=E.direction,O=c.pos,k=c.eventKey;if(r.currentMouseOverDroppableNodeKey!==k&&(r.currentMouseOverDroppableNodeKey=k),!r.dragNodeProps){r.resetDragState();return}var T=rk(l,r.dragNodeProps,c,b,r.dragStartMousePosition,C,g,h,p,_),I=T.dropPosition,$=T.dropLevelOffset,M=T.dropTargetKey,R=T.dropContainerKey,j=T.dropTargetPos,D=T.dropAllowed,L=T.dragOverNodeKey;if(m.includes(M)||!D){r.resetDragState();return}if(r.delayedDragEnterLogic||(r.delayedDragEnterLogic={}),Object.keys(r.delayedDragEnterLogic).forEach(function(B){clearTimeout(r.delayedDragEnterLogic[B])}),r.dragNodeProps.eventKey!==c.eventKey&&(l.persist(),r.delayedDragEnterLogic[O]=window.setTimeout(function(){if(r.state.draggingNodeKey!==null){var B=Xe(p),H=To(h,c.eventKey);H&&(H.children||[]).length&&(B=ns(p,c.eventKey)),r.props.hasOwnProperty("expandedKeys")||r.setExpandedKeys(B),S==null||S(B,{node:Qr(c),expanded:!0,nativeEvent:l.nativeEvent})}},800)),r.dragNodeProps.eventKey===M&&$===0){r.resetDragState();return}r.setState({dragOverNodeKey:L,dropPosition:I,dropLevelOffset:$,dropTargetKey:M,dropContainerKey:R,dropTargetPos:j,dropAllowed:D}),x==null||x({event:l,node:Qr(c),expandedKeys:p})}),J(_t(r),"onNodeDragOver",function(l,c){var u=r.state,p=u.dragChildrenKeys,h=u.flattenNodes,m=u.keyEntities,g=u.expandedKeys,b=u.indent,E=r.props,x=E.onDragOver,S=E.allowDrop,C=E.direction;if(r.dragNodeProps){var _=rk(l,r.dragNodeProps,c,b,r.dragStartMousePosition,S,h,m,g,C),O=_.dropPosition,k=_.dropLevelOffset,T=_.dropTargetKey,I=_.dropContainerKey,$=_.dropTargetPos,M=_.dropAllowed,R=_.dragOverNodeKey;p.includes(T)||!M||(r.dragNodeProps.eventKey===T&&k===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():O===r.state.dropPosition&&k===r.state.dropLevelOffset&&T===r.state.dropTargetKey&&I===r.state.dropContainerKey&&$===r.state.dropTargetPos&&M===r.state.dropAllowed&&R===r.state.dragOverNodeKey||r.setState({dropPosition:O,dropLevelOffset:k,dropTargetKey:T,dropContainerKey:I,dropTargetPos:$,dropAllowed:M,dragOverNodeKey:R}),x==null||x({event:l,node:Qr(c)}))}}),J(_t(r),"onNodeDragLeave",function(l,c){r.currentMouseOverDroppableNodeKey===c.eventKey&&!l.currentTarget.contains(l.relatedTarget)&&(r.resetDragState(),r.currentMouseOverDroppableNodeKey=null);var u=r.props.onDragLeave;u==null||u({event:l,node:Qr(c)})}),J(_t(r),"onWindowDragEnd",function(l){r.onNodeDragEnd(l,null,!0),window.removeEventListener("dragend",r.onWindowDragEnd)}),J(_t(r),"onNodeDragEnd",function(l,c){var u=r.props.onDragEnd;r.setState({dragOverNodeKey:null}),r.cleanDragState(),u==null||u({event:l,node:Qr(c)}),r.dragNodeProps=null,window.removeEventListener("dragend",r.onWindowDragEnd)}),J(_t(r),"onNodeDrop",function(l,c){var u,p=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,h=r.state,m=h.dragChildrenKeys,g=h.dropPosition,b=h.dropTargetKey,E=h.dropTargetPos,x=h.dropAllowed;if(x){var S=r.props.onDrop;if(r.setState({dragOverNodeKey:null}),r.cleanDragState(),b!==null){var C=te(te({},rh(b,r.getTreeNodeRequiredProps())),{},{active:((u=r.getActiveItem())===null||u===void 0?void 0:u.key)===b,data:To(r.state.keyEntities,b).node}),_=m.includes(b);br(!_,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var O=k8(E),k={event:l,node:Qr(C),dragNode:r.dragNodeProps?Qr(r.dragNodeProps):null,dragNodesKeys:[r.dragNodeProps.eventKey].concat(m),dropToGap:g!==0,dropPosition:g+Number(O[O.length-1])};p||S==null||S(k),r.dragNodeProps=null}}}),J(_t(r),"cleanDragState",function(){var l=r.state.draggingNodeKey;l!==null&&r.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),r.dragStartMousePosition=null,r.currentMouseOverDroppableNodeKey=null}),J(_t(r),"triggerExpandActionExpand",function(l,c){var u=r.state,p=u.expandedKeys,h=u.flattenNodes,m=c.expanded,g=c.key,b=c.isLeaf;if(!(b||l.shiftKey||l.metaKey||l.ctrlKey)){var E=h.filter(function(S){return S.key===g})[0],x=Qr(te(te({},rh(g,r.getTreeNodeRequiredProps())),{},{data:E.data}));r.setExpandedKeys(m?Cl(p,g):ns(p,g)),r.onNodeExpand(l,x)}}),J(_t(r),"onNodeClick",function(l,c){var u=r.props,p=u.onClick,h=u.expandAction;h==="click"&&r.triggerExpandActionExpand(l,c),p==null||p(l,c)}),J(_t(r),"onNodeDoubleClick",function(l,c){var u=r.props,p=u.onDoubleClick,h=u.expandAction;h==="doubleClick"&&r.triggerExpandActionExpand(l,c),p==null||p(l,c)}),J(_t(r),"onNodeSelect",function(l,c){var u=r.state.selectedKeys,p=r.state,h=p.keyEntities,m=p.fieldNames,g=r.props,b=g.onSelect,E=g.multiple,x=c.selected,S=c[m.key],C=!x;C?E?u=ns(u,S):u=[S]:u=Cl(u,S);var _=u.map(function(O){var k=To(h,O);return k?k.node:null}).filter(Boolean);r.setUncontrolledState({selectedKeys:u}),b==null||b(u,{event:"select",selected:C,node:c,selectedNodes:_,nativeEvent:l.nativeEvent})}),J(_t(r),"onNodeCheck",function(l,c,u){var p=r.state,h=p.keyEntities,m=p.checkedKeys,g=p.halfCheckedKeys,b=r.props,E=b.checkStrictly,x=b.onCheck,S=c.key,C,_={event:"check",node:c,checked:u,nativeEvent:l.nativeEvent};if(E){var O=u?ns(m,S):Cl(m,S),k=Cl(g,S);C={checked:O,halfChecked:k},_.checkedNodes=O.map(function(j){return To(h,j)}).filter(Boolean).map(function(j){return j.node}),r.setUncontrolledState({checkedKeys:O})}else{var T=_f([].concat(Xe(m),[S]),!0,h),I=T.checkedKeys,$=T.halfCheckedKeys;if(!u){var M=new Set(I);M.delete(S);var R=_f(Array.from(M),{checked:!1,halfCheckedKeys:$},h);I=R.checkedKeys,$=R.halfCheckedKeys}C=I,_.checkedNodes=[],_.checkedNodesPositions=[],_.halfCheckedKeys=$,I.forEach(function(j){var D=To(h,j);if(D){var L=D.node,B=D.pos;_.checkedNodes.push(L),_.checkedNodesPositions.push({node:L,pos:B})}}),r.setUncontrolledState({checkedKeys:I},!1,{halfCheckedKeys:$})}x==null||x(C,_)}),J(_t(r),"onNodeLoad",function(l){var c,u=l.key,p=r.state.keyEntities,h=To(p,u);if(!(h!=null&&(c=h.children)!==null&&c!==void 0&&c.length)){var m=new Promise(function(g,b){r.setState(function(E){var x=E.loadedKeys,S=x===void 0?[]:x,C=E.loadingKeys,_=C===void 0?[]:C,O=r.props,k=O.loadData,T=O.onLoad;if(!k||S.includes(u)||_.includes(u))return null;var I=k(l);return I.then(function(){var $=r.state.loadedKeys,M=ns($,u);T==null||T(M,{event:"load",node:l}),r.setUncontrolledState({loadedKeys:M}),r.setState(function(R){return{loadingKeys:Cl(R.loadingKeys,u)}}),g()}).catch(function($){if(r.setState(function(R){return{loadingKeys:Cl(R.loadingKeys,u)}}),r.loadingRetryTimes[u]=(r.loadingRetryTimes[u]||0)+1,r.loadingRetryTimes[u]>=t0e){var M=r.state.loadedKeys;br(!1,"Retry for `loadData` many times but still failed. No more retry."),r.setUncontrolledState({loadedKeys:ns(M,u)}),g()}b($)}),{loadingKeys:ns(_,u)}})});return m.catch(function(){}),m}}),J(_t(r),"onNodeMouseEnter",function(l,c){var u=r.props.onMouseEnter;u==null||u({event:l,node:c})}),J(_t(r),"onNodeMouseLeave",function(l,c){var u=r.props.onMouseLeave;u==null||u({event:l,node:c})}),J(_t(r),"onNodeContextMenu",function(l,c){var u=r.props.onRightClick;u&&(l.preventDefault(),u({event:l,node:c}))}),J(_t(r),"onFocus",function(){var l=r.props.onFocus;r.setState({focused:!0});for(var c=arguments.length,u=new Array(c),p=0;p<c;p++)u[p]=arguments[p];l==null||l.apply(void 0,u)}),J(_t(r),"onBlur",function(){var l=r.props.onBlur;r.setState({focused:!1}),r.onActiveChange(null);for(var c=arguments.length,u=new Array(c),p=0;p<c;p++)u[p]=arguments[p];l==null||l.apply(void 0,u)}),J(_t(r),"getTreeNodeRequiredProps",function(){var l=r.state,c=l.expandedKeys,u=l.selectedKeys,p=l.loadedKeys,h=l.loadingKeys,m=l.checkedKeys,g=l.halfCheckedKeys,b=l.dragOverNodeKey,E=l.dropPosition,x=l.keyEntities;return{expandedKeys:c||[],selectedKeys:u||[],loadedKeys:p||[],loadingKeys:h||[],checkedKeys:m||[],halfCheckedKeys:g||[],dragOverNodeKey:b,dropPosition:E,keyEntities:x}}),J(_t(r),"setExpandedKeys",function(l){var c=r.state,u=c.treeData,p=c.fieldNames,h=W4(u,l,p);r.setUncontrolledState({expandedKeys:l,flattenNodes:h},!0)}),J(_t(r),"onNodeExpand",function(l,c){var u=r.state.expandedKeys,p=r.state,h=p.listChanging,m=p.fieldNames,g=r.props,b=g.onExpand,E=g.loadData,x=c.expanded,S=c[m.key];if(!h){var C=u.includes(S),_=!x;if(br(x&&C||!x&&!C,"Expand state not sync with index check"),u=_?ns(u,S):Cl(u,S),r.setExpandedKeys(u),b==null||b(u,{node:c,expanded:_,nativeEvent:l.nativeEvent}),_&&E){var O=r.onNodeLoad(c);O&&O.then(function(){var k=W4(r.state.treeData,u,m);r.setUncontrolledState({flattenNodes:k})}).catch(function(){var k=r.state.expandedKeys,T=Cl(k,S);r.setExpandedKeys(T)})}}}),J(_t(r),"onListChangeStart",function(){r.setUncontrolledState({listChanging:!0})}),J(_t(r),"onListChangeEnd",function(){setTimeout(function(){r.setUncontrolledState({listChanging:!1})})}),J(_t(r),"onActiveChange",function(l){var c=r.state.activeKey,u=r.props,p=u.onActiveChange,h=u.itemScrollOffset,m=h===void 0?0:h;c!==l&&(r.setState({activeKey:l}),l!==null&&r.scrollTo({key:l,offset:m}),p==null||p(l))}),J(_t(r),"getActiveItem",function(){var l=r.state,c=l.activeKey,u=l.flattenNodes;return c===null?null:u.find(function(p){var h=p.key;return h===c})||null}),J(_t(r),"offsetActiveKey",function(l){var c=r.state,u=c.flattenNodes,p=c.activeKey,h=u.findIndex(function(b){var E=b.key;return E===p});h===-1&&l<0&&(h=u.length),h=(h+l+u.length)%u.length;var m=u[h];if(m){var g=m.key;r.onActiveChange(g)}else r.onActiveChange(null)}),J(_t(r),"onKeyDown",function(l){var c=r.state,u=c.activeKey,p=c.expandedKeys,h=c.checkedKeys,m=c.fieldNames,g=r.props,b=g.onKeyDown,E=g.checkable,x=g.selectable;switch(l.which){case lt.UP:{r.offsetActiveKey(-1),l.preventDefault();break}case lt.DOWN:{r.offsetActiveKey(1),l.preventDefault();break}}var S=r.getActiveItem();if(S&&S.data){var C=r.getTreeNodeRequiredProps(),_=S.data.isLeaf===!1||!!(S.data[m.children]||[]).length,O=Qr(te(te({},rh(u,C)),{},{data:S.data,active:!0}));switch(l.which){case lt.LEFT:{_&&p.includes(u)?r.onNodeExpand({},O):S.parent&&r.onActiveChange(S.parent.key),l.preventDefault();break}case lt.RIGHT:{_&&!p.includes(u)?r.onNodeExpand({},O):S.children&&S.children.length&&r.onActiveChange(S.children[0].key),l.preventDefault();break}case lt.ENTER:case lt.SPACE:{E&&!O.disabled&&O.checkable!==!1&&!O.disableCheckbox?r.onNodeCheck({},O,!h.includes(u)):!E&&x&&!O.disabled&&O.selectable!==!1&&r.onNodeSelect({},O);break}}}b==null||b(l)}),J(_t(r),"setUncontrolledState",function(l){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!r.destroyed){var p=!1,h=!0,m={};Object.keys(l).forEach(function(g){if(r.props.hasOwnProperty(g)){h=!1;return}p=!0,m[g]=l[g]}),p&&(!c||h)&&r.setState(te(te({},m),u))}}),J(_t(r),"scrollTo",function(l){r.listRef.current.scrollTo(l)}),r}return Mr(n,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var i=this.props,o=i.activeKey,a=i.itemScrollOffset,l=a===void 0?0:a;o!==void 0&&o!==this.state.activeKey&&(this.setState({activeKey:o}),o!==null&&this.scrollTo({key:o,offset:l}))}},{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,o=i.focused,a=i.flattenNodes,l=i.keyEntities,c=i.draggingNodeKey,u=i.activeKey,p=i.dropLevelOffset,h=i.dropContainerKey,m=i.dropTargetKey,g=i.dropPosition,b=i.dragOverNodeKey,E=i.indent,x=this.props,S=x.prefixCls,C=x.className,_=x.style,O=x.showLine,k=x.focusable,T=x.tabIndex,I=T===void 0?0:T,$=x.selectable,M=x.showIcon,R=x.icon,j=x.switcherIcon,D=x.draggable,L=x.checkable,B=x.checkStrictly,H=x.disabled,W=x.motion,z=x.loadData,V=x.filterTreeNode,X=x.height,A=x.itemHeight,P=x.scrollWidth,Y=x.virtual,U=x.titleRender,Q=x.dropIndicatorRender,ee=x.onContextMenu,se=x.onScroll,ne=x.direction,oe=x.rootClassName,pe=x.rootStyle,be=Oi(this.props,{aria:!0,data:!0}),ue;D&&(Nt(D)==="object"?ue=D:typeof D=="function"?ue={nodeDraggable:D}:ue={});var de={prefixCls:S,selectable:$,showIcon:M,icon:R,switcherIcon:j,draggable:ue,draggingNodeKey:c,checkable:L,checkStrictly:B,disabled:H,keyEntities:l,dropLevelOffset:p,dropContainerKey:h,dropTargetKey:m,dropPosition:g,dragOverNodeKey:b,indent:E,direction:ne,dropIndicatorRender:Q,loadData:z,filterTreeNode:V,titleRender:U,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 d.createElement(I8.Provider,{value:de},d.createElement("div",{className:le(S,C,oe,J(J(J({},"".concat(S,"-show-line"),O),"".concat(S,"-focused"),o),"".concat(S,"-active-focused"),u!==null)),style:pe},d.createElement(e0e,Ve({ref:this.listRef,prefixCls:S,style:_,data:a,disabled:H,selectable:$,checkable:!!L,motion:W,dragging:c!==null,height:X,itemHeight:A,virtual:Y,focusable:k,focused:o,tabIndex:I,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:ee,onScroll:se,scrollWidth:P},this.getTreeNodeRequiredProps(),be))))}}],[{key:"getDerivedStateFromProps",value:function(i,o){var a=o.prevProps,l={prevProps:i};function c(I){return!a&&i.hasOwnProperty(I)||a&&a[I]!==i[I]}var u,p=o.fieldNames;if(c("fieldNames")&&(p=Wf(i.fieldNames),l.fieldNames=p),c("treeData")?u=i.treeData:c("children")&&(br(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),u=kB(i.children)),u){l.treeData=u;var h=y8(u,{fieldNames:p});l.keyEntities=te(J({},Hu,Rj),h.keyEntities)}var m=l.keyEntities||o.keyEntities;if(c("expandedKeys")||a&&c("autoExpandParent"))l.expandedKeys=i.autoExpandParent||!a&&i.defaultExpandParent?wE(i.expandedKeys,m):i.expandedKeys;else if(!a&&i.defaultExpandAll){var g=te({},m);delete g[Hu];var b=[];Object.keys(g).forEach(function(I){var $=g[I];$.children&&$.children.length&&b.push($.key)}),l.expandedKeys=b}else!a&&i.defaultExpandedKeys&&(l.expandedKeys=i.autoExpandParent||i.defaultExpandParent?wE(i.defaultExpandedKeys,m):i.defaultExpandedKeys);if(l.expandedKeys||delete l.expandedKeys,u||l.expandedKeys){var E=W4(u||o.treeData,l.expandedKeys||o.expandedKeys,p);l.flattenNodes=E}if(i.selectable&&(c("selectedKeys")?l.selectedKeys=ik(i.selectedKeys,i):!a&&i.defaultSelectedKeys&&(l.selectedKeys=ik(i.defaultSelectedKeys,i))),i.checkable){var x;if(c("checkedKeys")?x=J4(i.checkedKeys)||{}:!a&&i.defaultCheckedKeys?x=J4(i.defaultCheckedKeys)||{}:u&&(x=J4(i.checkedKeys)||{checkedKeys:o.checkedKeys,halfCheckedKeys:o.halfCheckedKeys}),x){var S=x,C=S.checkedKeys,_=C===void 0?[]:C,O=S.halfCheckedKeys,k=O===void 0?[]:O;if(!i.checkStrictly){var T=_f(_,!0,m);_=T.checkedKeys,k=T.halfCheckedKeys}l.checkedKeys=_,l.halfCheckedKeys=k}}return c("loadedKeys")&&(l.loadedKeys=i.loadedKeys),l}}]),n}(d.Component);J($8,"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:Vme,allowDrop:function(){return!0},expandAction:!1});J($8,"TreeNode",im);const n0e=e=>{let{treeCls:t,treeNodeCls:n,directoryNodeSelectedBg:r,directoryNodeSelectedColor:i,motionDurationMid:o,borderRadius:a,controlItemBgHover:l}=e;return{[`${t}${t}-directory ${n}`]:{[`${t}-node-content-wrapper`]:{position:"static",[`> *:not(${t}-drop-indicator)`]:{position:"relative"},"&:hover":{background:"transparent"},"&:before":{position:"absolute",inset:0,transition:`background-color ${o}`,content:'""',borderRadius:a},"&:hover:before":{background:l}},[`${t}-switcher, ${t}-checkbox, ${t}-draggable-icon`]:{zIndex:1},"&-selected":{[`${t}-switcher, ${t}-draggable-icon`]:{color:i},[`${t}-node-content-wrapper`]:{color:i,background:"transparent","&:before, &:hover:before":{background:r}}}}}},r0e=new wn("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),i0e=(e,t)=>({[`.${e}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${t.motionDurationSlow}`}}}),o0e=(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:'""'}}}),a0e=(e,t)=>{const{treeCls:n,treeNodeCls:r,treeNodePadding:i,titleHeight:o,indentSize:a,nodeSelectedBg:l,nodeHoverBg:c,colorTextQuaternary:u,controlItemBgActiveDisabled:p}=t;return{[n]:Object.assign(Object.assign({},zn(t)),{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)`]:Object.assign({},Dl(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:r0e,animationDuration:t.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none",borderRadius:t.borderRadius}}},[r]:{display:"flex",alignItems:"flex-start",marginBottom:i,lineHeight:ae(o),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:p},[`&: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:500},"&-draggable":{cursor:"grab",[`${n}-draggable-icon`]:{flexShrink:0,width:o,textAlign:"center",visibility:"visible",color:u},[`&${r}-disabled ${n}-draggable-icon`]:{visibility:"hidden"}}},[`${n}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:a}},[`${n}-draggable-icon`]:{visibility:"hidden"},[`${n}-switcher, ${n}-checkbox`]:{marginInlineEnd:t.calc(t.calc(o).sub(t.controlInteractiveSize)).div(2).equal()},[`${n}-switcher`]:Object.assign(Object.assign({},i0e(e,t)),{position:"relative",flex:"none",alignSelf:"stretch",width:o,textAlign:"center",cursor:"pointer",userSelect:"none",transition:`all ${t.motionDurationSlow}`,"&-noop":{cursor:"unset"},"&:before":{pointerEvents:"none",content:'""',width:o,height:o,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(o).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(o).div(2).equal()).mul(.8).equal(),height:t.calc(o).div(2).equal(),borderBottom:`1px solid ${t.colorBorder}`,content:'""'}}}),[`${n}-node-content-wrapper`]:Object.assign(Object.assign({position:"relative",minHeight:o,paddingBlock:0,paddingInline:t.paddingXS,background:"transparent",borderRadius:t.borderRadius,cursor:"pointer",transition:`all ${t.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`},o0e(e,t)),{"&:hover":{backgroundColor:c},[`&${n}-node-selected`]:{color:t.nodeSelectedColor,backgroundColor:l},[`${n}-iconEle`]:{display:"inline-block",width:o,height:o,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(o).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(o).div(2).equal())} !important`}})}},l0e=(e,t)=>{const n=`.${e}`,r=`${n}-treenode`,i=t.calc(t.paddingXS).div(2).equal(),o=hn(t,{treeCls:n,treeNodeCls:r,treeNodePadding:i});return[a0e(e,o),n0e(o)]},s0e=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}},c0e=e=>{const{colorTextLightSolid:t,colorPrimary:n}=e;return Object.assign(Object.assign({},s0e(e)),{directoryNodeSelectedColor:t,directoryNodeSelectedBg:n})},u0e=Fn("Tree",(e,t)=>{let{prefixCls:n}=t;return[{[e.componentCls]:NB(`${n}-checkbox`,e)},l0e(n,e),Fb(e)]},c0e),dk=4;function d0e(e){const{dropPosition:t,dropLevelOffset:n,prefixCls:r,indent:i,direction:o="ltr"}=e,a=o==="ltr"?"left":"right",l=o==="ltr"?"right":"left",c={[a]:-n*i+dk,[l]:0};switch(t){case-1:c.top=-3;break;case 1:c.bottom=-3;break;default:c.bottom=-3,c[a]=i+dk;break}return fe.createElement("div",{style:c,className:`${r}-drop-indicator`})}const f0e=e=>{const{prefixCls:t,switcherIcon:n,treeNodeProps:r,showLine:i,switcherLoadingIcon:o}=e,{isLeaf:a,expanded:l,loading:c}=r;if(c)return d.isValidElement(o)?o:d.createElement(Ec,{className:`${t}-switcher-loading-icon`});let u;if(i&&typeof i=="object"&&(u=i.showLeafIcon),a){if(!i)return null;if(typeof u!="boolean"&&u){const m=typeof u=="function"?u(r):u,g=`${t}-switcher-line-custom-icon`;return d.isValidElement(m)?vi(m,{className:le(m.props.className||"",g)}):m}return u?d.createElement(pj,{className:`${t}-switcher-line-icon`}):d.createElement("span",{className:`${t}-switcher-leaf-line`})}const p=`${t}-switcher-icon`,h=typeof n=="function"?n(r):n;return d.isValidElement(h)?vi(h,{className:le(h.props.className||"",p)}):h!==void 0?h:i?l?d.createElement(jpe,{className:`${t}-switcher-line-icon`}):d.createElement(Ype,{className:`${t}-switcher-line-icon`}):d.createElement(J1e,{className:p})},Mj=fe.forwardRef((e,t)=>{var n;const{getPrefixCls:r,direction:i,virtual:o,tree:a}=fe.useContext(At),{prefixCls:l,className:c,showIcon:u=!1,showLine:p,switcherIcon:h,switcherLoadingIcon:m,blockNode:g=!1,children:b,checkable:E=!1,selectable:x=!0,draggable:S,motion:C,style:_}=e,O=r("tree",l),k=r(),T=C??Object.assign(Object.assign({},Xh(k)),{motionAppear:!1}),I=Object.assign(Object.assign({},e),{checkable:E,selectable:x,showIcon:u,motion:T,blockNode:g,showLine:!!p,dropIndicatorRender:d0e}),[$,M,R]=u0e(O),[,j]=Fi(),D=j.paddingXS/2+(((n=j.Tree)===null||n===void 0?void 0:n.titleHeight)||j.controlHeightSM),L=fe.useMemo(()=>{if(!S)return!1;let H={};switch(typeof S){case"function":H.nodeDraggable=S;break;case"object":H=Object.assign({},S);break}return H.icon!==!1&&(H.icon=H.icon||fe.createElement(Ppe,null)),H},[S]),B=H=>fe.createElement(f0e,{prefixCls:O,switcherIcon:h,switcherLoadingIcon:m,treeNodeProps:H,showLine:p});return $(fe.createElement($8,Object.assign({itemHeight:D,ref:t,virtual:o},I,{style:Object.assign(Object.assign({},a==null?void 0:a.style),_),prefixCls:O,className:le({[`${O}-icon-hide`]:!u,[`${O}-block-node`]:g,[`${O}-unselectable`]:!x,[`${O}-rtl`]:i==="rtl"},a==null?void 0:a.className,c,M,R),direction:i,checkable:E&&fe.createElement("span",{className:`${O}-checkbox-inner`}),selectable:x,switcherIcon:B,draggable:L}),b))}),fk=0,e9=1,pk=2;function N8(e,t,n){const{key:r,children:i}=n;function o(a){const l=a[r],c=a[i];t(l,a)!==!1&&N8(c||[],t,n)}e.forEach(o)}function p0e(e){let{treeData:t,expandedKeys:n,startKey:r,endKey:i,fieldNames:o}=e;const a=[];let l=fk;if(r&&r===i)return[r];if(!r||!i)return[];function c(u){return u===r||u===i}return N8(t,u=>{if(l===pk)return!1;if(c(u)){if(a.push(u),l===fk)l=e9;else if(l===e9)return l=pk,!1}else l===e9&&a.push(u);return n.includes(u)},Wf(o)),a}function t9(e,t,n){const r=Xe(t),i=[];return N8(e,(o,a)=>{const l=r.indexOf(o);return l!==-1&&(i.push(a),r.splice(l,1)),!!r.length},Wf(n)),i}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};function h0e(e){const{isLeaf:t,expanded:n}=e;return t?d.createElement(pj,null):n?d.createElement(kpe,null):d.createElement(Ape,null)}function mk(e){let{treeData:t,children:n}=e;return t||kB(n)}const m0e=(e,t)=>{var{defaultExpandAll:n,defaultExpandParent:r,defaultExpandedKeys:i}=e,o=hk(e,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const a=d.useRef(null),l=d.useRef(null),c=()=>{const{keyEntities:$}=y8(mk(o));let M;return n?M=Object.keys($):r?M=wE(o.expandedKeys||i||[],$):M=o.expandedKeys||i||[],M},[u,p]=d.useState(o.selectedKeys||o.defaultSelectedKeys||[]),[h,m]=d.useState(()=>c());d.useEffect(()=>{"selectedKeys"in o&&p(o.selectedKeys)},[o.selectedKeys]),d.useEffect(()=>{"expandedKeys"in o&&m(o.expandedKeys)},[o.expandedKeys]);const g=($,M)=>{var R;return"expandedKeys"in o||m($),(R=o.onExpand)===null||R===void 0?void 0:R.call(o,$,M)},b=($,M)=>{var R;const{multiple:j,fieldNames:D}=o,{node:L,nativeEvent:B}=M,{key:H=""}=L,W=mk(o),z=Object.assign(Object.assign({},M),{selected:!0}),V=(B==null?void 0:B.ctrlKey)||(B==null?void 0:B.metaKey),X=B==null?void 0:B.shiftKey;let A;j&&V?(A=$,a.current=H,l.current=A,z.selectedNodes=t9(W,A,D)):j&&X?(A=Array.from(new Set([].concat(Xe(l.current||[]),Xe(p0e({treeData:W,expandedKeys:h,startKey:H,endKey:a.current,fieldNames:D}))))),z.selectedNodes=t9(W,A,D)):(A=[H],a.current=H,l.current=A,z.selectedNodes=t9(W,A,D)),(R=o.onSelect)===null||R===void 0||R.call(o,A,z),"selectedKeys"in o||p(A)},{getPrefixCls:E,direction:x}=d.useContext(At),{prefixCls:S,className:C,showIcon:_=!0,expandAction:O="click"}=o,k=hk(o,["prefixCls","className","showIcon","expandAction"]),T=E("tree",S),I=le(`${T}-directory`,{[`${T}-directory-rtl`]:x==="rtl"},C);return d.createElement(Mj,Object.assign({icon:h0e,ref:t,blockNode:!0},k,{showIcon:_,expandAction:O,prefixCls:T,className:I,expandedKeys:h,selectedKeys:u,onSelect:b,onExpand:g}))},g0e=d.forwardRef(m0e),A8=Mj;A8.DirectoryTree=g0e;A8.TreeNode=im;const gk=e=>{const{value:t,filterSearch:n,tablePrefixCls:r,locale:i,onChange:o}=e;return n?d.createElement("div",{className:`${r}-filter-dropdown-search`},d.createElement(Qi,{prefix:d.createElement(Y3,null),placeholder:i.filterSearchPlaceholder,onChange:o,value:t,htmlSize:1,className:`${r}-filter-dropdown-search-input`})):null},v0e=e=>{const{keyCode:t}=e;t===lt.ENTER&&e.stopPropagation()},y0e=d.forwardRef((e,t)=>d.createElement("div",{className:e.className,onClick:n=>n.stopPropagation(),onKeyDown:v0e,ref:t},e.children));function Tf(e){let t=[];return(e||[]).forEach(n=>{let{value:r,children:i}=n;t.push(r),i&&(t=[].concat(Xe(t),Xe(Tf(i))))}),t}function b0e(e){return e.some(t=>{let{children:n}=t;return n})}function Pj(e,t){return typeof t=="string"||typeof t=="number"?t==null?void 0:t.toString().toLowerCase().includes(e.trim().toLowerCase()):!1}function Lj(e){let{filters:t,prefixCls:n,filteredKeys:r,filterMultiple:i,searchValue:o,filterSearch:a}=e;return t.map((l,c)=>{const u=String(l.value);if(l.children)return{key:u||c,label:l.text,popupClassName:`${n}-dropdown-submenu`,children:Lj({filters:l.children,prefixCls:n,filteredKeys:r,filterMultiple:i,searchValue:o,filterSearch:a})};const p=i?Uf:Ai,h={key:l.value!==void 0?u:c,label:d.createElement(d.Fragment,null,d.createElement(p,{checked:r.includes(u)}),d.createElement("span",null,l.text))};return o.trim()?typeof a=="function"?a(o,l)?h:null:Pj(o,l.text)?h:null:h})}function n9(e){return e||[]}const C0e=e=>{var t,n,r,i;const{tablePrefixCls:o,prefixCls:a,column:l,dropdownPrefixCls:c,columnKey:u,filterOnClose:p,filterMultiple:h,filterMode:m="menu",filterSearch:g=!1,filterState:b,triggerFilter:E,locale:x,children:S,getPopupContainer:C,rootClassName:_}=e,{filterResetToDefaultFilteredValue:O,defaultFilteredValue:k,filterDropdownProps:T={},filterDropdownOpen:I,filterDropdownVisible:$,onFilterDropdownVisibleChange:M,onFilterDropdownOpenChange:R}=l,[j,D]=d.useState(!1),L=!!(b&&(!((t=b.filteredKeys)===null||t===void 0)&&t.length||b.forceFiltered)),B=Te=>{var Ue;D(Te),(Ue=T.onOpenChange)===null||Ue===void 0||Ue.call(T,Te),R==null||R(Te),M==null||M(Te)},H=(i=(r=(n=T.open)!==null&&n!==void 0?n:I)!==null&&r!==void 0?r:$)!==null&&i!==void 0?i:j,W=b==null?void 0:b.filteredKeys,[z,V]=Kme(n9(W)),X=Te=>{let{selectedKeys:Ue}=Te;V(Ue)},A=(Te,Ue)=>{let{node:Le,checked:je}=Ue;X(h?{selectedKeys:Te}:{selectedKeys:je&&Le.key?[Le.key]:[]})};d.useEffect(()=>{j&&X({selectedKeys:n9(W)})},[W]);const[P,Y]=d.useState([]),U=Te=>{Y(Te)},[Q,ee]=d.useState(""),se=Te=>{const{value:Ue}=Te.target;ee(Ue)};d.useEffect(()=>{j||ee("")},[j]);const ne=Te=>{const Ue=Te!=null&&Te.length?Te:null;if(Ue===null&&(!b||!b.filteredKeys)||Ll(Ue,b==null?void 0:b.filteredKeys,!0))return null;E({column:l,key:u,filteredKeys:Ue})},oe=()=>{B(!1),ne(z())},pe=function(){let{confirm:Te,closeDropdown:Ue}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{confirm:!1,closeDropdown:!1};Te&&ne([]),Ue&&B(!1),ee(""),V(O?(k||[]).map(Le=>String(Le)):[])},be=function(){let{closeDropdown:Te}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0};Te&&B(!1),ne(z())},ue=(Te,Ue)=>{Ue.source==="trigger"&&(Te&&W!==void 0&&V(n9(W)),B(Te),!Te&&!l.filterDropdown&&p&&oe())},de=le({[`${c}-menu-without-submenu`]:!b0e(l.filters||[])}),re=Te=>{if(Te.target.checked){const Ue=Tf(l==null?void 0:l.filters).map(Le=>String(Le));V(Ue)}else V([])},me=Te=>{let{filters:Ue}=Te;return(Ue||[]).map((Le,je)=>{const Ge=String(Le.value),qe={title:Le.text,key:Le.value!==void 0?Ge:String(je)};return Le.children&&(qe.children=me({filters:Le.children})),qe})},ge=Te=>{var Ue;return Object.assign(Object.assign({},Te),{text:Te.title,value:Te.key,children:((Ue=Te.children)===null||Ue===void 0?void 0:Ue.map(Le=>ge(Le)))||[]})};let Ae;const{direction:De,renderEmpty:ze}=d.useContext(At);if(typeof l.filterDropdown=="function")Ae=l.filterDropdown({prefixCls:`${c}-custom`,setSelectedKeys:Te=>X({selectedKeys:Te}),selectedKeys:z(),confirm:be,clearFilters:pe,filters:l.filters,visible:H,close:()=>{B(!1)}});else if(l.filterDropdown)Ae=l.filterDropdown;else{const Te=z()||[],Ue=()=>{var je;const Ge=(je=ze==null?void 0:ze("Table.filter"))!==null&&je!==void 0?je:d.createElement(cs,{image:cs.PRESENTED_IMAGE_SIMPLE,description:x.filterEmptyText,styles:{image:{height:24}},style:{margin:0,padding:"16px 0"}});if((l.filters||[]).length===0)return Ge;if(m==="tree")return d.createElement(d.Fragment,null,d.createElement(gk,{filterSearch:g,value:Q,onChange:se,tablePrefixCls:o,locale:x}),d.createElement("div",{className:`${o}-filter-dropdown-tree`},h?d.createElement(Uf,{checked:Te.length===Tf(l.filters).length,indeterminate:Te.length>0&&Te.length<Tf(l.filters).length,className:`${o}-filter-dropdown-checkall`,onChange:re},x.filterCheckall):null,d.createElement(A8,{checkable:!0,selectable:!1,blockNode:!0,multiple:h,checkStrictly:!h,className:`${c}-menu`,onCheck:A,checkedKeys:Te,selectedKeys:Te,showIcon:!1,treeData:me({filters:l.filters}),autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:Q.trim()?ke=>typeof g=="function"?g(Q,ge(ke)):Pj(Q,ke.title):void 0})));const qe=Lj({filters:l.filters||[],filterSearch:g,prefixCls:a,filteredKeys:z(),filterMultiple:h,searchValue:Q}),Ce=qe.every(ke=>ke===null);return d.createElement(d.Fragment,null,d.createElement(gk,{filterSearch:g,value:Q,onChange:se,tablePrefixCls:o,locale:x}),Ce?Ge:d.createElement(Yu,{selectable:!0,multiple:h,prefixCls:`${c}-menu`,className:de,onSelect:X,onDeselect:X,selectedKeys:Te,getPopupContainer:C,openKeys:P,onOpenChange:U,items:qe}))},Le=()=>O?Ll((k||[]).map(je=>String(je)),Te,!0):Te.length===0;Ae=d.createElement(d.Fragment,null,Ue(),d.createElement("div",{className:`${a}-dropdown-btns`},d.createElement(Hn,{type:"link",size:"small",disabled:Le(),onClick:()=>pe()},x.filterReset),d.createElement(Hn,{type:"primary",size:"small",onClick:oe},x.filterConfirm)))}l.filterDropdown&&(Ae=d.createElement(uB,{selectable:void 0},Ae)),Ae=d.createElement(y0e,{className:`${a}-dropdown`},Ae);const Ie=rj({trigger:["click"],placement:De==="rtl"?"bottomLeft":"bottomRight",children:(()=>{let Te;return typeof l.filterIcon=="function"?Te=l.filterIcon(L):l.filterIcon?Te=l.filterIcon:Te=d.createElement(Tpe,null),d.createElement("span",{role:"button",tabIndex:-1,className:le(`${a}-trigger`,{active:L}),onClick:Ue=>{Ue.stopPropagation()}},Te)})(),getPopupContainer:C},Object.assign(Object.assign({},T),{rootClassName:le(_,T.rootClassName),open:H,onOpenChange:ue,dropdownRender:()=>typeof(T==null?void 0:T.dropdownRender)=="function"?T.dropdownRender(Ae):Ae}));return d.createElement("div",{className:`${a}-column`},d.createElement("span",{className:`${o}-column-title`},S),d.createElement(Dm,Object.assign({},Ie)))},kE=(e,t,n)=>{let r=[];return(e||[]).forEach((i,o)=>{var a;const l=y1(o,n);if(i.filters||"filterDropdown"in i||"onFilter"in i)if("filteredValue"in i){let c=i.filteredValue;"filterDropdown"in i||(c=(a=c==null?void 0:c.map(String))!==null&&a!==void 0?a:c),r.push({column:i,key:Oc(i,l),filteredKeys:c,forceFiltered:i.filtered})}else r.push({column:i,key:Oc(i,l),filteredKeys:t&&i.defaultFilteredValue?i.defaultFilteredValue:void 0,forceFiltered:i.filtered});"children"in i&&(r=[].concat(Xe(r),Xe(kE(i.children,t,l))))}),r};function Dj(e,t,n,r,i,o,a,l,c){return n.map((u,p)=>{const h=y1(p,l),{filterOnClose:m=!0,filterMultiple:g=!0,filterMode:b,filterSearch:E}=u;let x=u;if(x.filters||x.filterDropdown){const S=Oc(x,h),C=r.find(_=>{let{key:O}=_;return S===O});x=Object.assign(Object.assign({},x),{title:_=>d.createElement(C0e,{tablePrefixCls:e,prefixCls:`${e}-filter`,dropdownPrefixCls:t,column:x,columnKey:S,filterState:C,filterOnClose:m,filterMultiple:g,filterMode:b,filterSearch:E,triggerFilter:o,locale:i,getPopupContainer:a,rootClassName:c},f2(u.title,_))})}return"children"in x&&(x=Object.assign(Object.assign({},x),{children:Dj(e,t,x.children,r,i,o,a,h,c)})),x})}const vk=e=>{const t={};return e.forEach(n=>{let{key:r,filteredKeys:i,column:o}=n;const a=r,{filters:l,filterDropdown:c}=o;if(c)t[a]=i||null;else if(Array.isArray(i)){const u=Tf(l);t[a]=u.filter(p=>i.includes(String(p)))}else t[a]=null}),t},$E=(e,t,n)=>t.reduce((i,o)=>{const{column:{onFilter:a,filters:l},filteredKeys:c}=o;return a&&c&&c.length?i.map(u=>Object.assign({},u)).filter(u=>c.some(p=>{const h=Tf(l),m=h.findIndex(b=>String(b)===String(p)),g=m!==-1?h[m]:p;return u[n]&&(u[n]=$E(u[n],t,n)),a(g,u)})):i},e),Fj=e=>e.flatMap(t=>"children"in t?[t].concat(Xe(Fj(t.children||[]))):[t]),S0e=e=>{const{prefixCls:t,dropdownPrefixCls:n,mergedColumns:r,onFilterChange:i,getPopupContainer:o,locale:a,rootClassName:l}=e;Lc();const c=d.useMemo(()=>Fj(r||[]),[r]),[u,p]=d.useState(()=>kE(c,!0)),h=d.useMemo(()=>{const E=kE(c,!1);if(E.length===0)return E;let x=!0;if(E.forEach(S=>{let{filteredKeys:C}=S;C!==void 0&&(x=!1)}),x){const S=(c||[]).map((C,_)=>Oc(C,y1(_)));return u.filter(C=>{let{key:_}=C;return S.includes(_)}).map(C=>{const _=c[S.findIndex(O=>O===C.key)];return Object.assign(Object.assign({},C),{column:Object.assign(Object.assign({},C.column),_),forceFiltered:_.filtered})})}return E},[c,u]),m=d.useMemo(()=>vk(h),[h]),g=E=>{const x=h.filter(S=>{let{key:C}=S;return C!==E.key});x.push(E),p(x),i(vk(x),x)};return[E=>Dj(t,n,E,h,a,g,o,void 0,l),h,m]},E0e=(e,t,n)=>{const r=d.useRef({});function i(o){var a;if(!r.current||r.current.data!==e||r.current.childrenColumnName!==t||r.current.getRowKey!==n){let c=function(u){u.forEach((p,h)=>{const m=n(p,h);l.set(m,p),p&&typeof p=="object"&&t in p&&c(p[t]||[])})};const l=new Map;c(e),r.current={data:e,childrenColumnName:t,kvMap:l,getRowKey:n}}return(a=r.current.kvMap)===null||a===void 0?void 0:a.get(o)}return[i]};var x0e=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 Bj=10;function w0e(e,t){const n={current:e.current,pageSize:e.pageSize};return Object.keys(t&&typeof t=="object"?t:{}).forEach(i=>{const o=e[i];typeof o!="function"&&(n[i]=o)}),n}function _0e(e,t,n){const r=n&&typeof n=="object"?n:{},{total:i=0}=r,o=x0e(r,["total"]),[a,l]=d.useState(()=>({current:"defaultCurrent"in o?o.defaultCurrent:1,pageSize:"defaultPageSize"in o?o.defaultPageSize:Bj})),c=rj(a,o,{total:i>0?i:e}),u=Math.ceil((i||e)/c.pageSize);c.current>u&&(c.current=u||1);const p=(m,g)=>{l({current:m??1,pageSize:g||c.pageSize})},h=(m,g)=>{var b;n&&((b=n.onChange)===null||b===void 0||b.call(n,m,g)),p(m,g),t(m,g||(c==null?void 0:c.pageSize))};return n===!1?[{},()=>{}]:[Object.assign(Object.assign({},c),{onChange:h}),p]}const dv="ascend",r9="descend",wy=e=>typeof e.sorter=="object"&&typeof e.sorter.multiple=="number"?e.sorter.multiple:!1,yk=e=>typeof e=="function"?e:e&&typeof e=="object"&&e.compare?e.compare:!1,T0e=(e,t)=>t?e[e.indexOf(t)+1]:e[0],NE=(e,t,n)=>{let r=[];const i=(o,a)=>{r.push({column:o,key:Oc(o,a),multiplePriority:wy(o),sortOrder:o.sortOrder})};return(e||[]).forEach((o,a)=>{const l=y1(a,n);o.children?("sortOrder"in o&&i(o,l),r=[].concat(Xe(r),Xe(NE(o.children,t,l)))):o.sorter&&("sortOrder"in o?i(o,l):t&&o.defaultSortOrder&&r.push({column:o,key:Oc(o,l),multiplePriority:wy(o),sortOrder:o.defaultSortOrder}))}),r},jj=(e,t,n,r,i,o,a,l)=>(t||[]).map((u,p)=>{const h=y1(p,l);let m=u;if(m.sorter){const g=m.sortDirections||i,b=m.showSorterTooltip===void 0?a:m.showSorterTooltip,E=Oc(m,h),x=n.find(M=>{let{key:R}=M;return R===E}),S=x?x.sortOrder:null,C=T0e(g,S);let _;if(u.sortIcon)_=u.sortIcon({sortOrder:S});else{const M=g.includes(dv)&&d.createElement(ope,{className:le(`${e}-column-sorter-up`,{active:S===dv})}),R=g.includes(r9)&&d.createElement(npe,{className:le(`${e}-column-sorter-down`,{active:S===r9})});_=d.createElement("span",{className:le(`${e}-column-sorter`,{[`${e}-column-sorter-full`]:!!(M&&R)})},d.createElement("span",{className:`${e}-column-sorter-inner`,"aria-hidden":"true"},M,R))}const{cancelSort:O,triggerAsc:k,triggerDesc:T}=o||{};let I=O;C===r9?I=T:C===dv&&(I=k);const $=typeof b=="object"?Object.assign({title:I},b):{title:I};m=Object.assign(Object.assign({},m),{className:le(m.className,{[`${e}-column-sort`]:S}),title:M=>{const R=`${e}-column-sorters`,j=d.createElement("span",{className:`${e}-column-title`},f2(u.title,M)),D=d.createElement("div",{className:R},j,_);return b?typeof b!="boolean"&&(b==null?void 0:b.target)==="sorter-icon"?d.createElement("div",{className:`${R} ${e}-column-sorters-tooltip-target-sorter`},j,d.createElement(cl,Object.assign({},$),_)):d.createElement(cl,Object.assign({},$),D):D},onHeaderCell:M=>{var R;const j=((R=u.onHeaderCell)===null||R===void 0?void 0:R.call(u,M))||{},D=j.onClick,L=j.onKeyDown;j.onClick=W=>{r({column:u,key:E,sortOrder:C,multiplePriority:wy(u)}),D==null||D(W)},j.onKeyDown=W=>{W.keyCode===lt.ENTER&&(r({column:u,key:E,sortOrder:C,multiplePriority:wy(u)}),L==null||L(W))};const B=Ume(u.title,{}),H=B==null?void 0:B.toString();return S?j["aria-sort"]=S==="ascend"?"ascending":"descending":j["aria-label"]=H||"",j.className=le(j.className,`${e}-column-has-sorters`),j.tabIndex=0,u.ellipsis&&(j.title=(B??"").toString()),j}})}return"children"in m&&(m=Object.assign(Object.assign({},m),{children:jj(e,m.children,n,r,i,o,a,h)})),m}),bk=e=>{const{column:t,sortOrder:n}=e;return{column:t,order:n,field:t.dataIndex,columnKey:t.key}},Ck=e=>{const t=e.filter(n=>{let{sortOrder:r}=n;return r}).map(bk);if(t.length===0&&e.length){const n=e.length-1;return Object.assign(Object.assign({},bk(e[n])),{column:void 0,order:void 0,field:void 0,columnKey:void 0})}return t.length<=1?t[0]||{}:t},AE=(e,t,n)=>{const r=t.slice().sort((a,l)=>l.multiplePriority-a.multiplePriority),i=e.slice(),o=r.filter(a=>{let{column:{sorter:l},sortOrder:c}=a;return yk(l)&&c});return o.length?i.sort((a,l)=>{for(let c=0;c<o.length;c+=1){const u=o[c],{column:{sorter:p},sortOrder:h}=u,m=yk(p);if(m&&h){const g=m(a,l,h);if(g!==0)return h===dv?g:-g}}return 0}).map(a=>{const l=a[n];return l?Object.assign(Object.assign({},a),{[n]:AE(l,t,n)}):a}):i},O0e=e=>{const{prefixCls:t,mergedColumns:n,sortDirections:r,tableLocale:i,showSorterTooltip:o,onSorterChange:a}=e,[l,c]=d.useState(NE(n,!0)),u=(E,x)=>{const S=[];return E.forEach((C,_)=>{const O=y1(_,x);if(S.push(Oc(C,O)),Array.isArray(C.children)){const k=u(C.children,O);S.push.apply(S,Xe(k))}}),S},p=d.useMemo(()=>{let E=!0;const x=NE(n,!1);if(!x.length){const O=u(n);return l.filter(k=>{let{key:T}=k;return O.includes(T)})}const S=[];function C(O){E?S.push(O):S.push(Object.assign(Object.assign({},O),{sortOrder:null}))}let _=null;return x.forEach(O=>{_===null?(C(O),O.sortOrder&&(O.multiplePriority===!1?E=!1:_=!0)):(_&&O.multiplePriority!==!1||(E=!1),C(O))}),S},[n,l]),h=d.useMemo(()=>{var E,x;const S=p.map(C=>{let{column:_,sortOrder:O}=C;return{column:_,order:O}});return{sortColumns:S,sortColumn:(E=S[0])===null||E===void 0?void 0:E.column,sortOrder:(x=S[0])===null||x===void 0?void 0:x.order}},[p]),m=E=>{let x;E.multiplePriority===!1||!p.length||p[0].multiplePriority===!1?x=[E]:x=[].concat(Xe(p.filter(S=>{let{key:C}=S;return C!==E.key})),[E]),c(x),a(Ck(x),x)};return[E=>jj(t,E,p,m,r,i,o),p,h,()=>Ck(p)]},Hj=(e,t)=>e.map(r=>{const i=Object.assign({},r);return i.title=f2(r.title,t),"children"in i&&(i.children=Hj(i.children,t)),i}),I0e=e=>[d.useCallback(n=>Hj(n,e),[e])],k0e=Ij((e,t)=>{const{_renderTimes:n}=e,{_renderTimes:r}=t;return n!==r}),$0e=$j((e,t)=>{const{_renderTimes:n}=e,{_renderTimes:r}=t;return n!==r}),N0e=e=>{const{componentCls:t,lineWidth:n,lineType:r,tableBorderColor:i,tableHeaderBg:o,tablePaddingVertical:a,tablePaddingHorizontal:l,calc:c}=e,u=`${ae(n)} ${r} ${i}`,p=(h,m,g)=>({[`&${t}-${h}`]:{[`> ${t}-container`]:{[`> ${t}-content, > ${t}-body`]:{"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ":{[`> ${t}-expanded-row-fixed`]:{margin:`${ae(c(m).mul(-1).equal())}
${ae(c(c(g).add(n)).mul(-1).equal())}`}}}}}});return{[`${t}-wrapper`]:{[`${t}${t}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${t}-title`]:{border:u,borderBottom:0},[`> ${t}-container`]:{borderInlineStart:u,borderTop:u,[`
> ${t}-content,
> ${t}-header,
> ${t}-body,
> ${t}-summary
`]:{"> table":{"\n > thead > tr > th,\n > thead > tr > td,\n > tbody > tr > th,\n > tbody > tr > td,\n > tfoot > tr > th,\n > tfoot > tr > td\n ":{borderInlineEnd:u},"> thead":{"> tr:not(:last-child) > th":{borderBottom:u},"> tr > th::before":{backgroundColor:"transparent !important"}},"\n > thead > tr,\n > tbody > tr,\n > tfoot > tr\n ":{[`> ${t}-cell-fix-right-first::after`]:{borderInlineEnd:u}},"\n > tbody > tr > th,\n > tbody > tr > td\n ":{[`> ${t}-expanded-row-fixed`]:{margin:`${ae(c(a).mul(-1).equal())} ${ae(c(c(l).add(n)).mul(-1).equal())}`,"&::after":{position:"absolute",top:0,insetInlineEnd:n,bottom:0,borderInlineEnd:u,content:'""'}}}}}},[`&${t}-scroll-horizontal`]:{[`> ${t}-container > ${t}-body`]:{"> table > tbody":{[`
> tr${t}-expanded-row,
> tr${t}-placeholder
`]:{"> th, > td":{borderInlineEnd:0}}}}}},p("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle)),p("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall)),{[`> ${t}-footer`]:{border:u,borderTop:0}}),[`${t}-cell`]:{[`${t}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${ae(n)} 0 ${ae(n)} ${o}`}},[`${t}-bordered ${t}-cell-scrollbar`]:{borderInlineEnd:u}}}},A0e=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-cell-ellipsis`]:Object.assign(Object.assign({},ll),{wordBreak:"keep-all",[`
&${t}-cell-fix-left-last,
&${t}-cell-fix-right-first
`]:{overflow:"visible",[`${t}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${t}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},R0e=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-tbody > tr${t}-placeholder`]:{textAlign:"center",color:e.colorTextDisabled,"\n &:hover > th,\n &:hover > td,\n ":{background:e.colorBgContainer}}}}},M0e=e=>{const{componentCls:t,antCls:n,motionDurationSlow:r,lineWidth:i,paddingXS:o,lineType:a,tableBorderColor:l,tableExpandIconBg:c,tableExpandColumnWidth:u,borderRadius:p,tablePaddingVertical:h,tablePaddingHorizontal:m,tableExpandedRowBg:g,paddingXXS:b,expandIconMarginTop:E,expandIconSize:x,expandIconHalfInner:S,expandIconScale:C,calc:_}=e,O=`${ae(i)} ${a} ${l}`,k=_(b).sub(i).equal();return{[`${t}-wrapper`]:{[`${t}-expand-icon-col`]:{width:u},[`${t}-row-expand-icon-cell`]:{textAlign:"center",[`${t}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${t}-row-indent`]:{height:1,float:"left"},[`${t}-row-expand-icon`]:Object.assign(Object.assign({},x3(e)),{position:"relative",float:"left",width:x,height:x,color:"inherit",lineHeight:ae(x),background:c,border:O,borderRadius:p,transform:`scale(${C})`,"&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${r} ease-out`,content:'""'},"&::before":{top:S,insetInlineEnd:k,insetInlineStart:k,height:i},"&::after":{top:k,bottom:k,insetInlineStart:S,width:i,transform:"rotate(90deg)"},"&-collapsed::before":{transform:"rotate(-180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"},"&-spaced":{"&::before, &::after":{display:"none",content:"none"},background:"transparent",border:0,visibility:"hidden"}}),[`${t}-row-indent + ${t}-row-expand-icon`]:{marginTop:E,marginInlineEnd:o},[`tr${t}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:g}},[`${n}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"100%"}}},[`${t}-expanded-row-fixed`]:{position:"relative",margin:`${ae(_(h).mul(-1).equal())} ${ae(_(m).mul(-1).equal())}`,padding:`${ae(h)} ${ae(m)}`}}}},P0e=e=>{const{componentCls:t,antCls:n,iconCls:r,tableFilterDropdownWidth:i,tableFilterDropdownSearchWidth:o,paddingXXS:a,paddingXS:l,colorText:c,lineWidth:u,lineType:p,tableBorderColor:h,headerIconColor:m,fontSizeSM:g,tablePaddingHorizontal:b,borderRadius:E,motionDurationSlow:x,colorTextDescription:S,colorPrimary:C,tableHeaderFilterActiveBg:_,colorTextDisabled:O,tableFilterDropdownBg:k,tableFilterDropdownHeight:T,controlItemBgHover:I,controlItemBgActive:$,boxShadowSecondary:M,filterDropdownMenuBg:R,calc:j}=e,D=`${n}-dropdown`,L=`${t}-filter-dropdown`,B=`${n}-tree`,H=`${ae(u)} ${p} ${h}`;return[{[`${t}-wrapper`]:{[`${t}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${t}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:j(a).mul(-1).equal(),marginInline:`${ae(a)} ${ae(j(b).div(2).mul(-1).equal())}`,padding:`0 ${ae(a)}`,color:m,fontSize:g,borderRadius:E,cursor:"pointer",transition:`all ${x}`,"&:hover":{color:S,background:_},"&.active":{color:C}}}},{[`${n}-dropdown`]:{[L]:Object.assign(Object.assign({},zn(e)),{minWidth:i,backgroundColor:k,borderRadius:E,boxShadow:M,overflow:"hidden",[`${D}-menu`]:{maxHeight:T,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:R,"&:empty::after":{display:"block",padding:`${ae(l)} 0`,color:O,fontSize:g,textAlign:"center",content:'"Not Found"'}},[`${L}-tree`]:{paddingBlock:`${ae(l)} 0`,paddingInline:l,[B]:{padding:0},[`${B}-treenode ${B}-node-content-wrapper:hover`]:{backgroundColor:I},[`${B}-treenode-checkbox-checked ${B}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:$}}},[`${L}-search`]:{padding:l,borderBottom:H,"&-input":{input:{minWidth:o},[r]:{color:O}}},[`${L}-checkall`]:{width:"100%",marginBottom:a,marginInlineStart:a},[`${L}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${ae(j(l).sub(u).equal())} ${ae(l)}`,overflow:"hidden",borderTop:H}})}},{[`${n}-dropdown ${L}, ${L}-submenu`]:{[`${n}-checkbox-wrapper + span`]:{paddingInlineStart:l,color:c},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},L0e=e=>{const{componentCls:t,lineWidth:n,colorSplit:r,motionDurationSlow:i,zIndexTableFixed:o,tableBg:a,zIndexTableSticky:l,calc:c}=e,u=r;return{[`${t}-wrapper`]:{[`
${t}-cell-fix-left,
${t}-cell-fix-right
`]:{position:"sticky !important",zIndex:o,background:a},[`
${t}-cell-fix-left-first::after,
${t}-cell-fix-left-last::after
`]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:c(n).mul(-1).equal(),width:30,transform:"translateX(100%)",transition:`box-shadow ${i}`,content:'""',pointerEvents:"none"},[`${t}-cell-fix-left-all::after`]:{display:"none"},[`
${t}-cell-fix-right-first::after,
${t}-cell-fix-right-last::after
`]:{position:"absolute",top:0,bottom:c(n).mul(-1).equal(),left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${i}`,content:'""',pointerEvents:"none"},[`${t}-container`]:{position:"relative","&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:c(l).add(1).equal({unit:!1}),width:30,transition:`box-shadow ${i}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${t}-ping-left`]:{[`&:not(${t}-has-fix-left) ${t}-container::before`]:{boxShadow:`inset 10px 0 8px -8px ${u}`},[`
${t}-cell-fix-left-first::after,
${t}-cell-fix-left-last::after
`]:{boxShadow:`inset 10px 0 8px -8px ${u}`},[`${t}-cell-fix-left-last::before`]:{backgroundColor:"transparent !important"}},[`${t}-ping-right`]:{[`&:not(${t}-has-fix-right) ${t}-container::after`]:{boxShadow:`inset -10px 0 8px -8px ${u}`},[`
${t}-cell-fix-right-first::after,
${t}-cell-fix-right-last::after
`]:{boxShadow:`inset -10px 0 8px -8px ${u}`}},[`${t}-fixed-column-gapped`]:{[`
${t}-cell-fix-left-first::after,
${t}-cell-fix-left-last::after,
${t}-cell-fix-right-first::after,
${t}-cell-fix-right-last::after
`]:{boxShadow:"none"}}}}},D0e=e=>{const{componentCls:t,antCls:n,margin:r}=e;return{[`${t}-wrapper`]:{[`${t}-pagination${n}-pagination`]:{margin:`${ae(r)} 0`},[`${t}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:e.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}},F0e=e=>{const{componentCls:t,tableRadius:n}=e;return{[`${t}-wrapper`]:{[t]:{[`${t}-title, ${t}-header`]:{borderRadius:`${ae(n)} ${ae(n)} 0 0`},[`${t}-title + ${t}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${t}-header, table`]:{borderRadius:0},"table > thead > tr:first-child":{"th:first-child, th:last-child, td:first-child, td:last-child":{borderRadius:0}}},"&-container":{borderStartStartRadius:n,borderStartEndRadius:n,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:n},"> *:last-child":{borderStartEndRadius:n}}},"&-footer":{borderRadius:`0 0 ${ae(n)} ${ae(n)}`}}}}},B0e=e=>{const{componentCls:t}=e;return{[`${t}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${t}-pagination-left`]:{justifyContent:"flex-end"},[`${t}-pagination-right`]:{justifyContent:"flex-start"},[`${t}-row-expand-icon`]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},[`${t}-container`]:{"&::before":{insetInlineStart:"unset",insetInlineEnd:0},"&::after":{insetInlineStart:0,insetInlineEnd:"unset"},[`${t}-row-indent`]:{float:"right"}}}}},j0e=e=>{const{componentCls:t,antCls:n,iconCls:r,fontSizeIcon:i,padding:o,paddingXS:a,headerIconColor:l,headerIconHoverColor:c,tableSelectionColumnWidth:u,tableSelectedRowBg:p,tableSelectedRowHoverBg:h,tableRowHoverBg:m,tablePaddingHorizontal:g,calc:b}=e;return{[`${t}-wrapper`]:{[`${t}-selection-col`]:{width:u,[`&${t}-selection-col-with-dropdown`]:{width:b(u).add(i).add(b(o).div(4)).equal()}},[`${t}-bordered ${t}-selection-col`]:{width:b(u).add(b(a).mul(2)).equal(),[`&${t}-selection-col-with-dropdown`]:{width:b(u).add(i).add(b(o).div(4)).add(b(a).mul(2)).equal()}},[`
table tr th${t}-selection-column,
table tr td${t}-selection-column,
${t}-selection-column
`]:{paddingInlineEnd:e.paddingXS,paddingInlineStart:e.paddingXS,textAlign:"center",[`${n}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${t}-selection-column${t}-cell-fix-left`]:{zIndex:b(e.zIndexTableFixed).add(1).equal({unit:!1})},[`table tr th${t}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${t}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${t}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:ae(b(g).div(4).equal()),[r]:{color:l,fontSize:i,verticalAlign:"baseline","&:hover":{color:c}}},[`${t}-tbody`]:{[`${t}-row`]:{[`&${t}-row-selected`]:{[`> ${t}-cell`]:{background:p,"&-row-hover":{background:h}}},[`> ${t}-cell-row-hover`]:{background:m}}}}}},H0e=e=>{const{componentCls:t,tableExpandColumnWidth:n,calc:r}=e,i=(o,a,l,c)=>({[`${t}${t}-${o}`]:{fontSize:c,[`
${t}-title,
${t}-footer,
${t}-cell,
${t}-thead > tr > th,
${t}-tbody > tr > th,
${t}-tbody > tr > td,
tfoot > tr > th,
tfoot > tr > td
`]:{padding:`${ae(a)} ${ae(l)}`},[`${t}-filter-trigger`]:{marginInlineEnd:ae(r(l).div(2).mul(-1).equal())},[`${t}-expanded-row-fixed`]:{margin:`${ae(r(a).mul(-1).equal())} ${ae(r(l).mul(-1).equal())}`},[`${t}-tbody`]:{[`${t}-wrapper:only-child ${t}`]:{marginBlock:ae(r(a).mul(-1).equal()),marginInline:`${ae(r(n).sub(l).equal())} ${ae(r(l).mul(-1).equal())}`}},[`${t}-selection-extra`]:{paddingInlineStart:ae(r(l).div(4).equal())}}});return{[`${t}-wrapper`]:Object.assign(Object.assign({},i("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle,e.tableFontSizeMiddle)),i("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall,e.tableFontSizeSmall))}},z0e=e=>{const{componentCls:t,marginXXS:n,fontSizeIcon:r,headerIconColor:i,headerIconHoverColor:o}=e;return{[`${t}-wrapper`]:{[`${t}-thead th${t}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}, left 0s`,"&:hover":{background:e.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:e.colorPrimary},[`
&${t}-cell-fix-left:hover,
&${t}-cell-fix-right:hover
`]:{background:e.tableFixedHeaderSortActiveBg}},[`${t}-thead th${t}-column-sort`]:{background:e.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${t}-column-sort`]:{background:e.tableBodySortBg},[`${t}-column-title`]:{position:"relative",zIndex:1,flex:1},[`${t}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${t}-column-sorters-tooltip-target-sorter`]:{"&::after":{content:"none"}},[`${t}-column-sorter`]:{marginInlineStart:n,color:i,fontSize:0,transition:`color ${e.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:r,"&.active":{color:e.colorPrimary}},[`${t}-column-sorter-up + ${t}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${t}-column-sorters:hover ${t}-column-sorter`]:{color:o}}}},W0e=e=>{const{componentCls:t,opacityLoading:n,tableScrollThumbBg:r,tableScrollThumbBgHover:i,tableScrollThumbSize:o,tableScrollBg:a,zIndexTableSticky:l,stickyScrollBarBorderRadius:c,lineWidth:u,lineType:p,tableBorderColor:h}=e,m=`${ae(u)} ${p} ${h}`;return{[`${t}-wrapper`]:{[`${t}-sticky`]:{"&-holder":{position:"sticky",zIndex:l,background:e.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${ae(o)} !important`,zIndex:l,display:"flex",alignItems:"center",background:a,borderTop:m,opacity:n,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:o,backgroundColor:r,borderRadius:c,transition:`all ${e.motionDurationSlow}, transform none`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:i}}}}}}},Sk=e=>{const{componentCls:t,lineWidth:n,tableBorderColor:r,calc:i}=e,o=`${ae(n)} ${e.lineType} ${r}`;return{[`${t}-wrapper`]:{[`${t}-summary`]:{position:"relative",zIndex:e.zIndexTableFixed,background:e.tableBg,"> tr":{"> th, > td":{borderBottom:o}}},[`div${t}-summary`]:{boxShadow:`0 ${ae(i(n).mul(-1).equal())} 0 ${r}`}}}},U0e=e=>{const{componentCls:t,motionDurationMid:n,lineWidth:r,lineType:i,tableBorderColor:o,calc:a}=e,l=`${ae(r)} ${i} ${o}`,c=`${t}-expanded-row-cell`;return{[`${t}-wrapper`]:{[`${t}-tbody-virtual`]:{[`${t}-tbody-virtual-holder-inner`]:{[`
& > ${t}-row,
& > div:not(${t}-row) > ${t}-row
`]:{display:"flex",boxSizing:"border-box",width:"100%"}},[`${t}-cell`]:{borderBottom:l,transition:`background ${n}`},[`${t}-expanded-row`]:{[`${c}${c}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${ae(r)})`,borderInlineEnd:"none"}}},[`${t}-bordered`]:{[`${t}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:l,position:"absolute"},[`${t}-cell`]:{borderInlineEnd:l,[`&${t}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:a(r).mul(-1).equal(),borderInlineStart:l}}},[`&${t}-virtual`]:{[`${t}-placeholder ${t}-cell`]:{borderInlineEnd:l,borderBottom:l}}}}}},K0e=e=>{const{componentCls:t,fontWeightStrong:n,tablePaddingVertical:r,tablePaddingHorizontal:i,tableExpandColumnWidth:o,lineWidth:a,lineType:l,tableBorderColor:c,tableFontSize:u,tableBg:p,tableRadius:h,tableHeaderTextColor:m,motionDurationMid:g,tableHeaderBg:b,tableHeaderCellSplitColor:E,tableFooterTextColor:x,tableFooterBg:S,calc:C}=e,_=`${ae(a)} ${l} ${c}`;return{[`${t}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},sl()),{[t]:Object.assign(Object.assign({},zn(e)),{fontSize:u,background:p,borderRadius:`${ae(h)} ${ae(h)} 0 0`,scrollbarColor:`${e.tableScrollThumbBg} ${e.tableScrollBg}`}),table:{width:"100%",textAlign:"start",borderRadius:`${ae(h)} ${ae(h)} 0 0`,borderCollapse:"separate",borderSpacing:0},[`
${t}-cell,
${t}-thead > tr > th,
${t}-tbody > tr > th,
${t}-tbody > tr > td,
tfoot > tr > th,
tfoot > tr > td
`]:{position:"relative",padding:`${ae(r)} ${ae(i)}`,overflowWrap:"break-word"},[`${t}-title`]:{padding:`${ae(r)} ${ae(i)}`},[`${t}-thead`]:{"\n > tr > th,\n > tr > td\n ":{position:"relative",color:m,fontWeight:n,textAlign:"start",background:b,borderBottom:_,transition:`background ${g} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${t}-selection-column):not(${t}-row-expand-icon-cell):not([colspan])::before`]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:E,transform:"translateY(-50%)",transition:`background-color ${g}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${t}-tbody`]:{"> tr":{"> th, > td":{transition:`background ${g}, border-color ${g}`,borderBottom:_,[`
> ${t}-wrapper:only-child,
> ${t}-expanded-row-fixed > ${t}-wrapper:only-child
`]:{[t]:{marginBlock:ae(C(r).mul(-1).equal()),marginInline:`${ae(C(o).sub(i).equal())}
${ae(C(i).mul(-1).equal())}`,[`${t}-tbody > tr:last-child > td`]:{borderBottom:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:m,fontWeight:n,textAlign:"start",background:b,borderBottom:_,transition:`background ${g} ease`}}},[`${t}-footer`]:{padding:`${ae(r)} ${ae(i)}`,color:x,background:S}})}},V0e=e=>{const{colorFillAlter:t,colorBgContainer:n,colorTextHeading:r,colorFillSecondary:i,colorFillContent:o,controlItemBgActive:a,controlItemBgActiveHover:l,padding:c,paddingSM:u,paddingXS:p,colorBorderSecondary:h,borderRadiusLG:m,controlHeight:g,colorTextPlaceholder:b,fontSize:E,fontSizeSM:x,lineHeight:S,lineWidth:C,colorIcon:_,colorIconHover:O,opacityLoading:k,controlInteractiveSize:T}=e,I=new An(i).onBackground(n).toHexString(),$=new An(o).onBackground(n).toHexString(),M=new An(t).onBackground(n).toHexString(),R=new An(_),j=new An(O),D=T/2-C,L=D*2+C*3;return{headerBg:M,headerColor:r,headerSortActiveBg:I,headerSortHoverBg:$,bodySortBg:M,rowHoverBg:M,rowSelectedBg:a,rowSelectedHoverBg:l,rowExpandedBg:t,cellPaddingBlock:c,cellPaddingInline:c,cellPaddingBlockMD:u,cellPaddingInlineMD:p,cellPaddingBlockSM:p,cellPaddingInlineSM:p,borderColor:h,headerBorderRadius:m,footerBg:M,footerColor:r,cellFontSize:E,cellFontSizeMD:E,cellFontSizeSM:E,headerSplitColor:h,fixedHeaderSortActiveBg:I,headerFilterHoverBg:o,filterDropdownMenuBg:n,filterDropdownBg:n,expandIconBg:n,selectionColumnWidth:g,stickyScrollBarBg:b,stickyScrollBarBorderRadius:100,expandIconMarginTop:(E*S-C*3)/2-Math.ceil((x*1.4-C*3)/2),headerIconColor:R.clone().setA(R.a*k).toRgbString(),headerIconHoverColor:j.clone().setA(j.a*k).toRgbString(),expandIconHalfInner:D,expandIconSize:L,expandIconScale:T/L}},Ek=2,G0e=Fn("Table",e=>{const{colorTextHeading:t,colorSplit:n,colorBgContainer:r,controlInteractiveSize:i,headerBg:o,headerColor:a,headerSortActiveBg:l,headerSortHoverBg:c,bodySortBg:u,rowHoverBg:p,rowSelectedBg:h,rowSelectedHoverBg:m,rowExpandedBg:g,cellPaddingBlock:b,cellPaddingInline:E,cellPaddingBlockMD:x,cellPaddingInlineMD:S,cellPaddingBlockSM:C,cellPaddingInlineSM:_,borderColor:O,footerBg:k,footerColor:T,headerBorderRadius:I,cellFontSize:$,cellFontSizeMD:M,cellFontSizeSM:R,headerSplitColor:j,fixedHeaderSortActiveBg:D,headerFilterHoverBg:L,filterDropdownBg:B,expandIconBg:H,selectionColumnWidth:W,stickyScrollBarBg:z,calc:V}=e,X=hn(e,{tableFontSize:$,tableBg:r,tableRadius:I,tablePaddingVertical:b,tablePaddingHorizontal:E,tablePaddingVerticalMiddle:x,tablePaddingHorizontalMiddle:S,tablePaddingVerticalSmall:C,tablePaddingHorizontalSmall:_,tableBorderColor:O,tableHeaderTextColor:a,tableHeaderBg:o,tableFooterTextColor:T,tableFooterBg:k,tableHeaderCellSplitColor:j,tableHeaderSortBg:l,tableHeaderSortHoverBg:c,tableBodySortBg:u,tableFixedHeaderSortActiveBg:D,tableHeaderFilterActiveBg:L,tableFilterDropdownBg:B,tableRowHoverBg:p,tableSelectedRowBg:h,tableSelectedRowHoverBg:m,zIndexTableFixed:Ek,zIndexTableSticky:V(Ek).add(1).equal({unit:!1}),tableFontSizeMiddle:M,tableFontSizeSmall:R,tableSelectionColumnWidth:W,tableExpandIconBg:H,tableExpandColumnWidth:V(i).add(V(e.padding).mul(2)).equal(),tableExpandedRowBg:g,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:z,tableScrollThumbBgHover:t,tableScrollBg:n});return[K0e(X),D0e(X),Sk(X),z0e(X),P0e(X),N0e(X),F0e(X),M0e(X),Sk(X),R0e(X),j0e(X),L0e(X),W0e(X),A0e(X),H0e(X),B0e(X),U0e(X)]},V0e,{unitless:{expandIconScale:!0}}),q0e=[],X0e=(e,t)=>{var n,r;const{prefixCls:i,className:o,rootClassName:a,style:l,size:c,bordered:u,dropdownPrefixCls:p,dataSource:h,pagination:m,rowSelection:g,rowKey:b="key",rowClassName:E,columns:x,children:S,childrenColumnName:C,onChange:_,getPopupContainer:O,loading:k,expandIcon:T,expandable:I,expandedRowRender:$,expandIconColumnIndex:M,indentSize:R,scroll:j,sortDirections:D,locale:L,showSorterTooltip:B={target:"full-header"},virtual:H}=e;Lc();const W=d.useMemo(()=>x||T8(S),[x,S]),z=d.useMemo(()=>W.some(it=>it.responsive),[W]),V=Qb(z),X=d.useMemo(()=>{const it=new Set(Object.keys(V).filter(nt=>V[nt]));return W.filter(nt=>!nt.responsive||nt.responsive.some(ct=>it.has(ct)))},[W,V]),A=ir(e,["className","style","columns"]),{locale:P=Pl,direction:Y,table:U,renderEmpty:Q,getPrefixCls:ee,getPopupContainer:se}=d.useContext(At),ne=go(c),oe=Object.assign(Object.assign({},P.Table),L),pe=h||q0e,be=ee("table",i),ue=ee("dropdown",p),[,de]=Fi(),re=Gr(be),[me,ge,Ae]=G0e(be,re),De=Object.assign(Object.assign({childrenColumnName:C,expandIconColumnIndex:M},I),{expandIcon:(n=I==null?void 0:I.expandIcon)!==null&&n!==void 0?n:(r=U==null?void 0:U.expandable)===null||r===void 0?void 0:r.expandIcon}),{childrenColumnName:ze="children"}=De,et=d.useMemo(()=>pe.some(it=>it==null?void 0:it[ze])?"nest":$||I!=null&&I.expandedRowRender?"row":null,[pe]),Ie={body:d.useRef(null)},Te=Wme(be),Ue=d.useRef(null),Le=d.useRef(null);Hme(t,()=>Object.assign(Object.assign({},Le.current),{nativeElement:Ue.current}));const je=d.useMemo(()=>typeof b=="function"?b:it=>it==null?void 0:it[b],[b]),[Ge]=E0e(pe,ze,je),qe={},Ce=function(it,nt){let ct=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;var mt,St,Zt,Lt;const Pt=Object.assign(Object.assign({},qe),it);ct&&((mt=qe.resetPagination)===null||mt===void 0||mt.call(qe),!((St=Pt.pagination)===null||St===void 0)&&St.current&&(Pt.pagination.current=1),m&&((Zt=m.onChange)===null||Zt===void 0||Zt.call(m,1,(Lt=Pt.pagination)===null||Lt===void 0?void 0:Lt.pageSize))),j&&j.scrollToFirstRowOnChange!==!1&&Ie.body.current&&yee(0,{getContainer:()=>Ie.body.current}),_==null||_(Pt.pagination,Pt.filters,Pt.sorter,{currentDataSource:$E(AE(pe,Pt.sorterStates,ze),Pt.filterStates,ze),action:nt})},ke=(it,nt)=>{Ce({sorter:it,sorterStates:nt},"sort",!1)},[We,Pe,Be,He]=O0e({prefixCls:be,mergedColumns:X,onSorterChange:ke,sortDirections:D||["ascend","descend"],tableLocale:oe,showSorterTooltip:B}),Qe=d.useMemo(()=>AE(pe,Pe,ze),[pe,Pe]);qe.sorter=He(),qe.sorterStates=Pe;const ie=(it,nt)=>{Ce({filters:it,filterStates:nt},"filter",!0)},[xe,Ne,$e]=S0e({prefixCls:be,locale:oe,dropdownPrefixCls:ue,mergedColumns:X,onFilterChange:ie,getPopupContainer:O||se,rootClassName:le(a,re)}),Ye=$E(Qe,Ne,ze);qe.filters=$e,qe.filterStates=Ne;const ht=d.useMemo(()=>{const it={};return Object.keys($e).forEach(nt=>{$e[nt]!==null&&(it[nt]=$e[nt])}),Object.assign(Object.assign({},Be),{filters:it})},[Be,$e]),[It]=I0e(ht),Jt=(it,nt)=>{Ce({pagination:Object.assign(Object.assign({},qe.pagination),{current:it,pageSize:nt})},"paginate")},[Vt,en]=_0e(Ye.length,Jt,m);qe.pagination=m===!1?{}:w0e(Vt,m),qe.resetPagination=en;const rn=d.useMemo(()=>{if(m===!1||!Vt.pageSize)return Ye;const{current:it=1,total:nt,pageSize:ct=Bj}=Vt;return Ye.length<nt?Ye.length>ct?Ye.slice((it-1)*ct,it*ct):Ye:Ye.slice((it-1)*ct,it*ct)},[!!m,Ye,Vt==null?void 0:Vt.current,Vt==null?void 0:Vt.pageSize,Vt==null?void 0:Vt.total]),[Gt,Ft]=Bme({prefixCls:be,data:Ye,pageData:rn,getRowKey:je,getRecordByKey:Ge,expandType:et,childrenColumnName:ze,locale:oe,getPopupContainer:O||se},g),bt=(it,nt,ct)=>{let mt;return typeof E=="function"?mt=le(E(it,nt,ct)):mt=le(E),le({[`${be}-row-selected`]:Ft.has(je(it,nt))},mt)};De.__PARENT_RENDER_ICON__=De.expandIcon,De.expandIcon=De.expandIcon||T||zme(oe),et==="nest"&&De.expandIconColumnIndex===void 0?De.expandIconColumnIndex=g?1:0:De.expandIconColumnIndex>0&&g&&(De.expandIconColumnIndex-=1),typeof De.indentSize!="number"&&(De.indentSize=typeof R=="number"?R:15);const gt=d.useCallback(it=>It(Gt(xe(We(it)))),[We,xe,Gt]);let ft,he;if(m!==!1&&(Vt!=null&&Vt.total)){let it;Vt.size?it=Vt.size:it=ne==="small"||ne==="middle"?"small":void 0;const nt=St=>d.createElement(Qfe,Object.assign({},Vt,{className:le(`${be}-pagination ${be}-pagination-${St}`,Vt.className),size:it})),ct=Y==="rtl"?"left":"right",{position:mt}=Vt;if(mt!==null&&Array.isArray(mt)){const St=mt.find(Pt=>Pt.includes("top")),Zt=mt.find(Pt=>Pt.includes("bottom")),Lt=mt.every(Pt=>`${Pt}`=="none");!St&&!Zt&&!Lt&&(he=nt(ct)),St&&(ft=nt(St.toLowerCase().replace("top",""))),Zt&&(he=nt(Zt.toLowerCase().replace("bottom","")))}else he=nt(ct)}let we;typeof k=="boolean"?we={spinning:k}:typeof k=="object"&&(we=Object.assign({spinning:!0},k));const ve=le(Ae,re,`${be}-wrapper`,U==null?void 0:U.className,{[`${be}-wrapper-rtl`]:Y==="rtl"},o,a,ge),Me=Object.assign(Object.assign({},U==null?void 0:U.style),l),Je=typeof(L==null?void 0:L.emptyText)<"u"?L.emptyText:(Q==null?void 0:Q("Table"))||d.createElement(OF,{componentName:"Table"}),tt=H?$0e:k0e,st={},at=d.useMemo(()=>{const{fontSize:it,lineHeight:nt,lineWidth:ct,padding:mt,paddingXS:St,paddingSM:Zt}=de,Lt=Math.floor(it*nt);switch(ne){case"middle":return Zt*2+Lt+ct;case"small":return St*2+Lt+ct;default:return mt*2+Lt+ct}},[de,ne]);return H&&(st.listItemHeight=at),me(d.createElement("div",{ref:Ue,className:ve,style:Me},d.createElement(Fm,Object.assign({spinning:!1},we),ft,d.createElement(tt,Object.assign({},st,A,{ref:Le,columns:X,direction:Y,expandable:De,prefixCls:be,className:le({[`${be}-middle`]:ne==="middle",[`${be}-small`]:ne==="small",[`${be}-bordered`]:u,[`${be}-empty`]:pe.length===0},Ae,re,ge),data:rn,rowKey:je,rowClassName:bt,emptyText:Je,internalHooks:jm,internalRefs:Ie,transformColumns:gt,getContainerWidth:Te})),he)))},Y0e=d.forwardRef(X0e),Q0e=(e,t)=>{const n=d.useRef(0);return n.current+=1,d.createElement(Y0e,Object.assign({},e,{ref:t,_renderTimes:n.current}))},zl=d.forwardRef(Q0e);zl.SELECTION_COLUMN=Vs;zl.EXPAND_COLUMN=os;zl.SELECTION_ALL=_E;zl.SELECTION_INVERT=TE;zl.SELECTION_NONE=OE;zl.Column=Ime;zl.ColumnGroup=kme;zl.Summary=vj;const Z0e=e=>{const{paddingXXS:t,lineWidth:n,tagPaddingHorizontal:r,componentCls:i,calc:o}=e,a=o(r).sub(n).equal(),l=o(t).sub(n).equal();return{[i]:Object.assign(Object.assign({},zn(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:a,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:l,fontSize:e.tagIconSize,color:e.colorTextDescription,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:a}}),[`${i}-borderless`]:{borderColor:"transparent",background:e.tagBorderlessBg}}},R8=e=>{const{lineWidth:t,fontSizeIcon:n,calc:r}=e,i=e.fontSizeSM;return hn(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})},M8=e=>({defaultBg:new An(e.colorFillQuaternary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText}),zj=Fn("Tag",e=>{const t=R8(e);return Z0e(t)},M8);var J0e=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 ege=d.forwardRef((e,t)=>{const{prefixCls:n,style:r,className:i,checked:o,onChange:a,onClick:l}=e,c=J0e(e,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:u,tag:p}=d.useContext(At),h=S=>{a==null||a(!o),l==null||l(S)},m=u("tag",n),[g,b,E]=zj(m),x=le(m,`${m}-checkable`,{[`${m}-checkable-checked`]:o},p==null?void 0:p.className,i,b,E);return g(d.createElement("span",Object.assign({},c,{ref:t,style:Object.assign(Object.assign({},r),p==null?void 0:p.style),className:x,onClick:h})))}),tge=e=>VL(e,(t,n)=>{let{textColor:r,lightBorderColor:i,lightColor:o,darkColor:a}=n;return{[`${e.componentCls}${e.componentCls}-${t}`]:{color:r,background:o,borderColor:i,"&-inverse":{color:e.colorTextLightSolid,background:a,borderColor:a},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}}),nge=s1(["Tag","preset"],e=>{const t=R8(e);return tge(t)},M8);function rge(e){return typeof e!="string"?e:e.charAt(0).toUpperCase()+e.slice(1)}const og=(e,t,n)=>{const r=rge(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"}}}},ige=s1(["Tag","status"],e=>{const t=R8(e);return[og(t,"success","Success"),og(t,"processing","Info"),og(t,"error","Error"),og(t,"warning","Warning")]},M8);var oge=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 age=d.forwardRef((e,t)=>{const{prefixCls:n,className:r,rootClassName:i,style:o,children:a,icon:l,color:c,onClose:u,bordered:p=!0,visible:h}=e,m=oge(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","bordered","visible"]),{getPrefixCls:g,direction:b,tag:E}=d.useContext(At),[x,S]=d.useState(!0),C=ir(m,["closeIcon","closable"]);d.useEffect(()=>{h!==void 0&&S(h)},[h]);const _=FF(c),O=fle(c),k=_||O,T=Object.assign(Object.assign({backgroundColor:c&&!k?c:void 0},E==null?void 0:E.style),o),I=g("tag",n),[$,M,R]=zj(I),j=le(I,E==null?void 0:E.className,{[`${I}-${c}`]:k,[`${I}-has-color`]:c&&!k,[`${I}-hidden`]:!x,[`${I}-rtl`]:b==="rtl",[`${I}-borderless`]:!p},r,i,M,R),D=V=>{V.stopPropagation(),u==null||u(V),!V.defaultPrevented&&S(!1)},[,L]=GD(uy(e),uy(E),{closable:!1,closeIconRender:V=>{const X=d.createElement("span",{className:`${I}-close-icon`,onClick:D},V);return pD(V,X,A=>({onClick:P=>{var Y;(Y=A==null?void 0:A.onClick)===null||Y===void 0||Y.call(A,P),D(P)},className:le(A==null?void 0:A.className,`${I}-close-icon`)}))}}),B=typeof m.onClick=="function"||a&&a.type==="a",H=l||null,W=H?d.createElement(d.Fragment,null,H,a&&d.createElement("span",null,a)):a,z=d.createElement("span",Object.assign({},C,{ref:t,className:j,style:T}),W,L,_&&d.createElement(nge,{key:"preset",prefixCls:I}),O&&d.createElement(ige,{key:"status",prefixCls:I}));return $(B?d.createElement(Lb,{component:"Tag"},z):z)}),P8=age;P8.CheckableTag=ege;const lge=(e,t,n,r)=>{const{titleMarginBottom:i,fontWeightStrong:o}=r;return{marginBottom:i,color:n,fontWeight:o,fontSize:e,lineHeight:t}},sge=e=>{const t=[1,2,3,4,5],n={};return t.forEach(r=>{n[`
h${r}&,
div&-h${r},
div&-h${r} > textarea,
h${r}
`]=lge(e[`fontSizeHeading${r}`],e[`lineHeightHeading${r}`],e.colorTextHeading,e)}),n},cge=e=>{const{componentCls:t}=e;return{"a&, a":Object.assign(Object.assign({},x3(e)),{userSelect:"text",[`&[disabled], &${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:active, &:hover":{color:e.colorTextDisabled},"&:active":{pointerEvents:"none"}}})}},uge=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:oy[2]},"u, ins":{textDecoration:"underline",textDecorationSkipInk:"auto"},"s, del":{textDecoration:"line-through"},strong:{fontWeight:600},"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}}),dge=e=>{const{componentCls:t,paddingSM:n}=e,r=n;return{"&-edit-content":{position:"relative","div&":{insetInlineStart:e.calc(e.paddingSM).mul(-1).equal(),marginTop:e.calc(r).mul(-1).equal(),marginBottom:`calc(1em - ${ae(r)})`},[`${t}-edit-content-confirm`]:{position:"absolute",insetInlineEnd:e.calc(e.marginXS).add(2).equal(),insetBlockEnd:e.marginXS,color:e.colorTextDescription,fontWeight:"normal",fontSize:e.fontSize,fontStyle:"normal",pointerEvents:"none"},textarea:{margin:"0!important",MozTransition:"none",height:"1em"}}}},fge=e=>({[`${e.componentCls}-copy-success`]:{"\n &,\n &:hover,\n &:focus":{color:e.colorSuccess}},[`${e.componentCls}-copy-icon-only`]:{marginInlineStart:0}}),pge=()=>({"\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"}}),hge=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.colorSuccess},[`&${t}-warning`]:{color:e.colorWarning},[`&${t}-danger`]:{color:e.colorError,"a&:active, a&:focus":{color:e.colorErrorActive},"a&:hover":{color:e.colorErrorHover}},[`&${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed",userSelect:"none"},"\n div&,\n p\n ":{marginBottom:"1em"}},sge(e)),{[`
& + h1${t},
& + h2${t},
& + h3${t},
& + h4${t},
& + h5${t}
`]:{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}}}),uge(e)),cge(e)),{[`
${t}-expand,
${t}-collapse,
${t}-edit,
${t}-copy
`]:Object.assign(Object.assign({},x3(e)),{marginInlineStart:e.marginXXS})}),dge(e)),fge(e)),pge()),{"&-rtl":{direction:"rtl"}})}},mge=()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"}),Wj=Fn("Typography",e=>[hge(e)],mge),gge=e=>{const{prefixCls:t,"aria-label":n,className:r,style:i,direction:o,maxLength:a,autoSize:l=!0,value:c,onSave:u,onCancel:p,onEnd:h,component:m,enterIcon:g=d.createElement(ype,null)}=e,b=d.useRef(null),E=d.useRef(!1),x=d.useRef(null),[S,C]=d.useState(c);d.useEffect(()=>{C(c)},[c]),d.useEffect(()=>{var B;if(!((B=b.current)===null||B===void 0)&&B.resizableTextArea){const{textArea:H}=b.current.resizableTextArea;H.focus();const{length:W}=H.value;H.setSelectionRange(W,W)}},[]);const _=B=>{let{target:H}=B;C(H.value.replace(/[\n\r]/g,""))},O=()=>{E.current=!0},k=()=>{E.current=!1},T=B=>{let{keyCode:H}=B;E.current||(x.current=H)},I=()=>{u(S.trim())},$=B=>{let{keyCode:H,ctrlKey:W,altKey:z,metaKey:V,shiftKey:X}=B;x.current!==H||E.current||W||z||V||X||(H===lt.ENTER?(I(),h==null||h()):H===lt.ESC&&p())},M=()=>{I()},[R,j,D]=Wj(t),L=le(t,`${t}-edit-content`,{[`${t}-rtl`]:o==="rtl",[`${t}-${m}`]:!!m},r,j,D);return R(d.createElement("div",{className:L,style:i},d.createElement(UB,{ref:b,maxLength:a,value:S,onChange:_,onKeyDown:T,onKeyUp:$,onCompositionStart:O,onCompositionEnd:k,onBlur:M,"aria-label":n,rows:1,autoSize:l}),g!==null?vi(g,{className:`${t}-edit-content-confirm`}):null))};var vge=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()}},yge=vge,xk={"text/plain":"Text","text/html":"Url",default:"Text"},bge="Copy to clipboard: #{key}, Enter";function Cge(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}function Sge(e,t){var n,r,i,o,a,l,c=!1;t||(t={}),n=t.debug||!1;try{i=yge(),o=document.createRange(),a=document.getSelection(),l=document.createElement("span"),l.textContent=e,l.ariaHidden="true",l.style.all="unset",l.style.position="fixed",l.style.top=0,l.style.clip="rect(0, 0, 0, 0)",l.style.whiteSpace="pre",l.style.webkitUserSelect="text",l.style.MozUserSelect="text",l.style.msUserSelect="text",l.style.userSelect="text",l.addEventListener("copy",function(p){if(p.stopPropagation(),t.format)if(p.preventDefault(),typeof p.clipboardData>"u"){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var h=xk[t.format]||xk.default;window.clipboardData.setData(h,e)}else p.clipboardData.clearData(),p.clipboardData.setData(t.format,e);t.onCopy&&(p.preventDefault(),t.onCopy(p.clipboardData))}),document.body.appendChild(l),o.selectNodeContents(l),a.addRange(o);var u=document.execCommand("copy");if(!u)throw new Error("copy command was unsuccessful");c=!0}catch(p){n&&console.error("unable to copy using execCommand: ",p),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),c=!0}catch(h){n&&console.error("unable to copy using clipboardData: ",h),n&&console.error("falling back to prompt"),r=Cge("message"in t?t.message:bge),window.prompt(r,e)}}finally{a&&(typeof a.removeRange=="function"?a.removeRange(o):a.removeAllRanges()),l&&document.body.removeChild(l),i()}return c}var Ege=Sge;const xge=dl(Ege);var wge=function(e,t,n,r){function i(o){return o instanceof n?o:new n(function(a){a(o)})}return new(n||(n=Promise))(function(o,a){function l(p){try{u(r.next(p))}catch(h){a(h)}}function c(p){try{u(r.throw(p))}catch(h){a(h)}}function u(p){p.done?o(p.value):i(p.value).then(l,c)}u((r=r.apply(e,t||[])).next())})};const _ge=e=>{let{copyConfig:t,children:n}=e;const[r,i]=d.useState(!1),[o,a]=d.useState(!1),l=d.useRef(null),c=()=>{l.current&&clearTimeout(l.current)},u={};t.format&&(u.format=t.format),d.useEffect(()=>c,[]);const p=Kn(h=>wge(void 0,void 0,void 0,function*(){var m;h==null||h.preventDefault(),h==null||h.stopPropagation(),a(!0);try{const g=typeof t.text=="function"?yield t.text():t.text;xge(g||u1e(n,!0).join("")||"",u),a(!1),i(!0),c(),l.current=setTimeout(()=>{i(!1)},3e3),(m=t.onCopy)===null||m===void 0||m.call(t,h)}catch(g){throw a(!1),g}}));return{copied:r,copyLoading:o,onClick:p}};function i9(e,t){return d.useMemo(()=>{const n=!!e;return[n,Object.assign(Object.assign({},t),n&&typeof e=="object"?e:null)]},[e])}const Tge=e=>{const t=d.useRef(void 0);return d.useEffect(()=>{t.current=e}),t.current},Oge=(e,t,n)=>d.useMemo(()=>e===!0?{title:t??n}:d.isValidElement(e)?{title:e}:typeof e=="object"?Object.assign({title:t??n},e):{title:e},[e,t,n]);var Ige=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 Uj=d.forwardRef((e,t)=>{const{prefixCls:n,component:r="article",className:i,rootClassName:o,setContentRef:a,children:l,direction:c,style:u}=e,p=Ige(e,["prefixCls","component","className","rootClassName","setContentRef","children","direction","style"]),{getPrefixCls:h,direction:m,typography:g}=d.useContext(At),b=c??m,E=a?Zi(t,a):t,x=h("typography",n),[S,C,_]=Wj(x),O=le(x,g==null?void 0:g.className,{[`${x}-rtl`]:b==="rtl"},i,o,C,_),k=Object.assign(Object.assign({},g==null?void 0:g.style),u);return S(d.createElement(r,Object.assign({className:O,style:k,ref:E},p),l))});function wk(e){return e===!1?[!1,!1]:Array.isArray(e)?e:[e]}function o9(e,t,n){return e===!0||e===void 0?t:e||n&&t}function kge(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 L8=e=>["string","number"].includes(typeof e),$ge=e=>{let{prefixCls:t,copied:n,locale:r,iconOnly:i,tooltips:o,icon:a,tabIndex:l,onCopy:c,loading:u}=e;const p=wk(o),h=wk(a),{copied:m,copy:g}=r??{},b=n?m:g,E=o9(p[n?1:0],b),x=typeof E=="string"?E:b;return d.createElement(cl,{title:E},d.createElement("button",{type:"button",className:le(`${t}-copy`,{[`${t}-copy-success`]:n,[`${t}-copy-icon-only`]:i}),onClick:c,"aria-label":x,tabIndex:l},n?o9(h[1],d.createElement(q3,null),!0):o9(h[0],u?d.createElement(Ec,null):d.createElement(spe,null),!0)))},ag=d.forwardRef((e,t)=>{let{style:n,children:r}=e;const i=d.useRef(null);return d.useImperativeHandle(t,()=>({isExceed:()=>{const o=i.current;return o.scrollHeight>o.clientHeight},getHeight:()=>i.current.clientHeight})),d.createElement("span",{"aria-hidden":!0,ref:i,style:Object.assign({position:"fixed",display:"block",left:0,top:0,pointerEvents:"none",backgroundColor:"rgba(255, 0, 0, 0.65)"},n)},r)}),Nge=e=>e.reduce((t,n)=>t+(L8(n)?String(n).length:1),0);function _k(e,t){let n=0;const r=[];for(let i=0;i<e.length;i+=1){if(n===t)return r;const o=e[i],l=L8(o)?String(o).length:1,c=n+l;if(c>t){const u=t-n;return r.push(String(o).slice(0,u)),r}r.push(o),n=c}return e}const a9=0,l9=1,s9=2,c9=3,Tk=4,lg={display:"-webkit-box",overflow:"hidden",WebkitBoxOrient:"vertical"};function Age(e){const{enableMeasure:t,width:n,text:r,children:i,rows:o,expanded:a,miscDeps:l,onEllipsis:c}=e,u=d.useMemo(()=>ii(r),[r]),p=d.useMemo(()=>Nge(u),[r]),h=d.useMemo(()=>i(u,!1),[r]),[m,g]=d.useState(null),b=d.useRef(null),E=d.useRef(null),x=d.useRef(null),S=d.useRef(null),C=d.useRef(null),[_,O]=d.useState(!1),[k,T]=d.useState(a9),[I,$]=d.useState(0),[M,R]=d.useState(null);xn(()=>{T(t&&n&&p?l9:a9)},[n,r,o,t,u]),xn(()=>{var B,H,W,z;if(k===l9){T(s9);const V=E.current&&getComputedStyle(E.current).whiteSpace;R(V)}else if(k===s9){const V=!!(!((B=x.current)===null||B===void 0)&&B.isExceed());T(V?c9:Tk),g(V?[0,p]:null),O(V);const X=((H=x.current)===null||H===void 0?void 0:H.getHeight())||0,A=o===1?0:((W=S.current)===null||W===void 0?void 0:W.getHeight())||0,P=((z=C.current)===null||z===void 0?void 0:z.getHeight())||0,Y=Math.max(X,A+P);$(Y+1),c(V)}},[k]);const j=m?Math.ceil((m[0]+m[1])/2):0;xn(()=>{var B;const[H,W]=m||[0,0];if(H!==W){const V=(((B=b.current)===null||B===void 0?void 0:B.getHeight())||0)>I;let X=j;W-H===1&&(X=V?H:W),g(V?[H,X]:[X,W])}},[m,j]);const D=d.useMemo(()=>{if(!t)return i(u,!1);if(k!==c9||!m||m[0]!==m[1]){const B=i(u,!1);return[Tk,a9].includes(k)?B:d.createElement("span",{style:Object.assign(Object.assign({},lg),{WebkitLineClamp:o})},B)}return i(a?u:_k(u,m[0]),_)},[a,k,m,u].concat(Xe(l))),L={width:n,margin:0,padding:0,whiteSpace:M==="nowrap"?"normal":"inherit"};return d.createElement(d.Fragment,null,D,k===s9&&d.createElement(d.Fragment,null,d.createElement(ag,{style:Object.assign(Object.assign(Object.assign({},L),lg),{WebkitLineClamp:o}),ref:x},h),d.createElement(ag,{style:Object.assign(Object.assign(Object.assign({},L),lg),{WebkitLineClamp:o-1}),ref:S},h),d.createElement(ag,{style:Object.assign(Object.assign(Object.assign({},L),lg),{WebkitLineClamp:1}),ref:C},i([],!0))),k===c9&&m&&m[0]!==m[1]&&d.createElement(ag,{style:Object.assign(Object.assign({},L),{top:400}),ref:b},i(_k(u,j),!0)),k===l9&&d.createElement("span",{style:{whiteSpace:"inherit"},ref:E}))}const Rge=e=>{let{enableEllipsis:t,isEllipsis:n,children:r,tooltipProps:i}=e;return!(i!=null&&i.title)||!t?r:d.createElement(cl,Object.assign({open:n?void 0:!1},i),r)};var Mge=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 Pge(e,t){let{mark:n,code:r,underline:i,delete:o,strong:a,keyboard:l,italic:c}=e,u=t;function p(h,m){m&&(u=d.createElement(h,{},u))}return p("strong",a),p("u",i),p("del",o),p("code",r),p("mark",n),p("kbd",l),p("i",c),u}const Lge="...",p2=d.forwardRef((e,t)=>{var n;const{prefixCls:r,className:i,style:o,type:a,disabled:l,children:c,ellipsis:u,editable:p,copyable:h,component:m,title:g}=e,b=Mge(e,["prefixCls","className","style","type","disabled","children","ellipsis","editable","copyable","component","title"]),{getPrefixCls:E,direction:x}=d.useContext(At),[S]=jl("Text"),C=d.useRef(null),_=d.useRef(null),O=E("typography",r),k=ir(b,["mark","code","delete","underline","strong","keyboard","italic"]),[T,I]=i9(p),[$,M]=_r(!1,{value:I.editing}),{triggerType:R=["icon"]}=I,j=Ne=>{var $e;Ne&&(($e=I.onStart)===null||$e===void 0||$e.call(I)),M(Ne)},D=Tge($);xn(()=>{var Ne;!$&&D&&((Ne=_.current)===null||Ne===void 0||Ne.focus())},[$]);const L=Ne=>{Ne==null||Ne.preventDefault(),j(!0)},B=Ne=>{var $e;($e=I.onChange)===null||$e===void 0||$e.call(I,Ne),j(!1)},H=()=>{var Ne;(Ne=I.onCancel)===null||Ne===void 0||Ne.call(I),j(!1)},[W,z]=i9(h),{copied:V,copyLoading:X,onClick:A}=_ge({copyConfig:z,children:c}),[P,Y]=d.useState(!1),[U,Q]=d.useState(!1),[ee,se]=d.useState(!1),[ne,oe]=d.useState(!1),[pe,be]=d.useState(!0),[ue,de]=i9(u,{expandable:!1,symbol:Ne=>Ne?S==null?void 0:S.collapse:S==null?void 0:S.expand}),[re,me]=_r(de.defaultExpanded||!1,{value:de.expanded}),ge=ue&&(!re||de.expandable==="collapsible"),{rows:Ae=1}=de,De=d.useMemo(()=>ge&&(de.suffix!==void 0||de.onEllipsis||de.expandable||T||W),[ge,de,T,W]);xn(()=>{ue&&!De&&(Y(lE("webkitLineClamp")),Q(lE("textOverflow")))},[De,ue]);const[ze,et]=d.useState(ge),Ie=d.useMemo(()=>De?!1:Ae===1?U:P,[De,U,P]);xn(()=>{et(Ie&&ge)},[Ie,ge]);const Te=ge&&(ze?ne:ee),Ue=ge&&Ae===1&&ze,Le=ge&&Ae>1&&ze,je=(Ne,$e)=>{var Ye;me($e.expanded),(Ye=de.onExpand)===null||Ye===void 0||Ye.call(de,Ne,$e)},[Ge,qe]=d.useState(0),Ce=Ne=>{let{offsetWidth:$e}=Ne;qe($e)},ke=Ne=>{var $e;se(Ne),ee!==Ne&&(($e=de.onEllipsis)===null||$e===void 0||$e.call(de,Ne))};d.useEffect(()=>{const Ne=C.current;if(ue&&ze&&Ne){const $e=kge(Ne);ne!==$e&&oe($e)}},[ue,ze,c,Le,pe,Ge]),d.useEffect(()=>{const Ne=C.current;if(typeof IntersectionObserver>"u"||!Ne||!ze||!ge)return;const $e=new IntersectionObserver(()=>{be(!!Ne.offsetParent)});return $e.observe(Ne),()=>{$e.disconnect()}},[ze,ge]);const We=Oge(de.tooltip,I.text,c),Pe=d.useMemo(()=>{if(!(!ue||ze))return[I.text,c,g,We.title].find(L8)},[ue,ze,g,We.title,Te]);if($)return d.createElement(gge,{value:(n=I.text)!==null&&n!==void 0?n:typeof c=="string"?c:"",onSave:B,onCancel:H,onEnd:I.onEnd,prefixCls:O,className:i,style:o,direction:x,component:m,maxLength:I.maxLength,autoSize:I.autoSize,enterIcon:I.enterIcon});const Be=()=>{const{expandable:Ne,symbol:$e}=de;return Ne?d.createElement("button",{type:"button",key:"expand",className:`${O}-${re?"collapse":"expand"}`,onClick:Ye=>je(Ye,{expanded:!re}),"aria-label":re?S.collapse:S==null?void 0:S.expand},typeof $e=="function"?$e(re):$e):null},He=()=>{if(!T)return;const{icon:Ne,tooltip:$e,tabIndex:Ye}=I,ht=ii($e)[0]||(S==null?void 0:S.edit),It=typeof ht=="string"?ht:"";return R.includes("icon")?d.createElement(cl,{key:"edit",title:$e===!1?"":ht},d.createElement("button",{type:"button",ref:_,className:`${O}-edit`,onClick:L,"aria-label":It,tabIndex:Ye},Ne||d.createElement(mpe,{role:"button"}))):null},Qe=()=>W?d.createElement($ge,Object.assign({key:"copy"},z,{prefixCls:O,copied:V,locale:S,onCopy:A,loading:X,iconOnly:c==null})):null,ie=Ne=>[Ne&&Be(),He(),Qe()],xe=Ne=>[Ne&&!re&&d.createElement("span",{"aria-hidden":!0,key:"ellipsis"},Lge),de.suffix,ie(Ne)];return d.createElement(qi,{onResize:Ce,disabled:!ge},Ne=>d.createElement(Rge,{tooltipProps:We,enableEllipsis:ge,isEllipsis:Te},d.createElement(Uj,Object.assign({className:le({[`${O}-${a}`]:a,[`${O}-disabled`]:l,[`${O}-ellipsis`]:ue,[`${O}-ellipsis-single-line`]:Ue,[`${O}-ellipsis-multiple-line`]:Le},i),prefixCls:r,style:Object.assign(Object.assign({},o),{WebkitLineClamp:Le?Ae:void 0}),component:m,ref:Zi(Ne,C,t),direction:x,onClick:R.includes("text")?L:void 0,"aria-label":Pe==null?void 0:Pe.toString(),title:g},k),d.createElement(Age,{enableMeasure:ge&&!ze,text:c,rows:Ae,width:Ge,onEllipsis:ke,expanded:re,miscDeps:[V,re,X,T,W,S]},($e,Ye)=>Pge(e,d.createElement(d.Fragment,null,$e.length>0&&Ye&&!re&&Pe?d.createElement("span",{key:"show-content","aria-hidden":!0},$e):$e,xe(Ye)))))))});var Dge=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 Fge=d.forwardRef((e,t)=>{var{ellipsis:n,rel:r}=e,i=Dge(e,["ellipsis","rel"]);const o=Object.assign(Object.assign({},i),{rel:r===void 0&&i.target==="_blank"?"noopener noreferrer":r});return delete o.navigate,d.createElement(p2,Object.assign({},o,{ref:t,ellipsis:!!n,component:"a"}))}),Bge=d.forwardRef((e,t)=>d.createElement(p2,Object.assign({ref:t},e,{component:"div"})));var jge=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 Hge=(e,t)=>{var{ellipsis:n}=e,r=jge(e,["ellipsis"]);const i=d.useMemo(()=>n&&typeof n=="object"?ir(n,["expandable","rows"]):n,[n]);return d.createElement(p2,Object.assign({ref:t},r,{ellipsis:i,component:"span"}))},zge=d.forwardRef(Hge);var Wge=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 Uge=[1,2,3,4,5],Kge=d.forwardRef((e,t)=>{const{level:n=1}=e,r=Wge(e,["level"]),i=Uge.includes(n)?`h${n}`:"h1";return d.createElement(p2,Object.assign({ref:t},r,{component:i}))}),Hm=Uj;Hm.Text=zge;Hm.Link=Fge;Hm.Title=Kge;Hm.Paragraph=Bge;const u9=function(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(","),r=e.name||"",i=e.type||"",o=i.replace(/\/.*$/,"");return n.some(function(a){var l=a.trim();if(/^\*(\/\*)?$/.test(a))return!0;if(l.charAt(0)==="."){var c=r.toLowerCase(),u=l.toLowerCase(),p=[u];return(u===".jpg"||u===".jpeg")&&(p=[".jpg",".jpeg"]),p.some(function(h){return c.endsWith(h)})}return/\/\*$/.test(l)?o===l.replace(/\/.*$/,""):i===l?!0:/^\w+$/.test(l)?(br(!1,"Upload takes an invalidate 'accept' type '".concat(l,"'.Skip for check.")),!0):!1})}return!0};function Vge(e,t){var n="cannot ".concat(e.method," ").concat(e.action," ").concat(t.status,"'"),r=new Error(n);return r.status=t.status,r.method=e.method,r.url=e.action,r}function Ok(e){var t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch{return t}}function Gge(e){var t=new XMLHttpRequest;e.onProgress&&t.upload&&(t.upload.onprogress=function(o){o.total>0&&(o.percent=o.loaded/o.total*100),e.onProgress(o)});var n=new FormData;e.data&&Object.keys(e.data).forEach(function(i){var o=e.data[i];if(Array.isArray(o)){o.forEach(function(a){n.append("".concat(i,"[]"),a)});return}n.append(i,o)}),e.file instanceof Blob?n.append(e.filename,e.file,e.file.name):n.append(e.filename,e.file),t.onerror=function(o){e.onError(o)},t.onload=function(){return t.status<200||t.status>=300?e.onError(Vge(e,t),Ok(t)):e.onSuccess(Ok(t),t)},t.open(e.method,e.action,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);var r=e.headers||{};return r["X-Requested-With"]!==null&&t.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(r).forEach(function(i){r[i]!==null&&t.setRequestHeader(i,r[i])}),t.send(n),{abort:function(){t.abort()}}}var qge=function(){var e=Yo(lr().mark(function t(n,r){var i,o,a,l,c,u,p,h;return lr().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:u=function(){return u=Yo(lr().mark(function E(x){return lr().wrap(function(C){for(;;)switch(C.prev=C.next){case 0:return C.abrupt("return",new Promise(function(_){x.file(function(O){r(O)?(x.fullPath&&!O.webkitRelativePath&&(Object.defineProperties(O,{webkitRelativePath:{writable:!0}}),O.webkitRelativePath=x.fullPath.replace(/^\//,""),Object.defineProperties(O,{webkitRelativePath:{writable:!1}})),_(O)):_(null)})}));case 1:case"end":return C.stop()}},E)})),u.apply(this,arguments)},c=function(E){return u.apply(this,arguments)},l=function(){return l=Yo(lr().mark(function E(x){var S,C,_,O,k;return lr().wrap(function(I){for(;;)switch(I.prev=I.next){case 0:S=x.createReader(),C=[];case 2:return I.next=5,new Promise(function($){S.readEntries($,function(){return $([])})});case 5:if(_=I.sent,O=_.length,O){I.next=9;break}return I.abrupt("break",12);case 9:for(k=0;k<O;k++)C.push(_[k]);I.next=2;break;case 12:return I.abrupt("return",C);case 13:case"end":return I.stop()}},E)})),l.apply(this,arguments)},a=function(E){return l.apply(this,arguments)},i=[],o=[],n.forEach(function(b){return o.push(b.webkitGetAsEntry())}),p=function(){var b=Yo(lr().mark(function E(x,S){var C,_;return lr().wrap(function(k){for(;;)switch(k.prev=k.next){case 0:if(x){k.next=2;break}return k.abrupt("return");case 2:if(x.path=S||"",!x.isFile){k.next=10;break}return k.next=6,c(x);case 6:C=k.sent,C&&i.push(C),k.next=15;break;case 10:if(!x.isDirectory){k.next=15;break}return k.next=13,a(x);case 13:_=k.sent,o.push.apply(o,Xe(_));case 15:case"end":return k.stop()}},E)}));return function(x,S){return b.apply(this,arguments)}}(),h=0;case 9:if(!(h<o.length)){g.next=15;break}return g.next=12,p(o[h]);case 12:h++,g.next=9;break;case 15:return g.abrupt("return",i);case 16:case"end":return g.stop()}},t)}));return function(n,r){return e.apply(this,arguments)}}(),Xge=+new Date,Yge=0;function d9(){return"rc-upload-".concat(Xge,"-").concat(++Yge)}var Qge=["component","prefixCls","className","classNames","disabled","id","name","style","styles","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave","hasControlInside"],Zge=function(e){Ra(n,e);var t=Ma(n);function n(){var r;Rr(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),J(_t(r),"state",{uid:d9()}),J(_t(r),"reqs",{}),J(_t(r),"fileInput",void 0),J(_t(r),"_isMounted",void 0),J(_t(r),"onChange",function(l){var c=r.props,u=c.accept,p=c.directory,h=l.target.files,m=Xe(h).filter(function(g){return!p||u9(g,u)});r.uploadFiles(m),r.reset()}),J(_t(r),"onClick",function(l){var c=r.fileInput;if(c){var u=l.target,p=r.props.onClick;if(u&&u.tagName==="BUTTON"){var h=c.parentNode;h.focus(),u.blur()}c.click(),p&&p(l)}}),J(_t(r),"onKeyDown",function(l){l.key==="Enter"&&r.onClick(l)}),J(_t(r),"onFileDrop",function(){var l=Yo(lr().mark(function c(u){var p,h,m;return lr().wrap(function(b){for(;;)switch(b.prev=b.next){case 0:if(p=r.props.multiple,u.preventDefault(),u.type!=="dragover"){b.next=4;break}return b.abrupt("return");case 4:if(!r.props.directory){b.next=11;break}return b.next=7,qge(Array.prototype.slice.call(u.dataTransfer.items),function(E){return u9(E,r.props.accept)});case 7:h=b.sent,r.uploadFiles(h),b.next=14;break;case 11:m=Xe(u.dataTransfer.files).filter(function(E){return u9(E,r.props.accept)}),p===!1&&(m=m.slice(0,1)),r.uploadFiles(m);case 14:case"end":return b.stop()}},c)}));return function(c){return l.apply(this,arguments)}}()),J(_t(r),"uploadFiles",function(l){var c=Xe(l),u=c.map(function(p){return p.uid=d9(),r.processFile(p,c)});Promise.all(u).then(function(p){var h=r.props.onBatchStart;h==null||h(p.map(function(m){var g=m.origin,b=m.parsedFile;return{file:g,parsedFile:b}})),p.filter(function(m){return m.parsedFile!==null}).forEach(function(m){r.post(m)})})}),J(_t(r),"processFile",function(){var l=Yo(lr().mark(function c(u,p){var h,m,g,b,E,x,S,C,_;return lr().wrap(function(k){for(;;)switch(k.prev=k.next){case 0:if(h=r.props.beforeUpload,m=u,!h){k.next=14;break}return k.prev=3,k.next=6,h(u,p);case 6:m=k.sent,k.next=12;break;case 9:k.prev=9,k.t0=k.catch(3),m=!1;case 12:if(m!==!1){k.next=14;break}return k.abrupt("return",{origin:u,parsedFile:null,action:null,data:null});case 14:if(g=r.props.action,typeof g!="function"){k.next=21;break}return k.next=18,g(u);case 18:b=k.sent,k.next=22;break;case 21:b=g;case 22:if(E=r.props.data,typeof E!="function"){k.next=29;break}return k.next=26,E(u);case 26:x=k.sent,k.next=30;break;case 29:x=E;case 30:return S=(Nt(m)==="object"||typeof m=="string")&&m?m:u,S instanceof File?C=S:C=new File([S],u.name,{type:u.type}),_=C,_.uid=u.uid,k.abrupt("return",{origin:u,data:x,parsedFile:_,action:b});case 35:case"end":return k.stop()}},c,null,[[3,9]])}));return function(c,u){return l.apply(this,arguments)}}()),J(_t(r),"saveFileInput",function(l){r.fileInput=l}),r}return Mr(n,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"post",value:function(i){var o=this,a=i.data,l=i.origin,c=i.action,u=i.parsedFile;if(this._isMounted){var p=this.props,h=p.onStart,m=p.customRequest,g=p.name,b=p.headers,E=p.withCredentials,x=p.method,S=l.uid,C=m||Gge,_={action:c,filename:g,data:a,file:u,headers:b,withCredentials:E,method:x||"post",onProgress:function(k){var T=o.props.onProgress;T==null||T(k,u)},onSuccess:function(k,T){var I=o.props.onSuccess;I==null||I(k,u,T),delete o.reqs[S]},onError:function(k,T){var I=o.props.onError;I==null||I(k,T,u),delete o.reqs[S]}};h(l),this.reqs[S]=C(_)}}},{key:"reset",value:function(){this.setState({uid:d9()})}},{key:"abort",value:function(i){var o=this.reqs;if(i){var a=i.uid?i.uid:i;o[a]&&o[a].abort&&o[a].abort(),delete o[a]}else Object.keys(o).forEach(function(l){o[l]&&o[l].abort&&o[l].abort(),delete o[l]})}},{key:"render",value:function(){var i=this.props,o=i.component,a=i.prefixCls,l=i.className,c=i.classNames,u=c===void 0?{}:c,p=i.disabled,h=i.id,m=i.name,g=i.style,b=i.styles,E=b===void 0?{}:b,x=i.multiple,S=i.accept,C=i.capture,_=i.children,O=i.directory,k=i.openFileDialogOnClick,T=i.onMouseEnter,I=i.onMouseLeave,$=i.hasControlInside,M=Yt(i,Qge),R=le(J(J(J({},a,!0),"".concat(a,"-disabled"),p),l,l)),j=O?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},D=p?{}:{onClick:k?this.onClick:function(){},onKeyDown:k?this.onKeyDown:function(){},onMouseEnter:T,onMouseLeave:I,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:$?void 0:"0"};return fe.createElement(o,Ve({},D,{className:R,role:$?void 0:"button",style:g}),fe.createElement("input",Ve({},Oi(M,{aria:!0,data:!0}),{id:h,name:m,disabled:p,type:"file",ref:this.saveFileInput,onClick:function(B){return B.stopPropagation()},key:this.state.uid,style:te({display:"none"},E.input),className:u.input,accept:S},j,{multiple:x,onChange:this.onChange},C!=null?{capture:C}:{})),_)}}]),n}(d.Component);function f9(){}var RE=function(e){Ra(n,e);var t=Ma(n);function n(){var r;Rr(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),J(_t(r),"uploader",void 0),J(_t(r),"saveUploader",function(l){r.uploader=l}),r}return Mr(n,[{key:"abort",value:function(i){this.uploader.abort(i)}},{key:"render",value:function(){return fe.createElement(Zge,Ve({},this.props,{ref:this.saveUploader}))}}]),n}(d.Component);J(RE,"defaultProps",{component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:f9,onError:f9,onSuccess:f9,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0,hasControlInside:!1});const Jge=e=>{const{componentCls:t,iconCls:n}=e;return{[`${t}-wrapper`]:{[`${t}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:e.colorFillAlter,border:`${ae(e.lineWidth)} dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[t]:{padding:e.padding},[`${t}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none",borderRadius:e.borderRadiusLG,"&:focus-visible":{outline:`${ae(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`}},[`${t}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`
&:not(${t}-disabled):hover,
&-hover:not(${t}-disabled)
`]:{borderColor:e.colorPrimaryHover},[`p${t}-drag-icon`]:{marginBottom:e.margin,[n]:{color:e.colorPrimary,fontSize:e.uploadThumbnailSize}},[`p${t}-text`]:{margin:`0 0 ${ae(e.marginXXS)}`,color:e.colorTextHeading,fontSize:e.fontSizeLG},[`p${t}-hint`]:{color:e.colorTextDescription,fontSize:e.fontSize},[`&${t}-disabled`]:{[`p${t}-drag-icon ${n},
p${t}-text,
p${t}-hint
`]:{color:e.colorTextDisabled}}}}}},eve=e=>{const{componentCls:t,iconCls:n,fontSize:r,lineHeight:i,calc:o}=e,a=`${t}-list-item`,l=`${a}-actions`,c=`${a}-action`;return{[`${t}-wrapper`]:{[`${t}-list`]:Object.assign(Object.assign({},sl()),{lineHeight:e.lineHeight,[a]:{position:"relative",height:o(e.lineHeight).mul(r).equal(),marginTop:e.marginXS,fontSize:r,display:"flex",alignItems:"center",transition:`background-color ${e.motionDurationSlow}`,borderRadius:e.borderRadiusSM,"&:hover":{backgroundColor:e.controlItemBgHover},[`${a}-name`]:Object.assign(Object.assign({},ll),{padding:`0 ${ae(e.paddingXS)}`,lineHeight:i,flex:"auto",transition:`all ${e.motionDurationSlow}`}),[l]:{whiteSpace:"nowrap",[c]:{opacity:0},[n]:{color:e.actionsColor,transition:`all ${e.motionDurationSlow}`},[`
${c}:focus-visible,
&.picture ${c}
`]:{opacity:1}},[`${t}-icon ${n}`]:{color:e.colorTextDescription,fontSize:r},[`${a}-progress`]:{position:"absolute",bottom:e.calc(e.uploadProgressOffset).mul(-1).equal(),width:"100%",paddingInlineStart:o(r).add(e.paddingXS).equal(),fontSize:r,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${a}:hover ${c}`]:{opacity:1},[`${a}-error`]:{color:e.colorError,[`${a}-name, ${t}-icon ${n}`]:{color:e.colorError},[l]:{[`${n}, ${n}:hover`]:{color:e.colorError},[c]:{opacity:1}}},[`${t}-list-item-container`]:{transition:`opacity ${e.motionDurationSlow}, height ${e.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},tve=e=>{const{componentCls:t}=e,n=new wn("uploadAnimateInlineIn",{from:{width:0,height:0,padding:0,opacity:0,margin:e.calc(e.marginXS).div(-2).equal()}}),r=new wn("uploadAnimateInlineOut",{to:{width:0,height:0,padding:0,opacity:0,margin:e.calc(e.marginXS).div(-2).equal()}}),i=`${t}-animate-inline`;return[{[`${t}-wrapper`]:{[`${i}-appear, ${i}-enter, ${i}-leave`]:{animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseInOutCirc,animationFillMode:"forwards"},[`${i}-appear, ${i}-enter`]:{animationName:n},[`${i}-leave`]:{animationName:r}}},{[`${t}-wrapper`]:_D(e)},n,r]},nve=e=>{const{componentCls:t,iconCls:n,uploadThumbnailSize:r,uploadProgressOffset:i,calc:o}=e,a=`${t}-list`,l=`${a}-item`;return{[`${t}-wrapper`]:{[`
${a}${a}-picture,
${a}${a}-picture-card,
${a}${a}-picture-circle
`]:{[l]:{position:"relative",height:o(r).add(o(e.lineWidth).mul(2)).add(o(e.paddingXS).mul(2)).equal(),padding:e.paddingXS,border:`${ae(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusLG,"&:hover":{background:"transparent"},[`${l}-thumbnail`]:Object.assign(Object.assign({},ll),{width:r,height:r,lineHeight:ae(o(r).add(e.paddingSM).equal()),textAlign:"center",flex:"none",[n]:{fontSize:e.fontSizeHeading2,color:e.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${l}-progress`]:{bottom:i,width:`calc(100% - ${ae(o(e.paddingSM).mul(2).equal())})`,marginTop:0,paddingInlineStart:o(r).add(e.paddingXS).equal()}},[`${l}-error`]:{borderColor:e.colorError,[`${l}-thumbnail ${n}`]:{[`svg path[fill='${zf[0]}']`]:{fill:e.colorErrorBg},[`svg path[fill='${zf.primary}']`]:{fill:e.colorError}}},[`${l}-uploading`]:{borderStyle:"dashed",[`${l}-name`]:{marginBottom:i}}},[`${a}${a}-picture-circle ${l}`]:{[`&, &::before, ${l}-thumbnail`]:{borderRadius:"50%"}}}}},rve=e=>{const{componentCls:t,iconCls:n,fontSizeLG:r,colorTextLightSolid:i,calc:o}=e,a=`${t}-list`,l=`${a}-item`,c=e.uploadPicCardSize;return{[`
${t}-wrapper${t}-picture-card-wrapper,
${t}-wrapper${t}-picture-circle-wrapper
`]:Object.assign(Object.assign({},sl()),{display:"block",[`${t}${t}-select`]:{width:c,height:c,textAlign:"center",verticalAlign:"top",backgroundColor:e.colorFillAlter,border:`${ae(e.lineWidth)} dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[`> ${t}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${t}-disabled):hover`]:{borderColor:e.colorPrimary}},[`${a}${a}-picture-card, ${a}${a}-picture-circle`]:{display:"flex",flexWrap:"wrap","@supports not (gap: 1px)":{"& > *":{marginBlockEnd:e.marginXS,marginInlineEnd:e.marginXS}},"@supports (gap: 1px)":{gap:e.marginXS},[`${a}-item-container`]:{display:"inline-block",width:c,height:c,verticalAlign:"top"},"&::after":{display:"none"},"&::before":{display:"none"},[l]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${ae(o(e.paddingXS).mul(2).equal())})`,height:`calc(100% - ${ae(o(e.paddingXS).mul(2).equal())})`,backgroundColor:e.colorBgMask,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'" "'}},[`${l}:hover`]:{[`&::before, ${l}-actions`]:{opacity:1}},[`${l}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${e.motionDurationSlow}`,[`
${n}-eye,
${n}-download,
${n}-delete
`]:{zIndex:10,width:r,margin:`0 ${ae(e.marginXXS)}`,fontSize:r,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,color:i,"&:hover":{color:i},svg:{verticalAlign:"baseline"}}},[`${l}-thumbnail, ${l}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${l}-name`]:{display:"none",textAlign:"center"},[`${l}-file + ${l}-name`]:{position:"absolute",bottom:e.margin,display:"block",width:`calc(100% - ${ae(o(e.paddingXS).mul(2).equal())})`},[`${l}-uploading`]:{[`&${l}`]:{backgroundColor:e.colorFillAlter},[`&::before, ${n}-eye, ${n}-download, ${n}-delete`]:{display:"none"}},[`${l}-progress`]:{bottom:e.marginXL,width:`calc(100% - ${ae(o(e.paddingXS).mul(2).equal())})`,paddingInlineStart:0}}}),[`${t}-wrapper${t}-picture-circle-wrapper`]:{[`${t}${t}-select`]:{borderRadius:"50%"}}}},ive=e=>{const{componentCls:t}=e;return{[`${t}-rtl`]:{direction:"rtl"}}},ove=e=>{const{componentCls:t,colorTextDisabled:n}=e;return{[`${t}-wrapper`]:Object.assign(Object.assign({},zn(e)),{[t]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${t}-select`]:{display:"inline-block"},[`${t}-hidden`]:{display:"none"},[`${t}-disabled`]:{color:n,cursor:"not-allowed"}})}},ave=e=>({actionsColor:e.colorTextDescription}),lve=Fn("Upload",e=>{const{fontSizeHeading3:t,fontHeight:n,lineWidth:r,controlHeightLG:i,calc:o}=e,a=hn(e,{uploadThumbnailSize:o(t).mul(2).equal(),uploadProgressOffset:o(o(n).div(2)).add(r).equal(),uploadPicCardSize:o(i).mul(2.55).equal()});return[ove(a),Jge(a),nve(a),rve(a),eve(a),tve(a),ive(a),Fb(a)]},ave);function sg(e){return Object.assign(Object.assign({},e),{lastModified:e.lastModified,lastModifiedDate:e.lastModifiedDate,name:e.name,size:e.size,type:e.type,uid:e.uid,percent:0,originFileObj:e})}function cg(e,t){const n=Xe(t),r=n.findIndex(i=>{let{uid:o}=i;return o===e.uid});return r===-1?n.push(e):n[r]=e,n}function p9(e,t){const n=e.uid!==void 0?"uid":"name";return t.filter(r=>r[n]===e[n])[0]}function sve(e,t){const n=e.uid!==void 0?"uid":"name",r=t.filter(i=>i[n]!==e[n]);return r.length===t.length?null:r}const cve=function(){const t=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),r=t[t.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(r)||[""])[0]},Kj=e=>e.indexOf("image/")===0,uve=e=>{if(e.type&&!e.thumbUrl)return Kj(e.type);const t=e.thumbUrl||e.url||"",n=cve(t);return/^data:image\//.test(t)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(n)?!0:!(/^data:/.test(t)||n)},Ls=200;function dve(e){return new Promise(t=>{if(!e.type||!Kj(e.type)){t("");return}const n=document.createElement("canvas");n.width=Ls,n.height=Ls,n.style.cssText=`position: fixed; left: 0; top: 0; width: ${Ls}px; height: ${Ls}px; z-index: 9999; display: none;`,document.body.appendChild(n);const r=n.getContext("2d"),i=new Image;if(i.onload=()=>{const{width:o,height:a}=i;let l=Ls,c=Ls,u=0,p=0;o>a?(c=a*(Ls/o),p=-(c-l)/2):(l=o*(Ls/a),u=-(l-c)/2),r.drawImage(i,u,p,l,c);const h=n.toDataURL();document.body.removeChild(n),window.URL.revokeObjectURL(i.src),t(h)},i.crossOrigin="anonymous",e.type.startsWith("image/svg+xml")){const o=new FileReader;o.onload=()=>{o.result&&typeof o.result=="string"&&(i.src=o.result)},o.readAsDataURL(e)}else if(e.type.startsWith("image/gif")){const o=new FileReader;o.onload=()=>{o.result&&t(o.result)},o.readAsDataURL(e)}else i.src=window.URL.createObjectURL(e)})}const fve=d.forwardRef((e,t)=>{let{prefixCls:n,className:r,style:i,locale:o,listType:a,file:l,items:c,progress:u,iconRender:p,actionIconRender:h,itemRender:m,isImgUrl:g,showPreviewIcon:b,showRemoveIcon:E,showDownloadIcon:x,previewIcon:S,removeIcon:C,downloadIcon:_,extra:O,onPreview:k,onDownload:T,onClose:I}=e;var $,M;const{status:R}=l,[j,D]=d.useState(R);d.useEffect(()=>{R!=="removed"&&D(R)},[R]);const[L,B]=d.useState(!1);d.useEffect(()=>{const re=setTimeout(()=>{B(!0)},300);return()=>{clearTimeout(re)}},[]);const H=p(l);let W=d.createElement("div",{className:`${n}-icon`},H);if(a==="picture"||a==="picture-card"||a==="picture-circle")if(j==="uploading"||!l.thumbUrl&&!l.url){const re=le(`${n}-list-item-thumbnail`,{[`${n}-list-item-file`]:j!=="uploading"});W=d.createElement("div",{className:re},H)}else{const re=g!=null&&g(l)?d.createElement("img",{src:l.thumbUrl||l.url,alt:l.name,className:`${n}-list-item-image`,crossOrigin:l.crossOrigin}):H,me=le(`${n}-list-item-thumbnail`,{[`${n}-list-item-file`]:g&&!g(l)});W=d.createElement("a",{className:me,onClick:ge=>k(l,ge),href:l.url||l.thumbUrl,target:"_blank",rel:"noopener noreferrer"},re)}const z=le(`${n}-list-item`,`${n}-list-item-${j}`),V=typeof l.linkProps=="string"?JSON.parse(l.linkProps):l.linkProps,X=(typeof E=="function"?E(l):E)?h((typeof C=="function"?C(l):C)||d.createElement(upe,null),()=>I(l),n,o.removeFile,!0):null,A=(typeof x=="function"?x(l):x)&&j==="done"?h((typeof _=="function"?_(l):_)||d.createElement(ppe,null),()=>T(l),n,o.downloadFile):null,P=a!=="picture-card"&&a!=="picture-circle"&&d.createElement("span",{key:"download-delete",className:le(`${n}-list-item-actions`,{picture:a==="picture"})},A,X),Y=typeof O=="function"?O(l):O,U=Y&&d.createElement("span",{className:`${n}-list-item-extra`},Y),Q=le(`${n}-list-item-name`),ee=l.url?d.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:Q,title:l.name},V,{href:l.url,onClick:re=>k(l,re)}),l.name,U):d.createElement("span",{key:"view",className:Q,onClick:re=>k(l,re),title:l.name},l.name,U),se=(typeof b=="function"?b(l):b)&&(l.url||l.thumbUrl)?d.createElement("a",{href:l.url||l.thumbUrl,target:"_blank",rel:"noopener noreferrer",onClick:re=>k(l,re),title:o.previewFile},typeof S=="function"?S(l):S||d.createElement(WB,null)):null,ne=(a==="picture-card"||a==="picture-circle")&&j!=="uploading"&&d.createElement("span",{className:`${n}-list-item-actions`},se,j==="done"&&A,X),{getPrefixCls:oe}=d.useContext(At),pe=oe(),be=d.createElement("div",{className:z},W,ee,P,ne,L&&d.createElement(la,{motionName:`${pe}-fade`,visible:j==="uploading",motionDeadline:2e3},re=>{let{className:me}=re;const ge="percent"in l?d.createElement(q1e,Object.assign({},u,{type:"line",percent:l.percent,"aria-label":l["aria-label"],"aria-labelledby":l["aria-labelledby"]})):null;return d.createElement("div",{className:le(`${n}-list-item-progress`,me)},ge)})),ue=l.response&&typeof l.response=="string"?l.response:(($=l.error)===null||$===void 0?void 0:$.statusText)||((M=l.error)===null||M===void 0?void 0:M.message)||o.uploadError,de=j==="error"?d.createElement(cl,{title:ue,getPopupContainer:re=>re.parentNode},be):be;return d.createElement("div",{className:le(`${n}-list-item-container`,r),style:i,ref:t},m?m(de,l,c,{download:T.bind(null,l),preview:k.bind(null,l),remove:I.bind(null,l)}):de)}),pve=(e,t)=>{const{listType:n="text",previewFile:r=dve,onPreview:i,onDownload:o,onRemove:a,locale:l,iconRender:c,isImageUrl:u=uve,prefixCls:p,items:h=[],showPreviewIcon:m=!0,showRemoveIcon:g=!0,showDownloadIcon:b=!1,removeIcon:E,previewIcon:x,downloadIcon:S,extra:C,progress:_={size:[-1,2],showInfo:!1},appendAction:O,appendActionVisible:k=!0,itemRender:T,disabled:I}=e,$=Q3(),[M,R]=d.useState(!1),j=["picture-card","picture-circle"].includes(n);d.useEffect(()=>{n.startsWith("picture")&&(h||[]).forEach(U=>{!(U.originFileObj instanceof File||U.originFileObj instanceof Blob)||U.thumbUrl!==void 0||(U.thumbUrl="",r==null||r(U.originFileObj).then(Q=>{U.thumbUrl=Q||"",$()}))})},[n,h,r]),d.useEffect(()=>{R(!0)},[]);const D=(U,Q)=>{if(i)return Q==null||Q.preventDefault(),i(U)},L=U=>{typeof o=="function"?o(U):U.url&&window.open(U.url)},B=U=>{a==null||a(U)},H=U=>{if(c)return c(U,n);const Q=U.status==="uploading";if(n.startsWith("picture")){const ee=n==="picture"?d.createElement(Ec,null):l.uploading,se=u!=null&&u(U)?d.createElement(Gpe,null):d.createElement(xpe,null);return Q?ee:se}return Q?d.createElement(Ec,null):d.createElement(Upe,null)},W=(U,Q,ee,se,ne)=>{const oe={type:"text",size:"small",title:se,onClick:pe=>{var be,ue;Q(),d.isValidElement(U)&&((ue=(be=U.props).onClick)===null||ue===void 0||ue.call(be,pe))},className:`${ee}-list-item-action`};return ne&&(oe.disabled=I),d.isValidElement(U)?d.createElement(Hn,Object.assign({},oe,{icon:vi(U,Object.assign(Object.assign({},U.props),{onClick:()=>{}}))})):d.createElement(Hn,Object.assign({},oe),d.createElement("span",null,U))};d.useImperativeHandle(t,()=>({handlePreview:D,handleDownload:L}));const{getPrefixCls:z}=d.useContext(At),V=z("upload",p),X=z(),A=le(`${V}-list`,`${V}-list-${n}`),P=d.useMemo(()=>ir(Xh(X),["onAppearEnd","onEnterEnd","onLeaveEnd"]),[X]),Y=Object.assign(Object.assign({},j?{}:P),{motionDeadline:2e3,motionName:`${V}-${j?"animate-inline":"animate"}`,keys:Xe(h.map(U=>({key:U.uid,file:U}))),motionAppear:M});return d.createElement("div",{className:A},d.createElement(_3,Object.assign({},Y,{component:!1}),U=>{let{key:Q,file:ee,className:se,style:ne}=U;return d.createElement(fve,{key:Q,locale:l,prefixCls:V,className:se,style:ne,file:ee,items:h,progress:_,listType:n,isImgUrl:u,showPreviewIcon:m,showRemoveIcon:g,showDownloadIcon:b,removeIcon:E,previewIcon:x,downloadIcon:S,extra:C,iconRender:H,actionIconRender:W,itemRender:T,onPreview:D,onDownload:L,onClose:B})}),O&&d.createElement(la,Object.assign({},Y,{visible:k,forceRender:!0}),U=>{let{className:Q,style:ee}=U;return vi(O,se=>({className:le(se.className,Q),style:Object.assign(Object.assign(Object.assign({},ee),{pointerEvents:Q?"none":void 0}),se.style)}))}))},hve=d.forwardRef(pve);var mve=function(e,t,n,r){function i(o){return o instanceof n?o:new n(function(a){a(o)})}return new(n||(n=Promise))(function(o,a){function l(p){try{u(r.next(p))}catch(h){a(h)}}function c(p){try{u(r.throw(p))}catch(h){a(h)}}function u(p){p.done?o(p.value):i(p.value).then(l,c)}u((r=r.apply(e,[])).next())})};const Bp=`__LIST_IGNORE_${Date.now()}__`,gve=(e,t)=>{const{fileList:n,defaultFileList:r,onRemove:i,showUploadList:o=!0,listType:a="text",onPreview:l,onDownload:c,onChange:u,onDrop:p,previewFile:h,disabled:m,locale:g,iconRender:b,isImageUrl:E,progress:x,prefixCls:S,className:C,type:_="select",children:O,style:k,itemRender:T,maxCount:I,data:$={},multiple:M=!1,hasControlInside:R=!0,action:j="",accept:D="",supportServerRender:L=!0,rootClassName:B}=e,H=d.useContext(Ia),W=m??H,[z,V]=_r(r||[],{value:n,postState:ie=>ie??[]}),[X,A]=d.useState("drop"),P=d.useRef(null),Y=d.useRef(null);d.useMemo(()=>{const ie=Date.now();(n||[]).forEach((xe,Ne)=>{!xe.uid&&!Object.isFrozen(xe)&&(xe.uid=`__AUTO__${ie}_${Ne}__`)})},[n]);const U=(ie,xe,Ne)=>{let $e=Xe(xe),Ye=!1;I===1?$e=$e.slice(-1):I&&(Ye=$e.length>I,$e=$e.slice(0,I)),Ta.flushSync(()=>{V($e)});const ht={file:ie,fileList:$e};Ne&&(ht.event=Ne),(!Ye||ie.status==="removed"||$e.some(It=>It.uid===ie.uid))&&Ta.flushSync(()=>{u==null||u(ht)})},Q=(ie,xe)=>mve(void 0,void 0,void 0,function*(){const{beforeUpload:Ne,transformFile:$e}=e;let Ye=ie;if(Ne){const ht=yield Ne(ie,xe);if(ht===!1)return!1;if(delete ie[Bp],ht===Bp)return Object.defineProperty(ie,Bp,{value:!0,configurable:!0}),!1;typeof ht=="object"&&ht&&(Ye=ht)}return $e&&(Ye=yield $e(Ye)),Ye}),ee=ie=>{const xe=ie.filter(Ye=>!Ye.file[Bp]);if(!xe.length)return;const Ne=xe.map(Ye=>sg(Ye.file));let $e=Xe(z);Ne.forEach(Ye=>{$e=cg(Ye,$e)}),Ne.forEach((Ye,ht)=>{let It=Ye;if(xe[ht].parsedFile)Ye.status="uploading";else{const{originFileObj:Jt}=Ye;let Vt;try{Vt=new File([Jt],Jt.name,{type:Jt.type})}catch{Vt=new Blob([Jt],{type:Jt.type}),Vt.name=Jt.name,Vt.lastModifiedDate=new Date,Vt.lastModified=new Date().getTime()}Vt.uid=Ye.uid,It=Vt}U(It,$e)})},se=(ie,xe,Ne)=>{try{typeof ie=="string"&&(ie=JSON.parse(ie))}catch{}if(!p9(xe,z))return;const $e=sg(xe);$e.status="done",$e.percent=100,$e.response=ie,$e.xhr=Ne;const Ye=cg($e,z);U($e,Ye)},ne=(ie,xe)=>{if(!p9(xe,z))return;const Ne=sg(xe);Ne.status="uploading",Ne.percent=ie.percent;const $e=cg(Ne,z);U(Ne,$e,ie)},oe=(ie,xe,Ne)=>{if(!p9(Ne,z))return;const $e=sg(Ne);$e.error=ie,$e.response=xe,$e.status="error";const Ye=cg($e,z);U($e,Ye)},pe=ie=>{let xe;Promise.resolve(typeof i=="function"?i(ie):i).then(Ne=>{var $e;if(Ne===!1)return;const Ye=sve(ie,z);Ye&&(xe=Object.assign(Object.assign({},ie),{status:"removed"}),z==null||z.forEach(ht=>{const It=xe.uid!==void 0?"uid":"name";ht[It]===xe[It]&&!Object.isFrozen(ht)&&(ht.status="removed")}),($e=P.current)===null||$e===void 0||$e.abort(xe),U(xe,Ye))})},be=ie=>{A(ie.type),ie.type==="drop"&&(p==null||p(ie))};d.useImperativeHandle(t,()=>({onBatchStart:ee,onSuccess:se,onProgress:ne,onError:oe,fileList:z,upload:P.current,nativeElement:Y.current}));const{getPrefixCls:ue,direction:de,upload:re}=d.useContext(At),me=ue("upload",S),ge=Object.assign(Object.assign({onBatchStart:ee,onError:oe,onProgress:ne,onSuccess:se},e),{data:$,multiple:M,action:j,accept:D,supportServerRender:L,prefixCls:me,disabled:W,beforeUpload:Q,onChange:void 0,hasControlInside:R});delete ge.className,delete ge.style,(!O||W)&&delete ge.id;const Ae=`${me}-wrapper`,[De,ze,et]=lve(me,Ae),[Ie]=jl("Upload",Pl.Upload),{showRemoveIcon:Te,showPreviewIcon:Ue,showDownloadIcon:Le,removeIcon:je,previewIcon:Ge,downloadIcon:qe,extra:Ce}=typeof o=="boolean"?{}:o,ke=typeof Te>"u"?!W:Te,We=(ie,xe)=>o?d.createElement(hve,{prefixCls:me,listType:a,items:z,previewFile:h,onPreview:l,onDownload:c,onRemove:pe,showRemoveIcon:ke,showPreviewIcon:Ue,showDownloadIcon:Le,removeIcon:je,previewIcon:Ge,downloadIcon:qe,iconRender:b,extra:Ce,locale:Object.assign(Object.assign({},Ie),g),isImageUrl:E,progress:x,appendAction:ie,appendActionVisible:xe,itemRender:T,disabled:W}):ie,Pe=le(Ae,C,B,ze,et,re==null?void 0:re.className,{[`${me}-rtl`]:de==="rtl",[`${me}-picture-card-wrapper`]:a==="picture-card",[`${me}-picture-circle-wrapper`]:a==="picture-circle"}),Be=Object.assign(Object.assign({},re==null?void 0:re.style),k);if(_==="drag"){const ie=le(ze,me,`${me}-drag`,{[`${me}-drag-uploading`]:z.some(xe=>xe.status==="uploading"),[`${me}-drag-hover`]:X==="dragover",[`${me}-disabled`]:W,[`${me}-rtl`]:de==="rtl"});return De(d.createElement("span",{className:Pe,ref:Y},d.createElement("div",{className:ie,style:Be,onDrop:be,onDragOver:be,onDragLeave:be},d.createElement(RE,Object.assign({},ge,{ref:P,className:`${me}-btn`}),d.createElement("div",{className:`${me}-drag-container`},O))),We()))}const He=le(me,`${me}-select`,{[`${me}-disabled`]:W,[`${me}-hidden`]:!O}),Qe=d.createElement("div",{className:He},d.createElement(RE,Object.assign({},ge,{ref:P})));return De(a==="picture-card"||a==="picture-circle"?d.createElement("span",{className:Pe,ref:Y},We(Qe,!!O)):d.createElement("span",{className:Pe,ref:Y},Qe,We()))},Vj=d.forwardRef(gve);var vve=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 yve=d.forwardRef((e,t)=>{var{style:n,height:r,hasControlInside:i=!1}=e,o=vve(e,["style","height","hasControlInside"]);return d.createElement(Vj,Object.assign({ref:t,hasControlInside:i},o,{type:"drag",style:Object.assign(Object.assign({},n),{height:r})}))}),D8=Vj;D8.Dragger=yve;D8.LIST_IGNORE=Bp;var h2={},Gj={exports:{}};(function(e){function t(n){return n&&n.__esModule?n:{default:n}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(Gj);var m2=Gj.exports,g2={};Object.defineProperty(g2,"__esModule",{value:!0});g2.default=void 0;var bve={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:"页码"};g2.default=bve;var v2={},zm={},y2={},qj={exports:{}},Xj={exports:{}},Yj={exports:{}},Qj={exports:{}};(function(e){function t(n){"@babel/helpers - typeof";return e.exports=t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(Qj);var Zj=Qj.exports,Jj={exports:{}};(function(e){var t=Zj.default;function n(r,i){if(t(r)!="object"||!r)return r;var o=r[Symbol.toPrimitive];if(o!==void 0){var a=o.call(r,i||"default");if(t(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(i==="string"?String:Number)(r)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports})(Jj);var Cve=Jj.exports;(function(e){var t=Zj.default,n=Cve;function r(i){var o=n(i,"string");return t(o)=="symbol"?o:o+""}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports})(Yj);var Sve=Yj.exports;(function(e){var t=Sve;function n(r,i,o){return(i=t(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o,r}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports})(Xj);var Eve=Xj.exports;(function(e){var t=Eve;function n(i,o){var a=Object.keys(i);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(i);o&&(l=l.filter(function(c){return Object.getOwnPropertyDescriptor(i,c).enumerable})),a.push.apply(a,l)}return a}function r(i){for(var o=1;o<arguments.length;o++){var a=arguments[o]!=null?arguments[o]:{};o%2?n(Object(a),!0).forEach(function(l){t(i,l,a[l])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(a)):n(Object(a)).forEach(function(l){Object.defineProperty(i,l,Object.getOwnPropertyDescriptor(a,l))})}return i}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports})(qj);var xve=qj.exports,b2={};Object.defineProperty(b2,"__esModule",{value:!0});b2.commonLocale=void 0;b2.commonLocale={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0};var wve=m2.default;Object.defineProperty(y2,"__esModule",{value:!0});y2.default=void 0;var Ik=wve(xve),_ve=b2,Tve=(0,Ik.default)((0,Ik.default)({},_ve.commonLocale),{},{locale:"zh_CN",today:"今天",now:"此刻",backToToday:"返回今天",ok:"确定",timeSelect:"选择时间",dateSelect:"选择日期",weekSelect:"选择周",clear:"清除",month:"月",year:"年",previousMonth:"上个月 (翻页上键)",nextMonth:"下个月 (翻页下键)",monthSelect:"选择月份",yearSelect:"选择年份",decadeSelect:"选择年代",previousYear:"上一年 (Control键加左方向键)",nextYear:"下一年 (Control键加右方向键)",previousDecade:"上一年代",nextDecade:"下一年代",previousCentury:"上一世纪",nextCentury:"下一世纪",yearFormat:"YYYY年",cellDateFormat:"D",monthBeforeYear:!1});y2.default=Tve;var Wm={};Object.defineProperty(Wm,"__esModule",{value:!0});Wm.default=void 0;const Ove={placeholder:"请选择时间",rangePlaceholder:["开始时间","结束时间"]};Wm.default=Ove;var eH=m2.default;Object.defineProperty(zm,"__esModule",{value:!0});zm.default=void 0;var Ive=eH(y2),kve=eH(Wm);const tH={lang:Object.assign({placeholder:"请选择日期",yearPlaceholder:"请选择年份",quarterPlaceholder:"请选择季度",monthPlaceholder:"请选择月份",weekPlaceholder:"请选择周",rangePlaceholder:["开始日期","结束日期"],rangeYearPlaceholder:["开始年份","结束年份"],rangeMonthPlaceholder:["开始月份","结束月份"],rangeQuarterPlaceholder:["开始季度","结束季度"],rangeWeekPlaceholder:["开始周","结束周"]},Ive.default),timePickerLocale:Object.assign({},kve.default)};tH.lang.ok="确定";zm.default=tH;var $ve=m2.default;Object.defineProperty(v2,"__esModule",{value:!0});v2.default=void 0;var Nve=$ve(zm);v2.default=Nve.default;var C2=m2.default;Object.defineProperty(h2,"__esModule",{value:!0});h2.default=void 0;var Ave=C2(g2),Rve=C2(v2),Mve=C2(zm),Pve=C2(Wm);const Wo="${label}不是一个有效的${type}",Lve={locale:"zh-cn",Pagination:Ave.default,DatePicker:Mve.default,TimePicker:Pve.default,Calendar:Rve.default,global:{placeholder:"请选择"},Table:{filterTitle:"筛选",filterConfirm:"确定",filterReset:"重置",filterEmptyText:"无筛选项",filterCheckall:"全选",filterSearchPlaceholder:"在筛选项中搜索",emptyText:"暂无数据",selectAll:"全选当页",selectInvert:"反选当页",selectNone:"清空所有",selectionAll:"全选所有",sortTitle:"排序",expand:"展开行",collapse:"关闭行",triggerDesc:"点击降序",triggerAsc:"点击升序",cancelSort:"取消排序"},Modal:{okText:"确定",cancelText:"取消",justOkText:"知道了"},Tour:{Next:"下一步",Previous:"上一步",Finish:"结束导览"},Popconfirm:{cancelText:"取消",okText:"确定"},Transfer:{titles:["",""],searchPlaceholder:"请输入搜索内容",itemUnit:"项",itemsUnit:"项",remove:"删除",selectCurrent:"全选当页",removeCurrent:"删除当页",selectAll:"全选所有",deselectAll:"取消全选",removeAll:"删除全部",selectInvert:"反选当页"},Upload:{uploading:"文件上传中",removeFile:"删除文件",uploadError:"上传错误",previewFile:"预览文件",downloadFile:"下载文件"},Empty:{description:"暂无数据"},Icon:{icon:"图标"},Text:{edit:"编辑",copy:"复制",copied:"复制成功",expand:"展开",collapse:"收起"},Form:{optional:"(可选)",defaultValidateMessages:{default:"字段验证错误${label}",required:"请输入${label}",enum:"${label}必须是其中一个[${enum}]",whitespace:"${label}不能为空字符",date:{format:"${label}日期格式无效",parse:"${label}不能转换为日期",invalid:"${label}是一个无效日期"},types:{string:Wo,method:Wo,array:Wo,object:Wo,number:Wo,date:Wo,boolean:Wo,integer:Wo,float:Wo,regexp:Wo,email:Wo,url:Wo,hex:Wo},string:{len:"${label}须为${len}个字符",min:"${label}最少${min}个字符",max:"${label}最多${max}个字符",range:"${label}须在${min}-${max}字符之间"},number:{len:"${label}必须等于${len}",min:"${label}最小值为${min}",max:"${label}最大值为${max}",range:"${label}须在${min}-${max}之间"},array:{len:"须为${len}个${label}",min:"最少${min}个${label}",max:"最多${max}个${label}",range:"${label}数量须在${min}-${max}之间"},pattern:{mismatch:"${label}与模式不匹配${pattern}"}}},Image:{preview:"预览"},QRCode:{expired:"二维码过期",refresh:"点击刷新",scanned:"已扫描"},ColorPicker:{presetEmpty:"暂无",transparent:"无色",singleColor:"单色",gradientColor:"渐变色"}};h2.default=Lve;var Dve=h2;const Fve=dl(Dve),Bve={BASE_URL:"/notebase",DEV:!1,MODE:"production",PROD:!0,SSR:!1},kk=e=>{let t;const n=new Set,r=(p,h)=>{const m=typeof p=="function"?p(t):p;if(!Object.is(m,t)){const g=t;t=h??(typeof m!="object"||m===null)?m:Object.assign({},t,m),n.forEach(b=>b(t,g))}},i=()=>t,c={setState:r,getState:i,getInitialState:()=>u,subscribe:p=>(n.add(p),()=>n.delete(p)),destroy:()=>{(Bve?"production":void 0)!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}},u=t=e(r,i,c);return c},jve=e=>e?kk(e):kk;var nH={exports:{}},rH={},iH={exports:{}},oH={};/**
* @license React
* use-sync-external-store-shim.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var Kf=d;function Hve(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var zve=typeof Object.is=="function"?Object.is:Hve,Wve=Kf.useState,Uve=Kf.useEffect,Kve=Kf.useLayoutEffect,Vve=Kf.useDebugValue;function Gve(e,t){var n=t(),r=Wve({inst:{value:n,getSnapshot:t}}),i=r[0].inst,o=r[1];return Kve(function(){i.value=n,i.getSnapshot=t,h9(i)&&o({inst:i})},[e,n,t]),Uve(function(){return h9(i)&&o({inst:i}),e(function(){h9(i)&&o({inst:i})})},[e]),Vve(n),n}function h9(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!zve(e,n)}catch{return!0}}function qve(e,t){return t()}var Xve=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?qve:Gve;oH.useSyncExternalStore=Kf.useSyncExternalStore!==void 0?Kf.useSyncExternalStore:Xve;iH.exports=oH;var Yve=iH.exports;/**
* @license React
* use-sync-external-store-shim/with-selector.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var S2=d,Qve=Yve;function Zve(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Jve=typeof Object.is=="function"?Object.is:Zve,eye=Qve.useSyncExternalStore,tye=S2.useRef,nye=S2.useEffect,rye=S2.useMemo,iye=S2.useDebugValue;rH.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var o=tye(null);if(o.current===null){var a={hasValue:!1,value:null};o.current=a}else a=o.current;o=rye(function(){function c(g){if(!u){if(u=!0,p=g,g=r(g),i!==void 0&&a.hasValue){var b=a.value;if(i(b,g))return h=b}return h=g}if(b=h,Jve(p,g))return b;var E=r(g);return i!==void 0&&i(b,E)?b:(p=g,h=E)}var u=!1,p,h,m=n===void 0?null:n;return[function(){return c(t())},m===null?void 0:function(){return c(m())}]},[t,n,r,i]);var l=eye(e,o[0],o[1]);return nye(function(){a.hasValue=!0,a.value=l},[l]),iye(l),l};nH.exports=rH;var oye=nH.exports;const aye=dl(oye),aH={BASE_URL:"/notebase",DEV:!1,MODE:"production",PROD:!0,SSR:!1},{useDebugValue:lye}=fe,{useSyncExternalStoreWithSelector:sye}=aye;let $k=!1;const cye=e=>e;function uye(e,t=cye,n){(aH?"production":void 0)!=="production"&&n&&!$k&&(console.warn("[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"),$k=!0);const r=sye(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,n);return lye(r),r}const Nk=e=>{(aH?"production":void 0)!=="production"&&typeof e!="function"&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");const t=typeof e=="function"?jve(e):e,n=(r,i)=>uye(t,r,i);return Object.assign(n,t),n},F8=e=>e?Nk(e):Nk,dye={BASE_URL:"/notebase",DEV:!1,MODE:"production",PROD:!0,SSR:!1};function fye(e,t){let n;try{n=e()}catch{return}return{getItem:i=>{var o;const a=c=>c===null?null:JSON.parse(c,void 0),l=(o=n.getItem(i))!=null?o:null;return l instanceof Promise?l.then(a):a(l)},setItem:(i,o)=>n.setItem(i,JSON.stringify(o,void 0)),removeItem:i=>n.removeItem(i)}}const om=e=>t=>{try{const n=e(t);return n instanceof Promise?n:{then(r){return om(r)(n)},catch(r){return this}}}catch(n){return{then(r){return this},catch(r){return om(r)(n)}}}},pye=(e,t)=>(n,r,i)=>{let o={getStorage:()=>localStorage,serialize:JSON.stringify,deserialize:JSON.parse,partialize:x=>x,version:0,merge:(x,S)=>({...S,...x}),...t},a=!1;const l=new Set,c=new Set;let u;try{u=o.getStorage()}catch{}if(!u)return e((...x)=>{console.warn(`[zustand persist middleware] Unable to update item '${o.name}', the given storage is currently unavailable.`),n(...x)},r,i);const p=om(o.serialize),h=()=>{const x=o.partialize({...r()});let S;const C=p({state:x,version:o.version}).then(_=>u.setItem(o.name,_)).catch(_=>{S=_});if(S)throw S;return C},m=i.setState;i.setState=(x,S)=>{m(x,S),h()};const g=e((...x)=>{n(...x),h()},r,i);let b;const E=()=>{var x;if(!u)return;a=!1,l.forEach(C=>C(r()));const S=((x=o.onRehydrateStorage)==null?void 0:x.call(o,r()))||void 0;return om(u.getItem.bind(u))(o.name).then(C=>{if(C)return o.deserialize(C)}).then(C=>{if(C)if(typeof C.version=="number"&&C.version!==o.version){if(o.migrate)return o.migrate(C.state,C.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return C.state}).then(C=>{var _;return b=o.merge(C,(_=r())!=null?_:g),n(b,!0),h()}).then(()=>{S==null||S(b,void 0),a=!0,c.forEach(C=>C(b))}).catch(C=>{S==null||S(void 0,C)})};return i.persist={setOptions:x=>{o={...o,...x},x.getStorage&&(u=x.getStorage())},clearStorage:()=>{u==null||u.removeItem(o.name)},getOptions:()=>o,rehydrate:()=>E(),hasHydrated:()=>a,onHydrate:x=>(l.add(x),()=>{l.delete(x)}),onFinishHydration:x=>(c.add(x),()=>{c.delete(x)})},E(),b||g},hye=(e,t)=>(n,r,i)=>{let o={storage:fye(()=>localStorage),partialize:E=>E,version:0,merge:(E,x)=>({...x,...E}),...t},a=!1;const l=new Set,c=new Set;let u=o.storage;if(!u)return e((...E)=>{console.warn(`[zustand persist middleware] Unable to update item '${o.name}', the given storage is currently unavailable.`),n(...E)},r,i);const p=()=>{const E=o.partialize({...r()});return u.setItem(o.name,{state:E,version:o.version})},h=i.setState;i.setState=(E,x)=>{h(E,x),p()};const m=e((...E)=>{n(...E),p()},r,i);i.getInitialState=()=>m;let g;const b=()=>{var E,x;if(!u)return;a=!1,l.forEach(C=>{var _;return C((_=r())!=null?_:m)});const S=((x=o.onRehydrateStorage)==null?void 0:x.call(o,(E=r())!=null?E:m))||void 0;return om(u.getItem.bind(u))(o.name).then(C=>{if(C)if(typeof C.version=="number"&&C.version!==o.version){if(o.migrate)return[!0,o.migrate(C.state,C.version)];console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return[!1,C.state];return[!1,void 0]}).then(C=>{var _;const[O,k]=C;if(g=o.merge(k,(_=r())!=null?_:m),n(g,!0),O)return p()}).then(()=>{S==null||S(g,void 0),g=r(),a=!0,c.forEach(C=>C(g))}).catch(C=>{S==null||S(void 0,C)})};return i.persist={setOptions:E=>{o={...o,...E},E.storage&&(u=E.storage)},clearStorage:()=>{u==null||u.removeItem(o.name)},getOptions:()=>o,rehydrate:()=>b(),hasHydrated:()=>a,onHydrate:E=>(l.add(E),()=>{l.delete(E)}),onFinishHydration:E=>(c.add(E),()=>{c.delete(E)})},o.skipHydration||b(),g||m},mye=(e,t)=>"getStorage"in t||"serialize"in t||"deserialize"in t?((dye?"production":void 0)!=="production"&&console.warn("[DEPRECATED] `getStorage`, `serialize` and `deserialize` options are deprecated. Use `storage` option instead."),pye(e,t)):hye(e,t),gye=mye,B8=F8()(gye(e=>({user:null,token:null,setUser:t=>e({user:t}),setToken:t=>e({token:t}),logout:()=>e({user:null,token:null})}),{name:"auth-storage"}));var Io=function(){return Io=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},Io.apply(this,arguments)};function _y(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,o;r<i;r++)(o||!(r in t))&&(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))}var gr="-ms-",ah="-moz-",qn="-webkit-",lH="comm",E2="rule",j8="decl",vye="@import",sH="@keyframes",yye="@layer",cH=Math.abs,H8=String.fromCharCode,ME=Object.assign;function bye(e,t){return wi(e,0)^45?(((t<<2^wi(e,0))<<2^wi(e,1))<<2^wi(e,2))<<2^wi(e,3):0}function uH(e){return e.trim()}function as(e,t){return(e=t.exec(e))?e[0]:e}function Cn(e,t,n){return e.replace(t,n)}function fv(e,t,n){return e.indexOf(t,n)}function wi(e,t){return e.charCodeAt(t)|0}function Vf(e,t,n){return e.slice(t,n)}function wl(e){return e.length}function dH(e){return e.length}function jp(e,t){return t.push(e),e}function Cye(e,t){return e.map(t).join("")}function Ak(e,t){return e.filter(function(n){return!as(n,t)})}var x2=1,Gf=1,fH=0,ka=0,ei=0,b1="";function w2(e,t,n,r,i,o,a,l){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:x2,column:Gf,length:a,return:"",siblings:l}}function Gs(e,t){return ME(w2("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function Pd(e){for(;e.root;)e=Gs(e.root,{children:[e]});jp(e,e.siblings)}function Sye(){return ei}function Eye(){return ei=ka>0?wi(b1,--ka):0,Gf--,ei===10&&(Gf=1,x2--),ei}function rl(){return ei=ka<fH?wi(b1,ka++):0,Gf++,ei===10&&(Gf=1,x2++),ei}function Ou(){return wi(b1,ka)}function pv(){return ka}function _2(e,t){return Vf(b1,e,t)}function PE(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 xye(e){return x2=Gf=1,fH=wl(b1=e),ka=0,[]}function wye(e){return b1="",e}function m9(e){return uH(_2(ka-1,LE(e===91?e+2:e===40?e+1:e)))}function _ye(e){for(;(ei=Ou())&&ei<33;)rl();return PE(e)>2||PE(ei)>3?"":" "}function Tye(e,t){for(;--t&&rl()&&!(ei<48||ei>102||ei>57&&ei<65||ei>70&&ei<97););return _2(e,pv()+(t<6&&Ou()==32&&rl()==32))}function LE(e){for(;rl();)switch(ei){case e:return ka;case 34:case 39:e!==34&&e!==39&&LE(ei);break;case 40:e===41&&LE(e);break;case 92:rl();break}return ka}function Oye(e,t){for(;rl()&&e+ei!==57;)if(e+ei===84&&Ou()===47)break;return"/*"+_2(t,ka-1)+"*"+H8(e===47?e:rl())}function Iye(e){for(;!PE(Ou());)rl();return _2(e,ka)}function kye(e){return wye(hv("",null,null,null,[""],e=xye(e),0,[0],e))}function hv(e,t,n,r,i,o,a,l,c){for(var u=0,p=0,h=a,m=0,g=0,b=0,E=1,x=1,S=1,C=0,_="",O=i,k=o,T=r,I=_;x;)switch(b=C,C=rl()){case 40:if(b!=108&&wi(I,h-1)==58){fv(I+=Cn(m9(C),"&","&\f"),"&\f",cH(u?l[u-1]:0))!=-1&&(S=-1);break}case 34:case 39:case 91:I+=m9(C);break;case 9:case 10:case 13:case 32:I+=_ye(b);break;case 92:I+=Tye(pv()-1,7);continue;case 47:switch(Ou()){case 42:case 47:jp($ye(Oye(rl(),pv()),t,n,c),c);break;default:I+="/"}break;case 123*E:l[u++]=wl(I)*S;case 125*E:case 59:case 0:switch(C){case 0:case 125:x=0;case 59+p:S==-1&&(I=Cn(I,/\f/g,"")),g>0&&wl(I)-h&&jp(g>32?Mk(I+";",r,n,h-1,c):Mk(Cn(I," ","")+";",r,n,h-2,c),c);break;case 59:I+=";";default:if(jp(T=Rk(I,t,n,u,p,i,l,_,O=[],k=[],h,o),o),C===123)if(p===0)hv(I,t,T,T,O,o,h,l,k);else switch(m===99&&wi(I,3)===110?100:m){case 100:case 108:case 109:case 115:hv(e,T,T,r&&jp(Rk(e,T,T,0,0,i,l,_,i,O=[],h,k),k),i,k,h,l,r?O:k);break;default:hv(I,T,T,T,[""],k,0,l,k)}}u=p=g=0,E=S=1,_=I="",h=a;break;case 58:h=1+wl(I),g=b;default:if(E<1){if(C==123)--E;else if(C==125&&E++==0&&Eye()==125)continue}switch(I+=H8(C),C*E){case 38:S=p>0?1:(I+="\f",-1);break;case 44:l[u++]=(wl(I)-1)*S,S=1;break;case 64:Ou()===45&&(I+=m9(rl())),m=Ou(),p=h=wl(_=I+=Iye(pv())),C++;break;case 45:b===45&&wl(I)==2&&(E=0)}}return o}function Rk(e,t,n,r,i,o,a,l,c,u,p,h){for(var m=i-1,g=i===0?o:[""],b=dH(g),E=0,x=0,S=0;E<r;++E)for(var C=0,_=Vf(e,m+1,m=cH(x=a[E])),O=e;C<b;++C)(O=uH(x>0?g[C]+" "+_:Cn(_,/&\f/g,g[C])))&&(c[S++]=O);return w2(e,t,n,i===0?E2:l,c,u,p,h)}function $ye(e,t,n,r){return w2(e,t,n,lH,H8(Sye()),Vf(e,2,-2),0,r)}function Mk(e,t,n,r,i){return w2(e,t,n,j8,Vf(e,0,r),Vf(e,r+1,-1),r,i)}function pH(e,t,n){switch(bye(e,t)){case 5103:return qn+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return qn+e+e;case 4789:return ah+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return qn+e+ah+e+gr+e+e;case 5936:switch(wi(e,t+11)){case 114:return qn+e+gr+Cn(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return qn+e+gr+Cn(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return qn+e+gr+Cn(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return qn+e+gr+e+e;case 6165:return qn+e+gr+"flex-"+e+e;case 5187:return qn+e+Cn(e,/(\w+).+(:[^]+)/,qn+"box-$1$2"+gr+"flex-$1$2")+e;case 5443:return qn+e+gr+"flex-item-"+Cn(e,/flex-|-self/g,"")+(as(e,/flex-|baseline/)?"":gr+"grid-row-"+Cn(e,/flex-|-self/g,""))+e;case 4675:return qn+e+gr+"flex-line-pack"+Cn(e,/align-content|flex-|-self/g,"")+e;case 5548:return qn+e+gr+Cn(e,"shrink","negative")+e;case 5292:return qn+e+gr+Cn(e,"basis","preferred-size")+e;case 6060:return qn+"box-"+Cn(e,"-grow","")+qn+e+gr+Cn(e,"grow","positive")+e;case 4554:return qn+Cn(e,/([^-])(transform)/g,"$1"+qn+"$2")+e;case 6187:return Cn(Cn(Cn(e,/(zoom-|grab)/,qn+"$1"),/(image-set)/,qn+"$1"),e,"")+e;case 5495:case 3959:return Cn(e,/(image-set\([^]*)/,qn+"$1$`$1");case 4968:return Cn(Cn(e,/(.+:)(flex-)?(.*)/,qn+"box-pack:$3"+gr+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+qn+e+e;case 4200:if(!as(e,/flex-|baseline/))return gr+"grid-column-align"+Vf(e,t)+e;break;case 2592:case 3360:return gr+Cn(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(r,i){return t=i,as(r.props,/grid-\w+-end/)})?~fv(e+(n=n[t].value),"span",0)?e:gr+Cn(e,"-start","")+e+gr+"grid-row-span:"+(~fv(n,"span",0)?as(n,/\d+/):+as(n,/\d+/)-+as(e,/\d+/))+";":gr+Cn(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(r){return as(r.props,/grid-\w+-start/)})?e:gr+Cn(Cn(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return Cn(e,/(.+)-inline(.+)/,qn+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(wl(e)-1-t>6)switch(wi(e,t+1)){case 109:if(wi(e,t+4)!==45)break;case 102:return Cn(e,/(.+:)(.+)-([^]+)/,"$1"+qn+"$2-$3$1"+ah+(wi(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~fv(e,"stretch",0)?pH(Cn(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return Cn(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(r,i,o,a,l,c,u){return gr+i+":"+o+u+(a?gr+i+"-span:"+(l?c:+c-+o)+u:"")+e});case 4949:if(wi(e,t+6)===121)return Cn(e,":",":"+qn)+e;break;case 6444:switch(wi(e,wi(e,14)===45?18:11)){case 120:return Cn(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+qn+(wi(e,14)===45?"inline-":"")+"box$3$1"+qn+"$2$3$1"+gr+"$2box$3")+e;case 100:return Cn(e,":",":"+gr)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return Cn(e,"scroll-","scroll-snap-")+e}return e}function Ty(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function Nye(e,t,n,r){switch(e.type){case yye:if(e.children.length)break;case vye:case j8:return e.return=e.return||e.value;case lH:return"";case sH:return e.return=e.value+"{"+Ty(e.children,r)+"}";case E2:if(!wl(e.value=e.props.join(",")))return""}return wl(n=Ty(e.children,r))?e.return=e.value+"{"+n+"}":""}function Aye(e){var t=dH(e);return function(n,r,i,o){for(var a="",l=0;l<t;l++)a+=e[l](n,r,i,o)||"";return a}}function Rye(e){return function(t){t.root||(t=t.return)&&e(t)}}function Mye(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case j8:e.return=pH(e.value,e.length,n);return;case sH:return Ty([Gs(e,{value:Cn(e.value,"@","@"+qn)})],r);case E2:if(e.length)return Cye(n=e.props,function(i){switch(as(i,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":Pd(Gs(e,{props:[Cn(i,/:(read-\w+)/,":"+ah+"$1")]})),Pd(Gs(e,{props:[i]})),ME(e,{props:Ak(n,r)});break;case"::placeholder":Pd(Gs(e,{props:[Cn(i,/:(plac\w+)/,":"+qn+"input-$1")]})),Pd(Gs(e,{props:[Cn(i,/:(plac\w+)/,":"+ah+"$1")]})),Pd(Gs(e,{props:[Cn(i,/:(plac\w+)/,gr+"input-$1")]})),Pd(Gs(e,{props:[i]})),ME(e,{props:Ak(n,r)});break}return""})}}var Pye={animationIterationCount:1,aspectRatio: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},Vo={NVM_INC:"/Users/ningjinpeng/.nvm/versions/node/v20.0.0/include/node",ELECTRON_MIRROR:"http://npm.taobao.org/mirrors/electron/",npm_package_devDependencies_prettier:"^3.2.4",TERM_PROGRAM:"vscode",rvm_bin_path:"/Users/ningjinpeng/.rvm/bin",npm_package_dependencies__bytemd_plugin_breaks:"^1.21.0",NODE:"/Users/ningjinpeng/.nvm/versions/node/v20.0.0/bin/node",GEM_HOME:"/Users/ningjinpeng/.gem/ruby",NVM_CD_FLAGS:"-q",PYENV_ROOT:"/Users/ningjinpeng/.pyenv",npm_package_dependencies_axios:"^1.6.7",npm_package_devDependencies_typescript:"^5.3.3",INIT_CWD:"/Users/ningjinpeng/Desktop/git/private/github/bytedesk-frontend-private/apps/notebase",SHELL:"/bin/zsh",TERM:"xterm-256color",npm_package_devDependencies_vite:"^5.0.12",HOMEBREW_API_DOMAIN:"https://mirrors.tuna.tsinghua.edu.cn/homebrew-bottles/api",HOMEBREW_BOTTLE_DOMAIN:"https://mirrors.tuna.tsinghua.edu.cn/homebrew-bottles",npm_config_shamefully_hoist:"true",HOMEBREW_REPOSITORY:"/opt/homebrew",TMPDIR:"/var/folders/gs/yt0l6r9963zgwd7fmhn3jfg40000gn/T/",npm_package_scripts_release:"sh cicd/scripts/build-upload.sh",npm_package_scripts_lint:"eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",TERM_PROGRAM_VERSION:"0.45.11",npm_package_devDependencies__vitejs_plugin_react:"^4.2.1",npm_package_scripts_dev:"vite --host",CURSOR_TRACE_ID:"534fdc92ae9f409590034fa34cc4b91e",MallocNanoZone:"0",ORIGINAL_XDG_CURRENT_DESKTOP:"undefined",ZDOTDIR:"/Users/ningjinpeng",TERM_SESSION_ID:"63CB6F04-53A7-417D-A66A-4334F4DF1462",npm_package_private:"true",npm_config_registry:"https://registry.npmmirror.com/",PNPM_HOME:"/Users/ningjinpeng/Library/pnpm",npm_package_dependencies__ant_design_icons:"^5.3.0",npm_package_dependencies_react_dom:"^18.2.0",npm_package_devDependencies_eslint_plugin_react_refresh:"^0.4.5",OBJC_DISABLE_INITIALIZE_FORK_SAFETY:"YES",NVM_DIR:"/Users/ningjinpeng/.nvm",USER:"ningjinpeng",npm_package_devDependencies__types_react:"^18.2.48",COMMAND_MODE:"unix2003",npm_package_scripts_release_open:"sh cicd/scripts/build-open.sh",npm_package_dependencies_bytemd:"^1.21.0",PNPM_SCRIPT_SRC_DIR:"/Users/ningjinpeng/Desktop/git/private/github/bytedesk-frontend-private/apps/notebase",FLUTTER_ROOT:"/opt/homebrew/Cellar/ruby/3.4.1/bin:/opt/homebrew/opt/pyqt@5/5.15.7_2/bin:/opt/homebrew/opt/qt@5/5.15.8_2/bin:/Users/ningjinpeng/.pyenv/shims:/Users/ningjinpeng/.pyenv/shims:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/mysql/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Library/Apple/usr/bin:/Applications/Wireshark.app/Contents/MacOS:/usr/local/go/bin:/usr/local/hatch/bin:/opt/homebrew/opt/libpq/bin:/Users/ningjinpeng/.bun/bin:/Users/ningjinpeng/.gem/ruby/bin:/Users/ningjinpeng/Library/pnpm:/Users/ningjinpeng/.nvm/versions/node/v20.0.0/bin:/Users/ningjinpeng/anaconda3/bin:/opt/homebrew/Cellar/ruby/3.4.1/bin:/opt/homebrew/opt/pyqt@5/5.15.7_2/bin:/opt/homebrew/opt/qt@5/5.15.8_2/bin:/Users/ningjinpeng/.cargo/bin:/Library/Java/JavaVirtualMachines/jdk-17.0.4.jdk/Contents/Home/bin:/Users/ningjinpeng/go/bin/:/Users/ningjinpeng/.pub-cache/bin:/Users/ningjinpeng/flutter/bin:/Users/ningjinpeng/flutter/bin/cache/dart-sdk/bin:/Users/ningjinpeng/.rvm/bin:/Applications/Docker.app/Contents/Resources/bin:/Library/Java/JavaVirtualMachines/jdk-17.0.4.jdk/Contents/Home/bin:/Users/ningjinpeng/go/bin/:/Users/ningjinpeng/.pub-cache/bin:/Users/ningjinpeng/flutter/bin:/Users/ningjinpeng/flutter/bin/cache/dart-sdk/bin:/Users/ningjinpeng/flutter",HOMEBREW_CORE_GIT_REMOTE:"https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/homebrew-core.git",HOMEBREW_INSTALL_FROM_API:"1",rvm_path:"/Users/ningjinpeng/.rvm",SSH_AUTH_SOCK:"/private/tmp/com.apple.launchd.LrxkVUUwr0/Listeners",npm_package_dependencies_zustand:"^4.5.0",PUB_HOSTED_URL:"https://pub.flutter-io.cn",__CF_USER_TEXT_ENCODING:"0x1F5:0x19:0x34",npm_package_dependencies__bytemd_plugin_gemoji:"^1.21.0",npm_package_dependencies_highlight_js:"^11.11.1",npm_package_dependencies_styled_components:"^6.1.8",npm_package_devDependencies_eslint:"^8.56.0",npm_package_devDependencies__typescript_eslint_eslint_plugin:"^6.19.1",npm_execpath:"/Users/ningjinpeng/.nvm/versions/node/v20.0.0/lib/node_modules/pnpm/bin/pnpm.cjs",npm_package_scripts_build_open:"tsc && vite build",npm_package_dependencies__bytemd_react:"^1.21.0",npm_package_devDependencies__types_react_dom:"^18.2.18",npm_config_frozen_lockfile:"",rvm_prefix:"/Users/ningjinpeng",npm_package_dependencies__bytemd_plugin_gfm:"^1.21.0",npm_package_devDependencies__typescript_eslint_parser:"^6.19.1",PATH:"/Users/ningjinpeng/Desktop/git/private/github/bytedesk-frontend-private/apps/notebase/node_modules/.bin:/Users/ningjinpeng/.nvm/versions/node/v20.0.0/lib/node_modules/pnpm/dist/node-gyp-bin:/Users/ningjinpeng/Desktop/git/private/github/bytedesk-frontend-private/node_modules/.bin:/opt/homebrew/opt/libpq/bin:/Users/ningjinpeng/.bun/bin:/Users/ningjinpeng/.gem/ruby/bin:/Users/ningjinpeng/.nvm/versions/node/v20.0.0/bin:/Users/ningjinpeng/.pyenv/shims:/Users/ningjinpeng/anaconda3/bin:/opt/homebrew/Cellar/ruby/3.4.1/bin:/opt/homebrew/opt/pyqt@5/5.15.7_2/bin:/opt/homebrew/opt/qt@5/5.15.8_2/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/mysql/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Library/Apple/usr/bin:/Applications/Wireshark.app/Contents/MacOS:/usr/local/go/bin:/usr/local/hatch/bin:/opt/homebrew/opt/libpq/bin:/Users/ningjinpeng/.bun/bin:/Users/ningjinpeng/.gem/ruby/bin:/Users/ningjinpeng/Library/pnpm:/Users/ningjinpeng/.nvm/versions/node/v20.0.0/bin:/Users/ningjinpeng/anaconda3/bin:/opt/homebrew/Cellar/ruby/3.4.1/bin:/opt/homebrew/opt/pyqt@5/5.15.7_2/bin:/opt/homebrew/opt/qt@5/5.15.8_2/bin:/Users/ningjinpeng/.cargo/bin:/Library/Java/JavaVirtualMachines/jdk-17.0.4.jdk/Contents/Home/bin:/Users/ningjinpeng/go/bin/:/Users/ningjinpeng/.pub-cache/bin:/Users/ningjinpeng/flutter/bin:/Users/ningjinpeng/flutter/bin/cache/dart-sdk/bin:/Users/ningjinpeng/.rvm/bin:/Applications/Docker.app/Contents/Resources/bin:/Library/Java/JavaVirtualMachines/jdk-17.0.4.jdk/Contents/Home/bin:/Users/ningjinpeng/go/bin/:/Users/ningjinpeng/.pub-cache/bin:/Users/ningjinpeng/flutter/bin:/Users/ningjinpeng/flutter/bin/cache/dart-sdk/bin:/Users/ningjinpeng/.rvm/bin:/Applications/Docker.app/Contents/Resources/bin:/usr/local/bin",LaunchInstanceID:"1A78E02D-F7A1-4E9F-9117-4AFFD917F19E",__CFBundleIdentifier:"com.todesktop.230313mzl4w4u92",USER_ZDOTDIR:"/Users/ningjinpeng",npm_config_auto_install_peers:"true",PWD:"/Users/ningjinpeng/Desktop/git/private/github/bytedesk-frontend-private/apps/notebase",npm_command:"run-script",FLUTTER_STORAGE_BASE_URL:"https://storage.flutter-io.cn",JAVA_HOME:"/Library/Java/JavaVirtualMachines/jdk-17.0.4.jdk/Contents/Home",npm_package_scripts_preview:"vite preview",npm_package_dependencies__bytemd_plugin_frontmatter:"^1.21.0",npm_package_devDependencies_eslint_plugin_react_hooks:"^4.6.0",npm_package_dependencies_date_fns:"^3.3.1",npm_lifecycle_event:"build:open",LANG:"zh_CN.UTF-8",npm_package_name:"notebase",npm_package_dependencies_react_intl:"^7.1.5",NODE_PATH:"/Users/ningjinpeng/Desktop/git/private/github/bytedesk-frontend-private/node_modules/.pnpm/vite@5.4.11_@types+node@20.17.9_less@4.2.1_lightningcss@1.22.1_sass@1.83.4_sugarss@2.0.0_terser@5.36.0/node_modules/vite/bin/node_modules:/Users/ningjinpeng/Desktop/git/private/github/bytedesk-frontend-private/node_modules/.pnpm/vite@5.4.11_@types+node@20.17.9_less@4.2.1_lightningcss@1.22.1_sass@1.83.4_sugarss@2.0.0_terser@5.36.0/node_modules/vite/node_modules:/Users/ningjinpeng/Desktop/git/private/github/bytedesk-frontend-private/node_modules/.pnpm/vite@5.4.11_@types+node@20.17.9_less@4.2.1_lightningcss@1.22.1_sass@1.83.4_sugarss@2.0.0_terser@5.36.0/node_modules:/Users/ningjinpeng/Desktop/git/private/github/bytedesk-frontend-private/node_modules/.pnpm/node_modules",npm_package_scripts_build:"tsc && vite build",XPC_FLAGS:"0x0",VSCODE_GIT_ASKPASS_EXTRA_ARGS:"",npm_package_dependencies_react_router_dom:"^6.21.3",npm_package_dependencies__bytemd_plugin_highlight:"^1.21.0",npm_package_devDependencies__types_lodash_es:"^4.17.12",npm_config_electron_mirror:"https://npmmirror.com/mirrors/electron/",npm_package_devDependencies_eslint_config_prettier:"^9.1.0",npm_config_node_gyp:"/Users/ningjinpeng/.nvm/versions/node/v20.0.0/lib/node_modules/pnpm/dist/node_modules/node-gyp/bin/node-gyp.js",XPC_SERVICE_NAME:"0",npm_package_version:"0.0.1",rvm_version:"1.29.12 (latest)",VSCODE_INJECTION:"1",HOME:"/Users/ningjinpeng",PYENV_SHELL:"zsh",SHLVL:"6",npm_package_type:"module",HOMEBREW_BREW_GIT_REMOTE:"https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/brew.git",VSCODE_GIT_ASKPASS_MAIN:"/Applications/Cursor.app/Contents/Resources/app/extensions/git/dist/askpass-main.js",npm_config_strict_ssl:"",HOMEBREW_PREFIX:"/opt/homebrew",npm_package_dependencies__bytemd_plugin_mermaid:"^1.21.0",LOGNAME:"ningjinpeng",npm_package_scripts_format:'prettier --write "src/**/*.{ts,tsx,css,md}"',npm_lifecycle_script:"tsc && vite build",VSCODE_GIT_IPC_HANDLE:"/var/folders/gs/yt0l6r9963zgwd7fmhn3jfg40000gn/T/vscode-git-89e1e1d894.sock",npm_package_dependencies_lodash_es:"^4.17.21",npm_package_dependencies_react:"^18.2.0",BUN_INSTALL:"/Users/ningjinpeng/.bun",NVM_BIN:"/Users/ningjinpeng/.nvm/versions/node/v20.0.0/bin",npm_config_user_agent:"pnpm/9.12.3 npm/? node/v20.0.0 darwin arm64",HOMEBREW_CELLAR:"/opt/homebrew/Cellar",INFOPATH:"/opt/homebrew/share/info:/opt/homebrew/share/info:",GIT_ASKPASS:"/Applications/Cursor.app/Contents/Resources/app/extensions/git/dist/askpass.sh",VSCODE_GIT_ASKPASS_NODE:"/Applications/Cursor.app/Contents/Frameworks/Cursor Helper (Plugin).app/Contents/MacOS/Cursor Helper (Plugin)",npm_package_devDependencies__types_node:"^20.11.10",npm_package_dependencies_antd:"^5.23.2",SECURITYSESSIONID:"186af",COLORTERM:"truecolor",npm_node_execpath:"/Users/ningjinpeng/.nvm/versions/node/v20.0.0/bin/node",NODE_ENV:"production"},qf=typeof process<"u"&&Vo!==void 0&&(Vo.REACT_APP_SC_ATTR||Vo.SC_ATTR)||"data-styled",hH="active",mH="data-styled-version",T2="6.1.13",z8=`/*!sc*/
`,Oy=typeof window<"u"&&"HTMLElement"in window,Lye=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:typeof process<"u"&&Vo!==void 0&&Vo.REACT_APP_SC_DISABLE_SPEEDY!==void 0&&Vo.REACT_APP_SC_DISABLE_SPEEDY!==""?Vo.REACT_APP_SC_DISABLE_SPEEDY!=="false"&&Vo.REACT_APP_SC_DISABLE_SPEEDY:typeof process<"u"&&Vo!==void 0&&Vo.SC_DISABLE_SPEEDY!==void 0&&Vo.SC_DISABLE_SPEEDY!==""&&Vo.SC_DISABLE_SPEEDY!=="false"&&Vo.SC_DISABLE_SPEEDY),O2=Object.freeze([]),Xf=Object.freeze({});function Dye(e,t,n){return n===void 0&&(n=Xf),e.theme!==n.theme&&e.theme||t||n.theme}var gH=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),Fye=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Bye=/(^-|-$)/g;function Pk(e){return e.replace(Fye,"-").replace(Bye,"")}var jye=/(a)(d)/gi,ug=52,Lk=function(e){return String.fromCharCode(e+(e>25?39:97))};function DE(e){var t,n="";for(t=Math.abs(e);t>ug;t=t/ug|0)n=Lk(t%ug)+n;return(Lk(t%ug)+n).replace(jye,"$1-$2")}var g9,vH=5381,sf=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},yH=function(e){return sf(vH,e)};function Hye(e){return DE(yH(e)>>>0)}function zye(e){return e.displayName||e.name||"Component"}function v9(e){return typeof e=="string"&&!0}var bH=typeof Symbol=="function"&&Symbol.for,CH=bH?Symbol.for("react.memo"):60115,Wye=bH?Symbol.for("react.forward_ref"):60112,Uye={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Kye={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},SH={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Vye=((g9={})[Wye]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},g9[CH]=SH,g9);function Dk(e){return("type"in(t=e)&&t.type.$$typeof)===CH?SH:"$$typeof"in e?Vye[e.$$typeof]:Uye;var t}var Gye=Object.defineProperty,qye=Object.getOwnPropertyNames,Fk=Object.getOwnPropertySymbols,Xye=Object.getOwnPropertyDescriptor,Yye=Object.getPrototypeOf,Bk=Object.prototype;function EH(e,t,n){if(typeof t!="string"){if(Bk){var r=Yye(t);r&&r!==Bk&&EH(e,r,n)}var i=qye(t);Fk&&(i=i.concat(Fk(t)));for(var o=Dk(e),a=Dk(t),l=0;l<i.length;++l){var c=i[l];if(!(c in Kye||n&&n[c]||a&&c in a||o&&c in o)){var u=Xye(t,c);try{Gye(e,c,u)}catch{}}}}return e}function Yf(e){return typeof e=="function"}function W8(e){return typeof e=="object"&&"styledComponentId"in e}function Su(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function jk(e,t){if(e.length===0)return"";for(var n=e[0],r=1;r<e.length;r++)n+=e[r];return n}function am(e){return e!==null&&typeof e=="object"&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function FE(e,t,n){if(n===void 0&&(n=!1),!n&&!am(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)e[r]=FE(e[r],t[r]);else if(am(t))for(var r in t)e[r]=FE(e[r],t[r]);return e}function U8(e,t){Object.defineProperty(e,"toString",{value:t})}function Um(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e," for more information.").concat(t.length>0?" Args: ".concat(t.join(", ")):""))}var Qye=function(){function e(t){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=t}return e.prototype.indexOfGroup=function(t){for(var n=0,r=0;r<t;r++)n+=this.groupSizes[r];return n},e.prototype.insertRules=function(t,n){if(t>=this.groupSizes.length){for(var r=this.groupSizes,i=r.length,o=i;t>=o;)if((o<<=1)<0)throw Um(16,"".concat(t));this.groupSizes=new Uint32Array(o),this.groupSizes.set(r),this.length=o;for(var a=i;a<o;a++)this.groupSizes[a]=0}for(var l=this.indexOfGroup(t+1),c=(a=0,n.length);a<c;a++)this.tag.insertRule(l,n[a])&&(this.groupSizes[t]++,l++)},e.prototype.clearGroup=function(t){if(t<this.length){var n=this.groupSizes[t],r=this.indexOfGroup(t),i=r+n;this.groupSizes[t]=0;for(var o=r;o<i;o++)this.tag.deleteRule(r)}},e.prototype.getGroup=function(t){var n="";if(t>=this.length||this.groupSizes[t]===0)return n;for(var r=this.groupSizes[t],i=this.indexOfGroup(t),o=i+r,a=i;a<o;a++)n+="".concat(this.tag.getRule(a)).concat(z8);return n},e}(),mv=new Map,Iy=new Map,gv=1,dg=function(e){if(mv.has(e))return mv.get(e);for(;Iy.has(gv);)gv++;var t=gv++;return mv.set(e,t),Iy.set(t,e),t},Zye=function(e,t){gv=t+1,mv.set(e,t),Iy.set(t,e)},Jye="style[".concat(qf,"][").concat(mH,'="').concat(T2,'"]'),ebe=new RegExp("^".concat(qf,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),tbe=function(e,t,n){for(var r,i=n.split(","),o=0,a=i.length;o<a;o++)(r=i[o])&&e.registerName(t,r)},nbe=function(e,t){for(var n,r=((n=t.textContent)!==null&&n!==void 0?n:"").split(z8),i=[],o=0,a=r.length;o<a;o++){var l=r[o].trim();if(l){var c=l.match(ebe);if(c){var u=0|parseInt(c[1],10),p=c[2];u!==0&&(Zye(p,u),tbe(e,p,c[3]),e.getTag().insertRules(u,i)),i.length=0}else i.push(l)}}},Hk=function(e){for(var t=document.querySelectorAll(Jye),n=0,r=t.length;n<r;n++){var i=t[n];i&&i.getAttribute(qf)!==hH&&(nbe(e,i),i.parentNode&&i.parentNode.removeChild(i))}};function rbe(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null}var xH=function(e){var t=document.head,n=e||t,r=document.createElement("style"),i=function(l){var c=Array.from(l.querySelectorAll("style[".concat(qf,"]")));return c[c.length-1]}(n),o=i!==void 0?i.nextSibling:null;r.setAttribute(qf,hH),r.setAttribute(mH,T2);var a=rbe();return a&&r.setAttribute("nonce",a),n.insertBefore(r,o),r},ibe=function(){function e(t){this.element=xH(t),this.element.appendChild(document.createTextNode("")),this.sheet=function(n){if(n.sheet)return n.sheet;for(var r=document.styleSheets,i=0,o=r.length;i<o;i++){var a=r[i];if(a.ownerNode===n)return a}throw Um(17)}(this.element),this.length=0}return e.prototype.insertRule=function(t,n){try{return this.sheet.insertRule(n,t),this.length++,!0}catch{return!1}},e.prototype.deleteRule=function(t){this.sheet.deleteRule(t),this.length--},e.prototype.getRule=function(t){var n=this.sheet.cssRules[t];return n&&n.cssText?n.cssText:""},e}(),obe=function(){function e(t){this.element=xH(t),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(t,n){if(t<=this.length&&t>=0){var r=document.createTextNode(n);return this.element.insertBefore(r,this.nodes[t]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(t){this.element.removeChild(this.nodes[t]),this.length--},e.prototype.getRule=function(t){return t<this.length?this.nodes[t].textContent:""},e}(),abe=function(){function e(t){this.rules=[],this.length=0}return e.prototype.insertRule=function(t,n){return t<=this.length&&(this.rules.splice(t,0,n),this.length++,!0)},e.prototype.deleteRule=function(t){this.rules.splice(t,1),this.length--},e.prototype.getRule=function(t){return t<this.length?this.rules[t]:""},e}(),zk=Oy,lbe={isServer:!Oy,useCSSOMInjection:!Lye},wH=function(){function e(t,n,r){t===void 0&&(t=Xf),n===void 0&&(n={});var i=this;this.options=Io(Io({},lbe),t),this.gs=n,this.names=new Map(r),this.server=!!t.isServer,!this.server&&Oy&&zk&&(zk=!1,Hk(this)),U8(this,function(){return function(o){for(var a=o.getTag(),l=a.length,c="",u=function(h){var m=function(S){return Iy.get(S)}(h);if(m===void 0)return"continue";var g=o.names.get(m),b=a.getGroup(h);if(g===void 0||!g.size||b.length===0)return"continue";var E="".concat(qf,".g").concat(h,'[id="').concat(m,'"]'),x="";g!==void 0&&g.forEach(function(S){S.length>0&&(x+="".concat(S,","))}),c+="".concat(b).concat(E,'{content:"').concat(x,'"}').concat(z8)},p=0;p<l;p++)u(p);return c}(i)})}return e.registerId=function(t){return dg(t)},e.prototype.rehydrate=function(){!this.server&&Oy&&Hk(this)},e.prototype.reconstructWithOptions=function(t,n){return n===void 0&&(n=!0),new e(Io(Io({},this.options),t),this.gs,n&&this.names||void 0)},e.prototype.allocateGSInstance=function(t){return this.gs[t]=(this.gs[t]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(t=function(n){var r=n.useCSSOMInjection,i=n.target;return n.isServer?new abe(i):r?new ibe(i):new obe(i)}(this.options),new Qye(t)));var t},e.prototype.hasNameForId=function(t,n){return this.names.has(t)&&this.names.get(t).has(n)},e.prototype.registerName=function(t,n){if(dg(t),this.names.has(t))this.names.get(t).add(n);else{var r=new Set;r.add(n),this.names.set(t,r)}},e.prototype.insertRules=function(t,n,r){this.registerName(t,n),this.getTag().insertRules(dg(t),r)},e.prototype.clearNames=function(t){this.names.has(t)&&this.names.get(t).clear()},e.prototype.clearRules=function(t){this.getTag().clearGroup(dg(t)),this.clearNames(t)},e.prototype.clearTag=function(){this.tag=void 0},e}(),sbe=/&/g,cbe=/^\s*\/\/.*$/gm;function _H(e,t){return e.map(function(n){return n.type==="rule"&&(n.value="".concat(t," ").concat(n.value),n.value=n.value.replaceAll(",",",".concat(t," ")),n.props=n.props.map(function(r){return"".concat(t," ").concat(r)})),Array.isArray(n.children)&&n.type!=="@keyframes"&&(n.children=_H(n.children,t)),n})}function ube(e){var t,n,r,i=Xf,o=i.options,a=o===void 0?Xf:o,l=i.plugins,c=l===void 0?O2:l,u=function(m,g,b){return b.startsWith(n)&&b.endsWith(n)&&b.replaceAll(n,"").length>0?".".concat(t):m},p=c.slice();p.push(function(m){m.type===E2&&m.value.includes("&")&&(m.props[0]=m.props[0].replace(sbe,n).replace(r,u))}),a.prefix&&p.push(Mye),p.push(Nye);var h=function(m,g,b,E){g===void 0&&(g=""),b===void 0&&(b=""),E===void 0&&(E="&"),t=E,n=g,r=new RegExp("\\".concat(n,"\\b"),"g");var x=m.replace(cbe,""),S=kye(b||g?"".concat(b," ").concat(g," { ").concat(x," }"):x);a.namespace&&(S=_H(S,a.namespace));var C=[];return Ty(S,Aye(p.concat(Rye(function(_){return C.push(_)})))),C};return h.hash=c.length?c.reduce(function(m,g){return g.name||Um(15),sf(m,g.name)},vH).toString():"",h}var dbe=new wH,BE=ube(),TH=fe.createContext({shouldForwardProp:void 0,styleSheet:dbe,stylis:BE});TH.Consumer;fe.createContext(void 0);function Wk(){return d.useContext(TH)}var fbe=function(){function e(t,n){var r=this;this.inject=function(i,o){o===void 0&&(o=BE);var a=r.name+o.hash;i.hasNameForId(r.id,a)||i.insertRules(r.id,a,o(r.rules,a,"@keyframes"))},this.name=t,this.id="sc-keyframes-".concat(t),this.rules=n,U8(this,function(){throw Um(12,String(r.name))})}return e.prototype.getName=function(t){return t===void 0&&(t=BE),this.name+t.hash},e}(),pbe=function(e){return e>="A"&&e<="Z"};function Uk(e){for(var t="",n=0;n<e.length;n++){var r=e[n];if(n===1&&r==="-"&&e[0]==="-")return e;pbe(r)?t+="-"+r.toLowerCase():t+=r}return t.startsWith("ms-")?"-"+t:t}var OH=function(e){return e==null||e===!1||e===""},IH=function(e){var t,n,r=[];for(var i in e){var o=e[i];e.hasOwnProperty(i)&&!OH(o)&&(Array.isArray(o)&&o.isCss||Yf(o)?r.push("".concat(Uk(i),":"),o,";"):am(o)?r.push.apply(r,_y(_y(["".concat(i," {")],IH(o),!1),["}"],!1)):r.push("".concat(Uk(i),": ").concat((t=i,(n=o)==null||typeof n=="boolean"||n===""?"":typeof n!="number"||n===0||t in Pye||t.startsWith("--")?String(n).trim():"".concat(n,"px")),";")))}return r};function Iu(e,t,n,r){if(OH(e))return[];if(W8(e))return[".".concat(e.styledComponentId)];if(Yf(e)){if(!Yf(o=e)||o.prototype&&o.prototype.isReactComponent||!t)return[e];var i=e(t);return Iu(i,t,n,r)}var o;return e instanceof fbe?n?(e.inject(n,r),[e.getName(r)]):[e]:am(e)?IH(e):Array.isArray(e)?Array.prototype.concat.apply(O2,e.map(function(a){return Iu(a,t,n,r)})):[e.toString()]}function hbe(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(Yf(n)&&!W8(n))return!1}return!0}var mbe=yH(T2),gbe=function(){function e(t,n,r){this.rules=t,this.staticRulesId="",this.isStatic=(r===void 0||r.isStatic)&&hbe(t),this.componentId=n,this.baseHash=sf(mbe,n),this.baseStyle=r,wH.registerId(n)}return e.prototype.generateAndInjectStyles=function(t,n,r){var i=this.baseStyle?this.baseStyle.generateAndInjectStyles(t,n,r):"";if(this.isStatic&&!r.hash)if(this.staticRulesId&&n.hasNameForId(this.componentId,this.staticRulesId))i=Su(i,this.staticRulesId);else{var o=jk(Iu(this.rules,t,n,r)),a=DE(sf(this.baseHash,o)>>>0);if(!n.hasNameForId(this.componentId,a)){var l=r(o,".".concat(a),void 0,this.componentId);n.insertRules(this.componentId,a,l)}i=Su(i,a),this.staticRulesId=a}else{for(var c=sf(this.baseHash,r.hash),u="",p=0;p<this.rules.length;p++){var h=this.rules[p];if(typeof h=="string")u+=h;else if(h){var m=jk(Iu(h,t,n,r));c=sf(c,m+p),u+=m}}if(u){var g=DE(c>>>0);n.hasNameForId(this.componentId,g)||n.insertRules(this.componentId,g,r(u,".".concat(g),void 0,this.componentId)),i=Su(i,g)}}return i},e}(),kH=fe.createContext(void 0);kH.Consumer;var y9={};function vbe(e,t,n){var r=W8(e),i=e,o=!v9(e),a=t.attrs,l=a===void 0?O2:a,c=t.componentId,u=c===void 0?function(O,k){var T=typeof O!="string"?"sc":Pk(O);y9[T]=(y9[T]||0)+1;var I="".concat(T,"-").concat(Hye(T2+T+y9[T]));return k?"".concat(k,"-").concat(I):I}(t.displayName,t.parentComponentId):c,p=t.displayName,h=p===void 0?function(O){return v9(O)?"styled.".concat(O):"Styled(".concat(zye(O),")")}(e):p,m=t.displayName&&t.componentId?"".concat(Pk(t.displayName),"-").concat(t.componentId):t.componentId||u,g=r&&i.attrs?i.attrs.concat(l).filter(Boolean):l,b=t.shouldForwardProp;if(r&&i.shouldForwardProp){var E=i.shouldForwardProp;if(t.shouldForwardProp){var x=t.shouldForwardProp;b=function(O,k){return E(O,k)&&x(O,k)}}else b=E}var S=new gbe(n,m,r?i.componentStyle:void 0);function C(O,k){return function(T,I,$){var M=T.attrs,R=T.componentStyle,j=T.defaultProps,D=T.foldedComponentIds,L=T.styledComponentId,B=T.target,H=fe.useContext(kH),W=Wk(),z=T.shouldForwardProp||W.shouldForwardProp,V=Dye(I,H,j)||Xf,X=function(ee,se,ne){for(var oe,pe=Io(Io({},se),{className:void 0,theme:ne}),be=0;be<ee.length;be+=1){var ue=Yf(oe=ee[be])?oe(pe):oe;for(var de in ue)pe[de]=de==="className"?Su(pe[de],ue[de]):de==="style"?Io(Io({},pe[de]),ue[de]):ue[de]}return se.className&&(pe.className=Su(pe.className,se.className)),pe}(M,I,V),A=X.as||B,P={};for(var Y in X)X[Y]===void 0||Y[0]==="$"||Y==="as"||Y==="theme"&&X.theme===V||(Y==="forwardedAs"?P.as=X.forwardedAs:z&&!z(Y,A)||(P[Y]=X[Y]));var U=function(ee,se){var ne=Wk(),oe=ee.generateAndInjectStyles(se,ne.styleSheet,ne.stylis);return oe}(R,X),Q=Su(D,L);return U&&(Q+=" "+U),X.className&&(Q+=" "+X.className),P[v9(A)&&!gH.has(A)?"class":"className"]=Q,P.ref=$,d.createElement(A,P)}(_,O,k)}C.displayName=h;var _=fe.forwardRef(C);return _.attrs=g,_.componentStyle=S,_.displayName=h,_.shouldForwardProp=b,_.foldedComponentIds=r?Su(i.foldedComponentIds,i.styledComponentId):"",_.styledComponentId=m,_.target=r?i.target:e,Object.defineProperty(_,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(O){this._foldedDefaultProps=r?function(k){for(var T=[],I=1;I<arguments.length;I++)T[I-1]=arguments[I];for(var $=0,M=T;$<M.length;$++)FE(k,M[$],!0);return k}({},i.defaultProps,O):O}}),U8(_,function(){return".".concat(_.styledComponentId)}),o&&EH(_,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),_}function Kk(e,t){for(var n=[e[0]],r=0,i=t.length;r<i;r+=1)n.push(t[r],e[r+1]);return n}var Vk=function(e){return Object.assign(e,{isCss:!0})};function ybe(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(Yf(e)||am(e))return Vk(Iu(Kk(O2,_y([e],t,!0))));var r=e;return t.length===0&&r.length===1&&typeof r[0]=="string"?Iu(r):Vk(Iu(Kk(r,t)))}function jE(e,t,n){if(n===void 0&&(n=Xf),!t)throw Um(1,t);var r=function(i){for(var o=[],a=1;a<arguments.length;a++)o[a-1]=arguments[a];return e(t,n,ybe.apply(void 0,_y([i],o,!1)))};return r.attrs=function(i){return jE(e,t,Io(Io({},n),{attrs:Array.prototype.concat(n.attrs,i).filter(Boolean)}))},r.withConfig=function(i){return jE(e,t,Io(Io({},n),i))},r}var $H=function(e){return jE(vbe,e)},Xn=$H;gH.forEach(function(e){Xn[e]=$H(e)});const bbe=Xn.div`
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
background: #f0f2f5;
`,Cbe=Xn(h1)`
width: 400px;
`,Sbe=()=>{const e=Mc(),{setUser:t,setToken:n}=B8(),[r,i]=fe.useState(!1),o=async a=>{try{i(!0);const l={id:"1",name:"测试用户",email:a.email,role:"admin"},c="mock-token";t(l),n(c),po.success("登录成功"),e("/")}catch{po.error("登录失败")}finally{i(!1)}};return Ee.jsx(bbe,{children:Ee.jsx(Cbe,{title:"登录",children:Ee.jsxs(Mn,{name:"login",onFinish:o,autoComplete:"off",layout:"vertical",children:[Ee.jsx(Mn.Item,{label:"邮箱",name:"email",rules:[{required:!0,message:"请输入邮箱"},{type:"email",message:"请输入有效的邮箱地址"}],children:Ee.jsx(Qi,{})}),Ee.jsx(Mn.Item,{label:"密码",name:"password",rules:[{required:!0,message:"请输入密码"}],children:Ee.jsx(Qi.Password,{})}),Ee.jsx(Mn.Item,{children:Ee.jsx(Hn,{type:"primary",htmlType:"submit",block:!0,loading:r,children:"登录"})})]})})})};var NH=d.createContext({});function Sa(e,t){Ebe(e)&&(e="100%");var n=xbe(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:(t===360?e=(e<0?e%t+t:e%t)/parseFloat(String(t)):e=e%t/parseFloat(String(t)),e)}function Ebe(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function xbe(e){return typeof e=="string"&&e.indexOf("%")!==-1}function wbe(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function fg(e){return e<=1?"".concat(Number(e)*100,"%"):e}function b9(e){return e.length===1?"0"+e:String(e)}function _be(e,t,n){return{r:Sa(e,255)*255,g:Sa(t,255)*255,b:Sa(n,255)*255}}function C9(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*(6*n):n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Tbe(e,t,n){var r,i,o;if(e=Sa(e,360),t=Sa(t,100),n=Sa(n,100),t===0)i=n,o=n,r=n;else{var a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;r=C9(l,a,e+1/3),i=C9(l,a,e),o=C9(l,a,e-1/3)}return{r:r*255,g:i*255,b:o*255}}function Obe(e,t,n){e=Sa(e,255),t=Sa(t,255),n=Sa(n,255);var r=Math.max(e,t,n),i=Math.min(e,t,n),o=0,a=r,l=r-i,c=r===0?0:l/r;if(r===i)o=0;else{switch(r){case e:o=(t-n)/l+(t<n?6:0);break;case t:o=(n-e)/l+2;break;case n:o=(e-t)/l+4;break}o/=6}return{h:o,s:c,v:a}}function Ibe(e,t,n){e=Sa(e,360)*6,t=Sa(t,100),n=Sa(n,100);var r=Math.floor(e),i=e-r,o=n*(1-t),a=n*(1-i*t),l=n*(1-(1-i)*t),c=r%6,u=[n,a,o,o,l,n][c],p=[l,n,n,a,o,o][c],h=[o,o,l,n,n,a][c];return{r:u*255,g:p*255,b:h*255}}function kbe(e,t,n,r){var i=[b9(Math.round(e).toString(16)),b9(Math.round(t).toString(16)),b9(Math.round(n).toString(16))];return i.join("")}function Gk(e){return Uo(e)/255}function Uo(e){return parseInt(e,16)}var qk={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function bp(e){var t={r:0,g:0,b:0},n=1,r=null,i=null,o=null,a=!1,l=!1;return typeof e=="string"&&(e=Abe(e)),typeof e=="object"&&(Yl(e.r)&&Yl(e.g)&&Yl(e.b)?(t=_be(e.r,e.g,e.b),a=!0,l=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Yl(e.h)&&Yl(e.s)&&Yl(e.v)?(r=fg(e.s),i=fg(e.v),t=Ibe(e.h,r,i),a=!0,l="hsv"):Yl(e.h)&&Yl(e.s)&&Yl(e.l)&&(r=fg(e.s),o=fg(e.l),t=Tbe(e.h,r,o),a=!0,l="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=wbe(n),{ok:a,format:e.format||l,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}var $be="[-\\+]?\\d+%?",Nbe="[-\\+]?\\d*\\.\\d+%?",sc="(?:".concat(Nbe,")|(?:").concat($be,")"),S9="[\\s|\\(]+(".concat(sc,")[,|\\s]+(").concat(sc,")[,|\\s]+(").concat(sc,")\\s*\\)?"),E9="[\\s|\\(]+(".concat(sc,")[,|\\s]+(").concat(sc,")[,|\\s]+(").concat(sc,")[,|\\s]+(").concat(sc,")\\s*\\)?"),Ua={CSS_UNIT:new RegExp(sc),rgb:new RegExp("rgb"+S9),rgba:new RegExp("rgba"+E9),hsl:new RegExp("hsl"+S9),hsla:new RegExp("hsla"+E9),hsv:new RegExp("hsv"+S9),hsva:new RegExp("hsva"+E9),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function Abe(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(qk[e])e=qk[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=Ua.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=Ua.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=Ua.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=Ua.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=Ua.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=Ua.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=Ua.hex8.exec(e),n?{r:Uo(n[1]),g:Uo(n[2]),b:Uo(n[3]),a:Gk(n[4]),format:t?"name":"hex8"}:(n=Ua.hex6.exec(e),n?{r:Uo(n[1]),g:Uo(n[2]),b:Uo(n[3]),format:t?"name":"hex"}:(n=Ua.hex4.exec(e),n?{r:Uo(n[1]+n[1]),g:Uo(n[2]+n[2]),b:Uo(n[3]+n[3]),a:Gk(n[4]+n[4]),format:t?"name":"hex8"}:(n=Ua.hex3.exec(e),n?{r:Uo(n[1]+n[1]),g:Uo(n[2]+n[2]),b:Uo(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function Yl(e){return!!Ua.CSS_UNIT.exec(String(e))}var pg=2,Xk=.16,Rbe=.05,Mbe=.05,Pbe=.15,AH=5,RH=4,Lbe=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function Yk(e){var t=e.r,n=e.g,r=e.b,i=Obe(t,n,r);return{h:i.h*360,s:i.s,v:i.v}}function hg(e){var t=e.r,n=e.g,r=e.b;return"#".concat(kbe(t,n,r))}function Dbe(e,t,n){var r=n/100,i={r:(t.r-e.r)*r+e.r,g:(t.g-e.g)*r+e.g,b:(t.b-e.b)*r+e.b};return i}function Qk(e,t,n){var r;return Math.round(e.h)>=60&&Math.round(e.h)<=240?r=n?Math.round(e.h)-pg*t:Math.round(e.h)+pg*t:r=n?Math.round(e.h)+pg*t:Math.round(e.h)-pg*t,r<0?r+=360:r>=360&&(r-=360),r}function Zk(e,t,n){if(e.h===0&&e.s===0)return e.s;var r;return n?r=e.s-Xk*t:t===RH?r=e.s+Xk:r=e.s+Rbe*t,r>1&&(r=1),n&&t===AH&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2))}function Jk(e,t,n){var r;return n?r=e.v+Mbe*t:r=e.v-Pbe*t,r>1&&(r=1),Number(r.toFixed(2))}function Fbe(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=bp(e),i=AH;i>0;i-=1){var o=Yk(r),a=hg(bp({h:Qk(o,i,!0),s:Zk(o,i,!0),v:Jk(o,i,!0)}));n.push(a)}n.push(hg(r));for(var l=1;l<=RH;l+=1){var c=Yk(r),u=hg(bp({h:Qk(c,l),s:Zk(c,l),v:Jk(c,l)}));n.push(u)}return t.theme==="dark"?Lbe.map(function(p){var h=p.index,m=p.opacity,g=hg(Dbe(bp(t.backgroundColor||"#141414"),bp(n[h]),m*100));return g}):n}var HE=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];HE.primary=HE[5];function MH(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function Bbe(e){return MH(e)instanceof ShadowRoot}function jbe(e){return Bbe(e)?MH(e):null}function Hbe(e){return e.replace(/-(.)/g,function(t,n){return n.toUpperCase()})}function zbe(e,t){_b(e,"[@ant-design/icons] ".concat(t))}function e$(e){return Nt(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(Nt(e.icon)==="object"||typeof e.icon=="function")}function t$(){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[Hbe(n)]=r}return t},{})}function zE(e,t,n){return n?fe.createElement(e.tag,te(te({key:t},t$(e.attrs)),n),(e.children||[]).map(function(r,i){return zE(r,"".concat(t,"-").concat(e.tag,"-").concat(i))})):fe.createElement(e.tag,te({key:t},t$(e.attrs)),(e.children||[]).map(function(r,i){return zE(r,"".concat(t,"-").concat(e.tag,"-").concat(i))}))}function PH(e){return Fbe(e)[0]}function LH(e){return e?Array.isArray(e)?e:[e]:[]}var Wbe=`
.anticon {
display: inline-flex;
align-items: center;
color: inherit;
font-style: normal;
line-height: 0;
text-align: center;
text-transform: none;
vertical-align: -0.125em;
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
.anticon > * {
line-height: 1;
}
.anticon svg {
display: inline-block;
}
.anticon::before {
display: none;
}
.anticon .anticon-icon {
display: block;
}
.anticon[tabindex] {
cursor: pointer;
}
.anticon-spin::before,
.anticon-spin {
display: inline-block;
-webkit-animation: loadingCircle 1s infinite linear;
animation: loadingCircle 1s infinite linear;
}
@-webkit-keyframes loadingCircle {
100% {
-webkit-transform: rotate(360deg);
transform: rotate(360deg);
}
}
@keyframes loadingCircle {
100% {
-webkit-transform: rotate(360deg);
transform: rotate(360deg);
}
}
`,Ube=function(t){var n=d.useContext(NH),r=n.csp,i=n.prefixCls,o=Wbe;i&&(o=o.replace(/anticon/g,i)),d.useEffect(function(){var a=t.current,l=jbe(a);Sf(o,"@ant-design-icons",{prepend:!0,csp:r,attachTo:l})},[])},Kbe=["icon","className","onClick","style","primaryColor","secondaryColor"],lh={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function Vbe(e){var t=e.primaryColor,n=e.secondaryColor;lh.primaryColor=t,lh.secondaryColor=n||PH(t),lh.calculated=!!n}function Gbe(){return te({},lh)}var C1=function(t){var n=t.icon,r=t.className,i=t.onClick,o=t.style,a=t.primaryColor,l=t.secondaryColor,c=Yt(t,Kbe),u=d.useRef(),p=lh;if(a&&(p={primaryColor:a,secondaryColor:l||PH(a)}),Ube(u),zbe(e$(n),"icon should be icon definiton, but got ".concat(n)),!e$(n))return null;var h=n;return h&&typeof h.icon=="function"&&(h=te(te({},h),{},{icon:h.icon(p.primaryColor,p.secondaryColor)})),zE(h.icon,"svg-".concat(h.name),te(te({className:r,onClick:i,style:o,"data-icon":h.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},c),{},{ref:u}))};C1.displayName="IconReact";C1.getTwoToneColors=Gbe;C1.setTwoToneColors=Vbe;function DH(e){var t=LH(e),n=_e(t,2),r=n[0],i=n[1];return C1.setTwoToneColors({primaryColor:r,secondaryColor:i})}function qbe(){var e=C1.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var Xbe=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];DH(HE.primary);var jr=d.forwardRef(function(e,t){var n=e.className,r=e.icon,i=e.spin,o=e.rotate,a=e.tabIndex,l=e.onClick,c=e.twoToneColor,u=Yt(e,Xbe),p=d.useContext(NH),h=p.prefixCls,m=h===void 0?"anticon":h,g=p.rootClassName,b=le(g,m,J(J({},"".concat(m,"-").concat(r.name),!!r.name),"".concat(m,"-spin"),!!i||r.name==="loading"),n),E=a;E===void 0&&l&&(E=-1);var x=o?{msTransform:"rotate(".concat(o,"deg)"),transform:"rotate(".concat(o,"deg)")}:void 0,S=LH(c),C=_e(S,2),_=C[0],O=C[1];return d.createElement("span",Ve({role:"img","aria-label":r.name},u,{ref:t,tabIndex:E,onClick:l,className:b}),d.createElement(C1,{icon:r,primaryColor:_,secondaryColor:O,style:x}))});jr.displayName="AntdIcon";jr.getTwoToneColor=qbe;jr.setTwoToneColor=DH;var Ybe=function(t,n){return d.createElement(jr,Ve({},t,{ref:n,icon:X1e}))},FH=d.forwardRef(Ybe),Qbe=function(t,n){return d.createElement(jr,Ve({},t,{ref:n,icon:nB}))},Zbe=d.forwardRef(Qbe),Jbe=function(t,n){return d.createElement(jr,Ve({},t,{ref:n,icon:Y1e}))},e2e=d.forwardRef(Jbe),t2e=function(t,n){return d.createElement(jr,Ve({},t,{ref:n,icon:dj}))},K8=d.forwardRef(t2e),n2e=function(t,n){return d.createElement(jr,Ve({},t,{ref:n,icon:fj}))},ky=d.forwardRef(n2e),r2e=function(t,n){return d.createElement(jr,Ve({},t,{ref:n,icon:zB}))},BH=d.forwardRef(r2e),i2e=function(t,n){return d.createElement(jr,Ve({},t,{ref:n,icon:Hde}))},o2e=d.forwardRef(i2e),a2e=function(t,n){return d.createElement(jr,Ve({},t,{ref:n,icon:Lpe}))},l2e=d.forwardRef(a2e),s2e=function(t,n){return d.createElement(jr,Ve({},t,{ref:n,icon:Dpe}))},c2e=d.forwardRef(s2e),u2e=function(t,n){return d.createElement(jr,Ve({},t,{ref:n,icon:Hpe}))},d2e=d.forwardRef(u2e),f2e=function(t,n){return d.createElement(jr,Ve({},t,{ref:n,icon:EB}))},I2=d.forwardRef(f2e),p2e=function(t,n){return d.createElement(jr,Ve({},t,{ref:n,icon:Qpe}))},jH=d.forwardRef(p2e),h2e=function(t,n){return d.createElement(jr,Ve({},t,{ref:n,icon:Zpe}))},m2e=d.forwardRef(h2e),g2e=function(t,n){return d.createElement(jr,Ve({},t,{ref:n,icon:Jpe}))},V8=d.forwardRef(g2e),v2e=function(t,n){return d.createElement(jr,Ve({},t,{ref:n,icon:ehe}))},y2e=d.forwardRef(v2e),b2e=function(t,n){return d.createElement(jr,Ve({},t,{ref:n,icon:the}))},HH=d.forwardRef(b2e),C2e=function(t,n){return d.createElement(jr,Ve({},t,{ref:n,icon:nhe}))},zH=d.forwardRef(C2e),S2e=function(t,n){return d.createElement(jr,Ve({},t,{ref:n,icon:rhe}))},E2e=d.forwardRef(S2e),x2e=function(t,n){return d.createElement(jr,Ve({},t,{ref:n,icon:ihe}))},WH=d.forwardRef(x2e);const w2e=[{id:"1",name:"开源版文档",description:"notebase-doc开源版文档",type:"public",coverImage:"/images/spaces/opensource.jpg",starred:!0,parentId:null,createdAt:"2024-01-01",updatedAt:"2024-01-24",createdBy:"1",memberCount:10,documentCount:25},{id:"2",name:"商业版文档",description:"notebase-doc商业版文档",type:"public",coverImage:"/images/spaces/commercial.jpg",starred:!1,parentId:null,createdAt:"2024-01-01",updatedAt:"2024-01-24",createdBy:"1",memberCount:5,documentCount:15},{id:"3",name:"使用帮助",description:"notebase-doc使用帮助",type:"public",coverImage:"/images/spaces/help.jpg",starred:!1,parentId:null,createdAt:"2024-01-01",updatedAt:"2024-01-24",createdBy:"1",memberCount:3,documentCount:10},{id:"4",name:"付费知识库",description:"演示知识库付费阅读功能",type:"private",coverImage:"/images/spaces/paid.jpg",starred:!1,parentId:null,createdAt:"2024-01-01",updatedAt:"2024-01-24",createdBy:"1",memberCount:2,documentCount:5}],G8=F8((e,t)=>({spaces:[],currentSpace:null,setSpaces:n=>e({spaces:n}),setCurrentSpace:n=>e({currentSpace:n}),fetchSpaces:async()=>{await new Promise(n=>setTimeout(n,1e3)),e({spaces:w2e})},toggleStarSpace:n=>e(r=>({spaces:r.spaces.map(i=>i.id===n?{...i,starred:!i.starred}:i)})),createSpace:async n=>{await new Promise(i=>setTimeout(i,1e3));const r={id:String(Date.now()),name:n.name,description:n.description,type:n.type,coverImage:n.coverImage,starred:!1,parentId:null,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),createdBy:"1",memberCount:1,documentCount:0};e(i=>({spaces:[...i.spaces,r]}))},fetchSpaceDetail:async n=>{await new Promise(i=>setTimeout(i,1e3));const r=t().spaces.find(i=>i.id===n);if(r)e({currentSpace:r});else throw new Error("Space not found")}})),{Title:_2e,Paragraph:T2e}=Hm,O2e=Xn(h1)`
.ant-card-body {
height: 200px;
}
`,I2e=({space:e,onClick:t})=>Ee.jsxs(O2e,{hoverable:!0,onClick:t,children:[Ee.jsx(_2e,{level:4,style:{marginBottom:8},children:e.name}),Ee.jsx(T2e,{ellipsis:{rows:2},children:e.description})]}),k2e=({visible:e,onClose:t})=>{const[n]=Mn.useForm(),{createSpace:r}=G8(),[i,o]=fe.useState(!1),a=async l=>{try{o(!0),await r(l),po.success("创建成功"),t(),n.resetFields()}catch{po.error("创建失败")}finally{o(!1)}};return Ee.jsx(sa,{title:"创建空间",open:e,onCancel:t,onOk:()=>n.submit(),confirmLoading:i,children:Ee.jsxs(Mn,{form:n,layout:"vertical",onFinish:a,children:[Ee.jsx(Mn.Item,{name:"name",label:"空间名称",rules:[{required:!0,message:"请输入空间名称"}],children:Ee.jsx(Qi,{placeholder:"请输入空间名称"})}),Ee.jsx(Mn.Item,{name:"description",label:"空间描述",rules:[{required:!0,message:"请输入空间描述"}],children:Ee.jsx(Qi.TextArea,{placeholder:"请输入空间描述"})}),Ee.jsx(Mn.Item,{name:"type",label:"空间类型",initialValue:"private",rules:[{required:!0}],children:Ee.jsxs(Ro,{children:[Ee.jsx(Ro.Option,{value:"private",children:"私有"}),Ee.jsx(Ro.Option,{value:"public",children:"公开"})]})})]})})},$2e=Xn.div`
padding: 24px;
`,N2e=Xn.div`
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 24px;
`,A2e=Xn.h2`
margin: 0;
`,n$=()=>{const e=Mc(),{spaces:t,fetchSpaces:n}=G8(),[r,i]=fe.useState("grid"),[o,a]=fe.useState(!0),[l,c]=fe.useState(!1);console.log("spaces",t,o),fe.useEffect(()=>{(async()=>{try{await n()}finally{a(!1)}})()},[n]);const u=p=>{e(`/spaces/${p}`)};return Ee.jsxs($2e,{children:[Ee.jsxs(N2e,{children:[Ee.jsx(A2e,{children:"知识空间"}),Ee.jsxs(fo,{children:[Ee.jsxs(Ai.Group,{value:r,onChange:p=>i(p.target.value),buttonStyle:"solid",children:[Ee.jsxs(Ai.Button,{value:"grid",children:[Ee.jsx(FH,{})," 网格"]}),Ee.jsxs(Ai.Button,{value:"list",children:[Ee.jsx(Zbe,{})," 列表"]})]}),Ee.jsx(Hn,{type:"primary",icon:Ee.jsx(I2,{}),onClick:()=>c(!0),children:"创建空间"})]})]}),Ee.jsx(LB,{gutter:[16,16],children:t.map(p=>Ee.jsx(b8,{xs:24,sm:12,md:8,lg:6,children:Ee.jsx(I2e,{space:p,onClick:()=>u(p.id)})},p.id))}),Ee.jsx(k2e,{visible:l,onClose:()=>c(!1)})]})},x9=Xn(Hn)`
padding: 0 4px;
height: 24px;
line-height: 24px;
`,R2e=({spaceId:e})=>{const[t,n]=fe.useState(!0),[r,i]=fe.useState([]),o=Mc();fe.useEffect(()=>{const l=[{id:"1",title:"快速开始",content:`# 快速开始
欢迎使用...`,spaceId:e,type:"markdown",parentId:null,createdAt:"2024-01-24T10:00:00Z",updatedAt:"2024-01-24T10:00:00Z",createdBy:"1"}];setTimeout(()=>{i(l),n(!1)},1e3)},[e]);const a=[{title:"标题",dataIndex:"title",key:"title",render:(l,c)=>Ee.jsxs(fo,{children:[Ee.jsx(o2e,{}),Ee.jsx("a",{onClick:()=>o(`/documents/${c.id}`),children:l}),c.type==="markdown"&&Ee.jsx(P8,{color:"blue",children:"Markdown"})]})},{title:"更新时间",dataIndex:"updatedAt",key:"updatedAt",render:l=>new Date(l).toLocaleString()},{title:"操作",key:"action",render:(l,c)=>Ee.jsxs(fo,{size:"small",children:[Ee.jsx(x9,{type:"link",icon:Ee.jsx(BH,{}),onClick:()=>o(`/documents/${c.id}`),children:"预览"}),Ee.jsx(x9,{type:"link",icon:Ee.jsx(ky,{}),onClick:()=>o(`/documents/${c.id}/edit`),children:"编辑"}),Ee.jsx(x9,{type:"link",icon:Ee.jsx(K8,{}),danger:!0,children:"删除"})]})}];return Ee.jsx(zl,{columns:a,dataSource:r,loading:t,rowKey:"id",pagination:!1})},r$=Xn(h1)`
margin-bottom: 24px;
`,M2e=Xn.div`
max-width: 600px;
`,P2e=({space:e})=>{const[t]=Mn.useForm(),[n,r]=fe.useState(!1),[i,o]=fe.useState([{uid:"-1",name:"cover",status:"done",url:e.coverImage}]),a=async l=>{var c,u,p;try{r(!0),console.log("Updating space:",{...l,coverImage:((c=i[0])==null?void 0:c.url)||((p=(u=i[0])==null?void 0:u.response)==null?void 0:p.url)}),po.success("更新成功")}catch(h){console.error("Update space failed:",h),po.error("更新失败")}finally{r(!1)}};return Ee.jsx(M2e,{children:Ee.jsxs(Mn,{form:t,layout:"vertical",initialValues:{name:e.name,description:e.description,type:e.type},onFinish:a,children:[Ee.jsxs(r$,{title:"基本信息",children:[Ee.jsx(Mn.Item,{name:"name",label:"空间名称",rules:[{required:!0,message:"请输入空间名称"}],children:Ee.jsx(Qi,{placeholder:"请输入空间名称"})}),Ee.jsx(Mn.Item,{name:"description",label:"空间描述",rules:[{required:!0,message:"请输入空间描述"}],children:Ee.jsx(Qi.TextArea,{placeholder:"请输入空间描述",rows:4})}),Ee.jsx(Mn.Item,{name:"type",label:"空间类型",rules:[{required:!0,message:"请选择空间类型"}],children:Ee.jsxs(Ai.Group,{children:[Ee.jsx(Ai,{value:"public",children:"公开空间"}),Ee.jsx(Ai,{value:"private",children:"私有空间"})]})}),Ee.jsx(Mn.Item,{label:"封面图片",children:Ee.jsx(D8,{listType:"picture-card",maxCount:1,fileList:i,onChange:({fileList:l})=>o(l),action:"/api/upload",accept:"image/*",children:i.length===0&&Ee.jsxs("div",{children:[Ee.jsx(I2,{}),Ee.jsx("div",{style:{marginTop:8},children:"上传图片"})]})})})]}),Ee.jsxs(r$,{title:"高级设置",children:[Ee.jsx(Mn.Item,{name:"allowComment",valuePropName:"checked",children:Ee.jsxs(Ai.Group,{children:[Ee.jsx(Ai,{value:!0,children:"允许评论"}),Ee.jsx(Ai,{value:!1,children:"禁止评论"})]})}),Ee.jsx(Mn.Item,{name:"allowShare",valuePropName:"checked",children:Ee.jsxs(Ai.Group,{children:[Ee.jsx(Ai,{value:!0,children:"允许分享"}),Ee.jsx(Ai,{value:!1,children:"禁止分享"})]})})]}),Ee.jsx(Mn.Item,{children:Ee.jsx(Hn,{type:"primary",htmlType:"submit",loading:n,children:"保存更改"})})]})})},{Option:Cp}=Ro,L2e=Xn(Hn)`
padding: 0 4px;
height: 24px;
line-height: 24px;
`,D2e=Xn.div`
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 16px;
`,F2e=({spaceId:e})=>{const[t,n]=fe.useState(!0),[r,i]=fe.useState([]),[o,a]=fe.useState(!1),[l]=Mn.useForm();fe.useEffect(()=>{const p=[{id:"1",name:"管理员",email:"admin@example.com",role:"admin"},{id:"2",name:"测试用户",email:"test@example.com",role:"member"}];setTimeout(()=>{i(p),n(!1)},1e3)},[e]);const c=async p=>{try{console.log("Inviting member:",p),po.success("邀请已发送"),a(!1),l.resetFields()}catch(h){console.error("Invite member failed:",h),po.error("邀请失败")}},u=[{title:"成员",dataIndex:"name",key:"name",render:(p,h)=>Ee.jsxs(fo,{children:[Ee.jsx(WH,{}),p,Ee.jsxs("span",{style:{color:"#999"},children:["(",h.email,")"]})]})},{title:"角色",dataIndex:"role",key:"role",render:p=>Ee.jsx(P8,{color:p==="admin"?"blue":"default",children:p==="admin"?"管理员":"成员"})},{title:"操作",key:"action",render:p=>Ee.jsxs(fo,{size:"small",children:[Ee.jsxs(Ro,{defaultValue:p.role,style:{width:100},bordered:!1,disabled:p.role==="admin",children:[Ee.jsx(Cp,{value:"admin",children:"管理员"}),Ee.jsx(Cp,{value:"member",children:"成员"}),Ee.jsx(Cp,{value:"readonly",children:"只读"})]}),Ee.jsx(L2e,{type:"link",icon:Ee.jsx(K8,{}),danger:!0,disabled:p.role==="admin",children:"移除"})]})}];return Ee.jsxs("div",{children:[Ee.jsxs(D2e,{children:[Ee.jsxs("span",{children:["共 ",r.length," 名成员"]}),Ee.jsx(Hn,{type:"primary",icon:Ee.jsx(I2,{}),onClick:()=>a(!0),children:"邀请成员"})]}),Ee.jsx(zl,{columns:u,dataSource:r,loading:t,rowKey:"id",pagination:!1}),Ee.jsx(sa,{title:"邀请成员",open:o,onCancel:()=>a(!1),onOk:()=>l.submit(),children:Ee.jsxs(Mn,{form:l,layout:"vertical",onFinish:c,children:[Ee.jsx(Mn.Item,{name:"email",label:"邮箱地址",rules:[{required:!0,message:"请输入邮箱地址"},{type:"email",message:"请输入有效的邮箱地址"}],children:Ee.jsx(Qi,{prefix:Ee.jsx(c2e,{}),placeholder:"请输入邮箱地址"})}),Ee.jsx(Mn.Item,{name:"role",label:"角色",initialValue:"member",rules:[{required:!0,message:"请选择角色"}],children:Ee.jsxs(Ro,{children:[Ee.jsx(Cp,{value:"member",children:"成员"}),Ee.jsx(Cp,{value:"readonly",children:"只读"})]})}),Ee.jsx(Mn.Item,{name:"message",label:"邀请消息",children:Ee.jsx(Qi.TextArea,{placeholder:"可选:添加一条邀请消息",rows:3})})]})})]})},B2e=Xn.div`
margin-bottom: 24px;
padding: 16px 24px;
background: #fff;
border-radius: 2px;
box-shadow: 0 1px 4px rgba(0, 21, 41, 0.08);
`,j2e=Xn(c8)`
margin-bottom: 16px;
`,H2e=Xn.div`
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 16px;
h1 {
margin: 0;
font-size: 20px;
line-height: 32px;
}
`,z2e=Xn.div`
color: rgba(0, 0, 0, 0.45);
`,W2e=()=>{const{spaceId:e}=l3(),{currentSpace:t,fetchSpaceDetail:n,toggleStarSpace:r}=G8(),[i,o]=fe.useState(!0),[a,l]=fe.useState("documents"),c=Mc();if(fe.useEffect(()=>{(async()=>{if(e)try{await n(e)}finally{o(!1)}})()},[e,n]),i||!t)return Ee.jsx("div",{style:{textAlign:"center",padding:"50px"},children:Ee.jsx(Fm,{size:"large"})});const u={items:[{key:"edit",icon:Ee.jsx(ky,{}),label:"编辑空间"},{key:"settings",icon:Ee.jsx(V8,{}),label:"空间设置"},{type:"divider"},{key:"delete",icon:Ee.jsx(K8,{}),label:"删除空间",danger:!0}]},p=[{key:"documents",label:"文档",children:Ee.jsx(R2e,{spaceId:e||""})},{key:"settings",label:"设置",children:Ee.jsx(P2e,{space:t})},{key:"members",label:"成员",children:Ee.jsx(F2e,{spaceId:e||""})}],h=()=>{const m=String(Date.now());c(`/documents/${m}/edit`)};return Ee.jsxs("div",{children:[Ee.jsxs(B2e,{children:[Ee.jsx(j2e,{items:[{title:"所有空间",onClick:m=>{m.preventDefault(),c("/")}},{title:Ee.jsx(Ee.Fragment,{children:t==null?void 0:t.name})}]}),Ee.jsxs(H2e,{children:[Ee.jsxs(fo,{size:"middle",align:"center",children:[Ee.jsx("h1",{children:t.name}),Ee.jsx(Hn,{type:"text",icon:t.starred?Ee.jsx(HH,{}):Ee.jsx(zH,{}),onClick:()=>r(t.id)}),Ee.jsx(Hn,{type:"primary",icon:Ee.jsx(ky,{}),onClick:h,children:"新建文档"})]}),Ee.jsxs(fo,{children:[Ee.jsx(Hn,{icon:Ee.jsx(E2e,{}),children:"邀请成员"}),Ee.jsx(Dm,{menu:u,placement:"bottomRight",children:Ee.jsx(Hn,{icon:Ee.jsx(d2e,{})})})]})]}),Ee.jsx(z2e,{children:t.description})]}),Ee.jsx(v8,{activeKey:a,onChange:l,items:p,size:"large"})]})},U2e=function(){var e=navigator.userAgent,t=navigator.platform,n=/gecko\/\d/i.test(e),r=/MSIE \d/.test(e),i=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(e),o=/Edge\/(\d+)/.exec(e),a=r||i||o,l=a&&(r?document.documentMode||6:+(o||i)[1]),c=!o&&/WebKit\//.test(e),u=c&&/Qt\/\d+\.\d+/.test(e),p=!o&&/Chrome\//.test(e),h=/Opera\//.test(e),m=/Apple Computer/.test(navigator.vendor),g=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(e),b=/PhantomJS/.test(e),E=m&&(/Mobile\/\w+/.test(e)||navigator.maxTouchPoints>2),x=/Android/.test(e),S=E||x||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(e),C=E||/Mac/.test(t),_=/\bCrOS\b/.test(e),O=/win/i.test(t),k=h&&e.match(/Version\/(\d*\.\d*)/);k&&(k=Number(k[1])),k&&k>=15&&(h=!1,c=!0);var T=C&&(u||h&&(k==null||k<12.11)),I=n||a&&l>=9;function $(s){return new RegExp("(^|\\s)"+s+"(?:$|\\s)\\s*")}var M=function(s,f){var y=s.className,v=$(f).exec(y);if(v){var w=y.slice(v.index+v[0].length);s.className=y.slice(0,v.index)+(w?v[1]+w:"")}};function R(s){for(var f=s.childNodes.length;f>0;--f)s.removeChild(s.firstChild);return s}function j(s,f){return R(s).appendChild(f)}function D(s,f,y,v){var w=document.createElement(s);if(y&&(w.className=y),v&&(w.style.cssText=v),typeof f=="string")w.appendChild(document.createTextNode(f));else if(f)for(var N=0;N<f.length;++N)w.appendChild(f[N]);return w}function L(s,f,y,v){var w=D(s,f,y,v);return w.setAttribute("role","presentation"),w}var B;document.createRange?B=function(s,f,y,v){var w=document.createRange();return w.setEnd(v||s,y),w.setStart(s,f),w}:B=function(s,f,y){var v=document.body.createTextRange();try{v.moveToElementText(s.parentNode)}catch{return v}return v.collapse(!0),v.moveEnd("character",y),v.moveStart("character",f),v};function H(s,f){if(f.nodeType==3&&(f=f.parentNode),s.contains)return s.contains(f);do if(f.nodeType==11&&(f=f.host),f==s)return!0;while(f=f.parentNode)}function W(){var s;try{s=document.activeElement}catch{s=document.body||null}for(;s&&s.shadowRoot&&s.shadowRoot.activeElement;)s=s.shadowRoot.activeElement;return s}function z(s,f){var y=s.className;$(f).test(y)||(s.className+=(y?" ":"")+f)}function V(s,f){for(var y=s.split(" "),v=0;v<y.length;v++)y[v]&&!$(y[v]).test(f)&&(f+=" "+y[v]);return f}var X=function(s){s.select()};E?X=function(s){s.selectionStart=0,s.selectionEnd=s.value.length}:a&&(X=function(s){try{s.select()}catch{}});function A(s){var f=Array.prototype.slice.call(arguments,1);return function(){return s.apply(null,f)}}function P(s,f,y){f||(f={});for(var v in s)s.hasOwnProperty(v)&&(y!==!1||!f.hasOwnProperty(v))&&(f[v]=s[v]);return f}function Y(s,f,y,v,w){f==null&&(f=s.search(/[^\s\u00a0]/),f==-1&&(f=s.length));for(var N=v||0,F=w||0;;){var K=s.indexOf(" ",N);if(K<0||K>=f)return F+(f-N);F+=K-N,F+=y-F%y,N=K+1}}var U=function(){this.id=null,this.f=null,this.time=0,this.handler=A(this.onTimeout,this)};U.prototype.onTimeout=function(s){s.id=0,s.time<=+new Date?s.f():setTimeout(s.handler,s.time-+new Date)},U.prototype.set=function(s,f){this.f=f;var y=+new Date+s;(!this.id||y<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,s),this.time=y)};function Q(s,f){for(var y=0;y<s.length;++y)if(s[y]==f)return y;return-1}var ee=50,se={toString:function(){return"CodeMirror.Pass"}},ne={scroll:!1},oe={origin:"*mouse"},pe={origin:"+move"};function be(s,f,y){for(var v=0,w=0;;){var N=s.indexOf(" ",v);N==-1&&(N=s.length);var F=N-v;if(N==s.length||w+F>=f)return v+Math.min(F,f-w);if(w+=N-v,w+=y-w%y,v=N+1,w>=f)return v}}var ue=[""];function de(s){for(;ue.length<=s;)ue.push(re(ue)+" ");return ue[s]}function re(s){return s[s.length-1]}function me(s,f){for(var y=[],v=0;v<s.length;v++)y[v]=f(s[v],v);return y}function ge(s,f,y){for(var v=0,w=y(f);v<s.length&&y(s[v])<=w;)v++;s.splice(v,0,f)}function Ae(){}function De(s,f){var y;return Object.create?y=Object.create(s):(Ae.prototype=s,y=new Ae),f&&P(f,y),y}var ze=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function et(s){return/\w/.test(s)||s>"€"&&(s.toUpperCase()!=s.toLowerCase()||ze.test(s))}function Ie(s,f){return f?f.source.indexOf("\\w")>-1&&et(s)?!0:f.test(s):et(s)}function Te(s){for(var f in s)if(s.hasOwnProperty(f)&&s[f])return!1;return!0}var Ue=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function Le(s){return s.charCodeAt(0)>=768&&Ue.test(s)}function je(s,f,y){for(;(y<0?f>0:f<s.length)&&Le(s.charAt(f));)f+=y;return f}function Ge(s,f,y){for(var v=f>y?-1:1;;){if(f==y)return f;var w=(f+y)/2,N=v<0?Math.ceil(w):Math.floor(w);if(N==f)return s(N)?f:y;s(N)?y=N:f=N+v}}function qe(s,f,y,v){if(!s)return v(f,y,"ltr",0);for(var w=!1,N=0;N<s.length;++N){var F=s[N];(F.from<y&&F.to>f||f==y&&F.to==f)&&(v(Math.max(F.from,f),Math.min(F.to,y),F.level==1?"rtl":"ltr",N),w=!0)}w||v(f,y,"ltr")}var Ce=null;function ke(s,f,y){var v;Ce=null;for(var w=0;w<s.length;++w){var N=s[w];if(N.from<f&&N.to>f)return w;N.to==f&&(N.from!=N.to&&y=="before"?v=w:Ce=w),N.from==f&&(N.from!=N.to&&y!="before"?v=w:Ce=w)}return v??Ce}var We=function(){var s="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",f="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function y(Z){return Z<=247?s.charAt(Z):1424<=Z&&Z<=1524?"R":1536<=Z&&Z<=1785?f.charAt(Z-1536):1774<=Z&&Z<=2220?"r":8192<=Z&&Z<=8203?"w":Z==8204?"b":"L"}var v=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,w=/[stwN]/,N=/[LRr]/,F=/[Lb1n]/,K=/[1n]/;function q(Z,ce,ye){this.level=Z,this.from=ce,this.to=ye}return function(Z,ce){var ye=ce=="ltr"?"L":"R";if(Z.length==0||ce=="ltr"&&!v.test(Z))return!1;for(var Fe=Z.length,Re=[],rt=0;rt<Fe;++rt)Re.push(y(Z.charCodeAt(rt)));for(var ut=0,yt=ye;ut<Fe;++ut){var kt=Re[ut];kt=="m"?Re[ut]=yt:yt=kt}for(var Mt=0,$t=ye;Mt<Fe;++Mt){var jt=Re[Mt];jt=="1"&&$t=="r"?Re[Mt]="n":N.test(jt)&&($t=jt,jt=="r"&&(Re[Mt]="R"))}for(var nn=1,Qt=Re[0];nn<Fe-1;++nn){var gn=Re[nn];gn=="+"&&Qt=="1"&&Re[nn+1]=="1"?Re[nn]="1":gn==","&&Qt==Re[nn+1]&&(Qt=="1"||Qt=="n")&&(Re[nn]=Qt),Qt=gn}for(var Jn=0;Jn<Fe;++Jn){var fi=Re[Jn];if(fi==",")Re[Jn]="N";else if(fi=="%"){var Er=void 0;for(Er=Jn+1;Er<Fe&&Re[Er]=="%";++Er);for(var Co=Jn&&Re[Jn-1]=="!"||Er<Fe&&Re[Er]=="1"?"1":"N",to=Jn;to<Er;++to)Re[to]=Co;Jn=Er-1}}for(var zr=0,no=ye;zr<Fe;++zr){var Si=Re[zr];no=="L"&&Si=="1"?Re[zr]="L":N.test(Si)&&(no=Si)}for(var qr=0;qr<Fe;++qr)if(w.test(Re[qr])){var Wr=void 0;for(Wr=qr+1;Wr<Fe&&w.test(Re[Wr]);++Wr);for(var kr=(qr?Re[qr-1]:ye)=="L",ro=(Wr<Fe?Re[Wr]:ye)=="L",Cd=kr==ro?kr?"L":"R":ye,Rs=qr;Rs<Wr;++Rs)Re[Rs]=Cd;qr=Wr-1}for(var ki=[],vl,pi=0;pi<Fe;)if(F.test(Re[pi])){var R5=pi;for(++pi;pi<Fe&&F.test(Re[pi]);++pi);ki.push(new q(0,R5,pi))}else{var Xl=pi,Qc=ki.length,Zc=ce=="rtl"?1:0;for(++pi;pi<Fe&&Re[pi]!="L";++pi);for(var Hi=Xl;Hi<pi;)if(K.test(Re[Hi])){Xl<Hi&&(ki.splice(Qc,0,new q(1,Xl,Hi)),Qc+=Zc);var Sd=Hi;for(++Hi;Hi<pi&&K.test(Re[Hi]);++Hi);ki.splice(Qc,0,new q(2,Sd,Hi)),Qc+=Zc,Xl=Hi}else++Hi;Xl<pi&&ki.splice(Qc,0,new q(1,Xl,pi))}return ce=="ltr"&&(ki[0].level==1&&(vl=Z.match(/^\s+/))&&(ki[0].from=vl[0].length,ki.unshift(new q(0,0,vl[0].length))),re(ki).level==1&&(vl=Z.match(/\s+$/))&&(re(ki).to-=vl[0].length,ki.push(new q(0,Fe-vl[0].length,Fe)))),ce=="rtl"?ki.reverse():ki}}();function Pe(s,f){var y=s.order;return y==null&&(y=s.order=We(s.text,f)),y}var Be=[],He=function(s,f,y){if(s.addEventListener)s.addEventListener(f,y,!1);else if(s.attachEvent)s.attachEvent("on"+f,y);else{var v=s._handlers||(s._handlers={});v[f]=(v[f]||Be).concat(y)}};function Qe(s,f){return s._handlers&&s._handlers[f]||Be}function ie(s,f,y){if(s.removeEventListener)s.removeEventListener(f,y,!1);else if(s.detachEvent)s.detachEvent("on"+f,y);else{var v=s._handlers,w=v&&v[f];if(w){var N=Q(w,y);N>-1&&(v[f]=w.slice(0,N).concat(w.slice(N+1)))}}}function xe(s,f){var y=Qe(s,f);if(y.length)for(var v=Array.prototype.slice.call(arguments,2),w=0;w<y.length;++w)y[w].apply(null,v)}function Ne(s,f,y){return typeof f=="string"&&(f={type:f,preventDefault:function(){this.defaultPrevented=!0}}),xe(s,y||f.type,s,f),Vt(f)||f.codemirrorIgnore}function $e(s){var f=s._handlers&&s._handlers.cursorActivity;if(f)for(var y=s.curOp.cursorActivityHandlers||(s.curOp.cursorActivityHandlers=[]),v=0;v<f.length;++v)Q(y,f[v])==-1&&y.push(f[v])}function Ye(s,f){return Qe(s,f).length>0}function ht(s){s.prototype.on=function(f,y){He(this,f,y)},s.prototype.off=function(f,y){ie(this,f,y)}}function It(s){s.preventDefault?s.preventDefault():s.returnValue=!1}function Jt(s){s.stopPropagation?s.stopPropagation():s.cancelBubble=!0}function Vt(s){return s.defaultPrevented!=null?s.defaultPrevented:s.returnValue==!1}function en(s){It(s),Jt(s)}function rn(s){return s.target||s.srcElement}function Gt(s){var f=s.which;return f==null&&(s.button&1?f=1:s.button&2?f=3:s.button&4&&(f=2)),C&&s.ctrlKey&&f==1&&(f=3),f}var Ft=function(){if(a&&l<9)return!1;var s=D("div");return"draggable"in s||"dragDrop"in s}(),bt;function gt(s){if(bt==null){var f=D("span","");j(s,D("span",[f,document.createTextNode("x")])),s.firstChild.offsetHeight!=0&&(bt=f.offsetWidth<=1&&f.offsetHeight>2&&!(a&&l<8))}var y=bt?D("span",""):D("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return y.setAttribute("cm-text",""),y}var ft;function he(s){if(ft!=null)return ft;var f=j(s,document.createTextNode("AخA")),y=B(f,0,1).getBoundingClientRect(),v=B(f,1,2).getBoundingClientRect();return R(s),!y||y.left==y.right?!1:ft=v.right-y.right<3}var we=`
b`.split(/\n/).length!=3?function(s){for(var f=0,y=[],v=s.length;f<=v;){var w=s.indexOf(`
`,f);w==-1&&(w=s.length);var N=s.slice(f,s.charAt(w-1)=="\r"?w-1:w),F=N.indexOf("\r");F!=-1?(y.push(N.slice(0,F)),f+=F+1):(y.push(N),f=w+1)}return y}:function(s){return s.split(/\r\n?|\n/)},ve=window.getSelection?function(s){try{return s.selectionStart!=s.selectionEnd}catch{return!1}}:function(s){var f;try{f=s.ownerDocument.selection.createRange()}catch{}return!f||f.parentElement()!=s?!1:f.compareEndPoints("StartToEnd",f)!=0},Me=function(){var s=D("div");return"oncopy"in s?!0:(s.setAttribute("oncopy","return;"),typeof s.oncopy=="function")}(),Je=null;function tt(s){if(Je!=null)return Je;var f=j(s,D("span","x")),y=f.getBoundingClientRect(),v=B(f,0,1).getBoundingClientRect();return Je=Math.abs(y.left-v.left)>1}var st={},at={};function it(s,f){arguments.length>2&&(f.dependencies=Array.prototype.slice.call(arguments,2)),st[s]=f}function nt(s,f){at[s]=f}function ct(s){if(typeof s=="string"&&at.hasOwnProperty(s))s=at[s];else if(s&&typeof s.name=="string"&&at.hasOwnProperty(s.name)){var f=at[s.name];typeof f=="string"&&(f={name:f}),s=De(f,s),s.name=f.name}else{if(typeof s=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(s))return ct("application/xml");if(typeof s=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(s))return ct("application/json")}return typeof s=="string"?{name:s}:s||{name:"null"}}function mt(s,f){f=ct(f);var y=st[f.name];if(!y)return mt(s,"text/plain");var v=y(s,f);if(St.hasOwnProperty(f.name)){var w=St[f.name];for(var N in w)w.hasOwnProperty(N)&&(v.hasOwnProperty(N)&&(v["_"+N]=v[N]),v[N]=w[N])}if(v.name=f.name,f.helperType&&(v.helperType=f.helperType),f.modeProps)for(var F in f.modeProps)v[F]=f.modeProps[F];return v}var St={};function Zt(s,f){var y=St.hasOwnProperty(s)?St[s]:St[s]={};P(f,y)}function Lt(s,f){if(f===!0)return f;if(s.copyState)return s.copyState(f);var y={};for(var v in f){var w=f[v];w instanceof Array&&(w=w.concat([])),y[v]=w}return y}function Pt(s,f){for(var y;s.innerMode&&(y=s.innerMode(f),!(!y||y.mode==s));)f=y.state,s=y.mode;return y||{mode:s,state:f}}function vt(s,f,y){return s.startState?s.startState(f,y):!0}var dt=function(s,f,y){this.pos=this.start=0,this.string=s,this.tabSize=f||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=y};dt.prototype.eol=function(){return this.pos>=this.string.length},dt.prototype.sol=function(){return this.pos==this.lineStart},dt.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},dt.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},dt.prototype.eat=function(s){var f=this.string.charAt(this.pos),y;if(typeof s=="string"?y=f==s:y=f&&(s.test?s.test(f):s(f)),y)return++this.pos,f},dt.prototype.eatWhile=function(s){for(var f=this.pos;this.eat(s););return this.pos>f},dt.prototype.eatSpace=function(){for(var s=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>s},dt.prototype.skipToEnd=function(){this.pos=this.string.length},dt.prototype.skipTo=function(s){var f=this.string.indexOf(s,this.pos);if(f>-1)return this.pos=f,!0},dt.prototype.backUp=function(s){this.pos-=s},dt.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=Y(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?Y(this.string,this.lineStart,this.tabSize):0)},dt.prototype.indentation=function(){return Y(this.string,null,this.tabSize)-(this.lineStart?Y(this.string,this.lineStart,this.tabSize):0)},dt.prototype.match=function(s,f,y){if(typeof s=="string"){var v=function(F){return y?F.toLowerCase():F},w=this.string.substr(this.pos,s.length);if(v(w)==v(s))return f!==!1&&(this.pos+=s.length),!0}else{var N=this.string.slice(this.pos).match(s);return N&&N.index>0?null:(N&&f!==!1&&(this.pos+=N[0].length),N)}},dt.prototype.current=function(){return this.string.slice(this.start,this.pos)},dt.prototype.hideFirstChars=function(s,f){this.lineStart+=s;try{return f()}finally{this.lineStart-=s}},dt.prototype.lookAhead=function(s){var f=this.lineOracle;return f&&f.lookAhead(s)},dt.prototype.baseToken=function(){var s=this.lineOracle;return s&&s.baseToken(this.pos)};function ot(s,f){if(f-=s.first,f<0||f>=s.size)throw new Error("There is no line "+(f+s.first)+" in the document.");for(var y=s;!y.lines;)for(var v=0;;++v){var w=y.children[v],N=w.chunkSize();if(f<N){y=w;break}f-=N}return y.lines[f]}function Xt(s,f,y){var v=[],w=f.line;return s.iter(f.line,y.line+1,function(N){var F=N.text;w==y.line&&(F=F.slice(0,y.ch)),w==f.line&&(F=F.slice(f.ch)),v.push(F),++w}),v}function Dt(s,f,y){var v=[];return s.iter(f,y,function(w){v.push(w.text)}),v}function xt(s,f){var y=f-s.height;if(y)for(var v=s;v;v=v.parent)v.height+=y}function Tt(s){if(s.parent==null)return null;for(var f=s.parent,y=Q(f.lines,s),v=f.parent;v;f=v,v=v.parent)for(var w=0;v.children[w]!=f;++w)y+=v.children[w].chunkSize();return y+f.first}function tn(s,f){var y=s.first;e:do{for(var v=0;v<s.children.length;++v){var w=s.children[v],N=w.height;if(f<N){s=w;continue e}f-=N,y+=w.chunkSize()}return y}while(!s.lines);for(var F=0;F<s.lines.length;++F){var K=s.lines[F],q=K.height;if(f<q)break;f-=q}return y+F}function mn(s,f){return f>=s.first&&f<s.first+s.size}function Sn(s,f){return String(s.lineNumberFormatter(f+s.firstLineNumber))}function Ke(s,f,y){if(y===void 0&&(y=null),!(this instanceof Ke))return new Ke(s,f,y);this.line=s,this.ch=f,this.sticky=y}function Ze(s,f){return s.line-f.line||s.ch-f.ch}function Kt(s,f){return s.sticky==f.sticky&&Ze(s,f)==0}function ln(s){return Ke(s.line,s.ch)}function dn(s,f){return Ze(s,f)<0?f:s}function Vn(s,f){return Ze(s,f)<0?s:f}function cr(s,f){return Math.max(s.first,Math.min(f,s.first+s.size-1))}function Ht(s,f){if(f.line<s.first)return Ke(s.first,0);var y=s.first+s.size-1;return f.line>y?Ke(y,ot(s,y).text.length):yo(f,ot(s,f.line).text.length)}function yo(s,f){var y=s.ch;return y==null||y>f?Ke(s.line,f):y<0?Ke(s.line,0):s}function Bi(s,f){for(var y=[],v=0;v<f.length;v++)y[v]=Ht(s,f[v]);return y}var Cr=function(s,f){this.state=s,this.lookAhead=f},Tr=function(s,f,y,v){this.state=f,this.doc=s,this.line=y,this.maxLookAhead=v||0,this.baseTokens=null,this.baseTokenPos=1};Tr.prototype.lookAhead=function(s){var f=this.doc.getLine(this.line+s);return f!=null&&s>this.maxLookAhead&&(this.maxLookAhead=s),f},Tr.prototype.baseToken=function(s){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=s;)this.baseTokenPos+=2;var f=this.baseTokens[this.baseTokenPos+1];return{type:f&&f.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-s}},Tr.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Tr.fromSaved=function(s,f,y){return f instanceof Cr?new Tr(s,Lt(s.mode,f.state),y,f.lookAhead):new Tr(s,Lt(s.mode,f),y)},Tr.prototype.save=function(s){var f=s!==!1?Lt(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Cr(f,this.maxLookAhead):f};function _n(s,f,y,v){var w=[s.state.modeGen],N={};Lr(s,f.text,s.doc.mode,y,function(Z,ce){return w.push(Z,ce)},N,v);for(var F=y.state,K=function(Z){y.baseTokens=w;var ce=s.state.overlays[Z],ye=1,Fe=0;y.state=!0,Lr(s,f.text,ce.mode,y,function(Re,rt){for(var ut=ye;Fe<Re;){var yt=w[ye];yt>Re&&w.splice(ye,1,Re,w[ye+1],yt),ye+=2,Fe=Math.min(Re,yt)}if(rt)if(ce.opaque)w.splice(ut,ye-ut,Re,"overlay "+rt),ye=ut+2;else for(;ut<ye;ut+=2){var kt=w[ut+1];w[ut+1]=(kt?kt+" ":"")+"overlay "+rt}},N),y.state=F,y.baseTokens=null,y.baseTokenPos=1},q=0;q<s.state.overlays.length;++q)K(q);return{styles:w,classes:N.bgClass||N.textClass?N:null}}function Bt(s,f,y){if(!f.styles||f.styles[0]!=s.state.modeGen){var v=Rt(s,Tt(f)),w=f.text.length>s.options.maxHighlightLength&&Lt(s.doc.mode,v.state),N=_n(s,f,v);w&&(v.state=w),f.stateAfter=v.save(!w),f.styles=N.styles,N.classes?f.styleClasses=N.classes:f.styleClasses&&(f.styleClasses=null),y===s.doc.highlightFrontier&&(s.doc.modeFrontier=Math.max(s.doc.modeFrontier,++s.doc.highlightFrontier))}return f.styles}function Rt(s,f,y){var v=s.doc,w=s.display;if(!v.mode.startState)return new Tr(v,!0,f);var N=Hr(s,f,y),F=N>v.first&&ot(v,N-1).stateAfter,K=F?Tr.fromSaved(v,F,N):new Tr(v,vt(v.mode),N);return v.iter(N,f,function(q){En(s,q.text,K);var Z=K.line;q.stateAfter=Z==f-1||Z%5==0||Z>=w.viewFrom&&Z<w.viewTo?K.save():null,K.nextLine()}),y&&(v.modeFrontier=K.line),K}function En(s,f,y,v){var w=s.doc.mode,N=new dt(f,s.options.tabSize,y);for(N.start=N.pos=v||0,f==""&&Tn(w,y.state);!N.eol();)Ln(w,N,y.state),N.start=N.pos}function Tn(s,f){if(s.blankLine)return s.blankLine(f);if(s.innerMode){var y=Pt(s,f);if(y.mode.blankLine)return y.mode.blankLine(y.state)}}function Ln(s,f,y,v){for(var w=0;w<10;w++){v&&(v[0]=Pt(s,y).mode);var N=s.token(f,y);if(f.pos>f.start)return N}throw new Error("Mode "+s.name+" failed to advance stream.")}var Un=function(s,f,y){this.start=s.start,this.end=s.pos,this.string=s.current(),this.type=f||null,this.state=y};function Pr(s,f,y,v){var w=s.doc,N=w.mode,F;f=Ht(w,f);var K=ot(w,f.line),q=Rt(s,f.line,y),Z=new dt(K.text,s.options.tabSize,q),ce;for(v&&(ce=[]);(v||Z.pos<f.ch)&&!Z.eol();)Z.start=Z.pos,F=Ln(N,Z,q.state),v&&ce.push(new Un(Z,F,Lt(w.mode,q.state)));return v?ce:new Un(Z,F,q.state)}function Or(s,f){if(s)for(;;){var y=s.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!y)break;s=s.slice(0,y.index)+s.slice(y.index+y[0].length);var v=y[1]?"bgClass":"textClass";f[v]==null?f[v]=y[2]:new RegExp("(?:^|\\s)"+y[2]+"(?:$|\\s)").test(f[v])||(f[v]+=" "+y[2])}return s}function Lr(s,f,y,v,w,N,F){var K=y.flattenSpans;K==null&&(K=s.options.flattenSpans);var q=0,Z=null,ce=new dt(f,s.options.tabSize,v),ye,Fe=s.options.addModeClass&&[null];for(f==""&&Or(Tn(y,v.state),N);!ce.eol();){if(ce.pos>s.options.maxHighlightLength?(K=!1,F&&En(s,f,v,ce.pos),ce.pos=f.length,ye=null):ye=Or(Ln(y,ce,v.state,Fe),N),Fe){var Re=Fe[0].name;Re&&(ye="m-"+(ye?Re+" "+ye:Re))}if(!K||Z!=ye){for(;q<ce.start;)q=Math.min(ce.start,q+5e3),w(q,Z);Z=ye}ce.start=ce.pos}for(;q<ce.pos;){var rt=Math.min(ce.pos,q+5e3);w(rt,Z),q=rt}}function Hr(s,f,y){for(var v,w,N=s.doc,F=y?-1:f-(s.doc.mode.innerMode?1e3:100),K=f;K>F;--K){if(K<=N.first)return N.first;var q=ot(N,K-1),Z=q.stateAfter;if(Z&&(!y||K+(Z instanceof Cr?Z.lookAhead:0)<=N.modeFrontier))return K;var ce=Y(q.text,null,s.options.tabSize);(w==null||v>ce)&&(w=K-1,v=ce)}return w}function li(s,f){if(s.modeFrontier=Math.min(s.modeFrontier,f),!(s.highlightFrontier<f-10)){for(var y=s.first,v=f-1;v>y;v--){var w=ot(s,v).stateAfter;if(w&&(!(w instanceof Cr)||v+w.lookAhead<f)){y=v+1;break}}s.highlightFrontier=Math.min(s.highlightFrontier,y)}}var sn=!1,qt=!1;function Ir(){sn=!0}function or(){qt=!0}function ar(s,f,y){this.marker=s,this.from=f,this.to=y}function si(s,f){if(s)for(var y=0;y<s.length;++y){var v=s[y];if(v.marker==f)return v}}function bi(s,f){for(var y,v=0;v<s.length;++v)s[v]!=f&&(y||(y=[])).push(s[v]);return y}function Ci(s,f,y){var v=y&&window.WeakSet&&(y.markedSpans||(y.markedSpans=new WeakSet));v&&s.markedSpans&&v.has(s.markedSpans)?s.markedSpans.push(f):(s.markedSpans=s.markedSpans?s.markedSpans.concat([f]):[f],v&&v.add(s.markedSpans)),f.marker.attachLine(s)}function Fo(s,f,y){var v;if(s)for(var w=0;w<s.length;++w){var N=s[w],F=N.marker,K=N.from==null||(F.inclusiveLeft?N.from<=f:N.from<f);if(K||N.from==f&&F.type=="bookmark"&&(!y||!N.marker.insertLeft)){var q=N.to==null||(F.inclusiveRight?N.to>=f:N.to>f);(v||(v=[])).push(new ar(F,N.from,q?null:N.to))}}return v}function hl(s,f,y){var v;if(s)for(var w=0;w<s.length;++w){var N=s[w],F=N.marker,K=N.to==null||(F.inclusiveRight?N.to>=f:N.to>f);if(K||N.from==f&&F.type=="bookmark"&&(!y||N.marker.insertLeft)){var q=N.from==null||(F.inclusiveLeft?N.from<=f:N.from<f);(v||(v=[])).push(new ar(F,q?null:N.from-f,N.to==null?null:N.to-f))}}return v}function jc(s,f){if(f.full)return null;var y=mn(s,f.from.line)&&ot(s,f.from.line).markedSpans,v=mn(s,f.to.line)&&ot(s,f.to.line).markedSpans;if(!y&&!v)return null;var w=f.from.ch,N=f.to.ch,F=Ze(f.from,f.to)==0,K=Fo(y,w,F),q=hl(v,N,F),Z=f.text.length==1,ce=re(f.text).length+(Z?w:0);if(K)for(var ye=0;ye<K.length;++ye){var Fe=K[ye];if(Fe.to==null){var Re=si(q,Fe.marker);Re?Z&&(Fe.to=Re.to==null?null:Re.to+ce):Fe.to=w}}if(q)for(var rt=0;rt<q.length;++rt){var ut=q[rt];if(ut.to!=null&&(ut.to+=ce),ut.from==null){var yt=si(K,ut.marker);yt||(ut.from=ce,Z&&(K||(K=[])).push(ut))}else ut.from+=ce,Z&&(K||(K=[])).push(ut)}K&&(K=ed(K)),q&&q!=K&&(q=ed(q));var kt=[K];if(!Z){var Mt=f.text.length-2,$t;if(Mt>0&&K)for(var jt=0;jt<K.length;++jt)K[jt].to==null&&($t||($t=[])).push(new ar(K[jt].marker,null,null));for(var nn=0;nn<Mt;++nn)kt.push($t);kt.push(q)}return kt}function ed(s){for(var f=0;f<s.length;++f){var y=s[f];y.from!=null&&y.from==y.to&&y.marker.clearWhenEmpty!==!1&&s.splice(f--,1)}return s.length?s:null}function I1(s,f,y){var v=null;if(s.iter(f.line,y.line+1,function(Re){if(Re.markedSpans)for(var rt=0;rt<Re.markedSpans.length;++rt){var ut=Re.markedSpans[rt].marker;ut.readOnly&&(!v||Q(v,ut)==-1)&&(v||(v=[])).push(ut)}}),!v)return null;for(var w=[{from:f,to:y}],N=0;N<v.length;++N)for(var F=v[N],K=F.find(0),q=0;q<w.length;++q){var Z=w[q];if(!(Ze(Z.to,K.from)<0||Ze(Z.from,K.to)>0)){var ce=[q,1],ye=Ze(Z.from,K.from),Fe=Ze(Z.to,K.to);(ye<0||!F.inclusiveLeft&&!ye)&&ce.push({from:Z.from,to:K.from}),(Fe>0||!F.inclusiveRight&&!Fe)&&ce.push({from:K.to,to:Z.to}),w.splice.apply(w,ce),q+=ce.length-3}}return w}function zt(s){var f=s.markedSpans;if(f){for(var y=0;y<f.length;++y)f[y].marker.detachLine(s);s.markedSpans=null}}function un(s,f){if(f){for(var y=0;y<f.length;++y)f[y].marker.attachLine(s);s.markedSpans=f}}function Yn(s){return s.inclusiveLeft?-1:0}function Sr(s){return s.inclusiveRight?1:0}function ur(s,f){var y=s.lines.length-f.lines.length;if(y!=0)return y;var v=s.find(),w=f.find(),N=Ze(v.from,w.from)||Yn(s)-Yn(f);if(N)return-N;var F=Ze(v.to,w.to)||Sr(s)-Sr(f);return F||f.id-s.id}function Hc(s,f){var y=qt&&s.markedSpans,v;if(y)for(var w=void 0,N=0;N<y.length;++N)w=y[N],w.marker.collapsed&&(f?w.from:w.to)==null&&(!v||ur(v,w.marker)<0)&&(v=w.marker);return v}function td(s){return Hc(s,!0)}function zc(s){return Hc(s,!1)}function nd(s,f){var y=qt&&s.markedSpans,v;if(y)for(var w=0;w<y.length;++w){var N=y[w];N.marker.collapsed&&(N.from==null||N.from<f)&&(N.to==null||N.to>f)&&(!v||ur(v,N.marker)<0)&&(v=N.marker)}return v}function $w(s,f,y,v,w){var N=ot(s,f),F=qt&&N.markedSpans;if(F)for(var K=0;K<F.length;++K){var q=F[K];if(q.marker.collapsed){var Z=q.marker.find(0),ce=Ze(Z.from,y)||Yn(q.marker)-Yn(w),ye=Ze(Z.to,v)||Sr(q.marker)-Sr(w);if(!(ce>=0&&ye<=0||ce<=0&&ye>=0)&&(ce<=0&&(q.marker.inclusiveRight&&w.inclusiveLeft?Ze(Z.to,y)>=0:Ze(Z.to,y)>0)||ce>=0&&(q.marker.inclusiveRight&&w.inclusiveLeft?Ze(Z.from,v)<=0:Ze(Z.from,v)<0)))return!0}}}function Fa(s){for(var f;f=td(s);)s=f.find(-1,!0).line;return s}function wU(s){for(var f;f=zc(s);)s=f.find(1,!0).line;return s}function _U(s){for(var f,y;f=zc(s);)s=f.find(1,!0).line,(y||(y=[])).push(s);return y}function G2(s,f){var y=ot(s,f),v=Fa(y);return y==v?f:Tt(v)}function Nw(s,f){if(f>s.lastLine())return f;var y=ot(s,f),v;if(!_s(s,y))return f;for(;v=zc(y);)y=v.find(1,!0).line;return Tt(y)+1}function _s(s,f){var y=qt&&f.markedSpans;if(y){for(var v=void 0,w=0;w<y.length;++w)if(v=y[w],!!v.marker.collapsed){if(v.from==null)return!0;if(!v.marker.widgetNode&&v.from==0&&v.marker.inclusiveLeft&&q2(s,f,v))return!0}}}function q2(s,f,y){if(y.to==null){var v=y.marker.find(1,!0);return q2(s,v.line,si(v.line.markedSpans,y.marker))}if(y.marker.inclusiveRight&&y.to==f.text.length)return!0;for(var w=void 0,N=0;N<f.markedSpans.length;++N)if(w=f.markedSpans[N],w.marker.collapsed&&!w.marker.widgetNode&&w.from==y.to&&(w.to==null||w.to!=y.from)&&(w.marker.inclusiveLeft||y.marker.inclusiveRight)&&q2(s,f,w))return!0}function Kl(s){s=Fa(s);for(var f=0,y=s.parent,v=0;v<y.lines.length;++v){var w=y.lines[v];if(w==s)break;f+=w.height}for(var N=y.parent;N;y=N,N=y.parent)for(var F=0;F<N.children.length;++F){var K=N.children[F];if(K==y)break;f+=K.height}return f}function n0(s){if(s.height==0)return 0;for(var f=s.text.length,y,v=s;y=td(v);){var w=y.find(0,!0);v=w.from.line,f+=w.from.ch-w.to.ch}for(v=s;y=zc(v);){var N=y.find(0,!0);f-=v.text.length-N.from.ch,v=N.to.line,f+=v.text.length-N.to.ch}return f}function X2(s){var f=s.display,y=s.doc;f.maxLine=ot(y,y.first),f.maxLineLength=n0(f.maxLine),f.maxLineChanged=!0,y.iter(function(v){var w=n0(v);w>f.maxLineLength&&(f.maxLineLength=w,f.maxLine=v)})}var rd=function(s,f,y){this.text=s,un(this,f),this.height=y?y(this):1};rd.prototype.lineNo=function(){return Tt(this)},ht(rd);function TU(s,f,y,v){s.text=f,s.stateAfter&&(s.stateAfter=null),s.styles&&(s.styles=null),s.order!=null&&(s.order=null),zt(s),un(s,y);var w=v?v(s):1;w!=s.height&&xt(s,w)}function OU(s){s.parent=null,zt(s)}var IU={},kU={};function Aw(s,f){if(!s||/^\s*$/.test(s))return null;var y=f.addModeClass?kU:IU;return y[s]||(y[s]=s.replace(/\S+/g,"cm-$&"))}function Rw(s,f){var y=L("span",null,null,c?"padding-right: .1px":null),v={pre:L("pre",[y],"CodeMirror-line"),content:y,col:0,pos:0,cm:s,trailingSpace:!1,splitSpaces:s.getOption("lineWrapping")};f.measure={};for(var w=0;w<=(f.rest?f.rest.length:0);w++){var N=w?f.rest[w-1]:f.line,F=void 0;v.pos=0,v.addToken=NU,he(s.display.measure)&&(F=Pe(N,s.doc.direction))&&(v.addToken=RU(v.addToken,F)),v.map=[];var K=f!=s.display.externalMeasured&&Tt(N);MU(N,v,Bt(s,N,K)),N.styleClasses&&(N.styleClasses.bgClass&&(v.bgClass=V(N.styleClasses.bgClass,v.bgClass||"")),N.styleClasses.textClass&&(v.textClass=V(N.styleClasses.textClass,v.textClass||""))),v.map.length==0&&v.map.push(0,0,v.content.appendChild(gt(s.display.measure))),w==0?(f.measure.map=v.map,f.measure.cache={}):((f.measure.maps||(f.measure.maps=[])).push(v.map),(f.measure.caches||(f.measure.caches=[])).push({}))}if(c){var q=v.content.lastChild;(/\bcm-tab\b/.test(q.className)||q.querySelector&&q.querySelector(".cm-tab"))&&(v.content.className="cm-tab-wrap-hack")}return xe(s,"renderLine",s,f.line,v.pre),v.pre.className&&(v.textClass=V(v.pre.className,v.textClass||"")),v}function $U(s){var f=D("span","•","cm-invalidchar");return f.title="\\u"+s.charCodeAt(0).toString(16),f.setAttribute("aria-label",f.title),f}function NU(s,f,y,v,w,N,F){if(f){var K=s.splitSpaces?AU(f,s.trailingSpace):f,q=s.cm.state.specialChars,Z=!1,ce;if(!q.test(f))s.col+=f.length,ce=document.createTextNode(K),s.map.push(s.pos,s.pos+f.length,ce),a&&l<9&&(Z=!0),s.pos+=f.length;else{ce=document.createDocumentFragment();for(var ye=0;;){q.lastIndex=ye;var Fe=q.exec(f),Re=Fe?Fe.index-ye:f.length-ye;if(Re){var rt=document.createTextNode(K.slice(ye,ye+Re));a&&l<9?ce.appendChild(D("span",[rt])):ce.appendChild(rt),s.map.push(s.pos,s.pos+Re,rt),s.col+=Re,s.pos+=Re}if(!Fe)break;ye+=Re+1;var ut=void 0;if(Fe[0]==" "){var yt=s.cm.options.tabSize,kt=yt-s.col%yt;ut=ce.appendChild(D("span",de(kt),"cm-tab")),ut.setAttribute("role","presentation"),ut.setAttribute("cm-text"," "),s.col+=kt}else Fe[0]=="\r"||Fe[0]==`
`?(ut=ce.appendChild(D("span",Fe[0]=="\r"?"␍":"␤","cm-invalidchar")),ut.setAttribute("cm-text",Fe[0]),s.col+=1):(ut=s.cm.options.specialCharPlaceholder(Fe[0]),ut.setAttribute("cm-text",Fe[0]),a&&l<9?ce.appendChild(D("span",[ut])):ce.appendChild(ut),s.col+=1);s.map.push(s.pos,s.pos+1,ut),s.pos++}}if(s.trailingSpace=K.charCodeAt(f.length-1)==32,y||v||w||Z||N||F){var Mt=y||"";v&&(Mt+=v),w&&(Mt+=w);var $t=D("span",[ce],Mt,N);if(F)for(var jt in F)F.hasOwnProperty(jt)&&jt!="style"&&jt!="class"&&$t.setAttribute(jt,F[jt]);return s.content.appendChild($t)}s.content.appendChild(ce)}}function AU(s,f){if(s.length>1&&!/ /.test(s))return s;for(var y=f,v="",w=0;w<s.length;w++){var N=s.charAt(w);N==" "&&y&&(w==s.length-1||s.charCodeAt(w+1)==32)&&(N=" "),v+=N,y=N==" "}return v}function RU(s,f){return function(y,v,w,N,F,K,q){w=w?w+" cm-force-border":"cm-force-border";for(var Z=y.pos,ce=Z+v.length;;){for(var ye=void 0,Fe=0;Fe<f.length&&(ye=f[Fe],!(ye.to>Z&&ye.from<=Z));Fe++);if(ye.to>=ce)return s(y,v,w,N,F,K,q);s(y,v.slice(0,ye.to-Z),w,N,null,K,q),N=null,v=v.slice(ye.to-Z),Z=ye.to}}}function Mw(s,f,y,v){var w=!v&&y.widgetNode;w&&s.map.push(s.pos,s.pos+f,w),!v&&s.cm.display.input.needsContentAttribute&&(w||(w=s.content.appendChild(document.createElement("span"))),w.setAttribute("cm-marker",y.id)),w&&(s.cm.display.input.setUneditable(w),s.content.appendChild(w)),s.pos+=f,s.trailingSpace=!1}function MU(s,f,y){var v=s.markedSpans,w=s.text,N=0;if(!v){for(var F=1;F<y.length;F+=2)f.addToken(f,w.slice(N,N=y[F]),Aw(y[F+1],f.cm.options));return}for(var K=w.length,q=0,Z=1,ce="",ye,Fe,Re=0,rt,ut,yt,kt,Mt;;){if(Re==q){rt=ut=yt=Fe="",Mt=null,kt=null,Re=1/0;for(var $t=[],jt=void 0,nn=0;nn<v.length;++nn){var Qt=v[nn],gn=Qt.marker;if(gn.type=="bookmark"&&Qt.from==q&&gn.widgetNode)$t.push(gn);else if(Qt.from<=q&&(Qt.to==null||Qt.to>q||gn.collapsed&&Qt.to==q&&Qt.from==q)){if(Qt.to!=null&&Qt.to!=q&&Re>Qt.to&&(Re=Qt.to,ut=""),gn.className&&(rt+=" "+gn.className),gn.css&&(Fe=(Fe?Fe+";":"")+gn.css),gn.startStyle&&Qt.from==q&&(yt+=" "+gn.startStyle),gn.endStyle&&Qt.to==Re&&(jt||(jt=[])).push(gn.endStyle,Qt.to),gn.title&&((Mt||(Mt={})).title=gn.title),gn.attributes)for(var Jn in gn.attributes)(Mt||(Mt={}))[Jn]=gn.attributes[Jn];gn.collapsed&&(!kt||ur(kt.marker,gn)<0)&&(kt=Qt)}else Qt.from>q&&Re>Qt.from&&(Re=Qt.from)}if(jt)for(var fi=0;fi<jt.length;fi+=2)jt[fi+1]==Re&&(ut+=" "+jt[fi]);if(!kt||kt.from==q)for(var Er=0;Er<$t.length;++Er)Mw(f,0,$t[Er]);if(kt&&(kt.from||0)==q){if(Mw(f,(kt.to==null?K+1:kt.to)-q,kt.marker,kt.from==null),kt.to==null)return;kt.to==q&&(kt=!1)}}if(q>=K)break;for(var Co=Math.min(K,Re);;){if(ce){var to=q+ce.length;if(!kt){var zr=to>Co?ce.slice(0,Co-q):ce;f.addToken(f,zr,ye?ye+rt:rt,yt,q+zr.length==Re?ut:"",Fe,Mt)}if(to>=Co){ce=ce.slice(Co-q),q=Co;break}q=to,yt=""}ce=w.slice(N,N=y[Z++]),ye=Aw(y[Z++],f.cm.options)}}}function Pw(s,f,y){this.line=f,this.rest=_U(f),this.size=this.rest?Tt(re(this.rest))-y+1:1,this.node=this.text=null,this.hidden=_s(s,f)}function r0(s,f,y){for(var v=[],w,N=f;N<y;N=w){var F=new Pw(s.doc,ot(s.doc,N),N);w=N+F.size,v.push(F)}return v}var id=null;function PU(s){id?id.ops.push(s):s.ownsGroup=id={ops:[s],delayedCallbacks:[]}}function LU(s){var f=s.delayedCallbacks,y=0;do{for(;y<f.length;y++)f[y].call(null);for(var v=0;v<s.ops.length;v++){var w=s.ops[v];if(w.cursorActivityHandlers)for(;w.cursorActivityCalled<w.cursorActivityHandlers.length;)w.cursorActivityHandlers[w.cursorActivityCalled++].call(null,w.cm)}}while(y<f.length)}function DU(s,f){var y=s.ownsGroup;if(y)try{LU(y)}finally{id=null,f(y)}}var k1=null;function ci(s,f){var y=Qe(s,f);if(y.length){var v=Array.prototype.slice.call(arguments,2),w;id?w=id.delayedCallbacks:k1?w=k1:(w=k1=[],setTimeout(FU,0));for(var N=function(K){w.push(function(){return y[K].apply(null,v)})},F=0;F<y.length;++F)N(F)}}function FU(){var s=k1;k1=null;for(var f=0;f<s.length;++f)s[f]()}function Lw(s,f,y,v){for(var w=0;w<f.changes.length;w++){var N=f.changes[w];N=="text"?jU(s,f):N=="gutter"?Fw(s,f,y,v):N=="class"?Y2(s,f):N=="widget"&&HU(s,f,v)}f.changes=null}function $1(s){return s.node==s.text&&(s.node=D("div",null,null,"position: relative"),s.text.parentNode&&s.text.parentNode.replaceChild(s.node,s.text),s.node.appendChild(s.text),a&&l<8&&(s.node.style.zIndex=2)),s.node}function BU(s,f){var y=f.bgClass?f.bgClass+" "+(f.line.bgClass||""):f.line.bgClass;if(y&&(y+=" CodeMirror-linebackground"),f.background)y?f.background.className=y:(f.background.parentNode.removeChild(f.background),f.background=null);else if(y){var v=$1(f);f.background=v.insertBefore(D("div",null,y),v.firstChild),s.display.input.setUneditable(f.background)}}function Dw(s,f){var y=s.display.externalMeasured;return y&&y.line==f.line?(s.display.externalMeasured=null,f.measure=y.measure,y.built):Rw(s,f)}function jU(s,f){var y=f.text.className,v=Dw(s,f);f.text==f.node&&(f.node=v.pre),f.text.parentNode.replaceChild(v.pre,f.text),f.text=v.pre,v.bgClass!=f.bgClass||v.textClass!=f.textClass?(f.bgClass=v.bgClass,f.textClass=v.textClass,Y2(s,f)):y&&(f.text.className=y)}function Y2(s,f){BU(s,f),f.line.wrapClass?$1(f).className=f.line.wrapClass:f.node!=f.text&&(f.node.className="");var y=f.textClass?f.textClass+" "+(f.line.textClass||""):f.line.textClass;f.text.className=y||""}function Fw(s,f,y,v){if(f.gutter&&(f.node.removeChild(f.gutter),f.gutter=null),f.gutterBackground&&(f.node.removeChild(f.gutterBackground),f.gutterBackground=null),f.line.gutterClass){var w=$1(f);f.gutterBackground=D("div",null,"CodeMirror-gutter-background "+f.line.gutterClass,"left: "+(s.options.fixedGutter?v.fixedPos:-v.gutterTotalWidth)+"px; width: "+v.gutterTotalWidth+"px"),s.display.input.setUneditable(f.gutterBackground),w.insertBefore(f.gutterBackground,f.text)}var N=f.line.gutterMarkers;if(s.options.lineNumbers||N){var F=$1(f),K=f.gutter=D("div",null,"CodeMirror-gutter-wrapper","left: "+(s.options.fixedGutter?v.fixedPos:-v.gutterTotalWidth)+"px");if(K.setAttribute("aria-hidden","true"),s.display.input.setUneditable(K),F.insertBefore(K,f.text),f.line.gutterClass&&(K.className+=" "+f.line.gutterClass),s.options.lineNumbers&&(!N||!N["CodeMirror-linenumbers"])&&(f.lineNumber=K.appendChild(D("div",Sn(s.options,y),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+v.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+s.display.lineNumInnerWidth+"px"))),N)for(var q=0;q<s.display.gutterSpecs.length;++q){var Z=s.display.gutterSpecs[q].className,ce=N.hasOwnProperty(Z)&&N[Z];ce&&K.appendChild(D("div",[ce],"CodeMirror-gutter-elt","left: "+v.gutterLeft[Z]+"px; width: "+v.gutterWidth[Z]+"px"))}}}function HU(s,f,y){f.alignable&&(f.alignable=null);for(var v=$("CodeMirror-linewidget"),w=f.node.firstChild,N=void 0;w;w=N)N=w.nextSibling,v.test(w.className)&&f.node.removeChild(w);Bw(s,f,y)}function zU(s,f,y,v){var w=Dw(s,f);return f.text=f.node=w.pre,w.bgClass&&(f.bgClass=w.bgClass),w.textClass&&(f.textClass=w.textClass),Y2(s,f),Fw(s,f,y,v),Bw(s,f,v),f.node}function Bw(s,f,y){if(jw(s,f.line,f,y,!0),f.rest)for(var v=0;v<f.rest.length;v++)jw(s,f.rest[v],f,y,!1)}function jw(s,f,y,v,w){if(f.widgets)for(var N=$1(y),F=0,K=f.widgets;F<K.length;++F){var q=K[F],Z=D("div",[q.node],"CodeMirror-linewidget"+(q.className?" "+q.className:""));q.handleMouseEvents||Z.setAttribute("cm-ignore-events","true"),WU(q,Z,y,v),s.display.input.setUneditable(Z),w&&q.above?N.insertBefore(Z,y.gutter||y.text):N.appendChild(Z),ci(q,"redraw")}}function WU(s,f,y,v){if(s.noHScroll){(y.alignable||(y.alignable=[])).push(f);var w=v.wrapperWidth;f.style.left=v.fixedPos+"px",s.coverGutter||(w-=v.gutterTotalWidth,f.style.paddingLeft=v.gutterTotalWidth+"px"),f.style.width=w+"px"}s.coverGutter&&(f.style.zIndex=5,f.style.position="relative",s.noHScroll||(f.style.marginLeft=-v.gutterTotalWidth+"px"))}function N1(s){if(s.height!=null)return s.height;var f=s.doc.cm;if(!f)return 0;if(!H(document.body,s.node)){var y="position: relative;";s.coverGutter&&(y+="margin-left: -"+f.display.gutters.offsetWidth+"px;"),s.noHScroll&&(y+="width: "+f.display.wrapper.clientWidth+"px;"),j(f.display.measure,D("div",[s.node],null,y))}return s.height=s.node.parentNode.offsetHeight}function Vl(s,f){for(var y=rn(f);y!=s.wrapper;y=y.parentNode)if(!y||y.nodeType==1&&y.getAttribute("cm-ignore-events")=="true"||y.parentNode==s.sizer&&y!=s.mover)return!0}function i0(s){return s.lineSpace.offsetTop}function Q2(s){return s.mover.offsetHeight-s.lineSpace.offsetHeight}function Hw(s){if(s.cachedPaddingH)return s.cachedPaddingH;var f=j(s.measure,D("pre","x","CodeMirror-line-like")),y=window.getComputedStyle?window.getComputedStyle(f):f.currentStyle,v={left:parseInt(y.paddingLeft),right:parseInt(y.paddingRight)};return!isNaN(v.left)&&!isNaN(v.right)&&(s.cachedPaddingH=v),v}function ml(s){return ee-s.display.nativeBarWidth}function Wc(s){return s.display.scroller.clientWidth-ml(s)-s.display.barWidth}function Z2(s){return s.display.scroller.clientHeight-ml(s)-s.display.barHeight}function UU(s,f,y){var v=s.options.lineWrapping,w=v&&Wc(s);if(!f.measure.heights||v&&f.measure.width!=w){var N=f.measure.heights=[];if(v){f.measure.width=w;for(var F=f.text.firstChild.getClientRects(),K=0;K<F.length-1;K++){var q=F[K],Z=F[K+1];Math.abs(q.bottom-Z.bottom)>2&&N.push((q.bottom+Z.top)/2-y.top)}}N.push(y.bottom-y.top)}}function zw(s,f,y){if(s.line==f)return{map:s.measure.map,cache:s.measure.cache};if(s.rest){for(var v=0;v<s.rest.length;v++)if(s.rest[v]==f)return{map:s.measure.maps[v],cache:s.measure.caches[v]};for(var w=0;w<s.rest.length;w++)if(Tt(s.rest[w])>y)return{map:s.measure.maps[w],cache:s.measure.caches[w],before:!0}}}function KU(s,f){f=Fa(f);var y=Tt(f),v=s.display.externalMeasured=new Pw(s.doc,f,y);v.lineN=y;var w=v.built=Rw(s,v);return v.text=w.pre,j(s.display.lineMeasure,w.pre),v}function Ww(s,f,y,v){return gl(s,od(s,f),y,v)}function J2(s,f){if(f>=s.display.viewFrom&&f<s.display.viewTo)return s.display.view[Vc(s,f)];var y=s.display.externalMeasured;if(y&&f>=y.lineN&&f<y.lineN+y.size)return y}function od(s,f){var y=Tt(f),v=J2(s,y);v&&!v.text?v=null:v&&v.changes&&(Lw(s,v,y,i5(s)),s.curOp.forceUpdate=!0),v||(v=KU(s,f));var w=zw(v,f,y);return{line:f,view:v,rect:null,map:w.map,cache:w.cache,before:w.before,hasHeights:!1}}function gl(s,f,y,v,w){f.before&&(y=-1);var N=y+(v||""),F;return f.cache.hasOwnProperty(N)?F=f.cache[N]:(f.rect||(f.rect=f.view.text.getBoundingClientRect()),f.hasHeights||(UU(s,f.view,f.rect),f.hasHeights=!0),F=GU(s,f,y,v),F.bogus||(f.cache[N]=F)),{left:F.left,right:F.right,top:w?F.rtop:F.top,bottom:w?F.rbottom:F.bottom}}var Uw={left:0,right:0,top:0,bottom:0};function Kw(s,f,y){for(var v,w,N,F,K,q,Z=0;Z<s.length;Z+=3)if(K=s[Z],q=s[Z+1],f<K?(w=0,N=1,F="left"):f<q?(w=f-K,N=w+1):(Z==s.length-3||f==q&&s[Z+3]>f)&&(N=q-K,w=N-1,f>=q&&(F="right")),w!=null){if(v=s[Z+2],K==q&&y==(v.insertLeft?"left":"right")&&(F=y),y=="left"&&w==0)for(;Z&&s[Z-2]==s[Z-3]&&s[Z-1].insertLeft;)v=s[(Z-=3)+2],F="left";if(y=="right"&&w==q-K)for(;Z<s.length-3&&s[Z+3]==s[Z+4]&&!s[Z+5].insertLeft;)v=s[(Z+=3)+2],F="right";break}return{node:v,start:w,end:N,collapse:F,coverStart:K,coverEnd:q}}function VU(s,f){var y=Uw;if(f=="left")for(var v=0;v<s.length&&(y=s[v]).left==y.right;v++);else for(var w=s.length-1;w>=0&&(y=s[w]).left==y.right;w--);return y}function GU(s,f,y,v){var w=Kw(f.map,y,v),N=w.node,F=w.start,K=w.end,q=w.collapse,Z;if(N.nodeType==3){for(var ce=0;ce<4;ce++){for(;F&&Le(f.line.text.charAt(w.coverStart+F));)--F;for(;w.coverStart+K<w.coverEnd&&Le(f.line.text.charAt(w.coverStart+K));)++K;if(a&&l<9&&F==0&&K==w.coverEnd-w.coverStart?Z=N.parentNode.getBoundingClientRect():Z=VU(B(N,F,K).getClientRects(),v),Z.left||Z.right||F==0)break;K=F,F=F-1,q="right"}a&&l<11&&(Z=qU(s.display.measure,Z))}else{F>0&&(q=v="right");var ye;s.options.lineWrapping&&(ye=N.getClientRects()).length>1?Z=ye[v=="right"?ye.length-1:0]:Z=N.getBoundingClientRect()}if(a&&l<9&&!F&&(!Z||!Z.left&&!Z.right)){var Fe=N.parentNode.getClientRects()[0];Fe?Z={left:Fe.left,right:Fe.left+ld(s.display),top:Fe.top,bottom:Fe.bottom}:Z=Uw}for(var Re=Z.top-f.rect.top,rt=Z.bottom-f.rect.top,ut=(Re+rt)/2,yt=f.view.measure.heights,kt=0;kt<yt.length-1&&!(ut<yt[kt]);kt++);var Mt=kt?yt[kt-1]:0,$t=yt[kt],jt={left:(q=="right"?Z.right:Z.left)-f.rect.left,right:(q=="left"?Z.left:Z.right)-f.rect.left,top:Mt,bottom:$t};return!Z.left&&!Z.right&&(jt.bogus=!0),s.options.singleCursorHeightPerLine||(jt.rtop=Re,jt.rbottom=rt),jt}function qU(s,f){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!tt(s))return f;var y=screen.logicalXDPI/screen.deviceXDPI,v=screen.logicalYDPI/screen.deviceYDPI;return{left:f.left*y,right:f.right*y,top:f.top*v,bottom:f.bottom*v}}function Vw(s){if(s.measure&&(s.measure.cache={},s.measure.heights=null,s.rest))for(var f=0;f<s.rest.length;f++)s.measure.caches[f]={}}function Gw(s){s.display.externalMeasure=null,R(s.display.lineMeasure);for(var f=0;f<s.display.view.length;f++)Vw(s.display.view[f])}function A1(s){Gw(s),s.display.cachedCharWidth=s.display.cachedTextHeight=s.display.cachedPaddingH=null,s.options.lineWrapping||(s.display.maxLineChanged=!0),s.display.lineNumChars=null}function qw(){return p&&x?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function Xw(){return p&&x?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function e5(s){var f=Fa(s),y=f.widgets,v=0;if(y)for(var w=0;w<y.length;++w)y[w].above&&(v+=N1(y[w]));return v}function o0(s,f,y,v,w){if(!w){var N=e5(f);y.top+=N,y.bottom+=N}if(v=="line")return y;v||(v="local");var F=Kl(f);if(v=="local"?F+=i0(s.display):F-=s.display.viewOffset,v=="page"||v=="window"){var K=s.display.lineSpace.getBoundingClientRect();F+=K.top+(v=="window"?0:Xw());var q=K.left+(v=="window"?0:qw());y.left+=q,y.right+=q}return y.top+=F,y.bottom+=F,y}function Yw(s,f,y){if(y=="div")return f;var v=f.left,w=f.top;if(y=="page")v-=qw(),w-=Xw();else if(y=="local"||!y){var N=s.display.sizer.getBoundingClientRect();v+=N.left,w+=N.top}var F=s.display.lineSpace.getBoundingClientRect();return{left:v-F.left,top:w-F.top}}function a0(s,f,y,v,w){return v||(v=ot(s.doc,f.line)),o0(s,v,Ww(s,v,f.ch,w),y)}function Ba(s,f,y,v,w,N){v=v||ot(s.doc,f.line),w||(w=od(s,v));function F(rt,ut){var yt=gl(s,w,rt,ut?"right":"left",N);return ut?yt.left=yt.right:yt.right=yt.left,o0(s,v,yt,y)}var K=Pe(v,s.doc.direction),q=f.ch,Z=f.sticky;if(q>=v.text.length?(q=v.text.length,Z="before"):q<=0&&(q=0,Z="after"),!K)return F(Z=="before"?q-1:q,Z=="before");function ce(rt,ut,yt){var kt=K[ut],Mt=kt.level==1;return F(yt?rt-1:rt,Mt!=yt)}var ye=ke(K,q,Z),Fe=Ce,Re=ce(q,ye,Z=="before");return Fe!=null&&(Re.other=ce(q,Fe,Z!="before")),Re}function Qw(s,f){var y=0;f=Ht(s.doc,f),s.options.lineWrapping||(y=ld(s.display)*f.ch);var v=ot(s.doc,f.line),w=Kl(v)+i0(s.display);return{left:y,right:y,top:w,bottom:w+v.height}}function t5(s,f,y,v,w){var N=Ke(s,f,y);return N.xRel=w,v&&(N.outside=v),N}function n5(s,f,y){var v=s.doc;if(y+=s.display.viewOffset,y<0)return t5(v.first,0,null,-1,-1);var w=tn(v,y),N=v.first+v.size-1;if(w>N)return t5(v.first+v.size-1,ot(v,N).text.length,null,1,1);f<0&&(f=0);for(var F=ot(v,w);;){var K=XU(s,F,w,f,y),q=nd(F,K.ch+(K.xRel>0||K.outside>0?1:0));if(!q)return K;var Z=q.find(1);if(Z.line==w)return Z;F=ot(v,w=Z.line)}}function Zw(s,f,y,v){v-=e5(f);var w=f.text.length,N=Ge(function(F){return gl(s,y,F-1).bottom<=v},w,0);return w=Ge(function(F){return gl(s,y,F).top>v},N,w),{begin:N,end:w}}function Jw(s,f,y,v){y||(y=od(s,f));var w=o0(s,f,gl(s,y,v),"line").top;return Zw(s,f,y,w)}function r5(s,f,y,v){return s.bottom<=y?!1:s.top>y?!0:(v?s.left:s.right)>f}function XU(s,f,y,v,w){w-=Kl(f);var N=od(s,f),F=e5(f),K=0,q=f.text.length,Z=!0,ce=Pe(f,s.doc.direction);if(ce){var ye=(s.options.lineWrapping?QU:YU)(s,f,y,N,ce,v,w);Z=ye.level!=1,K=Z?ye.from:ye.to-1,q=Z?ye.to:ye.from-1}var Fe=null,Re=null,rt=Ge(function(nn){var Qt=gl(s,N,nn);return Qt.top+=F,Qt.bottom+=F,r5(Qt,v,w,!1)?(Qt.top<=w&&Qt.left<=v&&(Fe=nn,Re=Qt),!0):!1},K,q),ut,yt,kt=!1;if(Re){var Mt=v-Re.left<Re.right-v,$t=Mt==Z;rt=Fe+($t?0:1),yt=$t?"after":"before",ut=Mt?Re.left:Re.right}else{!Z&&(rt==q||rt==K)&&rt++,yt=rt==0?"after":rt==f.text.length?"before":gl(s,N,rt-(Z?1:0)).bottom+F<=w==Z?"after":"before";var jt=Ba(s,Ke(y,rt,yt),"line",f,N);ut=jt.left,kt=w<jt.top?-1:w>=jt.bottom?1:0}return rt=je(f.text,rt,1),t5(y,rt,yt,kt,v-ut)}function YU(s,f,y,v,w,N,F){var K=Ge(function(ye){var Fe=w[ye],Re=Fe.level!=1;return r5(Ba(s,Ke(y,Re?Fe.to:Fe.from,Re?"before":"after"),"line",f,v),N,F,!0)},0,w.length-1),q=w[K];if(K>0){var Z=q.level!=1,ce=Ba(s,Ke(y,Z?q.from:q.to,Z?"after":"before"),"line",f,v);r5(ce,N,F,!0)&&ce.top>F&&(q=w[K-1])}return q}function QU(s,f,y,v,w,N,F){var K=Zw(s,f,v,F),q=K.begin,Z=K.end;/\s/.test(f.text.charAt(Z-1))&&Z--;for(var ce=null,ye=null,Fe=0;Fe<w.length;Fe++){var Re=w[Fe];if(!(Re.from>=Z||Re.to<=q)){var rt=Re.level!=1,ut=gl(s,v,rt?Math.min(Z,Re.to)-1:Math.max(q,Re.from)).right,yt=ut<N?N-ut+1e9:ut-N;(!ce||ye>yt)&&(ce=Re,ye=yt)}}return ce||(ce=w[w.length-1]),ce.from<q&&(ce={from:q,to:ce.to,level:ce.level}),ce.to>Z&&(ce={from:ce.from,to:Z,level:ce.level}),ce}var Uc;function ad(s){if(s.cachedTextHeight!=null)return s.cachedTextHeight;if(Uc==null){Uc=D("pre",null,"CodeMirror-line-like");for(var f=0;f<49;++f)Uc.appendChild(document.createTextNode("x")),Uc.appendChild(D("br"));Uc.appendChild(document.createTextNode("x"))}j(s.measure,Uc);var y=Uc.offsetHeight/50;return y>3&&(s.cachedTextHeight=y),R(s.measure),y||1}function ld(s){if(s.cachedCharWidth!=null)return s.cachedCharWidth;var f=D("span","xxxxxxxxxx"),y=D("pre",[f],"CodeMirror-line-like");j(s.measure,y);var v=f.getBoundingClientRect(),w=(v.right-v.left)/10;return w>2&&(s.cachedCharWidth=w),w||10}function i5(s){for(var f=s.display,y={},v={},w=f.gutters.clientLeft,N=f.gutters.firstChild,F=0;N;N=N.nextSibling,++F){var K=s.display.gutterSpecs[F].className;y[K]=N.offsetLeft+N.clientLeft+w,v[K]=N.clientWidth}return{fixedPos:o5(f),gutterTotalWidth:f.gutters.offsetWidth,gutterLeft:y,gutterWidth:v,wrapperWidth:f.wrapper.clientWidth}}function o5(s){return s.scroller.getBoundingClientRect().left-s.sizer.getBoundingClientRect().left}function e6(s){var f=ad(s.display),y=s.options.lineWrapping,v=y&&Math.max(5,s.display.scroller.clientWidth/ld(s.display)-3);return function(w){if(_s(s.doc,w))return 0;var N=0;if(w.widgets)for(var F=0;F<w.widgets.length;F++)w.widgets[F].height&&(N+=w.widgets[F].height);return y?N+(Math.ceil(w.text.length/v)||1)*f:N+f}}function a5(s){var f=s.doc,y=e6(s);f.iter(function(v){var w=y(v);w!=v.height&&xt(v,w)})}function Kc(s,f,y,v){var w=s.display;if(!y&&rn(f).getAttribute("cm-not-content")=="true")return null;var N,F,K=w.lineSpace.getBoundingClientRect();try{N=f.clientX-K.left,F=f.clientY-K.top}catch{return null}var q=n5(s,N,F),Z;if(v&&q.xRel>0&&(Z=ot(s.doc,q.line).text).length==q.ch){var ce=Y(Z,Z.length,s.options.tabSize)-Z.length;q=Ke(q.line,Math.max(0,Math.round((N-Hw(s.display).left)/ld(s.display))-ce))}return q}function Vc(s,f){if(f>=s.display.viewTo||(f-=s.display.viewFrom,f<0))return null;for(var y=s.display.view,v=0;v<y.length;v++)if(f-=y[v].size,f<0)return v}function Ji(s,f,y,v){f==null&&(f=s.doc.first),y==null&&(y=s.doc.first+s.doc.size),v||(v=0);var w=s.display;if(v&&y<w.viewTo&&(w.updateLineNumbers==null||w.updateLineNumbers>f)&&(w.updateLineNumbers=f),s.curOp.viewChanged=!0,f>=w.viewTo)qt&&G2(s.doc,f)<w.viewTo&&Os(s);else if(y<=w.viewFrom)qt&&Nw(s.doc,y+v)>w.viewFrom?Os(s):(w.viewFrom+=v,w.viewTo+=v);else if(f<=w.viewFrom&&y>=w.viewTo)Os(s);else if(f<=w.viewFrom){var N=l0(s,y,y+v,1);N?(w.view=w.view.slice(N.index),w.viewFrom=N.lineN,w.viewTo+=v):Os(s)}else if(y>=w.viewTo){var F=l0(s,f,f,-1);F?(w.view=w.view.slice(0,F.index),w.viewTo=F.lineN):Os(s)}else{var K=l0(s,f,f,-1),q=l0(s,y,y+v,1);K&&q?(w.view=w.view.slice(0,K.index).concat(r0(s,K.lineN,q.lineN)).concat(w.view.slice(q.index)),w.viewTo+=v):Os(s)}var Z=w.externalMeasured;Z&&(y<Z.lineN?Z.lineN+=v:f<Z.lineN+Z.size&&(w.externalMeasured=null))}function Ts(s,f,y){s.curOp.viewChanged=!0;var v=s.display,w=s.display.externalMeasured;if(w&&f>=w.lineN&&f<w.lineN+w.size&&(v.externalMeasured=null),!(f<v.viewFrom||f>=v.viewTo)){var N=v.view[Vc(s,f)];if(N.node!=null){var F=N.changes||(N.changes=[]);Q(F,y)==-1&&F.push(y)}}}function Os(s){s.display.viewFrom=s.display.viewTo=s.doc.first,s.display.view=[],s.display.viewOffset=0}function l0(s,f,y,v){var w=Vc(s,f),N,F=s.display.view;if(!qt||y==s.doc.first+s.doc.size)return{index:w,lineN:y};for(var K=s.display.viewFrom,q=0;q<w;q++)K+=F[q].size;if(K!=f){if(v>0){if(w==F.length-1)return null;N=K+F[w].size-f,w++}else N=K-f;f+=N,y+=N}for(;G2(s.doc,y)!=y;){if(w==(v<0?0:F.length-1))return null;y+=v*F[w-(v<0?1:0)].size,w+=v}return{index:w,lineN:y}}function ZU(s,f,y){var v=s.display,w=v.view;w.length==0||f>=v.viewTo||y<=v.viewFrom?(v.view=r0(s,f,y),v.viewFrom=f):(v.viewFrom>f?v.view=r0(s,f,v.viewFrom).concat(v.view):v.viewFrom<f&&(v.view=v.view.slice(Vc(s,f))),v.viewFrom=f,v.viewTo<y?v.view=v.view.concat(r0(s,v.viewTo,y)):v.viewTo>y&&(v.view=v.view.slice(0,Vc(s,y)))),v.viewTo=y}function t6(s){for(var f=s.display.view,y=0,v=0;v<f.length;v++){var w=f[v];!w.hidden&&(!w.node||w.changes)&&++y}return y}function R1(s){s.display.input.showSelection(s.display.input.prepareSelection())}function n6(s,f){f===void 0&&(f=!0);var y=s.doc,v={},w=v.cursors=document.createDocumentFragment(),N=v.selection=document.createDocumentFragment(),F=s.options.$customCursor;F&&(f=!0);for(var K=0;K<y.sel.ranges.length;K++)if(!(!f&&K==y.sel.primIndex)){var q=y.sel.ranges[K];if(!(q.from().line>=s.display.viewTo||q.to().line<s.display.viewFrom)){var Z=q.empty();if(F){var ce=F(s,q);ce&&l5(s,ce,w)}else(Z||s.options.showCursorWhenSelecting)&&l5(s,q.head,w);Z||JU(s,q,N)}}return v}function l5(s,f,y){var v=Ba(s,f,"div",null,null,!s.options.singleCursorHeightPerLine),w=y.appendChild(D("div"," ","CodeMirror-cursor"));if(w.style.left=v.left+"px",w.style.top=v.top+"px",w.style.height=Math.max(0,v.bottom-v.top)*s.options.cursorHeight+"px",/\bcm-fat-cursor\b/.test(s.getWrapperElement().className)){var N=a0(s,f,"div",null,null),F=N.right-N.left;w.style.width=(F>0?F:s.defaultCharWidth())+"px"}if(v.other){var K=y.appendChild(D("div"," ","CodeMirror-cursor CodeMirror-secondarycursor"));K.style.display="",K.style.left=v.other.left+"px",K.style.top=v.other.top+"px",K.style.height=(v.other.bottom-v.other.top)*.85+"px"}}function s0(s,f){return s.top-f.top||s.left-f.left}function JU(s,f,y){var v=s.display,w=s.doc,N=document.createDocumentFragment(),F=Hw(s.display),K=F.left,q=Math.max(v.sizerWidth,Wc(s)-v.sizer.offsetLeft)-F.right,Z=w.direction=="ltr";function ce($t,jt,nn,Qt){jt<0&&(jt=0),jt=Math.round(jt),Qt=Math.round(Qt),N.appendChild(D("div",null,"CodeMirror-selected","position: absolute; left: "+$t+`px;
top: `+jt+"px; width: "+(nn??q-$t)+`px;
height: `+(Qt-jt)+"px"))}function ye($t,jt,nn){var Qt=ot(w,$t),gn=Qt.text.length,Jn,fi;function Er(zr,no){return a0(s,Ke($t,zr),"div",Qt,no)}function Co(zr,no,Si){var qr=Jw(s,Qt,null,zr),Wr=no=="ltr"==(Si=="after")?"left":"right",kr=Si=="after"?qr.begin:qr.end-(/\s/.test(Qt.text.charAt(qr.end-1))?2:1);return Er(kr,Wr)[Wr]}var to=Pe(Qt,w.direction);return qe(to,jt||0,nn??gn,function(zr,no,Si,qr){var Wr=Si=="ltr",kr=Er(zr,Wr?"left":"right"),ro=Er(no-1,Wr?"right":"left"),Cd=jt==null&&zr==0,Rs=nn==null&&no==gn,ki=qr==0,vl=!to||qr==to.length-1;if(ro.top-kr.top<=3){var pi=(Z?Cd:Rs)&&ki,R5=(Z?Rs:Cd)&&vl,Xl=pi?K:(Wr?kr:ro).left,Qc=R5?q:(Wr?ro:kr).right;ce(Xl,kr.top,Qc-Xl,kr.bottom)}else{var Zc,Hi,Sd,M5;Wr?(Zc=Z&&Cd&&ki?K:kr.left,Hi=Z?q:Co(zr,Si,"before"),Sd=Z?K:Co(no,Si,"after"),M5=Z&&Rs&&vl?q:ro.right):(Zc=Z?Co(zr,Si,"before"):K,Hi=!Z&&Cd&&ki?q:kr.right,Sd=!Z&&Rs&&vl?K:ro.left,M5=Z?Co(no,Si,"after"):q),ce(Zc,kr.top,Hi-Zc,kr.bottom),kr.bottom<ro.top&&ce(K,kr.bottom,null,ro.top),ce(Sd,ro.top,M5-Sd,ro.bottom)}(!Jn||s0(kr,Jn)<0)&&(Jn=kr),s0(ro,Jn)<0&&(Jn=ro),(!fi||s0(kr,fi)<0)&&(fi=kr),s0(ro,fi)<0&&(fi=ro)}),{start:Jn,end:fi}}var Fe=f.from(),Re=f.to();if(Fe.line==Re.line)ye(Fe.line,Fe.ch,Re.ch);else{var rt=ot(w,Fe.line),ut=ot(w,Re.line),yt=Fa(rt)==Fa(ut),kt=ye(Fe.line,Fe.ch,yt?rt.text.length+1:null).end,Mt=ye(Re.line,yt?0:null,Re.ch).start;yt&&(kt.top<Mt.top-2?(ce(kt.right,kt.top,null,kt.bottom),ce(K,Mt.top,Mt.left,Mt.bottom)):ce(kt.right,kt.top,Mt.left-kt.right,kt.bottom)),kt.bottom<Mt.top&&ce(K,kt.bottom,null,Mt.top)}y.appendChild(N)}function s5(s){if(s.state.focused){var f=s.display;clearInterval(f.blinker);var y=!0;f.cursorDiv.style.visibility="",s.options.cursorBlinkRate>0?f.blinker=setInterval(function(){s.hasFocus()||sd(s),f.cursorDiv.style.visibility=(y=!y)?"":"hidden"},s.options.cursorBlinkRate):s.options.cursorBlinkRate<0&&(f.cursorDiv.style.visibility="hidden")}}function r6(s){s.hasFocus()||(s.display.input.focus(),s.state.focused||u5(s))}function c5(s){s.state.delayingBlurEvent=!0,setTimeout(function(){s.state.delayingBlurEvent&&(s.state.delayingBlurEvent=!1,s.state.focused&&sd(s))},100)}function u5(s,f){s.state.delayingBlurEvent&&!s.state.draggingText&&(s.state.delayingBlurEvent=!1),s.options.readOnly!="nocursor"&&(s.state.focused||(xe(s,"focus",s,f),s.state.focused=!0,z(s.display.wrapper,"CodeMirror-focused"),!s.curOp&&s.display.selForContextMenu!=s.doc.sel&&(s.display.input.reset(),c&&setTimeout(function(){return s.display.input.reset(!0)},20)),s.display.input.receivedFocus()),s5(s))}function sd(s,f){s.state.delayingBlurEvent||(s.state.focused&&(xe(s,"blur",s,f),s.state.focused=!1,M(s.display.wrapper,"CodeMirror-focused")),clearInterval(s.display.blinker),setTimeout(function(){s.state.focused||(s.display.shift=!1)},150))}function c0(s){for(var f=s.display,y=f.lineDiv.offsetTop,v=Math.max(0,f.scroller.getBoundingClientRect().top),w=f.lineDiv.getBoundingClientRect().top,N=0,F=0;F<f.view.length;F++){var K=f.view[F],q=s.options.lineWrapping,Z=void 0,ce=0;if(!K.hidden){if(w+=K.line.height,a&&l<8){var ye=K.node.offsetTop+K.node.offsetHeight;Z=ye-y,y=ye}else{var Fe=K.node.getBoundingClientRect();Z=Fe.bottom-Fe.top,!q&&K.text.firstChild&&(ce=K.text.firstChild.getBoundingClientRect().right-Fe.left-1)}var Re=K.line.height-Z;if((Re>.005||Re<-.005)&&(w<v&&(N-=Re),xt(K.line,Z),i6(K.line),K.rest))for(var rt=0;rt<K.rest.length;rt++)i6(K.rest[rt]);if(ce>s.display.sizerWidth){var ut=Math.ceil(ce/ld(s.display));ut>s.display.maxLineLength&&(s.display.maxLineLength=ut,s.display.maxLine=K.line,s.display.maxLineChanged=!0)}}}Math.abs(N)>2&&(f.scroller.scrollTop+=N)}function i6(s){if(s.widgets)for(var f=0;f<s.widgets.length;++f){var y=s.widgets[f],v=y.node.parentNode;v&&(y.height=v.offsetHeight)}}function u0(s,f,y){var v=y&&y.top!=null?Math.max(0,y.top):s.scroller.scrollTop;v=Math.floor(v-i0(s));var w=y&&y.bottom!=null?y.bottom:v+s.wrapper.clientHeight,N=tn(f,v),F=tn(f,w);if(y&&y.ensure){var K=y.ensure.from.line,q=y.ensure.to.line;K<N?(N=K,F=tn(f,Kl(ot(f,K))+s.wrapper.clientHeight)):Math.min(q,f.lastLine())>=F&&(N=tn(f,Kl(ot(f,q))-s.wrapper.clientHeight),F=q)}return{from:N,to:Math.max(F,N+1)}}function eK(s,f){if(!Ne(s,"scrollCursorIntoView")){var y=s.display,v=y.sizer.getBoundingClientRect(),w=null;if(f.top+v.top<0?w=!0:f.bottom+v.top>(window.innerHeight||document.documentElement.clientHeight)&&(w=!1),w!=null&&!b){var N=D("div","",null,`position: absolute;
top: `+(f.top-y.viewOffset-i0(s.display))+`px;
height: `+(f.bottom-f.top+ml(s)+y.barHeight)+`px;
left: `+f.left+"px; width: "+Math.max(2,f.right-f.left)+"px;");s.display.lineSpace.appendChild(N),N.scrollIntoView(w),s.display.lineSpace.removeChild(N)}}}function tK(s,f,y,v){v==null&&(v=0);var w;!s.options.lineWrapping&&f==y&&(y=f.sticky=="before"?Ke(f.line,f.ch+1,"before"):f,f=f.ch?Ke(f.line,f.sticky=="before"?f.ch-1:f.ch,"after"):f);for(var N=0;N<5;N++){var F=!1,K=Ba(s,f),q=!y||y==f?K:Ba(s,y);w={left:Math.min(K.left,q.left),top:Math.min(K.top,q.top)-v,right:Math.max(K.left,q.left),bottom:Math.max(K.bottom,q.bottom)+v};var Z=d5(s,w),ce=s.doc.scrollTop,ye=s.doc.scrollLeft;if(Z.scrollTop!=null&&(P1(s,Z.scrollTop),Math.abs(s.doc.scrollTop-ce)>1&&(F=!0)),Z.scrollLeft!=null&&(Gc(s,Z.scrollLeft),Math.abs(s.doc.scrollLeft-ye)>1&&(F=!0)),!F)break}return w}function nK(s,f){var y=d5(s,f);y.scrollTop!=null&&P1(s,y.scrollTop),y.scrollLeft!=null&&Gc(s,y.scrollLeft)}function d5(s,f){var y=s.display,v=ad(s.display);f.top<0&&(f.top=0);var w=s.curOp&&s.curOp.scrollTop!=null?s.curOp.scrollTop:y.scroller.scrollTop,N=Z2(s),F={};f.bottom-f.top>N&&(f.bottom=f.top+N);var K=s.doc.height+Q2(y),q=f.top<v,Z=f.bottom>K-v;if(f.top<w)F.scrollTop=q?0:f.top;else if(f.bottom>w+N){var ce=Math.min(f.top,(Z?K:f.bottom)-N);ce!=w&&(F.scrollTop=ce)}var ye=s.options.fixedGutter?0:y.gutters.offsetWidth,Fe=s.curOp&&s.curOp.scrollLeft!=null?s.curOp.scrollLeft:y.scroller.scrollLeft-ye,Re=Wc(s)-y.gutters.offsetWidth,rt=f.right-f.left>Re;return rt&&(f.right=f.left+Re),f.left<10?F.scrollLeft=0:f.left<Fe?F.scrollLeft=Math.max(0,f.left+ye-(rt?0:10)):f.right>Re+Fe-3&&(F.scrollLeft=f.right+(rt?0:10)-Re),F}function f5(s,f){f!=null&&(d0(s),s.curOp.scrollTop=(s.curOp.scrollTop==null?s.doc.scrollTop:s.curOp.scrollTop)+f)}function cd(s){d0(s);var f=s.getCursor();s.curOp.scrollToPos={from:f,to:f,margin:s.options.cursorScrollMargin}}function M1(s,f,y){(f!=null||y!=null)&&d0(s),f!=null&&(s.curOp.scrollLeft=f),y!=null&&(s.curOp.scrollTop=y)}function rK(s,f){d0(s),s.curOp.scrollToPos=f}function d0(s){var f=s.curOp.scrollToPos;if(f){s.curOp.scrollToPos=null;var y=Qw(s,f.from),v=Qw(s,f.to);o6(s,y,v,f.margin)}}function o6(s,f,y,v){var w=d5(s,{left:Math.min(f.left,y.left),top:Math.min(f.top,y.top)-v,right:Math.max(f.right,y.right),bottom:Math.max(f.bottom,y.bottom)+v});M1(s,w.scrollLeft,w.scrollTop)}function P1(s,f){Math.abs(s.doc.scrollTop-f)<2||(n||h5(s,{top:f}),a6(s,f,!0),n&&h5(s),F1(s,100))}function a6(s,f,y){f=Math.max(0,Math.min(s.display.scroller.scrollHeight-s.display.scroller.clientHeight,f)),!(s.display.scroller.scrollTop==f&&!y)&&(s.doc.scrollTop=f,s.display.scrollbars.setScrollTop(f),s.display.scroller.scrollTop!=f&&(s.display.scroller.scrollTop=f))}function Gc(s,f,y,v){f=Math.max(0,Math.min(f,s.display.scroller.scrollWidth-s.display.scroller.clientWidth)),!((y?f==s.doc.scrollLeft:Math.abs(s.doc.scrollLeft-f)<2)&&!v)&&(s.doc.scrollLeft=f,d6(s),s.display.scroller.scrollLeft!=f&&(s.display.scroller.scrollLeft=f),s.display.scrollbars.setScrollLeft(f))}function L1(s){var f=s.display,y=f.gutters.offsetWidth,v=Math.round(s.doc.height+Q2(s.display));return{clientHeight:f.scroller.clientHeight,viewHeight:f.wrapper.clientHeight,scrollWidth:f.scroller.scrollWidth,clientWidth:f.scroller.clientWidth,viewWidth:f.wrapper.clientWidth,barLeft:s.options.fixedGutter?y:0,docHeight:v,scrollHeight:v+ml(s)+f.barHeight,nativeBarWidth:f.nativeBarWidth,gutterWidth:y}}var qc=function(s,f,y){this.cm=y;var v=this.vert=D("div",[D("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),w=this.horiz=D("div",[D("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");v.tabIndex=w.tabIndex=-1,s(v),s(w),He(v,"scroll",function(){v.clientHeight&&f(v.scrollTop,"vertical")}),He(w,"scroll",function(){w.clientWidth&&f(w.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,a&&l<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};qc.prototype.update=function(s){var f=s.scrollWidth>s.clientWidth+1,y=s.scrollHeight>s.clientHeight+1,v=s.nativeBarWidth;if(y){this.vert.style.display="block",this.vert.style.bottom=f?v+"px":"0";var w=s.viewHeight-(f?v:0);this.vert.firstChild.style.height=Math.max(0,s.scrollHeight-s.clientHeight+w)+"px"}else this.vert.scrollTop=0,this.vert.style.display="",this.vert.firstChild.style.height="0";if(f){this.horiz.style.display="block",this.horiz.style.right=y?v+"px":"0",this.horiz.style.left=s.barLeft+"px";var N=s.viewWidth-s.barLeft-(y?v:0);this.horiz.firstChild.style.width=Math.max(0,s.scrollWidth-s.clientWidth+N)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&s.clientHeight>0&&(v==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:y?v:0,bottom:f?v:0}},qc.prototype.setScrollLeft=function(s){this.horiz.scrollLeft!=s&&(this.horiz.scrollLeft=s),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},qc.prototype.setScrollTop=function(s){this.vert.scrollTop!=s&&(this.vert.scrollTop=s),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},qc.prototype.zeroWidthHack=function(){var s=C&&!g?"12px":"18px";this.horiz.style.height=this.vert.style.width=s,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new U,this.disableVert=new U},qc.prototype.enableZeroWidthBar=function(s,f,y){s.style.pointerEvents="auto";function v(){var w=s.getBoundingClientRect(),N=y=="vert"?document.elementFromPoint(w.right-1,(w.top+w.bottom)/2):document.elementFromPoint((w.right+w.left)/2,w.bottom-1);N!=s?s.style.pointerEvents="none":f.set(1e3,v)}f.set(1e3,v)},qc.prototype.clear=function(){var s=this.horiz.parentNode;s.removeChild(this.horiz),s.removeChild(this.vert)};var D1=function(){};D1.prototype.update=function(){return{bottom:0,right:0}},D1.prototype.setScrollLeft=function(){},D1.prototype.setScrollTop=function(){},D1.prototype.clear=function(){};function ud(s,f){f||(f=L1(s));var y=s.display.barWidth,v=s.display.barHeight;l6(s,f);for(var w=0;w<4&&y!=s.display.barWidth||v!=s.display.barHeight;w++)y!=s.display.barWidth&&s.options.lineWrapping&&c0(s),l6(s,L1(s)),y=s.display.barWidth,v=s.display.barHeight}function l6(s,f){var y=s.display,v=y.scrollbars.update(f);y.sizer.style.paddingRight=(y.barWidth=v.right)+"px",y.sizer.style.paddingBottom=(y.barHeight=v.bottom)+"px",y.heightForcer.style.borderBottom=v.bottom+"px solid transparent",v.right&&v.bottom?(y.scrollbarFiller.style.display="block",y.scrollbarFiller.style.height=v.bottom+"px",y.scrollbarFiller.style.width=v.right+"px"):y.scrollbarFiller.style.display="",v.bottom&&s.options.coverGutterNextToScrollbar&&s.options.fixedGutter?(y.gutterFiller.style.display="block",y.gutterFiller.style.height=v.bottom+"px",y.gutterFiller.style.width=f.gutterWidth+"px"):y.gutterFiller.style.display=""}var s6={native:qc,null:D1};function c6(s){s.display.scrollbars&&(s.display.scrollbars.clear(),s.display.scrollbars.addClass&&M(s.display.wrapper,s.display.scrollbars.addClass)),s.display.scrollbars=new s6[s.options.scrollbarStyle](function(f){s.display.wrapper.insertBefore(f,s.display.scrollbarFiller),He(f,"mousedown",function(){s.state.focused&&setTimeout(function(){return s.display.input.focus()},0)}),f.setAttribute("cm-not-content","true")},function(f,y){y=="horizontal"?Gc(s,f):P1(s,f)},s),s.display.scrollbars.addClass&&z(s.display.wrapper,s.display.scrollbars.addClass)}var iK=0;function Xc(s){s.curOp={cm:s,viewChanged:!1,startHeight:s.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++iK,markArrays:null},PU(s.curOp)}function Yc(s){var f=s.curOp;f&&DU(f,function(y){for(var v=0;v<y.ops.length;v++)y.ops[v].cm.curOp=null;oK(y)})}function oK(s){for(var f=s.ops,y=0;y<f.length;y++)aK(f[y]);for(var v=0;v<f.length;v++)lK(f[v]);for(var w=0;w<f.length;w++)sK(f[w]);for(var N=0;N<f.length;N++)cK(f[N]);for(var F=0;F<f.length;F++)uK(f[F])}function aK(s){var f=s.cm,y=f.display;fK(f),s.updateMaxLine&&X2(f),s.mustUpdate=s.viewChanged||s.forceUpdate||s.scrollTop!=null||s.scrollToPos&&(s.scrollToPos.from.line<y.viewFrom||s.scrollToPos.to.line>=y.viewTo)||y.maxLineChanged&&f.options.lineWrapping,s.update=s.mustUpdate&&new f0(f,s.mustUpdate&&{top:s.scrollTop,ensure:s.scrollToPos},s.forceUpdate)}function lK(s){s.updatedDisplay=s.mustUpdate&&p5(s.cm,s.update)}function sK(s){var f=s.cm,y=f.display;s.updatedDisplay&&c0(f),s.barMeasure=L1(f),y.maxLineChanged&&!f.options.lineWrapping&&(s.adjustWidthTo=Ww(f,y.maxLine,y.maxLine.text.length).left+3,f.display.sizerWidth=s.adjustWidthTo,s.barMeasure.scrollWidth=Math.max(y.scroller.clientWidth,y.sizer.offsetLeft+s.adjustWidthTo+ml(f)+f.display.barWidth),s.maxScrollLeft=Math.max(0,y.sizer.offsetLeft+s.adjustWidthTo-Wc(f))),(s.updatedDisplay||s.selectionChanged)&&(s.preparedSelection=y.input.prepareSelection())}function cK(s){var f=s.cm;s.adjustWidthTo!=null&&(f.display.sizer.style.minWidth=s.adjustWidthTo+"px",s.maxScrollLeft<f.doc.scrollLeft&&Gc(f,Math.min(f.display.scroller.scrollLeft,s.maxScrollLeft),!0),f.display.maxLineChanged=!1);var y=s.focus&&s.focus==W();s.preparedSelection&&f.display.input.showSelection(s.preparedSelection,y),(s.updatedDisplay||s.startHeight!=f.doc.height)&&ud(f,s.barMeasure),s.updatedDisplay&&g5(f,s.barMeasure),s.selectionChanged&&s5(f),f.state.focused&&s.updateInput&&f.display.input.reset(s.typing),y&&r6(s.cm)}function uK(s){var f=s.cm,y=f.display,v=f.doc;if(s.updatedDisplay&&u6(f,s.update),y.wheelStartX!=null&&(s.scrollTop!=null||s.scrollLeft!=null||s.scrollToPos)&&(y.wheelStartX=y.wheelStartY=null),s.scrollTop!=null&&a6(f,s.scrollTop,s.forceScroll),s.scrollLeft!=null&&Gc(f,s.scrollLeft,!0,!0),s.scrollToPos){var w=tK(f,Ht(v,s.scrollToPos.from),Ht(v,s.scrollToPos.to),s.scrollToPos.margin);eK(f,w)}var N=s.maybeHiddenMarkers,F=s.maybeUnhiddenMarkers;if(N)for(var K=0;K<N.length;++K)N[K].lines.length||xe(N[K],"hide");if(F)for(var q=0;q<F.length;++q)F[q].lines.length&&xe(F[q],"unhide");y.wrapper.offsetHeight&&(v.scrollTop=f.display.scroller.scrollTop),s.changeObjs&&xe(f,"changes",f,s.changeObjs),s.update&&s.update.finish()}function bo(s,f){if(s.curOp)return f();Xc(s);try{return f()}finally{Yc(s)}}function ui(s,f){return function(){if(s.curOp)return f.apply(s,arguments);Xc(s);try{return f.apply(s,arguments)}finally{Yc(s)}}}function ji(s){return function(){if(this.curOp)return s.apply(this,arguments);Xc(this);try{return s.apply(this,arguments)}finally{Yc(this)}}}function di(s){return function(){var f=this.cm;if(!f||f.curOp)return s.apply(this,arguments);Xc(f);try{return s.apply(this,arguments)}finally{Yc(f)}}}function F1(s,f){s.doc.highlightFrontier<s.display.viewTo&&s.state.highlight.set(f,A(dK,s))}function dK(s){var f=s.doc;if(!(f.highlightFrontier>=s.display.viewTo)){var y=+new Date+s.options.workTime,v=Rt(s,f.highlightFrontier),w=[];f.iter(v.line,Math.min(f.first+f.size,s.display.viewTo+500),function(N){if(v.line>=s.display.viewFrom){var F=N.styles,K=N.text.length>s.options.maxHighlightLength?Lt(f.mode,v.state):null,q=_n(s,N,v,!0);K&&(v.state=K),N.styles=q.styles;var Z=N.styleClasses,ce=q.classes;ce?N.styleClasses=ce:Z&&(N.styleClasses=null);for(var ye=!F||F.length!=N.styles.length||Z!=ce&&(!Z||!ce||Z.bgClass!=ce.bgClass||Z.textClass!=ce.textClass),Fe=0;!ye&&Fe<F.length;++Fe)ye=F[Fe]!=N.styles[Fe];ye&&w.push(v.line),N.stateAfter=v.save(),v.nextLine()}else N.text.length<=s.options.maxHighlightLength&&En(s,N.text,v),N.stateAfter=v.line%5==0?v.save():null,v.nextLine();if(+new Date>y)return F1(s,s.options.workDelay),!0}),f.highlightFrontier=v.line,f.modeFrontier=Math.max(f.modeFrontier,v.line),w.length&&bo(s,function(){for(var N=0;N<w.length;N++)Ts(s,w[N],"text")})}}var f0=function(s,f,y){var v=s.display;this.viewport=f,this.visible=u0(v,s.doc,f),this.editorIsHidden=!v.wrapper.offsetWidth,this.wrapperHeight=v.wrapper.clientHeight,this.wrapperWidth=v.wrapper.clientWidth,this.oldDisplayWidth=Wc(s),this.force=y,this.dims=i5(s),this.events=[]};f0.prototype.signal=function(s,f){Ye(s,f)&&this.events.push(arguments)},f0.prototype.finish=function(){for(var s=0;s<this.events.length;s++)xe.apply(null,this.events[s])};function fK(s){var f=s.display;!f.scrollbarsClipped&&f.scroller.offsetWidth&&(f.nativeBarWidth=f.scroller.offsetWidth-f.scroller.clientWidth,f.heightForcer.style.height=ml(s)+"px",f.sizer.style.marginBottom=-f.nativeBarWidth+"px",f.sizer.style.borderRightWidth=ml(s)+"px",f.scrollbarsClipped=!0)}function pK(s){if(s.hasFocus())return null;var f=W();if(!f||!H(s.display.lineDiv,f))return null;var y={activeElt:f};if(window.getSelection){var v=window.getSelection();v.anchorNode&&v.extend&&H(s.display.lineDiv,v.anchorNode)&&(y.anchorNode=v.anchorNode,y.anchorOffset=v.anchorOffset,y.focusNode=v.focusNode,y.focusOffset=v.focusOffset)}return y}function hK(s){if(!(!s||!s.activeElt||s.activeElt==W())&&(s.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(s.activeElt.nodeName)&&s.anchorNode&&H(document.body,s.anchorNode)&&H(document.body,s.focusNode))){var f=window.getSelection(),y=document.createRange();y.setEnd(s.anchorNode,s.anchorOffset),y.collapse(!1),f.removeAllRanges(),f.addRange(y),f.extend(s.focusNode,s.focusOffset)}}function p5(s,f){var y=s.display,v=s.doc;if(f.editorIsHidden)return Os(s),!1;if(!f.force&&f.visible.from>=y.viewFrom&&f.visible.to<=y.viewTo&&(y.updateLineNumbers==null||y.updateLineNumbers>=y.viewTo)&&y.renderedView==y.view&&t6(s)==0)return!1;f6(s)&&(Os(s),f.dims=i5(s));var w=v.first+v.size,N=Math.max(f.visible.from-s.options.viewportMargin,v.first),F=Math.min(w,f.visible.to+s.options.viewportMargin);y.viewFrom<N&&N-y.viewFrom<20&&(N=Math.max(v.first,y.viewFrom)),y.viewTo>F&&y.viewTo-F<20&&(F=Math.min(w,y.viewTo)),qt&&(N=G2(s.doc,N),F=Nw(s.doc,F));var K=N!=y.viewFrom||F!=y.viewTo||y.lastWrapHeight!=f.wrapperHeight||y.lastWrapWidth!=f.wrapperWidth;ZU(s,N,F),y.viewOffset=Kl(ot(s.doc,y.viewFrom)),s.display.mover.style.top=y.viewOffset+"px";var q=t6(s);if(!K&&q==0&&!f.force&&y.renderedView==y.view&&(y.updateLineNumbers==null||y.updateLineNumbers>=y.viewTo))return!1;var Z=pK(s);return q>4&&(y.lineDiv.style.display="none"),mK(s,y.updateLineNumbers,f.dims),q>4&&(y.lineDiv.style.display=""),y.renderedView=y.view,hK(Z),R(y.cursorDiv),R(y.selectionDiv),y.gutters.style.height=y.sizer.style.minHeight=0,K&&(y.lastWrapHeight=f.wrapperHeight,y.lastWrapWidth=f.wrapperWidth,F1(s,400)),y.updateLineNumbers=null,!0}function u6(s,f){for(var y=f.viewport,v=!0;;v=!1){if(!v||!s.options.lineWrapping||f.oldDisplayWidth==Wc(s)){if(y&&y.top!=null&&(y={top:Math.min(s.doc.height+Q2(s.display)-Z2(s),y.top)}),f.visible=u0(s.display,s.doc,y),f.visible.from>=s.display.viewFrom&&f.visible.to<=s.display.viewTo)break}else v&&(f.visible=u0(s.display,s.doc,y));if(!p5(s,f))break;c0(s);var w=L1(s);R1(s),ud(s,w),g5(s,w),f.force=!1}f.signal(s,"update",s),(s.display.viewFrom!=s.display.reportedViewFrom||s.display.viewTo!=s.display.reportedViewTo)&&(f.signal(s,"viewportChange",s,s.display.viewFrom,s.display.viewTo),s.display.reportedViewFrom=s.display.viewFrom,s.display.reportedViewTo=s.display.viewTo)}function h5(s,f){var y=new f0(s,f);if(p5(s,y)){c0(s),u6(s,y);var v=L1(s);R1(s),ud(s,v),g5(s,v),y.finish()}}function mK(s,f,y){var v=s.display,w=s.options.lineNumbers,N=v.lineDiv,F=N.firstChild;function K(rt){var ut=rt.nextSibling;return c&&C&&s.display.currentWheelTarget==rt?rt.style.display="none":rt.parentNode.removeChild(rt),ut}for(var q=v.view,Z=v.viewFrom,ce=0;ce<q.length;ce++){var ye=q[ce];if(!ye.hidden)if(!ye.node||ye.node.parentNode!=N){var Fe=zU(s,ye,Z,y);N.insertBefore(Fe,F)}else{for(;F!=ye.node;)F=K(F);var Re=w&&f!=null&&f<=Z&&ye.lineNumber;ye.changes&&(Q(ye.changes,"gutter")>-1&&(Re=!1),Lw(s,ye,Z,y)),Re&&(R(ye.lineNumber),ye.lineNumber.appendChild(document.createTextNode(Sn(s.options,Z)))),F=ye.node.nextSibling}Z+=ye.size}for(;F;)F=K(F)}function m5(s){var f=s.gutters.offsetWidth;s.sizer.style.marginLeft=f+"px",ci(s,"gutterChanged",s)}function g5(s,f){s.display.sizer.style.minHeight=f.docHeight+"px",s.display.heightForcer.style.top=f.docHeight+"px",s.display.gutters.style.height=f.docHeight+s.display.barHeight+ml(s)+"px"}function d6(s){var f=s.display,y=f.view;if(!(!f.alignWidgets&&(!f.gutters.firstChild||!s.options.fixedGutter))){for(var v=o5(f)-f.scroller.scrollLeft+s.doc.scrollLeft,w=f.gutters.offsetWidth,N=v+"px",F=0;F<y.length;F++)if(!y[F].hidden){s.options.fixedGutter&&(y[F].gutter&&(y[F].gutter.style.left=N),y[F].gutterBackground&&(y[F].gutterBackground.style.left=N));var K=y[F].alignable;if(K)for(var q=0;q<K.length;q++)K[q].style.left=N}s.options.fixedGutter&&(f.gutters.style.left=v+w+"px")}}function f6(s){if(!s.options.lineNumbers)return!1;var f=s.doc,y=Sn(s.options,f.first+f.size-1),v=s.display;if(y.length!=v.lineNumChars){var w=v.measure.appendChild(D("div",[D("div",y)],"CodeMirror-linenumber CodeMirror-gutter-elt")),N=w.firstChild.offsetWidth,F=w.offsetWidth-N;return v.lineGutter.style.width="",v.lineNumInnerWidth=Math.max(N,v.lineGutter.offsetWidth-F)+1,v.lineNumWidth=v.lineNumInnerWidth+F,v.lineNumChars=v.lineNumInnerWidth?y.length:-1,v.lineGutter.style.width=v.lineNumWidth+"px",m5(s.display),!0}return!1}function v5(s,f){for(var y=[],v=!1,w=0;w<s.length;w++){var N=s[w],F=null;if(typeof N!="string"&&(F=N.style,N=N.className),N=="CodeMirror-linenumbers")if(f)v=!0;else continue;y.push({className:N,style:F})}return f&&!v&&y.push({className:"CodeMirror-linenumbers",style:null}),y}function p6(s){var f=s.gutters,y=s.gutterSpecs;R(f),s.lineGutter=null;for(var v=0;v<y.length;++v){var w=y[v],N=w.className,F=w.style,K=f.appendChild(D("div",null,"CodeMirror-gutter "+N));F&&(K.style.cssText=F),N=="CodeMirror-linenumbers"&&(s.lineGutter=K,K.style.width=(s.lineNumWidth||1)+"px")}f.style.display=y.length?"":"none",m5(s)}function B1(s){p6(s.display),Ji(s),d6(s)}function gK(s,f,y,v){var w=this;this.input=y,w.scrollbarFiller=D("div",null,"CodeMirror-scrollbar-filler"),w.scrollbarFiller.setAttribute("cm-not-content","true"),w.gutterFiller=D("div",null,"CodeMirror-gutter-filler"),w.gutterFiller.setAttribute("cm-not-content","true"),w.lineDiv=L("div",null,"CodeMirror-code"),w.selectionDiv=D("div",null,null,"position: relative; z-index: 1"),w.cursorDiv=D("div",null,"CodeMirror-cursors"),w.measure=D("div",null,"CodeMirror-measure"),w.lineMeasure=D("div",null,"CodeMirror-measure"),w.lineSpace=L("div",[w.measure,w.lineMeasure,w.selectionDiv,w.cursorDiv,w.lineDiv],null,"position: relative; outline: none");var N=L("div",[w.lineSpace],"CodeMirror-lines");w.mover=D("div",[N],null,"position: relative"),w.sizer=D("div",[w.mover],"CodeMirror-sizer"),w.sizerWidth=null,w.heightForcer=D("div",null,null,"position: absolute; height: "+ee+"px; width: 1px;"),w.gutters=D("div",null,"CodeMirror-gutters"),w.lineGutter=null,w.scroller=D("div",[w.sizer,w.heightForcer,w.gutters],"CodeMirror-scroll"),w.scroller.setAttribute("tabIndex","-1"),w.wrapper=D("div",[w.scrollbarFiller,w.gutterFiller,w.scroller],"CodeMirror"),w.wrapper.setAttribute("translate","no"),a&&l<8&&(w.gutters.style.zIndex=-1,w.scroller.style.paddingRight=0),!c&&!(n&&S)&&(w.scroller.draggable=!0),s&&(s.appendChild?s.appendChild(w.wrapper):s(w.wrapper)),w.viewFrom=w.viewTo=f.first,w.reportedViewFrom=w.reportedViewTo=f.first,w.view=[],w.renderedView=null,w.externalMeasured=null,w.viewOffset=0,w.lastWrapHeight=w.lastWrapWidth=0,w.updateLineNumbers=null,w.nativeBarWidth=w.barHeight=w.barWidth=0,w.scrollbarsClipped=!1,w.lineNumWidth=w.lineNumInnerWidth=w.lineNumChars=null,w.alignWidgets=!1,w.cachedCharWidth=w.cachedTextHeight=w.cachedPaddingH=null,w.maxLine=null,w.maxLineLength=0,w.maxLineChanged=!1,w.wheelDX=w.wheelDY=w.wheelStartX=w.wheelStartY=null,w.shift=!1,w.selForContextMenu=null,w.activeTouch=null,w.gutterSpecs=v5(v.gutters,v.lineNumbers),p6(w),y.init(w)}var p0=0,Gl=null;a?Gl=-.53:n?Gl=15:p?Gl=-.7:m&&(Gl=-1/3);function h6(s){var f=s.wheelDeltaX,y=s.wheelDeltaY;return f==null&&s.detail&&s.axis==s.HORIZONTAL_AXIS&&(f=s.detail),y==null&&s.detail&&s.axis==s.VERTICAL_AXIS?y=s.detail:y==null&&(y=s.wheelDelta),{x:f,y}}function vK(s){var f=h6(s);return f.x*=Gl,f.y*=Gl,f}function m6(s,f){var y=h6(f),v=y.x,w=y.y,N=Gl;f.deltaMode===0&&(v=f.deltaX,w=f.deltaY,N=1);var F=s.display,K=F.scroller,q=K.scrollWidth>K.clientWidth,Z=K.scrollHeight>K.clientHeight;if(v&&q||w&&Z){if(w&&C&&c){e:for(var ce=f.target,ye=F.view;ce!=K;ce=ce.parentNode)for(var Fe=0;Fe<ye.length;Fe++)if(ye[Fe].node==ce){s.display.currentWheelTarget=ce;break e}}if(v&&!n&&!h&&N!=null){w&&Z&&P1(s,Math.max(0,K.scrollTop+w*N)),Gc(s,Math.max(0,K.scrollLeft+v*N)),(!w||w&&Z)&&It(f),F.wheelStartX=null;return}if(w&&N!=null){var Re=w*N,rt=s.doc.scrollTop,ut=rt+F.wrapper.clientHeight;Re<0?rt=Math.max(0,rt+Re-50):ut=Math.min(s.doc.height,ut+Re+50),h5(s,{top:rt,bottom:ut})}p0<20&&f.deltaMode!==0&&(F.wheelStartX==null?(F.wheelStartX=K.scrollLeft,F.wheelStartY=K.scrollTop,F.wheelDX=v,F.wheelDY=w,setTimeout(function(){if(F.wheelStartX!=null){var yt=K.scrollLeft-F.wheelStartX,kt=K.scrollTop-F.wheelStartY,Mt=kt&&F.wheelDY&&kt/F.wheelDY||yt&&F.wheelDX&&yt/F.wheelDX;F.wheelStartX=F.wheelStartY=null,Mt&&(Gl=(Gl*p0+Mt)/(p0+1),++p0)}},200)):(F.wheelDX+=v,F.wheelDY+=w))}}var Bo=function(s,f){this.ranges=s,this.primIndex=f};Bo.prototype.primary=function(){return this.ranges[this.primIndex]},Bo.prototype.equals=function(s){if(s==this)return!0;if(s.primIndex!=this.primIndex||s.ranges.length!=this.ranges.length)return!1;for(var f=0;f<this.ranges.length;f++){var y=this.ranges[f],v=s.ranges[f];if(!Kt(y.anchor,v.anchor)||!Kt(y.head,v.head))return!1}return!0},Bo.prototype.deepCopy=function(){for(var s=[],f=0;f<this.ranges.length;f++)s[f]=new Wn(ln(this.ranges[f].anchor),ln(this.ranges[f].head));return new Bo(s,this.primIndex)},Bo.prototype.somethingSelected=function(){for(var s=0;s<this.ranges.length;s++)if(!this.ranges[s].empty())return!0;return!1},Bo.prototype.contains=function(s,f){f||(f=s);for(var y=0;y<this.ranges.length;y++){var v=this.ranges[y];if(Ze(f,v.from())>=0&&Ze(s,v.to())<=0)return y}return-1};var Wn=function(s,f){this.anchor=s,this.head=f};Wn.prototype.from=function(){return Vn(this.anchor,this.head)},Wn.prototype.to=function(){return dn(this.anchor,this.head)},Wn.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function ja(s,f,y){var v=s&&s.options.selectionsMayTouch,w=f[y];f.sort(function(Fe,Re){return Ze(Fe.from(),Re.from())}),y=Q(f,w);for(var N=1;N<f.length;N++){var F=f[N],K=f[N-1],q=Ze(K.to(),F.from());if(v&&!F.empty()?q>0:q>=0){var Z=Vn(K.from(),F.from()),ce=dn(K.to(),F.to()),ye=K.empty()?F.from()==F.head:K.from()==K.head;N<=y&&--y,f.splice(--N,2,new Wn(ye?ce:Z,ye?Z:ce))}}return new Bo(f,y)}function Is(s,f){return new Bo([new Wn(s,f||s)],0)}function ks(s){return s.text?Ke(s.from.line+s.text.length-1,re(s.text).length+(s.text.length==1?s.from.ch:0)):s.to}function g6(s,f){if(Ze(s,f.from)<0)return s;if(Ze(s,f.to)<=0)return ks(f);var y=s.line+f.text.length-(f.to.line-f.from.line)-1,v=s.ch;return s.line==f.to.line&&(v+=ks(f).ch-f.to.ch),Ke(y,v)}function y5(s,f){for(var y=[],v=0;v<s.sel.ranges.length;v++){var w=s.sel.ranges[v];y.push(new Wn(g6(w.anchor,f),g6(w.head,f)))}return ja(s.cm,y,s.sel.primIndex)}function v6(s,f,y){return s.line==f.line?Ke(y.line,s.ch-f.ch+y.ch):Ke(y.line+(s.line-f.line),s.ch)}function yK(s,f,y){for(var v=[],w=Ke(s.first,0),N=w,F=0;F<f.length;F++){var K=f[F],q=v6(K.from,w,N),Z=v6(ks(K),w,N);if(w=K.to,N=Z,y=="around"){var ce=s.sel.ranges[F],ye=Ze(ce.head,ce.anchor)<0;v[F]=new Wn(ye?Z:q,ye?q:Z)}else v[F]=new Wn(q,q)}return new Bo(v,s.sel.primIndex)}function b5(s){s.doc.mode=mt(s.options,s.doc.modeOption),j1(s)}function j1(s){s.doc.iter(function(f){f.stateAfter&&(f.stateAfter=null),f.styles&&(f.styles=null)}),s.doc.modeFrontier=s.doc.highlightFrontier=s.doc.first,F1(s,100),s.state.modeGen++,s.curOp&&Ji(s)}function y6(s,f){return f.from.ch==0&&f.to.ch==0&&re(f.text)==""&&(!s.cm||s.cm.options.wholeLineUpdateBefore)}function C5(s,f,y,v){function w(Mt){return y?y[Mt]:null}function N(Mt,$t,jt){TU(Mt,$t,jt,v),ci(Mt,"change",Mt,f)}function F(Mt,$t){for(var jt=[],nn=Mt;nn<$t;++nn)jt.push(new rd(Z[nn],w(nn),v));return jt}var K=f.from,q=f.to,Z=f.text,ce=ot(s,K.line),ye=ot(s,q.line),Fe=re(Z),Re=w(Z.length-1),rt=q.line-K.line;if(f.full)s.insert(0,F(0,Z.length)),s.remove(Z.length,s.size-Z.length);else if(y6(s,f)){var ut=F(0,Z.length-1);N(ye,ye.text,Re),rt&&s.remove(K.line,rt),ut.length&&s.insert(K.line,ut)}else if(ce==ye)if(Z.length==1)N(ce,ce.text.slice(0,K.ch)+Fe+ce.text.slice(q.ch),Re);else{var yt=F(1,Z.length-1);yt.push(new rd(Fe+ce.text.slice(q.ch),Re,v)),N(ce,ce.text.slice(0,K.ch)+Z[0],w(0)),s.insert(K.line+1,yt)}else if(Z.length==1)N(ce,ce.text.slice(0,K.ch)+Z[0]+ye.text.slice(q.ch),w(0)),s.remove(K.line+1,rt);else{N(ce,ce.text.slice(0,K.ch)+Z[0],w(0)),N(ye,Fe+ye.text.slice(q.ch),Re);var kt=F(1,Z.length-1);rt>1&&s.remove(K.line+1,rt-1),s.insert(K.line+1,kt)}ci(s,"change",s,f)}function $s(s,f,y){function v(w,N,F){if(w.linked)for(var K=0;K<w.linked.length;++K){var q=w.linked[K];if(q.doc!=N){var Z=F&&q.sharedHist;y&&!Z||(f(q.doc,Z),v(q.doc,w,Z))}}}v(s,null,!0)}function b6(s,f){if(f.cm)throw new Error("This document is already in use.");s.doc=f,f.cm=s,a5(s),b5(s),C6(s),s.options.direction=f.direction,s.options.lineWrapping||X2(s),s.options.mode=f.modeOption,Ji(s)}function C6(s){(s.doc.direction=="rtl"?z:M)(s.display.lineDiv,"CodeMirror-rtl")}function bK(s){bo(s,function(){C6(s),Ji(s)})}function h0(s){this.done=[],this.undone=[],this.undoDepth=s?s.undoDepth:1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=s?s.maxGeneration:1}function S5(s,f){var y={from:ln(f.from),to:ks(f),text:Xt(s,f.from,f.to)};return x6(s,y,f.from.line,f.to.line+1),$s(s,function(v){return x6(v,y,f.from.line,f.to.line+1)},!0),y}function S6(s){for(;s.length;){var f=re(s);if(f.ranges)s.pop();else break}}function CK(s,f){if(f)return S6(s.done),re(s.done);if(s.done.length&&!re(s.done).ranges)return re(s.done);if(s.done.length>1&&!s.done[s.done.length-2].ranges)return s.done.pop(),re(s.done)}function E6(s,f,y,v){var w=s.history;w.undone.length=0;var N=+new Date,F,K;if((w.lastOp==v||w.lastOrigin==f.origin&&f.origin&&(f.origin.charAt(0)=="+"&&w.lastModTime>N-(s.cm?s.cm.options.historyEventDelay:500)||f.origin.charAt(0)=="*"))&&(F=CK(w,w.lastOp==v)))K=re(F.changes),Ze(f.from,f.to)==0&&Ze(f.from,K.to)==0?K.to=ks(f):F.changes.push(S5(s,f));else{var q=re(w.done);for((!q||!q.ranges)&&m0(s.sel,w.done),F={changes:[S5(s,f)],generation:w.generation},w.done.push(F);w.done.length>w.undoDepth;)w.done.shift(),w.done[0].ranges||w.done.shift()}w.done.push(y),w.generation=++w.maxGeneration,w.lastModTime=w.lastSelTime=N,w.lastOp=w.lastSelOp=v,w.lastOrigin=w.lastSelOrigin=f.origin,K||xe(s,"historyAdded")}function SK(s,f,y,v){var w=f.charAt(0);return w=="*"||w=="+"&&y.ranges.length==v.ranges.length&&y.somethingSelected()==v.somethingSelected()&&new Date-s.history.lastSelTime<=(s.cm?s.cm.options.historyEventDelay:500)}function EK(s,f,y,v){var w=s.history,N=v&&v.origin;y==w.lastSelOp||N&&w.lastSelOrigin==N&&(w.lastModTime==w.lastSelTime&&w.lastOrigin==N||SK(s,N,re(w.done),f))?w.done[w.done.length-1]=f:m0(f,w.done),w.lastSelTime=+new Date,w.lastSelOrigin=N,w.lastSelOp=y,v&&v.clearRedo!==!1&&S6(w.undone)}function m0(s,f){var y=re(f);y&&y.ranges&&y.equals(s)||f.push(s)}function x6(s,f,y,v){var w=f["spans_"+s.id],N=0;s.iter(Math.max(s.first,y),Math.min(s.first+s.size,v),function(F){F.markedSpans&&((w||(w=f["spans_"+s.id]={}))[N]=F.markedSpans),++N})}function xK(s){if(!s)return null;for(var f,y=0;y<s.length;++y)s[y].marker.explicitlyCleared?f||(f=s.slice(0,y)):f&&f.push(s[y]);return f?f.length?f:null:s}function wK(s,f){var y=f["spans_"+s.id];if(!y)return null;for(var v=[],w=0;w<f.text.length;++w)v.push(xK(y[w]));return v}function w6(s,f){var y=wK(s,f),v=jc(s,f);if(!y)return v;if(!v)return y;for(var w=0;w<y.length;++w){var N=y[w],F=v[w];if(N&&F)e:for(var K=0;K<F.length;++K){for(var q=F[K],Z=0;Z<N.length;++Z)if(N[Z].marker==q.marker)continue e;N.push(q)}else F&&(y[w]=F)}return y}function dd(s,f,y){for(var v=[],w=0;w<s.length;++w){var N=s[w];if(N.ranges){v.push(y?Bo.prototype.deepCopy.call(N):N);continue}var F=N.changes,K=[];v.push({changes:K});for(var q=0;q<F.length;++q){var Z=F[q],ce=void 0;if(K.push({from:Z.from,to:Z.to,text:Z.text}),f)for(var ye in Z)(ce=ye.match(/^spans_(\d+)$/))&&Q(f,Number(ce[1]))>-1&&(re(K)[ye]=Z[ye],delete Z[ye])}}return v}function E5(s,f,y,v){if(v){var w=s.anchor;if(y){var N=Ze(f,w)<0;N!=Ze(y,w)<0?(w=f,f=y):N!=Ze(f,y)<0&&(f=y)}return new Wn(w,f)}else return new Wn(y||f,f)}function g0(s,f,y,v,w){w==null&&(w=s.cm&&(s.cm.display.shift||s.extend)),Ii(s,new Bo([E5(s.sel.primary(),f,y,w)],0),v)}function _6(s,f,y){for(var v=[],w=s.cm&&(s.cm.display.shift||s.extend),N=0;N<s.sel.ranges.length;N++)v[N]=E5(s.sel.ranges[N],f[N],null,w);var F=ja(s.cm,v,s.sel.primIndex);Ii(s,F,y)}function x5(s,f,y,v){var w=s.sel.ranges.slice(0);w[f]=y,Ii(s,ja(s.cm,w,s.sel.primIndex),v)}function T6(s,f,y,v){Ii(s,Is(f,y),v)}function _K(s,f,y){var v={ranges:f.ranges,update:function(w){this.ranges=[];for(var N=0;N<w.length;N++)this.ranges[N]=new Wn(Ht(s,w[N].anchor),Ht(s,w[N].head))},origin:y&&y.origin};return xe(s,"beforeSelectionChange",s,v),s.cm&&xe(s.cm,"beforeSelectionChange",s.cm,v),v.ranges!=f.ranges?ja(s.cm,v.ranges,v.ranges.length-1):f}function O6(s,f,y){var v=s.history.done,w=re(v);w&&w.ranges?(v[v.length-1]=f,v0(s,f,y)):Ii(s,f,y)}function Ii(s,f,y){v0(s,f,y),EK(s,s.sel,s.cm?s.cm.curOp.id:NaN,y)}function v0(s,f,y){(Ye(s,"beforeSelectionChange")||s.cm&&Ye(s.cm,"beforeSelectionChange"))&&(f=_K(s,f,y));var v=y&&y.bias||(Ze(f.primary().head,s.sel.primary().head)<0?-1:1);I6(s,$6(s,f,v,!0)),!(y&&y.scroll===!1)&&s.cm&&s.cm.getOption("readOnly")!="nocursor"&&cd(s.cm)}function I6(s,f){f.equals(s.sel)||(s.sel=f,s.cm&&(s.cm.curOp.updateInput=1,s.cm.curOp.selectionChanged=!0,$e(s.cm)),ci(s,"cursorActivity",s))}function k6(s){I6(s,$6(s,s.sel,null,!1))}function $6(s,f,y,v){for(var w,N=0;N<f.ranges.length;N++){var F=f.ranges[N],K=f.ranges.length==s.sel.ranges.length&&s.sel.ranges[N],q=y0(s,F.anchor,K&&K.anchor,y,v),Z=y0(s,F.head,K&&K.head,y,v);(w||q!=F.anchor||Z!=F.head)&&(w||(w=f.ranges.slice(0,N)),w[N]=new Wn(q,Z))}return w?ja(s.cm,w,f.primIndex):f}function fd(s,f,y,v,w){var N=ot(s,f.line);if(N.markedSpans)for(var F=0;F<N.markedSpans.length;++F){var K=N.markedSpans[F],q=K.marker,Z="selectLeft"in q?!q.selectLeft:q.inclusiveLeft,ce="selectRight"in q?!q.selectRight:q.inclusiveRight;if((K.from==null||(Z?K.from<=f.ch:K.from<f.ch))&&(K.to==null||(ce?K.to>=f.ch:K.to>f.ch))){if(w&&(xe(q,"beforeCursorEnter"),q.explicitlyCleared))if(N.markedSpans){--F;continue}else break;if(!q.atomic)continue;if(y){var ye=q.find(v<0?1:-1),Fe=void 0;if((v<0?ce:Z)&&(ye=N6(s,ye,-v,ye&&ye.line==f.line?N:null)),ye&&ye.line==f.line&&(Fe=Ze(ye,y))&&(v<0?Fe<0:Fe>0))return fd(s,ye,f,v,w)}var Re=q.find(v<0?-1:1);return(v<0?Z:ce)&&(Re=N6(s,Re,v,Re.line==f.line?N:null)),Re?fd(s,Re,f,v,w):null}}return f}function y0(s,f,y,v,w){var N=v||1,F=fd(s,f,y,N,w)||!w&&fd(s,f,y,N,!0)||fd(s,f,y,-N,w)||!w&&fd(s,f,y,-N,!0);return F||(s.cantEdit=!0,Ke(s.first,0))}function N6(s,f,y,v){return y<0&&f.ch==0?f.line>s.first?Ht(s,Ke(f.line-1)):null:y>0&&f.ch==(v||ot(s,f.line)).text.length?f.line<s.first+s.size-1?Ke(f.line+1,0):null:new Ke(f.line,f.ch+y)}function A6(s){s.setSelection(Ke(s.firstLine(),0),Ke(s.lastLine()),ne)}function R6(s,f,y){var v={canceled:!1,from:f.from,to:f.to,text:f.text,origin:f.origin,cancel:function(){return v.canceled=!0}};return y&&(v.update=function(w,N,F,K){w&&(v.from=Ht(s,w)),N&&(v.to=Ht(s,N)),F&&(v.text=F),K!==void 0&&(v.origin=K)}),xe(s,"beforeChange",s,v),s.cm&&xe(s.cm,"beforeChange",s.cm,v),v.canceled?(s.cm&&(s.cm.curOp.updateInput=2),null):{from:v.from,to:v.to,text:v.text,origin:v.origin}}function pd(s,f,y){if(s.cm){if(!s.cm.curOp)return ui(s.cm,pd)(s,f,y);if(s.cm.state.suppressEdits)return}if(!((Ye(s,"beforeChange")||s.cm&&Ye(s.cm,"beforeChange"))&&(f=R6(s,f,!0),!f))){var v=sn&&!y&&I1(s,f.from,f.to);if(v)for(var w=v.length-1;w>=0;--w)M6(s,{from:v[w].from,to:v[w].to,text:w?[""]:f.text,origin:f.origin});else M6(s,f)}}function M6(s,f){if(!(f.text.length==1&&f.text[0]==""&&Ze(f.from,f.to)==0)){var y=y5(s,f);E6(s,f,y,s.cm?s.cm.curOp.id:NaN),H1(s,f,y,jc(s,f));var v=[];$s(s,function(w,N){!N&&Q(v,w.history)==-1&&(F6(w.history,f),v.push(w.history)),H1(w,f,null,jc(w,f))})}}function b0(s,f,y){var v=s.cm&&s.cm.state.suppressEdits;if(!(v&&!y)){for(var w=s.history,N,F=s.sel,K=f=="undo"?w.done:w.undone,q=f=="undo"?w.undone:w.done,Z=0;Z<K.length&&(N=K[Z],!(y?N.ranges&&!N.equals(s.sel):!N.ranges));Z++);if(Z!=K.length){for(w.lastOrigin=w.lastSelOrigin=null;;)if(N=K.pop(),N.ranges){if(m0(N,q),y&&!N.equals(s.sel)){Ii(s,N,{clearRedo:!1});return}F=N}else if(v){K.push(N);return}else break;var ce=[];m0(F,q),q.push({changes:ce,generation:w.generation}),w.generation=N.generation||++w.maxGeneration;for(var ye=Ye(s,"beforeChange")||s.cm&&Ye(s.cm,"beforeChange"),Fe=function(ut){var yt=N.changes[ut];if(yt.origin=f,ye&&!R6(s,yt,!1))return K.length=0,{};ce.push(S5(s,yt));var kt=ut?y5(s,yt):re(K);H1(s,yt,kt,w6(s,yt)),!ut&&s.cm&&s.cm.scrollIntoView({from:yt.from,to:ks(yt)});var Mt=[];$s(s,function($t,jt){!jt&&Q(Mt,$t.history)==-1&&(F6($t.history,yt),Mt.push($t.history)),H1($t,yt,null,w6($t,yt))})},Re=N.changes.length-1;Re>=0;--Re){var rt=Fe(Re);if(rt)return rt.v}}}}function P6(s,f){if(f!=0&&(s.first+=f,s.sel=new Bo(me(s.sel.ranges,function(w){return new Wn(Ke(w.anchor.line+f,w.anchor.ch),Ke(w.head.line+f,w.head.ch))}),s.sel.primIndex),s.cm)){Ji(s.cm,s.first,s.first-f,f);for(var y=s.cm.display,v=y.viewFrom;v<y.viewTo;v++)Ts(s.cm,v,"gutter")}}function H1(s,f,y,v){if(s.cm&&!s.cm.curOp)return ui(s.cm,H1)(s,f,y,v);if(f.to.line<s.first){P6(s,f.text.length-1-(f.to.line-f.from.line));return}if(!(f.from.line>s.lastLine())){if(f.from.line<s.first){var w=f.text.length-1-(s.first-f.from.line);P6(s,w),f={from:Ke(s.first,0),to:Ke(f.to.line+w,f.to.ch),text:[re(f.text)],origin:f.origin}}var N=s.lastLine();f.to.line>N&&(f={from:f.from,to:Ke(N,ot(s,N).text.length),text:[f.text[0]],origin:f.origin}),f.removed=Xt(s,f.from,f.to),y||(y=y5(s,f)),s.cm?TK(s.cm,f,v):C5(s,f,v),v0(s,y,ne),s.cantEdit&&y0(s,Ke(s.firstLine(),0))&&(s.cantEdit=!1)}}function TK(s,f,y){var v=s.doc,w=s.display,N=f.from,F=f.to,K=!1,q=N.line;s.options.lineWrapping||(q=Tt(Fa(ot(v,N.line))),v.iter(q,F.line+1,function(Re){if(Re==w.maxLine)return K=!0,!0})),v.sel.contains(f.from,f.to)>-1&&$e(s),C5(v,f,y,e6(s)),s.options.lineWrapping||(v.iter(q,N.line+f.text.length,function(Re){var rt=n0(Re);rt>w.maxLineLength&&(w.maxLine=Re,w.maxLineLength=rt,w.maxLineChanged=!0,K=!1)}),K&&(s.curOp.updateMaxLine=!0)),li(v,N.line),F1(s,400);var Z=f.text.length-(F.line-N.line)-1;f.full?Ji(s):N.line==F.line&&f.text.length==1&&!y6(s.doc,f)?Ts(s,N.line,"text"):Ji(s,N.line,F.line+1,Z);var ce=Ye(s,"changes"),ye=Ye(s,"change");if(ye||ce){var Fe={from:N,to:F,text:f.text,removed:f.removed,origin:f.origin};ye&&ci(s,"change",s,Fe),ce&&(s.curOp.changeObjs||(s.curOp.changeObjs=[])).push(Fe)}s.display.selForContextMenu=null}function hd(s,f,y,v,w){var N;v||(v=y),Ze(v,y)<0&&(N=[v,y],y=N[0],v=N[1]),typeof f=="string"&&(f=s.splitLines(f)),pd(s,{from:y,to:v,text:f,origin:w})}function L6(s,f,y,v){y<s.line?s.line+=v:f<s.line&&(s.line=f,s.ch=0)}function D6(s,f,y,v){for(var w=0;w<s.length;++w){var N=s[w],F=!0;if(N.ranges){N.copied||(N=s[w]=N.deepCopy(),N.copied=!0);for(var K=0;K<N.ranges.length;K++)L6(N.ranges[K].anchor,f,y,v),L6(N.ranges[K].head,f,y,v);continue}for(var q=0;q<N.changes.length;++q){var Z=N.changes[q];if(y<Z.from.line)Z.from=Ke(Z.from.line+v,Z.from.ch),Z.to=Ke(Z.to.line+v,Z.to.ch);else if(f<=Z.to.line){F=!1;break}}F||(s.splice(0,w+1),w=0)}}function F6(s,f){var y=f.from.line,v=f.to.line,w=f.text.length-(v-y)-1;D6(s.done,y,v,w),D6(s.undone,y,v,w)}function z1(s,f,y,v){var w=f,N=f;return typeof f=="number"?N=ot(s,cr(s,f)):w=Tt(f),w==null?null:(v(N,w)&&s.cm&&Ts(s.cm,w,y),N)}function W1(s){this.lines=s,this.parent=null;for(var f=0,y=0;y<s.length;++y)s[y].parent=this,f+=s[y].height;this.height=f}W1.prototype={chunkSize:function(){return this.lines.length},removeInner:function(s,f){for(var y=s,v=s+f;y<v;++y){var w=this.lines[y];this.height-=w.height,OU(w),ci(w,"delete")}this.lines.splice(s,f)},collapse:function(s){s.push.apply(s,this.lines)},insertInner:function(s,f,y){this.height+=y,this.lines=this.lines.slice(0,s).concat(f).concat(this.lines.slice(s));for(var v=0;v<f.length;++v)f[v].parent=this},iterN:function(s,f,y){for(var v=s+f;s<v;++s)if(y(this.lines[s]))return!0}};function U1(s){this.children=s;for(var f=0,y=0,v=0;v<s.length;++v){var w=s[v];f+=w.chunkSize(),y+=w.height,w.parent=this}this.size=f,this.height=y,this.parent=null}U1.prototype={chunkSize:function(){return this.size},removeInner:function(s,f){this.size-=f;for(var y=0;y<this.children.length;++y){var v=this.children[y],w=v.chunkSize();if(s<w){var N=Math.min(f,w-s),F=v.height;if(v.removeInner(s,N),this.height-=F-v.height,w==N&&(this.children.splice(y--,1),v.parent=null),(f-=N)==0)break;s=0}else s-=w}if(this.size-f<25&&(this.children.length>1||!(this.children[0]instanceof W1))){var K=[];this.collapse(K),this.children=[new W1(K)],this.children[0].parent=this}},collapse:function(s){for(var f=0;f<this.children.length;++f)this.children[f].collapse(s)},insertInner:function(s,f,y){this.size+=f.length,this.height+=y;for(var v=0;v<this.children.length;++v){var w=this.children[v],N=w.chunkSize();if(s<=N){if(w.insertInner(s,f,y),w.lines&&w.lines.length>50){for(var F=w.lines.length%25+25,K=F;K<w.lines.length;){var q=new W1(w.lines.slice(K,K+=25));w.height-=q.height,this.children.splice(++v,0,q),q.parent=this}w.lines=w.lines.slice(0,F),this.maybeSpill()}break}s-=N}},maybeSpill:function(){if(!(this.children.length<=10)){var s=this;do{var f=s.children.splice(s.children.length-5,5),y=new U1(f);if(s.parent){s.size-=y.size,s.height-=y.height;var w=Q(s.parent.children,s);s.parent.children.splice(w+1,0,y)}else{var v=new U1(s.children);v.parent=s,s.children=[v,y],s=v}y.parent=s.parent}while(s.children.length>10);s.parent.maybeSpill()}},iterN:function(s,f,y){for(var v=0;v<this.children.length;++v){var w=this.children[v],N=w.chunkSize();if(s<N){var F=Math.min(f,N-s);if(w.iterN(s,F,y))return!0;if((f-=F)==0)break;s=0}else s-=N}}};var K1=function(s,f,y){if(y)for(var v in y)y.hasOwnProperty(v)&&(this[v]=y[v]);this.doc=s,this.node=f};K1.prototype.clear=function(){var s=this.doc.cm,f=this.line.widgets,y=this.line,v=Tt(y);if(!(v==null||!f)){for(var w=0;w<f.length;++w)f[w]==this&&f.splice(w--,1);f.length||(y.widgets=null);var N=N1(this);xt(y,Math.max(0,y.height-N)),s&&(bo(s,function(){B6(s,y,-N),Ts(s,v,"widget")}),ci(s,"lineWidgetCleared",s,this,v))}},K1.prototype.changed=function(){var s=this,f=this.height,y=this.doc.cm,v=this.line;this.height=null;var w=N1(this)-f;w&&(_s(this.doc,v)||xt(v,v.height+w),y&&bo(y,function(){y.curOp.forceUpdate=!0,B6(y,v,w),ci(y,"lineWidgetChanged",y,s,Tt(v))}))},ht(K1);function B6(s,f,y){Kl(f)<(s.curOp&&s.curOp.scrollTop||s.doc.scrollTop)&&f5(s,y)}function OK(s,f,y,v){var w=new K1(s,y,v),N=s.cm;return N&&w.noHScroll&&(N.display.alignWidgets=!0),z1(s,f,"widget",function(F){var K=F.widgets||(F.widgets=[]);if(w.insertAt==null?K.push(w):K.splice(Math.min(K.length,Math.max(0,w.insertAt)),0,w),w.line=F,N&&!_s(s,F)){var q=Kl(F)<s.scrollTop;xt(F,F.height+N1(w)),q&&f5(N,w.height),N.curOp.forceUpdate=!0}return!0}),N&&ci(N,"lineWidgetAdded",N,w,typeof f=="number"?f:Tt(f)),w}var j6=0,Ns=function(s,f){this.lines=[],this.type=f,this.doc=s,this.id=++j6};Ns.prototype.clear=function(){if(!this.explicitlyCleared){var s=this.doc.cm,f=s&&!s.curOp;if(f&&Xc(s),Ye(this,"clear")){var y=this.find();y&&ci(this,"clear",y.from,y.to)}for(var v=null,w=null,N=0;N<this.lines.length;++N){var F=this.lines[N],K=si(F.markedSpans,this);s&&!this.collapsed?Ts(s,Tt(F),"text"):s&&(K.to!=null&&(w=Tt(F)),K.from!=null&&(v=Tt(F))),F.markedSpans=bi(F.markedSpans,K),K.from==null&&this.collapsed&&!_s(this.doc,F)&&s&&xt(F,ad(s.display))}if(s&&this.collapsed&&!s.options.lineWrapping)for(var q=0;q<this.lines.length;++q){var Z=Fa(this.lines[q]),ce=n0(Z);ce>s.display.maxLineLength&&(s.display.maxLine=Z,s.display.maxLineLength=ce,s.display.maxLineChanged=!0)}v!=null&&s&&this.collapsed&&Ji(s,v,w+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,s&&k6(s.doc)),s&&ci(s,"markerCleared",s,this,v,w),f&&Yc(s),this.parent&&this.parent.clear()}},Ns.prototype.find=function(s,f){s==null&&this.type=="bookmark"&&(s=1);for(var y,v,w=0;w<this.lines.length;++w){var N=this.lines[w],F=si(N.markedSpans,this);if(F.from!=null&&(y=Ke(f?N:Tt(N),F.from),s==-1))return y;if(F.to!=null&&(v=Ke(f?N:Tt(N),F.to),s==1))return v}return y&&{from:y,to:v}},Ns.prototype.changed=function(){var s=this,f=this.find(-1,!0),y=this,v=this.doc.cm;!f||!v||bo(v,function(){var w=f.line,N=Tt(f.line),F=J2(v,N);if(F&&(Vw(F),v.curOp.selectionChanged=v.curOp.forceUpdate=!0),v.curOp.updateMaxLine=!0,!_s(y.doc,w)&&y.height!=null){var K=y.height;y.height=null;var q=N1(y)-K;q&&xt(w,w.height+q)}ci(v,"markerChanged",v,s)})},Ns.prototype.attachLine=function(s){if(!this.lines.length&&this.doc.cm){var f=this.doc.cm.curOp;(!f.maybeHiddenMarkers||Q(f.maybeHiddenMarkers,this)==-1)&&(f.maybeUnhiddenMarkers||(f.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(s)},Ns.prototype.detachLine=function(s){if(this.lines.splice(Q(this.lines,s),1),!this.lines.length&&this.doc.cm){var f=this.doc.cm.curOp;(f.maybeHiddenMarkers||(f.maybeHiddenMarkers=[])).push(this)}},ht(Ns);function md(s,f,y,v,w){if(v&&v.shared)return IK(s,f,y,v,w);if(s.cm&&!s.cm.curOp)return ui(s.cm,md)(s,f,y,v,w);var N=new Ns(s,w),F=Ze(f,y);if(v&&P(v,N,!1),F>0||F==0&&N.clearWhenEmpty!==!1)return N;if(N.replacedWith&&(N.collapsed=!0,N.widgetNode=L("span",[N.replacedWith],"CodeMirror-widget"),v.handleMouseEvents||N.widgetNode.setAttribute("cm-ignore-events","true"),v.insertLeft&&(N.widgetNode.insertLeft=!0)),N.collapsed){if($w(s,f.line,f,y,N)||f.line!=y.line&&$w(s,y.line,f,y,N))throw new Error("Inserting collapsed marker partially overlapping an existing one");or()}N.addToHistory&&E6(s,{from:f,to:y,origin:"markText"},s.sel,NaN);var K=f.line,q=s.cm,Z;if(s.iter(K,y.line+1,function(ye){q&&N.collapsed&&!q.options.lineWrapping&&Fa(ye)==q.display.maxLine&&(Z=!0),N.collapsed&&K!=f.line&&xt(ye,0),Ci(ye,new ar(N,K==f.line?f.ch:null,K==y.line?y.ch:null),s.cm&&s.cm.curOp),++K}),N.collapsed&&s.iter(f.line,y.line+1,function(ye){_s(s,ye)&&xt(ye,0)}),N.clearOnEnter&&He(N,"beforeCursorEnter",function(){return N.clear()}),N.readOnly&&(Ir(),(s.history.done.length||s.history.undone.length)&&s.clearHistory()),N.collapsed&&(N.id=++j6,N.atomic=!0),q){if(Z&&(q.curOp.updateMaxLine=!0),N.collapsed)Ji(q,f.line,y.line+1);else if(N.className||N.startStyle||N.endStyle||N.css||N.attributes||N.title)for(var ce=f.line;ce<=y.line;ce++)Ts(q,ce,"text");N.atomic&&k6(q.doc),ci(q,"markerAdded",q,N)}return N}var V1=function(s,f){this.markers=s,this.primary=f;for(var y=0;y<s.length;++y)s[y].parent=this};V1.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var s=0;s<this.markers.length;++s)this.markers[s].clear();ci(this,"clear")}},V1.prototype.find=function(s,f){return this.primary.find(s,f)},ht(V1);function IK(s,f,y,v,w){v=P(v),v.shared=!1;var N=[md(s,f,y,v,w)],F=N[0],K=v.widgetNode;return $s(s,function(q){K&&(v.widgetNode=K.cloneNode(!0)),N.push(md(q,Ht(q,f),Ht(q,y),v,w));for(var Z=0;Z<q.linked.length;++Z)if(q.linked[Z].isParent)return;F=re(N)}),new V1(N,F)}function H6(s){return s.findMarks(Ke(s.first,0),s.clipPos(Ke(s.lastLine())),function(f){return f.parent})}function kK(s,f){for(var y=0;y<f.length;y++){var v=f[y],w=v.find(),N=s.clipPos(w.from),F=s.clipPos(w.to);if(Ze(N,F)){var K=md(s,N,F,v.primary,v.primary.type);v.markers.push(K),K.parent=v}}}function $K(s){for(var f=function(v){var w=s[v],N=[w.primary.doc];$s(w.primary.doc,function(q){return N.push(q)});for(var F=0;F<w.markers.length;F++){var K=w.markers[F];Q(N,K.doc)==-1&&(K.parent=null,w.markers.splice(F--,1))}},y=0;y<s.length;y++)f(y)}var NK=0,eo=function(s,f,y,v,w){if(!(this instanceof eo))return new eo(s,f,y,v,w);y==null&&(y=0),U1.call(this,[new W1([new rd("",null)])]),this.first=y,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=y;var N=Ke(y,0);this.sel=Is(N),this.history=new h0(null),this.id=++NK,this.modeOption=f,this.lineSep=v,this.direction=w=="rtl"?"rtl":"ltr",this.extend=!1,typeof s=="string"&&(s=this.splitLines(s)),C5(this,{from:N,to:N,text:s}),Ii(this,Is(N),ne)};eo.prototype=De(U1.prototype,{constructor:eo,iter:function(s,f,y){y?this.iterN(s-this.first,f-s,y):this.iterN(this.first,this.first+this.size,s)},insert:function(s,f){for(var y=0,v=0;v<f.length;++v)y+=f[v].height;this.insertInner(s-this.first,f,y)},remove:function(s,f){this.removeInner(s-this.first,f)},getValue:function(s){var f=Dt(this,this.first,this.first+this.size);return s===!1?f:f.join(s||this.lineSeparator())},setValue:di(function(s){var f=Ke(this.first,0),y=this.first+this.size-1;pd(this,{from:f,to:Ke(y,ot(this,y).text.length),text:this.splitLines(s),origin:"setValue",full:!0},!0),this.cm&&M1(this.cm,0,0),Ii(this,Is(f),ne)}),replaceRange:function(s,f,y,v){f=Ht(this,f),y=y?Ht(this,y):f,hd(this,s,f,y,v)},getRange:function(s,f,y){var v=Xt(this,Ht(this,s),Ht(this,f));return y===!1?v:y===""?v.join(""):v.join(y||this.lineSeparator())},getLine:function(s){var f=this.getLineHandle(s);return f&&f.text},getLineHandle:function(s){if(mn(this,s))return ot(this,s)},getLineNumber:function(s){return Tt(s)},getLineHandleVisualStart:function(s){return typeof s=="number"&&(s=ot(this,s)),Fa(s)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(s){return Ht(this,s)},getCursor:function(s){var f=this.sel.primary(),y;return s==null||s=="head"?y=f.head:s=="anchor"?y=f.anchor:s=="end"||s=="to"||s===!1?y=f.to():y=f.from(),y},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:di(function(s,f,y){T6(this,Ht(this,typeof s=="number"?Ke(s,f||0):s),null,y)}),setSelection:di(function(s,f,y){T6(this,Ht(this,s),Ht(this,f||s),y)}),extendSelection:di(function(s,f,y){g0(this,Ht(this,s),f&&Ht(this,f),y)}),extendSelections:di(function(s,f){_6(this,Bi(this,s),f)}),extendSelectionsBy:di(function(s,f){var y=me(this.sel.ranges,s);_6(this,Bi(this,y),f)}),setSelections:di(function(s,f,y){if(s.length){for(var v=[],w=0;w<s.length;w++)v[w]=new Wn(Ht(this,s[w].anchor),Ht(this,s[w].head||s[w].anchor));f==null&&(f=Math.min(s.length-1,this.sel.primIndex)),Ii(this,ja(this.cm,v,f),y)}}),addSelection:di(function(s,f,y){var v=this.sel.ranges.slice(0);v.push(new Wn(Ht(this,s),Ht(this,f||s))),Ii(this,ja(this.cm,v,v.length-1),y)}),getSelection:function(s){for(var f=this.sel.ranges,y,v=0;v<f.length;v++){var w=Xt(this,f[v].from(),f[v].to());y=y?y.concat(w):w}return s===!1?y:y.join(s||this.lineSeparator())},getSelections:function(s){for(var f=[],y=this.sel.ranges,v=0;v<y.length;v++){var w=Xt(this,y[v].from(),y[v].to());s!==!1&&(w=w.join(s||this.lineSeparator())),f[v]=w}return f},replaceSelection:function(s,f,y){for(var v=[],w=0;w<this.sel.ranges.length;w++)v[w]=s;this.replaceSelections(v,f,y||"+input")},replaceSelections:di(function(s,f,y){for(var v=[],w=this.sel,N=0;N<w.ranges.length;N++){var F=w.ranges[N];v[N]={from:F.from(),to:F.to(),text:this.splitLines(s[N]),origin:y}}for(var K=f&&f!="end"&&yK(this,v,f),q=v.length-1;q>=0;q--)pd(this,v[q]);K?O6(this,K):this.cm&&cd(this.cm)}),undo:di(function(){b0(this,"undo")}),redo:di(function(){b0(this,"redo")}),undoSelection:di(function(){b0(this,"undo",!0)}),redoSelection:di(function(){b0(this,"redo",!0)}),setExtending:function(s){this.extend=s},getExtending:function(){return this.extend},historySize:function(){for(var s=this.history,f=0,y=0,v=0;v<s.done.length;v++)s.done[v].ranges||++f;for(var w=0;w<s.undone.length;w++)s.undone[w].ranges||++y;return{undo:f,redo:y}},clearHistory:function(){var s=this;this.history=new h0(this.history),$s(this,function(f){return f.history=s.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(s){return s&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(s){return this.history.generation==(s||this.cleanGeneration)},getHistory:function(){return{done:dd(this.history.done),undone:dd(this.history.undone)}},setHistory:function(s){var f=this.history=new h0(this.history);f.done=dd(s.done.slice(0),null,!0),f.undone=dd(s.undone.slice(0),null,!0)},setGutterMarker:di(function(s,f,y){return z1(this,s,"gutter",function(v){var w=v.gutterMarkers||(v.gutterMarkers={});return w[f]=y,!y&&Te(w)&&(v.gutterMarkers=null),!0})}),clearGutter:di(function(s){var f=this;this.iter(function(y){y.gutterMarkers&&y.gutterMarkers[s]&&z1(f,y,"gutter",function(){return y.gutterMarkers[s]=null,Te(y.gutterMarkers)&&(y.gutterMarkers=null),!0})})}),lineInfo:function(s){var f;if(typeof s=="number"){if(!mn(this,s)||(f=s,s=ot(this,s),!s))return null}else if(f=Tt(s),f==null)return null;return{line:f,handle:s,text:s.text,gutterMarkers:s.gutterMarkers,textClass:s.textClass,bgClass:s.bgClass,wrapClass:s.wrapClass,widgets:s.widgets}},addLineClass:di(function(s,f,y){return z1(this,s,f=="gutter"?"gutter":"class",function(v){var w=f=="text"?"textClass":f=="background"?"bgClass":f=="gutter"?"gutterClass":"wrapClass";if(!v[w])v[w]=y;else{if($(y).test(v[w]))return!1;v[w]+=" "+y}return!0})}),removeLineClass:di(function(s,f,y){return z1(this,s,f=="gutter"?"gutter":"class",function(v){var w=f=="text"?"textClass":f=="background"?"bgClass":f=="gutter"?"gutterClass":"wrapClass",N=v[w];if(N)if(y==null)v[w]=null;else{var F=N.match($(y));if(!F)return!1;var K=F.index+F[0].length;v[w]=N.slice(0,F.index)+(!F.index||K==N.length?"":" ")+N.slice(K)||null}else return!1;return!0})}),addLineWidget:di(function(s,f,y){return OK(this,s,f,y)}),removeLineWidget:function(s){s.clear()},markText:function(s,f,y){return md(this,Ht(this,s),Ht(this,f),y,y&&y.type||"range")},setBookmark:function(s,f){var y={replacedWith:f&&(f.nodeType==null?f.widget:f),insertLeft:f&&f.insertLeft,clearWhenEmpty:!1,shared:f&&f.shared,handleMouseEvents:f&&f.handleMouseEvents};return s=Ht(this,s),md(this,s,s,y,"bookmark")},findMarksAt:function(s){s=Ht(this,s);var f=[],y=ot(this,s.line).markedSpans;if(y)for(var v=0;v<y.length;++v){var w=y[v];(w.from==null||w.from<=s.ch)&&(w.to==null||w.to>=s.ch)&&f.push(w.marker.parent||w.marker)}return f},findMarks:function(s,f,y){s=Ht(this,s),f=Ht(this,f);var v=[],w=s.line;return this.iter(s.line,f.line+1,function(N){var F=N.markedSpans;if(F)for(var K=0;K<F.length;K++){var q=F[K];!(q.to!=null&&w==s.line&&s.ch>=q.to||q.from==null&&w!=s.line||q.from!=null&&w==f.line&&q.from>=f.ch)&&(!y||y(q.marker))&&v.push(q.marker.parent||q.marker)}++w}),v},getAllMarks:function(){var s=[];return this.iter(function(f){var y=f.markedSpans;if(y)for(var v=0;v<y.length;++v)y[v].from!=null&&s.push(y[v].marker)}),s},posFromIndex:function(s){var f,y=this.first,v=this.lineSeparator().length;return this.iter(function(w){var N=w.text.length+v;if(N>s)return f=s,!0;s-=N,++y}),Ht(this,Ke(y,f))},indexFromPos:function(s){s=Ht(this,s);var f=s.ch;if(s.line<this.first||s.ch<0)return 0;var y=this.lineSeparator().length;return this.iter(this.first,s.line,function(v){f+=v.text.length+y}),f},copy:function(s){var f=new eo(Dt(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return f.scrollTop=this.scrollTop,f.scrollLeft=this.scrollLeft,f.sel=this.sel,f.extend=!1,s&&(f.history.undoDepth=this.history.undoDepth,f.setHistory(this.getHistory())),f},linkedDoc:function(s){s||(s={});var f=this.first,y=this.first+this.size;s.from!=null&&s.from>f&&(f=s.from),s.to!=null&&s.to<y&&(y=s.to);var v=new eo(Dt(this,f,y),s.mode||this.modeOption,f,this.lineSep,this.direction);return s.sharedHist&&(v.history=this.history),(this.linked||(this.linked=[])).push({doc:v,sharedHist:s.sharedHist}),v.linked=[{doc:this,isParent:!0,sharedHist:s.sharedHist}],kK(v,H6(this)),v},unlinkDoc:function(s){if(s instanceof pr&&(s=s.doc),this.linked)for(var f=0;f<this.linked.length;++f){var y=this.linked[f];if(y.doc==s){this.linked.splice(f,1),s.unlinkDoc(this),$K(H6(this));break}}if(s.history==this.history){var v=[s.id];$s(s,function(w){return v.push(w.id)},!0),s.history=new h0(null),s.history.done=dd(this.history.done,v),s.history.undone=dd(this.history.undone,v)}},iterLinkedDocs:function(s){$s(this,s)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(s){return this.lineSep?s.split(this.lineSep):we(s)},lineSeparator:function(){return this.lineSep||`
`},setDirection:di(function(s){s!="rtl"&&(s="ltr"),s!=this.direction&&(this.direction=s,this.iter(function(f){return f.order=null}),this.cm&&bK(this.cm))})}),eo.prototype.eachLine=eo.prototype.iter;var z6=0;function AK(s){var f=this;if(W6(f),!(Ne(f,s)||Vl(f.display,s))){It(s),a&&(z6=+new Date);var y=Kc(f,s,!0),v=s.dataTransfer.files;if(!(!y||f.isReadOnly()))if(v&&v.length&&window.FileReader&&window.File)for(var w=v.length,N=Array(w),F=0,K=function(){++F==w&&ui(f,function(){y=Ht(f.doc,y);var Re={from:y,to:y,text:f.doc.splitLines(N.filter(function(rt){return rt!=null}).join(f.doc.lineSeparator())),origin:"paste"};pd(f.doc,Re),O6(f.doc,Is(Ht(f.doc,y),Ht(f.doc,ks(Re))))})()},q=function(Re,rt){if(f.options.allowDropFileTypes&&Q(f.options.allowDropFileTypes,Re.type)==-1){K();return}var ut=new FileReader;ut.onerror=function(){return K()},ut.onload=function(){var yt=ut.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(yt)){K();return}N[rt]=yt,K()},ut.readAsText(Re)},Z=0;Z<v.length;Z++)q(v[Z],Z);else{if(f.state.draggingText&&f.doc.sel.contains(y)>-1){f.state.draggingText(s),setTimeout(function(){return f.display.input.focus()},20);return}try{var ce=s.dataTransfer.getData("Text");if(ce){var ye;if(f.state.draggingText&&!f.state.draggingText.copy&&(ye=f.listSelections()),v0(f.doc,Is(y,y)),ye)for(var Fe=0;Fe<ye.length;++Fe)hd(f.doc,"",ye[Fe].anchor,ye[Fe].head,"drag");f.replaceSelection(ce,"around","paste"),f.display.input.focus()}}catch{}}}}function RK(s,f){if(a&&(!s.state.draggingText||+new Date-z6<100)){en(f);return}if(!(Ne(s,f)||Vl(s.display,f))&&(f.dataTransfer.setData("Text",s.getSelection()),f.dataTransfer.effectAllowed="copyMove",f.dataTransfer.setDragImage&&!m)){var y=D("img",null,null,"position: fixed; left: 0; top: 0;");y.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",h&&(y.width=y.height=1,s.display.wrapper.appendChild(y),y._top=y.offsetTop),f.dataTransfer.setDragImage(y,0,0),h&&y.parentNode.removeChild(y)}}function MK(s,f){var y=Kc(s,f);if(y){var v=document.createDocumentFragment();l5(s,y,v),s.display.dragCursor||(s.display.dragCursor=D("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),s.display.lineSpace.insertBefore(s.display.dragCursor,s.display.cursorDiv)),j(s.display.dragCursor,v)}}function W6(s){s.display.dragCursor&&(s.display.lineSpace.removeChild(s.display.dragCursor),s.display.dragCursor=null)}function U6(s){if(document.getElementsByClassName){for(var f=document.getElementsByClassName("CodeMirror"),y=[],v=0;v<f.length;v++){var w=f[v].CodeMirror;w&&y.push(w)}y.length&&y[0].operation(function(){for(var N=0;N<y.length;N++)s(y[N])})}}var K6=!1;function PK(){K6||(LK(),K6=!0)}function LK(){var s;He(window,"resize",function(){s==null&&(s=setTimeout(function(){s=null,U6(DK)},100))}),He(window,"blur",function(){return U6(sd)})}function DK(s){var f=s.display;f.cachedCharWidth=f.cachedTextHeight=f.cachedPaddingH=null,f.scrollbarsClipped=!1,s.setSize()}for(var As={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",224:"Mod",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},G1=0;G1<10;G1++)As[G1+48]=As[G1+96]=String(G1);for(var C0=65;C0<=90;C0++)As[C0]=String.fromCharCode(C0);for(var q1=1;q1<=12;q1++)As[q1+111]=As[q1+63235]="F"+q1;var ql={};ql.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},ql.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},ql.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},ql.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},ql.default=C?ql.macDefault:ql.pcDefault;function FK(s){var f=s.split(/-(?!$)/);s=f[f.length-1];for(var y,v,w,N,F=0;F<f.length-1;F++){var K=f[F];if(/^(cmd|meta|m)$/i.test(K))N=!0;else if(/^a(lt)?$/i.test(K))y=!0;else if(/^(c|ctrl|control)$/i.test(K))v=!0;else if(/^s(hift)?$/i.test(K))w=!0;else throw new Error("Unrecognized modifier name: "+K)}return y&&(s="Alt-"+s),v&&(s="Ctrl-"+s),N&&(s="Cmd-"+s),w&&(s="Shift-"+s),s}function BK(s){var f={};for(var y in s)if(s.hasOwnProperty(y)){var v=s[y];if(/^(name|fallthrough|(de|at)tach)$/.test(y))continue;if(v=="..."){delete s[y];continue}for(var w=me(y.split(" "),FK),N=0;N<w.length;N++){var F=void 0,K=void 0;N==w.length-1?(K=w.join(" "),F=v):(K=w.slice(0,N+1).join(" "),F="...");var q=f[K];if(!q)f[K]=F;else if(q!=F)throw new Error("Inconsistent bindings for "+K)}delete s[y]}for(var Z in f)s[Z]=f[Z];return s}function gd(s,f,y,v){f=S0(f);var w=f.call?f.call(s,v):f[s];if(w===!1)return"nothing";if(w==="...")return"multi";if(w!=null&&y(w))return"handled";if(f.fallthrough){if(Object.prototype.toString.call(f.fallthrough)!="[object Array]")return gd(s,f.fallthrough,y,v);for(var N=0;N<f.fallthrough.length;N++){var F=gd(s,f.fallthrough[N],y,v);if(F)return F}}}function V6(s){var f=typeof s=="string"?s:As[s.keyCode];return f=="Ctrl"||f=="Alt"||f=="Shift"||f=="Mod"}function G6(s,f,y){var v=s;return f.altKey&&v!="Alt"&&(s="Alt-"+s),(T?f.metaKey:f.ctrlKey)&&v!="Ctrl"&&(s="Ctrl-"+s),(T?f.ctrlKey:f.metaKey)&&v!="Mod"&&(s="Cmd-"+s),!y&&f.shiftKey&&v!="Shift"&&(s="Shift-"+s),s}function q6(s,f){if(h&&s.keyCode==34&&s.char)return!1;var y=As[s.keyCode];return y==null||s.altGraphKey?!1:(s.keyCode==3&&s.code&&(y=s.code),G6(y,s,f))}function S0(s){return typeof s=="string"?ql[s]:s}function vd(s,f){for(var y=s.doc.sel.ranges,v=[],w=0;w<y.length;w++){for(var N=f(y[w]);v.length&&Ze(N.from,re(v).to)<=0;){var F=v.pop();if(Ze(F.from,N.from)<0){N.from=F.from;break}}v.push(N)}bo(s,function(){for(var K=v.length-1;K>=0;K--)hd(s.doc,"",v[K].from,v[K].to,"+delete");cd(s)})}function w5(s,f,y){var v=je(s.text,f+y,y);return v<0||v>s.text.length?null:v}function _5(s,f,y){var v=w5(s,f.ch,y);return v==null?null:new Ke(f.line,v,y<0?"after":"before")}function T5(s,f,y,v,w){if(s){f.doc.direction=="rtl"&&(w=-w);var N=Pe(y,f.doc.direction);if(N){var F=w<0?re(N):N[0],K=w<0==(F.level==1),q=K?"after":"before",Z;if(F.level>0||f.doc.direction=="rtl"){var ce=od(f,y);Z=w<0?y.text.length-1:0;var ye=gl(f,ce,Z).top;Z=Ge(function(Fe){return gl(f,ce,Fe).top==ye},w<0==(F.level==1)?F.from:F.to-1,Z),q=="before"&&(Z=w5(y,Z,1))}else Z=w<0?F.to:F.from;return new Ke(v,Z,q)}}return new Ke(v,w<0?y.text.length:0,w<0?"before":"after")}function jK(s,f,y,v){var w=Pe(f,s.doc.direction);if(!w)return _5(f,y,v);y.ch>=f.text.length?(y.ch=f.text.length,y.sticky="before"):y.ch<=0&&(y.ch=0,y.sticky="after");var N=ke(w,y.ch,y.sticky),F=w[N];if(s.doc.direction=="ltr"&&F.level%2==0&&(v>0?F.to>y.ch:F.from<y.ch))return _5(f,y,v);var K=function(kt,Mt){return w5(f,kt instanceof Ke?kt.ch:kt,Mt)},q,Z=function(kt){return s.options.lineWrapping?(q=q||od(s,f),Jw(s,f,q,kt)):{begin:0,end:f.text.length}},ce=Z(y.sticky=="before"?K(y,-1):y.ch);if(s.doc.direction=="rtl"||F.level==1){var ye=F.level==1==v<0,Fe=K(y,ye?1:-1);if(Fe!=null&&(ye?Fe<=F.to&&Fe<=ce.end:Fe>=F.from&&Fe>=ce.begin)){var Re=ye?"before":"after";return new Ke(y.line,Fe,Re)}}var rt=function(kt,Mt,$t){for(var jt=function(Jn,fi){return fi?new Ke(y.line,K(Jn,1),"before"):new Ke(y.line,Jn,"after")};kt>=0&&kt<w.length;kt+=Mt){var nn=w[kt],Qt=Mt>0==(nn.level!=1),gn=Qt?$t.begin:K($t.end,-1);if(nn.from<=gn&&gn<nn.to||(gn=Qt?nn.from:K(nn.to,-1),$t.begin<=gn&&gn<$t.end))return jt(gn,Qt)}},ut=rt(N+v,v,ce);if(ut)return ut;var yt=v>0?ce.end:K(ce.begin,-1);return yt!=null&&!(v>0&&yt==f.text.length)&&(ut=rt(v>0?0:w.length-1,v,Z(yt)),ut)?ut:null}var X1={selectAll:A6,singleSelection:function(s){return s.setSelection(s.getCursor("anchor"),s.getCursor("head"),ne)},killLine:function(s){return vd(s,function(f){if(f.empty()){var y=ot(s.doc,f.head.line).text.length;return f.head.ch==y&&f.head.line<s.lastLine()?{from:f.head,to:Ke(f.head.line+1,0)}:{from:f.head,to:Ke(f.head.line,y)}}else return{from:f.from(),to:f.to()}})},deleteLine:function(s){return vd(s,function(f){return{from:Ke(f.from().line,0),to:Ht(s.doc,Ke(f.to().line+1,0))}})},delLineLeft:function(s){return vd(s,function(f){return{from:Ke(f.from().line,0),to:f.from()}})},delWrappedLineLeft:function(s){return vd(s,function(f){var y=s.charCoords(f.head,"div").top+5,v=s.coordsChar({left:0,top:y},"div");return{from:v,to:f.from()}})},delWrappedLineRight:function(s){return vd(s,function(f){var y=s.charCoords(f.head,"div").top+5,v=s.coordsChar({left:s.display.lineDiv.offsetWidth+100,top:y},"div");return{from:f.from(),to:v}})},undo:function(s){return s.undo()},redo:function(s){return s.redo()},undoSelection:function(s){return s.undoSelection()},redoSelection:function(s){return s.redoSelection()},goDocStart:function(s){return s.extendSelection(Ke(s.firstLine(),0))},goDocEnd:function(s){return s.extendSelection(Ke(s.lastLine()))},goLineStart:function(s){return s.extendSelectionsBy(function(f){return X6(s,f.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(s){return s.extendSelectionsBy(function(f){return Y6(s,f.head)},{origin:"+move",bias:1})},goLineEnd:function(s){return s.extendSelectionsBy(function(f){return HK(s,f.head.line)},{origin:"+move",bias:-1})},goLineRight:function(s){return s.extendSelectionsBy(function(f){var y=s.cursorCoords(f.head,"div").top+5;return s.coordsChar({left:s.display.lineDiv.offsetWidth+100,top:y},"div")},pe)},goLineLeft:function(s){return s.extendSelectionsBy(function(f){var y=s.cursorCoords(f.head,"div").top+5;return s.coordsChar({left:0,top:y},"div")},pe)},goLineLeftSmart:function(s){return s.extendSelectionsBy(function(f){var y=s.cursorCoords(f.head,"div").top+5,v=s.coordsChar({left:0,top:y},"div");return v.ch<s.getLine(v.line).search(/\S/)?Y6(s,f.head):v},pe)},goLineUp:function(s){return s.moveV(-1,"line")},goLineDown:function(s){return s.moveV(1,"line")},goPageUp:function(s){return s.moveV(-1,"page")},goPageDown:function(s){return s.moveV(1,"page")},goCharLeft:function(s){return s.moveH(-1,"char")},goCharRight:function(s){return s.moveH(1,"char")},goColumnLeft:function(s){return s.moveH(-1,"column")},goColumnRight:function(s){return s.moveH(1,"column")},goWordLeft:function(s){return s.moveH(-1,"word")},goGroupRight:function(s){return s.moveH(1,"group")},goGroupLeft:function(s){return s.moveH(-1,"group")},goWordRight:function(s){return s.moveH(1,"word")},delCharBefore:function(s){return s.deleteH(-1,"codepoint")},delCharAfter:function(s){return s.deleteH(1,"char")},delWordBefore:function(s){return s.deleteH(-1,"word")},delWordAfter:function(s){return s.deleteH(1,"word")},delGroupBefore:function(s){return s.deleteH(-1,"group")},delGroupAfter:function(s){return s.deleteH(1,"group")},indentAuto:function(s){return s.indentSelection("smart")},indentMore:function(s){return s.indentSelection("add")},indentLess:function(s){return s.indentSelection("subtract")},insertTab:function(s){return s.replaceSelection(" ")},insertSoftTab:function(s){for(var f=[],y=s.listSelections(),v=s.options.tabSize,w=0;w<y.length;w++){var N=y[w].from(),F=Y(s.getLine(N.line),N.ch,v);f.push(de(v-F%v))}s.replaceSelections(f)},defaultTab:function(s){s.somethingSelected()?s.indentSelection("add"):s.execCommand("insertTab")},transposeChars:function(s){return bo(s,function(){for(var f=s.listSelections(),y=[],v=0;v<f.length;v++)if(f[v].empty()){var w=f[v].head,N=ot(s.doc,w.line).text;if(N){if(w.ch==N.length&&(w=new Ke(w.line,w.ch-1)),w.ch>0)w=new Ke(w.line,w.ch+1),s.replaceRange(N.charAt(w.ch-1)+N.charAt(w.ch-2),Ke(w.line,w.ch-2),w,"+transpose");else if(w.line>s.doc.first){var F=ot(s.doc,w.line-1).text;F&&(w=new Ke(w.line,1),s.replaceRange(N.charAt(0)+s.doc.lineSeparator()+F.charAt(F.length-1),Ke(w.line-1,F.length-1),w,"+transpose"))}}y.push(new Wn(w,w))}s.setSelections(y)})},newlineAndIndent:function(s){return bo(s,function(){for(var f=s.listSelections(),y=f.length-1;y>=0;y--)s.replaceRange(s.doc.lineSeparator(),f[y].anchor,f[y].head,"+input");f=s.listSelections();for(var v=0;v<f.length;v++)s.indentLine(f[v].from().line,null,!0);cd(s)})},openLine:function(s){return s.replaceSelection(`
`,"start")},toggleOverwrite:function(s){return s.toggleOverwrite()}};function X6(s,f){var y=ot(s.doc,f),v=Fa(y);return v!=y&&(f=Tt(v)),T5(!0,s,v,f,1)}function HK(s,f){var y=ot(s.doc,f),v=wU(y);return v!=y&&(f=Tt(v)),T5(!0,s,y,f,-1)}function Y6(s,f){var y=X6(s,f.line),v=ot(s.doc,y.line),w=Pe(v,s.doc.direction);if(!w||w[0].level==0){var N=Math.max(y.ch,v.text.search(/\S/)),F=f.line==y.line&&f.ch<=N&&f.ch;return Ke(y.line,F?0:N,y.sticky)}return y}function E0(s,f,y){if(typeof f=="string"&&(f=X1[f],!f))return!1;s.display.input.ensurePolled();var v=s.display.shift,w=!1;try{s.isReadOnly()&&(s.state.suppressEdits=!0),y&&(s.display.shift=!1),w=f(s)!=se}finally{s.display.shift=v,s.state.suppressEdits=!1}return w}function zK(s,f,y){for(var v=0;v<s.state.keyMaps.length;v++){var w=gd(f,s.state.keyMaps[v],y,s);if(w)return w}return s.options.extraKeys&&gd(f,s.options.extraKeys,y,s)||gd(f,s.options.keyMap,y,s)}var WK=new U;function Y1(s,f,y,v){var w=s.state.keySeq;if(w){if(V6(f))return"handled";if(/\'$/.test(f)?s.state.keySeq=null:WK.set(50,function(){s.state.keySeq==w&&(s.state.keySeq=null,s.display.input.reset())}),Q6(s,w+" "+f,y,v))return!0}return Q6(s,f,y,v)}function Q6(s,f,y,v){var w=zK(s,f,v);return w=="multi"&&(s.state.keySeq=f),w=="handled"&&ci(s,"keyHandled",s,f,y),(w=="handled"||w=="multi")&&(It(y),s5(s)),!!w}function Z6(s,f){var y=q6(f,!0);return y?f.shiftKey&&!s.state.keySeq?Y1(s,"Shift-"+y,f,function(v){return E0(s,v,!0)})||Y1(s,y,f,function(v){if(typeof v=="string"?/^go[A-Z]/.test(v):v.motion)return E0(s,v)}):Y1(s,y,f,function(v){return E0(s,v)}):!1}function UK(s,f,y){return Y1(s,"'"+y+"'",f,function(v){return E0(s,v,!0)})}var O5=null;function J6(s){var f=this;if(!(s.target&&s.target!=f.display.input.getField())&&(f.curOp.focus=W(),!Ne(f,s))){a&&l<11&&s.keyCode==27&&(s.returnValue=!1);var y=s.keyCode;f.display.shift=y==16||s.shiftKey;var v=Z6(f,s);h&&(O5=v?y:null,!v&&y==88&&!Me&&(C?s.metaKey:s.ctrlKey)&&f.replaceSelection("",null,"cut")),n&&!C&&!v&&y==46&&s.shiftKey&&!s.ctrlKey&&document.execCommand&&document.execCommand("cut"),y==18&&!/\bCodeMirror-crosshair\b/.test(f.display.lineDiv.className)&&KK(f)}}function KK(s){var f=s.display.lineDiv;z(f,"CodeMirror-crosshair");function y(v){(v.keyCode==18||!v.altKey)&&(M(f,"CodeMirror-crosshair"),ie(document,"keyup",y),ie(document,"mouseover",y))}He(document,"keyup",y),He(document,"mouseover",y)}function e_(s){s.keyCode==16&&(this.doc.sel.shift=!1),Ne(this,s)}function t_(s){var f=this;if(!(s.target&&s.target!=f.display.input.getField())&&!(Vl(f.display,s)||Ne(f,s)||s.ctrlKey&&!s.altKey||C&&s.metaKey)){var y=s.keyCode,v=s.charCode;if(h&&y==O5){O5=null,It(s);return}if(!(h&&(!s.which||s.which<10)&&Z6(f,s))){var w=String.fromCharCode(v??y);w!="\b"&&(UK(f,s,w)||f.display.input.onKeyPress(s))}}}var VK=400,I5=function(s,f,y){this.time=s,this.pos=f,this.button=y};I5.prototype.compare=function(s,f,y){return this.time+VK>s&&Ze(f,this.pos)==0&&y==this.button};var Q1,Z1;function GK(s,f){var y=+new Date;return Z1&&Z1.compare(y,s,f)?(Q1=Z1=null,"triple"):Q1&&Q1.compare(y,s,f)?(Z1=new I5(y,s,f),Q1=null,"double"):(Q1=new I5(y,s,f),Z1=null,"single")}function n_(s){var f=this,y=f.display;if(!(Ne(f,s)||y.activeTouch&&y.input.supportsTouch())){if(y.input.ensurePolled(),y.shift=s.shiftKey,Vl(y,s)){c||(y.scroller.draggable=!1,setTimeout(function(){return y.scroller.draggable=!0},100));return}if(!k5(f,s)){var v=Kc(f,s),w=Gt(s),N=v?GK(v,w):"single";window.focus(),w==1&&f.state.selectingText&&f.state.selectingText(s),!(v&&qK(f,w,v,N,s))&&(w==1?v?YK(f,v,N,s):rn(s)==y.scroller&&It(s):w==2?(v&&g0(f.doc,v),setTimeout(function(){return y.input.focus()},20)):w==3&&(I?f.display.input.onContextMenu(s):c5(f)))}}}function qK(s,f,y,v,w){var N="Click";return v=="double"?N="Double"+N:v=="triple"&&(N="Triple"+N),N=(f==1?"Left":f==2?"Middle":"Right")+N,Y1(s,G6(N,w),w,function(F){if(typeof F=="string"&&(F=X1[F]),!F)return!1;var K=!1;try{s.isReadOnly()&&(s.state.suppressEdits=!0),K=F(s,y)!=se}finally{s.state.suppressEdits=!1}return K})}function XK(s,f,y){var v=s.getOption("configureMouse"),w=v?v(s,f,y):{};if(w.unit==null){var N=_?y.shiftKey&&y.metaKey:y.altKey;w.unit=N?"rectangle":f=="single"?"char":f=="double"?"word":"line"}return(w.extend==null||s.doc.extend)&&(w.extend=s.doc.extend||y.shiftKey),w.addNew==null&&(w.addNew=C?y.metaKey:y.ctrlKey),w.moveOnDrag==null&&(w.moveOnDrag=!(C?y.altKey:y.ctrlKey)),w}function YK(s,f,y,v){a?setTimeout(A(r6,s),0):s.curOp.focus=W();var w=XK(s,y,v),N=s.doc.sel,F;s.options.dragDrop&&Ft&&!s.isReadOnly()&&y=="single"&&(F=N.contains(f))>-1&&(Ze((F=N.ranges[F]).from(),f)<0||f.xRel>0)&&(Ze(F.to(),f)>0||f.xRel<0)?QK(s,v,f,w):ZK(s,v,f,w)}function QK(s,f,y,v){var w=s.display,N=!1,F=ui(s,function(Z){c&&(w.scroller.draggable=!1),s.state.draggingText=!1,s.state.delayingBlurEvent&&(s.hasFocus()?s.state.delayingBlurEvent=!1:c5(s)),ie(w.wrapper.ownerDocument,"mouseup",F),ie(w.wrapper.ownerDocument,"mousemove",K),ie(w.scroller,"dragstart",q),ie(w.scroller,"drop",F),N||(It(Z),v.addNew||g0(s.doc,y,null,null,v.extend),c&&!m||a&&l==9?setTimeout(function(){w.wrapper.ownerDocument.body.focus({preventScroll:!0}),w.input.focus()},20):w.input.focus())}),K=function(Z){N=N||Math.abs(f.clientX-Z.clientX)+Math.abs(f.clientY-Z.clientY)>=10},q=function(){return N=!0};c&&(w.scroller.draggable=!0),s.state.draggingText=F,F.copy=!v.moveOnDrag,He(w.wrapper.ownerDocument,"mouseup",F),He(w.wrapper.ownerDocument,"mousemove",K),He(w.scroller,"dragstart",q),He(w.scroller,"drop",F),s.state.delayingBlurEvent=!0,setTimeout(function(){return w.input.focus()},20),w.scroller.dragDrop&&w.scroller.dragDrop()}function r_(s,f,y){if(y=="char")return new Wn(f,f);if(y=="word")return s.findWordAt(f);if(y=="line")return new Wn(Ke(f.line,0),Ht(s.doc,Ke(f.line+1,0)));var v=y(s,f);return new Wn(v.from,v.to)}function ZK(s,f,y,v){a&&c5(s);var w=s.display,N=s.doc;It(f);var F,K,q=N.sel,Z=q.ranges;if(v.addNew&&!v.extend?(K=N.sel.contains(y),K>-1?F=Z[K]:F=new Wn(y,y)):(F=N.sel.primary(),K=N.sel.primIndex),v.unit=="rectangle")v.addNew||(F=new Wn(y,y)),y=Kc(s,f,!0,!0),K=-1;else{var ce=r_(s,y,v.unit);v.extend?F=E5(F,ce.anchor,ce.head,v.extend):F=ce}v.addNew?K==-1?(K=Z.length,Ii(N,ja(s,Z.concat([F]),K),{scroll:!1,origin:"*mouse"})):Z.length>1&&Z[K].empty()&&v.unit=="char"&&!v.extend?(Ii(N,ja(s,Z.slice(0,K).concat(Z.slice(K+1)),0),{scroll:!1,origin:"*mouse"}),q=N.sel):x5(N,K,F,oe):(K=0,Ii(N,new Bo([F],0),oe),q=N.sel);var ye=y;function Fe($t){if(Ze(ye,$t)!=0)if(ye=$t,v.unit=="rectangle"){for(var jt=[],nn=s.options.tabSize,Qt=Y(ot(N,y.line).text,y.ch,nn),gn=Y(ot(N,$t.line).text,$t.ch,nn),Jn=Math.min(Qt,gn),fi=Math.max(Qt,gn),Er=Math.min(y.line,$t.line),Co=Math.min(s.lastLine(),Math.max(y.line,$t.line));Er<=Co;Er++){var to=ot(N,Er).text,zr=be(to,Jn,nn);Jn==fi?jt.push(new Wn(Ke(Er,zr),Ke(Er,zr))):to.length>zr&&jt.push(new Wn(Ke(Er,zr),Ke(Er,be(to,fi,nn))))}jt.length||jt.push(new Wn(y,y)),Ii(N,ja(s,q.ranges.slice(0,K).concat(jt),K),{origin:"*mouse",scroll:!1}),s.scrollIntoView($t)}else{var no=F,Si=r_(s,$t,v.unit),qr=no.anchor,Wr;Ze(Si.anchor,qr)>0?(Wr=Si.head,qr=Vn(no.from(),Si.anchor)):(Wr=Si.anchor,qr=dn(no.to(),Si.head));var kr=q.ranges.slice(0);kr[K]=JK(s,new Wn(Ht(N,qr),Wr)),Ii(N,ja(s,kr,K),oe)}}var Re=w.wrapper.getBoundingClientRect(),rt=0;function ut($t){var jt=++rt,nn=Kc(s,$t,!0,v.unit=="rectangle");if(nn)if(Ze(nn,ye)!=0){s.curOp.focus=W(),Fe(nn);var Qt=u0(w,N);(nn.line>=Qt.to||nn.line<Qt.from)&&setTimeout(ui(s,function(){rt==jt&&ut($t)}),150)}else{var gn=$t.clientY<Re.top?-20:$t.clientY>Re.bottom?20:0;gn&&setTimeout(ui(s,function(){rt==jt&&(w.scroller.scrollTop+=gn,ut($t))}),50)}}function yt($t){s.state.selectingText=!1,rt=1/0,$t&&(It($t),w.input.focus()),ie(w.wrapper.ownerDocument,"mousemove",kt),ie(w.wrapper.ownerDocument,"mouseup",Mt),N.history.lastSelOrigin=null}var kt=ui(s,function($t){$t.buttons===0||!Gt($t)?yt($t):ut($t)}),Mt=ui(s,yt);s.state.selectingText=Mt,He(w.wrapper.ownerDocument,"mousemove",kt),He(w.wrapper.ownerDocument,"mouseup",Mt)}function JK(s,f){var y=f.anchor,v=f.head,w=ot(s.doc,y.line);if(Ze(y,v)==0&&y.sticky==v.sticky)return f;var N=Pe(w);if(!N)return f;var F=ke(N,y.ch,y.sticky),K=N[F];if(K.from!=y.ch&&K.to!=y.ch)return f;var q=F+(K.from==y.ch==(K.level!=1)?0:1);if(q==0||q==N.length)return f;var Z;if(v.line!=y.line)Z=(v.line-y.line)*(s.doc.direction=="ltr"?1:-1)>0;else{var ce=ke(N,v.ch,v.sticky),ye=ce-F||(v.ch-y.ch)*(K.level==1?-1:1);ce==q-1||ce==q?Z=ye<0:Z=ye>0}var Fe=N[q+(Z?-1:0)],Re=Z==(Fe.level==1),rt=Re?Fe.from:Fe.to,ut=Re?"after":"before";return y.ch==rt&&y.sticky==ut?f:new Wn(new Ke(y.line,rt,ut),v)}function i_(s,f,y,v){var w,N;if(f.touches)w=f.touches[0].clientX,N=f.touches[0].clientY;else try{w=f.clientX,N=f.clientY}catch{return!1}if(w>=Math.floor(s.display.gutters.getBoundingClientRect().right))return!1;v&&It(f);var F=s.display,K=F.lineDiv.getBoundingClientRect();if(N>K.bottom||!Ye(s,y))return Vt(f);N-=K.top-F.viewOffset;for(var q=0;q<s.display.gutterSpecs.length;++q){var Z=F.gutters.childNodes[q];if(Z&&Z.getBoundingClientRect().right>=w){var ce=tn(s.doc,N),ye=s.display.gutterSpecs[q];return xe(s,y,s,ce,ye.className,f),Vt(f)}}}function k5(s,f){return i_(s,f,"gutterClick",!0)}function o_(s,f){Vl(s.display,f)||eV(s,f)||Ne(s,f,"contextmenu")||I||s.display.input.onContextMenu(f)}function eV(s,f){return Ye(s,"gutterContextMenu")?i_(s,f,"gutterContextMenu",!1):!1}function a_(s){s.display.wrapper.className=s.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+s.options.theme.replace(/(^|\s)\s*/g," cm-s-"),A1(s)}var yd={toString:function(){return"CodeMirror.Init"}},l_={},x0={};function tV(s){var f=s.optionHandlers;function y(v,w,N,F){s.defaults[v]=w,N&&(f[v]=F?function(K,q,Z){Z!=yd&&N(K,q,Z)}:N)}s.defineOption=y,s.Init=yd,y("value","",function(v,w){return v.setValue(w)},!0),y("mode",null,function(v,w){v.doc.modeOption=w,b5(v)},!0),y("indentUnit",2,b5,!0),y("indentWithTabs",!1),y("smartIndent",!0),y("tabSize",4,function(v){j1(v),A1(v),Ji(v)},!0),y("lineSeparator",null,function(v,w){if(v.doc.lineSep=w,!!w){var N=[],F=v.doc.first;v.doc.iter(function(q){for(var Z=0;;){var ce=q.text.indexOf(w,Z);if(ce==-1)break;Z=ce+w.length,N.push(Ke(F,ce))}F++});for(var K=N.length-1;K>=0;K--)hd(v.doc,w,N[K],Ke(N[K].line,N[K].ch+w.length))}}),y("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(v,w,N){v.state.specialChars=new RegExp(w.source+(w.test(" ")?"":"| "),"g"),N!=yd&&v.refresh()}),y("specialCharPlaceholder",$U,function(v){return v.refresh()},!0),y("electricChars",!0),y("inputStyle",S?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),y("spellcheck",!1,function(v,w){return v.getInputField().spellcheck=w},!0),y("autocorrect",!1,function(v,w){return v.getInputField().autocorrect=w},!0),y("autocapitalize",!1,function(v,w){return v.getInputField().autocapitalize=w},!0),y("rtlMoveVisually",!O),y("wholeLineUpdateBefore",!0),y("theme","default",function(v){a_(v),B1(v)},!0),y("keyMap","default",function(v,w,N){var F=S0(w),K=N!=yd&&S0(N);K&&K.detach&&K.detach(v,F),F.attach&&F.attach(v,K||null)}),y("extraKeys",null),y("configureMouse",null),y("lineWrapping",!1,rV,!0),y("gutters",[],function(v,w){v.display.gutterSpecs=v5(w,v.options.lineNumbers),B1(v)},!0),y("fixedGutter",!0,function(v,w){v.display.gutters.style.left=w?o5(v.display)+"px":"0",v.refresh()},!0),y("coverGutterNextToScrollbar",!1,function(v){return ud(v)},!0),y("scrollbarStyle","native",function(v){c6(v),ud(v),v.display.scrollbars.setScrollTop(v.doc.scrollTop),v.display.scrollbars.setScrollLeft(v.doc.scrollLeft)},!0),y("lineNumbers",!1,function(v,w){v.display.gutterSpecs=v5(v.options.gutters,w),B1(v)},!0),y("firstLineNumber",1,B1,!0),y("lineNumberFormatter",function(v){return v},B1,!0),y("showCursorWhenSelecting",!1,R1,!0),y("resetSelectionOnContextMenu",!0),y("lineWiseCopyCut",!0),y("pasteLinesPerSelection",!0),y("selectionsMayTouch",!1),y("readOnly",!1,function(v,w){w=="nocursor"&&(sd(v),v.display.input.blur()),v.display.input.readOnlyChanged(w)}),y("screenReaderLabel",null,function(v,w){w=w===""?null:w,v.display.input.screenReaderLabelChanged(w)}),y("disableInput",!1,function(v,w){w||v.display.input.reset()},!0),y("dragDrop",!0,nV),y("allowDropFileTypes",null),y("cursorBlinkRate",530),y("cursorScrollMargin",0),y("cursorHeight",1,R1,!0),y("singleCursorHeightPerLine",!0,R1,!0),y("workTime",100),y("workDelay",100),y("flattenSpans",!0,j1,!0),y("addModeClass",!1,j1,!0),y("pollInterval",100),y("undoDepth",200,function(v,w){return v.doc.history.undoDepth=w}),y("historyEventDelay",1250),y("viewportMargin",10,function(v){return v.refresh()},!0),y("maxHighlightLength",1e4,j1,!0),y("moveInputWithCursor",!0,function(v,w){w||v.display.input.resetPosition()}),y("tabindex",null,function(v,w){return v.display.input.getField().tabIndex=w||""}),y("autofocus",null),y("direction","ltr",function(v,w){return v.doc.setDirection(w)},!0),y("phrases",null)}function nV(s,f,y){var v=y&&y!=yd;if(!f!=!v){var w=s.display.dragFunctions,N=f?He:ie;N(s.display.scroller,"dragstart",w.start),N(s.display.scroller,"dragenter",w.enter),N(s.display.scroller,"dragover",w.over),N(s.display.scroller,"dragleave",w.leave),N(s.display.scroller,"drop",w.drop)}}function rV(s){s.options.lineWrapping?(z(s.display.wrapper,"CodeMirror-wrap"),s.display.sizer.style.minWidth="",s.display.sizerWidth=null):(M(s.display.wrapper,"CodeMirror-wrap"),X2(s)),a5(s),Ji(s),A1(s),setTimeout(function(){return ud(s)},100)}function pr(s,f){var y=this;if(!(this instanceof pr))return new pr(s,f);this.options=f=f?P(f):{},P(l_,f,!1);var v=f.value;typeof v=="string"?v=new eo(v,f.mode,null,f.lineSeparator,f.direction):f.mode&&(v.modeOption=f.mode),this.doc=v;var w=new pr.inputStyles[f.inputStyle](this),N=this.display=new gK(s,v,w,f);N.wrapper.CodeMirror=this,a_(this),f.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),c6(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new U,keySeq:null,specialChars:null},f.autofocus&&!S&&N.input.focus(),a&&l<11&&setTimeout(function(){return y.display.input.reset(!0)},20),iV(this),PK(),Xc(this),this.curOp.forceUpdate=!0,b6(this,v),f.autofocus&&!S||this.hasFocus()?setTimeout(function(){y.hasFocus()&&!y.state.focused&&u5(y)},20):sd(this);for(var F in x0)x0.hasOwnProperty(F)&&x0[F](this,f[F],yd);f6(this),f.finishInit&&f.finishInit(this);for(var K=0;K<$5.length;++K)$5[K](this);Yc(this),c&&f.lineWrapping&&getComputedStyle(N.lineDiv).textRendering=="optimizelegibility"&&(N.lineDiv.style.textRendering="auto")}pr.defaults=l_,pr.optionHandlers=x0;function iV(s){var f=s.display;He(f.scroller,"mousedown",ui(s,n_)),a&&l<11?He(f.scroller,"dblclick",ui(s,function(q){if(!Ne(s,q)){var Z=Kc(s,q);if(!(!Z||k5(s,q)||Vl(s.display,q))){It(q);var ce=s.findWordAt(Z);g0(s.doc,ce.anchor,ce.head)}}})):He(f.scroller,"dblclick",function(q){return Ne(s,q)||It(q)}),He(f.scroller,"contextmenu",function(q){return o_(s,q)}),He(f.input.getField(),"contextmenu",function(q){f.scroller.contains(q.target)||o_(s,q)});var y,v={end:0};function w(){f.activeTouch&&(y=setTimeout(function(){return f.activeTouch=null},1e3),v=f.activeTouch,v.end=+new Date)}function N(q){if(q.touches.length!=1)return!1;var Z=q.touches[0];return Z.radiusX<=1&&Z.radiusY<=1}function F(q,Z){if(Z.left==null)return!0;var ce=Z.left-q.left,ye=Z.top-q.top;return ce*ce+ye*ye>20*20}He(f.scroller,"touchstart",function(q){if(!Ne(s,q)&&!N(q)&&!k5(s,q)){f.input.ensurePolled(),clearTimeout(y);var Z=+new Date;f.activeTouch={start:Z,moved:!1,prev:Z-v.end<=300?v:null},q.touches.length==1&&(f.activeTouch.left=q.touches[0].pageX,f.activeTouch.top=q.touches[0].pageY)}}),He(f.scroller,"touchmove",function(){f.activeTouch&&(f.activeTouch.moved=!0)}),He(f.scroller,"touchend",function(q){var Z=f.activeTouch;if(Z&&!Vl(f,q)&&Z.left!=null&&!Z.moved&&new Date-Z.start<300){var ce=s.coordsChar(f.activeTouch,"page"),ye;!Z.prev||F(Z,Z.prev)?ye=new Wn(ce,ce):!Z.prev.prev||F(Z,Z.prev.prev)?ye=s.findWordAt(ce):ye=new Wn(Ke(ce.line,0),Ht(s.doc,Ke(ce.line+1,0))),s.setSelection(ye.anchor,ye.head),s.focus(),It(q)}w()}),He(f.scroller,"touchcancel",w),He(f.scroller,"scroll",function(){f.scroller.clientHeight&&(P1(s,f.scroller.scrollTop),Gc(s,f.scroller.scrollLeft,!0),xe(s,"scroll",s))}),He(f.scroller,"mousewheel",function(q){return m6(s,q)}),He(f.scroller,"DOMMouseScroll",function(q){return m6(s,q)}),He(f.wrapper,"scroll",function(){return f.wrapper.scrollTop=f.wrapper.scrollLeft=0}),f.dragFunctions={enter:function(q){Ne(s,q)||en(q)},over:function(q){Ne(s,q)||(MK(s,q),en(q))},start:function(q){return RK(s,q)},drop:ui(s,AK),leave:function(q){Ne(s,q)||W6(s)}};var K=f.input.getField();He(K,"keyup",function(q){return e_.call(s,q)}),He(K,"keydown",ui(s,J6)),He(K,"keypress",ui(s,t_)),He(K,"focus",function(q){return u5(s,q)}),He(K,"blur",function(q){return sd(s,q)})}var $5=[];pr.defineInitHook=function(s){return $5.push(s)};function J1(s,f,y,v){var w=s.doc,N;y==null&&(y="add"),y=="smart"&&(w.mode.indent?N=Rt(s,f).state:y="prev");var F=s.options.tabSize,K=ot(w,f),q=Y(K.text,null,F);K.stateAfter&&(K.stateAfter=null);var Z=K.text.match(/^\s*/)[0],ce;if(!v&&!/\S/.test(K.text))ce=0,y="not";else if(y=="smart"&&(ce=w.mode.indent(N,K.text.slice(Z.length),K.text),ce==se||ce>150)){if(!v)return;y="prev"}y=="prev"?f>w.first?ce=Y(ot(w,f-1).text,null,F):ce=0:y=="add"?ce=q+s.options.indentUnit:y=="subtract"?ce=q-s.options.indentUnit:typeof y=="number"&&(ce=q+y),ce=Math.max(0,ce);var ye="",Fe=0;if(s.options.indentWithTabs)for(var Re=Math.floor(ce/F);Re;--Re)Fe+=F,ye+=" ";if(Fe<ce&&(ye+=de(ce-Fe)),ye!=Z)return hd(w,ye,Ke(f,0),Ke(f,Z.length),"+input"),K.stateAfter=null,!0;for(var rt=0;rt<w.sel.ranges.length;rt++){var ut=w.sel.ranges[rt];if(ut.head.line==f&&ut.head.ch<Z.length){var yt=Ke(f,Z.length);x5(w,rt,new Wn(yt,yt));break}}}var Ha=null;function w0(s){Ha=s}function N5(s,f,y,v,w){var N=s.doc;s.display.shift=!1,v||(v=N.sel);var F=+new Date-200,K=w=="paste"||s.state.pasteIncoming>F,q=we(f),Z=null;if(K&&v.ranges.length>1)if(Ha&&Ha.text.join(`
`)==f){if(v.ranges.length%Ha.text.length==0){Z=[];for(var ce=0;ce<Ha.text.length;ce++)Z.push(N.splitLines(Ha.text[ce]))}}else q.length==v.ranges.length&&s.options.pasteLinesPerSelection&&(Z=me(q,function(kt){return[kt]}));for(var ye=s.curOp.updateInput,Fe=v.ranges.length-1;Fe>=0;Fe--){var Re=v.ranges[Fe],rt=Re.from(),ut=Re.to();Re.empty()&&(y&&y>0?rt=Ke(rt.line,rt.ch-y):s.state.overwrite&&!K?ut=Ke(ut.line,Math.min(ot(N,ut.line).text.length,ut.ch+re(q).length)):K&&Ha&&Ha.lineWise&&Ha.text.join(`
`)==q.join(`
`)&&(rt=ut=Ke(rt.line,0)));var yt={from:rt,to:ut,text:Z?Z[Fe%Z.length]:q,origin:w||(K?"paste":s.state.cutIncoming>F?"cut":"+input")};pd(s.doc,yt),ci(s,"inputRead",s,yt)}f&&!K&&c_(s,f),cd(s),s.curOp.updateInput<2&&(s.curOp.updateInput=ye),s.curOp.typing=!0,s.state.pasteIncoming=s.state.cutIncoming=-1}function s_(s,f){var y=s.clipboardData&&s.clipboardData.getData("Text");if(y)return s.preventDefault(),!f.isReadOnly()&&!f.options.disableInput&&bo(f,function(){return N5(f,y,0,null,"paste")}),!0}function c_(s,f){if(!(!s.options.electricChars||!s.options.smartIndent))for(var y=s.doc.sel,v=y.ranges.length-1;v>=0;v--){var w=y.ranges[v];if(!(w.head.ch>100||v&&y.ranges[v-1].head.line==w.head.line)){var N=s.getModeAt(w.head),F=!1;if(N.electricChars){for(var K=0;K<N.electricChars.length;K++)if(f.indexOf(N.electricChars.charAt(K))>-1){F=J1(s,w.head.line,"smart");break}}else N.electricInput&&N.electricInput.test(ot(s.doc,w.head.line).text.slice(0,w.head.ch))&&(F=J1(s,w.head.line,"smart"));F&&ci(s,"electricInput",s,w.head.line)}}}function u_(s){for(var f=[],y=[],v=0;v<s.doc.sel.ranges.length;v++){var w=s.doc.sel.ranges[v].head.line,N={anchor:Ke(w,0),head:Ke(w+1,0)};y.push(N),f.push(s.getRange(N.anchor,N.head))}return{text:f,ranges:y}}function d_(s,f,y,v){s.setAttribute("autocorrect",y?"":"off"),s.setAttribute("autocapitalize",v?"":"off"),s.setAttribute("spellcheck",!!f)}function f_(){var s=D("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; min-height: 1em; outline: none"),f=D("div",[s],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return c?s.style.width="1000px":s.setAttribute("wrap","off"),E&&(s.style.border="1px solid black"),d_(s),f}function oV(s){var f=s.optionHandlers,y=s.helpers={};s.prototype={constructor:s,focus:function(){window.focus(),this.display.input.focus()},setOption:function(v,w){var N=this.options,F=N[v];N[v]==w&&v!="mode"||(N[v]=w,f.hasOwnProperty(v)&&ui(this,f[v])(this,w,F),xe(this,"optionChange",this,v))},getOption:function(v){return this.options[v]},getDoc:function(){return this.doc},addKeyMap:function(v,w){this.state.keyMaps[w?"push":"unshift"](S0(v))},removeKeyMap:function(v){for(var w=this.state.keyMaps,N=0;N<w.length;++N)if(w[N]==v||w[N].name==v)return w.splice(N,1),!0},addOverlay:ji(function(v,w){var N=v.token?v:s.getMode(this.options,v);if(N.startState)throw new Error("Overlays may not be stateful.");ge(this.state.overlays,{mode:N,modeSpec:v,opaque:w&&w.opaque,priority:w&&w.priority||0},function(F){return F.priority}),this.state.modeGen++,Ji(this)}),removeOverlay:ji(function(v){for(var w=this.state.overlays,N=0;N<w.length;++N){var F=w[N].modeSpec;if(F==v||typeof v=="string"&&F.name==v){w.splice(N,1),this.state.modeGen++,Ji(this);return}}}),indentLine:ji(function(v,w,N){typeof w!="string"&&typeof w!="number"&&(w==null?w=this.options.smartIndent?"smart":"prev":w=w?"add":"subtract"),mn(this.doc,v)&&J1(this,v,w,N)}),indentSelection:ji(function(v){for(var w=this.doc.sel.ranges,N=-1,F=0;F<w.length;F++){var K=w[F];if(K.empty())K.head.line>N&&(J1(this,K.head.line,v,!0),N=K.head.line,F==this.doc.sel.primIndex&&cd(this));else{var q=K.from(),Z=K.to(),ce=Math.max(N,q.line);N=Math.min(this.lastLine(),Z.line-(Z.ch?0:1))+1;for(var ye=ce;ye<N;++ye)J1(this,ye,v);var Fe=this.doc.sel.ranges;q.ch==0&&w.length==Fe.length&&Fe[F].from().ch>0&&x5(this.doc,F,new Wn(q,Fe[F].to()),ne)}}}),getTokenAt:function(v,w){return Pr(this,v,w)},getLineTokens:function(v,w){return Pr(this,Ke(v),w,!0)},getTokenTypeAt:function(v){v=Ht(this.doc,v);var w=Bt(this,ot(this.doc,v.line)),N=0,F=(w.length-1)/2,K=v.ch,q;if(K==0)q=w[2];else for(;;){var Z=N+F>>1;if((Z?w[Z*2-1]:0)>=K)F=Z;else if(w[Z*2+1]<K)N=Z+1;else{q=w[Z*2+2];break}}var ce=q?q.indexOf("overlay "):-1;return ce<0?q:ce==0?null:q.slice(0,ce-1)},getModeAt:function(v){var w=this.doc.mode;return w.innerMode?s.innerMode(w,this.getTokenAt(v).state).mode:w},getHelper:function(v,w){return this.getHelpers(v,w)[0]},getHelpers:function(v,w){var N=[];if(!y.hasOwnProperty(w))return N;var F=y[w],K=this.getModeAt(v);if(typeof K[w]=="string")F[K[w]]&&N.push(F[K[w]]);else if(K[w])for(var q=0;q<K[w].length;q++){var Z=F[K[w][q]];Z&&N.push(Z)}else K.helperType&&F[K.helperType]?N.push(F[K.helperType]):F[K.name]&&N.push(F[K.name]);for(var ce=0;ce<F._global.length;ce++){var ye=F._global[ce];ye.pred(K,this)&&Q(N,ye.val)==-1&&N.push(ye.val)}return N},getStateAfter:function(v,w){var N=this.doc;return v=cr(N,v??N.first+N.size-1),Rt(this,v+1,w).state},cursorCoords:function(v,w){var N,F=this.doc.sel.primary();return v==null?N=F.head:typeof v=="object"?N=Ht(this.doc,v):N=v?F.from():F.to(),Ba(this,N,w||"page")},charCoords:function(v,w){return a0(this,Ht(this.doc,v),w||"page")},coordsChar:function(v,w){return v=Yw(this,v,w||"page"),n5(this,v.left,v.top)},lineAtHeight:function(v,w){return v=Yw(this,{top:v,left:0},w||"page").top,tn(this.doc,v+this.display.viewOffset)},heightAtLine:function(v,w,N){var F=!1,K;if(typeof v=="number"){var q=this.doc.first+this.doc.size-1;v<this.doc.first?v=this.doc.first:v>q&&(v=q,F=!0),K=ot(this.doc,v)}else K=v;return o0(this,K,{top:0,left:0},w||"page",N||F).top+(F?this.doc.height-Kl(K):0)},defaultTextHeight:function(){return ad(this.display)},defaultCharWidth:function(){return ld(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(v,w,N,F,K){var q=this.display;v=Ba(this,Ht(this.doc,v));var Z=v.bottom,ce=v.left;if(w.style.position="absolute",w.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(w),q.sizer.appendChild(w),F=="over")Z=v.top;else if(F=="above"||F=="near"){var ye=Math.max(q.wrapper.clientHeight,this.doc.height),Fe=Math.max(q.sizer.clientWidth,q.lineSpace.clientWidth);(F=="above"||v.bottom+w.offsetHeight>ye)&&v.top>w.offsetHeight?Z=v.top-w.offsetHeight:v.bottom+w.offsetHeight<=ye&&(Z=v.bottom),ce+w.offsetWidth>Fe&&(ce=Fe-w.offsetWidth)}w.style.top=Z+"px",w.style.left=w.style.right="",K=="right"?(ce=q.sizer.clientWidth-w.offsetWidth,w.style.right="0px"):(K=="left"?ce=0:K=="middle"&&(ce=(q.sizer.clientWidth-w.offsetWidth)/2),w.style.left=ce+"px"),N&&nK(this,{left:ce,top:Z,right:ce+w.offsetWidth,bottom:Z+w.offsetHeight})},triggerOnKeyDown:ji(J6),triggerOnKeyPress:ji(t_),triggerOnKeyUp:e_,triggerOnMouseDown:ji(n_),execCommand:function(v){if(X1.hasOwnProperty(v))return X1[v].call(null,this)},triggerElectric:ji(function(v){c_(this,v)}),findPosH:function(v,w,N,F){var K=1;w<0&&(K=-1,w=-w);for(var q=Ht(this.doc,v),Z=0;Z<w&&(q=A5(this.doc,q,K,N,F),!q.hitSide);++Z);return q},moveH:ji(function(v,w){var N=this;this.extendSelectionsBy(function(F){return N.display.shift||N.doc.extend||F.empty()?A5(N.doc,F.head,v,w,N.options.rtlMoveVisually):v<0?F.from():F.to()},pe)}),deleteH:ji(function(v,w){var N=this.doc.sel,F=this.doc;N.somethingSelected()?F.replaceSelection("",null,"+delete"):vd(this,function(K){var q=A5(F,K.head,v,w,!1);return v<0?{from:q,to:K.head}:{from:K.head,to:q}})}),findPosV:function(v,w,N,F){var K=1,q=F;w<0&&(K=-1,w=-w);for(var Z=Ht(this.doc,v),ce=0;ce<w;++ce){var ye=Ba(this,Z,"div");if(q==null?q=ye.left:ye.left=q,Z=p_(this,ye,K,N),Z.hitSide)break}return Z},moveV:ji(function(v,w){var N=this,F=this.doc,K=[],q=!this.display.shift&&!F.extend&&F.sel.somethingSelected();if(F.extendSelectionsBy(function(ce){if(q)return v<0?ce.from():ce.to();var ye=Ba(N,ce.head,"div");ce.goalColumn!=null&&(ye.left=ce.goalColumn),K.push(ye.left);var Fe=p_(N,ye,v,w);return w=="page"&&ce==F.sel.primary()&&f5(N,a0(N,Fe,"div").top-ye.top),Fe},pe),K.length)for(var Z=0;Z<F.sel.ranges.length;Z++)F.sel.ranges[Z].goalColumn=K[Z]}),findWordAt:function(v){var w=this.doc,N=ot(w,v.line).text,F=v.ch,K=v.ch;if(N){var q=this.getHelper(v,"wordChars");(v.sticky=="before"||K==N.length)&&F?--F:++K;for(var Z=N.charAt(F),ce=Ie(Z,q)?function(ye){return Ie(ye,q)}:/\s/.test(Z)?function(ye){return/\s/.test(ye)}:function(ye){return!/\s/.test(ye)&&!Ie(ye)};F>0&&ce(N.charAt(F-1));)--F;for(;K<N.length&&ce(N.charAt(K));)++K}return new Wn(Ke(v.line,F),Ke(v.line,K))},toggleOverwrite:function(v){v!=null&&v==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?z(this.display.cursorDiv,"CodeMirror-overwrite"):M(this.display.cursorDiv,"CodeMirror-overwrite"),xe(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==W()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:ji(function(v,w){M1(this,v,w)}),getScrollInfo:function(){var v=this.display.scroller;return{left:v.scrollLeft,top:v.scrollTop,height:v.scrollHeight-ml(this)-this.display.barHeight,width:v.scrollWidth-ml(this)-this.display.barWidth,clientHeight:Z2(this),clientWidth:Wc(this)}},scrollIntoView:ji(function(v,w){v==null?(v={from:this.doc.sel.primary().head,to:null},w==null&&(w=this.options.cursorScrollMargin)):typeof v=="number"?v={from:Ke(v,0),to:null}:v.from==null&&(v={from:v,to:null}),v.to||(v.to=v.from),v.margin=w||0,v.from.line!=null?rK(this,v):o6(this,v.from,v.to,v.margin)}),setSize:ji(function(v,w){var N=this,F=function(q){return typeof q=="number"||/^\d+$/.test(String(q))?q+"px":q};v!=null&&(this.display.wrapper.style.width=F(v)),w!=null&&(this.display.wrapper.style.height=F(w)),this.options.lineWrapping&&Gw(this);var K=this.display.viewFrom;this.doc.iter(K,this.display.viewTo,function(q){if(q.widgets){for(var Z=0;Z<q.widgets.length;Z++)if(q.widgets[Z].noHScroll){Ts(N,K,"widget");break}}++K}),this.curOp.forceUpdate=!0,xe(this,"refresh",this)}),operation:function(v){return bo(this,v)},startOperation:function(){return Xc(this)},endOperation:function(){return Yc(this)},refresh:ji(function(){var v=this.display.cachedTextHeight;Ji(this),this.curOp.forceUpdate=!0,A1(this),M1(this,this.doc.scrollLeft,this.doc.scrollTop),m5(this.display),(v==null||Math.abs(v-ad(this.display))>.5||this.options.lineWrapping)&&a5(this),xe(this,"refresh",this)}),swapDoc:ji(function(v){var w=this.doc;return w.cm=null,this.state.selectingText&&this.state.selectingText(),b6(this,v),A1(this),this.display.input.reset(),M1(this,v.scrollLeft,v.scrollTop),this.curOp.forceScroll=!0,ci(this,"swapDoc",this,w),w}),phrase:function(v){var w=this.options.phrases;return w&&Object.prototype.hasOwnProperty.call(w,v)?w[v]:v},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},ht(s),s.registerHelper=function(v,w,N){y.hasOwnProperty(v)||(y[v]=s[v]={_global:[]}),y[v][w]=N},s.registerGlobalHelper=function(v,w,N,F){s.registerHelper(v,w,F),y[v]._global.push({pred:N,val:F})}}function A5(s,f,y,v,w){var N=f,F=y,K=ot(s,f.line),q=w&&s.direction=="rtl"?-y:y;function Z(){var Mt=f.line+q;return Mt<s.first||Mt>=s.first+s.size?!1:(f=new Ke(Mt,f.ch,f.sticky),K=ot(s,Mt))}function ce(Mt){var $t;if(v=="codepoint"){var jt=K.text.charCodeAt(f.ch+(y>0?0:-1));if(isNaN(jt))$t=null;else{var nn=y>0?jt>=55296&&jt<56320:jt>=56320&&jt<57343;$t=new Ke(f.line,Math.max(0,Math.min(K.text.length,f.ch+y*(nn?2:1))),-y)}}else w?$t=jK(s.cm,K,f,y):$t=_5(K,f,y);if($t==null)if(!Mt&&Z())f=T5(w,s.cm,K,f.line,q);else return!1;else f=$t;return!0}if(v=="char"||v=="codepoint")ce();else if(v=="column")ce(!0);else if(v=="word"||v=="group")for(var ye=null,Fe=v=="group",Re=s.cm&&s.cm.getHelper(f,"wordChars"),rt=!0;!(y<0&&!ce(!rt));rt=!1){var ut=K.text.charAt(f.ch)||`
`,yt=Ie(ut,Re)?"w":Fe&&ut==`
`?"n":!Fe||/\s/.test(ut)?null:"p";if(Fe&&!rt&&!yt&&(yt="s"),ye&&ye!=yt){y<0&&(y=1,ce(),f.sticky="after");break}if(yt&&(ye=yt),y>0&&!ce(!rt))break}var kt=y0(s,f,N,F,!0);return Kt(N,kt)&&(kt.hitSide=!0),kt}function p_(s,f,y,v){var w=s.doc,N=f.left,F;if(v=="page"){var K=Math.min(s.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),q=Math.max(K-.5*ad(s.display),3);F=(y>0?f.bottom:f.top)+y*q}else v=="line"&&(F=y>0?f.bottom+3:f.top-3);for(var Z;Z=n5(s,N,F),!!Z.outside;){if(y<0?F<=0:F>=w.height){Z.hitSide=!0;break}F+=y*5}return Z}var Gn=function(s){this.cm=s,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new U,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};Gn.prototype.init=function(s){var f=this,y=this,v=y.cm,w=y.div=s.lineDiv;w.contentEditable=!0,d_(w,v.options.spellcheck,v.options.autocorrect,v.options.autocapitalize);function N(K){for(var q=K.target;q;q=q.parentNode){if(q==w)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(q.className))break}return!1}He(w,"paste",function(K){!N(K)||Ne(v,K)||s_(K,v)||l<=11&&setTimeout(ui(v,function(){return f.updateFromDOM()}),20)}),He(w,"compositionstart",function(K){f.composing={data:K.data,done:!1}}),He(w,"compositionupdate",function(K){f.composing||(f.composing={data:K.data,done:!1})}),He(w,"compositionend",function(K){f.composing&&(K.data!=f.composing.data&&f.readFromDOMSoon(),f.composing.done=!0)}),He(w,"touchstart",function(){return y.forceCompositionEnd()}),He(w,"input",function(){f.composing||f.readFromDOMSoon()});function F(K){if(!(!N(K)||Ne(v,K))){if(v.somethingSelected())w0({lineWise:!1,text:v.getSelections()}),K.type=="cut"&&v.replaceSelection("",null,"cut");else if(v.options.lineWiseCopyCut){var q=u_(v);w0({lineWise:!0,text:q.text}),K.type=="cut"&&v.operation(function(){v.setSelections(q.ranges,0,ne),v.replaceSelection("",null,"cut")})}else return;if(K.clipboardData){K.clipboardData.clearData();var Z=Ha.text.join(`
`);if(K.clipboardData.setData("Text",Z),K.clipboardData.getData("Text")==Z){K.preventDefault();return}}var ce=f_(),ye=ce.firstChild;v.display.lineSpace.insertBefore(ce,v.display.lineSpace.firstChild),ye.value=Ha.text.join(`
`);var Fe=W();X(ye),setTimeout(function(){v.display.lineSpace.removeChild(ce),Fe.focus(),Fe==w&&y.showPrimarySelection()},50)}}He(w,"copy",F),He(w,"cut",F)},Gn.prototype.screenReaderLabelChanged=function(s){s?this.div.setAttribute("aria-label",s):this.div.removeAttribute("aria-label")},Gn.prototype.prepareSelection=function(){var s=n6(this.cm,!1);return s.focus=W()==this.div,s},Gn.prototype.showSelection=function(s,f){!s||!this.cm.display.view.length||((s.focus||f)&&this.showPrimarySelection(),this.showMultipleSelections(s))},Gn.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Gn.prototype.showPrimarySelection=function(){var s=this.getSelection(),f=this.cm,y=f.doc.sel.primary(),v=y.from(),w=y.to();if(f.display.viewTo==f.display.viewFrom||v.line>=f.display.viewTo||w.line<f.display.viewFrom){s.removeAllRanges();return}var N=_0(f,s.anchorNode,s.anchorOffset),F=_0(f,s.focusNode,s.focusOffset);if(!(N&&!N.bad&&F&&!F.bad&&Ze(Vn(N,F),v)==0&&Ze(dn(N,F),w)==0)){var K=f.display.view,q=v.line>=f.display.viewFrom&&h_(f,v)||{node:K[0].measure.map[2],offset:0},Z=w.line<f.display.viewTo&&h_(f,w);if(!Z){var ce=K[K.length-1].measure,ye=ce.maps?ce.maps[ce.maps.length-1]:ce.map;Z={node:ye[ye.length-1],offset:ye[ye.length-2]-ye[ye.length-3]}}if(!q||!Z){s.removeAllRanges();return}var Fe=s.rangeCount&&s.getRangeAt(0),Re;try{Re=B(q.node,q.offset,Z.offset,Z.node)}catch{}Re&&(!n&&f.state.focused?(s.collapse(q.node,q.offset),Re.collapsed||(s.removeAllRanges(),s.addRange(Re))):(s.removeAllRanges(),s.addRange(Re)),Fe&&s.anchorNode==null?s.addRange(Fe):n&&this.startGracePeriod()),this.rememberSelection()}},Gn.prototype.startGracePeriod=function(){var s=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){s.gracePeriod=!1,s.selectionChanged()&&s.cm.operation(function(){return s.cm.curOp.selectionChanged=!0})},20)},Gn.prototype.showMultipleSelections=function(s){j(this.cm.display.cursorDiv,s.cursors),j(this.cm.display.selectionDiv,s.selection)},Gn.prototype.rememberSelection=function(){var s=this.getSelection();this.lastAnchorNode=s.anchorNode,this.lastAnchorOffset=s.anchorOffset,this.lastFocusNode=s.focusNode,this.lastFocusOffset=s.focusOffset},Gn.prototype.selectionInEditor=function(){var s=this.getSelection();if(!s.rangeCount)return!1;var f=s.getRangeAt(0).commonAncestorContainer;return H(this.div,f)},Gn.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||W()!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},Gn.prototype.blur=function(){this.div.blur()},Gn.prototype.getField=function(){return this.div},Gn.prototype.supportsTouch=function(){return!0},Gn.prototype.receivedFocus=function(){var s=this,f=this;this.selectionInEditor()?setTimeout(function(){return s.pollSelection()},20):bo(this.cm,function(){return f.cm.curOp.selectionChanged=!0});function y(){f.cm.state.focused&&(f.pollSelection(),f.polling.set(f.cm.options.pollInterval,y))}this.polling.set(this.cm.options.pollInterval,y)},Gn.prototype.selectionChanged=function(){var s=this.getSelection();return s.anchorNode!=this.lastAnchorNode||s.anchorOffset!=this.lastAnchorOffset||s.focusNode!=this.lastFocusNode||s.focusOffset!=this.lastFocusOffset},Gn.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var s=this.getSelection(),f=this.cm;if(x&&p&&this.cm.display.gutterSpecs.length&&aV(s.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var y=_0(f,s.anchorNode,s.anchorOffset),v=_0(f,s.focusNode,s.focusOffset);y&&v&&bo(f,function(){Ii(f.doc,Is(y,v),ne),(y.bad||v.bad)&&(f.curOp.selectionChanged=!0)})}}},Gn.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var s=this.cm,f=s.display,y=s.doc.sel.primary(),v=y.from(),w=y.to();if(v.ch==0&&v.line>s.firstLine()&&(v=Ke(v.line-1,ot(s.doc,v.line-1).length)),w.ch==ot(s.doc,w.line).text.length&&w.line<s.lastLine()&&(w=Ke(w.line+1,0)),v.line<f.viewFrom||w.line>f.viewTo-1)return!1;var N,F,K;v.line==f.viewFrom||(N=Vc(s,v.line))==0?(F=Tt(f.view[0].line),K=f.view[0].node):(F=Tt(f.view[N].line),K=f.view[N-1].node.nextSibling);var q=Vc(s,w.line),Z,ce;if(q==f.view.length-1?(Z=f.viewTo-1,ce=f.lineDiv.lastChild):(Z=Tt(f.view[q+1].line)-1,ce=f.view[q+1].node.previousSibling),!K)return!1;for(var ye=s.doc.splitLines(lV(s,K,ce,F,Z)),Fe=Xt(s.doc,Ke(F,0),Ke(Z,ot(s.doc,Z).text.length));ye.length>1&&Fe.length>1;)if(re(ye)==re(Fe))ye.pop(),Fe.pop(),Z--;else if(ye[0]==Fe[0])ye.shift(),Fe.shift(),F++;else break;for(var Re=0,rt=0,ut=ye[0],yt=Fe[0],kt=Math.min(ut.length,yt.length);Re<kt&&ut.charCodeAt(Re)==yt.charCodeAt(Re);)++Re;for(var Mt=re(ye),$t=re(Fe),jt=Math.min(Mt.length-(ye.length==1?Re:0),$t.length-(Fe.length==1?Re:0));rt<jt&&Mt.charCodeAt(Mt.length-rt-1)==$t.charCodeAt($t.length-rt-1);)++rt;if(ye.length==1&&Fe.length==1&&F==v.line)for(;Re&&Re>v.ch&&Mt.charCodeAt(Mt.length-rt-1)==$t.charCodeAt($t.length-rt-1);)Re--,rt++;ye[ye.length-1]=Mt.slice(0,Mt.length-rt).replace(/^\u200b+/,""),ye[0]=ye[0].slice(Re).replace(/\u200b+$/,"");var nn=Ke(F,Re),Qt=Ke(Z,Fe.length?re(Fe).length-rt:0);if(ye.length>1||ye[0]||Ze(nn,Qt))return hd(s.doc,ye,nn,Qt,"+input"),!0},Gn.prototype.ensurePolled=function(){this.forceCompositionEnd()},Gn.prototype.reset=function(){this.forceCompositionEnd()},Gn.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Gn.prototype.readFromDOMSoon=function(){var s=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(s.readDOMTimeout=null,s.composing)if(s.composing.done)s.composing=null;else return;s.updateFromDOM()},80))},Gn.prototype.updateFromDOM=function(){var s=this;(this.cm.isReadOnly()||!this.pollContent())&&bo(this.cm,function(){return Ji(s.cm)})},Gn.prototype.setUneditable=function(s){s.contentEditable="false"},Gn.prototype.onKeyPress=function(s){s.charCode==0||this.composing||(s.preventDefault(),this.cm.isReadOnly()||ui(this.cm,N5)(this.cm,String.fromCharCode(s.charCode==null?s.keyCode:s.charCode),0))},Gn.prototype.readOnlyChanged=function(s){this.div.contentEditable=String(s!="nocursor")},Gn.prototype.onContextMenu=function(){},Gn.prototype.resetPosition=function(){},Gn.prototype.needsContentAttribute=!0;function h_(s,f){var y=J2(s,f.line);if(!y||y.hidden)return null;var v=ot(s.doc,f.line),w=zw(y,v,f.line),N=Pe(v,s.doc.direction),F="left";if(N){var K=ke(N,f.ch);F=K%2?"right":"left"}var q=Kw(w.map,f.ch,F);return q.offset=q.collapse=="right"?q.end:q.start,q}function aV(s){for(var f=s;f;f=f.parentNode)if(/CodeMirror-gutter-wrapper/.test(f.className))return!0;return!1}function bd(s,f){return f&&(s.bad=!0),s}function lV(s,f,y,v,w){var N="",F=!1,K=s.doc.lineSeparator(),q=!1;function Z(Re){return function(rt){return rt.id==Re}}function ce(){F&&(N+=K,q&&(N+=K),F=q=!1)}function ye(Re){Re&&(ce(),N+=Re)}function Fe(Re){if(Re.nodeType==1){var rt=Re.getAttribute("cm-text");if(rt){ye(rt);return}var ut=Re.getAttribute("cm-marker"),yt;if(ut){var kt=s.findMarks(Ke(v,0),Ke(w+1,0),Z(+ut));kt.length&&(yt=kt[0].find(0))&&ye(Xt(s.doc,yt.from,yt.to).join(K));return}if(Re.getAttribute("contenteditable")=="false")return;var Mt=/^(pre|div|p|li|table|br)$/i.test(Re.nodeName);if(!/^br$/i.test(Re.nodeName)&&Re.textContent.length==0)return;Mt&&ce();for(var $t=0;$t<Re.childNodes.length;$t++)Fe(Re.childNodes[$t]);/^(pre|p)$/i.test(Re.nodeName)&&(q=!0),Mt&&(F=!0)}else Re.nodeType==3&&ye(Re.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;Fe(f),f!=y;)f=f.nextSibling,q=!1;return N}function _0(s,f,y){var v;if(f==s.display.lineDiv){if(v=s.display.lineDiv.childNodes[y],!v)return bd(s.clipPos(Ke(s.display.viewTo-1)),!0);f=null,y=0}else for(v=f;;v=v.parentNode){if(!v||v==s.display.lineDiv)return null;if(v.parentNode&&v.parentNode==s.display.lineDiv)break}for(var w=0;w<s.display.view.length;w++){var N=s.display.view[w];if(N.node==v)return sV(N,f,y)}}function sV(s,f,y){var v=s.text.firstChild,w=!1;if(!f||!H(v,f))return bd(Ke(Tt(s.line),0),!0);if(f==v&&(w=!0,f=v.childNodes[y],y=0,!f)){var N=s.rest?re(s.rest):s.line;return bd(Ke(Tt(N),N.text.length),w)}var F=f.nodeType==3?f:null,K=f;for(!F&&f.childNodes.length==1&&f.firstChild.nodeType==3&&(F=f.firstChild,y&&(y=F.nodeValue.length));K.parentNode!=v;)K=K.parentNode;var q=s.measure,Z=q.maps;function ce(yt,kt,Mt){for(var $t=-1;$t<(Z?Z.length:0);$t++)for(var jt=$t<0?q.map:Z[$t],nn=0;nn<jt.length;nn+=3){var Qt=jt[nn+2];if(Qt==yt||Qt==kt){var gn=Tt($t<0?s.line:s.rest[$t]),Jn=jt[nn]+Mt;return(Mt<0||Qt!=yt)&&(Jn=jt[nn+(Mt?1:0)]),Ke(gn,Jn)}}}var ye=ce(F,K,y);if(ye)return bd(ye,w);for(var Fe=K.nextSibling,Re=F?F.nodeValue.length-y:0;Fe;Fe=Fe.nextSibling){if(ye=ce(Fe,Fe.firstChild,0),ye)return bd(Ke(ye.line,ye.ch-Re),w);Re+=Fe.textContent.length}for(var rt=K.previousSibling,ut=y;rt;rt=rt.previousSibling){if(ye=ce(rt,rt.firstChild,-1),ye)return bd(Ke(ye.line,ye.ch+ut),w);ut+=rt.textContent.length}}var Dr=function(s){this.cm=s,this.prevInput="",this.pollingFast=!1,this.polling=new U,this.hasSelection=!1,this.composing=null};Dr.prototype.init=function(s){var f=this,y=this,v=this.cm;this.createField(s);var w=this.textarea;s.wrapper.insertBefore(this.wrapper,s.wrapper.firstChild),E&&(w.style.width="0px"),He(w,"input",function(){a&&l>=9&&f.hasSelection&&(f.hasSelection=null),y.poll()}),He(w,"paste",function(F){Ne(v,F)||s_(F,v)||(v.state.pasteIncoming=+new Date,y.fastPoll())});function N(F){if(!Ne(v,F)){if(v.somethingSelected())w0({lineWise:!1,text:v.getSelections()});else if(v.options.lineWiseCopyCut){var K=u_(v);w0({lineWise:!0,text:K.text}),F.type=="cut"?v.setSelections(K.ranges,null,ne):(y.prevInput="",w.value=K.text.join(`
`),X(w))}else return;F.type=="cut"&&(v.state.cutIncoming=+new Date)}}He(w,"cut",N),He(w,"copy",N),He(s.scroller,"paste",function(F){if(!(Vl(s,F)||Ne(v,F))){if(!w.dispatchEvent){v.state.pasteIncoming=+new Date,y.focus();return}var K=new Event("paste");K.clipboardData=F.clipboardData,w.dispatchEvent(K)}}),He(s.lineSpace,"selectstart",function(F){Vl(s,F)||It(F)}),He(w,"compositionstart",function(){var F=v.getCursor("from");y.composing&&y.composing.range.clear(),y.composing={start:F,range:v.markText(F,v.getCursor("to"),{className:"CodeMirror-composing"})}}),He(w,"compositionend",function(){y.composing&&(y.poll(),y.composing.range.clear(),y.composing=null)})},Dr.prototype.createField=function(s){this.wrapper=f_(),this.textarea=this.wrapper.firstChild},Dr.prototype.screenReaderLabelChanged=function(s){s?this.textarea.setAttribute("aria-label",s):this.textarea.removeAttribute("aria-label")},Dr.prototype.prepareSelection=function(){var s=this.cm,f=s.display,y=s.doc,v=n6(s);if(s.options.moveInputWithCursor){var w=Ba(s,y.sel.primary().head,"div"),N=f.wrapper.getBoundingClientRect(),F=f.lineDiv.getBoundingClientRect();v.teTop=Math.max(0,Math.min(f.wrapper.clientHeight-10,w.top+F.top-N.top)),v.teLeft=Math.max(0,Math.min(f.wrapper.clientWidth-10,w.left+F.left-N.left))}return v},Dr.prototype.showSelection=function(s){var f=this.cm,y=f.display;j(y.cursorDiv,s.cursors),j(y.selectionDiv,s.selection),s.teTop!=null&&(this.wrapper.style.top=s.teTop+"px",this.wrapper.style.left=s.teLeft+"px")},Dr.prototype.reset=function(s){if(!(this.contextMenuPending||this.composing)){var f=this.cm;if(f.somethingSelected()){this.prevInput="";var y=f.getSelection();this.textarea.value=y,f.state.focused&&X(this.textarea),a&&l>=9&&(this.hasSelection=y)}else s||(this.prevInput=this.textarea.value="",a&&l>=9&&(this.hasSelection=null))}},Dr.prototype.getField=function(){return this.textarea},Dr.prototype.supportsTouch=function(){return!1},Dr.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!S||W()!=this.textarea))try{this.textarea.focus()}catch{}},Dr.prototype.blur=function(){this.textarea.blur()},Dr.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Dr.prototype.receivedFocus=function(){this.slowPoll()},Dr.prototype.slowPoll=function(){var s=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){s.poll(),s.cm.state.focused&&s.slowPoll()})},Dr.prototype.fastPoll=function(){var s=!1,f=this;f.pollingFast=!0;function y(){var v=f.poll();!v&&!s?(s=!0,f.polling.set(60,y)):(f.pollingFast=!1,f.slowPoll())}f.polling.set(20,y)},Dr.prototype.poll=function(){var s=this,f=this.cm,y=this.textarea,v=this.prevInput;if(this.contextMenuPending||!f.state.focused||ve(y)&&!v&&!this.composing||f.isReadOnly()||f.options.disableInput||f.state.keySeq)return!1;var w=y.value;if(w==v&&!f.somethingSelected())return!1;if(a&&l>=9&&this.hasSelection===w||C&&/[\uf700-\uf7ff]/.test(w))return f.display.input.reset(),!1;if(f.doc.sel==f.display.selForContextMenu){var N=w.charCodeAt(0);if(N==8203&&!v&&(v=""),N==8666)return this.reset(),this.cm.execCommand("undo")}for(var F=0,K=Math.min(v.length,w.length);F<K&&v.charCodeAt(F)==w.charCodeAt(F);)++F;return bo(f,function(){N5(f,w.slice(F),v.length-F,null,s.composing?"*compose":null),w.length>1e3||w.indexOf(`
`)>-1?y.value=s.prevInput="":s.prevInput=w,s.composing&&(s.composing.range.clear(),s.composing.range=f.markText(s.composing.start,f.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Dr.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Dr.prototype.onKeyPress=function(){a&&l>=9&&(this.hasSelection=null),this.fastPoll()},Dr.prototype.onContextMenu=function(s){var f=this,y=f.cm,v=y.display,w=f.textarea;f.contextMenuPending&&f.contextMenuPending();var N=Kc(y,s),F=v.scroller.scrollTop;if(!N||h)return;var K=y.options.resetSelectionOnContextMenu;K&&y.doc.sel.contains(N)==-1&&ui(y,Ii)(y.doc,Is(N),ne);var q=w.style.cssText,Z=f.wrapper.style.cssText,ce=f.wrapper.offsetParent.getBoundingClientRect();f.wrapper.style.cssText="position: static",w.style.cssText=`position: absolute; width: 30px; height: 30px;
top: `+(s.clientY-ce.top-5)+"px; left: "+(s.clientX-ce.left-5)+`px;
z-index: 1000; background: `+(a?"rgba(255, 255, 255, .05)":"transparent")+`;
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var ye;c&&(ye=window.scrollY),v.input.focus(),c&&window.scrollTo(null,ye),v.input.reset(),y.somethingSelected()||(w.value=f.prevInput=" "),f.contextMenuPending=Re,v.selForContextMenu=y.doc.sel,clearTimeout(v.detectingSelectAll);function Fe(){if(w.selectionStart!=null){var ut=y.somethingSelected(),yt=""+(ut?w.value:"");w.value="⇚",w.value=yt,f.prevInput=ut?"":"",w.selectionStart=1,w.selectionEnd=yt.length,v.selForContextMenu=y.doc.sel}}function Re(){if(f.contextMenuPending==Re&&(f.contextMenuPending=!1,f.wrapper.style.cssText=Z,w.style.cssText=q,a&&l<9&&v.scrollbars.setScrollTop(v.scroller.scrollTop=F),w.selectionStart!=null)){(!a||a&&l<9)&&Fe();var ut=0,yt=function(){v.selForContextMenu==y.doc.sel&&w.selectionStart==0&&w.selectionEnd>0&&f.prevInput==""?ui(y,A6)(y):ut++<10?v.detectingSelectAll=setTimeout(yt,500):(v.selForContextMenu=null,v.input.reset())};v.detectingSelectAll=setTimeout(yt,200)}}if(a&&l>=9&&Fe(),I){en(s);var rt=function(){ie(window,"mouseup",rt),setTimeout(Re,20)};He(window,"mouseup",rt)}else setTimeout(Re,50)},Dr.prototype.readOnlyChanged=function(s){s||this.reset(),this.textarea.disabled=s=="nocursor",this.textarea.readOnly=!!s},Dr.prototype.setUneditable=function(){},Dr.prototype.needsContentAttribute=!1;function cV(s,f){if(f=f?P(f):{},f.value=s.value,!f.tabindex&&s.tabIndex&&(f.tabindex=s.tabIndex),!f.placeholder&&s.placeholder&&(f.placeholder=s.placeholder),f.autofocus==null){var y=W();f.autofocus=y==s||s.getAttribute("autofocus")!=null&&y==document.body}function v(){s.value=K.getValue()}var w;if(s.form&&(He(s.form,"submit",v),!f.leaveSubmitMethodAlone)){var N=s.form;w=N.submit;try{var F=N.submit=function(){v(),N.submit=w,N.submit(),N.submit=F}}catch{}}f.finishInit=function(q){q.save=v,q.getTextArea=function(){return s},q.toTextArea=function(){q.toTextArea=isNaN,v(),s.parentNode.removeChild(q.getWrapperElement()),s.style.display="",s.form&&(ie(s.form,"submit",v),!f.leaveSubmitMethodAlone&&typeof s.form.submit=="function"&&(s.form.submit=w))}},s.style.display="none";var K=pr(function(q){return s.parentNode.insertBefore(q,s.nextSibling)},f);return K}function uV(s){s.off=ie,s.on=He,s.wheelEventPixels=vK,s.Doc=eo,s.splitLines=we,s.countColumn=Y,s.findColumn=be,s.isWordChar=et,s.Pass=se,s.signal=xe,s.Line=rd,s.changeEnd=ks,s.scrollbarModel=s6,s.Pos=Ke,s.cmpPos=Ze,s.modes=st,s.mimeModes=at,s.resolveMode=ct,s.getMode=mt,s.modeExtensions=St,s.extendMode=Zt,s.copyState=Lt,s.startState=vt,s.innerMode=Pt,s.commands=X1,s.keyMap=ql,s.keyName=q6,s.isModifierKey=V6,s.lookupKey=gd,s.normalizeKeyMap=BK,s.StringStream=dt,s.SharedTextMarker=V1,s.TextMarker=Ns,s.LineWidget=K1,s.e_preventDefault=It,s.e_stopPropagation=Jt,s.e_stop=en,s.addClass=z,s.contains=H,s.rmClass=M,s.keyNames=As}tV(pr),oV(pr);var dV="iter insert remove copy getEditor constructor".split(" ");for(var T0 in eo.prototype)eo.prototype.hasOwnProperty(T0)&&Q(dV,T0)<0&&(pr.prototype[T0]=function(s){return function(){return s.apply(this.doc,arguments)}}(eo.prototype[T0]));return ht(eo),pr.inputStyles={textarea:Dr,contenteditable:Gn},pr.defineMode=function(s){!pr.defaults.mode&&s!="null"&&(pr.defaults.mode=s),it.apply(this,arguments)},pr.defineMIME=nt,pr.defineMode("null",function(){return{token:function(s){return s.skipToEnd()}}}),pr.defineMIME("text/plain","null"),pr.defineExtension=function(s,f){pr.prototype[s]=f},pr.defineDocExtension=function(s,f){eo.prototype[s]=f},pr.fromTextArea=cV,uV(pr),pr.version="5.65.3",pr},K2e=function(e){e.defineOption("placeholder","",function(l,c,u){var p=u&&u!=e.Init;if(c&&!p)l.on("blur",i),l.on("change",o),l.on("swapDoc",o),e.on(l.getInputField(),"compositionupdate",l.state.placeholderCompose=function(){r(l)}),o(l);else if(!c&&p){l.off("blur",i),l.off("change",o),l.off("swapDoc",o),e.off(l.getInputField(),"compositionupdate",l.state.placeholderCompose),t(l);var h=l.getWrapperElement();h.className=h.className.replace(" CodeMirror-empty","")}c&&!l.hasFocus()&&i(l)});function t(l){l.state.placeholder&&(l.state.placeholder.parentNode.removeChild(l.state.placeholder),l.state.placeholder=null)}function n(l){t(l);var c=l.state.placeholder=document.createElement("pre");c.style.cssText="height: 0; overflow: visible",c.style.direction=l.getOption("direction"),c.className="CodeMirror-placeholder CodeMirror-line-like";var u=l.getOption("placeholder");typeof u=="string"&&(u=document.createTextNode(u)),c.appendChild(u),l.display.lineSpace.insertBefore(c,l.display.lineSpace.firstChild)}function r(l){setTimeout(function(){var c=!1;if(l.lineCount()==1){var u=l.getInputField();c=u.nodeName=="TEXTAREA"?!l.getLine(0).length:!/[^\u200b]/.test(u.querySelector(".CodeMirror-line").textContent)}c?n(l):t(l)},20)}function i(l){a(l)&&n(l)}function o(l){var c=l.getWrapperElement(),u=a(l);c.className=c.className.replace(" CodeMirror-empty","")+(u?" CodeMirror-empty":""),u?n(l):t(l)}function a(l){return l.lineCount()===1&&l.getLine(0)===""}},V2e=function(e){var t=/^(\s*)(>[> ]*|[*+-] \[[x ]\]\s|[*+-]\s|(\d+)([.)]))(\s*)/,n=/^(\s*)(>[> ]*|[*+-] \[[x ]\]|[*+-]|(\d+)[.)])(\s*)$/,r=/[*+-]\s/;e.commands.newlineAndIndentContinueMarkdownList=function(o){if(o.getOption("disableInput"))return e.Pass;for(var a=o.listSelections(),l=[],c=0;c<a.length;c++){var u=a[c].head,p=o.getStateAfter(u.line),h=e.innerMode(o.getMode(),p);if(h.mode.name!=="markdown"&&h.mode.helperType!=="markdown"){o.execCommand("newlineAndIndent");return}else p=h.state;var m=p.list!==!1,g=p.quote!==0,b=o.getLine(u.line),E=t.exec(b),x=/^\s*$/.test(b.slice(0,u.ch));if(!a[c].empty()||!m&&!g||!E||x){o.execCommand("newlineAndIndent");return}if(n.test(b)){var S=g&&/>\s*$/.test(b),C=!/>\s*$/.test(b);(S||C)&&o.replaceRange("",{line:u.line,ch:0},{line:u.line,ch:u.ch+1}),l[c]=`
`}else{var _=E[1],O=E[5],k=!(r.test(E[2])||E[2].indexOf(">")>=0),T=k?parseInt(E[3],10)+1+E[4]:E[2].replace("x"," ");l[c]=`
`+_+T+O,k&&i(o,u)}}o.replaceSelections(l)};function i(o,a){var l=a.line,c=0,u=0,p=t.exec(o.getLine(l)),h=p[1];do{c+=1;var m=l+c,g=o.getLine(m),b=t.exec(g);if(b){var E=b[1],x=parseInt(p[3],10)+c-u,S=parseInt(b[3],10),C=S;if(h===E&&!isNaN(S))x===S&&(C=S+1),x>S&&(C=x+1),o.replaceRange(g.replace(t,E+C+b[4]+b[5]),{line:m,ch:0},{line:m,ch:g.length});else{if(h.length>E.length||h.length<E.length&&c===1)return;u+=1}}}while(b)}},G2e=function(e){e.overlayMode=function(t,n,r){return{startState:function(){return{base:e.startState(t),overlay:e.startState(n),basePos:0,baseCur:null,overlayPos:0,overlayCur:null,streamSeen:null}},copyState:function(i){return{base:e.copyState(t,i.base),overlay:e.copyState(n,i.overlay),basePos:i.basePos,baseCur:null,overlayPos:i.overlayPos,overlayCur:null}},token:function(i,o){return(i!=o.streamSeen||Math.min(o.basePos,o.overlayPos)<i.start)&&(o.streamSeen=i,o.basePos=o.overlayPos=i.start),i.start==o.basePos&&(o.baseCur=t.token(i,o.base),o.basePos=i.pos),i.start==o.overlayPos&&(i.pos=i.start,o.overlayCur=n.token(i,o.overlay),o.overlayPos=i.pos),i.pos=Math.min(o.basePos,o.overlayPos),o.overlayCur==null?o.baseCur:o.baseCur!=null&&o.overlay.combineTokens||r&&o.overlay.combineTokens==null?o.baseCur+" "+o.overlayCur:o.overlayCur},indent:t.indent&&function(i,o,a){return t.indent(i.base,o,a)},electricChars:t.electricChars,innerMode:function(i){return{state:i.base,mode:t}},blankLine:function(i){var o,a;return t.blankLine&&(o=t.blankLine(i.base)),n.blankLine&&(a=n.blankLine(i.overlay)),a==null?o:r&&o!=null?o+" "+a:a}}}},q2e=function(e){var t=/^((?:(?:aaas?|about|acap|adiumxtra|af[ps]|aim|apt|attachment|aw|beshare|bitcoin|bolo|callto|cap|chrome(?:-extension)?|cid|coap|com-eventbrite-attendee|content|crid|cvs|data|dav|dict|dlna-(?:playcontainer|playsingle)|dns|doi|dtn|dvb|ed2k|facetime|feed|file|finger|fish|ftp|geo|gg|git|gizmoproject|go|gopher|gtalk|h323|hcp|https?|iax|icap|icon|im|imap|info|ipn|ipp|irc[6s]?|iris(?:\.beep|\.lwz|\.xpc|\.xpcs)?|itms|jar|javascript|jms|keyparc|lastfm|ldaps?|magnet|mailto|maps|market|message|mid|mms|ms-help|msnim|msrps?|mtqp|mumble|mupdate|mvn|news|nfs|nih?|nntp|notes|oid|opaquelocktoken|palm|paparazzi|platform|pop|pres|proxy|psyc|query|res(?:ource)?|rmi|rsync|rtmp|rtsp|secondlife|service|session|sftp|sgn|shttp|sieve|sips?|skype|sm[bs]|snmp|soap\.beeps?|soldat|spotify|ssh|steam|svn|tag|teamspeak|tel(?:net)?|tftp|things|thismessage|tip|tn3270|tv|udp|unreal|urn|ut2004|vemmi|ventrilo|view-source|webcal|wss?|wtai|wyciwyg|xcon(?:-userid)?|xfire|xmlrpc\.beeps?|xmpp|xri|ymsgr|z39\.50[rs]?):(?:\/{1,3}|[a-z0-9%])|www\d{0,3}[.]|[a-z0-9.\-]+[.][a-z]{2,4}\/)(?:[^\s()<>]|\([^\s()<>]*\))+(?:\([^\s()<>]*\)|[^\s`*!()\[\]{};:'".,<>?«»“”‘’]))/i;e.defineMode("gfm",function(n,r){var i=0;function o(u){return u.code=!1,null}var a={startState:function(){return{code:!1,codeBlock:!1,ateSpace:!1}},copyState:function(u){return{code:u.code,codeBlock:u.codeBlock,ateSpace:u.ateSpace}},token:function(u,p){if(p.combineTokens=null,p.codeBlock)return u.match(/^```+/)?(p.codeBlock=!1,null):(u.skipToEnd(),null);if(u.sol()&&(p.code=!1),u.sol()&&u.match(/^```+/))return u.skipToEnd(),p.codeBlock=!0,null;if(u.peek()==="`"){u.next();var h=u.pos;u.eatWhile("`");var m=1+u.pos-h;return p.code?m===i&&(p.code=!1):(i=m,p.code=!0),null}else if(p.code)return u.next(),null;if(u.eatSpace())return p.ateSpace=!0,null;if((u.sol()||p.ateSpace)&&(p.ateSpace=!1,r.gitHubSpice!==!1)){if(u.match(/^(?:[a-zA-Z0-9\-_]+\/)?(?:[a-zA-Z0-9\-_]+@)?(?=.{0,6}\d)(?:[a-f0-9]{7,40}\b)/))return p.combineTokens=!0,"link";if(u.match(/^(?:[a-zA-Z0-9\-_]+\/)?(?:[a-zA-Z0-9\-_]+)?#[0-9]+\b/))return p.combineTokens=!0,"link"}return u.match(t)&&u.string.slice(u.start-2,u.start)!="]("&&(u.start==0||/\W/.test(u.string.charAt(u.start-1)))?(p.combineTokens=!0,"link"):(u.next(),null)},blankLine:o},l={taskLists:!0,strikethrough:!0,emoji:!0};for(var c in r)l[c]=r[c];return l.name="markdown",e.overlayMode(e.getMode(n,l),a)},"markdown"),e.defineMIME("text/x-gfm","gfm")},X2e=function(e){e.defineMode("markdown",function(t,n){var r=e.getMode(t,"text/html"),i=r.name=="null";function o(A){if(e.findModeByName){var P=e.findModeByName(A);P&&(A=P.mime||P.mimes[0])}var Y=e.getMode(t,A);return Y.name=="null"?null:Y}n.highlightFormatting===void 0&&(n.highlightFormatting=!1),n.maxBlockquoteDepth===void 0&&(n.maxBlockquoteDepth=0),n.taskLists===void 0&&(n.taskLists=!1),n.strikethrough===void 0&&(n.strikethrough=!1),n.emoji===void 0&&(n.emoji=!1),n.fencedCodeBlockHighlighting===void 0&&(n.fencedCodeBlockHighlighting=!0),n.fencedCodeBlockDefaultMode===void 0&&(n.fencedCodeBlockDefaultMode="text/plain"),n.xml===void 0&&(n.xml=!0),n.tokenTypeOverrides===void 0&&(n.tokenTypeOverrides={});var a={header:"header",code:"comment",quote:"quote",list1:"variable-2",list2:"variable-3",list3:"keyword",hr:"hr",image:"image",imageAltText:"image-alt-text",imageMarker:"image-marker",formatting:"formatting",linkInline:"link",linkEmail:"link",linkText:"link",linkHref:"string",em:"em",strong:"strong",strikethrough:"strikethrough",emoji:"builtin"};for(var l in a)a.hasOwnProperty(l)&&n.tokenTypeOverrides[l]&&(a[l]=n.tokenTypeOverrides[l]);var c=/^([*\-_])(?:\s*\1){2,}\s*$/,u=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,p=/^\[(x| )\](?=\s)/i,h=n.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,m=/^ {0,3}(?:\={1,}|-{2,})\s*$/,g=/^[^#!\[\]*_\\<>` "'(~:]+/,b=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,E=/^\s*\[[^\]]+?\]:.*$/,x=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E42\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC9\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDF3C-\uDF3E]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]/,S=" ";function C(A,P,Y){return P.f=P.inline=Y,Y(A,P)}function _(A,P,Y){return P.f=P.block=Y,Y(A,P)}function O(A){return!A||!/\S/.test(A.string)}function k(A){if(A.linkTitle=!1,A.linkHref=!1,A.linkText=!1,A.em=!1,A.strong=!1,A.strikethrough=!1,A.quote=0,A.indentedCode=!1,A.f==I){var P=i;if(!P){var Y=e.innerMode(r,A.htmlState);P=Y.mode.name=="xml"&&Y.state.tagStart===null&&!Y.state.context&&Y.state.tokenize.isInText}P&&(A.f=j,A.block=T,A.htmlState=null)}return A.trailingSpace=0,A.trailingSpaceNewLine=!1,A.prevLine=A.thisLine,A.thisLine={stream:null},null}function T(A,P){var Y=A.column()===P.indentation,U=O(P.prevLine.stream),Q=P.indentedCode,ee=P.prevLine.hr,se=P.list!==!1,ne=(P.listStack[P.listStack.length-1]||0)+3;P.indentedCode=!1;var oe=P.indentation;if(P.indentationDiff===null&&(P.indentationDiff=P.indentation,se)){for(P.list=null;oe<P.listStack[P.listStack.length-1];)P.listStack.pop(),P.listStack.length?P.indentation=P.listStack[P.listStack.length-1]:P.list=!1;P.list!==!1&&(P.indentationDiff=oe-P.listStack[P.listStack.length-1])}var pe=!U&&!ee&&!P.prevLine.header&&(!se||!Q)&&!P.prevLine.fencedCodeEnd,be=(P.list===!1||ee||U)&&P.indentation<=ne&&A.match(c),ue=null;if(P.indentationDiff>=4&&(Q||P.prevLine.fencedCodeEnd||P.prevLine.header||U))return A.skipToEnd(),P.indentedCode=!0,a.code;if(A.eatSpace())return null;if(Y&&P.indentation<=ne&&(ue=A.match(h))&&ue[1].length<=6)return P.quote=0,P.header=ue[1].length,P.thisLine.header=!0,n.highlightFormatting&&(P.formatting="header"),P.f=P.inline,M(P);if(P.indentation<=ne&&A.eat(">"))return P.quote=Y?1:P.quote+1,n.highlightFormatting&&(P.formatting="quote"),A.eatSpace(),M(P);if(!be&&!P.setext&&Y&&P.indentation<=ne&&(ue=A.match(u))){var de=ue[1]?"ol":"ul";return P.indentation=oe+A.current().length,P.list=!0,P.quote=0,P.listStack.push(P.indentation),P.em=!1,P.strong=!1,P.code=!1,P.strikethrough=!1,n.taskLists&&A.match(p,!1)&&(P.taskList=!0),P.f=P.inline,n.highlightFormatting&&(P.formatting=["list","list-"+de]),M(P)}else{if(Y&&P.indentation<=ne&&(ue=A.match(b,!0)))return P.quote=0,P.fencedEndRE=new RegExp(ue[1]+"+ *$"),P.localMode=n.fencedCodeBlockHighlighting&&o(ue[2]||n.fencedCodeBlockDefaultMode),P.localMode&&(P.localState=e.startState(P.localMode)),P.f=P.block=$,n.highlightFormatting&&(P.formatting="code-block"),P.code=-1,M(P);if(P.setext||(!pe||!se)&&!P.quote&&P.list===!1&&!P.code&&!be&&!E.test(A.string)&&(ue=A.lookAhead(1))&&(ue=ue.match(m)))return P.setext?(P.header=P.setext,P.setext=0,A.skipToEnd(),n.highlightFormatting&&(P.formatting="header")):(P.header=ue[0].charAt(0)=="="?1:2,P.setext=P.header),P.thisLine.header=!0,P.f=P.inline,M(P);if(be)return A.skipToEnd(),P.hr=!0,P.thisLine.hr=!0,a.hr;if(A.peek()==="[")return C(A,P,W)}return C(A,P,P.inline)}function I(A,P){var Y=r.token(A,P.htmlState);if(!i){var U=e.innerMode(r,P.htmlState);(U.mode.name=="xml"&&U.state.tagStart===null&&!U.state.context&&U.state.tokenize.isInText||P.md_inside&&A.current().indexOf(">")>-1)&&(P.f=j,P.block=T,P.htmlState=null)}return Y}function $(A,P){var Y=P.listStack[P.listStack.length-1]||0,U=P.indentation<Y,Q=Y+3;if(P.fencedEndRE&&P.indentation<=Q&&(U||A.match(P.fencedEndRE))){n.highlightFormatting&&(P.formatting="code-block");var ee;return U||(ee=M(P)),P.localMode=P.localState=null,P.block=T,P.f=j,P.fencedEndRE=null,P.code=0,P.thisLine.fencedCodeEnd=!0,U?_(A,P,P.block):ee}else return P.localMode?P.localMode.token(A,P.localState):(A.skipToEnd(),a.code)}function M(A){var P=[];if(A.formatting){P.push(a.formatting),typeof A.formatting=="string"&&(A.formatting=[A.formatting]);for(var Y=0;Y<A.formatting.length;Y++)P.push(a.formatting+"-"+A.formatting[Y]),A.formatting[Y]==="header"&&P.push(a.formatting+"-"+A.formatting[Y]+"-"+A.header),A.formatting[Y]==="quote"&&(!n.maxBlockquoteDepth||n.maxBlockquoteDepth>=A.quote?P.push(a.formatting+"-"+A.formatting[Y]+"-"+A.quote):P.push("error"))}if(A.taskOpen)return P.push("meta"),P.length?P.join(" "):null;if(A.taskClosed)return P.push("property"),P.length?P.join(" "):null;if(A.linkHref?P.push(a.linkHref,"url"):(A.strong&&P.push(a.strong),A.em&&P.push(a.em),A.strikethrough&&P.push(a.strikethrough),A.emoji&&P.push(a.emoji),A.linkText&&P.push(a.linkText),A.code&&P.push(a.code),A.image&&P.push(a.image),A.imageAltText&&P.push(a.imageAltText,"link"),A.imageMarker&&P.push(a.imageMarker)),A.header&&P.push(a.header,a.header+"-"+A.header),A.quote&&(P.push(a.quote),!n.maxBlockquoteDepth||n.maxBlockquoteDepth>=A.quote?P.push(a.quote+"-"+A.quote):P.push(a.quote+"-"+n.maxBlockquoteDepth)),A.list!==!1){var U=(A.listStack.length-1)%3;U?U===1?P.push(a.list2):P.push(a.list3):P.push(a.list1)}return A.trailingSpaceNewLine?P.push("trailing-space-new-line"):A.trailingSpace&&P.push("trailing-space-"+(A.trailingSpace%2?"a":"b")),P.length?P.join(" "):null}function R(A,P){if(A.match(g,!0))return M(P)}function j(A,P){var Y=P.text(A,P);if(typeof Y<"u")return Y;if(P.list)return P.list=null,M(P);if(P.taskList){var U=A.match(p,!0)[1]===" ";return U?P.taskOpen=!0:P.taskClosed=!0,n.highlightFormatting&&(P.formatting="task"),P.taskList=!1,M(P)}if(P.taskOpen=!1,P.taskClosed=!1,P.header&&A.match(/^#+$/,!0))return n.highlightFormatting&&(P.formatting="header"),M(P);var Q=A.next();if(P.linkTitle){P.linkTitle=!1;var ee=Q;Q==="("&&(ee=")"),ee=(ee+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var se="^\\s*(?:[^"+ee+"\\\\]+|\\\\\\\\|\\\\.)"+ee;if(A.match(new RegExp(se),!0))return a.linkHref}if(Q==="`"){var ne=P.formatting;n.highlightFormatting&&(P.formatting="code"),A.eatWhile("`");var oe=A.current().length;if(P.code==0&&(!P.quote||oe==1))return P.code=oe,M(P);if(oe==P.code){var pe=M(P);return P.code=0,pe}else return P.formatting=ne,M(P)}else if(P.code)return M(P);if(Q==="\\"&&(A.next(),n.highlightFormatting)){var be=M(P),ue=a.formatting+"-escape";return be?be+" "+ue:ue}if(Q==="!"&&A.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return P.imageMarker=!0,P.image=!0,n.highlightFormatting&&(P.formatting="image"),M(P);if(Q==="["&&P.imageMarker&&A.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return P.imageMarker=!1,P.imageAltText=!0,n.highlightFormatting&&(P.formatting="image"),M(P);if(Q==="]"&&P.imageAltText){n.highlightFormatting&&(P.formatting="image");var be=M(P);return P.imageAltText=!1,P.image=!1,P.inline=P.f=L,be}if(Q==="["&&!P.image)return P.linkText&&A.match(/^.*?\]/)||(P.linkText=!0,n.highlightFormatting&&(P.formatting="link")),M(P);if(Q==="]"&&P.linkText){n.highlightFormatting&&(P.formatting="link");var be=M(P);return P.linkText=!1,P.inline=P.f=A.match(/\(.*?\)| ?\[.*?\]/,!1)?L:j,be}if(Q==="<"&&A.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){P.f=P.inline=D,n.highlightFormatting&&(P.formatting="link");var be=M(P);return be?be+=" ":be="",be+a.linkInline}if(Q==="<"&&A.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){P.f=P.inline=D,n.highlightFormatting&&(P.formatting="link");var be=M(P);return be?be+=" ":be="",be+a.linkEmail}if(n.xml&&Q==="<"&&A.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var de=A.string.indexOf(">",A.pos);if(de!=-1){var re=A.string.substring(A.start,de);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(re)&&(P.md_inside=!0)}return A.backUp(1),P.htmlState=e.startState(r),_(A,P,I)}if(n.xml&&Q==="<"&&A.match(/^\/\w*?>/))return P.md_inside=!1,"tag";if(Q==="*"||Q==="_"){for(var me=1,ge=A.pos==1?" ":A.string.charAt(A.pos-2);me<3&&A.eat(Q);)me++;var Ae=A.peek()||" ",De=!/\s/.test(Ae)&&(!x.test(Ae)||/\s/.test(ge)||x.test(ge)),ze=!/\s/.test(ge)&&(!x.test(ge)||/\s/.test(Ae)||x.test(Ae)),et=null,Ie=null;if(me%2&&(!P.em&&De&&(Q==="*"||!ze||x.test(ge))?et=!0:P.em==Q&&ze&&(Q==="*"||!De||x.test(Ae))&&(et=!1)),me>1&&(!P.strong&&De&&(Q==="*"||!ze||x.test(ge))?Ie=!0:P.strong==Q&&ze&&(Q==="*"||!De||x.test(Ae))&&(Ie=!1)),Ie!=null||et!=null){n.highlightFormatting&&(P.formatting=et==null?"strong":Ie==null?"em":"strong em"),et===!0&&(P.em=Q),Ie===!0&&(P.strong=Q);var pe=M(P);return et===!1&&(P.em=!1),Ie===!1&&(P.strong=!1),pe}}else if(Q===" "&&(A.eat("*")||A.eat("_"))){if(A.peek()===" ")return M(P);A.backUp(1)}if(n.strikethrough){if(Q==="~"&&A.eatWhile(Q)){if(P.strikethrough){n.highlightFormatting&&(P.formatting="strikethrough");var pe=M(P);return P.strikethrough=!1,pe}else if(A.match(/^[^\s]/,!1))return P.strikethrough=!0,n.highlightFormatting&&(P.formatting="strikethrough"),M(P)}else if(Q===" "&&A.match("~~",!0)){if(A.peek()===" ")return M(P);A.backUp(2)}}if(n.emoji&&Q===":"&&A.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){P.emoji=!0,n.highlightFormatting&&(P.formatting="emoji");var Te=M(P);return P.emoji=!1,Te}return Q===" "&&(A.match(/^ +$/,!1)?P.trailingSpace++:P.trailingSpace&&(P.trailingSpaceNewLine=!0)),M(P)}function D(A,P){var Y=A.next();if(Y===">"){P.f=P.inline=j,n.highlightFormatting&&(P.formatting="link");var U=M(P);return U?U+=" ":U="",U+a.linkInline}return A.match(/^[^>]+/,!0),a.linkInline}function L(A,P){if(A.eatSpace())return null;var Y=A.next();return Y==="("||Y==="["?(P.f=P.inline=H(Y==="("?")":"]"),n.highlightFormatting&&(P.formatting="link-string"),P.linkHref=!0,M(P)):"error"}var B={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function H(A){return function(P,Y){var U=P.next();if(U===A){Y.f=Y.inline=j,n.highlightFormatting&&(Y.formatting="link-string");var Q=M(Y);return Y.linkHref=!1,Q}return P.match(B[A]),Y.linkHref=!0,M(Y)}}function W(A,P){return A.match(/^([^\]\\]|\\.)*\]:/,!1)?(P.f=z,A.next(),n.highlightFormatting&&(P.formatting="link"),P.linkText=!0,M(P)):C(A,P,j)}function z(A,P){if(A.match("]:",!0)){P.f=P.inline=V,n.highlightFormatting&&(P.formatting="link");var Y=M(P);return P.linkText=!1,Y}return A.match(/^([^\]\\]|\\.)+/,!0),a.linkText}function V(A,P){return A.eatSpace()?null:(A.match(/^[^\s]+/,!0),A.peek()===void 0?P.linkTitle=!0:A.match(/^(?:\s+(?:"(?:[^"\\]|\\.)+"|'(?:[^'\\]|\\.)+'|\((?:[^)\\]|\\.)+\)))?/,!0),P.f=P.inline=j,a.linkHref+" url")}var X={startState:function(){return{f:T,prevLine:{stream:null},thisLine:{stream:null},block:T,htmlState:null,indentation:0,inline:j,text:R,formatting:!1,linkText:!1,linkHref:!1,linkTitle:!1,code:0,em:!1,strong:!1,header:0,setext:0,hr:!1,taskList:!1,list:!1,listStack:[],quote:0,trailingSpace:0,trailingSpaceNewLine:!1,strikethrough:!1,emoji:!1,fencedEndRE:null}},copyState:function(A){return{f:A.f,prevLine:A.prevLine,thisLine:A.thisLine,block:A.block,htmlState:A.htmlState&&e.copyState(r,A.htmlState),indentation:A.indentation,localMode:A.localMode,localState:A.localMode?e.copyState(A.localMode,A.localState):null,inline:A.inline,text:A.text,formatting:!1,linkText:A.linkText,linkTitle:A.linkTitle,linkHref:A.linkHref,code:A.code,em:A.em,strong:A.strong,strikethrough:A.strikethrough,emoji:A.emoji,header:A.header,setext:A.setext,hr:A.hr,taskList:A.taskList,list:A.list,listStack:A.listStack.slice(0),quote:A.quote,indentedCode:A.indentedCode,trailingSpace:A.trailingSpace,trailingSpaceNewLine:A.trailingSpaceNewLine,md_inside:A.md_inside,fencedEndRE:A.fencedEndRE}},token:function(A,P){if(P.formatting=!1,A!=P.thisLine.stream){if(P.header=0,P.hr=!1,A.match(/^\s*$/,!0))return k(P),null;if(P.prevLine=P.thisLine,P.thisLine={stream:A},P.taskList=!1,P.trailingSpace=0,P.trailingSpaceNewLine=!1,!P.localState&&(P.f=P.block,P.f!=I)){var Y=A.match(/^\s*/,!0)[0].replace(/\t/g,S).length;if(P.indentation=Y,P.indentationDiff=null,Y>0)return null}}return P.f(A,P)},innerMode:function(A){return A.block==I?{state:A.htmlState,mode:r}:A.localState?{state:A.localState,mode:A.localMode}:{state:A,mode:X}},indent:function(A,P,Y){return A.block==I&&r.indent?r.indent(A.htmlState,P,Y):A.localState&&A.localMode.indent?A.localMode.indent(A.localState,P,Y):e.Pass},blankLine:k,getType:M,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return X},"xml"),e.defineMIME("text/markdown","markdown"),e.defineMIME("text/x-markdown","markdown")},Y2e=function(e){var t={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},n={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};e.defineMode("xml",function(r,i){var o=r.indentUnit,a={},l=i.htmlMode?t:n;for(var c in l)a[c]=l[c];for(var c in i)a[c]=i[c];var u,p;function h(L,B){function H(V){return B.tokenize=V,V(L,B)}var W=L.next();if(W=="<")return L.eat("!")?L.eat("[")?L.match("CDATA[")?H(b("atom","]]>")):null:L.match("--")?H(b("comment","-->")):L.match("DOCTYPE",!0,!0)?(L.eatWhile(/[\w\._\-]/),H(E(1))):null:L.eat("?")?(L.eatWhile(/[\w\._\-]/),B.tokenize=b("meta","?>"),"meta"):(u=L.eat("/")?"closeTag":"openTag",B.tokenize=m,"tag bracket");if(W=="&"){var z;return L.eat("#")?L.eat("x")?z=L.eatWhile(/[a-fA-F\d]/)&&L.eat(";"):z=L.eatWhile(/[\d]/)&&L.eat(";"):z=L.eatWhile(/[\w\.\-:]/)&&L.eat(";"),z?"atom":"error"}else return L.eatWhile(/[^&<]/),null}h.isInText=!0;function m(L,B){var H=L.next();if(H==">"||H=="/"&&L.eat(">"))return B.tokenize=h,u=H==">"?"endTag":"selfcloseTag","tag bracket";if(H=="=")return u="equals",null;if(H=="<"){B.tokenize=h,B.state=O,B.tagName=B.tagStart=null;var W=B.tokenize(L,B);return W?W+" tag error":"tag error"}else return/[\'\"]/.test(H)?(B.tokenize=g(H),B.stringStartCol=L.column(),B.tokenize(L,B)):(L.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function g(L){var B=function(H,W){for(;!H.eol();)if(H.next()==L){W.tokenize=m;break}return"string"};return B.isInAttribute=!0,B}function b(L,B){return function(H,W){for(;!H.eol();){if(H.match(B)){W.tokenize=h;break}H.next()}return L}}function E(L){return function(B,H){for(var W;(W=B.next())!=null;){if(W=="<")return H.tokenize=E(L+1),H.tokenize(B,H);if(W==">")if(L==1){H.tokenize=h;break}else return H.tokenize=E(L-1),H.tokenize(B,H)}return"meta"}}function x(L){return L&&L.toLowerCase()}function S(L,B,H){this.prev=L.context,this.tagName=B||"",this.indent=L.indented,this.startOfLine=H,(a.doNotIndent.hasOwnProperty(B)||L.context&&L.context.noIndent)&&(this.noIndent=!0)}function C(L){L.context&&(L.context=L.context.prev)}function _(L,B){for(var H;;){if(!L.context||(H=L.context.tagName,!a.contextGrabbers.hasOwnProperty(x(H))||!a.contextGrabbers[x(H)].hasOwnProperty(x(B))))return;C(L)}}function O(L,B,H){return L=="openTag"?(H.tagStart=B.column(),k):L=="closeTag"?T:O}function k(L,B,H){return L=="word"?(H.tagName=B.current(),p="tag",M):a.allowMissingTagName&&L=="endTag"?(p="tag bracket",M(L,B,H)):(p="error",k)}function T(L,B,H){if(L=="word"){var W=B.current();return H.context&&H.context.tagName!=W&&a.implicitlyClosed.hasOwnProperty(x(H.context.tagName))&&C(H),H.context&&H.context.tagName==W||a.matchClosing===!1?(p="tag",I):(p="tag error",$)}else return a.allowMissingTagName&&L=="endTag"?(p="tag bracket",I(L,B,H)):(p="error",$)}function I(L,B,H){return L!="endTag"?(p="error",I):(C(H),O)}function $(L,B,H){return p="error",I(L,B,H)}function M(L,B,H){if(L=="word")return p="attribute",R;if(L=="endTag"||L=="selfcloseTag"){var W=H.tagName,z=H.tagStart;return H.tagName=H.tagStart=null,L=="selfcloseTag"||a.autoSelfClosers.hasOwnProperty(x(W))?_(H,W):(_(H,W),H.context=new S(H,W,z==H.indented)),O}return p="error",M}function R(L,B,H){return L=="equals"?j:(a.allowMissing||(p="error"),M(L,B,H))}function j(L,B,H){return L=="string"?D:L=="word"&&a.allowUnquoted?(p="string",M):(p="error",M(L,B,H))}function D(L,B,H){return L=="string"?D:M(L,B,H)}return{startState:function(L){var B={tokenize:h,state:O,indented:L||0,tagName:null,tagStart:null,context:null};return L!=null&&(B.baseIndent=L),B},token:function(L,B){if(!B.tagName&&L.sol()&&(B.indented=L.indentation()),L.eatSpace())return null;u=null;var H=B.tokenize(L,B);return(H||u)&&H!="comment"&&(p=null,B.state=B.state(u||H,L,B),p&&(H=p=="error"?H+" error":p)),H},indent:function(L,B,H){var W=L.context;if(L.tokenize.isInAttribute)return L.tagStart==L.indented?L.stringStartCol+1:L.indented+o;if(W&&W.noIndent)return e.Pass;if(L.tokenize!=m&&L.tokenize!=h)return H?H.match(/^(\s*)/)[0].length:0;if(L.tagName)return a.multilineTagIndentPastTag!==!1?L.tagStart+L.tagName.length+2:L.tagStart+o*(a.multilineTagIndentFactor||1);if(a.alignCDATA&&/<!\[CDATA\[/.test(B))return 0;var z=B&&/^<(\/)?([\w_:\.-]*)/.exec(B);if(z&&z[1])for(;W;)if(W.tagName==z[2]){W=W.prev;break}else if(a.implicitlyClosed.hasOwnProperty(x(W.tagName)))W=W.prev;else break;else if(z)for(;W;){var V=a.contextGrabbers[x(W.tagName)];if(V&&V.hasOwnProperty(x(z[2])))W=W.prev;else break}for(;W&&W.prev&&!W.startOfLine;)W=W.prev;return W?W.indent+o:L.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:a.htmlMode?"html":"xml",helperType:a.htmlMode?"html":"xml",skipAttribute:function(L){L.state==j&&(L.state=M)},xmlCurrentTag:function(L){return L.tagName?{name:L.tagName,close:L.type=="closeTag"}:null},xmlCurrentContext:function(L){for(var B=[],H=L.context;H;H=H.prev)B.push(H.tagName);return B.reverse()}}}),e.defineMIME("text/xml","xml"),e.defineMIME("application/xml","xml"),e.mimeModes.hasOwnProperty("text/html")||e.defineMIME("text/html",{name:"xml",htmlMode:!0})},Q2e=function(e){var t=0,n=1,r=2;e.defineMode("yaml-frontmatter",function(i,o){var a=e.getMode(i,"yaml"),l=e.getMode(i,o&&o.base||"gfm");function c(u){return u.state==n?{mode:a,state:u.yaml}:{mode:l,state:u.inner}}return{startState:function(){return{state:t,yaml:null,inner:e.startState(l)}},copyState:function(u){return{state:u.state,yaml:u.yaml&&e.copyState(a,u.yaml),inner:e.copyState(l,u.inner)}},token:function(u,p){if(p.state==t)return u.match("---",!1)?(p.state=n,p.yaml=e.startState(a),a.token(u,p.yaml)):(p.state=r,l.token(u,p.inner));if(p.state==n){var h=u.sol()&&u.match(/(---|\.\.\.)/,!1),m=a.token(u,p.yaml);return h&&(p.state=r,p.yaml=null),m}else return l.token(u,p.inner)},innerMode:c,indent:function(u,p,h){var m=c(u);return m.mode.indent?m.mode.indent(m.state,p,h):e.Pass},blankLine:function(u){var p=c(u);if(p.mode.blankLine)return p.mode.blankLine(p.state)}}})},Z2e=function(e){e.defineMode("yaml",function(){var t=["true","false","on","off","yes","no"],n=new RegExp("\\b(("+t.join(")|(")+"))$","i");return{token:function(r,i){var o=r.peek(),a=i.escaped;if(i.escaped=!1,o=="#"&&(r.pos==0||/\s/.test(r.string.charAt(r.pos-1))))return r.skipToEnd(),"comment";if(r.match(/^('([^']|\\.)*'?|"([^"]|\\.)*"?)/))return"string";if(i.literal&&r.indentation()>i.keyCol)return r.skipToEnd(),"string";if(i.literal&&(i.literal=!1),r.sol()){if(i.keyCol=0,i.pair=!1,i.pairStart=!1,r.match("---")||r.match("..."))return"def";if(r.match(/\s*-\s+/))return"meta"}if(r.match(/^(\{|\}|\[|\])/))return o=="{"?i.inlinePairs++:o=="}"?i.inlinePairs--:o=="["?i.inlineList++:i.inlineList--,"meta";if(i.inlineList>0&&!a&&o==",")return r.next(),"meta";if(i.inlinePairs>0&&!a&&o==",")return i.keyCol=0,i.pair=!1,i.pairStart=!1,r.next(),"meta";if(i.pairStart){if(r.match(/^\s*(\||\>)\s*/))return i.literal=!0,"meta";if(r.match(/^\s*(\&|\*)[a-z0-9\._-]+\b/i))return"variable-2";if(i.inlinePairs==0&&r.match(/^\s*-?[0-9\.\,]+\s?$/)||i.inlinePairs>0&&r.match(/^\s*-?[0-9\.\,]+\s?(?=(,|}))/))return"number";if(r.match(n))return"keyword"}return!i.pair&&r.match(/^\s*(?:[,\[\]{}&*!|>'"%@`][^\s'":]|[^,\[\]{}#&*!|>'"%@`])[^#]*?(?=\s*:($|\s))/)?(i.pair=!0,i.keyCol=r.indentation(),"atom"):i.pair&&r.match(/^:\s*/)?(i.pairStart=!0,"meta"):(i.pairStart=!1,i.escaped=o=="\\",r.next(),null)},startState:function(){return{pair:!1,pairStart:!1,keyCol:0,inlinePairs:0,inlineList:0,literal:!1,escaped:!1}},lineComment:"#",fold:"indent"}}),e.defineMIME("text/x-yaml","yaml"),e.defineMIME("text/yaml","yaml")};var J2e=function(e){e===void 0&&(e={});var t=e.accept;t===void 0&&(t="");var n=e.capture;n===void 0&&(n=!1);var r=e.multiple;r===void 0&&(r=!1);var i=document.createElement("input");return i.type="file",i.accept=t,i.capture=n,i.multiple=r,i},UH=function(e){return new Promise(function(t){var n=J2e(e);n.addEventListener("change",function(){return t(n.files||null)}),setTimeout(function(){var r=new MouseEvent("click");n.dispatchEvent(r)},0)})},e5e=/[a-zA-Z0-9_\u0392-\u03c9\u00c0-\u00ff\u0600-\u06ff]+|[\u4e00-\u9fff\u3400-\u4dbf\uf900-\ufaff\u3040-\u309f\uac00-\ud7af]+/g,t5e=function(e){var t=e.match(e5e),n=0;if(!t)return 0;for(var r=0;r<t.length;r++)t[r].charCodeAt(0)>=19968?n+=t[r].length:n+=1;return n};const n5e=dl(t5e),q8=function(e){if(e==null)return a5e;if(typeof e=="string")return o5e(e);if(typeof e=="object")return Array.isArray(e)?r5e(e):i5e(e);if(typeof e=="function")return k2(e);throw new Error("Expected function, string, or object as test")};function r5e(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=q8(e[n]);return k2(r);function r(...i){let o=-1;for(;++o<t.length;)if(t[o].call(this,...i))return!0;return!1}}function i5e(e){return k2(t);function t(n){let r;for(r in e)if(n[r]!==e[r])return!1;return!0}}function o5e(e){return k2(t);function t(n){return n&&n.type===e}}function k2(e){return t;function t(n,...r){return!!(n&&typeof n=="object"&&"type"in n&&e.call(this,n,...r))}}function a5e(){return!0}const l5e=!0,i$=!1,s5e="skip",KH=function(e,t,n,r){typeof t=="function"&&typeof n!="function"&&(r=n,n=t,t=null);const i=q8(t),o=r?-1:1;a(e,void 0,[])();function a(l,c,u){const p=l&&typeof l=="object"?l:{};if(typeof p.type=="string"){const m=typeof p.tagName=="string"?p.tagName:typeof p.name=="string"?p.name:void 0;Object.defineProperty(h,"name",{value:"node ("+(l.type+(m?"<"+m+">":""))+")"})}return h;function h(){let m=[],g,b,E;if((!t||i(l,c,u[u.length-1]||null))&&(m=c5e(n(l,u)),m[0]===i$))return m;if(l.children&&m[0]!==s5e)for(b=(r?l.children.length:-1)+o,E=u.concat(l);b>-1&&b<l.children.length;){if(g=a(l.children[b],b,E)(),g[0]===i$)return g;b=typeof g[1]=="number"?g[1]:b+o}return m}}};function c5e(e){return Array.isArray(e)?e:typeof e=="number"?[l5e,e]:[e]}const Km=function(e,t,n,r){typeof t=="function"&&typeof n!="function"&&(r=n,n=t,t=null),KH(e,t,i,r);function i(o,a){const l=a[a.length-1];return n(o,l?l.children.indexOf(o):null,l)}};var Mo="top",$a="bottom",Na="right",Po="left",X8="auto",Vm=[Mo,$a,Na,Po],Qf="start",lm="end",u5e="clippingParents",VH="viewport",Sp="popper",d5e="reference",o$=Vm.reduce(function(e,t){return e.concat([t+"-"+Qf,t+"-"+lm])},[]),GH=[].concat(Vm,[X8]).reduce(function(e,t){return e.concat([t,t+"-"+Qf,t+"-"+lm])},[]),f5e="beforeRead",p5e="read",h5e="afterRead",m5e="beforeMain",g5e="main",v5e="afterMain",y5e="beforeWrite",b5e="write",C5e="afterWrite",S5e=[f5e,p5e,h5e,m5e,g5e,v5e,y5e,b5e,C5e];function Bl(e){return e?(e.nodeName||"").toLowerCase():null}function ra(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function zu(e){var t=ra(e).Element;return e instanceof t||e instanceof Element}function Ea(e){var t=ra(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Y8(e){if(typeof ShadowRoot>"u")return!1;var t=ra(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function E5e(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},i=t.attributes[n]||{},o=t.elements[n];!Ea(o)||!Bl(o)||(Object.assign(o.style,r),Object.keys(i).forEach(function(a){var l=i[a];l===!1?o.removeAttribute(a):o.setAttribute(a,l===!0?"":l)}))})}function x5e(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var i=t.elements[r],o=t.attributes[r]||{},a=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),l=a.reduce(function(c,u){return c[u]="",c},{});!Ea(i)||!Bl(i)||(Object.assign(i.style,l),Object.keys(o).forEach(function(c){i.removeAttribute(c)}))})}}const qH={name:"applyStyles",enabled:!0,phase:"write",fn:E5e,effect:x5e,requires:["computeStyles"]};function Al(e){return e.split("-")[0]}var ku=Math.max,$y=Math.min,Zf=Math.round;function WE(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function XH(){return!/^((?!chrome|android).)*safari/i.test(WE())}function Jf(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,o=1;t&&Ea(e)&&(i=e.offsetWidth>0&&Zf(r.width)/e.offsetWidth||1,o=e.offsetHeight>0&&Zf(r.height)/e.offsetHeight||1);var a=zu(e)?ra(e):window,l=a.visualViewport,c=!XH()&&n,u=(r.left+(c&&l?l.offsetLeft:0))/i,p=(r.top+(c&&l?l.offsetTop:0))/o,h=r.width/i,m=r.height/o;return{width:h,height:m,top:p,right:u+h,bottom:p+m,left:u,x:u,y:p}}function Q8(e){var t=Jf(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function YH(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Y8(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function bs(e){return ra(e).getComputedStyle(e)}function w5e(e){return["table","td","th"].indexOf(Bl(e))>=0}function Dc(e){return((zu(e)?e.ownerDocument:e.document)||window.document).documentElement}function $2(e){return Bl(e)==="html"?e:e.assignedSlot||e.parentNode||(Y8(e)?e.host:null)||Dc(e)}function a$(e){return!Ea(e)||bs(e).position==="fixed"?null:e.offsetParent}function _5e(e){var t=/firefox/i.test(WE()),n=/Trident/i.test(WE());if(n&&Ea(e)){var r=bs(e);if(r.position==="fixed")return null}var i=$2(e);for(Y8(i)&&(i=i.host);Ea(i)&&["html","body"].indexOf(Bl(i))<0;){var o=bs(i);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||t&&o.willChange==="filter"||t&&o.filter&&o.filter!=="none")return i;i=i.parentNode}return null}function Gm(e){for(var t=ra(e),n=a$(e);n&&w5e(n)&&bs(n).position==="static";)n=a$(n);return n&&(Bl(n)==="html"||Bl(n)==="body"&&bs(n).position==="static")?t:n||_5e(e)||t}function Z8(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function sh(e,t,n){return ku(e,$y(t,n))}function T5e(e,t,n){var r=sh(e,t,n);return r>n?n:r}function QH(){return{top:0,right:0,bottom:0,left:0}}function ZH(e){return Object.assign({},QH(),e)}function JH(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var O5e=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,ZH(typeof t!="number"?t:JH(t,Vm))};function I5e(e){var t,n=e.state,r=e.name,i=e.options,o=n.elements.arrow,a=n.modifiersData.popperOffsets,l=Al(n.placement),c=Z8(l),u=[Po,Na].indexOf(l)>=0,p=u?"height":"width";if(!(!o||!a)){var h=O5e(i.padding,n),m=Q8(o),g=c==="y"?Mo:Po,b=c==="y"?$a:Na,E=n.rects.reference[p]+n.rects.reference[c]-a[c]-n.rects.popper[p],x=a[c]-n.rects.reference[c],S=Gm(o),C=S?c==="y"?S.clientHeight||0:S.clientWidth||0:0,_=E/2-x/2,O=h[g],k=C-m[p]-h[b],T=C/2-m[p]/2+_,I=sh(O,T,k),$=c;n.modifiersData[r]=(t={},t[$]=I,t.centerOffset=I-T,t)}}function k5e(e){var t=e.state,n=e.options,r=n.element,i=r===void 0?"[data-popper-arrow]":r;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||YH(t.elements.popper,i)&&(t.elements.arrow=i))}const $5e={name:"arrow",enabled:!0,phase:"main",fn:I5e,effect:k5e,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function e1(e){return e.split("-")[1]}var N5e={top:"auto",right:"auto",bottom:"auto",left:"auto"};function A5e(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:Zf(n*i)/i||0,y:Zf(r*i)/i||0}}function l$(e){var t,n=e.popper,r=e.popperRect,i=e.placement,o=e.variation,a=e.offsets,l=e.position,c=e.gpuAcceleration,u=e.adaptive,p=e.roundOffsets,h=e.isFixed,m=a.x,g=m===void 0?0:m,b=a.y,E=b===void 0?0:b,x=typeof p=="function"?p({x:g,y:E}):{x:g,y:E};g=x.x,E=x.y;var S=a.hasOwnProperty("x"),C=a.hasOwnProperty("y"),_=Po,O=Mo,k=window;if(u){var T=Gm(n),I="clientHeight",$="clientWidth";if(T===ra(n)&&(T=Dc(n),bs(T).position!=="static"&&l==="absolute"&&(I="scrollHeight",$="scrollWidth")),T=T,i===Mo||(i===Po||i===Na)&&o===lm){O=$a;var M=h&&T===k&&k.visualViewport?k.visualViewport.height:T[I];E-=M-r.height,E*=c?1:-1}if(i===Po||(i===Mo||i===$a)&&o===lm){_=Na;var R=h&&T===k&&k.visualViewport?k.visualViewport.width:T[$];g-=R-r.width,g*=c?1:-1}}var j=Object.assign({position:l},u&&N5e),D=p===!0?A5e({x:g,y:E},ra(n)):{x:g,y:E};if(g=D.x,E=D.y,c){var L;return Object.assign({},j,(L={},L[O]=C?"0":"",L[_]=S?"0":"",L.transform=(k.devicePixelRatio||1)<=1?"translate("+g+"px, "+E+"px)":"translate3d("+g+"px, "+E+"px, 0)",L))}return Object.assign({},j,(t={},t[O]=C?E+"px":"",t[_]=S?g+"px":"",t.transform="",t))}function R5e(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0?!0:r,o=n.adaptive,a=o===void 0?!0:o,l=n.roundOffsets,c=l===void 0?!0:l,u={placement:Al(t.placement),variation:e1(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,l$(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,l$(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const M5e={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:R5e,data:{}};var mg={passive:!0};function P5e(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,o=i===void 0?!0:i,a=r.resize,l=a===void 0?!0:a,c=ra(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&u.forEach(function(p){p.addEventListener("scroll",n.update,mg)}),l&&c.addEventListener("resize",n.update,mg),function(){o&&u.forEach(function(p){p.removeEventListener("scroll",n.update,mg)}),l&&c.removeEventListener("resize",n.update,mg)}}const L5e={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:P5e,data:{}};var D5e={left:"right",right:"left",bottom:"top",top:"bottom"};function vv(e){return e.replace(/left|right|bottom|top/g,function(t){return D5e[t]})}var F5e={start:"end",end:"start"};function s$(e){return e.replace(/start|end/g,function(t){return F5e[t]})}function J8(e){var t=ra(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function ew(e){return Jf(Dc(e)).left+J8(e).scrollLeft}function B5e(e,t){var n=ra(e),r=Dc(e),i=n.visualViewport,o=r.clientWidth,a=r.clientHeight,l=0,c=0;if(i){o=i.width,a=i.height;var u=XH();(u||!u&&t==="fixed")&&(l=i.offsetLeft,c=i.offsetTop)}return{width:o,height:a,x:l+ew(e),y:c}}function j5e(e){var t,n=Dc(e),r=J8(e),i=(t=e.ownerDocument)==null?void 0:t.body,o=ku(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=ku(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),l=-r.scrollLeft+ew(e),c=-r.scrollTop;return bs(i||n).direction==="rtl"&&(l+=ku(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:l,y:c}}function tw(e){var t=bs(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function ez(e){return["html","body","#document"].indexOf(Bl(e))>=0?e.ownerDocument.body:Ea(e)&&tw(e)?e:ez($2(e))}function ch(e,t){var n;t===void 0&&(t=[]);var r=ez(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),o=ra(r),a=i?[o].concat(o.visualViewport||[],tw(r)?r:[]):r,l=t.concat(a);return i?l:l.concat(ch($2(a)))}function UE(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function H5e(e,t){var n=Jf(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function c$(e,t,n){return t===VH?UE(B5e(e,n)):zu(t)?H5e(t,n):UE(j5e(Dc(e)))}function z5e(e){var t=ch($2(e)),n=["absolute","fixed"].indexOf(bs(e).position)>=0,r=n&&Ea(e)?Gm(e):e;return zu(r)?t.filter(function(i){return zu(i)&&YH(i,r)&&Bl(i)!=="body"}):[]}function W5e(e,t,n,r){var i=t==="clippingParents"?z5e(e):[].concat(t),o=[].concat(i,[n]),a=o[0],l=o.reduce(function(c,u){var p=c$(e,u,r);return c.top=ku(p.top,c.top),c.right=$y(p.right,c.right),c.bottom=$y(p.bottom,c.bottom),c.left=ku(p.left,c.left),c},c$(e,a,r));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function tz(e){var t=e.reference,n=e.element,r=e.placement,i=r?Al(r):null,o=r?e1(r):null,a=t.x+t.width/2-n.width/2,l=t.y+t.height/2-n.height/2,c;switch(i){case Mo:c={x:a,y:t.y-n.height};break;case $a:c={x:a,y:t.y+t.height};break;case Na:c={x:t.x+t.width,y:l};break;case Po:c={x:t.x-n.width,y:l};break;default:c={x:t.x,y:t.y}}var u=i?Z8(i):null;if(u!=null){var p=u==="y"?"height":"width";switch(o){case Qf:c[u]=c[u]-(t[p]/2-n[p]/2);break;case lm:c[u]=c[u]+(t[p]/2-n[p]/2);break}}return c}function sm(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,o=n.strategy,a=o===void 0?e.strategy:o,l=n.boundary,c=l===void 0?u5e:l,u=n.rootBoundary,p=u===void 0?VH:u,h=n.elementContext,m=h===void 0?Sp:h,g=n.altBoundary,b=g===void 0?!1:g,E=n.padding,x=E===void 0?0:E,S=ZH(typeof x!="number"?x:JH(x,Vm)),C=m===Sp?d5e:Sp,_=e.rects.popper,O=e.elements[b?C:m],k=W5e(zu(O)?O:O.contextElement||Dc(e.elements.popper),c,p,a),T=Jf(e.elements.reference),I=tz({reference:T,element:_,strategy:"absolute",placement:i}),$=UE(Object.assign({},_,I)),M=m===Sp?$:T,R={top:k.top-M.top+S.top,bottom:M.bottom-k.bottom+S.bottom,left:k.left-M.left+S.left,right:M.right-k.right+S.right},j=e.modifiersData.offset;if(m===Sp&&j){var D=j[i];Object.keys(R).forEach(function(L){var B=[Na,$a].indexOf(L)>=0?1:-1,H=[Mo,$a].indexOf(L)>=0?"y":"x";R[L]+=D[H]*B})}return R}function U5e(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,o=n.rootBoundary,a=n.padding,l=n.flipVariations,c=n.allowedAutoPlacements,u=c===void 0?GH:c,p=e1(r),h=p?l?o$:o$.filter(function(b){return e1(b)===p}):Vm,m=h.filter(function(b){return u.indexOf(b)>=0});m.length===0&&(m=h);var g=m.reduce(function(b,E){return b[E]=sm(e,{placement:E,boundary:i,rootBoundary:o,padding:a})[Al(E)],b},{});return Object.keys(g).sort(function(b,E){return g[b]-g[E]})}function K5e(e){if(Al(e)===X8)return[];var t=vv(e);return[s$(e),t,s$(t)]}function V5e(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,o=i===void 0?!0:i,a=n.altAxis,l=a===void 0?!0:a,c=n.fallbackPlacements,u=n.padding,p=n.boundary,h=n.rootBoundary,m=n.altBoundary,g=n.flipVariations,b=g===void 0?!0:g,E=n.allowedAutoPlacements,x=t.options.placement,S=Al(x),C=S===x,_=c||(C||!b?[vv(x)]:K5e(x)),O=[x].concat(_).reduce(function(Q,ee){return Q.concat(Al(ee)===X8?U5e(t,{placement:ee,boundary:p,rootBoundary:h,padding:u,flipVariations:b,allowedAutoPlacements:E}):ee)},[]),k=t.rects.reference,T=t.rects.popper,I=new Map,$=!0,M=O[0],R=0;R<O.length;R++){var j=O[R],D=Al(j),L=e1(j)===Qf,B=[Mo,$a].indexOf(D)>=0,H=B?"width":"height",W=sm(t,{placement:j,boundary:p,rootBoundary:h,altBoundary:m,padding:u}),z=B?L?Na:Po:L?$a:Mo;k[H]>T[H]&&(z=vv(z));var V=vv(z),X=[];if(o&&X.push(W[D]<=0),l&&X.push(W[z]<=0,W[V]<=0),X.every(function(Q){return Q})){M=j,$=!1;break}I.set(j,X)}if($)for(var A=b?3:1,P=function(ee){var se=O.find(function(ne){var oe=I.get(ne);if(oe)return oe.slice(0,ee).every(function(pe){return pe})});if(se)return M=se,"break"},Y=A;Y>0;Y--){var U=P(Y);if(U==="break")break}t.placement!==M&&(t.modifiersData[r]._skip=!0,t.placement=M,t.reset=!0)}}const G5e={name:"flip",enabled:!0,phase:"main",fn:V5e,requiresIfExists:["offset"],data:{_skip:!1}};function u$(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function d$(e){return[Mo,Na,$a,Po].some(function(t){return e[t]>=0})}function q5e(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,a=sm(t,{elementContext:"reference"}),l=sm(t,{altBoundary:!0}),c=u$(a,r),u=u$(l,i,o),p=d$(c),h=d$(u);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:u,isReferenceHidden:p,hasPopperEscaped:h},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":p,"data-popper-escaped":h})}const X5e={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:q5e};function Y5e(e,t,n){var r=Al(e),i=[Po,Mo].indexOf(r)>=0?-1:1,o=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,a=o[0],l=o[1];return a=a||0,l=(l||0)*i,[Po,Na].indexOf(r)>=0?{x:l,y:a}:{x:a,y:l}}function Q5e(e){var t=e.state,n=e.options,r=e.name,i=n.offset,o=i===void 0?[0,0]:i,a=GH.reduce(function(p,h){return p[h]=Y5e(h,t.rects,o),p},{}),l=a[t.placement],c=l.x,u=l.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=a}const Z5e={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Q5e};function J5e(e){var t=e.state,n=e.name;t.modifiersData[n]=tz({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const e4e={name:"popperOffsets",enabled:!0,phase:"read",fn:J5e,data:{}};function t4e(e){return e==="x"?"y":"x"}function n4e(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,o=i===void 0?!0:i,a=n.altAxis,l=a===void 0?!1:a,c=n.boundary,u=n.rootBoundary,p=n.altBoundary,h=n.padding,m=n.tether,g=m===void 0?!0:m,b=n.tetherOffset,E=b===void 0?0:b,x=sm(t,{boundary:c,rootBoundary:u,padding:h,altBoundary:p}),S=Al(t.placement),C=e1(t.placement),_=!C,O=Z8(S),k=t4e(O),T=t.modifiersData.popperOffsets,I=t.rects.reference,$=t.rects.popper,M=typeof E=="function"?E(Object.assign({},t.rects,{placement:t.placement})):E,R=typeof M=="number"?{mainAxis:M,altAxis:M}:Object.assign({mainAxis:0,altAxis:0},M),j=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,D={x:0,y:0};if(T){if(o){var L,B=O==="y"?Mo:Po,H=O==="y"?$a:Na,W=O==="y"?"height":"width",z=T[O],V=z+x[B],X=z-x[H],A=g?-$[W]/2:0,P=C===Qf?I[W]:$[W],Y=C===Qf?-$[W]:-I[W],U=t.elements.arrow,Q=g&&U?Q8(U):{width:0,height:0},ee=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:QH(),se=ee[B],ne=ee[H],oe=sh(0,I[W],Q[W]),pe=_?I[W]/2-A-oe-se-R.mainAxis:P-oe-se-R.mainAxis,be=_?-I[W]/2+A+oe+ne+R.mainAxis:Y+oe+ne+R.mainAxis,ue=t.elements.arrow&&Gm(t.elements.arrow),de=ue?O==="y"?ue.clientTop||0:ue.clientLeft||0:0,re=(L=j==null?void 0:j[O])!=null?L:0,me=z+pe-re-de,ge=z+be-re,Ae=sh(g?$y(V,me):V,z,g?ku(X,ge):X);T[O]=Ae,D[O]=Ae-z}if(l){var De,ze=O==="x"?Mo:Po,et=O==="x"?$a:Na,Ie=T[k],Te=k==="y"?"height":"width",Ue=Ie+x[ze],Le=Ie-x[et],je=[Mo,Po].indexOf(S)!==-1,Ge=(De=j==null?void 0:j[k])!=null?De:0,qe=je?Ue:Ie-I[Te]-$[Te]-Ge+R.altAxis,Ce=je?Ie+I[Te]+$[Te]-Ge-R.altAxis:Le,ke=g&&je?T5e(qe,Ie,Ce):sh(g?qe:Ue,Ie,g?Ce:Le);T[k]=ke,D[k]=ke-Ie}t.modifiersData[r]=D}}const r4e={name:"preventOverflow",enabled:!0,phase:"main",fn:n4e,requiresIfExists:["offset"]};function i4e(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function o4e(e){return e===ra(e)||!Ea(e)?J8(e):i4e(e)}function a4e(e){var t=e.getBoundingClientRect(),n=Zf(t.width)/e.offsetWidth||1,r=Zf(t.height)/e.offsetHeight||1;return n!==1||r!==1}function l4e(e,t,n){n===void 0&&(n=!1);var r=Ea(t),i=Ea(t)&&a4e(t),o=Dc(t),a=Jf(e,i,n),l={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&((Bl(t)!=="body"||tw(o))&&(l=o4e(t)),Ea(t)?(c=Jf(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):o&&(c.x=ew(o))),{x:a.left+l.scrollLeft-c.x,y:a.top+l.scrollTop-c.y,width:a.width,height:a.height}}function s4e(e){var t=new Map,n=new Set,r=[];e.forEach(function(o){t.set(o.name,o)});function i(o){n.add(o.name);var a=[].concat(o.requires||[],o.requiresIfExists||[]);a.forEach(function(l){if(!n.has(l)){var c=t.get(l);c&&i(c)}}),r.push(o)}return e.forEach(function(o){n.has(o.name)||i(o)}),r}function c4e(e){var t=s4e(e);return S5e.reduce(function(n,r){return n.concat(t.filter(function(i){return i.phase===r}))},[])}function u4e(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function d4e(e){var t=e.reduce(function(n,r){var i=n[r.name];return n[r.name]=i?Object.assign({},i,r,{options:Object.assign({},i.options,r.options),data:Object.assign({},i.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var f$={placement:"bottom",modifiers:[],strategy:"absolute"};function p$(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function f4e(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,i=t.defaultOptions,o=i===void 0?f$:i;return function(l,c,u){u===void 0&&(u=o);var p={placement:"bottom",orderedModifiers:[],options:Object.assign({},f$,o),modifiersData:{},elements:{reference:l,popper:c},attributes:{},styles:{}},h=[],m=!1,g={state:p,setOptions:function(S){var C=typeof S=="function"?S(p.options):S;E(),p.options=Object.assign({},o,p.options,C),p.scrollParents={reference:zu(l)?ch(l):l.contextElement?ch(l.contextElement):[],popper:ch(c)};var _=c4e(d4e([].concat(r,p.options.modifiers)));return p.orderedModifiers=_.filter(function(O){return O.enabled}),b(),g.update()},forceUpdate:function(){if(!m){var S=p.elements,C=S.reference,_=S.popper;if(p$(C,_)){p.rects={reference:l4e(C,Gm(_),p.options.strategy==="fixed"),popper:Q8(_)},p.reset=!1,p.placement=p.options.placement,p.orderedModifiers.forEach(function(R){return p.modifiersData[R.name]=Object.assign({},R.data)});for(var O=0;O<p.orderedModifiers.length;O++){if(p.reset===!0){p.reset=!1,O=-1;continue}var k=p.orderedModifiers[O],T=k.fn,I=k.options,$=I===void 0?{}:I,M=k.name;typeof T=="function"&&(p=T({state:p,options:$,name:M,instance:g})||p)}}}},update:u4e(function(){return new Promise(function(x){g.forceUpdate(),x(p)})}),destroy:function(){E(),m=!0}};if(!p$(l,c))return g;g.setOptions(u).then(function(x){!m&&u.onFirstUpdate&&u.onFirstUpdate(x)});function b(){p.orderedModifiers.forEach(function(x){var S=x.name,C=x.options,_=C===void 0?{}:C,O=x.effect;if(typeof O=="function"){var k=O({state:p,name:S,instance:g,options:_}),T=function(){};h.push(k||T)}})}function E(){h.forEach(function(x){return x()}),h=[]}return g}}var p4e=[L5e,e4e,M5e,qH,Z5e,G5e,r4e,$5e,X5e],h4e=f4e({defaultModifiers:p4e}),m4e="tippy-box",nz="tippy-content",g4e="tippy-backdrop",rz="tippy-arrow",iz="tippy-svg-arrow",Zs={passive:!0,capture:!0},oz=function(){return document.body};function w9(e,t,n){if(Array.isArray(e)){var r=e[t];return r??(Array.isArray(n)?n[t]:n)}return e}function nw(e,t){var n={}.toString.call(e);return n.indexOf("[object")===0&&n.indexOf(t+"]")>-1}function az(e,t){return typeof e=="function"?e.apply(void 0,t):e}function h$(e,t){if(t===0)return e;var n;return function(r){clearTimeout(n),n=setTimeout(function(){e(r)},t)}}function v4e(e,t){var n=Object.assign({},e);return t.forEach(function(r){delete n[r]}),n}function y4e(e){return e.split(/\s+/).filter(Boolean)}function pu(e){return[].concat(e)}function m$(e,t){e.indexOf(t)===-1&&e.push(t)}function b4e(e){return e.filter(function(t,n){return e.indexOf(t)===n})}function C4e(e){return e.split("-")[0]}function Ny(e){return[].slice.call(e)}function g$(e){return Object.keys(e).reduce(function(t,n){return e[n]!==void 0&&(t[n]=e[n]),t},{})}function uh(){return document.createElement("div")}function N2(e){return["Element","Fragment"].some(function(t){return nw(e,t)})}function S4e(e){return nw(e,"NodeList")}function E4e(e){return nw(e,"MouseEvent")}function x4e(e){return!!(e&&e._tippy&&e._tippy.reference===e)}function w4e(e){return N2(e)?[e]:S4e(e)?Ny(e):Array.isArray(e)?e:Ny(document.querySelectorAll(e))}function _9(e,t){e.forEach(function(n){n&&(n.style.transitionDuration=t+"ms")})}function v$(e,t){e.forEach(function(n){n&&n.setAttribute("data-state",t)})}function _4e(e){var t,n=pu(e),r=n[0];return r!=null&&(t=r.ownerDocument)!=null&&t.body?r.ownerDocument:document}function T4e(e,t){var n=t.clientX,r=t.clientY;return e.every(function(i){var o=i.popperRect,a=i.popperState,l=i.props,c=l.interactiveBorder,u=C4e(a.placement),p=a.modifiersData.offset;if(!p)return!0;var h=u==="bottom"?p.top.y:0,m=u==="top"?p.bottom.y:0,g=u==="right"?p.left.x:0,b=u==="left"?p.right.x:0,E=o.top-r+h>c,x=r-o.bottom-m>c,S=o.left-n+g>c,C=n-o.right-b>c;return E||x||S||C})}function T9(e,t,n){var r=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(i){e[r](i,n)})}function y$(e,t){for(var n=t;n;){var r;if(e.contains(n))return!0;n=n.getRootNode==null||(r=n.getRootNode())==null?void 0:r.host}return!1}var _l={isTouch:!1},b$=0;function O4e(){_l.isTouch||(_l.isTouch=!0,window.performance&&document.addEventListener("mousemove",lz))}function lz(){var e=performance.now();e-b$<20&&(_l.isTouch=!1,document.removeEventListener("mousemove",lz)),b$=e}function I4e(){var e=document.activeElement;if(x4e(e)){var t=e._tippy;e.blur&&!t.state.isVisible&&e.blur()}}function k4e(){document.addEventListener("touchstart",O4e,Zs),window.addEventListener("blur",I4e)}var $4e=typeof window<"u"&&typeof document<"u",N4e=$4e?!!window.msCrypto:!1,A4e={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},R4e={allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999},Zo=Object.assign({appendTo:oz,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},A4e,R4e),M4e=Object.keys(Zo),P4e=function(t){var n=Object.keys(t);n.forEach(function(r){Zo[r]=t[r]})};function sz(e){var t=e.plugins||[],n=t.reduce(function(r,i){var o=i.name,a=i.defaultValue;if(o){var l;r[o]=e[o]!==void 0?e[o]:(l=Zo[o])!=null?l:a}return r},{});return Object.assign({},e,n)}function L4e(e,t){var n=t?Object.keys(sz(Object.assign({},Zo,{plugins:t}))):M4e,r=n.reduce(function(i,o){var a=(e.getAttribute("data-tippy-"+o)||"").trim();if(!a)return i;if(o==="content")i[o]=a;else try{i[o]=JSON.parse(a)}catch{i[o]=a}return i},{});return r}function C$(e,t){var n=Object.assign({},t,{content:az(t.content,[e])},t.ignoreAttributes?{}:L4e(e,t.plugins));return n.aria=Object.assign({},Zo.aria,n.aria),n.aria={expanded:n.aria.expanded==="auto"?t.interactive:n.aria.expanded,content:n.aria.content==="auto"?t.interactive?null:"describedby":n.aria.content},n}var D4e=function(){return"innerHTML"};function KE(e,t){e[D4e()]=t}function S$(e){var t=uh();return e===!0?t.className=rz:(t.className=iz,N2(e)?t.appendChild(e):KE(t,e)),t}function E$(e,t){N2(t.content)?(KE(e,""),e.appendChild(t.content)):typeof t.content!="function"&&(t.allowHTML?KE(e,t.content):e.textContent=t.content)}function VE(e){var t=e.firstElementChild,n=Ny(t.children);return{box:t,content:n.find(function(r){return r.classList.contains(nz)}),arrow:n.find(function(r){return r.classList.contains(rz)||r.classList.contains(iz)}),backdrop:n.find(function(r){return r.classList.contains(g4e)})}}function cz(e){var t=uh(),n=uh();n.className=m4e,n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var r=uh();r.className=nz,r.setAttribute("data-state","hidden"),E$(r,e.props),t.appendChild(n),n.appendChild(r),i(e.props,e.props);function i(o,a){var l=VE(t),c=l.box,u=l.content,p=l.arrow;a.theme?c.setAttribute("data-theme",a.theme):c.removeAttribute("data-theme"),typeof a.animation=="string"?c.setAttribute("data-animation",a.animation):c.removeAttribute("data-animation"),a.inertia?c.setAttribute("data-inertia",""):c.removeAttribute("data-inertia"),c.style.maxWidth=typeof a.maxWidth=="number"?a.maxWidth+"px":a.maxWidth,a.role?c.setAttribute("role",a.role):c.removeAttribute("role"),(o.content!==a.content||o.allowHTML!==a.allowHTML)&&E$(u,e.props),a.arrow?p?o.arrow!==a.arrow&&(c.removeChild(p),c.appendChild(S$(a.arrow))):c.appendChild(S$(a.arrow)):p&&c.removeChild(p)}return{popper:t,onUpdate:i}}cz.$$tippy=!0;var F4e=1,gg=[],O9=[];function B4e(e,t){var n=C$(e,Object.assign({},Zo,sz(g$(t)))),r,i,o,a=!1,l=!1,c=!1,u=!1,p,h,m,g=[],b=h$(me,n.interactiveDebounce),E,x=F4e++,S=null,C=b4e(n.plugins),_={isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},O={id:x,reference:e,popper:uh(),popperInstance:S,props:n,state:_,plugins:C,clearDelayTimeouts:qe,setProps:Ce,setContent:ke,show:We,hide:Pe,hideWithInteractivity:Be,enable:je,disable:Ge,unmount:He,destroy:Qe};if(!n.render)return O;var k=n.render(O),T=k.popper,I=k.onUpdate;T.setAttribute("data-tippy-root",""),T.id="tippy-"+O.id,O.popper=T,e._tippy=O,T._tippy=O;var $=C.map(function(ie){return ie.fn(O)}),M=e.hasAttribute("aria-expanded");return ue(),A(),z(),V("onCreate",[O]),n.showOnCreate&&Ue(),T.addEventListener("mouseenter",function(){O.props.interactive&&O.state.isVisible&&O.clearDelayTimeouts()}),T.addEventListener("mouseleave",function(){O.props.interactive&&O.props.trigger.indexOf("mouseenter")>=0&&B().addEventListener("mousemove",b)}),O;function R(){var ie=O.props.touch;return Array.isArray(ie)?ie:[ie,0]}function j(){return R()[0]==="hold"}function D(){var ie;return!!((ie=O.props.render)!=null&&ie.$$tippy)}function L(){return E||e}function B(){var ie=L().parentNode;return ie?_4e(ie):document}function H(){return VE(T)}function W(ie){return O.state.isMounted&&!O.state.isVisible||_l.isTouch||p&&p.type==="focus"?0:w9(O.props.delay,ie?0:1,Zo.delay)}function z(ie){ie===void 0&&(ie=!1),T.style.pointerEvents=O.props.interactive&&!ie?"":"none",T.style.zIndex=""+O.props.zIndex}function V(ie,xe,Ne){if(Ne===void 0&&(Ne=!0),$.forEach(function(Ye){Ye[ie]&&Ye[ie].apply(Ye,xe)}),Ne){var $e;($e=O.props)[ie].apply($e,xe)}}function X(){var ie=O.props.aria;if(ie.content){var xe="aria-"+ie.content,Ne=T.id,$e=pu(O.props.triggerTarget||e);$e.forEach(function(Ye){var ht=Ye.getAttribute(xe);if(O.state.isVisible)Ye.setAttribute(xe,ht?ht+" "+Ne:Ne);else{var It=ht&&ht.replace(Ne,"").trim();It?Ye.setAttribute(xe,It):Ye.removeAttribute(xe)}})}}function A(){if(!(M||!O.props.aria.expanded)){var ie=pu(O.props.triggerTarget||e);ie.forEach(function(xe){O.props.interactive?xe.setAttribute("aria-expanded",O.state.isVisible&&xe===L()?"true":"false"):xe.removeAttribute("aria-expanded")})}}function P(){B().removeEventListener("mousemove",b),gg=gg.filter(function(ie){return ie!==b})}function Y(ie){if(!(_l.isTouch&&(c||ie.type==="mousedown"))){var xe=ie.composedPath&&ie.composedPath()[0]||ie.target;if(!(O.props.interactive&&y$(T,xe))){if(pu(O.props.triggerTarget||e).some(function(Ne){return y$(Ne,xe)})){if(_l.isTouch||O.state.isVisible&&O.props.trigger.indexOf("click")>=0)return}else V("onClickOutside",[O,ie]);O.props.hideOnClick===!0&&(O.clearDelayTimeouts(),O.hide(),l=!0,setTimeout(function(){l=!1}),O.state.isMounted||se())}}}function U(){c=!0}function Q(){c=!1}function ee(){var ie=B();ie.addEventListener("mousedown",Y,!0),ie.addEventListener("touchend",Y,Zs),ie.addEventListener("touchstart",Q,Zs),ie.addEventListener("touchmove",U,Zs)}function se(){var ie=B();ie.removeEventListener("mousedown",Y,!0),ie.removeEventListener("touchend",Y,Zs),ie.removeEventListener("touchstart",Q,Zs),ie.removeEventListener("touchmove",U,Zs)}function ne(ie,xe){pe(ie,function(){!O.state.isVisible&&T.parentNode&&T.parentNode.contains(T)&&xe()})}function oe(ie,xe){pe(ie,xe)}function pe(ie,xe){var Ne=H().box;function $e(Ye){Ye.target===Ne&&(T9(Ne,"remove",$e),xe())}if(ie===0)return xe();T9(Ne,"remove",h),T9(Ne,"add",$e),h=$e}function be(ie,xe,Ne){Ne===void 0&&(Ne=!1);var $e=pu(O.props.triggerTarget||e);$e.forEach(function(Ye){Ye.addEventListener(ie,xe,Ne),g.push({node:Ye,eventType:ie,handler:xe,options:Ne})})}function ue(){j()&&(be("touchstart",re,{passive:!0}),be("touchend",ge,{passive:!0})),y4e(O.props.trigger).forEach(function(ie){if(ie!=="manual")switch(be(ie,re),ie){case"mouseenter":be("mouseleave",ge);break;case"focus":be(N4e?"focusout":"blur",Ae);break;case"focusin":be("focusout",Ae);break}})}function de(){g.forEach(function(ie){var xe=ie.node,Ne=ie.eventType,$e=ie.handler,Ye=ie.options;xe.removeEventListener(Ne,$e,Ye)}),g=[]}function re(ie){var xe,Ne=!1;if(!(!O.state.isEnabled||De(ie)||l)){var $e=((xe=p)==null?void 0:xe.type)==="focus";p=ie,E=ie.currentTarget,A(),!O.state.isVisible&&E4e(ie)&&gg.forEach(function(Ye){return Ye(ie)}),ie.type==="click"&&(O.props.trigger.indexOf("mouseenter")<0||a)&&O.props.hideOnClick!==!1&&O.state.isVisible?Ne=!0:Ue(ie),ie.type==="click"&&(a=!Ne),Ne&&!$e&&Le(ie)}}function me(ie){var xe=ie.target,Ne=L().contains(xe)||T.contains(xe);if(!(ie.type==="mousemove"&&Ne)){var $e=Te().concat(T).map(function(Ye){var ht,It=Ye._tippy,Jt=(ht=It.popperInstance)==null?void 0:ht.state;return Jt?{popperRect:Ye.getBoundingClientRect(),popperState:Jt,props:n}:null}).filter(Boolean);T4e($e,ie)&&(P(),Le(ie))}}function ge(ie){var xe=De(ie)||O.props.trigger.indexOf("click")>=0&&a;if(!xe){if(O.props.interactive){O.hideWithInteractivity(ie);return}Le(ie)}}function Ae(ie){O.props.trigger.indexOf("focusin")<0&&ie.target!==L()||O.props.interactive&&ie.relatedTarget&&T.contains(ie.relatedTarget)||Le(ie)}function De(ie){return _l.isTouch?j()!==ie.type.indexOf("touch")>=0:!1}function ze(){et();var ie=O.props,xe=ie.popperOptions,Ne=ie.placement,$e=ie.offset,Ye=ie.getReferenceClientRect,ht=ie.moveTransition,It=D()?VE(T).arrow:null,Jt=Ye?{getBoundingClientRect:Ye,contextElement:Ye.contextElement||L()}:e,Vt={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(Gt){var Ft=Gt.state;if(D()){var bt=H(),gt=bt.box;["placement","reference-hidden","escaped"].forEach(function(ft){ft==="placement"?gt.setAttribute("data-placement",Ft.placement):Ft.attributes.popper["data-popper-"+ft]?gt.setAttribute("data-"+ft,""):gt.removeAttribute("data-"+ft)}),Ft.attributes.popper={}}}},en=[{name:"offset",options:{offset:$e}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!ht}},Vt];D()&&It&&en.push({name:"arrow",options:{element:It,padding:3}}),en.push.apply(en,(xe==null?void 0:xe.modifiers)||[]),O.popperInstance=h4e(Jt,T,Object.assign({},xe,{placement:Ne,onFirstUpdate:m,modifiers:en}))}function et(){O.popperInstance&&(O.popperInstance.destroy(),O.popperInstance=null)}function Ie(){var ie=O.props.appendTo,xe,Ne=L();O.props.interactive&&ie===oz||ie==="parent"?xe=Ne.parentNode:xe=az(ie,[Ne]),xe.contains(T)||xe.appendChild(T),O.state.isMounted=!0,ze()}function Te(){return Ny(T.querySelectorAll("[data-tippy-root]"))}function Ue(ie){O.clearDelayTimeouts(),ie&&V("onTrigger",[O,ie]),ee();var xe=W(!0),Ne=R(),$e=Ne[0],Ye=Ne[1];_l.isTouch&&$e==="hold"&&Ye&&(xe=Ye),xe?r=setTimeout(function(){O.show()},xe):O.show()}function Le(ie){if(O.clearDelayTimeouts(),V("onUntrigger",[O,ie]),!O.state.isVisible){se();return}if(!(O.props.trigger.indexOf("mouseenter")>=0&&O.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(ie.type)>=0&&a)){var xe=W(!1);xe?i=setTimeout(function(){O.state.isVisible&&O.hide()},xe):o=requestAnimationFrame(function(){O.hide()})}}function je(){O.state.isEnabled=!0}function Ge(){O.hide(),O.state.isEnabled=!1}function qe(){clearTimeout(r),clearTimeout(i),cancelAnimationFrame(o)}function Ce(ie){if(!O.state.isDestroyed){V("onBeforeUpdate",[O,ie]),de();var xe=O.props,Ne=C$(e,Object.assign({},xe,g$(ie),{ignoreAttributes:!0}));O.props=Ne,ue(),xe.interactiveDebounce!==Ne.interactiveDebounce&&(P(),b=h$(me,Ne.interactiveDebounce)),xe.triggerTarget&&!Ne.triggerTarget?pu(xe.triggerTarget).forEach(function($e){$e.removeAttribute("aria-expanded")}):Ne.triggerTarget&&e.removeAttribute("aria-expanded"),A(),z(),I&&I(xe,Ne),O.popperInstance&&(ze(),Te().forEach(function($e){requestAnimationFrame($e._tippy.popperInstance.forceUpdate)})),V("onAfterUpdate",[O,ie])}}function ke(ie){O.setProps({content:ie})}function We(){var ie=O.state.isVisible,xe=O.state.isDestroyed,Ne=!O.state.isEnabled,$e=_l.isTouch&&!O.props.touch,Ye=w9(O.props.duration,0,Zo.duration);if(!(ie||xe||Ne||$e)&&!L().hasAttribute("disabled")&&(V("onShow",[O],!1),O.props.onShow(O)!==!1)){if(O.state.isVisible=!0,D()&&(T.style.visibility="visible"),z(),ee(),O.state.isMounted||(T.style.transition="none"),D()){var ht=H(),It=ht.box,Jt=ht.content;_9([It,Jt],0)}m=function(){var en;if(!(!O.state.isVisible||u)){if(u=!0,T.offsetHeight,T.style.transition=O.props.moveTransition,D()&&O.props.animation){var rn=H(),Gt=rn.box,Ft=rn.content;_9([Gt,Ft],Ye),v$([Gt,Ft],"visible")}X(),A(),m$(O9,O),(en=O.popperInstance)==null||en.forceUpdate(),V("onMount",[O]),O.props.animation&&D()&&oe(Ye,function(){O.state.isShown=!0,V("onShown",[O])})}},Ie()}}function Pe(){var ie=!O.state.isVisible,xe=O.state.isDestroyed,Ne=!O.state.isEnabled,$e=w9(O.props.duration,1,Zo.duration);if(!(ie||xe||Ne)&&(V("onHide",[O],!1),O.props.onHide(O)!==!1)){if(O.state.isVisible=!1,O.state.isShown=!1,u=!1,a=!1,D()&&(T.style.visibility="hidden"),P(),se(),z(!0),D()){var Ye=H(),ht=Ye.box,It=Ye.content;O.props.animation&&(_9([ht,It],$e),v$([ht,It],"hidden"))}X(),A(),O.props.animation?D()&&ne($e,O.unmount):O.unmount()}}function Be(ie){B().addEventListener("mousemove",b),m$(gg,b),b(ie)}function He(){O.state.isVisible&&O.hide(),O.state.isMounted&&(et(),Te().forEach(function(ie){ie._tippy.unmount()}),T.parentNode&&T.parentNode.removeChild(T),O9=O9.filter(function(ie){return ie!==O}),O.state.isMounted=!1,V("onHidden",[O]))}function Qe(){O.state.isDestroyed||(O.clearDelayTimeouts(),O.unmount(),de(),delete e._tippy,O.state.isDestroyed=!0,V("onDestroy",[O]))}}function t1(e,t){t===void 0&&(t={});var n=Zo.plugins.concat(t.plugins||[]);k4e();var r=Object.assign({},t,{plugins:n}),i=w4e(e),o=i.reduce(function(a,l){var c=l&&B4e(l,r);return c&&a.push(c),a},[]);return N2(e)?o[0]:o}t1.defaultProps=Zo;t1.setDefaultProps=P4e;t1.currentInput=_l;Object.assign({},qH,{effect:function(t){var n=t.state,r={popper:{position:n.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(n.elements.popper.style,r.popper),n.styles=r,n.elements.arrow&&Object.assign(n.elements.arrow.style,r.arrow)}});var j4e={mouseover:"mouseenter",focusin:"focus",click:"click"};function H4e(e,t){var n=[],r=[],i=!1,o=t.target,a=v4e(t,["target"]),l=Object.assign({},a,{trigger:"manual",touch:!1}),c=Object.assign({touch:Zo.touch},a,{showOnCreate:!0}),u=t1(e,l),p=pu(u);function h(x){if(!(!x.target||i)){var S=x.target.closest(o);if(S){var C=S.getAttribute("data-tippy-trigger")||t.trigger||Zo.trigger;if(!S._tippy&&!(x.type==="touchstart"&&typeof c.touch=="boolean")&&!(x.type!=="touchstart"&&C.indexOf(j4e[x.type])<0)){var _=t1(S,c);_&&(r=r.concat(_))}}}}function m(x,S,C,_){_===void 0&&(_=!1),x.addEventListener(S,C,_),n.push({node:x,eventType:S,handler:C,options:_})}function g(x){var S=x.reference;m(S,"touchstart",h,Zs),m(S,"mouseover",h),m(S,"focusin",h),m(S,"click",h)}function b(){n.forEach(function(x){var S=x.node,C=x.eventType,_=x.handler,O=x.options;S.removeEventListener(C,_,O)}),n=[]}function E(x){var S=x.destroy,C=x.enable,_=x.disable;x.destroy=function(O){O===void 0&&(O=!0),O&&r.forEach(function(k){k.destroy()}),r=[],b(),S()},x.enable=function(){C(),r.forEach(function(O){return O.enable()}),i=!1},x.disable=function(){_(),r.forEach(function(O){return O.disable()}),i=!0},g(x)}return p.forEach(E),u}t1.setDefaultProps({render:cz});const rw={strip:["script"],clobberPrefix:"user-content-",clobber:["name","id"],ancestors:{tbody:["table"],tfoot:["table"],thead:["table"],td:["table"],th:["table"],tr:["table"]},protocols:{href:["http","https","mailto","xmpp","irc","ircs"],cite:["http","https"],src:["http","https"],longDesc:["http","https"]},tagNames:["h1","h2","h3","h4","h5","h6","br","b","i","strong","em","a","pre","code","img","tt","div","ins","del","sup","sub","p","ol","ul","table","thead","tbody","tfoot","blockquote","dl","dt","dd","kbd","q","samp","var","hr","ruby","rt","rp","li","tr","td","th","s","strike","summary","details","caption","figure","figcaption","abbr","bdo","cite","dfn","mark","small","span","time","wbr","input"],attributes:{a:["href"],img:["src","longDesc"],input:[["type","checkbox"],["disabled",!0]],li:[["className","task-list-item"]],div:["itemScope","itemType"],blockquote:["cite"],del:["cite"],ins:["cite"],q:["cite"],"*":["abbr","accept","acceptCharset","accessKey","action","align","alt","ariaDescribedBy","ariaHidden","ariaLabel","ariaLabelledBy","axis","border","cellPadding","cellSpacing","char","charOff","charSet","checked","clear","cols","colSpan","color","compact","coords","dateTime","dir","disabled","encType","htmlFor","frame","headers","height","hrefLang","hSpace","isMap","id","label","lang","maxLength","media","method","multiple","name","noHref","noShade","noWrap","open","prompt","readOnly","rel","rev","rows","rowSpan","rules","scope","selected","shape","size","span","start","summary","tabIndex","target","title","type","useMap","vAlign","value","vSpace","width","itemProp"]},required:{input:{type:"checkbox",disabled:!0}}},Tl={}.hasOwnProperty,I9={root:{children:x$},doctype:W4e,comment:U4e,element:{tagName:dz,properties:K4e,children:x$},text:{value:q4e},"*":{data:w$,position:w$}};function z4e(e,t){let n={type:"root",children:[]};if(e&&typeof e=="object"&&e.type){const r=uz(Object.assign({},rw,t||{}),e,[]);r&&(Array.isArray(r)?r.length===1?n=r[0]:n.children=r:n=r)}return n}function uz(e,t,n){const r=t&&t.type,i={type:t.type};let o;if(Tl.call(I9,r)){let a=I9[r];if(typeof a=="function"&&(a=a(e,t)),a){const l=Object.assign({},a,I9["*"]);let c;o=!0;for(c in l)if(Tl.call(l,c)){const u=l[c](e,t[c],t,n);u===!1?(o=void 0,i[c]=t[c]):u!=null&&(i[c]=u)}}}return o?i:i.type==="element"&&e.strip&&!e.strip.includes(i.tagName)?i.children:void 0}function x$(e,t,n,r){const i=[];if(Array.isArray(t)){let o=-1;for(n.type==="element"&&r.push(n.tagName);++o<t.length;){const a=uz(e,t[o],r);a&&(Array.isArray(a)?i.push(...a):i.push(a))}n.type==="element"&&r.pop()}return i}function W4e(e){return e.allowDoctypes?{name:V4e}:void 0}function U4e(e){return e.allowComments?{value:G4e}:void 0}function K4e(e,t,n,r){const i=dz(e,n.tagName,n,r),o=e.attributes||{},a=e.required||{},l=t||{},c=Object.assign({},_$(o["*"]),_$(i&&Tl.call(o,i)?o[i]:[])),u={};let p;for(p in l)if(Tl.call(l,p)){let h=l[p],m;if(Tl.call(c,p))m=c[p];else if(Q4e(p)&&Tl.call(c,"data*"))m=c["data*"];else continue;h=Array.isArray(h)?X4e(e,h,p,m):fz(e,h,p,m),h!=null&&(u[p]=h)}if(i&&Tl.call(a,i))for(p in a[i])Tl.call(u,p)||(u[p]=a[i][p]);return u}function V4e(){return"html"}function dz(e,t,n,r){const i=typeof t=="string"?t:"";let o=-1;if(!i||i==="*"||e.tagNames&&!e.tagNames.includes(i))return!1;if(e.ancestors&&Tl.call(e.ancestors,i)){for(;++o<e.ancestors[i].length;)if(r.includes(e.ancestors[i][o]))return i;return!1}return i}function G4e(e,t){const n=typeof t=="string"?t:"",r=n.indexOf("-->");return r<0?n:n.slice(0,r)}function q4e(e,t){return typeof t=="string"?t:""}function w$(e,t){return t}function X4e(e,t,n,r){let i=-1;const o=[];for(;++i<t.length;){const a=fz(e,t[i],n,r);a!=null&&o.push(a)}return o}function fz(e,t,n,r){if((typeof t=="boolean"||typeof t=="number"||typeof t=="string")&&Y4e(e,t,n)&&(r.length===0||r.some(i=>i&&typeof i=="object"&&"flags"in i?i.test(String(t)):i===t)))return e.clobberPrefix&&e.clobber&&e.clobber.includes(n)?e.clobberPrefix+t:t}function Y4e(e,t,n){const r=String(t),i=r.indexOf(":"),o=r.indexOf("?"),a=r.indexOf("#"),l=r.indexOf("/"),c=e.protocols&&Tl.call(e.protocols,n)?e.protocols[n].concat():[];let u=-1;if(c.length===0||i<0||l>-1&&i>l||o>-1&&i>o||a>-1&&i>a)return!0;for(;++u<c.length;)if(i===c[u].length&&r.slice(0,c[u].length)===c[u])return!0;return!1}function _$(e){const t={};let n=-1;for(;++n<e.length;){const r=e[n];Array.isArray(r)?t[r[0]]=r.slice(1):t[r]=[]}return t}function Q4e(e){return e.length>4&&e.slice(0,4).toLowerCase()==="data"}var fl={};const Z4e=[65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111];fl.REPLACEMENT_CHARACTER="<22>";fl.CODE_POINTS={EOF:-1,NULL:0,TABULATION:9,CARRIAGE_RETURN:13,LINE_FEED:10,FORM_FEED:12,SPACE:32,EXCLAMATION_MARK:33,QUOTATION_MARK:34,NUMBER_SIGN:35,AMPERSAND:38,APOSTROPHE:39,HYPHEN_MINUS:45,SOLIDUS:47,DIGIT_0:48,DIGIT_9:57,SEMICOLON:59,LESS_THAN_SIGN:60,EQUALS_SIGN:61,GREATER_THAN_SIGN:62,QUESTION_MARK:63,LATIN_CAPITAL_A:65,LATIN_CAPITAL_F:70,LATIN_CAPITAL_X:88,LATIN_CAPITAL_Z:90,RIGHT_SQUARE_BRACKET:93,GRAVE_ACCENT:96,LATIN_SMALL_A:97,LATIN_SMALL_F:102,LATIN_SMALL_X:120,LATIN_SMALL_Z:122,REPLACEMENT_CHARACTER:65533};fl.CODE_POINT_SEQUENCES={DASH_DASH_STRING:[45,45],DOCTYPE_STRING:[68,79,67,84,89,80,69],CDATA_START_STRING:[91,67,68,65,84,65,91],SCRIPT_STRING:[115,99,114,105,112,116],PUBLIC_STRING:[80,85,66,76,73,67],SYSTEM_STRING:[83,89,83,84,69,77]};fl.isSurrogate=function(e){return e>=55296&&e<=57343};fl.isSurrogatePair=function(e){return e>=56320&&e<=57343};fl.getSurrogatePairCodePoint=function(e,t){return(e-55296)*1024+9216+t};fl.isControlCodePoint=function(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159};fl.isUndefinedCodePoint=function(e){return e>=64976&&e<=65007||Z4e.indexOf(e)>-1};var iw={controlCharacterInInputStream:"control-character-in-input-stream",noncharacterInInputStream:"noncharacter-in-input-stream",surrogateInInputStream:"surrogate-in-input-stream",nonVoidHtmlElementStartTagWithTrailingSolidus:"non-void-html-element-start-tag-with-trailing-solidus",endTagWithAttributes:"end-tag-with-attributes",endTagWithTrailingSolidus:"end-tag-with-trailing-solidus",unexpectedSolidusInTag:"unexpected-solidus-in-tag",unexpectedNullCharacter:"unexpected-null-character",unexpectedQuestionMarkInsteadOfTagName:"unexpected-question-mark-instead-of-tag-name",invalidFirstCharacterOfTagName:"invalid-first-character-of-tag-name",unexpectedEqualsSignBeforeAttributeName:"unexpected-equals-sign-before-attribute-name",missingEndTagName:"missing-end-tag-name",unexpectedCharacterInAttributeName:"unexpected-character-in-attribute-name",unknownNamedCharacterReference:"unknown-named-character-reference",missingSemicolonAfterCharacterReference:"missing-semicolon-after-character-reference",unexpectedCharacterAfterDoctypeSystemIdentifier:"unexpected-character-after-doctype-system-identifier",unexpectedCharacterInUnquotedAttributeValue:"unexpected-character-in-unquoted-attribute-value",eofBeforeTagName:"eof-before-tag-name",eofInTag:"eof-in-tag",missingAttributeValue:"missing-attribute-value",missingWhitespaceBetweenAttributes:"missing-whitespace-between-attributes",missingWhitespaceAfterDoctypePublicKeyword:"missing-whitespace-after-doctype-public-keyword",missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers:"missing-whitespace-between-doctype-public-and-system-identifiers",missingWhitespaceAfterDoctypeSystemKeyword:"missing-whitespace-after-doctype-system-keyword",missingQuoteBeforeDoctypePublicIdentifier:"missing-quote-before-doctype-public-identifier",missingQuoteBeforeDoctypeSystemIdentifier:"missing-quote-before-doctype-system-identifier",missingDoctypePublicIdentifier:"missing-doctype-public-identifier",missingDoctypeSystemIdentifier:"missing-doctype-system-identifier",abruptDoctypePublicIdentifier:"abrupt-doctype-public-identifier",abruptDoctypeSystemIdentifier:"abrupt-doctype-system-identifier",cdataInHtmlContent:"cdata-in-html-content",incorrectlyOpenedComment:"incorrectly-opened-comment",eofInScriptHtmlCommentLikeText:"eof-in-script-html-comment-like-text",eofInDoctype:"eof-in-doctype",nestedComment:"nested-comment",abruptClosingOfEmptyComment:"abrupt-closing-of-empty-comment",eofInComment:"eof-in-comment",incorrectlyClosedComment:"incorrectly-closed-comment",eofInCdata:"eof-in-cdata",absenceOfDigitsInNumericCharacterReference:"absence-of-digits-in-numeric-character-reference",nullCharacterReference:"null-character-reference",surrogateCharacterReference:"surrogate-character-reference",characterReferenceOutsideUnicodeRange:"character-reference-outside-unicode-range",controlCharacterReference:"control-character-reference",noncharacterCharacterReference:"noncharacter-character-reference",missingWhitespaceBeforeDoctypeName:"missing-whitespace-before-doctype-name",missingDoctypeName:"missing-doctype-name",invalidCharacterSequenceAfterDoctypeName:"invalid-character-sequence-after-doctype-name",duplicateAttribute:"duplicate-attribute",nonConformingDoctype:"non-conforming-doctype",missingDoctype:"missing-doctype",misplacedDoctype:"misplaced-doctype",endTagWithoutMatchingOpenElement:"end-tag-without-matching-open-element",closingOfElementWithOpenChildElements:"closing-of-element-with-open-child-elements",disallowedContentInNoscriptInHead:"disallowed-content-in-noscript-in-head",openElementsLeftAfterEof:"open-elements-left-after-eof",abandonedHeadElementChild:"abandoned-head-element-child",misplacedStartTagForHeadElement:"misplaced-start-tag-for-head-element",nestedNoscriptInHead:"nested-noscript-in-head",eofInElementThatCanContainOnlyText:"eof-in-element-that-can-contain-only-text"};const Hd=fl,k9=iw,tu=Hd.CODE_POINTS,J4e=65536;let e9e=class{constructor(){this.html=null,this.pos=-1,this.lastGapPos=-1,this.lastCharPos=-1,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=J4e}_err(){}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(t){if(this.pos!==this.lastCharPos){const n=this.html.charCodeAt(this.pos+1);if(Hd.isSurrogatePair(n))return this.pos++,this._addGap(),Hd.getSurrogatePairCodePoint(t,n)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,tu.EOF;return this._err(k9.surrogateInInputStream),t}dropParsedChunk(){this.pos>this.bufferWaterline&&(this.lastCharPos-=this.pos,this.html=this.html.substring(this.pos),this.pos=0,this.lastGapPos=-1,this.gapStack=[])}write(t,n){this.html?this.html+=t:this.html=t,this.lastCharPos=this.html.length-1,this.endOfChunkHit=!1,this.lastChunkWritten=n}insertHtmlAtCurrentPos(t){this.html=this.html.substring(0,this.pos+1)+t+this.html.substring(this.pos+1,this.html.length),this.lastCharPos=this.html.length-1,this.endOfChunkHit=!1}advance(){if(this.pos++,this.pos>this.lastCharPos)return this.endOfChunkHit=!this.lastChunkWritten,tu.EOF;let t=this.html.charCodeAt(this.pos);return this.skipNextNewLine&&t===tu.LINE_FEED?(this.skipNextNewLine=!1,this._addGap(),this.advance()):t===tu.CARRIAGE_RETURN?(this.skipNextNewLine=!0,tu.LINE_FEED):(this.skipNextNewLine=!1,Hd.isSurrogate(t)&&(t=this._processSurrogate(t)),t>31&&t<127||t===tu.LINE_FEED||t===tu.CARRIAGE_RETURN||t>159&&t<64976||this._checkForProblematicCharacters(t),t)}_checkForProblematicCharacters(t){Hd.isControlCodePoint(t)?this._err(k9.controlCharacterInInputStream):Hd.isUndefinedCodePoint(t)&&this._err(k9.noncharacterInInputStream)}retreat(){this.pos===this.lastGapPos&&(this.lastGapPos=this.gapStack.pop(),this.pos--),this.pos--}};var t9e=e9e,n9e=new Uint16Array([4,52,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,106,303,412,810,1432,1701,1796,1987,2114,2360,2420,2484,3170,3251,4140,4393,4575,4610,5106,5512,5728,6117,6274,6315,6345,6427,6516,7002,7910,8733,9323,9870,10170,10631,10893,11318,11386,11467,12773,13092,14474,14922,15448,15542,16419,17666,18166,18611,19004,19095,19298,19397,4,16,69,77,97,98,99,102,103,108,109,110,111,112,114,115,116,117,140,150,158,169,176,194,199,210,216,222,226,242,256,266,283,294,108,105,103,5,198,1,59,148,1,198,80,5,38,1,59,156,1,38,99,117,116,101,5,193,1,59,167,1,193,114,101,118,101,59,1,258,4,2,105,121,182,191,114,99,5,194,1,59,189,1,194,59,1,1040,114,59,3,55349,56580,114,97,118,101,5,192,1,59,208,1,192,112,104,97,59,1,913,97,99,114,59,1,256,100,59,1,10835,4,2,103,112,232,237,111,110,59,1,260,102,59,3,55349,56632,112,108,121,70,117,110,99,116,105,111,110,59,1,8289,105,110,103,5,197,1,59,264,1,197,4,2,99,115,272,277,114,59,3,55349,56476,105,103,110,59,1,8788,105,108,100,101,5,195,1,59,292,1,195,109,108,5,196,1,59,301,1,196,4,8,97,99,101,102,111,114,115,117,321,350,354,383,388,394,400,405,4,2,99,114,327,336,107,115,108,97,115,104,59,1,8726,4,2,118,119,342,345,59,1,10983,101,100,59,1,8966,121,59,1,1041,4,3,99,114,116,362,369,379,97,117,115,101,59,1,8757,110,111,117,108,108,105,115,59,1,8492,97,59,1,914,114,59,3,55349,56581,112,102,59,3,55349,56633,101,118,101,59,1,728,99,114,59,1,8492,109,112,101,113,59,1,8782,4,14,72,79,97,99,100,101,102,104,105,108,111,114,115,117,442,447,456,504,542,547,569,573,577,616,678,784,790,796,99,121,59,1,1063,80,89,5,169,1,59,454,1,169,4,3,99,112,121,464,470,497,117,116,101,59,1,262,4,2,59,105,476,478,1,8914,116,97,108,68,105,102,102,101,114,101,110,116,105,97,108,68,59,1,8517,108,101,121,115,59,1,8493,4,4,97,101,105,111,514,520,530,535,114,111,110,59,1,268,100,105,108,5,199,1,59,528,1,199,114,99,59,1,264,110,105,110,116,59,1,8752,111,116,59,1,266,4,2,100,110,553,560,105,108,108,97,59,1,184,116,101,114,68,111,116,59,1,183,114,59,1,8493,105,59,1,935,114,99,108,101,4,4,68,77,80,84,591,596,603,609,111,116,59,1,8857,105,110,117,115,59,1,8854,108,117,115,59,1,8853,105,109,101,115,59,1,8855,111,4,2,99,115,623,646,107,119,105,115,101,67,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59,1,8754,101,67,117,114,108,121,4,2,68,81,658,671,111,117,98,108,101,81,117,111,116,101,59,1,8221,117,111,116,101,59,1,8217,4,4,108,110,112,117,688,701,736,753,111,110,4,2,59,101,696,698,1,8759,59,1,10868,4,3,103,105,116,709,717,722,114,117,101,110,116,59,1,8801,110,116,59,1,8751,111,117,114,73,110,116,101,103,114,97,108,59,1,8750,4,2,102,114,742,745,59,1,8450,111,100,117,99,116,59,1,8720,110,116,101,114,67,108,111,99,107,119,105,115,101,67,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59,1,8755,111,115,115,59,1,10799,99,114,59,3,55349,56478,112,4,2,59,67,803,805,1,8915,97,112,59,1,8781,4,11,68,74,83,90,97,99,101,102,105,111,115,834,850,855,860,865,888,903,916,921,1011,1415,4,2,59,111,840,842,1,8517,116,114,97,104,100,59,1,10513,99,121,59,1,1026,99,121,59,1,1029,99,121,59,1,1039,4,3,103,114,115,873,879,883,103,101,114,59,1,8225,114,59,1,8609,104,118,59,1,10980,4,2,97,121,894,900,114,111,110,59,1,270,59,1,1044,108,4,2,59,116,910,912,1,8711,97,59,1,916,114,59,3,55349,56583,4,2,97,102,927,998,4,2,99,109,933,992,114,105,116,105,99,97,108,4,4,65,68,71,84,950,957,978,985,99,117,116,101,59,1,180,111,4,2,116,117,964,967,59,1,729,98,108,101,65,99,117,116,101,59,1,733,114,97,118,101,59,1,96,105,108,100,101,59,1,732,111,110,100,59,1,8900,102,101,114,101,110,116,105,97,108,68,59,1,8518,4,4,112,116,117,119,1021,1026,1048,1249,102,59,3,55349,56635,4,3,59,68,69,1034,1036,1041,1,168,111,116,59,1,8412,113,117,97,108,59,1,8784,98,108,101,4,6,67,68,76,82,85,86,1065,1082,1101,1189,1211,1236,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59,1,8751,111,4,2,116,119,1089,1092,59,1,168,110,65,114,114,111,119,59,1,8659,4,2,101,111,1107,1141,102,116,4,3,65,82,84,1117,1124,1136,114,114,111,119,59,1,8656,105,103,104,116,65,114,114,111,119,59,1,8660,101,101,59,1,10980,110,103,4,2,76,82,1149,1177,101,102,116,4,2,65,82,1158,1165,114,114,111,119,59,1,10232,105,103,104,116,65,114,114,111,119,59,1,10234,105,103,104,116,65,114,114,111,119,59,1,10233,105,103,104,116,4,2,65,84,1199,1206,114,114,111,119,59,1,8658,101,101,59,1,8872,112,4,2,65,68,1218,1225,114,114,111,119,59,1,8657,111,119,110,65,114,114,111,119,59,1,8661,101,114,116,105,99,97,108,66,97,114,59,1,8741,110,4,6,65,66,76,82,84,97,1264,1292,1299,1352,1391,1408,114,114,111,119,4,3,59,66,85,1276,1278,1283,1,8595,97,114,59,1,10515,112,65,114,114,111,119,59,1,8693,114,101,118,101,59,1,785,101,102,116,4,3,82,84,86,1310,1323,1334,105,103,104,116,86,101,99,116,111,114,59,1,10576,101,101,86,101,99,116,111,114,59,1,10590,101,99,116,111,114,4,2,59,66,1345,1347,1,8637,97,114,59,1,10582,105,103,104,116,4,2,84,86,1362,1373,101,101,86,101,99,116,111,114,59,1,10591,101,99,116,111,114,4,2,59,66,1384,1386,1,8641,97,114,59,1,10583,101,101,4,2,59,65,1399,1401,1,8868,114,114,111,119,59,1,8615,114,114,111,119,59,1,8659,4,2,99,116,1421,1426,114,59,3,55349,56479,114,111,107,59,1,272,4,16,78,84,97,99,100,102,103,108,109,111,112,113,115,116,117,120,1466,1470,1478,1489,1515,1520,1525,1536,1544,1593,1609,1617,1650,1664,1668,1677,71,59,1,330,72,5,208,1,59,1476,1,208,99,117,116,101,5,201,1,59,1487,1,201,4,3,97,105,121,1497,1503,1512,114,111,110,59,1,282,114,99,5,202,1,59,1510,1,202,59,1,1069,111,116,59,1,278,114,59,3,55349,56584,114,97,118,101,5,200,1,59,1534,1,200,101,109,101,110,116,59,1,8712,4,2,97,112,1550,1555,99,114,59,1,274,116,121,4,2,83,86,1563,1576,109,97,108,108,83,113,117,97,114,101,59,1,9723,101,114,121,83,109,97,108,108,83,113,117,97,114,101,59,1,9643,4,2,103,112,1599,1604,111,110,59,1,280,102,59,3,55349,56636,115,105,108,111,110,59,1,917,117,4,2,97,105,1624,1640,108,4,2,59,84,1631,1633,1,10869,105,108,100,101,59,1,8770,108,105,98,114,105,117,109,59,1,8652,4,2,99,105,1656,1660,114,59,1,8496,109,59,1,10867,97,59,1,919,109,108,5,203,1,59,1675,1,203,4,2,105,112,1683,1689,115,116,115,59,1,8707,111,110,101,110,116,105,97,108,69,59,1,8519,4,5,99,102,105,111,115,1713,1717,1722,1762,1791,121,59,1,1060,114,59,3,55349,56585,108,108,101,100,4,2,83,86,1732,1745,109,97,108,108,83,113,117,97,114,101,59,1,9724,101,114,121,83,109,97,108,108,83,113,117,97,114,101,59,1,9642,4,3,112,114,117,1770,1775,1781,102,59,3,55349,56637,65,108,108,59,1,8704,114,105,101,114,116,114,102,59,1,8497,99,114,59,1,8497,4,12,74,84,97,98,99,100,102,103,111,114,115,116,1822,1827,1834,1848,1855,1877,1882,1887,1890,1896,1978,1984,99,121,59,1,1027,5,62,1,59,1832,1,62,109,109,97,4,2,59,100,1843,1845,1,915,59,1,988,114,101,118,101,59,1,286,4,3,101,105,121,1863,1869,1874,100,105,108,59,1,290,114,99,59,1,284,59,1,1043,111,116,59,1,288,114,59,3,55349,56586,59,1,8921,112,102,59,3,55349,56638,101,97,116,101,114,4,6,69,70,71,76,83,84,1915,1933,1944,1953,1959,1971,113,117,97,108,4,2,59,76,1925,1927,1,8805,101,115,115,59,1,8923,117,108,108,69,113,117,97,108,59,1,8807,114,101,97,116,101,114,59,1,10914,101,115,115,59,1,8823,108,97,110,116,69,113,117,97,108,59,1,10878,105,108,100,101,59,1,8819,99,114,59,3,55349,56482,59,1,8811,4,8,65,97,99,102,105,111,115,117,2005,2012,2026,2032,2036,2049,2073,2089,82,68,99,121,59,1,1066,4,2,99,116,2018,2023,101,107,59,1,711,59,1,94,105,114,99,59,1,292,114,59,1,8460,108,98,101,114,116,83,112,97,99,101,59,1,8459,4,2,112,114,2055,2059,102,59,1,8461,105,122,111,110,116,97,108,76,105,110,101,59,1,9472,4,2,99,116,2079,2083,114,59,1,8459,114,111,107,59,1,294,109,112,4,2,68,69,2097,2107,111,119,110,72,117,109,112,59,1,8782,113,117,97,108,59,1,8783,4,14,69,74,79,97,99,100,102,103,109,110,111,115,116,117,2144,2149,2155,2160,2171,2189,2194,2198,2209,2245,2307,2329,2334,2341,99,121,59,1,1045,108,105,103,59,1,306,99,121,59,1,1025,99,117,116,101,5,205,1,59,2169,1,205,4,2,105,121,2177,2186,114,99,5,206,1,59,2184,1,206,59,1,1048,111,116,59,1,304,114,59,1,8465,114,97,118,101,5,204,1,59,2207,1,204,4,3,59,97,112,2217,2219,2238,1,8465,4,2,99,103,2225,2229,114,59,1,298,105,110,97,114,121,73,59,1,8520,108,105,101,115,59,1,8658,4,2,116,118,2251,2281,4,2,59,101,2257,2259,1,8748,4,2,103,114,2265,2271,114,97,108,59,1,8747,115,101,99,116,105,111,110,59,1,8898,105,115,105,98,108,101,4,2,67,84,2293,2300,111,109,109,97,59,1,8291,105,109,101,115,59,1,8290,4,3,103,112,116,2315,2320,2325,111,110,59,1,302,102,59,3,55349,56640,97,59,1,921,99,114,59,1,8464,105,108,100,101,59,1,296,4,2,107,109,2347,2352,99,121,59,1,1030,108,5,207,1,59,2358,1,207,4,5,99,102,111,115,117,2372,2386,2391,2397,2414,4,2,105,121,2378,2383,114,99,59,1,308,59,1,1049,114,59,3,55349,56589,112,102,59,3,55349,56641,4,2,99,101,2403,2408,114,59,3,55349,56485,114,99,121,59,1,1032,107,99,121,59,1,1028,4,7,72,74,97,99,102,111,115,2436,2441,2446,2452,2467,2472,2478,99,121,59,1,1061,99,121,59,1,1036,112,112,97,59,1,922,4,2,101,121,2458,2464,100,105,108,59,1,310,59,1,1050,114,59,3,55349,56590,112,102,59,3,55349,56642,99,114,59,3,55349,56486,4,11,74,84,97,99,101,102,108,109,111,115,116,2508,2513,2520,2562,2585,2981,2986,3004,3011,3146,3167,99,121,59,1,1033,5,60,1,59,2518,1,60,4,5,99,109,110,112,114,2532,2538,2544,2548,2558,117,116,101,59,1,313,98,100,97,59,1,923,103,59,1,10218,108,97,99,101,116,114,102,59,1,8466,114,59,1,8606,4,3,97,101,121,2570,2576,2582,114,111,110,59,1,317,100,105,108,59,1,315,59,1,1051,4,2,102,115,2591,2907,116,4,10,65,67,68,70,82,84,85,86,97,114,2614,2663,2672,2728,2735,2760,2820,2870,2888,2895,4,2,110,114,2620,2633,103,108,101,66,114,97,99,107,101,116,59,1,10216,114,111,119,4,3,59,66,82,2644,2646,2651,1,8592,97,114,59,1,8676,105,103,104,116,65,114,114,111,119,59,1,8646,101,105,108,105,110,103,59,1,8968,111,4,2,117,119,2679,2692,98,108,101,66,114,97,99,107,101,116,59,1,10214,110,4,2,84,86,2699,2710,101,101,86,101,99,116,111,114,59,1,10593,101,99,116,111,114,4,2,59,66,2721,2723,1,8643,97,114,59,1,10585,108,111,111,114,59,1,8970,105,103,104,116,4,2,65,86,2745,2752,114,114,111,119,59,1,8596,101,99,116,111,114,59,1,10574,4,2,101,114,2766,2792,101,4,3,59,65,86,2775,2777,2784,1,8867,114,114,111,119,59,1,8612,101,99,116,111,114,59,1,10586,105,97,110,103,108,101,4,3,59,66,69,2806,2808,2813,1,8882,97,114,59,1,10703,113,117,97,108,59,1,8884,112,4,3,68,84,86,2829,2841,2852,111,119,110,86,101,99,116,111,114,59,1,10577,101,101,86,101,99,116,111,114,59,1,10592,101,99,116,111,114,4,2,59,66,2863,2865,1,8639,97,114,59,1,10584,101,99,116,111,114,4,2,59,66,2881,2883,1,8636,97,114,59,1,10578,114,114,111,119,59,1,8656,105,103,104,116,97,114,114,111,119,59,1,8660,115,4,6,69,70,71,76,83,84,2922,2936,2947,2956,2962,2974,113,117,97,108,71,114,101,97,116,101,114,59,1,8922,117,108,108,69,113,117,97,108,59,1,8806,114,101,97,116,101,114,59,1,8822,101,115,115,59,1,10913,108,97,110,116,69,113,117,97,108,59,1,10877,105,108,100,101,59,1,8818,114,59,3,55349,56591,4,2,59,101,2992,2994,1,8920,102,116,97,114,114,111,119,59,1,8666,105,100,111,116,59,1,319,4,3,110,112,119,3019,3110,3115,103,4,4,76,82,108,114,3030,3058,3070,3098,101,102,116,4,2,65,82,3039,3046,114,114,111,119,59,1,10229,105,103,104,116,65,114,114,111,119,59,1,10231,105,103,104,116,65,114,114,111,119,59,1,10230,101,102,116,4,2,97,114,3079,3086,114,114,111,119,59,1,10232,105,103,104,116,97,114,114,111,119,59,1,10234,105,103,104,116,97,114,114,111,119,59,1,10233,102,59,3,55349,56643,101,114,4,2,76,82,3123,3134,101,102,116,65,114,114,111,119,59,1,8601,105,103,104,116,65,114,114,111,119,59,1,8600,4,3,99,104,116,3154,3158,3161,114,59,1,8466,59,1,8624,114,111,107,59,1,321,59,1,8810,4,8,97,99,101,102,105,111,115,117,3188,3192,3196,3222,3227,3237,3243,3248,112,59,1,10501,121,59,1,1052,4,2,100,108,3202,3213,105,117,109,83,112,97,99,101,59,1,8287,108,105,110,116,114,102,59,1,8499,114,59,3,55349,56592,110,117,115,80,108,117,115,59,1,8723,112,102,59,3,55349,56644,99,114,59,1,8499,59,1,924,4,9,74,97,99,101,102,111,115,116,117,3271,3276,3283,3306,3422,3427,4120,4126,4137,99,121,59,1,1034,99,117,116,101,59,1,323,4,3,97,101,121,3291,3297,3303,114,111,110,59,1,327,100,105,108,59,1,325,59,1,1053,4,3,103,115,119,3314,3380,3415,97,116,105,118,101,4,3,77,84,86,3327,3340,3365,101,100,105,117,109,83,112,97,99,101,59,1,8203,104,105,4,2,99,110,3348,3357,107,83,112,97,99,101,59,1,8203,83,112,97,99,101,59,1,8203,101,114,121,84,104,105,110,83,112,97,99,101,59,1,8203,116,101,100,4,2,71,76,3389,3405,114,101,97,116,101,114,71,114,101,97,116,101,114,59,1,8811,101,115,115,76,101,115,115,59,1,8810,76,105,110,101,59,1,10,114,59,3,55349,56593,4,4,66,110,112,116,3437,3444,3460,3464,114,101,97,107,59,1,8288,66,114,101,97,107,105,110,103,83,112,97,99,101,59,1,160,102,59,1,8469,4,13,59,67,68,69,71,72,76,78,80,82,83,84,86,3492,3494,3517,3536,3578,3657,3685,3784,3823,3860,3915,4066,4107,1,10988,4,2,111,117,3500,3510,110,103,114,117,101,110,116,59,1,8802,112,67,97,112,59,1,8813,111,117,98,108,101,86,101,114,116,105,99,97,108,66,97,114,59,1,8742,4,3,108,113,120,3544,3552,3571,101,109,101,110,116,59,1,8713,117,97,108,4,2,59,84,3561,3563,1,8800,105,108,100,101,59,3,8770,824,105,115,116,115,59,1,8708,114,101,97,116,101,114,4,7,59,69,70,71,76,83,84,3600,3602,3609,3621,3631,3637,3650,1,8815,113,117,97,108,59,1,8817,117,108,108,69,113,117,97,108,59,3,8807,824,114,101,97,116,101,114,59,3,8811,824,101,115,115,59,1,8825,108,97,110,116,69,113,117,97,108,59,3,10878,824,105,108,100,101,59,1,8821,117,109,112,4,2,68,69,3666,3677,111,119,110,72,117,109,112,59,3,8782,824,113,117,97,108,59,3,8783,824,101,4,2,102,115,3692,3724,116,84,114,105,97,110,103,108,101,4,3,59,66,69,3709,3711,3717,1,8938,97,114,59,3,10703,824,113,117,97,108,59,1,8940,115,4,6,59,69,71,76,83,84,3739,3741,3748,3757,3764,3777,1,8814,113,117,97,108,59,1,8816,114,101,97,116,101,114,59,1,8824,101,115,115,59,3,8810,824,108,97,110,116,69,113,117,97,108,59,3,10877,824,105,108,100,101,59,1,8820,101,115,116,101,100,4,2,71,76,3795,3812,114,101,97,116,101,114,71,114,101,97,116,101,114,59,3,10914,824,101,115,115,76,101,115,115,59,3,10913,824,114,101,99,101,100,101,115,4,3,59,69,83,3838,3840,3848,1,8832,113,117,97,108,59,3,10927,824,108,97,110,116,69,113,117,97,108,59,1,8928,4,2,101,105,3866,3881,118,101,114,115,101,69,108,101,109,101,110,116,59,1,8716,103,104,116,84,114,105,97,110,103,108,101,4,3,59,66,69,3900,3902,3908,1,8939,97,114,59,3,10704,824,113,117,97,108,59,1,8941,4,2,113,117,3921,3973,117,97,114,101,83,117,4,2,98,112,3933,3952,115,101,116,4,2,59,69,3942,3945,3,8847,824,113,117,97,108,59,1,8930,101,114,115,101,116,4,2,59,69,3963,3966,3,8848,824,113,117,97,108,59,1,8931,4,3,98,99,112,3981,4e3,4045,115,101,116,4,2,59,69,3990,3993,3,8834,8402,113,117,97,108,59,1,8840,99,101,101,100,115,4,4,59,69,83,84,4015,4017,4025,4037,1,8833,113,117,97,108,59,3,10928,824,108,97,110,116,69,113,117,97,108,59,1,8929,105,108,100,101,59,3,8831,824,101,114,115,101,116,4,2,59,69,4056,4059,3,8835,8402,113,117,97,108,59,1,8841,105,108,100,101,4,4,59,69,70,84,4080,4082,4089,4100,1,8769,113,117,97,108,59,1,8772,117,108,108,69,113,117,97,108,59,1,8775,105,108,100,101,59,1,8777,101,114,116,105,99,97,108,66,97,114,59,1,8740,99,114,59,3,55349,56489,105,108,100,101,5,209,1,59,4135,1,209,59,1,925,4,14,69,97,99,100,102,103,109,111,112,114,115,116,117,118,4170,4176,4187,4205,4212,4217,4228,4253,4259,4292,4295,4316,4337,4346,108,105,103,59,1,338,99,117,116,101,5,211,1,59,4185,1,211,4,2,105,121,4193,4202,114,99,5,212,1,59,4200,1,212,59,1,1054,98,108,97,99,59,1,336,114,59,3,55349,56594,114,97,118,101,5,210,1,59,4226,1,210,4,3,97,101,105,4236,4241,4246,99,114,59,1,332,103,97,59,1,937,99,114,111,110,59,1,927,112,102,59,3,55349,56646,101,110,67,117,114,108,121,4,2,68,81,4272,4285,111,117,98,108,101,81,117,111,116,101,59,1,8220,117,111,116,101,59,1,8216,59,1,10836,4,2,99,108,4301,4306,114,59,3,55349,56490,97,115,104,5,216,1,59,4314,1,216,105,4,2,108,109,4323,4332,100,101,5,213,1,59,4330,1,213,101,115,59,1,10807,109,108,5,214,1,59,4344,1,214,101,114,4,2,66,80,4354,4380,4,2,97,114,4360,4364,114,59,1,8254,97,99,4,2,101,107,4372,4375,59,1,9182,101,116,59,1,9140,97,114,101,110,116,104,101,115,105,115,59,1,9180,4,9,97,99,102,104,105,108,111,114,115,4413,4422,4426,4431,4435,4438,4448,4471,4561,114,116,105,97,108,68,59,1,8706,121,59,1,1055,114,59,3,55349,56595,105,59,1,934,59,1,928,117,115,77,105,110,117,115,59,1,177,4,2,105,112,4454,4467,110,99,97,114,101,112,108,97,110,101,59,1,8460,102,59,1,8473,4,4,59,101,105,111,4481,4483,4526,4531,1,10939,99,101,100,101,115,4,4,59,69,83,84,4498,4500,4507,4519,1,8826,113,117,97,108,59,1,10927,108,97,110,116,69,113,117,97,108,59,1,8828,105,108,100,101,59,1,8830,109,101,59,1,8243,4,2,100,112,4537,4543,117,99,116,59,1,8719,111,114,116,105,111,110,4,2,59,97,4555,4557,1,8759,108,59,1,8733,4,2,99,105,4567,4572,114,59,3,55349,56491,59,1,936,4,4,85,102,111,115,4585,4594,4599,4604,79,84,5,34,1,59,4592,1,34,114,59,3,55349,56596,112,102,59,1,8474,99,114,59,3,55349,56492,4,12,66,69,97,99,101,102,104,105,111,114,115,117,4636,4642,4650,4681,4704,4763,4767,4771,5047,5069,5081,5094,97,114,114,59,1,10512,71,5,174,1,59,4648,1,174,4,3,99,110,114,4658,4664,4668,117,116,101,59,1,340,103,59,1,10219,114,4,2,59,116,4675,4677,1,8608,108,59,1,10518,4,3,97,101,121,4689,4695,4701,114,111,110,59,1,344,100,105,108,59,1,342,59,1,1056,4,2,59,118,4710,4712,1,8476,101,114,115,101,4,2,69,85,4722,4748,4,2,108,113,4728,4736,101,109,101,110,116,59,1,8715,117,105,108,105,98,114,105,117,109,59,1,8651,112,69,113,117,105,108,105,98,114,105,117,109,59,1,10607,114,59,1,8476,111,59,1,929,103,104,116,4,8,65,67,68,70,84,85,86,97,4792,4840,4849,4905,4912,4972,5022,5040,4,2,110,114,4798,4811,103,108,101,66,114,97,99,107,101,116,59,1,10217,114,111,119,4,3,59,66,76,4822,4824,4829,1,8594,97,114,59,1,8677,101,102,116,65,114,114,111,119,59,1,8644,101,105,108,105,110,103,59,1,8969,111,4,2,117,119,4856,4869,98,108,101,66,114,97,99,107,101,116,59,1,10215,110,4,2,84,86,4876,4887,101,101,86,101,99,116,111,114,59,1,10589,101,99,116,111,114,4,2,59,66,4898,4900,1,8642,97,114,59,1,10581,108,111,111,114,59,1,8971,4,2,101,114,4918,4944,101,4,3,59,65,86,4927,4929,4936,1,8866,114,114,111,119,59,1,8614,101,99,116,111,114,59,1,10587,105,97,110,103,108,101,4,3,59,66,69,4958,4960,4965,1,8883,97,114,59,1,10704,113,117,97,108,59,1,8885,112,4,3,68,84,86,4981,4993,5004,111,119,110,86,101,99,116,111,114,59,1,10575,101,101,86,101,99,116,111,114,59,1,10588,101,99,116,111,114,4,2,59,66,5015,5017,1,8638,97,114,59,1,10580,101,99,116,111,114,4,2,59,66,5033,5035,1,8640,97,114,59,1,10579,114,114,111,119,59,1,8658,4,2,112,117,5053,5057,102,59,1,8477,110,100,73,109,112,108,105,101,115,59,1,10608,105,103,104,116,97,114,114,111,119,59,1,8667,4,2,99,104,5087,5091,114,59,1,8475,59,1,8625,108,101,68,101,108,97,121,101,100,59,1,10740,4,13,72,79,97,99,102,104,105,109,111,113,115,116,117,5134,5150,5157,5164,5198,5203,5259,5265,5277,5283,5374,5380,5385,4,2,67,99,5140,5146,72,99,121,59,1,1065,121,59,1,1064,70,84,99,121,59,1,1068,99,117,116,101,59,1,346,4,5,59,97,101,105,121,5176,5178,5184,5190,5195,1,10940,114,111,110,59,1,352,100,105,108,59,1,350,114,99,59,1,348,59,1,1057,114,59,3,55349,56598,111,114,116,4,4,68,76,82,85,5216,5227,5238,5250,111,119,110,65,114,114,111,119,59,1,8595,101,102,116,65,114,114,111,119,59,1,8592,105,103,104,116,65,114,114,111,119,59,1,8594,112,65,114,114,111,119,59,1,8593,103,109,97,59,1,931,97,108,108,67,105,114,99,108,101,59,1,8728,112,102,59,3,55349,56650,4,2,114,117,5289,5293,116,59,1,8730,97,114,101,4,4,59,73,83,85,5306,5308,5322,5367,1,9633,110,116,101,114,115,101,99,116,105,111,110,59,1,8851,117,4,2,98,112,5329,5347,115,101,116,4,2,59,69,5338,5340,1,8847,113,117,97,108,59,1,8849,101,114,115,101,116,4,2,59,69,5358,5360,1,8848,113,117,97,108,59,1,8850,110,105,111,110,59,1,8852,99,114,59,3,55349,56494,97,114,59,1,8902,4,4,98,99,109,112,5395,5420,5475,5478,4,2,59,115,5401,5403,1,8912,101,116,4,2,59,69,5411,5413,1,8912,113,117,97,108,59,1,8838,4,2,99,104,5426,5468,101,101,100,115,4,4,59,69,83,84,5440,5442,5449,5461,1,8827,113,117,97,108,59,1,10928,108,97,110,116,69,113,117,97,108,59,1,8829,105,108,100,101,59,1,8831,84,104,97,116,59,1,8715,59,1,8721,4,3,59,101,115,5486,5488,5507,1,8913,114,115,101,116,4,2,59,69,5498,5500,1,8835,113,117,97,108,59,1,8839,101,116,59,1,8913,4,11,72,82,83,97,99,102,104,105,111,114,115,5536,5546,5552,5567,5579,5602,5607,5655,5695,5701,5711,79,82,78,5,222,1,59,5544,1,222,65,68,69,59,1,8482,4,2,72,99,5558,5563,99,121,59,1,1035,121,59,1,1062,4,2,98,117,5573,5576,59,1,9,59,1,932,4,3,97,101,121,5587,5593,5599,114,111,110,59,1,356,100,105,108,59,1,354,59,1,1058,114,59,3,55349,56599,4,2,101,105,5613,5631,4,2,114,116,5619,5627,101,102,111,114,101,59,1,8756,97,59,1,920,4,2,99,110,5637,5647,107,83,112,97,99,101,59,3,8287,8202,83,112,97,99,101,59,1,8201,108,100,101,4,4,59,69,70,84,5668,5670,5677,5688,1,8764,113,117,97,108,59,1,8771,117,108,108,69,113,117,97,108,59,1,8773,105,108,100,101,59,1,8776,112,102,59,3,55349,56651,105,112,108,101,68,111,116,59,1,8411,4,2,99,116,5717,5722,114,59,3,55349,56495,114,111,107,59,1,358,4,14,97,98,99,100,102,103,109,110,111,112,114,115,116,117,5758,5789,5805,5823,5830,5835,5846,5852,5921,5937,6089,6095,6101,6108,4,2,99,114,5764,5774,117,116,101,5,218,1,59,5772,1,218,114,4,2,59,111,5781,5783,1,8607,99,105,114,59,1,10569,114,4,2,99,101,5796,5800,121,59,1,1038,118,101,59,1,364,4,2,105,121,5811,5820,114,99,5,219,1,59,5818,1,219,59,1,1059,98,108,97,99,59,1,368,114,59,3,55349,56600,114,97,118,101,5,217,1,59,5844,1,217,97,99,114,59,1,362,4,2,100,105,5858,5905,101,114,4,2,66,80,5866,5892,4,2,97,114,5872,5876,114,59,1,95,97,99,4,2,101,107,5884,5887,59,1,9183,101,116,59,1,9141,97,114,101,110,116,104,101,115,105,115,59,1,9181,111,110,4,2,59,80,5913,5915,1,8899,108,117,115,59,1,8846,4,2,103,112,5927,5932,111,110,59,1,370,102,59,3,55349,56652,4,8,65,68,69,84,97,100,112,115,5955,5985,5996,6009,6026,6033,6044,6075,114,114,111,119,4,3,59,66,68,5967,5969,5974,1,8593,97,114,59,1,10514,111,119,110,65,114,114,111,119,59,1,8645,111,119,110,65,114,114,111,119,59,1,8597,113,117,105,108,105,98,114,105,117,109,59,1,10606,101,101,4,2,59,65,6017,6019,1,8869,114,114,111,119,59,1,8613,114,114,111,119,59,1,8657,111,119,110,97,114,114,111,119,59,1,8661,101,114,4,2,76,82,6052,6063,101,102,116,65,114,114,111,119,59,1,8598,105,103,104,116,65,114,114,111,119,59,1,8599,105,4,2,59,108,6082,6084,1,978,111,110,59,1,933,105,110,103,59,1,366,99,114,59,3,55349,56496,105,108,100,101,59,1,360,109,108,5,220,1,59,6115,1,220,4,9,68,98,99,100,101,102,111,115,118,6137,6143,6148,6152,6166,6250,6255,6261,6267,97,115,104,59,1,8875,97,114,59,1,10987,121,59,1,1042,97,115,104,4,2,59,108,6161,6163,1,8873,59,1,10982,4,2,101,114,6172,6175,59,1,8897,4,3,98,116,121,6183,6188,6238,97,114,59,1,8214,4,2,59,105,6194,6196,1,8214,99,97,108,4,4,66,76,83,84,6209,6214,6220,6231,97,114,59,1,8739,105,110,101,59,1,124,101,112,97,114,97,116,111,114,59,1,10072,105,108,100,101,59,1,8768,84,104,105,110,83,112,97,99,101,59,1,8202,114,59,3,55349,56601,112,102,59,3,55349,56653,99,114,59,3,55349,56497,100,97,115,104,59,1,8874,4,5,99,101,102,111,115,6286,6292,6298,6303,6309,105,114,99,59,1,372,100,103,101,59,1,8896,114,59,3,55349,56602,112,102,59,3,55349,56654,99,114,59,3,55349,56498,4,4,102,105,111,115,6325,6330,6333,6339,114,59,3,55349,56603,59,1,926,112,102,59,3,55349,56655,99,114,59,3,55349,56499,4,9,65,73,85,97,99,102,111,115,117,6365,6370,6375,6380,6391,6405,6410,6416,6422,99,121,59,1,1071,99,121,59,1,1031,99,121,59,1,1070,99,117,116,101,5,221,1,59,6389,1,221,4,2,105,121,6397,6402,114,99,59,1,374,59,1,1067,114,59,3,55349,56604,112,102,59,3,55349,56656,99,114,59,3,55349,56500,109,108,59,1,376,4,8,72,97,99,100,101,102,111,115,6445,6450,6457,6472,6477,6501,6505,6510,99,121,59,1,1046,99,117,116,101,59,1,377,4,2,97,121,6463,6469,114,111,110,59,1,381,59,1,1047,111,116,59,1,379,4,2,114,116,6483,6497,111,87,105,100,116,104,83,112,97,99,101,59,1,8203,97,59,1,918,114,59,1,8488,112,102,59,1,8484,99,114,59,3,55349,56501,4,16,97,98,99,101,102,103,108,109,110,111,112,114,115,116,117,119,6550,6561,6568,6612,6622,6634,6645,6672,6699,6854,6870,6923,6933,6963,6974,6983,99,117,116,101,5,225,1,59,6559,1,225,114,101,118,101,59,1,259,4,6,59,69,100,105,117,121,6582,6584,6588,6591,6600,6609,1,8766,59,3,8766,819,59,1,8767,114,99,5,226,1,59,6598,1,226,116,101,5,180,1,59,6607,1,180,59,1,1072,108,105,103,5,230,1,59,6620,1,230,4,2,59,114,6628,6630,1,8289,59,3,55349,56606,114,97,118,101,5,224,1,59,6643,1,224,4,2,101,112,6651,6667,4,2,102,112,6657,6663,115,121,109,59,1,8501,104,59,1,8501,104,97,59,1,945,4,2,97,112,6678,6692,4,2,99,108,6684,6688,114,59,1,257,103,59,1,10815,5,38,1,59,6697,1,38,4,2,100,103,6705,6737,4,5,59,97,100,115,118,6717,6719,6724,6727,6734,1,8743,110,100,59,1,10837,59,1,10844,108,111,112,101,59,1,10840,59,1,10842,4,7,59,101,108,109,114,115,122,6753,6755,6758,6762,6814,6835,6848,1,8736,59,1,10660,101,59,1,8736,115,100,4,2,59,97,6770,6772,1,8737,4,8,97,98,99,100,101,102,103,104,6790,6793,6796,6799,6802,6805,6808,6811,59,1,10664,59,1,10665,59,1,10666,59,1,10667,59,1,10668,59,1,10669,59,1,10670,59,1,10671,116,4,2,59,118,6821,6823,1,8735,98,4,2,59,100,6830,6832,1,8894,59,1,10653,4,2,112,116,6841,6845,104,59,1,8738,59,1,197,97,114,114,59,1,9084,4,2,103,112,6860,6865,111,110,59,1,261,102,59,3,55349,56658,4,7,59,69,97,101,105,111,112,6886,6888,6891,6897,6900,6904,6908,1,8776,59,1,10864,99,105,114,59,1,10863,59,1,8778,100,59,1,8779,115,59,1,39,114,111,120,4,2,59,101,6917,6919,1,8776,113,59,1,8778,105,110,103,5,229,1,59,6931,1,229,4,3,99,116,121,6941,6946,6949,114,59,3,55349,56502,59,1,42,109,112,4,2,59,101,6957,6959,1,8776,113,59,1,8781,105,108,100,101,5,227,1,59,6972,1,227,109,108,5,228,1,59,6981,1,228,4,2,99,105,6989,6997,111,110,105,110,116,59,1,8755,110,116,59,1,10769,4,16,78,97,98,99,100,101,102,105,107,108,110,111,112,114,115,117,7036,7041,7119,7135,7149,7155,7219,7224,7347,7354,7463,7489,7786,7793,7814,7866,111,116,59,1,10989,4,2,99,114,7047,7094,107,4,4,99,101,112,115,7058,7064,7073,7080,111,110,103,59,1,8780,112,115,105,108,111,110,59,1,1014,114,105,109,101,59,1,8245,105,109,4,2,59,101,7088,7090,1,8765,113,59,1,8909,4,2,118,119,7100,7105,101,101,59,1,8893,101,100,4,2,59,103,7113,7115,1,8965,101,59,1,8965,114,107,4,2,59,116,7127,7129,1,9141,98,114,107,59,1,9142,4,2,111,121,7141,7146,110,103,59,1,8780,59,1,1073,113,117,111,59,1,8222,4,5,99,109,112,114,116,7167,7181,7188,7193,7199,97,117,115,4,2,59,101,7176,7178,1,8757,59,1,8757,112,116,121,118,59,1,10672,115,105,59,1,1014,110,111,117,59,1,8492,4,3,97,104,119,7207,7210,7213,59,1,946,59,1,8502,101,101,110,59,1,8812,114,59,3,55349,56607,103,4,7,99,111,115,116,117,118,119,7241,7262,7288,7305,7328,7335,7340,4,3,97,105,117,7249,7253,7258,112,59,1,8898,114,99,59,1,9711,112,59,1,8899,4,3,100,112,116,7270,7275,7281,111,116,59,1,10752,108,117,115,59,1,10753,105,109,101,115,59,1,10754,4,2,113,116,7294,7300,99,117,112,59,1,10758,97,114,59,1,9733,114,105,97,110,103,108,101,4,2,100,117,7318,7324,111,119,110,59,1,9661,112,59,1,9651,112,108,117,115,59,1,10756,101,101,59,1,8897,101,100,103,101,59,1,8896,97,114,111,119,59,1,10509,4,3,97,107,111,7362,7436,7458,4,2,99,110,7368,7432,107,4,3,108,115,116,7377,7386,7394,111,122,101,110,103,101,59,1,10731,113,117,97,114,101,59,1,9642,114,105,97,110,103,108,101,4,4,59,100,108,114,7411,7413,7419,7425,1,9652,111,119,110,59,1,9662,101,102,116,59,1,9666,105,103,104,116,59,1,9656,107,59,1,9251,4,2,49,51,7442,7454,4,2,50,52,7448,7451,59,1,9618,59,1,9617,52,59,1,9619,99,107,59,1,9608,4,2,101,111,7469,7485,4,2,59,113,7475,7478,3,61,8421,117,105,118,59,3,8801,8421,116,59,1,8976,4,4,112,116,119,120,7499,7504,7517,7523,102,59,3,55349,56659,4,2,59,116,7510,7512,1,8869,111,109,59,1,8869,116,105,101,59,1,8904,4,12,68,72,85,86,98,100,104,109,112,116,117,118,7549,7571,7597,7619,7655,7660,7682,7708,7715,7721,7728,7750,4,4,76,82,108,114,7559,7562,7565,7568,59,1,9559,59,1,9556,59,1,9558,59,1,9555,4,5,59,68,85,100,117,7583,7585,7588,7591,7594,1,9552,59,1,9574,59,1,9577,59,1,9572,59,1,9575,4,4,76,82,108,114,7607,7610,7613,7616,59,1,9565,59,1,9562,59,1,9564,59,1,9561,4,7,59,72,76,82,104,108,114,7635,7637,7640,7643,7646,7649,7652,1,9553,59,1,9580,59,1,9571,59,1,9568,59,1,9579,59,1,9570,59,1,9567,111,120,59,1,10697,4,4,76,82,108,114,7670,7673,7676,7679,59,1,9557,59,1,9554,59,1,9488,59,1,9484,4,5,59,68,85,100,117,7694,7696,7699,7702,7705,1,9472,59,1,9573,59,1,9576,59,1,9516,59,1,9524,105,110,117,115,59,1,8863,108,117,115,59,1,8862,105,109,101,115,59,1,8864,4,4,76,82,108,114,7738,7741,7744,7747,59,1,9563,59,1,9560,59,1,9496,59,1,9492,4,7,59,72,76,82,104,108,114,7766,7768,7771,7774,7777,7780,7783,1,9474,59,1,9578,59,1,9569,59,1,9566,59,1,9532,59,1,9508,59,1,9500,114,105,109,101,59,1,8245,4,2,101,118,7799,7804,118,101,59,1,728,98,97,114,5,166,1,59,7812,1,166,4,4,99,101,105,111,7824,7829,7834,7846,114,59,3,55349,56503,109,105,59,1,8271,109,4,2,59,101,7841,7843,1,8765,59,1,8909,108,4,3,59,98,104,7855,7857,7860,1,92,59,1,10693,115,117,98,59,1,10184,4,2,108,109,7872,7885,108,4,2,59,101,7879,7881,1,8226,116,59,1,8226,112,4,3,59,69,101,7894,7896,7899,1,8782,59,1,10926,4,2,59,113,7905,7907,1,8783,59,1,8783,4,15,97,99,100,101,102,104,105,108,111,114,115,116,117,119,121,7942,8021,8075,8080,8121,8126,8157,8279,8295,8430,8446,8485,8491,8707,8726,4,3,99,112,114,7950,7956,8007,117,116,101,59,1,263,4,6,59,97,98,99,100,115,7970,7972,7977,7984,7998,8003,1,8745,110,100,59,1,10820,114,99,117,112,59,1,10825,4,2,97,117,7990,7994,112,59,1,10827,112,59,1,10823,111,116,59,1,10816,59,3,8745,65024,4,2,101,111,8013,8017,116,59,1,8257,110,59,1,711,4,4,97,101,105,117,8031,8046,8056,8061,4,2,112,114,8037,8041,115,59,1,10829,111,110,59,1,269,100,105,108,5,231,1,59,8054,1,231,114,99,59,1,265,112,115,4,2,59,115,8069,8071,1,10828,109,59,1,10832,111,116,59,1,267,4,3,100,109,110,8088,8097,8104,105,108,5,184,1,59,8095,1,184,112,116,121,118,59,1,10674,116,5,162,2,59,101,8112,8114,1,162,114,100,111,116,59,1,183,114,59,3,55349,56608,4,3,99,101,105,8134,8138,8154,121,59,1,1095,99,107,4,2,59,109,8146,8148,1,10003,97,114,107,59,1,10003,59,1,967,114,4,7,59,69,99,101,102,109,115,8174,8176,8179,8258,8261,8268,8273,1,9675,59,1,10691,4,3,59,101,108,8187,8189,8193,1,710,113,59,1,8791,101,4,2,97,100,8200,8223,114,114,111,119,4,2,108,114,8210,8216,101,102,116,59,1,8634,105,103,104,116,59,1,8635,4,5,82,83,97,99,100,8235,8238,8241,8246,8252,59,1,174,59,1,9416,115,116,59,1,8859,105,114,99,59,1,8858,97,115,104,59,1,8861,59,1,8791,110,105,110,116,59,1,10768,105,100,59,1,10991,99,105,114,59,1,10690,117,98,115,4,2,59,117,8288,8290,1,9827,105,116,59,1,9827,4,4,108,109,110,112,8305,8326,8376,8400,111,110,4,2,59,101,8313,8315,1,58,4,2,59,113,8321,8323,1,8788,59,1,8788,4,2,109,112,8332,8344,97,4,2,59,116,8339,8341,1,44,59,1,64,4,3,59,102,108,8352,8354,8358,1,8705,110,59,1,8728,101,4,2,109,120,8365,8371,101,110,116,59,1,8705,101,115,59,1,8450,4,2,103,105,8382,8395,4,2,59,100,8388,8390,1,8773,111,116,59,1,10861,110,116,59,1,8750,4,3,102,114,121,8408,8412,8417,59,3,55349,56660,111,100,59,1,8720,5,169,2,59,115,8424,8426,1,169,114,59,1,8471,4,2,97,111,8436,8441,114,114,59,1,8629,115,115,59,1,10007,4,2,99,117,8452,8457,114,59,3,55349,56504,4,2,98,112,8463,8474,4,2,59,101,8469,8471,1,10959,59,1,10961,4,2,59,101,8480,8482,1,10960,59,1,10962,100,111,116,59,1,8943,4,7,100,101,108,112,114,118,119,8507,8522,8536,8550,8600,8697,8702,97,114,114,4,2,108,114,8516,8519,59,1,10552,59,1,10549,4,2,112,115,8528,8532,114,59,1,8926,99,59,1,8927,97,114,114,4,2,59,112,8545,8547,1,8630,59,1,10557,4,6,59,98,99,100,111,115,8564,8566,8573,8587,8592,8596,1,8746,114,99,97,112,59,1,10824,4,2,97,117,8579,8583,112,59,1,10822,112,59,1,10826,111,116,59,1,8845,114,59,1,10821,59,3,8746,65024,4,4,97,108,114,118,8610,8623,8663,8672,114,114,4,2,59,109,8618,8620,1,8631,59,1,10556,121,4,3,101,118,119,8632,8651,8656,113,4,2,112,115,8639,8645,114,101,99,59,1,8926,117,99,99,59,1,8927,101,101,59,1,8910,101,100,103,101,59,1,8911,101,110,5,164,1,59,8670,1,164,101,97,114,114,111,119,4,2,108,114,8684,8690,101,102,116,59,1,8630,105,103,104,116,59,1,8631,101,101,59,1,8910,101,100,59,1,8911,4,2,99,105,8713,8721,111,110,105,110,116,59,1,8754,110,116,59,1,8753,108,99,116,121,59,1,9005,4,19,65,72,97,98,99,100,101,102,104,105,106,108,111,114,115,116,117,119,122,8773,8778,8783,8821,8839,8854,8887,8914,8930,8944,9036,9041,9058,9197,9227,9258,9281,9297,9305,114,114,59,1,8659,97,114,59,1,10597,4,4,103,108,114,115,8793,8799,8805,8809,103,101,114,59,1,8224,101,116,104,59,1,8504,114,59,1,8595,104,4,2,59,118,8816,8818,1,8208,59,1,8867,4,2,107,108,8827,8834,97,114,111,119,59,1,10511,97,99,59,1,733,4,2,97,121,8845,8851,114,111,110,59,1,271,59,1,1076,4,3,59,97,111,8862,8864,8880,1,8518,4,2,103,114,8870,8876,103,101,114,59,1,8225,114,59,1,8650,116,115,101,113,59,1,10871,4,3,103,108,109,8895,8902,8907,5,176,1,59,8900,1,176,116,97,59,1,948,112,116,121,118,59,1,10673,4,2,105,114,8920,8926,115,104,116,59,1,10623,59,3,55349,56609,97,114,4,2,108,114,8938,8941,59,1,8643,59,1,8642,4,5,97,101,103,115,118,8956,8986,8989,8996,9001,109,4,3,59,111,115,8965,8967,8983,1,8900,110,100,4,2,59,115,8975,8977,1,8900,117,105,116,59,1,9830,59,1,9830,59,1,168,97,109,109,97,59,1,989,105,110,59,1,8946,4,3,59,105,111,9009,9011,9031,1,247,100,101,5,247,2,59,111,9020,9022,1,247,110,116,105,109,101,115,59,1,8903,110,120,59,1,8903,99,121,59,1,1106,99,4,2,111,114,9048,9053,114,110,59,1,8990,111,112,59,1,8973,4,5,108,112,116,117,119,9070,9076,9081,9130,9144,108,97,114,59,1,36,102,59,3,55349,56661,4,5,59,101,109,112,115,9093,9095,9109,9116,9122,1,729,113,4,2,59,100,9102,9104,1,8784,111,116,59,1,8785,105,110,117,115,59,1,8760,108,117,115,59,1,8724,113,117,97,114,101,59,1,8865,98,108,101,98,97,114,119,101,100,103,101,59,1,8966,110,4,3,97,100,104,9153,9160,9172,114,114,111,119,59,1,8595,111,119,110,97,114,114,111,119,115,59,1,8650,97,114,112,111,111,110,4,2,108,114,9184,9190,101,102,116,59,1,8643,105,103,104,116,59,1,8642,4,2,98,99,9203,9211,107,97,114,111,119,59,1,10512,4,2,111,114,9217,9222,114,110,59,1,8991,111,112,59,1,8972,4,3,99,111,116,9235,9248,9252,4,2,114,121,9241,9245,59,3,55349,56505,59,1,1109,108,59,1,10742,114,111,107,59,1,273,4,2,100,114,9264,9269,111,116,59,1,8945,105,4,2,59,102,9276,9278,1,9663,59,1,9662,4,2,97,104,9287,9292,114,114,59,1,8693,97,114,59,1,10607,97,110,103,108,101,59,1,10662,4,2,99,105,9311,9315,121,59,1,1119,103,114,97,114,114,59,1,10239,4,18,68,97,99,100,101,102,103,108,109,110,111,112,113,114,115,116,117,120,9361,9376,9398,9439,9444,9447,9462,9495,9531,9585,9598,9614,9659,9755,9771,9792,9808,9826,4,2,68,111,9367,9372,111,116,59,1,10871,116,59,1,8785,4,2,99,115,9382,9392,117,116,101,5,233,1,59,9390,1,233,116,101,114,59,1,10862,4,4,97,105,111,121,9408,9414,9430,9436,114,111,110,59,1,283,114,4,2,59,99,9421,9423,1,8790,5,234,1,59,9428,1,234,108,111,110,59,1,8789,59,1,1101,111,116,59,1,279,59,1,8519,4,2,68,114,9453,9458,111,116,59,1,8786,59,3,55349,56610,4,3,59,114,115,9470,9472,9482,1,10906,97,118,101,5,232,1,59,9480,1,232,4,2,59,100,9488,9490,1,10902,111,116,59,1,10904,4,4,59,105,108,115,9505,9507,9515,9518,1,10905,110,116,101,114,115,59,1,9191,59,1,8467,4,2,59,100,9524,9526,1,10901,111,116,59,1,10903,4,3,97,112,115,9539,9544,9564,99,114,59,1,275,116,121,4,3,59,115,118,9554,9556,9561,1,8709,101,116,59,1,8709,59,1,8709,112,4,2,49,59,9571,9583,4,2,51,52,9577,9580,59,1,8196,59,1,8197,1,8195,4,2,103,115,9591,9594,59,1,331,112,59,1,8194,4,2,103,112,9604,9609,111,110,59,1,281,102,59,3,55349,56662,4,3,97,108,115,9622,9635,9640,114,4,2,59,115,9629,9631,1,8917,108,59,1,10723,117,115,59,1,10865,105,4,3,59,108,118,9649,9651,9656,1,949,111,110,59,1,949,59,1,1013,4,4,99,115,117,118,9669,9686,9716,9747,4,2,105,111,9675,9680,114,99,59,1,8790,108,111,110,59,1,8789,4,2,105,108,9692,9696,109,59,1,8770,97,110,116,4,2,103,108,9705,9710,116,114,59,1,10902,101,115,115,59,1,10901,4,3,97,101,105,9724,9729,9734,108,115,59,1,61,115,116,59,1,8799,118,4,2,59,68,9741,9743,1,8801,68,59,1,10872,112,97,114,115,108,59,1,10725,4,2,68,97,9761,9766,111,116,59,1,8787,114,114,59,1,10609,4,3,99,100,105,9779,9783,9788,114,59,1,8495,111,116,59,1,8784,109,59,1,8770,4,2,97,104,9798,9801,59,1,951,5,240,1,59,9806,1,240,4,2,109,114,9814,9822,108,5,235,1,59,9820,1,235,111,59,1,8364,4,3,99,105,112,9834,9838,9843,108,59,1,33,115,116,59,1,8707,4,2,101,111,9849,9859,99,116,97,116,105,111,110,59,1,8496,110,101,110,116,105,97,108,101,59,1,8519,4,12,97,99,101,102,105,106,108,110,111,112,114,115,9896,9910,9914,9921,9954,9960,9967,9989,9994,10027,10036,10164,108,108,105,110,103,100,111,116,115,101,113,59,1,8786,121,59,1,1092,109,97,108,101,59,1,9792,4,3,105,108,114,9929,9935,9950,108,105,103,59,1,64259,4,2,105,108,9941,9945,103,59,1,64256,105,103,59,1,64260,59,3,55349,56611,108,105,103,59,1,64257,108,105,103,59,3,102,106,4,3,97,108,116,9975,9979,9984,116,59,1,9837,105,103,59,1,64258,110,115,59,1,9649,111,102,59,1,402,4,2,112,114,1e4,10005,102,59,3,55349,56663,4,2,97,107,10011,10016,108,108,59,1,8704,4,2,59,118,10022,10024,1,8916,59,1,10969,97,114,116,105,110,116,59,1,10765,4,2,97,111,10042,10159,4,2,99,115,10048,10155,4,6,49,50,51,52,53,55,10062,10102,10114,10135,10139,10151,4,6,50,51,52,53,54,56,10076,10083,10086,10093,10096,10099,5,189,1,59,10081,1,189,59,1,8531,5,188,1,59,10091,1,188,59,1,8533,59,1,8537,59,1,8539,4,2,51,53,10108,10111,59,1,8532,59,1,8534,4,3,52,53,56,10122,10129,10132,5,190,1,59,10127,1,190,59,1,8535,59,1,8540,53,59,1,8536,4,2,54,56,10145,10148,59,1,8538,59,1,8541,56,59,1,8542,108,59,1,8260,119,110,59,1,8994,99,114,59,3,55349,56507,4,17,69,97,98,99,100,101,102,103,105,106,108,110,111,114,115,116,118,10206,10217,10247,10254,10268,10273,10358,10363,10374,10380,10385,10406,10458,10464,10470,10497,10610,4,2,59,108,10212,10214,1,8807,59,1,10892,4,3,99,109,112,10225,10231,10244,117,116,101,59,1,501,109,97,4,2,59,100,10239,10241,1,947,59,1,989,59,1,10886,114,101,118,101,59,1,287,4,2,105,121,10260,10265,114,99,59,1,285,59,1,1075,111,116,59,1,289,4,4,59,108,113,115,10283,10285,10288,10308,1,8805,59,1,8923,4,3,59,113,115,10296,10298,10301,1,8805,59,1,8807,108,97,110,116,59,1,10878,4,4,59,99,100,108,10318,10320,10324,10345,1,10878,99,59,1,10921,111,116,4,2,59,111,10332,10334,1,10880,4,2,59,108,10340,10342,1,10882,59,1,10884,4,2,59,101,10351,10354,3,8923,65024,115,59,1,10900,114,59,3,55349,56612,4,2,59,103,10369,10371,1,8811,59,1,8921,109,101,108,59,1,8503,99,121,59,1,1107,4,4,59,69,97,106,10395,10397,10400,10403,1,8823,59,1,10898,59,1,10917,59,1,10916,4,4,69,97,101,115,10416,10419,10434,10453,59,1,8809,112,4,2,59,112,10426,10428,1,10890,114,111,120,59,1,10890,4,2,59,113,10440,10442,1,10888,4,2,59,113,10448,10450,1,10888,59,1,8809,105,109,59,1,8935,112,102,59,3,55349,56664,97,118,101,59,1,96,4,2,99,105,10476,10480,114,59,1,8458,109,4,3,59,101,108,10489,10491,10494,1,8819,59,1,10894,59,1,10896,5,62,6,59,99,100,108,113,114,10512,10514,10527,10532,10538,10545,1,62,4,2,99,105,10520,10523,59,1,10919,114,59,1,10874,111,116,59,1,8919,80,97,114,59,1,10645,117,101,115,116,59,1,10876,4,5,97,100,101,108,115,10557,10574,10579,10599,10605,4,2,112,114,10563,10570,112,114,111,120,59,1,10886,114,59,1,10616,111,116,59,1,8919,113,4,2,108,113,10586,10592,101,115,115,59,1,8923,108,101,115,115,59,1,10892,101,115,115,59,1,8823,105,109,59,1,8819,4,2,101,110,10616,10626,114,116,110,101,113,113,59,3,8809,65024,69,59,3,8809,65024,4,10,65,97,98,99,101,102,107,111,115,121,10653,10658,10713,10718,10724,10760,10765,10786,10850,10875,114,114,59,1,8660,4,4,105,108,109,114,10668,10674,10678,10684,114,115,112,59,1,8202,102,59,1,189,105,108,116,59,1,8459,4,2,100,114,10690,10695,99,121,59,1,1098,4,3,59,99,119,10703,10705,10710,1,8596,105,114,59,1,10568,59,1,8621,97,114,59,1,8463,105,114,99,59,1,293,4,3,97,108,114,10732,10748,10754,114,116,115,4,2,59,117,10741,10743,1,9829,105,116,59,1,9829,108,105,112,59,1,8230,99,111,110,59,1,8889,114,59,3,55349,56613,115,4,2,101,119,10772,10779,97,114,111,119,59,1,10533,97,114,111,119,59,1,10534,4,5,97,109,111,112,114,10798,10803,10809,10839,10844,114,114,59,1,8703,116,104,116,59,1,8763,107,4,2,108,114,10816,10827,101,102,116,97,114,114,111,119,59,1,8617,105,103,104,116,97,114,114,111,119,59,1,8618,102,59,3,55349,56665,98,97,114,59,1,8213,4,3,99,108,116,10858,10863,10869,114,59,3,55349,56509,97,115,104,59,1,8463,114,111,107,59,1,295,4,2,98,112,10881,10887,117,108,108,59,1,8259,104,101,110,59,1,8208,4,15,97,99,101,102,103,105,106,109,110,111,112,113,115,116,117,10925,10936,10958,10977,10990,11001,11039,11045,11101,11192,11220,11226,11237,11285,11299,99,117,116,101,5,237,1,59,10934,1,237,4,3,59,105,121,10944,10946,10955,1,8291,114,99,5,238,1,59,10953,1,238,59,1,1080,4,2,99,120,10964,10968,121,59,1,1077,99,108,5,161,1,59,10975,1,161,4,2,102,114,10983,10986,59,1,8660,59,3,55349,56614,114,97,118,101,5,236,1,59,10999,1,236,4,4,59,105,110,111,11011,11013,11028,11034,1,8520,4,2,105,110,11019,11024,110,116,59,1,10764,116,59,1,8749,102,105,110,59,1,10716,116,97,59,1,8489,108,105,103,59,1,307,4,3,97,111,112,11053,11092,11096,4,3,99,103,116,11061,11065,11088,114,59,1,299,4,3,101,108,112,11073,11076,11082,59,1,8465,105,110,101,59,1,8464,97,114,116,59,1,8465,104,59,1,305,102,59,1,8887,101,100,59,1,437,4,5,59,99,102,111,116,11113,11115,11121,11136,11142,1,8712,97,114,101,59,1,8453,105,110,4,2,59,116,11129,11131,1,8734,105,101,59,1,10717,100,111,116,59,1,305,4,5,59,99,101,108,112,11154,11156,11161,11179,11186,1,8747,97,108,59,1,8890,4,2,103,114,11167,11173,101,114,115,59,1,8484,99,97,108,59,1,8890,97,114,104,107,59,1,10775,114,111,100,59,1,10812,4,4,99,103,112,116,11202,11206,11211,11216,121,59,1,1105,111,110,59,1,303,102,59,3,55349,56666,97,59,1,953,114,111,100,59,1,10812,117,101,115,116,5,191,1,59,11235,1,191,4,2,99,105,11243,11248,114,59,3,55349,56510,110,4,5,59,69,100,115,118,11261,11263,11266,11271,11282,1,8712,59,1,8953,111,116,59,1,8949,4,2,59,118,11277,11279,1,8948,59,1,8947,59,1,8712,4,2,59,105,11291,11293,1,8290,108,100,101,59,1,297,4,2,107,109,11305,11310,99,121,59,1,1110,108,5,239,1,59,11316,1,239,4,6,99,102,109,111,115,117,11332,11346,11351,11357,11363,11380,4,2,105,121,11338,11343,114,99,59,1,309,59,1,1081,114,59,3,55349,56615,97,116,104,59,1,567,112,102,59,3,55349,56667,4,2,99,101,11369,11374,114,59,3,55349,56511,114,99,121,59,1,1112,107,99,121,59,1,1108,4,8,97,99,102,103,104,106,111,115,11404,11418,11433,11438,11445,11450,11455,11461,112,112,97,4,2,59,118,11413,11415,1,954,59,1,1008,4,2,101,121,11424,11430,100,105,108,59,1,311,59,1,1082,114,59,3,55349,56616,114,101,101,110,59,1,312,99,121,59,1,1093,99,121,59,1,1116,112,102,59,3,55349,56668,99,114,59,3,55349,56512,4,23,65,66,69,72,97,98,99,100,101,102,103,104,106,108,109,110,111,112,114,115,116,117,118,11515,11538,11544,11555,11560,11721,11780,11818,11868,12136,12160,12171,12203,12208,12246,12275,12327,12509,12523,12569,12641,12732,12752,4,3,97,114,116,11523,11528,11532,114,114,59,1,8666,114,59,1,8656,97,105,108,59,1,10523,97,114,114,59,1,10510,4,2,59,103,11550,11552,1,8806,59,1,10891,97,114,59,1,10594,4,9,99,101,103,109,110,112,113,114,116,11580,11586,11594,11600,11606,11624,11627,11636,11694,117,116,101,59,1,314,109,112,116,121,118,59,1,10676,114,97,110,59,1,8466,98,100,97,59,1,955,103,4,3,59,100,108,11615,11617,11620,1,10216,59,1,10641,101,59,1,10216,59,1,10885,117,111,5,171,1,59,11634,1,171,114,4,8,59,98,102,104,108,112,115,116,11655,11657,11669,11673,11677,11681,11685,11690,1,8592,4,2,59,102,11663,11665,1,8676,115,59,1,10527,115,59,1,10525,107,59,1,8617,112,59,1,8619,108,59,1,10553,105,109,59,1,10611,108,59,1,8610,4,3,59,97,101,11702,11704,11709,1,10923,105,108,59,1,10521,4,2,59,115,11715,11717,1,10925,59,3,10925,65024,4,3,97,98,114,11729,11734,11739,114,114,59,1,10508,114,107,59,1,10098,4,2,97,107,11745,11758,99,4,2,101,107,11752,11755,59,1,123,59,1,91,4,2,101,115,11764,11767,59,1,10635,108,4,2,100,117,11774,11777,59,1,10639,59,1,10637,4,4,97,101,117,121,11790,11796,11811,11815,114,111,110,59,1,318,4,2,100,105,11802,11807,105,108,59,1,316,108,59,1,8968,98,59,1,123,59,1,1083,4,4,99,113,114,115,11828,11832,11845,11864,97,59,1,10550,117,111,4,2,59,114,11840,11842,1,8220,59,1,8222,4,2,100,117,11851,11857,104,97,114,59,1,10599,115,104,97,114,59,1,10571,104,59,1,8626,4,5,59,102,103,113,115,11880,11882,12008,12011,12031,1,8804,116,4,5,97,104,108,114,116,11895,11913,11935,11947,11996,114,114,111,119,4,2,59,116,11905,11907,1,8592,97,105,108,59,1,8610,97,114,112,111,111,110,4,2,100,117,11925,11931,111,119,110,59,1,8637,112,59,1,8636,101,102,116,97,114,114,111,119,115,59,1,8647,105,103,104,116,4,3,97,104,115,11959,11974,11984,114,114,111,119,4,2,59,115,11969,11971,1,8596,59,1,8646,97,114,112,111,111,110,115,59,1,8651,113,117,105,103,97,114,114,111,119,59,1,8621,104,114,101,101,116,105,109,101,115,59,1,8907,59,1,8922,4,3,59,113,115,12019,12021,12024,1,8804,59,1,8806,108,97,110,116,59,1,10877,4,5,59,99,100,103,115,12043,12045,12049,12070,12083,1,10877,99,59,1,10920,111,116,4,2,59,111,12057,12059,1,10879,4,2,59,114,12065,12067,1,10881,59,1,10883,4,2,59,101,12076,12079,3,8922,65024,115,59,1,10899,4,5,97,100,101,103,115,12095,12103,12108,12126,12131,112,112,114,111,120,59,1,10885,111,116,59,1,8918,113,4,2,103,113,12115,12120,116,114,59,1,8922,103,116,114,59,1,10891,116,114,59,1,8822,105,109,59,1,8818,4,3,105,108,114,12144,12150,12156,115,104,116,59,1,10620,111,111,114,59,1,8970,59,3,55349,56617,4,2,59,69,12166,12168,1,8822,59,1,10897,4,2,97,98,12177,12198,114,4,2,100,117,12184,12187,59,1,8637,4,2,59,108,12193,12195,1,8636,59,1,10602,108,107,59,1,9604,99,121,59,1,1113,4,5,59,97,99,104,116,12220,12222,12227,12235,12241,1,8810,114,114,59,1,8647,111,114,110,101,114,59,1,8990,97,114,100,59,1,10603,114,105,59,1,9722,4,2,105,111,12252,12258,100,111,116,59,1,320,117,115,116,4,2,59,97,12267,12269,1,9136,99,104,101,59,1,9136,4,4,69,97,101,115,12285,12288,12303,12322,59,1,8808,112,4,2,59,112,12295,12297,1,10889,114,111,120,59,1,10889,4,2,59,113,12309,12311,1,10887,4,2,59,113,12317,12319,1,10887,59,1,8808,105,109,59,1,8934,4,8,97,98,110,111,112,116,119,122,12345,12359,12364,12421,12446,12467,12474,12490,4,2,110,114,12351,12355,103,59,1,10220,114,59,1,8701,114,107,59,1,10214,103,4,3,108,109,114,12373,12401,12409,101,102,116,4,2,97,114,12382,12389,114,114,111,119,59,1,10229,105,103,104,116,97,114,114,111,119,59,1,10231,97,112,115,116,111,59,1,10236,105,103,104,116,97,114,114,111,119,59,1,10230,112,97,114,114,111,119,4,2,108,114,12433,12439,101,102,116,59,1,8619,105,103,104,116,59,1,8620,4,3,97,102,108,12454,12458,12462,114,59,1,10629,59,3,55349,56669,117,115,59,1,10797,105,109,101,115,59,1,10804,4,2,97,98,12480,12485,115,116,59,1,8727,97,114,59,1,95,4,3,59,101,102,12498,12500,12506,1,9674,110,103,101,59,1,9674,59,1,10731,97,114,4,2,59,108,12517,12519,1,40,116,59,1,10643,4,5,97,99,104,109,116,12535,12540,12548,12561,12564,114,114,59,1,8646,111,114,110,101,114,59,1,8991,97,114,4,2,59,100,12556,12558,1,8651,59,1,10605,59,1,8206,114,105,59,1,8895,4,6,97,99,104,105,113,116,12583,12589,12594,12597,12614,12635,113,117,111,59,1,8249,114,59,3,55349,56513,59,1,8624,109,4,3,59,101,103,12606,12608,12611,1,8818,59,1,10893,59,1,10895,4,2,98,117,12620,12623,59,1,91,111,4,2,59,114,12630,12632,1,8216,59,1,8218,114,111,107,59,1,322,5,60,8,59,99,100,104,105,108,113,114,12660,12662,12675,12680,12686,12692,12698,12705,1,60,4,2,99,105,12668,12671,59,1,10918,114,59,1,10873,111,116,59,1,8918,114,101,101,59,1,8907,109,101,115,59,1,8905,97,114,114,59,1,10614,117,101,115,116,59,1,10875,4,2,80,105,12711,12716,97,114,59,1,10646,4,3,59,101,102,12724,12726,12729,1,9667,59,1,8884,59,1,9666,114,4,2,100,117,12739,12746,115,104,97,114,59,1,10570,104,97,114,59,1,10598,4,2,101,110,12758,12768,114,116,110,101,113,113,59,3,8808,65024,69,59,3,8808,65024,4,14,68,97,99,100,101,102,104,105,108,110,111,112,115,117,12803,12809,12893,12908,12914,12928,12933,12937,13011,13025,13032,13049,13052,13069,68,111,116,59,1,8762,4,4,99,108,112,114,12819,12827,12849,12887,114,5,175,1,59,12825,1,175,4,2,101,116,12833,12836,59,1,9794,4,2,59,101,12842,12844,1,10016,115,101,59,1,10016,4,2,59,115,12855,12857,1,8614,116,111,4,4,59,100,108,117,12869,12871,12877,12883,1,8614,111,119,110,59,1,8615,101,102,116,59,1,8612,112,59,1,8613,107,101,114,59,1,9646,4,2,111,121,12899,12905,109,109,97,59,1,10793,59,1,1084,97,115,104,59,1,8212,97,115,117,114,101,100,97,110,103,108,101,59,1,8737,114,59,3,55349,56618,111,59,1,8487,4,3,99,100,110,12945,12954,12985,114,111,5,181,1,59,12952,1,181,4,4,59,97,99,100,12964,12966,12971,12976,1,8739,115,116,59,1,42,105,114,59,1,10992,111,116,5,183,1,59,12983,1,183,117,115,4,3,59,98,100,12995,12997,13e3,1,8722,59,1,8863,4,2,59,117,13006,13008,1,8760,59,1,10794,4,2,99,100,13017,13021,112,59,1,10971,114,59,1,8230,112,108,117,115,59,1,8723,4,2,100,112,13038,13044,101,108,115,59,1,8871,102,59,3,55349,56670,59,1,8723,4,2,99,116,13058,13063,114,59,3,55349,56514,112,111,115,59,1,8766,4,3,59,108,109,13077,13079,13087,1,956,116,105,109,97,112,59,1,8888,97,112,59,1,8888,4,24,71,76,82,86,97,98,99,100,101,102,103,104,105,106,108,109,111,112,114,115,116,117,118,119,13142,13165,13217,13229,13247,13330,13359,13414,13420,13508,13513,13579,13602,13626,13631,13762,13767,13855,13936,13995,14214,14285,14312,14432,4,2,103,116,13148,13152,59,3,8921,824,4,2,59,118,13158,13161,3,8811,8402,59,3,8811,824,4,3,101,108,116,13173,13200,13204,102,116,4,2,97,114,13181,13188,114,114,111,119,59,1,8653,105,103,104,116,97,114,114,111,119,59,1,8654,59,3,8920,824,4,2,59,118,13210,13213,3,8810,8402,59,3,8810,824,105,103,104,116,97,114,114,111,119,59,1,8655,4,2,68,100,13235,13241,97,115,104,59,1,8879,97,115,104,59,1,8878,4,5,98,99,110,112,116,13259,13264,13270,13275,13308,108,97,59,1,8711,117,116,101,59,1,324,103,59,3,8736,8402,4,5,59,69,105,111,112,13287,13289,13293,13298,13302,1,8777,59,3,10864,824,100,59,3,8779,824,115,59,1,329,114,111,120,59,1,8777,117,114,4,2,59,97,13316,13318,1,9838,108,4,2,59,115,13325,13327,1,9838,59,1,8469,4,2,115,117,13336,13344,112,5,160,1,59,13342,1,160,109,112,4,2,59,101,13352,13355,3,8782,824,59,3,8783,824,4,5,97,101,111,117,121,13371,13385,13391,13407,13411,4,2,112,114,13377,13380,59,1,10819,111,110,59,1,328,100,105,108,59,1,326,110,103,4,2,59,100,13399,13401,1,8775,111,116,59,3,10861,824,112,59,1,10818,59,1,1085,97,115,104,59,1,8211,4,7,59,65,97,100,113,115,120,13436,13438,13443,13466,13472,13478,13494,1,8800,114,114,59,1,8663,114,4,2,104,114,13450,13454,107,59,1,10532,4,2,59,111,13460,13462,1,8599,119,59,1,8599,111,116,59,3,8784,824,117,105,118,59,1,8802,4,2,101,105,13484,13489,97,114,59,1,10536,109,59,3,8770,824,105,115,116,4,2,59,115,13503,13505,1,8708,59,1,8708,114,59,3,55349,56619,4,4,69,101,115,116,13523,13527,13563,13568,59,3,8807,824,4,3,59,113,115,13535,13537,13559,1,8817,4,3,59,113,115,13545,13547,13551,1,8817,59,3,8807,824,108,97,110,116,59,3,10878,824,59,3,10878,824,105,109,59,1,8821,4,2,59,114,13574,13576,1,8815,59,1,8815,4,3,65,97,112,13587,13592,13597,114,114,59,1,8654,114,114,59,1,8622,97,114,59,1,10994,4,3,59,115,118,13610,13612,13623,1,8715,4,2,59,100,13618,13620,1,8956,59,1,8954,59,1,8715,99,121,59,1,1114,4,7,65,69,97,100,101,115,116,13647,13652,13656,13661,13665,13737,13742,114,114,59,1,8653,59,3,8806,824,114,114,59,1,8602,114,59,1,8229,4,4,59,102,113,115,13675,13677,13703,13725,1,8816,116,4,2,97,114,13684,13691,114,114,111,119,59,1,8602,105,103,104,116,97,114,114,111,119,59,1,8622,4,3,59,113,115,13711,13713,13717,1,8816,59,3,8806,824,108,97,110,116,59,3,10877,824,4,2,59,115,13731,13734,3,10877,824,59,1,8814,105,109,59,1,8820,4,2,59,114,13748,13750,1,8814,105,4,2,59,101,13757,13759,1,8938,59,1,8940,105,100,59,1,8740,4,2,112,116,13773,13778,102,59,3,55349,56671,5,172,3,59,105,110,13787,13789,13829,1,172,110,4,4,59,69,100,118,13800,13802,13806,13812,1,8713,59,3,8953,824,111,116,59,3,8949,824,4,3,97,98,99,13820,13823,13826,59,1,8713,59,1,8951,59,1,8950,105,4,2,59,118,13836,13838,1,8716,4,3,97,98,99,13846,13849,13852,59,1,8716,59,1,8958,59,1,8957,4,3,97,111,114,13863,13892,13899,114,4,4,59,97,115,116,13874,13876,13883,13888,1,8742,108,108,101,108,59,1,8742,108,59,3,11005,8421,59,3,8706,824,108,105,110,116,59,1,10772,4,3,59,99,101,13907,13909,13914,1,8832,117,101,59,1,8928,4,2,59,99,13920,13923,3,10927,824,4,2,59,101,13929,13931,1,8832,113,59,3,10927,824,4,4,65,97,105,116,13946,13951,13971,13982,114,114,59,1,8655,114,114,4,3,59,99,119,13961,13963,13967,1,8603,59,3,10547,824,59,3,8605,824,103,104,116,97,114,114,111,119,59,1,8603,114,105,4,2,59,101,13990,13992,1,8939,59,1,8941,4,7,99,104,105,109,112,113,117,14011,14036,14060,14080,14085,14090,14106,4,4,59,99,101,114,14021,14023,14028,14032,1,8833,117,101,59,1,8929,59,3,10928,824,59,3,55349,56515,111,114,116,4,2,109,112,14045,14050,105,100,59,1,8740,97,114,97,108,108,101,108,59,1,8742,109,4,2,59,101,14067,14069,1,8769,4,2,59,113,14075,14077,1,8772,59,1,8772,105,100,59,1,8740,97,114,59,1,8742,115,117,4,2,98,112,14098,14102,101,59,1,8930,101,59,1,8931,4,3,98,99,112,14114,14157,14171,4,4,59,69,101,115,14124,14126,14130,14133,1,8836,59,3,10949,824,59,1,8840,101,116,4,2,59,101,14141,14144,3,8834,8402,113,4,2,59,113,14151,14153,1,8840,59,3,10949,824,99,4,2,59,101,14164,14166,1,8833,113,59,3,10928,824,4,4,59,69,101,115,14181,14183,14187,14190,1,8837,59,3,10950,824,59,1,8841,101,116,4,2,59,101,14198,14201,3,8835,8402,113,4,2,59,113,14208,14210,1,8841,59,3,10950,824,4,4,103,105,108,114,14224,14228,14238,14242,108,59,1,8825,108,100,101,5,241,1,59,14236,1,241,103,59,1,8824,105,97,110,103,108,101,4,2,108,114,14254,14269,101,102,116,4,2,59,101,14263,14265,1,8938,113,59,1,8940,105,103,104,116,4,2,59,101,14279,14281,1,8939,113,59,1,8941,4,2,59,109,14291,14293,1,957,4,3,59,101,115,14301,14303,14308,1,35,114,111,59,1,8470,112,59,1,8199,4,9,68,72,97,100,103,105,108,114,115,14332,14338,14344,14349,14355,14369,14376,14408,14426,97,115,104,59,1,8877,97,114,114,59,1,10500,112,59,3,8781,8402,97,115,104,59,1,8876,4,2,101,116,14361,14365,59,3,8805,8402,59,3,62,8402,110,102,105,110,59,1,10718,4,3,65,101,116,14384,14389,14393,114,114,59,1,10498,59,3,8804,8402,4,2,59,114,14399,14402,3,60,8402,105,101,59,3,8884,8402,4,2,65,116,14414,14419,114,114,59,1,10499,114,105,101,59,3,8885,8402,105,109,59,3,8764,8402,4,3,65,97,110,14440,14445,14468,114,114,59,1,8662,114,4,2,104,114,14452,14456,107,59,1,10531,4,2,59,111,14462,14464,1,8598,119,59,1,8598,101,97,114,59,1,10535,4,18,83,97,99,100,101,102,103,104,105,108,109,111,112,114,115,116,117,118,14512,14515,14535,14560,14597,14603,14618,14643,14657,14662,14701,14741,14747,14769,14851,14877,14907,14916,59,1,9416,4,2,99,115,14521,14531,117,116,101,5,243,1,59,14529,1,243,116,59,1,8859,4,2,105,121,14541,14557,114,4,2,59,99,14548,14550,1,8858,5,244,1,59,14555,1,244,59,1,1086,4,5,97,98,105,111,115,14572,14577,14583,14587,14591,115,104,59,1,8861,108,97,99,59,1,337,118,59,1,10808,116,59,1,8857,111,108,100,59,1,10684,108,105,103,59,1,339,4,2,99,114,14609,14614,105,114,59,1,10687,59,3,55349,56620,4,3,111,114,116,14626,14630,14640,110,59,1,731,97,118,101,5,242,1,59,14638,1,242,59,1,10689,4,2,98,109,14649,14654,97,114,59,1,10677,59,1,937,110,116,59,1,8750,4,4,97,99,105,116,14672,14677,14693,14698,114,114,59,1,8634,4,2,105,114,14683,14687,114,59,1,10686,111,115,115,59,1,10683,110,101,59,1,8254,59,1,10688,4,3,97,101,105,14709,14714,14719,99,114,59,1,333,103,97,59,1,969,4,3,99,100,110,14727,14733,14736,114,111,110,59,1,959,59,1,10678,117,115,59,1,8854,112,102,59,3,55349,56672,4,3,97,101,108,14755,14759,14764,114,59,1,10679,114,112,59,1,10681,117,115,59,1,8853,4,7,59,97,100,105,111,115,118,14785,14787,14792,14831,14837,14841,14848,1,8744,114,114,59,1,8635,4,4,59,101,102,109,14802,14804,14817,14824,1,10845,114,4,2,59,111,14811,14813,1,8500,102,59,1,8500,5,170,1,59,14822,1,170,5,186,1,59,14829,1,186,103,111,102,59,1,8886,114,59,1,10838,108,111,112,101,59,1,10839,59,1,10843,4,3,99,108,111,14859,14863,14873,114,59,1,8500,97,115,104,5,248,1,59,14871,1,248,108,59,1,8856,105,4,2,108,109,14884,14893,100,101,5,245,1,59,14891,1,245,101,115,4,2,59,97,14901,14903,1,8855,115,59,1,10806,109,108,5,246,1,59,14914,1,246,98,97,114,59,1,9021,4,12,97,99,101,102,104,105,108,109,111,114,115,117,14948,14992,14996,15033,15038,15068,15090,15189,15192,15222,15427,15441,114,4,4,59,97,115,116,14959,14961,14976,14989,1,8741,5,182,2,59,108,14968,14970,1,182,108,101,108,59,1,8741,4,2,105,108,14982,14986,109,59,1,10995,59,1,11005,59,1,8706,121,59,1,1087,114,4,5,99,105,109,112,116,15009,15014,15019,15024,15027,110,116,59,1,37,111,100,59,1,46,105,108,59,1,8240,59,1,8869,101,110,107,59,1,8241,114,59,3,55349,56621,4,3,105,109,111,15046,15057,15063,4,2,59,118,15052,15054,1,966,59,1,981,109,97,116,59,1,8499,110,101,59,1,9742,4,3,59,116,118,15076,15078,15087,1,960,99,104,102,111,114,107,59,1,8916,59,1,982,4,2,97,117,15096,15119,110,4,2,99,107,15103,15115,107,4,2,59,104,15110,15112,1,8463,59,1,8462,118,59,1,8463,115,4,9,59,97,98,99,100,101,109,115,116,15140,15142,15148,15151,15156,15168,15171,15179,15184,1,43,99,105,114,59,1,10787,59,1,8862,105,114,59,1,10786,4,2,111,117,15162,15165,59,1,8724,59,1,10789,59,1,10866,110,5,177,1,59,15177,1,177,105,109,59,1,10790,119,111,59,1,10791,59,1,177,4,3,105,112,117,15200,15208,15213,110,116,105,110,116,59,1,10773,102,59,3,55349,56673,110,100,5,163,1,59,15220,1,163,4,10,59,69,97,99,101,105,110,111,115,117,15244,15246,15249,15253,15258,15334,15347,15367,15416,15421,1,8826,59,1,10931,112,59,1,10935,117,101,59,1,8828,4,2,59,99,15264,15266,1,10927,4,6,59,97,99,101,110,115,15280,15282,15290,15299,15303,15329,1,8826,112,112,114,111,120,59,1,10935,117,114,108,121,101,113,59,1,8828,113,59,1,10927,4,3,97,101,115,15311,15319,15324,112,112,114,111,120,59,1,10937,113,113,59,1,10933,105,109,59,1,8936,105,109,59,1,8830,109,101,4,2,59,115,15342,15344,1,8242,59,1,8473,4,3,69,97,115,15355,15358,15362,59,1,10933,112,59,1,10937,105,109,59,1,8936,4,3,100,102,112,15375,15378,15404,59,1,8719,4,3,97,108,115,15386,15392,15398,108,97,114,59,1,9006,105,110,101,59,1,8978,117,114,102,59,1,8979,4,2,59,116,15410,15412,1,8733,111,59,1,8733,105,109,59,1,8830,114,101,108,59,1,8880,4,2,99,105,15433,15438,114,59,3,55349,56517,59,1,968,110,99,115,112,59,1,8200,4,6,102,105,111,112,115,117,15462,15467,15472,15478,15485,15491,114,59,3,55349,56622,110,116,59,1,10764,112,102,59,3,55349,56674,114,105,109,101,59,1,8279,99,114,59,3,55349,56518,4,3,97,101,111,15499,15520,15534,116,4,2,101,105,15506,15515,114,110,105,111,110,115,59,1,8461,110,116,59,1,10774,115,116,4,2,59,101,15528,15530,1,63,113,59,1,8799,116,5,34,1,59,15540,1,34,4,21,65,66,72,97,98,99,100,101,102,104,105,108,109,110,111,112,114,115,116,117,120,15586,15609,15615,15620,15796,15855,15893,15931,15977,16001,16039,16183,16204,16222,16228,16285,16312,16318,16363,16408,16416,4,3,97,114,116,15594,15599,15603,114,114,59,1,8667,114,59,1,8658,97,105,108,59,1,10524,97,114,114,59,1,10511,97,114,59,1,10596,4,7,99,100,101,110,113,114,116,15636,15651,15656,15664,15687,15696,15770,4,2,101,117,15642,15646,59,3,8765,817,116,101,59,1,341,105,99,59,1,8730,109,112,116,121,118,59,1,10675,103,4,4,59,100,101,108,15675,15677,15680,15683,1,10217,59,1,10642,59,1,10661,101,59,1,10217,117,111,5,187,1,59,15694,1,187,114,4,11,59,97,98,99,102,104,108,112,115,116,119,15721,15723,15727,15739,15742,15746,15750,15754,15758,15763,15767,1,8594,112,59,1,10613,4,2,59,102,15733,15735,1,8677,115,59,1,10528,59,1,10547,115,59,1,10526,107,59,1,8618,112,59,1,8620,108,59,1,10565,105,109,59,1,10612,108,59,1,8611,59,1,8605,4,2,97,105,15776,15781,105,108,59,1,10522,111,4,2,59,110,15788,15790,1,8758,97,108,115,59,1,8474,4,3,97,98,114,15804,15809,15814,114,114,59,1,10509,114,107,59,1,10099,4,2,97,107,15820,15833,99,4,2,101,107,15827,15830,59,1,125,59,1,93,4,2,101,115,15839,15842,59,1,10636,108,4,2,100,117,15849,15852,59,1,10638,59,1,10640,4,4,97,101,117,121,15865,15871,15886,15890,114,111,110,59,1,345,4,2,100,105,15877,15882,105,108,59,1,343,108,59,1,8969,98,59,1,125,59,1,1088,4,4,99,108,113,115,15903,15907,15914,15927,97,59,1,10551,100,104,97,114,59,1,10601,117,111,4,2,59,114,15922,15924,1,8221,59,1,8221,104,59,1,8627,4,3,97,99,103,15939,15966,15970,108,4,4,59,105,112,115,15950,15952,15957,15963,1,8476,110,101,59,1,8475,97,114,116,59,1,8476,59,1,8477,116,59,1,9645,5,174,1,59,15975,1,174,4,3,105,108,114,15985,15991,15997,115,104,116,59,1,10621,111,111,114,59,1,8971,59,3,55349,56623,4,2,97,111,16007,16028,114,4,2,100,117,16014,16017,59,1,8641,4,2,59,108,16023,16025,1,8640,59,1,10604,4,2,59,118,16034,16036,1,961,59,1,1009,4,3,103,110,115,16047,16167,16171,104,116,4,6,97,104,108,114,115,116,16063,16081,16103,16130,16143,16155,114,114,111,119,4,2,59,116,16073,16075,1,8594,97,105,108,59,1,8611,97,114,112,111,111,110,4,2,100,117,16093,16099,111,119,110,59,1,8641,112,59,1,8640,101,102,116,4,2,97,104,16112,16120,114,114,111,119,115,59,1,8644,97,114,112,111,111,110,115,59,1,8652,105,103,104,116,97,114,114,111,119,115,59,1,8649,113,117,105,103,97,114,114,111,119,59,1,8605,104,114,101,101,116,105,109,101,115,59,1,8908,103,59,1,730,105,110,103,100,111,116,115,101,113,59,1,8787,4,3,97,104,109,16191,16196,16201,114,114,59,1,8644,97,114,59,1,8652,59,1,8207,111,117,115,116,4,2,59,97,16214,16216,1,9137,99,104,101,59,1,9137,109,105,100,59,1,10990,4,4,97,98,112,116,16238,16252,16257,16278,4,2,110,114,16244,16248,103,59,1,10221,114,59,1,8702,114,107,59,1,10215,4,3,97,102,108,16265,16269,16273,114,59,1,10630,59,3,55349,56675,117,115,59,1,10798,105,109,101,115,59,1,10805,4,2,97,112,16291,16304,114,4,2,59,103,16298,16300,1,41,116,59,1,10644,111,108,105,110,116,59,1,10770,97,114,114,59,1,8649,4,4,97,99,104,113,16328,16334,16339,16342,113,117,111,59,1,8250,114,59,3,55349,56519,59,1,8625,4,2,98,117,16348,16351,59,1,93,111,4,2,59,114,16358,16360,1,8217,59,1,8217,4,3,104,105,114,16371,16377,16383,114,101,101,59,1,8908,109,101,115,59,1,8906,105,4,4,59,101,102,108,16394,16396,16399,16402,1,9657,59,1,8885,59,1,9656,116,114,105,59,1,10702,108,117,104,97,114,59,1,10600,59,1,8478,4,19,97,98,99,100,101,102,104,105,108,109,111,112,113,114,115,116,117,119,122,16459,16466,16472,16572,16590,16672,16687,16746,16844,16850,16924,16963,16988,17115,17121,17154,17206,17614,17656,99,117,116,101,59,1,347,113,117,111,59,1,8218,4,10,59,69,97,99,101,105,110,112,115,121,16494,16496,16499,16513,16518,16531,16536,16556,16564,16569,1,8827,59,1,10932,4,2,112,114,16505,16508,59,1,10936,111,110,59,1,353,117,101,59,1,8829,4,2,59,100,16524,16526,1,10928,105,108,59,1,351,114,99,59,1,349,4,3,69,97,115,16544,16547,16551,59,1,10934,112,59,1,10938,105,109,59,1,8937,111,108,105,110,116,59,1,10771,105,109,59,1,8831,59,1,1089,111,116,4,3,59,98,101,16582,16584,16587,1,8901,59,1,8865,59,1,10854,4,7,65,97,99,109,115,116,120,16606,16611,16634,16642,16646,16652,16668,114,114,59,1,8664,114,4,2,104,114,16618,16622,107,59,1,10533,4,2,59,111,16628,16630,1,8600,119,59,1,8600,116,5,167,1,59,16640,1,167,105,59,1,59,119,97,114,59,1,10537,109,4,2,105,110,16659,16665,110,117,115,59,1,8726,59,1,8726,116,59,1,10038,114,4,2,59,111,16679,16682,3,55349,56624,119,110,59,1,8994,4,4,97,99,111,121,16697,16702,16716,16739,114,112,59,1,9839,4,2,104,121,16708,16713,99,121,59,1,1097,59,1,1096,114,116,4,2,109,112,16724,16729,105,100,59,1,8739,97,114,97,108,108,101,108,59,1,8741,5,173,1,59,16744,1,173,4,2,103,109,16752,16770,109,97,4,3,59,102,118,16762,16764,16767,1,963,59,1,962,59,1,962,4,8,59,100,101,103,108,110,112,114,16788,16790,16795,16806,16817,16828,16832,16838,1,8764,111,116,59,1,10858,4,2,59,113,16801,16803,1,8771,59,1,8771,4,2,59,69,16812,16814,1,10910,59,1,10912,4,2,59,69,16823,16825,1,10909,59,1,10911,101,59,1,8774,108,117,115,59,1,10788,97,114,114,59,1,10610,97,114,114,59,1,8592,4,4,97,101,105,116,16860,16883,16891,16904,4,2,108,115,16866,16878,108,115,101,116,109,105,110,117,115,59,1,8726,104,112,59,1,10803,112,97,114,115,108,59,1,10724,4,2,100,108,16897,16900,59,1,8739,101,59,1,8995,4,2,59,101,16910,16912,1,10922,4,2,59,115,16918,16920,1,10924,59,3,10924,65024,4,3,102,108,112,16932,16938,16958,116,99,121,59,1,1100,4,2,59,98,16944,16946,1,47,4,2,59,97,16952,16954,1,10692,114,59,1,9023,102,59,3,55349,56676,97,4,2,100,114,16970,16985,101,115,4,2,59,117,16978,16980,1,9824,105,116,59,1,9824,59,1,8741,4,3,99,115,117,16996,17028,17089,4,2,97,117,17002,17015,112,4,2,59,115,17009,17011,1,8851,59,3,8851,65024,112,4,2,59,115,17022,17024,1,8852,59,3,8852,65024,117,4,2,98,112,17035,17062,4,3,59,101,115,17043,17045,17048,1,8847,59,1,8849,101,116,4,2,59,101,17056,17058,1,8847,113,59,1,8849,4,3,59,101,115,17070,17072,17075,1,8848,59,1,8850,101,116,4,2,59,101,17083,17085,1,8848,113,59,1,8850,4,3,59,97,102,17097,17099,17112,1,9633,114,4,2,101,102,17106,17109,59,1,9633,59,1,9642,59,1,9642,97,114,114,59,1,8594,4,4,99,101,109,116,17131,17136,17142,17148,114,59,3,55349,56520,116,109,110,59,1,8726,105,108,101,59,1,8995,97,114,102,59,1,8902,4,2,97,114,17160,17172,114,4,2,59,102,17167,17169,1,9734,59,1,9733,4,2,97,110,17178,17202,105,103,104,116,4,2,101,112,17188,17197,112,115,105,108,111,110,59,1,1013,104,105,59,1,981,115,59,1,175,4,5,98,99,109,110,112,17218,17351,17420,17423,17427,4,9,59,69,100,101,109,110,112,114,115,17238,17240,17243,17248,17261,17267,17279,17285,17291,1,8834,59,1,10949,111,116,59,1,10941,4,2,59,100,17254,17256,1,8838,111,116,59,1,10947,117,108,116,59,1,10945,4,2,69,101,17273,17276,59,1,10955,59,1,8842,108,117,115,59,1,10943,97,114,114,59,1,10617,4,3,101,105,117,17299,17335,17339,116,4,3,59,101,110,17308,17310,17322,1,8834,113,4,2,59,113,17317,17319,1,8838,59,1,10949,101,113,4,2,59,113,17330,17332,1,8842,59,1,10955,109,59,1,10951,4,2,98,112,17345,17348,59,1,10965,59,1,10963,99,4,6,59,97,99,101,110,115,17366,17368,17376,17385,17389,17415,1,8827,112,112,114,111,120,59,1,10936,117,114,108,121,101,113,59,1,8829,113,59,1,10928,4,3,97,101,115,17397,17405,17410,112,112,114,111,120,59,1,10938,113,113,59,1,10934,105,109,59,1,8937,105,109,59,1,8831,59,1,8721,103,59,1,9834,4,13,49,50,51,59,69,100,101,104,108,109,110,112,115,17455,17462,17469,17476,17478,17481,17496,17509,17524,17530,17536,17548,17554,5,185,1,59,17460,1,185,5,178,1,59,17467,1,178,5,179,1,59,17474,1,179,1,8835,59,1,10950,4,2,111,115,17487,17491,116,59,1,10942,117,98,59,1,10968,4,2,59,100,17502,17504,1,8839,111,116,59,1,10948,115,4,2,111,117,17516,17520,108,59,1,10185,98,59,1,10967,97,114,114,59,1,10619,117,108,116,59,1,10946,4,2,69,101,17542,17545,59,1,10956,59,1,8843,108,117,115,59,1,10944,4,3,101,105,117,17562,17598,17602,116,4,3,59,101,110,17571,17573,17585,1,8835,113,4,2,59,113,17580,17582,1,8839,59,1,10950,101,113,4,2,59,113,17593,17595,1,8843,59,1,10956,109,59,1,10952,4,2,98,112,17608,17611,59,1,10964,59,1,10966,4,3,65,97,110,17622,17627,17650,114,114,59,1,8665,114,4,2,104,114,17634,17638,107,59,1,10534,4,2,59,111,17644,17646,1,8601,119,59,1,8601,119,97,114,59,1,10538,108,105,103,5,223,1,59,17664,1,223,4,13,97,98,99,100,101,102,104,105,111,112,114,115,119,17694,17709,17714,17737,17742,17749,17754,17860,17905,17957,17964,18090,18122,4,2,114,117,17700,17706,103,101,116,59,1,8982,59,1,964,114,107,59,1,9140,4,3,97,101,121,17722,17728,17734,114,111,110,59,1,357,100,105,108,59,1,355,59,1,1090,111,116,59,1,8411,108,114,101,99,59,1,8981,114,59,3,55349,56625,4,4,101,105,107,111,17764,17805,17836,17851,4,2,114,116,17770,17786,101,4,2,52,102,17777,17780,59,1,8756,111,114,101,59,1,8756,97,4,3,59,115,118,17795,17797,17802,1,952,121,109,59,1,977,59,1,977,4,2,99,110,17811,17831,107,4,2,97,115,17818,17826,112,112,114,111,120,59,1,8776,105,109,59,1,8764,115,112,59,1,8201,4,2,97,115,17842,17846,112,59,1,8776,105,109,59,1,8764,114,110,5,254,1,59,17858,1,254,4,3,108,109,110,17868,17873,17901,100,101,59,1,732,101,115,5,215,3,59,98,100,17884,17886,17898,1,215,4,2,59,97,17892,17894,1,8864,114,59,1,10801,59,1,10800,116,59,1,8749,4,3,101,112,115,17913,17917,17953,97,59,1,10536,4,4,59,98,99,102,17927,17929,17934,17939,1,8868,111,116,59,1,9014,105,114,59,1,10993,4,2,59,111,17945,17948,3,55349,56677,114,107,59,1,10970,97,59,1,10537,114,105,109,101,59,1,8244,4,3,97,105,112,17972,17977,18082,100,101,59,1,8482,4,7,97,100,101,109,112,115,116,17993,18051,18056,18059,18066,18072,18076,110,103,108,101,4,5,59,100,108,113,114,18009,18011,18017,18032,18035,1,9653,111,119,110,59,1,9663,101,102,116,4,2,59,101,18026,18028,1,9667,113,59,1,8884,59,1,8796,105,103,104,116,4,2,59,101,18045,18047,1,9657,113,59,1,8885,111,116,59,1,9708,59,1,8796,105,110,117,115,59,1,10810,108,117,115,59,1,10809,98,59,1,10701,105,109,101,59,1,10811,101,122,105,117,109,59,1,9186,4,3,99,104,116,18098,18111,18116,4,2,114,121,18104,18108,59,3,55349,56521,59,1,1094,99,121,59,1,1115,114,111,107,59,1,359,4,2,105,111,18128,18133,120,116,59,1,8812,104,101,97,100,4,2,108,114,18143,18154,101,102,116,97,114,114,111,119,59,1,8606,105,103,104,116,97,114,114,111,119,59,1,8608,4,18,65,72,97,98,99,100,102,103,104,108,109,111,112,114,115,116,117,119,18204,18209,18214,18234,18250,18268,18292,18308,18319,18343,18379,18397,18413,18504,18547,18553,18584,18603,114,114,59,1,8657,97,114,59,1,10595,4,2,99,114,18220,18230,117,116,101,5,250,1,59,18228,1,250,114,59,1,8593,114,4,2,99,101,18241,18245,121,59,1,1118,118,101,59,1,365,4,2,105,121,18256,18265,114,99,5,251,1,59,18263,1,251,59,1,1091,4,3,97,98,104,18276,18281,18287,114,114,59,1,8645,108,97,99,59,1,369,97,114,59,1,10606,4,2,105,114,18298,18304,115,104,116,59,1,10622,59,3,55349,56626,114,97,118,101,5,249,1,59,18317,1,249,4,2,97,98,18325,18338,114,4,2,108,114,18332,18335,59,1,8639,59,1,8638,108,107,59,1,9600,4,2,99,116,18349,18374,4,2,111,114,18355,18369,114,110,4,2,59,101,18363,18365,1,8988,114,59,1,8988,111,112,59,1,8975,114,105,59,1,9720,4,2,97,108,18385,18390,99,114,59,1,363,5,168,1,59,18395,1,168,4,2,103,112,18403,18408,111,110,59,1,371,102,59,3,55349,56678,4,6,97,100,104,108,115,117,18427,18434,18445,18470,18475,18494,114,114,111,119,59,1,8593,111,119,110,97,114,114,111,119,59,1,8597,97,114,112,111,111,110,4,2,108,114,18457,18463,101,102,116,59,1,8639,105,103,104,116,59,1,8638,117,115,59,1,8846,105,4,3,59,104,108,18484,18486,18489,1,965,59,1,978,111,110,59,1,965,112,97,114,114,111,119,115,59,1,8648,4,3,99,105,116,18512,18537,18542,4,2,111,114,18518,18532,114,110,4,2,59,101,18526,18528,1,8989,114,59,1,8989,111,112,59,1,8974,110,103,59,1,367,114,105,59,1,9721,99,114,59,3,55349,56522,4,3,100,105,114,18561,18566,18572,111,116,59,1,8944,108,100,101,59,1,361,105,4,2,59,102,18579,18581,1,9653,59,1,9652,4,2,97,109,18590,18595,114,114,59,1,8648,108,5,252,1,59,18601,1,252,97,110,103,108,101,59,1,10663,4,15,65,66,68,97,99,100,101,102,108,110,111,112,114,115,122,18643,18648,18661,18667,18847,18851,18857,18904,18909,18915,18931,18937,18943,18949,18996,114,114,59,1,8661,97,114,4,2,59,118,18656,18658,1,10984,59,1,10985,97,115,104,59,1,8872,4,2,110,114,18673,18679,103,114,116,59,1,10652,4,7,101,107,110,112,114,115,116,18695,18704,18711,18720,18742,18754,18810,112,115,105,108,111,110,59,1,1013,97,112,112,97,59,1,1008,111,116,104,105,110,103,59,1,8709,4,3,104,105,114,18728,18732,18735,105,59,1,981,59,1,982,111,112,116,111,59,1,8733,4,2,59,104,18748,18750,1,8597,111,59,1,1009,4,2,105,117,18760,18766,103,109,97,59,1,962,4,2,98,112,18772,18791,115,101,116,110,101,113,4,2,59,113,18784,18787,3,8842,65024,59,3,10955,65024,115,101,116,110,101,113,4,2,59,113,18803,18806,3,8843,65024,59,3,10956,65024,4,2,104,114,18816,18822,101,116,97,59,1,977,105,97,110,103,108,101,4,2,108,114,18834,18840,101,102,116,59,1,8882,105,103,104,116,59,1,8883,121,59,1,1074,97,115,104,59,1,8866,4,3,101,108,114,18865,18884,18890,4,3,59,98,101,18873,18875,18880,1,8744,97,114,59,1,8891,113,59,1,8794,108,105,112,59,1,8942,4,2,98,116,18896,18901,97,114,59,1,124,59,1,124,114,59,3,55349,56627,116,114,105,59,1,8882,115,117,4,2,98,112,18923,18927,59,3,8834,8402,59,3,8835,8402,112,102,59,3,55349,56679,114,111,112,59,1,8733,116,114,105,59,1,8883,4,2,99,117,18955,18960,114,59,3,55349,56523,4,2,98,112,18966,18981,110,4,2,69,101,18973,18977,59,3,10955,65024,59,3,8842,65024,110,4,2,69,101,18988,18992,59,3,10956,65024,59,3,8843,65024,105,103,122,97,103,59,1,10650,4,7,99,101,102,111,112,114,115,19020,19026,19061,19066,19072,19075,19089,105,114,99,59,1,373,4,2,100,105,19032,19055,4,2,98,103,19038,19043,97,114,59,1,10847,101,4,2,59,113,19050,19052,1,8743,59,1,8793,101,114,112,59,1,8472,114,59,3,55349,56628,112,102,59,3,55349,56680,59,1,8472,4,2,59,101,19081,19083,1,8768,97,116,104,59,1,8768,99,114,59,3,55349,56524,4,14,99,100,102,104,105,108,109,110,111,114,115,117,118,119,19125,19146,19152,19157,19173,19176,19192,19197,19202,19236,19252,19269,19286,19291,4,3,97,105,117,19133,19137,19142,112,59,1,8898,114,99,59,1,9711,112,59,1,8899,116,114,105,59,1,9661,114,59,3,55349,56629,4,2,65,97,19163,19168,114,114,59,1,10234,114,114,59,1,10231,59,1,958,4,2,65,97,19182,19187,114,114,59,1,10232,114,114,59,1,10229,97,112,59,1,10236,105,115,59,1,8955,4,3,100,112,116,19210,19215,19230,111,116,59,1,10752,4,2,102,108,19221,19225,59,3,55349,56681,117,115,59,1,10753,105,109,101,59,1,10754,4,2,65,97,19242,19247,114,114,59,1,10233,114,114,59,1,10230,4,2,99,113,19258,19263,114,59,3,55349,56525,99,117,112,59,1,10758,4,2,112,116,19275,19281,108,117,115,59,1,10756,114,105,59,1,9651,101,101,59,1,8897,101,100,103,101,59,1,8896,4,8,97,99,101,102,105,111,115,117,19316,19335,19349,19357,19362,19367,19373,19379,99,4,2,117,121,19323,19332,116,101,5,253,1,59,19330,1,253,59,1,1103,4,2,105,121,19341,19346,114,99,59,1,375,59,1,1099,110,5,165,1,59,19355,1,165,114,59,3,55349,56630,99,121,59,1,1111,112,102,59,3,55349,56682,99,114,59,3,55349,56526,4,2,99,109,19385,19389,121,59,1,1102,108,5,255,1,59,19395,1,255,4,10,97,99,100,101,102,104,105,111,115,119,19419,19426,19441,19446,19462,19467,19472,19480,19486,19492,99,117,116,101,59,1,378,4,2,97,121,19432,19438,114,111,110,59,1,382,59,1,1079,111,116,59,1,380,4,2,101,116,19452,19458,116,114,102,59,1,8488,97,59,1,950,114,59,3,55349,56631,99,121,59,1,1078,103,114,97,114,114,59,1,8669,112,102,59,3,55349,56683,99,114,59,3,55349,56527,4,2,106,110,19498,19501,59,1,8205,106,59,1,8204]);const r9e=t9e,tr=fl,Eu=n9e,pt=iw,Se=tr.CODE_POINTS,nu=tr.CODE_POINT_SEQUENCES,i9e={128:8364,130:8218,131:402,132:8222,133:8230,134:8224,135:8225,136:710,137:8240,138:352,139:8249,140:338,142:381,145:8216,146:8217,147:8220,148:8221,149:8226,150:8211,151:8212,152:732,153:8482,154:353,155:8250,156:339,158:382,159:376},pz=1,hz=2,mz=4,o9e=pz|hz|mz,On="DATA_STATE",zd="RCDATA_STATE",Hp="RAWTEXT_STATE",rs="SCRIPT_DATA_STATE",gz="PLAINTEXT_STATE",T$="TAG_OPEN_STATE",O$="END_TAG_OPEN_STATE",$9="TAG_NAME_STATE",I$="RCDATA_LESS_THAN_SIGN_STATE",k$="RCDATA_END_TAG_OPEN_STATE",$$="RCDATA_END_TAG_NAME_STATE",N$="RAWTEXT_LESS_THAN_SIGN_STATE",A$="RAWTEXT_END_TAG_OPEN_STATE",R$="RAWTEXT_END_TAG_NAME_STATE",M$="SCRIPT_DATA_LESS_THAN_SIGN_STATE",P$="SCRIPT_DATA_END_TAG_OPEN_STATE",L$="SCRIPT_DATA_END_TAG_NAME_STATE",D$="SCRIPT_DATA_ESCAPE_START_STATE",F$="SCRIPT_DATA_ESCAPE_START_DASH_STATE",Wa="SCRIPT_DATA_ESCAPED_STATE",B$="SCRIPT_DATA_ESCAPED_DASH_STATE",N9="SCRIPT_DATA_ESCAPED_DASH_DASH_STATE",vg="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN_STATE",j$="SCRIPT_DATA_ESCAPED_END_TAG_OPEN_STATE",H$="SCRIPT_DATA_ESCAPED_END_TAG_NAME_STATE",z$="SCRIPT_DATA_DOUBLE_ESCAPE_START_STATE",Ql="SCRIPT_DATA_DOUBLE_ESCAPED_STATE",W$="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_STATE",U$="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH_STATE",yg="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN_STATE",K$="SCRIPT_DATA_DOUBLE_ESCAPE_END_STATE",bl="BEFORE_ATTRIBUTE_NAME_STATE",bg="ATTRIBUTE_NAME_STATE",A9="AFTER_ATTRIBUTE_NAME_STATE",R9="BEFORE_ATTRIBUTE_VALUE_STATE",Cg="ATTRIBUTE_VALUE_DOUBLE_QUOTED_STATE",Sg="ATTRIBUTE_VALUE_SINGLE_QUOTED_STATE",Eg="ATTRIBUTE_VALUE_UNQUOTED_STATE",M9="AFTER_ATTRIBUTE_VALUE_QUOTED_STATE",Ds="SELF_CLOSING_START_TAG_STATE",Ep="BOGUS_COMMENT_STATE",V$="MARKUP_DECLARATION_OPEN_STATE",G$="COMMENT_START_STATE",q$="COMMENT_START_DASH_STATE",Fs="COMMENT_STATE",X$="COMMENT_LESS_THAN_SIGN_STATE",Y$="COMMENT_LESS_THAN_SIGN_BANG_STATE",Q$="COMMENT_LESS_THAN_SIGN_BANG_DASH_STATE",Z$="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH_STATE",xg="COMMENT_END_DASH_STATE",wg="COMMENT_END_STATE",J$="COMMENT_END_BANG_STATE",eN="DOCTYPE_STATE",_g="BEFORE_DOCTYPE_NAME_STATE",Tg="DOCTYPE_NAME_STATE",tN="AFTER_DOCTYPE_NAME_STATE",nN="AFTER_DOCTYPE_PUBLIC_KEYWORD_STATE",rN="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER_STATE",P9="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED_STATE",L9="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED_STATE",D9="AFTER_DOCTYPE_PUBLIC_IDENTIFIER_STATE",iN="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS_STATE",oN="AFTER_DOCTYPE_SYSTEM_KEYWORD_STATE",aN="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER_STATE",xp="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED_STATE",wp="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED_STATE",F9="AFTER_DOCTYPE_SYSTEM_IDENTIFIER_STATE",Zl="BOGUS_DOCTYPE_STATE",Og="CDATA_SECTION_STATE",lN="CDATA_SECTION_BRACKET_STATE",sN="CDATA_SECTION_END_STATE",Ld="CHARACTER_REFERENCE_STATE",cN="NAMED_CHARACTER_REFERENCE_STATE",uN="AMBIGUOS_AMPERSAND_STATE",dN="NUMERIC_CHARACTER_REFERENCE_STATE",fN="HEXADEMICAL_CHARACTER_REFERENCE_START_STATE",pN="DECIMAL_CHARACTER_REFERENCE_START_STATE",hN="HEXADEMICAL_CHARACTER_REFERENCE_STATE",mN="DECIMAL_CHARACTER_REFERENCE_STATE",_p="NUMERIC_CHARACTER_REFERENCE_END_STATE";function hr(e){return e===Se.SPACE||e===Se.LINE_FEED||e===Se.TABULATION||e===Se.FORM_FEED}function dh(e){return e>=Se.DIGIT_0&&e<=Se.DIGIT_9}function Ka(e){return e>=Se.LATIN_CAPITAL_A&&e<=Se.LATIN_CAPITAL_Z}function su(e){return e>=Se.LATIN_SMALL_A&&e<=Se.LATIN_SMALL_Z}function qs(e){return su(e)||Ka(e)}function B9(e){return qs(e)||dh(e)}function vz(e){return e>=Se.LATIN_CAPITAL_A&&e<=Se.LATIN_CAPITAL_F}function yz(e){return e>=Se.LATIN_SMALL_A&&e<=Se.LATIN_SMALL_F}function a9e(e){return dh(e)||vz(e)||yz(e)}function yv(e){return e+32}function Fr(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(e>>>10&1023|55296)+String.fromCharCode(56320|e&1023))}function Bs(e){return String.fromCharCode(yv(e))}function gN(e,t){const n=Eu[++e];let r=++e,i=r+n-1;for(;r<=i;){const o=r+i>>>1,a=Eu[o];if(a<t)r=o+1;else if(a>t)i=o-1;else return Eu[o+n]}return-1}let Pa=class So{constructor(){this.preprocessor=new r9e,this.tokenQueue=[],this.allowCDATA=!1,this.state=On,this.returnState="",this.charRefCode=-1,this.tempBuff=[],this.lastStartTagName="",this.consumedAfterSnapshot=-1,this.active=!1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr=null}_err(){}_errOnNextCodePoint(t){this._consume(),this._err(t),this._unconsume()}getNextToken(){for(;!this.tokenQueue.length&&this.active;){this.consumedAfterSnapshot=0;const t=this._consume();this._ensureHibernation()||this[this.state](t)}return this.tokenQueue.shift()}write(t,n){this.active=!0,this.preprocessor.write(t,n)}insertHtmlAtCurrentPos(t){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(t)}_ensureHibernation(){if(this.preprocessor.endOfChunkHit){for(;this.consumedAfterSnapshot>0;this.consumedAfterSnapshot--)this.preprocessor.retreat();return this.active=!1,this.tokenQueue.push({type:So.HIBERNATION_TOKEN}),!0}return!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_unconsume(){this.consumedAfterSnapshot--,this.preprocessor.retreat()}_reconsumeInState(t){this.state=t,this._unconsume()}_consumeSequenceIfMatch(t,n,r){let i=0,o=!0;const a=t.length;let l=0,c=n,u;for(;l<a;l++){if(l>0&&(c=this._consume(),i++),c===Se.EOF){o=!1;break}if(u=t[l],c!==u&&(r||c!==yv(u))){o=!1;break}}if(!o)for(;i--;)this._unconsume();return o}_isTempBufferEqualToScriptString(){if(this.tempBuff.length!==nu.SCRIPT_STRING.length)return!1;for(let t=0;t<this.tempBuff.length;t++)if(this.tempBuff[t]!==nu.SCRIPT_STRING[t])return!1;return!0}_createStartTagToken(){this.currentToken={type:So.START_TAG_TOKEN,tagName:"",selfClosing:!1,ackSelfClosing:!1,attrs:[]}}_createEndTagToken(){this.currentToken={type:So.END_TAG_TOKEN,tagName:"",selfClosing:!1,attrs:[]}}_createCommentToken(){this.currentToken={type:So.COMMENT_TOKEN,data:""}}_createDoctypeToken(t){this.currentToken={type:So.DOCTYPE_TOKEN,name:t,forceQuirks:!1,publicId:null,systemId:null}}_createCharacterToken(t,n){this.currentCharacterToken={type:t,chars:n}}_createEOFToken(){this.currentToken={type:So.EOF_TOKEN}}_createAttr(t){this.currentAttr={name:t,value:""}}_leaveAttrName(t){So.getTokenAttr(this.currentToken,this.currentAttr.name)===null?this.currentToken.attrs.push(this.currentAttr):this._err(pt.duplicateAttribute),this.state=t}_leaveAttrValue(t){this.state=t}_emitCurrentToken(){this._emitCurrentCharacterToken();const t=this.currentToken;this.currentToken=null,t.type===So.START_TAG_TOKEN?this.lastStartTagName=t.tagName:t.type===So.END_TAG_TOKEN&&(t.attrs.length>0&&this._err(pt.endTagWithAttributes),t.selfClosing&&this._err(pt.endTagWithTrailingSolidus)),this.tokenQueue.push(t)}_emitCurrentCharacterToken(){this.currentCharacterToken&&(this.tokenQueue.push(this.currentCharacterToken),this.currentCharacterToken=null)}_emitEOFToken(){this._createEOFToken(),this._emitCurrentToken()}_appendCharToCurrentCharacterToken(t,n){this.currentCharacterToken&&this.currentCharacterToken.type!==t&&this._emitCurrentCharacterToken(),this.currentCharacterToken?this.currentCharacterToken.chars+=n:this._createCharacterToken(t,n)}_emitCodePoint(t){let n=So.CHARACTER_TOKEN;hr(t)?n=So.WHITESPACE_CHARACTER_TOKEN:t===Se.NULL&&(n=So.NULL_CHARACTER_TOKEN),this._appendCharToCurrentCharacterToken(n,Fr(t))}_emitSeveralCodePoints(t){for(let n=0;n<t.length;n++)this._emitCodePoint(t[n])}_emitChars(t){this._appendCharToCurrentCharacterToken(So.CHARACTER_TOKEN,t)}_matchNamedCharacterReference(t){let n=null,r=1,i=gN(0,t);for(this.tempBuff.push(t);i>-1;){const o=Eu[i],a=o<o9e;a&&o&pz&&(n=o&hz?[Eu[++i],Eu[++i]]:[Eu[++i]],r=0);const c=this._consume();if(this.tempBuff.push(c),r++,c===Se.EOF)break;a?i=o&mz?gN(i,c):-1:i=c===o?++i:-1}for(;r--;)this.tempBuff.pop(),this._unconsume();return n}_isCharacterReferenceInAttribute(){return this.returnState===Cg||this.returnState===Sg||this.returnState===Eg}_isCharacterReferenceAttributeQuirk(t){if(!t&&this._isCharacterReferenceInAttribute()){const n=this._consume();return this._unconsume(),n===Se.EQUALS_SIGN||B9(n)}return!1}_flushCodePointsConsumedAsCharacterReference(){if(this._isCharacterReferenceInAttribute())for(let t=0;t<this.tempBuff.length;t++)this.currentAttr.value+=Fr(this.tempBuff[t]);else this._emitSeveralCodePoints(this.tempBuff);this.tempBuff=[]}[On](t){this.preprocessor.dropParsedChunk(),t===Se.LESS_THAN_SIGN?this.state=T$:t===Se.AMPERSAND?(this.returnState=On,this.state=Ld):t===Se.NULL?(this._err(pt.unexpectedNullCharacter),this._emitCodePoint(t)):t===Se.EOF?this._emitEOFToken():this._emitCodePoint(t)}[zd](t){this.preprocessor.dropParsedChunk(),t===Se.AMPERSAND?(this.returnState=zd,this.state=Ld):t===Se.LESS_THAN_SIGN?this.state=I$:t===Se.NULL?(this._err(pt.unexpectedNullCharacter),this._emitChars(tr.REPLACEMENT_CHARACTER)):t===Se.EOF?this._emitEOFToken():this._emitCodePoint(t)}[Hp](t){this.preprocessor.dropParsedChunk(),t===Se.LESS_THAN_SIGN?this.state=N$:t===Se.NULL?(this._err(pt.unexpectedNullCharacter),this._emitChars(tr.REPLACEMENT_CHARACTER)):t===Se.EOF?this._emitEOFToken():this._emitCodePoint(t)}[rs](t){this.preprocessor.dropParsedChunk(),t===Se.LESS_THAN_SIGN?this.state=M$:t===Se.NULL?(this._err(pt.unexpectedNullCharacter),this._emitChars(tr.REPLACEMENT_CHARACTER)):t===Se.EOF?this._emitEOFToken():this._emitCodePoint(t)}[gz](t){this.preprocessor.dropParsedChunk(),t===Se.NULL?(this._err(pt.unexpectedNullCharacter),this._emitChars(tr.REPLACEMENT_CHARACTER)):t===Se.EOF?this._emitEOFToken():this._emitCodePoint(t)}[T$](t){t===Se.EXCLAMATION_MARK?this.state=V$:t===Se.SOLIDUS?this.state=O$:qs(t)?(this._createStartTagToken(),this._reconsumeInState($9)):t===Se.QUESTION_MARK?(this._err(pt.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(),this._reconsumeInState(Ep)):t===Se.EOF?(this._err(pt.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken()):(this._err(pt.invalidFirstCharacterOfTagName),this._emitChars("<"),this._reconsumeInState(On))}[O$](t){qs(t)?(this._createEndTagToken(),this._reconsumeInState($9)):t===Se.GREATER_THAN_SIGN?(this._err(pt.missingEndTagName),this.state=On):t===Se.EOF?(this._err(pt.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken()):(this._err(pt.invalidFirstCharacterOfTagName),this._createCommentToken(),this._reconsumeInState(Ep))}[$9](t){hr(t)?this.state=bl:t===Se.SOLIDUS?this.state=Ds:t===Se.GREATER_THAN_SIGN?(this.state=On,this._emitCurrentToken()):Ka(t)?this.currentToken.tagName+=Bs(t):t===Se.NULL?(this._err(pt.unexpectedNullCharacter),this.currentToken.tagName+=tr.REPLACEMENT_CHARACTER):t===Se.EOF?(this._err(pt.eofInTag),this._emitEOFToken()):this.currentToken.tagName+=Fr(t)}[I$](t){t===Se.SOLIDUS?(this.tempBuff=[],this.state=k$):(this._emitChars("<"),this._reconsumeInState(zd))}[k$](t){qs(t)?(this._createEndTagToken(),this._reconsumeInState($$)):(this._emitChars("</"),this._reconsumeInState(zd))}[$$](t){if(Ka(t))this.currentToken.tagName+=Bs(t),this.tempBuff.push(t);else if(su(t))this.currentToken.tagName+=Fr(t),this.tempBuff.push(t);else{if(this.lastStartTagName===this.currentToken.tagName){if(hr(t)){this.state=bl;return}if(t===Se.SOLIDUS){this.state=Ds;return}if(t===Se.GREATER_THAN_SIGN){this.state=On,this._emitCurrentToken();return}}this._emitChars("</"),this._emitSeveralCodePoints(this.tempBuff),this._reconsumeInState(zd)}}[N$](t){t===Se.SOLIDUS?(this.tempBuff=[],this.state=A$):(this._emitChars("<"),this._reconsumeInState(Hp))}[A$](t){qs(t)?(this._createEndTagToken(),this._reconsumeInState(R$)):(this._emitChars("</"),this._reconsumeInState(Hp))}[R$](t){if(Ka(t))this.currentToken.tagName+=Bs(t),this.tempBuff.push(t);else if(su(t))this.currentToken.tagName+=Fr(t),this.tempBuff.push(t);else{if(this.lastStartTagName===this.currentToken.tagName){if(hr(t)){this.state=bl;return}if(t===Se.SOLIDUS){this.state=Ds;return}if(t===Se.GREATER_THAN_SIGN){this._emitCurrentToken(),this.state=On;return}}this._emitChars("</"),this._emitSeveralCodePoints(this.tempBuff),this._reconsumeInState(Hp)}}[M$](t){t===Se.SOLIDUS?(this.tempBuff=[],this.state=P$):t===Se.EXCLAMATION_MARK?(this.state=D$,this._emitChars("<!")):(this._emitChars("<"),this._reconsumeInState(rs))}[P$](t){qs(t)?(this._createEndTagToken(),this._reconsumeInState(L$)):(this._emitChars("</"),this._reconsumeInState(rs))}[L$](t){if(Ka(t))this.currentToken.tagName+=Bs(t),this.tempBuff.push(t);else if(su(t))this.currentToken.tagName+=Fr(t),this.tempBuff.push(t);else{if(this.lastStartTagName===this.currentToken.tagName){if(hr(t)){this.state=bl;return}else if(t===Se.SOLIDUS){this.state=Ds;return}else if(t===Se.GREATER_THAN_SIGN){this._emitCurrentToken(),this.state=On;return}}this._emitChars("</"),this._emitSeveralCodePoints(this.tempBuff),this._reconsumeInState(rs)}}[D$](t){t===Se.HYPHEN_MINUS?(this.state=F$,this._emitChars("-")):this._reconsumeInState(rs)}[F$](t){t===Se.HYPHEN_MINUS?(this.state=N9,this._emitChars("-")):this._reconsumeInState(rs)}[Wa](t){t===Se.HYPHEN_MINUS?(this.state=B$,this._emitChars("-")):t===Se.LESS_THAN_SIGN?this.state=vg:t===Se.NULL?(this._err(pt.unexpectedNullCharacter),this._emitChars(tr.REPLACEMENT_CHARACTER)):t===Se.EOF?(this._err(pt.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):this._emitCodePoint(t)}[B$](t){t===Se.HYPHEN_MINUS?(this.state=N9,this._emitChars("-")):t===Se.LESS_THAN_SIGN?this.state=vg:t===Se.NULL?(this._err(pt.unexpectedNullCharacter),this.state=Wa,this._emitChars(tr.REPLACEMENT_CHARACTER)):t===Se.EOF?(this._err(pt.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):(this.state=Wa,this._emitCodePoint(t))}[N9](t){t===Se.HYPHEN_MINUS?this._emitChars("-"):t===Se.LESS_THAN_SIGN?this.state=vg:t===Se.GREATER_THAN_SIGN?(this.state=rs,this._emitChars(">")):t===Se.NULL?(this._err(pt.unexpectedNullCharacter),this.state=Wa,this._emitChars(tr.REPLACEMENT_CHARACTER)):t===Se.EOF?(this._err(pt.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):(this.state=Wa,this._emitCodePoint(t))}[vg](t){t===Se.SOLIDUS?(this.tempBuff=[],this.state=j$):qs(t)?(this.tempBuff=[],this._emitChars("<"),this._reconsumeInState(z$)):(this._emitChars("<"),this._reconsumeInState(Wa))}[j$](t){qs(t)?(this._createEndTagToken(),this._reconsumeInState(H$)):(this._emitChars("</"),this._reconsumeInState(Wa))}[H$](t){if(Ka(t))this.currentToken.tagName+=Bs(t),this.tempBuff.push(t);else if(su(t))this.currentToken.tagName+=Fr(t),this.tempBuff.push(t);else{if(this.lastStartTagName===this.currentToken.tagName){if(hr(t)){this.state=bl;return}if(t===Se.SOLIDUS){this.state=Ds;return}if(t===Se.GREATER_THAN_SIGN){this._emitCurrentToken(),this.state=On;return}}this._emitChars("</"),this._emitSeveralCodePoints(this.tempBuff),this._reconsumeInState(Wa)}}[z$](t){hr(t)||t===Se.SOLIDUS||t===Se.GREATER_THAN_SIGN?(this.state=this._isTempBufferEqualToScriptString()?Ql:Wa,this._emitCodePoint(t)):Ka(t)?(this.tempBuff.push(yv(t)),this._emitCodePoint(t)):su(t)?(this.tempBuff.push(t),this._emitCodePoint(t)):this._reconsumeInState(Wa)}[Ql](t){t===Se.HYPHEN_MINUS?(this.state=W$,this._emitChars("-")):t===Se.LESS_THAN_SIGN?(this.state=yg,this._emitChars("<")):t===Se.NULL?(this._err(pt.unexpectedNullCharacter),this._emitChars(tr.REPLACEMENT_CHARACTER)):t===Se.EOF?(this._err(pt.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):this._emitCodePoint(t)}[W$](t){t===Se.HYPHEN_MINUS?(this.state=U$,this._emitChars("-")):t===Se.LESS_THAN_SIGN?(this.state=yg,this._emitChars("<")):t===Se.NULL?(this._err(pt.unexpectedNullCharacter),this.state=Ql,this._emitChars(tr.REPLACEMENT_CHARACTER)):t===Se.EOF?(this._err(pt.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):(this.state=Ql,this._emitCodePoint(t))}[U$](t){t===Se.HYPHEN_MINUS?this._emitChars("-"):t===Se.LESS_THAN_SIGN?(this.state=yg,this._emitChars("<")):t===Se.GREATER_THAN_SIGN?(this.state=rs,this._emitChars(">")):t===Se.NULL?(this._err(pt.unexpectedNullCharacter),this.state=Ql,this._emitChars(tr.REPLACEMENT_CHARACTER)):t===Se.EOF?(this._err(pt.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):(this.state=Ql,this._emitCodePoint(t))}[yg](t){t===Se.SOLIDUS?(this.tempBuff=[],this.state=K$,this._emitChars("/")):this._reconsumeInState(Ql)}[K$](t){hr(t)||t===Se.SOLIDUS||t===Se.GREATER_THAN_SIGN?(this.state=this._isTempBufferEqualToScriptString()?Wa:Ql,this._emitCodePoint(t)):Ka(t)?(this.tempBuff.push(yv(t)),this._emitCodePoint(t)):su(t)?(this.tempBuff.push(t),this._emitCodePoint(t)):this._reconsumeInState(Ql)}[bl](t){hr(t)||(t===Se.SOLIDUS||t===Se.GREATER_THAN_SIGN||t===Se.EOF?this._reconsumeInState(A9):t===Se.EQUALS_SIGN?(this._err(pt.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=bg):(this._createAttr(""),this._reconsumeInState(bg)))}[bg](t){hr(t)||t===Se.SOLIDUS||t===Se.GREATER_THAN_SIGN||t===Se.EOF?(this._leaveAttrName(A9),this._unconsume()):t===Se.EQUALS_SIGN?this._leaveAttrName(R9):Ka(t)?this.currentAttr.name+=Bs(t):t===Se.QUOTATION_MARK||t===Se.APOSTROPHE||t===Se.LESS_THAN_SIGN?(this._err(pt.unexpectedCharacterInAttributeName),this.currentAttr.name+=Fr(t)):t===Se.NULL?(this._err(pt.unexpectedNullCharacter),this.currentAttr.name+=tr.REPLACEMENT_CHARACTER):this.currentAttr.name+=Fr(t)}[A9](t){hr(t)||(t===Se.SOLIDUS?this.state=Ds:t===Se.EQUALS_SIGN?this.state=R9:t===Se.GREATER_THAN_SIGN?(this.state=On,this._emitCurrentToken()):t===Se.EOF?(this._err(pt.eofInTag),this._emitEOFToken()):(this._createAttr(""),this._reconsumeInState(bg)))}[R9](t){hr(t)||(t===Se.QUOTATION_MARK?this.state=Cg:t===Se.APOSTROPHE?this.state=Sg:t===Se.GREATER_THAN_SIGN?(this._err(pt.missingAttributeValue),this.state=On,this._emitCurrentToken()):this._reconsumeInState(Eg))}[Cg](t){t===Se.QUOTATION_MARK?this.state=M9:t===Se.AMPERSAND?(this.returnState=Cg,this.state=Ld):t===Se.NULL?(this._err(pt.unexpectedNullCharacter),this.currentAttr.value+=tr.REPLACEMENT_CHARACTER):t===Se.EOF?(this._err(pt.eofInTag),this._emitEOFToken()):this.currentAttr.value+=Fr(t)}[Sg](t){t===Se.APOSTROPHE?this.state=M9:t===Se.AMPERSAND?(this.returnState=Sg,this.state=Ld):t===Se.NULL?(this._err(pt.unexpectedNullCharacter),this.currentAttr.value+=tr.REPLACEMENT_CHARACTER):t===Se.EOF?(this._err(pt.eofInTag),this._emitEOFToken()):this.currentAttr.value+=Fr(t)}[Eg](t){hr(t)?this._leaveAttrValue(bl):t===Se.AMPERSAND?(this.returnState=Eg,this.state=Ld):t===Se.GREATER_THAN_SIGN?(this._leaveAttrValue(On),this._emitCurrentToken()):t===Se.NULL?(this._err(pt.unexpectedNullCharacter),this.currentAttr.value+=tr.REPLACEMENT_CHARACTER):t===Se.QUOTATION_MARK||t===Se.APOSTROPHE||t===Se.LESS_THAN_SIGN||t===Se.EQUALS_SIGN||t===Se.GRAVE_ACCENT?(this._err(pt.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=Fr(t)):t===Se.EOF?(this._err(pt.eofInTag),this._emitEOFToken()):this.currentAttr.value+=Fr(t)}[M9](t){hr(t)?this._leaveAttrValue(bl):t===Se.SOLIDUS?this._leaveAttrValue(Ds):t===Se.GREATER_THAN_SIGN?(this._leaveAttrValue(On),this._emitCurrentToken()):t===Se.EOF?(this._err(pt.eofInTag),this._emitEOFToken()):(this._err(pt.missingWhitespaceBetweenAttributes),this._reconsumeInState(bl))}[Ds](t){t===Se.GREATER_THAN_SIGN?(this.currentToken.selfClosing=!0,this.state=On,this._emitCurrentToken()):t===Se.EOF?(this._err(pt.eofInTag),this._emitEOFToken()):(this._err(pt.unexpectedSolidusInTag),this._reconsumeInState(bl))}[Ep](t){t===Se.GREATER_THAN_SIGN?(this.state=On,this._emitCurrentToken()):t===Se.EOF?(this._emitCurrentToken(),this._emitEOFToken()):t===Se.NULL?(this._err(pt.unexpectedNullCharacter),this.currentToken.data+=tr.REPLACEMENT_CHARACTER):this.currentToken.data+=Fr(t)}[V$](t){this._consumeSequenceIfMatch(nu.DASH_DASH_STRING,t,!0)?(this._createCommentToken(),this.state=G$):this._consumeSequenceIfMatch(nu.DOCTYPE_STRING,t,!1)?this.state=eN:this._consumeSequenceIfMatch(nu.CDATA_START_STRING,t,!0)?this.allowCDATA?this.state=Og:(this._err(pt.cdataInHtmlContent),this._createCommentToken(),this.currentToken.data="[CDATA[",this.state=Ep):this._ensureHibernation()||(this._err(pt.incorrectlyOpenedComment),this._createCommentToken(),this._reconsumeInState(Ep))}[G$](t){t===Se.HYPHEN_MINUS?this.state=q$:t===Se.GREATER_THAN_SIGN?(this._err(pt.abruptClosingOfEmptyComment),this.state=On,this._emitCurrentToken()):this._reconsumeInState(Fs)}[q$](t){t===Se.HYPHEN_MINUS?this.state=wg:t===Se.GREATER_THAN_SIGN?(this._err(pt.abruptClosingOfEmptyComment),this.state=On,this._emitCurrentToken()):t===Se.EOF?(this._err(pt.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="-",this._reconsumeInState(Fs))}[Fs](t){t===Se.HYPHEN_MINUS?this.state=xg:t===Se.LESS_THAN_SIGN?(this.currentToken.data+="<",this.state=X$):t===Se.NULL?(this._err(pt.unexpectedNullCharacter),this.currentToken.data+=tr.REPLACEMENT_CHARACTER):t===Se.EOF?(this._err(pt.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.data+=Fr(t)}[X$](t){t===Se.EXCLAMATION_MARK?(this.currentToken.data+="!",this.state=Y$):t===Se.LESS_THAN_SIGN?this.currentToken.data+="!":this._reconsumeInState(Fs)}[Y$](t){t===Se.HYPHEN_MINUS?this.state=Q$:this._reconsumeInState(Fs)}[Q$](t){t===Se.HYPHEN_MINUS?this.state=Z$:this._reconsumeInState(xg)}[Z$](t){t!==Se.GREATER_THAN_SIGN&&t!==Se.EOF&&this._err(pt.nestedComment),this._reconsumeInState(wg)}[xg](t){t===Se.HYPHEN_MINUS?this.state=wg:t===Se.EOF?(this._err(pt.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="-",this._reconsumeInState(Fs))}[wg](t){t===Se.GREATER_THAN_SIGN?(this.state=On,this._emitCurrentToken()):t===Se.EXCLAMATION_MARK?this.state=J$:t===Se.HYPHEN_MINUS?this.currentToken.data+="-":t===Se.EOF?(this._err(pt.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="--",this._reconsumeInState(Fs))}[J$](t){t===Se.HYPHEN_MINUS?(this.currentToken.data+="--!",this.state=xg):t===Se.GREATER_THAN_SIGN?(this._err(pt.incorrectlyClosedComment),this.state=On,this._emitCurrentToken()):t===Se.EOF?(this._err(pt.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="--!",this._reconsumeInState(Fs))}[eN](t){hr(t)?this.state=_g:t===Se.GREATER_THAN_SIGN?this._reconsumeInState(_g):t===Se.EOF?(this._err(pt.eofInDoctype),this._createDoctypeToken(null),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(pt.missingWhitespaceBeforeDoctypeName),this._reconsumeInState(_g))}[_g](t){hr(t)||(Ka(t)?(this._createDoctypeToken(Bs(t)),this.state=Tg):t===Se.NULL?(this._err(pt.unexpectedNullCharacter),this._createDoctypeToken(tr.REPLACEMENT_CHARACTER),this.state=Tg):t===Se.GREATER_THAN_SIGN?(this._err(pt.missingDoctypeName),this._createDoctypeToken(null),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=On):t===Se.EOF?(this._err(pt.eofInDoctype),this._createDoctypeToken(null),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._createDoctypeToken(Fr(t)),this.state=Tg))}[Tg](t){hr(t)?this.state=tN:t===Se.GREATER_THAN_SIGN?(this.state=On,this._emitCurrentToken()):Ka(t)?this.currentToken.name+=Bs(t):t===Se.NULL?(this._err(pt.unexpectedNullCharacter),this.currentToken.name+=tr.REPLACEMENT_CHARACTER):t===Se.EOF?(this._err(pt.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.name+=Fr(t)}[tN](t){hr(t)||(t===Se.GREATER_THAN_SIGN?(this.state=On,this._emitCurrentToken()):t===Se.EOF?(this._err(pt.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this._consumeSequenceIfMatch(nu.PUBLIC_STRING,t,!1)?this.state=nN:this._consumeSequenceIfMatch(nu.SYSTEM_STRING,t,!1)?this.state=oN:this._ensureHibernation()||(this._err(pt.invalidCharacterSequenceAfterDoctypeName),this.currentToken.forceQuirks=!0,this._reconsumeInState(Zl)))}[nN](t){hr(t)?this.state=rN:t===Se.QUOTATION_MARK?(this._err(pt.missingWhitespaceAfterDoctypePublicKeyword),this.currentToken.publicId="",this.state=P9):t===Se.APOSTROPHE?(this._err(pt.missingWhitespaceAfterDoctypePublicKeyword),this.currentToken.publicId="",this.state=L9):t===Se.GREATER_THAN_SIGN?(this._err(pt.missingDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this.state=On,this._emitCurrentToken()):t===Se.EOF?(this._err(pt.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(pt.missingQuoteBeforeDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(Zl))}[rN](t){hr(t)||(t===Se.QUOTATION_MARK?(this.currentToken.publicId="",this.state=P9):t===Se.APOSTROPHE?(this.currentToken.publicId="",this.state=L9):t===Se.GREATER_THAN_SIGN?(this._err(pt.missingDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this.state=On,this._emitCurrentToken()):t===Se.EOF?(this._err(pt.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(pt.missingQuoteBeforeDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(Zl)))}[P9](t){t===Se.QUOTATION_MARK?this.state=D9:t===Se.NULL?(this._err(pt.unexpectedNullCharacter),this.currentToken.publicId+=tr.REPLACEMENT_CHARACTER):t===Se.GREATER_THAN_SIGN?(this._err(pt.abruptDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=On):t===Se.EOF?(this._err(pt.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.publicId+=Fr(t)}[L9](t){t===Se.APOSTROPHE?this.state=D9:t===Se.NULL?(this._err(pt.unexpectedNullCharacter),this.currentToken.publicId+=tr.REPLACEMENT_CHARACTER):t===Se.GREATER_THAN_SIGN?(this._err(pt.abruptDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=On):t===Se.EOF?(this._err(pt.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.publicId+=Fr(t)}[D9](t){hr(t)?this.state=iN:t===Se.GREATER_THAN_SIGN?(this.state=On,this._emitCurrentToken()):t===Se.QUOTATION_MARK?(this._err(pt.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),this.currentToken.systemId="",this.state=xp):t===Se.APOSTROPHE?(this._err(pt.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),this.currentToken.systemId="",this.state=wp):t===Se.EOF?(this._err(pt.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(pt.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(Zl))}[iN](t){hr(t)||(t===Se.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=On):t===Se.QUOTATION_MARK?(this.currentToken.systemId="",this.state=xp):t===Se.APOSTROPHE?(this.currentToken.systemId="",this.state=wp):t===Se.EOF?(this._err(pt.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(pt.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(Zl)))}[oN](t){hr(t)?this.state=aN:t===Se.QUOTATION_MARK?(this._err(pt.missingWhitespaceAfterDoctypeSystemKeyword),this.currentToken.systemId="",this.state=xp):t===Se.APOSTROPHE?(this._err(pt.missingWhitespaceAfterDoctypeSystemKeyword),this.currentToken.systemId="",this.state=wp):t===Se.GREATER_THAN_SIGN?(this._err(pt.missingDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this.state=On,this._emitCurrentToken()):t===Se.EOF?(this._err(pt.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(pt.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(Zl))}[aN](t){hr(t)||(t===Se.QUOTATION_MARK?(this.currentToken.systemId="",this.state=xp):t===Se.APOSTROPHE?(this.currentToken.systemId="",this.state=wp):t===Se.GREATER_THAN_SIGN?(this._err(pt.missingDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this.state=On,this._emitCurrentToken()):t===Se.EOF?(this._err(pt.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(pt.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(Zl)))}[xp](t){t===Se.QUOTATION_MARK?this.state=F9:t===Se.NULL?(this._err(pt.unexpectedNullCharacter),this.currentToken.systemId+=tr.REPLACEMENT_CHARACTER):t===Se.GREATER_THAN_SIGN?(this._err(pt.abruptDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=On):t===Se.EOF?(this._err(pt.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.systemId+=Fr(t)}[wp](t){t===Se.APOSTROPHE?this.state=F9:t===Se.NULL?(this._err(pt.unexpectedNullCharacter),this.currentToken.systemId+=tr.REPLACEMENT_CHARACTER):t===Se.GREATER_THAN_SIGN?(this._err(pt.abruptDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=On):t===Se.EOF?(this._err(pt.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.systemId+=Fr(t)}[F9](t){hr(t)||(t===Se.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=On):t===Se.EOF?(this._err(pt.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(pt.unexpectedCharacterAfterDoctypeSystemIdentifier),this._reconsumeInState(Zl)))}[Zl](t){t===Se.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=On):t===Se.NULL?this._err(pt.unexpectedNullCharacter):t===Se.EOF&&(this._emitCurrentToken(),this._emitEOFToken())}[Og](t){t===Se.RIGHT_SQUARE_BRACKET?this.state=lN:t===Se.EOF?(this._err(pt.eofInCdata),this._emitEOFToken()):this._emitCodePoint(t)}[lN](t){t===Se.RIGHT_SQUARE_BRACKET?this.state=sN:(this._emitChars("]"),this._reconsumeInState(Og))}[sN](t){t===Se.GREATER_THAN_SIGN?this.state=On:t===Se.RIGHT_SQUARE_BRACKET?this._emitChars("]"):(this._emitChars("]]"),this._reconsumeInState(Og))}[Ld](t){this.tempBuff=[Se.AMPERSAND],t===Se.NUMBER_SIGN?(this.tempBuff.push(t),this.state=dN):B9(t)?this._reconsumeInState(cN):(this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState))}[cN](t){const n=this._matchNamedCharacterReference(t);if(this._ensureHibernation())this.tempBuff=[Se.AMPERSAND];else if(n){const r=this.tempBuff[this.tempBuff.length-1]===Se.SEMICOLON;this._isCharacterReferenceAttributeQuirk(r)||(r||this._errOnNextCodePoint(pt.missingSemicolonAfterCharacterReference),this.tempBuff=n),this._flushCodePointsConsumedAsCharacterReference(),this.state=this.returnState}else this._flushCodePointsConsumedAsCharacterReference(),this.state=uN}[uN](t){B9(t)?this._isCharacterReferenceInAttribute()?this.currentAttr.value+=Fr(t):this._emitCodePoint(t):(t===Se.SEMICOLON&&this._err(pt.unknownNamedCharacterReference),this._reconsumeInState(this.returnState))}[dN](t){this.charRefCode=0,t===Se.LATIN_SMALL_X||t===Se.LATIN_CAPITAL_X?(this.tempBuff.push(t),this.state=fN):this._reconsumeInState(pN)}[fN](t){a9e(t)?this._reconsumeInState(hN):(this._err(pt.absenceOfDigitsInNumericCharacterReference),this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState))}[pN](t){dh(t)?this._reconsumeInState(mN):(this._err(pt.absenceOfDigitsInNumericCharacterReference),this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState))}[hN](t){vz(t)?this.charRefCode=this.charRefCode*16+t-55:yz(t)?this.charRefCode=this.charRefCode*16+t-87:dh(t)?this.charRefCode=this.charRefCode*16+t-48:t===Se.SEMICOLON?this.state=_p:(this._err(pt.missingSemicolonAfterCharacterReference),this._reconsumeInState(_p))}[mN](t){dh(t)?this.charRefCode=this.charRefCode*10+t-48:t===Se.SEMICOLON?this.state=_p:(this._err(pt.missingSemicolonAfterCharacterReference),this._reconsumeInState(_p))}[_p](){if(this.charRefCode===Se.NULL)this._err(pt.nullCharacterReference),this.charRefCode=Se.REPLACEMENT_CHARACTER;else if(this.charRefCode>1114111)this._err(pt.characterReferenceOutsideUnicodeRange),this.charRefCode=Se.REPLACEMENT_CHARACTER;else if(tr.isSurrogate(this.charRefCode))this._err(pt.surrogateCharacterReference),this.charRefCode=Se.REPLACEMENT_CHARACTER;else if(tr.isUndefinedCodePoint(this.charRefCode))this._err(pt.noncharacterCharacterReference);else if(tr.isControlCodePoint(this.charRefCode)||this.charRefCode===Se.CARRIAGE_RETURN){this._err(pt.controlCharacterReference);const t=i9e[this.charRefCode];t&&(this.charRefCode=t)}this.tempBuff=[this.charRefCode],this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState)}};Pa.CHARACTER_TOKEN="CHARACTER_TOKEN";Pa.NULL_CHARACTER_TOKEN="NULL_CHARACTER_TOKEN";Pa.WHITESPACE_CHARACTER_TOKEN="WHITESPACE_CHARACTER_TOKEN";Pa.START_TAG_TOKEN="START_TAG_TOKEN";Pa.END_TAG_TOKEN="END_TAG_TOKEN";Pa.COMMENT_TOKEN="COMMENT_TOKEN";Pa.DOCTYPE_TOKEN="DOCTYPE_TOKEN";Pa.EOF_TOKEN="EOF_TOKEN";Pa.HIBERNATION_TOKEN="HIBERNATION_TOKEN";Pa.MODE={DATA:On,RCDATA:zd,RAWTEXT:Hp,SCRIPT_DATA:rs,PLAINTEXT:gz};Pa.getTokenAttr=function(e,t){for(let n=e.attrs.length-1;n>=0;n--)if(e.attrs[n].name===t)return e.attrs[n].value;return null};var A2=Pa,pl={};const j9=pl.NAMESPACES={HTML:"http://www.w3.org/1999/xhtml",MATHML:"http://www.w3.org/1998/Math/MathML",SVG:"http://www.w3.org/2000/svg",XLINK:"http://www.w3.org/1999/xlink",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/"};pl.ATTRS={TYPE:"type",ACTION:"action",ENCODING:"encoding",PROMPT:"prompt",NAME:"name",COLOR:"color",FACE:"face",SIZE:"size"};pl.DOCUMENT_MODE={NO_QUIRKS:"no-quirks",QUIRKS:"quirks",LIMITED_QUIRKS:"limited-quirks"};const wt=pl.TAG_NAMES={A:"a",ADDRESS:"address",ANNOTATION_XML:"annotation-xml",APPLET:"applet",AREA:"area",ARTICLE:"article",ASIDE:"aside",B:"b",BASE:"base",BASEFONT:"basefont",BGSOUND:"bgsound",BIG:"big",BLOCKQUOTE:"blockquote",BODY:"body",BR:"br",BUTTON:"button",CAPTION:"caption",CENTER:"center",CODE:"code",COL:"col",COLGROUP:"colgroup",DD:"dd",DESC:"desc",DETAILS:"details",DIALOG:"dialog",DIR:"dir",DIV:"div",DL:"dl",DT:"dt",EM:"em",EMBED:"embed",FIELDSET:"fieldset",FIGCAPTION:"figcaption",FIGURE:"figure",FONT:"font",FOOTER:"footer",FOREIGN_OBJECT:"foreignObject",FORM:"form",FRAME:"frame",FRAMESET:"frameset",H1:"h1",H2:"h2",H3:"h3",H4:"h4",H5:"h5",H6:"h6",HEAD:"head",HEADER:"header",HGROUP:"hgroup",HR:"hr",HTML:"html",I:"i",IMG:"img",IMAGE:"image",INPUT:"input",IFRAME:"iframe",KEYGEN:"keygen",LABEL:"label",LI:"li",LINK:"link",LISTING:"listing",MAIN:"main",MALIGNMARK:"malignmark",MARQUEE:"marquee",MATH:"math",MENU:"menu",META:"meta",MGLYPH:"mglyph",MI:"mi",MO:"mo",MN:"mn",MS:"ms",MTEXT:"mtext",NAV:"nav",NOBR:"nobr",NOFRAMES:"noframes",NOEMBED:"noembed",NOSCRIPT:"noscript",OBJECT:"object",OL:"ol",OPTGROUP:"optgroup",OPTION:"option",P:"p",PARAM:"param",PLAINTEXT:"plaintext",PRE:"pre",RB:"rb",RP:"rp",RT:"rt",RTC:"rtc",RUBY:"ruby",S:"s",SCRIPT:"script",SECTION:"section",SELECT:"select",SOURCE:"source",SMALL:"small",SPAN:"span",STRIKE:"strike",STRONG:"strong",STYLE:"style",SUB:"sub",SUMMARY:"summary",SUP:"sup",TABLE:"table",TBODY:"tbody",TEMPLATE:"template",TEXTAREA:"textarea",TFOOT:"tfoot",TD:"td",TH:"th",THEAD:"thead",TITLE:"title",TR:"tr",TRACK:"track",TT:"tt",U:"u",UL:"ul",SVG:"svg",VAR:"var",WBR:"wbr",XMP:"xmp"};pl.SPECIAL_ELEMENTS={[j9.HTML]:{[wt.ADDRESS]:!0,[wt.APPLET]:!0,[wt.AREA]:!0,[wt.ARTICLE]:!0,[wt.ASIDE]:!0,[wt.BASE]:!0,[wt.BASEFONT]:!0,[wt.BGSOUND]:!0,[wt.BLOCKQUOTE]:!0,[wt.BODY]:!0,[wt.BR]:!0,[wt.BUTTON]:!0,[wt.CAPTION]:!0,[wt.CENTER]:!0,[wt.COL]:!0,[wt.COLGROUP]:!0,[wt.DD]:!0,[wt.DETAILS]:!0,[wt.DIR]:!0,[wt.DIV]:!0,[wt.DL]:!0,[wt.DT]:!0,[wt.EMBED]:!0,[wt.FIELDSET]:!0,[wt.FIGCAPTION]:!0,[wt.FIGURE]:!0,[wt.FOOTER]:!0,[wt.FORM]:!0,[wt.FRAME]:!0,[wt.FRAMESET]:!0,[wt.H1]:!0,[wt.H2]:!0,[wt.H3]:!0,[wt.H4]:!0,[wt.H5]:!0,[wt.H6]:!0,[wt.HEAD]:!0,[wt.HEADER]:!0,[wt.HGROUP]:!0,[wt.HR]:!0,[wt.HTML]:!0,[wt.IFRAME]:!0,[wt.IMG]:!0,[wt.INPUT]:!0,[wt.LI]:!0,[wt.LINK]:!0,[wt.LISTING]:!0,[wt.MAIN]:!0,[wt.MARQUEE]:!0,[wt.MENU]:!0,[wt.META]:!0,[wt.NAV]:!0,[wt.NOEMBED]:!0,[wt.NOFRAMES]:!0,[wt.NOSCRIPT]:!0,[wt.OBJECT]:!0,[wt.OL]:!0,[wt.P]:!0,[wt.PARAM]:!0,[wt.PLAINTEXT]:!0,[wt.PRE]:!0,[wt.SCRIPT]:!0,[wt.SECTION]:!0,[wt.SELECT]:!0,[wt.SOURCE]:!0,[wt.STYLE]:!0,[wt.SUMMARY]:!0,[wt.TABLE]:!0,[wt.TBODY]:!0,[wt.TD]:!0,[wt.TEMPLATE]:!0,[wt.TEXTAREA]:!0,[wt.TFOOT]:!0,[wt.TH]:!0,[wt.THEAD]:!0,[wt.TITLE]:!0,[wt.TR]:!0,[wt.TRACK]:!0,[wt.UL]:!0,[wt.WBR]:!0,[wt.XMP]:!0},[j9.MATHML]:{[wt.MI]:!0,[wt.MO]:!0,[wt.MN]:!0,[wt.MS]:!0,[wt.MTEXT]:!0,[wt.ANNOTATION_XML]:!0},[j9.SVG]:{[wt.TITLE]:!0,[wt.FOREIGN_OBJECT]:!0,[wt.DESC]:!0}};const bz=pl,Ot=bz.TAG_NAMES,nr=bz.NAMESPACES;function vN(e){switch(e.length){case 1:return e===Ot.P;case 2:return e===Ot.RB||e===Ot.RP||e===Ot.RT||e===Ot.DD||e===Ot.DT||e===Ot.LI;case 3:return e===Ot.RTC;case 6:return e===Ot.OPTION;case 8:return e===Ot.OPTGROUP}return!1}function l9e(e){switch(e.length){case 1:return e===Ot.P;case 2:return e===Ot.RB||e===Ot.RP||e===Ot.RT||e===Ot.DD||e===Ot.DT||e===Ot.LI||e===Ot.TD||e===Ot.TH||e===Ot.TR;case 3:return e===Ot.RTC;case 5:return e===Ot.TBODY||e===Ot.TFOOT||e===Ot.THEAD;case 6:return e===Ot.OPTION;case 7:return e===Ot.CAPTION;case 8:return e===Ot.OPTGROUP||e===Ot.COLGROUP}return!1}function Ig(e,t){switch(e.length){case 2:if(e===Ot.TD||e===Ot.TH)return t===nr.HTML;if(e===Ot.MI||e===Ot.MO||e===Ot.MN||e===Ot.MS)return t===nr.MATHML;break;case 4:if(e===Ot.HTML)return t===nr.HTML;if(e===Ot.DESC)return t===nr.SVG;break;case 5:if(e===Ot.TABLE)return t===nr.HTML;if(e===Ot.MTEXT)return t===nr.MATHML;if(e===Ot.TITLE)return t===nr.SVG;break;case 6:return(e===Ot.APPLET||e===Ot.OBJECT)&&t===nr.HTML;case 7:return(e===Ot.CAPTION||e===Ot.MARQUEE)&&t===nr.HTML;case 8:return e===Ot.TEMPLATE&&t===nr.HTML;case 13:return e===Ot.FOREIGN_OBJECT&&t===nr.SVG;case 14:return e===Ot.ANNOTATION_XML&&t===nr.MATHML}return!1}let s9e=class{constructor(t,n){this.stackTop=-1,this.items=[],this.current=t,this.currentTagName=null,this.currentTmplContent=null,this.tmplCount=0,this.treeAdapter=n}_indexOf(t){let n=-1;for(let r=this.stackTop;r>=0;r--)if(this.items[r]===t){n=r;break}return n}_isInTemplate(){return this.currentTagName===Ot.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===nr.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagName=this.current&&this.treeAdapter.getTagName(this.current),this.currentTmplContent=this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):null}push(t){this.items[++this.stackTop]=t,this._updateCurrentElement(),this._isInTemplate()&&this.tmplCount++}pop(){this.stackTop--,this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this._updateCurrentElement()}replace(t,n){const r=this._indexOf(t);this.items[r]=n,r===this.stackTop&&this._updateCurrentElement()}insertAfter(t,n){const r=this._indexOf(t)+1;this.items.splice(r,0,n),r===++this.stackTop&&this._updateCurrentElement()}popUntilTagNamePopped(t){for(;this.stackTop>-1;){const n=this.currentTagName,r=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),n===t&&r===nr.HTML)break}}popUntilElementPopped(t){for(;this.stackTop>-1;){const n=this.current;if(this.pop(),n===t)break}}popUntilNumberedHeaderPopped(){for(;this.stackTop>-1;){const t=this.currentTagName,n=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),t===Ot.H1||t===Ot.H2||t===Ot.H3||t===Ot.H4||t===Ot.H5||t===Ot.H6&&n===nr.HTML)break}}popUntilTableCellPopped(){for(;this.stackTop>-1;){const t=this.currentTagName,n=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),t===Ot.TD||t===Ot.TH&&n===nr.HTML)break}}popAllUpToHtmlElement(){this.stackTop=0,this._updateCurrentElement()}clearBackToTableContext(){for(;this.currentTagName!==Ot.TABLE&&this.currentTagName!==Ot.TEMPLATE&&this.currentTagName!==Ot.HTML||this.treeAdapter.getNamespaceURI(this.current)!==nr.HTML;)this.pop()}clearBackToTableBodyContext(){for(;this.currentTagName!==Ot.TBODY&&this.currentTagName!==Ot.TFOOT&&this.currentTagName!==Ot.THEAD&&this.currentTagName!==Ot.TEMPLATE&&this.currentTagName!==Ot.HTML||this.treeAdapter.getNamespaceURI(this.current)!==nr.HTML;)this.pop()}clearBackToTableRowContext(){for(;this.currentTagName!==Ot.TR&&this.currentTagName!==Ot.TEMPLATE&&this.currentTagName!==Ot.HTML||this.treeAdapter.getNamespaceURI(this.current)!==nr.HTML;)this.pop()}remove(t){for(let n=this.stackTop;n>=0;n--)if(this.items[n]===t){this.items.splice(n,1),this.stackTop--,this._updateCurrentElement();break}}tryPeekProperlyNestedBodyElement(){const t=this.items[1];return t&&this.treeAdapter.getTagName(t)===Ot.BODY?t:null}contains(t){return this._indexOf(t)>-1}getCommonAncestor(t){let n=this._indexOf(t);return--n>=0?this.items[n]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.currentTagName===Ot.HTML}hasInScope(t){for(let n=this.stackTop;n>=0;n--){const r=this.treeAdapter.getTagName(this.items[n]),i=this.treeAdapter.getNamespaceURI(this.items[n]);if(r===t&&i===nr.HTML)return!0;if(Ig(r,i))return!1}return!0}hasNumberedHeaderInScope(){for(let t=this.stackTop;t>=0;t--){const n=this.treeAdapter.getTagName(this.items[t]),r=this.treeAdapter.getNamespaceURI(this.items[t]);if((n===Ot.H1||n===Ot.H2||n===Ot.H3||n===Ot.H4||n===Ot.H5||n===Ot.H6)&&r===nr.HTML)return!0;if(Ig(n,r))return!1}return!0}hasInListItemScope(t){for(let n=this.stackTop;n>=0;n--){const r=this.treeAdapter.getTagName(this.items[n]),i=this.treeAdapter.getNamespaceURI(this.items[n]);if(r===t&&i===nr.HTML)return!0;if((r===Ot.UL||r===Ot.OL)&&i===nr.HTML||Ig(r,i))return!1}return!0}hasInButtonScope(t){for(let n=this.stackTop;n>=0;n--){const r=this.treeAdapter.getTagName(this.items[n]),i=this.treeAdapter.getNamespaceURI(this.items[n]);if(r===t&&i===nr.HTML)return!0;if(r===Ot.BUTTON&&i===nr.HTML||Ig(r,i))return!1}return!0}hasInTableScope(t){for(let n=this.stackTop;n>=0;n--){const r=this.treeAdapter.getTagName(this.items[n]);if(this.treeAdapter.getNamespaceURI(this.items[n])===nr.HTML){if(r===t)return!0;if(r===Ot.TABLE||r===Ot.TEMPLATE||r===Ot.HTML)return!1}}return!0}hasTableBodyContextInTableScope(){for(let t=this.stackTop;t>=0;t--){const n=this.treeAdapter.getTagName(this.items[t]);if(this.treeAdapter.getNamespaceURI(this.items[t])===nr.HTML){if(n===Ot.TBODY||n===Ot.THEAD||n===Ot.TFOOT)return!0;if(n===Ot.TABLE||n===Ot.HTML)return!1}}return!0}hasInSelectScope(t){for(let n=this.stackTop;n>=0;n--){const r=this.treeAdapter.getTagName(this.items[n]);if(this.treeAdapter.getNamespaceURI(this.items[n])===nr.HTML){if(r===t)return!0;if(r!==Ot.OPTION&&r!==Ot.OPTGROUP)return!1}}return!0}generateImpliedEndTags(){for(;vN(this.currentTagName);)this.pop()}generateImpliedEndTagsThoroughly(){for(;l9e(this.currentTagName);)this.pop()}generateImpliedEndTagsWithExclusion(t){for(;vN(this.currentTagName)&&this.currentTagName!==t;)this.pop()}};var c9e=s9e;const kg=3;let ow=class Xs{constructor(t){this.length=0,this.entries=[],this.treeAdapter=t,this.bookmark=null}_getNoahArkConditionCandidates(t){const n=[];if(this.length>=kg){const r=this.treeAdapter.getAttrList(t).length,i=this.treeAdapter.getTagName(t),o=this.treeAdapter.getNamespaceURI(t);for(let a=this.length-1;a>=0;a--){const l=this.entries[a];if(l.type===Xs.MARKER_ENTRY)break;const c=l.element,u=this.treeAdapter.getAttrList(c);this.treeAdapter.getTagName(c)===i&&this.treeAdapter.getNamespaceURI(c)===o&&u.length===r&&n.push({idx:a,attrs:u})}}return n.length<kg?[]:n}_ensureNoahArkCondition(t){const n=this._getNoahArkConditionCandidates(t);let r=n.length;if(r){const i=this.treeAdapter.getAttrList(t),o=i.length,a=Object.create(null);for(let l=0;l<o;l++){const c=i[l];a[c.name]=c.value}for(let l=0;l<o;l++)for(let c=0;c<r;c++){const u=n[c].attrs[l];if(a[u.name]!==u.value&&(n.splice(c,1),r--),n.length<kg)return}for(let l=r-1;l>=kg-1;l--)this.entries.splice(n[l].idx,1),this.length--}}insertMarker(){this.entries.push({type:Xs.MARKER_ENTRY}),this.length++}pushElement(t,n){this._ensureNoahArkCondition(t),this.entries.push({type:Xs.ELEMENT_ENTRY,element:t,token:n}),this.length++}insertElementAfterBookmark(t,n){let r=this.length-1;for(;r>=0&&this.entries[r]!==this.bookmark;r--);this.entries.splice(r+1,0,{type:Xs.ELEMENT_ENTRY,element:t,token:n}),this.length++}removeEntry(t){for(let n=this.length-1;n>=0;n--)if(this.entries[n]===t){this.entries.splice(n,1),this.length--;break}}clearToLastMarker(){for(;this.length;){const t=this.entries.pop();if(this.length--,t.type===Xs.MARKER_ENTRY)break}}getElementEntryInScopeWithTagName(t){for(let n=this.length-1;n>=0;n--){const r=this.entries[n];if(r.type===Xs.MARKER_ENTRY)return null;if(this.treeAdapter.getTagName(r.element)===t)return r}return null}getElementEntry(t){for(let n=this.length-1;n>=0;n--){const r=this.entries[n];if(r.type===Xs.ELEMENT_ENTRY&&r.element===t)return r}return null}};ow.MARKER_ENTRY="MARKER_ENTRY";ow.ELEMENT_ENTRY="ELEMENT_ENTRY";var u9e=ow;let Cz=class{constructor(t){const n={},r=this._getOverriddenMethods(this,n);for(const i of Object.keys(r))typeof r[i]=="function"&&(n[i]=t[i],t[i]=r[i])}_getOverriddenMethods(){throw new Error("Not implemented")}};Cz.install=function(e,t,n){e.__mixins||(e.__mixins=[]);for(let i=0;i<e.__mixins.length;i++)if(e.__mixins[i].constructor===t)return e.__mixins[i];const r=new t(e,n);return e.__mixins.push(r),r};var xs=Cz;const d9e=xs;let f9e=class extends d9e{constructor(t){super(t),this.preprocessor=t,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.offset=0,this.col=0,this.line=1}_getOverriddenMethods(t,n){return{advance(){const r=this.pos+1,i=this.html[r];return t.isEol&&(t.isEol=!1,t.line++,t.lineStartPos=r),(i===`
`||i==="\r"&&this.html[r+1]!==`
`)&&(t.isEol=!0),t.col=r-t.lineStartPos+1,t.offset=t.droppedBufferSize+r,n.advance.call(this)},retreat(){n.retreat.call(this),t.isEol=!1,t.col=this.pos-t.lineStartPos+1},dropParsedChunk(){const r=this.pos;n.dropParsedChunk.call(this);const i=r-this.pos;t.lineStartPos-=i,t.droppedBufferSize+=i,t.offset=t.droppedBufferSize+this.pos}}}};var Sz=f9e;const yN=xs,H9=A2,p9e=Sz;let h9e=class extends yN{constructor(t){super(t),this.tokenizer=t,this.posTracker=yN.install(t.preprocessor,p9e),this.currentAttrLocation=null,this.ctLoc=null}_getCurrentLocation(){return{startLine:this.posTracker.line,startCol:this.posTracker.col,startOffset:this.posTracker.offset,endLine:-1,endCol:-1,endOffset:-1}}_attachCurrentAttrLocationInfo(){this.currentAttrLocation.endLine=this.posTracker.line,this.currentAttrLocation.endCol=this.posTracker.col,this.currentAttrLocation.endOffset=this.posTracker.offset;const t=this.tokenizer.currentToken,n=this.tokenizer.currentAttr;t.location.attrs||(t.location.attrs=Object.create(null)),t.location.attrs[n.name]=this.currentAttrLocation}_getOverriddenMethods(t,n){const r={_createStartTagToken(){n._createStartTagToken.call(this),this.currentToken.location=t.ctLoc},_createEndTagToken(){n._createEndTagToken.call(this),this.currentToken.location=t.ctLoc},_createCommentToken(){n._createCommentToken.call(this),this.currentToken.location=t.ctLoc},_createDoctypeToken(i){n._createDoctypeToken.call(this,i),this.currentToken.location=t.ctLoc},_createCharacterToken(i,o){n._createCharacterToken.call(this,i,o),this.currentCharacterToken.location=t.ctLoc},_createEOFToken(){n._createEOFToken.call(this),this.currentToken.location=t._getCurrentLocation()},_createAttr(i){n._createAttr.call(this,i),t.currentAttrLocation=t._getCurrentLocation()},_leaveAttrName(i){n._leaveAttrName.call(this,i),t._attachCurrentAttrLocationInfo()},_leaveAttrValue(i){n._leaveAttrValue.call(this,i),t._attachCurrentAttrLocationInfo()},_emitCurrentToken(){const i=this.currentToken.location;this.currentCharacterToken&&(this.currentCharacterToken.location.endLine=i.startLine,this.currentCharacterToken.location.endCol=i.startCol,this.currentCharacterToken.location.endOffset=i.startOffset),this.currentToken.type===H9.EOF_TOKEN?(i.endLine=i.startLine,i.endCol=i.startCol,i.endOffset=i.startOffset):(i.endLine=t.posTracker.line,i.endCol=t.posTracker.col+1,i.endOffset=t.posTracker.offset+1),n._emitCurrentToken.call(this)},_emitCurrentCharacterToken(){const i=this.currentCharacterToken&&this.currentCharacterToken.location;i&&i.endOffset===-1&&(i.endLine=t.posTracker.line,i.endCol=t.posTracker.col,i.endOffset=t.posTracker.offset),n._emitCurrentCharacterToken.call(this)}};return Object.keys(H9.MODE).forEach(i=>{const o=H9.MODE[i];r[o]=function(a){t.ctLoc=t._getCurrentLocation(),n[o].call(this,a)}}),r}};var Ez=h9e;const m9e=xs;let g9e=class extends m9e{constructor(t,n){super(t),this.onItemPop=n.onItemPop}_getOverriddenMethods(t,n){return{pop(){t.onItemPop(this.current),n.pop.call(this)},popAllUpToHtmlElement(){for(let r=this.stackTop;r>0;r--)t.onItemPop(this.items[r]);n.popAllUpToHtmlElement.call(this)},remove(r){t.onItemPop(this.current),n.remove.call(this,r)}}}};var v9e=g9e;const z9=xs,bN=A2,y9e=Ez,b9e=v9e,C9e=pl,W9=C9e.TAG_NAMES;let S9e=class extends z9{constructor(t){super(t),this.parser=t,this.treeAdapter=this.parser.treeAdapter,this.posTracker=null,this.lastStartTagToken=null,this.lastFosterParentingLocation=null,this.currentToken=null}_setStartLocation(t){let n=null;this.lastStartTagToken&&(n=Object.assign({},this.lastStartTagToken.location),n.startTag=this.lastStartTagToken.location),this.treeAdapter.setNodeSourceCodeLocation(t,n)}_setEndLocation(t,n){if(this.treeAdapter.getNodeSourceCodeLocation(t)&&n.location){const i=n.location,o=this.treeAdapter.getTagName(t),a=n.type===bN.END_TAG_TOKEN&&o===n.tagName,l={};a?(l.endTag=Object.assign({},i),l.endLine=i.endLine,l.endCol=i.endCol,l.endOffset=i.endOffset):(l.endLine=i.startLine,l.endCol=i.startCol,l.endOffset=i.startOffset),this.treeAdapter.updateNodeSourceCodeLocation(t,l)}}_getOverriddenMethods(t,n){return{_bootstrap(r,i){n._bootstrap.call(this,r,i),t.lastStartTagToken=null,t.lastFosterParentingLocation=null,t.currentToken=null;const o=z9.install(this.tokenizer,y9e);t.posTracker=o.posTracker,z9.install(this.openElements,b9e,{onItemPop:function(a){t._setEndLocation(a,t.currentToken)}})},_runParsingLoop(r){n._runParsingLoop.call(this,r);for(let i=this.openElements.stackTop;i>=0;i--)t._setEndLocation(this.openElements.items[i],t.currentToken)},_processTokenInForeignContent(r){t.currentToken=r,n._processTokenInForeignContent.call(this,r)},_processToken(r){if(t.currentToken=r,n._processToken.call(this,r),r.type===bN.END_TAG_TOKEN&&(r.tagName===W9.HTML||r.tagName===W9.BODY&&this.openElements.hasInScope(W9.BODY)))for(let o=this.openElements.stackTop;o>=0;o--){const a=this.openElements.items[o];if(this.treeAdapter.getTagName(a)===r.tagName){t._setEndLocation(a,r);break}}},_setDocumentType(r){n._setDocumentType.call(this,r);const i=this.treeAdapter.getChildNodes(this.document),o=i.length;for(let a=0;a<o;a++){const l=i[a];if(this.treeAdapter.isDocumentTypeNode(l)){this.treeAdapter.setNodeSourceCodeLocation(l,r.location);break}}},_attachElementToTree(r){t._setStartLocation(r),t.lastStartTagToken=null,n._attachElementToTree.call(this,r)},_appendElement(r,i){t.lastStartTagToken=r,n._appendElement.call(this,r,i)},_insertElement(r,i){t.lastStartTagToken=r,n._insertElement.call(this,r,i)},_insertTemplate(r){t.lastStartTagToken=r,n._insertTemplate.call(this,r);const i=this.treeAdapter.getTemplateContent(this.openElements.current);this.treeAdapter.setNodeSourceCodeLocation(i,null)},_insertFakeRootElement(){n._insertFakeRootElement.call(this),this.treeAdapter.setNodeSourceCodeLocation(this.openElements.current,null)},_appendCommentNode(r,i){n._appendCommentNode.call(this,r,i);const o=this.treeAdapter.getChildNodes(i),a=o[o.length-1];this.treeAdapter.setNodeSourceCodeLocation(a,r.location)},_findFosterParentingLocation(){return t.lastFosterParentingLocation=n._findFosterParentingLocation.call(this),t.lastFosterParentingLocation},_insertCharacters(r){n._insertCharacters.call(this,r);const i=this._shouldFosterParentOnInsertion(),o=i&&t.lastFosterParentingLocation.parent||this.openElements.currentTmplContent||this.openElements.current,a=this.treeAdapter.getChildNodes(o),l=i&&t.lastFosterParentingLocation.beforeElement?a.indexOf(t.lastFosterParentingLocation.beforeElement)-1:a.length-1,c=a[l];if(this.treeAdapter.getNodeSourceCodeLocation(c)){const{endLine:p,endCol:h,endOffset:m}=r.location;this.treeAdapter.updateNodeSourceCodeLocation(c,{endLine:p,endCol:h,endOffset:m})}else this.treeAdapter.setNodeSourceCodeLocation(c,r.location)}}}};var E9e=S9e;const x9e=xs;let w9e=class extends x9e{constructor(t,n){super(t),this.posTracker=null,this.onParseError=n.onParseError}_setErrorLocation(t){t.startLine=t.endLine=this.posTracker.line,t.startCol=t.endCol=this.posTracker.col,t.startOffset=t.endOffset=this.posTracker.offset}_reportError(t){const n={code:t,startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1};this._setErrorLocation(n),this.onParseError(n)}_getOverriddenMethods(t){return{_err(n){t._reportError(n)}}}};var aw=w9e;const _9e=aw,T9e=Sz,O9e=xs;let I9e=class extends _9e{constructor(t,n){super(t,n),this.posTracker=O9e.install(t,T9e),this.lastErrOffset=-1}_reportError(t){this.lastErrOffset!==this.posTracker.offset&&(this.lastErrOffset=this.posTracker.offset,super._reportError(t))}};var k9e=I9e;const $9e=aw,N9e=k9e,A9e=xs;let R9e=class extends $9e{constructor(t,n){super(t,n);const r=A9e.install(t.preprocessor,N9e,n);this.posTracker=r.posTracker}};var M9e=R9e;const P9e=aw,L9e=M9e,D9e=Ez,CN=xs;let F9e=class extends P9e{constructor(t,n){super(t,n),this.opts=n,this.ctLoc=null,this.locBeforeToken=!1}_setErrorLocation(t){this.ctLoc&&(t.startLine=this.ctLoc.startLine,t.startCol=this.ctLoc.startCol,t.startOffset=this.ctLoc.startOffset,t.endLine=this.locBeforeToken?this.ctLoc.startLine:this.ctLoc.endLine,t.endCol=this.locBeforeToken?this.ctLoc.startCol:this.ctLoc.endCol,t.endOffset=this.locBeforeToken?this.ctLoc.startOffset:this.ctLoc.endOffset)}_getOverriddenMethods(t,n){return{_bootstrap(r,i){n._bootstrap.call(this,r,i),CN.install(this.tokenizer,L9e,t.opts),CN.install(this.tokenizer,D9e)},_processInputToken(r){t.ctLoc=r.location,n._processInputToken.call(this,r)},_err(r,i){t.locBeforeToken=i&&i.beforeToken,t._reportError(r)}}}};var B9e=F9e,Bn={};const{DOCUMENT_MODE:j9e}=pl;Bn.createDocument=function(){return{nodeName:"#document",mode:j9e.NO_QUIRKS,childNodes:[]}};Bn.createDocumentFragment=function(){return{nodeName:"#document-fragment",childNodes:[]}};Bn.createElement=function(e,t,n){return{nodeName:e,tagName:e,attrs:n,namespaceURI:t,childNodes:[],parentNode:null}};Bn.createCommentNode=function(e){return{nodeName:"#comment",data:e,parentNode:null}};const xz=function(e){return{nodeName:"#text",value:e,parentNode:null}},wz=Bn.appendChild=function(e,t){e.childNodes.push(t),t.parentNode=e},H9e=Bn.insertBefore=function(e,t,n){const r=e.childNodes.indexOf(n);e.childNodes.splice(r,0,t),t.parentNode=e};Bn.setTemplateContent=function(e,t){e.content=t};Bn.getTemplateContent=function(e){return e.content};Bn.setDocumentType=function(e,t,n,r){let i=null;for(let o=0;o<e.childNodes.length;o++)if(e.childNodes[o].nodeName==="#documentType"){i=e.childNodes[o];break}i?(i.name=t,i.publicId=n,i.systemId=r):wz(e,{nodeName:"#documentType",name:t,publicId:n,systemId:r})};Bn.setDocumentMode=function(e,t){e.mode=t};Bn.getDocumentMode=function(e){return e.mode};Bn.detachNode=function(e){if(e.parentNode){const t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}};Bn.insertText=function(e,t){if(e.childNodes.length){const n=e.childNodes[e.childNodes.length-1];if(n.nodeName==="#text"){n.value+=t;return}}wz(e,xz(t))};Bn.insertTextBefore=function(e,t,n){const r=e.childNodes[e.childNodes.indexOf(n)-1];r&&r.nodeName==="#text"?r.value+=t:H9e(e,xz(t),n)};Bn.adoptAttributes=function(e,t){const n=[];for(let r=0;r<e.attrs.length;r++)n.push(e.attrs[r].name);for(let r=0;r<t.length;r++)n.indexOf(t[r].name)===-1&&e.attrs.push(t[r])};Bn.getFirstChild=function(e){return e.childNodes[0]};Bn.getChildNodes=function(e){return e.childNodes};Bn.getParentNode=function(e){return e.parentNode};Bn.getAttrList=function(e){return e.attrs};Bn.getTagName=function(e){return e.tagName};Bn.getNamespaceURI=function(e){return e.namespaceURI};Bn.getTextNodeContent=function(e){return e.value};Bn.getCommentNodeContent=function(e){return e.data};Bn.getDocumentTypeNodeName=function(e){return e.name};Bn.getDocumentTypeNodePublicId=function(e){return e.publicId};Bn.getDocumentTypeNodeSystemId=function(e){return e.systemId};Bn.isTextNode=function(e){return e.nodeName==="#text"};Bn.isCommentNode=function(e){return e.nodeName==="#comment"};Bn.isDocumentTypeNode=function(e){return e.nodeName==="#documentType"};Bn.isElementNode=function(e){return!!e.tagName};Bn.setNodeSourceCodeLocation=function(e,t){e.sourceCodeLocation=t};Bn.getNodeSourceCodeLocation=function(e){return e.sourceCodeLocation};Bn.updateNodeSourceCodeLocation=function(e,t){e.sourceCodeLocation=Object.assign(e.sourceCodeLocation,t)};var z9e=function(t,n){return n=n||Object.create(null),[t,n].reduce((r,i)=>(Object.keys(i).forEach(o=>{r[o]=i[o]}),r),Object.create(null))},R2={};const{DOCUMENT_MODE:Dd}=pl,_z="html",W9e="about:legacy-compat",U9e="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",Tz=["+//silmaril//dtd html pro v0r11 19970101//","-//as//dtd html 3.0 aswedit + extensions//","-//advasoft ltd//dtd html 3.0 aswedit + extensions//","-//ietf//dtd html 2.0 level 1//","-//ietf//dtd html 2.0 level 2//","-//ietf//dtd html 2.0 strict level 1//","-//ietf//dtd html 2.0 strict level 2//","-//ietf//dtd html 2.0 strict//","-//ietf//dtd html 2.0//","-//ietf//dtd html 2.1e//","-//ietf//dtd html 3.0//","-//ietf//dtd html 3.2 final//","-//ietf//dtd html 3.2//","-//ietf//dtd html 3//","-//ietf//dtd html level 0//","-//ietf//dtd html level 1//","-//ietf//dtd html level 2//","-//ietf//dtd html level 3//","-//ietf//dtd html strict level 0//","-//ietf//dtd html strict level 1//","-//ietf//dtd html strict level 2//","-//ietf//dtd html strict level 3//","-//ietf//dtd html strict//","-//ietf//dtd html//","-//metrius//dtd metrius presentational//","-//microsoft//dtd internet explorer 2.0 html strict//","-//microsoft//dtd internet explorer 2.0 html//","-//microsoft//dtd internet explorer 2.0 tables//","-//microsoft//dtd internet explorer 3.0 html strict//","-//microsoft//dtd internet explorer 3.0 html//","-//microsoft//dtd internet explorer 3.0 tables//","-//netscape comm. corp.//dtd html//","-//netscape comm. corp.//dtd strict html//","-//o'reilly and associates//dtd html 2.0//","-//o'reilly and associates//dtd html extended 1.0//","-//o'reilly and associates//dtd html extended relaxed 1.0//","-//sq//dtd html 2.0 hotmetal + extensions//","-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//","-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//","-//spyglass//dtd html 2.0 extended//","-//sun microsystems corp.//dtd hotjava html//","-//sun microsystems corp.//dtd hotjava strict html//","-//w3c//dtd html 3 1995-03-24//","-//w3c//dtd html 3.2 draft//","-//w3c//dtd html 3.2 final//","-//w3c//dtd html 3.2//","-//w3c//dtd html 3.2s draft//","-//w3c//dtd html 4.0 frameset//","-//w3c//dtd html 4.0 transitional//","-//w3c//dtd html experimental 19960712//","-//w3c//dtd html experimental 970421//","-//w3c//dtd w3 html//","-//w3o//dtd w3 html 3.0//","-//webtechs//dtd mozilla html 2.0//","-//webtechs//dtd mozilla html//"],K9e=Tz.concat(["-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"]),V9e=["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"],Oz=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],G9e=Oz.concat(["-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"]);function SN(e){const t=e.indexOf('"')!==-1?"'":'"';return t+e+t}function EN(e,t){for(let n=0;n<t.length;n++)if(e.indexOf(t[n])===0)return!0;return!1}R2.isConforming=function(e){return e.name===_z&&e.publicId===null&&(e.systemId===null||e.systemId===W9e)};R2.getDocumentMode=function(e){if(e.name!==_z)return Dd.QUIRKS;const t=e.systemId;if(t&&t.toLowerCase()===U9e)return Dd.QUIRKS;let n=e.publicId;if(n!==null){if(n=n.toLowerCase(),V9e.indexOf(n)>-1)return Dd.QUIRKS;let r=t===null?K9e:Tz;if(EN(n,r))return Dd.QUIRKS;if(r=t===null?Oz:G9e,EN(n,r))return Dd.LIMITED_QUIRKS}return Dd.NO_QUIRKS};R2.serializeContent=function(e,t,n){let r="!DOCTYPE ";return e&&(r+=e),t?r+=" PUBLIC "+SN(t):n&&(r+=" SYSTEM"),n!==null&&(r+=" "+SN(n)),r};var Fc={};const U9=A2,lw=pl,cn=lw.TAG_NAMES,Ni=lw.NAMESPACES,bv=lw.ATTRS,xN={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},q9e="definitionurl",X9e="definitionURL",Y9e={attributename:"attributeName",attributetype:"attributeType",basefrequency:"baseFrequency",baseprofile:"baseProfile",calcmode:"calcMode",clippathunits:"clipPathUnits",diffuseconstant:"diffuseConstant",edgemode:"edgeMode",filterunits:"filterUnits",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",limitingconeangle:"limitingConeAngle",markerheight:"markerHeight",markerunits:"markerUnits",markerwidth:"markerWidth",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",numoctaves:"numOctaves",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",refx:"refX",refy:"refY",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",specularconstant:"specularConstant",specularexponent:"specularExponent",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stitchtiles:"stitchTiles",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textlength:"textLength",viewbox:"viewBox",viewtarget:"viewTarget",xchannelselector:"xChannelSelector",ychannelselector:"yChannelSelector",zoomandpan:"zoomAndPan"},Q9e={"xlink:actuate":{prefix:"xlink",name:"actuate",namespace:Ni.XLINK},"xlink:arcrole":{prefix:"xlink",name:"arcrole",namespace:Ni.XLINK},"xlink:href":{prefix:"xlink",name:"href",namespace:Ni.XLINK},"xlink:role":{prefix:"xlink",name:"role",namespace:Ni.XLINK},"xlink:show":{prefix:"xlink",name:"show",namespace:Ni.XLINK},"xlink:title":{prefix:"xlink",name:"title",namespace:Ni.XLINK},"xlink:type":{prefix:"xlink",name:"type",namespace:Ni.XLINK},"xml:base":{prefix:"xml",name:"base",namespace:Ni.XML},"xml:lang":{prefix:"xml",name:"lang",namespace:Ni.XML},"xml:space":{prefix:"xml",name:"space",namespace:Ni.XML},xmlns:{prefix:"",name:"xmlns",namespace:Ni.XMLNS},"xmlns:xlink":{prefix:"xmlns",name:"xlink",namespace:Ni.XMLNS}},Z9e=Fc.SVG_TAG_NAMES_ADJUSTMENT_MAP={altglyph:"altGlyph",altglyphdef:"altGlyphDef",altglyphitem:"altGlyphItem",animatecolor:"animateColor",animatemotion:"animateMotion",animatetransform:"animateTransform",clippath:"clipPath",feblend:"feBlend",fecolormatrix:"feColorMatrix",fecomponenttransfer:"feComponentTransfer",fecomposite:"feComposite",feconvolvematrix:"feConvolveMatrix",fediffuselighting:"feDiffuseLighting",fedisplacementmap:"feDisplacementMap",fedistantlight:"feDistantLight",feflood:"feFlood",fefunca:"feFuncA",fefuncb:"feFuncB",fefuncg:"feFuncG",fefuncr:"feFuncR",fegaussianblur:"feGaussianBlur",feimage:"feImage",femerge:"feMerge",femergenode:"feMergeNode",femorphology:"feMorphology",feoffset:"feOffset",fepointlight:"fePointLight",fespecularlighting:"feSpecularLighting",fespotlight:"feSpotLight",fetile:"feTile",feturbulence:"feTurbulence",foreignobject:"foreignObject",glyphref:"glyphRef",lineargradient:"linearGradient",radialgradient:"radialGradient",textpath:"textPath"},J9e={[cn.B]:!0,[cn.BIG]:!0,[cn.BLOCKQUOTE]:!0,[cn.BODY]:!0,[cn.BR]:!0,[cn.CENTER]:!0,[cn.CODE]:!0,[cn.DD]:!0,[cn.DIV]:!0,[cn.DL]:!0,[cn.DT]:!0,[cn.EM]:!0,[cn.EMBED]:!0,[cn.H1]:!0,[cn.H2]:!0,[cn.H3]:!0,[cn.H4]:!0,[cn.H5]:!0,[cn.H6]:!0,[cn.HEAD]:!0,[cn.HR]:!0,[cn.I]:!0,[cn.IMG]:!0,[cn.LI]:!0,[cn.LISTING]:!0,[cn.MENU]:!0,[cn.META]:!0,[cn.NOBR]:!0,[cn.OL]:!0,[cn.P]:!0,[cn.PRE]:!0,[cn.RUBY]:!0,[cn.S]:!0,[cn.SMALL]:!0,[cn.SPAN]:!0,[cn.STRONG]:!0,[cn.STRIKE]:!0,[cn.SUB]:!0,[cn.SUP]:!0,[cn.TABLE]:!0,[cn.TT]:!0,[cn.U]:!0,[cn.UL]:!0,[cn.VAR]:!0};Fc.causesExit=function(e){const t=e.tagName;return t===cn.FONT&&(U9.getTokenAttr(e,bv.COLOR)!==null||U9.getTokenAttr(e,bv.SIZE)!==null||U9.getTokenAttr(e,bv.FACE)!==null)?!0:J9e[t]};Fc.adjustTokenMathMLAttrs=function(e){for(let t=0;t<e.attrs.length;t++)if(e.attrs[t].name===q9e){e.attrs[t].name=X9e;break}};Fc.adjustTokenSVGAttrs=function(e){for(let t=0;t<e.attrs.length;t++){const n=Y9e[e.attrs[t].name];n&&(e.attrs[t].name=n)}};Fc.adjustTokenXMLAttrs=function(e){for(let t=0;t<e.attrs.length;t++){const n=Q9e[e.attrs[t].name];n&&(e.attrs[t].prefix=n.prefix,e.attrs[t].name=n.name,e.attrs[t].namespace=n.namespace)}};Fc.adjustTokenSVGTagName=function(e){const t=Z9e[e.tagName];t&&(e.tagName=t)};function eCe(e,t){return t===Ni.MATHML&&(e===cn.MI||e===cn.MO||e===cn.MN||e===cn.MS||e===cn.MTEXT)}function tCe(e,t,n){if(t===Ni.MATHML&&e===cn.ANNOTATION_XML){for(let r=0;r<n.length;r++)if(n[r].name===bv.ENCODING){const i=n[r].value.toLowerCase();return i===xN.TEXT_HTML||i===xN.APPLICATION_XML}}return t===Ni.SVG&&(e===cn.FOREIGN_OBJECT||e===cn.DESC||e===cn.TITLE)}Fc.isIntegrationPoint=function(e,t,n,r){return!!((!r||r===Ni.HTML)&&tCe(e,t,n)||(!r||r===Ni.MATHML)&&eCe(e,t))};const Oe=A2,nCe=c9e,wN=u9e,rCe=E9e,iCe=B9e,_N=xs,oCe=Bn,aCe=z9e,TN=R2,Il=Fc,Pi=iw,lCe=fl,Qu=pl,G=Qu.TAG_NAMES,Ut=Qu.NAMESPACES,Iz=Qu.ATTRS,sCe={scriptingEnabled:!0,sourceCodeLocationInfo:!1,onParseError:null,treeAdapter:oCe},kz="hidden",cCe=8,uCe=3,$z="INITIAL_MODE",sw="BEFORE_HTML_MODE",M2="BEFORE_HEAD_MODE",S1="IN_HEAD_MODE",Nz="IN_HEAD_NO_SCRIPT_MODE",P2="AFTER_HEAD_MODE",Rl="IN_BODY_MODE",Ay="TEXT_MODE",Vi="IN_TABLE_MODE",Az="IN_TABLE_TEXT_MODE",L2="IN_CAPTION_MODE",qm="IN_COLUMN_GROUP_MODE",xa="IN_TABLE_BODY_MODE",Cs="IN_ROW_MODE",D2="IN_CELL_MODE",cw="IN_SELECT_MODE",uw="IN_SELECT_IN_TABLE_MODE",Ry="IN_TEMPLATE_MODE",dw="AFTER_BODY_MODE",F2="IN_FRAMESET_MODE",Rz="AFTER_FRAMESET_MODE",Mz="AFTER_AFTER_BODY_MODE",Pz="AFTER_AFTER_FRAMESET_MODE",dCe={[G.TR]:Cs,[G.TBODY]:xa,[G.THEAD]:xa,[G.TFOOT]:xa,[G.CAPTION]:L2,[G.COLGROUP]:qm,[G.TABLE]:Vi,[G.BODY]:Rl,[G.FRAMESET]:F2},fCe={[G.CAPTION]:Vi,[G.COLGROUP]:Vi,[G.TBODY]:Vi,[G.TFOOT]:Vi,[G.THEAD]:Vi,[G.COL]:qm,[G.TR]:xa,[G.TD]:Cs,[G.TH]:Cs},ON={[$z]:{[Oe.CHARACTER_TOKEN]:Op,[Oe.NULL_CHARACTER_TOKEN]:Op,[Oe.WHITESPACE_CHARACTER_TOKEN]:Nn,[Oe.COMMENT_TOKEN]:hi,[Oe.DOCTYPE_TOKEN]:ECe,[Oe.START_TAG_TOKEN]:Op,[Oe.END_TAG_TOKEN]:Op,[Oe.EOF_TOKEN]:Op},[sw]:{[Oe.CHARACTER_TOKEN]:fh,[Oe.NULL_CHARACTER_TOKEN]:fh,[Oe.WHITESPACE_CHARACTER_TOKEN]:Nn,[Oe.COMMENT_TOKEN]:hi,[Oe.DOCTYPE_TOKEN]:Nn,[Oe.START_TAG_TOKEN]:xCe,[Oe.END_TAG_TOKEN]:wCe,[Oe.EOF_TOKEN]:fh},[M2]:{[Oe.CHARACTER_TOKEN]:ph,[Oe.NULL_CHARACTER_TOKEN]:ph,[Oe.WHITESPACE_CHARACTER_TOKEN]:Nn,[Oe.COMMENT_TOKEN]:hi,[Oe.DOCTYPE_TOKEN]:$g,[Oe.START_TAG_TOKEN]:_Ce,[Oe.END_TAG_TOKEN]:TCe,[Oe.EOF_TOKEN]:ph},[S1]:{[Oe.CHARACTER_TOKEN]:hh,[Oe.NULL_CHARACTER_TOKEN]:hh,[Oe.WHITESPACE_CHARACTER_TOKEN]:Eo,[Oe.COMMENT_TOKEN]:hi,[Oe.DOCTYPE_TOKEN]:$g,[Oe.START_TAG_TOKEN]:_i,[Oe.END_TAG_TOKEN]:Zu,[Oe.EOF_TOKEN]:hh},[Nz]:{[Oe.CHARACTER_TOKEN]:mh,[Oe.NULL_CHARACTER_TOKEN]:mh,[Oe.WHITESPACE_CHARACTER_TOKEN]:Eo,[Oe.COMMENT_TOKEN]:hi,[Oe.DOCTYPE_TOKEN]:$g,[Oe.START_TAG_TOKEN]:OCe,[Oe.END_TAG_TOKEN]:ICe,[Oe.EOF_TOKEN]:mh},[P2]:{[Oe.CHARACTER_TOKEN]:gh,[Oe.NULL_CHARACTER_TOKEN]:gh,[Oe.WHITESPACE_CHARACTER_TOKEN]:Eo,[Oe.COMMENT_TOKEN]:hi,[Oe.DOCTYPE_TOKEN]:$g,[Oe.START_TAG_TOKEN]:kCe,[Oe.END_TAG_TOKEN]:$Ce,[Oe.EOF_TOKEN]:gh},[Rl]:{[Oe.CHARACTER_TOKEN]:Ng,[Oe.NULL_CHARACTER_TOKEN]:Nn,[Oe.WHITESPACE_CHARACTER_TOKEN]:ru,[Oe.COMMENT_TOKEN]:hi,[Oe.DOCTYPE_TOKEN]:Nn,[Oe.START_TAG_TOKEN]:Do,[Oe.END_TAG_TOKEN]:fw,[Oe.EOF_TOKEN]:es},[Ay]:{[Oe.CHARACTER_TOKEN]:Eo,[Oe.NULL_CHARACTER_TOKEN]:Eo,[Oe.WHITESPACE_CHARACTER_TOKEN]:Eo,[Oe.COMMENT_TOKEN]:Nn,[Oe.DOCTYPE_TOKEN]:Nn,[Oe.START_TAG_TOKEN]:Nn,[Oe.END_TAG_TOKEN]:lSe,[Oe.EOF_TOKEN]:sSe},[Vi]:{[Oe.CHARACTER_TOKEN]:ts,[Oe.NULL_CHARACTER_TOKEN]:ts,[Oe.WHITESPACE_CHARACTER_TOKEN]:ts,[Oe.COMMENT_TOKEN]:hi,[Oe.DOCTYPE_TOKEN]:Nn,[Oe.START_TAG_TOKEN]:pw,[Oe.END_TAG_TOKEN]:hw,[Oe.EOF_TOKEN]:es},[Az]:{[Oe.CHARACTER_TOKEN]:ySe,[Oe.NULL_CHARACTER_TOKEN]:Nn,[Oe.WHITESPACE_CHARACTER_TOKEN]:vSe,[Oe.COMMENT_TOKEN]:Ip,[Oe.DOCTYPE_TOKEN]:Ip,[Oe.START_TAG_TOKEN]:Ip,[Oe.END_TAG_TOKEN]:Ip,[Oe.EOF_TOKEN]:Ip},[L2]:{[Oe.CHARACTER_TOKEN]:Ng,[Oe.NULL_CHARACTER_TOKEN]:Nn,[Oe.WHITESPACE_CHARACTER_TOKEN]:ru,[Oe.COMMENT_TOKEN]:hi,[Oe.DOCTYPE_TOKEN]:Nn,[Oe.START_TAG_TOKEN]:bSe,[Oe.END_TAG_TOKEN]:CSe,[Oe.EOF_TOKEN]:es},[qm]:{[Oe.CHARACTER_TOKEN]:My,[Oe.NULL_CHARACTER_TOKEN]:My,[Oe.WHITESPACE_CHARACTER_TOKEN]:Eo,[Oe.COMMENT_TOKEN]:hi,[Oe.DOCTYPE_TOKEN]:Nn,[Oe.START_TAG_TOKEN]:SSe,[Oe.END_TAG_TOKEN]:ESe,[Oe.EOF_TOKEN]:es},[xa]:{[Oe.CHARACTER_TOKEN]:ts,[Oe.NULL_CHARACTER_TOKEN]:ts,[Oe.WHITESPACE_CHARACTER_TOKEN]:ts,[Oe.COMMENT_TOKEN]:hi,[Oe.DOCTYPE_TOKEN]:Nn,[Oe.START_TAG_TOKEN]:xSe,[Oe.END_TAG_TOKEN]:wSe,[Oe.EOF_TOKEN]:es},[Cs]:{[Oe.CHARACTER_TOKEN]:ts,[Oe.NULL_CHARACTER_TOKEN]:ts,[Oe.WHITESPACE_CHARACTER_TOKEN]:ts,[Oe.COMMENT_TOKEN]:hi,[Oe.DOCTYPE_TOKEN]:Nn,[Oe.START_TAG_TOKEN]:_Se,[Oe.END_TAG_TOKEN]:TSe,[Oe.EOF_TOKEN]:es},[D2]:{[Oe.CHARACTER_TOKEN]:Ng,[Oe.NULL_CHARACTER_TOKEN]:Nn,[Oe.WHITESPACE_CHARACTER_TOKEN]:ru,[Oe.COMMENT_TOKEN]:hi,[Oe.DOCTYPE_TOKEN]:Nn,[Oe.START_TAG_TOKEN]:OSe,[Oe.END_TAG_TOKEN]:ISe,[Oe.EOF_TOKEN]:es},[cw]:{[Oe.CHARACTER_TOKEN]:Eo,[Oe.NULL_CHARACTER_TOKEN]:Nn,[Oe.WHITESPACE_CHARACTER_TOKEN]:Eo,[Oe.COMMENT_TOKEN]:hi,[Oe.DOCTYPE_TOKEN]:Nn,[Oe.START_TAG_TOKEN]:Lz,[Oe.END_TAG_TOKEN]:Dz,[Oe.EOF_TOKEN]:es},[uw]:{[Oe.CHARACTER_TOKEN]:Eo,[Oe.NULL_CHARACTER_TOKEN]:Nn,[Oe.WHITESPACE_CHARACTER_TOKEN]:Eo,[Oe.COMMENT_TOKEN]:hi,[Oe.DOCTYPE_TOKEN]:Nn,[Oe.START_TAG_TOKEN]:kSe,[Oe.END_TAG_TOKEN]:$Se,[Oe.EOF_TOKEN]:es},[Ry]:{[Oe.CHARACTER_TOKEN]:Ng,[Oe.NULL_CHARACTER_TOKEN]:Nn,[Oe.WHITESPACE_CHARACTER_TOKEN]:ru,[Oe.COMMENT_TOKEN]:hi,[Oe.DOCTYPE_TOKEN]:Nn,[Oe.START_TAG_TOKEN]:NSe,[Oe.END_TAG_TOKEN]:ASe,[Oe.EOF_TOKEN]:Fz},[dw]:{[Oe.CHARACTER_TOKEN]:Py,[Oe.NULL_CHARACTER_TOKEN]:Py,[Oe.WHITESPACE_CHARACTER_TOKEN]:ru,[Oe.COMMENT_TOKEN]:SCe,[Oe.DOCTYPE_TOKEN]:Nn,[Oe.START_TAG_TOKEN]:RSe,[Oe.END_TAG_TOKEN]:MSe,[Oe.EOF_TOKEN]:Tp},[F2]:{[Oe.CHARACTER_TOKEN]:Nn,[Oe.NULL_CHARACTER_TOKEN]:Nn,[Oe.WHITESPACE_CHARACTER_TOKEN]:Eo,[Oe.COMMENT_TOKEN]:hi,[Oe.DOCTYPE_TOKEN]:Nn,[Oe.START_TAG_TOKEN]:PSe,[Oe.END_TAG_TOKEN]:LSe,[Oe.EOF_TOKEN]:Tp},[Rz]:{[Oe.CHARACTER_TOKEN]:Nn,[Oe.NULL_CHARACTER_TOKEN]:Nn,[Oe.WHITESPACE_CHARACTER_TOKEN]:Eo,[Oe.COMMENT_TOKEN]:hi,[Oe.DOCTYPE_TOKEN]:Nn,[Oe.START_TAG_TOKEN]:DSe,[Oe.END_TAG_TOKEN]:FSe,[Oe.EOF_TOKEN]:Tp},[Mz]:{[Oe.CHARACTER_TOKEN]:Cv,[Oe.NULL_CHARACTER_TOKEN]:Cv,[Oe.WHITESPACE_CHARACTER_TOKEN]:ru,[Oe.COMMENT_TOKEN]:IN,[Oe.DOCTYPE_TOKEN]:Nn,[Oe.START_TAG_TOKEN]:BSe,[Oe.END_TAG_TOKEN]:Cv,[Oe.EOF_TOKEN]:Tp},[Pz]:{[Oe.CHARACTER_TOKEN]:Nn,[Oe.NULL_CHARACTER_TOKEN]:Nn,[Oe.WHITESPACE_CHARACTER_TOKEN]:ru,[Oe.COMMENT_TOKEN]:IN,[Oe.DOCTYPE_TOKEN]:Nn,[Oe.START_TAG_TOKEN]:jSe,[Oe.END_TAG_TOKEN]:Nn,[Oe.EOF_TOKEN]:Tp}};class pCe{constructor(t){this.options=aCe(sCe,t),this.treeAdapter=this.options.treeAdapter,this.pendingScript=null,this.options.sourceCodeLocationInfo&&_N.install(this,rCe),this.options.onParseError&&_N.install(this,iCe,{onParseError:this.options.onParseError})}parse(t){const n=this.treeAdapter.createDocument();return this._bootstrap(n,null),this.tokenizer.write(t,!0),this._runParsingLoop(null),n}parseFragment(t,n){n||(n=this.treeAdapter.createElement(G.TEMPLATE,Ut.HTML,[]));const r=this.treeAdapter.createElement("documentmock",Ut.HTML,[]);this._bootstrap(r,n),this.treeAdapter.getTagName(n)===G.TEMPLATE&&this._pushTmplInsertionMode(Ry),this._initTokenizerForFragmentParsing(),this._insertFakeRootElement(),this._resetInsertionMode(),this._findFormInFragmentContext(),this.tokenizer.write(t,!0),this._runParsingLoop(null);const i=this.treeAdapter.getFirstChild(r),o=this.treeAdapter.createDocumentFragment();return this._adoptNodes(i,o),o}_bootstrap(t,n){this.tokenizer=new Oe(this.options),this.stopped=!1,this.insertionMode=$z,this.originalInsertionMode="",this.document=t,this.fragmentContext=n,this.headElement=null,this.formElement=null,this.openElements=new nCe(this.document,this.treeAdapter),this.activeFormattingElements=new wN(this.treeAdapter),this.tmplInsertionModeStack=[],this.tmplInsertionModeStackTop=-1,this.currentTmplInsertionMode=null,this.pendingCharacterTokens=[],this.hasNonWhitespacePendingCharacterToken=!1,this.framesetOk=!0,this.skipNextNewLine=!1,this.fosterParentingEnabled=!1}_err(){}_runParsingLoop(t){for(;!this.stopped;){this._setupTokenizerCDATAMode();const n=this.tokenizer.getNextToken();if(n.type===Oe.HIBERNATION_TOKEN)break;if(this.skipNextNewLine&&(this.skipNextNewLine=!1,n.type===Oe.WHITESPACE_CHARACTER_TOKEN&&n.chars[0]===`
`)){if(n.chars.length===1)continue;n.chars=n.chars.substr(1)}if(this._processInputToken(n),t&&this.pendingScript)break}}runParsingLoopForCurrentChunk(t,n){if(this._runParsingLoop(n),n&&this.pendingScript){const r=this.pendingScript;this.pendingScript=null,n(r);return}t&&t()}_setupTokenizerCDATAMode(){const t=this._getAdjustedCurrentElement();this.tokenizer.allowCDATA=t&&t!==this.document&&this.treeAdapter.getNamespaceURI(t)!==Ut.HTML&&!this._isIntegrationPoint(t)}_switchToTextParsing(t,n){this._insertElement(t,Ut.HTML),this.tokenizer.state=n,this.originalInsertionMode=this.insertionMode,this.insertionMode=Ay}switchToPlaintextParsing(){this.insertionMode=Ay,this.originalInsertionMode=Rl,this.tokenizer.state=Oe.MODE.PLAINTEXT}_getAdjustedCurrentElement(){return this.openElements.stackTop===0&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let t=this.fragmentContext;do{if(this.treeAdapter.getTagName(t)===G.FORM){this.formElement=t;break}t=this.treeAdapter.getParentNode(t)}while(t)}_initTokenizerForFragmentParsing(){if(this.treeAdapter.getNamespaceURI(this.fragmentContext)===Ut.HTML){const t=this.treeAdapter.getTagName(this.fragmentContext);t===G.TITLE||t===G.TEXTAREA?this.tokenizer.state=Oe.MODE.RCDATA:t===G.STYLE||t===G.XMP||t===G.IFRAME||t===G.NOEMBED||t===G.NOFRAMES||t===G.NOSCRIPT?this.tokenizer.state=Oe.MODE.RAWTEXT:t===G.SCRIPT?this.tokenizer.state=Oe.MODE.SCRIPT_DATA:t===G.PLAINTEXT&&(this.tokenizer.state=Oe.MODE.PLAINTEXT)}}_setDocumentType(t){const n=t.name||"",r=t.publicId||"",i=t.systemId||"";this.treeAdapter.setDocumentType(this.document,n,r,i)}_attachElementToTree(t){if(this._shouldFosterParentOnInsertion())this._fosterParentElement(t);else{const n=this.openElements.currentTmplContent||this.openElements.current;this.treeAdapter.appendChild(n,t)}}_appendElement(t,n){const r=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(r)}_insertElement(t,n){const r=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(r),this.openElements.push(r)}_insertFakeElement(t){const n=this.treeAdapter.createElement(t,Ut.HTML,[]);this._attachElementToTree(n),this.openElements.push(n)}_insertTemplate(t){const n=this.treeAdapter.createElement(t.tagName,Ut.HTML,t.attrs),r=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(n,r),this._attachElementToTree(n),this.openElements.push(n)}_insertFakeRootElement(){const t=this.treeAdapter.createElement(G.HTML,Ut.HTML,[]);this.treeAdapter.appendChild(this.openElements.current,t),this.openElements.push(t)}_appendCommentNode(t,n){const r=this.treeAdapter.createCommentNode(t.data);this.treeAdapter.appendChild(n,r)}_insertCharacters(t){if(this._shouldFosterParentOnInsertion())this._fosterParentText(t.chars);else{const n=this.openElements.currentTmplContent||this.openElements.current;this.treeAdapter.insertText(n,t.chars)}}_adoptNodes(t,n){for(let r=this.treeAdapter.getFirstChild(t);r;r=this.treeAdapter.getFirstChild(t))this.treeAdapter.detachNode(r),this.treeAdapter.appendChild(n,r)}_shouldProcessTokenInForeignContent(t){const n=this._getAdjustedCurrentElement();if(!n||n===this.document)return!1;const r=this.treeAdapter.getNamespaceURI(n);if(r===Ut.HTML||this.treeAdapter.getTagName(n)===G.ANNOTATION_XML&&r===Ut.MATHML&&t.type===Oe.START_TAG_TOKEN&&t.tagName===G.SVG)return!1;const i=t.type===Oe.CHARACTER_TOKEN||t.type===Oe.NULL_CHARACTER_TOKEN||t.type===Oe.WHITESPACE_CHARACTER_TOKEN;return(t.type===Oe.START_TAG_TOKEN&&t.tagName!==G.MGLYPH&&t.tagName!==G.MALIGNMARK||i)&&this._isIntegrationPoint(n,Ut.MATHML)||(t.type===Oe.START_TAG_TOKEN||i)&&this._isIntegrationPoint(n,Ut.HTML)?!1:t.type!==Oe.EOF_TOKEN}_processToken(t){ON[this.insertionMode][t.type](this,t)}_processTokenInBodyMode(t){ON[Rl][t.type](this,t)}_processTokenInForeignContent(t){t.type===Oe.CHARACTER_TOKEN?zSe(this,t):t.type===Oe.NULL_CHARACTER_TOKEN?HSe(this,t):t.type===Oe.WHITESPACE_CHARACTER_TOKEN?Eo(this,t):t.type===Oe.COMMENT_TOKEN?hi(this,t):t.type===Oe.START_TAG_TOKEN?WSe(this,t):t.type===Oe.END_TAG_TOKEN&&USe(this,t)}_processInputToken(t){this._shouldProcessTokenInForeignContent(t)?this._processTokenInForeignContent(t):this._processToken(t),t.type===Oe.START_TAG_TOKEN&&t.selfClosing&&!t.ackSelfClosing&&this._err(Pi.nonVoidHtmlElementStartTagWithTrailingSolidus)}_isIntegrationPoint(t,n){const r=this.treeAdapter.getTagName(t),i=this.treeAdapter.getNamespaceURI(t),o=this.treeAdapter.getAttrList(t);return Il.isIntegrationPoint(r,i,o,n)}_reconstructActiveFormattingElements(){const t=this.activeFormattingElements.length;if(t){let n=t,r=null;do if(n--,r=this.activeFormattingElements.entries[n],r.type===wN.MARKER_ENTRY||this.openElements.contains(r.element)){n++;break}while(n>0);for(let i=n;i<t;i++)r=this.activeFormattingElements.entries[i],this._insertElement(r.token,this.treeAdapter.getNamespaceURI(r.element)),r.element=this.openElements.current}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=Cs}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(G.P),this.openElements.popUntilTagNamePopped(G.P)}_resetInsertionMode(){for(let t=this.openElements.stackTop,n=!1;t>=0;t--){let r=this.openElements.items[t];t===0&&(n=!0,this.fragmentContext&&(r=this.fragmentContext));const i=this.treeAdapter.getTagName(r),o=dCe[i];if(o){this.insertionMode=o;break}else if(!n&&(i===G.TD||i===G.TH)){this.insertionMode=D2;break}else if(!n&&i===G.HEAD){this.insertionMode=S1;break}else if(i===G.SELECT){this._resetInsertionModeForSelect(t);break}else if(i===G.TEMPLATE){this.insertionMode=this.currentTmplInsertionMode;break}else if(i===G.HTML){this.insertionMode=this.headElement?P2:M2;break}else if(n){this.insertionMode=Rl;break}}}_resetInsertionModeForSelect(t){if(t>0)for(let n=t-1;n>0;n--){const r=this.openElements.items[n],i=this.treeAdapter.getTagName(r);if(i===G.TEMPLATE)break;if(i===G.TABLE){this.insertionMode=uw;return}}this.insertionMode=cw}_pushTmplInsertionMode(t){this.tmplInsertionModeStack.push(t),this.tmplInsertionModeStackTop++,this.currentTmplInsertionMode=t}_popTmplInsertionMode(){this.tmplInsertionModeStack.pop(),this.tmplInsertionModeStackTop--,this.currentTmplInsertionMode=this.tmplInsertionModeStack[this.tmplInsertionModeStackTop]}_isElementCausesFosterParenting(t){const n=this.treeAdapter.getTagName(t);return n===G.TABLE||n===G.TBODY||n===G.TFOOT||n===G.THEAD||n===G.TR}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this._isElementCausesFosterParenting(this.openElements.current)}_findFosterParentingLocation(){const t={parent:null,beforeElement:null};for(let n=this.openElements.stackTop;n>=0;n--){const r=this.openElements.items[n],i=this.treeAdapter.getTagName(r),o=this.treeAdapter.getNamespaceURI(r);if(i===G.TEMPLATE&&o===Ut.HTML){t.parent=this.treeAdapter.getTemplateContent(r);break}else if(i===G.TABLE){t.parent=this.treeAdapter.getParentNode(r),t.parent?t.beforeElement=r:t.parent=this.openElements.items[n-1];break}}return t.parent||(t.parent=this.openElements.items[0]),t}_fosterParentElement(t){const n=this._findFosterParentingLocation();n.beforeElement?this.treeAdapter.insertBefore(n.parent,t,n.beforeElement):this.treeAdapter.appendChild(n.parent,t)}_fosterParentText(t){const n=this._findFosterParentingLocation();n.beforeElement?this.treeAdapter.insertTextBefore(n.parent,t,n.beforeElement):this.treeAdapter.insertText(n.parent,t)}_isSpecialElement(t){const n=this.treeAdapter.getTagName(t),r=this.treeAdapter.getNamespaceURI(t);return Qu.SPECIAL_ELEMENTS[r][n]}}var hCe=pCe;function mCe(e,t){let n=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return n?e.openElements.contains(n.element)?e.openElements.hasInScope(t.tagName)||(n=null):(e.activeFormattingElements.removeEntry(n),n=null):Va(e,t),n}function gCe(e,t){let n=null;for(let r=e.openElements.stackTop;r>=0;r--){const i=e.openElements.items[r];if(i===t.element)break;e._isSpecialElement(i)&&(n=i)}return n||(e.openElements.popUntilElementPopped(t.element),e.activeFormattingElements.removeEntry(t)),n}function vCe(e,t,n){let r=t,i=e.openElements.getCommonAncestor(t);for(let o=0,a=i;a!==n;o++,a=i){i=e.openElements.getCommonAncestor(a);const l=e.activeFormattingElements.getElementEntry(a),c=l&&o>=uCe;!l||c?(c&&e.activeFormattingElements.removeEntry(l),e.openElements.remove(a)):(a=yCe(e,l),r===t&&(e.activeFormattingElements.bookmark=l),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(a,r),r=a)}return r}function yCe(e,t){const n=e.treeAdapter.getNamespaceURI(t.element),r=e.treeAdapter.createElement(t.token.tagName,n,t.token.attrs);return e.openElements.replace(t.element,r),t.element=r,r}function bCe(e,t,n){if(e._isElementCausesFosterParenting(t))e._fosterParentElement(n);else{const r=e.treeAdapter.getTagName(t),i=e.treeAdapter.getNamespaceURI(t);r===G.TEMPLATE&&i===Ut.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function CCe(e,t,n){const r=e.treeAdapter.getNamespaceURI(n.element),i=n.token,o=e.treeAdapter.createElement(i.tagName,r,i.attrs);e._adoptNodes(t,o),e.treeAdapter.appendChild(t,o),e.activeFormattingElements.insertElementAfterBookmark(o,n.token),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,o)}function Js(e,t){let n;for(let r=0;r<cCe&&(n=mCe(e,t),!!n);r++){const i=gCe(e,n);if(!i)break;e.activeFormattingElements.bookmark=n;const o=vCe(e,i,n.element),a=e.openElements.getCommonAncestor(n.element);e.treeAdapter.detachNode(o),bCe(e,a,o),CCe(e,i,n)}}function Nn(){}function $g(e){e._err(Pi.misplacedDoctype)}function hi(e,t){e._appendCommentNode(t,e.openElements.currentTmplContent||e.openElements.current)}function SCe(e,t){e._appendCommentNode(t,e.openElements.items[0])}function IN(e,t){e._appendCommentNode(t,e.document)}function Eo(e,t){e._insertCharacters(t)}function Tp(e){e.stopped=!0}function ECe(e,t){e._setDocumentType(t);const n=t.forceQuirks?Qu.DOCUMENT_MODE.QUIRKS:TN.getDocumentMode(t);TN.isConforming(t)||e._err(Pi.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=sw}function Op(e,t){e._err(Pi.missingDoctype,{beforeToken:!0}),e.treeAdapter.setDocumentMode(e.document,Qu.DOCUMENT_MODE.QUIRKS),e.insertionMode=sw,e._processToken(t)}function xCe(e,t){t.tagName===G.HTML?(e._insertElement(t,Ut.HTML),e.insertionMode=M2):fh(e,t)}function wCe(e,t){const n=t.tagName;(n===G.HTML||n===G.HEAD||n===G.BODY||n===G.BR)&&fh(e,t)}function fh(e,t){e._insertFakeRootElement(),e.insertionMode=M2,e._processToken(t)}function _Ce(e,t){const n=t.tagName;n===G.HTML?Do(e,t):n===G.HEAD?(e._insertElement(t,Ut.HTML),e.headElement=e.openElements.current,e.insertionMode=S1):ph(e,t)}function TCe(e,t){const n=t.tagName;n===G.HEAD||n===G.BODY||n===G.HTML||n===G.BR?ph(e,t):e._err(Pi.endTagWithoutMatchingOpenElement)}function ph(e,t){e._insertFakeElement(G.HEAD),e.headElement=e.openElements.current,e.insertionMode=S1,e._processToken(t)}function _i(e,t){const n=t.tagName;n===G.HTML?Do(e,t):n===G.BASE||n===G.BASEFONT||n===G.BGSOUND||n===G.LINK||n===G.META?(e._appendElement(t,Ut.HTML),t.ackSelfClosing=!0):n===G.TITLE?e._switchToTextParsing(t,Oe.MODE.RCDATA):n===G.NOSCRIPT?e.options.scriptingEnabled?e._switchToTextParsing(t,Oe.MODE.RAWTEXT):(e._insertElement(t,Ut.HTML),e.insertionMode=Nz):n===G.NOFRAMES||n===G.STYLE?e._switchToTextParsing(t,Oe.MODE.RAWTEXT):n===G.SCRIPT?e._switchToTextParsing(t,Oe.MODE.SCRIPT_DATA):n===G.TEMPLATE?(e._insertTemplate(t,Ut.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=Ry,e._pushTmplInsertionMode(Ry)):n===G.HEAD?e._err(Pi.misplacedStartTagForHeadElement):hh(e,t)}function Zu(e,t){const n=t.tagName;n===G.HEAD?(e.openElements.pop(),e.insertionMode=P2):n===G.BODY||n===G.BR||n===G.HTML?hh(e,t):n===G.TEMPLATE&&e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagName!==G.TEMPLATE&&e._err(Pi.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(G.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e._popTmplInsertionMode(),e._resetInsertionMode()):e._err(Pi.endTagWithoutMatchingOpenElement)}function hh(e,t){e.openElements.pop(),e.insertionMode=P2,e._processToken(t)}function OCe(e,t){const n=t.tagName;n===G.HTML?Do(e,t):n===G.BASEFONT||n===G.BGSOUND||n===G.HEAD||n===G.LINK||n===G.META||n===G.NOFRAMES||n===G.STYLE?_i(e,t):n===G.NOSCRIPT?e._err(Pi.nestedNoscriptInHead):mh(e,t)}function ICe(e,t){const n=t.tagName;n===G.NOSCRIPT?(e.openElements.pop(),e.insertionMode=S1):n===G.BR?mh(e,t):e._err(Pi.endTagWithoutMatchingOpenElement)}function mh(e,t){const n=t.type===Oe.EOF_TOKEN?Pi.openElementsLeftAfterEof:Pi.disallowedContentInNoscriptInHead;e._err(n),e.openElements.pop(),e.insertionMode=S1,e._processToken(t)}function kCe(e,t){const n=t.tagName;n===G.HTML?Do(e,t):n===G.BODY?(e._insertElement(t,Ut.HTML),e.framesetOk=!1,e.insertionMode=Rl):n===G.FRAMESET?(e._insertElement(t,Ut.HTML),e.insertionMode=F2):n===G.BASE||n===G.BASEFONT||n===G.BGSOUND||n===G.LINK||n===G.META||n===G.NOFRAMES||n===G.SCRIPT||n===G.STYLE||n===G.TEMPLATE||n===G.TITLE?(e._err(Pi.abandonedHeadElementChild),e.openElements.push(e.headElement),_i(e,t),e.openElements.remove(e.headElement)):n===G.HEAD?e._err(Pi.misplacedStartTagForHeadElement):gh(e,t)}function $Ce(e,t){const n=t.tagName;n===G.BODY||n===G.HTML||n===G.BR?gh(e,t):n===G.TEMPLATE?Zu(e,t):e._err(Pi.endTagWithoutMatchingOpenElement)}function gh(e,t){e._insertFakeElement(G.BODY),e.insertionMode=Rl,e._processToken(t)}function ru(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function Ng(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function NCe(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function ACe(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}function RCe(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,Ut.HTML),e.insertionMode=F2)}function Jl(e,t){e.openElements.hasInButtonScope(G.P)&&e._closePElement(),e._insertElement(t,Ut.HTML)}function MCe(e,t){e.openElements.hasInButtonScope(G.P)&&e._closePElement();const n=e.openElements.currentTagName;(n===G.H1||n===G.H2||n===G.H3||n===G.H4||n===G.H5||n===G.H6)&&e.openElements.pop(),e._insertElement(t,Ut.HTML)}function kN(e,t){e.openElements.hasInButtonScope(G.P)&&e._closePElement(),e._insertElement(t,Ut.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function PCe(e,t){const n=e.openElements.tmplCount>0;(!e.formElement||n)&&(e.openElements.hasInButtonScope(G.P)&&e._closePElement(),e._insertElement(t,Ut.HTML),n||(e.formElement=e.openElements.current))}function LCe(e,t){e.framesetOk=!1;const n=t.tagName;for(let r=e.openElements.stackTop;r>=0;r--){const i=e.openElements.items[r],o=e.treeAdapter.getTagName(i);let a=null;if(n===G.LI&&o===G.LI?a=G.LI:(n===G.DD||n===G.DT)&&(o===G.DD||o===G.DT)&&(a=o),a){e.openElements.generateImpliedEndTagsWithExclusion(a),e.openElements.popUntilTagNamePopped(a);break}if(o!==G.ADDRESS&&o!==G.DIV&&o!==G.P&&e._isSpecialElement(i))break}e.openElements.hasInButtonScope(G.P)&&e._closePElement(),e._insertElement(t,Ut.HTML)}function DCe(e,t){e.openElements.hasInButtonScope(G.P)&&e._closePElement(),e._insertElement(t,Ut.HTML),e.tokenizer.state=Oe.MODE.PLAINTEXT}function FCe(e,t){e.openElements.hasInScope(G.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(G.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,Ut.HTML),e.framesetOk=!1}function BCe(e,t){const n=e.activeFormattingElements.getElementEntryInScopeWithTagName(G.A);n&&(Js(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,Ut.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function Fd(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Ut.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function jCe(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(G.NOBR)&&(Js(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,Ut.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function $N(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Ut.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function HCe(e,t){e.treeAdapter.getDocumentMode(e.document)!==Qu.DOCUMENT_MODE.QUIRKS&&e.openElements.hasInButtonScope(G.P)&&e._closePElement(),e._insertElement(t,Ut.HTML),e.framesetOk=!1,e.insertionMode=Vi}function Wd(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,Ut.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function zCe(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,Ut.HTML);const n=Oe.getTokenAttr(t,Iz.TYPE);(!n||n.toLowerCase()!==kz)&&(e.framesetOk=!1),t.ackSelfClosing=!0}function NN(e,t){e._appendElement(t,Ut.HTML),t.ackSelfClosing=!0}function WCe(e,t){e.openElements.hasInButtonScope(G.P)&&e._closePElement(),e._appendElement(t,Ut.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function UCe(e,t){t.tagName=G.IMG,Wd(e,t)}function KCe(e,t){e._insertElement(t,Ut.HTML),e.skipNextNewLine=!0,e.tokenizer.state=Oe.MODE.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=Ay}function VCe(e,t){e.openElements.hasInButtonScope(G.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,Oe.MODE.RAWTEXT)}function GCe(e,t){e.framesetOk=!1,e._switchToTextParsing(t,Oe.MODE.RAWTEXT)}function AN(e,t){e._switchToTextParsing(t,Oe.MODE.RAWTEXT)}function qCe(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Ut.HTML),e.framesetOk=!1,e.insertionMode===Vi||e.insertionMode===L2||e.insertionMode===xa||e.insertionMode===Cs||e.insertionMode===D2?e.insertionMode=uw:e.insertionMode=cw}function RN(e,t){e.openElements.currentTagName===G.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,Ut.HTML)}function MN(e,t){e.openElements.hasInScope(G.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,Ut.HTML)}function XCe(e,t){e.openElements.hasInScope(G.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(G.RTC),e._insertElement(t,Ut.HTML)}function YCe(e,t){e.openElements.hasInButtonScope(G.P)&&e._closePElement(),e._insertElement(t,Ut.HTML)}function QCe(e,t){e._reconstructActiveFormattingElements(),Il.adjustTokenMathMLAttrs(t),Il.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,Ut.MATHML):e._insertElement(t,Ut.MATHML),t.ackSelfClosing=!0}function ZCe(e,t){e._reconstructActiveFormattingElements(),Il.adjustTokenSVGAttrs(t),Il.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,Ut.SVG):e._insertElement(t,Ut.SVG),t.ackSelfClosing=!0}function fa(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Ut.HTML)}function Do(e,t){const n=t.tagName;switch(n.length){case 1:n===G.I||n===G.S||n===G.B||n===G.U?Fd(e,t):n===G.P?Jl(e,t):n===G.A?BCe(e,t):fa(e,t);break;case 2:n===G.DL||n===G.OL||n===G.UL?Jl(e,t):n===G.H1||n===G.H2||n===G.H3||n===G.H4||n===G.H5||n===G.H6?MCe(e,t):n===G.LI||n===G.DD||n===G.DT?LCe(e,t):n===G.EM||n===G.TT?Fd(e,t):n===G.BR?Wd(e,t):n===G.HR?WCe(e,t):n===G.RB?MN(e,t):n===G.RT||n===G.RP?XCe(e,t):n!==G.TH&&n!==G.TD&&n!==G.TR&&fa(e,t);break;case 3:n===G.DIV||n===G.DIR||n===G.NAV?Jl(e,t):n===G.PRE?kN(e,t):n===G.BIG?Fd(e,t):n===G.IMG||n===G.WBR?Wd(e,t):n===G.XMP?VCe(e,t):n===G.SVG?ZCe(e,t):n===G.RTC?MN(e,t):n!==G.COL&&fa(e,t);break;case 4:n===G.HTML?NCe(e,t):n===G.BASE||n===G.LINK||n===G.META?_i(e,t):n===G.BODY?ACe(e,t):n===G.MAIN||n===G.MENU?Jl(e,t):n===G.FORM?PCe(e,t):n===G.CODE||n===G.FONT?Fd(e,t):n===G.NOBR?jCe(e,t):n===G.AREA?Wd(e,t):n===G.MATH?QCe(e,t):n===G.MENU?YCe(e,t):n!==G.HEAD&&fa(e,t);break;case 5:n===G.STYLE||n===G.TITLE?_i(e,t):n===G.ASIDE?Jl(e,t):n===G.SMALL?Fd(e,t):n===G.TABLE?HCe(e,t):n===G.EMBED?Wd(e,t):n===G.INPUT?zCe(e,t):n===G.PARAM||n===G.TRACK?NN(e,t):n===G.IMAGE?UCe(e,t):n!==G.FRAME&&n!==G.TBODY&&n!==G.TFOOT&&n!==G.THEAD&&fa(e,t);break;case 6:n===G.SCRIPT?_i(e,t):n===G.CENTER||n===G.FIGURE||n===G.FOOTER||n===G.HEADER||n===G.HGROUP||n===G.DIALOG?Jl(e,t):n===G.BUTTON?FCe(e,t):n===G.STRIKE||n===G.STRONG?Fd(e,t):n===G.APPLET||n===G.OBJECT?$N(e,t):n===G.KEYGEN?Wd(e,t):n===G.SOURCE?NN(e,t):n===G.IFRAME?GCe(e,t):n===G.SELECT?qCe(e,t):n===G.OPTION?RN(e,t):fa(e,t);break;case 7:n===G.BGSOUND?_i(e,t):n===G.DETAILS||n===G.ADDRESS||n===G.ARTICLE||n===G.SECTION||n===G.SUMMARY?Jl(e,t):n===G.LISTING?kN(e,t):n===G.MARQUEE?$N(e,t):n===G.NOEMBED?AN(e,t):n!==G.CAPTION&&fa(e,t);break;case 8:n===G.BASEFONT?_i(e,t):n===G.FRAMESET?RCe(e,t):n===G.FIELDSET?Jl(e,t):n===G.TEXTAREA?KCe(e,t):n===G.TEMPLATE?_i(e,t):n===G.NOSCRIPT?e.options.scriptingEnabled?AN(e,t):fa(e,t):n===G.OPTGROUP?RN(e,t):n!==G.COLGROUP&&fa(e,t);break;case 9:n===G.PLAINTEXT?DCe(e,t):fa(e,t);break;case 10:n===G.BLOCKQUOTE||n===G.FIGCAPTION?Jl(e,t):fa(e,t);break;default:fa(e,t)}}function JCe(e){e.openElements.hasInScope(G.BODY)&&(e.insertionMode=dw)}function eSe(e,t){e.openElements.hasInScope(G.BODY)&&(e.insertionMode=dw,e._processToken(t))}function js(e,t){const n=t.tagName;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}function tSe(e){const t=e.openElements.tmplCount>0,n=e.formElement;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(G.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(G.FORM):e.openElements.remove(n))}function nSe(e){e.openElements.hasInButtonScope(G.P)||e._insertFakeElement(G.P),e._closePElement()}function rSe(e){e.openElements.hasInListItemScope(G.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(G.LI),e.openElements.popUntilTagNamePopped(G.LI))}function iSe(e,t){const n=t.tagName;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}function oSe(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function PN(e,t){const n=t.tagName;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}function aSe(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(G.BR),e.openElements.pop(),e.framesetOk=!1}function Va(e,t){const n=t.tagName;for(let r=e.openElements.stackTop;r>0;r--){const i=e.openElements.items[r];if(e.treeAdapter.getTagName(i)===n){e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilElementPopped(i);break}if(e._isSpecialElement(i))break}}function fw(e,t){const n=t.tagName;switch(n.length){case 1:n===G.A||n===G.B||n===G.I||n===G.S||n===G.U?Js(e,t):n===G.P?nSe(e):Va(e,t);break;case 2:n===G.DL||n===G.UL||n===G.OL?js(e,t):n===G.LI?rSe(e):n===G.DD||n===G.DT?iSe(e,t):n===G.H1||n===G.H2||n===G.H3||n===G.H4||n===G.H5||n===G.H6?oSe(e):n===G.BR?aSe(e):n===G.EM||n===G.TT?Js(e,t):Va(e,t);break;case 3:n===G.BIG?Js(e,t):n===G.DIR||n===G.DIV||n===G.NAV||n===G.PRE?js(e,t):Va(e,t);break;case 4:n===G.BODY?JCe(e):n===G.HTML?eSe(e,t):n===G.FORM?tSe(e):n===G.CODE||n===G.FONT||n===G.NOBR?Js(e,t):n===G.MAIN||n===G.MENU?js(e,t):Va(e,t);break;case 5:n===G.ASIDE?js(e,t):n===G.SMALL?Js(e,t):Va(e,t);break;case 6:n===G.CENTER||n===G.FIGURE||n===G.FOOTER||n===G.HEADER||n===G.HGROUP||n===G.DIALOG?js(e,t):n===G.APPLET||n===G.OBJECT?PN(e,t):n===G.STRIKE||n===G.STRONG?Js(e,t):Va(e,t);break;case 7:n===G.ADDRESS||n===G.ARTICLE||n===G.DETAILS||n===G.SECTION||n===G.SUMMARY||n===G.LISTING?js(e,t):n===G.MARQUEE?PN(e,t):Va(e,t);break;case 8:n===G.FIELDSET?js(e,t):n===G.TEMPLATE?Zu(e,t):Va(e,t);break;case 10:n===G.BLOCKQUOTE||n===G.FIGCAPTION?js(e,t):Va(e,t);break;default:Va(e,t)}}function es(e,t){e.tmplInsertionModeStackTop>-1?Fz(e,t):e.stopped=!0}function lSe(e,t){t.tagName===G.SCRIPT&&(e.pendingScript=e.openElements.current),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function sSe(e,t){e._err(Pi.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e._processToken(t)}function ts(e,t){const n=e.openElements.currentTagName;n===G.TABLE||n===G.TBODY||n===G.TFOOT||n===G.THEAD||n===G.TR?(e.pendingCharacterTokens=[],e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=Az,e._processToken(t)):ha(e,t)}function cSe(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,Ut.HTML),e.insertionMode=L2}function uSe(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,Ut.HTML),e.insertionMode=qm}function dSe(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(G.COLGROUP),e.insertionMode=qm,e._processToken(t)}function fSe(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,Ut.HTML),e.insertionMode=xa}function pSe(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(G.TBODY),e.insertionMode=xa,e._processToken(t)}function hSe(e,t){e.openElements.hasInTableScope(G.TABLE)&&(e.openElements.popUntilTagNamePopped(G.TABLE),e._resetInsertionMode(),e._processToken(t))}function mSe(e,t){const n=Oe.getTokenAttr(t,Iz.TYPE);n&&n.toLowerCase()===kz?e._appendElement(t,Ut.HTML):ha(e,t),t.ackSelfClosing=!0}function gSe(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,Ut.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function pw(e,t){const n=t.tagName;switch(n.length){case 2:n===G.TD||n===G.TH||n===G.TR?pSe(e,t):ha(e,t);break;case 3:n===G.COL?dSe(e,t):ha(e,t);break;case 4:n===G.FORM?gSe(e,t):ha(e,t);break;case 5:n===G.TABLE?hSe(e,t):n===G.STYLE?_i(e,t):n===G.TBODY||n===G.TFOOT||n===G.THEAD?fSe(e,t):n===G.INPUT?mSe(e,t):ha(e,t);break;case 6:n===G.SCRIPT?_i(e,t):ha(e,t);break;case 7:n===G.CAPTION?cSe(e,t):ha(e,t);break;case 8:n===G.COLGROUP?uSe(e,t):n===G.TEMPLATE?_i(e,t):ha(e,t);break;default:ha(e,t)}}function hw(e,t){const n=t.tagName;n===G.TABLE?e.openElements.hasInTableScope(G.TABLE)&&(e.openElements.popUntilTagNamePopped(G.TABLE),e._resetInsertionMode()):n===G.TEMPLATE?Zu(e,t):n!==G.BODY&&n!==G.CAPTION&&n!==G.COL&&n!==G.COLGROUP&&n!==G.HTML&&n!==G.TBODY&&n!==G.TD&&n!==G.TFOOT&&n!==G.TH&&n!==G.THEAD&&n!==G.TR&&ha(e,t)}function ha(e,t){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,e._processTokenInBodyMode(t),e.fosterParentingEnabled=n}function vSe(e,t){e.pendingCharacterTokens.push(t)}function ySe(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function Ip(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n<e.pendingCharacterTokens.length;n++)ha(e,e.pendingCharacterTokens[n]);else for(;n<e.pendingCharacterTokens.length;n++)e._insertCharacters(e.pendingCharacterTokens[n]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}function bSe(e,t){const n=t.tagName;n===G.CAPTION||n===G.COL||n===G.COLGROUP||n===G.TBODY||n===G.TD||n===G.TFOOT||n===G.TH||n===G.THEAD||n===G.TR?e.openElements.hasInTableScope(G.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(G.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=Vi,e._processToken(t)):Do(e,t)}function CSe(e,t){const n=t.tagName;n===G.CAPTION||n===G.TABLE?e.openElements.hasInTableScope(G.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(G.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=Vi,n===G.TABLE&&e._processToken(t)):n!==G.BODY&&n!==G.COL&&n!==G.COLGROUP&&n!==G.HTML&&n!==G.TBODY&&n!==G.TD&&n!==G.TFOOT&&n!==G.TH&&n!==G.THEAD&&n!==G.TR&&fw(e,t)}function SSe(e,t){const n=t.tagName;n===G.HTML?Do(e,t):n===G.COL?(e._appendElement(t,Ut.HTML),t.ackSelfClosing=!0):n===G.TEMPLATE?_i(e,t):My(e,t)}function ESe(e,t){const n=t.tagName;n===G.COLGROUP?e.openElements.currentTagName===G.COLGROUP&&(e.openElements.pop(),e.insertionMode=Vi):n===G.TEMPLATE?Zu(e,t):n!==G.COL&&My(e,t)}function My(e,t){e.openElements.currentTagName===G.COLGROUP&&(e.openElements.pop(),e.insertionMode=Vi,e._processToken(t))}function xSe(e,t){const n=t.tagName;n===G.TR?(e.openElements.clearBackToTableBodyContext(),e._insertElement(t,Ut.HTML),e.insertionMode=Cs):n===G.TH||n===G.TD?(e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(G.TR),e.insertionMode=Cs,e._processToken(t)):n===G.CAPTION||n===G.COL||n===G.COLGROUP||n===G.TBODY||n===G.TFOOT||n===G.THEAD?e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=Vi,e._processToken(t)):pw(e,t)}function wSe(e,t){const n=t.tagName;n===G.TBODY||n===G.TFOOT||n===G.THEAD?e.openElements.hasInTableScope(n)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=Vi):n===G.TABLE?e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=Vi,e._processToken(t)):(n!==G.BODY&&n!==G.CAPTION&&n!==G.COL&&n!==G.COLGROUP||n!==G.HTML&&n!==G.TD&&n!==G.TH&&n!==G.TR)&&hw(e,t)}function _Se(e,t){const n=t.tagName;n===G.TH||n===G.TD?(e.openElements.clearBackToTableRowContext(),e._insertElement(t,Ut.HTML),e.insertionMode=D2,e.activeFormattingElements.insertMarker()):n===G.CAPTION||n===G.COL||n===G.COLGROUP||n===G.TBODY||n===G.TFOOT||n===G.THEAD||n===G.TR?e.openElements.hasInTableScope(G.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=xa,e._processToken(t)):pw(e,t)}function TSe(e,t){const n=t.tagName;n===G.TR?e.openElements.hasInTableScope(G.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=xa):n===G.TABLE?e.openElements.hasInTableScope(G.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=xa,e._processToken(t)):n===G.TBODY||n===G.TFOOT||n===G.THEAD?(e.openElements.hasInTableScope(n)||e.openElements.hasInTableScope(G.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=xa,e._processToken(t)):(n!==G.BODY&&n!==G.CAPTION&&n!==G.COL&&n!==G.COLGROUP||n!==G.HTML&&n!==G.TD&&n!==G.TH)&&hw(e,t)}function OSe(e,t){const n=t.tagName;n===G.CAPTION||n===G.COL||n===G.COLGROUP||n===G.TBODY||n===G.TD||n===G.TFOOT||n===G.TH||n===G.THEAD||n===G.TR?(e.openElements.hasInTableScope(G.TD)||e.openElements.hasInTableScope(G.TH))&&(e._closeTableCell(),e._processToken(t)):Do(e,t)}function ISe(e,t){const n=t.tagName;n===G.TD||n===G.TH?e.openElements.hasInTableScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=Cs):n===G.TABLE||n===G.TBODY||n===G.TFOOT||n===G.THEAD||n===G.TR?e.openElements.hasInTableScope(n)&&(e._closeTableCell(),e._processToken(t)):n!==G.BODY&&n!==G.CAPTION&&n!==G.COL&&n!==G.COLGROUP&&n!==G.HTML&&fw(e,t)}function Lz(e,t){const n=t.tagName;n===G.HTML?Do(e,t):n===G.OPTION?(e.openElements.currentTagName===G.OPTION&&e.openElements.pop(),e._insertElement(t,Ut.HTML)):n===G.OPTGROUP?(e.openElements.currentTagName===G.OPTION&&e.openElements.pop(),e.openElements.currentTagName===G.OPTGROUP&&e.openElements.pop(),e._insertElement(t,Ut.HTML)):n===G.INPUT||n===G.KEYGEN||n===G.TEXTAREA||n===G.SELECT?e.openElements.hasInSelectScope(G.SELECT)&&(e.openElements.popUntilTagNamePopped(G.SELECT),e._resetInsertionMode(),n!==G.SELECT&&e._processToken(t)):(n===G.SCRIPT||n===G.TEMPLATE)&&_i(e,t)}function Dz(e,t){const n=t.tagName;if(n===G.OPTGROUP){const r=e.openElements.items[e.openElements.stackTop-1],i=r&&e.treeAdapter.getTagName(r);e.openElements.currentTagName===G.OPTION&&i===G.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagName===G.OPTGROUP&&e.openElements.pop()}else n===G.OPTION?e.openElements.currentTagName===G.OPTION&&e.openElements.pop():n===G.SELECT&&e.openElements.hasInSelectScope(G.SELECT)?(e.openElements.popUntilTagNamePopped(G.SELECT),e._resetInsertionMode()):n===G.TEMPLATE&&Zu(e,t)}function kSe(e,t){const n=t.tagName;n===G.CAPTION||n===G.TABLE||n===G.TBODY||n===G.TFOOT||n===G.THEAD||n===G.TR||n===G.TD||n===G.TH?(e.openElements.popUntilTagNamePopped(G.SELECT),e._resetInsertionMode(),e._processToken(t)):Lz(e,t)}function $Se(e,t){const n=t.tagName;n===G.CAPTION||n===G.TABLE||n===G.TBODY||n===G.TFOOT||n===G.THEAD||n===G.TR||n===G.TD||n===G.TH?e.openElements.hasInTableScope(n)&&(e.openElements.popUntilTagNamePopped(G.SELECT),e._resetInsertionMode(),e._processToken(t)):Dz(e,t)}function NSe(e,t){const n=t.tagName;if(n===G.BASE||n===G.BASEFONT||n===G.BGSOUND||n===G.LINK||n===G.META||n===G.NOFRAMES||n===G.SCRIPT||n===G.STYLE||n===G.TEMPLATE||n===G.TITLE)_i(e,t);else{const r=fCe[n]||Rl;e._popTmplInsertionMode(),e._pushTmplInsertionMode(r),e.insertionMode=r,e._processToken(t)}}function ASe(e,t){t.tagName===G.TEMPLATE&&Zu(e,t)}function Fz(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(G.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e._popTmplInsertionMode(),e._resetInsertionMode(),e._processToken(t)):e.stopped=!0}function RSe(e,t){t.tagName===G.HTML?Do(e,t):Py(e,t)}function MSe(e,t){t.tagName===G.HTML?e.fragmentContext||(e.insertionMode=Mz):Py(e,t)}function Py(e,t){e.insertionMode=Rl,e._processToken(t)}function PSe(e,t){const n=t.tagName;n===G.HTML?Do(e,t):n===G.FRAMESET?e._insertElement(t,Ut.HTML):n===G.FRAME?(e._appendElement(t,Ut.HTML),t.ackSelfClosing=!0):n===G.NOFRAMES&&_i(e,t)}function LSe(e,t){t.tagName===G.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagName!==G.FRAMESET&&(e.insertionMode=Rz))}function DSe(e,t){const n=t.tagName;n===G.HTML?Do(e,t):n===G.NOFRAMES&&_i(e,t)}function FSe(e,t){t.tagName===G.HTML&&(e.insertionMode=Pz)}function BSe(e,t){t.tagName===G.HTML?Do(e,t):Cv(e,t)}function Cv(e,t){e.insertionMode=Rl,e._processToken(t)}function jSe(e,t){const n=t.tagName;n===G.HTML?Do(e,t):n===G.NOFRAMES&&_i(e,t)}function HSe(e,t){t.chars=lCe.REPLACEMENT_CHARACTER,e._insertCharacters(t)}function zSe(e,t){e._insertCharacters(t),e.framesetOk=!1}function WSe(e,t){if(Il.causesExit(t)&&!e.fragmentContext){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==Ut.HTML&&!e._isIntegrationPoint(e.openElements.current);)e.openElements.pop();e._processToken(t)}else{const n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);r===Ut.MATHML?Il.adjustTokenMathMLAttrs(t):r===Ut.SVG&&(Il.adjustTokenSVGTagName(t),Il.adjustTokenSVGAttrs(t)),Il.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}function USe(e,t){for(let n=e.openElements.stackTop;n>0;n--){const r=e.openElements.items[n];if(e.treeAdapter.getNamespaceURI(r)===Ut.HTML){e._processToken(t);break}if(e.treeAdapter.getTagName(r).toLowerCase()===t.tagName){e.openElements.popUntilElementPopped(r);break}}}const KSe=dl(hCe),Xm=Bz("start"),B2=Bz("end");function VSe(e){return{start:Xm(e),end:B2(e)}}function Bz(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};return{line:r.line||null,column:r.column||null,offset:r.offset>-1?r.offset:null}}}class Ym{constructor(t,n,r){this.property=t,this.normal=n,r&&(this.space=r)}}Ym.prototype.property={};Ym.prototype.normal={};Ym.prototype.space=null;function jz(e,t){const n={},r={};let i=-1;for(;++i<e.length;)Object.assign(n,e[i].property),Object.assign(r,e[i].normal);return new Ym(n,r,t)}function cm(e){return e.toLowerCase()}class La{constructor(t,n){this.property=t,this.attribute=n}}La.prototype.space=null;La.prototype.boolean=!1;La.prototype.booleanish=!1;La.prototype.overloadedBoolean=!1;La.prototype.number=!1;La.prototype.commaSeparated=!1;La.prototype.spaceSeparated=!1;La.prototype.commaOrSpaceSeparated=!1;La.prototype.mustUseProperty=!1;La.prototype.defined=!1;let GSe=0;const vn=Ju(),Xr=Ju(),Hz=Ju(),Et=Ju(),dr=Ju(),Of=Ju(),Ko=Ju();function Ju(){return 2**++GSe}const GE=Object.freeze(Object.defineProperty({__proto__:null,boolean:vn,booleanish:Xr,commaOrSpaceSeparated:Ko,commaSeparated:Of,number:Et,overloadedBoolean:Hz,spaceSeparated:dr},Symbol.toStringTag,{value:"Module"})),K9=Object.keys(GE);class mw extends La{constructor(t,n,r,i){let o=-1;if(super(t,n),LN(this,"space",i),typeof r=="number")for(;++o<K9.length;){const a=K9[o];LN(this,K9[o],(r&GE[a])===GE[a])}}}mw.prototype.defined=!0;function LN(e,t,n){n&&(e[t]=n)}const qSe={}.hasOwnProperty;function E1(e){const t={},n={};let r;for(r in e.properties)if(qSe.call(e.properties,r)){const i=e.properties[r],o=new mw(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),t[r]=o,n[cm(r)]=r,n[cm(o.attribute)]=r}return new Ym(t,n,e.space)}const zz=E1({space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),Wz=E1({space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function Uz(e,t){return t in e?e[t]:t}function Kz(e,t){return Uz(e,t.toLowerCase())}const Vz=E1({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:Kz,properties:{xmlns:null,xmlnsXLink:null}}),Gz=E1({transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:Xr,ariaAutoComplete:null,ariaBusy:Xr,ariaChecked:Xr,ariaColCount:Et,ariaColIndex:Et,ariaColSpan:Et,ariaControls:dr,ariaCurrent:null,ariaDescribedBy:dr,ariaDetails:null,ariaDisabled:Xr,ariaDropEffect:dr,ariaErrorMessage:null,ariaExpanded:Xr,ariaFlowTo:dr,ariaGrabbed:Xr,ariaHasPopup:null,ariaHidden:Xr,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:dr,ariaLevel:Et,ariaLive:null,ariaModal:Xr,ariaMultiLine:Xr,ariaMultiSelectable:Xr,ariaOrientation:null,ariaOwns:dr,ariaPlaceholder:null,ariaPosInSet:Et,ariaPressed:Xr,ariaReadOnly:Xr,ariaRelevant:null,ariaRequired:Xr,ariaRoleDescription:dr,ariaRowCount:Et,ariaRowIndex:Et,ariaRowSpan:Et,ariaSelected:Xr,ariaSetSize:Et,ariaSort:null,ariaValueMax:Et,ariaValueMin:Et,ariaValueNow:Et,ariaValueText:null,role:null}}),XSe=E1({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:Kz,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Of,acceptCharset:dr,accessKey:dr,action:null,allow:null,allowFullScreen:vn,allowPaymentRequest:vn,allowUserMedia:vn,alt:null,as:null,async:vn,autoCapitalize:null,autoComplete:dr,autoFocus:vn,autoPlay:vn,blocking:dr,capture:null,charSet:null,checked:vn,cite:null,className:dr,cols:Et,colSpan:null,content:null,contentEditable:Xr,controls:vn,controlsList:dr,coords:Et|Of,crossOrigin:null,data:null,dateTime:null,decoding:null,default:vn,defer:vn,dir:null,dirName:null,disabled:vn,download:Hz,draggable:Xr,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:vn,formTarget:null,headers:dr,height:Et,hidden:vn,high:Et,href:null,hrefLang:null,htmlFor:dr,httpEquiv:dr,id:null,imageSizes:null,imageSrcSet:null,inert:vn,inputMode:null,integrity:null,is:null,isMap:vn,itemId:null,itemProp:dr,itemRef:dr,itemScope:vn,itemType:dr,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:vn,low:Et,manifest:null,max:null,maxLength:Et,media:null,method:null,min:null,minLength:Et,multiple:vn,muted:vn,name:null,nonce:null,noModule:vn,noValidate:vn,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:vn,optimum:Et,pattern:null,ping:dr,placeholder:null,playsInline:vn,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:vn,referrerPolicy:null,rel:dr,required:vn,reversed:vn,rows:Et,rowSpan:Et,sandbox:dr,scope:null,scoped:vn,seamless:vn,selected:vn,shadowRootClonable:vn,shadowRootDelegatesFocus:vn,shadowRootMode:null,shape:null,size:Et,sizes:null,slot:null,span:Et,spellCheck:Xr,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Et,step:null,style:null,tabIndex:Et,target:null,title:null,translate:null,type:null,typeMustMatch:vn,useMap:null,value:Xr,width:Et,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:dr,axis:null,background:null,bgColor:null,border:Et,borderColor:null,bottomMargin:Et,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:vn,declare:vn,event:null,face:null,frame:null,frameBorder:null,hSpace:Et,leftMargin:Et,link:null,longDesc:null,lowSrc:null,marginHeight:Et,marginWidth:Et,noResize:vn,noHref:vn,noShade:vn,noWrap:vn,object:null,profile:null,prompt:null,rev:null,rightMargin:Et,rules:null,scheme:null,scrolling:Xr,standby:null,summary:null,text:null,topMargin:Et,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Et,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:vn,disableRemotePlayback:vn,prefix:null,property:null,results:Et,security:null,unselectable:null}}),YSe=E1({space:"svg",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",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"},transform:Uz,properties:{about:Ko,accentHeight:Et,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Et,amplitude:Et,arabicForm:null,ascent:Et,attributeName:null,attributeType:null,azimuth:Et,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Et,by:null,calcMode:null,capHeight:Et,className:dr,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:Et,diffuseConstant:Et,direction:null,display:null,dur:null,divisor:Et,dominantBaseline:null,download:vn,dx:null,dy:null,edgeMode:null,editable:null,elevation:Et,enableBackground:null,end:null,event:null,exponent:Et,externalResourcesRequired:null,fill:null,fillOpacity:Et,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:Of,g2:Of,glyphName:Of,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Et,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Et,horizOriginX:Et,horizOriginY:Et,id:null,ideographic:Et,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Et,k:Et,k1:Et,k2:Et,k3:Et,k4:Et,kernelMatrix:Ko,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Et,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:Et,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:Et,overlineThickness:Et,paintOrder:null,panose1:null,path:null,pathLength:Et,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:dr,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Et,pointsAtY:Et,pointsAtZ:Et,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Ko,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Ko,rev:Ko,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Ko,requiredFeatures:Ko,requiredFonts:Ko,requiredFormats:Ko,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:Et,specularExponent:Et,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Et,strikethroughThickness:Et,string:null,stroke:null,strokeDashArray:Ko,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Et,strokeOpacity:Et,strokeWidth:null,style:null,surfaceScale:Et,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Ko,tabIndex:Et,tableValues:null,target:null,targetX:Et,targetY:Et,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Ko,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:Et,underlineThickness:Et,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Et,values:null,vAlphabetic:Et,vMathematical:Et,vectorEffect:null,vHanging:Et,vIdeographic:Et,version:null,vertAdvY:Et,vertOriginX:Et,vertOriginY:Et,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Et,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),QSe=/^data[-\w.:]+$/i,DN=/-[a-z]/g,ZSe=/[A-Z]/g;function j2(e,t){const n=cm(t);let r=t,i=La;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&QSe.test(t)){if(t.charAt(4)==="-"){const o=t.slice(5).replace(DN,eEe);r="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=t.slice(4);if(!DN.test(o)){let a=o.replace(ZSe,JSe);a.charAt(0)!=="-"&&(a="-"+a),t="data"+a}}i=mw}return new i(r,t)}function JSe(e){return"-"+e.toLowerCase()}function eEe(e){return e.charAt(1).toUpperCase()}const Qm=jz([Wz,zz,Vz,Gz,XSe],"html"),x1=jz([Wz,zz,Vz,Gz,YSe],"svg"),FN=/[#.]/g;function tEe(e,t){const n=e||"",r={};let i=0,o,a;for(;i<n.length;){FN.lastIndex=i;const l=FN.exec(n),c=n.slice(i,l?l.index:n.length);c&&(o?o==="#"?r.id=c:Array.isArray(r.className)?r.className.push(c):r.className=[c]:a=c,i+=c.length),l&&(o=l[0],i++)}return{type:"element",tagName:a||t||"div",properties:r,children:[]}}function BN(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function qz(e){return e.join(" ").trim()}function jN(e){const t=[],n=String(e||"");let r=n.indexOf(","),i=0,o=!1;for(;!o;){r===-1&&(r=n.length,o=!0);const a=n.slice(i,r).trim();(a||!o)&&t.push(a),i=r+1,r=n.indexOf(",",i)}return t}function Xz(e,t){const n=t||{};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const nEe=new Set(["menu","submit","reset","button"]),qE={}.hasOwnProperty;function Yz(e,t,n){const r=n&&aEe(n);return function(o,a,...l){let c=-1,u;if(o==null)u={type:"root",children:[]},l.unshift(a);else if(u=tEe(o,t),u.tagName=u.tagName.toLowerCase(),r&&qE.call(r,u.tagName)&&(u.tagName=r[u.tagName]),rEe(a,u.tagName)){let p;for(p in a)qE.call(a,p)&&iEe(e,u.properties,p,a[p])}else l.unshift(a);for(;++c<l.length;)XE(u.children,l[c]);return u.type==="element"&&u.tagName==="template"&&(u.content={type:"root",children:u.children},u.children=[]),u}}function rEe(e,t){return e==null||typeof e!="object"||Array.isArray(e)?!1:t==="input"||!e.type||typeof e.type!="string"?!0:"children"in e&&Array.isArray(e.children)?!1:t==="button"?nEe.has(e.type.toLowerCase()):!("value"in e)}function iEe(e,t,n,r){const i=j2(e,n);let o=-1,a;if(r!=null){if(typeof r=="number"){if(Number.isNaN(r))return;a=r}else typeof r=="boolean"?a=r:typeof r=="string"?i.spaceSeparated?a=BN(r):i.commaSeparated?a=jN(r):i.commaOrSpaceSeparated?a=BN(jN(r).join(" ")):a=HN(i,i.property,r):Array.isArray(r)?a=r.concat():a=i.property==="style"?oEe(r):String(r);if(Array.isArray(a)){const l=[];for(;++o<a.length;)l[o]=HN(i,i.property,a[o]);a=l}i.property==="className"&&Array.isArray(t.className)&&(a=t.className.concat(a)),t[i.property]=a}}function XE(e,t){let n=-1;if(t!=null)if(typeof t=="string"||typeof t=="number")e.push({type:"text",value:String(t)});else if(Array.isArray(t))for(;++n<t.length;)XE(e,t[n]);else if(typeof t=="object"&&"type"in t)t.type==="root"?XE(e,t.children):e.push(t);else throw new Error("Expected node, nodes, or string, got `"+t+"`")}function HN(e,t,n){if(typeof n=="string"){if(e.number&&n&&!Number.isNaN(Number(n)))return Number(n);if((e.boolean||e.overloadedBoolean)&&(n===""||cm(n)===cm(t)))return!0}return n}function oEe(e){const t=[];let n;for(n in e)qE.call(e,n)&&t.push([n,e[n]].join(": "));return t.join("; ")}function aEe(e){const t={};let n=-1;for(;++n<e.length;)t[e[n].toLowerCase()]=e[n];return t}const lEe=Yz(Qm,"div"),sEe=["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"],cEe=Yz(x1,"g",sEe);function uEe(e){const t=String(e),n=[],r=/\r?\n|\r/g;for(;r.test(t);)n.push(r.lastIndex);return n.push(t.length+1),{toPoint:i,toOffset:o};function i(a){let l=-1;if(typeof a=="number"&&a>-1&&a<n[n.length-1]){for(;++l<n.length;)if(n[l]>a)return{line:l+1,column:a-(l>0?n[l-1]:0)+1,offset:a}}return{line:void 0,column:void 0,offset:void 0}}function o(a){const l=a&&a.line,c=a&&a.column;if(typeof l=="number"&&typeof c=="number"&&!Number.isNaN(l)&&!Number.isNaN(c)&&l-1 in n){const u=(n[l-2]||0)+c-1||0;if(u>-1&&u<n[n.length-1])return u}return-1}}const um={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},Qz={}.hasOwnProperty,dEe=Object.prototype;function fEe(e,t){const n=t||{};let r,i;return mEe(n)?(i=n,r={}):(i=n.file||void 0,r=n),gw({schema:r.space==="svg"?x1:Qm,file:i,verbose:r.verbose,location:!1},e)}function gw(e,t){let n;switch(t.nodeName){case"#comment":{const r=t;return n={type:"comment",value:r.data},Sv(e,r,n),n}case"#document":case"#document-fragment":{const r=t,i="mode"in r?r.mode==="quirks"||r.mode==="limited-quirks":!1;if(n={type:"root",children:Zz(e,t.childNodes),data:{quirksMode:i}},e.file&&e.location){const o=String(e.file),a=uEe(o),l=a.toPoint(0),c=a.toPoint(o.length);n.position={start:l,end:c}}return n}case"#documentType":{const r=t;return n={type:"doctype"},Sv(e,r,n),n}case"#text":{const r=t;return n={type:"text",value:r.value},Sv(e,r,n),n}default:return n=pEe(e,t),n}}function Zz(e,t){let n=-1;const r=[];for(;++n<t.length;)r[n]=gw(e,t[n]);return r}function pEe(e,t){const n=e.schema;e.schema=t.namespaceURI===um.svg?x1:Qm;let r=-1;const i={};for(;++r<t.attrs.length;){const l=t.attrs[r],c=(l.prefix?l.prefix+":":"")+l.name;Qz.call(dEe,c)||(i[c]=l.value)}const a=(e.schema.space==="svg"?cEe:lEe)(t.tagName,i,Zz(e,t.childNodes));if(Sv(e,t,a),a.tagName==="template"){const l=t,c=l.sourceCodeLocation,u=c&&c.startTag&&cf(c.startTag),p=c&&c.endTag&&cf(c.endTag),h=gw(e,l.content);u&&p&&e.file&&(h.position={start:u.end,end:p.start}),a.content=h}return e.schema=n,a}function Sv(e,t,n){if("sourceCodeLocation"in t&&t.sourceCodeLocation&&e.file){const r=hEe(e,n,t.sourceCodeLocation);r&&(e.location=!0,n.position=r)}}function hEe(e,t,n){const r=cf(n);if(t.type==="element"){const i=t.children[t.children.length-1];if(r&&!n.endTag&&i&&i.position&&i.position.end&&(r.end=Object.assign({},i.position.end)),e.verbose){const o={};let a;if(n.attrs)for(a in n.attrs)Qz.call(n.attrs,a)&&(o[j2(e.schema,a).property]=cf(n.attrs[a]));t.data={position:{opening:cf(n.startTag),closing:n.endTag?cf(n.endTag):null,properties:o}}}}return r}function cf(e){const t=zN({line:e.startLine,column:e.startCol,offset:e.startOffset}),n=zN({line:e.endLine,column:e.endCol,offset:e.endOffset});return t||n?{start:t,end:n}:void 0}function zN(e){return e.line&&e.column?e:void 0}function mEe(e){return"messages"in e}const WN={}.hasOwnProperty;function vw(e,t){const n=t||{};function r(i,...o){let a=r.invalid;const l=r.handlers;if(i&&WN.call(i,e)){const c=String(i[e]);a=WN.call(l,c)?l[c]:r.unknown}if(a)return a.call(this,i,...o)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}const gEe={}.hasOwnProperty,Jz=vw("type",{handlers:{root:yEe,element:xEe,text:SEe,comment:EEe,doctype:CEe}});function vEe(e,t){return Jz(e,Qm)}function yEe(e,t){const n={nodeName:"#document",mode:(e.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return n.childNodes=yw(e.children,n,t),w1(e,n),n}function bEe(e,t){const n={nodeName:"#document-fragment",childNodes:[]};return n.childNodes=yw(e.children,n,t),w1(e,n),n}function CEe(e){const t={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:void 0};return w1(e,t),t}function SEe(e){const t={nodeName:"#text",value:e.value,parentNode:void 0};return w1(e,t),t}function EEe(e){const t={nodeName:"#comment",data:e.value,parentNode:void 0};return w1(e,t),t}function xEe(e,t){const n=t;let r=n;e.type==="element"&&e.tagName.toLowerCase()==="svg"&&n.space==="html"&&(r=x1);const i=[];let o;if(e.properties){for(o in e.properties)if(o!=="children"&&gEe.call(e.properties,o)){const l=wEe(r,o,e.properties[o]);l&&i.push(l)}}const a={nodeName:e.tagName,tagName:e.tagName,attrs:i,namespaceURI:um[r.space],childNodes:[],parentNode:void 0};return a.childNodes=yw(e.children,a,r),w1(e,a),e.tagName==="template"&&e.content&&(a.content=bEe(e.content,r)),a}function wEe(e,t,n){const r=j2(e,t);if(n==null||n===!1||typeof n=="number"&&Number.isNaN(n)||!n&&r.boolean)return;Array.isArray(n)&&(n=r.commaSeparated?Xz(n):qz(n));const i={name:r.attribute,value:n===!0?"":String(n)};if(r.space&&r.space!=="html"&&r.space!=="svg"){const o=i.name.indexOf(":");o<0?i.prefix="":(i.name=i.name.slice(o+1),i.prefix=r.attribute.slice(0,o)),i.namespace=um[r.space]}return i}function yw(e,t,n){let r=-1;const i=[];if(e)for(;++r<e.length;){const o=Jz(e[r],n);o.parentNode=t,i.push(o)}return i}function w1(e,t){const n=e.position;n&&n.start&&n.end&&(t.sourceCodeLocation={startLine:n.start.line,startCol:n.start.column,startOffset:n.start.offset,endLine:n.end.line,endCol:n.end.column,endOffset:n.end.offset})}const eW=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","isindex","keygen","link","menuitem","meta","nextid","param","source","track","wbr"],_Ee="IN_TEMPLATE_MODE",TEe="DATA_STATE",OEe="CHARACTER_TOKEN",IEe="START_TAG_TOKEN",kEe="END_TAG_TOKEN",$Ee="COMMENT_TOKEN",NEe="DOCTYPE_TOKEN",AEe={sourceCodeLocationInfo:!0,scriptingEnabled:!1},tW=function(e,t,n){let r=-1;const i=new KSe(AEe),o=vw("type",{handlers:{root:E,element:x,text:S,comment:_,doctype:C,raw:O},unknown:LEe});let a,l,c,u,p;if(FEe(t)&&(n=t,t=void 0),n&&n.passThrough)for(;++r<n.passThrough.length;)o.handlers[n.passThrough[r]]=k;const h=fEe(DEe(e)?g():m(),t);if(a&&Km(h,"comment",(I,$,M)=>{const R=I;if(R.value.stitch&&M!==null&&$!==null)return M.children[$]=R.value.stitch,$}),e.type!=="root"&&h.type==="root"&&h.children.length===1)return h.children[0];return h;function m(){const I={nodeName:"template",tagName:"template",attrs:[],namespaceURI:um.html,childNodes:[]},$={nodeName:"documentmock",tagName:"documentmock",attrs:[],namespaceURI:um.html,childNodes:[]},M={nodeName:"#document-fragment",childNodes:[]};if(i._bootstrap($,I),i._pushTmplInsertionMode(_Ee),i._initTokenizerForFragmentParsing(),i._insertFakeRootElement(),i._resetInsertionMode(),i._findFormInFragmentContext(),l=i.tokenizer,!l)throw new Error("Expected `tokenizer`");return c=l.preprocessor,p=l.__mixins[0],u=p.posTracker,o(e),T(),i._adoptNodes($.childNodes[0],M),M}function g(){const I=i.treeAdapter.createDocument();if(i._bootstrap(I,void 0),l=i.tokenizer,!l)throw new Error("Expected `tokenizer`");return c=l.preprocessor,p=l.__mixins[0],u=p.posTracker,o(e),T(),I}function b(I){let $=-1;if(I)for(;++$<I.length;)o(I[$])}function E(I){b(I.children)}function x(I){T(),i._processInputToken(REe(I)),b(I.children),eW.includes(I.tagName)||(T(),i._processInputToken(PEe(I)))}function S(I){T(),i._processInputToken({type:OEe,chars:I.value,location:uf(I)})}function C(I){T(),i._processInputToken({type:NEe,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:uf(I)})}function _(I){T(),i._processInputToken({type:$Ee,data:I.value,location:uf(I)})}function O(I){const $=Xm(I),M=$.line||1,R=$.column||1,j=$.offset||0;if(!c)throw new Error("Expected `preprocessor`");if(!l)throw new Error("Expected `tokenizer`");if(!u)throw new Error("Expected `posTracker`");if(!p)throw new Error("Expected `locationTracker`");c.html=void 0,c.pos=-1,c.lastGapPos=-1,c.lastCharPos=-1,c.gapStack=[],c.skipNextNewLine=!1,c.lastChunkWritten=!1,c.endOfChunkHit=!1,u.isEol=!1,u.lineStartPos=-R+1,u.droppedBufferSize=j,u.offset=0,u.col=1,u.line=M,p.currentAttrLocation=void 0,p.ctLoc=uf(I),l.write(I.value),i._runParsingLoop(null),(l.state==="NAMED_CHARACTER_REFERENCE_STATE"||l.state==="NUMERIC_CHARACTER_REFERENCE_END_STATE")&&(c.lastChunkWritten=!0,l[l.state](l._consume()))}function k(I){a=!0;let $;"children"in I?$={...I,children:tW({type:"root",children:I.children},t,n).children}:$={...I},_({type:"comment",value:{stitch:$}})}function T(){if(!l)throw new Error("Expected `tokenizer`");if(!u)throw new Error("Expected `posTracker`");const I=l.currentCharacterToken;I&&(I.location.endLine=u.line,I.location.endCol=u.col+1,I.location.endOffset=u.offset+1,i._processInputToken(I)),l.tokenQueue=[],l.state=TEe,l.returnState="",l.charRefCode=-1,l.tempBuff=[],l.lastStartTagName="",l.consumedAfterSnapshot=-1,l.active=!1,l.currentCharacterToken=void 0,l.currentToken=void 0,l.currentAttr=void 0}};function REe(e){const t=Object.assign(uf(e));return t.startTag=Object.assign({},t),{type:IEe,tagName:e.tagName,selfClosing:!1,attrs:MEe(e),location:t}}function MEe(e){return vEe({tagName:e.tagName,type:"element",properties:e.properties,children:[]}).attrs}function PEe(e){const t=Object.assign(uf(e));return t.startTag=Object.assign({},t),{type:kEe,tagName:e.tagName,attrs:[],location:t}}function LEe(e){throw new Error("Cannot compile `"+e.type+"` node")}function DEe(e){const t=e.type==="root"?e.children[0]:e;return!!(t&&(t.type==="doctype"||t.type==="element"&&t.tagName==="html"))}function uf(e){const t=Xm(e),n=B2(e);return{startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:n.line,endCol:n.column,endOffset:n.offset}}function FEe(e){return!!(e&&!("message"in e&&"messages"in e))}function BEe(e={}){return(t,n)=>tW(t,n,e)}function jEe(e=rw){return t=>z4e(t,e)}const HEe=/["&'<>`]/g,zEe=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,WEe=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,UEe=/[|\\{}()[\]^$+*?.]/g,UN=new WeakMap;function KEe(e,t){if(e=e.replace(t.subset?VEe(t.subset):HEe,r),t.subset||t.escapeOnly)return e;return e.replace(zEe,n).replace(WEe,r);function n(i,o,a){return t.format((i.charCodeAt(0)-55296)*1024+i.charCodeAt(1)-56320+65536,a.charCodeAt(o+2),t)}function r(i,o,a){return t.format(i.charCodeAt(0),a.charCodeAt(o+1),t)}}function VEe(e){let t=UN.get(e);return t||(t=GEe(e),UN.set(e,t)),t}function GEe(e){const t=[];let n=-1;for(;++n<e.length;)t.push(e[n].replace(UEe,"\\$&"));return new RegExp("(?:"+t.join("|")+")","g")}const qEe=/[\dA-Fa-f]/;function XEe(e,t,n){const r="&#x"+e.toString(16).toUpperCase();return n&&t&&!qEe.test(String.fromCharCode(t))?r:r+";"}const YEe=/\d/;function QEe(e,t,n){const r="&#"+String(e);return n&&t&&!YEe.test(String.fromCharCode(t))?r:r+";"}const ZEe=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],V9={nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"­",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",fnof:"ƒ",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",bull:"•",hellip:"…",prime:"",Prime:"″",oline:"‾",frasl:"",weierp:"℘",image:"",real:"",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"",lowast:"",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"",cap:"∩",cup:"",int:"∫",there4:"∴",sim:"",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦",quot:'"',amp:"&",lt:"<",gt:">",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",circ:"ˆ",tilde:"˜",ensp:"",emsp:"",thinsp:"",zwnj:"",zwj:"",lrm:"",rlm:"",ndash:"",mdash:"—",lsquo:"",rsquo:"",sbquo:"",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",permil:"‰",lsaquo:"",rsaquo:"",euro:"€"},JEe=["cent","copy","divide","gt","lt","not","para","times"],nW={}.hasOwnProperty,YE={};let Ag;for(Ag in V9)nW.call(V9,Ag)&&(YE[V9[Ag]]=Ag);const exe=/[^\dA-Za-z]/;function txe(e,t,n,r){const i=String.fromCharCode(e);if(nW.call(YE,i)){const o=YE[i],a="&"+o;return n&&ZEe.includes(o)&&!JEe.includes(o)&&(!r||t&&t!==61&&exe.test(String.fromCharCode(t)))?a:a+";"}return""}function nxe(e,t,n){let r=XEe(e,t,n.omitOptionalSemicolons),i;if((n.useNamedReferences||n.useShortestReferences)&&(i=txe(e,t,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!i)&&n.useShortestReferences){const o=QEe(e,t,n.omitOptionalSemicolons);o.length<r.length&&(r=o)}return i&&(!n.useShortestReferences||i.length<r.length)?i:r}function If(e,t){return KEe(e,Object.assign({format:nxe},t))}function rxe(e,t,n,r){return r.settings.bogusComments?"<?"+If(e.value,Object.assign({},r.settings.characterReferences,{subset:[">"]}))+">":"<!--"+e.value.replace(/^>|^->|<!--|-->|--!>|<!-$/g,i)+"-->";function i(o){return If(o,Object.assign({},r.settings.characterReferences,{subset:["<",">"]}))}}function ixe(e,t,n,r){return"<!"+(r.settings.upperDoctype?"DOCTYPE":"doctype")+(r.settings.tightDoctype?"":" ")+"html>"}function Ly(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 bw(e){const t=e&&typeof e=="object"&&e.type==="text"?e.value||"":e;return typeof t=="string"&&t.replace(/[ \t\n\f\r]/g,"")===""}const ai=iW(1),rW=iW(-1);function iW(e){return t;function t(n,r,i){const o=n?n.children:[];let a=(r||0)+e,l=o&&o[a];if(!i)for(;l&&bw(l);)a+=e,l=o[a];return l}}const oxe={}.hasOwnProperty;function oW(e){return t;function t(n,r,i){return oxe.call(e,n.tagName)&&e[n.tagName](n,r,i)}}const Cw=oW({html:axe,head:G9,body:lxe,p:sxe,li:cxe,dt:uxe,dd:dxe,rt:KN,rp:KN,optgroup:fxe,option:pxe,menuitem:hxe,colgroup:G9,caption:G9,thead:mxe,tbody:gxe,tfoot:vxe,tr:yxe,td:VN,th:VN});function G9(e,t,n){const r=ai(n,t,!0);return!r||r.type!=="comment"&&!(r.type==="text"&&bw(r.value.charAt(0)))}function axe(e,t,n){const r=ai(n,t);return!r||r.type!=="comment"}function lxe(e,t,n){const r=ai(n,t);return!r||r.type!=="comment"}function sxe(e,t,n){const r=ai(n,t);return r?r.type==="element"&&(r.tagName==="address"||r.tagName==="article"||r.tagName==="aside"||r.tagName==="blockquote"||r.tagName==="details"||r.tagName==="div"||r.tagName==="dl"||r.tagName==="fieldset"||r.tagName==="figcaption"||r.tagName==="figure"||r.tagName==="footer"||r.tagName==="form"||r.tagName==="h1"||r.tagName==="h2"||r.tagName==="h3"||r.tagName==="h4"||r.tagName==="h5"||r.tagName==="h6"||r.tagName==="header"||r.tagName==="hgroup"||r.tagName==="hr"||r.tagName==="main"||r.tagName==="menu"||r.tagName==="nav"||r.tagName==="ol"||r.tagName==="p"||r.tagName==="pre"||r.tagName==="section"||r.tagName==="table"||r.tagName==="ul"):!n||!(n.type==="element"&&(n.tagName==="a"||n.tagName==="audio"||n.tagName==="del"||n.tagName==="ins"||n.tagName==="map"||n.tagName==="noscript"||n.tagName==="video"))}function cxe(e,t,n){const r=ai(n,t);return!r||r.type==="element"&&r.tagName==="li"}function uxe(e,t,n){const r=ai(n,t);return r&&r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd")}function dxe(e,t,n){const r=ai(n,t);return!r||r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd")}function KN(e,t,n){const r=ai(n,t);return!r||r.type==="element"&&(r.tagName==="rp"||r.tagName==="rt")}function fxe(e,t,n){const r=ai(n,t);return!r||r.type==="element"&&r.tagName==="optgroup"}function pxe(e,t,n){const r=ai(n,t);return!r||r.type==="element"&&(r.tagName==="option"||r.tagName==="optgroup")}function hxe(e,t,n){const r=ai(n,t);return!r||r.type==="element"&&(r.tagName==="menuitem"||r.tagName==="hr"||r.tagName==="menu")}function mxe(e,t,n){const r=ai(n,t);return r&&r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot")}function gxe(e,t,n){const r=ai(n,t);return!r||r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot")}function vxe(e,t,n){return!ai(n,t)}function yxe(e,t,n){const r=ai(n,t);return!r||r.type==="element"&&r.tagName==="tr"}function VN(e,t,n){const r=ai(n,t);return!r||r.type==="element"&&(r.tagName==="td"||r.tagName==="th")}const bxe=oW({html:Cxe,head:Sxe,body:Exe,colgroup:xxe,tbody:wxe});function Cxe(e){const t=ai(e,-1);return!t||t.type!=="comment"}function Sxe(e){const t=e.children,n=[];let r=-1;for(;++r<t.length;){const i=t[r];if(i.type==="element"&&(i.tagName==="title"||i.tagName==="base")){if(n.includes(i.tagName))return!1;n.push(i.tagName)}}return t.length>0}function Exe(e){const t=ai(e,-1,!0);return!t||t.type!=="comment"&&!(t.type==="text"&&bw(t.value.charAt(0)))&&!(t.type==="element"&&(t.tagName==="meta"||t.tagName==="link"||t.tagName==="script"||t.tagName==="style"||t.tagName==="template"))}function xxe(e,t,n){const r=rW(n,t),i=ai(e,-1,!0);return n&&r&&r.type==="element"&&r.tagName==="colgroup"&&Cw(r,n.children.indexOf(r),n)?!1:i&&i.type==="element"&&i.tagName==="col"}function wxe(e,t,n){const r=rW(n,t),i=ai(e,-1);return n&&r&&r.type==="element"&&(r.tagName==="thead"||r.tagName==="tbody")&&Cw(r,n.children.indexOf(r),n)?!1:i&&i.type==="element"&&i.tagName==="tr"}const Rg={name:[[`
\f\r &/=>`.split(""),`
\f\r "&'/=>\``.split("")],[`\0
\f\r "&'/<=>`.split(""),`\0
\f\r "&'/<=>\``.split("")]],unquoted:[[`
\f\r &>`.split(""),`\0
\f\r "&'<=>\``.split("")],[`\0
\f\r "&'<=>\``.split(""),`\0
\f\r "&'<=>\``.split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function _xe(e,t,n,r){const i=r.schema,o=i.space==="svg"?!1:r.settings.omitOptionalTags;let a=i.space==="svg"?r.settings.closeEmptyElements:r.settings.voids.includes(e.tagName.toLowerCase());const l=[];let c;i.space==="html"&&e.tagName==="svg"&&(r.schema=x1);const u=Txe(r,e.properties),p=r.all(i.space==="html"&&e.tagName==="template"?e.content:e);return r.schema=i,p&&(a=!1),(u||!o||!bxe(e,t,n))&&(l.push("<",e.tagName,u?" "+u:""),a&&(i.space==="svg"||r.settings.closeSelfClosing)&&(c=u.charAt(u.length-1),(!r.settings.tightSelfClosing||c==="/"||c&&c!=='"'&&c!=="'")&&l.push(" "),l.push("/")),l.push(">")),l.push(p),!a&&(!o||!Cw(e,t,n))&&l.push("</"+e.tagName+">"),l.join("")}function Txe(e,t){const n=[];let r=-1,i;if(t){for(i in t)if(t[i]!==void 0&&t[i]!==null){const o=Oxe(e,i,t[i]);o&&n.push(o)}}for(;++r<n.length;){const o=e.settings.tightAttributes?n[r].charAt(n[r].length-1):null;r!==n.length-1&&o!=='"'&&o!=="'"&&(n[r]+=" ")}return n.join("")}function Oxe(e,t,n){const r=j2(e.schema,t),i=e.settings.allowParseErrors&&e.schema.space==="html"?0:1,o=e.settings.allowDangerousCharacters?0:1;let a=e.quote,l;if(r.overloadedBoolean&&(n===r.attribute||n==="")?n=!0:(r.boolean||r.overloadedBoolean&&typeof n!="string")&&(n=!!n),n==null||n===!1||typeof n=="number"&&Number.isNaN(n))return"";const c=If(r.attribute,Object.assign({},e.settings.characterReferences,{subset:Rg.name[i][o]}));return n===!0||(n=Array.isArray(n)?(r.commaSeparated?Xz:qz)(n,{padLeft:!e.settings.tightCommaSeparatedLists}):String(n),e.settings.collapseEmptyAttributes&&!n)?c:(e.settings.preferUnquoted&&(l=If(n,Object.assign({},e.settings.characterReferences,{subset:Rg.unquoted[i][o],attribute:!0}))),l!==n&&(e.settings.quoteSmart&&Ly(n,a)>Ly(n,e.alternative)&&(a=e.alternative),l=a+If(n,Object.assign({},e.settings.characterReferences,{subset:(a==="'"?Rg.single:Rg.double)[i][o],attribute:!0}))+a),c+(l&&"="+l))}function aW(e,t,n,r){return n&&n.type==="element"&&(n.tagName==="script"||n.tagName==="style")?e.value:If(e.value,Object.assign({},r.settings.characterReferences,{subset:["<","&"]}))}function Ixe(e,t,n,r){return r.settings.allowDangerousHtml?e.value:aW(e,t,n,r)}function kxe(e,t,n,r){return r.all(e)}const $xe=vw("type",{invalid:Nxe,unknown:Axe,handlers:{comment:rxe,doctype:ixe,element:_xe,raw:Ixe,root:kxe,text:aW}});function Nxe(e){throw new Error("Expected node, not `"+e+"`")}function Axe(e){throw new Error("Cannot compile unknown node `"+e.type+"`")}function Rxe(e,t){const n=t||{},r=n.quote||'"',i=r==='"'?"'":'"';if(r!=='"'&&r!=="'")throw new Error("Invalid quote `"+r+"`, expected `'` or `\"`");return{one:Mxe,all:Pxe,settings:{omitOptionalTags:n.omitOptionalTags||!1,allowParseErrors:n.allowParseErrors||!1,allowDangerousCharacters:n.allowDangerousCharacters||!1,quoteSmart:n.quoteSmart||!1,preferUnquoted:n.preferUnquoted||!1,tightAttributes:n.tightAttributes||!1,upperDoctype:n.upperDoctype||!1,tightDoctype:n.tightDoctype||!1,bogusComments:n.bogusComments||!1,tightCommaSeparatedLists:n.tightCommaSeparatedLists||!1,tightSelfClosing:n.tightSelfClosing||!1,collapseEmptyAttributes:n.collapseEmptyAttributes||!1,allowDangerousHtml:n.allowDangerousHtml||!1,voids:n.voids||eW,characterReferences:n.characterReferences||n.entities||{},closeSelfClosing:n.closeSelfClosing||!1,closeEmptyElements:n.closeEmptyElements||!1},schema:n.space==="svg"?x1:Qm,quote:r,alternative:i}.one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)}function Mxe(e,t,n){return $xe(e,t,n,this)}function Pxe(e){const t=[],n=e&&e.children||[];let r=-1;for(;++r<n.length;)t[r]=this.one(n[r],r,e);return t.join("")}function Lxe(e){const t=this.data("settings"),n=Object.assign({},t,e);Object.assign(this,{Compiler:r});function r(i){return Rxe(i,n)}}const Dxe={};function Fxe(e,t){const n=Dxe,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,i=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return lW(e,r,i)}function lW(e,t,n){if(Bxe(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 GN(e.children,t,n)}return Array.isArray(e)?GN(e,t,n):""}function GN(e,t,n){const r=[];let i=-1;for(;++i<e.length;)r[i]=lW(e[i],t,n);return r.join("")}function Bxe(e){return!!(e&&typeof e=="object")}function ta(e,t,n,r){const i=e.length;let o=0,a;if(t<0?t=-t>i?0:i+t:t=t>i?i:t,n=n>0?n:0,r.length<1e4)a=Array.from(r),a.unshift(t,n),e.splice(...a);else for(n&&e.splice(t,n);o<r.length;)a=r.slice(o,o+1e4),a.unshift(t,0),e.splice(...a),o+=1e4,t+=1e4}function ya(e,t){return e.length>0?(ta(e,e.length,0,t),e):t}const qN={}.hasOwnProperty;function sW(e){const t={};let n=-1;for(;++n<e.length;)jxe(t,e[n]);return t}function jxe(e,t){let n;for(n in t){const i=(qN.call(e,n)?e[n]:void 0)||(e[n]={}),o=t[n];let a;if(o)for(a in o){qN.call(i,a)||(i[a]=[]);const l=o[a];Hxe(i[a],Array.isArray(l)?l:l?[l]:[])}}}function Hxe(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);ta(e,0,0,r)}const zxe=/[!-\/:-@\[-`\{-~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/,oo=Bc(/[A-Za-z]/),Gi=Bc(/[\dA-Za-z]/),Wxe=Bc(/[#-'*+\--9=?A-Z^-~]/);function Dy(e){return e!==null&&(e<32||e===127)}const QE=Bc(/\d/),Uxe=Bc(/[\dA-Fa-f]/),Kxe=Bc(/[!-/:-@[-`{-~]/);function on(e){return e!==null&&e<-2}function sr(e){return e!==null&&(e<0||e===32)}function yn(e){return e===-2||e===-1||e===32}const H2=Bc(zxe),Wu=Bc(/\s/);function Bc(e){return t;function t(n){return n!==null&&e.test(String.fromCharCode(n))}}function Dn(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let o=0;return a;function a(c){return yn(c)?(e.enter(n),l(c)):t(c)}function l(c){return yn(c)&&o++<i?(e.consume(c),l):(e.exit(n),t(c))}}const Vxe={tokenize:Gxe};function Gxe(e){const t=e.attempt(this.parser.constructs.contentInitial,r,i);let n;return t;function r(l){if(l===null){e.consume(l);return}return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),Dn(e,t,"linePrefix")}function i(l){return e.enter("paragraph"),o(l)}function o(l){const c=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=c),n=c,a(l)}function a(l){if(l===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(l);return}return on(l)?(e.consume(l),e.exit("chunkText"),o):(e.consume(l),a)}}const qxe={tokenize:Xxe},XN={tokenize:Yxe};function Xxe(e){const t=this,n=[];let r=0,i,o,a;return l;function l(_){if(r<n.length){const O=n[r];return t.containerState=O[1],e.attempt(O[0].continuation,c,u)(_)}return u(_)}function c(_){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&C();const O=t.events.length;let k=O,T;for(;k--;)if(t.events[k][0]==="exit"&&t.events[k][1].type==="chunkFlow"){T=t.events[k][1].end;break}S(r);let I=O;for(;I<t.events.length;)t.events[I][1].end=Object.assign({},T),I++;return ta(t.events,k+1,0,t.events.slice(O)),t.events.length=I,u(_)}return l(_)}function u(_){if(r===n.length){if(!i)return m(_);if(i.currentConstruct&&i.currentConstruct.concrete)return b(_);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(XN,p,h)(_)}function p(_){return i&&C(),S(r),m(_)}function h(_){return t.parser.lazy[t.now().line]=r!==n.length,a=t.now().offset,b(_)}function m(_){return t.containerState={},e.attempt(XN,g,b)(_)}function g(_){return r++,n.push([t.currentConstruct,t.containerState]),m(_)}function b(_){if(_===null){i&&C(),S(0),e.consume(_);return}return i=i||t.parser.flow(t.now()),e.enter("chunkFlow",{contentType:"flow",previous:o,_tokenizer:i}),E(_)}function E(_){if(_===null){x(e.exit("chunkFlow"),!0),S(0),e.consume(_);return}return on(_)?(e.consume(_),x(e.exit("chunkFlow")),r=0,t.interrupt=void 0,l):(e.consume(_),E)}function x(_,O){const k=t.sliceStream(_);if(O&&k.push(null),_.previous=o,o&&(o.next=_),o=_,i.defineSkip(_.start),i.write(k),t.parser.lazy[_.start.line]){let T=i.events.length;for(;T--;)if(i.events[T][1].start.offset<a&&(!i.events[T][1].end||i.events[T][1].end.offset>a))return;const I=t.events.length;let $=I,M,R;for(;$--;)if(t.events[$][0]==="exit"&&t.events[$][1].type==="chunkFlow"){if(M){R=t.events[$][1].end;break}M=!0}for(S(r),T=I;T<t.events.length;)t.events[T][1].end=Object.assign({},R),T++;ta(t.events,$+1,0,t.events.slice(I)),t.events.length=T}}function S(_){let O=n.length;for(;O-- >_;){const k=n[O];t.containerState=k[1],k[0].exit.call(t,e)}n.length=_}function C(){i.write([null]),o=void 0,i=void 0,t.containerState._closeFlow=void 0}}function Yxe(e,t,n){return Dn(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Fy(e){if(e===null||sr(e)||Wu(e))return 1;if(H2(e))return 2}function z2(e,t,n){const r=[];let i=-1;for(;++i<e.length;){const o=e[i].resolveAll;o&&!r.includes(o)&&(t=o(t,n),r.push(o))}return t}const ZE={name:"attention",tokenize:Zxe,resolveAll:Qxe};function Qxe(e,t){let n=-1,r,i,o,a,l,c,u,p;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;c=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 h=Object.assign({},e[r][1].end),m=Object.assign({},e[n][1].start);YN(h,-c),YN(m,c),a={type:c>1?"strongSequence":"emphasisSequence",start:h,end:Object.assign({},e[r][1].end)},l={type:c>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[n][1].start),end:m},o={type:c>1?"strongText":"emphasisText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},i={type:c>1?"strong":"emphasis",start:Object.assign({},a.start),end:Object.assign({},l.end)},e[r][1].end=Object.assign({},a.start),e[n][1].start=Object.assign({},l.end),u=[],e[r][1].end.offset-e[r][1].start.offset&&(u=ya(u,[["enter",e[r][1],t],["exit",e[r][1],t]])),u=ya(u,[["enter",i,t],["enter",a,t],["exit",a,t],["enter",o,t]]),u=ya(u,z2(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),u=ya(u,[["exit",o,t],["enter",l,t],["exit",l,t],["exit",i,t]]),e[n][1].end.offset-e[n][1].start.offset?(p=2,u=ya(u,[["enter",e[n][1],t],["exit",e[n][1],t]])):p=0,ta(e,r-1,n-r+3,u),n=r+u.length-p-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function Zxe(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=Fy(r);let o;return a;function a(c){return o=c,e.enter("attentionSequence"),l(c)}function l(c){if(c===o)return e.consume(c),l;const u=e.exit("attentionSequence"),p=Fy(c),h=!p||p===2&&i||n.includes(c),m=!i||i===2&&p||n.includes(r);return u._open=!!(o===42?h:h&&(i||!m)),u._close=!!(o===42?m:m&&(p||!h)),t(c)}}function YN(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const Jxe={name:"autolink",tokenize:e3e};function e3e(e,t,n){let r=0;return i;function i(g){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(g),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),o}function o(g){return oo(g)?(e.consume(g),a):u(g)}function a(g){return g===43||g===45||g===46||Gi(g)?(r=1,l(g)):u(g)}function l(g){return g===58?(e.consume(g),r=0,c):(g===43||g===45||g===46||Gi(g))&&r++<32?(e.consume(g),l):(r=0,u(g))}function c(g){return g===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(g),e.exit("autolinkMarker"),e.exit("autolink"),t):g===null||g===32||g===60||Dy(g)?n(g):(e.consume(g),c)}function u(g){return g===64?(e.consume(g),p):Wxe(g)?(e.consume(g),u):n(g)}function p(g){return Gi(g)?h(g):n(g)}function h(g){return g===46?(e.consume(g),r=0,p):g===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(g),e.exit("autolinkMarker"),e.exit("autolink"),t):m(g)}function m(g){if((g===45||Gi(g))&&r++<63){const b=g===45?m:h;return e.consume(g),b}return n(g)}}const Zm={tokenize:t3e,partial:!0};function t3e(e,t,n){return r;function r(o){return yn(o)?Dn(e,i,"linePrefix")(o):i(o)}function i(o){return o===null||on(o)?t(o):n(o)}}const cW={name:"blockQuote",tokenize:n3e,continuation:{tokenize:r3e},exit:i3e};function n3e(e,t,n){const r=this;return i;function i(a){if(a===62){const l=r.containerState;return l.open||(e.enter("blockQuote",{_container:!0}),l.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(a),e.exit("blockQuoteMarker"),o}return n(a)}function o(a){return yn(a)?(e.enter("blockQuotePrefixWhitespace"),e.consume(a),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(a))}}function r3e(e,t,n){const r=this;return i;function i(a){return yn(a)?Dn(e,o,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a):o(a)}function o(a){return e.attempt(cW,t,n)(a)}}function i3e(e){e.exit("blockQuote")}const uW={name:"characterEscape",tokenize:o3e};function o3e(e,t,n){return r;function r(o){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(o),e.exit("escapeMarker"),i}function i(o){return Kxe(o)?(e.enter("characterEscapeValue"),e.consume(o),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(o)}}const QN=document.createElement("i");function Sw(e){const t="&"+e+";";QN.innerHTML=t;const n=QN.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}const dW={name:"characterReference",tokenize:a3e};function a3e(e,t,n){const r=this;let i=0,o,a;return l;function l(h){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(h),e.exit("characterReferenceMarker"),c}function c(h){return h===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(h),e.exit("characterReferenceMarkerNumeric"),u):(e.enter("characterReferenceValue"),o=31,a=Gi,p(h))}function u(h){return h===88||h===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(h),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),o=6,a=Uxe,p):(e.enter("characterReferenceValue"),o=7,a=QE,p(h))}function p(h){if(h===59&&i){const m=e.exit("characterReferenceValue");return a===Gi&&!Sw(r.sliceSerialize(m))?n(h):(e.enter("characterReferenceMarker"),e.consume(h),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return a(h)&&i++<o?(e.consume(h),p):n(h)}}const ZN={tokenize:s3e,partial:!0},JN={name:"codeFenced",tokenize:l3e,concrete:!0};function l3e(e,t,n){const r=this,i={tokenize:k,partial:!0};let o=0,a=0,l;return c;function c(T){return u(T)}function u(T){const I=r.events[r.events.length-1];return o=I&&I[1].type==="linePrefix"?I[2].sliceSerialize(I[1],!0).length:0,l=T,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),p(T)}function p(T){return T===l?(a++,e.consume(T),p):a<3?n(T):(e.exit("codeFencedFenceSequence"),yn(T)?Dn(e,h,"whitespace")(T):h(T))}function h(T){return T===null||on(T)?(e.exit("codeFencedFence"),r.interrupt?t(T):e.check(ZN,E,O)(T)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),m(T))}function m(T){return T===null||on(T)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),h(T)):yn(T)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Dn(e,g,"whitespace")(T)):T===96&&T===l?n(T):(e.consume(T),m)}function g(T){return T===null||on(T)?h(T):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),b(T))}function b(T){return T===null||on(T)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),h(T)):T===96&&T===l?n(T):(e.consume(T),b)}function E(T){return e.attempt(i,O,x)(T)}function x(T){return e.enter("lineEnding"),e.consume(T),e.exit("lineEnding"),S}function S(T){return o>0&&yn(T)?Dn(e,C,"linePrefix",o+1)(T):C(T)}function C(T){return T===null||on(T)?e.check(ZN,E,O)(T):(e.enter("codeFlowValue"),_(T))}function _(T){return T===null||on(T)?(e.exit("codeFlowValue"),C(T)):(e.consume(T),_)}function O(T){return e.exit("codeFenced"),t(T)}function k(T,I,$){let M=0;return R;function R(H){return T.enter("lineEnding"),T.consume(H),T.exit("lineEnding"),j}function j(H){return T.enter("codeFencedFence"),yn(H)?Dn(T,D,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(H):D(H)}function D(H){return H===l?(T.enter("codeFencedFenceSequence"),L(H)):$(H)}function L(H){return H===l?(M++,T.consume(H),L):M>=a?(T.exit("codeFencedFenceSequence"),yn(H)?Dn(T,B,"whitespace")(H):B(H)):$(H)}function B(H){return H===null||on(H)?(T.exit("codeFencedFence"),I(H)):$(H)}}}function s3e(e,t,n){const r=this;return i;function i(a){return a===null?n(a):(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),o)}function o(a){return r.parser.lazy[r.now().line]?n(a):t(a)}}const q9={name:"codeIndented",tokenize:u3e},c3e={tokenize:d3e,partial:!0};function u3e(e,t,n){const r=this;return i;function i(u){return e.enter("codeIndented"),Dn(e,o,"linePrefix",5)(u)}function o(u){const p=r.events[r.events.length-1];return p&&p[1].type==="linePrefix"&&p[2].sliceSerialize(p[1],!0).length>=4?a(u):n(u)}function a(u){return u===null?c(u):on(u)?e.attempt(c3e,a,c)(u):(e.enter("codeFlowValue"),l(u))}function l(u){return u===null||on(u)?(e.exit("codeFlowValue"),a(u)):(e.consume(u),l)}function c(u){return e.exit("codeIndented"),t(u)}}function d3e(e,t,n){const r=this;return i;function i(a){return r.parser.lazy[r.now().line]?n(a):on(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),i):Dn(e,o,"linePrefix",5)(a)}function o(a){const l=r.events[r.events.length-1];return l&&l[1].type==="linePrefix"&&l[2].sliceSerialize(l[1],!0).length>=4?t(a):on(a)?i(a):n(a)}}const f3e={name:"codeText",tokenize:m3e,resolve:p3e,previous:h3e};function p3e(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 h3e(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function m3e(e,t,n){let r=0,i,o;return a;function a(h){return e.enter("codeText"),e.enter("codeTextSequence"),l(h)}function l(h){return h===96?(e.consume(h),r++,l):(e.exit("codeTextSequence"),c(h))}function c(h){return h===null?n(h):h===32?(e.enter("space"),e.consume(h),e.exit("space"),c):h===96?(o=e.enter("codeTextSequence"),i=0,p(h)):on(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),c):(e.enter("codeTextData"),u(h))}function u(h){return h===null||h===32||h===96||on(h)?(e.exit("codeTextData"),c(h)):(e.consume(h),u)}function p(h){return h===96?(e.consume(h),i++,p):i===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(h)):(o.type="codeTextData",u(h))}}function fW(e){const t={};let n=-1,r,i,o,a,l,c,u;for(;++n<e.length;){for(;n in t;)n=t[n];if(r=e[n],n&&r[1].type==="chunkFlow"&&e[n-1][1].type==="listItemPrefix"&&(c=r[1]._tokenizer.events,o=0,o<c.length&&c[o][1].type==="lineEndingBlank"&&(o+=2),o<c.length&&c[o][1].type==="content"))for(;++o<c.length&&c[o][1].type!=="content";)c[o][1].type==="chunkText"&&(c[o][1]._isInFirstContentOfListItem=!0,o++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,g3e(e,n)),n=t[n],u=!0);else if(r[1]._container){for(o=n,i=void 0;o--&&(a=e[o],a[1].type==="lineEnding"||a[1].type==="lineEndingBlank");)a[0]==="enter"&&(i&&(e[i][1].type="lineEndingBlank"),a[1].type="lineEnding",i=o);i&&(r[1].end=Object.assign({},e[i][1].start),l=e.slice(i,n),l.unshift(r),ta(e,i,n-i+1,l))}}return!u}function g3e(e,t){const n=e[t][1],r=e[t][2];let i=t-1;const o=[],a=n._tokenizer||r.parser[n.contentType](n.start),l=a.events,c=[],u={};let p,h,m=-1,g=n,b=0,E=0;const x=[E];for(;g;){for(;e[++i][1]!==g;);o.push(i),g._tokenizer||(p=r.sliceStream(g),g.next||p.push(null),h&&a.defineSkip(g.start),g._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=!0),a.write(p),g._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=void 0)),h=g,g=g.next}for(g=n;++m<l.length;)l[m][0]==="exit"&&l[m-1][0]==="enter"&&l[m][1].type===l[m-1][1].type&&l[m][1].start.line!==l[m][1].end.line&&(E=m+1,x.push(E),g._tokenizer=void 0,g.previous=void 0,g=g.next);for(a.events=[],g?(g._tokenizer=void 0,g.previous=void 0):x.pop(),m=x.length;m--;){const S=l.slice(x[m],x[m+1]),C=o.pop();c.unshift([C,C+S.length-1]),ta(e,C,2,S)}for(m=-1;++m<c.length;)u[b+c[m][0]]=b+c[m][1],b+=c[m][1]-c[m][0]-1;return u}const v3e={tokenize:C3e,resolve:b3e},y3e={tokenize:S3e,partial:!0};function b3e(e){return fW(e),e}function C3e(e,t){let n;return r;function r(l){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),i(l)}function i(l){return l===null?o(l):on(l)?e.check(y3e,a,o)(l):(e.consume(l),i)}function o(l){return e.exit("chunkContent"),e.exit("content"),t(l)}function a(l){return e.consume(l),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,i}}function S3e(e,t,n){const r=this;return i;function i(a){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),Dn(e,o,"linePrefix")}function o(a){if(a===null||on(a))return n(a);const l=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&l&&l[1].type==="linePrefix"&&l[2].sliceSerialize(l[1],!0).length>=4?t(a):e.interrupt(r.parser.constructs.flow,n,t)(a)}}function pW(e,t,n,r,i,o,a,l,c){const u=c||Number.POSITIVE_INFINITY;let p=0;return h;function h(S){return S===60?(e.enter(r),e.enter(i),e.enter(o),e.consume(S),e.exit(o),m):S===null||S===32||S===41||Dy(S)?n(S):(e.enter(r),e.enter(a),e.enter(l),e.enter("chunkString",{contentType:"string"}),E(S))}function m(S){return S===62?(e.enter(o),e.consume(S),e.exit(o),e.exit(i),e.exit(r),t):(e.enter(l),e.enter("chunkString",{contentType:"string"}),g(S))}function g(S){return S===62?(e.exit("chunkString"),e.exit(l),m(S)):S===null||S===60||on(S)?n(S):(e.consume(S),S===92?b:g)}function b(S){return S===60||S===62||S===92?(e.consume(S),g):g(S)}function E(S){return!p&&(S===null||S===41||sr(S))?(e.exit("chunkString"),e.exit(l),e.exit(a),e.exit(r),t(S)):p<u&&S===40?(e.consume(S),p++,E):S===41?(e.consume(S),p--,E):S===null||S===32||S===40||Dy(S)?n(S):(e.consume(S),S===92?x:E)}function x(S){return S===40||S===41||S===92?(e.consume(S),E):E(S)}}function hW(e,t,n,r,i,o){const a=this;let l=0,c;return u;function u(g){return e.enter(r),e.enter(i),e.consume(g),e.exit(i),e.enter(o),p}function p(g){return l>999||g===null||g===91||g===93&&!c||g===94&&!l&&"_hiddenFootnoteSupport"in a.parser.constructs?n(g):g===93?(e.exit(o),e.enter(i),e.consume(g),e.exit(i),e.exit(r),t):on(g)?(e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),p):(e.enter("chunkString",{contentType:"string"}),h(g))}function h(g){return g===null||g===91||g===93||on(g)||l++>999?(e.exit("chunkString"),p(g)):(e.consume(g),c||(c=!yn(g)),g===92?m:h)}function m(g){return g===91||g===92||g===93?(e.consume(g),l++,h):h(g)}}function mW(e,t,n,r,i,o){let a;return l;function l(m){return m===34||m===39||m===40?(e.enter(r),e.enter(i),e.consume(m),e.exit(i),a=m===40?41:m,c):n(m)}function c(m){return m===a?(e.enter(i),e.consume(m),e.exit(i),e.exit(r),t):(e.enter(o),u(m))}function u(m){return m===a?(e.exit(o),c(a)):m===null?n(m):on(m)?(e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),Dn(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),p(m))}function p(m){return m===a||m===null||on(m)?(e.exit("chunkString"),u(m)):(e.consume(m),m===92?h:p)}function h(m){return m===a||m===92?(e.consume(m),p):p(m)}}function vh(e,t){let n;return r;function r(i){return on(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):yn(i)?Dn(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}function il(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const E3e={name:"definition",tokenize:w3e},x3e={tokenize:_3e,partial:!0};function w3e(e,t,n){const r=this;let i;return o;function o(g){return e.enter("definition"),a(g)}function a(g){return hW.call(r,e,l,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(g)}function l(g){return i=il(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),g===58?(e.enter("definitionMarker"),e.consume(g),e.exit("definitionMarker"),c):n(g)}function c(g){return sr(g)?vh(e,u)(g):u(g)}function u(g){return pW(e,p,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(g)}function p(g){return e.attempt(x3e,h,h)(g)}function h(g){return yn(g)?Dn(e,m,"whitespace")(g):m(g)}function m(g){return g===null||on(g)?(e.exit("definition"),r.parser.defined.push(i),t(g)):n(g)}}function _3e(e,t,n){return r;function r(l){return sr(l)?vh(e,i)(l):n(l)}function i(l){return mW(e,o,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(l)}function o(l){return yn(l)?Dn(e,a,"whitespace")(l):a(l)}function a(l){return l===null||on(l)?t(l):n(l)}}const T3e={name:"hardBreakEscape",tokenize:O3e};function O3e(e,t,n){return r;function r(o){return e.enter("hardBreakEscape"),e.consume(o),i}function i(o){return on(o)?(e.exit("hardBreakEscape"),t(o)):n(o)}}const I3e={name:"headingAtx",tokenize:$3e,resolve:k3e};function k3e(e,t){let n=e.length-2,r=3,i,o;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},o={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},ta(e,r,n-r+1,[["enter",i,t],["enter",o,t],["exit",o,t],["exit",i,t]])),e}function $3e(e,t,n){let r=0;return i;function i(p){return e.enter("atxHeading"),o(p)}function o(p){return e.enter("atxHeadingSequence"),a(p)}function a(p){return p===35&&r++<6?(e.consume(p),a):p===null||sr(p)?(e.exit("atxHeadingSequence"),l(p)):n(p)}function l(p){return p===35?(e.enter("atxHeadingSequence"),c(p)):p===null||on(p)?(e.exit("atxHeading"),t(p)):yn(p)?Dn(e,l,"whitespace")(p):(e.enter("atxHeadingText"),u(p))}function c(p){return p===35?(e.consume(p),c):(e.exit("atxHeadingSequence"),l(p))}function u(p){return p===null||p===35||sr(p)?(e.exit("atxHeadingText"),l(p)):(e.consume(p),u)}}const N3e=["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"],eA=["pre","script","style","textarea"],A3e={name:"htmlFlow",tokenize:L3e,resolveTo:P3e,concrete:!0},R3e={tokenize:F3e,partial:!0},M3e={tokenize:D3e,partial:!0};function P3e(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 L3e(e,t,n){const r=this;let i,o,a,l,c;return u;function u(U){return p(U)}function p(U){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(U),h}function h(U){return U===33?(e.consume(U),m):U===47?(e.consume(U),o=!0,E):U===63?(e.consume(U),i=3,r.interrupt?t:A):oo(U)?(e.consume(U),a=String.fromCharCode(U),x):n(U)}function m(U){return U===45?(e.consume(U),i=2,g):U===91?(e.consume(U),i=5,l=0,b):oo(U)?(e.consume(U),i=4,r.interrupt?t:A):n(U)}function g(U){return U===45?(e.consume(U),r.interrupt?t:A):n(U)}function b(U){const Q="CDATA[";return U===Q.charCodeAt(l++)?(e.consume(U),l===Q.length?r.interrupt?t:D:b):n(U)}function E(U){return oo(U)?(e.consume(U),a=String.fromCharCode(U),x):n(U)}function x(U){if(U===null||U===47||U===62||sr(U)){const Q=U===47,ee=a.toLowerCase();return!Q&&!o&&eA.includes(ee)?(i=1,r.interrupt?t(U):D(U)):N3e.includes(a.toLowerCase())?(i=6,Q?(e.consume(U),S):r.interrupt?t(U):D(U)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(U):o?C(U):_(U))}return U===45||Gi(U)?(e.consume(U),a+=String.fromCharCode(U),x):n(U)}function S(U){return U===62?(e.consume(U),r.interrupt?t:D):n(U)}function C(U){return yn(U)?(e.consume(U),C):R(U)}function _(U){return U===47?(e.consume(U),R):U===58||U===95||oo(U)?(e.consume(U),O):yn(U)?(e.consume(U),_):R(U)}function O(U){return U===45||U===46||U===58||U===95||Gi(U)?(e.consume(U),O):k(U)}function k(U){return U===61?(e.consume(U),T):yn(U)?(e.consume(U),k):_(U)}function T(U){return U===null||U===60||U===61||U===62||U===96?n(U):U===34||U===39?(e.consume(U),c=U,I):yn(U)?(e.consume(U),T):$(U)}function I(U){return U===c?(e.consume(U),c=null,M):U===null||on(U)?n(U):(e.consume(U),I)}function $(U){return U===null||U===34||U===39||U===47||U===60||U===61||U===62||U===96||sr(U)?k(U):(e.consume(U),$)}function M(U){return U===47||U===62||yn(U)?_(U):n(U)}function R(U){return U===62?(e.consume(U),j):n(U)}function j(U){return U===null||on(U)?D(U):yn(U)?(e.consume(U),j):n(U)}function D(U){return U===45&&i===2?(e.consume(U),W):U===60&&i===1?(e.consume(U),z):U===62&&i===4?(e.consume(U),P):U===63&&i===3?(e.consume(U),A):U===93&&i===5?(e.consume(U),X):on(U)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(R3e,Y,L)(U)):U===null||on(U)?(e.exit("htmlFlowData"),L(U)):(e.consume(U),D)}function L(U){return e.check(M3e,B,Y)(U)}function B(U){return e.enter("lineEnding"),e.consume(U),e.exit("lineEnding"),H}function H(U){return U===null||on(U)?L(U):(e.enter("htmlFlowData"),D(U))}function W(U){return U===45?(e.consume(U),A):D(U)}function z(U){return U===47?(e.consume(U),a="",V):D(U)}function V(U){if(U===62){const Q=a.toLowerCase();return eA.includes(Q)?(e.consume(U),P):D(U)}return oo(U)&&a.length<8?(e.consume(U),a+=String.fromCharCode(U),V):D(U)}function X(U){return U===93?(e.consume(U),A):D(U)}function A(U){return U===62?(e.consume(U),P):U===45&&i===2?(e.consume(U),A):D(U)}function P(U){return U===null||on(U)?(e.exit("htmlFlowData"),Y(U)):(e.consume(U),P)}function Y(U){return e.exit("htmlFlow"),t(U)}}function D3e(e,t,n){const r=this;return i;function i(a){return on(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),o):n(a)}function o(a){return r.parser.lazy[r.now().line]?n(a):t(a)}}function F3e(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(Zm,t,n)}}const B3e={name:"htmlText",tokenize:j3e};function j3e(e,t,n){const r=this;let i,o,a;return l;function l(A){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(A),c}function c(A){return A===33?(e.consume(A),u):A===47?(e.consume(A),k):A===63?(e.consume(A),_):oo(A)?(e.consume(A),$):n(A)}function u(A){return A===45?(e.consume(A),p):A===91?(e.consume(A),o=0,b):oo(A)?(e.consume(A),C):n(A)}function p(A){return A===45?(e.consume(A),g):n(A)}function h(A){return A===null?n(A):A===45?(e.consume(A),m):on(A)?(a=h,z(A)):(e.consume(A),h)}function m(A){return A===45?(e.consume(A),g):h(A)}function g(A){return A===62?W(A):A===45?m(A):h(A)}function b(A){const P="CDATA[";return A===P.charCodeAt(o++)?(e.consume(A),o===P.length?E:b):n(A)}function E(A){return A===null?n(A):A===93?(e.consume(A),x):on(A)?(a=E,z(A)):(e.consume(A),E)}function x(A){return A===93?(e.consume(A),S):E(A)}function S(A){return A===62?W(A):A===93?(e.consume(A),S):E(A)}function C(A){return A===null||A===62?W(A):on(A)?(a=C,z(A)):(e.consume(A),C)}function _(A){return A===null?n(A):A===63?(e.consume(A),O):on(A)?(a=_,z(A)):(e.consume(A),_)}function O(A){return A===62?W(A):_(A)}function k(A){return oo(A)?(e.consume(A),T):n(A)}function T(A){return A===45||Gi(A)?(e.consume(A),T):I(A)}function I(A){return on(A)?(a=I,z(A)):yn(A)?(e.consume(A),I):W(A)}function $(A){return A===45||Gi(A)?(e.consume(A),$):A===47||A===62||sr(A)?M(A):n(A)}function M(A){return A===47?(e.consume(A),W):A===58||A===95||oo(A)?(e.consume(A),R):on(A)?(a=M,z(A)):yn(A)?(e.consume(A),M):W(A)}function R(A){return A===45||A===46||A===58||A===95||Gi(A)?(e.consume(A),R):j(A)}function j(A){return A===61?(e.consume(A),D):on(A)?(a=j,z(A)):yn(A)?(e.consume(A),j):M(A)}function D(A){return A===null||A===60||A===61||A===62||A===96?n(A):A===34||A===39?(e.consume(A),i=A,L):on(A)?(a=D,z(A)):yn(A)?(e.consume(A),D):(e.consume(A),B)}function L(A){return A===i?(e.consume(A),i=void 0,H):A===null?n(A):on(A)?(a=L,z(A)):(e.consume(A),L)}function B(A){return A===null||A===34||A===39||A===60||A===61||A===96?n(A):A===47||A===62||sr(A)?M(A):(e.consume(A),B)}function H(A){return A===47||A===62||sr(A)?M(A):n(A)}function W(A){return A===62?(e.consume(A),e.exit("htmlTextData"),e.exit("htmlText"),t):n(A)}function z(A){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(A),e.exit("lineEnding"),V}function V(A){return yn(A)?Dn(e,X,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(A):X(A)}function X(A){return e.enter("htmlTextData"),a(A)}}const Ew={name:"labelEnd",tokenize:V3e,resolveTo:K3e,resolveAll:U3e},H3e={tokenize:G3e},z3e={tokenize:q3e},W3e={tokenize:X3e};function U3e(e){let t=-1;for(;++t<e.length;){const n=e[t][1];(n.type==="labelImage"||n.type==="labelLink"||n.type==="labelEnd")&&(e.splice(t+1,n.type==="labelImage"?4:2),n.type="data",t++)}return e}function K3e(e,t){let n=e.length,r=0,i,o,a,l;for(;n--;)if(i=e[n][1],o){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[n][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(a){if(e[n][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(o=n,i.type!=="labelLink")){r=2;break}}else i.type==="labelEnd"&&(a=n);const c={type:e[o][1].type==="labelLink"?"link":"image",start:Object.assign({},e[o][1].start),end:Object.assign({},e[e.length-1][1].end)},u={type:"label",start:Object.assign({},e[o][1].start),end:Object.assign({},e[a][1].end)},p={type:"labelText",start:Object.assign({},e[o+r+2][1].end),end:Object.assign({},e[a-2][1].start)};return l=[["enter",c,t],["enter",u,t]],l=ya(l,e.slice(o+1,o+r+3)),l=ya(l,[["enter",p,t]]),l=ya(l,z2(t.parser.constructs.insideSpan.null,e.slice(o+r+4,a-3),t)),l=ya(l,[["exit",p,t],e[a-2],e[a-1],["exit",u,t]]),l=ya(l,e.slice(a+1)),l=ya(l,[["exit",c,t]]),ta(e,o,e.length,l),e}function V3e(e,t,n){const r=this;let i=r.events.length,o,a;for(;i--;)if((r.events[i][1].type==="labelImage"||r.events[i][1].type==="labelLink")&&!r.events[i][1]._balanced){o=r.events[i][1];break}return l;function l(m){return o?o._inactive?h(m):(a=r.parser.defined.includes(il(r.sliceSerialize({start:o.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(m),e.exit("labelMarker"),e.exit("labelEnd"),c):n(m)}function c(m){return m===40?e.attempt(H3e,p,a?p:h)(m):m===91?e.attempt(z3e,p,a?u:h)(m):a?p(m):h(m)}function u(m){return e.attempt(W3e,p,h)(m)}function p(m){return t(m)}function h(m){return o._balanced=!0,n(m)}}function G3e(e,t,n){return r;function r(h){return e.enter("resource"),e.enter("resourceMarker"),e.consume(h),e.exit("resourceMarker"),i}function i(h){return sr(h)?vh(e,o)(h):o(h)}function o(h){return h===41?p(h):pW(e,a,l,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(h)}function a(h){return sr(h)?vh(e,c)(h):p(h)}function l(h){return n(h)}function c(h){return h===34||h===39||h===40?mW(e,u,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(h):p(h)}function u(h){return sr(h)?vh(e,p)(h):p(h)}function p(h){return h===41?(e.enter("resourceMarker"),e.consume(h),e.exit("resourceMarker"),e.exit("resource"),t):n(h)}}function q3e(e,t,n){const r=this;return i;function i(l){return hW.call(r,e,o,a,"reference","referenceMarker","referenceString")(l)}function o(l){return r.parser.defined.includes(il(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(l):n(l)}function a(l){return n(l)}}function X3e(e,t,n){return r;function r(o){return e.enter("reference"),e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),i}function i(o){return o===93?(e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),e.exit("reference"),t):n(o)}}const Y3e={name:"labelStartImage",tokenize:Q3e,resolveAll:Ew.resolveAll};function Q3e(e,t,n){const r=this;return i;function i(l){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(l),e.exit("labelImageMarker"),o}function o(l){return l===91?(e.enter("labelMarker"),e.consume(l),e.exit("labelMarker"),e.exit("labelImage"),a):n(l)}function a(l){return l===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(l):t(l)}}const Z3e={name:"labelStartLink",tokenize:J3e,resolveAll:Ew.resolveAll};function J3e(e,t,n){const r=this;return i;function i(a){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(a),e.exit("labelMarker"),e.exit("labelLink"),o}function o(a){return a===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(a):t(a)}}const X9={name:"lineEnding",tokenize:e8e};function e8e(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),Dn(e,t,"linePrefix")}}const Ev={name:"thematicBreak",tokenize:t8e};function t8e(e,t,n){let r=0,i;return o;function o(u){return e.enter("thematicBreak"),a(u)}function a(u){return i=u,l(u)}function l(u){return u===i?(e.enter("thematicBreakSequence"),c(u)):r>=3&&(u===null||on(u))?(e.exit("thematicBreak"),t(u)):n(u)}function c(u){return u===i?(e.consume(u),r++,c):(e.exit("thematicBreakSequence"),yn(u)?Dn(e,l,"whitespace")(u):l(u))}}const xo={name:"list",tokenize:i8e,continuation:{tokenize:o8e},exit:l8e},n8e={tokenize:s8e,partial:!0},r8e={tokenize:a8e,partial:!0};function i8e(e,t,n){const r=this,i=r.events[r.events.length-1];let o=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,a=0;return l;function l(g){const b=r.containerState.type||(g===42||g===43||g===45?"listUnordered":"listOrdered");if(b==="listUnordered"?!r.containerState.marker||g===r.containerState.marker:QE(g)){if(r.containerState.type||(r.containerState.type=b,e.enter(b,{_container:!0})),b==="listUnordered")return e.enter("listItemPrefix"),g===42||g===45?e.check(Ev,n,u)(g):u(g);if(!r.interrupt||g===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),c(g)}return n(g)}function c(g){return QE(g)&&++a<10?(e.consume(g),c):(!r.interrupt||a<2)&&(r.containerState.marker?g===r.containerState.marker:g===41||g===46)?(e.exit("listItemValue"),u(g)):n(g)}function u(g){return e.enter("listItemMarker"),e.consume(g),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||g,e.check(Zm,r.interrupt?n:p,e.attempt(n8e,m,h))}function p(g){return r.containerState.initialBlankLine=!0,o++,m(g)}function h(g){return yn(g)?(e.enter("listItemPrefixWhitespace"),e.consume(g),e.exit("listItemPrefixWhitespace"),m):n(g)}function m(g){return r.containerState.size=o+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(g)}}function o8e(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(Zm,i,o);function i(l){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,Dn(e,t,"listItemIndent",r.containerState.size+1)(l)}function o(l){return r.containerState.furtherBlankLines||!yn(l)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,a(l)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(r8e,t,a)(l))}function a(l){return r.containerState._closeFlow=!0,r.interrupt=void 0,Dn(e,e.attempt(xo,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(l)}}function a8e(e,t,n){const r=this;return Dn(e,i,"listItemIndent",r.containerState.size+1);function i(o){const a=r.events[r.events.length-1];return a&&a[1].type==="listItemIndent"&&a[2].sliceSerialize(a[1],!0).length===r.containerState.size?t(o):n(o)}}function l8e(e){e.exit(this.containerState.type)}function s8e(e,t,n){const r=this;return Dn(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(o){const a=r.events[r.events.length-1];return!yn(o)&&a&&a[1].type==="listItemPrefixWhitespace"?t(o):n(o)}}const tA={name:"setextUnderline",tokenize:u8e,resolveTo:c8e};function c8e(e,t){let n=e.length,r,i,o;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),!o&&e[n][1].type==="definition"&&(o=n);const a={type:"setextHeading",start:Object.assign({},e[i][1].start),end:Object.assign({},e[e.length-1][1].end)};return e[i][1].type="setextHeadingText",o?(e.splice(i,0,["enter",a,t]),e.splice(o+1,0,["exit",e[r][1],t]),e[r][1].end=Object.assign({},e[o][1].end)):e[r][1]=a,e.push(["exit",a,t]),e}function u8e(e,t,n){const r=this;let i;return o;function o(u){let p=r.events.length,h;for(;p--;)if(r.events[p][1].type!=="lineEnding"&&r.events[p][1].type!=="linePrefix"&&r.events[p][1].type!=="content"){h=r.events[p][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||h)?(e.enter("setextHeadingLine"),i=u,a(u)):n(u)}function a(u){return e.enter("setextHeadingLineSequence"),l(u)}function l(u){return u===i?(e.consume(u),l):(e.exit("setextHeadingLineSequence"),yn(u)?Dn(e,c,"lineSuffix")(u):c(u))}function c(u){return u===null||on(u)?(e.exit("setextHeadingLine"),t(u)):n(u)}}const d8e={tokenize:f8e};function f8e(e){const t=this,n=e.attempt(Zm,r,e.attempt(this.parser.constructs.flowInitial,i,Dn(e,e.attempt(this.parser.constructs.flow,i,e.attempt(v3e,i)),"linePrefix")));return n;function r(o){if(o===null){e.consume(o);return}return e.enter("lineEndingBlank"),e.consume(o),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function i(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const p8e={resolveAll:vW()},h8e=gW("string"),m8e=gW("text");function gW(e){return{tokenize:t,resolveAll:vW(e==="text"?g8e:void 0)};function t(n){const r=this,i=this.parser.constructs[e],o=n.attempt(i,a,l);return a;function a(p){return u(p)?o(p):l(p)}function l(p){if(p===null){n.consume(p);return}return n.enter("data"),n.consume(p),c}function c(p){return u(p)?(n.exit("data"),o(p)):(n.consume(p),c)}function u(p){if(p===null)return!0;const h=i[p];let m=-1;if(h)for(;++m<h.length;){const g=h[m];if(!g.previous||g.previous.call(r,r.previous))return!0}return!1}}}function vW(e){return t;function t(n,r){let i=-1,o;for(;++i<=n.length;)o===void 0?n[i]&&n[i][1].type==="data"&&(o=i,i++):(!n[i]||n[i][1].type!=="data")&&(i!==o+2&&(n[o][1].end=n[i-1][1].end,n.splice(o+2,i-o-2),i=o+2),o=void 0);return e?e(n,r):n}}function g8e(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 o=i.length,a=-1,l=0,c;for(;o--;){const u=i[o];if(typeof u=="string"){for(a=u.length;u.charCodeAt(a-1)===32;)l++,a--;if(a)break;a=-1}else if(u===-2)c=!0,l++;else if(u!==-1){o++;break}}if(l){const u={type:n===e.length||c||l<2?"lineSuffix":"hardBreakTrailing",start:{line:r.end.line,column:r.end.column-l,offset:r.end.offset-l,_index:r.start._index+o,_bufferIndex:o?a:r.start._bufferIndex+a},end:Object.assign({},r.end)};r.end=Object.assign({},u.start),r.start.offset===r.end.offset?Object.assign(r,u):(e.splice(n,0,["enter",u,t],["exit",u,t]),n+=2)}n++}return e}function v8e(e,t,n){let r=Object.assign(n?Object.assign({},n):{line:1,column:1,offset:0},{_index:0,_bufferIndex:-1});const i={},o=[];let a=[],l=[];const c={consume:C,enter:_,exit:O,attempt:I(k),check:I(T),interrupt:I(T,{interrupt:!0})},u={previous:null,code:null,containerState:{},events:[],parser:e,sliceStream:g,sliceSerialize:m,now:b,defineSkip:E,write:h};let p=t.tokenize.call(u,c);return t.resolveAll&&o.push(t),u;function h(j){return a=ya(a,j),x(),a[a.length-1]!==null?[]:($(t,0),u.events=z2(o,u.events,u),u.events)}function m(j,D){return b8e(g(j),D)}function g(j){return y8e(a,j)}function b(){const{line:j,column:D,offset:L,_index:B,_bufferIndex:H}=r;return{line:j,column:D,offset:L,_index:B,_bufferIndex:H}}function E(j){i[j.line]=j.column,R()}function x(){let j;for(;r._index<a.length;){const D=a[r._index];if(typeof D=="string")for(j=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===j&&r._bufferIndex<D.length;)S(D.charCodeAt(r._bufferIndex));else S(D)}}function S(j){p=p(j)}function C(j){on(j)?(r.line++,r.column=1,r.offset+=j===-3?2:1,R()):j!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===a[r._index].length&&(r._bufferIndex=-1,r._index++)),u.previous=j}function _(j,D){const L=D||{};return L.type=j,L.start=b(),u.events.push(["enter",L,u]),l.push(L),L}function O(j){const D=l.pop();return D.end=b(),u.events.push(["exit",D,u]),D}function k(j,D){$(j,D.from)}function T(j,D){D.restore()}function I(j,D){return L;function L(B,H,W){let z,V,X,A;return Array.isArray(B)?Y(B):"tokenize"in B?Y([B]):P(B);function P(se){return ne;function ne(oe){const pe=oe!==null&&se[oe],be=oe!==null&&se.null,ue=[...Array.isArray(pe)?pe:pe?[pe]:[],...Array.isArray(be)?be:be?[be]:[]];return Y(ue)(oe)}}function Y(se){return z=se,V=0,se.length===0?W:U(se[V])}function U(se){return ne;function ne(oe){return A=M(),X=se,se.partial||(u.currentConstruct=se),se.name&&u.parser.constructs.disable.null.includes(se.name)?ee():se.tokenize.call(D?Object.assign(Object.create(u),D):u,c,Q,ee)(oe)}}function Q(se){return j(X,A),H}function ee(se){return A.restore(),++V<z.length?U(z[V]):W}}}function $(j,D){j.resolveAll&&!o.includes(j)&&o.push(j),j.resolve&&ta(u.events,D,u.events.length-D,j.resolve(u.events.slice(D),u)),j.resolveTo&&(u.events=j.resolveTo(u.events,u))}function M(){const j=b(),D=u.previous,L=u.currentConstruct,B=u.events.length,H=Array.from(l);return{restore:W,from:B};function W(){r=j,u.previous=D,u.currentConstruct=L,u.events.length=B,l=H,R()}}function R(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function y8e(e,t){const n=t.start._index,r=t.start._bufferIndex,i=t.end._index,o=t.end._bufferIndex;let a;if(n===i)a=[e[n].slice(r,o)];else{if(a=e.slice(n,i),r>-1){const l=a[0];typeof l=="string"?a[0]=l.slice(r):a.shift()}o>0&&a.push(e[i].slice(0,o))}return a}function b8e(e,t){let n=-1;const r=[];let i;for(;++n<e.length;){const o=e[n];let a;if(typeof o=="string")a=o;else switch(o){case-5:{a="\r";break}case-4:{a=`
`;break}case-3:{a=`\r
`;break}case-2:{a=t?" ":" ";break}case-1:{if(!t&&i)continue;a=" ";break}default:a=String.fromCharCode(o)}i=o===-2,r.push(a)}return r.join("")}const C8e={42:xo,43:xo,45:xo,48:xo,49:xo,50:xo,51:xo,52:xo,53:xo,54:xo,55:xo,56:xo,57:xo,62:cW},S8e={91:E3e},E8e={[-2]:q9,[-1]:q9,32:q9},x8e={35:I3e,42:Ev,45:[tA,Ev],60:A3e,61:tA,95:Ev,96:JN,126:JN},w8e={38:dW,92:uW},_8e={[-5]:X9,[-4]:X9,[-3]:X9,33:Y3e,38:dW,42:ZE,60:[Jxe,B3e],91:Z3e,92:[T3e,uW],93:Ew,95:ZE,96:f3e},T8e={null:[ZE,p8e]},O8e={null:[42,95]},I8e={null:[]},k8e=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:O8e,contentInitial:S8e,disable:I8e,document:C8e,flow:x8e,flowInitial:E8e,insideSpan:T8e,string:w8e,text:_8e},Symbol.toStringTag,{value:"Module"}));function $8e(e){const n=sW([k8e,...(e||{}).extensions||[]]),r={defined:[],lazy:{},constructs:n,content:i(Vxe),document:i(qxe),flow:i(d8e),string:i(h8e),text:i(m8e)};return r;function i(o){return a;function a(l){return v8e(r,o,l)}}}const nA=/[\0\t\n\r]/g;function N8e(){let e=1,t="",n=!0,r;return i;function i(o,a,l){const c=[];let u,p,h,m,g;for(o=t+o.toString(a),h=0,t="",n&&(o.charCodeAt(0)===65279&&h++,n=void 0);h<o.length;){if(nA.lastIndex=h,u=nA.exec(o),m=u&&u.index!==void 0?u.index:o.length,g=o.charCodeAt(m),!u){t=o.slice(h);break}if(g===10&&h===m&&r)c.push(-3),r=void 0;else switch(r&&(c.push(-5),r=void 0),h<m&&(c.push(o.slice(h,m)),e+=m-h),g){case 0:{c.push(65533),e++;break}case 9:{for(p=Math.ceil(e/4)*4,c.push(-2);e++<p;)c.push(-1);break}case 10:{c.push(-4),e=1;break}default:r=!0,e=1}h=m+1}return l&&(r&&c.push(-5),t&&c.push(t),c.push(null)),c}}function A8e(e){for(;!fW(e););return e}function yW(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?"<22>":String.fromCharCode(n)}const R8e=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function bW(e){return e.replace(R8e,M8e)}function M8e(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const i=n.charCodeAt(1),o=i===120||i===88;return yW(n.slice(o?2:1),o?16:10)}return Sw(n)||e}function yh(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?rA(e.position):"start"in e||"end"in e?rA(e):"line"in e||"column"in e?JE(e):""}function JE(e){return iA(e&&e.line)+":"+iA(e&&e.column)}function rA(e){return JE(e&&e.start)+"-"+JE(e&&e.end)}function iA(e){return e&&typeof e=="number"?e:1}const CW={}.hasOwnProperty,P8e=function(e,t,n){return typeof t!="string"&&(n=t,t=void 0),L8e(n)(A8e($8e(n).document().write(N8e()(e,t,!0))))};function L8e(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:l(Ie),autolinkProtocol:j,autolinkEmail:j,atxHeading:l(Ae),blockQuote:l(ue),characterEscape:j,characterReference:j,codeFenced:l(de),codeFencedFenceInfo:c,codeFencedFenceMeta:c,codeIndented:l(de,c),codeText:l(re,c),codeTextData:j,data:j,codeFlowValue:j,definition:l(me),definitionDestinationString:c,definitionLabelString:c,definitionTitleString:c,emphasis:l(ge),hardBreakEscape:l(De),hardBreakTrailing:l(De),htmlFlow:l(ze,c),htmlFlowData:j,htmlText:l(ze,c),htmlTextData:j,image:l(et),label:c,link:l(Ie),listItem:l(Ue),listItemValue:b,listOrdered:l(Te,g),listUnordered:l(Te),paragraph:l(Le),reference:ee,referenceString:c,resourceDestinationString:c,resourceTitleString:c,setextHeading:l(Ae),strong:l(je),thematicBreak:l(qe)},exit:{atxHeading:p(),atxHeadingSequence:I,autolink:p(),autolinkEmail:be,autolinkProtocol:pe,blockQuote:p(),characterEscapeValue:D,characterReferenceMarkerHexadecimal:ne,characterReferenceMarkerNumeric:ne,characterReferenceValue:oe,codeFenced:p(C),codeFencedFence:S,codeFencedFenceInfo:E,codeFencedFenceMeta:x,codeFlowValue:D,codeIndented:p(_),codeText:p(z),codeTextData:D,data:D,definition:p(),definitionDestinationString:T,definitionLabelString:O,definitionTitleString:k,emphasis:p(),hardBreakEscape:p(B),hardBreakTrailing:p(B),htmlFlow:p(H),htmlFlowData:D,htmlText:p(W),htmlTextData:D,image:p(X),label:P,labelText:A,lineEnding:L,link:p(V),listItem:p(),listOrdered:p(),listUnordered:p(),paragraph:p(),referenceString:se,resourceDestinationString:Y,resourceTitleString:U,resource:Q,setextHeading:p(R),setextHeadingLineSequence:M,setextHeadingText:$,strong:p(),thematicBreak:p()}};SW(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(Ce){let ke={type:"root",children:[]};const We={stack:[ke],tokenStack:[],config:t,enter:u,exit:h,buffer:c,resume:m,setData:o,getData:a},Pe=[];let Be=-1;for(;++Be<Ce.length;)if(Ce[Be][1].type==="listOrdered"||Ce[Be][1].type==="listUnordered")if(Ce[Be][0]==="enter")Pe.push(Be);else{const He=Pe.pop();Be=i(Ce,He,Be)}for(Be=-1;++Be<Ce.length;){const He=t[Ce[Be][0]];CW.call(He,Ce[Be][1].type)&&He[Ce[Be][1].type].call(Object.assign({sliceSerialize:Ce[Be][2].sliceSerialize},We),Ce[Be][1])}if(We.tokenStack.length>0){const He=We.tokenStack[We.tokenStack.length-1];(He[1]||oA).call(We,void 0,He[0])}for(ke.position={start:Hs(Ce.length>0?Ce[0][1].start:{line:1,column:1,offset:0}),end:Hs(Ce.length>0?Ce[Ce.length-2][1].end:{line:1,column:1,offset:0})},Be=-1;++Be<t.transforms.length;)ke=t.transforms[Be](ke)||ke;return ke}function i(Ce,ke,We){let Pe=ke-1,Be=-1,He=!1,Qe,ie,xe,Ne;for(;++Pe<=We;){const $e=Ce[Pe];if($e[1].type==="listUnordered"||$e[1].type==="listOrdered"||$e[1].type==="blockQuote"?($e[0]==="enter"?Be++:Be--,Ne=void 0):$e[1].type==="lineEndingBlank"?$e[0]==="enter"&&(Qe&&!Ne&&!Be&&!xe&&(xe=Pe),Ne=void 0):$e[1].type==="linePrefix"||$e[1].type==="listItemValue"||$e[1].type==="listItemMarker"||$e[1].type==="listItemPrefix"||$e[1].type==="listItemPrefixWhitespace"||(Ne=void 0),!Be&&$e[0]==="enter"&&$e[1].type==="listItemPrefix"||Be===-1&&$e[0]==="exit"&&($e[1].type==="listUnordered"||$e[1].type==="listOrdered")){if(Qe){let Ye=Pe;for(ie=void 0;Ye--;){const ht=Ce[Ye];if(ht[1].type==="lineEnding"||ht[1].type==="lineEndingBlank"){if(ht[0]==="exit")continue;ie&&(Ce[ie][1].type="lineEndingBlank",He=!0),ht[1].type="lineEnding",ie=Ye}else if(!(ht[1].type==="linePrefix"||ht[1].type==="blockQuotePrefix"||ht[1].type==="blockQuotePrefixWhitespace"||ht[1].type==="blockQuoteMarker"||ht[1].type==="listItemIndent"))break}xe&&(!ie||xe<ie)&&(Qe._spread=!0),Qe.end=Object.assign({},ie?Ce[ie][1].start:$e[1].end),Ce.splice(ie||Pe,0,["exit",Qe,$e[2]]),Pe++,We++}$e[1].type==="listItemPrefix"&&(Qe={type:"listItem",_spread:!1,start:Object.assign({},$e[1].start),end:void 0},Ce.splice(Pe,0,["enter",Qe,$e[2]]),Pe++,We++,xe=void 0,Ne=!0)}}return Ce[ke][1]._spread=He,We}function o(Ce,ke){n[Ce]=ke}function a(Ce){return n[Ce]}function l(Ce,ke){return We;function We(Pe){u.call(this,Ce(Pe),Pe),ke&&ke.call(this,Pe)}}function c(){this.stack.push({type:"fragment",children:[]})}function u(Ce,ke,We){return this.stack[this.stack.length-1].children.push(Ce),this.stack.push(Ce),this.tokenStack.push([ke,We]),Ce.position={start:Hs(ke.start)},Ce}function p(Ce){return ke;function ke(We){Ce&&Ce.call(this,We),h.call(this,We)}}function h(Ce,ke){const We=this.stack.pop(),Pe=this.tokenStack.pop();if(Pe)Pe[0].type!==Ce.type&&(ke?ke.call(this,Ce,Pe[0]):(Pe[1]||oA).call(this,Ce,Pe[0]));else throw new Error("Cannot close `"+Ce.type+"` ("+yh({start:Ce.start,end:Ce.end})+"): its not open");return We.position.end=Hs(Ce.end),We}function m(){return Fxe(this.stack.pop())}function g(){o("expectingFirstListItemValue",!0)}function b(Ce){if(a("expectingFirstListItemValue")){const ke=this.stack[this.stack.length-2];ke.start=Number.parseInt(this.sliceSerialize(Ce),10),o("expectingFirstListItemValue")}}function E(){const Ce=this.resume(),ke=this.stack[this.stack.length-1];ke.lang=Ce}function x(){const Ce=this.resume(),ke=this.stack[this.stack.length-1];ke.meta=Ce}function S(){a("flowCodeInside")||(this.buffer(),o("flowCodeInside",!0))}function C(){const Ce=this.resume(),ke=this.stack[this.stack.length-1];ke.value=Ce.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),o("flowCodeInside")}function _(){const Ce=this.resume(),ke=this.stack[this.stack.length-1];ke.value=Ce.replace(/(\r?\n|\r)$/g,"")}function O(Ce){const ke=this.resume(),We=this.stack[this.stack.length-1];We.label=ke,We.identifier=il(this.sliceSerialize(Ce)).toLowerCase()}function k(){const Ce=this.resume(),ke=this.stack[this.stack.length-1];ke.title=Ce}function T(){const Ce=this.resume(),ke=this.stack[this.stack.length-1];ke.url=Ce}function I(Ce){const ke=this.stack[this.stack.length-1];if(!ke.depth){const We=this.sliceSerialize(Ce).length;ke.depth=We}}function $(){o("setextHeadingSlurpLineEnding",!0)}function M(Ce){const ke=this.stack[this.stack.length-1];ke.depth=this.sliceSerialize(Ce).charCodeAt(0)===61?1:2}function R(){o("setextHeadingSlurpLineEnding")}function j(Ce){const ke=this.stack[this.stack.length-1];let We=ke.children[ke.children.length-1];(!We||We.type!=="text")&&(We=Ge(),We.position={start:Hs(Ce.start)},ke.children.push(We)),this.stack.push(We)}function D(Ce){const ke=this.stack.pop();ke.value+=this.sliceSerialize(Ce),ke.position.end=Hs(Ce.end)}function L(Ce){const ke=this.stack[this.stack.length-1];if(a("atHardBreak")){const We=ke.children[ke.children.length-1];We.position.end=Hs(Ce.end),o("atHardBreak");return}!a("setextHeadingSlurpLineEnding")&&t.canContainEols.includes(ke.type)&&(j.call(this,Ce),D.call(this,Ce))}function B(){o("atHardBreak",!0)}function H(){const Ce=this.resume(),ke=this.stack[this.stack.length-1];ke.value=Ce}function W(){const Ce=this.resume(),ke=this.stack[this.stack.length-1];ke.value=Ce}function z(){const Ce=this.resume(),ke=this.stack[this.stack.length-1];ke.value=Ce}function V(){const Ce=this.stack[this.stack.length-1];if(a("inReference")){const ke=a("referenceType")||"shortcut";Ce.type+="Reference",Ce.referenceType=ke,delete Ce.url,delete Ce.title}else delete Ce.identifier,delete Ce.label;o("referenceType")}function X(){const Ce=this.stack[this.stack.length-1];if(a("inReference")){const ke=a("referenceType")||"shortcut";Ce.type+="Reference",Ce.referenceType=ke,delete Ce.url,delete Ce.title}else delete Ce.identifier,delete Ce.label;o("referenceType")}function A(Ce){const ke=this.sliceSerialize(Ce),We=this.stack[this.stack.length-2];We.label=bW(ke),We.identifier=il(ke).toLowerCase()}function P(){const Ce=this.stack[this.stack.length-1],ke=this.resume(),We=this.stack[this.stack.length-1];if(o("inReference",!0),We.type==="link"){const Pe=Ce.children;We.children=Pe}else We.alt=ke}function Y(){const Ce=this.resume(),ke=this.stack[this.stack.length-1];ke.url=Ce}function U(){const Ce=this.resume(),ke=this.stack[this.stack.length-1];ke.title=Ce}function Q(){o("inReference")}function ee(){o("referenceType","collapsed")}function se(Ce){const ke=this.resume(),We=this.stack[this.stack.length-1];We.label=ke,We.identifier=il(this.sliceSerialize(Ce)).toLowerCase(),o("referenceType","full")}function ne(Ce){o("characterReferenceType",Ce.type)}function oe(Ce){const ke=this.sliceSerialize(Ce),We=a("characterReferenceType");let Pe;We?(Pe=yW(ke,We==="characterReferenceMarkerNumeric"?10:16),o("characterReferenceType")):Pe=Sw(ke);const Be=this.stack.pop();Be.value+=Pe,Be.position.end=Hs(Ce.end)}function pe(Ce){D.call(this,Ce);const ke=this.stack[this.stack.length-1];ke.url=this.sliceSerialize(Ce)}function be(Ce){D.call(this,Ce);const ke=this.stack[this.stack.length-1];ke.url="mailto:"+this.sliceSerialize(Ce)}function ue(){return{type:"blockquote",children:[]}}function de(){return{type:"code",lang:null,meta:null,value:""}}function re(){return{type:"inlineCode",value:""}}function me(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function ge(){return{type:"emphasis",children:[]}}function Ae(){return{type:"heading",depth:void 0,children:[]}}function De(){return{type:"break"}}function ze(){return{type:"html",value:""}}function et(){return{type:"image",title:null,url:"",alt:null}}function Ie(){return{type:"link",title:null,url:"",children:[]}}function Te(Ce){return{type:"list",ordered:Ce.type==="listOrdered",start:null,spread:Ce._spread,children:[]}}function Ue(Ce){return{type:"listItem",spread:Ce._spread,checked:null,children:[]}}function Le(){return{type:"paragraph",children:[]}}function je(){return{type:"strong",children:[]}}function Ge(){return{type:"text",value:""}}function qe(){return{type:"thematicBreak"}}}function Hs(e){return{line:e.line,column:e.column,offset:e.offset}}function SW(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?SW(e,r):D8e(e,r)}}function D8e(e,t){let n;for(n in t)if(CW.call(t,n)){if(n==="canContainEols"){const r=t[n];r&&e[n].push(...r)}else if(n==="transforms"){const r=t[n];r&&e[n].push(...r)}else if(n==="enter"||n==="exit"){const r=t[n];r&&Object.assign(e[n],r)}}}function oA(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+yh({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+yh({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+yh({start:t.start,end:t.end})+") is still open")}function F8e(e){Object.assign(this,{Parser:n=>{const r=this.data("settings");return P8e(n,Object.assign({},r,e,{extensions:this.data("micromarkExtensions")||[],mdastExtensions:this.data("fromMarkdownExtensions")||[]}))}})}function B8e(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 j8e(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
`}]}function H8e(e,t){const n=t.value?t.value+`
`:"",r=t.lang?t.lang.match(/^[^ \t]+(?=[ \t]|$)/):null,i={};r&&(i.className=["language-"+r]);let o={type:"element",tagName:"code",properties:i,children:[{type:"text",value:n}]};return t.meta&&(o.data={meta:t.meta}),e.patch(t,o),o=e.applyData(t,o),o={type:"element",tagName:"pre",properties:{},children:[o]},e.patch(t,o),o}function z8e(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function W8e(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function _1(e){const t=[];let n=-1,r=0,i=0;for(;++n<e.length;){const o=e.charCodeAt(n);let a="";if(o===37&&Gi(e.charCodeAt(n+1))&&Gi(e.charCodeAt(n+2)))i=2;else if(o<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(o))||(a=String.fromCharCode(o));else if(o>55295&&o<57344){const l=e.charCodeAt(n+1);o<56320&&l>56319&&l<57344?(a=String.fromCharCode(o,l),i=1):a="<22>"}else a=String.fromCharCode(o);a&&(t.push(e.slice(r,n),encodeURIComponent(a)),r=n+i+1,a=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function EW(e,t){const n=String(t.identifier).toUpperCase(),r=_1(n.toLowerCase()),i=e.footnoteOrder.indexOf(n);let o;i===-1?(e.footnoteOrder.push(n),e.footnoteCounts[n]=1,o=e.footnoteOrder.length):(e.footnoteCounts[n]++,o=i+1);const a=e.footnoteCounts[n],l={type:"element",tagName:"a",properties:{href:"#"+e.clobberPrefix+"fn-"+r,id:e.clobberPrefix+"fnref-"+r+(a>1?"-"+a:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(o)}]};e.patch(t,l);const c={type:"element",tagName:"sup",properties:{},children:[l]};return e.patch(t,c),e.applyData(t,c)}function U8e(e,t){const n=e.footnoteById;let r=1;for(;r in n;)r++;const i=String(r);return n[i]={type:"footnoteDefinition",identifier:i,children:[{type:"paragraph",children:t.children}],position:t.position},EW(e,{type:"footnoteReference",identifier:i,position:t.position})}function K8e(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 V8e(e,t){if(e.dangerous){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}return null}function xW(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),o=i[0];o&&o.type==="text"?o.value="["+o.value:i.unshift({type:"text",value:"["});const a=i[i.length-1];return a&&a.type==="text"?a.value+=r:i.push({type:"text",value:r}),i}function G8e(e,t){const n=e.definition(t.identifier);if(!n)return xW(e,t);const r={src:_1(n.url||""),alt:t.alt};n.title!==null&&n.title!==void 0&&(r.title=n.title);const i={type:"element",tagName:"img",properties:r,children:[]};return e.patch(t,i),e.applyData(t,i)}function q8e(e,t){const n={src:_1(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 X8e(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 Y8e(e,t){const n=e.definition(t.identifier);if(!n)return xW(e,t);const r={href:_1(n.url||"")};n.title!==null&&n.title!==void 0&&(r.title=n.title);const i={type:"element",tagName:"a",properties:r,children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function Q8e(e,t){const n={href:_1(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 Z8e(e,t,n){const r=e.all(t),i=n?J8e(n):wW(t),o={},a=[];if(typeof t.checked=="boolean"){const p=r[0];let h;p&&p.type==="element"&&p.tagName==="p"?h=p:(h={type:"element",tagName:"p",properties:{},children:[]},r.unshift(h)),h.children.length>0&&h.children.unshift({type:"text",value:" "}),h.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}let l=-1;for(;++l<r.length;){const p=r[l];(i||l!==0||p.type!=="element"||p.tagName!=="p")&&a.push({type:"text",value:`
`}),p.type==="element"&&p.tagName==="p"&&!i?a.push(...p.children):a.push(p)}const c=r[r.length-1];c&&(i||c.type!=="element"||c.tagName!=="p")&&a.push({type:"text",value:`
`});const u={type:"element",tagName:"li",properties:o,children:a};return e.patch(t,u),e.applyData(t,u)}function J8e(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=wW(n[r])}return t}function wW(e){const t=e.spread;return t??e.children.length>1}function ewe(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 a=r[i];if(a.type==="element"&&a.tagName==="li"&&a.properties&&Array.isArray(a.properties.className)&&a.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const o={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,o),e.applyData(t,o)}function twe(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function nwe(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function rwe(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function iwe(e,t){const n=e.all(t),r=n.shift(),i=[];if(r){const a={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],a),i.push(a)}if(n.length>0){const a={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},l=Xm(t.children[1]),c=B2(t.children[t.children.length-1]);l.line&&c.line&&(a.position={start:l,end:c}),i.push(a)}const o={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,o),e.applyData(t,o)}function owe(e,t,n){const r=n?n.children:void 0,o=(r?r.indexOf(t):1)===0?"th":"td",a=n&&n.type==="table"?n.align:void 0,l=a?a.length:t.children.length;let c=-1;const u=[];for(;++c<l;){const h=t.children[c],m={},g=a?a[c]:void 0;g&&(m.align=g);let b={type:"element",tagName:o,properties:m,children:[]};h&&(b.children=e.all(h),e.patch(h,b),b=e.applyData(t,b)),u.push(b)}const p={type:"element",tagName:"tr",properties:{},children:e.wrap(u,!0)};return e.patch(t,p),e.applyData(t,p)}function awe(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const aA=9,lA=32;function lwe(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),i=0;const o=[];for(;r;)o.push(sA(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return o.push(sA(t.slice(i),i>0,!1)),o.join("")}function sA(e,t,n){let r=0,i=e.length;if(t){let o=e.codePointAt(r);for(;o===aA||o===lA;)r++,o=e.codePointAt(r)}if(n){let o=e.codePointAt(i-1);for(;o===aA||o===lA;)i--,o=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function swe(e,t){const n={type:"text",value:lwe(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function cwe(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const uwe={blockquote:B8e,break:j8e,code:H8e,delete:z8e,emphasis:W8e,footnoteReference:EW,footnote:U8e,heading:K8e,html:V8e,imageReference:G8e,image:q8e,inlineCode:X8e,linkReference:Y8e,link:Q8e,listItem:Z8e,list:ewe,paragraph:twe,root:nwe,strong:rwe,table:iwe,tableCell:awe,tableRow:owe,text:swe,thematicBreak:cwe,toml:Mg,yaml:Mg,definition:Mg,footnoteDefinition:Mg};function Mg(){return null}function dwe(e){return!e||!e.position||!e.position.start||!e.position.start.line||!e.position.start.column||!e.position.end||!e.position.end.line||!e.position.end.column}const cA={}.hasOwnProperty;function fwe(e){const t=Object.create(null);if(!e||!e.type)throw new Error("mdast-util-definitions expected node");return Km(e,"definition",r=>{const i=uA(r.identifier);i&&!cA.call(t,i)&&(t[i]=r)}),n;function n(r){const i=uA(r);return i&&cA.call(t,i)?t[i]:null}}function uA(e){return String(e||"").toUpperCase()}const By={}.hasOwnProperty;function pwe(e,t){const n=t||{},r=n.allowDangerousHtml||!1,i={};return a.dangerous=r,a.clobberPrefix=n.clobberPrefix===void 0||n.clobberPrefix===null?"user-content-":n.clobberPrefix,a.footnoteLabel=n.footnoteLabel||"Footnotes",a.footnoteLabelTagName=n.footnoteLabelTagName||"h2",a.footnoteLabelProperties=n.footnoteLabelProperties||{className:["sr-only"]},a.footnoteBackLabel=n.footnoteBackLabel||"Back to content",a.unknownHandler=n.unknownHandler,a.passThrough=n.passThrough,a.handlers={...uwe,...n.handlers},a.definition=fwe(e),a.footnoteById=i,a.footnoteOrder=[],a.footnoteCounts={},a.patch=hwe,a.applyData=mwe,a.one=l,a.all=c,a.wrap=vwe,a.augment=o,Km(e,"footnoteDefinition",u=>{const p=String(u.identifier).toUpperCase();By.call(i,p)||(i[p]=u)}),a;function o(u,p){if(u&&"data"in u&&u.data){const h=u.data;h.hName&&(p.type!=="element"&&(p={type:"element",tagName:"",properties:{},children:[]}),p.tagName=h.hName),p.type==="element"&&h.hProperties&&(p.properties={...p.properties,...h.hProperties}),"children"in p&&p.children&&h.hChildren&&(p.children=h.hChildren)}if(u){const h="type"in u?u:{position:u};dwe(h)||(p.position={start:Xm(h),end:B2(h)})}return p}function a(u,p,h,m){return Array.isArray(h)&&(m=h,h={}),o(u,{type:"element",tagName:p,properties:h||{},children:m||[]})}function l(u,p){return _W(a,u,p)}function c(u){return xw(a,u)}}function hwe(e,t){e.position&&(t.position=VSe(e))}function mwe(e,t){let n=t;if(e&&e.data){const r=e.data.hName,i=e.data.hChildren,o=e.data.hProperties;typeof r=="string"&&(n.type==="element"?n.tagName=r:n={type:"element",tagName:r,properties:{},children:[]}),n.type==="element"&&o&&(n.properties={...n.properties,...o}),"children"in n&&n.children&&i!==null&&i!==void 0&&(n.children=i)}return n}function _W(e,t,n){const r=t&&t.type;if(!r)throw new Error("Expected node, got `"+t+"`");return By.call(e.handlers,r)?e.handlers[r](e,t,n):e.passThrough&&e.passThrough.includes(r)?"children"in t?{...t,children:xw(e,t)}:t:e.unknownHandler?e.unknownHandler(e,t,n):gwe(e,t)}function xw(e,t){const n=[];if("children"in t){const r=t.children;let i=-1;for(;++i<r.length;){const o=_W(e,r[i],t);if(o){if(i&&r[i-1].type==="break"&&(!Array.isArray(o)&&o.type==="text"&&(o.value=o.value.replace(/^\s+/,"")),!Array.isArray(o)&&o.type==="element")){const a=o.children[0];a&&a.type==="text"&&(a.value=a.value.replace(/^\s+/,""))}Array.isArray(o)?n.push(...o):n.push(o)}}}return n}function gwe(e,t){const n=t.data||{},r="value"in t&&!(By.call(n,"hProperties")||By.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:xw(e,t)};return e.patch(t,r),e.applyData(t,r)}function vwe(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:`
`});++r<e.length;)r&&n.push({type:"text",value:`
`}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:`
`}),n}function ywe(e){const t=[];let n=-1;for(;++n<e.footnoteOrder.length;){const r=e.footnoteById[e.footnoteOrder[n]];if(!r)continue;const i=e.all(r),o=String(r.identifier).toUpperCase(),a=_1(o.toLowerCase());let l=0;const c=[];for(;++l<=e.footnoteCounts[o];){const h={type:"element",tagName:"a",properties:{href:"#"+e.clobberPrefix+"fnref-"+a+(l>1?"-"+l:""),dataFootnoteBackref:!0,className:["data-footnote-backref"],ariaLabel:e.footnoteBackLabel},children:[{type:"text",value:"↩"}]};l>1&&h.children.push({type:"element",tagName:"sup",children:[{type:"text",value:String(l)}]}),c.length>0&&c.push({type:"text",value:" "}),c.push(h)}const u=i[i.length-1];if(u&&u.type==="element"&&u.tagName==="p"){const h=u.children[u.children.length-1];h&&h.type==="text"?h.value+=" ":u.children.push({type:"text",value:" "}),u.children.push(...c)}else i.push(...c);const p={type:"element",tagName:"li",properties:{id:e.clobberPrefix+"fn-"+a},children:e.wrap(i,!0)};e.patch(r,p),t.push(p)}if(t.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:e.footnoteLabelTagName,properties:{...JSON.parse(JSON.stringify(e.footnoteLabelProperties)),id:"footnote-label"},children:[{type:"text",value:e.footnoteLabel}]},{type:"text",value:`
`},{type:"element",tagName:"ol",properties:{},children:e.wrap(t,!0)},{type:"text",value:`
`}]}}function TW(e,t){const n=pwe(e,t),r=n.one(e,null),i=ywe(n);return i&&r.children.push({type:"text",value:`
`},i),Array.isArray(r)?{type:"root",children:r}:r}const bwe=function(e,t){return e&&"run"in e?Cwe(e,t):Swe(e||t)};function Cwe(e,t){return(n,r,i)=>{e.run(TW(n,t),r,o=>{i(o)})}}function Swe(e){return t=>TW(t,e)}function dA(e){if(e)throw e}/*!
* Determine if an object is a Buffer
*
* @author Feross Aboukhadijeh <https://feross.org>
* @license MIT
*/var Ewe=function(t){return t!=null&&t.constructor!=null&&typeof t.constructor.isBuffer=="function"&&t.constructor.isBuffer(t)};const OW=dl(Ewe);var xv=Object.prototype.hasOwnProperty,IW=Object.prototype.toString,fA=Object.defineProperty,pA=Object.getOwnPropertyDescriptor,hA=function(t){return typeof Array.isArray=="function"?Array.isArray(t):IW.call(t)==="[object Array]"},mA=function(t){if(!t||IW.call(t)!=="[object Object]")return!1;var n=xv.call(t,"constructor"),r=t.constructor&&t.constructor.prototype&&xv.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!n&&!r)return!1;var i;for(i in t);return typeof i>"u"||xv.call(t,i)},gA=function(t,n){fA&&n.name==="__proto__"?fA(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},vA=function(t,n){if(n==="__proto__")if(xv.call(t,n)){if(pA)return pA(t,n).value}else return;return t[n]},xwe=function e(){var t,n,r,i,o,a,l=arguments[0],c=1,u=arguments.length,p=!1;for(typeof l=="boolean"&&(p=l,l=arguments[1]||{},c=2),(l==null||typeof l!="object"&&typeof l!="function")&&(l={});c<u;++c)if(t=arguments[c],t!=null)for(n in t)r=vA(l,n),i=vA(t,n),l!==i&&(p&&i&&(mA(i)||(o=hA(i)))?(o?(o=!1,a=r&&hA(r)?r:[]):a=r&&mA(r)?r:{},gA(l,{name:n,newValue:e(p,a,i)})):typeof i<"u"&&gA(l,{name:n,newValue:i}));return l};const yA=dl(xwe);function ex(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 wwe(){const e=[],t={run:n,use:r};return t;function n(...i){let o=-1;const a=i.pop();if(typeof a!="function")throw new TypeError("Expected function as last argument, not "+a);l(null,...i);function l(c,...u){const p=e[++o];let h=-1;if(c){a(c);return}for(;++h<i.length;)(u[h]===null||u[h]===void 0)&&(u[h]=i[h]);i=u,p?_we(p,l)(...u):a(null,...u)}}function r(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return e.push(i),t}}function _we(e,t){let n;return r;function r(...a){const l=e.length>a.length;let c;l&&a.push(i);try{c=e.apply(this,a)}catch(u){const p=u;if(l&&n)throw p;return i(p)}l||(c&&c.then&&typeof c.then=="function"?c.then(o,i):c instanceof Error?i(c):o(c))}function i(a,...l){n||(n=!0,t(a,...l))}function o(a){i(null,a)}}class Da extends Error{constructor(t,n,r){const i=[null,null];let o={start:{line:null,column:null},end:{line:null,column:null}};if(super(),typeof n=="string"&&(r=n,n=void 0),typeof r=="string"){const a=r.indexOf(":");a===-1?i[1]=r:(i[0]=r.slice(0,a),i[1]=r.slice(a+1))}n&&("type"in n||"position"in n?n.position&&(o=n.position):"start"in n||"end"in n?o=n:("line"in n||"column"in n)&&(o.start=n)),this.name=yh(n)||"1:1",this.message=typeof t=="object"?t.message:t,this.stack="",typeof t=="object"&&t.stack&&(this.stack=t.stack),this.reason=this.message,this.fatal,this.line=o.start.line,this.column=o.start.column,this.position=o,this.source=i[0],this.ruleId=i[1],this.file,this.actual,this.expected,this.url,this.note}}Da.prototype.file="";Da.prototype.name="";Da.prototype.reason="";Da.prototype.message="";Da.prototype.stack="";Da.prototype.fatal=null;Da.prototype.column=null;Da.prototype.line=null;Da.prototype.source=null;Da.prototype.ruleId=null;Da.prototype.position=null;const El={basename:Twe,dirname:Owe,extname:Iwe,join:kwe,sep:"/"};function Twe(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');Jm(e);let n=0,r=-1,i=e.length,o;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.charCodeAt(i)===47){if(o){n=i+1;break}}else r<0&&(o=!0,r=i+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let a=-1,l=t.length-1;for(;i--;)if(e.charCodeAt(i)===47){if(o){n=i+1;break}}else a<0&&(o=!0,a=i+1),l>-1&&(e.charCodeAt(i)===t.charCodeAt(l--)?l<0&&(r=i):(l=-1,r=a));return n===r?r=a:r<0&&(r=e.length),e.slice(n,r)}function Owe(e){if(Jm(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.charCodeAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.charCodeAt(0)===47?"/":".":t===1&&e.charCodeAt(0)===47?"//":e.slice(0,t)}function Iwe(e){Jm(e);let t=e.length,n=-1,r=0,i=-1,o=0,a;for(;t--;){const l=e.charCodeAt(t);if(l===47){if(a){r=t+1;break}continue}n<0&&(a=!0,n=t+1),l===46?i<0?i=t:o!==1&&(o=1):i>-1&&(o=-1)}return i<0||n<0||o===0||o===1&&i===n-1&&i===r+1?"":e.slice(i,n)}function kwe(...e){let t=-1,n;for(;++t<e.length;)Jm(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":$we(n)}function $we(e){Jm(e);const t=e.charCodeAt(0)===47;let n=Nwe(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.charCodeAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function Nwe(e,t){let n="",r=0,i=-1,o=0,a=-1,l,c;for(;++a<=e.length;){if(a<e.length)l=e.charCodeAt(a);else{if(l===47)break;l=47}if(l===47){if(!(i===a-1||o===1))if(i!==a-1&&o===2){if(n.length<2||r!==2||n.charCodeAt(n.length-1)!==46||n.charCodeAt(n.length-2)!==46){if(n.length>2){if(c=n.lastIndexOf("/"),c!==n.length-1){c<0?(n="",r=0):(n=n.slice(0,c),r=n.length-1-n.lastIndexOf("/")),i=a,o=0;continue}}else if(n.length>0){n="",r=0,i=a,o=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(i+1,a):n=e.slice(i+1,a),r=a-i-1;i=a,o=0}else l===46&&o>-1?o++:o=-1}return n}function Jm(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const Awe={cwd:Rwe};function Rwe(){return"/"}function tx(e){return e!==null&&typeof e=="object"&&e.href&&e.origin}function Mwe(e){if(typeof e=="string")e=new URL(e);else if(!tx(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 Pwe(e)}function Pwe(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.charCodeAt(n)===37&&t.charCodeAt(n+1)===50){const r=t.charCodeAt(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 Y9=["history","path","basename","stem","extname","dirname"];class Lwe{constructor(t){let n;t?typeof t=="string"||Dwe(t)?n={value:t}:tx(t)?n={path:t}:n=t:n={},this.data={},this.messages=[],this.history=[],this.cwd=Awe.cwd(),this.value,this.stored,this.result,this.map;let r=-1;for(;++r<Y9.length;){const o=Y9[r];o in n&&n[o]!==void 0&&n[o]!==null&&(this[o]=o==="history"?[...n[o]]:n[o])}let i;for(i in n)Y9.includes(i)||(this[i]=n[i])}get path(){return this.history[this.history.length-1]}set path(t){tx(t)&&(t=Mwe(t)),Z9(t,"path"),this.path!==t&&this.history.push(t)}get dirname(){return typeof this.path=="string"?El.dirname(this.path):void 0}set dirname(t){bA(this.basename,"dirname"),this.path=El.join(t||"",this.basename)}get basename(){return typeof this.path=="string"?El.basename(this.path):void 0}set basename(t){Z9(t,"basename"),Q9(t,"basename"),this.path=El.join(this.dirname||"",t)}get extname(){return typeof this.path=="string"?El.extname(this.path):void 0}set extname(t){if(Q9(t,"extname"),bA(this.dirname,"extname"),t){if(t.charCodeAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=El.join(this.dirname,this.stem+(t||""))}get stem(){return typeof this.path=="string"?El.basename(this.path,this.extname):void 0}set stem(t){Z9(t,"stem"),Q9(t,"stem"),this.path=El.join(this.dirname||"",t+(this.extname||""))}toString(t){return(this.value||"").toString(t||void 0)}message(t,n,r){const i=new Da(t,n,r);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}info(t,n,r){const i=this.message(t,n,r);return i.fatal=null,i}fail(t,n,r){const i=this.message(t,n,r);throw i.fatal=!0,i}}function Q9(e,t){if(e&&e.includes(El.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+El.sep+"`")}function Z9(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function bA(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function Dwe(e){return OW(e)}const Fwe=$W().freeze(),kW={}.hasOwnProperty;function $W(){const e=wwe(),t=[];let n={},r,i=-1;return o.data=a,o.Parser=void 0,o.Compiler=void 0,o.freeze=l,o.attachers=t,o.use=c,o.parse=u,o.stringify=p,o.run=h,o.runSync=m,o.process=g,o.processSync=b,o;function o(){const E=$W();let x=-1;for(;++x<t.length;)E.use(...t[x]);return E.data(yA(!0,{},n)),E}function a(E,x){return typeof E=="string"?arguments.length===2?(tC("data",r),n[E]=x,o):kW.call(n,E)&&n[E]||null:E?(tC("data",r),n=E,o):n}function l(){if(r)return o;for(;++i<t.length;){const[E,...x]=t[i];if(x[0]===!1)continue;x[0]===!0&&(x[0]=void 0);const S=E.call(o,...x);typeof S=="function"&&e.use(S)}return r=!0,i=Number.POSITIVE_INFINITY,o}function c(E,...x){let S;if(tC("use",r),E!=null)if(typeof E=="function")k(E,...x);else if(typeof E=="object")Array.isArray(E)?O(E):_(E);else throw new TypeError("Expected usable value, not `"+E+"`");return S&&(n.settings=Object.assign(n.settings||{},S)),o;function C(T){if(typeof T=="function")k(T);else if(typeof T=="object")if(Array.isArray(T)){const[I,...$]=T;k(I,...$)}else _(T);else throw new TypeError("Expected usable value, not `"+T+"`")}function _(T){O(T.plugins),T.settings&&(S=Object.assign(S||{},T.settings))}function O(T){let I=-1;if(T!=null)if(Array.isArray(T))for(;++I<T.length;){const $=T[I];C($)}else throw new TypeError("Expected a list of plugins, not `"+T+"`")}function k(T,I){let $=-1,M;for(;++$<t.length;)if(t[$][0]===T){M=t[$];break}M?(ex(M[1])&&ex(I)&&(I=yA(!0,M[1],I)),M[1]=I):t.push([...arguments])}}function u(E){o.freeze();const x=kp(E),S=o.Parser;return J9("parse",S),CA(S,"parse")?new S(String(x),x).parse():S(String(x),x)}function p(E,x){o.freeze();const S=kp(x),C=o.Compiler;return eC("stringify",C),SA(E),CA(C,"compile")?new C(E,S).compile():C(E,S)}function h(E,x,S){if(SA(E),o.freeze(),!S&&typeof x=="function"&&(S=x,x=void 0),!S)return new Promise(C);C(null,S);function C(_,O){e.run(E,kp(x),k);function k(T,I,$){I=I||E,T?O(T):_?_(I):S(null,I,$)}}}function m(E,x){let S,C;return o.run(E,x,_),EA("runSync","run",C),S;function _(O,k){dA(O),S=k,C=!0}}function g(E,x){if(o.freeze(),J9("process",o.Parser),eC("process",o.Compiler),!x)return new Promise(S);S(null,x);function S(C,_){const O=kp(E);o.run(o.parse(O),O,(T,I,$)=>{if(T||!I||!$)k(T);else{const M=o.stringify(I,$);M==null||(Hwe(M)?$.value=M:$.result=M),k(T,$)}});function k(T,I){T||!I?_(T):C?C(I):x(null,I)}}}function b(E){let x;o.freeze(),J9("processSync",o.Parser),eC("processSync",o.Compiler);const S=kp(E);return o.process(S,C),EA("processSync","process",x),S;function C(_){x=!0,dA(_)}}}function CA(e,t){return typeof e=="function"&&e.prototype&&(Bwe(e.prototype)||t in e.prototype)}function Bwe(e){let t;for(t in e)if(kW.call(e,t))return!0;return!1}function J9(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `Parser`")}function eC(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `Compiler`")}function tC(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 SA(e){if(!ex(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function EA(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function kp(e){return jwe(e)?e:new Lwe(e)}function jwe(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function Hwe(e){return typeof e=="string"||OW(e)}var zwe=typeof global=="object"&&global&&global.Object===Object&&global,Wwe=typeof self=="object"&&self&&self.Object===Object&&self,NW=zwe||Wwe||Function("return this")(),jy=NW.Symbol,AW=Object.prototype,Uwe=AW.hasOwnProperty,Kwe=AW.toString,$p=jy?jy.toStringTag:void 0;function Vwe(e){var t=Uwe.call(e,$p),n=e[$p];try{e[$p]=void 0;var r=!0}catch{}var i=Kwe.call(e);return r&&(t?e[$p]=n:delete e[$p]),i}var Gwe=Object.prototype,qwe=Gwe.toString;function Xwe(e){return qwe.call(e)}var Ywe="[object Null]",Qwe="[object Undefined]",xA=jy?jy.toStringTag:void 0;function Zwe(e){return e==null?e===void 0?Qwe:Ywe:xA&&xA in Object(e)?Vwe(e):Xwe(e)}function Jwe(e){return e!=null&&typeof e=="object"}var e6e="[object Symbol]";function t6e(e){return typeof e=="symbol"||Jwe(e)&&Zwe(e)==e6e}var n6e=/\s/;function r6e(e){for(var t=e.length;t--&&n6e.test(e.charAt(t)););return t}var i6e=/^\s+/;function o6e(e){return e&&e.slice(0,r6e(e)+1).replace(i6e,"")}function Hy(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var wA=NaN,a6e=/^[-+]0x[0-9a-f]+$/i,l6e=/^0b[01]+$/i,s6e=/^0o[0-7]+$/i,c6e=parseInt;function _A(e){if(typeof e=="number")return e;if(t6e(e))return wA;if(Hy(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Hy(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=o6e(e);var n=l6e.test(e);return n||s6e.test(e)?c6e(e.slice(2),n?2:8):a6e.test(e)?wA:+e}var nC=function(){return NW.Date.now()},u6e="Expected a function",d6e=Math.max,f6e=Math.min;function RW(e,t,n){var r,i,o,a,l,c,u=0,p=!1,h=!1,m=!0;if(typeof e!="function")throw new TypeError(u6e);t=_A(t)||0,Hy(n)&&(p=!!n.leading,h="maxWait"in n,o=h?d6e(_A(n.maxWait)||0,t):o,m="trailing"in n?!!n.trailing:m);function g(T){var I=r,$=i;return r=i=void 0,u=T,a=e.apply($,I),a}function b(T){return u=T,l=setTimeout(S,t),p?g(T):a}function E(T){var I=T-c,$=T-u,M=t-I;return h?f6e(M,o-$):M}function x(T){var I=T-c,$=T-u;return c===void 0||I>=t||I<0||h&&$>=o}function S(){var T=nC();if(x(T))return C(T);l=setTimeout(S,E(T))}function C(T){return l=void 0,m&&r?g(T):(r=i=void 0,a)}function _(){l!==void 0&&clearTimeout(l),u=0,r=c=i=l=void 0}function O(){return l===void 0?a:C(nC())}function k(){var T=nC(),I=x(T);if(r=arguments,i=this,c=T,I){if(l===void 0)return b(c);if(h)return clearTimeout(l),l=setTimeout(S,t),g(c)}return l===void 0&&(l=setTimeout(S,t)),a}return k.cancel=_,k.flush=O,k}var p6e="Expected a function";function h6e(e,t,n){var r=!0,i=!0;if(typeof e!="function")throw new TypeError(p6e);return Hy(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),RW(e,t,{leading:r,maxWait:t,trailing:i})}function ia(){}function MW(e){return e()}function TA(){return Object.create(null)}function Wl(e){e.forEach(MW)}function PW(e){return typeof e=="function"}function LW(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}function W2(e,t){return e!=e?t==t:e!==t}function m6e(e){return Object.keys(e).length===0}function fn(e,t){e.appendChild(t)}function oi(e,t,n){e.insertBefore(t,n||null)}function Vr(e){e.parentNode&&e.parentNode.removeChild(e)}function dm(e,t){for(let n=0;n<e.length;n+=1)e[n]&&e[n].d(t)}function pn(e){return document.createElement(e)}function Zr(e){return document.createTextNode(e)}function e0(){return Zr("")}function Jo(e,t,n,r){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}function n1(e){return function(t){t.target===this&&e.call(this,t)}}function In(e,t,n){n==null?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function g6e(e){return Array.from(e.childNodes)}function Ri(e,t){t=""+t,e.wholeText!==t&&(e.data=t)}function ti(e,t,n){e.classList[n?"add":"remove"](t)}function v6e(e,t,{bubbles:n=!1,cancelable:r=!1}={}){const i=document.createEvent("CustomEvent");return i.initCustomEvent(e,n,r,t),i}let fm;function bh(e){fm=e}function U2(){if(!fm)throw new Error("Function called outside component initialization");return fm}function ww(e){U2().$$.on_mount.push(e)}function y6e(e){U2().$$.after_update.push(e)}function DW(e){U2().$$.on_destroy.push(e)}function t0(){const e=U2();return(t,n,{cancelable:r=!1}={})=>{const i=e.$$.callbacks[t];if(i){const o=v6e(t,n,{cancelable:r});return i.slice().forEach(a=>{a.call(e,o)}),!o.defaultPrevented}return!0}}const Ud=[],$u=[];let kf=[];const OA=[],FW=Promise.resolve();let nx=!1;function BW(){nx||(nx=!0,FW.then(jW))}function wv(){return BW(),FW}function rx(e){kf.push(e)}const rC=new Set;let Bd=0;function jW(){if(Bd!==0)return;const e=fm;do{try{for(;Bd<Ud.length;){const t=Ud[Bd];Bd++,bh(t),b6e(t.$$)}}catch(t){throw Ud.length=0,Bd=0,t}for(bh(null),Ud.length=0,Bd=0;$u.length;)$u.pop()();for(let t=0;t<kf.length;t+=1){const n=kf[t];rC.has(n)||(rC.add(n),n())}kf.length=0}while(Ud.length);for(;OA.length;)OA.pop()();nx=!1,rC.clear(),bh(e)}function b6e(e){if(e.fragment!==null){e.update(),Wl(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(rx)}}function C6e(e){const t=[],n=[];kf.forEach(r=>e.indexOf(r)===-1?t.push(r):n.push(r)),n.forEach(r=>r()),kf=t}const _v=new Set;let xu;function S6e(){xu={r:0,c:[],p:xu}}function E6e(){xu.r||Wl(xu.c),xu=xu.p}function ls(e,t){e&&e.i&&(_v.delete(e),e.i(t))}function cu(e,t,n,r){if(e&&e.o){if(_v.has(e))return;_v.add(e),xu.c.push(()=>{_v.delete(e),r&&(n&&e.d(1),r())}),e.o(t)}else r&&r()}function zp(e){e&&e.c()}function df(e,t,n,r){const{fragment:i,after_update:o}=e.$$;i&&i.m(t,n),r||rx(()=>{const a=e.$$.on_mount.map(MW).filter(PW);e.$$.on_destroy?e.$$.on_destroy.push(...a):Wl(a),e.$$.on_mount=[]}),o.forEach(rx)}function ff(e,t){const n=e.$$;n.fragment!==null&&(C6e(n.after_update),Wl(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function x6e(e,t){e.$$.dirty[0]===-1&&(Ud.push(e),BW(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function T1(e,t,n,r,i,o,a,l=[-1]){const c=fm;bh(e);const u=e.$$={fragment:null,ctx:[],props:o,update:ia,not_equal:i,bound:TA(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(c?c.$$.context:[])),callbacks:TA(),dirty:l,skip_bound:!1,root:t.target||c.$$.root};a&&a(u.root);let p=!1;if(u.ctx=n?n(e,t.props||{},(h,m,...g)=>{const b=g.length?g[0]:m;return u.ctx&&i(u.ctx[h],u.ctx[h]=b)&&(!u.skip_bound&&u.bound[h]&&u.bound[h](b),p&&x6e(e,h)),m}):[],u.update(),p=!0,Wl(u.before_update),u.fragment=r?r(u.ctx):!1,t.target){if(t.hydrate){const h=g6e(t.target);u.fragment&&u.fragment.l(h),h.forEach(Vr)}else u.fragment&&u.fragment.c();t.intro&&ls(e.$$.fragment),df(e,t.target,t.anchor,t.customElement),jW()}bh(c)}class O1{$destroy(){ff(this,1),this.$destroy=ia}$on(t,n){if(!PW(n))return ia;const r=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return r.push(n),()=>{const i=r.indexOf(n);i!==-1&&r.splice(i,1)}}$set(t){this.$$set&&!m6e(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const w6e="Bold",_6e="bold text",T6e="Markdown Cheatsheet",O6e="Close help",I6e="Close table of contents",k6e="Code",$6e="Code block",N6e="lang",A6e="code",R6e="Exit fullscreen",M6e="Exit preview only",P6e="Exit write only",L6e="Fullscreen",D6e="Heading 1",F6e="Heading 2",B6e="Heading 3",j6e="Heading 4",H6e="Heading 5",z6e="Heading 6",W6e="heading",U6e="Help",K6e="Horizontal rule",V6e="Image",G6e="alt",q6e="title",X6e="Italic",Y6e="italic text",Q6e="The maximum character limit has been reached",Z6e="Lines",J6e="Link",e_e="link text",t_e="Ordered list",n_e="item",r_e="Preview",i_e="Preview only",o_e="Quote",a_e="quoted text",l_e="Shortcuts",s_e="Source code",c_e="Scroll sync",u_e="Table of contents",d_e="Scroll to top",f_e="Unordered list",p_e="item",h_e="Words",m_e="Write",g_e="Write only",v_e={bold:w6e,boldText:_6e,cheatsheet:T6e,closeHelp:O6e,closeToc:I6e,code:k6e,codeBlock:$6e,codeLang:N6e,codeText:A6e,exitFullscreen:R6e,exitPreviewOnly:M6e,exitWriteOnly:P6e,fullscreen:L6e,h1:D6e,h2:F6e,h3:B6e,h4:j6e,h5:H6e,h6:z6e,headingText:W6e,help:U6e,hr:K6e,image:V6e,imageAlt:G6e,imageTitle:q6e,italic:X6e,italicText:Y6e,limited:Q6e,lines:Z6e,link:J6e,linkText:e_e,ol:t_e,olItem:n_e,preview:r_e,previewOnly:i_e,quote:o_e,quotedText:a_e,shortcuts:l_e,source:s_e,sync:c_e,toc:u_e,top:d_e,ul:f_e,ulItem:p_e,words:h_e,write:m_e,writeOnly:g_e},vr={Close:'<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" fill="none" viewBox="0 0 48 48"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="4" d="m8 8 32 32M8 40 40 8"/></svg>',H:'<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" fill="none" viewBox="0 0 48 48"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="4" d="M12 5v38M36 5v38M12 24h24"/></svg>',H1:'<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" fill="none" viewBox="0 0 48 48"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="4" d="M6 8v32M25 8v32M6 24h19M34.226 24 39 19.017V40"/></svg>',H2:'<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" fill="none" viewBox="0 0 48 48"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="4" d="M6 8v32M24 8v32M7 24h16M32 25c0-3.167 2.667-5 5-5s5 1.833 5 5c0 5.7-10 9.933-10 15h10"/></svg>',H3:'<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" fill="none" viewBox="0 0 48 48"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="4" d="M6 8v32M24 8v32M7 24h16M32 20h10l-7 9c4 0 7 2 7 6s-3 5-5 5c-2.381 0-4-1-5-2.1"/></svg>',LevelFourTitle:'<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" fill="none" viewBox="0 0 48 48"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="4" d="M6 8v32M24 8v32M7 24h16M39.977 40V20L31 32.997v2.023h12"/></svg>',LevelFiveTitle:'<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" fill="none" viewBox="0 0 48 48"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="4" d="M6 8v32M24 8v32M7 24h16M40 21.01h-8v7.024C32 28 34 27 37 27s4 2.534 4 6.5-1 6.5-5 6.5c-3 0-4-2-4-3.992"/></svg>',LevelSixTitle:'<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" fill="none" viewBox="0 0 48 48"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="4" d="M6 8v32M24 8v32M7 24h16"/><path stroke="currentColor" stroke-width="4" d="M36.5 40a5.5 5.5 0 1 0 0-11 5.5 5.5 0 0 0 0 11Z"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="4" d="M41.596 24.74C40.778 22.545 38.804 21 36.5 21c-3.038 0-5.5 2.686-5.5 6v7"/></svg>',TextBold:'<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" fill="none" viewBox="0 0 48 48"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="4" d="M24 24c5.506 0 9.969-4.477 9.969-10S29.506 4 24 4H11v20h13ZM28.031 44C33.537 44 38 39.523 38 34s-4.463-10-9.969-10H11v20h17.031Z" clip-rule="evenodd"/></svg>',TextItalic:'<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" fill="none" viewBox="0 0 48 48"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="4" d="M20 6h16M12 42h16M29 5.952 19 42"/></svg>',Quote:'<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" fill="none" viewBox="0 0 48 48"><path fill="currentColor" fill-rule="evenodd" d="M18.853 9.116C11.323 13.952 7.14 19.58 6.303 26.003 5 36 13.94 40.893 18.47 36.497 23 32.1 20.285 26.52 17.005 24.994c-3.28-1.525-5.286-.994-4.936-3.033.35-2.038 5.016-7.69 9.116-10.322a.749.749 0 0 0 .114-1.02L20.285 9.3c-.44-.572-.862-.55-1.432-.185ZM38.679 9.116c-7.53 4.836-11.714 10.465-12.55 16.887-1.303 9.997 7.637 14.89 12.167 10.494 4.53-4.397 1.815-9.977-1.466-11.503-3.28-1.525-5.286-.994-4.936-3.033.35-2.038 5.017-7.69 9.117-10.322a.749.749 0 0 0 .113-1.02L40.11 9.3c-.44-.572-.862-.55-1.431-.185Z" clip-rule="evenodd"/></svg>',LinkOne:'<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" fill="none" viewBox="0 0 48 48"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="4" d="m26.24 16.373-9.14-9.14c-2.661-2.661-7.035-2.603-9.768.131-2.734 2.734-2.793 7.107-.131 9.768l7.935 7.936M32.903 23.003l7.935 7.935c2.661 2.662 2.603 7.035-.13 9.769-2.735 2.734-7.108 2.792-9.77.13l-9.14-9.14"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="4" d="M26.11 26.142c2.733-2.734 2.792-7.108.13-9.769M21.799 21.798c-2.734 2.734-2.792 7.108-.131 9.769"/></svg>',Pic:'<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" fill="none" viewBox="0 0 48 48"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="4" d="M5 10a2 2 0 0 1 2-2h34a2 2 0 0 1 2 2v28a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V10Z" clip-rule="evenodd"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="4" d="M14.5 18a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Z" clip-rule="evenodd"/><path stroke="currentColor" stroke-linejoin="round" stroke-width="4" d="m15 24 5 4 6-7 17 13v4a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2v-4l10-10Z"/></svg>',Code:'<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" fill="none" viewBox="0 0 48 48"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="4" d="M16 13 4 25.432 16 37M32 13l12 12.432L32 37"/><path stroke="currentColor" stroke-linecap="round" stroke-width="4" d="m28 4-7 40"/></svg>',CodeBrackets:'<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" fill="none" viewBox="0 0 48 48"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="4" d="M16 4c-2 0-5 1-5 5v9c0 3-5 5-5 5s5 2 5 5v11c0 4 3 5 5 5M32 4c2 0 5 1 5 5v9c0 3 5 5 5 5s-5 2-5 5v11c0 4-3 5-5 5"/></svg>',ListTwo:'<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" fill="none" viewBox="0 0 48 48"><path stroke="currentColor" stroke-linejoin="round" stroke-width="4" d="M9 42a4 4 0 1 0 0-8 4 4 0 0 0 0 8ZM9 14a4 4 0 1 0 0-8 4 4 0 0 0 0 8ZM9 28a4 4 0 1 0 0-8 4 4 0 0 0 0 8Z"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="4" d="M21 24h22M21 38h22M21 10h22"/></svg>',OrderedList:'<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" fill="none" viewBox="0 0 48 48"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="4" d="M9 4v9M12 13H6M12 27H6M6 20s3-3 5 0-5 7-5 7M6 34.5s2-3 5-1 0 4.5 0 4.5 3 2.5 0 4.5-5-1-5-1M11 38H9M9 4 6 6M21 24h22M21 38h22M21 10h22"/></svg>',DividingLine:'<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" fill="none" viewBox="0 0 48 48"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="4" d="M5 24h38M21 38h6M37 38h6M21 10h6M5 38h6M5 10h6M37 10h6"/></svg>',AlignTextLeftOne:'<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" fill="none" viewBox="0 0 48 48"><path stroke="currentColor" stroke-linejoin="round" stroke-width="4" d="M39 6H9a3 3 0 0 0-3 3v30a3 3 0 0 0 3 3h30a3 3 0 0 0 3-3V9a3 3 0 0 0-3-3Z"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="4" d="M26 24H14M34 15H14M32 33H14"/></svg>',Helpcenter:'<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" fill="none" viewBox="0 0 48 48"><path stroke="currentColor" stroke-linejoin="round" stroke-width="4" d="M39 6H9a3 3 0 0 0-3 3v30a3 3 0 0 0 3 3h30a3 3 0 0 0 3-3V9a3 3 0 0 0-3-3Z"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="4" d="M24 28.625v-4a6 6 0 1 0-6-6"/><path fill="currentColor" fill-rule="evenodd" d="M24 37.625a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5Z" clip-rule="evenodd"/></svg>',LeftExpand:'<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" fill="none" viewBox="0 0 48 48"><rect width="28" height="36" x="6" y="6" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="4" rx="2"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="4" d="M42 6v36"/></svg>',RightExpand:'<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" fill="none" viewBox="0 0 48 48"><rect width="28" height="36" x="14" y="6" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="4" rx="2"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="4" d="M6 6v36"/></svg>',OffScreen:'<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" fill="none" viewBox="0 0 48 48"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="4" d="M33 6v9h9M15 6v9H6M15 42v-9H6M33 42v-9h8.9"/></svg>',FullScreen:'<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" fill="none" viewBox="0 0 48 48"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="4" d="M33 6h9v9M42 33v9h-9M15 42H6v-9M6 15V6h9"/></svg>',GithubOne:'<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" fill="none" viewBox="0 0 48 48"><path stroke="currentColor" stroke-linecap="round" stroke-width="4" d="M29.344 30.477c2.404-.5 4.585-1.366 6.28-2.638C38.52 25.668 40 22.314 40 19c0-2.324-.881-4.494-2.407-6.332-.85-1.024 1.636-8.667-.573-7.638-2.21 1.03-5.45 3.308-7.147 2.805A20.712 20.712 0 0 0 24 7c-1.8 0-3.532.223-5.147.634C16.505 8.232 14.259 6 12 5.03c-2.26-.97-1.026 6.934-1.697 7.765C8.84 14.605 8 16.73 8 19c0 3.314 1.79 6.668 4.686 8.84 1.93 1.446 4.348 2.368 7.054 2.822M19.74 30.662c-1.159 1.275-1.738 2.486-1.738 3.632v8.717M29.345 30.477c1.097 1.44 1.646 2.734 1.646 3.88v8.654M6 31.215c.899.11 1.566.524 2 1.24.652 1.075 3.074 5.063 5.825 5.063h4.177"/></svg>'};function y_e(){const e=U2e();return K2e(e),G2e(e),Y2e(e),X2e(e),q2e(e),Z2e(e),Q2e(e),V2e(e),e}function b_e(e,t){return{wrapText(n,r=n){const i=t.somethingSelected()?t.listSelections()[0]:t.findWordAt(t.getCursor()),o=i.from(),a=i.to(),l=t.getRange(o,a),c=e.Pos(o.line,o.ch-n.length),u=e.Pos(a.line,a.ch+r.length);if(t.getRange(c,o)===n&&t.getRange(a,u)===r)t.replaceRange(l,c,u),t.setSelection(c,e.Pos(c.line,c.ch+l.length));else{t.replaceRange(n+l+r,o,a);const p=t.getCursor();t.setSelection(e.Pos(p.line,p.ch-r.length-l.length),e.Pos(p.line,p.ch-r.length))}},replaceLines(n){const[r]=t.listSelections(),i=[e.Pos(r.from().line,0),e.Pos(r.to().line)],o=t.getRange(...i).split(`
`);t.replaceRange(o.map(n).join(`
`),...i),t.setSelection(...i)},appendBlock(n){const r=t.getCursor();let i=-1;for(let o=r.line;o<t.lineCount();o++)if(!t.getLine(o).trim()){i=o;break}return i===-1&&(t.replaceRange(`
`,e.Pos(t.lineCount())),i=t.lineCount()),t.replaceRange(`
`+n,e.Pos(i)),e.Pos(i+1,0)},selectFiles:UH}}function iC(e,t){let n=t.length-2;for(let r=0;r<t.length;r++)if(e<t[r]){n=r-1;break}return n=Math.max(n,0),n}const zs=(e,t=!1)=>{const n=t?"Shift-":"",r=typeof navigator<"u"&&/Mac/.test(navigator.platform)?"Cmd-":"Ctrl-";return n+r+e};async function HW({editor:e,appendBlock:t,codemirror:n},r,i){const o=await r(i),a=t(o.map(({url:l,alt:c,title:u},p)=>(c=c??i[p].name,`![${c}](${l}${u?` "${u}"`:""})`)).join(`
`));e.setSelection(a,n.Pos(a.line+o.length*2-2)),e.focus()}function C_e(e,t,n){const r=[{icon:vr.H,handler:{type:"dropdown",actions:[1,2,3,4,5,6].map(o=>({title:e[`h${o}`],icon:[vr.H1,vr.H2,vr.H3,vr.LevelFourTitle,vr.LevelFiveTitle,vr.LevelSixTitle][o-1],cheatsheet:o<=3?`${"#".repeat(o)} ${e.headingText}`:void 0,handler:{type:"action",click({replaceLines:a,editor:l}){a(c=>(c=c.trim().replace(/^#*/,"").trim(),c="#".repeat(o)+" "+c,c)),l.focus()}}}))}},{title:e.bold,icon:vr.TextBold,cheatsheet:`**${e.boldText}**`,handler:{type:"action",shortcut:zs("B"),click({wrapText:o,editor:a}){o("**"),a.focus()}}},{title:e.italic,icon:vr.TextItalic,cheatsheet:`*${e.italicText}*`,handler:{type:"action",shortcut:zs("I"),click({wrapText:o,editor:a}){o("*"),a.focus()}}},{title:e.quote,icon:vr.Quote,cheatsheet:`> ${e.quotedText}`,handler:{type:"action",click({replaceLines:o,editor:a}){o(l=>"> "+l),a.focus()}}},{title:e.link,icon:vr.LinkOne,cheatsheet:`[${e.linkText}](url)`,handler:{type:"action",shortcut:zs("K"),click({editor:o,wrapText:a,codemirror:l}){a("[","](url)");const c=o.getCursor();o.setSelection(l.Pos(c.line,c.ch+2),l.Pos(c.line,c.ch+5)),o.focus()}}},{title:e.image,icon:vr.Pic,cheatsheet:`![${e.imageAlt}](url "${e.imageTitle}")`,handler:n?{type:"action",shortcut:zs("I",!0),async click(o){const a=await UH({accept:"image/*",multiple:!0});a!=null&&a.length&&await HW(o,n,Array.from(a))}}:void 0},{title:e.code,icon:vr.Code,cheatsheet:"`"+e.codeText+"`",handler:{type:"action",shortcut:zs("K",!0),click({wrapText:o,editor:a}){o("`"),a.focus()}}},{title:e.codeBlock,icon:vr.CodeBrackets,cheatsheet:"```"+e.codeLang+"↵",handler:{type:"action",shortcut:zs("C",!0),click({editor:o,appendBlock:a,codemirror:l}){const c=a("```js\n```");o.setSelection(l.Pos(c.line,3),l.Pos(c.line,5)),o.focus()}}},{title:e.ul,icon:vr.ListTwo,cheatsheet:`- ${e.ulItem}`,handler:{type:"action",shortcut:zs("U",!0),click({replaceLines:o,editor:a}){o(l=>"- "+l),a.focus()}}},{title:e.ol,icon:vr.OrderedList,cheatsheet:`1. ${e.olItem}`,handler:{type:"action",shortcut:zs("O",!0),click({replaceLines:o,editor:a}){o((l,c)=>`${c+1}. ${l}`),a.focus()}}},{title:e.hr,icon:vr.DividingLine,cheatsheet:"---"}],i=[];return t.forEach(({actions:o})=>{o&&o.forEach(a=>{!a.position||a.position!=="right"?r.push(a):i.unshift(a)})}),{leftActions:r,rightActions:i}}function IA(e,t,n){const r=e.slice();return r[5]=t[n],r}function kA(e,t,n){const r=e.slice();return r[5]=t[n],r}function $A(e){let t,n,r=e[5].icon+"",i,o=e[5].title+"",a,l,c,u=e[5].cheatsheet+"",p;return{c(){t=pn("li"),n=pn("div"),i=pn("div"),a=Zr(o),l=pn("div"),c=pn("code"),p=Zr(u),In(n,"class","bytemd-help-icon"),In(i,"class","bytemd-help-title"),In(l,"class","bytemd-help-content")},m(h,m){oi(h,t,m),fn(t,n),n.innerHTML=r,fn(t,i),fn(i,a),fn(t,l),fn(l,c),fn(c,p)},p(h,m){m&4&&r!==(r=h[5].icon+"")&&(n.innerHTML=r),m&4&&o!==(o=h[5].title+"")&&Ri(a,o),m&4&&u!==(u=h[5].cheatsheet+"")&&Ri(p,u)},d(h){h&&Vr(t)}}}function NA(e){let t,n=e[5].cheatsheet&&$A(e);return{c(){n&&n.c(),t=e0()},m(r,i){n&&n.m(r,i),oi(r,t,i)},p(r,i){r[5].cheatsheet?n?n.p(r,i):(n=$A(r),n.c(),n.m(t.parentNode,t)):n&&(n.d(1),n=null)},d(r){n&&n.d(r),r&&Vr(t)}}}function AA(e){let t,n,r=e[5].icon+"",i,o=e[5].title+"",a,l,c,u=e[5].handler.shortcut+"",p;return{c(){t=pn("li"),n=pn("div"),i=pn("div"),a=Zr(o),l=pn("div"),c=pn("kbd"),p=Zr(u),In(n,"class","bytemd-help-icon"),In(i,"class","bytemd-help-title"),In(l,"class","bytemd-help-content")},m(h,m){oi(h,t,m),fn(t,n),n.innerHTML=r,fn(t,i),fn(i,a),fn(t,l),fn(l,c),fn(c,p)},p(h,m){m&4&&r!==(r=h[5].icon+"")&&(n.innerHTML=r),m&4&&o!==(o=h[5].title+"")&&Ri(a,o),m&4&&u!==(u=h[5].handler.shortcut+"")&&Ri(p,u)},d(h){h&&Vr(t)}}}function RA(e){let t,n=e[5].handler&&e[5].handler.type==="action"&&e[5].handler.shortcut&&AA(e);return{c(){n&&n.c(),t=e0()},m(r,i){n&&n.m(r,i),oi(r,t,i)},p(r,i){r[5].handler&&r[5].handler.type==="action"&&r[5].handler.shortcut?n?n.p(r,i):(n=AA(r),n.c(),n.m(t.parentNode,t)):n&&(n.d(1),n=null)},d(r){n&&n.d(r),r&&Vr(t)}}}function S_e(e){let t,n,r=e[0].cheatsheet+"",i,o,a,l=e[0].shortcuts+"",c,u,p=e[2],h=[];for(let b=0;b<p.length;b+=1)h[b]=NA(kA(e,p,b));let m=e[2],g=[];for(let b=0;b<m.length;b+=1)g[b]=RA(IA(e,m,b));return{c(){t=pn("div"),n=pn("h2"),i=Zr(r),o=pn("ul");for(let b=0;b<h.length;b+=1)h[b].c();a=pn("h2"),c=Zr(l),u=pn("ul");for(let b=0;b<g.length;b+=1)g[b].c();In(t,"class","bytemd-help"),ti(t,"bytemd-hidden",!e[1])},m(b,E){oi(b,t,E),fn(t,n),fn(n,i),fn(t,o);for(let x=0;x<h.length;x+=1)h[x]&&h[x].m(o,null);fn(t,a),fn(a,c),fn(t,u);for(let x=0;x<g.length;x+=1)g[x]&&g[x].m(u,null)},p(b,[E]){if(E&1&&r!==(r=b[0].cheatsheet+"")&&Ri(i,r),E&4){p=b[2];let x;for(x=0;x<p.length;x+=1){const S=kA(b,p,x);h[x]?h[x].p(S,E):(h[x]=NA(S),h[x].c(),h[x].m(o,null))}for(;x<h.length;x+=1)h[x].d(1);h.length=p.length}if(E&1&&l!==(l=b[0].shortcuts+"")&&Ri(c,l),E&4){m=b[2];let x;for(x=0;x<m.length;x+=1){const S=IA(b,m,x);g[x]?g[x].p(S,E):(g[x]=RA(S),g[x].c(),g[x].m(u,null))}for(;x<g.length;x+=1)g[x].d(1);g.length=m.length}E&2&&ti(t,"bytemd-hidden",!b[1])},i:ia,o:ia,d(b){b&&Vr(t),dm(h,b),dm(g,b)}}}function E_e(e,t,n){let r,{actions:i}=t,{locale:o}=t,{visible:a}=t;function l(c){let u=[];return c.forEach(p=>{const{handler:h,cheatsheet:m}=p;(h==null?void 0:h.type)==="dropdown"&&u.push(...l(h.actions)),m&&u.push(p)}),u}return e.$$set=c=>{"actions"in c&&n(3,i=c.actions),"locale"in c&&n(0,o=c.locale),"visible"in c&&n(1,a=c.visible)},e.$$.update=()=>{e.$$.dirty&8&&n(2,r=l(i))},[o,a,r,i]}class x_e extends O1{constructor(t){super(),T1(this,t,E_e,S_e,LW,{actions:3,locale:0,visible:1})}}function MA(e){let t,n=e[2].limited+"",r;return{c(){t=pn("span"),r=Zr(n),In(t,"class","bytemd-status-error")},m(i,o){oi(i,t,o),fn(t,r)},p(i,o){o&4&&n!==(n=i[2].limited+"")&&Ri(r,n)},d(i){i&&Vr(t)}}}function PA(e){let t,n,r=e[2].sync+"",i,o,a;return{c(){t=pn("label"),n=pn("input"),i=Zr(r),In(n,"type","checkbox"),n.checked=e[1]},m(l,c){oi(l,t,c),fn(t,n),fn(t,i),o||(a=Jo(n,"change",e[8]),o=!0)},p(l,c){c&2&&(n.checked=l[1]),c&4&&r!==(r=l[2].sync+"")&&Ri(i,r)},d(l){l&&Vr(t),o=!1,a()}}}function w_e(e){let t,n,r,i=e[2].words+"",o,a,l,c,u,p=e[2].lines+"",h,m,g,b,E,x,S=e[2].top+"",C,_,O,k=e[3]&&MA(e),T=e[0]&&PA(e);return{c(){t=pn("div"),n=pn("div"),r=pn("span"),o=Zr(i),a=Zr(": "),l=pn("strong"),c=Zr(e[5]),u=pn("span"),h=Zr(p),m=Zr(": "),g=pn("strong"),b=Zr(e[4]),k&&k.c(),E=pn("div"),T&&T.c(),x=pn("span"),C=Zr(S),In(n,"class","bytemd-status-left"),In(E,"class","bytemd-status-right"),In(t,"class","bytemd-status")},m(I,$){oi(I,t,$),fn(t,n),fn(n,r),fn(r,o),fn(r,a),fn(r,l),fn(l,c),fn(n,u),fn(u,h),fn(u,m),fn(u,g),fn(g,b),k&&k.m(n,null),fn(t,E),T&&T.m(E,null),fn(E,x),fn(x,C),_||(O=[Jo(x,"click",e[9]),Jo(x,"keydown",n1(e[10]))],_=!0)},p(I,[$]){$&4&&i!==(i=I[2].words+"")&&Ri(o,i),$&32&&Ri(c,I[5]),$&4&&p!==(p=I[2].lines+"")&&Ri(h,p),$&16&&Ri(b,I[4]),I[3]?k?k.p(I,$):(k=MA(I),k.c(),k.m(n,null)):k&&(k.d(1),k=null),I[0]?T?T.p(I,$):(T=PA(I),T.c(),T.m(E,x)):T&&(T.d(1),T=null),$&4&&S!==(S=I[2].top+"")&&Ri(C,S)},i:ia,o:ia,d(I){I&&Vr(t),k&&k.d(),T&&T.d(),_=!1,Wl(O)}}}function __e(e,t,n){let r,i,{showSync:o}=t,{value:a}=t,{syncEnabled:l}=t,{locale:c}=t,{islimited:u}=t;const p=t0(),h=()=>p("sync",!l),m=()=>p("top"),g=b=>["Enter","Space"].includes(b.code)&&p("top");return e.$$set=b=>{"showSync"in b&&n(0,o=b.showSync),"value"in b&&n(7,a=b.value),"syncEnabled"in b&&n(1,l=b.syncEnabled),"locale"in b&&n(2,c=b.locale),"islimited"in b&&n(3,u=b.islimited)},e.$$.update=()=>{e.$$.dirty&128&&n(5,r=n5e(a)),e.$$.dirty&128&&n(4,i=a.split(`
`).length)},[o,l,c,u,i,r,p,a,h,m,g]}class T_e extends O1{constructor(t){super(),T1(this,t,__e,w_e,LW,{showSync:0,value:7,syncEnabled:1,locale:2,islimited:3})}}function LA(e,t,n){const r=e.slice();return r[11]=t[n],r[13]=n,r}function DA(e){let t,n=e[11].text+"",r,i,o,a,l;function c(){return e[8](e[13])}function u(...p){return e[9](e[13],...p)}return{c(){t=pn("li"),r=Zr(n),In(t,"class",i=`bytemd-toc-${e[11].level}`),In(t,"style",o=`padding-left:${(e[11].level-e[3])*16+8}px`),ti(t,"bytemd-toc-active",e[4]===e[13]),ti(t,"bytemd-toc-first",e[11].level===e[3])},m(p,h){oi(p,t,h),fn(t,r),a||(l=[Jo(t,"click",c),Jo(t,"keydown",n1(u))],a=!0)},p(p,h){e=p,h&4&&n!==(n=e[11].text+"")&&Ri(r,n),h&4&&i!==(i=`bytemd-toc-${e[11].level}`)&&In(t,"class",i),h&12&&o!==(o=`padding-left:${(e[11].level-e[3])*16+8}px`)&&In(t,"style",o),h&20&&ti(t,"bytemd-toc-active",e[4]===e[13]),h&12&&ti(t,"bytemd-toc-first",e[11].level===e[3])},d(p){p&&Vr(t),a=!1,Wl(l)}}}function O_e(e){let t,n,r=e[0].toc+"",i,o,a=e[2],l=[];for(let c=0;c<a.length;c+=1)l[c]=DA(LA(e,a,c));return{c(){t=pn("div"),n=pn("h2"),i=Zr(r),o=pn("ul");for(let c=0;c<l.length;c+=1)l[c].c();In(t,"class","bytemd-toc"),ti(t,"bytemd-hidden",!e[1])},m(c,u){oi(c,t,u),fn(t,n),fn(n,i),fn(t,o);for(let p=0;p<l.length;p+=1)l[p]&&l[p].m(o,null)},p(c,[u]){if(u&1&&r!==(r=c[0].toc+"")&&Ri(i,r),u&60){a=c[2];let p;for(p=0;p<a.length;p+=1){const h=LA(c,a,p);l[p]?l[p].p(h,u):(l[p]=DA(h),l[p].c(),l[p].m(o,null))}for(;p<l.length;p+=1)l[p].d(1);l.length=a.length}u&2&&ti(t,"bytemd-hidden",!c[1])},i:ia,o:ia,d(c){c&&Vr(t),dm(l,c)}}}function I_e(e,t,n){let{hast:r}=t,{currentBlockIndex:i}=t,{locale:o}=t,{visible:a}=t;const l=t0();let c,u=6,p=0;function h(b){let E="";return Km(b,x=>{x.type==="text"&&(E+=x.value)}),E}const m=b=>{l("click",b)},g=(b,E)=>{["Enter","Space"].includes(E.code)&&l("click",b)};return e.$$set=b=>{"hast"in b&&n(6,r=b.hast),"currentBlockIndex"in b&&n(7,i=b.currentBlockIndex),"locale"in b&&n(0,o=b.locale),"visible"in b&&n(1,a=b.visible)},e.$$.update=()=>{e.$$.dirty&204&&(n(2,c=[]),n(4,p=0),r.children.filter(b=>b.type==="element").forEach((b,E)=>{if(b.tagName[0]==="h"&&b.children.length){const x=Number(b.tagName[1]);n(3,u=Math.min(u,x)),c.push({level:x,text:h(b)})}i>=E&&n(4,p=c.length-1)}))},[o,a,c,u,p,l,r,i,m,g]}class k_e extends O1{constructor(t){super(),T1(this,t,I_e,O_e,W2,{hast:6,currentBlockIndex:7,locale:0,visible:1})}}function FA(e,t,n){const r=e.slice();return r[25]=t[n],r[27]=n,r}function BA(e,t,n){const r=e.slice();return r[25]=t[n],r[27]=n,r}function $_e(e){let t,n=e[2].write+"",r,i,o=e[2].preview+"",a,l,c;return{c(){t=pn("div"),r=Zr(n),i=pn("div"),a=Zr(o),In(t,"class","bytemd-toolbar-tab"),ti(t,"bytemd-toolbar-tab-active",e[1]!=="preview"),In(i,"class","bytemd-toolbar-tab"),ti(i,"bytemd-toolbar-tab-active",e[1]==="preview")},m(u,p){oi(u,t,p),fn(t,r),oi(u,i,p),fn(i,a),l||(c=[Jo(t,"click",e[16]),Jo(t,"keydown",n1(e[17])),Jo(i,"click",e[18]),Jo(i,"keydown",n1(e[19]))],l=!0)},p(u,p){p&4&&n!==(n=u[2].write+"")&&Ri(r,n),p&2&&ti(t,"bytemd-toolbar-tab-active",u[1]!=="preview"),p&4&&o!==(o=u[2].preview+"")&&Ri(a,o),p&2&&ti(i,"bytemd-toolbar-tab-active",u[1]==="preview")},d(u){u&&Vr(t),u&&Vr(i),l=!1,Wl(c)}}}function N_e(e){let t,n=e[3],r=[];for(let i=0;i<n.length;i+=1)r[i]=HA(BA(e,n,i));return{c(){for(let i=0;i<r.length;i+=1)r[i].c();t=e0()},m(i,o){for(let a=0;a<r.length;a+=1)r[a]&&r[a].m(i,o);oi(i,t,o)},p(i,o){if(o&8){n=i[3];let a;for(a=0;a<n.length;a+=1){const l=BA(i,n,a);r[a]?r[a].p(l,o):(r[a]=HA(l),r[a].c(),r[a].m(t.parentNode,t))}for(;a<r.length;a+=1)r[a].d(1);r.length=n.length}},d(i){dm(r,i),i&&Vr(t)}}}function jA(e){let t,n=e[25].icon+"";return{c(){t=pn("div"),In(t,"class",["bytemd-toolbar-icon",zy].join(" ")),In(t,"bytemd-tippy-path",e[27])},m(r,i){oi(r,t,i),t.innerHTML=n},p(r,i){i&8&&n!==(n=r[25].icon+"")&&(t.innerHTML=n)},d(r){r&&Vr(t)}}}function HA(e){let t,n=e[25].handler&&jA(e);return{c(){n&&n.c(),t=e0()},m(r,i){n&&n.m(r,i),oi(r,t,i)},p(r,i){r[25].handler?n?n.p(r,i):(n=jA(r),n.c(),n.m(t.parentNode,t)):n&&(n.d(1),n=null)},d(r){n&&n.d(r),r&&Vr(t)}}}function zA(e){let t,n=e[25].icon+"";return{c(){t=pn("div"),In(t,"class",["bytemd-toolbar-icon",zy,Tv].join(" ")),In(t,"bytemd-tippy-path",e[27]),ti(t,"bytemd-toolbar-icon-active",e[25].active)},m(r,i){oi(r,t,i),t.innerHTML=n},p(r,i){i&32&&n!==(n=r[25].icon+"")&&(t.innerHTML=n),i&32&&ti(t,"bytemd-toolbar-icon-active",r[25].active)},d(r){r&&Vr(t)}}}function WA(e){let t,n=!e[25].hidden&&zA(e);return{c(){n&&n.c(),t=e0()},m(r,i){n&&n.m(r,i),oi(r,t,i)},p(r,i){r[25].hidden?n&&(n.d(1),n=null):n?n.p(r,i):(n=zA(r),n.c(),n.m(t.parentNode,t))},d(r){n&&n.d(r),r&&Vr(t)}}}function A_e(e){let t,n,r,i,o;function a(h,m){return h[0]?N_e:$_e}let l=a(e),c=l(e),u=e[5],p=[];for(let h=0;h<u.length;h+=1)p[h]=WA(FA(e,u,h));return{c(){t=pn("div"),n=pn("div"),c.c(),r=pn("div");for(let h=0;h<p.length;h+=1)p[h].c();In(n,"class","bytemd-toolbar-left"),In(r,"class","bytemd-toolbar-right"),In(t,"class","bytemd-toolbar")},m(h,m){oi(h,t,m),fn(t,n),c.m(n,null),fn(t,r);for(let g=0;g<p.length;g+=1)p[g]&&p[g].m(r,null);e[20](t),i||(o=[Jo(t,"click",e[7]),Jo(t,"keydown",n1(e[21]))],i=!0)},p(h,[m]){if(l===(l=a(h))&&c?c.p(h,m):(c.d(1),c=l(h),c&&(c.c(),c.m(n,null))),m&32){u=h[5];let g;for(g=0;g<u.length;g+=1){const b=FA(h,u,g);p[g]?p[g].p(b,m):(p[g]=WA(b),p[g].c(),p[g].m(r,null))}for(;g<p.length;g+=1)p[g].d(1);p.length=u.length}},i:ia,o:ia,d(h){h&&Vr(t),c.d(),dm(p,h),e[20](null),i=!1,Wl(o)}}}const zy="bytemd-tippy",Tv="bytemd-tippy-right",oC="bytemd-tippy-path";function R_e(e,t,n){let r,i,o,a,l;const c=t0();let u,{context:p}=t,{split:h}=t,{activeTab:m}=t,{fullscreen:g}=t,{sidebar:b}=t,{locale:E}=t,{actions:x}=t,{rightAfferentActions:S}=t;function C(D){var L,B;const H=(B=(L=D.getAttribute(oC))==null?void 0:L.split("-"))==null?void 0:B.map(z=>parseInt(z,10));if(!H)return;let W={title:"",handler:{type:"dropdown",actions:D.classList.contains(Tv)?l:x}};return H==null||H.forEach(z=>{var V;((V=W.handler)==null?void 0:V.type)==="dropdown"&&(W=W.handler.actions[z])}),{paths:H,item:W}}let _;function O(){_=H4e(u,{target:`.${zy}`,onCreate({setProps:D,reference:L}){const B=C(L);if(!B)return;const{item:H,paths:W}=B,{handler:z}=H;if(z){if(z.type==="action")D({content:H.title,onHidden(V){V.destroy()}});else if(z.type==="dropdown"){const V=document.createElement("div");if(V.classList.add("bytemd-dropdown"),H.title){const X=document.createElement("div");X.classList.add("bytemd-dropdown-title"),X.appendChild(document.createTextNode(H.title)),V.appendChild(X)}z.actions.forEach((X,A)=>{var P;const Y=document.createElement("div");Y.classList.add("bytemd-dropdown-item"),Y.setAttribute(oC,[...W,A].join("-")),((P=X.handler)==null?void 0:P.type)==="dropdown"&&Y.classList.add(zy),L.classList.contains(Tv)&&Y.classList.add(Tv),Y.innerHTML=`${X.icon?`<div class="bytemd-dropdown-item-icon">${X.icon}</div>`:""}<div class="bytemd-dropdown-item-title">${X.title}</div>`,V.appendChild(Y)}),D({allowHTML:!0,showOnCreate:!0,theme:"light-border",placement:"bottom-start",interactive:!0,interactiveDebounce:50,arrow:!1,offset:[0,4],content:V.outerHTML,onHidden(X){X.destroy()},onCreate(X){[...X.popper.querySelectorAll(".bytemd-dropdown-item")].forEach((A,P)=>{var Y;const U=(Y=z.actions[P])==null?void 0:Y.handler;if((U==null?void 0:U.type)==="action"){const{mouseenter:Q,mouseleave:ee}=U;Q&&A.addEventListener("mouseenter",()=>{Q(p)}),ee&&A.addEventListener("mouseleave",()=>{ee(p)})}})}})}}}})}ww(()=>{O()});function k(D){var L,B;const H=D.target.closest(`[${oC}]`);if(!H)return;const W=(B=(L=C(H))==null?void 0:L.item)==null?void 0:B.handler;(W==null?void 0:W.type)==="action"&&W.click(p),_==null||_.destroy(),O()}const T=()=>c("tab","write"),I=D=>["Enter","Space"].includes(D.code)&&c("tab","write"),$=()=>c("tab","preview"),M=D=>["Enter","Space"].includes(D.code)&&c("tab","preview");function R(D){$u[D?"unshift":"push"](()=>{u=D,n(4,u)})}const j=D=>["Enter","Space"].includes(D.code)&&k(D);return e.$$set=D=>{"context"in D&&n(8,p=D.context),"split"in D&&n(0,h=D.split),"activeTab"in D&&n(1,m=D.activeTab),"fullscreen"in D&&n(9,g=D.fullscreen),"sidebar"in D&&n(10,b=D.sidebar),"locale"in D&&n(2,E=D.locale),"actions"in D&&n(3,x=D.actions),"rightAfferentActions"in D&&n(11,S=D.rightAfferentActions)},e.$$.update=()=>{e.$$.dirty&1024&&n(15,r=b==="toc"),e.$$.dirty&1024&&n(14,i=b==="help"),e.$$.dirty&2&&n(13,o=m==="write"),e.$$.dirty&2&&n(12,a=m==="preview"),e.$$.dirty&64005&&n(5,l=[{title:r?E.closeToc:E.toc,icon:vr.AlignTextLeftOne,handler:{type:"action",click(){c("click","toc")}},active:r},{title:i?E.closeHelp:E.help,icon:vr.Helpcenter,handler:{type:"action",click(){c("click","help")}},active:i},{title:o?E.exitWriteOnly:E.writeOnly,icon:vr.LeftExpand,handler:{type:"action",click(){c("tab","write")}},active:o,hidden:!h},{title:a?E.exitPreviewOnly:E.previewOnly,icon:vr.RightExpand,handler:{type:"action",click(){c("tab","preview")}},active:a,hidden:!h},{title:g?E.exitFullscreen:E.fullscreen,icon:g?vr.OffScreen:vr.FullScreen,handler:{type:"action",click(){c("click","fullscreen")}}},{title:E.source,icon:vr.GithubOne,handler:{type:"action",click(){window.open("https://github.com/bytedance/bytemd")}}},...S])},[h,m,E,x,u,l,c,k,p,g,b,S,a,o,i,r,T,I,$,M,R,j]}class M_e extends O1{constructor(t){super(),T1(this,t,R_e,A_e,W2,{context:8,split:0,activeTab:1,fullscreen:9,sidebar:10,locale:2,actions:3,rightAfferentActions:11})}}const P_e=JSON.stringify(rw);function zW({sanitize:e,plugins:t,remarkRehype:n={}}){let r=Fwe().use(F8e);t==null||t.forEach(({remark:o})=>{o&&(r=o(r))}),r=r.use(bwe,{allowDangerousHtml:!0,...n}).use(BEe);let i=JSON.parse(P_e);return i.attributes["*"].push("className"),typeof e=="function"&&(i=e(i)),r=r.use(jEe,i),t==null||t.forEach(({rehype:o})=>{o&&(r=o(r))}),r.use(Lxe)}function L_e(e){let t;return{c(){t=pn("div"),In(t,"class","markdown-body")},m(n,r){oi(n,t,r),t.innerHTML=e[1],e[8](t)},p(n,[r]){r&2&&(t.innerHTML=n[1])},i:ia,o:ia,d(n){n&&Vr(t),e[8](null)}}}function D_e(e,t,n){let r;const i=t0();let{value:o=""}=t,{plugins:a=[]}=t,{sanitize:l=void 0}=t,{remarkRehype:c=void 0}=t,u,p=[];function h(){p=a.map(S=>{var C;return(C=S.viewerEffect)==null?void 0:C.call(S,{markdownBody:u,file:g})})}function m(){p.forEach(S=>S==null?void 0:S())}ww(()=>{u.addEventListener("click",S=>{var C;const _=S.target;if(_.tagName!=="A")return;const O=_.getAttribute("href");O!=null&&O.startsWith("#")&&((C=u.querySelector("#user-content-"+O.slice(1)))==null||C.scrollIntoView())})}),DW(m);let g,b=0;const E=()=>(S,C)=>{wv().then(()=>{i("hast",{hast:S,file:C})})};y6e(()=>{m(),h()});function x(S){$u[S?"unshift":"push"](()=>{u=S,n(0,u)})}return e.$$set=S=>{"value"in S&&n(2,o=S.value),"plugins"in S&&n(3,a=S.plugins),"sanitize"in S&&n(4,l=S.sanitize),"remarkRehype"in S&&n(5,c=S.remarkRehype)},e.$$.update=()=>{if(e.$$.dirty&188)try{n(6,g=zW({sanitize:l,plugins:[...a,{rehype:S=>S.use(E)}],remarkRehype:c}).processSync(o)),n(7,b++,b)}catch(S){console.error(S)}e.$$.dirty&192&&n(1,r=`${g}<!--${b}-->`)},[u,r,o,a,l,c,g,b,x]}let F_e=class extends O1{constructor(t){super(),T1(this,t,D_e,L_e,W2,{value:2,plugins:3,sanitize:4,remarkRehype:5})}};function UA(e){let t,n;return t=new F_e({props:{value:e[16],plugins:e[1],sanitize:e[2],remarkRehype:e[3]}}),t.$on("hast",e[35]),{c(){zp(t.$$.fragment)},m(r,i){df(t,r,i),n=!0},p(r,i){const o={};i[0]&65536&&(o.value=r[16]),i[0]&2&&(o.plugins=r[1]),i[0]&4&&(o.sanitize=r[2]),i[0]&8&&(o.remarkRehype=r[3]),t.$set(o)},i(r){n||(ls(t.$$.fragment,r),n=!0)},o(r){cu(t.$$.fragment,r),n=!1},d(r){ff(t,r)}}}function B_e(e){let t,n,r,i,o,a,l,c,u,p=vr.Close+"",h,m,g,b,E,x;n=new M_e({props:{context:e[10],split:e[11],activeTab:e[8],sidebar:e[9],fullscreen:e[15],rightAfferentActions:e[21].rightActions,locale:e[12],actions:e[21].leftActions}}),n.$on("key",e[31]),n.$on("tab",e[32]),n.$on("click",e[33]);let S=!e[4]&&(e[11]||e[8]==="preview")&&UA(e);return h=new x_e({props:{locale:e[12],actions:e[21].leftActions,visible:e[9]==="help"}}),m=new k_e({props:{hast:e[18],locale:e[12],currentBlockIndex:e[20],visible:e[9]==="toc"}}),m.$on("click",e[39]),g=new T_e({props:{locale:e[12],showSync:!e[4]&&e[11],value:e[16],syncEnabled:e[17],islimited:e[0].length>e[5]}}),g.$on("sync",e[40]),g.$on("top",e[41]),{c(){t=pn("div"),zp(n.$$.fragment),r=pn("div"),i=pn("div"),a=pn("div"),S&&S.c(),c=pn("div"),u=pn("div"),zp(h.$$.fragment),zp(m.$$.fragment),zp(g.$$.fragment),In(i,"class","bytemd-editor"),In(i,"style",o=e[22].edit),In(a,"class","bytemd-preview"),In(a,"style",l=e[22].preview),In(u,"class","bytemd-sidebar-close"),In(c,"class","bytemd-sidebar"),ti(c,"bytemd-hidden",e[9]===!1),In(r,"class","bytemd-body"),In(t,"class","bytemd"),ti(t,"bytemd-split",e[11]&&e[8]===!1),ti(t,"bytemd-fullscreen",e[15])},m(C,_){oi(C,t,_),df(n,t,null),fn(t,r),fn(r,i),e[34](i),fn(r,a),S&&S.m(a,null),e[36](a),fn(r,c),fn(c,u),u.innerHTML=p,df(h,c,null),df(m,c,null),df(g,t,null),e[42](t),b=!0,E||(x=[Jo(u,"click",e[37]),Jo(u,"keydown",n1(e[38]))],E=!0)},p(C,_){const O={};_[0]&1024&&(O.context=C[10]),_[0]&2048&&(O.split=C[11]),_[0]&256&&(O.activeTab=C[8]),_[0]&512&&(O.sidebar=C[9]),_[0]&32768&&(O.fullscreen=C[15]),_[0]&2097152&&(O.rightAfferentActions=C[21].rightActions),_[0]&4096&&(O.locale=C[12]),_[0]&2097152&&(O.actions=C[21].leftActions),n.$set(O),(!b||_[0]&4194304&&o!==(o=C[22].edit))&&In(i,"style",o),!C[4]&&(C[11]||C[8]==="preview")?S?(S.p(C,_),_[0]&2320&&ls(S,1)):(S=UA(C),S.c(),ls(S,1),S.m(a,null)):S&&(S6e(),cu(S,1,1,()=>{S=null}),E6e()),(!b||_[0]&4194304&&l!==(l=C[22].preview))&&In(a,"style",l);const k={};_[0]&4096&&(k.locale=C[12]),_[0]&2097152&&(k.actions=C[21].leftActions),_[0]&512&&(k.visible=C[9]==="help"),h.$set(k);const T={};_[0]&262144&&(T.hast=C[18]),_[0]&4096&&(T.locale=C[12]),_[0]&1048576&&(T.currentBlockIndex=C[20]),_[0]&512&&(T.visible=C[9]==="toc"),m.$set(T),(!b||_[0]&512)&&ti(c,"bytemd-hidden",C[9]===!1);const I={};_[0]&4096&&(I.locale=C[12]),_[0]&2064&&(I.showSync=!C[4]&&C[11]),_[0]&65536&&(I.value=C[16]),_[0]&131072&&(I.syncEnabled=C[17]),_[0]&33&&(I.islimited=C[0].length>C[5]),g.$set(I),(!b||_[0]&2304)&&ti(t,"bytemd-split",C[11]&&C[8]===!1),(!b||_[0]&32768)&&ti(t,"bytemd-fullscreen",C[15])},i(C){b||(ls(n.$$.fragment,C),ls(S),ls(h.$$.fragment,C),ls(m.$$.fragment,C),ls(g.$$.fragment,C),b=!0)},o(C){cu(n.$$.fragment,C),cu(S),cu(h.$$.fragment,C),cu(m.$$.fragment,C),cu(g.$$.fragment,C),b=!1},d(C){C&&Vr(t),ff(n),e[34](null),S&&S.d(),e[36](null),ff(h),ff(m),ff(g),e[42](null),E=!1,Wl(x)}}}function j_e(e,t,n){let r,i,o,a,l,{value:c=""}=t,{plugins:u=[]}=t,{sanitize:p=void 0}=t,{remarkRehype:h=void 0}=t,{mode:m="auto"}=t,{previewDebounce:g=300}=t,{placeholder:b=void 0}=t,{editorConfig:E=void 0}=t,{locale:x=void 0}=t,{uploadImages:S=void 0}=t,{overridePreview:C=void 0}=t,{maxLength:_=1/0}=t;const O=t0();let k,T,I,$=1/0,M,R,j,D=!1,L=!1,B=[],H={};function W(){B=u.map(Ie=>{var Te;return(Te=Ie.editorEffect)==null?void 0:Te.call(Ie,l)}),H={},i.leftActions.forEach(({handler:Ie})=>{(Ie==null?void 0:Ie.type)==="action"&&Ie.shortcut&&(H[Ie.shortcut]=()=>{Ie.click(l)})}),R.addKeyMap(H)}function z(){B.forEach(Ie=>Ie&&Ie()),R==null||R.removeKeyMap(H)}let V=c;const X=RW(Ie=>{n(16,V=Ie),C==null||C(I,{value:V,plugins:u,sanitize:p,remarkRehype:h})},g);let A=!0,P=!1,Y=!1,U,Q,ee={type:"root",children:[]},se,ne=0;ww(async()=>{n(30,M=y_e()),n(7,R=M(T,{value:c,mode:"yaml-frontmatter",lineWrapping:!0,tabSize:8,indentUnit:4,extraKeys:{Enter:"newlineAndIndentContinueMarkdownList"},...E,placeholder:b})),R.addKeyMap({Tab:"indentMore","Shift-Tab":"indentLess"}),R.on("change",()=>{O("change",{value:R.getValue()})});const Ie=h6e(()=>{U=[],Q=[];const je=R.getScrollInfo(),Ge=I.childNodes[0];if(!(Ge instanceof HTMLElement))return;const qe=ee.children.filter(ke=>ke.type==="element"),Ce=[...Ge.childNodes].filter(ke=>ke instanceof HTMLElement);for(let ke=0;ke<qe.length;ke++){const We=qe[ke],Pe=Ce[ke];if(!We.position)continue;const Be=R.heightAtLine(We.position.start.line-1,"local")/(je.height-je.clientHeight),He=(Pe.offsetTop-Ge.offsetTop)/(I.scrollHeight-I.clientHeight);if(Be>=1||He>=1)break;U.push(Be),Q.push(He)}U.push(1),Q.push(1)},1e3),Te=()=>{if(C||!A)return;if(Y){Y=!1;return}Ie();const je=R.getScrollInfo(),Ge=je.top/(je.height-je.clientHeight),qe=iC(Ge,U),Ce=(Ge-U[qe])*(Q[qe+1]-Q[qe])/(U[qe+1]-U[qe])+Q[qe];I.scrollTo(0,Ce*(I.scrollHeight-I.clientHeight)),P=!0},Ue=()=>{if(C||(Ie(),n(20,ne=iC(I.scrollTop/(I.scrollHeight-I.offsetHeight),Q)),!A))return;if(P){P=!1;return}const je=I.scrollTop/(I.scrollHeight-I.clientHeight),Ge=iC(je,Q),qe=(je-Q[Ge])*(U[Ge+1]-U[Ge])/(Q[Ge+1]-Q[Ge])+U[Ge];if(isNaN(qe))return;const Ce=R.getScrollInfo();R.scrollTo(0,qe*(Ce.height-Ce.clientHeight)),Y=!0};R.on("scroll",Te),I.addEventListener("scroll",Ue,{passive:!0});const Le=async(je,Ge)=>{if(!S)return;const qe=Array.from(Ge??[]).map(Ce=>{if(Ce.type.startsWith("image/"))return Ce.getAsFile()}).filter(Ce=>Ce!=null);qe.length&&(je.preventDefault(),await HW(l,S,qe))};R.on("drop",async(je,Ge)=>{var qe;Le(Ge,(qe=Ge.dataTransfer)==null?void 0:qe.items)}),R.on("paste",async(je,Ge)=>{var qe;Le(Ge,(qe=Ge.clipboardData)==null?void 0:qe.items)}),new ResizeObserver(je=>{n(29,$=je[0].contentRect.width)}).observe(k,{box:"border-box"})}),DW(z);const oe=Ie=>{R.setOption("keyMap",Ie.detail),R.focus()},pe=Ie=>{const Te=Ie.detail;o?n(8,j=j===Te?!1:Te):n(8,j=Te),j==="write"&&wv().then(()=>{R&&R.focus()}),Te==="write"&&wv().then(()=>{R&&R.setSize(null,null)})},be=Ie=>{switch(Ie.detail){case"fullscreen":n(15,D=!D);break;case"help":n(9,L=L==="help"?!1:"help");break;case"toc":n(9,L=L==="toc"?!1:"toc");break}};function ue(Ie){$u[Ie?"unshift":"push"](()=>{T=Ie,n(13,T)})}const de=Ie=>{n(18,ee=Ie.detail.hast),n(19,se=Ie.detail.file)};function re(Ie){$u[Ie?"unshift":"push"](()=>{I=Ie,n(14,I)})}const me=()=>{n(9,L=!1)},ge=Ie=>{["Enter","Space"].includes(Ie.code)&&n(9,L=!1)},Ae=Ie=>{I.querySelectorAll("h1,h2,h3,h4,h5,h6")[Ie.detail].scrollIntoView()},De=Ie=>{n(17,A=Ie.detail)},ze=()=>{R.scrollTo(null,0),I.scrollTo({top:0})};function et(Ie){$u[Ie?"unshift":"push"](()=>{k=Ie,n(6,k)})}return e.$$set=Ie=>{"value"in Ie&&n(0,c=Ie.value),"plugins"in Ie&&n(1,u=Ie.plugins),"sanitize"in Ie&&n(2,p=Ie.sanitize),"remarkRehype"in Ie&&n(3,h=Ie.remarkRehype),"mode"in Ie&&n(23,m=Ie.mode),"previewDebounce"in Ie&&n(24,g=Ie.previewDebounce),"placeholder"in Ie&&n(25,b=Ie.placeholder),"editorConfig"in Ie&&n(26,E=Ie.editorConfig),"locale"in Ie&&n(27,x=Ie.locale),"uploadImages"in Ie&&n(28,S=Ie.uploadImages),"overridePreview"in Ie&&n(4,C=Ie.overridePreview),"maxLength"in Ie&&n(5,_=Ie.maxLength)},e.$$.update=()=>{e.$$.dirty[0]&134217728&&n(12,r={...v_e,...x}),e.$$.dirty[0]&268439554&&n(21,i=C_e(r,u,S)),e.$$.dirty[0]&545259520&&n(11,o=m==="split"||m==="auto"&&$>=800),e.$$.dirty[0]&2048&&(Ie=>{o&&n(8,j=!1)})(),e.$$.dirty[0]&2816&&n(22,a=(()=>{let Ie,Te;return o&&j===!1?L?(Ie=`width:calc(50% - ${L?140:0}px)`,Te=`width:calc(50% - ${L?140:0}px)`):(Ie="width:50%",Te="width:50%"):j==="preview"?(Ie="display:none",Te=`width:calc(100% - ${L?280:0}px)`):(Ie=`width:calc(100% - ${L?280:0}px)`,Te="display:none"),{edit:Ie,preview:Te}})()),e.$$.dirty[0]&1073742016&&n(10,l={codemirror:M,editor:R,root:k,...b_e(M,R)}),e.$$.dirty[0]&1&&X(c),e.$$.dirty[0]&129&&R&&c!==R.getValue()&&R.setValue(c),e.$$.dirty[0]&130&&R&&u&&(z(),wv().then(()=>{W()}))},[c,u,p,h,C,_,k,R,j,L,l,o,r,T,I,D,V,A,ee,se,ne,i,a,m,g,b,E,x,S,$,M,oe,pe,be,ue,de,re,me,ge,Ae,De,ze,et]}let H_e=class extends O1{constructor(t){super(),T1(this,t,j_e,B_e,W2,{value:0,plugins:1,sanitize:2,remarkRehype:3,mode:23,previewDebounce:24,placeholder:25,editorConfig:26,locale:27,uploadImages:28,overridePreview:4,maxLength:5},null,[-1,-1])}};const z_e=({onChange:e,...t})=>{const n=d.useRef(),r=d.useRef(null),i=d.useRef();return d.useEffect(()=>{if(!r.current)return;const o=new H_e({target:r.current,props:t});return o.$on("change",a=>{var l;(l=i.current)==null||l.call(i,a.detail.value)}),n.current=o,()=>{o.$destroy()}},[]),d.useEffect(()=>{i.current=e},[e]),d.useEffect(()=>{var o;(o=n.current)==null||o.$set(t)},[t]),fe.createElement("div",{ref:r})},W_e=({value:e,sanitize:t,plugins:n,remarkRehype:r})=>{var i;const o=d.useRef(null),a=d.useMemo(()=>{try{return zW({sanitize:t,plugins:n,remarkRehype:r}).processSync(e)}catch(l){console.error(l)}},[e,t,n,r]);return d.useEffect(()=>{const l=o.current;if(!l||!a)return;const c=n==null?void 0:n.map(({viewerEffect:u})=>u==null?void 0:u({markdownBody:l,file:a}));return()=>{c==null||c.forEach(u=>u&&u())}},[a,n]),fe.createElement("div",{onClick:l=>{var c,u;const p=l.target;if(p.tagName!=="A")return;const h=p.getAttribute("href");h!=null&&h.startsWith("#")&&((u=(c=o.current)==null?void 0:c.querySelector("#user-content-"+h.slice(1)))==null||u.scrollIntoView())},ref:o,className:"markdown-body",dangerouslySetInnerHTML:{__html:(i=a==null?void 0:a.toString())!=null?i:""}})},U_e={tokenize:Y_e,partial:!0},WW={tokenize:Q_e,partial:!0},UW={tokenize:Z_e,partial:!0},KW={tokenize:J_e,partial:!0},K_e={tokenize:eTe,partial:!0},VW={tokenize:q_e,previous:qW},GW={tokenize:X_e,previous:XW},ws={tokenize:G_e,previous:YW},Ul={},V_e={text:Ul};let iu=48;for(;iu<123;)Ul[iu]=ws,iu++,iu===58?iu=65:iu===91&&(iu=97);Ul[43]=ws;Ul[45]=ws;Ul[46]=ws;Ul[95]=ws;Ul[72]=[ws,GW];Ul[104]=[ws,GW];Ul[87]=[ws,VW];Ul[119]=[ws,VW];function G_e(e,t,n){const r=this;let i,o;return a;function a(h){return!ix(h)||!YW.call(r,r.previous)||_w(r.events)?n(h):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),l(h))}function l(h){return ix(h)?(e.consume(h),l):h===64?(e.consume(h),c):n(h)}function c(h){return h===46?e.check(K_e,p,u)(h):h===45||h===95||Gi(h)?(o=!0,e.consume(h),c):p(h)}function u(h){return e.consume(h),i=!0,c}function p(h){return o&&i&&oo(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(h)):n(h)}}function q_e(e,t,n){const r=this;return i;function i(a){return a!==87&&a!==119||!qW.call(r,r.previous)||_w(r.events)?n(a):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(U_e,e.attempt(WW,e.attempt(UW,o),n),n)(a))}function o(a){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(a)}}function X_e(e,t,n){const r=this;let i="",o=!1;return a;function a(h){return(h===72||h===104)&&XW.call(r,r.previous)&&!_w(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(h),e.consume(h),l):n(h)}function l(h){if(oo(h)&&i.length<5)return i+=String.fromCodePoint(h),e.consume(h),l;if(h===58){const m=i.toLowerCase();if(m==="http"||m==="https")return e.consume(h),c}return n(h)}function c(h){return h===47?(e.consume(h),o?u:(o=!0,c)):n(h)}function u(h){return h===null||Dy(h)||sr(h)||Wu(h)||H2(h)?n(h):e.attempt(WW,e.attempt(UW,p),n)(h)}function p(h){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(h)}}function Y_e(e,t,n){let r=0;return i;function i(a){return(a===87||a===119)&&r<3?(r++,e.consume(a),i):a===46&&r===3?(e.consume(a),o):n(a)}function o(a){return a===null?n(a):t(a)}}function Q_e(e,t,n){let r,i,o;return a;function a(u){return u===46||u===95?e.check(KW,c,l)(u):u===null||sr(u)||Wu(u)||u!==45&&H2(u)?c(u):(o=!0,e.consume(u),a)}function l(u){return u===95?r=!0:(i=r,r=void 0),e.consume(u),a}function c(u){return i||r||!o?n(u):t(u)}}function Z_e(e,t){let n=0,r=0;return i;function i(a){return a===40?(n++,e.consume(a),i):a===41&&r<n?o(a):a===33||a===34||a===38||a===39||a===41||a===42||a===44||a===46||a===58||a===59||a===60||a===63||a===93||a===95||a===126?e.check(KW,t,o)(a):a===null||sr(a)||Wu(a)?t(a):(e.consume(a),i)}function o(a){return a===41&&r++,e.consume(a),i}}function J_e(e,t,n){return r;function r(l){return l===33||l===34||l===39||l===41||l===42||l===44||l===46||l===58||l===59||l===63||l===95||l===126?(e.consume(l),r):l===38?(e.consume(l),o):l===93?(e.consume(l),i):l===60||l===null||sr(l)||Wu(l)?t(l):n(l)}function i(l){return l===null||l===40||l===91||sr(l)||Wu(l)?t(l):r(l)}function o(l){return oo(l)?a(l):n(l)}function a(l){return l===59?(e.consume(l),r):oo(l)?(e.consume(l),a):n(l)}}function eTe(e,t,n){return r;function r(o){return e.consume(o),i}function i(o){return Gi(o)?n(o):t(o)}}function qW(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||sr(e)}function XW(e){return!oo(e)}function YW(e){return!(e===47||ix(e))}function ix(e){return e===43||e===45||e===46||e===95||Gi(e)}function _w(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 tTe={tokenize:cTe,partial:!0};function nTe(){return{document:{91:{tokenize:aTe,continuation:{tokenize:lTe},exit:sTe}},text:{91:{tokenize:oTe},93:{add:"after",tokenize:rTe,resolveTo:iTe}}}}function rTe(e,t,n){const r=this;let i=r.events.length;const o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a;for(;i--;){const c=r.events[i][1];if(c.type==="labelImage"){a=c;break}if(c.type==="gfmFootnoteCall"||c.type==="labelLink"||c.type==="label"||c.type==="image"||c.type==="link")break}return l;function l(c){if(!a||!a._balanced)return n(c);const u=il(r.sliceSerialize({start:a.end,end:r.now()}));return u.codePointAt(0)!==94||!o.includes(u.slice(1))?n(c):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(c),e.exit("gfmFootnoteCallLabelMarker"),t(c))}}function iTe(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 o={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},a={type:"chunkString",contentType:"string",start:Object.assign({},o.start),end:Object.assign({},o.end)},l=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",i,t],["exit",i,t],["enter",o,t],["enter",a,t],["exit",a,t],["exit",o,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...l),e}function oTe(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o=0,a;return l;function l(h){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(h),e.exit("gfmFootnoteCallLabelMarker"),c}function c(h){return h!==94?n(h):(e.enter("gfmFootnoteCallMarker"),e.consume(h),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",u)}function u(h){if(o>999||h===93&&!a||h===null||h===91||sr(h))return n(h);if(h===93){e.exit("chunkString");const m=e.exit("gfmFootnoteCallString");return i.includes(il(r.sliceSerialize(m)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(h),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(h)}return sr(h)||(a=!0),o++,e.consume(h),h===92?p:u}function p(h){return h===91||h===92||h===93?(e.consume(h),o++,u):u(h)}}function aTe(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o,a=0,l;return c;function c(b){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(b),e.exit("gfmFootnoteDefinitionLabelMarker"),u}function u(b){return b===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(b),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",p):n(b)}function p(b){if(a>999||b===93&&!l||b===null||b===91||sr(b))return n(b);if(b===93){e.exit("chunkString");const E=e.exit("gfmFootnoteDefinitionLabelString");return o=il(r.sliceSerialize(E)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(b),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),m}return sr(b)||(l=!0),a++,e.consume(b),b===92?h:p}function h(b){return b===91||b===92||b===93?(e.consume(b),a++,p):p(b)}function m(b){return b===58?(e.enter("definitionMarker"),e.consume(b),e.exit("definitionMarker"),i.includes(o)||i.push(o),Dn(e,g,"gfmFootnoteDefinitionWhitespace")):n(b)}function g(b){return t(b)}}function lTe(e,t,n){return e.check(Zm,t,e.attempt(tTe,t,n))}function sTe(e){e.exit("gfmFootnoteDefinition")}function cTe(e,t,n){const r=this;return Dn(e,i,"gfmFootnoteDefinitionIndent",5);function i(o){const a=r.events[r.events.length-1];return a&&a[1].type==="gfmFootnoteDefinitionIndent"&&a[2].sliceSerialize(a[1],!0).length===4?t(o):n(o)}}function uTe(e){let n=(e||{}).singleTilde;const r={tokenize:o,resolveAll:i};return n==null&&(n=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function i(a,l){let c=-1;for(;++c<a.length;)if(a[c][0]==="enter"&&a[c][1].type==="strikethroughSequenceTemporary"&&a[c][1]._close){let u=c;for(;u--;)if(a[u][0]==="exit"&&a[u][1].type==="strikethroughSequenceTemporary"&&a[u][1]._open&&a[c][1].end.offset-a[c][1].start.offset===a[u][1].end.offset-a[u][1].start.offset){a[c][1].type="strikethroughSequence",a[u][1].type="strikethroughSequence";const p={type:"strikethrough",start:Object.assign({},a[u][1].start),end:Object.assign({},a[c][1].end)},h={type:"strikethroughText",start:Object.assign({},a[u][1].end),end:Object.assign({},a[c][1].start)},m=[["enter",p,l],["enter",a[u][1],l],["exit",a[u][1],l],["enter",h,l]],g=l.parser.constructs.insideSpan.null;g&&ta(m,m.length,0,z2(g,a.slice(u+1,c),l)),ta(m,m.length,0,[["exit",h,l],["enter",a[c][1],l],["exit",a[c][1],l],["exit",p,l]]),ta(a,u-1,c-u+3,m),c=u+m.length-2;break}}for(c=-1;++c<a.length;)a[c][1].type==="strikethroughSequenceTemporary"&&(a[c][1].type="data");return a}function o(a,l,c){const u=this.previous,p=this.events;let h=0;return m;function m(b){return u===126&&p[p.length-1][1].type!=="characterEscape"?c(b):(a.enter("strikethroughSequenceTemporary"),g(b))}function g(b){const E=Fy(u);if(b===126)return h>1?c(b):(a.consume(b),h++,g);if(h<2&&!n)return c(b);const x=a.exit("strikethroughSequenceTemporary"),S=Fy(b);return x._open=!S||S===2&&!!E,x._close=!E||E===2&&!!S,l(b)}}}class dTe{constructor(){this.map=[]}add(t,n,r){fTe(this,t,n,r)}consume(t){if(this.map.sort((o,a)=>o[0]-a[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])),r.push(this.map[n][2]),t.length=this.map[n][0];r.push([...t]),t.length=0;let i=r.pop();for(;i;)t.push(...i),i=r.pop();this.map.length=0}}function fTe(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 pTe(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 o=r.length-1;r[o]=r[o]==="left"?"center":"right"}}else if(i[1].type==="tableDelimiterRow")break}else i[0]==="enter"&&i[1].type==="tableDelimiterRow"&&(n=!0);t+=1}return r}const hTe={flow:{null:{tokenize:mTe,resolveAll:gTe}}};function mTe(e,t,n){const r=this;let i=0,o=0,a;return l;function l(R){let j=r.events.length-1;for(;j>-1;){const B=r.events[j][1].type;if(B==="lineEnding"||B==="linePrefix")j--;else break}const D=j>-1?r.events[j][1].type:null,L=D==="tableHead"||D==="tableRow"?T:c;return L===T&&r.parser.lazy[r.now().line]?n(R):L(R)}function c(R){return e.enter("tableHead"),e.enter("tableRow"),u(R)}function u(R){return R===124||(a=!0,o+=1),p(R)}function p(R){return R===null?n(R):on(R)?o>1?(o=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(R),e.exit("lineEnding"),g):n(R):yn(R)?Dn(e,p,"whitespace")(R):(o+=1,a&&(a=!1,i+=1),R===124?(e.enter("tableCellDivider"),e.consume(R),e.exit("tableCellDivider"),a=!0,p):(e.enter("data"),h(R)))}function h(R){return R===null||R===124||sr(R)?(e.exit("data"),p(R)):(e.consume(R),R===92?m:h)}function m(R){return R===92||R===124?(e.consume(R),h):h(R)}function g(R){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(R):(e.enter("tableDelimiterRow"),a=!1,yn(R)?Dn(e,b,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(R):b(R))}function b(R){return R===45||R===58?x(R):R===124?(a=!0,e.enter("tableCellDivider"),e.consume(R),e.exit("tableCellDivider"),E):k(R)}function E(R){return yn(R)?Dn(e,x,"whitespace")(R):x(R)}function x(R){return R===58?(o+=1,a=!0,e.enter("tableDelimiterMarker"),e.consume(R),e.exit("tableDelimiterMarker"),S):R===45?(o+=1,S(R)):R===null||on(R)?O(R):k(R)}function S(R){return R===45?(e.enter("tableDelimiterFiller"),C(R)):k(R)}function C(R){return R===45?(e.consume(R),C):R===58?(a=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(R),e.exit("tableDelimiterMarker"),_):(e.exit("tableDelimiterFiller"),_(R))}function _(R){return yn(R)?Dn(e,O,"whitespace")(R):O(R)}function O(R){return R===124?b(R):R===null||on(R)?!a||i!==o?k(R):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(R)):k(R)}function k(R){return n(R)}function T(R){return e.enter("tableRow"),I(R)}function I(R){return R===124?(e.enter("tableCellDivider"),e.consume(R),e.exit("tableCellDivider"),I):R===null||on(R)?(e.exit("tableRow"),t(R)):yn(R)?Dn(e,I,"whitespace")(R):(e.enter("data"),$(R))}function $(R){return R===null||R===124||sr(R)?(e.exit("data"),I(R)):(e.consume(R),R===92?M:$)}function M(R){return R===92||R===124?(e.consume(R),$):$(R)}}function gTe(e,t){let n=-1,r=!0,i=0,o=[0,0,0,0],a=[0,0,0,0],l=!1,c=0,u,p,h;const m=new dTe;for(;++n<e.length;){const g=e[n],b=g[1];g[0]==="enter"?b.type==="tableHead"?(l=!1,c!==0&&(KA(m,t,c,u,p),p=void 0,c=0),u={type:"table",start:Object.assign({},b.start),end:Object.assign({},b.end)},m.add(n,0,[["enter",u,t]])):b.type==="tableRow"||b.type==="tableDelimiterRow"?(r=!0,h=void 0,o=[0,0,0,0],a=[0,n+1,0,0],l&&(l=!1,p={type:"tableBody",start:Object.assign({},b.start),end:Object.assign({},b.end)},m.add(n,0,[["enter",p,t]])),i=b.type==="tableDelimiterRow"?2:p?3:1):i&&(b.type==="data"||b.type==="tableDelimiterMarker"||b.type==="tableDelimiterFiller")?(r=!1,a[2]===0&&(o[1]!==0&&(a[0]=a[1],h=Pg(m,t,o,i,void 0,h),o=[0,0,0,0]),a[2]=n)):b.type==="tableCellDivider"&&(r?r=!1:(o[1]!==0&&(a[0]=a[1],h=Pg(m,t,o,i,void 0,h)),o=a,a=[o[1],n,0,0])):b.type==="tableHead"?(l=!0,c=n):b.type==="tableRow"||b.type==="tableDelimiterRow"?(c=n,o[1]!==0?(a[0]=a[1],h=Pg(m,t,o,i,n,h)):a[1]!==0&&(h=Pg(m,t,a,i,n,h)),i=0):i&&(b.type==="data"||b.type==="tableDelimiterMarker"||b.type==="tableDelimiterFiller")&&(a[3]=n)}for(c!==0&&KA(m,t,c,u,p),m.consume(t.events),n=-1;++n<t.events.length;){const g=t.events[n];g[0]==="enter"&&g[1].type==="table"&&(g[1]._align=pTe(t.events,n))}return e}function Pg(e,t,n,r,i,o){const a=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",l="tableContent";n[0]!==0&&(o.end=Object.assign({},Kd(t.events,n[0])),e.add(n[0],0,[["exit",o,t]]));const c=Kd(t.events,n[1]);if(o={type:a,start:Object.assign({},c),end:Object.assign({},c)},e.add(n[1],0,[["enter",o,t]]),n[2]!==0){const u=Kd(t.events,n[2]),p=Kd(t.events,n[3]),h={type:l,start:Object.assign({},u),end:Object.assign({},p)};if(e.add(n[2],0,[["enter",h,t]]),r!==2){const m=t.events[n[2]],g=t.events[n[3]];if(m[1].end=Object.assign({},g[1].end),m[1].type="chunkText",m[1].contentType="text",n[3]>n[2]+1){const b=n[2]+1,E=n[3]-n[2]-1;e.add(b,E,[])}}e.add(n[3]+1,0,[["exit",h,t]])}return i!==void 0&&(o.end=Object.assign({},Kd(t.events,i)),e.add(i,0,[["exit",o,t]]),o=void 0),o}function KA(e,t,n,r,i){const o=[],a=Kd(t.events,n);i&&(i.end=Object.assign({},a),o.push(["exit",i,t])),r.end=Object.assign({},a),o.push(["exit",r,t]),e.add(n+1,0,o)}function Kd(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const vTe={tokenize:bTe},yTe={text:{91:vTe}};function bTe(e,t,n){const r=this;return i;function i(c){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(c):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(c),e.exit("taskListCheckMarker"),o)}function o(c){return sr(c)?(e.enter("taskListCheckValueUnchecked"),e.consume(c),e.exit("taskListCheckValueUnchecked"),a):c===88||c===120?(e.enter("taskListCheckValueChecked"),e.consume(c),e.exit("taskListCheckValueChecked"),a):n(c)}function a(c){return c===93?(e.enter("taskListCheckMarker"),e.consume(c),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),l):n(c)}function l(c){return on(c)?t(c):yn(c)?e.check({tokenize:CTe},t,n)(c):n(c)}}function CTe(e,t,n){return Dn(e,r,"whitespace");function r(i){return i===null?n(i):t(i)}}function STe(e){return sW([V_e,nTe(),uTe(e),hTe,yTe])}function ETe(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}const xTe={}.hasOwnProperty,QW=function(e,t,n,r){let i,o;typeof t=="string"||t instanceof RegExp?(o=[[t,n]],i=r):(o=t,i=n),i||(i={});const a=q8(i.ignore||[]),l=wTe(o);let c=-1;for(;++c<l.length;)KH(e,"text",u);return e;function u(h,m){let g=-1,b;for(;++g<m.length;){const E=m[g];if(a(E,b?b.children.indexOf(E):void 0,b))return;b=E}if(b)return p(h,m)}function p(h,m){const g=m[m.length-1],b=l[c][0],E=l[c][1];let x=0;const S=g.children.indexOf(h);let C=!1,_=[];b.lastIndex=0;let O=b.exec(h.value);for(;O;){const k=O.index,T={index:O.index,input:O.input,stack:[...m,h]};let I=E(...O,T);if(typeof I=="string"&&(I=I.length>0?{type:"text",value:I}:void 0),I!==!1&&(x!==k&&_.push({type:"text",value:h.value.slice(x,k)}),Array.isArray(I)?_.push(...I):I&&_.push(I),x=k+O[0].length,C=!0),!b.global)break;O=b.exec(h.value)}return C?(x<h.value.length&&_.push({type:"text",value:h.value.slice(x)}),g.children.splice(S,1,..._)):_=[h],S+_.length}};function wTe(e){const t=[];if(typeof e!="object")throw new TypeError("Expected array or object as schema");if(Array.isArray(e)){let n=-1;for(;++n<e.length;)t.push([VA(e[n][0]),GA(e[n][1])])}else{let n;for(n in e)xTe.call(e,n)&&t.push([VA(n),GA(e[n])])}return t}function VA(e){return typeof e=="string"?new RegExp(ETe(e),"g"):e}function GA(e){return typeof e=="function"?e:()=>e}const aC="phrasing",lC=["autolink","link","image","label"],_Te={transforms:[ATe],enter:{literalAutolink:OTe,literalAutolinkEmail:sC,literalAutolinkHttp:sC,literalAutolinkWww:sC},exit:{literalAutolink:NTe,literalAutolinkEmail:$Te,literalAutolinkHttp:ITe,literalAutolinkWww:kTe}},TTe={unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:aC,notInConstruct:lC},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:aC,notInConstruct:lC},{character:":",before:"[ps]",after:"\\/",inConstruct:aC,notInConstruct:lC}]};function OTe(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function sC(e){this.config.enter.autolinkProtocol.call(this,e)}function ITe(e){this.config.exit.autolinkProtocol.call(this,e)}function kTe(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.url="http://"+this.sliceSerialize(e)}function $Te(e){this.config.exit.autolinkEmail.call(this,e)}function NTe(e){this.exit(e)}function ATe(e){QW(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,RTe],[/([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/g,MTe]],{ignore:["link","linkReference"]})}function RTe(e,t,n,r,i){let o="";if(!ZW(i)||(/^w/i.test(t)&&(n=t+n,t="",o="http://"),!PTe(n)))return!1;const a=LTe(n+r);if(!a[0])return!1;const l={type:"link",title:null,url:o+t+a[0],children:[{type:"text",value:t+a[0]}]};return a[1]?[l,{type:"text",value:a[1]}]:l}function MTe(e,t,n,r){return!ZW(r,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function PTe(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 LTe(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=Ly(e,"(");let o=Ly(e,")");for(;r!==-1&&i>o;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),o++;return[e,n]}function ZW(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||Wu(n)||H2(n))&&(!t||n!==47)}function JW(e){return e.label||!e.identifier?e.label||"":bW(e.identifier)}function DTe(e,t,n){const r=t.indexStack,i=e.children||[],o=t.createTracker(n),a=[];let l=-1;for(r.push(-1);++l<i.length;){const c=i[l];r[r.length-1]=l,a.push(o.move(t.handle(c,e,t,{before:`
`,after:`
`,...o.current()}))),c.type!=="list"&&(t.bulletLastUsed=void 0),l<i.length-1&&a.push(o.move(FTe(c,i[l+1],e,t)))}return r.pop(),a.join("")}function FTe(e,t,n,r){let i=r.join.length;for(;i--;){const o=r.join[i](e,t,n,r);if(o===!0||o===1)break;if(typeof o=="number")return`
`.repeat(1+o);if(o===!1)return`
<!---->
`}return`
`}const BTe=/\r?\n|\r/g;function jTe(e,t){const n=[];let r=0,i=0,o;for(;o=BTe.exec(e);)a(e.slice(r,o.index)),n.push(o[0]),r=o.index+o[0].length,i++;return a(e.slice(r)),n.join("");function a(l){n.push(t(l,i,!l))}}function eU(e){if(!e._compiled){const t=(e.atBreak?"[\\r\\n][\\t ]*":"")+(e.before?"(?:"+e.before+")":"");e._compiled=new RegExp((t?"("+t+")":"")+(/[|\\{}()[\]^$+*?.-]/.test(e.character)?"\\":"")+e.character+(e.after?"(?:"+e.after+")":""),"g")}return e._compiled}function HTe(e,t){return qA(e,t.inConstruct,!0)&&!qA(e,t.notInConstruct,!1)}function qA(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 tU(e,t,n){const r=(n.before||"")+(t||"")+(n.after||""),i=[],o=[],a={};let l=-1;for(;++l<e.unsafe.length;){const p=e.unsafe[l];if(!HTe(e.stack,p))continue;const h=eU(p);let m;for(;m=h.exec(r);){const g="before"in p||!!p.atBreak,b="after"in p,E=m.index+(g?m[1].length:0);i.includes(E)?(a[E].before&&!g&&(a[E].before=!1),a[E].after&&!b&&(a[E].after=!1)):(i.push(E),a[E]={before:g,after:b})}}i.sort(zTe);let c=n.before?n.before.length:0;const u=r.length-(n.after?n.after.length:0);for(l=-1;++l<i.length;){const p=i[l];p<c||p>=u||p+1<u&&i[l+1]===p+1&&a[p].after&&!a[p+1].before&&!a[p+1].after||i[l-1]===p-1&&a[p].before&&!a[p-1].before&&!a[p-1].after||(c!==p&&o.push(XA(r.slice(c,p),"\\")),c=p,/[!-/:-@[-`{-~]/.test(r.charAt(p))&&(!n.encode||!n.encode.includes(r.charAt(p)))?o.push("\\"):(o.push("&#x"+r.charCodeAt(p).toString(16).toUpperCase()+";"),c++))}return o.push(XA(r.slice(c,u),n.after)),o.join("")}function zTe(e,t){return e-t}function XA(e,t){const n=/\\(?=[!-/:-@[-`{-~])/g,r=[],i=[],o=e+t;let a=-1,l=0,c;for(;c=n.exec(o);)r.push(c.index);for(;++a<r.length;)l!==r[a]&&i.push(e.slice(l,r[a])),i.push("\\"),l=r[a];return i.push(e.slice(l)),i.join("")}function K2(e){const t=e||{},n=t.now||{};let r=t.lineShift||0,i=n.line||1,o=n.column||1;return{move:c,current:a,shift:l};function a(){return{now:{line:i,column:o},lineShift:r}}function l(u){r+=u}function c(u){const p=u||"",h=p.split(/\r?\n|\r/g),m=h[h.length-1];return i+=h.length-1,o=h.length===1?o+m.length:1+m.length+r,p}}nU.peek=JTe;function WTe(){return{enter:{gfmFootnoteDefinition:KTe,gfmFootnoteDefinitionLabelString:VTe,gfmFootnoteCall:XTe,gfmFootnoteCallString:YTe},exit:{gfmFootnoteDefinition:qTe,gfmFootnoteDefinitionLabelString:GTe,gfmFootnoteCall:ZTe,gfmFootnoteCallString:QTe}}}function UTe(){return{unsafe:[{character:"[",inConstruct:["phrasing","label","reference"]}],handlers:{footnoteDefinition:e7e,footnoteReference:nU}}}function KTe(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function VTe(){this.buffer()}function GTe(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=il(this.sliceSerialize(e)).toLowerCase()}function qTe(e){this.exit(e)}function XTe(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function YTe(){this.buffer()}function QTe(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=il(this.sliceSerialize(e)).toLowerCase()}function ZTe(e){this.exit(e)}function nU(e,t,n,r){const i=K2(r);let o=i.move("[^");const a=n.enter("footnoteReference"),l=n.enter("reference");return o+=i.move(tU(n,JW(e),{...i.current(),before:o,after:"]"})),l(),a(),o+=i.move("]"),o}function JTe(){return"["}function e7e(e,t,n,r){const i=K2(r);let o=i.move("[^");const a=n.enter("footnoteDefinition"),l=n.enter("label");return o+=i.move(tU(n,JW(e),{...i.current(),before:o,after:"]"})),l(),o+=i.move("]:"+(e.children&&e.children.length>0?" ":"")),i.shift(4),o+=i.move(jTe(DTe(e,n,i.current()),t7e)),a(),o}function t7e(e,t,n){return t===0?e:(n?"":" ")+e}function rU(e,t,n){const r=t.indexStack,i=e.children||[],o=[];let a=-1,l=n.before;r.push(-1);let c=t.createTracker(n);for(;++a<i.length;){const u=i[a];let p;if(r[r.length-1]=a,a+1<i.length){let h=t.handle.handlers[i[a+1].type];h&&h.peek&&(h=h.peek),p=h?h(i[a+1],e,t,{before:"",after:"",...c.current()}).charAt(0):""}else p=n.after;o.length>0&&(l==="\r"||l===`
`)&&u.type==="html"&&(o[o.length-1]=o[o.length-1].replace(/(\r?\n|\r)$/," "),l=" ",c=t.createTracker(n),c.move(o.join(""))),o.push(c.move(t.handle(u,e,t,{...c.current(),before:l,after:p}))),l=o[o.length-1].slice(-1)}return r.pop(),o.join("")}const n7e=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];iU.peek=l7e;const r7e={canContainEols:["delete"],enter:{strikethrough:o7e},exit:{strikethrough:a7e}},i7e={unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:n7e}],handlers:{delete:iU}};function o7e(e){this.enter({type:"delete",children:[]},e)}function a7e(e){this.exit(e)}function iU(e,t,n,r){const i=K2(r),o=n.enter("strikethrough");let a=i.move("~~");return a+=rU(e,n,{...i.current(),before:a,after:"~"}),a+=i.move("~~"),o(),a}function l7e(){return"~"}oU.peek=s7e;function oU(e,t,n){let r=e.value||"",i="`",o=-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+" ");++o<n.unsafe.length;){const a=n.unsafe[o],l=eU(a);let c;if(a.atBreak)for(;c=l.exec(r);){let u=c.index;r.charCodeAt(u)===10&&r.charCodeAt(u-1)===13&&u--,r=r.slice(0,u)+" "+r.slice(c.index+1)}}return i+r+i}function s7e(){return"`"}function c7e(e){return e.length}function u7e(e,t){const n=t||{},r=(n.align||[]).concat(),i=n.stringLength||c7e,o=[],a=[],l=[],c=[];let u=0,p=-1;for(;++p<e.length;){const E=[],x=[];let S=-1;for(e[p].length>u&&(u=e[p].length);++S<e[p].length;){const C=d7e(e[p][S]);if(n.alignDelimiters!==!1){const _=i(C);x[S]=_,(c[S]===void 0||_>c[S])&&(c[S]=_)}E.push(C)}a[p]=E,l[p]=x}let h=-1;if(typeof r=="object"&&"length"in r)for(;++h<u;)o[h]=YA(r[h]);else{const E=YA(r);for(;++h<u;)o[h]=E}h=-1;const m=[],g=[];for(;++h<u;){const E=o[h];let x="",S="";E===99?(x=":",S=":"):E===108?x=":":E===114&&(S=":");let C=n.alignDelimiters===!1?1:Math.max(1,c[h]-x.length-S.length);const _=x+"-".repeat(C)+S;n.alignDelimiters!==!1&&(C=x.length+C+S.length,C>c[h]&&(c[h]=C),g[h]=C),m[h]=_}a.splice(1,0,m),l.splice(1,0,g),p=-1;const b=[];for(;++p<a.length;){const E=a[p],x=l[p];h=-1;const S=[];for(;++h<u;){const C=E[h]||"";let _="",O="";if(n.alignDelimiters!==!1){const k=c[h]-(x[h]||0),T=o[h];T===114?_=" ".repeat(k):T===99?k%2?(_=" ".repeat(k/2+.5),O=" ".repeat(k/2-.5)):(_=" ".repeat(k/2),O=_):O=" ".repeat(k)}n.delimiterStart!==!1&&!h&&S.push("|"),n.padding!==!1&&!(n.alignDelimiters===!1&&C==="")&&(n.delimiterStart!==!1||h)&&S.push(" "),n.alignDelimiters!==!1&&S.push(_),S.push(C),n.alignDelimiters!==!1&&S.push(O),n.padding!==!1&&S.push(" "),(n.delimiterEnd!==!1||h!==u-1)&&S.push("|")}b.push(n.delimiterEnd===!1?S.join("").replace(/ +$/,""):S.join(""))}return b.join(`
`)}function d7e(e){return e==null?"":String(e)}function YA(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}const f7e={enter:{table:p7e,tableData:QA,tableHeader:QA,tableRow:m7e},exit:{codeText:g7e,table:h7e,tableData:cC,tableHeader:cC,tableRow:cC}};function p7e(e){const t=e._align;this.enter({type:"table",align:t.map(n=>n==="none"?null:n),children:[]},e),this.setData("inTable",!0)}function h7e(e){this.exit(e),this.setData("inTable")}function m7e(e){this.enter({type:"tableRow",children:[]},e)}function cC(e){this.exit(e)}function QA(e){this.enter({type:"tableCell",children:[]},e)}function g7e(e){let t=this.resume();this.getData("inTable")&&(t=t.replace(/\\([\\|])/g,v7e));const n=this.stack[this.stack.length-1];n.value=t,this.exit(e)}function v7e(e,t){return t==="|"?t:e}function y7e(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,o=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{table:a,tableRow:l,tableCell:c,inlineCode:m}};function a(g,b,E,x){return u(p(g,E,x),g.align)}function l(g,b,E,x){const S=h(g,E,x),C=u([S]);return C.slice(0,C.indexOf(`
`))}function c(g,b,E,x){const S=E.enter("tableCell"),C=E.enter("phrasing"),_=rU(g,E,{...x,before:o,after:o});return C(),S(),_}function u(g,b){return u7e(g,{align:b,alignDelimiters:r,padding:n,stringLength:i})}function p(g,b,E){const x=g.children;let S=-1;const C=[],_=b.enter("table");for(;++S<x.length;)C[S]=h(x[S],b,E);return _(),C}function h(g,b,E){const x=g.children;let S=-1;const C=[],_=b.enter("tableRow");for(;++S<x.length;)C[S]=c(x[S],g,b,E);return _(),C}function m(g,b,E){let x=oU(g,b,E);return E.stack.includes("tableCell")&&(x=x.replace(/\|/g,"\\$&")),x}}function b7e(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 C7e(e){const t=e.options.listItemIndent||"tab";if(t===1||t==="1")return"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 S7e(e,t,n,r){const i=C7e(n);let o=n.bulletCurrent||b7e(n);t&&t.type==="list"&&t.ordered&&(o=(typeof t.start=="number"&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+o);let a=o.length+1;(i==="tab"||i==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(a=Math.ceil(a/4)*4);const l=n.createTracker(r);l.move(o+" ".repeat(a-o.length)),l.shift(a);const c=n.enter("listItem"),u=n.indentLines(n.containerFlow(e,l.current()),p);return c(),u;function p(h,m,g){return m?(g?"":" ".repeat(a))+h:(g?o:o+" ".repeat(a-o.length))+h}}const E7e={exit:{taskListCheckValueChecked:ZA,taskListCheckValueUnchecked:ZA,paragraph:w7e}},x7e={unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:_7e}};function ZA(e){const t=this.stack[this.stack.length-2];t.checked=e.type==="taskListCheckValueChecked"}function w7e(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],r=n.children[0];if(r&&r.type==="text"){const i=t.children;let o=-1,a;for(;++o<i.length;){const l=i[o];if(l.type==="paragraph"){a=l;break}}a===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 _7e(e,t,n,r){const i=e.children[0],o=typeof e.checked=="boolean"&&i&&i.type==="paragraph",a="["+(e.checked?"x":" ")+"] ",l=K2(r);o&&l.move(a);let c=S7e(e,t,n,{...r,...l.current()});return o&&(c=c.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,u)),c;function u(p){return p+a}}function T7e(){return[_Te,WTe(),r7e,f7e,E7e]}function O7e(e){return{extensions:[TTe,UTe(),i7e,y7e(e),x7e]}}function I7e(e={}){const t=this.data();n("micromarkExtensions",STe(e)),n("fromMarkdownExtensions",T7e()),n("toMarkdownExtensions",O7e(e));function n(r,i){(t[r]?t[r]:t[r]=[]).push(i)}}const uC={Strikethrough:'<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" fill="none" viewBox="0 0 48 48"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="4" d="M5 24h38M24 24c16 6 10 20 0 20s-12-8-12-8M36 12s-3-8-12-8-12.564 7.6-8.39 14"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="4" d="M12 36s4 8 12 8 12.564-7.6 8.39-14"/></svg>',CheckCorrect:'<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" fill="none" viewBox="0 0 48 48"><g stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="4" clip-path="url(#a)"><path d="M42 20v19a3 3 0 0 1-3 3H9a3 3 0 0 1-3-3V9a3 3 0 0 1 3-3h21"/><path d="m16 20 10 8L41 7"/></g><defs><clipPath id="a"><path fill="currentColor" d="M0 0h48v48H0z"/></clipPath></defs></svg>',InsertTable:'<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" fill="none" viewBox="0 0 48 48"><path stroke="currentColor" stroke-width="4" d="M39.3 6H8.7A2.7 2.7 0 0 0 6 8.7v30.6A2.7 2.7 0 0 0 8.7 42h30.6a2.7 2.7 0 0 0 2.7-2.7V8.7A2.7 2.7 0 0 0 39.3 6Z"/><path stroke="currentColor" stroke-linecap="round" stroke-width="4" d="M18 6v36M30 6v36M6 18h36M6 30h36"/></svg>'},k7e="Strikethrough",$7e="text",N7e="Table",A7e="Heading",R7e="Task list",M7e="todo",P7e={strike:k7e,strikeText:$7e,table:N7e,tableHeading:A7e,task:R7e,taskText:M7e};function aU({locale:e,...t}={}){const n={...P7e,...e};return{remark:r=>r.use(I7e,t),actions:[{title:n.strike,icon:uC.Strikethrough,cheatsheet:`~~${n.strikeText}~~`,handler:{type:"action",click({wrapText:r,editor:i}){r("~~"),i.focus()}}},{title:n.task,icon:uC.CheckCorrect,cheatsheet:`- [ ] ${n.taskText}`,handler:{type:"action",click({replaceLines:r,editor:i}){r(o=>"- [ ] "+o),i.focus()}}},{title:n.table,icon:uC.InsertTable,handler:{type:"action",click({editor:r,appendBlock:i,codemirror:o}){const{line:a}=i(`| ${n.tableHeading} | |
| --- | --- |
| | |
`);r.setSelection(o.Pos(a,2),o.Pos(a,2+n.tableHeading.length)),r.focus()}}}]}}const L7e="modulepreload",D7e=function(e){return"/notebase/"+e},JA={},lU=function(t,n,r){let i=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const a=document.querySelector("meta[property=csp-nonce]"),l=(a==null?void 0:a.nonce)||(a==null?void 0:a.getAttribute("nonce"));i=Promise.allSettled(n.map(c=>{if(c=D7e(c),c in JA)return;JA[c]=!0;const u=c.endsWith(".css"),p=u?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${c}"]${p}`))return;const h=document.createElement("link");if(h.rel=u?"stylesheet":L7e,u||(h.as="script"),h.crossOrigin="",h.href=c,l&&h.setAttribute("nonce",l),document.head.appendChild(h),u)return new Promise((m,g)=>{h.addEventListener("load",m),h.addEventListener("error",()=>g(new Error(`Unable to preload CSS for ${c}`)))})}))}function o(a){const l=new Event("vite:preloadError",{cancelable:!0});if(l.payload=a,window.dispatchEvent(l),!l.defaultPrevented)throw a}return i.then(a=>{for(const l of a||[])l.status==="rejected"&&o(l.reason);return t().catch(o)})};function sU({init:e}={}){let t;return{viewerEffect({markdownBody:n}){(async()=>{const r=n.querySelectorAll("pre>code");r.length!==0&&(t||(t=await lU(()=>import("./index-BA8YKADA.js"),[]).then(i=>i.default),e&&await e(t)),r.forEach(i=>{t.highlightElement(i)}))})()}}}/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */function cU(e){return typeof e>"u"||e===null}function F7e(e){return typeof e=="object"&&e!==null}function B7e(e){return Array.isArray(e)?e:cU(e)?[]:[e]}function j7e(e,t){var n,r,i,o;if(t)for(o=Object.keys(t),n=0,r=o.length;n<r;n+=1)i=o[n],e[i]=t[i];return e}function H7e(e,t){var n="",r;for(r=0;r<t;r+=1)n+=e;return n}function z7e(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}var W7e=cU,U7e=F7e,K7e=B7e,V7e=H7e,G7e=z7e,q7e=j7e,ao={isNothing:W7e,isObject:U7e,toArray:K7e,repeat:V7e,isNegativeZero:G7e,extend:q7e};function uU(e,t){var n="",r=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(n+='in "'+e.mark.name+'" '),n+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!t&&e.mark.snippet&&(n+=`
`+e.mark.snippet),r+" "+n):r}function pm(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=uU(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}pm.prototype=Object.create(Error.prototype);pm.prototype.constructor=pm;pm.prototype.toString=function(t){return this.name+": "+uU(this,t)};var us=pm;function dC(e,t,n,r,i){var o="",a="",l=Math.floor(i/2)-1;return r-t>l&&(o=" ... ",t=r-l+o.length),n-r>l&&(a=" ...",n=r+l-a.length),{str:o+e.slice(t,n).replace(/\t/g,"→")+a,pos:r-t+o.length}}function fC(e,t){return ao.repeat(" ",t-e.length)+e}function X7e(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||(t.maxLength=79),typeof t.indent!="number"&&(t.indent=1),typeof t.linesBefore!="number"&&(t.linesBefore=3),typeof t.linesAfter!="number"&&(t.linesAfter=2);for(var n=/\r?\n|\r|\0/g,r=[0],i=[],o,a=-1;o=n.exec(e.buffer);)i.push(o.index),r.push(o.index+o[0].length),e.position<=o.index&&a<0&&(a=r.length-2);a<0&&(a=r.length-1);var l="",c,u,p=Math.min(e.line+t.linesAfter,i.length).toString().length,h=t.maxLength-(t.indent+p+3);for(c=1;c<=t.linesBefore&&!(a-c<0);c++)u=dC(e.buffer,r[a-c],i[a-c],e.position-(r[a]-r[a-c]),h),l=ao.repeat(" ",t.indent)+fC((e.line-c+1).toString(),p)+" | "+u.str+`
`+l;for(u=dC(e.buffer,r[a],i[a],e.position,h),l+=ao.repeat(" ",t.indent)+fC((e.line+1).toString(),p)+" | "+u.str+`
`,l+=ao.repeat("-",t.indent+p+3+u.pos)+`^
`,c=1;c<=t.linesAfter&&!(a+c>=i.length);c++)u=dC(e.buffer,r[a+c],i[a+c],e.position-(r[a]-r[a+c]),h),l+=ao.repeat(" ",t.indent)+fC((e.line+c+1).toString(),p)+" | "+u.str+`
`;return l.replace(/\n$/,"")}var Y7e=X7e,Q7e=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],Z7e=["scalar","sequence","mapping"];function J7e(e){var t={};return e!==null&&Object.keys(e).forEach(function(n){e[n].forEach(function(r){t[String(r)]=n})}),t}function eOe(e,t){if(t=t||{},Object.keys(t).forEach(function(n){if(Q7e.indexOf(n)===-1)throw new us('Unknown option "'+n+'" is met in definition of "'+e+'" YAML type.')}),this.options=t,this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(n){return n},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.representName=t.representName||null,this.defaultStyle=t.defaultStyle||null,this.multi=t.multi||!1,this.styleAliases=J7e(t.styleAliases||null),Z7e.indexOf(this.kind)===-1)throw new us('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}var Xi=eOe;function eR(e,t){var n=[];return e[t].forEach(function(r){var i=n.length;n.forEach(function(o,a){o.tag===r.tag&&o.kind===r.kind&&o.multi===r.multi&&(i=a)}),n[i]=r}),n}function tOe(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},t,n;function r(i){i.multi?(e.multi[i.kind].push(i),e.multi.fallback.push(i)):e[i.kind][i.tag]=e.fallback[i.tag]=i}for(t=0,n=arguments.length;t<n;t+=1)arguments[t].forEach(r);return e}function ox(e){return this.extend(e)}ox.prototype.extend=function(t){var n=[],r=[];if(t instanceof Xi)r.push(t);else if(Array.isArray(t))r=r.concat(t);else if(t&&(Array.isArray(t.implicit)||Array.isArray(t.explicit)))t.implicit&&(n=n.concat(t.implicit)),t.explicit&&(r=r.concat(t.explicit));else throw new us("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");n.forEach(function(o){if(!(o instanceof Xi))throw new us("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(o.loadKind&&o.loadKind!=="scalar")throw new us("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(o.multi)throw new us("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),r.forEach(function(o){if(!(o instanceof Xi))throw new us("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var i=Object.create(ox.prototype);return i.implicit=(this.implicit||[]).concat(n),i.explicit=(this.explicit||[]).concat(r),i.compiledImplicit=eR(i,"implicit"),i.compiledExplicit=eR(i,"explicit"),i.compiledTypeMap=tOe(i.compiledImplicit,i.compiledExplicit),i};var nOe=ox,rOe=new Xi("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}}),iOe=new Xi("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}}),oOe=new Xi("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}}),aOe=new nOe({explicit:[rOe,iOe,oOe]});function lOe(e){if(e===null)return!0;var t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}function sOe(){return null}function cOe(e){return e===null}var uOe=new Xi("tag:yaml.org,2002:null",{kind:"scalar",resolve:lOe,construct:sOe,predicate:cOe,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function dOe(e){if(e===null)return!1;var t=e.length;return t===4&&(e==="true"||e==="True"||e==="TRUE")||t===5&&(e==="false"||e==="False"||e==="FALSE")}function fOe(e){return e==="true"||e==="True"||e==="TRUE"}function pOe(e){return Object.prototype.toString.call(e)==="[object Boolean]"}var hOe=new Xi("tag:yaml.org,2002:bool",{kind:"scalar",resolve:dOe,construct:fOe,predicate:pOe,represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"});function mOe(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function gOe(e){return 48<=e&&e<=55}function vOe(e){return 48<=e&&e<=57}function yOe(e){if(e===null)return!1;var t=e.length,n=0,r=!1,i;if(!t)return!1;if(i=e[n],(i==="-"||i==="+")&&(i=e[++n]),i==="0"){if(n+1===t)return!0;if(i=e[++n],i==="b"){for(n++;n<t;n++)if(i=e[n],i!=="_"){if(i!=="0"&&i!=="1")return!1;r=!0}return r&&i!=="_"}if(i==="x"){for(n++;n<t;n++)if(i=e[n],i!=="_"){if(!mOe(e.charCodeAt(n)))return!1;r=!0}return r&&i!=="_"}if(i==="o"){for(n++;n<t;n++)if(i=e[n],i!=="_"){if(!gOe(e.charCodeAt(n)))return!1;r=!0}return r&&i!=="_"}}if(i==="_")return!1;for(;n<t;n++)if(i=e[n],i!=="_"){if(!vOe(e.charCodeAt(n)))return!1;r=!0}return!(!r||i==="_")}function bOe(e){var t=e,n=1,r;if(t.indexOf("_")!==-1&&(t=t.replace(/_/g,"")),r=t[0],(r==="-"||r==="+")&&(r==="-"&&(n=-1),t=t.slice(1),r=t[0]),t==="0")return 0;if(r==="0"){if(t[1]==="b")return n*parseInt(t.slice(2),2);if(t[1]==="x")return n*parseInt(t.slice(2),16);if(t[1]==="o")return n*parseInt(t.slice(2),8)}return n*parseInt(t,10)}function COe(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!ao.isNegativeZero(e)}var SOe=new Xi("tag:yaml.org,2002:int",{kind:"scalar",resolve:yOe,construct:bOe,predicate:COe,represent:{binary:function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),EOe=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function xOe(e){return!(e===null||!EOe.test(e)||e[e.length-1]==="_")}function wOe(e){var t,n;return t=e.replace(/_/g,"").toLowerCase(),n=t[0]==="-"?-1:1,"+-".indexOf(t[0])>=0&&(t=t.slice(1)),t===".inf"?n===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:t===".nan"?NaN:n*parseFloat(t,10)}var _Oe=/^[-+]?[0-9]+e/;function TOe(e,t){var n;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(ao.isNegativeZero(e))return"-0.0";return n=e.toString(10),_Oe.test(n)?n.replace("e",".e"):n}function OOe(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||ao.isNegativeZero(e))}var IOe=new Xi("tag:yaml.org,2002:float",{kind:"scalar",resolve:xOe,construct:wOe,predicate:OOe,represent:TOe,defaultStyle:"lowercase"}),kOe=aOe.extend({implicit:[uOe,hOe,SOe,IOe]}),$Oe=kOe,dU=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),fU=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function NOe(e){return e===null?!1:dU.exec(e)!==null||fU.exec(e)!==null}function AOe(e){var t,n,r,i,o,a,l,c=0,u=null,p,h,m;if(t=dU.exec(e),t===null&&(t=fU.exec(e)),t===null)throw new Error("Date resolve error");if(n=+t[1],r=+t[2]-1,i=+t[3],!t[4])return new Date(Date.UTC(n,r,i));if(o=+t[4],a=+t[5],l=+t[6],t[7]){for(c=t[7].slice(0,3);c.length<3;)c+="0";c=+c}return t[9]&&(p=+t[10],h=+(t[11]||0),u=(p*60+h)*6e4,t[9]==="-"&&(u=-u)),m=new Date(Date.UTC(n,r,i,o,a,l,c)),u&&m.setTime(m.getTime()-u),m}function ROe(e){return e.toISOString()}var MOe=new Xi("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:NOe,construct:AOe,instanceOf:Date,represent:ROe});function POe(e){return e==="<<"||e===null}var LOe=new Xi("tag:yaml.org,2002:merge",{kind:"scalar",resolve:POe}),Tw=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
\r`;function DOe(e){if(e===null)return!1;var t,n,r=0,i=e.length,o=Tw;for(n=0;n<i;n++)if(t=o.indexOf(e.charAt(n)),!(t>64)){if(t<0)return!1;r+=6}return r%8===0}function FOe(e){var t,n,r=e.replace(/[\r\n=]/g,""),i=r.length,o=Tw,a=0,l=[];for(t=0;t<i;t++)t%4===0&&t&&(l.push(a>>16&255),l.push(a>>8&255),l.push(a&255)),a=a<<6|o.indexOf(r.charAt(t));return n=i%4*6,n===0?(l.push(a>>16&255),l.push(a>>8&255),l.push(a&255)):n===18?(l.push(a>>10&255),l.push(a>>2&255)):n===12&&l.push(a>>4&255),new Uint8Array(l)}function BOe(e){var t="",n=0,r,i,o=e.length,a=Tw;for(r=0;r<o;r++)r%3===0&&r&&(t+=a[n>>18&63],t+=a[n>>12&63],t+=a[n>>6&63],t+=a[n&63]),n=(n<<8)+e[r];return i=o%3,i===0?(t+=a[n>>18&63],t+=a[n>>12&63],t+=a[n>>6&63],t+=a[n&63]):i===2?(t+=a[n>>10&63],t+=a[n>>4&63],t+=a[n<<2&63],t+=a[64]):i===1&&(t+=a[n>>2&63],t+=a[n<<4&63],t+=a[64],t+=a[64]),t}function jOe(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}var HOe=new Xi("tag:yaml.org,2002:binary",{kind:"scalar",resolve:DOe,construct:FOe,predicate:jOe,represent:BOe}),zOe=Object.prototype.hasOwnProperty,WOe=Object.prototype.toString;function UOe(e){if(e===null)return!0;var t=[],n,r,i,o,a,l=e;for(n=0,r=l.length;n<r;n+=1){if(i=l[n],a=!1,WOe.call(i)!=="[object Object]")return!1;for(o in i)if(zOe.call(i,o))if(!a)a=!0;else return!1;if(!a)return!1;if(t.indexOf(o)===-1)t.push(o);else return!1}return!0}function KOe(e){return e!==null?e:[]}var VOe=new Xi("tag:yaml.org,2002:omap",{kind:"sequence",resolve:UOe,construct:KOe}),GOe=Object.prototype.toString;function qOe(e){if(e===null)return!0;var t,n,r,i,o,a=e;for(o=new Array(a.length),t=0,n=a.length;t<n;t+=1){if(r=a[t],GOe.call(r)!=="[object Object]"||(i=Object.keys(r),i.length!==1))return!1;o[t]=[i[0],r[i[0]]]}return!0}function XOe(e){if(e===null)return[];var t,n,r,i,o,a=e;for(o=new Array(a.length),t=0,n=a.length;t<n;t+=1)r=a[t],i=Object.keys(r),o[t]=[i[0],r[i[0]]];return o}var YOe=new Xi("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:qOe,construct:XOe}),QOe=Object.prototype.hasOwnProperty;function ZOe(e){if(e===null)return!0;var t,n=e;for(t in n)if(QOe.call(n,t)&&n[t]!==null)return!1;return!0}function JOe(e){return e!==null?e:{}}var eIe=new Xi("tag:yaml.org,2002:set",{kind:"mapping",resolve:ZOe,construct:JOe}),tIe=$Oe.extend({implicit:[MOe,LOe],explicit:[HOe,VOe,YOe,eIe]}),Ic=Object.prototype.hasOwnProperty,Wy=1,pU=2,hU=3,Uy=4,pC=1,nIe=2,tR=3,rIe=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,iIe=/[\x85\u2028\u2029]/,oIe=/[,\[\]\{\}]/,mU=/^(?:!|!!|![a-z\-]+!)$/i,gU=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function nR(e){return Object.prototype.toString.call(e)}function Ml(e){return e===10||e===13}function Nu(e){return e===9||e===32}function ko(e){return e===9||e===32||e===10||e===13}function pf(e){return e===44||e===91||e===93||e===123||e===125}function aIe(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}function lIe(e){return e===120?2:e===117?4:e===85?8:0}function sIe(e){return 48<=e&&e<=57?e-48:-1}function rR(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?`
`:e===118?"\v":e===102?"\f":e===114?"\r":e===101?"\x1B":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"…":e===95?" ":e===76?"\u2028":e===80?"\u2029":""}function cIe(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}var vU=new Array(256),yU=new Array(256);for(var jd=0;jd<256;jd++)vU[jd]=rR(jd)?1:0,yU[jd]=rR(jd);function uIe(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||tIe,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function bU(e,t){var n={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return n.snippet=Y7e(n),new us(t,n)}function an(e,t){throw bU(e,t)}function Ky(e,t){e.onWarning&&e.onWarning.call(null,bU(e,t))}var iR={YAML:function(t,n,r){var i,o,a;t.version!==null&&an(t,"duplication of %YAML directive"),r.length!==1&&an(t,"YAML directive accepts exactly one argument"),i=/^([0-9]+)\.([0-9]+)$/.exec(r[0]),i===null&&an(t,"ill-formed argument of the YAML directive"),o=parseInt(i[1],10),a=parseInt(i[2],10),o!==1&&an(t,"unacceptable YAML version of the document"),t.version=r[0],t.checkLineBreaks=a<2,a!==1&&a!==2&&Ky(t,"unsupported YAML version of the document")},TAG:function(t,n,r){var i,o;r.length!==2&&an(t,"TAG directive accepts exactly two arguments"),i=r[0],o=r[1],mU.test(i)||an(t,"ill-formed tag handle (first argument) of the TAG directive"),Ic.call(t.tagMap,i)&&an(t,'there is a previously declared suffix for "'+i+'" tag handle'),gU.test(o)||an(t,"ill-formed tag prefix (second argument) of the TAG directive");try{o=decodeURIComponent(o)}catch{an(t,"tag prefix is malformed: "+o)}t.tagMap[i]=o}};function bc(e,t,n,r){var i,o,a,l;if(t<n){if(l=e.input.slice(t,n),r)for(i=0,o=l.length;i<o;i+=1)a=l.charCodeAt(i),a===9||32<=a&&a<=1114111||an(e,"expected valid JSON character");else rIe.test(l)&&an(e,"the stream contains non-printable characters");e.result+=l}}function oR(e,t,n,r){var i,o,a,l;for(ao.isObject(n)||an(e,"cannot merge mappings; the provided source object is unacceptable"),i=Object.keys(n),a=0,l=i.length;a<l;a+=1)o=i[a],Ic.call(t,o)||(t[o]=n[o],r[o]=!0)}function hf(e,t,n,r,i,o,a,l,c){var u,p;if(Array.isArray(i))for(i=Array.prototype.slice.call(i),u=0,p=i.length;u<p;u+=1)Array.isArray(i[u])&&an(e,"nested arrays are not supported inside keys"),typeof i=="object"&&nR(i[u])==="[object Object]"&&(i[u]="[object Object]");if(typeof i=="object"&&nR(i)==="[object Object]"&&(i="[object Object]"),i=String(i),t===null&&(t={}),r==="tag:yaml.org,2002:merge")if(Array.isArray(o))for(u=0,p=o.length;u<p;u+=1)oR(e,t,o[u],n);else oR(e,t,o,n);else!e.json&&!Ic.call(n,i)&&Ic.call(t,i)&&(e.line=a||e.line,e.lineStart=l||e.lineStart,e.position=c||e.position,an(e,"duplicated mapping key")),i==="__proto__"?Object.defineProperty(t,i,{configurable:!0,enumerable:!0,writable:!0,value:o}):t[i]=o,delete n[i];return t}function Ow(e){var t;t=e.input.charCodeAt(e.position),t===10?e.position++:t===13?(e.position++,e.input.charCodeAt(e.position)===10&&e.position++):an(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function ri(e,t,n){for(var r=0,i=e.input.charCodeAt(e.position);i!==0;){for(;Nu(i);)i===9&&e.firstTabInLine===-1&&(e.firstTabInLine=e.position),i=e.input.charCodeAt(++e.position);if(t&&i===35)do i=e.input.charCodeAt(++e.position);while(i!==10&&i!==13&&i!==0);if(Ml(i))for(Ow(e),i=e.input.charCodeAt(e.position),r++,e.lineIndent=0;i===32;)e.lineIndent++,i=e.input.charCodeAt(++e.position);else break}return n!==-1&&r!==0&&e.lineIndent<n&&Ky(e,"deficient indentation"),r}function V2(e){var t=e.position,n;return n=e.input.charCodeAt(t),!!((n===45||n===46)&&n===e.input.charCodeAt(t+1)&&n===e.input.charCodeAt(t+2)&&(t+=3,n=e.input.charCodeAt(t),n===0||ko(n)))}function Iw(e,t){t===1?e.result+=" ":t>1&&(e.result+=ao.repeat(`
`,t-1))}function dIe(e,t,n){var r,i,o,a,l,c,u,p,h=e.kind,m=e.result,g;if(g=e.input.charCodeAt(e.position),ko(g)||pf(g)||g===35||g===38||g===42||g===33||g===124||g===62||g===39||g===34||g===37||g===64||g===96||(g===63||g===45)&&(i=e.input.charCodeAt(e.position+1),ko(i)||n&&pf(i)))return!1;for(e.kind="scalar",e.result="",o=a=e.position,l=!1;g!==0;){if(g===58){if(i=e.input.charCodeAt(e.position+1),ko(i)||n&&pf(i))break}else if(g===35){if(r=e.input.charCodeAt(e.position-1),ko(r))break}else{if(e.position===e.lineStart&&V2(e)||n&&pf(g))break;if(Ml(g))if(c=e.line,u=e.lineStart,p=e.lineIndent,ri(e,!1,-1),e.lineIndent>=t){l=!0,g=e.input.charCodeAt(e.position);continue}else{e.position=a,e.line=c,e.lineStart=u,e.lineIndent=p;break}}l&&(bc(e,o,a,!1),Iw(e,e.line-c),o=a=e.position,l=!1),Nu(g)||(a=e.position+1),g=e.input.charCodeAt(++e.position)}return bc(e,o,a,!1),e.result?!0:(e.kind=h,e.result=m,!1)}function fIe(e,t){var n,r,i;if(n=e.input.charCodeAt(e.position),n!==39)return!1;for(e.kind="scalar",e.result="",e.position++,r=i=e.position;(n=e.input.charCodeAt(e.position))!==0;)if(n===39)if(bc(e,r,e.position,!0),n=e.input.charCodeAt(++e.position),n===39)r=e.position,e.position++,i=e.position;else return!0;else Ml(n)?(bc(e,r,i,!0),Iw(e,ri(e,!1,t)),r=i=e.position):e.position===e.lineStart&&V2(e)?an(e,"unexpected end of the document within a single quoted scalar"):(e.position++,i=e.position);an(e,"unexpected end of the stream within a single quoted scalar")}function pIe(e,t){var n,r,i,o,a,l;if(l=e.input.charCodeAt(e.position),l!==34)return!1;for(e.kind="scalar",e.result="",e.position++,n=r=e.position;(l=e.input.charCodeAt(e.position))!==0;){if(l===34)return bc(e,n,e.position,!0),e.position++,!0;if(l===92){if(bc(e,n,e.position,!0),l=e.input.charCodeAt(++e.position),Ml(l))ri(e,!1,t);else if(l<256&&vU[l])e.result+=yU[l],e.position++;else if((a=lIe(l))>0){for(i=a,o=0;i>0;i--)l=e.input.charCodeAt(++e.position),(a=aIe(l))>=0?o=(o<<4)+a:an(e,"expected hexadecimal character");e.result+=cIe(o),e.position++}else an(e,"unknown escape sequence");n=r=e.position}else Ml(l)?(bc(e,n,r,!0),Iw(e,ri(e,!1,t)),n=r=e.position):e.position===e.lineStart&&V2(e)?an(e,"unexpected end of the document within a double quoted scalar"):(e.position++,r=e.position)}an(e,"unexpected end of the stream within a double quoted scalar")}function hIe(e,t){var n=!0,r,i,o,a=e.tag,l,c=e.anchor,u,p,h,m,g,b=Object.create(null),E,x,S,C;if(C=e.input.charCodeAt(e.position),C===91)p=93,g=!1,l=[];else if(C===123)p=125,g=!0,l={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=l),C=e.input.charCodeAt(++e.position);C!==0;){if(ri(e,!0,t),C=e.input.charCodeAt(e.position),C===p)return e.position++,e.tag=a,e.anchor=c,e.kind=g?"mapping":"sequence",e.result=l,!0;n?C===44&&an(e,"expected the node content, but found ','"):an(e,"missed comma between flow collection entries"),x=E=S=null,h=m=!1,C===63&&(u=e.input.charCodeAt(e.position+1),ko(u)&&(h=m=!0,e.position++,ri(e,!0,t))),r=e.line,i=e.lineStart,o=e.position,r1(e,t,Wy,!1,!0),x=e.tag,E=e.result,ri(e,!0,t),C=e.input.charCodeAt(e.position),(m||e.line===r)&&C===58&&(h=!0,C=e.input.charCodeAt(++e.position),ri(e,!0,t),r1(e,t,Wy,!1,!0),S=e.result),g?hf(e,l,b,x,E,S,r,i,o):h?l.push(hf(e,null,b,x,E,S,r,i,o)):l.push(E),ri(e,!0,t),C=e.input.charCodeAt(e.position),C===44?(n=!0,C=e.input.charCodeAt(++e.position)):n=!1}an(e,"unexpected end of the stream within a flow collection")}function mIe(e,t){var n,r,i=pC,o=!1,a=!1,l=t,c=0,u=!1,p,h;if(h=e.input.charCodeAt(e.position),h===124)r=!1;else if(h===62)r=!0;else return!1;for(e.kind="scalar",e.result="";h!==0;)if(h=e.input.charCodeAt(++e.position),h===43||h===45)pC===i?i=h===43?tR:nIe:an(e,"repeat of a chomping mode identifier");else if((p=sIe(h))>=0)p===0?an(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):a?an(e,"repeat of an indentation width identifier"):(l=t+p-1,a=!0);else break;if(Nu(h)){do h=e.input.charCodeAt(++e.position);while(Nu(h));if(h===35)do h=e.input.charCodeAt(++e.position);while(!Ml(h)&&h!==0)}for(;h!==0;){for(Ow(e),e.lineIndent=0,h=e.input.charCodeAt(e.position);(!a||e.lineIndent<l)&&h===32;)e.lineIndent++,h=e.input.charCodeAt(++e.position);if(!a&&e.lineIndent>l&&(l=e.lineIndent),Ml(h)){c++;continue}if(e.lineIndent<l){i===tR?e.result+=ao.repeat(`
`,o?1+c:c):i===pC&&o&&(e.result+=`
`);break}for(r?Nu(h)?(u=!0,e.result+=ao.repeat(`
`,o?1+c:c)):u?(u=!1,e.result+=ao.repeat(`
`,c+1)):c===0?o&&(e.result+=" "):e.result+=ao.repeat(`
`,c):e.result+=ao.repeat(`
`,o?1+c:c),o=!0,a=!0,c=0,n=e.position;!Ml(h)&&h!==0;)h=e.input.charCodeAt(++e.position);bc(e,n,e.position,!1)}return!0}function aR(e,t){var n,r=e.tag,i=e.anchor,o=[],a,l=!1,c;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=o),c=e.input.charCodeAt(e.position);c!==0&&(e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,an(e,"tab characters must not be used in indentation")),!(c!==45||(a=e.input.charCodeAt(e.position+1),!ko(a))));){if(l=!0,e.position++,ri(e,!0,-1)&&e.lineIndent<=t){o.push(null),c=e.input.charCodeAt(e.position);continue}if(n=e.line,r1(e,t,hU,!1,!0),o.push(e.result),ri(e,!0,-1),c=e.input.charCodeAt(e.position),(e.line===n||e.lineIndent>t)&&c!==0)an(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break}return l?(e.tag=r,e.anchor=i,e.kind="sequence",e.result=o,!0):!1}function gIe(e,t,n){var r,i,o,a,l,c,u=e.tag,p=e.anchor,h={},m=Object.create(null),g=null,b=null,E=null,x=!1,S=!1,C;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=h),C=e.input.charCodeAt(e.position);C!==0;){if(!x&&e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,an(e,"tab characters must not be used in indentation")),r=e.input.charCodeAt(e.position+1),o=e.line,(C===63||C===58)&&ko(r))C===63?(x&&(hf(e,h,m,g,b,null,a,l,c),g=b=E=null),S=!0,x=!0,i=!0):x?(x=!1,i=!0):an(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,C=r;else{if(a=e.line,l=e.lineStart,c=e.position,!r1(e,n,pU,!1,!0))break;if(e.line===o){for(C=e.input.charCodeAt(e.position);Nu(C);)C=e.input.charCodeAt(++e.position);if(C===58)C=e.input.charCodeAt(++e.position),ko(C)||an(e,"a whitespace character is expected after the key-value separator within a block mapping"),x&&(hf(e,h,m,g,b,null,a,l,c),g=b=E=null),S=!0,x=!1,i=!1,g=e.tag,b=e.result;else if(S)an(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=u,e.anchor=p,!0}else if(S)an(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return e.tag=u,e.anchor=p,!0}if((e.line===o||e.lineIndent>t)&&(x&&(a=e.line,l=e.lineStart,c=e.position),r1(e,t,Uy,!0,i)&&(x?b=e.result:E=e.result),x||(hf(e,h,m,g,b,E,a,l,c),g=b=E=null),ri(e,!0,-1),C=e.input.charCodeAt(e.position)),(e.line===o||e.lineIndent>t)&&C!==0)an(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return x&&hf(e,h,m,g,b,null,a,l,c),S&&(e.tag=u,e.anchor=p,e.kind="mapping",e.result=h),S}function vIe(e){var t,n=!1,r=!1,i,o,a;if(a=e.input.charCodeAt(e.position),a!==33)return!1;if(e.tag!==null&&an(e,"duplication of a tag property"),a=e.input.charCodeAt(++e.position),a===60?(n=!0,a=e.input.charCodeAt(++e.position)):a===33?(r=!0,i="!!",a=e.input.charCodeAt(++e.position)):i="!",t=e.position,n){do a=e.input.charCodeAt(++e.position);while(a!==0&&a!==62);e.position<e.length?(o=e.input.slice(t,e.position),a=e.input.charCodeAt(++e.position)):an(e,"unexpected end of the stream within a verbatim tag")}else{for(;a!==0&&!ko(a);)a===33&&(r?an(e,"tag suffix cannot contain exclamation marks"):(i=e.input.slice(t-1,e.position+1),mU.test(i)||an(e,"named tag handle cannot contain such characters"),r=!0,t=e.position+1)),a=e.input.charCodeAt(++e.position);o=e.input.slice(t,e.position),oIe.test(o)&&an(e,"tag suffix cannot contain flow indicator characters")}o&&!gU.test(o)&&an(e,"tag name cannot contain such characters: "+o);try{o=decodeURIComponent(o)}catch{an(e,"tag name is malformed: "+o)}return n?e.tag=o:Ic.call(e.tagMap,i)?e.tag=e.tagMap[i]+o:i==="!"?e.tag="!"+o:i==="!!"?e.tag="tag:yaml.org,2002:"+o:an(e,'undeclared tag handle "'+i+'"'),!0}function yIe(e){var t,n;if(n=e.input.charCodeAt(e.position),n!==38)return!1;for(e.anchor!==null&&an(e,"duplication of an anchor property"),n=e.input.charCodeAt(++e.position),t=e.position;n!==0&&!ko(n)&&!pf(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&an(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}function bIe(e){var t,n,r;if(r=e.input.charCodeAt(e.position),r!==42)return!1;for(r=e.input.charCodeAt(++e.position),t=e.position;r!==0&&!ko(r)&&!pf(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&an(e,"name of an alias node must contain at least one character"),n=e.input.slice(t,e.position),Ic.call(e.anchorMap,n)||an(e,'unidentified alias "'+n+'"'),e.result=e.anchorMap[n],ri(e,!0,-1),!0}function r1(e,t,n,r,i){var o,a,l,c=1,u=!1,p=!1,h,m,g,b,E,x;if(e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,o=a=l=Uy===n||hU===n,r&&ri(e,!0,-1)&&(u=!0,e.lineIndent>t?c=1:e.lineIndent===t?c=0:e.lineIndent<t&&(c=-1)),c===1)for(;vIe(e)||yIe(e);)ri(e,!0,-1)?(u=!0,l=o,e.lineIndent>t?c=1:e.lineIndent===t?c=0:e.lineIndent<t&&(c=-1)):l=!1;if(l&&(l=u||i),(c===1||Uy===n)&&(Wy===n||pU===n?E=t:E=t+1,x=e.position-e.lineStart,c===1?l&&(aR(e,x)||gIe(e,x,E))||hIe(e,E)?p=!0:(a&&mIe(e,E)||fIe(e,E)||pIe(e,E)?p=!0:bIe(e)?(p=!0,(e.tag!==null||e.anchor!==null)&&an(e,"alias node should not have any properties")):dIe(e,E,Wy===n)&&(p=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):c===0&&(p=l&&aR(e,x))),e.tag===null)e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);else if(e.tag==="?"){for(e.result!==null&&e.kind!=="scalar"&&an(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),h=0,m=e.implicitTypes.length;h<m;h+=1)if(b=e.implicitTypes[h],b.resolve(e.result)){e.result=b.construct(e.result),e.tag=b.tag,e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);break}}else if(e.tag!=="!"){if(Ic.call(e.typeMap[e.kind||"fallback"],e.tag))b=e.typeMap[e.kind||"fallback"][e.tag];else for(b=null,g=e.typeMap.multi[e.kind||"fallback"],h=0,m=g.length;h<m;h+=1)if(e.tag.slice(0,g[h].tag.length)===g[h].tag){b=g[h];break}b||an(e,"unknown tag !<"+e.tag+">"),e.result!==null&&b.kind!==e.kind&&an(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+b.kind+'", not "'+e.kind+'"'),b.resolve(e.result,e.tag)?(e.result=b.construct(e.result,e.tag),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):an(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||p}function CIe(e){var t=e.position,n,r,i,o=!1,a;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(a=e.input.charCodeAt(e.position))!==0&&(ri(e,!0,-1),a=e.input.charCodeAt(e.position),!(e.lineIndent>0||a!==37));){for(o=!0,a=e.input.charCodeAt(++e.position),n=e.position;a!==0&&!ko(a);)a=e.input.charCodeAt(++e.position);for(r=e.input.slice(n,e.position),i=[],r.length<1&&an(e,"directive name must not be less than one character in length");a!==0;){for(;Nu(a);)a=e.input.charCodeAt(++e.position);if(a===35){do a=e.input.charCodeAt(++e.position);while(a!==0&&!Ml(a));break}if(Ml(a))break;for(n=e.position;a!==0&&!ko(a);)a=e.input.charCodeAt(++e.position);i.push(e.input.slice(n,e.position))}a!==0&&Ow(e),Ic.call(iR,r)?iR[r](e,r,i):Ky(e,'unknown document directive "'+r+'"')}if(ri(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,ri(e,!0,-1)):o&&an(e,"directives end mark is expected"),r1(e,e.lineIndent-1,Uy,!1,!0),ri(e,!0,-1),e.checkLineBreaks&&iIe.test(e.input.slice(t,e.position))&&Ky(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&V2(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,ri(e,!0,-1));return}if(e.position<e.length-1)an(e,"end of the stream or a document separator is expected");else return}function CU(e,t){e=String(e),t=t||{},e.length!==0&&(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13&&(e+=`
`),e.charCodeAt(0)===65279&&(e=e.slice(1)));var n=new uIe(e,t),r=e.indexOf("\0");for(r!==-1&&(n.position=r,an(n,"null byte is not allowed in input")),n.input+="\0";n.input.charCodeAt(n.position)===32;)n.lineIndent+=1,n.position+=1;for(;n.position<n.length-1;)CIe(n);return n.documents}function SIe(e,t,n){t!==null&&typeof t=="object"&&typeof n>"u"&&(n=t,t=null);var r=CU(e,n);if(typeof t!="function")return r;for(var i=0,o=r.length;i<o;i+=1)t(r[i])}function EIe(e,t){var n=CU(e,t);if(n.length!==0){if(n.length===1)return n[0];throw new us("expected a single document in the stream, but found more")}}var xIe=SIe,wIe=EIe,_Ie={loadAll:xIe,load:wIe},TIe=_Ie.load,SU={exports:{}};(function(e){(function(){var t;t=e.exports=i,t.format=i,t.vsprintf=r,typeof console<"u"&&typeof console.log=="function"&&(t.printf=n);function n(){console.log(i.apply(null,arguments))}function r(o,a){return i.apply(null,[o].concat(a))}function i(o){for(var a=1,l=[].slice.call(arguments),c=0,u=o.length,p="",h,m=!1,g,b,E=!1,x,S=function(){return l[a++]},C=function(){for(var _="";/\d/.test(o[c]);)_+=o[c++],h=o[c];return _.length>0?parseInt(_):null};c<u;++c)if(h=o[c],m)switch(m=!1,h=="."?(E=!1,h=o[++c]):h=="0"&&o[c+1]=="."?(E=!0,c+=2,h=o[c]):E=!0,x=C(),h){case"b":p+=parseInt(S(),10).toString(2);break;case"c":g=S(),typeof g=="string"||g instanceof String?p+=g:p+=String.fromCharCode(parseInt(g,10));break;case"d":p+=parseInt(S(),10);break;case"f":b=String(parseFloat(S()).toFixed(x||6)),p+=E?b:b.replace(/^0/,"");break;case"j":p+=JSON.stringify(S());break;case"o":p+="0"+parseInt(S(),10).toString(8);break;case"s":p+=S();break;case"x":p+="0x"+parseInt(S(),10).toString(16);break;case"X":p+="0x"+parseInt(S(),10).toString(16).toUpperCase();break;default:p+=h;break}else h==="%"?m=!0:p+=h;return p}})()})(SU);var OIe=SU.exports;const IIe=dl(OIe),Lg=Object.assign(ou(Error),{eval:ou(EvalError),range:ou(RangeError),reference:ou(ReferenceError),syntax:ou(SyntaxError),type:ou(TypeError),uri:ou(URIError)});function ou(e){return t.displayName=e.displayName||e.name,t;function t(n,...r){const i=n&&IIe(n,...r);return new e(i)}}const Dg={}.hasOwnProperty,lR={yaml:"-",toml:"+"};function kw(e){const t=[];let n=-1;const r=Array.isArray(e)?e:e?[e]:["yaml"];for(;++n<r.length;)t[n]=kIe(r[n]);return t}function kIe(e){let t=e;if(typeof t=="string"){if(!Dg.call(lR,t))throw Lg("Missing matter definition for `%s`",t);t={type:t,marker:lR[t]}}else if(typeof t!="object")throw Lg("Expected matter to be an object, not `%j`",t);if(!Dg.call(t,"type"))throw Lg("Missing `type` in matter `%j`",t);if(!Dg.call(t,"fence")&&!Dg.call(t,"marker"))throw Lg("Missing `marker` or `fence` in matter `%j`",t);return t}function $Ie(e){const t=kw(e),n={};let r=-1;for(;++r<t.length;){const i=t[r],o=ax(i,"open").charCodeAt(0),a=NIe(i),l=n[o];Array.isArray(l)?l.push(a):n[o]=[a]}return{flow:n}}function NIe(e){const t=e.anywhere,n=e.type,r=n+"Fence",i=r+"Sequence",o=n+"Value",a={tokenize:p,partial:!0};let l,c=0;return{tokenize:u,concrete:!0};function u(h,m,g){const b=this;return E;function E(I){const $=b.now();return $.column===1&&($.line===1||t)&&(l=ax(e,"open"),c=0,I===l.charCodeAt(c))?(h.enter(n),h.enter(r),h.enter(i),x(I)):g(I)}function x(I){return c===l.length?(h.exit(i),yn(I)?(h.enter("whitespace"),S(I)):C(I)):I===l.charCodeAt(c++)?(h.consume(I),x):g(I)}function S(I){return yn(I)?(h.consume(I),S):(h.exit("whitespace"),C(I))}function C(I){return on(I)?(h.exit(r),h.enter("lineEnding"),h.consume(I),h.exit("lineEnding"),l=ax(e,"close"),c=0,h.attempt(a,T,_)):g(I)}function _(I){return I===null||on(I)?k(I):(h.enter(o),O(I))}function O(I){return I===null||on(I)?(h.exit(o),k(I)):(h.consume(I),O)}function k(I){return I===null?g(I):(h.enter("lineEnding"),h.consume(I),h.exit("lineEnding"),h.attempt(a,T,_))}function T(I){return h.exit(n),m(I)}}function p(h,m,g){let b=0;return E;function E(_){return _===l.charCodeAt(b)?(h.enter(r),h.enter(i),x(_)):g(_)}function x(_){return b===l.length?(h.exit(i),yn(_)?(h.enter("whitespace"),S(_)):C(_)):_===l.charCodeAt(b++)?(h.consume(_),x):g(_)}function S(_){return yn(_)?(h.consume(_),S):(h.exit("whitespace"),C(_))}function C(_){return _===null||on(_)?(h.exit(r),m(_)):g(_)}}}function ax(e,t){return e.marker?sR(e.marker,t).repeat(3):sR(e.fence,t)}function sR(e,t){return typeof e=="string"?e:e[t]}function AIe(e){const t=kw(e),n={},r={};let i=-1;for(;++i<t.length;){const o=t[i];n[o.type]=RIe(o),r[o.type]=MIe,r[o.type+"Value"]=PIe}return{enter:n,exit:r}}function RIe(e){return t;function t(n){this.enter({type:e.type,value:""},n),this.buffer()}}function MIe(e){const t=this.resume(),n=this.exit(e);n.value=t.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,"")}function PIe(e){this.config.enter.data.call(this,e),this.config.exit.data.call(this,e)}function LIe(e){const t=[],n={},r=kw(e);let i=-1;for(;++i<r.length;){const o=r[i];n[o.type]=DIe(o),t.push({atBreak:!0,character:lx(o,"open").charAt(0)})}return{unsafe:t,handlers:n}}function DIe(e){const t=lx(e,"open"),n=lx(e,"close");return r;function r(i){return t+(i.value?`
`+i.value:"")+`
`+n}}function lx(e,t){return e.marker?cR(e.marker,t).repeat(3):cR(e.fence,t)}function cR(e,t){return typeof e=="string"?e:e[t]}function FIe(e="yaml"){const t=this.data();n("micromarkExtensions",$Ie(e)),n("fromMarkdownExtensions",AIe(e)),n("toMarkdownExtensions",LIe(e));function n(r,i){(t[r]?t[r]:t[r]=[]).push(i)}}function BIe({onError:e}={}){return{remark:t=>t.use(FIe).use(()=>(n,r)=>{const i=n.children[0];if((i==null?void 0:i.type)==="yaml")try{r.frontmatter=TIe(i.value)}catch(o){e==null||e(o)}})}}const jIe={ChartGraph:'<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" fill="none" viewBox="0 0 48 48"><path stroke="currentColor" stroke-linejoin="round" stroke-width="4" d="M17 6h14v9H17zM6 33h14v9H6zM28 33h14v9H28z"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="4" d="M24 16v8M13 33v-9h22v9"/></svg>'},HIe="Entity relationship diagram",zIe="Flow chart",WIe="Gantt chart",UIe="Mermaid diagrams",KIe="Mindmaps",VIe="Pie chart",GIe="Sequence diagram",qIe="State diagram",XIe="Timeline",YIe="User journey diagram",QIe={class:"Class diagram",er:HIe,flowchart:zIe,gantt:WIe,mermaid:UIe,mindmap:KIe,pie:VIe,sequence:GIe,state:qIe,timeline:XIe,uj:YIe};function EU({locale:e,...t}={}){const n={...QIe,...e};let r;const i=[{title:n.flowchart,code:`graph TD
Start --> Stop`},{title:n.sequence,code:`sequenceDiagram
Alice->>John: Hello John, how are you?
John-->>Alice: Great!
Alice-)John: See you later!`},{title:n.class,code:`classDiagram
Animal <|-- Duck
Animal <|-- Fish
Animal <|-- Zebra
Animal : +int age
Animal : +String gender
Animal: +isMammal()
Animal: +mate()
class Duck{
+String beakColor
+swim()
+quack()
}
class Fish{
-int sizeInFeet
-canEat()
}
class Zebra{
+bool is_wild
+run()
}`},{title:n.state,code:`stateDiagram-v2
[*] --> Still
Still --> [*]
Still --> Moving
Moving --> Still
Moving --> Crash
Crash --> [*]`},{title:n.er,code:`erDiagram
CUSTOMER ||--o{ ORDER : places
ORDER ||--|{ LINE-ITEM : contains
CUSTOMER }|..|{ DELIVERY-ADDRESS : uses`},{title:n.uj,code:`journey
title My working day
section Go to work
Make tea: 5: Me
Go upstairs: 3: Me
Do work: 1: Me, Cat
section Go home
Go downstairs: 5: Me
Sit down: 5: Me`},{title:n.gantt,code:`gantt
title A Gantt Diagram
dateFormat YYYY-MM-DD
section Section
A task :a1, 2014-01-01, 30d
Another task :after a1 , 20d
section Another
Task in sec :2014-01-12 , 12d
another task : 24d`},{title:n.pie,code:`pie title Pets adopted by volunteers
"Dogs" : 386
"Cats" : 85
"Rats" : 15`},{title:n.mindmap,code:`mindmap
Root
A
B
C
`},{title:n.timeline,code:`timeline
title History of Social Media Platform
2002 : LinkedIn
2004 : Facebook
: Google
2005 : Youtube
2006 : Twitter
`}];return{viewerEffect({markdownBody:o}){(async()=>{const a=o.querySelectorAll("pre>code.language-mermaid");a.length!==0&&(r||(r=await lU(()=>import("./mermaid.core-Dg4lo5vw.js").then(l=>l.b2),[]).then(l=>l.default),t&&r.initialize(t)),a.forEach((l,c)=>{const u=l.parentElement,p=l.innerText,h=document.createElement("div");h.classList.add("bytemd-mermaid"),h.style.lineHeight="initial",u.replaceWith(h),r.render(`bytemd-mermaid-${Date.now()}-${c}`,p,h).then(m=>{h.innerHTML=m.svg}).catch(m=>{})}))})()},actions:[{title:n.mermaid,icon:jIe.ChartGraph,cheatsheet:"```mermaid",handler:{type:"dropdown",actions:i.map(({title:o,code:a})=>({title:o,handler:{type:"action",click({editor:l,appendBlock:c,codemirror:u}){const{line:p}=c("```mermaid\n"+a+"\n```");l.setSelection(u.Pos(p+1,0),u.Pos(p+a.split(`
`).length)),l.focus()}}})),...n}}]}}const uR={100:"💯",1234:"🔢",grinning:"😀",smiley:"😃",smile:"😄",grin:"😁",laughing:"😆",satisfied:"😆",sweat_smile:"😅",rofl:"🤣",joy:"😂",slightly_smiling_face:"🙂",upside_down_face:"🙃",wink:"😉",blush:"😊",innocent:"😇",smiling_face_with_three_hearts:"🥰",heart_eyes:"😍",star_struck:"🤩",kissing_heart:"😘",kissing:"😗",relaxed:"☺️",kissing_closed_eyes:"😚",kissing_smiling_eyes:"😙",smiling_face_with_tear:"🥲",yum:"😋",stuck_out_tongue:"😛",stuck_out_tongue_winking_eye:"😜",zany_face:"🤪",stuck_out_tongue_closed_eyes:"😝",money_mouth_face:"🤑",hugs:"🤗",hand_over_mouth:"🤭",shushing_face:"🤫",thinking:"🤔",zipper_mouth_face:"🤐",raised_eyebrow:"🤨",neutral_face:"😐",expressionless:"😑",no_mouth:"😶",face_in_clouds:"😶‍🌫️",smirk:"😏",unamused:"😒",roll_eyes:"🙄",grimacing:"😬",face_exhaling:"😮‍💨",lying_face:"🤥",relieved:"😌",pensive:"😔",sleepy:"😪",drooling_face:"🤤",sleeping:"😴",mask:"😷",face_with_thermometer:"🤒",face_with_head_bandage:"🤕",nauseated_face:"🤢",vomiting_face:"🤮",sneezing_face:"🤧",hot_face:"🥵",cold_face:"🥶",woozy_face:"🥴",dizzy_face:"😵",face_with_spiral_eyes:"😵‍💫",exploding_head:"🤯",cowboy_hat_face:"🤠",partying_face:"🥳",disguised_face:"🥸",sunglasses:"😎",nerd_face:"🤓",monocle_face:"🧐",confused:"😕",worried:"😟",slightly_frowning_face:"🙁",frowning_face:"☹️",open_mouth:"😮",hushed:"😯",astonished:"😲",flushed:"😳",pleading_face:"🥺",frowning:"😦",anguished:"😧",fearful:"😨",cold_sweat:"😰",disappointed_relieved:"😥",cry:"😢",sob:"😭",scream:"😱",confounded:"😖",persevere:"😣",disappointed:"😞",sweat:"😓",weary:"😩",tired_face:"😫",yawning_face:"🥱",triumph:"😤",rage:"😡",pout:"😡",angry:"😠",cursing_face:"🤬",smiling_imp:"😈",imp:"👿",skull:"💀",skull_and_crossbones:"☠️",hankey:"💩",poop:"💩",shit:"💩",clown_face:"🤡",japanese_ogre:"👹",japanese_goblin:"👺",ghost:"👻",alien:"👽",space_invader:"👾",robot:"🤖",smiley_cat:"😺",smile_cat:"😸",joy_cat:"😹",heart_eyes_cat:"😻",smirk_cat:"😼",kissing_cat:"😽",scream_cat:"🙀",crying_cat_face:"😿",pouting_cat:"😾",see_no_evil:"🙈",hear_no_evil:"🙉",speak_no_evil:"🙊",kiss:"💋",love_letter:"💌",cupid:"💘",gift_heart:"💝",sparkling_heart:"💖",heartpulse:"💗",heartbeat:"💓",revolving_hearts:"💞",two_hearts:"💕",heart_decoration:"💟",heavy_heart_exclamation:"❣️",broken_heart:"💔",heart_on_fire:"❤️‍🔥",mending_heart:"❤️‍🩹",heart:"❤️",orange_heart:"🧡",yellow_heart:"💛",green_heart:"💚",blue_heart:"💙",purple_heart:"💜",brown_heart:"🤎",black_heart:"🖤",white_heart:"🤍",anger:"💢",boom:"💥",collision:"💥",dizzy:"💫",sweat_drops:"💦",dash:"💨",hole:"🕳️",bomb:"💣",speech_balloon:"💬",eye_speech_bubble:"👁️‍🗨️",left_speech_bubble:"🗨️",right_anger_bubble:"🗯️",thought_balloon:"💭",zzz:"💤",wave:"👋",raised_back_of_hand:"🤚",raised_hand_with_fingers_splayed:"🖐️",hand:"✋",raised_hand:"✋",vulcan_salute:"🖖",ok_hand:"👌",pinched_fingers:"🤌",pinching_hand:"🤏",v:"✌️",crossed_fingers:"🤞",love_you_gesture:"🤟",metal:"🤘",call_me_hand:"🤙",point_left:"👈",point_right:"👉",point_up_2:"👆",middle_finger:"🖕",fu:"🖕",point_down:"👇",point_up:"☝️","+1":"👍",thumbsup:"👍","-1":"👎",thumbsdown:"👎",fist_raised:"✊",fist:"✊",fist_oncoming:"👊",facepunch:"👊",punch:"👊",fist_left:"🤛",fist_right:"🤜",clap:"👏",raised_hands:"🙌",open_hands:"👐",palms_up_together:"🤲",handshake:"🤝",pray:"🙏",writing_hand:"✍️",nail_care:"💅",selfie:"🤳",muscle:"💪",mechanical_arm:"🦾",mechanical_leg:"🦿",leg:"🦵",foot:"🦶",ear:"👂",ear_with_hearing_aid:"🦻",nose:"👃",brain:"🧠",anatomical_heart:"🫀",lungs:"🫁",tooth:"🦷",bone:"🦴",eyes:"👀",eye:"👁️",tongue:"👅",lips:"👄",baby:"👶",child:"🧒",boy:"👦",girl:"👧",adult:"🧑",blond_haired_person:"👱",man:"👨",bearded_person:"🧔",man_beard:"🧔‍♂️",woman_beard:"🧔‍♀️",red_haired_man:"👨‍🦰",curly_haired_man:"👨‍🦱",white_haired_man:"👨‍🦳",bald_man:"👨‍🦲",woman:"👩",red_haired_woman:"👩‍🦰",person_red_hair:"🧑‍🦰",curly_haired_woman:"👩‍🦱",person_curly_hair:"🧑‍🦱",white_haired_woman:"👩‍🦳",person_white_hair:"🧑‍🦳",bald_woman:"👩‍🦲",person_bald:"🧑‍🦲",blond_haired_woman:"👱‍♀️",blonde_woman:"👱‍♀️",blond_haired_man:"👱‍♂️",older_adult:"🧓",older_man:"👴",older_woman:"👵",frowning_person:"🙍",frowning_man:"🙍‍♂️",frowning_woman:"🙍‍♀️",pouting_face:"🙎",pouting_man:"🙎‍♂️",pouting_woman:"🙎‍♀️",no_good:"🙅",no_good_man:"🙅‍♂️",ng_man:"🙅‍♂️",no_good_woman:"🙅‍♀️",ng_woman:"🙅‍♀️",ok_person:"🙆",ok_man:"🙆‍♂️",ok_woman:"🙆‍♀️",tipping_hand_person:"💁",information_desk_person:"💁",tipping_hand_man:"💁‍♂️",sassy_man:"💁‍♂️",tipping_hand_woman:"💁‍♀️",sassy_woman:"💁‍♀️",raising_hand:"🙋",raising_hand_man:"🙋‍♂️",raising_hand_woman:"🙋‍♀️",deaf_person:"🧏",deaf_man:"🧏‍♂️",deaf_woman:"🧏‍♀️",bow:"🙇",bowing_man:"🙇‍♂️",bowing_woman:"🙇‍♀️",facepalm:"🤦",man_facepalming:"🤦‍♂️",woman_facepalming:"🤦‍♀️",shrug:"🤷",man_shrugging:"🤷‍♂️",woman_shrugging:"🤷‍♀️",health_worker:"🧑‍⚕️",man_health_worker:"👨‍⚕️",woman_health_worker:"👩‍⚕️",student:"🧑‍🎓",man_student:"👨‍🎓",woman_student:"👩‍🎓",teacher:"🧑‍🏫",man_teacher:"👨‍🏫",woman_teacher:"👩‍🏫",judge:"🧑‍⚖️",man_judge:"👨‍⚖️",woman_judge:"👩‍⚖️",farmer:"🧑‍🌾",man_farmer:"👨‍🌾",woman_farmer:"👩‍🌾",cook:"🧑‍🍳",man_cook:"👨‍🍳",woman_cook:"👩‍🍳",mechanic:"🧑‍🔧",man_mechanic:"👨‍🔧",woman_mechanic:"👩‍🔧",factory_worker:"🧑‍🏭",man_factory_worker:"👨‍🏭",woman_factory_worker:"👩‍🏭",office_worker:"🧑‍💼",man_office_worker:"👨‍💼",woman_office_worker:"👩‍💼",scientist:"🧑‍🔬",man_scientist:"👨‍🔬",woman_scientist:"👩‍🔬",technologist:"🧑‍💻",man_technologist:"👨‍💻",woman_technologist:"👩‍💻",singer:"🧑‍🎤",man_singer:"👨‍🎤",woman_singer:"👩‍🎤",artist:"🧑‍🎨",man_artist:"👨‍🎨",woman_artist:"👩‍🎨",pilot:"🧑‍✈️",man_pilot:"👨‍✈️",woman_pilot:"👩‍✈️",astronaut:"🧑‍🚀",man_astronaut:"👨‍🚀",woman_astronaut:"👩‍🚀",firefighter:"🧑‍🚒",man_firefighter:"👨‍🚒",woman_firefighter:"👩‍🚒",police_officer:"👮",cop:"👮",policeman:"👮‍♂️",policewoman:"👮‍♀️",detective:"🕵️",male_detective:"🕵️‍♂️",female_detective:"🕵️‍♀️",guard:"💂",guardsman:"💂‍♂️",guardswoman:"💂‍♀️",ninja:"🥷",construction_worker:"👷",construction_worker_man:"👷‍♂️",construction_worker_woman:"👷‍♀️",prince:"🤴",princess:"👸",person_with_turban:"👳",man_with_turban:"👳‍♂️",woman_with_turban:"👳‍♀️",man_with_gua_pi_mao:"👲",woman_with_headscarf:"🧕",person_in_tuxedo:"🤵",man_in_tuxedo:"🤵‍♂️",woman_in_tuxedo:"🤵‍♀️",person_with_veil:"👰",man_with_veil:"👰‍♂️",woman_with_veil:"👰‍♀️",bride_with_veil:"👰‍♀️",pregnant_woman:"🤰",breast_feeding:"🤱",woman_feeding_baby:"👩‍🍼",man_feeding_baby:"👨‍🍼",person_feeding_baby:"🧑‍🍼",angel:"👼",santa:"🎅",mrs_claus:"🤶",mx_claus:"🧑‍🎄",superhero:"🦸",superhero_man:"🦸‍♂️",superhero_woman:"🦸‍♀️",supervillain:"🦹",supervillain_man:"🦹‍♂️",supervillain_woman:"🦹‍♀️",mage:"🧙",mage_man:"🧙‍♂️",mage_woman:"🧙‍♀️",fairy:"🧚",fairy_man:"🧚‍♂️",fairy_woman:"🧚‍♀️",vampire:"🧛",vampire_man:"🧛‍♂️",vampire_woman:"🧛‍♀️",merperson:"🧜",merman:"🧜‍♂️",mermaid:"🧜‍♀️",elf:"🧝",elf_man:"🧝‍♂️",elf_woman:"🧝‍♀️",genie:"🧞",genie_man:"🧞‍♂️",genie_woman:"🧞‍♀️",zombie:"🧟",zombie_man:"🧟‍♂️",zombie_woman:"🧟‍♀️",massage:"💆",massage_man:"💆‍♂️",massage_woman:"💆‍♀️",haircut:"💇",haircut_man:"💇‍♂️",haircut_woman:"💇‍♀️",walking:"🚶",walking_man:"🚶‍♂️",walking_woman:"🚶‍♀️",standing_person:"🧍",standing_man:"🧍‍♂️",standing_woman:"🧍‍♀️",kneeling_person:"🧎",kneeling_man:"🧎‍♂️",kneeling_woman:"🧎‍♀️",person_with_probing_cane:"🧑‍🦯",man_with_probing_cane:"👨‍🦯",woman_with_probing_cane:"👩‍🦯",person_in_motorized_wheelchair:"🧑‍🦼",man_in_motorized_wheelchair:"👨‍🦼",woman_in_motorized_wheelchair:"👩‍🦼",person_in_manual_wheelchair:"🧑‍🦽",man_in_manual_wheelchair:"👨‍🦽",woman_in_manual_wheelchair:"👩‍🦽",runner:"🏃",running:"🏃",running_man:"🏃‍♂️",running_woman:"🏃‍♀️",woman_dancing:"💃",dancer:"💃",man_dancing:"🕺",business_suit_levitating:"🕴️",dancers:"👯",dancing_men:"👯‍♂️",dancing_women:"👯‍♀️",sauna_person:"🧖",sauna_man:"🧖‍♂️",sauna_woman:"🧖‍♀️",climbing:"🧗",climbing_man:"🧗‍♂️",climbing_woman:"🧗‍♀️",person_fencing:"🤺",horse_racing:"🏇",skier:"⛷️",snowboarder:"🏂",golfing:"🏌️",golfing_man:"🏌️‍♂️",golfing_woman:"🏌️‍♀️",surfer:"🏄",surfing_man:"🏄‍♂️",surfing_woman:"🏄‍♀️",rowboat:"🚣",rowing_man:"🚣‍♂️",rowing_woman:"🚣‍♀️",swimmer:"🏊",swimming_man:"🏊‍♂️",swimming_woman:"🏊‍♀️",bouncing_ball_person:"⛹️",bouncing_ball_man:"⛹️‍♂️",basketball_man:"⛹️‍♂️",bouncing_ball_woman:"⛹️‍♀️",basketball_woman:"⛹️‍♀️",weight_lifting:"🏋️",weight_lifting_man:"🏋️‍♂️",weight_lifting_woman:"🏋️‍♀️",bicyclist:"🚴",biking_man:"🚴‍♂️",biking_woman:"🚴‍♀️",mountain_bicyclist:"🚵",mountain_biking_man:"🚵‍♂️",mountain_biking_woman:"🚵‍♀️",cartwheeling:"🤸",man_cartwheeling:"🤸‍♂️",woman_cartwheeling:"🤸‍♀️",wrestling:"🤼",men_wrestling:"🤼‍♂️",women_wrestling:"🤼‍♀️",water_polo:"🤽",man_playing_water_polo:"🤽‍♂️",woman_playing_water_polo:"🤽‍♀️",handball_person:"🤾",man_playing_handball:"🤾‍♂️",woman_playing_handball:"🤾‍♀️",juggling_person:"🤹",man_juggling:"🤹‍♂️",woman_juggling:"🤹‍♀️",lotus_position:"🧘",lotus_position_man:"🧘‍♂️",lotus_position_woman:"🧘‍♀️",bath:"🛀",sleeping_bed:"🛌",people_holding_hands:"🧑‍🤝‍🧑",two_women_holding_hands:"👭",couple:"👫",two_men_holding_hands:"👬",couplekiss:"💏",couplekiss_man_woman:"👩‍❤️‍💋‍👨",couplekiss_man_man:"👨‍❤️‍💋‍👨",couplekiss_woman_woman:"👩‍❤️‍💋‍👩",couple_with_heart:"💑",couple_with_heart_woman_man:"👩‍❤️‍👨",couple_with_heart_man_man:"👨‍❤️‍👨",couple_with_heart_woman_woman:"👩‍❤️‍👩",family:"👪",family_man_woman_boy:"👨‍👩‍👦",family_man_woman_girl:"👨‍👩‍👧",family_man_woman_girl_boy:"👨‍👩‍👧‍👦",family_man_woman_boy_boy:"👨‍👩‍👦‍👦",family_man_woman_girl_girl:"👨‍👩‍👧‍👧",family_man_man_boy:"👨‍👨‍👦",family_man_man_girl:"👨‍👨‍👧",family_man_man_girl_boy:"👨‍👨‍👧‍👦",family_man_man_boy_boy:"👨‍👨‍👦‍👦",family_man_man_girl_girl:"👨‍👨‍👧‍👧",family_woman_woman_boy:"👩‍👩‍👦",family_woman_woman_girl:"👩‍👩‍👧",family_woman_woman_girl_boy:"👩‍👩‍👧‍👦",family_woman_woman_boy_boy:"👩‍👩‍👦‍👦",family_woman_woman_girl_girl:"👩‍👩‍👧‍👧",family_man_boy:"👨‍👦",family_man_boy_boy:"👨‍👦‍👦",family_man_girl:"👨‍👧",family_man_girl_boy:"👨‍👧‍👦",family_man_girl_girl:"👨‍👧‍👧",family_woman_boy:"👩‍👦",family_woman_boy_boy:"👩‍👦‍👦",family_woman_girl:"👩‍👧",family_woman_girl_boy:"👩‍👧‍👦",family_woman_girl_girl:"👩‍👧‍👧",speaking_head:"🗣️",bust_in_silhouette:"👤",busts_in_silhouette:"👥",people_hugging:"🫂",footprints:"👣",monkey_face:"🐵",monkey:"🐒",gorilla:"🦍",orangutan:"🦧",dog:"🐶",dog2:"🐕",guide_dog:"🦮",service_dog:"🐕‍🦺",poodle:"🐩",wolf:"🐺",fox_face:"🦊",raccoon:"🦝",cat:"🐱",cat2:"🐈",black_cat:"🐈‍⬛",lion:"🦁",tiger:"🐯",tiger2:"🐅",leopard:"🐆",horse:"🐴",racehorse:"🐎",unicorn:"🦄",zebra:"🦓",deer:"🦌",bison:"🦬",cow:"🐮",ox:"🐂",water_buffalo:"🐃",cow2:"🐄",pig:"🐷",pig2:"🐖",boar:"🐗",pig_nose:"🐽",ram:"🐏",sheep:"🐑",goat:"🐐",dromedary_camel:"🐪",camel:"🐫",llama:"🦙",giraffe:"🦒",elephant:"🐘",mammoth:"🦣",rhinoceros:"🦏",hippopotamus:"🦛",mouse:"🐭",mouse2:"🐁",rat:"🐀",hamster:"🐹",rabbit:"🐰",rabbit2:"🐇",chipmunk:"🐿️",beaver:"🦫",hedgehog:"🦔",bat:"🦇",bear:"🐻",polar_bear:"🐻‍❄️",koala:"🐨",panda_face:"🐼",sloth:"🦥",otter:"🦦",skunk:"🦨",kangaroo:"🦘",badger:"🦡",feet:"🐾",paw_prints:"🐾",turkey:"🦃",chicken:"🐔",rooster:"🐓",hatching_chick:"🐣",baby_chick:"🐤",hatched_chick:"🐥",bird:"🐦",penguin:"🐧",dove:"🕊️",eagle:"🦅",duck:"🦆",swan:"🦢",owl:"🦉",dodo:"🦤",feather:"🪶",flamingo:"🦩",peacock:"🦚",parrot:"🦜",frog:"🐸",crocodile:"🐊",turtle:"🐢",lizard:"🦎",snake:"🐍",dragon_face:"🐲",dragon:"🐉",sauropod:"🦕","t-rex":"🦖",whale:"🐳",whale2:"🐋",dolphin:"🐬",flipper:"🐬",seal:"🦭",fish:"🐟",tropical_fish:"🐠",blowfish:"🐡",shark:"🦈",octopus:"🐙",shell:"🐚",snail:"🐌",butterfly:"🦋",bug:"🐛",ant:"🐜",bee:"🐝",honeybee:"🐝",beetle:"🪲",lady_beetle:"🐞",cricket:"🦗",cockroach:"🪳",spider:"🕷️",spider_web:"🕸️",scorpion:"🦂",mosquito:"🦟",fly:"🪰",worm:"🪱",microbe:"🦠",bouquet:"💐",cherry_blossom:"🌸",white_flower:"💮",rosette:"🏵️",rose:"🌹",wilted_flower:"🥀",hibiscus:"🌺",sunflower:"🌻",blossom:"🌼",tulip:"🌷",seedling:"🌱",potted_plant:"🪴",evergreen_tree:"🌲",deciduous_tree:"🌳",palm_tree:"🌴",cactus:"🌵",ear_of_rice:"🌾",herb:"🌿",shamrock:"☘️",four_leaf_clover:"🍀",maple_leaf:"🍁",fallen_leaf:"🍂",leaves:"🍃",grapes:"🍇",melon:"🍈",watermelon:"🍉",tangerine:"🍊",orange:"🍊",mandarin:"🍊",lemon:"🍋",banana:"🍌",pineapple:"🍍",mango:"🥭",apple:"🍎",green_apple:"🍏",pear:"🍐",peach:"🍑",cherries:"🍒",strawberry:"🍓",blueberries:"🫐",kiwi_fruit:"🥝",tomato:"🍅",olive:"🫒",coconut:"🥥",avocado:"🥑",eggplant:"🍆",potato:"🥔",carrot:"🥕",corn:"🌽",hot_pepper:"🌶️",bell_pepper:"🫑",cucumber:"🥒",leafy_green:"🥬",broccoli:"🥦",garlic:"🧄",onion:"🧅",mushroom:"🍄",peanuts:"🥜",chestnut:"🌰",bread:"🍞",croissant:"🥐",baguette_bread:"🥖",flatbread:"🫓",pretzel:"🥨",bagel:"🥯",pancakes:"🥞",waffle:"🧇",cheese:"🧀",meat_on_bone:"🍖",poultry_leg:"🍗",cut_of_meat:"🥩",bacon:"🥓",hamburger:"🍔",fries:"🍟",pizza:"🍕",hotdog:"🌭",sandwich:"🥪",taco:"🌮",burrito:"🌯",tamale:"🫔",stuffed_flatbread:"🥙",falafel:"🧆",egg:"🥚",fried_egg:"🍳",shallow_pan_of_food:"🥘",stew:"🍲",fondue:"🫕",bowl_with_spoon:"🥣",green_salad:"🥗",popcorn:"🍿",butter:"🧈",salt:"🧂",canned_food:"🥫",bento:"🍱",rice_cracker:"🍘",rice_ball:"🍙",rice:"🍚",curry:"🍛",ramen:"🍜",spaghetti:"🍝",sweet_potato:"🍠",oden:"🍢",sushi:"🍣",fried_shrimp:"🍤",fish_cake:"🍥",moon_cake:"🥮",dango:"🍡",dumpling:"🥟",fortune_cookie:"🥠",takeout_box:"🥡",crab:"🦀",lobster:"🦞",shrimp:"🦐",squid:"🦑",oyster:"🦪",icecream:"🍦",shaved_ice:"🍧",ice_cream:"🍨",doughnut:"🍩",cookie:"🍪",birthday:"🎂",cake:"🍰",cupcake:"🧁",pie:"🥧",chocolate_bar:"🍫",candy:"🍬",lollipop:"🍭",custard:"🍮",honey_pot:"🍯",baby_bottle:"🍼",milk_glass:"🥛",coffee:"☕",teapot:"🫖",tea:"🍵",sake:"🍶",champagne:"🍾",wine_glass:"🍷",cocktail:"🍸",tropical_drink:"🍹",beer:"🍺",beers:"🍻",clinking_glasses:"🥂",tumbler_glass:"🥃",cup_with_straw:"🥤",bubble_tea:"🧋",beverage_box:"🧃",mate:"🧉",ice_cube:"🧊",chopsticks:"🥢",plate_with_cutlery:"🍽️",fork_and_knife:"🍴",spoon:"🥄",hocho:"🔪",knife:"🔪",amphora:"🏺",earth_africa:"🌍",earth_americas:"🌎",earth_asia:"🌏",globe_with_meridians:"🌐",world_map:"🗺️",japan:"🗾",compass:"🧭",mountain_snow:"🏔️",mountain:"⛰️",volcano:"🌋",mount_fuji:"🗻",camping:"🏕️",beach_umbrella:"🏖️",desert:"🏜️",desert_island:"🏝️",national_park:"🏞️",stadium:"🏟️",classical_building:"🏛️",building_construction:"🏗️",bricks:"🧱",rock:"🪨",wood:"🪵",hut:"🛖",houses:"🏘️",derelict_house:"🏚️",house:"🏠",house_with_garden:"🏡",office:"🏢",post_office:"🏣",european_post_office:"🏤",hospital:"🏥",bank:"🏦",hotel:"🏨",love_hotel:"🏩",convenience_store:"🏪",school:"🏫",department_store:"🏬",factory:"🏭",japanese_castle:"🏯",european_castle:"🏰",wedding:"💒",tokyo_tower:"🗼",statue_of_liberty:"🗽",church:"⛪",mosque:"🕌",hindu_temple:"🛕",synagogue:"🕍",shinto_shrine:"⛩️",kaaba:"🕋",fountain:"⛲",tent:"⛺",foggy:"🌁",night_with_stars:"🌃",cityscape:"🏙️",sunrise_over_mountains:"🌄",sunrise:"🌅",city_sunset:"🌆",city_sunrise:"🌇",bridge_at_night:"🌉",hotsprings:"♨️",carousel_horse:"🎠",ferris_wheel:"🎡",roller_coaster:"🎢",barber:"💈",circus_tent:"🎪",steam_locomotive:"🚂",railway_car:"🚃",bullettrain_side:"🚄",bullettrain_front:"🚅",train2:"🚆",metro:"🚇",light_rail:"🚈",station:"🚉",tram:"🚊",monorail:"🚝",mountain_railway:"🚞",train:"🚋",bus:"🚌",oncoming_bus:"🚍",trolleybus:"🚎",minibus:"🚐",ambulance:"🚑",fire_engine:"🚒",police_car:"🚓",oncoming_police_car:"🚔",taxi:"🚕",oncoming_taxi:"🚖",car:"🚗",red_car:"🚗",oncoming_automobile:"🚘",blue_car:"🚙",pickup_truck:"🛻",truck:"🚚",articulated_lorry:"🚛",tractor:"🚜",racing_car:"🏎️",motorcycle:"🏍️",motor_scooter:"🛵",manual_wheelchair:"🦽",motorized_wheelchair:"🦼",auto_rickshaw:"🛺",bike:"🚲",kick_scooter:"🛴",skateboard:"🛹",roller_skate:"🛼",busstop:"🚏",motorway:"🛣️",railway_track:"🛤️",oil_drum:"🛢️",fuelpump:"⛽",rotating_light:"🚨",traffic_light:"🚥",vertical_traffic_light:"🚦",stop_sign:"🛑",construction:"🚧",anchor:"⚓",boat:"⛵",sailboat:"⛵",canoe:"🛶",speedboat:"🚤",passenger_ship:"🛳️",ferry:"⛴️",motor_boat:"🛥️",ship:"🚢",airplane:"✈️",small_airplane:"🛩️",flight_departure:"🛫",flight_arrival:"🛬",parachute:"🪂",seat:"💺",helicopter:"🚁",suspension_railway:"🚟",mountain_cableway:"🚠",aerial_tramway:"🚡",artificial_satellite:"🛰️",rocket:"🚀",flying_saucer:"🛸",bellhop_bell:"🛎️",luggage:"🧳",hourglass:"⌛",hourglass_flowing_sand:"⏳",watch:"⌚",alarm_clock:"⏰",stopwatch:"⏱️",timer_clock:"⏲️",mantelpiece_clock:"🕰️",clock12:"🕛",clock1230:"🕧",clock1:"🕐",clock130:"🕜",clock2:"🕑",clock230:"🕝",clock3:"🕒",clock330:"🕞",clock4:"🕓",clock430:"🕟",clock5:"🕔",clock530:"🕠",clock6:"🕕",clock630:"🕡",clock7:"🕖",clock730:"🕢",clock8:"🕗",clock830:"🕣",clock9:"🕘",clock930:"🕤",clock10:"🕙",clock1030:"🕥",clock11:"🕚",clock1130:"🕦",new_moon:"🌑",waxing_crescent_moon:"🌒",first_quarter_moon:"🌓",moon:"🌔",waxing_gibbous_moon:"🌔",full_moon:"🌕",waning_gibbous_moon:"🌖",last_quarter_moon:"🌗",waning_crescent_moon:"🌘",crescent_moon:"🌙",new_moon_with_face:"🌚",first_quarter_moon_with_face:"🌛",last_quarter_moon_with_face:"🌜",thermometer:"🌡️",sunny:"☀️",full_moon_with_face:"🌝",sun_with_face:"🌞",ringed_planet:"🪐",star:"⭐",star2:"🌟",stars:"🌠",milky_way:"🌌",cloud:"☁️",partly_sunny:"⛅",cloud_with_lightning_and_rain:"⛈️",sun_behind_small_cloud:"🌤️",sun_behind_large_cloud:"🌥️",sun_behind_rain_cloud:"🌦️",cloud_with_rain:"🌧️",cloud_with_snow:"🌨️",cloud_with_lightning:"🌩️",tornado:"🌪️",fog:"🌫️",wind_face:"🌬️",cyclone:"🌀",rainbow:"🌈",closed_umbrella:"🌂",open_umbrella:"☂️",umbrella:"☔",parasol_on_ground:"⛱️",zap:"⚡",snowflake:"❄️",snowman_with_snow:"☃️",snowman:"⛄",comet:"☄️",fire:"🔥",droplet:"💧",ocean:"🌊",jack_o_lantern:"🎃",christmas_tree:"🎄",fireworks:"🎆",sparkler:"🎇",firecracker:"🧨",sparkles:"✨",balloon:"🎈",tada:"🎉",confetti_ball:"🎊",tanabata_tree:"🎋",bamboo:"🎍",dolls:"🎎",flags:"🎏",wind_chime:"🎐",rice_scene:"🎑",red_envelope:"🧧",ribbon:"🎀",gift:"🎁",reminder_ribbon:"🎗️",tickets:"🎟️",ticket:"🎫",medal_military:"🎖️",trophy:"🏆",medal_sports:"🏅","1st_place_medal":"🥇","2nd_place_medal":"🥈","3rd_place_medal":"🥉",soccer:"⚽",baseball:"⚾",softball:"🥎",basketball:"🏀",volleyball:"🏐",football:"🏈",rugby_football:"🏉",tennis:"🎾",flying_disc:"🥏",bowling:"🎳",cricket_game:"🏏",field_hockey:"🏑",ice_hockey:"🏒",lacrosse:"🥍",ping_pong:"🏓",badminton:"🏸",boxing_glove:"🥊",martial_arts_uniform:"🥋",goal_net:"🥅",golf:"⛳",ice_skate:"⛸️",fishing_pole_and_fish:"🎣",diving_mask:"🤿",running_shirt_with_sash:"🎽",ski:"🎿",sled:"🛷",curling_stone:"🥌",dart:"🎯",yo_yo:"🪀",kite:"🪁","8ball":"🎱",crystal_ball:"🔮",magic_wand:"🪄",nazar_amulet:"🧿",video_game:"🎮",joystick:"🕹️",slot_machine:"🎰",game_die:"🎲",jigsaw:"🧩",teddy_bear:"🧸",pinata:"🪅",nesting_dolls:"🪆",spades:"♠️",hearts:"♥️",diamonds:"♦️",clubs:"♣️",chess_pawn:"♟️",black_joker:"🃏",mahjong:"🀄",flower_playing_cards:"🎴",performing_arts:"🎭",framed_picture:"🖼️",art:"🎨",thread:"🧵",sewing_needle:"🪡",yarn:"🧶",knot:"🪢",eyeglasses:"👓",dark_sunglasses:"🕶️",goggles:"🥽",lab_coat:"🥼",safety_vest:"🦺",necktie:"👔",shirt:"👕",tshirt:"👕",jeans:"👖",scarf:"🧣",gloves:"🧤",coat:"🧥",socks:"🧦",dress:"👗",kimono:"👘",sari:"🥻",one_piece_swimsuit:"🩱",swim_brief:"🩲",shorts:"🩳",bikini:"👙",womans_clothes:"👚",purse:"👛",handbag:"👜",pouch:"👝",shopping:"🛍️",school_satchel:"🎒",thong_sandal:"🩴",mans_shoe:"👞",shoe:"👞",athletic_shoe:"👟",hiking_boot:"🥾",flat_shoe:"🥿",high_heel:"👠",sandal:"👡",ballet_shoes:"🩰",boot:"👢",crown:"👑",womans_hat:"👒",tophat:"🎩",mortar_board:"🎓",billed_cap:"🧢",military_helmet:"🪖",rescue_worker_helmet:"⛑️",prayer_beads:"📿",lipstick:"💄",ring:"💍",gem:"💎",mute:"🔇",speaker:"🔈",sound:"🔉",loud_sound:"🔊",loudspeaker:"📢",mega:"📣",postal_horn:"📯",bell:"🔔",no_bell:"🔕",musical_score:"🎼",musical_note:"🎵",notes:"🎶",studio_microphone:"🎙️",level_slider:"🎚️",control_knobs:"🎛️",microphone:"🎤",headphones:"🎧",radio:"📻",saxophone:"🎷",accordion:"🪗",guitar:"🎸",musical_keyboard:"🎹",trumpet:"🎺",violin:"🎻",banjo:"🪕",drum:"🥁",long_drum:"🪘",iphone:"📱",calling:"📲",phone:"☎️",telephone:"☎️",telephone_receiver:"📞",pager:"📟",fax:"📠",battery:"🔋",electric_plug:"🔌",computer:"💻",desktop_computer:"🖥️",printer:"🖨️",keyboard:"⌨️",computer_mouse:"🖱️",trackball:"🖲️",minidisc:"💽",floppy_disk:"💾",cd:"💿",dvd:"📀",abacus:"🧮",movie_camera:"🎥",film_strip:"🎞️",film_projector:"📽️",clapper:"🎬",tv:"📺",camera:"📷",camera_flash:"📸",video_camera:"📹",vhs:"📼",mag:"🔍",mag_right:"🔎",candle:"🕯️",bulb:"💡",flashlight:"🔦",izakaya_lantern:"🏮",lantern:"🏮",diya_lamp:"🪔",notebook_with_decorative_cover:"📔",closed_book:"📕",book:"📖",open_book:"📖",green_book:"📗",blue_book:"📘",orange_book:"📙",books:"📚",notebook:"📓",ledger:"📒",page_with_curl:"📃",scroll:"📜",page_facing_up:"📄",newspaper:"📰",newspaper_roll:"🗞️",bookmark_tabs:"📑",bookmark:"🔖",label:"🏷️",moneybag:"💰",coin:"🪙",yen:"💴",dollar:"💵",euro:"💶",pound:"💷",money_with_wings:"💸",credit_card:"💳",receipt:"🧾",chart:"💹",envelope:"✉️",email:"📧","e-mail":"📧",incoming_envelope:"📨",envelope_with_arrow:"📩",outbox_tray:"📤",inbox_tray:"📥",package:"📦",mailbox:"📫",mailbox_closed:"📪",mailbox_with_mail:"📬",mailbox_with_no_mail:"📭",postbox:"📮",ballot_box:"🗳️",pencil2:"✏️",black_nib:"✒️",fountain_pen:"🖋️",pen:"🖊️",paintbrush:"🖌️",crayon:"🖍️",memo:"📝",pencil:"📝",briefcase:"💼",file_folder:"📁",open_file_folder:"📂",card_index_dividers:"🗂️",date:"📅",calendar:"📆",spiral_notepad:"🗒️",spiral_calendar:"🗓️",card_index:"📇",chart_with_upwards_trend:"📈",chart_with_downwards_trend:"📉",bar_chart:"📊",clipboard:"📋",pushpin:"📌",round_pushpin:"📍",paperclip:"📎",paperclips:"🖇️",straight_ruler:"📏",triangular_ruler:"📐",scissors:"✂️",card_file_box:"🗃️",file_cabinet:"🗄️",wastebasket:"🗑️",lock:"🔒",unlock:"🔓",lock_with_ink_pen:"🔏",closed_lock_with_key:"🔐",key:"🔑",old_key:"🗝️",hammer:"🔨",axe:"🪓",pick:"⛏️",hammer_and_pick:"⚒️",hammer_and_wrench:"🛠️",dagger:"🗡️",crossed_swords:"⚔️",gun:"🔫",boomerang:"🪃",bow_and_arrow:"🏹",shield:"🛡️",carpentry_saw:"🪚",wrench:"🔧",screwdriver:"🪛",nut_and_bolt:"🔩",gear:"⚙️",clamp:"🗜️",balance_scale:"⚖️",probing_cane:"🦯",link:"🔗",chains:"⛓️",hook:"🪝",toolbox:"🧰",magnet:"🧲",ladder:"🪜",alembic:"⚗️",test_tube:"🧪",petri_dish:"🧫",dna:"🧬",microscope:"🔬",telescope:"🔭",satellite:"📡",syringe:"💉",drop_of_blood:"🩸",pill:"💊",adhesive_bandage:"🩹",stethoscope:"🩺",door:"🚪",elevator:"🛗",mirror:"🪞",window:"🪟",bed:"🛏️",couch_and_lamp:"🛋️",chair:"🪑",toilet:"🚽",plunger:"🪠",shower:"🚿",bathtub:"🛁",mouse_trap:"🪤",razor:"🪒",lotion_bottle:"🧴",safety_pin:"🧷",broom:"🧹",basket:"🧺",roll_of_paper:"🧻",bucket:"🪣",soap:"🧼",toothbrush:"🪥",sponge:"🧽",fire_extinguisher:"🧯",shopping_cart:"🛒",smoking:"🚬",coffin:"⚰️",headstone:"🪦",funeral_urn:"⚱️",moyai:"🗿",placard:"🪧",atm:"🏧",put_litter_in_its_place:"🚮",potable_water:"🚰",wheelchair:"♿",mens:"🚹",womens:"🚺",restroom:"🚻",baby_symbol:"🚼",wc:"🚾",passport_control:"🛂",customs:"🛃",baggage_claim:"🛄",left_luggage:"🛅",warning:"⚠️",children_crossing:"🚸",no_entry:"⛔",no_entry_sign:"🚫",no_bicycles:"🚳",no_smoking:"🚭",do_not_litter:"🚯","non-potable_water":"🚱",no_pedestrians:"🚷",no_mobile_phones:"📵",underage:"🔞",radioactive:"☢️",biohazard:"☣️",arrow_up:"⬆️",arrow_upper_right:"↗️",arrow_right:"➡️",arrow_lower_right:"↘️",arrow_down:"⬇️",arrow_lower_left:"↙️",arrow_left:"⬅️",arrow_upper_left:"↖️",arrow_up_down:"↕️",left_right_arrow:"↔️",leftwards_arrow_with_hook:"↩️",arrow_right_hook:"↪️",arrow_heading_up:"⤴️",arrow_heading_down:"⤵️",arrows_clockwise:"🔃",arrows_counterclockwise:"🔄",back:"🔙",end:"🔚",on:"🔛",soon:"🔜",top:"🔝",place_of_worship:"🛐",atom_symbol:"⚛️",om:"🕉️",star_of_david:"✡️",wheel_of_dharma:"☸️",yin_yang:"☯️",latin_cross:"✝️",orthodox_cross:"☦️",star_and_crescent:"☪️",peace_symbol:"☮️",menorah:"🕎",six_pointed_star:"🔯",aries:"♈",taurus:"♉",gemini:"♊",cancer:"♋",leo:"♌",virgo:"♍",libra:"♎",scorpius:"♏",sagittarius:"♐",capricorn:"♑",aquarius:"♒",pisces:"♓",ophiuchus:"⛎",twisted_rightwards_arrows:"🔀",repeat:"🔁",repeat_one:"🔂",arrow_forward:"▶️",fast_forward:"⏩",next_track_button:"⏭️",play_or_pause_button:"⏯️",arrow_backward:"◀️",rewind:"⏪",previous_track_button:"⏮️",arrow_up_small:"🔼",arrow_double_up:"⏫",arrow_down_small:"🔽",arrow_double_down:"⏬",pause_button:"⏸️",stop_button:"⏹️",record_button:"⏺️",eject_button:"⏏️",cinema:"🎦",low_brightness:"🔅",high_brightness:"🔆",signal_strength:"📶",vibration_mode:"📳",mobile_phone_off:"📴",female_sign:"♀️",male_sign:"♂️",transgender_symbol:"⚧️",heavy_multiplication_x:"✖️",heavy_plus_sign:"",heavy_minus_sign:"",heavy_division_sign:"➗",infinity:"♾️",bangbang:"‼️",interrobang:"⁉️",question:"❓",grey_question:"❔",grey_exclamation:"❕",exclamation:"❗",heavy_exclamation_mark:"❗",wavy_dash:"〰️",currency_exchange:"💱",heavy_dollar_sign:"💲",medical_symbol:"⚕️",recycle:"♻️",fleur_de_lis:"⚜️",trident:"🔱",name_badge:"📛",beginner:"🔰",o:"⭕",white_check_mark:"✅",ballot_box_with_check:"☑️",heavy_check_mark:"✔️",x:"❌",negative_squared_cross_mark:"❎",curly_loop:"➰",loop:"➿",part_alternation_mark:"〽️",eight_spoked_asterisk:"✳️",eight_pointed_black_star:"✴️",sparkle:"❇️",copyright:"©️",registered:"®️",tm:"™️",hash:"#️⃣",asterisk:"*️⃣",zero:"0⃣",one:"1⃣",two:"2⃣",three:"3⃣",four:"4⃣",five:"5⃣",six:"6⃣",seven:"7⃣",eight:"8⃣",nine:"9⃣",keycap_ten:"🔟",capital_abcd:"🔠",abcd:"🔡",symbols:"🔣",abc:"🔤",a:"🅰️",ab:"🆎",b:"🅱️",cl:"🆑",cool:"🆒",free:"🆓",information_source:"",id:"🆔",m:"Ⓜ️",new:"🆕",ng:"🆖",o2:"🅾️",ok:"🆗",parking:"🅿️",sos:"🆘",up:"🆙",vs:"🆚",koko:"🈁",sa:"🈂️",u6708:"🈷️",u6709:"🈶",u6307:"🈯",ideograph_advantage:"🉐",u5272:"🈹",u7121:"🈚",u7981:"🈲",accept:"🉑",u7533:"🈸",u5408:"🈴",u7a7a:"🈳",congratulations:"㊗️",secret:"㊙️",u55b6:"🈺",u6e80:"🈵",red_circle:"🔴",orange_circle:"🟠",yellow_circle:"🟡",green_circle:"🟢",large_blue_circle:"🔵",purple_circle:"🟣",brown_circle:"🟤",black_circle:"⚫",white_circle:"⚪",red_square:"🟥",orange_square:"🟧",yellow_square:"🟨",green_square:"🟩",blue_square:"🟦",purple_square:"🟪",brown_square:"🟫",black_large_square:"⬛",white_large_square:"⬜",black_medium_square:"◼️",white_medium_square:"◻️",black_medium_small_square:"◾",white_medium_small_square:"◽",black_small_square:"▪️",white_small_square:"▫️",large_orange_diamond:"🔶",large_blue_diamond:"🔷",small_orange_diamond:"🔸",small_blue_diamond:"🔹",small_red_triangle:"🔺",small_red_triangle_down:"🔻",diamond_shape_with_a_dot_inside:"💠",radio_button:"🔘",white_square_button:"🔳",black_square_button:"🔲",checkered_flag:"🏁",triangular_flag_on_post:"🚩",crossed_flags:"🎌",black_flag:"🏴",white_flag:"🏳️",rainbow_flag:"🏳️‍🌈",transgender_flag:"🏳️‍⚧️",pirate_flag:"🏴‍☠️",ascension_island:"🇦🇨",andorra:"🇦🇩",united_arab_emirates:"🇦🇪",afghanistan:"🇦🇫",antigua_barbuda:"🇦🇬",anguilla:"🇦🇮",albania:"🇦🇱",armenia:"🇦🇲",angola:"🇦🇴",antarctica:"🇦🇶",argentina:"🇦🇷",american_samoa:"🇦🇸",austria:"🇦🇹",australia:"🇦🇺",aruba:"🇦🇼",aland_islands:"🇦🇽",azerbaijan:"🇦🇿",bosnia_herzegovina:"🇧🇦",barbados:"🇧🇧",bangladesh:"🇧🇩",belgium:"🇧🇪",burkina_faso:"🇧🇫",bulgaria:"🇧🇬",bahrain:"🇧🇭",burundi:"🇧🇮",benin:"🇧🇯",st_barthelemy:"🇧🇱",bermuda:"🇧🇲",brunei:"🇧🇳",bolivia:"🇧🇴",caribbean_netherlands:"🇧🇶",brazil:"🇧🇷",bahamas:"🇧🇸",bhutan:"🇧🇹",bouvet_island:"🇧🇻",botswana:"🇧🇼",belarus:"🇧🇾",belize:"🇧🇿",canada:"🇨🇦",cocos_islands:"🇨🇨",congo_kinshasa:"🇨🇩",central_african_republic:"🇨🇫",congo_brazzaville:"🇨🇬",switzerland:"🇨🇭",cote_divoire:"🇨🇮",cook_islands:"🇨🇰",chile:"🇨🇱",cameroon:"🇨🇲",cn:"🇨🇳",colombia:"🇨🇴",clipperton_island:"🇨🇵",costa_rica:"🇨🇷",cuba:"🇨🇺",cape_verde:"🇨🇻",curacao:"🇨🇼",christmas_island:"🇨🇽",cyprus:"🇨🇾",czech_republic:"🇨🇿",de:"🇩🇪",diego_garcia:"🇩🇬",djibouti:"🇩🇯",denmark:"🇩🇰",dominica:"🇩🇲",dominican_republic:"🇩🇴",algeria:"🇩🇿",ceuta_melilla:"🇪🇦",ecuador:"🇪🇨",estonia:"🇪🇪",egypt:"🇪🇬",western_sahara:"🇪🇭",eritrea:"🇪🇷",es:"🇪🇸",ethiopia:"🇪🇹",eu:"🇪🇺",european_union:"🇪🇺",finland:"🇫🇮",fiji:"🇫🇯",falkland_islands:"🇫🇰",micronesia:"🇫🇲",faroe_islands:"🇫🇴",fr:"🇫🇷",gabon:"🇬🇦",gb:"🇬🇧",uk:"🇬🇧",grenada:"🇬🇩",georgia:"🇬🇪",french_guiana:"🇬🇫",guernsey:"🇬🇬",ghana:"🇬🇭",gibraltar:"🇬🇮",greenland:"🇬🇱",gambia:"🇬🇲",guinea:"🇬🇳",guadeloupe:"🇬🇵",equatorial_guinea:"🇬🇶",greece:"🇬🇷",south_georgia_south_sandwich_islands:"🇬🇸",guatemala:"🇬🇹",guam:"🇬🇺",guinea_bissau:"🇬🇼",guyana:"🇬🇾",hong_kong:"🇭🇰",heard_mcdonald_islands:"🇭🇲",honduras:"🇭🇳",croatia:"🇭🇷",haiti:"🇭🇹",hungary:"🇭🇺",canary_islands:"🇮🇨",indonesia:"🇮🇩",ireland:"🇮🇪",israel:"🇮🇱",isle_of_man:"🇮🇲",india:"🇮🇳",british_indian_ocean_territory:"🇮🇴",iraq:"🇮🇶",iran:"🇮🇷",iceland:"🇮🇸",it:"🇮🇹",jersey:"🇯🇪",jamaica:"🇯🇲",jordan:"🇯🇴",jp:"🇯🇵",kenya:"🇰🇪",kyrgyzstan:"🇰🇬",cambodia:"🇰🇭",kiribati:"🇰🇮",comoros:"🇰🇲",st_kitts_nevis:"🇰🇳",north_korea:"🇰🇵",kr:"🇰🇷",kuwait:"🇰🇼",cayman_islands:"🇰🇾",kazakhstan:"🇰🇿",laos:"🇱🇦",lebanon:"🇱🇧",st_lucia:"🇱🇨",liechtenstein:"🇱🇮",sri_lanka:"🇱🇰",liberia:"🇱🇷",lesotho:"🇱🇸",lithuania:"🇱🇹",luxembourg:"🇱🇺",latvia:"🇱🇻",libya:"🇱🇾",morocco:"🇲🇦",monaco:"🇲🇨",moldova:"🇲🇩",montenegro:"🇲🇪",st_martin:"🇲🇫",madagascar:"🇲🇬",marshall_islands:"🇲🇭",macedonia:"🇲🇰",mali:"🇲🇱",myanmar:"🇲🇲",mongolia:"🇲🇳",macau:"🇲🇴",northern_mariana_islands:"🇲🇵",martinique:"🇲🇶",mauritania:"🇲🇷",montserrat:"🇲🇸",malta:"🇲🇹",mauritius:"🇲🇺",maldives:"🇲🇻",malawi:"🇲🇼",mexico:"🇲🇽",malaysia:"🇲🇾",mozambique:"🇲🇿",namibia:"🇳🇦",new_caledonia:"🇳🇨",niger:"🇳🇪",norfolk_island:"🇳🇫",nigeria:"🇳🇬",nicaragua:"🇳🇮",netherlands:"🇳🇱",norway:"🇳🇴",nepal:"🇳🇵",nauru:"🇳🇷",niue:"🇳🇺",new_zealand:"🇳🇿",oman:"🇴🇲",panama:"🇵🇦",peru:"🇵🇪",french_polynesia:"🇵🇫",papua_new_guinea:"🇵🇬",philippines:"🇵🇭",pakistan:"🇵🇰",poland:"🇵🇱",st_pierre_miquelon:"🇵🇲",pitcairn_islands:"🇵🇳",puerto_rico:"🇵🇷",palestinian_territories:"🇵🇸",portugal:"🇵🇹",palau:"🇵🇼",paraguay:"🇵🇾",qatar:"🇶🇦",reunion:"🇷🇪",romania:"🇷🇴",serbia:"🇷🇸",ru:"🇷🇺",rwanda:"🇷🇼",saudi_arabia:"🇸🇦",solomon_islands:"🇸🇧",seychelles:"🇸🇨",sudan:"🇸🇩",sweden:"🇸🇪",singapore:"🇸🇬",st_helena:"🇸🇭",slovenia:"🇸🇮",svalbard_jan_mayen:"🇸🇯",slovakia:"🇸🇰",sierra_leone:"🇸🇱",san_marino:"🇸🇲",senegal:"🇸🇳",somalia:"🇸🇴",suriname:"🇸🇷",south_sudan:"🇸🇸",sao_tome_principe:"🇸🇹",el_salvador:"🇸🇻",sint_maarten:"🇸🇽",syria:"🇸🇾",swaziland:"🇸🇿",tristan_da_cunha:"🇹🇦",turks_caicos_islands:"🇹🇨",chad:"🇹🇩",french_southern_territories:"🇹🇫",togo:"🇹🇬",thailand:"🇹🇭",tajikistan:"🇹🇯",tokelau:"🇹🇰",timor_leste:"🇹🇱",turkmenistan:"🇹🇲",tunisia:"🇹🇳",tonga:"🇹🇴",tr:"🇹🇷",trinidad_tobago:"🇹🇹",tuvalu:"🇹🇻",taiwan:"🇹🇼",tanzania:"🇹🇿",ukraine:"🇺🇦",uganda:"🇺🇬",us_outlying_islands:"🇺🇲",united_nations:"🇺🇳",us:"🇺🇸",uruguay:"🇺🇾",uzbekistan:"🇺🇿",vatican_city:"🇻🇦",st_vincent_grenadines:"🇻🇨",venezuela:"🇻🇪",british_virgin_islands:"🇻🇬",us_virgin_islands:"🇻🇮",vietnam:"🇻🇳",vanuatu:"🇻🇺",wallis_futuna:"🇼🇫",samoa:"🇼🇸",kosovo:"🇽🇰",yemen:"🇾🇪",mayotte:"🇾🇹",south_africa:"🇿🇦",zambia:"🇿🇲",zimbabwe:"🇿🇼",england:"🏴󠁧󠁢󠁥󠁮󠁧󠁿",scotland:"🏴󠁧󠁢󠁳󠁣󠁴󠁿",wales:"🏴󠁧󠁢󠁷󠁬󠁳󠁿"},Fg=/:(\+1|[-\w]+):/g,ZIe={}.hasOwnProperty;function JIe(){return e=>{Km(e,"text",t=>{const n=t.value,r=[];Fg.lastIndex=0;let i=Fg.exec(n),o=0;for(;i;){const a=i[1],l=i.index;ZIe.call(uR,a)?(o!==l&&r.push(n.slice(o,l)),r.push(uR[a]),o=l+i[0].length):Fg.lastIndex=l+1,i=Fg.exec(n)}r.length>0&&(r.push(n.slice(o)),t.value=r.join(""))})}}function eke(){return{remark:e=>e.use(JIe)}}function tke(e){QW(e,/\r?\n|\r/g,nke)}function nke(){return{type:"break"}}function rke(){return tke}function ike(){return{remark:e=>e.use(rke)}}const oke="粗体",ake="粗体文本",lke="Markdown 语法",ske="关闭帮助",cke="关闭目录",uke="代码",dke="代码块",fke="编程语言",pke="代码",hke="退出全屏",mke="恢复默认",gke="恢复默认",vke="全屏",yke="一级标题",bke="二级标题",Cke="三级标题",Ske="四级标题",Eke="五级标题",xke="六级标题",wke="标题",_ke="帮助",Tke="分割线",Oke="图片",Ike="alt",kke="图片描述",$ke="斜体",Nke="斜体文本",Ake="已达最大字符数限制",Rke="行数",Mke="链接",Pke="链接描述",Lke="有序列表",Dke="项目",Fke="预览",Bke="仅预览区",jke="引用",Hke="引用文本",zke="快捷键",Wke="源代码",Uke="同步滚动",Kke="目录",Vke="回到顶部",Gke="无序列表",qke="项目",Xke="字数",Yke="编辑",Qke="仅编辑区",Zke={bold:oke,boldText:ake,cheatsheet:lke,closeHelp:ske,closeToc:cke,code:uke,codeBlock:dke,codeLang:fke,codeText:pke,exitFullscreen:hke,exitPreviewOnly:mke,exitWriteOnly:gke,fullscreen:vke,h1:yke,h2:bke,h3:Cke,h4:Ske,h5:Eke,h6:xke,headingText:wke,help:_ke,hr:Tke,image:Oke,imageAlt:Ike,imageTitle:kke,italic:$ke,italicText:Nke,limited:Ake,lines:Rke,link:Mke,linkText:Pke,ol:Lke,olItem:Dke,preview:Fke,previewOnly:Bke,quote:jke,quotedText:Hke,shortcuts:zke,source:Wke,sync:Uke,toc:Kke,top:Vke,ul:Gke,ulItem:qke,words:Xke,write:Yke,writeOnly:Qke},Jke=[aU(),sU(),BIe(),EU(),eke(),ike()],e$e=Xn.div`
height: 100%;
.bytemd {
height: 100%;
}
`,t$e=({value:e,onChange:t})=>Ee.jsx(e$e,{children:Ee.jsx(z_e,{value:e,plugins:Jke,onChange:t,locale:Zke,uploadImages:async n=>n.map(r=>({url:URL.createObjectURL(r),alt:r.name}))})}),xU=F8(e=>({currentDocument:null,saving:!1,setCurrentDocument:t=>e({currentDocument:t}),setSaving:t=>e({saving:t}),fetchDocument:async t=>{await new Promise(r=>setTimeout(r,1e3));const n={id:t,title:"示例文档",content:`# 示例文档
这是一个示例文档。`,spaceId:"1",type:"markdown",parentId:null,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),createdBy:"1"};e({currentDocument:n})},updateDocument:async t=>{await new Promise(n=>setTimeout(n,1e3)),e({currentDocument:t})}})),{Option:hC}=Ro,n$e=({document:e,visible:t,onClose:n})=>{const[r]=Mn.useForm(),[i,o]=fe.useState(!1),a=async l=>{try{o(!0),console.log("Updating document settings:",l),po.success("更新成功"),n()}catch(c){console.error("Update document settings failed:",c),po.error("更新失败")}finally{o(!1)}};return Ee.jsx(sa,{title:"文档设置",open:t,onCancel:n,onOk:()=>r.submit(),confirmLoading:i,children:Ee.jsxs(Mn,{form:r,layout:"vertical",initialValues:{title:e.title,type:e.type},onFinish:a,children:[Ee.jsx(Mn.Item,{name:"title",label:"文档标题",rules:[{required:!0,message:"请输入文档标题"}],children:Ee.jsx(Qi,{placeholder:"请输入文档标题"})}),Ee.jsx(Mn.Item,{name:"type",label:"文档类型",rules:[{required:!0,message:"请选择文档类型"}],children:Ee.jsxs(Ro,{children:[Ee.jsx(hC,{value:"markdown",children:"Markdown"}),Ee.jsx(hC,{value:"rich-text",children:"富文本"}),Ee.jsx(hC,{value:"code",children:"代码"})]})})]})})},{Header:r$e,Content:i$e}=Lo,o$e=Xn(Lo)`
height: 100vh;
`,a$e=Xn(r$e)`
background: #fff;
padding: 0 24px;
display: flex;
justify-content: space-between;
align-items: center;
box-shadow: 0 1px 4px rgba(0, 21, 41, 0.08);
z-index: 100;
`,l$e=Xn(i$e)`
height: calc(100vh - 64px);
padding: 24px;
overflow: auto;
background: #fff;
`,s$e=()=>{const{documentId:e}=l3(),t=Mc(),{currentDocument:n,fetchDocument:r,updateDocument:i,saving:o,setSaving:a}=xU(),[l,c]=fe.useState(""),[u,p]=fe.useState(!0),[h,m]=fe.useState(!1);fe.useEffect(()=>{(async()=>{if(e)try{await r(e),c((n==null?void 0:n.content)||"")}finally{p(!1)}})()},[e,r,n==null?void 0:n.content]);const g=async()=>{if(n)try{a(!0),await i({...n,content:l}),po.success("保存成功")}catch(b){console.error("Save document failed:",b),po.error("保存失败")}finally{a(!1)}};return u||!n?Ee.jsx("div",{style:{textAlign:"center",padding:"50px"},children:Ee.jsx(Fm,{size:"large"})}):Ee.jsxs(o$e,{children:[Ee.jsxs(a$e,{children:[Ee.jsxs(fo,{children:[Ee.jsx(Hn,{icon:Ee.jsx(jH,{}),onClick:()=>t(`/spaces/${n.spaceId}`),children:"返回"}),Ee.jsx("span",{style:{fontSize:16},children:n.title})]}),Ee.jsxs(fo,{children:[Ee.jsx(Hn,{icon:Ee.jsx(BH,{}),children:"预览"}),Ee.jsx(Hn,{icon:Ee.jsx(V8,{}),onClick:()=>m(!0),children:"设置"}),Ee.jsx(Hn,{type:"primary",icon:Ee.jsx(m2e,{}),loading:o,onClick:g,children:"保存"})]})]}),Ee.jsx(l$e,{children:Ee.jsx(t$e,{value:l,onChange:c})}),Ee.jsx(n$e,{document:n,visible:h,onClose:()=>m(!1)})]})},c$e=()=>{const e=B8(t=>t.user);return Ee.jsx(h1,{title:"个人信息",children:Ee.jsxs(uv,{children:[Ee.jsx(uv.Item,{label:"用户名",children:e==null?void 0:e.name}),Ee.jsx(uv.Item,{label:"邮箱",children:e==null?void 0:e.email})]})})},u$e=()=>{const e=Mc();return Ee.jsx(c2,{status:"404",title:"404",subTitle:"抱歉,您访问的页面不存在。",extra:Ee.jsx(Hn,{type:"primary",onClick:()=>e("/"),children:"返回首页"})})},{Sider:d$e}=Lo,f$e=Xn(d$e)`
position: fixed;
height: 100vh;
left: 0;
top: 0;
bottom: 0;
`,p$e=Xn.div`
height: 64px;
padding: 16px;
display: flex;
align-items: center;
justify-content: center;
background: rgba(255, 255, 255, 0.1);
img {
height: 32px;
}
span {
color: white;
font-size: 16px;
font-weight: 600;
margin-left: 8px;
white-space: nowrap;
transition: opacity 0.2s;
}
`,h$e=({collapsed:e,onCollapse:t})=>{const n=Mc(),r=a3(),i=[{key:"/",icon:Ee.jsx(e2e,{}),label:"知识库"}];return Ee.jsxs(f$e,{collapsible:!0,collapsed:e,onCollapse:t,width:200,children:[Ee.jsxs(p$e,{children:[Ee.jsx("img",{src:"/notebase/favicon.ico",alt:"logo"}),!e&&Ee.jsx("span",{children:"微语知识库"})]}),Ee.jsx(Yu,{theme:"dark",mode:"inline",defaultSelectedKeys:["knowledge"],selectedKeys:[r.pathname.split("/")[1]||"knowledge"],items:i,onClick:({key:o})=>n(`/${o}`)})]})},{Header:m$e}=Lo,g$e=Xn(m$e)`
background: #fff;
padding: 0 24px;
display: flex;
justify-content: space-between;
align-items: center;
box-shadow: 0 1px 4px rgba(0, 21, 41, 0.08);
position: sticky;
top: 0;
z-index: 100;
`,v$e=Xn(Qi.Search)`
width: 400px;
margin: 0 24px;
`,y$e=()=>{const{user:e,logout:t}=B8(),n=[{key:"settings",icon:Ee.jsx(V8,{}),label:"设置"},{key:"logout",icon:Ee.jsx(l2e,{}),label:"退出登录",onClick:t}];return Ee.jsxs(g$e,{children:[Ee.jsxs("div",{style:{display:"flex",alignItems:"center"},children:[Ee.jsx(v$e,{placeholder:"在所有空间中搜索",allowClear:!0,onSearch:r=>console.log(r)}),Ee.jsx(Hn,{type:"text",icon:Ee.jsx(FH,{}),children:"列表模式"})]}),Ee.jsxs(fo,{children:[Ee.jsx(Hn,{type:"primary",icon:Ee.jsx(I2,{}),children:"新建空间"}),Ee.jsx(Dm,{menu:{items:n},placement:"bottomRight",children:Ee.jsxs(fo,{style:{cursor:"pointer"},children:[Ee.jsx(WF,{icon:Ee.jsx(WH,{})}),Ee.jsx("span",{children:e==null?void 0:e.name})]})})]})]})},{Content:b$e}=Lo,C$e=Xn(Lo)`
min-height: 100vh;
`,S$e=Xn(Lo)`
margin-left: 200px;
transition: all 0.2s;
&.collapsed {
margin-left: 80px;
}
`,E$e=Xn(b$e)`
padding: 24px;
background: #fff;
min-height: 280px;
overflow: auto;
`,x$e=()=>{const[e,t]=fe.useState(!1);return Ee.jsxs(C$e,{children:[Ee.jsx(h$e,{collapsed:e,onCollapse:t}),Ee.jsxs(S$e,{className:e?"collapsed":"",children:[Ee.jsx(y$e,{}),Ee.jsx(E$e,{children:Ee.jsx(YX,{})})]})]})},{Header:w$e,Content:_$e}=Lo,T$e=Xn(Lo)`
height: 100vh;
`,O$e=Xn(w$e)`
background: #fff;
padding: 0 24px;
display: flex;
justify-content: space-between;
align-items: center;
box-shadow: 0 1px 4px rgba(0, 21, 41, 0.08);
z-index: 100;
`,I$e=Xn(_$e)`
height: calc(100vh - 64px);
padding: 24px;
overflow: auto;
background: #fff;
`,k$e=[aU(),sU(),EU()],$$e=()=>{const{documentId:e}=l3(),t=Mc(),{currentDocument:n,fetchDocument:r}=xU(),[i,o]=fe.useState(!0),[a,l]=fe.useState(!1);fe.useEffect(()=>{(async()=>{if(e)try{await r(e)}finally{o(!1)}})()},[e,r]);const c=()=>{t(`/documents/${e}/edit`)},u=()=>{po.info("分享功能开发中")},p=()=>{l(!a),po.success(a?"已取消收藏":"已收藏")};return i||!n?Ee.jsx("div",{style:{textAlign:"center",padding:"50px"},children:Ee.jsx(Fm,{size:"large"})}):Ee.jsxs(T$e,{children:[Ee.jsxs(O$e,{children:[Ee.jsxs(fo,{children:[Ee.jsx(Hn,{icon:Ee.jsx(jH,{}),onClick:()=>t(`/spaces/${n.spaceId}`),children:"返回"}),Ee.jsx("span",{style:{fontSize:16},children:n.title})]}),Ee.jsxs(fo,{children:[Ee.jsx(Hn,{type:"text",icon:a?Ee.jsx(HH,{}):Ee.jsx(zH,{}),onClick:p}),Ee.jsx(Hn,{icon:Ee.jsx(y2e,{}),onClick:u,children:"分享"}),Ee.jsx(Hn,{type:"primary",icon:Ee.jsx(ky,{}),onClick:c,children:"编辑"})]})]}),Ee.jsx(I$e,{children:Ee.jsx(W_e,{value:n.content,plugins:k$e})})]})},N$e=eY([{path:"/",element:Ee.jsx(x$e,{}),children:[{path:"",element:Ee.jsx(n$,{})},{path:"spaces",element:Ee.jsx(n$,{})},{path:"spaces/:spaceId",element:Ee.jsx(W2e,{})},{path:"documents/:documentId",element:Ee.jsx($$e,{})},{path:"documents/:documentId/edit",element:Ee.jsx(s$e,{})},{path:"profile",element:Ee.jsx(c$e,{})}]},{path:"login",element:Ee.jsx(Sbe,{})},{path:"*",element:Ee.jsx(u$e,{})}],{basename:"/notebase",future:{v7_normalizeFormMethod:!0,v7_relativeSplatPath:!0,v7_partialHydration:!0,v7_fetcherPersist:!0,v7_skipActionErrorRevalidation:!0}});mC.createRoot(document.getElementById("root")).render(Ee.jsx(fe.StrictMode,{children:Ee.jsx(Hl,{locale:Fve,children:Ee.jsx(cY,{router:N$e})})}));export{jy as S,lU as _,Jwe as a,Zwe as b,A$e as c,QQ as d,JQ as e,zwe as f,dl as g,t6e as h,Hy as i,P8e as j,NW as r,SS as s,_A as t};